{
  "version": 1,
  "module": "github.com/nsgo-dev/game",
  "packages": [
    {
      "importPath": "github.com/nsgo-dev/game",
      "name": "game",
      "dir": ".",
      "page": "game",
      "synopsis": "Package game is a game layer for NSGo apps: a fixed-step loop, input actions, sprites, tilemaps, scenes and sound, built on NSGo's public API only, so an app that does not import it links none of it.",
      "doc": "Package game is a game layer for NSGo apps: a fixed-step loop, input actions, sprites, tilemaps, scenes and sound, built on NSGo's public API only, so an app that does not import it links none of it.\n\nThis package holds Loop, which the others share. Each domain has a package of its own: math2d for 2D vectors, rectangles, circles and affine transforms, sprite for atlases, sprites, animations and batches, and sound for the mixer, its effects and music; input, tilemap (with the camera) and scene follow, and examples holds sample games.\n",
      "consts": [],
      "vars": [],
      "funcs": [],
      "types": [
        {
          "name": "Loop",
          "anchor": "Loop",
          "decl": "type Loop struct {\n\t// Rate is how many updates run a second, 60 when 0.\n\tRate int\n\t// MaxSteps is the most updates one frame runs, Rate/10 (a tenth of a second's updates) and at least 1 when 0. A frame that would run more drops the whole steps past it, so an Update slower than its step, or a long hitch, slows the game rather than making each frame run more updates than the last.\n\tMaxSteps int\n\t// Paused stops Update from advancing with display time while Draw keeps running. Unpausing resumes from the current frame without a catch-up backlog.\n\tPaused bool\n\t// TimeScale scales simulated time, 1 when 0 or less (or not finite). Update still receives the fixed 1/Rate step, so 0.5 runs half as many updates a second and 2 runs twice as many.\n\tTimeScale float64\n\t// DrawRate caps Draw to at most DrawRate calls a second, uncapped when 0 or less. Update still runs at Rate.\n\tDrawRate int\n\t// OnDemand skips Draw on frames where no Update ran, unless MarkDirty has been called since the last Draw.\n\tOnDemand bool\n\t// Immersive hides a phone's system bars (mobile.Immersive) while the game plays, that is while the loop runs and is not Paused, and brings them back while it is Paused, as under a pause menu, and once it stops or its scope is disposed. The loop hides them as it starts or resumes in the foreground and applies a change to Immersive or Paused on its next frame, and leaves the bars as they are while the app is in the background. Desktop and web targets ignore it.\n\tImmersive bool\n\t// Update moves the game on by dt, which is always 1/Rate seconds.\n\tUpdate func(dt time.Duration)\n\t// Draw draws the frame; alpha, from 0 up to but not including 1, is how far the frame falls between the last update and the next.\n\tDraw func(alpha float64)\n\t// FrameTime, when set, receives each frame's length, the time it adds (0 for a frame stamped before the run started or resumed), ahead of the frame's updates. It is what frame-time statistics such as quality.Selector's read; a frame that ends a pause in the background measures from the time the window showed again, not the time away. It fires while Paused is set too, so a caller measuring only frames that simulate skips those itself.\n\tFrameTime func(dt time.Duration)\n\t// OnPause, when set, runs whenever Paused changes, so subsystems such as sound.Mixer (sound.Mixer.SetPaused) pause and resume with the loop. SetPaused calls it at once when the state changes; changing Paused directly calls it on the next frame, or in the same frame when Update changes it. If Paused is already true when Run starts, Run calls OnPause(true). Backgrounding does not call OnPause; both Loop and sound.Mixer follow core.Env.Lifecycle directly.\n\tOnPause func(paused bool)\n\t// contains filtered or unexported fields\n}",
          "doc": "Loop runs a game's updates at a fixed rate on a scope's display frames, and draws once a frame in between.\n\nEach frame adds the time since the last one and runs Update once for each whole step of 1/Rate seconds it holds, zero or more times, then Draw once with how far the time left over reaches into the next step. A game moves its state in Update by the fixed dt, so it plays alike at any display rate, and Draw places what moves between the last two states by alpha, so it moves smoothly at any display rate.\n\nRun reads the fields on each frame, so a game may change them while the loop runs.\n",
          "file": "loop.go",
          "line": 17,
          "members": [
            {
              "name": "Rate",
              "anchor": "Loop.Rate",
              "kind": "field",
              "doc": "Rate is how many updates run a second, 60 when 0."
            },
            {
              "name": "MaxSteps",
              "anchor": "Loop.MaxSteps",
              "kind": "field",
              "doc": "MaxSteps is the most updates one frame runs, Rate/10 (a tenth of a second's updates) and at least 1 when 0. A frame that would run more drops the whole steps past it, so an Update slower than its step, or a long hitch, slows the game rather than making each frame run more updates than the last."
            },
            {
              "name": "Paused",
              "anchor": "Loop.Paused",
              "kind": "field",
              "doc": "Paused stops Update from advancing with display time while Draw keeps running. Unpausing resumes from the current frame without a catch-up backlog."
            },
            {
              "name": "TimeScale",
              "anchor": "Loop.TimeScale",
              "kind": "field",
              "doc": "TimeScale scales simulated time, 1 when 0 or less (or not finite). Update still receives the fixed 1/Rate step, so 0.5 runs half as many updates a second and 2 runs twice as many."
            },
            {
              "name": "DrawRate",
              "anchor": "Loop.DrawRate",
              "kind": "field",
              "doc": "DrawRate caps Draw to at most DrawRate calls a second, uncapped when 0 or less. Update still runs at Rate."
            },
            {
              "name": "OnDemand",
              "anchor": "Loop.OnDemand",
              "kind": "field",
              "doc": "OnDemand skips Draw on frames where no Update ran, unless MarkDirty has been called since the last Draw."
            },
            {
              "name": "Immersive",
              "anchor": "Loop.Immersive",
              "kind": "field",
              "doc": "Immersive hides a phone's system bars (mobile.Immersive) while the game plays, that is while the loop runs and is not Paused, and brings them back while it is Paused, as under a pause menu, and once it stops or its scope is disposed. The loop hides them as it starts or resumes in the foreground and applies a change to Immersive or Paused on its next frame, and leaves the bars as they are while the app is in the background. Desktop and web targets ignore it."
            },
            {
              "name": "Update",
              "anchor": "Loop.Update",
              "kind": "field",
              "doc": "Update moves the game on by dt, which is always 1/Rate seconds."
            },
            {
              "name": "Draw",
              "anchor": "Loop.Draw",
              "kind": "field",
              "doc": "Draw draws the frame; alpha, from 0 up to but not including 1, is how far the frame falls between the last update and the next."
            },
            {
              "name": "FrameTime",
              "anchor": "Loop.FrameTime",
              "kind": "field",
              "doc": "FrameTime, when set, receives each frame's length, the time it adds (0 for a frame stamped before the run started or resumed), ahead of the frame's updates. It is what frame-time statistics such as quality.Selector's read; a frame that ends a pause in the background measures from the time the window showed again, not the time away. It fires while Paused is set too, so a caller measuring only frames that simulate skips those itself."
            },
            {
              "name": "OnPause",
              "anchor": "Loop.OnPause",
              "kind": "field",
              "doc": "OnPause, when set, runs whenever Paused changes, so subsystems such as sound.Mixer (sound.Mixer.SetPaused) pause and resume with the loop. SetPaused calls it at once when the state changes; changing Paused directly calls it on the next frame, or in the same frame when Update changes it. If Paused is already true when Run starts, Run calls OnPause(true). Backgrounding does not call OnPause; both Loop and sound.Mixer follow core.Env.Lifecycle directly."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveTimeScale",
              "anchor": "Loop.EffectiveTimeScale",
              "recv": "*Loop",
              "decl": "func (l *Loop) EffectiveTimeScale() float64",
              "doc": "EffectiveTimeScale returns the simulation time scale actually applied by Run\n(TimeScale when finite and > 0, else 1).\n",
              "file": "loop.go",
              "line": 146
            },
            {
              "name": "Elapsed",
              "anchor": "Loop.Elapsed",
              "recv": "*Loop",
              "decl": "func (l *Loop) Elapsed() time.Duration",
              "doc": "Elapsed returns the simulated game time advanced by fixed Update steps,\nrounded to the nearest nanosecond from ElapsedSeconds (so 60 steps at 60 Hz\nis exactly time.Second).\n",
              "file": "loop.go",
              "line": 116
            },
            {
              "name": "ElapsedSeconds",
              "anchor": "Loop.ElapsedSeconds",
              "recv": "*Loop",
              "decl": "func (l *Loop) ElapsedSeconds() float64",
              "doc": "ElapsedSeconds returns the simulated game time advanced by fixed Update steps\nin seconds. Each contiguous run at a fixed rate contributes steps/rate seconds\nwithout integer-nanosecond drift, so 60 steps at 60 Hz is exactly 1.0.\n",
              "file": "loop.go",
              "line": 103
            },
            {
              "name": "MarkDirty",
              "anchor": "Loop.MarkDirty",
              "recv": "*Loop",
              "decl": "func (l *Loop) MarkDirty()",
              "doc": "MarkDirty requests a Draw on the next frame when OnDemand is true.\n",
              "file": "loop.go",
              "line": 88
            },
            {
              "name": "Run",
              "anchor": "Loop.Run",
              "recv": "*Loop",
              "decl": "func (l *Loop) Run(cx *core.Scope) (stop func())",
              "doc": "Run starts the loop on cx's display frames until cx is disposed or stop is called.\n\nThe loop pauses while cx's window is in the background (core.Env.Lifecycle), that is hidden, minimized or covered on a desktop and the app in the background on a phone, and resumes from the time it shows again, so the time away runs no updates. While running in the foreground it keeps the display awake (core.Scope.KeepAwake), releasing the hold when paused, stopped or disposed.\n\nA frame adds the time between its display time and the last frame's, as core.Scope.RequestAnimationFrame gives it: the display's own frame time where the platform stamps one, so the frame length is the display's rather than when the engine got to the frame, and the graph clock's otherwise. The first frame after the loop starts or resumes adds the time from then to its display time, which may lie a frame ahead where the display stamps a frame with when it will show, so the loop's time is the shown frame's. A frame stamped before the time the loop started or resumed adds nothing, and the next frame adds the time from then.\n\nWith Immersive set, the run hides the system bars while the game plays and shows them again when it is paused, stopped or disposed. Runs in the same window share the bars: they stay hidden while any of them plays with Immersive set, and come back once the last of those pauses or ends, so a scene that starts its own loop before the last scene's loop is disposed keeps them hidden.\n",
              "file": "loop.go",
              "line": 222
            },
            {
              "name": "SetPaused",
              "anchor": "Loop.SetPaused",
              "recv": "*Loop",
              "decl": "func (l *Loop) SetPaused(paused bool)",
              "doc": "SetPaused pauses or resumes the loop's updates without accumulating a catch-up backlog, calling OnPause if the paused state changed.\n",
              "file": "loop.go",
              "line": 52
            },
            {
              "name": "SetTimeScale",
              "anchor": "Loop.SetTimeScale",
              "recv": "*Loop",
              "decl": "func (l *Loop) SetTimeScale(scale float64)",
              "doc": "SetTimeScale sets the simulation time scale; values at or below 0 run at 1.\n",
              "file": "loop.go",
              "line": 71
            },
            {
              "name": "Step",
              "anchor": "Loop.Step",
              "recv": "*Loop",
              "decl": "func (l *Loop) Step(n int)",
              "doc": "Step queues n fixed updates to run on the next display frame while Paused is true, redrawing afterward. Values at or below 0 do nothing.\n",
              "file": "loop.go",
              "line": 76
            },
            {
              "name": "StepDuration",
              "anchor": "Loop.StepDuration",
              "recv": "*Loop",
              "decl": "func (l *Loop) StepDuration() time.Duration",
              "doc": "StepDuration returns the fixed duration passed to Update (time.Second / StepRate()).\n",
              "file": "loop.go",
              "line": 137
            },
            {
              "name": "StepNow",
              "anchor": "Loop.StepNow",
              "recv": "*Loop",
              "decl": "func (l *Loop) StepNow(n int) int",
              "doc": "StepNow synchronously executes n fixed Update steps right away (whether Paused\nis true or false), followed by a Draw when Draw is set, and returns how many\nsteps ran. Values at or below 0 do nothing and return 0. If Update stops an\nactive Run, StepNow stops immediately without calling Draw.\n",
              "file": "loop.go",
              "line": 157
            },
            {
              "name": "StepOnce",
              "anchor": "Loop.StepOnce",
              "recv": "*Loop",
              "decl": "func (l *Loop) StepOnce()",
              "doc": "StepOnce queues one fixed update to run on the next display frame while Paused is true.\n",
              "file": "loop.go",
              "line": 83
            },
            {
              "name": "StepRate",
              "anchor": "Loop.StepRate",
              "recv": "*Loop",
              "decl": "func (l *Loop) StepRate() int",
              "doc": "StepRate returns the effective fixed update rate in Hz (Rate when > 0, else 60).\n",
              "file": "loop.go",
              "line": 129
            },
            {
              "name": "Steps",
              "anchor": "Loop.Steps",
              "recv": "*Loop",
              "decl": "func (l *Loop) Steps() uint64",
              "doc": "Steps returns the total number of fixed Update steps executed by l.\n",
              "file": "loop.go",
              "line": 93
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/a11y",
      "name": "a11y",
      "dir": "pkg/a11y",
      "page": "pkg/a11y",
      "synopsis": "Package a11y adds game accessibility primitives built on NSGo's public API: live captions for dialogue and sound effects, color-blind-safe palettes with CVD simulation and WCAG contrast helpers, persistent assist options, and screen-reader-ready native menus.",
      "doc": "Package a11y adds game accessibility primitives built on NSGo's public API:\nlive captions for dialogue and sound effects, color-blind-safe palettes with\nCVD simulation and WCAG contrast helpers, persistent assist options, and\nscreen-reader-ready native menus.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MinGameSpeed",
              "anchor": "MinGameSpeed"
            },
            {
              "name": "MaxGameSpeed",
              "anchor": "MaxGameSpeed"
            },
            {
              "name": "MinTextScale",
              "anchor": "MinTextScale"
            },
            {
              "name": "MaxTextScale",
              "anchor": "MaxTextScale"
            }
          ],
          "decl": "const (\n\t// MinGameSpeed is the slowest allowed Assist.GameSpeed multiplier.\n\tMinGameSpeed = 0.25\n\t// MaxGameSpeed is the fastest allowed Assist.GameSpeed multiplier.\n\tMaxGameSpeed = 1.0\n\t// MinTextScale is the minimum allowed Assist.TextScale multiplier.\n\tMinTextScale float32 = 1.0\n\t// MaxTextScale is the maximum allowed Assist.TextScale multiplier.\n\tMaxTextScale float32 = 2.0\n)",
          "doc": "",
          "file": "pkg/a11y/assist.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "DefaultMaxVisibleCaptions",
              "anchor": "DefaultMaxVisibleCaptions"
            },
            {
              "name": "DefaultCaptionDuration",
              "anchor": "DefaultCaptionDuration"
            }
          ],
          "decl": "const (\n\t// DefaultMaxVisibleCaptions is the default cap on simultaneously visible captions.\n\tDefaultMaxVisibleCaptions = 4\n\t// DefaultCaptionDuration is used when a Caption is shown without a positive Duration.\n\tDefaultCaptionDuration = 3 * time.Second\n)",
          "doc": "",
          "file": "pkg/a11y/captions.go",
          "line": 12
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "AccessibleMenu",
          "anchor": "AccessibleMenu",
          "decl": "func AccessibleMenu(cx *core.Scope, props MenuProps) core.Node",
          "doc": "AccessibleMenu renders a screen-reader- and keyboard-accessible native NSGo\nmenu with RoleMenu / RoleMenuItem (or RoleMenuItemCheckbox), full ARIA/a11y\nmetadata, keyboard navigation (Up/Down/Home/End/Return/Space/Escape via\nOnKeyDown), and live screen-reader announcements via cx.Announce on open,\nfocus change, toggle, and close.\n",
          "file": "pkg/a11y/menu.go",
          "line": 75
        },
        {
          "name": "CaptionsView",
          "anchor": "CaptionsView",
          "decl": "func CaptionsView(cx *core.Scope, track *CaptionTrack, opts CaptionStyle) core.Node",
          "doc": "CaptionsView renders high-contrast live captions from track as native NSGo\nviews with LiveRegionPolite on standard cues and LiveRegionAssertive on\nCaptionImportant cues.\n",
          "file": "pkg/a11y/captions.go",
          "line": 303
        },
        {
          "name": "ContrastRatio",
          "anchor": "ContrastRatio",
          "decl": "func ContrastRatio(fg, bg core.Color) float64",
          "doc": "ContrastRatio returns the WCAG 2.1 relative luminance contrast ratio between\nfg and bg in [1.0, 21.0]. Semi-transparent foregrounds are composited over bg.\n",
          "file": "pkg/a11y/palette.go",
          "line": 210
        },
        {
          "name": "EnsureContrast",
          "anchor": "EnsureContrast",
          "decl": "func EnsureContrast(fg, bg core.Color, minRatio float64) core.Color",
          "doc": "EnsureContrast adjusts fg's lightness until ContrastRatio(result, bg) meets\nminRatio while preserving fg's hue as closely as possible and keeping its\nalpha channel. If fg already meets minRatio (or minRatio <= 1), fg is\nreturned unchanged. If minRatio exceeds the maximum contrast achievable\nagainst bg, the higher-contrast extreme (white or black) is returned.\n",
          "file": "pkg/a11y/palette.go",
          "line": 227
        },
        {
          "name": "Simulate",
          "anchor": "Simulate",
          "decl": "func Simulate(c core.Color, mode ColorVision) core.Color",
          "doc": "Simulate approximates how c appears under color-vision mode using linear-RGB\nViénot/Brettel/Machado dichromacy matrices. Alpha is preserved. VisionNormal\nand VisionHighContrast return c unchanged.\n",
          "file": "pkg/a11y/palette.go",
          "line": 185
        }
      ],
      "types": [
        {
          "name": "Assist",
          "anchor": "Assist",
          "decl": "type Assist struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Assist stores and persists a player's accessibility and gameplay-assist\npreferences in core.Storage under a key prefix. Every getter reads through\ncore.Storage (and core.Env where appropriate), so calling a getter inside a\nreactive NSGo computation automatically subscribes to updates.\n",
          "file": "pkg/a11y/assist.go",
          "line": 40,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewAssist",
              "anchor": "NewAssist",
              "decl": "func NewAssist(cx *core.Scope, key string) *Assist",
              "doc": "NewAssist returns an Assist controller backed by cx's core.Storage under\nkeys prefixed with key (defaulting to \"a11y.assist\" when empty).\n",
              "file": "pkg/a11y/assist.go",
              "line": 48
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Assist.Apply",
              "recv": "*Assist",
              "decl": "func (a *Assist) Apply(opts AssistOptions) error",
              "doc": "Apply persists every option in opts.\n",
              "file": "pkg/a11y/assist.go",
              "line": 231
            },
            {
              "name": "AutoAim",
              "anchor": "Assist.AutoAim",
              "recv": "*Assist",
              "decl": "func (a *Assist) AutoAim() bool",
              "doc": "AutoAim reports whether aim assistance is enabled.\n",
              "file": "pkg/a11y/assist.go",
              "line": 122
            },
            {
              "name": "CaptionsEnabled",
              "anchor": "Assist.CaptionsEnabled",
              "recv": "*Assist",
              "decl": "func (a *Assist) CaptionsEnabled() bool",
              "doc": "CaptionsEnabled reports whether dialogue and music captions are enabled.\n",
              "file": "pkg/a11y/assist.go",
              "line": 151
            },
            {
              "name": "ColorVision",
              "anchor": "Assist.ColorVision",
              "recv": "*Assist",
              "decl": "func (a *Assist) ColorVision() ColorVision",
              "doc": "ColorVision returns the selected color-vision mode, defaulting to VisionNormal.\n",
              "file": "pkg/a11y/assist.go",
              "line": 163
            },
            {
              "name": "GameSpeed",
              "anchor": "Assist.GameSpeed",
              "recv": "*Assist",
              "decl": "func (a *Assist) GameSpeed() float64",
              "doc": "GameSpeed returns the slow-motion multiplier in [0.25, 1.0], defaulting to 1.0.\n",
              "file": "pkg/a11y/assist.go",
              "line": 62
            },
            {
              "name": "HighContrast",
              "anchor": "Assist.HighContrast",
              "recv": "*Assist",
              "decl": "func (a *Assist) HighContrast() bool",
              "doc": "HighContrast reports whether high-contrast visuals are requested. When unset\nin storage, it follows cx.Env().IncreaseContrast().\n",
              "file": "pkg/a11y/assist.go",
              "line": 135
            },
            {
              "name": "HoldToToggle",
              "anchor": "Assist.HoldToToggle",
              "recv": "*Assist",
              "decl": "func (a *Assist) HoldToToggle() bool",
              "doc": "HoldToToggle reports whether held inputs should act as toggles.\n",
              "file": "pkg/a11y/assist.go",
              "line": 128
            },
            {
              "name": "Invincibility",
              "anchor": "Assist.Invincibility",
              "recv": "*Assist",
              "decl": "func (a *Assist) Invincibility() bool",
              "doc": "Invincibility reports whether player damage is disabled.\n",
              "file": "pkg/a11y/assist.go",
              "line": 116
            },
            {
              "name": "Palette",
              "anchor": "Assist.Palette",
              "recv": "*Assist",
              "decl": "func (a *Assist) Palette() Palette",
              "doc": "Palette returns the active Palette for the player's current settings,\npreferring VisionHighContrast when HighContrast is enabled.\n",
              "file": "pkg/a11y/assist.go",
              "line": 207
            },
            {
              "name": "ReduceMotion",
              "anchor": "Assist.ReduceMotion",
              "recv": "*Assist",
              "decl": "func (a *Assist) ReduceMotion() bool",
              "doc": "ReduceMotion reports whether screen shake, flashes, and non-essential motion\nshould be disabled. When unset in storage, it follows cx.Env().ReduceMotion().\n",
              "file": "pkg/a11y/assist.go",
              "line": 98
            },
            {
              "name": "Reset",
              "anchor": "Assist.Reset",
              "recv": "*Assist",
              "decl": "func (a *Assist) Reset()",
              "doc": "Reset removes all stored assist preferences so defaults and OS environment\nsettings take effect again.\n",
              "file": "pkg/a11y/assist.go",
              "line": 264
            },
            {
              "name": "SFXCaptionsEnabled",
              "anchor": "Assist.SFXCaptionsEnabled",
              "recv": "*Assist",
              "decl": "func (a *Assist) SFXCaptionsEnabled() bool",
              "doc": "SFXCaptionsEnabled reports whether sound-effect captions are enabled.\n",
              "file": "pkg/a11y/assist.go",
              "line": 157
            },
            {
              "name": "ScaleDT",
              "anchor": "Assist.ScaleDT",
              "recv": "*Assist",
              "decl": "func (a *Assist) ScaleDT(dt time.Duration) time.Duration",
              "doc": "ScaleDT scales a simulation step dt by GameSpeed. Non-positive durations\nreturn 0, and a speed of 1.0 returns dt unchanged.\n",
              "file": "pkg/a11y/assist.go",
              "line": 85
            },
            {
              "name": "SetAutoAim",
              "anchor": "Assist.SetAutoAim",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetAutoAim(v bool) error",
              "doc": "SetAutoAim persists the auto-aim assist option.\n",
              "file": "pkg/a11y/assist.go",
              "line": 125
            },
            {
              "name": "SetCaptionsEnabled",
              "anchor": "Assist.SetCaptionsEnabled",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetCaptionsEnabled(v bool) error",
              "doc": "SetCaptionsEnabled persists whether captions are enabled.\n",
              "file": "pkg/a11y/assist.go",
              "line": 154
            },
            {
              "name": "SetColorVision",
              "anchor": "Assist.SetColorVision",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetColorVision(v ColorVision) error",
              "doc": "SetColorVision persists the selected color-vision mode.\n",
              "file": "pkg/a11y/assist.go",
              "line": 175
            },
            {
              "name": "SetGameSpeed",
              "anchor": "Assist.SetGameSpeed",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetGameSpeed(v float64) error",
              "doc": "SetGameSpeed clamps v to [0.25, 1.0] and persists it.\n",
              "file": "pkg/a11y/assist.go",
              "line": 75
            },
            {
              "name": "SetHighContrast",
              "anchor": "Assist.SetHighContrast",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetHighContrast(v bool) error",
              "doc": "SetHighContrast persists an explicit high-contrast preference.\n",
              "file": "pkg/a11y/assist.go",
              "line": 148
            },
            {
              "name": "SetHoldToToggle",
              "anchor": "Assist.SetHoldToToggle",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetHoldToToggle(v bool) error",
              "doc": "SetHoldToToggle persists the hold-to-toggle assist option.\n",
              "file": "pkg/a11y/assist.go",
              "line": 131
            },
            {
              "name": "SetInvincibility",
              "anchor": "Assist.SetInvincibility",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetInvincibility(v bool) error",
              "doc": "SetInvincibility persists the invincibility assist option.\n",
              "file": "pkg/a11y/assist.go",
              "line": 119
            },
            {
              "name": "SetReduceMotion",
              "anchor": "Assist.SetReduceMotion",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetReduceMotion(v bool) error",
              "doc": "SetReduceMotion persists an explicit reduced-motion preference.\n",
              "file": "pkg/a11y/assist.go",
              "line": 111
            },
            {
              "name": "SetSFXCaptionsEnabled",
              "anchor": "Assist.SetSFXCaptionsEnabled",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetSFXCaptionsEnabled(v bool) error",
              "doc": "SetSFXCaptionsEnabled persists whether sound-effect captions are enabled.\n",
              "file": "pkg/a11y/assist.go",
              "line": 160
            },
            {
              "name": "SetTextScale",
              "anchor": "Assist.SetTextScale",
              "recv": "*Assist",
              "decl": "func (a *Assist) SetTextScale(v float32) error",
              "doc": "SetTextScale clamps v to [1.0, 2.0] and persists it.\n",
              "file": "pkg/a11y/assist.go",
              "line": 197
            },
            {
              "name": "Snapshot",
              "anchor": "Assist.Snapshot",
              "recv": "*Assist",
              "decl": "func (a *Assist) Snapshot() AssistOptions",
              "doc": "Snapshot returns all current assist option values.\n",
              "file": "pkg/a11y/assist.go",
              "line": 215
            },
            {
              "name": "TextScale",
              "anchor": "Assist.TextScale",
              "recv": "*Assist",
              "decl": "func (a *Assist) TextScale() float32",
              "doc": "TextScale returns the UI/caption text scale multiplier in [1.0, 2.0]. When\nunset in storage, it adopts cx.Env().FontScale() clamped to [1.0, 2.0].\n",
              "file": "pkg/a11y/assist.go",
              "line": 181
            }
          ]
        },
        {
          "name": "AssistOptions",
          "anchor": "AssistOptions",
          "decl": "type AssistOptions struct {\n\tGameSpeed          float64\n\tReduceMotion       bool\n\tInvincibility      bool\n\tAutoAim            bool\n\tHoldToToggle       bool\n\tHighContrast       bool\n\tCaptionsEnabled    bool\n\tSFXCaptionsEnabled bool\n\tColorVision        ColorVision\n\tTextScale          float32\n}",
          "doc": "AssistOptions is a plain snapshot of every assist option managed by Assist.\n",
          "file": "pkg/a11y/assist.go",
          "line": 23,
          "members": [
            {
              "name": "GameSpeed",
              "anchor": "AssistOptions.GameSpeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReduceMotion",
              "anchor": "AssistOptions.ReduceMotion",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Invincibility",
              "anchor": "AssistOptions.Invincibility",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AutoAim",
              "anchor": "AssistOptions.AutoAim",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HoldToToggle",
              "anchor": "AssistOptions.HoldToToggle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HighContrast",
              "anchor": "AssistOptions.HighContrast",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CaptionsEnabled",
              "anchor": "AssistOptions.CaptionsEnabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SFXCaptionsEnabled",
              "anchor": "AssistOptions.SFXCaptionsEnabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorVision",
              "anchor": "AssistOptions.ColorVision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextScale",
              "anchor": "AssistOptions.TextScale",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Caption",
          "anchor": "Caption",
          "decl": "type Caption struct {\n\t// ID uniquely identifies the caption within its track.\n\tID uint64\n\t// Speaker is the optional speaker name (e.g. \"Ada\").\n\tSpeaker string\n\t// Text is the caption body.\n\tText string\n\t// Kind classifies the cue for formatting, filtering, and LiveRegion priority.\n\tKind CaptionKind\n\t// Direction is an optional stereo pan hint in [-1, +1] (-1 left, +1 right).\n\tDirection float32\n\t// Duration is the total lifetime of the caption.\n\tDuration time.Duration\n\t// Remaining is the time left before the caption expires.\n\tRemaining time.Duration\n}",
          "doc": "Caption represents one active timed caption on a CaptionTrack.\n",
          "file": "pkg/a11y/captions.go",
          "line": 53,
          "members": [
            {
              "name": "ID",
              "anchor": "Caption.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the caption within its track."
            },
            {
              "name": "Speaker",
              "anchor": "Caption.Speaker",
              "kind": "field",
              "doc": "Speaker is the optional speaker name (e.g. \"Ada\")."
            },
            {
              "name": "Text",
              "anchor": "Caption.Text",
              "kind": "field",
              "doc": "Text is the caption body."
            },
            {
              "name": "Kind",
              "anchor": "Caption.Kind",
              "kind": "field",
              "doc": "Kind classifies the cue for formatting, filtering, and LiveRegion priority."
            },
            {
              "name": "Direction",
              "anchor": "Caption.Direction",
              "kind": "field",
              "doc": "Direction is an optional stereo pan hint in [-1, +1] (-1 left, +1 right)."
            },
            {
              "name": "Duration",
              "anchor": "Caption.Duration",
              "kind": "field",
              "doc": "Duration is the total lifetime of the caption."
            },
            {
              "name": "Remaining",
              "anchor": "Caption.Remaining",
              "kind": "field",
              "doc": "Remaining is the time left before the caption expires."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Format",
              "anchor": "Caption.Format",
              "recv": "Caption",
              "decl": "func (c Caption) Format() string",
              "doc": "Format renders c as human- and screen-reader-friendly text with speaker and\ndirectional stereo indicators ([<] for left, [>] for right).\n",
              "file": "pkg/a11y/captions.go",
              "line": 72
            }
          ]
        },
        {
          "name": "CaptionKind",
          "anchor": "CaptionKind",
          "decl": "type CaptionKind int",
          "doc": "CaptionKind classifies a live caption entry for styling, filtering, and\nscreen-reader politeness.\n",
          "file": "pkg/a11y/captions.go",
          "line": 23,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CaptionDialogue",
                  "anchor": "CaptionDialogue"
                },
                {
                  "name": "CaptionSFX",
                  "anchor": "CaptionSFX"
                },
                {
                  "name": "CaptionMusic",
                  "anchor": "CaptionMusic"
                },
                {
                  "name": "CaptionImportant",
                  "anchor": "CaptionImportant"
                }
              ],
              "decl": "const (\n\t// CaptionDialogue is spoken character dialogue.\n\tCaptionDialogue CaptionKind = iota\n\t// CaptionSFX is a non-speech sound effect cue (footsteps, explosion, door).\n\tCaptionSFX\n\t// CaptionMusic is a musical cue or track mood indicator.\n\tCaptionMusic\n\t// CaptionImportant is a critical gameplay or hazard audio cue announced assertively.\n\tCaptionImportant\n)",
              "doc": "",
              "file": "pkg/a11y/captions.go",
              "line": 25
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "CaptionKind.String",
              "recv": "CaptionKind",
              "decl": "func (k CaptionKind) String() string",
              "doc": "String returns the canonical name of k.\n",
              "file": "pkg/a11y/captions.go",
              "line": 37
            }
          ]
        },
        {
          "name": "CaptionStyle",
          "anchor": "CaptionStyle",
          "decl": "type CaptionStyle struct {\n\t// Background is the caption pill backdrop color (default high-contrast near-black).\n\tBackground core.Color\n\t// TextColor is the dialogue/music text color (default white).\n\tTextColor core.Color\n\t// SFXColor is the sound-effect caption text color (default soft cyan).\n\tSFXColor core.Color\n\t// ImportantColor is the text color for CaptionImportant cues (default high-contrast yellow).\n\tImportantColor core.Color\n\t// FontSize is the base font size in points (default 16).\n\tFontSize core.Points\n\t// TextScale multiplies FontSize when > 0 (overridden by Assist.TextScale when Assist is set).\n\tTextScale float32\n\t// MaxWidth caps the caption overlay width in points (default 640).\n\tMaxWidth core.Points\n\t// Assist, when non-nil, automatically scales caption text, respects\n\t// HighContrast, and filters captions by CaptionsEnabled/SFXCaptionsEnabled.\n\tAssist *Assist\n\t// TestID overrides the root view's TestID (default \"a11y-captions\").\n\tTestID string\n\t// Style merges additional layout/positioning style onto the container.\n\tStyle core.Style\n}",
          "doc": "CaptionStyle configures the appearance and optional Assist integration of CaptionsView.\n",
          "file": "pkg/a11y/captions.go",
          "line": 276,
          "members": [
            {
              "name": "Background",
              "anchor": "CaptionStyle.Background",
              "kind": "field",
              "doc": "Background is the caption pill backdrop color (default high-contrast near-black)."
            },
            {
              "name": "TextColor",
              "anchor": "CaptionStyle.TextColor",
              "kind": "field",
              "doc": "TextColor is the dialogue/music text color (default white)."
            },
            {
              "name": "SFXColor",
              "anchor": "CaptionStyle.SFXColor",
              "kind": "field",
              "doc": "SFXColor is the sound-effect caption text color (default soft cyan)."
            },
            {
              "name": "ImportantColor",
              "anchor": "CaptionStyle.ImportantColor",
              "kind": "field",
              "doc": "ImportantColor is the text color for CaptionImportant cues (default high-contrast yellow)."
            },
            {
              "name": "FontSize",
              "anchor": "CaptionStyle.FontSize",
              "kind": "field",
              "doc": "FontSize is the base font size in points (default 16)."
            },
            {
              "name": "TextScale",
              "anchor": "CaptionStyle.TextScale",
              "kind": "field",
              "doc": "TextScale multiplies FontSize when > 0 (overridden by Assist.TextScale when Assist is set)."
            },
            {
              "name": "MaxWidth",
              "anchor": "CaptionStyle.MaxWidth",
              "kind": "field",
              "doc": "MaxWidth caps the caption overlay width in points (default 640)."
            },
            {
              "name": "Assist",
              "anchor": "CaptionStyle.Assist",
              "kind": "field",
              "doc": "Assist, when non-nil, automatically scales caption text, respects\nHighContrast, and filters captions by CaptionsEnabled/SFXCaptionsEnabled."
            },
            {
              "name": "TestID",
              "anchor": "CaptionStyle.TestID",
              "kind": "field",
              "doc": "TestID overrides the root view's TestID (default \"a11y-captions\")."
            },
            {
              "name": "Style",
              "anchor": "CaptionStyle.Style",
              "kind": "field",
              "doc": "Style merges additional layout/positioning style onto the container."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CaptionTrack",
          "anchor": "CaptionTrack",
          "decl": "type CaptionTrack struct {\n\t// MaxVisible caps how many captions remain active at once; 4 when <= 0.\n\tMaxVisible int\n\t// contains filtered or unexported fields\n}",
          "doc": "CaptionTrack manages timed captions stepped deterministically by Update(dt)\ninside game.Loop.Update, exposing a reactive signal revision for CaptionsView.\n",
          "file": "pkg/a11y/captions.go",
          "line": 103,
          "members": [
            {
              "name": "MaxVisible",
              "anchor": "CaptionTrack.MaxVisible",
              "kind": "field",
              "doc": "MaxVisible caps how many captions remain active at once; 4 when <= 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCaptionTrack",
              "anchor": "NewCaptionTrack",
              "decl": "func NewCaptionTrack(cx *core.Scope) *CaptionTrack",
              "doc": "NewCaptionTrack returns a CaptionTrack bound to cx's reactive graph with\nMaxVisible set to DefaultMaxVisibleCaptions (4).\n",
              "file": "pkg/a11y/captions.go",
              "line": 115
            }
          ],
          "methods": [
            {
              "name": "Active",
              "anchor": "CaptionTrack.Active",
              "recv": "*CaptionTrack",
              "decl": "func (t *CaptionTrack) Active() []Caption",
              "doc": "Active returns a snapshot of the currently active captions in display order\n(oldest to newest). Calling Active inside a reactive computation subscribes\nit to caption additions, expirations, and clears.\n",
              "file": "pkg/a11y/captions.go",
              "line": 242
            },
            {
              "name": "Clear",
              "anchor": "CaptionTrack.Clear",
              "recv": "*CaptionTrack",
              "decl": "func (t *CaptionTrack) Clear()",
              "doc": "Clear removes all active captions.\n",
              "file": "pkg/a11y/captions.go",
              "line": 267
            },
            {
              "name": "Dismiss",
              "anchor": "CaptionTrack.Dismiss",
              "recv": "*CaptionTrack",
              "decl": "func (t *CaptionTrack) Dismiss(id uint64) bool",
              "doc": "Dismiss removes the caption with id if present and reports whether one was removed.\n",
              "file": "pkg/a11y/captions.go",
              "line": 255
            },
            {
              "name": "Show",
              "anchor": "CaptionTrack.Show",
              "recv": "*CaptionTrack",
              "decl": "func (t *CaptionTrack) Show(c Caption) uint64",
              "doc": "Show adds c to the track, assigning an ID and defaults if unset, enforcing\nMaxVisible, and notifying reactive subscribers. It returns the caption's ID.\n",
              "file": "pkg/a11y/captions.go",
              "line": 138
            },
            {
              "name": "ShowDialogue",
              "anchor": "CaptionTrack.ShowDialogue",
              "recv": "*CaptionTrack",
              "decl": "func (t *CaptionTrack) ShowDialogue(speaker, text string, duration time.Duration) uint64",
              "doc": "ShowDialogue appends a spoken dialogue caption attributed to speaker.\n",
              "file": "pkg/a11y/captions.go",
              "line": 196
            },
            {
              "name": "ShowImportant",
              "anchor": "CaptionTrack.ShowImportant",
              "recv": "*CaptionTrack",
              "decl": "func (t *CaptionTrack) ShowImportant(text string, duration time.Duration) uint64",
              "doc": "ShowImportant appends a high-priority gameplay cue announced assertively.\n",
              "file": "pkg/a11y/captions.go",
              "line": 206
            },
            {
              "name": "ShowSFX",
              "anchor": "CaptionTrack.ShowSFX",
              "recv": "*CaptionTrack",
              "decl": "func (t *CaptionTrack) ShowSFX(label string, duration time.Duration) uint64",
              "doc": "ShowSFX appends a sound-effect caption for label lasting duration.\n",
              "file": "pkg/a11y/captions.go",
              "line": 177
            },
            {
              "name": "ShowSFXAt",
              "anchor": "CaptionTrack.ShowSFXAt",
              "recv": "*CaptionTrack",
              "decl": "func (t *CaptionTrack) ShowSFXAt(label string, direction float32, duration time.Duration) uint64",
              "doc": "ShowSFXAt appends a directional sound-effect caption with stereo direction in [-1, +1].\n",
              "file": "pkg/a11y/captions.go",
              "line": 186
            },
            {
              "name": "Update",
              "anchor": "CaptionTrack.Update",
              "recv": "*CaptionTrack",
              "decl": "func (t *CaptionTrack) Update(dt time.Duration)",
              "doc": "Update advances all active captions by dt and expires any whose Remaining\ntime reaches zero. Intended to be called on each game.Loop.Update step.\n",
              "file": "pkg/a11y/captions.go",
              "line": 216
            }
          ]
        },
        {
          "name": "ColorVision",
          "anchor": "ColorVision",
          "decl": "type ColorVision int",
          "doc": "ColorVision selects a color-vision mode for palettes and CVD simulation.\n",
          "file": "pkg/a11y/palette.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "VisionNormal",
                  "anchor": "VisionNormal"
                },
                {
                  "name": "VisionProtanopia",
                  "anchor": "VisionProtanopia"
                },
                {
                  "name": "VisionDeuteranopia",
                  "anchor": "VisionDeuteranopia"
                },
                {
                  "name": "VisionTritanopia",
                  "anchor": "VisionTritanopia"
                },
                {
                  "name": "VisionHighContrast",
                  "anchor": "VisionHighContrast"
                }
              ],
              "decl": "const (\n\t// VisionNormal is standard trichromatic vision with a color-blind-aware\n\t// Okabe-Ito inspired base palette.\n\tVisionNormal ColorVision = iota\n\t// VisionProtanopia adapts colors for red-blind (L-cone deficient) vision.\n\tVisionProtanopia\n\t// VisionDeuteranopia adapts colors for green-blind (M-cone deficient) vision.\n\tVisionDeuteranopia\n\t// VisionTritanopia adapts colors for blue-blind (S-cone deficient) vision.\n\tVisionTritanopia\n\t// VisionHighContrast provides maximum luminance separation (WCAG AAA).\n\tVisionHighContrast\n)",
              "doc": "",
              "file": "pkg/a11y/palette.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ParseColorVision",
              "anchor": "ParseColorVision",
              "decl": "func ParseColorVision(s string) (ColorVision, bool)",
              "doc": "ParseColorVision parses a ColorVision name returned by String.\n",
              "file": "pkg/a11y/palette.go",
              "line": 46
            }
          ],
          "methods": [
            {
              "name": "String",
              "anchor": "ColorVision.String",
              "recv": "ColorVision",
              "decl": "func (v ColorVision) String() string",
              "doc": "String returns the canonical lowercase identifier for v.\n",
              "file": "pkg/a11y/palette.go",
              "line": 28
            }
          ]
        },
        {
          "name": "MenuItem",
          "anchor": "MenuItem",
          "decl": "type MenuItem struct {\n\t// ID is an optional stable suffix used to derive a deterministic TestID.\n\tID string\n\t// Label is the item's visible and accessible name.\n\tLabel string\n\t// LabelFunc overrides Label with a reactive label.\n\tLabelFunc func() string\n\t// Hint describes what activating the item does (read after Label and Description).\n\tHint string\n\t// Description provides additional accessible context (AccessibilityDescription).\n\tDescription string\n\t// DescriptionFunc overrides Description with a reactive description.\n\tDescriptionFunc func() string\n\t// Value is an optional reactive textual value (e.g. \"75%\", \"Deuteranopia\"),\n\t// exposed both visually and via AccessibilityValue.\n\tValue func() string\n\t// AccessibilityValue, when non-nil, overrides Value for assistive technology.\n\tAccessibilityValue func() core.AccessibilityValue\n\t// Role overrides the default RoleMenuItem (or RoleMenuItemCheckbox when Checked != nil).\n\tRole core.Role\n\t// Checked, when non-nil, marks the item as a checkable toggle (RoleMenuItemCheckbox).\n\tChecked func() bool\n\t// Disabled, when returning true, prevents activation and skips the item during\n\t// keyboard navigation.\n\tDisabled func() bool\n\t// OnSelect runs when the user activates the item via keyboard, press, or\n\t// screen-reader activate action.\n\tOnSelect func()\n\t// TestID sets an explicit test identifier for this menu item.\n\tTestID string\n}",
          "doc": "MenuItem describes a single interactive entry inside an AccessibleMenu.\n",
          "file": "pkg/a11y/menu.go",
          "line": 11,
          "members": [
            {
              "name": "ID",
              "anchor": "MenuItem.ID",
              "kind": "field",
              "doc": "ID is an optional stable suffix used to derive a deterministic TestID."
            },
            {
              "name": "Label",
              "anchor": "MenuItem.Label",
              "kind": "field",
              "doc": "Label is the item's visible and accessible name."
            },
            {
              "name": "LabelFunc",
              "anchor": "MenuItem.LabelFunc",
              "kind": "field",
              "doc": "LabelFunc overrides Label with a reactive label."
            },
            {
              "name": "Hint",
              "anchor": "MenuItem.Hint",
              "kind": "field",
              "doc": "Hint describes what activating the item does (read after Label and Description)."
            },
            {
              "name": "Description",
              "anchor": "MenuItem.Description",
              "kind": "field",
              "doc": "Description provides additional accessible context (AccessibilityDescription)."
            },
            {
              "name": "DescriptionFunc",
              "anchor": "MenuItem.DescriptionFunc",
              "kind": "field",
              "doc": "DescriptionFunc overrides Description with a reactive description."
            },
            {
              "name": "Value",
              "anchor": "MenuItem.Value",
              "kind": "field",
              "doc": "Value is an optional reactive textual value (e.g. \"75%\", \"Deuteranopia\"),\nexposed both visually and via AccessibilityValue."
            },
            {
              "name": "AccessibilityValue",
              "anchor": "MenuItem.AccessibilityValue",
              "kind": "field",
              "doc": "AccessibilityValue, when non-nil, overrides Value for assistive technology."
            },
            {
              "name": "Role",
              "anchor": "MenuItem.Role",
              "kind": "field",
              "doc": "Role overrides the default RoleMenuItem (or RoleMenuItemCheckbox when Checked != nil)."
            },
            {
              "name": "Checked",
              "anchor": "MenuItem.Checked",
              "kind": "field",
              "doc": "Checked, when non-nil, marks the item as a checkable toggle (RoleMenuItemCheckbox)."
            },
            {
              "name": "Disabled",
              "anchor": "MenuItem.Disabled",
              "kind": "field",
              "doc": "Disabled, when returning true, prevents activation and skips the item during\nkeyboard navigation."
            },
            {
              "name": "OnSelect",
              "anchor": "MenuItem.OnSelect",
              "kind": "field",
              "doc": "OnSelect runs when the user activates the item via keyboard, press, or\nscreen-reader activate action."
            },
            {
              "name": "TestID",
              "anchor": "MenuItem.TestID",
              "kind": "field",
              "doc": "TestID sets an explicit test identifier for this menu item."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MenuProps",
          "anchor": "MenuProps",
          "decl": "type MenuProps struct {\n\t// Label is the accessible name of the menu (e.g. \"Pause Menu\").\n\tLabel string\n\t// Hint is an optional accessibility hint for the menu container.\n\tHint string\n\t// Description is an optional AccessibilityDescription for the menu container.\n\tDescription string\n\t// Items are the menu entries in vertical order.\n\tItems []MenuItem\n\t// Palette sets the menu's colors; when zero, Assist.Palette() (if Assist != nil)\n\t// or PaletteFor(VisionNormal) is used.\n\tPalette Palette\n\t// Assist optionally scales text and supplies a live reactive Palette.\n\tAssist *Assist\n\t// InitialIndex selects the starting focused item (clamped to the first enabled item).\n\tInitialIndex int\n\t// SuppressOpenAnnouncement disables the automatic cx.Announce call on menu mount.\n\tSuppressOpenAnnouncement bool\n\t// OnClose runs when Escape or screen-reader ActionEscape is triggered.\n\tOnClose func()\n\t// TestID overrides the menu container's TestID (default \"a11y-menu\").\n\tTestID string\n\t// Style merges additional styling onto the menu container.\n\tStyle core.Style\n}",
          "doc": "MenuProps configures an AccessibleMenu.\n",
          "file": "pkg/a11y/menu.go",
          "line": 44,
          "members": [
            {
              "name": "Label",
              "anchor": "MenuProps.Label",
              "kind": "field",
              "doc": "Label is the accessible name of the menu (e.g. \"Pause Menu\")."
            },
            {
              "name": "Hint",
              "anchor": "MenuProps.Hint",
              "kind": "field",
              "doc": "Hint is an optional accessibility hint for the menu container."
            },
            {
              "name": "Description",
              "anchor": "MenuProps.Description",
              "kind": "field",
              "doc": "Description is an optional AccessibilityDescription for the menu container."
            },
            {
              "name": "Items",
              "anchor": "MenuProps.Items",
              "kind": "field",
              "doc": "Items are the menu entries in vertical order."
            },
            {
              "name": "Palette",
              "anchor": "MenuProps.Palette",
              "kind": "field",
              "doc": "Palette sets the menu's colors; when zero, Assist.Palette() (if Assist != nil)\nor PaletteFor(VisionNormal) is used."
            },
            {
              "name": "Assist",
              "anchor": "MenuProps.Assist",
              "kind": "field",
              "doc": "Assist optionally scales text and supplies a live reactive Palette."
            },
            {
              "name": "InitialIndex",
              "anchor": "MenuProps.InitialIndex",
              "kind": "field",
              "doc": "InitialIndex selects the starting focused item (clamped to the first enabled item)."
            },
            {
              "name": "SuppressOpenAnnouncement",
              "anchor": "MenuProps.SuppressOpenAnnouncement",
              "kind": "field",
              "doc": "SuppressOpenAnnouncement disables the automatic cx.Announce call on menu mount."
            },
            {
              "name": "OnClose",
              "anchor": "MenuProps.OnClose",
              "kind": "field",
              "doc": "OnClose runs when Escape or screen-reader ActionEscape is triggered."
            },
            {
              "name": "TestID",
              "anchor": "MenuProps.TestID",
              "kind": "field",
              "doc": "TestID overrides the menu container's TestID (default \"a11y-menu\")."
            },
            {
              "name": "Style",
              "anchor": "MenuProps.Style",
              "kind": "field",
              "doc": "Style merges additional styling onto the menu container."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Palette",
          "anchor": "Palette",
          "decl": "type Palette struct {\n\tPlayer     core.Color\n\tAlly       core.Color\n\tEnemy      core.Color\n\tHazard     core.Color\n\tPickup     core.Color\n\tNeutral    core.Color\n\tBackground core.Color\n\tForeground core.Color\n\tHighlight  core.Color\n\tAccent     core.Color\n}",
          "doc": "Palette holds semantic game and UI colors designed to remain distinguishable\nand readable together.\n",
          "file": "pkg/a11y/palette.go",
          "line": 65,
          "members": [
            {
              "name": "Player",
              "anchor": "Palette.Player",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ally",
              "anchor": "Palette.Ally",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Enemy",
              "anchor": "Palette.Enemy",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hazard",
              "anchor": "Palette.Hazard",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pickup",
              "anchor": "Palette.Pickup",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Neutral",
              "anchor": "Palette.Neutral",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Background",
              "anchor": "Palette.Background",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Foreground",
              "anchor": "Palette.Foreground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Highlight",
              "anchor": "Palette.Highlight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Accent",
              "anchor": "Palette.Accent",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PaletteFor",
              "anchor": "PaletteFor",
              "decl": "func PaletteFor(mode ColorVision) Palette",
              "doc": "PaletteFor returns a color-blind-safe preset Palette for mode, grounded in\nthe Okabe-Ito / Wong palette and tuned for WCAG contrast and post-simulation\nseparability.\n",
              "file": "pkg/a11y/palette.go",
              "line": 81
            }
          ],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/ability",
      "name": "ability",
      "dir": "pkg/ability",
      "page": "pkg/ability",
      "synopsis": "Package ability runs gameplay abilities with costs, cooldowns, charges, cast and channel times and conditions, activated by input actions and advanced one fixed game.Loop step at a time.",
      "doc": "Package ability runs gameplay abilities with costs, cooldowns, charges, cast and channel times and conditions, activated by input actions and advanced one fixed game.Loop step at a time.\n\n# Ability Sets\n\nA Set is a versioned YAML file listing abilities. Parse decodes and validates one, refusing unknown fields, duplicate IDs and out-of-range values; Encode writes deterministic YAML that Parse reads back to an equal Set.\n\n# Casters\n\nA Caster runs one character's abilities. NewCaster turns every duration in a Set into whole steps at the loop's rate, rounding up, and Caster.Update advances cooldowns, recharges and the active cast or channel by exactly one step, then activates abilities whose input actions were pressed. Because every timer counts whole steps, the same inputs on the same steps give the same events on the same steps on every machine, and Snapshot and Restore carry that state through save slots, rollback and replays.\n\nCosts are paid through a Resources (a Pool, or an adapter over the game's own stats), conditions through a Condition function, and a game applies an ability's effect when it receives EventActivated through OnEvent.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MaxAbilities",
              "anchor": "MaxAbilities"
            },
            {
              "name": "MaxCharges",
              "anchor": "MaxCharges"
            },
            {
              "name": "MaxDuration",
              "anchor": "MaxDuration"
            },
            {
              "name": "MaxNameLength",
              "anchor": "MaxNameLength"
            }
          ],
          "decl": "const (\n\t// MaxAbilities is the most abilities one Set holds.\n\tMaxAbilities = 1024\n\t// MaxCharges is the largest Def.Charges.\n\tMaxCharges = 99\n\t// MaxDuration is the longest cooldown, recharge, cast, channel or tick interval.\n\tMaxDuration = 24 * time.Hour\n\t// MaxNameLength is the longest ability ID, action, resource or condition name, in bytes.\n\tMaxNameLength = 64\n)",
          "doc": "Limits on an ability set, checked by Validate so a crafted file cannot make a Caster allocate or loop without bound.\n",
          "file": "pkg/ability/def.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the ability set schema version this package reads and writes.\n",
          "file": "pkg/ability/def.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "MaxRate",
              "anchor": "MaxRate"
            }
          ],
          "decl": "const MaxRate = 1_000_000",
          "doc": "MaxRate is the highest step rate NewCaster accepts, in steps a second.\n",
          "file": "pkg/ability/caster.go",
          "line": 11
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(set *Set) ([]byte, error)",
          "doc": "Encode validates set and writes it as deterministic 2-space YAML: fields in a fixed order, abilities in set order, durations as Go duration strings. Parse reads the result back to an equal Set.\n",
          "file": "pkg/ability/def.go",
          "line": 139
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(set *Set) error",
          "doc": "Validate checks set against the version 1 schema rules and the package limits.\n",
          "file": "pkg/ability/def.go",
          "line": 157
        }
      ],
      "types": [
        {
          "name": "AbilityState",
          "anchor": "AbilityState",
          "decl": "type AbilityState struct {\n\t// ID is the ability's ID.\n\tID string `json:\"id\" yaml:\"id\"`\n\t// Charges is how many uses are stored.\n\tCharges int `json:\"charges\" yaml:\"charges\"`\n\t// Cooldown is how many steps of cooldown are left.\n\tCooldown int `json:\"cooldown,omitempty\" yaml:\"cooldown,omitempty\"`\n\t// Recharge is how many steps are left until the next charge comes back.\n\tRecharge int `json:\"recharge,omitempty\" yaml:\"recharge,omitempty\"`\n}",
          "doc": "AbilityState is one ability's charges and timers in a State.\n",
          "file": "pkg/ability/state.go",
          "line": 23,
          "members": [
            {
              "name": "ID",
              "anchor": "AbilityState.ID",
              "kind": "field",
              "doc": "ID is the ability's ID."
            },
            {
              "name": "Charges",
              "anchor": "AbilityState.Charges",
              "kind": "field",
              "doc": "Charges is how many uses are stored."
            },
            {
              "name": "Cooldown",
              "anchor": "AbilityState.Cooldown",
              "kind": "field",
              "doc": "Cooldown is how many steps of cooldown are left."
            },
            {
              "name": "Recharge",
              "anchor": "AbilityState.Recharge",
              "kind": "field",
              "doc": "Recharge is how many steps are left until the next charge comes back."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Actions",
          "anchor": "Actions",
          "decl": "type Actions interface {\n\t// Pressed reports whether the action is held on this step.\n\tPressed(name string) bool\n\t// JustPressed reports whether the action became held on this step.\n\tJustPressed(name string) bool\n}",
          "doc": "Actions is the input a Caster reads each step: the named actions an input.Actions samples once per fixed game.Loop step. *input.Actions satisfies it, and so can a replay or network input source.\n",
          "file": "pkg/ability/caster.go",
          "line": 14,
          "members": [
            {
              "name": "Pressed",
              "anchor": "Actions.Pressed",
              "kind": "method",
              "doc": "Pressed reports whether the action is held on this step."
            },
            {
              "name": "JustPressed",
              "anchor": "Actions.JustPressed",
              "kind": "method",
              "doc": "JustPressed reports whether the action became held on this step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ActiveState",
          "anchor": "ActiveState",
          "decl": "type ActiveState struct {\n\t// Ability is the ability's ID.\n\tAbility string `json:\"ability\" yaml:\"ability\"`\n\t// Phase is PhaseCasting or PhaseChanneling.\n\tPhase Phase `json:\"phase\" yaml:\"phase\"`\n\t// Elapsed is how many steps of Phase have run.\n\tElapsed int `json:\"elapsed\" yaml:\"elapsed\"`\n}",
          "doc": "ActiveState is the ability casting or channeling in a State.\n",
          "file": "pkg/ability/state.go",
          "line": 35,
          "members": [
            {
              "name": "Ability",
              "anchor": "ActiveState.Ability",
              "kind": "field",
              "doc": "Ability is the ability's ID."
            },
            {
              "name": "Phase",
              "anchor": "ActiveState.Phase",
              "kind": "field",
              "doc": "Phase is PhaseCasting or PhaseChanneling."
            },
            {
              "name": "Elapsed",
              "anchor": "ActiveState.Elapsed",
              "kind": "field",
              "doc": "Elapsed is how many steps of Phase have run."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Caster",
          "anchor": "Caster",
          "decl": "type Caster struct {\n\t// Resources pays ability costs. When nil, an ability with costs cannot be activated.\n\tResources Resources\n\t// Condition reports whether a named condition holds, such as \"grounded\" or \"stunned\". When nil, every condition is false, so an ability that needs one cannot be activated and an ability that needs \"!name\" can.\n\tCondition func(name string) bool\n\t// OnEvent, when set, receives every Event in the order it happened. It may call the Caster's methods, including TryActivate and Cancel; events those cause follow the current one. Events that happened before a Reset or Restore called from OnEvent are still delivered, and when that call is made during Update, Update goes on to read input against the reset or restored state.\n\tOnEvent func(Event)\n\t// contains filtered or unexported fields\n}",
          "doc": "Caster runs one character's abilities, one fixed step at a time.\n\nEvery duration in its Set becomes a whole number of steps at its rate, rounded up, and every timer counts whole steps, so the same inputs on the same steps produce the same events on the same steps on any machine. Call Update once per game.Loop step, after stepping the input.Actions it reads.\n\nAt most one ability casts or channels at a time. Its methods, and OnEvent, run on the goroutine that calls Update, as Loop.Update does.\n",
          "file": "pkg/ability/caster.go",
          "line": 175,
          "members": [
            {
              "name": "Resources",
              "anchor": "Caster.Resources",
              "kind": "field",
              "doc": "Resources pays ability costs. When nil, an ability with costs cannot be activated."
            },
            {
              "name": "Condition",
              "anchor": "Caster.Condition",
              "kind": "field",
              "doc": "Condition reports whether a named condition holds, such as \"grounded\" or \"stunned\". When nil, every condition is false, so an ability that needs one cannot be activated and an ability that needs \"!name\" can."
            },
            {
              "name": "OnEvent",
              "anchor": "Caster.OnEvent",
              "kind": "field",
              "doc": "OnEvent, when set, receives every Event in the order it happened. It may call the Caster's methods, including TryActivate and Cancel; events those cause follow the current one. Events that happened before a Reset or Restore called from OnEvent are still delivered, and when that call is made during Update, Update goes on to read input against the reset or restored state."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCaster",
              "anchor": "NewCaster",
              "decl": "func NewCaster(set *Set, rate int) (*Caster, error)",
              "doc": "NewCaster returns a Caster for set at rate steps a second, with every ability idle, charged and off cooldown. A rate of 0 or less means 60, as game.Loop's Rate does. The Caster keeps its own copy of set.\n",
              "file": "pkg/ability/caster.go",
              "line": 197
            }
          ],
          "methods": [
            {
              "name": "Active",
              "anchor": "Caster.Active",
              "recv": "*Caster",
              "decl": "func (c *Caster) Active() (id string, phase Phase, elapsed int, ok bool)",
              "doc": "Active returns the ID, phase and elapsed steps of the ability casting or channeling now, or ok false when none is.\n",
              "file": "pkg/ability/caster.go",
              "line": 466
            },
            {
              "name": "CanActivate",
              "anchor": "Caster.CanActivate",
              "recv": "*Caster",
              "decl": "func (c *Caster) CanActivate(id string) Reason",
              "doc": "CanActivate reports whether TryActivate(id) would activate the ability now, and if not, the first reason it would not, checked in this order: ReasonUnknown, ReasonBusy, ReasonCooldown, ReasonNoCharges, ReasonCondition, ReasonCost. It changes nothing.\n",
              "file": "pkg/ability/caster.go",
              "line": 402
            },
            {
              "name": "Cancel",
              "anchor": "Caster.Cancel",
              "recv": "*Caster",
              "decl": "func (c *Caster) Cancel() bool",
              "doc": "Cancel stops the active cast or channel and sends EventCanceled. A canceled cast spends nothing; a canceled channel keeps what its cast spent. It reports whether an ability was active.\n",
              "file": "pkg/ability/caster.go",
              "line": 454
            },
            {
              "name": "Duration",
              "anchor": "Caster.Duration",
              "recv": "*Caster",
              "decl": "func (c *Caster) Duration(steps int) time.Duration",
              "doc": "Duration returns how much game time steps of the Caster's fixed step last, rounded down to a nanosecond, for showing a cooldown or cast bar. A negative step count gives 0, and a count longer than the largest time.Duration gives that largest Duration.\n",
              "file": "pkg/ability/caster.go",
              "line": 276
            },
            {
              "name": "Rate",
              "anchor": "Caster.Rate",
              "recv": "*Caster",
              "decl": "func (c *Caster) Rate() int",
              "doc": "Rate returns the Caster's steps a second.\n",
              "file": "pkg/ability/caster.go",
              "line": 262
            },
            {
              "name": "Reset",
              "anchor": "Caster.Reset",
              "recv": "*Caster",
              "decl": "func (c *Caster) Reset()",
              "doc": "Reset returns every ability to idle, fully charged and off cooldown, without sending events. The step count is kept. Called from OnEvent, it still delivers the events that happened before it, after the current one.\n",
              "file": "pkg/ability/caster.go",
              "line": 502
            },
            {
              "name": "Restore",
              "anchor": "Caster.Restore",
              "recv": "*Caster",
              "decl": "func (c *Caster) Restore(st *State) error",
              "doc": "Restore replaces the Caster's state with st, without sending events. It refuses, and changes nothing, when st's rate or abilities differ from the Caster's or a value is out of the range a Caster could reach. Called from OnEvent, it still delivers the events that happened before it, after the current one.\n",
              "file": "pkg/ability/state.go",
              "line": 62
            },
            {
              "name": "Snapshot",
              "anchor": "Caster.Snapshot",
              "recv": "*Caster",
              "decl": "func (c *Caster) Snapshot() State",
              "doc": "Snapshot returns the Caster's state. Restoring it into a Caster made from the same Set at the same rate, and giving both the same inputs, produces the same events on the same steps.\n",
              "file": "pkg/ability/state.go",
              "line": 45
            },
            {
              "name": "Status",
              "anchor": "Caster.Status",
              "recv": "*Caster",
              "decl": "func (c *Caster) Status(id string) (st Status, ok bool)",
              "doc": "Status returns the state of the ability id, or ok false when the set has no such ability.\n",
              "file": "pkg/ability/caster.go",
              "line": 474
            },
            {
              "name": "Step",
              "anchor": "Caster.Step",
              "recv": "*Caster",
              "decl": "func (c *Caster) Step() uint64",
              "doc": "Step returns how many times Update has run.\n",
              "file": "pkg/ability/caster.go",
              "line": 265
            },
            {
              "name": "Steps",
              "anchor": "Caster.Steps",
              "recv": "*Caster",
              "decl": "func (c *Caster) Steps(d time.Duration) int",
              "doc": "Steps returns d in the Caster's whole steps, rounded up, as it counts every duration in its Set.\n",
              "file": "pkg/ability/caster.go",
              "line": 268
            },
            {
              "name": "TryActivate",
              "anchor": "Caster.TryActivate",
              "recv": "*Caster",
              "decl": "func (c *Caster) TryActivate(id string) Reason",
              "doc": "TryActivate activates the ability id if CanActivate allows it, and returns the reason it did not otherwise. An activated ability starts casting; one with no cast time takes effect at once, before TryActivate returns, spending its costs and a charge and starting its cooldown.\n",
              "file": "pkg/ability/caster.go",
              "line": 428
            },
            {
              "name": "Update",
              "anchor": "Caster.Update",
              "recv": "*Caster",
              "decl": "func (c *Caster) Update(in Actions)",
              "doc": "Update advances the Caster by one fixed step.\n\nIn order, it: counts the step; advances every ability's cooldown and recharge, in set order; advances the active cast or channel, interrupting it if a condition no longer holds, canceling a TriggerHold ability whose action is no longer held, and completing a cast or ending a channel whose time is up; then, when in is not nil, tries each ability whose action was just pressed (TriggerPress) or is held (TriggerHold), in set order, activating at most one ability per action. So an ability whose cooldown ends on a step can be activated again on that same step.\n",
              "file": "pkg/ability/caster.go",
              "line": 291
            }
          ]
        },
        {
          "name": "Cost",
          "anchor": "Cost",
          "decl": "type Cost struct {\n\t// Resource names the resource, such as \"mana\" or \"stamina\".\n\tResource string `yaml:\"resource\"`\n\t// Amount is how much of Resource one use spends; it must be finite and positive.\n\tAmount float64 `yaml:\"amount\"`\n}",
          "doc": "Cost is one resource an ability spends.\n",
          "file": "pkg/ability/def.go",
          "line": 78,
          "members": [
            {
              "name": "Resource",
              "anchor": "Cost.Resource",
              "kind": "field",
              "doc": "Resource names the resource, such as \"mana\" or \"stamina\"."
            },
            {
              "name": "Amount",
              "anchor": "Cost.Amount",
              "kind": "field",
              "doc": "Amount is how much of Resource one use spends; it must be finite and positive."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Def",
          "anchor": "Def",
          "decl": "type Def struct {\n\t// ID uniquely names the ability within its Set. It is 1 to MaxNameLength bytes of ASCII letters, digits, '_', '-' and '.'.\n\tID string `yaml:\"id\"`\n\t// Name is an optional display name or localization key.\n\tName string `yaml:\"name,omitempty\"`\n\t// Action is the input action that activates the ability, as bound on an input.Actions. Empty means only code activates it, through Caster.TryActivate.\n\tAction string `yaml:\"action,omitempty\"`\n\t// Trigger is TriggerPress or TriggerHold; empty means TriggerPress. TriggerHold needs an Action.\n\tTrigger Trigger `yaml:\"trigger,omitempty\"`\n\t// Costs are the resources one use spends, each resource at most once. They are checked when activation starts and spent when the cast completes.\n\tCosts []Cost `yaml:\"costs,omitempty\"`\n\t// Cooldown is the shortest time between two uses, counted from the step a use completes its cast. It applies even while charges remain.\n\tCooldown time.Duration `yaml:\"cooldown,omitempty\"`\n\t// Charges is how many uses the ability stores, 0 meaning 1. More than one charge needs a Recharge.\n\tCharges int `yaml:\"charges,omitempty\"`\n\t// Recharge is how long one spent charge takes to come back. Spent charges come back one after another, not all at once. Zero means a use never spends a charge.\n\tRecharge time.Duration `yaml:\"recharge,omitempty\"`\n\t// CastTime is how long the ability casts before it takes effect. Zero takes effect on the step it is activated.\n\tCastTime time.Duration `yaml:\"castTime,omitempty\"`\n\t// ChannelTime is how long the ability channels after it takes effect. Zero means it does not channel.\n\tChannelTime time.Duration `yaml:\"channelTime,omitempty\"`\n\t// TickInterval is how often a channel ticks. Zero means the channel does not tick; otherwise it needs a ChannelTime and must not exceed it.\n\tTickInterval time.Duration `yaml:\"tickInterval,omitempty\"`\n\t// Conditions are names that must all hold to start the ability and to keep casting or channeling it. A leading '!' means the named condition must not hold, such as \"!stunned\". Each condition appears at most once.\n\tConditions []string `yaml:\"conditions,omitempty,flow\"`\n}",
          "doc": "Def defines one ability: what using it costs, how often it can be used, how long it takes and when it is allowed.\n\nDurations are written as Go duration strings such as \"500ms\" or \"1m30s\". A Caster turns each into a whole number of its fixed steps, rounding up, so a duration that is not a multiple of the step still waits at least that long.\n",
          "file": "pkg/ability/def.go",
          "line": 50,
          "members": [
            {
              "name": "ID",
              "anchor": "Def.ID",
              "kind": "field",
              "doc": "ID uniquely names the ability within its Set. It is 1 to MaxNameLength bytes of ASCII letters, digits, '_', '-' and '.'."
            },
            {
              "name": "Name",
              "anchor": "Def.Name",
              "kind": "field",
              "doc": "Name is an optional display name or localization key."
            },
            {
              "name": "Action",
              "anchor": "Def.Action",
              "kind": "field",
              "doc": "Action is the input action that activates the ability, as bound on an input.Actions. Empty means only code activates it, through Caster.TryActivate."
            },
            {
              "name": "Trigger",
              "anchor": "Def.Trigger",
              "kind": "field",
              "doc": "Trigger is TriggerPress or TriggerHold; empty means TriggerPress. TriggerHold needs an Action."
            },
            {
              "name": "Costs",
              "anchor": "Def.Costs",
              "kind": "field",
              "doc": "Costs are the resources one use spends, each resource at most once. They are checked when activation starts and spent when the cast completes."
            },
            {
              "name": "Cooldown",
              "anchor": "Def.Cooldown",
              "kind": "field",
              "doc": "Cooldown is the shortest time between two uses, counted from the step a use completes its cast. It applies even while charges remain."
            },
            {
              "name": "Charges",
              "anchor": "Def.Charges",
              "kind": "field",
              "doc": "Charges is how many uses the ability stores, 0 meaning 1. More than one charge needs a Recharge."
            },
            {
              "name": "Recharge",
              "anchor": "Def.Recharge",
              "kind": "field",
              "doc": "Recharge is how long one spent charge takes to come back. Spent charges come back one after another, not all at once. Zero means a use never spends a charge."
            },
            {
              "name": "CastTime",
              "anchor": "Def.CastTime",
              "kind": "field",
              "doc": "CastTime is how long the ability casts before it takes effect. Zero takes effect on the step it is activated."
            },
            {
              "name": "ChannelTime",
              "anchor": "Def.ChannelTime",
              "kind": "field",
              "doc": "ChannelTime is how long the ability channels after it takes effect. Zero means it does not channel."
            },
            {
              "name": "TickInterval",
              "anchor": "Def.TickInterval",
              "kind": "field",
              "doc": "TickInterval is how often a channel ticks. Zero means the channel does not tick; otherwise it needs a ChannelTime and must not exceed it."
            },
            {
              "name": "Conditions",
              "anchor": "Def.Conditions",
              "kind": "field",
              "doc": "Conditions are names that must all hold to start the ability and to keep casting or channeling it. A leading '!' means the named condition must not hold, such as \"!stunned\". Each condition appears at most once."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveTrigger",
              "anchor": "Def.EffectiveTrigger",
              "recv": "*Def",
              "decl": "func (d *Def) EffectiveTrigger() Trigger",
              "doc": "EffectiveTrigger returns Trigger, or TriggerPress when Trigger is empty.\n",
              "file": "pkg/ability/def.go",
              "line": 94
            },
            {
              "name": "MaxChargesOrOne",
              "anchor": "Def.MaxChargesOrOne",
              "recv": "*Def",
              "decl": "func (d *Def) MaxChargesOrOne() int",
              "doc": "MaxChargesOrOne returns Charges, or 1 when Charges is 0.\n",
              "file": "pkg/ability/def.go",
              "line": 86
            }
          ]
        },
        {
          "name": "Event",
          "anchor": "Event",
          "decl": "type Event struct {\n\t// Kind is what happened.\n\tKind EventKind\n\t// Ability is the ability's ID.\n\tAbility string\n\t// Step is the Caster's step count when it happened: the number of Update calls so far, including the one running.\n\tStep uint64\n\t// Reason is why an EventInterrupted happened, and ReasonOK for every other kind.\n\tReason Reason\n\t// Tick counts an EventChannelTick's ticks within its channel, from 1; it is 0 for every other kind.\n\tTick int\n}",
          "doc": "Event reports one change to an ability's state.\n",
          "file": "pkg/ability/caster.go",
          "line": 113,
          "members": [
            {
              "name": "Kind",
              "anchor": "Event.Kind",
              "kind": "field",
              "doc": "Kind is what happened."
            },
            {
              "name": "Ability",
              "anchor": "Event.Ability",
              "kind": "field",
              "doc": "Ability is the ability's ID."
            },
            {
              "name": "Step",
              "anchor": "Event.Step",
              "kind": "field",
              "doc": "Step is the Caster's step count when it happened: the number of Update calls so far, including the one running."
            },
            {
              "name": "Reason",
              "anchor": "Event.Reason",
              "kind": "field",
              "doc": "Reason is why an EventInterrupted happened, and ReasonOK for every other kind."
            },
            {
              "name": "Tick",
              "anchor": "Event.Tick",
              "kind": "field",
              "doc": "Tick counts an EventChannelTick's ticks within its channel, from 1; it is 0 for every other kind."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EventKind",
          "anchor": "EventKind",
          "decl": "type EventKind uint8",
          "doc": "EventKind says what happened to an ability.\n",
          "file": "pkg/ability/caster.go",
          "line": 81,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "EventStarted",
                  "anchor": "EventStarted"
                },
                {
                  "name": "EventActivated",
                  "anchor": "EventActivated"
                },
                {
                  "name": "EventChannelTick",
                  "anchor": "EventChannelTick"
                },
                {
                  "name": "EventChannelEnded",
                  "anchor": "EventChannelEnded"
                },
                {
                  "name": "EventCanceled",
                  "anchor": "EventCanceled"
                },
                {
                  "name": "EventInterrupted",
                  "anchor": "EventInterrupted"
                },
                {
                  "name": "EventCooldownEnded",
                  "anchor": "EventCooldownEnded"
                },
                {
                  "name": "EventChargeRestored",
                  "anchor": "EventChargeRestored"
                }
              ],
              "decl": "const (\n\t// EventStarted is sent when an ability is activated and starts casting. An ability with no cast time sends it on the same step as EventActivated.\n\tEventStarted EventKind = iota + 1\n\t// EventActivated is sent when an ability's cast completes and it takes effect: its costs are spent, a charge is used and its cooldown starts. This is where a game applies the ability's effect.\n\tEventActivated\n\t// EventChannelTick is sent each TickInterval of a channel; Event.Tick counts the ticks from 1.\n\tEventChannelTick\n\t// EventChannelEnded is sent when a channel runs its full ChannelTime.\n\tEventChannelEnded\n\t// EventCanceled is sent when Caster.Cancel stops a cast or channel, or a TriggerHold ability's action is released.\n\tEventCanceled\n\t// EventInterrupted is sent when a cast or channel stops because a condition no longer holds (Event.Reason is ReasonCondition) or a cost is no longer affordable when the cast completes (ReasonCost).\n\tEventInterrupted\n\t// EventCooldownEnded is sent on the step an ability's cooldown reaches zero.\n\tEventCooldownEnded\n\t// EventChargeRestored is sent on the step a spent charge comes back.\n\tEventChargeRestored\n)",
              "doc": "",
              "file": "pkg/ability/caster.go",
              "line": 83
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "EventKind.String",
              "recv": "EventKind",
              "decl": "func (k EventKind) String() string",
              "doc": "String returns a short lower-case name for k.\n",
              "file": "pkg/ability/caster.go",
              "line": 105
            }
          ]
        },
        {
          "name": "Phase",
          "anchor": "Phase",
          "decl": "type Phase string",
          "doc": "Phase is what an ability is doing.\n",
          "file": "pkg/ability/caster.go",
          "line": 39,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PhaseIdle",
                  "anchor": "PhaseIdle"
                },
                {
                  "name": "PhaseCasting",
                  "anchor": "PhaseCasting"
                },
                {
                  "name": "PhaseChanneling",
                  "anchor": "PhaseChanneling"
                }
              ],
              "decl": "const (\n\t// PhaseIdle is an ability that is neither casting nor channeling.\n\tPhaseIdle Phase = \"idle\"\n\t// PhaseCasting is an ability counting down its cast time; nothing is spent yet.\n\tPhaseCasting Phase = \"casting\"\n\t// PhaseChanneling is an ability that took effect and is channeling.\n\tPhaseChanneling Phase = \"channeling\"\n)",
              "doc": "",
              "file": "pkg/ability/caster.go",
              "line": 41
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Pool",
          "anchor": "Pool",
          "decl": "type Pool map[string]float64",
          "doc": "Pool is a Resources kept in a map from resource name to amount. A missing resource has 0.\n",
          "file": "pkg/ability/caster.go",
          "line": 30,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Amount",
              "anchor": "Pool.Amount",
              "recv": "Pool",
              "decl": "func (p Pool) Amount(resource string) float64",
              "doc": "Amount returns p[resource].\n",
              "file": "pkg/ability/caster.go",
              "line": 33
            },
            {
              "name": "Spend",
              "anchor": "Pool.Spend",
              "recv": "Pool",
              "decl": "func (p Pool) Spend(resource string, amount float64)",
              "doc": "Spend subtracts amount from p[resource].\n",
              "file": "pkg/ability/caster.go",
              "line": 36
            }
          ]
        },
        {
          "name": "Reason",
          "anchor": "Reason",
          "decl": "type Reason uint8",
          "doc": "Reason says why an ability could not be activated or why its cast stopped. ReasonOK means it could.\n",
          "file": "pkg/ability/caster.go",
          "line": 51,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReasonOK",
                  "anchor": "ReasonOK"
                },
                {
                  "name": "ReasonUnknown",
                  "anchor": "ReasonUnknown"
                },
                {
                  "name": "ReasonBusy",
                  "anchor": "ReasonBusy"
                },
                {
                  "name": "ReasonCooldown",
                  "anchor": "ReasonCooldown"
                },
                {
                  "name": "ReasonNoCharges",
                  "anchor": "ReasonNoCharges"
                },
                {
                  "name": "ReasonCondition",
                  "anchor": "ReasonCondition"
                },
                {
                  "name": "ReasonCost",
                  "anchor": "ReasonCost"
                }
              ],
              "decl": "const (\n\t// ReasonOK means the ability was (or can be) activated.\n\tReasonOK Reason = iota\n\t// ReasonUnknown means no ability in the set has the ID.\n\tReasonUnknown\n\t// ReasonBusy means an ability is already casting or channeling.\n\tReasonBusy\n\t// ReasonCooldown means the ability's cooldown is running.\n\tReasonCooldown\n\t// ReasonNoCharges means every charge of the ability is spent.\n\tReasonNoCharges\n\t// ReasonCondition means one of the ability's conditions does not hold.\n\tReasonCondition\n\t// ReasonCost means a resource the ability costs is short.\n\tReasonCost\n)",
              "doc": "",
              "file": "pkg/ability/caster.go",
              "line": 53
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Reason.String",
              "recv": "Reason",
              "decl": "func (r Reason) String() string",
              "doc": "String returns a short lower-case name for r.\n",
              "file": "pkg/ability/caster.go",
              "line": 73
            }
          ]
        },
        {
          "name": "Resources",
          "anchor": "Resources",
          "decl": "type Resources interface {\n\t// Amount returns how much of resource is available.\n\tAmount(resource string) float64\n\t// Spend takes amount of resource away.\n\tSpend(resource string, amount float64)\n}",
          "doc": "Resources holds what abilities spend. A Caster checks Amount before it starts an ability and again before it spends, and calls Spend only after every cost of the use is affordable.\n",
          "file": "pkg/ability/caster.go",
          "line": 22,
          "members": [
            {
              "name": "Amount",
              "anchor": "Resources.Amount",
              "kind": "method",
              "doc": "Amount returns how much of resource is available."
            },
            {
              "name": "Spend",
              "anchor": "Resources.Spend",
              "kind": "method",
              "doc": "Spend takes amount of resource away."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Set",
          "anchor": "Set",
          "decl": "type Set struct {\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Abilities are the set's abilities. Their order is the order a Caster advances them in, and the order it tries abilities that share an action.\n\tAbilities []Def `yaml:\"abilities\"`\n}",
          "doc": "Set is the root of a versioned YAML ability set: the abilities one kind of character, unit or item can use.\n",
          "file": "pkg/ability/def.go",
          "line": 40,
          "members": [
            {
              "name": "Version",
              "anchor": "Set.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "Abilities",
              "anchor": "Set.Abilities",
              "kind": "field",
              "doc": "Abilities are the set's abilities. Their order is the order a Caster advances them in, and the order it tries abilities that share an action."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Set, error)",
              "doc": "Parse decodes a YAML ability set and validates it. Unknown fields, duplicate keys and trailing YAML documents are refused.\n",
              "file": "pkg/ability/def.go",
              "line": 102
            }
          ],
          "methods": []
        },
        {
          "name": "State",
          "anchor": "State",
          "decl": "type State struct {\n\t// Rate is the Caster's steps a second.\n\tRate int `json:\"rate\" yaml:\"rate\"`\n\t// Step is the Caster's step count.\n\tStep uint64 `json:\"step\" yaml:\"step\"`\n\t// Abilities holds each ability's charges and timers, in set order.\n\tAbilities []AbilityState `json:\"abilities\" yaml:\"abilities\"`\n\t// Active is the ability casting or channeling, or nil when none is.\n\tActive *ActiveState `json:\"active,omitempty\" yaml:\"active,omitempty\"`\n}",
          "doc": "State is a Caster's runtime state at the end of a step, for save slots, rollback netcode and replays. It holds step counts, not durations, so a restored Caster continues on exactly the same steps.\n\nIt encodes as JSON or YAML with the field names below. Restore refuses a State taken from a Caster with a different rate or ability set.\n",
          "file": "pkg/ability/state.go",
          "line": 11,
          "members": [
            {
              "name": "Rate",
              "anchor": "State.Rate",
              "kind": "field",
              "doc": "Rate is the Caster's steps a second."
            },
            {
              "name": "Step",
              "anchor": "State.Step",
              "kind": "field",
              "doc": "Step is the Caster's step count."
            },
            {
              "name": "Abilities",
              "anchor": "State.Abilities",
              "kind": "field",
              "doc": "Abilities holds each ability's charges and timers, in set order."
            },
            {
              "name": "Active",
              "anchor": "State.Active",
              "kind": "field",
              "doc": "Active is the ability casting or channeling, or nil when none is."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Status",
          "anchor": "Status",
          "decl": "type Status struct {\n\t// Charges is how many uses are stored now, and MaxCharges the most it stores.\n\tCharges, MaxCharges int\n\t// Cooldown is how many steps of cooldown are left, out of CooldownTotal for a full cooldown.\n\tCooldown, CooldownTotal int\n\t// Recharge is how many steps are left until the next charge comes back, out of RechargeTotal for one charge; 0 when no charge is spent.\n\tRecharge, RechargeTotal int\n\t// Phase is PhaseCasting or PhaseChanneling while the ability is the active one, and PhaseIdle otherwise.\n\tPhase Phase\n\t// Elapsed is how many steps of Phase have run, out of PhaseTotal; both are 0 while idle.\n\tElapsed, PhaseTotal int\n}",
          "doc": "Status is an ability's state at the current step. Times are in the Caster's steps; Caster.Duration turns them into game time for display.\n",
          "file": "pkg/ability/caster.go",
          "line": 127,
          "members": [
            {
              "name": "Charges",
              "anchor": "Status.Charges",
              "kind": "field",
              "doc": "Charges is how many uses are stored now, and MaxCharges the most it stores."
            },
            {
              "name": "MaxCharges",
              "anchor": "Status.MaxCharges",
              "kind": "field",
              "doc": "Charges is how many uses are stored now, and MaxCharges the most it stores."
            },
            {
              "name": "Cooldown",
              "anchor": "Status.Cooldown",
              "kind": "field",
              "doc": "Cooldown is how many steps of cooldown are left, out of CooldownTotal for a full cooldown."
            },
            {
              "name": "CooldownTotal",
              "anchor": "Status.CooldownTotal",
              "kind": "field",
              "doc": "Cooldown is how many steps of cooldown are left, out of CooldownTotal for a full cooldown."
            },
            {
              "name": "Recharge",
              "anchor": "Status.Recharge",
              "kind": "field",
              "doc": "Recharge is how many steps are left until the next charge comes back, out of RechargeTotal for one charge; 0 when no charge is spent."
            },
            {
              "name": "RechargeTotal",
              "anchor": "Status.RechargeTotal",
              "kind": "field",
              "doc": "Recharge is how many steps are left until the next charge comes back, out of RechargeTotal for one charge; 0 when no charge is spent."
            },
            {
              "name": "Phase",
              "anchor": "Status.Phase",
              "kind": "field",
              "doc": "Phase is PhaseCasting or PhaseChanneling while the ability is the active one, and PhaseIdle otherwise."
            },
            {
              "name": "Elapsed",
              "anchor": "Status.Elapsed",
              "kind": "field",
              "doc": "Elapsed is how many steps of Phase have run, out of PhaseTotal; both are 0 while idle."
            },
            {
              "name": "PhaseTotal",
              "anchor": "Status.PhaseTotal",
              "kind": "field",
              "doc": "Elapsed is how many steps of Phase have run, out of PhaseTotal; both are 0 while idle."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Ready",
              "anchor": "Status.Ready",
              "recv": "Status",
              "decl": "func (s Status) Ready() bool",
              "doc": "Ready reports whether the ability is idle with a charge and no cooldown. It does not check conditions, costs or whether another ability is busy; Caster.CanActivate does.\n",
              "file": "pkg/ability/caster.go",
              "line": 141
            }
          ]
        },
        {
          "name": "Trigger",
          "anchor": "Trigger",
          "decl": "type Trigger string",
          "doc": "Trigger says which input edge of an ability's action tries to activate it.\n",
          "file": "pkg/ability/def.go",
          "line": 30,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TriggerPress",
                  "anchor": "TriggerPress"
                },
                {
                  "name": "TriggerHold",
                  "anchor": "TriggerHold"
                }
              ],
              "decl": "const (\n\t// TriggerPress tries to activate the ability on the step its action is first pressed. It is the default when Def.Trigger is empty.\n\tTriggerPress Trigger = \"press\"\n\t// TriggerHold tries to activate the ability on every step its action is held, and cancels its cast or channel on the step the action is no longer held.\n\tTriggerHold Trigger = \"hold\"\n)",
              "doc": "",
              "file": "pkg/ability/def.go",
              "line": 32
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/accounts",
      "name": "accounts",
      "dir": "pkg/accounts",
      "page": "pkg/accounts",
      "synopsis": "Package accounts is a self-hostable player account service: guest accounts that upgrade to email sign-in or to a linked OAuth or platform identity (Game Center, Play Games, Steam), and short-lived tokens a game server verifies offline.",
      "doc": "Package accounts is a self-hostable player account service: guest accounts that upgrade to email sign-in or to a linked OAuth or platform identity (Game Center, Play Games, Steam), and short-lived tokens a game server verifies offline.\n\n# Accounts, sessions and tokens\n\nAn account is an ID. A game keys everything it keeps for a player (saves, progress, purchases) by that ID, so upgrading a guest by linking an email address or an identity keeps the player's data: the ID does not change.\n\nEvery sign-in (CreateGuest, Register, SignInEmail, SignInIdentity) opens a session on the device and returns Credentials:\n  - Session is a long-lived secret the device stores to get new tokens with Refresh, revoked by SignOut. It is the only credential a guest has.\n  - Token is a short-lived signed token (package token) the game sends to its server, which verifies it with a token.Verifier and no network call. It expires after the configured TTL.\n\n# Identities\n\nA provider such as \"gamecenter\", \"playgames\", \"steam\" or \"google\" is an IdentityVerifier the service is given: it turns a credential from the device (a signed Game Center identity, a Play Games server auth code, a Steam session ticket, an OpenID Connect ID token) into the provider's stable subject for the player. Linking an identity to an account lets a second device sign in to the same account with SignInIdentity.\n\n# Secrets\n\nPasswords are stored only as argon2id hashes (a memory-hard hash). Session secrets are stored only as SHA-256 hashes. Credentials hold their secrets as Secret values, which print, log and marshal as \"[redacted]\"; the service never logs a password, a session secret, a token or an identity credential.\n\n# Storage\n\nThe service keeps its records in a Store: NewMemoryStore for tests and prototypes, or the SQL stores of the sqlitestore and pgstore packages, which share sqlstore. Package storetest checks any Store against the contract.\n\n# Configuration\n\nConfig is a versioned YAML file (ParseConfig, Config.Marshal); Service.Handler serves the service over HTTP with JSON bodies.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "ConfigVersion",
              "anchor": "ConfigVersion"
            }
          ],
          "decl": "const ConfigVersion = 1",
          "doc": "ConfigVersion is the configuration file schema version this package reads and writes.\n",
          "file": "pkg/accounts/config.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "MaxPasswordBytes",
              "anchor": "MaxPasswordBytes"
            }
          ],
          "decl": "const MaxPasswordBytes = 1024",
          "doc": "MaxPasswordBytes is the longest password, in bytes, the service hashes.\n",
          "file": "pkg/accounts/config.go",
          "line": 55
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNotFound",
              "anchor": "ErrNotFound"
            },
            {
              "name": "ErrTaken",
              "anchor": "ErrTaken"
            },
            {
              "name": "ErrAlreadyLinked",
              "anchor": "ErrAlreadyLinked"
            },
            {
              "name": "ErrInvalidCredentials",
              "anchor": "ErrInvalidCredentials"
            },
            {
              "name": "ErrInvalidEmail",
              "anchor": "ErrInvalidEmail"
            },
            {
              "name": "ErrWeakPassword",
              "anchor": "ErrWeakPassword"
            },
            {
              "name": "ErrUnknownProvider",
              "anchor": "ErrUnknownProvider"
            },
            {
              "name": "ErrGuestsDisabled",
              "anchor": "ErrGuestsDisabled"
            }
          ],
          "decl": "var (\n\t// ErrNotFound reports an account, session or identity that does not exist.\n\tErrNotFound = errors.New(\"accounts: not found\")\n\t// ErrTaken reports an email address or identity that belongs to another account.\n\tErrTaken = errors.New(\"accounts: already belongs to another account\")\n\t// ErrAlreadyLinked reports an account that already has an email address, or already has an identity of the provider.\n\tErrAlreadyLinked = errors.New(\"accounts: account already linked\")\n\t// ErrInvalidCredentials reports a wrong email address or password, an unknown or revoked session, or an identity credential its verifier refused. It never says which.\n\tErrInvalidCredentials = errors.New(\"accounts: invalid credentials\")\n\t// ErrInvalidEmail reports an email address that is not a plain address.\n\tErrInvalidEmail = errors.New(\"accounts: invalid email address\")\n\t// ErrWeakPassword reports a password shorter than the configured minimum or longer than MaxPasswordBytes.\n\tErrWeakPassword = errors.New(\"accounts: password too short or too long\")\n\t// ErrUnknownProvider reports an identity provider the service has no verifier for.\n\tErrUnknownProvider = errors.New(\"accounts: unknown identity provider\")\n\t// ErrGuestsDisabled reports CreateGuest on a service configured with DisableGuests.\n\tErrGuestsDisabled = errors.New(\"accounts: guest accounts are disabled\")\n)",
          "doc": "",
          "file": "pkg/accounts/store.go",
          "line": 9
        }
      ],
      "funcs": [
        {
          "name": "HashPassword",
          "anchor": "HashPassword",
          "decl": "func HashPassword(password string, p Argon2Params, r io.Reader) (string, error)",
          "doc": "HashPassword returns the argon2id hash of password with a random salt from r, in the PHC string format \"$argon2id$v=19$m=...,t=...,p=...$salt$hash\".\n",
          "file": "pkg/accounts/password.go",
          "line": 55
        },
        {
          "name": "NormalizeEmail",
          "anchor": "NormalizeEmail",
          "decl": "func NormalizeEmail(email string) (string, error)",
          "doc": "NormalizeEmail trims and lowercases a plain email address (\"ada@example.com\"), refusing display names, angle brackets and addresses longer than 254 bytes with ErrInvalidEmail.\n",
          "file": "pkg/accounts/service.go",
          "line": 367
        }
      ],
      "types": [
        {
          "name": "Account",
          "anchor": "Account",
          "decl": "type Account struct {\n\t// ID is the account's permanent random ID, the key of everything the game keeps for the player.\n\tID string\n\t// Email is the account's normalized email address, empty for none.\n\tEmail string\n\t// Created is when the account was created, to the millisecond.\n\tCreated time.Time\n}",
          "doc": "Account is one player's account.\n",
          "file": "pkg/accounts/store.go",
          "line": 29,
          "members": [
            {
              "name": "ID",
              "anchor": "Account.ID",
              "kind": "field",
              "doc": "ID is the account's permanent random ID, the key of everything the game keeps for the player."
            },
            {
              "name": "Email",
              "anchor": "Account.Email",
              "kind": "field",
              "doc": "Email is the account's normalized email address, empty for none."
            },
            {
              "name": "Created",
              "anchor": "Account.Created",
              "kind": "field",
              "doc": "Created is when the account was created, to the millisecond."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Argon2Params",
          "anchor": "Argon2Params",
          "decl": "type Argon2Params struct {\n\t// Time is the number of passes over memory, 1 to 16.\n\tTime uint32 `yaml:\"time\"`\n\t// MemoryKiB is the memory one hash uses, in KiB, from 8*Threads to 4 GiB.\n\tMemoryKiB uint32 `yaml:\"memoryKiB\"`\n\t// Threads is the parallelism (lanes), 1 to 16.\n\tThreads uint8 `yaml:\"threads\"`\n}",
          "doc": "Argon2Params is the cost of an argon2id password hash.\n",
          "file": "pkg/accounts/password.go",
          "line": 16,
          "members": [
            {
              "name": "Time",
              "anchor": "Argon2Params.Time",
              "kind": "field",
              "doc": "Time is the number of passes over memory, 1 to 16."
            },
            {
              "name": "MemoryKiB",
              "anchor": "Argon2Params.MemoryKiB",
              "kind": "field",
              "doc": "MemoryKiB is the memory one hash uses, in KiB, from 8*Threads to 4 GiB."
            },
            {
              "name": "Threads",
              "anchor": "Argon2Params.Threads",
              "kind": "field",
              "doc": "Threads is the parallelism (lanes), 1 to 16."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultArgon2Params",
              "anchor": "DefaultArgon2Params",
              "decl": "func DefaultArgon2Params() Argon2Params",
              "doc": "DefaultArgon2Params returns OWASP's recommended argon2id cost: 19 MiB of memory, 2 passes, 1 lane.\n",
              "file": "pkg/accounts/password.go",
              "line": 34
            },
            {
              "name": "VerifyPassword",
              "anchor": "VerifyPassword",
              "decl": "func VerifyPassword(password, encoded string) (bool, Argon2Params, error)",
              "doc": "VerifyPassword reports whether password matches the PHC-format argon2id hash encoded, comparing in constant time, and returns the cost the hash was made with so a caller can rehash a password made with an outdated cost.\n",
              "file": "pkg/accounts/password.go",
              "line": 72
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "Argon2Params.Validate",
              "recv": "Argon2Params",
              "decl": "func (p Argon2Params) Validate() error",
              "doc": "Validate checks that p is within argon2id's limits and this package's bounds.\n",
              "file": "pkg/accounts/password.go",
              "line": 39
            }
          ]
        },
        {
          "name": "Config",
          "anchor": "Config",
          "decl": "type Config struct {\n\t// Version is the schema version; it must be ConfigVersion.\n\tVersion int `yaml:\"version\"`\n\t// Issuer names the service in its tokens, usually its URL.\n\tIssuer string `yaml:\"issuer\"`\n\t// Audience names the game the tokens are for.\n\tAudience string `yaml:\"audience\"`\n\t// TokenTTL is how long a token stays valid, in whole seconds from 1s to 24h.\n\tTokenTTL Duration `yaml:\"tokenTTL\"`\n\t// DisableGuests refuses CreateGuest, so every account starts with an email address or an identity.\n\tDisableGuests bool `yaml:\"disableGuests,omitempty\"`\n\t// Password sets the password rules and hash cost.\n\tPassword PasswordConfig `yaml:\"password\"`\n}",
          "doc": "Config is the account service's settings, kept in a YAML file:\n\n\tversion: 1\n\tissuer: https://accounts.example.com\n\taudience: my-game\n\ttokenTTL: 15m\n\tpassword:\n\t  minLength: 10\n\t  argon2id:\n\t    time: 2\n\t    memoryKiB: 19456\n\t    threads: 1\n\nUnknown fields are refused. Marshal writes the canonical form: the fields in this order, durations in their shortest text and disableGuests only when true. A file in that form, such as one Marshal wrote, reads back and writes again unchanged; a hand-written file in another order or spelling is normalized.\n",
          "file": "pkg/accounts/config.go",
          "line": 31,
          "members": [
            {
              "name": "Version",
              "anchor": "Config.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be ConfigVersion."
            },
            {
              "name": "Issuer",
              "anchor": "Config.Issuer",
              "kind": "field",
              "doc": "Issuer names the service in its tokens, usually its URL."
            },
            {
              "name": "Audience",
              "anchor": "Config.Audience",
              "kind": "field",
              "doc": "Audience names the game the tokens are for."
            },
            {
              "name": "TokenTTL",
              "anchor": "Config.TokenTTL",
              "kind": "field",
              "doc": "TokenTTL is how long a token stays valid, in whole seconds from 1s to 24h."
            },
            {
              "name": "DisableGuests",
              "anchor": "Config.DisableGuests",
              "kind": "field",
              "doc": "DisableGuests refuses CreateGuest, so every account starts with an email address or an identity."
            },
            {
              "name": "Password",
              "anchor": "Config.Password",
              "kind": "field",
              "doc": "Password sets the password rules and hash cost."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultConfig",
              "anchor": "DefaultConfig",
              "decl": "func DefaultConfig(issuer, audience string) Config",
              "doc": "DefaultConfig returns a configuration for issuer and audience with a 15-minute token TTL, guests allowed, passwords of at least 10 characters and OWASP's recommended argon2id cost (19 MiB, 2 passes, 1 lane).\n",
              "file": "pkg/accounts/config.go",
              "line": 58
            },
            {
              "name": "ParseConfig",
              "anchor": "ParseConfig",
              "decl": "func ParseConfig(data []byte) (Config, error)",
              "doc": "ParseConfig decodes and validates a YAML configuration. Unknown fields and trailing documents are refused.\n",
              "file": "pkg/accounts/config.go",
              "line": 87
            }
          ],
          "methods": [
            {
              "name": "Marshal",
              "anchor": "Config.Marshal",
              "recv": "Config",
              "decl": "func (c Config) Marshal() ([]byte, error)",
              "doc": "Marshal validates c and encodes it as deterministic 2-space YAML.\n",
              "file": "pkg/accounts/config.go",
              "line": 111
            },
            {
              "name": "Validate",
              "anchor": "Config.Validate",
              "recv": "Config",
              "decl": "func (c Config) Validate() error",
              "doc": "Validate checks that c is a complete version 1 configuration.\n",
              "file": "pkg/accounts/config.go",
              "line": 69
            }
          ]
        },
        {
          "name": "Credentials",
          "anchor": "Credentials",
          "decl": "type Credentials struct {\n\t// AccountID is the account signed in to.\n\tAccountID string\n\t// Session is the device's long-lived secret for Refresh and SignOut. Store it on the device: for a guest it is the only way back into the account.\n\tSession Secret\n\t// Token is the short-lived token the game sends its server.\n\tToken Secret\n\t// Expires is when Token expires.\n\tExpires time.Time\n\t// Created reports whether the sign-in created the account.\n\tCreated bool\n}",
          "doc": "Credentials are what a sign-in gives a device.\n",
          "file": "pkg/accounts/service.go",
          "line": 78,
          "members": [
            {
              "name": "AccountID",
              "anchor": "Credentials.AccountID",
              "kind": "field",
              "doc": "AccountID is the account signed in to."
            },
            {
              "name": "Session",
              "anchor": "Credentials.Session",
              "kind": "field",
              "doc": "Session is the device's long-lived secret for Refresh and SignOut. Store it on the device: for a guest it is the only way back into the account."
            },
            {
              "name": "Token",
              "anchor": "Credentials.Token",
              "kind": "field",
              "doc": "Token is the short-lived token the game sends its server."
            },
            {
              "name": "Expires",
              "anchor": "Credentials.Expires",
              "kind": "field",
              "doc": "Expires is when Token expires."
            },
            {
              "name": "Created",
              "anchor": "Credentials.Created",
              "kind": "field",
              "doc": "Created reports whether the sign-in created the account."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Duration",
          "anchor": "Duration",
          "decl": "type Duration time.Duration",
          "doc": "Duration is a time.Duration written in YAML as Go duration text (\"15m\", \"1h30m\").\n",
          "file": "pkg/accounts/config.go",
          "line": 129,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Duration.MarshalYAML",
              "recv": "Duration",
              "decl": "func (d Duration) MarshalYAML() (any, error)",
              "doc": "MarshalYAML writes d as its shortest Go duration text: \"15m\" rather than \"15m0s\".\n",
              "file": "pkg/accounts/config.go",
              "line": 132
            },
            {
              "name": "UnmarshalYAML",
              "anchor": "Duration.UnmarshalYAML",
              "recv": "*Duration",
              "decl": "func (d *Duration) UnmarshalYAML(n *yaml.Node) error",
              "doc": "UnmarshalYAML reads Go duration text.\n",
              "file": "pkg/accounts/config.go",
              "line": 144
            }
          ]
        },
        {
          "name": "Identity",
          "anchor": "Identity",
          "decl": "type Identity struct {\n\t// Provider names the provider, such as \"gamecenter\", \"playgames\", \"steam\" or \"google\".\n\tProvider string\n\t// Subject is the provider's stable ID for the player.\n\tSubject string\n}",
          "doc": "Identity is an account's identity at a provider, such as a Game Center player or a Steam user.\n",
          "file": "pkg/accounts/store.go",
          "line": 39,
          "members": [
            {
              "name": "Provider",
              "anchor": "Identity.Provider",
              "kind": "field",
              "doc": "Provider names the provider, such as \"gamecenter\", \"playgames\", \"steam\" or \"google\"."
            },
            {
              "name": "Subject",
              "anchor": "Identity.Subject",
              "kind": "field",
              "doc": "Subject is the provider's stable ID for the player."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "IdentityVerifier",
          "anchor": "IdentityVerifier",
          "decl": "type IdentityVerifier interface {\n\tVerifyIdentity(ctx context.Context, credential string) (subject string, err error)\n}",
          "doc": "IdentityVerifier checks a credential a device got from an identity provider and returns the provider's stable subject for the player. A verifier for Game Center checks the signed identity against Apple's certificate, one for Play Games exchanges the server auth code, one for Steam authenticates the session ticket with the Steam Web API, and one for an OAuth provider verifies the OpenID Connect ID token.\n\nThe credential is a secret: a verifier must not log it or put it in its errors. The service never shows a verifier's error to the caller; it returns ErrInvalidCredentials.\n",
          "file": "pkg/accounts/service.go",
          "line": 28,
          "members": [
            {
              "name": "VerifyIdentity",
              "anchor": "IdentityVerifier.VerifyIdentity",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "IdentityVerifierFunc",
          "anchor": "IdentityVerifierFunc",
          "decl": "type IdentityVerifierFunc func(ctx context.Context, credential string) (string, error)",
          "doc": "IdentityVerifierFunc adapts a function to IdentityVerifier.\n",
          "file": "pkg/accounts/service.go",
          "line": 33,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "VerifyIdentity",
              "anchor": "IdentityVerifierFunc.VerifyIdentity",
              "recv": "IdentityVerifierFunc",
              "decl": "func (f IdentityVerifierFunc) VerifyIdentity(ctx context.Context, credential string) (string, error)",
              "doc": "VerifyIdentity calls f.\n",
              "file": "pkg/accounts/service.go",
              "line": 36
            }
          ]
        },
        {
          "name": "MemoryStore",
          "anchor": "MemoryStore",
          "decl": "type MemoryStore struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MemoryStore is a Store held in memory, for tests and single-process prototypes. Its records are lost when the process ends.\n",
          "file": "pkg/accounts/memory.go",
          "line": 12,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMemoryStore",
              "anchor": "NewMemoryStore",
              "decl": "func NewMemoryStore() *MemoryStore",
              "doc": "NewMemoryStore returns an empty MemoryStore.\n",
              "file": "pkg/accounts/memory.go",
              "line": 26
            }
          ],
          "methods": [
            {
              "name": "Account",
              "anchor": "MemoryStore.Account",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Account(_ context.Context, id string) (Account, error)",
              "doc": "Account implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 68
            },
            {
              "name": "AccountByEmail",
              "anchor": "MemoryStore.AccountByEmail",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) AccountByEmail(_ context.Context, email string) (Account, string, error)",
              "doc": "AccountByEmail implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 79
            },
            {
              "name": "AccountByIdentity",
              "anchor": "MemoryStore.AccountByIdentity",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) AccountByIdentity(_ context.Context, identity Identity) (Account, error)",
              "doc": "AccountByIdentity implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 150
            },
            {
              "name": "CreateAccount",
              "anchor": "MemoryStore.CreateAccount",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) CreateAccount(_ context.Context, a Account, passwordHash string, identities ...Identity) error",
              "doc": "CreateAccount implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 36
            },
            {
              "name": "CreateSession",
              "anchor": "MemoryStore.CreateSession",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) CreateSession(_ context.Context, s Session) error",
              "doc": "CreateSession implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 175
            },
            {
              "name": "DeleteSession",
              "anchor": "MemoryStore.DeleteSession",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) DeleteSession(_ context.Context, id string) error",
              "doc": "DeleteSession implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 200
            },
            {
              "name": "Identities",
              "anchor": "MemoryStore.Identities",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Identities(_ context.Context, id string) ([]Identity, error)",
              "doc": "Identities implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 161
            },
            {
              "name": "LinkIdentity",
              "anchor": "MemoryStore.LinkIdentity",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) LinkIdentity(_ context.Context, id string, identity Identity, _ time.Time) error",
              "doc": "LinkIdentity implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 128
            },
            {
              "name": "Session",
              "anchor": "MemoryStore.Session",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Session(_ context.Context, id string) (Session, error)",
              "doc": "Session implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 189
            },
            {
              "name": "SetEmail",
              "anchor": "MemoryStore.SetEmail",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) SetEmail(_ context.Context, id, email, passwordHash string) error",
              "doc": "SetEmail implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 91
            },
            {
              "name": "SetPasswordHash",
              "anchor": "MemoryStore.SetPasswordHash",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) SetPasswordHash(_ context.Context, id, passwordHash string) error",
              "doc": "SetPasswordHash implements Store.\n",
              "file": "pkg/accounts/memory.go",
              "line": 115
            }
          ]
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Store keeps the records; required.\n\tStore Store\n\t// Key signs tokens; required. Keep it in a PEM file read with token.ParsePrivateKey.\n\tKey ed25519.PrivateKey\n\t// KeySet holds public keys the service still accepts besides Key's, such as the key it signed with before a rotation; nil accepts only Key's. Its issuer and audience must match the configuration. The service verifies bearer tokens with Key's public key and these, and serves them all at GET /v1/keys, so tokens signed with an old key keep working until the key is removed from the set.\n\tKeySet *token.KeySet\n\t// Identities are the identity providers by name, such as \"gamecenter\" or \"steam\". A name is 1 to 32 characters of a-z, 0-9, '.', '_' and '-', starting with a letter or digit.\n\tIdentities map[string]IdentityVerifier\n\t// Logger receives account events and store errors, never secrets; nil discards them.\n\tLogger *slog.Logger\n\t// Now is the service's clock; nil uses time.Now.\n\tNow func() time.Time\n\t// Rand fills IDs, secrets and salts; nil uses crypto/rand. The service serializes its reads, so a reader that is not safe for concurrent use, such as a deterministic one in a test, may be given.\n\tRand io.Reader\n\t// MaxConcurrentHashes bounds how many password hashes run at once, each using the configured argon2id memory; 0 uses GOMAXPROCS.\n\tMaxConcurrentHashes int\n}",
          "doc": "Options are what a Service needs besides its Config.\n",
          "file": "pkg/accounts/service.go",
          "line": 41,
          "members": [
            {
              "name": "Store",
              "anchor": "Options.Store",
              "kind": "field",
              "doc": "Store keeps the records; required."
            },
            {
              "name": "Key",
              "anchor": "Options.Key",
              "kind": "field",
              "doc": "Key signs tokens; required. Keep it in a PEM file read with token.ParsePrivateKey."
            },
            {
              "name": "KeySet",
              "anchor": "Options.KeySet",
              "kind": "field",
              "doc": "KeySet holds public keys the service still accepts besides Key's, such as the key it signed with before a rotation; nil accepts only Key's. Its issuer and audience must match the configuration. The service verifies bearer tokens with Key's public key and these, and serves them all at GET /v1/keys, so tokens signed with an old key keep working until the key is removed from the set."
            },
            {
              "name": "Identities",
              "anchor": "Options.Identities",
              "kind": "field",
              "doc": "Identities are the identity providers by name, such as \"gamecenter\" or \"steam\". A name is 1 to 32 characters of a-z, 0-9, '.', '_' and '-', starting with a letter or digit."
            },
            {
              "name": "Logger",
              "anchor": "Options.Logger",
              "kind": "field",
              "doc": "Logger receives account events and store errors, never secrets; nil discards them."
            },
            {
              "name": "Now",
              "anchor": "Options.Now",
              "kind": "field",
              "doc": "Now is the service's clock; nil uses time.Now."
            },
            {
              "name": "Rand",
              "anchor": "Options.Rand",
              "kind": "field",
              "doc": "Rand fills IDs, secrets and salts; nil uses crypto/rand. The service serializes its reads, so a reader that is not safe for concurrent use, such as a deterministic one in a test, may be given."
            },
            {
              "name": "MaxConcurrentHashes",
              "anchor": "Options.MaxConcurrentHashes",
              "kind": "field",
              "doc": "MaxConcurrentHashes bounds how many password hashes run at once, each using the configured argon2id memory; 0 uses GOMAXPROCS."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PasswordConfig",
          "anchor": "PasswordConfig",
          "decl": "type PasswordConfig struct {\n\t// MinLength is the fewest characters a password may have, at least 8.\n\tMinLength int `yaml:\"minLength\"`\n\t// Argon2id is the hash cost of new and rehashed passwords.\n\tArgon2id Argon2Params `yaml:\"argon2id\"`\n}",
          "doc": "PasswordConfig is the password rules and the argon2id cost.\n",
          "file": "pkg/accounts/config.go",
          "line": 47,
          "members": [
            {
              "name": "MinLength",
              "anchor": "PasswordConfig.MinLength",
              "kind": "field",
              "doc": "MinLength is the fewest characters a password may have, at least 8."
            },
            {
              "name": "Argon2id",
              "anchor": "PasswordConfig.Argon2id",
              "kind": "field",
              "doc": "Argon2id is the hash cost of new and rehashed passwords."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Profile",
          "anchor": "Profile",
          "decl": "type Profile struct {\n\tAccount\n\t// Identities are the account's linked identities, sorted by provider.\n\tIdentities []Identity\n}",
          "doc": "Profile is an account with its linked identities.\n",
          "file": "pkg/accounts/service.go",
          "line": 92,
          "members": [
            {
              "name": "Account",
              "anchor": "Profile.Account",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Identities",
              "anchor": "Profile.Identities",
              "kind": "field",
              "doc": "Identities are the account's linked identities, sorted by provider."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Guest",
              "anchor": "Profile.Guest",
              "recv": "Profile",
              "decl": "func (p Profile) Guest() bool",
              "doc": "Guest reports whether the account has neither an email address nor an identity, so only its sessions can sign in to it.\n",
              "file": "pkg/accounts/service.go",
              "line": 99
            }
          ]
        },
        {
          "name": "Secret",
          "anchor": "Secret",
          "decl": "type Secret struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Secret holds a credential (a session secret or a token) so that it cannot reach a log by accident: fmt, log/slog, encoding/json and encoding.TextMarshaler users see \"[redacted]\". Reveal returns the value for the one place that must send it.\n",
          "file": "pkg/accounts/secret.go",
          "line": 13,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSecret",
              "anchor": "NewSecret",
              "decl": "func NewSecret(s string) Secret",
              "doc": "NewSecret wraps s.\n",
              "file": "pkg/accounts/secret.go",
              "line": 16
            }
          ],
          "methods": [
            {
              "name": "Format",
              "anchor": "Secret.Format",
              "recv": "Secret",
              "decl": "func (s Secret) Format(f fmt.State, _ rune)",
              "doc": "Format writes \"[redacted]\" for every verb, so %x or %q cannot reveal the value either.\n",
              "file": "pkg/accounts/secret.go",
              "line": 31
            },
            {
              "name": "GoString",
              "anchor": "Secret.GoString",
              "recv": "Secret",
              "decl": "func (s Secret) GoString() string",
              "doc": "GoString returns \"[redacted]\", for %#v.\n",
              "file": "pkg/accounts/secret.go",
              "line": 28
            },
            {
              "name": "IsZero",
              "anchor": "Secret.IsZero",
              "recv": "Secret",
              "decl": "func (s Secret) IsZero() bool",
              "doc": "IsZero reports whether the secret is empty.\n",
              "file": "pkg/accounts/secret.go",
              "line": 22
            },
            {
              "name": "LogValue",
              "anchor": "Secret.LogValue",
              "recv": "Secret",
              "decl": "func (s Secret) LogValue() slog.Value",
              "doc": "LogValue returns \"[redacted]\" for log/slog.\n",
              "file": "pkg/accounts/secret.go",
              "line": 34
            },
            {
              "name": "MarshalJSON",
              "anchor": "Secret.MarshalJSON",
              "recv": "Secret",
              "decl": "func (s Secret) MarshalJSON() ([]byte, error)",
              "doc": "MarshalJSON returns the JSON string \"[redacted]\".\n",
              "file": "pkg/accounts/secret.go",
              "line": 40
            },
            {
              "name": "MarshalText",
              "anchor": "Secret.MarshalText",
              "recv": "Secret",
              "decl": "func (s Secret) MarshalText() ([]byte, error)",
              "doc": "MarshalText returns \"[redacted]\".\n",
              "file": "pkg/accounts/secret.go",
              "line": 37
            },
            {
              "name": "Reveal",
              "anchor": "Secret.Reveal",
              "recv": "Secret",
              "decl": "func (s Secret) Reveal() string",
              "doc": "Reveal returns the secret's value.\n",
              "file": "pkg/accounts/secret.go",
              "line": 19
            },
            {
              "name": "String",
              "anchor": "Secret.String",
              "recv": "Secret",
              "decl": "func (s Secret) String() string",
              "doc": "String returns \"[redacted]\".\n",
              "file": "pkg/accounts/secret.go",
              "line": 25
            }
          ]
        },
        {
          "name": "Service",
          "anchor": "Service",
          "decl": "type Service struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Service is the account service. It is safe for concurrent use.\n",
          "file": "pkg/accounts/service.go",
          "line": 61,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(cfg Config, opts Options) (*Service, error)",
              "doc": "New returns a service with the configuration and options. The token signer is built from cfg's issuer, audience and TTL and opts.Key.\n",
              "file": "pkg/accounts/service.go",
              "line": 102
            }
          ],
          "methods": [
            {
              "name": "Authenticate",
              "anchor": "Service.Authenticate",
              "recv": "*Service",
              "decl": "func (s *Service) Authenticate(tok string) (token.Claims, error)",
              "doc": "Authenticate verifies a token the service issued and returns its claims.\n",
              "file": "pkg/accounts/service.go",
              "line": 166
            },
            {
              "name": "Config",
              "anchor": "Service.Config",
              "recv": "*Service",
              "decl": "func (s *Service) Config() Config",
              "doc": "Config returns the service's configuration.\n",
              "file": "pkg/accounts/service.go",
              "line": 156
            },
            {
              "name": "CreateGuest",
              "anchor": "Service.CreateGuest",
              "recv": "*Service",
              "decl": "func (s *Service) CreateGuest(ctx context.Context) (Credentials, error)",
              "doc": "CreateGuest creates an account with no email address or identity and signs the device in to it.\n",
              "file": "pkg/accounts/service.go",
              "line": 169
            },
            {
              "name": "Handler",
              "anchor": "Service.Handler",
              "recv": "*Service",
              "decl": "func (s *Service) Handler() http.Handler",
              "doc": "Handler serves the service over HTTP. Requests and responses are JSON; every response carries Cache-Control: no-store.\n\n\tPOST /v1/guest                                         -> credentials\n\tPOST /v1/register          {\"email\", \"password\"}       -> credentials\n\tPOST /v1/signin/email      {\"email\", \"password\"}       -> credentials\n\tPOST /v1/signin/identity   {\"provider\", \"credential\"}  -> credentials\n\tPOST /v1/refresh           {\"session\"}                 -> credentials\n\tPOST /v1/signout           {\"session\"}                 -> 204\n\tPOST /v1/link/email        {\"email\", \"password\"}       -> 204, with a bearer token\n\tPOST /v1/link/identity     {\"provider\", \"credential\"}  -> 204, with a bearer token\n\tGET  /v1/me                                            -> profile, with a bearer token\n\tGET  /v1/keys                                          -> the key set as YAML\n\nCredentials are {\"account\", \"session\", \"token\", \"expires\", \"created\"}, expires in RFC 3339. A bearer token goes in \"Authorization: Bearer <token>\". Errors are {\"error\": code} with the status the code implies: invalid_credentials and invalid_token 401, guests_disabled 403, not_found 404, taken and already_linked 409, request_too_large 413, bad_request, invalid_email, weak_password and unknown_provider 400, unavailable 503 when the request was cancelled or timed out (for example waiting for a password hash slot under load), and internal 500.\n\nThe handler does not limit request rates; put it behind a rate limiter, and behind TLS.\n",
              "file": "pkg/accounts/http.go",
              "line": 35
            },
            {
              "name": "KeySet",
              "anchor": "Service.KeySet",
              "recv": "*Service",
              "decl": "func (s *Service) KeySet() *token.KeySet",
              "doc": "KeySet returns the public key set a game server verifies the service's tokens with: the signing key's public half first, then the keys of Options.KeySet.\n",
              "file": "pkg/accounts/service.go",
              "line": 159
            },
            {
              "name": "LinkEmail",
              "anchor": "Service.LinkEmail",
              "recv": "*Service",
              "decl": "func (s *Service) LinkEmail(ctx context.Context, accountID, email, password string) error",
              "doc": "LinkEmail gives an account (a guest, or one signed in with an identity) an email address and password, keeping its ID and so its data. It returns ErrAlreadyLinked when the account has an address and ErrTaken when another account has this one.\n",
              "file": "pkg/accounts/service.go",
              "line": 207
            },
            {
              "name": "LinkIdentity",
              "anchor": "Service.LinkIdentity",
              "recv": "*Service",
              "decl": "func (s *Service) LinkIdentity(ctx context.Context, accountID, provider, credential string) error",
              "doc": "LinkIdentity links the identity a credential from provider proves to an account, keeping the account's ID and so its data. Another device then signs in to the account with SignInIdentity. It returns ErrTaken when another account has the identity and ErrAlreadyLinked when the account has another identity of the provider.\n",
              "file": "pkg/accounts/service.go",
              "line": 312
            },
            {
              "name": "Profile",
              "anchor": "Service.Profile",
              "recv": "*Service",
              "decl": "func (s *Service) Profile(ctx context.Context, accountID string) (Profile, error)",
              "doc": "Profile returns an account and its identities.\n",
              "file": "pkg/accounts/service.go",
              "line": 354
            },
            {
              "name": "Refresh",
              "anchor": "Service.Refresh",
              "recv": "*Service",
              "decl": "func (s *Service) Refresh(ctx context.Context, session Secret) (Credentials, error)",
              "doc": "Refresh returns a new token for a device's session. The session stays the same.\n",
              "file": "pkg/accounts/service.go",
              "line": 325
            },
            {
              "name": "Register",
              "anchor": "Service.Register",
              "recv": "*Service",
              "decl": "func (s *Service) Register(ctx context.Context, email, password string) (Credentials, error)",
              "doc": "Register creates an account with an email address and password and signs the device in to it. It returns ErrTaken when the address belongs to an account.\n",
              "file": "pkg/accounts/service.go",
              "line": 185
            },
            {
              "name": "SignInEmail",
              "anchor": "Service.SignInEmail",
              "recv": "*Service",
              "decl": "func (s *Service) SignInEmail(ctx context.Context, email, password string) (Credentials, error)",
              "doc": "SignInEmail signs a device in with an email address and password. A wrong address or password returns ErrInvalidCredentials and takes as long as a right one. A password hashed with a cost other than the configured one is rehashed.\n",
              "file": "pkg/accounts/service.go",
              "line": 224
            },
            {
              "name": "SignInIdentity",
              "anchor": "Service.SignInIdentity",
              "recv": "*Service",
              "decl": "func (s *Service) SignInIdentity(ctx context.Context, provider, credential string) (Credentials, error)",
              "doc": "SignInIdentity signs a device in with a credential from provider. An identity linked to no account gets a new account (Credentials.Created), so a player can start with a platform identity as well as upgrade to one.\n",
              "file": "pkg/accounts/service.go",
              "line": 280
            },
            {
              "name": "SignOut",
              "anchor": "Service.SignOut",
              "recv": "*Service",
              "decl": "func (s *Service) SignOut(ctx context.Context, session Secret) error",
              "doc": "SignOut revokes a device's session. Tokens already issued stay valid until they expire.\n",
              "file": "pkg/accounts/service.go",
              "line": 338
            }
          ]
        },
        {
          "name": "Session",
          "anchor": "Session",
          "decl": "type Session struct {\n\t// ID is the session's random ID, the part of the device's credential before the dot.\n\tID string\n\t// AccountID is the account the session signs in to.\n\tAccountID string\n\t// SecretHash is the SHA-256 of the session's secret, in hex.\n\tSecretHash string\n\t// Created is when the session was opened, to the millisecond.\n\tCreated time.Time\n}",
          "doc": "Session is one signed-in device. The store keeps only a hash of the session's secret.\n",
          "file": "pkg/accounts/store.go",
          "line": 47,
          "members": [
            {
              "name": "ID",
              "anchor": "Session.ID",
              "kind": "field",
              "doc": "ID is the session's random ID, the part of the device's credential before the dot."
            },
            {
              "name": "AccountID",
              "anchor": "Session.AccountID",
              "kind": "field",
              "doc": "AccountID is the account the session signs in to."
            },
            {
              "name": "SecretHash",
              "anchor": "Session.SecretHash",
              "kind": "field",
              "doc": "SecretHash is the SHA-256 of the session's secret, in hex."
            },
            {
              "name": "Created",
              "anchor": "Session.Created",
              "kind": "field",
              "doc": "Created is when the session was opened, to the millisecond."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Store",
          "anchor": "Store",
          "decl": "type Store interface {\n\t// CreateAccount stores a new account with the password hash (empty for none; only with an Email) and links the identities to it, all or nothing. It returns ErrTaken when the ID, email address or an identity already exists, or when two identities share a provider.\n\tCreateAccount(ctx context.Context, a Account, passwordHash string, identities ...Identity) error\n\t// Account returns the account with id, or ErrNotFound.\n\tAccount(ctx context.Context, id string) (Account, error)\n\t// AccountByEmail returns the account with the normalized email address and its password hash, or ErrNotFound.\n\tAccountByEmail(ctx context.Context, email string) (Account, string, error)\n\t// SetEmail gives an account without an email address one and its password hash. It returns ErrNotFound for no such account, ErrAlreadyLinked when the account has an email address, ErrInvalidEmail for an empty address, and ErrTaken when another account has this one.\n\tSetEmail(ctx context.Context, id, email, passwordHash string) error\n\t// SetPasswordHash replaces the password hash of an account with an email address, or returns ErrNotFound.\n\tSetPasswordHash(ctx context.Context, id, passwordHash string) error\n\t// LinkIdentity links an identity to an account. It returns nil when the identity is already linked to this account, ErrNotFound for no such account, ErrTaken when another account has the identity, and ErrAlreadyLinked when the account has another identity of the provider.\n\tLinkIdentity(ctx context.Context, id string, identity Identity, at time.Time) error\n\t// AccountByIdentity returns the account an identity is linked to, or ErrNotFound.\n\tAccountByIdentity(ctx context.Context, identity Identity) (Account, error)\n\t// Identities returns the identities linked to an account, sorted by provider; none for an unknown account.\n\tIdentities(ctx context.Context, id string) ([]Identity, error)\n\t// CreateSession stores a new session of an existing account. It returns ErrNotFound for no such account and ErrTaken when the session ID exists.\n\tCreateSession(ctx context.Context, s Session) error\n\t// Session returns the session with id, or ErrNotFound.\n\tSession(ctx context.Context, id string) (Session, error)\n\t// DeleteSession deletes the session with id, or returns ErrNotFound.\n\tDeleteSession(ctx context.Context, id string) error\n}",
          "doc": "Store keeps the service's accounts, identities and sessions. Implementations must be safe for concurrent use and enforce the uniqueness the methods state atomically, so that two devices racing to claim one email address or identity cannot both succeed. Package storetest checks a Store against this contract.\n",
          "file": "pkg/accounts/store.go",
          "line": 59,
          "members": [
            {
              "name": "CreateAccount",
              "anchor": "Store.CreateAccount",
              "kind": "method",
              "doc": "CreateAccount stores a new account with the password hash (empty for none; only with an Email) and links the identities to it, all or nothing. It returns ErrTaken when the ID, email address or an identity already exists, or when two identities share a provider."
            },
            {
              "name": "Account",
              "anchor": "Store.Account",
              "kind": "method",
              "doc": "Account returns the account with id, or ErrNotFound."
            },
            {
              "name": "AccountByEmail",
              "anchor": "Store.AccountByEmail",
              "kind": "method",
              "doc": "AccountByEmail returns the account with the normalized email address and its password hash, or ErrNotFound."
            },
            {
              "name": "SetEmail",
              "anchor": "Store.SetEmail",
              "kind": "method",
              "doc": "SetEmail gives an account without an email address one and its password hash. It returns ErrNotFound for no such account, ErrAlreadyLinked when the account has an email address, ErrInvalidEmail for an empty address, and ErrTaken when another account has this one."
            },
            {
              "name": "SetPasswordHash",
              "anchor": "Store.SetPasswordHash",
              "kind": "method",
              "doc": "SetPasswordHash replaces the password hash of an account with an email address, or returns ErrNotFound."
            },
            {
              "name": "LinkIdentity",
              "anchor": "Store.LinkIdentity",
              "kind": "method",
              "doc": "LinkIdentity links an identity to an account. It returns nil when the identity is already linked to this account, ErrNotFound for no such account, ErrTaken when another account has the identity, and ErrAlreadyLinked when the account has another identity of the provider."
            },
            {
              "name": "AccountByIdentity",
              "anchor": "Store.AccountByIdentity",
              "kind": "method",
              "doc": "AccountByIdentity returns the account an identity is linked to, or ErrNotFound."
            },
            {
              "name": "Identities",
              "anchor": "Store.Identities",
              "kind": "method",
              "doc": "Identities returns the identities linked to an account, sorted by provider; none for an unknown account."
            },
            {
              "name": "CreateSession",
              "anchor": "Store.CreateSession",
              "kind": "method",
              "doc": "CreateSession stores a new session of an existing account. It returns ErrNotFound for no such account and ErrTaken when the session ID exists."
            },
            {
              "name": "Session",
              "anchor": "Store.Session",
              "kind": "method",
              "doc": "Session returns the session with id, or ErrNotFound."
            },
            {
              "name": "DeleteSession",
              "anchor": "Store.DeleteSession",
              "kind": "method",
              "doc": "DeleteSession deletes the session with id, or returns ErrNotFound."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/accounts/pgstore",
      "name": "pgstore",
      "dir": "pkg/accounts/pgstore",
      "page": "pkg/accounts/pgstore",
      "synopsis": "Package pgstore opens an accounts.Store in a Postgres database with the github.com/jackc/pgx/v5 driver.",
      "doc": "Package pgstore opens an accounts.Store in a Postgres database with the github.com/jackc/pgx/v5 driver. Several account service processes may share one database: its constraints keep email addresses and identities unique, and migrations take an advisory lock.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Dialect",
              "anchor": "Dialect"
            }
          ],
          "decl": "var Dialect = sqlstore.Dialect{\n\tName:     \"postgres\",\n\tNumbered: true,\n\tIsUnique: func(err error) bool {\n\t\tvar e *pgconn.PgError\n\t\treturn errors.As(err, &e) && e.Code == uniqueViolation\n\t},\n\n\tMigrateLock: `SELECT pg_advisory_xact_lock(1633903476)`,\n}",
          "doc": "Dialect is Postgres's sqlstore dialect.\n",
          "file": "pkg/accounts/pgstore/pgstore.go",
          "line": 21
        }
      ],
      "funcs": [
        {
          "name": "New",
          "anchor": "New",
          "decl": "func New(ctx context.Context, db *sql.DB) (*sqlstore.Store, error)",
          "doc": "New returns a store on an open Postgres database, creating the schema when it is missing.\n",
          "file": "pkg/accounts/pgstore/pgstore.go",
          "line": 52
        },
        {
          "name": "Open",
          "anchor": "Open",
          "decl": "func Open(ctx context.Context, dsn string) (*sqlstore.Store, error)",
          "doc": "Open connects to the Postgres database dsn names (a URL or a key=value string, as pgx parses it) and returns a store on it with the schema created. Keep the DSN, which may hold a password, out of logs and command lines: read it from the environment or a file. Close the store to close the connections.\n",
          "file": "pkg/accounts/pgstore/pgstore.go",
          "line": 33
        }
      ],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/accounts/sqlitestore",
      "name": "sqlitestore",
      "dir": "pkg/accounts/sqlitestore",
      "page": "pkg/accounts/sqlitestore",
      "synopsis": "Package sqlitestore opens an accounts.Store in a SQLite database file, with the pure-Go modernc.org/sqlite driver (no cgo).",
      "doc": "Package sqlitestore opens an accounts.Store in a SQLite database file, with the pure-Go modernc.org/sqlite driver (no cgo). It suits a single account service process; several processes sharing one database should use Postgres (package pgstore).\n\nThe package builds for every target but the web: a browser has no file system to keep the database in, and the account service runs on a server.\n",
      "platforms": [
        "linux",
        "macos",
        "windows",
        "android",
        "ios"
      ],
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Dialect",
              "anchor": "Dialect"
            }
          ],
          "decl": "var Dialect = sqlstore.Dialect{\n\tName: \"sqlite\",\n\tIsUnique: func(err error) bool {\n\t\tvar e *sqlite.Error\n\t\treturn errors.As(err, &e) && (e.Code() == constraintUnique || e.Code() == constraintPrimaryKey)\n\t},\n}",
          "doc": "Dialect is SQLite's sqlstore dialect.\n",
          "file": "pkg/accounts/sqlitestore/sqlitestore.go",
          "line": 27
        }
      ],
      "funcs": [
        {
          "name": "Open",
          "anchor": "Open",
          "decl": "func Open(ctx context.Context, path string) (*sqlstore.Store, error)",
          "doc": "Open opens (creating when missing) the SQLite database at path, or a private in-memory database for \":memory:\", and returns a store on it with the schema created. The database uses write-ahead logging, enforces foreign keys and waits up to five seconds for a lock another process holds.\n\nThe store uses one connection, so its statements run one at a time; SQLite serializes writes anyway. Close the store to close the database.\n",
          "file": "pkg/accounts/sqlitestore/sqlitestore.go",
          "line": 38
        }
      ],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/accounts/sqlstore",
      "name": "sqlstore",
      "dir": "pkg/accounts/sqlstore",
      "page": "pkg/accounts/sqlstore",
      "synopsis": "Package sqlstore is an accounts.Store over database/sql, shared by the SQLite (package sqlitestore) and Postgres (package pgstore) stores.",
      "doc": "Package sqlstore is an accounts.Store over database/sql, shared by the SQLite (package sqlitestore) and Postgres (package pgstore) stores. Open a store with one of those; use this package directly only to add another SQL database through a Dialect.\n\nThe schema is three tables, created by New when missing and versioned in accounts_schema:\n  - accounts: id, email (unique, null for none), password_hash, created_at\n  - account_identities: provider and subject (the key), account_id (unique per provider), created_at\n  - account_sessions: id, account_id, secret_hash, created_at\n\nTimes are Unix milliseconds. Uniqueness is enforced by the database's constraints, so concurrent services sharing one database cannot give one email address or identity to two accounts.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "SchemaVersion",
              "anchor": "SchemaVersion"
            }
          ],
          "decl": "const SchemaVersion = 1",
          "doc": "SchemaVersion is the schema version New creates and accepts.\n",
          "file": "pkg/accounts/sqlstore/sqlstore.go",
          "line": 24
        }
      ],
      "vars": [],
      "funcs": [],
      "types": [
        {
          "name": "Dialect",
          "anchor": "Dialect",
          "decl": "type Dialect struct {\n\t// Name names the database in errors.\n\tName string\n\t// Numbered is true for \"$1\" placeholders, false for \"?\".\n\tNumbered bool\n\t// IsUnique reports whether err is a unique or primary key constraint violation.\n\tIsUnique func(err error) bool\n\t// MigrateLock, when set, runs first in the migration's transaction to serialize migrations of several processes, such as Postgres's pg_advisory_xact_lock.\n\tMigrateLock string\n}",
          "doc": "Dialect is what differs between SQL databases.\n",
          "file": "pkg/accounts/sqlstore/sqlstore.go",
          "line": 27,
          "members": [
            {
              "name": "Name",
              "anchor": "Dialect.Name",
              "kind": "field",
              "doc": "Name names the database in errors."
            },
            {
              "name": "Numbered",
              "anchor": "Dialect.Numbered",
              "kind": "field",
              "doc": "Numbered is true for \"$1\" placeholders, false for \"?\"."
            },
            {
              "name": "IsUnique",
              "anchor": "Dialect.IsUnique",
              "kind": "field",
              "doc": "IsUnique reports whether err is a unique or primary key constraint violation."
            },
            {
              "name": "MigrateLock",
              "anchor": "Dialect.MigrateLock",
              "kind": "field",
              "doc": "MigrateLock, when set, runs first in the migration's transaction to serialize migrations of several processes, such as Postgres's pg_advisory_xact_lock."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Store",
          "anchor": "Store",
          "decl": "type Store struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Store is an accounts.Store in a SQL database.\n",
          "file": "pkg/accounts/sqlstore/sqlstore.go",
          "line": 39,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(ctx context.Context, db *sql.DB, d Dialect) (*Store, error)",
              "doc": "New returns a store on db, creating the schema when it is missing. It refuses a database whose schema is newer than SchemaVersion.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 72
            }
          ],
          "methods": [
            {
              "name": "Account",
              "anchor": "Store.Account",
              "recv": "*Store",
              "decl": "func (s *Store) Account(ctx context.Context, id string) (accounts.Account, error)",
              "doc": "Account implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 200
            },
            {
              "name": "AccountByEmail",
              "anchor": "Store.AccountByEmail",
              "recv": "*Store",
              "decl": "func (s *Store) AccountByEmail(ctx context.Context, email string) (accounts.Account, string, error)",
              "doc": "AccountByEmail implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 206
            },
            {
              "name": "AccountByIdentity",
              "anchor": "Store.AccountByIdentity",
              "recv": "*Store",
              "decl": "func (s *Store) AccountByIdentity(ctx context.Context, identity accounts.Identity) (accounts.Account, error)",
              "doc": "AccountByIdentity implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 280
            },
            {
              "name": "Close",
              "anchor": "Store.Close",
              "recv": "*Store",
              "decl": "func (s *Store) Close() error",
              "doc": "Close closes the store's database.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 118
            },
            {
              "name": "CreateAccount",
              "anchor": "Store.CreateAccount",
              "recv": "*Store",
              "decl": "func (s *Store) CreateAccount(ctx context.Context, a accounts.Account, passwordHash string, identities ...accounts.Identity) error",
              "doc": "CreateAccount implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 158
            },
            {
              "name": "CreateSession",
              "anchor": "Store.CreateSession",
              "recv": "*Store",
              "decl": "func (s *Store) CreateSession(ctx context.Context, sess accounts.Session) error",
              "doc": "CreateSession implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 305
            },
            {
              "name": "DB",
              "anchor": "Store.DB",
              "recv": "*Store",
              "decl": "func (s *Store) DB() *sql.DB",
              "doc": "DB returns the store's database.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 115
            },
            {
              "name": "DeleteSession",
              "anchor": "Store.DeleteSession",
              "recv": "*Store",
              "decl": "func (s *Store) DeleteSession(ctx context.Context, id string) error",
              "doc": "DeleteSession implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 337
            },
            {
              "name": "Identities",
              "anchor": "Store.Identities",
              "recv": "*Store",
              "decl": "func (s *Store) Identities(ctx context.Context, id string) ([]accounts.Identity, error)",
              "doc": "Identities implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 287
            },
            {
              "name": "LinkIdentity",
              "anchor": "Store.LinkIdentity",
              "recv": "*Store",
              "decl": "func (s *Store) LinkIdentity(ctx context.Context, id string, identity accounts.Identity, at time.Time) error",
              "doc": "LinkIdentity implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 253
            },
            {
              "name": "Session",
              "anchor": "Store.Session",
              "recv": "*Store",
              "decl": "func (s *Store) Session(ctx context.Context, id string) (accounts.Session, error)",
              "doc": "Session implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 321
            },
            {
              "name": "SetEmail",
              "anchor": "Store.SetEmail",
              "recv": "*Store",
              "decl": "func (s *Store) SetEmail(ctx context.Context, id, email, passwordHash string) error",
              "doc": "SetEmail implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 214
            },
            {
              "name": "SetPasswordHash",
              "anchor": "Store.SetPasswordHash",
              "recv": "*Store",
              "decl": "func (s *Store) SetPasswordHash(ctx context.Context, id, passwordHash string) error",
              "doc": "SetPasswordHash implements accounts.Store.\n",
              "file": "pkg/accounts/sqlstore/sqlstore.go",
              "line": 237
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/accounts/storetest",
      "name": "storetest",
      "dir": "pkg/accounts/storetest",
      "page": "pkg/accounts/storetest",
      "synopsis": "Package storetest checks an accounts.Store implementation against the Store contract.",
      "doc": "Package storetest checks an accounts.Store implementation against the Store contract. A store's tests call Run with a function that opens an empty store.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "Run",
          "anchor": "Run",
          "decl": "func Run(t *testing.T, open func(t *testing.T) accounts.Store)",
          "doc": "Run runs the contract's tests as subtests of t, each on a new empty store from open.\n",
          "file": "pkg/accounts/storetest/storetest.go",
          "line": 17
        }
      ],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/accounts/token",
      "name": "token",
      "dir": "pkg/accounts/token",
      "page": "pkg/accounts/token",
      "synopsis": "Package token issues and verifies the short-lived player tokens of the accounts service.",
      "doc": "Package token issues and verifies the short-lived player tokens of the accounts service.\n\nA token is a compact JWT (RFC 7519) signed with Ed25519 (\"alg\": \"EdDSA\"). The account service holds the private key and issues tokens with a Signer; a game server holds only the public keys, as a KeySet loaded from a YAML file, and checks tokens with a Verifier. Verifying makes no network call: it decodes the token, checks the signature against a known key, then the issuer, audience and expiry.\n\nThe package depends on the standard library and go.yaml.in/yaml/v3 only, so a game server that verifies tokens links none of the account service's password hashing or database drivers.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "KeySetVersion",
              "anchor": "KeySetVersion"
            }
          ],
          "decl": "const KeySetVersion = 1",
          "doc": "KeySetVersion is the key set file schema version this package reads and writes.\n",
          "file": "pkg/accounts/token/keys.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "MaxLength",
              "anchor": "MaxLength"
            }
          ],
          "decl": "const MaxLength = 4096",
          "doc": "MaxLength is the longest token Verify decodes; a longer string is refused before any work.\n",
          "file": "pkg/accounts/token/token.go",
          "line": 25
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrMalformed",
              "anchor": "ErrMalformed"
            },
            {
              "name": "ErrUnknownKey",
              "anchor": "ErrUnknownKey"
            },
            {
              "name": "ErrSignature",
              "anchor": "ErrSignature"
            },
            {
              "name": "ErrIssuer",
              "anchor": "ErrIssuer"
            },
            {
              "name": "ErrAudience",
              "anchor": "ErrAudience"
            },
            {
              "name": "ErrExpired",
              "anchor": "ErrExpired"
            },
            {
              "name": "ErrNotYetValid",
              "anchor": "ErrNotYetValid"
            }
          ],
          "decl": "var (\n\t// ErrMalformed reports a token that is not a well-formed token of this package.\n\tErrMalformed = errors.New(\"token: malformed\")\n\t// ErrUnknownKey reports a token signed with a key ID the verifier does not hold.\n\tErrUnknownKey = errors.New(\"token: unknown signing key\")\n\t// ErrSignature reports a token whose signature does not match its contents.\n\tErrSignature = errors.New(\"token: bad signature\")\n\t// ErrIssuer reports a token from another issuer.\n\tErrIssuer = errors.New(\"token: wrong issuer\")\n\t// ErrAudience reports a token meant for another audience.\n\tErrAudience = errors.New(\"token: wrong audience\")\n\t// ErrExpired reports a token past its expiry.\n\tErrExpired = errors.New(\"token: expired\")\n\t// ErrNotYetValid reports a token issued after the verifier's current time.\n\tErrNotYetValid = errors.New(\"token: not yet valid\")\n)",
          "doc": "",
          "file": "pkg/accounts/token/token.go",
          "line": 27
        }
      ],
      "funcs": [
        {
          "name": "GenerateKey",
          "anchor": "GenerateKey",
          "decl": "func GenerateKey(r io.Reader) (ed25519.PrivateKey, error)",
          "doc": "GenerateKey returns a new Ed25519 signing key read from r, or crypto/rand when r is nil.\n",
          "file": "pkg/accounts/token/keys.go",
          "line": 133
        },
        {
          "name": "KeyID",
          "anchor": "KeyID",
          "decl": "func KeyID(pub ed25519.PublicKey) string",
          "doc": "KeyID returns the ID of a public key: the first 8 bytes of its SHA-256 in hex. Signers and key sets derive IDs this way, so an ID always names one key.\n",
          "file": "pkg/accounts/token/token.go",
          "line": 83
        },
        {
          "name": "MarshalPrivateKey",
          "anchor": "MarshalPrivateKey",
          "decl": "func MarshalPrivateKey(key ed25519.PrivateKey) ([]byte, error)",
          "doc": "MarshalPrivateKey encodes key as a PKCS #8 \"PRIVATE KEY\" PEM block, the text form the account service keeps its signing key in.\n",
          "file": "pkg/accounts/token/keys.go",
          "line": 145
        },
        {
          "name": "ParsePrivateKey",
          "anchor": "ParsePrivateKey",
          "decl": "func ParsePrivateKey(data []byte) (ed25519.PrivateKey, error)",
          "doc": "ParsePrivateKey decodes a PKCS #8 PEM block holding an Ed25519 private key. Errors never include the key material.\n",
          "file": "pkg/accounts/token/keys.go",
          "line": 157
        }
      ],
      "types": [
        {
          "name": "Claims",
          "anchor": "Claims",
          "decl": "type Claims struct {\n\t// Issuer is the account service that issued the token.\n\tIssuer string\n\t// Subject is the account ID the token stands for.\n\tSubject string\n\t// Audience is the game the token is meant for.\n\tAudience string\n\t// IssuedAt is when the token was issued, to the second.\n\tIssuedAt time.Time\n\t// Expires is when the token stops being valid, to the second.\n\tExpires time.Time\n\t// ID is the token's unique random ID.\n\tID string\n\t// KeyID is the ID of the key that signed the token.\n\tKeyID string\n}",
          "doc": "Claims are what a verified token says.\n",
          "file": "pkg/accounts/token/token.go",
          "line": 48,
          "members": [
            {
              "name": "Issuer",
              "anchor": "Claims.Issuer",
              "kind": "field",
              "doc": "Issuer is the account service that issued the token."
            },
            {
              "name": "Subject",
              "anchor": "Claims.Subject",
              "kind": "field",
              "doc": "Subject is the account ID the token stands for."
            },
            {
              "name": "Audience",
              "anchor": "Claims.Audience",
              "kind": "field",
              "doc": "Audience is the game the token is meant for."
            },
            {
              "name": "IssuedAt",
              "anchor": "Claims.IssuedAt",
              "kind": "field",
              "doc": "IssuedAt is when the token was issued, to the second."
            },
            {
              "name": "Expires",
              "anchor": "Claims.Expires",
              "kind": "field",
              "doc": "Expires is when the token stops being valid, to the second."
            },
            {
              "name": "ID",
              "anchor": "Claims.ID",
              "kind": "field",
              "doc": "ID is the token's unique random ID."
            },
            {
              "name": "KeyID",
              "anchor": "Claims.KeyID",
              "kind": "field",
              "doc": "KeyID is the ID of the key that signed the token."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "KeySet",
          "anchor": "KeySet",
          "decl": "type KeySet struct {\n\t// Version is the schema version; it must be KeySetVersion.\n\tVersion int `yaml:\"version\"`\n\t// Issuer is the issuer the verifier accepts.\n\tIssuer string `yaml:\"issuer\"`\n\t// Audience is the audience the verifier accepts.\n\tAudience string `yaml:\"audience\"`\n\t// Keys are the public keys tokens may be signed with.\n\tKeys []PublicKey `yaml:\"keys\"`\n}",
          "doc": "KeySet is the public half of an account service's signing keys, kept in a YAML file a game server loads to verify tokens offline:\n\n\tversion: 1\n\tissuer: https://accounts.example.com\n\taudience: my-game\n\tkeys:\n\t  - id: 2317febd373fcbcd\n\t    key: hze+0cYruVRddgjkbHzgCeWWJbEsBkn6K8JNHRDf6Wg=\n\nSeveral keys let a service rotate its signing key: publish the new key beside the old one, switch the service to it, and drop the old key once its last tokens have expired.\n",
          "file": "pkg/accounts/token/keys.go",
          "line": 30,
          "members": [
            {
              "name": "Version",
              "anchor": "KeySet.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be KeySetVersion."
            },
            {
              "name": "Issuer",
              "anchor": "KeySet.Issuer",
              "kind": "field",
              "doc": "Issuer is the issuer the verifier accepts."
            },
            {
              "name": "Audience",
              "anchor": "KeySet.Audience",
              "kind": "field",
              "doc": "Audience is the audience the verifier accepts."
            },
            {
              "name": "Keys",
              "anchor": "KeySet.Keys",
              "kind": "field",
              "doc": "Keys are the public keys tokens may be signed with."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseKeySet",
              "anchor": "ParseKeySet",
              "decl": "func ParseKeySet(data []byte) (*KeySet, error)",
              "doc": "ParseKeySet decodes and validates a YAML key set. Unknown fields and trailing documents are refused.\n",
              "file": "pkg/accounts/token/keys.go",
              "line": 89
            }
          ],
          "methods": [
            {
              "name": "Marshal",
              "anchor": "KeySet.Marshal",
              "recv": "*KeySet",
              "decl": "func (ks *KeySet) Marshal() ([]byte, error)",
              "doc": "Marshal validates ks and encodes it as deterministic 2-space YAML, keys in their order.\n",
              "file": "pkg/accounts/token/keys.go",
              "line": 101
            },
            {
              "name": "Merge",
              "anchor": "KeySet.Merge",
              "recv": "*KeySet",
              "decl": "func (ks *KeySet) Merge(other *KeySet) (*KeySet, error)",
              "doc": "Merge returns a key set with the keys of ks followed by those of other it lacks. Both must have the same issuer and audience.\n",
              "file": "pkg/accounts/token/keys.go",
              "line": 109
            },
            {
              "name": "Validate",
              "anchor": "KeySet.Validate",
              "recv": "*KeySet",
              "decl": "func (ks *KeySet) Validate() error",
              "doc": "Validate checks that ks is a version 1 key set with an issuer, an audience and at least one well-formed key, each under its own KeyID once.\n",
              "file": "pkg/accounts/token/keys.go",
              "line": 58
            }
          ]
        },
        {
          "name": "PublicKey",
          "anchor": "PublicKey",
          "decl": "type PublicKey struct {\n\t// ID is KeyID of the key; it must match the key.\n\tID string `yaml:\"id\"`\n\t// Key is the 32-byte public key in standard base64.\n\tKey string `yaml:\"key\"`\n}",
          "doc": "PublicKey is one Ed25519 public key of a key set.\n",
          "file": "pkg/accounts/token/keys.go",
          "line": 42,
          "members": [
            {
              "name": "ID",
              "anchor": "PublicKey.ID",
              "kind": "field",
              "doc": "ID is KeyID of the key; it must match the key."
            },
            {
              "name": "Key",
              "anchor": "PublicKey.Key",
              "kind": "field",
              "doc": "Key is the 32-byte public key in standard base64."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Signer",
          "anchor": "Signer",
          "decl": "type Signer struct {\n\n\t// Now is the clock tokens are issued by; nil uses time.Now.\n\tNow func() time.Time\n\t// Rand fills token IDs; nil uses crypto/rand. Issue reads it without a lock, so a signer used from several goroutines needs a reader that is safe for concurrent use.\n\tRand io.Reader\n\t// contains filtered or unexported fields\n}",
          "doc": "Signer issues tokens with one private key. Its fields other than Now are fixed by NewSigner.\n",
          "file": "pkg/accounts/token/token.go",
          "line": 89,
          "members": [
            {
              "name": "Now",
              "anchor": "Signer.Now",
              "kind": "field",
              "doc": "Now is the clock tokens are issued by; nil uses time.Now."
            },
            {
              "name": "Rand",
              "anchor": "Signer.Rand",
              "kind": "field",
              "doc": "Rand fills token IDs; nil uses crypto/rand. Issue reads it without a lock, so a signer used from several goroutines needs a reader that is safe for concurrent use."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSigner",
              "anchor": "NewSigner",
              "decl": "func NewSigner(key ed25519.PrivateKey, issuer, audience string, ttl time.Duration) (*Signer, error)",
              "doc": "NewSigner returns a signer that issues tokens for audience from issuer, each valid for ttl (at least one second, in whole seconds).\n",
              "file": "pkg/accounts/token/token.go",
              "line": 102
            }
          ],
          "methods": [
            {
              "name": "Issue",
              "anchor": "Signer.Issue",
              "recv": "*Signer",
              "decl": "func (s *Signer) Issue(subject string) (string, Claims, error)",
              "doc": "Issue returns a token for subject, valid from now for the signer's TTL, and its claims.\n",
              "file": "pkg/accounts/token/token.go",
              "line": 134
            },
            {
              "name": "KeyID",
              "anchor": "Signer.KeyID",
              "recv": "*Signer",
              "decl": "func (s *Signer) KeyID() string",
              "doc": "KeyID is the ID of the signer's key.\n",
              "file": "pkg/accounts/token/token.go",
              "line": 120
            },
            {
              "name": "KeySet",
              "anchor": "Signer.KeySet",
              "recv": "*Signer",
              "decl": "func (s *Signer) KeySet() *KeySet",
              "doc": "KeySet returns the public key set that verifies the signer's tokens.\n",
              "file": "pkg/accounts/token/token.go",
              "line": 123
            },
            {
              "name": "TTL",
              "anchor": "Signer.TTL",
              "recv": "*Signer",
              "decl": "func (s *Signer) TTL() time.Duration",
              "doc": "TTL is how long the signer's tokens stay valid.\n",
              "file": "pkg/accounts/token/token.go",
              "line": 117
            }
          ]
        },
        {
          "name": "Verifier",
          "anchor": "Verifier",
          "decl": "type Verifier struct {\n\n\t// Leeway tolerates clock skew between the account service and the verifier: a token stays valid until Leeway past its expiry and is accepted up to Leeway before its issue time.\n\tLeeway time.Duration\n\t// Now is the clock tokens are checked against; nil uses time.Now.\n\tNow func() time.Time\n\t// contains filtered or unexported fields\n}",
          "doc": "Verifier checks tokens offline against a key set. Build one with NewVerifier; it is safe for concurrent use.\n",
          "file": "pkg/accounts/token/token.go",
          "line": 174,
          "members": [
            {
              "name": "Leeway",
              "anchor": "Verifier.Leeway",
              "kind": "field",
              "doc": "Leeway tolerates clock skew between the account service and the verifier: a token stays valid until Leeway past its expiry and is accepted up to Leeway before its issue time."
            },
            {
              "name": "Now",
              "anchor": "Verifier.Now",
              "kind": "field",
              "doc": "Now is the clock tokens are checked against; nil uses time.Now."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewVerifier",
              "anchor": "NewVerifier",
              "decl": "func NewVerifier(ks *KeySet) (*Verifier, error)",
              "doc": "NewVerifier returns a verifier for the keys, issuer and audience of ks.\n",
              "file": "pkg/accounts/token/token.go",
              "line": 185
            }
          ],
          "methods": [
            {
              "name": "Verify",
              "anchor": "Verifier.Verify",
              "recv": "*Verifier",
              "decl": "func (v *Verifier) Verify(tok string) (Claims, error)",
              "doc": "Verify checks tok and returns its claims. Errors wrap ErrMalformed, ErrUnknownKey, ErrSignature, ErrIssuer, ErrAudience, ErrExpired or ErrNotYetValid.\n",
              "file": "pkg/accounts/token/token.go",
              "line": 198
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/achievements",
      "name": "achievements",
      "dir": "pkg/achievements",
      "page": "pkg/achievements",
      "synopsis": "Package achievements declares a game's achievements once, in a versioned YAML file, tracks each player's progress toward them, and reports that progress through NSGo's platform game services: Game Center on macOS, iOS and tvOS, and Google Play Games Services on Android.",
      "doc": "Package achievements declares a game's achievements once, in a versioned YAML file, tracks each player's progress toward them, and reports that progress through NSGo's platform game services: Game Center on macOS, iOS and tvOS, and Google Play Games Services on Android.\n\n# Definitions\n\nA Set is the parsed form of an achievements file such as achievements.yaml. Each Definition has a game-wide ID that game code uses, an optional title and description for the game's own UI, a step count (1 for a one-shot achievement, more for one that fills up, such as \"clear 500 gems\"), and the ID each platform service knows it by. Game Center IDs are chosen by the developer in App Store Connect, Play Games IDs are generated by Play Console, so each service's ID is written out explicitly; an achievement without an ID for a service is not reported to that service.\n\nParse refuses unknown fields, unsupported versions, duplicate IDs and malformed platform IDs. Encode writes deterministic 2-space YAML, and a file Encode wrote parses and encodes back to the same bytes.\n\n# Progress\n\nA Tracker holds the steps the player has made toward each achievement. Progress only moves forward: SetSteps ignores a lower count, Add saturates at the achievement's step count, and Unlock completes it. OnUnlock is called once when an achievement completes.\n\nThe Tracker remembers, per service, the steps the service last acknowledged, so progress made offline or before sign-in is reported once a service is connected, and progress a service already has is not sent again. Progress and EncodeProgress give that state as a versioned YAML document; Persist keeps it in core.Storage (or any Store) and rewrites it after every change.\n\n# Game services\n\nSignIn picks the service for the running platform with ServiceFor, signs the player in with gameservices.Authenticate and, once signed in, connects the Tracker to a Reporter backed by gameservices.ReportAchievement, which reports everything pending. Where the platform has no game service (Windows, Linux, the web, watchOS) SignIn answers gameservices.ErrUnsupported and the Tracker keeps counting locally. Call gameservices.ShowAchievements to open the platform's own achievements screen.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the schema version of both the achievements file (Set) and the progress document (Progress) this package reads and writes.\n",
          "file": "pkg/achievements/format.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "MaxSteps",
              "anchor": "MaxSteps"
            }
          ],
          "decl": "const MaxSteps = math.MaxInt32",
          "doc": "MaxSteps is the largest step count a Definition may declare.\n",
          "file": "pkg/achievements/format.go",
          "line": 20
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrUnknownAchievement",
              "anchor": "ErrUnknownAchievement"
            },
            {
              "name": "ErrSave",
              "anchor": "ErrSave"
            }
          ],
          "decl": "var (\n\t// ErrUnknownAchievement reports an ID that the Tracker's Set does not declare.\n\tErrUnknownAchievement = errors.New(\"achievements: unknown achievement\")\n\t// ErrSave reports that progress was recorded in memory but could not be written to the Store given to Persist; the next successful write saves it.\n\tErrSave = errors.New(\"achievements: saving progress failed\")\n)",
          "doc": "",
          "file": "pkg/achievements/tracker.go",
          "line": 11
        }
      ],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(set *Set) ([]byte, error)",
          "doc": "Encode validates set and writes it as deterministic 2-space YAML that Parse reads back unchanged.\n",
          "file": "pkg/achievements/format.go",
          "line": 129
        },
        {
          "name": "EncodeProgress",
          "anchor": "EncodeProgress",
          "decl": "func EncodeProgress(p *Progress) ([]byte, error)",
          "doc": "EncodeProgress validates p and writes it as deterministic 2-space YAML with records sorted by ID and services in name order, so ParseProgress reads it back unchanged.\n",
          "file": "pkg/achievements/format.go",
          "line": 215
        },
        {
          "name": "SignIn",
          "anchor": "SignIn",
          "decl": "func SignIn(cx *core.Scope, t *Tracker, done func(gameservices.Player, error))",
          "doc": "SignIn signs the local player into the running platform's game service with gameservices.Authenticate and, once the player is signed in, connects t to that service through GameServices(cx), which reports all pending progress. Disposing cx, or letting its current owner run again as a view body does, disconnects t, unless t has been connected again since, so call SignIn from an event handler, an effect or a scope that lives as long as the game; progress made after that is reported by the next SignIn. done, which may be nil, receives the player or the error on cx's engine goroutine: gameservices.ErrUnsupported where the platform has no game service, and gameservices.ErrUnauthenticated when the service answers without a signed-in player. On failure t keeps recording progress, and a later SignIn reports it.\n",
          "file": "pkg/achievements/services.go",
          "line": 30
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(set *Set) error",
          "doc": "Validate checks that set follows the version 1 schema: known version, valid unique IDs, step counts in range, and well-formed platform IDs that no two achievements share on the same service.\n",
          "file": "pkg/achievements/format.go",
          "line": 137
        },
        {
          "name": "ValidateProgress",
          "anchor": "ValidateProgress",
          "decl": "func ValidateProgress(p *Progress) error",
          "doc": "ValidateProgress checks that p follows the version 1 schema: known version, valid unique IDs, non-negative steps, and acknowledged steps for known services between 0 and the record's steps.\n",
          "file": "pkg/achievements/format.go",
          "line": 225
        }
      ],
      "types": [
        {
          "name": "Definition",
          "anchor": "Definition",
          "decl": "type Definition struct {\n\t// ID is the game-wide identifier game code passes to Tracker: 1 to 128 ASCII letters, digits, '.', '_' or '-'.\n\tID string `yaml:\"id\"`\n\t// Title is an optional display name for the game's own UI; the platform services show the name configured in their consoles.\n\tTitle string `yaml:\"title,omitempty\"`\n\t// Description is an optional explanation for the game's own UI.\n\tDescription string `yaml:\"description,omitempty\"`\n\t// Hidden marks an achievement the game's own UI should not reveal before it is unlocked.\n\tHidden bool `yaml:\"hidden,omitempty\"`\n\t// Steps is the number of steps that complete the achievement, 1 to MaxSteps; 0 (omitted) means 1, a one-shot achievement.\n\tSteps int `yaml:\"steps,omitempty\"`\n\t// Platforms holds the ID each platform service knows the achievement by.\n\tPlatforms Platforms `yaml:\"platforms,omitempty\"`\n}",
          "doc": "Definition declares one achievement.\n",
          "file": "pkg/achievements/format.go",
          "line": 52,
          "members": [
            {
              "name": "ID",
              "anchor": "Definition.ID",
              "kind": "field",
              "doc": "ID is the game-wide identifier game code passes to Tracker: 1 to 128 ASCII letters, digits, '.', '_' or '-'."
            },
            {
              "name": "Title",
              "anchor": "Definition.Title",
              "kind": "field",
              "doc": "Title is an optional display name for the game's own UI; the platform services show the name configured in their consoles."
            },
            {
              "name": "Description",
              "anchor": "Definition.Description",
              "kind": "field",
              "doc": "Description is an optional explanation for the game's own UI."
            },
            {
              "name": "Hidden",
              "anchor": "Definition.Hidden",
              "kind": "field",
              "doc": "Hidden marks an achievement the game's own UI should not reveal before it is unlocked."
            },
            {
              "name": "Steps",
              "anchor": "Definition.Steps",
              "kind": "field",
              "doc": "Steps is the number of steps that complete the achievement, 1 to MaxSteps; 0 (omitted) means 1, a one-shot achievement."
            },
            {
              "name": "Platforms",
              "anchor": "Definition.Platforms",
              "kind": "field",
              "doc": "Platforms holds the ID each platform service knows the achievement by."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "TotalSteps",
              "anchor": "Definition.TotalSteps",
              "recv": "Definition",
              "decl": "func (d Definition) TotalSteps() int",
              "doc": "TotalSteps returns the steps that complete d: Steps, or 1 when Steps is 0.\n",
              "file": "pkg/achievements/format.go",
              "line": 68
            }
          ]
        },
        {
          "name": "Platforms",
          "anchor": "Platforms",
          "decl": "type Platforms struct {\n\t// GameCenter is the achievement ID configured in App Store Connect.\n\tGameCenter string `yaml:\"gameCenter,omitempty\"`\n\t// PlayGames is the achievement ID Play Console generated.\n\tPlayGames string `yaml:\"playGames,omitempty\"`\n}",
          "doc": "Platforms holds an achievement's ID on each platform service. An empty ID means the achievement is not reported to that service.\n",
          "file": "pkg/achievements/format.go",
          "line": 76,
          "members": [
            {
              "name": "GameCenter",
              "anchor": "Platforms.GameCenter",
              "kind": "field",
              "doc": "GameCenter is the achievement ID configured in App Store Connect."
            },
            {
              "name": "PlayGames",
              "anchor": "Platforms.PlayGames",
              "kind": "field",
              "doc": "PlayGames is the achievement ID Play Console generated."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ID",
              "anchor": "Platforms.ID",
              "recv": "Platforms",
              "decl": "func (p Platforms) ID(s Service) string",
              "doc": "ID returns the achievement's ID on service s, or \"\" when it has none there or s is unknown.\n",
              "file": "pkg/achievements/format.go",
              "line": 84
            }
          ]
        },
        {
          "name": "Progress",
          "anchor": "Progress",
          "decl": "type Progress struct {\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Achievements holds one record per achievement with progress, sorted by ID.\n\tAchievements []Record `yaml:\"achievements,omitempty\"`\n}",
          "doc": "Progress is the root of a versioned YAML progress document: the steps a player has made and what each service has acknowledged.\n",
          "file": "pkg/achievements/format.go",
          "line": 185,
          "members": [
            {
              "name": "Version",
              "anchor": "Progress.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "Achievements",
              "anchor": "Progress.Achievements",
              "kind": "field",
              "doc": "Achievements holds one record per achievement with progress, sorted by ID."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseProgress",
              "anchor": "ParseProgress",
              "decl": "func ParseProgress(data []byte) (*Progress, error)",
              "doc": "ParseProgress decodes a YAML progress document and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/achievements/format.go",
              "line": 203
            }
          ],
          "methods": []
        },
        {
          "name": "Record",
          "anchor": "Record",
          "decl": "type Record struct {\n\t// ID is the achievement's Definition.ID.\n\tID string `yaml:\"id\"`\n\t// Steps is the number of steps the player has made, 0 to the definition's TotalSteps.\n\tSteps int `yaml:\"steps\"`\n\t// Reported holds, per service, the steps that service last acknowledged; never more than Steps.\n\tReported map[Service]int `yaml:\"reported,omitempty\"`\n}",
          "doc": "Record is one achievement's progress.\n",
          "file": "pkg/achievements/format.go",
          "line": 193,
          "members": [
            {
              "name": "ID",
              "anchor": "Record.ID",
              "kind": "field",
              "doc": "ID is the achievement's Definition.ID."
            },
            {
              "name": "Steps",
              "anchor": "Record.Steps",
              "kind": "field",
              "doc": "Steps is the number of steps the player has made, 0 to the definition's TotalSteps."
            },
            {
              "name": "Reported",
              "anchor": "Record.Reported",
              "kind": "field",
              "doc": "Reported holds, per service, the steps that service last acknowledged; never more than Steps."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Reporter",
          "anchor": "Reporter",
          "decl": "type Reporter interface {\n\tReportAchievement(id string, percent float64, done func(error))\n}",
          "doc": "Reporter sends achievement progress to one platform service. ReportAchievement receives the achievement's ID on that service and its completion in percent (0 to 100, where 100 unlocks it) and must call done exactly once, from any goroutine, with nil once the service has accepted the update.\n",
          "file": "pkg/achievements/tracker.go",
          "line": 25,
          "members": [
            {
              "name": "ReportAchievement",
              "anchor": "Reporter.ReportAchievement",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "GameServices",
              "anchor": "GameServices",
              "decl": "func GameServices(cx *core.Scope) Reporter",
              "doc": "GameServices returns a Reporter that reports through gameservices.ReportAchievement on cx, so its answers arrive on cx's engine goroutine. Answers stop once cx is disposed, so a report still awaiting one when that happens would hold its achievement back for the rest of the connection: pass a scope that lives as long as the connection, such as the app's root scope, or call Tracker.Disconnect when cx is disposed. SignIn does the latter.\n",
              "file": "pkg/achievements/services.go",
              "line": 23
            }
          ],
          "methods": []
        },
        {
          "name": "ReporterFunc",
          "anchor": "ReporterFunc",
          "decl": "type ReporterFunc func(id string, percent float64, done func(error))",
          "doc": "ReporterFunc adapts a function to the Reporter interface.\n",
          "file": "pkg/achievements/tracker.go",
          "line": 30,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ReportAchievement",
              "anchor": "ReporterFunc.ReportAchievement",
              "recv": "ReporterFunc",
              "decl": "func (f ReporterFunc) ReportAchievement(id string, percent float64, done func(error))",
              "doc": "ReportAchievement calls f(id, percent, done).\n",
              "file": "pkg/achievements/tracker.go",
              "line": 33
            }
          ]
        },
        {
          "name": "Service",
          "anchor": "Service",
          "decl": "type Service string",
          "doc": "Service names a platform game service an achievement is reported to.\n",
          "file": "pkg/achievements/format.go",
          "line": 28,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GameCenter",
                  "anchor": "GameCenter"
                },
                {
                  "name": "PlayGames",
                  "anchor": "PlayGames"
                }
              ],
              "decl": "const (\n\t// GameCenter is Apple's Game Center, reached through GameKit on macOS, iOS and tvOS.\n\tGameCenter Service = \"gameCenter\"\n\t// PlayGames is Google Play Games Services on Android.\n\tPlayGames Service = \"playGames\"\n)",
              "doc": "",
              "file": "pkg/achievements/format.go",
              "line": 30
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ServiceFor",
              "anchor": "ServiceFor",
              "decl": "func ServiceFor(os core.OS) Service",
              "doc": "ServiceFor returns the platform game service NSGo's gameservices package reaches on os: GameCenter on macOS and iOS (which includes tvOS), PlayGames on Android, and \"\" elsewhere.\n",
              "file": "pkg/achievements/services.go",
              "line": 11
            }
          ],
          "methods": [
            {
              "name": "Valid",
              "anchor": "Service.Valid",
              "recv": "Service",
              "decl": "func (s Service) Valid() bool",
              "doc": "Valid reports whether s is a known Service.\n",
              "file": "pkg/achievements/format.go",
              "line": 41
            }
          ]
        },
        {
          "name": "Set",
          "anchor": "Set",
          "decl": "type Set struct {\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Achievements lists the game's achievements in the order the game presents them.\n\tAchievements []Definition `yaml:\"achievements,omitempty\"`\n}",
          "doc": "Set is the root of a versioned YAML achievements file.\n",
          "file": "pkg/achievements/format.go",
          "line": 44,
          "members": [
            {
              "name": "Version",
              "anchor": "Set.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "Achievements",
              "anchor": "Set.Achievements",
              "kind": "field",
              "doc": "Achievements lists the game's achievements in the order the game presents them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Set, error)",
              "doc": "Parse decodes a YAML achievements file and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/achievements/format.go",
              "line": 117
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Set.Clone",
              "recv": "*Set",
              "decl": "func (s *Set) Clone() *Set",
              "doc": "Clone returns a deep copy of s.\n",
              "file": "pkg/achievements/format.go",
              "line": 109
            },
            {
              "name": "Lookup",
              "anchor": "Set.Lookup",
              "recv": "*Set",
              "decl": "func (s *Set) Lookup(id string) (Definition, bool)",
              "doc": "Lookup returns the definition whose ID is id.\n",
              "file": "pkg/achievements/format.go",
              "line": 96
            }
          ]
        },
        {
          "name": "Store",
          "anchor": "Store",
          "decl": "type Store interface {\n\tGetItem(key string) (string, bool)\n\tSetItem(key, value string) error\n}",
          "doc": "Store is the key-value storage Persist keeps progress in; core.Storage satisfies it.\n",
          "file": "pkg/achievements/tracker.go",
          "line": 19,
          "members": [
            {
              "name": "GetItem",
              "anchor": "Store.GetItem",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "SetItem",
              "anchor": "Store.SetItem",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Tracker",
          "anchor": "Tracker",
          "decl": "type Tracker struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Tracker records a player's progress toward the achievements of a Set and reports it to a connected platform service. Its methods are safe for concurrent use; callbacks run without the Tracker's lock held, so they may call back into it.\n",
          "file": "pkg/achievements/tracker.go",
          "line": 38,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTracker",
              "anchor": "NewTracker",
              "decl": "func NewTracker(set *Set) (*Tracker, error)",
              "doc": "NewTracker returns a Tracker for a copy of set, with no progress and no service connected. It returns the error Validate reports for an invalid set.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 69
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Tracker.Add",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Add(id string, n int) error",
              "doc": "Add adds n steps to achievement id's progress, saturating at its step count. It returns an error for a negative n and does nothing for 0; otherwise it saves and reports as SetSteps does.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 160
            },
            {
              "name": "Connect",
              "anchor": "Tracker.Connect",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Connect(service Service, r Reporter) error",
              "doc": "Connect makes r the Reporter for service and reports every achievement whose progress service has not acknowledged. It replaces any earlier connection.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 345
            },
            {
              "name": "Definitions",
              "anchor": "Tracker.Definitions",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Definitions() []Definition",
              "doc": "Definitions returns a copy of the tracked achievements in their declared order.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 85
            },
            {
              "name": "Disconnect",
              "anchor": "Tracker.Disconnect",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Disconnect()",
              "doc": "Disconnect detaches the connected service. Progress keeps being recorded, and saved when Persist set a Store, and is reported on the next Connect.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 375
            },
            {
              "name": "Flush",
              "anchor": "Tracker.Flush",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Flush()",
              "doc": "Flush reports every achievement whose progress the connected service has not acknowledged and that is not already being reported. It does nothing without a connected service.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 407
            },
            {
              "name": "Lookup",
              "anchor": "Tracker.Lookup",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Lookup(id string) (Definition, bool)",
              "doc": "Lookup returns the definition whose ID is id.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 90
            },
            {
              "name": "OnError",
              "anchor": "Tracker.OnError",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) OnError(fn func(Definition, error))",
              "doc": "OnError sets fn to be called with a failed report's achievement and error, or with a save failure wrapped in ErrSave; nil clears it. Failed reports stay pending and are retried by the next change, Flush or Connect.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 106
            },
            {
              "name": "OnUnlock",
              "anchor": "Tracker.OnUnlock",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) OnUnlock(fn func(Definition))",
              "doc": "OnUnlock sets fn to be called once each time an achievement reaches its step count through SetSteps, Add or Unlock; nil clears it. Restore never calls it.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 99
            },
            {
              "name": "Pending",
              "anchor": "Tracker.Pending",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Pending(service Service) []string",
              "doc": "Pending returns, in declared order, the IDs of achievements with an ID on service whose progress service has not acknowledged.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 417
            },
            {
              "name": "Percent",
              "anchor": "Tracker.Percent",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Percent(id string) float64",
              "doc": "Percent returns achievement id's completion from 0 to 100, 0 for an unknown ID.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 123
            },
            {
              "name": "Persist",
              "anchor": "Tracker.Persist",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Persist(store Store, key string) error",
              "doc": "Persist loads the progress stored under key in store, if any, and then writes the progress back there as YAML after every change. When the stored progress cannot be parsed, Persist returns the error and leaves the Tracker and store untouched, so the caller decides whether to discard it.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 278
            },
            {
              "name": "Progress",
              "anchor": "Tracker.Progress",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Progress() *Progress",
              "doc": "Progress returns the current progress as a document EncodeProgress can write: one record per achievement with steps made or acknowledged, sorted by ID.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 211
            },
            {
              "name": "Restore",
              "anchor": "Tracker.Restore",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Restore(p *Progress) error",
              "doc": "Restore replaces the Tracker's progress with p. Records for achievements the Set no longer declares are dropped, and steps beyond an achievement's step count are capped. It does not call OnUnlock or save, and reports whatever is pending when a service is connected.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 238
            },
            {
              "name": "Service",
              "anchor": "Tracker.Service",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Service() Service",
              "doc": "Service returns the connected service, \"\" when none.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 400
            },
            {
              "name": "SetSteps",
              "anchor": "Tracker.SetSteps",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) SetSteps(id string, steps int) error",
              "doc": "SetSteps raises achievement id's progress to steps, capped at its step count. Progress never goes back, so a count at or below the current one does nothing. The new progress is saved when Persist set a Store, and reported when a service is connected; a save failure is returned wrapped in ErrSave after the progress is recorded.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 152
            },
            {
              "name": "Steps",
              "anchor": "Tracker.Steps",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Steps(id string) int",
              "doc": "Steps returns the steps made toward achievement id, 0 for an unknown ID.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 113
            },
            {
              "name": "Unlock",
              "anchor": "Tracker.Unlock",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Unlock(id string) error",
              "doc": "Unlock completes achievement id. Unlocking an achievement that is already complete does nothing.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 143
            },
            {
              "name": "Unlocked",
              "anchor": "Tracker.Unlocked",
              "recv": "*Tracker",
              "decl": "func (t *Tracker) Unlocked(id string) bool",
              "doc": "Unlocked reports whether achievement id has reached its step count.\n",
              "file": "pkg/achievements/tracker.go",
              "line": 133
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/ai",
      "name": "ai",
      "dir": "pkg/ai",
      "page": "pkg/ai",
      "synopsis": "Package ai provides deterministic game AI building blocks: grid A* pathfinding (with line-of-sight smoothing, bounded expansion budgets, partial paths, incremental searches, and budgeted request queues), HPA* hierarchical pathfinding with incremental cluster updates, Jump Point Search (JPS) for uniform-cost grids, generic graph A*/Dijkstra/range search with hex tilemap adapters and 2D/3D waypoint graphs, 2D navigation meshes with funnel smoothing, polygon areas/filters, and path-corridor navigation agents, steering behaviors, velocity-based local avoidance (ORCA) in 2D and 3D XZ, behavior trees, utility AI scoring, goal-oriented action planning (GOAP), attack token pools, engagement slot assignment, squad coordination, spatial influence maps, tactical position queries with cover points, and perception with sight, hearing and memory.",
      "doc": "Package ai provides deterministic game AI building blocks: grid A* pathfinding (with line-of-sight smoothing, bounded expansion budgets, partial paths, incremental searches, and budgeted request queues), HPA* hierarchical pathfinding with incremental cluster updates, Jump Point Search (JPS) for uniform-cost grids, generic graph A*/Dijkstra/range search with hex tilemap adapters and 2D/3D waypoint graphs, 2D navigation meshes with funnel smoothing, polygon areas/filters, and path-corridor navigation agents, steering behaviors, velocity-based local avoidance (ORCA) in 2D and 3D XZ, behavior trees, utility AI scoring, goal-oriented action planning (GOAP), attack token pools, engagement slot assignment, squad coordination, spatial influence maps, tactical position queries with cover points, and perception with sight, hearing and memory.\n\nEverything runs cleanly on game.Loop's fixed steps with no background goroutines and no hidden global randomness.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MaxBoolFacts",
              "anchor": "MaxBoolFacts"
            },
            {
              "name": "MaxIntFacts",
              "anchor": "MaxIntFacts"
            },
            {
              "name": "DefaultGOAPNodeBudget",
              "anchor": "DefaultGOAPNodeBudget"
            }
          ],
          "decl": "const (\n\t// MaxBoolFacts is the maximum number of named boolean facts a FactSchema and WorldState can store.\n\tMaxBoolFacts = 128\n\t// MaxIntFacts is the maximum number of named small integer facts a FactSchema and WorldState can store.\n\tMaxIntFacts = 16\n\t// DefaultGOAPNodeBudget is the default maximum number of regressive A* search nodes expanded per plan.\n\tDefaultGOAPNodeBudget = 1024\n)",
          "doc": "",
          "file": "pkg/ai/goap.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "DefaultHPAClusterSize",
              "anchor": "DefaultHPAClusterSize"
            },
            {
              "name": "DefaultHPAMaxEntranceSpan",
              "anchor": "DefaultHPAMaxEntranceSpan"
            }
          ],
          "decl": "const (\n\t// DefaultHPAClusterSize is the default width and height in cells of each HPA* cluster.\n\tDefaultHPAClusterSize = 16\n\t// DefaultHPAMaxEntranceSpan is the maximum contiguous walkable border span represented by a single entrance before splitting into endpoint entrances.\n\tDefaultHPAMaxEntranceSpan = 6\n)",
          "doc": "",
          "file": "pkg/ai/hpa.go",
          "line": 8
        },
        {
          "idents": [
            {
              "name": "DefaultORCATimeHorizon",
              "anchor": "DefaultORCATimeHorizon"
            },
            {
              "name": "DefaultORCATimeHorizonObst",
              "anchor": "DefaultORCATimeHorizonObst"
            },
            {
              "name": "DefaultORCAMaxNeighbors",
              "anchor": "DefaultORCAMaxNeighbors"
            },
            {
              "name": "ORCALayerDefault",
              "anchor": "ORCALayerDefault"
            },
            {
              "name": "ORCAMaskAll",
              "anchor": "ORCAMaskAll"
            }
          ],
          "decl": "const (\n\t// DefaultORCATimeHorizon is the default look-ahead horizon (in seconds) for agent-agent avoidance.\n\tDefaultORCATimeHorizon float32 = 2.0\n\t// DefaultORCATimeHorizonObst is the default look-ahead horizon (in seconds) for static obstacle edges.\n\tDefaultORCATimeHorizonObst float32 = 1.0\n\t// DefaultORCAMaxNeighbors is the default cap on nearest neighbors per agent contributing ORCA constraints.\n\tDefaultORCAMaxNeighbors = 16\n\n\t// ORCALayerDefault is the default avoidance layer assigned when an ORCAAgent's Layer is 0.\n\tORCALayerDefault uint32 = 1\n\t// ORCAMaskAll matches every avoidance layer and is the default when Mask (or obstacle Layer) is 0.\n\tORCAMaskAll uint32 = ^uint32(0)\n)",
          "doc": "",
          "file": "pkg/ai/orca.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "BTFormatVersion",
              "anchor": "BTFormatVersion"
            }
          ],
          "decl": "const BTFormatVersion = 1",
          "doc": "BTFormatVersion is the behavior tree YAML schema version this package reads and writes.\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "BTSchemaComment",
              "anchor": "BTSchemaComment"
            }
          ],
          "decl": "const BTSchemaComment = \"# yaml-language-server: $schema=\" + BTSchemaURL",
          "doc": "BTSchemaComment is the first line [EncodeBehaviorTree] writes so YAML language\nservers validate and complete behavior tree files automatically.\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "BTSchemaURL",
              "anchor": "BTSchemaURL"
            }
          ],
          "decl": "const BTSchemaURL = \"https://game.nsgo.dev/schemas/bt.v1.json\"",
          "doc": "BTSchemaURL is where the JSON Schema of version 1 behavior tree documents is published.\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "BTSnapshotVersion",
              "anchor": "BTSnapshotVersion"
            }
          ],
          "decl": "const BTSnapshotVersion = 1",
          "doc": "BTSnapshotVersion is the [BehaviorTreeSnapshot] schema version written and read\nby [SnapshotBehaviorTree] and [RestoreBehaviorTree].\n",
          "file": "pkg/ai/bt_snapshot.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "GOAPVersion",
              "anchor": "GOAPVersion"
            }
          ],
          "decl": "const GOAPVersion = 1",
          "doc": "GOAPVersion is the GOAP action-set YAML schema version this package reads and writes.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "NavLinkOffMesh",
              "anchor": "NavLinkOffMesh"
            }
          ],
          "decl": "const NavLinkOffMesh uint32 = 1 << 0",
          "doc": "NavLinkOffMesh is a link flag marking a portal as an off-mesh connection\n(such as a jump, drop-down, ladder, or teleport) rather than a shared polygon edge.\n",
          "file": "pkg/ai/navmesh.go",
          "line": 66
        },
        {
          "idents": [
            {
              "name": "UtilityVersion",
              "anchor": "UtilityVersion"
            }
          ],
          "decl": "const UtilityVersion = 1",
          "doc": "UtilityVersion is the utility AI YAML schema version this package reads and writes.\n",
          "file": "pkg/ai/utility_yaml.go",
          "line": 14
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNoPlan",
              "anchor": "ErrNoPlan"
            },
            {
              "name": "ErrBudgetExceeded",
              "anchor": "ErrBudgetExceeded"
            }
          ],
          "decl": "var (\n\t// ErrNoPlan is returned when no sequence of usable actions can satisfy the target goal from the current WorldState.\n\tErrNoPlan = errors.New(\"ai: no plan found\")\n\t// ErrBudgetExceeded is returned when regressive A* exhausts GOAPPlanner.NodeBudget without finding a plan.\n\tErrBudgetExceeded = errors.New(\"ai: planner node budget exceeded\")\n)",
          "doc": "",
          "file": "pkg/ai/goap.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ErrInvalidBTSnapshot",
              "anchor": "ErrInvalidBTSnapshot"
            }
          ],
          "decl": "var ErrInvalidBTSnapshot = errors.New(\"ai: invalid behavior tree snapshot\")",
          "doc": "ErrInvalidBTSnapshot reports a [BehaviorTreeSnapshot] that [RestoreBehaviorTree]\nrefuses because its version, tree structure, node kinds, or state values do not\nmatch the target behavior tree.\n",
          "file": "pkg/ai/bt_snapshot.go",
          "line": 19
        }
      ],
      "funcs": [
        {
          "name": "Alignment",
          "anchor": "Alignment",
          "decl": "func Alignment(a Agent, neighbors []Agent, radius float32) core.Point",
          "doc": "Alignment returns a steering force that steers a toward the average heading\nof neighbors within radius. When radius is less than or equal to 0, all\nnon-coincident neighbors in the slice are included.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 118
        },
        {
          "name": "Arrive",
          "anchor": "Arrive",
          "decl": "func Arrive(a Agent, target core.Point, slowRadius float32) core.Point",
          "doc": "Arrive returns a steering force toward target that smoothly scales desired speed down to zero inside slowRadius.\n",
          "file": "pkg/ai/steering.go",
          "line": 73
        },
        {
          "name": "Cohesion",
          "anchor": "Cohesion",
          "decl": "func Cohesion(a Agent, neighbors []Agent, radius float32) core.Point",
          "doc": "Cohesion returns a steering force that steers a toward the center of mass of\nneighbors within radius. When radius is less than or equal to 0, all\nnon-coincident neighbors in the slice are included.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 153
        },
        {
          "name": "Combine",
          "anchor": "Combine",
          "decl": "func Combine(maxForce float32, forces ...WeightedForce) core.Point",
          "doc": "Combine sums weighted steering forces and clamps the result's magnitude to maxForce when maxForce is positive.\n",
          "file": "pkg/ai/steering.go",
          "line": 229
        },
        {
          "name": "CombinePrioritized",
          "anchor": "CombinePrioritized",
          "decl": "func CombinePrioritized(maxForce float32, forces ...WeightedForce) core.Point",
          "doc": "CombinePrioritized blends steering forces in priority order (earliest entry\nfirst), spending at most maxForce total magnitude. Once a force saturates\nthe remaining budget it is truncated to the remainder and lower-priority\nforces are ignored. When maxForce is less than or equal to 0, forces are\nsummed without truncation.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 476
        },
        {
          "name": "EncodeBehaviorTree",
          "anchor": "EncodeBehaviorTree",
          "decl": "func EncodeBehaviorTree(doc *BehaviorTreeDoc) ([]byte, error)",
          "doc": "EncodeBehaviorTree validates doc and serializes it as deterministic 2-space YAML\nin fixed field order prefixed with [BTSchemaComment].\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 263
        },
        {
          "name": "EncodeGOAP",
          "anchor": "EncodeGOAP",
          "decl": "func EncodeGOAP(cfg *GOAPConfig) ([]byte, error)",
          "doc": "EncodeGOAP validates cfg and encodes it as deterministic 2-space YAML in fixed field order.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 183
        },
        {
          "name": "EncodeUtility",
          "anchor": "EncodeUtility",
          "decl": "func EncodeUtility(cfg *UtilityConfig) ([]byte, error)",
          "doc": "EncodeUtility validates cfg and encodes it as deterministic 2-space YAML in fixed field order.\n",
          "file": "pkg/ai/utility_yaml.go",
          "line": 103
        },
        {
          "name": "Evade",
          "anchor": "Evade",
          "decl": "func Evade(a, pursuer Agent, panicRadius, maxLookAhead float32) core.Point",
          "doc": "Evade returns a steering force that flees from the predicted future position\nof pursuer. When panicRadius is positive, Evade returns the zero force once\na is at least panicRadius away from pursuer.Pos. Look-ahead time is capped\nto maxLookAhead seconds when maxLookAhead is positive.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 63
        },
        {
          "name": "Flee",
          "anchor": "Flee",
          "decl": "func Flee(a Agent, threat core.Point, panicRadius float32) core.Point",
          "doc": "Flee returns the steering force that accelerates a away from threat at MaxSpeed.\nWhen panicRadius is positive, Flee returns the zero force once a is at least panicRadius away from threat.\n",
          "file": "pkg/ai/steering.go",
          "line": 50
        },
        {
          "name": "FollowPath",
          "anchor": "FollowPath",
          "decl": "func FollowPath(a Agent, path []core.Point, state *PathFollowState, waypointRadius float32, loop bool) core.Point",
          "doc": "FollowPath steers a along path, advancing state.Index when a enters waypointRadius of the current waypoint.\n\nWhen loop is true the path wraps back to index 0; otherwise the agent uses Arrive on the final waypoint and sets state.Done once within waypointRadius.\n",
          "file": "pkg/ai/steering.go",
          "line": 170
        },
        {
          "name": "FormatBTTrace",
          "anchor": "FormatBTTrace",
          "decl": "func FormatBTTrace(nodes []BTNodeTrace) string",
          "doc": "FormatBTTrace renders nodes in a deterministic canonical text format suitable for\nstatedump Values and golden-file diffs across runs.\n\nEach line represents one node indented by 2 spaces per depth level, prefixed with \"* \" when\nActive (on the running path) or \"  \" otherwise:\n\n  - selector \"root\" = Running\n    sequence \"attack\" = Failure\n    condition \"in_range\" = Failure\n    action \"swing\" = Idle\n  - action \"patrol\" = Running\n",
          "file": "pkg/ai/bt_inspect.go",
          "line": 377
        },
        {
          "name": "GridLineOfSight",
          "anchor": "GridLineOfSight",
          "decl": "func GridLineOfSight(g Grid, a, b core.Point, opts GridPathOptions) bool",
          "doc": "GridLineOfSight reports whether a circular body of radius opts.Radius can move straight from a to b on g without passing within opts.Radius of any blocked cell (!g.Walkable(col, row)).\n\nReturns false when g is nil, has non-positive dimensions, or either endpoint lies outside the grid's world bounds.\n",
          "file": "pkg/ai/smooth.go",
          "line": 67
        },
        {
          "name": "Hide",
          "anchor": "Hide",
          "decl": "func Hide(a, pursuer Agent, obstacles []Obstacle, standoff, slowRadius float32) core.Point",
          "doc": "Hide picks the closest hiding spot behind a circular obstacle opposite\npursuer and steers a toward it using Arrive. Each spot lies\nobs.Radius + a.Radius + max(0, standoff) past obs.Center along the ray from\npursuer.Pos through obs.Center. If no valid obstacle exists, Hide falls back\nto Evade.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 414
        },
        {
          "name": "InfluenceHeatmapEnabled",
          "anchor": "InfluenceHeatmapEnabled",
          "decl": "func InfluenceHeatmapEnabled() bool",
          "doc": "InfluenceHeatmapEnabled reports whether DrawHeatmap is compiled into this build.\nIt is true in default builds and false when built with -tags release.\n",
          "file": "pkg/ai/influence_debug.go",
          "line": 14
        },
        {
          "name": "Interpose",
          "anchor": "Interpose",
          "decl": "func Interpose(a, targetA, targetB Agent, slowRadius float32) core.Point",
          "doc": "Interpose steers a to intercept the predicted midpoint between two moving\nagents targetA and targetB, slowing smoothly inside slowRadius via Arrive.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 455
        },
        {
          "name": "ObstacleAvoidance",
          "anchor": "ObstacleAvoidance",
          "decl": "func ObstacleAvoidance(a Agent, obstacles []Obstacle, maxAhead float32) core.Point",
          "doc": "ObstacleAvoidance returns a steering force that deflects a around the nearest\ncircular obstacle intersecting its forward detection corridor of length\nmaxAhead. When maxAhead is less than or equal to 0, a default look-ahead is\nderived from a.Radius and a.MaxSpeed.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 184
        },
        {
          "name": "OffsetPursuit",
          "anchor": "OffsetPursuit",
          "decl": "func OffsetPursuit(a, leader Agent, localOffset core.Point, slowRadius, maxLookAhead float32) core.Point",
          "doc": "OffsetPursuit returns a steering force that moves a to localOffset expressed\nin leader's heading frame (X forward along leader's heading, Y to leader's\nleft perpendicular), predicting leader's motion up to maxLookAhead seconds\nwhen positive and slowing smoothly inside slowRadius via Arrive.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 88
        },
        {
          "name": "Pursue",
          "anchor": "Pursue",
          "decl": "func Pursue(a, target Agent, maxLookAhead float32) core.Point",
          "doc": "Pursue returns a steering force that intercepts a moving target by predicting\nits future position from target.Vel. Look-ahead time is computed from\ndistance divided by combined speed and capped to maxLookAhead seconds when\nmaxLookAhead is positive.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 24
        },
        {
          "name": "RestoreBehaviorTree",
          "anchor": "RestoreBehaviorTree",
          "decl": "func RestoreBehaviorTree(root Node, snap BehaviorTreeSnapshot) error",
          "doc": "RestoreBehaviorTree validates snap against the tree rooted at root and restores\nevery node's runtime state atomically.\n\nIf snap has an unsupported version, does not match root's exact structural shape\nand node kinds, contains out-of-range values, or a custom [SnapshotNode] refuses\nits state, RestoreBehaviorTree returns an error wrapping [ErrInvalidBTSnapshot]\nnaming the mismatch path and leaves root unchanged.\n",
          "file": "pkg/ai/bt_snapshot.go",
          "line": 227
        },
        {
          "name": "Seek",
          "anchor": "Seek",
          "decl": "func Seek(a Agent, target core.Point) core.Point",
          "doc": "Seek returns the steering force that accelerates a toward target at MaxSpeed.\n",
          "file": "pkg/ai/steering.go",
          "line": 34
        },
        {
          "name": "Separation",
          "anchor": "Separation",
          "decl": "func Separation(a Agent, neighbors []Agent, desiredSep float32) core.Point",
          "doc": "Separation returns a steering force that pushes a away from neighbors closer than desiredSep.\nWhen desiredSep is less than or equal to 0, a.Radius + neighbor.Radius is used for each neighbor.\n",
          "file": "pkg/ai/steering.go",
          "line": 127
        },
        {
          "name": "SmoothGridPath",
          "anchor": "SmoothGridPath",
          "decl": "func SmoothGridPath(g Grid, path []Cell, opts GridPathOptions) []core.Point",
          "doc": "SmoothGridPath converts a grid cell path (such as from AStar.Find) into world-space waypoints, dropping intermediate cells whenever a body of radius opts.Radius can walk straight between kept waypoints without passing within opts.Radius of any blocked cell.\n\nSmoothGridPath checks walkability via g.Walkable and ignores CostGrid terrain weights. When smoothing with a positive opts.Radius, pair it with standard cell-by-cell AStar (AnyAngle: false) so corner cells remain available when the body radius cannot clear a corner directly.\n\nIt allocates only the returned waypoint slice; use SmoothGridPathInto to reuse a caller-owned slice with zero allocations.\n",
          "file": "pkg/ai/smooth.go",
          "line": 84
        },
        {
          "name": "SmoothGridPathInto",
          "anchor": "SmoothGridPathInto",
          "decl": "func SmoothGridPathInto(dst []core.Point, g Grid, path []Cell, opts GridPathOptions) []core.Point",
          "doc": "SmoothGridPathInto behaves like SmoothGridPath but appends the smoothed waypoints into dst[:0], avoiding heap allocations when dst has enough capacity.\n",
          "file": "pkg/ai/smooth.go",
          "line": 89
        },
        {
          "name": "SquadStateGet",
          "anchor": "SquadStateGet",
          "decl": "func SquadStateGet[T any](s *SquadState, key string) (T, bool)",
          "doc": "SquadStateGet retrieves a typed value of type T from s, returning (zero, false) when s is nil,\nthe key is missing, or the stored value has a different type.\n",
          "file": "pkg/ai/squad.go",
          "line": 532
        },
        {
          "name": "ValidateBehaviorTree",
          "anchor": "ValidateBehaviorTree",
          "decl": "func ValidateBehaviorTree(doc *BehaviorTreeDoc) error",
          "doc": "ValidateBehaviorTree checks that doc conforms to the version 1 behavior tree schema.\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 282
        },
        {
          "name": "WallAvoidance",
          "anchor": "WallAvoidance",
          "decl": "func WallAvoidance(a Agent, walls []Wall, feelerLength float32) core.Point",
          "doc": "WallAvoidance returns a steering force that keeps a clear of wall segments\nusing three forward feeler whiskers and direct radius clearance containment.\nWhen feelerLength is less than or equal to 0, a default length is derived\nfrom a.Radius and a.MaxSpeed.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 281
        },
        {
          "name": "Wander",
          "anchor": "Wander",
          "decl": "func Wander(a Agent, state *WanderState, radius, distance, jitter float32, nextRand func() float32) core.Point",
          "doc": "Wander steers a toward a point jittered along a circle of radius placed distance ahead of its heading.\n\nnextRand should return a deterministic value in [0, 1), mapped to [-jitter, +jitter] radians per call; a nil nextRand applies no jitter.\n",
          "file": "pkg/ai/steering.go",
          "line": 99
        }
      ],
      "types": [
        {
          "name": "AStar",
          "anchor": "AStar",
          "decl": "type AStar struct {\n\t// Diagonal allows 8-way movement with step distance sqrt(2) on diagonals; false restricts movement to 4 cardinal directions.\n\t// On hexagonal topologies Diagonal has no effect; TopologySquare4 and TopologySquare8 override Diagonal.\n\tDiagonal bool\n\t// NoCornerCutting prevents diagonal moves when either adjacent cardinal cell is blocked. It only takes effect when diagonal moves are enabled, and also prevents Theta* any-angle lines of sight from grazing blocked cell corners when AnyAngle is true.\n\tNoCornerCutting bool\n\t// AnyAngle enables Theta*-style any-angle pathfinding on square grids (TopologySquare, TopologySquare4, TopologySquare8),\n\t// linking neighbors directly to an ancestor cell whenever line of sight between cell centers is unobstructed across uniform-cost cells.\n\t// AnyAngle is ignored on hexagonal or staggered topologies and on EdgeCostGrid maps.\n\t// When smoothing a path for a body with positive clearance radius, prefer standard cell-by-cell A* (AnyAngle: false) followed by SmoothGridPath or SmoothGridPathInto.\n\tAnyAngle bool\n\t// Topology selects the cell adjacency and admissible distance heuristic. The zero value (TopologySquare) preserves square-grid behavior.\n\tTopology GridTopology\n\t// MaxExpansions caps the number of cells expanded per Find or FindInto call.\n\t// Zero or negative means unlimited expansions. FindWithOptions uses this limit when PathOptions.MaxExpansions is zero.\n\tMaxExpansions int\n\t// contains filtered or unexported fields\n}",
          "doc": "AStar finds lowest-cost paths on a Grid, reusing its internal search buffers across calls.\n\nNewAStar returns a searcher with NoCornerCutting enabled by default. An AStar is not safe for concurrent use by multiple goroutines.\n",
          "file": "pkg/ai/astar.go",
          "line": 194,
          "members": [
            {
              "name": "Diagonal",
              "anchor": "AStar.Diagonal",
              "kind": "field",
              "doc": "Diagonal allows 8-way movement with step distance sqrt(2) on diagonals; false restricts movement to 4 cardinal directions.\nOn hexagonal topologies Diagonal has no effect; TopologySquare4 and TopologySquare8 override Diagonal."
            },
            {
              "name": "NoCornerCutting",
              "anchor": "AStar.NoCornerCutting",
              "kind": "field",
              "doc": "NoCornerCutting prevents diagonal moves when either adjacent cardinal cell is blocked. It only takes effect when diagonal moves are enabled, and also prevents Theta* any-angle lines of sight from grazing blocked cell corners when AnyAngle is true."
            },
            {
              "name": "AnyAngle",
              "anchor": "AStar.AnyAngle",
              "kind": "field",
              "doc": "AnyAngle enables Theta*-style any-angle pathfinding on square grids (TopologySquare, TopologySquare4, TopologySquare8),\nlinking neighbors directly to an ancestor cell whenever line of sight between cell centers is unobstructed across uniform-cost cells.\nAnyAngle is ignored on hexagonal or staggered topologies and on EdgeCostGrid maps.\nWhen smoothing a path for a body with positive clearance radius, prefer standard cell-by-cell A* (AnyAngle: false) followed by SmoothGridPath or SmoothGridPathInto."
            },
            {
              "name": "Topology",
              "anchor": "AStar.Topology",
              "kind": "field",
              "doc": "Topology selects the cell adjacency and admissible distance heuristic. The zero value (TopologySquare) preserves square-grid behavior."
            },
            {
              "name": "MaxExpansions",
              "anchor": "AStar.MaxExpansions",
              "kind": "field",
              "doc": "MaxExpansions caps the number of cells expanded per Find or FindInto call.\nZero or negative means unlimited expansions. FindWithOptions uses this limit when PathOptions.MaxExpansions is zero."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewAStar",
              "anchor": "NewAStar",
              "decl": "func NewAStar() *AStar",
              "doc": "NewAStar returns an AStar searcher with 4-way movement and NoCornerCutting enabled by default.\n",
              "file": "pkg/ai/astar.go",
              "line": 231
            }
          ],
          "methods": [
            {
              "name": "Find",
              "anchor": "AStar.Find",
              "recv": "*AStar",
              "decl": "func (a *AStar) Find(g Grid, start, goal Cell) (path []Cell, cost float64, ok bool)",
              "doc": "Find searches g for a minimum-cost path from start to goal, returning the cells from start to goal inclusive and the total path cost.\n\nIt reuses all internal search buffers and allocates only the returned path slice.\n",
              "file": "pkg/ai/astar.go",
              "line": 238
            },
            {
              "name": "FindInto",
              "anchor": "AStar.FindInto",
              "recv": "*AStar",
              "decl": "func (a *AStar) FindInto(dst []Cell, g Grid, start, goal Cell) (path []Cell, cost float64, ok bool)",
              "doc": "FindInto behaves like Find but writes the resulting path into dst[:0], avoiding allocations when dst has enough capacity.\n",
              "file": "pkg/ai/astar.go",
              "line": 243
            },
            {
              "name": "FindWithOptions",
              "anchor": "AStar.FindWithOptions",
              "recv": "*AStar",
              "decl": "func (a *AStar) FindWithOptions(g Grid, start, goal Cell, opts PathOptions) GridPathResult",
              "doc": "FindWithOptions searches g from start to goal under opts, supporting an expansion budget\nand optional partial paths to the closest explored cell when the goal is unreachable or the budget runs out.\n",
              "file": "pkg/ai/astar.go",
              "line": 253
            },
            {
              "name": "FindWithOptionsInto",
              "anchor": "AStar.FindWithOptionsInto",
              "recv": "*AStar",
              "decl": "func (a *AStar) FindWithOptionsInto(dst []Cell, g Grid, start, goal Cell, opts PathOptions) GridPathResult",
              "doc": "FindWithOptionsInto behaves like FindWithOptions but writes the resulting path into dst[:0],\navoiding allocations when dst has enough capacity.\n",
              "file": "pkg/ai/astar.go",
              "line": 259
            },
            {
              "name": "MovementRange",
              "anchor": "AStar.MovementRange",
              "recv": "*AStar",
              "decl": "func (a *AStar) MovementRange(g Grid, start Cell, budget float64) []ReachableCell",
              "doc": "MovementRange runs a Dijkstra search from start on g under a.Topology (and a.Diagonal / a.NoCornerCutting) and returns every reachable cell whose minimum traversal cost is at most budget, ordered by ascending cost then row-major cell index.\n\nIt reuses a's internal search buffers and allocates only the returned slice.\n",
              "file": "pkg/ai/topology.go",
              "line": 378
            },
            {
              "name": "MovementRangeInto",
              "anchor": "AStar.MovementRangeInto",
              "recv": "*AStar",
              "decl": "func (a *AStar) MovementRangeInto(dst []ReachableCell, g Grid, start Cell, budget float64) []ReachableCell",
              "doc": "MovementRangeInto behaves like MovementRange but writes results into dst[:0], avoiding heap allocations when dst has enough capacity.\n",
              "file": "pkg/ai/topology.go",
              "line": 383
            },
            {
              "name": "MovementRangeWithCost",
              "anchor": "AStar.MovementRangeWithCost",
              "recv": "*AStar",
              "decl": "func (a *AStar) MovementRangeWithCost(dst []ReachableCell, g Grid, start Cell, budget float64, edgeCost func(from, to Cell) float64) []ReachableCell",
              "doc": "MovementRangeWithCost behaves like MovementRangeInto, and when edgeCost is non-nil uses edgeCost(from, to) as the step cost multiplier instead of CostGrid or EdgeCostGrid.\n\nReturning a negative, NaN or infinite value from edgeCost forbids moving along that edge. Non-negative finite values (including costs between 0 and 1, such as roads) are multiplied by the step's geometric length (1 for cardinal/hex/staggered edges, sqrt(2) for diagonals).\n",
              "file": "pkg/ai/topology.go",
              "line": 390
            },
            {
              "name": "StartSearch",
              "anchor": "AStar.StartSearch",
              "recv": "*AStar",
              "decl": "func (a *AStar) StartSearch(g Grid, start, goal Cell, opts PathOptions) *AStarSearch",
              "doc": "StartSearch begins an incremental grid A* search using a's configuration (Diagonal, NoCornerCutting, Topology, MaxExpansions).\nThe returned AStarSearch owns independent search buffers so multiple searches may run across frames concurrently.\n",
              "file": "pkg/ai/astar.go",
              "line": 268
            }
          ]
        },
        {
          "name": "AStarSearch",
          "anchor": "AStarSearch",
          "decl": "type AStarSearch struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "AStarSearch runs a deterministic grid A* search incrementally across bounded Step calls.\n\nStepping a search with any positive per-step expansion budget produces the exact same path,\ncost, partial flag, and expansion count as a single-shot AStar.FindWithOptions call.\n*AStarSearch implements IncrementalSearch.\n",
          "file": "pkg/ai/astar.go",
          "line": 277,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewAStarSearch",
              "anchor": "NewAStarSearch",
              "decl": "func NewAStarSearch(a *AStar, g Grid, start, goal Cell, opts PathOptions) *AStarSearch",
              "doc": "NewAStarSearch initializes an incremental grid A* search copying configuration from a\n(when a is nil, defaults to 4-way TopologySquare with NoCornerCutting enabled).\n",
              "file": "pkg/ai/astar.go",
              "line": 284
            }
          ],
          "methods": [
            {
              "name": "Expansions",
              "anchor": "AStarSearch.Expansions",
              "recv": "*AStarSearch",
              "decl": "func (s *AStarSearch) Expansions() int",
              "doc": "Expansions returns the cumulative number of grid cells expanded so far.\n",
              "file": "pkg/ai/astar.go",
              "line": 327
            },
            {
              "name": "Reset",
              "anchor": "AStarSearch.Reset",
              "recv": "*AStarSearch",
              "decl": "func (s *AStarSearch) Reset(a *AStar, g Grid, start, goal Cell, opts PathOptions)",
              "doc": "Reset reinitializes s for a new query, reusing its internal search buffers.\n",
              "file": "pkg/ai/astar.go",
              "line": 291
            },
            {
              "name": "Result",
              "anchor": "AStarSearch.Result",
              "recv": "*AStarSearch",
              "decl": "func (s *AStarSearch) Result() GridPathResult",
              "doc": "Result returns the search outcome once finished (or a result with Found == false while still in progress).\n",
              "file": "pkg/ai/astar.go",
              "line": 335
            },
            {
              "name": "ResultInto",
              "anchor": "AStarSearch.ResultInto",
              "recv": "*AStarSearch",
              "decl": "func (s *AStarSearch) ResultInto(dst []Cell) GridPathResult",
              "doc": "ResultInto behaves like Result but writes the path into dst[:0] when finished.\n",
              "file": "pkg/ai/astar.go",
              "line": 340
            },
            {
              "name": "Status",
              "anchor": "AStarSearch.Status",
              "recv": "*AStarSearch",
              "decl": "func (s *AStarSearch) Status() SearchStatus",
              "doc": "Status returns the search's current status.\n",
              "file": "pkg/ai/astar.go",
              "line": 319
            },
            {
              "name": "Step",
              "anchor": "AStarSearch.Step",
              "recv": "*AStarSearch",
              "decl": "func (s *AStarSearch) Step(maxExpansions int) (status SearchStatus, expansions int)",
              "doc": "Step advances the search by at most maxExpansions grid cell expansions and returns\nthe updated status and exact number of expansions performed.\nWhen maxExpansions <= 0 or the search is already finished, Step performs 0 expansions.\n",
              "file": "pkg/ai/astar.go",
              "line": 308
            }
          ]
        },
        {
          "name": "AbortMode",
          "anchor": "AbortMode",
          "decl": "type AbortMode string",
          "doc": "AbortMode controls how a [BlackboardCondition] decorator interrupts running\nbranches when its watched blackboard key changes.\n",
          "file": "pkg/ai/bt_blackboard.go",
          "line": 47,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AbortNone",
                  "anchor": "AbortNone"
                },
                {
                  "name": "AbortSelf",
                  "anchor": "AbortSelf"
                },
                {
                  "name": "AbortLower",
                  "anchor": "AbortLower"
                },
                {
                  "name": "AbortBoth",
                  "anchor": "AbortBoth"
                }
              ],
              "decl": "const (\n\t// AbortNone checks the condition only on entry into the child.\n\tAbortNone AbortMode = \"none\"\n\t// AbortSelf aborts the decorator's own running child (or enclosing Sequence's\n\t// subsequent running child when used without a child) when the watched key\n\t// changes and the condition becomes false.\n\tAbortSelf AbortMode = \"self\"\n\t// AbortLower aborts a running lower-priority sibling in an enclosing Selector\n\t// on the next tick when the watched key changes and the condition becomes true.\n\tAbortLower AbortMode = \"lower\"\n\t// AbortBoth combines AbortSelf and AbortLower.\n\tAbortBoth AbortMode = \"both\"\n)",
              "doc": "",
              "file": "pkg/ai/bt_blackboard.go",
              "line": 49
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "AbortMode.Valid",
              "recv": "AbortMode",
              "decl": "func (m AbortMode) Valid() bool",
              "doc": "Valid reports whether m is a recognized [AbortMode] (including empty, which means AbortNone).\n",
              "file": "pkg/ai/bt_blackboard.go",
              "line": 64
            }
          ]
        },
        {
          "name": "Agent",
          "anchor": "Agent",
          "decl": "type Agent struct {\n\tPos      core.Point\n\tVel      core.Point\n\tMaxSpeed float32\n\tMaxForce float32\n\tRadius   float32\n}",
          "doc": "Agent is a 2D steering agent with position, velocity and movement limits.\n",
          "file": "pkg/ai/steering.go",
          "line": 11,
          "members": [
            {
              "name": "Pos",
              "anchor": "Agent.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vel",
              "anchor": "Agent.Vel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxSpeed",
              "anchor": "Agent.MaxSpeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxForce",
              "anchor": "Agent.MaxForce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Agent.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Step",
              "anchor": "Agent.Step",
              "recv": "*Agent",
              "decl": "func (a *Agent) Step(force core.Point, dt time.Duration)",
              "doc": "Step integrates a by dt under steering acceleration force, clamping force to MaxForce and velocity to MaxSpeed when positive.\n",
              "file": "pkg/ai/steering.go",
              "line": 20
            }
          ]
        },
        {
          "name": "Agent3D",
          "anchor": "Agent3D",
          "decl": "type Agent3D struct {\n\tPos      Vec3\n\tVel      Vec3\n\tMaxSpeed float32\n\tMaxForce float32\n\tRadius   float32\n\tPlanarXZ bool\n}",
          "doc": "Agent3D is a 3D steering agent with position, velocity, and movement limits.\n\nWhen PlanarXZ is true, steering forces and Step integration operate on the\nhorizontal XZ plane (force.Y is zeroed and speed limits apply to XZ), which\nsuits grounded agents following world3d.NavMesh paths.\n",
          "file": "pkg/ai/steering3d.go",
          "line": 21,
          "members": [
            {
              "name": "Pos",
              "anchor": "Agent3D.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vel",
              "anchor": "Agent3D.Vel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxSpeed",
              "anchor": "Agent3D.MaxSpeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxForce",
              "anchor": "Agent3D.MaxForce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Agent3D.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanarXZ",
              "anchor": "Agent3D.PlanarXZ",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Step",
              "anchor": "Agent3D.Step",
              "recv": "*Agent3D",
              "decl": "func (a *Agent3D) Step(force Vec3, dt time.Duration)",
              "doc": "Step integrates a by dt under steering acceleration force, clamping force to\nMaxForce and velocity to MaxSpeed when positive. When a.PlanarXZ is true,\nforce.Y and Vel.Y are zeroed and a.Pos.Y is preserved.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 119
            }
          ]
        },
        {
          "name": "AngleMode",
          "anchor": "AngleMode",
          "decl": "type AngleMode uint8",
          "doc": "AngleMode selects which two vectors AngleTest measures the angle between.\n",
          "file": "pkg/ai/tactical.go",
          "line": 89,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AngleCoverToTarget",
                  "anchor": "AngleCoverToTarget"
                },
                {
                  "name": "AngleFlank",
                  "anchor": "AngleFlank"
                },
                {
                  "name": "AngleToDirection",
                  "anchor": "AngleToDirection"
                },
                {
                  "name": "AngleFromTargetToDir",
                  "anchor": "AngleFromTargetToDir"
                }
              ],
              "decl": "const (\n\t// AngleCoverToTarget measures the angle between candidate.Facing and normalize(Target - candidate.Pos).\n\t// 0 radians means the cover directly faces and shields against the target; pi radians means fully exposed.\n\tAngleCoverToTarget AngleMode = iota\n\t// AngleFlank measures the angle between normalize(candidate.Pos - Target) and the reference direction\n\t// (ReferenceDir or ctx.TargetDir): 0 is directly in front of the target, pi/2 is a side flank, pi is behind.\n\tAngleFlank\n\t// AngleToDirection measures the angle between candidate.Facing and the reference direction.\n\tAngleToDirection\n\t// AngleFromTargetToDir measures the angle between normalize(Target - candidate.Pos) and the reference direction.\n\tAngleFromTargetToDir\n)",
              "doc": "",
              "file": "pkg/ai/tactical.go",
              "line": 91
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AngleTest",
          "anchor": "AngleTest",
          "decl": "type AngleTest struct {\n\t// Mode chooses which vectors are compared (defaults to AngleCoverToTarget).\n\tMode AngleMode\n\t// Target selects the reference point for AngleCoverToTarget, AngleFlank, and AngleFromTargetToDir.\n\t// Zero value defaults to OriginTarget.\n\tTarget QueryOrigin\n\t// CustomTarget is used when Target is OriginCustom.\n\tCustomTarget math2d.Vec2\n\t// ReferenceDir overrides ctx.TargetDir when non-zero for AngleFlank, AngleToDirection, and AngleFromTargetToDir.\n\tReferenceDir math2d.Vec2\n\t// Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore).\n\tPurpose TestPurpose\n\t// Filter optionally restricts angles in radians (for example, AtMost(math.Pi/3)).\n\tFilter FloatRange\n\t// NormMin and NormMax optionally specify fixed normalization bounds in radians.\n\t// When NormMax <= NormMin, values normalize dynamically across surviving candidates.\n\tNormMin, NormMax float64\n\t// Weight scales the normalized [0, 1] score contribution.\n\tWeight float64\n\t// Invert flips the normalized score (1 - norm) so smaller angles score higher.\n\tInvert bool\n}",
          "doc": "AngleTest measures the angle in radians [0, pi] between two directions.\n\nBy default (AngleCoverToTarget), it measures the angle between candidate.Facing and the\ndirection from candidate.Pos toward TargetPos: 0 radians means the cover directly blocks\nthreats from TargetPos.\n",
          "file": "pkg/ai/tactical.go",
          "line": 719,
          "members": [
            {
              "name": "Mode",
              "anchor": "AngleTest.Mode",
              "kind": "field",
              "doc": "Mode chooses which vectors are compared (defaults to AngleCoverToTarget)."
            },
            {
              "name": "Target",
              "anchor": "AngleTest.Target",
              "kind": "field",
              "doc": "Target selects the reference point for AngleCoverToTarget, AngleFlank, and AngleFromTargetToDir.\nZero value defaults to OriginTarget."
            },
            {
              "name": "CustomTarget",
              "anchor": "AngleTest.CustomTarget",
              "kind": "field",
              "doc": "CustomTarget is used when Target is OriginCustom."
            },
            {
              "name": "ReferenceDir",
              "anchor": "AngleTest.ReferenceDir",
              "kind": "field",
              "doc": "ReferenceDir overrides ctx.TargetDir when non-zero for AngleFlank, AngleToDirection, and AngleFromTargetToDir."
            },
            {
              "name": "Purpose",
              "anchor": "AngleTest.Purpose",
              "kind": "field",
              "doc": "Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore)."
            },
            {
              "name": "Filter",
              "anchor": "AngleTest.Filter",
              "kind": "field",
              "doc": "Filter optionally restricts angles in radians (for example, AtMost(math.Pi/3))."
            },
            {
              "name": "NormMin",
              "anchor": "AngleTest.NormMin",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds in radians.\nWhen NormMax <= NormMin, values normalize dynamically across surviving candidates."
            },
            {
              "name": "NormMax",
              "anchor": "AngleTest.NormMax",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds in radians.\nWhen NormMax <= NormMin, values normalize dynamically across surviving candidates."
            },
            {
              "name": "Weight",
              "anchor": "AngleTest.Weight",
              "kind": "field",
              "doc": "Weight scales the normalized [0, 1] score contribution."
            },
            {
              "name": "Invert",
              "anchor": "AngleTest.Invert",
              "kind": "field",
              "doc": "Invert flips the normalized score (1 - norm) so smaller angles score higher."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Attitude",
          "anchor": "Attitude",
          "decl": "type Attitude uint8",
          "doc": "Attitude is how an observer regards another team.\n",
          "file": "pkg/ai/perception.go",
          "line": 19,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Hostile",
                  "anchor": "Hostile"
                },
                {
                  "name": "Neutral",
                  "anchor": "Neutral"
                },
                {
                  "name": "Friendly",
                  "anchor": "Friendly"
                }
              ],
              "decl": "const (\n\t// Hostile marks an enemy.\n\tHostile Attitude = iota\n\t// Neutral marks something on no side.\n\tNeutral\n\t// Friendly marks an ally.\n\tFriendly\n)",
              "doc": "",
              "file": "pkg/ai/perception.go",
              "line": 21
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultAttitude",
              "anchor": "DefaultAttitude",
              "decl": "func DefaultAttitude(observer, other Team) Attitude",
              "doc": "DefaultAttitude treats the same team as friendly, NoTeam on either side as neutral, and every other pair of teams as hostile.\n",
              "file": "pkg/ai/perception.go",
              "line": 66
            }
          ],
          "methods": [
            {
              "name": "String",
              "anchor": "Attitude.String",
              "recv": "Attitude",
              "decl": "func (a Attitude) String() string",
              "doc": "String returns the attitude's lower-case name.\n",
              "file": "pkg/ai/perception.go",
              "line": 31
            }
          ]
        },
        {
          "name": "AttitudeFunc",
          "anchor": "AttitudeFunc",
          "decl": "type AttitudeFunc func(observer, other Team) Attitude",
          "doc": "AttitudeFunc decides how an observer on team observer regards a stimulus on team other.\n",
          "file": "pkg/ai/perception.go",
          "line": 63,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AttitudeMask",
          "anchor": "AttitudeMask",
          "decl": "type AttitudeMask uint8",
          "doc": "AttitudeMask selects the attitudes a sense detects. A zero AttitudeMask detects hostile stimuli only.\n",
          "file": "pkg/ai/perception.go",
          "line": 44,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DetectHostile",
                  "anchor": "DetectHostile"
                },
                {
                  "name": "DetectNeutral",
                  "anchor": "DetectNeutral"
                },
                {
                  "name": "DetectFriendly",
                  "anchor": "DetectFriendly"
                },
                {
                  "name": "DetectAll",
                  "anchor": "DetectAll"
                }
              ],
              "decl": "const (\n\t// DetectHostile detects hostile stimuli.\n\tDetectHostile AttitudeMask = 1 << Hostile\n\t// DetectNeutral detects neutral stimuli.\n\tDetectNeutral AttitudeMask = 1 << Neutral\n\t// DetectFriendly detects friendly stimuli.\n\tDetectFriendly AttitudeMask = 1 << Friendly\n\t// DetectAll detects every attitude.\n\tDetectAll = DetectHostile | DetectNeutral | DetectFriendly\n)",
              "doc": "",
              "file": "pkg/ai/perception.go",
              "line": 46
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Has",
              "anchor": "AttitudeMask.Has",
              "recv": "AttitudeMask",
              "decl": "func (m AttitudeMask) Has(a Attitude) bool",
              "doc": "Has reports whether m detects attitude a, treating a zero mask as DetectHostile.\n",
              "file": "pkg/ai/perception.go",
              "line": 58
            }
          ]
        },
        {
          "name": "BTBindings",
          "anchor": "BTBindings",
          "decl": "type BTBindings struct {\n\t// Blackboard is bound to blackboard_condition nodes and passed to leaf factories.\n\t// When nil, BuildBehaviorTree creates a fresh local Blackboard.\n\tBlackboard *Blackboard\n\t// Stream is passed to random_selector, random_sequence, and weighted_selector nodes.\n\tStream *random.Stream\n\t// Actions maps action names to factories returning a leaf Node.\n\tActions map[string]func(BTNodeContext) (Node, error)\n\t// Conditions maps condition names to factories returning a predicate func() bool\n\t// (used by condition leaves and guard decorators).\n\tConditions map[string]func(BTNodeContext) (func() bool, error)\n\t// Services maps service names to factories returning a func(dt time.Duration) callback\n\t// (used by service decorators).\n\tServices map[string]func(BTNodeContext) (func(time.Duration), error)\n\t// FS is an optional filesystem used to load referenced subtree files relative to the parent tree.\n\tFS fs.FS\n\t// LoadSubtree optionally overrides subtree file loading when custom storage is used.\n\tLoadSubtree func(path string) ([]byte, error)\n}",
          "doc": "BTBindings provides the blackboard, deterministic random stream, leaf factories,\nand optional subtree loader used by [BuildBehaviorTree].\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 1422,
          "members": [
            {
              "name": "Blackboard",
              "anchor": "BTBindings.Blackboard",
              "kind": "field",
              "doc": "Blackboard is bound to blackboard_condition nodes and passed to leaf factories.\nWhen nil, BuildBehaviorTree creates a fresh local Blackboard."
            },
            {
              "name": "Stream",
              "anchor": "BTBindings.Stream",
              "kind": "field",
              "doc": "Stream is passed to random_selector, random_sequence, and weighted_selector nodes."
            },
            {
              "name": "Actions",
              "anchor": "BTBindings.Actions",
              "kind": "field",
              "doc": "Actions maps action names to factories returning a leaf Node."
            },
            {
              "name": "Conditions",
              "anchor": "BTBindings.Conditions",
              "kind": "field",
              "doc": "Conditions maps condition names to factories returning a predicate func() bool\n(used by condition leaves and guard decorators)."
            },
            {
              "name": "Services",
              "anchor": "BTBindings.Services",
              "kind": "field",
              "doc": "Services maps service names to factories returning a func(dt time.Duration) callback\n(used by service decorators)."
            },
            {
              "name": "FS",
              "anchor": "BTBindings.FS",
              "kind": "field",
              "doc": "FS is an optional filesystem used to load referenced subtree files relative to the parent tree."
            },
            {
              "name": "LoadSubtree",
              "anchor": "BTBindings.LoadSubtree",
              "kind": "field",
              "doc": "LoadSubtree optionally overrides subtree file loading when custom storage is used."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BTBlackboardKeyDoc",
          "anchor": "BTBlackboardKeyDoc",
          "decl": "type BTBlackboardKeyDoc struct {\n\t// Key is the blackboard key name.\n\tKey string `yaml:\"key\" schema:\"required,minLength=1\"`\n\t// Type is the value kind: bool, int, float, string, vec2, vec3, or entity.\n\tType BlackboardKindName `yaml:\"type\" schema:\"required,enum=bool|int|float|string|vec2|vec3|entity\"`\n\t// Shared targets the parent (squad or team) blackboard instead of the agent's local blackboard when seeding Default.\n\tShared bool `yaml:\"shared,omitempty\"`\n\t// Default is an optional initial value matching Type (scalar, [x, y] for vec2, or [x, y, z] for vec3).\n\tDefault *any `yaml:\"default,omitempty\"`\n}",
          "doc": "BTBlackboardKeyDoc declares one typed blackboard key and its optional initial default value.\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 110,
          "members": [
            {
              "name": "Key",
              "anchor": "BTBlackboardKeyDoc.Key",
              "kind": "field",
              "doc": "Key is the blackboard key name."
            },
            {
              "name": "Type",
              "anchor": "BTBlackboardKeyDoc.Type",
              "kind": "field",
              "doc": "Type is the value kind: bool, int, float, string, vec2, vec3, or entity."
            },
            {
              "name": "Shared",
              "anchor": "BTBlackboardKeyDoc.Shared",
              "kind": "field",
              "doc": "Shared targets the parent (squad or team) blackboard instead of the agent's local blackboard when seeding Default."
            },
            {
              "name": "Default",
              "anchor": "BTBlackboardKeyDoc.Default",
              "kind": "field",
              "doc": "Default is an optional initial value matching Type (scalar, [x, y] for vec2, or [x, y, z] for vec3)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BTInspector",
          "anchor": "BTInspector",
          "decl": "type BTInspector struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "BTInspector provides zero-allocation, read-only inspection of a behavior tree once warmed up.\n\nConstruct one inspector per tree with NewBTInspector(root), then call WalkInto(buf) after\nticking the tree to populate a reusable slice of BTNodeTrace entries in pre-order.\n",
          "file": "pkg/ai/bt_inspect.go",
          "line": 130,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBTInspector",
              "anchor": "NewBTInspector",
              "decl": "func NewBTInspector(root Node) *BTInspector",
              "doc": "NewBTInspector builds a reusable read-only inspector for root, precomputing its static\npre-order traversal and node paths so subsequent WalkInto calls perform zero heap allocations.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 139
            }
          ],
          "methods": [
            {
              "name": "Format",
              "anchor": "BTInspector.Format",
              "recv": "*BTInspector",
              "decl": "func (ins *BTInspector) Format() string",
              "doc": "Format returns a deterministic, human-readable text snapshot of the tree's current state\nsuitable for statedump Values and diffing AI decisions across runs.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 334
            },
            {
              "name": "Len",
              "anchor": "BTInspector.Len",
              "recv": "*BTInspector",
              "decl": "func (ins *BTInspector) Len() int",
              "doc": "Len returns the total number of nodes in the inspected tree.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 225
            },
            {
              "name": "Reset",
              "anchor": "BTInspector.Reset",
              "recv": "*BTInspector",
              "decl": "func (ins *BTInspector) Reset()",
              "doc": "Reset resets ins's root node and clears any root fallback status.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 244
            },
            {
              "name": "Root",
              "anchor": "BTInspector.Root",
              "recv": "*BTInspector",
              "decl": "func (ins *BTInspector) Root() Node",
              "doc": "Root returns the behavior tree root inspected by ins.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 217
            },
            {
              "name": "RunningPath",
              "anchor": "BTInspector.RunningPath",
              "recv": "*BTInspector",
              "decl": "func (ins *BTInspector) RunningPath() []BTNodeTrace",
              "doc": "RunningPath returns a newly allocated slice of the nodes on the tree's currently running\npath (Active == true) in pre-order. For zero-allocation per-tick inspection, call WalkInto\nfollowed by RunningPathInto.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 324
            },
            {
              "name": "String",
              "anchor": "BTInspector.String",
              "recv": "*BTInspector",
              "decl": "func (ins *BTInspector) String() string",
              "doc": "String implements fmt.Stringer by returning ins.Format().\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 343
            },
            {
              "name": "Tick",
              "anchor": "BTInspector.Tick",
              "recv": "*BTInspector",
              "decl": "func (ins *BTInspector) Tick(dt time.Duration) Status",
              "doc": "Tick ticks ins's root node by dt and returns its status.\n\nCallers may tick root directly instead of calling ins.Tick; calling ins.Tick additionally\nrecords the root status when root is a bare custom Node not wrapped in Named.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 236
            },
            {
              "name": "Walk",
              "anchor": "BTInspector.Walk",
              "recv": "*BTInspector",
              "decl": "func (ins *BTInspector) Walk() []BTNodeTrace",
              "doc": "Walk returns a newly allocated pre-order snapshot of every node in the tree.\nFor zero-allocation per-tick inspection, reuse a buffer with WalkInto.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 314
            },
            {
              "name": "WalkInto",
              "anchor": "BTInspector.WalkInto",
              "recv": "*BTInspector",
              "decl": "func (ins *BTInspector) WalkInto(dst []BTNodeTrace) []BTNodeTrace",
              "doc": "WalkInto writes a pre-order snapshot of every node in the tree into dst[:0] and returns\nthe populated slice. Once cap(dst) >= ins.Len(), WalkInto performs zero heap allocations.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 256
            }
          ]
        },
        {
          "name": "BTNodeContext",
          "anchor": "BTNodeContext",
          "decl": "type BTNodeContext struct {\n\t// Blackboard is the agent's blackboard bound to this behavior tree instance.\n\tBlackboard *Blackboard\n\t// Stream is the optional deterministic random stream passed in BTBindings.\n\tStream *random.Stream\n\t// Params holds the node's resolved parameters after any subtree \"${param}\" substitutions.\n\tParams BTParams\n\t// KeyBindings maps subtree-local blackboard key names to caller blackboard key names.\n\tKeyBindings map[string]string\n}",
          "doc": "BTNodeContext supplies runtime dependencies and resolved parameter and key\nbindings to game-registered action, condition, and service factories.\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 1400,
          "members": [
            {
              "name": "Blackboard",
              "anchor": "BTNodeContext.Blackboard",
              "kind": "field",
              "doc": "Blackboard is the agent's blackboard bound to this behavior tree instance."
            },
            {
              "name": "Stream",
              "anchor": "BTNodeContext.Stream",
              "kind": "field",
              "doc": "Stream is the optional deterministic random stream passed in BTBindings."
            },
            {
              "name": "Params",
              "anchor": "BTNodeContext.Params",
              "kind": "field",
              "doc": "Params holds the node's resolved parameters after any subtree \"${param}\" substitutions."
            },
            {
              "name": "KeyBindings",
              "anchor": "BTNodeContext.KeyBindings",
              "kind": "field",
              "doc": "KeyBindings maps subtree-local blackboard key names to caller blackboard key names."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Key",
              "anchor": "BTNodeContext.Key",
              "recv": "BTNodeContext",
              "decl": "func (c BTNodeContext) Key(name string) string",
              "doc": "Key resolves a blackboard key name through any enclosing subtree key bindings,\nreturning name unchanged when no remapping applies.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1413
            }
          ]
        },
        {
          "name": "BTNodeDoc",
          "anchor": "BTNodeDoc",
          "decl": "type BTNodeDoc struct {\n\t// Type selects the behavior tree node kind.\n\tType BTNodeType `yaml:\"type\" schema:\"required,enum=sequence|selector|parallel|random_selector|random_sequence|weighted_selector|guard|cooldown|time_limit|retry|service|inverter|succeeder|failer|repeater|until_fail|blackboard_condition|wait|action|condition|subtree\"`\n\t// Name is an optional label for authoring and debugging.\n\tName string `yaml:\"name,omitempty\"`\n\t// Weight is the positive relative selection weight when this node is a direct child of weighted_selector.\n\tWeight float64 `yaml:\"weight,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// Policy selects the completion policy for parallel nodes: require_all (default) or require_one.\n\tPolicy BTParallelPolicyName `yaml:\"policy,omitempty\" schema:\"enum=require_all|require_one\"`\n\t// Action names the game-registered action factory for action leaf nodes.\n\tAction string `yaml:\"action,omitempty\"`\n\t// Condition names the game-registered condition factory for condition leaves and guard decorators.\n\tCondition string `yaml:\"condition,omitempty\"`\n\t// Service names the game-registered service factory for service decorators.\n\tService string `yaml:\"service,omitempty\"`\n\t// Duration is a Go duration string (such as \"500ms\" or \"1.5s\") or \"${param}\" reference for wait, cooldown, and time_limit nodes.\n\tDuration string `yaml:\"duration,omitempty\"`\n\t// Interval is a Go duration string or \"${param}\" reference controlling periodic ticks of a service decorator (omitted or \"0s\" runs every tick).\n\tInterval string `yaml:\"interval,omitempty\"`\n\t// Count is the iteration or retry count for repeater (0 repeats indefinitely) and retry (0 disables retries) decorators.\n\tCount int `yaml:\"count,omitempty\" schema:\"minimum=0\"`\n\t// Key is the blackboard key inspected by a blackboard_condition node.\n\tKey string `yaml:\"key,omitempty\"`\n\t// Op is the comparison operator for a blackboard_condition node: eq, ne, lt, lte, gt, gte, set, or unset.\n\tOp BlackboardOp `yaml:\"op,omitempty\" schema:\"enum=eq|ne|lt|lte|gt|gte|set|unset\"`\n\t// Value is the comparison operand for a blackboard_condition node (required for eq, ne, lt, lte, gt, gte; omitted for set and unset).\n\tValue *any `yaml:\"value,omitempty\"`\n\t// ValueType optionally specifies the blackboard type of Value (bool, int, float, string, vec2, vec3, or entity) when disambiguation is needed.\n\tValueType BlackboardKindName `yaml:\"valueType,omitempty\" schema:\"enum=bool|int|float|string|vec2|vec3|entity\"`\n\t// Abort controls observer abort behavior for a blackboard_condition node: none (default), self, lower, or both.\n\tAbort AbortMode `yaml:\"abort,omitempty\" schema:\"enum=none|self|lower|both\"`\n\t// Path is the relative or filesystem path to another *.bt.yaml file for a subtree node.\n\tPath string `yaml:\"path,omitempty\"`\n\t// Params supplies typed parameters to action, condition, guard, service, or subtree nodes.\n\tParams map[string]any `yaml:\"params,omitempty\"`\n\t// Keys maps subtree-local blackboard key names to caller blackboard key names for a subtree node.\n\tKeys map[string]string `yaml:\"keys,omitempty\"`\n\t// Child is the wrapped child node for decorator nodes (optional on blackboard_condition).\n\tChild *BTNodeDoc `yaml:\"child,omitempty\"`\n\t// Children are the ordered child nodes for composite nodes.\n\tChildren []BTNodeDoc `yaml:\"children,omitempty\"`\n}",
          "doc": "BTNodeDoc describes one composite, decorator, leaf, or subtree reference node in a [BehaviorTreeDoc].\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 122,
          "members": [
            {
              "name": "Type",
              "anchor": "BTNodeDoc.Type",
              "kind": "field",
              "doc": "Type selects the behavior tree node kind."
            },
            {
              "name": "Name",
              "anchor": "BTNodeDoc.Name",
              "kind": "field",
              "doc": "Name is an optional label for authoring and debugging."
            },
            {
              "name": "Weight",
              "anchor": "BTNodeDoc.Weight",
              "kind": "field",
              "doc": "Weight is the positive relative selection weight when this node is a direct child of weighted_selector."
            },
            {
              "name": "Policy",
              "anchor": "BTNodeDoc.Policy",
              "kind": "field",
              "doc": "Policy selects the completion policy for parallel nodes: require_all (default) or require_one."
            },
            {
              "name": "Action",
              "anchor": "BTNodeDoc.Action",
              "kind": "field",
              "doc": "Action names the game-registered action factory for action leaf nodes."
            },
            {
              "name": "Condition",
              "anchor": "BTNodeDoc.Condition",
              "kind": "field",
              "doc": "Condition names the game-registered condition factory for condition leaves and guard decorators."
            },
            {
              "name": "Service",
              "anchor": "BTNodeDoc.Service",
              "kind": "field",
              "doc": "Service names the game-registered service factory for service decorators."
            },
            {
              "name": "Duration",
              "anchor": "BTNodeDoc.Duration",
              "kind": "field",
              "doc": "Duration is a Go duration string (such as \"500ms\" or \"1.5s\") or \"${param}\" reference for wait, cooldown, and time_limit nodes."
            },
            {
              "name": "Interval",
              "anchor": "BTNodeDoc.Interval",
              "kind": "field",
              "doc": "Interval is a Go duration string or \"${param}\" reference controlling periodic ticks of a service decorator (omitted or \"0s\" runs every tick)."
            },
            {
              "name": "Count",
              "anchor": "BTNodeDoc.Count",
              "kind": "field",
              "doc": "Count is the iteration or retry count for repeater (0 repeats indefinitely) and retry (0 disables retries) decorators."
            },
            {
              "name": "Key",
              "anchor": "BTNodeDoc.Key",
              "kind": "field",
              "doc": "Key is the blackboard key inspected by a blackboard_condition node."
            },
            {
              "name": "Op",
              "anchor": "BTNodeDoc.Op",
              "kind": "field",
              "doc": "Op is the comparison operator for a blackboard_condition node: eq, ne, lt, lte, gt, gte, set, or unset."
            },
            {
              "name": "Value",
              "anchor": "BTNodeDoc.Value",
              "kind": "field",
              "doc": "Value is the comparison operand for a blackboard_condition node (required for eq, ne, lt, lte, gt, gte; omitted for set and unset)."
            },
            {
              "name": "ValueType",
              "anchor": "BTNodeDoc.ValueType",
              "kind": "field",
              "doc": "ValueType optionally specifies the blackboard type of Value (bool, int, float, string, vec2, vec3, or entity) when disambiguation is needed."
            },
            {
              "name": "Abort",
              "anchor": "BTNodeDoc.Abort",
              "kind": "field",
              "doc": "Abort controls observer abort behavior for a blackboard_condition node: none (default), self, lower, or both."
            },
            {
              "name": "Path",
              "anchor": "BTNodeDoc.Path",
              "kind": "field",
              "doc": "Path is the relative or filesystem path to another *.bt.yaml file for a subtree node."
            },
            {
              "name": "Params",
              "anchor": "BTNodeDoc.Params",
              "kind": "field",
              "doc": "Params supplies typed parameters to action, condition, guard, service, or subtree nodes."
            },
            {
              "name": "Keys",
              "anchor": "BTNodeDoc.Keys",
              "kind": "field",
              "doc": "Keys maps subtree-local blackboard key names to caller blackboard key names for a subtree node."
            },
            {
              "name": "Child",
              "anchor": "BTNodeDoc.Child",
              "kind": "field",
              "doc": "Child is the wrapped child node for decorator nodes (optional on blackboard_condition)."
            },
            {
              "name": "Children",
              "anchor": "BTNodeDoc.Children",
              "kind": "field",
              "doc": "Children are the ordered child nodes for composite nodes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BTNodeSnapshot",
          "anchor": "BTNodeSnapshot",
          "decl": "type BTNodeSnapshot struct {\n\t// Path is the deterministic structural path from the root (\"0\", \"0/0\", \"0/1/2\", ...).\n\tPath string `json:\"path\" yaml:\"path\"`\n\t// Kind identifies the node type (such as \"sequence\", \"wait\", or \"custom:patrol\").\n\tKind string `json:\"kind\" yaml:\"kind\"`\n\n\t// Policy records the completion policy for parallel nodes (\"require_all\" or \"require_one\").\n\tPolicy BTParallelPolicyName `json:\"policy,omitempty\" yaml:\"policy,omitempty\"`\n\n\t// Active reports whether a parallel, random_selector, random_sequence, weighted_selector,\n\t// or service node is currently mid-run.\n\tActive bool `json:\"active,omitempty\" yaml:\"active,omitempty\"`\n\t// Running reports whether a cooldown, guard, blackboard_condition, or attack_token\n\t// decorator currently has a running child.\n\tRunning bool `json:\"running,omitempty\" yaml:\"running,omitempty\"`\n\n\t// Index is the current child index for sequence, random_selector, and random_sequence nodes.\n\tIndex int `json:\"index,omitempty\" yaml:\"index,omitempty\"`\n\t// RunningChild is the currently running child index for selector, weighted_selector,\n\t// and utility_selector nodes (nil when no child is running).\n\tRunningChild *int `json:\"runningChild,omitempty\" yaml:\"runningChild,omitempty\"`\n\t// ActiveChild is the currently selected child index for utility_selector nodes\n\t// (nil when no action is active).\n\tActiveChild *int `json:\"activeChild,omitempty\" yaml:\"activeChild,omitempty\"`\n\n\t// ChildStatuses holds per-child statuses for an active parallel node.\n\tChildStatuses []Status `json:\"childStatuses,omitempty\" yaml:\"childStatuses,omitempty\"`\n\t// Order holds the active shuffled child permutation for random_selector and random_sequence nodes.\n\tOrder []int `json:\"order,omitempty\" yaml:\"order,omitempty\"`\n\t// RemainingOptions marks which options remain untried in an active weighted_selector node.\n\tRemainingOptions []bool `json:\"remainingOptions,omitempty\" yaml:\"remainingOptions,omitempty\"`\n\n\t// Done is the number of completed iterations in a repeater node.\n\tDone int `json:\"done,omitempty\" yaml:\"done,omitempty\"`\n\t// Failures is the number of failed attempts recorded in a retry node.\n\tFailures int `json:\"failures,omitempty\" yaml:\"failures,omitempty\"`\n\n\t// Elapsed is the accumulated time in a wait or time_limit node.\n\tElapsed time.Duration `json:\"elapsed,omitempty\" yaml:\"elapsed,omitempty\"`\n\t// Remaining is the cooldown time left in a cooldown node.\n\tRemaining time.Duration `json:\"remaining,omitempty\" yaml:\"remaining,omitempty\"`\n\t// Phase is the periodic phase accumulator in an active service node.\n\tPhase time.Duration `json:\"phase,omitempty\" yaml:\"phase,omitempty\"`\n\t// SinceLast is the elapsed time since the last callback in an active service node.\n\tSinceLast time.Duration `json:\"sinceLast,omitempty\" yaml:\"sinceLast,omitempty\"`\n\n\t// SeenRev reports whether a blackboard_condition node has observed a key revision.\n\tSeenRev bool `json:\"seenRev,omitempty\" yaml:\"seenRev,omitempty\"`\n\t// LastRev is the last blackboard key revision observed by a blackboard_condition node.\n\tLastRev uint64 `json:\"lastRev,omitempty\" yaml:\"lastRev,omitempty\"`\n\t// LastResult is the cached condition result from the last revision check of a blackboard_condition node.\n\tLastResult bool `json:\"lastResult,omitempty\" yaml:\"lastResult,omitempty\"`\n\n\t// State holds custom serializable state returned by a [SnapshotNode].\n\tState any `json:\"state,omitempty\" yaml:\"state,omitempty\"`\n}",
          "doc": "BTNodeSnapshot records one node's structural path, kind, and mutable runtime\nstate inside a [BehaviorTreeSnapshot].\n",
          "file": "pkg/ai/bt_snapshot.go",
          "line": 124,
          "members": [
            {
              "name": "Path",
              "anchor": "BTNodeSnapshot.Path",
              "kind": "field",
              "doc": "Path is the deterministic structural path from the root (\"0\", \"0/0\", \"0/1/2\", ...)."
            },
            {
              "name": "Kind",
              "anchor": "BTNodeSnapshot.Kind",
              "kind": "field",
              "doc": "Kind identifies the node type (such as \"sequence\", \"wait\", or \"custom:patrol\")."
            },
            {
              "name": "Policy",
              "anchor": "BTNodeSnapshot.Policy",
              "kind": "field",
              "doc": "Policy records the completion policy for parallel nodes (\"require_all\" or \"require_one\")."
            },
            {
              "name": "Active",
              "anchor": "BTNodeSnapshot.Active",
              "kind": "field",
              "doc": "Active reports whether a parallel, random_selector, random_sequence, weighted_selector,\nor service node is currently mid-run."
            },
            {
              "name": "Running",
              "anchor": "BTNodeSnapshot.Running",
              "kind": "field",
              "doc": "Running reports whether a cooldown, guard, blackboard_condition, or attack_token\ndecorator currently has a running child."
            },
            {
              "name": "Index",
              "anchor": "BTNodeSnapshot.Index",
              "kind": "field",
              "doc": "Index is the current child index for sequence, random_selector, and random_sequence nodes."
            },
            {
              "name": "RunningChild",
              "anchor": "BTNodeSnapshot.RunningChild",
              "kind": "field",
              "doc": "RunningChild is the currently running child index for selector, weighted_selector,\nand utility_selector nodes (nil when no child is running)."
            },
            {
              "name": "ActiveChild",
              "anchor": "BTNodeSnapshot.ActiveChild",
              "kind": "field",
              "doc": "ActiveChild is the currently selected child index for utility_selector nodes\n(nil when no action is active)."
            },
            {
              "name": "ChildStatuses",
              "anchor": "BTNodeSnapshot.ChildStatuses",
              "kind": "field",
              "doc": "ChildStatuses holds per-child statuses for an active parallel node."
            },
            {
              "name": "Order",
              "anchor": "BTNodeSnapshot.Order",
              "kind": "field",
              "doc": "Order holds the active shuffled child permutation for random_selector and random_sequence nodes."
            },
            {
              "name": "RemainingOptions",
              "anchor": "BTNodeSnapshot.RemainingOptions",
              "kind": "field",
              "doc": "RemainingOptions marks which options remain untried in an active weighted_selector node."
            },
            {
              "name": "Done",
              "anchor": "BTNodeSnapshot.Done",
              "kind": "field",
              "doc": "Done is the number of completed iterations in a repeater node."
            },
            {
              "name": "Failures",
              "anchor": "BTNodeSnapshot.Failures",
              "kind": "field",
              "doc": "Failures is the number of failed attempts recorded in a retry node."
            },
            {
              "name": "Elapsed",
              "anchor": "BTNodeSnapshot.Elapsed",
              "kind": "field",
              "doc": "Elapsed is the accumulated time in a wait or time_limit node."
            },
            {
              "name": "Remaining",
              "anchor": "BTNodeSnapshot.Remaining",
              "kind": "field",
              "doc": "Remaining is the cooldown time left in a cooldown node."
            },
            {
              "name": "Phase",
              "anchor": "BTNodeSnapshot.Phase",
              "kind": "field",
              "doc": "Phase is the periodic phase accumulator in an active service node."
            },
            {
              "name": "SinceLast",
              "anchor": "BTNodeSnapshot.SinceLast",
              "kind": "field",
              "doc": "SinceLast is the elapsed time since the last callback in an active service node."
            },
            {
              "name": "SeenRev",
              "anchor": "BTNodeSnapshot.SeenRev",
              "kind": "field",
              "doc": "SeenRev reports whether a blackboard_condition node has observed a key revision."
            },
            {
              "name": "LastRev",
              "anchor": "BTNodeSnapshot.LastRev",
              "kind": "field",
              "doc": "LastRev is the last blackboard key revision observed by a blackboard_condition node."
            },
            {
              "name": "LastResult",
              "anchor": "BTNodeSnapshot.LastResult",
              "kind": "field",
              "doc": "LastResult is the cached condition result from the last revision check of a blackboard_condition node."
            },
            {
              "name": "State",
              "anchor": "BTNodeSnapshot.State",
              "kind": "field",
              "doc": "State holds custom serializable state returned by a [SnapshotNode]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BTNodeTrace",
          "anchor": "BTNodeTrace",
          "decl": "type BTNodeTrace struct {\n\t// Path is the deterministic structural path from the root (\"root\", \"root/0\", \"root/0/1\", ...).\n\tPath string\n\t// Depth is the node's nesting depth in the tree (0 for the root).\n\tDepth int\n\t// Name is the optional label assigned via Named or YAML's name field.\n\tName string\n\t// Kind is the node's kind (\"selector\", \"sequence\", \"action\", \"wait\", ..., or \"custom\").\n\tKind string\n\t// LastStatus is the Status returned by this node's most recent Tick since build or Reset.\n\t// Only meaningful when Ticked is true.\n\tLastStatus Status\n\t// Ticked reports whether this node has been ticked since construction or its most recent Reset.\n\tTicked bool\n\t// Active reports whether this node lies on the tree's currently running path.\n\tActive bool\n}",
          "doc": "BTNodeTrace is a read-only snapshot of one node in a behavior tree.\n",
          "file": "pkg/ai/bt_inspect.go",
          "line": 85,
          "members": [
            {
              "name": "Path",
              "anchor": "BTNodeTrace.Path",
              "kind": "field",
              "doc": "Path is the deterministic structural path from the root (\"root\", \"root/0\", \"root/0/1\", ...)."
            },
            {
              "name": "Depth",
              "anchor": "BTNodeTrace.Depth",
              "kind": "field",
              "doc": "Depth is the node's nesting depth in the tree (0 for the root)."
            },
            {
              "name": "Name",
              "anchor": "BTNodeTrace.Name",
              "kind": "field",
              "doc": "Name is the optional label assigned via Named or YAML's name field."
            },
            {
              "name": "Kind",
              "anchor": "BTNodeTrace.Kind",
              "kind": "field",
              "doc": "Kind is the node's kind (\"selector\", \"sequence\", \"action\", \"wait\", ..., or \"custom\")."
            },
            {
              "name": "LastStatus",
              "anchor": "BTNodeTrace.LastStatus",
              "kind": "field",
              "doc": "LastStatus is the Status returned by this node's most recent Tick since build or Reset.\nOnly meaningful when Ticked is true."
            },
            {
              "name": "Ticked",
              "anchor": "BTNodeTrace.Ticked",
              "kind": "field",
              "doc": "Ticked reports whether this node has been ticked since construction or its most recent Reset."
            },
            {
              "name": "Active",
              "anchor": "BTNodeTrace.Active",
              "kind": "field",
              "doc": "Active reports whether this node lies on the tree's currently running path."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "InspectBehaviorTree",
              "anchor": "InspectBehaviorTree",
              "decl": "func InspectBehaviorTree(root Node) []BTNodeTrace",
              "doc": "InspectBehaviorTree performs a one-shot read-only walk of root and returns each node's trace\nin pre-order. For repeated per-tick inspection without allocations, construct a BTInspector\nwith NewBTInspector and call WalkInto.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 350
            },
            {
              "name": "RunningPathInto",
              "anchor": "RunningPathInto",
              "decl": "func RunningPathInto(dst []BTNodeTrace, nodes []BTNodeTrace) []BTNodeTrace",
              "doc": "RunningPathInto appends every node in nodes that lies on the currently running path\n(Active == true) into dst[:0], performing zero allocations when cap(dst) is sufficient.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 356
            }
          ],
          "methods": [
            {
              "name": "StatusString",
              "anchor": "BTNodeTrace.StatusString",
              "recv": "BTNodeTrace",
              "decl": "func (t BTNodeTrace) StatusString() string",
              "doc": "StatusString returns \"Idle\" when t has not been ticked since construction or Reset,\nand t.LastStatus.String() otherwise.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 105
            }
          ]
        },
        {
          "name": "BTNodeType",
          "anchor": "BTNodeType",
          "decl": "type BTNodeType string",
          "doc": "BTNodeType identifies the kind of node in a [BehaviorTreeDoc].\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 35,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BTNodeSequence",
                  "anchor": "BTNodeSequence"
                },
                {
                  "name": "BTNodeSelector",
                  "anchor": "BTNodeSelector"
                },
                {
                  "name": "BTNodeParallel",
                  "anchor": "BTNodeParallel"
                },
                {
                  "name": "BTNodeRandomSelector",
                  "anchor": "BTNodeRandomSelector"
                },
                {
                  "name": "BTNodeRandomSequence",
                  "anchor": "BTNodeRandomSequence"
                },
                {
                  "name": "BTNodeWeightedSelector",
                  "anchor": "BTNodeWeightedSelector"
                },
                {
                  "name": "BTNodeGuard",
                  "anchor": "BTNodeGuard"
                },
                {
                  "name": "BTNodeCooldown",
                  "anchor": "BTNodeCooldown"
                },
                {
                  "name": "BTNodeTimeLimit",
                  "anchor": "BTNodeTimeLimit"
                },
                {
                  "name": "BTNodeRetry",
                  "anchor": "BTNodeRetry"
                },
                {
                  "name": "BTNodeService",
                  "anchor": "BTNodeService"
                },
                {
                  "name": "BTNodeInverter",
                  "anchor": "BTNodeInverter"
                },
                {
                  "name": "BTNodeSucceeder",
                  "anchor": "BTNodeSucceeder"
                },
                {
                  "name": "BTNodeFailer",
                  "anchor": "BTNodeFailer"
                },
                {
                  "name": "BTNodeRepeater",
                  "anchor": "BTNodeRepeater"
                },
                {
                  "name": "BTNodeUntilFail",
                  "anchor": "BTNodeUntilFail"
                },
                {
                  "name": "BTNodeBlackboardCondition",
                  "anchor": "BTNodeBlackboardCondition"
                },
                {
                  "name": "BTNodeWait",
                  "anchor": "BTNodeWait"
                },
                {
                  "name": "BTNodeAction",
                  "anchor": "BTNodeAction"
                },
                {
                  "name": "BTNodeCondition",
                  "anchor": "BTNodeCondition"
                },
                {
                  "name": "BTNodeSubtree",
                  "anchor": "BTNodeSubtree"
                }
              ],
              "decl": "const (\n\t// BTNodeSequence runs children in order until all succeed or one fails.\n\tBTNodeSequence BTNodeType = \"sequence\"\n\t// BTNodeSelector tries children in priority order until one succeeds or runs.\n\tBTNodeSelector BTNodeType = \"selector\"\n\t// BTNodeParallel ticks all running children each step according to Policy.\n\tBTNodeParallel BTNodeType = \"parallel\"\n\t// BTNodeRandomSelector tries children in a deterministic shuffled order from Stream.\n\tBTNodeRandomSelector BTNodeType = \"random_selector\"\n\t// BTNodeRandomSequence runs all children in a deterministic shuffled order from Stream.\n\tBTNodeRandomSequence BTNodeType = \"random_sequence\"\n\t// BTNodeWeightedSelector draws children without replacement by each child's Weight.\n\tBTNodeWeightedSelector BTNodeType = \"weighted_selector\"\n\t// BTNodeGuard ticks its child only while a registered condition holds, resetting child if it turns false.\n\tBTNodeGuard BTNodeType = \"guard\"\n\t// BTNodeCooldown blocks re-entry into its child for Duration after success.\n\tBTNodeCooldown BTNodeType = \"cooldown\"\n\t// BTNodeTimeLimit fails and resets its child if it stays running past Duration.\n\tBTNodeTimeLimit BTNodeType = \"time_limit\"\n\t// BTNodeRetry reruns a failing child up to Count additional times.\n\tBTNodeRetry BTNodeType = \"retry\"\n\t// BTNodeService invokes a registered callback on entry and periodically every Interval while its child runs.\n\tBTNodeService BTNodeType = \"service\"\n\t// BTNodeInverter flips StatusSuccess and StatusFailure from its child.\n\tBTNodeInverter BTNodeType = \"inverter\"\n\t// BTNodeSucceeder turns both StatusSuccess and StatusFailure from its child into StatusSuccess.\n\tBTNodeSucceeder BTNodeType = \"succeeder\"\n\t// BTNodeFailer turns both StatusSuccess and StatusFailure from its child into StatusFailure.\n\tBTNodeFailer BTNodeType = \"failer\"\n\t// BTNodeRepeater repeats its child Count times (or indefinitely when Count is 0).\n\tBTNodeRepeater BTNodeType = \"repeater\"\n\t// BTNodeUntilFail repeats its child until it returns StatusFailure, then succeeds.\n\tBTNodeUntilFail BTNodeType = \"until_fail\"\n\t// BTNodeBlackboardCondition checks a blackboard key with optional observer aborts and optional wrapped child.\n\tBTNodeBlackboardCondition BTNodeType = \"blackboard_condition\"\n\t// BTNodeWait returns StatusRunning until accumulated dt reaches Duration, then succeeds.\n\tBTNodeWait BTNodeType = \"wait\"\n\t// BTNodeAction invokes a game-registered leaf action factory.\n\tBTNodeAction BTNodeType = \"action\"\n\t// BTNodeCondition invokes a game-registered leaf condition factory.\n\tBTNodeCondition BTNodeType = \"condition\"\n\t// BTNodeSubtree includes another *.bt.yaml file by Path with optional Params and Keys bindings.\n\tBTNodeSubtree BTNodeType = \"subtree\"\n)",
              "doc": "",
              "file": "pkg/ai/bt_yaml.go",
              "line": 37
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BTParallelPolicyName",
          "anchor": "BTParallelPolicyName",
          "decl": "type BTParallelPolicyName string",
          "doc": "BTParallelPolicyName names the completion policy of a parallel node in YAML.\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 83,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BTParallelRequireAll",
                  "anchor": "BTParallelRequireAll"
                },
                {
                  "name": "BTParallelRequireOne",
                  "anchor": "BTParallelRequireOne"
                }
              ],
              "decl": "const (\n\t// BTParallelRequireAll succeeds when all children succeed and fails as soon as any child fails.\n\tBTParallelRequireAll BTParallelPolicyName = \"require_all\"\n\t// BTParallelRequireOne succeeds as soon as any child succeeds and fails when every child fails.\n\tBTParallelRequireOne BTParallelPolicyName = \"require_one\"\n)",
              "doc": "",
              "file": "pkg/ai/bt_yaml.go",
              "line": 85
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BTParams",
          "anchor": "BTParams",
          "decl": "type BTParams map[string]any",
          "doc": "BTParams holds resolved typed parameters passed to a leaf or service factory.\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 1299,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bool",
              "anchor": "BTParams.Bool",
              "recv": "BTParams",
              "decl": "func (p BTParams) Bool(name string) (bool, bool)",
              "doc": "Bool returns the bool parameter name, or (false, false) if absent or not a bool.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1302
            },
            {
              "name": "Duration",
              "anchor": "BTParams.Duration",
              "recv": "BTParams",
              "decl": "func (p BTParams) Duration(name string) (time.Duration, bool)",
              "doc": "Duration parses a Go duration string parameter name, returning (0, false) if absent or invalid.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1340
            },
            {
              "name": "Entity",
              "anchor": "BTParams.Entity",
              "recv": "BTParams",
              "decl": "func (p BTParams) Entity(name string) (uint64, bool)",
              "doc": "Entity returns a non-negative integer parameter as a uint64 entity ID.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1390
            },
            {
              "name": "Float",
              "anchor": "BTParams.Float",
              "recv": "BTParams",
              "decl": "func (p BTParams) Float(name string) (float64, bool)",
              "doc": "Float returns the numeric parameter name as float64, accepting int or float values.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1321
            },
            {
              "name": "Int",
              "anchor": "BTParams.Int",
              "recv": "BTParams",
              "decl": "func (p BTParams) Int(name string) (int, bool)",
              "doc": "Int returns the integer parameter name, or (0, false) if absent or not an integer.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1312
            },
            {
              "name": "Point",
              "anchor": "BTParams.Point",
              "recv": "BTParams",
              "decl": "func (p BTParams) Point(name string) (core.Point, bool)",
              "doc": "Point returns a 2-element numeric array parameter as a [core.Point].\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1367
            },
            {
              "name": "String",
              "anchor": "BTParams.String",
              "recv": "BTParams",
              "decl": "func (p BTParams) String(name string) (string, bool)",
              "doc": "String returns the string parameter name, or (\"\", false) if absent or not a string.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1330
            },
            {
              "name": "Vec2",
              "anchor": "BTParams.Vec2",
              "recv": "BTParams",
              "decl": "func (p BTParams) Vec2(name string) (math2d.Vec2, bool)",
              "doc": "Vec2 returns a 2-element numeric array parameter as a [math2d.Vec2].\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1353
            },
            {
              "name": "Vec3",
              "anchor": "BTParams.Vec3",
              "recv": "BTParams",
              "decl": "func (p BTParams) Vec3(name string) (Vec3, bool)",
              "doc": "Vec3 returns a 3-element numeric array parameter as an [ai.Vec3].\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1376
            }
          ]
        },
        {
          "name": "BehaviorTree",
          "anchor": "BehaviorTree",
          "decl": "type BehaviorTree struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "BehaviorTree wraps a root [Node] and provides [BehaviorTree.Snapshot] and\n[BehaviorTree.Restore] methods alongside [Node.Tick] and [Node.Reset].\n",
          "file": "pkg/ai/bt_snapshot.go",
          "line": 49,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBehaviorTree",
              "anchor": "NewBehaviorTree",
              "decl": "func NewBehaviorTree(root Node) *BehaviorTree",
              "doc": "NewBehaviorTree wraps root in a [BehaviorTree].\n",
              "file": "pkg/ai/bt_snapshot.go",
              "line": 54
            }
          ],
          "methods": [
            {
              "name": "Reset",
              "anchor": "BehaviorTree.Reset",
              "recv": "*BehaviorTree",
              "decl": "func (bt *BehaviorTree) Reset()",
              "doc": "Reset clears any in-progress state on the root node and its descendants.\n",
              "file": "pkg/ai/bt_snapshot.go",
              "line": 75
            },
            {
              "name": "Restore",
              "anchor": "BehaviorTree.Restore",
              "recv": "*BehaviorTree",
              "decl": "func (bt *BehaviorTree) Restore(snap BehaviorTreeSnapshot) error",
              "doc": "Restore validates snap against bt's structure and applies it atomically without\nmutating any node on error.\n",
              "file": "pkg/ai/bt_snapshot.go",
              "line": 105
            },
            {
              "name": "Root",
              "anchor": "BehaviorTree.Root",
              "recv": "*BehaviorTree",
              "decl": "func (bt *BehaviorTree) Root() Node",
              "doc": "Root returns the tree's root [Node], or nil if bt is nil.\n",
              "file": "pkg/ai/bt_snapshot.go",
              "line": 59
            },
            {
              "name": "Snapshot",
              "anchor": "BehaviorTree.Snapshot",
              "recv": "*BehaviorTree",
              "decl": "func (bt *BehaviorTree) Snapshot() (BehaviorTreeSnapshot, error)",
              "doc": "Snapshot captures bt's structural shape and mutable runtime state.\n",
              "file": "pkg/ai/bt_snapshot.go",
              "line": 96
            },
            {
              "name": "Tick",
              "anchor": "BehaviorTree.Tick",
              "recv": "*BehaviorTree",
              "decl": "func (bt *BehaviorTree) Tick(dt time.Duration) Status",
              "doc": "Tick advances the root node by dt, returning [StatusFailure] when bt or its root is nil.\n",
              "file": "pkg/ai/bt_snapshot.go",
              "line": 67
            }
          ]
        },
        {
          "name": "BehaviorTreeDoc",
          "anchor": "BehaviorTreeDoc",
          "decl": "type BehaviorTreeDoc struct {\n\t// Version is the schema version; must equal BTFormatVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Name is an optional human-readable identifier for this behavior tree.\n\tName string `yaml:\"name,omitempty\"`\n\t// Params declares optional default parameter values substituted for \"${name}\" references in this tree.\n\tParams map[string]any `yaml:\"params,omitempty\"`\n\t// Blackboard declares typed blackboard keys and optional initial defaults used by this tree.\n\tBlackboard []BTBlackboardKeyDoc `yaml:\"blackboard,omitempty\"`\n\t// Root is the root node of the behavior tree.\n\tRoot BTNodeDoc `yaml:\"root\" schema:\"required\"`\n\t// contains filtered or unexported fields\n}",
          "doc": "BehaviorTreeDoc is the root of a versioned YAML behavior tree document (*.bt.yaml).\n",
          "file": "pkg/ai/bt_yaml.go",
          "line": 93,
          "members": [
            {
              "name": "Version",
              "anchor": "BehaviorTreeDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; must equal BTFormatVersion (1)."
            },
            {
              "name": "Name",
              "anchor": "BehaviorTreeDoc.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable identifier for this behavior tree."
            },
            {
              "name": "Params",
              "anchor": "BehaviorTreeDoc.Params",
              "kind": "field",
              "doc": "Params declares optional default parameter values substituted for \"${name}\" references in this tree."
            },
            {
              "name": "Blackboard",
              "anchor": "BehaviorTreeDoc.Blackboard",
              "kind": "field",
              "doc": "Blackboard declares typed blackboard keys and optional initial defaults used by this tree."
            },
            {
              "name": "Root",
              "anchor": "BehaviorTreeDoc.Root",
              "kind": "field",
              "doc": "Root is the root node of the behavior tree."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadBehaviorTreeFS",
              "anchor": "LoadBehaviorTreeFS",
              "decl": "func LoadBehaviorTreeFS(fsys fs.FS, name string) (*BehaviorTreeDoc, error)",
              "doc": "LoadBehaviorTreeFS reads, parses, and validates the behavior tree at name in fsys,\nincluding checking all transitively referenced subtrees for parse errors and cycles.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1228
            },
            {
              "name": "ParseBehaviorTree",
              "anchor": "ParseBehaviorTree",
              "decl": "func ParseBehaviorTree(data []byte) (*BehaviorTreeDoc, error)",
              "doc": "ParseBehaviorTree decodes and validates a version 1 YAML behavior tree document.\nUnknown fields, unknown node types, invalid operators or abort modes, unsupported\nversions, and trailing YAML documents are refused with a [*loaderr.Error].\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 168
            },
            {
              "name": "ParseBehaviorTreeWith",
              "anchor": "ParseBehaviorTreeWith",
              "decl": "func ParseBehaviorTreeWith(data []byte, file string) (*BehaviorTreeDoc, error)",
              "doc": "ParseBehaviorTreeWith is [ParseBehaviorTree] with a source file name attached to\nreturned errors and checked for direct self-referencing subtree cycles.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 174
            }
          ],
          "methods": []
        },
        {
          "name": "BehaviorTreeSnapshot",
          "anchor": "BehaviorTreeSnapshot",
          "decl": "type BehaviorTreeSnapshot struct {\n\t// Version is BTSnapshotVersion.\n\tVersion int `json:\"version\" yaml:\"version\"`\n\t// Nodes lists every node in deterministic pre-order traversal, pairing its\n\t// structural path (such as \"0/1/2\") and node kind with any active runtime state.\n\tNodes []BTNodeSnapshot `json:\"nodes\" yaml:\"nodes\"`\n}",
          "doc": "BehaviorTreeSnapshot holds the structural shape and mutable runtime state of a\nbehavior tree as plain data that marshals deterministically to YAML and JSON.\n",
          "file": "pkg/ai/bt_snapshot.go",
          "line": 114,
          "members": [
            {
              "name": "Version",
              "anchor": "BehaviorTreeSnapshot.Version",
              "kind": "field",
              "doc": "Version is BTSnapshotVersion."
            },
            {
              "name": "Nodes",
              "anchor": "BehaviorTreeSnapshot.Nodes",
              "kind": "field",
              "doc": "Nodes lists every node in deterministic pre-order traversal, pairing its\nstructural path (such as \"0/1/2\") and node kind with any active runtime state."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SnapshotBehaviorTree",
              "anchor": "SnapshotBehaviorTree",
              "decl": "func SnapshotBehaviorTree(root Node) (BehaviorTreeSnapshot, error)",
              "doc": "SnapshotBehaviorTree captures the structural shape and mutable runtime state of\nthe behavior tree rooted at root. The returned snapshot contains only plain data\nsuitable for deterministic YAML and JSON encoding and shares no mutable slices\nwith root.\n",
              "file": "pkg/ai/bt_snapshot.go",
              "line": 197
            }
          ],
          "methods": []
        },
        {
          "name": "Blackboard",
          "anchor": "Blackboard",
          "decl": "type Blackboard struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Blackboard is a typed per-agent key-value store with optional parent scoping\n(for a squad or team), monotonic revision tracking, and synchronous change\nnotifications.\n\nReads check local entries first and fall back to Parent when unset locally.\nWrites via Set* target the local blackboard; SetShared* writes to Parent when\npresent (or locally if Parent is nil). Blackboard is designed for deterministic\nsingle-threaded stepping on game.Loop and is not safe for concurrent use.\n",
          "file": "pkg/ai/blackboard.go",
          "line": 204,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBlackboard",
              "anchor": "NewBlackboard",
              "decl": "func NewBlackboard() *Blackboard",
              "doc": "NewBlackboard creates an empty standalone [Blackboard].\n",
              "file": "pkg/ai/blackboard.go",
              "line": 214
            },
            {
              "name": "NewChildBlackboard",
              "anchor": "NewChildBlackboard",
              "decl": "func NewChildBlackboard(parent *Blackboard) *Blackboard",
              "doc": "NewChildBlackboard creates a [Blackboard] scoped to an agent that falls back to\nparent for reads not shadowed locally.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 220
            }
          ],
          "methods": [
            {
              "name": "Bool",
              "anchor": "Blackboard.Bool",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Bool(key string) (bool, bool)",
              "doc": "Bool returns the bool stored under key, or (false, false) if unset or of another type.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 492
            },
            {
              "name": "Clear",
              "anchor": "Blackboard.Clear",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Clear()",
              "doc": "Clear removes all local entries from b in deterministic sorted key order,\nnotifying watchers for each key whose effective value changes.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 401
            },
            {
              "name": "Delete",
              "anchor": "Blackboard.Delete",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Delete(key string)",
              "doc": "Delete removes key from b's local scope, exposing any value stored in Parent.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 384
            },
            {
              "name": "DeleteShared",
              "anchor": "Blackboard.DeleteShared",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) DeleteShared(key string)",
              "doc": "DeleteShared deletes key from b.Parent() when non-nil, or locally from b when\nb has no parent.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 426
            },
            {
              "name": "Entity",
              "anchor": "Blackboard.Entity",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Entity(key string) (uint64, bool)",
              "doc": "Entity returns the uint64 entity ID stored under key, or (0, false) if unset or of another type.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 555
            },
            {
              "name": "Float",
              "anchor": "Blackboard.Float",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Float(key string) (float64, bool)",
              "doc": "Float returns the float64 stored under key, or (0, false) if unset or of another type.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 510
            },
            {
              "name": "Get",
              "anchor": "Blackboard.Get",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Get(key string) (BlackboardValue, bool)",
              "doc": "Get returns the effective value for key, falling back to Parent when unset locally.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 319
            },
            {
              "name": "GetLocal",
              "anchor": "Blackboard.GetLocal",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) GetLocal(key string) (BlackboardValue, bool)",
              "doc": "GetLocal returns the value stored directly on b without consulting Parent.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 331
            },
            {
              "name": "Has",
              "anchor": "Blackboard.Has",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Has(key string) bool",
              "doc": "Has reports whether key is set on b or any ancestor blackboard.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 340
            },
            {
              "name": "HasLocal",
              "anchor": "Blackboard.HasLocal",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) HasLocal(key string) bool",
              "doc": "HasLocal reports whether key is set directly on b.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 346
            },
            {
              "name": "Int",
              "anchor": "Blackboard.Int",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Int(key string) (int, bool)",
              "doc": "Int returns the int stored under key, or (0, false) if unset or of another type.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 501
            },
            {
              "name": "KeyRevision",
              "anchor": "Blackboard.KeyRevision",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) KeyRevision(key string) uint64",
              "doc": "KeyRevision returns a monotonically increasing mutation counter for key across\nb and any ancestor blackboards. It allocates zero bytes.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 244
            },
            {
              "name": "Keys",
              "anchor": "Blackboard.Keys",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Keys(dst []string) []string",
              "doc": "Keys appends all visible keys on b and its ancestors to dst[:0] in deterministic ascending order without duplicates.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 578
            },
            {
              "name": "Kind",
              "anchor": "Blackboard.Kind",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Kind(key string) BlackboardKind",
              "doc": "Kind returns the [BlackboardKind] of key, or BlackboardNone when unset.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 352
            },
            {
              "name": "LocalKeys",
              "anchor": "Blackboard.LocalKeys",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) LocalKeys(dst []string) []string",
              "doc": "LocalKeys appends all keys stored directly on b to dst[:0] in deterministic ascending order.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 564
            },
            {
              "name": "Parent",
              "anchor": "Blackboard.Parent",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Parent() *Blackboard",
              "doc": "Parent returns b's shared parent blackboard, or nil when b has no parent.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 225
            },
            {
              "name": "Point",
              "anchor": "Blackboard.Point",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Point(key string) (core.Point, bool)",
              "doc": "Point returns the 2D vector stored under key as a core.Point, or (zero, false) if unset or of another type.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 537
            },
            {
              "name": "Revision",
              "anchor": "Blackboard.Revision",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Revision() uint64",
              "doc": "Revision returns a monotonically increasing mutation counter covering b and any\nancestor blackboards.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 234
            },
            {
              "name": "Set",
              "anchor": "Blackboard.Set",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Set(key string, val BlackboardValue)",
              "doc": "Set stores val under key on b's local scope. Setting a zero (BlackboardNone)\nvalue deletes the local key.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 362
            },
            {
              "name": "SetBool",
              "anchor": "Blackboard.SetBool",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetBool(key string, v bool)",
              "doc": "SetBool stores a bool under key on b.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 440
            },
            {
              "name": "SetEntity",
              "anchor": "Blackboard.SetEntity",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetEntity(key string, id uint64)",
              "doc": "SetEntity stores an entity ID under key on b.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 461
            },
            {
              "name": "SetFloat",
              "anchor": "Blackboard.SetFloat",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetFloat(key string, v float64)",
              "doc": "SetFloat stores a float64 under key on b.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 446
            },
            {
              "name": "SetInt",
              "anchor": "Blackboard.SetInt",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetInt(key string, v int)",
              "doc": "SetInt stores an int under key on b.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 443
            },
            {
              "name": "SetPoint",
              "anchor": "Blackboard.SetPoint",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetPoint(key string, p core.Point)",
              "doc": "SetPoint stores a core.Point as a 2D vector under key on b.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 455
            },
            {
              "name": "SetShared",
              "anchor": "Blackboard.SetShared",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetShared(key string, val BlackboardValue)",
              "doc": "SetShared stores val under key on b.Parent() when non-nil, or locally on b\nwhen b has no parent.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 413
            },
            {
              "name": "SetSharedBool",
              "anchor": "Blackboard.SetSharedBool",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetSharedBool(key string, v bool)",
              "doc": "SetSharedBool stores a bool on the shared parent blackboard (or b if standalone).\n",
              "file": "pkg/ai/blackboard.go",
              "line": 466
            },
            {
              "name": "SetSharedEntity",
              "anchor": "Blackboard.SetSharedEntity",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetSharedEntity(key string, id uint64)",
              "doc": "SetSharedEntity stores an entity ID on the shared parent blackboard (or b if standalone).\n",
              "file": "pkg/ai/blackboard.go",
              "line": 487
            },
            {
              "name": "SetSharedFloat",
              "anchor": "Blackboard.SetSharedFloat",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetSharedFloat(key string, v float64)",
              "doc": "SetSharedFloat stores a float64 on the shared parent blackboard (or b if standalone).\n",
              "file": "pkg/ai/blackboard.go",
              "line": 472
            },
            {
              "name": "SetSharedInt",
              "anchor": "Blackboard.SetSharedInt",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetSharedInt(key string, v int)",
              "doc": "SetSharedInt stores an int on the shared parent blackboard (or b if standalone).\n",
              "file": "pkg/ai/blackboard.go",
              "line": 469
            },
            {
              "name": "SetSharedPoint",
              "anchor": "Blackboard.SetSharedPoint",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetSharedPoint(key string, p core.Point)",
              "doc": "SetSharedPoint stores a core.Point as a 2D vector on the shared parent blackboard (or b if standalone).\n",
              "file": "pkg/ai/blackboard.go",
              "line": 481
            },
            {
              "name": "SetSharedString",
              "anchor": "Blackboard.SetSharedString",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetSharedString(key string, v string)",
              "doc": "SetSharedString stores a string on the shared parent blackboard (or b if standalone).\n",
              "file": "pkg/ai/blackboard.go",
              "line": 475
            },
            {
              "name": "SetSharedVec2",
              "anchor": "Blackboard.SetSharedVec2",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetSharedVec2(key string, v math2d.Vec2)",
              "doc": "SetSharedVec2 stores a 2D vector on the shared parent blackboard (or b if standalone).\n",
              "file": "pkg/ai/blackboard.go",
              "line": 478
            },
            {
              "name": "SetSharedVec3",
              "anchor": "Blackboard.SetSharedVec3",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetSharedVec3(key string, v Vec3)",
              "doc": "SetSharedVec3 stores a 3D vector on the shared parent blackboard (or b if standalone).\n",
              "file": "pkg/ai/blackboard.go",
              "line": 484
            },
            {
              "name": "SetString",
              "anchor": "Blackboard.SetString",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetString(key string, v string)",
              "doc": "SetString stores a string under key on b.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 449
            },
            {
              "name": "SetVec2",
              "anchor": "Blackboard.SetVec2",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetVec2(key string, v math2d.Vec2)",
              "doc": "SetVec2 stores a 2D vector under key on b.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 452
            },
            {
              "name": "SetVec3",
              "anchor": "Blackboard.SetVec3",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) SetVec3(key string, v Vec3)",
              "doc": "SetVec3 stores a 3D vector under key on b.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 458
            },
            {
              "name": "String",
              "anchor": "Blackboard.String",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) String(key string) (string, bool)",
              "doc": "String returns the string stored under key, or (\"\", false) if unset or of another type.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 519
            },
            {
              "name": "Vec2",
              "anchor": "Blackboard.Vec2",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Vec2(key string) (math2d.Vec2, bool)",
              "doc": "Vec2 returns the 2D vector stored under key, or (zero, false) if unset or of another type.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 528
            },
            {
              "name": "Vec3",
              "anchor": "Blackboard.Vec3",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Vec3(key string) (Vec3, bool)",
              "doc": "Vec3 returns the 3D vector stored under key, or (zero, false) if unset or of another type.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 546
            },
            {
              "name": "Watch",
              "anchor": "Blackboard.Watch",
              "recv": "*Blackboard",
              "decl": "func (b *Blackboard) Watch(key string, fn BlackboardListener) (cancel func())",
              "doc": "Watch registers fn to be called synchronously whenever key changes on b or on\nan ancestor blackboard (unless shadowed locally). Pass an empty key \"\" to watch\nall keys. The returned cancel function unregisters the watcher cleanly.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 257
            }
          ]
        },
        {
          "name": "BlackboardChange",
          "anchor": "BlackboardChange",
          "decl": "type BlackboardChange struct {\n\t// Key is the modified blackboard key.\n\tKey string\n\t// Old is the effective value before the mutation (BlackboardNone if previously unset).\n\tOld BlackboardValue\n\t// New is the effective value after the mutation (BlackboardNone if removed).\n\tNew BlackboardValue\n\t// Board is the Blackboard where the mutation occurred (which may be a shared parent).\n\tBoard *Blackboard\n}",
          "doc": "BlackboardChange describes a single key mutation observed by a [BlackboardListener].\n",
          "file": "pkg/ai/blackboard.go",
          "line": 176,
          "members": [
            {
              "name": "Key",
              "anchor": "BlackboardChange.Key",
              "kind": "field",
              "doc": "Key is the modified blackboard key."
            },
            {
              "name": "Old",
              "anchor": "BlackboardChange.Old",
              "kind": "field",
              "doc": "Old is the effective value before the mutation (BlackboardNone if previously unset)."
            },
            {
              "name": "New",
              "anchor": "BlackboardChange.New",
              "kind": "field",
              "doc": "New is the effective value after the mutation (BlackboardNone if removed)."
            },
            {
              "name": "Board",
              "anchor": "BlackboardChange.Board",
              "kind": "field",
              "doc": "Board is the Blackboard where the mutation occurred (which may be a shared parent)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BlackboardKind",
          "anchor": "BlackboardKind",
          "decl": "type BlackboardKind uint8",
          "doc": "BlackboardKind identifies the stored value type of a [Blackboard] entry.\n",
          "file": "pkg/ai/blackboard.go",
          "line": 12,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BlackboardNone",
                  "anchor": "BlackboardNone"
                },
                {
                  "name": "BlackboardBool",
                  "anchor": "BlackboardBool"
                },
                {
                  "name": "BlackboardInt",
                  "anchor": "BlackboardInt"
                },
                {
                  "name": "BlackboardFloat",
                  "anchor": "BlackboardFloat"
                },
                {
                  "name": "BlackboardString",
                  "anchor": "BlackboardString"
                },
                {
                  "name": "BlackboardVec2",
                  "anchor": "BlackboardVec2"
                },
                {
                  "name": "BlackboardVec3",
                  "anchor": "BlackboardVec3"
                },
                {
                  "name": "BlackboardEntity",
                  "anchor": "BlackboardEntity"
                }
              ],
              "decl": "const (\n\t// BlackboardNone represents an unset or absent blackboard key.\n\tBlackboardNone BlackboardKind = iota\n\t// BlackboardBool stores a bool.\n\tBlackboardBool\n\t// BlackboardInt stores an int.\n\tBlackboardInt\n\t// BlackboardFloat stores a float64.\n\tBlackboardFloat\n\t// BlackboardString stores a string.\n\tBlackboardString\n\t// BlackboardVec2 stores a 2D float32 vector (math2d.Vec2 / core.Point).\n\tBlackboardVec2\n\t// BlackboardVec3 stores a 3D float32 vector (ai.Vec3).\n\tBlackboardVec3\n\t// BlackboardEntity stores a uint64 entity identifier.\n\tBlackboardEntity\n)",
              "doc": "",
              "file": "pkg/ai/blackboard.go",
              "line": 14
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "BlackboardKind.String",
              "recv": "BlackboardKind",
              "decl": "func (k BlackboardKind) String() string",
              "doc": "String returns the canonical YAML name for k.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 34
            }
          ]
        },
        {
          "name": "BlackboardKindName",
          "anchor": "BlackboardKindName",
          "decl": "type BlackboardKindName string",
          "doc": "BlackboardKindName is the string representation of a [BlackboardKind] in YAML documents.\n",
          "file": "pkg/ai/blackboard.go",
          "line": 56,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BBTypeBool",
                  "anchor": "BBTypeBool"
                },
                {
                  "name": "BBTypeInt",
                  "anchor": "BBTypeInt"
                },
                {
                  "name": "BBTypeFloat",
                  "anchor": "BBTypeFloat"
                },
                {
                  "name": "BBTypeString",
                  "anchor": "BBTypeString"
                },
                {
                  "name": "BBTypeVec2",
                  "anchor": "BBTypeVec2"
                },
                {
                  "name": "BBTypeVec3",
                  "anchor": "BBTypeVec3"
                },
                {
                  "name": "BBTypeEntity",
                  "anchor": "BBTypeEntity"
                }
              ],
              "decl": "const (\n\t// BBTypeBool is the YAML type name for bool blackboard keys.\n\tBBTypeBool BlackboardKindName = \"bool\"\n\t// BBTypeInt is the YAML type name for int blackboard keys.\n\tBBTypeInt BlackboardKindName = \"int\"\n\t// BBTypeFloat is the YAML type name for float64 blackboard keys.\n\tBBTypeFloat BlackboardKindName = \"float\"\n\t// BBTypeString is the YAML type name for string blackboard keys.\n\tBBTypeString BlackboardKindName = \"string\"\n\t// BBTypeVec2 is the YAML type name for 2D vector blackboard keys.\n\tBBTypeVec2 BlackboardKindName = \"vec2\"\n\t// BBTypeVec3 is the YAML type name for 3D vector blackboard keys.\n\tBBTypeVec3 BlackboardKindName = \"vec3\"\n\t// BBTypeEntity is the YAML type name for uint64 entity ID blackboard keys.\n\tBBTypeEntity BlackboardKindName = \"entity\"\n)",
              "doc": "",
              "file": "pkg/ai/blackboard.go",
              "line": 58
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Kind",
              "anchor": "BlackboardKindName.Kind",
              "recv": "BlackboardKindName",
              "decl": "func (n BlackboardKindName) Kind() (BlackboardKind, bool)",
              "doc": "Kind converts a YAML [BlackboardKindName] into a [BlackboardKind].\n",
              "file": "pkg/ai/blackboard.go",
              "line": 76
            }
          ]
        },
        {
          "name": "BlackboardListener",
          "anchor": "BlackboardListener",
          "decl": "type BlackboardListener func(change BlackboardChange)",
          "doc": "BlackboardListener is invoked synchronously when a watched blackboard key changes.\n",
          "file": "pkg/ai/blackboard.go",
          "line": 188,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BlackboardOp",
          "anchor": "BlackboardOp",
          "decl": "type BlackboardOp string",
          "doc": "BlackboardOp identifies a comparison operator evaluated by [BlackboardCondition].\n",
          "file": "pkg/ai/bt_blackboard.go",
          "line": 9,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BBOpEq",
                  "anchor": "BBOpEq"
                },
                {
                  "name": "BBOpNe",
                  "anchor": "BBOpNe"
                },
                {
                  "name": "BBOpLt",
                  "anchor": "BBOpLt"
                },
                {
                  "name": "BBOpLte",
                  "anchor": "BBOpLte"
                },
                {
                  "name": "BBOpGt",
                  "anchor": "BBOpGt"
                },
                {
                  "name": "BBOpGte",
                  "anchor": "BBOpGte"
                },
                {
                  "name": "BBOpSet",
                  "anchor": "BBOpSet"
                },
                {
                  "name": "BBOpUnset",
                  "anchor": "BBOpUnset"
                }
              ],
              "decl": "const (\n\t// BBOpEq holds when the blackboard key is set and equals the comparison value.\n\tBBOpEq BlackboardOp = \"eq\"\n\t// BBOpNe holds when the blackboard key is unset or differs from the comparison value.\n\tBBOpNe BlackboardOp = \"ne\"\n\t// BBOpLt holds when the blackboard key is set and strictly less than the comparison value.\n\tBBOpLt BlackboardOp = \"lt\"\n\t// BBOpLte holds when the blackboard key is set and less than or equal to the comparison value.\n\tBBOpLte BlackboardOp = \"lte\"\n\t// BBOpGt holds when the blackboard key is set and strictly greater than the comparison value.\n\tBBOpGt BlackboardOp = \"gt\"\n\t// BBOpGte holds when the blackboard key is set and greater than or equal to the comparison value.\n\tBBOpGte BlackboardOp = \"gte\"\n\t// BBOpSet holds when the blackboard key is present.\n\tBBOpSet BlackboardOp = \"set\"\n\t// BBOpUnset holds when the blackboard key is absent.\n\tBBOpUnset BlackboardOp = \"unset\"\n)",
              "doc": "",
              "file": "pkg/ai/bt_blackboard.go",
              "line": 11
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "NeedsValue",
              "anchor": "BlackboardOp.NeedsValue",
              "recv": "BlackboardOp",
              "decl": "func (op BlackboardOp) NeedsValue() bool",
              "doc": "NeedsValue reports whether op compares against an explicit operand value.\n",
              "file": "pkg/ai/bt_blackboard.go",
              "line": 41
            },
            {
              "name": "Valid",
              "anchor": "BlackboardOp.Valid",
              "recv": "BlackboardOp",
              "decl": "func (op BlackboardOp) Valid() bool",
              "doc": "Valid reports whether op is a known [BlackboardOp].\n",
              "file": "pkg/ai/bt_blackboard.go",
              "line": 31
            }
          ]
        },
        {
          "name": "BlackboardValue",
          "anchor": "BlackboardValue",
          "decl": "type BlackboardValue struct {\n\tKind   BlackboardKind\n\tBool   bool\n\tInt    int\n\tFloat  float64\n\tString string\n\tVec2   math2d.Vec2\n\tVec3   Vec3\n\tEntity uint64\n}",
          "doc": "BlackboardValue is a typed tagged union stored in a [Blackboard] without interface boxing.\n",
          "file": "pkg/ai/blackboard.go",
          "line": 98,
          "members": [
            {
              "name": "Kind",
              "anchor": "BlackboardValue.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bool",
              "anchor": "BlackboardValue.Bool",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Int",
              "anchor": "BlackboardValue.Int",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Float",
              "anchor": "BlackboardValue.Float",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "String",
              "anchor": "BlackboardValue.String",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vec2",
              "anchor": "BlackboardValue.Vec2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vec3",
              "anchor": "BlackboardValue.Vec3",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Entity",
              "anchor": "BlackboardValue.Entity",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BBBool",
              "anchor": "BBBool",
              "decl": "func BBBool(v bool) BlackboardValue",
              "doc": "BBBool returns a [BlackboardValue] holding v.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 110
            },
            {
              "name": "BBEntity",
              "anchor": "BBEntity",
              "decl": "func BBEntity(id uint64) BlackboardValue",
              "doc": "BBEntity returns a [BlackboardValue] holding entity identifier id.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 133
            },
            {
              "name": "BBFloat",
              "anchor": "BBFloat",
              "decl": "func BBFloat(v float64) BlackboardValue",
              "doc": "BBFloat returns a [BlackboardValue] holding v.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 116
            },
            {
              "name": "BBInt",
              "anchor": "BBInt",
              "decl": "func BBInt(v int) BlackboardValue",
              "doc": "BBInt returns a [BlackboardValue] holding v.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 113
            },
            {
              "name": "BBPoint",
              "anchor": "BBPoint",
              "decl": "func BBPoint(p core.Point) BlackboardValue",
              "doc": "BBPoint returns a [BlackboardValue] holding p as a 2D vector.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 125
            },
            {
              "name": "BBString",
              "anchor": "BBString",
              "decl": "func BBString(v string) BlackboardValue",
              "doc": "BBString returns a [BlackboardValue] holding v.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 119
            },
            {
              "name": "BBVec2",
              "anchor": "BBVec2",
              "decl": "func BBVec2(v math2d.Vec2) BlackboardValue",
              "doc": "BBVec2 returns a [BlackboardValue] holding v.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 122
            },
            {
              "name": "BBVec3",
              "anchor": "BBVec3",
              "decl": "func BBVec3(v Vec3) BlackboardValue",
              "doc": "BBVec3 returns a [BlackboardValue] holding v.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 130
            }
          ],
          "methods": [
            {
              "name": "Equal",
              "anchor": "BlackboardValue.Equal",
              "recv": "BlackboardValue",
              "decl": "func (v BlackboardValue) Equal(o BlackboardValue) bool",
              "doc": "Equal reports whether v and o have the same kind and identical stored value.\n",
              "file": "pkg/ai/blackboard.go",
              "line": 139
            },
            {
              "name": "IsZero",
              "anchor": "BlackboardValue.IsZero",
              "recv": "BlackboardValue",
              "decl": "func (v BlackboardValue) IsZero() bool",
              "doc": "IsZero reports whether v represents an unset value (BlackboardNone).\n",
              "file": "pkg/ai/blackboard.go",
              "line": 136
            }
          ]
        },
        {
          "name": "BoolFact",
          "anchor": "BoolFact",
          "decl": "type BoolFact uint8",
          "doc": "BoolFact identifies a boolean fact slot (0..MaxBoolFacts-1) in a FactSchema and WorldState.\n",
          "file": "pkg/ai/goap.go",
          "line": 29,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BoolGrid",
          "anchor": "BoolGrid",
          "decl": "type BoolGrid struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "BoolGrid is a Grid backed by a flat boolean slice. All cells start walkable.\n",
          "file": "pkg/ai/astar.go",
          "line": 30,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBoolGrid",
              "anchor": "NewBoolGrid",
              "decl": "func NewBoolGrid(cols, rows int) *BoolGrid",
              "doc": "NewBoolGrid returns a cols-by-rows grid with every cell walkable.\n",
              "file": "pkg/ai/astar.go",
              "line": 36
            }
          ],
          "methods": [
            {
              "name": "GridSize",
              "anchor": "BoolGrid.GridSize",
              "recv": "*BoolGrid",
              "decl": "func (g *BoolGrid) GridSize() (cols, rows int)",
              "doc": "GridSize returns the grid's columns and rows.\n",
              "file": "pkg/ai/astar.go",
              "line": 51
            },
            {
              "name": "SetWalkable",
              "anchor": "BoolGrid.SetWalkable",
              "recv": "*BoolGrid",
              "decl": "func (g *BoolGrid) SetWalkable(col, row int, walkable bool)",
              "doc": "SetWalkable marks (col, row) as walkable or blocked. Out-of-bounds coordinates are ignored.\n",
              "file": "pkg/ai/astar.go",
              "line": 62
            },
            {
              "name": "Walkable",
              "anchor": "BoolGrid.Walkable",
              "recv": "*BoolGrid",
              "decl": "func (g *BoolGrid) Walkable(col, row int) bool",
              "doc": "Walkable reports whether (col, row) is in bounds and unblocked.\n",
              "file": "pkg/ai/astar.go",
              "line": 54
            }
          ]
        },
        {
          "name": "CandidateGenerator",
          "anchor": "CandidateGenerator",
          "decl": "type CandidateGenerator interface {\n\tGenerate(ctx TacticalContext, dst []TacticalCandidate) []TacticalCandidate\n}",
          "doc": "CandidateGenerator appends deterministic candidate positions to dst and returns the extended slice.\n",
          "file": "pkg/ai/tactical.go",
          "line": 245,
          "members": [
            {
              "name": "Generate",
              "anchor": "CandidateGenerator.Generate",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Cell",
          "anchor": "Cell",
          "decl": "type Cell struct {\n\tCol, Row int\n}",
          "doc": "Cell is a column and row coordinate on a grid.\n",
          "file": "pkg/ai/astar.go",
          "line": 9,
          "members": [
            {
              "name": "Col",
              "anchor": "Cell.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "Cell.Row",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChildNodes",
          "anchor": "ChildNodes",
          "decl": "type ChildNodes interface {\n\tNode\n\tChildren() []Node\n}",
          "doc": "ChildNodes is an optional interface that custom composite or decorator [Node]\nimplementations may implement so [SnapshotBehaviorTree] and [RestoreBehaviorTree]\ntraverse and preserve the state of their child nodes.\n",
          "file": "pkg/ai/bt_snapshot.go",
          "line": 42,
          "members": [
            {
              "name": "Children",
              "anchor": "ChildNodes.Children",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ClusterID",
          "anchor": "ClusterID",
          "decl": "type ClusterID struct {\n\tCol, Row int\n}",
          "doc": "ClusterID identifies a cluster in an HPA grid by its cluster column and row.\n",
          "file": "pkg/ai/hpa.go",
          "line": 16,
          "members": [
            {
              "name": "Col",
              "anchor": "ClusterID.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "ClusterID.Row",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ClusterRect",
          "anchor": "ClusterRect",
          "decl": "type ClusterRect struct {\n\tID     ClusterID\n\tMinCol int\n\tMinRow int\n\tMaxCol int\n\tMaxRow int\n}",
          "doc": "ClusterRect describes the inclusive-exclusive cell bounds [MinCol, MaxCol) x [MinRow, MaxRow) of an HPA cluster.\n",
          "file": "pkg/ai/hpa.go",
          "line": 21,
          "members": [
            {
              "name": "ID",
              "anchor": "ClusterRect.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinCol",
              "anchor": "ClusterRect.MinCol",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinRow",
              "anchor": "ClusterRect.MinRow",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxCol",
              "anchor": "ClusterRect.MaxCol",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxRow",
              "anchor": "ClusterRect.MaxRow",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ColliderCoverOptions",
          "anchor": "ColliderCoverOptions",
          "decl": "type ColliderCoverOptions struct {\n\t// Spacing is the distance between cover points along an obstacle edge (defaults to 32 when <= 0).\n\tSpacing float32\n\t// Standoff offsets each cover point away from the obstacle edge into open space (defaults to 8 when <= 0).\n\tStandoff float32\n\t// EdgeInset is the margin from each edge corner (defaults to Spacing * 0.5 when <= 0).\n\tEdgeInset float32\n\t// MinEdgeLength skips obstacle edges shorter than this length (values <= 0 allow any positive edge).\n\tMinEdgeLength float32\n\t// DefaultHeight sets the cover height when not overridden (defaults to CoverFull).\n\tDefaultHeight CoverHeight\n\t// HeightForBody optionally classifies cover height for each body in GenerateCoverFromWorld.\n\tHeightForBody func(*physics.Body) CoverHeight\n\t// LayerMask filters bodies inspected by GenerateCoverFromWorld (0 defaults to physics.LayerAll).\n\tLayerMask physics.LayerMask\n\t// SkipTiles omits World.Tiles when generating from a physics.World.\n\tSkipTiles bool\n\t// StartID is the first CoverPoint.ID assigned (defaults to 1 when 0).\n\tStartID uint64\n}",
          "doc": "ColliderCoverOptions configures cover-point generation from 2D physics boxes, segments, or a physics.World.\n",
          "file": "pkg/ai/cover.go",
          "line": 141,
          "members": [
            {
              "name": "Spacing",
              "anchor": "ColliderCoverOptions.Spacing",
              "kind": "field",
              "doc": "Spacing is the distance between cover points along an obstacle edge (defaults to 32 when <= 0)."
            },
            {
              "name": "Standoff",
              "anchor": "ColliderCoverOptions.Standoff",
              "kind": "field",
              "doc": "Standoff offsets each cover point away from the obstacle edge into open space (defaults to 8 when <= 0)."
            },
            {
              "name": "EdgeInset",
              "anchor": "ColliderCoverOptions.EdgeInset",
              "kind": "field",
              "doc": "EdgeInset is the margin from each edge corner (defaults to Spacing * 0.5 when <= 0)."
            },
            {
              "name": "MinEdgeLength",
              "anchor": "ColliderCoverOptions.MinEdgeLength",
              "kind": "field",
              "doc": "MinEdgeLength skips obstacle edges shorter than this length (values <= 0 allow any positive edge)."
            },
            {
              "name": "DefaultHeight",
              "anchor": "ColliderCoverOptions.DefaultHeight",
              "kind": "field",
              "doc": "DefaultHeight sets the cover height when not overridden (defaults to CoverFull)."
            },
            {
              "name": "HeightForBody",
              "anchor": "ColliderCoverOptions.HeightForBody",
              "kind": "field",
              "doc": "HeightForBody optionally classifies cover height for each body in GenerateCoverFromWorld."
            },
            {
              "name": "LayerMask",
              "anchor": "ColliderCoverOptions.LayerMask",
              "kind": "field",
              "doc": "LayerMask filters bodies inspected by GenerateCoverFromWorld (0 defaults to physics.LayerAll)."
            },
            {
              "name": "SkipTiles",
              "anchor": "ColliderCoverOptions.SkipTiles",
              "kind": "field",
              "doc": "SkipTiles omits World.Tiles when generating from a physics.World."
            },
            {
              "name": "StartID",
              "anchor": "ColliderCoverOptions.StartID",
              "kind": "field",
              "doc": "StartID is the first CoverPoint.ID assigned (defaults to 1 when 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Conditions",
          "anchor": "Conditions",
          "decl": "type Conditions struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Conditions specifies required boolean fact values and optional closed integer bounds [lo, hi].\nThe zero Conditions matches every WorldState.\n\nCanonical invariant: bits outside boolMask are always 0 in boolVals, and intRange[i] is zero whenever bit i of intMask is 0.\n",
          "file": "pkg/ai/goap.go",
          "line": 275,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Empty",
              "anchor": "Conditions.Empty",
              "recv": "Conditions",
              "decl": "func (c Conditions) Empty() bool",
              "doc": "Empty reports whether c imposes no boolean or integer constraints.\n",
              "file": "pkg/ai/goap.go",
              "line": 283
            },
            {
              "name": "RequireBool",
              "anchor": "Conditions.RequireBool",
              "recv": "Conditions",
              "decl": "func (c Conditions) RequireBool(f BoolFact, v bool) Conditions",
              "doc": "RequireBool returns a copy of c requiring boolean fact f to equal v.\n",
              "file": "pkg/ai/goap.go",
              "line": 288
            },
            {
              "name": "RequireIntEq",
              "anchor": "Conditions.RequireIntEq",
              "recv": "Conditions",
              "decl": "func (c Conditions) RequireIntEq(f IntFact, v int) Conditions",
              "doc": "RequireIntEq returns a copy of c requiring integer fact f == v.\n",
              "file": "pkg/ai/goap.go",
              "line": 343
            },
            {
              "name": "RequireIntGt",
              "anchor": "Conditions.RequireIntGt",
              "recv": "Conditions",
              "decl": "func (c Conditions) RequireIntGt(f IntFact, v int) Conditions",
              "doc": "RequireIntGt returns a copy of c requiring integer fact f > v.\n",
              "file": "pkg/ai/goap.go",
              "line": 358
            },
            {
              "name": "RequireIntGte",
              "anchor": "Conditions.RequireIntGte",
              "recv": "Conditions",
              "decl": "func (c Conditions) RequireIntGte(f IntFact, v int) Conditions",
              "doc": "RequireIntGte returns a copy of c requiring integer fact f >= v.\n",
              "file": "pkg/ai/goap.go",
              "line": 348
            },
            {
              "name": "RequireIntLt",
              "anchor": "Conditions.RequireIntLt",
              "recv": "Conditions",
              "decl": "func (c Conditions) RequireIntLt(f IntFact, v int) Conditions",
              "doc": "RequireIntLt returns a copy of c requiring integer fact f < v.\n",
              "file": "pkg/ai/goap.go",
              "line": 363
            },
            {
              "name": "RequireIntLte",
              "anchor": "Conditions.RequireIntLte",
              "recv": "Conditions",
              "decl": "func (c Conditions) RequireIntLte(f IntFact, v int) Conditions",
              "doc": "RequireIntLte returns a copy of c requiring integer fact f <= v.\n",
              "file": "pkg/ai/goap.go",
              "line": 353
            },
            {
              "name": "RequireIntRange",
              "anchor": "Conditions.RequireIntRange",
              "recv": "Conditions",
              "decl": "func (c Conditions) RequireIntRange(f IntFact, lo, hi int) Conditions",
              "doc": "RequireIntRange returns a copy of c requiring integer fact f to lie in [lo, hi] inclusive.\nIf f is already constrained in c, the bounds are intersected; an empty intersection (lo > hi) makes c unsatisfiable.\n",
              "file": "pkg/ai/goap.go",
              "line": 305
            },
            {
              "name": "SatisfiedBy",
              "anchor": "Conditions.SatisfiedBy",
              "recv": "Conditions",
              "decl": "func (c Conditions) SatisfiedBy(w WorldState) bool",
              "doc": "SatisfiedBy reports whether w satisfies every constraint in c.\n",
              "file": "pkg/ai/goap.go",
              "line": 368
            }
          ]
        },
        {
          "name": "Consideration",
          "anchor": "Consideration",
          "decl": "type Consideration[C any] struct {\n\t// Name is an optional human-readable label.\n\tName string\n\t// Input extracts the numeric value from context C. A nil Input evaluates to 0.\n\tInput func(C) float64\n\t// Min and Max optionally define the input range normalized into [0, 1].\n\tMin float64\n\tMax float64\n\t// Curve maps the normalized [0, 1] input to a utility score in [0, 1].\n\tCurve ResponseCurve\n}",
          "doc": "Consideration turns one input reading from context C into a score in [0, 1] through Curve.\n\nWhen Max > Min, the raw input is linearly mapped from [Min, Max] into [0, 1] and clamped before applying Curve. Otherwise the input is clamped to [0, 1] directly.\n",
          "file": "pkg/ai/utility.go",
          "line": 184,
          "members": [
            {
              "name": "Name",
              "anchor": "Consideration.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable label."
            },
            {
              "name": "Input",
              "anchor": "Consideration.Input",
              "kind": "field",
              "doc": "Input extracts the numeric value from context C. A nil Input evaluates to 0."
            },
            {
              "name": "Min",
              "anchor": "Consideration.Min",
              "kind": "field",
              "doc": "Min and Max optionally define the input range normalized into [0, 1]."
            },
            {
              "name": "Max",
              "anchor": "Consideration.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Curve",
              "anchor": "Consideration.Curve",
              "kind": "field",
              "doc": "Curve maps the normalized [0, 1] input to a utility score in [0, 1]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Eval",
              "anchor": "Consideration.Eval",
              "recv": "Consideration[C]",
              "decl": "func (c Consideration[C]) Eval(ctx C) float64",
              "doc": "Eval reads Input(ctx), normalizes it to [0, 1], and evaluates Curve.\n",
              "file": "pkg/ai/utility.go",
              "line": 197
            }
          ]
        },
        {
          "name": "ConsiderationDef",
          "anchor": "ConsiderationDef",
          "decl": "type ConsiderationDef struct {\n\t// Name is an optional label for this consideration.\n\tName string `yaml:\"name,omitempty\"`\n\t// Input names the input function bound through UtilityBindings.Inputs.\n\tInput string `yaml:\"input\"`\n\t// Min and Max optionally define the input range normalized into [0, 1]. When both are 0, the input is clamped directly to [0, 1].\n\tMin float64 `yaml:\"min,omitempty\"`\n\tMax float64 `yaml:\"max,omitempty\"`\n\t// Curve defines the response curve applied to the normalized input.\n\tCurve CurveDef `yaml:\"curve\"`\n}",
          "doc": "ConsiderationDef defines one consideration in a UtilityConfig file.\n",
          "file": "pkg/ai/utility_yaml.go",
          "line": 41,
          "members": [
            {
              "name": "Name",
              "anchor": "ConsiderationDef.Name",
              "kind": "field",
              "doc": "Name is an optional label for this consideration."
            },
            {
              "name": "Input",
              "anchor": "ConsiderationDef.Input",
              "kind": "field",
              "doc": "Input names the input function bound through UtilityBindings.Inputs."
            },
            {
              "name": "Min",
              "anchor": "ConsiderationDef.Min",
              "kind": "field",
              "doc": "Min and Max optionally define the input range normalized into [0, 1]. When both are 0, the input is clamped directly to [0, 1]."
            },
            {
              "name": "Max",
              "anchor": "ConsiderationDef.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Curve",
              "anchor": "ConsiderationDef.Curve",
              "kind": "field",
              "doc": "Curve defines the response curve applied to the normalized input."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CostGrid",
          "anchor": "CostGrid",
          "decl": "type CostGrid interface {\n\tGrid\n\tMoveCost(col, row int) float64\n}",
          "doc": "CostGrid is a Grid whose walkable cells carry individual traversal costs.\n\nMoveCost returns the cost multiplier for entering (col, row), at least 1 so the distance heuristic remains admissible; values less than or equal to 0 are treated as 1.\n",
          "file": "pkg/ai/astar.go",
          "line": 24,
          "members": [
            {
              "name": "MoveCost",
              "anchor": "CostGrid.MoveCost",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CostMap",
          "anchor": "CostMap",
          "decl": "type CostMap struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CostMap is a CostGrid backed by a flat cost slice. All cells start walkable with cost 1.\n",
          "file": "pkg/ai/astar.go",
          "line": 70,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCostMap",
              "anchor": "NewCostMap",
              "decl": "func NewCostMap(cols, rows int) *CostMap",
              "doc": "NewCostMap returns a cols-by-rows CostMap with every cell walkable at cost 1.\n",
              "file": "pkg/ai/astar.go",
              "line": 77
            }
          ],
          "methods": [
            {
              "name": "GridSize",
              "anchor": "CostMap.GridSize",
              "recv": "*CostMap",
              "decl": "func (m *CostMap) GridSize() (cols, rows int)",
              "doc": "GridSize returns the map's columns and rows.\n",
              "file": "pkg/ai/astar.go",
              "line": 92
            },
            {
              "name": "MoveCost",
              "anchor": "CostMap.MoveCost",
              "recv": "*CostMap",
              "decl": "func (m *CostMap) MoveCost(col, row int) float64",
              "doc": "MoveCost returns the traversal cost of entering (col, row), or 1 if unset.\nCosts below 1 are clamped to 1 so a cheaper cell cannot make the distance\nheuristic overestimate and break A*'s optimality.\n",
              "file": "pkg/ai/astar.go",
              "line": 106
            },
            {
              "name": "SetCost",
              "anchor": "CostMap.SetCost",
              "recv": "*CostMap",
              "decl": "func (m *CostMap) SetCost(col, row int, cost float64)",
              "doc": "SetCost sets the traversal cost for (col, row). Negative, infinite or NaN costs mark the cell unwalkable; 0 or a cost below 1 restores the default cost of 1, as the distance heuristic assumes every step costs at least 1.\n",
              "file": "pkg/ai/astar.go",
              "line": 131
            },
            {
              "name": "SetWalkable",
              "anchor": "CostMap.SetWalkable",
              "recv": "*CostMap",
              "decl": "func (m *CostMap) SetWalkable(col, row int, walkable bool)",
              "doc": "SetWalkable marks (col, row) as walkable or blocked. Unblocking a cell restores its cost to 1.\n",
              "file": "pkg/ai/astar.go",
              "line": 118
            },
            {
              "name": "Walkable",
              "anchor": "CostMap.Walkable",
              "recv": "*CostMap",
              "decl": "func (m *CostMap) Walkable(col, row int) bool",
              "doc": "Walkable reports whether (col, row) is in bounds and not blocked.\n",
              "file": "pkg/ai/astar.go",
              "line": 95
            }
          ]
        },
        {
          "name": "CoverHeight",
          "anchor": "CoverHeight",
          "decl": "type CoverHeight uint8",
          "doc": "CoverHeight classifies how much vertical protection a CoverPoint provides.\n",
          "file": "pkg/ai/cover.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CoverHalf",
                  "anchor": "CoverHalf"
                },
                {
                  "name": "CoverFull",
                  "anchor": "CoverFull"
                }
              ],
              "decl": "const (\n\t// CoverHalf is crouch- or chest-high cover (agents crouch to hide and can fire or peek over it).\n\tCoverHalf CoverHeight = iota + 1\n\t// CoverFull is full-height cover (blocks line of sight while standing; agents peek around edges).\n\tCoverFull\n)",
              "doc": "",
              "file": "pkg/ai/cover.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ParseCoverHeight",
              "anchor": "ParseCoverHeight",
              "decl": "func ParseCoverHeight(s string) (CoverHeight, bool)",
              "doc": "ParseCoverHeight parses \"half\" or \"full\" (case-insensitive, trimmed) into a CoverHeight.\n",
              "file": "pkg/ai/cover.go",
              "line": 37
            }
          ],
          "methods": [
            {
              "name": "String",
              "anchor": "CoverHeight.String",
              "recv": "CoverHeight",
              "decl": "func (h CoverHeight) String() string",
              "doc": "String returns \"half\" for CoverHalf, \"full\" for CoverFull, or \"none\" for an unset value.\n",
              "file": "pkg/ai/cover.go",
              "line": 25
            }
          ]
        },
        {
          "name": "CoverHeightTest",
          "anchor": "CoverHeightTest",
          "decl": "type CoverHeightTest struct {\n\t// MinHeight filters out candidates with Height < MinHeight when Purpose allows filtering (0 disables).\n\tMinHeight CoverHeight\n\t// Prefer selects which CoverHeight earns a score of 1 (defaults to CoverFull when 0).\n\tPrefer CoverHeight\n\t// Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore).\n\tPurpose TestPurpose\n\t// Weight scales the score contribution (1 when candidate.Height == Prefer, 0 otherwise).\n\tWeight float64\n}",
          "doc": "CoverHeightTest filters and/or scores candidates based on their CoverHeight.\n",
          "file": "pkg/ai/tactical.go",
          "line": 979,
          "members": [
            {
              "name": "MinHeight",
              "anchor": "CoverHeightTest.MinHeight",
              "kind": "field",
              "doc": "MinHeight filters out candidates with Height < MinHeight when Purpose allows filtering (0 disables)."
            },
            {
              "name": "Prefer",
              "anchor": "CoverHeightTest.Prefer",
              "kind": "field",
              "doc": "Prefer selects which CoverHeight earns a score of 1 (defaults to CoverFull when 0)."
            },
            {
              "name": "Purpose",
              "anchor": "CoverHeightTest.Purpose",
              "kind": "field",
              "doc": "Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore)."
            },
            {
              "name": "Weight",
              "anchor": "CoverHeightTest.Weight",
              "kind": "field",
              "doc": "Weight scales the score contribution (1 when candidate.Height == Prefer, 0 otherwise)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CoverPoint",
          "anchor": "CoverPoint",
          "decl": "type CoverPoint struct {\n\t// ID uniquely identifies this cover point for reservations and deterministic tie-breaking.\n\t// Generators assign sequential non-zero IDs starting from StartID (default 1).\n\tID uint64\n\t// Pos is the world-space standing position where an agent takes cover (offset into open space).\n\tPos math2d.Vec2\n\t// Facing is the unit vector pointing from Pos toward the obstacle that blocks incoming fire.\n\tFacing math2d.Vec2\n\t// Height indicates whether this cover is CoverHalf or CoverFull.\n\tHeight CoverHeight\n\t// Elevation is the optional 3D vertical floor coordinate (0 for 2D cover points).\n\tElevation float32\n\t// Tags holds optional user-defined labels such as \"window\", \"flank\", or \"corner\".\n\tTags []string\n}",
          "doc": "CoverPoint is a tactical cover position beside an obstacle.\n\nFacing is a unit vector pointing from Pos into the cover obstacle — the incoming\nthreat direction that this cover blocks (the obstacle's outward surface normal is\nFacing.Neg()). Elevation stores the optional 3D floor height (0 in 2D worlds).\n",
          "file": "pkg/ai/cover.go",
          "line": 60,
          "members": [
            {
              "name": "ID",
              "anchor": "CoverPoint.ID",
              "kind": "field",
              "doc": "ID uniquely identifies this cover point for reservations and deterministic tie-breaking.\nGenerators assign sequential non-zero IDs starting from StartID (default 1)."
            },
            {
              "name": "Pos",
              "anchor": "CoverPoint.Pos",
              "kind": "field",
              "doc": "Pos is the world-space standing position where an agent takes cover (offset into open space)."
            },
            {
              "name": "Facing",
              "anchor": "CoverPoint.Facing",
              "kind": "field",
              "doc": "Facing is the unit vector pointing from Pos toward the obstacle that blocks incoming fire."
            },
            {
              "name": "Height",
              "anchor": "CoverPoint.Height",
              "kind": "field",
              "doc": "Height indicates whether this cover is CoverHalf or CoverFull."
            },
            {
              "name": "Elevation",
              "anchor": "CoverPoint.Elevation",
              "kind": "field",
              "doc": "Elevation is the optional 3D vertical floor coordinate (0 for 2D cover points)."
            },
            {
              "name": "Tags",
              "anchor": "CoverPoint.Tags",
              "kind": "field",
              "doc": "Tags holds optional user-defined labels such as \"window\", \"flank\", or \"corner\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "GenerateCoverFromBoxes",
              "anchor": "GenerateCoverFromBoxes",
              "decl": "func GenerateCoverFromBoxes(boxes []physics.Box, opts ColliderCoverOptions) []CoverPoint",
              "doc": "GenerateCoverFromBoxes generates deterministic cover points along the four exterior edges of\neach non-empty physics.Box, discarding any point that lands inside another box.\n",
              "file": "pkg/ai/cover.go",
              "line": 428
            },
            {
              "name": "GenerateCoverFromGrid",
              "anchor": "GenerateCoverFromGrid",
              "decl": "func GenerateCoverFromGrid(g Grid, origin math2d.Vec2, cellWidth, cellHeight float32, opts GridCoverOptions) []CoverPoint",
              "doc": "GenerateCoverFromGrid generates deterministic cover points along exposed edges of blocked cells\n(!g.Walkable) on g, offset into adjacent walkable cells.\n",
              "file": "pkg/ai/cover.go",
              "line": 235
            },
            {
              "name": "GenerateCoverFromSegments",
              "anchor": "GenerateCoverFromSegments",
              "decl": "func GenerateCoverFromSegments(segments []CoverSegment, opts ColliderCoverOptions) []CoverPoint",
              "doc": "GenerateCoverFromSegments samples deterministic cover points along straight obstacle segments.\n",
              "file": "pkg/ai/cover.go",
              "line": 401
            },
            {
              "name": "GenerateCoverFromTilemap",
              "anchor": "GenerateCoverFromTilemap",
              "decl": "func GenerateCoverFromTilemap(m *tilemap.Tilemap, opts TileCoverOptions) []CoverPoint",
              "doc": "GenerateCoverFromTilemap generates deterministic cover points along exposed solid edges of m.\n\nContiguous solid edges sharing the same CoverHeight are merged before sampling, and generated\npositions are verified to lie in an open (non-solid) in-bounds cell.\n",
              "file": "pkg/ai/cover.go",
              "line": 166
            },
            {
              "name": "GenerateCoverFromWorld",
              "anchor": "GenerateCoverFromWorld",
              "decl": "func GenerateCoverFromWorld(w *physics.World, opts ColliderCoverOptions) []CoverPoint",
              "doc": "GenerateCoverFromWorld generates deterministic cover points from all matching 2D physics bodies\n(boxes and circular pillars) and, unless opts.SkipTiles is true, solid tiles in w.Tiles.\nCandidate positions embedded inside any matching collider or solid tile are excluded.\n",
              "file": "pkg/ai/cover.go",
              "line": 466
            }
          ],
          "methods": [
            {
              "name": "HasTag",
              "anchor": "CoverPoint.HasTag",
              "recv": "CoverPoint",
              "decl": "func (c CoverPoint) HasTag(tag string) bool",
              "doc": "HasTag reports whether c carries tag.\n",
              "file": "pkg/ai/cover.go",
              "line": 77
            }
          ]
        },
        {
          "name": "CoverPointGenerator",
          "anchor": "CoverPointGenerator",
          "decl": "type CoverPointGenerator struct {\n\t// Points is the source list of cover points.\n\tPoints []CoverPoint\n\t// Center selects the origin for MaxRadius filtering (defaults to OriginQuerier).\n\tCenter QueryOrigin\n\t// CustomCenter is used when Center is OriginCustom.\n\tCustomCenter math2d.Vec2\n\t// MaxRadius restricts candidates to those within MaxRadius of Center (<= 0 includes all points).\n\tMaxRadius float32\n\t// MinHeight restricts candidates to cover points with Height >= MinHeight (0 allows any height).\n\tMinHeight CoverHeight\n\t// RequiredTag restricts candidates to cover points carrying this tag when non-empty.\n\tRequiredTag string\n}",
          "doc": "CoverPointGenerator emits candidates from a slice of CoverPoint values.\n",
          "file": "pkg/ai/tactical.go",
          "line": 250,
          "members": [
            {
              "name": "Points",
              "anchor": "CoverPointGenerator.Points",
              "kind": "field",
              "doc": "Points is the source list of cover points."
            },
            {
              "name": "Center",
              "anchor": "CoverPointGenerator.Center",
              "kind": "field",
              "doc": "Center selects the origin for MaxRadius filtering (defaults to OriginQuerier)."
            },
            {
              "name": "CustomCenter",
              "anchor": "CoverPointGenerator.CustomCenter",
              "kind": "field",
              "doc": "CustomCenter is used when Center is OriginCustom."
            },
            {
              "name": "MaxRadius",
              "anchor": "CoverPointGenerator.MaxRadius",
              "kind": "field",
              "doc": "MaxRadius restricts candidates to those within MaxRadius of Center (<= 0 includes all points)."
            },
            {
              "name": "MinHeight",
              "anchor": "CoverPointGenerator.MinHeight",
              "kind": "field",
              "doc": "MinHeight restricts candidates to cover points with Height >= MinHeight (0 allows any height)."
            },
            {
              "name": "RequiredTag",
              "anchor": "CoverPointGenerator.RequiredTag",
              "kind": "field",
              "doc": "RequiredTag restricts candidates to cover points carrying this tag when non-empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Generate",
              "anchor": "CoverPointGenerator.Generate",
              "recv": "*CoverPointGenerator",
              "decl": "func (g *CoverPointGenerator) Generate(ctx TacticalContext, dst []TacticalCandidate) []TacticalCandidate",
              "doc": "Generate appends matching cover points to dst in deterministic slice order.\n",
              "file": "pkg/ai/tactical.go",
              "line": 266
            }
          ]
        },
        {
          "name": "CoverSegment",
          "anchor": "CoverSegment",
          "decl": "type CoverSegment struct {\n\t// A and B are the endpoints of the cover-providing obstacle edge in world coordinates.\n\tA, B math2d.Vec2\n\t// Facing is the unit vector pointing from the open side into the obstacle.\n\tFacing math2d.Vec2\n\t// Height is CoverHalf or CoverFull (defaults to ColliderCoverOptions.DefaultHeight when unset).\n\tHeight CoverHeight\n\t// Elevation is the optional 3D floor coordinate preserved on generated cover points.\n\tElevation float32\n\t// Tags are optional tags copied onto cover points generated from this segment.\n\tTags []string\n}",
          "doc": "CoverSegment describes one straight obstacle edge from which cover points can be sampled.\n",
          "file": "pkg/ai/cover.go",
          "line": 82,
          "members": [
            {
              "name": "A",
              "anchor": "CoverSegment.A",
              "kind": "field",
              "doc": "A and B are the endpoints of the cover-providing obstacle edge in world coordinates."
            },
            {
              "name": "B",
              "anchor": "CoverSegment.B",
              "kind": "field",
              "doc": "A and B are the endpoints of the cover-providing obstacle edge in world coordinates."
            },
            {
              "name": "Facing",
              "anchor": "CoverSegment.Facing",
              "kind": "field",
              "doc": "Facing is the unit vector pointing from the open side into the obstacle."
            },
            {
              "name": "Height",
              "anchor": "CoverSegment.Height",
              "kind": "field",
              "doc": "Height is CoverHalf or CoverFull (defaults to ColliderCoverOptions.DefaultHeight when unset)."
            },
            {
              "name": "Elevation",
              "anchor": "CoverSegment.Elevation",
              "kind": "field",
              "doc": "Elevation is the optional 3D floor coordinate preserved on generated cover points."
            },
            {
              "name": "Tags",
              "anchor": "CoverSegment.Tags",
              "kind": "field",
              "doc": "Tags are optional tags copied onto cover points generated from this segment."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CurveDef",
          "anchor": "CurveDef",
          "decl": "type CurveDef struct {\n\t// Kind selects the response curve: linear, polynomial, logistic, logit, step, or resource.\n\tKind CurveKind `yaml:\"kind\"`\n\t// Slope scales the output (or defines high - low for step).\n\tSlope float64 `yaml:\"slope,omitempty\"`\n\t// Exponent sets the power for polynomial or steepness for logistic.\n\tExponent float64 `yaml:\"exponent,omitempty\"`\n\t// ShiftX shifts the input (midpoint for logistic/logit or threshold for step).\n\tShiftX float64 `yaml:\"shiftX,omitempty\"`\n\t// ShiftY offsets the output (or defines the low output for step).\n\tShiftY float64 `yaml:\"shiftY,omitempty\"`\n\t// File names the resource curve file loaded via UtilityBindings.LoadCurve when Kind is CurveResource.\n\tFile string `yaml:\"file,omitempty\"`\n}",
          "doc": "CurveDef defines a response curve in a UtilityConfig file.\n",
          "file": "pkg/ai/utility_yaml.go",
          "line": 54,
          "members": [
            {
              "name": "Kind",
              "anchor": "CurveDef.Kind",
              "kind": "field",
              "doc": "Kind selects the response curve: linear, polynomial, logistic, logit, step, or resource."
            },
            {
              "name": "Slope",
              "anchor": "CurveDef.Slope",
              "kind": "field",
              "doc": "Slope scales the output (or defines high - low for step)."
            },
            {
              "name": "Exponent",
              "anchor": "CurveDef.Exponent",
              "kind": "field",
              "doc": "Exponent sets the power for polynomial or steepness for logistic."
            },
            {
              "name": "ShiftX",
              "anchor": "CurveDef.ShiftX",
              "kind": "field",
              "doc": "ShiftX shifts the input (midpoint for logistic/logit or threshold for step)."
            },
            {
              "name": "ShiftY",
              "anchor": "CurveDef.ShiftY",
              "kind": "field",
              "doc": "ShiftY offsets the output (or defines the low output for step)."
            },
            {
              "name": "File",
              "anchor": "CurveDef.File",
              "kind": "field",
              "doc": "File names the resource curve file loaded via UtilityBindings.LoadCurve when Kind is CurveResource."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CurveEvaluator",
          "anchor": "CurveEvaluator",
          "decl": "type CurveEvaluator interface {\n\tEval(t float32) float32\n}",
          "doc": "CurveEvaluator evaluates a curve at a normalized input t in [0, 1].\n\n*resource.Curve satisfies CurveEvaluator directly through its Eval(float32) float32 method, allowing stable package game/ai to use resource curves without importing experimental package game/resource.\n",
          "file": "pkg/ai/utility.go",
          "line": 32,
          "members": [
            {
              "name": "Eval",
              "anchor": "CurveEvaluator.Eval",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CurveFunc",
          "anchor": "CurveFunc",
          "decl": "type CurveFunc func(t float64) float64",
          "doc": "CurveFunc adapts a Go function into a CurveEvaluator.\n",
          "file": "pkg/ai/utility.go",
          "line": 37,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Eval",
              "anchor": "CurveFunc.Eval",
              "recv": "CurveFunc",
              "decl": "func (f CurveFunc) Eval(t float32) float32",
              "doc": "Eval calls f(float64(t)) and returns the result as float32, or 0 if f is nil.\n",
              "file": "pkg/ai/utility.go",
              "line": 40
            }
          ]
        },
        {
          "name": "CurveKind",
          "anchor": "CurveKind",
          "decl": "type CurveKind string",
          "doc": "CurveKind identifies the response curve function used by a Consideration.\n",
          "file": "pkg/ai/utility.go",
          "line": 12,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CurveLinear",
                  "anchor": "CurveLinear"
                },
                {
                  "name": "CurvePolynomial",
                  "anchor": "CurvePolynomial"
                },
                {
                  "name": "CurveLogistic",
                  "anchor": "CurveLogistic"
                },
                {
                  "name": "CurveLogit",
                  "anchor": "CurveLogit"
                },
                {
                  "name": "CurveStep",
                  "anchor": "CurveStep"
                },
                {
                  "name": "CurveResource",
                  "anchor": "CurveResource"
                }
              ],
              "decl": "const (\n\t// CurveLinear computes y = Slope*(x - ShiftX) + ShiftY, clamped to [0, 1].\n\tCurveLinear CurveKind = \"linear\"\n\t// CurvePolynomial computes y = Slope*(x - ShiftX)^Exponent + ShiftY, clamped to [0, 1].\n\tCurvePolynomial CurveKind = \"polynomial\"\n\t// CurveLogistic computes y = Slope/(1 + exp(-Exponent*(x - ShiftX))) + ShiftY, clamped to [0, 1].\n\tCurveLogistic CurveKind = \"logistic\"\n\t// CurveLogit computes y = Slope*ln(u/(1 - u)) + ShiftY where u = x - ShiftX + 0.5, clamped to [0, 1].\n\tCurveLogit CurveKind = \"logit\"\n\t// CurveStep returns ShiftY when x < ShiftX and ShiftY + Slope when x >= ShiftX, clamped to [0, 1].\n\tCurveStep CurveKind = \"step\"\n\t// CurveResource delegates evaluation to a CurveEvaluator, such as a *resource.Curve loaded from a resource curve file.\n\tCurveResource CurveKind = \"resource\"\n)",
              "doc": "",
              "file": "pkg/ai/utility.go",
              "line": 14
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CustomTest",
          "anchor": "CustomTest",
          "decl": "type CustomTest struct {\n\t// Eval returns a raw numeric value and whether the candidate is valid.\n\tEval func(ctx TacticalContext, c TacticalCandidate) (value float64, ok bool)\n\t// Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore).\n\tPurpose TestPurpose\n\t// Filter optionally restricts acceptable raw values.\n\tFilter FloatRange\n\t// NormMin and NormMax optionally specify fixed normalization bounds.\n\tNormMin, NormMax float64\n\t// Weight scales the normalized [0, 1] score contribution.\n\tWeight float64\n\t// Invert flips the normalized score (1 - norm).\n\tInvert bool\n}",
          "doc": "CustomTest runs a user-supplied scoring/filtering callback on each surviving candidate.\n",
          "file": "pkg/ai/tactical.go",
          "line": 1017,
          "members": [
            {
              "name": "Eval",
              "anchor": "CustomTest.Eval",
              "kind": "field",
              "doc": "Eval returns a raw numeric value and whether the candidate is valid."
            },
            {
              "name": "Purpose",
              "anchor": "CustomTest.Purpose",
              "kind": "field",
              "doc": "Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore)."
            },
            {
              "name": "Filter",
              "anchor": "CustomTest.Filter",
              "kind": "field",
              "doc": "Filter optionally restricts acceptable raw values."
            },
            {
              "name": "NormMin",
              "anchor": "CustomTest.NormMin",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds."
            },
            {
              "name": "NormMax",
              "anchor": "CustomTest.NormMax",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds."
            },
            {
              "name": "Weight",
              "anchor": "CustomTest.Weight",
              "kind": "field",
              "doc": "Weight scales the normalized [0, 1] score contribution."
            },
            {
              "name": "Invert",
              "anchor": "CustomTest.Invert",
              "kind": "field",
              "doc": "Invert flips the normalized score (1 - norm)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DistanceTest",
          "anchor": "DistanceTest",
          "decl": "type DistanceTest struct {\n\t// To selects the reference position (defaults to OriginQuerier).\n\tTo QueryOrigin\n\t// CustomPos is used when To is OriginCustom.\n\tCustomPos math2d.Vec2\n\t// Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore).\n\tPurpose TestPurpose\n\t// Filter optionally restricts acceptable distances (e.g. Between(40, 200)).\n\tFilter FloatRange\n\t// NormMin and NormMax optionally specify fixed normalization bounds.\n\t// When NormMax <= NormMin, values normalize dynamically across surviving candidates.\n\tNormMin, NormMax float64\n\t// Weight scales the normalized [0, 1] score contribution (0 contributes no score).\n\tWeight float64\n\t// Invert flips the normalized score (1 - norm) so shorter distances score higher.\n\tInvert bool\n}",
          "doc": "DistanceTest measures Euclidean distance from each candidate to a reference point.\n",
          "file": "pkg/ai/tactical.go",
          "line": 611,
          "members": [
            {
              "name": "To",
              "anchor": "DistanceTest.To",
              "kind": "field",
              "doc": "To selects the reference position (defaults to OriginQuerier)."
            },
            {
              "name": "CustomPos",
              "anchor": "DistanceTest.CustomPos",
              "kind": "field",
              "doc": "CustomPos is used when To is OriginCustom."
            },
            {
              "name": "Purpose",
              "anchor": "DistanceTest.Purpose",
              "kind": "field",
              "doc": "Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore)."
            },
            {
              "name": "Filter",
              "anchor": "DistanceTest.Filter",
              "kind": "field",
              "doc": "Filter optionally restricts acceptable distances (e.g. Between(40, 200))."
            },
            {
              "name": "NormMin",
              "anchor": "DistanceTest.NormMin",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds.\nWhen NormMax <= NormMin, values normalize dynamically across surviving candidates."
            },
            {
              "name": "NormMax",
              "anchor": "DistanceTest.NormMax",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds.\nWhen NormMax <= NormMin, values normalize dynamically across surviving candidates."
            },
            {
              "name": "Weight",
              "anchor": "DistanceTest.Weight",
              "kind": "field",
              "doc": "Weight scales the normalized [0, 1] score contribution (0 contributes no score)."
            },
            {
              "name": "Invert",
              "anchor": "DistanceTest.Invert",
              "kind": "field",
              "doc": "Invert flips the normalized score (1 - norm) so shorter distances score higher."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EdgeCostGrid",
          "anchor": "EdgeCostGrid",
          "decl": "type EdgeCostGrid interface {\n\tGrid\n\tEdgeCost(fromCol, fromRow, toCol, toRow int) float64\n}",
          "doc": "EdgeCostGrid is a Grid whose traversal cost depends on both the source and destination cells (for example elevation steps, river crossings or zone-of-control penalties).\n\nEdgeCost returns the step cost multiplier for moving from (fromCol, fromRow) into (toCol, toRow). Negative, NaN or infinite values forbid that transition. During AStar searches, positive costs below 1 are clamped to 1 so the distance heuristic stays admissible; MovementRange accepts any non-negative finite cost.\n",
          "file": "pkg/ai/topology.go",
          "line": 123,
          "members": [
            {
              "name": "EdgeCost",
              "anchor": "EdgeCostGrid.EdgeCost",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Effects",
          "anchor": "Effects",
          "decl": "type Effects struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Effects describes the boolean and integer fact changes produced when an action completes.\n",
          "file": "pkg/ai/goap.go",
          "line": 411,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AddInt",
              "anchor": "Effects.AddInt",
              "recv": "Effects",
              "decl": "func (e Effects) AddInt(f IntFact, delta int) Effects",
              "doc": "AddInt returns a copy of e that adds delta to integer fact f. A zero delta clears any effect on f.\n",
              "file": "pkg/ai/goap.go",
              "line": 450
            },
            {
              "name": "Apply",
              "anchor": "Effects.Apply",
              "recv": "Effects",
              "decl": "func (e Effects) Apply(w WorldState) WorldState",
              "doc": "Apply returns a copy of w with all boolean and integer effects in e applied.\n",
              "file": "pkg/ai/goap.go",
              "line": 465
            },
            {
              "name": "Empty",
              "anchor": "Effects.Empty",
              "recv": "Effects",
              "decl": "func (e Effects) Empty() bool",
              "doc": "Empty reports whether e makes no changes to any fact.\n",
              "file": "pkg/ai/goap.go",
              "line": 419
            },
            {
              "name": "SetBool",
              "anchor": "Effects.SetBool",
              "recv": "Effects",
              "decl": "func (e Effects) SetBool(f BoolFact, v bool) Effects",
              "doc": "SetBool returns a copy of e that sets boolean fact f to v.\n",
              "file": "pkg/ai/goap.go",
              "line": 424
            },
            {
              "name": "SetInt",
              "anchor": "Effects.SetInt",
              "recv": "Effects",
              "decl": "func (e Effects) SetInt(f IntFact, v int) Effects",
              "doc": "SetInt returns a copy of e that sets integer fact f to v (clamped to int16 range).\n",
              "file": "pkg/ai/goap.go",
              "line": 440
            }
          ]
        },
        {
          "name": "EngagementRing",
          "anchor": "EngagementRing",
          "decl": "type EngagementRing struct {\n\t// Radius is the distance from the target center to each slot on this ring.\n\tRadius float32\n\t// Slots is the number of evenly spaced slots around this ring.\n\tSlots int\n\t// AngleOffset rotates this ring's slots in radians (0 places slot 0 along +X).\n\tAngleOffset float64\n}",
          "doc": "EngagementRing configures one concentric ring of engagement slots around a target.\n",
          "file": "pkg/ai/squad.go",
          "line": 13,
          "members": [
            {
              "name": "Radius",
              "anchor": "EngagementRing.Radius",
              "kind": "field",
              "doc": "Radius is the distance from the target center to each slot on this ring."
            },
            {
              "name": "Slots",
              "anchor": "EngagementRing.Slots",
              "kind": "field",
              "doc": "Slots is the number of evenly spaced slots around this ring."
            },
            {
              "name": "AngleOffset",
              "anchor": "EngagementRing.AngleOffset",
              "kind": "field",
              "doc": "AngleOffset rotates this ring's slots in radians (0 places slot 0 along +X)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EngagementSlot",
          "anchor": "EngagementSlot",
          "decl": "type EngagementSlot struct {\n\t// Ring is the zero-based ring index (0 is the first/innermost configured ring).\n\tRing int\n\t// Index is the zero-based slot index within Ring.\n\tIndex int\n\t// FlatIndex is the zero-based slot index across all rings.\n\tFlatIndex int\n\t// Pos is the slot's world position around the target.\n\tPos core.Point\n}",
          "doc": "EngagementSlot is a concrete world-space engagement position around a target.\n",
          "file": "pkg/ai/squad.go",
          "line": 23,
          "members": [
            {
              "name": "Ring",
              "anchor": "EngagementSlot.Ring",
              "kind": "field",
              "doc": "Ring is the zero-based ring index (0 is the first/innermost configured ring)."
            },
            {
              "name": "Index",
              "anchor": "EngagementSlot.Index",
              "kind": "field",
              "doc": "Index is the zero-based slot index within Ring."
            },
            {
              "name": "FlatIndex",
              "anchor": "EngagementSlot.FlatIndex",
              "kind": "field",
              "doc": "FlatIndex is the zero-based slot index across all rings."
            },
            {
              "name": "Pos",
              "anchor": "EngagementSlot.Pos",
              "kind": "field",
              "doc": "Pos is the slot's world position around the target."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Event",
          "anchor": "Event",
          "decl": "type Event struct {\n\t// Kind is what happened.\n\tKind EventKind\n\t// Memory is the memory as the event left it; for EventForgotten it is the memory that was dropped.\n\tMemory Memory\n}",
          "doc": "Event reports a change to one memory during the last step.\n",
          "file": "pkg/ai/perception2d.go",
          "line": 61,
          "members": [
            {
              "name": "Kind",
              "anchor": "Event.Kind",
              "kind": "field",
              "doc": "Kind is what happened."
            },
            {
              "name": "Memory",
              "anchor": "Event.Memory",
              "kind": "field",
              "doc": "Memory is the memory as the event left it; for EventForgotten it is the memory that was dropped."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EventKind",
          "anchor": "EventKind",
          "decl": "type EventKind uint8",
          "doc": "EventKind is what happened to a memory during a step.\n",
          "file": "pkg/ai/perception.go",
          "line": 98,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "EventGained",
                  "anchor": "EventGained"
                },
                {
                  "name": "EventUpdated",
                  "anchor": "EventUpdated"
                },
                {
                  "name": "EventLost",
                  "anchor": "EventLost"
                },
                {
                  "name": "EventForgotten",
                  "anchor": "EventForgotten"
                }
              ],
              "decl": "const (\n\t// EventGained reports a stimulus sensed with no memory of it before.\n\tEventGained EventKind = iota + 1\n\t// EventUpdated reports a remembered stimulus sensed again with something new: seen again after being out of sight, seen moving, or heard.\n\tEventUpdated\n\t// EventLost reports a stimulus that was in sight and no longer is. Its memory stays until it is forgotten.\n\tEventLost\n\t// EventForgotten reports a memory dropped because nothing sensed it for ForgetAfter.\n\tEventForgotten\n)",
              "doc": "",
              "file": "pkg/ai/perception.go",
              "line": 100
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "EventKind.String",
              "recv": "EventKind",
              "decl": "func (k EventKind) String() string",
              "doc": "String returns the event kind's lower-case name.\n",
              "file": "pkg/ai/perception.go",
              "line": 112
            }
          ]
        },
        {
          "name": "FactSchema",
          "anchor": "FactSchema",
          "decl": "type FactSchema struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "FactSchema maps human-readable boolean and integer fact names to compact fixed-size slots in a WorldState.\n",
          "file": "pkg/ai/goap.go",
          "line": 35,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFactSchema",
              "anchor": "NewFactSchema",
              "decl": "func NewFactSchema() *FactSchema",
              "doc": "NewFactSchema creates an empty FactSchema.\n",
              "file": "pkg/ai/goap.go",
              "line": 43
            }
          ],
          "methods": [
            {
              "name": "Bool",
              "anchor": "FactSchema.Bool",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) Bool(name string) (BoolFact, error)",
              "doc": "Bool registers (or returns the existing slot for) a named boolean fact.\n",
              "file": "pkg/ai/goap.go",
              "line": 51
            },
            {
              "name": "BoolCount",
              "anchor": "FactSchema.BoolCount",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) BoolCount() int",
              "doc": "BoolCount returns the number of registered boolean facts.\n",
              "file": "pkg/ai/goap.go",
              "line": 155
            },
            {
              "name": "BoolName",
              "anchor": "FactSchema.BoolName",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) BoolName(f BoolFact) string",
              "doc": "BoolName returns the registered name for f, or \"\" if out of range.\n",
              "file": "pkg/ai/goap.go",
              "line": 139
            },
            {
              "name": "Clone",
              "anchor": "FactSchema.Clone",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) Clone() *FactSchema",
              "doc": "Clone returns an independent copy of s.\n",
              "file": "pkg/ai/goap.go",
              "line": 171
            },
            {
              "name": "Int",
              "anchor": "FactSchema.Int",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) Int(name string) (IntFact, error)",
              "doc": "Int registers (or returns the existing slot for) a named small integer fact.\n",
              "file": "pkg/ai/goap.go",
              "line": 86
            },
            {
              "name": "IntCount",
              "anchor": "FactSchema.IntCount",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) IntCount() int",
              "doc": "IntCount returns the number of registered integer facts.\n",
              "file": "pkg/ai/goap.go",
              "line": 163
            },
            {
              "name": "IntName",
              "anchor": "FactSchema.IntName",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) IntName(f IntFact) string",
              "doc": "IntName returns the registered name for f, or \"\" if out of range.\n",
              "file": "pkg/ai/goap.go",
              "line": 147
            },
            {
              "name": "LookupBool",
              "anchor": "FactSchema.LookupBool",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) LookupBool(name string) (BoolFact, bool)",
              "doc": "LookupBool returns the slot for a registered boolean fact.\n",
              "file": "pkg/ai/goap.go",
              "line": 121
            },
            {
              "name": "LookupInt",
              "anchor": "FactSchema.LookupInt",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) LookupInt(name string) (IntFact, bool)",
              "doc": "LookupInt returns the slot for a registered integer fact.\n",
              "file": "pkg/ai/goap.go",
              "line": 130
            },
            {
              "name": "MustBool",
              "anchor": "FactSchema.MustBool",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) MustBool(name string) BoolFact",
              "doc": "MustBool registers a named boolean fact like Bool and panics on error.\n",
              "file": "pkg/ai/goap.go",
              "line": 77
            },
            {
              "name": "MustInt",
              "anchor": "FactSchema.MustInt",
              "recv": "*FactSchema",
              "decl": "func (s *FactSchema) MustInt(name string) IntFact",
              "doc": "MustInt registers a named small integer fact like Int and panics on error.\n",
              "file": "pkg/ai/goap.go",
              "line": 112
            }
          ]
        },
        {
          "name": "FalloffKind",
          "anchor": "FalloffKind",
          "decl": "type FalloffKind uint8",
          "doc": "FalloffKind selects how a stamped InfluenceSource attenuates with Euclidean cell distance from its center cell.\n",
          "file": "pkg/ai/influence.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FalloffLinear",
                  "anchor": "FalloffLinear"
                },
                {
                  "name": "FalloffExponential",
                  "anchor": "FalloffExponential"
                },
                {
                  "name": "FalloffCustom",
                  "anchor": "FalloffCustom"
                }
              ],
              "decl": "const (\n\t// FalloffLinear decreases linearly from 1 at distance 0 to 0 at Radius: max(0, 1 - dist/Radius).\n\tFalloffLinear FalloffKind = iota\n\t// FalloffExponential decreases as exp(-FalloffRate * dist) for dist <= Radius (FalloffRate defaults to 1 when <= 0).\n\tFalloffExponential\n\t// FalloffCustom delegates to InfluenceSource.CustomFalloff(dist, radius).\n\tFalloffCustom\n)",
              "doc": "",
              "file": "pkg/ai/influence.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FloatRange",
          "anchor": "FloatRange",
          "decl": "type FloatRange struct {\n\tMin    float64\n\tMax    float64\n\tHasMin bool\n\tHasMax bool\n}",
          "doc": "FloatRange represents an optional inclusive [Min, Max] filter interval for continuous tactical tests.\n",
          "file": "pkg/ai/tactical.go",
          "line": 40,
          "members": [
            {
              "name": "Min",
              "anchor": "FloatRange.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "FloatRange.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasMin",
              "anchor": "FloatRange.HasMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasMax",
              "anchor": "FloatRange.HasMax",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "AtLeast",
              "anchor": "AtLeast",
              "decl": "func AtLeast(minVal float64) FloatRange",
              "doc": "AtLeast returns a FloatRange requiring values >= minVal.\n",
              "file": "pkg/ai/tactical.go",
              "line": 48
            },
            {
              "name": "AtMost",
              "anchor": "AtMost",
              "decl": "func AtMost(maxVal float64) FloatRange",
              "doc": "AtMost returns a FloatRange requiring values <= maxVal.\n",
              "file": "pkg/ai/tactical.go",
              "line": 53
            },
            {
              "name": "Between",
              "anchor": "Between",
              "decl": "func Between(minVal, maxVal float64) FloatRange",
              "doc": "Between returns a FloatRange requiring values in [minVal, maxVal].\n",
              "file": "pkg/ai/tactical.go",
              "line": 58
            }
          ],
          "methods": [
            {
              "name": "Contains",
              "anchor": "FloatRange.Contains",
              "recv": "FloatRange",
              "decl": "func (r FloatRange) Contains(v float64) bool",
              "doc": "Contains reports whether v satisfies the configured bounds. NaN always returns false.\n",
              "file": "pkg/ai/tactical.go",
              "line": 63
            }
          ]
        },
        {
          "name": "GOAPAction",
          "anchor": "GOAPAction",
          "decl": "type GOAPAction struct {\n\t// Name uniquely identifies the action within a planner.\n\tName string\n\t// Preconditions must hold before the action can execute.\n\tPreconditions Conditions\n\t// Effects are applied to the world state when the action completes.\n\tEffects Effects\n\t// Cost is the positive planning cost of this action; 0 defaults to 1.\n\tCost float64\n\t// Check is an optional procedural precondition evaluated against the current WorldState.\n\t// Returning false excludes the action from the current plan and invalidates an active plan step.\n\tCheck func(WorldState) bool\n}",
          "doc": "GOAPAction is one planning operator in a GOAPPlanner.\n",
          "file": "pkg/ai/goap.go",
          "line": 486,
          "members": [
            {
              "name": "Name",
              "anchor": "GOAPAction.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the action within a planner."
            },
            {
              "name": "Preconditions",
              "anchor": "GOAPAction.Preconditions",
              "kind": "field",
              "doc": "Preconditions must hold before the action can execute."
            },
            {
              "name": "Effects",
              "anchor": "GOAPAction.Effects",
              "kind": "field",
              "doc": "Effects are applied to the world state when the action completes."
            },
            {
              "name": "Cost",
              "anchor": "GOAPAction.Cost",
              "kind": "field",
              "doc": "Cost is the positive planning cost of this action; 0 defaults to 1."
            },
            {
              "name": "Check",
              "anchor": "GOAPAction.Check",
              "kind": "field",
              "doc": "Check is an optional procedural precondition evaluated against the current WorldState.\nReturning false excludes the action from the current plan and invalidates an active plan step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPActionDef",
          "anchor": "GOAPActionDef",
          "decl": "type GOAPActionDef struct {\n\t// Name uniquely identifies the action.\n\tName string `yaml:\"name\"`\n\t// Cost is the positive planning cost of executing this action; 0 defaults to 1.\n\tCost float64 `yaml:\"cost,omitempty\"`\n\t// Check optionally names a procedural precondition callback bound via GOAPBindings.Checks.\n\tCheck string `yaml:\"check,omitempty\"`\n\t// Preconditions are the boolean and integer conditions required before the action can execute.\n\tPreconditions GOAPConditionsDef `yaml:\"preconditions,omitempty\"`\n\t// Effects are the boolean and integer changes produced when the action completes.\n\tEffects GOAPEffectsDef `yaml:\"effects,omitempty\"`\n}",
          "doc": "GOAPActionDef defines one GOAP action in a GOAPConfig file.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 63,
          "members": [
            {
              "name": "Name",
              "anchor": "GOAPActionDef.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the action."
            },
            {
              "name": "Cost",
              "anchor": "GOAPActionDef.Cost",
              "kind": "field",
              "doc": "Cost is the positive planning cost of executing this action; 0 defaults to 1."
            },
            {
              "name": "Check",
              "anchor": "GOAPActionDef.Check",
              "kind": "field",
              "doc": "Check optionally names a procedural precondition callback bound via GOAPBindings.Checks."
            },
            {
              "name": "Preconditions",
              "anchor": "GOAPActionDef.Preconditions",
              "kind": "field",
              "doc": "Preconditions are the boolean and integer conditions required before the action can execute."
            },
            {
              "name": "Effects",
              "anchor": "GOAPActionDef.Effects",
              "kind": "field",
              "doc": "Effects are the boolean and integer changes produced when the action completes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPBindings",
          "anchor": "GOAPBindings",
          "decl": "type GOAPBindings struct {\n\t// Checks maps each GOAPActionDef.Check name to a procedural precondition callback.\n\tChecks map[string]func(WorldState) bool\n}",
          "doc": "GOAPBindings provides the optional procedural precondition callbacks referenced by GOAPActionDef.Check.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 385,
          "members": [
            {
              "name": "Checks",
              "anchor": "GOAPBindings.Checks",
              "kind": "field",
              "doc": "Checks maps each GOAPActionDef.Check name to a procedural precondition callback."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPBoolFactDef",
          "anchor": "GOAPBoolFactDef",
          "decl": "type GOAPBoolFactDef struct {\n\tFact  string `yaml:\"fact\"`\n\tValue bool   `yaml:\"value\"`\n}",
          "doc": "GOAPBoolFactDef binds a named boolean fact to a true/false value.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 99,
          "members": [
            {
              "name": "Fact",
              "anchor": "GOAPBoolFactDef.Fact",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "GOAPBoolFactDef.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPCompareOp",
          "anchor": "GOAPCompareOp",
          "decl": "type GOAPCompareOp string",
          "doc": "GOAPCompareOp identifies a comparison operator on an integer fact in a GOAP YAML file.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 17,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GOAPOpEq",
                  "anchor": "GOAPOpEq"
                },
                {
                  "name": "GOAPOpGte",
                  "anchor": "GOAPOpGte"
                },
                {
                  "name": "GOAPOpLte",
                  "anchor": "GOAPOpLte"
                },
                {
                  "name": "GOAPOpGt",
                  "anchor": "GOAPOpGt"
                },
                {
                  "name": "GOAPOpLt",
                  "anchor": "GOAPOpLt"
                }
              ],
              "decl": "const (\n\t// GOAPOpEq requires fact == value.\n\tGOAPOpEq GOAPCompareOp = \"eq\"\n\t// GOAPOpGte requires fact >= value.\n\tGOAPOpGte GOAPCompareOp = \"gte\"\n\t// GOAPOpLte requires fact <= value.\n\tGOAPOpLte GOAPCompareOp = \"lte\"\n\t// GOAPOpGt requires fact > value.\n\tGOAPOpGt GOAPCompareOp = \"gt\"\n\t// GOAPOpLt requires fact < value.\n\tGOAPOpLt GOAPCompareOp = \"lt\"\n)",
              "doc": "",
              "file": "pkg/ai/goap_yaml.go",
              "line": 19
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPConditionsDef",
          "anchor": "GOAPConditionsDef",
          "decl": "type GOAPConditionsDef struct {\n\tBools []GOAPBoolFactDef     `yaml:\"bools,omitempty\"`\n\tInts  []GOAPIntConditionDef `yaml:\"ints,omitempty\"`\n}",
          "doc": "GOAPConditionsDef defines boolean and integer requirements in YAML.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 87,
          "members": [
            {
              "name": "Bools",
              "anchor": "GOAPConditionsDef.Bools",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ints",
              "anchor": "GOAPConditionsDef.Ints",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPConfig",
          "anchor": "GOAPConfig",
          "decl": "type GOAPConfig struct {\n\t// Version is the schema version; it must equal GOAPVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// NodeBudget overrides DefaultGOAPNodeBudget when greater than 0.\n\tNodeBudget int `yaml:\"nodeBudget,omitempty\"`\n\t// Facts declares the named boolean and small integer facts referenced by actions and goals.\n\tFacts GOAPFactsDef `yaml:\"facts\"`\n\t// Actions are the planning operators in fixed declaration order (used for deterministic tie-breaking).\n\tActions []GOAPActionDef `yaml:\"actions\"`\n\t// Goals are optional prioritized target conditions compiled by BuildGOAP.\n\tGoals []GOAPGoalDef `yaml:\"goals,omitempty\"`\n}",
          "doc": "GOAPConfig is a versioned YAML definition of a GOAP fact schema, action set, and optional goals.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 43,
          "members": [
            {
              "name": "Version",
              "anchor": "GOAPConfig.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal GOAPVersion (1)."
            },
            {
              "name": "NodeBudget",
              "anchor": "GOAPConfig.NodeBudget",
              "kind": "field",
              "doc": "NodeBudget overrides DefaultGOAPNodeBudget when greater than 0."
            },
            {
              "name": "Facts",
              "anchor": "GOAPConfig.Facts",
              "kind": "field",
              "doc": "Facts declares the named boolean and small integer facts referenced by actions and goals."
            },
            {
              "name": "Actions",
              "anchor": "GOAPConfig.Actions",
              "kind": "field",
              "doc": "Actions are the planning operators in fixed declaration order (used for deterministic tie-breaking)."
            },
            {
              "name": "Goals",
              "anchor": "GOAPConfig.Goals",
              "kind": "field",
              "doc": "Goals are optional prioritized target conditions compiled by BuildGOAP."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseGOAP",
              "anchor": "ParseGOAP",
              "decl": "func ParseGOAP(data []byte) (*GOAPConfig, error)",
              "doc": "ParseGOAP decodes and validates a GOAP YAML document.\nUnknown fields, missing or unsupported versions, duplicate keys, unknown fact references, and trailing YAML documents are refused.\n",
              "file": "pkg/ai/goap_yaml.go",
              "line": 120
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "GOAPConfig.Validate",
              "recv": "*GOAPConfig",
              "decl": "func (cfg *GOAPConfig) Validate() error",
              "doc": "Validate checks that cfg has version GOAPVersion, valid facts, unique actions and goals, valid operators/ranges, and no undefined fact references.\n",
              "file": "pkg/ai/goap_yaml.go",
              "line": 201
            }
          ]
        },
        {
          "name": "GOAPEffectsDef",
          "anchor": "GOAPEffectsDef",
          "decl": "type GOAPEffectsDef struct {\n\tBools []GOAPBoolFactDef  `yaml:\"bools,omitempty\"`\n\tInts  []GOAPIntEffectDef `yaml:\"ints,omitempty\"`\n}",
          "doc": "GOAPEffectsDef defines boolean and integer effects in YAML.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 93,
          "members": [
            {
              "name": "Bools",
              "anchor": "GOAPEffectsDef.Bools",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ints",
              "anchor": "GOAPEffectsDef.Ints",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPFactsDef",
          "anchor": "GOAPFactsDef",
          "decl": "type GOAPFactsDef struct {\n\tBools []string `yaml:\"bools,omitempty\"`\n\tInts  []string `yaml:\"ints,omitempty\"`\n}",
          "doc": "GOAPFactsDef declares the named boolean and integer facts in a GOAPConfig file.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 57,
          "members": [
            {
              "name": "Bools",
              "anchor": "GOAPFactsDef.Bools",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ints",
              "anchor": "GOAPFactsDef.Ints",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPGoal",
          "anchor": "GOAPGoal",
          "decl": "type GOAPGoal struct {\n\t// Name identifies the goal.\n\tName string\n\t// Priority ranks competing goals; higher priority is attempted first, with ties broken in declaration order.\n\tPriority float64\n\t// Target is the world condition the planner tries to satisfy.\n\tTarget Conditions\n}",
          "doc": "GOAPGoal is a desired world condition with a planning priority.\n",
          "file": "pkg/ai/goap.go",
          "line": 501,
          "members": [
            {
              "name": "Name",
              "anchor": "GOAPGoal.Name",
              "kind": "field",
              "doc": "Name identifies the goal."
            },
            {
              "name": "Priority",
              "anchor": "GOAPGoal.Priority",
              "kind": "field",
              "doc": "Priority ranks competing goals; higher priority is attempted first, with ties broken in declaration order."
            },
            {
              "name": "Target",
              "anchor": "GOAPGoal.Target",
              "kind": "field",
              "doc": "Target is the world condition the planner tries to satisfy."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPGoalDef",
          "anchor": "GOAPGoalDef",
          "decl": "type GOAPGoalDef struct {\n\t// Name uniquely identifies the goal.\n\tName string `yaml:\"name\"`\n\t// Priority ranks competing goals (higher is attempted first; ties break in declaration order).\n\tPriority float64 `yaml:\"priority,omitempty\"`\n\t// Target specifies the desired world state for this goal.\n\tTarget GOAPConditionsDef `yaml:\"target\"`\n}",
          "doc": "GOAPGoalDef defines one prioritized goal in a GOAPConfig file.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 77,
          "members": [
            {
              "name": "Name",
              "anchor": "GOAPGoalDef.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the goal."
            },
            {
              "name": "Priority",
              "anchor": "GOAPGoalDef.Priority",
              "kind": "field",
              "doc": "Priority ranks competing goals (higher is attempted first; ties break in declaration order)."
            },
            {
              "name": "Target",
              "anchor": "GOAPGoalDef.Target",
              "kind": "field",
              "doc": "Target specifies the desired world state for this goal."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPIntConditionDef",
          "anchor": "GOAPIntConditionDef",
          "decl": "type GOAPIntConditionDef struct {\n\tFact  string        `yaml:\"fact\"`\n\tOp    GOAPCompareOp `yaml:\"op\"`\n\tValue int           `yaml:\"value\"`\n}",
          "doc": "GOAPIntConditionDef compares a named integer fact against Value using Op.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 105,
          "members": [
            {
              "name": "Fact",
              "anchor": "GOAPIntConditionDef.Fact",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Op",
              "anchor": "GOAPIntConditionDef.Op",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "GOAPIntConditionDef.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPIntEffectDef",
          "anchor": "GOAPIntEffectDef",
          "decl": "type GOAPIntEffectDef struct {\n\tFact  string          `yaml:\"fact\"`\n\tOp    GOAPIntEffectOp `yaml:\"op\"`\n\tValue int             `yaml:\"value\"`\n}",
          "doc": "GOAPIntEffectDef modifies a named integer fact with Op (set or add) and Value.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 112,
          "members": [
            {
              "name": "Fact",
              "anchor": "GOAPIntEffectDef.Fact",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Op",
              "anchor": "GOAPIntEffectDef.Op",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "GOAPIntEffectDef.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPIntEffectOp",
          "anchor": "GOAPIntEffectOp",
          "decl": "type GOAPIntEffectOp string",
          "doc": "GOAPIntEffectOp identifies an integer effect operation in a GOAP YAML file.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 33,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GOAPEffectSet",
                  "anchor": "GOAPEffectSet"
                },
                {
                  "name": "GOAPEffectAdd",
                  "anchor": "GOAPEffectAdd"
                }
              ],
              "decl": "const (\n\t// GOAPEffectSet sets an integer fact to a constant value.\n\tGOAPEffectSet GOAPIntEffectOp = \"set\"\n\t// GOAPEffectAdd adds a signed delta to an integer fact.\n\tGOAPEffectAdd GOAPIntEffectOp = \"add\"\n)",
              "doc": "",
              "file": "pkg/ai/goap_yaml.go",
              "line": 35
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GOAPPlanner",
          "anchor": "GOAPPlanner",
          "decl": "type GOAPPlanner struct {\n\t// NodeBudget caps how many search nodes regressive A* may expand per Plan call.\n\t// Zero or negative uses DefaultGOAPNodeBudget (1024).\n\tNodeBudget int\n\t// contains filtered or unexported fields\n}",
          "doc": "GOAPPlanner performs deterministic regressive A* search from a goal condition back to the current WorldState.\n\nTies break in a fixed order (lowest f, lowest h, fewest steps, lowest discovery index in fixed action declaration order).\nInternal search buffers are reused across calls, making repeated PlanInto calls zero-allocation after warm-up.\nA GOAPPlanner is not safe for concurrent use by multiple goroutines.\n",
          "file": "pkg/ai/goap.go",
          "line": 558,
          "members": [
            {
              "name": "NodeBudget",
              "anchor": "GOAPPlanner.NodeBudget",
              "kind": "field",
              "doc": "NodeBudget caps how many search nodes regressive A* may expand per Plan call.\nZero or negative uses DefaultGOAPNodeBudget (1024)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGOAPPlanner",
              "anchor": "NewGOAPPlanner",
              "decl": "func NewGOAPPlanner(actions ...GOAPAction) (*GOAPPlanner, error)",
              "doc": "NewGOAPPlanner validates actions and constructs a GOAPPlanner with defensive copies of actions.\nEach action must have a unique non-empty Name and a finite non-negative Cost (0 defaults to 1).\n",
              "file": "pkg/ai/goap.go",
              "line": 581
            }
          ],
          "methods": [
            {
              "name": "Action",
              "anchor": "GOAPPlanner.Action",
              "recv": "*GOAPPlanner",
              "decl": "func (p *GOAPPlanner) Action(index int) GOAPAction",
              "doc": "Action returns a copy of the action at index, or the zero GOAPAction if index is out of bounds.\n",
              "file": "pkg/ai/goap.go",
              "line": 638
            },
            {
              "name": "ActionCount",
              "anchor": "GOAPPlanner.ActionCount",
              "recv": "*GOAPPlanner",
              "decl": "func (p *GOAPPlanner) ActionCount() int",
              "doc": "ActionCount returns the number of actions configured on p.\n",
              "file": "pkg/ai/goap.go",
              "line": 630
            },
            {
              "name": "ActionIndex",
              "anchor": "GOAPPlanner.ActionIndex",
              "recv": "*GOAPPlanner",
              "decl": "func (p *GOAPPlanner) ActionIndex(name string) int",
              "doc": "ActionIndex returns the index of the action named name, or -1 if none matches.\n",
              "file": "pkg/ai/goap.go",
              "line": 654
            },
            {
              "name": "ActionName",
              "anchor": "GOAPPlanner.ActionName",
              "recv": "*GOAPPlanner",
              "decl": "func (p *GOAPPlanner) ActionName(index int) string",
              "doc": "ActionName returns the Name of the action at index, or \"\" if index is out of bounds.\n",
              "file": "pkg/ai/goap.go",
              "line": 646
            },
            {
              "name": "Plan",
              "anchor": "GOAPPlanner.Plan",
              "recv": "*GOAPPlanner",
              "decl": "func (p *GOAPPlanner) Plan(start WorldState, goal GOAPGoal) (plan []int, cost float64, err error)",
              "doc": "Plan finds the minimum-cost sequence of action indices that reaches goal from start.\nIf start already satisfies goal.Target, Plan returns an empty slice, cost 0, and nil error.\n",
              "file": "pkg/ai/goap.go",
              "line": 668
            },
            {
              "name": "PlanBestGoal",
              "anchor": "GOAPPlanner.PlanBestGoal",
              "recv": "*GOAPPlanner",
              "decl": "func (p *GOAPPlanner) PlanBestGoal(start WorldState, goals []GOAPGoal) (goalIndex int, plan []int, cost float64, err error)",
              "doc": "PlanBestGoal tries unsatisfied goals in descending Priority order (ties broken in declaration order)\nand returns the first achievable goal's index, action sequence, and cost.\nIf every goal is already satisfied by start, it returns (-1, nil, 0, nil).\n",
              "file": "pkg/ai/goap.go",
              "line": 693
            },
            {
              "name": "PlanBestGoalInto",
              "anchor": "GOAPPlanner.PlanBestGoalInto",
              "recv": "*GOAPPlanner",
              "decl": "func (p *GOAPPlanner) PlanBestGoalInto(dst []int, start WorldState, goals []GOAPGoal) (goalIndex int, plan []int, cost float64, err error)",
              "doc": "PlanBestGoalInto behaves like PlanBestGoal while writing the resulting action indices into dst[:0].\n",
              "file": "pkg/ai/goap.go",
              "line": 698
            },
            {
              "name": "PlanInto",
              "anchor": "GOAPPlanner.PlanInto",
              "recv": "*GOAPPlanner",
              "decl": "func (p *GOAPPlanner) PlanInto(dst []int, start WorldState, goal GOAPGoal) (plan []int, cost float64, err error)",
              "doc": "PlanInto behaves like Plan but writes the resulting action indices into dst[:0], avoiding allocations when dst has enough capacity.\n",
              "file": "pkg/ai/goap.go",
              "line": 673
            },
            {
              "name": "PlanNames",
              "anchor": "GOAPPlanner.PlanNames",
              "recv": "*GOAPPlanner",
              "decl": "func (p *GOAPPlanner) PlanNames(start WorldState, goal GOAPGoal) (names []string, cost float64, err error)",
              "doc": "PlanNames is a convenience wrapper around Plan that returns the planned action names in execution order.\n",
              "file": "pkg/ai/goap.go",
              "line": 678
            }
          ]
        },
        {
          "name": "GOAPSet",
          "anchor": "GOAPSet",
          "decl": "type GOAPSet struct {\n\tSchema  *FactSchema\n\tPlanner *GOAPPlanner\n\tGoals   []GOAPGoal\n}",
          "doc": "GOAPSet holds the compiled FactSchema, GOAPPlanner, and prioritized GOAPGoals produced by BuildGOAP.\n",
          "file": "pkg/ai/goap_yaml.go",
          "line": 391,
          "members": [
            {
              "name": "Schema",
              "anchor": "GOAPSet.Schema",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Planner",
              "anchor": "GOAPSet.Planner",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Goals",
              "anchor": "GOAPSet.Goals",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildGOAP",
              "anchor": "BuildGOAP",
              "decl": "func BuildGOAP(cfg *GOAPConfig, bind GOAPBindings) (*GOAPSet, error)",
              "doc": "BuildGOAP validates cfg and compiles its declared facts, actions, procedural checks, and goals into a GOAPSet.\n",
              "file": "pkg/ai/goap_yaml.go",
              "line": 398
            }
          ],
          "methods": []
        },
        {
          "name": "Graph",
          "anchor": "Graph",
          "decl": "type Graph[N comparable] interface {\n\tAppendNeighbors(dst []GraphEdge[N], node N) []GraphEdge[N]\n}",
          "doc": "Graph defines weighted directed adjacency over nodes of comparable type N.\n\nAppendNeighbors appends all outgoing edges from node onto dst and returns the extended slice.\nReusing dst lets GraphSearch expand nodes without heap allocations on repeated searches.\nEdges with negative, NaN, or infinite Cost are ignored.\n",
          "file": "pkg/ai/graph.go",
          "line": 18,
          "members": [
            {
              "name": "AppendNeighbors",
              "anchor": "Graph.AppendNeighbors",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GraphEdge",
          "anchor": "GraphEdge",
          "decl": "type GraphEdge[N comparable] struct {\n\tTo   N\n\tCost float64\n}",
          "doc": "GraphEdge is a directed outgoing edge from a graph node with a finite non-negative step cost.\n",
          "file": "pkg/ai/graph.go",
          "line": 8,
          "members": [
            {
              "name": "To",
              "anchor": "GraphEdge.To",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cost",
              "anchor": "GraphEdge.Cost",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GraphFunc",
          "anchor": "GraphFunc",
          "decl": "type GraphFunc[N comparable] struct {\n\t// Neighbors appends outgoing edges from node onto dst.\n\tNeighbors func(dst []GraphEdge[N], node N) []GraphEdge[N]\n\t// Estimate optionally returns an admissible heuristic from -> goal (nil uses 0 / Dijkstra).\n\tEstimate func(from, goal N) float64\n\t// Valid optionally checks whether a start or goal node is valid (nil accepts all nodes).\n\tValid func(node N) bool\n\t// Less optionally defines a strict total order on nodes for tie-breaking.\n\tLess func(a, b N) bool\n}",
          "doc": "GraphFunc adapts callback functions to HeuristicGraph[N].\n",
          "file": "pkg/ai/graph.go",
          "line": 42,
          "members": [
            {
              "name": "Neighbors",
              "anchor": "GraphFunc.Neighbors",
              "kind": "field",
              "doc": "Neighbors appends outgoing edges from node onto dst."
            },
            {
              "name": "Estimate",
              "anchor": "GraphFunc.Estimate",
              "kind": "field",
              "doc": "Estimate optionally returns an admissible heuristic from -> goal (nil uses 0 / Dijkstra)."
            },
            {
              "name": "Valid",
              "anchor": "GraphFunc.Valid",
              "kind": "field",
              "doc": "Valid optionally checks whether a start or goal node is valid (nil accepts all nodes)."
            },
            {
              "name": "Less",
              "anchor": "GraphFunc.Less",
              "kind": "field",
              "doc": "Less optionally defines a strict total order on nodes for tie-breaking."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AppendNeighbors",
              "anchor": "GraphFunc.AppendNeighbors",
              "recv": "GraphFunc[N]",
              "decl": "func (f GraphFunc[N]) AppendNeighbors(dst []GraphEdge[N], node N) []GraphEdge[N]",
              "doc": "AppendNeighbors delegates to Neighbors when non-nil.\n",
              "file": "pkg/ai/graph.go",
              "line": 54
            },
            {
              "name": "Heuristic",
              "anchor": "GraphFunc.Heuristic",
              "recv": "GraphFunc[N]",
              "decl": "func (f GraphFunc[N]) Heuristic(from, goal N) float64",
              "doc": "Heuristic delegates to Estimate when non-nil, returning 0 otherwise.\n",
              "file": "pkg/ai/graph.go",
              "line": 62
            },
            {
              "name": "NodeLess",
              "anchor": "GraphFunc.NodeLess",
              "recv": "GraphFunc[N]",
              "decl": "func (f GraphFunc[N]) NodeLess(a, b N) bool",
              "doc": "NodeLess delegates to Less when non-nil.\n",
              "file": "pkg/ai/graph.go",
              "line": 78
            },
            {
              "name": "ValidNode",
              "anchor": "GraphFunc.ValidNode",
              "recv": "GraphFunc[N]",
              "decl": "func (f GraphFunc[N]) ValidNode(node N) bool",
              "doc": "ValidNode delegates to Valid when non-nil, returning true otherwise.\n",
              "file": "pkg/ai/graph.go",
              "line": 70
            }
          ]
        },
        {
          "name": "GraphRange",
          "anchor": "GraphRange",
          "decl": "type GraphRange[N comparable] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GraphRange holds the shortest-path tree produced by GraphSearch.Range or GraphSearch.RangeInto:\nevery node reachable from Start within Budget, its minimum cost, and the parent links needed\nto reconstruct the optimal path to any reached node.\n",
          "file": "pkg/ai/graph.go",
          "line": 100,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Budget",
              "anchor": "GraphRange.Budget",
              "recv": "*GraphRange[N]",
              "decl": "func (r *GraphRange[N]) Budget() float64",
              "doc": "Budget returns the maximum path cost budget used to compute this range.\n",
              "file": "pkg/ai/graph.go",
              "line": 119
            },
            {
              "name": "Contains",
              "anchor": "GraphRange.Contains",
              "recv": "*GraphRange[N]",
              "decl": "func (r *GraphRange[N]) Contains(node N) bool",
              "doc": "Contains reports whether node is reachable within the query's budget.\n",
              "file": "pkg/ai/graph.go",
              "line": 145
            },
            {
              "name": "Cost",
              "anchor": "GraphRange.Cost",
              "recv": "*GraphRange[N]",
              "decl": "func (r *GraphRange[N]) Cost(node N) (float64, bool)",
              "doc": "Cost returns the minimum path cost from Start to node, or (0, false) if node is not in the range.\n",
              "file": "pkg/ai/graph.go",
              "line": 154
            },
            {
              "name": "Len",
              "anchor": "GraphRange.Len",
              "recv": "*GraphRange[N]",
              "decl": "func (r *GraphRange[N]) Len() int",
              "doc": "Len returns the number of reachable nodes in the range.\n",
              "file": "pkg/ai/graph.go",
              "line": 127
            },
            {
              "name": "Nodes",
              "anchor": "GraphRange.Nodes",
              "recv": "*GraphRange[N]",
              "decl": "func (r *GraphRange[N]) Nodes() []ReachableNode[N]",
              "doc": "Nodes returns all reachable nodes and their minimum costs in deterministic order\n(ascending Cost, then deterministic tie-breaking order).\nThe returned slice aliases r's internal storage and is overwritten by a subsequent RangeInto call on r.\n",
              "file": "pkg/ai/graph.go",
              "line": 137
            },
            {
              "name": "Parent",
              "anchor": "GraphRange.Parent",
              "recv": "*GraphRange[N]",
              "decl": "func (r *GraphRange[N]) Parent(node N) (N, bool)",
              "doc": "Parent returns the predecessor of node on its shortest path from Start.\nIt returns (zero, false) for Start itself or for nodes outside the range.\n",
              "file": "pkg/ai/graph.go",
              "line": 167
            },
            {
              "name": "Path",
              "anchor": "GraphRange.Path",
              "recv": "*GraphRange[N]",
              "decl": "func (r *GraphRange[N]) Path(node N) ([]N, bool)",
              "doc": "Path returns the shortest path from Start to node inclusive, or (nil, false) if node is not reachable.\n",
              "file": "pkg/ai/graph.go",
              "line": 186
            },
            {
              "name": "PathInto",
              "anchor": "GraphRange.PathInto",
              "recv": "*GraphRange[N]",
              "decl": "func (r *GraphRange[N]) PathInto(dst []N, node N) ([]N, bool)",
              "doc": "PathInto writes the shortest path from Start to node inclusive into dst[:0],\nallocating zero times when dst has enough capacity.\n",
              "file": "pkg/ai/graph.go",
              "line": 192
            },
            {
              "name": "Start",
              "anchor": "GraphRange.Start",
              "recv": "*GraphRange[N]",
              "decl": "func (r *GraphRange[N]) Start() (N, bool)",
              "doc": "Start returns the origin node of the range query and whether the range is non-empty.\n",
              "file": "pkg/ai/graph.go",
              "line": 110
            }
          ]
        },
        {
          "name": "GraphSearch",
          "anchor": "GraphSearch",
          "decl": "type GraphSearch[N comparable] struct {\n\t// MaxExpansions caps the number of node expansions per search. Zero or negative means unlimited.\n\tMaxExpansions int\n\t// Less optionally defines a strict total order on N for tie-breaking equal (f, h) nodes.\n\t// When nil, GraphSearch checks whether the graph implements NodeOrder[N] and falls back\n\t// to deterministic discovery order.\n\tLess func(a, b N) bool\n\t// contains filtered or unexported fields\n}",
          "doc": "GraphSearch performs deterministic A*, Dijkstra, and budgeted range searches over any Graph[N],\nreusing its internal search buffers across calls.\n\nTie-breaking matches AStar: lowest f, then lowest h, then Less (or the graph's NodeOrder[N]),\nand finally deterministic node discovery order. A GraphSearch is not safe for concurrent use.\n",
          "file": "pkg/ai/graph.go",
          "line": 234,
          "members": [
            {
              "name": "MaxExpansions",
              "anchor": "GraphSearch.MaxExpansions",
              "kind": "field",
              "doc": "MaxExpansions caps the number of node expansions per search. Zero or negative means unlimited."
            },
            {
              "name": "Less",
              "anchor": "GraphSearch.Less",
              "kind": "field",
              "doc": "Less optionally defines a strict total order on N for tie-breaking equal (f, h) nodes.\nWhen nil, GraphSearch checks whether the graph implements NodeOrder[N] and falls back\nto deterministic discovery order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGraphSearch",
              "anchor": "NewGraphSearch",
              "decl": "func NewGraphSearch[N comparable]() *GraphSearch[N]",
              "doc": "NewGraphSearch returns a new reusable GraphSearch for nodes of type N.\n",
              "file": "pkg/ai/graph.go",
              "line": 250
            }
          ],
          "methods": [
            {
              "name": "Find",
              "anchor": "GraphSearch.Find",
              "recv": "*GraphSearch[N]",
              "decl": "func (s *GraphSearch[N]) Find(g Graph[N], start, goal N) (path []N, cost float64, ok bool)",
              "doc": "Find runs A* from start to goal on g (using g.Heuristic when g implements HeuristicGraph[N],\nor Dijkstra otherwise), returning the lowest-cost path inclusive of endpoints and its total cost.\n\nInternal search buffers are reused across calls; only the returned path slice is allocated.\n",
              "file": "pkg/ai/graph.go",
              "line": 258
            },
            {
              "name": "FindDijkstra",
              "anchor": "GraphSearch.FindDijkstra",
              "recv": "*GraphSearch[N]",
              "decl": "func (s *GraphSearch[N]) FindDijkstra(g Graph[N], start, goal N) (path []N, cost float64, ok bool)",
              "doc": "FindDijkstra runs Dijkstra's algorithm from start to goal on g (ignoring any HeuristicGraph method),\nreturning the lowest-cost path inclusive of endpoints and its total cost.\n\nInternal search buffers are reused across calls; only the returned path slice is allocated.\n",
              "file": "pkg/ai/graph.go",
              "line": 293
            },
            {
              "name": "FindDijkstraInto",
              "anchor": "GraphSearch.FindDijkstraInto",
              "recv": "*GraphSearch[N]",
              "decl": "func (s *GraphSearch[N]) FindDijkstraInto(dst []N, g Graph[N], start, goal N) (path []N, cost float64, ok bool)",
              "doc": "FindDijkstraInto behaves like FindDijkstra but writes the path into dst[:0],\navoiding allocations when dst has enough capacity.\n",
              "file": "pkg/ai/graph.go",
              "line": 299
            },
            {
              "name": "FindInto",
              "anchor": "GraphSearch.FindInto",
              "recv": "*GraphSearch[N]",
              "decl": "func (s *GraphSearch[N]) FindInto(dst []N, g Graph[N], start, goal N) (path []N, cost float64, ok bool)",
              "doc": "FindInto behaves like Find but writes the resulting path into dst[:0],\navoiding allocations when dst has enough capacity.\n",
              "file": "pkg/ai/graph.go",
              "line": 264
            },
            {
              "name": "FindWithHeuristic",
              "anchor": "GraphSearch.FindWithHeuristic",
              "recv": "*GraphSearch[N]",
              "decl": "func (s *GraphSearch[N]) FindWithHeuristic(g Graph[N], start, goal N, h func(from, goal N) float64) (path []N, cost float64, ok bool)",
              "doc": "FindWithHeuristic runs A* from start to goal on g using heuristic h (nil runs Dijkstra).\nInternal search buffers are reused across calls; only the returned path slice is allocated.\n",
              "file": "pkg/ai/graph.go",
              "line": 276
            },
            {
              "name": "FindWithHeuristicInto",
              "anchor": "GraphSearch.FindWithHeuristicInto",
              "recv": "*GraphSearch[N]",
              "decl": "func (s *GraphSearch[N]) FindWithHeuristicInto(dst []N, g Graph[N], start, goal N, h func(from, goal N) float64) (path []N, cost float64, ok bool)",
              "doc": "FindWithHeuristicInto behaves like FindWithHeuristic but writes the path into dst[:0],\navoiding allocations when dst has enough capacity.\n",
              "file": "pkg/ai/graph.go",
              "line": 282
            },
            {
              "name": "Range",
              "anchor": "GraphSearch.Range",
              "recv": "*GraphSearch[N]",
              "decl": "func (s *GraphSearch[N]) Range(g Graph[N], start N, budget float64) *GraphRange[N]",
              "doc": "Range runs a budgeted Dijkstra search from start on g and returns a GraphRange containing\nevery node reachable within budget, its minimum cost, and parent links for path reconstruction.\n\nInternal search buffers are reused across calls; only the returned GraphRange is allocated.\n",
              "file": "pkg/ai/graph.go",
              "line": 310
            },
            {
              "name": "RangeInto",
              "anchor": "GraphSearch.RangeInto",
              "recv": "*GraphSearch[N]",
              "decl": "func (s *GraphSearch[N]) RangeInto(dst *GraphRange[N], g Graph[N], start N, budget float64) *GraphRange[N]",
              "doc": "RangeInto behaves like Range but reuses dst's storage when dst is non-nil,\navoiding heap allocations after warm-up.\n",
              "file": "pkg/ai/graph.go",
              "line": 316
            }
          ]
        },
        {
          "name": "Grid",
          "anchor": "Grid",
          "decl": "type Grid interface {\n\t// GridSize returns the grid's width in columns and height in rows.\n\tGridSize() (cols, rows int)\n\t// Walkable reports whether the cell at (col, row) can be entered.\n\tWalkable(col, row int) bool\n}",
          "doc": "Grid is a two-dimensional tile grid that AStar searches.\n",
          "file": "pkg/ai/astar.go",
          "line": 14,
          "members": [
            {
              "name": "GridSize",
              "anchor": "Grid.GridSize",
              "kind": "method",
              "doc": "GridSize returns the grid's width in columns and height in rows."
            },
            {
              "name": "Walkable",
              "anchor": "Grid.Walkable",
              "kind": "method",
              "doc": "Walkable reports whether the cell at (col, row) can be entered."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridCoverOptions",
          "anchor": "GridCoverOptions",
          "decl": "type GridCoverOptions struct {\n\t// Spacing is the distance between cover points along a contiguous wall run in world units.\n\t// When <= 0, one cover point is placed at the midpoint of each exposed cell edge.\n\tSpacing float32\n\t// Standoff offsets each cover point from the blocked cell edge into the adjacent walkable cell.\n\t// When <= 0, defaults to half of min(cellWidth, cellHeight).\n\tStandoff float32\n\t// EdgeInset is the margin from each end of a contiguous wall run when Spacing > 0.\n\t// When <= 0, defaults to Spacing * 0.5.\n\tEdgeInset float32\n\t// DefaultHeight sets the height for generated cover points (defaults to CoverFull).\n\tDefaultHeight CoverHeight\n\t// HeightFunc optionally classifies cover height for blocked cell (col, row).\n\tHeightFunc func(col, row int) CoverHeight\n\t// StartID is the first CoverPoint.ID assigned (defaults to 1 when 0).\n\tStartID uint64\n}",
          "doc": "GridCoverOptions configures cover-point generation from any ai.Grid (blocked cells are solid walls).\n",
          "file": "pkg/ai/cover.go",
          "line": 122,
          "members": [
            {
              "name": "Spacing",
              "anchor": "GridCoverOptions.Spacing",
              "kind": "field",
              "doc": "Spacing is the distance between cover points along a contiguous wall run in world units.\nWhen <= 0, one cover point is placed at the midpoint of each exposed cell edge."
            },
            {
              "name": "Standoff",
              "anchor": "GridCoverOptions.Standoff",
              "kind": "field",
              "doc": "Standoff offsets each cover point from the blocked cell edge into the adjacent walkable cell.\nWhen <= 0, defaults to half of min(cellWidth, cellHeight)."
            },
            {
              "name": "EdgeInset",
              "anchor": "GridCoverOptions.EdgeInset",
              "kind": "field",
              "doc": "EdgeInset is the margin from each end of a contiguous wall run when Spacing > 0.\nWhen <= 0, defaults to Spacing * 0.5."
            },
            {
              "name": "DefaultHeight",
              "anchor": "GridCoverOptions.DefaultHeight",
              "kind": "field",
              "doc": "DefaultHeight sets the height for generated cover points (defaults to CoverFull)."
            },
            {
              "name": "HeightFunc",
              "anchor": "GridCoverOptions.HeightFunc",
              "kind": "field",
              "doc": "HeightFunc optionally classifies cover height for blocked cell (col, row)."
            },
            {
              "name": "StartID",
              "anchor": "GridCoverOptions.StartID",
              "kind": "field",
              "doc": "StartID is the first CoverPoint.ID assigned (defaults to 1 when 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridFunc",
          "anchor": "GridFunc",
          "decl": "type GridFunc struct {\n\tCols, Rows int\n\t// Walk reports whether (col, row) is walkable; a nil Walk treats all in-bounds cells as walkable.\n\tWalk func(col, row int) bool\n\t// Cost returns the traversal cost of entering (col, row); a nil Cost uses 1 everywhere.\n\tCost func(col, row int) float64\n}",
          "doc": "GridFunc adapts callback functions to CostGrid, letting any tilemap or custom map plug into AStar in a few lines.\n",
          "file": "pkg/ai/astar.go",
          "line": 146,
          "members": [
            {
              "name": "Cols",
              "anchor": "GridFunc.Cols",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "GridFunc.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Walk",
              "anchor": "GridFunc.Walk",
              "kind": "field",
              "doc": "Walk reports whether (col, row) is walkable; a nil Walk treats all in-bounds cells as walkable."
            },
            {
              "name": "Cost",
              "anchor": "GridFunc.Cost",
              "kind": "field",
              "doc": "Cost returns the traversal cost of entering (col, row); a nil Cost uses 1 everywhere."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "GridSize",
              "anchor": "GridFunc.GridSize",
              "recv": "GridFunc",
              "decl": "func (f GridFunc) GridSize() (cols, rows int)",
              "doc": "GridSize returns Cols and Rows.\n",
              "file": "pkg/ai/astar.go",
              "line": 155
            },
            {
              "name": "MoveCost",
              "anchor": "GridFunc.MoveCost",
              "recv": "GridFunc",
              "decl": "func (f GridFunc) MoveCost(col, row int) float64",
              "doc": "MoveCost returns Cost(col, row) or 1 when Cost is nil or returns a value\nbelow 1: the distance heuristic assumes every step costs at least 1.\n",
              "file": "pkg/ai/astar.go",
              "line": 170
            },
            {
              "name": "Walkable",
              "anchor": "GridFunc.Walkable",
              "recv": "GridFunc",
              "decl": "func (f GridFunc) Walkable(col, row int) bool",
              "doc": "Walkable reports whether (col, row) is in bounds and Walk allows it.\n",
              "file": "pkg/ai/astar.go",
              "line": 158
            }
          ]
        },
        {
          "name": "GridGenerator",
          "anchor": "GridGenerator",
          "decl": "type GridGenerator struct {\n\t// Center selects the grid sampling center (defaults to OriginQuerier).\n\tCenter QueryOrigin\n\t// CustomCenter is used when Center is OriginCustom.\n\tCustomCenter math2d.Vec2\n\t// HalfExtent is the half-width and half-height of the sampled world region around Center.\n\t// When Grid is non-nil and HalfExtent is zero, all walkable cells in Grid are emitted.\n\tHalfExtent math2d.Vec2\n\t// Spacing is the world distance between samples (defaults to CellSize when Grid != nil, else 16).\n\tSpacing float32\n\t// Grid optionally restricts candidates to walkable cells using GridOrigin and CellSize.\n\tGrid Grid\n\t// GridOrigin is the world origin of cell (0, 0) in Grid.\n\tGridOrigin math2d.Vec2\n\t// CellSize is the world size of one cell in Grid (defaults to 1 when <= 0).\n\tCellSize float32\n}",
          "doc": "GridGenerator emits candidates on a regular 2D grid around Center or across an ai.Grid's walkable cells.\n",
          "file": "pkg/ai/tactical.go",
          "line": 389,
          "members": [
            {
              "name": "Center",
              "anchor": "GridGenerator.Center",
              "kind": "field",
              "doc": "Center selects the grid sampling center (defaults to OriginQuerier)."
            },
            {
              "name": "CustomCenter",
              "anchor": "GridGenerator.CustomCenter",
              "kind": "field",
              "doc": "CustomCenter is used when Center is OriginCustom."
            },
            {
              "name": "HalfExtent",
              "anchor": "GridGenerator.HalfExtent",
              "kind": "field",
              "doc": "HalfExtent is the half-width and half-height of the sampled world region around Center.\nWhen Grid is non-nil and HalfExtent is zero, all walkable cells in Grid are emitted."
            },
            {
              "name": "Spacing",
              "anchor": "GridGenerator.Spacing",
              "kind": "field",
              "doc": "Spacing is the world distance between samples (defaults to CellSize when Grid != nil, else 16)."
            },
            {
              "name": "Grid",
              "anchor": "GridGenerator.Grid",
              "kind": "field",
              "doc": "Grid optionally restricts candidates to walkable cells using GridOrigin and CellSize."
            },
            {
              "name": "GridOrigin",
              "anchor": "GridGenerator.GridOrigin",
              "kind": "field",
              "doc": "GridOrigin is the world origin of cell (0, 0) in Grid."
            },
            {
              "name": "CellSize",
              "anchor": "GridGenerator.CellSize",
              "kind": "field",
              "doc": "CellSize is the world size of one cell in Grid (defaults to 1 when <= 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Generate",
              "anchor": "GridGenerator.Generate",
              "recv": "*GridGenerator",
              "decl": "func (g *GridGenerator) Generate(ctx TacticalContext, dst []TacticalCandidate) []TacticalCandidate",
              "doc": "Generate appends grid candidates in deterministic row-major order.\n",
              "file": "pkg/ai/tactical.go",
              "line": 408
            }
          ]
        },
        {
          "name": "GridPathOptions",
          "anchor": "GridPathOptions",
          "decl": "type GridPathOptions struct {\n\t// Origin is the world-space coordinate of cell (0, 0)'s top-left corner.\n\tOrigin core.Point\n\t// CellSize is the width and height of one square grid cell in world units.\n\t// Positive CellWidth or CellHeight values override CellSize on their respective axes.\n\t// When no positive size is set on an axis, that axis defaults to 1.\n\tCellSize float32\n\t// CellWidth overrides CellSize along the X axis when positive, supporting rectangular tiles.\n\tCellWidth float32\n\t// CellHeight overrides CellSize along the Y axis when positive, supporting rectangular tiles.\n\tCellHeight float32\n\t// Radius is the circular body radius in world units that smoothed segments must keep clear of every blocked cell.\n\t// Values less than or equal to 0 test a zero-width ray that still rejects corner-cutting through blocked cells.\n\tRadius float32\n}",
          "doc": "GridPathOptions configures world-space conversion and body clearance for SmoothGridPath, SmoothGridPathInto, and GridLineOfSight.\n\nThe zero value uses 1x1 world-unit cells rooted at (0, 0) with a zero-width line-of-sight ray (still preventing corner cuts across blocked cells).\n",
          "file": "pkg/ai/smooth.go",
          "line": 12,
          "members": [
            {
              "name": "Origin",
              "anchor": "GridPathOptions.Origin",
              "kind": "field",
              "doc": "Origin is the world-space coordinate of cell (0, 0)'s top-left corner."
            },
            {
              "name": "CellSize",
              "anchor": "GridPathOptions.CellSize",
              "kind": "field",
              "doc": "CellSize is the width and height of one square grid cell in world units.\nPositive CellWidth or CellHeight values override CellSize on their respective axes.\nWhen no positive size is set on an axis, that axis defaults to 1."
            },
            {
              "name": "CellWidth",
              "anchor": "GridPathOptions.CellWidth",
              "kind": "field",
              "doc": "CellWidth overrides CellSize along the X axis when positive, supporting rectangular tiles."
            },
            {
              "name": "CellHeight",
              "anchor": "GridPathOptions.CellHeight",
              "kind": "field",
              "doc": "CellHeight overrides CellSize along the Y axis when positive, supporting rectangular tiles."
            },
            {
              "name": "Radius",
              "anchor": "GridPathOptions.Radius",
              "kind": "field",
              "doc": "Radius is the circular body radius in world units that smoothed segments must keep clear of every blocked cell.\nValues less than or equal to 0 test a zero-width ray that still rejects corner-cutting through blocked cells."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CellCenter",
              "anchor": "GridPathOptions.CellCenter",
              "recv": "GridPathOptions",
              "decl": "func (o GridPathOptions) CellCenter(c Cell) core.Point",
              "doc": "CellCenter returns the world-space center of cell c under o.\n",
              "file": "pkg/ai/smooth.go",
              "line": 29
            }
          ]
        },
        {
          "name": "GridPathResult",
          "anchor": "GridPathResult",
          "decl": "type GridPathResult struct {\n\tPath       []Cell\n\tCost       float64\n\tFound      bool // true when a complete or partial path was produced\n\tPartial    bool // true when Path ends at the closest explored cell rather than goal\n\tExhausted  bool // true when the search stopped because MaxExpansions was reached\n\tExpansions int  // total number of grid cells expanded during the search\n}",
          "doc": "GridPathResult is the outcome of a bounded or incremental grid A* search.\n",
          "file": "pkg/ai/astar.go",
          "line": 182,
          "members": [
            {
              "name": "Path",
              "anchor": "GridPathResult.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cost",
              "anchor": "GridPathResult.Cost",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Found",
              "anchor": "GridPathResult.Found",
              "kind": "field",
              "doc": "true when a complete or partial path was produced"
            },
            {
              "name": "Partial",
              "anchor": "GridPathResult.Partial",
              "kind": "field",
              "doc": "true when Path ends at the closest explored cell rather than goal"
            },
            {
              "name": "Exhausted",
              "anchor": "GridPathResult.Exhausted",
              "kind": "field",
              "doc": "true when the search stopped because MaxExpansions was reached"
            },
            {
              "name": "Expansions",
              "anchor": "GridPathResult.Expansions",
              "kind": "field",
              "doc": "total number of grid cells expanded during the search"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridTopology",
          "anchor": "GridTopology",
          "decl": "type GridTopology uint8",
          "doc": "GridTopology selects the cell adjacency and admissible distance heuristic used by AStar and movement-range queries.\n\nThe zero value (TopologySquare) uses the square grid (4-way or 8-way depending on AStar.Diagonal), preserving backward compatibility with existing AStar callers.\n",
          "file": "pkg/ai/topology.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TopologySquare",
                  "anchor": "TopologySquare"
                },
                {
                  "name": "TopologySquare4",
                  "anchor": "TopologySquare4"
                },
                {
                  "name": "TopologySquare8",
                  "anchor": "TopologySquare8"
                },
                {
                  "name": "TopologyHexPointyOdd",
                  "anchor": "TopologyHexPointyOdd"
                },
                {
                  "name": "TopologyHexPointyEven",
                  "anchor": "TopologyHexPointyEven"
                },
                {
                  "name": "TopologyHexFlatOdd",
                  "anchor": "TopologyHexFlatOdd"
                },
                {
                  "name": "TopologyHexFlatEven",
                  "anchor": "TopologyHexFlatEven"
                },
                {
                  "name": "TopologyStaggeredYOdd",
                  "anchor": "TopologyStaggeredYOdd"
                },
                {
                  "name": "TopologyStaggeredYEven",
                  "anchor": "TopologyStaggeredYEven"
                },
                {
                  "name": "TopologyStaggeredXOdd",
                  "anchor": "TopologyStaggeredXOdd"
                },
                {
                  "name": "TopologyStaggeredXEven",
                  "anchor": "TopologyStaggeredXEven"
                }
              ],
              "decl": "const (\n\t// TopologySquare is an orthogonal (or diamond isometric) square grid.\n\t// With AStar.Diagonal false it uses 4-way cardinal neighbors and Manhattan distance;\n\t// with AStar.Diagonal true it uses 8-way neighbors (respecting NoCornerCutting) and octile distance.\n\tTopologySquare GridTopology = iota\n\t// TopologySquare4 forces 4-way cardinal adjacency and Manhattan distance regardless of AStar.Diagonal.\n\tTopologySquare4\n\t// TopologySquare8 forces 8-way adjacency (respecting AStar.NoCornerCutting) and octile distance regardless of AStar.Diagonal.\n\tTopologySquare8\n\t// TopologyHexPointyOdd is a pointy-top hexagonal grid with odd rows shifted right (StaggerY, StaggerOdd; Tiled default).\n\tTopologyHexPointyOdd\n\t// TopologyHexPointyEven is a pointy-top hexagonal grid with even rows shifted right (StaggerY, StaggerEven).\n\tTopologyHexPointyEven\n\t// TopologyHexFlatOdd is a flat-top hexagonal grid with odd columns shifted down (StaggerX, StaggerOdd).\n\tTopologyHexFlatOdd\n\t// TopologyHexFlatEven is a flat-top hexagonal grid with even columns shifted down (StaggerX, StaggerEven).\n\tTopologyHexFlatEven\n\t// TopologyStaggeredYOdd is a staggered isometric grid with odd rows shifted right (StaggerY, StaggerOdd).\n\t// With AStar.Diagonal false it moves along the 4 diamond edges; with AStar.Diagonal true it also allows the 4 vertex-adjacent diagonals.\n\tTopologyStaggeredYOdd\n\t// TopologyStaggeredYEven is a staggered isometric grid with even rows shifted right (StaggerY, StaggerEven).\n\tTopologyStaggeredYEven\n\t// TopologyStaggeredXOdd is a staggered isometric grid with odd columns shifted down (StaggerX, StaggerOdd).\n\tTopologyStaggeredXOdd\n\t// TopologyStaggeredXEven is a staggered isometric grid with even columns shifted down (StaggerX, StaggerEven).\n\tTopologyStaggeredXEven\n)",
              "doc": "",
              "file": "pkg/ai/topology.go",
              "line": 15
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "TopologyFromTilemap",
              "anchor": "TopologyFromTilemap",
              "decl": "func TopologyFromTilemap(m *tilemap.Tilemap) GridTopology",
              "doc": "TopologyFromTilemap returns the GridTopology matching m's Orientation, StaggerAxis and StaggerIndex.\n\nA nil tilemap, OrientationOrthogonal or OrientationIsometric returns TopologySquare (diamond isometric cells share the same 4/8-way (col, row) adjacency as orthogonal squares).\n",
              "file": "pkg/ai/topology.go",
              "line": 86
            }
          ],
          "methods": [
            {
              "name": "Distance",
              "anchor": "GridTopology.Distance",
              "recv": "GridTopology",
              "decl": "func (t GridTopology) Distance(a, b Cell) float64",
              "doc": "Distance returns the exact open-ground step distance (and admissible A* heuristic) between a and b under t.\n\nFor TopologySquare and TopologyStaggered* it computes 4-way distance; TopologySquare8 computes octile distance; hexagonal topologies compute exact cube distance matching tilemap.Tilemap.HexDistance.\n",
              "file": "pkg/ai/topology.go",
              "line": 371
            },
            {
              "name": "IsHex",
              "anchor": "GridTopology.IsHex",
              "recv": "GridTopology",
              "decl": "func (t GridTopology) IsHex() bool",
              "doc": "IsHex reports whether t is one of the four hexagonal grid topologies.\n",
              "file": "pkg/ai/topology.go",
              "line": 74
            },
            {
              "name": "IsStaggered",
              "anchor": "GridTopology.IsStaggered",
              "recv": "GridTopology",
              "decl": "func (t GridTopology) IsStaggered() bool",
              "doc": "IsStaggered reports whether t is one of the four staggered isometric grid topologies.\n",
              "file": "pkg/ai/topology.go",
              "line": 79
            },
            {
              "name": "Neighbors",
              "anchor": "GridTopology.Neighbors",
              "recv": "GridTopology",
              "decl": "func (t GridTopology) Neighbors(c Cell) []Cell",
              "doc": "Neighbors returns the adjacent cells of c under t in deterministic order.\n\nFor TopologySquare and TopologyStaggered* it returns the 4 edge-adjacent neighbors; use TopologySquare8 for 8-way square neighbors, or NeighborsInto with an explicit diagonal flag via AStar.\n",
              "file": "pkg/ai/topology.go",
              "line": 353
            },
            {
              "name": "NeighborsInto",
              "anchor": "GridTopology.NeighborsInto",
              "recv": "GridTopology",
              "decl": "func (t GridTopology) NeighborsInto(dst []Cell, c Cell) []Cell",
              "doc": "NeighborsInto appends the adjacent cells of c under t into dst[:0].\n",
              "file": "pkg/ai/topology.go",
              "line": 358
            },
            {
              "name": "String",
              "anchor": "GridTopology.String",
              "recv": "GridTopology",
              "decl": "func (t GridTopology) String() string",
              "doc": "String returns the topology's canonical name.\n",
              "file": "pkg/ai/topology.go",
              "line": 44
            }
          ]
        },
        {
          "name": "HPA",
          "anchor": "HPA",
          "decl": "type HPA struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "HPA implements Hierarchical Pathfinding A* (HPA*) over a square Grid, CostGrid, or EdgeCostGrid.\n\nIt partitions the grid into fixed-size square clusters, places entrance nodes along shared cluster borders,\nprecomputes intra-cluster shortest paths between entrances, and supports O(affected clusters) incremental updates\nvia UpdateCell, UpdateRect, and RebuildDirty.\n\nAll search and refinement buffers are reused across calls. An HPA is not safe for concurrent use by multiple goroutines.\n",
          "file": "pkg/ai/hpa.go",
          "line": 95,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHPA",
              "anchor": "NewHPA",
              "decl": "func NewHPA(g Grid, opts HPAOptions) *HPA",
              "doc": "NewHPA builds an HPA* hierarchy over g with opts.\n\nIf g is nil or empty, the returned HPA is valid but all searches return ok=false.\n",
              "file": "pkg/ai/hpa.go",
              "line": 164
            }
          ],
          "methods": [
            {
              "name": "AllowCornerCutting",
              "anchor": "HPA.AllowCornerCutting",
              "recv": "*HPA",
              "decl": "func (h *HPA) AllowCornerCutting() bool",
              "doc": "AllowCornerCutting reports whether diagonal moves may cut blocked corners.\n",
              "file": "pkg/ai/hpa.go",
              "line": 281
            },
            {
              "name": "ClusterAt",
              "anchor": "HPA.ClusterAt",
              "recv": "*HPA",
              "decl": "func (h *HPA) ClusterAt(c Cell) (ClusterID, bool)",
              "doc": "ClusterAt returns the ClusterID containing cell c and whether c is in bounds.\n",
              "file": "pkg/ai/hpa.go",
              "line": 284
            },
            {
              "name": "ClusterGridSize",
              "anchor": "HPA.ClusterGridSize",
              "recv": "*HPA",
              "decl": "func (h *HPA) ClusterGridSize() (cols, rows int)",
              "doc": "ClusterGridSize returns the number of cluster columns and cluster rows.\n",
              "file": "pkg/ai/hpa.go",
              "line": 275
            },
            {
              "name": "ClusterRect",
              "anchor": "HPA.ClusterRect",
              "recv": "*HPA",
              "decl": "func (h *HPA) ClusterRect(id ClusterID) (ClusterRect, bool)",
              "doc": "ClusterRect returns the cell bounds of cluster id and whether id is in bounds.\n",
              "file": "pkg/ai/hpa.go",
              "line": 292
            },
            {
              "name": "ClusterSize",
              "anchor": "HPA.ClusterSize",
              "recv": "*HPA",
              "decl": "func (h *HPA) ClusterSize() int",
              "doc": "ClusterSize returns the configured cluster width and height in cells.\n",
              "file": "pkg/ai/hpa.go",
              "line": 272
            },
            {
              "name": "Diagonal",
              "anchor": "HPA.Diagonal",
              "recv": "*HPA",
              "decl": "func (h *HPA) Diagonal() bool",
              "doc": "Diagonal reports whether 8-way diagonal movement is enabled.\n",
              "file": "pkg/ai/hpa.go",
              "line": 278
            },
            {
              "name": "Find",
              "anchor": "HPA.Find",
              "recv": "*HPA",
              "decl": "func (h *HPA) Find(start, goal Cell) (path []Cell, cost float64, ok bool)",
              "doc": "Find searches the hierarchical graph for a near-optimal path from start to goal,\nrefining it into a contiguous concrete slice of walkable cells and returning the exact path cost.\n",
              "file": "pkg/ai/hpa.go",
              "line": 534
            },
            {
              "name": "FindAbstract",
              "anchor": "HPA.FindAbstract",
              "recv": "*HPA",
              "decl": "func (h *HPA) FindAbstract(start, goal Cell) (waypoints []Cell, cost float64, ok bool)",
              "doc": "FindAbstract searches only the hierarchical abstract graph without refining intra-cluster segments,\nreturning the sequence of entrance waypoints from start to goal inclusive and the path cost.\n",
              "file": "pkg/ai/hpa.go",
              "line": 594
            },
            {
              "name": "FindAbstractInto",
              "anchor": "HPA.FindAbstractInto",
              "recv": "*HPA",
              "decl": "func (h *HPA) FindAbstractInto(dst []Cell, start, goal Cell) (waypoints []Cell, cost float64, ok bool)",
              "doc": "FindAbstractInto behaves like FindAbstract but writes the abstract waypoints into dst[:0].\n",
              "file": "pkg/ai/hpa.go",
              "line": 599
            },
            {
              "name": "FindClusters",
              "anchor": "HPA.FindClusters",
              "recv": "*HPA",
              "decl": "func (h *HPA) FindClusters(start, goal Cell) (clusters []ClusterID, cost float64, ok bool)",
              "doc": "FindClusters searches only the hierarchical abstract graph and returns the ordered list of clusters traversed from start to goal.\n",
              "file": "pkg/ai/hpa.go",
              "line": 624
            },
            {
              "name": "FindClustersInto",
              "anchor": "HPA.FindClustersInto",
              "recv": "*HPA",
              "decl": "func (h *HPA) FindClustersInto(dst []ClusterID, start, goal Cell) (clusters []ClusterID, cost float64, ok bool)",
              "doc": "FindClustersInto behaves like FindClusters but writes the traversed ClusterIDs into dst[:0].\n",
              "file": "pkg/ai/hpa.go",
              "line": 629
            },
            {
              "name": "FindInto",
              "anchor": "HPA.FindInto",
              "recv": "*HPA",
              "decl": "func (h *HPA) FindInto(dst []Cell, start, goal Cell) (path []Cell, cost float64, ok bool)",
              "doc": "FindInto behaves like Find but writes the refined cell path into dst[:0], avoiding heap allocations when dst has enough capacity.\n",
              "file": "pkg/ai/hpa.go",
              "line": 539
            },
            {
              "name": "Grid",
              "anchor": "HPA.Grid",
              "recv": "*HPA",
              "decl": "func (h *HPA) Grid() Grid",
              "doc": "Grid returns the underlying Grid this HPA hierarchy was built over.\n",
              "file": "pkg/ai/hpa.go",
              "line": 266
            },
            {
              "name": "GridSize",
              "anchor": "HPA.GridSize",
              "recv": "*HPA",
              "decl": "func (h *HPA) GridSize() (cols, rows int)",
              "doc": "GridSize returns the width and height of the underlying grid in cells.\n",
              "file": "pkg/ai/hpa.go",
              "line": 269
            },
            {
              "name": "RebuildDirty",
              "anchor": "HPA.RebuildDirty",
              "recv": "*HPA",
              "decl": "func (h *HPA) RebuildDirty() int",
              "doc": "RebuildDirty incrementally rebuilds only the borders and clusters marked dirty by UpdateCell or UpdateRect.\n\nIt returns the number of clusters rebuilt.\n",
              "file": "pkg/ai/hpa.go",
              "line": 497
            },
            {
              "name": "Stats",
              "anchor": "HPA.Stats",
              "recv": "*HPA",
              "decl": "func (h *HPA) Stats() HPAStats",
              "doc": "Stats returns current graph size and cluster rebuild counters.\n",
              "file": "pkg/ai/hpa.go",
              "line": 307
            },
            {
              "name": "UpdateCell",
              "anchor": "HPA.UpdateCell",
              "recv": "*HPA",
              "decl": "func (h *HPA) UpdateCell(col, row int)",
              "doc": "UpdateCell marks the cluster containing (col, row), and any shared border and neighboring cluster it touches, as dirty.\n\nCall RebuildDirty to apply pending updates immediately, or let the next Find / FindAbstract / FindClusters call rebuild them automatically.\n",
              "file": "pkg/ai/hpa.go",
              "line": 322
            },
            {
              "name": "UpdateRect",
              "anchor": "HPA.UpdateRect",
              "recv": "*HPA",
              "decl": "func (h *HPA) UpdateRect(minCol, minRow, maxCol, maxRow int)",
              "doc": "UpdateRect marks every cluster and shared border overlapping the inclusive cell rectangle [minCol..maxCol] x [minRow..maxRow] as dirty.\n",
              "file": "pkg/ai/hpa.go",
              "line": 374
            }
          ]
        },
        {
          "name": "HPAOptions",
          "anchor": "HPAOptions",
          "decl": "type HPAOptions struct {\n\t// ClusterSize is the width and height of each cluster in cells.\n\t// Values <= 0 use DefaultHPAClusterSize (16); 1 is clamped to 2.\n\tClusterSize int\n\t// MaxEntranceSpan is the maximum contiguous walkable border run represented by a single entrance.\n\t// Longer runs receive two entrances at their endpoints (plus a lowest-cost cell on weighted grids when cheaper).\n\t// Values <= 0 use DefaultHPAMaxEntranceSpan (6).\n\tMaxEntranceSpan int\n\t// Diagonal allows 8-way movement with step distance sqrt(2) on diagonals; false restricts movement to 4 cardinal directions.\n\tDiagonal bool\n\t// AllowCornerCutting permits diagonal moves when one or both adjacent cardinal cells are blocked.\n\t// When false (the default), diagonal moves never cut corners, matching NewAStar.\n\tAllowCornerCutting bool\n}",
          "doc": "HPAOptions configures an HPA hierarchical pathfinder.\n",
          "file": "pkg/ai/hpa.go",
          "line": 30,
          "members": [
            {
              "name": "ClusterSize",
              "anchor": "HPAOptions.ClusterSize",
              "kind": "field",
              "doc": "ClusterSize is the width and height of each cluster in cells.\nValues <= 0 use DefaultHPAClusterSize (16); 1 is clamped to 2."
            },
            {
              "name": "MaxEntranceSpan",
              "anchor": "HPAOptions.MaxEntranceSpan",
              "kind": "field",
              "doc": "MaxEntranceSpan is the maximum contiguous walkable border run represented by a single entrance.\nLonger runs receive two entrances at their endpoints (plus a lowest-cost cell on weighted grids when cheaper).\nValues <= 0 use DefaultHPAMaxEntranceSpan (6)."
            },
            {
              "name": "Diagonal",
              "anchor": "HPAOptions.Diagonal",
              "kind": "field",
              "doc": "Diagonal allows 8-way movement with step distance sqrt(2) on diagonals; false restricts movement to 4 cardinal directions."
            },
            {
              "name": "AllowCornerCutting",
              "anchor": "HPAOptions.AllowCornerCutting",
              "kind": "field",
              "doc": "AllowCornerCutting permits diagonal moves when one or both adjacent cardinal cells are blocked.\nWhen false (the default), diagonal moves never cut corners, matching NewAStar."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HPAStats",
          "anchor": "HPAStats",
          "decl": "type HPAStats struct {\n\tClusterCols          int\n\tClusterRows          int\n\tClusterSize          int\n\tNodeCount            int\n\tDirtyClusters        int\n\tTotalClusterRebuilds int\n\tLastRebuiltClusters  int\n}",
          "doc": "HPAStats reports structural and incremental-rebuild metrics for an HPA instance.\n",
          "file": "pkg/ai/hpa.go",
          "line": 46,
          "members": [
            {
              "name": "ClusterCols",
              "anchor": "HPAStats.ClusterCols",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClusterRows",
              "anchor": "HPAStats.ClusterRows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClusterSize",
              "anchor": "HPAStats.ClusterSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NodeCount",
              "anchor": "HPAStats.NodeCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DirtyClusters",
              "anchor": "HPAStats.DirtyClusters",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalClusterRebuilds",
              "anchor": "HPAStats.TotalClusterRebuilds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastRebuiltClusters",
              "anchor": "HPAStats.LastRebuiltClusters",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HearingConfig",
          "anchor": "HearingConfig",
          "decl": "type HearingConfig struct {\n\t// Range is how far away a noise of loudness 1 is heard; a noise's loudness scales it. +Inf hears a noise at any finite distance at strength 1, and zero, less or NaN hears nothing.\n\tRange float32\n\t// Detect selects the attitudes hearing detects; zero detects hostile noises only.\n\tDetect AttitudeMask\n}",
          "doc": "HearingConfig describes an agent's hearing. The zero HearingConfig hears nothing.\n",
          "file": "pkg/ai/perception.go",
          "line": 143,
          "members": [
            {
              "name": "Range",
              "anchor": "HearingConfig.Range",
              "kind": "field",
              "doc": "Range is how far away a noise of loudness 1 is heard; a noise's loudness scales it. +Inf hears a noise at any finite distance at strength 1, and zero, less or NaN hears nothing."
            },
            {
              "name": "Detect",
              "anchor": "HearingConfig.Detect",
              "kind": "field",
              "doc": "Detect selects the attitudes hearing detects; zero detects hostile noises only."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HeatmapOptions",
          "anchor": "HeatmapOptions",
          "decl": "type HeatmapOptions struct {\n\t// PositiveColor is the tint for positive cell values; defaults to green (0x22C55E) when 0.\n\tPositiveColor core.Color\n\t// NegativeColor is the tint for negative cell values; defaults to red (0xEF4444) when 0.\n\tNegativeColor core.Color\n\t// MaxAbs is the reference magnitude mapped to full MaxAlpha.\n\t// When <= 0, it is computed automatically from the layer's maximum absolute cell value.\n\tMaxAbs float32\n\t// MaxAlpha caps the opacity of peak-magnitude cells in (0, 1]; defaults to 0.65 when <= 0.\n\tMaxAlpha float32\n\t// MinThreshold skips cells whose absolute value is <= MinThreshold; defaults to 1e-4 when <= 0.\n\tMinThreshold float32\n\t// DrawGrid draws subtle cell outlines over the visible grid region when true.\n\tDrawGrid bool\n\t// GridColor is the stroke color when DrawGrid is true; defaults to translucent white when 0.\n\tGridColor core.Color\n}",
          "doc": "HeatmapOptions configures InfluenceLayer.DrawHeatmap.\n",
          "file": "pkg/ai/influence.go",
          "line": 82,
          "members": [
            {
              "name": "PositiveColor",
              "anchor": "HeatmapOptions.PositiveColor",
              "kind": "field",
              "doc": "PositiveColor is the tint for positive cell values; defaults to green (0x22C55E) when 0."
            },
            {
              "name": "NegativeColor",
              "anchor": "HeatmapOptions.NegativeColor",
              "kind": "field",
              "doc": "NegativeColor is the tint for negative cell values; defaults to red (0xEF4444) when 0."
            },
            {
              "name": "MaxAbs",
              "anchor": "HeatmapOptions.MaxAbs",
              "kind": "field",
              "doc": "MaxAbs is the reference magnitude mapped to full MaxAlpha.\nWhen <= 0, it is computed automatically from the layer's maximum absolute cell value."
            },
            {
              "name": "MaxAlpha",
              "anchor": "HeatmapOptions.MaxAlpha",
              "kind": "field",
              "doc": "MaxAlpha caps the opacity of peak-magnitude cells in (0, 1]; defaults to 0.65 when <= 0."
            },
            {
              "name": "MinThreshold",
              "anchor": "HeatmapOptions.MinThreshold",
              "kind": "field",
              "doc": "MinThreshold skips cells whose absolute value is <= MinThreshold; defaults to 1e-4 when <= 0."
            },
            {
              "name": "DrawGrid",
              "anchor": "HeatmapOptions.DrawGrid",
              "kind": "field",
              "doc": "DrawGrid draws subtle cell outlines over the visible grid region when true."
            },
            {
              "name": "GridColor",
              "anchor": "HeatmapOptions.GridColor",
              "kind": "field",
              "doc": "GridColor is the stroke color when DrawGrid is true; defaults to translucent white when 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HeuristicGraph",
          "anchor": "HeuristicGraph",
          "decl": "type HeuristicGraph[N comparable] interface {\n\tGraph[N]\n\tHeuristic(from, goal N) float64\n}",
          "doc": "HeuristicGraph is a Graph that supplies an admissible lower-bound cost estimate\nbetween two nodes for A* search.\n",
          "file": "pkg/ai/graph.go",
          "line": 24,
          "members": [
            {
              "name": "Heuristic",
              "anchor": "HeuristicGraph.Heuristic",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HexGrid",
          "anchor": "HexGrid",
          "decl": "type HexGrid struct {\n\t// Map is the backing hexagonal tilemap. Must be non-nil with positive Width and Height.\n\tMap *tilemap.Tilemap\n\t// SolidMask selects which tilemap.TileFlags block entry into a cell.\n\t// When 0, defaults to tilemap.TileSolid unless Walk is set.\n\tSolidMask tilemap.TileFlags\n\t// Walk optionally overrides cell walkability for in-bounds cells.\n\t// When nil, a cell is walkable iff Map.FlagsAt(col, row)&effectiveSolidMask == 0.\n\tWalk func(col, row int) bool\n\t// Cost optionally returns the traversal cost of entering (col, row).\n\t// Negative, NaN, or infinite values mark the cell unwalkable when StepCost is nil.\n\t// When nil, every walkable cell has cost 1.\n\tCost func(col, row int) float64\n\t// StepCost optionally returns the directed traversal cost from -> to, taking precedence over Cost.\n\t// Negative, NaN, or infinite values forbid moving along that edge.\n\tStepCost func(from, to Cell) float64\n}",
          "doc": "HexGrid adapts a hexagonal tilemap.Tilemap to HeuristicGraph[Cell] (and Grid / EdgeCostGrid)\nusing tilemap.Tilemap.HexNeighbors and tilemap.Tilemap.HexDistance across all stagger axes\n(StaggerX, StaggerY) and stagger indices (StaggerOdd, StaggerEven).\n\nHeuristic returns the exact cube step distance (Map.HexDistance), which is admissible whenever\nevery step costs at least 1. When using sub-unit road costs (< 1), prefer GraphSearch.FindDijkstra,\nGraphSearch.Range, or GraphSearch.FindWithHeuristic with a scaled distance heuristic.\n",
          "file": "pkg/ai/hex_graph.go",
          "line": 16,
          "members": [
            {
              "name": "Map",
              "anchor": "HexGrid.Map",
              "kind": "field",
              "doc": "Map is the backing hexagonal tilemap. Must be non-nil with positive Width and Height."
            },
            {
              "name": "SolidMask",
              "anchor": "HexGrid.SolidMask",
              "kind": "field",
              "doc": "SolidMask selects which tilemap.TileFlags block entry into a cell.\nWhen 0, defaults to tilemap.TileSolid unless Walk is set."
            },
            {
              "name": "Walk",
              "anchor": "HexGrid.Walk",
              "kind": "field",
              "doc": "Walk optionally overrides cell walkability for in-bounds cells.\nWhen nil, a cell is walkable iff Map.FlagsAt(col, row)&effectiveSolidMask == 0."
            },
            {
              "name": "Cost",
              "anchor": "HexGrid.Cost",
              "kind": "field",
              "doc": "Cost optionally returns the traversal cost of entering (col, row).\nNegative, NaN, or infinite values mark the cell unwalkable when StepCost is nil.\nWhen nil, every walkable cell has cost 1."
            },
            {
              "name": "StepCost",
              "anchor": "HexGrid.StepCost",
              "kind": "field",
              "doc": "StepCost optionally returns the directed traversal cost from -> to, taking precedence over Cost.\nNegative, NaN, or infinite values forbid moving along that edge."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHexGrid",
              "anchor": "NewHexGrid",
              "decl": "func NewHexGrid(m *tilemap.Tilemap) *HexGrid",
              "doc": "NewHexGrid returns a HexGrid over m blocking tiles with tilemap.TileSolid and using unit step cost 1.\n",
              "file": "pkg/ai/hex_graph.go",
              "line": 35
            }
          ],
          "methods": [
            {
              "name": "AppendNeighbors",
              "anchor": "HexGrid.AppendNeighbors",
              "recv": "*HexGrid",
              "decl": "func (h *HexGrid) AppendNeighbors(dst []GraphEdge[Cell], c Cell) []GraphEdge[Cell]",
              "doc": "AppendNeighbors appends all passable hexagonal neighbor transitions of c onto dst\nusing Map.HexNeighbors in deterministic order.\n",
              "file": "pkg/ai/hex_graph.go",
              "line": 115
            },
            {
              "name": "EdgeCost",
              "anchor": "HexGrid.EdgeCost",
              "recv": "*HexGrid",
              "decl": "func (h *HexGrid) EdgeCost(fromCol, fromRow, toCol, toRow int) float64",
              "doc": "EdgeCost returns the directed traversal cost from (fromCol, fromRow) to (toCol, toRow)\nfor EdgeCostGrid compatibility. Negative, NaN, or infinite values forbid the transition.\n",
              "file": "pkg/ai/hex_graph.go",
              "line": 100
            },
            {
              "name": "GridSize",
              "anchor": "HexGrid.GridSize",
              "recv": "*HexGrid",
              "decl": "func (h *HexGrid) GridSize() (cols, rows int)",
              "doc": "GridSize returns the underlying tilemap's width and height in cells.\n",
              "file": "pkg/ai/hex_graph.go",
              "line": 43
            },
            {
              "name": "Heuristic",
              "anchor": "HexGrid.Heuristic",
              "recv": "*HexGrid",
              "decl": "func (h *HexGrid) Heuristic(from, goal Cell) float64",
              "doc": "Heuristic returns the exact hexagonal step distance between from and goal via Map.HexDistance.\n",
              "file": "pkg/ai/hex_graph.go",
              "line": 144
            },
            {
              "name": "MoveCost",
              "anchor": "HexGrid.MoveCost",
              "recv": "*HexGrid",
              "decl": "func (h *HexGrid) MoveCost(col, row int) float64",
              "doc": "MoveCost returns the traversal cost of entering (col, row) for CostGrid compatibility,\nclamping values below 1 to 1 so AStar's distance heuristic remains admissible.\n",
              "file": "pkg/ai/hex_graph.go",
              "line": 87
            },
            {
              "name": "NodeLess",
              "anchor": "HexGrid.NodeLess",
              "recv": "*HexGrid",
              "decl": "func (h *HexGrid) NodeLess(a, b Cell) bool",
              "doc": "NodeLess orders cells in row-major order, matching AStar's deterministic cell-ID tie-breaking.\n",
              "file": "pkg/ai/hex_graph.go",
              "line": 152
            },
            {
              "name": "ValidNode",
              "anchor": "HexGrid.ValidNode",
              "recv": "*HexGrid",
              "decl": "func (h *HexGrid) ValidNode(c Cell) bool",
              "doc": "ValidNode reports whether c is in bounds and passable.\n",
              "file": "pkg/ai/hex_graph.go",
              "line": 81
            },
            {
              "name": "Walkable",
              "anchor": "HexGrid.Walkable",
              "recv": "*HexGrid",
              "decl": "func (h *HexGrid) Walkable(col, row int) bool",
              "doc": "Walkable reports whether (col, row) is in bounds and passable.\n",
              "file": "pkg/ai/hex_graph.go",
              "line": 51
            }
          ]
        },
        {
          "name": "IncrementalSearch",
          "anchor": "IncrementalSearch",
          "decl": "type IncrementalSearch interface {\n\t// Step advances the search by at most maxExpansions node expansions and returns\n\t// the updated status along with the exact number of expansions performed.\n\t// When maxExpansions <= 0 or the search is already done, Step performs 0 expansions.\n\tStep(maxExpansions int) (status SearchStatus, expansions int)\n\t// Status returns the search's current status.\n\tStatus() SearchStatus\n\t// Expansions returns the cumulative number of node expansions performed so far.\n\tExpansions() int\n}",
          "doc": "IncrementalSearch is a deterministic path search that advances in bounded expansion steps.\n\n*AStarSearch, *NavMeshSearch, and *world3d.NavMeshSearch all implement IncrementalSearch\nso a single PathQueue can service mixed 2D grid, 2D NavMesh, and 3D NavMesh requests\nwithin one shared per-step expansion budget.\n",
          "file": "pkg/ai/pathsearch.go",
          "line": 62,
          "members": [
            {
              "name": "Step",
              "anchor": "IncrementalSearch.Step",
              "kind": "method",
              "doc": "Step advances the search by at most maxExpansions node expansions and returns\nthe updated status along with the exact number of expansions performed.\nWhen maxExpansions <= 0 or the search is already done, Step performs 0 expansions."
            },
            {
              "name": "Status",
              "anchor": "IncrementalSearch.Status",
              "kind": "method",
              "doc": "Status returns the search's current status."
            },
            {
              "name": "Expansions",
              "anchor": "IncrementalSearch.Expansions",
              "kind": "method",
              "doc": "Expansions returns the cumulative number of node expansions performed so far."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InfluenceLayer",
          "anchor": "InfluenceLayer",
          "decl": "type InfluenceLayer struct {\n\t// Origin is the world position of the top-left corner of cell (0, 0).\n\tOrigin math2d.Vec2\n\t// CellSize is the width and height of one cell in world units; values <= 0 or non-finite behave as 1.\n\tCellSize float32\n\t// contains filtered or unexported fields\n}",
          "doc": "InfluenceLayer stores a 2D scalar influence grid matching an ai.Grid's dimensions.\n\nCells map to world coordinates via Origin and CellSize in the same convention as rts.FlowField:\ncell (col, row) covers [Origin.X+col*CellSize, Origin.X+(col+1)*CellSize) horizontally and\n[Origin.Y+row*CellSize, Origin.Y+(row+1)*CellSize) vertically.\n\nTracked sources registered with AddSource update incrementally on Update or Spread, touching only\nold and new footprints of changed sources while matching a full Rebuild bit-for-bit. After warm-up,\nincremental updates, spreading, layer combinations, and spatial queries perform zero heap allocations.\n\nAn InfluenceLayer is not safe for concurrent use by multiple goroutines.\n",
          "file": "pkg/ai/influence.go",
          "line": 142,
          "members": [
            {
              "name": "Origin",
              "anchor": "InfluenceLayer.Origin",
              "kind": "field",
              "doc": "Origin is the world position of the top-left corner of cell (0, 0)."
            },
            {
              "name": "CellSize",
              "anchor": "InfluenceLayer.CellSize",
              "kind": "field",
              "doc": "CellSize is the width and height of one cell in world units; values <= 0 or non-finite behave as 1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewInfluenceLayer",
              "anchor": "NewInfluenceLayer",
              "decl": "func NewInfluenceLayer(cols, rows int) *InfluenceLayer",
              "doc": "NewInfluenceLayer returns a cols-by-rows InfluenceLayer with CellSize 1 and Origin (0, 0).\n",
              "file": "pkg/ai/influence.go",
              "line": 176
            },
            {
              "name": "NewInfluenceLayerForGrid",
              "anchor": "NewInfluenceLayerForGrid",
              "decl": "func NewInfluenceLayerForGrid(g Grid, origin math2d.Vec2, cellSize float32) *InfluenceLayer",
              "doc": "NewInfluenceLayerForGrid returns an InfluenceLayer sized to g.GridSize() with the given world origin and cellSize.\nIf g is nil, the returned layer has size (0, 0).\n",
              "file": "pkg/ai/influence.go",
              "line": 184
            }
          ],
          "methods": [
            {
              "name": "Abs",
              "anchor": "InfluenceLayer.Abs",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Abs()",
              "doc": "Abs replaces every cell value in l with its absolute value in place.\n",
              "file": "pkg/ai/influence.go",
              "line": 1137
            },
            {
              "name": "Add",
              "anchor": "InfluenceLayer.Add",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Add(a, b *InfluenceLayer)",
              "doc": "Add sets each cell of l to a + b (useful for tension maps combining friendly and enemy presence).\nAliasing l with a or b is safe, and reusing a pre-sized l performs zero heap allocations.\n",
              "file": "pkg/ai/influence.go",
              "line": 932
            },
            {
              "name": "AddScaled",
              "anchor": "InfluenceLayer.AddScaled",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) AddScaled(src *InfluenceLayer, weight float32)",
              "doc": "AddScaled adds src * weight into l in place without allocating.\nIf l and src differ in size, only the overlapping top-left region is updated.\n",
              "file": "pkg/ai/influence.go",
              "line": 1095
            },
            {
              "name": "AddSource",
              "anchor": "InfluenceLayer.AddSource",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) AddSource(src InfluenceSource) InfluenceSourceID",
              "doc": "AddSource registers a tracked source and returns its handle for future MoveSource, SetSource, or RemoveSource calls.\nThe source takes effect on the next Update, Rebuild, or Spread call.\n",
              "file": "pkg/ai/influence.go",
              "line": 400
            },
            {
              "name": "At",
              "anchor": "InfluenceLayer.At",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) At(col, row int) float32",
              "doc": "At returns the value at (col, row), or 0 when out of bounds.\n",
              "file": "pkg/ai/influence.go",
              "line": 311
            },
            {
              "name": "CellAt",
              "anchor": "InfluenceLayer.CellAt",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) CellAt(p math2d.Vec2) (Cell, bool)",
              "doc": "CellAt returns the cell containing world position p and whether p lies inside the grid.\n",
              "file": "pkg/ai/influence.go",
              "line": 339
            },
            {
              "name": "CellCenter",
              "anchor": "InfluenceLayer.CellCenter",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) CellCenter(c Cell) math2d.Vec2",
              "doc": "CellCenter returns the world position at the center of cell c.\n",
              "file": "pkg/ai/influence.go",
              "line": 360
            },
            {
              "name": "Clamp",
              "anchor": "InfluenceLayer.Clamp",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Clamp(minVal, maxVal float32)",
              "doc": "Clamp clamps every cell of l into [minVal, maxVal] in place.\n",
              "file": "pkg/ai/influence.go",
              "line": 1151
            },
            {
              "name": "Clear",
              "anchor": "InfluenceLayer.Clear",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Clear()",
              "doc": "Clear zeroes all cell values in the layer. If tracked sources exist, they are marked for full recomputation on the next Update or Spread.\n",
              "file": "pkg/ai/influence.go",
              "line": 253
            },
            {
              "name": "ClearSources",
              "anchor": "InfluenceLayer.ClearSources",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) ClearSources()",
              "doc": "ClearSources removes all tracked sources and marks the layer dirty so the next Update or Spread clears their influence.\n",
              "file": "pkg/ai/influence.go",
              "line": 508
            },
            {
              "name": "Combine",
              "anchor": "InfluenceLayer.Combine",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Combine(terms ...WeightedLayer)",
              "doc": "Combine sets l to the weighted sum of terms (sum of term.Layer * term.Weight).\nDimensions follow the first non-nil layer in terms. Aliasing l inside terms is safe,\nand reusing a pre-sized l performs zero heap allocations.\n",
              "file": "pkg/ai/influence.go",
              "line": 1019
            },
            {
              "name": "CopyFrom",
              "anchor": "InfluenceLayer.CopyFrom",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) CopyFrom(src *InfluenceLayer)",
              "doc": "CopyFrom copies src's dimensions, Origin, CellSize, and cell values into l without allocating when l already has sufficient capacity.\n",
              "file": "pkg/ai/influence.go",
              "line": 286
            },
            {
              "name": "DrawHeatmap",
              "anchor": "InfluenceLayer.DrawHeatmap",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) DrawHeatmap(d *core.Drawing, cam *tilemap.Camera, opts HeatmapOptions)",
              "doc": "DrawHeatmap renders the influence layer as a translucent color heatmap in world coordinates,\nculling cells outside cam.VisibleBounds() when cam is non-nil.\n\nLike tilemap.Tilemap.Draw, DrawHeatmap expects d to already carry the camera's world-to-view transform\n(via cam.Apply(d)). Positive cells are tinted with opts.PositiveColor and negative cells with\nopts.NegativeColor, with alpha proportional to |value| / maxAbs up to opts.MaxAlpha.\nUnder -tags release, DrawHeatmap compiles to a no-op stub.\n",
              "file": "pkg/ai/influence_debug.go",
              "line": 23
            },
            {
              "name": "Fill",
              "anchor": "InfluenceLayer.Fill",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Fill(v float32)",
              "doc": "Fill sets every cell in the layer to v (non-finite values are treated as 0).\n",
              "file": "pkg/ai/influence.go",
              "line": 276
            },
            {
              "name": "Gradient",
              "anchor": "InfluenceLayer.Gradient",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Gradient(p math2d.Vec2) math2d.Vec2",
              "doc": "Gradient returns the smooth 2D gradient vector (d/dx, d/dy in influence per world unit) at world position p,\npointing uphill toward higher influence. At CellCenter(c), Gradient agrees with GradientAtCell(c.Col, c.Row).\nPoints outside the grid return the zero vector.\n",
              "file": "pkg/ai/influence.go",
              "line": 1262
            },
            {
              "name": "GradientAtCell",
              "anchor": "InfluenceLayer.GradientAtCell",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) GradientAtCell(col, row int) math2d.Vec2",
              "doc": "GradientAtCell returns the 2D gradient vector (d/dx, d/dy in influence per world unit) at (col, row),\npointing toward higher influence. Boundary cells use one-sided differences; out-of-bounds cells return zero.\n",
              "file": "pkg/ai/influence.go",
              "line": 1240
            },
            {
              "name": "Highest",
              "anchor": "InfluenceLayer.Highest",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Highest(g Grid) (Cell, float32, bool)",
              "doc": "Highest finds the highest-valued cell across the entire layer (restricted to walkable cells when g is non-nil).\nTies break deterministically by smaller Row, then smaller Col.\n",
              "file": "pkg/ai/influence.go",
              "line": 1313
            },
            {
              "name": "HighestInRadius",
              "anchor": "InfluenceLayer.HighestInRadius",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) HighestInRadius(center Cell, radius float32, q InfluenceQuery) (Cell, float32, bool)",
              "doc": "HighestInRadius finds the candidate cell with the highest value within Euclidean cell distance radius of center.\nTies break deterministically by closer distance to center, then smaller Row, then smaller Col.\n",
              "file": "pkg/ai/influence.go",
              "line": 1301
            },
            {
              "name": "Lowest",
              "anchor": "InfluenceLayer.Lowest",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Lowest(g Grid) (Cell, float32, bool)",
              "doc": "Lowest finds the lowest-valued cell across the entire layer (restricted to walkable cells when g is non-nil).\nTies break deterministically by smaller Row, then smaller Col.\n",
              "file": "pkg/ai/influence.go",
              "line": 1319
            },
            {
              "name": "LowestInRadius",
              "anchor": "InfluenceLayer.LowestInRadius",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) LowestInRadius(center Cell, radius float32, q InfluenceQuery) (Cell, float32, bool)",
              "doc": "LowestInRadius finds the candidate cell with the lowest value within Euclidean cell distance radius of center.\nTies break deterministically by closer distance to center, then smaller Row, then smaller Col.\n",
              "file": "pkg/ai/influence.go",
              "line": 1307
            },
            {
              "name": "MarkDirtyCell",
              "anchor": "InfluenceLayer.MarkDirtyCell",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) MarkDirtyCell(c Cell)",
              "doc": "MarkDirtyCell marks cell c for incremental recomputation on the next Update or Spread,\nuseful when a single obstacle on the underlying Grid toggles walkability.\n",
              "file": "pkg/ai/influence.go",
              "line": 526
            },
            {
              "name": "MarkDirtyRect",
              "anchor": "InfluenceLayer.MarkDirtyRect",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) MarkDirtyRect(minCol, minRow, maxCol, maxRow int)",
              "doc": "MarkDirtyRect marks the inclusive cell rectangle [minCol..maxCol] x [minRow..maxRow] for incremental recomputation.\n",
              "file": "pkg/ai/influence.go",
              "line": 531
            },
            {
              "name": "MoveSource",
              "anchor": "InfluenceLayer.MoveSource",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) MoveSource(id InfluenceSourceID, cell Cell) bool",
              "doc": "MoveSource moves the tracked source id to cell, marking its old and new footprints dirty only if cell changed.\nIt returns false if id is invalid or was already removed.\n",
              "file": "pkg/ai/influence.go",
              "line": 446
            },
            {
              "name": "Multiply",
              "anchor": "InfluenceLayer.Multiply",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Multiply(a, b *InfluenceLayer)",
              "doc": "Multiply sets each cell of l to a * b (useful for terrain masking or contested overlap maps).\nAliasing l with a or b is safe, and reusing a pre-sized l performs zero heap allocations.\n",
              "file": "pkg/ai/influence.go",
              "line": 944
            },
            {
              "name": "Normalize",
              "anchor": "InfluenceLayer.Normalize",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Normalize()",
              "doc": "Normalize divides every cell of l by the maximum absolute value across the layer,\nmapping non-negative layers to [0, 1] and signed layers to [-1, 1] while preserving 0 as neutral.\nIt is a no-op if every cell is 0.\n",
              "file": "pkg/ai/influence.go",
              "line": 1169
            },
            {
              "name": "Rebuild",
              "anchor": "InfluenceLayer.Rebuild",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Rebuild(g Grid)",
              "doc": "Rebuild forces a full recomputation of every cell from all active tracked sources,\nskipping blocked cells when g is non-nil. Call Rebuild when terrain walkability changes across the whole Grid.\n",
              "file": "pkg/ai/influence.go",
              "line": 574
            },
            {
              "name": "RemoveSource",
              "anchor": "InfluenceLayer.RemoveSource",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) RemoveSource(id InfluenceSourceID) bool",
              "doc": "RemoveSource unregisters the tracked source id and schedules its stamped footprint to be cleared on the next Update or Spread.\nIt returns false if id is invalid or was already removed.\n",
              "file": "pkg/ai/influence.go",
              "line": 467
            },
            {
              "name": "Resize",
              "anchor": "InfluenceLayer.Resize",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Resize(cols, rows int)",
              "doc": "Resize changes the layer's dimensions to cols-by-rows, clearing its cell values and reusing backing slices when capacity permits.\nAny registered tracked sources are retained and marked for full recomputation on the next Update or Spread.\n",
              "file": "pkg/ai/influence.go",
              "line": 207
            },
            {
              "name": "Sample",
              "anchor": "InfluenceLayer.Sample",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Sample(p math2d.Vec2) (float32, bool)",
              "doc": "Sample returns the bilinearly interpolated influence value at world position p and whether p is inside the grid.\nAt a cell's center (CellCenter(c)), Sample returns At(c.Col, c.Row) exactly.\n",
              "file": "pkg/ai/influence.go",
              "line": 1195
            },
            {
              "name": "Scale",
              "anchor": "InfluenceLayer.Scale",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Scale(s float32)",
              "doc": "Scale multiplies every cell of l by s in place (non-finite values are treated as 0).\n",
              "file": "pkg/ai/influence.go",
              "line": 1124
            },
            {
              "name": "Set",
              "anchor": "InfluenceLayer.Set",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Set(col, row int, v float32)",
              "doc": "Set writes v into cell (col, row). Out-of-bounds coordinates are ignored and non-finite values are stored as 0.\n",
              "file": "pkg/ai/influence.go",
              "line": 319
            },
            {
              "name": "SetSource",
              "anchor": "InfluenceLayer.SetSource",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) SetSource(id InfluenceSourceID, src InfluenceSource) bool",
              "doc": "SetSource replaces the parameters of the tracked source id, marking its old and new footprints dirty.\nIt returns false if id is invalid or was already removed.\n",
              "file": "pkg/ai/influence.go",
              "line": 428
            },
            {
              "name": "Size",
              "anchor": "InfluenceLayer.Size",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Size() (cols, rows int)",
              "doc": "Size returns the layer's width in columns and height in rows.\n",
              "file": "pkg/ai/influence.go",
              "line": 198
            },
            {
              "name": "Source",
              "anchor": "InfluenceLayer.Source",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Source(id InfluenceSourceID) (InfluenceSource, bool)",
              "doc": "Source returns the current parameters of tracked source id, or false if id is invalid or removed.\n",
              "file": "pkg/ai/influence.go",
              "line": 491
            },
            {
              "name": "SourceCount",
              "anchor": "InfluenceLayer.SourceCount",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) SourceCount() int",
              "doc": "SourceCount returns the number of active tracked sources registered on the layer.\n",
              "file": "pkg/ai/influence.go",
              "line": 500
            },
            {
              "name": "Spread",
              "anchor": "InfluenceLayer.Spread",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Spread(g Grid, opts SpreadOptions)",
              "doc": "Spread propagates influence across walkable cells of g with the given decay and momentum.\n\nWhen tracked sources are active on the layer, pending source changes are synced incrementally into\nthe internal source buffer without overwriting previous values, and each pass propagates from\nwalkable neighbors while anchoring on the current sources so moved or removed sources smoothly\ndecay according to opts.Momentum. When no tracked sources are active (for example after direct Stamp\nor Set calls), each cell anchors on its own current value so influence spreads outward around obstacles.\nBlocked cells (!g.Walkable) always evaluate to 0 and never transmit influence.\n",
              "file": "pkg/ai/influence.go",
              "line": 795
            },
            {
              "name": "Stamp",
              "anchor": "InfluenceLayer.Stamp",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Stamp(g Grid, src InfluenceSource)",
              "doc": "Stamp additively stamps src directly onto the layer's current cell values, skipping blocked cells when g is non-nil.\nDirect stamps are not tracked for incremental moves; use AddSource and Update for dynamic tracked sources.\n",
              "file": "pkg/ai/influence.go",
              "line": 370
            },
            {
              "name": "Subtract",
              "anchor": "InfluenceLayer.Subtract",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Subtract(a, b *InfluenceLayer)",
              "doc": "Subtract sets each cell of l to a - b (useful for control maps: friendly - enemy).\nAliasing l with a or b is safe, and reusing a pre-sized l performs zero heap allocations.\n",
              "file": "pkg/ai/influence.go",
              "line": 938
            },
            {
              "name": "Update",
              "anchor": "InfluenceLayer.Update",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Update(g Grid)",
              "doc": "Update incrementally applies pending AddSource, MoveSource, SetSource, RemoveSource, and MarkDirty changes\nto the layer, touching only the dirty cell footprints while matching Rebuild bit-for-bit.\nWhen g is non-nil, blocked cells (!g.Walkable) receive 0.\n",
              "file": "pkg/ai/influence.go",
              "line": 565
            },
            {
              "name": "Values",
              "anchor": "InfluenceLayer.Values",
              "recv": "*InfluenceLayer",
              "decl": "func (l *InfluenceLayer) Values() []float32",
              "doc": "Values returns the layer's flat row-major cell slice (index row*cols + col).\nThe returned slice aliases the layer's internal storage and changes on subsequent updates.\n",
              "file": "pkg/ai/influence.go",
              "line": 303
            }
          ]
        },
        {
          "name": "InfluenceQuery",
          "anchor": "InfluenceQuery",
          "decl": "type InfluenceQuery struct {\n\t// Grid optionally filters candidate cells by walkability (and reachability when Reachable is true).\n\t// When nil, all in-bounds cells within Radius are considered.\n\tGrid Grid\n\t// Reachable, when true and Grid is non-nil, restricts candidates to cells reachable from the center cell\n\t// by walking through Grid.Walkable cells within Radius.\n\tReachable bool\n\t// Diagonal allows 8-way steps (with no corner-cutting around blocked cells) during reachability search.\n\t// Ignored when Reachable is false.\n\tDiagonal bool\n\t// ExcludeCenter omits the center cell itself from the candidates when true.\n\tExcludeCenter bool\n}",
          "doc": "InfluenceQuery configures a spatial extremum search (HighestInRadius / LowestInRadius).\n",
          "file": "pkg/ai/influence.go",
          "line": 67,
          "members": [
            {
              "name": "Grid",
              "anchor": "InfluenceQuery.Grid",
              "kind": "field",
              "doc": "Grid optionally filters candidate cells by walkability (and reachability when Reachable is true).\nWhen nil, all in-bounds cells within Radius are considered."
            },
            {
              "name": "Reachable",
              "anchor": "InfluenceQuery.Reachable",
              "kind": "field",
              "doc": "Reachable, when true and Grid is non-nil, restricts candidates to cells reachable from the center cell\nby walking through Grid.Walkable cells within Radius."
            },
            {
              "name": "Diagonal",
              "anchor": "InfluenceQuery.Diagonal",
              "kind": "field",
              "doc": "Diagonal allows 8-way steps (with no corner-cutting around blocked cells) during reachability search.\nIgnored when Reachable is false."
            },
            {
              "name": "ExcludeCenter",
              "anchor": "InfluenceQuery.ExcludeCenter",
              "kind": "field",
              "doc": "ExcludeCenter omits the center cell itself from the candidates when true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InfluenceSource",
          "anchor": "InfluenceSource",
          "decl": "type InfluenceSource struct {\n\t// Cell is the grid coordinate at the center of the source.\n\tCell Cell\n\t// Strength is the peak influence value stamped at Cell. It may be positive or negative.\n\tStrength float32\n\t// Radius is the maximum stamp distance in grid cells. Values <= 0 stamp only Cell.\n\tRadius float32\n\t// Falloff selects the attenuation curve (defaults to FalloffLinear).\n\tFalloff FalloffKind\n\t// FalloffRate controls exponential attenuation speed for FalloffExponential; values <= 0 default to 1.\n\tFalloffRate float32\n\t// CustomFalloff evaluates the attenuation multiplier for FalloffCustom given cell distance and radius.\n\t// If nil, FalloffLinear is used. Non-finite return values are treated as 0.\n\tCustomFalloff func(dist, radius float32) float32\n}",
          "doc": "InfluenceSource describes a point emitter stamped onto an InfluenceLayer.\n",
          "file": "pkg/ai/influence.go",
          "line": 27,
          "members": [
            {
              "name": "Cell",
              "anchor": "InfluenceSource.Cell",
              "kind": "field",
              "doc": "Cell is the grid coordinate at the center of the source."
            },
            {
              "name": "Strength",
              "anchor": "InfluenceSource.Strength",
              "kind": "field",
              "doc": "Strength is the peak influence value stamped at Cell. It may be positive or negative."
            },
            {
              "name": "Radius",
              "anchor": "InfluenceSource.Radius",
              "kind": "field",
              "doc": "Radius is the maximum stamp distance in grid cells. Values <= 0 stamp only Cell."
            },
            {
              "name": "Falloff",
              "anchor": "InfluenceSource.Falloff",
              "kind": "field",
              "doc": "Falloff selects the attenuation curve (defaults to FalloffLinear)."
            },
            {
              "name": "FalloffRate",
              "anchor": "InfluenceSource.FalloffRate",
              "kind": "field",
              "doc": "FalloffRate controls exponential attenuation speed for FalloffExponential; values <= 0 default to 1."
            },
            {
              "name": "CustomFalloff",
              "anchor": "InfluenceSource.CustomFalloff",
              "kind": "field",
              "doc": "CustomFalloff evaluates the attenuation multiplier for FalloffCustom given cell distance and radius.\nIf nil, FalloffLinear is used. Non-finite return values are treated as 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InfluenceSourceID",
          "anchor": "InfluenceSourceID",
          "decl": "type InfluenceSourceID uint64",
          "doc": "InfluenceSourceID identifies a tracked source registered on an InfluenceLayer.\nThe zero value is invalid.\n",
          "file": "pkg/ai/influence.go",
          "line": 12,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InfluenceTest",
          "anchor": "InfluenceTest",
          "decl": "type InfluenceTest struct {\n\t// Layer is the InfluenceLayer sampled at each candidate's world position.\n\tLayer *InfluenceLayer\n\t// OutOfBoundsValue is used when a candidate lies outside Layer and RejectOutOfBounds is false.\n\tOutOfBoundsValue float64\n\t// RejectOutOfBounds filters out candidates outside Layer when Purpose allows filtering.\n\tRejectOutOfBounds bool\n\t// Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore).\n\tPurpose TestPurpose\n\t// Filter optionally restricts acceptable influence values.\n\tFilter FloatRange\n\t// NormMin and NormMax optionally specify fixed normalization bounds.\n\t// When NormMax <= NormMin, values normalize dynamically across surviving candidates.\n\tNormMin, NormMax float64\n\t// Weight scales the normalized [0, 1] score contribution.\n\tWeight float64\n\t// Invert flips the normalized score (1 - norm) so lower influence (e.g. lower threat) scores higher.\n\tInvert bool\n}",
          "doc": "InfluenceTest reads the bilinearly sampled scalar value from an ai.InfluenceLayer at each candidate.\n",
          "file": "pkg/ai/tactical.go",
          "line": 934,
          "members": [
            {
              "name": "Layer",
              "anchor": "InfluenceTest.Layer",
              "kind": "field",
              "doc": "Layer is the InfluenceLayer sampled at each candidate's world position."
            },
            {
              "name": "OutOfBoundsValue",
              "anchor": "InfluenceTest.OutOfBoundsValue",
              "kind": "field",
              "doc": "OutOfBoundsValue is used when a candidate lies outside Layer and RejectOutOfBounds is false."
            },
            {
              "name": "RejectOutOfBounds",
              "anchor": "InfluenceTest.RejectOutOfBounds",
              "kind": "field",
              "doc": "RejectOutOfBounds filters out candidates outside Layer when Purpose allows filtering."
            },
            {
              "name": "Purpose",
              "anchor": "InfluenceTest.Purpose",
              "kind": "field",
              "doc": "Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore)."
            },
            {
              "name": "Filter",
              "anchor": "InfluenceTest.Filter",
              "kind": "field",
              "doc": "Filter optionally restricts acceptable influence values."
            },
            {
              "name": "NormMin",
              "anchor": "InfluenceTest.NormMin",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds.\nWhen NormMax <= NormMin, values normalize dynamically across surviving candidates."
            },
            {
              "name": "NormMax",
              "anchor": "InfluenceTest.NormMax",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds.\nWhen NormMax <= NormMin, values normalize dynamically across surviving candidates."
            },
            {
              "name": "Weight",
              "anchor": "InfluenceTest.Weight",
              "kind": "field",
              "doc": "Weight scales the normalized [0, 1] score contribution."
            },
            {
              "name": "Invert",
              "anchor": "InfluenceTest.Invert",
              "kind": "field",
              "doc": "Invert flips the normalized score (1 - norm) so lower influence (e.g. lower threat) scores higher."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "IntEffectKind",
          "anchor": "IntEffectKind",
          "decl": "type IntEffectKind uint8",
          "doc": "IntEffectKind identifies how an action modifies a small integer fact.\n",
          "file": "pkg/ai/goap.go",
          "line": 394,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "IntEffectNone",
                  "anchor": "IntEffectNone"
                },
                {
                  "name": "IntEffectSet",
                  "anchor": "IntEffectSet"
                },
                {
                  "name": "IntEffectAdd",
                  "anchor": "IntEffectAdd"
                }
              ],
              "decl": "const (\n\t// IntEffectNone leaves the integer fact unchanged.\n\tIntEffectNone IntEffectKind = iota\n\t// IntEffectSet assigns a constant value to the integer fact.\n\tIntEffectSet\n\t// IntEffectAdd adds a signed delta to the integer fact (clamped to int16 range).\n\tIntEffectAdd\n)",
              "doc": "",
              "file": "pkg/ai/goap.go",
              "line": 396
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "IntFact",
          "anchor": "IntFact",
          "decl": "type IntFact uint8",
          "doc": "IntFact identifies a small integer fact slot (0..MaxIntFacts-1) in a FactSchema and WorldState.\n",
          "file": "pkg/ai/goap.go",
          "line": 32,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "JPS",
          "anchor": "JPS",
          "decl": "type JPS struct {\n\t// NoCornerCutting prevents diagonal moves when either adjacent cardinal cell is blocked.\n\t// NewJPS sets this to true, matching NewAStar.\n\tNoCornerCutting bool\n\t// contains filtered or unexported fields\n}",
          "doc": "JPS implements Jump Point Search for 8-way uniform-cost square grids, returning exact optimal paths\nmatching AStar with Diagonal=true while skipping symmetric open-space nodes.\n\nJPS assumes every walkable cell has uniform traversal cost 1 (ignoring CostGrid and EdgeCostGrid).\nUse NewJPS for a searcher with NoCornerCutting enabled by default.\nAll internal search buffers are reused across calls; a JPS is not safe for concurrent use by multiple goroutines.\n",
          "file": "pkg/ai/jps.go",
          "line": 14,
          "members": [
            {
              "name": "NoCornerCutting",
              "anchor": "JPS.NoCornerCutting",
              "kind": "field",
              "doc": "NoCornerCutting prevents diagonal moves when either adjacent cardinal cell is blocked.\nNewJPS sets this to true, matching NewAStar."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewJPS",
              "anchor": "NewJPS",
              "decl": "func NewJPS() *JPS",
              "doc": "NewJPS returns a JPS searcher with NoCornerCutting enabled by default.\n",
              "file": "pkg/ai/jps.go",
              "line": 30
            }
          ],
          "methods": [
            {
              "name": "Find",
              "anchor": "JPS.Find",
              "recv": "*JPS",
              "decl": "func (j *JPS) Find(g Grid, start, goal Cell) (path []Cell, cost float64, ok bool)",
              "doc": "Find searches uniform-cost square grid g for an optimal 8-way path from start to goal,\nreturning every cell along the path from start to goal inclusive and the exact octile path cost.\n",
              "file": "pkg/ai/jps.go",
              "line": 36
            },
            {
              "name": "FindInto",
              "anchor": "JPS.FindInto",
              "recv": "*JPS",
              "decl": "func (j *JPS) FindInto(dst []Cell, g Grid, start, goal Cell) (path []Cell, cost float64, ok bool)",
              "doc": "FindInto behaves like Find but writes the expanded cell path into dst[:0], avoiding allocations when dst has enough capacity.\n",
              "file": "pkg/ai/jps.go",
              "line": 41
            },
            {
              "name": "FindJumpPoints",
              "anchor": "JPS.FindJumpPoints",
              "recv": "*JPS",
              "decl": "func (j *JPS) FindJumpPoints(g Grid, start, goal Cell) (waypoints []Cell, cost float64, ok bool)",
              "doc": "FindJumpPoints searches uniform-cost square grid g and returns only the jump-point waypoints\n(start, turning points, and goal) together with the exact optimal 8-way cost.\n",
              "file": "pkg/ai/jps.go",
              "line": 64
            },
            {
              "name": "FindJumpPointsInto",
              "anchor": "JPS.FindJumpPointsInto",
              "recv": "*JPS",
              "decl": "func (j *JPS) FindJumpPointsInto(dst []Cell, g Grid, start, goal Cell) (waypoints []Cell, cost float64, ok bool)",
              "doc": "FindJumpPointsInto behaves like FindJumpPoints but writes the jump points into dst[:0].\n",
              "file": "pkg/ai/jps.go",
              "line": 69
            }
          ]
        },
        {
          "name": "LOSFunc",
          "anchor": "LOSFunc",
          "decl": "type LOSFunc func(from, to math2d.Vec2) bool",
          "doc": "LOSFunc reports whether there is an unobstructed line of sight between world points from and to.\n",
          "file": "pkg/ai/tactical.go",
          "line": 105,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LOSTest",
          "anchor": "LOSTest",
          "decl": "type LOSTest struct {\n\t// LOS returns true when there is unobstructed line of sight from from to to.\n\t// If nil, every candidate is treated as having clear line of sight.\n\tLOS LOSFunc\n\t// Target selects the other endpoint of the line-of-sight check (defaults to OriginTarget).\n\tTarget QueryOrigin\n\t// CustomTarget is used when Target is OriginCustom.\n\tCustomTarget math2d.Vec2\n\t// FromTarget reverses the ray direction to LOS(target, candidate) instead of LOS(candidate, target).\n\tFromTarget bool\n\t// WantClear selects whether unobstructed sight (true, e.g. firing spot) or blocked sight\n\t// (false, e.g. hidden cover) passes the filter and earns a score of 1.\n\tWantClear bool\n\t// Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore).\n\tPurpose TestPurpose\n\t// Weight scales the score contribution (1 when LOS matches WantClear, 0 otherwise).\n\tWeight float64\n}",
          "doc": "LOSTest evaluates line of sight between each candidate and a target via a game-supplied callback.\n\nEach invocation consumes one raycast from ctx.Budget (when non-nil). When the budget is\nexhausted, remaining candidates are skipped (dropped if filtering, or scored 0 if TestScoreOnly).\n",
          "file": "pkg/ai/tactical.go",
          "line": 647,
          "members": [
            {
              "name": "LOS",
              "anchor": "LOSTest.LOS",
              "kind": "field",
              "doc": "LOS returns true when there is unobstructed line of sight from from to to.\nIf nil, every candidate is treated as having clear line of sight."
            },
            {
              "name": "Target",
              "anchor": "LOSTest.Target",
              "kind": "field",
              "doc": "Target selects the other endpoint of the line-of-sight check (defaults to OriginTarget)."
            },
            {
              "name": "CustomTarget",
              "anchor": "LOSTest.CustomTarget",
              "kind": "field",
              "doc": "CustomTarget is used when Target is OriginCustom."
            },
            {
              "name": "FromTarget",
              "anchor": "LOSTest.FromTarget",
              "kind": "field",
              "doc": "FromTarget reverses the ray direction to LOS(target, candidate) instead of LOS(candidate, target)."
            },
            {
              "name": "WantClear",
              "anchor": "LOSTest.WantClear",
              "kind": "field",
              "doc": "WantClear selects whether unobstructed sight (true, e.g. firing spot) or blocked sight\n(false, e.g. hidden cover) passes the filter and earns a score of 1."
            },
            {
              "name": "Purpose",
              "anchor": "LOSTest.Purpose",
              "kind": "field",
              "doc": "Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore)."
            },
            {
              "name": "Weight",
              "anchor": "LOSTest.Weight",
              "kind": "field",
              "doc": "Weight scales the score contribution (1 when LOS matches WantClear, 0 otherwise)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LineOfSight",
          "anchor": "LineOfSight",
          "decl": "type LineOfSight func(from, to core.Point) bool",
          "doc": "LineOfSight reports whether nothing blocks the segment from an agent's eye at from to a target at to. PhysicsLineOfSight adapts a physics world and lights2d.LineOfSight adapts lighting occluders; a game may supply its own, and it must be deterministic for perception to be.\n",
          "file": "pkg/ai/perception2d.go",
          "line": 12,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PhysicsLineOfSight",
              "anchor": "PhysicsLineOfSight",
              "decl": "func PhysicsLineOfSight(w *physics.World, query physics.QueryMask, layers physics.LayerMask) LineOfSight",
              "doc": "PhysicsLineOfSight returns a LineOfSight that is blocked by the first hit of w.RaycastFirstLayer with query and layers; zero values select every target and layer, as they do in physics.\n\nA ray starting inside a body hits it, and a ray to a target hits the target's own body, so keep agents' and targets' bodies off the layers that block sight, such as by giving walls a layer of their own.\n",
              "file": "pkg/ai/perception_los.go",
              "line": 11
            }
          ],
          "methods": []
        },
        {
          "name": "Memory",
          "anchor": "Memory",
          "decl": "type Memory struct {\n\t// ID is the stimulus's ID.\n\tID StimulusID\n\t// Team is the stimulus's team when it was last sensed.\n\tTeam Team\n\t// Attitude is how the agent regarded the stimulus when it was last sensed.\n\tAttitude Attitude\n\t// Sense is the sense that last refreshed the memory.\n\tSense Sense\n\t// Pos is the last known position.\n\tPos core.Point\n\t// Vel is the last known velocity: the target's velocity when seen, zero when heard.\n\tVel core.Point\n\t// Age is the time since the stimulus was last sensed; zero while it is in sight.\n\tAge time.Duration\n\t// Strength is 1 when seen, and hearing raises it to at least 1 - distance/reach (1 for an infinite reach); it falls linearly to 0 over ForgetAfter; it ranks memories by how fresh and certain they are.\n\tStrength float32\n\t// Visible reports whether the stimulus is in sight now.\n\tVisible bool\n}",
          "doc": "Memory is what an agent remembers about one stimulus.\n",
          "file": "pkg/ai/perception2d.go",
          "line": 39,
          "members": [
            {
              "name": "ID",
              "anchor": "Memory.ID",
              "kind": "field",
              "doc": "ID is the stimulus's ID."
            },
            {
              "name": "Team",
              "anchor": "Memory.Team",
              "kind": "field",
              "doc": "Team is the stimulus's team when it was last sensed."
            },
            {
              "name": "Attitude",
              "anchor": "Memory.Attitude",
              "kind": "field",
              "doc": "Attitude is how the agent regarded the stimulus when it was last sensed."
            },
            {
              "name": "Sense",
              "anchor": "Memory.Sense",
              "kind": "field",
              "doc": "Sense is the sense that last refreshed the memory."
            },
            {
              "name": "Pos",
              "anchor": "Memory.Pos",
              "kind": "field",
              "doc": "Pos is the last known position."
            },
            {
              "name": "Vel",
              "anchor": "Memory.Vel",
              "kind": "field",
              "doc": "Vel is the last known velocity: the target's velocity when seen, zero when heard."
            },
            {
              "name": "Age",
              "anchor": "Memory.Age",
              "kind": "field",
              "doc": "Age is the time since the stimulus was last sensed; zero while it is in sight."
            },
            {
              "name": "Strength",
              "anchor": "Memory.Strength",
              "kind": "field",
              "doc": "Strength is 1 when seen, and hearing raises it to at least 1 - distance/reach (1 for an infinite reach); it falls linearly to 0 over ForgetAfter; it ranks memories by how fresh and certain they are."
            },
            {
              "name": "Visible",
              "anchor": "Memory.Visible",
              "kind": "field",
              "doc": "Visible reports whether the stimulus is in sight now."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavAgent",
          "anchor": "NavAgent",
          "decl": "type NavAgent struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavAgent navigates a 2D ai.NavMesh by maintaining an active polygon corridor,\nsteering smoothly toward the next funnel corner, slowing cleanly to arrive,\nrepairing its corridor locally when pushed or when the target shifts, and\ninvoking callbacks for off-mesh or flagged links.\n\nNavAgent is deterministic on fixed game.Loop steps and is not safe for concurrent use.\n",
          "file": "pkg/ai/navagent.go",
          "line": 131,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNavAgent",
              "anchor": "NewNavAgent",
              "decl": "func NewNavAgent(mesh *NavMesh, pos core.Point, cfg NavAgentConfig) *NavAgent",
              "doc": "NewNavAgent constructs a 2D navigation agent placed at pos on mesh.\n",
              "file": "pkg/ai/navagent.go",
              "line": 159
            }
          ],
          "methods": [
            {
              "name": "ClearTarget",
              "anchor": "NavAgent.ClearTarget",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) ClearTarget()",
              "doc": "ClearTarget clears the agent's goal, resets its corridor, stops velocity, and sets state to NavAgentIdle.\n",
              "file": "pkg/ai/navagent.go",
              "line": 277
            },
            {
              "name": "Config",
              "anchor": "NavAgent.Config",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Config() NavAgentConfig",
              "doc": "Config returns the sanitized configuration of the agent.\n",
              "file": "pkg/ai/navagent.go",
              "line": 178
            },
            {
              "name": "Corridor",
              "anchor": "NavAgent.Corridor",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Corridor() []int",
              "doc": "Corridor returns a copy of the agent's active polygon index corridor.\n",
              "file": "pkg/ai/navagent.go",
              "line": 213
            },
            {
              "name": "ForceReplan",
              "anchor": "NavAgent.ForceReplan",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) ForceReplan() bool",
              "doc": "ForceReplan immediately executes a full A* replan from the agent's current position to its target,\nignoring ReplanInterval and group throttling, and reports whether a valid corridor was found.\n",
              "file": "pkg/ai/navagent.go",
              "line": 367
            },
            {
              "name": "HasTarget",
              "anchor": "NavAgent.HasTarget",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) HasTarget() bool",
              "doc": "HasTarget reports whether the agent currently has a target.\n",
              "file": "pkg/ai/navagent.go",
              "line": 193
            },
            {
              "name": "LocalRepairCount",
              "anchor": "NavAgent.LocalRepairCount",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) LocalRepairCount() int",
              "doc": "LocalRepairCount returns the number of cheap local corridor repairs performed without a full A* replan.\n",
              "file": "pkg/ai/navagent.go",
              "line": 199
            },
            {
              "name": "NeedsReplan",
              "anchor": "NavAgent.NeedsReplan",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) NeedsReplan() bool",
              "doc": "NeedsReplan reports whether the agent is waiting for a full A* replan.\n",
              "file": "pkg/ai/navagent.go",
              "line": 202
            },
            {
              "name": "NextCorner",
              "anchor": "NavAgent.NextCorner",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) NextCorner() (core.Point, bool)",
              "doc": "NextCorner returns the next funnel steering corner along the agent's remaining corridor.\nReturns (zero, false) when the agent has no valid corridor.\n",
              "file": "pkg/ai/navagent.go",
              "line": 376
            },
            {
              "name": "Path",
              "anchor": "NavAgent.Path",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Path() []core.Point",
              "doc": "Path returns the full string-pulled waypoint path from the agent's current position to its target\nalong its active corridor, or nil when no valid corridor exists.\n",
              "file": "pkg/ai/navagent.go",
              "line": 389
            },
            {
              "name": "Pos",
              "anchor": "NavAgent.Pos",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Pos() core.Point",
              "doc": "Pos returns the agent's current 2D position.\n",
              "file": "pkg/ai/navagent.go",
              "line": 181
            },
            {
              "name": "ReplanCount",
              "anchor": "NavAgent.ReplanCount",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) ReplanCount() int",
              "doc": "ReplanCount returns the total number of full A* replans performed by this agent.\n",
              "file": "pkg/ai/navagent.go",
              "line": 196
            },
            {
              "name": "SetMesh",
              "anchor": "NavAgent.SetMesh",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) SetMesh(mesh *NavMesh)",
              "doc": "SetMesh attaches a new NavMesh to the agent, invalidating any existing corridor so the agent replans.\n",
              "file": "pkg/ai/navagent.go",
              "line": 254
            },
            {
              "name": "SetPosition",
              "anchor": "NavAgent.SetPosition",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) SetPosition(pos core.Point)",
              "doc": "SetPosition updates the agent's position (for example after physics knockback or external push).\nWhen the agent has an active corridor and is not mid-link, it attempts cheap local corridor\nrepair immediately without running a full A* replan.\n",
              "file": "pkg/ai/navagent.go",
              "line": 234
            },
            {
              "name": "SetTarget",
              "anchor": "NavAgent.SetTarget",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) SetTarget(target core.Point)",
              "doc": "SetTarget sets or updates the agent's destination.\n\nWhen the agent already holds a valid corridor, SetTarget tries cheap local end-of-corridor\nrepair (same polygon, corridor truncation, or bounded bridge extension) before scheduling a\nfull A* replan. Agents managed by a NavAgentGroup defer full replans to NavAgentGroup.Step so\nMaxReplansPerStep is strictly respected.\n",
              "file": "pkg/ai/navagent.go",
              "line": 310
            },
            {
              "name": "SetVelocity",
              "anchor": "NavAgent.SetVelocity",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) SetVelocity(v core.Point)",
              "doc": "SetVelocity overrides the agent's current velocity. Non-finite values are ignored.\n",
              "file": "pkg/ai/navagent.go",
              "line": 223
            },
            {
              "name": "State",
              "anchor": "NavAgent.State",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) State() NavAgentState",
              "doc": "State returns the agent's current navigation state.\n",
              "file": "pkg/ai/navagent.go",
              "line": 187
            },
            {
              "name": "Step",
              "anchor": "NavAgent.Step",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Step(dt time.Duration)",
              "doc": "Step advances the agent by fixed duration dt: ticks replan cooldown, detects mesh changes,\nrepairs the corridor locally or replans if needed, steers toward the next funnel corner,\ntraverses off-mesh/flagged links, and settles cleanly on arrival.\n",
              "file": "pkg/ai/navagent.go",
              "line": 406
            },
            {
              "name": "Target",
              "anchor": "NavAgent.Target",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Target() core.Point",
              "doc": "Target returns the agent's current target position (zero when idle).\n",
              "file": "pkg/ai/navagent.go",
              "line": 190
            },
            {
              "name": "TraversingLink",
              "anchor": "NavAgent.TraversingLink",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) TraversingLink() (NavLinkEvent, bool)",
              "doc": "TraversingLink returns the active link event while the agent is traversing an off-mesh or flagged link.\n",
              "file": "pkg/ai/navagent.go",
              "line": 205
            },
            {
              "name": "Vel",
              "anchor": "NavAgent.Vel",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Vel() core.Point",
              "doc": "Vel returns the agent's current 2D velocity.\n",
              "file": "pkg/ai/navagent.go",
              "line": 184
            }
          ]
        },
        {
          "name": "NavAgentConfig",
          "anchor": "NavAgentConfig",
          "decl": "type NavAgentConfig struct {\n\t// MaxSpeed is the maximum movement speed in world units per second. Defaults to 100 when <= 0.\n\tMaxSpeed float32\n\t// MaxAcceleration caps how fast velocity changes in world units per second squared.\n\t// Defaults to 4 * MaxSpeed when <= 0.\n\tMaxAcceleration float32\n\t// Radius is the agent's body radius in world units. Defaults to 0.5 when <= 0.\n\tRadius float32\n\t// StoppingDistance is the distance from the goal within which the agent counts as arrived.\n\t// Defaults to max(Radius, 0.25) when <= 0.\n\tStoppingDistance float32\n\t// ArrivalRadius is the distance from the goal inside which the agent slows down smoothly.\n\t// Defaults to max(StoppingDistance*3, MaxSpeed*MaxSpeed/(2*MaxAcceleration)*2) when <= 0.\n\tArrivalRadius float32\n\t// ReplanInterval is the minimum simulation duration between automatic full A* replans.\n\t// Zero allows immediate replanning whenever the corridor becomes invalid.\n\tReplanInterval time.Duration\n\t// MaxRepairDepth is the maximum number of adjacent bridge polygons searched locally when\n\t// repairing a displaced corridor start or moved target before falling back to a full A* replan.\n\t// Defaults to 2 when <= 0.\n\tMaxRepairDepth int\n\t// Filter optionally restricts which polygons this agent may traverse and sets per-area costs.\n\t// When nil, DefaultNavFilter() is used (all walkable non-disabled polygons at unit cost).\n\tFilter *NavFilter\n\t// OnLink is an optional callback invoked on each step while traversing an off-mesh link or\n\t// crossing a flagged shared-edge portal. Return true when the transition is complete; return\n\t// false to keep control of the agent on subsequent steps. When nil, off-mesh links traverse\n\t// linearly at MaxSpeed and flagged shared-edge portals are crossed automatically.\n\tOnLink func(agent *NavAgent, link NavLinkEvent, dt time.Duration) bool\n}",
          "doc": "NavAgentConfig configures steering, arrival, corridor repair, replan throttling, and off-mesh link traversal for a 2D NavAgent.\n",
          "file": "pkg/ai/navagent.go",
          "line": 56,
          "members": [
            {
              "name": "MaxSpeed",
              "anchor": "NavAgentConfig.MaxSpeed",
              "kind": "field",
              "doc": "MaxSpeed is the maximum movement speed in world units per second. Defaults to 100 when <= 0."
            },
            {
              "name": "MaxAcceleration",
              "anchor": "NavAgentConfig.MaxAcceleration",
              "kind": "field",
              "doc": "MaxAcceleration caps how fast velocity changes in world units per second squared.\nDefaults to 4 * MaxSpeed when <= 0."
            },
            {
              "name": "Radius",
              "anchor": "NavAgentConfig.Radius",
              "kind": "field",
              "doc": "Radius is the agent's body radius in world units. Defaults to 0.5 when <= 0."
            },
            {
              "name": "StoppingDistance",
              "anchor": "NavAgentConfig.StoppingDistance",
              "kind": "field",
              "doc": "StoppingDistance is the distance from the goal within which the agent counts as arrived.\nDefaults to max(Radius, 0.25) when <= 0."
            },
            {
              "name": "ArrivalRadius",
              "anchor": "NavAgentConfig.ArrivalRadius",
              "kind": "field",
              "doc": "ArrivalRadius is the distance from the goal inside which the agent slows down smoothly.\nDefaults to max(StoppingDistance*3, MaxSpeed*MaxSpeed/(2*MaxAcceleration)*2) when <= 0."
            },
            {
              "name": "ReplanInterval",
              "anchor": "NavAgentConfig.ReplanInterval",
              "kind": "field",
              "doc": "ReplanInterval is the minimum simulation duration between automatic full A* replans.\nZero allows immediate replanning whenever the corridor becomes invalid."
            },
            {
              "name": "MaxRepairDepth",
              "anchor": "NavAgentConfig.MaxRepairDepth",
              "kind": "field",
              "doc": "MaxRepairDepth is the maximum number of adjacent bridge polygons searched locally when\nrepairing a displaced corridor start or moved target before falling back to a full A* replan.\nDefaults to 2 when <= 0."
            },
            {
              "name": "Filter",
              "anchor": "NavAgentConfig.Filter",
              "kind": "field",
              "doc": "Filter optionally restricts which polygons this agent may traverse and sets per-area costs.\nWhen nil, DefaultNavFilter() is used (all walkable non-disabled polygons at unit cost)."
            },
            {
              "name": "OnLink",
              "anchor": "NavAgentConfig.OnLink",
              "kind": "field",
              "doc": "OnLink is an optional callback invoked on each step while traversing an off-mesh link or\ncrossing a flagged shared-edge portal. Return true when the transition is complete; return\nfalse to keep control of the agent on subsequent steps. When nil, off-mesh links traverse\nlinearly at MaxSpeed and flagged shared-edge portals are crossed automatically."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavAgentGroup",
          "anchor": "NavAgentGroup",
          "decl": "type NavAgentGroup struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavAgentGroup coordinates multiple 2D NavAgents with throttled, round-robin budgeted, and\noptionally staggered replanning so large groups chasing moving targets never spike a single frame.\n",
          "file": "pkg/ai/navagent.go",
          "line": 1054,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNavAgentGroup",
              "anchor": "NewNavAgentGroup",
              "decl": "func NewNavAgentGroup(cfg NavAgentGroupConfig) *NavAgentGroup",
              "doc": "NewNavAgentGroup constructs a NavAgentGroup with the given replan budget and staggering settings.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1065
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "NavAgentGroup.Add",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Add(mesh *NavMesh, pos core.Point, cfg NavAgentConfig) *NavAgent",
              "doc": "Add creates a new NavAgent, registers it in the group, and returns it.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1079
            },
            {
              "name": "AddAgent",
              "anchor": "NavAgentGroup.AddAgent",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) AddAgent(a *NavAgent)",
              "doc": "AddAgent attaches an existing NavAgent to the group.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1086
            },
            {
              "name": "Agents",
              "anchor": "NavAgentGroup.Agents",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Agents() []*NavAgent",
              "doc": "Agents returns the group's agents in deterministic registration order.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1119
            },
            {
              "name": "LastStepReplans",
              "anchor": "NavAgentGroup.LastStepReplans",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) LastStepReplans() int",
              "doc": "LastStepReplans returns how many full A* replans executed during the most recent Step.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1128
            },
            {
              "name": "Len",
              "anchor": "NavAgentGroup.Len",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Len() int",
              "doc": "Len returns the number of agents in the group.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1122
            },
            {
              "name": "Remove",
              "anchor": "NavAgentGroup.Remove",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Remove(a *NavAgent) bool",
              "doc": "Remove detaches a from the group while preserving deterministic ordering of remaining agents.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1100
            },
            {
              "name": "Step",
              "anchor": "NavAgentGroup.Step",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Step(dt time.Duration)",
              "doc": "Step advances every agent in the group by dt while strictly bounding full A* replans to\nMaxReplansPerStep in deterministic round-robin order.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1135
            },
            {
              "name": "Steps",
              "anchor": "NavAgentGroup.Steps",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Steps() uint64",
              "doc": "Steps returns the number of times Step has advanced this group.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1125
            },
            {
              "name": "TotalReplans",
              "anchor": "NavAgentGroup.TotalReplans",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) TotalReplans() int",
              "doc": "TotalReplans returns the cumulative number of full A* replans executed by Step across all agents.\n",
              "file": "pkg/ai/navagent.go",
              "line": 1131
            }
          ]
        },
        {
          "name": "NavAgentGroupConfig",
          "anchor": "NavAgentGroupConfig",
          "decl": "type NavAgentGroupConfig struct {\n\t// MaxReplansPerStep caps how many agents perform a full A* replan in a single Step.\n\t// Defaults to 4 when <= 0.\n\tMaxReplansPerStep int\n\t// ReplanInterval sets the minimum duration between full replans for agents whose own\n\t// NavAgentConfig.ReplanInterval is 0.\n\tReplanInterval time.Duration\n\t// StaggerStride spreads full replan eligibility across steps using agentID%stride == step%stride.\n\t// Defaults to 1 (every agent is eligible in round-robin order up to MaxReplansPerStep).\n\tStaggerStride int\n}",
          "doc": "NavAgentGroupConfig configures budgeted and staggered replanning across a group of 2D NavAgents.\n",
          "file": "pkg/ai/navagent.go",
          "line": 1040,
          "members": [
            {
              "name": "MaxReplansPerStep",
              "anchor": "NavAgentGroupConfig.MaxReplansPerStep",
              "kind": "field",
              "doc": "MaxReplansPerStep caps how many agents perform a full A* replan in a single Step.\nDefaults to 4 when <= 0."
            },
            {
              "name": "ReplanInterval",
              "anchor": "NavAgentGroupConfig.ReplanInterval",
              "kind": "field",
              "doc": "ReplanInterval sets the minimum duration between full replans for agents whose own\nNavAgentConfig.ReplanInterval is 0."
            },
            {
              "name": "StaggerStride",
              "anchor": "NavAgentGroupConfig.StaggerStride",
              "kind": "field",
              "doc": "StaggerStride spreads full replan eligibility across steps using agentID%stride == step%stride.\nDefaults to 1 (every agent is eligible in round-robin order up to MaxReplansPerStep)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavAgentState",
          "anchor": "NavAgentState",
          "decl": "type NavAgentState uint8",
          "doc": "NavAgentState reports the navigation status of a 2D NavAgent.\n",
          "file": "pkg/ai/navagent.go",
          "line": 12,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NavAgentIdle",
                  "anchor": "NavAgentIdle"
                },
                {
                  "name": "NavAgentMoving",
                  "anchor": "NavAgentMoving"
                },
                {
                  "name": "NavAgentArrived",
                  "anchor": "NavAgentArrived"
                },
                {
                  "name": "NavAgentUnreachable",
                  "anchor": "NavAgentUnreachable"
                }
              ],
              "decl": "const (\n\t// NavAgentIdle indicates the agent has no active navigation target.\n\tNavAgentIdle NavAgentState = iota\n\t// NavAgentMoving indicates the agent is actively following its polygon corridor toward its target.\n\tNavAgentMoving\n\t// NavAgentArrived indicates the agent reached its target within StoppingDistance.\n\tNavAgentArrived\n\t// NavAgentUnreachable indicates no valid corridor connects the agent to its target.\n\tNavAgentUnreachable\n)",
              "doc": "",
              "file": "pkg/ai/navagent.go",
              "line": 14
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "NavAgentState.String",
              "recv": "NavAgentState",
              "decl": "func (s NavAgentState) String() string",
              "doc": "String returns a human-readable state name.\n",
              "file": "pkg/ai/navagent.go",
              "line": 26
            }
          ]
        },
        {
          "name": "NavArea",
          "anchor": "NavArea",
          "decl": "type NavArea uint8",
          "doc": "NavArea identifies the surface or terrain category of a navigation polygon\n(for example road, grass, mud, water, or a door threshold).\nArea 0 is NavAreaDefault. Games may assign any custom uint8 ID up to 255.\n",
          "file": "pkg/ai/navmesh_filter.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NavAreaDefault",
                  "anchor": "NavAreaDefault"
                },
                {
                  "name": "NavAreaRoad",
                  "anchor": "NavAreaRoad"
                },
                {
                  "name": "NavAreaGrass",
                  "anchor": "NavAreaGrass"
                },
                {
                  "name": "NavAreaMud",
                  "anchor": "NavAreaMud"
                },
                {
                  "name": "NavAreaWater",
                  "anchor": "NavAreaWater"
                },
                {
                  "name": "NavAreaDoor",
                  "anchor": "NavAreaDoor"
                },
                {
                  "name": "NavAreaHazard",
                  "anchor": "NavAreaHazard"
                },
                {
                  "name": "NavAreaJump",
                  "anchor": "NavAreaJump"
                },
                {
                  "name": "NavAreaClimb",
                  "anchor": "NavAreaClimb"
                },
                {
                  "name": "NavAreaTeleport",
                  "anchor": "NavAreaTeleport"
                }
              ],
              "decl": "const (\n\t// NavAreaDefault is the default walkable area assigned by BuildNavMesh.\n\tNavAreaDefault NavArea = 0\n\t// NavAreaRoad marks fast-travel surfaces such as roads or paved paths.\n\tNavAreaRoad NavArea = 1\n\t// NavAreaGrass marks ordinary open ground.\n\tNavAreaGrass NavArea = 2\n\t// NavAreaMud marks slow or difficult terrain.\n\tNavAreaMud NavArea = 3\n\t// NavAreaWater marks water surfaces typically paired with NavFlagSwim.\n\tNavAreaWater NavArea = 4\n\t// NavAreaDoor marks dynamic doorway or gate polygons.\n\tNavAreaDoor NavArea = 5\n\t// NavAreaHazard marks hazardous ground such as traps, fire, or lava.\n\tNavAreaHazard NavArea = 6\n\t// NavAreaJump marks jump or drop-off off-mesh links and landing surfaces.\n\tNavAreaJump NavArea = 7\n\t// NavAreaClimb marks climbable off-mesh links such as ladders and ledges.\n\tNavAreaClimb NavArea = 8\n\t// NavAreaTeleport marks teleporter or portal off-mesh links.\n\tNavAreaTeleport NavArea = 9\n)",
              "doc": "",
              "file": "pkg/ai/navmesh_filter.go",
              "line": 15
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavFilter",
          "anchor": "NavFilter",
          "decl": "type NavFilter struct {\n\t// IncludeFlags requires a polygon to have at least one matching flag bit\n\t// when non-zero. When zero, no inclusion bit is required.\n\tIncludeFlags NavFlags\n\n\t// ExcludeFlags forbids any polygon with any matching flag bit set.\n\tExcludeFlags NavFlags\n\n\t// AreaCosts overrides the traversal cost multiplier per NavArea.\n\t// Omitted areas default to 1.0. Values <= 0, NaN, or ±Inf forbid traversal\n\t// of that area.\n\tAreaCosts map[NavArea]float64\n\n\t// ExcludedAreas optionally forbids specific NavArea IDs regardless of flags.\n\tExcludedAreas map[NavArea]bool\n}",
          "doc": "NavFilter controls which navigation polygons a query may traverse and how\neach polygon's area scales traversal cost.\n\nA polygon with (area, flags) is traversable when:\n  - area is not marked excluded in ExcludedAreas,\n  - flags has no bits in common with ExcludeFlags (flags & ExcludeFlags == 0),\n  - when IncludeFlags is non-zero, flags shares at least one bit with IncludeFlags (flags & IncludeFlags != 0),\n  - its effective area cost multiplier is positive and finite.\n\nAreas omitted from AreaCosts default to a cost multiplier of 1.0.\nUse DefaultNavFilter for a filter matching BuildNavMesh defaults\n(IncludeFlags: NavFlagAll, ExcludeFlags: NavFlagDisabled, unit cost for all areas).\n",
          "file": "pkg/ai/navmesh_filter.go",
          "line": 82,
          "members": [
            {
              "name": "IncludeFlags",
              "anchor": "NavFilter.IncludeFlags",
              "kind": "field",
              "doc": "IncludeFlags requires a polygon to have at least one matching flag bit\nwhen non-zero. When zero, no inclusion bit is required."
            },
            {
              "name": "ExcludeFlags",
              "anchor": "NavFilter.ExcludeFlags",
              "kind": "field",
              "doc": "ExcludeFlags forbids any polygon with any matching flag bit set."
            },
            {
              "name": "AreaCosts",
              "anchor": "NavFilter.AreaCosts",
              "kind": "field",
              "doc": "AreaCosts overrides the traversal cost multiplier per NavArea.\nOmitted areas default to 1.0. Values <= 0, NaN, or ±Inf forbid traversal\nof that area."
            },
            {
              "name": "ExcludedAreas",
              "anchor": "NavFilter.ExcludedAreas",
              "kind": "field",
              "doc": "ExcludedAreas optionally forbids specific NavArea IDs regardless of flags."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultNavFilter",
              "anchor": "DefaultNavFilter",
              "decl": "func DefaultNavFilter() NavFilter",
              "doc": "DefaultNavFilter returns the default query filter matching BuildNavMesh defaults:\nevery non-zero, non-disabled polygon is traversable at unit cost (1.0).\n",
              "file": "pkg/ai/navmesh_filter.go",
              "line": 101
            }
          ],
          "methods": [
            {
              "name": "Allows",
              "anchor": "NavFilter.Allows",
              "recv": "NavFilter",
              "decl": "func (f NavFilter) Allows(area NavArea, flags NavFlags) bool",
              "doc": "Allows reports whether a polygon with the given area and flags passes the filter.\n",
              "file": "pkg/ai/navmesh_filter.go",
              "line": 109
            },
            {
              "name": "AreaCost",
              "anchor": "NavFilter.AreaCost",
              "recv": "NavFilter",
              "decl": "func (f NavFilter) AreaCost(area NavArea) float64",
              "doc": "AreaCost returns the traversal cost multiplier for area.\nOmitted areas return 1.0. Excluded areas or areas with non-positive, NaN, or\ninfinite configured costs return +Inf.\n",
              "file": "pkg/ai/navmesh_filter.go",
              "line": 128
            },
            {
              "name": "Clone",
              "anchor": "NavFilter.Clone",
              "recv": "NavFilter",
              "decl": "func (f NavFilter) Clone() NavFilter",
              "doc": "Clone returns an independent deep copy of f.\n",
              "file": "pkg/ai/navmesh_filter.go",
              "line": 172
            },
            {
              "name": "ExcludeArea",
              "anchor": "NavFilter.ExcludeArea",
              "recv": "*NavFilter",
              "decl": "func (f *NavFilter) ExcludeArea(area NavArea)",
              "doc": "ExcludeArea marks area as non-traversable on f regardless of polygon flags.\n",
              "file": "pkg/ai/navmesh_filter.go",
              "line": 153
            },
            {
              "name": "IncludeArea",
              "anchor": "NavFilter.IncludeArea",
              "recv": "*NavFilter",
              "decl": "func (f *NavFilter) IncludeArea(area NavArea)",
              "doc": "IncludeArea removes area from f's ExcludedAreas set.\n",
              "file": "pkg/ai/navmesh_filter.go",
              "line": 164
            },
            {
              "name": "SetAreaCost",
              "anchor": "NavFilter.SetAreaCost",
              "recv": "*NavFilter",
              "decl": "func (f *NavFilter) SetAreaCost(area NavArea, cost float64)",
              "doc": "SetAreaCost sets the traversal cost multiplier for area on f.\n",
              "file": "pkg/ai/navmesh_filter.go",
              "line": 142
            }
          ]
        },
        {
          "name": "NavFlags",
          "anchor": "NavFlags",
          "decl": "type NavFlags uint32",
          "doc": "NavFlags is a bitmask of runtime traversal capabilities and states on a\nnavigation polygon (such as walk, swim, door, jump, climb, teleport, or disabled).\n",
          "file": "pkg/ai/navmesh_filter.go",
          "line": 40,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NavFlagWalk",
                  "anchor": "NavFlagWalk"
                },
                {
                  "name": "NavFlagSwim",
                  "anchor": "NavFlagSwim"
                },
                {
                  "name": "NavFlagDoor",
                  "anchor": "NavFlagDoor"
                },
                {
                  "name": "NavFlagJump",
                  "anchor": "NavFlagJump"
                },
                {
                  "name": "NavFlagClimb",
                  "anchor": "NavFlagClimb"
                },
                {
                  "name": "NavFlagTeleport",
                  "anchor": "NavFlagTeleport"
                },
                {
                  "name": "NavFlagDisabled",
                  "anchor": "NavFlagDisabled"
                },
                {
                  "name": "NavFlagAll",
                  "anchor": "NavFlagAll"
                }
              ],
              "decl": "const (\n\t// NavFlagWalk marks standard ground-walkable polygons (default for BuildNavMesh).\n\tNavFlagWalk NavFlags = 1 << 0\n\t// NavFlagSwim marks water polygons traversable by swimming agents.\n\tNavFlagSwim NavFlags = 1 << 1\n\t// NavFlagDoor marks doorway or gate polygons that may open or close at runtime.\n\tNavFlagDoor NavFlags = 1 << 2\n\t// NavFlagJump marks jump or drop-off traversal polygons and off-mesh links.\n\tNavFlagJump NavFlags = 1 << 3\n\t// NavFlagClimb marks climbable off-mesh links such as ladders.\n\tNavFlagClimb NavFlags = 1 << 4\n\t// NavFlagTeleport marks teleporter or portal off-mesh links.\n\tNavFlagTeleport NavFlags = 1 << 5\n\t// NavFlagDisabled marks polygons or links disabled at runtime (excluded by DefaultNavFilter).\n\tNavFlagDisabled NavFlags = 1 << 31\n\t// NavFlagAll matches any non-zero flag bitmask.\n\tNavFlagAll NavFlags = ^NavFlags(0)\n)",
              "doc": "",
              "file": "pkg/ai/navmesh_filter.go",
              "line": 42
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavLinkEvent",
          "anchor": "NavLinkEvent",
          "decl": "type NavLinkEvent struct {\n\tFromPoly int\n\tToPoly   int\n\tStart    core.Point\n\tEnd      core.Point\n\tRadius   float32\n\tArea     NavArea\n\tFlags    uint32\n\tLinkID   int\n\tUserData any\n\tOffMesh  bool\n}",
          "doc": "NavLinkEvent describes a flagged shared-edge or off-mesh link transition encountered by a NavAgent.\n",
          "file": "pkg/ai/navagent.go",
          "line": 42,
          "members": [
            {
              "name": "FromPoly",
              "anchor": "NavLinkEvent.FromPoly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToPoly",
              "anchor": "NavLinkEvent.ToPoly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Start",
              "anchor": "NavLinkEvent.Start",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "End",
              "anchor": "NavLinkEvent.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "NavLinkEvent.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Area",
              "anchor": "NavLinkEvent.Area",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "NavLinkEvent.Flags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LinkID",
              "anchor": "NavLinkEvent.LinkID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserData",
              "anchor": "NavLinkEvent.UserData",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffMesh",
              "anchor": "NavLinkEvent.OffMesh",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavListenerID",
          "anchor": "NavListenerID",
          "decl": "type NavListenerID uint64",
          "doc": "NavListenerID identifies a tile-change listener registered on a TiledNavMesh.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 103,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavMesh",
          "anchor": "NavMesh",
          "decl": "type NavMesh struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavMesh is a 2D navigation mesh built from convex polygons connected across shared edges\nand optional point-to-point off-mesh links.\n",
          "file": "pkg/ai/navmesh.go",
          "line": 152,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildNavMesh",
              "anchor": "BuildNavMesh",
              "decl": "func BuildNavMesh(polys [][]core.Point) *NavMesh",
              "doc": "BuildNavMesh constructs a NavMesh from convex 2D polygons, normalizing winding order and automatically connecting adjacent polygons along shared edges (including partial collinear overlaps).\n\nEach polygon is assigned NavAreaDefault and NavFlagWalk. Degenerate polygons with fewer than three vertices or near-zero area are skipped.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 166
            },
            {
              "name": "BuildNavMeshWithAreas",
              "anchor": "BuildNavMeshWithAreas",
              "decl": "func BuildNavMeshWithAreas(polys []NavPolygonInput) *NavMesh",
              "doc": "BuildNavMeshWithAreas constructs a NavMesh from convex 2D polygons carrying per-polygon area IDs and runtime traversal flags, normalizing winding order and automatically connecting adjacent polygons along shared edges (including partial collinear overlaps).\n\nPolygons with zero Flags default to NavFlagWalk. Degenerate polygons with fewer than three vertices or near-zero area are skipped.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 181
            }
          ],
          "methods": [
            {
              "name": "AddOffMeshLink",
              "anchor": "NavMesh.AddOffMeshLink",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) AddOffMeshLink(link NavOffMeshLink) bool",
              "doc": "AddOffMeshLink connects the polygons containing (or within link.Radius of) link.Start and link.End\nwith a directed (or bidirectional) off-mesh portal and bumps the mesh revision.\nReturns false if the mesh is nil, link coordinates or Radius are invalid, either endpoint cannot\nattach to the mesh, or both endpoints collapse to the same point on the same polygon.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 583
            },
            {
              "name": "AddPolygonFlags",
              "anchor": "NavMesh.AddPolygonFlags",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) AddPolygonFlags(index int, flags NavFlags)",
              "doc": "AddPolygonFlags sets the bits in flags on polygon index at runtime without rebuilding the mesh.\nOut-of-range indices are ignored.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 405
            },
            {
              "name": "BumpRevision",
              "anchor": "NavMesh.BumpRevision",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) BumpRevision()",
              "doc": "BumpRevision increments the mesh revision so NavAgents watching this mesh invalidate cached corridors and replan.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 549
            },
            {
              "name": "ClearOffMeshLinks",
              "anchor": "NavMesh.ClearOffMeshLinks",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) ClearOffMeshLinks()",
              "doc": "ClearOffMeshLinks removes all off-mesh links from m and bumps the mesh revision when any were present.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 673
            },
            {
              "name": "ClearPolygonFlags",
              "anchor": "NavMesh.ClearPolygonFlags",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) ClearPolygonFlags(index int, flags NavFlags)",
              "doc": "ClearPolygonFlags clears the bits in flags on polygon index at runtime without rebuilding the mesh.\nOut-of-range indices are ignored.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 418
            },
            {
              "name": "Contains",
              "anchor": "NavMesh.Contains",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) Contains(p core.Point) bool",
              "doc": "Contains reports whether p lies inside or on the boundary of any polygon in the mesh.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 454
            },
            {
              "name": "ContainsWithFilter",
              "anchor": "NavMesh.ContainsWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) ContainsWithFilter(p core.Point, filter NavFilter) bool",
              "doc": "ContainsWithFilter reports whether p lies inside or on the boundary of any polygon passing filter.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 459
            },
            {
              "name": "FindCorridor",
              "anchor": "NavMesh.FindCorridor",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindCorridor(start, goal core.Point) ([]int, bool)",
              "doc": "FindCorridor finds the sequence of polygon indices from start to goal using DefaultNavFilter and portal-graph A*.\nReturns (nil, false) if start or goal lies outside traversable polygons or in disconnected regions.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 719
            },
            {
              "name": "FindCorridorInto",
              "anchor": "NavMesh.FindCorridorInto",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindCorridorInto(dst []int, start, goal core.Point) ([]int, bool)",
              "doc": "FindCorridorInto behaves like FindCorridor but writes polygon indices into dst[:0] and reuses\nthe mesh's internal search buffers with zero heap allocations after warm-up.\n\nFindCorridorInto is not safe for concurrent use on the same NavMesh; use NewNavMeshQuery per goroutine.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2094
            },
            {
              "name": "FindCorridorWithFilter",
              "anchor": "NavMesh.FindCorridorWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindCorridorWithFilter(start, goal core.Point, filter NavFilter) ([]int, bool)",
              "doc": "FindCorridorWithFilter finds the minimum-cost sequence of polygon indices from start to goal restricted to filter.\nReturns (nil, false) if start or goal lies outside traversable polygons or in disconnected regions.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 725
            },
            {
              "name": "FindCorridorWithFilterInto",
              "anchor": "NavMesh.FindCorridorWithFilterInto",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindCorridorWithFilterInto(dst []int, start, goal core.Point, filter NavFilter) ([]int, bool)",
              "doc": "FindCorridorWithFilterInto behaves like FindCorridorWithFilter but writes polygon indices into dst[:0]\nand reuses the mesh's internal search buffers with zero heap allocations after warm-up.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2100
            },
            {
              "name": "FindPath",
              "anchor": "NavMesh.FindPath",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindPath(start, goal core.Point) ([]core.Point, bool)",
              "doc": "FindPath finds the shortest path inside the navigation mesh from start to goal using DefaultNavFilter, portal-graph A*, and Simple Stupid Funnel Algorithm string-pulling.\n\nIt returns (nil, false) if start or goal lies outside traversable polygons or in disconnected regions.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 736
            },
            {
              "name": "FindPathInto",
              "anchor": "NavMesh.FindPathInto",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindPathInto(dst []core.Point, start, goal core.Point) ([]core.Point, bool)",
              "doc": "FindPathInto behaves like FindPath but writes waypoints into dst[:0] and reuses the mesh's internal search buffers\nso repeated calls allocate zero heap memory once warmed up.\n\nFindPathInto is not safe for concurrent use on the same NavMesh; construct separate NewNavMeshQuery instances\nwhen running concurrent path searches against a shared read-only NavMesh.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2063
            },
            {
              "name": "FindPathWithFilter",
              "anchor": "NavMesh.FindPathWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindPathWithFilter(start, goal core.Point, filter NavFilter) ([]core.Point, bool)",
              "doc": "FindPathWithFilter finds the minimum-cost path inside the navigation mesh from start to goal restricted to polygons allowed by filter, weighting traversal through each polygon by filter.AreaCost(area) and using an admissible distance heuristic scaled by the minimum allowed area cost.\n\nIt returns (nil, false) if start or goal lies outside traversable polygons or in disconnected regions.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 743
            },
            {
              "name": "FindPathWithFilterAndOptions",
              "anchor": "NavMesh.FindPathWithFilterAndOptions",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindPathWithFilterAndOptions(start, goal core.Point, filter NavFilter, opts PathOptions) NavPathResult",
              "doc": "FindPathWithFilterAndOptions finds a minimum-cost path inside the navigation mesh restricted to\npolygons allowed by filter under opts, supporting an expansion budget and optional partial paths.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 760
            },
            {
              "name": "FindPathWithFilterAndOptionsInto",
              "anchor": "NavMesh.FindPathWithFilterAndOptionsInto",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindPathWithFilterAndOptionsInto(dst []core.Point, start, goal core.Point, filter NavFilter, opts PathOptions) NavPathResult",
              "doc": "FindPathWithFilterAndOptionsInto behaves like FindPathWithFilterAndOptions but writes waypoints into dst[:0]\nand reuses the mesh's internal search buffers with zero heap allocations after warm-up.\nThe returned res.Links slice reuses the mesh's internal query buffer (like dst) and is overwritten on subsequent queries.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2082
            },
            {
              "name": "FindPathWithFilterInto",
              "anchor": "NavMesh.FindPathWithFilterInto",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindPathWithFilterInto(dst []core.Point, start, goal core.Point, filter NavFilter) ([]core.Point, bool)",
              "doc": "FindPathWithFilterInto behaves like FindPathWithFilter but writes waypoints into dst[:0] and reuses\nthe mesh's internal search buffers with zero heap allocations after warm-up.\n\nFindPathWithFilterInto is not safe for concurrent use on the same NavMesh; use NewNavMeshQuery per goroutine.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2071
            },
            {
              "name": "FindPathWithOptions",
              "anchor": "NavMesh.FindPathWithOptions",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindPathWithOptions(start, goal core.Point, opts PathOptions) NavPathResult",
              "doc": "FindPathWithOptions finds a path inside the navigation mesh under DefaultNavFilter and opts,\nsupporting an expansion budget and optional partial paths to the closest reachable point when\ngoal is outside the mesh, in a disconnected region, or beyond MaxExpansions.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 754
            },
            {
              "name": "FindPolygon",
              "anchor": "NavMesh.FindPolygon",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindPolygon(p core.Point) int",
              "doc": "FindPolygon returns the lowest index of a polygon containing p (including its edges and vertices), or -1 if p lies outside the mesh.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 430
            },
            {
              "name": "FindPolygonWithFilter",
              "anchor": "NavMesh.FindPolygonWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) FindPolygonWithFilter(p core.Point, filter NavFilter) int",
              "doc": "FindPolygonWithFilter returns the lowest index of a polygon passing filter that contains p (including its edges and vertices), or -1 if none match.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 442
            },
            {
              "name": "MoveAlongSurface",
              "anchor": "NavMesh.MoveAlongSurface",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) MoveAlongSurface(start, target core.Point) (NavMoveResult, bool)",
              "doc": "MoveAlongSurface slides an agent from start toward target while staying on polygons allowed by DefaultNavFilter.\n\nReturns (NavMoveResult{Point: start, Poly: -1}, false) if start lies outside the allowed mesh.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 866
            },
            {
              "name": "MoveAlongSurfaceWithFilter",
              "anchor": "NavMesh.MoveAlongSurfaceWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) MoveAlongSurfaceWithFilter(start, target core.Point, filter NavFilter) (NavMoveResult, bool)",
              "doc": "MoveAlongSurfaceWithFilter slides an agent from start toward target while staying on polygons allowed by filter.\n\nReturns (NavMoveResult{Point: start, Poly: -1}, false) if start lies outside the allowed mesh.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 873
            },
            {
              "name": "NearestPoint",
              "anchor": "NavMesh.NearestPoint",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) NearestPoint(p, extent core.Point) (point core.Point, poly int, ok bool)",
              "doc": "NearestPoint returns the closest point on any polygon allowed by DefaultNavFilter within\nthe axis-aligned search half-extents [p.X-extent.X, p.X+extent.X] x [p.Y-extent.Y, p.Y+extent.Y],\ntogether with that polygon's index.\n\nReturns (zero, -1, false) if m is empty, inputs are invalid/negative, or no allowed polygon point lies within extent.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 429
            },
            {
              "name": "NearestPointWithFilter",
              "anchor": "NavMesh.NearestPointWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) NearestPointWithFilter(p, extent core.Point, filter NavFilter) (point core.Point, poly int, ok bool)",
              "doc": "NearestPointWithFilter returns the closest point on any polygon allowed by filter within\nthe axis-aligned search half-extents [p.X-extent.X, p.X+extent.X] x [p.Y-extent.Y, p.Y+extent.Y],\ntogether with that polygon's index.\n\nReturns (zero, -1, false) if m is empty, inputs are invalid/negative, or no allowed polygon point lies within extent.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 438
            },
            {
              "name": "NearestPolygon",
              "anchor": "NavMesh.NearestPolygon",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) NearestPolygon(p core.Point) (index int, point core.Point, ok bool)",
              "doc": "NearestPolygon returns the polygon closest to p and the closest point on or inside that polygon.\nWhen p lies inside a polygon, NearestPolygon returns that polygon and p itself.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 465
            },
            {
              "name": "NearestPolygonWithFilter",
              "anchor": "NavMesh.NearestPolygonWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) NearestPolygonWithFilter(p core.Point, filter NavFilter) (index int, point core.Point, ok bool)",
              "doc": "NearestPolygonWithFilter returns the polygon passing filter closest to p and the closest point on or inside that polygon.\nWhen p lies inside a matching polygon, NearestPolygonWithFilter returns that polygon and p itself.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 471
            },
            {
              "name": "Neighbors",
              "anchor": "NavMesh.Neighbors",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) Neighbors(index int) []int",
              "doc": "Neighbors returns the indices of polygons sharing an edge with polygon index.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 351
            },
            {
              "name": "OffMeshLinks",
              "anchor": "NavMesh.OffMeshLinks",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) OffMeshLinks() []NavOffMeshLink",
              "doc": "OffMeshLinks returns a copy of all off-mesh links registered on m in insertion order.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 661
            },
            {
              "name": "Polygon",
              "anchor": "NavMesh.Polygon",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) Polygon(index int) []core.Point",
              "doc": "Polygon returns a copy of the vertices of polygon index, or nil if index is out of range.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 338
            },
            {
              "name": "PolygonArea",
              "anchor": "NavMesh.PolygonArea",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) PolygonArea(index int) NavArea",
              "doc": "PolygonArea returns the area ID of polygon index, or NavAreaDefault if index is out of range.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 364
            },
            {
              "name": "PolygonCount",
              "anchor": "NavMesh.PolygonCount",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) PolygonCount() int",
              "doc": "PolygonCount returns the number of valid convex polygons in the mesh.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 330
            },
            {
              "name": "PolygonFlags",
              "anchor": "NavMesh.PolygonFlags",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) PolygonFlags(index int) NavFlags",
              "doc": "PolygonFlags returns the runtime traversal flags of polygon index, or 0 if index is out of range.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 384
            },
            {
              "name": "RandomPoint",
              "anchor": "NavMesh.RandomPoint",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) RandomPoint(rng *random.Stream) (point core.Point, poly int, ok bool)",
              "doc": "RandomPoint picks an area-weighted uniformly random point anywhere on polygons allowed by DefaultNavFilter,\nusing rng. Results are bit-identical across runs and platforms for the same seed.\n\nReturns (zero, -1, false) if m is empty, rng is nil, or no polygons are allowed.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 941
            },
            {
              "name": "RandomPointAround",
              "anchor": "NavMesh.RandomPointAround",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) RandomPointAround(center core.Point, radius float32, rng *random.Stream) (point core.Point, poly int, ok bool)",
              "doc": "RandomPointAround picks an area-weighted uniformly random point within Euclidean distance radius\nof center on polygons allowed by DefaultNavFilter that are reachable from center's polygon.\nDisconnected islands are never returned, and results are bit-identical across runs and platforms for the same seed.\n\nReturns (zero, -1, false) if m is empty, rng is nil, radius < 0, or center lies outside the allowed mesh.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1156
            },
            {
              "name": "RandomPointAroundWithFilter",
              "anchor": "NavMesh.RandomPointAroundWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) RandomPointAroundWithFilter(center core.Point, radius float32, rng *random.Stream, filter NavFilter) (point core.Point, poly int, ok bool)",
              "doc": "RandomPointAroundWithFilter behaves like RandomPointAround while restricting reachability and sampling to polygons allowed by filter.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1161
            },
            {
              "name": "RandomPointWithFilter",
              "anchor": "NavMesh.RandomPointWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) RandomPointWithFilter(rng *random.Stream, filter NavFilter) (point core.Point, poly int, ok bool)",
              "doc": "RandomPointWithFilter picks an area-weighted uniformly random point anywhere on polygons allowed by filter,\nusing rng. Results are bit-identical across runs and platforms for the same seed.\n\nReturns (zero, -1, false) if m is empty, rng is nil, or no polygons pass filter.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 949
            },
            {
              "name": "Raycast",
              "anchor": "NavMesh.Raycast",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) Raycast(start, target core.Point) (NavRaycastHit, bool)",
              "doc": "Raycast casts a segment along the mesh surface from start toward target using DefaultNavFilter,\nwalking shared-edge portals across allowed polygons until reaching target or hitting a boundary edge\nor disallowed polygon.\n\nThe second return value equals hit.Hit: false means unobstructed line of sight across the mesh\n(hit.T == 1, hit.Point == target, hit.Poly >= 0); true means the segment was obstructed\n(or start lies outside the allowed mesh, in which case hit.Poly == -1 and hit.T == 0).\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 481
            },
            {
              "name": "RaycastWithFilter",
              "anchor": "NavMesh.RaycastWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) RaycastWithFilter(start, target core.Point, filter NavFilter) (NavRaycastHit, bool)",
              "doc": "RaycastWithFilter behaves like Raycast while restricting traversal to polygons allowed by filter.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 486
            },
            {
              "name": "Revision",
              "anchor": "NavMesh.Revision",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) Revision() uint64",
              "doc": "Revision returns a monotonically increasing number bumped whenever the mesh topology, area costs/flags, or link flags change.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 541
            },
            {
              "name": "SetEdgeFlags",
              "anchor": "NavMesh.SetEdgeFlags",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) SetEdgeFlags(fromPoly, toPoly int, flags uint32) bool",
              "doc": "SetEdgeFlags sets custom flags on the shared-edge portal from fromPoly to toPoly and bumps the mesh revision.\nReturns false if no shared-edge portal connects fromPoly to toPoly.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 699
            },
            {
              "name": "SetPolygonArea",
              "anchor": "NavMesh.SetPolygonArea",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) SetPolygonArea(index int, area NavArea)",
              "doc": "SetPolygonArea updates the area ID of polygon index at runtime without rebuilding the mesh.\nOut-of-range indices are ignored.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 373
            },
            {
              "name": "SetPolygonFlags",
              "anchor": "NavMesh.SetPolygonFlags",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) SetPolygonFlags(index int, flags NavFlags)",
              "doc": "SetPolygonFlags replaces the runtime traversal flags of polygon index without rebuilding the mesh.\nOut-of-range indices are ignored.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 393
            },
            {
              "name": "StartSearch",
              "anchor": "NavMesh.StartSearch",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) StartSearch(start, goal core.Point, opts PathOptions) *NavMeshSearch",
              "doc": "StartSearch begins an incremental 2D NavMesh path search from start to goal under DefaultNavFilter and opts.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 767
            },
            {
              "name": "StartSearchWithFilter",
              "anchor": "NavMesh.StartSearchWithFilter",
              "recv": "*NavMesh",
              "decl": "func (m *NavMesh) StartSearchWithFilter(start, goal core.Point, filter NavFilter, opts PathOptions) *NavMeshSearch",
              "doc": "StartSearchWithFilter begins an incremental 2D NavMesh path search from start to goal under filter and opts.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 772
            }
          ]
        },
        {
          "name": "NavMeshGenerator",
          "anchor": "NavMeshGenerator",
          "decl": "type NavMeshGenerator struct {\n\t// Mesh is the 2D navigation mesh to sample.\n\tMesh *NavMesh\n\t// Center selects the origin for MaxRadius filtering (defaults to OriginQuerier).\n\tCenter QueryOrigin\n\t// CustomCenter is used when Center is OriginCustom.\n\tCustomCenter math2d.Vec2\n\t// MaxRadius restricts samples to within MaxRadius of Center (<= 0 samples the whole mesh).\n\tMaxRadius float32\n\t// Spacing sets the world spacing between grid samples inside the mesh (<= 0 emits polygon centroids).\n\tSpacing float32\n}",
          "doc": "NavMeshGenerator emits deterministic sample points lying inside a 2D NavMesh.\n\nWhen Spacing > 0, it samples a regular grid clipped to the mesh bounds (and optional MaxRadius)\nkeeping every point contained in the mesh. When Spacing <= 0, it emits each polygon's centroid.\n",
          "file": "pkg/ai/tactical.go",
          "line": 489,
          "members": [
            {
              "name": "Mesh",
              "anchor": "NavMeshGenerator.Mesh",
              "kind": "field",
              "doc": "Mesh is the 2D navigation mesh to sample."
            },
            {
              "name": "Center",
              "anchor": "NavMeshGenerator.Center",
              "kind": "field",
              "doc": "Center selects the origin for MaxRadius filtering (defaults to OriginQuerier)."
            },
            {
              "name": "CustomCenter",
              "anchor": "NavMeshGenerator.CustomCenter",
              "kind": "field",
              "doc": "CustomCenter is used when Center is OriginCustom."
            },
            {
              "name": "MaxRadius",
              "anchor": "NavMeshGenerator.MaxRadius",
              "kind": "field",
              "doc": "MaxRadius restricts samples to within MaxRadius of Center (<= 0 samples the whole mesh)."
            },
            {
              "name": "Spacing",
              "anchor": "NavMeshGenerator.Spacing",
              "kind": "field",
              "doc": "Spacing sets the world spacing between grid samples inside the mesh (<= 0 emits polygon centroids)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Generate",
              "anchor": "NavMeshGenerator.Generate",
              "recv": "*NavMeshGenerator",
              "decl": "func (g *NavMeshGenerator) Generate(ctx TacticalContext, dst []TacticalCandidate) []TacticalCandidate",
              "doc": "Generate appends NavMesh sample candidates in deterministic order with zero heap allocations.\n",
              "file": "pkg/ai/tactical.go",
              "line": 503
            }
          ]
        },
        {
          "name": "NavMeshQuery",
          "anchor": "NavMeshQuery",
          "decl": "type NavMeshQuery struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavMeshQuery holds reusable generation-stamped scratch buffers for zero-allocation\npathfinding and spatial queries over a 2D NavMesh.\n\nCreate one NavMeshQuery per worker or system with NewNavMeshQuery(mesh) when running\nrepeated queries or querying a shared read-only NavMesh from separate goroutines.\nA NavMeshQuery is not safe for concurrent use by multiple goroutines.\n",
          "file": "pkg/ai/navmesh_query.go",
          "line": 1332,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNavMeshQuery",
              "anchor": "NewNavMeshQuery",
              "decl": "func NewNavMeshQuery(mesh *NavMesh) *NavMeshQuery",
              "doc": "NewNavMeshQuery creates a reusable query instance bound to mesh.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1368
            }
          ],
          "methods": [
            {
              "name": "FindCorridorInto",
              "anchor": "NavMeshQuery.FindCorridorInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindCorridorInto(dst []int, start, goal core.Point) ([]int, bool)",
              "doc": "FindCorridorInto finds the polygon corridor from start to goal under DefaultNavFilter,\nwriting polygon indices into dst[:0] with zero heap allocations after warm-up.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1770
            },
            {
              "name": "FindCorridorWithFilterInto",
              "anchor": "NavMeshQuery.FindCorridorWithFilterInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindCorridorWithFilterInto(dst []int, start, goal core.Point, filter NavFilter) ([]int, bool)",
              "doc": "FindCorridorWithFilterInto finds the minimum-cost polygon corridor from start to goal restricted to filter,\nwriting polygon indices into dst[:0] with zero heap allocations after warm-up.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1776
            },
            {
              "name": "FindPathInto",
              "anchor": "NavMeshQuery.FindPathInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindPathInto(dst []core.Point, start, goal core.Point) ([]core.Point, bool)",
              "doc": "FindPathInto finds the shortest path inside q's mesh from start to goal using DefaultNavFilter,\nwriting waypoints into dst[:0] and reusing q's internal buffers so repeated calls perform zero heap allocations\nonce dst and q are warmed up.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1436
            },
            {
              "name": "FindPathWithFilterAndOptionsInto",
              "anchor": "NavMeshQuery.FindPathWithFilterAndOptionsInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindPathWithFilterAndOptionsInto(dst []core.Point, start, goal core.Point, filter NavFilter, opts PathOptions) NavPathResult",
              "doc": "FindPathWithFilterAndOptionsInto runs a bounded or partial 2D NavMesh search restricted to filter under opts,\nwriting the resulting waypoints into dst[:0] and reusing q's internal buffers with zero heap allocations after warm-up.\nThe returned res.Links slice reuses q's internal buffer (like dst) and is overwritten on subsequent queries on q.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1710
            },
            {
              "name": "FindPathWithFilterInto",
              "anchor": "NavMeshQuery.FindPathWithFilterInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindPathWithFilterInto(dst []core.Point, start, goal core.Point, filter NavFilter) ([]core.Point, bool)",
              "doc": "FindPathWithFilterInto finds the minimum-cost path inside q's mesh from start to goal restricted to filter,\nwriting waypoints into dst[:0] and reusing q's internal buffers with zero heap allocations after warm-up.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1442
            },
            {
              "name": "Mesh",
              "anchor": "NavMeshQuery.Mesh",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) Mesh() *NavMesh",
              "doc": "Mesh returns the NavMesh currently bound to q.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1373
            },
            {
              "name": "MoveAlongSurface",
              "anchor": "NavMeshQuery.MoveAlongSurface",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) MoveAlongSurface(start, target core.Point) (NavMoveResult, bool)",
              "doc": "MoveAlongSurface delegates to q's NavMesh.MoveAlongSurface.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2033
            },
            {
              "name": "MoveAlongSurfaceInto",
              "anchor": "NavMeshQuery.MoveAlongSurfaceInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) MoveAlongSurfaceInto(visitedDst []int, start, target core.Point) (NavMoveResult, bool)",
              "doc": "MoveAlongSurfaceInto slides from start toward target under DefaultNavFilter, appending visited polygon IDs into visitedDst[:0].\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2046
            },
            {
              "name": "MoveAlongSurfaceWithFilter",
              "anchor": "NavMeshQuery.MoveAlongSurfaceWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) MoveAlongSurfaceWithFilter(start, target core.Point, filter NavFilter) (NavMoveResult, bool)",
              "doc": "MoveAlongSurfaceWithFilter delegates to q's NavMesh.MoveAlongSurfaceWithFilter.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2038
            },
            {
              "name": "MoveAlongSurfaceWithFilterInto",
              "anchor": "NavMeshQuery.MoveAlongSurfaceWithFilterInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) MoveAlongSurfaceWithFilterInto(visitedDst []int, start, target core.Point, filter NavFilter) (NavMoveResult, bool)",
              "doc": "MoveAlongSurfaceWithFilterInto slides from start toward target under filter, appending visited polygon IDs into visitedDst[:0].\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2051
            },
            {
              "name": "NearestPoint",
              "anchor": "NavMeshQuery.NearestPoint",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) NearestPoint(p, extent core.Point) (core.Point, int, bool)",
              "doc": "NearestPoint delegates to q's NavMesh.NearestPoint.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1972
            },
            {
              "name": "NearestPointWithFilter",
              "anchor": "NavMeshQuery.NearestPointWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) NearestPointWithFilter(p, extent core.Point, filter NavFilter) (core.Point, int, bool)",
              "doc": "NearestPointWithFilter delegates to q's NavMesh.NearestPointWithFilter.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1980
            },
            {
              "name": "RandomPoint",
              "anchor": "NavMeshQuery.RandomPoint",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RandomPoint(rng *random.Stream) (core.Point, int, bool)",
              "doc": "RandomPoint delegates to q's NavMesh.RandomPoint.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2004
            },
            {
              "name": "RandomPointAround",
              "anchor": "NavMeshQuery.RandomPointAround",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RandomPointAround(center core.Point, radius float32, rng *random.Stream) (core.Point, int, bool)",
              "doc": "RandomPointAround picks a random reachable point within radius of center using q's reusable BFS and clipping buffers.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2020
            },
            {
              "name": "RandomPointAroundWithFilter",
              "anchor": "NavMeshQuery.RandomPointAroundWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RandomPointAroundWithFilter(center core.Point, radius float32, rng *random.Stream, filter NavFilter) (core.Point, int, bool)",
              "doc": "RandomPointAroundWithFilter picks a random reachable point within radius of center allowed by filter using q's reusable buffers.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2025
            },
            {
              "name": "RandomPointWithFilter",
              "anchor": "NavMeshQuery.RandomPointWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RandomPointWithFilter(rng *random.Stream, filter NavFilter) (core.Point, int, bool)",
              "doc": "RandomPointWithFilter delegates to q's NavMesh.RandomPointWithFilter.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 2012
            },
            {
              "name": "Raycast",
              "anchor": "NavMeshQuery.Raycast",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) Raycast(start, target core.Point) (NavRaycastHit, bool)",
              "doc": "Raycast delegates to q's NavMesh.Raycast.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1988
            },
            {
              "name": "RaycastWithFilter",
              "anchor": "NavMeshQuery.RaycastWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RaycastWithFilter(start, target core.Point, filter NavFilter) (NavRaycastHit, bool)",
              "doc": "RaycastWithFilter delegates to q's NavMesh.RaycastWithFilter.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1996
            },
            {
              "name": "SetMesh",
              "anchor": "NavMeshQuery.SetMesh",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) SetMesh(mesh *NavMesh)",
              "doc": "SetMesh rebinds q to mesh while keeping its allocated scratch capacity for reuse.\n",
              "file": "pkg/ai/navmesh_query.go",
              "line": 1381
            }
          ]
        },
        {
          "name": "NavMeshSearch",
          "anchor": "NavMeshSearch",
          "decl": "type NavMeshSearch struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavMeshSearch runs a deterministic 2D NavMesh portal A* search incrementally across bounded Step calls.\n\nStepping a search with any positive per-step expansion budget produces the exact same path,\nlinks, partial flag, and expansion count as NavMesh.FindPathWithOptions / FindPathWithFilterAndOptions.\n*NavMeshSearch implements IncrementalSearch.\n",
          "file": "pkg/ai/navmesh.go",
          "line": 880,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNavMeshSearch",
              "anchor": "NewNavMeshSearch",
              "decl": "func NewNavMeshSearch(m *NavMesh, start, goal core.Point, opts PathOptions) *NavMeshSearch",
              "doc": "NewNavMeshSearch initializes an incremental 2D NavMesh search from start to goal under DefaultNavFilter and opts.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 916
            },
            {
              "name": "NewNavMeshSearchWithFilter",
              "anchor": "NewNavMeshSearchWithFilter",
              "decl": "func NewNavMeshSearchWithFilter(m *NavMesh, start, goal core.Point, filter NavFilter, opts PathOptions) *NavMeshSearch",
              "doc": "NewNavMeshSearchWithFilter initializes an incremental 2D NavMesh search from start to goal under filter and opts.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 921
            }
          ],
          "methods": [
            {
              "name": "Expansions",
              "anchor": "NavMeshSearch.Expansions",
              "recv": "*NavMeshSearch",
              "decl": "func (s *NavMeshSearch) Expansions() int",
              "doc": "Expansions returns the cumulative number of portal nodes expanded so far.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 1236
            },
            {
              "name": "Result",
              "anchor": "NavMeshSearch.Result",
              "recv": "*NavMeshSearch",
              "decl": "func (s *NavMeshSearch) Result() NavPathResult",
              "doc": "Result returns the search outcome once finished (or a result with Found == false while still in progress).\n",
              "file": "pkg/ai/navmesh.go",
              "line": 1244
            },
            {
              "name": "Status",
              "anchor": "NavMeshSearch.Status",
              "recv": "*NavMeshSearch",
              "decl": "func (s *NavMeshSearch) Status() SearchStatus",
              "doc": "Status returns the search's current status.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 1228
            },
            {
              "name": "Step",
              "anchor": "NavMeshSearch.Step",
              "recv": "*NavMeshSearch",
              "decl": "func (s *NavMeshSearch) Step(maxExpansions int) (status SearchStatus, expansions int)",
              "doc": "Step advances the search by at most maxExpansions portal node expansions and returns\nthe updated status and exact number of expansions performed.\nWhen maxExpansions <= 0 or the search is already finished, Step performs 0 expansions.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 1106
            }
          ]
        },
        {
          "name": "NavMoveResult",
          "anchor": "NavMoveResult",
          "decl": "type NavMoveResult struct {\n\t// Point is the final position clamped onto the mesh surface.\n\tPoint core.Point\n\t// Poly is the index of the final polygon containing Point, or -1 if start lies outside the allowed mesh.\n\tPoly int\n\t// Visited is the ordered sequence of polygon indices traversed from start to Point.\n\tVisited []int\n\t// HitBoundary is true if movement was constrained by a mesh boundary edge or disallowed polygon.\n\tHitBoundary bool\n}",
          "doc": "NavMoveResult describes the outcome of sliding a position across a 2D NavMesh surface.\n",
          "file": "pkg/ai/navmesh_query.go",
          "line": 852,
          "members": [
            {
              "name": "Point",
              "anchor": "NavMoveResult.Point",
              "kind": "field",
              "doc": "Point is the final position clamped onto the mesh surface."
            },
            {
              "name": "Poly",
              "anchor": "NavMoveResult.Poly",
              "kind": "field",
              "doc": "Poly is the index of the final polygon containing Point, or -1 if start lies outside the allowed mesh."
            },
            {
              "name": "Visited",
              "anchor": "NavMoveResult.Visited",
              "kind": "field",
              "doc": "Visited is the ordered sequence of polygon indices traversed from start to Point."
            },
            {
              "name": "HitBoundary",
              "anchor": "NavMoveResult.HitBoundary",
              "kind": "field",
              "doc": "HitBoundary is true if movement was constrained by a mesh boundary edge or disallowed polygon."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavObstacle",
          "anchor": "NavObstacle",
          "decl": "type NavObstacle struct {\n\tKind        NavObstacleKind\n\tMode        NavObstacleMode\n\tCenter      core.Point   // Box and Circle center\n\tHalfExtents core.Point   // Box half-width and half-height (must be > 0)\n\tAngle       float32      // Optional Box rotation in radians (CCW)\n\tRadius      float32      // Circle radius (must be > 0)\n\tSegments    int          // Circle approximation segments (default 12, clamped to [6, 64])\n\tVertices    []core.Point // Polygon vertices (at least 3; convex or concave, any winding)\n\tMargin      float32      // Optional outward inflation in world units (e.g. agent radius); >= 0\n\tArea        NavArea      // Applied in NavObstacleMark mode when non-zero (or when Flags is set)\n\tFlags       NavFlags     // Applied in NavObstacleMark mode (defaults to NavFlagDisabled when both Area and Flags are 0)\n}",
          "doc": "NavObstacle describes a temporary runtime obstacle applied to a 2D TiledNavMesh.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 135,
          "members": [
            {
              "name": "Kind",
              "anchor": "NavObstacle.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "NavObstacle.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Center",
              "anchor": "NavObstacle.Center",
              "kind": "field",
              "doc": "Box and Circle center"
            },
            {
              "name": "HalfExtents",
              "anchor": "NavObstacle.HalfExtents",
              "kind": "field",
              "doc": "Box half-width and half-height (must be > 0)"
            },
            {
              "name": "Angle",
              "anchor": "NavObstacle.Angle",
              "kind": "field",
              "doc": "Optional Box rotation in radians (CCW)"
            },
            {
              "name": "Radius",
              "anchor": "NavObstacle.Radius",
              "kind": "field",
              "doc": "Circle radius (must be > 0)"
            },
            {
              "name": "Segments",
              "anchor": "NavObstacle.Segments",
              "kind": "field",
              "doc": "Circle approximation segments (default 12, clamped to [6, 64])"
            },
            {
              "name": "Vertices",
              "anchor": "NavObstacle.Vertices",
              "kind": "field",
              "doc": "Polygon vertices (at least 3; convex or concave, any winding)"
            },
            {
              "name": "Margin",
              "anchor": "NavObstacle.Margin",
              "kind": "field",
              "doc": "Optional outward inflation in world units (e.g. agent radius); >= 0"
            },
            {
              "name": "Area",
              "anchor": "NavObstacle.Area",
              "kind": "field",
              "doc": "Applied in NavObstacleMark mode when non-zero (or when Flags is set)"
            },
            {
              "name": "Flags",
              "anchor": "NavObstacle.Flags",
              "kind": "field",
              "doc": "Applied in NavObstacleMark mode (defaults to NavFlagDisabled when both Area and Flags are 0)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NavBoxObstacle",
              "anchor": "NavBoxObstacle",
              "decl": "func NavBoxObstacle(minPt, maxPt core.Point) NavObstacle",
              "doc": "NavBoxObstacle constructs an axis-aligned 2D box obstacle spanning [minPt, maxPt].\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 150
            },
            {
              "name": "NavCircleObstacle",
              "anchor": "NavCircleObstacle",
              "decl": "func NavCircleObstacle(center core.Point, radius float32) NavObstacle",
              "doc": "NavCircleObstacle constructs a 2D circular obstacle centered at center with radius.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 173
            },
            {
              "name": "NavOrientedBoxObstacle",
              "anchor": "NavOrientedBoxObstacle",
              "decl": "func NavOrientedBoxObstacle(center, halfExtents core.Point, angleRad float32) NavObstacle",
              "doc": "NavOrientedBoxObstacle constructs a rotated 2D box obstacle centered at center with halfExtents and rotation angleRad.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 162
            },
            {
              "name": "NavPolygonObstacle",
              "anchor": "NavPolygonObstacle",
              "decl": "func NavPolygonObstacle(verts []core.Point) NavObstacle",
              "doc": "NavPolygonObstacle constructs a 2D polygonal obstacle (convex or concave) from verts.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 183
            }
          ],
          "methods": []
        },
        {
          "name": "NavObstacleID",
          "anchor": "NavObstacleID",
          "decl": "type NavObstacleID uint64",
          "doc": "NavObstacleID identifies a dynamic obstacle registered on a TiledNavMesh.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 109,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavObstacleKind",
          "anchor": "NavObstacleKind",
          "decl": "type NavObstacleKind uint8",
          "doc": "NavObstacleKind selects the geometric shape of a 2D NavObstacle.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 112,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NavObstacleBox",
                  "anchor": "NavObstacleBox"
                },
                {
                  "name": "NavObstacleCircle",
                  "anchor": "NavObstacleCircle"
                },
                {
                  "name": "NavObstaclePolygon",
                  "anchor": "NavObstaclePolygon"
                }
              ],
              "decl": "const (\n\t// NavObstacleBox is an axis-aligned or rotated 2D box (Center, HalfExtents, Angle).\n\tNavObstacleBox NavObstacleKind = iota\n\t// NavObstacleCircle is a 2D circle approximated by a circumscribed regular polygon (Center, Radius, Segments).\n\tNavObstacleCircle\n\t// NavObstaclePolygon is an arbitrary simple 2D polygon (Vertices, convex or concave).\n\tNavObstaclePolygon\n)",
              "doc": "",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 114
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavObstacleMode",
          "anchor": "NavObstacleMode",
          "decl": "type NavObstacleMode uint8",
          "doc": "NavObstacleMode selects how a dynamic obstacle modifies walkable polygons in touched tiles.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 124,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NavObstacleCarve",
                  "anchor": "NavObstacleCarve"
                },
                {
                  "name": "NavObstacleMark",
                  "anchor": "NavObstacleMark"
                }
              ],
              "decl": "const (\n\t// NavObstacleCarve subtracts the obstacle footprint from walkable polygons so paths detour around it.\n\tNavObstacleCarve NavObstacleMode = iota\n\t// NavObstacleMark splits walkable polygons along the obstacle footprint and applies Area/Flags\n\t// (defaulting to NavFlagDisabled when both Area and Flags are zero) to the covered polygons.\n\tNavObstacleMark\n)",
              "doc": "",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 126
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavOffMeshLink",
          "anchor": "NavOffMeshLink",
          "decl": "type NavOffMeshLink struct {\n\t// Start and End are the world-space endpoints on (or within Radius of) the mesh.\n\tStart core.Point\n\tEnd   core.Point\n\t// Radius is the optional endpoint snap and agent entry tolerance in world units.\n\t// When positive, an endpoint outside a polygon snaps to the nearest polygon point within Radius,\n\t// and NavAgent uses max(entryRadius, Radius) when entering the link.\n\t// When zero, endpoints must lie on or inside a polygon. Negative or non-finite values are rejected.\n\tRadius float32\n\t// Bidirectional adds portals in both Start->End and End->Start directions when true.\n\tBidirectional bool\n\t// Flags stores game-defined link flags; NavLinkOffMesh is always set automatically.\n\tFlags uint32\n\t// ID is an optional game-defined link identifier delivered in NavLinkEvent.LinkID and NavPathLink.LinkID.\n\tID int\n\t// Cost overrides the A* traversal cost when positive; <= 0 uses Euclidean distance.\n\tCost float32\n\t// Area assigns a NavArea to the link so NavFilter can exclude it or scale its traversal cost.\n\t// Defaults to NavAreaDefault (0).\n\tArea NavArea\n\t// UserData holds optional game-defined metadata (such as \"jump\", \"ladder\", \"teleport\", or a custom value)\n\t// carried through to NavPathLink and NavLinkEvent.\n\tUserData any\n}",
          "doc": "NavOffMeshLink describes a custom off-mesh connection between two points on a 2D NavMesh\n(such as a jump, drop-down, ladder, door, or teleporter).\n",
          "file": "pkg/ai/navmesh.go",
          "line": 70,
          "members": [
            {
              "name": "Start",
              "anchor": "NavOffMeshLink.Start",
              "kind": "field",
              "doc": "Start and End are the world-space endpoints on (or within Radius of) the mesh."
            },
            {
              "name": "End",
              "anchor": "NavOffMeshLink.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "NavOffMeshLink.Radius",
              "kind": "field",
              "doc": "Radius is the optional endpoint snap and agent entry tolerance in world units.\nWhen positive, an endpoint outside a polygon snaps to the nearest polygon point within Radius,\nand NavAgent uses max(entryRadius, Radius) when entering the link.\nWhen zero, endpoints must lie on or inside a polygon. Negative or non-finite values are rejected."
            },
            {
              "name": "Bidirectional",
              "anchor": "NavOffMeshLink.Bidirectional",
              "kind": "field",
              "doc": "Bidirectional adds portals in both Start->End and End->Start directions when true."
            },
            {
              "name": "Flags",
              "anchor": "NavOffMeshLink.Flags",
              "kind": "field",
              "doc": "Flags stores game-defined link flags; NavLinkOffMesh is always set automatically."
            },
            {
              "name": "ID",
              "anchor": "NavOffMeshLink.ID",
              "kind": "field",
              "doc": "ID is an optional game-defined link identifier delivered in NavLinkEvent.LinkID and NavPathLink.LinkID."
            },
            {
              "name": "Cost",
              "anchor": "NavOffMeshLink.Cost",
              "kind": "field",
              "doc": "Cost overrides the A* traversal cost when positive; <= 0 uses Euclidean distance."
            },
            {
              "name": "Area",
              "anchor": "NavOffMeshLink.Area",
              "kind": "field",
              "doc": "Area assigns a NavArea to the link so NavFilter can exclude it or scale its traversal cost.\nDefaults to NavAreaDefault (0)."
            },
            {
              "name": "UserData",
              "anchor": "NavOffMeshLink.UserData",
              "kind": "field",
              "doc": "UserData holds optional game-defined metadata (such as \"jump\", \"ladder\", \"teleport\", or a custom value)\ncarried through to NavPathLink and NavLinkEvent."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavPathLink",
          "anchor": "NavPathLink",
          "decl": "type NavPathLink struct {\n\t// StartIndex is the index in NavPathResult.Path where the off-mesh link begins.\n\tStartIndex int\n\t// EndIndex is the index in NavPathResult.Path where the off-mesh link ends (StartIndex + 1).\n\tEndIndex int\n\t// FromPoly and ToPoly are the source and destination polygon indices connected by the link.\n\tFromPoly int\n\tToPoly   int\n\t// Start and End are the world-space entry and exit positions of the traversed link direction.\n\tStart core.Point\n\tEnd   core.Point\n\t// Radius is the link's configured connection/entry radius.\n\tRadius float32\n\t// Area is the link's navigation area.\n\tArea NavArea\n\t// Flags are the link's flags (including NavLinkOffMesh).\n\tFlags uint32\n\t// LinkID is the link's configured identifier.\n\tLinkID int\n\t// UserData is the link's configured custom metadata.\n\tUserData any\n}",
          "doc": "NavPathLink marks a segment in NavPathResult.Path that traverses an off-mesh link.\nPath[StartIndex] is the link's entry point on the mesh and Path[EndIndex] is its exit point\n(with EndIndex == StartIndex + 1).\n",
          "file": "pkg/ai/navmesh.go",
          "line": 98,
          "members": [
            {
              "name": "StartIndex",
              "anchor": "NavPathLink.StartIndex",
              "kind": "field",
              "doc": "StartIndex is the index in NavPathResult.Path where the off-mesh link begins."
            },
            {
              "name": "EndIndex",
              "anchor": "NavPathLink.EndIndex",
              "kind": "field",
              "doc": "EndIndex is the index in NavPathResult.Path where the off-mesh link ends (StartIndex + 1)."
            },
            {
              "name": "FromPoly",
              "anchor": "NavPathLink.FromPoly",
              "kind": "field",
              "doc": "FromPoly and ToPoly are the source and destination polygon indices connected by the link."
            },
            {
              "name": "ToPoly",
              "anchor": "NavPathLink.ToPoly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Start",
              "anchor": "NavPathLink.Start",
              "kind": "field",
              "doc": "Start and End are the world-space entry and exit positions of the traversed link direction."
            },
            {
              "name": "End",
              "anchor": "NavPathLink.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "NavPathLink.Radius",
              "kind": "field",
              "doc": "Radius is the link's configured connection/entry radius."
            },
            {
              "name": "Area",
              "anchor": "NavPathLink.Area",
              "kind": "field",
              "doc": "Area is the link's navigation area."
            },
            {
              "name": "Flags",
              "anchor": "NavPathLink.Flags",
              "kind": "field",
              "doc": "Flags are the link's flags (including NavLinkOffMesh)."
            },
            {
              "name": "LinkID",
              "anchor": "NavPathLink.LinkID",
              "kind": "field",
              "doc": "LinkID is the link's configured identifier."
            },
            {
              "name": "UserData",
              "anchor": "NavPathLink.UserData",
              "kind": "field",
              "doc": "UserData is the link's configured custom metadata."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavPathResult",
          "anchor": "NavPathResult",
          "decl": "type NavPathResult struct {\n\tPath []core.Point\n\t// Links lists each segment of Path that traverses an off-mesh link, in path order.\n\t// For each link, Path[link.StartIndex] is the entry point and Path[link.EndIndex]\n\t// (with EndIndex == StartIndex + 1) is the exit point.\n\tLinks      []NavPathLink\n\tFound      bool // true when a complete or partial path was produced\n\tPartial    bool // true when Path ends at the closest reachable point rather than goal\n\tExhausted  bool // true when the search stopped because MaxExpansions was reached\n\tExpansions int  // total number of portal nodes expanded during the search\n}",
          "doc": "NavPathResult is the outcome of a bounded or incremental 2D NavMesh search.\n",
          "file": "pkg/ai/navmesh.go",
          "line": 509,
          "members": [
            {
              "name": "Path",
              "anchor": "NavPathResult.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Links",
              "anchor": "NavPathResult.Links",
              "kind": "field",
              "doc": "Links lists each segment of Path that traverses an off-mesh link, in path order.\nFor each link, Path[link.StartIndex] is the entry point and Path[link.EndIndex]\n(with EndIndex == StartIndex + 1) is the exit point."
            },
            {
              "name": "Found",
              "anchor": "NavPathResult.Found",
              "kind": "field",
              "doc": "true when a complete or partial path was produced"
            },
            {
              "name": "Partial",
              "anchor": "NavPathResult.Partial",
              "kind": "field",
              "doc": "true when Path ends at the closest reachable point rather than goal"
            },
            {
              "name": "Exhausted",
              "anchor": "NavPathResult.Exhausted",
              "kind": "field",
              "doc": "true when the search stopped because MaxExpansions was reached"
            },
            {
              "name": "Expansions",
              "anchor": "NavPathResult.Expansions",
              "kind": "field",
              "doc": "total number of portal nodes expanded during the search"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "HasLinks",
              "anchor": "NavPathResult.HasLinks",
              "recv": "NavPathResult",
              "decl": "func (r NavPathResult) HasLinks() bool",
              "doc": "HasLinks reports whether r traverses at least one off-mesh link.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 522
            },
            {
              "name": "LinkAt",
              "anchor": "NavPathResult.LinkAt",
              "recv": "NavPathResult",
              "decl": "func (r NavPathResult) LinkAt(segmentIndex int) (NavPathLink, bool)",
              "doc": "LinkAt returns the off-mesh link traversed by path segment segmentIndex (from Path[segmentIndex]\nto Path[segmentIndex+1]), or (zero, false) when that segment is ordinary walking movement.\n",
              "file": "pkg/ai/navmesh.go",
              "line": 528
            }
          ]
        },
        {
          "name": "NavPathWatchID",
          "anchor": "NavPathWatchID",
          "decl": "type NavPathWatchID uint64",
          "doc": "NavPathWatchID identifies a path-invalidation watcher registered on a TiledNavMesh.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 106,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavPolyRef",
          "anchor": "NavPolyRef",
          "decl": "type NavPolyRef struct {\n\tTile NavTileCoord\n\tPoly int32\n\tSalt uint32\n}",
          "doc": "NavPolyRef uniquely identifies a walkable convex polygon inside a 2D TiledNavMesh.\nSalt increments whenever the owning tile is replaced, rebuilt, or removed so stale\nreferences are detected in O(1).\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 66,
          "members": [
            {
              "name": "Tile",
              "anchor": "NavPolyRef.Tile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Poly",
              "anchor": "NavPolyRef.Poly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Salt",
              "anchor": "NavPolyRef.Salt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "NavPolyRef.Valid",
              "recv": "NavPolyRef",
              "decl": "func (r NavPolyRef) Valid() bool",
              "doc": "Valid reports whether r holds a non-zero tile salt and non-negative polygon index.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 73
            }
          ]
        },
        {
          "name": "NavPolygonInput",
          "anchor": "NavPolygonInput",
          "decl": "type NavPolygonInput struct {\n\tVertices []core.Point `yaml:\"vertices\"`\n\tArea     NavArea      `yaml:\"area,omitempty\"`\n\tFlags    NavFlags     `yaml:\"flags,omitempty\"`\n}",
          "doc": "NavPolygonInput describes a single convex 2D polygon together with its\ninitial area ID and runtime traversal flags for BuildNavMeshWithAreas.\nA zero Flags value defaults to NavFlagWalk.\n",
          "file": "pkg/ai/navmesh_filter.go",
          "line": 64,
          "members": [
            {
              "name": "Vertices",
              "anchor": "NavPolygonInput.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Area",
              "anchor": "NavPolygonInput.Area",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "NavPolygonInput.Flags",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavRaycastHit",
          "anchor": "NavRaycastHit",
          "decl": "type NavRaycastHit struct {\n\t// Point is the impact point on the obstructing edge when Hit is true,\n\t// or target when the ray reaches target unobstructed (Hit is false).\n\tPoint core.Point\n\t// Normal is the unit inward normal of the boundary edge that stopped the ray\n\t// (pointing back into the walkable polygon, opposing the ray direction), or zero when Hit is false or Poly < 0.\n\tNormal core.Point\n\t// Poly is the index of the polygon containing Point, or -1 if start lies outside the allowed mesh.\n\tPoly int\n\t// T is the normalized distance along start->target in [0, 1].\n\t// T is 1 when target is reached unobstructed; T is 0 when start is outside the allowed mesh.\n\tT float32\n\t// Hit is true if a mesh boundary edge or disallowed polygon obstructed the ray (or if start is outside the allowed mesh).\n\tHit bool\n}",
          "doc": "NavRaycastHit describes the result of casting a segment along a 2D NavMesh surface.\n",
          "file": "pkg/ai/navmesh_query.go",
          "line": 458,
          "members": [
            {
              "name": "Point",
              "anchor": "NavRaycastHit.Point",
              "kind": "field",
              "doc": "Point is the impact point on the obstructing edge when Hit is true,\nor target when the ray reaches target unobstructed (Hit is false)."
            },
            {
              "name": "Normal",
              "anchor": "NavRaycastHit.Normal",
              "kind": "field",
              "doc": "Normal is the unit inward normal of the boundary edge that stopped the ray\n(pointing back into the walkable polygon, opposing the ray direction), or zero when Hit is false or Poly < 0."
            },
            {
              "name": "Poly",
              "anchor": "NavRaycastHit.Poly",
              "kind": "field",
              "doc": "Poly is the index of the polygon containing Point, or -1 if start lies outside the allowed mesh."
            },
            {
              "name": "T",
              "anchor": "NavRaycastHit.T",
              "kind": "field",
              "doc": "T is the normalized distance along start->target in [0, 1].\nT is 1 when target is reached unobstructed; T is 0 when start is outside the allowed mesh."
            },
            {
              "name": "Hit",
              "anchor": "NavRaycastHit.Hit",
              "kind": "field",
              "doc": "Hit is true if a mesh boundary edge or disallowed polygon obstructed the ray (or if start is outside the allowed mesh)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavTile",
          "anchor": "NavTile",
          "decl": "type NavTile struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavTile is an independently baked 2D navigation tile covering a fixed square region\n[minX, maxX] x [minY, maxY]. A NavTile may be baked off the main thread with BakeNavTile\nand installed into a TiledNavMesh with AddTile, ReplaceTile, or SetTile.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 202,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BakeNavTile",
              "anchor": "BakeNavTile",
              "decl": "func BakeNavTile(coord NavTileCoord, tileSize float32, origin core.Point, polys []NavPolygonInput) *NavTile",
              "doc": "BakeNavTile bakes an independent 2D NavTile for coord from convex walkable polygons polys,\nclipping every polygon to the tile's exact bounds [origin + coord*tileSize, origin + (coord+1)*tileSize].\nDegenerate polygons or polygons outside the tile bounds are omitted.\nBakeNavTile is pure and safe to call concurrently from worker goroutines.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 241
            }
          ],
          "methods": [
            {
              "name": "BasePolygonCount",
              "anchor": "NavTile.BasePolygonCount",
              "recv": "*NavTile",
              "decl": "func (t *NavTile) BasePolygonCount() int",
              "doc": "BasePolygonCount returns the number of base walkable polygons baked into this tile.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 221
            },
            {
              "name": "Bounds",
              "anchor": "NavTile.Bounds",
              "recv": "*NavTile",
              "decl": "func (t *NavTile) Bounds() (minPt, maxPt core.Point)",
              "doc": "Bounds returns the world-space [min, max] rectangle of this tile.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 229
            },
            {
              "name": "Coord",
              "anchor": "NavTile.Coord",
              "recv": "*NavTile",
              "decl": "func (t *NavTile) Coord() NavTileCoord",
              "doc": "Coord returns the tile coordinate this tile was baked for.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 213
            }
          ]
        },
        {
          "name": "NavTileChange",
          "anchor": "NavTileChange",
          "decl": "type NavTileChange struct {\n\tCoord   NavTileCoord\n\tKind    NavTileChangeKind\n\tVersion uint64\n}",
          "doc": "NavTileChange describes a single tile mutation event delivered to tile listeners and path watchers.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 96,
          "members": [
            {
              "name": "Coord",
              "anchor": "NavTileChange.Coord",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "NavTileChange.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "NavTileChange.Version",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavTileChangeKind",
          "anchor": "NavTileChangeKind",
          "decl": "type NavTileChangeKind uint8",
          "doc": "NavTileChangeKind classifies why a tile in a TiledNavMesh changed.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 84,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NavTileAdded",
                  "anchor": "NavTileAdded"
                },
                {
                  "name": "NavTileUpdated",
                  "anchor": "NavTileUpdated"
                },
                {
                  "name": "NavTileRemoved",
                  "anchor": "NavTileRemoved"
                }
              ],
              "decl": "const (\n\t// NavTileAdded indicates a tile was inserted into a previously empty coordinate.\n\tNavTileAdded NavTileChangeKind = iota\n\t// NavTileUpdated indicates an existing tile was replaced or rebuilt (for example due to a dynamic obstacle).\n\tNavTileUpdated\n\t// NavTileRemoved indicates an existing tile was removed from the mesh.\n\tNavTileRemoved\n)",
              "doc": "",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 86
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavTileCoord",
          "anchor": "NavTileCoord",
          "decl": "type NavTileCoord struct {\n\tX, Y int32\n}",
          "doc": "NavTileCoord identifies a fixed-size tile in a 2D TiledNavMesh.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 43,
          "members": [
            {
              "name": "X",
              "anchor": "NavTileCoord.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "NavTileCoord.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavTileVersion",
          "anchor": "NavTileVersion",
          "decl": "type NavTileVersion struct {\n\tCoord   NavTileCoord\n\tVersion uint64\n}",
          "doc": "NavTileVersion records a tile coordinate together with its revision number when a path was computed.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 78,
          "members": [
            {
              "name": "Coord",
              "anchor": "NavTileVersion.Coord",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "NavTileVersion.Version",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NeighborGrid",
          "anchor": "NeighborGrid",
          "decl": "type NeighborGrid struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NeighborGrid is a deterministic 2D uniform spatial hash index for fast,\nzero-allocation neighbor queries during flocking.\n\nAfter an initial warm-up step, Rebuild, Query, and QueryInto reuse all\ninternal slices and perform zero heap allocations per step.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 512,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNeighborGrid",
              "anchor": "NewNeighborGrid",
              "decl": "func NewNeighborGrid(cellSize float32) *NeighborGrid",
              "doc": "NewNeighborGrid returns a 2D NeighborGrid with the given spatial cell size.\nCell sizes less than or equal to 0 default to 32.\n",
              "file": "pkg/ai/steering_ext.go",
              "line": 527
            }
          ],
          "methods": [
            {
              "name": "Query",
              "anchor": "NeighborGrid.Query",
              "recv": "*NeighborGrid",
              "decl": "func (g *NeighborGrid) Query(pos core.Point, radius float32) []Agent",
              "doc": "Query returns all indexed agents within radius of pos using an internal\nscratch slice owned by g. The returned slice is overwritten by subsequent\nQuery calls; use QueryInto to write into a caller-owned buffer.\n",
              "file": "pkg/ai/steering_ext.go",
              "line": 609
            },
            {
              "name": "QueryInto",
              "anchor": "NeighborGrid.QueryInto",
              "recv": "*NeighborGrid",
              "decl": "func (g *NeighborGrid) QueryInto(dst []Agent, pos core.Point, radius float32) []Agent",
              "doc": "QueryInto writes all indexed agents within radius of pos into dst[:0] and\nreturns the resulting slice.\n",
              "file": "pkg/ai/steering_ext.go",
              "line": 619
            },
            {
              "name": "Rebuild",
              "anchor": "NeighborGrid.Rebuild",
              "recv": "*NeighborGrid",
              "decl": "func (g *NeighborGrid) Rebuild(agents []Agent)",
              "doc": "Rebuild indexes agents into g, reusing internal buffers with zero heap\nallocations once warmed up for a given agent count.\n",
              "file": "pkg/ai/steering_ext.go",
              "line": 554
            }
          ]
        },
        {
          "name": "NeighborGrid3D",
          "anchor": "NeighborGrid3D",
          "decl": "type NeighborGrid3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NeighborGrid3D is a deterministic 3D (or XZ-planar) uniform spatial hash\nindex for fast, zero-allocation neighbor queries during 3D flocking.\n",
          "file": "pkg/ai/steering3d.go",
          "line": 750,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNeighborGrid3D",
              "anchor": "NewNeighborGrid3D",
              "decl": "func NewNeighborGrid3D(cellSize float32, planarXZ bool) *NeighborGrid3D",
              "doc": "NewNeighborGrid3D returns a 3D NeighborGrid3D with the given cell size.\nWhen planarXZ is true, indexing and radius queries project onto the XZ plane.\nCell sizes less than or equal to 0 default to 32.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 767
            }
          ],
          "methods": [
            {
              "name": "Query",
              "anchor": "NeighborGrid3D.Query",
              "recv": "*NeighborGrid3D",
              "decl": "func (g *NeighborGrid3D) Query(pos Vec3, radius float32) []Agent3D",
              "doc": "Query returns all indexed agents within radius of pos using an internal\nscratch slice owned by g.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 856
            },
            {
              "name": "QueryInto",
              "anchor": "NeighborGrid3D.QueryInto",
              "recv": "*NeighborGrid3D",
              "decl": "func (g *NeighborGrid3D) QueryInto(dst []Agent3D, pos Vec3, radius float32) []Agent3D",
              "doc": "QueryInto writes all indexed agents within radius of pos into dst[:0] and\nreturns the resulting slice.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 866
            },
            {
              "name": "Rebuild",
              "anchor": "NeighborGrid3D.Rebuild",
              "recv": "*NeighborGrid3D",
              "decl": "func (g *NeighborGrid3D) Rebuild(agents []Agent3D)",
              "doc": "Rebuild indexes agents into g, reusing internal buffers with zero heap\nallocations once warmed up.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 795
            }
          ]
        },
        {
          "name": "Node",
          "anchor": "Node",
          "decl": "type Node interface {\n\t// Tick advances the node by dt and returns its current status.\n\tTick(dt time.Duration) Status\n\t// Reset clears any in-progress state on this node and its descendants.\n\tReset()\n}",
          "doc": "Node is one node in a behavior tree.\n",
          "file": "pkg/ai/bt.go",
          "line": 66,
          "members": [
            {
              "name": "Tick",
              "anchor": "Node.Tick",
              "kind": "method",
              "doc": "Tick advances the node by dt and returns its current status."
            },
            {
              "name": "Reset",
              "anchor": "Node.Reset",
              "kind": "method",
              "doc": "Reset clears any in-progress state on this node and its descendants."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Action",
              "anchor": "Action",
              "decl": "func Action(fn func(dt time.Duration) Status) Node",
              "doc": "Action wraps fn as a leaf node.\n",
              "file": "pkg/ai/bt.go",
              "line": 691
            },
            {
              "name": "BlackboardCondition",
              "anchor": "BlackboardCondition",
              "decl": "func BlackboardCondition(bb *Blackboard, key string, op BlackboardOp, value BlackboardValue, abort AbortMode, child Node) Node",
              "doc": "BlackboardCondition evaluates key on bb using op and value, optionally wrapping\nchild as a decorator (when child is nil, it acts as a condition leaf returning\nStatusSuccess when the condition holds and StatusFailure otherwise).\n\nWhen abort is AbortSelf or AbortBoth, a key change that falsifies the condition\nwhile child is running resets child and returns StatusFailure on the next tick.\nWhen abort is AbortLower or AbortBoth, a key change that makes the condition\ntrue while a lower-priority sibling in an enclosing Selector is running aborts\nthat lower-priority sibling on the next tick.\n",
              "file": "pkg/ai/bt_blackboard.go",
              "line": 112
            },
            {
              "name": "BuildBehaviorTree",
              "anchor": "BuildBehaviorTree",
              "decl": "func BuildBehaviorTree(doc *BehaviorTreeDoc, bind BTBindings) (Node, error)",
              "doc": "BuildBehaviorTree validates doc, seeds any unset declared blackboard defaults,\nresolves subtrees and bindings, and returns the executable [Node] tree.\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1456
            },
            {
              "name": "BuildBehaviorTreeFS",
              "anchor": "BuildBehaviorTreeFS",
              "decl": "func BuildBehaviorTreeFS(fsys fs.FS, name string, bind BTBindings) (Node, error)",
              "doc": "BuildBehaviorTreeFS loads the behavior tree at name in fsys and builds its runtime [Node].\n",
              "file": "pkg/ai/bt_yaml.go",
              "line": 1443
            },
            {
              "name": "Condition",
              "anchor": "Condition",
              "decl": "func Condition(fn func() bool) Node",
              "doc": "Condition wraps predicate fn as a leaf node returning StatusSuccess when true and StatusFailure when false.\n",
              "file": "pkg/ai/bt.go",
              "line": 714
            },
            {
              "name": "Cooldown",
              "anchor": "Cooldown",
              "decl": "func Cooldown(d time.Duration, child Node) Node",
              "doc": "Cooldown prevents child from starting again for duration d after it succeeds, returning StatusFailure while cooling down.\n",
              "file": "pkg/ai/bt.go",
              "line": 577
            },
            {
              "name": "Failer",
              "anchor": "Failer",
              "decl": "func Failer(child Node) Node",
              "doc": "Failer turns both StatusSuccess and StatusFailure from child into StatusFailure while passing StatusRunning through.\n",
              "file": "pkg/ai/bt.go",
              "line": 444
            },
            {
              "name": "Guard",
              "anchor": "Guard",
              "decl": "func Guard(cond func() bool, child Node) Node",
              "doc": "Guard ticks child only while cond returns true; if cond becomes false while child is running, Guard resets child and returns StatusFailure.\n",
              "file": "pkg/ai/bt.go",
              "line": 642
            },
            {
              "name": "HasAttackToken",
              "anchor": "HasAttackToken",
              "decl": "func HasAttackToken(pool *TokenPool, agentID uint64) Node",
              "doc": "HasAttackToken returns a Condition behavior tree node that succeeds while agentID holds a token in pool.\n",
              "file": "pkg/ai/tokens.go",
              "line": 456
            },
            {
              "name": "Inverter",
              "anchor": "Inverter",
              "decl": "func Inverter(child Node) Node",
              "doc": "Inverter flips StatusSuccess and StatusFailure from child while passing StatusRunning through unchanged.\n",
              "file": "pkg/ai/bt.go",
              "line": 364
            },
            {
              "name": "Named",
              "anchor": "Named",
              "decl": "func Named(name string, child Node) Node",
              "doc": "Named attaches an optional human-readable name to child for inspection, debug overlays,\nand statedump formatting.\n\nNamed is transparent to tree topology: inspecting a Named built-in node reports a single\nentry with child's Kind and children and the given Name. Wrapping a custom Node also\nrecords its last Tick status for inspection. If name is empty, Named returns child unchanged.\n",
              "file": "pkg/ai/bt_inspect.go",
              "line": 46
            },
            {
              "name": "Parallel",
              "anchor": "Parallel",
              "decl": "func Parallel(policy ParallelPolicy, children ...Node) Node",
              "doc": "Parallel ticks all still-running children each tick and finishes according to policy, resetting any remaining running children on completion.\n",
              "file": "pkg/ai/bt.go",
              "line": 264
            },
            {
              "name": "RandomSelector",
              "anchor": "RandomSelector",
              "decl": "func RandomSelector(stream *random.Stream, children ...Node) Node",
              "doc": "RandomSelector tries children in a shuffled order drawn from stream at the start of each run, returning on the first child that succeeds or runs.\n\nWhen a child returns StatusRunning, RandomSelector keeps the chosen order and resumes that child on subsequent ticks; if that child later fails, evaluation continues with the remaining untried children in the shuffled order. A nil stream falls back to declaration order.\n",
              "file": "pkg/ai/bt_ext.go",
              "line": 126
            },
            {
              "name": "RandomSequence",
              "anchor": "RandomSequence",
              "decl": "func RandomSequence(stream *random.Stream, children ...Node) Node",
              "doc": "RandomSequence runs children in a shuffled order drawn from stream at the start of each run, succeeding when every child succeeds and failing on the first failure.\n\nWhen a child returns StatusRunning, RandomSequence keeps the chosen order and resumes at that child on subsequent ticks until completion or Reset. A nil stream falls back to declaration order.\n",
              "file": "pkg/ai/bt_ext.go",
              "line": 202
            },
            {
              "name": "Repeater",
              "anchor": "Repeater",
              "decl": "func Repeater(count int, child Node) Node",
              "doc": "Repeater runs child until it succeeds count times, returning StatusRunning between iterations and StatusFailure immediately if child fails.\n\nWhen count is less than or equal to 0, Repeater repeats indefinitely until child fails.\n",
              "file": "pkg/ai/bt.go",
              "line": 484
            },
            {
              "name": "Retry",
              "anchor": "Retry",
              "decl": "func Retry(n int, child Node) Node",
              "doc": "Retry reruns a failing child up to n additional times (up to 1+n total attempts).\n\nLike Repeater, Retry ticks child at most once per Tick, returning StatusRunning between failed attempts and StatusSuccess as soon as child succeeds. When n <= 0, no retries are performed and a child failure returns StatusFailure immediately.\n",
              "file": "pkg/ai/bt_ext.go",
              "line": 70
            },
            {
              "name": "Selector",
              "anchor": "Selector",
              "decl": "func Selector(children ...Node) Node",
              "doc": "Selector tries children in priority order, returning on the first child that succeeds or runs.\n\nIf a higher-priority child preempts a lower-priority child that was previously running, Selector resets the interrupted child.\nHigher-priority children guarded by a [BlackboardCondition] only preempt a running lower-priority branch when their abort mode includes [AbortLower] or [AbortBoth] and their watched key changes.\n",
              "file": "pkg/ai/bt.go",
              "line": 159
            },
            {
              "name": "Sequence",
              "anchor": "Sequence",
              "decl": "func Sequence(children ...Node) Node",
              "doc": "Sequence runs children in order, succeeding when all succeed and failing on the first failure.\n\nWhen a child returns StatusRunning, Sequence remembers its position and resumes at that child on the next tick.\n",
              "file": "pkg/ai/bt.go",
              "line": 86
            },
            {
              "name": "Service",
              "anchor": "Service",
              "decl": "func Service(interval time.Duration, fn func(dt time.Duration), child Node) Node",
              "doc": "Service invokes fn immediately on entry into child and then every interval of game time while child remains StatusRunning, before ticking child.\n\nOn entry, fn receives the tick's dt; on subsequent periodic ticks, fn receives the elapsed game time since fn last ran (preserving phase across non-divisor steps and firing at most once per Tick). When interval <= 0, fn runs on every tick while active. Finishing (StatusSuccess or StatusFailure) or calling Reset stops the service so the next activation runs fn on entry again.\n",
              "file": "pkg/ai/bt_ext.go",
              "line": 421
            },
            {
              "name": "SquadHasOrder",
              "anchor": "SquadHasOrder",
              "decl": "func SquadHasOrder(squad *Squad, kind string) Node",
              "doc": "SquadHasOrder returns a Condition behavior tree node that succeeds when squad has an active\norder matching kind (or any non-empty order when kind is \"\").\n",
              "file": "pkg/ai/squad.go",
              "line": 844
            },
            {
              "name": "SquadHasRole",
              "anchor": "SquadHasRole",
              "decl": "func SquadHasRole(squad *Squad, agentID uint64, role string) Node",
              "doc": "SquadHasRole returns a Condition behavior tree node that succeeds when agentID holds role in squad.\n",
              "file": "pkg/ai/squad.go",
              "line": 858
            },
            {
              "name": "SquadOrderAction",
              "anchor": "SquadOrderAction",
              "decl": "func SquadOrderAction(squad *Squad, fn func(order SquadOrder, dt time.Duration) Status) Node",
              "doc": "SquadOrderAction returns an Action behavior tree node that reads squad's current SquadOrder\nand invokes fn(order, dt). It returns StatusFailure when squad or fn is nil or no order is active.\n",
              "file": "pkg/ai/squad.go",
              "line": 878
            },
            {
              "name": "SquadStateBool",
              "anchor": "SquadStateBool",
              "decl": "func SquadStateBool(squad *Squad, key string) Node",
              "doc": "SquadStateBool returns a Condition behavior tree node that succeeds when squad's shared state\nholds a true bool value under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 866
            },
            {
              "name": "Succeeder",
              "anchor": "Succeeder",
              "decl": "func Succeeder(child Node) Node",
              "doc": "Succeeder turns both StatusSuccess and StatusFailure from child into StatusSuccess while passing StatusRunning through.\n",
              "file": "pkg/ai/bt.go",
              "line": 406
            },
            {
              "name": "TimeLimit",
              "anchor": "TimeLimit",
              "decl": "func TimeLimit(d time.Duration, child Node) Node",
              "doc": "TimeLimit ticks child and enforces a maximum duration d of game time for one run.\n\nIf child is still returning StatusRunning once accumulated dt reaches d (or immediately when d <= 0), TimeLimit calls child.Reset(), clears its timer, and returns StatusFailure. Completing with StatusSuccess or StatusFailure, or calling Reset, clears the elapsed timer.\n",
              "file": "pkg/ai/bt_ext.go",
              "line": 14
            },
            {
              "name": "UntilFail",
              "anchor": "UntilFail",
              "decl": "func UntilFail(child Node) Node",
              "doc": "UntilFail ticks child once per tick, returning StatusRunning until child returns StatusFailure, at which point UntilFail returns StatusSuccess.\n",
              "file": "pkg/ai/bt.go",
              "line": 539
            },
            {
              "name": "UtilitySelector",
              "anchor": "UtilitySelector",
              "decl": "func UtilitySelector[C any](reasoner *Reasoner[C], ctx func() C, rng *random.Stream, subtrees map[string]Node) Node",
              "doc": "UtilitySelector creates a behavior tree Node that uses reasoner to pick an action on each Tick and runs that action's bound subtree from subtrees (keyed by UtilityAction.Name).\n\nEach UtilitySelector tracks its own active action for momentum, so multiple agents can share one Reasoner safely. When a different action beats a currently running subtree, the interrupted subtree is Reset before the newly chosen subtree is ticked. If no action scores above 0 or the chosen action has no subtree, Tick returns StatusFailure.\n",
              "file": "pkg/ai/utility.go",
              "line": 479
            },
            {
              "name": "Wait",
              "anchor": "Wait",
              "decl": "func Wait(d time.Duration) Node",
              "doc": "Wait returns StatusRunning until the accumulated dt reaches d, then resets and returns StatusSuccess.\n",
              "file": "pkg/ai/bt.go",
              "line": 737
            },
            {
              "name": "WeightedSelector",
              "anchor": "WeightedSelector",
              "decl": "func WeightedSelector(stream *random.Stream, options ...WeightedNode) Node",
              "doc": "WeightedSelector draws children without replacement from stream with probability proportional to each WeightedNode.Weight until one returns StatusSuccess or StatusRunning.\n\nWhen a drawn child returns StatusRunning, WeightedSelector resumes that child on subsequent ticks; if it later returns StatusFailure, drawing continues among the remaining untried eligible options. Options with non-positive, NaN, or infinite weight (or nil Node) are skipped. When stream is nil, eligible options are tried in descending Weight order (ties broken in declaration order).\n",
              "file": "pkg/ai/bt_ext.go",
              "line": 287
            },
            {
              "name": "WithAttackToken",
              "anchor": "WithAttackToken",
              "decl": "func WithAttackToken(pool *TokenPool, agentID uint64, priority func() float64, child Node) Node",
              "doc": "WithAttackToken returns a behavior tree decorator that requests an attack token for agentID\non pool (evaluating priority on each tick if non-nil, else 0) and ticks child only while\nagentID holds a token.\n\nWhile waiting for a token, or if the token is preempted, WithAttackToken resets child (if it\nwas running) and returns StatusFailure so a parent Selector can fall back to circling or\nholding position. When child finishes with StatusSuccess or StatusFailure, WithAttackToken\nreleases the token back to pool. Calling Reset cancels any pending request or releases the\nheld token.\n",
              "file": "pkg/ai/tokens.go",
              "line": 471
            }
          ],
          "methods": []
        },
        {
          "name": "NodeOrder",
          "anchor": "NodeOrder",
          "decl": "type NodeOrder[N comparable] interface {\n\tNodeLess(a, b N) bool\n}",
          "doc": "NodeOrder is an optional interface a Graph may implement to define a strict total\norder on nodes for deterministic tie-breaking when f and h scores are equal.\n",
          "file": "pkg/ai/graph.go",
          "line": 37,
          "members": [
            {
              "name": "NodeLess",
              "anchor": "NodeOrder.NodeLess",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Noise",
          "anchor": "Noise",
          "decl": "type Noise struct {\n\t// Source identifies what made the noise; the memory of it is kept under this ID.\n\tSource StimulusID\n\t// Team is the source's team.\n\tTeam Team\n\t// Pos is where the noise was made.\n\tPos core.Point\n\t// Loudness scales each listener's hearing range: a noise of loudness 2 is heard twice as far as one of loudness 1. Zero or less is inaudible.\n\tLoudness float32\n}",
          "doc": "Noise is a sound posted to a PerceptionSystem and heard on its next Step.\n",
          "file": "pkg/ai/perception2d.go",
          "line": 27,
          "members": [
            {
              "name": "Source",
              "anchor": "Noise.Source",
              "kind": "field",
              "doc": "Source identifies what made the noise; the memory of it is kept under this ID."
            },
            {
              "name": "Team",
              "anchor": "Noise.Team",
              "kind": "field",
              "doc": "Team is the source's team."
            },
            {
              "name": "Pos",
              "anchor": "Noise.Pos",
              "kind": "field",
              "doc": "Pos is where the noise was made."
            },
            {
              "name": "Loudness",
              "anchor": "Noise.Loudness",
              "kind": "field",
              "doc": "Loudness scales each listener's hearing range: a noise of loudness 2 is heard twice as far as one of loudness 1. Zero or less is inaudible."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ORCAAgent",
          "anchor": "ORCAAgent",
          "decl": "type ORCAAgent struct {\n\t// ID optionally identifies the agent for canonical tie-breaking when agents overlap or coincide.\n\tID uint64\n\t// Pos is the agent's current 2D position.\n\tPos math2d.Vec2\n\t// Vel is the agent's current 2D velocity.\n\tVel math2d.Vec2\n\t// PrefVel is the agent's desired 2D velocity before local avoidance.\n\tPrefVel math2d.Vec2\n\t// Radius is the agent's body radius.\n\tRadius float32\n\t// MaxSpeed caps the magnitude of the computed collision-free velocity.\n\tMaxSpeed float32\n\t// Priority controls reciprocal avoidance responsibility. Higher-priority agents yield less\n\t// to lower-priority agents; equal priorities split avoidance 50/50. Negative or non-finite\n\t// values are treated as 0.\n\tPriority float32\n\t// Stationary marks an agent holding its position: it outputs zero velocity and forces\n\t// avoiding neighbors to take full responsibility for steering around it.\n\tStationary bool\n\t// Layer is a bitmask of avoidance layers this agent occupies (0 defaults to ORCALayerDefault).\n\tLayer uint32\n\t// Mask is a bitmask of avoidance layers this agent avoids (0 defaults to ORCAMaskAll).\n\tMask uint32\n}",
          "doc": "ORCAAgent describes a 2D agent participating in ORCA velocity-based local avoidance.\n",
          "file": "pkg/ai/orca.go",
          "line": 49,
          "members": [
            {
              "name": "ID",
              "anchor": "ORCAAgent.ID",
              "kind": "field",
              "doc": "ID optionally identifies the agent for canonical tie-breaking when agents overlap or coincide."
            },
            {
              "name": "Pos",
              "anchor": "ORCAAgent.Pos",
              "kind": "field",
              "doc": "Pos is the agent's current 2D position."
            },
            {
              "name": "Vel",
              "anchor": "ORCAAgent.Vel",
              "kind": "field",
              "doc": "Vel is the agent's current 2D velocity."
            },
            {
              "name": "PrefVel",
              "anchor": "ORCAAgent.PrefVel",
              "kind": "field",
              "doc": "PrefVel is the agent's desired 2D velocity before local avoidance."
            },
            {
              "name": "Radius",
              "anchor": "ORCAAgent.Radius",
              "kind": "field",
              "doc": "Radius is the agent's body radius."
            },
            {
              "name": "MaxSpeed",
              "anchor": "ORCAAgent.MaxSpeed",
              "kind": "field",
              "doc": "MaxSpeed caps the magnitude of the computed collision-free velocity."
            },
            {
              "name": "Priority",
              "anchor": "ORCAAgent.Priority",
              "kind": "field",
              "doc": "Priority controls reciprocal avoidance responsibility. Higher-priority agents yield less\nto lower-priority agents; equal priorities split avoidance 50/50. Negative or non-finite\nvalues are treated as 0."
            },
            {
              "name": "Stationary",
              "anchor": "ORCAAgent.Stationary",
              "kind": "field",
              "doc": "Stationary marks an agent holding its position: it outputs zero velocity and forces\navoiding neighbors to take full responsibility for steering around it."
            },
            {
              "name": "Layer",
              "anchor": "ORCAAgent.Layer",
              "kind": "field",
              "doc": "Layer is a bitmask of avoidance layers this agent occupies (0 defaults to ORCALayerDefault)."
            },
            {
              "name": "Mask",
              "anchor": "ORCAAgent.Mask",
              "kind": "field",
              "doc": "Mask is a bitmask of avoidance layers this agent avoids (0 defaults to ORCAMaskAll)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ORCAAgent3D",
          "anchor": "ORCAAgent3D",
          "decl": "type ORCAAgent3D struct {\n\tID         uint64\n\tPos        Vec3\n\tVel        Vec3\n\tPrefVel    Vec3\n\tRadius     float32\n\tMaxSpeed   float32\n\tPriority   float32\n\tStationary bool\n\tLayer      uint32\n\tMask       uint32\n}",
          "doc": "ORCAAgent3D describes a 3D agent performing ORCA local avoidance on the horizontal XZ plane\n(matching ai.Vec3 / math3d.Vec3 with +X right, +Y up, -Z forward).\n",
          "file": "pkg/ai/orca.go",
          "line": 85,
          "members": [
            {
              "name": "ID",
              "anchor": "ORCAAgent3D.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pos",
              "anchor": "ORCAAgent3D.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vel",
              "anchor": "ORCAAgent3D.Vel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PrefVel",
              "anchor": "ORCAAgent3D.PrefVel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "ORCAAgent3D.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxSpeed",
              "anchor": "ORCAAgent3D.MaxSpeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Priority",
              "anchor": "ORCAAgent3D.Priority",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stationary",
              "anchor": "ORCAAgent3D.Stationary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "ORCAAgent3D.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "ORCAAgent3D.Mask",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ORCAConfig",
          "anchor": "ORCAConfig",
          "decl": "type ORCAConfig struct {\n\t// TimeHorizon is how far ahead (in seconds) agents anticipate collisions with other agents.\n\t// Defaults to DefaultORCATimeHorizon (2.0) when <= 0 or non-finite.\n\tTimeHorizon float32\n\t// TimeHorizonObst is how far ahead (in seconds) agents anticipate collisions with static obstacle edges.\n\t// Defaults to DefaultORCATimeHorizonObst (1.0) when <= 0 or non-finite.\n\tTimeHorizonObst float32\n\t// NeighborDist is the maximum center-to-center distance to consider neighboring agents.\n\t// When <= 0 or non-finite, the solver derives a conservative search radius per agent from\n\t// its speed, body radius, and TimeHorizon.\n\tNeighborDist float32\n\t// MaxNeighbors caps how many nearest matching neighbors contribute ORCA half-planes per agent.\n\t// Defaults to DefaultORCAMaxNeighbors (16) when <= 0.\n\tMaxNeighbors int\n\t// CellSize is the spatial hash cell size used during batch Solve/Step queries.\n\t// When <= 0 or non-finite, it is derived automatically from NeighborDist or agent speeds and radii.\n\tCellSize float32\n}",
          "doc": "ORCAConfig tunes an ORCASolver. Zero or non-finite fields use sensible defaults.\n",
          "file": "pkg/ai/orca.go",
          "line": 29,
          "members": [
            {
              "name": "TimeHorizon",
              "anchor": "ORCAConfig.TimeHorizon",
              "kind": "field",
              "doc": "TimeHorizon is how far ahead (in seconds) agents anticipate collisions with other agents.\nDefaults to DefaultORCATimeHorizon (2.0) when <= 0 or non-finite."
            },
            {
              "name": "TimeHorizonObst",
              "anchor": "ORCAConfig.TimeHorizonObst",
              "kind": "field",
              "doc": "TimeHorizonObst is how far ahead (in seconds) agents anticipate collisions with static obstacle edges.\nDefaults to DefaultORCATimeHorizonObst (1.0) when <= 0 or non-finite."
            },
            {
              "name": "NeighborDist",
              "anchor": "ORCAConfig.NeighborDist",
              "kind": "field",
              "doc": "NeighborDist is the maximum center-to-center distance to consider neighboring agents.\nWhen <= 0 or non-finite, the solver derives a conservative search radius per agent from\nits speed, body radius, and TimeHorizon."
            },
            {
              "name": "MaxNeighbors",
              "anchor": "ORCAConfig.MaxNeighbors",
              "kind": "field",
              "doc": "MaxNeighbors caps how many nearest matching neighbors contribute ORCA half-planes per agent.\nDefaults to DefaultORCAMaxNeighbors (16) when <= 0."
            },
            {
              "name": "CellSize",
              "anchor": "ORCAConfig.CellSize",
              "kind": "field",
              "doc": "CellSize is the spatial hash cell size used during batch Solve/Step queries.\nWhen <= 0 or non-finite, it is derived automatically from NeighborDist or agent speeds and radii."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ORCAObstacle",
          "anchor": "ORCAObstacle",
          "decl": "type ORCAObstacle struct {\n\tA, B math2d.Vec2\n\t// Layer is a bitmask of avoidance layers this obstacle occupies (0 defaults to ORCAMaskAll).\n\tLayer uint32\n}",
          "doc": "ORCAObstacle is a static 2D line-segment obstacle from A to B.\nSegments are treated as two-sided so agents stay clear regardless of endpoint order.\n",
          "file": "pkg/ai/orca.go",
          "line": 77,
          "members": [
            {
              "name": "A",
              "anchor": "ORCAObstacle.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "ORCAObstacle.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "ORCAObstacle.Layer",
              "kind": "field",
              "doc": "Layer is a bitmask of avoidance layers this obstacle occupies (0 defaults to ORCAMaskAll)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ORCAObstacle3D",
          "anchor": "ORCAObstacle3D",
          "decl": "type ORCAObstacle3D struct {\n\tA, B  Vec3\n\tLayer uint32\n}",
          "doc": "ORCAObstacle3D is a static vertical obstacle wall segment projected onto the horizontal XZ plane.\n",
          "file": "pkg/ai/orca.go",
          "line": 99,
          "members": [
            {
              "name": "A",
              "anchor": "ORCAObstacle3D.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "ORCAObstacle3D.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "ORCAObstacle3D.Layer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ORCASolver",
          "anchor": "ORCASolver",
          "decl": "type ORCASolver struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ORCASolver computes collision-free 2D (and 3D XZ-plane) velocities using Optimal Reciprocal\nCollision Avoidance (ORCA / RVO2). It reuses internal spatial-hash and linear-programming\nscratch buffers across calls for zero heap allocations after warm-up, and canonicalizes\nneighbor and obstacle ordering so results are deterministic and independent of input order.\n\nA zero-value ORCASolver is ready to use with default settings. ORCASolver is not safe for\nconcurrent use.\n",
          "file": "pkg/ai/orca.go",
          "line": 135,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewORCASolver",
              "anchor": "NewORCASolver",
              "decl": "func NewORCASolver(cfg ORCAConfig) *ORCASolver",
              "doc": "NewORCASolver creates an ORCASolver configured with cfg.\n",
              "file": "pkg/ai/orca.go",
              "line": 164
            }
          ],
          "methods": [
            {
              "name": "Config",
              "anchor": "ORCASolver.Config",
              "recv": "*ORCASolver",
              "decl": "func (s *ORCASolver) Config() ORCAConfig",
              "doc": "Config returns the solver's effective configuration with defaults applied.\n",
              "file": "pkg/ai/orca.go",
              "line": 169
            },
            {
              "name": "SetConfig",
              "anchor": "ORCASolver.SetConfig",
              "recv": "*ORCASolver",
              "decl": "func (s *ORCASolver) SetConfig(cfg ORCAConfig)",
              "doc": "SetConfig updates the solver's configuration.\n",
              "file": "pkg/ai/orca.go",
              "line": 177
            },
            {
              "name": "Solve",
              "anchor": "ORCASolver.Solve",
              "recv": "*ORCASolver",
              "decl": "func (s *ORCASolver) Solve(dst []math2d.Vec2, agents []ORCAAgent, obstacles []ORCAObstacle, dt time.Duration) []math2d.Vec2",
              "doc": "Solve computes collision-free 2D velocities for every agent in agents and appends them to\ndst[:0]. Neighbor lookups use an internal spatial hash grid; results are deterministic and\nindependent of input order.\n",
              "file": "pkg/ai/orca.go",
              "line": 345
            },
            {
              "name": "SolveAgent",
              "anchor": "ORCASolver.SolveAgent",
              "recv": "*ORCASolver",
              "decl": "func (s *ORCASolver) SolveAgent(agent ORCAAgent, neighbors []ORCAAgent, obstacles []ORCAObstacle, dt time.Duration) math2d.Vec2",
              "doc": "SolveAgent computes a single collision-free 2D velocity for agent given its neighbors and\noptional static obstacle edges. Results are deterministic and independent of the order of\nneighbors or obstacles.\n",
              "file": "pkg/ai/orca.go",
              "line": 273
            },
            {
              "name": "SolveAgentXZ",
              "anchor": "ORCASolver.SolveAgentXZ",
              "recv": "*ORCASolver",
              "decl": "func (s *ORCASolver) SolveAgentXZ(agent ORCAAgent3D, neighbors []ORCAAgent3D, obstacles []ORCAObstacle3D, dt time.Duration) Vec3",
              "doc": "SolveAgentXZ computes a collision-free horizontal XZ-plane velocity for a 3D agent.\nThe returned velocity has Y = 0; X and Z map directly to the 2D ORCA plane.\n",
              "file": "pkg/ai/orca.go",
              "line": 455
            },
            {
              "name": "SolveXZ",
              "anchor": "ORCASolver.SolveXZ",
              "recv": "*ORCASolver",
              "decl": "func (s *ORCASolver) SolveXZ(dst []Vec3, agents []ORCAAgent3D, obstacles []ORCAObstacle3D, dt time.Duration) []Vec3",
              "doc": "SolveXZ computes collision-free horizontal XZ-plane velocities for all 3D agents and appends\nthem to dst[:0]. Returned velocities have Y = 0.\n",
              "file": "pkg/ai/orca.go",
              "line": 468
            },
            {
              "name": "Step",
              "anchor": "ORCASolver.Step",
              "recv": "*ORCASolver",
              "decl": "func (s *ORCASolver) Step(agents []ORCAAgent, obstacles []ORCAObstacle, dt time.Duration)",
              "doc": "Step computes collision-free 2D velocities for all agents and synchronously integrates\nVel and Pos by dt. Stationary agents keep zero velocity and fixed position.\n",
              "file": "pkg/ai/orca.go",
              "line": 431
            },
            {
              "name": "StepXZ",
              "anchor": "ORCASolver.StepXZ",
              "recv": "*ORCASolver",
              "decl": "func (s *ORCASolver) StepXZ(agents []ORCAAgent3D, obstacles []ORCAObstacle3D, dt time.Duration)",
              "doc": "StepXZ computes collision-free XZ-plane velocities for all 3D agents and integrates Pos.X\nand Pos.Z by dt, preserving Pos.Y and zeroing Vel.Y.\n",
              "file": "pkg/ai/orca.go",
              "line": 493
            }
          ]
        },
        {
          "name": "Obstacle",
          "anchor": "Obstacle",
          "decl": "type Obstacle struct {\n\tCenter core.Point\n\tRadius float32\n}",
          "doc": "Obstacle is a circular 2D obstacle used by ObstacleAvoidance and Hide.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 10,
          "members": [
            {
              "name": "Center",
              "anchor": "Obstacle.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Obstacle.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Obstacle3D",
          "anchor": "Obstacle3D",
          "decl": "type Obstacle3D struct {\n\tCenter Vec3\n\tRadius float32\n}",
          "doc": "Obstacle3D is a spherical 3D obstacle (or vertical cylinder on XZ when the\nsteering agent has PlanarXZ set) used by ObstacleAvoidance3D and Hide3D.\n",
          "file": "pkg/ai/steering3d.go",
          "line": 32,
          "members": [
            {
              "name": "Center",
              "anchor": "Obstacle3D.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Obstacle3D.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ParallelPolicy",
          "anchor": "ParallelPolicy",
          "decl": "type ParallelPolicy uint8",
          "doc": "ParallelPolicy chooses when a Parallel composite finishes.\n",
          "file": "pkg/ai/bt.go",
          "line": 74,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RequireAll",
                  "anchor": "RequireAll"
                },
                {
                  "name": "RequireOne",
                  "anchor": "RequireOne"
                }
              ],
              "decl": "const (\n\t// RequireAll succeeds when every child succeeds and fails as soon as any child fails.\n\tRequireAll ParallelPolicy = iota\n\t// RequireOne succeeds as soon as any child succeeds and fails when every child fails.\n\tRequireOne\n)",
              "doc": "",
              "file": "pkg/ai/bt.go",
              "line": 76
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PathDistanceTest",
          "anchor": "PathDistanceTest",
          "decl": "type PathDistanceTest struct {\n\t// From selects the path start point (defaults to OriginQuerier).\n\tFrom QueryOrigin\n\t// CustomFrom is used when From is OriginCustom.\n\tCustomFrom math2d.Vec2\n\t// PathCost optionally computes path distance directly via a game-supplied callback.\n\t// When non-nil, it takes precedence over Grid and NavMesh.\n\tPathCost func(from, to math2d.Vec2) (cost float64, ok bool)\n\t// Grid and AStar run zero-allocation grid A* pathfinding when PathCost is nil and Grid is non-nil.\n\t// If AStar is nil, TacticalQuery uses its internal reusable AStar searcher.\n\tGrid       Grid\n\tGridOrigin math2d.Vec2\n\tCellSize   float32\n\tAStar      *AStar\n\t// NavMesh computes zero-allocation funnel-smoothed path length when PathCost and Grid are nil.\n\tNavMesh *NavMesh\n\t// Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore).\n\tPurpose TestPurpose\n\t// Filter optionally restricts acceptable path lengths.\n\tFilter FloatRange\n\t// NormMin and NormMax optionally specify fixed normalization bounds.\n\t// When NormMax <= NormMin, values normalize dynamically across surviving candidates.\n\tNormMin, NormMax float64\n\t// Weight scales the normalized [0, 1] score contribution.\n\tWeight float64\n\t// Invert flips the normalized score (1 - norm) so shorter paths score higher.\n\tInvert bool\n}",
          "doc": "PathDistanceTest measures path travel cost from a starting position to each candidate using\na custom callback, an ai.Grid with AStar, or a 2D NavMesh.\n\nEach path lookup consumes one path query from ctx.Budget (when non-nil). When the budget is\nexhausted, remaining candidates are skipped (dropped if filtering, or scored 0 if TestScoreOnly).\n",
          "file": "pkg/ai/tactical.go",
          "line": 785,
          "members": [
            {
              "name": "From",
              "anchor": "PathDistanceTest.From",
              "kind": "field",
              "doc": "From selects the path start point (defaults to OriginQuerier)."
            },
            {
              "name": "CustomFrom",
              "anchor": "PathDistanceTest.CustomFrom",
              "kind": "field",
              "doc": "CustomFrom is used when From is OriginCustom."
            },
            {
              "name": "PathCost",
              "anchor": "PathDistanceTest.PathCost",
              "kind": "field",
              "doc": "PathCost optionally computes path distance directly via a game-supplied callback.\nWhen non-nil, it takes precedence over Grid and NavMesh."
            },
            {
              "name": "Grid",
              "anchor": "PathDistanceTest.Grid",
              "kind": "field",
              "doc": "Grid and AStar run zero-allocation grid A* pathfinding when PathCost is nil and Grid is non-nil.\nIf AStar is nil, TacticalQuery uses its internal reusable AStar searcher."
            },
            {
              "name": "GridOrigin",
              "anchor": "PathDistanceTest.GridOrigin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CellSize",
              "anchor": "PathDistanceTest.CellSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AStar",
              "anchor": "PathDistanceTest.AStar",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NavMesh",
              "anchor": "PathDistanceTest.NavMesh",
              "kind": "field",
              "doc": "NavMesh computes zero-allocation funnel-smoothed path length when PathCost and Grid are nil."
            },
            {
              "name": "Purpose",
              "anchor": "PathDistanceTest.Purpose",
              "kind": "field",
              "doc": "Purpose selects filtering, scoring, or both (defaults to TestFilterAndScore)."
            },
            {
              "name": "Filter",
              "anchor": "PathDistanceTest.Filter",
              "kind": "field",
              "doc": "Filter optionally restricts acceptable path lengths."
            },
            {
              "name": "NormMin",
              "anchor": "PathDistanceTest.NormMin",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds.\nWhen NormMax <= NormMin, values normalize dynamically across surviving candidates."
            },
            {
              "name": "NormMax",
              "anchor": "PathDistanceTest.NormMax",
              "kind": "field",
              "doc": "NormMin and NormMax optionally specify fixed normalization bounds.\nWhen NormMax <= NormMin, values normalize dynamically across surviving candidates."
            },
            {
              "name": "Weight",
              "anchor": "PathDistanceTest.Weight",
              "kind": "field",
              "doc": "Weight scales the normalized [0, 1] score contribution."
            },
            {
              "name": "Invert",
              "anchor": "PathDistanceTest.Invert",
              "kind": "field",
              "doc": "Invert flips the normalized score (1 - norm) so shorter paths score higher."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PathFollowState",
          "anchor": "PathFollowState",
          "decl": "type PathFollowState struct {\n\tIndex int\n\tDone  bool\n}",
          "doc": "PathFollowState tracks which waypoint an agent is currently heading toward.\n",
          "file": "pkg/ai/steering.go",
          "line": 162,
          "members": [
            {
              "name": "Index",
              "anchor": "PathFollowState.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Done",
              "anchor": "PathFollowState.Done",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PathOptions",
          "anchor": "PathOptions",
          "decl": "type PathOptions struct {\n\t// MaxExpansions caps the number of search nodes expanded before stopping.\n\t// Zero means unlimited expansions (for AStar, zero falls back to AStar.MaxExpansions when > 0);\n\t// a negative value always forces unlimited expansions.\n\tMaxExpansions int\n\t// AllowPartial returns a path to the explored node closest to the goal when\n\t// the goal is unreachable or MaxExpansions is reached, flagged with Partial = true.\n\tAllowPartial bool\n}",
          "doc": "PathOptions configures bounded and partial pathfinding queries across grid A*\nand 2D/3D navigation meshes.\n",
          "file": "pkg/ai/pathsearch.go",
          "line": 11,
          "members": [
            {
              "name": "MaxExpansions",
              "anchor": "PathOptions.MaxExpansions",
              "kind": "field",
              "doc": "MaxExpansions caps the number of search nodes expanded before stopping.\nZero means unlimited expansions (for AStar, zero falls back to AStar.MaxExpansions when > 0);\na negative value always forces unlimited expansions."
            },
            {
              "name": "AllowPartial",
              "anchor": "PathOptions.AllowPartial",
              "kind": "field",
              "doc": "AllowPartial returns a path to the explored node closest to the goal when\nthe goal is unreachable or MaxExpansions is reached, flagged with Partial = true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PathQueue",
          "anchor": "PathQueue",
          "decl": "type PathQueue struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PathQueue services multiple incremental path searches within a strict per-step\nnode-expansion budget.\n\nAll scheduling is deterministic, single-threaded, and free of background goroutines.\n",
          "file": "pkg/ai/pathsearch.go",
          "line": 117,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPathQueue",
              "anchor": "NewPathQueue",
              "decl": "func NewPathQueue(cfg PathQueueConfig) *PathQueue",
              "doc": "NewPathQueue returns a new PathQueue with the given configuration.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 128
            }
          ],
          "methods": [
            {
              "name": "Cancel",
              "anchor": "PathQueue.Cancel",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) Cancel(id PathRequestID) bool",
              "doc": "Cancel removes a pending request from the queue. It returns true if the request was found\nand removed; canceled requests are not stepped again and their callbacks are not invoked.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 205
            },
            {
              "name": "Clear",
              "anchor": "PathQueue.Clear",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) Clear()",
              "doc": "Clear removes all pending requests without invoking callbacks.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 221
            },
            {
              "name": "Completed",
              "anchor": "PathQueue.Completed",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) Completed() int",
              "doc": "Completed returns the cumulative number of requests that finished (complete, partial, or failed).\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 259
            },
            {
              "name": "IsPending",
              "anchor": "PathQueue.IsPending",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) IsPending(id PathRequestID) bool",
              "doc": "IsPending reports whether id is currently queued and has not finished or been canceled.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 238
            },
            {
              "name": "Pending",
              "anchor": "PathQueue.Pending",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) Pending() int",
              "doc": "Pending returns the number of active requests currently waiting in the queue.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 230
            },
            {
              "name": "Step",
              "anchor": "PathQueue.Step",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) Step(budget int) int",
              "doc": "Step advances queued requests using at most budget total node expansions, returning\nthe exact number of expansions performed (always in [0, budget] when budget > 0, or 0 when budget <= 0).\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 276
            },
            {
              "name": "StepDefault",
              "anchor": "PathQueue.StepDefault",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) StepDefault() int",
              "doc": "StepDefault advances queued requests using the queue's configured DefaultBudget.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 267
            },
            {
              "name": "Submit",
              "anchor": "PathQueue.Submit",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) Submit(search IncrementalSearch, priority int, onDone func(PathRequestID, SearchStatus)) PathRequestID",
              "doc": "Submit enqueues search with the given priority (higher values run first; ties break\nin FIFO submission order). When the search reaches a terminal status during Step,\nonDone (if non-nil) is invoked synchronously with the request ID and final status.\n\nSubmitting a nil search is ignored and returns 0.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 141
            },
            {
              "name": "SubmitGrid",
              "anchor": "PathQueue.SubmitGrid",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) SubmitGrid(a *AStar, g Grid, start, goal Cell, opts PathOptions, priority int, onDone func(PathRequestID, GridPathResult)) (PathRequestID, *AStarSearch)",
              "doc": "SubmitGrid creates an incremental AStarSearch and enqueues it on q, returning the\nrequest ID (for Cancel) and the search handle (for polling Status/Result).\nIf onDone is non-nil, it is called with the completed GridPathResult once the search finishes.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 170
            },
            {
              "name": "SubmitNavMesh",
              "anchor": "PathQueue.SubmitNavMesh",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) SubmitNavMesh(m *NavMesh, start, goal core.Point, opts PathOptions, priority int, onDone func(PathRequestID, NavPathResult)) (PathRequestID, *NavMeshSearch)",
              "doc": "SubmitNavMesh creates an incremental NavMeshSearch and enqueues it on q, returning the\nrequest ID (for Cancel) and the search handle (for polling Status/Result).\nIf onDone is non-nil, it is called with the completed NavPathResult once the search finishes.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 188
            },
            {
              "name": "TotalExpansions",
              "anchor": "PathQueue.TotalExpansions",
              "recv": "*PathQueue",
              "decl": "func (q *PathQueue) TotalExpansions() int",
              "doc": "TotalExpansions returns the cumulative number of node expansions performed across all Step calls.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 251
            }
          ]
        },
        {
          "name": "PathQueueConfig",
          "anchor": "PathQueueConfig",
          "decl": "type PathQueueConfig struct {\n\t// DefaultBudget is the per-step expansion budget used by StepDefault.\n\tDefaultBudget int\n\t// Policy selects FIFO (default) or fair round-robin scheduling within each priority tier.\n\tPolicy PathQueuePolicy\n\t// SliceSize caps the expansions granted per turn in PathQueueRoundRobin mode.\n\t// Zero or negative divides the remaining step budget evenly across requests in the active priority tier.\n\tSliceSize int\n}",
          "doc": "PathQueueConfig configures a PathQueue.\n",
          "file": "pkg/ai/pathsearch.go",
          "line": 96,
          "members": [
            {
              "name": "DefaultBudget",
              "anchor": "PathQueueConfig.DefaultBudget",
              "kind": "field",
              "doc": "DefaultBudget is the per-step expansion budget used by StepDefault."
            },
            {
              "name": "Policy",
              "anchor": "PathQueueConfig.Policy",
              "kind": "field",
              "doc": "Policy selects FIFO (default) or fair round-robin scheduling within each priority tier."
            },
            {
              "name": "SliceSize",
              "anchor": "PathQueueConfig.SliceSize",
              "kind": "field",
              "doc": "SliceSize caps the expansions granted per turn in PathQueueRoundRobin mode.\nZero or negative divides the remaining step budget evenly across requests in the active priority tier."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PathQueuePolicy",
          "anchor": "PathQueuePolicy",
          "decl": "type PathQueuePolicy uint8",
          "doc": "PathQueuePolicy controls how a PathQueue divides its per-step expansion budget\namong active requests within the same priority tier.\n",
          "file": "pkg/ai/pathsearch.go",
          "line": 84,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PathQueueFIFO",
                  "anchor": "PathQueueFIFO"
                },
                {
                  "name": "PathQueueRoundRobin",
                  "anchor": "PathQueueRoundRobin"
                }
              ],
              "decl": "const (\n\t// PathQueueFIFO runs the highest-priority earliest-submitted request until it\n\t// completes or the step's remaining expansion budget is spent.\n\tPathQueueFIFO PathQueuePolicy = iota\n\t// PathQueueRoundRobin shares the step budget fairly across all active requests\n\t// in the highest pending priority tier in deterministic rotation order.\n\tPathQueueRoundRobin\n)",
              "doc": "",
              "file": "pkg/ai/pathsearch.go",
              "line": 86
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PathRequestID",
          "anchor": "PathRequestID",
          "decl": "type PathRequestID uint64",
          "doc": "PathRequestID uniquely identifies a request submitted to a PathQueue.\nZero is never assigned to a valid request.\n",
          "file": "pkg/ai/pathsearch.go",
          "line": 80,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Perception",
          "anchor": "Perception",
          "decl": "type Perception struct {\n\t// Self is the agent's own StimulusID, so the agent never senses itself; zero means the agent is not a stimulus, so an agent that is one needs a non-zero ID.\n\tSelf StimulusID\n\t// Team is the agent's team.\n\tTeam Team\n\t// Pos is the agent's position.\n\tPos core.Point\n\t// Facing is the direction the sight cone points along; its length does not matter, and zero faces +X.\n\tFacing core.Point\n\t// EyeOffset is added to Pos, in world space, to give the point both senses measure from and sight looks from.\n\tEyeOffset core.Point\n\t// Sight is the agent's vision.\n\tSight SightConfig\n\t// Hearing is the agent's hearing.\n\tHearing HearingConfig\n\t// ForgetAfter is how long a stimulus is remembered after it was last sensed; zero or less forgets it on the step after.\n\tForgetAfter time.Duration\n\t// contains filtered or unexported fields\n}",
          "doc": "Perception is one agent's senses and memory. Set its exported fields, add it to a PerceptionSystem, and step the system on game.Loop's fixed steps; the system reads the fields at the start of every Step, so a game moves and turns the agent by changing Pos and Facing.\n",
          "file": "pkg/ai/perception2d.go",
          "line": 69,
          "members": [
            {
              "name": "Self",
              "anchor": "Perception.Self",
              "kind": "field",
              "doc": "Self is the agent's own StimulusID, so the agent never senses itself; zero means the agent is not a stimulus, so an agent that is one needs a non-zero ID."
            },
            {
              "name": "Team",
              "anchor": "Perception.Team",
              "kind": "field",
              "doc": "Team is the agent's team."
            },
            {
              "name": "Pos",
              "anchor": "Perception.Pos",
              "kind": "field",
              "doc": "Pos is the agent's position."
            },
            {
              "name": "Facing",
              "anchor": "Perception.Facing",
              "kind": "field",
              "doc": "Facing is the direction the sight cone points along; its length does not matter, and zero faces +X."
            },
            {
              "name": "EyeOffset",
              "anchor": "Perception.EyeOffset",
              "kind": "field",
              "doc": "EyeOffset is added to Pos, in world space, to give the point both senses measure from and sight looks from."
            },
            {
              "name": "Sight",
              "anchor": "Perception.Sight",
              "kind": "field",
              "doc": "Sight is the agent's vision."
            },
            {
              "name": "Hearing",
              "anchor": "Perception.Hearing",
              "kind": "field",
              "doc": "Hearing is the agent's hearing."
            },
            {
              "name": "ForgetAfter",
              "anchor": "Perception.ForgetAfter",
              "kind": "field",
              "doc": "ForgetAfter is how long a stimulus is remembered after it was last sensed; zero or less forgets it on the step after."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AppendMemories",
              "anchor": "Perception.AppendMemories",
              "recv": "*Perception",
              "decl": "func (p *Perception) AppendMemories(dst []Memory) []Memory",
              "doc": "AppendMemories appends every memory, sorted by ID, to dst and returns the extended slice, so a caller can reuse one buffer every step.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 97
            },
            {
              "name": "Clear",
              "anchor": "Perception.Clear",
              "recv": "*Perception",
              "decl": "func (p *Perception) Clear()",
              "doc": "Clear drops every memory and the last step's events.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 130
            },
            {
              "name": "Events",
              "anchor": "Perception.Events",
              "recv": "*Perception",
              "decl": "func (p *Perception) Events() []Event",
              "doc": "Events returns the events of the last Step, in order: per memory as sight, hearing and forgetting reached it. The slice is reused by the next Step.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 120
            },
            {
              "name": "Forget",
              "anchor": "Perception.Forget",
              "recv": "*Perception",
              "decl": "func (p *Perception) Forget(id StimulusID) bool",
              "doc": "Forget drops the memory of id without an event and reports whether there was one.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 125
            },
            {
              "name": "Memories",
              "anchor": "Perception.Memories",
              "recv": "*Perception",
              "decl": "func (p *Perception) Memories() []Memory",
              "doc": "Memories returns a new slice of every memory, sorted by ID.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 92
            },
            {
              "name": "Memory",
              "anchor": "Perception.Memory",
              "recv": "*Perception",
              "decl": "func (p *Perception) Memory(id StimulusID) (Memory, bool)",
              "doc": "Memory returns the memory of the stimulus id, if any.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 105
            },
            {
              "name": "Sees",
              "anchor": "Perception.Sees",
              "recv": "*Perception",
              "decl": "func (p *Perception) Sees(id StimulusID) bool",
              "doc": "Sees reports whether the stimulus id is in sight now.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 114
            }
          ]
        },
        {
          "name": "PerceptionStats",
          "anchor": "PerceptionStats",
          "decl": "type PerceptionStats struct {\n\t// Candidates is the number of agent-target pairs in view.\n\tCandidates int\n\t// Checks is the number of LineOfSight calls made, never more than a positive Budget and zero when LineOfSight is nil.\n\tChecks int\n\t// Deferred is the number of candidates left to later steps by the budget; they keep their previous result meanwhile.\n\tDeferred int\n}",
          "doc": "PerceptionStats reports the line-of-sight work of the last step.\n",
          "file": "pkg/ai/perception.go",
          "line": 151,
          "members": [
            {
              "name": "Candidates",
              "anchor": "PerceptionStats.Candidates",
              "kind": "field",
              "doc": "Candidates is the number of agent-target pairs in view."
            },
            {
              "name": "Checks",
              "anchor": "PerceptionStats.Checks",
              "kind": "field",
              "doc": "Checks is the number of LineOfSight calls made, never more than a positive Budget and zero when LineOfSight is nil."
            },
            {
              "name": "Deferred",
              "anchor": "PerceptionStats.Deferred",
              "kind": "field",
              "doc": "Deferred is the number of candidates left to later steps by the budget; they keep their previous result meanwhile."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerceptionSystem",
          "anchor": "PerceptionSystem",
          "decl": "type PerceptionSystem struct {\n\t// LineOfSight decides whether a target in view is seen; nil means nothing blocks sight.\n\tLineOfSight LineOfSight\n\t// Attitude decides how agents regard targets and noises; nil means DefaultAttitude.\n\tAttitude AttitudeFunc\n\t// Budget caps the LineOfSight calls of one step; zero or less checks every pair in view, and a nil LineOfSight makes no calls, so the budget does not apply and every pair in view is seen at once. When the cap is reached, the remaining pairs are checked first on the next step, round-robin, and keep their previous result until then.\n\tBudget int\n\t// contains filtered or unexported fields\n}",
          "doc": "PerceptionSystem steps the Perceptions of many agents together, so the line-of-sight checks of all of them share one per-step Budget. The zero PerceptionSystem is ready to use, with every line of sight clear.\n\nStep it once per fixed step of game.Loop. Agents are served in the order they were added and targets in ID order, so a run is identical every time given the same inputs.\n",
          "file": "pkg/ai/perception2d.go",
          "line": 161,
          "members": [
            {
              "name": "LineOfSight",
              "anchor": "PerceptionSystem.LineOfSight",
              "kind": "field",
              "doc": "LineOfSight decides whether a target in view is seen; nil means nothing blocks sight."
            },
            {
              "name": "Attitude",
              "anchor": "PerceptionSystem.Attitude",
              "kind": "field",
              "doc": "Attitude decides how agents regard targets and noises; nil means DefaultAttitude."
            },
            {
              "name": "Budget",
              "anchor": "PerceptionSystem.Budget",
              "kind": "field",
              "doc": "Budget caps the LineOfSight calls of one step; zero or less checks every pair in view, and a nil LineOfSight makes no calls, so the budget does not apply and every pair in view is seen at once. When the cap is reached, the remaining pairs are checked first on the next step, round-robin, and keep their previous result until then."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "PerceptionSystem.Add",
              "recv": "*PerceptionSystem",
              "decl": "func (s *PerceptionSystem) Add(p *Perception)",
              "doc": "Add adds p to the system, after the agents already in it. Adding p again does nothing; adding a Perception that belongs to another system panics. A copy of a Perception that was added, such as a configured prototype, is a separate agent: Add gives it its own copy of the memories and no events.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 174
            },
            {
              "name": "Len",
              "anchor": "PerceptionSystem.Len",
              "recv": "*PerceptionSystem",
              "decl": "func (s *PerceptionSystem) Len() int",
              "doc": "Len returns the number of agents in the system.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 194
            },
            {
              "name": "PostNoise",
              "anchor": "PerceptionSystem.PostNoise",
              "recv": "*PerceptionSystem",
              "decl": "func (s *PerceptionSystem) PostNoise(n Noise)",
              "doc": "PostNoise queues n to be heard on the next Step. Noises are heard in the order they were posted.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 199
            },
            {
              "name": "Remove",
              "anchor": "PerceptionSystem.Remove",
              "recv": "*PerceptionSystem",
              "decl": "func (s *PerceptionSystem) Remove(p *Perception) bool",
              "doc": "Remove removes p from the system and reports whether it was there. p keeps its memories, but none of them is visible any more and Events is empty, so Sees reports false until p is added and stepped again.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 182
            },
            {
              "name": "Stats",
              "anchor": "PerceptionSystem.Stats",
              "recv": "*PerceptionSystem",
              "decl": "func (s *PerceptionSystem) Stats() PerceptionStats",
              "doc": "Stats returns the line-of-sight work of the last Step.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 229
            },
            {
              "name": "Step",
              "anchor": "PerceptionSystem.Step",
              "recv": "*PerceptionSystem",
              "decl": "func (s *PerceptionSystem) Step(dt time.Duration, targets []Target)",
              "doc": "Step advances every agent by dt: memories age, targets in view are checked for line of sight within the budget, posted noises are heard, and memories not sensed for ForgetAfter are forgotten. Each agent's Events then report what changed. targets is read only during the call.\n",
              "file": "pkg/ai/perception2d.go",
              "line": 204
            }
          ]
        },
        {
          "name": "PlanRunner",
          "anchor": "PlanRunner",
          "decl": "type PlanRunner struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PlanRunner plans toward prioritized GOAPGoals and executes the resulting action sequence step by step.\n\nPlanRunner implements Node directly, so it can be ticked on game.Loop or embedded inside a behavior tree.\nWhen an action returns StatusFailure, or when the current WorldState invalidates the remaining plan or activates a higher-priority achievable goal, PlanRunner resets the running action node and replans automatically.\n",
          "file": "pkg/ai/goap.go",
          "line": 1337,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPlanRunner",
              "anchor": "NewPlanRunner",
              "decl": "func NewPlanRunner(planner *GOAPPlanner, world func() WorldState, goals []GOAPGoal, executors map[string]Node) *PlanRunner",
              "doc": "NewPlanRunner creates a PlanRunner that plans using planner and snapshots from world,\nselects goals in descending Priority order, and executes each action using executors[action.Name].\n",
              "file": "pkg/ai/goap.go",
              "line": 1355
            }
          ],
          "methods": [
            {
              "name": "ActiveGoal",
              "anchor": "PlanRunner.ActiveGoal",
              "recv": "*PlanRunner",
              "decl": "func (r *PlanRunner) ActiveGoal() int",
              "doc": "ActiveGoal returns the index into the runner's goals slice currently being pursued, or -1 if none.\n",
              "file": "pkg/ai/goap.go",
              "line": 1376
            },
            {
              "name": "CurrentAction",
              "anchor": "PlanRunner.CurrentAction",
              "recv": "*PlanRunner",
              "decl": "func (r *PlanRunner) CurrentAction() string",
              "doc": "CurrentAction returns the Name of the action currently being executed, or \"\" if no plan is active.\n",
              "file": "pkg/ai/goap.go",
              "line": 1392
            },
            {
              "name": "LastError",
              "anchor": "PlanRunner.LastError",
              "recv": "*PlanRunner",
              "decl": "func (r *PlanRunner) LastError() error",
              "doc": "LastError returns the error from the most recent failed planning attempt, or nil if the last plan succeeded.\n",
              "file": "pkg/ai/goap.go",
              "line": 1408
            },
            {
              "name": "Plans",
              "anchor": "PlanRunner.Plans",
              "recv": "*PlanRunner",
              "decl": "func (r *PlanRunner) Plans() int",
              "doc": "Plans returns the total number of plans computed since creation or the last Reset.\n",
              "file": "pkg/ai/goap.go",
              "line": 1400
            },
            {
              "name": "Reset",
              "anchor": "PlanRunner.Reset",
              "recv": "*PlanRunner",
              "decl": "func (r *PlanRunner) Reset()",
              "doc": "Reset cancels any in-progress plan, resets any running action node, and clears failure tracking.\n",
              "file": "pkg/ai/goap.go",
              "line": 1416
            },
            {
              "name": "Step",
              "anchor": "PlanRunner.Step",
              "recv": "*PlanRunner",
              "decl": "func (r *PlanRunner) Step() int",
              "doc": "Step returns the index of the currently active step in the plan, or -1 if no plan is active.\n",
              "file": "pkg/ai/goap.go",
              "line": 1384
            },
            {
              "name": "Tick",
              "anchor": "PlanRunner.Tick",
              "recv": "*PlanRunner",
              "decl": "func (r *PlanRunner) Tick(dt time.Duration) Status",
              "doc": "Tick advances the current plan by dt, replanning automatically on action failure,\nworld-state invalidation, or higher-priority goal preemption.\n",
              "file": "pkg/ai/goap.go",
              "line": 1440
            }
          ]
        },
        {
          "name": "PointReservations",
          "anchor": "PointReservations",
          "decl": "type PointReservations struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PointReservations tracks exclusive reservations of cover points and tactical positions across agents.\n\nEach agent holds at most one active reservation at a time: reserving a new point automatically\nreleases that agent's prior reservation, while two different agents can never hold the same\nCoverID or positions closer than MinSeparation. Step(dt) deterministically expires timed\nreservations with zero heap allocations.\n\nPointReservations is not safe for concurrent use; drive it on game.Loop's fixed steps.\n",
          "file": "pkg/ai/cover.go",
          "line": 709,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPointReservations",
              "anchor": "NewPointReservations",
              "decl": "func NewPointReservations(cfg ReservationConfig) *PointReservations",
              "doc": "NewPointReservations returns a PointReservations tracker with cfg.\n",
              "file": "pkg/ai/cover.go",
              "line": 715
            }
          ],
          "methods": [
            {
              "name": "Clear",
              "anchor": "PointReservations.Clear",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) Clear()",
              "doc": "Clear removes all active reservations while retaining slice capacity.\n",
              "file": "pkg/ai/cover.go",
              "line": 742
            },
            {
              "name": "Config",
              "anchor": "PointReservations.Config",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) Config() ReservationConfig",
              "doc": "Config returns the tracker's effective ReservationConfig.\n",
              "file": "pkg/ai/cover.go",
              "line": 726
            },
            {
              "name": "Count",
              "anchor": "PointReservations.Count",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) Count() int",
              "doc": "Count returns the number of currently active reservations.\n",
              "file": "pkg/ai/cover.go",
              "line": 734
            },
            {
              "name": "Entries",
              "anchor": "PointReservations.Entries",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) Entries(dst []Reservation) []Reservation",
              "doc": "Entries appends all active reservations to dst[:0] in deterministic ascending AgentID order.\n",
              "file": "pkg/ai/cover.go",
              "line": 912
            },
            {
              "name": "Get",
              "anchor": "PointReservations.Get",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) Get(agentID uint64) (Reservation, bool)",
              "doc": "Get returns agentID's active reservation, if any.\n",
              "file": "pkg/ai/cover.go",
              "line": 750
            },
            {
              "name": "HolderOfCover",
              "anchor": "PointReservations.HolderOfCover",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) HolderOfCover(coverID uint64) (uint64, bool)",
              "doc": "HolderOfCover returns the AgentID currently holding coverID, if any.\n",
              "file": "pkg/ai/cover.go",
              "line": 761
            },
            {
              "name": "IsReservedByOther",
              "anchor": "PointReservations.IsReservedByOther",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) IsReservedByOther(agentID, coverID uint64, pos math2d.Vec2) bool",
              "doc": "IsReservedByOther reports whether coverID (when non-zero) or pos (within MinSeparation)\nis currently reserved by an agent other than agentID.\n",
              "file": "pkg/ai/cover.go",
              "line": 775
            },
            {
              "name": "Refresh",
              "anchor": "PointReservations.Refresh",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) Refresh(agentID uint64, timeout time.Duration) bool",
              "doc": "Refresh resets the timeout of agentID's active reservation to timeout (or DefaultTimeout when <= 0).\n",
              "file": "pkg/ai/cover.go",
              "line": 845
            },
            {
              "name": "Release",
              "anchor": "PointReservations.Release",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) Release(agentID uint64) bool",
              "doc": "Release frees agentID's active reservation (for example on death or disengage).\nIt returns true if agentID held a reservation.\n",
              "file": "pkg/ai/cover.go",
              "line": 864
            },
            {
              "name": "ReleaseCover",
              "anchor": "PointReservations.ReleaseCover",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) ReleaseCover(coverID uint64) bool",
              "doc": "ReleaseCover frees whichever agent currently holds coverID (for example when destructible cover breaks).\n",
              "file": "pkg/ai/cover.go",
              "line": 877
            },
            {
              "name": "Reserve",
              "anchor": "PointReservations.Reserve",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) Reserve(agentID uint64, c TacticalCandidate, timeout time.Duration) bool",
              "doc": "Reserve reserves candidate c for agentID for timeout (or Config().DefaultTimeout when timeout <= 0).\n\nIt returns false without altering agentID's existing reservation if agentID is 0 or if the\ncandidate conflicts with another agent's reservation. On success, any prior reservation held by\nagentID is replaced atomically.\n",
              "file": "pkg/ai/cover.go",
              "line": 804
            },
            {
              "name": "ReserveCover",
              "anchor": "PointReservations.ReserveCover",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) ReserveCover(agentID uint64, cp CoverPoint, timeout time.Duration) bool",
              "doc": "ReserveCover reserves CoverPoint cp for agentID for timeout (or Config().DefaultTimeout when timeout <= 0).\n",
              "file": "pkg/ai/cover.go",
              "line": 809
            },
            {
              "name": "ReservePos",
              "anchor": "PointReservations.ReservePos",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) ReservePos(agentID uint64, pos math2d.Vec2, timeout time.Duration) bool",
              "doc": "ReservePos reserves an arbitrary world position pos for agentID for timeout (or Config().DefaultTimeout when timeout <= 0).\n",
              "file": "pkg/ai/cover.go",
              "line": 814
            },
            {
              "name": "Step",
              "anchor": "PointReservations.Step",
              "recv": "*PointReservations",
              "decl": "func (r *PointReservations) Step(dt time.Duration)",
              "doc": "Step advances all timed reservations by dt and removes any whose remaining time reaches <= 0.\nPreserves deterministic order and performs zero heap allocations.\n",
              "file": "pkg/ai/cover.go",
              "line": 892
            }
          ]
        },
        {
          "name": "QueryBudget",
          "anchor": "QueryBudget",
          "decl": "type QueryBudget struct {\n\t// MaxRaycasts is the maximum number of LOS raycast callbacks allowed per step (<= 0 means unlimited).\n\tMaxRaycasts int\n\t// MaxPathQueries is the maximum number of pathfinding queries allowed per step (<= 0 means unlimited).\n\tMaxPathQueries int\n\t// contains filtered or unexported fields\n}",
          "doc": "QueryBudget caps expensive spatial tests (line-of-sight raycasts and pathfinding searches)\nperformed across one or more TacticalQuery runs within a single simulation step.\n\nCall Reset at the start of each game.Loop step. Non-positive limits mean unlimited for that resource.\n",
          "file": "pkg/ai/tactical.go",
          "line": 111,
          "members": [
            {
              "name": "MaxRaycasts",
              "anchor": "QueryBudget.MaxRaycasts",
              "kind": "field",
              "doc": "MaxRaycasts is the maximum number of LOS raycast callbacks allowed per step (<= 0 means unlimited)."
            },
            {
              "name": "MaxPathQueries",
              "anchor": "QueryBudget.MaxPathQueries",
              "kind": "field",
              "doc": "MaxPathQueries is the maximum number of pathfinding queries allowed per step (<= 0 means unlimited)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewQueryBudget",
              "anchor": "NewQueryBudget",
              "decl": "func NewQueryBudget(maxRaycasts, maxPathQueries int) *QueryBudget",
              "doc": "NewQueryBudget returns a QueryBudget with the given per-step limits (<= 0 means unlimited).\n",
              "file": "pkg/ai/tactical.go",
              "line": 122
            }
          ],
          "methods": [
            {
              "name": "PathQueriesRemaining",
              "anchor": "QueryBudget.PathQueriesRemaining",
              "recv": "*QueryBudget",
              "decl": "func (b *QueryBudget) PathQueriesRemaining() int",
              "doc": "PathQueriesRemaining returns remaining path queries for the current step, or -1 if unlimited.\n",
              "file": "pkg/ai/tactical.go",
              "line": 189
            },
            {
              "name": "PathQueriesUsed",
              "anchor": "QueryBudget.PathQueriesUsed",
              "recv": "*QueryBudget",
              "decl": "func (b *QueryBudget) PathQueriesUsed() int",
              "doc": "PathQueriesUsed returns how many path queries have been consumed since the last Reset.\n",
              "file": "pkg/ai/tactical.go",
              "line": 173
            },
            {
              "name": "RaycastsRemaining",
              "anchor": "QueryBudget.RaycastsRemaining",
              "recv": "*QueryBudget",
              "decl": "func (b *QueryBudget) RaycastsRemaining() int",
              "doc": "RaycastsRemaining returns remaining raycasts for the current step, or -1 if unlimited.\n",
              "file": "pkg/ai/tactical.go",
              "line": 181
            },
            {
              "name": "RaycastsUsed",
              "anchor": "QueryBudget.RaycastsUsed",
              "recv": "*QueryBudget",
              "decl": "func (b *QueryBudget) RaycastsUsed() int",
              "doc": "RaycastsUsed returns how many raycasts have been consumed since the last Reset.\n",
              "file": "pkg/ai/tactical.go",
              "line": 165
            },
            {
              "name": "Reset",
              "anchor": "QueryBudget.Reset",
              "recv": "*QueryBudget",
              "decl": "func (b *QueryBudget) Reset()",
              "doc": "Reset zeroes the step's consumed raycast and path-query counters.\n",
              "file": "pkg/ai/tactical.go",
              "line": 130
            },
            {
              "name": "TryConsumePathQuery",
              "anchor": "QueryBudget.TryConsumePathQuery",
              "recv": "*QueryBudget",
              "decl": "func (b *QueryBudget) TryConsumePathQuery() bool",
              "doc": "TryConsumePathQuery consumes one path query from the step budget and returns true,\nor returns false if MaxPathQueries has been reached. A nil budget is unlimited.\n",
              "file": "pkg/ai/tactical.go",
              "line": 153
            },
            {
              "name": "TryConsumeRaycast",
              "anchor": "QueryBudget.TryConsumeRaycast",
              "recv": "*QueryBudget",
              "decl": "func (b *QueryBudget) TryConsumeRaycast() bool",
              "doc": "TryConsumeRaycast consumes one raycast from the step budget and returns true,\nor returns false if MaxRaycasts has been reached. A nil budget is unlimited.\n",
              "file": "pkg/ai/tactical.go",
              "line": 140
            }
          ]
        },
        {
          "name": "QueryOrigin",
          "anchor": "QueryOrigin",
          "decl": "type QueryOrigin uint8",
          "doc": "QueryOrigin selects a reference point from a TacticalContext.\n",
          "file": "pkg/ai/tactical.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OriginDefault",
                  "anchor": "OriginDefault"
                },
                {
                  "name": "OriginQuerier",
                  "anchor": "OriginQuerier"
                },
                {
                  "name": "OriginTarget",
                  "anchor": "OriginTarget"
                },
                {
                  "name": "OriginCustom",
                  "anchor": "OriginCustom"
                }
              ],
              "decl": "const (\n\t// OriginDefault uses the generator's or test's natural default origin\n\t// (OriginQuerier for CoverPoint/Grid/NavMesh/Distance/PathDistance; OriginTarget for Ring/LOS/Angle).\n\tOriginDefault QueryOrigin = iota\n\t// OriginQuerier uses TacticalContext.QuerierPos.\n\tOriginQuerier\n\t// OriginTarget uses TacticalContext.TargetPos.\n\tOriginTarget\n\t// OriginCustom uses the generator's or test's explicit CustomPos / CustomCenter / CustomTarget field.\n\tOriginCustom\n)",
              "doc": "",
              "file": "pkg/ai/tactical.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "QueryStats",
          "anchor": "QueryStats",
          "decl": "type QueryStats struct {\n\t// CandidatesGenerated is the total number of candidates produced by all generators.\n\tCandidatesGenerated int\n\t// CandidatesSurviving is the number of candidates remaining after all filters and budget checks.\n\tCandidatesSurviving int\n\t// RaycastsUsed is the number of LOS callbacks invoked during this query.\n\tRaycastsUsed int\n\t// PathQueriesUsed is the number of path queries invoked during this query.\n\tPathQueriesUsed int\n\t// BudgetExhausted is true if any expensive test stopped early because ctx.Budget ran out.\n\tBudgetExhausted bool\n}",
          "doc": "QueryStats summarizes the work performed during the most recent TacticalQuery run.\n",
          "file": "pkg/ai/tactical.go",
          "line": 197,
          "members": [
            {
              "name": "CandidatesGenerated",
              "anchor": "QueryStats.CandidatesGenerated",
              "kind": "field",
              "doc": "CandidatesGenerated is the total number of candidates produced by all generators."
            },
            {
              "name": "CandidatesSurviving",
              "anchor": "QueryStats.CandidatesSurviving",
              "kind": "field",
              "doc": "CandidatesSurviving is the number of candidates remaining after all filters and budget checks."
            },
            {
              "name": "RaycastsUsed",
              "anchor": "QueryStats.RaycastsUsed",
              "kind": "field",
              "doc": "RaycastsUsed is the number of LOS callbacks invoked during this query."
            },
            {
              "name": "PathQueriesUsed",
              "anchor": "QueryStats.PathQueriesUsed",
              "kind": "field",
              "doc": "PathQueriesUsed is the number of path queries invoked during this query."
            },
            {
              "name": "BudgetExhausted",
              "anchor": "QueryStats.BudgetExhausted",
              "kind": "field",
              "doc": "BudgetExhausted is true if any expensive test stopped early because ctx.Budget ran out."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReachableCell",
          "anchor": "ReachableCell",
          "decl": "type ReachableCell struct {\n\tCell Cell\n\tCost float64\n}",
          "doc": "ReachableCell is one cell returned by a movement-range query together with its minimum path cost from the start cell.\n",
          "file": "pkg/ai/topology.go",
          "line": 129,
          "members": [
            {
              "name": "Cell",
              "anchor": "ReachableCell.Cell",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cost",
              "anchor": "ReachableCell.Cost",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ReachableCells",
              "anchor": "ReachableCells",
              "decl": "func ReachableCells(g Grid, topology GridTopology, start Cell, budget float64, edgeCost func(from, to Cell) float64) []ReachableCell",
              "doc": "ReachableCells returns every cell reachable from start on g within budget under topology, ordered by ascending cost then row-major cell index.\n\nWhen edgeCost is non-nil it overrides CostGrid and EdgeCostGrid with a custom step cost multiplier. For repeated zero-allocation queries, configure an AStar with Topology and call MovementRangeInto or MovementRangeWithCost.\n",
              "file": "pkg/ai/topology.go",
              "line": 505
            }
          ],
          "methods": []
        },
        {
          "name": "ReachableNode",
          "anchor": "ReachableNode",
          "decl": "type ReachableNode[N comparable] struct {\n\tNode N\n\tCost float64\n}",
          "doc": "ReachableNode pairs a node reached by GraphSearch.Range with its minimum path cost from start.\n",
          "file": "pkg/ai/graph.go",
          "line": 92,
          "members": [
            {
              "name": "Node",
              "anchor": "ReachableNode.Node",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cost",
              "anchor": "ReachableNode.Cost",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Reasoner",
          "anchor": "Reasoner",
          "decl": "type Reasoner[C any] struct {\n\t// TopN chooses weighted-randomly among the top TopN positive-scoring actions when TopN > 1 and a non-nil *random.Stream is provided.\n\t// When TopN <= 1 or the stream is nil, the single highest-scoring action is picked deterministically.\n\tTopN int\n\t// Momentum is an optional bonus added to the currently active action's positive score to prevent oscillation between nearly equal actions.\n\tMomentum float64\n\t// contains filtered or unexported fields\n}",
          "doc": "Reasoner scores a fixed set of UtilityActions and chooses either the highest-scoring action or a weighted random choice among the top TopN positive-scoring actions from a random.Stream.\n\nTies always break in fixed action order (lowest index wins). After warm-up, Choose, ChooseWithCurrent, ScoreAction, and ScoreAll make zero heap allocations.\n",
          "file": "pkg/ai/utility.go",
          "line": 272,
          "members": [
            {
              "name": "TopN",
              "anchor": "Reasoner.TopN",
              "kind": "field",
              "doc": "TopN chooses weighted-randomly among the top TopN positive-scoring actions when TopN > 1 and a non-nil *random.Stream is provided.\nWhen TopN <= 1 or the stream is nil, the single highest-scoring action is picked deterministically."
            },
            {
              "name": "Momentum",
              "anchor": "Reasoner.Momentum",
              "kind": "field",
              "doc": "Momentum is an optional bonus added to the currently active action's positive score to prevent oscillation between nearly equal actions."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildReasoner",
              "anchor": "BuildReasoner",
              "decl": "func BuildReasoner[C any](cfg *UtilityConfig, bind UtilityBindings[C]) (*Reasoner[C], error)",
              "doc": "BuildReasoner validates cfg and resolves its input names and resource curve files into a Reasoner.\n",
              "file": "pkg/ai/utility_yaml.go",
              "line": 215
            },
            {
              "name": "NewReasoner",
              "anchor": "NewReasoner",
              "decl": "func NewReasoner[C any](actions ...UtilityAction[C]) *Reasoner[C]",
              "doc": "NewReasoner constructs a Reasoner with defensive copies of actions and their consideration slices.\n",
              "file": "pkg/ai/utility.go",
              "line": 285
            }
          ],
          "methods": [
            {
              "name": "ActionCount",
              "anchor": "Reasoner.ActionCount",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) ActionCount() int",
              "doc": "ActionCount returns the number of actions configured on r.\n",
              "file": "pkg/ai/utility.go",
              "line": 298
            },
            {
              "name": "ActionIndex",
              "anchor": "Reasoner.ActionIndex",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) ActionIndex(name string) int",
              "doc": "ActionIndex returns the index of the first action named name, or -1 if none matches.\n",
              "file": "pkg/ai/utility.go",
              "line": 314
            },
            {
              "name": "ActionName",
              "anchor": "Reasoner.ActionName",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) ActionName(index int) string",
              "doc": "ActionName returns the Name of action at index, or \"\" if index is out of bounds.\n",
              "file": "pkg/ai/utility.go",
              "line": 306
            },
            {
              "name": "Choose",
              "anchor": "Reasoner.Choose",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) Choose(ctx C, rng *random.Stream) (int, float64)",
              "doc": "Choose scores all actions using r.Current() for momentum, selects the winning action, updates r.Current() to that action, and returns its index and score.\nReturns (-1, 0) if no action has a positive score.\n",
              "file": "pkg/ai/utility.go",
              "line": 396
            },
            {
              "name": "ChooseWithCurrent",
              "anchor": "Reasoner.ChooseWithCurrent",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) ChooseWithCurrent(ctx C, current int, rng *random.Stream) (int, float64)",
              "doc": "ChooseWithCurrent scores all actions using current as the active action index for momentum, without modifying r.Current().\nThis lets one shared Reasoner score many agents without per-agent copies or heap allocations.\nReturns (-1, 0) if no action has a positive score.\n",
              "file": "pkg/ai/utility.go",
              "line": 408
            },
            {
              "name": "Current",
              "anchor": "Reasoner.Current",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) Current() int",
              "doc": "Current returns the index of the currently active action tracked by Choose, or -1 if none is active.\n",
              "file": "pkg/ai/utility.go",
              "line": 327
            },
            {
              "name": "Reset",
              "anchor": "Reasoner.Reset",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) Reset()",
              "doc": "Reset clears the currently active action tracked by Choose.\n",
              "file": "pkg/ai/utility.go",
              "line": 347
            },
            {
              "name": "ScoreAction",
              "anchor": "Reasoner.ScoreAction",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) ScoreAction(index int, ctx C, isCurrent bool) float64",
              "doc": "ScoreAction scores the action at index for ctx, applying momentum when isCurrent is true.\nOut-of-range indices return 0.\n",
              "file": "pkg/ai/utility.go",
              "line": 370
            },
            {
              "name": "ScoreAll",
              "anchor": "Reasoner.ScoreAll",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) ScoreAll(ctx C, current int, dst []float64) []float64",
              "doc": "ScoreAll evaluates every action for ctx (applying momentum to action current) and writes the scores into dst, reusing dst's backing array when its capacity is at least ActionCount().\n",
              "file": "pkg/ai/utility.go",
              "line": 378
            },
            {
              "name": "SetCurrent",
              "anchor": "Reasoner.SetCurrent",
              "recv": "*Reasoner[C]",
              "decl": "func (r *Reasoner[C]) SetCurrent(index int)",
              "doc": "SetCurrent sets the currently active action index tracked by Choose. Out-of-range values clear the active action to -1.\n",
              "file": "pkg/ai/utility.go",
              "line": 335
            }
          ]
        },
        {
          "name": "Reservation",
          "anchor": "Reservation",
          "decl": "type Reservation struct {\n\t// AgentID is the reserving agent's unique identifier.\n\tAgentID uint64\n\t// CoverID is the reserved CoverPoint.ID, or 0 for a non-cover spatial position.\n\tCoverID uint64\n\t// Pos is the reserved world position.\n\tPos math2d.Vec2\n\t// Remaining is the time left before automatic expiry when HasTimeout is true.\n\tRemaining time.Duration\n\t// HasTimeout reports whether this reservation expires automatically on Step.\n\tHasTimeout bool\n}",
          "doc": "Reservation describes a single agent's active tactical position or cover reservation.\n",
          "file": "pkg/ai/cover.go",
          "line": 688,
          "members": [
            {
              "name": "AgentID",
              "anchor": "Reservation.AgentID",
              "kind": "field",
              "doc": "AgentID is the reserving agent's unique identifier."
            },
            {
              "name": "CoverID",
              "anchor": "Reservation.CoverID",
              "kind": "field",
              "doc": "CoverID is the reserved CoverPoint.ID, or 0 for a non-cover spatial position."
            },
            {
              "name": "Pos",
              "anchor": "Reservation.Pos",
              "kind": "field",
              "doc": "Pos is the reserved world position."
            },
            {
              "name": "Remaining",
              "anchor": "Reservation.Remaining",
              "kind": "field",
              "doc": "Remaining is the time left before automatic expiry when HasTimeout is true."
            },
            {
              "name": "HasTimeout",
              "anchor": "Reservation.HasTimeout",
              "kind": "field",
              "doc": "HasTimeout reports whether this reservation expires automatically on Step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReservationConfig",
          "anchor": "ReservationConfig",
          "decl": "type ReservationConfig struct {\n\t// MinSeparation is the minimum allowed distance between two reserved positions that do not\n\t// share a non-zero CoverID. Values <= 0 enforce exclusivity only on matching CoverIDs.\n\tMinSeparation float32\n\t// DefaultTimeout is the automatic expiration duration used when Reserve is called with\n\t// timeout <= 0. Values <= 0 keep reservations active until explicitly released.\n\tDefaultTimeout time.Duration\n}",
          "doc": "ReservationConfig configures a PointReservations tracker.\n",
          "file": "pkg/ai/cover.go",
          "line": 678,
          "members": [
            {
              "name": "MinSeparation",
              "anchor": "ReservationConfig.MinSeparation",
              "kind": "field",
              "doc": "MinSeparation is the minimum allowed distance between two reserved positions that do not\nshare a non-zero CoverID. Values <= 0 enforce exclusivity only on matching CoverIDs."
            },
            {
              "name": "DefaultTimeout",
              "anchor": "ReservationConfig.DefaultTimeout",
              "kind": "field",
              "doc": "DefaultTimeout is the automatic expiration duration used when Reserve is called with\ntimeout <= 0. Values <= 0 keep reservations active until explicitly released."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ResponseCurve",
          "anchor": "ResponseCurve",
          "decl": "type ResponseCurve struct {\n\t// Kind selects the curve formula; empty acts as identity unless Evaluator is set.\n\tKind CurveKind\n\t// Slope scales the curve output (or defines the step height high - low for CurveStep).\n\tSlope float64\n\t// Exponent sets the power for CurvePolynomial or the steepness for CurveLogistic.\n\tExponent float64\n\t// ShiftX shifts the input (the midpoint for CurveLogistic/CurveLogit or threshold for CurveStep).\n\tShiftX float64\n\t// ShiftY offsets the output (or defines the low output below ShiftX for CurveStep).\n\tShiftY float64\n\t// Evaluator supplies custom or resource-backed evaluation when Kind is CurveResource (or empty).\n\tEvaluator CurveEvaluator\n}",
          "doc": "ResponseCurve maps a normalized input x in [0, 1] into a utility score in [0, 1].\n\nThe zero ResponseCurve acts as the identity curve (y = x).\n",
          "file": "pkg/ai/utility.go",
          "line": 50,
          "members": [
            {
              "name": "Kind",
              "anchor": "ResponseCurve.Kind",
              "kind": "field",
              "doc": "Kind selects the curve formula; empty acts as identity unless Evaluator is set."
            },
            {
              "name": "Slope",
              "anchor": "ResponseCurve.Slope",
              "kind": "field",
              "doc": "Slope scales the curve output (or defines the step height high - low for CurveStep)."
            },
            {
              "name": "Exponent",
              "anchor": "ResponseCurve.Exponent",
              "kind": "field",
              "doc": "Exponent sets the power for CurvePolynomial or the steepness for CurveLogistic."
            },
            {
              "name": "ShiftX",
              "anchor": "ResponseCurve.ShiftX",
              "kind": "field",
              "doc": "ShiftX shifts the input (the midpoint for CurveLogistic/CurveLogit or threshold for CurveStep)."
            },
            {
              "name": "ShiftY",
              "anchor": "ResponseCurve.ShiftY",
              "kind": "field",
              "doc": "ShiftY offsets the output (or defines the low output below ShiftX for CurveStep)."
            },
            {
              "name": "Evaluator",
              "anchor": "ResponseCurve.Evaluator",
              "kind": "field",
              "doc": "Evaluator supplies custom or resource-backed evaluation when Kind is CurveResource (or empty)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CustomCurve",
              "anchor": "CustomCurve",
              "decl": "func CustomCurve(fn func(float64) float64) ResponseCurve",
              "doc": "CustomCurve returns a response curve backed by fn.\n",
              "file": "pkg/ai/utility.go",
              "line": 96
            },
            {
              "name": "LinearCurve",
              "anchor": "LinearCurve",
              "decl": "func LinearCurve(slope, shiftX, shiftY float64) ResponseCurve",
              "doc": "LinearCurve returns a linear response curve y = slope*(x - shiftX) + shiftY clamped to [0, 1].\n",
              "file": "pkg/ai/utility.go",
              "line": 66
            },
            {
              "name": "LogisticCurve",
              "anchor": "LogisticCurve",
              "decl": "func LogisticCurve(slope, steepness, midpoint, shiftY float64) ResponseCurve",
              "doc": "LogisticCurve returns an S-shaped logistic response curve y = slope/(1 + exp(-steepness*(x - midpoint))) + shiftY clamped to [0, 1].\n",
              "file": "pkg/ai/utility.go",
              "line": 76
            },
            {
              "name": "LogitCurve",
              "anchor": "LogitCurve",
              "decl": "func LogitCurve(slope, midpoint, shiftY float64) ResponseCurve",
              "doc": "LogitCurve returns a logit response curve y = slope*ln(u/(1 - u)) + shiftY where u = x - midpoint + 0.5, clamped to [0, 1].\n",
              "file": "pkg/ai/utility.go",
              "line": 81
            },
            {
              "name": "PolynomialCurve",
              "anchor": "PolynomialCurve",
              "decl": "func PolynomialCurve(slope, exponent, shiftX, shiftY float64) ResponseCurve",
              "doc": "PolynomialCurve returns a polynomial response curve y = slope*(x - shiftX)^exponent + shiftY clamped to [0, 1].\n",
              "file": "pkg/ai/utility.go",
              "line": 71
            },
            {
              "name": "ResourceCurve",
              "anchor": "ResourceCurve",
              "decl": "func ResourceCurve(eval CurveEvaluator) ResponseCurve",
              "doc": "ResourceCurve returns a response curve backed by eval (for example a *resource.Curve).\n",
              "file": "pkg/ai/utility.go",
              "line": 91
            },
            {
              "name": "StepCurve",
              "anchor": "StepCurve",
              "decl": "func StepCurve(threshold, low, high float64) ResponseCurve",
              "doc": "StepCurve returns a threshold step response curve returning low for x < threshold and high for x >= threshold, clamped to [0, 1].\n",
              "file": "pkg/ai/utility.go",
              "line": 86
            }
          ],
          "methods": [
            {
              "name": "Eval",
              "anchor": "ResponseCurve.Eval",
              "recv": "ResponseCurve",
              "decl": "func (c ResponseCurve) Eval(x float64) float64",
              "doc": "Eval evaluates c at x, clamping both the input and output to [0, 1].\nA NaN input or output yields 0.\n",
              "file": "pkg/ai/utility.go",
              "line": 102
            }
          ]
        },
        {
          "name": "RingGenerator",
          "anchor": "RingGenerator",
          "decl": "type RingGenerator struct {\n\t// Center selects the ring center (defaults to OriginTarget).\n\tCenter QueryOrigin\n\t// CustomCenter is used when Center is OriginCustom.\n\tCustomCenter math2d.Vec2\n\t// InnerRadius is the innermost ring radius (used directly when OuterRadius <= InnerRadius or Rings <= 1).\n\tInnerRadius float32\n\t// OuterRadius is the outermost ring radius.\n\tOuterRadius float32\n\t// Rings is the number of concentric rings (values <= 0 default to 1).\n\tRings int\n\t// PointsPerRing is the number of evenly spaced samples per ring (values <= 0 default to 8).\n\tPointsPerRing int\n\t// StartAngle is the base angle in radians (0 along +X; for arcs < 2*pi, the arc is centered on StartAngle).\n\tStartAngle float32\n\t// Arc is the angular span in radians; values <= 0 or >= 2*pi generate a full 360-degree ring.\n\tArc float32\n\t// FaceCenter sets each candidate's Facing to the unit vector pointing toward the ring center.\n\tFaceCenter bool\n}",
          "doc": "RingGenerator emits candidates arranged on one or more concentric rings (or arcs) around a center.\n",
          "file": "pkg/ai/tactical.go",
          "line": 302,
          "members": [
            {
              "name": "Center",
              "anchor": "RingGenerator.Center",
              "kind": "field",
              "doc": "Center selects the ring center (defaults to OriginTarget)."
            },
            {
              "name": "CustomCenter",
              "anchor": "RingGenerator.CustomCenter",
              "kind": "field",
              "doc": "CustomCenter is used when Center is OriginCustom."
            },
            {
              "name": "InnerRadius",
              "anchor": "RingGenerator.InnerRadius",
              "kind": "field",
              "doc": "InnerRadius is the innermost ring radius (used directly when OuterRadius <= InnerRadius or Rings <= 1)."
            },
            {
              "name": "OuterRadius",
              "anchor": "RingGenerator.OuterRadius",
              "kind": "field",
              "doc": "OuterRadius is the outermost ring radius."
            },
            {
              "name": "Rings",
              "anchor": "RingGenerator.Rings",
              "kind": "field",
              "doc": "Rings is the number of concentric rings (values <= 0 default to 1)."
            },
            {
              "name": "PointsPerRing",
              "anchor": "RingGenerator.PointsPerRing",
              "kind": "field",
              "doc": "PointsPerRing is the number of evenly spaced samples per ring (values <= 0 default to 8)."
            },
            {
              "name": "StartAngle",
              "anchor": "RingGenerator.StartAngle",
              "kind": "field",
              "doc": "StartAngle is the base angle in radians (0 along +X; for arcs < 2*pi, the arc is centered on StartAngle)."
            },
            {
              "name": "Arc",
              "anchor": "RingGenerator.Arc",
              "kind": "field",
              "doc": "Arc is the angular span in radians; values <= 0 or >= 2*pi generate a full 360-degree ring."
            },
            {
              "name": "FaceCenter",
              "anchor": "RingGenerator.FaceCenter",
              "kind": "field",
              "doc": "FaceCenter sets each candidate's Facing to the unit vector pointing toward the ring center."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Generate",
              "anchor": "RingGenerator.Generate",
              "recv": "*RingGenerator",
              "decl": "func (g *RingGenerator) Generate(ctx TacticalContext, dst []TacticalCandidate) []TacticalCandidate",
              "doc": "Generate appends concentric ring candidates in deterministic ring-major, angle-minor order.\n",
              "file": "pkg/ai/tactical.go",
              "line": 324
            }
          ]
        },
        {
          "name": "SearchStatus",
          "anchor": "SearchStatus",
          "decl": "type SearchStatus uint8",
          "doc": "SearchStatus reports the lifecycle state of an incremental path search.\n",
          "file": "pkg/ai/pathsearch.go",
          "line": 22,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SearchInProgress",
                  "anchor": "SearchInProgress"
                },
                {
                  "name": "SearchComplete",
                  "anchor": "SearchComplete"
                },
                {
                  "name": "SearchPartial",
                  "anchor": "SearchPartial"
                },
                {
                  "name": "SearchFailed",
                  "anchor": "SearchFailed"
                }
              ],
              "decl": "const (\n\t// SearchInProgress indicates the search still has work remaining and has not reached the goal or its expansion budget.\n\tSearchInProgress SearchStatus = iota\n\t// SearchComplete indicates a complete path to the goal was found.\n\tSearchComplete\n\t// SearchPartial indicates a partial path to the closest explored node was produced\n\t// because the goal was unreachable or MaxExpansions was reached with AllowPartial enabled.\n\tSearchPartial\n\t// SearchFailed indicates no path was produced (invalid endpoints, unreachable goal without AllowPartial, or budget exhausted without AllowPartial).\n\tSearchFailed\n)",
              "doc": "",
              "file": "pkg/ai/pathsearch.go",
              "line": 24
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Done",
              "anchor": "SearchStatus.Done",
              "recv": "SearchStatus",
              "decl": "func (s SearchStatus) Done() bool",
              "doc": "Done reports whether the search has reached a terminal state (complete, partial, or failed).\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 37
            },
            {
              "name": "String",
              "anchor": "SearchStatus.String",
              "recv": "SearchStatus",
              "decl": "func (s SearchStatus) String() string",
              "doc": "String returns a human-readable status name.\n",
              "file": "pkg/ai/pathsearch.go",
              "line": 42
            }
          ]
        },
        {
          "name": "Sense",
          "anchor": "Sense",
          "decl": "type Sense uint8",
          "doc": "Sense names the sense that last refreshed a memory.\n",
          "file": "pkg/ai/perception.go",
          "line": 77,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SenseSight",
                  "anchor": "SenseSight"
                },
                {
                  "name": "SenseHearing",
                  "anchor": "SenseHearing"
                }
              ],
              "decl": "const (\n\t// SenseSight is a stimulus seen inside a sight cone with a clear line of sight.\n\tSenseSight Sense = iota + 1\n\t// SenseHearing is a noise heard within hearing range.\n\tSenseHearing\n)",
              "doc": "",
              "file": "pkg/ai/perception.go",
              "line": 79
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Sense.String",
              "recv": "Sense",
              "decl": "func (s Sense) String() string",
              "doc": "String returns the sense's lower-case name.\n",
              "file": "pkg/ai/perception.go",
              "line": 87
            }
          ]
        },
        {
          "name": "SightConfig",
          "anchor": "SightConfig",
          "decl": "type SightConfig struct {\n\t// Range is how far the agent sees inside its cone; +Inf sees any finite distance, and zero, less or NaN disables the cone.\n\tRange float32\n\t// HalfAngle is the half-angle of the sight cone around the facing direction; zero, less or NaN disables the cone.\n\tHalfAngle float32\n\t// PeripheralRange is a shorter range seen over PeripheralHalfAngle, so a guard notices a target right beside it.\n\tPeripheralRange float32\n\t// PeripheralHalfAngle is the half-angle the peripheral range covers; zero means π, all around the agent, and a negative or NaN value disables the peripheral range.\n\tPeripheralHalfAngle float32\n\t// Detect selects the attitudes sight detects; zero detects hostile targets only.\n\tDetect AttitudeMask\n}",
          "doc": "SightConfig describes an agent's vision. The zero SightConfig sees nothing.\n\nA target is in view when it lies within Range of the eye and within HalfAngle of the facing direction, or within PeripheralRange and within PeripheralHalfAngle. Angles are in radians; a half-angle of π or more covers every direction. Ranges are inclusive. A target in view is seen when the line of sight to it is clear.\n",
          "file": "pkg/ai/perception.go",
          "line": 129,
          "members": [
            {
              "name": "Range",
              "anchor": "SightConfig.Range",
              "kind": "field",
              "doc": "Range is how far the agent sees inside its cone; +Inf sees any finite distance, and zero, less or NaN disables the cone."
            },
            {
              "name": "HalfAngle",
              "anchor": "SightConfig.HalfAngle",
              "kind": "field",
              "doc": "HalfAngle is the half-angle of the sight cone around the facing direction; zero, less or NaN disables the cone."
            },
            {
              "name": "PeripheralRange",
              "anchor": "SightConfig.PeripheralRange",
              "kind": "field",
              "doc": "PeripheralRange is a shorter range seen over PeripheralHalfAngle, so a guard notices a target right beside it."
            },
            {
              "name": "PeripheralHalfAngle",
              "anchor": "SightConfig.PeripheralHalfAngle",
              "kind": "field",
              "doc": "PeripheralHalfAngle is the half-angle the peripheral range covers; zero means π, all around the agent, and a negative or NaN value disables the peripheral range."
            },
            {
              "name": "Detect",
              "anchor": "SightConfig.Detect",
              "kind": "field",
              "doc": "Detect selects the attitudes sight detects; zero detects hostile targets only."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SlotAgent",
          "anchor": "SlotAgent",
          "decl": "type SlotAgent struct {\n\t// ID uniquely identifies the agent for deterministic tie-breaking and cross-frame stability.\n\tID uint64\n\t// Pos is the agent's current world position.\n\tPos core.Point\n}",
          "doc": "SlotAgent describes an agent competing for an engagement slot around a target.\n",
          "file": "pkg/ai/squad.go",
          "line": 35,
          "members": [
            {
              "name": "ID",
              "anchor": "SlotAgent.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the agent for deterministic tie-breaking and cross-frame stability."
            },
            {
              "name": "Pos",
              "anchor": "SlotAgent.Pos",
              "kind": "field",
              "doc": "Pos is the agent's current world position."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SlotAssigner",
          "anchor": "SlotAssigner",
          "decl": "type SlotAssigner struct {\n\t// StayBias subtracts this many world units from the assignment cost of an agent's\n\t// previously held slot so agents do not swap slots unnecessarily as the target moves.\n\t// Values <= 0 disable hysteresis.\n\tStayBias float64\n\t// contains filtered or unexported fields\n}",
          "doc": "SlotAssigner assigns agents to concentric engagement rings around a target using optimal\nminimum-cost bipartite matching (the Hungarian algorithm).\n\nInner rings fill completely before outer rings are used, straight-line paths between agents\nand their assigned slots do not cross (by the triangle inequality on Euclidean distance),\nand assignments are strictly deterministic regardless of input slice order.\n\nSet StayBias > 0 to give each agent a cost bonus (in world distance units) for retaining its\nprevious slot as the target moves, suppressing oscillation across slot boundaries.\n\nSlotAssigner reuses internal solver buffers across calls and is not safe for concurrent use.\n",
          "file": "pkg/ai/squad.go",
          "line": 67,
          "members": [
            {
              "name": "StayBias",
              "anchor": "SlotAssigner.StayBias",
              "kind": "field",
              "doc": "StayBias subtracts this many world units from the assignment cost of an agent's\npreviously held slot so agents do not swap slots unnecessarily as the target moves.\nValues <= 0 disable hysteresis."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSlotAssigner",
              "anchor": "NewSlotAssigner",
              "decl": "func NewSlotAssigner(rings ...EngagementRing) *SlotAssigner",
              "doc": "NewSlotAssigner builds a SlotAssigner for the given concentric rings.\nRings are filled in the order given (typically innermost first); rings with Slots <= 0 or\nnon-finite/negative Radius are ignored.\n",
              "file": "pkg/ai/squad.go",
              "line": 90
            }
          ],
          "methods": [
            {
              "name": "Assign",
              "anchor": "SlotAssigner.Assign",
              "recv": "*SlotAssigner",
              "decl": "func (a *SlotAssigner) Assign(dst []SlotAssignment, target core.Point, agents []SlotAgent) []SlotAssignment",
              "doc": "Assign matches agents to engagement slots around target, appending the assignments to dst[:0]\nsorted by ascending AgentID.\n\nEach agent should have a unique ID; duplicate IDs keep the entry with the earliest position\nafter deterministic sorting. Agents no longer present in agents are pruned from stability memory.\n",
              "file": "pkg/ai/squad.go",
              "line": 150
            },
            {
              "name": "Assignment",
              "anchor": "SlotAssigner.Assignment",
              "recv": "*SlotAssigner",
              "decl": "func (a *SlotAssigner) Assignment(agentID uint64) (SlotAssignment, bool)",
              "doc": "Assignment returns the most recent SlotAssignment computed for agentID.\n",
              "file": "pkg/ai/squad.go",
              "line": 306
            },
            {
              "name": "Release",
              "anchor": "SlotAssigner.Release",
              "recv": "*SlotAssigner",
              "decl": "func (a *SlotAssigner) Release(agentID uint64)",
              "doc": "Release removes agentID from the assigner's stability memory and last-assignment cache.\n",
              "file": "pkg/ai/squad.go",
              "line": 312
            },
            {
              "name": "Reset",
              "anchor": "SlotAssigner.Reset",
              "recv": "*SlotAssigner",
              "decl": "func (a *SlotAssigner) Reset()",
              "doc": "Reset clears all stability memory and cached assignments.\n",
              "file": "pkg/ai/squad.go",
              "line": 318
            },
            {
              "name": "Rings",
              "anchor": "SlotAssigner.Rings",
              "recv": "*SlotAssigner",
              "decl": "func (a *SlotAssigner) Rings() []EngagementRing",
              "doc": "Rings returns a copy of the assigner's configured engagement rings.\n",
              "file": "pkg/ai/squad.go",
              "line": 112
            },
            {
              "name": "Slots",
              "anchor": "SlotAssigner.Slots",
              "recv": "*SlotAssigner",
              "decl": "func (a *SlotAssigner) Slots(dst []EngagementSlot, target core.Point) []EngagementSlot",
              "doc": "Slots computes the world-space engagement slots around target and appends them to dst[:0].\n",
              "file": "pkg/ai/squad.go",
              "line": 120
            },
            {
              "name": "TotalSlots",
              "anchor": "SlotAssigner.TotalSlots",
              "recv": "*SlotAssigner",
              "decl": "func (a *SlotAssigner) TotalSlots() int",
              "doc": "TotalSlots returns the total number of slots across all configured rings.\n",
              "file": "pkg/ai/squad.go",
              "line": 117
            }
          ]
        },
        {
          "name": "SlotAssignment",
          "anchor": "SlotAssignment",
          "decl": "type SlotAssignment struct {\n\t// AgentID is the agent's ID.\n\tAgentID uint64\n\t// Ring is the assigned ring index, or -1 when Assigned is false.\n\tRing int\n\t// Slot is the assigned slot index within Ring, or -1 when Assigned is false.\n\tSlot int\n\t// Pos is the assigned slot's world position (zero when Assigned is false).\n\tPos core.Point\n\t// Assigned reports whether the agent received a slot.\n\tAssigned bool\n}",
          "doc": "SlotAssignment pairs an agent with its assigned engagement slot.\n",
          "file": "pkg/ai/squad.go",
          "line": 43,
          "members": [
            {
              "name": "AgentID",
              "anchor": "SlotAssignment.AgentID",
              "kind": "field",
              "doc": "AgentID is the agent's ID."
            },
            {
              "name": "Ring",
              "anchor": "SlotAssignment.Ring",
              "kind": "field",
              "doc": "Ring is the assigned ring index, or -1 when Assigned is false."
            },
            {
              "name": "Slot",
              "anchor": "SlotAssignment.Slot",
              "kind": "field",
              "doc": "Slot is the assigned slot index within Ring, or -1 when Assigned is false."
            },
            {
              "name": "Pos",
              "anchor": "SlotAssignment.Pos",
              "kind": "field",
              "doc": "Pos is the assigned slot's world position (zero when Assigned is false)."
            },
            {
              "name": "Assigned",
              "anchor": "SlotAssignment.Assigned",
              "kind": "field",
              "doc": "Assigned reports whether the agent received a slot."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SnapshotNode",
          "anchor": "SnapshotNode",
          "decl": "type SnapshotNode interface {\n\tNode\n\tSnapshotKind() string\n\tSnapshotState() (any, error)\n\tRestoreState(state any) error\n}",
          "doc": "SnapshotNode is an optional interface that custom [Node] implementations may\nimplement to participate in [SnapshotBehaviorTree] and [RestoreBehaviorTree].\n\nSnapshotKind returns a stable, non-empty identifier (for example \"patrol\")\nrecorded in the snapshot as \"custom:<kind>\" to verify tree shape on restore.\nSnapshotState returns plain serializable data (scalars, slices, maps, or\nexported structs with json and yaml tags) representing the node's mutable\nruntime state, or nil when stateless. RestoreState validates and applies that\nstate; on error it must leave the node unchanged.\n",
          "file": "pkg/ai/bt_snapshot.go",
          "line": 32,
          "members": [
            {
              "name": "SnapshotKind",
              "anchor": "SnapshotNode.SnapshotKind",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "SnapshotState",
              "anchor": "SnapshotNode.SnapshotState",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "RestoreState",
              "anchor": "SnapshotNode.RestoreState",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SpreadOptions",
          "anchor": "SpreadOptions",
          "decl": "type SpreadOptions struct {\n\t// Decay is the fraction of influence lost per unit cell distance in [0, 1].\n\t// Cardinal neighbors retain (1 - Decay); diagonal neighbors retain (1 - Decay)^sqrt(2).\n\t// Values <= 0 keep full strength (retention 1); values >= 1 or NaN prevent spreading (retention 0).\n\tDecay float32\n\t// Momentum blends previous cell values with newly propagated targets in [0, 1]:\n\t// next = prev*Momentum + target*(1 - Momentum).\n\t// Values <= 0 or NaN replace immediately; values >= 1 keep previous values unchanged.\n\tMomentum float32\n\t// Iterations is the number of propagation passes to run; values <= 0 run 1 pass.\n\tIterations int\n\t// Diagonal allows 8-way propagation with step distance sqrt(2) and no corner-cutting around blocked cells.\n\t// False restricts propagation to the 4 cardinal directions.\n\tDiagonal bool\n}",
          "doc": "SpreadOptions configures iterative influence propagation around blocked cells on a Grid.\n",
          "file": "pkg/ai/influence.go",
          "line": 44,
          "members": [
            {
              "name": "Decay",
              "anchor": "SpreadOptions.Decay",
              "kind": "field",
              "doc": "Decay is the fraction of influence lost per unit cell distance in [0, 1].\nCardinal neighbors retain (1 - Decay); diagonal neighbors retain (1 - Decay)^sqrt(2).\nValues <= 0 keep full strength (retention 1); values >= 1 or NaN prevent spreading (retention 0)."
            },
            {
              "name": "Momentum",
              "anchor": "SpreadOptions.Momentum",
              "kind": "field",
              "doc": "Momentum blends previous cell values with newly propagated targets in [0, 1]:\nnext = prev*Momentum + target*(1 - Momentum).\nValues <= 0 or NaN replace immediately; values >= 1 keep previous values unchanged."
            },
            {
              "name": "Iterations",
              "anchor": "SpreadOptions.Iterations",
              "kind": "field",
              "doc": "Iterations is the number of propagation passes to run; values <= 0 run 1 pass."
            },
            {
              "name": "Diagonal",
              "anchor": "SpreadOptions.Diagonal",
              "kind": "field",
              "doc": "Diagonal allows 8-way propagation with step distance sqrt(2) and no corner-cutting around blocked cells.\nFalse restricts propagation to the 4 cardinal directions."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Squad",
          "anchor": "Squad",
          "decl": "type Squad struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Squad coordinates a group of AI agents with a deterministic member roster, shared SquadState,\nscore-driven tactical role assignments, and squad-level orders readable by behavior trees.\n\nSquad is not safe for concurrent use; drive it on game.Loop's fixed steps.\n",
          "file": "pkg/ai/squad.go",
          "line": 579,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSquad",
              "anchor": "NewSquad",
              "decl": "func NewSquad(id uint64, members ...uint64) *Squad",
              "doc": "NewSquad returns a Squad with identifier id and optional initial member IDs.\n",
              "file": "pkg/ai/squad.go",
              "line": 595
            }
          ],
          "methods": [
            {
              "name": "AddMember",
              "anchor": "Squad.AddMember",
              "recv": "*Squad",
              "decl": "func (s *Squad) AddMember(agentID uint64) bool",
              "doc": "AddMember adds agentID to the squad roster, maintaining ascending ID order.\nIt reports whether agentID was newly added.\n",
              "file": "pkg/ai/squad.go",
              "line": 608
            },
            {
              "name": "AssignRoles",
              "anchor": "Squad.AssignRoles",
              "recv": "*Squad",
              "decl": "func (s *Squad) AssignRoles(specs ...SquadRoleSpec) int",
              "doc": "AssignRoles assigns tactical roles to current squad members using maximum-weight bipartite\nmatching driven by each spec's Score function, replacing previous role assignments.\n\nAssignRoles maximizes the number of filled eligible role slots first and total score second.\nIneligible pairs (Score returning NaN or ±Inf) are never assigned. Ties break deterministically\nby spec declaration order and ascending member ID. Returns the number of members assigned a role.\n",
              "file": "pkg/ai/squad.go",
              "line": 718
            },
            {
              "name": "ClearOrder",
              "anchor": "Squad.ClearOrder",
              "recv": "*Squad",
              "decl": "func (s *Squad) ClearOrder()",
              "doc": "ClearOrder clears the squad's directive and increments Revision.\n",
              "file": "pkg/ai/squad.go",
              "line": 658
            },
            {
              "name": "ClearRoles",
              "anchor": "Squad.ClearRoles",
              "recv": "*Squad",
              "decl": "func (s *Squad) ClearRoles()",
              "doc": "ClearRoles removes all role assignments from the squad.\n",
              "file": "pkg/ai/squad.go",
              "line": 694
            },
            {
              "name": "HasMember",
              "anchor": "Squad.HasMember",
              "recv": "*Squad",
              "decl": "func (s *Squad) HasMember(agentID uint64) bool",
              "doc": "HasMember reports whether agentID belongs to the squad.\n",
              "file": "pkg/ai/squad.go",
              "line": 630
            },
            {
              "name": "HasRole",
              "anchor": "Squad.HasRole",
              "recv": "*Squad",
              "decl": "func (s *Squad) HasRole(agentID uint64, role string) bool",
              "doc": "HasRole reports whether agentID is a member currently assigned role.\n",
              "file": "pkg/ai/squad.go",
              "line": 669
            },
            {
              "name": "ID",
              "anchor": "Squad.ID",
              "recv": "*Squad",
              "decl": "func (s *Squad) ID() uint64",
              "doc": "ID returns the squad's identifier.\n",
              "file": "pkg/ai/squad.go",
              "line": 604
            },
            {
              "name": "MemberCount",
              "anchor": "Squad.MemberCount",
              "recv": "*Squad",
              "decl": "func (s *Squad) MemberCount() int",
              "doc": "MemberCount returns the number of members in the squad.\n",
              "file": "pkg/ai/squad.go",
              "line": 636
            },
            {
              "name": "Members",
              "anchor": "Squad.Members",
              "recv": "*Squad",
              "decl": "func (s *Squad) Members(dst []uint64) []uint64",
              "doc": "Members appends all member IDs to dst[:0] in deterministic ascending order.\n",
              "file": "pkg/ai/squad.go",
              "line": 639
            },
            {
              "name": "MembersWithRole",
              "anchor": "Squad.MembersWithRole",
              "recv": "*Squad",
              "decl": "func (s *Squad) MembersWithRole(dst []uint64, role string) []uint64",
              "doc": "MembersWithRole appends all member IDs holding role to dst[:0] in deterministic ascending order.\n",
              "file": "pkg/ai/squad.go",
              "line": 699
            },
            {
              "name": "Order",
              "anchor": "Squad.Order",
              "recv": "*Squad",
              "decl": "func (s *Squad) Order() SquadOrder",
              "doc": "Order returns the squad's current directive.\n",
              "file": "pkg/ai/squad.go",
              "line": 647
            },
            {
              "name": "RemoveMember",
              "anchor": "Squad.RemoveMember",
              "recv": "*Squad",
              "decl": "func (s *Squad) RemoveMember(agentID uint64) bool",
              "doc": "RemoveMember removes agentID from the squad roster and clears its assigned role.\nIt reports whether agentID was a member.\n",
              "file": "pkg/ai/squad.go",
              "line": 619
            },
            {
              "name": "Role",
              "anchor": "Squad.Role",
              "recv": "*Squad",
              "decl": "func (s *Squad) Role(agentID uint64) string",
              "doc": "Role returns the tactical role currently assigned to agentID, or \"\" if unassigned or not a member.\n",
              "file": "pkg/ai/squad.go",
              "line": 664
            },
            {
              "name": "SetOrder",
              "anchor": "Squad.SetOrder",
              "recv": "*Squad",
              "decl": "func (s *Squad) SetOrder(order SquadOrder) SquadOrder",
              "doc": "SetOrder updates the squad's directive, increments Revision, and returns the stored order.\n",
              "file": "pkg/ai/squad.go",
              "line": 650
            },
            {
              "name": "SetRole",
              "anchor": "Squad.SetRole",
              "recv": "*Squad",
              "decl": "func (s *Squad) SetRole(agentID uint64, role string) bool",
              "doc": "SetRole manually assigns role to agentID if agentID is a member (passing \"\" unassigns it).\nIt reports whether agentID is in the squad.\n",
              "file": "pkg/ai/squad.go",
              "line": 678
            },
            {
              "name": "State",
              "anchor": "Squad.State",
              "recv": "*Squad",
              "decl": "func (s *Squad) State() *SquadState",
              "doc": "State returns the squad's shared key-value state.\n",
              "file": "pkg/ai/squad.go",
              "line": 644
            }
          ]
        },
        {
          "name": "SquadOrder",
          "anchor": "SquadOrder",
          "decl": "type SquadOrder struct {\n\t// Kind names the directive (for example, \"engage\", \"flank\", \"suppress\", \"hold\", \"retreat\").\n\t// An empty Kind indicates no active order.\n\tKind string\n\t// TargetID identifies an optional target entity for the order.\n\tTargetID uint64\n\t// Position specifies an optional world-space coordinate (such as a rally or flank point).\n\tPosition core.Point\n\t// Revision increments each time Squad.SetOrder or Squad.ClearOrder updates the order,\n\t// letting behavior trees detect freshly issued orders even with the same Kind.\n\tRevision uint64\n}",
          "doc": "SquadOrder is a squad-level directive readable by members' behavior trees.\n",
          "file": "pkg/ai/squad.go",
          "line": 549,
          "members": [
            {
              "name": "Kind",
              "anchor": "SquadOrder.Kind",
              "kind": "field",
              "doc": "Kind names the directive (for example, \"engage\", \"flank\", \"suppress\", \"hold\", \"retreat\").\nAn empty Kind indicates no active order."
            },
            {
              "name": "TargetID",
              "anchor": "SquadOrder.TargetID",
              "kind": "field",
              "doc": "TargetID identifies an optional target entity for the order."
            },
            {
              "name": "Position",
              "anchor": "SquadOrder.Position",
              "kind": "field",
              "doc": "Position specifies an optional world-space coordinate (such as a rally or flank point)."
            },
            {
              "name": "Revision",
              "anchor": "SquadOrder.Revision",
              "kind": "field",
              "doc": "Revision increments each time Squad.SetOrder or Squad.ClearOrder updates the order,\nletting behavior trees detect freshly issued orders even with the same Kind."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SquadRoleSpec",
          "anchor": "SquadRoleSpec",
          "decl": "type SquadRoleSpec struct {\n\t// Name identifies the role (for example, \"flanker\", \"suppressor\", \"rusher\").\n\tName string\n\t// Count is the maximum number of squad members to assign to this role.\n\t// Values <= 0 assign no members; counts larger than the squad size are clamped to the squad size.\n\tCount int\n\t// Score evaluates how well agentID fits this role (higher is better; negative finite scores\n\t// such as -distance are supported). Return a non-finite value (NaN or ±Inf) to mark agentID\n\t// ineligible for this role. A nil Score treats all members as equally eligible with score 0.\n\tScore func(agentID uint64) float64\n}",
          "doc": "SquadRoleSpec describes a tactical role to fill within a Squad and how each member scores for it.\n",
          "file": "pkg/ai/squad.go",
          "line": 563,
          "members": [
            {
              "name": "Name",
              "anchor": "SquadRoleSpec.Name",
              "kind": "field",
              "doc": "Name identifies the role (for example, \"flanker\", \"suppressor\", \"rusher\")."
            },
            {
              "name": "Count",
              "anchor": "SquadRoleSpec.Count",
              "kind": "field",
              "doc": "Count is the maximum number of squad members to assign to this role.\nValues <= 0 assign no members; counts larger than the squad size are clamped to the squad size."
            },
            {
              "name": "Score",
              "anchor": "SquadRoleSpec.Score",
              "kind": "field",
              "doc": "Score evaluates how well agentID fits this role (higher is better; negative finite scores\nsuch as -distance are supported). Return a non-finite value (NaN or ±Inf) to mark agentID\nineligible for this role. A nil Score treats all members as equally eligible with score 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SquadState",
          "anchor": "SquadState",
          "decl": "type SquadState struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "SquadState is a shared key-value state store for a Squad, readable and writable by squad\nmembers and their behavior trees. Its zero value is ready to use.\n",
          "file": "pkg/ai/squad.go",
          "line": 447,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bool",
              "anchor": "SquadState.Bool",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Bool(key string) (bool, bool)",
              "doc": "Bool retrieves a bool value stored under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 498
            },
            {
              "name": "Clear",
              "anchor": "SquadState.Clear",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Clear()",
              "doc": "Clear removes all entries from s.\n",
              "file": "pkg/ai/squad.go",
              "line": 477
            },
            {
              "name": "Delete",
              "anchor": "SquadState.Delete",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Delete(key string)",
              "doc": "Delete removes key from s.\n",
              "file": "pkg/ai/squad.go",
              "line": 472
            },
            {
              "name": "Float",
              "anchor": "SquadState.Float",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Float(key string) (float64, bool)",
              "doc": "Float retrieves a float64 value stored under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 510
            },
            {
              "name": "Get",
              "anchor": "SquadState.Get",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Get(key string) (any, bool)",
              "doc": "Get retrieves the value stored under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 460
            },
            {
              "name": "Has",
              "anchor": "SquadState.Has",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Has(key string) bool",
              "doc": "Has reports whether key is present in s.\n",
              "file": "pkg/ai/squad.go",
              "line": 466
            },
            {
              "name": "ID",
              "anchor": "SquadState.ID",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) ID(key string) (uint64, bool)",
              "doc": "ID retrieves a uint64 identifier stored under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 528
            },
            {
              "name": "Int",
              "anchor": "SquadState.Int",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Int(key string) (int, bool)",
              "doc": "Int retrieves an int value stored under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 504
            },
            {
              "name": "Keys",
              "anchor": "SquadState.Keys",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Keys(dst []string) []string",
              "doc": "Keys appends all keys in s to dst[:0] in deterministic ascending lexicographical order.\n",
              "file": "pkg/ai/squad.go",
              "line": 485
            },
            {
              "name": "Len",
              "anchor": "SquadState.Len",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Len() int",
              "doc": "Len returns the number of keys stored in s.\n",
              "file": "pkg/ai/squad.go",
              "line": 482
            },
            {
              "name": "Point",
              "anchor": "SquadState.Point",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Point(key string) (core.Point, bool)",
              "doc": "Point retrieves a core.Point value stored under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 522
            },
            {
              "name": "Set",
              "anchor": "SquadState.Set",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) Set(key string, value any)",
              "doc": "Set stores value under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 452
            },
            {
              "name": "SetBool",
              "anchor": "SquadState.SetBool",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) SetBool(key string, v bool)",
              "doc": "SetBool stores a bool value under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 495
            },
            {
              "name": "SetFloat",
              "anchor": "SquadState.SetFloat",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) SetFloat(key string, v float64)",
              "doc": "SetFloat stores a float64 value under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 507
            },
            {
              "name": "SetID",
              "anchor": "SquadState.SetID",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) SetID(key string, v uint64)",
              "doc": "SetID stores a uint64 identifier under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 525
            },
            {
              "name": "SetInt",
              "anchor": "SquadState.SetInt",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) SetInt(key string, v int)",
              "doc": "SetInt stores an int value under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 501
            },
            {
              "name": "SetPoint",
              "anchor": "SquadState.SetPoint",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) SetPoint(key string, v core.Point)",
              "doc": "SetPoint stores a core.Point value under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 519
            },
            {
              "name": "SetString",
              "anchor": "SquadState.SetString",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) SetString(key string, v string)",
              "doc": "SetString stores a string value under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 513
            },
            {
              "name": "String",
              "anchor": "SquadState.String",
              "recv": "*SquadState",
              "decl": "func (s *SquadState) String(key string) (string, bool)",
              "doc": "String retrieves a string value stored under key.\n",
              "file": "pkg/ai/squad.go",
              "line": 516
            }
          ]
        },
        {
          "name": "Status",
          "anchor": "Status",
          "decl": "type Status uint8",
          "doc": "Status is the outcome of one Tick of a behavior tree Node.\n",
          "file": "pkg/ai/bt.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "StatusSuccess",
                  "anchor": "StatusSuccess"
                },
                {
                  "name": "StatusFailure",
                  "anchor": "StatusFailure"
                },
                {
                  "name": "StatusRunning",
                  "anchor": "StatusRunning"
                }
              ],
              "decl": "const (\n\t// StatusSuccess reports that a node completed its work successfully.\n\tStatusSuccess Status = iota\n\t// StatusFailure reports that a node failed or its condition did not hold.\n\tStatusFailure\n\t// StatusRunning reports that a node needs more ticks to finish.\n\tStatusRunning\n)",
              "doc": "",
              "file": "pkg/ai/bt.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalText",
              "anchor": "Status.MarshalText",
              "recv": "Status",
              "decl": "func (s Status) MarshalText() ([]byte, error)",
              "doc": "MarshalText encodes s as its lowercase name (\"success\", \"failure\", or \"running\")\nso snapshots read clearly in YAML and JSON.\n",
              "file": "pkg/ai/bt.go",
              "line": 37
            },
            {
              "name": "String",
              "anchor": "Status.String",
              "recv": "Status",
              "decl": "func (s Status) String() string",
              "doc": "String returns a human-readable name for s.\n",
              "file": "pkg/ai/bt.go",
              "line": 22
            },
            {
              "name": "UnmarshalText",
              "anchor": "Status.UnmarshalText",
              "recv": "*Status",
              "decl": "func (s *Status) UnmarshalText(text []byte) error",
              "doc": "UnmarshalText decodes a status name written by [Status.MarshalText].\n",
              "file": "pkg/ai/bt.go",
              "line": 51
            }
          ]
        },
        {
          "name": "StimulusID",
          "anchor": "StimulusID",
          "decl": "type StimulusID uint64",
          "doc": "StimulusID identifies something an agent can sense: a target it can see or the source of a noise it can hear. A memory is kept per StimulusID, so a target seen and later heard refreshes one memory. IDs are the game's own, such as entity IDs. Zero is a valid target or noise ID, and anonymous noises usually share it, but Perception.Self treats zero as \"not a stimulus\", so an agent that is also a target or a noise source needs a non-zero ID.\n",
          "file": "pkg/ai/perception.go",
          "line": 10,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TacticalCandidate",
          "anchor": "TacticalCandidate",
          "decl": "type TacticalCandidate struct {\n\t// Pos is the candidate world position.\n\tPos math2d.Vec2\n\t// Facing is the candidate's unit facing vector (for cover points, points into the cover obstacle).\n\tFacing math2d.Vec2\n\t// Height is CoverHalf or CoverFull for cover candidates, or 0 for non-cover candidates.\n\tHeight CoverHeight\n\t// CoverID is the CoverPoint.ID for cover candidates, or 0 otherwise.\n\tCoverID uint64\n\t// CoverIndex is the source index in CoverPointGenerator.Points, or -1 for non-cover candidates.\n\tCoverIndex int\n\t// Elevation is the optional 3D vertical coordinate (0 in 2D).\n\tElevation float32\n\t// Score is the final composite score computed by TacticalQuery.\n\tScore float64\n}",
          "doc": "TacticalCandidate is one spatial position evaluated by a TacticalQuery.\n",
          "file": "pkg/ai/tactical.go",
          "line": 211,
          "members": [
            {
              "name": "Pos",
              "anchor": "TacticalCandidate.Pos",
              "kind": "field",
              "doc": "Pos is the candidate world position."
            },
            {
              "name": "Facing",
              "anchor": "TacticalCandidate.Facing",
              "kind": "field",
              "doc": "Facing is the candidate's unit facing vector (for cover points, points into the cover obstacle)."
            },
            {
              "name": "Height",
              "anchor": "TacticalCandidate.Height",
              "kind": "field",
              "doc": "Height is CoverHalf or CoverFull for cover candidates, or 0 for non-cover candidates."
            },
            {
              "name": "CoverID",
              "anchor": "TacticalCandidate.CoverID",
              "kind": "field",
              "doc": "CoverID is the CoverPoint.ID for cover candidates, or 0 otherwise."
            },
            {
              "name": "CoverIndex",
              "anchor": "TacticalCandidate.CoverIndex",
              "kind": "field",
              "doc": "CoverIndex is the source index in CoverPointGenerator.Points, or -1 for non-cover candidates."
            },
            {
              "name": "Elevation",
              "anchor": "TacticalCandidate.Elevation",
              "kind": "field",
              "doc": "Elevation is the optional 3D vertical coordinate (0 in 2D)."
            },
            {
              "name": "Score",
              "anchor": "TacticalCandidate.Score",
              "kind": "field",
              "doc": "Score is the final composite score computed by TacticalQuery."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TacticalContext",
          "anchor": "TacticalContext",
          "decl": "type TacticalContext struct {\n\t// QuerierID identifies the querying agent (used by PointReservations to ignore the agent's own reservation).\n\tQuerierID uint64\n\t// QuerierPos is the querying agent's world position.\n\tQuerierPos math2d.Vec2\n\t// TargetPos is the primary threat, enemy, or objective world position.\n\tTargetPos math2d.Vec2\n\t// TargetDir is an optional reference direction (for example, the threat's look direction for flanking).\n\tTargetDir math2d.Vec2\n\t// Reservations optionally excludes positions currently reserved by other agents before tests run.\n\tReservations *PointReservations\n\t// Budget optionally caps raycasts and path queries across queries in the current step.\n\tBudget *QueryBudget\n}",
          "doc": "TacticalContext supplies per-agent runtime state to a TacticalQuery.\n",
          "file": "pkg/ai/tactical.go",
          "line": 229,
          "members": [
            {
              "name": "QuerierID",
              "anchor": "TacticalContext.QuerierID",
              "kind": "field",
              "doc": "QuerierID identifies the querying agent (used by PointReservations to ignore the agent's own reservation)."
            },
            {
              "name": "QuerierPos",
              "anchor": "TacticalContext.QuerierPos",
              "kind": "field",
              "doc": "QuerierPos is the querying agent's world position."
            },
            {
              "name": "TargetPos",
              "anchor": "TacticalContext.TargetPos",
              "kind": "field",
              "doc": "TargetPos is the primary threat, enemy, or objective world position."
            },
            {
              "name": "TargetDir",
              "anchor": "TacticalContext.TargetDir",
              "kind": "field",
              "doc": "TargetDir is an optional reference direction (for example, the threat's look direction for flanking)."
            },
            {
              "name": "Reservations",
              "anchor": "TacticalContext.Reservations",
              "kind": "field",
              "doc": "Reservations optionally excludes positions currently reserved by other agents before tests run."
            },
            {
              "name": "Budget",
              "anchor": "TacticalContext.Budget",
              "kind": "field",
              "doc": "Budget optionally caps raycasts and path queries across queries in the current step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TacticalQuery",
          "anchor": "TacticalQuery",
          "decl": "type TacticalQuery struct {\n\t// Generators produce candidate positions in declaration order.\n\tGenerators []CandidateGenerator\n\t// Tests evaluate surviving candidates in declaration order.\n\t// Place cheap filters and scorers (Distance, Angle, CoverHeight, Influence) before\n\t// expensive budgeted tests (LOS, PathDistance) so step budgets are spent on top candidates.\n\tTests []TacticalTest\n\t// contains filtered or unexported fields\n}",
          "doc": "TacticalQuery executes an EQS-style pipeline: generate candidate positions, exclude points\nreserved by other agents, run ordered filter/score tests within any configured step budget,\nand sort surviving candidates deterministically by descending score.\n\nTacticalQuery reuses all internal scratch buffers across runs so Best, RunInto, and\nRunAndReserve perform zero heap allocations after warm-up. It is not safe for concurrent use.\n",
          "file": "pkg/ai/tactical.go",
          "line": 1049,
          "members": [
            {
              "name": "Generators",
              "anchor": "TacticalQuery.Generators",
              "kind": "field",
              "doc": "Generators produce candidate positions in declaration order."
            },
            {
              "name": "Tests",
              "anchor": "TacticalQuery.Tests",
              "kind": "field",
              "doc": "Tests evaluate surviving candidates in declaration order.\nPlace cheap filters and scorers (Distance, Angle, CoverHeight, Influence) before\nexpensive budgeted tests (LOS, PathDistance) so step budgets are spent on top candidates."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTacticalQuery",
              "anchor": "NewTacticalQuery",
              "decl": "func NewTacticalQuery(generators []CandidateGenerator, tests ...TacticalTest) *TacticalQuery",
              "doc": "NewTacticalQuery returns a TacticalQuery configured with the given generators and tests.\n",
              "file": "pkg/ai/tactical.go",
              "line": 1069
            }
          ],
          "methods": [
            {
              "name": "Best",
              "anchor": "TacticalQuery.Best",
              "recv": "*TacticalQuery",
              "decl": "func (q *TacticalQuery) Best(ctx TacticalContext) (TacticalCandidate, bool)",
              "doc": "Best executes the query and returns the highest-scoring surviving candidate without allocating.\n",
              "file": "pkg/ai/tactical.go",
              "line": 1105
            },
            {
              "name": "LastStats",
              "anchor": "TacticalQuery.LastStats",
              "recv": "*TacticalQuery",
              "decl": "func (q *TacticalQuery) LastStats() QueryStats",
              "doc": "LastStats returns diagnostic counts from the most recent Run, RunInto, Best, or RunAndReserve call.\n",
              "file": "pkg/ai/tactical.go",
              "line": 1077
            },
            {
              "name": "Run",
              "anchor": "TacticalQuery.Run",
              "recv": "*TacticalQuery",
              "decl": "func (q *TacticalQuery) Run(ctx TacticalContext) []TacticalCandidate",
              "doc": "Run executes the query and returns a newly allocated slice of surviving candidates sorted\ndeterministically from highest to lowest Score. Use RunInto or Best to avoid heap allocations.\n",
              "file": "pkg/ai/tactical.go",
              "line": 1086
            },
            {
              "name": "RunAndReserve",
              "anchor": "TacticalQuery.RunAndReserve",
              "recv": "*TacticalQuery",
              "decl": "func (q *TacticalQuery) RunAndReserve(ctx TacticalContext, timeout time.Duration) (TacticalCandidate, bool)",
              "doc": "RunAndReserve executes the query, picks the highest-scoring surviving candidate, and reserves\nit for ctx.QuerierID on ctx.Reservations (when non-nil) for timeout (or DefaultTimeout when <= 0).\nReturns (best, true) on success, or (zero, false) if no candidate survived or reservation failed.\n",
              "file": "pkg/ai/tactical.go",
              "line": 1119
            },
            {
              "name": "RunInto",
              "anchor": "TacticalQuery.RunInto",
              "recv": "*TacticalQuery",
              "decl": "func (q *TacticalQuery) RunInto(dst []TacticalCandidate, ctx TacticalContext) []TacticalCandidate",
              "doc": "RunInto executes the query and appends surviving candidates in deterministic descending Score\norder into dst[:0], performing zero heap allocations once internal buffers and dst are warmed up.\n",
              "file": "pkg/ai/tactical.go",
              "line": 1092
            }
          ]
        },
        {
          "name": "TacticalTest",
          "anchor": "TacticalTest",
          "decl": "type TacticalTest interface {\n\t// contains filtered or unexported methods\n}",
          "doc": "TacticalTest filters and/or scores candidates inside a TacticalQuery.\n",
          "file": "pkg/ai/tactical.go",
          "line": 605,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Target",
          "anchor": "Target",
          "decl": "type Target struct {\n\t// ID identifies the target; a later target with the same ID in one step is ignored.\n\tID StimulusID\n\t// Team is the target's team, compared with each agent's team by the system's AttitudeFunc.\n\tTeam Team\n\t// Pos is the point agents look at.\n\tPos core.Point\n\t// Vel is the target's velocity, remembered while it is seen.\n\tVel core.Point\n}",
          "doc": "Target is a stimulus that agents can see during one step.\n",
          "file": "pkg/ai/perception2d.go",
          "line": 15,
          "members": [
            {
              "name": "ID",
              "anchor": "Target.ID",
              "kind": "field",
              "doc": "ID identifies the target; a later target with the same ID in one step is ignored."
            },
            {
              "name": "Team",
              "anchor": "Target.Team",
              "kind": "field",
              "doc": "Team is the target's team, compared with each agent's team by the system's AttitudeFunc."
            },
            {
              "name": "Pos",
              "anchor": "Target.Pos",
              "kind": "field",
              "doc": "Pos is the point agents look at."
            },
            {
              "name": "Vel",
              "anchor": "Target.Vel",
              "kind": "field",
              "doc": "Vel is the target's velocity, remembered while it is seen."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Team",
          "anchor": "Team",
          "decl": "type Team uint8",
          "doc": "Team is a team affiliation, compared by an AttitudeFunc to decide whether an agent treats a stimulus as hostile, neutral or friendly.\n",
          "file": "pkg/ai/perception.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NoTeam",
                  "anchor": "NoTeam"
                }
              ],
              "decl": "const NoTeam Team = 255",
              "doc": "NoTeam is the team of things that belong to no side; DefaultAttitude treats it as neutral to everyone.\n",
              "file": "pkg/ai/perception.go",
              "line": 16
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TestPurpose",
          "anchor": "TestPurpose",
          "decl": "type TestPurpose uint8",
          "doc": "TestPurpose controls whether a TacticalTest filters candidates, scores them, or both.\n",
          "file": "pkg/ai/tactical.go",
          "line": 77,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TestFilterAndScore",
                  "anchor": "TestFilterAndScore"
                },
                {
                  "name": "TestFilterOnly",
                  "anchor": "TestFilterOnly"
                },
                {
                  "name": "TestScoreOnly",
                  "anchor": "TestScoreOnly"
                }
              ],
              "decl": "const (\n\t// TestFilterAndScore filters candidates failing the test's filter criteria and adds normalized score * Weight.\n\tTestFilterAndScore TestPurpose = iota\n\t// TestFilterOnly removes candidates failing the test's filter criteria without modifying scores.\n\tTestFilterOnly\n\t// TestScoreOnly scores surviving candidates without removing any.\n\tTestScoreOnly\n)",
              "doc": "",
              "file": "pkg/ai/tactical.go",
              "line": 79
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileCoverOptions",
          "anchor": "TileCoverOptions",
          "decl": "type TileCoverOptions struct {\n\t// Origin shifts generated world coordinates by Origin (defaults to (0, 0)).\n\tOrigin math2d.Vec2\n\t// Spacing is the distance between cover points along a contiguous solid wall run in world units.\n\t// When <= 0, one cover point is placed at the midpoint of each exposed tile edge.\n\tSpacing float32\n\t// Standoff offsets each cover point from the solid tile edge into the adjacent open tile.\n\t// When <= 0, defaults to half of min(TileWidth, TileHeight) so points land inside the open tile.\n\tStandoff float32\n\t// EdgeInset is the margin from each end of a contiguous wall run when Spacing > 0.\n\t// When <= 0, defaults to Spacing * 0.5.\n\tEdgeInset float32\n\t// SolidMask selects which tile flags count as solid cover walls (defaults to tilemap.TileSolid when 0).\n\tSolidMask tilemap.TileFlags\n\t// HalfCoverMask optionally marks solid tiles whose flags intersect HalfCoverMask as CoverHalf.\n\tHalfCoverMask tilemap.TileFlags\n\t// DefaultHeight sets the height for solid tiles not classified as half cover (defaults to CoverFull).\n\tDefaultHeight CoverHeight\n\t// HeightFunc optionally overrides cover-height classification for solid cell (col, row).\n\t// Returning 0 falls back to HalfCoverMask, the tile's \"cover\" property (\"half\"/\"full\"), or DefaultHeight.\n\tHeightFunc func(col, row int) CoverHeight\n\t// StartID is the first CoverPoint.ID assigned (defaults to 1 when 0).\n\tStartID uint64\n}",
          "doc": "TileCoverOptions configures cover-point generation from a tilemap.Tilemap.\n",
          "file": "pkg/ai/cover.go",
          "line": 96,
          "members": [
            {
              "name": "Origin",
              "anchor": "TileCoverOptions.Origin",
              "kind": "field",
              "doc": "Origin shifts generated world coordinates by Origin (defaults to (0, 0))."
            },
            {
              "name": "Spacing",
              "anchor": "TileCoverOptions.Spacing",
              "kind": "field",
              "doc": "Spacing is the distance between cover points along a contiguous solid wall run in world units.\nWhen <= 0, one cover point is placed at the midpoint of each exposed tile edge."
            },
            {
              "name": "Standoff",
              "anchor": "TileCoverOptions.Standoff",
              "kind": "field",
              "doc": "Standoff offsets each cover point from the solid tile edge into the adjacent open tile.\nWhen <= 0, defaults to half of min(TileWidth, TileHeight) so points land inside the open tile."
            },
            {
              "name": "EdgeInset",
              "anchor": "TileCoverOptions.EdgeInset",
              "kind": "field",
              "doc": "EdgeInset is the margin from each end of a contiguous wall run when Spacing > 0.\nWhen <= 0, defaults to Spacing * 0.5."
            },
            {
              "name": "SolidMask",
              "anchor": "TileCoverOptions.SolidMask",
              "kind": "field",
              "doc": "SolidMask selects which tile flags count as solid cover walls (defaults to tilemap.TileSolid when 0)."
            },
            {
              "name": "HalfCoverMask",
              "anchor": "TileCoverOptions.HalfCoverMask",
              "kind": "field",
              "doc": "HalfCoverMask optionally marks solid tiles whose flags intersect HalfCoverMask as CoverHalf."
            },
            {
              "name": "DefaultHeight",
              "anchor": "TileCoverOptions.DefaultHeight",
              "kind": "field",
              "doc": "DefaultHeight sets the height for solid tiles not classified as half cover (defaults to CoverFull)."
            },
            {
              "name": "HeightFunc",
              "anchor": "TileCoverOptions.HeightFunc",
              "kind": "field",
              "doc": "HeightFunc optionally overrides cover-height classification for solid cell (col, row).\nReturning 0 falls back to HalfCoverMask, the tile's \"cover\" property (\"half\"/\"full\"), or DefaultHeight."
            },
            {
              "name": "StartID",
              "anchor": "TileCoverOptions.StartID",
              "kind": "field",
              "doc": "StartID is the first CoverPoint.ID assigned (defaults to 1 when 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TiledNavMesh",
          "anchor": "TiledNavMesh",
          "decl": "type TiledNavMesh struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TiledNavMesh is a 2D navigation mesh partitioned into fixed-size square tiles\nthat can be baked, added, removed, and replaced independently at runtime.\nPolygons are automatically linked across tile borders, dynamic obstacles rebuild\nonly the touched tiles, a two-level spatial index avoids whole-mesh scans, and\nper-tile versions + watchers invalidate paths crossing changed tiles.\n\nTiledNavMesh is deterministic and is not safe for concurrent mutation.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 431,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildTiledNavMesh",
              "anchor": "BuildTiledNavMesh",
              "decl": "func BuildTiledNavMesh(polys [][]core.Point, tileSize float32) *TiledNavMesh",
              "doc": "BuildTiledNavMesh constructs a 2D TiledNavMesh from convex polygons using fixed square tiles of size tileSize.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 496
            },
            {
              "name": "BuildTiledNavMeshWithAreas",
              "anchor": "BuildTiledNavMeshWithAreas",
              "decl": "func BuildTiledNavMeshWithAreas(polys []NavPolygonInput, tileSize float32) *TiledNavMesh",
              "doc": "BuildTiledNavMeshWithAreas constructs a 2D TiledNavMesh from convex polygons carrying per-polygon areas and flags.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 509
            },
            {
              "name": "NewTiledNavMesh",
              "anchor": "NewTiledNavMesh",
              "decl": "func NewTiledNavMesh(cfg TiledNavMeshConfig) *TiledNavMesh",
              "doc": "NewTiledNavMesh creates an empty 2D TiledNavMesh with cfg.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 469
            }
          ],
          "methods": [
            {
              "name": "AddObstacle",
              "anchor": "TiledNavMesh.AddObstacle",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) AddObstacle(obs NavObstacle) (NavObstacleID, bool)",
              "doc": "AddObstacle registers a dynamic obstacle and immediately rebuilds only the touched tiles\n(or defers rebuild until Batch returns if called inside Batch).\nReturns (0, false) if tm is nil or obs has invalid geometry.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1221
            },
            {
              "name": "AddTile",
              "anchor": "TiledNavMesh.AddTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) AddTile(coord NavTileCoord, tile *NavTile) bool",
              "doc": "AddTile installs tile at coord only if no tile currently exists at coord.\nReturns false if tm or tile is nil or coord is already occupied.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 705
            },
            {
              "name": "AddTileListener",
              "anchor": "TiledNavMesh.AddTileListener",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) AddTileListener(fn func(NavTileChange)) NavListenerID",
              "doc": "AddTileListener registers fn to be invoked whenever any tile is added, updated, or removed.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1430
            },
            {
              "name": "BakeTile",
              "anchor": "TiledNavMesh.BakeTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) BakeTile(coord NavTileCoord, polys []NavPolygonInput) *NavTile",
              "doc": "BakeTile bakes polys into a NavTile for coord using tm's TileSize and Origin and installs it into tm.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 694
            },
            {
              "name": "Batch",
              "anchor": "TiledNavMesh.Batch",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Batch(fn func())",
              "doc": "Batch groups multiple tile or obstacle mutations so each touched tile is rebuilt at most once\nin deterministic sorted order when fn returns, and notifications fire once per changed tile.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1158
            },
            {
              "name": "ClearObstacles",
              "anchor": "TiledNavMesh.ClearObstacles",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) ClearObstacles()",
              "doc": "ClearObstacles removes all dynamic obstacles and rebuilds only tiles that had obstacles.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1311
            },
            {
              "name": "Contains",
              "anchor": "TiledNavMesh.Contains",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Contains(p core.Point) bool",
              "doc": "Contains reports whether p lies inside any polygon of the tiled mesh.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1683
            },
            {
              "name": "ContainsWithFilter",
              "anchor": "TiledNavMesh.ContainsWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) ContainsWithFilter(p core.Point, filter NavFilter) bool",
              "doc": "ContainsWithFilter reports whether p lies inside any polygon passing filter.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1689
            },
            {
              "name": "FindCorridor",
              "anchor": "TiledNavMesh.FindCorridor",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindCorridor(start, goal core.Point) ([]NavPolyRef, bool)",
              "doc": "FindCorridor finds the sequence of NavPolyRefs from start to goal using DefaultNavFilter.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 2498
            },
            {
              "name": "FindCorridorWithFilter",
              "anchor": "TiledNavMesh.FindCorridorWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindCorridorWithFilter(start, goal core.Point, filter NavFilter) ([]NavPolyRef, bool)",
              "doc": "FindCorridorWithFilter finds the sequence of NavPolyRefs from start to goal restricted to filter.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 2503
            },
            {
              "name": "FindPath",
              "anchor": "TiledNavMesh.FindPath",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPath(start, goal core.Point) ([]core.Point, bool)",
              "doc": "FindPath finds the shortest path inside tm from start to goal using DefaultNavFilter.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 2478
            },
            {
              "name": "FindPathWithFilter",
              "anchor": "TiledNavMesh.FindPathWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPathWithFilter(start, goal core.Point, filter NavFilter) ([]core.Point, bool)",
              "doc": "FindPathWithFilter finds the minimum-cost path inside tm restricted to filter.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 2483
            },
            {
              "name": "FindPathWithFilterAndOptions",
              "anchor": "TiledNavMesh.FindPathWithFilterAndOptions",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPathWithFilterAndOptions(start, goal core.Point, filter NavFilter, opts PathOptions) TiledNavPathResult",
              "doc": "FindPathWithFilterAndOptions finds a minimum-cost path across tm restricted to filter and opts.\nPortal A* touches only visited portals (sparse state, independent of total mesh size) and\nruns Simple Stupid Funnel Algorithm string-pulling across tile borders so paths match\nan untiled NavMesh for the same geometry.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 2602
            },
            {
              "name": "FindPathWithOptions",
              "anchor": "TiledNavMesh.FindPathWithOptions",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPathWithOptions(start, goal core.Point, opts PathOptions) TiledNavPathResult",
              "doc": "FindPathWithOptions finds a path using DefaultNavFilter and opts, returning the full TiledNavPathResult\nwith tile footprint and version stamps for invalidation checking.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 2493
            },
            {
              "name": "FindPolygon",
              "anchor": "TiledNavMesh.FindPolygon",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPolygon(p core.Point) (NavPolyRef, bool)",
              "doc": "FindPolygon locates a polygon containing p in O(1) tile lookup + O(log P_tile) local BVH.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1655
            },
            {
              "name": "FindPolygonWithFilter",
              "anchor": "TiledNavMesh.FindPolygonWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPolygonWithFilter(p core.Point, filter NavFilter) (NavPolyRef, bool)",
              "doc": "FindPolygonWithFilter locates a polygon passing filter that contains p.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1660
            },
            {
              "name": "HasTile",
              "anchor": "TiledNavMesh.HasTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) HasTile(coord NavTileCoord) bool",
              "doc": "HasTile reports whether a tile is currently installed at coord.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 652
            },
            {
              "name": "IsPathValid",
              "anchor": "TiledNavMesh.IsPathValid",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) IsPathValid(res TiledNavPathResult) bool",
              "doc": "IsPathValid reports whether every tile crossed by res is still present and unchanged\nsince res was computed.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1456
            },
            {
              "name": "NearestPoint",
              "anchor": "TiledNavMesh.NearestPoint",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) NearestPoint(p, extent core.Point) (core.Point, NavPolyRef, bool)",
              "doc": "NearestPoint returns the closest point on any polygon allowed by DefaultNavFilter within\nhalf-extents [p - extent, p + extent], together with its NavPolyRef.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1829
            },
            {
              "name": "NearestPointWithFilter",
              "anchor": "TiledNavMesh.NearestPointWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) NearestPointWithFilter(p, extent core.Point, filter NavFilter) (core.Point, NavPolyRef, bool)",
              "doc": "NearestPointWithFilter behaves like NearestPoint restricted to filter.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1834
            },
            {
              "name": "NearestPolygon",
              "anchor": "TiledNavMesh.NearestPolygon",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) NearestPolygon(p core.Point) (NavPolyRef, core.Point, bool)",
              "doc": "NearestPolygon returns the polygon closest to p and the closest point on or inside it,\nusing the two-level spatial index (coarse tile BVH + per-tile BVH).\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1804
            },
            {
              "name": "NearestPolygonWithFilter",
              "anchor": "TiledNavMesh.NearestPolygonWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) NearestPolygonWithFilter(p core.Point, filter NavFilter) (NavPolyRef, core.Point, bool)",
              "doc": "NearestPolygonWithFilter returns the closest polygon passing filter and the closest point on it.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1809
            },
            {
              "name": "Neighbors",
              "anchor": "TiledNavMesh.Neighbors",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Neighbors(ref NavPolyRef) []NavPolyRef",
              "doc": "Neighbors returns the polygon references sharing an edge (intra-tile or cross-tile) with ref.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1621
            },
            {
              "name": "ObstacleCount",
              "anchor": "TiledNavMesh.ObstacleCount",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) ObstacleCount() int",
              "doc": "ObstacleCount returns the number of active dynamic obstacles.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1326
            },
            {
              "name": "Origin",
              "anchor": "TiledNavMesh.Origin",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Origin() core.Point",
              "doc": "Origin returns the world-space origin of tile (0, 0).\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 569
            },
            {
              "name": "Polygon",
              "anchor": "TiledNavMesh.Polygon",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Polygon(ref NavPolyRef) []core.Point",
              "doc": "Polygon returns a copy of the vertices of ref, or nil if ref is stale or invalid.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1594
            },
            {
              "name": "PolygonArea",
              "anchor": "TiledNavMesh.PolygonArea",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) PolygonArea(ref NavPolyRef) NavArea",
              "doc": "PolygonArea returns the area of ref, or NavAreaDefault if ref is invalid.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1603
            },
            {
              "name": "PolygonCount",
              "anchor": "TiledNavMesh.PolygonCount",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) PolygonCount() int",
              "doc": "PolygonCount returns the total number of active walkable polygons across all installed tiles.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 674
            },
            {
              "name": "PolygonFlags",
              "anchor": "TiledNavMesh.PolygonFlags",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) PolygonFlags(ref NavPolyRef) NavFlags",
              "doc": "PolygonFlags returns the runtime flags of ref, or 0 if ref is invalid.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1612
            },
            {
              "name": "Raycast",
              "anchor": "TiledNavMesh.Raycast",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Raycast(start, target core.Point) (TiledNavRaycastHit, bool)",
              "doc": "Raycast casts a segment along the 2D TiledNavMesh surface from start toward target using DefaultNavFilter.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 2231
            },
            {
              "name": "RaycastWithFilter",
              "anchor": "TiledNavMesh.RaycastWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RaycastWithFilter(start, target core.Point, filter NavFilter) (TiledNavRaycastHit, bool)",
              "doc": "RaycastWithFilter behaves like Raycast restricted to polygons allowed by filter.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 2236
            },
            {
              "name": "RebuildTile",
              "anchor": "TiledNavMesh.RebuildTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RebuildTile(coord NavTileCoord) bool",
              "doc": "RebuildTile rebuilds the existing tile at coord from its base polygons and active dynamic obstacles.\nReturns false if no tile exists at coord.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 773
            },
            {
              "name": "RemoveObstacle",
              "anchor": "TiledNavMesh.RemoveObstacle",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RemoveObstacle(id NavObstacleID) bool",
              "doc": "RemoveObstacle removes dynamic obstacle id and rebuilds only the tiles it touched,\nrestoring their uncarved geometry.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1294
            },
            {
              "name": "RemoveTile",
              "anchor": "TiledNavMesh.RemoveTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RemoveTile(coord NavTileCoord) bool",
              "doc": "RemoveTile unloads the tile at coord, removes cross-tile border links from neighboring tiles,\nbumps coord's tile version, and notifies listeners / invalidates paths crossing coord.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 745
            },
            {
              "name": "RemoveTileListener",
              "anchor": "TiledNavMesh.RemoveTileListener",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RemoveTileListener(id NavListenerID) bool",
              "doc": "RemoveTileListener unregisters a listener previously added with AddTileListener.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1441
            },
            {
              "name": "ReplaceTile",
              "anchor": "TiledNavMesh.ReplaceTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) ReplaceTile(coord NavTileCoord, tile *NavTile) bool",
              "doc": "ReplaceTile replaces the existing tile at coord with tile.\nReturns false if tm or tile is nil or no tile currently exists at coord.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 718
            },
            {
              "name": "Revision",
              "anchor": "TiledNavMesh.Revision",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Revision() uint64",
              "doc": "Revision returns a monotonically increasing number bumped on any tile or obstacle mutation.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 628
            },
            {
              "name": "SetTile",
              "anchor": "TiledNavMesh.SetTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) SetTile(coord NavTileCoord, tile *NavTile) bool",
              "doc": "SetTile installs or replaces tile at coord, applying any active dynamic obstacles touching coord\nand linking polygons across borders with neighboring tiles.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 731
            },
            {
              "name": "TileBounds",
              "anchor": "TiledNavMesh.TileBounds",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileBounds(coord NavTileCoord) (minPt, maxPt core.Point)",
              "doc": "TileBounds returns the exact world-space [min, max] bounds of tile coord.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 588
            },
            {
              "name": "TileCoordAt",
              "anchor": "TiledNavMesh.TileCoordAt",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileCoordAt(p core.Point) NavTileCoord",
              "doc": "TileCoordAt returns the tile coordinate containing p.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 577
            },
            {
              "name": "TileCoords",
              "anchor": "TiledNavMesh.TileCoords",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileCoords() []NavTileCoord",
              "doc": "TileCoords returns all installed tile coordinates in deterministic sorted order.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 661
            },
            {
              "name": "TileCount",
              "anchor": "TiledNavMesh.TileCount",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileCount() int",
              "doc": "TileCount returns the number of currently installed tiles.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 644
            },
            {
              "name": "TilePolygonCount",
              "anchor": "TiledNavMesh.TilePolygonCount",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TilePolygonCount(coord NavTileCoord) int",
              "doc": "TilePolygonCount returns the number of active polygons currently inside tile coord.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 682
            },
            {
              "name": "TileSize",
              "anchor": "TiledNavMesh.TileSize",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileSize() float32",
              "doc": "TileSize returns the configured tile size in world units.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 561
            },
            {
              "name": "TileVersion",
              "anchor": "TiledNavMesh.TileVersion",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileVersion(coord NavTileCoord) uint64",
              "doc": "TileVersion returns the current revision number of tile coord (0 if never modified).\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 636
            },
            {
              "name": "UnwatchPath",
              "anchor": "TiledNavMesh.UnwatchPath",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) UnwatchPath(id NavPathWatchID) bool",
              "doc": "UnwatchPath cancels a path watcher previously registered with WatchPath.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1497
            },
            {
              "name": "UpdateObstacle",
              "anchor": "TiledNavMesh.UpdateObstacle",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) UpdateObstacle(id NavObstacleID, obs NavObstacle) bool",
              "doc": "UpdateObstacle replaces the geometry or mode of an existing dynamic obstacle id,\nrebuilding only tiles touched by either its old or new footprint.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1255
            },
            {
              "name": "WatchPath",
              "anchor": "TiledNavMesh.WatchPath",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) WatchPath(tiles []NavTileCoord, onInvalidate func(NavTileChange)) NavPathWatchID",
              "doc": "WatchPath registers a one-shot invalidation callback invoked when any tile in tiles changes.\nBecause watchers are indexed per tile, changing a tile notifies only paths crossing that tile.\nOnce triggered, the watch is automatically removed.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 1474
            }
          ]
        },
        {
          "name": "TiledNavMeshConfig",
          "anchor": "TiledNavMeshConfig",
          "decl": "type TiledNavMeshConfig struct {\n\t// TileSize is the width and height of each square tile in world units.\n\t// Defaults to 64 when <= 0.\n\tTileSize float32\n\t// Origin is the world-space origin of tile (0, 0). Defaults to (0, 0).\n\tOrigin core.Point\n}",
          "doc": "TiledNavMeshConfig configures a 2D TiledNavMesh.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 313,
          "members": [
            {
              "name": "TileSize",
              "anchor": "TiledNavMeshConfig.TileSize",
              "kind": "field",
              "doc": "TileSize is the width and height of each square tile in world units.\nDefaults to 64 when <= 0."
            },
            {
              "name": "Origin",
              "anchor": "TiledNavMeshConfig.Origin",
              "kind": "field",
              "doc": "Origin is the world-space origin of tile (0, 0). Defaults to (0, 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TiledNavPathResult",
          "anchor": "TiledNavPathResult",
          "decl": "type TiledNavPathResult struct {\n\tPath       []core.Point\n\tCorridor   []NavPolyRef\n\tTiles      []NavTileVersion\n\tFound      bool\n\tPartial    bool\n\tExhausted  bool\n\tExpansions int\n}",
          "doc": "TiledNavPathResult is the outcome of a 2D TiledNavMesh path search, including\nthe tile footprint and tile versions crossed so callers can detect invalidation.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 323,
          "members": [
            {
              "name": "Path",
              "anchor": "TiledNavPathResult.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Corridor",
              "anchor": "TiledNavPathResult.Corridor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tiles",
              "anchor": "TiledNavPathResult.Tiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Found",
              "anchor": "TiledNavPathResult.Found",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Partial",
              "anchor": "TiledNavPathResult.Partial",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Exhausted",
              "anchor": "TiledNavPathResult.Exhausted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Expansions",
              "anchor": "TiledNavPathResult.Expansions",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CrossesTile",
              "anchor": "TiledNavPathResult.CrossesTile",
              "recv": "TiledNavPathResult",
              "decl": "func (r TiledNavPathResult) CrossesTile(coord NavTileCoord) bool",
              "doc": "CrossesTile reports whether r's corridor passes through coord.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 334
            },
            {
              "name": "TileCoords",
              "anchor": "TiledNavPathResult.TileCoords",
              "recv": "TiledNavPathResult",
              "decl": "func (r TiledNavPathResult) TileCoords() []NavTileCoord",
              "doc": "TileCoords returns the deduplicated list of tile coordinates crossed by r.\n",
              "file": "pkg/ai/tiled_navmesh.go",
              "line": 344
            }
          ]
        },
        {
          "name": "TiledNavRaycastHit",
          "anchor": "TiledNavRaycastHit",
          "decl": "type TiledNavRaycastHit struct {\n\tPoint  core.Point\n\tNormal core.Point\n\tPoly   NavPolyRef\n\tT      float32\n\tHit    bool\n}",
          "doc": "TiledNavRaycastHit describes the result of casting a segment across a 2D TiledNavMesh.\n",
          "file": "pkg/ai/tiled_navmesh.go",
          "line": 356,
          "members": [
            {
              "name": "Point",
              "anchor": "TiledNavRaycastHit.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "TiledNavRaycastHit.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Poly",
              "anchor": "TiledNavRaycastHit.Poly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "T",
              "anchor": "TiledNavRaycastHit.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hit",
              "anchor": "TiledNavRaycastHit.Hit",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TokenHolder",
          "anchor": "TokenHolder",
          "decl": "type TokenHolder struct {\n\t// AgentID uniquely identifies the holding agent.\n\tAgentID uint64\n\t// Priority is the agent's current attack priority used for preemption comparisons.\n\tPriority float64\n\t// Held is how long the agent has held this token.\n\tHeld time.Duration\n}",
          "doc": "TokenHolder describes an agent that currently holds an attack token.\n",
          "file": "pkg/ai/tokens.go",
          "line": 44,
          "members": [
            {
              "name": "AgentID",
              "anchor": "TokenHolder.AgentID",
              "kind": "field",
              "doc": "AgentID uniquely identifies the holding agent."
            },
            {
              "name": "Priority",
              "anchor": "TokenHolder.Priority",
              "kind": "field",
              "doc": "Priority is the agent's current attack priority used for preemption comparisons."
            },
            {
              "name": "Held",
              "anchor": "TokenHolder.Held",
              "kind": "field",
              "doc": "Held is how long the agent has held this token."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TokenManager",
          "anchor": "TokenManager",
          "decl": "type TokenManager struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TokenManager maintains one TokenPool per target ID.\n\nTargets that have not been explicitly configured with ConfigureTarget are created on demand\nwith the manager's default TokenPoolConfig when Request is called. All multi-target operations\niterate targets in ascending target ID order for determinism.\n",
          "file": "pkg/ai/tokens.go",
          "line": 351,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTokenManager",
              "anchor": "NewTokenManager",
              "decl": "func NewTokenManager(defaultCfg TokenPoolConfig) *TokenManager",
              "doc": "NewTokenManager returns a TokenManager using defaultCfg for targets created on demand.\n",
              "file": "pkg/ai/tokens.go",
              "line": 358
            }
          ],
          "methods": [
            {
              "name": "Cancel",
              "anchor": "TokenManager.Cancel",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) Cancel(targetID, agentID uint64) bool",
              "doc": "Cancel withdraws agentID's pending request for targetID.\n",
              "file": "pkg/ai/tokens.go",
              "line": 413
            },
            {
              "name": "ConfigureTarget",
              "anchor": "TokenManager.ConfigureTarget",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) ConfigureTarget(targetID uint64, cfg TokenPoolConfig) *TokenPool",
              "doc": "ConfigureTarget creates or replaces the TokenPool for targetID with cfg and returns it.\n",
              "file": "pkg/ai/tokens.go",
              "line": 365
            },
            {
              "name": "HasToken",
              "anchor": "TokenManager.HasToken",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) HasToken(targetID, agentID uint64) bool",
              "doc": "HasToken reports whether agentID holds an attack token for targetID.\n",
              "file": "pkg/ai/tokens.go",
              "line": 405
            },
            {
              "name": "Pool",
              "anchor": "TokenManager.Pool",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) Pool(targetID uint64) *TokenPool",
              "doc": "Pool returns the TokenPool for targetID, or nil if none exists yet.\n",
              "file": "pkg/ai/tokens.go",
              "line": 378
            },
            {
              "name": "Release",
              "anchor": "TokenManager.Release",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) Release(targetID, agentID uint64) bool",
              "doc": "Release returns agentID's held token for targetID to cooldown and cancels any pending request.\n",
              "file": "pkg/ai/tokens.go",
              "line": 421
            },
            {
              "name": "RemoveAgent",
              "anchor": "TokenManager.RemoveAgent",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) RemoveAgent(agentID uint64)",
              "doc": "RemoveAgent releases any tokens held by agentID and cancels any pending requests across all targets.\n",
              "file": "pkg/ai/tokens.go",
              "line": 429
            },
            {
              "name": "RemoveTarget",
              "anchor": "TokenManager.RemoveTarget",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) RemoveTarget(targetID uint64) bool",
              "doc": "RemoveTarget deletes targetID's TokenPool (for example, when that target is defeated).\n",
              "file": "pkg/ai/tokens.go",
              "line": 383
            },
            {
              "name": "Request",
              "anchor": "TokenManager.Request",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) Request(targetID, agentID uint64, priority float64)",
              "doc": "Request submits or updates an attack token request for agentID against targetID, creating\ntargetID's pool with the manager's default configuration if needed.\n",
              "file": "pkg/ai/tokens.go",
              "line": 396
            },
            {
              "name": "Reset",
              "anchor": "TokenManager.Reset",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) Reset()",
              "doc": "Reset removes all target pools from m.\n",
              "file": "pkg/ai/tokens.go",
              "line": 443
            },
            {
              "name": "Step",
              "anchor": "TokenManager.Step",
              "recv": "*TokenManager",
              "decl": "func (m *TokenManager) Step(dt time.Duration)",
              "doc": "Step advances every target's TokenPool by dt in deterministic ascending target ID order.\n",
              "file": "pkg/ai/tokens.go",
              "line": 436
            }
          ]
        },
        {
          "name": "TokenPool",
          "anchor": "TokenPool",
          "decl": "type TokenPool struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TokenPool arbitrates a fixed number of attack tokens for one target.\n\nAgents request tokens with a priority via Request, and Step advances cooldown and timeout\ndurations while resolving pending requests deterministically (highest priority first,\nbreaking ties by lowest agent ID regardless of submission order). Higher-priority\nrequesters can preempt lower-priority holders when no free tokens remain. Returned tokens\nwait for Cooldown before becoming available again.\n\nTokenPool is not safe for concurrent use; drive it on game.Loop's fixed steps.\n",
          "file": "pkg/ai/tokens.go",
          "line": 67,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTokenPool",
              "anchor": "NewTokenPool",
              "decl": "func NewTokenPool(cfg TokenPoolConfig) *TokenPool",
              "doc": "NewTokenPool returns a TokenPool initialized with cfg.\n",
              "file": "pkg/ai/tokens.go",
              "line": 76
            }
          ],
          "methods": [
            {
              "name": "Available",
              "anchor": "TokenPool.Available",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Available() int",
              "doc": "Available returns the number of tokens immediately free to grant on the next Step.\n",
              "file": "pkg/ai/tokens.go",
              "line": 91
            },
            {
              "name": "Cancel",
              "anchor": "TokenPool.Cancel",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Cancel(agentID uint64) bool",
              "doc": "Cancel withdraws a pending request for agentID without releasing a held token.\nIt reports whether a pending request existed.\n",
              "file": "pkg/ai/tokens.go",
              "line": 149
            },
            {
              "name": "Capacity",
              "anchor": "TokenPool.Capacity",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Capacity() int",
              "doc": "Capacity returns the maximum number of tokens in the pool.\n",
              "file": "pkg/ai/tokens.go",
              "line": 88
            },
            {
              "name": "Config",
              "anchor": "TokenPool.Config",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Config() TokenPoolConfig",
              "doc": "Config returns the pool's effective configuration.\n",
              "file": "pkg/ai/tokens.go",
              "line": 85
            },
            {
              "name": "CoolingDown",
              "anchor": "TokenPool.CoolingDown",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) CoolingDown() int",
              "doc": "CoolingDown returns the number of returned tokens currently waiting on cooldown.\n",
              "file": "pkg/ai/tokens.go",
              "line": 94
            },
            {
              "name": "HasToken",
              "anchor": "TokenPool.HasToken",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) HasToken(agentID uint64) bool",
              "doc": "HasToken reports whether agentID currently holds an attack token from p.\n",
              "file": "pkg/ai/tokens.go",
              "line": 103
            },
            {
              "name": "HeldCount",
              "anchor": "TokenPool.HeldCount",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) HeldCount() int",
              "doc": "HeldCount returns the number of tokens currently held by agents.\n",
              "file": "pkg/ai/tokens.go",
              "line": 97
            },
            {
              "name": "Holder",
              "anchor": "TokenPool.Holder",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Holder(agentID uint64) (TokenHolder, bool)",
              "doc": "Holder returns the TokenHolder record for agentID if it currently holds a token.\n",
              "file": "pkg/ai/tokens.go",
              "line": 108
            },
            {
              "name": "Holders",
              "anchor": "TokenPool.Holders",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Holders(dst []TokenHolder) []TokenHolder",
              "doc": "Holders appends all active holders to dst[:0], sorted by ascending AgentID.\n",
              "file": "pkg/ai/tokens.go",
              "line": 116
            },
            {
              "name": "PendingCount",
              "anchor": "TokenPool.PendingCount",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) PendingCount() int",
              "doc": "PendingCount returns the number of waiting token requests.\n",
              "file": "pkg/ai/tokens.go",
              "line": 100
            },
            {
              "name": "Release",
              "anchor": "TokenPool.Release",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Release(agentID uint64) bool",
              "doc": "Release returns agentID's held token to the pool (starting Cooldown if configured) and\nwithdraws any pending request for agentID. It reports whether agentID held a token.\n",
              "file": "pkg/ai/tokens.go",
              "line": 160
            },
            {
              "name": "Remove",
              "anchor": "TokenPool.Remove",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Remove(agentID uint64) bool",
              "doc": "Remove releases any token held by agentID and cancels any pending request for agentID.\nCall Remove when an agent dies, despawns, or disengages from the target.\nIt reports whether agentID held a token or had a pending request.\n",
              "file": "pkg/ai/tokens.go",
              "line": 173
            },
            {
              "name": "Request",
              "anchor": "TokenPool.Request",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Request(agentID uint64, priority float64)",
              "doc": "Request submits or updates an attack token request for agentID at priority.\n\nIf agentID already holds a token, Request refreshes its priority for future preemption\ncomparisons without consuming a second token. Requests with a NaN priority are ignored.\nPending requests persist until granted, cancelled via Cancel or Remove, or cleared by Reset.\n",
              "file": "pkg/ai/tokens.go",
              "line": 129
            },
            {
              "name": "Reset",
              "anchor": "TokenPool.Reset",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Reset()",
              "doc": "Reset clears all active holders, pending requests, and cooldown timers, restoring Available() to Capacity().\n",
              "file": "pkg/ai/tokens.go",
              "line": 273
            },
            {
              "name": "Step",
              "anchor": "TokenPool.Step",
              "recv": "*TokenPool",
              "decl": "func (p *TokenPool) Step(dt time.Duration)",
              "doc": "Step advances cooldown and hold timers by dt and deterministically resolves pending requests.\n\nWithin a step:\n 1. Cooling-down tokens advance; any token whose remaining cooldown reaches <= 0 becomes available.\n 2. Active holders' hold durations advance; any holder reaching MaxHoldDuration returns its token\n    (entering Cooldown with its full duration when Cooldown > 0, or becoming available immediately).\n 3. Pending requests are sorted by descending priority, breaking ties by ascending AgentID.\n 4. Requests first consume available tokens, then preempt the lowest-priority holder (breaking\n    holder ties by highest AgentID) when the requester's priority exceeds the holder's by\n    PreemptMargin (or strictly exceeds it when PreemptMargin == 0).\n",
              "file": "pkg/ai/tokens.go",
              "line": 193
            }
          ]
        },
        {
          "name": "TokenPoolConfig",
          "anchor": "TokenPoolConfig",
          "decl": "type TokenPoolConfig struct {\n\t// Capacity is the maximum number of attack tokens that may be held at once.\n\t// Values <= 0 allow no tokens to be granted.\n\tCapacity int\n\t// Cooldown is the duration a returned token must wait before it can be acquired again.\n\t// Tokens transferred directly by preemption do not enter cooldown.\n\tCooldown time.Duration\n\t// PreemptMargin is the minimum priority advantage a waiting requester must have over the\n\t// lowest-priority holder to take (preempt) its token. When <= 0, any strictly higher\n\t// priority (requester > holder) may preempt.\n\tPreemptMargin float64\n\t// MaxHoldDuration automatically releases a held token once it has been held for this\n\t// duration, returning it to cooldown. Values <= 0 disable automatic timeout.\n\tMaxHoldDuration time.Duration\n}",
          "doc": "TokenPoolConfig configures a TokenPool for a single target.\n",
          "file": "pkg/ai/tokens.go",
          "line": 11,
          "members": [
            {
              "name": "Capacity",
              "anchor": "TokenPoolConfig.Capacity",
              "kind": "field",
              "doc": "Capacity is the maximum number of attack tokens that may be held at once.\nValues <= 0 allow no tokens to be granted."
            },
            {
              "name": "Cooldown",
              "anchor": "TokenPoolConfig.Cooldown",
              "kind": "field",
              "doc": "Cooldown is the duration a returned token must wait before it can be acquired again.\nTokens transferred directly by preemption do not enter cooldown."
            },
            {
              "name": "PreemptMargin",
              "anchor": "TokenPoolConfig.PreemptMargin",
              "kind": "field",
              "doc": "PreemptMargin is the minimum priority advantage a waiting requester must have over the\nlowest-priority holder to take (preempt) its token. When <= 0, any strictly higher\npriority (requester > holder) may preempt."
            },
            {
              "name": "MaxHoldDuration",
              "anchor": "TokenPoolConfig.MaxHoldDuration",
              "kind": "field",
              "doc": "MaxHoldDuration automatically releases a held token once it has been held for this\nduration, returning it to cooldown. Values <= 0 disable automatic timeout."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UtilityAction",
          "anchor": "UtilityAction",
          "decl": "type UtilityAction[C any] struct {\n\t// Name identifies the action (used to match behavior tree subtrees and YAML definitions).\n\tName string\n\t// Weight scales the compensated consideration score. Zero defaults to 1; negative disables the action.\n\tWeight float64\n\t// Momentum is an optional per-action bonus added on top of Reasoner.Momentum while this action is active and scores > 0.\n\tMomentum float64\n\t// Considerations are the scoring axes for this action. Any consideration returning 0 vetoes the action (score 0).\n\tConsiderations []Consideration[C]\n}",
          "doc": "UtilityAction is one candidate action scored by a Reasoner.\n\nIts score is the product of its Considerations adjusted by Dave Mark's compensation factor:\n\n\tmodFactor = 1 - 1/N\n\tscore = score + (1 - score)*modFactor*score\n\nmultiplied by Weight (defaulting to 1 when Weight == 0; negative Weight disables the action), plus any momentum bonus when the action is currently active and its base score is positive.\n",
          "file": "pkg/ai/utility.go",
          "line": 219,
          "members": [
            {
              "name": "Name",
              "anchor": "UtilityAction.Name",
              "kind": "field",
              "doc": "Name identifies the action (used to match behavior tree subtrees and YAML definitions)."
            },
            {
              "name": "Weight",
              "anchor": "UtilityAction.Weight",
              "kind": "field",
              "doc": "Weight scales the compensated consideration score. Zero defaults to 1; negative disables the action."
            },
            {
              "name": "Momentum",
              "anchor": "UtilityAction.Momentum",
              "kind": "field",
              "doc": "Momentum is an optional per-action bonus added on top of Reasoner.Momentum while this action is active and scores > 0."
            },
            {
              "name": "Considerations",
              "anchor": "UtilityAction.Considerations",
              "kind": "field",
              "doc": "Considerations are the scoring axes for this action. Any consideration returning 0 vetoes the action (score 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Score",
              "anchor": "UtilityAction.Score",
              "recv": "*UtilityAction[C]",
              "decl": "func (a *UtilityAction[C]) Score(ctx C, momentumBonus float64) float64",
              "doc": "Score computes the action's utility score for ctx.\nWhen momentumBonus > 0 and the weighted compensated score is strictly positive, momentumBonus is added to resist rapid switching.\n",
              "file": "pkg/ai/utility.go",
              "line": 232
            }
          ]
        },
        {
          "name": "UtilityActionDef",
          "anchor": "UtilityActionDef",
          "decl": "type UtilityActionDef struct {\n\t// Name uniquely identifies the action within the config.\n\tName string `yaml:\"name\"`\n\t// Weight scales the compensated consideration score; 0 defaults to 1.\n\tWeight float64 `yaml:\"weight,omitempty\"`\n\t// Momentum is an optional per-action bonus added on top of UtilityConfig.Momentum while active.\n\tMomentum float64 `yaml:\"momentum,omitempty\"`\n\t// Considerations are the scoring considerations evaluated for this action.\n\tConsiderations []ConsiderationDef `yaml:\"considerations,omitempty\"`\n}",
          "doc": "UtilityActionDef defines one action in a UtilityConfig file.\n",
          "file": "pkg/ai/utility_yaml.go",
          "line": 29,
          "members": [
            {
              "name": "Name",
              "anchor": "UtilityActionDef.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the action within the config."
            },
            {
              "name": "Weight",
              "anchor": "UtilityActionDef.Weight",
              "kind": "field",
              "doc": "Weight scales the compensated consideration score; 0 defaults to 1."
            },
            {
              "name": "Momentum",
              "anchor": "UtilityActionDef.Momentum",
              "kind": "field",
              "doc": "Momentum is an optional per-action bonus added on top of UtilityConfig.Momentum while active."
            },
            {
              "name": "Considerations",
              "anchor": "UtilityActionDef.Considerations",
              "kind": "field",
              "doc": "Considerations are the scoring considerations evaluated for this action."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UtilityBindings",
          "anchor": "UtilityBindings",
          "decl": "type UtilityBindings[C any] struct {\n\t// Inputs maps each ConsiderationDef.Input name to a function extracting that value from C.\n\tInputs map[string]func(C) float64\n\t// LoadCurve resolves a CurveDef.File path into a CurveEvaluator (for example via resource.LoadAs[*resource.Curve]).\n\t// Required only when the UtilityConfig contains at least one CurveResource curve.\n\tLoadCurve func(path string) (CurveEvaluator, error)\n}",
          "doc": "UtilityBindings provides the Go input readers and optional resource curve loader used by BuildReasoner.\n",
          "file": "pkg/ai/utility_yaml.go",
          "line": 206,
          "members": [
            {
              "name": "Inputs",
              "anchor": "UtilityBindings.Inputs",
              "kind": "field",
              "doc": "Inputs maps each ConsiderationDef.Input name to a function extracting that value from C."
            },
            {
              "name": "LoadCurve",
              "anchor": "UtilityBindings.LoadCurve",
              "kind": "field",
              "doc": "LoadCurve resolves a CurveDef.File path into a CurveEvaluator (for example via resource.LoadAs[*resource.Curve]).\nRequired only when the UtilityConfig contains at least one CurveResource curve."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UtilityConfig",
          "anchor": "UtilityConfig",
          "decl": "type UtilityConfig struct {\n\t// Version is the schema version; it must equal UtilityVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// TopN enables weighted random selection among the top TopN positive-scoring actions when greater than 1.\n\tTopN int `yaml:\"topN,omitempty\"`\n\t// Momentum is the default bonus added to the currently active action's positive score.\n\tMomentum float64 `yaml:\"momentum,omitempty\"`\n\t// Actions are the candidate actions in fixed declaration order (used for deterministic tie-breaking).\n\tActions []UtilityActionDef `yaml:\"actions\"`\n}",
          "doc": "UtilityConfig is a versioned YAML definition of utility AI actions, considerations, and response curves.\n",
          "file": "pkg/ai/utility_yaml.go",
          "line": 17,
          "members": [
            {
              "name": "Version",
              "anchor": "UtilityConfig.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal UtilityVersion (1)."
            },
            {
              "name": "TopN",
              "anchor": "UtilityConfig.TopN",
              "kind": "field",
              "doc": "TopN enables weighted random selection among the top TopN positive-scoring actions when greater than 1."
            },
            {
              "name": "Momentum",
              "anchor": "UtilityConfig.Momentum",
              "kind": "field",
              "doc": "Momentum is the default bonus added to the currently active action's positive score."
            },
            {
              "name": "Actions",
              "anchor": "UtilityConfig.Actions",
              "kind": "field",
              "doc": "Actions are the candidate actions in fixed declaration order (used for deterministic tie-breaking)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseUtility",
              "anchor": "ParseUtility",
              "decl": "func ParseUtility(data []byte) (*UtilityConfig, error)",
              "doc": "ParseUtility decodes and validates a utility AI YAML document.\nUnknown fields, missing or unsupported versions, duplicate keys, and trailing YAML documents are refused.\n",
              "file": "pkg/ai/utility_yaml.go",
              "line": 71
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "UtilityConfig.Validate",
              "recv": "*UtilityConfig",
              "decl": "func (cfg *UtilityConfig) Validate() error",
              "doc": "Validate checks that cfg has version UtilityVersion, valid parameters, unique action names, and well-formed considerations and curves.\n",
              "file": "pkg/ai/utility_yaml.go",
              "line": 121
            }
          ]
        },
        {
          "name": "ValidatedGraph",
          "anchor": "ValidatedGraph",
          "decl": "type ValidatedGraph[N comparable] interface {\n\tValidNode(node N) bool\n}",
          "doc": "ValidatedGraph is an optional interface a Graph may implement to reject invalid,\nout-of-bounds, blocked, or removed nodes before searching.\n",
          "file": "pkg/ai/graph.go",
          "line": 31,
          "members": [
            {
              "name": "ValidNode",
              "anchor": "ValidatedGraph.ValidNode",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Vec3",
          "anchor": "Vec3",
          "decl": "type Vec3 struct {\n\tX, Y, Z float32\n}",
          "doc": "Vec3 is a 3-component float32 vector in right-handed Y-up space (+X right,\n+Y up, -Z forward). Its field layout matches math3d.Vec3 so callers can\nconvert values with a zero-cost ai.Vec3(v) cast without importing the\nexperimental game/math3d package from stable game/ai.\n",
          "file": "pkg/ai/steering3d.go",
          "line": 12,
          "members": [
            {
              "name": "X",
              "anchor": "Vec3.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Vec3.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Vec3.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Alignment3D",
              "anchor": "Alignment3D",
              "decl": "func Alignment3D(a Agent3D, neighbors []Agent3D, radius float32) Vec3",
              "doc": "Alignment3D steers a toward the average heading of neighbors within radius\n(or all non-coincident neighbors when radius <= 0).\n",
              "file": "pkg/ai/steering3d.go",
              "line": 321
            },
            {
              "name": "Arrive3D",
              "anchor": "Arrive3D",
              "decl": "func Arrive3D(a Agent3D, target Vec3, slowRadius float32) Vec3",
              "doc": "Arrive3D returns a steering force toward target that smoothly scales desired\nspeed down to zero inside slowRadius.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 179
            },
            {
              "name": "Cohesion3D",
              "anchor": "Cohesion3D",
              "decl": "func Cohesion3D(a Agent3D, neighbors []Agent3D, radius float32) Vec3",
              "doc": "Cohesion3D steers a toward the center of mass of neighbors within radius\n(or all non-coincident neighbors when radius <= 0).\n",
              "file": "pkg/ai/steering3d.go",
              "line": 355
            },
            {
              "name": "Combine3D",
              "anchor": "Combine3D",
              "decl": "func Combine3D(maxForce float32, forces ...WeightedForce3D) Vec3",
              "doc": "Combine3D sums weighted 3D steering forces and clamps the result's magnitude\nto maxForce when maxForce is positive.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 706
            },
            {
              "name": "CombinePrioritized3D",
              "anchor": "CombinePrioritized3D",
              "decl": "func CombinePrioritized3D(maxForce float32, forces ...WeightedForce3D) Vec3",
              "doc": "CombinePrioritized3D blends 3D steering forces in priority order, spending at\nmost maxForce total magnitude. Once a force saturates the remaining budget it\nis truncated to the remainder and lower-priority forces are ignored.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 717
            },
            {
              "name": "Evade3D",
              "anchor": "Evade3D",
              "decl": "func Evade3D(a, pursuer Agent3D, panicRadius, maxLookAhead float32) Vec3",
              "doc": "Evade3D returns a steering force that flees from the predicted position of\npursuer while closer than panicRadius (or always when panicRadius <= 0).\n",
              "file": "pkg/ai/steering3d.go",
              "line": 234
            },
            {
              "name": "Flee3D",
              "anchor": "Flee3D",
              "decl": "func Flee3D(a Agent3D, threat Vec3, panicRadius float32) Vec3",
              "doc": "Flee3D returns the steering force accelerating a away from threat at\nMaxSpeed. When panicRadius is positive, Flee3D returns zero once a is at\nleast panicRadius away from threat.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 155
            },
            {
              "name": "FollowPath3D",
              "anchor": "FollowPath3D",
              "decl": "func FollowPath3D(a Agent3D, path []Vec3, state *PathFollowState, waypointRadius float32, loop bool) Vec3",
              "doc": "FollowPath3D steers a along path, advancing state.Index when a enters\nwaypointRadius of the current waypoint (measured on XZ when a.PlanarXZ is\ntrue, so grounded agents follow sloped world3d.NavMesh paths smoothly).\n",
              "file": "pkg/ai/steering3d.go",
              "line": 385
            },
            {
              "name": "Hide3D",
              "anchor": "Hide3D",
              "decl": "func Hide3D(a, pursuer Agent3D, obstacles []Obstacle3D, standoff, slowRadius float32) Vec3",
              "doc": "Hide3D picks the closest hiding spot behind an Obstacle3D opposite pursuer\nand steers a toward it with Arrive3D, falling back to Evade3D when no valid\nobstacle exists.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 647
            },
            {
              "name": "Interpose3D",
              "anchor": "Interpose3D",
              "decl": "func Interpose3D(a, targetA, targetB Agent3D, slowRadius float32) Vec3",
              "doc": "Interpose3D steers a to intercept the predicted midpoint between moving\nagents targetA and targetB, slowing smoothly inside slowRadius via Arrive3D.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 688
            },
            {
              "name": "ObstacleAvoidance3D",
              "anchor": "ObstacleAvoidance3D",
              "decl": "func ObstacleAvoidance3D(a Agent3D, obstacles []Obstacle3D, maxAhead float32) Vec3",
              "doc": "ObstacleAvoidance3D deflects a around the nearest 3D spherical obstacle (or\nXZ cylinder when a.PlanarXZ is true) intersecting its forward detection\ncorridor of length maxAhead.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 440
            },
            {
              "name": "OffsetPursuit3D",
              "anchor": "OffsetPursuit3D",
              "decl": "func OffsetPursuit3D(a, leader Agent3D, localOffset Vec3, slowRadius, maxLookAhead float32) Vec3",
              "doc": "OffsetPursuit3D steers a toward localOffset expressed in leader's\nright-handed Y-up heading frame (+X right, +Y up, -Z forward, so +Z trails\nbehind the leader), predicting leader's motion up to maxLookAhead seconds\nwhen positive and slowing smoothly inside slowRadius via Arrive3D.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 259
            },
            {
              "name": "Pursue3D",
              "anchor": "Pursue3D",
              "decl": "func Pursue3D(a, target Agent3D, maxLookAhead float32) Vec3",
              "doc": "Pursue3D returns a steering force that intercepts target by predicting its\nfuture position from target.Vel, capped to maxLookAhead seconds when positive.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 199
            },
            {
              "name": "Seek3D",
              "anchor": "Seek3D",
              "decl": "func Seek3D(a Agent3D, target Vec3) Vec3",
              "doc": "Seek3D returns the 3D (or XZ-planar) steering force accelerating a toward\ntarget at MaxSpeed.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 138
            },
            {
              "name": "Separation3D",
              "anchor": "Separation3D",
              "decl": "func Separation3D(a Agent3D, neighbors []Agent3D, desiredSep float32) Vec3",
              "doc": "Separation3D pushes a away from neighbors closer than desiredSep (defaulting\nto a.Radius + neighbor.Radius when desiredSep <= 0).\n",
              "file": "pkg/ai/steering3d.go",
              "line": 285
            },
            {
              "name": "WallAvoidance3D",
              "anchor": "WallAvoidance3D",
              "decl": "func WallAvoidance3D(a Agent3D, walls []Wall3D, feelerLength float32) Vec3",
              "doc": "WallAvoidance3D steers a away from vertical XZ wall segments using three\nhorizontal feeler whiskers and direct radius clearance containment.\n",
              "file": "pkg/ai/steering3d.go",
              "line": 530
            }
          ],
          "methods": []
        },
        {
          "name": "Wall",
          "anchor": "Wall",
          "decl": "type Wall struct {\n\tA, B core.Point\n}",
          "doc": "Wall is a 2D line segment from A to B used by WallAvoidance.\n",
          "file": "pkg/ai/steering_ext.go",
          "line": 16,
          "members": [
            {
              "name": "A",
              "anchor": "Wall.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "Wall.B",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Wall3D",
          "anchor": "Wall3D",
          "decl": "type Wall3D struct {\n\tA, B Vec3\n}",
          "doc": "Wall3D is a vertical wall segment from A to B projected onto the horizontal\nXZ plane, used by WallAvoidance3D.\n",
          "file": "pkg/ai/steering3d.go",
          "line": 39,
          "members": [
            {
              "name": "A",
              "anchor": "Wall3D.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "Wall3D.B",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WanderState",
          "anchor": "WanderState",
          "decl": "type WanderState struct {\n\tAngle float32\n}",
          "doc": "WanderState holds the persistent wander angle for an agent across steps.\n",
          "file": "pkg/ai/steering.go",
          "line": 92,
          "members": [
            {
              "name": "Angle",
              "anchor": "WanderState.Angle",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WaypointEdge",
          "anchor": "WaypointEdge",
          "decl": "type WaypointEdge struct {\n\tTo   int\n\tCost float64\n}",
          "doc": "WaypointEdge is a directed outgoing edge in a WaypointGraph.\n",
          "file": "pkg/ai/waypoint.go",
          "line": 10,
          "members": [
            {
              "name": "To",
              "anchor": "WaypointEdge.To",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cost",
              "anchor": "WaypointEdge.Cost",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WaypointGraph",
          "anchor": "WaypointGraph",
          "decl": "type WaypointGraph struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "WaypointGraph is a weighted graph of hand-placed 2D or 3D waypoints implementing\nHeuristicGraph[int], ValidatedGraph[int], and NodeOrder[int].\n\nEach added waypoint receives a stable integer ID (0, 1, 2, ...). Removing a waypoint\ninvalidates its ID without renumbering remaining waypoints. Edges may be directed or\nundirected, with either automatic Euclidean-distance costs (Connect / ConnectUndirected)\nor explicit non-negative weights (AddEdge / AddUndirectedEdge).\n\nHeuristic returns the Euclidean distance between two waypoints, which is admissible when\nevery edge cost is at least Euclidean distance; use GraphSearch.FindDijkstra or\nFindWithHeuristic when graphs contain shortcut or portal edges cheaper than Euclidean distance.\n",
          "file": "pkg/ai/waypoint.go",
          "line": 39,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewWaypointGraph",
              "anchor": "NewWaypointGraph",
              "decl": "func NewWaypointGraph() *WaypointGraph",
              "doc": "NewWaypointGraph returns an empty WaypointGraph.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 45
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "WaypointGraph.Add",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Add(pos core.Point) int",
              "doc": "Add adds a 2D waypoint at pos (with Z = 0) and returns its stable node ID.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 50
            },
            {
              "name": "Add3D",
              "anchor": "WaypointGraph.Add3D",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Add3D(pos Vec3) int",
              "doc": "Add3D adds a 3D waypoint at pos and returns its stable node ID.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 55
            },
            {
              "name": "AddEdge",
              "anchor": "WaypointGraph.AddEdge",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) AddEdge(from, to int, cost float64) bool",
              "doc": "AddEdge adds or updates a directed edge from -> to with explicit non-negative finite cost.\nReturns false if either endpoint is invalid/removed or cost is negative, NaN, or infinite.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 160
            },
            {
              "name": "AddUndirectedEdge",
              "anchor": "WaypointGraph.AddUndirectedEdge",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) AddUndirectedEdge(a, b int, cost float64) bool",
              "doc": "AddUndirectedEdge adds or updates bidirectional edges between a and b with explicit non-negative\nfinite cost. Returns false if either endpoint is invalid/removed or cost is negative, NaN, or infinite.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 170
            },
            {
              "name": "AppendNeighbors",
              "anchor": "WaypointGraph.AppendNeighbors",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) AppendNeighbors(dst []GraphEdge[int], id int) []GraphEdge[int]",
              "doc": "AppendNeighbors appends all outgoing edges from id to enabled destination waypoints onto dst\nin deterministic ascending destination ID order.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 304
            },
            {
              "name": "Connect",
              "anchor": "WaypointGraph.Connect",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Connect(from, to int) bool",
              "doc": "Connect adds or updates a directed edge from -> to whose cost is the live Euclidean distance\nbetween the two waypoints. Returns false if either endpoint is invalid or removed.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 137
            },
            {
              "name": "ConnectUndirected",
              "anchor": "WaypointGraph.ConnectUndirected",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) ConnectUndirected(a, b int) bool",
              "doc": "ConnectUndirected adds or updates bidirectional edges between a and b whose cost is the live\nEuclidean distance between them. Returns false if either endpoint is invalid or removed.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 147
            },
            {
              "name": "Edges",
              "anchor": "WaypointGraph.Edges",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Edges(id int) []WaypointEdge",
              "doc": "Edges returns a copy of waypoint id's outgoing edges ordered by ascending destination ID.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 200
            },
            {
              "name": "Enabled",
              "anchor": "WaypointGraph.Enabled",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Enabled(id int) bool",
              "doc": "Enabled reports whether id is an active, enabled waypoint.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 93
            },
            {
              "name": "Heuristic",
              "anchor": "WaypointGraph.Heuristic",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Heuristic(from, goal int) float64",
              "doc": "Heuristic returns the Euclidean distance between waypoints from and goal.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 323
            },
            {
              "name": "Nearest",
              "anchor": "WaypointGraph.Nearest",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Nearest(pos core.Point) (int, bool)",
              "doc": "Nearest returns the ID of the enabled waypoint closest to 2D point pos (in XY),\nbreaking distance ties deterministically by lowest waypoint ID.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 223
            },
            {
              "name": "Nearest3D",
              "anchor": "WaypointGraph.Nearest3D",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Nearest3D(pos Vec3) (int, bool)",
              "doc": "Nearest3D returns the ID of the enabled waypoint closest to 3D point pos,\nbreaking distance ties deterministically by lowest waypoint ID.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 229
            },
            {
              "name": "NodeCount",
              "anchor": "WaypointGraph.NodeCount",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) NodeCount() int",
              "doc": "NodeCount returns the number of active (non-removed) waypoints in g.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 128
            },
            {
              "name": "NodeLess",
              "anchor": "WaypointGraph.NodeLess",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) NodeLess(a, b int) bool",
              "doc": "NodeLess breaks search ties deterministically by ascending waypoint ID.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 331
            },
            {
              "name": "Points",
              "anchor": "WaypointGraph.Points",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Points(ids []int) []core.Point",
              "doc": "Points converts a slice of waypoint IDs into their 2D positions.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 257
            },
            {
              "name": "Points3D",
              "anchor": "WaypointGraph.Points3D",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Points3D(ids []int) []Vec3",
              "doc": "Points3D converts a slice of waypoint IDs into their 3D positions.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 276
            },
            {
              "name": "Points3DInto",
              "anchor": "WaypointGraph.Points3DInto",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Points3DInto(dst []Vec3, ids []int) []Vec3",
              "doc": "Points3DInto writes the 3D positions of ids into dst[:0], avoiding allocations when dst has enough capacity.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 281
            },
            {
              "name": "PointsInto",
              "anchor": "WaypointGraph.PointsInto",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) PointsInto(dst []core.Point, ids []int) []core.Point",
              "doc": "PointsInto writes the 2D positions of ids into dst[:0], avoiding allocations when dst has enough capacity.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 262
            },
            {
              "name": "Pos",
              "anchor": "WaypointGraph.Pos",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Pos(id int) (core.Point, bool)",
              "doc": "Pos returns the 2D position of active waypoint id, or (zero, false) if id is invalid or removed.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 111
            },
            {
              "name": "Pos3D",
              "anchor": "WaypointGraph.Pos3D",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Pos3D(id int) (Vec3, bool)",
              "doc": "Pos3D returns the 3D position of active waypoint id, or (zero, false) if id is invalid or removed.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 120
            },
            {
              "name": "Remove",
              "anchor": "WaypointGraph.Remove",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) Remove(id int) bool",
              "doc": "Remove deletes waypoint id and all edges incident to it while keeping all other node IDs stable.\nIt returns false if id is invalid or already removed.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 68
            },
            {
              "name": "RemoveEdge",
              "anchor": "WaypointGraph.RemoveEdge",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) RemoveEdge(from, to int) bool",
              "doc": "RemoveEdge removes the directed edge from -> to, returning true if it existed.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 182
            },
            {
              "name": "RemoveUndirectedEdge",
              "anchor": "WaypointGraph.RemoveUndirectedEdge",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) RemoveUndirectedEdge(a, b int) bool",
              "doc": "RemoveUndirectedEdge removes both a -> b and b -> a, returning true if either existed.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 190
            },
            {
              "name": "SetEnabled",
              "anchor": "WaypointGraph.SetEnabled",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) SetEnabled(id int, enabled bool)",
              "doc": "SetEnabled enables or disables an active waypoint without removing its edges.\nDisabled waypoints are skipped during searches and Nearest queries.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 85
            },
            {
              "name": "SetPos",
              "anchor": "WaypointGraph.SetPos",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) SetPos(id int, pos core.Point)",
              "doc": "SetPos updates the 2D position of waypoint id (setting Z = 0).\n",
              "file": "pkg/ai/waypoint.go",
              "line": 98
            },
            {
              "name": "SetPos3D",
              "anchor": "WaypointGraph.SetPos3D",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) SetPos3D(id int, pos Vec3)",
              "doc": "SetPos3D updates the 3D position of waypoint id.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 103
            },
            {
              "name": "ValidNode",
              "anchor": "WaypointGraph.ValidNode",
              "recv": "*WaypointGraph",
              "decl": "func (g *WaypointGraph) ValidNode(id int) bool",
              "doc": "ValidNode reports whether id is an active, enabled waypoint in g.\n",
              "file": "pkg/ai/waypoint.go",
              "line": 295
            }
          ]
        },
        {
          "name": "WeightedForce",
          "anchor": "WeightedForce",
          "decl": "type WeightedForce struct {\n\tForce  core.Point\n\tWeight float32\n}",
          "doc": "WeightedForce pairs a steering force with a scalar weight for Combine.\n",
          "file": "pkg/ai/steering.go",
          "line": 223,
          "members": [
            {
              "name": "Force",
              "anchor": "WeightedForce.Force",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight",
              "anchor": "WeightedForce.Weight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WeightedForce3D",
          "anchor": "WeightedForce3D",
          "decl": "type WeightedForce3D struct {\n\tForce  Vec3\n\tWeight float32\n}",
          "doc": "WeightedForce3D pairs a 3D steering force with a scalar weight for Combine3D\nand CombinePrioritized3D.\n",
          "file": "pkg/ai/steering3d.go",
          "line": 45,
          "members": [
            {
              "name": "Force",
              "anchor": "WeightedForce3D.Force",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight",
              "anchor": "WeightedForce3D.Weight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WeightedLayer",
          "anchor": "WeightedLayer",
          "decl": "type WeightedLayer struct {\n\tLayer  *InfluenceLayer\n\tWeight float32\n}",
          "doc": "WeightedLayer pairs an InfluenceLayer with a scalar weight for InfluenceLayer.Combine.\n",
          "file": "pkg/ai/influence.go",
          "line": 61,
          "members": [
            {
              "name": "Layer",
              "anchor": "WeightedLayer.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight",
              "anchor": "WeightedLayer.Weight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WeightedNode",
          "anchor": "WeightedNode",
          "decl": "type WeightedNode struct {\n\tNode   Node\n\tWeight float64\n}",
          "doc": "WeightedNode pairs a behavior tree child Node with a relative selection weight for WeightedSelector.\n\nOptions with Weight <= 0, NaN, Inf, or a nil Node are never selected.\n",
          "file": "pkg/ai/bt_ext.go",
          "line": 279,
          "members": [
            {
              "name": "Node",
              "anchor": "WeightedNode.Node",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight",
              "anchor": "WeightedNode.Weight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldState",
          "anchor": "WorldState",
          "decl": "type WorldState struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "WorldState is a compact, comparable snapshot of an agent's world facts:\nup to MaxBoolFacts boolean facts packed into a 128-bit bitset and up to MaxIntFacts small int16 facts.\n",
          "file": "pkg/ai/goap.go",
          "line": 192,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "WorldState.Apply",
              "recv": "WorldState",
              "decl": "func (w WorldState) Apply(eff Effects) WorldState",
              "doc": "Apply returns a copy of w updated with eff.\n",
              "file": "pkg/ai/goap.go",
              "line": 247
            },
            {
              "name": "Bool",
              "anchor": "WorldState.Bool",
              "recv": "WorldState",
              "decl": "func (w WorldState) Bool(f BoolFact) bool",
              "doc": "Bool returns the value of boolean fact f, or false if f is out of range.\n",
              "file": "pkg/ai/goap.go",
              "line": 198
            },
            {
              "name": "Int",
              "anchor": "WorldState.Int",
              "recv": "WorldState",
              "decl": "func (w WorldState) Int(f IntFact) int",
              "doc": "Int returns the value of integer fact f, or 0 if f is out of range.\n",
              "file": "pkg/ai/goap.go",
              "line": 225
            },
            {
              "name": "Satisfies",
              "anchor": "WorldState.Satisfies",
              "recv": "WorldState",
              "decl": "func (w WorldState) Satisfies(cond Conditions) bool",
              "doc": "Satisfies reports whether w satisfies every boolean and integer requirement in cond.\n",
              "file": "pkg/ai/goap.go",
              "line": 252
            },
            {
              "name": "SetBool",
              "anchor": "WorldState.SetBool",
              "recv": "*WorldState",
              "decl": "func (w *WorldState) SetBool(f BoolFact, v bool)",
              "doc": "SetBool sets boolean fact f to v. Out-of-range facts are ignored.\n",
              "file": "pkg/ai/goap.go",
              "line": 206
            },
            {
              "name": "SetInt",
              "anchor": "WorldState.SetInt",
              "recv": "*WorldState",
              "decl": "func (w *WorldState) SetInt(f IntFact, v int)",
              "doc": "SetInt sets integer fact f to v, clamped to the int16 range [-32768, 32767]. Out-of-range facts are ignored.\n",
              "file": "pkg/ai/goap.go",
              "line": 233
            },
            {
              "name": "WithBool",
              "anchor": "WorldState.WithBool",
              "recv": "WorldState",
              "decl": "func (w WorldState) WithBool(f BoolFact, v bool) WorldState",
              "doc": "WithBool returns a copy of w with boolean fact f set to v.\n",
              "file": "pkg/ai/goap.go",
              "line": 219
            },
            {
              "name": "WithInt",
              "anchor": "WorldState.WithInt",
              "recv": "WorldState",
              "decl": "func (w WorldState) WithInt(f IntFact, v int) WorldState",
              "doc": "WithInt returns a copy of w with integer fact f set to v (clamped to int16 range).\n",
              "file": "pkg/ai/goap.go",
              "line": 241
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/ai/perception3d",
      "name": "perception3d",
      "dir": "pkg/ai/perception3d",
      "page": "pkg/ai/perception3d",
      "synopsis": "Package perception3d is ai's perception for agents in a 3D world: sight cones around a forward vector, hearing and per-stimulus memory on math3d.Vec3, with line of sight through physics3d raycasts or a game's own check.",
      "doc": "Package perception3d is ai's perception for agents in a 3D world: sight cones around a forward vector, hearing and per-stimulus memory on math3d.Vec3, with line of sight through physics3d raycasts or a game's own check.\n\nIt shares ai's engine, so its sight, hearing, memory, events, teams, line-of-sight budget and determinism behave exactly as ai.PerceptionSystem's do, and it uses ai's StimulusID, Team, SightConfig, HearingConfig and event types.\n",
      "consts": [],
      "vars": [],
      "funcs": [],
      "types": [
        {
          "name": "Event",
          "anchor": "Event",
          "decl": "type Event struct {\n\t// Kind is what happened.\n\tKind ai.EventKind\n\t// Memory is the memory as the event left it; for ai.EventForgotten it is the memory that was dropped.\n\tMemory Memory\n}",
          "doc": "Event reports a change to one memory during the last step.\n",
          "file": "pkg/ai/perception3d/perception3d.go",
          "line": 79,
          "members": [
            {
              "name": "Kind",
              "anchor": "Event.Kind",
              "kind": "field",
              "doc": "Kind is what happened."
            },
            {
              "name": "Memory",
              "anchor": "Event.Memory",
              "kind": "field",
              "doc": "Memory is the memory as the event left it; for ai.EventForgotten it is the memory that was dropped."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LineOfSight",
          "anchor": "LineOfSight",
          "decl": "type LineOfSight func(from, to math3d.Vec3) bool",
          "doc": "LineOfSight reports whether nothing blocks the segment from an agent's eye at from to a target at to. It must be deterministic for perception to be.\n",
          "file": "pkg/ai/perception3d/perception3d.go",
          "line": 17,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PhysicsLineOfSight",
              "anchor": "PhysicsLineOfSight",
              "decl": "func PhysicsLineOfSight(w *physics3d.World, layers physics3d.LayerMask) LineOfSight",
              "doc": "PhysicsLineOfSight returns a LineOfSight that is blocked by the first hit of w.RaycastFirstLayer with layers; zero selects every layer.\n\nA ray starting inside a body hits it, and a ray to a target hits the target's own body, so keep agents' and targets' bodies off the layers that block sight.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 22
            }
          ],
          "methods": []
        },
        {
          "name": "Memory",
          "anchor": "Memory",
          "decl": "type Memory struct {\n\t// ID is the stimulus's ID.\n\tID ai.StimulusID\n\t// Team is the stimulus's team when it was last sensed.\n\tTeam ai.Team\n\t// Attitude is how the agent regarded the stimulus when it was last sensed.\n\tAttitude ai.Attitude\n\t// Sense is the sense that last refreshed the memory.\n\tSense ai.Sense\n\t// Pos is the last known position.\n\tPos math3d.Vec3\n\t// Vel is the last known velocity: the target's velocity when seen, zero when heard.\n\tVel math3d.Vec3\n\t// Age is the time since the stimulus was last sensed; zero while it is in sight.\n\tAge time.Duration\n\t// Strength is 1 when seen, and hearing raises it to at least 1 - distance/reach (1 for an infinite reach); it falls linearly to 0 over ForgetAfter.\n\tStrength float32\n\t// Visible reports whether the stimulus is in sight now.\n\tVisible bool\n}",
          "doc": "Memory is what an agent remembers about one stimulus; its fields mean what ai.Memory's do.\n",
          "file": "pkg/ai/perception3d/perception3d.go",
          "line": 57,
          "members": [
            {
              "name": "ID",
              "anchor": "Memory.ID",
              "kind": "field",
              "doc": "ID is the stimulus's ID."
            },
            {
              "name": "Team",
              "anchor": "Memory.Team",
              "kind": "field",
              "doc": "Team is the stimulus's team when it was last sensed."
            },
            {
              "name": "Attitude",
              "anchor": "Memory.Attitude",
              "kind": "field",
              "doc": "Attitude is how the agent regarded the stimulus when it was last sensed."
            },
            {
              "name": "Sense",
              "anchor": "Memory.Sense",
              "kind": "field",
              "doc": "Sense is the sense that last refreshed the memory."
            },
            {
              "name": "Pos",
              "anchor": "Memory.Pos",
              "kind": "field",
              "doc": "Pos is the last known position."
            },
            {
              "name": "Vel",
              "anchor": "Memory.Vel",
              "kind": "field",
              "doc": "Vel is the last known velocity: the target's velocity when seen, zero when heard."
            },
            {
              "name": "Age",
              "anchor": "Memory.Age",
              "kind": "field",
              "doc": "Age is the time since the stimulus was last sensed; zero while it is in sight."
            },
            {
              "name": "Strength",
              "anchor": "Memory.Strength",
              "kind": "field",
              "doc": "Strength is 1 when seen, and hearing raises it to at least 1 - distance/reach (1 for an infinite reach); it falls linearly to 0 over ForgetAfter."
            },
            {
              "name": "Visible",
              "anchor": "Memory.Visible",
              "kind": "field",
              "doc": "Visible reports whether the stimulus is in sight now."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Noise",
          "anchor": "Noise",
          "decl": "type Noise struct {\n\t// Source identifies what made the noise; the memory of it is kept under this ID.\n\tSource ai.StimulusID\n\t// Team is the source's team.\n\tTeam ai.Team\n\t// Pos is where the noise was made.\n\tPos math3d.Vec3\n\t// Loudness scales each listener's hearing range; zero or less is inaudible.\n\tLoudness float32\n}",
          "doc": "Noise is a sound posted to a System and heard on its next Step.\n",
          "file": "pkg/ai/perception3d/perception3d.go",
          "line": 45,
          "members": [
            {
              "name": "Source",
              "anchor": "Noise.Source",
              "kind": "field",
              "doc": "Source identifies what made the noise; the memory of it is kept under this ID."
            },
            {
              "name": "Team",
              "anchor": "Noise.Team",
              "kind": "field",
              "doc": "Team is the source's team."
            },
            {
              "name": "Pos",
              "anchor": "Noise.Pos",
              "kind": "field",
              "doc": "Pos is where the noise was made."
            },
            {
              "name": "Loudness",
              "anchor": "Noise.Loudness",
              "kind": "field",
              "doc": "Loudness scales each listener's hearing range; zero or less is inaudible."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Perception",
          "anchor": "Perception",
          "decl": "type Perception struct {\n\t// Self is the agent's own StimulusID, so the agent never senses itself; zero means the agent is not a stimulus, so an agent that is one needs a non-zero ID.\n\tSelf ai.StimulusID\n\t// Team is the agent's team.\n\tTeam ai.Team\n\t// Pos is the agent's position.\n\tPos math3d.Vec3\n\t// Forward is the direction the sight cone points along; its length does not matter, and zero faces -Z.\n\tForward math3d.Vec3\n\t// EyeOffset is added to Pos, in world space, to give the point both senses measure from and sight looks from, such as head height on +Y.\n\tEyeOffset math3d.Vec3\n\t// Sight is the agent's vision; its angles are measured in 3D around Forward.\n\tSight ai.SightConfig\n\t// Hearing is the agent's hearing.\n\tHearing ai.HearingConfig\n\t// ForgetAfter is how long a stimulus is remembered after it was last sensed; zero or less forgets it on the step after.\n\tForgetAfter time.Duration\n\t// contains filtered or unexported fields\n}",
          "doc": "Perception is one 3D agent's senses and memory. Set its exported fields, add it to a System, and step the system on game.Loop's fixed steps; the system reads the fields at the start of every Step.\n",
          "file": "pkg/ai/perception3d/perception3d.go",
          "line": 87,
          "members": [
            {
              "name": "Self",
              "anchor": "Perception.Self",
              "kind": "field",
              "doc": "Self is the agent's own StimulusID, so the agent never senses itself; zero means the agent is not a stimulus, so an agent that is one needs a non-zero ID."
            },
            {
              "name": "Team",
              "anchor": "Perception.Team",
              "kind": "field",
              "doc": "Team is the agent's team."
            },
            {
              "name": "Pos",
              "anchor": "Perception.Pos",
              "kind": "field",
              "doc": "Pos is the agent's position."
            },
            {
              "name": "Forward",
              "anchor": "Perception.Forward",
              "kind": "field",
              "doc": "Forward is the direction the sight cone points along; its length does not matter, and zero faces -Z."
            },
            {
              "name": "EyeOffset",
              "anchor": "Perception.EyeOffset",
              "kind": "field",
              "doc": "EyeOffset is added to Pos, in world space, to give the point both senses measure from and sight looks from, such as head height on +Y."
            },
            {
              "name": "Sight",
              "anchor": "Perception.Sight",
              "kind": "field",
              "doc": "Sight is the agent's vision; its angles are measured in 3D around Forward."
            },
            {
              "name": "Hearing",
              "anchor": "Perception.Hearing",
              "kind": "field",
              "doc": "Hearing is the agent's hearing."
            },
            {
              "name": "ForgetAfter",
              "anchor": "Perception.ForgetAfter",
              "kind": "field",
              "doc": "ForgetAfter is how long a stimulus is remembered after it was last sensed; zero or less forgets it on the step after."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AppendMemories",
              "anchor": "Perception.AppendMemories",
              "recv": "*Perception",
              "decl": "func (p *Perception) AppendMemories(dst []Memory) []Memory",
              "doc": "AppendMemories appends every memory, sorted by ID, to dst and returns the extended slice.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 115
            },
            {
              "name": "Clear",
              "anchor": "Perception.Clear",
              "recv": "*Perception",
              "decl": "func (p *Perception) Clear()",
              "doc": "Clear drops every memory and the last step's events.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 148
            },
            {
              "name": "Events",
              "anchor": "Perception.Events",
              "recv": "*Perception",
              "decl": "func (p *Perception) Events() []Event",
              "doc": "Events returns the events of the last Step; the slice is reused by the next Step.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 138
            },
            {
              "name": "Forget",
              "anchor": "Perception.Forget",
              "recv": "*Perception",
              "decl": "func (p *Perception) Forget(id ai.StimulusID) bool",
              "doc": "Forget drops the memory of id without an event and reports whether there was one.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 143
            },
            {
              "name": "Memories",
              "anchor": "Perception.Memories",
              "recv": "*Perception",
              "decl": "func (p *Perception) Memories() []Memory",
              "doc": "Memories returns a new slice of every memory, sorted by ID.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 110
            },
            {
              "name": "Memory",
              "anchor": "Perception.Memory",
              "recv": "*Perception",
              "decl": "func (p *Perception) Memory(id ai.StimulusID) (Memory, bool)",
              "doc": "Memory returns the memory of the stimulus id, if any.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 123
            },
            {
              "name": "Sees",
              "anchor": "Perception.Sees",
              "recv": "*Perception",
              "decl": "func (p *Perception) Sees(id ai.StimulusID) bool",
              "doc": "Sees reports whether the stimulus id is in sight now.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 132
            }
          ]
        },
        {
          "name": "System",
          "anchor": "System",
          "decl": "type System struct {\n\t// LineOfSight decides whether a target in view is seen; nil means nothing blocks sight.\n\tLineOfSight LineOfSight\n\t// Attitude decides how agents regard targets and noises; nil means ai.DefaultAttitude.\n\tAttitude ai.AttitudeFunc\n\t// Budget caps the LineOfSight calls of one step; zero or less checks every pair in view, and a nil LineOfSight makes no calls, so the budget does not apply and every pair in view is seen at once. When the cap is reached, the remaining pairs are checked first on the next step, round-robin, and keep their previous result until then.\n\tBudget int\n\t// contains filtered or unexported fields\n}",
          "doc": "System steps the Perceptions of many 3D agents together, so their line-of-sight checks share one per-step Budget, as ai.PerceptionSystem does in 2D. The zero System is ready to use, with every line of sight clear.\n",
          "file": "pkg/ai/perception3d/perception3d.go",
          "line": 178,
          "members": [
            {
              "name": "LineOfSight",
              "anchor": "System.LineOfSight",
              "kind": "field",
              "doc": "LineOfSight decides whether a target in view is seen; nil means nothing blocks sight."
            },
            {
              "name": "Attitude",
              "anchor": "System.Attitude",
              "kind": "field",
              "doc": "Attitude decides how agents regard targets and noises; nil means ai.DefaultAttitude."
            },
            {
              "name": "Budget",
              "anchor": "System.Budget",
              "kind": "field",
              "doc": "Budget caps the LineOfSight calls of one step; zero or less checks every pair in view, and a nil LineOfSight makes no calls, so the budget does not apply and every pair in view is seen at once. When the cap is reached, the remaining pairs are checked first on the next step, round-robin, and keep their previous result until then."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "System.Add",
              "recv": "*System",
              "decl": "func (s *System) Add(p *Perception)",
              "doc": "Add adds p to the system, after the agents already in it. Adding p again does nothing; adding a Perception that belongs to another system panics. A copy of a Perception that was added, such as a configured prototype, is a separate agent: Add gives it its own copy of the memories and no events.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 191
            },
            {
              "name": "Len",
              "anchor": "System.Len",
              "recv": "*System",
              "decl": "func (s *System) Len() int",
              "doc": "Len returns the number of agents in the system.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 211
            },
            {
              "name": "PostNoise",
              "anchor": "System.PostNoise",
              "recv": "*System",
              "decl": "func (s *System) PostNoise(n Noise)",
              "doc": "PostNoise queues n to be heard on the next Step. Noises are heard in the order they were posted.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 216
            },
            {
              "name": "Remove",
              "anchor": "System.Remove",
              "recv": "*System",
              "decl": "func (s *System) Remove(p *Perception) bool",
              "doc": "Remove removes p from the system and reports whether it was there. p keeps its memories, but none of them is visible any more and Events is empty, so Sees reports false until p is added and stepped again.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 199
            },
            {
              "name": "Stats",
              "anchor": "System.Stats",
              "recv": "*System",
              "decl": "func (s *System) Stats() ai.PerceptionStats",
              "doc": "Stats returns the line-of-sight work of the last Step.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 250
            },
            {
              "name": "Step",
              "anchor": "System.Step",
              "recv": "*System",
              "decl": "func (s *System) Step(dt time.Duration, targets []Target)",
              "doc": "Step advances every agent by dt: memories age, targets in view are checked for line of sight within the budget, posted noises are heard, and memories not sensed for ForgetAfter are forgotten. targets is read only during the call.\n",
              "file": "pkg/ai/perception3d/perception3d.go",
              "line": 221
            }
          ]
        },
        {
          "name": "Target",
          "anchor": "Target",
          "decl": "type Target struct {\n\t// ID identifies the target; a later target with the same ID in one step is ignored.\n\tID ai.StimulusID\n\t// Team is the target's team.\n\tTeam ai.Team\n\t// Pos is the point agents look at.\n\tPos math3d.Vec3\n\t// Vel is the target's velocity, remembered while it is seen.\n\tVel math3d.Vec3\n}",
          "doc": "Target is a stimulus that agents can see during one step.\n",
          "file": "pkg/ai/perception3d/perception3d.go",
          "line": 33,
          "members": [
            {
              "name": "ID",
              "anchor": "Target.ID",
              "kind": "field",
              "doc": "ID identifies the target; a later target with the same ID in one step is ignored."
            },
            {
              "name": "Team",
              "anchor": "Target.Team",
              "kind": "field",
              "doc": "Team is the target's team."
            },
            {
              "name": "Pos",
              "anchor": "Target.Pos",
              "kind": "field",
              "doc": "Pos is the point agents look at."
            },
            {
              "name": "Vel",
              "anchor": "Target.Vel",
              "kind": "field",
              "doc": "Vel is the target's velocity, remembered while it is seen."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/anim3d",
      "name": "anim3d",
      "dir": "pkg/anim3d",
      "page": "pkg/anim3d",
      "synopsis": "Package anim3d provides 3D skeletal animation playback for glTF 2.0 models, state machines, 1D/2D blend spaces with foot-phase synchronization, layered bone-masked and additive blending, timed animation events, inverse kinematics solvers, and root motion extraction for NSGo 3D games.",
      "doc": "Package anim3d provides 3D skeletal animation playback for glTF 2.0 models,\nstate machines, 1D/2D blend spaces with foot-phase synchronization, layered\nbone-masked and additive blending, timed animation events, inverse kinematics\nsolvers, and root motion extraction for NSGo 3D games.\n\nAll transforms, vectors, and quaternions follow package math3d's right-handed\nY-up conventions (+X right, +Y up, -Z forward). Time advances in fixed\ntime.Duration steps matching game.Loop.Update.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNilDocument",
              "anchor": "ErrNilDocument"
            },
            {
              "name": "ErrInvalidAnimation",
              "anchor": "ErrInvalidAnimation"
            },
            {
              "name": "ErrAnimationNotFound",
              "anchor": "ErrAnimationNotFound"
            },
            {
              "name": "ErrInvalidSkin",
              "anchor": "ErrInvalidSkin"
            }
          ],
          "decl": "var (\n\t// ErrNilDocument is returned when a nil *gltf.Document is passed.\n\tErrNilDocument = errors.New(\"anim3d: nil gltf document\")\n\t// ErrInvalidAnimation is returned when an animation index is out of range.\n\tErrInvalidAnimation = errors.New(\"anim3d: animation index out of range\")\n\t// ErrAnimationNotFound is returned when no animation matches the given name.\n\tErrAnimationNotFound = errors.New(\"anim3d: animation not found\")\n\t// ErrInvalidSkin is returned when a skin index or skinned node is out of range.\n\tErrInvalidSkin = errors.New(\"anim3d: skin index out of range\")\n)",
          "doc": "Playback errors returned by glTF clip conversion and Player operations.\n",
          "file": "pkg/anim3d/playback.go",
          "line": 17
        }
      ],
      "funcs": [
        {
          "name": "ApplyRootMotion",
          "anchor": "ApplyRootMotion",
          "decl": "func ApplyRootMotion(world math3d.Transform, rm RootMotion) math3d.Transform",
          "doc": "ApplyRootMotion advances a character's world transform by rm, transforming\nrm.DeltaPos by world's current orientation and scale and composing rm.DeltaRot.\n",
          "file": "pkg/anim3d/rootmotion.go",
          "line": 124
        },
        {
          "name": "LoadEventsFromGLTFExtras",
          "anchor": "LoadEventsFromGLTFExtras",
          "decl": "func LoadEventsFromGLTFExtras(gltfJSON []byte) (map[string][]ClipEvent, error)",
          "doc": "LoadEventsFromGLTFExtras parses animation events from a glTF 2.0 JSON document's\nanimations[i].extras.events and/or animations[i].extras.nsgo_events arrays.\nEach clip's events are returned sorted by ascending Time.\nAnimations without a name fall back to \"animation_<index>\".\n\nIts errors are *loaderr.Error values that give the line of the problem and how to fix it; a caller that read the document from a file names it with loaderr.WithFile.\n",
          "file": "pkg/anim3d/events.go",
          "line": 292
        },
        {
          "name": "LoadEventsSidecar",
          "anchor": "LoadEventsSidecar",
          "decl": "func LoadEventsSidecar(data []byte) (map[string][]ClipEvent, error)",
          "doc": "LoadEventsSidecar parses a JSON sidecar file produced by MarshalEventsSidecar\n({\"version\": 1, \"clips\": {...}}) or a flat {\"clipName\": [...]} map into\nper-clip event slices sorted by ascending Time.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
          "file": "pkg/anim3d/events.go",
          "line": 360
        },
        {
          "name": "MarshalEventsSidecar",
          "anchor": "MarshalEventsSidecar",
          "decl": "func MarshalEventsSidecar(clips map[string][]ClipEvent) ([]byte, error)",
          "doc": "MarshalEventsSidecar serializes per-clip event lists into a formatted JSON\nsidecar document ({\"version\": 1, \"clips\": {...}}) with each clip's events\nsorted by ascending Time.\n",
          "file": "pkg/anim3d/events.go",
          "line": 336
        },
        {
          "name": "SolveFABRIK",
          "anchor": "SolveFABRIK",
          "decl": "func SolveFABRIK(joints []math3d.Vec3, target math3d.Vec3, iterations int, tolerance float32) []math3d.Vec3",
          "doc": "SolveFABRIK solves a multi-joint inverse kinematics chain using the iterative\nFABRIK (Forward And Backward Reaching Inverse Kinematics) algorithm.\n\nThe root joint joints[0] stays fixed and every bone segment length\n|joints[i+1] - joints[i]| is preserved exactly. The input slice is not mutated.\nIf iterations <= 0 it defaults to 10; if tolerance <= 0 it defaults to 1e-4.\n",
          "file": "pkg/anim3d/ik.go",
          "line": 101
        },
        {
          "name": "SolveTwoBoneIK",
          "anchor": "SolveTwoBoneIK",
          "decl": "func SolveTwoBoneIK(root, mid, end, target, pole math3d.Vec3) (newMid, newEnd math3d.Vec3, rootRot, midRot math3d.Quat)",
          "doc": "SolveTwoBoneIK analytically solves a two-bone inverse kinematics chain\n(root -> mid -> end) to place the end effector as close as possible to target\nwhile bending the hinge joint toward the pole target position in the\nroot-target-pole plane.\n\nBone lengths |mid - root| and |end - mid| are preserved exactly. Unreachable\ntargets (farther than l1+l2 or closer than |l1-l2|) are clamped cleanly along\nthe root-to-target axis without NaN or stretching. When one bone has zero length the other bone alone is aimed at the target; when both do, the chain is returned unchanged.\n\nReturned delta rotations satisfy:\n  - root.Add(rootRot.RotateVec3(mid.Sub(root))) == newMid\n  - newMid.Add(midRot.Mul(rootRot).RotateVec3(end.Sub(mid))) == newEnd\n",
          "file": "pkg/anim3d/ik.go",
          "line": 21
        },
        {
          "name": "SortClipEvents",
          "anchor": "SortClipEvents",
          "decl": "func SortClipEvents(events []ClipEvent)",
          "doc": "SortClipEvents stably sorts events in place by ascending Time.\n",
          "file": "pkg/anim3d/events.go",
          "line": 31
        }
      ],
      "types": [
        {
          "name": "AnimLayer",
          "anchor": "AnimLayer",
          "decl": "type AnimLayer struct {\n\tName          string\n\tMode          LayerBlendMode\n\tWeight        float32\n\tMask          *BoneMask\n\tClip          *Clip\n\tReferencePose *Pose\n\tSampler       PoseSampler\n\tTime          float32 // playback time in seconds when using Clip\n\tLoop          bool\n\tSpeed         float32 // playback speed multiplier; 0 defaults to 1.0\n}",
          "doc": "AnimLayer configures a single layer inside a LayerStack.\n\nIf Sampler is non-nil, it drives the layer's pose and time advancement;\notherwise Clip is sampled at Time (in seconds) with Loop and Speed.\nFor LayerAdditive layers, if ReferencePose is non-nil, MakeAdditivePose is\ncomputed relative to ReferencePose; if nil, the sampled pose is treated as an\nalready-delta additive pose (equivalently, relative to identity).\n\nWhen a layer plays a Clip, only the joints the clip has a track for take part: an override layer leaves the other joints at the pose below it, and an additive layer adds nothing to them.\n",
          "file": "pkg/anim3d/layers.go",
          "line": 233,
          "members": [
            {
              "name": "Name",
              "anchor": "AnimLayer.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "AnimLayer.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight",
              "anchor": "AnimLayer.Weight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "AnimLayer.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clip",
              "anchor": "AnimLayer.Clip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReferencePose",
              "anchor": "AnimLayer.ReferencePose",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sampler",
              "anchor": "AnimLayer.Sampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Time",
              "anchor": "AnimLayer.Time",
              "kind": "field",
              "doc": "playback time in seconds when using Clip"
            },
            {
              "name": "Loop",
              "anchor": "AnimLayer.Loop",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Speed",
              "anchor": "AnimLayer.Speed",
              "kind": "field",
              "doc": "playback speed multiplier; 0 defaults to 1.0"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BlendSample1D",
          "anchor": "BlendSample1D",
          "decl": "type BlendSample1D struct {\n\tParam           float32\n\tClip            *Clip\n\tFootPhaseOffset float32 // normalized in [0, 1)\n}",
          "doc": "BlendSample1D binds a clip and normalized foot-phase offset to a scalar\nparameter position in a BlendSpace1D.\n",
          "file": "pkg/anim3d/blendspace.go",
          "line": 102,
          "members": [
            {
              "name": "Param",
              "anchor": "BlendSample1D.Param",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clip",
              "anchor": "BlendSample1D.Clip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FootPhaseOffset",
              "anchor": "BlendSample1D.FootPhaseOffset",
              "kind": "field",
              "doc": "normalized in [0, 1)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BlendSample2D",
          "anchor": "BlendSample2D",
          "decl": "type BlendSample2D struct {\n\tX, Y            float32\n\tClip            *Clip\n\tFootPhaseOffset float32 // normalized in [0, 1)\n}",
          "doc": "BlendSample2D binds a clip and normalized foot-phase offset to a 2D point\n(e.g. speed/direction or strafe/forward) in a BlendSpace2D.\n",
          "file": "pkg/anim3d/blendspace.go",
          "line": 361,
          "members": [
            {
              "name": "X",
              "anchor": "BlendSample2D.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "BlendSample2D.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clip",
              "anchor": "BlendSample2D.Clip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FootPhaseOffset",
              "anchor": "BlendSample2D.FootPhaseOffset",
              "kind": "field",
              "doc": "normalized in [0, 1)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BlendSpace1D",
          "anchor": "BlendSpace1D",
          "decl": "type BlendSpace1D struct {\n\t// ParamName optionally names a StateMachine parameter to read when attached\n\t// to a State without an explicit State.ParamName.\n\tParamName string\n\t// Speed multiplies phase progression rate; 0 defaults to 1.0.\n\tSpeed float32\n\t// contains filtered or unexported fields\n}",
          "doc": "BlendSpace1D blends N clips sorted along a single scalar parameter with\nfoot-phase synchronization across clips of different durations.\n",
          "file": "pkg/anim3d/blendspace.go",
          "line": 110,
          "members": [
            {
              "name": "ParamName",
              "anchor": "BlendSpace1D.ParamName",
              "kind": "field",
              "doc": "ParamName optionally names a StateMachine parameter to read when attached\nto a State without an explicit State.ParamName."
            },
            {
              "name": "Speed",
              "anchor": "BlendSpace1D.Speed",
              "kind": "field",
              "doc": "Speed multiplies phase progression rate; 0 defaults to 1.0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBlendSpace1D",
              "anchor": "NewBlendSpace1D",
              "decl": "func NewBlendSpace1D(samples ...BlendSample1D) *BlendSpace1D",
              "doc": "NewBlendSpace1D creates a 1D blend space with samples sorted by ascending Param.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 124
            }
          ],
          "methods": [
            {
              "name": "CycleSpeed",
              "anchor": "BlendSpace1D.CycleSpeed",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) CycleSpeed(param float32) float32",
              "doc": "CycleSpeed returns the weighted normalized cycle speed sum(w_i / dur_i) in\ncycles per second at param.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 224
            },
            {
              "name": "Evaluate",
              "anchor": "BlendSpace1D.Evaluate",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) Evaluate(param float32, phase float32) Pose",
              "doc": "Evaluate samples the blend space at param and normalized phase without\nmutating internal state.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 239
            },
            {
              "name": "Param",
              "anchor": "BlendSpace1D.Param",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) Param() float32",
              "doc": "Param returns the current scalar parameter.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 157
            },
            {
              "name": "Phase",
              "anchor": "BlendSpace1D.Phase",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) Phase() float32",
              "doc": "Phase returns the current normalized cycle phase in [0, 1).\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 165
            },
            {
              "name": "Pose",
              "anchor": "BlendSpace1D.Pose",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) Pose() Pose",
              "doc": "Pose evaluates the blend space at its current Param and Phase without advancing time.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 299
            },
            {
              "name": "Reset",
              "anchor": "BlendSpace1D.Reset",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) Reset()",
              "doc": "Reset resets the normalized cycle phase back to 0.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 182
            },
            {
              "name": "Samples",
              "anchor": "BlendSpace1D.Samples",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) Samples() []BlendSample1D",
              "doc": "Samples returns a copy of the sorted samples in the blend space.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 139
            },
            {
              "name": "SetParam",
              "anchor": "BlendSpace1D.SetParam",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) SetParam(value float32)",
              "doc": "SetParam updates the active scalar parameter used by Update and Pose.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 149
            },
            {
              "name": "SetPhase",
              "anchor": "BlendSpace1D.SetPhase",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) SetPhase(phase float32)",
              "doc": "SetPhase sets the normalized cycle phase (wrapped into [0, 1)).\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 173
            },
            {
              "name": "Update",
              "anchor": "BlendSpace1D.Update",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) Update(dt time.Duration) Pose",
              "doc": "Update advances the synchronized foot phase by dt using the weighted cycle\nspeed at the current Param and returns the evaluated Pose.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 282
            },
            {
              "name": "Weights",
              "anchor": "BlendSpace1D.Weights",
              "recv": "*BlendSpace1D",
              "decl": "func (bs *BlendSpace1D) Weights(param float32) []float32",
              "doc": "Weights computes the normalized blend weights for param (clamped at endpoints). Samples that share the same Param split that position's weight equally.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 191
            }
          ]
        },
        {
          "name": "BlendSpace2D",
          "anchor": "BlendSpace2D",
          "decl": "type BlendSpace2D struct {\n\t// ParamXName and ParamYName optionally name StateMachine parameters to read\n\t// when attached to a State without explicit State.ParamXName / ParamYName.\n\tParamXName string\n\tParamYName string\n\t// Speed multiplies phase progression rate; 0 defaults to 1.0.\n\tSpeed float32\n\t// contains filtered or unexported fields\n}",
          "doc": "BlendSpace2D blends N clips in a 2D parameter space using Cartesian gradient-band\ninterpolation with normalized weights and foot-phase synchronization.\n",
          "file": "pkg/anim3d/blendspace.go",
          "line": 369,
          "members": [
            {
              "name": "ParamXName",
              "anchor": "BlendSpace2D.ParamXName",
              "kind": "field",
              "doc": "ParamXName and ParamYName optionally name StateMachine parameters to read\nwhen attached to a State without explicit State.ParamXName / ParamYName."
            },
            {
              "name": "ParamYName",
              "anchor": "BlendSpace2D.ParamYName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Speed",
              "anchor": "BlendSpace2D.Speed",
              "kind": "field",
              "doc": "Speed multiplies phase progression rate; 0 defaults to 1.0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBlendSpace2D",
              "anchor": "NewBlendSpace2D",
              "decl": "func NewBlendSpace2D(samples ...BlendSample2D) *BlendSpace2D",
              "doc": "NewBlendSpace2D creates a 2D blend space from the given samples.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 384
            }
          ],
          "methods": [
            {
              "name": "CycleSpeed",
              "anchor": "BlendSpace2D.CycleSpeed",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) CycleSpeed(x, y float32) float32",
              "doc": "CycleSpeed returns the weighted normalized cycle speed sum(w_i / dur_i) in\ncycles per second at (x, y).\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 537
            },
            {
              "name": "Evaluate",
              "anchor": "BlendSpace2D.Evaluate",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) Evaluate(x, y, phase float32) Pose",
              "doc": "Evaluate samples the 2D blend space at (x, y) and normalized phase without\nmutating internal state.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 554
            },
            {
              "name": "Params",
              "anchor": "BlendSpace2D.Params",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) Params() (x, y float32)",
              "doc": "Params returns the current (X, Y) coordinates.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 415
            },
            {
              "name": "Phase",
              "anchor": "BlendSpace2D.Phase",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) Phase() float32",
              "doc": "Phase returns the current normalized cycle phase in [0, 1).\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 423
            },
            {
              "name": "Pose",
              "anchor": "BlendSpace2D.Pose",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) Pose() Pose",
              "doc": "Pose evaluates the 2D blend space at its current (X, Y) and Phase without advancing time.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 596
            },
            {
              "name": "Reset",
              "anchor": "BlendSpace2D.Reset",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) Reset()",
              "doc": "Reset resets the normalized cycle phase back to 0.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 440
            },
            {
              "name": "Samples",
              "anchor": "BlendSpace2D.Samples",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) Samples() []BlendSample2D",
              "doc": "Samples returns a copy of the samples in the 2D blend space.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 396
            },
            {
              "name": "SetParams",
              "anchor": "BlendSpace2D.SetParams",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) SetParams(x, y float32)",
              "doc": "SetParams updates the active (X, Y) coordinates used by Update and Pose.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 406
            },
            {
              "name": "SetPhase",
              "anchor": "BlendSpace2D.SetPhase",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) SetPhase(phase float32)",
              "doc": "SetPhase sets the normalized cycle phase (wrapped into [0, 1)).\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 431
            },
            {
              "name": "Update",
              "anchor": "BlendSpace2D.Update",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) Update(dt time.Duration) Pose",
              "doc": "Update advances the synchronized foot phase by dt using the weighted cycle\nspeed at the current (X, Y) and returns the evaluated Pose.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 579
            },
            {
              "name": "Weights",
              "anchor": "BlendSpace2D.Weights",
              "recv": "*BlendSpace2D",
              "decl": "func (bs *BlendSpace2D) Weights(x, y float32) []float32",
              "doc": "Weights computes smooth normalized Cartesian gradient-band weights summing to 1\nfor query point (x, y). At any sample's exact position, that sample receives\nweight 1 (or equal shares if duplicate sample coordinates exist).\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 451
            }
          ]
        },
        {
          "name": "BoneMask",
          "anchor": "BoneMask",
          "decl": "type BoneMask struct {\n\tWeights []float32\n}",
          "doc": "BoneMask stores per-joint blend weights in [0, 1] used to restrict an\nanimation layer or additive pose to a subset of joints (e.g. upper body).\n",
          "file": "pkg/anim3d/layers.go",
          "line": 12,
          "members": [
            {
              "name": "Weights",
              "anchor": "BoneMask.Weights",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBoneMask",
              "anchor": "NewBoneMask",
              "decl": "func NewBoneMask(jointCount int, defaultWeight float32) *BoneMask",
              "doc": "NewBoneMask creates a BoneMask for jointCount joints initialized to\ndefaultWeight (clamped to [0, 1]).\n",
              "file": "pkg/anim3d/layers.go",
              "line": 18
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "BoneMask.Clone",
              "recv": "*BoneMask",
              "decl": "func (m *BoneMask) Clone() *BoneMask",
              "doc": "Clone returns a deep copy of m, or nil if m is nil.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 31
            },
            {
              "name": "SetBranch",
              "anchor": "BoneMask.SetBranch",
              "recv": "*BoneMask",
              "decl": "func (m *BoneMask) SetBranch(parents []int, rootJoint int, weight float32)",
              "doc": "SetBranch sets the blend weight (clamped to [0, 1]) for rootJoint and all of\nits descendants according to parents, where parents[j] is the parent joint\nindex of joint j (or < 0 for root joints).\n",
              "file": "pkg/anim3d/layers.go",
              "line": 65
            },
            {
              "name": "SetJoint",
              "anchor": "BoneMask.SetJoint",
              "recv": "*BoneMask",
              "decl": "func (m *BoneMask) SetJoint(idx int, weight float32)",
              "doc": "SetJoint sets the blend weight for a single joint, clamped to [0, 1].\nOut-of-range indices are ignored.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 55
            },
            {
              "name": "Weight",
              "anchor": "BoneMask.Weight",
              "recv": "*BoneMask",
              "decl": "func (m *BoneMask) Weight(idx int) float32",
              "doc": "Weight returns the clamped blend weight for joint idx.\nA nil BoneMask represents an unmasked weight of 1.0 for every joint.\nOut-of-range indices on a non-nil mask return 0.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 43
            }
          ]
        },
        {
          "name": "Clip",
          "anchor": "Clip",
          "decl": "type Clip struct {\n\tName       string\n\tDuration   time.Duration\n\tLoop       bool\n\tJointCount int\n\tTracks     []JointTrack\n\tEvents     []ClipEvent\n}",
          "doc": "Clip is a keyframed 3D skeletal animation clip.\n",
          "file": "pkg/anim3d/statemachine.go",
          "line": 87,
          "members": [
            {
              "name": "Name",
              "anchor": "Clip.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "Clip.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Loop",
              "anchor": "Clip.Loop",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "JointCount",
              "anchor": "Clip.JointCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tracks",
              "anchor": "Clip.Tracks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Events",
              "anchor": "Clip.Events",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ClipFromGLTF",
              "anchor": "ClipFromGLTF",
              "decl": "func ClipFromGLTF(doc *gltf.Document, animIndex int) (*Clip, error)",
              "doc": "ClipFromGLTF converts doc.Animations[animIndex] into an anim3d.Clip whose\nJointTrack indices match doc.Nodes indices (0..len(doc.Nodes)-1).\n\nFor every node targeted by the animation, any TRS component not driven by a\nchannel is seeded from that node's rest transform in doc so sampling preserves\nbone offsets and bind orientations. Untargeted nodes are omitted from Tracks\nso BoneMask and LayerStack overrides leave them untouched.\n\nCUBICSPLINE channels extract their keyframe values; use Player directly when\nexact STEP or CUBICSPLINE interpolation, morph target weights, or per-node\nworld and skin joint matrices are needed. Any timed events stored in the\nanimation's glTF extras (see LoadEventsFromGLTFExtras) are attached to the\nreturned Clip. Loop defaults to false.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 41
            },
            {
              "name": "ClipsFromGLTF",
              "anchor": "ClipsFromGLTF",
              "decl": "func ClipsFromGLTF(doc *gltf.Document) ([]*Clip, error)",
              "doc": "ClipsFromGLTF converts every animation in doc into an anim3d.Clip in document\norder.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 185
            }
          ],
          "methods": [
            {
              "name": "AddEvent",
              "anchor": "Clip.AddEvent",
              "recv": "*Clip",
              "decl": "func (c *Clip) AddEvent(ev ClipEvent)",
              "doc": "AddEvent appends ev to the clip's Events slice and keeps Events sorted by Time.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 97
            },
            {
              "name": "NormalizeTime",
              "anchor": "Clip.NormalizeTime",
              "recv": "*Clip",
              "decl": "func (c *Clip) NormalizeTime(t time.Duration) time.Duration",
              "doc": "NormalizeTime maps t into the clip's playable range: wrapped into [0, Duration)\nwhen Loop is true, or clamped to [0, Duration] otherwise.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 121
            },
            {
              "name": "Sample",
              "anchor": "Clip.Sample",
              "recv": "*Clip",
              "decl": "func (c *Clip) Sample(t time.Duration) Pose",
              "doc": "Sample evaluates the clip at time t and returns the resulting Pose.\nTranslations and scales are linearly interpolated; rotations use Quat.Slerp.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 139
            },
            {
              "name": "SampleJoint",
              "anchor": "Clip.SampleJoint",
              "recv": "*Clip",
              "decl": "func (c *Clip) SampleJoint(jointIndex int, t time.Duration) math3d.Transform",
              "doc": "SampleJoint evaluates a single joint's local transform at time t (normalized\naccording to the clip's Loop setting).\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 174
            }
          ]
        },
        {
          "name": "ClipEvent",
          "anchor": "ClipEvent",
          "decl": "type ClipEvent struct {\n\tTime    float32        `json:\"time\"`\n\tName    string         `json:\"name\"`\n\tPayload string         `json:\"payload,omitempty\"`\n\tData    map[string]any `json:\"data,omitempty\"`\n}",
          "doc": "ClipEvent marks a named gameplay or audio event at a specific time (in seconds)\nwithin an animation Clip.\n",
          "file": "pkg/anim3d/events.go",
          "line": 14,
          "members": [
            {
              "name": "Time",
              "anchor": "ClipEvent.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "ClipEvent.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Payload",
              "anchor": "ClipEvent.Payload",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "ClipEvent.Data",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CollectClipEvents",
              "anchor": "CollectClipEvents",
              "decl": "func CollectClipEvents(events []ClipEvent, prevTime, nextTime, duration float32, loop bool) []ClipEvent",
              "doc": "CollectClipEvents returns all events from events that trigger while advancing\nclip playback from prevTime to nextTime (both in seconds) for a clip of length\nduration (in seconds).\n\nEvents fire strictly once per playback across normal steps, multi-frame skips\n(including spans exceeding duration), and loop wrap-arounds. Both wrapped\nplayback timestamps (nextTime < prevTime when loop is true) and unwrapped\nmonotonic timestamps (nextTime >= duration) are handled cleanly.\n\nBoundary semantics prevent double-firing at loop seams:\n  - Events at Time == 0 fire on [prev, next) (i.e. at loop start when playback\n    advances past 0 or crosses a loop boundary into the new loop).\n  - Events at 0 < Time <= duration fire on (prev, next] (i.e. on the step\n    that reaches or crosses Time, including Time == duration at loop end).\n",
              "file": "pkg/anim3d/events.go",
              "line": 51
            }
          ],
          "methods": []
        },
        {
          "name": "EventDispatcher",
          "anchor": "EventDispatcher",
          "decl": "type EventDispatcher struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "EventDispatcher collects FiredEvents and dispatches them to registered\ncallbacks and an internal queue drained via Drain.\n",
          "file": "pkg/anim3d/events.go",
          "line": 187,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewEventDispatcher",
              "anchor": "NewEventDispatcher",
              "decl": "func NewEventDispatcher() *EventDispatcher",
              "doc": "NewEventDispatcher creates an empty EventDispatcher.\n",
              "file": "pkg/anim3d/events.go",
              "line": 193
            }
          ],
          "methods": [
            {
              "name": "Clear",
              "anchor": "EventDispatcher.Clear",
              "recv": "*EventDispatcher",
              "decl": "func (d *EventDispatcher) Clear()",
              "doc": "Clear discards all queued FiredEvents.\n",
              "file": "pkg/anim3d/events.go",
              "line": 265
            },
            {
              "name": "DispatchClip",
              "anchor": "EventDispatcher.DispatchClip",
              "recv": "*EventDispatcher",
              "decl": "func (d *EventDispatcher) DispatchClip(clip *Clip, stateName string, prevTime, nextTime, weight float32) []FiredEvent",
              "doc": "DispatchClip collects events on clip in the interval [prevTime, nextTime]\n(in seconds), wraps each as a FiredEvent with stateName and weight, emits\nthem through d, and returns the fired slice.\n",
              "file": "pkg/anim3d/events.go",
              "line": 219
            },
            {
              "name": "Drain",
              "anchor": "EventDispatcher.Drain",
              "recv": "*EventDispatcher",
              "decl": "func (d *EventDispatcher) Drain() []FiredEvent",
              "doc": "Drain returns all queued FiredEvents since the last Drain and clears the queue.\n",
              "file": "pkg/anim3d/events.go",
              "line": 244
            },
            {
              "name": "Emit",
              "anchor": "EventDispatcher.Emit",
              "recv": "*EventDispatcher",
              "decl": "func (d *EventDispatcher) Emit(ev FiredEvent)",
              "doc": "Emit appends ev to the pending queue and notifies all registered listeners.\n",
              "file": "pkg/anim3d/events.go",
              "line": 206
            },
            {
              "name": "OnEvent",
              "anchor": "EventDispatcher.OnEvent",
              "recv": "*EventDispatcher",
              "decl": "func (d *EventDispatcher) OnEvent(fn func(FiredEvent))",
              "doc": "OnEvent registers a listener invoked synchronously whenever an event is emitted.\n",
              "file": "pkg/anim3d/events.go",
              "line": 198
            },
            {
              "name": "Pending",
              "anchor": "EventDispatcher.Pending",
              "recv": "*EventDispatcher",
              "decl": "func (d *EventDispatcher) Pending() []FiredEvent",
              "doc": "Pending returns a copy of queued FiredEvents without clearing the queue.\n",
              "file": "pkg/anim3d/events.go",
              "line": 255
            }
          ]
        },
        {
          "name": "FiredEvent",
          "anchor": "FiredEvent",
          "decl": "type FiredEvent struct {\n\tEvent  ClipEvent\n\tState  string\n\tClip   string\n\tWeight float32\n}",
          "doc": "FiredEvent records a ClipEvent emitted during animation playback along with\nthe state name, clip name, and active blend weight at the time it fired.\n",
          "file": "pkg/anim3d/events.go",
          "line": 23,
          "members": [
            {
              "name": "Event",
              "anchor": "FiredEvent.Event",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "FiredEvent.State",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clip",
              "anchor": "FiredEvent.Clip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight",
              "anchor": "FiredEvent.Weight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "JointTrack",
          "anchor": "JointTrack",
          "decl": "type JointTrack struct {\n\tJointIndex   int\n\tTranslations []Vec3Keyframe\n\tRotations    []QuatKeyframe\n\tScales       []Vec3Keyframe\n}",
          "doc": "JointTrack stores keyframed local TRS channels for a single joint.\nKeyframes in each channel must be ordered by ascending Time. Any empty channel\nfalls back to the corresponding identity component.\n",
          "file": "pkg/anim3d/statemachine.go",
          "line": 79,
          "members": [
            {
              "name": "JointIndex",
              "anchor": "JointTrack.JointIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Translations",
              "anchor": "JointTrack.Translations",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotations",
              "anchor": "JointTrack.Rotations",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scales",
              "anchor": "JointTrack.Scales",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayerBlendMode",
          "anchor": "LayerBlendMode",
          "decl": "type LayerBlendMode int",
          "doc": "LayerBlendMode controls how an AnimLayer combines with lower layers in a LayerStack.\n",
          "file": "pkg/anim3d/layers.go",
          "line": 91,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LayerOverride",
                  "anchor": "LayerOverride"
                },
                {
                  "name": "LayerAdditive",
                  "anchor": "LayerAdditive"
                }
              ],
              "decl": "const (\n\t// LayerOverride blends the layer pose over the accumulated pose using\n\t// linear interpolation for translation/scale and Slerp for rotation.\n\tLayerOverride LayerBlendMode = iota\n\t// LayerAdditive applies the layer pose as an additive delta over the\n\t// accumulated pose.\n\tLayerAdditive\n)",
              "doc": "",
              "file": "pkg/anim3d/layers.go",
              "line": 93
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayerStack",
          "anchor": "LayerStack",
          "decl": "type LayerStack struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "LayerStack composes multiple ordered AnimLayers (base locomotion, masked\nupper-body overrides, and parameterized additive layers) into a single Pose.\n",
          "file": "pkg/anim3d/layers.go",
          "line": 248,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLayerStack",
              "anchor": "NewLayerStack",
              "decl": "func NewLayerStack(jointCount int) *LayerStack",
              "doc": "NewLayerStack creates an empty LayerStack targeting skeletons with jointCount joints.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 254
            }
          ],
          "methods": [
            {
              "name": "AddLayer",
              "anchor": "LayerStack.AddLayer",
              "recv": "*LayerStack",
              "decl": "func (ls *LayerStack) AddLayer(layer AnimLayer)",
              "doc": "AddLayer appends a layer to the top of the stack.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 264
            },
            {
              "name": "Evaluate",
              "anchor": "LayerStack.Evaluate",
              "recv": "*LayerStack",
              "decl": "func (ls *LayerStack) Evaluate() Pose",
              "doc": "Evaluate composes all active layers at their current times without advancing playback.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 356
            },
            {
              "name": "Layer",
              "anchor": "LayerStack.Layer",
              "recv": "*LayerStack",
              "decl": "func (ls *LayerStack) Layer(name string) *AnimLayer",
              "doc": "Layer returns a pointer to the first layer matching name, or nil if not found.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 272
            },
            {
              "name": "LayerWeight",
              "anchor": "LayerStack.LayerWeight",
              "recv": "*LayerStack",
              "decl": "func (ls *LayerStack) LayerWeight(name string) float32",
              "doc": "LayerWeight returns the current Weight of the named layer, or 0 if not found.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 310
            },
            {
              "name": "Pose",
              "anchor": "LayerStack.Pose",
              "recv": "*LayerStack",
              "decl": "func (ls *LayerStack) Pose() Pose",
              "doc": "Pose evaluates the composed layer stack without advancing time (implements PoseSampler).\n",
              "file": "pkg/anim3d/layers.go",
              "line": 414
            },
            {
              "name": "RemoveLayer",
              "anchor": "LayerStack.RemoveLayer",
              "recv": "*LayerStack",
              "decl": "func (ls *LayerStack) RemoveLayer(name string) bool",
              "doc": "RemoveLayer removes the first layer matching name. It returns true if removed.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 285
            },
            {
              "name": "SetLayerWeight",
              "anchor": "LayerStack.SetLayerWeight",
              "recv": "*LayerStack",
              "decl": "func (ls *LayerStack) SetLayerWeight(name string, weight float32) bool",
              "doc": "SetLayerWeight updates the Weight of the named layer (clamped to [0, 1]).\nIt returns false if no layer with name exists.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 300
            },
            {
              "name": "Update",
              "anchor": "LayerStack.Update",
              "recv": "*LayerStack",
              "decl": "func (ls *LayerStack) Update(dt time.Duration) Pose",
              "doc": "Update advances all layers by dt and returns the composed Pose.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 319
            }
          ]
        },
        {
          "name": "Player",
          "anchor": "Player",
          "decl": "type Player struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Player drives glTF 2.0 node animation playback on fixed time.Duration steps\nmatching game.Loop.Update.\n\nPlayer evaluates translation, rotation (shortest-path quaternion Slerp for\nLINEAR and Hermite spline normalization for CUBICSPLINE), scale, and morph\ntarget weight channels across STEP, LINEAR, and CUBICSPLINE interpolation\nmodes. It maintains its own per-instance node transforms and world matrices\nwithout mutating the underlying *gltf.Document, allowing multiple Players to\nanimate the same loaded asset independently.\n\nPlayer also implements PoseSampler via Update and Pose.\n",
          "file": "pkg/anim3d/playback.go",
          "line": 211,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPlayer",
              "anchor": "NewPlayer",
              "decl": "func NewPlayer(doc *gltf.Document) (*Player, error)",
              "doc": "NewPlayer creates a Player bound to doc's node hierarchy, skins, and\nanimations. The player validates the node hierarchy (rejecting out-of-range\nchildren, multiple parents, and cycles), initializes all node transforms to\ndoc's bind pose, and computes initial world matrices without mutating doc.\n\nLoop defaults to true and Speed defaults to 1.0. If doc contains animations,\nanimation 0 is selected in the stopped state until Play or Crossfade is\ncalled.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 261
            }
          ],
          "methods": [
            {
              "name": "AnimationIndex",
              "anchor": "Player.AnimationIndex",
              "recv": "*Player",
              "decl": "func (p *Player) AnimationIndex() int",
              "doc": "AnimationIndex returns the active animation index, or -1 if doc has no\nanimations.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 585
            },
            {
              "name": "AnimationName",
              "anchor": "Player.AnimationName",
              "recv": "*Player",
              "decl": "func (p *Player) AnimationName() string",
              "doc": "AnimationName returns the name of the active animation, or \"\" if none is\nactive or the animation is unnamed.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 594
            },
            {
              "name": "ApplyToNodes",
              "anchor": "Player.ApplyToNodes",
              "recv": "*Player",
              "decl": "func (p *Player) ApplyToNodes(nodes []*scene3d.Node) int",
              "doc": "ApplyToNodes copies current local TRS transforms by index onto nodes (where\nnodes[i] corresponds to doc.Nodes[i]) and returns the number of non-nil nodes\nupdated.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 811
            },
            {
              "name": "ApplyToScene",
              "anchor": "Player.ApplyToScene",
              "recv": "*Player",
              "decl": "func (p *Player) ApplyToScene(scene *scene3d.Scene) int",
              "doc": "ApplyToScene copies current local TRS transforms onto nodes in scene whose\nName matches a named node in the glTF document, refreshes scene transforms,\nand returns the number of scene nodes updated.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 776
            },
            {
              "name": "Crossfade",
              "anchor": "Player.Crossfade",
              "recv": "*Player",
              "decl": "func (p *Player) Crossfade(animIndex int, duration time.Duration) error",
              "doc": "Crossfade smoothly blends from the current pose into doc.Animations[animIndex]\nover duration.\n\nIf duration <= 0, no animation is active yet, or animIndex is already the\nactive animation, Crossfade switches immediately and resets Time to 0.\nInterrupting an in-progress crossfade snapshots the current blended pose so\ntransitions never pop.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 395
            },
            {
              "name": "CrossfadeByName",
              "anchor": "Player.CrossfadeByName",
              "recv": "*Player",
              "decl": "func (p *Player) CrossfadeByName(name string, duration time.Duration) error",
              "doc": "CrossfadeByName finds the first animation in doc whose Name equals name and\ncalls Crossfade on it over duration.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 436
            },
            {
              "name": "CrossfadeProgress",
              "anchor": "Player.CrossfadeProgress",
              "recv": "*Player",
              "decl": "func (p *Player) CrossfadeProgress() float32",
              "doc": "CrossfadeProgress returns the normalized crossfade blend weight in [0, 1],\nor 1 when no crossfade is active.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 628
            },
            {
              "name": "Duration",
              "anchor": "Player.Duration",
              "recv": "*Player",
              "decl": "func (p *Player) Duration() time.Duration",
              "doc": "Duration returns the duration of the active animation, or 0 if none is\nactive.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 611
            },
            {
              "name": "IsCrossfading",
              "anchor": "Player.IsCrossfading",
              "recv": "*Player",
              "decl": "func (p *Player) IsCrossfading() bool",
              "doc": "IsCrossfading reports whether a crossfade transition is in progress.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 619
            },
            {
              "name": "LocalTransform",
              "anchor": "Player.LocalTransform",
              "recv": "*Player",
              "decl": "func (p *Player) LocalTransform(nodeIndex int) math3d.Transform",
              "doc": "LocalTransform returns the current local TRS transform for nodeIndex, or\nTransformIdentity if nodeIndex is out of range.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 645
            },
            {
              "name": "LocalTransforms",
              "anchor": "Player.LocalTransforms",
              "recv": "*Player",
              "decl": "func (p *Player) LocalTransforms() []math3d.Transform",
              "doc": "LocalTransforms returns a copy of every node's current local TRS transform.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 653
            },
            {
              "name": "Loop",
              "anchor": "Player.Loop",
              "recv": "*Player",
              "decl": "func (p *Player) Loop() bool",
              "doc": "Loop reports whether playback wraps at animation boundaries.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 550
            },
            {
              "name": "MorphWeights",
              "anchor": "Player.MorphWeights",
              "recv": "*Player",
              "decl": "func (p *Player) MorphWeights(nodeIndex int) []float32",
              "doc": "MorphWeights returns a copy of the current morph target weights for\nnodeIndex, or nil if nodeIndex has no morph weights or is out of range.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 684
            },
            {
              "name": "NodeCount",
              "anchor": "Player.NodeCount",
              "recv": "*Player",
              "decl": "func (p *Player) NodeCount() int",
              "doc": "NodeCount returns the number of nodes tracked by the player.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 636
            },
            {
              "name": "Pause",
              "anchor": "Player.Pause",
              "recv": "*Player",
              "decl": "func (p *Player) Pause()",
              "doc": "Pause halts playback while keeping the current Time, pose, and world\ntransforms intact.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 446
            },
            {
              "name": "Play",
              "anchor": "Player.Play",
              "recv": "*Player",
              "decl": "func (p *Player) Play(animIndex int) error",
              "doc": "Play starts or resumes playback of doc.Animations[animIndex].\n\nSwitching to a different animation resets Time to 0 and cancels any active\ncrossfade. Calling Play with the already-selected animation resumes from the\ncurrent Time if paused, or replays from the start if a non-looping clip has\nalready finished. The pose and world transforms are evaluated immediately.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 352
            },
            {
              "name": "PlayByName",
              "anchor": "Player.PlayByName",
              "recv": "*Player",
              "decl": "func (p *Player) PlayByName(name string) error",
              "doc": "PlayByName finds the first animation in doc whose Name equals name and calls\nPlay on it.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 380
            },
            {
              "name": "Playing",
              "anchor": "Player.Playing",
              "recv": "*Player",
              "decl": "func (p *Player) Playing() bool",
              "doc": "Playing reports whether the player is actively advancing on Step calls.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 576
            },
            {
              "name": "Pose",
              "anchor": "Player.Pose",
              "recv": "*Player",
              "decl": "func (p *Player) Pose() Pose",
              "doc": "Pose returns a snapshot of every node's current local TRS transform.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 531
            },
            {
              "name": "Seek",
              "anchor": "Player.Seek",
              "recv": "*Player",
              "decl": "func (p *Player) Seek(t time.Duration)",
              "doc": "Seek moves playback to t (wrapped into [0, Duration) when Loop is true, or\nclamped to [0, Duration] otherwise) and immediately re-evaluates node\ntransforms and world matrices without changing Playing.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 469
            },
            {
              "name": "SetLoop",
              "anchor": "Player.SetLoop",
              "recv": "*Player",
              "decl": "func (p *Player) SetLoop(loop bool)",
              "doc": "SetLoop controls whether playback wraps at animation boundaries (true) or\nclamps and stops at the end (false).\n",
              "file": "pkg/anim3d/playback.go",
              "line": 542
            },
            {
              "name": "SetSpeed",
              "anchor": "Player.SetSpeed",
              "recv": "*Player",
              "decl": "func (p *Player) SetSpeed(speed float32)",
              "doc": "SetSpeed sets the playback speed multiplier. Negative values play in reverse;\n0 freezes animation time while leaving crossfades able to finish. Non-finite\nvalues are ignored.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 560
            },
            {
              "name": "SkinMatrices",
              "anchor": "Player.SkinMatrices",
              "recv": "*Player",
              "decl": "func (p *Player) SkinMatrices(skinIndex int) ([]math3d.Mat4, error)",
              "doc": "SkinMatrices computes the glTF 2.0 joint skinning matrices for\ndoc.Skins[skinIndex]:\n\n\tjointMatrix[i] = inverse(worldMatrix[meshNode]) * worldMatrix[joint[i]] * inverseBindMatrix[i]\n\nwhere meshNode is the first node in doc.Nodes referencing skinIndex. If no\nnode references skinIndex (or the mesh node's world matrix is singular),\ninverse(worldMatrix[meshNode]) is omitted and worldMatrix[joint[i]] *\ninverseBindMatrix[i] is returned directly.\n\nUse SkinMatricesForNode when multiple mesh nodes share the same skin index.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 704
            },
            {
              "name": "SkinMatricesForNode",
              "anchor": "Player.SkinMatricesForNode",
              "recv": "*Player",
              "decl": "func (p *Player) SkinMatricesForNode(meshNodeIndex int) ([]math3d.Mat4, error)",
              "doc": "SkinMatricesForNode computes the glTF 2.0 joint skinning matrices for the\nskin attached to doc.Nodes[meshNodeIndex], normalizing joint world matrices\nby inverse(worldMatrix[meshNodeIndex]).\n",
              "file": "pkg/anim3d/playback.go",
              "line": 725
            },
            {
              "name": "Speed",
              "anchor": "Player.Speed",
              "recv": "*Player",
              "decl": "func (p *Player) Speed() float32",
              "doc": "Speed returns the current playback speed multiplier.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 568
            },
            {
              "name": "Step",
              "anchor": "Player.Step",
              "recv": "*Player",
              "decl": "func (p *Player) Step(dt time.Duration)",
              "doc": "Step advances playback and any active crossfade by dt (matching\ngame.Loop.Update) and recomputes local node transforms and world matrices.\n\nWhen paused, stopped, or given dt <= 0, Step is a no-op.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 493
            },
            {
              "name": "Stop",
              "anchor": "Player.Stop",
              "recv": "*Player",
              "decl": "func (p *Player) Stop()",
              "doc": "Stop halts playback, resets Time to 0, cancels any active crossfade, and\nrestores all nodes to their rest (bind) pose.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 455
            },
            {
              "name": "Time",
              "anchor": "Player.Time",
              "recv": "*Player",
              "decl": "func (p *Player) Time() time.Duration",
              "doc": "Time returns the current playback timestamp of the active animation.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 602
            },
            {
              "name": "Update",
              "anchor": "Player.Update",
              "recv": "*Player",
              "decl": "func (p *Player) Update(dt time.Duration) Pose",
              "doc": "Update advances playback by dt and returns the resulting node local Pose,\nimplementing PoseSampler.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 525
            },
            {
              "name": "WorldTransform",
              "anchor": "Player.WorldTransform",
              "recv": "*Player",
              "decl": "func (p *Player) WorldTransform(nodeIndex int) math3d.Mat4",
              "doc": "WorldTransform returns the current world-space 4x4 matrix for nodeIndex, or\nMat4Identity if nodeIndex is out of range.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 664
            },
            {
              "name": "WorldTransforms",
              "anchor": "Player.WorldTransforms",
              "recv": "*Player",
              "decl": "func (p *Player) WorldTransforms() []math3d.Mat4",
              "doc": "WorldTransforms returns a copy of every node's current world-space 4x4\ntransformation matrix.\n",
              "file": "pkg/anim3d/playback.go",
              "line": 673
            }
          ]
        },
        {
          "name": "Pose",
          "anchor": "Pose",
          "decl": "type Pose struct {\n\tJoints []math3d.Transform\n}",
          "doc": "Pose holds local TRS transforms for each joint in a skeleton.\n",
          "file": "pkg/anim3d/statemachine.go",
          "line": 12,
          "members": [
            {
              "name": "Joints",
              "anchor": "Pose.Joints",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ApplyAdditivePose",
              "anchor": "ApplyAdditivePose",
              "decl": "func ApplyAdditivePose(base Pose, additive Pose, strength float32, mask *BoneMask) Pose",
              "doc": "ApplyAdditivePose applies an additive delta pose onto base, scaled by strength\n(clamped to [0, 1]) and multiplied per joint by mask (if non-nil).\n  - Pos:   base.Pos + additive.Pos * w\n  - Rot:   Slerp(Identity, additive.Rot, w) * base.Rot\n  - Scale: base.Scale * Lerp(Vec3One, additive.Scale, w)\n",
              "file": "pkg/anim3d/layers.go",
              "line": 152
            },
            {
              "name": "BlendPoses",
              "anchor": "BlendPoses",
              "decl": "func BlendPoses(a, b Pose, t float32) Pose",
              "doc": "BlendPoses interpolates between poses a (t=0) and b (t=1), clamping t to [0, 1].\nTranslation and scale are linearly interpolated; rotations use shortest-path Slerp.\nIf a and b have different joint counts, missing joints default to TransformIdentity.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 42
            },
            {
              "name": "BlendPosesMasked",
              "anchor": "BlendPosesMasked",
              "decl": "func BlendPosesMasked(base, overlay Pose, weight float32, mask *BoneMask) Pose",
              "doc": "BlendPosesMasked blends overlay over base by weight (clamped to [0, 1])\nmultiplied per joint by mask (if non-nil). A joint that overlay does not have (past len(overlay.Joints)) keeps the base transform rather than blending toward identity.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 190
            },
            {
              "name": "BlendPosesWeighted",
              "anchor": "BlendPosesWeighted",
              "decl": "func BlendPosesWeighted(poses []Pose, weights []float32) Pose",
              "doc": "BlendPosesWeighted blends poses using the corresponding non-negative weights.\nWeights are normalized internally so their sum equals 1. Translation and scale\nare linearly weighted; rotations use hemisphere-aligned normalized quaternion\nblending so the result is smooth and order-independent.\n",
              "file": "pkg/anim3d/blendspace.go",
              "line": 22
            },
            {
              "name": "MakeAdditivePose",
              "anchor": "MakeAdditivePose",
              "decl": "func MakeAdditivePose(target Pose, reference Pose) Pose",
              "doc": "MakeAdditivePose computes the exact additive delta pose transforming reference\ninto target:\n  - Pos:   target.Pos - reference.Pos\n  - Rot:   target.Rot * reference.Rot.Conj() (normalized)\n  - Scale: component-wise target.Scale / reference.Scale (1 when reference scale is 0)\n\nA joint that target does not have (past len(target.Joints)) gets the identity delta, so it leaves the base pose unchanged instead of applying the negated reference.\n",
              "file": "pkg/anim3d/layers.go",
              "line": 109
            },
            {
              "name": "NewPose",
              "anchor": "NewPose",
              "decl": "func NewPose(jointCount int) Pose",
              "doc": "NewPose returns a Pose with jointCount joints initialized to identity transforms.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 17
            },
            {
              "name": "StripRootMotion",
              "anchor": "StripRootMotion",
              "decl": "func StripRootMotion(pose Pose, opts RootMotionOptions) Pose",
              "doc": "StripRootMotion returns a copy of pose with the configured root translation\nand/or rotation channels removed from opts.RootJoint so world-space movement\nis driven exclusively by the extracted RootMotion.\n",
              "file": "pkg/anim3d/rootmotion.go",
              "line": 97
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Pose.Clone",
              "recv": "Pose",
              "decl": "func (p Pose) Clone() Pose",
              "doc": "Clone returns a deep copy of p.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 30
            }
          ]
        },
        {
          "name": "PoseSampler",
          "anchor": "PoseSampler",
          "decl": "type PoseSampler interface {\n\tUpdate(dt time.Duration) Pose\n\tPose() Pose\n}",
          "doc": "PoseSampler is implemented by animated pose sources that advance with dt and\nevaluate to a Pose (such as BlendSpace1D, BlendSpace2D, LayerStack, and StateMachine).\n",
          "file": "pkg/anim3d/blendspace.go",
          "line": 13,
          "members": [
            {
              "name": "Update",
              "anchor": "PoseSampler.Update",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Pose",
              "anchor": "PoseSampler.Pose",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "QuatKeyframe",
          "anchor": "QuatKeyframe",
          "decl": "type QuatKeyframe struct {\n\tTime  time.Duration\n\tValue math3d.Quat\n}",
          "doc": "QuatKeyframe is a timed rotation sample for a joint orientation channel.\n",
          "file": "pkg/anim3d/statemachine.go",
          "line": 71,
          "members": [
            {
              "name": "Time",
              "anchor": "QuatKeyframe.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "QuatKeyframe.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RootMotion",
          "anchor": "RootMotion",
          "decl": "type RootMotion struct {\n\tDeltaPos math3d.Vec3\n\tDeltaRot math3d.Quat\n}",
          "doc": "RootMotion holds the per-step root displacement extracted from an animation clip.\n",
          "file": "pkg/anim3d/rootmotion.go",
          "line": 10,
          "members": [
            {
              "name": "DeltaPos",
              "anchor": "RootMotion.DeltaPos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaRot",
              "anchor": "RootMotion.DeltaRot",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ExtractRootMotion",
              "anchor": "ExtractRootMotion",
              "decl": "func ExtractRootMotion(clip *Clip, prevTime, currTime time.Duration, opts RootMotionOptions) RootMotion",
              "doc": "ExtractRootMotion extracts the root joint's translation delta (DeltaPos) and\nrotation delta (DeltaRot) across the interval [prevTime, currTime].\n\nFor looping clips, loop wrap-around is handled cleanly without backward jumps whether the caller passes already-wrapped playback times (currTime < prevTime) or monotonic unwrapped times (currTime >= clip.Duration). A step that crosses one or more loop boundaries is split at each boundary and the pieces are composed in playback order, so its DeltaRot equals the rotation of applying the pieces one after another with ApplyRootMotion, also for clips that pitch and yaw at once.\n",
              "file": "pkg/anim3d/rootmotion.go",
              "line": 37
            }
          ],
          "methods": []
        },
        {
          "name": "RootMotionOptions",
          "anchor": "RootMotionOptions",
          "decl": "type RootMotionOptions struct {\n\t// RootJoint is the joint index carrying root motion (default 0).\n\tRootJoint int\n\t// ExtractYawOnly projects DeltaRot onto the world +Y yaw axis so pitch and\n\t// roll remain purely visual on the animated skeleton.\n\tExtractYawOnly bool\n\t// StripRootXZ zeroes the root joint's X and Z translation in StripRootMotion\n\t// (keeping Y vertical motion on the skeleton) so characters can drive their\n\t// world transform from DeltaPos without double-translating.\n\tStripRootXZ bool\n\t// StripRootY zeroes the root joint's Y translation in StripRootMotion.\n\tStripRootY bool\n\t// StripRootRot removes the extracted root rotation from the root joint in\n\t// StripRootMotion.\n\tStripRootRot bool\n}",
          "doc": "RootMotionOptions configures root motion extraction and pose stripping.\n",
          "file": "pkg/anim3d/rootmotion.go",
          "line": 16,
          "members": [
            {
              "name": "RootJoint",
              "anchor": "RootMotionOptions.RootJoint",
              "kind": "field",
              "doc": "RootJoint is the joint index carrying root motion (default 0)."
            },
            {
              "name": "ExtractYawOnly",
              "anchor": "RootMotionOptions.ExtractYawOnly",
              "kind": "field",
              "doc": "ExtractYawOnly projects DeltaRot onto the world +Y yaw axis so pitch and\nroll remain purely visual on the animated skeleton."
            },
            {
              "name": "StripRootXZ",
              "anchor": "RootMotionOptions.StripRootXZ",
              "kind": "field",
              "doc": "StripRootXZ zeroes the root joint's X and Z translation in StripRootMotion\n(keeping Y vertical motion on the skeleton) so characters can drive their\nworld transform from DeltaPos without double-translating."
            },
            {
              "name": "StripRootY",
              "anchor": "RootMotionOptions.StripRootY",
              "kind": "field",
              "doc": "StripRootY zeroes the root joint's Y translation in StripRootMotion."
            },
            {
              "name": "StripRootRot",
              "anchor": "RootMotionOptions.StripRootRot",
              "kind": "field",
              "doc": "StripRootRot removes the extracted root rotation from the root joint in\nStripRootMotion."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "State",
          "anchor": "State",
          "decl": "type State struct {\n\tName       string\n\tClip       *Clip\n\tBlend1D    *BlendSpace1D\n\tBlend2D    *BlendSpace2D\n\tSampler    PoseSampler\n\tParamName  string  // optional StateMachine parameter name for Blend1D\n\tParamXName string  // optional StateMachine X parameter name for Blend2D\n\tParamYName string  // optional StateMachine Y parameter name for Blend2D\n\tSpeed      float32 // playback speed multiplier; 0 defaults to 1.0\n}",
          "doc": "State binds a named state in a StateMachine to an animation Clip, a\nBlendSpace1D, a BlendSpace2D, or a custom PoseSampler.\n\nResolution priority when more than one pose source is populated is:\nBlend1D > Blend2D > Sampler > Clip.\n",
          "file": "pkg/anim3d/statemachine.go",
          "line": 283,
          "members": [
            {
              "name": "Name",
              "anchor": "State.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clip",
              "anchor": "State.Clip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blend1D",
              "anchor": "State.Blend1D",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blend2D",
              "anchor": "State.Blend2D",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sampler",
              "anchor": "State.Sampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParamName",
              "anchor": "State.ParamName",
              "kind": "field",
              "doc": "optional StateMachine parameter name for Blend1D"
            },
            {
              "name": "ParamXName",
              "anchor": "State.ParamXName",
              "kind": "field",
              "doc": "optional StateMachine X parameter name for Blend2D"
            },
            {
              "name": "ParamYName",
              "anchor": "State.ParamYName",
              "kind": "field",
              "doc": "optional StateMachine Y parameter name for Blend2D"
            },
            {
              "name": "Speed",
              "anchor": "State.Speed",
              "kind": "field",
              "doc": "playback speed multiplier; 0 defaults to 1.0"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "StateMachine",
          "anchor": "StateMachine",
          "decl": "type StateMachine struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "StateMachine drives 3D skeletal clip and blend-space playback, event dispatch,\nand smooth crossfades between named animation states on fixed Update steps.\n",
          "file": "pkg/anim3d/statemachine.go",
          "line": 306,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewStateMachine",
              "anchor": "NewStateMachine",
              "decl": "func NewStateMachine(initialState string) *StateMachine",
              "doc": "NewStateMachine creates a StateMachine starting in initialState.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 327
            }
          ],
          "methods": [
            {
              "name": "AddState",
              "anchor": "StateMachine.AddState",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) AddState(state State)",
              "doc": "AddState registers or replaces a named state. If the machine has no active\nstate yet, state.Name becomes the current state.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 337
            },
            {
              "name": "AddTransition",
              "anchor": "StateMachine.AddTransition",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) AddTransition(tr Transition)",
              "doc": "AddTransition appends a conditional transition evaluated in registration order.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 348
            },
            {
              "name": "BlendProgress",
              "anchor": "StateMachine.BlendProgress",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) BlendProgress() float32",
              "doc": "BlendProgress returns the normalized crossfade weight in [0, 1]. It returns 1\nwhen no crossfade is active.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 442
            },
            {
              "name": "CurrentState",
              "anchor": "StateMachine.CurrentState",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) CurrentState() string",
              "doc": "CurrentState returns the name of the active (or target, while blending) state.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 423
            },
            {
              "name": "CurrentTime",
              "anchor": "StateMachine.CurrentTime",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) CurrentTime() time.Duration",
              "doc": "CurrentTime returns the playback time of the current state's clip.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 435
            },
            {
              "name": "DrainEvents",
              "anchor": "StateMachine.DrainEvents",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) DrainEvents() []FiredEvent",
              "doc": "DrainEvents returns all FiredEvents collected since the last DrainEvents call\nand clears the internal event buffer.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 377
            },
            {
              "name": "EventWeightThreshold",
              "anchor": "StateMachine.EventWeightThreshold",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) EventWeightThreshold() float32",
              "doc": "EventWeightThreshold returns the configured minimum blend weight threshold\nfor event firing.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 390
            },
            {
              "name": "IsBlending",
              "anchor": "StateMachine.IsBlending",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) IsBlending() bool",
              "doc": "IsBlending reports whether a crossfade transition is currently in progress.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 438
            },
            {
              "name": "OnEvent",
              "anchor": "StateMachine.OnEvent",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) OnEvent(fn func(FiredEvent))",
              "doc": "OnEvent registers a callback invoked synchronously whenever an animation event\nfires during Update.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 371
            },
            {
              "name": "Param",
              "anchor": "StateMachine.Param",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Param(name string) float32",
              "doc": "Param returns the value of the named float32 parameter, or 0 if unset.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 362
            },
            {
              "name": "Pose",
              "anchor": "StateMachine.Pose",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Pose() Pose",
              "doc": "Pose evaluates the current state's pose (or blended pose during a crossfade)\nwithout advancing time.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 526
            },
            {
              "name": "PreviousState",
              "anchor": "StateMachine.PreviousState",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) PreviousState() string",
              "doc": "PreviousState returns the name of the state being blended out of, or \"\" when\nnot blending.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 427
            },
            {
              "name": "Restart",
              "anchor": "StateMachine.Restart",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Restart(name string, blendDuration time.Duration) bool",
              "doc": "Restart replays a state from its beginning, crossfading from itself when\nname is the current state and blendDuration is positive.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 411
            },
            {
              "name": "SetEventWeightThreshold",
              "anchor": "StateMachine.SetEventWeightThreshold",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) SetEventWeightThreshold(minWeight float32)",
              "doc": "SetEventWeightThreshold configures the minimum active blend weight in [0, 1]\nrequired for a state (or blend-space clip) to fire events during crossfades.\nA threshold of 0 (the default) fires events for any clip with weight > 0.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 384
            },
            {
              "name": "SetParam",
              "anchor": "StateMachine.SetParam",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) SetParam(name string, value float32)",
              "doc": "SetParam sets a named float32 parameter on the state machine. Blend-space\nstates bound to that parameter name automatically read it during Update and Pose.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 354
            },
            {
              "name": "SetState",
              "anchor": "StateMachine.SetState",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) SetState(name string, blendDuration time.Duration) bool",
              "doc": "SetState transitions directly to name over blendDuration. It returns false if\nname is not a registered state.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 396
            },
            {
              "name": "Update",
              "anchor": "StateMachine.Update",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Update(dt time.Duration) Pose",
              "doc": "Update evaluates conditional transitions, advances clip and blend-space playback\nand any active crossfade by dt, dispatches triggered animation events, and\nreturns the resulting Pose.\n\nUpdate(0) is a paused step: it re-evaluates the pose but neither advances time nor starts conditional transitions, so a paused character does not change state. During a crossfade both states fire events at their crossfade weights at the midpoint of the part of the step that lies inside the crossfade, so the step that completes a crossfade still fires the outgoing state's events. When both states of a crossfade are driven by the same blend space or sampler, it is advanced once per step, not twice.\n",
              "file": "pkg/anim3d/statemachine.go",
              "line": 454
            }
          ]
        },
        {
          "name": "Transition",
          "anchor": "Transition",
          "decl": "type Transition struct {\n\tFrom          string\n\tTo            string\n\tBlendDuration time.Duration\n\tWhen          func() bool\n}",
          "doc": "Transition defines a conditional crossfade between two states in a StateMachine.\nAn empty From string matches any state other than To.\n",
          "file": "pkg/anim3d/statemachine.go",
          "line": 297,
          "members": [
            {
              "name": "From",
              "anchor": "Transition.From",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "To",
              "anchor": "Transition.To",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlendDuration",
              "anchor": "Transition.BlendDuration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "When",
              "anchor": "Transition.When",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Vec3Keyframe",
          "anchor": "Vec3Keyframe",
          "decl": "type Vec3Keyframe struct {\n\tTime  time.Duration\n\tValue math3d.Vec3\n}",
          "doc": "Vec3Keyframe is a timed 3D vector sample for a translation or scale channel.\n",
          "file": "pkg/anim3d/statemachine.go",
          "line": 65,
          "members": [
            {
              "name": "Time",
              "anchor": "Vec3Keyframe.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "Vec3Keyframe.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/animclip",
      "name": "animclip",
      "dir": "pkg/animclip",
      "page": "pkg/animclip",
      "synopsis": "Package animclip plays animation clips, the resource files of type animation that key any registered property of scene objects on a timeline, as Godot's AnimationPlayer does.",
      "doc": "Package animclip plays animation clips, the resource files of type animation that key any registered property of scene objects on a timeline, as Godot's AnimationPlayer does.\n\n# Properties\n\nA clip track names its property as written in the scene file: an object field such as \"x\", \"rotation\", \"alpha\" or the discrete atlas frame property \"sprite.frame\" (ObjectProperties lists them), or a registered component field written \"component.field\", such as \"body.speed\". Component fields are keyable when a sceneformat.ComponentRegistry registers them with a numeric or bool kind; a string field has no number to key. Lookup resolves a name and Check checks a whole clip against a registry: every property must resolve, numeric tracks must hold values their property can take (0 or 1 for a bool, a whole number for an int, inside the field's range), and sprite.frame tracks must hold discrete frame keys.\n\n# Flipbook clips\n\nFromAsepriteTag and FromSpriteAnimation build a sprite.frame clip matching an Aseprite tag's frames, exact durations and loop mode; FromFrames builds a clip from a run of atlas frame names at a fixed frame rate.\n\n# Playing\n\nNewPlayer turns a clip into a tween.Timeline: one tween per pair of neighboring keys, so playback, seeking, looping and the clip's events run on the same deterministic clock as every other timeline. A Binder connects each track to what it drives; BindDoc writes into a sceneformat.SceneDoc and BindScene into a sceneformat.BuiltScene, keeping its sprites and their atlas frames in step, and a game can bind its own state with a Binder of its own.\n\nThe editor previews a clip with the same Player and BindScene, so a clip keyed in the editor plays the same values at the same times in the game.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "AnyState",
              "anchor": "AnyState"
            }
          ],
          "decl": "const AnyState = \"*\"",
          "doc": "AnyState is the special TransitionDoc.From value matching any active state other than TransitionDoc.To.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "PropertySpriteFrame",
              "anchor": "PropertySpriteFrame"
            }
          ],
          "decl": "const PropertySpriteFrame = \"sprite.frame\"",
          "doc": "PropertySpriteFrame is the discrete object property that steps a sprite's atlas frame name without interpolation.\n",
          "file": "pkg/animclip/property.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "StateMachineSchemaComment",
              "anchor": "StateMachineSchemaComment"
            }
          ],
          "decl": "const StateMachineSchemaComment = \"# yaml-language-server: $schema=\" + StateMachineSchemaURL",
          "doc": "StateMachineSchemaComment is the first line EncodeStateMachine writes, pointing YAML language servers at StateMachineSchemaURL.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "StateMachineSchemaURL",
              "anchor": "StateMachineSchemaURL"
            }
          ],
          "decl": "const StateMachineSchemaURL = \"https://game.nsgo.dev/schemas/states.v1.json\"",
          "doc": "StateMachineSchemaURL is where the JSON Schema of version 1 sprite state machine documents is published.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "StateMachineVersion",
              "anchor": "StateMachineVersion"
            }
          ],
          "decl": "const StateMachineVersion = 1",
          "doc": "StateMachineVersion is the schema version of *.states.yaml files this package reads and writes.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 18
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Check",
          "anchor": "Check",
          "decl": "func Check(clip *resource.Animation, reg *sceneformat.ComponentRegistry) error",
          "doc": "Check checks clip against reg: every track's property must resolve with Lookup, KindFrame tracks must hold valid frame keys, and numeric tracks must hold keys whose values their property can take (CheckValue). The error names the track's target and property.\n",
          "file": "pkg/animclip/property.go",
          "line": 435
        },
        {
          "name": "EncodeStateMachine",
          "anchor": "EncodeStateMachine",
          "decl": "func EncodeStateMachine(doc *StateMachineDoc) ([]byte, error)",
          "doc": "EncodeStateMachine validates doc and writes deterministic 2-space YAML preceded by StateMachineSchemaComment.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 262
        },
        {
          "name": "FromAsepriteTag",
          "anchor": "FromAsepriteTag",
          "decl": "func FromAsepriteTag(atlas *sprite.Atlas, tag string) (*resource.Animation, error)",
          "doc": "FromAsepriteTag creates an animation clip from the named Aseprite frame tag in atlas, matching the tag's frame sequence (direction and repeat count), exact frame durations and loop mode.\n",
          "file": "pkg/animclip/flipbook.go",
          "line": 55
        },
        {
          "name": "FromFrames",
          "anchor": "FromFrames",
          "decl": "func FromFrames(name string, frames []string, fps float64, loop bool) (*resource.Animation, error)",
          "doc": "FromFrames creates an animation clip that steps through frames at a fixed frame rate fps (frames per second) on a discrete sprite.frame track.\n",
          "file": "pkg/animclip/flipbook.go",
          "line": 78
        },
        {
          "name": "FromSpriteAnimation",
          "anchor": "FromSpriteAnimation",
          "decl": "func FromSpriteAnimation(name string, anim sprite.Animation) (*resource.Animation, error)",
          "doc": "FromSpriteAnimation converts a sprite.Animation (such as one loaded from an Aseprite tag) into a validated animation clip with one discrete sprite.frame track matching its frames, exact durations and loop flag. Frame events, when present, become clip events at their frame's start time.\n",
          "file": "pkg/animclip/flipbook.go",
          "line": 16
        },
        {
          "name": "KeyValue",
          "anchor": "KeyValue",
          "decl": "func KeyValue(v float32) float64",
          "doc": "KeyValue widens a key's float32 value or time to float64 by its shortest decimal form, so a key written 0.1 plays as 0.1 rather than 0.10000000149011612.\n",
          "file": "pkg/animclip/property.go",
          "line": 472
        },
        {
          "name": "NoopBinder",
          "anchor": "NoopBinder",
          "decl": "func NoopBinder(_ string, _ Property) (func(float64), error)",
          "doc": "NoopBinder is a Binder that accepts every track without mutating any scene, for headless state machine verification.\n",
          "file": "pkg/animclip/states_sim.go",
          "line": 225
        },
        {
          "name": "Seconds",
          "anchor": "Seconds",
          "decl": "func Seconds(s float32) time.Duration",
          "doc": "Seconds converts a clip time in seconds, as keys and events store it, to a time.Duration through KeyValue, so a key at 0.1 sits at exactly 100ms. Values beyond what a Duration holds saturate.\n",
          "file": "pkg/animclip/player.go",
          "line": 35
        },
        {
          "name": "ValidateStateMachine",
          "anchor": "ValidateStateMachine",
          "decl": "func ValidateStateMachine(doc *StateMachineDoc) error",
          "doc": "ValidateStateMachine checks doc's version, header, parameters, states, entry state and every transition's endpoints and condition expression.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 144
        }
      ],
      "types": [
        {
          "name": "Binder",
          "anchor": "Binder",
          "decl": "type Binder func(target string, p Property) (set func(v float64), err error)",
          "doc": "Binder connects a clip track to what it drives: given the track's target and resolved property, it returns the function that writes the property's value. The value it receives is already converted for the property's kind and range (Property.Convert). An error fails NewPlayer, so a clip that names a missing object is refused before it plays.\n",
          "file": "pkg/animclip/player.go",
          "line": 16,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BindDoc",
              "anchor": "BindDoc",
              "decl": "func BindDoc(doc *sceneformat.SceneDoc, self string) Binder",
              "doc": "BindDoc returns a Binder that writes into the objects of doc. A track's target is an object ID anywhere in the scene, and an empty target is self, the object the clip plays on. Binding fails for an object the scene does not have, or for a sprite.frame track on an object without a sprite.\n",
              "file": "pkg/animclip/bind.go",
              "line": 11
            },
            {
              "name": "BindScene",
              "anchor": "BindScene",
              "decl": "func BindScene(scene *sceneformat.BuiltScene, self string) Binder",
              "doc": "BindScene returns a Binder that writes into the objects of a built scene, as BindDoc does, and syncs each object whose field it writes (sceneformat.BuiltObject.Sync), so the next Draw shows the object and its children at their new world transform, sprite frame and alpha, alpha multiplied by the material's opacity as Build does. For a sprite.frame track, binding checks that the object has a sprite and that its atlas holds every keyed frame name.\n",
              "file": "pkg/animclip/bind.go",
              "line": 29
            }
          ],
          "methods": []
        },
        {
          "name": "ClipMap",
          "anchor": "ClipMap",
          "decl": "type ClipMap map[string]*resource.Animation",
          "doc": "ClipMap is an in-memory ClipResolver keyed by clip path or name, handy for tests and generated clips.\n",
          "file": "pkg/animclip/states_player.go",
          "line": 23,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Animation",
              "anchor": "ClipMap.Animation",
              "recv": "ClipMap",
              "decl": "func (m ClipMap) Animation(path string) (*resource.Animation, error)",
              "doc": "Animation returns the clip registered under path or an error when absent.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 26
            }
          ]
        },
        {
          "name": "ClipResolver",
          "anchor": "ClipResolver",
          "decl": "type ClipResolver interface {\n\tAnimation(path string) (*resource.Animation, error)\n}",
          "doc": "ClipResolver loads an animation clip by the path or key written in a StateDoc.Clip field.\n*resource.Library implements ClipResolver.\n",
          "file": "pkg/animclip/states_player.go",
          "line": 18,
          "members": [
            {
              "name": "Animation",
              "anchor": "ClipResolver.Animation",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Condition",
          "anchor": "Condition",
          "decl": "type Condition struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Condition is a compiled boolean transition expression over named state machine parameters.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 413,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CompileCondition",
              "anchor": "CompileCondition",
              "decl": "func CompileCondition(expr string, params map[string]ParamType) (*Condition, error)",
              "doc": "CompileCondition parses and type-checks expr against params (mapping parameter name to ParamType).\nSupported syntax:\n  - Logical: || (or), && (and), ! (not), ( ... )\n  - Comparisons: ==, !=, <, <=, >, >= (and Unicode ≤, ≥)\n  - Numeric atoms: float literals, float parameter names, |param|, abs(expr), unary -\n  - Boolean atoms: true, false, bool/trigger parameter names, bool == true/false\n",
              "file": "pkg/animclip/states_format.go",
              "line": 440
            }
          ],
          "methods": [
            {
              "name": "Eval",
              "anchor": "Condition.Eval",
              "recv": "*Condition",
              "decl": "func (c *Condition) Eval(getFloat func(string) float64, getBool func(string) bool) bool",
              "doc": "Eval evaluates c against the given float and bool/trigger parameter lookup functions.\n",
              "file": "pkg/animclip/states_format.go",
              "line": 427
            },
            {
              "name": "Params",
              "anchor": "Condition.Params",
              "recv": "*Condition",
              "decl": "func (c *Condition) Params() []string",
              "doc": "Params returns the sorted unique parameter names referenced by c.\n",
              "file": "pkg/animclip/states_format.go",
              "line": 419
            }
          ]
        },
        {
          "name": "FSClips",
          "anchor": "FSClips",
          "decl": "type FSClips struct {\n\tFS fs.FS\n}",
          "doc": "FSClips resolves animation clip YAML files from an fs.FS relative to its root.\n",
          "file": "pkg/animclip/states_player.go",
          "line": 35,
          "members": [
            {
              "name": "FS",
              "anchor": "FSClips.FS",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Animation",
              "anchor": "FSClips.Animation",
              "recv": "FSClips",
              "decl": "func (r FSClips) Animation(path string) (*resource.Animation, error)",
              "doc": "Animation reads and parses the animation resource at path from FS.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 40
            }
          ]
        },
        {
          "name": "FSStates",
          "anchor": "FSStates",
          "decl": "type FSStates struct {\n\tFS fs.FS\n}",
          "doc": "FSStates resolves *.states.yaml files from an fs.FS relative to its root.\n",
          "file": "pkg/animclip/states_player.go",
          "line": 69,
          "members": [
            {
              "name": "FS",
              "anchor": "FSStates.FS",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "StateMachine",
              "anchor": "FSStates.StateMachine",
              "recv": "FSStates",
              "decl": "func (r FSStates) StateMachine(path string) (*StateMachineDoc, error)",
              "doc": "StateMachine reads and parses the *.states.yaml file at path from FS.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 74
            }
          ]
        },
        {
          "name": "InputDriver",
          "anchor": "InputDriver",
          "decl": "type InputDriver struct {\n\t// JumpVelocity is the initial upward velocity (negative Y) applied when jumping on the floor. Defaults to -260 when 0.\n\tJumpVelocity float64\n\t// Gravity is the downward acceleration (positive Y) applied while airborne. Defaults to 780 when 0.\n\tGravity float64\n\n\t// PosY is the simulated vertical offset relative to the floor (0 = on floor, < 0 = airborne).\n\tPosY float64\n\t// VelY is the simulated vertical velocity (> 0 = falling).\n\tVelY float64\n\t// OnFloor reports whether the simulated character is standing on the floor.\n\tOnFloor bool\n\n\t// MoveX is the most recent horizontal movement input in [-1, 1].\n\tMoveX float64\n}",
          "doc": "InputDriver translates 2D character input actions (move_left/move_right or move_x axis, jump, attack, hurt) and simple vertical jump physics into standard state machine parameters (move.x, velocity.y, on_floor, jump, attack, hurt) on every fixed step.\nBoth the editor's \"Drive with keys\" preview and scripted input tests use InputDriver so behavior is identical.\n",
          "file": "pkg/animclip/states_sim.go",
          "line": 16,
          "members": [
            {
              "name": "JumpVelocity",
              "anchor": "InputDriver.JumpVelocity",
              "kind": "field",
              "doc": "JumpVelocity is the initial upward velocity (negative Y) applied when jumping on the floor. Defaults to -260 when 0."
            },
            {
              "name": "Gravity",
              "anchor": "InputDriver.Gravity",
              "kind": "field",
              "doc": "Gravity is the downward acceleration (positive Y) applied while airborne. Defaults to 780 when 0."
            },
            {
              "name": "PosY",
              "anchor": "InputDriver.PosY",
              "kind": "field",
              "doc": "PosY is the simulated vertical offset relative to the floor (0 = on floor, < 0 = airborne)."
            },
            {
              "name": "VelY",
              "anchor": "InputDriver.VelY",
              "kind": "field",
              "doc": "VelY is the simulated vertical velocity (> 0 = falling)."
            },
            {
              "name": "OnFloor",
              "anchor": "InputDriver.OnFloor",
              "kind": "field",
              "doc": "OnFloor reports whether the simulated character is standing on the floor."
            },
            {
              "name": "MoveX",
              "anchor": "InputDriver.MoveX",
              "kind": "field",
              "doc": "MoveX is the most recent horizontal movement input in [-1, 1]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewInputDriver",
              "anchor": "NewInputDriver",
              "decl": "func NewInputDriver() *InputDriver",
              "doc": "NewInputDriver returns an InputDriver standing on the floor with default platformer jump/gravity parameters.\n",
              "file": "pkg/animclip/states_sim.go",
              "line": 34
            }
          ],
          "methods": [
            {
              "name": "Reset",
              "anchor": "InputDriver.Reset",
              "recv": "*InputDriver",
              "decl": "func (d *InputDriver) Reset()",
              "doc": "Reset puts the simulated character back on the floor with zero velocity.\n",
              "file": "pkg/animclip/states_sim.go",
              "line": 43
            },
            {
              "name": "StepActions",
              "anchor": "InputDriver.StepActions",
              "recv": "*InputDriver",
              "decl": "func (d *InputDriver) StepActions(sm *StateMachine, actions *input.Actions, dt time.Duration)",
              "doc": "StepActions reads actions (stepped by the caller via actions.Step()), advances jump/fall vertical physics by dt, and feeds move.x, velocity.y, on_floor, jump, attack and hurt into sm.\n",
              "file": "pkg/animclip/states_sim.go",
              "line": 51
            },
            {
              "name": "StepSignals",
              "anchor": "InputDriver.StepSignals",
              "recv": "*InputDriver",
              "decl": "func (d *InputDriver) StepSignals(sm *StateMachine, moveX float64, jumpPressed, attackPressed, hurtPressed bool, dt time.Duration)",
              "doc": "StepSignals advances jump/fall physics by dt from direct control signals and feeds parameters into sm.\n",
              "file": "pkg/animclip/states_sim.go",
              "line": 79
            }
          ]
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind uint8",
          "doc": "Kind is how a keyed value is written to its property.\n",
          "file": "pkg/animclip/property.go",
          "line": 19,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindFloat",
                  "anchor": "KindFloat"
                },
                {
                  "name": "KindInt",
                  "anchor": "KindInt"
                },
                {
                  "name": "KindBool",
                  "anchor": "KindBool"
                },
                {
                  "name": "KindFrame",
                  "anchor": "KindFrame"
                }
              ],
              "decl": "const (\n\t// KindFloat writes the number as it is, clamped to the property's range.\n\tKindFloat Kind = iota + 1\n\t// KindInt rounds the number to the nearest whole number (halves away from zero), clamped to the property's range.\n\tKindInt\n\t// KindBool writes true from 0.5 up and false below it; its keys must be 0 or 1.\n\tKindBool\n\t// KindFrame writes a discrete atlas frame name onto the object's sprite without interpolation.\n\tKindFrame\n)",
              "doc": "",
              "file": "pkg/animclip/property.go",
              "line": 21
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Kind.String",
              "recv": "Kind",
              "decl": "func (k Kind) String() string",
              "doc": "String returns the kind's name: \"float\", \"int\", \"bool\" or \"frame\".\n",
              "file": "pkg/animclip/property.go",
              "line": 33
            }
          ]
        },
        {
          "name": "ParamDoc",
          "anchor": "ParamDoc",
          "decl": "type ParamDoc struct {\n\t// Name is the parameter identifier used in transition expressions, such as \"move.x\", \"velocity.y\", \"on_floor\" or \"jump\".\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Type is the parameter kind: \"float\", \"bool\" or \"trigger\".\n\tType ParamType `yaml:\"type\" schema:\"required,enum=float|bool|trigger\"`\n\t// Default is the optional starting value: a number for \"float\", a boolean for \"bool\", and omitted for \"trigger\".\n\tDefault any `yaml:\"default,omitempty\"`\n}",
          "doc": "ParamDoc declares one named parameter of a StateMachineDoc.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 60,
          "members": [
            {
              "name": "Name",
              "anchor": "ParamDoc.Name",
              "kind": "field",
              "doc": "Name is the parameter identifier used in transition expressions, such as \"move.x\", \"velocity.y\", \"on_floor\" or \"jump\"."
            },
            {
              "name": "Type",
              "anchor": "ParamDoc.Type",
              "kind": "field",
              "doc": "Type is the parameter kind: \"float\", \"bool\" or \"trigger\"."
            },
            {
              "name": "Default",
              "anchor": "ParamDoc.Default",
              "kind": "field",
              "doc": "Default is the optional starting value: a number for \"float\", a boolean for \"bool\", and omitted for \"trigger\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ParamType",
          "anchor": "ParamType",
          "decl": "type ParamType string",
          "doc": "ParamType is the value kind of a state machine parameter.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 30,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ParamFloat",
                  "anchor": "ParamFloat"
                },
                {
                  "name": "ParamBool",
                  "anchor": "ParamBool"
                },
                {
                  "name": "ParamTrigger",
                  "anchor": "ParamTrigger"
                }
              ],
              "decl": "const (\n\t// ParamFloat holds a finite float64 value (default 0).\n\tParamFloat ParamType = \"float\"\n\t// ParamBool holds a boolean value (default false).\n\tParamBool ParamType = \"bool\"\n\t// ParamTrigger is a one-shot boolean pulse set via Trigger and cleared at the end of Update.\n\tParamTrigger ParamType = \"trigger\"\n)",
              "doc": "",
              "file": "pkg/animclip/states_format.go",
              "line": 32
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Player",
          "anchor": "Player",
          "decl": "type Player struct {\n\t// OnEvent, when set, is called with the name of each clip event playback crosses, in time order. Seek does not call it.\n\tOnEvent func(name string)\n\t// contains filtered or unexported fields\n}",
          "doc": "Player plays one animation clip on a tween.Timeline: Play, Pause and Update run it on game.Loop's fixed steps, Seek scrubs it, and the clip's Loop wraps it. It writes nothing until the first Seek or Update.\n\nThe player reads the clip once in NewPlayer; to play an edited or reloaded clip, make a new Player.\n",
          "file": "pkg/animclip/player.go",
          "line": 21,
          "members": [
            {
              "name": "OnEvent",
              "anchor": "Player.OnEvent",
              "kind": "field",
              "doc": "OnEvent, when set, is called with the name of each clip event playback crosses, in time order. Seek does not call it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPlayer",
              "anchor": "NewPlayer",
              "decl": "func NewPlayer(clip *resource.Animation, reg *sceneformat.ComponentRegistry, bind Binder) (*Player, error)",
              "doc": "NewPlayer checks clip against reg (Check), binds every track through bind, and returns a player at time 0. Each pair of neighboring keys becomes one tween from the first key's value to the second's, eased by the first key's interp; a track's value holds its first key before it and its last key after it, as resource.Animation.Sample does.\n",
              "file": "pkg/animclip/player.go",
              "line": 49
            }
          ],
          "methods": [
            {
              "name": "Clip",
              "anchor": "Player.Clip",
              "recv": "*Player",
              "decl": "func (p *Player) Clip() *resource.Animation",
              "doc": "Clip returns the clip the player was made from.\n",
              "file": "pkg/animclip/player.go",
              "line": 140
            },
            {
              "name": "Done",
              "anchor": "Player.Done",
              "recv": "*Player",
              "decl": "func (p *Player) Done() bool",
              "doc": "Done reports whether a clip that does not loop has played to its end.\n",
              "file": "pkg/animclip/player.go",
              "line": 152
            },
            {
              "name": "Length",
              "anchor": "Player.Length",
              "recv": "*Player",
              "decl": "func (p *Player) Length() time.Duration",
              "doc": "Length returns the clip's length.\n",
              "file": "pkg/animclip/player.go",
              "line": 143
            },
            {
              "name": "Loop",
              "anchor": "Player.Loop",
              "recv": "*Player",
              "decl": "func (p *Player) Loop() bool",
              "doc": "Loop reports whether playback wraps to the start at the end: the clip's Loop unless SetLoop changed it.\n",
              "file": "pkg/animclip/player.go",
              "line": 155
            },
            {
              "name": "Pause",
              "anchor": "Player.Pause",
              "recv": "*Player",
              "decl": "func (p *Player) Pause()",
              "doc": "Pause stops playback at the current position.\n",
              "file": "pkg/animclip/player.go",
              "line": 167
            },
            {
              "name": "Play",
              "anchor": "Player.Play",
              "recv": "*Player",
              "decl": "func (p *Player) Play()",
              "doc": "Play starts or resumes playback from the current position. A clip that has played to its end stays there; use Restart.\n",
              "file": "pkg/animclip/player.go",
              "line": 164
            },
            {
              "name": "Playing",
              "anchor": "Player.Playing",
              "recv": "*Player",
              "decl": "func (p *Player) Playing() bool",
              "doc": "Playing reports whether the player is playing.\n",
              "file": "pkg/animclip/player.go",
              "line": 149
            },
            {
              "name": "Restart",
              "anchor": "Player.Restart",
              "recv": "*Player",
              "decl": "func (p *Player) Restart()",
              "doc": "Restart writes the clip's start and plays from it.\n",
              "file": "pkg/animclip/player.go",
              "line": 170
            },
            {
              "name": "Seek",
              "anchor": "Player.Seek",
              "recv": "*Player",
              "decl": "func (p *Player) Seek(at time.Duration)",
              "doc": "Seek moves to at and writes every track's value there without calling OnEvent. A looping clip wraps a time before 0 or past Length into [0, Length), and poses its end at exactly Length, so a playhead dragged to the end shows the last keys; one that does not loop clamps at to [0, Length].\n",
              "file": "pkg/animclip/player.go",
              "line": 173
            },
            {
              "name": "SetLoop",
              "anchor": "Player.SetLoop",
              "recv": "*Player",
              "decl": "func (p *Player) SetLoop(loop bool)",
              "doc": "SetLoop overrides the clip's Loop for this player.\n",
              "file": "pkg/animclip/player.go",
              "line": 158
            },
            {
              "name": "Time",
              "anchor": "Player.Time",
              "recv": "*Player",
              "decl": "func (p *Player) Time() time.Duration",
              "doc": "Time returns the playback position, from 0 to Length.\n",
              "file": "pkg/animclip/player.go",
              "line": 146
            },
            {
              "name": "Update",
              "anchor": "Player.Update",
              "recv": "*Player",
              "decl": "func (p *Player) Update(dt time.Duration)",
              "doc": "Update advances a playing clip by dt, writes every track's value at the new position and calls OnEvent for each event crossed.\n",
              "file": "pkg/animclip/player.go",
              "line": 184
            }
          ]
        },
        {
          "name": "Property",
          "anchor": "Property",
          "decl": "type Property struct {\n\t// Name is the property as a track writes it: an object field such as \"x\" or \"sprite.frame\", or \"component.field\" for a registered component field.\n\tName string\n\t// Component and Field name the registered component field the property is; both are empty for an object field.\n\tComponent, Field string\n\t// Kind is how a keyed value is written to the property.\n\tKind Kind\n\t// Min and Max are the property's optional inclusive bounds; nil leaves that side open.\n\tMin, Max *float64\n\t// Doc is a one-line description for tools such as the editor.\n\tDoc string\n\t// Frames lists the atlas frame names of a KindFrame track in key order while NewPlayer binds a clip, so a Binder can validate them up front and map each keyed index through Property.Frame. It is nil on properties returned by Lookup or Properties.\n\tFrames []string\n}",
          "doc": "Property is one property a clip track can key.\n",
          "file": "pkg/animclip/property.go",
          "line": 49,
          "members": [
            {
              "name": "Name",
              "anchor": "Property.Name",
              "kind": "field",
              "doc": "Name is the property as a track writes it: an object field such as \"x\" or \"sprite.frame\", or \"component.field\" for a registered component field."
            },
            {
              "name": "Component",
              "anchor": "Property.Component",
              "kind": "field",
              "doc": "Component and Field name the registered component field the property is; both are empty for an object field."
            },
            {
              "name": "Field",
              "anchor": "Property.Field",
              "kind": "field",
              "doc": "Component and Field name the registered component field the property is; both are empty for an object field."
            },
            {
              "name": "Kind",
              "anchor": "Property.Kind",
              "kind": "field",
              "doc": "Kind is how a keyed value is written to the property."
            },
            {
              "name": "Min",
              "anchor": "Property.Min",
              "kind": "field",
              "doc": "Min and Max are the property's optional inclusive bounds; nil leaves that side open."
            },
            {
              "name": "Max",
              "anchor": "Property.Max",
              "kind": "field",
              "doc": "Min and Max are the property's optional inclusive bounds; nil leaves that side open."
            },
            {
              "name": "Doc",
              "anchor": "Property.Doc",
              "kind": "field",
              "doc": "Doc is a one-line description for tools such as the editor."
            },
            {
              "name": "Frames",
              "anchor": "Property.Frames",
              "kind": "field",
              "doc": "Frames lists the atlas frame names of a KindFrame track in key order while NewPlayer binds a clip, so a Binder can validate them up front and map each keyed index through Property.Frame. It is nil on properties returned by Lookup or Properties."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Lookup",
              "anchor": "Lookup",
              "decl": "func Lookup(reg *sceneformat.ComponentRegistry, name string) (Property, error)",
              "doc": "Lookup resolves the property name a track writes. Built-in object properties (including \"sprite.frame\") resolve without a registry; any other \"component.field\" is a field of a component registered in reg, split at the first dot. It fails for an unknown object field, a component property without a registry, an unregistered component or field, and a string component field.\n",
              "file": "pkg/animclip/property.go",
              "line": 127
            },
            {
              "name": "ObjectProperties",
              "anchor": "ObjectProperties",
              "decl": "func ObjectProperties() []Property",
              "doc": "ObjectProperties returns the object fields a clip can key, in the order tools list them.\n",
              "file": "pkg/animclip/property.go",
              "line": 105
            },
            {
              "name": "Properties",
              "anchor": "Properties",
              "decl": "func Properties(reg *sceneformat.ComponentRegistry) []Property",
              "doc": "Properties returns every property a clip can key with reg: the object fields, then each registered component's numeric and bool fields, components by name and fields in declaration order. A nil reg returns the object fields only.\n",
              "file": "pkg/animclip/property.go",
              "line": 114
            }
          ],
          "methods": [
            {
              "name": "CheckFrame",
              "anchor": "Property.CheckFrame",
              "recv": "Property",
              "decl": "func (p Property) CheckFrame(frame string) error",
              "doc": "CheckFrame reports why frame cannot be a key of a KindFrame property.\n",
              "file": "pkg/animclip/property.go",
              "line": 261
            },
            {
              "name": "CheckValue",
              "anchor": "Property.CheckValue",
              "recv": "Property",
              "decl": "func (p Property) CheckValue(v float64) error",
              "doc": "CheckValue reports why v cannot be a key of the property: it is not finite, a frame property keyed with a number, a bool key other than 0 or 1, a fractional int key or one a Go int cannot hold, or outside the range.\n",
              "file": "pkg/animclip/property.go",
              "line": 230
            },
            {
              "name": "Convert",
              "anchor": "Property.Convert",
              "recv": "Property",
              "decl": "func (p Property) Convert(v float64) float64",
              "doc": "Convert returns v as the property takes it: rounded for KindInt, 0 or 1 for KindBool, clamped index for KindFrame, and clamped to the range. NaN is returned unchanged.\n",
              "file": "pkg/animclip/property.go",
              "line": 195
            },
            {
              "name": "Frame",
              "anchor": "Property.Frame",
              "recv": "Property",
              "decl": "func (p Property) Frame(v float64) string",
              "doc": "Frame maps a keyed index value from NewPlayer to its frame name in p.Frames, or \"\" when p is not a KindFrame track or v is out of range.\n",
              "file": "pkg/animclip/property.go",
              "line": 71
            },
            {
              "name": "Get",
              "anchor": "Property.Get",
              "recv": "Property",
              "decl": "func (p Property) Get(o *sceneformat.ObjectDoc, reg *sceneformat.ComponentRegistry) (float64, error)",
              "doc": "Get returns the property's value on o as a number: an object field's value (1 for an unset scale or alpha), or a component field's value with reg's default when o leaves it unset. A bool reads as 0 or 1.\n",
              "file": "pkg/animclip/property.go",
              "line": 294
            },
            {
              "name": "GetFrame",
              "anchor": "Property.GetFrame",
              "recv": "Property",
              "decl": "func (p Property) GetFrame(o *sceneformat.ObjectDoc) (string, error)",
              "doc": "GetFrame returns the sprite frame name on o for a KindFrame property.\n",
              "file": "pkg/animclip/property.go",
              "line": 272
            },
            {
              "name": "IsComponent",
              "anchor": "Property.IsComponent",
              "recv": "Property",
              "decl": "func (p Property) IsComponent() bool",
              "doc": "IsComponent reports whether the property is a registered component field rather than an object field.\n",
              "file": "pkg/animclip/property.go",
              "line": 65
            },
            {
              "name": "IsFrame",
              "anchor": "Property.IsFrame",
              "recv": "Property",
              "decl": "func (p Property) IsFrame() bool",
              "doc": "IsFrame reports whether the property keys discrete atlas frame names rather than numbers.\n",
              "file": "pkg/animclip/property.go",
              "line": 68
            },
            {
              "name": "Set",
              "anchor": "Property.Set",
              "recv": "Property",
              "decl": "func (p Property) Set(o *sceneformat.ObjectDoc, v float64)",
              "doc": "Set writes v to the property on o after Convert: a float32 object field, a bool flip, or a component field stored as float64, int or bool, creating the component's mapping when o has none. A NaN v writes nothing.\n",
              "file": "pkg/animclip/property.go",
              "line": 364
            },
            {
              "name": "SetFrame",
              "anchor": "Property.SetFrame",
              "recv": "Property",
              "decl": "func (p Property) SetFrame(o *sceneformat.ObjectDoc, frame string)",
              "doc": "SetFrame writes frame onto o's sprite when p is a KindFrame property and o has a sprite.\n",
              "file": "pkg/animclip/property.go",
              "line": 286
            }
          ]
        },
        {
          "name": "ScriptStep",
          "anchor": "ScriptStep",
          "decl": "type ScriptStep struct {\n\t// At is when this step starts, relative to simulation start (0).\n\tAt time.Duration `json:\"at\"`\n\t// Duration is how long held inputs (MoveX) stay active; 0 means a single-step pulse.\n\tDuration time.Duration `json:\"duration,omitempty\"`\n\t// MoveX holds horizontal movement input in [-1, 1] for Duration.\n\tMoveX float64 `json:\"moveX,omitempty\"`\n\t// Jump pulses the jump input on the first step of this segment.\n\tJump bool `json:\"jump,omitempty\"`\n\t// Attack pulses the attack input on the first step of this segment.\n\tAttack bool `json:\"attack,omitempty\"`\n\t// Hurt pulses the hurt input on the first step of this segment.\n\tHurt bool `json:\"hurt,omitempty\"`\n\t// Floats optionally sets arbitrary named float parameters for Duration.\n\tFloats map[string]float64 `json:\"floats,omitempty\"`\n\t// Bools optionally sets arbitrary named bool parameters for Duration.\n\tBools map[string]bool `json:\"bools,omitempty\"`\n\t// Triggers optionally pulses arbitrary named trigger parameters at At.\n\tTriggers []string `json:\"triggers,omitempty\"`\n}",
          "doc": "ScriptStep describes one timed input segment in a scripted simulation of a sprite state machine.\n",
          "file": "pkg/animclip/states_sim.go",
          "line": 125,
          "members": [
            {
              "name": "At",
              "anchor": "ScriptStep.At",
              "kind": "field",
              "doc": "At is when this step starts, relative to simulation start (0)."
            },
            {
              "name": "Duration",
              "anchor": "ScriptStep.Duration",
              "kind": "field",
              "doc": "Duration is how long held inputs (MoveX) stay active; 0 means a single-step pulse."
            },
            {
              "name": "MoveX",
              "anchor": "ScriptStep.MoveX",
              "kind": "field",
              "doc": "MoveX holds horizontal movement input in [-1, 1] for Duration."
            },
            {
              "name": "Jump",
              "anchor": "ScriptStep.Jump",
              "kind": "field",
              "doc": "Jump pulses the jump input on the first step of this segment."
            },
            {
              "name": "Attack",
              "anchor": "ScriptStep.Attack",
              "kind": "field",
              "doc": "Attack pulses the attack input on the first step of this segment."
            },
            {
              "name": "Hurt",
              "anchor": "ScriptStep.Hurt",
              "kind": "field",
              "doc": "Hurt pulses the hurt input on the first step of this segment."
            },
            {
              "name": "Floats",
              "anchor": "ScriptStep.Floats",
              "kind": "field",
              "doc": "Floats optionally sets arbitrary named float parameters for Duration."
            },
            {
              "name": "Bools",
              "anchor": "ScriptStep.Bools",
              "kind": "field",
              "doc": "Bools optionally sets arbitrary named bool parameters for Duration."
            },
            {
              "name": "Triggers",
              "anchor": "ScriptStep.Triggers",
              "kind": "field",
              "doc": "Triggers optionally pulses arbitrary named trigger parameters at At."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultScript",
              "anchor": "DefaultScript",
              "decl": "func DefaultScript() []ScriptStep",
              "doc": "DefaultScript returns an 8-second scripted input sequence exercising idle, run, jump, fall, landing back into run, idle, attack and hurt.\n",
              "file": "pkg/animclip/states_sim.go",
              "line": 206
            }
          ],
          "methods": []
        },
        {
          "name": "SimulationOptions",
          "anchor": "SimulationOptions",
          "decl": "type SimulationOptions struct {\n\t// Duration is total simulated time; defaults to 8 seconds when <= 0.\n\tDuration time.Duration\n\t// Rate is fixed steps per second; defaults to 60 when <= 0.\n\tRate int\n\t// Script are the timed inputs played during simulation; when empty, DefaultScript(Duration) is used.\n\tScript []ScriptStep\n\t// Driver optionally supplies a custom InputDriver; nil uses NewInputDriver().\n\tDriver *InputDriver\n}",
          "doc": "SimulationOptions configures SimulateStateMachine.\n",
          "file": "pkg/animclip/states_sim.go",
          "line": 157,
          "members": [
            {
              "name": "Duration",
              "anchor": "SimulationOptions.Duration",
              "kind": "field",
              "doc": "Duration is total simulated time; defaults to 8 seconds when <= 0."
            },
            {
              "name": "Rate",
              "anchor": "SimulationOptions.Rate",
              "kind": "field",
              "doc": "Rate is fixed steps per second; defaults to 60 when <= 0."
            },
            {
              "name": "Script",
              "anchor": "SimulationOptions.Script",
              "kind": "field",
              "doc": "Script are the timed inputs played during simulation; when empty, DefaultScript(Duration) is used."
            },
            {
              "name": "Driver",
              "anchor": "SimulationOptions.Driver",
              "kind": "field",
              "doc": "Driver optionally supplies a custom InputDriver; nil uses NewInputDriver()."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SimulationReport",
          "anchor": "SimulationReport",
          "decl": "type SimulationReport struct {\n\t// Duration is the total simulated duration.\n\tDuration time.Duration `json:\"duration\"`\n\t// Steps is the number of fixed steps executed.\n\tSteps int `json:\"steps\"`\n\t// Trace is the ordered sequence of states visited (entry state first, then each transition target).\n\tTrace []string `json:\"trace\"`\n\t// Transitions lists every state change in chronological order.\n\tTransitions []TransitionEvent `json:\"transitions\"`\n\t// VisitedStates are the sorted unique state names entered during the run.\n\tVisitedStates []string `json:\"visitedStates\"`\n\t// UnvisitedStates are the sorted state names declared in the document that were never entered.\n\tUnvisitedStates []string `json:\"unvisitedStates,omitempty\"`\n\t// StuckStates are the sorted state names that finished a non-looping clip and remained stuck without leaving, or have no outgoing transitions at all.\n\tStuckStates []string `json:\"stuckStates,omitempty\"`\n}",
          "doc": "SimulationReport summarizes a scripted simulation run of a StateMachineDoc.\n",
          "file": "pkg/animclip/states_sim.go",
          "line": 169,
          "members": [
            {
              "name": "Duration",
              "anchor": "SimulationReport.Duration",
              "kind": "field",
              "doc": "Duration is the total simulated duration."
            },
            {
              "name": "Steps",
              "anchor": "SimulationReport.Steps",
              "kind": "field",
              "doc": "Steps is the number of fixed steps executed."
            },
            {
              "name": "Trace",
              "anchor": "SimulationReport.Trace",
              "kind": "field",
              "doc": "Trace is the ordered sequence of states visited (entry state first, then each transition target)."
            },
            {
              "name": "Transitions",
              "anchor": "SimulationReport.Transitions",
              "kind": "field",
              "doc": "Transitions lists every state change in chronological order."
            },
            {
              "name": "VisitedStates",
              "anchor": "SimulationReport.VisitedStates",
              "kind": "field",
              "doc": "VisitedStates are the sorted unique state names entered during the run."
            },
            {
              "name": "UnvisitedStates",
              "anchor": "SimulationReport.UnvisitedStates",
              "kind": "field",
              "doc": "UnvisitedStates are the sorted state names declared in the document that were never entered."
            },
            {
              "name": "StuckStates",
              "anchor": "SimulationReport.StuckStates",
              "kind": "field",
              "doc": "StuckStates are the sorted state names that finished a non-looping clip and remained stuck without leaving, or have no outgoing transitions at all."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SimulateStateMachine",
              "anchor": "SimulateStateMachine",
              "decl": "func SimulateStateMachine(doc *StateMachineDoc, clips ClipResolver, reg *sceneformat.ComponentRegistry, bind Binder, opts SimulationOptions) (*SimulationReport, error)",
              "doc": "SimulateStateMachine runs doc deterministically under opts.Script for opts.Duration at opts.Rate Hz and returns a SimulationReport detailing the visited state trace, transitions and any stuck states.\nIf bind is nil, NoopBinder is used.\n",
              "file": "pkg/animclip/states_sim.go",
              "line": 231
            }
          ],
          "methods": [
            {
              "name": "Summary",
              "anchor": "SimulationReport.Summary",
              "recv": "*SimulationReport",
              "decl": "func (r *SimulationReport) Summary() string",
              "doc": "Summary formats a concise one-line status, e.g. \"Played 8 s of scripted input · no stuck states\".\n",
              "file": "pkg/animclip/states_sim.go",
              "line": 187
            }
          ]
        },
        {
          "name": "StateDoc",
          "anchor": "StateDoc",
          "decl": "type StateDoc struct {\n\t// Name is the unique state name within the state machine, such as \"idle\" or \"run\".\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Clip is the project-relative path or resolver key of the animation clip resource played while this state is active.\n\tClip string `yaml:\"clip\" schema:\"required\"`\n\t// Speed is an optional playback speed multiplier (> 0); 0 or omitted plays at 1x speed.\n\tSpeed float32 `yaml:\"speed,omitempty\" schema:\"minimum=0\"`\n\t// Loop optionally overrides the clip's own loop setting while played in this state.\n\tLoop *bool `yaml:\"loop,omitempty\"`\n\t// X is an optional horizontal coordinate of this state node in the editor graph.\n\tX *float32 `yaml:\"x,omitempty\"`\n\t// Y is an optional vertical coordinate of this state node in the editor graph.\n\tY *float32 `yaml:\"y,omitempty\"`\n}",
          "doc": "StateDoc declares one state of a StateMachineDoc.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 70,
          "members": [
            {
              "name": "Name",
              "anchor": "StateDoc.Name",
              "kind": "field",
              "doc": "Name is the unique state name within the state machine, such as \"idle\" or \"run\"."
            },
            {
              "name": "Clip",
              "anchor": "StateDoc.Clip",
              "kind": "field",
              "doc": "Clip is the project-relative path or resolver key of the animation clip resource played while this state is active."
            },
            {
              "name": "Speed",
              "anchor": "StateDoc.Speed",
              "kind": "field",
              "doc": "Speed is an optional playback speed multiplier (> 0); 0 or omitted plays at 1x speed."
            },
            {
              "name": "Loop",
              "anchor": "StateDoc.Loop",
              "kind": "field",
              "doc": "Loop optionally overrides the clip's own loop setting while played in this state."
            },
            {
              "name": "X",
              "anchor": "StateDoc.X",
              "kind": "field",
              "doc": "X is an optional horizontal coordinate of this state node in the editor graph."
            },
            {
              "name": "Y",
              "anchor": "StateDoc.Y",
              "kind": "field",
              "doc": "Y is an optional vertical coordinate of this state node in the editor graph."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "StateMachine",
          "anchor": "StateMachine",
          "decl": "type StateMachine struct {\n\t// OnTransition, when set, is called synchronously whenever the machine switches states.\n\tOnTransition func(from, to string)\n\t// OnEvent, when set, is called synchronously whenever the active state's clip crosses a named cue event.\n\tOnEvent func(state, event string)\n\t// contains filtered or unexported fields\n}",
          "doc": "StateMachine plays a *.states.yaml sprite animation graph on deterministic game.Loop fixed steps.\nThe game (or editor preview) sets named float, bool and trigger parameters and calls Update(dt).\n",
          "file": "pkg/animclip/states_player.go",
          "line": 98,
          "members": [
            {
              "name": "OnTransition",
              "anchor": "StateMachine.OnTransition",
              "kind": "field",
              "doc": "OnTransition, when set, is called synchronously whenever the machine switches states."
            },
            {
              "name": "OnEvent",
              "anchor": "StateMachine.OnEvent",
              "kind": "field",
              "doc": "OnEvent, when set, is called synchronously whenever the active state's clip crosses a named cue event."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewAnimator",
              "anchor": "NewAnimator",
              "decl": "func NewAnimator(built *sceneformat.BuiltScene, objectID string, states StatesResolver, clips ClipResolver, reg *sceneformat.ComponentRegistry) (*StateMachine, error)",
              "doc": "NewAnimator builds a StateMachine for objectID in built from its built-in \"animator\" component, resolving the states file via states and each state's clip via clips.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 187
            },
            {
              "name": "NewStateMachine",
              "anchor": "NewStateMachine",
              "decl": "func NewStateMachine(doc *StateMachineDoc, clips ClipResolver, reg *sceneformat.ComponentRegistry, bind Binder) (*StateMachine, error)",
              "doc": "NewStateMachine validates doc, resolves every state's clip through clips, builds a Player for each state bound via bind, and starts at doc.Entry (playing and posed at time 0).\n",
              "file": "pkg/animclip/states_player.go",
              "line": 120
            }
          ],
          "methods": [
            {
              "name": "ActivePlayer",
              "anchor": "StateMachine.ActivePlayer",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) ActivePlayer() *Player",
              "doc": "ActivePlayer returns the clip Player of the currently active state, or nil.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 251
            },
            {
              "name": "Bool",
              "anchor": "StateMachine.Bool",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Bool(name string) bool",
              "doc": "Bool returns the current value of bool or trigger parameter name.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 383
            },
            {
              "name": "Doc",
              "anchor": "StateMachine.Doc",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Doc() *StateMachineDoc",
              "doc": "Doc returns a copy of the StateMachineDoc this player runs.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 242
            },
            {
              "name": "Float",
              "anchor": "StateMachine.Float",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Float(name string) float64",
              "doc": "Float returns the current value of float parameter name, or 0 when unset.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 372
            },
            {
              "name": "Params",
              "anchor": "StateMachine.Params",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Params() map[string]any",
              "doc": "Params returns a snapshot map of all declared parameters and their current values.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 407
            },
            {
              "name": "Pause",
              "anchor": "StateMachine.Pause",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Pause()",
              "doc": "Pause halts playback at the current state and time.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 294
            },
            {
              "name": "Play",
              "anchor": "StateMachine.Play",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Play()",
              "doc": "Play resumes fixed-step playback.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 286
            },
            {
              "name": "Playing",
              "anchor": "StateMachine.Playing",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Playing() bool",
              "doc": "Playing reports whether playback advances on Update.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 283
            },
            {
              "name": "PreviousState",
              "anchor": "StateMachine.PreviousState",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) PreviousState() string",
              "doc": "PreviousState returns the name of the state active before the last transition, or \"\" before any transition has fired.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 248
            },
            {
              "name": "Reset",
              "anchor": "StateMachine.Reset",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Reset()",
              "doc": "Reset restores all parameters to their defaults, clears triggers, re-enters doc.Entry and poses frame 0.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 313
            },
            {
              "name": "ResetTrigger",
              "anchor": "StateMachine.ResetTrigger",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) ResetTrigger(name string)",
              "doc": "ResetTrigger clears a latched trigger parameter before Update consumes it.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 399
            },
            {
              "name": "SetBool",
              "anchor": "StateMachine.SetBool",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) SetBool(name string, v bool)",
              "doc": "SetBool sets a declared bool parameter to v. Unknown/non-bool names are ignored.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 375
            },
            {
              "name": "SetFloat",
              "anchor": "StateMachine.SetFloat",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) SetFloat(name string, v float64)",
              "doc": "SetFloat sets a declared float parameter to v. Non-finite values and unknown/non-float names are ignored.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 364
            },
            {
              "name": "SetSpeed",
              "anchor": "StateMachine.SetSpeed",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) SetSpeed(speed float64)",
              "doc": "SetSpeed sets the global playback speed multiplier (>= 0).\n",
              "file": "pkg/animclip/states_player.go",
              "line": 302
            },
            {
              "name": "SetState",
              "anchor": "StateMachine.SetState",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) SetState(name string) bool",
              "doc": "SetState switches immediately to state name, restarting its clip from time 0 and posing frame 0.\nReturns false when name is not a state in the machine.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 347
            },
            {
              "name": "Speed",
              "anchor": "StateMachine.Speed",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Speed() float64",
              "doc": "Speed returns the global playback speed multiplier.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 310
            },
            {
              "name": "State",
              "anchor": "StateMachine.State",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) State() string",
              "doc": "State returns the name of the currently active state.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 245
            },
            {
              "name": "StateDone",
              "anchor": "StateMachine.StateDone",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) StateDone() bool",
              "doc": "StateDone reports whether the active non-looping clip has played to its end.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 275
            },
            {
              "name": "StateLength",
              "anchor": "StateMachine.StateLength",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) StateLength() time.Duration",
              "doc": "StateLength returns the active clip's total length.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 267
            },
            {
              "name": "StateTime",
              "anchor": "StateMachine.StateTime",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) StateTime() time.Duration",
              "doc": "StateTime returns the active clip's current playback time.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 259
            },
            {
              "name": "Trigger",
              "anchor": "StateMachine.Trigger",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Trigger(name string)",
              "doc": "Trigger pulses a declared trigger parameter for the next Update step.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 391
            },
            {
              "name": "Update",
              "anchor": "StateMachine.Update",
              "recv": "*StateMachine",
              "decl": "func (sm *StateMachine) Update(dt time.Duration)",
              "doc": "Update advances the state machine by one fixed step dt: evaluates transitions in declaration order, advances the active clip player (firing clip events), checks clip-end transitions if the clip finished on this step, and resets all trigger pulses at the end of the step.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 423
            }
          ]
        },
        {
          "name": "StateMachineDoc",
          "anchor": "StateMachineDoc",
          "decl": "type StateMachineDoc struct {\n\t// Version is the schema version; it must equal StateMachineVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// UID is an optional stable file ID assigned by game index or the editor for safe renames.\n\tUID string `yaml:\"uid,omitempty\"`\n\t// Name is an optional human-readable display name for the state machine.\n\tName string `yaml:\"name,omitempty\"`\n\t// Entry is the name of the state the machine enters when playback starts or resets.\n\tEntry string `yaml:\"entry\" schema:\"required\"`\n\t// Parameters are the named inputs that transition conditions read.\n\tParameters []ParamDoc `yaml:\"parameters,omitempty\"`\n\t// States are the named animation states, each playing one animation clip.\n\tStates []StateDoc `yaml:\"states\" schema:\"required\"`\n\t// Transitions are the directed edges evaluated in declaration order on every fixed Update step.\n\tTransitions []TransitionDoc `yaml:\"transitions,omitempty\"`\n}",
          "doc": "StateMachineDoc is the plain-text YAML schema of a *.states.yaml sprite animation state machine.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 42,
          "members": [
            {
              "name": "Version",
              "anchor": "StateMachineDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal StateMachineVersion (1)."
            },
            {
              "name": "UID",
              "anchor": "StateMachineDoc.UID",
              "kind": "field",
              "doc": "UID is an optional stable file ID assigned by game index or the editor for safe renames."
            },
            {
              "name": "Name",
              "anchor": "StateMachineDoc.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable display name for the state machine."
            },
            {
              "name": "Entry",
              "anchor": "StateMachineDoc.Entry",
              "kind": "field",
              "doc": "Entry is the name of the state the machine enters when playback starts or resets."
            },
            {
              "name": "Parameters",
              "anchor": "StateMachineDoc.Parameters",
              "kind": "field",
              "doc": "Parameters are the named inputs that transition conditions read."
            },
            {
              "name": "States",
              "anchor": "StateMachineDoc.States",
              "kind": "field",
              "doc": "States are the named animation states, each playing one animation clip."
            },
            {
              "name": "Transitions",
              "anchor": "StateMachineDoc.Transitions",
              "kind": "field",
              "doc": "Transitions are the directed edges evaluated in declaration order on every fixed Update step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseStateMachine",
              "anchor": "ParseStateMachine",
              "decl": "func ParseStateMachine(data []byte) (*StateMachineDoc, error)",
              "doc": "ParseStateMachine decodes data as a *.states.yaml document, refusing unknown fields, trailing documents, unsupported versions and invalid states, parameters or transition expressions.\n",
              "file": "pkg/animclip/states_format.go",
              "line": 120
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "StateMachineDoc.Clone",
              "recv": "*StateMachineDoc",
              "decl": "func (doc *StateMachineDoc) Clone() *StateMachineDoc",
              "doc": "Clone returns a deep copy of doc.\n",
              "file": "pkg/animclip/states_format.go",
              "line": 282
            },
            {
              "name": "State",
              "anchor": "StateMachineDoc.State",
              "recv": "*StateMachineDoc",
              "decl": "func (doc *StateMachineDoc) State(name string) *StateDoc",
              "doc": "State returns a pointer to the named state in doc, or nil when absent.\n",
              "file": "pkg/animclip/states_format.go",
              "line": 311
            },
            {
              "name": "UnusedParameters",
              "anchor": "StateMachineDoc.UnusedParameters",
              "recv": "*StateMachineDoc",
              "decl": "func (doc *StateMachineDoc) UnusedParameters() []int",
              "doc": "UnusedParameters returns the indices into doc.Parameters of parameters that no transition condition reads.\n",
              "file": "pkg/animclip/states_format.go",
              "line": 347
            },
            {
              "name": "UsedParameters",
              "anchor": "StateMachineDoc.UsedParameters",
              "recv": "*StateMachineDoc",
              "decl": "func (doc *StateMachineDoc) UsedParameters() map[string]bool",
              "doc": "UsedParameters returns the set of parameter names referenced by at least one transition's When condition.\n",
              "file": "pkg/animclip/states_format.go",
              "line": 324
            }
          ]
        },
        {
          "name": "StateMachineError",
          "anchor": "StateMachineError",
          "decl": "type StateMachineError struct {\n\t// Path is the sequence of YAML mapping keys and decimal slice indices leading to the offending field, such as [\"transitions\", \"2\", \"to\"].\n\tPath []string\n\t// Message describes what is wrong and how to fix it.\n\tMessage string\n}",
          "doc": "StateMachineError reports a validation error in a StateMachineDoc together with the YAML field path that caused it, so callers such as assetcheck can locate the exact line.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 100,
          "members": [
            {
              "name": "Path",
              "anchor": "StateMachineError.Path",
              "kind": "field",
              "doc": "Path is the sequence of YAML mapping keys and decimal slice indices leading to the offending field, such as [\"transitions\", \"2\", \"to\"]."
            },
            {
              "name": "Message",
              "anchor": "StateMachineError.Message",
              "kind": "field",
              "doc": "Message describes what is wrong and how to fix it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "StateMachineError.Error",
              "recv": "*StateMachineError",
              "decl": "func (e *StateMachineError) Error() string",
              "doc": "Error implements error.\n",
              "file": "pkg/animclip/states_format.go",
              "line": 108
            }
          ]
        },
        {
          "name": "StatesMap",
          "anchor": "StatesMap",
          "decl": "type StatesMap map[string]*StateMachineDoc",
          "doc": "StatesMap is an in-memory StatesResolver keyed by path.\n",
          "file": "pkg/animclip/states_player.go",
          "line": 57,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "StateMachine",
              "anchor": "StatesMap.StateMachine",
              "recv": "StatesMap",
              "decl": "func (m StatesMap) StateMachine(path string) (*StateMachineDoc, error)",
              "doc": "StateMachine returns the document registered under path or an error when absent.\n",
              "file": "pkg/animclip/states_player.go",
              "line": 60
            }
          ]
        },
        {
          "name": "StatesResolver",
          "anchor": "StatesResolver",
          "decl": "type StatesResolver interface {\n\tStateMachine(path string) (*StateMachineDoc, error)\n}",
          "doc": "StatesResolver loads a *.states.yaml StateMachineDoc by its project-relative path.\n",
          "file": "pkg/animclip/states_player.go",
          "line": 52,
          "members": [
            {
              "name": "StateMachine",
              "anchor": "StatesResolver.StateMachine",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TransitionDoc",
          "anchor": "TransitionDoc",
          "decl": "type TransitionDoc struct {\n\t// From is the source state name, or \"*\" (AnyState) to match any state other than To.\n\tFrom string `yaml:\"from\" schema:\"required\"`\n\t// To is the target state name; it must name a state in States.\n\tTo string `yaml:\"to\" schema:\"required\"`\n\t// Label is an optional human-readable summary shown on the editor graph edge and LEAVING list.\n\tLabel string `yaml:\"label,omitempty\"`\n\t// When is an optional boolean expression over declared parameters, such as \"|move.x| > 0.1\" or \"jump && on_floor\".\n\tWhen string `yaml:\"when,omitempty\"`\n\t// OnEnd fires this transition when the source state's clip finishes playing (and When, if set, is also true).\n\tOnEnd bool `yaml:\"onEnd,omitempty\"`\n}",
          "doc": "TransitionDoc declares one directed transition from From (or \"*\" for any state) to To.\n",
          "file": "pkg/animclip/states_format.go",
          "line": 86,
          "members": [
            {
              "name": "From",
              "anchor": "TransitionDoc.From",
              "kind": "field",
              "doc": "From is the source state name, or \"*\" (AnyState) to match any state other than To."
            },
            {
              "name": "To",
              "anchor": "TransitionDoc.To",
              "kind": "field",
              "doc": "To is the target state name; it must name a state in States."
            },
            {
              "name": "Label",
              "anchor": "TransitionDoc.Label",
              "kind": "field",
              "doc": "Label is an optional human-readable summary shown on the editor graph edge and LEAVING list."
            },
            {
              "name": "When",
              "anchor": "TransitionDoc.When",
              "kind": "field",
              "doc": "When is an optional boolean expression over declared parameters, such as \"|move.x| > 0.1\" or \"jump && on_floor\"."
            },
            {
              "name": "OnEnd",
              "anchor": "TransitionDoc.OnEnd",
              "kind": "field",
              "doc": "OnEnd fires this transition when the source state's clip finishes playing (and When, if set, is also true)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TransitionEvent",
          "anchor": "TransitionEvent",
          "decl": "type TransitionEvent struct {\n\t// Time is the simulation time when the transition fired.\n\tTime time.Duration `json:\"time\"`\n\t// From is the state left.\n\tFrom string `json:\"from\"`\n\t// To is the state entered.\n\tTo string `json:\"to\"`\n}",
          "doc": "TransitionEvent records one state change observed during scripted simulation.\n",
          "file": "pkg/animclip/states_sim.go",
          "line": 147,
          "members": [
            {
              "name": "Time",
              "anchor": "TransitionEvent.Time",
              "kind": "field",
              "doc": "Time is the simulation time when the transition fired."
            },
            {
              "name": "From",
              "anchor": "TransitionEvent.From",
              "kind": "field",
              "doc": "From is the state left."
            },
            {
              "name": "To",
              "anchor": "TransitionEvent.To",
              "kind": "field",
              "doc": "To is the state entered."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/assets",
      "name": "assets",
      "dir": "pkg/assets",
      "page": "pkg/assets",
      "synopsis": "Package assets loads a game's atlases, sounds, images and custom data asynchronously without blocking display frames, organizes them into named per-scene groups with reactive progress, releases them when a scene ends, and provides a loading screen component.",
      "doc": "Package assets loads a game's atlases, sounds, images and custom data\nasynchronously without blocking display frames, organizes them into named\nper-scene groups with reactive progress, releases them when a scene ends,\nand provides a loading screen component.\n\nAsset files are read and parsed off the engine goroutine and delivered back\nthrough core.Scope.Post so animations and game loops keep ticking while\nassets load. Manager and Group methods are called on the engine's goroutine,\nas core and audio services are.\n\nKeeping decoded atlas images pinned outside NSGo's 64-source canvas cache\nwaits on nsgo-dev/nsgo#1127; today, image assets are warmed through\ncore.Scope.PrefetchImage and dropped for GC when their group is released.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "SkippedSound",
              "anchor": "SkippedSound"
            },
            {
              "name": "SkippedNoFile",
              "anchor": "SkippedNoFile"
            },
            {
              "name": "SkippedDensity",
              "anchor": "SkippedDensity"
            }
          ],
          "decl": "const (\n\t// SkippedSound marks a sound: sounds decode asynchronously on the platform, so they are not replaced in place.\n\tSkippedSound = \"sounds are not reloaded in place\"\n\t// SkippedNoFile marks an image with no file behind it, such as one registered with in-memory pixels, or, in ReloadGroup, one whose URI the group's reader cannot find.\n\tSkippedNoFile = \"no file to reload from\"\n\t// SkippedDensity marks an image file at a density the screen does not show, so replacing it would change nothing on screen.\n\tSkippedDensity = \"file is at a density the screen does not show\"\n)",
          "doc": "Reasons ReloadAsset and ReloadGroup give in ReloadedAsset.Skipped.\n",
          "file": "pkg/assets/reload.go",
          "line": 134
        },
        {
          "idents": [
            {
              "name": "StateUnloaded",
              "anchor": "StateUnloaded"
            },
            {
              "name": "StateLoading",
              "anchor": "StateLoading"
            },
            {
              "name": "StateLoaded",
              "anchor": "StateLoaded"
            },
            {
              "name": "StateFailed",
              "anchor": "StateFailed"
            }
          ],
          "decl": "const (\n\tStateUnloaded = \"unloaded\"\n\tStateLoading  = \"loading\"\n\tStateLoaded   = \"loaded\"\n\tStateFailed   = \"failed\"\n)",
          "doc": "Group lifecycle state names reported by GroupStats.State.\n",
          "file": "pkg/assets/stats.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "DefaultDLCChunkSize",
              "anchor": "DefaultDLCChunkSize"
            }
          ],
          "decl": "const DefaultDLCChunkSize = 32 * 1024",
          "doc": "DefaultDLCChunkSize is the default streaming read buffer size (32 KiB) used\nby DLCManager when DLCOptions.ChunkSize is zero or negative.\n",
          "file": "pkg/assets/dlc.go",
          "line": 32
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrIncompatibleBuild",
              "anchor": "ErrIncompatibleBuild"
            },
            {
              "name": "ErrHashMismatch",
              "anchor": "ErrHashMismatch"
            },
            {
              "name": "ErrInvalidSignature",
              "anchor": "ErrInvalidSignature"
            },
            {
              "name": "ErrCorruptPack",
              "anchor": "ErrCorruptPack"
            },
            {
              "name": "ErrSizeMismatch",
              "anchor": "ErrSizeMismatch"
            },
            {
              "name": "ErrPackTooLarge",
              "anchor": "ErrPackTooLarge"
            }
          ],
          "decl": "var (\n\t// ErrIncompatibleBuild reports that a pack's MinBuild/MaxBuild range does\n\t// not include the running application's AppBuild.\n\tErrIncompatibleBuild = errors.New(\"assets: pack incompatible with app build\")\n\t// ErrHashMismatch reports that a pack's SHA-256 digest does not match\n\t// PackSpec.SHA256.\n\tErrHashMismatch = errors.New(\"assets: pack sha256 mismatch\")\n\t// ErrInvalidSignature reports that a pack's Ed25519 signature failed\n\t// verification against DLCOptions.PublicKey.\n\tErrInvalidSignature = errors.New(\"assets: pack signature invalid\")\n\t// ErrCorruptPack reports that a pack archive is unreadable or not a valid\n\t// ZIP archive.\n\tErrCorruptPack = errors.New(\"assets: pack archive corrupt\")\n\t// ErrSizeMismatch reports that a pack's byte length does not match\n\t// PackSpec.Size.\n\tErrSizeMismatch = errors.New(\"assets: pack size mismatch\")\n\t// ErrPackTooLarge reports that a pack archive, or a file read from a mounted pack, would exceed PackLimits: a download without a PackSpec.Size that grows past MaxPackBytes, or an entry that decompresses past MaxFileBytes.\n\tErrPackTooLarge = errors.New(\"assets: pack exceeds its size limit\")\n)",
          "doc": "",
          "file": "pkg/assets/dlc.go",
          "line": 34
        }
      ],
      "funcs": [
        {
          "name": "EstimateAtlasBytes",
          "anchor": "EstimateAtlasBytes",
          "decl": "func EstimateAtlasBytes(a *sprite.Atlas, rawJSONBytes int64) int64",
          "doc": "EstimateAtlasBytes estimates the memory an atlas holds: rawJSONBytes (or a per-frame estimate when it is 0) plus the image bytes, which come from the image's pixels, data or size, or from the packed frame extents at 4 bytes per pixel when the image has only a URI. game/mcp uses it for atlases registered outside a Manager.\n",
          "file": "pkg/assets/stats.go",
          "line": 216
        },
        {
          "name": "LoadingView",
          "anchor": "LoadingView",
          "decl": "func LoadingView(cx *core.Scope, props LoadingScreenProps) core.Node",
          "doc": "LoadingView mounts a loading screen for props.Group on cx. It starts loading\nthe named group on mount, displays reactive progress (0%..100% with a\nprogress bar, or props.Render when set), and invokes props.OnReady or\nprops.OnError once loading finishes while cx is still mounted.\n\nThe once is per mount: a Render runs once under its scope, so OnReady fires again only when the view is mounted again, for example by a parent Dynamic that rebuilds it, and then immediately if the group is already loaded. Mounting the view for a group whose last load failed retries that load. Keep the view out of reactive branches that rebuild it, or make OnReady idempotent.\n",
          "file": "pkg/assets/loading.go",
          "line": 70
        },
        {
          "name": "SignPack",
          "anchor": "SignPack",
          "decl": "func SignPack(priv ed25519.PrivateKey, data []byte) (sha256Hex, signatureHex string)",
          "doc": "SignPack hashes data with SHA-256, signs the raw 32-byte digest with priv,\nand returns the hex-encoded SHA-256 digest and hex-encoded Ed25519 signature.\n",
          "file": "pkg/assets/dlc.go",
          "line": 223
        },
        {
          "name": "SignPackDigest",
          "anchor": "SignPackDigest",
          "decl": "func SignPackDigest(priv ed25519.PrivateKey, sha256Hex string) (string, error)",
          "doc": "SignPackDigest signs a hex-encoded SHA-256 digest with priv and returns the\nhex-encoded Ed25519 signature.\n",
          "file": "pkg/assets/dlc.go",
          "line": 231
        }
      ],
      "types": [
        {
          "name": "AssetStats",
          "anchor": "AssetStats",
          "decl": "type AssetStats struct {\n\tName     string\n\tKind     string // \"atlas\", \"sound\", \"image\", \"bytes\", \"custom\"\n\tURI      string\n\tImageURI string // atlas image URI when Kind == \"atlas\"\n\tLoaded   bool\n\tBytes    int64\n\tFrames   int // atlas frame count when loaded and Kind == \"atlas\"\n}",
          "doc": "AssetStats describes one registered asset inside a Group and its estimated in-memory size.\n",
          "file": "pkg/assets/stats.go",
          "line": 20,
          "members": [
            {
              "name": "Name",
              "anchor": "AssetStats.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AssetStats.Kind",
              "kind": "field",
              "doc": "\"atlas\", \"sound\", \"image\", \"bytes\", \"custom\""
            },
            {
              "name": "URI",
              "anchor": "AssetStats.URI",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageURI",
              "anchor": "AssetStats.ImageURI",
              "kind": "field",
              "doc": "atlas image URI when Kind == \"atlas\""
            },
            {
              "name": "Loaded",
              "anchor": "AssetStats.Loaded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "AssetStats.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "AssetStats.Frames",
              "kind": "field",
              "doc": "atlas frame count when loaded and Kind == \"atlas\""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CustomLoader",
          "anchor": "CustomLoader",
          "decl": "type CustomLoader func(ctx context.Context, data []byte) (any, error)",
          "doc": "CustomLoader parses raw asset bytes off the engine goroutine into a domain\nvalue such as a tilemap, bitmap font or JSON table.\n",
          "file": "pkg/assets/assets.go",
          "line": 33,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DLCManager",
          "anchor": "DLCManager",
          "decl": "type DLCManager struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DLCManager downloads, resumes, verifies, caches, and mounts DLC pack ZIP\narchives as fs.FS instances and assets.Groups.\n",
          "file": "pkg/assets/dlc.go",
          "line": 719,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDLCManager",
              "anchor": "NewDLCManager",
              "decl": "func NewDLCManager(opts DLCOptions) *DLCManager",
              "doc": "NewDLCManager returns a DLCManager configured with opts.\n",
              "file": "pkg/assets/dlc.go",
              "line": 741
            }
          ],
          "methods": [
            {
              "name": "Cache",
              "anchor": "DLCManager.Cache",
              "recv": "*DLCManager",
              "decl": "func (d *DLCManager) Cache() PackCache",
              "doc": "Cache returns the PackCache used by this DLCManager.\n",
              "file": "pkg/assets/dlc.go",
              "line": 772
            },
            {
              "name": "Fetch",
              "anchor": "DLCManager.Fetch",
              "recv": "*DLCManager",
              "decl": "func (d *DLCManager) Fetch(ctx context.Context, spec PackSpec, onProgress func(downloaded, total int64)) (fsys fs.FS, err error)",
              "doc": "Fetch ensures spec is compatible with AppBuild, checks and re-verifies any cached pack, downloads missing or resumed bytes via HTTP Range requests into a .part staging entry, strictly verifies size, SHA-256, Ed25519 signature, and ZIP structure, commits atomically to the cache, and returns the mounted ZIP archive as an fs.FS.\n\nThe returned fs.FS also implements io.Closer and fs.ReadFileFS. It reads through the one cache reader it was verified on, and each file as it decompresses, bounded by PackLimits. Close it when the pack is no longer used: that releases the cache entry for Remove; one that is never closed is released when it is garbage collected. FetchGroup closes the pack it mounts when the group is reset or mounted again.\n\nOn network or context interruption, the .part entry is preserved so a subsequent Fetch resumes via HTTP Range (\"bytes=<offset>-\"). A spec that could never verify (a missing ID, a negative Size, a malformed SHA256 or Signature) is refused before the cache is touched. A cached pack whose bytes do not match the spec's size or SHA-256, and a download that fails verification, are removed from the cache; a cached pack whose bytes match but whose signature or contents are refused is kept, because downloading it again would fetch the same bytes.\n",
              "file": "pkg/assets/dlc.go",
              "line": 823
            },
            {
              "name": "FetchGroup",
              "anchor": "DLCManager.FetchGroup",
              "recv": "*DLCManager",
              "decl": "func (d *DLCManager) FetchGroup(\n\tctx context.Context,\n\tloader *Manager,\n\tspec PackSpec,\n\tregisterFn func(g *Group, packFS fs.FS) error,\n\tonProgress func(downloaded, total int64),\n) (*Group, error)",
              "doc": "FetchGroup fetches and verifies spec, mounts the resulting ZIP fs.FS onto\nloader.Group(spec.Group) (or spec.ID when spec.Group is empty), invokes\nregisterFn on the engine goroutine to register assets in the group, and\nloads the group to completion.\n\nFetchGroup blocks until download and group loading finish or ctx (or\nloader's scope) is cancelled, so it should be called off the engine\ngoroutine.\n\nThe group owns the mounted pack: Group.Reset, Group.SetFS, a later FetchGroup into the same group and disposing loader's scope release it, and with it the cache entry for Remove.\n",
              "file": "pkg/assets/dlc.go",
              "line": 981
            },
            {
              "name": "Remove",
              "anchor": "DLCManager.Remove",
              "recv": "*DLCManager",
              "decl": "func (d *DLCManager) Remove(spec PackSpec) error",
              "doc": "Remove deletes both the cached pack and any partial download for spec.\n\nA pack that Fetch or FetchGroup mounted and that is still in use is not pulled from under its readers: its partial download goes at once, and the cached pack when the last mount is released, by closing the fs.FS Fetch returned or by resetting or re-mounting the group FetchGroup loaded (#546). A Fetch of the same pack before then keeps it.\n",
              "file": "pkg/assets/dlc.go",
              "line": 777
            }
          ]
        },
        {
          "name": "DLCOptions",
          "anchor": "DLCOptions",
          "decl": "type DLCOptions struct {\n\t// AppBuild is the running application's build number, checked against each\n\t// PackSpec's MinBuild and MaxBuild range.\n\tAppBuild int\n\t// PublicKey is the Ed25519 public key used to verify pack signatures over\n\t// each pack's 32-byte SHA-256 digest. Without it every pack is refused with ErrInvalidSignature unless AllowUnsigned is set.\n\tPublicKey ed25519.PublicKey\n\t// AllowUnsigned accepts packs without a signature when PublicKey is empty, checking only their size and SHA-256 from the PackSpec. Whoever supplies the PackSpec then chooses what is mounted, so set it only for development or when the specs ship inside the app (#546).\n\tAllowUnsigned bool\n\t// Cache stores completed packs and resumable .part downloads. When nil, a\n\t// new MemoryPackCache is used.\n\tCache PackCache\n\t// HTTPClient performs pack downloads. When nil, http.DefaultClient is used.\n\tHTTPClient *http.Client\n\t// ChunkSize sets the buffer size for streaming reads and progress updates.\n\t// When <= 0, DefaultDLCChunkSize (32 KiB) is used.\n\tChunkSize int\n\t// Limits caps how large a pack may be and what it may contain; zero fields use DefaultPackLimits. A pack over any limit is refused before it is mounted, a download stops as soon as it would pass MaxPackBytes, and a mounted pack reads each file as it decompresses, failing with ErrPackTooLarge past MaxFileBytes, so the caps also bound what reading an asset can allocate.\n\tLimits PackLimits\n}",
          "doc": "DLCOptions configures a DLCManager created by NewDLCManager.\n",
          "file": "pkg/assets/dlc.go",
          "line": 662,
          "members": [
            {
              "name": "AppBuild",
              "anchor": "DLCOptions.AppBuild",
              "kind": "field",
              "doc": "AppBuild is the running application's build number, checked against each\nPackSpec's MinBuild and MaxBuild range."
            },
            {
              "name": "PublicKey",
              "anchor": "DLCOptions.PublicKey",
              "kind": "field",
              "doc": "PublicKey is the Ed25519 public key used to verify pack signatures over\neach pack's 32-byte SHA-256 digest. Without it every pack is refused with ErrInvalidSignature unless AllowUnsigned is set."
            },
            {
              "name": "AllowUnsigned",
              "anchor": "DLCOptions.AllowUnsigned",
              "kind": "field",
              "doc": "AllowUnsigned accepts packs without a signature when PublicKey is empty, checking only their size and SHA-256 from the PackSpec. Whoever supplies the PackSpec then chooses what is mounted, so set it only for development or when the specs ship inside the app (#546)."
            },
            {
              "name": "Cache",
              "anchor": "DLCOptions.Cache",
              "kind": "field",
              "doc": "Cache stores completed packs and resumable .part downloads. When nil, a\nnew MemoryPackCache is used."
            },
            {
              "name": "HTTPClient",
              "anchor": "DLCOptions.HTTPClient",
              "kind": "field",
              "doc": "HTTPClient performs pack downloads. When nil, http.DefaultClient is used."
            },
            {
              "name": "ChunkSize",
              "anchor": "DLCOptions.ChunkSize",
              "kind": "field",
              "doc": "ChunkSize sets the buffer size for streaming reads and progress updates.\nWhen <= 0, DefaultDLCChunkSize (32 KiB) is used."
            },
            {
              "name": "Limits",
              "anchor": "DLCOptions.Limits",
              "kind": "field",
              "doc": "Limits caps how large a pack may be and what it may contain; zero fields use DefaultPackLimits. A pack over any limit is refused before it is mounted, a download stops as soon as it would pass MaxPackBytes, and a mounted pack reads each file as it decompresses, failing with ErrPackTooLarge past MaxFileBytes, so the caps also bound what reading an asset can allocate."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DirPackCache",
          "anchor": "DirPackCache",
          "decl": "type DirPackCache struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DirPackCache stores DLC packs on the local filesystem using \".pack.part\"\nstaging files and atomic os.Rename commits into \".pack\" files.\n",
          "file": "pkg/assets/dlc.go",
          "line": 269,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDirPackCache",
              "anchor": "NewDirPackCache",
              "decl": "func NewDirPackCache(dir string) *DirPackCache",
              "doc": "NewDirPackCache returns a filesystem-backed PackCache rooted at dir.\nDirectories are created lazily on first write.\n",
              "file": "pkg/assets/dlc.go",
              "line": 276
            }
          ],
          "methods": [
            {
              "name": "CommitPart",
              "anchor": "DirPackCache.CommitPart",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) CommitPart(key string) error",
              "doc": "CommitPart implements PackCache via atomic os.Rename.\n",
              "file": "pkg/assets/dlc.go",
              "line": 385
            },
            {
              "name": "Dir",
              "anchor": "DirPackCache.Dir",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) Dir() string",
              "doc": "Dir returns the root directory of the cache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 281
            },
            {
              "name": "Has",
              "anchor": "DirPackCache.Has",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) Has(key string) bool",
              "doc": "Has reports whether a completed pack exists for key.\n",
              "file": "pkg/assets/dlc.go",
              "line": 284
            },
            {
              "name": "HasPart",
              "anchor": "DirPackCache.HasPart",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) HasPart(key string) bool",
              "doc": "HasPart reports whether a partial \".part\" file exists for key.\n",
              "file": "pkg/assets/dlc.go",
              "line": 294
            },
            {
              "name": "Open",
              "anchor": "DirPackCache.Open",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) Open(key string) (io.ReaderAt, int64, error)",
              "doc": "Open implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 304
            },
            {
              "name": "OpenPartReader",
              "anchor": "DirPackCache.OpenPartReader",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) OpenPartReader(key string) (io.ReaderAt, int64, error)",
              "doc": "OpenPartReader implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 366
            },
            {
              "name": "OpenPartWriter",
              "anchor": "DirPackCache.OpenPartWriter",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) OpenPartWriter(key string, appendMode bool) (io.WriteCloser, error)",
              "doc": "OpenPartWriter implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 342
            },
            {
              "name": "PartSize",
              "anchor": "DirPackCache.PartSize",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) PartSize(key string) (int64, error)",
              "doc": "PartSize implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 323
            },
            {
              "name": "Remove",
              "anchor": "DirPackCache.Remove",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) Remove(key string) error",
              "doc": "Remove implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 413
            },
            {
              "name": "RemovePart",
              "anchor": "DirPackCache.RemovePart",
              "recv": "*DirPackCache",
              "decl": "func (c *DirPackCache) RemovePart(key string) error",
              "doc": "RemovePart implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 399
            }
          ]
        },
        {
          "name": "Group",
          "anchor": "Group",
          "decl": "type Group struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Group is a named collection of assets loaded and released together, typically\none per scene. Its progress and status methods are backed by core.Signal so\nNSGo views and effects update automatically as assets load or are released.\n",
          "file": "pkg/assets/group.go",
          "line": 52,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AddAtlas",
              "anchor": "Group.AddAtlas",
              "recv": "*Group",
              "decl": "func (g *Group) AddAtlas(name, jsonURI string, img core.ImageSource) *Group",
              "doc": "AddAtlas adds a sprite atlas whose JSON is read from jsonURI and parsed with\nsprite.LoadAtlas for img. When img names a URI without inline Data or Pixels,\nLoad also prefetches img via core.Scope.PrefetchImage (in nsgotest, register\nthe URI in App.ImageSizes).\n",
              "file": "pkg/assets/group.go",
              "line": 122
            },
            {
              "name": "AddBytes",
              "anchor": "Group.AddBytes",
              "recv": "*Group",
              "decl": "func (g *Group) AddBytes(name, uri string) *Group",
              "doc": "AddBytes adds a raw byte asset read from uri off the engine goroutine.\n",
              "file": "pkg/assets/group.go",
              "line": 155
            },
            {
              "name": "AddCustom",
              "anchor": "Group.AddCustom",
              "recv": "*Group",
              "decl": "func (g *Group) AddCustom(name, uri string, parse func([]byte) (any, error), release func(any)) *Group",
              "doc": "AddCustom adds an arbitrary asset read from uri and parsed off the engine\ngoroutine by parse, such as a tilemap, bitmap font or JSON table. When\nrelease is non-nil, it is invoked when the group is released or when a late\nload is discarded after release or scope disposal.\n",
              "file": "pkg/assets/group.go",
              "line": 167
            },
            {
              "name": "AddCustomLoader",
              "anchor": "Group.AddCustomLoader",
              "recv": "*Group",
              "decl": "func (g *Group) AddCustomLoader(name, uri string, load CustomLoader, release func(any)) *Group",
              "doc": "AddCustomLoader is like AddCustom, passing the load's cancellable context to\nload so long parses can stop promptly on Release or scope disposal.\n",
              "file": "pkg/assets/group.go",
              "line": 185
            },
            {
              "name": "AddImage",
              "anchor": "Group.AddImage",
              "recv": "*Group",
              "decl": "func (g *Group) AddImage(name string, src core.ImageSource) *Group",
              "doc": "AddImage adds an image source. When src names a URI without inline Data or\nPixels, Load prefetches it via core.Scope.PrefetchImage (in nsgotest,\nregister the URI in App.ImageSizes).\n\nKeeping decoded images pinned outside NSGo's 64-source canvas cache waits on\nnsgo-dev/nsgo#1127.\n",
              "file": "pkg/assets/group.go",
              "line": 146
            },
            {
              "name": "AddSound",
              "anchor": "Group.AddSound",
              "recv": "*Group",
              "decl": "func (g *Group) AddSound(name string, src audio.Source) *Group",
              "doc": "AddSound adds a short sound decoded through audio.LoadSound.\n",
              "file": "pkg/assets/group.go",
              "line": 132
            },
            {
              "name": "Atlas",
              "anchor": "Group.Atlas",
              "recv": "*Group",
              "decl": "func (g *Group) Atlas(name string) (*sprite.Atlas, bool)",
              "doc": "Atlas returns the loaded atlas named name, if present in the group.\n",
              "file": "pkg/assets/group.go",
              "line": 233
            },
            {
              "name": "Bytes",
              "anchor": "Group.Bytes",
              "recv": "*Group",
              "decl": "func (g *Group) Bytes(name string) ([]byte, bool)",
              "doc": "Bytes returns the loaded raw bytes named name, if present in the group.\n",
              "file": "pkg/assets/group.go",
              "line": 251
            },
            {
              "name": "Done",
              "anchor": "Group.Done",
              "recv": "*Group",
              "decl": "func (g *Group) Done() bool",
              "doc": "Done reports whether every asset in the group finished loading without error.\nRead in a reactive computation, it subscribes to updates.\n",
              "file": "pkg/assets/group.go",
              "line": 222
            },
            {
              "name": "Err",
              "anchor": "Group.Err",
              "recv": "*Group",
              "decl": "func (g *Group) Err() error",
              "doc": "Err returns the error that stopped the group's last load, or nil. Read in a\nreactive computation, it subscribes to updates.\n",
              "file": "pkg/assets/group.go",
              "line": 230
            },
            {
              "name": "FS",
              "anchor": "Group.FS",
              "recv": "*Group",
              "decl": "func (g *Group) FS() fs.FS",
              "doc": "FS returns the file system mounted on this group via SetFS, or nil.\n",
              "file": "pkg/assets/group.go",
              "line": 116
            },
            {
              "name": "Get",
              "anchor": "Group.Get",
              "recv": "*Group",
              "decl": "func (g *Group) Get(name string) (any, bool)",
              "doc": "Get returns any loaded asset named name (custom, atlas, sound, image or raw\nbytes), if present in the group.\n",
              "file": "pkg/assets/group.go",
              "line": 258
            },
            {
              "name": "Image",
              "anchor": "Group.Image",
              "recv": "*Group",
              "decl": "func (g *Group) Image(name string) (core.ImageSource, bool)",
              "doc": "Image returns the loaded image source named name, if present in the group.\n",
              "file": "pkg/assets/group.go",
              "line": 245
            },
            {
              "name": "Load",
              "anchor": "Group.Load",
              "recv": "*Group",
              "decl": "func (g *Group) Load(onDone func(error))",
              "doc": "Load starts loading every asset in the group asynchronously and invokes\nonDone on the engine goroutine once finished.\n\nLoad is idempotent: if the group is already loaded, onDone(nil) runs\nimmediately; if it is currently loading, onDone is queued onto the active\nload. An empty group completes immediately with progress 1.\n",
              "file": "pkg/assets/group.go",
              "line": 283
            },
            {
              "name": "Loaded",
              "anchor": "Group.Loaded",
              "recv": "*Group",
              "decl": "func (g *Group) Loaded() int",
              "doc": "Loaded returns how many assets in the group have finished loading. Read in a\nreactive computation, it subscribes to updates.\n",
              "file": "pkg/assets/group.go",
              "line": 214
            },
            {
              "name": "Loading",
              "anchor": "Group.Loading",
              "recv": "*Group",
              "decl": "func (g *Group) Loading() bool",
              "doc": "Loading reports whether the group is currently loading. Read in a reactive\ncomputation, it subscribes to updates.\n",
              "file": "pkg/assets/group.go",
              "line": 226
            },
            {
              "name": "Name",
              "anchor": "Group.Name",
              "recv": "*Group",
              "decl": "func (g *Group) Name() string",
              "doc": "Name returns the group's name.\n",
              "file": "pkg/assets/group.go",
              "line": 102
            },
            {
              "name": "Progress",
              "anchor": "Group.Progress",
              "recv": "*Group",
              "decl": "func (g *Group) Progress() float64",
              "doc": "Progress returns loading progress in [0, 1]. Read in a reactive computation,\nit subscribes to progress updates.\n",
              "file": "pkg/assets/group.go",
              "line": 210
            },
            {
              "name": "Release",
              "anchor": "Group.Release",
              "recv": "*Group",
              "decl": "func (g *Group) Release()",
              "doc": "Release closes every loaded *audio.Sound in the group (ignoring already-closed sounds), invokes custom release hooks, drops all atlas, image and byte references for GC, cancels any in-flight load, and resets progress to 0 so the group can be loaded again later. It keeps the group's specs and mounted file system, so a DLC pack stays mounted for the next Load.\n\nKeeping decoded atlas images pinned outside NSGo's 64-source canvas cache\nwaits on nsgo-dev/nsgo#1127.\n",
              "file": "pkg/assets/group.go",
              "line": 658
            },
            {
              "name": "Reset",
              "anchor": "Group.Reset",
              "recv": "*Group",
              "decl": "func (g *Group) Reset()",
              "doc": "Reset drops the group's asset specs and loaded resources, cancels any in-flight load, and leaves the group idle so a new asset set (such as a freshly mounted DLC pack) can be registered into it. It also unmounts the group's file system, releasing a pack DLCManager.FetchGroup mounted. Concurrent mounts of the same group must be serialized by the caller.\n",
              "file": "pkg/assets/group.go",
              "line": 640
            },
            {
              "name": "SetFS",
              "anchor": "Group.SetFS",
              "recv": "*Group",
              "decl": "func (g *Group) SetFS(fsys fs.FS) *Group",
              "doc": "SetFS mounts fsys as the primary file system for this group's file-backed assets, such as a downloaded DLC zip archive. When set, asset URIs in this group are read from fsys first and fall back to the Manager's asset reader if a file is not present in fsys.\n\nReplacing the pack DLCManager.FetchGroup mounted on the group releases that pack, as Reset does; setting that same pack again keeps it.\n",
              "file": "pkg/assets/group.go",
              "line": 107
            },
            {
              "name": "Sound",
              "anchor": "Group.Sound",
              "recv": "*Group",
              "decl": "func (g *Group) Sound(name string) (*audio.Sound, bool)",
              "doc": "Sound returns the loaded sound named name, if present in the group.\n",
              "file": "pkg/assets/group.go",
              "line": 239
            },
            {
              "name": "Stats",
              "anchor": "Group.Stats",
              "recv": "*Group",
              "decl": "func (g *Group) Stats() GroupStats",
              "doc": "Stats returns a read-only snapshot of g's load state, registered assets, and estimated memory usage in bytes. Calling Stats does not subscribe the caller to reactive signals.\n",
              "file": "pkg/assets/stats.go",
              "line": 81
            },
            {
              "name": "Total",
              "anchor": "Group.Total",
              "recv": "*Group",
              "decl": "func (g *Group) Total() int",
              "doc": "Total returns the number of assets in the group. Read in a reactive\ncomputation, it subscribes to updates.\n",
              "file": "pkg/assets/group.go",
              "line": 218
            }
          ]
        },
        {
          "name": "GroupStats",
          "anchor": "GroupStats",
          "decl": "type GroupStats struct {\n\tName   string\n\tState  string // StateUnloaded, StateLoading, StateLoaded, or StateFailed\n\tLoaded int\n\tTotal  int\n\tBytes  int64\n\tError  string\n\tAssets []AssetStats\n}",
          "doc": "GroupStats describes a Group's current load state, assets and estimated memory footprint.\n",
          "file": "pkg/assets/stats.go",
          "line": 31,
          "members": [
            {
              "name": "Name",
              "anchor": "GroupStats.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "GroupStats.State",
              "kind": "field",
              "doc": "StateUnloaded, StateLoading, StateLoaded, or StateFailed"
            },
            {
              "name": "Loaded",
              "anchor": "GroupStats.Loaded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Total",
              "anchor": "GroupStats.Total",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "GroupStats.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "GroupStats.Error",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Assets",
              "anchor": "GroupStats.Assets",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LoadingScreen",
          "anchor": "LoadingScreen",
          "decl": "type LoadingScreen struct {\n\tManager *Manager\n\tGroup   string\n\tTitle   string\n\tOnReady func()\n\tOnError func(error)\n\t// View replaces the default loading view when non-nil, re-rendering\n\t// reactively as progress or error changes.\n\tView   func(progress float64, err error) core.Node\n\tStyle  core.Style\n\tTestID string\n}",
          "doc": "LoadingScreen is a core.Node component that starts loading a named asset\ngroup on mount, shows reactive loading progress, and calls OnReady or OnError\nonce loading finishes. Set View to replace the default progress UI.\n",
          "file": "pkg/assets/loading.go",
          "line": 37,
          "members": [
            {
              "name": "Manager",
              "anchor": "LoadingScreen.Manager",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Group",
              "anchor": "LoadingScreen.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "LoadingScreen.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnReady",
              "anchor": "LoadingScreen.OnReady",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnError",
              "anchor": "LoadingScreen.OnError",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "View",
              "anchor": "LoadingScreen.View",
              "kind": "field",
              "doc": "View replaces the default loading view when non-nil, re-rendering\nreactively as progress or error changes."
            },
            {
              "name": "Style",
              "anchor": "LoadingScreen.Style",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestID",
              "anchor": "LoadingScreen.TestID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Render",
              "anchor": "LoadingScreen.Render",
              "recv": "LoadingScreen",
              "decl": "func (s LoadingScreen) Render(cx *core.Scope) core.Node",
              "doc": "Render implements core.Node.\n",
              "file": "pkg/assets/loading.go",
              "line": 51
            }
          ]
        },
        {
          "name": "LoadingScreenProps",
          "anchor": "LoadingScreenProps",
          "decl": "type LoadingScreenProps struct {\n\t// Manager holds the asset group to load.\n\tManager *Manager\n\t// Group is the name of the asset group to load on mount.\n\tGroup string\n\t// Title is shown above the progress bar in the default view; \"Loading\" when\n\t// empty.\n\tTitle string\n\t// OnReady runs on the engine goroutine once the group finishes loading\n\t// without error.\n\tOnReady func()\n\t// OnError runs on the engine goroutine if loading the group fails.\n\tOnError func(error)\n\t// Render replaces the default loading view when non-nil. It re-renders\n\t// reactively as the group's progress or error changes.\n\tRender func(progress float64, err error) core.Node\n\t// Style merges onto the default outer container view.\n\tStyle core.Style\n\t// TestID sets the default outer container's TestID.\n\tTestID string\n}",
          "doc": "LoadingScreenProps configures LoadingScreen and LoadingView.\n",
          "file": "pkg/assets/loading.go",
          "line": 12,
          "members": [
            {
              "name": "Manager",
              "anchor": "LoadingScreenProps.Manager",
              "kind": "field",
              "doc": "Manager holds the asset group to load."
            },
            {
              "name": "Group",
              "anchor": "LoadingScreenProps.Group",
              "kind": "field",
              "doc": "Group is the name of the asset group to load on mount."
            },
            {
              "name": "Title",
              "anchor": "LoadingScreenProps.Title",
              "kind": "field",
              "doc": "Title is shown above the progress bar in the default view; \"Loading\" when\nempty."
            },
            {
              "name": "OnReady",
              "anchor": "LoadingScreenProps.OnReady",
              "kind": "field",
              "doc": "OnReady runs on the engine goroutine once the group finishes loading\nwithout error."
            },
            {
              "name": "OnError",
              "anchor": "LoadingScreenProps.OnError",
              "kind": "field",
              "doc": "OnError runs on the engine goroutine if loading the group fails."
            },
            {
              "name": "Render",
              "anchor": "LoadingScreenProps.Render",
              "kind": "field",
              "doc": "Render replaces the default loading view when non-nil. It re-renders\nreactively as the group's progress or error changes."
            },
            {
              "name": "Style",
              "anchor": "LoadingScreenProps.Style",
              "kind": "field",
              "doc": "Style merges onto the default outer container view."
            },
            {
              "name": "TestID",
              "anchor": "LoadingScreenProps.TestID",
              "kind": "field",
              "doc": "TestID sets the default outer container's TestID."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Manager",
          "anchor": "Manager",
          "decl": "type Manager struct {\n\t// ReadAsset reads raw bytes for uri off the engine goroutine. When nil,\n\t// Manager falls back to WithFS or local files under \"assets/\".\n\tReadAsset func(ctx context.Context, uri string) ([]byte, error)\n\t// contains filtered or unexported fields\n}",
          "doc": "Manager loads game assets asynchronously under a scope, groups them by scene\nwith reactive progress, and releases them when a group or the scope ends.\n\nReadAsset may be replaced before loading starts; when nil, Manager reads\n\"asset:\" URIs from the FS given to WithFS, or from the local \"assets\"\ndirectory on disk.\n",
          "file": "pkg/assets/assets.go",
          "line": 56,
          "members": [
            {
              "name": "ReadAsset",
              "anchor": "Manager.ReadAsset",
              "kind": "field",
              "doc": "ReadAsset reads raw bytes for uri off the engine goroutine. When nil,\nManager falls back to WithFS or local files under \"assets/\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewManager",
              "anchor": "NewManager",
              "decl": "func NewManager(cx *core.Scope, opts ...Option) *Manager",
              "doc": "NewManager returns an asset manager owned by cx. When cx is disposed, any\nin-flight loads are cancelled, late completions release their resources\ninstead of calling callbacks, and every loaded group is released.\n",
              "file": "pkg/assets/assets.go",
              "line": 87
            }
          ],
          "methods": [
            {
              "name": "Atlas",
              "anchor": "Manager.Atlas",
              "recv": "*Manager",
              "decl": "func (m *Manager) Atlas(name string) (*sprite.Atlas, bool)",
              "doc": "Atlas returns the loaded atlas named name from the most recently registered\ngroup that holds it.\n",
              "file": "pkg/assets/assets.go",
              "line": 153
            },
            {
              "name": "Bytes",
              "anchor": "Manager.Bytes",
              "recv": "*Manager",
              "decl": "func (m *Manager) Bytes(name string) ([]byte, bool)",
              "doc": "Bytes returns the loaded raw bytes named name from the most recently\nregistered group that holds it.\n",
              "file": "pkg/assets/assets.go",
              "line": 192
            },
            {
              "name": "Disposed",
              "anchor": "Manager.Disposed",
              "recv": "*Manager",
              "decl": "func (m *Manager) Disposed() bool",
              "doc": "Disposed reports whether the manager's owning scope has been disposed.\n",
              "file": "pkg/assets/stats.go",
              "line": 42
            },
            {
              "name": "Get",
              "anchor": "Manager.Get",
              "recv": "*Manager",
              "decl": "func (m *Manager) Get(name string) (any, bool)",
              "doc": "Get returns the loaded asset named name (custom, atlas, sound, image or raw\nbytes) from the most recently registered group that holds it.\n",
              "file": "pkg/assets/assets.go",
              "line": 205
            },
            {
              "name": "Group",
              "anchor": "Manager.Group",
              "recv": "*Manager",
              "decl": "func (m *Manager) Group(name string) *Group",
              "doc": "Group returns the named asset group, creating it under the manager's scope\nif it does not yet exist.\n",
              "file": "pkg/assets/assets.go",
              "line": 110
            },
            {
              "name": "GroupNames",
              "anchor": "Manager.GroupNames",
              "recv": "*Manager",
              "decl": "func (m *Manager) GroupNames() []string",
              "doc": "GroupNames returns the names of all registered groups in registration order.\n",
              "file": "pkg/assets/stats.go",
              "line": 50
            },
            {
              "name": "GroupStats",
              "anchor": "Manager.GroupStats",
              "recv": "*Manager",
              "decl": "func (m *Manager) GroupStats() []GroupStats",
              "doc": "GroupStats returns a read-only stats snapshot for every registered group in registration order. Reading GroupStats does not subscribe the caller to reactive signals.\n",
              "file": "pkg/assets/stats.go",
              "line": 67
            },
            {
              "name": "Image",
              "anchor": "Manager.Image",
              "recv": "*Manager",
              "decl": "func (m *Manager) Image(name string) (core.ImageSource, bool)",
              "doc": "Image returns the loaded image source named name from the most recently\nregistered group that holds it.\n",
              "file": "pkg/assets/assets.go",
              "line": 179
            },
            {
              "name": "LoadAtlas",
              "anchor": "Manager.LoadAtlas",
              "recv": "*Manager",
              "decl": "func (m *Manager) LoadAtlas(jsonURI string, img core.ImageSource, done func(*sprite.Atlas, error))",
              "doc": "LoadAtlas reads jsonURI and parses it with sprite.LoadAtlas off the engine\ngoroutine, and prefetches img through core.Scope.PrefetchImage when img names\na URI without inline Data or Pixels (in nsgotest, register the URI in\nApp.ImageSizes). It calls done on the engine goroutine once ready.\n",
              "file": "pkg/assets/assets.go",
              "line": 242
            },
            {
              "name": "LoadBytes",
              "anchor": "Manager.LoadBytes",
              "recv": "*Manager",
              "decl": "func (m *Manager) LoadBytes(uri string, done func([]byte, error))",
              "doc": "LoadBytes reads uri off the engine goroutine and calls done on the engine\ngoroutine with its bytes or error. Nothing runs if the manager's scope is\ndisposed before completion.\n",
              "file": "pkg/assets/assets.go",
              "line": 219
            },
            {
              "name": "LoadCustom",
              "anchor": "Manager.LoadCustom",
              "recv": "*Manager",
              "decl": "func (m *Manager) LoadCustom(uri string, load CustomLoader, closeFn func(any), done func(any, error))",
              "doc": "LoadCustom reads uri and parses it with load off the engine goroutine, then\ncalls done on the engine goroutine. If the manager's scope is disposed before\ndone runs (or done is nil), closeFn is called on the loaded value so nothing\nleaks.\n",
              "file": "pkg/assets/assets.go",
              "line": 339
            },
            {
              "name": "LoadGroup",
              "anchor": "Manager.LoadGroup",
              "recv": "*Manager",
              "decl": "func (m *Manager) LoadGroup(name string, onDone func(error))",
              "doc": "LoadGroup starts loading the named group asynchronously and calls onDone on\nthe engine goroutine when loading finishes. Calling LoadGroup on a group that\nis already loaded calls onDone(nil) immediately; calling it while the group\nis loading attaches onDone to the in-flight load. An empty group completes\nimmediately with progress 1.\n",
              "file": "pkg/assets/assets.go",
              "line": 125
            },
            {
              "name": "LoadSound",
              "anchor": "Manager.LoadSound",
              "recv": "*Manager",
              "decl": "func (m *Manager) LoadSound(src audio.Source, done func(*audio.Sound, error))",
              "doc": "LoadSound loads src through audio.LoadSound under the manager's scope and\ncalls done on the engine goroutine. If the scope is disposed before loading\ncompletes, any loaded sound is closed and done is not called.\n",
              "file": "pkg/assets/assets.go",
              "line": 314
            },
            {
              "name": "LookupGroup",
              "anchor": "Manager.LookupGroup",
              "recv": "*Manager",
              "decl": "func (m *Manager) LookupGroup(name string) (*Group, bool)",
              "doc": "LookupGroup returns the existing group named name without creating one when absent.\n",
              "file": "pkg/assets/stats.go",
              "line": 58
            },
            {
              "name": "ReleaseAll",
              "anchor": "Manager.ReleaseAll",
              "recv": "*Manager",
              "decl": "func (m *Manager) ReleaseAll()",
              "doc": "ReleaseAll releases every group registered on the manager.\n",
              "file": "pkg/assets/assets.go",
              "line": 143
            },
            {
              "name": "ReleaseGroup",
              "anchor": "Manager.ReleaseGroup",
              "recv": "*Manager",
              "decl": "func (m *Manager) ReleaseGroup(name string)",
              "doc": "ReleaseGroup releases every loaded asset in the named group: closes every\nloaded *audio.Sound, invokes custom release hooks, drops atlas, image and\nbyte references for GC, cancels any in-flight load for the group, and resets\nprogress to 0 so the group can be loaded again later.\n\nKeeping decoded atlas images pinned outside NSGo's 64-source canvas cache\nwaits on nsgo-dev/nsgo#1127.\n",
              "file": "pkg/assets/assets.go",
              "line": 136
            },
            {
              "name": "Reload",
              "anchor": "Manager.Reload",
              "recv": "*Manager",
              "decl": "func (m *Manager) Reload(uri string, data []byte) ([]string, error)",
              "doc": "Reload replaces the loaded assets that were read from uri with data, the file's new contents, and returns the names of the assets it replaced, in the order of their groups and of the assets in each; hot reload (tooling/hotreload's Watcher.WatchAssets) calls it when a file changes on disk. It runs on the engine goroutine, as the Manager's other methods do.\n\nAn atlas whose JSON is uri is parsed again with sprite.LoadAtlas, and one whose image is uri draws data from then on, its frames unchanged; either way the *sprite.Atlas the group holds is updated in place, so code that kept the pointer sees the edit. An image whose source is uri shows data, and raw bytes read from uri become data. For an image, an atlas's too, that ships in several densities (core.ImageSource.Scales), uri is the file the screen's pixel ratio picks, such as \"asset:hero@2x.png\" on a 2x screen, and the image keeps that file's name and so its density; saving a density the screen does not show changes nothing. Sounds and custom assets are not replaced. Assets a group has not loaded are skipped, as are an atlas's JSON and raw bytes that a group reads from the file system SetFS mounted on it, such as a DLC pack overriding the base file at uri, and an atlas whose new JSON does not parse keeps its previous frames and adds its error to the one returned.\n\nWhen it replaces anything, Reload increments Revision, so a core.Canvas or core.Effect that reads Revision draws or runs again.\n",
              "file": "pkg/assets/reload.go",
              "line": 22
            },
            {
              "name": "ReloadAsset",
              "anchor": "Manager.ReloadAsset",
              "recv": "*Manager",
              "decl": "func (m *Manager) ReloadAsset(ctx context.Context, groupName, key string) ([]ReloadedAsset, error)",
              "doc": "ReloadAsset reloads the loaded assets that match key by asset name, URI or relative path, reading fresh bytes through each group's reader (the group's FS, Manager.ReadAsset, the Manager's FS or the local assets/ directory). When groupName is non-empty, only that group is searched. It returns an empty slice and a nil error when no loaded asset matches key, and an error when groupName names no group.\n\nThe reads, atlas parses and custom loaders run off the engine goroutine, as they do in Group.Load, while ReloadAsset waits for them, so a reader or loader must not wait on the engine goroutine. When ctx is done first, ReloadAsset returns ctx's error and changes nothing. The results are applied on the engine goroutine: an atlas is updated in place (*cur = *next), so the *sprite.Atlas pointers the game holds stay valid, and a failed read or parse leaves the previous asset in place and is reported both in the item's Err and in the joined error. Sounds, images with no file behind them and files at a density the screen does not show are reported in Skipped and left unchanged. Revision goes up by one when at least one asset was replaced.\n\nCall ReloadAsset on the engine goroutine.\n",
              "file": "pkg/assets/reload.go",
              "line": 148
            },
            {
              "name": "ReloadGroup",
              "anchor": "Manager.ReloadGroup",
              "recv": "*Manager",
              "decl": "func (m *Manager) ReloadGroup(ctx context.Context, groupName string) ([]ReloadedAsset, error)",
              "doc": "ReloadGroup reloads every loaded asset in the named group in place, as ReloadAsset does for one key. Images whose file the group's reader cannot find are reported as skipped rather than failed, so a group that mixes files with generated textures reloads cleanly.\n\nCall ReloadGroup on the engine goroutine.\n",
              "file": "pkg/assets/reload.go",
              "line": 188
            },
            {
              "name": "Revision",
              "anchor": "Manager.Revision",
              "recv": "*Manager",
              "decl": "func (m *Manager) Revision() int",
              "doc": "Revision counts the Reload, ReloadAsset and ReloadGroup calls that replaced at least one asset; each such call adds one. Reading it inside a core.Canvas Draw callback or a core.Effect subscribes to later reloads.\n",
              "file": "pkg/assets/reload.go",
              "line": 108
            },
            {
              "name": "Sound",
              "anchor": "Manager.Sound",
              "recv": "*Manager",
              "decl": "func (m *Manager) Sound(name string) (*audio.Sound, bool)",
              "doc": "Sound returns the loaded sound named name from the most recently registered\ngroup that holds it.\n",
              "file": "pkg/assets/assets.go",
              "line": 166
            }
          ]
        },
        {
          "name": "MemoryPackCache",
          "anchor": "MemoryPackCache",
          "decl": "type MemoryPackCache struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MemoryPackCache is an in-memory PackCache that works on every target\nincluding Web/WASM and unit tests.\n\nA pack is held once: readers share the stored bytes, which are never written after they are stored, and CommitPart moves the partial download into place instead of copying it (#546).\n",
          "file": "pkg/assets/dlc.go",
          "line": 532,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMemoryPackCache",
              "anchor": "NewMemoryPackCache",
              "decl": "func NewMemoryPackCache() *MemoryPackCache",
              "doc": "NewMemoryPackCache returns an empty in-memory PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 539
            }
          ],
          "methods": [
            {
              "name": "CommitPart",
              "anchor": "MemoryPackCache.CommitPart",
              "recv": "*MemoryPackCache",
              "decl": "func (c *MemoryPackCache) CommitPart(key string) error",
              "doc": "CommitPart implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 609
            },
            {
              "name": "Has",
              "anchor": "MemoryPackCache.Has",
              "recv": "*MemoryPackCache",
              "decl": "func (c *MemoryPackCache) Has(key string) bool",
              "doc": "Has reports whether a completed pack exists for key.\n",
              "file": "pkg/assets/dlc.go",
              "line": 547
            },
            {
              "name": "HasPart",
              "anchor": "MemoryPackCache.HasPart",
              "recv": "*MemoryPackCache",
              "decl": "func (c *MemoryPackCache) HasPart(key string) bool",
              "doc": "HasPart reports whether a partial download exists for key.\n",
              "file": "pkg/assets/dlc.go",
              "line": 555
            },
            {
              "name": "Open",
              "anchor": "MemoryPackCache.Open",
              "recv": "*MemoryPackCache",
              "decl": "func (c *MemoryPackCache) Open(key string) (io.ReaderAt, int64, error)",
              "doc": "Open implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 563
            },
            {
              "name": "OpenPartReader",
              "anchor": "MemoryPackCache.OpenPartReader",
              "recv": "*MemoryPackCache",
              "decl": "func (c *MemoryPackCache) OpenPartReader(key string) (io.ReaderAt, int64, error)",
              "doc": "OpenPartReader implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 597
            },
            {
              "name": "OpenPartWriter",
              "anchor": "MemoryPackCache.OpenPartWriter",
              "recv": "*MemoryPackCache",
              "decl": "func (c *MemoryPackCache) OpenPartWriter(key string, appendMode bool) (io.WriteCloser, error)",
              "doc": "OpenPartWriter implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 582
            },
            {
              "name": "PartSize",
              "anchor": "MemoryPackCache.PartSize",
              "recv": "*MemoryPackCache",
              "decl": "func (c *MemoryPackCache) PartSize(key string) (int64, error)",
              "doc": "PartSize implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 574
            },
            {
              "name": "Remove",
              "anchor": "MemoryPackCache.Remove",
              "recv": "*MemoryPackCache",
              "decl": "func (c *MemoryPackCache) Remove(key string) error",
              "doc": "Remove implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 631
            },
            {
              "name": "RemovePart",
              "anchor": "MemoryPackCache.RemovePart",
              "recv": "*MemoryPackCache",
              "decl": "func (c *MemoryPackCache) RemovePart(key string) error",
              "doc": "RemovePart implements PackCache.\n",
              "file": "pkg/assets/dlc.go",
              "line": 623
            }
          ]
        },
        {
          "name": "Option",
          "anchor": "Option",
          "decl": "type Option func(*Manager)",
          "doc": "Option configures a Manager created by NewManager.\n",
          "file": "pkg/assets/assets.go",
          "line": 36,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "WithFS",
              "anchor": "WithFS",
              "decl": "func WithFS(fsys fs.FS) Option",
              "doc": "WithFS sets the file system that the default ReadAsset reads \"asset:\" URIs\nfrom, such as an embed.FS or os.DirFS.\n",
              "file": "pkg/assets/assets.go",
              "line": 46
            },
            {
              "name": "WithReadAsset",
              "anchor": "WithReadAsset",
              "decl": "func WithReadAsset(fn func(ctx context.Context, uri string) ([]byte, error)) Option",
              "doc": "WithReadAsset sets how Manager reads raw bytes for asset URIs off the engine\ngoroutine.\n",
              "file": "pkg/assets/assets.go",
              "line": 40
            }
          ],
          "methods": []
        },
        {
          "name": "PackCache",
          "anchor": "PackCache",
          "decl": "type PackCache interface {\n\t// Open returns a random-access reader and byte size for a completed pack,\n\t// or fs.ErrNotExist if key is not cached. The returned io.ReaderAt must be\n\t// safe for concurrent ReadAt calls and must not leak resources without a\n\t// Close call.\n\tOpen(key string) (io.ReaderAt, int64, error)\n\t// PartSize returns the byte size of an in-progress partial download for\n\t// key, or (0, nil) if no partial download exists.\n\tPartSize(key string) (int64, error)\n\t// OpenPartWriter opens the partial download entry for key. When appendMode\n\t// is true, writes append to existing partial bytes; when false, existing\n\t// partial bytes are truncated.\n\tOpenPartWriter(key string, appendMode bool) (io.WriteCloser, error)\n\t// OpenPartReader returns a random-access reader and byte size for an\n\t// in-progress partial download so it can be verified before CommitPart, or\n\t// fs.ErrNotExist if no partial download exists.\n\tOpenPartReader(key string) (io.ReaderAt, int64, error)\n\t// CommitPart atomically promotes the partial download for key into the\n\t// completed pack entry.\n\tCommitPart(key string) error\n\t// RemovePart deletes any partial download for key, returning nil if absent.\n\tRemovePart(key string) error\n\t// Remove deletes any completed pack for key, returning nil if absent.\n\tRemove(key string) error\n}",
          "doc": "PackCache persists downloaded DLC packs and in-progress resumable partial\ndownloads. Implementations must be safe for concurrent use.\n",
          "file": "pkg/assets/dlc.go",
          "line": 241,
          "members": [
            {
              "name": "Open",
              "anchor": "PackCache.Open",
              "kind": "method",
              "doc": "Open returns a random-access reader and byte size for a completed pack,\nor fs.ErrNotExist if key is not cached. The returned io.ReaderAt must be\nsafe for concurrent ReadAt calls and must not leak resources without a\nClose call."
            },
            {
              "name": "PartSize",
              "anchor": "PackCache.PartSize",
              "kind": "method",
              "doc": "PartSize returns the byte size of an in-progress partial download for\nkey, or (0, nil) if no partial download exists."
            },
            {
              "name": "OpenPartWriter",
              "anchor": "PackCache.OpenPartWriter",
              "kind": "method",
              "doc": "OpenPartWriter opens the partial download entry for key. When appendMode\nis true, writes append to existing partial bytes; when false, existing\npartial bytes are truncated."
            },
            {
              "name": "OpenPartReader",
              "anchor": "PackCache.OpenPartReader",
              "kind": "method",
              "doc": "OpenPartReader returns a random-access reader and byte size for an\nin-progress partial download so it can be verified before CommitPart, or\nfs.ErrNotExist if no partial download exists."
            },
            {
              "name": "CommitPart",
              "anchor": "PackCache.CommitPart",
              "kind": "method",
              "doc": "CommitPart atomically promotes the partial download for key into the\ncompleted pack entry."
            },
            {
              "name": "RemovePart",
              "anchor": "PackCache.RemovePart",
              "kind": "method",
              "doc": "RemovePart deletes any partial download for key, returning nil if absent."
            },
            {
              "name": "Remove",
              "anchor": "PackCache.Remove",
              "kind": "method",
              "doc": "Remove deletes any completed pack for key, returning nil if absent."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PackLimits",
          "anchor": "PackLimits",
          "decl": "type PackLimits struct {\n\t// MaxEntries is the largest number of files a pack may hold.\n\tMaxEntries int\n\t// MaxFileBytes is the largest uncompressed size of one file, checked against the archive's headers before mounting and against the bytes themselves as a mounted pack reads them.\n\tMaxFileBytes uint64\n\t// MaxTotalBytes is the largest uncompressed size of all files together.\n\tMaxTotalBytes uint64\n\t// MaxPackBytes is the largest archive a DLCManager downloads or opens. It bounds the .part file of a PackSpec without a Size, which would otherwise grow as long as the server sends bytes, and a PackSpec whose Size is larger is refused before anything is downloaded.\n\tMaxPackBytes int64\n}",
          "doc": "PackLimits bounds the size and structure of a DLC pack ZIP.\n",
          "file": "pkg/assets/dlc.go",
          "line": 684,
          "members": [
            {
              "name": "MaxEntries",
              "anchor": "PackLimits.MaxEntries",
              "kind": "field",
              "doc": "MaxEntries is the largest number of files a pack may hold."
            },
            {
              "name": "MaxFileBytes",
              "anchor": "PackLimits.MaxFileBytes",
              "kind": "field",
              "doc": "MaxFileBytes is the largest uncompressed size of one file, checked against the archive's headers before mounting and against the bytes themselves as a mounted pack reads them."
            },
            {
              "name": "MaxTotalBytes",
              "anchor": "PackLimits.MaxTotalBytes",
              "kind": "field",
              "doc": "MaxTotalBytes is the largest uncompressed size of all files together."
            },
            {
              "name": "MaxPackBytes",
              "anchor": "PackLimits.MaxPackBytes",
              "kind": "field",
              "doc": "MaxPackBytes is the largest archive a DLCManager downloads or opens. It bounds the .part file of a PackSpec without a Size, which would otherwise grow as long as the server sends bytes, and a PackSpec whose Size is larger is refused before anything is downloaded."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultPackLimits",
              "anchor": "DefaultPackLimits",
              "decl": "func DefaultPackLimits() PackLimits",
              "doc": "DefaultPackLimits returns the limits a DLCManager uses for zero PackLimits fields: 32768 entries, 256 MiB per file, 1 GiB in total and a 1088 MiB (1 GiB + 64 MiB) archive.\n",
              "file": "pkg/assets/dlc.go",
              "line": 696
            }
          ],
          "methods": []
        },
        {
          "name": "PackManifest",
          "anchor": "PackManifest",
          "decl": "type PackManifest struct {\n\t// Packs lists the packs the catalog offers.\n\tPacks []PackSpec `json:\"packs\"`\n}",
          "doc": "PackManifest is a JSON catalog of downloadable content packs.\n",
          "file": "pkg/assets/dlc.go",
          "line": 83,
          "members": [
            {
              "name": "Packs",
              "anchor": "PackManifest.Packs",
              "kind": "field",
              "doc": "Packs lists the packs the catalog offers."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PackSpec",
          "anchor": "PackSpec",
          "decl": "type PackSpec struct {\n\t// ID uniquely identifies the pack (for example \"chapter-2\").\n\tID string `json:\"id\"`\n\t// Group names the assets.Group populated by FetchGroup. When empty, ID is\n\t// used as the group name.\n\tGroup string `json:\"group,omitempty\"`\n\t// URL is the HTTP(S) endpoint serving the pack ZIP archive.\n\tURL string `json:\"url\"`\n\t// Version identifies the pack revision (for example \"1.0.0\").\n\tVersion string `json:\"version\"`\n\t// MinBuild is the minimum inclusive application build compatible with this\n\t// pack. Zero means no lower bound.\n\tMinBuild int `json:\"min_build,omitempty\"`\n\t// MaxBuild is the maximum inclusive application build compatible with this\n\t// pack. Zero means no upper bound.\n\tMaxBuild int `json:\"max_build,omitempty\"`\n\t// Size is the expected pack size in bytes. When positive, downloads and\n\t// cached packs must match Size exactly.\n\tSize int64 `json:\"size,omitempty\"`\n\t// SHA256 is the expected hex-encoded SHA-256 digest of the pack archive.\n\tSHA256 string `json:\"sha256\"`\n\t// Signature is the Ed25519 signature over the raw 32-byte SHA-256 digest of\n\t// the pack, encoded as hex or base64. Required when DLCOptions.PublicKey is\n\t// set.\n\tSignature string `json:\"signature,omitempty\"`\n}",
          "doc": "PackSpec describes a downloadable content (DLC) pack archive.\n",
          "file": "pkg/assets/dlc.go",
          "line": 55,
          "members": [
            {
              "name": "ID",
              "anchor": "PackSpec.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the pack (for example \"chapter-2\")."
            },
            {
              "name": "Group",
              "anchor": "PackSpec.Group",
              "kind": "field",
              "doc": "Group names the assets.Group populated by FetchGroup. When empty, ID is\nused as the group name."
            },
            {
              "name": "URL",
              "anchor": "PackSpec.URL",
              "kind": "field",
              "doc": "URL is the HTTP(S) endpoint serving the pack ZIP archive."
            },
            {
              "name": "Version",
              "anchor": "PackSpec.Version",
              "kind": "field",
              "doc": "Version identifies the pack revision (for example \"1.0.0\")."
            },
            {
              "name": "MinBuild",
              "anchor": "PackSpec.MinBuild",
              "kind": "field",
              "doc": "MinBuild is the minimum inclusive application build compatible with this\npack. Zero means no lower bound."
            },
            {
              "name": "MaxBuild",
              "anchor": "PackSpec.MaxBuild",
              "kind": "field",
              "doc": "MaxBuild is the maximum inclusive application build compatible with this\npack. Zero means no upper bound."
            },
            {
              "name": "Size",
              "anchor": "PackSpec.Size",
              "kind": "field",
              "doc": "Size is the expected pack size in bytes. When positive, downloads and\ncached packs must match Size exactly."
            },
            {
              "name": "SHA256",
              "anchor": "PackSpec.SHA256",
              "kind": "field",
              "doc": "SHA256 is the expected hex-encoded SHA-256 digest of the pack archive."
            },
            {
              "name": "Signature",
              "anchor": "PackSpec.Signature",
              "kind": "field",
              "doc": "Signature is the Ed25519 signature over the raw 32-byte SHA-256 digest of\nthe pack, encoded as hex or base64. Required when DLCOptions.PublicKey is\nset."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParsePackManifest",
              "anchor": "ParsePackManifest",
              "decl": "func ParsePackManifest(data []byte) ([]PackSpec, error)",
              "doc": "ParsePackManifest decodes a JSON pack manifest containing either a\nPackManifest object ({\"packs\": [...]}) or a bare JSON array of PackSpec.\n\nA field the manifest does not define, such as a misspelt \"sha265\", is refused rather than ignored, as are a key given twice in one object and bytes after the manifest, so a typo cannot silently drop a check and a reader cannot be shown one value while another is used (#546).\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/assets/dlc.go",
              "line": 94
            }
          ],
          "methods": [
            {
              "name": "CacheKey",
              "anchor": "PackSpec.CacheKey",
              "recv": "PackSpec",
              "decl": "func (s PackSpec) CacheKey() string",
              "doc": "CacheKey returns the stable cache key for this pack based on its ID and\nVersion.\n",
              "file": "pkg/assets/dlc.go",
              "line": 214
            },
            {
              "name": "Compatible",
              "anchor": "PackSpec.Compatible",
              "recv": "PackSpec",
              "decl": "func (s PackSpec) Compatible(appBuild int) bool",
              "doc": "Compatible reports whether appBuild falls within the pack's inclusive\n[MinBuild, MaxBuild] bounds. Zero bounds are treated as unbounded.\n",
              "file": "pkg/assets/dlc.go",
              "line": 202
            }
          ]
        },
        {
          "name": "ReloadedAsset",
          "anchor": "ReloadedAsset",
          "decl": "type ReloadedAsset struct {\n\tGroup   string\n\tName    string\n\tKind    string\n\tURI     string\n\tBytes   int64\n\tFrames  int\n\tSkipped string\n\tErr     error\n}",
          "doc": "ReloadedAsset describes one loaded asset that ReloadAsset or ReloadGroup matched. Err holds a read or parse failure, after which the previous asset stays in place. Skipped says why an asset was left unchanged without an error.\n",
          "file": "pkg/assets/reload.go",
          "line": 122,
          "members": [
            {
              "name": "Group",
              "anchor": "ReloadedAsset.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "ReloadedAsset.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ReloadedAsset.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "URI",
              "anchor": "ReloadedAsset.URI",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "ReloadedAsset.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "ReloadedAsset.Frames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Skipped",
              "anchor": "ReloadedAsset.Skipped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Err",
              "anchor": "ReloadedAsset.Err",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/bullets",
      "name": "bullets",
      "dir": "pkg/bullets",
      "page": "pkg/bullets",
      "synopsis": "Package bullets spawns, moves and draws the bullet patterns of shooters: rings, spirals and aimed bursts defined in versioned YAML.",
      "doc": "Package bullets spawns, moves and draws the bullet patterns of shooters: rings, spirals and aimed bursts defined in versioned YAML.\n\n# Pattern Files\n\nA pattern file holds named patterns. Parse decodes one, refusing unknown fields, unsupported versions and invalid values, and Encode writes it back as deterministic YAML that round-trips through Parse:\n\n\tversion: 1\n\tpatterns:\n\t  - name: flower\n\t    kind: spiral\n\t    frame: orb\n\t    count: 6\n\t    speed: 140\n\t    spin: 11\n\t    shots: 0\n\t    interval: 60ms\n\t    lifetime: 5s\n\t    radius: 4\n\nAngles are in degrees, clockwise from +X on the screen; speeds are in points a second; durations are Go durations such as 60ms or 2s.\n\n# Fields and Emitters\n\nA Field owns the live bullets: it takes them from a perf.Pool, moves them in Update, removes those that outlive their lifetime or leave its Bounds, and draws them through one sprite.Batch. An Emitter fires one pattern's shots into a field at the pattern's times, drawing any jitter from its own seeded random.Stream, so an emitter with the same pattern, seed and steps spawns the same bullets.\n\nEach fixed step, update the field first and then its emitters: an emitter places the bullets of a shot fired partway through the step where they are at the step's end.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the pattern file schema version that Parse accepts and Encode writes.\n",
          "file": "pkg/bullets/format.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "MaxCount",
              "anchor": "MaxCount"
            }
          ],
          "decl": "const MaxCount = 4096",
          "doc": "MaxCount is the most bullets one shot of a pattern may fire.\n",
          "file": "pkg/bullets/format.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "MinInterval",
              "anchor": "MinInterval"
            }
          ],
          "decl": "const MinInterval = time.Millisecond",
          "doc": "MinInterval is the shortest Interval a pattern may have, other than 0: shorter intervals would fire thousands of shots a frame.\n",
          "file": "pkg/bullets/format.go",
          "line": 21
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(f *File) ([]byte, error)",
          "doc": "Encode validates f and writes it as YAML with 2-space indents, its fields in a fixed order and optional fields left out when zero, so encoding the same file always gives the same bytes and Parse reads them back unchanged.\n",
          "file": "pkg/bullets/format.go",
          "line": 110
        }
      ],
      "types": [
        {
          "name": "Bullet",
          "anchor": "Bullet",
          "decl": "type Bullet struct {\n\t// X and Y are where the bullet is, in the field's coordinates.\n\tX, Y float32\n\t// Speed is how fast it moves, in points a second.\n\tSpeed float32\n\t// Heading is the direction it moves, in radians clockwise from +X.\n\tHeading float32\n\t// Radius is its hit radius in points.\n\tRadius float32\n\t// Age is how long it has lived.\n\tAge time.Duration\n\t// Lifetime is how long it lives; 0 keeps it until it leaves the field's bounds or is removed.\n\tLifetime time.Duration\n\t// Pattern is the name of the pattern that fired it.\n\tPattern string\n\t// Shot is the index of the emitter's shot that fired it, from 0.\n\tShot int\n\t// Sprite draws it; the field moves the sprite with the bullet.\n\tSprite sprite.Sprite\n\t// contains filtered or unexported fields\n}",
          "doc": "Bullet is one live bullet of a Field. A field owns its bullets: a game reads them, for hit tests, and removes them with Field.RemoveFunc, but does not keep a pointer past the next Update, RemoveFunc or Clear, as the field reuses a removed bullet for a later one.\n",
          "file": "pkg/bullets/field.go",
          "line": 14,
          "members": [
            {
              "name": "X",
              "anchor": "Bullet.X",
              "kind": "field",
              "doc": "X and Y are where the bullet is, in the field's coordinates."
            },
            {
              "name": "Y",
              "anchor": "Bullet.Y",
              "kind": "field",
              "doc": "X and Y are where the bullet is, in the field's coordinates."
            },
            {
              "name": "Speed",
              "anchor": "Bullet.Speed",
              "kind": "field",
              "doc": "Speed is how fast it moves, in points a second."
            },
            {
              "name": "Heading",
              "anchor": "Bullet.Heading",
              "kind": "field",
              "doc": "Heading is the direction it moves, in radians clockwise from +X."
            },
            {
              "name": "Radius",
              "anchor": "Bullet.Radius",
              "kind": "field",
              "doc": "Radius is its hit radius in points."
            },
            {
              "name": "Age",
              "anchor": "Bullet.Age",
              "kind": "field",
              "doc": "Age is how long it has lived."
            },
            {
              "name": "Lifetime",
              "anchor": "Bullet.Lifetime",
              "kind": "field",
              "doc": "Lifetime is how long it lives; 0 keeps it until it leaves the field's bounds or is removed."
            },
            {
              "name": "Pattern",
              "anchor": "Bullet.Pattern",
              "kind": "field",
              "doc": "Pattern is the name of the pattern that fired it."
            },
            {
              "name": "Shot",
              "anchor": "Bullet.Shot",
              "kind": "field",
              "doc": "Shot is the index of the emitter's shot that fired it, from 0."
            },
            {
              "name": "Sprite",
              "anchor": "Bullet.Sprite",
              "kind": "field",
              "doc": "Sprite draws it; the field moves the sprite with the bullet."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Circle",
              "anchor": "Bullet.Circle",
              "recv": "*Bullet",
              "decl": "func (b *Bullet) Circle() math2d.Circle",
              "doc": "Circle returns the bullet's hit circle.\n",
              "file": "pkg/bullets/field.go",
              "line": 48
            },
            {
              "name": "Pos",
              "anchor": "Bullet.Pos",
              "recv": "*Bullet",
              "decl": "func (b *Bullet) Pos() math2d.Vec2",
              "doc": "Pos returns where the bullet is.\n",
              "file": "pkg/bullets/field.go",
              "line": 40
            },
            {
              "name": "Velocity",
              "anchor": "Bullet.Velocity",
              "recv": "*Bullet",
              "decl": "func (b *Bullet) Velocity() math2d.Vec2",
              "doc": "Velocity returns the bullet's velocity in points a second.\n",
              "file": "pkg/bullets/field.go",
              "line": 43
            }
          ]
        },
        {
          "name": "Emitter",
          "anchor": "Emitter",
          "decl": "type Emitter struct {\n\t// X and Y are where its shots start, in the field's coordinates; move them with the thing that shoots.\n\tX, Y float32\n\t// TargetX and TargetY are what an Aimed pattern aims at, such as the player.\n\tTargetX, TargetY float32\n\t// Stopped, when true, pauses the emitter: Update neither fires nor runs its clock, and Done reports true. Once Stopped is false again, the emitter picks up its pattern where it paused, owing no shots for the time it was stopped.\n\tStopped bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Emitter fires one pattern's shots into a field at the pattern's times. It draws the pattern's jitter from its own random stream, so two emitters with the same pattern and seed, moved and stepped alike, spawn the same bullets.\n\nAn Emitter is not safe for concurrent use.\n",
          "file": "pkg/bullets/emitter.go",
          "line": 17,
          "members": [
            {
              "name": "X",
              "anchor": "Emitter.X",
              "kind": "field",
              "doc": "X and Y are where its shots start, in the field's coordinates; move them with the thing that shoots."
            },
            {
              "name": "Y",
              "anchor": "Emitter.Y",
              "kind": "field",
              "doc": "X and Y are where its shots start, in the field's coordinates; move them with the thing that shoots."
            },
            {
              "name": "TargetX",
              "anchor": "Emitter.TargetX",
              "kind": "field",
              "doc": "TargetX and TargetY are what an Aimed pattern aims at, such as the player."
            },
            {
              "name": "TargetY",
              "anchor": "Emitter.TargetY",
              "kind": "field",
              "doc": "TargetX and TargetY are what an Aimed pattern aims at, such as the player."
            },
            {
              "name": "Stopped",
              "anchor": "Emitter.Stopped",
              "kind": "field",
              "doc": "Stopped, when true, pauses the emitter: Update neither fires nor runs its clock, and Done reports true. Once Stopped is false again, the emitter picks up its pattern where it paused, owing no shots for the time it was stopped."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewEmitter",
              "anchor": "NewEmitter",
              "decl": "func NewEmitter(f *Field, p *Pattern, seed uint64) (*Emitter, error)",
              "doc": "NewEmitter returns an emitter that fires a copy of p into f, drawing jitter from a stream seeded with seed. It returns an error when p is invalid, or names a frame that f's atlas does not have.\n",
              "file": "pkg/bullets/emitter.go",
              "line": 34
            }
          ],
          "methods": [
            {
              "name": "Done",
              "anchor": "Emitter.Done",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Done() bool",
              "doc": "Done reports whether the emitter fires no more shots: it is stopped, or has fired all of a pattern's Shots.\n",
              "file": "pkg/bullets/emitter.go",
              "line": 85
            },
            {
              "name": "Elapsed",
              "anchor": "Emitter.Elapsed",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Elapsed() time.Duration",
              "doc": "Elapsed returns how long the emitter has run since it was made or reset, not counting the time it was stopped.\n",
              "file": "pkg/bullets/emitter.go",
              "line": 82
            },
            {
              "name": "Pattern",
              "anchor": "Emitter.Pattern",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Pattern() Pattern",
              "doc": "Pattern returns the emitter's copy of its pattern.\n",
              "file": "pkg/bullets/emitter.go",
              "line": 73
            },
            {
              "name": "Reset",
              "anchor": "Emitter.Reset",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Reset()",
              "doc": "Reset starts the emitter over from its first shot, with its random stream rewound to its seed, and lets it fire again if it was stopped. It leaves bullets already fired in the field.\n",
              "file": "pkg/bullets/emitter.go",
              "line": 90
            },
            {
              "name": "Seed",
              "anchor": "Emitter.Seed",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Seed() uint64",
              "doc": "Seed returns the seed of the emitter's random stream.\n",
              "file": "pkg/bullets/emitter.go",
              "line": 76
            },
            {
              "name": "Shots",
              "anchor": "Emitter.Shots",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Shots() int",
              "doc": "Shots returns how many shots the emitter has fired since it was made or reset.\n",
              "file": "pkg/bullets/emitter.go",
              "line": 79
            },
            {
              "name": "Update",
              "anchor": "Emitter.Update",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Update(dt time.Duration) int",
              "doc": "Update runs the emitter's clock on by dt and fires each shot due in that time into its field, returning the number of bullets it spawned. A shot due partway through dt spawns its bullets where they are at its end, so update the field before its emitters.\n\nA shot past the field's Limit spawns only as many bullets as fit; it still counts as fired and draws the same random numbers, so the bullets that do spawn are the same as with no limit.\n\nOne call fires at most MaxCount bullets' worth of shots, and at least one shot. When more shots are due, as after a long dt from a hitch, it fires the latest of them and skips the earlier ones: they count as fired but spawn nothing and draw no random numbers. This bounds the work of a step whatever the pattern's Interval and dt.\n",
              "file": "pkg/bullets/emitter.go",
              "line": 102
            }
          ]
        },
        {
          "name": "Field",
          "anchor": "Field",
          "decl": "type Field struct {\n\t// Atlas holds the frames the bullets draw; emitters look their pattern's frame up in it.\n\tAtlas *sprite.Atlas\n\t// Bounds, when not empty, is the area bullets live in: Update removes a bullet once its hit circle lies wholly outside it.\n\tBounds math2d.Rect\n\t// Limit, when above 0, is the most bullets the field holds: a shot spawns none past it.\n\tLimit int\n\t// contains filtered or unexported fields\n}",
          "doc": "Field holds a shooter's live bullets: it takes them from a pool, moves them, removes the ones that expire or leave its bounds and draws them through one sprite batch.\n\nA Field is not safe for concurrent use.\n",
          "file": "pkg/bullets/field.go",
          "line": 81,
          "members": [
            {
              "name": "Atlas",
              "anchor": "Field.Atlas",
              "kind": "field",
              "doc": "Atlas holds the frames the bullets draw; emitters look their pattern's frame up in it."
            },
            {
              "name": "Bounds",
              "anchor": "Field.Bounds",
              "kind": "field",
              "doc": "Bounds, when not empty, is the area bullets live in: Update removes a bullet once its hit circle lies wholly outside it."
            },
            {
              "name": "Limit",
              "anchor": "Field.Limit",
              "kind": "field",
              "doc": "Limit, when above 0, is the most bullets the field holds: a shot spawns none past it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewField",
              "anchor": "NewField",
              "decl": "func NewField(atlas *sprite.Atlas, capacity int) *Field",
              "doc": "NewField returns a field drawing from atlas that keeps capacity bullets ready, so that it spawns up to capacity bullets at once without allocating.\n",
              "file": "pkg/bullets/field.go",
              "line": 95
            }
          ],
          "methods": [
            {
              "name": "Bullets",
              "anchor": "Field.Bullets",
              "recv": "*Field",
              "decl": "func (f *Field) Bullets() []*Bullet",
              "doc": "Bullets returns the live bullets, oldest first. The slice and the bullets are the field's: they are valid until the next Update, spawn, RemoveFunc or Clear.\n",
              "file": "pkg/bullets/field.go",
              "line": 109
            },
            {
              "name": "Clear",
              "anchor": "Field.Clear",
              "recv": "*Field",
              "decl": "func (f *Field) Clear()",
              "doc": "Clear removes every bullet, keeping the field's memory for the next ones.\n",
              "file": "pkg/bullets/field.go",
              "line": 152
            },
            {
              "name": "Draw",
              "anchor": "Field.Draw",
              "recv": "*Field",
              "decl": "func (f *Field) Draw(d *core.Drawing)",
              "doc": "Draw draws the bullets into d through the field's sprite batch, lowest Z first and oldest first for the same Z. It draws nothing when the field has no atlas.\n",
              "file": "pkg/bullets/field.go",
              "line": 171
            },
            {
              "name": "Len",
              "anchor": "Field.Len",
              "recv": "*Field",
              "decl": "func (f *Field) Len() int",
              "doc": "Len returns the number of live bullets.\n",
              "file": "pkg/bullets/field.go",
              "line": 106
            },
            {
              "name": "RemoveFunc",
              "anchor": "Field.RemoveFunc",
              "recv": "*Field",
              "decl": "func (f *Field) RemoveFunc(remove func(b *Bullet) bool) int",
              "doc": "RemoveFunc removes the bullets for which remove returns true, such as those that hit the player, keeping the others in order, and returns how many it removed.\n",
              "file": "pkg/bullets/field.go",
              "line": 135
            },
            {
              "name": "Update",
              "anchor": "Field.Update",
              "recv": "*Field",
              "decl": "func (f *Field) Update(dt time.Duration)",
              "doc": "Update moves every bullet on by dt, then removes the ones that have lived their lifetime or left the field's bounds, keeping the others in order.\n",
              "file": "pkg/bullets/field.go",
              "line": 112
            }
          ]
        },
        {
          "name": "File",
          "anchor": "File",
          "decl": "type File struct {\n\t// Version is the schema version; it must equal FormatVersion.\n\tVersion int `yaml:\"version\"`\n\t// Patterns are the file's patterns, each with a unique name.\n\tPatterns []Pattern `yaml:\"patterns\"`\n}",
          "doc": "File is a pattern file: a schema version and its patterns, in the order written.\n",
          "file": "pkg/bullets/format.go",
          "line": 36,
          "members": [
            {
              "name": "Version",
              "anchor": "File.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal FormatVersion."
            },
            {
              "name": "Patterns",
              "anchor": "File.Patterns",
              "kind": "field",
              "doc": "Patterns are the file's patterns, each with a unique name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*File, error)",
              "doc": "Parse decodes and validates a YAML pattern file. Unknown fields, trailing YAML documents and invalid patterns are refused.\n",
              "file": "pkg/bullets/format.go",
              "line": 86
            }
          ],
          "methods": [
            {
              "name": "Pattern",
              "anchor": "File.Pattern",
              "recv": "*File",
              "decl": "func (f *File) Pattern(name string) (*Pattern, bool)",
              "doc": "Pattern returns the file's pattern named name, or nil and false when it has none.\n",
              "file": "pkg/bullets/format.go",
              "line": 150
            },
            {
              "name": "Validate",
              "anchor": "File.Validate",
              "recv": "*File",
              "decl": "func (f *File) Validate() error",
              "doc": "Validate checks the file's version, that its pattern names are unique and that each pattern is valid.\n",
              "file": "pkg/bullets/format.go",
              "line": 128
            }
          ]
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind string",
          "doc": "Kind is how a pattern places the bullets of a shot.\n",
          "file": "pkg/bullets/format.go",
          "line": 24,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Ring",
                  "anchor": "Ring"
                },
                {
                  "name": "Spiral",
                  "anchor": "Spiral"
                },
                {
                  "name": "Aimed",
                  "anchor": "Aimed"
                }
              ],
              "decl": "const (\n\t// Ring fires Count bullets spaced evenly around a full turn, the first at Angle, turned by Spin more each shot.\n\tRing Kind = \"ring\"\n\t// Spiral is a ring that turns by Spin (which must not be 0) each shot, so short intervals trace spiral arms: one arm per bullet of Count.\n\tSpiral Kind = \"spiral\"\n\t// Aimed fires Count bullets spread evenly across Spread degrees, centered on the direction from the emitter to its target, turned by Angle and by Spin each shot.\n\tAimed Kind = \"aimed\"\n)",
              "doc": "",
              "file": "pkg/bullets/format.go",
              "line": 26
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Pattern",
          "anchor": "Pattern",
          "decl": "type Pattern struct {\n\t// Name identifies the pattern in its file; it must be unique and not empty.\n\tName string `yaml:\"name\"`\n\t// Kind is how a shot places its bullets: Ring, Spiral or Aimed.\n\tKind Kind `yaml:\"kind\"`\n\t// Frame is the name of the atlas frame that draws each bullet; an empty Frame spawns bullets that move and collide but draw nothing.\n\tFrame string `yaml:\"frame,omitempty\"`\n\t// Count is the number of bullets each shot fires, from 1 to MaxCount.\n\tCount int `yaml:\"count\"`\n\t// Speed is each bullet's starting speed in points a second.\n\tSpeed float32 `yaml:\"speed\"`\n\t// SpeedJitter varies each bullet's starting speed by a random amount in [-SpeedJitter, SpeedJitter), never below 0.\n\tSpeedJitter float32 `yaml:\"speedJitter,omitempty\"`\n\t// Angle is the direction of a shot's first bullet in degrees, clockwise from +X; for Aimed, it turns the whole burst from the target's direction.\n\tAngle float32 `yaml:\"angle,omitempty\"`\n\t// Spread is the arc in degrees an Aimed burst covers, from its first bullet to its last; it applies to Aimed only, and must be above 0 when Count is above 1.\n\tSpread float32 `yaml:\"spread,omitempty\"`\n\t// AngleJitter turns each bullet by a random amount in [-AngleJitter, AngleJitter) degrees.\n\tAngleJitter float32 `yaml:\"angleJitter,omitempty\"`\n\t// Spin turns each shot by this many degrees more than the one before.\n\tSpin float32 `yaml:\"spin,omitempty\"`\n\t// Shots is the number of shots the pattern fires; 0 fires until the emitter is stopped.\n\tShots int `yaml:\"shots\"`\n\t// Delay is the time before the first shot.\n\tDelay time.Duration `yaml:\"delay,omitempty\"`\n\t// Interval is the time between shots; it must be at least MinInterval, or 0 when Shots is 1.\n\tInterval time.Duration `yaml:\"interval,omitempty\"`\n\t// Lifetime is how long each bullet lives; 0 keeps it until it leaves the field's bounds or is removed.\n\tLifetime time.Duration `yaml:\"lifetime,omitempty\"`\n\t// Accel changes each bullet's speed by this many points a second, each second; a bullet slowed to 0 stops.\n\tAccel float32 `yaml:\"accel,omitempty\"`\n\t// Turn curves each bullet's path by this many degrees a second, clockwise when positive.\n\tTurn float32 `yaml:\"turn,omitempty\"`\n\t// Radius is each bullet's hit radius in points, which the field also uses to tell when a bullet has left its bounds.\n\tRadius float32 `yaml:\"radius,omitempty\"`\n\t// FaceHeading turns each bullet's sprite to the direction it moves, for bullets whose picture has a front.\n\tFaceHeading bool `yaml:\"faceHeading,omitempty\"`\n\t// Z orders the bullets' sprites in the field's batch.\n\tZ int `yaml:\"z,omitempty\"`\n}",
          "doc": "Pattern is one bullet pattern: how its shots place, aim and time their bullets, and how those bullets move, live and look.\n",
          "file": "pkg/bullets/format.go",
          "line": 44,
          "members": [
            {
              "name": "Name",
              "anchor": "Pattern.Name",
              "kind": "field",
              "doc": "Name identifies the pattern in its file; it must be unique and not empty."
            },
            {
              "name": "Kind",
              "anchor": "Pattern.Kind",
              "kind": "field",
              "doc": "Kind is how a shot places its bullets: Ring, Spiral or Aimed."
            },
            {
              "name": "Frame",
              "anchor": "Pattern.Frame",
              "kind": "field",
              "doc": "Frame is the name of the atlas frame that draws each bullet; an empty Frame spawns bullets that move and collide but draw nothing."
            },
            {
              "name": "Count",
              "anchor": "Pattern.Count",
              "kind": "field",
              "doc": "Count is the number of bullets each shot fires, from 1 to MaxCount."
            },
            {
              "name": "Speed",
              "anchor": "Pattern.Speed",
              "kind": "field",
              "doc": "Speed is each bullet's starting speed in points a second."
            },
            {
              "name": "SpeedJitter",
              "anchor": "Pattern.SpeedJitter",
              "kind": "field",
              "doc": "SpeedJitter varies each bullet's starting speed by a random amount in [-SpeedJitter, SpeedJitter), never below 0."
            },
            {
              "name": "Angle",
              "anchor": "Pattern.Angle",
              "kind": "field",
              "doc": "Angle is the direction of a shot's first bullet in degrees, clockwise from +X; for Aimed, it turns the whole burst from the target's direction."
            },
            {
              "name": "Spread",
              "anchor": "Pattern.Spread",
              "kind": "field",
              "doc": "Spread is the arc in degrees an Aimed burst covers, from its first bullet to its last; it applies to Aimed only, and must be above 0 when Count is above 1."
            },
            {
              "name": "AngleJitter",
              "anchor": "Pattern.AngleJitter",
              "kind": "field",
              "doc": "AngleJitter turns each bullet by a random amount in [-AngleJitter, AngleJitter) degrees."
            },
            {
              "name": "Spin",
              "anchor": "Pattern.Spin",
              "kind": "field",
              "doc": "Spin turns each shot by this many degrees more than the one before."
            },
            {
              "name": "Shots",
              "anchor": "Pattern.Shots",
              "kind": "field",
              "doc": "Shots is the number of shots the pattern fires; 0 fires until the emitter is stopped."
            },
            {
              "name": "Delay",
              "anchor": "Pattern.Delay",
              "kind": "field",
              "doc": "Delay is the time before the first shot."
            },
            {
              "name": "Interval",
              "anchor": "Pattern.Interval",
              "kind": "field",
              "doc": "Interval is the time between shots; it must be at least MinInterval, or 0 when Shots is 1."
            },
            {
              "name": "Lifetime",
              "anchor": "Pattern.Lifetime",
              "kind": "field",
              "doc": "Lifetime is how long each bullet lives; 0 keeps it until it leaves the field's bounds or is removed."
            },
            {
              "name": "Accel",
              "anchor": "Pattern.Accel",
              "kind": "field",
              "doc": "Accel changes each bullet's speed by this many points a second, each second; a bullet slowed to 0 stops."
            },
            {
              "name": "Turn",
              "anchor": "Pattern.Turn",
              "kind": "field",
              "doc": "Turn curves each bullet's path by this many degrees a second, clockwise when positive."
            },
            {
              "name": "Radius",
              "anchor": "Pattern.Radius",
              "kind": "field",
              "doc": "Radius is each bullet's hit radius in points, which the field also uses to tell when a bullet has left its bounds."
            },
            {
              "name": "FaceHeading",
              "anchor": "Pattern.FaceHeading",
              "kind": "field",
              "doc": "FaceHeading turns each bullet's sprite to the direction it moves, for bullets whose picture has a front."
            },
            {
              "name": "Z",
              "anchor": "Pattern.Z",
              "kind": "field",
              "doc": "Z orders the bullets' sprites in the field's batch."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Validate",
              "anchor": "Pattern.Validate",
              "recv": "*Pattern",
              "decl": "func (p *Pattern) Validate() error",
              "doc": "Validate checks that p names itself, has a known kind, fires 1 to MaxCount bullets a shot, has finite numbers in range, and times its shots so that they end or repeat after an interval of at least MinInterval.\n",
              "file": "pkg/bullets/format.go",
              "line": 160
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/cards",
      "name": "cards",
      "dir": "pkg/cards",
      "page": "pkg/cards",
      "synopsis": "Package cards drags cards between the slots of a board in the game view and lays them out as fanned hands, decks, piles and grids, animating every move with game/tween on game.Loop's fixed steps.",
      "doc": "Package cards drags cards between the slots of a board in the game view and lays them out as fanned hands, decks, piles and grids, animating every move with game/tween on game.Loop's fixed steps.\n\nA Board holds Slots in the order they were added; each Slot owns an ordered list of Cards and arranges them with its Layout (Fan, Stack or Grid, or your own). Pointers drive drags: a card picked up under a mouse button or a finger follows it past a small slop, and on release it snaps into the slot under it when that slot accepts it (its tags, capacity, Accept predicates and the board's Accept), or tweens back to where it came from when it does not. NSGo reports the primary mouse button as finger 0 of core.TouchEvent on the desktops and every pointer as a finger on the web, so Board.OnTouch (or Board.Attach on the view holding the game's Canvas) handles mouse and touch alike, and several fingers drag several cards at once.\n\nBoards can be written as versioned YAML (BoardDoc) with ParseBoardDoc and EncodeBoardDoc and built with LoadBoard. Nothing in the package reads the wall clock, starts goroutines or keeps package-level state: animations advance only in Board.Update, so a board replays identically under nsgotest.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultDragSlop",
              "anchor": "DefaultDragSlop"
            },
            {
              "name": "DefaultSnapDuration",
              "anchor": "DefaultSnapDuration"
            },
            {
              "name": "DefaultReturnDuration",
              "anchor": "DefaultReturnDuration"
            }
          ],
          "decl": "const (\n\t// DefaultDragSlop is how far, in points, a pointer moves from where it pressed a card before the card starts to follow it.\n\tDefaultDragSlop float32 = 6\n\t// DefaultSnapDuration is how long a card takes to settle into its place after a valid drop or a layout change.\n\tDefaultSnapDuration = 180 * time.Millisecond\n\t// DefaultReturnDuration is how long a card rejected by a drop takes to fly back to its slot.\n\tDefaultReturnDuration = 240 * time.Millisecond\n)",
          "doc": "Defaults a Board uses for its zero fields.\n",
          "file": "pkg/cards/board.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the BoardDoc schema version this package reads and writes.\n",
          "file": "pkg/cards/format.go",
          "line": 15
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrSlotID",
              "anchor": "ErrSlotID"
            },
            {
              "name": "ErrSlotOwned",
              "anchor": "ErrSlotOwned"
            },
            {
              "name": "ErrCardOwned",
              "anchor": "ErrCardOwned"
            },
            {
              "name": "ErrNoCard",
              "anchor": "ErrNoCard"
            }
          ],
          "decl": "var (\n\t// ErrSlotID reports a slot with an empty ID or one the board already holds.\n\tErrSlotID = errors.New(\"cards: slot ID is empty or already on the board\")\n\t// ErrSlotOwned reports a slot that already belongs to a board, or that does not belong to this one.\n\tErrSlotOwned = errors.New(\"cards: slot belongs to another board\")\n\t// ErrCardOwned reports adding a card that is already on a board.\n\tErrCardOwned = errors.New(\"cards: card is already on a board\")\n\t// ErrNoCard reports a card that is not on this board.\n\tErrNoCard = errors.New(\"cards: card is not on this board\")\n)",
          "doc": "Errors returned by Board's methods.\n",
          "file": "pkg/cards/board.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "DefaultCardSize",
              "anchor": "DefaultCardSize"
            }
          ],
          "decl": "var DefaultCardSize = math2d.Vec2{X: 63, Y: 88}",
          "doc": "DefaultCardSize is a poker card's 63×88 aspect at one point per millimeter, used while Board.CardSize is zero.\n",
          "file": "pkg/cards/board.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "ErrCustomLayout",
              "anchor": "ErrCustomLayout"
            }
          ],
          "decl": "var ErrCustomLayout = errors.New(\"cards: a custom layout cannot be written to a BoardDoc\")",
          "doc": "ErrCustomLayout reports encoding a slot whose Layout is not a Fan, Stack or Grid.\n",
          "file": "pkg/cards/format.go",
          "line": 118
        }
      ],
      "funcs": [
        {
          "name": "EncodeBoardDoc",
          "anchor": "EncodeBoardDoc",
          "decl": "func EncodeBoardDoc(doc *BoardDoc) ([]byte, error)",
          "doc": "EncodeBoardDoc validates doc and writes it as 2-space YAML with its fields in a fixed order.\n",
          "file": "pkg/cards/format.go",
          "line": 145
        }
      ],
      "types": [
        {
          "name": "Board",
          "anchor": "Board",
          "decl": "type Board struct {\n\t// CardSize is every card's width and height in board coordinates; zero uses DefaultCardSize.\n\tCardSize math2d.Vec2\n\t// DragSlop is how far a pointer moves from its press before the card follows it; 0 uses DefaultDragSlop and a negative value starts the drag on the first move.\n\tDragSlop float32\n\t// SnapDuration is how long a card takes to settle after a valid drop, a Move or a layout change; 0 uses DefaultSnapDuration and a negative value settles at once.\n\tSnapDuration time.Duration\n\t// ReturnDuration is how long a rejected card takes to fly back; 0 uses DefaultReturnDuration and a negative value returns at once.\n\tReturnDuration time.Duration\n\t// Curve eases every move; the zero value is core.Linear, and core.EaseOut gives a softer landing.\n\tCurve core.Curve\n\t// MapPoint, when set, maps a touch's position in the view hearing it to board coordinates, as for a camera or a scaled viewport; returning false ignores the point. Nil uses the view's coordinates as they are.\n\tMapPoint func(core.Point) (math2d.Vec2, bool)\n\t// Accept, when set, also has to admit every drop of card c from slot from onto slot to other than back into from.\n\tAccept func(c *Card, from, to *Slot) bool\n\n\t// OnPickUp runs when a card starts following a pointer.\n\tOnPickUp func(c *Card)\n\t// OnTap runs when a pointer presses and releases a card without dragging it.\n\tOnTap func(c *Card)\n\t// OnDrop runs after a card lands in a slot that accepted it.\n\tOnDrop func(DropEvent)\n\t// OnReturn runs after a dragged card is sent back to its slot.\n\tOnReturn func(ReturnEvent)\n\t// contains filtered or unexported fields\n}",
          "doc": "Board holds slots of cards and drags cards between them with pointers, tweening every move. Step it with Update on each game.Loop step.\n\nThe zero value is ready to use; zero tuning fields use the Default constants.\n",
          "file": "pkg/cards/board.go",
          "line": 189,
          "members": [
            {
              "name": "CardSize",
              "anchor": "Board.CardSize",
              "kind": "field",
              "doc": "CardSize is every card's width and height in board coordinates; zero uses DefaultCardSize."
            },
            {
              "name": "DragSlop",
              "anchor": "Board.DragSlop",
              "kind": "field",
              "doc": "DragSlop is how far a pointer moves from its press before the card follows it; 0 uses DefaultDragSlop and a negative value starts the drag on the first move."
            },
            {
              "name": "SnapDuration",
              "anchor": "Board.SnapDuration",
              "kind": "field",
              "doc": "SnapDuration is how long a card takes to settle after a valid drop, a Move or a layout change; 0 uses DefaultSnapDuration and a negative value settles at once."
            },
            {
              "name": "ReturnDuration",
              "anchor": "Board.ReturnDuration",
              "kind": "field",
              "doc": "ReturnDuration is how long a rejected card takes to fly back; 0 uses DefaultReturnDuration and a negative value returns at once."
            },
            {
              "name": "Curve",
              "anchor": "Board.Curve",
              "kind": "field",
              "doc": "Curve eases every move; the zero value is core.Linear, and core.EaseOut gives a softer landing."
            },
            {
              "name": "MapPoint",
              "anchor": "Board.MapPoint",
              "kind": "field",
              "doc": "MapPoint, when set, maps a touch's position in the view hearing it to board coordinates, as for a camera or a scaled viewport; returning false ignores the point. Nil uses the view's coordinates as they are."
            },
            {
              "name": "Accept",
              "anchor": "Board.Accept",
              "kind": "field",
              "doc": "Accept, when set, also has to admit every drop of card c from slot from onto slot to other than back into from."
            },
            {
              "name": "OnPickUp",
              "anchor": "Board.OnPickUp",
              "kind": "field",
              "doc": "OnPickUp runs when a card starts following a pointer."
            },
            {
              "name": "OnTap",
              "anchor": "Board.OnTap",
              "kind": "field",
              "doc": "OnTap runs when a pointer presses and releases a card without dragging it."
            },
            {
              "name": "OnDrop",
              "anchor": "Board.OnDrop",
              "kind": "field",
              "doc": "OnDrop runs after a card lands in a slot that accepted it."
            },
            {
              "name": "OnReturn",
              "anchor": "Board.OnReturn",
              "kind": "field",
              "doc": "OnReturn runs after a dragged card is sent back to its slot."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadBoard",
              "anchor": "LoadBoard",
              "decl": "func LoadBoard(doc *BoardDoc) (*Board, error)",
              "doc": "LoadBoard validates doc and returns a Board with its card size and its slots, empty and in order. The board's other fields are left for the game to set.\n",
              "file": "pkg/cards/format.go",
              "line": 262
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Board.Add",
              "recv": "*Board",
              "decl": "func (b *Board) Add(c *Card, s *Slot, index int) error",
              "doc": "Add puts c into s at index (appending when index is negative or past the end) and settles s at once, without tweening: for dealing the opening position. Add ignores the slot's rules.\n",
              "file": "pkg/cards/board.go",
              "line": 279
            },
            {
              "name": "AddSlot",
              "anchor": "Board.AddSlot",
              "recv": "*Board",
              "decl": "func (b *Board) AddSlot(s *Slot) error",
              "doc": "AddSlot adds s on top of the slots already on the board: where slots overlap, the later one takes pointer drops.\n",
              "file": "pkg/cards/board.go",
              "line": 253
            },
            {
              "name": "Attach",
              "anchor": "Board.Attach",
              "recv": "*Board",
              "decl": "func (b *Board) Attach(v *core.View)",
              "doc": "Attach wires b.OnTouch onto v, the view holding the game's Canvas, chaining any OnTouch v already has after the board's.\n",
              "file": "pkg/cards/board.go",
              "line": 581
            },
            {
              "name": "CanDrop",
              "anchor": "Board.CanDrop",
              "recv": "*Board",
              "decl": "func (b *Board) CanDrop(c *Card, to *Slot) bool",
              "doc": "CanDrop reports whether slot to would accept c dropped onto it now: its own slot always does; another needs room under Capacity, a tag in Accepts when that is set, and the approval of to.Accept and Board.Accept when they are set.\n",
              "file": "pkg/cards/board.go",
              "line": 416
            },
            {
              "name": "CardAt",
              "anchor": "Board.CardAt",
              "recv": "*Board",
              "decl": "func (b *Board) CardAt(p math2d.Vec2) *Card",
              "doc": "CardAt returns the topmost card drawn under p, following each card's rotation, or nil.\n",
              "file": "pkg/cards/board.go",
              "line": 387
            },
            {
              "name": "Doc",
              "anchor": "Board.Doc",
              "recv": "*Board",
              "decl": "func (b *Board) Doc() (*BoardDoc, error)",
              "doc": "Doc returns the board's card size and slots as a BoardDoc, writing the default grab rule by omitting it. A slot's Accept function and the board's callbacks and tuning are code and are not written; a slot whose Layout is not a Fan, Stack or Grid (or a pointer to one) fails with ErrCustomLayout.\n",
              "file": "pkg/cards/format.go",
              "line": 289
            },
            {
              "name": "DrawOrder",
              "anchor": "Board.DrawOrder",
              "recv": "*Board",
              "decl": "func (b *Board) DrawOrder(dst []*Card) []*Card",
              "doc": "DrawOrder appends the board's cards to dst in the order to draw them, bottom first, and returns the extended slice: each slot's cards in slot order, then the cards that are held or flying, in the order they were lifted.\n",
              "file": "pkg/cards/board.go",
              "line": 375
            },
            {
              "name": "DropTarget",
              "anchor": "Board.DropTarget",
              "recv": "*Board",
              "decl": "func (b *Board) DropTarget(c *Card) (*Slot, bool)",
              "doc": "DropTarget returns the slot a held card would drop onto if released now, and whether that slot accepts it, so a game can highlight it. It returns nil and false for a card no pointer is dragging, and nil and false while the card is over no slot.\n",
              "file": "pkg/cards/board.go",
              "line": 436
            },
            {
              "name": "Move",
              "anchor": "Board.Move",
              "recv": "*Board",
              "decl": "func (b *Board) Move(c *Card, to *Slot, index int) error",
              "doc": "Move sends c into slot to at index (appending when index is negative or past the end), tweening it over SnapDuration and drawing it above the slots until it lands. A drag holding c is cancelled. Move ignores the slot's rules, as a game dealing or undoing does.\n",
              "file": "pkg/cards/board.go",
              "line": 294
            },
            {
              "name": "OnTouch",
              "anchor": "Board.OnTouch",
              "recv": "*Board",
              "decl": "func (b *Board) OnTouch(ev core.TouchEvent)",
              "doc": "OnTouch feeds a core.TouchEvent to the board, each finger that changed being its own pointer by Touch.ID; desktops report the primary mouse button as finger 0 and the web every pointer as a finger, so this handles the mouse too. A finger lifting where MapPoint refuses its point is cancelled.\n",
              "file": "pkg/cards/board.go",
              "line": 553
            },
            {
              "name": "PointerCancel",
              "anchor": "Board.PointerCancel",
              "recv": "*Board",
              "decl": "func (b *Board) PointerCancel(id int)",
              "doc": "PointerCancel ends pointer id without a drop, as when the system takes the touches: a card it was dragging flies back to its slot.\n",
              "file": "pkg/cards/board.go",
              "line": 537
            },
            {
              "name": "PointerDown",
              "anchor": "Board.PointerDown",
              "recv": "*Board",
              "decl": "func (b *Board) PointerDown(id int, p math2d.Vec2) bool",
              "doc": "PointerDown presses pointer id at p, in board coordinates, and reports whether it took a card: the topmost card under p that is not Locked, not already pressed by another pointer and that its slot's Grab rule lets go. The card follows the pointer once it moves past DragSlop.\n",
              "file": "pkg/cards/board.go",
              "line": 446
            },
            {
              "name": "PointerMove",
              "anchor": "Board.PointerMove",
              "recv": "*Board",
              "decl": "func (b *Board) PointerMove(id int, p math2d.Vec2)",
              "doc": "PointerMove moves pointer id to p, dragging its card once it has moved past DragSlop from its press.\n",
              "file": "pkg/cards/board.go",
              "line": 468
            },
            {
              "name": "PointerUp",
              "anchor": "Board.PointerUp",
              "recv": "*Board",
              "decl": "func (b *Board) PointerUp(id int, p math2d.Vec2)",
              "doc": "PointerUp releases pointer id at p: a card it was dragging drops into the slot under it when that slot accepts it and flies back otherwise, and a card it pressed without dragging is tapped.\n",
              "file": "pkg/cards/board.go",
              "line": 498
            },
            {
              "name": "Relayout",
              "anchor": "Board.Relayout",
              "recv": "*Board",
              "decl": "func (b *Board) Relayout(s *Slot)",
              "doc": "Relayout tweens the cards of s to its layout, as after changing its Rect or Layout. Held cards keep following their pointers.\n",
              "file": "pkg/cards/board.go",
              "line": 332
            },
            {
              "name": "Remove",
              "anchor": "Board.Remove",
              "recv": "*Board",
              "decl": "func (b *Board) Remove(c *Card) error",
              "doc": "Remove takes c off the board, cancelling a drag holding it, and tweens the rest of its slot closed.\n",
              "file": "pkg/cards/board.go",
              "line": 317
            },
            {
              "name": "Settle",
              "anchor": "Board.Settle",
              "recv": "*Board",
              "decl": "func (b *Board) Settle()",
              "doc": "Settle finishes every tween at once, leaving held cards where their pointers put them.\n",
              "file": "pkg/cards/board.go",
              "line": 340
            },
            {
              "name": "Size",
              "anchor": "Board.Size",
              "recv": "*Board",
              "decl": "func (b *Board) Size() math2d.Vec2",
              "doc": "Size returns the card size the board uses.\n",
              "file": "pkg/cards/board.go",
              "line": 221
            },
            {
              "name": "Slot",
              "anchor": "Board.Slot",
              "recv": "*Board",
              "decl": "func (b *Board) Slot(id string) *Slot",
              "doc": "Slot returns the slot named id, or nil.\n",
              "file": "pkg/cards/board.go",
              "line": 266
            },
            {
              "name": "SlotAt",
              "anchor": "Board.SlotAt",
              "recv": "*Board",
              "decl": "func (b *Board) SlotAt(p math2d.Vec2) *Slot",
              "doc": "SlotAt returns the topmost slot whose Rect holds p, or nil.\n",
              "file": "pkg/cards/board.go",
              "line": 406
            },
            {
              "name": "Slots",
              "anchor": "Board.Slots",
              "recv": "*Board",
              "decl": "func (b *Board) Slots() []*Slot",
              "doc": "Slots returns a copy of the board's slots in the order they were added.\n",
              "file": "pkg/cards/board.go",
              "line": 276
            },
            {
              "name": "Update",
              "anchor": "Board.Update",
              "recv": "*Board",
              "decl": "func (b *Board) Update(dt time.Duration)",
              "doc": "Update advances every card's tween by dt. Call it once per game.Loop.Update step.\n",
              "file": "pkg/cards/board.go",
              "line": 357
            }
          ]
        },
        {
          "name": "BoardDoc",
          "anchor": "BoardDoc",
          "decl": "type BoardDoc struct {\n\t// Version must equal FormatVersion.\n\tVersion int `yaml:\"version\"`\n\t// CardSize is every card's width and height; both must be positive.\n\tCardSize SizeDoc `yaml:\"card_size\"`\n\t// Slots are the board's slots, bottom first; their IDs must be unique.\n\tSlots []SlotDoc `yaml:\"slots,omitempty\"`\n}",
          "doc": "BoardDoc is a board's slots written as YAML: a schema version, the card size and each slot's area, layout and rules.\n\n\tversion: 1\n\tcard_size:\n\t  w: 63\n\t  h: 88\n\tslots:\n\t  - id: hand\n\t    rect:\n\t      x: 40\n\t      \"y\": 400\n\t      w: 560\n\t      h: 120\n\t    layout:\n\t      fan:\n\t        arc: 24\n\t        sag: 14\n\t  - id: discard\n\t    rect:\n\t      x: 360\n\t      \"y\": 200\n\t      w: 63\n\t      h: 88\n\t    layout:\n\t      stack:\n\t        offset:\n\t          x: 0\n\t          \"y\": -0.5\n\t        depth: 6\n\t    accepts:\n\t      - red\n\t      - black\n\t    grab: top\n\nParseBoardDoc refuses unknown fields, and EncodeBoardDoc writes the fields in a fixed order and in block style, as above. A file in that form, as EncodeBoardDoc writes it, is unchanged when read and written again; a hand-written file in flow style comes back in block style the first time.\n",
          "file": "pkg/cards/format.go",
          "line": 52,
          "members": [
            {
              "name": "Version",
              "anchor": "BoardDoc.Version",
              "kind": "field",
              "doc": "Version must equal FormatVersion."
            },
            {
              "name": "CardSize",
              "anchor": "BoardDoc.CardSize",
              "kind": "field",
              "doc": "CardSize is every card's width and height; both must be positive."
            },
            {
              "name": "Slots",
              "anchor": "BoardDoc.Slots",
              "kind": "field",
              "doc": "Slots are the board's slots, bottom first; their IDs must be unique."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseBoardDoc",
              "anchor": "ParseBoardDoc",
              "decl": "func ParseBoardDoc(data []byte) (*BoardDoc, error)",
              "doc": "ParseBoardDoc decodes one YAML BoardDoc and validates it. Unknown fields and trailing documents are refused.\n",
              "file": "pkg/cards/format.go",
              "line": 121
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "BoardDoc.Validate",
              "recv": "*BoardDoc",
              "decl": "func (doc *BoardDoc) Validate() error",
              "doc": "Validate checks doc against the version 1 schema: positive finite sizes, finite coordinates, unique non-empty slot IDs, exactly one layout per slot with non-negative counts and a Fan arc under 360 degrees, unique non-empty tags, a non-negative capacity and a known grab rule.\n",
              "file": "pkg/cards/format.go",
              "line": 166
            }
          ]
        },
        {
          "name": "Card",
          "anchor": "Card",
          "decl": "type Card struct {\n\t// ID names the card for the game; the board does not require it to be unique.\n\tID string\n\t// Tags are matched against Slot.Accepts.\n\tTags []string\n\t// Locked keeps the card from being picked up by a pointer; programmatic moves still apply.\n\tLocked bool\n\t// Data is the game's payload for the card.\n\tData any\n\t// contains filtered or unexported fields\n}",
          "doc": "Card is one card on a Board. Its exported fields are the game's; the board owns where it is and how it moves.\n",
          "file": "pkg/cards/board.go",
          "line": 66,
          "members": [
            {
              "name": "ID",
              "anchor": "Card.ID",
              "kind": "field",
              "doc": "ID names the card for the game; the board does not require it to be unique."
            },
            {
              "name": "Tags",
              "anchor": "Card.Tags",
              "kind": "field",
              "doc": "Tags are matched against Slot.Accepts."
            },
            {
              "name": "Locked",
              "anchor": "Card.Locked",
              "kind": "field",
              "doc": "Locked keeps the card from being picked up by a pointer; programmatic moves still apply."
            },
            {
              "name": "Data",
              "anchor": "Card.Data",
              "kind": "field",
              "doc": "Data is the game's payload for the card."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "HasTag",
              "anchor": "Card.HasTag",
              "recv": "*Card",
              "decl": "func (c *Card) HasTag(tag string) bool",
              "doc": "HasTag reports whether tag is one of the card's Tags.\n",
              "file": "pkg/cards/board.go",
              "line": 109
            },
            {
              "name": "Held",
              "anchor": "Card.Held",
              "recv": "*Card",
              "decl": "func (c *Card) Held() bool",
              "doc": "Held reports whether a pointer is dragging the card.\n",
              "file": "pkg/cards/board.go",
              "line": 103
            },
            {
              "name": "Index",
              "anchor": "Card.Index",
              "recv": "*Card",
              "decl": "func (c *Card) Index() int",
              "doc": "Index returns the card's place in its slot, 0 being the first (bottom) card, or -1 when it is not on a board.\n",
              "file": "pkg/cards/board.go",
              "line": 95
            },
            {
              "name": "Moving",
              "anchor": "Card.Moving",
              "recv": "*Card",
              "decl": "func (c *Card) Moving() bool",
              "doc": "Moving reports whether the card is tweening to a pose.\n",
              "file": "pkg/cards/board.go",
              "line": 106
            },
            {
              "name": "Pose",
              "anchor": "Card.Pose",
              "recv": "*Card",
              "decl": "func (c *Card) Pose() Pose",
              "doc": "Pose returns where the card is drawn now.\n",
              "file": "pkg/cards/board.go",
              "line": 89
            },
            {
              "name": "Slot",
              "anchor": "Card.Slot",
              "recv": "*Card",
              "decl": "func (c *Card) Slot() *Slot",
              "doc": "Slot returns the slot holding the card, or nil when it is not on a board.\n",
              "file": "pkg/cards/board.go",
              "line": 92
            }
          ]
        },
        {
          "name": "DropEvent",
          "anchor": "DropEvent",
          "decl": "type DropEvent struct {\n\tCard *Card\n\t// From and FromIndex are where the card was; To and Index where it is now. From equals To when a card was reordered within its slot.\n\tFrom, To         *Slot\n\tFromIndex, Index int\n}",
          "doc": "DropEvent reports a card dropped into a slot that accepted it.\n",
          "file": "pkg/cards/board.go",
          "line": 160,
          "members": [
            {
              "name": "Card",
              "anchor": "DropEvent.Card",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "From",
              "anchor": "DropEvent.From",
              "kind": "field",
              "doc": "From and FromIndex are where the card was; To and Index where it is now. From equals To when a card was reordered within its slot."
            },
            {
              "name": "To",
              "anchor": "DropEvent.To",
              "kind": "field",
              "doc": "From and FromIndex are where the card was; To and Index where it is now. From equals To when a card was reordered within its slot."
            },
            {
              "name": "FromIndex",
              "anchor": "DropEvent.FromIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Index",
              "anchor": "DropEvent.Index",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Fan",
          "anchor": "Fan",
          "decl": "type Fan struct {\n\t// Spacing is the distance in points between neighboring cards' centers; 0 uses 60% of the card's width.\n\tSpacing float32\n\t// Arc is the rotation in degrees from the leftmost to the rightmost card of a full-width hand; 0 keeps every card upright.\n\tArc float32\n\t// Sag is how many points the end cards of a full-width hand sit below the middle one (negative raises them).\n\tSag float32\n}",
          "doc": "Fan lays a hand out in a row centered in the slot, tilting and dropping the cards toward its ends as a hand held in a fan.\n\nCards sit Spacing apart, closer when the row would not fit the slot's width. A card's tilt and drop grow with its distance from the middle relative to half the room the slot has, so a full-width hand reaches ±Arc/2 at its ends and a short hand stays nearly flat.\n",
          "file": "pkg/cards/layout.go",
          "line": 31,
          "members": [
            {
              "name": "Spacing",
              "anchor": "Fan.Spacing",
              "kind": "field",
              "doc": "Spacing is the distance in points between neighboring cards' centers; 0 uses 60% of the card's width."
            },
            {
              "name": "Arc",
              "anchor": "Fan.Arc",
              "kind": "field",
              "doc": "Arc is the rotation in degrees from the leftmost to the rightmost card of a full-width hand; 0 keeps every card upright."
            },
            {
              "name": "Sag",
              "anchor": "Fan.Sag",
              "kind": "field",
              "doc": "Sag is how many points the end cards of a full-width hand sit below the middle one (negative raises them)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Arrange",
              "anchor": "Fan.Arrange",
              "recv": "Fan",
              "decl": "func (f Fan) Arrange(area math2d.Rect, card math2d.Vec2, n int, dst []Pose) []Pose",
              "doc": "Arrange implements Layout.\n",
              "file": "pkg/cards/layout.go",
              "line": 54
            },
            {
              "name": "InsertIndex",
              "anchor": "Fan.InsertIndex",
              "recv": "Fan",
              "decl": "func (f Fan) InsertIndex(area math2d.Rect, card math2d.Vec2, n int, p math2d.Vec2) int",
              "doc": "InsertIndex implements Layout: the place in the row, once it holds n+1 cards, nearest to p horizontally.\n",
              "file": "pkg/cards/layout.go",
              "line": 73
            }
          ]
        },
        {
          "name": "FanDoc",
          "anchor": "FanDoc",
          "decl": "type FanDoc struct {\n\tSpacing float32 `yaml:\"spacing,omitempty\"`\n\tArc     float32 `yaml:\"arc,omitempty\"`\n\tSag     float32 `yaml:\"sag,omitempty\"`\n}",
          "doc": "FanDoc is a Fan; Arc is in degrees.\n",
          "file": "pkg/cards/format.go",
          "line": 99,
          "members": [
            {
              "name": "Spacing",
              "anchor": "FanDoc.Spacing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Arc",
              "anchor": "FanDoc.Arc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sag",
              "anchor": "FanDoc.Sag",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GrabRule",
          "anchor": "GrabRule",
          "decl": "type GrabRule uint8",
          "doc": "GrabRule says which cards of a slot a pointer may pick up.\n",
          "file": "pkg/cards/board.go",
          "line": 40,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GrabAny",
                  "anchor": "GrabAny"
                },
                {
                  "name": "GrabTop",
                  "anchor": "GrabTop"
                },
                {
                  "name": "GrabNone",
                  "anchor": "GrabNone"
                }
              ],
              "decl": "const (\n\t// GrabAny lets any card of the slot be dragged, as from a hand.\n\tGrabAny GrabRule = iota\n\t// GrabTop lets only the last (topmost) card be dragged, as from a deck or a discard pile.\n\tGrabTop\n\t// GrabNone keeps every card of the slot in place.\n\tGrabNone\n)",
              "doc": "",
              "file": "pkg/cards/board.go",
              "line": 42
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "GrabRule.String",
              "recv": "GrabRule",
              "decl": "func (g GrabRule) String() string",
              "doc": "String returns the rule's name: \"any\", \"top\" or \"none\". BoardDoc writes \"top\" and \"none\" and leaves GrabAny out.\n",
              "file": "pkg/cards/board.go",
              "line": 52
            }
          ]
        },
        {
          "name": "Grid",
          "anchor": "Grid",
          "decl": "type Grid struct {\n\t// Columns is how many cards fill a row; 0 fits as many as the slot's width holds (at least one).\n\tColumns int\n\t// Gap is the space in points between neighboring cards, across (X) and down (Y).\n\tGap math2d.Vec2\n}",
          "doc": "Grid lays cards out in rows from the slot's top-left corner, left to right and then top to bottom, as a board of cells or an inventory.\n",
          "file": "pkg/cards/layout.go",
          "line": 112,
          "members": [
            {
              "name": "Columns",
              "anchor": "Grid.Columns",
              "kind": "field",
              "doc": "Columns is how many cards fill a row; 0 fits as many as the slot's width holds (at least one)."
            },
            {
              "name": "Gap",
              "anchor": "Grid.Gap",
              "kind": "field",
              "doc": "Gap is the space in points between neighboring cards, across (X) and down (Y)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Arrange",
              "anchor": "Grid.Arrange",
              "recv": "Grid",
              "decl": "func (g Grid) Arrange(area math2d.Rect, card math2d.Vec2, n int, dst []Pose) []Pose",
              "doc": "Arrange implements Layout.\n",
              "file": "pkg/cards/layout.go",
              "line": 131
            },
            {
              "name": "InsertIndex",
              "anchor": "Grid.InsertIndex",
              "recv": "Grid",
              "decl": "func (g Grid) InsertIndex(area math2d.Rect, card math2d.Vec2, n int, p math2d.Vec2) int",
              "doc": "InsertIndex implements Layout: the cell under p, kept within the n+1 cells the slot then fills.\n",
              "file": "pkg/cards/layout.go",
              "line": 144
            }
          ]
        },
        {
          "name": "GridDoc",
          "anchor": "GridDoc",
          "decl": "type GridDoc struct {\n\tColumns int    `yaml:\"columns,omitempty\"`\n\tGap     VecDoc `yaml:\"gap,omitempty\"`\n}",
          "doc": "GridDoc is a Grid.\n",
          "file": "pkg/cards/format.go",
          "line": 112,
          "members": [
            {
              "name": "Columns",
              "anchor": "GridDoc.Columns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Gap",
              "anchor": "GridDoc.Gap",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Layout",
          "anchor": "Layout",
          "decl": "type Layout interface {\n\t// Arrange appends the poses of n cards of size card laid out in area to dst, first card first, and returns the extended slice. It must append exactly n poses (none for n <= 0) and depend only on its arguments.\n\tArrange(area math2d.Rect, card math2d.Vec2, n int, dst []Pose) []Pose\n\t// InsertIndex returns where, in [0, n], a card dropped with its center at p goes among the n cards already laid out in area.\n\tInsertIndex(area math2d.Rect, card math2d.Vec2, n int, p math2d.Vec2) int\n}",
          "doc": "Layout arranges the cards of a slot inside the slot's rectangle. Fan, Stack and Grid implement it; a game may supply its own.\n",
          "file": "pkg/cards/layout.go",
          "line": 21,
          "members": [
            {
              "name": "Arrange",
              "anchor": "Layout.Arrange",
              "kind": "method",
              "doc": "Arrange appends the poses of n cards of size card laid out in area to dst, first card first, and returns the extended slice. It must append exactly n poses (none for n <= 0) and depend only on its arguments."
            },
            {
              "name": "InsertIndex",
              "anchor": "Layout.InsertIndex",
              "kind": "method",
              "doc": "InsertIndex returns where, in [0, n], a card dropped with its center at p goes among the n cards already laid out in area."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayoutDoc",
          "anchor": "LayoutDoc",
          "decl": "type LayoutDoc struct {\n\tFan   *FanDoc   `yaml:\"fan,omitempty\"`\n\tStack *StackDoc `yaml:\"stack,omitempty\"`\n\tGrid  *GridDoc  `yaml:\"grid,omitempty\"`\n}",
          "doc": "LayoutDoc names a slot's layout: exactly one of its fields is set.\n",
          "file": "pkg/cards/format.go",
          "line": 92,
          "members": [
            {
              "name": "Fan",
              "anchor": "LayoutDoc.Fan",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stack",
              "anchor": "LayoutDoc.Stack",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grid",
              "anchor": "LayoutDoc.Grid",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Pose",
          "anchor": "Pose",
          "decl": "type Pose struct {\n\tPos math2d.Vec2\n\tRot float32\n}",
          "doc": "Pose places a card: Pos is its center in board coordinates and Rot its rotation in radians around that center, turning from +X toward +Y (clockwise on NSGo's Y-down canvas).\n",
          "file": "pkg/cards/layout.go",
          "line": 10,
          "members": [
            {
              "name": "Pos",
              "anchor": "Pose.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rot",
              "anchor": "Pose.Rot",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Lerp",
              "anchor": "Pose.Lerp",
              "recv": "Pose",
              "decl": "func (p Pose) Lerp(q Pose, t float32) Pose",
              "doc": "Lerp returns the pose t of the way from p to q, interpolating the center and the rotation linearly.\n",
              "file": "pkg/cards/layout.go",
              "line": 16
            }
          ]
        },
        {
          "name": "RectDoc",
          "anchor": "RectDoc",
          "decl": "type RectDoc struct {\n\tX float32 `yaml:\"x\"`\n\tY float32 `yaml:\"y\"`\n\tW float32 `yaml:\"w\"`\n\tH float32 `yaml:\"h\"`\n}",
          "doc": "RectDoc is a rectangle in board coordinates, its origin at the top-left corner.\n",
          "file": "pkg/cards/format.go",
          "line": 74,
          "members": [
            {
              "name": "X",
              "anchor": "RectDoc.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "RectDoc.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "RectDoc.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "RectDoc.H",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReturnEvent",
          "anchor": "ReturnEvent",
          "decl": "type ReturnEvent struct {\n\tCard *Card\n\t// Slot is the slot the card returns to.\n\tSlot *Slot\n\t// Rejected is the slot that refused the drop, or nil when the card was released over no slot or its pointer was cancelled.\n\tRejected *Slot\n}",
          "doc": "ReturnEvent reports a dragged card going back to its slot.\n",
          "file": "pkg/cards/board.go",
          "line": 168,
          "members": [
            {
              "name": "Card",
              "anchor": "ReturnEvent.Card",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Slot",
              "anchor": "ReturnEvent.Slot",
              "kind": "field",
              "doc": "Slot is the slot the card returns to."
            },
            {
              "name": "Rejected",
              "anchor": "ReturnEvent.Rejected",
              "kind": "field",
              "doc": "Rejected is the slot that refused the drop, or nil when the card was released over no slot or its pointer was cancelled."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SizeDoc",
          "anchor": "SizeDoc",
          "decl": "type SizeDoc struct {\n\tW float32 `yaml:\"w\"`\n\tH float32 `yaml:\"h\"`\n}",
          "doc": "SizeDoc is a width and a height in board coordinates.\n",
          "file": "pkg/cards/format.go",
          "line": 62,
          "members": [
            {
              "name": "W",
              "anchor": "SizeDoc.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "SizeDoc.H",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Slot",
          "anchor": "Slot",
          "decl": "type Slot struct {\n\t// ID names the slot; it must be unique on its board.\n\tID string\n\t// Rect is the slot's area in board coordinates: where its layout places cards and where a pointer drops onto it.\n\tRect math2d.Rect\n\t// Layout arranges the slot's cards; nil stacks them all at Rect's top-left corner, as Stack{}.\n\tLayout Layout\n\t// Accepts, when not empty, admits only cards with at least one of these tags.\n\tAccepts []string\n\t// Capacity, when positive, is how many cards the slot holds at most.\n\tCapacity int\n\t// Grab says which of the slot's cards a pointer may pick up.\n\tGrab GrabRule\n\t// Accept, when set, also has to admit a card dropped from slot from.\n\tAccept func(c *Card, from *Slot) bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Slot is a place on a Board that holds cards in order and lays them out in Rect.\n",
          "file": "pkg/cards/board.go",
          "line": 112,
          "members": [
            {
              "name": "ID",
              "anchor": "Slot.ID",
              "kind": "field",
              "doc": "ID names the slot; it must be unique on its board."
            },
            {
              "name": "Rect",
              "anchor": "Slot.Rect",
              "kind": "field",
              "doc": "Rect is the slot's area in board coordinates: where its layout places cards and where a pointer drops onto it."
            },
            {
              "name": "Layout",
              "anchor": "Slot.Layout",
              "kind": "field",
              "doc": "Layout arranges the slot's cards; nil stacks them all at Rect's top-left corner, as Stack{}."
            },
            {
              "name": "Accepts",
              "anchor": "Slot.Accepts",
              "kind": "field",
              "doc": "Accepts, when not empty, admits only cards with at least one of these tags."
            },
            {
              "name": "Capacity",
              "anchor": "Slot.Capacity",
              "kind": "field",
              "doc": "Capacity, when positive, is how many cards the slot holds at most."
            },
            {
              "name": "Grab",
              "anchor": "Slot.Grab",
              "kind": "field",
              "doc": "Grab says which of the slot's cards a pointer may pick up."
            },
            {
              "name": "Accept",
              "anchor": "Slot.Accept",
              "kind": "field",
              "doc": "Accept, when set, also has to admit a card dropped from slot from."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Board",
              "anchor": "Slot.Board",
              "recv": "*Slot",
              "decl": "func (s *Slot) Board() *Board",
              "doc": "Board returns the board holding the slot, or nil.\n",
              "file": "pkg/cards/board.go",
              "line": 133
            },
            {
              "name": "Card",
              "anchor": "Slot.Card",
              "recv": "*Slot",
              "decl": "func (s *Slot) Card(i int) *Card",
              "doc": "Card returns the slot's i-th card, 0 being the first (bottom) one, or nil when i is out of range.\n",
              "file": "pkg/cards/board.go",
              "line": 139
            },
            {
              "name": "Cards",
              "anchor": "Slot.Cards",
              "recv": "*Slot",
              "decl": "func (s *Slot) Cards() []*Card",
              "doc": "Cards returns a copy of the slot's cards in order.\n",
              "file": "pkg/cards/board.go",
              "line": 150
            },
            {
              "name": "Len",
              "anchor": "Slot.Len",
              "recv": "*Slot",
              "decl": "func (s *Slot) Len() int",
              "doc": "Len returns how many cards the slot holds.\n",
              "file": "pkg/cards/board.go",
              "line": 136
            },
            {
              "name": "Top",
              "anchor": "Slot.Top",
              "recv": "*Slot",
              "decl": "func (s *Slot) Top() *Card",
              "doc": "Top returns the slot's last card, or nil when it is empty.\n",
              "file": "pkg/cards/board.go",
              "line": 147
            }
          ]
        },
        {
          "name": "SlotDoc",
          "anchor": "SlotDoc",
          "decl": "type SlotDoc struct {\n\tID       string    `yaml:\"id\"`\n\tRect     RectDoc   `yaml:\"rect\"`\n\tLayout   LayoutDoc `yaml:\"layout\"`\n\tAccepts  []string  `yaml:\"accepts,omitempty\"`\n\tCapacity int       `yaml:\"capacity,omitempty\"`\n\tGrab     string    `yaml:\"grab,omitempty\"`\n}",
          "doc": "SlotDoc is one Slot: Grab is \"top\" or \"none\", or omitted for GrabAny; \"any\" itself is refused so the default has a single form.\n",
          "file": "pkg/cards/format.go",
          "line": 82,
          "members": [
            {
              "name": "ID",
              "anchor": "SlotDoc.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rect",
              "anchor": "SlotDoc.Rect",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layout",
              "anchor": "SlotDoc.Layout",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Accepts",
              "anchor": "SlotDoc.Accepts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Capacity",
              "anchor": "SlotDoc.Capacity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grab",
              "anchor": "SlotDoc.Grab",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Stack",
          "anchor": "Stack",
          "decl": "type Stack struct {\n\t// Offset moves each card from the one before it, in points.\n\tOffset math2d.Vec2\n\t// Depth caps how many distinct offsets show: cards past the first Depth sit where the Depth-th does, so a tall deck keeps its footprint. 0 means no cap.\n\tDepth int\n}",
          "doc": "Stack piles cards from the slot's top-left corner, each Offset from the one below it: a small offset makes a deck, a card-height fraction makes a pile whose cards all show, as a solitaire column.\n",
          "file": "pkg/cards/layout.go",
          "line": 86,
          "members": [
            {
              "name": "Offset",
              "anchor": "Stack.Offset",
              "kind": "field",
              "doc": "Offset moves each card from the one before it, in points."
            },
            {
              "name": "Depth",
              "anchor": "Stack.Depth",
              "kind": "field",
              "doc": "Depth caps how many distinct offsets show: cards past the first Depth sit where the Depth-th does, so a tall deck keeps its footprint. 0 means no cap."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Arrange",
              "anchor": "Stack.Arrange",
              "recv": "Stack",
              "decl": "func (s Stack) Arrange(area math2d.Rect, card math2d.Vec2, n int, dst []Pose) []Pose",
              "doc": "Arrange implements Layout.\n",
              "file": "pkg/cards/layout.go",
              "line": 94
            },
            {
              "name": "InsertIndex",
              "anchor": "Stack.InsertIndex",
              "recv": "Stack",
              "decl": "func (s Stack) InsertIndex(_ math2d.Rect, _ math2d.Vec2, n int, _ math2d.Vec2) int",
              "doc": "InsertIndex implements Layout: a stack only grows on top.\n",
              "file": "pkg/cards/layout.go",
              "line": 107
            }
          ]
        },
        {
          "name": "StackDoc",
          "anchor": "StackDoc",
          "decl": "type StackDoc struct {\n\tOffset VecDoc `yaml:\"offset,omitempty\"`\n\tDepth  int    `yaml:\"depth,omitempty\"`\n}",
          "doc": "StackDoc is a Stack.\n",
          "file": "pkg/cards/format.go",
          "line": 106,
          "members": [
            {
              "name": "Offset",
              "anchor": "StackDoc.Offset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "StackDoc.Depth",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "VecDoc",
          "anchor": "VecDoc",
          "decl": "type VecDoc struct {\n\tX float32 `yaml:\"x\"`\n\tY float32 `yaml:\"y\"`\n}",
          "doc": "VecDoc is a 2D offset in board coordinates.\n",
          "file": "pkg/cards/format.go",
          "line": 68,
          "members": [
            {
              "name": "X",
              "anchor": "VecDoc.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "VecDoc.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/cloudsave",
      "name": "cloudsave",
      "dir": "pkg/cloudsave",
      "page": "pkg/cloudsave",
      "synopsis": "Package cloudsave is a self-hostable cloud save service: per-account save slots over HTTPS, kept in versions so that concurrent writes from two devices are refused rather than silently overwritten, slots over a size limit are rejected, and the last few versions of each slot can be listed and restored.",
      "doc": "Package cloudsave is a self-hostable cloud save service: per-account save slots over HTTPS, kept in versions so that concurrent writes from two devices are refused rather than silently overwritten, slots over a size limit are rejected, and the last few versions of each slot can be listed and restored.\n\n# Accounts\n\nThe service does not keep accounts. Each request carries a bearer token from the account service (package accounts), which the service verifies offline with a token.Verifier; the token's subject is the account ID its slots are filed under. A player signed in to the same account on the web and on a phone reads and writes the same slots.\n\n# Versions and conflicts\n\nEvery write or delete adds a version to the slot, numbered from 1, and the service keeps the newest Config.KeepVersions of them; a delete is a version that marks the slot deleted, so a deleted slot can still be restored. A write may name the payload it expects to replace by its hash (\"If-Match\") or require that the slot does not exist (\"If-None-Match: *\"); when the slot holds anything else the write fails with ErrChanged (HTTP 412) and changes nothing. liveops.CloudClient makes every write of a liveops.CloudSyncer conditional this way, so a write that loses a race surfaces as a conflict the syncer's policy resolves.\n\n# Limits\n\nA payload over Config.MaxSlotBytes is refused with ErrSlotTooLarge (HTTP 413) and a new slot beyond Config.MaxSlots live slots with ErrTooManySlots (HTTP 409). A deleted slot does not count toward MaxSlots; beyond MaxSlots deleted slots per account, the oldest are purged with their history.\n\n# Storage\n\nThe service keeps its records in a Store: NewMemoryStore for tests and prototypes, or the SQL store of package sqlstore on SQLite or Postgres. Package storetest checks any Store against the contract.\n\n# Configuration\n\nConfig is a versioned YAML file (ParseConfig, Config.Marshal); Service.Handler serves the service over HTTP, and command cloudsaved runs it as a standalone server.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MaxSlotBytesLimit",
              "anchor": "MaxSlotBytesLimit"
            },
            {
              "name": "MaxSlotsLimit",
              "anchor": "MaxSlotsLimit"
            },
            {
              "name": "MaxKeepVersions",
              "anchor": "MaxKeepVersions"
            }
          ],
          "decl": "const (\n\t// MaxSlotBytesLimit is the largest Config.MaxSlotBytes: 64 MiB.\n\tMaxSlotBytesLimit = 64 << 20\n\t// MaxSlotsLimit is the largest Config.MaxSlots.\n\tMaxSlotsLimit = 10000\n\t// MaxKeepVersions is the largest Config.KeepVersions.\n\tMaxKeepVersions = 100\n)",
          "doc": "Bounds of the configuration's limits.\n",
          "file": "pkg/cloudsave/config.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ConfigVersion",
              "anchor": "ConfigVersion"
            }
          ],
          "decl": "const ConfigVersion = 1",
          "doc": "ConfigVersion is the configuration file schema version this package reads and writes.\n",
          "file": "pkg/cloudsave/config.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "HeaderVersion",
              "anchor": "HeaderVersion"
            }
          ],
          "decl": "const (\n\t// HeaderVersion carries a slot version's number on GET responses.\n\tHeaderVersion = \"Save-Version\"\n)",
          "doc": "Headers of the HTTP protocol besides the standard ones.\n",
          "file": "pkg/cloudsave/http.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "MaxAccountBytes",
              "anchor": "MaxAccountBytes"
            }
          ],
          "decl": "const MaxAccountBytes = 256",
          "doc": "MaxAccountBytes is the longest account ID, in bytes, the service files slots under.\n",
          "file": "pkg/cloudsave/store.go",
          "line": 32
        },
        {
          "idents": [
            {
              "name": "MaxSlotNameBytes",
              "anchor": "MaxSlotNameBytes"
            }
          ],
          "decl": "const MaxSlotNameBytes = 200",
          "doc": "MaxSlotNameBytes is the longest slot name, in bytes; it matches the limit of save.ValidateSlot.\n",
          "file": "pkg/cloudsave/store.go",
          "line": 29
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNotFound",
              "anchor": "ErrNotFound"
            },
            {
              "name": "ErrChanged",
              "anchor": "ErrChanged"
            },
            {
              "name": "ErrSlotTooLarge",
              "anchor": "ErrSlotTooLarge"
            },
            {
              "name": "ErrTooManySlots",
              "anchor": "ErrTooManySlots"
            },
            {
              "name": "ErrInvalidSlot",
              "anchor": "ErrInvalidSlot"
            },
            {
              "name": "ErrInvalidAccount",
              "anchor": "ErrInvalidAccount"
            }
          ],
          "decl": "var (\n\t// ErrNotFound reports a slot, or a version of one, that the account does not have. Service.Load returns it for a deleted slot too.\n\tErrNotFound = errors.New(\"cloudsave: not found\")\n\t// ErrChanged reports a conditional write or delete whose precondition no longer holds because the slot changed. Nothing was written.\n\tErrChanged = errors.New(\"cloudsave: slot changed\")\n\t// ErrSlotTooLarge reports a payload over Config.MaxSlotBytes. Nothing was written.\n\tErrSlotTooLarge = errors.New(\"cloudsave: slot too large\")\n\t// ErrTooManySlots reports a write that would give the account more than Config.MaxSlots live slots. Nothing was written.\n\tErrTooManySlots = errors.New(\"cloudsave: too many slots\")\n\t// ErrInvalidSlot reports a slot name ValidateSlot refuses.\n\tErrInvalidSlot = errors.New(\"cloudsave: invalid slot name\")\n\t// ErrInvalidAccount reports an empty account ID or one longer than MaxAccountBytes.\n\tErrInvalidAccount = errors.New(\"cloudsave: invalid account id\")\n)",
          "doc": "",
          "file": "pkg/cloudsave/store.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "MatchAny",
              "anchor": "MatchAny"
            }
          ],
          "decl": "var MatchAny = Match{Any: true}",
          "doc": "MatchAny is the precondition that always holds.\n",
          "file": "pkg/cloudsave/store.go",
          "line": 87
        }
      ],
      "funcs": [
        {
          "name": "Hash",
          "anchor": "Hash",
          "decl": "func Hash(data []byte) string",
          "doc": "Hash returns the hash a slot's payload is identified by in versions, ETags and If-Match preconditions: \"sha256:\" followed by the lowercase hex SHA-256 of data. It equals liveops.PayloadHash.\n",
          "file": "pkg/cloudsave/store.go",
          "line": 55
        },
        {
          "name": "ValidateSlot",
          "anchor": "ValidateSlot",
          "decl": "func ValidateSlot(slot string) error",
          "doc": "ValidateSlot checks that slot is a name the service stores: 1 to MaxSlotNameBytes bytes of UTF-8 with no control characters and no '/', other than \".\" and \"..\", which are not path segments a URL can carry. Every name save.ValidateSlot accepts passes.\n",
          "file": "pkg/cloudsave/store.go",
          "line": 35
        }
      ],
      "types": [
        {
          "name": "Config",
          "anchor": "Config",
          "decl": "type Config struct {\n\t// Version is the schema version; it must be ConfigVersion.\n\tVersion int `yaml:\"version\"`\n\t// MaxSlotBytes is the largest payload a slot may hold, in bytes, from 1 to MaxSlotBytesLimit. A liveops.CloudSyncer payload is the save inside a JSON envelope: about 250 bytes more, with the save's quotes and backslashes escaped, or base64, a third larger, for data that is not UTF-8.\n\tMaxSlotBytes int `yaml:\"maxSlotBytes\"`\n\t// MaxSlots is how many live slots an account may have, from 1 to MaxSlotsLimit.\n\tMaxSlots int `yaml:\"maxSlots\"`\n\t// KeepVersions is how many of each slot's newest versions are kept, the current one included, from 1 to MaxKeepVersions.\n\tKeepVersions int `yaml:\"keepVersions\"`\n\t// AllowedOrigins lists the web origins (\"https://play.example.com\") whose pages may call the service from a browser. The handler answers their CORS preflight requests; other origins get no CORS headers, so browsers refuse their requests. Native clients send no origin and need no entry.\n\tAllowedOrigins []string `yaml:\"allowedOrigins,omitempty\"`\n}",
          "doc": "Config is the cloud save service's settings, kept in a YAML file:\n\n\tversion: 1\n\tmaxSlotBytes: 1048576\n\tmaxSlots: 32\n\tkeepVersions: 5\n\tallowedOrigins:\n\t  - https://play.example.com\n\nUnknown fields are refused. Marshal writes the canonical form: the fields in this order and allowedOrigins only when it has entries. A file in that form, such as one Marshal wrote, reads back and writes again unchanged.\n",
          "file": "pkg/cloudsave/config.go",
          "line": 38,
          "members": [
            {
              "name": "Version",
              "anchor": "Config.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be ConfigVersion."
            },
            {
              "name": "MaxSlotBytes",
              "anchor": "Config.MaxSlotBytes",
              "kind": "field",
              "doc": "MaxSlotBytes is the largest payload a slot may hold, in bytes, from 1 to MaxSlotBytesLimit. A liveops.CloudSyncer payload is the save inside a JSON envelope: about 250 bytes more, with the save's quotes and backslashes escaped, or base64, a third larger, for data that is not UTF-8."
            },
            {
              "name": "MaxSlots",
              "anchor": "Config.MaxSlots",
              "kind": "field",
              "doc": "MaxSlots is how many live slots an account may have, from 1 to MaxSlotsLimit."
            },
            {
              "name": "KeepVersions",
              "anchor": "Config.KeepVersions",
              "kind": "field",
              "doc": "KeepVersions is how many of each slot's newest versions are kept, the current one included, from 1 to MaxKeepVersions."
            },
            {
              "name": "AllowedOrigins",
              "anchor": "Config.AllowedOrigins",
              "kind": "field",
              "doc": "AllowedOrigins lists the web origins (\"https://play.example.com\") whose pages may call the service from a browser. The handler answers their CORS preflight requests; other origins get no CORS headers, so browsers refuse their requests. Native clients send no origin and need no entry."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultConfig",
              "anchor": "DefaultConfig",
              "decl": "func DefaultConfig() Config",
              "doc": "DefaultConfig returns a configuration with 1 MiB slots, 32 slots per account and 5 versions kept per slot, and no web origins.\n",
              "file": "pkg/cloudsave/config.go",
              "line": 52
            },
            {
              "name": "ParseConfig",
              "anchor": "ParseConfig",
              "decl": "func ParseConfig(data []byte) (Config, error)",
              "doc": "ParseConfig decodes and validates a YAML configuration. Unknown fields and trailing documents are refused.\n",
              "file": "pkg/cloudsave/config.go",
              "line": 102
            }
          ],
          "methods": [
            {
              "name": "Marshal",
              "anchor": "Config.Marshal",
              "recv": "Config",
              "decl": "func (c Config) Marshal() ([]byte, error)",
              "doc": "Marshal validates c and encodes it as deterministic 2-space YAML.\n",
              "file": "pkg/cloudsave/config.go",
              "line": 126
            },
            {
              "name": "Validate",
              "anchor": "Config.Validate",
              "recv": "Config",
              "decl": "func (c Config) Validate() error",
              "doc": "Validate checks that c is a complete version 1 configuration.\n",
              "file": "pkg/cloudsave/config.go",
              "line": 57
            }
          ]
        },
        {
          "name": "Match",
          "anchor": "Match",
          "decl": "type Match struct {\n\t// Any skips the check: the write applies whatever the slot holds.\n\tAny bool\n\t// Hash, when Any is false, is the hash of the payload the slot must hold; empty means the slot must not exist (never written, or deleted).\n\tHash string\n}",
          "doc": "Match is the precondition of a conditional write or delete.\n",
          "file": "pkg/cloudsave/store.go",
          "line": 79,
          "members": [
            {
              "name": "Any",
              "anchor": "Match.Any",
              "kind": "field",
              "doc": "Any skips the check: the write applies whatever the slot holds."
            },
            {
              "name": "Hash",
              "anchor": "Match.Hash",
              "kind": "field",
              "doc": "Hash, when Any is false, is the hash of the payload the slot must hold; empty means the slot must not exist (never written, or deleted)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "MatchHash",
              "anchor": "MatchHash",
              "decl": "func MatchHash(hash string) Match",
              "doc": "MatchHash is the precondition that the slot holds the payload with this hash, or, for \"\", that it does not exist.\n",
              "file": "pkg/cloudsave/store.go",
              "line": 90
            }
          ],
          "methods": [
            {
              "name": "Holds",
              "anchor": "Match.Holds",
              "recv": "Match",
              "decl": "func (m Match) Holds(head Version, exists bool) bool",
              "doc": "Holds reports whether m holds for a slot whose newest version is head; exists is false when the slot has no versions. A Store's Append decides its precondition with it.\n",
              "file": "pkg/cloudsave/store.go",
              "line": 93
            }
          ]
        },
        {
          "name": "MemoryStore",
          "anchor": "MemoryStore",
          "decl": "type MemoryStore struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MemoryStore is a Store held in memory, for tests and single-process prototypes. Its records are lost when the process ends.\n",
          "file": "pkg/cloudsave/memory.go",
          "line": 11,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMemoryStore",
              "anchor": "NewMemoryStore",
              "decl": "func NewMemoryStore() *MemoryStore",
              "doc": "NewMemoryStore returns an empty MemoryStore.\n",
              "file": "pkg/cloudsave/memory.go",
              "line": 19
            }
          ],
          "methods": [
            {
              "name": "Append",
              "anchor": "MemoryStore.Append",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Append(_ context.Context, account, slot string, w Write) (Version, error)",
              "doc": "Append implements Store.\n",
              "file": "pkg/cloudsave/memory.go",
              "line": 74
            },
            {
              "name": "Head",
              "anchor": "MemoryStore.Head",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Head(_ context.Context, account, slot string) (Version, error)",
              "doc": "Head implements Store.\n",
              "file": "pkg/cloudsave/memory.go",
              "line": 24
            },
            {
              "name": "Purge",
              "anchor": "MemoryStore.Purge",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Purge(_ context.Context, account, slot string) error",
              "doc": "Purge implements Store.\n",
              "file": "pkg/cloudsave/memory.go",
              "line": 136
            },
            {
              "name": "Slots",
              "anchor": "MemoryStore.Slots",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Slots(_ context.Context, account string) ([]Version, error)",
              "doc": "Slots implements Store.\n",
              "file": "pkg/cloudsave/memory.go",
              "line": 62
            },
            {
              "name": "Version",
              "anchor": "MemoryStore.Version",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Version(_ context.Context, account, slot string, number int64) (Version, error)",
              "doc": "Version implements Store.\n",
              "file": "pkg/cloudsave/memory.go",
              "line": 35
            },
            {
              "name": "Versions",
              "anchor": "MemoryStore.Versions",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Versions(_ context.Context, account, slot string) ([]Version, error)",
              "doc": "Versions implements Store.\n",
              "file": "pkg/cloudsave/memory.go",
              "line": 47
            }
          ]
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Store keeps the slots. Required.\n\tStore Store\n\t// Tokens verifies the bearer tokens of HTTP requests: a token.Verifier built from the account service's key set (token.NewVerifier). Required. The Go methods take the account ID directly; Handler takes it from the token's subject.\n\tTokens *token.Verifier\n\t// Logger receives errors outside the service's contract, such as a failing database. Nil discards them.\n\tLogger *slog.Logger\n\t// Now returns the current time, used to stamp versions; time.Now when nil.\n\tNow func() time.Time\n}",
          "doc": "Options are what a Service needs besides its Config.\n",
          "file": "pkg/cloudsave/service.go",
          "line": 14,
          "members": [
            {
              "name": "Store",
              "anchor": "Options.Store",
              "kind": "field",
              "doc": "Store keeps the slots. Required."
            },
            {
              "name": "Tokens",
              "anchor": "Options.Tokens",
              "kind": "field",
              "doc": "Tokens verifies the bearer tokens of HTTP requests: a token.Verifier built from the account service's key set (token.NewVerifier). Required. The Go methods take the account ID directly; Handler takes it from the token's subject."
            },
            {
              "name": "Logger",
              "anchor": "Options.Logger",
              "kind": "field",
              "doc": "Logger receives errors outside the service's contract, such as a failing database. Nil discards them."
            },
            {
              "name": "Now",
              "anchor": "Options.Now",
              "kind": "field",
              "doc": "Now returns the current time, used to stamp versions; time.Now when nil."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Service",
          "anchor": "Service",
          "decl": "type Service struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Service is the cloud save service. It is safe for concurrent use.\n",
          "file": "pkg/cloudsave/service.go",
          "line": 26,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(cfg Config, opts Options) (*Service, error)",
              "doc": "New returns a service with the configuration and options.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 36
            }
          ],
          "methods": [
            {
              "name": "Config",
              "anchor": "Service.Config",
              "recv": "*Service",
              "decl": "func (s *Service) Config() Config",
              "doc": "Config returns the service's configuration.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 57
            },
            {
              "name": "Delete",
              "anchor": "Service.Delete",
              "recv": "*Service",
              "decl": "func (s *Service) Delete(ctx context.Context, account, slot string, m Match) error",
              "doc": "Delete deletes the slot when m holds, adding a version that marks it deleted; its earlier versions stay listed and can be restored. Deleting a slot that does not exist succeeds when m allows it (MatchAny or MatchHash(\"\")). It returns ErrChanged when m does not hold.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 90
            },
            {
              "name": "Handler",
              "anchor": "Service.Handler",
              "recv": "*Service",
              "decl": "func (s *Service) Handler() http.Handler",
              "doc": "Handler serves the service over HTTP. Every request needs \"Authorization: Bearer <token>\" with a token from the account service; slots are those of the token's subject. Slot names are path segments, escaped as url.PathEscape does.\n\n\tGET    /v1/saves                       -> {\"slots\": [version]}\n\tGET    /v1/saves/{slot}                -> the payload, with ETag and Save-Version\n\tPUT    /v1/saves/{slot}    payload     -> version; If-Match: \"<hash>\" or If-None-Match: * make it conditional\n\tDELETE /v1/saves/{slot}                -> 204; If-Match: \"<hash>\" or If-None-Match: * make it conditional\n\tGET    /v1/saves/{slot}/versions       -> {\"versions\": [version]}, newest first\n\tGET    /v1/saves/{slot}/versions/{n}   -> the payload of version n, with ETag and Save-Version\n\tDELETE /v1/saves/{slot}/versions       -> 204, the slot and all its versions purged\n\nA version is {\"slot\", \"version\", \"deleted\", \"hash\", \"size\", \"created\"}, created in RFC 3339 with milliseconds; deleted and hash appear only when set. An ETag is the payload's Hash in double quotes. Payloads are application/octet-stream.\n\nErrors are {\"error\": code} with the status the code implies: bad_request 400 (an invalid slot name, version number or precondition header), invalid_token 401, not_found 404, too_many_slots 409, deleted 410 (a version that is a deletion has no payload), changed 412, slot_too_large 413 (with \"limit\", Config.MaxSlotBytes), unavailable 503 when the request was cancelled or timed out, and internal 500. Every response carries Cache-Control: no-store.\n\nBrowsers may call the handler from Config.AllowedOrigins: it answers their CORS preflight requests and exposes ETag and Save-Version to them.\n\nThe handler does not limit request rates; put it behind a rate limiter, and behind TLS.\n",
              "file": "pkg/cloudsave/http.go",
              "line": 36
            },
            {
              "name": "List",
              "anchor": "Service.List",
              "recv": "*Service",
              "decl": "func (s *Service) List(ctx context.Context, account string) ([]Version, error)",
              "doc": "List returns the current version of each of the account's live slots, sorted by name and without data.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 102
            },
            {
              "name": "Load",
              "anchor": "Service.Load",
              "recv": "*Service",
              "decl": "func (s *Service) Load(ctx context.Context, account, slot string) (Version, error)",
              "doc": "Load returns the current version of the account's slot with its data, or ErrNotFound when the slot was never written or is deleted.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 60
            },
            {
              "name": "Purge",
              "anchor": "Service.Purge",
              "recv": "*Service",
              "decl": "func (s *Service) Purge(ctx context.Context, account, slot string) error",
              "doc": "Purge removes the slot and all its versions for good.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 159
            },
            {
              "name": "Restore",
              "anchor": "Service.Restore",
              "recv": "*Service",
              "decl": "func (s *Service) Restore(ctx context.Context, account, slot string, number int64, m Match) (Version, error)",
              "doc": "Restore writes the data of kept version number as the slot's next version when m holds, so the slot holds that payload again, deleted or not. A version that is a deletion deletes the slot. The restored bytes are the old payload unchanged; liveops.CloudClient.Restore re-stamps a CloudSyncer payload instead, so devices see the restore as the newest copy.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 144
            },
            {
              "name": "Save",
              "anchor": "Service.Save",
              "recv": "*Service",
              "decl": "func (s *Service) Save(ctx context.Context, account, slot string, data []byte, m Match) (Version, error)",
              "doc": "Save writes data as the slot's next version when m holds, returning the new version without data. It returns ErrSlotTooLarge for data over Config.MaxSlotBytes, ErrChanged when m does not hold and ErrTooManySlots for a new slot beyond Config.MaxSlots; then nothing is written.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 75
            },
            {
              "name": "Version",
              "anchor": "Service.Version",
              "recv": "*Service",
              "decl": "func (s *Service) Version(ctx context.Context, account, slot string, number int64) (Version, error)",
              "doc": "Version returns one kept version of the slot with its data, or ErrNotFound.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 132
            },
            {
              "name": "Versions",
              "anchor": "Service.Versions",
              "recv": "*Service",
              "decl": "func (s *Service) Versions(ctx context.Context, account, slot string) ([]Version, error)",
              "doc": "Versions lists the kept versions of the slot, deletions included, newest first and without data. It returns ErrNotFound for a slot with none.\n",
              "file": "pkg/cloudsave/service.go",
              "line": 120
            }
          ]
        },
        {
          "name": "Store",
          "anchor": "Store",
          "decl": "type Store interface {\n\t// Head returns the newest version of slot with its data, or ErrNotFound when the slot has none.\n\tHead(ctx context.Context, account, slot string) (Version, error)\n\t// Version returns version number of slot with its data, or ErrNotFound when it is not kept.\n\tVersion(ctx context.Context, account, slot string, number int64) (Version, error)\n\t// Versions lists the kept versions of slot, newest first and without data, or returns ErrNotFound when the slot has none.\n\tVersions(ctx context.Context, account, slot string) ([]Version, error)\n\t// Slots lists the newest version of each of the account's slots, deleted ones included, sorted by slot name and without data.\n\tSlots(ctx context.Context, account string) ([]Version, error)\n\t// Append adds a version to slot when w.Match holds for its newest version, returning the new version without data. It returns ErrChanged when the precondition fails, ErrNotFound for a delete of a slot that does not exist (never written or already deleted), and ErrTooManySlots when the write would exceed w.MaxSlots live slots; in each case nothing is written. It drops all but the w.Keep newest versions of slot.\n\tAppend(ctx context.Context, account, slot string, w Write) (Version, error)\n\t// Purge removes slot and every version of it; a slot with no versions is not an error.\n\tPurge(ctx context.Context, account, slot string) error\n}",
          "doc": "Store keeps slot versions per account. Implementations must be safe for concurrent use, and Append must be atomic: of two concurrent appends whose preconditions name the same newest version, at most one succeeds.\n",
          "file": "pkg/cloudsave/store.go",
          "line": 120,
          "members": [
            {
              "name": "Head",
              "anchor": "Store.Head",
              "kind": "method",
              "doc": "Head returns the newest version of slot with its data, or ErrNotFound when the slot has none."
            },
            {
              "name": "Version",
              "anchor": "Store.Version",
              "kind": "method",
              "doc": "Version returns version number of slot with its data, or ErrNotFound when it is not kept."
            },
            {
              "name": "Versions",
              "anchor": "Store.Versions",
              "kind": "method",
              "doc": "Versions lists the kept versions of slot, newest first and without data, or returns ErrNotFound when the slot has none."
            },
            {
              "name": "Slots",
              "anchor": "Store.Slots",
              "kind": "method",
              "doc": "Slots lists the newest version of each of the account's slots, deleted ones included, sorted by slot name and without data."
            },
            {
              "name": "Append",
              "anchor": "Store.Append",
              "kind": "method",
              "doc": "Append adds a version to slot when w.Match holds for its newest version, returning the new version without data. It returns ErrChanged when the precondition fails, ErrNotFound for a delete of a slot that does not exist (never written or already deleted), and ErrTooManySlots when the write would exceed w.MaxSlots live slots; in each case nothing is written. It drops all but the w.Keep newest versions of slot."
            },
            {
              "name": "Purge",
              "anchor": "Store.Purge",
              "kind": "method",
              "doc": "Purge removes slot and every version of it; a slot with no versions is not an error."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Version",
          "anchor": "Version",
          "decl": "type Version struct {\n\t// Slot is the slot name.\n\tSlot string\n\t// Number counts the slot's versions from 1; each write or delete adds one.\n\tNumber int64\n\t// Deleted marks a version that deleted the slot. It has no data and an empty hash.\n\tDeleted bool\n\t// Hash is Hash(Data).\n\tHash string\n\t// Size is len(Data).\n\tSize int64\n\t// Created is when the version was written, to the millisecond.\n\tCreated time.Time\n\t// Data is the payload. Listings (Store.Versions and Store.Slots) leave it nil.\n\tData []byte\n}",
          "doc": "Version is one version of a slot.\n",
          "file": "pkg/cloudsave/store.go",
          "line": 61,
          "members": [
            {
              "name": "Slot",
              "anchor": "Version.Slot",
              "kind": "field",
              "doc": "Slot is the slot name."
            },
            {
              "name": "Number",
              "anchor": "Version.Number",
              "kind": "field",
              "doc": "Number counts the slot's versions from 1; each write or delete adds one."
            },
            {
              "name": "Deleted",
              "anchor": "Version.Deleted",
              "kind": "field",
              "doc": "Deleted marks a version that deleted the slot. It has no data and an empty hash."
            },
            {
              "name": "Hash",
              "anchor": "Version.Hash",
              "kind": "field",
              "doc": "Hash is Hash(Data)."
            },
            {
              "name": "Size",
              "anchor": "Version.Size",
              "kind": "field",
              "doc": "Size is len(Data)."
            },
            {
              "name": "Created",
              "anchor": "Version.Created",
              "kind": "field",
              "doc": "Created is when the version was written, to the millisecond."
            },
            {
              "name": "Data",
              "anchor": "Version.Data",
              "kind": "field",
              "doc": "Data is the payload. Listings (Store.Versions and Store.Slots) leave it nil."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Write",
          "anchor": "Write",
          "decl": "type Write struct {\n\t// Delete adds a version that deletes the slot; Data is then ignored.\n\tDelete bool\n\t// Data is the new payload.\n\tData []byte\n\t// Match is the precondition on the slot's newest version.\n\tMatch Match\n\t// Created is the version's time.\n\tCreated time.Time\n\t// Keep is how many of the slot's newest versions to keep, at least 1.\n\tKeep int\n\t// MaxSlots is how many live slots the account may have; a write that makes a slot live beyond it fails with ErrTooManySlots. Deleted slots beyond MaxSlots are purged, oldest first, with their history.\n\tMaxSlots int\n}",
          "doc": "Write is a version Store.Append adds.\n",
          "file": "pkg/cloudsave/store.go",
          "line": 104,
          "members": [
            {
              "name": "Delete",
              "anchor": "Write.Delete",
              "kind": "field",
              "doc": "Delete adds a version that deletes the slot; Data is then ignored."
            },
            {
              "name": "Data",
              "anchor": "Write.Data",
              "kind": "field",
              "doc": "Data is the new payload."
            },
            {
              "name": "Match",
              "anchor": "Write.Match",
              "kind": "field",
              "doc": "Match is the precondition on the slot's newest version."
            },
            {
              "name": "Created",
              "anchor": "Write.Created",
              "kind": "field",
              "doc": "Created is the version's time."
            },
            {
              "name": "Keep",
              "anchor": "Write.Keep",
              "kind": "field",
              "doc": "Keep is how many of the slot's newest versions to keep, at least 1."
            },
            {
              "name": "MaxSlots",
              "anchor": "Write.MaxSlots",
              "kind": "field",
              "doc": "MaxSlots is how many live slots the account may have; a write that makes a slot live beyond it fails with ErrTooManySlots. Deleted slots beyond MaxSlots are purged, oldest first, with their history."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/cloudsave/sqlstore",
      "name": "sqlstore",
      "dir": "pkg/cloudsave/sqlstore",
      "page": "pkg/cloudsave/sqlstore",
      "synopsis": "Package sqlstore is a cloudsave.Store over database/sql, for SQLite (OpenSQLite, with the pure-Go modernc.org/sqlite driver) and Postgres (OpenPostgres, with github.com/jackc/pgx/v5).",
      "doc": "Package sqlstore is a cloudsave.Store over database/sql, for SQLite (OpenSQLite, with the pure-Go modernc.org/sqlite driver) and Postgres (OpenPostgres, with github.com/jackc/pgx/v5).\n\nThe schema is two tables, created by New when missing and versioned in cloudsave_schema:\n  - cloudsave_slots: account_id and slot (the key), and the newest version's number, deleted flag, hash, size and created_at\n  - cloudsave_versions: account_id, slot and version (the key), the same metadata and the payload in data\n\nTimes are Unix milliseconds. Each write runs in one transaction that compares and sets the slot's newest version number, so of two concurrent writes based on the same version at most one commits; on Postgres it also takes a transaction-level advisory lock on the account, so the slot count and pruning see every concurrent write of that account.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "SchemaVersion",
              "anchor": "SchemaVersion"
            }
          ],
          "decl": "const SchemaVersion = 1",
          "doc": "SchemaVersion is the schema version New creates and accepts.\n",
          "file": "pkg/cloudsave/sqlstore/sqlstore.go",
          "line": 25
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "Postgres",
              "anchor": "Postgres"
            }
          ],
          "decl": "var Postgres = Dialect{\n\tName:        \"postgres\",\n\tNumbered:    true,\n\tBlob:        \"BYTEA\",\n\tMigrateLock: `SELECT pg_advisory_xact_lock(1668051830)`,\n\tLockAccount: `SELECT pg_advisory_xact_lock(1668051830, hashtext(?))`,\n}",
          "doc": "Postgres is Postgres's dialect. Its locks use the arbitrary class key 1668051830 (\"clsv\" in ASCII).\n",
          "file": "pkg/cloudsave/sqlstore/sqlstore.go",
          "line": 45
        },
        {
          "idents": [
            {
              "name": "SQLite",
              "anchor": "SQLite"
            }
          ],
          "decl": "var SQLite = Dialect{Name: \"sqlite\", Blob: \"BLOB\"}",
          "doc": "SQLite is SQLite's dialect. A SQLite store uses one connection with immediate transactions (OpenSQLite), which serializes writes without an account lock.\n",
          "file": "pkg/cloudsave/sqlstore/sqlstore.go",
          "line": 42
        }
      ],
      "funcs": [],
      "types": [
        {
          "name": "Dialect",
          "anchor": "Dialect",
          "decl": "type Dialect struct {\n\t// Name names the database in errors.\n\tName string\n\t// Numbered is true for \"$1\" placeholders, false for \"?\".\n\tNumbered bool\n\t// Blob is the column type of a byte string, such as BLOB or BYTEA.\n\tBlob string\n\t// MigrateLock, when set, runs first in the migration's transaction to serialize migrations of several processes.\n\tMigrateLock string\n\t// LockAccount, when set, runs first in each write's transaction with the account ID as its one parameter, to serialize the writes of one account across connections and processes.\n\tLockAccount string\n}",
          "doc": "Dialect is what differs between SQL databases.\n",
          "file": "pkg/cloudsave/sqlstore/sqlstore.go",
          "line": 28,
          "members": [
            {
              "name": "Name",
              "anchor": "Dialect.Name",
              "kind": "field",
              "doc": "Name names the database in errors."
            },
            {
              "name": "Numbered",
              "anchor": "Dialect.Numbered",
              "kind": "field",
              "doc": "Numbered is true for \"$1\" placeholders, false for \"?\"."
            },
            {
              "name": "Blob",
              "anchor": "Dialect.Blob",
              "kind": "field",
              "doc": "Blob is the column type of a byte string, such as BLOB or BYTEA."
            },
            {
              "name": "MigrateLock",
              "anchor": "Dialect.MigrateLock",
              "kind": "field",
              "doc": "MigrateLock, when set, runs first in the migration's transaction to serialize migrations of several processes."
            },
            {
              "name": "LockAccount",
              "anchor": "Dialect.LockAccount",
              "kind": "field",
              "doc": "LockAccount, when set, runs first in each write's transaction with the account ID as its one parameter, to serialize the writes of one account across connections and processes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Store",
          "anchor": "Store",
          "decl": "type Store struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Store is a cloudsave.Store in a SQL database.\n",
          "file": "pkg/cloudsave/sqlstore/sqlstore.go",
          "line": 54,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(ctx context.Context, db *sql.DB, d Dialect) (*Store, error)",
              "doc": "New returns a store on db, creating the schema when it is missing. It refuses a database whose schema is newer than SchemaVersion.\n",
              "file": "pkg/cloudsave/sqlstore/sqlstore.go",
              "line": 89
            },
            {
              "name": "OpenPostgres",
              "anchor": "OpenPostgres",
              "decl": "func OpenPostgres(ctx context.Context, dsn string) (*Store, error)",
              "doc": "OpenPostgres connects to the Postgres database dsn names (a URL or a key=value string, as pgx parses it) and returns a store on it with the schema created. Several service processes may share the database. Keep the DSN, which may hold a password, out of logs and command lines: read it from the environment or a file. Close the store to close the connections.\n",
              "file": "pkg/cloudsave/sqlstore/postgres.go",
              "line": 13
            },
            {
              "name": "OpenSQLite",
              "anchor": "OpenSQLite",
              "decl": "func OpenSQLite(ctx context.Context, path string) (*Store, error)",
              "doc": "OpenSQLite opens (creating when missing) the SQLite database at path, or a private in-memory database for \":memory:\", and returns a store on it with the schema created. The database uses write-ahead logging and waits up to five seconds for a lock another process holds.\n\nThe store uses one connection with immediate transactions, so its writes run one at a time. It suits a single service process; several processes sharing one database should use Postgres. OpenSQLite is not available on the web, which has no file system to keep the database in.\n",
              "file": "pkg/cloudsave/sqlstore/sqlite.go",
              "line": 18,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ],
          "methods": [
            {
              "name": "Append",
              "anchor": "Store.Append",
              "recv": "*Store",
              "decl": "func (s *Store) Append(ctx context.Context, account, slot string, w cloudsave.Write) (cloudsave.Version, error)",
              "doc": "Append implements cloudsave.Store.\n",
              "file": "pkg/cloudsave/sqlstore/sqlstore.go",
              "line": 200
            },
            {
              "name": "Close",
              "anchor": "Store.Close",
              "recv": "*Store",
              "decl": "func (s *Store) Close() error",
              "doc": "Close closes the store's database.\n",
              "file": "pkg/cloudsave/sqlstore/sqlstore.go",
              "line": 135
            },
            {
              "name": "DB",
              "anchor": "Store.DB",
              "recv": "*Store",
              "decl": "func (s *Store) DB() *sql.DB",
              "doc": "DB returns the store's database.\n",
              "file": "pkg/cloudsave/sqlstore/sqlstore.go",
              "line": 132
            },
            {
              "name": "Head",
              "anchor": "Store.Head",
              "recv": "*Store",
              "decl": "func (s *Store) Head(ctx context.Context, account, slot string) (cloudsave.Version, error)",
              "doc": "Head implements cloudsave.Store. It reads the slot's head and its data in one statement, so an Append that commits in between and prunes that version cannot make a live slot look missing.\n",
              "file": "pkg/cloudsave/sqlstore/sqlstore.go",
              "line": 138
            },
            {
              "name": "Purge",
              "anchor": "Store.Purge",
              "recv": "*Store",
              "decl": "func (s *Store) Purge(ctx context.Context, account, slot string) error",
              "doc": "Purge implements cloudsave.Store.\n",
              "file": "pkg/cloudsave/sqlstore/sqlstore.go",
              "line": 311
            },
            {
              "name": "Slots",
              "anchor": "Store.Slots",
              "recv": "*Store",
              "decl": "func (s *Store) Slots(ctx context.Context, account string) ([]cloudsave.Version, error)",
              "doc": "Slots implements cloudsave.Store.\n",
              "file": "pkg/cloudsave/sqlstore/sqlstore.go",
              "line": 185
            },
            {
              "name": "Version",
              "anchor": "Store.Version",
              "recv": "*Store",
              "decl": "func (s *Store) Version(ctx context.Context, account, slot string, number int64) (cloudsave.Version, error)",
              "doc": "Version implements cloudsave.Store.\n",
              "file": "pkg/cloudsave/sqlstore/sqlstore.go",
              "line": 144
            },
            {
              "name": "Versions",
              "anchor": "Store.Versions",
              "recv": "*Store",
              "decl": "func (s *Store) Versions(ctx context.Context, account, slot string) ([]cloudsave.Version, error)",
              "doc": "Versions implements cloudsave.Store.\n",
              "file": "pkg/cloudsave/sqlstore/sqlstore.go",
              "line": 169
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/cloudsave/storetest",
      "name": "storetest",
      "dir": "pkg/cloudsave/storetest",
      "page": "pkg/cloudsave/storetest",
      "synopsis": "Package storetest checks a cloudsave.Store against the contract the service relies on.",
      "doc": "Package storetest checks a cloudsave.Store against the contract the service relies on. A store's tests call Run with a function that opens an empty store.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "Run",
          "anchor": "Run",
          "decl": "func Run(t *testing.T, open func(t *testing.T) cloudsave.Store)",
          "doc": "Run runs the contract tests as subtests of t, each on a fresh store from open.\n",
          "file": "pkg/cloudsave/storetest/storetest.go",
          "line": 19
        }
      ],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/cutscene",
      "name": "cutscene",
      "dir": "pkg/cutscene",
      "page": "pkg/cutscene",
      "synopsis": "Package cutscene plays video and in-engine timeline cutscenes in a game: in a scene or between scenes, skippable by a press, a key or back, and calling the game back when one ends or is skipped.",
      "doc": "Package cutscene plays video and in-engine timeline cutscenes in a game: in a scene or between scenes, skippable by a press, a key or back, and calling the game back when one ends or is skipped.\n\nA cutscene is a Cutscene, written in YAML (Parse, Encode) in either version 1 (video only) or version 2 (video or timeline).\n\nA video cutscene names a video source, mixer group, skip rules, picture fit and transparency; Player plays it in NSGo's own video view (core.Video) over the game's view while pausing the game's loop and suspending its mixer.\n\nA timeline cutscene names a length and ordered camera, actor, dialogue (localization line IDs only), sound and music tracks, with clips carrying start, duration and easing. TimelinePlayer runs one deterministically on game.Loop's fixed steps against a sceneformat.BuiltScene or sceneformat.SceneDoc (with Seek for scrubbing), and Player.PlayTimeline wires the same skip input, lifecycle and between-scene transitions as video cutscenes.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MinVersion",
              "anchor": "MinVersion"
            },
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            },
            {
              "name": "SchemaURL",
              "anchor": "SchemaURL"
            },
            {
              "name": "SchemaComment",
              "anchor": "SchemaComment"
            },
            {
              "name": "SchemaURLV2",
              "anchor": "SchemaURLV2"
            },
            {
              "name": "SchemaCommentV2",
              "anchor": "SchemaCommentV2"
            }
          ],
          "decl": "const (\n\t// MinVersion is the oldest cutscene file format version this package reads and writes (video cutscenes only).\n\tMinVersion = 1\n\t// CurrentVersion is the newest cutscene file format version this package reads and writes. Version 2 adds timeline cutscenes alongside video cutscenes.\n\tCurrentVersion = 2\n\n\t// SchemaURL is where the JSON Schema of version 1 cutscene files is published.\n\tSchemaURL = \"https://game.nsgo.dev/schemas/cutscene.v1.json\"\n\t// SchemaComment is a YAML language server comment pointing at SchemaURL.\n\tSchemaComment = \"# yaml-language-server: $schema=\" + SchemaURL\n\t// SchemaURLV2 is where the JSON Schema of version 2 cutscene files is published.\n\tSchemaURLV2 = \"https://game.nsgo.dev/schemas/cutscene.v2.json\"\n\t// SchemaCommentV2 is the first line Encode writes for a version 2 cutscene file, pointing a YAML language server at SchemaURLV2.\n\tSchemaCommentV2 = \"# yaml-language-server: $schema=\" + SchemaURLV2\n)",
          "doc": "",
          "file": "pkg/cutscene/format.go",
          "line": 16
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrReplaced",
              "anchor": "ErrReplaced"
            }
          ],
          "decl": "var ErrReplaced = errors.New(\"cutscene: the stopped cutscene's done callback played another\")",
          "doc": "ErrReplaced is what Player.Play and Player.PlayTimeline return, playing nothing, when the done callback of the cutscene they stop plays another cutscene: that one plays instead.\n",
          "file": "pkg/cutscene/player.go",
          "line": 102
        }
      ],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(c Cutscene) ([]byte, error)",
          "doc": "Encode checks c as Validate does and writes it as a cutscene file, with 2-space indents and its keys in a fixed order. Version 2 files begin with SchemaCommentV2; version 1 files are written unchanged without a header comment.\n",
          "file": "pkg/cutscene/format.go",
          "line": 346
        },
        {
          "name": "SchemaCommentFor",
          "anchor": "SchemaCommentFor",
          "decl": "func SchemaCommentFor(version int) string",
          "doc": "SchemaCommentFor returns the YAML language server schema comment for version: SchemaComment for version 1 and SchemaCommentV2 for version 2.\n",
          "file": "pkg/cutscene/format.go",
          "line": 33
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(c Cutscene) error",
          "doc": "Validate checks c as a cutscene file: its version is in [MinVersion, CurrentVersion], version 1 uses only video fields, and the cutscene is valid for playback.\n",
          "file": "pkg/cutscene/format.go",
          "line": 366
        }
      ],
      "types": [
        {
          "name": "Action",
          "anchor": "Action",
          "decl": "type Action string",
          "doc": "Action selects what a camera or actor clip does.\n",
          "file": "pkg/cutscene/format.go",
          "line": 91,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ActionHold",
                  "anchor": "ActionHold"
                },
                {
                  "name": "ActionPan",
                  "anchor": "ActionPan"
                },
                {
                  "name": "ActionFollow",
                  "anchor": "ActionFollow"
                },
                {
                  "name": "ActionWalk",
                  "anchor": "ActionWalk"
                },
                {
                  "name": "ActionState",
                  "anchor": "ActionState"
                },
                {
                  "name": "ActionDrop",
                  "anchor": "ActionDrop"
                },
                {
                  "name": "ActionPatrol",
                  "anchor": "ActionPatrol"
                }
              ],
              "decl": "const (\n\t// ActionHold holds the camera on a target object or fixed coordinates.\n\tActionHold Action = \"hold\"\n\t// ActionPan pans the camera smoothly to a target object or fixed coordinates.\n\tActionPan Action = \"pan\"\n\t// ActionFollow continuously tracks a target object with the camera.\n\tActionFollow Action = \"follow\"\n\t// ActionWalk moves an actor between coordinates over the clip's duration.\n\tActionWalk Action = \"walk\"\n\t// ActionState plays a named animation state on an actor while holding its position.\n\tActionState Action = \"state\"\n\t// ActionDrop drops an actor vertically from one coordinate to another.\n\tActionDrop Action = \"drop\"\n\t// ActionPatrol moves an actor back and forth between two coordinates.\n\tActionPatrol Action = \"patrol\"\n)",
              "doc": "",
              "file": "pkg/cutscene/format.go",
              "line": 93
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Clip",
          "anchor": "Clip",
          "decl": "type Clip struct {\n\t// ID optionally identifies the clip for tools and editors; non-empty clip IDs must be unique within the cutscene.\n\tID string `yaml:\"id,omitempty\"`\n\t// Label is an optional human-readable label for the clip.\n\tLabel string `yaml:\"label,omitempty\"`\n\t// Start is when the clip begins on the timeline, as a Go duration string such as \"1.6s\".\n\tStart Duration `yaml:\"start\" schema:\"required\"`\n\t// Duration is how long the clip lasts, as a Go duration string such as \"2.4s\".\n\tDuration Duration `yaml:\"duration\" schema:\"required\"`\n\t// Easing is the interpolation curve for motion and camera pans: \"linear\" (default), \"easeIn\", \"easeOut\", \"easeInOut\" or \"hold\".\n\tEasing Easing `yaml:\"easing,omitempty\" schema:\"enum=linear|easeIn|easeOut|easeInOut|hold\"`\n\t// Action selects the operation on a camera track (\"hold\", \"pan\", \"follow\") or actor track (\"walk\", \"state\", \"drop\", \"patrol\").\n\tAction Action `yaml:\"action,omitempty\" schema:\"enum=hold|pan|follow|walk|state|drop|patrol\"`\n\t// Target is the scene object ID a camera clip holds on, pans to or follows.\n\tTarget string `yaml:\"target,omitempty\"`\n\t// FromX is the optional starting X coordinate for a camera pan or an actor walk, drop or patrol clip.\n\tFromX *float32 `yaml:\"fromX,omitempty\"`\n\t// FromY is the optional starting Y coordinate for a camera pan or an actor walk, drop or patrol clip.\n\tFromY *float32 `yaml:\"fromY,omitempty\"`\n\t// ToX is the destination X coordinate for a camera hold/pan or an actor walk, drop or patrol clip.\n\tToX *float32 `yaml:\"toX,omitempty\"`\n\t// ToY is the destination Y coordinate for a camera hold/pan or an actor walk, drop or patrol clip.\n\tToY *float32 `yaml:\"toY,omitempty\"`\n\t// OffsetX is an optional horizontal camera offset applied when holding on, panning to or following a target object.\n\tOffsetX float32 `yaml:\"offsetX,omitempty\"`\n\t// OffsetY is an optional vertical camera offset applied when holding on, panning to or following a target object.\n\tOffsetY float32 `yaml:\"offsetY,omitempty\"`\n\t// Zoom is the optional target camera zoom factor (positive) on a camera clip.\n\tZoom *float32 `yaml:\"zoom,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// State is the animation state name played by an actor clip (required for \"state\" clips, optional for \"walk\", \"drop\" and \"patrol\").\n\tState string `yaml:\"state,omitempty\"`\n\t// Speed is the optional travel speed in world units per second for an actor \"patrol\" clip; when omitted, patrol completes one full round-trip over Duration.\n\tSpeed *float32 `yaml:\"speed,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// Line is the localization key (for example \"intro.knight.01\") shown by a dialogue clip; text lives in the l10n tables, not in the cutscene file.\n\tLine string `yaml:\"line,omitempty\"`\n\t// Speaker optionally names who speaks a dialogue clip.\n\tSpeaker string `yaml:\"speaker,omitempty\"`\n\t// Source is the audio path or URI for a sound or music clip (for example \"audio/door_slam.wav\").\n\tSource string `yaml:\"source,omitempty\"`\n\t// Group overrides the track's mixer group for a sound or music clip.\n\tGroup string `yaml:\"group,omitempty\"`\n\t// Volume is the optional volume multiplier in [0, 1] for a sound or music clip; defaults to 1 when omitted.\n\tVolume *float32 `yaml:\"volume,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// FadeIn is the fade-in duration for a music clip, as a Go duration string such as \"2s\".\n\tFadeIn Duration `yaml:\"fadeIn,omitempty\"`\n\t// FadeOut is the fade-out duration for a music clip, as a Go duration string such as \"1s\".\n\tFadeOut Duration `yaml:\"fadeOut,omitempty\"`\n\t// Loop repeats a music clip until its duration ends.\n\tLoop bool `yaml:\"loop,omitempty\"`\n}",
          "doc": "Clip is one timed action or cue on a cutscene timeline track.\n",
          "file": "pkg/cutscene/format.go",
          "line": 165,
          "members": [
            {
              "name": "ID",
              "anchor": "Clip.ID",
              "kind": "field",
              "doc": "ID optionally identifies the clip for tools and editors; non-empty clip IDs must be unique within the cutscene."
            },
            {
              "name": "Label",
              "anchor": "Clip.Label",
              "kind": "field",
              "doc": "Label is an optional human-readable label for the clip."
            },
            {
              "name": "Start",
              "anchor": "Clip.Start",
              "kind": "field",
              "doc": "Start is when the clip begins on the timeline, as a Go duration string such as \"1.6s\"."
            },
            {
              "name": "Duration",
              "anchor": "Clip.Duration",
              "kind": "field",
              "doc": "Duration is how long the clip lasts, as a Go duration string such as \"2.4s\"."
            },
            {
              "name": "Easing",
              "anchor": "Clip.Easing",
              "kind": "field",
              "doc": "Easing is the interpolation curve for motion and camera pans: \"linear\" (default), \"easeIn\", \"easeOut\", \"easeInOut\" or \"hold\"."
            },
            {
              "name": "Action",
              "anchor": "Clip.Action",
              "kind": "field",
              "doc": "Action selects the operation on a camera track (\"hold\", \"pan\", \"follow\") or actor track (\"walk\", \"state\", \"drop\", \"patrol\")."
            },
            {
              "name": "Target",
              "anchor": "Clip.Target",
              "kind": "field",
              "doc": "Target is the scene object ID a camera clip holds on, pans to or follows."
            },
            {
              "name": "FromX",
              "anchor": "Clip.FromX",
              "kind": "field",
              "doc": "FromX is the optional starting X coordinate for a camera pan or an actor walk, drop or patrol clip."
            },
            {
              "name": "FromY",
              "anchor": "Clip.FromY",
              "kind": "field",
              "doc": "FromY is the optional starting Y coordinate for a camera pan or an actor walk, drop or patrol clip."
            },
            {
              "name": "ToX",
              "anchor": "Clip.ToX",
              "kind": "field",
              "doc": "ToX is the destination X coordinate for a camera hold/pan or an actor walk, drop or patrol clip."
            },
            {
              "name": "ToY",
              "anchor": "Clip.ToY",
              "kind": "field",
              "doc": "ToY is the destination Y coordinate for a camera hold/pan or an actor walk, drop or patrol clip."
            },
            {
              "name": "OffsetX",
              "anchor": "Clip.OffsetX",
              "kind": "field",
              "doc": "OffsetX is an optional horizontal camera offset applied when holding on, panning to or following a target object."
            },
            {
              "name": "OffsetY",
              "anchor": "Clip.OffsetY",
              "kind": "field",
              "doc": "OffsetY is an optional vertical camera offset applied when holding on, panning to or following a target object."
            },
            {
              "name": "Zoom",
              "anchor": "Clip.Zoom",
              "kind": "field",
              "doc": "Zoom is the optional target camera zoom factor (positive) on a camera clip."
            },
            {
              "name": "State",
              "anchor": "Clip.State",
              "kind": "field",
              "doc": "State is the animation state name played by an actor clip (required for \"state\" clips, optional for \"walk\", \"drop\" and \"patrol\")."
            },
            {
              "name": "Speed",
              "anchor": "Clip.Speed",
              "kind": "field",
              "doc": "Speed is the optional travel speed in world units per second for an actor \"patrol\" clip; when omitted, patrol completes one full round-trip over Duration."
            },
            {
              "name": "Line",
              "anchor": "Clip.Line",
              "kind": "field",
              "doc": "Line is the localization key (for example \"intro.knight.01\") shown by a dialogue clip; text lives in the l10n tables, not in the cutscene file."
            },
            {
              "name": "Speaker",
              "anchor": "Clip.Speaker",
              "kind": "field",
              "doc": "Speaker optionally names who speaks a dialogue clip."
            },
            {
              "name": "Source",
              "anchor": "Clip.Source",
              "kind": "field",
              "doc": "Source is the audio path or URI for a sound or music clip (for example \"audio/door_slam.wav\")."
            },
            {
              "name": "Group",
              "anchor": "Clip.Group",
              "kind": "field",
              "doc": "Group overrides the track's mixer group for a sound or music clip."
            },
            {
              "name": "Volume",
              "anchor": "Clip.Volume",
              "kind": "field",
              "doc": "Volume is the optional volume multiplier in [0, 1] for a sound or music clip; defaults to 1 when omitted."
            },
            {
              "name": "FadeIn",
              "anchor": "Clip.FadeIn",
              "kind": "field",
              "doc": "FadeIn is the fade-in duration for a music clip, as a Go duration string such as \"2s\"."
            },
            {
              "name": "FadeOut",
              "anchor": "Clip.FadeOut",
              "kind": "field",
              "doc": "FadeOut is the fade-out duration for a music clip, as a Go duration string such as \"1s\"."
            },
            {
              "name": "Loop",
              "anchor": "Clip.Loop",
              "kind": "field",
              "doc": "Loop repeats a music clip until its duration ends."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Cutscene",
          "anchor": "Cutscene",
          "decl": "type Cutscene struct {\n\t// Version is the file format's version, from MinVersion (1) to CurrentVersion (2), which Parse and Encode check. Player.Play and NewTimelinePlayer ignore it, so a cutscene made in code may leave it 0.\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Kind selects whether a version 2 cutscene plays a video (\"video\") or an in-engine timeline (\"timeline\"). Version 1 files leave it empty.\n\tKind Kind `yaml:\"kind,omitempty\" schema:\"enum=video|timeline\"`\n\t// Source is the video for a video cutscene: an \"asset:\" path in the app's resources, a file path or a URL, as core.Video takes. Omitted on timeline cutscenes.\n\tSource string `yaml:\"source,omitempty\"`\n\t// Scene optionally names the scene file a timeline cutscene plays against, as a slash-separated path from the project root (for example \"scenes/level_01.scene.yaml\"). Used by game check and refs to validate object IDs. Version 2 timeline cutscenes only.\n\tScene string `yaml:\"scene,omitempty\"`\n\t// Length is the total duration of a timeline cutscene, written as a Go duration string such as \"12s\". Version 2 timeline cutscenes only.\n\tLength Duration `yaml:\"length,omitempty\"`\n\t// Group is the mixer group whose volume, times the master volume, the cutscene's audio plays at; empty for the master volume alone (video) or per-track defaults (timeline).\n\tGroup string `yaml:\"group,omitempty\"`\n\t// Skippable lets the player skip the cutscene by a press, a skip key or back.\n\tSkippable bool `yaml:\"skippable,omitempty\"`\n\t// SkipAfter is how far into the cutscene a skippable cutscene must play before it can be skipped, so a press meant for the game before it does not skip it at once; 0 for from the start.\n\tSkipAfter Duration `yaml:\"skipAfter,omitempty\"`\n\t// Fit is how a video cutscene's picture fits the screen, FitContain when empty. Video cutscenes only.\n\tFit Fit `yaml:\"fit,omitempty\" schema:\"enum=contain|cover|stretch\"`\n\t// Transparent leaves the screen behind a video cutscene clear rather than black, so the game shows in the bars and through a video with an alpha channel, where the platform keeps it (core.Video). Video cutscenes only.\n\tTransparent bool `yaml:\"transparent,omitempty\"`\n\t// Tracks are the ordered timeline tracks (camera, actor, dialogue, sound and music) of a timeline cutscene. Version 2 timeline cutscenes only.\n\tTracks []Track `yaml:\"tracks,omitempty\"`\n}",
          "doc": "Cutscene is one video or timeline cutscene, and the document a cutscene file holds.\n\nVersion 1 holds a video cutscene:\n\n\tversion: 1\n\tsource: asset:cutscenes/intro.mp4\n\tgroup: cutscenes\n\tskippable: true\n\tskipAfter: 1.5s\n\tfit: cover\n\nVersion 2 holds either a video cutscene or an in-engine timeline cutscene with camera, actor, dialogue, sound and music tracks:\n\n\t# yaml-language-server: $schema=https://game.nsgo.dev/schemas/cutscene.v2.json\n\tversion: 2\n\tkind: timeline\n\tscene: scenes/level_01.scene.yaml\n\tlength: 12s\n\tskippable: true\n\ttracks:\n\t  - kind: camera\n\t    clips:\n\t      - start: 0s\n\t        duration: 1.6s\n\t        easing: hold\n\t        action: hold\n\t        target: door\n\nParse reads such a file and Encode writes one, keys in the order of the fields below and zero values left out, so a file Encode wrote reads back and writes again unchanged.\n",
          "file": "pkg/cutscene/format.go",
          "line": 245,
          "members": [
            {
              "name": "Version",
              "anchor": "Cutscene.Version",
              "kind": "field",
              "doc": "Version is the file format's version, from MinVersion (1) to CurrentVersion (2), which Parse and Encode check. Player.Play and NewTimelinePlayer ignore it, so a cutscene made in code may leave it 0."
            },
            {
              "name": "Kind",
              "anchor": "Cutscene.Kind",
              "kind": "field",
              "doc": "Kind selects whether a version 2 cutscene plays a video (\"video\") or an in-engine timeline (\"timeline\"). Version 1 files leave it empty."
            },
            {
              "name": "Source",
              "anchor": "Cutscene.Source",
              "kind": "field",
              "doc": "Source is the video for a video cutscene: an \"asset:\" path in the app's resources, a file path or a URL, as core.Video takes. Omitted on timeline cutscenes."
            },
            {
              "name": "Scene",
              "anchor": "Cutscene.Scene",
              "kind": "field",
              "doc": "Scene optionally names the scene file a timeline cutscene plays against, as a slash-separated path from the project root (for example \"scenes/level_01.scene.yaml\"). Used by game check and refs to validate object IDs. Version 2 timeline cutscenes only."
            },
            {
              "name": "Length",
              "anchor": "Cutscene.Length",
              "kind": "field",
              "doc": "Length is the total duration of a timeline cutscene, written as a Go duration string such as \"12s\". Version 2 timeline cutscenes only."
            },
            {
              "name": "Group",
              "anchor": "Cutscene.Group",
              "kind": "field",
              "doc": "Group is the mixer group whose volume, times the master volume, the cutscene's audio plays at; empty for the master volume alone (video) or per-track defaults (timeline)."
            },
            {
              "name": "Skippable",
              "anchor": "Cutscene.Skippable",
              "kind": "field",
              "doc": "Skippable lets the player skip the cutscene by a press, a skip key or back."
            },
            {
              "name": "SkipAfter",
              "anchor": "Cutscene.SkipAfter",
              "kind": "field",
              "doc": "SkipAfter is how far into the cutscene a skippable cutscene must play before it can be skipped, so a press meant for the game before it does not skip it at once; 0 for from the start."
            },
            {
              "name": "Fit",
              "anchor": "Cutscene.Fit",
              "kind": "field",
              "doc": "Fit is how a video cutscene's picture fits the screen, FitContain when empty. Video cutscenes only."
            },
            {
              "name": "Transparent",
              "anchor": "Cutscene.Transparent",
              "kind": "field",
              "doc": "Transparent leaves the screen behind a video cutscene clear rather than black, so the game shows in the bars and through a video with an alpha channel, where the platform keeps it (core.Video). Video cutscenes only."
            },
            {
              "name": "Tracks",
              "anchor": "Cutscene.Tracks",
              "kind": "field",
              "doc": "Tracks are the ordered timeline tracks (camera, actor, dialogue, sound and music) of a timeline cutscene. Version 2 timeline cutscenes only."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (Cutscene, error)",
              "doc": "Parse reads a cutscene file and checks it as Validate does. It refuses unknown keys, more than one document and a version outside [MinVersion, CurrentVersion].\n",
              "file": "pkg/cutscene/format.go",
              "line": 301
            }
          ],
          "methods": [
            {
              "name": "EffectiveKind",
              "anchor": "Cutscene.EffectiveKind",
              "recv": "Cutscene",
              "decl": "func (c Cutscene) EffectiveKind() Kind",
              "doc": "EffectiveKind reports whether c is a video cutscene or a timeline cutscene.\n",
              "file": "pkg/cutscene/format.go",
              "line": 271
            }
          ]
        },
        {
          "name": "DialogueLine",
          "anchor": "DialogueLine",
          "decl": "type DialogueLine struct {\n\t// ID is the localization line ID (for example \"intro.knight.01\"), empty when no dialogue clip is active.\n\tID string\n\t// Speaker is the clip's optional speaker name.\n\tSpeaker string\n\t// Text is the localized text resolved from the l10n catalog, or ID when no catalog is configured.\n\tText string\n\t// Active reports whether a dialogue clip is active.\n\tActive bool\n}",
          "doc": "DialogueLine is the dialogue cue active at the current timeline position.\n",
          "file": "pkg/cutscene/timeline.go",
          "line": 16,
          "members": [
            {
              "name": "ID",
              "anchor": "DialogueLine.ID",
              "kind": "field",
              "doc": "ID is the localization line ID (for example \"intro.knight.01\"), empty when no dialogue clip is active."
            },
            {
              "name": "Speaker",
              "anchor": "DialogueLine.Speaker",
              "kind": "field",
              "doc": "Speaker is the clip's optional speaker name."
            },
            {
              "name": "Text",
              "anchor": "DialogueLine.Text",
              "kind": "field",
              "doc": "Text is the localized text resolved from the l10n catalog, or ID when no catalog is configured."
            },
            {
              "name": "Active",
              "anchor": "DialogueLine.Active",
              "kind": "field",
              "doc": "Active reports whether a dialogue clip is active."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Duration",
          "anchor": "Duration",
          "decl": "type Duration time.Duration",
          "doc": "Duration is a time.Duration written in a cutscene file as Go writes durations, such as \"1.5s\" or \"250ms\".\n",
          "file": "pkg/cutscene/format.go",
          "line": 282,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Duration.MarshalYAML",
              "recv": "Duration",
              "decl": "func (d Duration) MarshalYAML() (any, error)",
              "doc": "MarshalYAML writes d as time.Duration.String does.\n",
              "file": "pkg/cutscene/format.go",
              "line": 285
            },
            {
              "name": "UnmarshalYAML",
              "anchor": "Duration.UnmarshalYAML",
              "recv": "*Duration",
              "decl": "func (d *Duration) UnmarshalYAML(n *yaml.Node) error",
              "doc": "UnmarshalYAML reads a duration time.ParseDuration takes, refusing any other value.\n",
              "file": "pkg/cutscene/format.go",
              "line": 288
            }
          ]
        },
        {
          "name": "Easing",
          "anchor": "Easing",
          "decl": "type Easing string",
          "doc": "Easing selects the interpolation curve of a timeline clip.\n",
          "file": "pkg/cutscene/format.go",
          "line": 111,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "EaseLinear",
                  "anchor": "EaseLinear"
                },
                {
                  "name": "EaseIn",
                  "anchor": "EaseIn"
                },
                {
                  "name": "EaseOut",
                  "anchor": "EaseOut"
                },
                {
                  "name": "EaseInOut",
                  "anchor": "EaseInOut"
                },
                {
                  "name": "EaseHold",
                  "anchor": "EaseHold"
                }
              ],
              "decl": "const (\n\t// EaseLinear interpolates at a constant rate. It is the default when omitted.\n\tEaseLinear Easing = \"linear\"\n\t// EaseIn starts slowly and accelerates using core.EaseIn.\n\tEaseIn Easing = \"easeIn\"\n\t// EaseOut starts quickly and decelerates using core.EaseOut.\n\tEaseOut Easing = \"easeOut\"\n\t// EaseInOut eases smoothly at both ends using core.EaseInOut.\n\tEaseInOut Easing = \"easeInOut\"\n\t// EaseHold holds the starting value until the end of the clip, then steps to the target value.\n\tEaseHold Easing = \"hold\"\n)",
              "doc": "",
              "file": "pkg/cutscene/format.go",
              "line": 113
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "At",
              "anchor": "Easing.At",
              "recv": "Easing",
              "decl": "func (e Easing) At(u float64) float64",
              "doc": "At evaluates e at normalized progress u in [0, 1].\n",
              "file": "pkg/cutscene/format.go",
              "line": 127
            }
          ]
        },
        {
          "name": "Fit",
          "anchor": "Fit",
          "decl": "type Fit string",
          "doc": "Fit says how a video cutscene's picture fits the screen.\n",
          "file": "pkg/cutscene/format.go",
          "line": 51,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FitContain",
                  "anchor": "FitContain"
                },
                {
                  "name": "FitCover",
                  "anchor": "FitCover"
                },
                {
                  "name": "FitStretch",
                  "anchor": "FitStretch"
                }
              ],
              "decl": "const (\n\t// FitContain shows the whole picture, with bars where its shape differs from the screen's. It is the default.\n\tFitContain Fit = \"contain\"\n\t// FitCover fills the screen, cropping what overflows.\n\tFitCover Fit = \"cover\"\n\t// FitStretch fills the screen, distorting the picture.\n\tFitStretch Fit = \"stretch\"\n)",
              "doc": "",
              "file": "pkg/cutscene/format.go",
              "line": 53
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind string",
          "doc": "Kind selects whether a cutscene plays a video or an in-engine timeline.\n",
          "file": "pkg/cutscene/format.go",
          "line": 41,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindVideo",
                  "anchor": "KindVideo"
                },
                {
                  "name": "KindTimeline",
                  "anchor": "KindTimeline"
                }
              ],
              "decl": "const (\n\t// KindVideo plays a pre-rendered video over the game view through core.Video.\n\tKindVideo Kind = \"video\"\n\t// KindTimeline runs camera, actor, dialogue, sound and music tracks against a scene on game.Loop's fixed steps.\n\tKindTimeline Kind = \"timeline\"\n)",
              "doc": "",
              "file": "pkg/cutscene/format.go",
              "line": 43
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Loop is the game's loop, paused while a video cutscene plays (game.Loop.SetPaused) and set back as it was when it ends; nil for none. Draw goes on running under the video, as for any paused loop. Timeline cutscenes leave the loop running so the game steps them with Player.Step on fixed updates.\n\tLoop *game.Loop\n\t// Mixer is the game's mixer, suspended while a video cutscene plays (sound.Mixer.Suspend) and resumed when it ends. Its master volume, times the cutscene's group's, sets how loud the video plays. For timeline cutscenes, Mixer is used as the default TimelineTarget.Mixer when the target leaves it nil. Nil leaves the game's sound alone and plays video at full volume.\n\tMixer *sound.Mixer\n\t// SkipKeys are the keys that skip a skippable cutscene, as core.Scope.OnKey names them; nil for \"enter\" and \"space\", and an empty slice for none. A press on the cutscene view and back (Escape, the back button or gesture, the browser's back) skip it too.\n\tSkipKeys []string\n\t// TestID is the cutscene view's test ID, \"cutscene\" when empty.\n\tTestID string\n}",
          "doc": "Options are what a Player pauses while a video cutscene plays and how cutscenes are skipped.\n",
          "file": "pkg/cutscene/player.go",
          "line": 54,
          "members": [
            {
              "name": "Loop",
              "anchor": "Options.Loop",
              "kind": "field",
              "doc": "Loop is the game's loop, paused while a video cutscene plays (game.Loop.SetPaused) and set back as it was when it ends; nil for none. Draw goes on running under the video, as for any paused loop. Timeline cutscenes leave the loop running so the game steps them with Player.Step on fixed updates."
            },
            {
              "name": "Mixer",
              "anchor": "Options.Mixer",
              "kind": "field",
              "doc": "Mixer is the game's mixer, suspended while a video cutscene plays (sound.Mixer.Suspend) and resumed when it ends. Its master volume, times the cutscene's group's, sets how loud the video plays. For timeline cutscenes, Mixer is used as the default TimelineTarget.Mixer when the target leaves it nil. Nil leaves the game's sound alone and plays video at full volume."
            },
            {
              "name": "SkipKeys",
              "anchor": "Options.SkipKeys",
              "kind": "field",
              "doc": "SkipKeys are the keys that skip a skippable cutscene, as core.Scope.OnKey names them; nil for \"enter\" and \"space\", and an empty slice for none. A press on the cutscene view and back (Escape, the back button or gesture, the browser's back) skip it too."
            },
            {
              "name": "TestID",
              "anchor": "Options.TestID",
              "kind": "field",
              "doc": "TestID is the cutscene view's test ID, \"cutscene\" when empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Player",
          "anchor": "Player",
          "decl": "type Player struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Player plays one cutscene at a time over a game's view: either a video cutscene (Play, pausing the game's loop and mixer) or an in-engine timeline cutscene (PlayTimeline, stepped on the game's fixed loop via Step).\n\nMount View over the game's view, as the last child of the view that holds the game's canvas, so a video covers it and a timeline cutscene receives skip input. Play and PlayTimeline start a cutscene from a game's Update or anywhere else on the engine's goroutine, and Scene / TimelineScene make one a scene of its own to play between scenes.\n\nVideo cutscenes play in the platform's player (core.Video). It pauses while the app is in the background and plays on as it returns; when the platform pauses it itself, as for a call or headphones unplugged, a press or a skip key plays it on rather than skipping it.\n\nIts methods are called on the engine's goroutine, as core's are.\n",
          "file": "pkg/cutscene/player.go",
          "line": 72,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPlayer",
              "anchor": "NewPlayer",
              "decl": "func NewPlayer(cx *core.Scope, opts Options) *Player",
              "doc": "NewPlayer returns a player that lives as long as cx. Disposing cx while a cutscene plays stops it without calling its done callback, and sets the loop and the mixer back as they were.\n",
              "file": "pkg/cutscene/player.go",
              "line": 108
            }
          ],
          "methods": [
            {
              "name": "CanSkip",
              "anchor": "Player.CanSkip",
              "recv": "*Player",
              "decl": "func (p *Player) CanSkip() bool",
              "doc": "CanSkip reports whether the cutscene playing can be skipped now: it is Skippable and played past SkipAfter. Read in a computation, it subscribes it to changes, so a game can show its own skip prompt over the video or scene only while a skip would work.\n",
              "file": "pkg/cutscene/player.go",
              "line": 324
            },
            {
              "name": "Dialogue",
              "anchor": "Player.Dialogue",
              "recv": "*Player",
              "decl": "func (p *Player) Dialogue() DialogueLine",
              "doc": "Dialogue returns the active dialogue line of the playing timeline cutscene. Read in a view or computation, it subscribes to changes so a HUD can render subtitles automatically.\n",
              "file": "pkg/cutscene/player.go",
              "line": 250
            },
            {
              "name": "Play",
              "anchor": "Player.Play",
              "recv": "*Player",
              "decl": "func (p *Player) Play(c Cutscene, done func(Result)) error",
              "doc": "Play plays a video cutscene c over the game, pausing the loop and the mixer until it ends, and then calls done, which may be nil, with how it ended; the loop and the mixer are back as they were by then, so done may play another cutscene or switch scenes. A cutscene playing already stops first, its done callback told Stopped.\n\nIt returns an error, and plays nothing, for a timeline cutscene (use PlayTimeline), a video cutscene with no source, an unknown Fit or a negative SkipAfter, and ErrReplaced when the stopped cutscene's done callback plays another cutscene, which then plays in its place.\n",
              "file": "pkg/cutscene/player.go",
              "line": 132
            },
            {
              "name": "PlayTimeline",
              "anchor": "Player.PlayTimeline",
              "recv": "*Player",
              "decl": "func (p *Player) PlayTimeline(c Cutscene, target TimelineTarget, done func(Result)) (*TimelinePlayer, error)",
              "doc": "PlayTimeline starts a timeline cutscene c against target, wiring skip keys, press-to-skip, back handling, CanSkip and Dialogue through p. Call Step(dt) on game.Loop's fixed Update to advance it; the game's loop and mixer keep running so the scene draws and plays cutscene audio.\n\nA cutscene playing already stops first, its done callback told Stopped. Returns ErrReplaced if that done callback started another cutscene.\n",
              "file": "pkg/cutscene/player.go",
              "line": 140
            },
            {
              "name": "Playing",
              "anchor": "Player.Playing",
              "recv": "*Player",
              "decl": "func (p *Player) Playing() bool",
              "doc": "Playing reports whether a cutscene plays. Read in a computation, it subscribes it to changes, as a core.Signal does.\n",
              "file": "pkg/cutscene/player.go",
              "line": 321
            },
            {
              "name": "Scene",
              "anchor": "Player.Scene",
              "recv": "*Player",
              "decl": "func (p *Player) Scene(c Cutscene, done func(Result)) (*scene.Controller, error)",
              "doc": "Scene returns a scene that plays video cutscene c as it enters and calls done as it ends, for a cutscene between two scenes: switch to it, and switch on from done.\n\n\tintro, err := player.Scene(c, func(cutscene.Result) { scenes.Switch(level1, fade) })\n\tif err == nil {\n\t\tscenes.Switch(intro, nil)\n\t}\n\nLeaving the scene before the cutscene ends stops it without calling done, also when the scene switched to is another cutscene scene of the same player entered with a transition, which enters before the scene it replaces exits. It returns an error for a cutscene Play would refuse.\n",
              "file": "pkg/cutscene/player.go",
              "line": 260
            },
            {
              "name": "Skip",
              "anchor": "Player.Skip",
              "recv": "*Player",
              "decl": "func (p *Player) Skip() bool",
              "doc": "Skip ends the cutscene playing with Skipped, as the player's skip input does, and reports whether it did: not while none plays or it cannot be skipped yet (CanSkip).\n",
              "file": "pkg/cutscene/player.go",
              "line": 330
            },
            {
              "name": "Step",
              "anchor": "Player.Step",
              "recv": "*Player",
              "decl": "func (p *Player) Step(dt time.Duration)",
              "doc": "Step advances an active timeline cutscene by dt on game.Loop's fixed Update step. Does nothing when no timeline cutscene is playing.\n",
              "file": "pkg/cutscene/player.go",
              "line": 241
            },
            {
              "name": "Stop",
              "anchor": "Player.Stop",
              "recv": "*Player",
              "decl": "func (p *Player) Stop() bool",
              "doc": "Stop ends the cutscene playing with Stopped, skippable or not, and reports whether one played.\n",
              "file": "pkg/cutscene/player.go",
              "line": 340
            },
            {
              "name": "TimelineScene",
              "anchor": "Player.TimelineScene",
              "recv": "*Player",
              "decl": "func (p *Player) TimelineScene(c Cutscene, target TimelineTarget, done func(Result)) (*scene.Controller, error)",
              "doc": "TimelineScene returns a scene that plays timeline cutscene c against target as it enters and calls done as it ends. Leaving the scene early stops the cutscene without calling done.\n",
              "file": "pkg/cutscene/player.go",
              "line": 289
            },
            {
              "name": "View",
              "anchor": "Player.View",
              "recv": "*Player",
              "decl": "func (p *Player) View() core.Node",
              "doc": "View is the cutscene playing, over the whole of the view it is in, and nothing while none plays. Mount it once, over the game's view.\n",
              "file": "pkg/cutscene/player.go",
              "line": 395
            }
          ]
        },
        {
          "name": "Reason",
          "anchor": "Reason",
          "decl": "type Reason uint8",
          "doc": "Reason says how a cutscene ended.\n",
          "file": "pkg/cutscene/player.go",
          "line": 14,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Finished",
                  "anchor": "Finished"
                },
                {
                  "name": "Skipped",
                  "anchor": "Skipped"
                },
                {
                  "name": "Stopped",
                  "anchor": "Stopped"
                },
                {
                  "name": "Failed",
                  "anchor": "Failed"
                }
              ],
              "decl": "const (\n\t// Finished is a cutscene that played to its end.\n\tFinished Reason = iota\n\t// Skipped is a cutscene the player skipped, by a press, a skip key, back or Player.Skip.\n\tSkipped\n\t// Stopped is a cutscene the game stopped, by Player.Stop or by playing another one over it.\n\tStopped\n\t// Failed is a cutscene the platform could not open or play, such as a missing file or a codec it lacks.\n\tFailed\n)",
              "doc": "",
              "file": "pkg/cutscene/player.go",
              "line": 16
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Reason.String",
              "recv": "Reason",
              "decl": "func (r Reason) String() string",
              "doc": "String names a reason for logs and diagnostics.\n",
              "file": "pkg/cutscene/player.go",
              "line": 28
            }
          ]
        },
        {
          "name": "Result",
          "anchor": "Result",
          "decl": "type Result struct {\n\t// Reason says how it ended.\n\tReason Reason\n\t// Position is how far into the cutscene it played (for video, as the platform last reported; for timeline, the elapsed timeline duration); 0 when it reported nothing.\n\tPosition time.Duration\n\t// Err is why it failed, a *core.MediaError from the platform, for Failed; nil otherwise.\n\tErr error\n}",
          "doc": "Result is how a cutscene ended, which Player.Play and Player.PlayTimeline hand their done callback.\n",
          "file": "pkg/cutscene/player.go",
          "line": 44,
          "members": [
            {
              "name": "Reason",
              "anchor": "Result.Reason",
              "kind": "field",
              "doc": "Reason says how it ended."
            },
            {
              "name": "Position",
              "anchor": "Result.Position",
              "kind": "field",
              "doc": "Position is how far into the cutscene it played (for video, as the platform last reported; for timeline, the elapsed timeline duration); 0 when it reported nothing."
            },
            {
              "name": "Err",
              "anchor": "Result.Err",
              "kind": "field",
              "doc": "Err is why it failed, a *core.MediaError from the platform, for Failed; nil otherwise."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TimelinePlayer",
          "anchor": "TimelinePlayer",
          "decl": "type TimelinePlayer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TimelinePlayer runs a version 2 timeline cutscene deterministically on game.Loop's fixed steps against a scene.\n\nCall Play to begin, Update(dt) on each fixed loop step, Seek(at) to scrub to any timestamp without firing audio or completion callbacks, and Skip or Stop to end early.\n",
          "file": "pkg/cutscene/timeline.go",
          "line": 74,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTimelinePlayer",
              "anchor": "NewTimelinePlayer",
              "decl": "func NewTimelinePlayer(c Cutscene, target TimelineTarget) (*TimelinePlayer, error)",
              "doc": "NewTimelinePlayer validates c as a timeline cutscene, resolves its scene objects against target.Scene or target.Doc (when provided), snapshots initial poses and returns a player positioned at time 0.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 114
            }
          ],
          "methods": [
            {
              "name": "ActiveDialogue",
              "anchor": "TimelinePlayer.ActiveDialogue",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) ActiveDialogue() DialogueLine",
              "doc": "ActiveDialogue returns the dialogue line active at the current position.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 228
            },
            {
              "name": "ActorPosition",
              "anchor": "TimelinePlayer.ActorPosition",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) ActorPosition(actorID string) (x, y float32, ok bool)",
              "doc": "ActorPosition returns the current (x, y) position of actorID and whether it is tracked.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 234
            },
            {
              "name": "ActorState",
              "anchor": "TimelinePlayer.ActorState",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) ActorState(actorID string) string",
              "doc": "ActorState returns the active animation state of actorID, or \"\" when none is active.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 231
            },
            {
              "name": "CameraState",
              "anchor": "TimelinePlayer.CameraState",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) CameraState() (x, y, zoom float32, ok bool)",
              "doc": "CameraState returns the camera's current (x, y, zoom) and whether the timeline has set the camera.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 240
            },
            {
              "name": "CanSkip",
              "anchor": "TimelinePlayer.CanSkip",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) CanSkip() bool",
              "doc": "CanSkip reports whether the cutscene is currently playing and can be skipped now.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 225
            },
            {
              "name": "Cutscene",
              "anchor": "TimelinePlayer.Cutscene",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Cutscene() Cutscene",
              "doc": "Cutscene returns the cutscene definition p plays.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 210
            },
            {
              "name": "Done",
              "anchor": "TimelinePlayer.Done",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Done() bool",
              "doc": "Done reports whether playback has ended (finished, skipped or stopped).\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 222
            },
            {
              "name": "Length",
              "anchor": "TimelinePlayer.Length",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Length() time.Duration",
              "doc": "Length returns the cutscene's total duration.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 213
            },
            {
              "name": "Pause",
              "anchor": "TimelinePlayer.Pause",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Pause()",
              "doc": "Pause pauses playback at the current position without ending the cutscene.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 256
            },
            {
              "name": "Play",
              "anchor": "TimelinePlayer.Play",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Play()",
              "doc": "Play starts or resumes playback from the current position. A finished cutscene stays finished until Reset is called.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 245
            },
            {
              "name": "Playing",
              "anchor": "TimelinePlayer.Playing",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Playing() bool",
              "doc": "Playing reports whether playback is active.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 219
            },
            {
              "name": "Reset",
              "anchor": "TimelinePlayer.Reset",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Reset()",
              "doc": "Reset rewinds to time 0, restores initial actor and camera poses, stops active cutscene music and clears done state.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 265
            },
            {
              "name": "Seek",
              "anchor": "TimelinePlayer.Seek",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Seek(at time.Duration)",
              "doc": "Seek jumps directly to timestamp at (clamped to [0, Length]) and applies all actor, camera and dialogue states deterministically without firing sound, music or completion callbacks.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 328
            },
            {
              "name": "Skip",
              "anchor": "TimelinePlayer.Skip",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Skip() bool",
              "doc": "Skip ends playback with Skipped if the cutscene is playing and CanSkip reports true.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 342
            },
            {
              "name": "Stop",
              "anchor": "TimelinePlayer.Stop",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Stop() bool",
              "doc": "Stop ends playback with Stopped regardless of Skippable, reporting whether the cutscene was active (playing or paused mid-cutscene).\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 351
            },
            {
              "name": "Time",
              "anchor": "TimelinePlayer.Time",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Time() time.Duration",
              "doc": "Time returns the current playback position in [0, Length].\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 216
            },
            {
              "name": "Update",
              "anchor": "TimelinePlayer.Update",
              "recv": "*TimelinePlayer",
              "decl": "func (p *TimelinePlayer) Update(dt time.Duration)",
              "doc": "Update advances a playing timeline cutscene by dt on a fixed game.Loop step.\n",
              "file": "pkg/cutscene/timeline.go",
              "line": 302
            }
          ]
        },
        {
          "name": "TimelineTarget",
          "anchor": "TimelineTarget",
          "decl": "type TimelineTarget struct {\n\t// Scene, when non-nil, is the built scene whose objects and camera the player drives directly.\n\t// Actor clips update BuiltObject.Doc.X/Y and call BuiltObject.Sync; camera clips update Scene.Camera.\n\tScene *sceneformat.BuiltScene\n\t// Doc, when non-nil and Scene is nil, is a SceneDoc whose objects and camera the player drives directly.\n\tDoc *sceneformat.SceneDoc\n\t// Catalog, when non-nil, resolves dialogue clip line IDs into localized text for ActiveDialogue and OnDialogue.\n\tCatalog *l10n.Catalog\n\t// Locale is the BCP-47 locale tag passed to Catalog.T; when empty, Catalog.FallbackLocale is used.\n\tLocale string\n\t// Mixer, when non-nil, plays music clips through sound.Mixer when OnMusic is nil.\n\tMixer *sound.Mixer\n\t// AudioSource maps a clip's Source path to an audio.Source when playing through Mixer; when nil, audio.Source{URI: source} is used.\n\tAudioSource func(source string) audio.Source\n\t// OnActorState is called whenever an actor track's active state changes (and with \"\" when leaving a state clip).\n\tOnActorState func(actorID, state string)\n\t// OnDialogue is called whenever the active dialogue line changes.\n\tOnDialogue func(line DialogueLine)\n\t// OnSound is called once when Update crosses a sound clip's Start (never during Seek).\n\tOnSound func(clip Clip, group string, volume float32)\n\t// OnMusic is called once when Update crosses a music clip's Start (never during Seek).\n\tOnMusic func(clip Clip, group string, volume float32)\n\t// OnMusicStop is called when an active music clip ends or the cutscene ends, skips or stops.\n\tOnMusicStop func(clip Clip, fadeOut time.Duration)\n\t// OnDone is called once when the cutscene finishes, is skipped or is stopped.\n\tOnDone func(Result)\n}",
          "doc": "TimelineTarget connects a TimelinePlayer to a scene, localization catalog, audio callbacks and mixer.\n",
          "file": "pkg/cutscene/timeline.go",
          "line": 28,
          "members": [
            {
              "name": "Scene",
              "anchor": "TimelineTarget.Scene",
              "kind": "field",
              "doc": "Scene, when non-nil, is the built scene whose objects and camera the player drives directly.\nActor clips update BuiltObject.Doc.X/Y and call BuiltObject.Sync; camera clips update Scene.Camera."
            },
            {
              "name": "Doc",
              "anchor": "TimelineTarget.Doc",
              "kind": "field",
              "doc": "Doc, when non-nil and Scene is nil, is a SceneDoc whose objects and camera the player drives directly."
            },
            {
              "name": "Catalog",
              "anchor": "TimelineTarget.Catalog",
              "kind": "field",
              "doc": "Catalog, when non-nil, resolves dialogue clip line IDs into localized text for ActiveDialogue and OnDialogue."
            },
            {
              "name": "Locale",
              "anchor": "TimelineTarget.Locale",
              "kind": "field",
              "doc": "Locale is the BCP-47 locale tag passed to Catalog.T; when empty, Catalog.FallbackLocale is used."
            },
            {
              "name": "Mixer",
              "anchor": "TimelineTarget.Mixer",
              "kind": "field",
              "doc": "Mixer, when non-nil, plays music clips through sound.Mixer when OnMusic is nil."
            },
            {
              "name": "AudioSource",
              "anchor": "TimelineTarget.AudioSource",
              "kind": "field",
              "doc": "AudioSource maps a clip's Source path to an audio.Source when playing through Mixer; when nil, audio.Source{URI: source} is used."
            },
            {
              "name": "OnActorState",
              "anchor": "TimelineTarget.OnActorState",
              "kind": "field",
              "doc": "OnActorState is called whenever an actor track's active state changes (and with \"\" when leaving a state clip)."
            },
            {
              "name": "OnDialogue",
              "anchor": "TimelineTarget.OnDialogue",
              "kind": "field",
              "doc": "OnDialogue is called whenever the active dialogue line changes."
            },
            {
              "name": "OnSound",
              "anchor": "TimelineTarget.OnSound",
              "kind": "field",
              "doc": "OnSound is called once when Update crosses a sound clip's Start (never during Seek)."
            },
            {
              "name": "OnMusic",
              "anchor": "TimelineTarget.OnMusic",
              "kind": "field",
              "doc": "OnMusic is called once when Update crosses a music clip's Start (never during Seek)."
            },
            {
              "name": "OnMusicStop",
              "anchor": "TimelineTarget.OnMusicStop",
              "kind": "field",
              "doc": "OnMusicStop is called when an active music clip ends or the cutscene ends, skips or stops."
            },
            {
              "name": "OnDone",
              "anchor": "TimelineTarget.OnDone",
              "kind": "field",
              "doc": "OnDone is called once when the cutscene finishes, is skipped or is stopped."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Track",
          "anchor": "Track",
          "decl": "type Track struct {\n\t// ID optionally identifies the track for tools and editors; non-empty track IDs must be unique within the cutscene.\n\tID string `yaml:\"id,omitempty\"`\n\t// Name is an optional human-readable display label for the track.\n\tName string `yaml:\"name,omitempty\"`\n\t// Kind selects what the track's clips drive: \"camera\", \"actor\", \"dialogue\", \"sound\" or \"music\".\n\tKind TrackKind `yaml:\"kind\" schema:\"required,enum=camera|actor|dialogue|sound|music\"`\n\t// Target is the scene object ID an actor track drives; required for \"actor\" tracks and omitted on other track kinds.\n\tTarget string `yaml:\"target,omitempty\"`\n\t// Group is the default mixer group for audio clips on a \"sound\" or \"music\" track (defaults to \"sfx\" for sound and \"music\" for music).\n\tGroup string `yaml:\"group,omitempty\"`\n\t// Clips are the timed clips on this track, in non-decreasing start order.\n\tClips []Clip `yaml:\"clips,omitempty\"`\n}",
          "doc": "Track is one lane on a timeline cutscene (camera, actor, dialogue, sound or music) holding timed clips.\n",
          "file": "pkg/cutscene/format.go",
          "line": 149,
          "members": [
            {
              "name": "ID",
              "anchor": "Track.ID",
              "kind": "field",
              "doc": "ID optionally identifies the track for tools and editors; non-empty track IDs must be unique within the cutscene."
            },
            {
              "name": "Name",
              "anchor": "Track.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable display label for the track."
            },
            {
              "name": "Kind",
              "anchor": "Track.Kind",
              "kind": "field",
              "doc": "Kind selects what the track's clips drive: \"camera\", \"actor\", \"dialogue\", \"sound\" or \"music\"."
            },
            {
              "name": "Target",
              "anchor": "Track.Target",
              "kind": "field",
              "doc": "Target is the scene object ID an actor track drives; required for \"actor\" tracks and omitted on other track kinds."
            },
            {
              "name": "Group",
              "anchor": "Track.Group",
              "kind": "field",
              "doc": "Group is the default mixer group for audio clips on a \"sound\" or \"music\" track (defaults to \"sfx\" for sound and \"music\" for music)."
            },
            {
              "name": "Clips",
              "anchor": "Track.Clips",
              "kind": "field",
              "doc": "Clips are the timed clips on this track, in non-decreasing start order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TrackKind",
          "anchor": "TrackKind",
          "decl": "type TrackKind string",
          "doc": "TrackKind selects what a timeline track's clips drive.\n",
          "file": "pkg/cutscene/format.go",
          "line": 75,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TrackCamera",
                  "anchor": "TrackCamera"
                },
                {
                  "name": "TrackActor",
                  "anchor": "TrackActor"
                },
                {
                  "name": "TrackDialogue",
                  "anchor": "TrackDialogue"
                },
                {
                  "name": "TrackSound",
                  "anchor": "TrackSound"
                },
                {
                  "name": "TrackMusic",
                  "anchor": "TrackMusic"
                }
              ],
              "decl": "const (\n\t// TrackCamera drives the scene camera (hold on an object or point, pan to, follow).\n\tTrackCamera TrackKind = \"camera\"\n\t// TrackActor drives a named scene object (walk, play an animation state, drop, patrol).\n\tTrackActor TrackKind = \"actor\"\n\t// TrackDialogue drives timed localized dialogue lines by l10n key.\n\tTrackDialogue TrackKind = \"dialogue\"\n\t// TrackSound triggers one-shot sound effects.\n\tTrackSound TrackKind = \"sound\"\n\t// TrackMusic plays background music tracks with optional fade-in and fade-out.\n\tTrackMusic TrackKind = \"music\"\n)",
              "doc": "",
              "file": "pkg/cutscene/format.go",
              "line": 77
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/debug",
      "name": "debug",
      "dir": "pkg/debug",
      "page": "pkg/debug",
      "synopsis": "Package debug holds development-only tooling and overlays for NSGo games: a frame-time graph, collision and sprite-bounds wireframes, a live scene inspector, a behavior tree and state machine inspector with steering guides, an interactive dev console with typed tunables, named timing scopes with Chrome/Perfetto trace export, an asset memory tracker with budgets, and a GC/allocation monitor.",
      "doc": "Package debug holds development-only tooling and overlays for NSGo games: a frame-time graph, collision and sprite-bounds wireframes, a live scene inspector, a behavior tree and state machine inspector with steering guides, an interactive dev console with typed tunables, named timing scopes with Chrome/Perfetto trace export, an asset memory tracker with budgets, and a GC/allocation monitor.\n\nIn default builds every feature is compiled in and Enabled reports true. Building with -tags release swaps the implementation for empty no-ops where Enabled reports false and Overlay.View returns nil, so release binaries link none of the overlay UI, graph, AI inspector, steering guides, console, profiler, memory tracker, GC monitor, or wireframe code.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FrameHistory",
              "anchor": "FrameHistory"
            }
          ],
          "decl": "const FrameHistory = 120",
          "doc": "FrameHistory is the number of frames retained in a FrameStats ring buffer.\n",
          "file": "pkg/debug/types.go",
          "line": 12
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "AssertZeroAllocs",
          "anchor": "AssertZeroAllocs",
          "decl": "func AssertZeroAllocs(t testing.TB, runs int, fn func())",
          "doc": "AssertZeroAllocs fails t if fn allocates on the heap during runs iterations, for use in CI hot-path regression tests.\n",
          "file": "pkg/debug/gc.go",
          "line": 321
        },
        {
          "name": "ConsoleView",
          "anchor": "ConsoleView",
          "decl": "func ConsoleView(cx *core.Scope, c *Console) core.View",
          "doc": "ConsoleView returns a native NSGo view bound to c, composable inside Overlay or any game view tree.\n",
          "file": "pkg/debug/console.go",
          "line": 1126
        },
        {
          "name": "Enabled",
          "anchor": "Enabled",
          "decl": "func Enabled() bool",
          "doc": "Enabled reports whether debug overlays are compiled into this build. It is true in default builds and false with -tags release.\n",
          "file": "pkg/debug/overlay.go",
          "line": 17
        },
        {
          "name": "EstimateImageBytes",
          "anchor": "EstimateImageBytes",
          "decl": "func EstimateImageBytes(w, h int) int64",
          "doc": "EstimateImageBytes returns the uncompressed RGBA8 memory footprint (w * h * 4) for an image of size w by h, or 0 if either dimension is non-positive.\n",
          "file": "pkg/debug/types.go",
          "line": 194
        },
        {
          "name": "EstimatePCMBytes",
          "anchor": "EstimatePCMBytes",
          "decl": "func EstimatePCMBytes(samples, channels, bytesPerSample int) int64",
          "doc": "EstimatePCMBytes returns the uncompressed PCM memory footprint (samples * channels * bytesPerSample), or 0 if any parameter is non-positive.\n",
          "file": "pkg/debug/types.go",
          "line": 202
        },
        {
          "name": "MeasureAllocs",
          "anchor": "MeasureAllocs",
          "decl": "func MeasureAllocs(runs int, fn func()) float64",
          "doc": "MeasureAllocs wraps testing.AllocsPerRun and returns the average heap allocations per execution of fn over runs iterations (defaulting to 100 when runs <= 0).\n",
          "file": "pkg/debug/gc.go",
          "line": 310
        }
      ],
      "types": [
        {
          "name": "AISnapshot",
          "anchor": "AISnapshot",
          "decl": "type AISnapshot struct {\n\t// Agent identifies the inspected agent (for example, \"guard-1\" or \"boss\").\n\tAgent string\n\t// Tree holds the behavior tree's pre-order node traces (for example, from ai.BTInspector.Walk or WalkInto).\n\tTree []ai.BTNodeTrace\n\t// Machine holds a flow.Machine's current state and bounded transition history (for example, from m.Inspect()).\n\tMachine *flow.MachineInspection\n}",
          "doc": "AISnapshot describes a chosen agent's live AI state for the debug overlay panel.\nSet Tree to inspect a behavior tree, Machine to inspect a flow.Machine, or both.\n",
          "file": "pkg/debug/types.go",
          "line": 229,
          "members": [
            {
              "name": "Agent",
              "anchor": "AISnapshot.Agent",
              "kind": "field",
              "doc": "Agent identifies the inspected agent (for example, \"guard-1\" or \"boss\")."
            },
            {
              "name": "Tree",
              "anchor": "AISnapshot.Tree",
              "kind": "field",
              "doc": "Tree holds the behavior tree's pre-order node traces (for example, from ai.BTInspector.Walk or WalkInto)."
            },
            {
              "name": "Machine",
              "anchor": "AISnapshot.Machine",
              "kind": "field",
              "doc": "Machine holds a flow.Machine's current state and bounded transition history (for example, from m.Inspect())."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BehaviorTreeSnapshot",
              "anchor": "BehaviorTreeSnapshot",
              "decl": "func BehaviorTreeSnapshot(agent string, ins *ai.BTInspector) AISnapshot",
              "doc": "BehaviorTreeSnapshot builds an AISnapshot for agent by walking ins.\nUnder -tags release, BehaviorTreeSnapshot returns a zero AISnapshot without walking ins.\n",
              "file": "pkg/debug/ai.go",
              "line": 47
            },
            {
              "name": "StateMachineSnapshot",
              "anchor": "StateMachineSnapshot",
              "decl": "func StateMachineSnapshot(agent string, m flow.MachineInspector) AISnapshot",
              "doc": "StateMachineSnapshot builds an AISnapshot for agent from m's current state and transition history.\nUnder -tags release, StateMachineSnapshot returns a zero AISnapshot without snapshotting m.\n",
              "file": "pkg/debug/ai.go",
              "line": 59
            }
          ],
          "methods": []
        },
        {
          "name": "AssetKind",
          "anchor": "AssetKind",
          "decl": "type AssetKind uint8",
          "doc": "AssetKind classifies tracked asset memory in a MemoryTracker.\n",
          "file": "pkg/debug/types.go",
          "line": 150,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AssetImage",
                  "anchor": "AssetImage"
                },
                {
                  "name": "AssetAtlas",
                  "anchor": "AssetAtlas"
                },
                {
                  "name": "AssetAudio",
                  "anchor": "AssetAudio"
                },
                {
                  "name": "AssetOther",
                  "anchor": "AssetOther"
                }
              ],
              "decl": "const (\n\t// AssetImage identifies standalone decoded images and textures.\n\tAssetImage AssetKind = iota\n\t// AssetAtlas identifies sprite atlases and sheets.\n\tAssetAtlas\n\t// AssetAudio identifies decoded audio buffers and sound banks.\n\tAssetAudio\n\t// AssetOther identifies any other asset category.\n\tAssetOther\n)",
              "doc": "",
              "file": "pkg/debug/types.go",
              "line": 152
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "AssetKind.String",
              "recv": "AssetKind",
              "decl": "func (k AssetKind) String() string",
              "doc": "String returns a lowercase label for k.\n",
              "file": "pkg/debug/types.go",
              "line": 164
            }
          ]
        },
        {
          "name": "CommandInfo",
          "anchor": "CommandInfo",
          "decl": "type CommandInfo struct {\n\t// Name is the command name as typed on the console.\n\tName string\n\t// Help is the command's usage or description text.\n\tHelp string\n\t// Builtin reports whether the command is built into Console.\n\tBuiltin bool\n}",
          "doc": "CommandInfo describes one command available on a Console.\n",
          "file": "pkg/debug/types.go",
          "line": 126,
          "members": [
            {
              "name": "Name",
              "anchor": "CommandInfo.Name",
              "kind": "field",
              "doc": "Name is the command name as typed on the console."
            },
            {
              "name": "Help",
              "anchor": "CommandInfo.Help",
              "kind": "field",
              "doc": "Help is the command's usage or description text."
            },
            {
              "name": "Builtin",
              "anchor": "CommandInfo.Builtin",
              "kind": "field",
              "doc": "Builtin reports whether the command is built into Console."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Console",
          "anchor": "Console",
          "decl": "type Console struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Console is an interactive development console supporting custom commands, range-checked typed tunables, history navigation, tab completion, and Storage persistence.\n",
          "file": "pkg/debug/console.go",
          "line": 310,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewConsole",
              "anchor": "NewConsole",
              "decl": "func NewConsole() *Console",
              "doc": "NewConsole returns an empty development Console with built-in commands enabled.\n",
              "file": "pkg/debug/console.go",
              "line": 335
            }
          ],
          "methods": [
            {
              "name": "Commands",
              "anchor": "Console.Commands",
              "recv": "*Console",
              "decl": "func (c *Console) Commands() []CommandInfo",
              "doc": "Commands returns all built-in and registered console commands sorted by name.\n",
              "file": "pkg/debug/console.go",
              "line": 496
            },
            {
              "name": "Complete",
              "anchor": "Console.Complete",
              "recv": "*Console",
              "decl": "func (c *Console) Complete(prefix string) []string",
              "doc": "Complete returns sorted completion candidates for prefix, completing command names and tunable names for get/set/help.\n",
              "file": "pkg/debug/console.go",
              "line": 749
            },
            {
              "name": "Entries",
              "anchor": "Console.Entries",
              "recv": "*Console",
              "decl": "func (c *Console) Entries() []ConsoleEntry",
              "doc": "Entries returns a copy of the current console output log.\n",
              "file": "pkg/debug/console.go",
              "line": 736
            },
            {
              "name": "Exec",
              "anchor": "Console.Exec",
              "recv": "*Console",
              "decl": "func (c *Console) Exec(line string) (string, error)",
              "doc": "Exec parses and executes one command line, updating history and output entries.\n",
              "file": "pkg/debug/console.go",
              "line": 529
            },
            {
              "name": "History",
              "anchor": "Console.History",
              "recv": "*Console",
              "decl": "func (c *Console) History() []string",
              "doc": "History returns a copy of executed command lines, oldest first.\n",
              "file": "pkg/debug/console.go",
              "line": 687
            },
            {
              "name": "HistoryNext",
              "anchor": "Console.HistoryNext",
              "recv": "*Console",
              "decl": "func (c *Console) HistoryNext() string",
              "doc": "HistoryNext steps forward through command history, returning \"\" once past the most recent entry.\n",
              "file": "pkg/debug/console.go",
              "line": 716
            },
            {
              "name": "HistoryPrev",
              "anchor": "Console.HistoryPrev",
              "recv": "*Console",
              "decl": "func (c *Console) HistoryPrev() string",
              "doc": "HistoryPrev steps backward through command history and returns the selected command line.\n",
              "file": "pkg/debug/console.go",
              "line": 700
            },
            {
              "name": "LoadTunables",
              "anchor": "Console.LoadTunables",
              "recv": "*Console",
              "decl": "func (c *Console) LoadTunables(st core.Storage, key string) error",
              "doc": "LoadTunables restores registered tunables from st under key. Missing entries are a no-op; unknown keys are ignored; out-of-range values return an error without mutating the tunable.\n\nIts errors are *loaderr.Error values that name key as the file, with the line of the tunable at fault and how to fix it.\n",
              "file": "pkg/debug/console.go",
              "line": 842
            },
            {
              "name": "RegisterBool",
              "anchor": "Console.RegisterBool",
              "recv": "*Console",
              "decl": "func (c *Console) RegisterBool(name string, ptr *bool)",
              "doc": "RegisterBool registers a bool tunable bound to ptr.\n",
              "file": "pkg/debug/console.go",
              "line": 406
            },
            {
              "name": "RegisterCommand",
              "anchor": "Console.RegisterCommand",
              "recv": "*Console",
              "decl": "func (c *Console) RegisterCommand(name, help string, fn func(args []string) (string, error))",
              "doc": "RegisterCommand registers a named console command and its help text.\n",
              "file": "pkg/debug/console.go",
              "line": 344
            },
            {
              "name": "RegisterFloat",
              "anchor": "Console.RegisterFloat",
              "recv": "*Console",
              "decl": "func (c *Console) RegisterFloat(name string, minVal, maxVal float64, ptr *float64)",
              "doc": "RegisterFloat registers a range-checked float64 tunable bound to ptr.\n",
              "file": "pkg/debug/console.go",
              "line": 358
            },
            {
              "name": "RegisterInt",
              "anchor": "Console.RegisterInt",
              "recv": "*Console",
              "decl": "func (c *Console) RegisterInt(name string, minVal, maxVal int, ptr *int)",
              "doc": "RegisterInt registers a range-checked int tunable bound to ptr.\n",
              "file": "pkg/debug/console.go",
              "line": 382
            },
            {
              "name": "RegisterString",
              "anchor": "Console.RegisterString",
              "recv": "*Console",
              "decl": "func (c *Console) RegisterString(name string, ptr *string)",
              "doc": "RegisterString registers a string tunable bound to ptr.\n",
              "file": "pkg/debug/console.go",
              "line": 425
            },
            {
              "name": "SaveTunables",
              "anchor": "Console.SaveTunables",
              "recv": "*Console",
              "decl": "func (c *Console) SaveTunables(st core.Storage, key string) error",
              "doc": "SaveTunables persists all registered tunables into st under key as JSON.\n",
              "file": "pkg/debug/console.go",
              "line": 808
            },
            {
              "name": "SetTunable",
              "anchor": "Console.SetTunable",
              "recv": "*Console",
              "decl": "func (c *Console) SetTunable(name string, value any, clamp bool) (TunableChange, error)",
              "doc": "SetTunable updates the named tunable to value after checking its type and numeric range, and returns the previous value with a snapshot of the tunable after the change, both taken under the same lock as the write. A float tunable takes any Go integer or float; an int tunable takes any Go integer. With clamp, a number outside the tunable's range, including an integer beyond int's range, is stored as the nearest bound and TunableChange.Clamped is set; without clamp it is refused. On error the tunable is left unchanged.\n",
              "file": "pkg/debug/console.go",
              "line": 478
            },
            {
              "name": "Tunable",
              "anchor": "Console.Tunable",
              "recv": "*Console",
              "decl": "func (c *Console) Tunable(name string) (TunableInfo, bool)",
              "doc": "Tunable returns a snapshot of the named tunable and reports whether it is registered.\n",
              "file": "pkg/debug/console.go",
              "line": 464
            },
            {
              "name": "Tunables",
              "anchor": "Console.Tunables",
              "recv": "*Console",
              "decl": "func (c *Console) Tunables() []TunableInfo",
              "doc": "Tunables returns a snapshot of all registered tunables sorted by name.\n",
              "file": "pkg/debug/console.go",
              "line": 444
            }
          ]
        },
        {
          "name": "ConsoleEntry",
          "anchor": "ConsoleEntry",
          "decl": "type ConsoleEntry struct {\n\t// Input is the raw command line that was executed.\n\tInput string\n\t// Output is the returned text or error message.\n\tOutput string\n\t// IsError reports whether the command returned an error.\n\tIsError bool\n}",
          "doc": "ConsoleEntry is one recorded command execution in a dev Console log.\n",
          "file": "pkg/debug/types.go",
          "line": 90,
          "members": [
            {
              "name": "Input",
              "anchor": "ConsoleEntry.Input",
              "kind": "field",
              "doc": "Input is the raw command line that was executed."
            },
            {
              "name": "Output",
              "anchor": "ConsoleEntry.Output",
              "kind": "field",
              "doc": "Output is the returned text or error message."
            },
            {
              "name": "IsError",
              "anchor": "ConsoleEntry.IsError",
              "kind": "field",
              "doc": "IsError reports whether the command returned an error."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DrawStats",
          "anchor": "DrawStats",
          "decl": "type DrawStats struct {\n\t// DrawCalls is the number of draw calls submitted in the frame.\n\tDrawCalls int\n\t// Sprites is the number of sprites drawn in the frame.\n\tSprites int\n\t// Batches is the number of sprite or instanced draw batches submitted in the frame.\n\tBatches int\n\t// Triangles is the number of triangles submitted in the frame.\n\tTriangles uint64\n\t// Vertices is the number of vertices submitted in the frame.\n\tVertices uint64\n}",
          "doc": "DrawStats captures per-frame draw submission counts for overlay display and MCP performance readouts.\n",
          "file": "pkg/debug/types.go",
          "line": 44,
          "members": [
            {
              "name": "DrawCalls",
              "anchor": "DrawStats.DrawCalls",
              "kind": "field",
              "doc": "DrawCalls is the number of draw calls submitted in the frame."
            },
            {
              "name": "Sprites",
              "anchor": "DrawStats.Sprites",
              "kind": "field",
              "doc": "Sprites is the number of sprites drawn in the frame."
            },
            {
              "name": "Batches",
              "anchor": "DrawStats.Batches",
              "kind": "field",
              "doc": "Batches is the number of sprite or instanced draw batches submitted in the frame."
            },
            {
              "name": "Triangles",
              "anchor": "DrawStats.Triangles",
              "kind": "field",
              "doc": "Triangles is the number of triangles submitted in the frame."
            },
            {
              "name": "Vertices",
              "anchor": "DrawStats.Vertices",
              "kind": "field",
              "doc": "Vertices is the number of vertices submitted in the frame."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FrameSample",
          "anchor": "FrameSample",
          "decl": "type FrameSample struct {\n\t// Total is the elapsed time of the frame.\n\tTotal time.Duration\n\t// Update is the time spent in fixed-step updates during the frame.\n\tUpdate time.Duration\n\t// Draw is the time spent drawing the frame.\n\tDraw time.Duration\n\t// GCHitch reports whether a GC pause occurred during this frame.\n\tGCHitch bool\n\t// Cause is an optional short explanation of a frame-time spike (such as shader compilation or asset streaming) when known by the game.\n\tCause string\n}",
          "doc": "FrameSample holds the measured durations of one rendered frame.\n",
          "file": "pkg/debug/types.go",
          "line": 58,
          "members": [
            {
              "name": "Total",
              "anchor": "FrameSample.Total",
              "kind": "field",
              "doc": "Total is the elapsed time of the frame."
            },
            {
              "name": "Update",
              "anchor": "FrameSample.Update",
              "kind": "field",
              "doc": "Update is the time spent in fixed-step updates during the frame."
            },
            {
              "name": "Draw",
              "anchor": "FrameSample.Draw",
              "kind": "field",
              "doc": "Draw is the time spent drawing the frame."
            },
            {
              "name": "GCHitch",
              "anchor": "FrameSample.GCHitch",
              "kind": "field",
              "doc": "GCHitch reports whether a GC pause occurred during this frame."
            },
            {
              "name": "Cause",
              "anchor": "FrameSample.Cause",
              "kind": "field",
              "doc": "Cause is an optional short explanation of a frame-time spike (such as shader compilation or asset streaming) when known by the game."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FrameStats",
          "anchor": "FrameStats",
          "decl": "type FrameStats struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "FrameStats keeps the last FrameHistory frame timings in a fixed-size ring buffer without per-frame heap allocations.\n",
          "file": "pkg/debug/frame.go",
          "line": 13,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "At",
              "anchor": "FrameStats.At",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) At(i int) FrameSample",
              "doc": "At returns sample i in chronological order, where 0 is the oldest retained frame and Len()-1 is the newest. Out-of-range indices return the zero FrameSample.\n",
              "file": "pkg/debug/frame.go",
              "line": 71
            },
            {
              "name": "Average",
              "anchor": "FrameStats.Average",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) Average() FrameSample",
              "doc": "Average returns the mean Total, Update and Draw durations across the retained samples.\n",
              "file": "pkg/debug/frame.go",
              "line": 100
            },
            {
              "name": "DrawGraph",
              "anchor": "FrameStats.DrawGraph",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) DrawGraph(d *core.Drawing, size core.Size, targetFPS float64)",
              "doc": "DrawGraph records a stacked update+draw bar graph of the retained frame samples into d, filling size, with a reference line at targetFPS (60 when 0 or less).\n",
              "file": "pkg/debug/frame.go",
              "line": 155
            },
            {
              "name": "FPS",
              "anchor": "FrameStats.FPS",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) FPS() float64",
              "doc": "FPS returns the average frame rate in frames per second across the retained samples, or 0 when empty.\n",
              "file": "pkg/debug/frame.go",
              "line": 120
            },
            {
              "name": "Latest",
              "anchor": "FrameStats.Latest",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) Latest() FrameSample",
              "doc": "Latest returns the most recently recorded sample, or the zero FrameSample when empty.\n",
              "file": "pkg/debug/frame.go",
              "line": 80
            },
            {
              "name": "Len",
              "anchor": "FrameStats.Len",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) Len() int",
              "doc": "Len returns how many samples are currently stored, up to FrameHistory.\n",
              "file": "pkg/debug/frame.go",
              "line": 63
            },
            {
              "name": "MaxTotal",
              "anchor": "FrameStats.MaxTotal",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) MaxTotal() time.Duration",
              "doc": "MaxTotal returns the longest Total frame duration among the retained samples.\n",
              "file": "pkg/debug/frame.go",
              "line": 129
            },
            {
              "name": "Record",
              "anchor": "FrameStats.Record",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) Record(total, update, draw time.Duration)",
              "doc": "Record appends one frame's timings to the ring buffer, overwriting the oldest sample once full.\n\nNegative durations are clamped to zero. When total is zero and update or draw is positive, total defaults to update+draw.\n",
              "file": "pkg/debug/frame.go",
              "line": 22
            },
            {
              "name": "Reset",
              "anchor": "FrameStats.Reset",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) Reset()",
              "doc": "Reset clears all recorded samples.\n",
              "file": "pkg/debug/frame.go",
              "line": 54
            },
            {
              "name": "Samples",
              "anchor": "FrameStats.Samples",
              "recv": "*FrameStats",
              "decl": "func (s *FrameStats) Samples(dst []FrameSample) []FrameSample",
              "doc": "Samples appends the retained samples in chronological order to dst and returns the resulting slice.\n",
              "file": "pkg/debug/frame.go",
              "line": 88
            }
          ]
        },
        {
          "name": "GCFrameSample",
          "anchor": "GCFrameSample",
          "decl": "type GCFrameSample struct {\n\t// FrameDuration is the frame duration passed to SampleFrame.\n\tFrameDuration time.Duration\n\t// CyclesDelta is the number of GC cycles completed since the previous sample.\n\tCyclesDelta uint64\n\t// Pause is the estimated total GC pause time observed during this frame.\n\tPause time.Duration\n\t// HeapObjectsBytes is the live heap object bytes reported by /memory/classes/heap/objects:bytes.\n\tHeapObjectsBytes uint64\n\t// AllocsDelta is the number of heap objects allocated during this frame (/gc/heap/allocs:objects).\n\tAllocsDelta uint64\n\t// AllocBytesDelta is the number of heap bytes allocated during this frame (/gc/heap/allocs:bytes).\n\tAllocBytesDelta uint64\n\t// Hitched reports whether a GC pause occurred during this frame.\n\tHitched bool\n}",
          "doc": "GCFrameSample records GC metrics sampled for one frame by a GCMonitor.\n",
          "file": "pkg/debug/types.go",
          "line": 210,
          "members": [
            {
              "name": "FrameDuration",
              "anchor": "GCFrameSample.FrameDuration",
              "kind": "field",
              "doc": "FrameDuration is the frame duration passed to SampleFrame."
            },
            {
              "name": "CyclesDelta",
              "anchor": "GCFrameSample.CyclesDelta",
              "kind": "field",
              "doc": "CyclesDelta is the number of GC cycles completed since the previous sample."
            },
            {
              "name": "Pause",
              "anchor": "GCFrameSample.Pause",
              "kind": "field",
              "doc": "Pause is the estimated total GC pause time observed during this frame."
            },
            {
              "name": "HeapObjectsBytes",
              "anchor": "GCFrameSample.HeapObjectsBytes",
              "kind": "field",
              "doc": "HeapObjectsBytes is the live heap object bytes reported by /memory/classes/heap/objects:bytes."
            },
            {
              "name": "AllocsDelta",
              "anchor": "GCFrameSample.AllocsDelta",
              "kind": "field",
              "doc": "AllocsDelta is the number of heap objects allocated during this frame (/gc/heap/allocs:objects)."
            },
            {
              "name": "AllocBytesDelta",
              "anchor": "GCFrameSample.AllocBytesDelta",
              "kind": "field",
              "doc": "AllocBytesDelta is the number of heap bytes allocated during this frame (/gc/heap/allocs:bytes)."
            },
            {
              "name": "Hitched",
              "anchor": "GCFrameSample.Hitched",
              "kind": "field",
              "doc": "Hitched reports whether a GC pause occurred during this frame."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GCMonitor",
          "anchor": "GCMonitor",
          "decl": "type GCMonitor struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GCMonitor samples Go runtime/metrics GC counters, heap allocations and pause histograms once per frame with zero steady-state allocations, flagging frames hitched by garbage collection.\n",
          "file": "pkg/debug/gc.go",
          "line": 13,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGCMonitor",
              "anchor": "NewGCMonitor",
              "decl": "func NewGCMonitor(historyLen int) *GCMonitor",
              "doc": "NewGCMonitor returns a GCMonitor retaining up to historyLen recent frame samples (defaulting to FrameHistory when <= 0).\n",
              "file": "pkg/debug/gc.go",
              "line": 32
            }
          ],
          "methods": [
            {
              "name": "AllocBytesPerFrame",
              "anchor": "GCMonitor.AllocBytesPerFrame",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) AllocBytesPerFrame() float64",
              "doc": "AllocBytesPerFrame returns the average number of heap bytes allocated per frame across the retained history window, or 0 when empty.\n",
              "file": "pkg/debug/gc.go",
              "line": 227
            },
            {
              "name": "AllocsPerFrame",
              "anchor": "GCMonitor.AllocsPerFrame",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) AllocsPerFrame() float64",
              "doc": "AllocsPerFrame returns the average number of heap objects allocated per frame across the retained history window, or 0 when empty.\n",
              "file": "pkg/debug/gc.go",
              "line": 219
            },
            {
              "name": "At",
              "anchor": "GCMonitor.At",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) At(i int) GCFrameSample",
              "doc": "At returns sample i in chronological order (0 is oldest, Len()-1 is newest).\n",
              "file": "pkg/debug/gc.go",
              "line": 278
            },
            {
              "name": "HeapObjectsBytes",
              "anchor": "GCMonitor.HeapObjectsBytes",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) HeapObjectsBytes() uint64",
              "doc": "HeapObjectsBytes returns the most recently sampled /memory/classes/heap/objects:bytes value.\n",
              "file": "pkg/debug/gc.go",
              "line": 211
            },
            {
              "name": "LastPause",
              "anchor": "GCMonitor.LastPause",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) LastPause() time.Duration",
              "doc": "LastPause returns the most recent non-zero GC pause observed by this monitor.\n",
              "file": "pkg/debug/gc.go",
              "line": 195
            },
            {
              "name": "Latest",
              "anchor": "GCMonitor.Latest",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) Latest() GCFrameSample",
              "doc": "Latest returns the most recently sampled GCFrameSample, or the zero value when empty.\n",
              "file": "pkg/debug/gc.go",
              "line": 288
            },
            {
              "name": "Len",
              "anchor": "GCMonitor.Len",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) Len() int",
              "doc": "Len returns how many frame samples are currently retained in history.\n",
              "file": "pkg/debug/gc.go",
              "line": 270
            },
            {
              "name": "MaxPause",
              "anchor": "GCMonitor.MaxPause",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) MaxPause() time.Duration",
              "doc": "MaxPause returns the longest per-frame GC pause observed by this monitor.\n",
              "file": "pkg/debug/gc.go",
              "line": 187
            },
            {
              "name": "RecentHitches",
              "anchor": "GCMonitor.RecentHitches",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) RecentHitches() int",
              "doc": "RecentHitches returns how many frames in the retained history ring buffer experienced a GC pause.\n",
              "file": "pkg/debug/gc.go",
              "line": 203
            },
            {
              "name": "Reset",
              "anchor": "GCMonitor.Reset",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) Reset()",
              "doc": "Reset clears retained GC frame history, hitch counts and peak pause timings, and re-baselines runtime/metrics counters to the current point in time.\n",
              "file": "pkg/debug/gc.go",
              "line": 235
            },
            {
              "name": "SampleFrame",
              "anchor": "GCMonitor.SampleFrame",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) SampleFrame(frameDur time.Duration) GCFrameSample",
              "doc": "SampleFrame reads runtime/metrics for the completed frame and returns its GCFrameSample without heap allocations in steady state.\n",
              "file": "pkg/debug/gc.go",
              "line": 71
            },
            {
              "name": "TotalCycles",
              "anchor": "GCMonitor.TotalCycles",
              "recv": "*GCMonitor",
              "decl": "func (m *GCMonitor) TotalCycles() uint64",
              "doc": "TotalCycles returns the cumulative GC cycle count reported by /gc/cycles/total:gc-cycles.\n",
              "file": "pkg/debug/gc.go",
              "line": 179
            }
          ]
        },
        {
          "name": "GroupMemory",
          "anchor": "GroupMemory",
          "decl": "type GroupMemory struct {\n\t// Group is the asset group name, such as \"level1\" or \"ui\".\n\tGroup string\n\t// TotalBytes is the total tracked bytes across all assets in the group.\n\tTotalBytes int64\n\t// Budget is the configured byte budget for the group, or 0 when unbounded.\n\tBudget int64\n\t// OverBudget reports whether Budget > 0 and TotalBytes > Budget.\n\tOverBudget bool\n\t// Count is the number of tracked assets currently in the group.\n\tCount int\n\t// ByKind maps each AssetKind present in the group to its tracked byte total.\n\tByKind map[AssetKind]int64\n}",
          "doc": "GroupMemory reports the tracked memory for one asset group.\n",
          "file": "pkg/debug/types.go",
          "line": 178,
          "members": [
            {
              "name": "Group",
              "anchor": "GroupMemory.Group",
              "kind": "field",
              "doc": "Group is the asset group name, such as \"level1\" or \"ui\"."
            },
            {
              "name": "TotalBytes",
              "anchor": "GroupMemory.TotalBytes",
              "kind": "field",
              "doc": "TotalBytes is the total tracked bytes across all assets in the group."
            },
            {
              "name": "Budget",
              "anchor": "GroupMemory.Budget",
              "kind": "field",
              "doc": "Budget is the configured byte budget for the group, or 0 when unbounded."
            },
            {
              "name": "OverBudget",
              "anchor": "GroupMemory.OverBudget",
              "kind": "field",
              "doc": "OverBudget reports whether Budget > 0 and TotalBytes > Budget."
            },
            {
              "name": "Count",
              "anchor": "GroupMemory.Count",
              "kind": "field",
              "doc": "Count is the number of tracked assets currently in the group."
            },
            {
              "name": "ByKind",
              "anchor": "GroupMemory.ByKind",
              "kind": "field",
              "doc": "ByKind maps each AssetKind present in the group to its tracked byte total."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayerSnapshot",
          "anchor": "LayerSnapshot",
          "decl": "type LayerSnapshot struct {\n\t// Name identifies the layer, such as \"terrain\", \"actors\" or \"hud\".\n\tName string\n\t// Space is the coordinate space the layer draws in, such as \"world\" or \"screen\".\n\tSpace string\n\t// Objects is the number of live objects on the layer.\n\tObjects int\n}",
          "doc": "LayerSnapshot describes one layer within a SceneSnapshot.\n",
          "file": "pkg/debug/types.go",
          "line": 80,
          "members": [
            {
              "name": "Name",
              "anchor": "LayerSnapshot.Name",
              "kind": "field",
              "doc": "Name identifies the layer, such as \"terrain\", \"actors\" or \"hud\"."
            },
            {
              "name": "Space",
              "anchor": "LayerSnapshot.Space",
              "kind": "field",
              "doc": "Space is the coordinate space the layer draws in, such as \"world\" or \"screen\"."
            },
            {
              "name": "Objects",
              "anchor": "LayerSnapshot.Objects",
              "kind": "field",
              "doc": "Objects is the number of live objects on the layer."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MemoryTracker",
          "anchor": "MemoryTracker",
          "decl": "type MemoryTracker struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MemoryTracker accounts for decoded asset memory grouped by owner (such as level or scene) and validates per-group and total byte budgets.\n",
          "file": "pkg/debug/memory.go",
          "line": 18,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMemoryTracker",
              "anchor": "NewMemoryTracker",
              "decl": "func NewMemoryTracker() *MemoryTracker",
              "doc": "NewMemoryTracker returns an empty asset MemoryTracker.\n",
              "file": "pkg/debug/memory.go",
              "line": 27
            }
          ],
          "methods": [
            {
              "name": "CheckAllBudgets",
              "anchor": "MemoryTracker.CheckAllBudgets",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) CheckAllBudgets() error",
              "doc": "CheckAllBudgets validates the total budget and every configured per-group budget, returning a joined error if any are exceeded.\n",
              "file": "pkg/debug/memory.go",
              "line": 219
            },
            {
              "name": "CheckBudget",
              "anchor": "MemoryTracker.CheckBudget",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) CheckBudget(group string) error",
              "doc": "CheckBudget returns an error if group has a configured budget and its tracked bytes exceed that budget.\n",
              "file": "pkg/debug/memory.go",
              "line": 200
            },
            {
              "name": "GroupBytes",
              "anchor": "MemoryTracker.GroupBytes",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) GroupBytes(group string) int64",
              "doc": "GroupBytes returns the total tracked bytes currently held by group.\n",
              "file": "pkg/debug/memory.go",
              "line": 132
            },
            {
              "name": "Groups",
              "anchor": "MemoryTracker.Groups",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) Groups() []GroupMemory",
              "doc": "Groups returns a sorted snapshot of all groups with tracked assets and their per-kind byte breakdowns.\n",
              "file": "pkg/debug/memory.go",
              "line": 161
            },
            {
              "name": "ReleaseGroup",
              "anchor": "MemoryTracker.ReleaseGroup",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) ReleaseGroup(group string)",
              "doc": "ReleaseGroup drops all tracked assets and bytes belonging to group. Any configured budget for group is retained.\n",
              "file": "pkg/debug/memory.go",
              "line": 75
            },
            {
              "name": "SetBudget",
              "anchor": "MemoryTracker.SetBudget",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) SetBudget(group string, maxBytes int64)",
              "doc": "SetBudget sets the maximum allowed bytes for group. Passing maxBytes <= 0 removes the budget for group.\n",
              "file": "pkg/debug/memory.go",
              "line": 93
            },
            {
              "name": "SetTotalBudget",
              "anchor": "MemoryTracker.SetTotalBudget",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) SetTotalBudget(maxBytes int64)",
              "doc": "SetTotalBudget sets the maximum allowed total bytes across all groups. Passing maxBytes <= 0 removes the total budget.\n",
              "file": "pkg/debug/memory.go",
              "line": 107
            },
            {
              "name": "TotalBudget",
              "anchor": "MemoryTracker.TotalBudget",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) TotalBudget() int64",
              "doc": "TotalBudget returns the configured total byte budget, or 0 when none is set.\n",
              "file": "pkg/debug/memory.go",
              "line": 121
            },
            {
              "name": "TotalBytes",
              "anchor": "MemoryTracker.TotalBytes",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) TotalBytes() int64",
              "doc": "TotalBytes returns the total tracked bytes across all asset groups.\n",
              "file": "pkg/debug/memory.go",
              "line": 150
            },
            {
              "name": "Track",
              "anchor": "MemoryTracker.Track",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) Track(group, name string, kind AssetKind, bytes int64)",
              "doc": "Track records or updates an asset named name in group with its AssetKind and size in bytes. Negative byte counts are clamped to 0.\n",
              "file": "pkg/debug/memory.go",
              "line": 35
            },
            {
              "name": "Untrack",
              "anchor": "MemoryTracker.Untrack",
              "recv": "*MemoryTracker",
              "decl": "func (m *MemoryTracker) Untrack(group, name string)",
              "doc": "Untrack removes a previously tracked asset from group.\n",
              "file": "pkg/debug/memory.go",
              "line": 57
            }
          ]
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// ToggleKey is the key binding that shows and hides the overlay; \"F3\" when empty.\n\tToggleKey string\n\t// Visible sets whether the overlay starts shown.\n\tVisible bool\n\t// TargetFPS is the reference frame rate drawn on the frame-time graph; 60 when 0 or less.\n\tTargetFPS float64\n\t// LineWidth is the base stroke width, in screen points, for collision and bounds wireframes; 1 when 0 or less.\n\tLineWidth float32\n\t// Scenes, when set, supplies the active scenes and layers shown by the scene inspector. If it reads NSGo signals, the inspector updates as those signals change; otherwise it refreshes on recorded frames and RefreshScenes.\n\tScenes func() []SceneSnapshot\n\t// Now is the clock WrapLoop uses to measure Update and Draw durations; time.Now when nil.\n\tNow func() time.Time\n\t// Console, when set, renders an interactive dev console alongside the overlay.\n\tConsole *Console\n\t// Profiler, when set, displays top named timing scopes inside the overlay.\n\tProfiler *Profiler\n\t// Memory, when set, displays asset memory usage and budget status inside the overlay.\n\tMemory *MemoryTracker\n\t// GC, when set, samples GC pauses each frame and highlights GC-hitched frames in the overlay.\n\tGC *GCMonitor\n\t// DrawStats, when set, supplies live per-frame draw statistics displayed in the overlay and exposed to MCP performance readouts.\n\tDrawStats func() DrawStats\n\t// AI, when set, supplies the chosen agent's behavior tree or state machine snapshot shown in the AI inspector panel.\n\t// If it reads NSGo signals, the panel updates reactively; otherwise it refreshes on recorded frames and RefreshAI.\n\tAI func() AISnapshot\n}",
          "doc": "Options configures an Overlay. Every field is optional and takes a sensible default when zero.\n",
          "file": "pkg/debug/types.go",
          "line": 15,
          "members": [
            {
              "name": "ToggleKey",
              "anchor": "Options.ToggleKey",
              "kind": "field",
              "doc": "ToggleKey is the key binding that shows and hides the overlay; \"F3\" when empty."
            },
            {
              "name": "Visible",
              "anchor": "Options.Visible",
              "kind": "field",
              "doc": "Visible sets whether the overlay starts shown."
            },
            {
              "name": "TargetFPS",
              "anchor": "Options.TargetFPS",
              "kind": "field",
              "doc": "TargetFPS is the reference frame rate drawn on the frame-time graph; 60 when 0 or less."
            },
            {
              "name": "LineWidth",
              "anchor": "Options.LineWidth",
              "kind": "field",
              "doc": "LineWidth is the base stroke width, in screen points, for collision and bounds wireframes; 1 when 0 or less."
            },
            {
              "name": "Scenes",
              "anchor": "Options.Scenes",
              "kind": "field",
              "doc": "Scenes, when set, supplies the active scenes and layers shown by the scene inspector. If it reads NSGo signals, the inspector updates as those signals change; otherwise it refreshes on recorded frames and RefreshScenes."
            },
            {
              "name": "Now",
              "anchor": "Options.Now",
              "kind": "field",
              "doc": "Now is the clock WrapLoop uses to measure Update and Draw durations; time.Now when nil."
            },
            {
              "name": "Console",
              "anchor": "Options.Console",
              "kind": "field",
              "doc": "Console, when set, renders an interactive dev console alongside the overlay."
            },
            {
              "name": "Profiler",
              "anchor": "Options.Profiler",
              "kind": "field",
              "doc": "Profiler, when set, displays top named timing scopes inside the overlay."
            },
            {
              "name": "Memory",
              "anchor": "Options.Memory",
              "kind": "field",
              "doc": "Memory, when set, displays asset memory usage and budget status inside the overlay."
            },
            {
              "name": "GC",
              "anchor": "Options.GC",
              "kind": "field",
              "doc": "GC, when set, samples GC pauses each frame and highlights GC-hitched frames in the overlay."
            },
            {
              "name": "DrawStats",
              "anchor": "Options.DrawStats",
              "kind": "field",
              "doc": "DrawStats, when set, supplies live per-frame draw statistics displayed in the overlay and exposed to MCP performance readouts."
            },
            {
              "name": "AI",
              "anchor": "Options.AI",
              "kind": "field",
              "doc": "AI, when set, supplies the chosen agent's behavior tree or state machine snapshot shown in the AI inspector panel.\nIf it reads NSGo signals, the panel updates reactively; otherwise it refreshes on recorded frames and RefreshAI."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Overlay",
          "anchor": "Overlay",
          "decl": "type Overlay struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Overlay coordinates the development debug HUD: a key-toggled panel with a frame-time graph and scene inspector, plus world-space collision and sprite-bounds wireframes.\n",
          "file": "pkg/debug/overlay.go",
          "line": 20,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(opts Options) *Overlay",
              "doc": "New returns a configured debug overlay.\n",
              "file": "pkg/debug/overlay.go",
              "line": 46
            }
          ],
          "methods": [
            {
              "name": "AISnapshot",
              "anchor": "Overlay.AISnapshot",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) AISnapshot() AISnapshot",
              "doc": "AISnapshot returns the currently displayed AI snapshot from Options.AI if configured,\nor the most recent SetAI value.\n",
              "file": "pkg/debug/ai.go",
              "line": 113
            },
            {
              "name": "Attach",
              "anchor": "Overlay.Attach",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) Attach(cx *core.Scope)",
              "doc": "Attach wires the overlay's reactive signals and toggle key onto cx. Calling Attach more than once on the same scope is a no-op; View calls Attach automatically.\n",
              "file": "pkg/debug/overlay.go",
              "line": 55
            },
            {
              "name": "ClearAI",
              "anchor": "Overlay.ClearAI",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) ClearAI()",
              "doc": "ClearAI clears the pushed AI snapshot and hides the AI inspector panel when Options.AI is nil.\n",
              "file": "pkg/debug/ai.go",
              "line": 85
            },
            {
              "name": "Console",
              "anchor": "Overlay.Console",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) Console() *Console",
              "doc": "Console returns the Console attached to the overlay via Options.Console, or nil.\n",
              "file": "pkg/debug/overlay.go",
              "line": 216
            },
            {
              "name": "DrawBatchBounds",
              "anchor": "Overlay.DrawBatchBounds",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawBatchBounds(d *core.Drawing, batch *sprite.Batch, col core.Color)",
              "doc": "DrawBatchBounds draws the untrimmed bounding wireframes of all sprites in batch under d's active transform while the overlay is visible.\n",
              "file": "pkg/debug/overlay.go",
              "line": 357
            },
            {
              "name": "DrawBox",
              "anchor": "Overlay.DrawBox",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawBox(d *core.Drawing, b core.Bounds, col core.Color)",
              "doc": "DrawBox draws a wireframe box under d's active transform while the overlay is visible.\n",
              "file": "pkg/debug/overlay.go",
              "line": 333
            },
            {
              "name": "DrawCircle",
              "anchor": "Overlay.DrawCircle",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawCircle(d *core.Drawing, x, y, r float32, col core.Color)",
              "doc": "DrawCircle draws a wireframe circle under d's active transform while the overlay is visible.\n",
              "file": "pkg/debug/overlay.go",
              "line": 341
            },
            {
              "name": "DrawFighterBoxes",
              "anchor": "Overlay.DrawFighterBoxes",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawFighterBoxes(d *core.Drawing, f *framedata.Fighter, hurt, hit core.Color)",
              "doc": "DrawFighterBoxes draws f's active hurtboxes and hitboxes as wireframes under d's active transform while the overlay is visible.\n",
              "file": "pkg/debug/framedata.go",
              "line": 31
            },
            {
              "name": "DrawPath",
              "anchor": "Overlay.DrawPath",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawPath(d *core.Drawing, path []core.Point, col core.Color)",
              "doc": "DrawPath draws a waypoint polyline under d's active transform while the overlay is visible.\n",
              "file": "pkg/debug/ai.go",
              "line": 509
            },
            {
              "name": "DrawShapes",
              "anchor": "Overlay.DrawShapes",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawShapes(d *core.Drawing, fn func(*ShapeOverlay))",
              "doc": "DrawShapes calls fn with the overlay's ShapeOverlay only while the overlay is visible. When called inside a core.Canvas.Draw callback, toggling the overlay automatically redraws the canvas.\n",
              "file": "pkg/debug/overlay.go",
              "line": 325
            },
            {
              "name": "DrawSpriteBounds",
              "anchor": "Overlay.DrawSpriteBounds",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawSpriteBounds(d *core.Drawing, s *sprite.Sprite, col core.Color)",
              "doc": "DrawSpriteBounds draws the untrimmed bounding wireframe of s under d's active transform while the overlay is visible.\n",
              "file": "pkg/debug/overlay.go",
              "line": 349
            },
            {
              "name": "DrawStats",
              "anchor": "Overlay.DrawStats",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawStats() DrawStats",
              "doc": "DrawStats returns the current per-frame draw statistics from Options.DrawStats if configured, or the most recent SetDrawStats value.\n",
              "file": "pkg/debug/overlay.go",
              "line": 263
            },
            {
              "name": "DrawSteering",
              "anchor": "Overlay.DrawSteering",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawSteering(d *core.Drawing, info SteeringDebug)",
              "doc": "DrawSteering draws steering agent guides (velocity, desired velocity, target, path) under d's active transform while the overlay is visible.\n",
              "file": "pkg/debug/ai.go",
              "line": 525
            },
            {
              "name": "DrawTarget",
              "anchor": "Overlay.DrawTarget",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawTarget(d *core.Drawing, target core.Point, col core.Color)",
              "doc": "DrawTarget draws a target reticle under d's active transform while the overlay is visible.\n",
              "file": "pkg/debug/ai.go",
              "line": 517
            },
            {
              "name": "DrawVector",
              "anchor": "Overlay.DrawVector",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) DrawVector(d *core.Drawing, origin, vec core.Point, col core.Color)",
              "doc": "DrawVector draws a directional vector arrow under d's active transform while the overlay is visible.\n",
              "file": "pkg/debug/ai.go",
              "line": 501
            },
            {
              "name": "GC",
              "anchor": "Overlay.GC",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) GC() *GCMonitor",
              "doc": "GC returns the GCMonitor attached to the overlay via Options.GC, or nil.\n",
              "file": "pkg/debug/overlay.go",
              "line": 240
            },
            {
              "name": "HasDrawStats",
              "anchor": "Overlay.HasDrawStats",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) HasDrawStats() bool",
              "doc": "HasDrawStats reports whether draw statistics have been configured via Options.DrawStats or pushed via SetDrawStats.\n",
              "file": "pkg/debug/overlay.go",
              "line": 274
            },
            {
              "name": "Memory",
              "anchor": "Overlay.Memory",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) Memory() *MemoryTracker",
              "doc": "Memory returns the MemoryTracker attached to the overlay via Options.Memory, or nil.\n",
              "file": "pkg/debug/overlay.go",
              "line": 232
            },
            {
              "name": "NoteFrameCause",
              "anchor": "Overlay.NoteFrameCause",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) NoteFrameCause(cause string)",
              "doc": "NoteFrameCause attaches a short explanation (for example \"first use of torch_glow compiled its shader\") to the next frame recorded by RecordFrame. Calling it with an empty string is a no-op; calling it again before RecordFrame replaces the pending cause.\n",
              "file": "pkg/debug/overlay.go",
              "line": 118
            },
            {
              "name": "Profiler",
              "anchor": "Overlay.Profiler",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) Profiler() *Profiler",
              "doc": "Profiler returns the Profiler attached to the overlay via Options.Profiler, or nil.\n",
              "file": "pkg/debug/overlay.go",
              "line": 224
            },
            {
              "name": "RecordFrame",
              "anchor": "Overlay.RecordFrame",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) RecordFrame(total, update, draw time.Duration)",
              "doc": "RecordFrame records one frame's total, update and draw durations into the ring buffer, samples the attached GCMonitor (if any), and refreshes the visible overlay graph.\n",
              "file": "pkg/debug/overlay.go",
              "line": 126
            },
            {
              "name": "RefreshAI",
              "anchor": "Overlay.RefreshAI",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) RefreshAI()",
              "doc": "RefreshAI tells the AI inspector panel to re-read Options.AI immediately.\n",
              "file": "pkg/debug/ai.go",
              "line": 98
            },
            {
              "name": "RefreshScenes",
              "anchor": "Overlay.RefreshScenes",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) RefreshScenes()",
              "doc": "RefreshScenes tells the scene inspector to re-read Options.Scenes immediately.\n",
              "file": "pkg/debug/overlay.go",
              "line": 311
            },
            {
              "name": "ResetStats",
              "anchor": "Overlay.ResetStats",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) ResetStats()",
              "doc": "ResetStats clears the overlay's recorded frame timings and pushed draw statistics and refreshes the visible overlay.\n",
              "file": "pkg/debug/overlay.go",
              "line": 282
            },
            {
              "name": "SetAI",
              "anchor": "Overlay.SetAI",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) SetAI(snap AISnapshot)",
              "doc": "SetAI updates the AI inspector panel's pushed snapshot and immediately refreshes the panel.\nIt is used when Options.AI is nil.\n",
              "file": "pkg/debug/ai.go",
              "line": 72
            },
            {
              "name": "SetDrawStats",
              "anchor": "Overlay.SetDrawStats",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) SetDrawStats(s DrawStats)",
              "doc": "SetDrawStats updates the overlay's pushed per-frame draw statistics and refreshes the visible overlay. It is used when Options.DrawStats is nil.\n",
              "file": "pkg/debug/overlay.go",
              "line": 248
            },
            {
              "name": "SetScenes",
              "anchor": "Overlay.SetScenes",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) SetScenes(scenes []SceneSnapshot)",
              "doc": "SetScenes updates the scene inspector's snapshot list and immediately refreshes the inspector view. It is used when Options.Scenes is nil.\n",
              "file": "pkg/debug/overlay.go",
              "line": 299
            },
            {
              "name": "SetVisible",
              "anchor": "Overlay.SetVisible",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) SetVisible(v bool)",
              "doc": "SetVisible shows or hides the overlay and its world-space wireframes.\n",
              "file": "pkg/debug/overlay.go",
              "line": 93
            },
            {
              "name": "Stats",
              "anchor": "Overlay.Stats",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) Stats() *FrameStats",
              "doc": "Stats returns the overlay's frame-time ring buffer.\n",
              "file": "pkg/debug/overlay.go",
              "line": 208
            },
            {
              "name": "Toggle",
              "anchor": "Overlay.Toggle",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) Toggle()",
              "doc": "Toggle flips the overlay's visibility.\n",
              "file": "pkg/debug/overlay.go",
              "line": 110
            },
            {
              "name": "View",
              "anchor": "Overlay.View",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) View(cx *core.Scope) core.Node",
              "doc": "View attaches the overlay to cx and returns a non-intrusive native NSGo overlay node positioned over the game view.\n",
              "file": "pkg/debug/overlay.go",
              "line": 440
            },
            {
              "name": "Visible",
              "anchor": "Overlay.Visible",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) Visible() bool",
              "doc": "Visible reports whether the overlay is currently shown. Read inside a reactive NSGo view or drawing, it subscribes to visibility toggles.\n",
              "file": "pkg/debug/overlay.go",
              "line": 82
            },
            {
              "name": "WrapLoop",
              "anchor": "Overlay.WrapLoop",
              "recv": "*Overlay",
              "decl": "func (o *Overlay) WrapLoop(l *game.Loop)",
              "doc": "WrapLoop wraps l.Update and l.Draw so every frame automatically times Update and Draw and calls RecordFrame.\n",
              "file": "pkg/debug/overlay.go",
              "line": 163
            }
          ]
        },
        {
          "name": "Profiler",
          "anchor": "Profiler",
          "decl": "type Profiler struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Profiler records named timing scopes per frame with zero steady-state allocations, produces top-scope summaries for Overlay, emits optional runtime/trace regions, and exports Chrome/Perfetto Trace Event Format JSON.\n",
          "file": "pkg/debug/profiler.go",
          "line": 58,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewProfiler",
              "anchor": "NewProfiler",
              "decl": "func NewProfiler(maxRecordedFrames int) *Profiler",
              "doc": "NewProfiler returns a Profiler capable of recording up to maxRecordedFrames frames (defaulting to 300 when <= 0).\n",
              "file": "pkg/debug/profiler.go",
              "line": 81
            }
          ],
          "methods": [
            {
              "name": "Begin",
              "anchor": "Profiler.Begin",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) Begin(name string) ScopeToken",
              "doc": "Begin opens a named timing scope and returns a ScopeToken to pass to End.\n",
              "file": "pkg/debug/profiler.go",
              "line": 174
            },
            {
              "name": "BeginFrame",
              "anchor": "Profiler.BeginFrame",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) BeginFrame()",
              "doc": "BeginFrame resets per-frame scope accumulators for the next frame.\n",
              "file": "pkg/debug/profiler.go",
              "line": 130
            },
            {
              "name": "End",
              "anchor": "Profiler.End",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) End(tok ScopeToken)",
              "doc": "End closes a timing scope started by Begin or Scope.\n",
              "file": "pkg/debug/profiler.go",
              "line": 217
            },
            {
              "name": "EndFrame",
              "anchor": "Profiler.EndFrame",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) EndFrame()",
              "doc": "EndFrame finalizes the current frame's scope timings and advances active recording if enabled.\n",
              "file": "pkg/debug/profiler.go",
              "line": 146
            },
            {
              "name": "RecordedFrames",
              "anchor": "Profiler.RecordedFrames",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) RecordedFrames() int",
              "doc": "RecordedFrames returns the number of completed frames captured in the current or most recent recording.\n",
              "file": "pkg/debug/profiler.go",
              "line": 298
            },
            {
              "name": "Recording",
              "anchor": "Profiler.Recording",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) Recording() bool",
              "doc": "Recording reports whether trace recording is currently active.\n",
              "file": "pkg/debug/profiler.go",
              "line": 287
            },
            {
              "name": "Reset",
              "anchor": "Profiler.Reset",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) Reset()",
              "doc": "Reset clears every scope's accumulated timings and frame history, so TopScopes reports nothing until scopes run again. Scope names keep their IDs, so a ScopeToken opened before Reset and ended after it is still charged to its own scope, and an active or finished trace recording (StartRecording, WriteChromeTrace) is left as it is.\n",
              "file": "pkg/debug/profiler.go",
              "line": 309
            },
            {
              "name": "Scope",
              "anchor": "Profiler.Scope",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) Scope(name string) ScopeToken",
              "doc": "Scope opens a named timing scope for use with defer: `defer p.Scope(\"physics\").End()`.\n",
              "file": "pkg/debug/profiler.go",
              "line": 212
            },
            {
              "name": "SetNow",
              "anchor": "Profiler.SetNow",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) SetNow(fn func() time.Time)",
              "doc": "SetNow overrides the clock used to timestamp scopes, primarily for deterministic tests. Passing nil restores time.Now.\n",
              "file": "pkg/debug/profiler.go",
              "line": 95
            },
            {
              "name": "SetTraceContext",
              "anchor": "Profiler.SetTraceContext",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) SetTraceContext(ctx context.Context)",
              "doc": "SetTraceContext sets the context passed to runtime/trace.StartRegion when Go execution tracing is active.\n",
              "file": "pkg/debug/profiler.go",
              "line": 110
            },
            {
              "name": "StartRecording",
              "anchor": "Profiler.StartRecording",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) StartRecording(frames int)",
              "doc": "StartRecording begins recording scope events for up to frames frames (capped by maxRecordedFrames).\n",
              "file": "pkg/debug/profiler.go",
              "line": 255
            },
            {
              "name": "StopRecording",
              "anchor": "Profiler.StopRecording",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) StopRecording()",
              "doc": "StopRecording ends an active trace recording early, keeping already recorded frames.\n",
              "file": "pkg/debug/profiler.go",
              "line": 277
            },
            {
              "name": "TopScopes",
              "anchor": "Profiler.TopScopes",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) TopScopes(limit int) []ScopeSummary",
              "doc": "TopScopes returns up to limit scope summaries sorted descending by per-frame Total duration (then Avg, then Name). If limit <= 0, all scopes are returned.\n",
              "file": "pkg/debug/profiler.go",
              "line": 321
            },
            {
              "name": "WriteChromeTrace",
              "anchor": "Profiler.WriteChromeTrace",
              "recv": "*Profiler",
              "decl": "func (p *Profiler) WriteChromeTrace(w io.Writer) error",
              "doc": "WriteChromeTrace writes recorded scope events in Chrome/Perfetto Trace Event Format JSON to w. Each distinct scope name is assigned its own tid track and thread_name metadata event so Perfetto displays one track per scope.\n",
              "file": "pkg/debug/profiler.go",
              "line": 405
            }
          ]
        },
        {
          "name": "SceneSnapshot",
          "anchor": "SceneSnapshot",
          "decl": "type SceneSnapshot struct {\n\t// Name identifies the scene, such as \"title\" or \"world\".\n\tName string\n\t// Layers are the scene's layers in draw order.\n\tLayers []LayerSnapshot\n}",
          "doc": "SceneSnapshot describes one active scene for the scene inspector.\n",
          "file": "pkg/debug/types.go",
          "line": 72,
          "members": [
            {
              "name": "Name",
              "anchor": "SceneSnapshot.Name",
              "kind": "field",
              "doc": "Name identifies the scene, such as \"title\" or \"world\"."
            },
            {
              "name": "Layers",
              "anchor": "SceneSnapshot.Layers",
              "kind": "field",
              "doc": "Layers are the scene's layers in draw order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScopeSummary",
          "anchor": "ScopeSummary",
          "decl": "type ScopeSummary struct {\n\t// Name is the scope identifier passed to Begin or Scope.\n\tName string\n\t// Total is the total duration spent in this scope during the most recent frame.\n\tTotal time.Duration\n\t// Avg is the rolling average per-frame duration across recent frames.\n\tAvg time.Duration\n\t// Max is the longest per-frame duration observed across recent frames.\n\tMax time.Duration\n\t// Calls is the number of times this scope ran during the most recent frame.\n\tCalls int\n}",
          "doc": "ScopeSummary summarizes a named timing scope's cost for overlay display.\n",
          "file": "pkg/debug/types.go",
          "line": 136,
          "members": [
            {
              "name": "Name",
              "anchor": "ScopeSummary.Name",
              "kind": "field",
              "doc": "Name is the scope identifier passed to Begin or Scope."
            },
            {
              "name": "Total",
              "anchor": "ScopeSummary.Total",
              "kind": "field",
              "doc": "Total is the total duration spent in this scope during the most recent frame."
            },
            {
              "name": "Avg",
              "anchor": "ScopeSummary.Avg",
              "kind": "field",
              "doc": "Avg is the rolling average per-frame duration across recent frames."
            },
            {
              "name": "Max",
              "anchor": "ScopeSummary.Max",
              "kind": "field",
              "doc": "Max is the longest per-frame duration observed across recent frames."
            },
            {
              "name": "Calls",
              "anchor": "ScopeSummary.Calls",
              "kind": "field",
              "doc": "Calls is the number of times this scope ran during the most recent frame."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScopeToken",
          "anchor": "ScopeToken",
          "decl": "type ScopeToken struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ScopeToken is returned by Profiler.Begin or Profiler.Scope and passed to End to close a timing scope without heap allocations.\n",
          "file": "pkg/debug/profiler.go",
          "line": 19,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "End",
              "anchor": "ScopeToken.End",
              "recv": "ScopeToken",
              "decl": "func (t ScopeToken) End()",
              "doc": "End closes the timing scope associated with t. It is safe to call on a zero ScopeToken.\n",
              "file": "pkg/debug/profiler.go",
              "line": 29
            }
          ]
        },
        {
          "name": "ShapeOverlay",
          "anchor": "ShapeOverlay",
          "decl": "type ShapeOverlay struct {\n\t// LineWidth is the desired stroke width in screen points; 1 when 0 or less.\n\tLineWidth float32\n}",
          "doc": "ShapeOverlay draws collision shapes and sprite bounds as wireframes into a core.Drawing under whatever camera or viewport transform is already active on it.\n\nStroke widths are automatically divided by the drawing's active scale so wireframes keep a steady thickness at any camera zoom.\n",
          "file": "pkg/debug/shapes.go",
          "line": 15,
          "members": [
            {
              "name": "LineWidth",
              "anchor": "ShapeOverlay.LineWidth",
              "kind": "field",
              "doc": "LineWidth is the desired stroke width in screen points; 1 when 0 or less."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DrawBatchBounds",
              "anchor": "ShapeOverlay.DrawBatchBounds",
              "recv": "*ShapeOverlay",
              "decl": "func (s *ShapeOverlay) DrawBatchBounds(d *core.Drawing, batch *sprite.Batch, col core.Color)",
              "doc": "DrawBatchBounds strokes the untrimmed bounding box of every visible sprite in batch in col under d's active transform.\n",
              "file": "pkg/debug/shapes.go",
              "line": 57
            },
            {
              "name": "DrawBox",
              "anchor": "ShapeOverlay.DrawBox",
              "recv": "*ShapeOverlay",
              "decl": "func (s *ShapeOverlay) DrawBox(d *core.Drawing, b core.Bounds, col core.Color)",
              "doc": "DrawBox strokes the axis-aligned rectangle b in col under d's active transform, leaving d's state unchanged.\n",
              "file": "pkg/debug/shapes.go",
              "line": 21
            },
            {
              "name": "DrawCircle",
              "anchor": "ShapeOverlay.DrawCircle",
              "recv": "*ShapeOverlay",
              "decl": "func (s *ShapeOverlay) DrawCircle(d *core.Drawing, x, y, r float32, col core.Color)",
              "doc": "DrawCircle strokes a circle centered at (x, y) with radius r in col under d's active transform, leaving d's state unchanged.\n",
              "file": "pkg/debug/shapes.go",
              "line": 34
            },
            {
              "name": "DrawFighterBoxes",
              "anchor": "ShapeOverlay.DrawFighterBoxes",
              "recv": "*ShapeOverlay",
              "decl": "func (s *ShapeOverlay) DrawFighterBoxes(d *core.Drawing, f *framedata.Fighter, hurt, hit core.Color)",
              "doc": "DrawFighterBoxes strokes the boxes f's current move has active on its current frame under d's active transform: hurtboxes in hurt, then hitboxes in hit on top, mirrored as the fighter faces.\n",
              "file": "pkg/debug/framedata.go",
              "line": 11
            },
            {
              "name": "DrawPath",
              "anchor": "ShapeOverlay.DrawPath",
              "recv": "*ShapeOverlay",
              "decl": "func (s *ShapeOverlay) DrawPath(d *core.Drawing, path []core.Point, col core.Color)",
              "doc": "DrawPath strokes a waypoint polyline and small waypoint markers in col under d's active transform.\n",
              "file": "pkg/debug/ai.go",
              "line": 359
            },
            {
              "name": "DrawSpriteBounds",
              "anchor": "ShapeOverlay.DrawSpriteBounds",
              "recv": "*ShapeOverlay",
              "decl": "func (s *ShapeOverlay) DrawSpriteBounds(d *core.Drawing, sp *sprite.Sprite, col core.Color)",
              "doc": "DrawSpriteBounds strokes the untrimmed bounding box of sp in col, respecting its origin, scale, flip and rotation, under d's active transform.\n",
              "file": "pkg/debug/shapes.go",
              "line": 49
            },
            {
              "name": "DrawSteering",
              "anchor": "ShapeOverlay.DrawSteering",
              "recv": "*ShapeOverlay",
              "decl": "func (s *ShapeOverlay) DrawSteering(d *core.Drawing, info SteeringDebug)",
              "doc": "DrawSteering draws world-space debug guides for a 2D steering agent under d's active transform:\nits waypoint path, target reticle and sightline, body radius, desired velocity arrow, and current velocity arrow.\n",
              "file": "pkg/debug/ai.go",
              "line": 415
            },
            {
              "name": "DrawTarget",
              "anchor": "ShapeOverlay.DrawTarget",
              "recv": "*ShapeOverlay",
              "decl": "func (s *ShapeOverlay) DrawTarget(d *core.Drawing, target core.Point, col core.Color)",
              "doc": "DrawTarget strokes a crosshair reticle at target in col under d's active transform.\n",
              "file": "pkg/debug/ai.go",
              "line": 387
            },
            {
              "name": "DrawVector",
              "anchor": "ShapeOverlay.DrawVector",
              "recv": "*ShapeOverlay",
              "decl": "func (s *ShapeOverlay) DrawVector(d *core.Drawing, origin, vec core.Point, col core.Color)",
              "doc": "DrawVector strokes a directional arrow from origin to origin+vec in col under d's active transform,\nkeeping line width and arrowhead size steady in screen points across camera zooms.\n",
              "file": "pkg/debug/ai.go",
              "line": 320
            }
          ]
        },
        {
          "name": "SteeringColors",
          "anchor": "SteeringColors",
          "decl": "type SteeringColors struct {\n\t// Agent colors the agent's collision-radius wireframe (default: 0xE2E8F0).\n\tAgent core.Color\n\t// Velocity colors the current velocity vector arrow (default: 0x22C55E).\n\tVelocity core.Color\n\t// Desired colors the desired velocity vector arrow (default: 0x38BDF8).\n\tDesired core.Color\n\t// Target colors the target reticle and sightline (default: 0xF59E0B).\n\tTarget core.Color\n\t// Path colors the waypoint polyline and waypoint markers (default: 0xA78BFA).\n\tPath core.Color\n}",
          "doc": "SteeringColors customizes the colors used by DrawSteering. Zero fields take high-contrast defaults.\n",
          "file": "pkg/debug/types.go",
          "line": 239,
          "members": [
            {
              "name": "Agent",
              "anchor": "SteeringColors.Agent",
              "kind": "field",
              "doc": "Agent colors the agent's collision-radius wireframe (default: 0xE2E8F0)."
            },
            {
              "name": "Velocity",
              "anchor": "SteeringColors.Velocity",
              "kind": "field",
              "doc": "Velocity colors the current velocity vector arrow (default: 0x22C55E)."
            },
            {
              "name": "Desired",
              "anchor": "SteeringColors.Desired",
              "kind": "field",
              "doc": "Desired colors the desired velocity vector arrow (default: 0x38BDF8)."
            },
            {
              "name": "Target",
              "anchor": "SteeringColors.Target",
              "kind": "field",
              "doc": "Target colors the target reticle and sightline (default: 0xF59E0B)."
            },
            {
              "name": "Path",
              "anchor": "SteeringColors.Path",
              "kind": "field",
              "doc": "Path colors the waypoint polyline and waypoint markers (default: 0xA78BFA)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SteeringDebug",
          "anchor": "SteeringDebug",
          "decl": "type SteeringDebug struct {\n\t// Agent is the steering agent whose position, radius, and current velocity are drawn.\n\tAgent ai.Agent\n\t// DesiredVelocity is the agent's desired velocity vector (drawn when non-zero).\n\tDesiredVelocity core.Point\n\t// Target is the agent's current target position (drawn when HasTarget is true).\n\tTarget core.Point\n\t// HasTarget reports whether Target should be drawn, allowing (0, 0) as a valid target.\n\tHasTarget bool\n\t// Path is an optional sequence of world-space waypoints being followed.\n\tPath []core.Point\n\t// WaypointIndex highlights Path[WaypointIndex] as the active waypoint when in [0, len(Path)); set negative to omit active highlighting.\n\tWaypointIndex int\n\t// VelocityScale scales Velocity and DesiredVelocity into world drawing units (1 when 0 or less).\n\tVelocityScale float32\n\t// Colors overrides default colors for any non-zero color field.\n\tColors SteeringColors\n}",
          "doc": "SteeringDebug holds the debug visualization inputs for one 2D steering agent.\n",
          "file": "pkg/debug/types.go",
          "line": 253,
          "members": [
            {
              "name": "Agent",
              "anchor": "SteeringDebug.Agent",
              "kind": "field",
              "doc": "Agent is the steering agent whose position, radius, and current velocity are drawn."
            },
            {
              "name": "DesiredVelocity",
              "anchor": "SteeringDebug.DesiredVelocity",
              "kind": "field",
              "doc": "DesiredVelocity is the agent's desired velocity vector (drawn when non-zero)."
            },
            {
              "name": "Target",
              "anchor": "SteeringDebug.Target",
              "kind": "field",
              "doc": "Target is the agent's current target position (drawn when HasTarget is true)."
            },
            {
              "name": "HasTarget",
              "anchor": "SteeringDebug.HasTarget",
              "kind": "field",
              "doc": "HasTarget reports whether Target should be drawn, allowing (0, 0) as a valid target."
            },
            {
              "name": "Path",
              "anchor": "SteeringDebug.Path",
              "kind": "field",
              "doc": "Path is an optional sequence of world-space waypoints being followed."
            },
            {
              "name": "WaypointIndex",
              "anchor": "SteeringDebug.WaypointIndex",
              "kind": "field",
              "doc": "WaypointIndex highlights Path[WaypointIndex] as the active waypoint when in [0, len(Path)); set negative to omit active highlighting."
            },
            {
              "name": "VelocityScale",
              "anchor": "SteeringDebug.VelocityScale",
              "kind": "field",
              "doc": "VelocityScale scales Velocity and DesiredVelocity into world drawing units (1 when 0 or less)."
            },
            {
              "name": "Colors",
              "anchor": "SteeringDebug.Colors",
              "kind": "field",
              "doc": "Colors overrides default colors for any non-zero color field."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TunableChange",
          "anchor": "TunableChange",
          "decl": "type TunableChange struct {\n\t// Old is the tunable's value before the change.\n\tOld any\n\t// Tunable describes the tunable after the change; its Value is the value stored.\n\tTunable TunableInfo\n\t// Clamped reports whether the requested value lay outside the tunable's range and was stored as the nearest bound.\n\tClamped bool\n}",
          "doc": "TunableChange is the result of Console.SetTunable.\n",
          "file": "pkg/debug/types.go",
          "line": 116,
          "members": [
            {
              "name": "Old",
              "anchor": "TunableChange.Old",
              "kind": "field",
              "doc": "Old is the tunable's value before the change."
            },
            {
              "name": "Tunable",
              "anchor": "TunableChange.Tunable",
              "kind": "field",
              "doc": "Tunable describes the tunable after the change; its Value is the value stored."
            },
            {
              "name": "Clamped",
              "anchor": "TunableChange.Clamped",
              "kind": "field",
              "doc": "Clamped reports whether the requested value lay outside the tunable's range and was stored as the nearest bound."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TunableInfo",
          "anchor": "TunableInfo",
          "decl": "type TunableInfo struct {\n\t// Name is the tunable's registered name.\n\tName string\n\t// Type is \"float\", \"int\", \"bool\" or \"string\".\n\tType string\n\t// Value is the tunable's current value (float64, int, bool or string).\n\tValue any\n\t// Default is the value captured when the tunable was registered.\n\tDefault any\n\t// Min is the inclusive lower bound for numeric tunables (\"float\" or \"int\"), or nil for other types.\n\tMin any\n\t// Max is the inclusive upper bound for numeric tunables (\"float\" or \"int\"), or nil for other types.\n\tMax any\n}",
          "doc": "TunableInfo describes one registered tunable variable on a Console.\n",
          "file": "pkg/debug/types.go",
          "line": 100,
          "members": [
            {
              "name": "Name",
              "anchor": "TunableInfo.Name",
              "kind": "field",
              "doc": "Name is the tunable's registered name."
            },
            {
              "name": "Type",
              "anchor": "TunableInfo.Type",
              "kind": "field",
              "doc": "Type is \"float\", \"int\", \"bool\" or \"string\"."
            },
            {
              "name": "Value",
              "anchor": "TunableInfo.Value",
              "kind": "field",
              "doc": "Value is the tunable's current value (float64, int, bool or string)."
            },
            {
              "name": "Default",
              "anchor": "TunableInfo.Default",
              "kind": "field",
              "doc": "Default is the value captured when the tunable was registered."
            },
            {
              "name": "Min",
              "anchor": "TunableInfo.Min",
              "kind": "field",
              "doc": "Min is the inclusive lower bound for numeric tunables (\"float\" or \"int\"), or nil for other types."
            },
            {
              "name": "Max",
              "anchor": "TunableInfo.Max",
              "kind": "field",
              "doc": "Max is the inclusive upper bound for numeric tunables (\"float\" or \"int\"), or nil for other types."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/editor",
      "name": "editor",
      "dir": "pkg/editor",
      "page": "pkg/editor",
      "synopsis": "Package editor implements the NSGo Scene Editor over pkg/sceneformat.",
      "doc": "Package editor implements the NSGo Scene Editor over pkg/sceneformat.\n\nIt provides:\n  - Command-pattern undo/redo history (History, Command) covering every scene edit.\n  - Scene document loading, saving, object placement, selection, transform editing,\n    and deletion (Editor, PlaceObject, MoveObject, RotateObject, ScaleObject, DeleteObject).\n  - Inline tilemap editing with paint, erase, BFS flood fill, autotiled Terrain brush painting (PaintTile, EraseTile, FloodFillTile, PaintTerrain, EraseTerrain, ToolTerrain, TileStrokeTerrain, TileStrokeEraseTerrain), rectangle, Bresenham line, stamp (with palette rectangle selection and map region copy/cut/paste), and deterministic seeded weighted random brushes with live viewport preview, Escape cancel, and single-step undo (FillTileRect, DrawTileLine, StampTiles, CopyTileRegion, CutTileRegion, PasteTileRegion, BeginTileStroke), paired with a docked Tileset Editor for defining 4-bit cardinal and 8-bit blob terrain sets and assigning tiles to neighbor bitmasks by clicking edges and corners (OpenTilesetFile, OpenActiveLayerTileset, AddTilesetTerrain, ToggleTilesetEdgeOrCorner, TilesetEditorPanelView).\n  - A layers panel that picks the active layer and adds, removes, renames, reorders, hides and locks layers, each edit but the session's lock undoable (Layers, AddLayer, RemoveLayer, RenameLayer, MoveLayer, SetLayerVisible, SetLayerSpace, SetLayerLocked, LayersView), paired with undoable layer parallax and repeat editing in the inspector (SetLayerParallax, SetLayerRepeat) and live parallax/repeat preview in the 2D viewport.\n  - Typed property, component, and scene settings inspection and editing (SetProperty, SetComponentField, SetSceneName, SetVirtualSize, SetBackground, SetCamera, SetCameraPosition, SetCameraZoom, SetCameraRotation, SetCameraBounds, ClearCameraBounds, InspectorView), including draggable 2D camera position and camera.bounds resize/move handles when scene settings are active, and side-by-side *.rooms.yaml room-map editing in the 2D viewport with tile-grid snapping and room inspection (OpenRoomsFile, NewRoomMap, AddRoom, DeleteRoom, SetRoomRect, SetRoomID, SetRoomName, SetRoomTransition, SaveRoomsFile).\n  - Play-in-editor preview powered by game.Loop with exact pre-play YAML snapshot restoration (Play, PlayIn, Stop).\n  - An animation editor that keys any registered property on a timeline, previews the clip with animclip and saves it as an animation resource file (NewClip, KeyProperty, SeekClip, PlayClip, SaveClipFile, AnimationPanelView).\n  - A Data Table editor that opens versioned datatable YAML files from the file browser as a sortable, filterable grid with inferred value kinds, undo/redo, lossless round-trip saves and optional per-pattern Go row-type validation (OpenDataTableFile, RegisterDataTableType, SetDataTableCellText, DataTablePanelView).\n  - Atlas asset browsing and drop-to-place sprite creation (Assets, DropAtlasFrame, AssetBrowserView).\n  - Placing models in 3D: the asset browser lists the built-in primitives and the project's glTF models with thumbnails rendered offscreen, and the Place tool, a drag from the browser or a .glb dropped from another app adds an object drawing one where the pointer's ray meets the scene's geometry or the ground plane, optionally snapped to the grid and aligned to the surface, as one undoable step; the 3D inspector's Model field picks a project model (Models, ModelThumbnail, SelectModel, PlacementAt3D, PlaceModel3D, PlaceModelAt3D, DropModelFiles, SetObjectModel).\n  - Projects that bring their own assets: with ProjectAssets set, an opened project's scenes draw its atlases, the asset browser lists them and its scene files place as instances, through a project.Resolver over its directory, and OpenProjectScene opens a project on any of its scenes (ProjectAssets, OpenProjectScene; package editorcmd is the command line that sets them up).\n  - Editor plugins built into the editor binary and turned on by the project's game.yaml, which add docked panels, inspectors for their component types, 2D and 3D viewport tools (with camera pick ray and 3D projection overlays via Press3D, Draw3D, OnDragBegin3D/Move3D/End3D/Cancel3D, OnHover3D), and per-component 3D gizmos with object-space point/line/box handles that commit as one undo step (Plugin, ComponentGizmo3D, GizmoHandle3D, Projection3D, RegisterPlugin, SetPluginEnabled).\n  - A file browser that lists the open project's files and moves or renames them with every reference to them rewritten, on disk and in the open scene and project, as one undoable step (ProjectFiles, MoveFile through package refs, FilesView).\n  - A Project Settings panel over game.yaml editing general metadata, window, display, autoload scenes/resources and main scene, and editor plugins through EditProject with inline validation errors, canonical-save notice, undo/redo, and synced nsgo.yaml saving (ProjectSettingsPanelView, SetProjectSettingsOpen).\n  - A 2D viewport that pans, zooms and frames through the editor's own view, separate from the scene's camera, whose frame it outlines (View2D, PanView2D, ZoomView2DAt, FrameSelection2D, FrameAll2D, ResetView2D).\n  - A 2D transform gizmo that drags an object to move it, keeping the grab offset, moves it along its own axes, turns it with a ring and scales it with corner and edge handles (Shift keeps the aspect ratio), each drag one undoable step that Escape or a cancelled gesture puts back (BeginDrag2D, UpdateDrag2D, EndDrag2D, CancelDrag2D, PickGizmo2D).\n  - Interactive 2D viewport shape handles for registered point, rect, circle and polygon component fields (with a ShowAllShapes toggle, optional SnapToGrid snapping, polygon vertex add/remove, and undoable SetComponentField commits via BeginShapeDrag2D, UpdateShapeDrag2D, EndShapeDrag2D, CancelShapeDrag2D, AddPolygonVertex, RemovePolygonVertex), plus drag (OnDragBegin, OnDragMove, OnDragEnd, OnDragCancel) and hover (OnHover) callbacks on PluginTool.\n  - An audio bus mixer over game.yaml's audio section with undoable bus and effect-chain editing and live audition through sound.Mixer (AudioMixerPanelView, AddAudioBus, AddAudioBusEffect, AuditionAudioBus).\n  - A Problems panel that runs assetcheck.CheckWith (with the editor's component registry) and project.Check over the open project off the UI goroutine on open, save and file move, shows one row per problem with file, line and message, navigates to scenes or selects files on press, and displays the live problem count in the status bar (CheckProblems, Problems, OpenProblem, ProblemsView).\n  - An Export & Release panel over game.yaml's export section with undoable preset and target editing, pre-flight asset credits verification, streaming dry-run and release builds, and automatic output folder opening (ExportPanelView, AddExportPreset, CheckExportCredits, StartExportBuild), plus a full-window Build and Release screen (BuildReleaseScreenView, OpenBuildReleaseScreen, CloseBuildReleaseScreen, BuildReleaseScreenOpen, StartReleaseBuild, StopReleaseBuild, ResumeReleaseBuild, SetBuildPresetIncluded, SetBuildPresetFixProposal, ApplyBuildPresetFixAndRebuild) showing BEFORE EVERY BUILD checks (`nsgo check`, smoke playtest, and `game.yaml` budgets), per-preset ordered steps (`Check project`, `Compile Go`, `Pack assets`, `Sign`, `Smoke playtest`, `Measure`) with `build/<platform>.log` streaming, failure isolation with agent preset fix diffs, finished size breakdowns against the last release, and platform readiness checks.\n  - Project-wide Search and Find References covering file names and paths, file UIDs, scene object IDs and names, component types, and prefab/scene references, plus incoming file references powered by refs.Scan with file and line numbers and jump-to-file/scene-object navigation (Search, FindReferences, ShowReferences, OpenSearchResult, OpenReference, RefreshSearch, SearchPanelView).\n  - Running the open project with `go tool game dev` (optionally starting at the open scene or with `-automation`) from the toolbar or F5 shortcut with full process-tree cleanup on Stop, paired with a docked Output / Log panel that streams stdout and stderr, keeps a timestamped history of editor status and error messages, supports Clear and Errors-only filtering, and opens clicked `file:line` scene links (RunGame, RunGameWith, StopGame, Close, OutputPanelView, OpenOutputEntry).\n  - A Remote scene tree tab and live inspector connected to the running game over MCP (`go tool nsgo mcp` or an injected transport via `github.com/modelcontextprotocol/go-sdk/mcp`), listing live scenes, layers, and entities with hierarchy (`game_scenes_list`, `game_layers_list`, `game_entities_list`), inspecting and editing live components (`game_entity_inspect`, `game_component_set`) with tracked Live Changes that can be reverted, discarded, or kept in the open scene as a single undo step, plus live Pause/Resume/Step N/Time Scale controls (`game_loop_*`), tunables (`game_tunable_*`), and a debug console line (`game_console_exec`) (ConnectRemote, ConnectRemoteCommand, DisconnectRemote, RefreshRemote, SelectRemoteEntity, SetRemoteComponentField, KeepRemoteLiveChangesInScene, DiscardRemoteLiveChanges, RemotePause, RemoteResume, RemoteStep, RemoteSetTimeScale, RemoteSetTunable, RemoteExecConsole, NewRemoteBridgeServer).\n  - A Profiler for the running game: a Play-mode \"FRAME TIME · LAST 60 S\" strip under the viewport (ProfilerStripView) showing avg, p99, allocs/frame, 8.3 ms / 16.7 ms thresholds, time axis and labelled spikes, plus a full docked Profiler panel (ProfilerPanelView) opened from the strip, toolbar or command registry that polls game_perf_readout and game_perf_zones over MCP (ConnectProfiler, ConnectProfilerMCP, ConnectProfilerCommand, ConnectProfilerScope, PollProfiler), charts frame/update/draw time, FPS, allocations/GC and asset memory, lists zones sorted by cost with Reset (game_perf_reset), and exports recorded frames as Chrome/Perfetto trace JSON through debug.Profiler.WriteChromeTrace (ExportProfilerTrace, ExportProfilerTraceFile).\n  - A unified command registry driving platform-aware keyboard shortcuts (guarded against firing while text fields have focus), a desktop application menu bar (File, Edit, View, Project), a searchable Command Palette (ui.CommandDialog) covering built-in commands, plugin commands, plugin tools, plugin panels and project scenes/files, and clash-checked plugin command registration (EditorCommand, PluginCommand, RegisterCommand, ApplicationMenu, CommandPaletteView).\n  - Scene tabs and scene files: a tab bar above the viewport (SceneTabsView) keeping each open scene's document, undo/redo history, selection, 2D/3D view transform and dirty marker separate while sharing the project file across tabs (Tabs, ActiveTab, TabCount, SelectTab, SaveTab, CloseTab, RequestCloseTab, OpenInstancedScene, OpenBaseScene); opening an already-open scene switches to its tab, saving a scene rebuilds other open tabs that instance or inherit it, closing a dirty tab prompts to save, discard or cancel, and New Scene, Save As and Revert operate on scenes (OpenScene, NewScene, SaveSceneAs, RevertScene, SceneDirty, AnySceneDirty, HasUnsavedChanges, Save, SaveAll).\n  - Asset import settings inspection and rebuilding: selecting an image, sound, font, or 3D model in the file browser displays its kind-specific import settings (inheriting target defaults from game.yaml with per-field Reset), an interactive image slice-grid preview with draggable default and per-cell pivot markers, and the credit section in the inspector, writes validated *.import.yaml sidecars through importsettings.Encode as undoable steps, and runs `go tool game assets` via Reimport or Build Assets off the UI goroutine with Output panel streaming and live atlas/texture reloading in the asset browser and viewport (InspectAssetImport, EditAssetImportSettings, SetImageImportPivot, SetImageImportDefaultPivot, SetImageImportCellPivot, BeginImagePivotDrag, DrawImageImportPreview, SetAssetImportCredit, ResetAssetImportField, ReimportAsset, BuildAssets, ReloadAssets).\n  - A Start Screen (StartScreenView) with per-user strict versioned YAML recent projects persistence (RecentProjects, ParseRecentProjects, EncodeRecentProjects, DefaultRecentProjectsPath) marking missing folders, folder-picker opening (BrowseAndOpenProject, PickProjectFolder), dynamic template gallery and `game new` project creation with live name validation and streaming output (ProjectTemplates, StartCreateProject), Open Demo (OpenDemo, NewDemo), and clean project switching with unsaved-edits confirmation (HasUnsavedChanges, RequestOpenProject, ConfirmSaveAndSwitch, ConfirmDiscardAndSwitch).\n  - Localized editor UI (English and Simplified Chinese via embedded versioned l10n YAML catalogs) with live language switching without restart, plugin translation catalogs (Plugin.Catalog, Plugin.LocaleYAML, Editor.PluginT, Editor.PluginPlural), and per-user versioned YAML Editor Settings (language and light/dark/system appearance via core.Scope.SetAppearance) stored outside any project (EditorSettings, ParseEditorSettings, EncodeEditorSettings, Editor.LoadSettings, Editor.SetLanguage, Editor.SetAppearance, EditorSettingsDialogView).\n  - A HUD and menu layout screen (HUDLayoutView, OpenHUDScreen, OpenHUDScreenFile, OpenHUDScreenDoc) that previews every *.screen.yaml file simultaneously across Phone 19.5:9 with notch, Tablet 4:3, Desktop 16:9 and Ultrawide 21:9 in any project language (SetHUDLocale), displays Safe areas / Anchors / Touch areas / Focus order overlays, compares localized widths in a TEXT WIDTH, PX table, inspects anchors (3×3 grid plus fill), safe-area placement, Fixed / Fit text sizing, localized text with 1.5× overflow zoom, and live GAME CHECK diagnostics backed by gameui.CheckScreen, and supports undoable container reordering, spacing edits, and direct touch-control dragging written back to the screen file in one undo step.\n  - Object-by-object scene merge conflict resolution (MergeConflictView, OpenMergeConflict, OpenMergeConflictSession, ResolveMergeConflict, TakeAllAgentMergeSuggestions, ApplyMergeCustomYAML, FinishMerge, AbortMerge) displaying MINE, THEIRS, and live RESULT scene previews, auto-merged items (MERGED BY ID), per-object Agent/Mine/Theirs options with reasons, hand YAML editing, game check and short playtest verification, Git merge commit creation, and clean merge abort.\n  - A dockable, resizable panel workspace built on NSGo's ui.DockArea with drag-to-move, drag-to-tab, resize handles, View > Panels visibility toggles, Reset Layout (CmdResetLayout, ResetLayout), and per-user strict versioned YAML persistence outside any project (LayoutFile, ParseLayout, EncodeLayout, DefaultLayoutPath, SetLayoutPath, DockLayout, PanelVisible, SetPanelVisible, TogglePanel, MovePanel, Panels), placing plugin panels at their declared Dock on first use and remembering where the user moved them afterwards.\n  - A native NSGo UI root view (EditorView) combining the start screen, scene merge conflict resolver, HUD layout screen, toolbar, dockable panel workspace, command palette, unsaved-edits dialog, and editor settings dialog.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "RightTabInspector",
              "anchor": "RightTabInspector"
            },
            {
              "name": "RightTabAgent",
              "anchor": "RightTabAgent"
            },
            {
              "name": "RightTabHistory",
              "anchor": "RightTabHistory"
            },
            {
              "name": "RightRailInspector",
              "anchor": "RightRailInspector"
            },
            {
              "name": "RightRailAgent",
              "anchor": "RightRailAgent"
            },
            {
              "name": "RightRailHistory",
              "anchor": "RightRailHistory"
            }
          ],
          "decl": "const (\n\t// RightTabInspector shows the property / scene / layer inspector (default).\n\tRightTabInspector RightRailTab = \"inspector\"\n\t// RightTabAgent shows the Agent panel with status chip, threads, and composer.\n\tRightTabAgent RightRailTab = \"agent\"\n\t// RightTabHistory shows the unified timeline of agent and manual steps.\n\tRightTabHistory RightRailTab = \"history\"\n\n\t// RightRailInspector, RightRailAgent, and RightRailHistory alias the right-rail tabs.\n\tRightRailInspector = RightTabInspector\n\tRightRailAgent     = RightTabAgent\n\tRightRailHistory   = RightTabHistory\n)",
          "doc": "",
          "file": "pkg/editor/agent.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "AgentAPIKeySecretAccount",
              "anchor": "AgentAPIKeySecretAccount"
            },
            {
              "name": "DefaultBuiltInAgentEndpoint",
              "anchor": "DefaultBuiltInAgentEndpoint"
            },
            {
              "name": "DefaultBuiltInModel",
              "anchor": "DefaultBuiltInModel"
            },
            {
              "name": "DefaultBuiltInFastModel",
              "anchor": "DefaultBuiltInFastModel"
            }
          ],
          "decl": "const (\n\t// AgentAPIKeySecretAccount is the account name under NSGo's core.Secrets where the built-in agent's API key is stored.\n\t// It is never written to project files, EditorSettings YAML, or logs.\n\tAgentAPIKeySecretAccount = \"agent.anthropic.api_key\"\n\n\t// DefaultBuiltInAgentEndpoint is the default Anthropic Messages API endpoint used by the built-in agent.\n\tDefaultBuiltInAgentEndpoint = \"https://api.anthropic.com/v1/messages\"\n\n\t// DefaultBuiltInModel is the default model used for \"Anthropic API · default\".\n\tDefaultBuiltInModel = \"claude-sonnet-4-6\"\n\n\t// DefaultBuiltInFastModel is the default model used for \"Anthropic API · fast\".\n\tDefaultBuiltInFastModel = \"claude-haiku-4-5\"\n)",
          "doc": "",
          "file": "pkg/editor/agent_builtin.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "AgentKeychainServiceName",
              "anchor": "AgentKeychainServiceName"
            },
            {
              "name": "DefaultAgentAPIKeyAccount",
              "anchor": "DefaultAgentAPIKeyAccount"
            },
            {
              "name": "DefaultBuiltInProviderName",
              "anchor": "DefaultBuiltInProviderName"
            },
            {
              "name": "ToolNameGameDeleteFile",
              "anchor": "ToolNameGameDeleteFile"
            },
            {
              "name": "DefaultRunningGameMCPServerName",
              "anchor": "DefaultRunningGameMCPServerName"
            },
            {
              "name": "DefaultWeeklyRequestLimit",
              "anchor": "DefaultWeeklyRequestLimit"
            }
          ],
          "decl": "const (\n\t// AgentKeychainServiceName is the system keychain service identifier used to store\n\t// built-in model API keys outside any game project or settings file.\n\tAgentKeychainServiceName = \"dev.nsgo.game.agent\"\n\t// DefaultAgentAPIKeyAccount is the default keychain account for the built-in API connection.\n\tDefaultAgentAPIKeyAccount = \"anthropic\"\n\t// DefaultBuiltInProviderName is the display name of the built-in API connection shown in Settings › Models and connections.\n\tDefaultBuiltInProviderName = \"Anthropic API\"\n\t// ToolNameGameDeleteFile is the MCP tool name for deleting a file, which is turned off by default.\n\tToolNameGameDeleteFile = \"game_delete_file\"\n\t// DefaultRunningGameMCPServerName is the MCP server identifier for the running game via `nsgo dev`.\n\tDefaultRunningGameMCPServerName = \"nsgo-game\"\n\t// DefaultWeeklyRequestLimit is the default weekly agent request budget shown in Settings › Usage and privacy.\n\tDefaultWeeklyRequestLimit = 300\n)",
          "doc": "",
          "file": "pkg/editor/agent_settings.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "DefaultAutoSaveDelay",
              "anchor": "DefaultAutoSaveDelay"
            },
            {
              "name": "DefaultSavingIndicatorDelay",
              "anchor": "DefaultSavingIndicatorDelay"
            }
          ],
          "decl": "const (\n\t// DefaultAutoSaveDelay is how long kept edits wait before saving automatically.\n\tDefaultAutoSaveDelay = 2 * time.Second\n\t// DefaultSavingIndicatorDelay is how long a save must stay in flight before the status bar shows \"Saving…\", avoiding flicker on quick saves.\n\tDefaultSavingIndicatorDelay = 300 * time.Millisecond\n)",
          "doc": "",
          "file": "pkg/editor/autosave.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "DefaultDownloadSizeBudgetMB",
              "anchor": "DefaultDownloadSizeBudgetMB"
            },
            {
              "name": "DefaultFrameTimeP95BudgetMs",
              "anchor": "DefaultFrameTimeP95BudgetMs"
            },
            {
              "name": "DefaultBudgetQualityProfile",
              "anchor": "DefaultBudgetQualityProfile"
            }
          ],
          "decl": "const (\n\tDefaultDownloadSizeBudgetMB = 80.0\n\tDefaultFrameTimeP95BudgetMs = 16.7\n\tDefaultBudgetQualityProfile = \"low\"\n)",
          "doc": "Default build budget thresholds used when game.yaml does not declare export.budgets.\n",
          "file": "pkg/editor/build_release.go",
          "line": 40
        },
        {
          "idents": [
            {
              "name": "CmdNewProject",
              "anchor": "CmdNewProject"
            },
            {
              "name": "CmdOpenProject",
              "anchor": "CmdOpenProject"
            },
            {
              "name": "CmdStartScreen",
              "anchor": "CmdStartScreen"
            },
            {
              "name": "CmdSave",
              "anchor": "CmdSave"
            },
            {
              "name": "CmdCloseTab",
              "anchor": "CmdCloseTab"
            },
            {
              "name": "CmdNextTab",
              "anchor": "CmdNextTab"
            },
            {
              "name": "CmdPrevTab",
              "anchor": "CmdPrevTab"
            },
            {
              "name": "CmdOpenInstancedScene",
              "anchor": "CmdOpenInstancedScene"
            },
            {
              "name": "CmdOpenBaseScene",
              "anchor": "CmdOpenBaseScene"
            },
            {
              "name": "CmdUndo",
              "anchor": "CmdUndo"
            },
            {
              "name": "CmdRedo",
              "anchor": "CmdRedo"
            },
            {
              "name": "CmdCopy",
              "anchor": "CmdCopy"
            },
            {
              "name": "CmdCut",
              "anchor": "CmdCut"
            },
            {
              "name": "CmdPaste",
              "anchor": "CmdPaste"
            },
            {
              "name": "CmdPasteInto",
              "anchor": "CmdPasteInto"
            },
            {
              "name": "CmdDelete",
              "anchor": "CmdDelete"
            },
            {
              "name": "CmdDuplicate",
              "anchor": "CmdDuplicate"
            },
            {
              "name": "CmdGroup",
              "anchor": "CmdGroup"
            },
            {
              "name": "CmdUngroup",
              "anchor": "CmdUngroup"
            },
            {
              "name": "CmdToolSelect",
              "anchor": "CmdToolSelect"
            },
            {
              "name": "CmdToolMove",
              "anchor": "CmdToolMove"
            },
            {
              "name": "CmdToolRotate",
              "anchor": "CmdToolRotate"
            },
            {
              "name": "CmdToolScale",
              "anchor": "CmdToolScale"
            },
            {
              "name": "CmdToolPan",
              "anchor": "CmdToolPan"
            },
            {
              "name": "CmdToolPlace",
              "anchor": "CmdToolPlace"
            },
            {
              "name": "CmdToolPaintTile",
              "anchor": "CmdToolPaintTile"
            },
            {
              "name": "CmdToolEraseTile",
              "anchor": "CmdToolEraseTile"
            },
            {
              "name": "CmdToolFillTile",
              "anchor": "CmdToolFillTile"
            },
            {
              "name": "CmdToolTerrain",
              "anchor": "CmdToolTerrain"
            },
            {
              "name": "CmdToolRectTile",
              "anchor": "CmdToolRectTile"
            },
            {
              "name": "CmdToolLineTile",
              "anchor": "CmdToolLineTile"
            },
            {
              "name": "CmdToolStampTile",
              "anchor": "CmdToolStampTile"
            },
            {
              "name": "CmdToolRandomTile",
              "anchor": "CmdToolRandomTile"
            },
            {
              "name": "CmdCopyTileRegion",
              "anchor": "CmdCopyTileRegion"
            },
            {
              "name": "CmdCutTileRegion",
              "anchor": "CmdCutTileRegion"
            },
            {
              "name": "CmdPasteTileRegion",
              "anchor": "CmdPasteTileRegion"
            },
            {
              "name": "CmdToolNavTestPath",
              "anchor": "CmdToolNavTestPath"
            },
            {
              "name": "CmdGizmoTranslate",
              "anchor": "CmdGizmoTranslate"
            },
            {
              "name": "CmdGizmoRotate",
              "anchor": "CmdGizmoRotate"
            },
            {
              "name": "CmdGizmoScale",
              "anchor": "CmdGizmoScale"
            },
            {
              "name": "CmdGizmoCollider",
              "anchor": "CmdGizmoCollider"
            },
            {
              "name": "CmdFitCollider3D",
              "anchor": "CmdFitCollider3D"
            },
            {
              "name": "CmdView2D",
              "anchor": "CmdView2D"
            },
            {
              "name": "CmdView3D",
              "anchor": "CmdView3D"
            },
            {
              "name": "CmdShadingLit",
              "anchor": "CmdShadingLit"
            },
            {
              "name": "CmdShadingUnlit",
              "anchor": "CmdShadingUnlit"
            },
            {
              "name": "CmdShadingWire",
              "anchor": "CmdShadingWire"
            },
            {
              "name": "CmdNavMeshPanel",
              "anchor": "CmdNavMeshPanel"
            },
            {
              "name": "CmdNavMeshOverlay",
              "anchor": "CmdNavMeshOverlay"
            },
            {
              "name": "CmdBakeNavMesh3D",
              "anchor": "CmdBakeNavMesh3D"
            },
            {
              "name": "CmdFrameSelection",
              "anchor": "CmdFrameSelection"
            },
            {
              "name": "CmdToggleLightingPreview",
              "anchor": "CmdToggleLightingPreview"
            },
            {
              "name": "CmdToggleAllShapes",
              "anchor": "CmdToggleAllShapes"
            },
            {
              "name": "CmdToggleSnapGrid",
              "anchor": "CmdToggleSnapGrid"
            },
            {
              "name": "CmdToggleShowGrid",
              "anchor": "CmdToggleShowGrid"
            },
            {
              "name": "CmdToggleSnapPixel",
              "anchor": "CmdToggleSnapPixel"
            },
            {
              "name": "CmdToggleSnapRotation",
              "anchor": "CmdToggleSnapRotation"
            },
            {
              "name": "CmdToggleSnapScale",
              "anchor": "CmdToggleSnapScale"
            },
            {
              "name": "CmdToggleNavMesh2D",
              "anchor": "CmdToggleNavMesh2D"
            },
            {
              "name": "CmdViewportOverlays",
              "anchor": "CmdViewportOverlays"
            },
            {
              "name": "CmdAskAgent",
              "anchor": "CmdAskAgent"
            },
            {
              "name": "CmdAgentTab",
              "anchor": "CmdAgentTab"
            },
            {
              "name": "CmdInspectorTab",
              "anchor": "CmdInspectorTab"
            },
            {
              "name": "CmdCommandPalette",
              "anchor": "CmdCommandPalette"
            },
            {
              "name": "CmdShortcutsSheet",
              "anchor": "CmdShortcutsSheet"
            },
            {
              "name": "CmdToggleTasks",
              "anchor": "CmdToggleTasks"
            },
            {
              "name": "CmdHistoryPanel",
              "anchor": "CmdHistoryPanel"
            },
            {
              "name": "CmdResetLayout",
              "anchor": "CmdResetLayout"
            },
            {
              "name": "CmdPlayStop",
              "anchor": "CmdPlayStop"
            },
            {
              "name": "CmdRunGame",
              "anchor": "CmdRunGame"
            },
            {
              "name": "CmdProjectSettings",
              "anchor": "CmdProjectSettings"
            },
            {
              "name": "CmdAudioMixer",
              "anchor": "CmdAudioMixer"
            },
            {
              "name": "CmdInputMap",
              "anchor": "CmdInputMap"
            },
            {
              "name": "CmdLocalization",
              "anchor": "CmdLocalization"
            },
            {
              "name": "CmdParticleEditor",
              "anchor": "CmdParticleEditor"
            },
            {
              "name": "CmdHUDLayout",
              "anchor": "CmdHUDLayout"
            },
            {
              "name": "CmdMaterialEditor",
              "anchor": "CmdMaterialEditor"
            },
            {
              "name": "CmdExport",
              "anchor": "CmdExport"
            },
            {
              "name": "CmdBuildRelease",
              "anchor": "CmdBuildRelease"
            },
            {
              "name": "CmdProfiler",
              "anchor": "CmdProfiler"
            },
            {
              "name": "CmdOutputPanel",
              "anchor": "CmdOutputPanel"
            },
            {
              "name": "CmdProblemsPanel",
              "anchor": "CmdProblemsPanel"
            },
            {
              "name": "CmdSearchPanel",
              "anchor": "CmdSearchPanel"
            },
            {
              "name": "CmdDataTable",
              "anchor": "CmdDataTable"
            },
            {
              "name": "CmdLibraryPanel",
              "anchor": "CmdLibraryPanel"
            },
            {
              "name": "CmdAnimate",
              "anchor": "CmdAnimate"
            },
            {
              "name": "CmdBuildAssets",
              "anchor": "CmdBuildAssets"
            },
            {
              "name": "CmdStopGame",
              "anchor": "CmdStopGame"
            },
            {
              "name": "CmdRunOpenScene",
              "anchor": "CmdRunOpenScene"
            },
            {
              "name": "CmdLayersPanel",
              "anchor": "CmdLayersPanel"
            },
            {
              "name": "CmdFileBrowser",
              "anchor": "CmdFileBrowser"
            },
            {
              "name": "CmdAssetBrowser",
              "anchor": "CmdAssetBrowser"
            },
            {
              "name": "CmdTerrainEditor",
              "anchor": "CmdTerrainEditor"
            },
            {
              "name": "CmdCheckProblems",
              "anchor": "CmdCheckProblems"
            },
            {
              "name": "CmdFindUsages",
              "anchor": "CmdFindUsages"
            },
            {
              "name": "CmdEditorSettings",
              "anchor": "CmdEditorSettings"
            },
            {
              "name": "CmdShortcutsSettings",
              "anchor": "CmdShortcutsSettings"
            },
            {
              "name": "CmdChanges",
              "anchor": "CmdChanges"
            },
            {
              "name": "CmdMergeConflicts",
              "anchor": "CmdMergeConflicts"
            },
            {
              "name": "CmdPlaytestReport",
              "anchor": "CmdPlaytestReport"
            },
            {
              "name": "CmdToggleAssetsMode",
              "anchor": "CmdToggleAssetsMode"
            },
            {
              "name": "CmdMakeInstanceLocal",
              "anchor": "CmdMakeInstanceLocal"
            },
            {
              "name": "CmdApplyOverridesToSource",
              "anchor": "CmdApplyOverridesToSource"
            },
            {
              "name": "CmdRevertOverrides",
              "anchor": "CmdRevertOverrides"
            },
            {
              "name": "CmdGeneratedAssets",
              "anchor": "CmdGeneratedAssets"
            },
            {
              "name": "CmdConnectAgent",
              "anchor": "CmdConnectAgent"
            },
            {
              "name": "CmdReviewCode",
              "anchor": "CmdReviewCode"
            },
            {
              "name": "CmdAgentPanel",
              "anchor": "CmdAgentPanel"
            },
            {
              "name": "CmdAttachReferenceImage",
              "anchor": "CmdAttachReferenceImage"
            },
            {
              "name": "CmdPlayMark",
              "anchor": "CmdPlayMark"
            },
            {
              "name": "CmdAskFrozenFrame",
              "anchor": "CmdAskFrozenFrame"
            },
            {
              "name": "CmdPermissionsSettings",
              "anchor": "CmdPermissionsSettings"
            },
            {
              "name": "CmdView3DFront",
              "anchor": "CmdView3DFront"
            },
            {
              "name": "CmdView3DBack",
              "anchor": "CmdView3DBack"
            },
            {
              "name": "CmdView3DRight",
              "anchor": "CmdView3DRight"
            },
            {
              "name": "CmdView3DLeft",
              "anchor": "CmdView3DLeft"
            },
            {
              "name": "CmdView3DTop",
              "anchor": "CmdView3DTop"
            },
            {
              "name": "CmdView3DBottom",
              "anchor": "CmdView3DBottom"
            },
            {
              "name": "CmdView3DOrthographic",
              "anchor": "CmdView3DOrthographic"
            },
            {
              "name": "CmdView3DCamera",
              "anchor": "CmdView3DCamera"
            },
            {
              "name": "CmdGizmoSpace3D",
              "anchor": "CmdGizmoSpace3D"
            },
            {
              "name": "CmdEnvironmentPanel",
              "anchor": "CmdEnvironmentPanel"
            },
            {
              "name": "CmdAddReflectionProbe",
              "anchor": "CmdAddReflectionProbe"
            },
            {
              "name": "CmdAddLightProbeGrid",
              "anchor": "CmdAddLightProbeGrid"
            },
            {
              "name": "CmdBakeProbes3D",
              "anchor": "CmdBakeProbes3D"
            },
            {
              "name": "CmdReplayTips",
              "anchor": "CmdReplayTips"
            },
            {
              "name": "CmdReviewNext",
              "anchor": "CmdReviewNext"
            },
            {
              "name": "CmdReviewPrev",
              "anchor": "CmdReviewPrev"
            },
            {
              "name": "CmdReviewNote",
              "anchor": "CmdReviewNote"
            },
            {
              "name": "CmdReviewToggleRevert",
              "anchor": "CmdReviewToggleRevert"
            },
            {
              "name": "CmdReviewPeekBefore",
              "anchor": "CmdReviewPeekBefore"
            },
            {
              "name": "CmdReviewKeep",
              "anchor": "CmdReviewKeep"
            },
            {
              "name": "CmdReviewRevertAll",
              "anchor": "CmdReviewRevertAll"
            },
            {
              "name": "CmdNewAgentThread",
              "anchor": "CmdNewAgentThread"
            },
            {
              "name": "CmdSketchToggle",
              "anchor": "CmdSketchToggle"
            },
            {
              "name": "CmdSketchToolPen",
              "anchor": "CmdSketchToolPen"
            },
            {
              "name": "CmdSketchToolArrow",
              "anchor": "CmdSketchToolArrow"
            },
            {
              "name": "CmdSketchToolBox",
              "anchor": "CmdSketchToolBox"
            },
            {
              "name": "CmdSketchToolText",
              "anchor": "CmdSketchToolText"
            },
            {
              "name": "CmdSketchAddMarkAtCursor",
              "anchor": "CmdSketchAddMarkAtCursor"
            },
            {
              "name": "CmdSketchUndoMark",
              "anchor": "CmdSketchUndoMark"
            },
            {
              "name": "CmdSketchToggleMarks",
              "anchor": "CmdSketchToggleMarks"
            },
            {
              "name": "CmdSketchClear",
              "anchor": "CmdSketchClear"
            },
            {
              "name": "CmdSketchDone",
              "anchor": "CmdSketchDone"
            },
            {
              "name": "CmdSketchSend",
              "anchor": "CmdSketchSend"
            },
            {
              "name": "CmdSketchApproveReading",
              "anchor": "CmdSketchApproveReading"
            },
            {
              "name": "CmdSketchCorrectMark",
              "anchor": "CmdSketchCorrectMark"
            },
            {
              "name": "CmdSketchToggleReviewOverlay",
              "anchor": "CmdSketchToggleReviewOverlay"
            },
            {
              "name": "CmdSketchKeepReview",
              "anchor": "CmdSketchKeepReview"
            },
            {
              "name": "CmdSketchRevertReview",
              "anchor": "CmdSketchRevertReview"
            },
            {
              "name": "CmdKeepAgentTurn",
              "anchor": "CmdKeepAgentTurn"
            },
            {
              "name": "CmdRevertAgentTurn",
              "anchor": "CmdRevertAgentTurn"
            },
            {
              "name": "CmdStopAgentTurn",
              "anchor": "CmdStopAgentTurn"
            }
          ],
          "decl": "const (\n\tCmdNewProject             = \"file.newProject\"\n\tCmdOpenProject            = \"file.openProject\"\n\tCmdStartScreen            = \"file.startScreen\"\n\tCmdSave                   = \"file.save\"\n\tCmdCloseTab               = \"file.closeTab\"\n\tCmdNextTab                = \"view.nextTab\"\n\tCmdPrevTab                = \"view.prevTab\"\n\tCmdOpenInstancedScene     = \"scene.openInstanced\"\n\tCmdOpenBaseScene          = \"scene.openBase\"\n\tCmdUndo                   = \"edit.undo\"\n\tCmdRedo                   = \"edit.redo\"\n\tCmdCopy                   = \"edit.copy\"\n\tCmdCut                    = \"edit.cut\"\n\tCmdPaste                  = \"edit.paste\"\n\tCmdPasteInto              = \"edit.pasteInto\"\n\tCmdDelete                 = \"edit.delete\"\n\tCmdDuplicate              = \"edit.duplicate\"\n\tCmdGroup                  = \"edit.group\"\n\tCmdUngroup                = \"edit.ungroup\"\n\tCmdToolSelect             = \"tool.select\"\n\tCmdToolMove               = \"tool.move\"\n\tCmdToolRotate             = \"tool.rotate\"\n\tCmdToolScale              = \"tool.scale\"\n\tCmdToolPan                = \"tool.pan\"\n\tCmdToolPlace              = \"tool.place\"\n\tCmdToolPaintTile          = \"tool.paint\"\n\tCmdToolEraseTile          = \"tool.erase\"\n\tCmdToolFillTile           = \"tool.fill\"\n\tCmdToolTerrain            = \"tool.terrain\"\n\tCmdToolRectTile           = \"tool.rect\"\n\tCmdToolLineTile           = \"tool.line\"\n\tCmdToolStampTile          = \"tool.stamp\"\n\tCmdToolRandomTile         = \"tool.random\"\n\tCmdCopyTileRegion         = \"tile.copy\"\n\tCmdCutTileRegion          = \"tile.cut\"\n\tCmdPasteTileRegion        = \"tile.paste\"\n\tCmdToolNavTestPath        = \"tool.navTestPath\"\n\tCmdGizmoTranslate         = \"gizmo.translate\"\n\tCmdGizmoRotate            = \"gizmo.rotate\"\n\tCmdGizmoScale             = \"gizmo.scale\"\n\tCmdGizmoCollider          = \"gizmo.collider\"\n\tCmdFitCollider3D          = \"edit.fitCollider3d\"\n\tCmdView2D                 = \"view.mode2d\"\n\tCmdView3D                 = \"view.mode3d\"\n\tCmdShadingLit             = \"view.shading.lit\"\n\tCmdShadingUnlit           = \"view.shading.unlit\"\n\tCmdShadingWire            = \"view.shading.wireframe\"\n\tCmdNavMeshPanel           = \"view.navmesh\"\n\tCmdNavMeshOverlay         = \"view.navmesh.overlay\"\n\tCmdBakeNavMesh3D          = \"project.bakeNavMesh3D\"\n\tCmdFrameSelection         = \"view.frame\"\n\tCmdToggleLightingPreview  = \"view.lighting\"\n\tCmdToggleAllShapes        = \"view.shapes\"\n\tCmdToggleSnapGrid         = \"view.snap\"\n\tCmdToggleShowGrid         = \"view.grid\"\n\tCmdToggleSnapPixel        = \"view.snap.pixel\"\n\tCmdToggleSnapRotation     = \"view.snap.rotation\"\n\tCmdToggleSnapScale        = \"view.snap.scale\"\n\tCmdToggleNavMesh2D        = \"view.navmesh2d\"\n\tCmdViewportOverlays       = \"view.overlays\"\n\tCmdAskAgent               = \"agent.askInPlace\"\n\tCmdAgentTab               = \"view.agentTab\"\n\tCmdInspectorTab           = \"view.inspectorTab\"\n\tCmdCommandPalette         = \"view.palette\"\n\tCmdShortcutsSheet         = \"view.shortcuts\"\n\tCmdToggleTasks            = \"agent.tasks\"\n\tCmdHistoryPanel           = \"view.history\"\n\tCmdResetLayout            = \"view.resetLayout\"\n\tCmdPlayStop               = \"project.play\"\n\tCmdRunGame                = \"project.run\"\n\tCmdProjectSettings        = \"project.settings\"\n\tCmdAudioMixer             = \"project.mixer\"\n\tCmdInputMap               = \"project.inputMap\"\n\tCmdLocalization           = \"project.l10n\"\n\tCmdParticleEditor         = \"project.particles\"\n\tCmdHUDLayout              = \"project.hud\"\n\tCmdMaterialEditor         = \"project.material\"\n\tCmdExport                 = \"project.export\"\n\tCmdBuildRelease           = \"project.buildRelease\"\n\tCmdProfiler               = \"project.profiler\"\n\tCmdOutputPanel            = \"view.output\"\n\tCmdProblemsPanel          = \"view.problems\"\n\tCmdSearchPanel            = \"view.search\"\n\tCmdDataTable              = \"project.dataTable\"\n\tCmdLibraryPanel           = \"view.library\"\n\tCmdAnimate                = \"project.animate\"\n\tCmdBuildAssets            = \"project.buildAssets\"\n\tCmdStopGame               = \"project.stopGame\"\n\tCmdRunOpenScene           = \"project.runOpenScene\"\n\tCmdLayersPanel            = \"view.layers\"\n\tCmdFileBrowser            = \"view.fileBrowser\"\n\tCmdAssetBrowser           = \"view.assetBrowser\"\n\tCmdTerrainEditor          = \"project.terrain\"\n\tCmdCheckProblems          = \"project.check\"\n\tCmdFindUsages             = \"project.findUsages\"\n\tCmdEditorSettings         = \"editor.settings\"\n\tCmdShortcutsSettings      = \"editor.shortcuts\"\n\tCmdChanges                = \"git.changes\"\n\tCmdMergeConflicts         = \"git.mergeConflicts\"\n\tCmdPlaytestReport         = \"project.playtestReport\"\n\tCmdToggleAssetsMode       = \"view.assets\"\n\tCmdMakeInstanceLocal      = \"scene.makeLocal\"\n\tCmdApplyOverridesToSource = \"scene.applyOverridesToSource\"\n\tCmdRevertOverrides        = \"scene.revertOverrides\"\n\tCmdGeneratedAssets        = \"project.generatedAssets\"\n\tCmdConnectAgent           = \"agent.connect\"\n\tCmdReviewCode             = \"agent.reviewCode\"\n\tCmdAgentPanel             = \"view.agent\"\n\tCmdAttachReferenceImage   = \"agent.attachImage\"\n\tCmdPlayMark               = \"play.mark\"\n\tCmdAskFrozenFrame         = \"play.askFrozenFrame\"\n\tCmdPermissionsSettings    = \"settings.permissions\"\n\t// The 3D viewport's axis views and projection: each axis view looks at the camera's Target along a world axis (SetView3D), and the orthographic command switches between perspective and orthographic (SetOrthographic3D).\n\tCmdView3DFront        = \"view.3d.front\"\n\tCmdView3DBack         = \"view.3d.back\"\n\tCmdView3DRight        = \"view.3d.right\"\n\tCmdView3DLeft         = \"view.3d.left\"\n\tCmdView3DTop          = \"view.3d.top\"\n\tCmdView3DBottom       = \"view.3d.bottom\"\n\tCmdView3DOrthographic = \"view.3d.orthographic\"\n\tCmdView3DCamera       = \"view.3d.camera\"\n\tCmdGizmoSpace3D       = \"gizmo.3d.space\"\n\tCmdEnvironmentPanel   = \"scene.environment\"\n\tCmdAddReflectionProbe = \"scene.addReflectionProbe\"\n\tCmdAddLightProbeGrid  = \"scene.addLightProbeGrid\"\n\tCmdBakeProbes3D       = \"project.bakeProbes3D\"\n\tCmdReplayTips         = \"help.replayTips\"\n\tCmdReviewNext         = \"review.next\"\n\tCmdReviewPrev         = \"review.prev\"\n\tCmdReviewNote         = \"review.note\"\n\tCmdReviewToggleRevert = \"review.toggleRevert\"\n\tCmdReviewPeekBefore   = \"review.peekBefore\"\n\tCmdReviewKeep         = \"review.keep\"\n\tCmdReviewRevertAll    = \"review.revertAll\"\n\tCmdNewAgentThread     = \"agent.newThread\"\n\t// Viewport sketch layer commands (issue #1025).\n\tCmdSketchToggle              = \"sketch.toggle\"\n\tCmdSketchToolPen             = \"sketch.tool.pen\"\n\tCmdSketchToolArrow           = \"sketch.tool.arrow\"\n\tCmdSketchToolBox             = \"sketch.tool.box\"\n\tCmdSketchToolText            = \"sketch.tool.text\"\n\tCmdSketchAddMarkAtCursor     = \"sketch.addMarkAtCursor\"\n\tCmdSketchUndoMark            = \"sketch.undoMark\"\n\tCmdSketchToggleMarks         = \"sketch.toggleMarks\"\n\tCmdSketchClear               = \"sketch.clear\"\n\tCmdSketchDone                = \"sketch.done\"\n\tCmdSketchSend                = \"sketch.send\"\n\tCmdSketchApproveReading      = \"sketch.approveReading\"\n\tCmdSketchCorrectMark         = \"sketch.correctMark\"\n\tCmdSketchToggleReviewOverlay = \"sketch.toggleReviewOverlay\"\n\tCmdSketchKeepReview          = \"sketch.keepReview\"\n\tCmdSketchRevertReview        = \"sketch.revertReview\"\n\tCmdKeepAgentTurn             = \"agent.turn.keep\"\n\tCmdRevertAgentTurn           = \"agent.turn.revert\"\n\tCmdStopAgentTurn             = \"agent.turn.stop\"\n)",
          "doc": "Built-in editor command IDs registered in the unified command registry.\n",
          "file": "pkg/editor/commands.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "PanelViewport",
              "anchor": "PanelViewport"
            },
            {
              "name": "PanelSceneTree",
              "anchor": "PanelSceneTree"
            },
            {
              "name": "PanelLayers",
              "anchor": "PanelLayers"
            },
            {
              "name": "PanelAssets",
              "anchor": "PanelAssets"
            },
            {
              "name": "PanelFiles",
              "anchor": "PanelFiles"
            },
            {
              "name": "PanelLibrary",
              "anchor": "PanelLibrary"
            },
            {
              "name": "PanelInspector",
              "anchor": "PanelInspector"
            },
            {
              "name": "PanelProblems",
              "anchor": "PanelProblems"
            },
            {
              "name": "PanelOutput",
              "anchor": "PanelOutput"
            },
            {
              "name": "PanelProfiler",
              "anchor": "PanelProfiler"
            },
            {
              "name": "PanelAnimation",
              "anchor": "PanelAnimation"
            },
            {
              "name": "PanelSearch",
              "anchor": "PanelSearch"
            },
            {
              "name": "PanelStates",
              "anchor": "PanelStates"
            },
            {
              "name": "PanelTileset",
              "anchor": "PanelTileset"
            },
            {
              "name": "PanelTerrain",
              "anchor": "PanelTerrain"
            },
            {
              "name": "PanelRig",
              "anchor": "PanelRig"
            },
            {
              "name": "PanelParticles",
              "anchor": "PanelParticles"
            },
            {
              "name": "PanelMaterial",
              "anchor": "PanelMaterial"
            },
            {
              "name": "PanelEnvironment",
              "anchor": "PanelEnvironment"
            },
            {
              "name": "PanelDataTable",
              "anchor": "PanelDataTable"
            },
            {
              "name": "PanelNavMesh",
              "anchor": "PanelNavMesh"
            },
            {
              "name": "PanelLocalization",
              "anchor": "PanelLocalization"
            }
          ],
          "decl": "const (\n\tPanelViewport     = \"viewport\"\n\tPanelSceneTree    = \"scene_tree\"\n\tPanelLayers       = \"layers\"\n\tPanelAssets       = \"assets\"\n\tPanelFiles        = \"files\"\n\tPanelLibrary      = \"library\"\n\tPanelInspector    = \"inspector\"\n\tPanelProblems     = \"problems\"\n\tPanelOutput       = \"output\"\n\tPanelProfiler     = \"profiler\"\n\tPanelAnimation    = \"animation\"\n\tPanelSearch       = \"search\"\n\tPanelStates       = \"states\"\n\tPanelTileset      = \"tileset\"\n\tPanelTerrain      = \"terrain\"\n\tPanelRig          = \"rig\"\n\tPanelParticles    = \"particles\"\n\tPanelMaterial     = \"material\"\n\tPanelEnvironment  = \"environment\"\n\tPanelDataTable    = \"datatable\"\n\tPanelNavMesh      = \"navmesh\"\n\tPanelLocalization = \"localization\"\n)",
          "doc": "Built-in dock panel keys stored in LayoutFile and used by ui.DockArea.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 38
        },
        {
          "idents": [
            {
              "name": "FirstRunTipKeepRevert",
              "anchor": "FirstRunTipKeepRevert"
            },
            {
              "name": "FirstRunTipHoldB",
              "anchor": "FirstRunTipHoldB"
            },
            {
              "name": "FirstRunTipAskSelection",
              "anchor": "FirstRunTipAskSelection"
            }
          ],
          "decl": "const (\n\tFirstRunTipKeepRevert   = \"first_review.keep_revert\"\n\tFirstRunTipHoldB        = \"first_review.hold_b\"\n\tFirstRunTipAskSelection = \"first_review.ask_selection\"\n)",
          "doc": "Onboarding tip IDs persisted in EditorSettings.SeenTips so each first-review tip shows once per person\nand returns when the user triggers Help › Replay tips.\n",
          "file": "pkg/editor/first_run.go",
          "line": 58
        },
        {
          "idents": [
            {
              "name": "FirstRunAPIKeyKeychainService",
              "anchor": "FirstRunAPIKeyKeychainService"
            },
            {
              "name": "FirstRunAPIKeyKeychainAccount",
              "anchor": "FirstRunAPIKeyKeychainAccount"
            }
          ],
          "decl": "const (\n\tFirstRunAPIKeyKeychainService = \"dev.nsgo.game.agent\"\n\tFirstRunAPIKeyKeychainAccount = \"api_key\"\n)",
          "doc": "First-run API key system keychain service and account identifiers (never written to YAML).\n",
          "file": "pkg/editor/first_run.go",
          "line": 393
        },
        {
          "idents": [
            {
              "name": "OverlayCollisionShapes",
              "anchor": "OverlayCollisionShapes"
            },
            {
              "name": "OverlayTriggers",
              "anchor": "OverlayTriggers"
            },
            {
              "name": "OverlayConnections",
              "anchor": "OverlayConnections"
            },
            {
              "name": "OverlayPatrolPaths",
              "anchor": "OverlayPatrolPaths"
            },
            {
              "name": "OverlayNavigation",
              "anchor": "OverlayNavigation"
            },
            {
              "name": "OverlayCameraBounds",
              "anchor": "OverlayCameraBounds"
            },
            {
              "name": "OverlayLabels",
              "anchor": "OverlayLabels"
            }
          ],
          "decl": "const (\n\t// OverlayCollisionShapes draws registered non-trigger component shape fields and 2D physics colliders.\n\tOverlayCollisionShapes = \"collision_shapes\"\n\t// OverlayTriggers draws trigger/sensor/area component shape fields and 2D physics trigger volumes.\n\tOverlayTriggers = \"triggers\"\n\t// OverlayConnections draws curved arrows labelled \"event → handler\" between connected objects.\n\tOverlayConnections = \"connections\"\n\t// OverlayPatrolPaths draws enemy/actor patrol ranges and waypoint paths.\n\tOverlayPatrolPaths = \"patrol_paths\"\n\t// OverlayNavigation draws the built 2D navigation mesh polygons, portals, and navregion2d outlines.\n\tOverlayNavigation = \"navigation\"\n\t// OverlayCameraBounds draws the scene camera bounds rectangle and its size caption.\n\tOverlayCameraBounds = \"camera_bounds\"\n\t// OverlayLabels draws object name/ID labels below visible objects.\n\tOverlayLabels = \"labels\"\n)",
          "doc": "Built-in 2D viewport overlay IDs, shared between the editor's Overlays popover,\nEditorSettings.ViewportOverlays, and editormcp's viewport_image tool.\n",
          "file": "pkg/editor/overlays.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "PermissionRunGameCheck",
              "anchor": "PermissionRunGameCheck"
            },
            {
              "name": "PermissionRunPlaytests",
              "anchor": "PermissionRunPlaytests"
            },
            {
              "name": "PermissionRunShell",
              "anchor": "PermissionRunShell"
            }
          ],
          "decl": "const (\n\tPermissionRunGameCheck = \"game check\"\n\tPermissionRunPlaytests = \"playtests\"\n\tPermissionRunShell     = \"shell\"\n)",
          "doc": "Well-known run target names matched by PermissionActionRun rules.\n",
          "file": "pkg/editor/permissions.go",
          "line": 176
        },
        {
          "idents": [
            {
              "name": "FixKindUpdateConnection",
              "anchor": "FixKindUpdateConnection"
            },
            {
              "name": "FixKindRemoveConnection",
              "anchor": "FixKindRemoveConnection"
            },
            {
              "name": "FixKindSetSprite",
              "anchor": "FixKindSetSprite"
            },
            {
              "name": "FixKindSetMaterial",
              "anchor": "FixKindSetMaterial"
            },
            {
              "name": "FixKindSetObjectID",
              "anchor": "FixKindSetObjectID"
            },
            {
              "name": "FixKindSetComponentField",
              "anchor": "FixKindSetComponentField"
            },
            {
              "name": "FixKindRemoveComponent",
              "anchor": "FixKindRemoveComponent"
            },
            {
              "name": "FixKindReplaceLine",
              "anchor": "FixKindReplaceLine"
            }
          ],
          "decl": "const (\n\tFixKindUpdateConnection  = \"update_connection\"\n\tFixKindRemoveConnection  = \"remove_connection\"\n\tFixKindSetSprite         = \"set_sprite\"\n\tFixKindSetMaterial       = \"set_material\"\n\tFixKindSetObjectID       = \"set_object_id\"\n\tFixKindSetComponentField = \"set_component_field\"\n\tFixKindRemoveComponent   = \"remove_component\"\n\tFixKindReplaceLine       = \"replace_line\"\n)",
          "doc": "Supported ProblemFixEdit.Kind values for agent-proposed problem fixes.\n",
          "file": "pkg/editor/problems_fix.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ScopeGlobal",
              "anchor": "ScopeGlobal"
            },
            {
              "name": "ScopeViewport",
              "anchor": "ScopeViewport"
            },
            {
              "name": "ScopeViewport2D",
              "anchor": "ScopeViewport2D"
            },
            {
              "name": "ScopeViewport3D",
              "anchor": "ScopeViewport3D"
            },
            {
              "name": "ScopeSceneTree",
              "anchor": "ScopeSceneTree"
            },
            {
              "name": "ScopeTile",
              "anchor": "ScopeTile"
            },
            {
              "name": "ScopeSketch",
              "anchor": "ScopeSketch"
            },
            {
              "name": "ScopeAnimation",
              "anchor": "ScopeAnimation"
            },
            {
              "name": "ScopePlay",
              "anchor": "ScopePlay"
            },
            {
              "name": "ScopeReview",
              "anchor": "ScopeReview"
            },
            {
              "name": "ScopeAgent",
              "anchor": "ScopeAgent"
            }
          ],
          "decl": "const (\n\tScopeGlobal     = \"global\"\n\tScopeViewport   = \"viewport\"\n\tScopeViewport2D = \"viewport2d\"\n\tScopeViewport3D = \"viewport3d\"\n\tScopeSceneTree  = \"sceneTree\"\n\tScopeTile       = \"tile\"\n\tScopeSketch     = \"sketch\"\n\tScopeAnimation  = \"animation\"\n\tScopePlay       = \"play\"\n\tScopeReview     = \"review\"\n\tScopeAgent      = \"agent\"\n)",
          "doc": "Keyboard scope identifiers for editor and plugin commands.\nRebinding checks for conflicts only within the same scope; the same key in different scopes is allowed.\n",
          "file": "pkg/editor/shortcuts.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "SpecFontFamilySans",
              "anchor": "SpecFontFamilySans"
            },
            {
              "name": "SpecFontFamilyMono",
              "anchor": "SpecFontFamilyMono"
            },
            {
              "name": "SpecFontTitleSize",
              "anchor": "SpecFontTitleSize"
            },
            {
              "name": "SpecFontTitleWeight",
              "anchor": "SpecFontTitleWeight"
            },
            {
              "name": "SpecFontBodySize",
              "anchor": "SpecFontBodySize"
            },
            {
              "name": "SpecFontBodyWeight",
              "anchor": "SpecFontBodyWeight"
            },
            {
              "name": "SpecFontSectionSize",
              "anchor": "SpecFontSectionSize"
            },
            {
              "name": "SpecFontSectionWeight",
              "anchor": "SpecFontSectionWeight"
            },
            {
              "name": "SpecFontSectionTrack",
              "anchor": "SpecFontSectionTrack"
            },
            {
              "name": "SpecFontCodeSize",
              "anchor": "SpecFontCodeSize"
            },
            {
              "name": "SpecFontCodeWeight",
              "anchor": "SpecFontCodeWeight"
            }
          ],
          "decl": "const (\n\tSpecFontFamilySans = \"Inter\"\n\tSpecFontFamilyMono = \"JetBrains Mono\"\n\n\tSpecFontTitleSize     core.Points     = 14\n\tSpecFontTitleWeight   core.FontWeight = core.FontWeightSemibold // 600\n\tSpecFontBodySize      core.Points     = 12.5\n\tSpecFontBodyWeight    core.FontWeight = core.FontWeightNormal // 400\n\tSpecFontSectionSize   core.Points     = 11\n\tSpecFontSectionWeight core.FontWeight = core.FontWeightSemibold // 600\n\tSpecFontSectionTrack  core.Points     = 0.66                    // +6% tracking on 11 px\n\tSpecFontCodeSize      core.Points     = 11.5\n\tSpecFontCodeWeight    core.FontWeight = core.FontWeightNormal // 400\n)",
          "doc": "Typography tokens from docs/design/editor/Spec.dc.html (\"Type, space, shape\").\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "SpecSpace4",
              "anchor": "SpecSpace4"
            },
            {
              "name": "SpecSpace8",
              "anchor": "SpecSpace8"
            },
            {
              "name": "SpecSpace12",
              "anchor": "SpecSpace12"
            },
            {
              "name": "SpecSpace16",
              "anchor": "SpecSpace16"
            },
            {
              "name": "SpecSpace24",
              "anchor": "SpecSpace24"
            }
          ],
          "decl": "const (\n\tSpecSpace4  core.Points = 4\n\tSpecSpace8  core.Points = 8\n\tSpecSpace12 core.Points = 12\n\tSpecSpace16 core.Points = 16\n\tSpecSpace24 core.Points = 24\n)",
          "doc": "Spacing scale tokens from docs/design/editor/Spec.dc.html: 4, 8, 12, 16, 24 px only.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 33
        },
        {
          "idents": [
            {
              "name": "SpecRadiusControl",
              "anchor": "SpecRadiusControl"
            },
            {
              "name": "SpecRadiusButton",
              "anchor": "SpecRadiusButton"
            },
            {
              "name": "SpecRadiusCard",
              "anchor": "SpecRadiusCard"
            },
            {
              "name": "SpecRadiusDialog",
              "anchor": "SpecRadiusDialog"
            }
          ],
          "decl": "const (\n\tSpecRadiusControl core.Points = 6  // Controls, inputs, tree rows, pills\n\tSpecRadiusButton  core.Points = 8  // Buttons\n\tSpecRadiusCard    core.Points = 12 // Cards, popovers, toasts\n\tSpecRadiusDialog  core.Points = 18 // Dialogs\n)",
          "doc": "Corner radius tokens from docs/design/editor/Spec.dc.html.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 42
        },
        {
          "idents": [
            {
              "name": "SpecRowHeight",
              "anchor": "SpecRowHeight"
            },
            {
              "name": "SpecMinHitSize",
              "anchor": "SpecMinHitSize"
            },
            {
              "name": "SpecButtonHeight",
              "anchor": "SpecButtonHeight"
            },
            {
              "name": "SpecButtonTallHeight",
              "anchor": "SpecButtonTallHeight"
            },
            {
              "name": "SpecHeaderHeight",
              "anchor": "SpecHeaderHeight"
            },
            {
              "name": "SpecBorderWidth",
              "anchor": "SpecBorderWidth"
            },
            {
              "name": "SpecIconSize",
              "anchor": "SpecIconSize"
            },
            {
              "name": "SpecIconStrokeWidth",
              "anchor": "SpecIconStrokeWidth"
            }
          ],
          "decl": "const (\n\tSpecRowHeight        core.Points = 28 // Rows and tool buttons\n\tSpecMinHitSize       core.Points = 28 // Minimum interactive hit area (28 x 28)\n\tSpecButtonHeight     core.Points = 30 // Standard button height (30-32 px)\n\tSpecButtonTallHeight core.Points = 32 // Tall button height (30-32 px)\n\tSpecHeaderHeight     core.Points = 44 // Header / toolbar height\n\tSpecBorderWidth      core.Points = 1  // 1 px inner borders in Line or LineRaised\n\tSpecIconSize         core.Points = 15 // Inline stroke icon size\n\tSpecIconStrokeWidth  float32     = 1.8\n)",
          "doc": "Height, border, and icon geometry tokens from docs/design/editor/Spec.dc.html.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 50
        },
        {
          "idents": [
            {
              "name": "SpecMotionHover",
              "anchor": "SpecMotionHover"
            },
            {
              "name": "SpecMotionPanel",
              "anchor": "SpecMotionPanel"
            },
            {
              "name": "SpecMotionOverlay",
              "anchor": "SpecMotionOverlay"
            },
            {
              "name": "SpecMotionAgentPulse",
              "anchor": "SpecMotionAgentPulse"
            },
            {
              "name": "SpecAgentPulseMinOpacity",
              "anchor": "SpecAgentPulseMinOpacity"
            },
            {
              "name": "SpecAgentPulseMaxOpacity",
              "anchor": "SpecAgentPulseMaxOpacity"
            }
          ],
          "decl": "const (\n\tSpecMotionHover      = 120 * time.Millisecond  // Hover and press transitions\n\tSpecMotionPanel      = 180 * time.Millisecond  // Panels, popovers, and toasts\n\tSpecMotionOverlay    = 240 * time.Millisecond  // Agent change overlays fading in\n\tSpecMotionAgentPulse = 1600 * time.Millisecond // Agent outline pulse (100% <-> 45% opacity)\n\n\tSpecAgentPulseMinOpacity float32 = 0.45\n\tSpecAgentPulseMaxOpacity float32 = 1.0\n)",
          "doc": "Motion tokens from docs/design/editor/Spec.dc.html (\"Motion\").\nAll durations drop to 0 under Env.ReduceMotion (see SpecMotionDuration).\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 63
        },
        {
          "idents": [
            {
              "name": "MinView2DZoom",
              "anchor": "MinView2DZoom"
            },
            {
              "name": "MaxView2DZoom",
              "anchor": "MaxView2DZoom"
            }
          ],
          "decl": "const (\n\tMinView2DZoom float32 = 1.0 / 64\n\tMaxView2DZoom float32 = 64\n)",
          "doc": "The range View2D.Zoom is clamped to.\n",
          "file": "pkg/editor/view2d.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "OverlayChangeFadeDuration",
              "anchor": "OverlayChangeFadeDuration"
            },
            {
              "name": "OverlayAgentPulsePeriod",
              "anchor": "OverlayAgentPulsePeriod"
            },
            {
              "name": "OverlayAgentPulseMinAlpha",
              "anchor": "OverlayAgentPulseMinAlpha"
            },
            {
              "name": "OverlayBaseOffset",
              "anchor": "OverlayBaseOffset"
            },
            {
              "name": "OverlaySelectionAgentGap",
              "anchor": "OverlaySelectionAgentGap"
            }
          ],
          "decl": "const (\n\t// OverlayChangeFadeDuration is the fade-in duration for Added, Changed, and Removed overlays.\n\tOverlayChangeFadeDuration = 240 * time.Millisecond\n\t// OverlayAgentPulsePeriod is the full pulse cycle duration for the Agent working outline.\n\tOverlayAgentPulsePeriod = 1600 * time.Millisecond\n\t// OverlayAgentPulseMinAlpha is the minimum opacity reached during an Agent working pulse (45%).\n\tOverlayAgentPulseMinAlpha float32 = 0.45\n\n\t// OverlayBaseOffset is the default gap in points between an object's bounds and its overlay outline.\n\tOverlayBaseOffset float32 = 3\n\t// OverlaySelectionAgentGap is how much further out the Agent working outline sits when\n\t// paired with the person's Selection on the same object.\n\tOverlaySelectionAgentGap float32 = 3\n)",
          "doc": "Spec viewport overlay timing and geometry constants (docs/design/editor/Spec.dc.html).\n",
          "file": "pkg/editor/viewport_overlay.go",
          "line": 43
        },
        {
          "idents": [
            {
              "name": "AgentBriefPreviewID",
              "anchor": "AgentBriefPreviewID"
            }
          ],
          "decl": "const (\n\t// AgentBriefPreviewID is the preview target ID used when hovering or focusing the brief.yaml Always chip.\n\tAgentBriefPreviewID = \"brief\"\n)",
          "doc": "",
          "file": "pkg/editor/agent_references.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "AgentInstallCommand",
              "anchor": "AgentInstallCommand"
            }
          ],
          "decl": "const AgentInstallCommand = \"go tool game mcp install\"",
          "doc": "AgentInstallCommand is the one-time command shown in the Connect dialog and copied by its Copy button.\n",
          "file": "pkg/editor/agent.go",
          "line": 107
        },
        {
          "idents": [
            {
              "name": "AgentStuckFailureThreshold",
              "anchor": "AgentStuckFailureThreshold"
            }
          ],
          "decl": "const AgentStuckFailureThreshold = 3",
          "doc": "AgentStuckFailureThreshold is the number of consecutive failures of the same tool that pauses a request.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "AgentThreadFileVersion",
              "anchor": "AgentThreadFileVersion"
            }
          ],
          "decl": "const AgentThreadFileVersion = 1",
          "doc": "AgentThreadFileVersion is the YAML schema version of per-thread files under .nsgo/threads/<id>.yaml.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "AgentThreadSchemaComment",
              "anchor": "AgentThreadSchemaComment"
            }
          ],
          "decl": "const AgentThreadSchemaComment = \"# yaml-language-server: $schema=\" + AgentThreadSchemaURL",
          "doc": "AgentThreadSchemaComment is the first line EncodeAgentThreadYAML writes: a YAML comment pointing\na YAML language server at AgentThreadSchemaURL. ParseAgentThreadYAML ignores it like any other comment.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 37
        },
        {
          "idents": [
            {
              "name": "AgentThreadSchemaURL",
              "anchor": "AgentThreadSchemaURL"
            }
          ],
          "decl": "const AgentThreadSchemaURL = \"https://game.nsgo.dev/schemas/agent-thread.v1.json\"",
          "doc": "AgentThreadSchemaURL is where the JSON Schema of version 1 agent thread files is published.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 33
        },
        {
          "idents": [
            {
              "name": "AgentThreadVersion",
              "anchor": "AgentThreadVersion"
            }
          ],
          "decl": "const AgentThreadVersion = 1",
          "doc": "AgentThreadVersion is the schema version of *.thread.yaml files stored under .nsgo/threads/.\n",
          "file": "pkg/editor/tasks.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "AgentThreadsDir",
              "anchor": "AgentThreadsDir"
            }
          ],
          "decl": "const AgentThreadsDir = \".nsgo/threads\"",
          "doc": "AgentThreadsDir is the project-relative directory where the editor stores one versioned YAML\nfile per agent thread. Creating it writes a .gitignore in .nsgo/ so threads stay local and\nignored by git.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "AgentWaitingNotifyDelay",
              "anchor": "AgentWaitingNotifyDelay"
            }
          ],
          "decl": "const AgentWaitingNotifyDelay = 30 * time.Second",
          "doc": "AgentWaitingNotifyDelay is how long an unanswered Waiting-for-you permission or question request\nstays open in the foreground before also sending a system notification (docs/design/editor/AgentStates.dc.html).\n",
          "file": "pkg/editor/agent_notifications.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "AutomationsCheckpointsDir",
              "anchor": "AutomationsCheckpointsDir"
            }
          ],
          "decl": "const AutomationsCheckpointsDir = \".nsgo/checkpoints\"",
          "doc": "AutomationsCheckpointsDir is the git-ignored project-relative directory storing pre-run automation checkpoints.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 35
        },
        {
          "idents": [
            {
              "name": "AutomationsFileName",
              "anchor": "AutomationsFileName"
            }
          ],
          "decl": "const AutomationsFileName = \"automations.yaml\"",
          "doc": "AutomationsFileName is the shared project-root YAML file holding agent automations beside game.yaml.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "AutomationsSchemaComment",
              "anchor": "AutomationsSchemaComment"
            }
          ],
          "decl": "const AutomationsSchemaComment = \"# yaml-language-server: $schema=\" + AutomationsSchemaURL",
          "doc": "AutomationsSchemaComment is the first line EncodeAutomations writes: a YAML comment pointing a YAML language server at AutomationsSchemaURL. ParseAutomations ignores it like any other comment.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 32
        },
        {
          "idents": [
            {
              "name": "AutomationsSchemaURL",
              "anchor": "AutomationsSchemaURL"
            }
          ],
          "decl": "const AutomationsSchemaURL = \"https://game.nsgo.dev/schemas/automations.v1.json\"",
          "doc": "AutomationsSchemaURL is where the JSON Schema of version 1 automations files is published.\nEncodeAutomations writes it in a yaml-language-server comment on the first line so editors and AI tools validate and complete automations.yaml as it is written.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 29
        },
        {
          "idents": [
            {
              "name": "AutomationsStateFile",
              "anchor": "AutomationsStateFile"
            }
          ],
          "decl": "const AutomationsStateFile = \".nsgo/automations-state.yaml\"",
          "doc": "AutomationsStateFile is the git-ignored project-relative YAML file storing local weekly run history, daily trigger watermarks, and pause-for-today state.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 38
        },
        {
          "idents": [
            {
              "name": "AutomationsVersion",
              "anchor": "AutomationsVersion"
            }
          ],
          "decl": "const AutomationsVersion = 1",
          "doc": "AutomationsVersion is the YAML schema version of project automations files (automations.yaml).\n",
          "file": "pkg/editor/automations_format.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "BuildFailureNotice",
              "anchor": "BuildFailureNotice"
            }
          ],
          "decl": "const BuildFailureNotice = \"Other platforms keep building. Nothing was uploaded.\"",
          "doc": "BuildFailureNotice is shown on every failed preset to reassure the author that remaining targets continue and nothing is uploaded.\n",
          "file": "pkg/editor/build_release.go",
          "line": 37
        },
        {
          "idents": [
            {
              "name": "CheckpointManifestFile",
              "anchor": "CheckpointManifestFile"
            }
          ],
          "decl": "const CheckpointManifestFile = \"manifest.yaml\"",
          "doc": "CheckpointManifestFile is the manifest filename inside each checkpoint directory under CheckpointsDir.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 35
        },
        {
          "idents": [
            {
              "name": "CheckpointSchemaURL",
              "anchor": "CheckpointSchemaURL"
            }
          ],
          "decl": "const CheckpointSchemaURL = \"https://game.nsgo.dev/schemas/checkpoint.v1.json\"",
          "doc": "CheckpointSchemaURL is the published JSON Schema URL for checkpoint manifests.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 29
        },
        {
          "idents": [
            {
              "name": "CheckpointVersion",
              "anchor": "CheckpointVersion"
            }
          ],
          "decl": "const CheckpointVersion = 1",
          "doc": "CheckpointVersion is the schema version of checkpoint manifest YAML files stored under .nsgo/checkpoints/.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "CheckpointsDir",
              "anchor": "CheckpointsDir"
            }
          ],
          "decl": "const CheckpointsDir = \".nsgo/checkpoints\"",
          "doc": "CheckpointsDir is the slash-separated path from a project root where persistent turn checkpoints are stored.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 32
        },
        {
          "idents": [
            {
              "name": "DefaultAgentThreadID",
              "anchor": "DefaultAgentThreadID"
            }
          ],
          "decl": "const DefaultAgentThreadID = \"default\"",
          "doc": "DefaultAgentThreadID is the filename stem of the default project thread file (.nsgo/threads/default.thread.yaml).\n",
          "file": "pkg/editor/tasks.go",
          "line": 29
        },
        {
          "idents": [
            {
              "name": "DefaultCheckpointMaxBytes",
              "anchor": "DefaultCheckpointMaxBytes"
            }
          ],
          "decl": "const DefaultCheckpointMaxBytes int64 = 128 << 20",
          "doc": "DefaultCheckpointMaxBytes is the default total disk budget for .nsgo/checkpoints before the oldest checkpoints are pruned (128 MiB).\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 38
        },
        {
          "idents": [
            {
              "name": "DefaultReleaseNotesFile",
              "anchor": "DefaultReleaseNotesFile"
            }
          ],
          "decl": "const DefaultReleaseNotesFile = \"release-notes.md\"",
          "doc": "DefaultReleaseNotesFile is the project-relative Markdown file written by the Build and Release screen's\nRELEASE NOTES editor when no explicit -release-notes path has been configured in the Export panel.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "KeychainServiceName",
              "anchor": "KeychainServiceName"
            }
          ],
          "decl": "const KeychainServiceName = \"dev.nsgo.game.publish\"",
          "doc": "KeychainServiceName is the system keychain service identifier used to store release upload credentials\noutside any game project directory.\n",
          "file": "pkg/editor/keychain.go",
          "line": 53
        },
        {
          "idents": [
            {
              "name": "LayoutFileName",
              "anchor": "LayoutFileName"
            }
          ],
          "decl": "const LayoutFileName = \"layout.yaml\"",
          "doc": "LayoutFileName is the filename of the per-user editor dock layout stored in the OS user config directory.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "LayoutVersion",
              "anchor": "LayoutVersion"
            }
          ],
          "decl": "const LayoutVersion = 1",
          "doc": "LayoutVersion is the schema version of the per-user editor dock layout YAML file.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "MaterialPreviewSize",
              "anchor": "MaterialPreviewSize"
            }
          ],
          "decl": "const MaterialPreviewSize = 128",
          "doc": "MaterialPreviewSize is the width and height in pixels of the Material Editor's rendered 3D preview.\n",
          "file": "pkg/editor/materials.go",
          "line": 59
        },
        {
          "idents": [
            {
              "name": "MaxRecentProjects",
              "anchor": "MaxRecentProjects"
            }
          ],
          "decl": "const MaxRecentProjects = 20",
          "doc": "MaxRecentProjects caps how many recent project entries are retained.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "ModelThumbnailSize",
              "anchor": "ModelThumbnailSize"
            }
          ],
          "decl": "const ModelThumbnailSize = 64",
          "doc": "ModelThumbnailSize is the width and height in pixels of the thumbnails ModelThumbnail renders.\n",
          "file": "pkg/editor/model_thumbs.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "PermissionsFileName",
              "anchor": "PermissionsFileName"
            }
          ],
          "decl": "const PermissionsFileName = \"permissions.yaml\"",
          "doc": "PermissionsFileName is the tracked project file beside game.yaml that stores shared MCP agent permission profiles and rules.\nPer-machine editor state stays under git-ignored .nsgo/ and .game/, while shared project permissions live beside game.yaml so teams track and review them in Git.\n",
          "file": "pkg/editor/permissions.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "PermissionsSchemaComment",
              "anchor": "PermissionsSchemaComment"
            }
          ],
          "decl": "const PermissionsSchemaComment = \"# yaml-language-server: $schema=\" + PermissionsSchemaURL",
          "doc": "PermissionsSchemaComment is the first line EncodePermissions writes: a YAML comment pointing a YAML language server at PermissionsSchemaURL. ParsePermissions ignores it like any other comment.\n",
          "file": "pkg/editor/permissions.go",
          "line": 35
        },
        {
          "idents": [
            {
              "name": "PermissionsSchemaURL",
              "anchor": "PermissionsSchemaURL"
            }
          ],
          "decl": "const PermissionsSchemaURL = \"https://game.nsgo.dev/schemas/permissions.v1.json\"",
          "doc": "PermissionsSchemaURL is where the JSON Schema of version 1 project permission rules files is published.\nEncodePermissions writes it in a yaml-language-server comment on the first line so editors and AI tools validate and complete permissions.yaml as it is edited.\n",
          "file": "pkg/editor/permissions.go",
          "line": 32
        },
        {
          "idents": [
            {
              "name": "PermissionsVersion",
              "anchor": "PermissionsVersion"
            }
          ],
          "decl": "const PermissionsVersion = 1",
          "doc": "PermissionsVersion is the YAML schema version of project permission rules files (permissions.yaml).\n",
          "file": "pkg/editor/permissions.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "ProjectRulesFileName",
              "anchor": "ProjectRulesFileName"
            }
          ],
          "decl": "const ProjectRulesFileName = \"AGENTS.md\"",
          "doc": "ProjectRulesFileName is the shared Markdown instructions file at a project's root\nread by Claude Code, Codex, and the built-in editor agent.\n",
          "file": "pkg/editor/brief_rules.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "RecentProjectsFileName",
              "anchor": "RecentProjectsFileName"
            }
          ],
          "decl": "const RecentProjectsFileName = \"recent-projects.yaml\"",
          "doc": "RecentProjectsFileName is the filename of the per-user recent projects list.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "RecentProjectsVersion",
              "anchor": "RecentProjectsVersion"
            }
          ],
          "decl": "const RecentProjectsVersion = 1",
          "doc": "RecentProjectsVersion is the schema version of the per-user recent projects YAML file.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "SettingsSchemaComment",
              "anchor": "SettingsSchemaComment"
            }
          ],
          "decl": "const SettingsSchemaComment = \"# yaml-language-server: $schema=\" + SettingsSchemaURL",
          "doc": "SettingsSchemaComment is the first line EncodeEditorSettings writes: a YAML comment pointing a YAML language server at SettingsSchemaURL. ParseEditorSettings ignores it like any other comment.\n",
          "file": "pkg/editor/settings.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "SettingsSchemaURL",
              "anchor": "SettingsSchemaURL"
            }
          ],
          "decl": "const SettingsSchemaURL = \"https://game.nsgo.dev/schemas/editor-settings.v1.json\"",
          "doc": "SettingsSchemaURL is where the JSON Schema of version 1 editor settings files is published.\nEncodeEditorSettings names it in a yaml-language-server comment on the first line so editors and AI tools validate and complete editor settings files as they are written.\n",
          "file": "pkg/editor/settings.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "SettingsVersion",
              "anchor": "SettingsVersion"
            }
          ],
          "decl": "const SettingsVersion = 1",
          "doc": "SettingsVersion is the YAML schema version of per-user editor settings files.\n",
          "file": "pkg/editor/settings.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "ViewStateFile",
              "anchor": "ViewStateFile"
            }
          ],
          "decl": "const ViewStateFile = \".game/editor.yaml\"",
          "doc": "ViewStateFile is where the editor keeps its view of each scene of a project, the 3D viewport's camera among it, as a slash-separated path from the project's root: a file of the editor's own, under the .game folder a project leaves out of version control, so moving the camera never changes a file anyone reviews.\n",
          "file": "pkg/editor/viewstate.go",
          "line": 18
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrAgentLimitReached",
              "anchor": "ErrAgentLimitReached"
            },
            {
              "name": "ErrAgentAPIKeyMissing",
              "anchor": "ErrAgentAPIKeyMissing"
            },
            {
              "name": "ErrBuiltInEndpointInsecure",
              "anchor": "ErrBuiltInEndpointInsecure"
            }
          ],
          "decl": "var (\n\t// ErrAgentLimitReached is returned when a request cannot run immediately because the weekly request limit has been reached.\n\tErrAgentLimitReached = errors.New(\"editor: weekly agent request limit reached\")\n\n\t// ErrAgentAPIKeyMissing is returned when the built-in agent has no API key stored in NSGo secrets or the system keychain.\n\tErrAgentAPIKeyMissing = errors.New(\"editor: built-in agent API key is not configured in system keychain\")\n\n\t// ErrBuiltInEndpointInsecure is returned when BuiltInAgentEndpoint is not an https:// URL (or loopback http:// URL for local testing).\n\tErrBuiltInEndpointInsecure = errors.New(\"editor: built-in agent endpoint must use https:// (or loopback http://)\")\n)",
          "doc": "",
          "file": "pkg/editor/agent_builtin.go",
          "line": 44
        },
        {
          "idents": [
            {
              "name": "ErrNonLANAddress",
              "anchor": "ErrNonLANAddress"
            },
            {
              "name": "ErrNoWebBuildDir",
              "anchor": "ErrNoWebBuildDir"
            },
            {
              "name": "ErrWebBridgeSessionNotFound",
              "anchor": "ErrWebBridgeSessionNotFound"
            },
            {
              "name": "ErrNoAndroidDevice",
              "anchor": "ErrNoAndroidDevice"
            },
            {
              "name": "ErrAndroidBuildNotReady",
              "anchor": "ErrAndroidBuildNotReady"
            }
          ],
          "decl": "var (\n\t// ErrNonLANAddress is returned when the web build server is asked to bind to or advertise a non-local/non-LAN IP.\n\tErrNonLANAddress = errors.New(\"editor: web build server refuses non-LAN address\")\n\t// ErrNoWebBuildDir is returned when no built web directory or archive can be located to serve.\n\tErrNoWebBuildDir = errors.New(\"editor: no web build directory found to serve\")\n\t// ErrWebBridgeSessionNotFound is returned when calling a tool on an unknown or disconnected phone session.\n\tErrWebBridgeSessionNotFound = errors.New(\"editor: web MCP bridge session not found\")\n\t// ErrNoAndroidDevice is returned when running an Android build on USB without a connected Android device.\n\tErrNoAndroidDevice = errors.New(\"editor: no connected Android USB device\")\n\t// ErrAndroidBuildNotReady is returned when attempting to run on an Android USB device before the Android build succeeds.\n\tErrAndroidBuildNotReady = errors.New(\"editor: Android build has not finished yet\")\n)",
          "doc": "",
          "file": "pkg/editor/build_device.go",
          "line": 33
        },
        {
          "idents": [
            {
              "name": "ErrNoChangesSession",
              "anchor": "ErrNoChangesSession"
            },
            {
              "name": "ErrMergeConflictInProgress",
              "anchor": "ErrMergeConflictInProgress"
            },
            {
              "name": "ErrUnsavedChanges",
              "anchor": "ErrUnsavedChanges"
            },
            {
              "name": "ErrChangesBusy",
              "anchor": "ErrChangesBusy"
            }
          ],
          "decl": "var (\n\t// ErrNoChangesSession is returned when a Changes action runs while the Changes panel has no active session.\n\tErrNoChangesSession = errors.New(\"editor: changes panel is not open\")\n\t// ErrMergeConflictInProgress is returned when a Changes action is blocked by an unresolved Git merge conflict.\n\tErrMergeConflictInProgress = errors.New(\"editor: resolve the active Git merge conflict before using Changes\")\n\t// ErrUnsavedChanges is returned when switching branches or pulling while open editor files have unsaved changes.\n\tErrUnsavedChanges = errors.New(\"editor: save or discard unsaved changes before switching branches or pulling\")\n\t// ErrChangesBusy is returned when an asynchronous Changes operation is already running.\n\tErrChangesBusy = errors.New(\"editor: a Git or check operation is already in progress\")\n)",
          "doc": "",
          "file": "pkg/editor/changes.go",
          "line": 270
        },
        {
          "idents": [
            {
              "name": "ErrNoCodeReview",
              "anchor": "ErrNoCodeReview"
            },
            {
              "name": "ErrCodeReviewChecksNotPassed",
              "anchor": "ErrCodeReviewChecksNotPassed"
            },
            {
              "name": "ErrCodeReviewNotGoFile",
              "anchor": "ErrCodeReviewNotGoFile"
            },
            {
              "name": "ErrCodeReviewNothingToKeep",
              "anchor": "ErrCodeReviewNothingToKeep"
            },
            {
              "name": "ErrCodeReviewPathOutsideProject",
              "anchor": "ErrCodeReviewPathOutsideProject"
            }
          ],
          "decl": "var (\n\t// ErrNoCodeReview is returned when a Go code review action runs with no active review session.\n\tErrNoCodeReview = errors.New(\"editor: no active Go code review\")\n\t// ErrCodeReviewChecksNotPassed is returned when attempting to confirm a Go file before nsgo check and nsgo test pass for the current pending code.\n\tErrCodeReviewChecksNotPassed = errors.New(\"editor: cannot confirm Go file until nsgo check and nsgo test pass\")\n\t// ErrCodeReviewNotGoFile is returned when ConfirmCodeReviewFile targets a non-Go file.\n\tErrCodeReviewNotGoFile = errors.New(\"editor: only Go files require per-file confirmation\")\n\t// ErrCodeReviewNothingToKeep is returned when KeepCodeReview has no pending YAML files and no confirmed Go files to write.\n\tErrCodeReviewNothingToKeep = errors.New(\"editor: no YAML changes or confirmed Go files ready to keep\")\n\t// ErrCodeReviewPathOutsideProject is returned when a proposed file path escapes the open project root.\n\tErrCodeReviewPathOutsideProject = errors.New(\"editor: path escapes the project root\")\n)",
          "doc": "",
          "file": "pkg/editor/code_review.go",
          "line": 71
        },
        {
          "idents": [
            {
              "name": "ErrCommandNotFound",
              "anchor": "ErrCommandNotFound"
            },
            {
              "name": "ErrCommandDisabled",
              "anchor": "ErrCommandDisabled"
            }
          ],
          "decl": "var (\n\t// ErrCommandNotFound is returned by ExecuteCommand when no active command has the requested ID.\n\tErrCommandNotFound = errors.New(\"editor: command not found\")\n\t// ErrCommandDisabled is returned by ExecuteCommand when the target command is currently disabled.\n\tErrCommandDisabled = errors.New(\"editor: command is disabled\")\n)",
          "doc": "",
          "file": "pkg/editor/commands.go",
          "line": 174
        },
        {
          "idents": [
            {
              "name": "ErrProfilerNotConnected",
              "anchor": "ErrProfilerNotConnected"
            },
            {
              "name": "ErrNoProfilerFrames",
              "anchor": "ErrNoProfilerFrames"
            }
          ],
          "decl": "var (\n\t// ErrProfilerNotConnected is returned by PollProfiler when no running game profiler client is connected.\n\tErrProfilerNotConnected = errors.New(\"editor: profiler is not connected to a running game\")\n\t// ErrNoProfilerFrames is returned by ExportProfilerTrace when no frames have been recorded yet.\n\tErrNoProfilerFrames = errors.New(\"editor: no profiler frames recorded to export\")\n)",
          "doc": "",
          "file": "pkg/editor/profiler.go",
          "line": 39
        },
        {
          "idents": [
            {
              "name": "ErrNoReview",
              "anchor": "ErrNoReview"
            },
            {
              "name": "ErrReviewBlocked",
              "anchor": "ErrReviewBlocked"
            },
            {
              "name": "ErrReviewReadOnlyRound",
              "anchor": "ErrReviewReadOnlyRound"
            },
            {
              "name": "ErrReviewNoteEmpty",
              "anchor": "ErrReviewNoteEmpty"
            },
            {
              "name": "ErrReviewNoteTooLong",
              "anchor": "ErrReviewNoteTooLong"
            },
            {
              "name": "ErrReviewNotesLimit",
              "anchor": "ErrReviewNotesLimit"
            },
            {
              "name": "ErrReviewNoNotesToSend",
              "anchor": "ErrReviewNoNotesToSend"
            },
            {
              "name": "ErrReviewChangeNotFound",
              "anchor": "ErrReviewChangeNotFound"
            },
            {
              "name": "ErrReviewChangeNotNoted",
              "anchor": "ErrReviewChangeNotNoted"
            },
            {
              "name": "ErrReviewMaxRounds",
              "anchor": "ErrReviewMaxRounds"
            },
            {
              "name": "ErrReviewInvalidRound",
              "anchor": "ErrReviewInvalidRound"
            },
            {
              "name": "ErrReviewYAMLInvalid",
              "anchor": "ErrReviewYAMLInvalid"
            }
          ],
          "decl": "var (\n\t// ErrNoReview is returned by review actions when no agent turn review is pending.\n\tErrNoReview = errors.New(\"editor: no agent turn review is open\")\n\t// ErrReviewBlocked is returned by KeepTurnReview when an unresolved blocker prevents keeping.\n\tErrReviewBlocked = errors.New(\"editor: review has an unresolved blocker\")\n\t// ErrReviewReadOnlyRound is returned when trying to edit, revert, or add notes while viewing an earlier round.\n\tErrReviewReadOnlyRound = errors.New(\"editor: earlier review rounds are read-only\")\n\t// ErrReviewNoteEmpty is returned when saving or sending an empty note.\n\tErrReviewNoteEmpty = errors.New(\"editor: review note cannot be empty\")\n\t// ErrReviewNoteTooLong is returned when a review note exceeds maxReviewNoteLen runes.\n\tErrReviewNoteTooLong = errors.New(\"editor: review note exceeds maximum length\")\n\t// ErrReviewNotesLimit is returned when a review exceeds maxReviewNotesCount simultaneous notes.\n\tErrReviewNotesLimit = errors.New(\"editor: review has too many active notes\")\n\t// ErrReviewNoNotesToSend is returned by SendReviewNotes when no unsent notes exist.\n\tErrReviewNoNotesToSend = errors.New(\"editor: no unsent review notes to send\")\n\t// ErrReviewChangeNotFound is returned when a change ID does not exist in the active review.\n\tErrReviewChangeNotFound = errors.New(\"editor: review change not found\")\n\t// ErrReviewChangeNotNoted is returned by ApplyReviewRedo when targeting a change that was not noted and sent.\n\tErrReviewChangeNotNoted = errors.New(\"editor: review_redo can modify only changes you left notes on\")\n\t// ErrReviewMaxRounds is returned when a review reaches maxReviewRounds.\n\tErrReviewMaxRounds = errors.New(\"editor: review reached maximum number of rounds\")\n\t// ErrReviewInvalidRound is returned when selecting an out-of-range review round.\n\tErrReviewInvalidRound = errors.New(\"editor: invalid review round\")\n\t// ErrReviewYAMLInvalid is returned by FinishReviewYAMLEdit when the hand-edited YAML does not parse or validate.\n\tErrReviewYAMLInvalid = errors.New(\"editor: review YAML is invalid\")\n)",
          "doc": "",
          "file": "pkg/editor/review.go",
          "line": 39
        },
        {
          "idents": [
            {
              "name": "ErrSketchEmpty",
              "anchor": "ErrSketchEmpty"
            },
            {
              "name": "ErrSketchHoldActive",
              "anchor": "ErrSketchHoldActive"
            },
            {
              "name": "ErrNoSketchReview",
              "anchor": "ErrNoSketchReview"
            }
          ],
          "decl": "var (\n\t// ErrSketchEmpty is returned when sending or reading a sketch with no marks.\n\tErrSketchEmpty = errors.New(\"editor: no sketch marks on the viewport\")\n\t// ErrSketchHoldActive is returned when a mutating agent edit runs while a sent sketch awaits confirmation.\n\tErrSketchHoldActive = errors.New(\"editor: sent sketch is waiting for confirmation (Go ahead or Correct a mark)\")\n\t// ErrNoSketchReview is returned when Keep or Revert is invoked without an open sketch review.\n\tErrNoSketchReview = errors.New(\"editor: no sketch review is open\")\n)",
          "doc": "",
          "file": "pkg/editor/sketch.go",
          "line": 394
        },
        {
          "idents": [
            {
              "name": "AgentModelRetryDelays",
              "anchor": "AgentModelRetryDelays"
            }
          ],
          "decl": "var AgentModelRetryDelays = []time.Duration{\n\t4 * time.Second,\n\t8 * time.Second,\n\t16 * time.Second,\n\t32 * time.Second,\n}",
          "doc": "AgentModelRetryDelays is the exponential backoff schedule used when a model endpoint returns a retryable error (429, 5xx, 529 overloaded):\ntry 1 = 4 s, try 2 = 8 s, try 3 = 16 s, try 4 = 32 s (matching docs/design/editor/AgentStates.dc.html: \"Retrying in 8 s · try 2 of 4\").\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 60
        },
        {
          "idents": [
            {
              "name": "AgentReconnectDelays",
              "anchor": "AgentReconnectDelays"
            }
          ],
          "decl": "var AgentReconnectDelays = []time.Duration{\n\t1 * time.Second,\n\t2 * time.Second,\n\t4 * time.Second,\n\t8 * time.Second,\n\t16 * time.Second,\n}",
          "doc": "AgentReconnectDelays is the exponential backoff schedule used when an MCP connection drops (1, 2, 4, 8, and 16 seconds).\n",
          "file": "pkg/editor/agent.go",
          "line": 98
        },
        {
          "idents": [
            {
              "name": "AllAgentTaskKinds",
              "anchor": "AllAgentTaskKinds"
            }
          ],
          "decl": "var AllAgentTaskKinds = []AgentTaskKind{\n\tAgentTaskSceneEdit,\n\tAgentTaskPlaytest,\n\tAgentTaskProblems,\n\tAgentTaskAskInPlace,\n\tAgentTaskArtSound,\n}",
          "doc": "AllAgentTaskKinds lists the WHO DOES WHAT rows in the canonical order of docs/design/editor/Settings.dc.html.\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 179
        },
        {
          "idents": [
            {
              "name": "AudioEffectKinds",
              "anchor": "AudioEffectKinds"
            }
          ],
          "decl": "var AudioEffectKinds = []AudioEffectKind{\n\tAudioEffectLowPass,\n\tAudioEffectHighPass,\n\tAudioEffectDelay,\n\tAudioEffectReverb,\n\tAudioEffectGain,\n\tAudioEffectBitcrush,\n}",
          "doc": "AudioEffectKinds lists every effect kind supported by the audio bus mixer in display order.\n",
          "file": "pkg/editor/audio_mixer_panel.go",
          "line": 36
        },
        {
          "idents": [
            {
              "name": "ErrAgentSettingsYouOnly",
              "anchor": "ErrAgentSettingsYouOnly"
            }
          ],
          "decl": "var ErrAgentSettingsYouOnly = errors.New(\"editor: agent settings are You only and cannot be changed by an agent\")",
          "doc": "ErrAgentSettingsYouOnly is returned when an agent attempts to change a You-only agent setting\n(models, tool switches, external MCP servers, weekly usage limit, or privacy switches).\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 36
        },
        {
          "idents": [
            {
              "name": "ErrAgentTouchingObject",
              "anchor": "ErrAgentTouchingObject"
            }
          ],
          "decl": "var ErrAgentTouchingObject = errors.New(\"editor: object is currently being edited by the agent\")",
          "doc": "ErrAgentTouchingObject is returned when a manual edit attempts to modify an object\nthat the agent is currently touching during an active step.\n",
          "file": "pkg/editor/agent_live.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ErrAssetsBuildUnsupported",
              "anchor": "ErrAssetsBuildUnsupported"
            }
          ],
          "decl": "var ErrAssetsBuildUnsupported = errors.New(\"editor: building assets is only supported on desktop\")",
          "doc": "ErrAssetsBuildUnsupported is returned by BuildAssets and ReimportAsset on non-desktop targets when AssetsCommandRunner is nil.\n",
          "file": "pkg/editor/asset_build.go",
          "line": 29
        },
        {
          "idents": [
            {
              "name": "ErrAssetsBuilding",
              "anchor": "ErrAssetsBuilding"
            }
          ],
          "decl": "var ErrAssetsBuilding = errors.New(\"editor: asset build is already running\")",
          "doc": "ErrAssetsBuilding is returned by BuildAssets and ReimportAsset when an asset build is already running.\n",
          "file": "pkg/editor/asset_build.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "ErrAutomationYouOnly",
              "anchor": "ErrAutomationYouOnly"
            }
          ],
          "decl": "var ErrAutomationYouOnly = errors.New(\"editor: automations cannot apply You-only drafts or modify automation settings\")",
          "doc": "ErrAutomationYouOnly is returned when an agent actor or automation attempts to apply a You-only draft, keep/dismiss its own review, mutate automations.yaml, or restore a checkpoint.\n",
          "file": "pkg/editor/automations.go",
          "line": 41
        },
        {
          "idents": [
            {
              "name": "ErrCreateProjectRunning",
              "anchor": "ErrCreateProjectRunning"
            }
          ],
          "decl": "var ErrCreateProjectRunning = errors.New(\"editor: project creation is already running\")",
          "doc": "ErrCreateProjectRunning is returned by StartCreateProject when a project creation command is already running.\n",
          "file": "pkg/editor/start_screen.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ErrCredentialNotFound",
              "anchor": "ErrCredentialNotFound"
            }
          ],
          "decl": "var ErrCredentialNotFound = errors.New(\"editor: credential not found in system keychain\")",
          "doc": "ErrCredentialNotFound is returned by Keychain.Get when no credential is stored for the requested account.\n",
          "file": "pkg/editor/keychain.go",
          "line": 56
        },
        {
          "idents": [
            {
              "name": "ErrDiskConflict",
              "anchor": "ErrDiskConflict"
            }
          ],
          "decl": "var ErrDiskConflict = errors.New(\"editor: file changed on disk since it was opened or last saved\")",
          "doc": "ErrDiskConflict is returned by Save, SaveFile, SaveProject, and SaveClipFile when the target file on disk changed since the editor opened or last saved it, refusing to overwrite external changes until the user confirms.\n",
          "file": "pkg/editor/disk_watch.go",
          "line": 36
        },
        {
          "idents": [
            {
              "name": "ErrExportRunning",
              "anchor": "ErrExportRunning"
            }
          ],
          "decl": "var ErrExportRunning = errors.New(\"editor: an export build is already running\")",
          "doc": "ErrExportRunning is returned by StartExportBuild when a release build or dry run is already running.\n",
          "file": "pkg/editor/export_panel.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "ErrFileExists",
              "anchor": "ErrFileExists"
            }
          ],
          "decl": "var ErrFileExists = errors.New(\"editor: a file already exists at that path\")",
          "doc": "ErrFileExists is returned by NewScene and SaveSceneAs for a path where the project already holds a file, which they never overwrite.\n",
          "file": "pkg/editor/scenefile.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ErrGameRunning",
              "anchor": "ErrGameRunning"
            }
          ],
          "decl": "var ErrGameRunning = errors.New(\"editor: game is already running\")",
          "doc": "ErrGameRunning is returned by RunGame and RunGameWith when a game process is already running.\n",
          "file": "pkg/editor/run_game.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ErrHistoryPreview",
              "anchor": "ErrHistoryPreview"
            }
          ],
          "decl": "var ErrHistoryPreview = errors.New(\"editor: cannot edit while previewing history\")",
          "doc": "ErrHistoryPreview is returned when an edit is attempted while read-only History point-in-time preview is active.\n",
          "file": "pkg/editor/history.go",
          "line": 51
        },
        {
          "idents": [
            {
              "name": "ErrInvalidPublishDestination",
              "anchor": "ErrInvalidPublishDestination"
            }
          ],
          "decl": "var ErrInvalidPublishDestination = errors.New(\"editor: unknown publish destination\")",
          "doc": "ErrInvalidPublishDestination is returned when an unknown store destination is supplied.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 90
        },
        {
          "idents": [
            {
              "name": "ErrKeychainUnavailable",
              "anchor": "ErrKeychainUnavailable"
            }
          ],
          "decl": "var ErrKeychainUnavailable = errors.New(\"editor: system keychain unavailable on this platform\")",
          "doc": "ErrKeychainUnavailable is returned when the host platform does not expose a desktop system keychain.\n",
          "file": "pkg/editor/keychain.go",
          "line": 59
        },
        {
          "idents": [
            {
              "name": "ErrNoAgentTurn",
              "anchor": "ErrNoAgentTurn"
            }
          ],
          "decl": "var ErrNoAgentTurn = errors.New(\"editor: no pending agent turn\")",
          "doc": "ErrNoAgentTurn is returned when KeepAgentTurn or RevertAgentTurn is called without a pending agent turn.\n",
          "file": "pkg/editor/agent_live.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "ErrNoClip",
              "anchor": "ErrNoClip"
            }
          ],
          "decl": "var ErrNoClip = errors.New(\"editor: no animation clip is open\")",
          "doc": "ErrNoClip is returned by animation edits when no clip is open.\n",
          "file": "pkg/editor/animation.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ErrNoCutscene",
              "anchor": "ErrNoCutscene"
            }
          ],
          "decl": "var ErrNoCutscene = errors.New(\"editor: no cutscene is open\")",
          "doc": "ErrNoCutscene is returned by cutscene timeline edits when no cutscene document is open.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "ErrNoCutsceneReview",
              "anchor": "ErrNoCutsceneReview"
            }
          ],
          "decl": "var ErrNoCutsceneReview = errors.New(\"editor: no cutscene review is open\")",
          "doc": "ErrNoCutsceneReview is returned by cutscene review actions when no review is open.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "ErrNoDataTable",
              "anchor": "ErrNoDataTable"
            }
          ],
          "decl": "var ErrNoDataTable = errors.New(\"editor: no data table is open\")",
          "doc": "ErrNoDataTable is returned by data table edits when no data table is open.\n",
          "file": "pkg/editor/datatable.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ErrNoDataTableReview",
              "anchor": "ErrNoDataTableReview"
            }
          ],
          "decl": "var ErrNoDataTableReview = errors.New(\"editor: no data table review is open\")",
          "doc": "ErrNoDataTableReview is returned by data table review actions when no data table review is active.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ErrNoDraftRulesTicked",
              "anchor": "ErrNoDraftRulesTicked"
            }
          ],
          "decl": "var ErrNoDraftRulesTicked = errors.New(\"editor: tick at least one rule before applying the permissions draft\")",
          "doc": "ErrNoDraftRulesTicked is returned when ApplyPermissionsDraft is called with zero rules ticked.\n",
          "file": "pkg/editor/you_only.go",
          "line": 215
        },
        {
          "idents": [
            {
              "name": "ErrNoGridMap",
              "anchor": "ErrNoGridMap"
            }
          ],
          "decl": "var ErrNoGridMap = errors.New(\"editor: no grid map is open\")",
          "doc": "ErrNoGridMap is returned when a GridMap operation is called while no GridMap is open in the editor.\n",
          "file": "pkg/editor/gridmap.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "ErrNoGridMapFile",
              "anchor": "ErrNoGridMapFile"
            }
          ],
          "decl": "var ErrNoGridMapFile = errors.New(\"editor: the grid map has no file; save it under a path first\")",
          "doc": "ErrNoGridMapFile is returned by SaveGridMap while the open GridMap has no file path and no OnSaveGridMap callback.\n",
          "file": "pkg/editor/gridmap.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "ErrNoHUDScreen",
              "anchor": "ErrNoHUDScreen"
            }
          ],
          "decl": "var ErrNoHUDScreen = errors.New(\"editor: no HUD screen open\")",
          "doc": "ErrNoHUDScreen is returned by HUD layout edits when no screen document is currently open.\n",
          "file": "pkg/editor/hud_layout.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "ErrNoLocalization",
              "anchor": "ErrNoLocalization"
            }
          ],
          "decl": "var ErrNoLocalization = errors.New(\"editor: no localization tables open\")",
          "doc": "ErrNoLocalization is returned by localization edits when the Localization panel has no tables open.\n",
          "file": "pkg/editor/localization_panel.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "ErrNoMaterial",
              "anchor": "ErrNoMaterial"
            }
          ],
          "decl": "var ErrNoMaterial = errors.New(\"editor: no material is open\")",
          "doc": "ErrNoMaterial is returned by material editor operations when no material is open.\n",
          "file": "pkg/editor/materials.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "ErrNoMergeConflict",
              "anchor": "ErrNoMergeConflict"
            }
          ],
          "decl": "var ErrNoMergeConflict = errors.New(\"editor: no active scene merge conflict session\")",
          "doc": "ErrNoMergeConflict is returned when a merge resolution operation is called without an active conflict session.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 191
        },
        {
          "idents": [
            {
              "name": "ErrNoParticleEmitter",
              "anchor": "ErrNoParticleEmitter"
            }
          ],
          "decl": "var ErrNoParticleEmitter = errors.New(\"editor: no particle emitter is open\")",
          "doc": "ErrNoParticleEmitter is returned by particle emitter edits when no emitter is open.\n",
          "file": "pkg/editor/particles.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "ErrNoPermissionsDraft",
              "anchor": "ErrNoPermissionsDraft"
            }
          ],
          "decl": "var ErrNoPermissionsDraft = errors.New(\"editor: no permissions draft is open\")",
          "doc": "ErrNoPermissionsDraft is returned when applying a draft while none is open.\n",
          "file": "pkg/editor/you_only.go",
          "line": 212
        },
        {
          "idents": [
            {
              "name": "ErrNoProject",
              "anchor": "ErrNoProject"
            }
          ],
          "decl": "var ErrNoProject = errors.New(\"editor: no project open\")",
          "doc": "ErrNoProject is returned by EditProject and SaveProject before OpenProject has opened a game.yaml.\n",
          "file": "pkg/editor/project.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ErrNoReleasePresetsIncluded",
              "anchor": "ErrNoReleasePresetsIncluded"
            }
          ],
          "decl": "var ErrNoReleasePresetsIncluded = errors.New(\"editor: no buildable export presets are included in this release\")",
          "doc": "ErrNoReleasePresetsIncluded is returned by StartReleaseBuild when no ready preset is checked for inclusion.\n",
          "file": "pkg/editor/build_release.go",
          "line": 34
        },
        {
          "idents": [
            {
              "name": "ErrNoRig",
              "anchor": "ErrNoRig"
            }
          ],
          "decl": "var ErrNoRig = errors.New(\"editor: no skeletal rig is open\")",
          "doc": "ErrNoRig is returned by skeletal rig editor operations when no rig is open.\n",
          "file": "pkg/editor/rig.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "ErrNoRooms",
              "anchor": "ErrNoRooms"
            }
          ],
          "decl": "var ErrNoRooms = errors.New(\"editor: no room map is open\")",
          "doc": "ErrNoRooms is returned by room-map edits and saves when no room map is open.\n",
          "file": "pkg/editor/rooms.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "ErrNoRoomsFile",
              "anchor": "ErrNoRoomsFile"
            }
          ],
          "decl": "var ErrNoRoomsFile = errors.New(\"editor: the room map has no file; save it under a path first\")",
          "doc": "ErrNoRoomsFile is returned by SaveRooms when the open room map has no file path and no OnSaveRooms callback.\n",
          "file": "pkg/editor/rooms.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "ErrNoSceneFile",
              "anchor": "ErrNoSceneFile"
            }
          ],
          "decl": "var ErrNoSceneFile = errors.New(\"editor: the scene has no file; save it under a path first\")",
          "doc": "ErrNoSceneFile is returned by Save and RevertScene while the open scene has no file to write to or read back: it was never opened from or saved to one, and no OnSave persists it.\n",
          "file": "pkg/editor/scenefile.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ErrNoStates",
              "anchor": "ErrNoStates"
            }
          ],
          "decl": "var ErrNoStates = errors.New(\"editor: no sprite state machine is open\")",
          "doc": "ErrNoStates is returned by state machine edits when no *.states.yaml document is open.\n",
          "file": "pkg/editor/states.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "ErrNoTerrain",
              "anchor": "ErrNoTerrain"
            }
          ],
          "decl": "var ErrNoTerrain = errors.New(\"editor: no terrain is open\")",
          "doc": "ErrNoTerrain is returned by terrain operations when no terrain is open in the editor.\n",
          "file": "pkg/editor/terrain.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "ErrNoTerrainPath",
              "anchor": "ErrNoTerrainPath"
            }
          ],
          "decl": "var ErrNoTerrainPath = errors.New(\"editor: the terrain has no file path; use SaveTerrainTo first\")",
          "doc": "ErrNoTerrainPath is returned by SaveTerrain when the open terrain has no file path yet.\n",
          "file": "pkg/editor/terrain.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "ErrNoTileReview",
              "anchor": "ErrNoTileReview"
            }
          ],
          "decl": "var ErrNoTileReview = errors.New(\"editor: no tile edit review is open\")",
          "doc": "ErrNoTileReview is returned by tile review actions when no tile edit review is open.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "ErrNoTileset",
              "anchor": "ErrNoTileset"
            }
          ],
          "decl": "var ErrNoTileset = errors.New(\"editor: no tileset is open\")",
          "doc": "ErrNoTileset is returned by tileset editor operations when no YAML tileset is open.\n",
          "file": "pkg/editor/tileset_editor.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "ErrNoUploadsSelected",
              "anchor": "ErrNoUploadsSelected"
            }
          ],
          "decl": "var ErrNoUploadsSelected = errors.New(\"editor: no artifacts are selected to upload\")",
          "doc": "ErrNoUploadsSelected is returned when confirming Review uploads with no included artifacts.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 84
        },
        {
          "idents": [
            {
              "name": "ErrPlaying",
              "anchor": "ErrPlaying"
            }
          ],
          "decl": "var ErrPlaying = errors.New(\"editor: cannot edit scene while playing\")",
          "doc": "ErrPlaying is returned when an edit operation is attempted while Play mode is active.\n",
          "file": "pkg/editor/state.go",
          "line": 45
        },
        {
          "idents": [
            {
              "name": "ErrProjectDirty",
              "anchor": "ErrProjectDirty"
            }
          ],
          "decl": "var ErrProjectDirty = errors.New(\"editor: save the project before installing or removing a pack\")",
          "doc": "ErrProjectDirty is returned by InstallPack and RemovePack while the open project has edits that are not saved: installing writes game.yaml, so the edits must be saved or undone first.\n",
          "file": "pkg/editor/library.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "ErrReleaseBuildRunning",
              "anchor": "ErrReleaseBuildRunning"
            }
          ],
          "decl": "var ErrReleaseBuildRunning = errors.New(\"editor: a release build is already running\")",
          "doc": "ErrReleaseBuildRunning is returned by StartReleaseBuild or ResumeReleaseBuild when a build is already active.\n",
          "file": "pkg/editor/build_release.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "ErrReleaseUploadRunning",
              "anchor": "ErrReleaseUploadRunning"
            }
          ],
          "decl": "var ErrReleaseUploadRunning = errors.New(\"editor: a store upload is already running\")",
          "doc": "ErrReleaseUploadRunning is returned when starting or mutating upload selections while an upload batch is running.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 87
        },
        {
          "idents": [
            {
              "name": "ErrRemoteNotConnected",
              "anchor": "ErrRemoteNotConnected"
            }
          ],
          "decl": "var ErrRemoteNotConnected = errors.New(\"editor: not connected to a running game\")",
          "doc": "ErrRemoteNotConnected is returned by remote inspection and live-control operations when the editor has no active MCP connection to a running game.\n",
          "file": "pkg/editor/remote.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "ErrRemoteUnsupported",
              "anchor": "ErrRemoteUnsupported"
            }
          ],
          "decl": "var ErrRemoteUnsupported = errors.New(\"editor: remote MCP command transport is only supported on desktop\")",
          "doc": "ErrRemoteUnsupported is returned by ConnectRemoteCommand on non-desktop targets where launching `go tool nsgo mcp` is unavailable.\n",
          "file": "pkg/editor/remote.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "ErrRunGameUnsupported",
              "anchor": "ErrRunGameUnsupported"
            }
          ],
          "decl": "var ErrRunGameUnsupported = errors.New(\"editor: running the game is only supported on desktop\")",
          "doc": "ErrRunGameUnsupported is returned by RunGame and RunGameWith on non-desktop targets when RunGameCommand is nil.\n",
          "file": "pkg/editor/run_game.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ErrUploadRequiresConfirmation",
              "anchor": "ErrUploadRequiresConfirmation"
            }
          ],
          "decl": "var ErrUploadRequiresConfirmation = errors.New(\"editor: store uploads always require confirmation in Review uploads\")",
          "doc": "ErrUploadRequiresConfirmation is returned whenever code attempts to start a store upload without an\nactive, user-confirmed Review uploads session.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 77
        },
        {
          "idents": [
            {
              "name": "ErrUploadRequiresPersonConfirmation",
              "anchor": "ErrUploadRequiresPersonConfirmation"
            }
          ],
          "decl": "var ErrUploadRequiresPersonConfirmation = errors.New(\"editor: store uploads require the person's confirmation in Review uploads, whatever the permission profile\")",
          "doc": "ErrUploadRequiresPersonConfirmation is returned when an agent attempts to confirm or trigger a store upload.\nStore uploads always require explicit human confirmation, whatever the permission profile.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 81
        },
        {
          "idents": [
            {
              "name": "FirstRunBuildStageNames",
              "anchor": "FirstRunBuildStageNames"
            }
          ],
          "decl": "var FirstRunBuildStageNames = [5]string{\"Template\", \"Project\", \"First scene\", \"Check\", \"Playtest\"}",
          "doc": "FirstRunBuildStageNames are the 5 stage labels from FirstRun.dc.html.\n",
          "file": "pkg/editor/first_run.go",
          "line": 211
        }
      ],
      "funcs": [
        {
          "name": "AgentComposerView",
          "anchor": "AgentComposerView",
          "decl": "func AgentComposerView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AgentComposerView renders the agent composer card with:\n  - @-mention picker popover (match count, group tabs, ↑↓/↵/Tab/Esc)\n  - Context chips (attached, suggested selection chip, Always chips, toggleable Viewport image)\n  - Hover preview showing the exact text/YAML or image sent to the agent\n  - Context usage ring (normal / over 70% / compact now) and 6-row breakdown popover with Compact & Start fresh\n",
          "file": "pkg/editor/agent_composer_ui.go",
          "line": 141
        },
        {
          "name": "AgentHistoryView",
          "anchor": "AgentHistoryView",
          "decl": "func AgentHistoryView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AgentHistoryView renders the right-rail History timeline combining agent steps and manual edits,\nhighlighting the step opened via \"Open this step in History\".\n",
          "file": "pkg/editor/agent_threads_ui.go",
          "line": 1087
        },
        {
          "name": "AgentPanelView",
          "anchor": "AgentPanelView",
          "decl": "func AgentPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AgentPanelView renders the Agent tab panel: 44 pt header with tabs and status chip,\nscene-grouped thread header and switcher popover, scrollable thread of persisted requests /\nlive user turns / streamed steps / permission cards / review summaries or empty-thread orientation,\nand AgentComposerView (@-mentions, context chips, hover preview, and context meter) or the\nworking \"Add to this request\" + Stop footer.\n",
          "file": "pkg/editor/agent_ui.go",
          "line": 998
        },
        {
          "name": "AgentReviewPanelView",
          "anchor": "AgentReviewPanelView",
          "decl": "func AgentReviewPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AgentReviewPanelView renders the Review changes panel including proposed file deletions\nthat Keep all never applies (matching docs/design/editor/Permissions.dc.html \"Proposed deletion\")\nusing strictly SpecPalette tokens in both Dark and Light appearances.\n",
          "file": "pkg/editor/agent_review_ui.go",
          "line": 14
        },
        {
          "name": "AgentStatusChipView",
          "anchor": "AgentStatusChipView",
          "decl": "func AgentStatusChipView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AgentStatusChipView renders the status chip for the Agent panel header matching docs/design/editor/AgentStates.dc.html\nusing exclusively Spec.dc.html tokens and announcing state transitions through LiveRegionPolite.\n",
          "file": "pkg/editor/agent_ui.go",
          "line": 441
        },
        {
          "name": "AgentTaskNotificationCard",
          "anchor": "AgentTaskNotificationCard",
          "decl": "func AgentTaskNotificationCard(p SpecPalette, n AgentTaskNotification, when string) core.Node",
          "doc": "AgentTaskNotificationCard renders one Spec-styled preview card for an AgentTaskNotification\nmatching docs/design/editor/Tasks.dc.html (\"SYSTEM NOTIFICATIONS · ONLY THESE THREE\") using\nexclusively tokens from p.\n",
          "file": "pkg/editor/play_task_dot_ui.go",
          "line": 182
        },
        {
          "name": "AgentThreadsView",
          "anchor": "AgentThreadsView",
          "decl": "func AgentThreadsView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AgentThreadsView renders the Agent panel for the open scene's thread: status chip, thread\nswitcher header (with ⌘N new thread and grouped scene switcher popover), folded earlier\nrequests with History links, Jump to latest pill, empty-thread view with always-read context\nand brief suggestions, live turns, and the prompt composer.\n",
          "file": "pkg/editor/agent_threads_ui.go",
          "line": 18
        },
        {
          "name": "AnimationPanelView",
          "anchor": "AnimationPanelView",
          "decl": "func AnimationPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AnimationPanelView renders the animation editor below the viewport while a clip is open: the clip's name, length, loop, playback and Save and Close; a scrubber for the playhead; a property picker that keys the chosen property at the playhead; one lane per track with its keys, which select a key to edit its time, value and interpolation; and a lane of the clip's events.\n",
          "file": "pkg/editor/animation_ui.go",
          "line": 19
        },
        {
          "name": "AskInPlaceComposerView",
          "anchor": "AskInPlaceComposerView",
          "decl": "func AskInPlaceComposerView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AskInPlaceComposerView renders the anchored ⌘L in-place agent composer inside the editor viewport\nusing exclusively SpecPalette tokens (matching docs/design/editor/AskInPlace.dc.html and Spec.dc.html).\n",
          "file": "pkg/editor/ask_in_place_ui.go",
          "line": 15
        },
        {
          "name": "AssetBrowserView",
          "anchor": "AssetBrowserView",
          "decl": "func AssetBrowserView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AssetBrowserView renders the left-side Asset Browser panel listing all available atlases, their frames with canvas thumbnails, and click-to-select / quick-place actions, then the models to place in 3D (Models), the built-in primitives and the project's glTF files, with thumbnails rendered offscreen (ModelThumbnail). Pressing a model selects it for the Place tool (SelectModel) and turns the tool on; dragging it onto the 3D viewport places it where it is dropped (PlaceModelAt3D). It updates reactively whenever atlases, frames or models change (for example after ReloadAssets).\n",
          "file": "pkg/editor/browser.go",
          "line": 133
        },
        {
          "name": "AssetDrawerView",
          "anchor": "AssetDrawerView",
          "decl": "func AssetDrawerView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AssetDrawerView renders the bottom asset drawer below the viewport in Assets mode:\nkind tabs, name/path filter, sort toggle, Import & Generate actions, asset cards (draggable to the viewport),\nempty states, and the \"N assets · M shown\" + missing-problem footer.\n",
          "file": "pkg/editor/asset_drawer_ui.go",
          "line": 410
        },
        {
          "name": "AssetGeneratorView",
          "anchor": "AssetGeneratorView",
          "decl": "func AssetGeneratorView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AssetGeneratorView renders the full-window Generated Assets screen matching docs/design/editor/Assets.dc.html\nScreen 2 (\"generate, pick, check style and license\") using strictly Spec.dc.html color, spacing, radius, and type tokens.\n",
          "file": "pkg/editor/asset_gen_ui.go",
          "line": 20
        },
        {
          "name": "AssetInspectorView",
          "anchor": "AssetInspectorView",
          "decl": "func AssetInspectorView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AssetInspectorView renders the 380 pt right panel for the selected asset in Assets mode:\npreview (clips playable frame-by-frame, sounds playable), missing-file actions, import settings, and USED BY from refs.\n",
          "file": "pkg/editor/asset_drawer_ui.go",
          "line": 1194
        },
        {
          "name": "AssetsLeftRailView",
          "anchor": "AssetsLeftRailView",
          "decl": "func AssetsLeftRailView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AssetsLeftRailView renders the 232 pt left rail when Assets mode is active:\nScene / Assets switch, FOLDERS with counts, SHOW ONLY filters with counts, and a drop zone.\n",
          "file": "pkg/editor/asset_drawer_ui.go",
          "line": 160
        },
        {
          "name": "AudioMixerPanelView",
          "anchor": "AudioMixerPanelView",
          "decl": "func AudioMixerPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "AudioMixerPanelView renders the Audio Bus Mixer panel below the viewport while a project is open and AudioMixerOpen reports true. It edits game.yaml's audio section through EditProject and auditions project audio files through sound.Mixer configured by project.File.ConfigureMixer.\n",
          "file": "pkg/editor/audio_mixer_panel.go",
          "line": 864
        },
        {
          "name": "BotProfileDefaultStrategy",
          "anchor": "BotProfileDefaultStrategy",
          "decl": "func BotProfileDefaultStrategy(bot playtest.BotConfig) string",
          "doc": "BotProfileDefaultStrategy returns a concise one-sentence strategy fallback when report.Bot.Strategy is empty.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 1062
        },
        {
          "name": "BotProfileDisplayName",
          "anchor": "BotProfileDisplayName",
          "decl": "func BotProfileDisplayName(profile string) string",
          "doc": "BotProfileDisplayName maps a registered playtest bot profile ID to its human-readable label matching Playtest.dc.html.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 1036
        },
        {
          "name": "BuildGoOverlay",
          "anchor": "BuildGoOverlay",
          "decl": "func BuildGoOverlay(projectDir string, pending map[string]PendingGoOverlayFile) (string, func(), error)",
          "doc": "BuildGoOverlay writes a temporary Go build overlay JSON file mapping each pending Go file inside projectDir\nto its staged content in a temporary directory, leaving projectDir on disk untouched.\nBoth the cleaned path and EvalSymlinks-resolved path (for example /var vs /private/var on macOS) are mapped.\n",
          "file": "pkg/editor/code_review_runner_desktop.go",
          "line": 80
        },
        {
          "name": "BuildReleaseScreenView",
          "anchor": "BuildReleaseScreenView",
          "decl": "func BuildReleaseScreenView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "BuildReleaseScreenView renders the full-window Build and Release screen matching\ndocs/design/editor/Build.dc.html using exclusively Spec color, spacing, radius,\ntypography, and focus-ring tokens from docs/design/editor/Spec.dc.html.\n",
          "file": "pkg/editor/build_release_ui.go",
          "line": 31
        },
        {
          "name": "ChangesPanelView",
          "anchor": "ChangesPanelView",
          "decl": "func ChangesPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ChangesPanelView renders the full-window Changes & Commit screen matching\ndocs/design/editor/VersionControl.dc.html (screen 1) using only Spec.dc.html tokens.\n",
          "file": "pkg/editor/changes_ui.go",
          "line": 15
        },
        {
          "name": "ClampAudioEffect",
          "anchor": "ClampAudioEffect",
          "decl": "func ClampAudioEffect(fx project.Effect) project.Effect",
          "doc": "ClampAudioEffect returns a copy of fx with every parameter clamped into project.Validate's valid range.\n",
          "file": "pkg/editor/audio_mixer_panel.go",
          "line": 120
        },
        {
          "name": "CodeReviewView",
          "anchor": "CodeReviewView",
          "decl": "func CodeReviewView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "CodeReviewView renders the full-window Go code review screen matching docs/design/editor/ReviewCode.dc.html\nusing exclusively SpecPalette tokens (Dark & Light).\n",
          "file": "pkg/editor/code_review_ui.go",
          "line": 16
        },
        {
          "name": "CommandPaletteView",
          "anchor": "CommandPaletteView",
          "decl": "func CommandPaletteView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "CommandPaletteView renders the editor's Command Palette modal using ui.CommandDialog.\n",
          "file": "pkg/editor/palette.go",
          "line": 640
        },
        {
          "name": "CompositeOver",
          "anchor": "CompositeOver",
          "decl": "func CompositeOver(fg, bg core.Color) core.Color",
          "doc": "CompositeOver alpha-blends fg over an opaque background bg in sRGB space.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 306
        },
        {
          "name": "ConnectAgentDialogView",
          "anchor": "ConnectAgentDialogView",
          "decl": "func ConnectAgentDialogView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ConnectAgentDialogView renders the \"Connect an agent\" modal dialog matching docs/design/editor/Connect.dc.html\nusing exclusively Spec.dc.html tokens: three choices, the one-time `go tool game mcp install` command with Copy,\na live waiting state that turns to connected when the first MCP client attaches, four starting permission checkboxes,\nLater, Done, and targeted step troubleshooting when reopened from Disconnected.\n",
          "file": "pkg/editor/agent_ui.go",
          "line": 2879
        },
        {
          "name": "ContrastRatio",
          "anchor": "ContrastRatio",
          "decl": "func ContrastRatio(a, b core.Color) float64",
          "doc": "ContrastRatio returns the WCAG 2.1 / 2.2 contrast ratio between foreground a and background b,\nin [1, 21]. If a is translucent (alpha < 1), it is composited over b first.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 329
        },
        {
          "name": "CutscenePanelView",
          "anchor": "CutscenePanelView",
          "decl": "func CutscenePanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "CutscenePanelView renders the full-workspace cutscene timeline and agent review screen (matching docs/design/editor/Animation.dc.html Screen 2 and Spec.dc.html tokens) whenever a cutscene is open and Play mode is not active.\n",
          "file": "pkg/editor/cutscene_ui.go",
          "line": 25
        },
        {
          "name": "DataTablePanelView",
          "anchor": "DataTablePanelView",
          "decl": "func DataTablePanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "DataTablePanelView renders the Data Table editor below the viewport while a YAML data\ntable is open: table path and row-type badge, filter input, Add Row / Save Table / Close\nbuttons, validation error banner, sortable column headers with inferred kinds, and a\nscrollable grid of rows with move up/down, delete, and kind-aware cell editors.\n",
          "file": "pkg/editor/datatable_ui.go",
          "line": 19
        },
        {
          "name": "DataTableReviewView",
          "anchor": "DataTableReviewView",
          "decl": "func DataTableReviewView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "DataTableReviewView renders the full-window row-by-row Data Table review screen matching\ndocs/design/editor/ReviewData.dc.html using exclusively SpecPalette tokens (Dark & Light).\n",
          "file": "pkg/editor/datatable_review_ui.go",
          "line": 29
        },
        {
          "name": "DefaultAudioEffect",
          "anchor": "DefaultAudioEffect",
          "decl": "func DefaultAudioEffect(kind AudioEffectKind) (project.Effect, error)",
          "doc": "DefaultAudioEffect returns a valid project.Effect with practical defaults within project.Validate's ranges.\n",
          "file": "pkg/editor/audio_mixer_panel.go",
          "line": 66
        },
        {
          "name": "DefaultCatalog",
          "anchor": "DefaultCatalog",
          "decl": "func DefaultCatalog() *l10n.Catalog",
          "doc": "DefaultCatalog returns a copy of the editor's built-in localization catalog (English and Simplified Chinese).\n",
          "file": "pkg/editor/i18n.go",
          "line": 39
        },
        {
          "name": "DefaultLayoutPath",
          "anchor": "DefaultLayoutPath",
          "decl": "func DefaultLayoutPath() (string, error)",
          "doc": "DefaultLayoutPath returns the default per-user path for layout.yaml under the OS user config directory.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 192
        },
        {
          "name": "DefaultLights3D",
          "anchor": "DefaultLights3D",
          "decl": "func DefaultLights3D() render3d.LightRig",
          "doc": "DefaultLights3D returns the lights the 3D viewport draws the scene's geometry with when the editor has no Lights3D: a cool ambient fill like the sky's and a warm key light from above, to the front and right of the default camera.\n",
          "file": "pkg/editor/viewport3d_gpu.go",
          "line": 26
        },
        {
          "name": "DefaultOverlayLegendKinds",
          "anchor": "DefaultOverlayLegendKinds",
          "decl": "func DefaultOverlayLegendKinds() []string",
          "doc": "DefaultOverlayLegendKinds returns the canonical sorted IDs of all six legend kinds enabled by default.\n",
          "file": "pkg/editor/viewport_overlay.go",
          "line": 82
        },
        {
          "name": "DefaultRecentProjectsPath",
          "anchor": "DefaultRecentProjectsPath",
          "decl": "func DefaultRecentProjectsPath() (string, error)",
          "doc": "DefaultRecentProjectsPath returns the default per-user path for recent-projects.yaml under the OS user config directory.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 54
        },
        {
          "name": "DefaultSceneDoc",
          "anchor": "DefaultSceneDoc",
          "decl": "func DefaultSceneDoc() *sceneformat.SceneDoc",
          "doc": "DefaultSceneDoc returns a valid starter SceneDoc suitable for a new editor session.\n",
          "file": "pkg/editor/state.go",
          "line": 1056
        },
        {
          "name": "DefaultSettingsPath",
          "anchor": "DefaultSettingsPath",
          "decl": "func DefaultSettingsPath() (string, error)",
          "doc": "DefaultSettingsPath returns the per-user path outside any project where editor settings are stored (for example \"$UserConfigDir/nsgo-game/editor.yaml\").\n",
          "file": "pkg/editor/settings.go",
          "line": 537
        },
        {
          "name": "DefaultViewportOverlays",
          "anchor": "DefaultViewportOverlays",
          "decl": "func DefaultViewportOverlays() []string",
          "doc": "DefaultViewportOverlays returns the canonical sorted list of viewport overlays enabled by default.\n",
          "file": "pkg/editor/overlays.go",
          "line": 82
        },
        {
          "name": "DefaultWatchRunIndex",
          "anchor": "DefaultWatchRunIndex",
          "decl": "func DefaultWatchRunIndex(rep *playtest.Report) int",
          "doc": "DefaultWatchRunIndex picks the most informative 1-based run index for the \"Watch run N\" button:\nfirst non-finished run with a saved recording, then first run with a recording, then first non-finished run, then the first run.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 1013
        },
        {
          "name": "DemoAtlasMap",
          "anchor": "DemoAtlasMap",
          "decl": "func DemoAtlasMap() sceneformat.AtlasMap",
          "doc": "DemoAtlasMap returns the sprite atlases used by the editor's built-in Demo Room scene.\n",
          "file": "pkg/editor/demo.go",
          "line": 13
        },
        {
          "name": "DemoComponentRegistry",
          "anchor": "DemoComponentRegistry",
          "decl": "func DemoComponentRegistry() *sceneformat.ComponentRegistry",
          "doc": "DemoComponentRegistry returns the built-in 2D and 3D physics component registry used by the Demo Room scene.\n",
          "file": "pkg/editor/demo.go",
          "line": 102
        },
        {
          "name": "DemoSceneDoc",
          "anchor": "DemoSceneDoc",
          "decl": "func DemoSceneDoc() *sceneformat.SceneDoc",
          "doc": "DemoSceneDoc returns a fresh copy of the editor's built-in Demo Room scene document.\n",
          "file": "pkg/editor/demo.go",
          "line": 33
        },
        {
          "name": "DrawObjectOverlay",
          "anchor": "DrawObjectOverlay",
          "decl": "func DrawObjectOverlay(d *core.Drawing, p SpecPalette, ov ObjectOverlay) core.Bounds",
          "doc": "DrawObjectOverlay is the single Spec viewport overlay drawing helper in editor.\nIt draws any of the seven Spec overlay kinds (Selection, Agent working, Added, Changed,\nRemoved, Problem, Focused change in Review) using exclusively SpecPalette tokens at the\nSpec's exact line widths, dash patterns, offsets, handles, ghosts, and pills, and returns\nthe canvas rectangle occupied by the drawn tag/pill (if any).\n",
          "file": "pkg/editor/viewport_overlay.go",
          "line": 222
        },
        {
          "name": "DrawPlaytestChart",
          "anchor": "DrawPlaytestChart",
          "decl": "func DrawPlaytestChart(d *core.Drawing, size core.Size, spec PlaytestChartSpec, scene *sceneformat.SceneDoc)",
          "doc": "DrawPlaytestChart renders spec onto d using exclusively Spec.dc.html color tokens.\nExported so tests can verify all 4 chart kinds directly against core.Drawing as well as through EditorView.\n",
          "file": "pkg/editor/playtest_report_ui.go",
          "line": 1152
        },
        {
          "name": "EditorSettingsDialogView",
          "anchor": "EditorSettingsDialogView",
          "decl": "func EditorSettingsDialogView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "EditorSettingsDialogView renders the per-user Editor Settings view when mounted standalone.\nEditorView mounts SettingsView instead, which hosts the General, Viewport, and Shortcuts pages alongside the Agent and Project pages.\n",
          "file": "pkg/editor/settings_ui.go",
          "line": 54
        },
        {
          "name": "EditorView",
          "anchor": "EditorView",
          "decl": "func EditorView(cx *core.Scope, ed *Editor) core.Node",
          "doc": "EditorView returns the root NSGo UI node for ed, composing:\n  - Top toolbar (scene title, the open scene's path with a marker while edits are unsaved, New, Save As and Revert, tool selector, Undo/Redo, Run/Stop Game, Play/Stop, Save)\n  - Scene tree panel listing the layers and their nested objects (SceneTreeView), over the layers panel that picks the active layer and adds, removes, renames, reorders, hides and locks layers (LayersView)\n  - Left Asset Browser panel, with the file browser below it while a project is open (FilesView)\n  - Center interactive Canvas viewport\n  - Tile palette right of the viewport while a tile tool is active in 2D (TilePaletteView)\n  - Right Property Inspector panel\n  - The library panel, when Editor.Library is set (LibraryView)\n  - The panels of the plugins that are on (Plugin), docked left or right of the viewport or below it\n  - Animation panel below them while a clip is open (AnimationPanelView)\n  - Project Settings panel below them while open (ProjectSettingsPanelView)\n  - Search & References panel below them when toggled or showing references (SearchPanelView)\n  - Problems panel below them while a project is open (ProblemsView)\n  - Output / Log panel below them (OutputPanelView)\n  - Bottom status bar (including the live problem count while a project is open)\n\nMod+S saves (Editor.Save), and the window title follows the open scene and its unsaved marker (Editor.WindowTitle). Opening a scene from the file browser, the Problems panel or the Search and References panel, New Scene, a user's request to quit and closing the window ask first while the scene or project has unsaved edits (Editor.HasUnsavedChanges): Save saves them and goes on, Discard drops them and goes on, and Cancel keeps them.\n",
          "file": "pkg/editor/ui.go",
          "line": 33
        },
        {
          "name": "EncodeAgentThread",
          "anchor": "EncodeAgentThread",
          "decl": "func EncodeAgentThread(doc *AgentThreadDoc) ([]byte, error)",
          "doc": "EncodeAgentThread encodes doc as deterministic plain-text YAML with fixed field order and 2-space indent.\n",
          "file": "pkg/editor/tasks.go",
          "line": 487
        },
        {
          "name": "EncodeAgentThreadYAML",
          "anchor": "EncodeAgentThreadYAML",
          "decl": "func EncodeAgentThreadYAML(t *AgentThread) ([]byte, error)",
          "doc": "EncodeAgentThreadYAML validates t and encodes it as deterministic 2-space YAML prefixed with\nAgentThreadSchemaComment so loading and saving changes nothing.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 497
        },
        {
          "name": "EncodeAutomations",
          "anchor": "EncodeAutomations",
          "decl": "func EncodeAutomations(f *AutomationsFile) ([]byte, error)",
          "doc": "EncodeAutomations validates f and writes deterministic 2-space YAML prefixed with AutomationsSchemaComment.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 509
        },
        {
          "name": "EncodeBuildQR",
          "anchor": "EncodeBuildQR",
          "decl": "func EncodeBuildQR(rawURL string) (*qrcode.Code, error)",
          "doc": "EncodeBuildQR encodes rawURL as a deterministic ISO/IEC 18004 QR Code (EC level M)\nsuitable for scanning on a phone camera on the local Wi-Fi.\n",
          "file": "pkg/editor/build_device.go",
          "line": 200
        },
        {
          "name": "EncodeCheckpointManifest",
          "anchor": "EncodeCheckpointManifest",
          "decl": "func EncodeCheckpointManifest(m *CheckpointManifest) ([]byte, error)",
          "doc": "EncodeCheckpointManifest validates m and encodes it as deterministic 2-space YAML with files sorted by path.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 258
        },
        {
          "name": "EncodeEditorSettings",
          "anchor": "EncodeEditorSettings",
          "decl": "func EncodeEditorSettings(s *EditorSettings) ([]byte, error)",
          "doc": "EncodeEditorSettings validates s and writes deterministic 2-space YAML prefixed with SettingsSchemaComment.\n",
          "file": "pkg/editor/settings.go",
          "line": 460
        },
        {
          "name": "EncodeLayout",
          "anchor": "EncodeLayout",
          "decl": "func EncodeLayout(f *LayoutFile) ([]byte, error)",
          "doc": "EncodeLayout validates f and encodes it as deterministic 2-space YAML that ParseLayout reads back unchanged.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 413
        },
        {
          "name": "EncodePermissions",
          "anchor": "EncodePermissions",
          "decl": "func EncodePermissions(f *PermissionsFile) ([]byte, error)",
          "doc": "EncodePermissions validates f and writes deterministic 2-space YAML prefixed with PermissionsSchemaComment.\n",
          "file": "pkg/editor/permissions.go",
          "line": 550
        },
        {
          "name": "EncodeRecentProjects",
          "anchor": "EncodeRecentProjects",
          "decl": "func EncodeRecentProjects(f *RecentProjectsFile) ([]byte, error)",
          "doc": "EncodeRecentProjects validates f and encodes it as deterministic 2-space YAML that ParseRecentProjects reads back unchanged.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 177
        },
        {
          "name": "EnvironmentPanelView",
          "anchor": "EnvironmentPanelView",
          "decl": "func EnvironmentPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "EnvironmentPanelView renders the docked Scene Environment settings panel (sky color/gradient/HDR,\nambient & IBL intensity, distance & height fog, tonemapping, and exposure) while open.\n",
          "file": "pkg/editor/environment_panel.go",
          "line": 14
        },
        {
          "name": "ExportPanelView",
          "anchor": "ExportPanelView",
          "decl": "func ExportPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ExportPanelView renders the Export & Release panel below the viewport while a project is open and ExportPanelOpen reports true. It edits game.yaml's export section through EditProject, shows any pre-flight asset credits problems, runs release builds or dry runs off the UI goroutine, and streams their output into the Output view.\n",
          "file": "pkg/editor/export_panel.go",
          "line": 1282
        },
        {
          "name": "FilesView",
          "anchor": "FilesView",
          "decl": "func FilesView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "FilesView renders the file browser: the files and directories of the open project (ProjectFiles), an Open button that opens the selected scene in the editor (OpenScene), and a path field with a Move button that renames or moves the selected file through MoveFile, so every reference to it follows and Undo moves it back. Pressing a row selects it and puts its path in the field, and pressing a scene file (*.scene.yaml, *.scene.yml, or one listed under autoload.scenes, as OpenProblem names scenes) twice opens it as Open does; while the scene or project has unsaved edits, opening asks first in EditorView, which shows the prompt, and is refused elsewhere. Refresh lists the files again after something outside the editor changed them. It renders nothing while no project is open.\n",
          "file": "pkg/editor/files.go",
          "line": 15
        },
        {
          "name": "FirstRunScreenView",
          "anchor": "FirstRunScreenView",
          "decl": "func FirstRunScreenView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "FirstRunScreenView renders the active full-window First Run stage (Step 3 Plan, Step 4 Building, or Step 5 Review)\nusing exclusively SpecPalette tokens (Dark & Light) matching docs/design/editor/FirstRun.dc.html.\n",
          "file": "pkg/editor/first_run_ui.go",
          "line": 14
        },
        {
          "name": "FirstRunTipIDs",
          "anchor": "FirstRunTipIDs",
          "decl": "func FirstRunTipIDs() []string",
          "doc": "FirstRunTipIDs returns the three first-review tip IDs in presentation order.\n",
          "file": "pkg/editor/first_run.go",
          "line": 65
        },
        {
          "name": "FocusTheme",
          "anchor": "FocusTheme",
          "decl": "func FocusTheme() *core.Theme",
          "doc": "FocusTheme returns the editor's unified Spec *core.Theme (SpecTheme), mapping\nfocus, info, and ring roles to Spec accent (#3B7BFF in Dark, #1D5CE6 in Light)\nso every ui component calling ui.FocusRing draws the Spec 2 px focus ring on\n:focus-visible while preserving both Spec Dark and Spec Light surfaces.\n\nNSGo gap (v0.3.0): ui.FocusRing reads Palette.Colors[\"info\"] rather than a\ndedicated focus-ring token, ui.Switch carries no FocusVisible style, ui.IconButton\nhardcodes offset -2 on ghost buttons (and omits FocusVisible on circular variants),\nui.Input uses only a 1 px border color change without an inset outline, and\ncore.Modal / ui.Dialog do not restore focus to the opener on close. Editor-level\nhelpers in this file bridge each gap.\n",
          "file": "pkg/editor/focus_regions.go",
          "line": 23
        },
        {
          "name": "FormatHistoryEntryHeadline",
          "anchor": "FormatHistoryEntryHeadline",
          "decl": "func FormatHistoryEntryHeadline(entry HistoryEntry) string",
          "doc": "FormatHistoryEntryHeadline formats the primary line of an entry, matching AskInPlace.dc.html\n(for example \"Agent · slimes and coins\", \"You · moved Knight\", or \"Saved\").\n",
          "file": "pkg/editor/history_timeline.go",
          "line": 1087
        },
        {
          "name": "FormatHistoryEntrySubtitle",
          "anchor": "FormatHistoryEntrySubtitle",
          "decl": "func FormatHistoryEntrySubtitle(entry HistoryEntry, relTime string) string",
          "doc": "FormatHistoryEntrySubtitle formats the secondary metadata line of an entry with its relative time\n(for example \"6 changes · kept 5 · 2 min ago\", \"x 416 → 452 · 4 min ago\", or \"level_01.scene.yaml · 15 min ago\").\n",
          "file": "pkg/editor/history_timeline.go",
          "line": 1099
        },
        {
          "name": "FormatPermissionPatterns",
          "anchor": "FormatPermissionPatterns",
          "decl": "func FormatPermissionPatterns(action PermissionAction, patterns []string) string",
          "doc": "FormatPermissionPatterns formats a rule's pattern list for human-readable UI and error messages.\n",
          "file": "pkg/editor/permissions.go",
          "line": 207
        },
        {
          "name": "FormatPlaytestRunsSummary",
          "anchor": "FormatPlaytestRunsSummary",
          "decl": "func FormatPlaytestRunsSummary(rep *playtest.Report) string",
          "doc": "FormatPlaytestRunsSummary builds the header runs summary such as \"20 headless runs by the agent · 1 m 40 s\".\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 1101
        },
        {
          "name": "FormatReviewCellValue",
          "anchor": "FormatReviewCellValue",
          "decl": "func FormatReviewCellValue(v datatable.Value) string",
          "doc": "FormatReviewCellValue formats a cell value for display in the Data Table review grid:\nnumeric zero displays as \"—\" (em dash), matching ReviewData.dc.html.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 1274
        },
        {
          "name": "FormatReviewDeltaPct",
          "anchor": "FormatReviewDeltaPct",
          "decl": "func FormatReviewDeltaPct(pct int) string",
          "doc": "FormatReviewDeltaPct formats a percentage delta (e.g. \"+33%\", \"−42%\", or \"\" when 0).\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 1287
        },
        {
          "name": "FormatShortcut",
          "anchor": "FormatShortcut",
          "decl": "func FormatShortcut(shortcut string, targetOS core.OS) string",
          "doc": "FormatShortcut formats shortcut for display on targetOS using NSGo's platform conventions\n(for example \"mod+s\" renders as \"⌘S\" on macOS and \"Ctrl+S\" on Windows and Linux).\n",
          "file": "pkg/editor/commands.go",
          "line": 277
        },
        {
          "name": "FriendlyAgentName",
          "anchor": "FriendlyAgentName",
          "decl": "func FriendlyAgentName(raw string) string",
          "doc": "FriendlyAgentName turns a raw MCP ClientInfo.Name into a human-friendly agent label.\n",
          "file": "pkg/editor/agent.go",
          "line": 138
        },
        {
          "name": "GridMapPaletteView",
          "anchor": "GridMapPaletteView",
          "decl": "func GridMapPaletteView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "GridMapPaletteView renders the 3D GridMap item palette panel right of the viewport while a GridMap tool\nis active in 3D view: floor height controls, orientation controls (24 orientations), and a grid of the\nmesh library's items with 3D thumbnails.\n",
          "file": "pkg/editor/gridmap_palette.go",
          "line": 329
        },
        {
          "name": "HUDLayoutView",
          "anchor": "HUDLayoutView",
          "decl": "func HUDLayoutView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "HUDLayoutView renders the full-window HUD and menu layout screen matching docs/design/editor/HUDLayout.dc.html\nusing exclusively Spec color, spacing, radius, type, and focus-ring tokens from docs/design/editor/Spec.dc.html.\n",
          "file": "pkg/editor/hud_layout_ui.go",
          "line": 16
        },
        {
          "name": "HistoryPanelView",
          "anchor": "HistoryPanelView",
          "decl": "func HistoryPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "HistoryPanelView renders the unified History timeline right-side panel (AskInPlace.dc.html and\nCheckpoints.dc.html) using exclusively SpecPalette tokens:\n  - Header with All / You / Agent filter segmented control and close button\n  - Active point-in-time preview bar (\"Previewing … · editing is off\") with Restore and Back (Esc)\n  - Top \"Now\" row showing unsaved/saved status (clicking exits preview)\n  - Newest-first timeline entries grouped by day (TODAY / YESTERDAY / date), with author badges,\n    detail, touched files, relative times, and saved-point markers\n  - Footer explaining non-destructive preview and Restore\n\nOuter panel chrome, header controls, core.Scroll (\"history-panel-list\"), and footer are mounted\nonce and react through narrow memos so unrelated rev bumps never remount the scroll container or\ndrop scroll offset / keyboard focus.\n",
          "file": "pkg/editor/history_ui.go",
          "line": 61
        },
        {
          "name": "InputMapPanelView",
          "anchor": "InputMapPanelView",
          "decl": "func InputMapPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "InputMapPanelView renders the Input Map panel below the viewport while a project is open and InputMapOpen reports true. It edits game.yaml's input section (actions, key/keyCode/gamepad/mouse/touch bindings, regions over display size, axes, motion axes and gamepad stick axes) through EditProject.\n",
          "file": "pkg/editor/input_map_panel.go",
          "line": 1084
        },
        {
          "name": "InspectorView",
          "anchor": "InspectorView",
          "decl": "func InspectorView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "InspectorView renders the right-side Property Inspector panel for the selected asset\nimport settings, the selected object, the selected layer (parallax/repeat settings), or\nthe Scene Settings inspector (name, virtual size, background color and camera) when\nnothing else is selected. A component that a plugin which is on has an Inspector for is\ndrawn by that inspector instead of the generic fields.\n",
          "file": "pkg/editor/inspector.go",
          "line": 566
        },
        {
          "name": "LayersView",
          "anchor": "LayersView",
          "decl": "func LayersView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "LayersView renders the layers panel: the open scene's layers in draw order, the first drawn at the top, each with its space, its tilemap, an eye button that shows or hides it (SetLayerVisible, written to the scene file) and a lock button that locks it against the viewports for the session (SetLayerLocked). Pressing a layer's row makes it the active layer, which placing and painting target and the status bar names. The Add button adds a world layer drawn over the others (AddLayer) and makes it active, and the Remove button removes the active layer with its objects (RemoveLayer). Dragging a row above or below another moves the layer there in the draw order (MoveLayer). A row's context menu, or a double press, renames it in place (RenameLayer); the menu also moves it up or down, sets its space (SetLayerSpace), hides, locks or removes it. On the row of a layer that extends one of the base scene's, the eye, renaming, moving, dragging and the space items are off, since that scene owns them. Every edit but the lock goes through History.\n",
          "file": "pkg/editor/layers_panel.go",
          "line": 26
        },
        {
          "name": "LeftRailSwitchView",
          "anchor": "LeftRailSwitchView",
          "decl": "func LeftRailSwitchView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "LeftRailSwitchView renders the Scene / Assets segmented switch at the top of the left rail,\nmatching docs/design/editor/Assets.dc.html screen 1 with Spec.dc.html tokens.\n",
          "file": "pkg/editor/asset_drawer_ui.go",
          "line": 51
        },
        {
          "name": "LibraryView",
          "anchor": "LibraryView",
          "decl": "func LibraryView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "LibraryView renders the library panel: every pack of Editor.Library with its kind, version and description, the version the open project has installed, and buttons to install, update and remove it. It renders nothing while Library is nil.\n",
          "file": "pkg/editor/library.go",
          "line": 175
        },
        {
          "name": "LocalizationPanelView",
          "anchor": "LocalizationPanelView",
          "decl": "func LocalizationPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "LocalizationPanelView renders the Localization table editor below the viewport while a localization workspace is open: keys as rows, project locales as columns, missing translation highlights, CLDR plural form editors, adding/removing keys and locales, and saving each locale's YAML file.\n",
          "file": "pkg/editor/localization_panel.go",
          "line": 785
        },
        {
          "name": "MatchAutomationGlob",
          "anchor": "MatchAutomationGlob",
          "decl": "func MatchAutomationGlob(pattern, relPath string) bool",
          "doc": "MatchAutomationGlob reports whether project-relative slash-separated relPath matches pattern.\nPattern supports * (single path segment wildcard), ? (single non-slash character), and ** (zero or more path segments).\n",
          "file": "pkg/editor/automations_format.go",
          "line": 622
        },
        {
          "name": "MatchPermissionPattern",
          "anchor": "MatchPermissionPattern",
          "decl": "func MatchPermissionPattern(action PermissionAction, pattern, target string) bool",
          "doc": "MatchPermissionPattern reports whether target matches pattern for action.\nFor file actions, \"**\" matches zero or more path segments (so \"**/*.go\" matches both \"main.go\" and \"scripts/slime.go\", and \"scenes/**\" matches everything under \"scenes/\"),\nand empty, absolute, or \"..\"-escaping targets never match any pattern (including \"**\" and \"*\").\nFor run actions, matching is case-insensitive and supports target prefixes such as \"shell\" matching \"shell: go generate ./assets\", as well as \"*\" and \"**\" wildcards.\n",
          "file": "pkg/editor/permissions.go",
          "line": 935
        },
        {
          "name": "MaterialEditorPanelView",
          "anchor": "MaterialEditorPanelView",
          "decl": "func MaterialEditorPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "MaterialEditorPanelView renders the Material Editor panel docked below the viewport while a material file is open:\na live preview canvas (3D sphere or cube rendered with render3d, or 2D sprite preview), and undoable controls for\nevery field of resource.Material (name, baseColor, emissive, texture, metallic, roughness, opacity, blend, doubleSided, unlit).\n",
          "file": "pkg/editor/materials_ui.go",
          "line": 18
        },
        {
          "name": "MergeConflictView",
          "anchor": "MergeConflictView",
          "decl": "func MergeConflictView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "MergeConflictView renders the full-window Scene Merge Conflict screen matching\ndocs/design/editor/VersionControl.dc.html (screen 2) and using only Spec.dc.html tokens.\n",
          "file": "pkg/editor/merge_conflict_ui.go",
          "line": 16
        },
        {
          "name": "NavMeshPanelView",
          "anchor": "NavMeshPanelView",
          "decl": "func NavMeshPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "NavMeshPanelView renders the docked 3D Navigation Mesh bake settings panel below the viewport\nwhile Editor.NavMeshPanelOpen is true: agent radius, height, step height (max climb), max slope,\ncell size, cell height, agent name, output .navmesh.yaml path, overlay toggle, and Bake button.\n",
          "file": "pkg/editor/navmesh3d_panel.go",
          "line": 14
        },
        {
          "name": "NewRemoteBridgeServer",
          "anchor": "NewRemoteBridgeServer",
          "decl": "func NewRemoteBridgeServer(bridge *gamemcp.Bridge, run func(func())) *sdkmcp.Server",
          "doc": "NewRemoteBridgeServer wraps a live game *mcp.Bridge as a *sdkmcp.Server so the editor (or a test) can connect over an in-memory or pipe MCP transport with the exact same JSON tool wire format as `go tool nsgo mcp`.\nWhen run is non-nil (for example a game's core.Scope.Post), each tool handler runs on that goroutine and waits for completion.\n",
          "file": "pkg/editor/remote.go",
          "line": 108
        },
        {
          "name": "NormalizeShortcut",
          "anchor": "NormalizeShortcut",
          "decl": "func NormalizeShortcut(raw string) (string, error)",
          "doc": "NormalizeShortcut validates and normalizes raw into NSGo's canonical shortcut form\n(modifiers in order mod, ctrl, alt, shift, meta followed by the lowercase key name).\nAn empty or whitespace-only string returns \"\", nil.\n",
          "file": "pkg/editor/commands.go",
          "line": 211
        },
        {
          "name": "OutputPanelView",
          "anchor": "OutputPanelView",
          "decl": "func OutputPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "OutputPanelView renders the docked Output / Log panel below the viewport when OutputPanelOpen reports true. It displays the editor's timestamped status and error history alongside live stdout and stderr lines streamed from the running game, with Clear and Errors-only filter controls and clickable file:line navigation.\n",
          "file": "pkg/editor/output_panel.go",
          "line": 519
        },
        {
          "name": "OverlayAgentPulseAlpha",
          "anchor": "OverlayAgentPulseAlpha",
          "decl": "func OverlayAgentPulseAlpha(elapsed time.Duration, reduceMotion bool) float32",
          "doc": "OverlayAgentPulseAlpha returns the outline opacity in [0.45, 1.0] for an active Agent working\noverlay pulsing on a 1.6 s period. With reduceMotion enabled, it stays solid at 1.0.\n",
          "file": "pkg/editor/viewport_overlay.go",
          "line": 130
        },
        {
          "name": "OverlayFadeAlpha",
          "anchor": "OverlayFadeAlpha",
          "decl": "func OverlayFadeAlpha(elapsed time.Duration, reduceMotion bool) float32",
          "doc": "OverlayFadeAlpha returns the opacity in [0, 1] for a change overlay (Added, Changed, Removed)\nelapsed after it appeared. With reduceMotion enabled, it returns 1 immediately without fading.\n",
          "file": "pkg/editor/viewport_overlay.go",
          "line": 115
        },
        {
          "name": "ParsePatternList",
          "anchor": "ParsePatternList",
          "decl": "func ParsePatternList(action PermissionAction, raw string) []string",
          "doc": "ParsePatternList splits a comma-separated (or whitespace-separated for file globs) user input into trimmed patterns.\n",
          "file": "pkg/editor/permissions.go",
          "line": 1387
        },
        {
          "name": "ParticleEditorPanelView",
          "anchor": "ParticleEditorPanelView",
          "decl": "func ParticleEditorPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ParticleEditorPanelView renders the Particle Emitter editor panel docked below the viewport while an emitter is open: a live preview canvas with Play/Pause, Restart, Step and Burst controls, an interactive curve widget for Size/Alpha/Rotation/Color/Trail curves, an atlas frame picker, and undoable controls for every field of particles.Config.\n",
          "file": "pkg/editor/particles_ui.go",
          "line": 18
        },
        {
          "name": "PermissionsDraftCardView",
          "anchor": "PermissionsDraftCardView",
          "decl": "func PermissionsDraftCardView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "PermissionsDraftCardView renders the You-only permissions draft modal card matching\ndocs/design/editor/Permissions.dc.html (\"You only · A draft the agent cannot approve\")\ninside a real ui.Dialog / core.Modal with Tab/Shift-Tab focus trapping and opener focus restoration,\nusing strictly SpecPalette tokens in both Dark and Light appearances.\nNothing is ticked by default; ⌘↵, Keep all, automations, and every profile cannot apply it.\n",
          "file": "pkg/editor/permissions_draft_ui.go",
          "line": 88
        },
        {
          "name": "PermissionsFilePath",
          "anchor": "PermissionsFilePath",
          "decl": "func PermissionsFilePath(projectDir string) string",
          "doc": "PermissionsFilePath returns the canonical path to permissions.yaml beside game.yaml in projectDir.\n",
          "file": "pkg/editor/permissions.go",
          "line": 573
        },
        {
          "name": "PermissionsSettingsView",
          "anchor": "PermissionsSettingsView",
          "decl": "func PermissionsSettingsView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "PermissionsSettingsView renders the standalone full-window Settings › Permissions screen matching\ndocs/design/editor/Settings.dc.html and docs/design/editor/Permissions.dc.html using SpecPalette tokens.\n",
          "file": "pkg/editor/permissions_ui.go",
          "line": 43
        },
        {
          "name": "PermissionsToastView",
          "anchor": "PermissionsToastView",
          "decl": "func PermissionsToastView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "PermissionsToastView renders the floating bottom-center \"Always permission rule saved\" toast with Show and Undo actions.\nIt memoizes on permissionsStateRev, language, and appearance so 60 Hz frame ticks never remount it.\n",
          "file": "pkg/editor/permissions_ui.go",
          "line": 1477
        },
        {
          "name": "PermissionsWorkspaceOverlayView",
          "anchor": "PermissionsWorkspaceOverlayView",
          "decl": "func PermissionsWorkspaceOverlayView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "PermissionsWorkspaceOverlayView surfaces the latest blocked MCP step link or pending Ask request in the main editor workspace while Settings › Permissions is closed, so clicking a blocked step link opens Settings › Permissions with the matching rule focused.\nIt memoizes on permissionsStateRev, PermissionsSettingsOpen, language, and appearance so 60 Hz frame ticks never remount it.\n",
          "file": "pkg/editor/permissions_ui.go",
          "line": 1624
        },
        {
          "name": "PlayTaskDotView",
          "anchor": "PlayTaskDotView",
          "decl": "func PlayTaskDotView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "PlayTaskDotView renders the single corner dot shown over the viewport during Play mode\nwhen one or more agent tasks need attention (failed, waiting for permission, or ready to review),\nmatching docs/design/editor/Tasks.dc.html (\"DURING PLAY\") using exclusively Spec.dc.html tokens.\n\nNothing pops over the running game: only the 8 pt dot with its subtle 3 pt halo is drawn,\ncolored for the most urgent state (TaskFailed > TaskNeedsYou > TaskReadyToReview). The label pill\n(for example \"1 task needs you · stop Play to open\") shows only while hovered or keyboard-focused.\n",
          "file": "pkg/editor/play_task_dot_ui.go",
          "line": 15
        },
        {
          "name": "PlaytestReportView",
          "anchor": "PlaytestReportView",
          "decl": "func PlaytestReportView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "PlaytestReportView renders the full-window Playtest Report screen matching docs/design/editor/Playtest.dc.html\nand strictly using docs/design/editor/Spec.dc.html color, spacing, radius, type, and WCAG contrast tokens\n(including Spec Accent.OnFill on solid Accent.Fg primary buttons).\n",
          "file": "pkg/editor/playtest_report_ui.go",
          "line": 18
        },
        {
          "name": "PluginPanelKey",
          "anchor": "PluginPanelKey",
          "decl": "func PluginPanelKey(plugin, id string) string",
          "doc": "PluginPanelKey returns the stable dock panel key for panel id of plugin.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 92
        },
        {
          "name": "PrivacyRefusalError",
          "anchor": "PrivacyRefusalError",
          "decl": "func PrivacyRefusalError(kind PrivacyContentKind, subject string) error",
          "doc": "PrivacyRefusalError builds an actionable error message explaining why an MCP call was refused\nbecause kind is switched off in Settings › Usage and privacy.\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 106
        },
        {
          "name": "ProblemAgentPanelView",
          "anchor": "ProblemAgentPanelView",
          "decl": "func ProblemAgentPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ProblemAgentPanelView renders the right-hand Agent problem card matching\ndocs/design/editor/Problem.dc.html and Spec.dc.html when ProblemAgentPanelOpen\nis true: problem location card (file:line:col), agent explanation, before/after\ndiff card with Apply fix, Show me and Ignore, footer note, and the\n\"Ask about this problem…\" composer. Styled exclusively with SpecPalette tokens.\nThe outer panel chrome, ScrollView, and ask input composer remain mounted\nacross rev updates so typing and background checks never lose focus or scroll.\n",
          "file": "pkg/editor/problems_ui.go",
          "line": 369
        },
        {
          "name": "ProblemsView",
          "anchor": "ProblemsView",
          "decl": "func ProblemsView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ProblemsView renders the Problems panel below the viewport while a project is\nopen: one row per live (non-ignored) problem found by assetcheck.CheckWith\n(over disk plus unsaved open documents) and project.Check, showing its\nfile:line:col location, severity pill, message, proposed-fix badge, and\nIgnore action. Problems use the Spec removed/problem token with the alert\nicon and warnings use the Spec warning token with its fill, edge, and alert\nicon. Pressing or activating a row via keyboard opens the scene or selects\nthe file in the file browser. It renders nothing while no project is open.\n",
          "file": "pkg/editor/problems_ui.go",
          "line": 45
        },
        {
          "name": "ProfilerPanelView",
          "anchor": "ProfilerPanelView",
          "decl": "func ProfilerPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ProfilerPanelView renders the full docked Profiler panel below the viewport when Editor.ProfilerOpen reports true.\nIt charts frame, update and draw time, FPS, allocations per frame, GC and asset memory over time, lists profiler zones from game_perf_zones sorted by cost, and provides Reset (game_perf_reset) and Chrome/Perfetto trace export through debug.Profiler.WriteChromeTrace.\n",
          "file": "pkg/editor/profiler_ui.go",
          "line": 302
        },
        {
          "name": "ProfilerStripView",
          "anchor": "ProfilerStripView",
          "decl": "func ProfilerStripView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ProfilerStripView renders the Play-mode \"FRAME TIME · LAST 60 S\" strip directly below the game view while Play mode is active or a running game is connected to the profiler, matching docs/design/editor/PlayMode.dc.html. Pressing the strip's Profiler button opens the full Profiler panel.\n",
          "file": "pkg/editor/profiler_ui.go",
          "line": 15
        },
        {
          "name": "ProjectSettingsPanelView",
          "anchor": "ProjectSettingsPanelView",
          "decl": "func ProjectSettingsPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ProjectSettingsPanelView renders the Project Settings panel below the viewport while a project is open and ProjectSettingsOpen reports true.\nEvery edit runs through Editor.EditProject (or SetPluginEnabled), validates with project.Validate with inline field errors, participates in Undo/Redo, and writes game.yaml + synced nsgo.yaml on Save.\n",
          "file": "pkg/editor/project_settings_panel.go",
          "line": 532
        },
        {
          "name": "ReconcileExternalPermissions",
          "anchor": "ReconcileExternalPermissions",
          "decl": "func ReconcileExternalPermissions(prev, incoming PermissionsFile, source string) (effective PermissionsFile, held []HeldPermissionLoosening, tightened int)",
          "doc": "ReconcileExternalPermissions reconciles an externally loaded PermissionsFile (from git pull,\ncloning a repo, or an external editor) against prev:\n  - Tightened profiles and rules apply at once (counted in tightened).\n  - Loosened profiles (e.g. Balanced -> Autonomous), loosened rules (Deny -> Ask/Allow, Ask -> Allow),\n    and removed/narrowed stricter rules are HELD in held while effective continues enforcing the stricter\n    decision until the person explicitly confirms each entry in Settings › Permissions.\n",
          "file": "pkg/editor/you_only.go",
          "line": 416
        },
        {
          "name": "ReferencesScreenView",
          "anchor": "ReferencesScreenView",
          "decl": "func ReferencesScreenView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ReferencesScreenView renders the full-window Find Usages and Safe Rename review screen\nmatching docs/design/editor/References.dc.html using only Spec.dc.html tokens.\n",
          "file": "pkg/editor/usages_ui.go",
          "line": 19
        },
        {
          "name": "RegisterDataTableType",
          "anchor": "RegisterDataTableType",
          "decl": "func RegisterDataTableType[T any](e *Editor, pattern string) error",
          "doc": "RegisterDataTableType registers Go struct row type T for datatable YAML files matching\npattern (a slash-separated path or glob relative to the project root, or a filename glob\nsuch as \"enemies.yaml\" or \"data/*.yaml\"). While a matching table is open in the Data Table\npanel, cells are checked with datatable.LoadYAML's rules and invalid edits are refused.\n",
          "file": "pkg/editor/datatable.go",
          "line": 72
        },
        {
          "name": "RelativeLuminance",
          "anchor": "RelativeLuminance",
          "decl": "func RelativeLuminance(c core.Color) float64",
          "doc": "RelativeLuminance returns the WCAG 2.1 / 2.2 relative luminance of c in [0, 1].\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 294
        },
        {
          "name": "ResolvePermissionFileTarget",
          "anchor": "ResolvePermissionFileTarget",
          "decl": "func ResolvePermissionFileTarget(projectRoot, raw string) (string, error)",
          "doc": "ResolvePermissionFileTarget canonicalizes raw against projectRoot, refusing control characters, absolute paths,\n\"..\" escapes, and symlinks pointing outside projectRoot. When a symlink inside projectRoot resolves to another\nlocation inside projectRoot (for example \"scenes/link.scene.yaml\" -> \"../game.yaml\"), the real project-relative\ntarget (\"game.yaml\") is returned so permission rules match the actual file being touched.\n",
          "file": "pkg/editor/permissions.go",
          "line": 872
        },
        {
          "name": "ReviewScreenView",
          "anchor": "ReviewScreenView",
          "decl": "func ReviewScreenView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ReviewScreenView renders the full-window change-by-change agent turn Review screen\nmatching docs/design/editor/Review.dc.html and docs/design/editor/Spec.dc.html\nusing exclusively SpecPalette tokens (supporting both Dark and Light appearances).\n",
          "file": "pkg/editor/review_ui.go",
          "line": 37
        },
        {
          "name": "RigPanelView",
          "anchor": "RigPanelView",
          "decl": "func RigPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "RigPanelView renders the 2D skeletal rig editor panel below the viewport while a rig is open:\nan interactive canvas showing attachments, bones, bone handles and attachment-origin handles;\nbone, slot, skin and animation controls; and a keyframe timeline with play and crossfade preview\ndriven directly by the runtime skeletal package.\n",
          "file": "pkg/editor/rig_ui.go",
          "line": 20
        },
        {
          "name": "RightPanelView",
          "anchor": "RightPanelView",
          "decl": "func RightPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "RightPanelView delegates to RightRailView for callers referencing the right-hand Agent / Inspector panel.\n",
          "file": "pkg/editor/agent_turn_ui.go",
          "line": 14
        },
        {
          "name": "RightRailView",
          "anchor": "RightRailView",
          "decl": "func RightRailView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "RightRailView renders the editor's right sidebar: TasksPanelView when Background Tasks are open,\nInspectorView alone when AgentModeNone is chosen, or the Agent / Inspector / History tab bar\nkeeping InspectorView active by default at 272 pt and showing AgentPanelView or AgentHistoryView\n(380 pt) when selected.\n",
          "file": "pkg/editor/agent_ui.go",
          "line": 19
        },
        {
          "name": "SaveAgentThreadFile",
          "anchor": "SaveAgentThreadFile",
          "decl": "func SaveAgentThreadFile(filePath string, t *AgentThread) error",
          "doc": "SaveAgentThreadFile encodes t and atomically writes it to filePath, creating parent directories if needed.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 537
        },
        {
          "name": "SaveAutomationsFile",
          "anchor": "SaveAutomationsFile",
          "decl": "func SaveAutomationsFile(filePath string, f *AutomationsFile) error",
          "doc": "SaveAutomationsFile encodes f in canonical YAML and writes it atomically to filePath.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 565
        },
        {
          "name": "SaveEditorSettings",
          "anchor": "SaveEditorSettings",
          "decl": "func SaveEditorSettings(path string, s *EditorSettings) error",
          "doc": "SaveEditorSettings validates and atomically writes s as deterministic YAML to path, creating parent directories as needed.\n",
          "file": "pkg/editor/settings.go",
          "line": 559
        },
        {
          "name": "SaveLayoutFile",
          "anchor": "SaveLayoutFile",
          "decl": "func SaveLayoutFile(path string, f *LayoutFile) error",
          "doc": "SaveLayoutFile encodes f and atomically writes it to path, creating parent directories if needed.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 541
        },
        {
          "name": "SavePermissions",
          "anchor": "SavePermissions",
          "decl": "func SavePermissions(path string, f *PermissionsFile) error",
          "doc": "SavePermissions validates and atomically writes f as deterministic YAML to path, creating parent directories as needed.\n",
          "file": "pkg/editor/permissions.go",
          "line": 601
        },
        {
          "name": "SaveRecentProjectsFile",
          "anchor": "SaveRecentProjectsFile",
          "decl": "func SaveRecentProjectsFile(path string, f *RecentProjectsFile) error",
          "doc": "SaveRecentProjectsFile encodes f and atomically writes it to path, creating parent directories if needed.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 208
        },
        {
          "name": "SceneTabsView",
          "anchor": "SceneTabsView",
          "decl": "func SceneTabsView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "SceneTabsView renders the horizontal tab bar above the viewport: one tab per open scene showing its name, a dirty marker when it has unsaved edits, and a close button. Pressing a tab switches to it without clearing any undo history; closing a dirty tab prompts to save, discard or cancel.\n",
          "file": "pkg/editor/tabs_ui.go",
          "line": 13
        },
        {
          "name": "SceneTreeView",
          "anchor": "SceneTreeView",
          "decl": "func SceneTreeView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "SceneTreeView renders the scene tree panel: the open scene's layers and, under each, its objects with their children nested, kept in step with the editor's revision. Pressing an object's row selects it, and selecting an object in a viewport selects and reveals its row, expanding the rows above it; pressing a layer's row makes it the active layer. Dragging a row onto another makes it that object's child, or its sibling before or after it when dropped near the row's top or bottom edge (DropObject), and dropping it on a layer's row moves it to the top level of that layer (MoveObjectToLayer); both keep its world transform. A row's context menu renames it, changes its ID, moves it up, down, into the sibling above or out of its parent, to another layer, hides or locks it, or deletes it, and F2 renames the selected object in its row. The eye and lock buttons of a row hide the object in the viewports or lock it against picking for this session (SetObjectHidden, SetObjectLocked). Every edit goes through History.\n",
          "file": "pkg/editor/scenetree.go",
          "line": 208
        },
        {
          "name": "SearchPanelView",
          "anchor": "SearchPanelView",
          "decl": "func SearchPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "SearchPanelView renders the Project Search and Find References panel below\nthe viewport while a project is open and the panel is toggled on (via\nFilesView's Search or Find Refs buttons, SetSearchOpen, SetSearchQuery, or\nShowReferences).\n",
          "file": "pkg/editor/search_ui.go",
          "line": 20
        },
        {
          "name": "SettingsView",
          "anchor": "SettingsView",
          "decl": "func SettingsView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "SettingsView renders the unified Settings screen matching docs/design/editor/Settings.dc.html\nand strictly using SpecPalette color, spacing, radius, type, and contrast tokens in both Dark\nand Light appearances. It hosts AGENT (Models and connections, Permissions, Game brief,\nProject rules, Tools, Automations, Usage and privacy), PROJECT · game.yaml (Project, Input map,\nAudio buses, Export), and EDITOR · THIS COMPUTER (General, Viewport, Shortcuts), keeping every\ncontrol reachable with Tab, arrow keys, and focus rings.\n",
          "file": "pkg/editor/settings_ui.go",
          "line": 27
        },
        {
          "name": "ShortcutFromKeyEvent",
          "anchor": "ShortcutFromKeyEvent",
          "decl": "func ShortcutFromKeyEvent(ev core.KeyEvent, targetOS core.OS) (string, bool)",
          "doc": "ShortcutFromKeyEvent converts a hardware KeyEvent captured during rebinding into NSGo's\ncanonical portable shortcut form (converting Meta to \"mod\" on Apple platforms and Ctrl to \"mod\"\non Windows and Linux). Returns \"\", false for bare modifier presses or unsupported empty events.\n",
          "file": "pkg/editor/shortcuts.go",
          "line": 131
        },
        {
          "name": "ShortcutsSheetView",
          "anchor": "ShortcutsSheetView",
          "decl": "func ShortcutsSheetView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ShortcutsSheetView renders the ⌘/ Keyboard Shortcuts reference sheet grouped by keyboard scope,\nstyled strictly with Spec color tokens from docs/design/editor/Spec.dc.html.\n",
          "file": "pkg/editor/shortcuts_ui.go",
          "line": 529
        },
        {
          "name": "SketchPanelView",
          "anchor": "SketchPanelView",
          "decl": "func SketchPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "SketchPanelView renders the right-side Agent / Sketch panel matching docs/design/editor/Sketch.dc.html\nusing exclusively Spec tokens: Agent header, post-sketch Review card (with Sketch overlay toggle, Keep, Revert),\nAgent Reading card (\"I read your sketch as:\" with numbered items, assumptions warning box, Go ahead, Correct a mark),\n\"Sent with this request\" scene-coordinate preview, and composer with the \"Sketch · N marks\" chip.\n",
          "file": "pkg/editor/sketch_ui.go",
          "line": 462
        },
        {
          "name": "SpecAgentPulseOpacity",
          "anchor": "SpecAgentPulseOpacity",
          "decl": "func SpecAgentPulseOpacity(cx *core.Scope, elapsed time.Duration) float32",
          "doc": "SpecAgentPulseOpacity returns the Spec agent-working outline opacity in [0.45, 1.0]\nfor elapsed time since the pulse began. Under Env.ReduceMotion it stays solid at 1.0.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 84
        },
        {
          "name": "SpecMotionDuration",
          "anchor": "SpecMotionDuration",
          "decl": "func SpecMotionDuration(cx *core.Scope, d time.Duration) time.Duration",
          "doc": "SpecMotionDuration returns d when motion is enabled, or 0 when cx is non-nil and\ncx.Env().ReduceMotion() is true.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 75
        },
        {
          "name": "SpecOverlayLegendView",
          "anchor": "SpecOverlayLegendView",
          "decl": "func SpecOverlayLegendView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "SpecOverlayLegendView renders the complete Spec.dc.html Overlay Legend board\n(Selection, Agent working, Added, Changed, Removed, Problem, and Focused change in Review)\non the active theme's viewport surround, drawing every card through DrawObjectOverlay using\nexclusively SpecPalette tokens so Dark and Light appearances can be inspected side by side.\n",
          "file": "pkg/editor/spec_feedback_ui.go",
          "line": 1007
        },
        {
          "name": "SpecTheme",
          "anchor": "SpecTheme",
          "decl": "func SpecTheme() *core.Theme",
          "doc": "SpecTheme returns a clone of the editor's Spec *core.Theme containing both dark and light palettes,\nmapped onto every NSGo core.Palette and ui.Colors role as well as all Spec-specific tokens.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 190
        },
        {
          "name": "SpecThemeYAML",
          "anchor": "SpecThemeYAML",
          "decl": "func SpecThemeYAML() []byte",
          "doc": "SpecThemeYAML returns a copy of the embedded YAML theme file parsed by core.ParseTheme.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 184
        },
        {
          "name": "SpecToastCard",
          "anchor": "SpecToastCard",
          "decl": "func SpecToastCard(p SpecPalette, t Toast, waiting int, onDismiss func()) core.Node",
          "doc": "SpecToastCard renders a single Spec toast pill (40 pt tall, 12 pt radius, single line, semantic icon,\noptional waiting count badge, optional action button with shortcut, optional dismiss button) using\nexclusively tokens from p.\n",
          "file": "pkg/editor/spec_feedback_ui.go",
          "line": 599
        },
        {
          "name": "StartScreenView",
          "anchor": "StartScreenView",
          "decl": "func StartScreenView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "StartScreenView renders the editor's Start Screen matching Start.dc.html, step 1 of FirstRun.dc.html,\nand the Spec.dc.html design tokens (Dark & Light): left sidebar with navigation and conditional RECENT list,\nright pane with \"What do you want to make?\", dynamically populated template cards with filter chips,\nlive-validated New Project bar with a single primary Create button, and streaming `game new` output.\n",
          "file": "pkg/editor/start_screen_ui.go",
          "line": 60
        },
        {
          "name": "StatesPanelView",
          "anchor": "StatesPanelView",
          "decl": "func StatesPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "StatesPanelView renders the sprite state machine graph editor panel (matching Animation.dc.html Screen 1) whenever a *.states.yaml document is open:\nheader with file info, Play/Pause, Drive with keys toggle + interactive key pills, Save and Close;\nstate graph canvas with state nodes (sprite thumbnail, name, clip meta), Any state badge, directed transition arrows and condition labels;\nright sidebar with live animated sprite preview card and LEAVING <STATE> outgoing transition list.\n",
          "file": "pkg/editor/states_ui.go",
          "line": 37
        },
        {
          "name": "StoreUploadRequiresConfirmation",
          "anchor": "StoreUploadRequiresConfirmation",
          "decl": "func StoreUploadRequiresConfirmation(AgentPermissionProfile) bool",
          "doc": "StoreUploadRequiresConfirmation reports whether store publishing requires explicit confirmation\nin Review uploads for the given permission profile. It always returns true.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 98
        },
        {
          "name": "TasksPanelView",
          "anchor": "TasksPanelView",
          "decl": "func TasksPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "TasksPanelView renders the Agent right panel with its collapsible Tasks list (grouped under\nNeeds you, Running, Ready to review, Queued, and Failed), bulk Dismiss for Ready to review,\nfocused task detail with live steps & review actions, and Queue / Run in parallel composer,\nmatching docs/design/editor/Tasks.dc.html using exclusively SpecPalette tokens.\nThe panel container, ScrollViews, and composer input remain stably mounted across task updates\nso background progress never steals typing focus or resets scroll position.\n",
          "file": "pkg/editor/tasks_ui.go",
          "line": 149
        },
        {
          "name": "TerrainPanelView",
          "anchor": "TerrainPanelView",
          "decl": "func TerrainPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "TerrainPanelView renders the docked Terrain Sculpt & Paint panel below the\nviewport while a terrain is open: brush mode selector (Raise, Lower, Smooth,\nFlatten, Set Height, Paint Layer, Paint Foliage), falloff selector (Smooth,\nLinear, Flat), numeric inputs for radius, strength, target height, and target\nfoliage density, active material/foliage layer pickers, and Save/Close actions.\n",
          "file": "pkg/editor/terrain_ui.go",
          "line": 18
        },
        {
          "name": "TilePaletteView",
          "anchor": "TilePaletteView",
          "decl": "func TilePaletteView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "TilePaletteView renders the tile palette panel, shown right of the viewport while a tile tool is active in 2D: the active layer's tileset (Editor.TilePalette) as a grid of its tiles in ID order at the tilemap's tile size, scaled down only when a tile is wider than the panel. Pressing a tile, or moving between tiles with the arrow keys, makes it the tile Paint, Fill, Rect and Line use (Editor.SetActiveTileID); as in base.RadioGroup, every arrow key steps through the tiles in ID order rather than by rows. With Stamp active, pressing tiles selects a 1x1 or rectangular pattern (Shift or the Rect toggle extends from the anchor tile) alongside Copy/Cut/Paste controls; with Random active, pressing tiles toggles them in the weighted random pool alongside Seed and weight controls. A layer without tiles to pick shows why instead of an empty grid.\n",
          "file": "pkg/editor/tilepalette.go",
          "line": 345
        },
        {
          "name": "TileReviewPanelView",
          "anchor": "TileReviewPanelView",
          "decl": "func TileReviewPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "TileReviewPanelView renders the region-based tile edit review panel right of the viewport while a tile review is active in 2D,\nstyled exclusively with Spec.dc.html tokens and matching docs/design/editor/Tiles.dc.html.\n",
          "file": "pkg/editor/tile_review_ui.go",
          "line": 299
        },
        {
          "name": "TilesetEditorPanelView",
          "anchor": "TilesetEditorPanelView",
          "decl": "func TilesetEditorPanelView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "TilesetEditorPanelView renders the docked Tileset Editor below the viewport while a YAML tileset (*.tileset.yaml) is open:\nterrain set management, a visual tile grid with collision/shape/animation/terrain indicators,\nand tabbed per-tile editors for Terrain masks, Collision flags and shapes (drawn over the tile), Animation (with live preview), and Custom Data.\n",
          "file": "pkg/editor/tileset_editor_ui.go",
          "line": 23
        },
        {
          "name": "TilesetTileDisplayName",
          "anchor": "TilesetTileDisplayName",
          "decl": "func TilesetTileDisplayName(doc *tilemap.TilesetDoc, tileID int) string",
          "doc": "TilesetTileDisplayName returns tileID's human-readable name from doc: TileDoc.Name when set, else the atlas frame name, else \"tile_<id>\".\n",
          "file": "pkg/editor/tileset_editor.go",
          "line": 1094
        },
        {
          "name": "TilesetTileSource",
          "anchor": "TilesetTileSource",
          "decl": "func TilesetTileSource(doc *tilemap.TilesetDoc, tileID int) string",
          "doc": "TilesetTileSource formats where tileID comes from in doc, e.g. \"art/tiles/dungeon.png · cell 2, 1\" or \"atlas: props · frame torch_1\".\n",
          "file": "pkg/editor/tileset_editor.go",
          "line": 1107
        },
        {
          "name": "ToastDuration",
          "anchor": "ToastDuration",
          "decl": "func ToastDuration(t Toast) time.Duration",
          "doc": "ToastDuration returns the Spec auto-dismiss timeout for t (docs/design/editor/Toasts.dc.html):\n  - ToastSuccess and ToastInfo: 4 s without an action, 6 s with an action\n  - ToastWarning: 8 s\n  - ToastError and ToastProgress: 0 (stays until retried, dismissed, canceled, or completed)\n",
          "file": "pkg/editor/toasts.go",
          "line": 156
        },
        {
          "name": "ToastView",
          "anchor": "ToastView",
          "decl": "func ToastView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ToastView renders the editor's active toast at the bottom center of the viewport (8 px above\nthe viewport bar in edit mode, never over the scene tree, inspector, or agent panel) while\nthe viewport is on screen, using exclusively SpecPalette tokens (docs/design/editor/Toasts.dc.html).\n",
          "file": "pkg/editor/spec_feedback_ui.go",
          "line": 54
        },
        {
          "name": "ValidateAgentThread",
          "anchor": "ValidateAgentThread",
          "decl": "func ValidateAgentThread(t *AgentThread) error",
          "doc": "ValidateAgentThread checks that t conforms to version 1 of the agent thread schema.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 405
        },
        {
          "name": "ValidateAutomations",
          "anchor": "ValidateAutomations",
          "decl": "func ValidateAutomations(f *AutomationsFile) error",
          "doc": "ValidateAutomations checks f against the version 1 automations schema.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 323
        },
        {
          "name": "ValidateCheckpointManifest",
          "anchor": "ValidateCheckpointManifest",
          "decl": "func ValidateCheckpointManifest(m *CheckpointManifest) error",
          "doc": "ValidateCheckpointManifest checks that m conforms to version 1 of the checkpoint manifest schema.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 185
        },
        {
          "name": "ValidateEditorSettings",
          "anchor": "ValidateEditorSettings",
          "decl": "func ValidateEditorSettings(s *EditorSettings) error",
          "doc": "ValidateEditorSettings checks s against the version 1 editor settings schema.\n",
          "file": "pkg/editor/settings.go",
          "line": 346
        },
        {
          "name": "ValidateLayout",
          "anchor": "ValidateLayout",
          "decl": "func ValidateLayout(f *LayoutFile) error",
          "doc": "ValidateLayout checks that f conforms to version 1 of the editor dock layout schema.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 276
        },
        {
          "name": "ValidatePermissions",
          "anchor": "ValidatePermissions",
          "decl": "func ValidatePermissions(f *PermissionsFile) error",
          "doc": "ValidatePermissions checks f against the version 1 permissions schema.\n",
          "file": "pkg/editor/permissions.go",
          "line": 472
        },
        {
          "name": "ValidateRecentProjects",
          "anchor": "ValidateRecentProjects",
          "decl": "func ValidateRecentProjects(f *RecentProjectsFile) error",
          "doc": "ValidateRecentProjects checks that f conforms to version 1 of the recent projects schema.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 137
        },
        {
          "name": "ValidateReleaseNotes",
          "anchor": "ValidateReleaseNotes",
          "decl": "func ValidateReleaseNotes(notes string) error",
          "doc": "ValidateReleaseNotes reports whether notes is safe and within the size budget for release notes Markdown.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 43
        },
        {
          "name": "Viewport3DModelsStripView",
          "anchor": "Viewport3DModelsStripView",
          "decl": "func Viewport3DModelsStripView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "Viewport3DModelsStripView renders the bottom MODELS strip along the 3D viewport (docs/design/editor/Viewport3D.dc.html),\nshowing offscreen-rendered thumbnails of the project's models and built-in primitives with drag-into-viewport placement,\ntooltips, an \"Or ask for one\" button, and an inline agent prompt bar when opened. All surfaces, borders, text, focus rings,\nand icons come strictly from SpecPalette tokens.\n",
          "file": "pkg/editor/models_ui.go",
          "line": 364
        },
        {
          "name": "ViewportView",
          "anchor": "ViewportView",
          "decl": "func ViewportView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "ViewportView renders the center interactive core.Canvas viewport panel, which fills the panel.\n\nIn 2D, with the Select or Move tool, a drag on an object moves it, and a drag on the selection's gizmo moves it along one of its axes, turns it with the ring or scales it with a corner or edge handle (Shift keeps the aspect ratio), each recorded as one undoable step when the drag ends; Escape or a cancelled gesture puts the object back (BeginDrag2D). A mouse wheel, a pinch or a touchpad scroll with Control or Command held zooms the 2D view (View2D) about the pointer, and a touchpad's scroll, a mouse wheel's sideways scroll, a middle-button drag, a drag with Space held or a two-finger drag pans it; while the scene plays the view is the scene camera's and does not move; F frames the selection (FrameSelection2D), Home frames everything (FrameAll2D) and Mod+0 returns to the scene camera's view (ResetView2D). With a tile tool a drag with the mouse or one finger is a tile stroke (BeginTileStroke) over every cell it crosses, recorded as one undo step: Paint paints and Erase erases, a right-button drag erases with Paint, Alt with any tile tool picks the tile under the pointer, and Pick picks and hands over to Paint; the cell under the resting mouse is outlined (HoveredTile). In 3D a drag orbits the camera or drags the gizmo; a middle-button drag, a Shift-drag, a touchpad's scroll and a two-finger drag pan it; the wheel and a pinch zoom it; holding the right button flies it, the pointer turning it and W, A, S, D, Q and E moving it (BeginFly3D); F frames the selection; and a bar, an axis widget and the controls' help line over the scene switch the projection, turn to the axis views, orbit by 15 degrees and reset the view.\n",
          "file": "pkg/editor/viewport.go",
          "line": 1371
        },
        {
          "name": "WindowToastView",
          "anchor": "WindowToastView",
          "decl": "func WindowToastView(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node",
          "doc": "WindowToastView renders the editor's active toast at the bottom center of the window, 24 px up,\nwhenever no viewport is on screen (Start screen, Settings, Export, and other full-window screens),\nusing exclusively SpecPalette tokens (docs/design/editor/Toasts.dc.html).\n",
          "file": "pkg/editor/spec_feedback_ui.go",
          "line": 61
        }
      ],
      "types": [
        {
          "name": "AgentChangeKind",
          "anchor": "AgentChangeKind",
          "decl": "type AgentChangeKind string",
          "doc": "AgentChangeKind classifies how an object differs in a pending agent turn.\n",
          "file": "pkg/editor/agent_live.go",
          "line": 84,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentChangeAdded",
                  "anchor": "AgentChangeAdded"
                },
                {
                  "name": "AgentChangeChanged",
                  "anchor": "AgentChangeChanged"
                },
                {
                  "name": "AgentChangeRemoved",
                  "anchor": "AgentChangeRemoved"
                }
              ],
              "decl": "const (\n\tAgentChangeAdded   AgentChangeKind = \"added\"\n\tAgentChangeChanged AgentChangeKind = \"changed\"\n\tAgentChangeRemoved AgentChangeKind = \"removed\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_live.go",
              "line": 86
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentChipPayload",
          "anchor": "AgentChipPayload",
          "decl": "type AgentChipPayload struct {\n\tChip      AgentContextChip\n\tHeader    string\n\tText      string\n\tImagePNG  []byte\n\tImageSrc  core.ImageSource\n\tImageW    int\n\tImageH    int\n\tStartLine int\n\tEndLine   int\n\tTokens    int\n}",
          "doc": "AgentChipPayload is the exact content shown on chip hover AND assembled into the request sent to the agent.\nBoth the hover preview and AssembleAgentRequest resolve every chip through ResolveChipPayload so they can never diverge.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 152,
          "members": [
            {
              "name": "Chip",
              "anchor": "AgentChipPayload.Chip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Header",
              "anchor": "AgentChipPayload.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "AgentChipPayload.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImagePNG",
              "anchor": "AgentChipPayload.ImagePNG",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageSrc",
              "anchor": "AgentChipPayload.ImageSrc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageW",
              "anchor": "AgentChipPayload.ImageW",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageH",
              "anchor": "AgentChipPayload.ImageH",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartLine",
              "anchor": "AgentChipPayload.StartLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EndLine",
              "anchor": "AgentChipPayload.EndLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tokens",
              "anchor": "AgentChipPayload.Tokens",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Formatted",
              "anchor": "AgentChipPayload.Formatted",
              "recv": "AgentChipPayload",
              "decl": "func (p AgentChipPayload) Formatted() string",
              "doc": "Formatted returns the exact text payload sent to the agent and shown on hover.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 166
            }
          ]
        },
        {
          "name": "AgentClientInfo",
          "anchor": "AgentClientInfo",
          "decl": "type AgentClientInfo struct {\n\t// ID uniquely identifies the session on the server.\n\tID string\n\t// Name is the client's raw MCP implementation name (for example \"claude-code\" or \"codex\").\n\tName string\n\t// DisplayName is the friendly display name shown in tooltips and Settings (for example \"Claude Code\").\n\tDisplayName string\n\t// Transport names how the client reaches the server (for example \"stdio\" or \"unix\").\n\tTransport string\n}",
          "doc": "AgentClientInfo identifies one connected MCP client session attached to the editor's MCP server.\n",
          "file": "pkg/editor/agent.go",
          "line": 110,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentClientInfo.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the session on the server."
            },
            {
              "name": "Name",
              "anchor": "AgentClientInfo.Name",
              "kind": "field",
              "doc": "Name is the client's raw MCP implementation name (for example \"claude-code\" or \"codex\")."
            },
            {
              "name": "DisplayName",
              "anchor": "AgentClientInfo.DisplayName",
              "kind": "field",
              "doc": "DisplayName is the friendly display name shown in tooltips and Settings (for example \"Claude Code\")."
            },
            {
              "name": "Transport",
              "anchor": "AgentClientInfo.Transport",
              "kind": "field",
              "doc": "Transport names how the client reaches the server (for example \"stdio\" or \"unix\")."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "HoverLabel",
              "anchor": "AgentClientInfo.HoverLabel",
              "recv": "AgentClientInfo",
              "decl": "func (c AgentClientInfo) HoverLabel() string",
              "doc": "HoverLabel formats the status chip hover text, such as \"Claude Code over stdio\".\n",
              "file": "pkg/editor/agent.go",
              "line": 122
            }
          ]
        },
        {
          "name": "AgentContextChip",
          "anchor": "AgentContextChip",
          "decl": "type AgentContextChip struct {\n\tID        string\n\tKind      ContextChipKind\n\tName      string\n\tTarget    string\n\tSceneFile string\n\tLayer     string\n\tLine      int\n\tDetail    string\n\tIcon      MentionIconKind\n\tColorRole string\n\tAlways    bool\n\tSuggested bool\n}",
          "doc": "AgentContextChip is one chip shown above the composer.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 135,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentContextChip.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AgentContextChip.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "AgentContextChip.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "AgentContextChip.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneFile",
              "anchor": "AgentContextChip.SceneFile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "AgentContextChip.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "AgentContextChip.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "AgentContextChip.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Icon",
              "anchor": "AgentContextChip.Icon",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorRole",
              "anchor": "AgentContextChip.ColorRole",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Always",
              "anchor": "AgentContextChip.Always",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Suggested",
              "anchor": "AgentContextChip.Suggested",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentContextItem",
          "anchor": "AgentContextItem",
          "decl": "type AgentContextItem struct {\n\tID      string\n\tLabel   string\n\tPrimary bool\n\tLocked  bool\n}",
          "doc": "AgentContextItem describes one item listed under \"The agent reads these with every request:\".\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 242,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentContextItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "AgentContextItem.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Primary",
              "anchor": "AgentContextItem.Primary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Locked",
              "anchor": "AgentContextItem.Locked",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentEvent",
          "anchor": "AgentEvent",
          "decl": "type AgentEvent struct {\n\tKind         AgentEventKind\n\tSessionID    string\n\tStepID       string\n\tStepTitle    string\n\tStepDetail   string\n\tStepStatus   AgentStepStatus\n\tStepIndex    int\n\tStepTotal    int\n\tToolName     string\n\tCallSummary  string\n\tPlannedSteps []string\n\tPartial      *AgentPartialState\n\tLost         *AgentLostState\n\tText         string\n\tInputTokens  int\n\tOutputTokens int\n\tErr          string\n}",
          "doc": "AgentEvent is one incremental update streamed by an AgentRunner.\n",
          "file": "pkg/editor/agent.go",
          "line": 405,
          "members": [
            {
              "name": "Kind",
              "anchor": "AgentEvent.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SessionID",
              "anchor": "AgentEvent.SessionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepID",
              "anchor": "AgentEvent.StepID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepTitle",
              "anchor": "AgentEvent.StepTitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepDetail",
              "anchor": "AgentEvent.StepDetail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepStatus",
              "anchor": "AgentEvent.StepStatus",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepIndex",
              "anchor": "AgentEvent.StepIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepTotal",
              "anchor": "AgentEvent.StepTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToolName",
              "anchor": "AgentEvent.ToolName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CallSummary",
              "anchor": "AgentEvent.CallSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlannedSteps",
              "anchor": "AgentEvent.PlannedSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Partial",
              "anchor": "AgentEvent.Partial",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Lost",
              "anchor": "AgentEvent.Lost",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "AgentEvent.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InputTokens",
              "anchor": "AgentEvent.InputTokens",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OutputTokens",
              "anchor": "AgentEvent.OutputTokens",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Err",
              "anchor": "AgentEvent.Err",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseClaudeStreamLine",
              "anchor": "ParseClaudeStreamLine",
              "decl": "func ParseClaudeStreamLine(line []byte) ([]AgentEvent, bool)",
              "doc": "ParseClaudeStreamLine decodes one JSONL line from `claude --print --output-format=stream-json --verbose` into incremental AgentEvents.\n",
              "file": "pkg/editor/agent.go",
              "line": 2132
            },
            {
              "name": "ParseCodexStreamLine",
              "anchor": "ParseCodexStreamLine",
              "decl": "func ParseCodexStreamLine(line []byte) ([]AgentEvent, bool)",
              "doc": "ParseCodexStreamLine decodes one JSONL line from `codex exec --json` into incremental AgentEvents.\n",
              "file": "pkg/editor/agent.go",
              "line": 2222
            }
          ],
          "methods": []
        },
        {
          "name": "AgentEventKind",
          "anchor": "AgentEventKind",
          "decl": "type AgentEventKind string",
          "doc": "AgentEventKind classifies one streamed event from an AgentRunner.\n",
          "file": "pkg/editor/agent.go",
          "line": 392,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentEventSession",
                  "anchor": "AgentEventSession"
                },
                {
                  "name": "AgentEventStep",
                  "anchor": "AgentEventStep"
                },
                {
                  "name": "AgentEventMessage",
                  "anchor": "AgentEventMessage"
                },
                {
                  "name": "AgentEventUsage",
                  "anchor": "AgentEventUsage"
                },
                {
                  "name": "AgentEventDone",
                  "anchor": "AgentEventDone"
                },
                {
                  "name": "AgentEventError",
                  "anchor": "AgentEventError"
                },
                {
                  "name": "AgentEventModelRecovered",
                  "anchor": "AgentEventModelRecovered"
                }
              ],
              "decl": "const (\n\tAgentEventSession        AgentEventKind = \"session\"\n\tAgentEventStep           AgentEventKind = \"step\"\n\tAgentEventMessage        AgentEventKind = \"message\"\n\tAgentEventUsage          AgentEventKind = \"usage\"\n\tAgentEventDone           AgentEventKind = \"done\"\n\tAgentEventError          AgentEventKind = \"error\"\n\tAgentEventModelRecovered AgentEventKind = \"model_recovered\"\n)",
              "doc": "",
              "file": "pkg/editor/agent.go",
              "line": 394
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentFailedCall",
          "anchor": "AgentFailedCall",
          "decl": "type AgentFailedCall struct {\n\tToolName string\n\tCall     string\n\tError    string\n}",
          "doc": "AgentFailedCall records one refused tool call listed in the Stuck card.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 89,
          "members": [
            {
              "name": "ToolName",
              "anchor": "AgentFailedCall.ToolName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Call",
              "anchor": "AgentFailedCall.Call",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "AgentFailedCall.Error",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentFieldDiff",
          "anchor": "AgentFieldDiff",
          "decl": "type AgentFieldDiff struct {\n\tComponent string `json:\"component,omitempty\"`\n\tField     string `json:\"field\"`\n\tOldValue  string `json:\"oldValue\"`\n\tNewValue  string `json:\"newValue\"`\n}",
          "doc": "AgentFieldDiff records one changed object, component, or property field in a pending agent turn.\n",
          "file": "pkg/editor/agent_live.go",
          "line": 93,
          "members": [
            {
              "name": "Component",
              "anchor": "AgentFieldDiff.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "AgentFieldDiff.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldValue",
              "anchor": "AgentFieldDiff.OldValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewValue",
              "anchor": "AgentFieldDiff.NewValue",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentFollowUp",
          "anchor": "AgentFollowUp",
          "decl": "type AgentFollowUp struct {\n\tText   string    `json:\"text\"`\n\tSentAt time.Time `json:\"sentAt\"`\n}",
          "doc": "AgentFollowUp is an additional instruction sent via \"Add to this request\" while an agent request is running.\n",
          "file": "pkg/editor/agent_live_steps.go",
          "line": 48,
          "members": [
            {
              "name": "Text",
              "anchor": "AgentFollowUp.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SentAt",
              "anchor": "AgentFollowUp.SentAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentHistoryEntry",
          "anchor": "AgentHistoryEntry",
          "decl": "type AgentHistoryEntry struct {\n\tID          string\n\tKind        string // \"agent\", \"person\", \"saved\"\n\tTitle       string\n\tMeta        string\n\tThreadID    string\n\tRequestID   string\n\tStepID      string\n\tTimestamp   string\n\tHighlighted bool\n}",
          "doc": "AgentHistoryEntry is one item in the History timeline (agent steps and manual undo commands).\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 269,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentHistoryEntry.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AgentHistoryEntry.Kind",
              "kind": "field",
              "doc": "\"agent\", \"person\", \"saved\""
            },
            {
              "name": "Title",
              "anchor": "AgentHistoryEntry.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Meta",
              "anchor": "AgentHistoryEntry.Meta",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ThreadID",
              "anchor": "AgentHistoryEntry.ThreadID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RequestID",
              "anchor": "AgentHistoryEntry.RequestID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepID",
              "anchor": "AgentHistoryEntry.StepID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Timestamp",
              "anchor": "AgentHistoryEntry.Timestamp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Highlighted",
              "anchor": "AgentHistoryEntry.Highlighted",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentHistorySelection",
          "anchor": "AgentHistorySelection",
          "decl": "type AgentHistorySelection struct {\n\tThreadID  string\n\tRequestID string\n\tStepID    string\n}",
          "doc": "AgentHistorySelection identifies the step focused when \"Open this step in History\" is clicked.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 262,
          "members": [
            {
              "name": "ThreadID",
              "anchor": "AgentHistorySelection.ThreadID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RequestID",
              "anchor": "AgentHistorySelection.RequestID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepID",
              "anchor": "AgentHistorySelection.StepID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentImageFormat",
          "anchor": "AgentImageFormat",
          "decl": "type AgentImageFormat string",
          "doc": "AgentImageFormat identifies one of the three supported reference image formats for agent requests.\n",
          "file": "pkg/editor/agent_references.go",
          "line": 41,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentImagePNG",
                  "anchor": "AgentImagePNG"
                },
                {
                  "name": "AgentImageJPEG",
                  "anchor": "AgentImageJPEG"
                },
                {
                  "name": "AgentImageWebP",
                  "anchor": "AgentImageWebP"
                }
              ],
              "decl": "const (\n\tAgentImagePNG  AgentImageFormat = \"png\"\n\tAgentImageJPEG AgentImageFormat = \"jpeg\"\n\tAgentImageWebP AgentImageFormat = \"webp\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_references.go",
              "line": 43
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Extension",
              "anchor": "AgentImageFormat.Extension",
              "recv": "AgentImageFormat",
              "decl": "func (f AgentImageFormat) Extension() string",
              "doc": "Extension returns the canonical lowercase file extension (including the leading dot) for f.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 64
            },
            {
              "name": "Label",
              "anchor": "AgentImageFormat.Label",
              "recv": "AgentImageFormat",
              "decl": "func (f AgentImageFormat) Label() string",
              "doc": "Label returns the human-readable format name shown in previews and errors.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 78
            },
            {
              "name": "MIMEType",
              "anchor": "AgentImageFormat.MIMEType",
              "recv": "AgentImageFormat",
              "decl": "func (f AgentImageFormat) MIMEType() string",
              "doc": "MIMEType returns the standard MIME type for f.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 50
            }
          ]
        },
        {
          "name": "AgentLostKind",
          "anchor": "AgentLostKind",
          "decl": "type AgentLostKind string",
          "doc": "AgentLostKind classifies whether a request was interrupted by a lost MCP connection or a model API error.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 115,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentLostConnection",
                  "anchor": "AgentLostConnection"
                },
                {
                  "name": "AgentLostModelError",
                  "anchor": "AgentLostModelError"
                }
              ],
              "decl": "const (\n\tAgentLostConnection AgentLostKind = \"connection\"\n\tAgentLostModelError AgentLostKind = \"model_error\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_states.go",
              "line": 117
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentLostState",
          "anchor": "AgentLostState",
          "decl": "type AgentLostState struct {\n\tKind             AgentLostKind\n\tAgentName        string\n\tLostAt           time.Time\n\tAfterStep        int\n\tDuringStep       int\n\tTitle            string\n\tDetail           string\n\tRetryAttempt     int\n\tRetryTotal       int\n\tRetryIn          time.Duration\n\tFallbackAgent    string\n\tReconnected      bool\n\tAskResumePending bool\n\tResumed          bool\n}",
          "doc": "AgentLostState holds the state when the connection or model fails mid-request.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 123,
          "members": [
            {
              "name": "Kind",
              "anchor": "AgentLostState.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentName",
              "anchor": "AgentLostState.AgentName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LostAt",
              "anchor": "AgentLostState.LostAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AfterStep",
              "anchor": "AgentLostState.AfterStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DuringStep",
              "anchor": "AgentLostState.DuringStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentLostState.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "AgentLostState.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RetryAttempt",
              "anchor": "AgentLostState.RetryAttempt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RetryTotal",
              "anchor": "AgentLostState.RetryTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RetryIn",
              "anchor": "AgentLostState.RetryIn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FallbackAgent",
              "anchor": "AgentLostState.FallbackAgent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reconnected",
              "anchor": "AgentLostState.Reconnected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AskResumePending",
              "anchor": "AgentLostState.AskResumePending",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Resumed",
              "anchor": "AgentLostState.Resumed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveBody",
              "anchor": "AgentLostState.EffectiveBody",
              "recv": "AgentLostState",
              "decl": "func (l AgentLostState) EffectiveBody() string",
              "doc": "EffectiveBody returns the Lost card description with timestamp and interrupted step.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 155
            },
            {
              "name": "EffectiveTitle",
              "anchor": "AgentLostState.EffectiveTitle",
              "recv": "AgentLostState",
              "decl": "func (l AgentLostState) EffectiveTitle() string",
              "doc": "EffectiveTitle returns the Lost card heading.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 141
            }
          ]
        },
        {
          "name": "AgentMCPServer",
          "anchor": "AgentMCPServer",
          "decl": "type AgentMCPServer struct {\n\t// Name is the unique MCP server identifier (letters, digits, '_', '-').\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Title is the display name shown in Settings › Tools (for example \"Running game · nsgo dev\").\n\tTitle string `yaml:\"title,omitempty\"`\n\t// Description briefly describes what the server offers (for example \"inspect and drive the live game\").\n\tDescription string `yaml:\"description,omitempty\"`\n\t// Command is the executable launched over stdio (for example \"go\").\n\tCommand string `yaml:\"command\" schema:\"required\"`\n\t// Args are optional arguments passed to Command (for example [\"tool\", \"nsgo\", \"mcp\"]).\n\tArgs []string `yaml:\"args,omitempty\"`\n\t// Enabled controls whether this server is included in the agent's MCP configuration (default true when omitted).\n\tEnabled *bool `yaml:\"enabled,omitempty\"`\n}",
          "doc": "AgentMCPServer configures an external MCP server the agent may use alongside the editor's server.\nEntries configured here are written into the project's agent MCP configuration (.mcp.json and .codex/config.toml).\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 219,
          "members": [
            {
              "name": "Name",
              "anchor": "AgentMCPServer.Name",
              "kind": "field",
              "doc": "Name is the unique MCP server identifier (letters, digits, '_', '-')."
            },
            {
              "name": "Title",
              "anchor": "AgentMCPServer.Title",
              "kind": "field",
              "doc": "Title is the display name shown in Settings › Tools (for example \"Running game · nsgo dev\")."
            },
            {
              "name": "Description",
              "anchor": "AgentMCPServer.Description",
              "kind": "field",
              "doc": "Description briefly describes what the server offers (for example \"inspect and drive the live game\")."
            },
            {
              "name": "Command",
              "anchor": "AgentMCPServer.Command",
              "kind": "field",
              "doc": "Command is the executable launched over stdio (for example \"go\")."
            },
            {
              "name": "Args",
              "anchor": "AgentMCPServer.Args",
              "kind": "field",
              "doc": "Args are optional arguments passed to Command (for example [\"tool\", \"nsgo\", \"mcp\"])."
            },
            {
              "name": "Enabled",
              "anchor": "AgentMCPServer.Enabled",
              "kind": "field",
              "doc": "Enabled controls whether this server is included in the agent's MCP configuration (default true when omitted)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultAgentMCPServers",
              "anchor": "DefaultAgentMCPServers",
              "decl": "func DefaultAgentMCPServers() []AgentMCPServer",
              "doc": "DefaultAgentMCPServers returns the default external MCP server list starting with the running game via `nsgo dev`.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 256
            }
          ],
          "methods": [
            {
              "name": "CommandLine",
              "anchor": "AgentMCPServer.CommandLine",
              "recv": "AgentMCPServer",
              "decl": "func (s AgentMCPServer) CommandLine() string",
              "doc": "CommandLine formats Command and Args for display in Settings › Tools.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 248
            },
            {
              "name": "DisplayTitle",
              "anchor": "AgentMCPServer.DisplayTitle",
              "recv": "AgentMCPServer",
              "decl": "func (s AgentMCPServer) DisplayTitle() string",
              "doc": "DisplayTitle returns Title when set, falling back to Name.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 240
            },
            {
              "name": "IsEnabled",
              "anchor": "AgentMCPServer.IsEnabled",
              "recv": "AgentMCPServer",
              "decl": "func (s AgentMCPServer) IsEnabled() bool",
              "doc": "IsEnabled reports whether s is enabled (true when Enabled is nil).\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 235
            }
          ]
        },
        {
          "name": "AgentMismatchReport",
          "anchor": "AgentMismatchReport",
          "decl": "type AgentMismatchReport struct {\n\tTitle       string\n\tClaimedText string\n\tRows        []AgentMismatchRow\n\tReason      string\n\tAskedWhy    bool\n}",
          "doc": "AgentMismatchReport describes a disagreement between an agent's summary text and the actual diff in its review.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 225,
          "members": [
            {
              "name": "Title",
              "anchor": "AgentMismatchReport.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClaimedText",
              "anchor": "AgentMismatchReport.ClaimedText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "AgentMismatchReport.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "AgentMismatchReport.Reason",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AskedWhy",
              "anchor": "AgentMismatchReport.AskedWhy",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CheckAgentSummaryAgainstDiff",
              "anchor": "CheckAgentSummaryAgainstDiff",
              "decl": "func CheckAgentSummaryAgainstDiff(summary string, review *AgentTurnReview, mutations []agentObjectMutation) *AgentMismatchReport",
              "doc": "CheckAgentSummaryAgainstDiff compares every numeric and untouched claim in summary against the actual\nscene diff in review. When any claim disagrees with review, it returns a populated AgentMismatchReport\n(including the known reason when an object was added and later removed during the turn).\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1535
            }
          ],
          "methods": []
        },
        {
          "name": "AgentMismatchRow",
          "anchor": "AgentMismatchRow",
          "decl": "type AgentMismatchRow struct {\n\tWhat      string\n\tSummary   string\n\tReview    string\n\tDisagrees bool\n}",
          "doc": "AgentMismatchRow is one comparison row in the Summary-vs-Review mismatch table.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 217,
          "members": [
            {
              "name": "What",
              "anchor": "AgentMismatchRow.What",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "AgentMismatchRow.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Review",
              "anchor": "AgentMismatchRow.Review",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disagrees",
              "anchor": "AgentMismatchRow.Disagrees",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentMode",
          "anchor": "AgentMode",
          "decl": "type AgentMode string",
          "doc": "AgentMode selects how the editor connects to an AI agent.\n",
          "file": "pkg/editor/agent.go",
          "line": 39,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentModeUnconfigured",
                  "anchor": "AgentModeUnconfigured"
                },
                {
                  "name": "AgentModeLocal",
                  "anchor": "AgentModeLocal"
                },
                {
                  "name": "AgentModeAPIKey",
                  "anchor": "AgentModeAPIKey"
                },
                {
                  "name": "AgentModeNone",
                  "anchor": "AgentModeNone"
                }
              ],
              "decl": "const (\n\t// AgentModeUnconfigured is the initial state before the user completes the Connect dialog.\n\tAgentModeUnconfigured AgentMode = \"\"\n\t// AgentModeLocal connects to an external MCP agent running on this computer (Claude Code, Codex, or any MCP client).\n\tAgentModeLocal AgentMode = \"local\"\n\t// AgentModeAPIKey selects the built-in model path using an API key stored in NSGo's core.Secrets / system keychain.\n\tAgentModeAPIKey AgentMode = \"apikey\"\n\t// AgentModeNone disables agent features and keeps the Agent panel closed.\n\tAgentModeNone AgentMode = \"none\"\n)",
              "doc": "",
              "file": "pkg/editor/agent.go",
              "line": 41
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentModelErrorState",
          "anchor": "AgentModelErrorState",
          "decl": "type AgentModelErrorState struct {\n\tProvider         string\n\tStatusCode       int\n\tHeadline         string\n\tMessage          string\n\tRetryDelay       time.Duration\n\tRetryAttempt     int\n\tRetryTotal       int\n\tRetrying         bool\n\tTask             AgentTaskKind\n\tAlternativeAgent string\n\tAlternativeRoute AgentModelRoute\n}",
          "doc": "AgentModelErrorState describes a live model API error card (such as HTTP 529 overloaded) with retry progress and an optional switch to another connected agent.\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 254,
          "members": [
            {
              "name": "Provider",
              "anchor": "AgentModelErrorState.Provider",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StatusCode",
              "anchor": "AgentModelErrorState.StatusCode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Headline",
              "anchor": "AgentModelErrorState.Headline",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "AgentModelErrorState.Message",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RetryDelay",
              "anchor": "AgentModelErrorState.RetryDelay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RetryAttempt",
              "anchor": "AgentModelErrorState.RetryAttempt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RetryTotal",
              "anchor": "AgentModelErrorState.RetryTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Retrying",
              "anchor": "AgentModelErrorState.Retrying",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Task",
              "anchor": "AgentModelErrorState.Task",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlternativeAgent",
              "anchor": "AgentModelErrorState.AlternativeAgent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlternativeRoute",
              "anchor": "AgentModelErrorState.AlternativeRoute",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Body",
              "anchor": "AgentModelErrorState.Body",
              "recv": "AgentModelErrorState",
              "decl": "func (m AgentModelErrorState) Body() string",
              "doc": "Body formats the model error card body text matching docs/design/editor/AgentStates.dc.html,\nfor example \"Retrying in 8 s · try 2 of 4. Playtest analysis can switch to Claude Code for now.\"\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 270
            }
          ]
        },
        {
          "name": "AgentModelRoute",
          "anchor": "AgentModelRoute",
          "decl": "type AgentModelRoute string",
          "doc": "AgentModelRoute classifies which execution backend handles a WHO DOES WHAT route label.\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 216,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentRouteLocal",
                  "anchor": "AgentRouteLocal"
                },
                {
                  "name": "AgentRouteBuiltInDefault",
                  "anchor": "AgentRouteBuiltInDefault"
                },
                {
                  "name": "AgentRouteBuiltInFast",
                  "anchor": "AgentRouteBuiltInFast"
                },
                {
                  "name": "AgentRouteNone",
                  "anchor": "AgentRouteNone"
                }
              ],
              "decl": "const (\n\t// AgentRouteLocal routes work to the connected local MCP agent (for example Claude Code or Codex).\n\tAgentRouteLocal AgentModelRoute = \"local\"\n\t// AgentRouteBuiltInDefault routes work to the built-in Anthropic API default model.\n\tAgentRouteBuiltInDefault AgentModelRoute = \"builtin_default\"\n\t// AgentRouteBuiltInFast routes work to the built-in Anthropic API fast model.\n\tAgentRouteBuiltInFast AgentModelRoute = \"builtin_fast\"\n\t// AgentRouteNone leaves a task kind unassigned (for example Art and sound when no generator server is connected).\n\tAgentRouteNone AgentModelRoute = \"none\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_builtin.go",
              "line": 218
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsBuiltIn",
              "anchor": "AgentModelRoute.IsBuiltIn",
              "recv": "AgentModelRoute",
              "decl": "func (r AgentModelRoute) IsBuiltIn() bool",
              "doc": "IsBuiltIn reports whether r uses the built-in API key runner rather than a local MCP CLI agent.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 240
            },
            {
              "name": "Valid",
              "anchor": "AgentModelRoute.Valid",
              "recv": "AgentModelRoute",
              "decl": "func (r AgentModelRoute) Valid() bool",
              "doc": "Valid reports whether r is a recognized task route.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 230
            }
          ]
        },
        {
          "name": "AgentObjectAttribution",
          "anchor": "AgentObjectAttribution",
          "decl": "type AgentObjectAttribution struct {\n\tThreadID     string\n\tThreadTitle  string\n\tRequestID    string\n\tRequestTitle string\n\tScenePath    string\n\tTimestamp    string\n\tAgeLabel     string\n}",
          "doc": "AgentObjectAttribution identifies the agent thread request that last changed an object,\ndisplayed in the Inspector footer (\"Changed in ‘…’ · 2 min ago\").\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 251,
          "members": [
            {
              "name": "ThreadID",
              "anchor": "AgentObjectAttribution.ThreadID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ThreadTitle",
              "anchor": "AgentObjectAttribution.ThreadTitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RequestID",
              "anchor": "AgentObjectAttribution.RequestID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RequestTitle",
              "anchor": "AgentObjectAttribution.RequestTitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "AgentObjectAttribution.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Timestamp",
              "anchor": "AgentObjectAttribution.Timestamp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgeLabel",
              "anchor": "AgentObjectAttribution.AgeLabel",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentObjectChange",
          "anchor": "AgentObjectChange",
          "decl": "type AgentObjectChange struct {\n\tObjectID   string                 `json:\"objectId\"`\n\tName       string                 `json:\"name\"`\n\tLayer      string                 `json:\"layer\"`\n\tParentID   string                 `json:\"parentId,omitempty\"`\n\tKind       AgentChangeKind        `json:\"kind\"`\n\tDetail     string                 `json:\"detail\"`\n\tFields     []AgentFieldDiff       `json:\"fields,omitempty\"`\n\tRemovedDoc *sceneformat.ObjectDoc `json:\"-\"`\n}",
          "doc": "AgentObjectChange describes one object added, changed, or removed during the pending agent turn.\n",
          "file": "pkg/editor/agent_live.go",
          "line": 101,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "AgentObjectChange.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "AgentObjectChange.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "AgentObjectChange.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParentID",
              "anchor": "AgentObjectChange.ParentID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AgentObjectChange.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "AgentObjectChange.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fields",
              "anchor": "AgentObjectChange.Fields",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemovedDoc",
              "anchor": "AgentObjectChange.RemovedDoc",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentOpenRequest",
          "anchor": "AgentOpenRequest",
          "decl": "type AgentOpenRequest struct {\n\tID       string\n\tTitle    string\n\tBody     string\n\tOpenedAt time.Time\n}",
          "doc": "AgentOpenRequest represents a pending permission prompt or question waiting on the user.\n",
          "file": "pkg/editor/agent.go",
          "line": 344,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentOpenRequest.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentOpenRequest.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Body",
              "anchor": "AgentOpenRequest.Body",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OpenedAt",
              "anchor": "AgentOpenRequest.OpenedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentPartialState",
          "anchor": "AgentPartialState",
          "decl": "type AgentPartialState struct {\n\tDoneCount     int\n\tTotalCount    int\n\tTarget        string\n\tTitle         string\n\tReason        string\n\tPointPrompt   string\n\tPointing      bool\n\tHasPoint      bool\n\tPointedX      float32\n\tPointedY      float32\n\tKept          bool\n\tTryingAnother bool\n}",
          "doc": "AgentPartialState holds the panel state when only part of a request could be completed.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 45,
          "members": [
            {
              "name": "DoneCount",
              "anchor": "AgentPartialState.DoneCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalCount",
              "anchor": "AgentPartialState.TotalCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "AgentPartialState.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentPartialState.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "AgentPartialState.Reason",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PointPrompt",
              "anchor": "AgentPartialState.PointPrompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pointing",
              "anchor": "AgentPartialState.Pointing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasPoint",
              "anchor": "AgentPartialState.HasPoint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PointedX",
              "anchor": "AgentPartialState.PointedX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PointedY",
              "anchor": "AgentPartialState.PointedY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kept",
              "anchor": "AgentPartialState.Kept",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TryingAnother",
              "anchor": "AgentPartialState.TryingAnother",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectivePointPrompt",
              "anchor": "AgentPartialState.EffectivePointPrompt",
              "recv": "AgentPartialState",
              "decl": "func (p AgentPartialState) EffectivePointPrompt() string",
              "doc": "EffectivePointPrompt returns the inline viewport pointing instruction.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 78
            },
            {
              "name": "EffectiveTitle",
              "anchor": "AgentPartialState.EffectiveTitle",
              "recv": "AgentPartialState",
              "decl": "func (p AgentPartialState) EffectiveTitle() string",
              "doc": "EffectiveTitle returns the card heading, defaulting to \"Done N of M · couldn't place <target>\".\n",
              "file": "pkg/editor/agent_states.go",
              "line": 61
            }
          ]
        },
        {
          "name": "AgentPendingReview",
          "anchor": "AgentPendingReview",
          "decl": "type AgentPendingReview struct {\n\tStepsDone     int      `json:\"stepsDone\"`\n\tChangesCount  int      `json:\"changesCount\"`\n\tSummary       string   `json:\"summary,omitempty\"`\n\tNotChecked    []string `json:\"notChecked,omitempty\"`\n\tStopped       bool     `json:\"stopped,omitempty\"`\n\tStoppedBefore string   `json:\"stoppedBefore,omitempty\"`\n\tKept          bool     `json:\"kept,omitempty\"`\n\tReverted      bool     `json:\"reverted,omitempty\"`\n}",
          "doc": "AgentPendingReview summarizes completed steps and edits left pending for review after a turn finishes or is stopped.\n",
          "file": "pkg/editor/agent_live_steps.go",
          "line": 54,
          "members": [
            {
              "name": "StepsDone",
              "anchor": "AgentPendingReview.StepsDone",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangesCount",
              "anchor": "AgentPendingReview.ChangesCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "AgentPendingReview.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NotChecked",
              "anchor": "AgentPendingReview.NotChecked",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stopped",
              "anchor": "AgentPendingReview.Stopped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StoppedBefore",
              "anchor": "AgentPendingReview.StoppedBefore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kept",
              "anchor": "AgentPendingReview.Kept",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "AgentPendingReview.Reverted",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentPermissionDecision",
          "anchor": "AgentPermissionDecision",
          "decl": "type AgentPermissionDecision string",
          "doc": "AgentPermissionDecision is the starting decision for an agent permission rule.\n",
          "file": "pkg/editor/agent.go",
          "line": 168,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentPermissionAllow",
                  "anchor": "AgentPermissionAllow"
                },
                {
                  "name": "AgentPermissionAsk",
                  "anchor": "AgentPermissionAsk"
                },
                {
                  "name": "AgentPermissionDeny",
                  "anchor": "AgentPermissionDeny"
                }
              ],
              "decl": "const (\n\tAgentPermissionAllow AgentPermissionDecision = \"allow\"\n\tAgentPermissionAsk   AgentPermissionDecision = \"ask\"\n\tAgentPermissionDeny  AgentPermissionDecision = \"deny\"\n)",
              "doc": "",
              "file": "pkg/editor/agent.go",
              "line": 170
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentPermissionOutcome",
          "anchor": "AgentPermissionOutcome",
          "decl": "type AgentPermissionOutcome string",
          "doc": "AgentPermissionOutcome is the person's answer to an interactive Agent panel permission card (or Stop interrupting it).\n",
          "file": "pkg/editor/agent_live_steps.go",
          "line": 21,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PermissionOutcomeAllowOnce",
                  "anchor": "PermissionOutcomeAllowOnce"
                },
                {
                  "name": "PermissionOutcomeAllowAlways",
                  "anchor": "PermissionOutcomeAllowAlways"
                },
                {
                  "name": "PermissionOutcomeDeny",
                  "anchor": "PermissionOutcomeDeny"
                },
                {
                  "name": "PermissionOutcomeStopped",
                  "anchor": "PermissionOutcomeStopped"
                }
              ],
              "decl": "const (\n\tPermissionOutcomeAllowOnce   AgentPermissionOutcome = \"allow_once\"\n\tPermissionOutcomeAllowAlways AgentPermissionOutcome = \"allow_always\"\n\tPermissionOutcomeDeny        AgentPermissionOutcome = \"deny\"\n\tPermissionOutcomeStopped     AgentPermissionOutcome = \"stopped\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 23
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentPermissionProfile",
          "anchor": "AgentPermissionProfile",
          "decl": "type AgentPermissionProfile = PermissionProfile",
          "doc": "AgentPermissionProfile aliases PermissionProfile from Settings -> Permissions.\nStore uploads ALWAYS ask first in Review uploads regardless of profile (including Autonomous).\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 94,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentPermissionPrompt",
          "anchor": "AgentPermissionPrompt",
          "decl": "type AgentPermissionPrompt struct {\n\tID            string\n\tStepID        string\n\tTitle         string\n\tShortAction   string\n\tWhy           string\n\tEffect        string\n\tRuleSource    string\n\tRulePreview   string\n\tAlwaysLabel   string\n\tTool          string\n\tPermissionKey string\n\tEvaluation    PermissionEvaluation\n\tAskedAt       time.Time\n}",
          "doc": "AgentPermissionPrompt describes an open interactive permission card rendered inside the Agent panel.\n",
          "file": "pkg/editor/agent_live_steps.go",
          "line": 31,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentPermissionPrompt.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepID",
              "anchor": "AgentPermissionPrompt.StepID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentPermissionPrompt.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ShortAction",
              "anchor": "AgentPermissionPrompt.ShortAction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Why",
              "anchor": "AgentPermissionPrompt.Why",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Effect",
              "anchor": "AgentPermissionPrompt.Effect",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RuleSource",
              "anchor": "AgentPermissionPrompt.RuleSource",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RulePreview",
              "anchor": "AgentPermissionPrompt.RulePreview",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlwaysLabel",
              "anchor": "AgentPermissionPrompt.AlwaysLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tool",
              "anchor": "AgentPermissionPrompt.Tool",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionKey",
              "anchor": "AgentPermissionPrompt.PermissionKey",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Evaluation",
              "anchor": "AgentPermissionPrompt.Evaluation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AskedAt",
              "anchor": "AgentPermissionPrompt.AskedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentPermissionRule",
          "anchor": "AgentPermissionRule",
          "decl": "type AgentPermissionRule struct {\n\tAction   string\n\tFiles    string\n\tDecision AgentPermissionDecision\n}",
          "doc": "AgentPermissionRule is one starting rule produced from the Connect dialog's four checkboxes.\n",
          "file": "pkg/editor/agent.go",
          "line": 177,
          "members": [
            {
              "name": "Action",
              "anchor": "AgentPermissionRule.Action",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "AgentPermissionRule.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Decision",
              "anchor": "AgentPermissionRule.Decision",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentPermissions",
          "anchor": "AgentPermissions",
          "decl": "type AgentPermissions struct {\n\tEditScenesAndData    bool\n\tRunGameCheck         bool\n\tRunHeadlessPlaytests bool\n\tEditGoCode           bool\n}",
          "doc": "AgentPermissions holds the four starting permission toggles in the Connect dialog.\n",
          "file": "pkg/editor/agent.go",
          "line": 184,
          "members": [
            {
              "name": "EditScenesAndData",
              "anchor": "AgentPermissions.EditScenesAndData",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RunGameCheck",
              "anchor": "AgentPermissions.RunGameCheck",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RunHeadlessPlaytests",
              "anchor": "AgentPermissions.RunHeadlessPlaytests",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditGoCode",
              "anchor": "AgentPermissions.EditGoCode",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultAgentPermissions",
              "anchor": "DefaultAgentPermissions",
              "decl": "func DefaultAgentPermissions() AgentPermissions",
              "doc": "DefaultAgentPermissions matches Connect.dc.html: scenes/data and game check ticked, playtests and Go code unticked.\n",
              "file": "pkg/editor/agent.go",
              "line": 192
            }
          ],
          "methods": [
            {
              "name": "Rules",
              "anchor": "AgentPermissions.Rules",
              "recv": "AgentPermissions",
              "decl": "func (p AgentPermissions) Rules() []AgentPermissionRule",
              "doc": "Rules translates the four checkboxes into starting ordered permission rules (first match wins).\n",
              "file": "pkg/editor/agent.go",
              "line": 202
            }
          ]
        },
        {
          "name": "AgentPlan",
          "anchor": "AgentPlan",
          "decl": "type AgentPlan struct {\n\tID               string         `json:\"id\"`\n\tTurnID           string         `json:\"turnId,omitempty\"`\n\tPrompt           string         `json:\"prompt,omitempty\"`\n\tTitle            string         `json:\"title\"`\n\tSummary          string         `json:\"summary,omitempty\"`\n\tEstimate         PlanEstimate   `json:\"estimate,omitempty\"`\n\tReason           string         `json:\"reason,omitempty\"`\n\tQuestions        []PlanQuestion `json:\"questions,omitempty\"`\n\tSteps            []PlanStep     `json:\"steps\"`\n\tFiles            []PlanFile     `json:\"files,omitempty\"`\n\tGhostsVisible    bool           `json:\"ghostsVisible\"`\n\tPhase            PlanPhase      `json:\"phase\"`\n\tActiveStep       int            `json:\"activeStep,omitempty\"`\n\tEditingStep      int            `json:\"editingStep,omitempty\"`\n\tReopenedQuestion string         `json:\"reopenedQuestion,omitempty\"`\n\tPickedForYou     bool           `json:\"pickedForYou,omitempty\"`\n\tNothingWritten   bool           `json:\"nothingWritten,omitempty\"`\n\tWrittenSteps     int            `json:\"writtenSteps,omitempty\"`\n}",
          "doc": "AgentPlan is an agent-proposed plan shown in the Agent panel, Scene Tree, and 2D viewport before edits begin.\n",
          "file": "pkg/editor/plan.go",
          "line": 228,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentPlan.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TurnID",
              "anchor": "AgentPlan.TurnID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentPlan.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentPlan.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "AgentPlan.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Estimate",
              "anchor": "AgentPlan.Estimate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "AgentPlan.Reason",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Questions",
              "anchor": "AgentPlan.Questions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "AgentPlan.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "AgentPlan.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GhostsVisible",
              "anchor": "AgentPlan.GhostsVisible",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Phase",
              "anchor": "AgentPlan.Phase",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveStep",
              "anchor": "AgentPlan.ActiveStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditingStep",
              "anchor": "AgentPlan.EditingStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReopenedQuestion",
              "anchor": "AgentPlan.ReopenedQuestion",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PickedForYou",
              "anchor": "AgentPlan.PickedForYou",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NothingWritten",
              "anchor": "AgentPlan.NothingWritten",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WrittenSteps",
              "anchor": "AgentPlan.WrittenSteps",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "AgentPlan.Clone",
              "recv": "*AgentPlan",
              "decl": "func (p *AgentPlan) Clone() *AgentPlan",
              "doc": "Clone returns a deep copy of p.\n",
              "file": "pkg/editor/plan.go",
              "line": 250
            }
          ]
        },
        {
          "name": "AgentPlanDecision",
          "anchor": "AgentPlanDecision",
          "decl": "type AgentPlanDecision struct {\n\tPlanID         string               `json:\"planId\"`\n\tDecision       string               `json:\"decision\"` // \"approved\", \"stopped\", or \"pending\"\n\tPickedForYou   bool                 `json:\"pickedForYou,omitempty\"`\n\tNothingWritten bool                 `json:\"nothingWritten,omitempty\"`\n\tSummary        string               `json:\"summary,omitempty\"`\n\tAnswers        []PlanAnswerDecision `json:\"answers,omitempty\"`\n\tSteps          []PlanStepDecision   `json:\"steps,omitempty\"`\n\tRemovedSteps   []int                `json:\"removedSteps,omitempty\"`\n\tActiveFiles    []string             `json:\"activeFiles,omitempty\"`\n}",
          "doc": "AgentPlanDecision is the structured response returned by plan_propose once the person decides.\n",
          "file": "pkg/editor/plan.go",
          "line": 348,
          "members": [
            {
              "name": "PlanID",
              "anchor": "AgentPlanDecision.PlanID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Decision",
              "anchor": "AgentPlanDecision.Decision",
              "kind": "field",
              "doc": "\"approved\", \"stopped\", or \"pending\""
            },
            {
              "name": "PickedForYou",
              "anchor": "AgentPlanDecision.PickedForYou",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NothingWritten",
              "anchor": "AgentPlanDecision.NothingWritten",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "AgentPlanDecision.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Answers",
              "anchor": "AgentPlanDecision.Answers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "AgentPlanDecision.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemovedSteps",
              "anchor": "AgentPlanDecision.RemovedSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveFiles",
              "anchor": "AgentPlanDecision.ActiveFiles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentPlanReview",
          "anchor": "AgentPlanReview",
          "decl": "type AgentPlanReview struct {\n\tPlanID         string           `json:\"planId\"`\n\tTitle          string           `json:\"title\"`\n\tPhase          PlanPhase        `json:\"phase\"`\n\tPickedForYou   bool             `json:\"pickedForYou,omitempty\"`\n\tNothingWritten bool             `json:\"nothingWritten,omitempty\"`\n\tSteps          []PlanReviewStep `json:\"steps\"`\n}",
          "doc": "AgentPlanReview is attached to an AgentTurn so the turn's review lists the plan's steps and marks which were done.\n",
          "file": "pkg/editor/plan.go",
          "line": 372,
          "members": [
            {
              "name": "PlanID",
              "anchor": "AgentPlanReview.PlanID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentPlanReview.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Phase",
              "anchor": "AgentPlanReview.Phase",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PickedForYou",
              "anchor": "AgentPlanReview.PickedForYou",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NothingWritten",
              "anchor": "AgentPlanReview.NothingWritten",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "AgentPlanReview.Steps",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "AgentPlanReview.Clone",
              "recv": "*AgentPlanReview",
              "decl": "func (r *AgentPlanReview) Clone() *AgentPlanReview",
              "doc": "Clone returns a deep copy of r.\n",
              "file": "pkg/editor/plan.go",
              "line": 399
            },
            {
              "name": "DoneCount",
              "anchor": "AgentPlanReview.DoneCount",
              "recv": "*AgentPlanReview",
              "decl": "func (r *AgentPlanReview) DoneCount() (done, total int)",
              "doc": "DoneCount returns how many non-removed steps in r are marked done and the total non-removed step count.\n",
              "file": "pkg/editor/plan.go",
              "line": 382
            }
          ]
        },
        {
          "name": "AgentPrivacyPolicy",
          "anchor": "AgentPrivacyPolicy",
          "decl": "type AgentPrivacyPolicy struct {\n\tSceneAndData   bool\n\tViewportImages bool\n\tGoSource       bool\n\tArtAndAudio    bool\n}",
          "doc": "AgentPrivacyPolicy is the resolved boolean policy for what content may leave this computer through MCP tools.\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 70,
          "members": [
            {
              "name": "SceneAndData",
              "anchor": "AgentPrivacyPolicy.SceneAndData",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportImages",
              "anchor": "AgentPrivacyPolicy.ViewportImages",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GoSource",
              "anchor": "AgentPrivacyPolicy.GoSource",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ArtAndAudio",
              "anchor": "AgentPrivacyPolicy.ArtAndAudio",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultAgentPrivacyPolicy",
              "anchor": "DefaultAgentPrivacyPolicy",
              "decl": "func DefaultAgentPrivacyPolicy() AgentPrivacyPolicy",
              "doc": "DefaultAgentPrivacyPolicy returns the default privacy policy matching Settings.dc.html:\nscene/data files and viewport images on; Go source code and art/audio files off.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 79
            }
          ],
          "methods": [
            {
              "name": "Allows",
              "anchor": "AgentPrivacyPolicy.Allows",
              "recv": "AgentPrivacyPolicy",
              "decl": "func (p AgentPrivacyPolicy) Allows(kind PrivacyContentKind) bool",
              "doc": "Allows reports whether content of kind may leave this computer under p.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 89
            }
          ]
        },
        {
          "name": "AgentPrivacySettings",
          "anchor": "AgentPrivacySettings",
          "decl": "type AgentPrivacySettings struct {\n\t// SceneAndData allows MCP tools to return scene, prefab, data table, and project YAML files (default true).\n\tSceneAndData *bool `yaml:\"sceneAndData,omitempty\"`\n\t// ViewportImages allows viewport_image and frozen-frame tools to return PNG images (default true).\n\tViewportImages *bool `yaml:\"viewportImages,omitempty\"`\n\t// GoSource allows MCP tools to return Go source code and go.mod files (default false).\n\tGoSource *bool `yaml:\"goSource,omitempty\"`\n\t// ArtAndAudio allows MCP tools to return art and audio assets or metadata files (default false).\n\tArtAndAudio *bool `yaml:\"artAndAudio,omitempty\"`\n}",
          "doc": "AgentPrivacySettings is the YAML representation of WHAT MAY LEAVE THIS COMPUTER in EditorSettings.\nOmitted fields fall back to DefaultAgentPrivacyPolicy (SceneAndData=true, ViewportImages=true, GoSource=false, ArtAndAudio=false).\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 185,
          "members": [
            {
              "name": "SceneAndData",
              "anchor": "AgentPrivacySettings.SceneAndData",
              "kind": "field",
              "doc": "SceneAndData allows MCP tools to return scene, prefab, data table, and project YAML files (default true)."
            },
            {
              "name": "ViewportImages",
              "anchor": "AgentPrivacySettings.ViewportImages",
              "kind": "field",
              "doc": "ViewportImages allows viewport_image and frozen-frame tools to return PNG images (default true)."
            },
            {
              "name": "GoSource",
              "anchor": "AgentPrivacySettings.GoSource",
              "kind": "field",
              "doc": "GoSource allows MCP tools to return Go source code and go.mod files (default false)."
            },
            {
              "name": "ArtAndAudio",
              "anchor": "AgentPrivacySettings.ArtAndAudio",
              "kind": "field",
              "doc": "ArtAndAudio allows MCP tools to return art and audio assets or metadata files (default false)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Resolve",
              "anchor": "AgentPrivacySettings.Resolve",
              "recv": "*AgentPrivacySettings",
              "decl": "func (s *AgentPrivacySettings) Resolve() AgentPrivacyPolicy",
              "doc": "Resolve returns the concrete AgentPrivacyPolicy with defaults applied for omitted fields.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 197
            }
          ]
        },
        {
          "name": "AgentPromptRequest",
          "anchor": "AgentPromptRequest",
          "decl": "type AgentPromptRequest struct {\n\tObjectID   string\n\tObjectName string\n\tLayer      string\n\tScenePath  string\n\tDraft      string\n}",
          "doc": "AgentPromptRequest describes a prompt draft sent from the editor to an attached agent composer\n(for example \"Ask the agent about this\" in the object context menu).\n",
          "file": "pkg/editor/context_menu.go",
          "line": 22,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "AgentPromptRequest.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectName",
              "anchor": "AgentPromptRequest.ObjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "AgentPromptRequest.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "AgentPromptRequest.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Draft",
              "anchor": "AgentPromptRequest.Draft",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentQueuedRequest",
          "anchor": "AgentQueuedRequest",
          "decl": "type AgentQueuedRequest struct {\n\tID       string\n\tTask     AgentTaskKind\n\tPrompt   string\n\tQueuedAt time.Time\n\tOffline  bool\n}",
          "doc": "AgentQueuedRequest is a prompt queued while offline or while the weekly request limit is reached (waiting for explicit user send).\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 245,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentQueuedRequest.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Task",
              "anchor": "AgentQueuedRequest.Task",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentQueuedRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "QueuedAt",
              "anchor": "AgentQueuedRequest.QueuedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Offline",
              "anchor": "AgentQueuedRequest.Offline",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentReferenceImage",
          "anchor": "AgentReferenceImage",
          "decl": "type AgentReferenceImage struct {\n\t// ID uniquely identifies this image within the current composer draft (or \"brief:<path>\" for pinned brief references).\n\tID string\n\t// Name is the display file name (for example \"spikes_ref.png\").\n\tName string\n\t// Path is the project-relative slash path when pinned or read from brief.yaml (for example \"art/reference/spikes_ref.png\"),\n\t// or empty for a one-shot ephemeral composer attachment.\n\tPath string\n\t// Format is AgentImagePNG, AgentImageJPEG, or AgentImageWebP.\n\tFormat AgentImageFormat\n\t// MIMEType is \"image/png\", \"image/jpeg\", or \"image/webp\".\n\tMIMEType string\n\t// Data holds the raw encoded image bytes sent to the agent.\n\tData []byte\n\t// Width and Height are the decoded pixel dimensions.\n\tWidth  int\n\tHeight int\n\t// Pinned reports whether this image has been copied to art/reference/ and added to brief.yaml.\n\tPinned bool\n\t// FromBrief reports whether this image joined the request through brief.yaml (the Always chip).\n\tFromBrief bool\n\t// Note is an optional short description recorded alongside path in brief.yaml.\n\tNote string\n\t// Pixels holds the decoded RGBA image for in-memory thumbnail and hover preview rendering.\n\tPixels *image.RGBA\n\t// ImageVersion uniquely keys core.ImageSource pixel uploads.\n\tImageVersion uint64\n}",
          "doc": "AgentReferenceImage is a validated PNG, JPEG, or WebP reference image attached to a single composer\nrequest or pinned to brief.yaml for every request in the project.\n",
          "file": "pkg/editor/agent_references.go",
          "line": 93,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentReferenceImage.ID",
              "kind": "field",
              "doc": "ID uniquely identifies this image within the current composer draft (or \"brief:<path>\" for pinned brief references)."
            },
            {
              "name": "Name",
              "anchor": "AgentReferenceImage.Name",
              "kind": "field",
              "doc": "Name is the display file name (for example \"spikes_ref.png\")."
            },
            {
              "name": "Path",
              "anchor": "AgentReferenceImage.Path",
              "kind": "field",
              "doc": "Path is the project-relative slash path when pinned or read from brief.yaml (for example \"art/reference/spikes_ref.png\"),\nor empty for a one-shot ephemeral composer attachment."
            },
            {
              "name": "Format",
              "anchor": "AgentReferenceImage.Format",
              "kind": "field",
              "doc": "Format is AgentImagePNG, AgentImageJPEG, or AgentImageWebP."
            },
            {
              "name": "MIMEType",
              "anchor": "AgentReferenceImage.MIMEType",
              "kind": "field",
              "doc": "MIMEType is \"image/png\", \"image/jpeg\", or \"image/webp\"."
            },
            {
              "name": "Data",
              "anchor": "AgentReferenceImage.Data",
              "kind": "field",
              "doc": "Data holds the raw encoded image bytes sent to the agent."
            },
            {
              "name": "Width",
              "anchor": "AgentReferenceImage.Width",
              "kind": "field",
              "doc": "Width and Height are the decoded pixel dimensions."
            },
            {
              "name": "Height",
              "anchor": "AgentReferenceImage.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pinned",
              "anchor": "AgentReferenceImage.Pinned",
              "kind": "field",
              "doc": "Pinned reports whether this image has been copied to art/reference/ and added to brief.yaml."
            },
            {
              "name": "FromBrief",
              "anchor": "AgentReferenceImage.FromBrief",
              "kind": "field",
              "doc": "FromBrief reports whether this image joined the request through brief.yaml (the Always chip)."
            },
            {
              "name": "Note",
              "anchor": "AgentReferenceImage.Note",
              "kind": "field",
              "doc": "Note is an optional short description recorded alongside path in brief.yaml."
            },
            {
              "name": "Pixels",
              "anchor": "AgentReferenceImage.Pixels",
              "kind": "field",
              "doc": "Pixels holds the decoded RGBA image for in-memory thumbnail and hover preview rendering."
            },
            {
              "name": "ImageVersion",
              "anchor": "AgentReferenceImage.ImageVersion",
              "kind": "field",
              "doc": "ImageVersion uniquely keys core.ImageSource pixel uploads."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DecodeAgentReferenceImage",
              "anchor": "DecodeAgentReferenceImage",
              "decl": "func DecodeAgentReferenceImage(name string, data []byte) (AgentReferenceImage, error)",
              "doc": "DecodeAgentReferenceImage validates that data is a well-formed PNG, JPEG, or WebP image within safe bounds\nand decodes its pixels into an RGBA image for thumbnails and hover previews.\nUnsupported file types (such as GIF, SVG, BMP, text, or YAML) are refused with a clear reason.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 179
            }
          ],
          "methods": []
        },
        {
          "name": "AgentRemovedNode",
          "anchor": "AgentRemovedNode",
          "decl": "type AgentRemovedNode struct {\n\tObjectID string\n\tName     string\n\tLayer    string\n\tParentID string\n\tDoc      *sceneformat.ObjectDoc\n}",
          "doc": "AgentRemovedNode represents an object removed during the pending agent turn so the scene tree\nand viewport can show its removed marker and ghost until Keep or Revert.\n",
          "file": "pkg/editor/agent_live.go",
          "line": 114,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "AgentRemovedNode.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "AgentRemovedNode.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "AgentRemovedNode.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParentID",
              "anchor": "AgentRemovedNode.ParentID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Doc",
              "anchor": "AgentRemovedNode.Doc",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentRequest",
          "anchor": "AgentRequest",
          "decl": "type AgentRequest struct {\n\tThreadID         string\n\tSessionID        string\n\tPrompt           string\n\tProjectRoot      string\n\tScenePath        string\n\tSelectedID       string\n\tAgentKind        ExternalAgentKind\n\tPermissions      AgentPermissions\n\tTask             AgentTaskKind\n\tRoute            AgentModelRoute\n\tModel            string\n\tPriorTurns       []AgentTurnSummary\n\tAutomationID     string\n\tAutomationName   string\n\tTriggerKind      AutomationTriggerKind\n\tTriggerDetail    string\n\tCheckpointID     string\n\tAttachedImages   []AgentReferenceImage // one-shot reference images dropped or pasted for this request only\n\tBriefImages      []AgentReferenceImage // project-wide reference images joined through brief.yaml's Always chip\n\tImages           []AgentReferenceImage // deduplicated union of AttachedImages and BriefImages sent with this request\n\tResumeFromStep   int\n\tCompletedSteps   []string\n\tRemainingSteps   []string\n\tHint             string\n\tPointedWorld     *[2]float32\n\tPointedTarget    string\n\tTryAnotherWay    bool\n\tSummarySeed      string\n\tAttachments      []AgentChipPayload\n\tViewportImage    []byte\n\tViewportWidth    int\n\tViewportHeight   int\n\tHasViewportImg   bool\n\tAssembledContext string\n}",
          "doc": "AgentRequest is passed to an AgentRunner or Editor.OnSendAgentComposerRequest when the user submits\ntext from the composer or an automation triggers, carrying both runner/automation metadata\nand the exact context assembled from the active composer chips (and nothing else).\n",
          "file": "pkg/editor/agent.go",
          "line": 354,
          "members": [
            {
              "name": "ThreadID",
              "anchor": "AgentRequest.ThreadID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SessionID",
              "anchor": "AgentRequest.SessionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectRoot",
              "anchor": "AgentRequest.ProjectRoot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "AgentRequest.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedID",
              "anchor": "AgentRequest.SelectedID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentKind",
              "anchor": "AgentRequest.AgentKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Permissions",
              "anchor": "AgentRequest.Permissions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Task",
              "anchor": "AgentRequest.Task",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Route",
              "anchor": "AgentRequest.Route",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Model",
              "anchor": "AgentRequest.Model",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PriorTurns",
              "anchor": "AgentRequest.PriorTurns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AutomationID",
              "anchor": "AgentRequest.AutomationID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AutomationName",
              "anchor": "AgentRequest.AutomationName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriggerKind",
              "anchor": "AgentRequest.TriggerKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriggerDetail",
              "anchor": "AgentRequest.TriggerDetail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckpointID",
              "anchor": "AgentRequest.CheckpointID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AttachedImages",
              "anchor": "AgentRequest.AttachedImages",
              "kind": "field",
              "doc": "one-shot reference images dropped or pasted for this request only"
            },
            {
              "name": "BriefImages",
              "anchor": "AgentRequest.BriefImages",
              "kind": "field",
              "doc": "project-wide reference images joined through brief.yaml's Always chip"
            },
            {
              "name": "Images",
              "anchor": "AgentRequest.Images",
              "kind": "field",
              "doc": "deduplicated union of AttachedImages and BriefImages sent with this request"
            },
            {
              "name": "ResumeFromStep",
              "anchor": "AgentRequest.ResumeFromStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CompletedSteps",
              "anchor": "AgentRequest.CompletedSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemainingSteps",
              "anchor": "AgentRequest.RemainingSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hint",
              "anchor": "AgentRequest.Hint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PointedWorld",
              "anchor": "AgentRequest.PointedWorld",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PointedTarget",
              "anchor": "AgentRequest.PointedTarget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TryAnotherWay",
              "anchor": "AgentRequest.TryAnotherWay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SummarySeed",
              "anchor": "AgentRequest.SummarySeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Attachments",
              "anchor": "AgentRequest.Attachments",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportImage",
              "anchor": "AgentRequest.ViewportImage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportWidth",
              "anchor": "AgentRequest.ViewportWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportHeight",
              "anchor": "AgentRequest.ViewportHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasViewportImg",
              "anchor": "AgentRequest.HasViewportImg",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AssembledContext",
              "anchor": "AgentRequest.AssembledContext",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentResponse",
          "anchor": "AgentResponse",
          "decl": "type AgentResponse struct {\n\tReply string\n\tUsage *AgentTokenUsage\n}",
          "doc": "AgentResponse is returned by Editor.OnSendAgentComposerRequest when a scripted or connected agent handles a request.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 194,
          "members": [
            {
              "name": "Reply",
              "anchor": "AgentResponse.Reply",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Usage",
              "anchor": "AgentResponse.Usage",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentReviewChange",
          "anchor": "AgentReviewChange",
          "decl": "type AgentReviewChange struct {\n\tID       string                `json:\"id\"`\n\tObjectID string                `json:\"object_id,omitempty\"`\n\tPath     string                `json:\"path\"`\n\tKind     AgentReviewChangeKind `json:\"kind\"`\n\tTitle    string                `json:\"title\"`\n\tDetail   string                `json:\"detail\"`\n\tReverted bool                  `json:\"reverted,omitempty\"`\n\tKept     bool                  `json:\"kept,omitempty\"`\n\tOnKeep   func() error          `json:\"-\"`\n\tOnRevert func() error          `json:\"-\"`\n}",
          "doc": "AgentReviewChange is one non-deletion file change listed in the Review changes panel.\n",
          "file": "pkg/editor/agent_review.go",
          "line": 34,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentReviewChange.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "AgentReviewChange.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "AgentReviewChange.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AgentReviewChange.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentReviewChange.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "AgentReviewChange.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "AgentReviewChange.Reverted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kept",
              "anchor": "AgentReviewChange.Kept",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnKeep",
              "anchor": "AgentReviewChange.OnKeep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnRevert",
              "anchor": "AgentReviewChange.OnRevert",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentReviewChangeKind",
          "anchor": "AgentReviewChangeKind",
          "decl": "type AgentReviewChangeKind = ReviewChangeKind",
          "doc": "AgentReviewChangeKind classifies a regular (non-deletion) entry in an agent review.\n",
          "file": "pkg/editor/agent_review.go",
          "line": 27,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReviewChangeModified",
                  "anchor": "ReviewChangeModified"
                }
              ],
              "decl": "const (\n\tReviewChangeModified AgentReviewChangeKind = \"modified\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_review.go",
              "line": 29
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentReviewSnapshot",
          "anchor": "AgentReviewSnapshot",
          "decl": "type AgentReviewSnapshot struct {\n\tOpen      bool                `json:\"open\"`\n\tPrompt    string              `json:\"prompt,omitempty\"`\n\tChanges   []AgentReviewChange `json:\"changes,omitempty\"`\n\tDeletions []ProposedDeletion  `json:\"deletions,omitempty\"`\n}",
          "doc": "AgentReviewSnapshot is a read-only view of the active Review changes panel.\n",
          "file": "pkg/editor/agent_review.go",
          "line": 79,
          "members": [
            {
              "name": "Open",
              "anchor": "AgentReviewSnapshot.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentReviewSnapshot.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changes",
              "anchor": "AgentReviewSnapshot.Changes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Deletions",
              "anchor": "AgentReviewSnapshot.Deletions",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentReviewState",
          "anchor": "AgentReviewState",
          "decl": "type AgentReviewState string",
          "doc": "AgentReviewState tracks the review lifecycle of an automation (or background) turn in the Agent panel.\n",
          "file": "pkg/editor/automations.go",
          "line": 44,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentReviewNone",
                  "anchor": "AgentReviewNone"
                },
                {
                  "name": "AgentReviewRunning",
                  "anchor": "AgentReviewRunning"
                },
                {
                  "name": "AgentReviewNeedsYou",
                  "anchor": "AgentReviewNeedsYou"
                },
                {
                  "name": "AgentReviewReady",
                  "anchor": "AgentReviewReady"
                },
                {
                  "name": "AgentReviewKept",
                  "anchor": "AgentReviewKept"
                },
                {
                  "name": "AgentReviewDismissed",
                  "anchor": "AgentReviewDismissed"
                },
                {
                  "name": "AgentReviewFailed",
                  "anchor": "AgentReviewFailed"
                }
              ],
              "decl": "const (\n\t// AgentReviewNone is the default for ordinary interactive chat turns.\n\tAgentReviewNone AgentReviewState = \"\"\n\t// AgentReviewRunning indicates a background automation task is currently executing.\n\tAgentReviewRunning AgentReviewState = \"running\"\n\t// AgentReviewNeedsYou indicates the background task is waiting on a permission prompt or user question.\n\tAgentReviewNeedsYou AgentReviewState = \"needs_you\"\n\t// AgentReviewReady indicates the automation finished and its result is in Ready to review (never unreviewed).\n\tAgentReviewReady AgentReviewState = \"ready_to_review\"\n\t// AgentReviewKept indicates the author reviewed and kept the automation's result.\n\tAgentReviewKept AgentReviewState = \"kept\"\n\t// AgentReviewDismissed indicates the author dismissed the Ready-to-review result (reverting nothing that was never kept).\n\tAgentReviewDismissed AgentReviewState = \"dismissed\"\n\t// AgentReviewFailed indicates the automation failed or was blocked by permissions.\n\tAgentReviewFailed AgentReviewState = \"failed\"\n)",
              "doc": "",
              "file": "pkg/editor/automations.go",
              "line": 46
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentRewindMode",
          "anchor": "AgentRewindMode",
          "decl": "type AgentRewindMode string",
          "doc": "AgentRewindMode selects what RewindAgentTurn restores when rewinding to before a message.\n",
          "file": "pkg/editor/agent_rewind.go",
          "line": 27,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentRewindBoth",
                  "anchor": "AgentRewindBoth"
                },
                {
                  "name": "AgentRewindFilesOnly",
                  "anchor": "AgentRewindFilesOnly"
                },
                {
                  "name": "AgentRewindConversationOnly",
                  "anchor": "AgentRewindConversationOnly"
                }
              ],
              "decl": "const (\n\t// AgentRewindBoth restores files from the turns' checkpoints and drops the target and later turns from the thread.\n\tAgentRewindBoth AgentRewindMode = \"both\"\n\t// AgentRewindFilesOnly restores files from the turns' checkpoints while keeping the conversation thread unchanged.\n\tAgentRewindFilesOnly AgentRewindMode = \"files\"\n\t// AgentRewindConversationOnly drops the target and later turns from the thread while keeping all files as they are.\n\tAgentRewindConversationOnly AgentRewindMode = \"conversation\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_rewind.go",
              "line": 29
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentRewindPreview",
          "anchor": "AgentRewindPreview",
          "decl": "type AgentRewindPreview struct {\n\tTurnID       string\n\tTurnIndex    int\n\tPrompt       string\n\tChangedFiles []string\n\tDroppedTurns int\n}",
          "doc": "AgentRewindPreview describes the files and replies that rewinding to before a message will affect.\n",
          "file": "pkg/editor/agent_rewind.go",
          "line": 47,
          "members": [
            {
              "name": "TurnID",
              "anchor": "AgentRewindPreview.TurnID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TurnIndex",
              "anchor": "AgentRewindPreview.TurnIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentRewindPreview.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangedFiles",
              "anchor": "AgentRewindPreview.ChangedFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DroppedTurns",
              "anchor": "AgentRewindPreview.DroppedTurns",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentRewindState",
          "anchor": "AgentRewindState",
          "decl": "type AgentRewindState struct {\n\tTurnID        string\n\tTurnIndex     int\n\tMode          AgentRewindMode\n\tPrompt        string\n\tFilesRestored []string\n\tTurnsDropped  int\n}",
          "doc": "AgentRewindState describes the most recent rewind shown in the post-rewind banner above the composer with Redo.\n",
          "file": "pkg/editor/agent_rewind.go",
          "line": 56,
          "members": [
            {
              "name": "TurnID",
              "anchor": "AgentRewindState.TurnID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TurnIndex",
              "anchor": "AgentRewindState.TurnIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "AgentRewindState.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentRewindState.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FilesRestored",
              "anchor": "AgentRewindState.FilesRestored",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TurnsDropped",
              "anchor": "AgentRewindState.TurnsDropped",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentRunner",
          "anchor": "AgentRunner",
          "decl": "type AgentRunner interface {\n\tRun(ctx context.Context, req AgentRequest, emit func(AgentEvent)) error\n}",
          "doc": "AgentRunner executes a composer request against an external agent (such as Claude Code or Codex) and streams incremental events to emit until the turn completes or ctx is canceled.\n",
          "file": "pkg/editor/agent.go",
          "line": 426,
          "members": [
            {
              "name": "Run",
              "anchor": "AgentRunner.Run",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentRunnerFunc",
          "anchor": "AgentRunnerFunc",
          "decl": "type AgentRunnerFunc func(ctx context.Context, req AgentRequest, emit func(AgentEvent)) error",
          "doc": "AgentRunnerFunc adapts a function to AgentRunner.\n",
          "file": "pkg/editor/agent.go",
          "line": 431,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Run",
              "anchor": "AgentRunnerFunc.Run",
              "recv": "AgentRunnerFunc",
              "decl": "func (f AgentRunnerFunc) Run(ctx context.Context, req AgentRequest, emit func(AgentEvent)) error",
              "doc": "Run calls f.\n",
              "file": "pkg/editor/agent.go",
              "line": 434
            }
          ]
        },
        {
          "name": "AgentSecretStore",
          "anchor": "AgentSecretStore",
          "decl": "type AgentSecretStore interface {\n\tGet(account string) (string, bool, error)\n\tSet(account, value string) error\n\tDelete(account string) error\n}",
          "doc": "AgentSecretStore matches NSGo's core.Secrets interface (Get/Set/Delete by account) so the editor uses cx.Secrets() directly in apps and nsgotest, or a test store when headless.\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 68,
          "members": [
            {
              "name": "Get",
              "anchor": "AgentSecretStore.Get",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Set",
              "anchor": "AgentSecretStore.Set",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Delete",
              "anchor": "AgentSecretStore.Delete",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentSendRequest",
          "anchor": "AgentSendRequest",
          "decl": "type AgentSendRequest struct {\n\tPrompt       string\n\tTitle        string\n\tSessionID    string\n\tReply        string\n\tOutcome      AgentThreadOutcome\n\tChangesTotal int\n\tChangesKept  int\n\tFiles        []string\n\tObjects      []string\n\tDetail       string\n\tHistoryStep  string\n\tHistoryIndex int\n\tSteps        []AgentThreadStep\n}",
          "doc": "AgentSendRequest describes a request submitted to the active agent thread via SendAgentRequestWith.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 205,
          "members": [
            {
              "name": "Prompt",
              "anchor": "AgentSendRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentSendRequest.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SessionID",
              "anchor": "AgentSendRequest.SessionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reply",
              "anchor": "AgentSendRequest.Reply",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Outcome",
              "anchor": "AgentSendRequest.Outcome",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangesTotal",
              "anchor": "AgentSendRequest.ChangesTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangesKept",
              "anchor": "AgentSendRequest.ChangesKept",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "AgentSendRequest.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Objects",
              "anchor": "AgentSendRequest.Objects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "AgentSendRequest.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HistoryStep",
              "anchor": "AgentSendRequest.HistoryStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HistoryIndex",
              "anchor": "AgentSendRequest.HistoryIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "AgentSendRequest.Steps",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentSessionSnapshot",
          "anchor": "AgentSessionSnapshot",
          "decl": "type AgentSessionSnapshot struct {\n\tRequestID       uint64\n\tTurnID          string\n\tStatus          AgentStatus\n\tStopped         bool\n\tPrompt          string\n\tSteps           []AgentStep\n\tPendingAsk      *AgentPermissionPrompt\n\tFollowUps       []AgentFollowUp\n\tReview          *AgentPendingReview\n\tActivity        string\n\tStartedAt       time.Time\n\tElapsed         time.Duration\n\tWaitingElapsed  time.Duration\n\tDeniedKeysCount int\n}",
          "doc": "AgentSessionSnapshot is an immutable snapshot of the active or most recent Agent panel turn and live permission card.\n",
          "file": "pkg/editor/agent_live_steps.go",
          "line": 66,
          "members": [
            {
              "name": "RequestID",
              "anchor": "AgentSessionSnapshot.RequestID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TurnID",
              "anchor": "AgentSessionSnapshot.TurnID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "AgentSessionSnapshot.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stopped",
              "anchor": "AgentSessionSnapshot.Stopped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentSessionSnapshot.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "AgentSessionSnapshot.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PendingAsk",
              "anchor": "AgentSessionSnapshot.PendingAsk",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FollowUps",
              "anchor": "AgentSessionSnapshot.FollowUps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Review",
              "anchor": "AgentSessionSnapshot.Review",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Activity",
              "anchor": "AgentSessionSnapshot.Activity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartedAt",
              "anchor": "AgentSessionSnapshot.StartedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Elapsed",
              "anchor": "AgentSessionSnapshot.Elapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WaitingElapsed",
              "anchor": "AgentSessionSnapshot.WaitingElapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeniedKeysCount",
              "anchor": "AgentSessionSnapshot.DeniedKeysCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentSettings",
          "anchor": "AgentSettings",
          "decl": "type AgentSettings struct {\n\t// BuiltInProvider names the built-in API connection configured in the system keychain (for example \"Anthropic API\"); never stores an API key.\n\tBuiltInProvider string `yaml:\"builtInProvider,omitempty\"`\n\t// Routes maps task keys (\"scene_edits\", \"playtest_analysis\", \"problems_fixes\", \"ask_in_place\", \"art_and_sound\") to preferred model labels.\n\tRoutes map[string]string `yaml:\"routes,omitempty\"`\n\t// Tools overrides per-tool MCP enabled state keyed by tool name (for example \"game_delete_file\": false).\n\tTools map[string]bool `yaml:\"tools,omitempty\"`\n\t// MCPServers configures other MCP servers the agent may use alongside the editor's own server.\n\tMCPServers []AgentMCPServer `yaml:\"mcpServers,omitempty\"`\n\t// WeeklyRequestLimit sets the weekly agent request budget (0 disables the limit; omitted defaults to 300).\n\tWeeklyRequestLimit *int `yaml:\"weeklyRequestLimit,omitempty\"`\n\t// Privacy controls WHAT MAY LEAVE THIS COMPUTER across every connected agent.\n\tPrivacy *AgentPrivacySettings `yaml:\"privacy,omitempty\"`\n\t// Usage stores local usage counters (requests this week, kept review share, and local playtest runs).\n\tUsage *AgentUsageStats `yaml:\"usage,omitempty\"`\n}",
          "doc": "AgentSettings stores per-computer AI agent preferences in editor.yaml (Settings › Agent group).\nSecrets such as API keys are NEVER stored in this struct or any file; they live exclusively in the OS keychain.\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 296,
          "members": [
            {
              "name": "BuiltInProvider",
              "anchor": "AgentSettings.BuiltInProvider",
              "kind": "field",
              "doc": "BuiltInProvider names the built-in API connection configured in the system keychain (for example \"Anthropic API\"); never stores an API key."
            },
            {
              "name": "Routes",
              "anchor": "AgentSettings.Routes",
              "kind": "field",
              "doc": "Routes maps task keys (\"scene_edits\", \"playtest_analysis\", \"problems_fixes\", \"ask_in_place\", \"art_and_sound\") to preferred model labels."
            },
            {
              "name": "Tools",
              "anchor": "AgentSettings.Tools",
              "kind": "field",
              "doc": "Tools overrides per-tool MCP enabled state keyed by tool name (for example \"game_delete_file\": false)."
            },
            {
              "name": "MCPServers",
              "anchor": "AgentSettings.MCPServers",
              "kind": "field",
              "doc": "MCPServers configures other MCP servers the agent may use alongside the editor's own server."
            },
            {
              "name": "WeeklyRequestLimit",
              "anchor": "AgentSettings.WeeklyRequestLimit",
              "kind": "field",
              "doc": "WeeklyRequestLimit sets the weekly agent request budget (0 disables the limit; omitted defaults to 300)."
            },
            {
              "name": "Privacy",
              "anchor": "AgentSettings.Privacy",
              "kind": "field",
              "doc": "Privacy controls WHAT MAY LEAVE THIS COMPUTER across every connected agent."
            },
            {
              "name": "Usage",
              "anchor": "AgentSettings.Usage",
              "kind": "field",
              "doc": "Usage stores local usage counters (requests this week, kept review share, and local playtest runs)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentState",
          "anchor": "AgentState",
          "decl": "type AgentState string",
          "doc": "AgentState describes the agent's live state reflected in the editor header pill\n(docs/design/editor/Working.dc.html).\n",
          "file": "pkg/editor/agent_live.go",
          "line": 60,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentStateIdle",
                  "anchor": "AgentStateIdle"
                },
                {
                  "name": "AgentStateWorking",
                  "anchor": "AgentStateWorking"
                },
                {
                  "name": "AgentStateWaiting",
                  "anchor": "AgentStateWaiting"
                },
                {
                  "name": "AgentStatePendingReview",
                  "anchor": "AgentStatePendingReview"
                }
              ],
              "decl": "const (\n\t// AgentStateIdle means no agent turn is active and no live step is running.\n\tAgentStateIdle AgentState = \"idle\"\n\t// AgentStateWorking means the agent is actively executing a step or running a tool.\n\tAgentStateWorking AgentState = \"working\"\n\t// AgentStateWaiting means the agent is paused waiting for the person (for example a permission ask).\n\tAgentStateWaiting AgentState = \"waiting\"\n\t// AgentStatePendingReview means the agent finished its current step and pending turn changes await Keep or Revert.\n\tAgentStatePendingReview AgentState = \"pending_review\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_live.go",
              "line": 62
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "AgentState.Valid",
              "recv": "AgentState",
              "decl": "func (s AgentState) Valid() bool",
              "doc": "Valid reports whether s is a recognized AgentState.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 74
            }
          ]
        },
        {
          "name": "AgentStatus",
          "anchor": "AgentStatus",
          "decl": "type AgentStatus string",
          "doc": "AgentStatus is the live connection and work state shown by the Agent panel header's status chip.\n",
          "file": "pkg/editor/agent.go",
          "line": 53,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentStatusNotConnected",
                  "anchor": "AgentStatusNotConnected"
                },
                {
                  "name": "AgentStatusConnected",
                  "anchor": "AgentStatusConnected"
                },
                {
                  "name": "AgentStatusWorking",
                  "anchor": "AgentStatusWorking"
                },
                {
                  "name": "AgentStatusWaitingForYou",
                  "anchor": "AgentStatusWaitingForYou"
                },
                {
                  "name": "AgentStatusReconnecting",
                  "anchor": "AgentStatusReconnecting"
                },
                {
                  "name": "AgentStatusDisconnected",
                  "anchor": "AgentStatusDisconnected"
                },
                {
                  "name": "AgentStatusLimitReached",
                  "anchor": "AgentStatusLimitReached"
                },
                {
                  "name": "AgentStatusOffline",
                  "anchor": "AgentStatusOffline"
                }
              ],
              "decl": "const (\n\t// AgentStatusNotConnected indicates no agent has connected yet.\n\tAgentStatusNotConnected AgentStatus = \"not_connected\"\n\t// AgentStatusConnected indicates an MCP client or built-in API key agent is attached and idle.\n\tAgentStatusConnected AgentStatus = \"connected\"\n\t// AgentStatusWorking indicates the agent is actively executing a request.\n\tAgentStatusWorking AgentStatus = \"working\"\n\t// AgentStatusWaitingForYou indicates a permission ask or clarifying question is open.\n\tAgentStatusWaitingForYou AgentStatus = \"waiting\"\n\t// AgentStatusReconnecting indicates the MCP connection dropped and retries are underway.\n\tAgentStatusReconnecting AgentStatus = \"reconnecting\"\n\t// AgentStatusDisconnected indicates all reconnect retries failed.\n\tAgentStatusDisconnected AgentStatus = \"disconnected\"\n\t// AgentStatusLimitReached indicates the weekly request limit set on Usage and privacy has been reached and requests queue until reset or until the person raises it.\n\tAgentStatusLimitReached AgentStatus = \"limit_reached\"\n\t// AgentStatusOffline indicates there is no network connection and requests wait in a queue.\n\tAgentStatusOffline AgentStatus = \"offline\"\n)",
              "doc": "",
              "file": "pkg/editor/agent.go",
              "line": 55
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentStep",
          "anchor": "AgentStep",
          "decl": "type AgentStep struct {\n\tID          string\n\tTitle       string\n\tDetail      string\n\tToolName    string\n\tObjects     []string\n\tStatus      AgentStepStatus\n\tCanAllowNow bool\n\n\tPermissionKey string\n\tRuleSummary   string\n\tRuleIndex     int\n\tUncheckedNote string\n\tStartedAt     time.Time\n\t// contains filtered or unexported fields\n}",
          "doc": "AgentStep is a single visible step in an agent turn's progress list.\n",
          "file": "pkg/editor/agent.go",
          "line": 241,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentStep.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentStep.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "AgentStep.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToolName",
              "anchor": "AgentStep.ToolName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Objects",
              "anchor": "AgentStep.Objects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "AgentStep.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CanAllowNow",
              "anchor": "AgentStep.CanAllowNow",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionKey",
              "anchor": "AgentStep.PermissionKey",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RuleSummary",
              "anchor": "AgentStep.RuleSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RuleIndex",
              "anchor": "AgentStep.RuleIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UncheckedNote",
              "anchor": "AgentStep.UncheckedNote",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartedAt",
              "anchor": "AgentStep.StartedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentStepStatus",
          "anchor": "AgentStepStatus",
          "decl": "type AgentStepStatus string",
          "doc": "AgentStepStatus is the lifecycle state of one step streamed in an AgentTurn.\n",
          "file": "pkg/editor/agent.go",
          "line": 220,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentStepPlaceholder",
                  "anchor": "AgentStepPlaceholder"
                },
                {
                  "name": "AgentStepPending",
                  "anchor": "AgentStepPending"
                },
                {
                  "name": "AgentStepRunning",
                  "anchor": "AgentStepRunning"
                },
                {
                  "name": "AgentStepDone",
                  "anchor": "AgentStepDone"
                },
                {
                  "name": "AgentStepWaiting",
                  "anchor": "AgentStepWaiting"
                },
                {
                  "name": "AgentStepWarning",
                  "anchor": "AgentStepWarning"
                },
                {
                  "name": "AgentStepInterrupted",
                  "anchor": "AgentStepInterrupted"
                },
                {
                  "name": "AgentStepDenied",
                  "anchor": "AgentStepDenied"
                },
                {
                  "name": "AgentStepBlocked",
                  "anchor": "AgentStepBlocked"
                },
                {
                  "name": "AgentStepStopped",
                  "anchor": "AgentStepStopped"
                },
                {
                  "name": "AgentStepFailed",
                  "anchor": "AgentStepFailed"
                }
              ],
              "decl": "const (\n\t// AgentStepPlaceholder is the gray placeholder step shown immediately upon starting a request (within 300 ms) before the first real step arrives.\n\tAgentStepPlaceholder AgentStepStatus = \"placeholder\"\n\tAgentStepPending     AgentStepStatus = \"pending\"\n\tAgentStepRunning     AgentStepStatus = \"running\"\n\tAgentStepDone        AgentStepStatus = \"done\"\n\tAgentStepWaiting     AgentStepStatus = \"waiting\"\n\tAgentStepWarning     AgentStepStatus = \"warning\"\n\tAgentStepInterrupted AgentStepStatus = \"interrupted\"\n\t// AgentStepDenied is a step the user denied, shown with \"You denied … · continued without it\" and an explicit Allow now action.\n\tAgentStepDenied AgentStepStatus = \"denied\"\n\t// AgentStepBlocked is a step stopped by a Deny permission rule without prompting.\n\tAgentStepBlocked AgentStepStatus = \"blocked\"\n\t// AgentStepStopped is the terminal row added when the user stops the agent with Stop or Mod+.\n\tAgentStepStopped AgentStepStatus = \"stopped\"\n\tAgentStepFailed  AgentStepStatus = \"failed\"\n)",
              "doc": "",
              "file": "pkg/editor/agent.go",
              "line": 222
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentStoppedState",
          "anchor": "AgentStoppedState",
          "decl": "type AgentStoppedState struct {\n\tAtStep         int\n\tTotalSteps     int\n\tResumed        bool\n\tResumedAtTitle string\n}",
          "doc": "AgentStoppedState holds the summary of a user-stopped turn and whether Resume has picked it up.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 192,
          "members": [
            {
              "name": "AtStep",
              "anchor": "AgentStoppedState.AtStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalSteps",
              "anchor": "AgentStoppedState.TotalSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Resumed",
              "anchor": "AgentStoppedState.Resumed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResumedAtTitle",
              "anchor": "AgentStoppedState.ResumedAtTitle",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveTitle",
              "anchor": "AgentStoppedState.EffectiveTitle",
              "recv": "AgentStoppedState",
              "decl": "func (s AgentStoppedState) EffectiveTitle() string",
              "doc": "EffectiveTitle returns the Stopped card heading.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 200
            }
          ]
        },
        {
          "name": "AgentStuckResolution",
          "anchor": "AgentStuckResolution",
          "decl": "type AgentStuckResolution string",
          "doc": "AgentStuckResolution tracks whether a paused Stuck card is waiting, continued with a hint, or stopped.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 96,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentStuckWaiting",
                  "anchor": "AgentStuckWaiting"
                },
                {
                  "name": "AgentStuckContinued",
                  "anchor": "AgentStuckContinued"
                },
                {
                  "name": "AgentStuckStopped",
                  "anchor": "AgentStuckStopped"
                }
              ],
              "decl": "const (\n\tAgentStuckWaiting   AgentStuckResolution = \"\"\n\tAgentStuckContinued AgentStuckResolution = \"continued\"\n\tAgentStuckStopped   AgentStuckResolution = \"stopped\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_states.go",
              "line": 98
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentStuckState",
          "anchor": "AgentStuckState",
          "decl": "type AgentStuckState struct {\n\tToolName       string\n\tFailures       []AgentFailedCall\n\tHintDraft      string\n\tSubmittedHint  string\n\tResolution     AgentStuckResolution\n\tNothingChanged bool\n}",
          "doc": "AgentStuckState holds the state when the same tool fails three times in a row and pauses the request.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 105,
          "members": [
            {
              "name": "ToolName",
              "anchor": "AgentStuckState.ToolName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Failures",
              "anchor": "AgentStuckState.Failures",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HintDraft",
              "anchor": "AgentStuckState.HintDraft",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SubmittedHint",
              "anchor": "AgentStuckState.SubmittedHint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Resolution",
              "anchor": "AgentStuckState.Resolution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NothingChanged",
              "anchor": "AgentStuckState.NothingChanged",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTask",
          "anchor": "AgentTask",
          "decl": "type AgentTask struct {\n\tID                  string        `yaml:\"id\" json:\"id\"`\n\tNumber              int           `yaml:\"number,omitempty\" json:\"number,omitempty\"`\n\tTitle               string        `yaml:\"title\" json:\"title\"`\n\tPrompt              string        `yaml:\"prompt,omitempty\" json:\"prompt,omitempty\"`\n\tSource              TaskSource    `yaml:\"source\" json:\"source\"`\n\tPlanStep            int           `yaml:\"planStep,omitempty\" json:\"planStep,omitempty\"`\n\tPlanTotal           int           `yaml:\"planTotal,omitempty\" json:\"planTotal,omitempty\"`\n\tStartMode           TaskStartMode `yaml:\"startMode\" json:\"startMode\"`\n\tState               TaskState     `yaml:\"state\" json:\"state\"`\n\tScenePath           string        `yaml:\"scene,omitempty\" json:\"scene,omitempty\"`\n\tStepSummary         string        `yaml:\"stepSummary,omitempty\" json:\"stepSummary,omitempty\"`\n\tStepIndex           int           `yaml:\"stepIndex,omitempty\" json:\"stepIndex,omitempty\"`\n\tStepTotal           int           `yaml:\"stepTotal,omitempty\" json:\"stepTotal,omitempty\"`\n\tSteps               []TaskStep    `yaml:\"steps,omitempty\" json:\"steps,omitempty\"`\n\tPermissionPrompt    string        `yaml:\"permissionPrompt,omitempty\" json:\"permissionPrompt,omitempty\"`\n\tPermissionDetail    string        `yaml:\"permissionDetail,omitempty\" json:\"permissionDetail,omitempty\"`\n\tError               string        `yaml:\"error,omitempty\" json:\"error,omitempty\"`\n\tBlockedOn           string        `yaml:\"blockedOn,omitempty\" json:\"blockedOn,omitempty\"`\n\tBlockedByTaskID     string        `yaml:\"blockedByTaskId,omitempty\" json:\"blockedByTaskId,omitempty\"`\n\tBlockedByTaskNumber int           `yaml:\"blockedByTaskNumber,omitempty\" json:\"blockedByTaskNumber,omitempty\"`\n\tEditingObjects      []string      `yaml:\"editingObjects,omitempty\" json:\"editingObjects,omitempty\"`\n\tHoldingObjects      []string      `yaml:\"holdingObjects,omitempty\" json:\"holdingObjects,omitempty\"`\n\tStartsAfterTaskID   string        `yaml:\"startsAfterTaskId,omitempty\" json:\"startsAfterTaskId,omitempty\"`\n\tSessionID           string        `yaml:\"sessionId,omitempty\" json:\"sessionId,omitempty\"`\n\tReview              *TaskReview   `yaml:\"review,omitempty\" json:\"review,omitempty\"`\n\tCreatedAt           string        `yaml:\"createdAt,omitempty\" json:\"createdAt,omitempty\"`\n\tStartedAt           string        `yaml:\"startedAt,omitempty\" json:\"startedAt,omitempty\"`\n\tFinishedAt          string        `yaml:\"finishedAt,omitempty\" json:\"finishedAt,omitempty\"`\n\tTimeLabel           string        `yaml:\"timeLabel,omitempty\" json:\"timeLabel,omitempty\"`\n\tElapsedSeconds      int           `yaml:\"elapsedSeconds,omitempty\" json:\"elapsedSeconds,omitempty\"`\n\tDismissed           bool          `yaml:\"dismissed,omitempty\" json:\"dismissed,omitempty\"`\n}",
          "doc": "AgentTask is one background task entry kept in the editor's Tasks tab and persisted in thread YAML files.\n",
          "file": "pkg/editor/tasks.go",
          "line": 163,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentTask.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Number",
              "anchor": "AgentTask.Number",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentTask.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentTask.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "AgentTask.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanStep",
              "anchor": "AgentTask.PlanStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanTotal",
              "anchor": "AgentTask.PlanTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartMode",
              "anchor": "AgentTask.StartMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "AgentTask.State",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "AgentTask.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepSummary",
              "anchor": "AgentTask.StepSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepIndex",
              "anchor": "AgentTask.StepIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepTotal",
              "anchor": "AgentTask.StepTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "AgentTask.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionPrompt",
              "anchor": "AgentTask.PermissionPrompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionDetail",
              "anchor": "AgentTask.PermissionDetail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "AgentTask.Error",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlockedOn",
              "anchor": "AgentTask.BlockedOn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlockedByTaskID",
              "anchor": "AgentTask.BlockedByTaskID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlockedByTaskNumber",
              "anchor": "AgentTask.BlockedByTaskNumber",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditingObjects",
              "anchor": "AgentTask.EditingObjects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HoldingObjects",
              "anchor": "AgentTask.HoldingObjects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartsAfterTaskID",
              "anchor": "AgentTask.StartsAfterTaskID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SessionID",
              "anchor": "AgentTask.SessionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Review",
              "anchor": "AgentTask.Review",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CreatedAt",
              "anchor": "AgentTask.CreatedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartedAt",
              "anchor": "AgentTask.StartedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FinishedAt",
              "anchor": "AgentTask.FinishedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TimeLabel",
              "anchor": "AgentTask.TimeLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ElapsedSeconds",
              "anchor": "AgentTask.ElapsedSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dismissed",
              "anchor": "AgentTask.Dismissed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Holding",
              "anchor": "AgentTask.Holding",
              "recv": "AgentTask",
              "decl": "func (t AgentTask) Holding() bool",
              "doc": "Holding reports whether t is running in parallel and currently waiting on an object held by another task.\n",
              "file": "pkg/editor/tasks.go",
              "line": 211
            },
            {
              "name": "Visible",
              "anchor": "AgentTask.Visible",
              "recv": "AgentTask",
              "decl": "func (t AgentTask) Visible() bool",
              "doc": "Visible reports whether t should appear in one of the five active groups in the Tasks tab.\n",
              "file": "pkg/editor/tasks.go",
              "line": 216
            }
          ]
        },
        {
          "name": "AgentTaskCounts",
          "anchor": "AgentTaskCounts",
          "decl": "type AgentTaskCounts struct {\n\tWaiting       int\n\tReadyToReview int\n\tFailed        int\n\tRunning       int\n\tQueued        int\n}",
          "doc": "AgentTaskCounts summarizes active agent tasks by state across both background tasks (#1022)\nand foreground Agent panel turns.\n",
          "file": "pkg/editor/agent_notifications.go",
          "line": 45,
          "members": [
            {
              "name": "Waiting",
              "anchor": "AgentTaskCounts.Waiting",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReadyToReview",
              "anchor": "AgentTaskCounts.ReadyToReview",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Failed",
              "anchor": "AgentTaskCounts.Failed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Running",
              "anchor": "AgentTaskCounts.Running",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Queued",
              "anchor": "AgentTaskCounts.Queued",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "BadgeCount",
              "anchor": "AgentTaskCounts.BadgeCount",
              "recv": "AgentTaskCounts",
              "decl": "func (c AgentTaskCounts) BadgeCount() int",
              "doc": "BadgeCount returns the Dock badge count: waiting + ready to review + failed.\nRunning and queued tasks never add to the badge.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 55
            }
          ]
        },
        {
          "name": "AgentTaskKind",
          "anchor": "AgentTaskKind",
          "decl": "type AgentTaskKind string",
          "doc": "AgentTaskKind identifies one row of the WHO DOES WHAT routing table on Settings › Models and connections.\nIts string values match AgentTaskRoutesDefs keys persisted in EditorSettings (editor.yaml).\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 163,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentTaskSceneEdit",
                  "anchor": "AgentTaskSceneEdit"
                },
                {
                  "name": "AgentTaskPlaytest",
                  "anchor": "AgentTaskPlaytest"
                },
                {
                  "name": "AgentTaskProblems",
                  "anchor": "AgentTaskProblems"
                },
                {
                  "name": "AgentTaskAskInPlace",
                  "anchor": "AgentTaskAskInPlace"
                },
                {
                  "name": "AgentTaskArtSound",
                  "anchor": "AgentTaskArtSound"
                }
              ],
              "decl": "const (\n\t// AgentTaskSceneEdit routes general scene and data edit requests.\n\tAgentTaskSceneEdit AgentTaskKind = \"scene_edits\"\n\t// AgentTaskPlaytest routes playtest replay and heatmap analysis requests.\n\tAgentTaskPlaytest AgentTaskKind = \"playtest_analysis\"\n\t// AgentTaskProblems routes Problems panel explanation and fix proposals.\n\tAgentTaskProblems AgentTaskKind = \"problems_fixes\"\n\t// AgentTaskAskInPlace routes quick in-place (⌘L) requests.\n\tAgentTaskAskInPlace AgentTaskKind = \"ask_in_place\"\n\t// AgentTaskArtSound routes sprite, texture, and sound generation requests.\n\tAgentTaskArtSound AgentTaskKind = \"art_and_sound\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_builtin.go",
              "line": 165
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Label",
              "anchor": "AgentTaskKind.Label",
              "recv": "AgentTaskKind",
              "decl": "func (k AgentTaskKind) Label() string",
              "doc": "Label returns the human-readable task title shown in model error cards and errors.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 198
            },
            {
              "name": "Valid",
              "anchor": "AgentTaskKind.Valid",
              "recv": "AgentTaskKind",
              "decl": "func (k AgentTaskKind) Valid() bool",
              "doc": "Valid reports whether k is a recognized WHO DOES WHAT task kind.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 188
            }
          ]
        },
        {
          "name": "AgentTaskNotification",
          "anchor": "AgentTaskNotification",
          "decl": "type AgentTaskNotification struct {\n\tID              string\n\tTaskID          string\n\tState           TaskState\n\tHeader          string\n\tTitle           string\n\tBody            string\n\tPrimaryAction   string\n\tSecondaryAction string\n\tScenePath       string\n}",
          "doc": "AgentTaskNotification is the structured payload built for one of the three allowed\nsystem notifications (waiting for permission, ready to review, or failed).\n",
          "file": "pkg/editor/agent_notifications.go",
          "line": 92,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentTaskNotification.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TaskID",
              "anchor": "AgentTaskNotification.TaskID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "AgentTaskNotification.State",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Header",
              "anchor": "AgentTaskNotification.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentTaskNotification.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Body",
              "anchor": "AgentTaskNotification.Body",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PrimaryAction",
              "anchor": "AgentTaskNotification.PrimaryAction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SecondaryAction",
              "anchor": "AgentTaskNotification.SecondaryAction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "AgentTaskNotification.ScenePath",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CoreNotification",
              "anchor": "AgentTaskNotification.CoreNotification",
              "recv": "AgentTaskNotification",
              "decl": "func (n AgentTaskNotification) CoreNotification() core.Notification",
              "doc": "CoreNotification converts n into the NSGo core.Notification passed to cx.ShowNotification.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 105
            }
          ]
        },
        {
          "name": "AgentTaskRouteDef",
          "anchor": "AgentTaskRouteDef",
          "decl": "type AgentTaskRouteDef struct {\n\tKey          string\n\tLabelKey     string\n\tNoteKey      string\n\tDefaultModel string\n\tCostHintKey  string\n}",
          "doc": "AgentTaskRouteDef describes one task row under \"WHO DOES WHAT\" in Settings › Models and connections.\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 334,
          "members": [
            {
              "name": "Key",
              "anchor": "AgentTaskRouteDef.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelKey",
              "anchor": "AgentTaskRouteDef.LabelKey",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NoteKey",
              "anchor": "AgentTaskRouteDef.NoteKey",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultModel",
              "anchor": "AgentTaskRouteDef.DefaultModel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CostHintKey",
              "anchor": "AgentTaskRouteDef.CostHintKey",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "AgentTaskRoutesDefs",
              "anchor": "AgentTaskRoutesDefs",
              "decl": "func AgentTaskRoutesDefs() []AgentTaskRouteDef",
              "doc": "AgentTaskRoutesDefs returns the canonical ordered task routing rows from Settings.dc.html.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 343
            }
          ],
          "methods": []
        },
        {
          "name": "AgentThread",
          "anchor": "AgentThread",
          "decl": "type AgentThread struct {\n\t// Version is the schema version; it must equal AgentThreadFileVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// ID is the stable filename-safe identifier for this thread (stored as .nsgo/threads/<id>.yaml).\n\tID string `yaml:\"id\" schema:\"required\"`\n\t// Title is the thread's display name, automatically set from its first request.\n\tTitle string `yaml:\"title,omitempty\"`\n\t// ScenePath is the slash-separated project-relative scene path this thread belongs to, or empty for Project · no scene.\n\tScenePath string `yaml:\"scenePath,omitempty\"`\n\t// SessionID is the external agent's session identifier so follow-up requests continue the same agent session.\n\tSessionID string `yaml:\"sessionId,omitempty\"`\n\t// CreatedAt is the RFC3339 UTC timestamp when the thread was created.\n\tCreatedAt string `yaml:\"createdAt\" schema:\"required\"`\n\t// UpdatedAt is the RFC3339 UTC timestamp of the thread's latest activity.\n\tUpdatedAt string `yaml:\"updatedAt\" schema:\"required\"`\n\t// Requests lists the thread's requests in chronological order (oldest first, latest last).\n\tRequests []AgentThreadRequest `yaml:\"requests,omitempty\"`\n}",
          "doc": "AgentThread is the strict versioned YAML document stored per line of work under .nsgo/threads/<id>.yaml.\nA file looks like this:\n\n\t# yaml-language-server: $schema=https://game.nsgo.dev/schemas/agent-thread.v1.json\n\tversion: 1\n\tid: door-lever-pulls\n\ttitle: Door opens after two lever pulls\n\tscenePath: scenes/level_01.scene.yaml\n\tsessionId: sess_claude_01\n\tcreatedAt: \"2026-11-26T13:40:00Z\"\n\tupdatedAt: \"2026-11-26T14:18:00Z\"\n\nParseAgentThreadYAML decodes it strictly and EncodeAgentThreadYAML writes it back in canonical form so\nloading and saving a thread file changes nothing.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 158,
          "members": [
            {
              "name": "Version",
              "anchor": "AgentThread.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal AgentThreadFileVersion (1)."
            },
            {
              "name": "ID",
              "anchor": "AgentThread.ID",
              "kind": "field",
              "doc": "ID is the stable filename-safe identifier for this thread (stored as .nsgo/threads/<id>.yaml)."
            },
            {
              "name": "Title",
              "anchor": "AgentThread.Title",
              "kind": "field",
              "doc": "Title is the thread's display name, automatically set from its first request."
            },
            {
              "name": "ScenePath",
              "anchor": "AgentThread.ScenePath",
              "kind": "field",
              "doc": "ScenePath is the slash-separated project-relative scene path this thread belongs to, or empty for Project · no scene."
            },
            {
              "name": "SessionID",
              "anchor": "AgentThread.SessionID",
              "kind": "field",
              "doc": "SessionID is the external agent's session identifier so follow-up requests continue the same agent session."
            },
            {
              "name": "CreatedAt",
              "anchor": "AgentThread.CreatedAt",
              "kind": "field",
              "doc": "CreatedAt is the RFC3339 UTC timestamp when the thread was created."
            },
            {
              "name": "UpdatedAt",
              "anchor": "AgentThread.UpdatedAt",
              "kind": "field",
              "doc": "UpdatedAt is the RFC3339 UTC timestamp of the thread's latest activity."
            },
            {
              "name": "Requests",
              "anchor": "AgentThread.Requests",
              "kind": "field",
              "doc": "Requests lists the thread's requests in chronological order (oldest first, latest last)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadAgentThreadFile",
              "anchor": "LoadAgentThreadFile",
              "decl": "func LoadAgentThreadFile(filePath string) (*AgentThread, error)",
              "doc": "LoadAgentThreadFile reads and strictly parses an agent thread YAML file at filePath.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 517
            },
            {
              "name": "ParseAgentThreadYAML",
              "anchor": "ParseAgentThreadYAML",
              "decl": "func ParseAgentThreadYAML(data []byte) (*AgentThread, error)",
              "doc": "ParseAgentThreadYAML strictly decodes and validates a versioned agent thread YAML document,\nrefusing unknown fields, duplicate keys, YAML anchors/aliases/merge keys, trailing YAML\ndocuments, and unsupported versions.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 304
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "AgentThread.Clone",
              "recv": "*AgentThread",
              "decl": "func (t *AgentThread) Clone() *AgentThread",
              "doc": "Clone returns a deep copy of t.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 178
            }
          ]
        },
        {
          "name": "AgentThreadDoc",
          "anchor": "AgentThreadDoc",
          "decl": "type AgentThreadDoc struct {\n\tVersion int         `yaml:\"version\"`\n\tID      string      `yaml:\"id\"`\n\tTitle   string      `yaml:\"title,omitempty\"`\n\tScene   string      `yaml:\"scene,omitempty\"`\n\tTasks   []AgentTask `yaml:\"tasks,omitempty\"`\n}",
          "doc": "AgentThreadDoc is the plain-text YAML format persisted under .nsgo/threads/<id>.thread.yaml.\n",
          "file": "pkg/editor/tasks.go",
          "line": 221,
          "members": [
            {
              "name": "Version",
              "anchor": "AgentThreadDoc.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "AgentThreadDoc.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentThreadDoc.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scene",
              "anchor": "AgentThreadDoc.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tasks",
              "anchor": "AgentThreadDoc.Tasks",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseAgentThread",
              "anchor": "ParseAgentThread",
              "decl": "func ParseAgentThread(data []byte) (*AgentThreadDoc, error)",
              "doc": "ParseAgentThread decodes a *.thread.yaml document, refusing unknown fields, duplicate keys,\nYAML aliases/merge keys, and invalid versions or enum values.\n",
              "file": "pkg/editor/tasks.go",
              "line": 391
            }
          ],
          "methods": []
        },
        {
          "name": "AgentThreadGroup",
          "anchor": "AgentThreadGroup",
          "decl": "type AgentThreadGroup struct {\n\tScenePath string\n\tHeading   string\n\tOpenScene bool\n\tProject   bool\n\tThreads   []AgentThreadListItem\n}",
          "doc": "AgentThreadGroup is one scene (or Project · no scene) section in the thread switcher.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 233,
          "members": [
            {
              "name": "ScenePath",
              "anchor": "AgentThreadGroup.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Heading",
              "anchor": "AgentThreadGroup.Heading",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OpenScene",
              "anchor": "AgentThreadGroup.OpenScene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Project",
              "anchor": "AgentThreadGroup.Project",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Threads",
              "anchor": "AgentThreadGroup.Threads",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentThreadListItem",
          "anchor": "AgentThreadListItem",
          "decl": "type AgentThreadListItem struct {\n\tID        string\n\tTitle     string\n\tScenePath string\n\tSessionID string\n\tMeta      string\n\tCurrent   bool\n\tUpdatedAt string\n}",
          "doc": "AgentThreadListItem is one selectable row inside an AgentThreadGroup in the thread switcher.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 222,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentThreadListItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentThreadListItem.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "AgentThreadListItem.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SessionID",
              "anchor": "AgentThreadListItem.SessionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Meta",
              "anchor": "AgentThreadListItem.Meta",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Current",
              "anchor": "AgentThreadListItem.Current",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UpdatedAt",
              "anchor": "AgentThreadListItem.UpdatedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentThreadOutcome",
          "anchor": "AgentThreadOutcome",
          "decl": "type AgentThreadOutcome string",
          "doc": "AgentThreadOutcome records how a thread request's proposed changes were resolved.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 45,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentThreadOutcomePending",
                  "anchor": "AgentThreadOutcomePending"
                },
                {
                  "name": "AgentThreadOutcomeKept",
                  "anchor": "AgentThreadOutcomeKept"
                },
                {
                  "name": "AgentThreadOutcomeReverted",
                  "anchor": "AgentThreadOutcomeReverted"
                }
              ],
              "decl": "const (\n\t// AgentThreadOutcomePending marks an in-progress or awaiting-review request.\n\tAgentThreadOutcomePending AgentThreadOutcome = \"pending\"\n\t// AgentThreadOutcomeKept marks a reviewed request whose changes (all or some) were kept.\n\tAgentThreadOutcomeKept AgentThreadOutcome = \"kept\"\n\t// AgentThreadOutcomeReverted marks a reviewed request whose changes were reverted.\n\tAgentThreadOutcomeReverted AgentThreadOutcome = \"reverted\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_threads.go",
              "line": 47
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "AgentThreadOutcome.Valid",
              "recv": "AgentThreadOutcome",
              "decl": "func (o AgentThreadOutcome) Valid() bool",
              "doc": "Valid reports whether o is a recognized AgentThreadOutcome value.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 57
            }
          ]
        },
        {
          "name": "AgentThreadRequest",
          "anchor": "AgentThreadRequest",
          "decl": "type AgentThreadRequest struct {\n\t// ID uniquely identifies this request within its thread.\n\tID string `yaml:\"id\" schema:\"required\"`\n\t// Title is the short single-line summary shown when the request is folded or referenced in the Inspector footer.\n\tTitle string `yaml:\"title,omitempty\"`\n\t// Prompt is the full request text sent to the agent.\n\tPrompt string `yaml:\"prompt\" schema:\"required\"`\n\t// CreatedAt is the RFC3339 UTC timestamp when the request was sent.\n\tCreatedAt string `yaml:\"createdAt\" schema:\"required\"`\n\t// UpdatedAt is the RFC3339 UTC timestamp when the request last changed state.\n\tUpdatedAt string `yaml:\"updatedAt,omitempty\"`\n\t// Reply is the agent's short completion message shown under the steps.\n\tReply string `yaml:\"reply,omitempty\"`\n\t// Outcome records whether the request is \"pending\", \"kept\", or \"reverted\".\n\tOutcome AgentThreadOutcome `yaml:\"outcome\" schema:\"required,enum=pending|kept|reverted\"`\n\t// ChangesTotal is the total number of proposed changes in this request.\n\tChangesTotal int `yaml:\"changesTotal,omitempty\"`\n\t// ChangesKept is the number of proposed changes kept during review (0..ChangesTotal).\n\tChangesKept int `yaml:\"changesKept,omitempty\"`\n\t// Files lists project-relative slash paths of files changed by this request.\n\tFiles []string `yaml:\"files,omitempty\"`\n\t// Objects lists scene object IDs changed by this request (used for Inspector footer attribution).\n\tObjects []string `yaml:\"objects,omitempty\"`\n\t// Detail is a compact human-readable summary of changed fields/assets shown when expanded.\n\tDetail string `yaml:\"detail,omitempty\"`\n\t// HistoryStep names the undo step label in History linked to this request.\n\tHistoryStep string `yaml:\"historyStep,omitempty\"`\n\t// HistoryIndex records the 1-based undo stack index in History linked to this request, when known.\n\tHistoryIndex int `yaml:\"historyIndex,omitempty\"`\n\t// Steps lists the recorded agent steps for this request in execution order.\n\tSteps []AgentThreadStep `yaml:\"steps,omitempty\"`\n}",
          "doc": "AgentThreadRequest is one author request and its streamed steps, changed objects/files, and review outcome.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 111,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentThreadRequest.ID",
              "kind": "field",
              "doc": "ID uniquely identifies this request within its thread."
            },
            {
              "name": "Title",
              "anchor": "AgentThreadRequest.Title",
              "kind": "field",
              "doc": "Title is the short single-line summary shown when the request is folded or referenced in the Inspector footer."
            },
            {
              "name": "Prompt",
              "anchor": "AgentThreadRequest.Prompt",
              "kind": "field",
              "doc": "Prompt is the full request text sent to the agent."
            },
            {
              "name": "CreatedAt",
              "anchor": "AgentThreadRequest.CreatedAt",
              "kind": "field",
              "doc": "CreatedAt is the RFC3339 UTC timestamp when the request was sent."
            },
            {
              "name": "UpdatedAt",
              "anchor": "AgentThreadRequest.UpdatedAt",
              "kind": "field",
              "doc": "UpdatedAt is the RFC3339 UTC timestamp when the request last changed state."
            },
            {
              "name": "Reply",
              "anchor": "AgentThreadRequest.Reply",
              "kind": "field",
              "doc": "Reply is the agent's short completion message shown under the steps."
            },
            {
              "name": "Outcome",
              "anchor": "AgentThreadRequest.Outcome",
              "kind": "field",
              "doc": "Outcome records whether the request is \"pending\", \"kept\", or \"reverted\"."
            },
            {
              "name": "ChangesTotal",
              "anchor": "AgentThreadRequest.ChangesTotal",
              "kind": "field",
              "doc": "ChangesTotal is the total number of proposed changes in this request."
            },
            {
              "name": "ChangesKept",
              "anchor": "AgentThreadRequest.ChangesKept",
              "kind": "field",
              "doc": "ChangesKept is the number of proposed changes kept during review (0..ChangesTotal)."
            },
            {
              "name": "Files",
              "anchor": "AgentThreadRequest.Files",
              "kind": "field",
              "doc": "Files lists project-relative slash paths of files changed by this request."
            },
            {
              "name": "Objects",
              "anchor": "AgentThreadRequest.Objects",
              "kind": "field",
              "doc": "Objects lists scene object IDs changed by this request (used for Inspector footer attribution)."
            },
            {
              "name": "Detail",
              "anchor": "AgentThreadRequest.Detail",
              "kind": "field",
              "doc": "Detail is a compact human-readable summary of changed fields/assets shown when expanded."
            },
            {
              "name": "HistoryStep",
              "anchor": "AgentThreadRequest.HistoryStep",
              "kind": "field",
              "doc": "HistoryStep names the undo step label in History linked to this request."
            },
            {
              "name": "HistoryIndex",
              "anchor": "AgentThreadRequest.HistoryIndex",
              "kind": "field",
              "doc": "HistoryIndex records the 1-based undo stack index in History linked to this request, when known."
            },
            {
              "name": "Steps",
              "anchor": "AgentThreadRequest.Steps",
              "kind": "field",
              "doc": "Steps lists the recorded agent steps for this request in execution order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentThreadStep",
          "anchor": "AgentThreadStep",
          "decl": "type AgentThreadStep struct {\n\t// ID uniquely identifies this step within its request.\n\tID string `yaml:\"id\" schema:\"required\"`\n\t// Label is the short human-readable description shown in the thread and History.\n\tLabel string `yaml:\"label\" schema:\"required\"`\n\t// Status is the step's state (\"pending\", \"running\", \"done\", or \"failed\").\n\tStatus AgentThreadStepStatus `yaml:\"status\" schema:\"required,enum=pending|running|done|failed\"`\n\t// Detail holds optional extra context for the step (for example changed fields or files).\n\tDetail string `yaml:\"detail,omitempty\"`\n\t// HistoryStep names the corresponding editor History label, when this step edited the scene.\n\tHistoryStep string `yaml:\"historyStep,omitempty\"`\n\t// HistoryIndex records the 1-based History stack index created by this step, when known.\n\tHistoryIndex int `yaml:\"historyIndex,omitempty\"`\n\t// Objects lists the IDs of scene objects modified by this step.\n\tObjects []string `yaml:\"objects,omitempty\"`\n\t// Files lists project-relative slash paths of files touched by this step.\n\tFiles []string `yaml:\"files,omitempty\"`\n}",
          "doc": "AgentThreadStep is one recorded action taken by the agent while handling a request.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 91,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentThreadStep.ID",
              "kind": "field",
              "doc": "ID uniquely identifies this step within its request."
            },
            {
              "name": "Label",
              "anchor": "AgentThreadStep.Label",
              "kind": "field",
              "doc": "Label is the short human-readable description shown in the thread and History."
            },
            {
              "name": "Status",
              "anchor": "AgentThreadStep.Status",
              "kind": "field",
              "doc": "Status is the step's state (\"pending\", \"running\", \"done\", or \"failed\")."
            },
            {
              "name": "Detail",
              "anchor": "AgentThreadStep.Detail",
              "kind": "field",
              "doc": "Detail holds optional extra context for the step (for example changed fields or files)."
            },
            {
              "name": "HistoryStep",
              "anchor": "AgentThreadStep.HistoryStep",
              "kind": "field",
              "doc": "HistoryStep names the corresponding editor History label, when this step edited the scene."
            },
            {
              "name": "HistoryIndex",
              "anchor": "AgentThreadStep.HistoryIndex",
              "kind": "field",
              "doc": "HistoryIndex records the 1-based History stack index created by this step, when known."
            },
            {
              "name": "Objects",
              "anchor": "AgentThreadStep.Objects",
              "kind": "field",
              "doc": "Objects lists the IDs of scene objects modified by this step."
            },
            {
              "name": "Files",
              "anchor": "AgentThreadStep.Files",
              "kind": "field",
              "doc": "Files lists project-relative slash paths of files touched by this step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentThreadStepStatus",
          "anchor": "AgentThreadStepStatus",
          "decl": "type AgentThreadStepStatus string",
          "doc": "AgentThreadStepStatus records the execution state of one step inside an agent request.\n",
          "file": "pkg/editor/agent_threads.go",
          "line": 67,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentThreadStepPending",
                  "anchor": "AgentThreadStepPending"
                },
                {
                  "name": "AgentThreadStepRunning",
                  "anchor": "AgentThreadStepRunning"
                },
                {
                  "name": "AgentThreadStepDone",
                  "anchor": "AgentThreadStepDone"
                },
                {
                  "name": "AgentThreadStepFailed",
                  "anchor": "AgentThreadStepFailed"
                }
              ],
              "decl": "const (\n\t// AgentThreadStepPending marks a queued step that has not started yet.\n\tAgentThreadStepPending AgentThreadStepStatus = \"pending\"\n\t// AgentThreadStepRunning marks a step currently executing.\n\tAgentThreadStepRunning AgentThreadStepStatus = \"running\"\n\t// AgentThreadStepDone marks a completed step.\n\tAgentThreadStepDone AgentThreadStepStatus = \"done\"\n\t// AgentThreadStepFailed marks a step that failed.\n\tAgentThreadStepFailed AgentThreadStepStatus = \"failed\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_threads.go",
              "line": 69
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "AgentThreadStepStatus.Valid",
              "recv": "AgentThreadStepStatus",
              "decl": "func (s AgentThreadStepStatus) Valid() bool",
              "doc": "Valid reports whether s is a recognized AgentThreadStepStatus value.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 81
            }
          ]
        },
        {
          "name": "AgentThreadTurn",
          "anchor": "AgentThreadTurn",
          "decl": "type AgentThreadTurn struct {\n\tID        string\n\tPrompt    string\n\tReply     string\n\tChips     []string\n\tTokens    int\n\tTimestamp time.Time\n\tOutcome   string // e.g. \"kept\", \"reverted\", \"sent\"\n}",
          "doc": "AgentThreadTurn records one request/response turn in the active agent thread.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 200,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentThreadTurn.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentThreadTurn.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reply",
              "anchor": "AgentThreadTurn.Reply",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Chips",
              "anchor": "AgentThreadTurn.Chips",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tokens",
              "anchor": "AgentThreadTurn.Tokens",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Timestamp",
              "anchor": "AgentThreadTurn.Timestamp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Outcome",
              "anchor": "AgentThreadTurn.Outcome",
              "kind": "field",
              "doc": "e.g. \"kept\", \"reverted\", \"sent\""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTileAutotileRequest",
          "anchor": "AgentTileAutotileRequest",
          "decl": "type AgentTileAutotileRequest struct {\n\tLayer       string\n\tTileLayer   string\n\tTerrain     string\n\tCells       []TileCoord\n\tRects       []TileRect\n\tPlace       *bool\n\tLabel       string\n\tTrackReview bool\n}",
          "doc": "AgentTileAutotileRequest re-edges or places a terrain set on a tile layer using YAML tileset autotile rules.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 117,
          "members": [
            {
              "name": "Layer",
              "anchor": "AgentTileAutotileRequest.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayer",
              "anchor": "AgentTileAutotileRequest.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Terrain",
              "anchor": "AgentTileAutotileRequest.Terrain",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "AgentTileAutotileRequest.Cells",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rects",
              "anchor": "AgentTileAutotileRequest.Rects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Place",
              "anchor": "AgentTileAutotileRequest.Place",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "AgentTileAutotileRequest.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TrackReview",
              "anchor": "AgentTileAutotileRequest.TrackReview",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTileCell",
          "anchor": "AgentTileCell",
          "decl": "type AgentTileCell struct {\n\tCol      int\n\tRow      int\n\tTileID   int\n\tTileName string\n\tFlip     uint32\n}",
          "doc": "AgentTileCell specifies one cell to paint in AgentTilePaintRequest.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 74,
          "members": [
            {
              "name": "Col",
              "anchor": "AgentTileCell.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "AgentTileCell.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileID",
              "anchor": "AgentTileCell.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileName",
              "anchor": "AgentTileCell.TileName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flip",
              "anchor": "AgentTileCell.Flip",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTileEditResult",
          "anchor": "AgentTileEditResult",
          "decl": "type AgentTileEditResult struct {\n\tLayer        string `json:\"layer\"`\n\tTileLayer    string `json:\"tileLayer,omitempty\"`\n\tChangedCells int    `json:\"changedCells\"`\n\tUndoLabel    string `json:\"undo,omitempty\"`\n\tReviewOpen   bool   `json:\"reviewOpen\"`\n\tRegionCount  int    `json:\"regionCount,omitempty\"`\n\tKeptRegions  int    `json:\"keptRegions,omitempty\"`\n\tReviewCells  int    `json:\"reviewCells,omitempty\"`\n}",
          "doc": "AgentTileEditResult reports the outcome of an agent tile edit or review commit.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 139,
          "members": [
            {
              "name": "Layer",
              "anchor": "AgentTileEditResult.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayer",
              "anchor": "AgentTileEditResult.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangedCells",
              "anchor": "AgentTileEditResult.ChangedCells",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UndoLabel",
              "anchor": "AgentTileEditResult.UndoLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReviewOpen",
              "anchor": "AgentTileEditResult.ReviewOpen",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RegionCount",
              "anchor": "AgentTileEditResult.RegionCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptRegions",
              "anchor": "AgentTileEditResult.KeptRegions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReviewCells",
              "anchor": "AgentTileEditResult.ReviewCells",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTileEraseRequest",
          "anchor": "AgentTileEraseRequest",
          "decl": "type AgentTileEraseRequest struct {\n\tLayer       string\n\tTileLayer   string\n\tCells       []TileCoord\n\tRects       []TileRect\n\tLabel       string\n\tTrackReview bool\n}",
          "doc": "AgentTileEraseRequest clears explicit cells or rectangles on a tile layer.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 129,
          "members": [
            {
              "name": "Layer",
              "anchor": "AgentTileEraseRequest.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayer",
              "anchor": "AgentTileEraseRequest.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "AgentTileEraseRequest.Cells",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rects",
              "anchor": "AgentTileEraseRequest.Rects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "AgentTileEraseRequest.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TrackReview",
              "anchor": "AgentTileEraseRequest.TrackReview",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTilePaintRequest",
          "anchor": "AgentTilePaintRequest",
          "decl": "type AgentTilePaintRequest struct {\n\tLayer                string\n\tTileLayer            string\n\tTileID               int\n\tTileName             string\n\tFlip                 uint32\n\tWeighted             []AgentTileWeighted\n\tSeed                 uint64\n\tNoAdjacentDuplicates bool\n\tCells                []AgentTileCell\n\tRects                []AgentTileRect\n\tLabel                string\n\tTrackReview          bool\n}",
          "doc": "AgentTilePaintRequest paints explicit cells, rectangles, or weighted random picks on a tile layer.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 101,
          "members": [
            {
              "name": "Layer",
              "anchor": "AgentTilePaintRequest.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayer",
              "anchor": "AgentTilePaintRequest.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileID",
              "anchor": "AgentTilePaintRequest.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileName",
              "anchor": "AgentTilePaintRequest.TileName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flip",
              "anchor": "AgentTilePaintRequest.Flip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weighted",
              "anchor": "AgentTilePaintRequest.Weighted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "AgentTilePaintRequest.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NoAdjacentDuplicates",
              "anchor": "AgentTilePaintRequest.NoAdjacentDuplicates",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "AgentTilePaintRequest.Cells",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rects",
              "anchor": "AgentTilePaintRequest.Rects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "AgentTilePaintRequest.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TrackReview",
              "anchor": "AgentTilePaintRequest.TrackReview",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTileRect",
          "anchor": "AgentTileRect",
          "decl": "type AgentTileRect struct {\n\tCol0     int\n\tRow0     int\n\tCol1     int\n\tRow1     int\n\tTileID   int\n\tTileName string\n\tFlip     uint32\n}",
          "doc": "AgentTileRect specifies an inclusive rectangle to paint in AgentTilePaintRequest.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 83,
          "members": [
            {
              "name": "Col0",
              "anchor": "AgentTileRect.Col0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row0",
              "anchor": "AgentTileRect.Row0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Col1",
              "anchor": "AgentTileRect.Col1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row1",
              "anchor": "AgentTileRect.Row1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileID",
              "anchor": "AgentTileRect.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileName",
              "anchor": "AgentTileRect.TileName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flip",
              "anchor": "AgentTileRect.Flip",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTileWeighted",
          "anchor": "AgentTileWeighted",
          "decl": "type AgentTileWeighted struct {\n\tTileID   int\n\tTileName string\n\tWeight   float64\n}",
          "doc": "AgentTileWeighted specifies one weighted tile entry for deterministic random picks in AgentTilePaintRequest.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 94,
          "members": [
            {
              "name": "TileID",
              "anchor": "AgentTileWeighted.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileName",
              "anchor": "AgentTileWeighted.TileName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight",
              "anchor": "AgentTileWeighted.Weight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTokenUsage",
          "anchor": "AgentTokenUsage",
          "decl": "type AgentTokenUsage struct {\n\tLimit         int\n\tConversation  int\n\tOpenScene     int\n\tAttached      int\n\tAlways        int\n\tToolsAndInstr int\n\tViewportImage int\n}",
          "doc": "AgentTokenUsage reports token usage across the 6 context breakdown categories shown in Threads.dc.html.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 178,
          "members": [
            {
              "name": "Limit",
              "anchor": "AgentTokenUsage.Limit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Conversation",
              "anchor": "AgentTokenUsage.Conversation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OpenScene",
              "anchor": "AgentTokenUsage.OpenScene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Attached",
              "anchor": "AgentTokenUsage.Attached",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Always",
              "anchor": "AgentTokenUsage.Always",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToolsAndInstr",
              "anchor": "AgentTokenUsage.ToolsAndInstr",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportImage",
              "anchor": "AgentTokenUsage.ViewportImage",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Total",
              "anchor": "AgentTokenUsage.Total",
              "recv": "AgentTokenUsage",
              "decl": "func (u AgentTokenUsage) Total() int",
              "doc": "Total returns the sum of used tokens across all categories.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 189
            }
          ]
        },
        {
          "name": "AgentToolCallRecord",
          "anchor": "AgentToolCallRecord",
          "decl": "type AgentToolCallRecord struct {\n\tClientName  string\n\tToolName    string\n\tStepTitle   string\n\tCallSummary string\n\tErrorText   string\n\tIsError     bool\n\tFile        string\n}",
          "doc": "AgentToolCallRecord carries structured metadata from an MCP tool execution into the Agent panel.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 270,
          "members": [
            {
              "name": "ClientName",
              "anchor": "AgentToolCallRecord.ClientName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToolName",
              "anchor": "AgentToolCallRecord.ToolName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepTitle",
              "anchor": "AgentToolCallRecord.StepTitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CallSummary",
              "anchor": "AgentToolCallRecord.CallSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ErrorText",
              "anchor": "AgentToolCallRecord.ErrorText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsError",
              "anchor": "AgentToolCallRecord.IsError",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "AgentToolCallRecord.File",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentToolCallResult",
          "anchor": "AgentToolCallResult",
          "decl": "type AgentToolCallResult struct {\n\tText    string\n\tPNG     []byte\n\tIsError bool\n}",
          "doc": "AgentToolCallResult holds the text, optional PNG, and error flag returned by executing one editor MCP tool.\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 148,
          "members": [
            {
              "name": "Text",
              "anchor": "AgentToolCallResult.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PNG",
              "anchor": "AgentToolCallResult.PNG",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsError",
              "anchor": "AgentToolCallResult.IsError",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentToolExecutor",
          "anchor": "AgentToolExecutor",
          "decl": "type AgentToolExecutor interface {\n\tListTools(ctx context.Context) ([]AgentToolSpec, error)\n\tCallTool(ctx context.Context, name string, args json.RawMessage) (AgentToolCallResult, error)\n}",
          "doc": "AgentToolExecutor lists and invokes the editor's MCP tools for the built-in agent.\neditormcp.Server wires itself onto Editor.AgentTools automatically in editormcp.New.\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 156,
          "members": [
            {
              "name": "ListTools",
              "anchor": "AgentToolExecutor.ListTools",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "CallTool",
              "anchor": "AgentToolExecutor.CallTool",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentToolInfo",
          "anchor": "AgentToolInfo",
          "decl": "type AgentToolInfo struct {\n\tName        string\n\tTitle       string\n\tDescription string\n\tDefaultOff  bool\n}",
          "doc": "AgentToolInfo describes one tool registered on the editor's MCP server for Settings › Tools.\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 314,
          "members": [
            {
              "name": "Name",
              "anchor": "AgentToolInfo.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentToolInfo.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Description",
              "anchor": "AgentToolInfo.Description",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultOff",
              "anchor": "AgentToolInfo.DefaultOff",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultAgentMCPTools",
              "anchor": "DefaultAgentMCPTools",
              "decl": "func DefaultAgentMCPTools() []AgentToolInfo",
              "doc": "DefaultAgentMCPTools returns the baseline catalog of editor MCP tools shown in Settings › Tools\nbefore a live editormcp.Server publishes its full registered tool list.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 355
            }
          ],
          "methods": [
            {
              "name": "ShortDescription",
              "anchor": "AgentToolInfo.ShortDescription",
              "recv": "AgentToolInfo",
              "decl": "func (t AgentToolInfo) ShortDescription() string",
              "doc": "ShortDescription returns Title when set, or the first sentence of Description.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 322
            }
          ]
        },
        {
          "name": "AgentToolSpec",
          "anchor": "AgentToolSpec",
          "decl": "type AgentToolSpec struct {\n\tName        string          `json:\"name\"`\n\tTitle       string          `json:\"title,omitempty\"`\n\tDescription string          `json:\"description\"`\n\tInputSchema json.RawMessage `json:\"input_schema\"`\n}",
          "doc": "AgentToolSpec describes one editor MCP tool offered to the built-in agent model.\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 140,
          "members": [
            {
              "name": "Name",
              "anchor": "AgentToolSpec.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AgentToolSpec.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Description",
              "anchor": "AgentToolSpec.Description",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InputSchema",
              "anchor": "AgentToolSpec.InputSchema",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurn",
          "anchor": "AgentTurn",
          "decl": "type AgentTurn struct {\n\tID              string                `json:\"id\"`\n\tPrompt          string                `json:\"prompt\"`\n\tImages          []AgentReferenceImage `json:\"-\"`                  // reference images sent with this turn (one-shot attachments and pinned brief references)\n\tSource          string                `json:\"source,omitempty\"`   // \"in_place\", \"panel\", \"external\", or \"automation\"\n\tSkipPlan        bool                  `json:\"skipPlan,omitempty\"` // true for small in-place ⌘L edits per Plan.dc.html\n\tStatus          string                `json:\"status,omitempty\"`   // \"pending\", \"running\", \"done\", \"stopped\"\n\tExternal        bool                  `json:\"external,omitempty\"` // true for turns started by a terminal MCP client rather than the composer\n\tAgentName       string                `json:\"agentName,omitempty\"`\n\tTask            AgentTaskKind         `json:\"task,omitempty\"`\n\tRoute           AgentModelRoute       `json:\"route,omitempty\"`\n\tModel           string                `json:\"model,omitempty\"`\n\tSteps           []AgentStep           `json:\"steps,omitempty\"`\n\tPlannedSteps    []string              `json:\"plannedSteps,omitempty\"`\n\tFollowUps       []AgentFollowUp       `json:\"followUps,omitempty\"`\n\tNotChecked      []string              `json:\"notChecked,omitempty\"`\n\tStoppedBefore   string                `json:\"stoppedBefore,omitempty\"`\n\tPendingReview   *AgentPendingReview   `json:\"pendingReview,omitempty\"`\n\tSummary         string                `json:\"summary,omitempty\"`\n\tReply           string                `json:\"reply,omitempty\"`\n\tError           string                `json:\"error,omitempty\"`\n\tModelError      *AgentModelErrorState `json:\"modelError,omitempty\"`\n\tStopped         bool                  `json:\"stopped,omitempty\"`\n\tDone            bool                  `json:\"done,omitempty\"`\n\tPartial         *AgentPartialState    `json:\"partial,omitempty\"`\n\tStuck           *AgentStuckState      `json:\"stuck,omitempty\"`\n\tLost            *AgentLostState       `json:\"lost,omitempty\"`\n\tStoppedState    *AgentStoppedState    `json:\"stoppedState,omitempty\"`\n\tMismatch        *AgentMismatchReport  `json:\"mismatch,omitempty\"`\n\tReview          *AgentTurnReview      `json:\"review,omitempty\"`\n\tInputTokens     int                   `json:\"inputTokens,omitempty\"`\n\tOutputTokens    int                   `json:\"outputTokens,omitempty\"`\n\tCreatedAt       time.Time             `json:\"createdAt\"`\n\tStartedAt       time.Time             `json:\"startedAt\"`\n\tFinishedAt      time.Time             `json:\"finishedAt\"`\n\tContext         AgentTurnContext      `json:\"context\"`\n\tChangedFiles    []string              `json:\"changedFiles,omitempty\"`\n\tThreadID        string                `json:\"threadId,omitempty\"`\n\tSessionIDBefore string                `json:\"sessionIdBefore,omitempty\"`\n\tSessionIDAfter  string                `json:\"sessionIdAfter,omitempty\"`\n\tAutomation      bool                  `json:\"automation,omitempty\"`     // true for turns started by an automation trigger\n\tAutomationID    string                `json:\"automationId,omitempty\"`   // rule ID from automations.yaml when Automation is true\n\tAutomationName  string                `json:\"automationName,omitempty\"` // WHEN summary of the triggering automation rule\n\tTriggerSummary  string                `json:\"triggerSummary,omitempty\"` // concrete trigger description, e.g. \"File changed · scenes/level_01.scene.yaml\"\n\tCheckpointID    string                `json:\"checkpointId,omitempty\"`   // checkpoint captured before the automation started\n\tReviewState     AgentReviewState      `json:\"reviewState,omitempty\"`    // lifecycle state for Ready to review / Kept / Dismissed / Failed\n\tPlan            *AgentPlanReview      `json:\"plan,omitempty\"`\n\t// contains filtered or unexported fields\n}",
          "doc": "AgentTurn is one user request (in-place ⌘L, Agent panel composer, terminal-initiated MCP turn, or background automation run)\nand its attached context, streamed steps, follow-ups, pending review, and reply.\n",
          "file": "pkg/editor/agent.go",
          "line": 282,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentTurn.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentTurn.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Images",
              "anchor": "AgentTurn.Images",
              "kind": "field",
              "doc": "reference images sent with this turn (one-shot attachments and pinned brief references)"
            },
            {
              "name": "Source",
              "anchor": "AgentTurn.Source",
              "kind": "field",
              "doc": "\"in_place\", \"panel\", \"external\", or \"automation\""
            },
            {
              "name": "SkipPlan",
              "anchor": "AgentTurn.SkipPlan",
              "kind": "field",
              "doc": "true for small in-place ⌘L edits per Plan.dc.html"
            },
            {
              "name": "Status",
              "anchor": "AgentTurn.Status",
              "kind": "field",
              "doc": "\"pending\", \"running\", \"done\", \"stopped\""
            },
            {
              "name": "External",
              "anchor": "AgentTurn.External",
              "kind": "field",
              "doc": "true for turns started by a terminal MCP client rather than the composer"
            },
            {
              "name": "AgentName",
              "anchor": "AgentTurn.AgentName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Task",
              "anchor": "AgentTurn.Task",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Route",
              "anchor": "AgentTurn.Route",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Model",
              "anchor": "AgentTurn.Model",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "AgentTurn.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlannedSteps",
              "anchor": "AgentTurn.PlannedSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FollowUps",
              "anchor": "AgentTurn.FollowUps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NotChecked",
              "anchor": "AgentTurn.NotChecked",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StoppedBefore",
              "anchor": "AgentTurn.StoppedBefore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PendingReview",
              "anchor": "AgentTurn.PendingReview",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "AgentTurn.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reply",
              "anchor": "AgentTurn.Reply",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "AgentTurn.Error",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ModelError",
              "anchor": "AgentTurn.ModelError",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stopped",
              "anchor": "AgentTurn.Stopped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Done",
              "anchor": "AgentTurn.Done",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Partial",
              "anchor": "AgentTurn.Partial",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stuck",
              "anchor": "AgentTurn.Stuck",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Lost",
              "anchor": "AgentTurn.Lost",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StoppedState",
              "anchor": "AgentTurn.StoppedState",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mismatch",
              "anchor": "AgentTurn.Mismatch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Review",
              "anchor": "AgentTurn.Review",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InputTokens",
              "anchor": "AgentTurn.InputTokens",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OutputTokens",
              "anchor": "AgentTurn.OutputTokens",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CreatedAt",
              "anchor": "AgentTurn.CreatedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartedAt",
              "anchor": "AgentTurn.StartedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FinishedAt",
              "anchor": "AgentTurn.FinishedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Context",
              "anchor": "AgentTurn.Context",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangedFiles",
              "anchor": "AgentTurn.ChangedFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ThreadID",
              "anchor": "AgentTurn.ThreadID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SessionIDBefore",
              "anchor": "AgentTurn.SessionIDBefore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SessionIDAfter",
              "anchor": "AgentTurn.SessionIDAfter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Automation",
              "anchor": "AgentTurn.Automation",
              "kind": "field",
              "doc": "true for turns started by an automation trigger"
            },
            {
              "name": "AutomationID",
              "anchor": "AgentTurn.AutomationID",
              "kind": "field",
              "doc": "rule ID from automations.yaml when Automation is true"
            },
            {
              "name": "AutomationName",
              "anchor": "AgentTurn.AutomationName",
              "kind": "field",
              "doc": "WHEN summary of the triggering automation rule"
            },
            {
              "name": "TriggerSummary",
              "anchor": "AgentTurn.TriggerSummary",
              "kind": "field",
              "doc": "concrete trigger description, e.g. \"File changed · scenes/level_01.scene.yaml\""
            },
            {
              "name": "CheckpointID",
              "anchor": "AgentTurn.CheckpointID",
              "kind": "field",
              "doc": "checkpoint captured before the automation started"
            },
            {
              "name": "ReviewState",
              "anchor": "AgentTurn.ReviewState",
              "kind": "field",
              "doc": "lifecycle state for Ready to review / Kept / Dismissed / Failed"
            },
            {
              "name": "Plan",
              "anchor": "AgentTurn.Plan",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurnChange",
          "anchor": "AgentTurnChange",
          "decl": "type AgentTurnChange struct {\n\t// ID uniquely identifies this change within the turn (for example \"scenes/level_01.scene.yaml::obj:slime_01\").\n\tID string `json:\"id\"`\n\t// Kind is \"added\", \"changed\", or \"removed\".\n\tKind AgentChangeKind `json:\"kind\"`\n\t// Title is the short name of the affected object, record, key, or track.\n\tTitle string `json:\"title\"`\n\t// Detail is a concise summary of the change (for example \"z 10 → 12\" or \"patrol\").\n\tDetail string `json:\"detail,omitempty\"`\n\t// File is the project-relative slash-separated path of the touched file (or open scene label).\n\tFile string `json:\"file\"`\n\t// Line is the 1-based line number in the current YAML (or pre-turn YAML for removed items).\n\tLine int `json:\"line,omitempty\"`\n\t// Reason is the agent's optional \"why\" explanation when supplied on an MCP edit tool.\n\tReason string `json:\"reason,omitempty\"`\n\t// ObjectID names the scene/prefab object ID when applicable.\n\tObjectID string `json:\"objectId,omitempty\"`\n\t// Field names the specific object field, component field, property, or key when applicable.\n\tField string `json:\"field,omitempty\"`\n\t// Layer names the scene layer when applicable.\n\tLayer string `json:\"layer,omitempty\"`\n\t// Reverted reports whether the person reverted this change while the turn is pending.\n\tReverted bool `json:\"reverted,omitempty\"`\n}",
          "doc": "AgentTurnChange is one derived structural change inside a pending or finished agent turn.\nChanges are derived from the diff between pre-turn and post-turn state rather than a raw command log.\n",
          "file": "pkg/editor/agent_turn_diff.go",
          "line": 35,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentTurnChange.ID",
              "kind": "field",
              "doc": "ID uniquely identifies this change within the turn (for example \"scenes/level_01.scene.yaml::obj:slime_01\")."
            },
            {
              "name": "Kind",
              "anchor": "AgentTurnChange.Kind",
              "kind": "field",
              "doc": "Kind is \"added\", \"changed\", or \"removed\"."
            },
            {
              "name": "Title",
              "anchor": "AgentTurnChange.Title",
              "kind": "field",
              "doc": "Title is the short name of the affected object, record, key, or track."
            },
            {
              "name": "Detail",
              "anchor": "AgentTurnChange.Detail",
              "kind": "field",
              "doc": "Detail is a concise summary of the change (for example \"z 10 → 12\" or \"patrol\")."
            },
            {
              "name": "File",
              "anchor": "AgentTurnChange.File",
              "kind": "field",
              "doc": "File is the project-relative slash-separated path of the touched file (or open scene label)."
            },
            {
              "name": "Line",
              "anchor": "AgentTurnChange.Line",
              "kind": "field",
              "doc": "Line is the 1-based line number in the current YAML (or pre-turn YAML for removed items)."
            },
            {
              "name": "Reason",
              "anchor": "AgentTurnChange.Reason",
              "kind": "field",
              "doc": "Reason is the agent's optional \"why\" explanation when supplied on an MCP edit tool."
            },
            {
              "name": "ObjectID",
              "anchor": "AgentTurnChange.ObjectID",
              "kind": "field",
              "doc": "ObjectID names the scene/prefab object ID when applicable."
            },
            {
              "name": "Field",
              "anchor": "AgentTurnChange.Field",
              "kind": "field",
              "doc": "Field names the specific object field, component field, property, or key when applicable."
            },
            {
              "name": "Layer",
              "anchor": "AgentTurnChange.Layer",
              "kind": "field",
              "doc": "Layer names the scene layer when applicable."
            },
            {
              "name": "Reverted",
              "anchor": "AgentTurnChange.Reverted",
              "kind": "field",
              "doc": "Reverted reports whether the person reverted this change while the turn is pending."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurnContext",
          "anchor": "AgentTurnContext",
          "decl": "type AgentTurnContext struct {\n\tScenePath      string   `json:\"scenePath,omitempty\"`\n\tSceneName      string   `json:\"sceneName,omitempty\"`\n\tSceneYAML      string   `json:\"sceneYaml,omitempty\"`\n\tSelectionIDs   []string `json:\"selectionIds,omitempty\"`\n\tSelectionNames []string `json:\"selectionNames,omitempty\"`\n\tLayer          string   `json:\"layer,omitempty\"`\n\tViewportPNG    []byte   `json:\"-\"`\n\tViewportWidth  int      `json:\"viewportWidth,omitempty\"`\n\tViewportHeight int      `json:\"viewportHeight,omitempty\"`\n\tViewMode       string   `json:\"viewMode,omitempty\"`\n}",
          "doc": "AgentTurnContext captures the editor context attached to an agent request:\nthe selection (object IDs and names), the open scene (path, name, and YAML), and a rendered viewport PNG.\n",
          "file": "pkg/editor/agent.go",
          "line": 267,
          "members": [
            {
              "name": "ScenePath",
              "anchor": "AgentTurnContext.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneName",
              "anchor": "AgentTurnContext.SceneName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneYAML",
              "anchor": "AgentTurnContext.SceneYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectionIDs",
              "anchor": "AgentTurnContext.SelectionIDs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectionNames",
              "anchor": "AgentTurnContext.SelectionNames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "AgentTurnContext.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportPNG",
              "anchor": "AgentTurnContext.ViewportPNG",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportWidth",
              "anchor": "AgentTurnContext.ViewportWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportHeight",
              "anchor": "AgentTurnContext.ViewportHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewMode",
              "anchor": "AgentTurnContext.ViewMode",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurnFileKind",
          "anchor": "AgentTurnFileKind",
          "decl": "type AgentTurnFileKind string",
          "doc": "AgentTurnFileKind identifies the structured format of a file touched by an agent turn.\n",
          "file": "pkg/editor/agent_turn_diff.go",
          "line": 22,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TurnFileScene",
                  "anchor": "TurnFileScene"
                },
                {
                  "name": "TurnFilePrefab",
                  "anchor": "TurnFilePrefab"
                },
                {
                  "name": "TurnFileDataTable",
                  "anchor": "TurnFileDataTable"
                },
                {
                  "name": "TurnFileProject",
                  "anchor": "TurnFileProject"
                },
                {
                  "name": "TurnFileClip",
                  "anchor": "TurnFileClip"
                },
                {
                  "name": "TurnFileOther",
                  "anchor": "TurnFileOther"
                }
              ],
              "decl": "const (\n\tTurnFileScene     AgentTurnFileKind = \"scene\"\n\tTurnFilePrefab    AgentTurnFileKind = \"prefab\"\n\tTurnFileDataTable AgentTurnFileKind = \"datatable\"\n\tTurnFileProject   AgentTurnFileKind = \"project\"\n\tTurnFileClip      AgentTurnFileKind = \"clip\"\n\tTurnFileOther     AgentTurnFileKind = \"other\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_turn_diff.go",
              "line": 24
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurnFileSummary",
          "anchor": "AgentTurnFileSummary",
          "decl": "type AgentTurnFileSummary struct {\n\tFile          string            `json:\"file\"`\n\tKind          AgentTurnFileKind `json:\"kind\"`\n\tChangeCount   int               `json:\"changeCount\"`\n\tActiveCount   int               `json:\"activeCount\"`\n\tRevertedCount int               `json:\"revertedCount\"`\n\tAddedLines    int               `json:\"addedLines\"`\n\tRemovedLines  int               `json:\"removedLines\"`\n}",
          "doc": "AgentTurnFileSummary summarizes derived changes for one file touched by an agent turn.\n",
          "file": "pkg/editor/agent_turn.go",
          "line": 110,
          "members": [
            {
              "name": "File",
              "anchor": "AgentTurnFileSummary.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AgentTurnFileSummary.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangeCount",
              "anchor": "AgentTurnFileSummary.ChangeCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveCount",
              "anchor": "AgentTurnFileSummary.ActiveCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RevertedCount",
              "anchor": "AgentTurnFileSummary.RevertedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AddedLines",
              "anchor": "AgentTurnFileSummary.AddedLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemovedLines",
              "anchor": "AgentTurnFileSummary.RemovedLines",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurnOptions",
          "anchor": "AgentTurnOptions",
          "decl": "type AgentTurnOptions struct {\n\t// Title is the concise request title shown in the History panel (for example \"slimes and coins\").\n\tTitle string\n\t// Summary optionally overrides the headline (defaults to Title).\n\tSummary string\n\t// Detail optionally adds context before the change/kept counts (for example \"from the template\").\n\tDetail string\n\t// ChangeCount is the total number of changes proposed during this turn (0 uses the executed sub-command count).\n\tChangeCount int\n\t// KeptCount is the number of changes kept during this turn (0 defaults to ChangeCount).\n\tKeptCount int\n\t// Files lists additional project-relative file paths touched by this turn (outside the active scene).\n\tFiles []string\n\t// UndoLabel optionally overrides History.UndoLabel() for the grouped undo step.\n\tUndoLabel string\n}",
          "doc": "AgentTurnOptions configures metadata for an agent turn recorded on the unified History timeline.\n",
          "file": "pkg/editor/history_timeline.go",
          "line": 27,
          "members": [
            {
              "name": "Title",
              "anchor": "AgentTurnOptions.Title",
              "kind": "field",
              "doc": "Title is the concise request title shown in the History panel (for example \"slimes and coins\")."
            },
            {
              "name": "Summary",
              "anchor": "AgentTurnOptions.Summary",
              "kind": "field",
              "doc": "Summary optionally overrides the headline (defaults to Title)."
            },
            {
              "name": "Detail",
              "anchor": "AgentTurnOptions.Detail",
              "kind": "field",
              "doc": "Detail optionally adds context before the change/kept counts (for example \"from the template\")."
            },
            {
              "name": "ChangeCount",
              "anchor": "AgentTurnOptions.ChangeCount",
              "kind": "field",
              "doc": "ChangeCount is the total number of changes proposed during this turn (0 uses the executed sub-command count)."
            },
            {
              "name": "KeptCount",
              "anchor": "AgentTurnOptions.KeptCount",
              "kind": "field",
              "doc": "KeptCount is the number of changes kept during this turn (0 defaults to ChangeCount)."
            },
            {
              "name": "Files",
              "anchor": "AgentTurnOptions.Files",
              "kind": "field",
              "doc": "Files lists additional project-relative file paths touched by this turn (outside the active scene)."
            },
            {
              "name": "UndoLabel",
              "anchor": "AgentTurnOptions.UndoLabel",
              "kind": "field",
              "doc": "UndoLabel optionally overrides History.UndoLabel() for the grouped undo step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurnReview",
          "anchor": "AgentTurnReview",
          "decl": "type AgentTurnReview struct {\n\tTurnID       string\n\tFile         string\n\tAdded        []SceneObjectChange\n\tChanged      []SceneObjectChange\n\tRemoved      []SceneObjectChange\n\tPlusLines    int\n\tMinusLines   int\n\tHistoryStart int\n\tHistoryEnd   int\n\tKept         bool\n\tDiscarded    bool\n}",
          "doc": "AgentTurnReview captures the actual scene diff produced during one agent turn.\nThe review, never the agent's prose summary, is what Keep applies.\n",
          "file": "pkg/editor/agent_states.go",
          "line": 235,
          "members": [
            {
              "name": "TurnID",
              "anchor": "AgentTurnReview.TurnID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "AgentTurnReview.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Added",
              "anchor": "AgentTurnReview.Added",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "AgentTurnReview.Changed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "AgentTurnReview.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlusLines",
              "anchor": "AgentTurnReview.PlusLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinusLines",
              "anchor": "AgentTurnReview.MinusLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HistoryStart",
              "anchor": "AgentTurnReview.HistoryStart",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HistoryEnd",
              "anchor": "AgentTurnReview.HistoryEnd",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kept",
              "anchor": "AgentTurnReview.Kept",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Discarded",
              "anchor": "AgentTurnReview.Discarded",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "AgentTurnReview.Clone",
              "recv": "*AgentTurnReview",
              "decl": "func (r *AgentTurnReview) Clone() *AgentTurnReview",
              "doc": "Clone returns a shallow-slice copy of r safe to inspect outside Editor state.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 258
            },
            {
              "name": "Count",
              "anchor": "AgentTurnReview.Count",
              "recv": "*AgentTurnReview",
              "decl": "func (r *AgentTurnReview) Count() int",
              "doc": "Count returns the total number of added, changed, and removed scene objects in the review.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 250
            }
          ]
        },
        {
          "name": "AgentTurnSnapshot",
          "anchor": "AgentTurnSnapshot",
          "decl": "type AgentTurnSnapshot struct {\n\tID            uint64                 `json:\"id\"`\n\tStatus        AgentTurnStatus        `json:\"status\"`\n\tPrompt        string                 `json:\"prompt\"`\n\tSummary       string                 `json:\"summary,omitempty\"`\n\tSteps         []AgentTurnStep        `json:\"steps,omitempty\"`\n\tFiles         []AgentTurnFileSummary `json:\"files,omitempty\"`\n\tChanges       []AgentTurnChange      `json:\"changes,omitempty\"`\n\tTotalChanges  int                    `json:\"totalChanges\"`\n\tActiveChanges int                    `json:\"activeChanges\"`\n\tRevertedCount int                    `json:\"revertedCount\"`\n\tAddedLines    int                    `json:\"addedLines\"`\n\tRemovedLines  int                    `json:\"removedLines\"`\n\tReviewOpen    bool                   `json:\"reviewOpen,omitempty\"`\n}",
          "doc": "AgentTurnSnapshot is a read-only view of the current agent turn for UI and MCP inspection.\n",
          "file": "pkg/editor/agent_turn.go",
          "line": 121,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentTurnSnapshot.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "AgentTurnSnapshot.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentTurnSnapshot.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "AgentTurnSnapshot.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "AgentTurnSnapshot.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "AgentTurnSnapshot.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changes",
              "anchor": "AgentTurnSnapshot.Changes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalChanges",
              "anchor": "AgentTurnSnapshot.TotalChanges",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveChanges",
              "anchor": "AgentTurnSnapshot.ActiveChanges",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RevertedCount",
              "anchor": "AgentTurnSnapshot.RevertedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AddedLines",
              "anchor": "AgentTurnSnapshot.AddedLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemovedLines",
              "anchor": "AgentTurnSnapshot.RemovedLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReviewOpen",
              "anchor": "AgentTurnSnapshot.ReviewOpen",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsOpen",
              "anchor": "AgentTurnSnapshot.IsOpen",
              "recv": "AgentTurnSnapshot",
              "decl": "func (s AgentTurnSnapshot) IsOpen() bool",
              "doc": "IsOpen reports whether the turn is working, pending, or stopped (not yet kept or reverted).\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 143
            },
            {
              "name": "IsPending",
              "anchor": "AgentTurnSnapshot.IsPending",
              "recv": "AgentTurnSnapshot",
              "decl": "func (s AgentTurnSnapshot) IsPending() bool",
              "doc": "IsPending reports whether the turn has finished or stopped and is awaiting Keep or Revert.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 138
            }
          ]
        },
        {
          "name": "AgentTurnStatus",
          "anchor": "AgentTurnStatus",
          "decl": "type AgentTurnStatus string",
          "doc": "AgentTurnStatus describes the lifecycle state of an agent request turn.\n",
          "file": "pkg/editor/agent_turn.go",
          "line": 80,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AgentTurnWorking",
                  "anchor": "AgentTurnWorking"
                },
                {
                  "name": "AgentTurnPending",
                  "anchor": "AgentTurnPending"
                },
                {
                  "name": "AgentTurnStopped",
                  "anchor": "AgentTurnStopped"
                },
                {
                  "name": "AgentTurnKept",
                  "anchor": "AgentTurnKept"
                },
                {
                  "name": "AgentTurnReverted",
                  "anchor": "AgentTurnReverted"
                }
              ],
              "decl": "const (\n\t// AgentTurnWorking means the agent is actively making edits in this request.\n\tAgentTurnWorking AgentTurnStatus = \"working\"\n\t// AgentTurnPending means the agent finished the request and edits await Keep or Revert.\n\tAgentTurnPending AgentTurnStatus = \"pending\"\n\t// AgentTurnStopped means the person stopped the agent mid-request; partial edits stay pending and reviewable.\n\tAgentTurnStopped AgentTurnStatus = \"stopped\"\n\t// AgentTurnKept means the person kept the remaining changes as one History undo step.\n\tAgentTurnKept AgentTurnStatus = \"kept\"\n\t// AgentTurnReverted means the person reverted all touched files to their pre-request state.\n\tAgentTurnReverted AgentTurnStatus = \"reverted\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_turn.go",
              "line": 82
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurnStep",
          "anchor": "AgentTurnStep",
          "decl": "type AgentTurnStep struct {\n\tLabel string `json:\"label\"`\n\tDone  bool   `json:\"done\"`\n}",
          "doc": "AgentTurnStep is one progress line shown in the Agent panel for the turn.\n",
          "file": "pkg/editor/agent_turn.go",
          "line": 104,
          "members": [
            {
              "name": "Label",
              "anchor": "AgentTurnStep.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Done",
              "anchor": "AgentTurnStep.Done",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurnSummary",
          "anchor": "AgentTurnSummary",
          "decl": "type AgentTurnSummary struct {\n\tID           string\n\tPrompt       string\n\tSummary      string\n\tChangedFiles []string\n}",
          "doc": "AgentTurnSummary carries a concise summary of a prior turn still in the thread when dispatching the next AgentRequest.\n",
          "file": "pkg/editor/agent_rewind.go",
          "line": 39,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentTurnSummary.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentTurnSummary.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "AgentTurnSummary.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangedFiles",
              "anchor": "AgentTurnSummary.ChangedFiles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentUsageStats",
          "anchor": "AgentUsageStats",
          "decl": "type AgentUsageStats struct {\n\t// WeekStart is the UTC Monday date (YYYY-MM-DD) for WeeklyRequests, when recorded.\n\tWeekStart string `yaml:\"weekStart,omitempty\"`\n\t// WeeklyRequests is the number of agent requests made during WeekStart's week.\n\tWeeklyRequests int `yaml:\"weeklyRequests,omitempty\"`\n\t// ReviewedChanges is the total number of agent change reviews resolved (kept or reverted).\n\tReviewedChanges int `yaml:\"reviewedChanges,omitempty\"`\n\t// KeptChanges is the number of reviewed agent changes kept by the person.\n\tKeptChanges int `yaml:\"keptChanges,omitempty\"`\n\t// PlaytestRuns is the number of local headless playtest runs recorded on this computer.\n\tPlaytestRuns int `yaml:\"playtestRuns,omitempty\"`\n}",
          "doc": "AgentUsageStats records per-computer local agent usage metrics persisted in editor.yaml.\nNo prompts, file contents, or secrets are stored here.\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 272,
          "members": [
            {
              "name": "WeekStart",
              "anchor": "AgentUsageStats.WeekStart",
              "kind": "field",
              "doc": "WeekStart is the UTC Monday date (YYYY-MM-DD) for WeeklyRequests, when recorded."
            },
            {
              "name": "WeeklyRequests",
              "anchor": "AgentUsageStats.WeeklyRequests",
              "kind": "field",
              "doc": "WeeklyRequests is the number of agent requests made during WeekStart's week."
            },
            {
              "name": "ReviewedChanges",
              "anchor": "AgentUsageStats.ReviewedChanges",
              "kind": "field",
              "doc": "ReviewedChanges is the total number of agent change reviews resolved (kept or reverted)."
            },
            {
              "name": "KeptChanges",
              "anchor": "AgentUsageStats.KeptChanges",
              "kind": "field",
              "doc": "KeptChanges is the number of reviewed agent changes kept by the person."
            },
            {
              "name": "PlaytestRuns",
              "anchor": "AgentUsageStats.PlaytestRuns",
              "kind": "field",
              "doc": "PlaytestRuns is the number of local headless playtest runs recorded on this computer."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "KeptPercent",
              "anchor": "AgentUsageStats.KeptPercent",
              "recv": "AgentUsageStats",
              "decl": "func (u AgentUsageStats) KeptPercent() (int, bool)",
              "doc": "KeptPercent returns the rounded percentage of reviewed changes kept and whether any review has been resolved.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 286
            }
          ]
        },
        {
          "name": "Appearance",
          "anchor": "Appearance",
          "decl": "type Appearance string",
          "doc": "Appearance selects the editor's color scheme.\n",
          "file": "pkg/editor/settings.go",
          "line": 55,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AppearanceSystem",
                  "anchor": "AppearanceSystem"
                },
                {
                  "name": "AppearanceLight",
                  "anchor": "AppearanceLight"
                },
                {
                  "name": "AppearanceDark",
                  "anchor": "AppearanceDark"
                }
              ],
              "decl": "const (\n\t// AppearanceSystem follows the operating system's light or dark appearance.\n\tAppearanceSystem Appearance = \"system\"\n\t// AppearanceLight forces the light appearance regardless of the system setting.\n\tAppearanceLight Appearance = \"light\"\n\t// AppearanceDark forces the dark appearance regardless of the system setting.\n\tAppearanceDark Appearance = \"dark\"\n)",
              "doc": "",
              "file": "pkg/editor/settings.go",
              "line": 57
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CoreAppearance",
              "anchor": "Appearance.CoreAppearance",
              "recv": "Appearance",
              "decl": "func (a Appearance) CoreAppearance() core.Appearance",
              "doc": "CoreAppearance converts a to NSGo's core.Appearance for Scope.SetAppearance.\n",
              "file": "pkg/editor/settings.go",
              "line": 77
            },
            {
              "name": "Valid",
              "anchor": "Appearance.Valid",
              "recv": "Appearance",
              "decl": "func (a Appearance) Valid() bool",
              "doc": "Valid reports whether a is a recognized editor appearance choice.\n",
              "file": "pkg/editor/settings.go",
              "line": 67
            }
          ]
        },
        {
          "name": "AskFrozenFrameRequest",
          "anchor": "AskFrozenFrameRequest",
          "decl": "type AskFrozenFrameRequest struct {\n\tFrame        int                   `json:\"frame\"`\n\tSeconds      float64               `json:\"seconds\"`\n\tScene        string                `json:\"scene,omitempty\"`\n\tPrompt       string                `json:\"prompt\"`\n\tFramePNG     []byte                `json:\"-\"`\n\tFrameWidth   int                   `json:\"frameWidth\"`\n\tFrameHeight  int                   `json:\"frameHeight\"`\n\tReplayPath   string                `json:\"replayPath,omitempty\"`\n\tReplayAbs    string                `json:\"replayAbs,omitempty\"`\n\tReplayFrames int                   `json:\"replayFrames\"`\n\tSelectedID   string                `json:\"selectedId,omitempty\"`\n\tLiveEntities []PlayLiveEntityState `json:\"liveEntities,omitempty\"`\n\tLiveChanges  []RemoteLiveChange    `json:\"liveChanges,omitempty\"`\n\tCreatedAt    time.Time             `json:\"createdAt\"`\n}",
          "doc": "AskFrozenFrameRequest carries everything attached when the author asks the agent about a frozen Play frame (⌘L).\n",
          "file": "pkg/editor/play_marks.go",
          "line": 65,
          "members": [
            {
              "name": "Frame",
              "anchor": "AskFrozenFrameRequest.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seconds",
              "anchor": "AskFrozenFrameRequest.Seconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scene",
              "anchor": "AskFrozenFrameRequest.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AskFrozenFrameRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FramePNG",
              "anchor": "AskFrozenFrameRequest.FramePNG",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameWidth",
              "anchor": "AskFrozenFrameRequest.FrameWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameHeight",
              "anchor": "AskFrozenFrameRequest.FrameHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayPath",
              "anchor": "AskFrozenFrameRequest.ReplayPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayAbs",
              "anchor": "AskFrozenFrameRequest.ReplayAbs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayFrames",
              "anchor": "AskFrozenFrameRequest.ReplayFrames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedID",
              "anchor": "AskFrozenFrameRequest.SelectedID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LiveEntities",
              "anchor": "AskFrozenFrameRequest.LiveEntities",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LiveChanges",
              "anchor": "AskFrozenFrameRequest.LiveChanges",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CreatedAt",
              "anchor": "AskFrozenFrameRequest.CreatedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AskInPlacePlacement",
          "anchor": "AskInPlacePlacement",
          "decl": "type AskInPlacePlacement struct {\n\tLeft               float32\n\tTop                float32\n\tWidth              float32\n\tHeight             float32\n\tAnchorX            float32\n\tAnchorY            float32\n\tSelectionBounds    [4]float32 // minX, minY, maxX, maxY in viewport points\n\tHasSelectionBounds bool\n}",
          "doc": "AskInPlacePlacement holds the computed viewport-local coordinates of the anchored ⌘L composer card\nand the selection bounds it anchors to, clamped to stay on screen and clear of the right panel.\n",
          "file": "pkg/editor/ask_in_place.go",
          "line": 28,
          "members": [
            {
              "name": "Left",
              "anchor": "AskInPlacePlacement.Left",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Top",
              "anchor": "AskInPlacePlacement.Top",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "AskInPlacePlacement.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "AskInPlacePlacement.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorX",
              "anchor": "AskInPlacePlacement.AnchorX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorY",
              "anchor": "AskInPlacePlacement.AnchorY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectionBounds",
              "anchor": "AskInPlacePlacement.SelectionBounds",
              "kind": "field",
              "doc": "minX, minY, maxX, maxY in viewport points"
            },
            {
              "name": "HasSelectionBounds",
              "anchor": "AskInPlacePlacement.HasSelectionBounds",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ComputeAskInPlacePlacement",
              "anchor": "ComputeAskInPlacePlacement",
              "decl": "func ComputeAskInPlacePlacement(vw, vh float32, selBounds [4]float32, hasSel bool, cardW, cardH float32) AskInPlacePlacement",
              "doc": "ComputeAskInPlacePlacement anchors a cardW x cardH composer card to selBounds inside a vw x vh viewport,\nflipping above the selection if there is not enough room below, and clamping strictly inside\n[margin, vw-margin] x [margin, vh-margin] so it stays on screen and never overlaps the right panel.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 596
            }
          ],
          "methods": []
        },
        {
          "name": "AskInPlaceSnapshot",
          "anchor": "AskInPlaceSnapshot",
          "decl": "type AskInPlaceSnapshot struct {\n\tOpen               bool\n\tDraft              string\n\tTargetIDs          []string\n\tTargetNames        []string\n\tSceneLabel         string\n\tChipSummary        string\n\tChipAnnouncement   string\n\tInputLabel         string\n\tPlaceholder        string\n\tSuggestions        []AskInPlaceSuggestion\n\tSelectedSuggestion int\n\tPlacement          AskInPlacePlacement\n}",
          "doc": "AskInPlaceSnapshot is a read-only view of the in-place ⌘L composer state for UI and tests.\n",
          "file": "pkg/editor/ask_in_place.go",
          "line": 40,
          "members": [
            {
              "name": "Open",
              "anchor": "AskInPlaceSnapshot.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Draft",
              "anchor": "AskInPlaceSnapshot.Draft",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetIDs",
              "anchor": "AskInPlaceSnapshot.TargetIDs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetNames",
              "anchor": "AskInPlaceSnapshot.TargetNames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneLabel",
              "anchor": "AskInPlaceSnapshot.SceneLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChipSummary",
              "anchor": "AskInPlaceSnapshot.ChipSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChipAnnouncement",
              "anchor": "AskInPlaceSnapshot.ChipAnnouncement",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InputLabel",
              "anchor": "AskInPlaceSnapshot.InputLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Placeholder",
              "anchor": "AskInPlaceSnapshot.Placeholder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Suggestions",
              "anchor": "AskInPlaceSnapshot.Suggestions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedSuggestion",
              "anchor": "AskInPlaceSnapshot.SelectedSuggestion",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Placement",
              "anchor": "AskInPlaceSnapshot.Placement",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AskInPlaceSuggestion",
          "anchor": "AskInPlaceSuggestion",
          "decl": "type AskInPlaceSuggestion struct {\n\tID     string\n\tLabel  string\n\tPrompt string\n}",
          "doc": "AskInPlaceSuggestion is one contextual suggestion chip shown under the ⌘L in-place composer.\n",
          "file": "pkg/editor/ask_in_place.go",
          "line": 20,
          "members": [
            {
              "name": "ID",
              "anchor": "AskInPlaceSuggestion.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "AskInPlaceSuggestion.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AskInPlaceSuggestion.Prompt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetClipPreview",
          "anchor": "AssetClipPreview",
          "decl": "type AssetClipPreview struct {\n\tName    string\n\tFrameMS int\n\tFrames  []AssetEntry\n}",
          "doc": "AssetClipPreview describes one playable frame sequence for a sprite asset in the right panel.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 102,
          "members": [
            {
              "name": "Name",
              "anchor": "AssetClipPreview.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameMS",
              "anchor": "AssetClipPreview.FrameMS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "AssetClipPreview.Frames",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetDragState",
          "anchor": "AssetDragState",
          "decl": "type AssetDragState struct {\n\tActive           bool\n\tHoveringViewport bool\n\tDrag             AssetDrawerDrag\n\tCanvasX, CanvasY float32\n\tLayerX, LayerY   float32\n\tSnapPx           float32\n\tTargetObjectID   string\n\tTargetObjectName string\n\tPillName         string\n\tPillDetail       string\n}",
          "doc": "AssetDragState describes an active sprite drag from the asset drawer over the 2D viewport.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 183,
          "members": [
            {
              "name": "Active",
              "anchor": "AssetDragState.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HoveringViewport",
              "anchor": "AssetDragState.HoveringViewport",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Drag",
              "anchor": "AssetDragState.Drag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CanvasX",
              "anchor": "AssetDragState.CanvasX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CanvasY",
              "anchor": "AssetDragState.CanvasY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LayerX",
              "anchor": "AssetDragState.LayerX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LayerY",
              "anchor": "AssetDragState.LayerY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SnapPx",
              "anchor": "AssetDragState.SnapPx",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetObjectID",
              "anchor": "AssetDragState.TargetObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetObjectName",
              "anchor": "AssetDragState.TargetObjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PillName",
              "anchor": "AssetDragState.PillName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PillDetail",
              "anchor": "AssetDragState.PillDetail",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetDrawerCounts",
          "anchor": "AssetDrawerCounts",
          "decl": "type AssetDrawerCounts struct {\n\tUnused    int\n\tMissing   int\n\tGenerated int\n\tProposed  int\n}",
          "doc": "AssetDrawerCounts summarizes the SHOW ONLY counts across the full asset catalog.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 148,
          "members": [
            {
              "name": "Unused",
              "anchor": "AssetDrawerCounts.Unused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Missing",
              "anchor": "AssetDrawerCounts.Missing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Generated",
              "anchor": "AssetDrawerCounts.Generated",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Proposed",
              "anchor": "AssetDrawerCounts.Proposed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetDrawerDrag",
          "anchor": "AssetDrawerDrag",
          "decl": "type AssetDrawerDrag struct {\n\tPath  string\n\tName  string\n\tAtlas string\n\tFrame string\n\tImage core.ImageSource\n\tRect  sprite.Frame\n}",
          "doc": "AssetDrawerDrag is the drag payload carried from an asset card to the 2D viewport.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 173,
          "members": [
            {
              "name": "Path",
              "anchor": "AssetDrawerDrag.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "AssetDrawerDrag.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Atlas",
              "anchor": "AssetDrawerDrag.Atlas",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frame",
              "anchor": "AssetDrawerDrag.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Image",
              "anchor": "AssetDrawerDrag.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rect",
              "anchor": "AssetDrawerDrag.Rect",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetDrawerItem",
          "anchor": "AssetDrawerItem",
          "decl": "type AssetDrawerItem struct {\n\tPath          string\n\tName          string\n\tFolder        string\n\tKind          AssetDrawerKind\n\tKindLabel     string\n\tMeta          string\n\tDims          string\n\tBadge         string\n\tUnused        bool\n\tMissing       bool\n\tGenerated     bool\n\tProposed      bool\n\tModTime       time.Time\n\tAtlas         string\n\tFrame         string\n\tImage         core.ImageSource\n\tRect          sprite.Frame\n\tImageWidth    int\n\tImageHeight   int\n\tClips         []AssetClipPreview\n\tAudioWave     []float32\n\tAudioDuration time.Duration\n\tAudioRate     int\n\tAudioChannels int\n\tFontSample    string\n\tUsedBy        []AssetRefEntry\n\tUseCount      int\n}",
          "doc": "AssetDrawerItem describes one asset card in the drawer and its right-panel metadata.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 109,
          "members": [
            {
              "name": "Path",
              "anchor": "AssetDrawerItem.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "AssetDrawerItem.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Folder",
              "anchor": "AssetDrawerItem.Folder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AssetDrawerItem.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KindLabel",
              "anchor": "AssetDrawerItem.KindLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Meta",
              "anchor": "AssetDrawerItem.Meta",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dims",
              "anchor": "AssetDrawerItem.Dims",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Badge",
              "anchor": "AssetDrawerItem.Badge",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unused",
              "anchor": "AssetDrawerItem.Unused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Missing",
              "anchor": "AssetDrawerItem.Missing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Generated",
              "anchor": "AssetDrawerItem.Generated",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Proposed",
              "anchor": "AssetDrawerItem.Proposed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ModTime",
              "anchor": "AssetDrawerItem.ModTime",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Atlas",
              "anchor": "AssetDrawerItem.Atlas",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frame",
              "anchor": "AssetDrawerItem.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Image",
              "anchor": "AssetDrawerItem.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rect",
              "anchor": "AssetDrawerItem.Rect",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageWidth",
              "anchor": "AssetDrawerItem.ImageWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageHeight",
              "anchor": "AssetDrawerItem.ImageHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clips",
              "anchor": "AssetDrawerItem.Clips",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AudioWave",
              "anchor": "AssetDrawerItem.AudioWave",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AudioDuration",
              "anchor": "AssetDrawerItem.AudioDuration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AudioRate",
              "anchor": "AssetDrawerItem.AudioRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AudioChannels",
              "anchor": "AssetDrawerItem.AudioChannels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FontSample",
              "anchor": "AssetDrawerItem.FontSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UsedBy",
              "anchor": "AssetDrawerItem.UsedBy",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UseCount",
              "anchor": "AssetDrawerItem.UseCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetDrawerKind",
          "anchor": "AssetDrawerKind",
          "decl": "type AssetDrawerKind string",
          "doc": "AssetDrawerKind selects the kind tab in the asset drawer header.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 62,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AssetKindAll",
                  "anchor": "AssetKindAll"
                },
                {
                  "name": "AssetKindSprites",
                  "anchor": "AssetKindSprites"
                },
                {
                  "name": "AssetKindTiles",
                  "anchor": "AssetKindTiles"
                },
                {
                  "name": "AssetKindAudio",
                  "anchor": "AssetKindAudio"
                },
                {
                  "name": "AssetKindFonts",
                  "anchor": "AssetKindFonts"
                }
              ],
              "decl": "const (\n\tAssetKindAll     AssetDrawerKind = \"all\"\n\tAssetKindSprites AssetDrawerKind = \"sprites\"\n\tAssetKindTiles   AssetDrawerKind = \"tiles\"\n\tAssetKindAudio   AssetDrawerKind = \"audio\"\n\tAssetKindFonts   AssetDrawerKind = \"fonts\"\n)",
              "doc": "",
              "file": "pkg/editor/asset_drawer.go",
              "line": 64
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetDrawerSnapshot",
          "anchor": "AssetDrawerSnapshot",
          "decl": "type AssetDrawerSnapshot struct {\n\tAllItems      []AssetDrawerItem\n\tVisibleItems  []AssetDrawerItem\n\tFolders       []AssetFolderEntry\n\tCounts        AssetDrawerCounts\n\tMissingNames  []string\n\tSelected      *AssetDrawerItem\n\tEmptyFolder   string\n\tActiveFolder  string\n\tActiveStatus  AssetStatusFilter\n\tActiveKind    AssetDrawerKind\n\tQuery         string\n\tSort          AssetSortMode\n\tProposedCount int\n}",
          "doc": "AssetDrawerSnapshot is the immutable view model rendered by the Assets left rail, drawer, and right panel.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 156,
          "members": [
            {
              "name": "AllItems",
              "anchor": "AssetDrawerSnapshot.AllItems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VisibleItems",
              "anchor": "AssetDrawerSnapshot.VisibleItems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Folders",
              "anchor": "AssetDrawerSnapshot.Folders",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Counts",
              "anchor": "AssetDrawerSnapshot.Counts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MissingNames",
              "anchor": "AssetDrawerSnapshot.MissingNames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Selected",
              "anchor": "AssetDrawerSnapshot.Selected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EmptyFolder",
              "anchor": "AssetDrawerSnapshot.EmptyFolder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveFolder",
              "anchor": "AssetDrawerSnapshot.ActiveFolder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveStatus",
              "anchor": "AssetDrawerSnapshot.ActiveStatus",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveKind",
              "anchor": "AssetDrawerSnapshot.ActiveKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Query",
              "anchor": "AssetDrawerSnapshot.Query",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sort",
              "anchor": "AssetDrawerSnapshot.Sort",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProposedCount",
              "anchor": "AssetDrawerSnapshot.ProposedCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetEntry",
          "anchor": "AssetEntry",
          "decl": "type AssetEntry struct {\n\tAtlas string\n\tFrame string\n\tImage core.ImageSource\n\tRect  sprite.Frame\n}",
          "doc": "AssetEntry describes one selectable/droppable frame from a registered sprite.Atlas.\n",
          "file": "pkg/editor/browser.go",
          "line": 20,
          "members": [
            {
              "name": "Atlas",
              "anchor": "AssetEntry.Atlas",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frame",
              "anchor": "AssetEntry.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Image",
              "anchor": "AssetEntry.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rect",
              "anchor": "AssetEntry.Rect",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Key",
              "anchor": "AssetEntry.Key",
              "recv": "AssetEntry",
              "decl": "func (a AssetEntry) Key() string",
              "doc": "Key uniquely identifies the asset entry as \"atlas/frame\".\n",
              "file": "pkg/editor/browser.go",
              "line": 28
            }
          ]
        },
        {
          "name": "AssetFolderEntry",
          "anchor": "AssetFolderEntry",
          "decl": "type AssetFolderEntry struct {\n\tPath  string // \"\" for \"All assets\"\n\tLabel string\n\tDepth int\n\tCount int\n}",
          "doc": "AssetFolderEntry describes one folder row in the Assets left rail's FOLDERS list.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 140,
          "members": [
            {
              "name": "Path",
              "anchor": "AssetFolderEntry.Path",
              "kind": "field",
              "doc": "\"\" for \"All assets\""
            },
            {
              "name": "Label",
              "anchor": "AssetFolderEntry.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "AssetFolderEntry.Depth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "AssetFolderEntry.Count",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetGenerationRequest",
          "anchor": "AssetGenerationRequest",
          "decl": "type AssetGenerationRequest struct {\n\tID                  string\n\tTargetPath          string\n\tKind                AssetGeneratorKind\n\tGenerator           string\n\tModel               string\n\tPrompt              string\n\tUserPrompt          string\n\tReferences          []string\n\tReferenceAsset      string\n\tRefWidth            int\n\tRefHeight           int\n\tRefPixels           *image.RGBA\n\tRefImage            core.ImageSource\n\tRefLoudDB           *float64\n\tRefSoundName        string\n\tCount               int\n\tElapsed             time.Duration\n\tLicense             string\n\tCommercialUse       bool\n\tStatus              AssetGenerationStatus\n\tUsageCount          int\n\tPickedCandidateID   string\n\tSelectedCandidateID string\n\tCandidates          []GeneratedCandidate\n\tLastNote            string\n}",
          "doc": "AssetGenerationRequest holds one image or sound generation request and its in-memory candidates.\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 187,
          "members": [
            {
              "name": "ID",
              "anchor": "AssetGenerationRequest.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetPath",
              "anchor": "AssetGenerationRequest.TargetPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AssetGenerationRequest.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Generator",
              "anchor": "AssetGenerationRequest.Generator",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Model",
              "anchor": "AssetGenerationRequest.Model",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AssetGenerationRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserPrompt",
              "anchor": "AssetGenerationRequest.UserPrompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "References",
              "anchor": "AssetGenerationRequest.References",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReferenceAsset",
              "anchor": "AssetGenerationRequest.ReferenceAsset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefWidth",
              "anchor": "AssetGenerationRequest.RefWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefHeight",
              "anchor": "AssetGenerationRequest.RefHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefPixels",
              "anchor": "AssetGenerationRequest.RefPixels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefImage",
              "anchor": "AssetGenerationRequest.RefImage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefLoudDB",
              "anchor": "AssetGenerationRequest.RefLoudDB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefSoundName",
              "anchor": "AssetGenerationRequest.RefSoundName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "AssetGenerationRequest.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Elapsed",
              "anchor": "AssetGenerationRequest.Elapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "License",
              "anchor": "AssetGenerationRequest.License",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CommercialUse",
              "anchor": "AssetGenerationRequest.CommercialUse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "AssetGenerationRequest.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UsageCount",
              "anchor": "AssetGenerationRequest.UsageCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PickedCandidateID",
              "anchor": "AssetGenerationRequest.PickedCandidateID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedCandidateID",
              "anchor": "AssetGenerationRequest.SelectedCandidateID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Candidates",
              "anchor": "AssetGenerationRequest.Candidates",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastNote",
              "anchor": "AssetGenerationRequest.LastNote",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetGenerationStatus",
          "anchor": "AssetGenerationStatus",
          "decl": "type AssetGenerationStatus string",
          "doc": "AssetGenerationStatus classifies the lifecycle state of a generated asset entry in the GENERATED rail.\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 150,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AssetGenPending",
                  "anchor": "AssetGenPending"
                },
                {
                  "name": "AssetGenPicked",
                  "anchor": "AssetGenPicked"
                },
                {
                  "name": "AssetGenInUse",
                  "anchor": "AssetGenInUse"
                },
                {
                  "name": "AssetGenLicenseUnknown",
                  "anchor": "AssetGenLicenseUnknown"
                }
              ],
              "decl": "const (\n\tAssetGenPending        AssetGenerationStatus = \"pending\"\n\tAssetGenPicked         AssetGenerationStatus = \"picked\"\n\tAssetGenInUse          AssetGenerationStatus = \"in_use\"\n\tAssetGenLicenseUnknown AssetGenerationStatus = \"license_unknown\"\n)",
              "doc": "",
              "file": "pkg/editor/asset_gen.go",
              "line": 152
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetGeneratorKind",
          "anchor": "AssetGeneratorKind",
          "decl": "type AssetGeneratorKind string",
          "doc": "AssetGeneratorKind classifies the media type an MCP generator server produces.\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 56,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AssetGenImages",
                  "anchor": "AssetGenImages"
                },
                {
                  "name": "AssetGenSound",
                  "anchor": "AssetGenSound"
                }
              ],
              "decl": "const (\n\t// AssetGenImages produces image candidates (PNG/JPEG/GIF decoded strictly to pixels in memory).\n\tAssetGenImages AssetGeneratorKind = \"images\"\n\t// AssetGenSound produces audio candidates (WAV/OGG decoded strictly in memory).\n\tAssetGenSound AssetGeneratorKind = \"sound\"\n)",
              "doc": "",
              "file": "pkg/editor/asset_gen.go",
              "line": 58
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "AssetGeneratorKind.Valid",
              "recv": "AssetGeneratorKind",
              "decl": "func (k AssetGeneratorKind) Valid() bool",
              "doc": "Valid reports whether k is a supported asset generator kind.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 66
            }
          ]
        },
        {
          "name": "AssetGeneratorServer",
          "anchor": "AssetGeneratorServer",
          "decl": "type AssetGeneratorServer struct {\n\tConfig    GeneratorServerConfig\n\tConnected bool\n\tToolName  string\n\tError     string\n}",
          "doc": "AssetGeneratorServer describes the live status of a configured or connected MCP generator server.\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 85,
          "members": [
            {
              "name": "Config",
              "anchor": "AssetGeneratorServer.Config",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Connected",
              "anchor": "AssetGeneratorServer.Connected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToolName",
              "anchor": "AssetGeneratorServer.ToolName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "AssetGeneratorServer.Error",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetImportInfo",
          "anchor": "AssetImportInfo",
          "decl": "type AssetImportInfo struct {\n\t// Path is the clean slash-separated asset path relative to the project root.\n\tPath string\n\t// SidecarPath is the slash-separated path of the asset's *.import.yaml sidecar.\n\tSidecarPath string\n\t// Kind is the asset's import kind (image, audio, font, or model).\n\tKind AssetImportKind\n\t// SidecarExists reports whether SidecarPath currently exists on disk.\n\tSidecarExists bool\n\t// Sidecar holds the parsed *.import.yaml sidecar overrides, or nil when absent or unparseable.\n\tSidecar *importsettings.File\n\t// SidecarErr holds any read or parse error from an existing sidecar on disk.\n\tSidecarErr error\n\n\t// Matched targets from game.yaml's assets section (nil when no target reads this asset).\n\tAtlasTarget   *project.AtlasTarget\n\tTextureTarget *project.TextureTarget\n\tAudioTarget   *project.AudioTarget\n\tFontTarget    *project.FontTarget\n\tModelTarget   *project.ModelTarget\n\n\t// Inherited defaults resolved from the matched target in game.yaml (or the tool's defaults).\n\tDefaultImageFilter  string\n\tDefaultImageFormat  string\n\tDefaultImageMipmaps bool\n\tDefaultImageSRGB    bool\n\t// ImageWidth and ImageHeight are the decoded source pixel dimensions when Kind is AssetImportImage (0 if unreadable).\n\tImageWidth  int\n\tImageHeight int\n\n\tDefaultAudioFormat   string\n\tDefaultAudioRate     int\n\tDefaultAudioChannels int\n\tDefaultAudioBitrate  int\n\tDefaultAudioPeakDB   *float64\n\tDefaultAudioRMSDB    *float64\n\n\tDefaultFontSize    int\n\tDefaultFontChars   string\n\tDefaultFontPadding int\n\n\tDefaultModelScale      float64\n\tDefaultModelAnimations bool\n}",
          "doc": "AssetImportInfo describes the current import settings, sidecar state, and inherited game.yaml target defaults for one asset in the open project.\n",
          "file": "pkg/editor/asset_import.go",
          "line": 99,
          "members": [
            {
              "name": "Path",
              "anchor": "AssetImportInfo.Path",
              "kind": "field",
              "doc": "Path is the clean slash-separated asset path relative to the project root."
            },
            {
              "name": "SidecarPath",
              "anchor": "AssetImportInfo.SidecarPath",
              "kind": "field",
              "doc": "SidecarPath is the slash-separated path of the asset's *.import.yaml sidecar."
            },
            {
              "name": "Kind",
              "anchor": "AssetImportInfo.Kind",
              "kind": "field",
              "doc": "Kind is the asset's import kind (image, audio, font, or model)."
            },
            {
              "name": "SidecarExists",
              "anchor": "AssetImportInfo.SidecarExists",
              "kind": "field",
              "doc": "SidecarExists reports whether SidecarPath currently exists on disk."
            },
            {
              "name": "Sidecar",
              "anchor": "AssetImportInfo.Sidecar",
              "kind": "field",
              "doc": "Sidecar holds the parsed *.import.yaml sidecar overrides, or nil when absent or unparseable."
            },
            {
              "name": "SidecarErr",
              "anchor": "AssetImportInfo.SidecarErr",
              "kind": "field",
              "doc": "SidecarErr holds any read or parse error from an existing sidecar on disk."
            },
            {
              "name": "AtlasTarget",
              "anchor": "AssetImportInfo.AtlasTarget",
              "kind": "field",
              "doc": "Matched targets from game.yaml's assets section (nil when no target reads this asset)."
            },
            {
              "name": "TextureTarget",
              "anchor": "AssetImportInfo.TextureTarget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AudioTarget",
              "anchor": "AssetImportInfo.AudioTarget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FontTarget",
              "anchor": "AssetImportInfo.FontTarget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ModelTarget",
              "anchor": "AssetImportInfo.ModelTarget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultImageFilter",
              "anchor": "AssetImportInfo.DefaultImageFilter",
              "kind": "field",
              "doc": "Inherited defaults resolved from the matched target in game.yaml (or the tool's defaults)."
            },
            {
              "name": "DefaultImageFormat",
              "anchor": "AssetImportInfo.DefaultImageFormat",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultImageMipmaps",
              "anchor": "AssetImportInfo.DefaultImageMipmaps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultImageSRGB",
              "anchor": "AssetImportInfo.DefaultImageSRGB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageWidth",
              "anchor": "AssetImportInfo.ImageWidth",
              "kind": "field",
              "doc": "ImageWidth and ImageHeight are the decoded source pixel dimensions when Kind is AssetImportImage (0 if unreadable)."
            },
            {
              "name": "ImageHeight",
              "anchor": "AssetImportInfo.ImageHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultAudioFormat",
              "anchor": "AssetImportInfo.DefaultAudioFormat",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultAudioRate",
              "anchor": "AssetImportInfo.DefaultAudioRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultAudioChannels",
              "anchor": "AssetImportInfo.DefaultAudioChannels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultAudioBitrate",
              "anchor": "AssetImportInfo.DefaultAudioBitrate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultAudioPeakDB",
              "anchor": "AssetImportInfo.DefaultAudioPeakDB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultAudioRMSDB",
              "anchor": "AssetImportInfo.DefaultAudioRMSDB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultFontSize",
              "anchor": "AssetImportInfo.DefaultFontSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultFontChars",
              "anchor": "AssetImportInfo.DefaultFontChars",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultFontPadding",
              "anchor": "AssetImportInfo.DefaultFontPadding",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultModelScale",
              "anchor": "AssetImportInfo.DefaultModelScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DefaultModelAnimations",
              "anchor": "AssetImportInfo.DefaultModelAnimations",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveAudioBitrate",
              "anchor": "AssetImportInfo.EffectiveAudioBitrate",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveAudioBitrate() (int, bool)",
              "doc": "EffectiveAudioBitrate returns the effective bitrate in kbps and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 267
            },
            {
              "name": "EffectiveAudioChannels",
              "anchor": "AssetImportInfo.EffectiveAudioChannels",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveAudioChannels() (int, bool)",
              "doc": "EffectiveAudioChannels returns the effective channel count (0 keeps source, 1 mono, 2 stereo) and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 259
            },
            {
              "name": "EffectiveAudioFormat",
              "anchor": "AssetImportInfo.EffectiveAudioFormat",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveAudioFormat() (string, bool)",
              "doc": "EffectiveAudioFormat returns the effective audio format and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 243
            },
            {
              "name": "EffectiveAudioLoop",
              "anchor": "AssetImportInfo.EffectiveAudioLoop",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveAudioLoop() (*importsettings.Loop, bool)",
              "doc": "EffectiveAudioLoop returns a copy of the sidecar's loop region (nil when unset) and whether it is set.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 294
            },
            {
              "name": "EffectiveAudioNormalization",
              "anchor": "AssetImportInfo.EffectiveAudioNormalization",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveAudioNormalization() (mode string, db float64, overridden bool)",
              "doc": "EffectiveAudioNormalization returns the active normalization mode (\"none\", \"peakDB\", or \"rmsDB\"), its dBFS level, and whether the sidecar overrides normalization.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 275
            },
            {
              "name": "EffectiveAudioRate",
              "anchor": "AssetImportInfo.EffectiveAudioRate",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveAudioRate() (int, bool)",
              "doc": "EffectiveAudioRate returns the effective sample rate in Hz (0 keeps source) and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 251
            },
            {
              "name": "EffectiveCellImagePivot",
              "anchor": "AssetImportInfo.EffectiveCellImagePivot",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveCellImagePivot(cell int) (pt importsettings.PivotPoint, overridden bool, inherited bool)",
              "doc": "EffectiveCellImagePivot returns the effective normalized pivot for 0-based cell, whether the cell has its own per-cell override in pivot.cells, and whether it inherits pivot.default.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 227
            },
            {
              "name": "EffectiveCredit",
              "anchor": "AssetImportInfo.EffectiveCredit",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveCredit() *importsettings.Credit",
              "doc": "EffectiveCredit returns a copy of the sidecar's credit section, or nil when unset.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 362
            },
            {
              "name": "EffectiveDefaultImagePivot",
              "anchor": "AssetImportInfo.EffectiveDefaultImagePivot",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveDefaultImagePivot() (importsettings.PivotPoint, bool)",
              "doc": "EffectiveDefaultImagePivot returns the effective default normalized pivot ([0, 0] when unset) and whether the sidecar explicitly sets it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 219
            },
            {
              "name": "EffectiveFontChars",
              "anchor": "AssetImportInfo.EffectiveFontChars",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveFontChars() (string, bool)",
              "doc": "EffectiveFontChars returns the effective character set and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 311
            },
            {
              "name": "EffectiveFontPadding",
              "anchor": "AssetImportInfo.EffectiveFontPadding",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveFontPadding() (int, bool)",
              "doc": "EffectiveFontPadding returns the effective glyph padding in pixels and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 319
            },
            {
              "name": "EffectiveFontSize",
              "anchor": "AssetImportInfo.EffectiveFontSize",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveFontSize() (int, bool)",
              "doc": "EffectiveFontSize returns the effective font pixel size and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 303
            },
            {
              "name": "EffectiveImageFilter",
              "anchor": "AssetImportInfo.EffectiveImageFilter",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveImageFilter() (string, bool)",
              "doc": "EffectiveImageFilter returns the effective sampling filter and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 169
            },
            {
              "name": "EffectiveImageFormat",
              "anchor": "AssetImportInfo.EffectiveImageFormat",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveImageFormat() (string, bool)",
              "doc": "EffectiveImageFormat returns the effective KTX2 texture format and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 177
            },
            {
              "name": "EffectiveImageMipmaps",
              "anchor": "AssetImportInfo.EffectiveImageMipmaps",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveImageMipmaps() (bool, bool)",
              "doc": "EffectiveImageMipmaps returns whether mipmaps are enabled and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 185
            },
            {
              "name": "EffectiveImagePivot",
              "anchor": "AssetImportInfo.EffectiveImagePivot",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveImagePivot() (*importsettings.Pivot, bool)",
              "doc": "EffectiveImagePivot returns a deep copy of the sidecar's pivot settings (nil when unset) and whether it is set.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 210
            },
            {
              "name": "EffectiveImageSRGB",
              "anchor": "AssetImportInfo.EffectiveImageSRGB",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveImageSRGB() (bool, bool)",
              "doc": "EffectiveImageSRGB returns whether sRGB is enabled and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 193
            },
            {
              "name": "EffectiveImageSlice",
              "anchor": "AssetImportInfo.EffectiveImageSlice",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveImageSlice() (*importsettings.Slice, bool)",
              "doc": "EffectiveImageSlice returns a copy of the sidecar's sprite-sheet slice grid (nil when unsliced) and whether it is set.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 201
            },
            {
              "name": "EffectiveModelAnimations",
              "anchor": "AssetImportInfo.EffectiveModelAnimations",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveModelAnimations() (bool, bool)",
              "doc": "EffectiveModelAnimations returns whether animations are kept and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 338
            },
            {
              "name": "EffectiveModelLODHysteresis",
              "anchor": "AssetImportInfo.EffectiveModelLODHysteresis",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveModelLODHysteresis() (float32, bool)",
              "doc": "EffectiveModelLODHysteresis returns the model LOD hysteresis deadband [0, 0.5] and whether the sidecar sets it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 354
            },
            {
              "name": "EffectiveModelLODs",
              "anchor": "AssetImportInfo.EffectiveModelLODs",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveModelLODs() ([]importsettings.ModelLOD, bool)",
              "doc": "EffectiveModelLODs returns a copy of the sidecar's declared model LOD levels and whether any are set.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 346
            },
            {
              "name": "EffectiveModelScale",
              "anchor": "AssetImportInfo.EffectiveModelScale",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) EffectiveModelScale() (float64, bool)",
              "doc": "EffectiveModelScale returns the effective model scale multiplier and whether the sidecar overrides it.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 327
            },
            {
              "name": "TargetSummary",
              "anchor": "AssetImportInfo.TargetSummary",
              "recv": "AssetImportInfo",
              "decl": "func (info AssetImportInfo) TargetSummary() string",
              "doc": "TargetSummary returns a short human-readable summary of the game.yaml target(s) reading this asset.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 145
            }
          ]
        },
        {
          "name": "AssetImportKind",
          "anchor": "AssetImportKind",
          "decl": "type AssetImportKind string",
          "doc": "AssetImportKind identifies which importsettings section applies to an asset file.\n",
          "file": "pkg/editor/asset_import.go",
          "line": 20,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AssetImportNone",
                  "anchor": "AssetImportNone"
                },
                {
                  "name": "AssetImportImage",
                  "anchor": "AssetImportImage"
                },
                {
                  "name": "AssetImportAudio",
                  "anchor": "AssetImportAudio"
                },
                {
                  "name": "AssetImportFont",
                  "anchor": "AssetImportFont"
                },
                {
                  "name": "AssetImportModel",
                  "anchor": "AssetImportModel"
                }
              ],
              "decl": "const (\n\t// AssetImportNone indicates that a file is not an importable asset (for example a scene, YAML file, directory, or sidecar).\n\tAssetImportNone AssetImportKind = \"\"\n\t// AssetImportImage identifies an image asset (.png, .jpg, .jpeg, .webp).\n\tAssetImportImage AssetImportKind = \"image\"\n\t// AssetImportAudio identifies a sound asset (.wav, .ogg, .mp3, .flac).\n\tAssetImportAudio AssetImportKind = \"audio\"\n\t// AssetImportFont identifies a font asset (.ttf, .otf).\n\tAssetImportFont AssetImportKind = \"font\"\n\t// AssetImportModel identifies a 3D model asset (.gltf, .glb).\n\tAssetImportModel AssetImportKind = \"model\"\n)",
              "doc": "",
              "file": "pkg/editor/asset_import.go",
              "line": 22
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "AssetImportKindFor",
              "anchor": "AssetImportKindFor",
              "decl": "func AssetImportKindFor(relPath string) AssetImportKind",
              "doc": "AssetImportKindFor classifies a project-relative file path by its extension, returning AssetImportNone for sidecars and non-asset files.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 36
            }
          ],
          "methods": []
        },
        {
          "name": "AssetPreviewBackground",
          "anchor": "AssetPreviewBackground",
          "decl": "type AssetPreviewBackground struct {\n\tID      string\n\tLabel   string\n\tColor   core.Color\n\tChecker bool\n}",
          "doc": "AssetPreviewBackground defines one selectable preview backdrop for image candidates (such as a level floor or checkerboard).\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 93,
          "members": [
            {
              "name": "ID",
              "anchor": "AssetPreviewBackground.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "AssetPreviewBackground.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "AssetPreviewBackground.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checker",
              "anchor": "AssetPreviewBackground.Checker",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetRefEntry",
          "anchor": "AssetRefEntry",
          "decl": "type AssetRefEntry struct {\n\tFile string\n\tWhat string\n\tLine int\n\tRef  refs.Ref\n}",
          "doc": "AssetRefEntry summarizes one incoming reference to an asset in the right panel's USED BY list.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 94,
          "members": [
            {
              "name": "File",
              "anchor": "AssetRefEntry.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "What",
              "anchor": "AssetRefEntry.What",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "AssetRefEntry.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ref",
              "anchor": "AssetRefEntry.Ref",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetReloader",
          "anchor": "AssetReloader",
          "decl": "type AssetReloader interface {\n\tReloadAssets(root string, changed []string) error\n}",
          "doc": "AssetReloader may optionally be implemented by a sceneformat.AssetResolver to reload\nbuilt atlases and textures after BuildAssets or ReimportAsset writes new outputs.\n",
          "file": "pkg/editor/asset_build.go",
          "line": 53,
          "members": [
            {
              "name": "ReloadAssets",
              "anchor": "AssetReloader.ReloadAssets",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetSortMode",
          "anchor": "AssetSortMode",
          "decl": "type AssetSortMode int",
          "doc": "AssetSortMode selects how cards in the asset drawer are sorted.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 84,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AssetSortRecent",
                  "anchor": "AssetSortRecent"
                },
                {
                  "name": "AssetSortName",
                  "anchor": "AssetSortName"
                }
              ],
              "decl": "const (\n\t// AssetSortRecent sorts by file modification time descending, breaking ties by path.\n\tAssetSortRecent AssetSortMode = iota\n\t// AssetSortName sorts alphabetically by display name, then path.\n\tAssetSortName\n)",
              "doc": "",
              "file": "pkg/editor/asset_drawer.go",
              "line": 86
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetStatusFilter",
          "anchor": "AssetStatusFilter",
          "decl": "type AssetStatusFilter string",
          "doc": "AssetStatusFilter selects an optional SHOW ONLY filter in the Assets left rail.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 73,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AssetFilterNone",
                  "anchor": "AssetFilterNone"
                },
                {
                  "name": "AssetFilterUnused",
                  "anchor": "AssetFilterUnused"
                },
                {
                  "name": "AssetFilterMissing",
                  "anchor": "AssetFilterMissing"
                },
                {
                  "name": "AssetFilterGenerated",
                  "anchor": "AssetFilterGenerated"
                },
                {
                  "name": "AssetFilterProposed",
                  "anchor": "AssetFilterProposed"
                }
              ],
              "decl": "const (\n\tAssetFilterNone      AssetStatusFilter = \"\"\n\tAssetFilterUnused    AssetStatusFilter = \"unused\"\n\tAssetFilterMissing   AssetStatusFilter = \"missing\"\n\tAssetFilterGenerated AssetStatusFilter = \"generated\"\n\tAssetFilterProposed  AssetStatusFilter = \"proposed\"\n)",
              "doc": "",
              "file": "pkg/editor/asset_drawer.go",
              "line": 75
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetStyleBrief",
          "anchor": "AssetStyleBrief",
          "decl": "type AssetStyleBrief struct {\n\t// Summary is the short style description shown in the inspector's STYLE AGAINST THE BRIEF section.\n\tSummary string\n\t// PixelGrid is the base pixel art grid size in pixels (for example 16); 0 disables grid checks.\n\tPixelGrid int\n\t// MaxColors is the maximum shading color count allowed before outline colors (for example 4); 0 disables palette checks.\n\tMaxColors int\n\t// OutlineColors is the number of extra outline colors allowed alongside MaxColors (default 1).\n\tOutlineColors int\n\t// MinContrast is the minimum WCAG luminance contrast ratio against the preview background (default 3.0).\n\tMinContrast float64\n\t// TargetLoudDB is the target RMS loudness in dBFS for generated sound effects (default -14.0).\n\tTargetLoudDB float64\n\t// MaxPeakDB is the maximum allowed peak amplitude in dBFS for generated sounds (default -0.5).\n\tMaxPeakDB float64\n\t// LoudnessTolDB is the allowed loudness deviation from TargetLoudDB or reference sound in dB (default 3.0).\n\tLoudnessTolDB float64\n\t// Backgrounds are the selectable preview backdrops shown in PREVIEW ON.\n\tBackgrounds []AssetPreviewBackground\n}",
          "doc": "AssetStyleBrief holds the art and audio rules read from brief.yaml (or defaults) used to check generated candidates.\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 101,
          "members": [
            {
              "name": "Summary",
              "anchor": "AssetStyleBrief.Summary",
              "kind": "field",
              "doc": "Summary is the short style description shown in the inspector's STYLE AGAINST THE BRIEF section."
            },
            {
              "name": "PixelGrid",
              "anchor": "AssetStyleBrief.PixelGrid",
              "kind": "field",
              "doc": "PixelGrid is the base pixel art grid size in pixels (for example 16); 0 disables grid checks."
            },
            {
              "name": "MaxColors",
              "anchor": "AssetStyleBrief.MaxColors",
              "kind": "field",
              "doc": "MaxColors is the maximum shading color count allowed before outline colors (for example 4); 0 disables palette checks."
            },
            {
              "name": "OutlineColors",
              "anchor": "AssetStyleBrief.OutlineColors",
              "kind": "field",
              "doc": "OutlineColors is the number of extra outline colors allowed alongside MaxColors (default 1)."
            },
            {
              "name": "MinContrast",
              "anchor": "AssetStyleBrief.MinContrast",
              "kind": "field",
              "doc": "MinContrast is the minimum WCAG luminance contrast ratio against the preview background (default 3.0)."
            },
            {
              "name": "TargetLoudDB",
              "anchor": "AssetStyleBrief.TargetLoudDB",
              "kind": "field",
              "doc": "TargetLoudDB is the target RMS loudness in dBFS for generated sound effects (default -14.0)."
            },
            {
              "name": "MaxPeakDB",
              "anchor": "AssetStyleBrief.MaxPeakDB",
              "kind": "field",
              "doc": "MaxPeakDB is the maximum allowed peak amplitude in dBFS for generated sounds (default -0.5)."
            },
            {
              "name": "LoudnessTolDB",
              "anchor": "AssetStyleBrief.LoudnessTolDB",
              "kind": "field",
              "doc": "LoudnessTolDB is the allowed loudness deviation from TargetLoudDB or reference sound in dB (default 3.0)."
            },
            {
              "name": "Backgrounds",
              "anchor": "AssetStyleBrief.Backgrounds",
              "kind": "field",
              "doc": "Backgrounds are the selectable preview backdrops shown in PREVIEW ON."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultAssetStyleBrief",
              "anchor": "DefaultAssetStyleBrief",
              "decl": "func DefaultAssetStyleBrief() AssetStyleBrief",
              "doc": "DefaultAssetStyleBrief returns default art and audio brief checks matching a 16 px pixel-art game.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 123
            }
          ],
          "methods": []
        },
        {
          "name": "AssetStyleCheck",
          "anchor": "AssetStyleCheck",
          "decl": "type AssetStyleCheck struct {\n\tPass    bool\n\tTitle   string\n\tSummary string\n\tDetail  string\n}",
          "doc": "AssetStyleCheck is one pass/fail style verification result shown on a candidate card and inspector.\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 142,
          "members": [
            {
              "name": "Pass",
              "anchor": "AssetStyleCheck.Pass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "AssetStyleCheck.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "AssetStyleCheck.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "AssetStyleCheck.Detail",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetsBuildOptions",
          "anchor": "AssetsBuildOptions",
          "decl": "type AssetsBuildOptions struct {\n\t// Force passes -force to `game assets`, rebuilding every target even when the cache says it is up to date.\n\tForce bool\n}",
          "doc": "AssetsBuildOptions configures one `go tool game assets` run started by BuildAssetsWith.\n",
          "file": "pkg/editor/asset_build.go",
          "line": 32,
          "members": [
            {
              "name": "Force",
              "anchor": "AssetsBuildOptions.Force",
              "kind": "field",
              "doc": "Force passes -force to `game assets`, rebuilding every target even when the cache says it is up to date."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetsBuildSpec",
          "anchor": "AssetsBuildSpec",
          "decl": "type AssetsBuildSpec struct {\n\t// Dir is the open project's root directory where the command executes.\n\tDir string\n\t// Name is the executable to run (\"go\").\n\tName string\n\t// Args are the command arguments (for example [\"tool\", \"game\", \"assets\"]).\n\tArgs []string\n\t// Asset is the project-relative path being reimported when launched by ReimportAsset, or empty for BuildAssets.\n\tAsset string\n\t// Force reports whether -force was requested.\n\tForce bool\n}",
          "doc": "AssetsBuildSpec describes one `go tool game assets` command executed by BuildAssets or ReimportAsset.\n",
          "file": "pkg/editor/asset_build.go",
          "line": 38,
          "members": [
            {
              "name": "Dir",
              "anchor": "AssetsBuildSpec.Dir",
              "kind": "field",
              "doc": "Dir is the open project's root directory where the command executes."
            },
            {
              "name": "Name",
              "anchor": "AssetsBuildSpec.Name",
              "kind": "field",
              "doc": "Name is the executable to run (\"go\")."
            },
            {
              "name": "Args",
              "anchor": "AssetsBuildSpec.Args",
              "kind": "field",
              "doc": "Args are the command arguments (for example [\"tool\", \"game\", \"assets\"])."
            },
            {
              "name": "Asset",
              "anchor": "AssetsBuildSpec.Asset",
              "kind": "field",
              "doc": "Asset is the project-relative path being reimported when launched by ReimportAsset, or empty for BuildAssets."
            },
            {
              "name": "Force",
              "anchor": "AssetsBuildSpec.Force",
              "kind": "field",
              "doc": "Force reports whether -force was requested."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AtlasLister",
          "anchor": "AtlasLister",
          "decl": "type AtlasLister interface {\n\tAtlasNames() []string\n}",
          "doc": "AtlasLister may optionally be implemented by a sceneformat.AssetResolver to advertise available atlas names to the Asset Browser, as project.Resolver does. sceneformat.AtlasMap is supported automatically.\n",
          "file": "pkg/editor/browser.go",
          "line": 15,
          "members": [
            {
              "name": "AtlasNames",
              "anchor": "AtlasLister.AtlasNames",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AudioChangeInfo",
          "anchor": "AudioChangeInfo",
          "decl": "type AudioChangeInfo struct {\n\tSizeBytes  int64         `json:\"sizeBytes\"`\n\tFormat     string        `json:\"format\"`\n\tSampleRate int           `json:\"sampleRate,omitempty\"`\n\tChannels   int           `json:\"channels,omitempty\"`\n\tDuration   time.Duration `json:\"duration,omitempty\"`\n\tWaveform   []float32     `json:\"waveform,omitempty\"`\n\tUsedBy     []string      `json:\"usedBy,omitempty\"`\n}",
          "doc": "AudioChangeInfo holds audition metadata, waveform bars, and incoming project references for a changed audio file.\n",
          "file": "pkg/editor/changes.go",
          "line": 123,
          "members": [
            {
              "name": "SizeBytes",
              "anchor": "AudioChangeInfo.SizeBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Format",
              "anchor": "AudioChangeInfo.Format",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SampleRate",
              "anchor": "AudioChangeInfo.SampleRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Channels",
              "anchor": "AudioChangeInfo.Channels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "AudioChangeInfo.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Waveform",
              "anchor": "AudioChangeInfo.Waveform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UsedBy",
              "anchor": "AudioChangeInfo.UsedBy",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AudioEffectKind",
          "anchor": "AudioEffectKind",
          "decl": "type AudioEffectKind string",
          "doc": "AudioEffectKind identifies one DSP effect type supported by project.Effect in game.yaml.\n",
          "file": "pkg/editor/audio_mixer_panel.go",
          "line": 24,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AudioEffectLowPass",
                  "anchor": "AudioEffectLowPass"
                },
                {
                  "name": "AudioEffectHighPass",
                  "anchor": "AudioEffectHighPass"
                },
                {
                  "name": "AudioEffectDelay",
                  "anchor": "AudioEffectDelay"
                },
                {
                  "name": "AudioEffectReverb",
                  "anchor": "AudioEffectReverb"
                },
                {
                  "name": "AudioEffectGain",
                  "anchor": "AudioEffectGain"
                },
                {
                  "name": "AudioEffectBitcrush",
                  "anchor": "AudioEffectBitcrush"
                }
              ],
              "decl": "const (\n\tAudioEffectLowPass  AudioEffectKind = \"lowPass\"\n\tAudioEffectHighPass AudioEffectKind = \"highPass\"\n\tAudioEffectDelay    AudioEffectKind = \"delay\"\n\tAudioEffectReverb   AudioEffectKind = \"reverb\"\n\tAudioEffectGain     AudioEffectKind = \"gain\"\n\tAudioEffectBitcrush AudioEffectKind = \"bitcrush\"\n)",
              "doc": "",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 26
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "AudioEffectKindOf",
              "anchor": "AudioEffectKindOf",
              "decl": "func AudioEffectKindOf(fx project.Effect) AudioEffectKind",
              "doc": "AudioEffectKindOf returns the AudioEffectKind configured on fx, or empty when none or more than one is set.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 86
            }
          ],
          "methods": [
            {
              "name": "Label",
              "anchor": "AudioEffectKind.Label",
              "recv": "AudioEffectKind",
              "decl": "func (k AudioEffectKind) Label() string",
              "doc": "Label returns a human-readable display name for kind.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 46
            }
          ]
        },
        {
          "name": "AutomationCheckpoint",
          "anchor": "AutomationCheckpoint",
          "decl": "type AutomationCheckpoint struct {\n\tID           string\n\tAutomationID string\n\tTrigger      string\n\tLabel        string\n\tCreatedAt    time.Time\n\tDir          string\n\tFiles        map[string][]byte\n}",
          "doc": "AutomationCheckpoint records a pre-run snapshot captured before an automation task starts.\nWhen a project directory exists, snapshots are also written under .nsgo/checkpoints/<ID>/ (ignored by git).\n",
          "file": "pkg/editor/automations.go",
          "line": 65,
          "members": [
            {
              "name": "ID",
              "anchor": "AutomationCheckpoint.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AutomationID",
              "anchor": "AutomationCheckpoint.AutomationID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Trigger",
              "anchor": "AutomationCheckpoint.Trigger",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "AutomationCheckpoint.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CreatedAt",
              "anchor": "AutomationCheckpoint.CreatedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dir",
              "anchor": "AutomationCheckpoint.Dir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "AutomationCheckpoint.Files",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AutomationDraft",
          "anchor": "AutomationDraft",
          "decl": "type AutomationDraft struct {\n\tWords string\n\tRule  AutomationRule\n\tYAML  string\n}",
          "doc": "AutomationDraft holds a candidate AutomationRule drafted from natural language (\"+ New automation, in words\")\nwaiting for the author to keep or discard.\n",
          "file": "pkg/editor/automations.go",
          "line": 77,
          "members": [
            {
              "name": "Words",
              "anchor": "AutomationDraft.Words",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rule",
              "anchor": "AutomationDraft.Rule",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAML",
              "anchor": "AutomationDraft.YAML",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AutomationFileKind",
          "anchor": "AutomationFileKind",
          "decl": "type AutomationFileKind string",
          "doc": "AutomationFileKind classifies a newly added project file for file_added triggers.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 78,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AutomationFileKindPrefab",
                  "anchor": "AutomationFileKindPrefab"
                },
                {
                  "name": "AutomationFileKindScene",
                  "anchor": "AutomationFileKindScene"
                },
                {
                  "name": "AutomationFileKindTileset",
                  "anchor": "AutomationFileKindTileset"
                },
                {
                  "name": "AutomationFileKindCutscene",
                  "anchor": "AutomationFileKindCutscene"
                },
                {
                  "name": "AutomationFileKindMaterial",
                  "anchor": "AutomationFileKindMaterial"
                },
                {
                  "name": "AutomationFileKindParticles",
                  "anchor": "AutomationFileKindParticles"
                },
                {
                  "name": "AutomationFileKindRig",
                  "anchor": "AutomationFileKindRig"
                },
                {
                  "name": "AutomationFileKindScreen",
                  "anchor": "AutomationFileKindScreen"
                },
                {
                  "name": "AutomationFileKindDataTable",
                  "anchor": "AutomationFileKindDataTable"
                },
                {
                  "name": "AutomationFileKindScript",
                  "anchor": "AutomationFileKindScript"
                },
                {
                  "name": "AutomationFileKindAsset",
                  "anchor": "AutomationFileKindAsset"
                },
                {
                  "name": "AutomationFileKindAny",
                  "anchor": "AutomationFileKindAny"
                }
              ],
              "decl": "const (\n\tAutomationFileKindPrefab    AutomationFileKind = \"prefab\"\n\tAutomationFileKindScene     AutomationFileKind = \"scene\"\n\tAutomationFileKindTileset   AutomationFileKind = \"tileset\"\n\tAutomationFileKindCutscene  AutomationFileKind = \"cutscene\"\n\tAutomationFileKindMaterial  AutomationFileKind = \"material\"\n\tAutomationFileKindParticles AutomationFileKind = \"particles\"\n\tAutomationFileKindRig       AutomationFileKind = \"rig\"\n\tAutomationFileKindScreen    AutomationFileKind = \"screen\"\n\tAutomationFileKindDataTable AutomationFileKind = \"datatable\"\n\tAutomationFileKindScript    AutomationFileKind = \"script\"\n\tAutomationFileKindAsset     AutomationFileKind = \"asset\"\n\tAutomationFileKindAny       AutomationFileKind = \"any\"\n)",
              "doc": "",
              "file": "pkg/editor/automations_format.go",
              "line": 80
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ClassifyAutomationFileKind",
              "anchor": "ClassifyAutomationFileKind",
              "decl": "func ClassifyAutomationFileKind(relPath string) AutomationFileKind",
              "doc": "ClassifyAutomationFileKind infers the AutomationFileKind of a project-relative slash-separated file path.\n",
              "file": "pkg/editor/automations_format.go",
              "line": 658
            }
          ],
          "methods": [
            {
              "name": "Valid",
              "anchor": "AutomationFileKind.Valid",
              "recv": "AutomationFileKind",
              "decl": "func (k AutomationFileKind) Valid() bool",
              "doc": "Valid reports whether k is a recognized file kind for file_added triggers.\n",
              "file": "pkg/editor/automations_format.go",
              "line": 96
            }
          ]
        },
        {
          "name": "AutomationRule",
          "anchor": "AutomationRule",
          "decl": "type AutomationRule struct {\n\t// ID uniquely identifies the automation inside automations.yaml (lowercase letters, digits, hyphens, or underscores).\n\tID string `yaml:\"id\" schema:\"required\"`\n\t// Name is the short human-readable WHEN summary shown in Settings › Automations. When omitted, the editor derives one from Trigger.\n\tName string `yaml:\"name,omitempty\"`\n\t// Enabled controls whether the automation is active.\n\tEnabled bool `yaml:\"enabled\"`\n\t// Trigger defines the event that starts the automation.\n\tTrigger AutomationTrigger `yaml:\"trigger\" schema:\"required\"`\n\t// Instruction is the work the agent performs when Trigger fires; its result always lands in Ready to review.\n\tInstruction string `yaml:\"instruction\" schema:\"required\"`\n}",
          "doc": "AutomationRule defines one WHEN -> THE AGENT automation entry in automations.yaml.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 131,
          "members": [
            {
              "name": "ID",
              "anchor": "AutomationRule.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the automation inside automations.yaml (lowercase letters, digits, hyphens, or underscores)."
            },
            {
              "name": "Name",
              "anchor": "AutomationRule.Name",
              "kind": "field",
              "doc": "Name is the short human-readable WHEN summary shown in Settings › Automations. When omitted, the editor derives one from Trigger."
            },
            {
              "name": "Enabled",
              "anchor": "AutomationRule.Enabled",
              "kind": "field",
              "doc": "Enabled controls whether the automation is active."
            },
            {
              "name": "Trigger",
              "anchor": "AutomationRule.Trigger",
              "kind": "field",
              "doc": "Trigger defines the event that starts the automation."
            },
            {
              "name": "Instruction",
              "anchor": "AutomationRule.Instruction",
              "kind": "field",
              "doc": "Instruction is the work the agent performs when Trigger fires; its result always lands in Ready to review."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "AutomationRule.DisplayName",
              "recv": "AutomationRule",
              "decl": "func (r AutomationRule) DisplayName() string",
              "doc": "DisplayName returns the human-readable WHEN summary for r, deriving one from r.Trigger when Name is empty.\n",
              "file": "pkg/editor/automations_format.go",
              "line": 580
            }
          ]
        },
        {
          "name": "AutomationTrigger",
          "anchor": "AutomationTrigger",
          "decl": "type AutomationTrigger struct {\n\t// Event selects the trigger event (\"file_changed\", \"review_kept\", \"file_added\", \"before_export\", or \"daily\").\n\tEvent AutomationTriggerKind `yaml:\"event\" schema:\"required,enum=file_changed|review_kept|file_added|before_export|daily\"`\n\t// Glob matches slash-separated project-relative file paths using *, **, and ?. Required for file_changed and optional for review_kept and file_added.\n\tGlob string `yaml:\"glob,omitempty\"`\n\t// Kind selects the kind of added file for file_added triggers (\"prefab\", \"scene\", \"tileset\", \"cutscene\", \"material\", \"particles\", \"rig\", \"screen\", \"datatable\", \"script\", \"asset\", or \"any\").\n\tKind AutomationFileKind `yaml:\"kind,omitempty\" schema:\"enum=prefab|scene|tileset|cutscene|material|particles|rig|screen|datatable|script|asset|any\"`\n\t// Platform optionally restricts before_export triggers to a target platform such as \"ios\", \"android\", \"web\", \"macos\", \"windows\", or \"linux\".\n\tPlatform string `yaml:\"platform,omitempty\"`\n\t// Time is the 24-hour local clock time (\"HH:MM\") when a daily trigger runs while the editor is open.\n\tTime string `yaml:\"time,omitempty\"`\n}",
          "doc": "AutomationTrigger describes when an automation starts.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 117,
          "members": [
            {
              "name": "Event",
              "anchor": "AutomationTrigger.Event",
              "kind": "field",
              "doc": "Event selects the trigger event (\"file_changed\", \"review_kept\", \"file_added\", \"before_export\", or \"daily\")."
            },
            {
              "name": "Glob",
              "anchor": "AutomationTrigger.Glob",
              "kind": "field",
              "doc": "Glob matches slash-separated project-relative file paths using *, **, and ?. Required for file_changed and optional for review_kept and file_added."
            },
            {
              "name": "Kind",
              "anchor": "AutomationTrigger.Kind",
              "kind": "field",
              "doc": "Kind selects the kind of added file for file_added triggers (\"prefab\", \"scene\", \"tileset\", \"cutscene\", \"material\", \"particles\", \"rig\", \"screen\", \"datatable\", \"script\", \"asset\", or \"any\")."
            },
            {
              "name": "Platform",
              "anchor": "AutomationTrigger.Platform",
              "kind": "field",
              "doc": "Platform optionally restricts before_export triggers to a target platform such as \"ios\", \"android\", \"web\", \"macos\", \"windows\", or \"linux\"."
            },
            {
              "name": "Time",
              "anchor": "AutomationTrigger.Time",
              "kind": "field",
              "doc": "Time is the 24-hour local clock time (\"HH:MM\") when a daily trigger runs while the editor is open."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Summary",
              "anchor": "AutomationTrigger.Summary",
              "recv": "AutomationTrigger",
              "decl": "func (t AutomationTrigger) Summary() string",
              "doc": "Summary returns a concise human-readable WHEN description for t.\n",
              "file": "pkg/editor/automations_format.go",
              "line": 588
            }
          ]
        },
        {
          "name": "AutomationTriggerKind",
          "anchor": "AutomationTriggerKind",
          "decl": "type AutomationTriggerKind string",
          "doc": "AutomationTriggerKind selects the event that starts an automation.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 48,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AutomationTriggerFileChanged",
                  "anchor": "AutomationTriggerFileChanged"
                },
                {
                  "name": "AutomationTriggerReviewKept",
                  "anchor": "AutomationTriggerReviewKept"
                },
                {
                  "name": "AutomationTriggerFileAdded",
                  "anchor": "AutomationTriggerFileAdded"
                },
                {
                  "name": "AutomationTriggerBeforeExport",
                  "anchor": "AutomationTriggerBeforeExport"
                },
                {
                  "name": "AutomationTriggerDaily",
                  "anchor": "AutomationTriggerDaily"
                }
              ],
              "decl": "const (\n\t// AutomationTriggerFileChanged fires when a project file matching Trigger.Glob is saved or changes on disk.\n\tAutomationTriggerFileChanged AutomationTriggerKind = \"file_changed\"\n\t// AutomationTriggerReviewKept fires when the author keeps an edit review (optionally filtered by Trigger.Glob).\n\tAutomationTriggerReviewKept AutomationTriggerKind = \"review_kept\"\n\t// AutomationTriggerFileAdded fires when a new project file of Trigger.Kind is created or appears on disk.\n\tAutomationTriggerFileAdded AutomationTriggerKind = \"file_added\"\n\t// AutomationTriggerBeforeExport fires before an export or release build starts (optionally filtered by Trigger.Platform).\n\tAutomationTriggerBeforeExport AutomationTriggerKind = \"before_export\"\n\t// AutomationTriggerDaily fires once per calendar day at or after Trigger.Time (\"HH:MM\") while the editor is open.\n\tAutomationTriggerDaily AutomationTriggerKind = \"daily\"\n)",
              "doc": "",
              "file": "pkg/editor/automations_format.go",
              "line": 50
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "AutomationTriggerKind.Valid",
              "recv": "AutomationTriggerKind",
              "decl": "func (k AutomationTriggerKind) Valid() bool",
              "doc": "Valid reports whether k is a recognized automation trigger kind.\n",
              "file": "pkg/editor/automations_format.go",
              "line": 64
            }
          ]
        },
        {
          "name": "AutomationsFile",
          "anchor": "AutomationsFile",
          "decl": "type AutomationsFile struct {\n\t// Version is the schema version; it must equal AutomationsVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Automations lists the project's configured automations in display order.\n\tAutomations []AutomationRule `yaml:\"automations,omitempty\"`\n}",
          "doc": "AutomationsFile holds a project's shared agent automations in versioned YAML (automations.yaml beside game.yaml).\nA file looks like this:\n\n\t# yaml-language-server: $schema=https://game.nsgo.dev/schemas/automations.v1.json\n\tversion: 1\n\tautomations:\n\t  - id: level-check\n\t    name: A level file changes\n\t    enabled: true\n\t    trigger:\n\t      event: file_changed\n\t      glob: scenes/level_*.scene.yaml\n\t    instruction: runs game check and 5 playtests, reports only problems\n\nParseAutomations decodes it strictly and EncodeAutomations writes it back in canonical form, so a file EncodeAutomations wrote survives a load and save byte for byte.\n",
          "file": "pkg/editor/automations_format.go",
          "line": 159,
          "members": [
            {
              "name": "Version",
              "anchor": "AutomationsFile.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal AutomationsVersion (1)."
            },
            {
              "name": "Automations",
              "anchor": "AutomationsFile.Automations",
              "kind": "field",
              "doc": "Automations lists the project's configured automations in display order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultAutomations",
              "anchor": "DefaultAutomations",
              "decl": "func DefaultAutomations() *AutomationsFile",
              "doc": "DefaultAutomations returns the five starter automations shown in docs/design/editor/Settings.dc.html.\n",
              "file": "pkg/editor/automations_format.go",
              "line": 167
            },
            {
              "name": "LoadAutomationsFile",
              "anchor": "LoadAutomationsFile",
              "decl": "func LoadAutomationsFile(filePath string) (*AutomationsFile, error)",
              "doc": "LoadAutomationsFile reads and parses automations.yaml at path.\nWhen the file does not exist, it returns (nil, fs.ErrNotExist) so callers can decide whether to fall back to defaults.\n",
              "file": "pkg/editor/automations_format.go",
              "line": 544
            },
            {
              "name": "ParseAutomations",
              "anchor": "ParseAutomations",
              "decl": "func ParseAutomations(data []byte) (*AutomationsFile, error)",
              "doc": "ParseAutomations decodes and validates a versioned YAML automations document.\nUnknown fields, trailing YAML documents, YAML anchors/aliases/merge keys, duplicate keys, missing or unsupported versions, duplicate IDs, and invalid trigger configurations are refused.\n\nErrors are *loaderr.Error values carrying the line, column, field path, and fix; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/editor/automations_format.go",
              "line": 233
            }
          ],
          "methods": []
        },
        {
          "name": "BlockedPermissionStep",
          "anchor": "BlockedPermissionStep",
          "decl": "type BlockedPermissionStep struct {\n\tID         string               `json:\"id\"`\n\tSummary    string               `json:\"summary\"`\n\tCommand    string               `json:\"command,omitempty\"`\n\tEvaluation PermissionEvaluation `json:\"evaluation\"`\n}",
          "doc": "BlockedPermissionStep records an MCP tool call stopped by a Deny rule so the editor can show the blocked step and link directly to its rule in Settings › Permissions.\n",
          "file": "pkg/editor/permissions.go",
          "line": 1042,
          "members": [
            {
              "name": "ID",
              "anchor": "BlockedPermissionStep.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "BlockedPermissionStep.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Command",
              "anchor": "BlockedPermissionStep.Command",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Evaluation",
              "anchor": "BlockedPermissionStep.Evaluation",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BriefPinDiffLine",
          "anchor": "BriefPinDiffLine",
          "decl": "type BriefPinDiffLine struct {\n\tSign    string\n\tText    string\n\tAdded   bool\n\tRemoved bool\n}",
          "doc": "BriefPinDiffLine is one formatted line in the Pin to brief confirmation card's YAML diff.\n",
          "file": "pkg/editor/agent_references.go",
          "line": 137,
          "members": [
            {
              "name": "Sign",
              "anchor": "BriefPinDiffLine.Sign",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "BriefPinDiffLine.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Added",
              "anchor": "BriefPinDiffLine.Added",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "BriefPinDiffLine.Removed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BriefPinNotice",
          "anchor": "BriefPinNotice",
          "decl": "type BriefPinNotice struct {\n\tImageID string\n\tName    string\n\tRelPath string\n\tNote    string\n\tDiff    []BriefPinDiffLine\n}",
          "doc": "BriefPinNotice describes the most recent Pin to brief action shown in the composer confirmation card with Undo.\n",
          "file": "pkg/editor/agent_references.go",
          "line": 145,
          "members": [
            {
              "name": "ImageID",
              "anchor": "BriefPinNotice.ImageID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "BriefPinNotice.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RelPath",
              "anchor": "BriefPinNotice.RelPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "BriefPinNotice.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Diff",
              "anchor": "BriefPinNotice.Diff",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BriefReference",
          "anchor": "BriefReference",
          "decl": "type BriefReference struct {\n\t// Path is the project-relative slash path to the reference image (for example \"art/reference/spikes_ref.png\").\n\tPath string\n\t// Note is an optional short description for the agent.\n\tNote string\n}",
          "doc": "BriefReference is one entry listed under art.references in brief.yaml.\n",
          "file": "pkg/editor/agent_references.go",
          "line": 129,
          "members": [
            {
              "name": "Path",
              "anchor": "BriefReference.Path",
              "kind": "field",
              "doc": "Path is the project-relative slash path to the reference image (for example \"art/reference/spikes_ref.png\")."
            },
            {
              "name": "Note",
              "anchor": "BriefReference.Note",
              "kind": "field",
              "doc": "Note is an optional short description for the agent."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildArtifactResult",
          "anchor": "BuildArtifactResult",
          "decl": "type BuildArtifactResult struct {\n\tArtifactPath         string             `json:\"artifactPath\"`\n\tArtifactName         string             `json:\"artifactName\"`\n\tSizeBytes            int64              `json:\"sizeBytes\"`\n\tDeltaBytes           int64              `json:\"deltaBytes\"`\n\tHasLastRelease       bool               `json:\"hasLastRelease\"`\n\tBreakdown            BuildSizeBreakdown `json:\"breakdown\"`\n\tFrameTimeP95Ms       float64            `json:\"frameTimeP95Ms\"`\n\tDownloadBudgetMet    bool               `json:\"downloadBudgetMet\"`\n\tFrameTimeBudgetMet   bool               `json:\"frameTimeBudgetMet\"`\n\tSmokePlaytestWhere   string             `json:\"smokePlaytestWhere,omitempty\"`\n\tSmokePlaytestSummary string             `json:\"smokePlaytestSummary,omitempty\"`\n\tTestURL              string             `json:\"testUrl,omitempty\"`\n\tWebBuildDir          string             `json:\"webBuildDir,omitempty\"`\n}",
          "doc": "BuildArtifactResult holds the finished artifact path, size delta against the last release,\ncategory breakdown, budget outcomes, smoke playtest summary, and optional local test URL.\n",
          "file": "pkg/editor/build_release.go",
          "line": 173,
          "members": [
            {
              "name": "ArtifactPath",
              "anchor": "BuildArtifactResult.ArtifactPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ArtifactName",
              "anchor": "BuildArtifactResult.ArtifactName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeBytes",
              "anchor": "BuildArtifactResult.SizeBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaBytes",
              "anchor": "BuildArtifactResult.DeltaBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasLastRelease",
              "anchor": "BuildArtifactResult.HasLastRelease",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Breakdown",
              "anchor": "BuildArtifactResult.Breakdown",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameTimeP95Ms",
              "anchor": "BuildArtifactResult.FrameTimeP95Ms",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DownloadBudgetMet",
              "anchor": "BuildArtifactResult.DownloadBudgetMet",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameTimeBudgetMet",
              "anchor": "BuildArtifactResult.FrameTimeBudgetMet",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SmokePlaytestWhere",
              "anchor": "BuildArtifactResult.SmokePlaytestWhere",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SmokePlaytestSummary",
              "anchor": "BuildArtifactResult.SmokePlaytestSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestURL",
              "anchor": "BuildArtifactResult.TestURL",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WebBuildDir",
              "anchor": "BuildArtifactResult.WebBuildDir",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildDeviceEntry",
          "anchor": "BuildDeviceEntry",
          "decl": "type BuildDeviceEntry struct {\n\tID         string           `json:\"id\"`\n\tName       string           `json:\"name\"`\n\tKind       string           `json:\"kind,omitempty\"`\n\tSerial     string           `json:\"serial,omitempty\"`\n\tState      BuildDeviceState `json:\"state,omitempty\"`\n\tNote       string           `json:\"note\"`\n\tAvailable  bool             `json:\"available\"`\n\tActionable bool             `json:\"actionable\"`\n}",
          "doc": "BuildDeviceEntry describes one selectable run-on-device target on the finished build view.\n",
          "file": "pkg/editor/build_release.go",
          "line": 216,
          "members": [
            {
              "name": "ID",
              "anchor": "BuildDeviceEntry.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "BuildDeviceEntry.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "BuildDeviceEntry.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Serial",
              "anchor": "BuildDeviceEntry.Serial",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "BuildDeviceEntry.State",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "BuildDeviceEntry.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Available",
              "anchor": "BuildDeviceEntry.Available",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actionable",
              "anchor": "BuildDeviceEntry.Actionable",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildDeviceState",
          "anchor": "BuildDeviceState",
          "decl": "type BuildDeviceState string",
          "doc": "BuildDeviceState reports the live readiness or execution state of a RUN ON DEVICE target.\n",
          "file": "pkg/editor/build_device.go",
          "line": 47,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BuildDeviceReady",
                  "anchor": "BuildDeviceReady"
                },
                {
                  "name": "BuildDeviceServing",
                  "anchor": "BuildDeviceServing"
                },
                {
                  "name": "BuildDeviceConnected",
                  "anchor": "BuildDeviceConnected"
                },
                {
                  "name": "BuildDeviceStopped",
                  "anchor": "BuildDeviceStopped"
                },
                {
                  "name": "BuildDeviceInstalling",
                  "anchor": "BuildDeviceInstalling"
                },
                {
                  "name": "BuildDeviceRunning",
                  "anchor": "BuildDeviceRunning"
                },
                {
                  "name": "BuildDeviceDisconnected",
                  "anchor": "BuildDeviceDisconnected"
                },
                {
                  "name": "BuildDeviceUnavailable",
                  "anchor": "BuildDeviceUnavailable"
                },
                {
                  "name": "BuildDeviceFailed",
                  "anchor": "BuildDeviceFailed"
                }
              ],
              "decl": "const (\n\tBuildDeviceReady        BuildDeviceState = \"ready\"\n\tBuildDeviceServing      BuildDeviceState = \"serving\"\n\tBuildDeviceConnected    BuildDeviceState = \"connected\"\n\tBuildDeviceStopped      BuildDeviceState = \"stopped\"\n\tBuildDeviceInstalling   BuildDeviceState = \"installing\"\n\tBuildDeviceRunning      BuildDeviceState = \"running\"\n\tBuildDeviceDisconnected BuildDeviceState = \"disconnected\"\n\tBuildDeviceUnavailable  BuildDeviceState = \"unavailable\"\n\tBuildDeviceFailed       BuildDeviceState = \"failed\"\n)",
              "doc": "",
              "file": "pkg/editor/build_device.go",
              "line": 49
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildDiffLine",
          "anchor": "BuildDiffLine",
          "decl": "type BuildDiffLine struct {\n\tLineNumber int    `json:\"lineNumber,omitempty\"`\n\tKind       string `json:\"kind\"` // \"context\", \"remove\", \"add\"\n\tText       string `json:\"text\"`\n}",
          "doc": "BuildDiffLine is one line in an agent-proposed preset fix diff.\n",
          "file": "pkg/editor/build_release.go",
          "line": 120,
          "members": [
            {
              "name": "LineNumber",
              "anchor": "BuildDiffLine.LineNumber",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "BuildDiffLine.Kind",
              "kind": "field",
              "doc": "\"context\", \"remove\", \"add\""
            },
            {
              "name": "Text",
              "anchor": "BuildDiffLine.Text",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildFailureInfo",
          "anchor": "BuildFailureInfo",
          "decl": "type BuildFailureInfo struct {\n\tHeadline    string                  `json:\"headline\"`\n\tStepID      BuildStepID             `json:\"stepId\"`\n\tStepIndex   int                     `json:\"stepIndex\"`\n\tTotalSteps  int                     `json:\"totalSteps\"`\n\tStepLabel   string                  `json:\"stepLabel\"`\n\tElapsed     time.Duration           `json:\"elapsed\"`\n\tCommands    []string                `json:\"commands\"`\n\tErrorLine   string                  `json:\"errorLine\"`\n\tExitLine    string                  `json:\"exitLine\"`\n\tNotice      string                  `json:\"notice\"`\n\tFixProposal *BuildPresetFixProposal `json:\"fixProposal,omitempty\"`\n}",
          "doc": "BuildFailureInfo captures structured details of a failed preset step.\n",
          "file": "pkg/editor/build_release.go",
          "line": 140,
          "members": [
            {
              "name": "Headline",
              "anchor": "BuildFailureInfo.Headline",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepID",
              "anchor": "BuildFailureInfo.StepID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepIndex",
              "anchor": "BuildFailureInfo.StepIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalSteps",
              "anchor": "BuildFailureInfo.TotalSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepLabel",
              "anchor": "BuildFailureInfo.StepLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Elapsed",
              "anchor": "BuildFailureInfo.Elapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Commands",
              "anchor": "BuildFailureInfo.Commands",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ErrorLine",
              "anchor": "BuildFailureInfo.ErrorLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ExitLine",
              "anchor": "BuildFailureInfo.ExitLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Notice",
              "anchor": "BuildFailureInfo.Notice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FixProposal",
              "anchor": "BuildFailureInfo.FixProposal",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildPreflightSummary",
          "anchor": "BuildPreflightSummary",
          "decl": "type BuildPreflightSummary struct {\n\tCheckRan             bool          `json:\"checkRan\"`\n\tCheckProblems        int           `json:\"checkProblems\"`\n\tCheckElapsed         time.Duration `json:\"checkElapsed\"`\n\tCheckErr             string        `json:\"checkErr,omitempty\"`\n\tSmokeSummary         string        `json:\"smokeSummary\"`\n\tQualityProfile       string        `json:\"qualityProfile\"`\n\tDownloadSizeBudgetMB float64       `json:\"downloadSizeBudgetMB\"`\n\tFrameTimeP95BudgetMs float64       `json:\"frameTimeP95BudgetMs\"`\n\tBudgetsFromProject   bool          `json:\"budgetsFromProject\"`\n}",
          "doc": "BuildPreflightSummary holds the BEFORE EVERY BUILD cards: nsgo check, smoke playtest, and budgets from game.yaml.\n",
          "file": "pkg/editor/build_release.go",
          "line": 203,
          "members": [
            {
              "name": "CheckRan",
              "anchor": "BuildPreflightSummary.CheckRan",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckProblems",
              "anchor": "BuildPreflightSummary.CheckProblems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckElapsed",
              "anchor": "BuildPreflightSummary.CheckElapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckErr",
              "anchor": "BuildPreflightSummary.CheckErr",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SmokeSummary",
              "anchor": "BuildPreflightSummary.SmokeSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "QualityProfile",
              "anchor": "BuildPreflightSummary.QualityProfile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DownloadSizeBudgetMB",
              "anchor": "BuildPreflightSummary.DownloadSizeBudgetMB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameTimeP95BudgetMs",
              "anchor": "BuildPreflightSummary.FrameTimeP95BudgetMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BudgetsFromProject",
              "anchor": "BuildPreflightSummary.BudgetsFromProject",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildPresetEntry",
          "anchor": "BuildPresetEntry",
          "decl": "type BuildPresetEntry struct {\n\tPlatform     string                   `json:\"platform\"`\n\tName         string                   `json:\"name\"`\n\tIconKind     string                   `json:\"iconKind\"` // \"desktop\", \"web\", \"phone\"\n\tFile         string                   `json:\"file\"`\n\tSummary      string                   `json:\"summary\"`\n\tTargets      []string                 `json:\"targets,omitempty\"`\n\tIncluded     bool                     `json:\"included\"`\n\tStatus       BuildPresetStatus        `json:\"status\"`\n\tStatusText   string                   `json:\"statusText\"`\n\tSizeText     string                   `json:\"sizeText\"`\n\tDeltaText    string                   `json:\"deltaText\"`\n\tSteps        []BuildStep              `json:\"steps\"`\n\tLogFile      string                   `json:\"logFile\"`\n\tLogLines     []string                 `json:\"logLines\"`\n\tPlanCommands []string                 `json:\"planCommands\"`\n\tSigning      BuildPresetSigningConfig `json:\"signing\"`\n\tFailure      *BuildFailureInfo        `json:\"failure,omitempty\"`\n\tResult       *BuildArtifactResult     `json:\"result,omitempty\"`\n\tReadiness    []BuildReadinessItem     `json:\"readiness,omitempty\"`\n\tNextStepIdx  int                      `json:\"nextStepIdx\"`\n\tStoppedAt    bool                     `json:\"stoppedAt,omitempty\"`\n}",
          "doc": "BuildPresetEntry holds the live state of one platform preset in the Build and Release screen.\n",
          "file": "pkg/editor/build_release.go",
          "line": 228,
          "members": [
            {
              "name": "Platform",
              "anchor": "BuildPresetEntry.Platform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "BuildPresetEntry.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IconKind",
              "anchor": "BuildPresetEntry.IconKind",
              "kind": "field",
              "doc": "\"desktop\", \"web\", \"phone\""
            },
            {
              "name": "File",
              "anchor": "BuildPresetEntry.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "BuildPresetEntry.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Targets",
              "anchor": "BuildPresetEntry.Targets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Included",
              "anchor": "BuildPresetEntry.Included",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "BuildPresetEntry.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StatusText",
              "anchor": "BuildPresetEntry.StatusText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeText",
              "anchor": "BuildPresetEntry.SizeText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaText",
              "anchor": "BuildPresetEntry.DeltaText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "BuildPresetEntry.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LogFile",
              "anchor": "BuildPresetEntry.LogFile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LogLines",
              "anchor": "BuildPresetEntry.LogLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanCommands",
              "anchor": "BuildPresetEntry.PlanCommands",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Signing",
              "anchor": "BuildPresetEntry.Signing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Failure",
              "anchor": "BuildPresetEntry.Failure",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Result",
              "anchor": "BuildPresetEntry.Result",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Readiness",
              "anchor": "BuildPresetEntry.Readiness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NextStepIdx",
              "anchor": "BuildPresetEntry.NextStepIdx",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StoppedAt",
              "anchor": "BuildPresetEntry.StoppedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildPresetFixProposal",
          "anchor": "BuildPresetFixProposal",
          "decl": "type BuildPresetFixProposal struct {\n\tPlatform     string                    `json:\"platform\"`\n\tTitle        string                    `json:\"title\"`\n\tSummary      string                    `json:\"summary\"`\n\tFilePath     string                    `json:\"filePath\"`\n\tFootnote     string                    `json:\"footnote,omitempty\"`\n\tDiff         []BuildDiffLine           `json:\"diff\"`\n\tTargetPatch  []string                  `json:\"targetPatch,omitempty\"`\n\tSigningPatch *BuildPresetSigningConfig `json:\"signingPatch,omitempty\"`\n\tApply        func(ed *Editor) error    `json:\"-\"`\n}",
          "doc": "BuildPresetFixProposal describes an agent-proposed fix diff shown when a preset build fails.\n",
          "file": "pkg/editor/build_release.go",
          "line": 127,
          "members": [
            {
              "name": "Platform",
              "anchor": "BuildPresetFixProposal.Platform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "BuildPresetFixProposal.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "BuildPresetFixProposal.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FilePath",
              "anchor": "BuildPresetFixProposal.FilePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Footnote",
              "anchor": "BuildPresetFixProposal.Footnote",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Diff",
              "anchor": "BuildPresetFixProposal.Diff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetPatch",
              "anchor": "BuildPresetFixProposal.TargetPatch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SigningPatch",
              "anchor": "BuildPresetFixProposal.SigningPatch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Apply",
              "anchor": "BuildPresetFixProposal.Apply",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildPresetSigningConfig",
          "anchor": "BuildPresetSigningConfig",
          "decl": "type BuildPresetSigningConfig struct {\n\tKeystore string `yaml:\"keystore,omitempty\" json:\"keystore,omitempty\"`\n\tAlias    string `yaml:\"alias,omitempty\" json:\"alias,omitempty\"`\n\tIdentity string `yaml:\"identity,omitempty\" json:\"identity,omitempty\"`\n\tNotarize bool   `yaml:\"notarize,omitempty\" json:\"notarize,omitempty\"`\n}",
          "doc": "BuildPresetSigningConfig holds per-preset signing settings loaded from export/<platform>.export.yaml or configured in memory.\n",
          "file": "pkg/editor/build_release.go",
          "line": 112,
          "members": [
            {
              "name": "Keystore",
              "anchor": "BuildPresetSigningConfig.Keystore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Alias",
              "anchor": "BuildPresetSigningConfig.Alias",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Identity",
              "anchor": "BuildPresetSigningConfig.Identity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Notarize",
              "anchor": "BuildPresetSigningConfig.Notarize",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildPresetStatus",
          "anchor": "BuildPresetStatus",
          "decl": "type BuildPresetStatus string",
          "doc": "BuildPresetStatus reports the current lifecycle state of one platform preset on the Build and Release screen.\n",
          "file": "pkg/editor/build_release.go",
          "line": 47,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BuildPresetQueued",
                  "anchor": "BuildPresetQueued"
                },
                {
                  "name": "BuildPresetBuilding",
                  "anchor": "BuildPresetBuilding"
                },
                {
                  "name": "BuildPresetNotarizing",
                  "anchor": "BuildPresetNotarizing"
                },
                {
                  "name": "BuildPresetDone",
                  "anchor": "BuildPresetDone"
                },
                {
                  "name": "BuildPresetFailed",
                  "anchor": "BuildPresetFailed"
                },
                {
                  "name": "BuildPresetSetup",
                  "anchor": "BuildPresetSetup"
                }
              ],
              "decl": "const (\n\tBuildPresetQueued     BuildPresetStatus = \"queued\"\n\tBuildPresetBuilding   BuildPresetStatus = \"building\"\n\tBuildPresetNotarizing BuildPresetStatus = \"notarizing\"\n\tBuildPresetDone       BuildPresetStatus = \"done\"\n\tBuildPresetFailed     BuildPresetStatus = \"failed\"\n\tBuildPresetSetup      BuildPresetStatus = \"setup\"\n)",
              "doc": "",
              "file": "pkg/editor/build_release.go",
              "line": 49
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildReadinessItem",
          "anchor": "BuildReadinessItem",
          "decl": "type BuildReadinessItem struct {\n\tID             string               `json:\"id\"`\n\tLabel          string               `json:\"label\"`\n\tDetail         string               `json:\"detail\"`\n\tStatus         BuildReadinessStatus `json:\"status\"`\n\tActionLabel    string               `json:\"actionLabel,omitempty\"`\n\tAgentCanHandle bool                 `json:\"agentCanHandle,omitempty\"`\n\tRequiresPerson bool                 `json:\"requiresPerson,omitempty\"`\n}",
          "doc": "BuildReadinessItem describes one readiness check for a platform that may require setup before building.\n",
          "file": "pkg/editor/build_release.go",
          "line": 101,
          "members": [
            {
              "name": "ID",
              "anchor": "BuildReadinessItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "BuildReadinessItem.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "BuildReadinessItem.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "BuildReadinessItem.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActionLabel",
              "anchor": "BuildReadinessItem.ActionLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentCanHandle",
              "anchor": "BuildReadinessItem.AgentCanHandle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RequiresPerson",
              "anchor": "BuildReadinessItem.RequiresPerson",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildReadinessStatus",
          "anchor": "BuildReadinessStatus",
          "decl": "type BuildReadinessStatus string",
          "doc": "BuildReadinessStatus indicates whether a platform readiness requirement passes, warns, or blocks building.\n",
          "file": "pkg/editor/build_release.go",
          "line": 92,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BuildReadinessOK",
                  "anchor": "BuildReadinessOK"
                },
                {
                  "name": "BuildReadinessWarn",
                  "anchor": "BuildReadinessWarn"
                },
                {
                  "name": "BuildReadinessFail",
                  "anchor": "BuildReadinessFail"
                }
              ],
              "decl": "const (\n\tBuildReadinessOK   BuildReadinessStatus = \"ok\"\n\tBuildReadinessWarn BuildReadinessStatus = \"warn\"\n\tBuildReadinessFail BuildReadinessStatus = \"fail\"\n)",
              "doc": "",
              "file": "pkg/editor/build_release.go",
              "line": 94
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildReleaseOptions",
          "anchor": "BuildReleaseOptions",
          "decl": "type BuildReleaseOptions struct {\n\tDryRun       bool\n\tChannel      string\n\tReleaseNotes string\n}",
          "doc": "BuildReleaseOptions configures one StartReleaseBuild invocation.\n",
          "file": "pkg/editor/build_release.go",
          "line": 253,
          "members": [
            {
              "name": "DryRun",
              "anchor": "BuildReleaseOptions.DryRun",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Channel",
              "anchor": "BuildReleaseOptions.Channel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReleaseNotes",
              "anchor": "BuildReleaseOptions.ReleaseNotes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildReleaseSnapshot",
          "anchor": "BuildReleaseSnapshot",
          "decl": "type BuildReleaseSnapshot struct {\n\tOpen                   bool                        `json:\"open\"`\n\tProjectName            string                      `json:\"projectName\"`\n\tVersion                string                      `json:\"version\"`\n\tGitCommit              string                      `json:\"gitCommit\"`\n\tGitBranch              string                      `json:\"gitBranch\"`\n\tLastReleaseVersion     string                      `json:\"lastReleaseVersion\"`\n\tCommitsSinceRelease    int                         `json:\"commitsSinceRelease\"`\n\tReleaseNotes           string                      `json:\"releaseNotes\"`\n\tReleaseNotesFile       string                      `json:\"releaseNotesFile\"`\n\tReleaseNotesProvenance string                      `json:\"releaseNotesProvenance\"`\n\tReleaseNotesSinceRef   string                      `json:\"releaseNotesSinceRef\"`\n\tPermissionProfile      AgentPermissionProfile      `json:\"permissionProfile\"`\n\tUploadReview           ReleaseUploadReviewSnapshot `json:\"uploadReview\"`\n\tPreflight              BuildPreflightSummary       `json:\"preflight\"`\n\tPresets                []BuildPresetEntry          `json:\"presets\"`\n\tSelectedPlatform       string                      `json:\"selectedPlatform\"`\n\tActivePlatform         string                      `json:\"activePlatform\"`\n\tSelectedDeviceID       string                      `json:\"selectedDeviceId\"`\n\tDevices                []BuildDeviceEntry          `json:\"devices\"`\n\tWebServer              WebBuildServerSnapshot      `json:\"webServer\"`\n\tRunning                bool                        `json:\"running\"`\n\tStopped                bool                        `json:\"stopped\"`\n\tDryRun                 bool                        `json:\"dryRun\"`\n\tFollowLog              bool                        `json:\"followLog\"`\n\tShowWholeLog           bool                        `json:\"showWholeLog\"`\n\tEditingPreset          bool                        `json:\"editingPreset\"`\n\tPlanCommandLine        string                      `json:\"planCommandLine\"`\n\tDryRunOutput           string                      `json:\"dryRunOutput\"`\n\tLastErr                string                      `json:\"lastErr,omitempty\"`\n}",
          "doc": "BuildReleaseSnapshot is a thread-safe value copy of the Build and Release screen state.\n",
          "file": "pkg/editor/build_release.go",
          "line": 271,
          "members": [
            {
              "name": "Open",
              "anchor": "BuildReleaseSnapshot.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectName",
              "anchor": "BuildReleaseSnapshot.ProjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "BuildReleaseSnapshot.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GitCommit",
              "anchor": "BuildReleaseSnapshot.GitCommit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GitBranch",
              "anchor": "BuildReleaseSnapshot.GitBranch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastReleaseVersion",
              "anchor": "BuildReleaseSnapshot.LastReleaseVersion",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CommitsSinceRelease",
              "anchor": "BuildReleaseSnapshot.CommitsSinceRelease",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReleaseNotes",
              "anchor": "BuildReleaseSnapshot.ReleaseNotes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReleaseNotesFile",
              "anchor": "BuildReleaseSnapshot.ReleaseNotesFile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReleaseNotesProvenance",
              "anchor": "BuildReleaseSnapshot.ReleaseNotesProvenance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReleaseNotesSinceRef",
              "anchor": "BuildReleaseSnapshot.ReleaseNotesSinceRef",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionProfile",
              "anchor": "BuildReleaseSnapshot.PermissionProfile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UploadReview",
              "anchor": "BuildReleaseSnapshot.UploadReview",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Preflight",
              "anchor": "BuildReleaseSnapshot.Preflight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Presets",
              "anchor": "BuildReleaseSnapshot.Presets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedPlatform",
              "anchor": "BuildReleaseSnapshot.SelectedPlatform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActivePlatform",
              "anchor": "BuildReleaseSnapshot.ActivePlatform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedDeviceID",
              "anchor": "BuildReleaseSnapshot.SelectedDeviceID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Devices",
              "anchor": "BuildReleaseSnapshot.Devices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WebServer",
              "anchor": "BuildReleaseSnapshot.WebServer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Running",
              "anchor": "BuildReleaseSnapshot.Running",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stopped",
              "anchor": "BuildReleaseSnapshot.Stopped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DryRun",
              "anchor": "BuildReleaseSnapshot.DryRun",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FollowLog",
              "anchor": "BuildReleaseSnapshot.FollowLog",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ShowWholeLog",
              "anchor": "BuildReleaseSnapshot.ShowWholeLog",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditingPreset",
              "anchor": "BuildReleaseSnapshot.EditingPreset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanCommandLine",
              "anchor": "BuildReleaseSnapshot.PlanCommandLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DryRunOutput",
              "anchor": "BuildReleaseSnapshot.DryRunOutput",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastErr",
              "anchor": "BuildReleaseSnapshot.LastErr",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "SelectedPreset",
              "anchor": "BuildReleaseSnapshot.SelectedPreset",
              "recv": "BuildReleaseSnapshot",
              "decl": "func (s BuildReleaseSnapshot) SelectedPreset() *BuildPresetEntry",
              "doc": "SelectedPreset returns the currently selected preset from the snapshot, or nil if no presets exist.\n",
              "file": "pkg/editor/build_release.go",
              "line": 304
            }
          ]
        },
        {
          "name": "BuildSizeBreakdown",
          "anchor": "BuildSizeBreakdown",
          "decl": "type BuildSizeBreakdown struct {\n\tCodeBytes     int64  `yaml:\"codeBytes\" json:\"codeBytes\"`\n\tTexturesBytes int64  `yaml:\"texturesBytes\" json:\"texturesBytes\"`\n\tAudioBytes    int64  `yaml:\"audioBytes\" json:\"audioBytes\"`\n\tOtherBytes    int64  `yaml:\"otherBytes\" json:\"otherBytes\"`\n\tGrowthSummary string `yaml:\"growthSummary,omitempty\" json:\"growthSummary,omitempty\"`\n}",
          "doc": "BuildSizeBreakdown splits a finished release artifact into code, textures, audio, and other bytes.\n",
          "file": "pkg/editor/build_release.go",
          "line": 155,
          "members": [
            {
              "name": "CodeBytes",
              "anchor": "BuildSizeBreakdown.CodeBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TexturesBytes",
              "anchor": "BuildSizeBreakdown.TexturesBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AudioBytes",
              "anchor": "BuildSizeBreakdown.AudioBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OtherBytes",
              "anchor": "BuildSizeBreakdown.OtherBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GrowthSummary",
              "anchor": "BuildSizeBreakdown.GrowthSummary",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildSmokePlaytestResult",
          "anchor": "BuildSmokePlaytestResult",
          "decl": "type BuildSmokePlaytestResult struct {\n\tWhere          string        `json:\"where,omitempty\"`\n\tSummary        string        `json:\"summary\"`\n\tDuration       time.Duration `json:\"duration\"`\n\tFrameTimeP95Ms float64       `json:\"frameTimeP95Ms,omitempty\"`\n}",
          "doc": "BuildSmokePlaytestResult summarizes the per-build smoke playtest step.\n",
          "file": "pkg/editor/build_release.go",
          "line": 164,
          "members": [
            {
              "name": "Where",
              "anchor": "BuildSmokePlaytestResult.Where",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "BuildSmokePlaytestResult.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "BuildSmokePlaytestResult.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameTimeP95Ms",
              "anchor": "BuildSmokePlaytestResult.FrameTimeP95Ms",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildStep",
          "anchor": "BuildStep",
          "decl": "type BuildStep struct {\n\tID       BuildStepID     `json:\"id\"`\n\tLabel    string          `json:\"label\"`\n\tDetail   string          `json:\"detail\"`\n\tStatus   BuildStepStatus `json:\"status\"`\n\tElapsed  time.Duration   `json:\"elapsed\"`\n\tCommands []string        `json:\"commands,omitempty\"`\n\tErr      string          `json:\"err,omitempty\"`\n}",
          "doc": "BuildStep represents one ordered step in a preset's build pipeline.\n",
          "file": "pkg/editor/build_release.go",
          "line": 81,
          "members": [
            {
              "name": "ID",
              "anchor": "BuildStep.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "BuildStep.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "BuildStep.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "BuildStep.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Elapsed",
              "anchor": "BuildStep.Elapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Commands",
              "anchor": "BuildStep.Commands",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Err",
              "anchor": "BuildStep.Err",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildStepID",
          "anchor": "BuildStepID",
          "decl": "type BuildStepID string",
          "doc": "BuildStepID identifies each ordered step executed for a release preset build.\n",
          "file": "pkg/editor/build_release.go",
          "line": 59,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BuildStepCheck",
                  "anchor": "BuildStepCheck"
                },
                {
                  "name": "BuildStepCompile",
                  "anchor": "BuildStepCompile"
                },
                {
                  "name": "BuildStepPack",
                  "anchor": "BuildStepPack"
                },
                {
                  "name": "BuildStepSign",
                  "anchor": "BuildStepSign"
                },
                {
                  "name": "BuildStepSmokePlaytest",
                  "anchor": "BuildStepSmokePlaytest"
                },
                {
                  "name": "BuildStepMeasure",
                  "anchor": "BuildStepMeasure"
                }
              ],
              "decl": "const (\n\tBuildStepCheck         BuildStepID = \"check\"\n\tBuildStepCompile       BuildStepID = \"compile\"\n\tBuildStepPack          BuildStepID = \"pack\"\n\tBuildStepSign          BuildStepID = \"sign\"\n\tBuildStepSmokePlaytest BuildStepID = \"smoke_playtest\"\n\tBuildStepMeasure       BuildStepID = \"measure\"\n)",
              "doc": "",
              "file": "pkg/editor/build_release.go",
              "line": 61
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuildStepStatus",
          "anchor": "BuildStepStatus",
          "decl": "type BuildStepStatus string",
          "doc": "BuildStepStatus reports the state of one step within a preset build.\n",
          "file": "pkg/editor/build_release.go",
          "line": 71,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BuildStepPending",
                  "anchor": "BuildStepPending"
                },
                {
                  "name": "BuildStepRunning",
                  "anchor": "BuildStepRunning"
                },
                {
                  "name": "BuildStepDone",
                  "anchor": "BuildStepDone"
                },
                {
                  "name": "BuildStepFailed",
                  "anchor": "BuildStepFailed"
                }
              ],
              "decl": "const (\n\tBuildStepPending BuildStepStatus = \"pending\"\n\tBuildStepRunning BuildStepStatus = \"running\"\n\tBuildStepDone    BuildStepStatus = \"done\"\n\tBuildStepFailed  BuildStepStatus = \"failed\"\n)",
              "doc": "",
              "file": "pkg/editor/build_release.go",
              "line": 73
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CLIAgentRunner",
          "anchor": "CLIAgentRunner",
          "decl": "type CLIAgentRunner struct {\n\t// ClaudeBinary overrides the \"claude\" executable path (defaults to PATH lookup).\n\tClaudeBinary string\n\t// CodexBinary overrides the \"codex\" executable path (defaults to PATH lookup).\n\tCodexBinary string\n}",
          "doc": "CLIAgentRunner runs an external agent CLI (Claude Code or Codex) non-interactively per composer request with streamed JSON output and the project's MCP config.\n",
          "file": "pkg/editor/agent_runner_desktop.go",
          "line": 60,
          "platforms": [
            "linux",
            "macos",
            "windows"
          ],
          "members": [
            {
              "name": "ClaudeBinary",
              "anchor": "CLIAgentRunner.ClaudeBinary",
              "kind": "field",
              "doc": "ClaudeBinary overrides the \"claude\" executable path (defaults to PATH lookup)."
            },
            {
              "name": "CodexBinary",
              "anchor": "CLIAgentRunner.CodexBinary",
              "kind": "field",
              "doc": "CodexBinary overrides the \"codex\" executable path (defaults to PATH lookup)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Run",
              "anchor": "CLIAgentRunner.Run",
              "recv": "*CLIAgentRunner",
              "decl": "func (r *CLIAgentRunner) Run(ctx context.Context, req AgentRequest, emit func(AgentEvent)) error",
              "doc": "Run executes req against Claude Code (`claude --print --output-format=stream-json --verbose`) or Codex (`codex exec --json`), streaming parsed AgentEvents to emit.\n",
              "file": "pkg/editor/agent_runner_desktop.go",
              "line": 72,
              "platforms": [
                "linux",
                "macos",
                "windows"
              ]
            }
          ]
        },
        {
          "name": "ChangedFile",
          "anchor": "ChangedFile",
          "decl": "type ChangedFile struct {\n\tPath        string            `json:\"path\"`\n\tOldPath     string            `json:\"oldPath,omitempty\"`\n\tProjectPath string            `json:\"projectPath,omitempty\"`\n\tDisplayName string            `json:\"displayName\"`\n\tCategory    ChangesCategory   `json:\"category\"`\n\tStatus      ChangesFileStatus `json:\"status\"`\n\tStatusCode  string            `json:\"statusCode\"`\n\tIncluded    bool              `json:\"included\"`\n\tBinary      bool              `json:\"binary,omitempty\"`\n\tDetail      string            `json:\"detail,omitempty\"`\n\tPlusLines   int               `json:\"plusLines,omitempty\"`\n\tMinusLines  int               `json:\"minusLines,omitempty\"`\n\tDiff        []DiffLine        `json:\"diff,omitempty\"`\n\tScene       *SceneComparison  `json:\"scene,omitempty\"`\n\tAudio       *AudioChangeInfo  `json:\"audio,omitempty\"`\n}",
          "doc": "ChangedFile represents one modified, added, deleted, renamed, or untracked file compared with HEAD.\n",
          "file": "pkg/editor/changes.go",
          "line": 134,
          "members": [
            {
              "name": "Path",
              "anchor": "ChangedFile.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldPath",
              "anchor": "ChangedFile.OldPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectPath",
              "anchor": "ChangedFile.ProjectPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DisplayName",
              "anchor": "ChangedFile.DisplayName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Category",
              "anchor": "ChangedFile.Category",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "ChangedFile.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StatusCode",
              "anchor": "ChangedFile.StatusCode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Included",
              "anchor": "ChangedFile.Included",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Binary",
              "anchor": "ChangedFile.Binary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "ChangedFile.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlusLines",
              "anchor": "ChangedFile.PlusLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinusLines",
              "anchor": "ChangedFile.MinusLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Diff",
              "anchor": "ChangedFile.Diff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scene",
              "anchor": "ChangedFile.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Audio",
              "anchor": "ChangedFile.Audio",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChangesCategory",
          "anchor": "ChangesCategory",
          "decl": "type ChangesCategory string",
          "doc": "ChangesCategory groups changed working-tree files in the Changes panel.\n",
          "file": "pkg/editor/changes.go",
          "line": 42,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ChangesCategoryScenes",
                  "anchor": "ChangesCategoryScenes"
                },
                {
                  "name": "ChangesCategoryData",
                  "anchor": "ChangesCategoryData"
                },
                {
                  "name": "ChangesCategoryCode",
                  "anchor": "ChangesCategoryCode"
                },
                {
                  "name": "ChangesCategoryAssets",
                  "anchor": "ChangesCategoryAssets"
                }
              ],
              "decl": "const (\n\tChangesCategoryScenes ChangesCategory = \"SCENES\"\n\tChangesCategoryData   ChangesCategory = \"DATA\"\n\tChangesCategoryCode   ChangesCategory = \"CODE\"\n\tChangesCategoryAssets ChangesCategory = \"ASSETS\"\n)",
              "doc": "",
              "file": "pkg/editor/changes.go",
              "line": 44
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChangesCheckStatus",
          "anchor": "ChangesCheckStatus",
          "decl": "type ChangesCheckStatus struct {\n\tRan          bool      `json:\"ran\"`\n\tRanAt        time.Time `json:\"ranAt,omitempty\"`\n\tCheckPassed  bool      `json:\"checkPassed\"`\n\tCheckSummary string    `json:\"checkSummary,omitempty\"`\n\tCheckOutput  string    `json:\"checkOutput,omitempty\"`\n\tTestPassed   bool      `json:\"testPassed\"`\n\tTestCount    int       `json:\"testCount,omitempty\"`\n\tTestSummary  string    `json:\"testSummary,omitempty\"`\n\tTestOutput   string    `json:\"testOutput,omitempty\"`\n}",
          "doc": "ChangesCheckStatus records the latest nsgo check and nsgo test outcomes shown in the Changes panel.\n",
          "file": "pkg/editor/changes.go",
          "line": 153,
          "members": [
            {
              "name": "Ran",
              "anchor": "ChangesCheckStatus.Ran",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RanAt",
              "anchor": "ChangesCheckStatus.RanAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckPassed",
              "anchor": "ChangesCheckStatus.CheckPassed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckSummary",
              "anchor": "ChangesCheckStatus.CheckSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckOutput",
              "anchor": "ChangesCheckStatus.CheckOutput",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestPassed",
              "anchor": "ChangesCheckStatus.TestPassed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestCount",
              "anchor": "ChangesCheckStatus.TestCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestSummary",
              "anchor": "ChangesCheckStatus.TestSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestOutput",
              "anchor": "ChangesCheckStatus.TestOutput",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChangesFileStatus",
          "anchor": "ChangesFileStatus",
          "decl": "type ChangesFileStatus string",
          "doc": "ChangesFileStatus describes a file's Git working-tree state compared with HEAD.\n",
          "file": "pkg/editor/changes.go",
          "line": 59,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ChangesStatusModified",
                  "anchor": "ChangesStatusModified"
                },
                {
                  "name": "ChangesStatusAdded",
                  "anchor": "ChangesStatusAdded"
                },
                {
                  "name": "ChangesStatusDeleted",
                  "anchor": "ChangesStatusDeleted"
                },
                {
                  "name": "ChangesStatusUntracked",
                  "anchor": "ChangesStatusUntracked"
                },
                {
                  "name": "ChangesStatusRenamed",
                  "anchor": "ChangesStatusRenamed"
                }
              ],
              "decl": "const (\n\tChangesStatusModified  ChangesFileStatus = \"modified\"\n\tChangesStatusAdded     ChangesFileStatus = \"added\"\n\tChangesStatusDeleted   ChangesFileStatus = \"deleted\"\n\tChangesStatusUntracked ChangesFileStatus = \"untracked\"\n\tChangesStatusRenamed   ChangesFileStatus = \"renamed\"\n)",
              "doc": "",
              "file": "pkg/editor/changes.go",
              "line": 61
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChangesSceneViewMode",
          "anchor": "ChangesSceneViewMode",
          "decl": "type ChangesSceneViewMode string",
          "doc": "ChangesSceneViewMode controls whether a changed scene renders HEAD and Now side by side, HEAD only, or Now only.\n",
          "file": "pkg/editor/changes.go",
          "line": 199,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ChangesSceneViewSideBySide",
                  "anchor": "ChangesSceneViewSideBySide"
                },
                {
                  "name": "ChangesSceneViewHead",
                  "anchor": "ChangesSceneViewHead"
                },
                {
                  "name": "ChangesSceneViewNow",
                  "anchor": "ChangesSceneViewNow"
                }
              ],
              "decl": "const (\n\tChangesSceneViewSideBySide ChangesSceneViewMode = \"side-by-side\"\n\tChangesSceneViewHead       ChangesSceneViewMode = \"head\"\n\tChangesSceneViewNow        ChangesSceneViewMode = \"now\"\n)",
              "doc": "",
              "file": "pkg/editor/changes.go",
              "line": 201
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChangesSession",
          "anchor": "ChangesSession",
          "decl": "type ChangesSession struct {\n\tRepoDir       string\n\tProjectDir    string\n\tProjectPrefix string\n\tProjectName   string\n\tSceneName     string\n\n\tBranch     string\n\tBranches   []string\n\tHeadSHA    string\n\tHasHead    bool\n\tUpstream   string\n\tBaseBranch string\n\tAhead      int\n\tBehind     int\n\n\tFiles        []ChangedFile\n\tSelectedPath string\n\tSceneView    ChangesSceneViewMode\n\tChecks       ChangesCheckStatus\n\n\tDraftSummary      string\n\tDraftDescription  string\n\tDraftProvenance   string\n\tDraftAttribution  string\n\tReviewCount       int\n\tPlaytestSummary   string\n\tAgentRequestCount int\n\n\tCommitted  bool\n\tLastCommit *CommitMilestone\n\tMilestones []CommitMilestone\n\n\tGHAvailable       bool\n\tLastPRDescription string\n\tLastPRURL         string\n\tLastErr           string\n\tLastNotice        string\n\t// contains filtered or unexported fields\n}",
          "doc": "ChangesSession holds the live state of the Changes & Commit screen.\n",
          "file": "pkg/editor/changes.go",
          "line": 208,
          "members": [
            {
              "name": "RepoDir",
              "anchor": "ChangesSession.RepoDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectDir",
              "anchor": "ChangesSession.ProjectDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectPrefix",
              "anchor": "ChangesSession.ProjectPrefix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectName",
              "anchor": "ChangesSession.ProjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneName",
              "anchor": "ChangesSession.SceneName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Branch",
              "anchor": "ChangesSession.Branch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Branches",
              "anchor": "ChangesSession.Branches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeadSHA",
              "anchor": "ChangesSession.HeadSHA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasHead",
              "anchor": "ChangesSession.HasHead",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Upstream",
              "anchor": "ChangesSession.Upstream",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseBranch",
              "anchor": "ChangesSession.BaseBranch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ahead",
              "anchor": "ChangesSession.Ahead",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Behind",
              "anchor": "ChangesSession.Behind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "ChangesSession.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedPath",
              "anchor": "ChangesSession.SelectedPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneView",
              "anchor": "ChangesSession.SceneView",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checks",
              "anchor": "ChangesSession.Checks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DraftSummary",
              "anchor": "ChangesSession.DraftSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DraftDescription",
              "anchor": "ChangesSession.DraftDescription",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DraftProvenance",
              "anchor": "ChangesSession.DraftProvenance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DraftAttribution",
              "anchor": "ChangesSession.DraftAttribution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReviewCount",
              "anchor": "ChangesSession.ReviewCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlaytestSummary",
              "anchor": "ChangesSession.PlaytestSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentRequestCount",
              "anchor": "ChangesSession.AgentRequestCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Committed",
              "anchor": "ChangesSession.Committed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastCommit",
              "anchor": "ChangesSession.LastCommit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Milestones",
              "anchor": "ChangesSession.Milestones",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GHAvailable",
              "anchor": "ChangesSession.GHAvailable",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastPRDescription",
              "anchor": "ChangesSession.LastPRDescription",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastPRURL",
              "anchor": "ChangesSession.LastPRURL",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastErr",
              "anchor": "ChangesSession.LastErr",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastNotice",
              "anchor": "ChangesSession.LastNotice",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IncludedSummary",
              "anchor": "ChangesSession.IncludedSummary",
              "recv": "*ChangesSession",
              "decl": "func (s *ChangesSession) IncludedSummary() (included, total, plus, minus int)",
              "doc": "IncludedSummary returns the included file count, total file count, included added lines, and included deleted lines.\n",
              "file": "pkg/editor/changes.go",
              "line": 1840
            },
            {
              "name": "SelectedChangedFile",
              "anchor": "ChangesSession.SelectedChangedFile",
              "recv": "*ChangesSession",
              "decl": "func (s *ChangesSession) SelectedChangedFile() *ChangedFile",
              "doc": "SelectedChangedFile returns a pointer to the currently selected ChangedFile in the active session, or nil.\n",
              "file": "pkg/editor/changes.go",
              "line": 1827
            }
          ]
        },
        {
          "name": "CheckpointFile",
          "anchor": "CheckpointFile",
          "decl": "type CheckpointFile struct {\n\t// Path is the slash-separated path from the project root (for example \"scenes/level_01.scene.yaml\").\n\tPath string `yaml:\"path\"`\n\t// Existed reports whether the file existed before the turn wrote it; false means restoring deletes the file.\n\tExisted bool `yaml:\"existed\"`\n\t// Size is the saved file size in bytes when Existed is true.\n\tSize int64 `yaml:\"size,omitempty\"`\n\t// SHA256 is the lowercase hex SHA-256 digest of the saved bytes when Existed is true.\n\tSHA256 string `yaml:\"sha256,omitempty\"`\n\t// Mode is the optional 4-digit octal Unix file mode (for example \"0755\") when non-default.\n\tMode string `yaml:\"mode,omitempty\"`\n}",
          "doc": "CheckpointFile records one project file captured before its first write in a checkpoint.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 84,
          "members": [
            {
              "name": "Path",
              "anchor": "CheckpointFile.Path",
              "kind": "field",
              "doc": "Path is the slash-separated path from the project root (for example \"scenes/level_01.scene.yaml\")."
            },
            {
              "name": "Existed",
              "anchor": "CheckpointFile.Existed",
              "kind": "field",
              "doc": "Existed reports whether the file existed before the turn wrote it; false means restoring deletes the file."
            },
            {
              "name": "Size",
              "anchor": "CheckpointFile.Size",
              "kind": "field",
              "doc": "Size is the saved file size in bytes when Existed is true."
            },
            {
              "name": "SHA256",
              "anchor": "CheckpointFile.SHA256",
              "kind": "field",
              "doc": "SHA256 is the lowercase hex SHA-256 digest of the saved bytes when Existed is true."
            },
            {
              "name": "Mode",
              "anchor": "CheckpointFile.Mode",
              "kind": "field",
              "doc": "Mode is the optional 4-digit octal Unix file mode (for example \"0755\") when non-default."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CheckpointKind",
          "anchor": "CheckpointKind",
          "decl": "type CheckpointKind string",
          "doc": "CheckpointKind identifies why a persistent checkpoint was created.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 52,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CheckpointKindTurn",
                  "anchor": "CheckpointKindTurn"
                },
                {
                  "name": "CheckpointKindTask",
                  "anchor": "CheckpointKindTask"
                },
                {
                  "name": "CheckpointKindAutomation",
                  "anchor": "CheckpointKindAutomation"
                }
              ],
              "decl": "const (\n\t// CheckpointKindTurn marks a checkpoint created for an agent turn's edits.\n\tCheckpointKindTurn CheckpointKind = \"turn\"\n\t// CheckpointKindTask marks a checkpoint taken before an autonomous background task starts.\n\tCheckpointKindTask CheckpointKind = \"task\"\n\t// CheckpointKindAutomation marks a checkpoint taken before an automation run starts.\n\tCheckpointKindAutomation CheckpointKind = \"automation\"\n)",
              "doc": "",
              "file": "pkg/editor/checkpoints.go",
              "line": 54
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CheckpointManifest",
          "anchor": "CheckpointManifest",
          "decl": "type CheckpointManifest struct {\n\t// Version is the schema version; it must equal CheckpointVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// ID is the unique checkpoint directory name (for example \"20261126T144100Z-0001\").\n\tID string `yaml:\"id\"`\n\t// CreatedAt is the RFC3339 UTC timestamp when the checkpoint was started.\n\tCreatedAt string `yaml:\"createdAt\"`\n\t// Who identifies who initiated the checkpoint (\"agent\", \"you\", or \"git\").\n\tWho HistoryAuthor `yaml:\"who\"`\n\t// Kind identifies why the checkpoint was taken (\"turn\", \"task\", or \"automation\").\n\tKind CheckpointKind `yaml:\"kind\"`\n\t// Title is the short human-readable summary shown in the History panel.\n\tTitle string `yaml:\"title\"`\n\t// Detail is optional secondary context (such as change counts or trigger details).\n\tDetail string `yaml:\"detail,omitempty\"`\n\t// Files lists every project file captured before its first write in this checkpoint, sorted by path.\n\tFiles []CheckpointFile `yaml:\"files,omitempty\"`\n}",
          "doc": "CheckpointManifest is the strict versioned YAML manifest stored at .nsgo/checkpoints/<id>/manifest.yaml.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 64,
          "members": [
            {
              "name": "Version",
              "anchor": "CheckpointManifest.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CheckpointVersion (1)."
            },
            {
              "name": "ID",
              "anchor": "CheckpointManifest.ID",
              "kind": "field",
              "doc": "ID is the unique checkpoint directory name (for example \"20261126T144100Z-0001\")."
            },
            {
              "name": "CreatedAt",
              "anchor": "CheckpointManifest.CreatedAt",
              "kind": "field",
              "doc": "CreatedAt is the RFC3339 UTC timestamp when the checkpoint was started."
            },
            {
              "name": "Who",
              "anchor": "CheckpointManifest.Who",
              "kind": "field",
              "doc": "Who identifies who initiated the checkpoint (\"agent\", \"you\", or \"git\")."
            },
            {
              "name": "Kind",
              "anchor": "CheckpointManifest.Kind",
              "kind": "field",
              "doc": "Kind identifies why the checkpoint was taken (\"turn\", \"task\", or \"automation\")."
            },
            {
              "name": "Title",
              "anchor": "CheckpointManifest.Title",
              "kind": "field",
              "doc": "Title is the short human-readable summary shown in the History panel."
            },
            {
              "name": "Detail",
              "anchor": "CheckpointManifest.Detail",
              "kind": "field",
              "doc": "Detail is optional secondary context (such as change counts or trigger details)."
            },
            {
              "name": "Files",
              "anchor": "CheckpointManifest.Files",
              "kind": "field",
              "doc": "Files lists every project file captured before its first write in this checkpoint, sorted by path."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseCheckpointManifest",
              "anchor": "ParseCheckpointManifest",
              "decl": "func ParseCheckpointManifest(data []byte) (*CheckpointManifest, error)",
              "doc": "ParseCheckpointManifest strictly decodes and validates a versioned checkpoint manifest YAML document,\nrefusing empty documents, duplicate keys, unknown fields, trailing documents, and unsupported versions.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 137
            }
          ],
          "methods": []
        },
        {
          "name": "CheckpointOptions",
          "anchor": "CheckpointOptions",
          "decl": "type CheckpointOptions struct {\n\t// Who defaults to HistoryAuthorAgent when empty.\n\tWho HistoryAuthor\n\t// Kind defaults to CheckpointKindTurn when empty.\n\tKind CheckpointKind\n\t// Title is shown in the History panel; defaults to a descriptive label when empty.\n\tTitle string\n\t// Detail is optional secondary context shown alongside the title.\n\tDetail string\n\t// PreCaptureFiles lists project-relative paths to snapshot immediately before work starts.\n\tPreCaptureFiles []string\n}",
          "doc": "CheckpointOptions configures a new turn, task, or automation checkpoint.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 105,
          "members": [
            {
              "name": "Who",
              "anchor": "CheckpointOptions.Who",
              "kind": "field",
              "doc": "Who defaults to HistoryAuthorAgent when empty."
            },
            {
              "name": "Kind",
              "anchor": "CheckpointOptions.Kind",
              "kind": "field",
              "doc": "Kind defaults to CheckpointKindTurn when empty."
            },
            {
              "name": "Title",
              "anchor": "CheckpointOptions.Title",
              "kind": "field",
              "doc": "Title is shown in the History panel; defaults to a descriptive label when empty."
            },
            {
              "name": "Detail",
              "anchor": "CheckpointOptions.Detail",
              "kind": "field",
              "doc": "Detail is optional secondary context shown alongside the title."
            },
            {
              "name": "PreCaptureFiles",
              "anchor": "CheckpointOptions.PreCaptureFiles",
              "kind": "field",
              "doc": "PreCaptureFiles lists project-relative paths to snapshot immediately before work starts."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CheckpointSummary",
          "anchor": "CheckpointSummary",
          "decl": "type CheckpointSummary struct {\n\tCheckpointManifest\n\t// TotalBytes is the total size on disk of the checkpoint directory (manifest plus saved files).\n\tTotalBytes int64\n}",
          "doc": "CheckpointSummary pairs a loaded CheckpointManifest with its total on-disk footprint in bytes.\n",
          "file": "pkg/editor/checkpoints.go",
          "line": 98,
          "members": [
            {
              "name": "CheckpointManifest",
              "anchor": "CheckpointSummary.CheckpointManifest",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalBytes",
              "anchor": "CheckpointSummary.TotalBytes",
              "kind": "field",
              "doc": "TotalBytes is the total size on disk of the checkpoint directory (manifest plus saved files)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodePreviewLine",
          "anchor": "CodePreviewLine",
          "decl": "type CodePreviewLine struct {\n\tLineNumber int    `json:\"lineNumber,omitempty\"`\n\tSign       string `json:\"sign,omitempty\"` // \"\", \"-\", \"+\"\n\tKind       string `json:\"kind,omitempty\"` // \"\", \"hit\", \"del\", \"add\", \"warn\", \"gap\", \"note\"\n\tText       string `json:\"text\"`\n\tFocused    bool   `json:\"focused,omitempty\"`\n}",
          "doc": "CodePreviewLine is one rendered line in the right-hand code or diff preview pane.\n",
          "file": "pkg/editor/usages.go",
          "line": 132,
          "members": [
            {
              "name": "LineNumber",
              "anchor": "CodePreviewLine.LineNumber",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "CodePreviewLine.Sign",
              "kind": "field",
              "doc": "\"\", \"-\", \"+\""
            },
            {
              "name": "Kind",
              "anchor": "CodePreviewLine.Kind",
              "kind": "field",
              "doc": "\"\", \"hit\", \"del\", \"add\", \"warn\", \"gap\", \"note\""
            },
            {
              "name": "Text",
              "anchor": "CodePreviewLine.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Focused",
              "anchor": "CodePreviewLine.Focused",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewCheckPhase",
          "anchor": "CodeReviewCheckPhase",
          "decl": "type CodeReviewCheckPhase string",
          "doc": "CodeReviewCheckPhase tracks the lifecycle of nsgo check and nsgo test for pending Go files.\n",
          "file": "pkg/editor/code_review.go",
          "line": 44,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CodeReviewChecksIdle",
                  "anchor": "CodeReviewChecksIdle"
                },
                {
                  "name": "CodeReviewChecksRunning",
                  "anchor": "CodeReviewChecksRunning"
                },
                {
                  "name": "CodeReviewChecksFixing",
                  "anchor": "CodeReviewChecksFixing"
                },
                {
                  "name": "CodeReviewChecksPassed",
                  "anchor": "CodeReviewChecksPassed"
                },
                {
                  "name": "CodeReviewChecksFailed",
                  "anchor": "CodeReviewChecksFailed"
                }
              ],
              "decl": "const (\n\tCodeReviewChecksIdle    CodeReviewCheckPhase = \"idle\"\n\tCodeReviewChecksRunning CodeReviewCheckPhase = \"running\"\n\tCodeReviewChecksFixing  CodeReviewCheckPhase = \"fixing\"\n\tCodeReviewChecksPassed  CodeReviewCheckPhase = \"passed\"\n\tCodeReviewChecksFailed  CodeReviewCheckPhase = \"failed\"\n)",
              "doc": "",
              "file": "pkg/editor/code_review.go",
              "line": 46
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewCheckProgress",
          "anchor": "CodeReviewCheckProgress",
          "decl": "type CodeReviewCheckProgress struct {\n\tCompleted   int    `json:\"completed\"`\n\tTotal       int    `json:\"total\"`\n\tCurrentTest string `json:\"currentTest,omitempty\"`\n}",
          "doc": "CodeReviewCheckProgress reports live test execution progress while nsgo test runs.\n",
          "file": "pkg/editor/code_review.go",
          "line": 145,
          "members": [
            {
              "name": "Completed",
              "anchor": "CodeReviewCheckProgress.Completed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Total",
              "anchor": "CodeReviewCheckProgress.Total",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CurrentTest",
              "anchor": "CodeReviewCheckProgress.CurrentTest",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewCheckRequest",
          "anchor": "CodeReviewCheckRequest",
          "decl": "type CodeReviewCheckRequest struct {\n\tProjectDir    string\n\tPackages      []string\n\tPendingGo     map[string]PendingGoOverlayFile\n\tOverlayPath   string\n\tPreviousTotal int\n}",
          "doc": "CodeReviewCheckRequest supplies the pending Go overlay and target packages to Editor.CodeReviewCheckRunner.\n",
          "file": "pkg/editor/code_review.go",
          "line": 195,
          "members": [
            {
              "name": "ProjectDir",
              "anchor": "CodeReviewCheckRequest.ProjectDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Packages",
              "anchor": "CodeReviewCheckRequest.Packages",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PendingGo",
              "anchor": "CodeReviewCheckRequest.PendingGo",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OverlayPath",
              "anchor": "CodeReviewCheckRequest.OverlayPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreviousTotal",
              "anchor": "CodeReviewCheckRequest.PreviousTotal",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewCheckResult",
          "anchor": "CodeReviewCheckResult",
          "decl": "type CodeReviewCheckResult struct {\n\tPhase          CodeReviewCheckPhase    `json:\"phase\"`\n\tCheckPassed    bool                    `json:\"checkPassed\"`\n\tCheckOutput    string                  `json:\"checkOutput,omitempty\"`\n\tCheckError     string                  `json:\"checkError,omitempty\"`\n\tTestPassed     bool                    `json:\"testPassed\"`\n\tPassedCount    int                     `json:\"passedCount\"`\n\tFailedCount    int                     `json:\"failedCount\"`\n\tTotalCount     int                     `json:\"totalCount\"`\n\tDuration       time.Duration           `json:\"duration\"`\n\tPackages       []string                `json:\"packages,omitempty\"`\n\tTestOutput     string                  `json:\"testOutput,omitempty\"`\n\tFailures       []CodeReviewTestFailure `json:\"failures,omitempty\"`\n\tCompleted      int                     `json:\"completed\"`\n\tExpectedTotal  int                     `json:\"expectedTotal\"`\n\tAgentEditBadge string                  `json:\"agentEditBadge,omitempty\"`\n\tGeneration     uint64                  `json:\"generation\"`\n}",
          "doc": "CodeReviewCheckResult records the latest nsgo check and nsgo test outcomes against the pending Go overlay.\n",
          "file": "pkg/editor/code_review.go",
          "line": 152,
          "members": [
            {
              "name": "Phase",
              "anchor": "CodeReviewCheckResult.Phase",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckPassed",
              "anchor": "CodeReviewCheckResult.CheckPassed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckOutput",
              "anchor": "CodeReviewCheckResult.CheckOutput",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckError",
              "anchor": "CodeReviewCheckResult.CheckError",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestPassed",
              "anchor": "CodeReviewCheckResult.TestPassed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PassedCount",
              "anchor": "CodeReviewCheckResult.PassedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FailedCount",
              "anchor": "CodeReviewCheckResult.FailedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalCount",
              "anchor": "CodeReviewCheckResult.TotalCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "CodeReviewCheckResult.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Packages",
              "anchor": "CodeReviewCheckResult.Packages",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestOutput",
              "anchor": "CodeReviewCheckResult.TestOutput",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Failures",
              "anchor": "CodeReviewCheckResult.Failures",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Completed",
              "anchor": "CodeReviewCheckResult.Completed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ExpectedTotal",
              "anchor": "CodeReviewCheckResult.ExpectedTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentEditBadge",
              "anchor": "CodeReviewCheckResult.AgentEditBadge",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Generation",
              "anchor": "CodeReviewCheckResult.Generation",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AllPassed",
              "anchor": "CodeReviewCheckResult.AllPassed",
              "recv": "CodeReviewCheckResult",
              "decl": "func (r CodeReviewCheckResult) AllPassed(editGen uint64) bool",
              "doc": "AllPassed reports whether both nsgo check and nsgo test passed for editGen.\n",
              "file": "pkg/editor/code_review.go",
              "line": 172
            },
            {
              "name": "PrimaryFailure",
              "anchor": "CodeReviewCheckResult.PrimaryFailure",
              "recv": "CodeReviewCheckResult",
              "decl": "func (r CodeReviewCheckResult) PrimaryFailure() *CodeReviewTestFailure",
              "doc": "PrimaryFailure returns the first failing test, or nil when none failed.\n",
              "file": "pkg/editor/code_review.go",
              "line": 180
            }
          ]
        },
        {
          "name": "CodeReviewCheckRun",
          "anchor": "CodeReviewCheckRun",
          "decl": "type CodeReviewCheckRun struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CodeReviewCheckRun captures a snapshot of a pending Go code review so callers (such as editormcp)\ncan execute nsgo check and nsgo test off the editor's UI goroutine and apply the result back on it.\n",
          "file": "pkg/editor/code_review.go",
          "line": 1153,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewDiffLayout",
          "anchor": "CodeReviewDiffLayout",
          "decl": "type CodeReviewDiffLayout string",
          "doc": "CodeReviewDiffLayout selects how Go diffs are displayed in CodeReviewView.\n",
          "file": "pkg/editor/code_review.go",
          "line": 24,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CodeReviewDiffUnified",
                  "anchor": "CodeReviewDiffUnified"
                },
                {
                  "name": "CodeReviewDiffSplit",
                  "anchor": "CodeReviewDiffSplit"
                }
              ],
              "decl": "const (\n\t// CodeReviewDiffUnified shows old and new lines in a single stream with two line-number columns.\n\tCodeReviewDiffUnified CodeReviewDiffLayout = \"unified\"\n\t// CodeReviewDiffSplit shows old and new lines side by side.\n\tCodeReviewDiffSplit CodeReviewDiffLayout = \"split\"\n)",
              "doc": "",
              "file": "pkg/editor/code_review.go",
              "line": 26
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewDiffLine",
          "anchor": "CodeReviewDiffLine",
          "decl": "type CodeReviewDiffLine struct {\n\tOldLine int               `json:\"oldLine,omitempty\"`\n\tNewLine int               `json:\"newLine,omitempty\"`\n\tSign    string            `json:\"sign,omitempty\"`\n\tText    string            `json:\"text\"`\n\tKind    DiffLineKind      `json:\"kind\"`\n\tTag     CodeReviewLineTag `json:\"tag,omitempty\"`\n}",
          "doc": "CodeReviewDiffLine is one line in a unified diff computed between Original and Pending.\n",
          "file": "pkg/editor/code_review.go",
          "line": 85,
          "members": [
            {
              "name": "OldLine",
              "anchor": "CodeReviewDiffLine.OldLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewLine",
              "anchor": "CodeReviewDiffLine.NewLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "CodeReviewDiffLine.Sign",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "CodeReviewDiffLine.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "CodeReviewDiffLine.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "CodeReviewDiffLine.Tag",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewFile",
          "anchor": "CodeReviewFile",
          "decl": "type CodeReviewFile struct {\n\tPath          string               `json:\"path\"`\n\tKind          CodeReviewFileKind   `json:\"kind\"`\n\tOriginal      string               `json:\"-\"`\n\tExisted       bool                 `json:\"existed\"`\n\tPreviousRound string               `json:\"-\"`\n\tPending       string               `json:\"-\"`\n\tDelete        bool                 `json:\"delete,omitempty\"`\n\tNote          string               `json:\"note,omitempty\"`\n\tAddedLines    int                  `json:\"addedLines\"`\n\tRemovedLines  int                  `json:\"removedLines\"`\n\tConfirmed     bool                 `json:\"confirmed\"`\n\tApplied       bool                 `json:\"applied\"`\n\tEditedInRound int                  `json:\"editedInRound\"`\n\tDiff          []CodeReviewDiffLine `json:\"diff,omitempty\"`\n}",
          "doc": "CodeReviewFile holds one pending file proposed during an agent turn.\nUntil confirmed (for Go files) and kept, Pending is held strictly in memory so disk and Play keep the old code.\n",
          "file": "pkg/editor/code_review.go",
          "line": 107,
          "members": [
            {
              "name": "Path",
              "anchor": "CodeReviewFile.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "CodeReviewFile.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Original",
              "anchor": "CodeReviewFile.Original",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Existed",
              "anchor": "CodeReviewFile.Existed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreviousRound",
              "anchor": "CodeReviewFile.PreviousRound",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pending",
              "anchor": "CodeReviewFile.Pending",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Delete",
              "anchor": "CodeReviewFile.Delete",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "CodeReviewFile.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AddedLines",
              "anchor": "CodeReviewFile.AddedLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemovedLines",
              "anchor": "CodeReviewFile.RemovedLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Confirmed",
              "anchor": "CodeReviewFile.Confirmed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Applied",
              "anchor": "CodeReviewFile.Applied",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditedInRound",
              "anchor": "CodeReviewFile.EditedInRound",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Diff",
              "anchor": "CodeReviewFile.Diff",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "BaseName",
              "anchor": "CodeReviewFile.BaseName",
              "recv": "*CodeReviewFile",
              "decl": "func (f *CodeReviewFile) BaseName() string",
              "doc": "BaseName returns the file's base name (for example \"patrol.go\").\n",
              "file": "pkg/editor/code_review.go",
              "line": 125
            }
          ]
        },
        {
          "name": "CodeReviewFileKind",
          "anchor": "CodeReviewFileKind",
          "decl": "type CodeReviewFileKind string",
          "doc": "CodeReviewFileKind separates Keep-included data/YAML files from per-file confirmed Go files.\n",
          "file": "pkg/editor/code_review.go",
          "line": 34,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CodeReviewFileYAML",
                  "anchor": "CodeReviewFileYAML"
                },
                {
                  "name": "CodeReviewFileGo",
                  "anchor": "CodeReviewFileGo"
                }
              ],
              "decl": "const (\n\t// CodeReviewFileYAML is a scene, prefab, data table, or other text file included in Keep.\n\tCodeReviewFileYAML CodeReviewFileKind = \"yaml\"\n\t// CodeReviewFileGo is a Go source or test file that requires passing checks and per-file confirmation.\n\tCodeReviewFileGo CodeReviewFileKind = \"go\"\n)",
              "doc": "",
              "file": "pkg/editor/code_review.go",
              "line": 36
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewFixRequest",
          "anchor": "CodeReviewFixRequest",
          "decl": "type CodeReviewFixRequest struct {\n\tTurnID     string\n\tRound      int\n\tPrompt     string\n\tFailure    *CodeReviewTestFailure\n\tCheckError string\n\tFiles      []string\n}",
          "doc": "CodeReviewFixRequest is delivered to Editor.OnAskCodeReviewFix when the author clicks \"Ask the agent to fix\".\n",
          "file": "pkg/editor/code_review.go",
          "line": 204,
          "members": [
            {
              "name": "TurnID",
              "anchor": "CodeReviewFixRequest.TurnID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Round",
              "anchor": "CodeReviewFixRequest.Round",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "CodeReviewFixRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Failure",
              "anchor": "CodeReviewFixRequest.Failure",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckError",
              "anchor": "CodeReviewFixRequest.CheckError",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "CodeReviewFixRequest.Files",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewLineTag",
          "anchor": "CodeReviewLineTag",
          "decl": "type CodeReviewLineTag string",
          "doc": "CodeReviewLineTag annotates notable diff lines (failing line, agent edit, round 2).\n",
          "file": "pkg/editor/code_review.go",
          "line": 55,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CodeReviewTagNone",
                  "anchor": "CodeReviewTagNone"
                },
                {
                  "name": "CodeReviewTagFailsTest",
                  "anchor": "CodeReviewTagFailsTest"
                },
                {
                  "name": "CodeReviewTagFailedHere",
                  "anchor": "CodeReviewTagFailedHere"
                },
                {
                  "name": "CodeReviewTagAgentEdited",
                  "anchor": "CodeReviewTagAgentEdited"
                },
                {
                  "name": "CodeReviewTagRound2",
                  "anchor": "CodeReviewTagRound2"
                }
              ],
              "decl": "const (\n\tCodeReviewTagNone        CodeReviewLineTag = \"\"\n\tCodeReviewTagFailsTest   CodeReviewLineTag = \"fails test\"\n\tCodeReviewTagFailedHere  CodeReviewLineTag = \"failed here\"\n\tCodeReviewTagAgentEdited CodeReviewLineTag = \"agent edited\"\n\tCodeReviewTagRound2      CodeReviewLineTag = \"round 2\"\n)",
              "doc": "",
              "file": "pkg/editor/code_review.go",
              "line": 57
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewProposeRequest",
          "anchor": "CodeReviewProposeRequest",
          "decl": "type CodeReviewProposeRequest struct {\n\tTurnID             string\n\tPrompt             string\n\tRound              int\n\tRoundSummary       string\n\tFailureExplanation string\n\tSuspectFile        string\n\tSuspectLine        int\n\tPlayImpact         string\n\tFiles              []CodeReviewProposedFile\n\tOpen               bool\n\t// PreserveTurn keeps the existing review's TurnID and advances Round when updating an active review.\n\tPreserveTurn bool\n}",
          "doc": "CodeReviewProposeRequest stages or updates pending Go (and optional companion YAML) files for review.\n",
          "file": "pkg/editor/code_review.go",
          "line": 222,
          "members": [
            {
              "name": "TurnID",
              "anchor": "CodeReviewProposeRequest.TurnID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "CodeReviewProposeRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Round",
              "anchor": "CodeReviewProposeRequest.Round",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RoundSummary",
              "anchor": "CodeReviewProposeRequest.RoundSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FailureExplanation",
              "anchor": "CodeReviewProposeRequest.FailureExplanation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SuspectFile",
              "anchor": "CodeReviewProposeRequest.SuspectFile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SuspectLine",
              "anchor": "CodeReviewProposeRequest.SuspectLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlayImpact",
              "anchor": "CodeReviewProposeRequest.PlayImpact",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "CodeReviewProposeRequest.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Open",
              "anchor": "CodeReviewProposeRequest.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreserveTurn",
              "anchor": "CodeReviewProposeRequest.PreserveTurn",
              "kind": "field",
              "doc": "PreserveTurn keeps the existing review's TurnID and advances Round when updating an active review."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewProposedFile",
          "anchor": "CodeReviewProposedFile",
          "decl": "type CodeReviewProposedFile struct {\n\tPath    string `json:\"path\"`\n\tContent string `json:\"content\"`\n\tDelete  bool   `json:\"delete,omitempty\"`\n\tNote    string `json:\"note,omitempty\"`\n}",
          "doc": "CodeReviewProposedFile is one file staged into the Go code review via ProposeCodeReviewFiles or MCP.\n",
          "file": "pkg/editor/code_review.go",
          "line": 214,
          "members": [
            {
              "name": "Path",
              "anchor": "CodeReviewProposedFile.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Content",
              "anchor": "CodeReviewProposedFile.Content",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Delete",
              "anchor": "CodeReviewProposedFile.Delete",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "CodeReviewProposedFile.Note",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewSession",
          "anchor": "CodeReviewSession",
          "decl": "type CodeReviewSession struct {\n\tTurnID             string\n\tPrompt             string\n\tRound              int\n\tRoundSummary       string\n\tPlayImpact         string\n\tFailureExplanation string\n\tFailureSuspectFile string\n\tFailureSuspectLine int\n\tFiles              []*CodeReviewFile\n\tSelectedPath       string\n\tLayout             CodeReviewDiffLayout\n\tChecks             CodeReviewCheckResult\n\tEditGen            uint64\n\tOpen               bool\n\tPaused             bool\n\tKeptYAML           bool\n\tFixRequested       bool\n\tLastErr            string\n\tLastKeepSummary    string\n\tLastRevertSummary  string\n}",
          "doc": "CodeReviewSession holds the live state of reviewing an agent turn's Go and companion YAML changes.\n",
          "file": "pkg/editor/code_review.go",
          "line": 238,
          "members": [
            {
              "name": "TurnID",
              "anchor": "CodeReviewSession.TurnID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "CodeReviewSession.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Round",
              "anchor": "CodeReviewSession.Round",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RoundSummary",
              "anchor": "CodeReviewSession.RoundSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlayImpact",
              "anchor": "CodeReviewSession.PlayImpact",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FailureExplanation",
              "anchor": "CodeReviewSession.FailureExplanation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FailureSuspectFile",
              "anchor": "CodeReviewSession.FailureSuspectFile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FailureSuspectLine",
              "anchor": "CodeReviewSession.FailureSuspectLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "CodeReviewSession.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedPath",
              "anchor": "CodeReviewSession.SelectedPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layout",
              "anchor": "CodeReviewSession.Layout",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checks",
              "anchor": "CodeReviewSession.Checks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditGen",
              "anchor": "CodeReviewSession.EditGen",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Open",
              "anchor": "CodeReviewSession.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Paused",
              "anchor": "CodeReviewSession.Paused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptYAML",
              "anchor": "CodeReviewSession.KeptYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FixRequested",
              "anchor": "CodeReviewSession.FixRequested",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastErr",
              "anchor": "CodeReviewSession.LastErr",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastKeepSummary",
              "anchor": "CodeReviewSession.LastKeepSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastRevertSummary",
              "anchor": "CodeReviewSession.LastRevertSummary",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ConfirmedGoFiles",
              "anchor": "CodeReviewSession.ConfirmedGoFiles",
              "recv": "*CodeReviewSession",
              "decl": "func (s *CodeReviewSession) ConfirmedGoFiles() []*CodeReviewFile",
              "doc": "ConfirmedGoFiles returns Go files confirmed by the author and ready to write on Keep.\n",
              "file": "pkg/editor/code_review.go",
              "line": 304
            },
            {
              "name": "FindFile",
              "anchor": "CodeReviewSession.FindFile",
              "recv": "*CodeReviewSession",
              "decl": "func (s *CodeReviewSession) FindFile(relPath string) *CodeReviewFile",
              "doc": "FindFile returns the file matching relPath, or nil.\n",
              "file": "pkg/editor/code_review.go",
              "line": 341
            },
            {
              "name": "GoFiles",
              "anchor": "CodeReviewSession.GoFiles",
              "recv": "*CodeReviewSession",
              "decl": "func (s *CodeReviewSession) GoFiles() []*CodeReviewFile",
              "doc": "GoFiles returns all Go files in the review that have not yet been applied to disk.\n",
              "file": "pkg/editor/code_review.go",
              "line": 276
            },
            {
              "name": "SelectedFile",
              "anchor": "CodeReviewSession.SelectedFile",
              "recv": "*CodeReviewSession",
              "decl": "func (s *CodeReviewSession) SelectedFile() *CodeReviewFile",
              "doc": "SelectedFile returns the currently focused file in the review, falling back to the first Go or YAML file.\n",
              "file": "pkg/editor/code_review.go",
              "line": 318
            },
            {
              "name": "WaitingGoFiles",
              "anchor": "CodeReviewSession.WaitingGoFiles",
              "recv": "*CodeReviewSession",
              "decl": "func (s *CodeReviewSession) WaitingGoFiles() []*CodeReviewFile",
              "doc": "WaitingGoFiles returns Go files that are neither confirmed nor applied.\n",
              "file": "pkg/editor/code_review.go",
              "line": 290
            },
            {
              "name": "YAMLFiles",
              "anchor": "CodeReviewSession.YAMLFiles",
              "recv": "*CodeReviewSession",
              "decl": "func (s *CodeReviewSession) YAMLFiles() []*CodeReviewFile",
              "doc": "YAMLFiles returns the pending/unapplied YAML/prefab/data files included in Keep.\n",
              "file": "pkg/editor/code_review.go",
              "line": 262
            }
          ]
        },
        {
          "name": "CodeReviewSplitRow",
          "anchor": "CodeReviewSplitRow",
          "decl": "type CodeReviewSplitRow struct {\n\tOldLine   int\n\tLeftText  string\n\tLeftKind  DiffLineKind\n\tNewLine   int\n\tRightText string\n\tRightKind DiffLineKind\n\tRightTag  CodeReviewLineTag\n}",
          "doc": "CodeReviewSplitRow pairs one left (old) slot and one right (new) slot for Split diff layout.\n",
          "file": "pkg/editor/code_review.go",
          "line": 95,
          "members": [
            {
              "name": "OldLine",
              "anchor": "CodeReviewSplitRow.OldLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LeftText",
              "anchor": "CodeReviewSplitRow.LeftText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LeftKind",
              "anchor": "CodeReviewSplitRow.LeftKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewLine",
              "anchor": "CodeReviewSplitRow.NewLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RightText",
              "anchor": "CodeReviewSplitRow.RightText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RightKind",
              "anchor": "CodeReviewSplitRow.RightKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RightTag",
              "anchor": "CodeReviewSplitRow.RightTag",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildCodeReviewSplitRows",
              "anchor": "BuildCodeReviewSplitRows",
              "decl": "func BuildCodeReviewSplitRows(lines []CodeReviewDiffLine) []CodeReviewSplitRow",
              "doc": "BuildCodeReviewSplitRows transforms unified diff lines into side-by-side Split rows matching ReviewCode.dc.html.\n",
              "file": "pkg/editor/code_review.go",
              "line": 2206
            }
          ],
          "methods": []
        },
        {
          "name": "CodeReviewTestFailure",
          "anchor": "CodeReviewTestFailure",
          "decl": "type CodeReviewTestFailure struct {\n\tPackage     string `json:\"package,omitempty\"`\n\tTestName    string `json:\"testName\"`\n\tFile        string `json:\"file,omitempty\"`\n\tLine        int    `json:\"line,omitempty\"`\n\tMessage     string `json:\"message\"`\n\tExplanation string `json:\"explanation,omitempty\"`\n\tSuspectFile string `json:\"suspectFile,omitempty\"`\n\tSuspectLine int    `json:\"suspectLine,omitempty\"`\n}",
          "doc": "CodeReviewTestFailure describes a failing Go test (or check diagnostic) surfaced in the failure card.\n",
          "file": "pkg/editor/code_review.go",
          "line": 133,
          "members": [
            {
              "name": "Package",
              "anchor": "CodeReviewTestFailure.Package",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestName",
              "anchor": "CodeReviewTestFailure.TestName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "CodeReviewTestFailure.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "CodeReviewTestFailure.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "CodeReviewTestFailure.Message",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Explanation",
              "anchor": "CodeReviewTestFailure.Explanation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SuspectFile",
              "anchor": "CodeReviewTestFailure.SuspectFile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SuspectLine",
              "anchor": "CodeReviewTestFailure.SuspectLine",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ColliderHandle3D",
          "anchor": "ColliderHandle3D",
          "decl": "type ColliderHandle3D struct {\n\t// Component is \"collider3d\" or \"trigger3d\".\n\tComponent string\n\t// Shape is \"box\", \"sphere\", \"capsule\", or \"cylinder\".\n\tShape string\n\t// Field is the component field adjusted by dragging this handle: \"width\", \"height\", \"depth\", or \"radius\".\n\tField string\n\t// Axis is the 3D gizmo axis (Axis3DX, Axis3DY, or Axis3DZ) mapped to this handle.\n\tAxis GizmoAxis3D\n\t// Sign is +1 for the positive local axis end and -1 for the negative end.\n\tSign float32\n\t// Pos is the handle's world-space position on the collider surface.\n\tPos [3]float32\n\t// Dir is the handle's world-space outward unit direction.\n\tDir [3]float32\n}",
          "doc": "ColliderHandle3D describes one draggable size handle of a 3D collider or trigger\ncomponent in world space, edited through the 3D gizmo API in Gizmo3DCollider mode.\n",
          "file": "pkg/editor/collider3d_gizmo.go",
          "line": 35,
          "members": [
            {
              "name": "Component",
              "anchor": "ColliderHandle3D.Component",
              "kind": "field",
              "doc": "Component is \"collider3d\" or \"trigger3d\"."
            },
            {
              "name": "Shape",
              "anchor": "ColliderHandle3D.Shape",
              "kind": "field",
              "doc": "Shape is \"box\", \"sphere\", \"capsule\", or \"cylinder\"."
            },
            {
              "name": "Field",
              "anchor": "ColliderHandle3D.Field",
              "kind": "field",
              "doc": "Field is the component field adjusted by dragging this handle: \"width\", \"height\", \"depth\", or \"radius\"."
            },
            {
              "name": "Axis",
              "anchor": "ColliderHandle3D.Axis",
              "kind": "field",
              "doc": "Axis is the 3D gizmo axis (Axis3DX, Axis3DY, or Axis3DZ) mapped to this handle."
            },
            {
              "name": "Sign",
              "anchor": "ColliderHandle3D.Sign",
              "kind": "field",
              "doc": "Sign is +1 for the positive local axis end and -1 for the negative end."
            },
            {
              "name": "Pos",
              "anchor": "ColliderHandle3D.Pos",
              "kind": "field",
              "doc": "Pos is the handle's world-space position on the collider surface."
            },
            {
              "name": "Dir",
              "anchor": "ColliderHandle3D.Dir",
              "kind": "field",
              "doc": "Dir is the handle's world-space outward unit direction."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Command",
          "anchor": "Command",
          "decl": "type Command interface {\n\tDo()\n\tUndo()\n\tLabel() string\n}",
          "doc": "Command is a reversible edit executed through History: a change to the open scene, project or clip, or a move of the project's files (MoveFile).\n",
          "file": "pkg/editor/history.go",
          "line": 209,
          "members": [
            {
              "name": "Do",
              "anchor": "Command.Do",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Undo",
              "anchor": "Command.Undo",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "Command.Label",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CommandAuthor",
          "anchor": "CommandAuthor",
          "decl": "type CommandAuthor string",
          "doc": "CommandAuthor identifies who originated a History command (used by agent turns and UndoAuthor/RedoAuthor).\n",
          "file": "pkg/editor/history.go",
          "line": 28,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AuthorPerson",
                  "anchor": "AuthorPerson"
                },
                {
                  "name": "AuthorAgent",
                  "anchor": "AuthorAgent"
                },
                {
                  "name": "AuthorExternal",
                  "anchor": "AuthorExternal"
                }
              ],
              "decl": "const (\n\t// AuthorPerson is an ordinary edit made directly by the person in the editor.\n\tAuthorPerson CommandAuthor = \"person\"\n\t// AuthorAgent is an agent turn kept as one undo step.\n\tAuthorAgent CommandAuthor = \"agent\"\n\t// AuthorExternal is a change observed outside the editor (for example a git checkout or external reload).\n\tAuthorExternal CommandAuthor = \"external\"\n)",
              "doc": "",
              "file": "pkg/editor/history.go",
              "line": 30
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CommitDraft",
          "anchor": "CommitDraft",
          "decl": "type CommitDraft struct {\n\tSummary     string `json:\"summary\"`\n\tDescription string `json:\"description\"`\n\tProvenance  string `json:\"provenance,omitempty\"`\n\tAttribution string `json:\"attribution,omitempty\"`\n}",
          "doc": "CommitDraft is a drafted commit message and provenance metadata for the Changes commit card.\n",
          "file": "pkg/editor/changes.go",
          "line": 178,
          "members": [
            {
              "name": "Summary",
              "anchor": "CommitDraft.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Description",
              "anchor": "CommitDraft.Description",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Provenance",
              "anchor": "CommitDraft.Provenance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Attribution",
              "anchor": "CommitDraft.Attribution",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultCommitDraft",
              "anchor": "DefaultCommitDraft",
              "decl": "func DefaultCommitDraft(req CommitDraftRequest) CommitDraft",
              "doc": "DefaultCommitDraft builds a deterministic, human-readable commit summary and description from the included files.\n",
              "file": "pkg/editor/changes.go",
              "line": 2018
            }
          ],
          "methods": []
        },
        {
          "name": "CommitDraftRequest",
          "anchor": "CommitDraftRequest",
          "decl": "type CommitDraftRequest struct {\n\tRepoDir         string\n\tBranch          string\n\tHeadSHA         string\n\tFiles           []ChangedFile\n\tReviews         int\n\tPlaytestSummary string\n\tAgentRequests   int\n\tChecks          ChangesCheckStatus\n}",
          "doc": "CommitDraftRequest supplies the included files and review/playtest context to Editor.CommitMessageDrafter.\n",
          "file": "pkg/editor/changes.go",
          "line": 166,
          "members": [
            {
              "name": "RepoDir",
              "anchor": "CommitDraftRequest.RepoDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Branch",
              "anchor": "CommitDraftRequest.Branch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeadSHA",
              "anchor": "CommitDraftRequest.HeadSHA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "CommitDraftRequest.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reviews",
              "anchor": "CommitDraftRequest.Reviews",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlaytestSummary",
              "anchor": "CommitDraftRequest.PlaytestSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentRequests",
              "anchor": "CommitDraftRequest.AgentRequests",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checks",
              "anchor": "CommitDraftRequest.Checks",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CommitMilestone",
          "anchor": "CommitMilestone",
          "decl": "type CommitMilestone struct {\n\tSHA             string    `json:\"sha\"`\n\tSummary         string    `json:\"summary\"`\n\tDescription     string    `json:\"description,omitempty\"`\n\tBranch          string    `json:\"branch,omitempty\"`\n\tFiles           []string  `json:\"files,omitempty\"`\n\tTimestamp       time.Time `json:\"timestamp,omitempty\"`\n\tPushed          bool      `json:\"pushed,omitempty\"`\n\tAgentRequests   int       `json:\"agentRequests,omitempty\"`\n\tPlaytestSummary string    `json:\"playtestSummary,omitempty\"`\n}",
          "doc": "CommitMilestone records a commit created from the Changes panel so History and the Changes panel can display it.\n",
          "file": "pkg/editor/changes.go",
          "line": 186,
          "members": [
            {
              "name": "SHA",
              "anchor": "CommitMilestone.SHA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "CommitMilestone.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Description",
              "anchor": "CommitMilestone.Description",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Branch",
              "anchor": "CommitMilestone.Branch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "CommitMilestone.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Timestamp",
              "anchor": "CommitMilestone.Timestamp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pushed",
              "anchor": "CommitMilestone.Pushed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentRequests",
              "anchor": "CommitMilestone.AgentRequests",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlaytestSummary",
              "anchor": "CommitMilestone.PlaytestSummary",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ComponentCategory",
          "anchor": "ComponentCategory",
          "decl": "type ComponentCategory string",
          "doc": "ComponentCategory groups registered component types in the Inspector's Add component picker.\n",
          "file": "pkg/editor/inspector_sections.go",
          "line": 48,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ComponentCategoryGameplay",
                  "anchor": "ComponentCategoryGameplay"
                },
                {
                  "name": "ComponentCategoryPhysics",
                  "anchor": "ComponentCategoryPhysics"
                },
                {
                  "name": "ComponentCategoryAudioVisual",
                  "anchor": "ComponentCategoryAudioVisual"
                }
              ],
              "decl": "const (\n\tComponentCategoryGameplay    ComponentCategory = \"GAMEPLAY\"\n\tComponentCategoryPhysics     ComponentCategory = \"PHYSICS\"\n\tComponentCategoryAudioVisual ComponentCategory = \"AUDIO AND VISUAL\"\n)",
              "doc": "",
              "file": "pkg/editor/inspector_sections.go",
              "line": 50
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ComponentCategoryOf",
              "anchor": "ComponentCategoryOf",
              "decl": "func ComponentCategoryOf(name string) ComponentCategory",
              "doc": "ComponentCategoryOf assigns a registered component type name to one of the inspector's three\nAdd component groups: GAMEPLAY, PHYSICS, or AUDIO AND VISUAL.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 665
            }
          ],
          "methods": []
        },
        {
          "name": "ComponentGizmo3D",
          "anchor": "ComponentGizmo3D",
          "decl": "type ComponentGizmo3D struct {\n\t// Component is the component type name this gizmo handles (as keyed in ObjectDoc.Components), with no control characters.\n\tComponent string\n\t// Handles returns the object-space handles and visual primitives for objectID.\n\tHandles func(ed *Editor, objectID string) []GizmoHandle3D\n\t// Drag applies a handle drag in object space. Because each move rolls back the previous\n\t// preview before calling Drag, ed.ComponentField reads the exact pre-drag field values, and\n\t// all edits made through Editor or Editor.History during the drag commit as one undo step.\n\tDrag func(ed *Editor, drag GizmoDrag3D) error\n\t// ShowUnselected, when true, also draws this gizmo's primitives on visible unselected objects\n\t// (only the selected object's non-DisplayOnly handles can be dragged).\n\tShowUnselected bool\n}",
          "doc": "ComponentGizmo3D registers 3D viewport handles and drag editing for one component type.\nHandles returns object-space primitives (points, lines, boxes) for objectID when it carries\nComponent. Drag applies a handle drag by writing component fields through Editor (such as\nSetComponentField or Editor.History); the editor previews each move live, rolls back cleanly\non Escape or cancel, and commits the whole drag as a single undo step in Editor.History.\n",
          "file": "pkg/editor/gizmo3d.go",
          "line": 281,
          "members": [
            {
              "name": "Component",
              "anchor": "ComponentGizmo3D.Component",
              "kind": "field",
              "doc": "Component is the component type name this gizmo handles (as keyed in ObjectDoc.Components), with no control characters."
            },
            {
              "name": "Handles",
              "anchor": "ComponentGizmo3D.Handles",
              "kind": "field",
              "doc": "Handles returns the object-space handles and visual primitives for objectID."
            },
            {
              "name": "Drag",
              "anchor": "ComponentGizmo3D.Drag",
              "kind": "field",
              "doc": "Drag applies a handle drag in object space. Because each move rolls back the previous\npreview before calling Drag, ed.ComponentField reads the exact pre-drag field values, and\nall edits made through Editor or Editor.History during the drag commit as one undo step."
            },
            {
              "name": "ShowUnselected",
              "anchor": "ComponentGizmo3D.ShowUnselected",
              "kind": "field",
              "doc": "ShowUnselected, when true, also draws this gizmo's primitives on visible unselected objects\n(only the selected object's non-DisplayOnly handles can be dragged)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ComponentGroup",
          "anchor": "ComponentGroup",
          "decl": "type ComponentGroup struct {\n\tCategory ComponentCategory\n\tNames    []string\n}",
          "doc": "ComponentGroup is one titled section of the Add component picker.\n",
          "file": "pkg/editor/inspector_sections.go",
          "line": 57,
          "members": [
            {
              "name": "Category",
              "anchor": "ComponentGroup.Category",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Names",
              "anchor": "ComponentGroup.Names",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ComposerPlaytestRun",
          "anchor": "ComposerPlaytestRun",
          "decl": "type ComposerPlaytestRun struct {\n\tID      string\n\tName    string\n\tSummary string\n\tDetail  string\n}",
          "doc": "ComposerPlaytestRun is a lightweight playtest run entry surfaced in the @-mention Playtest runs group.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 211,
          "members": [
            {
              "name": "ID",
              "anchor": "ComposerPlaytestRun.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "ComposerPlaytestRun.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "ComposerPlaytestRun.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "ComposerPlaytestRun.Detail",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConnectStep",
          "anchor": "ConnectStep",
          "decl": "type ConnectStep string",
          "doc": "ConnectStep identifies a specific step inside the Connect an agent dialog so Troubleshoot reopens directly at the step that failed.\n",
          "file": "pkg/editor/agent.go",
          "line": 75,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ConnectStepChoice",
                  "anchor": "ConnectStepChoice"
                },
                {
                  "name": "ConnectStepInstall",
                  "anchor": "ConnectStepInstall"
                },
                {
                  "name": "ConnectStepWaiting",
                  "anchor": "ConnectStepWaiting"
                },
                {
                  "name": "ConnectStepAPIKey",
                  "anchor": "ConnectStepAPIKey"
                }
              ],
              "decl": "const (\n\t// ConnectStepChoice is the initial connection-mode selection step.\n\tConnectStepChoice ConnectStep = \"choice\"\n\t// ConnectStepInstall is the project MCP install step (`go tool game mcp install`).\n\tConnectStepInstall ConnectStep = \"install\"\n\t// ConnectStepWaiting is the waiting-for-MCP-connection step.\n\tConnectStepWaiting ConnectStep = \"waiting\"\n\t// ConnectStepAPIKey is the built-in API key configuration step.\n\tConnectStepAPIKey ConnectStep = \"apikey\"\n)",
              "doc": "",
              "file": "pkg/editor/agent.go",
              "line": 77
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConnectedDevice",
          "anchor": "ConnectedDevice",
          "decl": "type ConnectedDevice struct {\n\tID        string `json:\"id\"`\n\tName      string `json:\"name\"`\n\tPlatform  string `json:\"platform\"`\n\tTransport string `json:\"transport\"`\n\tOnline    bool   `json:\"online\"`\n}",
          "doc": "ConnectedDevice describes one physical or emulated USB device reported by `adb` / DeviceDiscoverer.\n",
          "file": "pkg/editor/build_device.go",
          "line": 62,
          "members": [
            {
              "name": "ID",
              "anchor": "ConnectedDevice.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "ConnectedDevice.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Platform",
              "anchor": "ConnectedDevice.Platform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transport",
              "anchor": "ConnectedDevice.Transport",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Online",
              "anchor": "ConnectedDevice.Online",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConnectionEntry",
          "anchor": "ConnectionEntry",
          "decl": "type ConnectionEntry struct {\n\tIndex int\n\tConn  sceneformat.ConnectionDoc\n}",
          "doc": "ConnectionEntry pairs a scene connection with its index in Doc.Connections.\n",
          "file": "pkg/editor/connections.go",
          "line": 35,
          "members": [
            {
              "name": "Index",
              "anchor": "ConnectionEntry.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Conn",
              "anchor": "ConnectionEntry.Conn",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ContextBreakdownRow",
          "anchor": "ContextBreakdownRow",
          "decl": "type ContextBreakdownRow struct {\n\tKey       string\n\tLabel     string\n\tTokens    int\n\tPercent   int\n\tHighlight bool // true when Percent > 30 (Threads.dc.html)\n}",
          "doc": "ContextBreakdownRow is one bar in the context meter breakdown popover.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 231,
          "members": [
            {
              "name": "Key",
              "anchor": "ContextBreakdownRow.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "ContextBreakdownRow.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tokens",
              "anchor": "ContextBreakdownRow.Tokens",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Percent",
              "anchor": "ContextBreakdownRow.Percent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Highlight",
              "anchor": "ContextBreakdownRow.Highlight",
              "kind": "field",
              "doc": "true when Percent > 30 (Threads.dc.html)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ContextChipKind",
          "anchor": "ContextChipKind",
          "decl": "type ContextChipKind string",
          "doc": "ContextChipKind distinguishes what kind of context item a chip represents.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 96,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ChipKindObject",
                  "anchor": "ChipKindObject"
                },
                {
                  "name": "ChipKindWholeScene",
                  "anchor": "ChipKindWholeScene"
                },
                {
                  "name": "ChipKindFile",
                  "anchor": "ChipKindFile"
                },
                {
                  "name": "ChipKindPrefab",
                  "anchor": "ChipKindPrefab"
                },
                {
                  "name": "ChipKindAsset",
                  "anchor": "ChipKindAsset"
                },
                {
                  "name": "ChipKindProblem",
                  "anchor": "ChipKindProblem"
                },
                {
                  "name": "ChipKindPlaytestRun",
                  "anchor": "ChipKindPlaytestRun"
                },
                {
                  "name": "ChipKindHistoryStep",
                  "anchor": "ChipKindHistoryStep"
                },
                {
                  "name": "ChipKindRule",
                  "anchor": "ChipKindRule"
                },
                {
                  "name": "ChipKindAlways",
                  "anchor": "ChipKindAlways"
                },
                {
                  "name": "ChipKindViewportImage",
                  "anchor": "ChipKindViewportImage"
                }
              ],
              "decl": "const (\n\tChipKindObject        ContextChipKind = \"object\"\n\tChipKindWholeScene    ContextChipKind = \"scene\"\n\tChipKindFile          ContextChipKind = \"file\"\n\tChipKindPrefab        ContextChipKind = \"prefab\"\n\tChipKindAsset         ContextChipKind = \"asset\"\n\tChipKindProblem       ContextChipKind = \"problem\"\n\tChipKindPlaytestRun   ContextChipKind = \"playtest\"\n\tChipKindHistoryStep   ContextChipKind = \"history\"\n\tChipKindRule          ContextChipKind = \"rule\"\n\tChipKindAlways        ContextChipKind = \"always\"\n\tChipKindViewportImage ContextChipKind = \"viewport_image\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_composer.go",
              "line": 98
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ContextMeterLevel",
          "anchor": "ContextMeterLevel",
          "decl": "type ContextMeterLevel int",
          "doc": "ContextMeterLevel classifies the context ring visual state (Threads.dc.html).\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 219,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ContextMeterNormal",
                  "anchor": "ContextMeterNormal"
                },
                {
                  "name": "ContextMeterWarning",
                  "anchor": "ContextMeterWarning"
                },
                {
                  "name": "ContextMeterCritical",
                  "anchor": "ContextMeterCritical"
                }
              ],
              "decl": "const (\n\t// ContextMeterNormal is used at <= 70% context usage (muted ring, strong text).\n\tContextMeterNormal ContextMeterLevel = iota\n\t// ContextMeterWarning is used at 71–89% context usage (changed/amber ring and percentage).\n\tContextMeterWarning\n\t// ContextMeterCritical is used at >= 90% context usage (\"compact now\", warning fill/edge/fg).\n\tContextMeterCritical\n)",
              "doc": "",
              "file": "pkg/editor/agent_composer.go",
              "line": 221
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ContextMeterSnapshot",
          "anchor": "ContextMeterSnapshot",
          "decl": "type ContextMeterSnapshot struct {\n\tUsedTokens          int\n\tLimitTokens         int\n\tPercent             int\n\tLevel               ContextMeterLevel\n\tRows                []ContextBreakdownRow\n\tCompactableRequests int\n\tHasCompactedSummary bool\n\tCompactedSummary    string\n}",
          "doc": "ContextMeterSnapshot is the computed state for the context ring and breakdown popover.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 240,
          "members": [
            {
              "name": "UsedTokens",
              "anchor": "ContextMeterSnapshot.UsedTokens",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LimitTokens",
              "anchor": "ContextMeterSnapshot.LimitTokens",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Percent",
              "anchor": "ContextMeterSnapshot.Percent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Level",
              "anchor": "ContextMeterSnapshot.Level",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "ContextMeterSnapshot.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CompactableRequests",
              "anchor": "ContextMeterSnapshot.CompactableRequests",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasCompactedSummary",
              "anchor": "ContextMeterSnapshot.HasCompactedSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CompactedSummary",
              "anchor": "ContextMeterSnapshot.CompactedSummary",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CreateProjectRequest",
          "anchor": "CreateProjectRequest",
          "decl": "type CreateProjectRequest struct {\n\t// Name is the project name (also used as the directory name inside ParentDir when Dir is empty).\n\tName string\n\t// ParentDir is the parent folder containing the new project folder (defaults to ~/games when Dir is empty).\n\tParentDir string\n\t// Dir is the explicit target directory; when empty, filepath.Join(ParentDir, Name) is used.\n\tDir string\n\t// Module is the optional Go module path passed to `game new -module`.\n\tModule string\n\t// Template is the template identifier passed to `game new -template` (defaults to the first registered template).\n\tTemplate string\n}",
          "doc": "CreateProjectRequest describes a new project to scaffold from a template and open in the editor.\n",
          "file": "pkg/editor/start_screen.go",
          "line": 73,
          "members": [
            {
              "name": "Name",
              "anchor": "CreateProjectRequest.Name",
              "kind": "field",
              "doc": "Name is the project name (also used as the directory name inside ParentDir when Dir is empty)."
            },
            {
              "name": "ParentDir",
              "anchor": "CreateProjectRequest.ParentDir",
              "kind": "field",
              "doc": "ParentDir is the parent folder containing the new project folder (defaults to ~/games when Dir is empty)."
            },
            {
              "name": "Dir",
              "anchor": "CreateProjectRequest.Dir",
              "kind": "field",
              "doc": "Dir is the explicit target directory; when empty, filepath.Join(ParentDir, Name) is used."
            },
            {
              "name": "Module",
              "anchor": "CreateProjectRequest.Module",
              "kind": "field",
              "doc": "Module is the optional Go module path passed to `game new -module`."
            },
            {
              "name": "Template",
              "anchor": "CreateProjectRequest.Template",
              "kind": "field",
              "doc": "Template is the template identifier passed to `game new -template` (defaults to the first registered template)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "TargetDir",
              "anchor": "CreateProjectRequest.TargetDir",
              "recv": "CreateProjectRequest",
              "decl": "func (r CreateProjectRequest) TargetDir() string",
              "doc": "TargetDir returns the full directory path where the new project will be created.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 87
            }
          ]
        },
        {
          "name": "CutsceneChange",
          "anchor": "CutsceneChange",
          "decl": "type CutsceneChange struct {\n\tID         string\n\tKind       CutsceneChangeKind\n\tSign       string // \"+\", \"~\", or \"-\"\n\tTitle      string\n\tDetail     string\n\tTrackKey   string\n\tClipKeys   []string\n\tFocusTrack int\n\tFocusClip  int\n\tMetaChange bool\n\tReverted   bool\n}",
          "doc": "CutsceneChange is one independently revertible/restorable change inside an open cutscene review.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 58,
          "members": [
            {
              "name": "ID",
              "anchor": "CutsceneChange.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "CutsceneChange.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "CutsceneChange.Sign",
              "kind": "field",
              "doc": "\"+\", \"~\", or \"-\""
            },
            {
              "name": "Title",
              "anchor": "CutsceneChange.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "CutsceneChange.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TrackKey",
              "anchor": "CutsceneChange.TrackKey",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClipKeys",
              "anchor": "CutsceneChange.ClipKeys",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusTrack",
              "anchor": "CutsceneChange.FocusTrack",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusClip",
              "anchor": "CutsceneChange.FocusClip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetaChange",
              "anchor": "CutsceneChange.MetaChange",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "CutsceneChange.Reverted",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DiffCutsceneChanges",
              "anchor": "DiffCutsceneChanges",
              "decl": "func DiffCutsceneChanges(before, after *cutscene.Cutscene) []CutsceneChange",
              "doc": "DiffCutsceneChanges computes the ordered, independently revertible changes between before and after cutscenes.\nAdjacent or overlapping timing edits on the same non-sound track are grouped into one atomic change so reverting any subset always leaves a valid, non-overlapping cutscene.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 2083
            }
          ],
          "methods": []
        },
        {
          "name": "CutsceneChangeKind",
          "anchor": "CutsceneChangeKind",
          "decl": "type CutsceneChangeKind int",
          "doc": "CutsceneChangeKind classifies how an agent review changed a cutscene track or clip.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 48,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CutsceneChangeNone",
                  "anchor": "CutsceneChangeNone"
                },
                {
                  "name": "CutsceneChangeAdded",
                  "anchor": "CutsceneChangeAdded"
                },
                {
                  "name": "CutsceneChangeChanged",
                  "anchor": "CutsceneChangeChanged"
                },
                {
                  "name": "CutsceneChangeRemoved",
                  "anchor": "CutsceneChangeRemoved"
                }
              ],
              "decl": "const (\n\tCutsceneChangeNone CutsceneChangeKind = iota\n\tCutsceneChangeAdded\n\tCutsceneChangeChanged\n\tCutsceneChangeRemoved\n)",
              "doc": "",
              "file": "pkg/editor/cutscene.go",
              "line": 50
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneEntry",
          "anchor": "CutsceneEntry",
          "decl": "type CutsceneEntry struct {\n\tPath     string\n\tName     string\n\tKind     cutscene.Kind\n\tLength   time.Duration\n\tInReview bool\n}",
          "doc": "CutsceneEntry describes one cutscene file shown in the cutscene timeline's left rail.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 31,
          "members": [
            {
              "name": "Path",
              "anchor": "CutsceneEntry.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "CutsceneEntry.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "CutsceneEntry.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Length",
              "anchor": "CutsceneEntry.Length",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InReview",
              "anchor": "CutsceneEntry.InReview",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneLineEntry",
          "anchor": "CutsceneLineEntry",
          "decl": "type CutsceneLineEntry struct {\n\tID    string\n\tEn    string\n\tZh    string\n\tAdded bool\n}",
          "doc": "CutsceneLineEntry describes one localized dialogue line shown in the left rail and dialogue inspector.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 40,
          "members": [
            {
              "name": "ID",
              "anchor": "CutsceneLineEntry.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "En",
              "anchor": "CutsceneLineEntry.En",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zh",
              "anchor": "CutsceneLineEntry.Zh",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Added",
              "anchor": "CutsceneLineEntry.Added",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneReviewRequest",
          "anchor": "CutsceneReviewRequest",
          "decl": "type CutsceneReviewRequest struct {\n\t// Prompt is the user request that produced the agent's changes (for example \"make the floor 1 intro reveal a slime and hint at the lever\").\n\tPrompt string\n\t// Path is the file path on disk (or empty for an in-memory cutscene).\n\tPath string\n\t// Base is the cutscene before the agent's changes; when nil, the currently open cutscene is used.\n\tBase *cutscene.Cutscene\n\t// Proposed is the agent's proposed cutscene document (required).\n\tProposed *cutscene.Cutscene\n\t// Changes optionally supplies custom grouped changes; when empty, DiffCutsceneChanges computes them automatically.\n\tChanges []CutsceneChange\n}",
          "doc": "CutsceneReviewRequest opens an agent cutscene review comparing Base against Proposed.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 81,
          "members": [
            {
              "name": "Prompt",
              "anchor": "CutsceneReviewRequest.Prompt",
              "kind": "field",
              "doc": "Prompt is the user request that produced the agent's changes (for example \"make the floor 1 intro reveal a slime and hint at the lever\")."
            },
            {
              "name": "Path",
              "anchor": "CutsceneReviewRequest.Path",
              "kind": "field",
              "doc": "Path is the file path on disk (or empty for an in-memory cutscene)."
            },
            {
              "name": "Base",
              "anchor": "CutsceneReviewRequest.Base",
              "kind": "field",
              "doc": "Base is the cutscene before the agent's changes; when nil, the currently open cutscene is used."
            },
            {
              "name": "Proposed",
              "anchor": "CutsceneReviewRequest.Proposed",
              "kind": "field",
              "doc": "Proposed is the agent's proposed cutscene document (required)."
            },
            {
              "name": "Changes",
              "anchor": "CutsceneReviewRequest.Changes",
              "kind": "field",
              "doc": "Changes optionally supplies custom grouped changes; when empty, DiffCutsceneChanges computes them automatically."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneReviewView",
          "anchor": "CutsceneReviewView",
          "decl": "type CutsceneReviewView int",
          "doc": "CutsceneReviewView selects whether the cutscene review displays the Before or After state.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 73,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CutsceneReviewAfter",
                  "anchor": "CutsceneReviewAfter"
                },
                {
                  "name": "CutsceneReviewBefore",
                  "anchor": "CutsceneReviewBefore"
                }
              ],
              "decl": "const (\n\tCutsceneReviewAfter CutsceneReviewView = iota\n\tCutsceneReviewBefore\n)",
              "doc": "",
              "file": "pkg/editor/cutscene.go",
              "line": 75
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneThumbActor",
          "anchor": "CutsceneThumbActor",
          "decl": "type CutsceneThumbActor struct {\n\tID   string\n\tX, Y float32\n}",
          "doc": "CutsceneThumbActor is one actor's sampled position in a timeline strip thumbnail.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 95,
          "members": [
            {
              "name": "ID",
              "anchor": "CutsceneThumbActor.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "CutsceneThumbActor.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "CutsceneThumbActor.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneThumbSample",
          "anchor": "CutsceneThumbSample",
          "decl": "type CutsceneThumbSample struct {\n\tTime   time.Duration\n\tCamX   float32\n\tCamY   float32\n\tZoom   float32\n\tActors []CutsceneThumbActor\n}",
          "doc": "CutsceneThumbSample holds the sampled camera and actor poses for one frame in the timeline thumbnail strip.\n",
          "file": "pkg/editor/cutscene.go",
          "line": 101,
          "members": [
            {
              "name": "Time",
              "anchor": "CutsceneThumbSample.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CamX",
              "anchor": "CutsceneThumbSample.CamX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CamY",
              "anchor": "CutsceneThumbSample.CamY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zoom",
              "anchor": "CutsceneThumbSample.Zoom",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actors",
              "anchor": "CutsceneThumbSample.Actors",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableColumn",
          "anchor": "DataTableColumn",
          "decl": "type DataTableColumn struct {\n\tName string\n\tKind datatable.ValueKind\n}",
          "doc": "DataTableColumn describes a column shown in the Data Table panel grid.\n",
          "file": "pkg/editor/datatable.go",
          "line": 42,
          "members": [
            {
              "name": "Name",
              "anchor": "DataTableColumn.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "DataTableColumn.Kind",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewCellDiff",
          "anchor": "DataTableReviewCellDiff",
          "decl": "type DataTableReviewCellDiff struct {\n\tColumn      string\n\tKind        datatable.ValueKind\n\tBase        datatable.Value\n\tHasBase     bool\n\tProposed    datatable.Value\n\tHasProposed bool\n\tCurrent     datatable.Value\n\tHasCurrent  bool\n\tChanged     bool\n\tDeltaPct    int\n\tHasDeltaPct bool\n\tUserEdited  bool\n}",
          "doc": "DataTableReviewCellDiff describes the original, proposed, and active value of one cell in a reviewed record.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 74,
          "members": [
            {
              "name": "Column",
              "anchor": "DataTableReviewCellDiff.Column",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "DataTableReviewCellDiff.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Base",
              "anchor": "DataTableReviewCellDiff.Base",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasBase",
              "anchor": "DataTableReviewCellDiff.HasBase",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Proposed",
              "anchor": "DataTableReviewCellDiff.Proposed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasProposed",
              "anchor": "DataTableReviewCellDiff.HasProposed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Current",
              "anchor": "DataTableReviewCellDiff.Current",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasCurrent",
              "anchor": "DataTableReviewCellDiff.HasCurrent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "DataTableReviewCellDiff.Changed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaPct",
              "anchor": "DataTableReviewCellDiff.DeltaPct",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasDeltaPct",
              "anchor": "DataTableReviewCellDiff.HasDeltaPct",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserEdited",
              "anchor": "DataTableReviewCellDiff.UserEdited",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewCheck",
          "anchor": "DataTableReviewCheck",
          "decl": "type DataTableReviewCheck struct {\n\tLabel  string `json:\"label\"`\n\tValue  string `json:\"value\"`\n\tBefore string `json:\"before,omitempty\"`\n\tBasis  string `json:\"basis,omitempty\"`\n}",
          "doc": "DataTableReviewCheck is one named check figure attached by the agent to a data table review turn\n(for example \"Over 12 min, floors 1–3\": \"none\", before \"9\", basis \"Coin rate from 20 playtests of floor 3: 30 coins a minute.\").\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 36,
          "members": [
            {
              "name": "Label",
              "anchor": "DataTableReviewCheck.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "DataTableReviewCheck.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Before",
              "anchor": "DataTableReviewCheck.Before",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Basis",
              "anchor": "DataTableReviewCheck.Basis",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewColumn",
          "anchor": "DataTableReviewColumn",
          "decl": "type DataTableReviewColumn struct {\n\tName      string\n\tLabel     string\n\tKind      datatable.ValueKind\n\tHasDelta  bool\n\tIsPrimary bool\n}",
          "doc": "DataTableReviewColumn describes one visible column in the Data Table review table.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 65,
          "members": [
            {
              "name": "Name",
              "anchor": "DataTableReviewColumn.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "DataTableReviewColumn.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "DataTableReviewColumn.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasDelta",
              "anchor": "DataTableReviewColumn.HasDelta",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsPrimary",
              "anchor": "DataTableReviewColumn.IsPrimary",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewFileSpec",
          "anchor": "DataTableReviewFileSpec",
          "decl": "type DataTableReviewFileSpec struct {\n\t// Path is the absolute or disk file path written on Keep (empty for in-memory-only tables).\n\tPath string\n\t// RelPath is the display / project-relative slash-separated path (for example \"data/items.yaml\").\n\tRelPath string\n\t// Base is the original parsed datatable.Document before the agent's request (nil for a new file).\n\tBase *datatable.Document\n\t// Proposed is the agent's proposed datatable.Document (must be non-nil; may have 0 rows).\n\tProposed *datatable.Document\n\t// IsNew marks a file that did not exist before the agent's request.\n\tIsNew bool\n}",
          "doc": "DataTableReviewFileSpec describes one data table file included in an agent review turn.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 44,
          "members": [
            {
              "name": "Path",
              "anchor": "DataTableReviewFileSpec.Path",
              "kind": "field",
              "doc": "Path is the absolute or disk file path written on Keep (empty for in-memory-only tables)."
            },
            {
              "name": "RelPath",
              "anchor": "DataTableReviewFileSpec.RelPath",
              "kind": "field",
              "doc": "RelPath is the display / project-relative slash-separated path (for example \"data/items.yaml\")."
            },
            {
              "name": "Base",
              "anchor": "DataTableReviewFileSpec.Base",
              "kind": "field",
              "doc": "Base is the original parsed datatable.Document before the agent's request (nil for a new file)."
            },
            {
              "name": "Proposed",
              "anchor": "DataTableReviewFileSpec.Proposed",
              "kind": "field",
              "doc": "Proposed is the agent's proposed datatable.Document (must be non-nil; may have 0 rows)."
            },
            {
              "name": "IsNew",
              "anchor": "DataTableReviewFileSpec.IsNew",
              "kind": "field",
              "doc": "IsNew marks a file that did not exist before the agent's request."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewFileSummary",
          "anchor": "DataTableReviewFileSummary",
          "decl": "type DataTableReviewFileSummary struct {\n\tRelPath           string `json:\"relPath\"`\n\tName              string `json:\"name\"`\n\tPath              string `json:\"path,omitempty\"`\n\tIsNew             bool   `json:\"isNew,omitempty\"`\n\tTotalRecords      int    `json:\"totalRecords\"`\n\tChangedRecords    int    `json:\"changedRecords\"`\n\tKeptRecords       int    `json:\"keptRecords\"`\n\tRevertedRecords   int    `json:\"revertedRecords\"`\n\tUserEditedRecords int    `json:\"userEditedRecords\"`\n\tMeta              string `json:\"meta\"`\n}",
          "doc": "DataTableReviewFileSummary summarizes one file in the active Data Table review turn.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 115,
          "members": [
            {
              "name": "RelPath",
              "anchor": "DataTableReviewFileSummary.RelPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "DataTableReviewFileSummary.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "DataTableReviewFileSummary.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsNew",
              "anchor": "DataTableReviewFileSummary.IsNew",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalRecords",
              "anchor": "DataTableReviewFileSummary.TotalRecords",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangedRecords",
              "anchor": "DataTableReviewFileSummary.ChangedRecords",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptRecords",
              "anchor": "DataTableReviewFileSummary.KeptRecords",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RevertedRecords",
              "anchor": "DataTableReviewFileSummary.RevertedRecords",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserEditedRecords",
              "anchor": "DataTableReviewFileSummary.UserEditedRecords",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Meta",
              "anchor": "DataTableReviewFileSummary.Meta",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewFilter",
          "anchor": "DataTableReviewFilter",
          "decl": "type DataTableReviewFilter string",
          "doc": "DataTableReviewFilter selects which rows are visible in the Data Table review table.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 24,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DataTableReviewFilterAll",
                  "anchor": "DataTableReviewFilterAll"
                },
                {
                  "name": "DataTableReviewFilterChanged",
                  "anchor": "DataTableReviewFilterChanged"
                },
                {
                  "name": "DataTableReviewFilterUnchanged",
                  "anchor": "DataTableReviewFilterUnchanged"
                },
                {
                  "name": "DataTableReviewFilterReverted",
                  "anchor": "DataTableReviewFilterReverted"
                },
                {
                  "name": "DataTableReviewFilterYours",
                  "anchor": "DataTableReviewFilterYours"
                }
              ],
              "decl": "const (\n\tDataTableReviewFilterAll       DataTableReviewFilter = \"all\"\n\tDataTableReviewFilterChanged   DataTableReviewFilter = \"changed\"\n\tDataTableReviewFilterUnchanged DataTableReviewFilter = \"unchanged\"\n\tDataTableReviewFilterReverted  DataTableReviewFilter = \"reverted\"\n\tDataTableReviewFilterYours     DataTableReviewFilter = \"yours\"\n)",
              "doc": "",
              "file": "pkg/editor/datatable_review.go",
              "line": 26
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewRecord",
          "anchor": "DataTableReviewRecord",
          "decl": "type DataTableReviewRecord struct {\n\tKey           string\n\tBaseIndex     int\n\tProposedIndex int\n\tFileOrder     int\n\tDisplayName   string\n\tKindTag       string\n\tChanged       bool\n\tAdded         bool\n\tRemoved       bool\n\tReverted      bool\n\tUserEdited    bool\n\tUserReordered bool\n\tCells         map[string]DataTableReviewCellDiff\n}",
          "doc": "DataTableReviewRecord is a read-only view of one row in the active Data Table review file.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 90,
          "members": [
            {
              "name": "Key",
              "anchor": "DataTableReviewRecord.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseIndex",
              "anchor": "DataTableReviewRecord.BaseIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProposedIndex",
              "anchor": "DataTableReviewRecord.ProposedIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileOrder",
              "anchor": "DataTableReviewRecord.FileOrder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DisplayName",
              "anchor": "DataTableReviewRecord.DisplayName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KindTag",
              "anchor": "DataTableReviewRecord.KindTag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "DataTableReviewRecord.Changed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Added",
              "anchor": "DataTableReviewRecord.Added",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "DataTableReviewRecord.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "DataTableReviewRecord.Reverted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserEdited",
              "anchor": "DataTableReviewRecord.UserEdited",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserReordered",
              "anchor": "DataTableReviewRecord.UserReordered",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "DataTableReviewRecord.Cells",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewRequest",
          "anchor": "DataTableReviewRequest",
          "decl": "type DataTableReviewRequest struct {\n\tPrompt string\n\tFiles  []DataTableReviewFileSpec\n\tChecks []DataTableReviewCheck\n}",
          "doc": "DataTableReviewRequest opens a full-window row-by-row Data Table review for one agent turn.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 58,
          "members": [
            {
              "name": "Prompt",
              "anchor": "DataTableReviewRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "DataTableReviewRequest.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checks",
              "anchor": "DataTableReviewRequest.Checks",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewSnapshot",
          "anchor": "DataTableReviewSnapshot",
          "decl": "type DataTableReviewSnapshot struct {\n\tOpen            bool                         `json:\"open\"`\n\tPaused          bool                         `json:\"paused,omitempty\"`\n\tPrompt          string                       `json:\"prompt,omitempty\"`\n\tActiveFile      string                       `json:\"activeFile,omitempty\"`\n\tActiveFileIndex int                          `json:\"activeFileIndex\"`\n\tFocusKey        string                       `json:\"focusKey,omitempty\"`\n\tFilter          DataTableReviewFilter        `json:\"filter\"`\n\tSearchQuery     string                       `json:\"searchQuery,omitempty\"`\n\tSortColumn      string                       `json:\"sortColumn,omitempty\"`\n\tSortOrder       string                       `json:\"sortOrder,omitempty\"`\n\tAriaSort        string                       `json:\"ariaSort,omitempty\"`\n\tKeptCount       int                          `json:\"keptCount\"`\n\tTotalChanged    int                          `json:\"totalChanged\"`\n\tUserEditedCount int                          `json:\"userEditedCount\"`\n\tFiles           []DataTableReviewFileSummary `json:\"files,omitempty\"`\n\tChecks          []DataTableReviewCheck       `json:\"checks,omitempty\"`\n\tChecksOutOfDate bool                         `json:\"checksOutOfDate,omitempty\"`\n}",
          "doc": "DataTableReviewSnapshot is a read-only summary of the active Data Table review for UI and MCP.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 129,
          "members": [
            {
              "name": "Open",
              "anchor": "DataTableReviewSnapshot.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Paused",
              "anchor": "DataTableReviewSnapshot.Paused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "DataTableReviewSnapshot.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveFile",
              "anchor": "DataTableReviewSnapshot.ActiveFile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveFileIndex",
              "anchor": "DataTableReviewSnapshot.ActiveFileIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusKey",
              "anchor": "DataTableReviewSnapshot.FocusKey",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Filter",
              "anchor": "DataTableReviewSnapshot.Filter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SearchQuery",
              "anchor": "DataTableReviewSnapshot.SearchQuery",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SortColumn",
              "anchor": "DataTableReviewSnapshot.SortColumn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SortOrder",
              "anchor": "DataTableReviewSnapshot.SortOrder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AriaSort",
              "anchor": "DataTableReviewSnapshot.AriaSort",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptCount",
              "anchor": "DataTableReviewSnapshot.KeptCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalChanged",
              "anchor": "DataTableReviewSnapshot.TotalChanged",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserEditedCount",
              "anchor": "DataTableReviewSnapshot.UserEditedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "DataTableReviewSnapshot.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checks",
              "anchor": "DataTableReviewSnapshot.Checks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChecksOutOfDate",
              "anchor": "DataTableReviewSnapshot.ChecksOutOfDate",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewYAMLLine",
          "anchor": "DataTableReviewYAMLLine",
          "decl": "type DataTableReviewYAMLLine struct {\n\tLine int\n\tSign string // \"\", \"+\", or \"-\"\n\tText string\n\tTag  string // \"\" or \"you\"\n}",
          "doc": "DataTableReviewYAMLLine is one line in the focused record's right-hand YAML diff pane.\n",
          "file": "pkg/editor/datatable_review.go",
          "line": 107,
          "members": [
            {
              "name": "Line",
              "anchor": "DataTableReviewYAMLLine.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "DataTableReviewYAMLLine.Sign",
              "kind": "field",
              "doc": "\"\", \"+\", or \"-\""
            },
            {
              "name": "Text",
              "anchor": "DataTableReviewYAMLLine.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "DataTableReviewYAMLLine.Tag",
              "kind": "field",
              "doc": "\"\" or \"you\""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DeviceCommandRequest",
          "anchor": "DeviceCommandRequest",
          "decl": "type DeviceCommandRequest struct {\n\tDir          string          `json:\"dir\"`\n\tPlatform     string          `json:\"platform\"`\n\tDevice       ConnectedDevice `json:\"device\"`\n\tArtifactPath string          `json:\"artifactPath,omitempty\"`\n\tArgs         []string        `json:\"args\"`\n}",
          "doc": "DeviceCommandRequest describes an install-and-run command dispatched through `go tool nsgo`.\n",
          "file": "pkg/editor/build_device.go",
          "line": 71,
          "members": [
            {
              "name": "Dir",
              "anchor": "DeviceCommandRequest.Dir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Platform",
              "anchor": "DeviceCommandRequest.Platform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Device",
              "anchor": "DeviceCommandRequest.Device",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ArtifactPath",
              "anchor": "DeviceCommandRequest.ArtifactPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Args",
              "anchor": "DeviceCommandRequest.Args",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DiffLine",
          "anchor": "DiffLine",
          "decl": "type DiffLine struct {\n\tOldLine int          `json:\"oldLine,omitempty\"`\n\tNewLine int          `json:\"newLine,omitempty\"`\n\tSign    string       `json:\"sign,omitempty\"`\n\tText    string       `json:\"text\"`\n\tKind    DiffLineKind `json:\"kind\"`\n}",
          "doc": "DiffLine is one line in a unified diff preview against HEAD.\n",
          "file": "pkg/editor/changes.go",
          "line": 114,
          "members": [
            {
              "name": "OldLine",
              "anchor": "DiffLine.OldLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewLine",
              "anchor": "DiffLine.NewLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "DiffLine.Sign",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "DiffLine.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "DiffLine.Kind",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DiffLineKind",
          "anchor": "DiffLineKind",
          "decl": "type DiffLineKind string",
          "doc": "DiffLineKind identifies the role of one unified diff line.\n",
          "file": "pkg/editor/changes.go",
          "line": 103,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DiffLineContext",
                  "anchor": "DiffLineContext"
                },
                {
                  "name": "DiffLineAdd",
                  "anchor": "DiffLineAdd"
                },
                {
                  "name": "DiffLineDel",
                  "anchor": "DiffLineDel"
                },
                {
                  "name": "DiffLineHunk",
                  "anchor": "DiffLineHunk"
                },
                {
                  "name": "DiffLineMeta",
                  "anchor": "DiffLineMeta"
                }
              ],
              "decl": "const (\n\tDiffLineContext DiffLineKind = \"context\"\n\tDiffLineAdd     DiffLineKind = \"add\"\n\tDiffLineDel     DiffLineKind = \"del\"\n\tDiffLineHunk    DiffLineKind = \"hunk\"\n\tDiffLineMeta    DiffLineKind = \"meta\"\n)",
              "doc": "",
              "file": "pkg/editor/changes.go",
              "line": 105
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DiskConflict",
          "anchor": "DiskConflict",
          "decl": "type DiskConflict struct {\n\tKind        DiskFileKind\n\tPath        string\n\tLabel       string\n\tSource      string\n\tSummary     string\n\tOverlap     int\n\tDiskObjects int\n\tEntries     []SceneConflictEntry\n}",
          "doc": "DiskConflict describes an open file that changed on disk while the editor holds unsaved edits for it.\n",
          "file": "pkg/editor/disk_watch.go",
          "line": 79,
          "members": [
            {
              "name": "Kind",
              "anchor": "DiskConflict.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "DiskConflict.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "DiskConflict.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "DiskConflict.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "DiskConflict.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Overlap",
              "anchor": "DiskConflict.Overlap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DiskObjects",
              "anchor": "DiskConflict.DiskObjects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Entries",
              "anchor": "DiskConflict.Entries",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DiskConflictError",
          "anchor": "DiskConflictError",
          "decl": "type DiskConflictError struct {\n\tKind DiskFileKind\n\tPath string\n}",
          "doc": "DiskConflictError wraps ErrDiskConflict with the conflicting file's kind and path.\n",
          "file": "pkg/editor/disk_watch.go",
          "line": 39,
          "members": [
            {
              "name": "Kind",
              "anchor": "DiskConflictError.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "DiskConflictError.Path",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "DiskConflictError.Error",
              "recv": "*DiskConflictError",
              "decl": "func (e *DiskConflictError) Error() string",
              "doc": "",
              "file": "pkg/editor/disk_watch.go",
              "line": 44
            },
            {
              "name": "Unwrap",
              "anchor": "DiskConflictError.Unwrap",
              "recv": "*DiskConflictError",
              "decl": "func (e *DiskConflictError) Unwrap() error",
              "doc": "",
              "file": "pkg/editor/disk_watch.go",
              "line": 54
            }
          ]
        },
        {
          "name": "DiskFileKind",
          "anchor": "DiskFileKind",
          "decl": "type DiskFileKind string",
          "doc": "DiskFileKind identifies which open editor file changed on disk outside the editor.\n",
          "file": "pkg/editor/disk_watch.go",
          "line": 26,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DiskFileScene",
                  "anchor": "DiskFileScene"
                },
                {
                  "name": "DiskFileProject",
                  "anchor": "DiskFileProject"
                },
                {
                  "name": "DiskFileClip",
                  "anchor": "DiskFileClip"
                },
                {
                  "name": "DiskFilePermissions",
                  "anchor": "DiskFilePermissions"
                }
              ],
              "decl": "const (\n\tDiskFileScene       DiskFileKind = \"scene\"\n\tDiskFileProject     DiskFileKind = \"project\"\n\tDiskFileClip        DiskFileKind = \"clip\"\n\tDiskFilePermissions DiskFileKind = \"permissions\"\n)",
              "doc": "",
              "file": "pkg/editor/disk_watch.go",
              "line": 28
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DiskMergeChoice",
          "anchor": "DiskMergeChoice",
          "decl": "type DiskMergeChoice string",
          "doc": "DiskMergeChoice selects which side to keep for an object when resolving an external scene conflict.\n",
          "file": "pkg/editor/disk_watch.go",
          "line": 57,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DiskMergeMine",
                  "anchor": "DiskMergeMine"
                },
                {
                  "name": "DiskMergeDisk",
                  "anchor": "DiskMergeDisk"
                }
              ],
              "decl": "const (\n\tDiskMergeMine DiskMergeChoice = \"mine\"\n\tDiskMergeDisk DiskMergeChoice = \"disk\"\n)",
              "doc": "",
              "file": "pkg/editor/disk_watch.go",
              "line": 59
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DiskPollResult",
          "anchor": "DiskPollResult",
          "decl": "type DiskPollResult struct {\n\tReloaded    []DiskFileKind\n\tConflicts   []DiskFileKind\n\tTreeChanged bool\n}",
          "doc": "DiskPollResult summarizes what PollDiskChanges observed and did.\n",
          "file": "pkg/editor/disk_watch.go",
          "line": 110,
          "members": [
            {
              "name": "Reloaded",
              "anchor": "DiskPollResult.Reloaded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Conflicts",
              "anchor": "DiskPollResult.Conflicts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TreeChanged",
              "anchor": "DiskPollResult.TreeChanged",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DiskReloadNotice",
          "anchor": "DiskReloadNotice",
          "decl": "type DiskReloadNotice struct {\n\tKind    DiskFileKind\n\tPath    string\n\tLabel   string\n\tSource  string\n\tSummary string\n\tDiffs   []SceneObjectDiff\n}",
          "doc": "DiskReloadNotice describes a clean file that reloaded automatically from disk.\n",
          "file": "pkg/editor/disk_watch.go",
          "line": 100,
          "members": [
            {
              "name": "Kind",
              "anchor": "DiskReloadNotice.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "DiskReloadNotice.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "DiskReloadNotice.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "DiskReloadNotice.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "DiskReloadNotice.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Diffs",
              "anchor": "DiskReloadNotice.Diffs",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DocReview",
          "anchor": "DocReview",
          "decl": "type DocReview struct {\n\tID        string          `json:\"id\"`\n\tTarget    DocReviewTarget `json:\"target\"`\n\tSummary   string          `json:\"summary\"`\n\tRationale string          `json:\"rationale,omitempty\"`\n\tSource    string          `json:\"source,omitempty\"` // \"agent\" or \"suggestion\"\n\tBefore    string          `json:\"before\"`\n\tAfter     string          `json:\"after\"`\n\tDiff      string          `json:\"diff\"`\n\tStatus    string          `json:\"status\"` // \"pending\", \"kept\", \"reverted\"\n}",
          "doc": "DocReview is one pending or resolved reviewable change to brief.yaml or AGENTS.md.\nFiles on disk are never modified until the person keeps the review.\n",
          "file": "pkg/editor/brief_rules.go",
          "line": 38,
          "members": [
            {
              "name": "ID",
              "anchor": "DocReview.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "DocReview.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "DocReview.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rationale",
              "anchor": "DocReview.Rationale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "DocReview.Source",
              "kind": "field",
              "doc": "\"agent\" or \"suggestion\""
            },
            {
              "name": "Before",
              "anchor": "DocReview.Before",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "After",
              "anchor": "DocReview.After",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Diff",
              "anchor": "DocReview.Diff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "DocReview.Status",
              "kind": "field",
              "doc": "\"pending\", \"kept\", \"reverted\""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DocReviewTarget",
          "anchor": "DocReviewTarget",
          "decl": "type DocReviewTarget string",
          "doc": "DocReviewTarget identifies a shared project document whose agent or suggested edits go through review.\n",
          "file": "pkg/editor/brief_rules.go",
          "line": 27,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DocReviewBrief",
                  "anchor": "DocReviewBrief"
                },
                {
                  "name": "DocReviewRules",
                  "anchor": "DocReviewRules"
                }
              ],
              "decl": "const (\n\t// DocReviewBrief targets the project root brief.yaml file.\n\tDocReviewBrief DocReviewTarget = project.BriefFileName\n\t// DocReviewRules targets the project root AGENTS.md file.\n\tDocReviewRules DocReviewTarget = ProjectRulesFileName\n)",
              "doc": "",
              "file": "pkg/editor/brief_rules.go",
              "line": 29
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Dock",
          "anchor": "Dock",
          "decl": "type Dock int",
          "doc": "Dock is where a plugin's Panel sits in the editor window.\n",
          "file": "pkg/editor/plugin.go",
          "line": 46,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DockLeft",
                  "anchor": "DockLeft"
                },
                {
                  "name": "DockRight",
                  "anchor": "DockRight"
                },
                {
                  "name": "DockBottom",
                  "anchor": "DockBottom"
                }
              ],
              "decl": "const (\n\t// DockLeft places the panel in a column between the asset browser and the viewport.\n\tDockLeft Dock = iota\n\t// DockRight places the panel in a column after the inspector.\n\tDockRight\n\t// DockBottom places the panel in a row below the viewport, above the animation panel.\n\tDockBottom\n)",
              "doc": "",
              "file": "pkg/editor/plugin.go",
              "line": 48
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Dock.String",
              "recv": "Dock",
              "decl": "func (d Dock) String() string",
              "doc": "String returns the dock's name: \"left\", \"right\" or \"bottom\".\n",
              "file": "pkg/editor/plugin.go",
              "line": 58
            }
          ]
        },
        {
          "name": "DrawnShape2D",
          "anchor": "DrawnShape2D",
          "decl": "type DrawnShape2D struct {\n\tObjectID  string\n\tComponent string\n\tField     string\n\tKind      sceneformat.FieldKind\n\tSelected  bool\n\tValue     any\n\t// Points holds the shape's canvas-space control points: 1 point for FieldPoint, 4 corners for FieldRect, center + rim sample points for FieldCircle, or all vertices for FieldPolygon.\n\tPoints []math2d.Vec2\n}",
          "doc": "DrawnShape2D describes one component shape field rendered in the 2D viewport.\n",
          "file": "pkg/editor/shapes2d.go",
          "line": 99,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "DrawnShape2D.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "DrawnShape2D.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "DrawnShape2D.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "DrawnShape2D.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Selected",
              "anchor": "DrawnShape2D.Selected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "DrawnShape2D.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "DrawnShape2D.Points",
              "kind": "field",
              "doc": "Points holds the shape's canvas-space control points: 1 point for FieldPoint, 4 corners for FieldRect, center + rim sample points for FieldCircle, or all vertices for FieldPolygon."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DropPlace",
          "anchor": "DropPlace",
          "decl": "type DropPlace int",
          "doc": "DropPlace says where DropObject puts an object relative to the object it is dropped on.\n",
          "file": "pkg/editor/hierarchy.go",
          "line": 879,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DropInto",
                  "anchor": "DropInto"
                },
                {
                  "name": "DropBefore",
                  "anchor": "DropBefore"
                },
                {
                  "name": "DropAfter",
                  "anchor": "DropAfter"
                }
              ],
              "decl": "const (\n\t// DropInto makes the object the last child of the target.\n\tDropInto DropPlace = iota\n\t// DropBefore makes the object the target's sibling just before it.\n\tDropBefore\n\t// DropAfter makes the object the target's sibling just after it.\n\tDropAfter\n)",
              "doc": "",
              "file": "pkg/editor/hierarchy.go",
              "line": 881
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Editor",
          "anchor": "Editor",
          "decl": "type Editor struct {\n\tDoc           *sceneformat.SceneDoc\n\tBuilt         *sceneformat.BuiltScene\n\tBuildErr      error\n\tHistory       *History\n\tResolver      sceneformat.AssetResolver\n\tModelResolver scenemodel.ModelResolver\n\tPrefabs       map[string]Prefab\n\tSelectedID    string\n\tActiveLayer   string\n\tTool          Tool\n\tViewMode      ViewMode\n\tGizmoMode     GizmoMode3D\n\tGizmoSpace3D  GizmoSpace3D\n\tCamera3D      OrbitCamera3D\n\tActiveTileID  int\n\t// ActiveTileLayer names the tile layer of a layered grid (sceneformat.TilemapDoc.TileLayers) that PaintTile, EraseTile and FloodFillTile change, empty for its first. A single grid has no tile layers and ignores it.\n\tActiveTileLayer string\n\t// ActiveTileFlip holds the flip bits (tilemap.FlipHorizontal, FlipVertical and FlipDiagonal) that the Paint and Fill tools place tiles of a layered grid with.\n\tActiveTileFlip uint32\n\t// ActiveTerrain names the terrain set of a layered grid's YAML tileset that ToolTerrain paints and erases, empty for its first.\n\tActiveTerrain string\n\tSelectedAsset *AssetEntry\n\t// SelectedPrefab names the registered prefab selected in the asset browser for the Place tool, or empty when none is selected.\n\tSelectedPrefab string\n\t// SelectedModel is the model the Place tool adds in the 3D viewport (SelectModel), chosen in the asset browser's Models list; nil places nothing in 3D, where a press then selects.\n\tSelectedModel *ModelEntry\n\t// PlaceHeight3D is the height of the ground plane, the horizontal plane the Place tool puts a model on in 3D where the pointer's ray hits no geometry (PlacementAt3D).\n\tPlaceHeight3D float32\n\t// PlaceSnap3D snaps where the Place tool puts a model on the ground plane in 3D to the 3D grid's spacing along X and Z; a model placed on the scene's geometry stays where the pointer's ray hits it (PlacementAt3D).\n\tPlaceSnap3D bool\n\t// PlaceAlign3D turns a model the Place tool puts on the scene's geometry in 3D so that its +Y axis follows the surface's normal.\n\tPlaceAlign3D bool\n\tStatus       string\n\tFilePath     string\n\t// Shading3D is how the 3D viewport shades the scene's geometry on the GPU (SetShading3D).\n\tShading3D Shading3D\n\t// Lights3D are the lights the 3D viewport draws the scene's geometry with, such as the rig the game lights the scene with, over the scene's background color; nil draws it with DefaultLights3D under a gradient sky. Scene files do not hold lights, so an editor built on this package that knows its game's lights sets them with SetLights3D, which redraws the viewport; assigning the field directly does not.\n\tLights3D *render3d.LightRig\n\t// FlySpeed3D is how fast the 3D viewport's camera flies (BeginFly3D), in world units a second; the wheel changes it while flying (AdjustFlySpeed3D), and the first flight sets it from the camera's Distance when it is not positive.\n\tFlySpeed3D float32\n\t// Project is the game's project file (game.yaml) OpenProject opened, nil without one; EditProject changes it undoably and SaveProject writes it.\n\tProject *project.File\n\t// ProjectPath is the game.yaml path OpenProject opened Project from.\n\tProjectPath string\n\t// ScenePath is the open scene's slash-separated path from the project root, as Resolver names scene files (for example \"scenes/level.scene.yaml\"), or empty when the scene has no such path. PlaceObject and PlaceScene resolve the edited scene under this path, so they refuse an instance that would lead back to the open scene and make the saved file instance itself. OpenFile, SaveFile and OpenProject set it when FilePath lies in the open project's directory and clear it otherwise; OpenYAML clears it, since the loaded scene may come from another file.\n\tScenePath string\n\t// SelectedFile is the slash-separated path of the file selected in the file browser (FilesView), relative to the open project's root, or empty when none is selected.\n\tSelectedFile string\n\t// Library is the pack library the library panel lists and installs from into the open project (InstallPack); nil hides the panel.\n\tLibrary *library.Library\n\t// ProjectAssets makes the editor load its assets from the open project: OpenProject and OpenProjectScene make Resolver a project.Resolver over the project's directory, so the scene draws the project's atlases, the asset browser lists them (Assets), PlaceScene instances its scene files and materials and Tiled maps load from it. Atlases are found nearest the open scene (ScenePath), as `game check` finds them, and listed again whenever the editor changes the project's files. Set it before opening a project; editorcmd sets it.\n\tProjectAssets bool\n\t// AppName is the editor's name, which the window title EditorView sets ends with (WindowTitle); empty means \"NSGo Scene Editor\". An editor built on this package, such as a game's own, sets it to its own name, since EditorView owns the window title.\n\tAppName string\n\t// SettingsPath is the per-user editor settings YAML file path outside the project (set by LoadSettings or LoadUserSettings). When non-empty, SetLanguage and SetAppearance persist changes to it.\n\tSettingsPath string\n\n\t// OnSave is invoked by the UI Save button with the encoded YAML bytes.\n\tOnSave func(data []byte) error\n\t// OnRunGame is invoked by the Run Game command (shortcut, menu bar, or command palette).\n\t// When nil, RunGame starts play-in-editor if a UI scope is attached.\n\tOnRunGame func() error\n\t// OnPlayUpdate runs on every fixed simulation step while Play mode is active.\n\tOnPlayUpdate func(scene *sceneformat.BuiltScene, dt time.Duration)\n\t// OnPlayDraw runs on every render frame while Play mode is active.\n\tOnPlayDraw func(scene *sceneformat.BuiltScene, alpha float64)\n\t// OnPlayTrigger runs whenever a built-in 2D or 3D physics trigger fires enter, stay, or exit during Play mode.\n\tOnPlayTrigger func(ev sceneformat.PhysicsTriggerEvent)\n\t// OnPlayReset, when set, is called when Play mode starts or resets for replay playback with the recording's seed so game state resets deterministically.\n\tOnPlayReset func(seed uint64) error\n\t// PlayInputSource supplies live action/axis input sampled into the 60-second rolling replay buffer during Play mode.\n\tPlayInputSource replay.ActionSource\n\t// PlayInputActions lists the watched action names recorded in Play mode's rolling replay buffer. When empty and Project defines input actions, those action names are used in sorted order.\n\tPlayInputActions []string\n\t// PlayInputAxes lists the watched axis names recorded in Play mode's rolling replay buffer.\n\tPlayInputAxes []string\n\t// PlaySeed is the random seed written into Play mode's rolling replay recordings.\n\tPlaySeed uint64\n\t// ReplayDir optionally overrides the root directory under which replays/<scene>-<frame>.replay.yaml files are written when no project is open.\n\tReplayDir string\n\t// OnPlayMarksThread, when set, is called when unsent Play mode marks are dispatched as one thread (via SendPlayMarks or automatically when Play stops).\n\tOnPlayMarksThread func(PlayMarksThread)\n\t// OnAskFrozenFrame, when set, is called when the author submits a prompt from Play mode's \"Ask about frame N\" dialog.\n\tOnAskFrozenFrame func(AskFrozenFrameRequest)\n\t// OnAskPanicFix, when set, is called when the author clicks \"Ask the agent to fix\" on a panic card in the Output panel.\n\tOnAskPanicFix func(PanicReport)\n\t// ShowPhysicsDebug controls whether 2D and 3D physics collider and trigger outlines draw in the viewport. New initializes it to true.\n\tShowPhysicsDebug bool\n\t// ShowLightingPreview controls whether 2D lights, occluder shadows, and ambient darkness draw live in the 2D edit viewport. New initializes it to true.\n\tShowLightingPreview bool\n\t// ShowNavMesh2D controls whether the built 2D navigation mesh overlay and authored navregion2d outlines draw in the 2D edit viewport. New initializes it to true.\n\tShowNavMesh2D bool\n\t// ShowNavMesh3D controls whether the baked 3D navigation mesh overlay draws in the 3D viewport. New initializes it to true.\n\tShowNavMesh3D bool\n\t// OnBakeNavMesh3DGeometry, when set, is called by BakeNavMesh3D after collecting the open scene's static geometry so games can add programmatic terrain, GridMaps, or physics colliders.\n\tOnBakeNavMesh3DGeometry func(g *navbake3d.Geometry) error\n\t// NavMesh3DAssetFS is an optional fallback file system used by BakeNavMesh3D and LoadNavMesh3D to resolve glTF models and instanced scenes when no project directory is open.\n\tNavMesh3DAssetFS fs.FS\n\t// ShowLODOverlay controls whether per-object active LOD labels and color-coding draw in the 3D viewport. New initializes it to true.\n\tShowLODOverlay bool\n\t// ShowOccluders controls whether 3D occluder volumes draw in the 3D viewport. New initializes it to true.\n\tShowOccluders bool\n\t// ShowRenderStats controls whether the RenderStats HUD overlay shows in the 3D viewport. New initializes it to true.\n\tShowRenderStats bool\n\t// ShowAllShapes controls whether the 2D viewport draws component shape fields of every visible object (true) or only the selected object (false).\n\tShowAllShapes bool\n\t// SnapToGrid snaps object placement, drags, 2D handles, and 3D translate gizmos to EffectiveGridStep increments when true.\n\tSnapToGrid bool\n\t// GridSize is an explicit grid spacing in world/layer units used when SnapToGrid is true; 0 follows the active layer's tilemap tile size (or 8 when it has none).\n\tGridSize float32\n\t// SnapToPixel snaps positions to whole points (1-unit increments) when SnapToGrid is false.\n\tSnapToPixel bool\n\t// SnapRotation snaps 2D and 3D rotation drags to RotationSnapDeg-degree increments.\n\tSnapRotation bool\n\t// RotationSnapDeg is the rotation snap step in degrees. New initializes it to 15.\n\tRotationSnapDeg float32\n\t// SnapScale snaps 2D and 3D scale drags to ScaleSnapStep increments.\n\tSnapScale bool\n\t// ScaleSnapStep is the scale snap increment. New initializes it to 0.25.\n\tScaleSnapStep float32\n\t// ShowGrid draws an optional 2D grid overlay at the active snap step in the 2D edit viewport.\n\tShowGrid bool\n\t// PlayRate is the fixed update rate in Hz during Play mode and clip playback (defaults to 60 when <= 0).\n\tPlayRate int\n\t// OnSaveClip is invoked by the animation panel's Save button with the encoded clip YAML; when nil the button writes to ClipPath.\n\tOnSaveClip func(data []byte) error\n\t// OnSaveStates is invoked by the state machine panel's Save button with the encoded *.states.yaml bytes; when nil the button writes to StatesPath.\n\tOnSaveStates func(data []byte) error\n\t// OnSaveCutscene is invoked by the cutscene timeline panel's Save button with the encoded *.cutscene.yaml bytes; when nil the button writes to CutscenePath.\n\tOnSaveCutscene func(data []byte) error\n\t// CutsceneCatalog optionally provides localized strings for cutscene dialogue previews when no localization files are loaded from the project.\n\tCutsceneCatalog *l10n.Catalog\n\t// Clips optionally resolves animation clips for the open sprite state machine when no project directory holds them on disk.\n\tClips animclip.ClipResolver\n\t// OnSaveDataTable is invoked by the Data Table panel's Save button with the encoded table YAML; when nil the button writes to DataTablePath.\n\tOnSaveDataTable func(data []byte) error\n\t// OnSaveGridMap is invoked by SaveGridMap (and Save when a GridMap has unsaved edits) with the encoded canonical .gridmap.yaml bytes; when nil SaveGridMap writes to the GridMap's file path.\n\tOnSaveGridMap func(data []byte) error\n\t// GridMapFS optionally provides a filesystem for loading GridMap files and their glTF mesh libraries when no project is open on disk.\n\tGridMapFS fs.FS\n\t// OnSaveTileset is invoked by the Tileset Editor panel's Save button with the encoded tileset YAML; when nil the button writes to TilesetPath.\n\tOnSaveTileset func(data []byte) error\n\t// OnSaveParticleEmitter is invoked by the Particle Emitter panel's Save button with the encoded emitter YAML; when nil the button writes to ParticleEmitterPath.\n\tOnSaveParticleEmitter func(data []byte) error\n\t// OnSaveMaterial is invoked by the Material Editor panel's Save button with the encoded material YAML (resource.Encode); when nil the button writes to MaterialPath.\n\tOnSaveMaterial func(data []byte) error\n\t// OnSaveRooms is invoked by SaveRooms / Save with the encoded *.rooms.yaml bytes; when nil SaveRooms writes to RoomsPath.\n\tOnSaveRooms func(data []byte) error\n\t// OnSaveRig is invoked by the Rig Editor panel's Save Rig button with the encoded .skel.yaml bytes; when nil the button writes to RigPath.\n\tOnSaveRig func(data []byte) error\n\t// OnAskAgentUpdateRef, when set, is called when the author clicks \"Ask the agent to update it\" for a non-rewritten reference (such as a Go string constant) in the References / Safe Rename review.\n\tOnAskAgentUpdateRef func(req SafeRenameAgentRequest) error\n\t// OnOpenSourceFile, when set, is called when the author clicks \"Open <file>\" for a non-scene source file (such as a Go file) in the References screen.\n\tOnOpenSourceFile func(file string, line int) error\n\t// ExportCommandRunner runs `go` with args for the Export panel's release builds, streaming output to stdout and stderr; when nil the editor invokes `go` via os/exec.\n\tExportCommandRunner func(ctx context.Context, args []string, stdout, stderr io.Writer) error\n\t// ReleaseCheckRunner overrides `nsgo check` for the Build and Release screen's preflight and Check project step; when nil, runProjectCheck runs over the project directory.\n\tReleaseCheckRunner func(ctx context.Context, dir string) ([]assetcheck.Problem, time.Duration, error)\n\t// ReleaseStepRunner optionally overrides execution of each Build and Release step (Check project, Compile Go, Pack assets, Sign, Smoke playtest, Measure).\n\tReleaseStepRunner func(ctx context.Context, req ReleaseStepRequest, stdout, stderr io.Writer) error\n\t// ReleasePlaytestRunner overrides the Smoke playtest step of a Build and Release run; when nil, a default summary is produced.\n\tReleasePlaytestRunner func(ctx context.Context, platform string, dir string) (BuildSmokePlaytestResult, error)\n\t// ReleaseMeasureRunner overrides the Measure step of a Build and Release run; when nil, artifact size and category breakdown are measured from disk and compared against the last release baseline.\n\tReleaseMeasureRunner func(ctx context.Context, platform string, plan *releaseplan.Plan) (BuildArtifactResult, error)\n\t// ReleaseReadinessInspector overrides platform readiness evaluation on the Build and Release screen; when nil, built-in readiness checks (including iOS bundle id, icon, certificate, provisioning profile, privacy manifest, and touch controls) are used.\n\tReleaseReadinessInspector func(platform string, dir string, f *project.File) []BuildReadinessItem\n\t// OnReleaseReadinessPersonAction is called when the author clicks a readiness action that requires the person (such as signing in to Apple for a provisioning profile).\n\tOnReleaseReadinessPersonAction func(platform string, item BuildReadinessItem) error\n\t// OnReviewReleaseUploads is called when the author presses \"Review uploads...\" on the Build and Release screen; nothing is uploaded automatically.\n\tOnReviewReleaseUploads func(snapshot BuildReleaseSnapshot) error\n\t// ReleaseNotesDrafter generates player-facing Markdown release notes from commits since the last release,\n\t// kept reviews, and changelog fragments; when nil, DefaultReleaseNotesDraft is used.\n\tReleaseNotesDrafter func(ctx context.Context, req ReleaseNotesDraftRequest) (ReleaseNotesDraft, error)\n\t// ReleaseUploader uploads a single user-confirmed artifact to a store destination (itch.io, Google Play internal testing, or TestFlight).\n\t// It is never invoked until the person confirms in Review uploads, whatever the permission profile.\n\tReleaseUploader ReleaseUploader\n\t// Keychain stores and retrieves store upload credentials and built-in agent API keys outside project files; when nil, DefaultKeychain() is used.\n\tKeychain Keychain\n\t// SyncMCPConfig, when set (automatically wired by editormcp.New), writes configured external MCP servers into the open project's agent MCP configuration (.mcp.json and .codex/config.toml).\n\tSyncMCPConfig func(root string, servers []AgentMCPServer, removed []string) error\n\t// OpenOutputFolder opens the release output directory in the OS file manager after a successful non-dry-run build; when nil the editor uses the host platform's default opener.\n\tOpenOutputFolder func(dir string) error\n\t// OpenBrowserURL opens a local/LAN web build URL in this computer's browser from the Build and Release screen's RUN ON DEVICE list; when nil the editor uses the host platform's default browser opener.\n\tOpenBrowserURL func(rawURL string) error\n\t// LANAddressResolver returns the local/LAN IPv4 address the web build test server binds to and advertises in the QR code; when nil the editor picks a private RFC 1918 LAN interface address (falling back to 127.0.0.1). Non-LAN public IP addresses are always refused.\n\tLANAddressResolver func() (string, error)\n\t// WebBuildServePort optionally pins the TCP port used by StartWebBuildServer; 0 (the default) allocates an ephemeral free port on the LAN interface.\n\tWebBuildServePort int\n\t// DeviceDiscoverer probes connected USB devices (such as Android phones over adb) for the Build and Release screen's RUN ON DEVICE list; when nil the editor queries `adb devices -l` on desktop.\n\tDeviceDiscoverer func(ctx context.Context, dir string) ([]ConnectedDevice, error)\n\t// DeviceCommandRunner executes `go tool nsgo build -target ... -run -device ...` when launching a finished Android build on a connected USB device; when nil the editor invokes `go` via os/exec on desktop.\n\tDeviceCommandRunner func(ctx context.Context, req DeviceCommandRequest, stdout, stderr io.Writer) error\n\t// WebBridgeHandler optionally handles JSON-RPC 2.0 requests received on `/__nsgo_mcp/rpc` from a served web build in Play mode; when nil, built-in bridge discovery/status methods are served.\n\tWebBridgeHandler func(ctx context.Context, method string, params json.RawMessage) (any, error)\n\t// RunGameCommand starts the child game process for RunGame / RunGameWith, streaming output to stdout and stderr; when nil the editor launches `go tool game dev` in the open project directory in its own process group on desktop.\n\tRunGameCommand func(spec RunGameSpec, stdout, stderr io.Writer) (GameProcess, error)\n\t// RemoteTransport, when set, supplies the MCP client transport used to connect to a running game launched with RunGameOptions.Automation; when nil the editor spawns `go tool nsgo mcp` in the project directory on desktop.\n\tRemoteTransport func(ctx context.Context, spec RunGameSpec) (mcp.Transport, error)\n\t// RemoteRefreshInterval controls how often the remote scene tree and inspector poll the running game while unpaused (defaults to 250ms when <= 0).\n\tRemoteRefreshInterval time.Duration\n\t// AssetsCommandRunner runs `go tool game assets` for BuildAssets and ReimportAsset, streaming output to stdout and stderr; when nil the editor invokes `go` in the open project directory on desktop.\n\tAssetsCommandRunner func(ctx context.Context, spec AssetsBuildSpec, stdout, stderr io.Writer) error\n\t// OnReloadAssets, when set, is called after ReloadAssets reloads changed atlases or textures from disk.\n\tOnReloadAssets func(result ReloadAssetsResult)\n\t// OnExportProfilerTrace is invoked by the Profiler panel's Export Trace button with the Chrome/Perfetto Trace Event Format JSON bytes; when nil the button opens a Save File dialog.\n\tOnExportProfilerTrace func(data []byte) error\n\t// ProfilerPollInterval configures how often the editor polls game_perf_readout and game_perf_zones while connected to a running game (defaults to 250ms when <= 0).\n\tProfilerPollInterval time.Duration\n\t// RecentProjectsPath is the per-user YAML file where recently opened projects are stored outside any project directory. When empty, recent projects stay in memory without writing to disk.\n\tRecentProjectsPath string\n\t// LayoutPath is the per-user YAML file where the editor's dock panel layout is stored outside any project directory. When empty, layout edits stay in memory without writing to disk.\n\tLayoutPath string\n\t// Now returns the current time for recent-project timestamps and relative-time labels; when nil, time.Now is used.\n\tNow func() time.Time\n\t// PickProjectFolder prompts the user to choose a project folder (for Open Project and New Project's parent folder). When nil and a UI scope is attached, the editor invokes cx.PickDirectories.\n\tPickProjectFolder func(title, startDir string, done func(dir string, ok bool, err error))\n\t// CreateProject runs project creation from a template (such as `game new`), streaming its output to stdout and stderr. When nil on desktop, the editor invokes `go tool game new`.\n\tCreateProject func(ctx context.Context, req CreateProjectRequest, stdout, stderr io.Writer) error\n\t// OnOpenDemo overrides the Start Screen's Open Demo action when non-nil; when nil, OpenDemo loads the built-in Demo Room.\n\tOnOpenDemo func() error\n\t// OnSaveScreen, when set, is called with the screen path and canonical *.screen.yaml bytes whenever a HUD layout edit writes or reverts a screen.\n\tOnSaveScreen func(path string, data []byte) error\n\t// OnHUDPrompt, when set, is called when the author submits a prompt from the HUD layout screen's composer or \"Ask the agent to fix N\" button.\n\tOnHUDPrompt func(HUDPromptRequest)\n\t// OnOpenFileAtLine, when set, is called by OpenSelectedObjectYAML with the file path and 1-based line number of the selected object in the scene YAML.\n\tOnOpenFileAtLine func(path string, line int)\n\t// OnComposerPrompt, when set, is called when the inspector (such as Ask to add) sends or stages a prompt for the agent composer.\n\tOnComposerPrompt func(prompt string)\n\t// GitRunner invokes git with args in dir for scene merge conflict inspection, commit, and abort; when nil, os/exec runs git.\n\tGitRunner func(dir string, args ...string) (string, error)\n\t// MergeSuggester generates the agent's suggested resolution and reason for each conflicted scene item; when nil, DefaultMergeSuggestion is used.\n\tMergeSuggester func(ctx context.Context, req MergeSuggestRequest) (MergeSuggestion, error)\n\t// MergeCheckRunner overrides `game check` during FinishMerge; when nil, runProjectCheck runs over the project directory.\n\tMergeCheckRunner func(dir, scenePath string, doc *sceneformat.SceneDoc) ([]assetcheck.Problem, error)\n\t// MergePlaytestRunner overrides the short playtest run during FinishMerge; when nil, a deterministic 10 s headless Build/Update/Physics step runs.\n\tMergePlaytestRunner func(dir, scenePath string, doc *sceneformat.SceneDoc) (MergePlaytestResult, error)\n\t// WriteClipboard, when set, overrides writing text to the system clipboard (used by Copy and Cut); when nil and a UI scope is attached, core.Scope.SetClipboard is used.\n\tWriteClipboard func(text string)\n\t// ReadClipboard, when set, overrides reading text from the system clipboard (used by Paste); when nil and a UI scope is attached, core.Scope.ReadClipboard is used.\n\tReadClipboard func(done func(text string))\n\t// ReadClipboardImage, when set, overrides reading an image from the system clipboard (used by PasteAgentReferenceImage); when nil and a UI scope is attached, core.Scope.ReadClipboardImage is used.\n\tReadClipboardImage func(done func(img core.ClipboardImage, ok bool, err error))\n\t// ReadClipboardFiles, when set, overrides reading copied file URLs from the system clipboard (used by PasteAgentReferenceImage); when nil and a UI scope is attached, core.Scope.ReadClipboardFiles is used.\n\tReadClipboardFiles func(done func(uris []string))\n\t// PickAgentReferenceFiles, when set, overrides the native file picker opened by the Agent composer's Attach an image button.\n\tPickAgentReferenceFiles func(done func(uris []string))\n\t// DiskWatchInterval controls how often the editor polls watched open files (scene, clip, game.yaml) and the project tree for external changes while a UI scope is attached (defaults to 250ms when <= 0).\n\tDiskWatchInterval time.Duration\n\t// OnPlaytestPrompt, when set, is called when the author presses \"Ask the agent to tune it\" or clicks an actionable suggestion in the Playtest Report screen.\n\tOnPlaytestPrompt func(PlaytestPromptRequest)\n\t// OnOpenPlaytestConfig, when set, overrides the BOT PROFILE card's \"Open\" action for playtest.yaml; when nil, the editor opens an inline playtest.yaml preview drawer.\n\tOnOpenPlaytestConfig func(configPath string) error\n\t// OnPlayReplayStep runs on every fixed simulation step during Play mode when watching a saved replay recording (after player.Step() and before OnPlayUpdate).\n\tOnPlayReplayStep func(player *replay.Player, scene *sceneformat.BuiltScene, dt time.Duration)\n\t// OnAssetImport, when set, handles the Asset Drawer's Import action for folder instead of opening the native file picker.\n\tOnAssetImport func(folder string)\n\t// OnAssetGenerate, when set, handles the Asset Drawer's Generate action for folder.\n\tOnAssetGenerate func(folder string)\n\t// OnAssetReplaceMissing, when set, handles the selected missing asset's \"Replace with a file\" action.\n\tOnAssetReplaceMissing func(missingPath string)\n\t// OnAssetAskAgent, when set, handles \"Ask the agent\" actions from the Asset Drawer and selected-asset inspector.\n\tOnAssetAskAgent func(assetPath, prompt string)\n\t// OnAskAgent3D, when set, handles \"Or ask for one\" (3D MODELS strip) and \"Ask to add a component…\" (3D inspector) prompts.\n\tOnAskAgent3D func(req Viewport3DAgentRequest)\n\t// ChangesCheckRunner overrides `nsgo check` and `nsgo test` in the Changes panel; when nil, the editor invokes `go tool nsgo check` and `go tool nsgo test`.\n\tChangesCheckRunner func(dir string) (ChangesCheckStatus, error)\n\t// CodeReviewCheckRunner overrides `nsgo check` and `nsgo test` for pending Go code review (receiving the built Go overlay path and reporting live test progress); when nil, the editor runs `go tool nsgo check` and `go tool nsgo test -json` with GOFLAGS=-overlay=... on desktop.\n\tCodeReviewCheckRunner func(ctx context.Context, req CodeReviewCheckRequest, onProgress func(CodeReviewCheckProgress)) (CodeReviewCheckResult, error)\n\t// OnAskCodeReviewFix, when set, is called when the author clicks \"Ask the agent to fix\" on a failed test card in Go code review.\n\tOnAskCodeReviewFix func(CodeReviewFixRequest)\n\t// ExternalEditorName optionally names the external IDE shown in Go code review (for example \"GoLand\"); when empty, a localized default label is shown.\n\tExternalEditorName string\n\t// CommitMessageDrafter generates the commit summary and description for the Changes panel; when nil, DefaultCommitDraft is used.\n\tCommitMessageDrafter func(ctx context.Context, req CommitDraftRequest) (CommitDraft, error)\n\t// GHRunner invokes the GitHub CLI (`gh`) with args in dir for OpenPullRequest; when nil, os/exec runs `gh` when installed on PATH.\n\tGHRunner func(dir string, args ...string) (string, error)\n\t// ChangesClipboard overrides clipboard writes from CopyPRDescription; when nil, falls back to WriteClipboard or core.Scope.SetClipboard.\n\tChangesClipboard func(text string)\n\t// OnAskAgent, when set, is called when the author triggers \"Ask the agent about this\" (AskAgentAboutObject / mod+l) on an object.\n\tOnAskAgent func(AgentPromptRequest)\n\t// OnStopAgent is invoked by Mod+. (even while a modal dialog is open, per Spec rule 04) to stop an active agent run without disturbing reviewable changes.\n\tOnStopAgent func()\n\t// OnStartAgentRequest, when set, is called when the author starts a new agent request via StartAgentRequest.\n\tOnStartAgentRequest func(prompt string)\n\t// OnAddToAgentRequest, when set, is called when the author adds follow-up instructions via \"Add to this request\" while an agent request is running.\n\tOnAddToAgentRequest func(text string)\n\t// AgentRunner runs a composer request against an external agent (such as Claude Code or Codex) and streams incremental steps; when nil on desktop, CLIAgentRunner is used.\n\tAgentRunner AgentRunner\n\t// AutomationDrafter optionally turns plain words from \"+ New automation, in words\" into a candidate AutomationRule; when nil, a built-in English/Chinese drafter is used.\n\tAutomationDrafter func(ctx context.Context, words string) (AutomationRule, error)\n\t// AgentTools lists and executes the editor's MCP tools for the built-in agent; editormcp.New wires this automatically.\n\tAgentTools AgentToolExecutor\n\t// AgentSecretStore optionally overrides secret storage for the built-in agent's API key; when nil and Keychain is nil, cx.Secrets() is used whenever a core.Scope is attached (backed by the OS keychain in production and nsgotest.Secrets in tests) so keys never touch project files.\n\tAgentSecretStore AgentSecretStore\n\t// BuiltInAgentEndpoint optionally overrides the HTTP endpoint used by the built-in agent (defaults to DefaultBuiltInAgentEndpoint). Only https:// URLs or loopback http:// URLs are permitted.\n\tBuiltInAgentEndpoint string\n\t// BuiltInHTTPClient optionally overrides the *http.Client used by the built-in agent.\n\tBuiltInHTTPClient *http.Client\n\t// AgentReconnectProbe checks whether an MCP agent session is reachable during a reconnect attempt; wired automatically by editormcp.Server and replaceable in tests.\n\tAgentReconnectProbe func(ctx context.Context) (AgentClientInfo, error)\n\t// AgentScheduleAfter schedules fn to run after d and returns a cancel function; when nil, time.AfterFunc posting onto the editor's UI scope is used. Tests replace this to verify the 1, 2, 4, 8, 16 s reconnect backoff without real sleeps.\n\tAgentScheduleAfter func(d time.Duration, fn func()) (cancel func())\n\t// OnFocusAgentRequest, when set, is called when the user clicks the \"Waiting for you\" status chip to focus the open request.\n\tOnFocusAgentRequest func(req AgentOpenRequest)\n\t// OnAgentTurn, when set, is called whenever the author sends a request from the ⌘L in-place composer or Agent panel.\n\tOnAgentTurn func(AgentTurn)\n\t// OnSendAgentRequest, when set, is called after SendAgentRequest / SendAgentRequestWith appends and persists a request on the active agent thread.\n\tOnSendAgentRequest func(thread *AgentThread, req AgentThreadRequest)\n\t// OnOpenHistoryStep, when set, is called when the author clicks \"Open this step in History\" on a folded request or step.\n\tOnOpenHistoryStep func(sel AgentHistorySelection)\n\t// OnAgentPointPicked, when set, is called when the user clicks a world coordinate in the viewport during Partial \"Let me point\".\n\tOnAgentPointPicked func(turnID, target string, worldX, worldY float32)\n\t// OnOpenAgentReview, when set, is called when the user opens a turn's Review from Partial, Lost, Stopped, or Mismatch cards.\n\tOnOpenAgentReview func(review AgentTurnReview)\n\t// OnSendAgentComposerRequest, when set, receives each request assembled from the agent composer's active chips (and nothing else) and returns the agent's reply and optional reported token usage.\n\tOnSendAgentComposerRequest func(AgentRequest) (AgentResponse, error)\n\t// OnCompactAgentThread, when set, overrides how CompactAgentThread summarizes earlier turns and updates token usage.\n\tOnCompactAgentThread func(earlier, kept []AgentThreadTurn) (summary string, usage *AgentTokenUsage, err error)\n\t// OnStartFreshAgentThread, when set, is called when StartFreshAgentThread starts a new thread seeded with summary.\n\tOnStartFreshAgentThread func(summary string) error\n\t// OnPlanDecision, when set, is called whenever the author approves, chooses Just do it on, or stops an agent-proposed plan.\n\tOnPlanDecision func(AgentPlanDecision)\n\t// ProblemCheckDebounce controls the debounce delay before live problem checks run after edits (defaults to 80ms when <= 0).\n\tProblemCheckDebounce time.Duration\n\t// OnAskAboutProblem, when set, is called when the author submits a question from \"Ask about this problem…\" with the problem attached.\n\tOnAskAboutProblem func(ProblemQuestionRequest)\n\t// AutoSaveDelay configures the debounce delay after kept edits before automatic saving runs (defaults to DefaultAutoSaveDelay = 2s when <= 0).\n\tAutoSaveDelay time.Duration\n\t// SavingIndicatorDelay configures how long an automatic save must stay in flight before the status bar shows \"Saving…\" (defaults to DefaultSavingIndicatorDelay = 300ms when <= 0).\n\tSavingIndicatorDelay time.Duration\n\t// SaveFileWriter optionally overrides the atomic file writer used when saving scenes and project files (defaults to writeFileAtomic when nil), allowing deterministic slow-write or error tests.\n\tSaveFileWriter func(path string, data []byte) error\n\t// FreeSpaceBytes optionally overrides available-disk-space lookup for path when formatting disk-full save errors (for example \"Couldn't save: disk is full · 12 MB free\"). When nil, the OS filesystem free space is queried.\n\tFreeSpaceBytes func(path string) (uint64, bool)\n\t// AgentTaskRunner, when set, executes each background agent task started by SubmitTask or the queue scheduler in its own goroutine.\n\tAgentTaskRunner func(ctx context.Context, task AgentTask) error\n\t// OnTaskPermissionDecision, when set, is called when the user clicks Allow once or Deny on a TaskNeedsYou task.\n\tOnTaskPermissionDecision func(taskID string, allow bool)\n\t// ThreadsDir optionally overrides where *.thread.yaml background task files are persisted; when empty, <projectDir>/.nsgo/threads is used while a project is open.\n\tThreadsDir string\n\t// OnSettingsAgentRequest, when set, is called when the author clicks a suggested ask or submits an agent prompt on a Settings page or in the Settings search bar.\n\tOnSettingsAgentRequest func(SettingsAgentRequest)\n\t// OnSaveBrief, when set, overrides writing brief.yaml on disk when the game brief is edited or saved.\n\tOnSaveBrief func(data []byte) error\n\t// OnSaveProjectRules, when set, overrides writing AGENTS.md on disk when project rules are edited or saved.\n\tOnSaveProjectRules func(data []byte) error\n\t// FirstRunDetectAgents overrides local agent discovery (claude, codex, API key) for the Start with AI Connect step.\n\tFirstRunDetectAgents func() []FirstRunAgentOption\n\t// FirstRunConnectAgent overrides the agent handshake during Start with AI Connect (returning connected tool count or an error/timeout).\n\tFirstRunConnectAgent func(ctx context.Context, kind string, projectDisplayPath string) (tools int, err error)\n\t// FirstRunValidateAPIKey overrides immediate validation of a pasted API key in Start with AI Connect.\n\tFirstRunValidateAPIKey func(ctx context.Context, key string) FirstRunAPIKeyStatus\n\t// FirstRunPlanner overrides generating the first plan from the author's idea and selected project name.\n\tFirstRunPlanner func(ctx context.Context, req FirstRunPlanRequest) (*FirstRunPlan, error)\n\t// FirstRunBuilder overrides executing the approved first-run plan after the project folder is created.\n\tFirstRunBuilder func(ctx context.Context, req FirstRunBuildRequest, emit func(FirstRunBuildEvent)) (*FirstRunBuildResult, error)\n\t// FirstRunConnectTimeout bounds the Start with AI agent handshake before showing the no-answer checklist (defaults to 30s when <= 0).\n\tFirstRunConnectTimeout time.Duration\n\t// OnFocusWindow, when set, is called when clicking a system notification brings the editor window to the front.\n\tOnFocusWindow func()\n\t// OnOpenAgentTask, when set, is called after OpenAgentTask opens a task's scene and switches to the Tasks or Agent panel.\n\tOnOpenAgentTask func(task AgentTask)\n\t// OnSendSketch, when set, is called when the author sends a viewport sketch to the agent (SendSketch).\n\tOnSendSketch func(SketchAgentRequest)\n\t// OnReplySketchReading, when set, is called when the author answers an agent sketch reading card (Go ahead, Correct a mark, or a text reply).\n\tOnReplySketchReading func(SketchReadingReply)\n\t// CheckpointMaxBytes caps the total disk size under .nsgo/checkpoints/ before the oldest checkpoints are pruned (defaults to DefaultCheckpointMaxBytes when <= 0).\n\tCheckpointMaxBytes int64\n\t// contains filtered or unexported fields\n}",
          "doc": "Editor owns the editable SceneDoc, its resolved BuiltScene, undo/redo History,\nviewport tool/selection state, asset browser selection, and play-mode lifecycle.\n",
          "file": "pkg/editor/state.go",
          "line": 278,
          "members": [
            {
              "name": "Doc",
              "anchor": "Editor.Doc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Built",
              "anchor": "Editor.Built",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BuildErr",
              "anchor": "Editor.BuildErr",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "History",
              "anchor": "Editor.History",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Resolver",
              "anchor": "Editor.Resolver",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ModelResolver",
              "anchor": "Editor.ModelResolver",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prefabs",
              "anchor": "Editor.Prefabs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedID",
              "anchor": "Editor.SelectedID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveLayer",
              "anchor": "Editor.ActiveLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tool",
              "anchor": "Editor.Tool",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewMode",
              "anchor": "Editor.ViewMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GizmoMode",
              "anchor": "Editor.GizmoMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GizmoSpace3D",
              "anchor": "Editor.GizmoSpace3D",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Camera3D",
              "anchor": "Editor.Camera3D",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveTileID",
              "anchor": "Editor.ActiveTileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveTileLayer",
              "anchor": "Editor.ActiveTileLayer",
              "kind": "field",
              "doc": "ActiveTileLayer names the tile layer of a layered grid (sceneformat.TilemapDoc.TileLayers) that PaintTile, EraseTile and FloodFillTile change, empty for its first. A single grid has no tile layers and ignores it."
            },
            {
              "name": "ActiveTileFlip",
              "anchor": "Editor.ActiveTileFlip",
              "kind": "field",
              "doc": "ActiveTileFlip holds the flip bits (tilemap.FlipHorizontal, FlipVertical and FlipDiagonal) that the Paint and Fill tools place tiles of a layered grid with."
            },
            {
              "name": "ActiveTerrain",
              "anchor": "Editor.ActiveTerrain",
              "kind": "field",
              "doc": "ActiveTerrain names the terrain set of a layered grid's YAML tileset that ToolTerrain paints and erases, empty for its first."
            },
            {
              "name": "SelectedAsset",
              "anchor": "Editor.SelectedAsset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedPrefab",
              "anchor": "Editor.SelectedPrefab",
              "kind": "field",
              "doc": "SelectedPrefab names the registered prefab selected in the asset browser for the Place tool, or empty when none is selected."
            },
            {
              "name": "SelectedModel",
              "anchor": "Editor.SelectedModel",
              "kind": "field",
              "doc": "SelectedModel is the model the Place tool adds in the 3D viewport (SelectModel), chosen in the asset browser's Models list; nil places nothing in 3D, where a press then selects."
            },
            {
              "name": "PlaceHeight3D",
              "anchor": "Editor.PlaceHeight3D",
              "kind": "field",
              "doc": "PlaceHeight3D is the height of the ground plane, the horizontal plane the Place tool puts a model on in 3D where the pointer's ray hits no geometry (PlacementAt3D)."
            },
            {
              "name": "PlaceSnap3D",
              "anchor": "Editor.PlaceSnap3D",
              "kind": "field",
              "doc": "PlaceSnap3D snaps where the Place tool puts a model on the ground plane in 3D to the 3D grid's spacing along X and Z; a model placed on the scene's geometry stays where the pointer's ray hits it (PlacementAt3D)."
            },
            {
              "name": "PlaceAlign3D",
              "anchor": "Editor.PlaceAlign3D",
              "kind": "field",
              "doc": "PlaceAlign3D turns a model the Place tool puts on the scene's geometry in 3D so that its +Y axis follows the surface's normal."
            },
            {
              "name": "Status",
              "anchor": "Editor.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FilePath",
              "anchor": "Editor.FilePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shading3D",
              "anchor": "Editor.Shading3D",
              "kind": "field",
              "doc": "Shading3D is how the 3D viewport shades the scene's geometry on the GPU (SetShading3D)."
            },
            {
              "name": "Lights3D",
              "anchor": "Editor.Lights3D",
              "kind": "field",
              "doc": "Lights3D are the lights the 3D viewport draws the scene's geometry with, such as the rig the game lights the scene with, over the scene's background color; nil draws it with DefaultLights3D under a gradient sky. Scene files do not hold lights, so an editor built on this package that knows its game's lights sets them with SetLights3D, which redraws the viewport; assigning the field directly does not."
            },
            {
              "name": "FlySpeed3D",
              "anchor": "Editor.FlySpeed3D",
              "kind": "field",
              "doc": "FlySpeed3D is how fast the 3D viewport's camera flies (BeginFly3D), in world units a second; the wheel changes it while flying (AdjustFlySpeed3D), and the first flight sets it from the camera's Distance when it is not positive."
            },
            {
              "name": "Project",
              "anchor": "Editor.Project",
              "kind": "field",
              "doc": "Project is the game's project file (game.yaml) OpenProject opened, nil without one; EditProject changes it undoably and SaveProject writes it."
            },
            {
              "name": "ProjectPath",
              "anchor": "Editor.ProjectPath",
              "kind": "field",
              "doc": "ProjectPath is the game.yaml path OpenProject opened Project from."
            },
            {
              "name": "ScenePath",
              "anchor": "Editor.ScenePath",
              "kind": "field",
              "doc": "ScenePath is the open scene's slash-separated path from the project root, as Resolver names scene files (for example \"scenes/level.scene.yaml\"), or empty when the scene has no such path. PlaceObject and PlaceScene resolve the edited scene under this path, so they refuse an instance that would lead back to the open scene and make the saved file instance itself. OpenFile, SaveFile and OpenProject set it when FilePath lies in the open project's directory and clear it otherwise; OpenYAML clears it, since the loaded scene may come from another file."
            },
            {
              "name": "SelectedFile",
              "anchor": "Editor.SelectedFile",
              "kind": "field",
              "doc": "SelectedFile is the slash-separated path of the file selected in the file browser (FilesView), relative to the open project's root, or empty when none is selected."
            },
            {
              "name": "Library",
              "anchor": "Editor.Library",
              "kind": "field",
              "doc": "Library is the pack library the library panel lists and installs from into the open project (InstallPack); nil hides the panel."
            },
            {
              "name": "ProjectAssets",
              "anchor": "Editor.ProjectAssets",
              "kind": "field",
              "doc": "ProjectAssets makes the editor load its assets from the open project: OpenProject and OpenProjectScene make Resolver a project.Resolver over the project's directory, so the scene draws the project's atlases, the asset browser lists them (Assets), PlaceScene instances its scene files and materials and Tiled maps load from it. Atlases are found nearest the open scene (ScenePath), as `game check` finds them, and listed again whenever the editor changes the project's files. Set it before opening a project; editorcmd sets it."
            },
            {
              "name": "AppName",
              "anchor": "Editor.AppName",
              "kind": "field",
              "doc": "AppName is the editor's name, which the window title EditorView sets ends with (WindowTitle); empty means \"NSGo Scene Editor\". An editor built on this package, such as a game's own, sets it to its own name, since EditorView owns the window title."
            },
            {
              "name": "SettingsPath",
              "anchor": "Editor.SettingsPath",
              "kind": "field",
              "doc": "SettingsPath is the per-user editor settings YAML file path outside the project (set by LoadSettings or LoadUserSettings). When non-empty, SetLanguage and SetAppearance persist changes to it."
            },
            {
              "name": "OnSave",
              "anchor": "Editor.OnSave",
              "kind": "field",
              "doc": "OnSave is invoked by the UI Save button with the encoded YAML bytes."
            },
            {
              "name": "OnRunGame",
              "anchor": "Editor.OnRunGame",
              "kind": "field",
              "doc": "OnRunGame is invoked by the Run Game command (shortcut, menu bar, or command palette).\nWhen nil, RunGame starts play-in-editor if a UI scope is attached."
            },
            {
              "name": "OnPlayUpdate",
              "anchor": "Editor.OnPlayUpdate",
              "kind": "field",
              "doc": "OnPlayUpdate runs on every fixed simulation step while Play mode is active."
            },
            {
              "name": "OnPlayDraw",
              "anchor": "Editor.OnPlayDraw",
              "kind": "field",
              "doc": "OnPlayDraw runs on every render frame while Play mode is active."
            },
            {
              "name": "OnPlayTrigger",
              "anchor": "Editor.OnPlayTrigger",
              "kind": "field",
              "doc": "OnPlayTrigger runs whenever a built-in 2D or 3D physics trigger fires enter, stay, or exit during Play mode."
            },
            {
              "name": "OnPlayReset",
              "anchor": "Editor.OnPlayReset",
              "kind": "field",
              "doc": "OnPlayReset, when set, is called when Play mode starts or resets for replay playback with the recording's seed so game state resets deterministically."
            },
            {
              "name": "PlayInputSource",
              "anchor": "Editor.PlayInputSource",
              "kind": "field",
              "doc": "PlayInputSource supplies live action/axis input sampled into the 60-second rolling replay buffer during Play mode."
            },
            {
              "name": "PlayInputActions",
              "anchor": "Editor.PlayInputActions",
              "kind": "field",
              "doc": "PlayInputActions lists the watched action names recorded in Play mode's rolling replay buffer. When empty and Project defines input actions, those action names are used in sorted order."
            },
            {
              "name": "PlayInputAxes",
              "anchor": "Editor.PlayInputAxes",
              "kind": "field",
              "doc": "PlayInputAxes lists the watched axis names recorded in Play mode's rolling replay buffer."
            },
            {
              "name": "PlaySeed",
              "anchor": "Editor.PlaySeed",
              "kind": "field",
              "doc": "PlaySeed is the random seed written into Play mode's rolling replay recordings."
            },
            {
              "name": "ReplayDir",
              "anchor": "Editor.ReplayDir",
              "kind": "field",
              "doc": "ReplayDir optionally overrides the root directory under which replays/<scene>-<frame>.replay.yaml files are written when no project is open."
            },
            {
              "name": "OnPlayMarksThread",
              "anchor": "Editor.OnPlayMarksThread",
              "kind": "field",
              "doc": "OnPlayMarksThread, when set, is called when unsent Play mode marks are dispatched as one thread (via SendPlayMarks or automatically when Play stops)."
            },
            {
              "name": "OnAskFrozenFrame",
              "anchor": "Editor.OnAskFrozenFrame",
              "kind": "field",
              "doc": "OnAskFrozenFrame, when set, is called when the author submits a prompt from Play mode's \"Ask about frame N\" dialog."
            },
            {
              "name": "OnAskPanicFix",
              "anchor": "Editor.OnAskPanicFix",
              "kind": "field",
              "doc": "OnAskPanicFix, when set, is called when the author clicks \"Ask the agent to fix\" on a panic card in the Output panel."
            },
            {
              "name": "ShowPhysicsDebug",
              "anchor": "Editor.ShowPhysicsDebug",
              "kind": "field",
              "doc": "ShowPhysicsDebug controls whether 2D and 3D physics collider and trigger outlines draw in the viewport. New initializes it to true."
            },
            {
              "name": "ShowLightingPreview",
              "anchor": "Editor.ShowLightingPreview",
              "kind": "field",
              "doc": "ShowLightingPreview controls whether 2D lights, occluder shadows, and ambient darkness draw live in the 2D edit viewport. New initializes it to true."
            },
            {
              "name": "ShowNavMesh2D",
              "anchor": "Editor.ShowNavMesh2D",
              "kind": "field",
              "doc": "ShowNavMesh2D controls whether the built 2D navigation mesh overlay and authored navregion2d outlines draw in the 2D edit viewport. New initializes it to true."
            },
            {
              "name": "ShowNavMesh3D",
              "anchor": "Editor.ShowNavMesh3D",
              "kind": "field",
              "doc": "ShowNavMesh3D controls whether the baked 3D navigation mesh overlay draws in the 3D viewport. New initializes it to true."
            },
            {
              "name": "OnBakeNavMesh3DGeometry",
              "anchor": "Editor.OnBakeNavMesh3DGeometry",
              "kind": "field",
              "doc": "OnBakeNavMesh3DGeometry, when set, is called by BakeNavMesh3D after collecting the open scene's static geometry so games can add programmatic terrain, GridMaps, or physics colliders."
            },
            {
              "name": "NavMesh3DAssetFS",
              "anchor": "Editor.NavMesh3DAssetFS",
              "kind": "field",
              "doc": "NavMesh3DAssetFS is an optional fallback file system used by BakeNavMesh3D and LoadNavMesh3D to resolve glTF models and instanced scenes when no project directory is open."
            },
            {
              "name": "ShowLODOverlay",
              "anchor": "Editor.ShowLODOverlay",
              "kind": "field",
              "doc": "ShowLODOverlay controls whether per-object active LOD labels and color-coding draw in the 3D viewport. New initializes it to true."
            },
            {
              "name": "ShowOccluders",
              "anchor": "Editor.ShowOccluders",
              "kind": "field",
              "doc": "ShowOccluders controls whether 3D occluder volumes draw in the 3D viewport. New initializes it to true."
            },
            {
              "name": "ShowRenderStats",
              "anchor": "Editor.ShowRenderStats",
              "kind": "field",
              "doc": "ShowRenderStats controls whether the RenderStats HUD overlay shows in the 3D viewport. New initializes it to true."
            },
            {
              "name": "ShowAllShapes",
              "anchor": "Editor.ShowAllShapes",
              "kind": "field",
              "doc": "ShowAllShapes controls whether the 2D viewport draws component shape fields of every visible object (true) or only the selected object (false)."
            },
            {
              "name": "SnapToGrid",
              "anchor": "Editor.SnapToGrid",
              "kind": "field",
              "doc": "SnapToGrid snaps object placement, drags, 2D handles, and 3D translate gizmos to EffectiveGridStep increments when true."
            },
            {
              "name": "GridSize",
              "anchor": "Editor.GridSize",
              "kind": "field",
              "doc": "GridSize is an explicit grid spacing in world/layer units used when SnapToGrid is true; 0 follows the active layer's tilemap tile size (or 8 when it has none)."
            },
            {
              "name": "SnapToPixel",
              "anchor": "Editor.SnapToPixel",
              "kind": "field",
              "doc": "SnapToPixel snaps positions to whole points (1-unit increments) when SnapToGrid is false."
            },
            {
              "name": "SnapRotation",
              "anchor": "Editor.SnapRotation",
              "kind": "field",
              "doc": "SnapRotation snaps 2D and 3D rotation drags to RotationSnapDeg-degree increments."
            },
            {
              "name": "RotationSnapDeg",
              "anchor": "Editor.RotationSnapDeg",
              "kind": "field",
              "doc": "RotationSnapDeg is the rotation snap step in degrees. New initializes it to 15."
            },
            {
              "name": "SnapScale",
              "anchor": "Editor.SnapScale",
              "kind": "field",
              "doc": "SnapScale snaps 2D and 3D scale drags to ScaleSnapStep increments."
            },
            {
              "name": "ScaleSnapStep",
              "anchor": "Editor.ScaleSnapStep",
              "kind": "field",
              "doc": "ScaleSnapStep is the scale snap increment. New initializes it to 0.25."
            },
            {
              "name": "ShowGrid",
              "anchor": "Editor.ShowGrid",
              "kind": "field",
              "doc": "ShowGrid draws an optional 2D grid overlay at the active snap step in the 2D edit viewport."
            },
            {
              "name": "PlayRate",
              "anchor": "Editor.PlayRate",
              "kind": "field",
              "doc": "PlayRate is the fixed update rate in Hz during Play mode and clip playback (defaults to 60 when <= 0)."
            },
            {
              "name": "OnSaveClip",
              "anchor": "Editor.OnSaveClip",
              "kind": "field",
              "doc": "OnSaveClip is invoked by the animation panel's Save button with the encoded clip YAML; when nil the button writes to ClipPath."
            },
            {
              "name": "OnSaveStates",
              "anchor": "Editor.OnSaveStates",
              "kind": "field",
              "doc": "OnSaveStates is invoked by the state machine panel's Save button with the encoded *.states.yaml bytes; when nil the button writes to StatesPath."
            },
            {
              "name": "OnSaveCutscene",
              "anchor": "Editor.OnSaveCutscene",
              "kind": "field",
              "doc": "OnSaveCutscene is invoked by the cutscene timeline panel's Save button with the encoded *.cutscene.yaml bytes; when nil the button writes to CutscenePath."
            },
            {
              "name": "CutsceneCatalog",
              "anchor": "Editor.CutsceneCatalog",
              "kind": "field",
              "doc": "CutsceneCatalog optionally provides localized strings for cutscene dialogue previews when no localization files are loaded from the project."
            },
            {
              "name": "Clips",
              "anchor": "Editor.Clips",
              "kind": "field",
              "doc": "Clips optionally resolves animation clips for the open sprite state machine when no project directory holds them on disk."
            },
            {
              "name": "OnSaveDataTable",
              "anchor": "Editor.OnSaveDataTable",
              "kind": "field",
              "doc": "OnSaveDataTable is invoked by the Data Table panel's Save button with the encoded table YAML; when nil the button writes to DataTablePath."
            },
            {
              "name": "OnSaveGridMap",
              "anchor": "Editor.OnSaveGridMap",
              "kind": "field",
              "doc": "OnSaveGridMap is invoked by SaveGridMap (and Save when a GridMap has unsaved edits) with the encoded canonical .gridmap.yaml bytes; when nil SaveGridMap writes to the GridMap's file path."
            },
            {
              "name": "GridMapFS",
              "anchor": "Editor.GridMapFS",
              "kind": "field",
              "doc": "GridMapFS optionally provides a filesystem for loading GridMap files and their glTF mesh libraries when no project is open on disk."
            },
            {
              "name": "OnSaveTileset",
              "anchor": "Editor.OnSaveTileset",
              "kind": "field",
              "doc": "OnSaveTileset is invoked by the Tileset Editor panel's Save button with the encoded tileset YAML; when nil the button writes to TilesetPath."
            },
            {
              "name": "OnSaveParticleEmitter",
              "anchor": "Editor.OnSaveParticleEmitter",
              "kind": "field",
              "doc": "OnSaveParticleEmitter is invoked by the Particle Emitter panel's Save button with the encoded emitter YAML; when nil the button writes to ParticleEmitterPath."
            },
            {
              "name": "OnSaveMaterial",
              "anchor": "Editor.OnSaveMaterial",
              "kind": "field",
              "doc": "OnSaveMaterial is invoked by the Material Editor panel's Save button with the encoded material YAML (resource.Encode); when nil the button writes to MaterialPath."
            },
            {
              "name": "OnSaveRooms",
              "anchor": "Editor.OnSaveRooms",
              "kind": "field",
              "doc": "OnSaveRooms is invoked by SaveRooms / Save with the encoded *.rooms.yaml bytes; when nil SaveRooms writes to RoomsPath."
            },
            {
              "name": "OnSaveRig",
              "anchor": "Editor.OnSaveRig",
              "kind": "field",
              "doc": "OnSaveRig is invoked by the Rig Editor panel's Save Rig button with the encoded .skel.yaml bytes; when nil the button writes to RigPath."
            },
            {
              "name": "OnAskAgentUpdateRef",
              "anchor": "Editor.OnAskAgentUpdateRef",
              "kind": "field",
              "doc": "OnAskAgentUpdateRef, when set, is called when the author clicks \"Ask the agent to update it\" for a non-rewritten reference (such as a Go string constant) in the References / Safe Rename review."
            },
            {
              "name": "OnOpenSourceFile",
              "anchor": "Editor.OnOpenSourceFile",
              "kind": "field",
              "doc": "OnOpenSourceFile, when set, is called when the author clicks \"Open <file>\" for a non-scene source file (such as a Go file) in the References screen."
            },
            {
              "name": "ExportCommandRunner",
              "anchor": "Editor.ExportCommandRunner",
              "kind": "field",
              "doc": "ExportCommandRunner runs `go` with args for the Export panel's release builds, streaming output to stdout and stderr; when nil the editor invokes `go` via os/exec."
            },
            {
              "name": "ReleaseCheckRunner",
              "anchor": "Editor.ReleaseCheckRunner",
              "kind": "field",
              "doc": "ReleaseCheckRunner overrides `nsgo check` for the Build and Release screen's preflight and Check project step; when nil, runProjectCheck runs over the project directory."
            },
            {
              "name": "ReleaseStepRunner",
              "anchor": "Editor.ReleaseStepRunner",
              "kind": "field",
              "doc": "ReleaseStepRunner optionally overrides execution of each Build and Release step (Check project, Compile Go, Pack assets, Sign, Smoke playtest, Measure)."
            },
            {
              "name": "ReleasePlaytestRunner",
              "anchor": "Editor.ReleasePlaytestRunner",
              "kind": "field",
              "doc": "ReleasePlaytestRunner overrides the Smoke playtest step of a Build and Release run; when nil, a default summary is produced."
            },
            {
              "name": "ReleaseMeasureRunner",
              "anchor": "Editor.ReleaseMeasureRunner",
              "kind": "field",
              "doc": "ReleaseMeasureRunner overrides the Measure step of a Build and Release run; when nil, artifact size and category breakdown are measured from disk and compared against the last release baseline."
            },
            {
              "name": "ReleaseReadinessInspector",
              "anchor": "Editor.ReleaseReadinessInspector",
              "kind": "field",
              "doc": "ReleaseReadinessInspector overrides platform readiness evaluation on the Build and Release screen; when nil, built-in readiness checks (including iOS bundle id, icon, certificate, provisioning profile, privacy manifest, and touch controls) are used."
            },
            {
              "name": "OnReleaseReadinessPersonAction",
              "anchor": "Editor.OnReleaseReadinessPersonAction",
              "kind": "field",
              "doc": "OnReleaseReadinessPersonAction is called when the author clicks a readiness action that requires the person (such as signing in to Apple for a provisioning profile)."
            },
            {
              "name": "OnReviewReleaseUploads",
              "anchor": "Editor.OnReviewReleaseUploads",
              "kind": "field",
              "doc": "OnReviewReleaseUploads is called when the author presses \"Review uploads...\" on the Build and Release screen; nothing is uploaded automatically."
            },
            {
              "name": "ReleaseNotesDrafter",
              "anchor": "Editor.ReleaseNotesDrafter",
              "kind": "field",
              "doc": "ReleaseNotesDrafter generates player-facing Markdown release notes from commits since the last release,\nkept reviews, and changelog fragments; when nil, DefaultReleaseNotesDraft is used."
            },
            {
              "name": "ReleaseUploader",
              "anchor": "Editor.ReleaseUploader",
              "kind": "field",
              "doc": "ReleaseUploader uploads a single user-confirmed artifact to a store destination (itch.io, Google Play internal testing, or TestFlight).\nIt is never invoked until the person confirms in Review uploads, whatever the permission profile."
            },
            {
              "name": "Keychain",
              "anchor": "Editor.Keychain",
              "kind": "field",
              "doc": "Keychain stores and retrieves store upload credentials and built-in agent API keys outside project files; when nil, DefaultKeychain() is used."
            },
            {
              "name": "SyncMCPConfig",
              "anchor": "Editor.SyncMCPConfig",
              "kind": "field",
              "doc": "SyncMCPConfig, when set (automatically wired by editormcp.New), writes configured external MCP servers into the open project's agent MCP configuration (.mcp.json and .codex/config.toml)."
            },
            {
              "name": "OpenOutputFolder",
              "anchor": "Editor.OpenOutputFolder",
              "kind": "field",
              "doc": "OpenOutputFolder opens the release output directory in the OS file manager after a successful non-dry-run build; when nil the editor uses the host platform's default opener."
            },
            {
              "name": "OpenBrowserURL",
              "anchor": "Editor.OpenBrowserURL",
              "kind": "field",
              "doc": "OpenBrowserURL opens a local/LAN web build URL in this computer's browser from the Build and Release screen's RUN ON DEVICE list; when nil the editor uses the host platform's default browser opener."
            },
            {
              "name": "LANAddressResolver",
              "anchor": "Editor.LANAddressResolver",
              "kind": "field",
              "doc": "LANAddressResolver returns the local/LAN IPv4 address the web build test server binds to and advertises in the QR code; when nil the editor picks a private RFC 1918 LAN interface address (falling back to 127.0.0.1). Non-LAN public IP addresses are always refused."
            },
            {
              "name": "WebBuildServePort",
              "anchor": "Editor.WebBuildServePort",
              "kind": "field",
              "doc": "WebBuildServePort optionally pins the TCP port used by StartWebBuildServer; 0 (the default) allocates an ephemeral free port on the LAN interface."
            },
            {
              "name": "DeviceDiscoverer",
              "anchor": "Editor.DeviceDiscoverer",
              "kind": "field",
              "doc": "DeviceDiscoverer probes connected USB devices (such as Android phones over adb) for the Build and Release screen's RUN ON DEVICE list; when nil the editor queries `adb devices -l` on desktop."
            },
            {
              "name": "DeviceCommandRunner",
              "anchor": "Editor.DeviceCommandRunner",
              "kind": "field",
              "doc": "DeviceCommandRunner executes `go tool nsgo build -target ... -run -device ...` when launching a finished Android build on a connected USB device; when nil the editor invokes `go` via os/exec on desktop."
            },
            {
              "name": "WebBridgeHandler",
              "anchor": "Editor.WebBridgeHandler",
              "kind": "field",
              "doc": "WebBridgeHandler optionally handles JSON-RPC 2.0 requests received on `/__nsgo_mcp/rpc` from a served web build in Play mode; when nil, built-in bridge discovery/status methods are served."
            },
            {
              "name": "RunGameCommand",
              "anchor": "Editor.RunGameCommand",
              "kind": "field",
              "doc": "RunGameCommand starts the child game process for RunGame / RunGameWith, streaming output to stdout and stderr; when nil the editor launches `go tool game dev` in the open project directory in its own process group on desktop."
            },
            {
              "name": "RemoteTransport",
              "anchor": "Editor.RemoteTransport",
              "kind": "field",
              "doc": "RemoteTransport, when set, supplies the MCP client transport used to connect to a running game launched with RunGameOptions.Automation; when nil the editor spawns `go tool nsgo mcp` in the project directory on desktop."
            },
            {
              "name": "RemoteRefreshInterval",
              "anchor": "Editor.RemoteRefreshInterval",
              "kind": "field",
              "doc": "RemoteRefreshInterval controls how often the remote scene tree and inspector poll the running game while unpaused (defaults to 250ms when <= 0)."
            },
            {
              "name": "AssetsCommandRunner",
              "anchor": "Editor.AssetsCommandRunner",
              "kind": "field",
              "doc": "AssetsCommandRunner runs `go tool game assets` for BuildAssets and ReimportAsset, streaming output to stdout and stderr; when nil the editor invokes `go` in the open project directory on desktop."
            },
            {
              "name": "OnReloadAssets",
              "anchor": "Editor.OnReloadAssets",
              "kind": "field",
              "doc": "OnReloadAssets, when set, is called after ReloadAssets reloads changed atlases or textures from disk."
            },
            {
              "name": "OnExportProfilerTrace",
              "anchor": "Editor.OnExportProfilerTrace",
              "kind": "field",
              "doc": "OnExportProfilerTrace is invoked by the Profiler panel's Export Trace button with the Chrome/Perfetto Trace Event Format JSON bytes; when nil the button opens a Save File dialog."
            },
            {
              "name": "ProfilerPollInterval",
              "anchor": "Editor.ProfilerPollInterval",
              "kind": "field",
              "doc": "ProfilerPollInterval configures how often the editor polls game_perf_readout and game_perf_zones while connected to a running game (defaults to 250ms when <= 0)."
            },
            {
              "name": "RecentProjectsPath",
              "anchor": "Editor.RecentProjectsPath",
              "kind": "field",
              "doc": "RecentProjectsPath is the per-user YAML file where recently opened projects are stored outside any project directory. When empty, recent projects stay in memory without writing to disk."
            },
            {
              "name": "LayoutPath",
              "anchor": "Editor.LayoutPath",
              "kind": "field",
              "doc": "LayoutPath is the per-user YAML file where the editor's dock panel layout is stored outside any project directory. When empty, layout edits stay in memory without writing to disk."
            },
            {
              "name": "Now",
              "anchor": "Editor.Now",
              "kind": "field",
              "doc": "Now returns the current time for recent-project timestamps and relative-time labels; when nil, time.Now is used."
            },
            {
              "name": "PickProjectFolder",
              "anchor": "Editor.PickProjectFolder",
              "kind": "field",
              "doc": "PickProjectFolder prompts the user to choose a project folder (for Open Project and New Project's parent folder). When nil and a UI scope is attached, the editor invokes cx.PickDirectories."
            },
            {
              "name": "CreateProject",
              "anchor": "Editor.CreateProject",
              "kind": "field",
              "doc": "CreateProject runs project creation from a template (such as `game new`), streaming its output to stdout and stderr. When nil on desktop, the editor invokes `go tool game new`."
            },
            {
              "name": "OnOpenDemo",
              "anchor": "Editor.OnOpenDemo",
              "kind": "field",
              "doc": "OnOpenDemo overrides the Start Screen's Open Demo action when non-nil; when nil, OpenDemo loads the built-in Demo Room."
            },
            {
              "name": "OnSaveScreen",
              "anchor": "Editor.OnSaveScreen",
              "kind": "field",
              "doc": "OnSaveScreen, when set, is called with the screen path and canonical *.screen.yaml bytes whenever a HUD layout edit writes or reverts a screen."
            },
            {
              "name": "OnHUDPrompt",
              "anchor": "Editor.OnHUDPrompt",
              "kind": "field",
              "doc": "OnHUDPrompt, when set, is called when the author submits a prompt from the HUD layout screen's composer or \"Ask the agent to fix N\" button."
            },
            {
              "name": "OnOpenFileAtLine",
              "anchor": "Editor.OnOpenFileAtLine",
              "kind": "field",
              "doc": "OnOpenFileAtLine, when set, is called by OpenSelectedObjectYAML with the file path and 1-based line number of the selected object in the scene YAML."
            },
            {
              "name": "OnComposerPrompt",
              "anchor": "Editor.OnComposerPrompt",
              "kind": "field",
              "doc": "OnComposerPrompt, when set, is called when the inspector (such as Ask to add) sends or stages a prompt for the agent composer."
            },
            {
              "name": "GitRunner",
              "anchor": "Editor.GitRunner",
              "kind": "field",
              "doc": "GitRunner invokes git with args in dir for scene merge conflict inspection, commit, and abort; when nil, os/exec runs git."
            },
            {
              "name": "MergeSuggester",
              "anchor": "Editor.MergeSuggester",
              "kind": "field",
              "doc": "MergeSuggester generates the agent's suggested resolution and reason for each conflicted scene item; when nil, DefaultMergeSuggestion is used."
            },
            {
              "name": "MergeCheckRunner",
              "anchor": "Editor.MergeCheckRunner",
              "kind": "field",
              "doc": "MergeCheckRunner overrides `game check` during FinishMerge; when nil, runProjectCheck runs over the project directory."
            },
            {
              "name": "MergePlaytestRunner",
              "anchor": "Editor.MergePlaytestRunner",
              "kind": "field",
              "doc": "MergePlaytestRunner overrides the short playtest run during FinishMerge; when nil, a deterministic 10 s headless Build/Update/Physics step runs."
            },
            {
              "name": "WriteClipboard",
              "anchor": "Editor.WriteClipboard",
              "kind": "field",
              "doc": "WriteClipboard, when set, overrides writing text to the system clipboard (used by Copy and Cut); when nil and a UI scope is attached, core.Scope.SetClipboard is used."
            },
            {
              "name": "ReadClipboard",
              "anchor": "Editor.ReadClipboard",
              "kind": "field",
              "doc": "ReadClipboard, when set, overrides reading text from the system clipboard (used by Paste); when nil and a UI scope is attached, core.Scope.ReadClipboard is used."
            },
            {
              "name": "ReadClipboardImage",
              "anchor": "Editor.ReadClipboardImage",
              "kind": "field",
              "doc": "ReadClipboardImage, when set, overrides reading an image from the system clipboard (used by PasteAgentReferenceImage); when nil and a UI scope is attached, core.Scope.ReadClipboardImage is used."
            },
            {
              "name": "ReadClipboardFiles",
              "anchor": "Editor.ReadClipboardFiles",
              "kind": "field",
              "doc": "ReadClipboardFiles, when set, overrides reading copied file URLs from the system clipboard (used by PasteAgentReferenceImage); when nil and a UI scope is attached, core.Scope.ReadClipboardFiles is used."
            },
            {
              "name": "PickAgentReferenceFiles",
              "anchor": "Editor.PickAgentReferenceFiles",
              "kind": "field",
              "doc": "PickAgentReferenceFiles, when set, overrides the native file picker opened by the Agent composer's Attach an image button."
            },
            {
              "name": "DiskWatchInterval",
              "anchor": "Editor.DiskWatchInterval",
              "kind": "field",
              "doc": "DiskWatchInterval controls how often the editor polls watched open files (scene, clip, game.yaml) and the project tree for external changes while a UI scope is attached (defaults to 250ms when <= 0)."
            },
            {
              "name": "OnPlaytestPrompt",
              "anchor": "Editor.OnPlaytestPrompt",
              "kind": "field",
              "doc": "OnPlaytestPrompt, when set, is called when the author presses \"Ask the agent to tune it\" or clicks an actionable suggestion in the Playtest Report screen."
            },
            {
              "name": "OnOpenPlaytestConfig",
              "anchor": "Editor.OnOpenPlaytestConfig",
              "kind": "field",
              "doc": "OnOpenPlaytestConfig, when set, overrides the BOT PROFILE card's \"Open\" action for playtest.yaml; when nil, the editor opens an inline playtest.yaml preview drawer."
            },
            {
              "name": "OnPlayReplayStep",
              "anchor": "Editor.OnPlayReplayStep",
              "kind": "field",
              "doc": "OnPlayReplayStep runs on every fixed simulation step during Play mode when watching a saved replay recording (after player.Step() and before OnPlayUpdate)."
            },
            {
              "name": "OnAssetImport",
              "anchor": "Editor.OnAssetImport",
              "kind": "field",
              "doc": "OnAssetImport, when set, handles the Asset Drawer's Import action for folder instead of opening the native file picker."
            },
            {
              "name": "OnAssetGenerate",
              "anchor": "Editor.OnAssetGenerate",
              "kind": "field",
              "doc": "OnAssetGenerate, when set, handles the Asset Drawer's Generate action for folder."
            },
            {
              "name": "OnAssetReplaceMissing",
              "anchor": "Editor.OnAssetReplaceMissing",
              "kind": "field",
              "doc": "OnAssetReplaceMissing, when set, handles the selected missing asset's \"Replace with a file\" action."
            },
            {
              "name": "OnAssetAskAgent",
              "anchor": "Editor.OnAssetAskAgent",
              "kind": "field",
              "doc": "OnAssetAskAgent, when set, handles \"Ask the agent\" actions from the Asset Drawer and selected-asset inspector."
            },
            {
              "name": "OnAskAgent3D",
              "anchor": "Editor.OnAskAgent3D",
              "kind": "field",
              "doc": "OnAskAgent3D, when set, handles \"Or ask for one\" (3D MODELS strip) and \"Ask to add a component…\" (3D inspector) prompts."
            },
            {
              "name": "ChangesCheckRunner",
              "anchor": "Editor.ChangesCheckRunner",
              "kind": "field",
              "doc": "ChangesCheckRunner overrides `nsgo check` and `nsgo test` in the Changes panel; when nil, the editor invokes `go tool nsgo check` and `go tool nsgo test`."
            },
            {
              "name": "CodeReviewCheckRunner",
              "anchor": "Editor.CodeReviewCheckRunner",
              "kind": "field",
              "doc": "CodeReviewCheckRunner overrides `nsgo check` and `nsgo test` for pending Go code review (receiving the built Go overlay path and reporting live test progress); when nil, the editor runs `go tool nsgo check` and `go tool nsgo test -json` with GOFLAGS=-overlay=... on desktop."
            },
            {
              "name": "OnAskCodeReviewFix",
              "anchor": "Editor.OnAskCodeReviewFix",
              "kind": "field",
              "doc": "OnAskCodeReviewFix, when set, is called when the author clicks \"Ask the agent to fix\" on a failed test card in Go code review."
            },
            {
              "name": "ExternalEditorName",
              "anchor": "Editor.ExternalEditorName",
              "kind": "field",
              "doc": "ExternalEditorName optionally names the external IDE shown in Go code review (for example \"GoLand\"); when empty, a localized default label is shown."
            },
            {
              "name": "CommitMessageDrafter",
              "anchor": "Editor.CommitMessageDrafter",
              "kind": "field",
              "doc": "CommitMessageDrafter generates the commit summary and description for the Changes panel; when nil, DefaultCommitDraft is used."
            },
            {
              "name": "GHRunner",
              "anchor": "Editor.GHRunner",
              "kind": "field",
              "doc": "GHRunner invokes the GitHub CLI (`gh`) with args in dir for OpenPullRequest; when nil, os/exec runs `gh` when installed on PATH."
            },
            {
              "name": "ChangesClipboard",
              "anchor": "Editor.ChangesClipboard",
              "kind": "field",
              "doc": "ChangesClipboard overrides clipboard writes from CopyPRDescription; when nil, falls back to WriteClipboard or core.Scope.SetClipboard."
            },
            {
              "name": "OnAskAgent",
              "anchor": "Editor.OnAskAgent",
              "kind": "field",
              "doc": "OnAskAgent, when set, is called when the author triggers \"Ask the agent about this\" (AskAgentAboutObject / mod+l) on an object."
            },
            {
              "name": "OnStopAgent",
              "anchor": "Editor.OnStopAgent",
              "kind": "field",
              "doc": "OnStopAgent is invoked by Mod+. (even while a modal dialog is open, per Spec rule 04) to stop an active agent run without disturbing reviewable changes."
            },
            {
              "name": "OnStartAgentRequest",
              "anchor": "Editor.OnStartAgentRequest",
              "kind": "field",
              "doc": "OnStartAgentRequest, when set, is called when the author starts a new agent request via StartAgentRequest."
            },
            {
              "name": "OnAddToAgentRequest",
              "anchor": "Editor.OnAddToAgentRequest",
              "kind": "field",
              "doc": "OnAddToAgentRequest, when set, is called when the author adds follow-up instructions via \"Add to this request\" while an agent request is running."
            },
            {
              "name": "AgentRunner",
              "anchor": "Editor.AgentRunner",
              "kind": "field",
              "doc": "AgentRunner runs a composer request against an external agent (such as Claude Code or Codex) and streams incremental steps; when nil on desktop, CLIAgentRunner is used."
            },
            {
              "name": "AutomationDrafter",
              "anchor": "Editor.AutomationDrafter",
              "kind": "field",
              "doc": "AutomationDrafter optionally turns plain words from \"+ New automation, in words\" into a candidate AutomationRule; when nil, a built-in English/Chinese drafter is used."
            },
            {
              "name": "AgentTools",
              "anchor": "Editor.AgentTools",
              "kind": "field",
              "doc": "AgentTools lists and executes the editor's MCP tools for the built-in agent; editormcp.New wires this automatically."
            },
            {
              "name": "AgentSecretStore",
              "anchor": "Editor.AgentSecretStore",
              "kind": "field",
              "doc": "AgentSecretStore optionally overrides secret storage for the built-in agent's API key; when nil and Keychain is nil, cx.Secrets() is used whenever a core.Scope is attached (backed by the OS keychain in production and nsgotest.Secrets in tests) so keys never touch project files."
            },
            {
              "name": "BuiltInAgentEndpoint",
              "anchor": "Editor.BuiltInAgentEndpoint",
              "kind": "field",
              "doc": "BuiltInAgentEndpoint optionally overrides the HTTP endpoint used by the built-in agent (defaults to DefaultBuiltInAgentEndpoint). Only https:// URLs or loopback http:// URLs are permitted."
            },
            {
              "name": "BuiltInHTTPClient",
              "anchor": "Editor.BuiltInHTTPClient",
              "kind": "field",
              "doc": "BuiltInHTTPClient optionally overrides the *http.Client used by the built-in agent."
            },
            {
              "name": "AgentReconnectProbe",
              "anchor": "Editor.AgentReconnectProbe",
              "kind": "field",
              "doc": "AgentReconnectProbe checks whether an MCP agent session is reachable during a reconnect attempt; wired automatically by editormcp.Server and replaceable in tests."
            },
            {
              "name": "AgentScheduleAfter",
              "anchor": "Editor.AgentScheduleAfter",
              "kind": "field",
              "doc": "AgentScheduleAfter schedules fn to run after d and returns a cancel function; when nil, time.AfterFunc posting onto the editor's UI scope is used. Tests replace this to verify the 1, 2, 4, 8, 16 s reconnect backoff without real sleeps."
            },
            {
              "name": "OnFocusAgentRequest",
              "anchor": "Editor.OnFocusAgentRequest",
              "kind": "field",
              "doc": "OnFocusAgentRequest, when set, is called when the user clicks the \"Waiting for you\" status chip to focus the open request."
            },
            {
              "name": "OnAgentTurn",
              "anchor": "Editor.OnAgentTurn",
              "kind": "field",
              "doc": "OnAgentTurn, when set, is called whenever the author sends a request from the ⌘L in-place composer or Agent panel."
            },
            {
              "name": "OnSendAgentRequest",
              "anchor": "Editor.OnSendAgentRequest",
              "kind": "field",
              "doc": "OnSendAgentRequest, when set, is called after SendAgentRequest / SendAgentRequestWith appends and persists a request on the active agent thread."
            },
            {
              "name": "OnOpenHistoryStep",
              "anchor": "Editor.OnOpenHistoryStep",
              "kind": "field",
              "doc": "OnOpenHistoryStep, when set, is called when the author clicks \"Open this step in History\" on a folded request or step."
            },
            {
              "name": "OnAgentPointPicked",
              "anchor": "Editor.OnAgentPointPicked",
              "kind": "field",
              "doc": "OnAgentPointPicked, when set, is called when the user clicks a world coordinate in the viewport during Partial \"Let me point\"."
            },
            {
              "name": "OnOpenAgentReview",
              "anchor": "Editor.OnOpenAgentReview",
              "kind": "field",
              "doc": "OnOpenAgentReview, when set, is called when the user opens a turn's Review from Partial, Lost, Stopped, or Mismatch cards."
            },
            {
              "name": "OnSendAgentComposerRequest",
              "anchor": "Editor.OnSendAgentComposerRequest",
              "kind": "field",
              "doc": "OnSendAgentComposerRequest, when set, receives each request assembled from the agent composer's active chips (and nothing else) and returns the agent's reply and optional reported token usage."
            },
            {
              "name": "OnCompactAgentThread",
              "anchor": "Editor.OnCompactAgentThread",
              "kind": "field",
              "doc": "OnCompactAgentThread, when set, overrides how CompactAgentThread summarizes earlier turns and updates token usage."
            },
            {
              "name": "OnStartFreshAgentThread",
              "anchor": "Editor.OnStartFreshAgentThread",
              "kind": "field",
              "doc": "OnStartFreshAgentThread, when set, is called when StartFreshAgentThread starts a new thread seeded with summary."
            },
            {
              "name": "OnPlanDecision",
              "anchor": "Editor.OnPlanDecision",
              "kind": "field",
              "doc": "OnPlanDecision, when set, is called whenever the author approves, chooses Just do it on, or stops an agent-proposed plan."
            },
            {
              "name": "ProblemCheckDebounce",
              "anchor": "Editor.ProblemCheckDebounce",
              "kind": "field",
              "doc": "ProblemCheckDebounce controls the debounce delay before live problem checks run after edits (defaults to 80ms when <= 0)."
            },
            {
              "name": "OnAskAboutProblem",
              "anchor": "Editor.OnAskAboutProblem",
              "kind": "field",
              "doc": "OnAskAboutProblem, when set, is called when the author submits a question from \"Ask about this problem…\" with the problem attached."
            },
            {
              "name": "AutoSaveDelay",
              "anchor": "Editor.AutoSaveDelay",
              "kind": "field",
              "doc": "AutoSaveDelay configures the debounce delay after kept edits before automatic saving runs (defaults to DefaultAutoSaveDelay = 2s when <= 0)."
            },
            {
              "name": "SavingIndicatorDelay",
              "anchor": "Editor.SavingIndicatorDelay",
              "kind": "field",
              "doc": "SavingIndicatorDelay configures how long an automatic save must stay in flight before the status bar shows \"Saving…\" (defaults to DefaultSavingIndicatorDelay = 300ms when <= 0)."
            },
            {
              "name": "SaveFileWriter",
              "anchor": "Editor.SaveFileWriter",
              "kind": "field",
              "doc": "SaveFileWriter optionally overrides the atomic file writer used when saving scenes and project files (defaults to writeFileAtomic when nil), allowing deterministic slow-write or error tests."
            },
            {
              "name": "FreeSpaceBytes",
              "anchor": "Editor.FreeSpaceBytes",
              "kind": "field",
              "doc": "FreeSpaceBytes optionally overrides available-disk-space lookup for path when formatting disk-full save errors (for example \"Couldn't save: disk is full · 12 MB free\"). When nil, the OS filesystem free space is queried."
            },
            {
              "name": "AgentTaskRunner",
              "anchor": "Editor.AgentTaskRunner",
              "kind": "field",
              "doc": "AgentTaskRunner, when set, executes each background agent task started by SubmitTask or the queue scheduler in its own goroutine."
            },
            {
              "name": "OnTaskPermissionDecision",
              "anchor": "Editor.OnTaskPermissionDecision",
              "kind": "field",
              "doc": "OnTaskPermissionDecision, when set, is called when the user clicks Allow once or Deny on a TaskNeedsYou task."
            },
            {
              "name": "ThreadsDir",
              "anchor": "Editor.ThreadsDir",
              "kind": "field",
              "doc": "ThreadsDir optionally overrides where *.thread.yaml background task files are persisted; when empty, <projectDir>/.nsgo/threads is used while a project is open."
            },
            {
              "name": "OnSettingsAgentRequest",
              "anchor": "Editor.OnSettingsAgentRequest",
              "kind": "field",
              "doc": "OnSettingsAgentRequest, when set, is called when the author clicks a suggested ask or submits an agent prompt on a Settings page or in the Settings search bar."
            },
            {
              "name": "OnSaveBrief",
              "anchor": "Editor.OnSaveBrief",
              "kind": "field",
              "doc": "OnSaveBrief, when set, overrides writing brief.yaml on disk when the game brief is edited or saved."
            },
            {
              "name": "OnSaveProjectRules",
              "anchor": "Editor.OnSaveProjectRules",
              "kind": "field",
              "doc": "OnSaveProjectRules, when set, overrides writing AGENTS.md on disk when project rules are edited or saved."
            },
            {
              "name": "FirstRunDetectAgents",
              "anchor": "Editor.FirstRunDetectAgents",
              "kind": "field",
              "doc": "FirstRunDetectAgents overrides local agent discovery (claude, codex, API key) for the Start with AI Connect step."
            },
            {
              "name": "FirstRunConnectAgent",
              "anchor": "Editor.FirstRunConnectAgent",
              "kind": "field",
              "doc": "FirstRunConnectAgent overrides the agent handshake during Start with AI Connect (returning connected tool count or an error/timeout)."
            },
            {
              "name": "FirstRunValidateAPIKey",
              "anchor": "Editor.FirstRunValidateAPIKey",
              "kind": "field",
              "doc": "FirstRunValidateAPIKey overrides immediate validation of a pasted API key in Start with AI Connect."
            },
            {
              "name": "FirstRunPlanner",
              "anchor": "Editor.FirstRunPlanner",
              "kind": "field",
              "doc": "FirstRunPlanner overrides generating the first plan from the author's idea and selected project name."
            },
            {
              "name": "FirstRunBuilder",
              "anchor": "Editor.FirstRunBuilder",
              "kind": "field",
              "doc": "FirstRunBuilder overrides executing the approved first-run plan after the project folder is created."
            },
            {
              "name": "FirstRunConnectTimeout",
              "anchor": "Editor.FirstRunConnectTimeout",
              "kind": "field",
              "doc": "FirstRunConnectTimeout bounds the Start with AI agent handshake before showing the no-answer checklist (defaults to 30s when <= 0)."
            },
            {
              "name": "OnFocusWindow",
              "anchor": "Editor.OnFocusWindow",
              "kind": "field",
              "doc": "OnFocusWindow, when set, is called when clicking a system notification brings the editor window to the front."
            },
            {
              "name": "OnOpenAgentTask",
              "anchor": "Editor.OnOpenAgentTask",
              "kind": "field",
              "doc": "OnOpenAgentTask, when set, is called after OpenAgentTask opens a task's scene and switches to the Tasks or Agent panel."
            },
            {
              "name": "OnSendSketch",
              "anchor": "Editor.OnSendSketch",
              "kind": "field",
              "doc": "OnSendSketch, when set, is called when the author sends a viewport sketch to the agent (SendSketch)."
            },
            {
              "name": "OnReplySketchReading",
              "anchor": "Editor.OnReplySketchReading",
              "kind": "field",
              "doc": "OnReplySketchReading, when set, is called when the author answers an agent sketch reading card (Go ahead, Correct a mark, or a text reply)."
            },
            {
              "name": "CheckpointMaxBytes",
              "anchor": "Editor.CheckpointMaxBytes",
              "kind": "field",
              "doc": "CheckpointMaxBytes caps the total disk size under .nsgo/checkpoints/ before the oldest checkpoints are pruned (defaults to DefaultCheckpointMaxBytes when <= 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(doc *sceneformat.SceneDoc, resolver sceneformat.AssetResolver) (*Editor, error)",
              "doc": "New constructs an Editor over doc and resolver. If doc is nil, DefaultSceneDoc() is used.\n",
              "file": "pkg/editor/state.go",
              "line": 1074
            },
            {
              "name": "NewDemo",
              "anchor": "NewDemo",
              "decl": "func NewDemo() (*Editor, error)",
              "doc": "NewDemo constructs an Editor preloaded with the built-in Demo Room scene, atlases, component registry, and play update callback.\n",
              "file": "pkg/editor/demo.go",
              "line": 107
            }
          ],
          "methods": [
            {
              "name": "AbortCheckpointTurn",
              "anchor": "Editor.AbortCheckpointTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) AbortCheckpointTurn()",
              "doc": "AbortCheckpointTurn cancels the currently active checkpoint turn and removes its incomplete checkpoint directory.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 677
            },
            {
              "name": "AbortMerge",
              "anchor": "Editor.AbortMerge",
              "recv": "*Editor",
              "decl": "func (e *Editor) AbortMerge() error",
              "doc": "AbortMerge aborts the active Git merge (restoring the branch and working tree as they were)\nand closes the Scene Merge Conflict screen.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 867
            },
            {
              "name": "AcceptActiveMention",
              "anchor": "Editor.AcceptActiveMention",
              "recv": "*Editor",
              "decl": "func (e *Editor) AcceptActiveMention() (AgentContextChip, bool)",
              "doc": "AcceptActiveMention adds the currently highlighted picker item as a context chip, removes the\ntrailing \"@<query>\" trigger from the composer draft, and closes the picker.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 637
            },
            {
              "name": "AcceptMentionItem",
              "anchor": "Editor.AcceptMentionItem",
              "recv": "*Editor",
              "decl": "func (e *Editor) AcceptMentionItem(id string) (AgentContextChip, bool)",
              "doc": "AcceptMentionItem adds the picker item with id as an attached chip, strips any active \"@<query>\"\ntrigger from the draft, and closes the picker.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 655
            },
            {
              "name": "AcceptSuggestedChip",
              "anchor": "Editor.AcceptSuggestedChip",
              "recv": "*Editor",
              "decl": "func (e *Editor) AcceptSuggestedChip() (AgentContextChip, bool)",
              "doc": "AcceptSuggestedChip promotes the currently suggested selection chip into an attached chip.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1491
            },
            {
              "name": "ActiveAgentReview",
              "anchor": "Editor.ActiveAgentReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveAgentReview() *AgentTurnReview",
              "doc": "ActiveAgentReview returns a copy of the currently open agent turn review, or nil.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1878
            },
            {
              "name": "ActiveAgentThread",
              "anchor": "Editor.ActiveAgentThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveAgentThread() *AgentThread",
              "doc": "ActiveAgentThread returns a deep copy of the currently active thread (creating an empty draft\nfor the open scene on demand when none exists yet).\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 910
            },
            {
              "name": "ActiveComponentGizmo3D",
              "anchor": "Editor.ActiveComponentGizmo3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveComponentGizmo3D() (PickedComponentGizmo3D, bool)",
              "doc": "ActiveComponentGizmo3D returns the currently dragged 3D component gizmo handle, or false when idle.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 952
            },
            {
              "name": "ActiveFrozenFrameContext",
              "anchor": "Editor.ActiveFrozenFrameContext",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveFrozenFrameContext() *AskFrozenFrameRequest",
              "doc": "ActiveFrozenFrameContext returns a snapshot of the active frozen-frame Ask request (or the current live Play frame context when no Ask dialog has been submitted yet).\n",
              "file": "pkg/editor/play_marks.go",
              "line": 998
            },
            {
              "name": "ActiveGizmoAxis3D",
              "anchor": "Editor.ActiveGizmoAxis3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveGizmoAxis3D() GizmoAxis3D",
              "doc": "ActiveGizmoAxis3D returns the currently dragged 3D gizmo axis, or Axis3DNone.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 1131
            },
            {
              "name": "ActiveGridMapTile",
              "anchor": "Editor.ActiveGridMapTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveGridMapTile() uint16",
              "doc": "ActiveGridMapTile returns the currently selected MeshLibrary tile ID for GridMap painting, or 0 when none is selected.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 159
            },
            {
              "name": "ActiveHandle3D",
              "anchor": "Editor.ActiveHandle3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveHandle3D() Handle3DKind",
              "doc": "ActiveHandle3D returns the currently dragged light/camera handle kind, or Handle3DNone.\n",
              "file": "pkg/editor/handles3d.go",
              "line": 465
            },
            {
              "name": "ActiveInspectorScrub",
              "anchor": "Editor.ActiveInspectorScrub",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveInspectorScrub() (InspectorScrubField, bool)",
              "doc": "ActiveInspectorScrub returns the currently scrubbing field spec and whether a scrub is active.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 734
            },
            {
              "name": "ActiveLayerTilesetPath",
              "anchor": "Editor.ActiveLayerTilesetPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveLayerTilesetPath() string",
              "doc": "ActiveLayerTilesetPath returns the active layer's YAML tileset path (TilesetFile), or \"\" when the active layer does not use a YAML tileset file.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1583
            },
            {
              "name": "ActiveOverlayLegendKinds",
              "anchor": "Editor.ActiveOverlayLegendKinds",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveOverlayLegendKinds() []OverlayKind",
              "doc": "ActiveOverlayLegendKinds returns the enabled legend kinds in Spec display order.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 923
            },
            {
              "name": "ActivePlan",
              "anchor": "Editor.ActivePlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActivePlan() *AgentPlan",
              "doc": "ActivePlan returns a deep copy of the currently active agent plan, or nil when none is active.\n",
              "file": "pkg/editor/plan.go",
              "line": 535
            },
            {
              "name": "ActivePlaytestReport",
              "anchor": "Editor.ActivePlaytestReport",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActivePlaytestReport() *playtest.Report",
              "doc": "ActivePlaytestReport returns the currently active playtest.Report, or nil when none is loaded.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 305
            },
            {
              "name": "ActivePlugins",
              "anchor": "Editor.ActivePlugins",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActivePlugins() []string",
              "doc": "ActivePlugins returns the names of the plugins that are on: those the open project names under editor.plugins that are registered, in the project's order. Without a project, no plugin is on.\n",
              "file": "pkg/editor/plugin.go",
              "line": 405
            },
            {
              "name": "ActiveProblem",
              "anchor": "Editor.ActiveProblem",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveProblem() (assetcheck.Problem, bool)",
              "doc": "ActiveProblem returns the problem currently focused in the Agent problem panel.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 180
            },
            {
              "name": "ActiveProposedFix",
              "anchor": "Editor.ActiveProposedFix",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveProposedFix() (ProposedProblemFix, bool)",
              "doc": "ActiveProposedFix returns the pending proposed fix for the currently active\nproblem, or the first pending proposed fix if any.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 255
            },
            {
              "name": "ActiveRegion",
              "anchor": "Editor.ActiveRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveRegion() EditorRegion",
              "doc": "ActiveRegion returns the keyboard region that currently holds focus, or RegionNone.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 688
            },
            {
              "name": "ActiveRegionRing",
              "anchor": "Editor.ActiveRegionRing",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveRegionRing() EditorRegion",
              "doc": "ActiveRegionRing returns the keyboard region currently displaying its F6 inset ring,\nor RegionNone when no F6 region ring is shown.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 697
            },
            {
              "name": "ActiveScene",
              "anchor": "Editor.ActiveScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveScene() *sceneformat.BuiltScene",
              "doc": "ActiveScene returns the live play scene when playing, the read-only history preview scene when previewing a timeline step, the scene posed by the open state machine or animation clip when previewing, or the edit BuiltScene otherwise.\n",
              "file": "pkg/editor/state.go",
              "line": 1330
            },
            {
              "name": "ActiveSceneCamera3D",
              "anchor": "Editor.ActiveSceneCamera3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveSceneCamera3D(w, h float32) (*scene3d.Camera, string, bool)",
              "doc": "ActiveSceneCamera3D returns the scene's active 3D camera (the visible camera with Current true,\nor the first visible 3D camera) as a scene3d.Camera for a viewport of size w by h, together with\nits object ID.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 439
            },
            {
              "name": "ActiveShapeHandle2D",
              "anchor": "Editor.ActiveShapeHandle2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveShapeHandle2D() (ShapeHandle2D, bool)",
              "doc": "ActiveShapeHandle2D returns the handle currently being dragged, or false if no shape drag is active.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 501
            },
            {
              "name": "ActiveTab",
              "anchor": "Editor.ActiveTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveTab() int",
              "doc": "ActiveTab returns the 0-based index of the active scene tab.\n",
              "file": "pkg/editor/tabs.go",
              "line": 457
            },
            {
              "name": "ActiveTileLayerCaption",
              "anchor": "Editor.ActiveTileLayerCaption",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveTileLayerCaption() (layerName, dims string, ok bool)",
              "doc": "ActiveTileLayerCaption returns the active layer's display name and tile grid dimensions\n(for example \"World\", \"24 × 20 cells · 16 px\") when the active layer has an inline tilemap.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 390
            },
            {
              "name": "ActiveToast",
              "anchor": "Editor.ActiveToast",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveToast() (Toast, bool)",
              "doc": "ActiveToast returns the currently visible toast at the head of the queue, if any.\n",
              "file": "pkg/editor/toasts.go",
              "line": 819
            },
            {
              "name": "ActiveTurnFileCount",
              "anchor": "Editor.ActiveTurnFileCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveTurnFileCount() int",
              "doc": "ActiveTurnFileCount reports how many files have been recorded into the currently active checkpoint turn.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 571
            },
            {
              "name": "ActiveTurnID",
              "anchor": "Editor.ActiveTurnID",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveTurnID() string",
              "doc": "ActiveTurnID returns the checkpoint ID of the currently active agent turn, or \"\" when no turn is active.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 563
            },
            {
              "name": "ActiveViewportOverlayCount",
              "anchor": "Editor.ActiveViewportOverlayCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveViewportOverlayCount() int",
              "doc": "ActiveViewportOverlayCount returns how many available viewport overlays are currently turned on.\n",
              "file": "pkg/editor/overlays.go",
              "line": 398
            },
            {
              "name": "ActiveViewportOverlays",
              "anchor": "Editor.ActiveViewportOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) ActiveViewportOverlays() []string",
              "doc": "ActiveViewportOverlays returns the sorted IDs of all available viewport overlays currently enabled.\n",
              "file": "pkg/editor/overlays.go",
              "line": 383
            },
            {
              "name": "AddAgentMCPServer",
              "anchor": "Editor.AddAgentMCPServer",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddAgentMCPServer(srv AgentMCPServer) error",
              "doc": "AddAgentMCPServer adds or updates an external MCP server, persists editor.yaml,\nand updates the open project's agent MCP configuration (.mcp.json and .codex/config.toml).\nRefused when invoked by an agent.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1068
            },
            {
              "name": "AddAgentThreadTurn",
              "anchor": "Editor.AddAgentThreadTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddAgentThreadTurn(turn AgentThreadTurn)",
              "doc": "AddAgentThreadTurn appends a turn to the active thread (useful for hydrating thread state or tests).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2487
            },
            {
              "name": "AddAudioBus",
              "anchor": "Editor.AddAudioBus",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddAudioBus(name string) error",
              "doc": "AddAudioBus appends a new audio bus to game.yaml's audio.buses through EditProject and selects it.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 395
            },
            {
              "name": "AddAudioBusEffect",
              "anchor": "Editor.AddAudioBusEffect",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddAudioBusEffect(bus string, fx project.Effect) (int, error)",
              "doc": "AddAudioBusEffect appends fx to the named bus's DSP effect chain through EditProject and returns the new effect index.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 507
            },
            {
              "name": "AddAudioBusEffectKind",
              "anchor": "Editor.AddAudioBusEffectKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddAudioBusEffectKind(bus string, kind AudioEffectKind) (int, error)",
              "doc": "AddAudioBusEffectKind appends a default effect of kind to the named bus's effect chain through EditProject.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 529
            },
            {
              "name": "AddAutomationRule",
              "anchor": "Editor.AddAutomationRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddAutomationRule(rule AutomationRule) error",
              "doc": "AddAutomationRule validates and appends rule to automations.yaml.\nRefuses agent actors (ErrAutomationYouOnly); agents must draft entries via DraftAutomationFromWords for the author to keep.\n",
              "file": "pkg/editor/automations.go",
              "line": 392
            },
            {
              "name": "AddBriefGenre",
              "anchor": "Editor.AddBriefGenre",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddBriefGenre(label string) error",
              "doc": "AddBriefGenre appends a genre label to brief.yaml as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 537
            },
            {
              "name": "AddBriefPlatform",
              "anchor": "Editor.AddBriefPlatform",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddBriefPlatform(platform string) error",
              "doc": "AddBriefPlatform appends a platform to brief.yaml as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 574
            },
            {
              "name": "AddBriefPlaytestTarget",
              "anchor": "Editor.AddBriefPlaytestTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddBriefPlaytestTarget(target project.BriefPlaytestTarget) error",
              "doc": "AddBriefPlaytestTarget adds a playtest target to brief.yaml's feel.targets as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 631
            },
            {
              "name": "AddCamera3D",
              "anchor": "Editor.AddCamera3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddCamera3D(proj sceneformat.ProjectionKind) (string, error)",
              "doc": "AddCamera3D places a new 3D camera object of projection kind (perspective or orthographic) on\nthe active world layer as an undoable command, selects it, and returns its ID. When the scene\nhas no 3D camera yet, the new camera is marked current.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 374
            },
            {
              "name": "AddClipEvent",
              "anchor": "Editor.AddClipEvent",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddClipEvent(at time.Duration, name string) error",
              "doc": "AddClipEvent adds an event named name at time at to the open clip, after any events already at that time, as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 748
            },
            {
              "name": "AddComponent",
              "anchor": "Editor.AddComponent",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddComponent(objectID, component string) error",
              "doc": "AddComponent adds the component named component to objectID through History. With a component registry set (SetComponentRegistry), component must be a registered type and is added holding every registered field at its default, so the scene file shows what the component does; it is refused when the added component would declare an event or handler that one of the scene's connections names bare and another of the object's components declares too, since the connection would no longer say which one it means. Without a registry the component is added with no fields. It is refused for an empty name, one with leading or trailing whitespace or a '.', which connections use to qualify an event or handler with its component, and for a component the object already has.\n",
              "file": "pkg/editor/objectedit.go",
              "line": 14
            },
            {
              "name": "AddComposerPlaytestRun",
              "anchor": "Editor.AddComposerPlaytestRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddComposerPlaytestRun(run ComposerPlaytestRun)",
              "doc": "AddComposerPlaytestRun registers a playtest run summary in the composer's @-mention Playtest runs group.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1295
            },
            {
              "name": "AddConnection",
              "anchor": "Editor.AddConnection",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddConnection(conn sceneformat.ConnectionDoc) (int, error)",
              "doc": "AddConnection appends conn to Doc.Connections as an undoable command after validating the resulting scene with sceneformat.Validate and, when a component registry is set, sceneformat.ValidateConnections. Invalid connections are refused before reaching History, with the reason reported in Status.\n",
              "file": "pkg/editor/connections.go",
              "line": 142
            },
            {
              "name": "AddDataTableRow",
              "anchor": "Editor.AddDataTableRow",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddDataTableRow(cells ...datatable.Cell) (int, error)",
              "doc": "AddDataTableRow appends a new row to the open data table as an undoable command and\nreturns its 0-based index. When cells is empty, it fills each column with the deterministic\nzero value of its registered or inferred kind.\n",
              "file": "pkg/editor/datatable.go",
              "line": 464
            },
            {
              "name": "AddExportPreset",
              "anchor": "Editor.AddExportPreset",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddExportPreset(platform string, targets ...string) error",
              "doc": "AddExportPreset appends a new export preset for platform (with optional targets chosen from project.TargetsOf(platform)) through EditProject as one undoable step.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 379
            },
            {
              "name": "AddInputAction",
              "anchor": "Editor.AddInputAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddInputAction(name string) error",
              "doc": "AddInputAction appends a new named action to game.yaml's input.actions through EditProject and selects it.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 260
            },
            {
              "name": "AddInputAxis",
              "anchor": "Editor.AddInputAxis",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddInputAxis(ax project.Axis) error",
              "doc": "AddInputAxis appends an action axis to game.yaml's input.axes through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 595
            },
            {
              "name": "AddInputBinding",
              "anchor": "Editor.AddInputBinding",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddInputBinding(action string, b project.Binding) (int, error)",
              "doc": "AddInputBinding appends binding b to action through EditProject and returns its index.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 374
            },
            {
              "name": "AddInputGamepadAxis",
              "anchor": "Editor.AddInputGamepadAxis",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddInputGamepadAxis(g project.GamepadAxis) error",
              "doc": "AddInputGamepadAxis appends a gamepad stick axis to game.yaml's input.gamepadAxes through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 695
            },
            {
              "name": "AddInputMotionAxis",
              "anchor": "Editor.AddInputMotionAxis",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddInputMotionAxis(m project.MotionAxis) error",
              "doc": "AddInputMotionAxis appends a motion axis to game.yaml's input.motionAxes through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 645
            },
            {
              "name": "AddLayer",
              "anchor": "Editor.AddLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddLayer(name string, space sceneformat.Space) error",
              "doc": "AddLayer adds a layer named name in space (SpaceWorld or SpaceScreen; empty leaves the field unset, which is world) to the open scene as an undoable command. The new layer comes last in the file and draws over every other layer: its order is the highest order of the layers the scene draws, those of the scene it inherits included, which is left unset when that is 0. It refuses an empty name, a name another layer of the scene has, and a name of a layer of the scene the open scene inherits, which a layer of that name would extend rather than add. It does not change ActiveLayer.\n",
              "file": "pkg/editor/layers.go",
              "line": 210
            },
            {
              "name": "AddLayerTilemap",
              "anchor": "Editor.AddLayerTilemap",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddLayerTilemap(layerName, tileset string, tileWidth, tileHeight, width, height int) error",
              "doc": "AddLayerTilemap attaches a new empty inline single-grid tilemap to layerName (or ActiveLayer when empty) with tileset, tile size (tileWidth x tileHeight), and grid size (width x height) as an undoable command. It refuses a layer that already has a tilemap, an inherited base-owned layer, non-positive or overflowing sizes, an empty tileset name, or a tileset that the Resolver cannot resolve. When the added tilemap is on ActiveLayer, ActiveTileID is kept in the new tileset's palette.\n",
              "file": "pkg/editor/tilemap_setup.go",
              "line": 170
            },
            {
              "name": "AddLight3D",
              "anchor": "Editor.AddLight3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddLight3D(kind sceneformat.LightKind) (string, error)",
              "doc": "AddLight3D places a new 3D light object of kind (directional, point, or spot) with sensible\ndefaults on the active world layer as an undoable command, selects it, and returns its ID.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 317
            },
            {
              "name": "AddLightProbeGrid3D",
              "anchor": "Editor.AddLightProbeGrid3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddLightProbeGrid3D() (string, error)",
              "doc": "AddLightProbeGrid3D places a new 3D light probe grid object with sensible defaults on the\nactive world layer as an undoable command, selects it, and returns its ID.\n",
              "file": "pkg/editor/probes3d.go",
              "line": 205
            },
            {
              "name": "AddLocalizationKey",
              "anchor": "Editor.AddLocalizationKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddLocalizationKey(key string, plural bool) error",
              "doc": "AddLocalizationKey adds a message key row to the Localization panel (plain string when plural is false, CLDR plural forms when true) as an undoable command.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 461
            },
            {
              "name": "AddLocalizationLocale",
              "anchor": "Editor.AddLocalizationLocale",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddLocalizationLocale(locale string) error",
              "doc": "AddLocalizationLocale adds a normalized BCP-47 locale column to the Localization panel as an undoable command.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 416
            },
            {
              "name": "AddParticleBurst",
              "anchor": "Editor.AddParticleBurst",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddParticleBurst(b particles.Burst) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 903
            },
            {
              "name": "AddParticleColorStop",
              "anchor": "Editor.AddParticleColorStop",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddParticleColorStop(kind ParticleCurveKind, t float32, col core.Color) (int, error)",
              "doc": "AddParticleColorStop inserts a color stop (t, col) into the named color curve in T order and returns its index.\n",
              "file": "pkg/editor/particles.go",
              "line": 1352
            },
            {
              "name": "AddParticleFloatStop",
              "anchor": "Editor.AddParticleFloatStop",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddParticleFloatStop(kind ParticleCurveKind, t, val float32) (int, error)",
              "doc": "AddParticleFloatStop inserts a control point (t, val) into the named float curve in T order and returns its index.\n",
              "file": "pkg/editor/particles.go",
              "line": 1257
            },
            {
              "name": "AddParticleSubEmitter",
              "anchor": "Editor.AddParticleSubEmitter",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddParticleSubEmitter(rule particles.SubEmitterRule) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1085
            },
            {
              "name": "AddPermissionRule",
              "anchor": "Editor.AddPermissionRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddPermissionRule(rule PermissionRule) error",
              "doc": "AddPermissionRule appends rule to the table, focuses the new row, and persists permissions.yaml.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1413
            },
            {
              "name": "AddPlayMark",
              "anchor": "Editor.AddPlayMark",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddPlayMark() (PlayMark, error)",
              "doc": "AddPlayMark adds a mark at the current Play frame without stopping or pausing Play,\nsaving the rolling input recording under replays/<scene>-<frame>.replay.yaml.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 670
            },
            {
              "name": "AddPlaytestProposal",
              "anchor": "Editor.AddPlaytestProposal",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddPlaytestProposal(p PlaytestProposal) string",
              "doc": "AddPlaytestProposal adds (or updates by ID) a pending metric proposal from playtest_define so it appears as a banner with Review on the Playtest Report screen.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 683
            },
            {
              "name": "AddPolygonVertex",
              "anchor": "Editor.AddPolygonVertex",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddPolygonVertex(objectID, component, field string, afterIndex int, pt sceneformat.Point) error",
              "doc": "AddPolygonVertex inserts pt into the FieldPolygon component field after afterIndex (or appends when afterIndex < 0 or >= len(poly)) as one undoable SetComponentField step.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 785
            },
            {
              "name": "AddProjectAutoloadResource",
              "anchor": "Editor.AddProjectAutoloadResource",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddProjectAutoloadResource(name, relPath string) error",
              "doc": "AddProjectAutoloadResource appends a resource entry to game.yaml's autoload.resources through EditProject.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 434
            },
            {
              "name": "AddProjectAutoloadScene",
              "anchor": "Editor.AddProjectAutoloadScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddProjectAutoloadScene(name, relPath string) error",
              "doc": "AddProjectAutoloadScene appends a scene entry to game.yaml's autoload.scenes through EditProject.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 368
            },
            {
              "name": "AddProjectPhysicsLayer",
              "anchor": "Editor.AddProjectPhysicsLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddProjectPhysicsLayer(name string, bit int) error",
              "doc": "AddProjectPhysicsLayer appends a named collision layer to game.yaml's physics.layers through EditProject.\n",
              "file": "pkg/editor/project_settings_physics.go",
              "line": 79
            },
            {
              "name": "AddProperty",
              "anchor": "Editor.AddProperty",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddProperty(objectID, key string, kind sceneformat.FieldKind) error",
              "doc": "AddProperty adds the custom property key to objectID through History, holding the zero value of kind: false, 0, 0.0 or \"\". It is refused for an empty or blank key, one with leading or trailing whitespace, a key the object already has and an unknown kind.\n",
              "file": "pkg/editor/objectedit.go",
              "line": 225
            },
            {
              "name": "AddReflectionProbe3D",
              "anchor": "Editor.AddReflectionProbe3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddReflectionProbe3D() (string, error)",
              "doc": "AddReflectionProbe3D places a new 3D reflection probe object with sensible defaults on the\nactive world layer as an undoable command, selects it, and returns its ID.\n",
              "file": "pkg/editor/probes3d.go",
              "line": 181
            },
            {
              "name": "AddReleaseKeptReview",
              "anchor": "Editor.AddReleaseKeptReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddReleaseKeptReview(summary string)",
              "doc": "AddReleaseKeptReview appends one kept review summary to the inputs used when drafting release notes.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 426
            },
            {
              "name": "AddReviewChange",
              "anchor": "Editor.AddReviewChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddReviewChange(change AgentReviewChange)",
              "doc": "AddReviewChange appends a non-deletion change to the active agent review (opening it if closed).\n",
              "file": "pkg/editor/agent_review.go",
              "line": 173
            },
            {
              "name": "AddRigAnimation",
              "anchor": "Editor.AddRigAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddRigAnimation(name string, duration time.Duration, loop bool) error",
              "doc": "AddRigAnimation adds a new animation named name to the open rig and selects it as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1334
            },
            {
              "name": "AddRigBone",
              "anchor": "Editor.AddRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddRigBone(name, parent string, x, y, rotation, length float32) error",
              "doc": "AddRigBone adds a new bone with unit scale (1, 1) to the open rig as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 761
            },
            {
              "name": "AddRigSkin",
              "anchor": "Editor.AddRigSkin",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddRigSkin(name string) error",
              "doc": "AddRigSkin adds a new skin named name to the open rig and selects it as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1114
            },
            {
              "name": "AddRigSlot",
              "anchor": "Editor.AddRigSlot",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddRigSlot(name, bone, defaultAttachment string, alpha float32) error",
              "doc": "AddRigSlot adds a draw slot bound to bone as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1011
            },
            {
              "name": "AddRoom",
              "anchor": "Editor.AddRoom",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddRoom(r rooms.Room) (string, error)",
              "doc": "AddRoom appends r to the open room map as an undoable command, generating a unique ID\nwhen r.ID is empty, validating the map with rooms.Validate, and selecting the new room.\n",
              "file": "pkg/editor/rooms.go",
              "line": 601
            },
            {
              "name": "AddRoomAtViewCenter",
              "anchor": "Editor.AddRoomAtViewCenter",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddRoomAtViewCenter() (string, error)",
              "doc": "AddRoomAtViewCenter adds a new room centered on the current 2D viewport view, sized to\nthe scene's virtual viewport (or snapped to the tile grid), as an undoable command.\n",
              "file": "pkg/editor/rooms.go",
              "line": 644
            },
            {
              "name": "AddSceneOverlay",
              "anchor": "Editor.AddSceneOverlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddSceneOverlay(entry SceneOverlayEntry)",
              "doc": "AddSceneOverlay appends (or replaces by matching non-empty ID) one live scene overlay entry.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 769
            },
            {
              "name": "AddSceneRailLayer",
              "anchor": "Editor.AddSceneRailLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddSceneRailLayer() (string, error)",
              "doc": "AddSceneRailLayer creates a uniquely named world-space layer through History and makes it active.\n",
              "file": "pkg/editor/scenetree.go",
              "line": 114
            },
            {
              "name": "AddSceneRailObject",
              "anchor": "Editor.AddSceneRailObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddSceneRailObject(kind string) (string, error)",
              "doc": "AddSceneRailObject creates a new object of kind (\"empty\", \"trigger\", or \"light\") on the active layer\nat the current 2D view center (or world origin in 3D), selects it, and switches the right rail to Inspector.\n",
              "file": "pkg/editor/scenetree.go",
              "line": 59
            },
            {
              "name": "AddSketchArrow",
              "anchor": "Editor.AddSketchArrow",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddSketchArrow(x0, y0, x1, y1 float32, label string) SketchMark",
              "doc": "AddSketchArrow adds a numbered Arrow mark strictly in scene coordinates without mutating SceneDoc or History.\n",
              "file": "pkg/editor/sketch.go",
              "line": 808
            },
            {
              "name": "AddSketchBox",
              "anchor": "Editor.AddSketchBox",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddSketchBox(x, y, width, height float32, label string) SketchMark",
              "doc": "AddSketchBox adds a numbered Box mark strictly in scene coordinates without mutating SceneDoc or History.\n",
              "file": "pkg/editor/sketch.go",
              "line": 781
            },
            {
              "name": "AddSketchMarkAtCursor",
              "anchor": "Editor.AddSketchMarkAtCursor",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddSketchMarkAtCursor(label string) SketchMark",
              "doc": "AddSketchMarkAtCursor places a new mark using the active sketch tool at the current pointer or view center\nin scene coordinates, providing a full keyboard path for creating marks without pointer dragging.\n",
              "file": "pkg/editor/sketch.go",
              "line": 867
            },
            {
              "name": "AddSketchPen",
              "anchor": "Editor.AddSketchPen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddSketchPen(points []SketchPoint, label string) SketchMark",
              "doc": "AddSketchPen adds a numbered Pen polyline mark strictly in scene coordinates without mutating SceneDoc or History.\n",
              "file": "pkg/editor/sketch.go",
              "line": 826
            },
            {
              "name": "AddSketchText",
              "anchor": "Editor.AddSketchText",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddSketchText(x, y float32, label string) SketchMark",
              "doc": "AddSketchText adds a numbered Text mark strictly in scene coordinates without mutating SceneDoc or History.\n",
              "file": "pkg/editor/sketch.go",
              "line": 850
            },
            {
              "name": "AddStatesParam",
              "anchor": "Editor.AddStatesParam",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddStatesParam(p animclip.ParamDoc) error",
              "doc": "AddStatesParam adds a parameter to the open state machine as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 535
            },
            {
              "name": "AddStatesState",
              "anchor": "Editor.AddStatesState",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddStatesState(st animclip.StateDoc) error",
              "doc": "AddStatesState appends a state to the open state machine as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 466
            },
            {
              "name": "AddStatesTransition",
              "anchor": "Editor.AddStatesTransition",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddStatesTransition(tr animclip.TransitionDoc) error",
              "doc": "AddStatesTransition appends a transition to the open state machine as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 516
            },
            {
              "name": "AddTaskStep",
              "anchor": "Editor.AddTaskStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddTaskStep(id string, summary string, done bool) error",
              "doc": "AddTaskStep appends a step entry to task id's detail log (marking previous active steps done when done is false).\n",
              "file": "pkg/editor/tasks.go",
              "line": 1564
            },
            {
              "name": "AddTilesetDraftPolygonPoint",
              "anchor": "Editor.AddTilesetDraftPolygonPoint",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddTilesetDraftPolygonPoint(x, y float32)",
              "doc": "AddTilesetDraftPolygonPoint appends a vertex (x, y) in tile coordinates to the draft polygon being drawn.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1005
            },
            {
              "name": "AddTilesetTerrain",
              "anchor": "Editor.AddTilesetTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddTilesetTerrain(name, mode string) error",
              "doc": "AddTilesetTerrain adds a new terrain set (mode \"cardinal\" for 4-bit or \"blob\" for 8-bit) to the open tileset as an undoable edit and selects it.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 639
            },
            {
              "name": "AddTilesetTileAnimFrame",
              "anchor": "Editor.AddTilesetTileAnimFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddTilesetTileAnimFrame(tileID int, frame tilemap.TileFrameDoc) error",
              "doc": "AddTilesetTileAnimFrame appends an animation frame to tileID as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1288
            },
            {
              "name": "AddTilesetTileShape",
              "anchor": "Editor.AddTilesetTileShape",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddTilesetTileShape(tileID int, shape tilemap.TileShapeDoc) error",
              "doc": "AddTilesetTileShape appends a collision shape (rect, ellipse, polygon, or polyline) to tileID as an undoable edit and selects it.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1221
            },
            {
              "name": "AddToAgentRequest",
              "anchor": "Editor.AddToAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddToAgentRequest(text string) error",
              "doc": "AddToAgentRequest appends additional instructions to the running or waiting request\nand queues them for the MCP client.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 780
            },
            {
              "name": "AddToSelection",
              "anchor": "Editor.AddToSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddToSelection(ids ...string) bool",
              "doc": "AddToSelection adds one or more existing object IDs to the current selection set,\nmaking the last valid ID the primary SelectedID. Returns true if at least one ID\nexisted in the scene.\n",
              "file": "pkg/editor/selection.go",
              "line": 98
            },
            {
              "name": "AddableComponentGroups",
              "anchor": "Editor.AddableComponentGroups",
              "recv": "*Editor",
              "decl": "func (e *Editor) AddableComponentGroups(objectID, query string) []ComponentGroup",
              "doc": "AddableComponentGroups returns the registered component types objectID lacks whose names match\nquery, grouped in fixed order under GAMEPLAY, PHYSICS, and AUDIO AND VISUAL (omitting empty groups).\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 704
            },
            {
              "name": "AdjustCutsceneClipDuration",
              "anchor": "Editor.AdjustCutsceneClipDuration",
              "recv": "*Editor",
              "decl": "func (e *Editor) AdjustCutsceneClipDuration(delta time.Duration) error",
              "doc": "AdjustCutsceneClipDuration nudges the selected clip's Duration by delta (clamped to >= 0.1 s).\n",
              "file": "pkg/editor/cutscene.go",
              "line": 743
            },
            {
              "name": "AdjustCutsceneClipStart",
              "anchor": "Editor.AdjustCutsceneClipStart",
              "recv": "*Editor",
              "decl": "func (e *Editor) AdjustCutsceneClipStart(delta time.Duration) error",
              "doc": "AdjustCutsceneClipStart nudges the selected clip's Start by delta (rounded to 0.1 s increments when delta is ±100ms).\n",
              "file": "pkg/editor/cutscene.go",
              "line": 718
            },
            {
              "name": "AdjustFlySpeed3D",
              "anchor": "Editor.AdjustFlySpeed3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) AdjustFlySpeed3D(deltaY float32)",
              "doc": "AdjustFlySpeed3D changes the fly speed by a wheel's turn while flying: each 200 points of deltaY, down, halves it and, up, doubles it, within 0.1 to 100000 world units a second.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 313
            },
            {
              "name": "AdjustPlanStepField",
              "anchor": "Editor.AdjustPlanStepField",
              "recv": "*Editor",
              "decl": "func (e *Editor) AdjustPlanStepField(stepNumber int, fieldKey string, delta int) error",
              "doc": "AdjustPlanStepField steps fieldKey on stepNumber by delta*Step, clamping to [Min, Max].\n",
              "file": "pkg/editor/plan.go",
              "line": 1300
            },
            {
              "name": "AgentAPIKey",
              "anchor": "Editor.AgentAPIKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentAPIKey(account string) (string, error)",
              "doc": "AgentAPIKey retrieves the built-in model API key from NSGo's core.Secrets / system keychain.\nRefused when invoked by an agent actor so secrets can never leak through MCP tools.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 725
            },
            {
              "name": "AgentActiveConnectionCount",
              "anchor": "Editor.AgentActiveConnectionCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentActiveConnectionCount() int",
              "doc": "AgentActiveConnectionCount returns the number of active agent connections (connected local MCP client + built-in API key in keychain).\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 812
            },
            {
              "name": "AgentActorActive",
              "anchor": "Editor.AgentActorActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentActorActive() bool",
              "doc": "AgentActorActive reports whether the current call is executing on behalf of an agent.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 338
            },
            {
              "name": "AgentAlwaysReadItems",
              "anchor": "Editor.AgentAlwaysReadItems",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentAlwaysReadItems() []AgentContextItem",
              "doc": "AgentAlwaysReadItems returns the context items shown in the empty-thread view and composer\n(\"The agent reads these with every request:\").\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1731
            },
            {
              "name": "AgentAttachError",
              "anchor": "Editor.AgentAttachError",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentAttachError() string",
              "doc": "AgentAttachError returns the latest refusal reason shown in the composer when an unsupported file is dropped or pasted.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 399
            },
            {
              "name": "AgentAttachedImages",
              "anchor": "Editor.AgentAttachedImages",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentAttachedImages() []AgentReferenceImage",
              "doc": "AgentAttachedImages returns a copy of the one-shot reference images currently attached to the composer draft.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 355
            },
            {
              "name": "AgentAutotile",
              "anchor": "Editor.AgentAutotile",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentAutotile(req AgentTileAutotileRequest) (AgentTileEditResult, error)",
              "doc": "AgentAutotile re-edges a region (or places terrain and re-edges) using a terrain set from the layer's YAML tileset.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 920
            },
            {
              "name": "AgentBriefSuggestions",
              "anchor": "Editor.AgentBriefSuggestions",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentBriefSuggestions() []string",
              "doc": "AgentBriefSuggestions returns up to three starter prompts for the empty-thread view,\nextracted from the open project's brief.yaml (refusing symlinks outside the project root)\nor falling back to scene-aware starter suggestions.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1762
            },
            {
              "name": "AgentBuiltInModelForRoute",
              "anchor": "Editor.AgentBuiltInModelForRoute",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentBuiltInModelForRoute(route AgentModelRoute) string",
              "doc": "AgentBuiltInModelForRoute returns the Anthropic model ID for route.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 340
            },
            {
              "name": "AgentClients",
              "anchor": "Editor.AgentClients",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentClients() []AgentClientInfo",
              "doc": "AgentClients returns a copy of currently connected MCP clients.\n",
              "file": "pkg/editor/agent.go",
              "line": 808
            },
            {
              "name": "AgentComposerDragOver",
              "anchor": "Editor.AgentComposerDragOver",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentComposerDragOver() bool",
              "doc": "AgentComposerDragOver reports whether files are currently dragged over the Agent composer drop target.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 367
            },
            {
              "name": "AgentComposerRewound",
              "anchor": "Editor.AgentComposerRewound",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentComposerRewound() bool",
              "doc": "AgentComposerRewound reports whether the composer currently holds a freshly rewound message highlighted with the Spec accent ring.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 541
            },
            {
              "name": "AgentComposerText",
              "anchor": "Editor.AgentComposerText",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentComposerText() string",
              "doc": "AgentComposerText returns the current multi-line draft in the Agent composer.\n",
              "file": "pkg/editor/agent.go",
              "line": 1558
            },
            {
              "name": "AgentDockBadgeCount",
              "anchor": "Editor.AgentDockBadgeCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentDockBadgeCount() int",
              "doc": "AgentDockBadgeCount returns the Dock badge count (waiting + ready to review + failed).\nRunning and queued tasks never add to the badge.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 716
            },
            {
              "name": "AgentDocsRevision",
              "anchor": "Editor.AgentDocsRevision",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentDocsRevision() uint64",
              "doc": "AgentDocsRevision returns a monotonic revision counter incremented whenever game brief,\nproject rules, pending document reviews, or review outcomes change.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 112
            },
            {
              "name": "AgentEraseTiles",
              "anchor": "Editor.AgentEraseTiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentEraseTiles(req AgentTileEraseRequest) (AgentTileEditResult, error)",
              "doc": "AgentEraseTiles clears explicit cells or rectangles on a tile layer in one undoable step.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1118
            },
            {
              "name": "AgentFailedCause",
              "anchor": "Editor.AgentFailedCause",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentFailedCause() string",
              "doc": "AgentFailedCause returns a short explanation of why the connection failed.\n",
              "file": "pkg/editor/agent.go",
              "line": 872
            },
            {
              "name": "AgentFailedStep",
              "anchor": "Editor.AgentFailedStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentFailedStep() ConnectStep",
              "doc": "AgentFailedStep returns the Connect dialog step that failed when disconnected.\n",
              "file": "pkg/editor/agent.go",
              "line": 864
            },
            {
              "name": "AgentFocusRequestCount",
              "anchor": "Editor.AgentFocusRequestCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentFocusRequestCount() int",
              "doc": "AgentFocusRequestCount returns how many times FocusOpenAgentRequest has been triggered (useful for tests).\n",
              "file": "pkg/editor/agent.go",
              "line": 1550
            },
            {
              "name": "AgentHeaderPillText",
              "anchor": "Editor.AgentHeaderPillText",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentHeaderPillText() string",
              "doc": "AgentHeaderPillText returns the localized text shown in the header pill for the current agent state,\nor \"\" when the agent is idle.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 545
            },
            {
              "name": "AgentHistoryEntries",
              "anchor": "Editor.AgentHistoryEntries",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentHistoryEntries() []AgentHistoryEntry",
              "doc": "AgentHistoryEntries builds the unified timeline for the History panel:\nagent thread steps for the active scene (most recent first), manual undo steps from History,\nand git commit milestones.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1642
            },
            {
              "name": "AgentImagePreviewID",
              "anchor": "Editor.AgentImagePreviewID",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentImagePreviewID() string",
              "doc": "AgentImagePreviewID returns the ID of the attached image chip currently hovered/previewed\n(or AgentBriefPreviewID when previewing brief.yaml's pinned references), or \"\".\n",
              "file": "pkg/editor/agent_references.go",
              "line": 382
            },
            {
              "name": "AgentLastPinNotice",
              "anchor": "Editor.AgentLastPinNotice",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentLastPinNotice() *BriefPinNotice",
              "doc": "AgentLastPinNotice returns the confirmation card state for the most recent Pin to brief action, or nil.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 416
            },
            {
              "name": "AgentLiveAnnouncement",
              "anchor": "Editor.AgentLiveAnnouncement",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentLiveAnnouncement() string",
              "doc": "AgentLiveAnnouncement returns the latest aria-live=\"polite\" status announcement text.\n",
              "file": "pkg/editor/agent.go",
              "line": 893
            },
            {
              "name": "AgentMCPServers",
              "anchor": "Editor.AgentMCPServers",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentMCPServers() []AgentMCPServer",
              "doc": "AgentMCPServers returns the external MCP servers configured for agents, starting with\n\"Running game · nsgo dev\" when no custom server list has been saved yet.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1019
            },
            {
              "name": "AgentMode",
              "anchor": "Editor.AgentMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentMode() AgentMode",
              "doc": "AgentMode returns the configured agent connection mode.\n",
              "file": "pkg/editor/agent.go",
              "line": 792
            },
            {
              "name": "AgentMutating",
              "anchor": "Editor.AgentMutating",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentMutating() bool",
              "doc": "AgentMutating reports whether the editor is currently executing an agent-originated mutation.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 182
            },
            {
              "name": "AgentObjectChange",
              "anchor": "Editor.AgentObjectChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentObjectChange(objectID string) (AgentObjectChange, bool)",
              "doc": "AgentObjectChange returns the pending turn change for objectID, if any.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 239
            },
            {
              "name": "AgentOffline",
              "anchor": "Editor.AgentOffline",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentOffline() bool",
              "doc": "AgentOffline reports whether the editor's Agent panel is currently in offline mode.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1968
            },
            {
              "name": "AgentOpenRequest",
              "anchor": "Editor.AgentOpenRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentOpenRequest() *AgentOpenRequest",
              "doc": "AgentOpenRequest returns the currently open permission/question request, or nil.\n",
              "file": "pkg/editor/agent.go",
              "line": 1505
            },
            {
              "name": "AgentPaintTiles",
              "anchor": "Editor.AgentPaintTiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPaintTiles(req AgentTilePaintRequest) (AgentTileEditResult, error)",
              "doc": "AgentPaintTiles paints explicit cells, rectangles, or weighted random tile picks in one undoable step.\nWhen req.TrackReview is true, the changes are also tracked in the active region-based tile review.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 652
            },
            {
              "name": "AgentPanelOpen",
              "anchor": "Editor.AgentPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPanelOpen() bool",
              "doc": "AgentPanelOpen reports whether the Agent tab is currently active in the right sidebar.\n",
              "file": "pkg/editor/agent.go",
              "line": 778
            },
            {
              "name": "AgentPermissionProfile",
              "anchor": "Editor.AgentPermissionProfile",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPermissionProfile() AgentPermissionProfile",
              "doc": "AgentPermissionProfile returns the active agent permission profile (defaulting to PermissionProfileBalanced).\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 302
            },
            {
              "name": "AgentPermissionRules",
              "anchor": "Editor.AgentPermissionRules",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPermissionRules() []AgentPermissionRule",
              "doc": "AgentPermissionRules returns the ordered starting permission rules derived from AgentPermissions.\n",
              "file": "pkg/editor/agent.go",
              "line": 888
            },
            {
              "name": "AgentPermissions",
              "anchor": "Editor.AgentPermissions",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPermissions() AgentPermissions",
              "doc": "AgentPermissions returns the active starting permission checkboxes.\n",
              "file": "pkg/editor/agent.go",
              "line": 880
            },
            {
              "name": "AgentPointingActive",
              "anchor": "Editor.AgentPointingActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPointingActive() bool",
              "doc": "AgentPointingActive reports whether the editor is currently waiting for a viewport click from \"Let me point\".\n",
              "file": "pkg/editor/agent_states.go",
              "line": 824
            },
            {
              "name": "AgentPointingPrompt",
              "anchor": "Editor.AgentPointingPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPointingPrompt() string",
              "doc": "AgentPointingPrompt returns the active pointing instruction shown in the card and viewport pill.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 833
            },
            {
              "name": "AgentPrimaryClient",
              "anchor": "Editor.AgentPrimaryClient",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPrimaryClient() (AgentClientInfo, bool)",
              "doc": "AgentPrimaryClient returns the primary connected MCP client (or the last known client when reconnecting/disconnected) and whether one is known.\n",
              "file": "pkg/editor/agent.go",
              "line": 816
            },
            {
              "name": "AgentPrivacy",
              "anchor": "Editor.AgentPrivacy",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPrivacy() AgentPrivacyPolicy",
              "doc": "AgentPrivacy returns the resolved privacy policy controlling what kinds of content may leave this computer.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1344
            },
            {
              "name": "AgentPulseOpacity",
              "anchor": "Editor.AgentPulseOpacity",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPulseOpacity() float32",
              "doc": "AgentPulseOpacity returns the current opacity of the Agent working outline in [0.45, 1.0].\nUnder reduced motion (or when no pulse timer is running), it stays solid at 1.0 (Spec.dc.html).\n",
              "file": "pkg/editor/agent_live.go",
              "line": 676
            },
            {
              "name": "AgentPulseRevision",
              "anchor": "Editor.AgentPulseRevision",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentPulseRevision() uint64",
              "doc": "AgentPulseRevision returns a monotonically increasing counter bumped on viewport-only agent pulse ticks\nwithout bumping Editor.Revision().\n",
              "file": "pkg/editor/agent_live.go",
              "line": 617
            },
            {
              "name": "AgentQueuedRequests",
              "anchor": "Editor.AgentQueuedRequests",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentQueuedRequests() []AgentQueuedRequest",
              "doc": "AgentQueuedRequests returns a copy of requests waiting in the Agent panel queue.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 413
            },
            {
              "name": "AgentReconnectProgress",
              "anchor": "Editor.AgentReconnectProgress",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentReconnectProgress() (attempt, total int)",
              "doc": "AgentReconnectProgress returns the current 1-based retry attempt and total attempts (5) while reconnecting.\n",
              "file": "pkg/editor/agent.go",
              "line": 852
            },
            {
              "name": "AgentRemovedNodes",
              "anchor": "Editor.AgentRemovedNodes",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentRemovedNodes(layer, parentID string) []AgentRemovedNode",
              "doc": "AgentRemovedNodes returns pending removed nodes belonging to layer and parentID (empty parentID for top-level layer children).\n",
              "file": "pkg/editor/agent_live.go",
              "line": 252
            },
            {
              "name": "AgentReview",
              "anchor": "Editor.AgentReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentReview() *AgentReviewSnapshot",
              "doc": "AgentReview returns a read-only copy of the current Review changes state, or nil when closed.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 124
            },
            {
              "name": "AgentReviewOpen",
              "anchor": "Editor.AgentReviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentReviewOpen() bool",
              "doc": "AgentReviewOpen reports whether the Review changes panel is currently open.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 119
            },
            {
              "name": "AgentRewindBanner",
              "anchor": "Editor.AgentRewindBanner",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentRewindBanner() (AgentRewindState, bool)",
              "doc": "AgentRewindBanner returns the active post-rewind banner state (shown above the composer with Redo), if any.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 516
            },
            {
              "name": "AgentRewindMode",
              "anchor": "Editor.AgentRewindMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentRewindMode() AgentRewindMode",
              "doc": "AgentRewindMode returns the currently selected radio option in the rewind popover.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 404
            },
            {
              "name": "AgentRewindOpenTurnID",
              "anchor": "Editor.AgentRewindOpenTurnID",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentRewindOpenTurnID() string",
              "doc": "AgentRewindOpenTurnID returns the turn ID whose rewind popover is currently open, or empty.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 396
            },
            {
              "name": "AgentRewindPreview",
              "anchor": "Editor.AgentRewindPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentRewindPreview(turnID string) (AgentRewindPreview, bool)",
              "doc": "AgentRewindPreview computes the distinct files and dropped turn count for rewinding to before turnID.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 476
            },
            {
              "name": "AgentSession",
              "anchor": "Editor.AgentSession",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentSession() AgentSessionSnapshot",
              "doc": "AgentSession returns an immutable snapshot of the active or latest live Agent panel turn and permission state.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 208
            },
            {
              "name": "AgentSessionID",
              "anchor": "Editor.AgentSessionID",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentSessionID() string",
              "doc": "AgentSessionID returns the external CLI session ID tracked for the current thread.\n",
              "file": "pkg/editor/agent.go",
              "line": 1782
            },
            {
              "name": "AgentState",
              "anchor": "Editor.AgentState",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentState() (AgentState, string)",
              "doc": "AgentState returns the current live agent state and detail text.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 536
            },
            {
              "name": "AgentStatus",
              "anchor": "Editor.AgentStatus",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentStatus() AgentStatus",
              "doc": "AgentStatus returns the current status chip state.\n",
              "file": "pkg/editor/agent.go",
              "line": 800
            },
            {
              "name": "AgentStatusBarText",
              "anchor": "Editor.AgentStatusBarText",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentStatusBarText() string",
              "doc": "AgentStatusBarText returns the bottom status-bar message describing what the agent is currently doing\nwhile reminding the person that manual edits stay available, or empty when the agent is idle.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 184
            },
            {
              "name": "AgentStatusTooltip",
              "anchor": "Editor.AgentStatusTooltip",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentStatusTooltip() string",
              "doc": "AgentStatusTooltip returns the hover text for the Connected status chip, naming the agent and transport (for example \"Claude Code over stdio\" or \"Anthropic API (built in)\").\n",
              "file": "pkg/editor/agent.go",
              "line": 830
            },
            {
              "name": "AgentStepPlayReplay",
              "anchor": "Editor.AgentStepPlayReplay",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentStepPlayReplay(fromFrame, toFrame int, note string) (int, error)",
              "doc": "AgentStepPlayReplay steps Play mode across frames [fromFrame, toFrame] on behalf of the agent (via MCP),\nupdates the viewport agent pill (\"agent stepping frames A–B\") and Agent tab step log (\"Stepped frames A–B with game_loop_step…\"),\nand keeps the game paused until the person explicitly resumes.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 1040
            },
            {
              "name": "AgentStepPlayReplayFile",
              "anchor": "Editor.AgentStepPlayReplayFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentStepPlayReplayFile(absPath string, fromFrame, toFrame int, note string) (int, error)",
              "doc": "AgentStepPlayReplayFile loads a replay file from absPath (optional) and runs AgentStepPlayReplay on it.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 1124
            },
            {
              "name": "AgentStopped",
              "anchor": "Editor.AgentStopped",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentStopped() bool",
              "doc": "AgentStopped reports whether the most recent live request was stopped by the user and has not yet been superseded by a new request.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 166
            },
            {
              "name": "AgentSwitcherOpen",
              "anchor": "Editor.AgentSwitcherOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentSwitcherOpen() bool",
              "doc": "AgentSwitcherOpen reports whether the thread switcher popover is open.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 989
            },
            {
              "name": "AgentSwitcherQuery",
              "anchor": "Editor.AgentSwitcherQuery",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentSwitcherQuery() string",
              "doc": "AgentSwitcherQuery returns the active search filter inside the thread switcher popover.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1017
            },
            {
              "name": "AgentTaskByID",
              "anchor": "Editor.AgentTaskByID",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTaskByID(id string) (AgentTask, bool)",
              "doc": "AgentTaskByID looks up one active agent task by ID across both the background task list\n(#1022) and ephemeral Agent panel turns.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 657
            },
            {
              "name": "AgentTaskCounts",
              "anchor": "Editor.AgentTaskCounts",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTaskCounts() AgentTaskCounts",
              "doc": "AgentTaskCounts returns counts of active non-dismissed tasks grouped by state across both\nthe background task list (#1022) and ephemeral Agent panel turns (deduplicated by ID).\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 672
            },
            {
              "name": "AgentTaskRoute",
              "anchor": "Editor.AgentTaskRoute",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTaskRoute(taskKey string) string",
              "doc": "AgentTaskRoute returns the selected model/connection label for taskKey under WHO DOES WHAT.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 827
            },
            {
              "name": "AgentThread",
              "anchor": "Editor.AgentThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentThread(id string) *AgentThread",
              "doc": "AgentThread returns a deep copy of the thread with id (persisted or active draft), or nil.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 895
            },
            {
              "name": "AgentThreadDoc",
              "anchor": "Editor.AgentThreadDoc",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentThreadDoc() *AgentThreadDoc",
              "doc": "AgentThreadDoc returns a snapshot of the editor's current background tasks as an AgentThreadDoc.\n",
              "file": "pkg/editor/tasks.go",
              "line": 571
            },
            {
              "name": "AgentThreadFilePath",
              "anchor": "Editor.AgentThreadFilePath",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentThreadFilePath() string",
              "doc": "AgentThreadFilePath returns the current thread's YAML file path under .nsgo/threads/, or \"\" when no project or ThreadsDir is set.\n",
              "file": "pkg/editor/tasks.go",
              "line": 528
            },
            {
              "name": "AgentThreadGroups",
              "anchor": "Editor.AgentThreadGroups",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentThreadGroups(query string) []AgentThreadGroup",
              "doc": "AgentThreadGroups returns persisted threads grouped by:\n 1. the open scene (\"<SCENE> · OPEN SCENE\"),\n 2. other scenes (\"<SCENE>\"), ordered by most recent thread activity,\n 3. project-level threads with no scene (\"PROJECT · NO SCENE\").\n\nWhen query is non-empty, only threads matching query (case-insensitive substring over title,\nscene name/path, request titles/prompts, or changed files) are returned, omitting empty groups.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1419
            },
            {
              "name": "AgentThreadID",
              "anchor": "Editor.AgentThreadID",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentThreadID() string",
              "doc": "AgentThreadID returns the active agent thread identifier.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2467
            },
            {
              "name": "AgentThreadSummary",
              "anchor": "Editor.AgentThreadSummary",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentThreadSummary() string",
              "doc": "AgentThreadSummary returns the compacted summary or fresh-thread summary seed, if any.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2503
            },
            {
              "name": "AgentThreadTurns",
              "anchor": "Editor.AgentThreadTurns",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentThreadTurns() []AgentThreadTurn",
              "doc": "AgentThreadTurns returns a copy of the turns currently held in the active thread.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2479
            },
            {
              "name": "AgentThreads",
              "anchor": "Editor.AgentThreads",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentThreads() []*AgentThread",
              "doc": "AgentThreads returns a deep-copied snapshot of all persisted threads, most recently updated first.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 881
            },
            {
              "name": "AgentTouchedObjects",
              "anchor": "Editor.AgentTouchedObjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTouchedObjects() []string",
              "doc": "AgentTouchedObjects returns a copy of the object IDs the agent is currently touching.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 584
            },
            {
              "name": "AgentTouchingObject",
              "anchor": "Editor.AgentTouchingObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTouchingObject(objectID string) bool",
              "doc": "AgentTouchingObject reports whether the agent is currently touching objectID during an active step.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 576
            },
            {
              "name": "AgentTurn",
              "anchor": "Editor.AgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTurn(id string) (AgentTurn, bool)",
              "doc": "AgentTurn returns the recorded turn matching id, or false when not found.\n",
              "file": "pkg/editor/agent.go",
              "line": 1703
            },
            {
              "name": "AgentTurnChanges",
              "anchor": "Editor.AgentTurnChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTurnChanges() []AgentObjectChange",
              "doc": "AgentTurnChanges returns a copy of the derived object changes in the pending agent turn.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 226
            },
            {
              "name": "AgentTurnPending",
              "anchor": "Editor.AgentTurnPending",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTurnPending() bool",
              "doc": "AgentTurnPending reports whether the active scene currently has an open pending agent turn.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 221
            },
            {
              "name": "AgentTurnReviewOpen",
              "anchor": "Editor.AgentTurnReviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTurnReviewOpen() bool",
              "doc": "AgentTurnReviewOpen reports whether the pending turn's review view is currently expanded/active.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 413
            },
            {
              "name": "AgentTurnSeq",
              "anchor": "Editor.AgentTurnSeq",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTurnSeq() uint64",
              "doc": "AgentTurnSeq returns a monotonically increasing sequence number bumped whenever an agent turn is added or updated.\n",
              "file": "pkg/editor/agent.go",
              "line": 1716
            },
            {
              "name": "AgentTurnWorking",
              "anchor": "Editor.AgentTurnWorking",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTurnWorking() bool",
              "doc": "AgentTurnWorking reports whether an agent turn is currently open and actively editing.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 394
            },
            {
              "name": "AgentTurns",
              "anchor": "Editor.AgentTurns",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentTurns() []AgentTurn",
              "doc": "AgentTurns returns a deep-enough copy of the turns in the active Agent panel thread, oldest first.\n",
              "file": "pkg/editor/agent.go",
              "line": 1683
            },
            {
              "name": "AgentUsage",
              "anchor": "Editor.AgentUsage",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentUsage() AgentUsageStats",
              "doc": "AgentUsage returns the current local usage counters (weekly requests, reviewed/kept changes, playtest runs).\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1226
            },
            {
              "name": "AgentUsageResetAt",
              "anchor": "Editor.AgentUsageResetAt",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentUsageResetAt() time.Time",
              "doc": "AgentUsageResetAt returns the next weekly usage reset boundary (Monday 00:00 in the editor's clock location).\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 360
            },
            {
              "name": "AgentUsageResetLabel",
              "anchor": "Editor.AgentUsageResetLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentUsageResetLabel() string",
              "doc": "AgentUsageResetLabel returns the formatted reset time shown in the Limit reached chip (for example \"00:00\").\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 368
            },
            {
              "name": "AgentWaitingElapsed",
              "anchor": "Editor.AgentWaitingElapsed",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentWaitingElapsed() string",
              "doc": "AgentWaitingElapsed returns how long the current Waiting-for-you request has been open, formatted as \"m:ss\".\n",
              "file": "pkg/editor/agent.go",
              "line": 1514
            },
            {
              "name": "AgentWeeklyLimitReached",
              "anchor": "Editor.AgentWeeklyLimitReached",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentWeeklyLimitReached() bool",
              "doc": "AgentWeeklyLimitReached reports whether a finite weekly request limit is set and has been reached for the current week.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 373
            },
            {
              "name": "AgentWorking",
              "anchor": "Editor.AgentWorking",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentWorking() bool",
              "doc": "AgentWorking reports whether an agent request (composer runner or live MCP session) is currently working or waiting for permission.\n",
              "file": "pkg/editor/agent.go",
              "line": 1790
            },
            {
              "name": "AgentWorkingActivity",
              "anchor": "Editor.AgentWorkingActivity",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentWorkingActivity() string",
              "doc": "AgentWorkingActivity returns the pill text for the agent's active step (for example \"placing slime_02\").\n",
              "file": "pkg/editor/agent_live.go",
              "line": 592
            },
            {
              "name": "AgentWorkingProgress",
              "anchor": "Editor.AgentWorkingProgress",
              "recv": "*Editor",
              "decl": "func (e *Editor) AgentWorkingProgress() (step, total int)",
              "doc": "AgentWorkingProgress returns the current 1-based step index and total step count (0 if unknown) while working.\n",
              "file": "pkg/editor/agent.go",
              "line": 844
            },
            {
              "name": "AllowDeniedStepNow",
              "anchor": "Editor.AllowDeniedStepNow",
              "recv": "*Editor",
              "decl": "func (e *Editor) AllowDeniedStepNow(stepID string) bool",
              "doc": "AllowDeniedStepNow lets the person explicitly approve and run a previously denied step from its step row.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 743
            },
            {
              "name": "AllowPermissionAlways",
              "anchor": "Editor.AllowPermissionAlways",
              "recv": "*Editor",
              "decl": "func (e *Editor) AllowPermissionAlways() bool",
              "doc": "AllowPermissionAlways inserts and persists the concrete Allow rule into permissions.yaml via ApproveAlwaysPermission\n(which also displays the \"Always permission rule saved\" toast with Show and Undo) and approves the waiting call.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 668
            },
            {
              "name": "AllowPermissionOnce",
              "anchor": "Editor.AllowPermissionOnce",
              "recv": "*Editor",
              "decl": "func (e *Editor) AllowPermissionOnce() bool",
              "doc": "AllowPermissionOnce approves the open permission card for this single call only.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 652
            },
            {
              "name": "AlwaysChips",
              "anchor": "Editor.AlwaysChips",
              "recv": "*Editor",
              "decl": "func (e *Editor) AlwaysChips() []AgentContextChip",
              "doc": "AlwaysChips returns the always-included project files (brief.yaml, AGENTS.md) present in the open project.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1507
            },
            {
              "name": "AmbientColor",
              "anchor": "Editor.AmbientColor",
              "recv": "*Editor",
              "decl": "func (e *Editor) AmbientColor() string",
              "doc": "AmbientColor returns the scene's 2D lighting ambient color CSS string, or empty when unset.\n",
              "file": "pkg/editor/lights2d_editor.go",
              "line": 35
            },
            {
              "name": "AnswerPlanQuestion",
              "anchor": "Editor.AnswerPlanQuestion",
              "recv": "*Editor",
              "decl": "func (e *Editor) AnswerPlanQuestion(questionID, optionID string) error",
              "doc": "AnswerPlanQuestion selects optionID for questionID in the active draft plan.\nIt collapses the answered question row and immediately updates planned ghosts and step titles.\n",
              "file": "pkg/editor/plan.go",
              "line": 1155
            },
            {
              "name": "AnySceneDirty",
              "anchor": "Editor.AnySceneDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) AnySceneDirty() bool",
              "doc": "AnySceneDirty reports whether any open scene tab has unsaved edits.\n",
              "file": "pkg/editor/tabs.go",
              "line": 484
            },
            {
              "name": "Appearance",
              "anchor": "Editor.Appearance",
              "recv": "*Editor",
              "decl": "func (e *Editor) Appearance() Appearance",
              "doc": "Appearance returns the editor's configured appearance setting (AppearanceSystem, AppearanceLight, or AppearanceDark).\n",
              "file": "pkg/editor/settings.go",
              "line": 642
            },
            {
              "name": "ApplicationMenu",
              "anchor": "Editor.ApplicationMenu",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplicationMenu() []desktop.MenuItem",
              "doc": "ApplicationMenu builds the desktop application menu bar (File, Edit, View, Project)\ndirectly from the editor's unified command registry, keeping labels, shortcuts,\nenabled/checked states, and actions identical to keyboard shortcuts and the command palette.\nEvery shortcut uses core.MenuNotEditing so text fields never lose editing keys.\n",
              "file": "pkg/editor/menubar.go",
              "line": 15
            },
            {
              "name": "ApplyBuildPresetFixAndRebuild",
              "anchor": "Editor.ApplyBuildPresetFixAndRebuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyBuildPresetFixAndRebuild(platform string) error",
              "doc": "ApplyBuildPresetFixAndRebuild applies the agent-proposed fix diff on platform (updating signing config,\npreset targets, and/or export/<platform>.export.yaml), clears the failure, and rebuilds platform.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1068
            },
            {
              "name": "ApplyCodeReviewCheckRun",
              "anchor": "Editor.ApplyCodeReviewCheckRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyCodeReviewCheckRun(run *CodeReviewCheckRun, res CodeReviewCheckResult, runErr error) error",
              "doc": "ApplyCodeReviewCheckRun commits the check result onto the editor goroutine if the review has not been edited since PrepareCodeReviewCheckRun.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1221
            },
            {
              "name": "ApplyFirstRunFix",
              "anchor": "Editor.ApplyFirstRunFix",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyFirstRunFix() error",
              "doc": "ApplyFirstRunFix applies the agent's proposed fix after a failed Check stage and advances into First Review.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2355
            },
            {
              "name": "ApplyMergeCustomYAML",
              "anchor": "Editor.ApplyMergeCustomYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyMergeCustomYAML(id, raw string) error",
              "doc": "ApplyMergeCustomYAML parses, validates, and applies hand-edited result YAML for conflict item id.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 562
            },
            {
              "name": "ApplyOverridesToSource",
              "anchor": "Editor.ApplyOverridesToSource",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyOverridesToSource(objectID string) error",
              "doc": "ApplyOverridesToSource writes the overrides of a scene instance (objectID, its owning instance if objectID is an\ninstanced child, or SelectedID when empty) into its source scene file on disk and clears those overrides on the\ninstance as one undoable step. Undo restores both the source file on disk and the instance's overrides.\n",
              "file": "pkg/editor/overrides.go",
              "line": 1372
            },
            {
              "name": "ApplyPermissionsDraft",
              "anchor": "Editor.ApplyPermissionsDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyPermissionsDraft() (int, error)",
              "doc": "ApplyPermissionsDraft applies ONLY the rules explicitly ticked by the person in the open draft card.\nIt refuses when zero rules are ticked, records the change in History as the person's (HistoryActorPerson),\npersists permissions.yaml when a project is open, and never runs from ⌘↵, Keep all, or automations.\n",
              "file": "pkg/editor/you_only.go",
              "line": 982
            },
            {
              "name": "ApplyPlaytestProposal",
              "anchor": "Editor.ApplyPlaytestProposal",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyPlaytestProposal(id string) error",
              "doc": "ApplyPlaytestProposal applies a pending playtest_define proposal (invoking ApplyFunc if provided, or writing After to playtest.yaml after verifying Before matches disk).\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 740
            },
            {
              "name": "ApplyProposedFix",
              "anchor": "Editor.ApplyProposedFix",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyProposedFix(fixID string) error",
              "doc": "ApplyProposedFix applies the pending proposed fix identified by fixID (or the\nactive/first pending fix when fixID is empty) as ONE undoable History step,\ndisplays a Spec toast with an Undo action, and re-runs the project check.\nThis method is called only by user actions in the editor UI — never by MCP.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 404
            },
            {
              "name": "ApplyReviewRedo",
              "anchor": "Editor.ApplyReviewRedo",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyReviewRedo(redos []ReviewRedoChange) error",
              "doc": "ApplyReviewRedo atomically validates and applies the agent's second-round (or later) revisions\nstrictly for changes that were noted and sent by the author.\n\nInvariants enforced:\n  - Any change_id not in the sent pending batch is refused atomically (no partial state changes).\n  - Earlier rounds remain intact and read-only.\n  - Un-noted changes in the same file cannot be altered even if FileContent is supplied.\n  - Redone changes become unseen again with \"Redone from your note: <note>\" as their Why.\n  - Keep still applies the latest round as ONE History undo step restoring exact pre-request bytes.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 713
            },
            {
              "name": "ApplyReviewYAMLFix",
              "anchor": "Editor.ApplyReviewYAMLFix",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplyReviewYAMLFix(changeID string) error",
              "doc": "ApplyReviewYAMLFix applies the offered one-step fix (such as \"Add the colon\") to the failing YAML draft.\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 499
            },
            {
              "name": "ApplySafeRename",
              "anchor": "Editor.ApplySafeRename",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplySafeRename() error",
              "doc": "ApplySafeRename applies the current validated safe-rename plan through MoveFile as one undoable History step and enters the Done review state.\n",
              "file": "pkg/editor/usages.go",
              "line": 644
            },
            {
              "name": "ApplySceneConflictMerge",
              "anchor": "Editor.ApplySceneConflictMerge",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplySceneConflictMerge() error",
              "doc": "ApplySceneConflictMerge merges the editor's open scene with the conflicting on-disk scene according to each entry's Choice (overlapping objects use their selected Mine/Disk pick; objects touched on only one side take that side), records the merged scene as one undoable History step, and acknowledges the on-disk snapshot so Save can persist the merged result.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1789
            },
            {
              "name": "ApplySettings",
              "anchor": "Editor.ApplySettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApplySettings(s EditorSettings) error",
              "doc": "ApplySettings validates and applies s to the editor without writing to disk.\nRefused when invoked on behalf of an agent because EditorSettings includes You-only agent limits and privacy switches.\n",
              "file": "pkg/editor/settings.go",
              "line": 859
            },
            {
              "name": "ApproveAgentPlan",
              "anchor": "Editor.ApproveAgentPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApproveAgentPlan() (AgentPlanDecision, error)",
              "doc": "ApproveAgentPlan approves the active draft (or stopped) plan once all clarifying questions are answered,\ntransitioning the plan to Running and delivering the decision to the waiting plan_propose MCP call.\nIt refuses with an error if any question is still unanswered or if all steps were removed.\n",
              "file": "pkg/editor/plan.go",
              "line": 1515
            },
            {
              "name": "ApproveAlwaysPermission",
              "anchor": "Editor.ApproveAlwaysPermission",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApproveAlwaysPermission(eval PermissionEvaluation) (int, error)",
              "doc": "ApproveAlwaysPermission inserts an Allow rule for eval ahead of its current asking rule (so first-match-wins lets future matching calls through immediately), saves permissions.yaml when a project is open, and shows the \"Always permission rule saved\" toast with Show and Undo.\nIt re-evaluates eval against the live rule table so a stale RuleIndex can never insert Allow ahead of a Deny rule, refuses empty/escaping targets, and refuses when permissions.yaml failed to load.\nIt returns the 0-based index of the newly inserted (or already matching) rule.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1809
            },
            {
              "name": "ApproveFirstRunPlan",
              "anchor": "Editor.ApproveFirstRunPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApproveFirstRunPlan() error",
              "doc": "ApproveFirstRunPlan approves the first plan, creates the brand-new target project folder on disk\n(recording folder ownership exclusively for this flow), and transitions into Step 4 (Building).\n",
              "file": "pkg/editor/first_run.go",
              "line": 1507
            },
            {
              "name": "ApproveSketchReading",
              "anchor": "Editor.ApproveSketchReading",
              "recv": "*Editor",
              "decl": "func (e *Editor) ApproveSketchReading() error",
              "doc": "ApproveSketchReading answers \"Go ahead\" on the active sketch reading, releasing the hold gate\nso scene_edit can proceed and preparing a pre-edit review snapshot for Keep / Revert.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1372
            },
            {
              "name": "AskAboutProblem",
              "anchor": "Editor.AskAboutProblem",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAboutProblem(p assetcheck.Problem, question string) error",
              "doc": "AskAboutProblem submits a question from \"Ask about this problem…\" with the\nproblem (and any attributed object / proposed fix) attached.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 574
            },
            {
              "name": "AskAgentAboutAsset",
              "anchor": "Editor.AskAgentAboutAsset",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAgentAboutAsset(assetPath, prompt string)",
              "doc": "AskAgentAboutAsset notifies OnAssetAskAgent (when configured) and updates status with the asset prompt.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 2496
            },
            {
              "name": "AskAgentAboutObject",
              "anchor": "Editor.AskAgentAboutObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAgentAboutObject(id string) (AgentPromptRequest, error)",
              "doc": "AskAgentAboutObject builds an AgentPromptRequest draft for object id, invokes Editor.OnAskAgent if set,\nstores it as LastAgentPrompt, opens the anchored ⌘L in-place composer for the target (or the current\nmulti-selection when id is part of it), updates Status, and returns the request.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 738
            },
            {
              "name": "AskAgentFromSettings",
              "anchor": "Editor.AskAgentFromSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAgentFromSettings(source, prompt string) SettingsAgentRequest",
              "doc": "AskAgentFromSettings dispatches an agent request from the Settings dialog (\"Agent on this page\"\ncard or the top Settings search bar) with the current Settings page as context, updating\nComposerDraft and invoking OnSettingsAgentRequest and OnComposerPrompt when set.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1559
            },
            {
              "name": "AskAgentToFixCodeReview",
              "anchor": "Editor.AskAgentToFixCodeReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAgentToFixCodeReview() error",
              "doc": "AskAgentToFixCodeReview asks the agent to fix the failing Go test/check within the same turn (round 2).\nIt switches the review into the fixing state, focuses the suspect Go file, notifies Editor.OnAskCodeReviewFix\n(or starts a fix prompt via Editor.AgentRunner if configured), and awaits the agent's updated files.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1022
            },
            {
              "name": "AskAgentToFixHUDProblems",
              "anchor": "Editor.AskAgentToFixHUDProblems",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAgentToFixHUDProblems() HUDPromptRequest",
              "doc": "AskAgentToFixHUDProblems submits an agent prompt asking to fix all active GAME CHECK problems in the active screen and language.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 2030
            },
            {
              "name": "AskAgentToFixPanic",
              "anchor": "Editor.AskAgentToFixPanic",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAgentToFixPanic() error",
              "doc": "AskAgentToFixPanic sends the detected panic report (message, stack frames, and attached replay) to the agent\nvia Editor.OnAskPanicFix and displays the task in the Play mode Agent tab.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 301
            },
            {
              "name": "AskAgentToTunePlaytest",
              "anchor": "Editor.AskAgentToTunePlaytest",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAgentToTunePlaytest() PlaytestPromptRequest",
              "doc": "AskAgentToTunePlaytest creates and dispatches a tuning request for the active playtest report's missed goals.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 877
            },
            {
              "name": "AskAgentToUpdateUsage",
              "anchor": "Editor.AskAgentToUpdateUsage",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAgentToUpdateUsage(file string, line int) error",
              "doc": "AskAgentToUpdateUsage triggers the optional OnAskAgentUpdateRef callback for a non-rewritten reference (such as a Go string constant) and marks it as requested in the review UI.\n",
              "file": "pkg/editor/usages.go",
              "line": 988
            },
            {
              "name": "AskAgentWhyMismatch",
              "anchor": "Editor.AskAgentWhyMismatch",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskAgentWhyMismatch(turnID string) error",
              "doc": "AskAgentWhyMismatch sends a follow-up question asking why the summary disagrees with the actual review diff.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1810
            },
            {
              "name": "AskFrozenFrameDraft",
              "anchor": "Editor.AskFrozenFrameDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskFrozenFrameDraft() string",
              "doc": "AskFrozenFrameDraft returns the current prompt text typed into the \"Ask about frame N\" dialog.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 818
            },
            {
              "name": "AskFrozenFrameNumber",
              "anchor": "Editor.AskFrozenFrameNumber",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskFrozenFrameNumber() int",
              "doc": "AskFrozenFrameNumber returns the frozen frame number shown in the \"Ask about frame N\" dialog.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 835
            },
            {
              "name": "AskFrozenFrameOpen",
              "anchor": "Editor.AskFrozenFrameOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskFrozenFrameOpen() bool",
              "doc": "AskFrozenFrameOpen reports whether Play mode's \"Ask about frame N\" dialog is currently open.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 813
            },
            {
              "name": "AskFrozenFramePNG",
              "anchor": "Editor.AskFrozenFramePNG",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskFrozenFramePNG() []byte",
              "doc": "AskFrozenFramePNG returns a copy of the PNG captured when \"Ask about frame N\" was opened.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 843
            },
            {
              "name": "AskInPlaceOpen",
              "anchor": "Editor.AskInPlaceOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskInPlaceOpen() bool",
              "doc": "AskInPlaceOpen reports whether the anchored ⌘L in-place agent composer is currently open.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 95
            },
            {
              "name": "AskInPlacePlacement",
              "anchor": "Editor.AskInPlacePlacement",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskInPlacePlacement() AskInPlacePlacement",
              "doc": "AskInPlacePlacement computes the current clamped placement of the in-place composer inside the viewport.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 684
            },
            {
              "name": "AskInPlaceSelectedSuggestion",
              "anchor": "Editor.AskInPlaceSelectedSuggestion",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskInPlaceSelectedSuggestion() int",
              "doc": "AskInPlaceSelectedSuggestion returns the currently keyboard-highlighted suggestion index, or -1 when none is highlighted.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 221
            },
            {
              "name": "AskInPlaceSnapshot",
              "anchor": "Editor.AskInPlaceSnapshot",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskInPlaceSnapshot() AskInPlaceSnapshot",
              "doc": "AskInPlaceSnapshot returns the full view-model snapshot for the anchored ⌘L in-place composer.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 721
            },
            {
              "name": "AskToAddComponent",
              "anchor": "Editor.AskToAddComponent",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskToAddComponent(objectID string) string",
              "doc": "AskToAddComponent populates the agent composer draft with \"Add a component to <object> that \"\nfor objectID (defaulting to the selected object when empty), invokes Editor.OnComposerPrompt\nwhen set, updates the status bar, and returns the prompt string.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 182
            },
            {
              "name": "AskToAddSelectedComponent",
              "anchor": "Editor.AskToAddSelectedComponent",
              "recv": "*Editor",
              "decl": "func (e *Editor) AskToAddSelectedComponent() string",
              "doc": "AskToAddSelectedComponent is AskToAddComponent for the currently selected object.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 210
            },
            {
              "name": "AssembleAgentRequest",
              "anchor": "Editor.AssembleAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssembleAgentRequest(prompt string) AgentRequest",
              "doc": "AssembleAgentRequest assembles the exact request sent to the agent from the active chips\n(Always chips + explicitly attached chips + Viewport image if toggled on) and NOTHING else.\nSuggested selection chips are never included unless explicitly added.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2220
            },
            {
              "name": "AssetApprovalAuthor",
              "anchor": "Editor.AssetApprovalAuthor",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetApprovalAuthor() string",
              "doc": "AssetApprovalAuthor returns the author name recorded in approvedBy when picking a generated candidate.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 419
            },
            {
              "name": "AssetAudioPlayingPath",
              "anchor": "Editor.AssetAudioPlayingPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetAudioPlayingPath() string",
              "doc": "AssetAudioPlayingPath returns the project-relative path of the audio asset currently playing in the right panel, or \"\".\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1644
            },
            {
              "name": "AssetBrowserOpen",
              "anchor": "Editor.AssetBrowserOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetBrowserOpen() bool",
              "doc": "AssetBrowserOpen reports whether the Asset Browser panel is open.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 252
            },
            {
              "name": "AssetDragActive",
              "anchor": "Editor.AssetDragActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetDragActive() bool",
              "doc": "AssetDragActive reports whether a sprite drag from the asset drawer is currently in progress.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1773
            },
            {
              "name": "AssetDragState",
              "anchor": "Editor.AssetDragState",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetDragState() AssetDragState",
              "doc": "AssetDragState returns a copy of the active asset drag preview state.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1778
            },
            {
              "name": "AssetDrawerFolder",
              "anchor": "Editor.AssetDrawerFolder",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetDrawerFolder() string",
              "doc": "AssetDrawerFolder returns the currently selected folder filter (\"\" for \"All assets\").\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 419
            },
            {
              "name": "AssetDrawerKind",
              "anchor": "Editor.AssetDrawerKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetDrawerKind() AssetDrawerKind",
              "doc": "AssetDrawerKind returns the active kind tab in the asset drawer.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 477
            },
            {
              "name": "AssetDrawerQuery",
              "anchor": "Editor.AssetDrawerQuery",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetDrawerQuery() string",
              "doc": "AssetDrawerQuery returns the name/path filter text in the asset drawer.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 501
            },
            {
              "name": "AssetDrawerSnapshot",
              "anchor": "Editor.AssetDrawerSnapshot",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetDrawerSnapshot() AssetDrawerSnapshot",
              "doc": "AssetDrawerSnapshot returns the current filtered, sorted asset catalog, folder counts,\nSHOW ONLY counts, missing-file problem list, and selected asset metadata.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 656
            },
            {
              "name": "AssetDrawerSort",
              "anchor": "Editor.AssetDrawerSort",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetDrawerSort() AssetSortMode",
              "doc": "AssetDrawerSort returns the current asset drawer sort mode.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 519
            },
            {
              "name": "AssetDrawerStatusFilter",
              "anchor": "Editor.AssetDrawerStatusFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetDrawerStatusFilter() AssetStatusFilter",
              "doc": "AssetDrawerStatusFilter returns the active SHOW ONLY filter.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 447
            },
            {
              "name": "AssetGenBusy",
              "anchor": "Editor.AssetGenBusy",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetGenBusy() (bool, string)",
              "doc": "AssetGenBusy reports whether an asynchronous UI generation request is currently in flight and its status label.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 1410
            },
            {
              "name": "AssetGenPreviewBackground",
              "anchor": "Editor.AssetGenPreviewBackground",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetGenPreviewBackground() AssetPreviewBackground",
              "doc": "AssetGenPreviewBackground returns the currently selected preview backdrop for generated image candidates.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 650
            },
            {
              "name": "AssetGeneratorOpen",
              "anchor": "Editor.AssetGeneratorOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetGeneratorOpen() bool",
              "doc": "AssetGeneratorOpen reports whether the full-window Generated Assets screen is open.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 375
            },
            {
              "name": "AssetGenerators",
              "anchor": "Editor.AssetGenerators",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetGenerators() []AssetGeneratorServer",
              "doc": "AssetGenerators returns all connected and configured MCP generator servers in deterministic order.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 844
            },
            {
              "name": "AssetImportKind",
              "anchor": "Editor.AssetImportKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetImportKind(relPath string) AssetImportKind",
              "doc": "AssetImportKind returns the import asset kind of relPath in the open project, or AssetImportNone when no project is open, relPath is a directory, missing, a sidecar, a generated target output, or not an importable asset.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 55
            },
            {
              "name": "AssetImportSettings",
              "anchor": "Editor.AssetImportSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetImportSettings(relPath string) (*importsettings.File, bool, error)",
              "doc": "AssetImportSettings reads and parses the *.import.yaml sidecar beside relPath in the open project.\nIt returns (nil, false, nil) when no sidecar file exists on disk.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 372
            },
            {
              "name": "AssetPreviewClip",
              "anchor": "Editor.AssetPreviewClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetPreviewClip() string",
              "doc": "AssetPreviewClip returns the active clip name in the selected asset's right-panel preview.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1515
            },
            {
              "name": "AssetPreviewFrame",
              "anchor": "Editor.AssetPreviewFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetPreviewFrame() int",
              "doc": "AssetPreviewFrame returns the active 0-based frame index in the selected asset's right-panel preview.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1535
            },
            {
              "name": "AssetPreviewPlaying",
              "anchor": "Editor.AssetPreviewPlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetPreviewPlaying() bool",
              "doc": "AssetPreviewPlaying reports whether the selected asset's clip preview is playing frame-by-frame.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1492
            },
            {
              "name": "AssetSnapStep",
              "anchor": "Editor.AssetSnapStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetSnapStep() float32",
              "doc": "AssetSnapStep returns the snap grid spacing in pixels used when dragging a sprite asset onto the 2D viewport.\nWhen SnapToGrid is enabled, it uses EffectiveGridSize; otherwise it uses the active layer's tile width if present or 16 px.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1743
            },
            {
              "name": "AssetStyleBrief",
              "anchor": "Editor.AssetStyleBrief",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetStyleBrief() AssetStyleBrief",
              "doc": "AssetStyleBrief returns the currently active style brief.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 483
            },
            {
              "name": "Assets",
              "anchor": "Editor.Assets",
              "recv": "*Editor",
              "decl": "func (e *Editor) Assets() []AssetEntry",
              "doc": "Assets returns all available atlas frames in deterministic sorted order (by Atlas, then Frame).\n",
              "file": "pkg/editor/browser.go",
              "line": 33
            },
            {
              "name": "AssetsBuildLastError",
              "anchor": "Editor.AssetsBuildLastError",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetsBuildLastError() error",
              "doc": "AssetsBuildLastError returns the error from the most recent completed BuildAssets or ReimportAsset run, or nil.\n",
              "file": "pkg/editor/asset_build.go",
              "line": 104
            },
            {
              "name": "AssetsBuilding",
              "anchor": "Editor.AssetsBuilding",
              "recv": "*Editor",
              "decl": "func (e *Editor) AssetsBuilding() bool",
              "doc": "AssetsBuilding reports whether a BuildAssets or ReimportAsset command is currently in flight. It is safe to call from any goroutine.\n",
              "file": "pkg/editor/asset_build.go",
              "line": 94
            },
            {
              "name": "AttachAgentReferenceBytes",
              "anchor": "Editor.AttachAgentReferenceBytes",
              "recv": "*Editor",
              "decl": "func (e *Editor) AttachAgentReferenceBytes(name string, data []byte) (AgentReferenceImage, error)",
              "doc": "AttachAgentReferenceBytes validates raw PNG, JPEG, or WebP bytes and attaches the image to the next composer request only.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 435
            },
            {
              "name": "AttachAgentReferenceFile",
              "anchor": "Editor.AttachAgentReferenceFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) AttachAgentReferenceFile(pathOrURI string) (AgentReferenceImage, error)",
              "doc": "AttachAgentReferenceFile reads a local file path or file:// URL, validates it as PNG, JPEG, or WebP,\nand attaches it to the current composer request only.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 476
            },
            {
              "name": "AttachDeniedStepAllowNow",
              "anchor": "Editor.AttachDeniedStepAllowNow",
              "recv": "*Editor",
              "decl": "func (e *Editor) AttachDeniedStepAllowNow(stepID string, fn func())",
              "doc": "AttachDeniedStepAllowNow binds the on-demand \"Allow now\" callback for a denied step.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 726
            },
            {
              "name": "AttachFileChip",
              "anchor": "Editor.AttachFileChip",
              "recv": "*Editor",
              "decl": "func (e *Editor) AttachFileChip(relPath string) (AgentContextChip, error)",
              "doc": "AttachFileChip explicitly attaches a project-relative file as a context chip.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1395
            },
            {
              "name": "AttachObjectChip",
              "anchor": "Editor.AttachObjectChip",
              "recv": "*Editor",
              "decl": "func (e *Editor) AttachObjectChip(id string) (AgentContextChip, error)",
              "doc": "AttachObjectChip explicitly attaches scene object id as a context chip.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1335
            },
            {
              "name": "AttachRigFrame",
              "anchor": "Editor.AttachRigFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) AttachRigFrame(skin, slot, frame string, originX, originY float32) error",
              "doc": "AttachRigFrame attaches atlas frame frame to slot in skin with pivot (originX, originY) as an undoable command.\nIf skin[slot] already exists, its offset, rotation and scale are kept; otherwise scale defaults to (1, 1).\n",
              "file": "pkg/editor/rig.go",
              "line": 1199
            },
            {
              "name": "AttachScope",
              "anchor": "Editor.AttachScope",
              "recv": "*Editor",
              "decl": "func (e *Editor) AttachScope(cx *core.Scope)",
              "doc": "AttachScope binds a core.Scope to the editor so Play() can launch game.Loop from UI controls and background checks or game runs can post updates to the UI goroutine.\n",
              "file": "pkg/editor/state.go",
              "line": 1194
            },
            {
              "name": "AttachWholeSceneChip",
              "anchor": "Editor.AttachWholeSceneChip",
              "recv": "*Editor",
              "decl": "func (e *Editor) AttachWholeSceneChip() (AgentContextChip, error)",
              "doc": "AttachWholeSceneChip explicitly attaches the entire open scene as a context chip (used by ⌘L with nothing selected).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1368
            },
            {
              "name": "AudioBusVolume",
              "anchor": "Editor.AudioBusVolume",
              "recv": "*Editor",
              "decl": "func (e *Editor) AudioBusVolume(name string) (float32, bool)",
              "doc": "AudioBusVolume returns bus's configured volume (defaulting to 1 when nil) and whether the bus exists.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 382
            },
            {
              "name": "AudioBuses",
              "anchor": "Editor.AudioBuses",
              "recv": "*Editor",
              "decl": "func (e *Editor) AudioBuses() []project.Bus",
              "doc": "AudioBuses returns a cloned copy of the open project's audio buses in declaration order.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 373
            },
            {
              "name": "AudioMasterVolume",
              "anchor": "Editor.AudioMasterVolume",
              "recv": "*Editor",
              "decl": "func (e *Editor) AudioMasterVolume() float32",
              "doc": "AudioMasterVolume returns the project's configured master volume in [0, 1], defaulting to 1 when unset.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 355
            },
            {
              "name": "AudioMixerOpen",
              "anchor": "Editor.AudioMixerOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AudioMixerOpen() bool",
              "doc": "AudioMixerOpen reports whether the Settings view is open on the Audio buses page.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 221
            },
            {
              "name": "AuditionAudioBus",
              "anchor": "Editor.AuditionAudioBus",
              "recv": "*Editor",
              "decl": "func (e *Editor) AuditionAudioBus(bus, relPath string) error",
              "doc": "AuditionAudioBus loads relPath from the open project and plays it through bus using the editor's sound.Mixer configured by project.File.ConfigureMixer. Changes to master volume, bus volume, or the bus's effect chain update live while auditioning.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 635
            },
            {
              "name": "AuditionBus",
              "anchor": "Editor.AuditionBus",
              "recv": "*Editor",
              "decl": "func (e *Editor) AuditionBus() string",
              "doc": "AuditionBus returns the bus name currently being auditioned, or empty when idle.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 312
            },
            {
              "name": "AuditionChangedAudio",
              "anchor": "Editor.AuditionChangedAudio",
              "recv": "*Editor",
              "decl": "func (e *Editor) AuditionChangedAudio(filePath string) error",
              "doc": "AuditionChangedAudio plays the selected sound asset from the Changes panel (reusing sound.Mixer when a UI scope is attached).\n",
              "file": "pkg/editor/changes.go",
              "line": 3283
            },
            {
              "name": "AuditionFile",
              "anchor": "Editor.AuditionFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) AuditionFile() string",
              "doc": "AuditionFile returns the project-relative path currently being auditioned, or empty when idle.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 320
            },
            {
              "name": "AuditionGain",
              "anchor": "Editor.AuditionGain",
              "recv": "*Editor",
              "decl": "func (e *Editor) AuditionGain() float32",
              "doc": "AuditionGain returns the effective playback gain (master * bus volume) for the active audition bus, or 0 when not auditioning.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 347
            },
            {
              "name": "AuditionLoop",
              "anchor": "Editor.AuditionLoop",
              "recv": "*Editor",
              "decl": "func (e *Editor) AuditionLoop() bool",
              "doc": "AuditionLoop reports whether audition playback loops.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 290
            },
            {
              "name": "AuditionMixer",
              "anchor": "Editor.AuditionMixer",
              "recv": "*Editor",
              "decl": "func (e *Editor) AuditionMixer() *sound.Mixer",
              "doc": "AuditionMixer returns the editor's sound.Mixer configured via project.File.ConfigureMixer, initializing it on the attached core.Scope when available.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 336
            },
            {
              "name": "AuditionSource",
              "anchor": "Editor.AuditionSource",
              "recv": "*Editor",
              "decl": "func (e *Editor) AuditionSource() audio.Source",
              "doc": "AuditionSource returns the processed audio.Source currently playing through the audition mixer.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 328
            },
            {
              "name": "Auditioning",
              "anchor": "Editor.Auditioning",
              "recv": "*Editor",
              "decl": "func (e *Editor) Auditioning() bool",
              "doc": "Auditioning reports whether the mixer panel is actively auditioning a sound through a bus.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 307
            },
            {
              "name": "AutoSave",
              "anchor": "Editor.AutoSave",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutoSave() bool",
              "doc": "AutoSave reports whether kept edits save automatically after AutoSaveDelay (default 2 s).\n",
              "file": "pkg/editor/settings.go",
              "line": 647
            },
            {
              "name": "AutoSaveInFlight",
              "anchor": "Editor.AutoSaveInFlight",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutoSaveInFlight() bool",
              "doc": "AutoSaveInFlight reports whether an autosave write is currently executing.\n",
              "file": "pkg/editor/autosave.go",
              "line": 329
            },
            {
              "name": "AutoSavePending",
              "anchor": "Editor.AutoSavePending",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutoSavePending() bool",
              "doc": "AutoSavePending reports whether an autosave debounce timer is currently armed.\n",
              "file": "pkg/editor/autosave.go",
              "line": 324
            },
            {
              "name": "AutomationCheckpointByID",
              "anchor": "Editor.AutomationCheckpointByID",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationCheckpointByID(id string) (AutomationCheckpoint, bool)",
              "doc": "AutomationCheckpointByID returns the checkpoint with id, or (zero, false) if not found.\n",
              "file": "pkg/editor/automations.go",
              "line": 1106
            },
            {
              "name": "AutomationCheckpoints",
              "anchor": "Editor.AutomationCheckpoints",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationCheckpoints() []AutomationCheckpoint",
              "doc": "AutomationCheckpoints returns a copy of checkpoints taken before automation runs.\n",
              "file": "pkg/editor/automations.go",
              "line": 1087
            },
            {
              "name": "AutomationDraftError",
              "anchor": "Editor.AutomationDraftError",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationDraftError() string",
              "doc": "AutomationDraftError returns any validation/drafting error in \"+ New automation, in words\".\n",
              "file": "pkg/editor/automations.go",
              "line": 720
            },
            {
              "name": "AutomationDraftOpen",
              "anchor": "Editor.AutomationDraftOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationDraftOpen() bool",
              "doc": "AutomationDraftOpen reports whether the \"+ New automation, in words\" form is open in Settings › Automations.\n",
              "file": "pkg/editor/automations.go",
              "line": 698
            },
            {
              "name": "AutomationDraftText",
              "anchor": "Editor.AutomationDraftText",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationDraftText() string",
              "doc": "AutomationDraftText returns the current natural-language input in \"+ New automation, in words\".\n",
              "file": "pkg/editor/automations.go",
              "line": 709
            },
            {
              "name": "AutomationRunningCount",
              "anchor": "Editor.AutomationRunningCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationRunningCount() int",
              "doc": "AutomationRunningCount returns the number of background automation tasks currently running.\n",
              "file": "pkg/editor/automations.go",
              "line": 2044
            },
            {
              "name": "AutomationWeeklyRuns",
              "anchor": "Editor.AutomationWeeklyRuns",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationWeeklyRuns(id string) int",
              "doc": "AutomationWeeklyRuns returns how many times the automation with id ran during the last 7 days.\n",
              "file": "pkg/editor/automations.go",
              "line": 562
            },
            {
              "name": "Automations",
              "anchor": "Editor.Automations",
              "recv": "*Editor",
              "decl": "func (e *Editor) Automations() *AutomationsFile",
              "doc": "Automations returns a deep copy of the active project's AutomationsFile.\n",
              "file": "pkg/editor/automations.go",
              "line": 279
            },
            {
              "name": "AutomationsLoadError",
              "anchor": "Editor.AutomationsLoadError",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationsLoadError() error",
              "doc": "AutomationsLoadError returns any parse/validation error encountered when loading the open project's automations.yaml.\n",
              "file": "pkg/editor/automations.go",
              "line": 268
            },
            {
              "name": "AutomationsPath",
              "anchor": "Editor.AutomationsPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationsPath() string",
              "doc": "AutomationsPath returns the OS path of the open project's automations.yaml, or empty without an open project.\n",
              "file": "pkg/editor/automations.go",
              "line": 259
            },
            {
              "name": "AutomationsPausedToday",
              "anchor": "Editor.AutomationsPausedToday",
              "recv": "*Editor",
              "decl": "func (e *Editor) AutomationsPausedToday() bool",
              "doc": "AutomationsPausedToday reports whether automations are currently paused for today.\nWhen the clock advances to a later calendar day, AutomationsPausedToday returns false automatically.\n",
              "file": "pkg/editor/automations.go",
              "line": 547
            },
            {
              "name": "AvailableExportPlatforms",
              "anchor": "Editor.AvailableExportPlatforms",
              "recv": "*Editor",
              "decl": "func (e *Editor) AvailableExportPlatforms() []string",
              "doc": "AvailableExportPlatforms returns the platforms from project.Platforms that do not yet have an export preset in the open project.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 335
            },
            {
              "name": "BackToCommitDraft",
              "anchor": "Editor.BackToCommitDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) BackToCommitDraft()",
              "doc": "BackToCommitDraft switches the right pane from the post-commit milestone view back to the editable commit draft.\n",
              "file": "pkg/editor/changes.go",
              "line": 3003
            },
            {
              "name": "BackToStartFromPlan",
              "anchor": "Editor.BackToStartFromPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) BackToStartFromPlan()",
              "doc": "BackToStartFromPlan returns from Step 3 (The first plan) back to the Start Screen, preserving idea and name.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1469
            },
            {
              "name": "BakeAllProbes3D",
              "anchor": "Editor.BakeAllProbes3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BakeAllProbes3D() (int, error)",
              "doc": "BakeAllProbes3D bakes every reflection probe and light probe grid in the open scene, writing\ntheir .hdr cubemaps and .probes.yaml files to disk and linking any unset paths in a single\nundoable History group. Returns the number of probes baked.\n",
              "file": "pkg/editor/probes3d.go",
              "line": 603
            },
            {
              "name": "BakeLightProbeGrid3D",
              "anchor": "Editor.BakeLightProbeGrid3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BakeLightProbeGrid3D(id string) (string, error)",
              "doc": "BakeLightProbeGrid3D renders the open 3D scene at every sample point of object id's light probe\ngrid, encodes the resulting L2 spherical harmonic irradiance coefficients as versioned canonical\nYAML, writes it atomically to disk, links LightProbeGrid.Data via History when unset or changed,\nand refreshes the 3D scene build. Returns the slash-separated output path relative to the project root.\n",
              "file": "pkg/editor/probes3d.go",
              "line": 513
            },
            {
              "name": "BakeNavMesh3D",
              "anchor": "Editor.BakeNavMesh3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BakeNavMesh3D() (*navbake3d.File, error)",
              "doc": "BakeNavMesh3D bakes a 3D navigation mesh from the open scene's static geometry (glTF models,\nbuilt-in 3D primitives, static 3D physics colliders, and any geometry supplied by\nOnBakeNavMesh3DGeometry) using the current NavMeshBakeConfig.\n\nWhen an output path resolves inside the open project (or beside FilePath),\nthe deterministic .navmesh.yaml file is written atomically and SceneDoc.NavMesh is linked via\nHistory as an undoable edit when unset or changed. The baked file is loaded into the 3D viewport\npreview overlay immediately.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 445
            },
            {
              "name": "BakeReflectionProbe3D",
              "anchor": "Editor.BakeReflectionProbe3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BakeReflectionProbe3D(id string) (string, error)",
              "doc": "BakeReflectionProbe3D renders the open 3D scene from object id's reflection probe position into\na 6-face Radiance HDR cubemap strip, writes it atomically to disk, links ReflectionProbe.Cubemap\nvia History when unset or changed, and refreshes the 3D scene build so the viewport shows the\nbaked reflection immediately. Returns the slash-separated output path relative to the project root.\n",
              "file": "pkg/editor/probes3d.go",
              "line": 427
            },
            {
              "name": "BeginAgentPermissionAsk",
              "anchor": "Editor.BeginAgentPermissionAsk",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginAgentPermissionAsk(ask AgentPermissionPrompt) (respCh <-chan AgentPermissionOutcome, stopCh <-chan struct{}, alreadyDenied bool)",
              "doc": "BeginAgentPermissionAsk installs an open permission card inside the Agent panel for ask.\nIf ask.PermissionKey was already denied in the active request, it returns (nil, stopCh, true) immediately\nwithout showing a card so denials are never retried automatically.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 534
            },
            {
              "name": "BeginAgentStep",
              "anchor": "Editor.BeginAgentStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginAgentStep(objectIDs []string, activity string)",
              "doc": "BeginAgentStep marks objectIDs as currently being touched by the agent with the human-readable\nactivity pill label (for example \"placing slime_02\"). While marked, manual edits to those objects\nare refused in the viewport, inspector, scene tree, and direct Editor edit methods while keeping\nselection handles visible.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 419
            },
            {
              "name": "BeginAgentToolStep",
              "anchor": "Editor.BeginAgentToolStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginAgentToolStep(tool, text, activity string, objects []string) string",
              "doc": "BeginAgentToolStep appends a new active running step (with spinner) for a tool call,\nremoving the initial placeholder step and enforcing at most one running spinner at a time.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 342
            },
            {
              "name": "BeginAgentTurn",
              "anchor": "Editor.BeginAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginAgentTurn(label string)",
              "doc": "BeginAgentTurn opens a pending agent turn for the active scene if none is open yet,\nsnapshotting the current scene as the structural diff baseline and recording the current history index.\nWhen a turn is already open, it preserves the existing baseline and updates the label if empty.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 189
            },
            {
              "name": "BeginAssetDrag",
              "anchor": "Editor.BeginAssetDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginAssetDrag(assetPath string) error",
              "doc": "BeginAssetDrag starts dragging the sprite asset at assetPath from the asset drawer.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1786
            },
            {
              "name": "BeginCameraBoundsDrag",
              "anchor": "Editor.BeginCameraBoundsDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginCameraBoundsDrag(canvasX, canvasY float32) RectHandle",
              "doc": "BeginCameraBoundsDrag starts dragging a resize handle or the body/border of camera.bounds\nin the 2D viewport if scene settings are active, the tool is Select or Move, and\n(canvasX, canvasY) hits camera.bounds. View2D stays anchored at its pre-drag state while\ndragging so clamping changes do not feed back into pointer coordinates.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 829
            },
            {
              "name": "BeginCameraDrag",
              "anchor": "Editor.BeginCameraDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginCameraDrag(canvasX, canvasY float32) bool",
              "doc": "BeginCameraDrag starts dragging the scene camera's position handle in the 2D viewport\nif scene settings are active, the tool is Select or Move, and (canvasX, canvasY) hits\nthe handle. The 2D view stays anchored at its pre-drag state while dragging so the\nhandle moves smoothly under the pointer without feedback loops.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 668
            },
            {
              "name": "BeginCheckpointTurn",
              "anchor": "Editor.BeginCheckpointTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginCheckpointTurn(title string) (string, error)",
              "doc": "BeginCheckpointTurn starts an agent turn checkpoint over the open project. Before the turn first writes\nany file (scene, prefab, data, game.yaml, Go code, or binary media), its original bytes are stored\nunder .nsgo/checkpoints/<id>/. Call EndCheckpointTurn when the turn finishes.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 581
            },
            {
              "name": "BeginCheckpointTurnWith",
              "anchor": "Editor.BeginCheckpointTurnWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginCheckpointTurnWith(opts CheckpointOptions) (string, error)",
              "doc": "BeginCheckpointTurnWith starts a persistent checkpoint turn configured by opts.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 590
            },
            {
              "name": "BeginComponentGizmoDrag3D",
              "anchor": "Editor.BeginComponentGizmoDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginComponentGizmoDrag3D(sx, sy, w, h float32) (PickedComponentGizmo3D, bool)",
              "doc": "BeginComponentGizmoDrag3D hit-tests the selected object's 3D component gizmo handles at (sx, sy)\nand begins dragging the hit handle. Edits made during the drag are previewed live and committed\nas one undo step in Editor.History on EndComponentGizmoDrag3D (or rolled back on CancelComponentGizmoDrag3D).\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 966
            },
            {
              "name": "BeginConnectionPick",
              "anchor": "Editor.BeginConnectionPick",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginConnectionPick(onPick func(targetID string))",
              "doc": "BeginConnectionPick starts viewport and scene-tree target picking for the connections panel: the next object pressed in the 2D viewport, 3D viewport or scene tree is passed to onPick without changing SelectedID. Ignored while playing or when onPick is nil.\n",
              "file": "pkg/editor/connections.go",
              "line": 252
            },
            {
              "name": "BeginDrag2D",
              "anchor": "Editor.BeginDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginDrag2D(x, y float32) GizmoHandle2D",
              "doc": "BeginDrag2D starts a drag in the 2D viewport at the canvas point (x, y), where the pointer went down, with the Select or Move tool: on a handle of the selected object's gizmo (PickGizmo2D) it takes that handle, and on another object it selects that object and moves it. A nested child is dragged in its parent's space, so it follows the pointer under a turned or scaled parent. It returns the handle taken, Handle2DNone when the press is on nothing, another drag is under way, the tool or view mode is another, the scene plays, or the object is hidden or locked in the editor or under one that is. The drag changes the object as UpdateDrag2D says and is recorded by EndDrag2D as one undoable step.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 528
            },
            {
              "name": "BeginEditGeneratedLicense",
              "anchor": "Editor.BeginEditGeneratedLicense",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginEditGeneratedLicense(assetPath string)",
              "doc": "BeginEditGeneratedLicense opens the inline license editor for assetPath without fabricating a license value.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2052
            },
            {
              "name": "BeginFly3D",
              "anchor": "Editor.BeginFly3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginFly3D() bool",
              "doc": "BeginFly3D starts flying the 3D viewport's camera, as holding the right mouse button does: FlyLook3D then turns it about its eye and FlyMove3D moves it, until EndFly3D. Flying looks in perspective, so an orthographic camera switches to perspective, and back when the flight ends without having turned or moved it; and the first flight without a FlySpeed3D sets it to the camera's Distance a second. It reports whether it started: not while playing, and not during a gizmo or camera drag.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 261
            },
            {
              "name": "BeginGizmoDrag3D",
              "anchor": "Editor.BeginGizmoDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginGizmoDrag3D(sx, sy, w, h float32) GizmoAxis3D",
              "doc": "BeginGizmoDrag3D attempts to pick a 3D gizmo handle on the selected object at (sx, sy) and start dragging it.\nReturns the picked GizmoAxis3D (Axis3DNone if no handle was hit).\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 1153
            },
            {
              "name": "BeginGizmoDragAxis3D",
              "anchor": "Editor.BeginGizmoDragAxis3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginGizmoDragAxis3D(axis GizmoAxis3D, sx, sy, w, h float32) bool",
              "doc": "BeginGizmoDragAxis3D begins a 3D gizmo drag constrained to axis starting from viewport pixel (sx, sy).\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 1182
            },
            {
              "name": "BeginGridMapStroke",
              "anchor": "Editor.BeginGridMapStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginGridMapStroke(tool GridMapTool, sx, sy, w, h float32) bool",
              "doc": "BeginGridMapStroke starts an interactive GridMap stroke (Paint, Erase, Pick, or Box Fill) at viewport\npixel (sx, sy) on the current floor height. Call ContinueGridMapStroke as the pointer moves and\nEndGridMapStroke on release to commit the entire stroke as a single undoable History step.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1114
            },
            {
              "name": "BeginHUDTouchDrag",
              "anchor": "Editor.BeginHUDTouchDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginHUDTouchDrag(canvasX, canvasY, canvasW, canvasH float32) bool",
              "doc": "BeginHUDTouchDrag starts dragging a touch control under (canvasX, canvasY) on a touch device preview.\nIt returns true when a touch control was grabbed.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1818
            },
            {
              "name": "BeginHandleDrag3D",
              "anchor": "Editor.BeginHandleDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginHandleDrag3D(sx, sy, w, h float32) Handle3DKind",
              "doc": "BeginHandleDrag3D picks an interactive light/camera handle at (sx, sy) and begins dragging it.\n",
              "file": "pkg/editor/handles3d.go",
              "line": 478
            },
            {
              "name": "BeginHandleDragKind3D",
              "anchor": "Editor.BeginHandleDragKind3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginHandleDragKind3D(kind Handle3DKind, sx, sy, w, h float32) bool",
              "doc": "BeginHandleDragKind3D starts dragging handle kind on the selected object from viewport pixel (sx, sy).\n",
              "file": "pkg/editor/handles3d.go",
              "line": 493
            },
            {
              "name": "BeginImagePivotDrag",
              "anchor": "Editor.BeginImagePivotDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginImagePivotDrag(relPath string, canvasX, canvasY, canvasW, canvasH float32) bool",
              "doc": "BeginImagePivotDrag starts dragging a pivot marker (or clicking inside a cell to place and drag its pivot) on the image import preview canvas for relPath.\nFor a sliced sheet it drags that cell's per-cell pivot override; for an unsliced image it drags the default pivot.\n",
              "file": "pkg/editor/asset_import_pivot.go",
              "line": 253
            },
            {
              "name": "BeginInspectorScrub",
              "anchor": "Editor.BeginInspectorScrub",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginInspectorScrub(spec InspectorScrubField) error",
              "doc": "BeginInspectorScrub starts a live interactive scrub on spec. Updates preview immediately in\nthe scene, EndInspectorScrub records the entire scrub as one undo step, and CancelInspectorScrub\n(or pressing Escape) restores the original value and records nothing.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 744
            },
            {
              "name": "BeginKeyCapture",
              "anchor": "Editor.BeginKeyCapture",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginKeyCapture(action, kind string) error",
              "doc": "BeginKeyCapture enters \"press a key\" capture mode for action. kind must be project.KindKey (or empty, which defaults to KindKey) or project.KindKeyCode.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 507
            },
            {
              "name": "BeginMarquee2D",
              "anchor": "Editor.BeginMarquee2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginMarquee2D(x, y float32) bool",
              "doc": "BeginMarquee2D starts a 2D marquee box selection drag at canvas point (x, y) in enclose mode,\nreplacing the current selection when the drag ends.\n",
              "file": "pkg/editor/marquee.go",
              "line": 61
            },
            {
              "name": "BeginMarquee2DWith",
              "anchor": "Editor.BeginMarquee2DWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginMarquee2DWith(x, y float32, add, toggle bool, mode MarqueeMode) bool",
              "doc": "BeginMarquee2DWith starts a 2D marquee box selection drag at canvas point (x, y).\nWhen add is true (Shift), matched objects are added to the existing selection;\nwhen toggle is true (Mod), matched objects are toggled in the existing selection;\notherwise the marquee replaces the selection. mode chooses enclose vs touch matching.\n",
              "file": "pkg/editor/marquee.go",
              "line": 69
            },
            {
              "name": "BeginNewAutomationDraft",
              "anchor": "Editor.BeginNewAutomationDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginNewAutomationDraft()",
              "doc": "BeginNewAutomationDraft opens the \"+ New automation, in words\" composer in Settings › Automations.\n",
              "file": "pkg/editor/automations.go",
              "line": 747
            },
            {
              "name": "BeginPluginDrag2D",
              "anchor": "Editor.BeginPluginDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginPluginDrag2D(x, y float32) bool",
              "doc": "BeginPluginDrag2D starts a drag on the active plugin tool at canvas coordinates (x, y), returning true if the tool claimed the drag via OnDragBegin.\n",
              "file": "pkg/editor/plugin.go",
              "line": 636
            },
            {
              "name": "BeginPluginDrag3D",
              "anchor": "Editor.BeginPluginDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginPluginDrag3D(sx, sy, w, h float32) bool",
              "doc": "BeginPluginDrag3D starts a drag on the active 3D plugin tool at viewport pixel (sx, sy), returning true if the tool claimed the drag via OnDragBegin3D.\n",
              "file": "pkg/editor/plugin.go",
              "line": 503
            },
            {
              "name": "BeginRegionDrag",
              "anchor": "Editor.BeginRegionDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginRegionDrag(x, y float32)",
              "doc": "BeginRegionDrag begins dragging, resizing, or drawing a touch/mouse region at virtual display coordinates (x, y).\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 745
            },
            {
              "name": "BeginReview",
              "anchor": "Editor.BeginReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginReview()",
              "doc": "BeginReview marks an interactive edit review as open so automatic saving pauses until EndReview or KeepReview is called.\n",
              "file": "pkg/editor/autosave.go",
              "line": 179
            },
            {
              "name": "BeginReviewYAMLEdit",
              "anchor": "Editor.BeginReviewYAMLEdit",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginReviewYAMLEdit(changeID string) error",
              "doc": "BeginReviewYAMLEdit switches the review's right YAML pane into in-place editing for an added or changed scene object.\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 325
            },
            {
              "name": "BeginRigDrag",
              "anchor": "Editor.BeginRigDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginRigDrag(x, y float32) RigHandle",
              "doc": "BeginRigDrag begins dragging a rig handle at rig canvas point (x, y).\nIf no handle of the current selection is hit, pressing on another bone selects it and starts moving it.\nPass a handle directly via BeginRigHandleDrag to test or force a specific handle (such as RigHandleAttachmentOrigin when overlapping a bone joint).\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 349
            },
            {
              "name": "BeginRigHandleDrag",
              "anchor": "Editor.BeginRigHandleDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginRigHandleDrag(h RigHandle, x, y float32) RigHandle",
              "doc": "BeginRigHandleDrag begins dragging a specific handle h at rig canvas point (x, y),\nuseful when the attachment origin handle sits on top of the selected bone's joint.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 367
            },
            {
              "name": "BeginRoomDrag",
              "anchor": "Editor.BeginRoomDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginRoomDrag(canvasX, canvasY float32) bool",
              "doc": "BeginRoomDrag starts dragging a room handle, moving a room, or drawing a new room (when\nRoomCreateMode is active) in the 2D viewport.\n",
              "file": "pkg/editor/rooms.go",
              "line": 975
            },
            {
              "name": "BeginShapeDrag2D",
              "anchor": "Editor.BeginShapeDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginShapeDrag2D(x, y float32) (ShapeHandle2D, bool)",
              "doc": "BeginShapeDrag2D starts dragging a component shape handle at canvas point (x, y).\nDragging a polygon edge midpoint inserts a new vertex at that edge and drags it as a single undoable SetComponentField step.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 522
            },
            {
              "name": "BeginSketchDrag",
              "anchor": "Editor.BeginSketchDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginSketchDrag(canvasX, canvasY float32) bool",
              "doc": "BeginSketchDrag starts drawing a sketch mark from canvas point (canvasX, canvasY) using the active sketch tool.\nCoordinates are converted immediately via CanvasToWorld so all stored geometry is in scene coordinates.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1036
            },
            {
              "name": "BeginTerrainStroke",
              "anchor": "Editor.BeginTerrainStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginTerrainStroke(worldX, worldZ float32) bool",
              "doc": "BeginTerrainStroke starts a brush stroke at world coordinates (worldX, worldZ)\nusing the active TerrainBrush, applying the initial dab immediately.\nContinueTerrainStroke extends the stroke along pointer movement, and\nEndTerrainStroke commits the entire stroke as one undo step in History.\n",
              "file": "pkg/editor/terrain.go",
              "line": 1034
            },
            {
              "name": "BeginTerrainStrokeAt",
              "anchor": "Editor.BeginTerrainStrokeAt",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginTerrainStrokeAt(sx, sy, w, h float32) bool",
              "doc": "BeginTerrainStrokeAt raycasts pixel (sx, sy) against the open terrain in the\n3D viewport and starts a brush stroke at the hit point.\n",
              "file": "pkg/editor/terrain.go",
              "line": 1535
            },
            {
              "name": "BeginTileStroke",
              "anchor": "Editor.BeginTileStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginTileStroke(mode TileStrokeMode, x, y float32) bool",
              "doc": "BeginTileStroke starts a stroke of mode on the active layer's inline tilemap at the canvas point (x, y).\nFreehand Paint, Erase, and Terrain strokes apply live; Rect, Line, Stamp, Random and SelectRegion accumulate a live preview\n(TilePreview) without mutating the document until EndTileStroke records every changed cell as one undo step.\nCancelTileStroke discards the preview or restores live-painted cells without recording history.\n\nIt returns false and starts nothing while playing, in 3D, while another stroke is under way, for non-finite coordinates, when the active layer has no inline tilemap to edit, for an edit stroke on a locked or hidden layer (reporting why in the status bar), for a terrain stroke without a valid terrain set, and when required tile/stamp/random parameters are invalid.\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 132
            },
            {
              "name": "BeginViewport3DDrag",
              "anchor": "Editor.BeginViewport3DDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) BeginViewport3DDrag(sx, sy, w, h float32, pan bool)",
              "doc": "BeginViewport3DDrag starts a terrain brush stroke (if a terrain brush is active and hits the terrain and !pan), an active 3D plugin tool drag (if OnDragBegin3D claims it and !pan), a light/camera handle drag, a 3D component gizmo handle drag, a 3D transform gizmo drag, or a camera orbit/pan drag. It does nothing while the camera flies (BeginFly3D).\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 2059
            },
            {
              "name": "BlockedPermissions",
              "anchor": "Editor.BlockedPermissions",
              "recv": "*Editor",
              "decl": "func (e *Editor) BlockedPermissions() []BlockedPermissionStep",
              "doc": "BlockedPermissions returns the recorded blocked permission steps in chronological order.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1624
            },
            {
              "name": "Brief",
              "anchor": "Editor.Brief",
              "recv": "*Editor",
              "decl": "func (e *Editor) Brief() *project.Brief",
              "doc": "Brief returns a deep copy of the project's brief.yaml document, or nil when no brief exists yet.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 276
            },
            {
              "name": "BriefAgentNote",
              "anchor": "Editor.BriefAgentNote",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefAgentNote() (note string, suggestions []string)",
              "doc": "BriefAgentNote computes the contextual note and suggested asks for the \"Agent on this page\" card\non Settings › Game brief.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1608
            },
            {
              "name": "BriefDirty",
              "anchor": "Editor.BriefDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefDirty() bool",
              "doc": "BriefDirty reports whether the in-memory game brief differs from the last saved canonical brief.yaml bytes.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 305
            },
            {
              "name": "BriefExists",
              "anchor": "Editor.BriefExists",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefExists() bool",
              "doc": "BriefExists reports whether the open project has a game brief (loaded from brief.yaml or created in the editor).\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 284
            },
            {
              "name": "BriefFileExists",
              "anchor": "Editor.BriefFileExists",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefFileExists() bool",
              "doc": "BriefFileExists reports whether brief.yaml exists as a regular confined file at the open project root.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 854
            },
            {
              "name": "BriefGaps",
              "anchor": "Editor.BriefGaps",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefGaps() []project.BriefSection",
              "doc": "BriefGaps returns the missing sections of brief.yaml in canonical order.\nWhen no brief exists yet, every section in project.BriefSections is returned.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 323
            },
            {
              "name": "BriefLoadErr",
              "anchor": "Editor.BriefLoadErr",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefLoadErr() error",
              "doc": "BriefLoadErr returns any parse error encountered when loading brief.yaml from disk.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 297
            },
            {
              "name": "BriefPath",
              "anchor": "Editor.BriefPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefPath() string",
              "doc": "BriefPath returns the path to brief.yaml in the open project, or empty when no project is open.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 289
            },
            {
              "name": "BriefPlaytestTargets",
              "anchor": "Editor.BriefPlaytestTargets",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefPlaytestTargets(scene string) []project.BriefPlaytestTarget",
              "doc": "BriefPlaytestTargets returns the structured playtest targets defined in brief.yaml for scene\n(empty scene returns all targets).\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 332
            },
            {
              "name": "BriefReferenceImages",
              "anchor": "Editor.BriefReferenceImages",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefReferenceImages() []AgentReferenceImage",
              "doc": "BriefReferenceImages loads and validates all pinned PNG/JPEG/WebP reference images listed in brief.yaml.\nValid images are cached by file modtime and size so repeated UI renders do not re-decode from disk.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 939
            },
            {
              "name": "BriefReferences",
              "anchor": "Editor.BriefReferences",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefReferences() []BriefReference",
              "doc": "BriefReferences reads the list of pinned reference images under art.references in <projectRoot>/brief.yaml.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 860
            },
            {
              "name": "BriefYAML",
              "anchor": "Editor.BriefYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) BriefYAML() ([]byte, error)",
              "doc": "BriefYAML returns the canonical YAML encoding of the current brief, or nil when no brief exists.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 314
            },
            {
              "name": "BrowseAndOpenProject",
              "anchor": "Editor.BrowseAndOpenProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) BrowseAndOpenProject() error",
              "doc": "BrowseAndOpenProject opens the folder picker and switches to the chosen project (asking about unsaved edits first).\n",
              "file": "pkg/editor/start_screen.go",
              "line": 1147
            },
            {
              "name": "BrowseStartProjectParentDir",
              "anchor": "Editor.BrowseStartProjectParentDir",
              "recv": "*Editor",
              "decl": "func (e *Editor) BrowseStartProjectParentDir() error",
              "doc": "BrowseStartProjectParentDir opens the folder picker to choose the parent directory for a new project.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 1167
            },
            {
              "name": "BuildAgentTaskNotification",
              "anchor": "Editor.BuildAgentTaskNotification",
              "recv": "*Editor",
              "decl": "func (e *Editor) BuildAgentTaskNotification(task AgentTask) (AgentTaskNotification, bool)",
              "doc": "BuildAgentTaskNotification builds the system notification for task when task.State is one\nof the three notifiable states (TaskNeedsYou, TaskReadyToReview, or TaskFailed).\nIt returns (_, false) for running, queued, stopped, done, dismissed, or empty-ID tasks.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 367
            },
            {
              "name": "BuildAssets",
              "anchor": "Editor.BuildAssets",
              "recv": "*Editor",
              "decl": "func (e *Editor) BuildAssets() error",
              "doc": "BuildAssets runs `go tool game assets` for the open project off the UI goroutine, streaming stdout and stderr into the Output panel, and reloads changed atlases and textures once the build succeeds.\n",
              "file": "pkg/editor/asset_build.go",
              "line": 158
            },
            {
              "name": "BuildAssetsWith",
              "anchor": "Editor.BuildAssetsWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) BuildAssetsWith(opts AssetsBuildOptions) error",
              "doc": "BuildAssetsWith runs `go tool game assets` with opts for the open project off the UI goroutine, streaming stdout and stderr into the Output panel, and reloads changed atlases and textures once the build succeeds.\n",
              "file": "pkg/editor/asset_build.go",
              "line": 163
            },
            {
              "name": "BuildInputActions",
              "anchor": "Editor.BuildInputActions",
              "recv": "*Editor",
              "decl": "func (e *Editor) BuildInputActions() *input.Actions",
              "doc": "BuildInputActions builds a fresh input.Actions populated from the open project's input map via project.File.BindInput.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 153
            },
            {
              "name": "BuildPRDescription",
              "anchor": "Editor.BuildPRDescription",
              "recv": "*Editor",
              "decl": "func (e *Editor) BuildPRDescription() string",
              "doc": "BuildPRDescription formats a structured Markdown pull request description from the active Changes session\n(summary, plan/description, changed files & scene object deltas, verification checks, and playtest numbers).\n",
              "file": "pkg/editor/changes.go",
              "line": 3020
            },
            {
              "name": "BuildReleaseScreenOpen",
              "anchor": "Editor.BuildReleaseScreenOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) BuildReleaseScreenOpen() bool",
              "doc": "BuildReleaseScreenOpen reports whether the full-window Build and Release screen is open.\n",
              "file": "pkg/editor/build_release.go",
              "line": 395
            },
            {
              "name": "BuildReleaseSnapshot",
              "anchor": "Editor.BuildReleaseSnapshot",
              "recv": "*Editor",
              "decl": "func (e *Editor) BuildReleaseSnapshot() BuildReleaseSnapshot",
              "doc": "BuildReleaseSnapshot returns a thread-safe deep snapshot of the Build and Release screen state.\n",
              "file": "pkg/editor/build_release.go",
              "line": 517
            },
            {
              "name": "BuiltInAgentProvider",
              "anchor": "Editor.BuiltInAgentProvider",
              "recv": "*Editor",
              "decl": "func (e *Editor) BuiltInAgentProvider() string",
              "doc": "BuiltInAgentProvider returns the display label for the built-in API connection (default \"Anthropic API\").\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 795
            },
            {
              "name": "BurstParticlePreview",
              "anchor": "Editor.BurstParticlePreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) BurstParticlePreview(count int)",
              "doc": "BurstParticlePreview emits count particles immediately into the live preview emitter.\n",
              "file": "pkg/editor/particles.go",
              "line": 722
            },
            {
              "name": "CallWebBridgeTool",
              "anchor": "Editor.CallWebBridgeTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) CallWebBridgeTool(ctx context.Context, sessionID, toolName string, args any) (json.RawMessage, error)",
              "doc": "CallWebBridgeTool dispatches an MCP inspection/debug tool call to a connected web Play-mode client\n(such as a phone that scanned the QR code) and waits for its JSON reply.\n",
              "file": "pkg/editor/build_device.go",
              "line": 1189
            },
            {
              "name": "CameraBoundsHandleCanvasPos",
              "anchor": "Editor.CameraBoundsHandleCanvasPos",
              "recv": "*Editor",
              "decl": "func (e *Editor) CameraBoundsHandleCanvasPos(h RectHandle) (x, y float32, ok bool)",
              "doc": "CameraBoundsHandleCanvasPos returns the canvas coordinates of handle h on the scene\ncamera's bounds rectangle when scene settings are active, bounds are set, and the\neditor is in 2D edit mode.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 779
            },
            {
              "name": "CameraHandleCanvasPos",
              "anchor": "Editor.CameraHandleCanvasPos",
              "recv": "*Editor",
              "decl": "func (e *Editor) CameraHandleCanvasPos() (x, y float32, ok bool)",
              "doc": "CameraHandleCanvasPos returns the canvas coordinates of the draggable camera position\nhandle when scene settings are active in 2D edit mode.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 645
            },
            {
              "name": "CanApprovePlan",
              "anchor": "Editor.CanApprovePlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanApprovePlan() (bool, string)",
              "doc": "CanApprovePlan reports whether Approve is currently enabled and why not when disabled.\n",
              "file": "pkg/editor/plan.go",
              "line": 1487
            },
            {
              "name": "CanAutoMoveFocus",
              "anchor": "Editor.CanAutoMoveFocus",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanAutoMoveFocus() bool",
              "doc": "CanAutoMoveFocus reports whether background UI activity is allowed to move focus\n(false during any drag/scrub or while the person is typing in a text field).\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 814
            },
            {
              "name": "CanConfirmCodeReviewFile",
              "anchor": "Editor.CanConfirmCodeReviewFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanConfirmCodeReviewFile(relPath string) bool",
              "doc": "CanConfirmCodeReviewFile reports whether relPath is a Go file whose checks have passed for the current pending code.\n",
              "file": "pkg/editor/code_review.go",
              "line": 976
            },
            {
              "name": "CanDeleteFirstRunFolder",
              "anchor": "Editor.CanDeleteFirstRunFolder",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanDeleteFirstRunFolder() bool",
              "doc": "CanDeleteFirstRunFolder reports whether \"Stop and delete the folder\" is permitted right now:\nONLY true when this flow itself created a brand-new folder after Approve.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2147
            },
            {
              "name": "CanPasteObject",
              "anchor": "Editor.CanPasteObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanPasteObject() bool",
              "doc": "CanPasteObject reports whether PasteObject has an object YAML payload available from either the\neditor's clipboard cache or an injectable ReadClipboard hook.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 248
            },
            {
              "name": "CanRedoAgentRewind",
              "anchor": "Editor.CanRedoAgentRewind",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanRedoAgentRewind() bool",
              "doc": "CanRedoAgentRewind reports whether a rewound turn can currently be restored with RedoAgentRewind.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 526
            },
            {
              "name": "CanReturnToEditor",
              "anchor": "Editor.CanReturnToEditor",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanReturnToEditor() bool",
              "doc": "CanReturnToEditor reports whether the user can dismiss the Start Screen and return to an open project or demo session.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 294
            },
            {
              "name": "CanUndoLastBriefPin",
              "anchor": "Editor.CanUndoLastBriefPin",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanUndoLastBriefPin() bool",
              "doc": "CanUndoLastBriefPin reports whether the most recent Pin to brief command is currently at the top\nof Editor.History and can be undone safely without reverting unrelated later edits.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 1124
            },
            {
              "name": "CanUndoSketchMark",
              "anchor": "Editor.CanUndoSketchMark",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanUndoSketchMark() bool",
              "doc": "CanUndoSketchMark reports whether the sketch layer has a previous mark state to undo.\n",
              "file": "pkg/editor/sketch.go",
              "line": 959
            },
            {
              "name": "CancelAgentPointing",
              "anchor": "Editor.CancelAgentPointing",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelAgentPointing() bool",
              "doc": "CancelAgentPointing exits viewport pointing mode cleanly (invoked on Esc).\n",
              "file": "pkg/editor/agent_states.go",
              "line": 810
            },
            {
              "name": "CancelAgentReconnect",
              "anchor": "Editor.CancelAgentReconnect",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelAgentReconnect()",
              "doc": "CancelAgentReconnect stops any pending reconnect backoff timer without changing the current status.\n",
              "file": "pkg/editor/agent.go",
              "line": 596
            },
            {
              "name": "CancelAssetDrag",
              "anchor": "Editor.CancelAssetDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelAssetDrag()",
              "doc": "CancelAssetDrag cancels any in-progress sprite drag cleanly without mutating the scene.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1885
            },
            {
              "name": "CancelAssetsBuild",
              "anchor": "Editor.CancelAssetsBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelAssetsBuild()",
              "doc": "CancelAssetsBuild cancels an in-flight BuildAssets or ReimportAsset run, if any.\n",
              "file": "pkg/editor/asset_build.go",
              "line": 131
            },
            {
              "name": "CancelCameraBoundsDrag",
              "anchor": "Editor.CancelCameraBoundsDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelCameraBoundsDrag()",
              "doc": "CancelCameraBoundsDrag aborts any active camera.bounds handle drag and restores the\npre-drag camera bounds without modifying History.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 947
            },
            {
              "name": "CancelCameraDrag",
              "anchor": "Editor.CancelCameraDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelCameraDrag()",
              "doc": "CancelCameraDrag aborts any active camera handle drag and restores the pre-drag camera.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 763
            },
            {
              "name": "CancelComponentGizmoDrag3D",
              "anchor": "Editor.CancelComponentGizmoDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelComponentGizmoDrag3D() bool",
              "doc": "CancelComponentGizmoDrag3D aborts an active 3D component gizmo drag, rolling back all previewed\nedits and recording nothing in Editor.History.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 1147
            },
            {
              "name": "CancelConnectionPick",
              "anchor": "Editor.CancelConnectionPick",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelConnectionPick()",
              "doc": "CancelConnectionPick exits connection target pick mode without selecting a target.\n",
              "file": "pkg/editor/connections.go",
              "line": 276
            },
            {
              "name": "CancelDrag2D",
              "anchor": "Editor.CancelDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelDrag2D() bool",
              "doc": "CancelDrag2D ends the drag in progress, as Escape or a cancelled gesture does, putting the object back as it was before the drag and recording nothing. It reports false when no drag is under way.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 1275
            },
            {
              "name": "CancelEditGeneratedLicense",
              "anchor": "Editor.CancelEditGeneratedLicense",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelEditGeneratedLicense()",
              "doc": "CancelEditGeneratedLicense closes the inline license editor without writing anything.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2082
            },
            {
              "name": "CancelExportBuild",
              "anchor": "Editor.CancelExportBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelExportBuild()",
              "doc": "CancelExportBuild cancels an in-flight release build, if any.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 1077
            },
            {
              "name": "CancelGizmoDrag3D",
              "anchor": "Editor.CancelGizmoDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelGizmoDrag3D()",
              "doc": "CancelGizmoDrag3D aborts any active 3D gizmo or light/camera handle drag and restores the object's pre-drag state.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 1947
            },
            {
              "name": "CancelGridMapStroke",
              "anchor": "Editor.CancelGridMapStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelGridMapStroke()",
              "doc": "CancelGridMapStroke aborts an active GridMap stroke and restores every cell it modified without recording history.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1245
            },
            {
              "name": "CancelHUDTouchDrag",
              "anchor": "Editor.CancelHUDTouchDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelHUDTouchDrag()",
              "doc": "CancelHUDTouchDrag aborts an active touch control drag and restores the node's original offset without recording undo history.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1981
            },
            {
              "name": "CancelHandleDrag3D",
              "anchor": "Editor.CancelHandleDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelHandleDrag3D()",
              "doc": "CancelHandleDrag3D aborts any active light/camera/probe handle drag and restores the pre-drag values.\n",
              "file": "pkg/editor/handles3d.go",
              "line": 896
            },
            {
              "name": "CancelImagePivotDrag",
              "anchor": "Editor.CancelImagePivotDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelImagePivotDrag()",
              "doc": "CancelImagePivotDrag aborts an active pivot drag without modifying the sidecar or History.\n",
              "file": "pkg/editor/asset_import_pivot.go",
              "line": 498
            },
            {
              "name": "CancelInspectorScrub",
              "anchor": "Editor.CancelInspectorScrub",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelInspectorScrub() bool",
              "doc": "CancelInspectorScrub aborts the active scrub, restoring the original pre-scrub value without\nrecording an undo step. It returns false when no scrub is active.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 918
            },
            {
              "name": "CancelKeyCapture",
              "anchor": "Editor.CancelKeyCapture",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelKeyCapture()",
              "doc": "CancelKeyCapture exits \"press a key\" capture mode without modifying the project.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 539
            },
            {
              "name": "CancelMarquee2D",
              "anchor": "Editor.CancelMarquee2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelMarquee2D() bool",
              "doc": "CancelMarquee2D aborts an active 2D marquee drag without changing the selection.\n",
              "file": "pkg/editor/marquee.go",
              "line": 115
            },
            {
              "name": "CancelNewAutomationDraft",
              "anchor": "Editor.CancelNewAutomationDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelNewAutomationDraft()",
              "doc": "CancelNewAutomationDraft closes and clears the pending \"+ New automation, in words\" draft.\n",
              "file": "pkg/editor/automations.go",
              "line": 775
            },
            {
              "name": "CancelPendingAgentPermissionAsk",
              "anchor": "Editor.CancelPendingAgentPermissionAsk",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelPendingAgentPermissionAsk(askID string)",
              "doc": "CancelPendingAgentPermissionAsk dismisses the open permission card if its ID still matches askID\n(used when an MCP client cancels or disconnects while waiting on a permission card).\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 606
            },
            {
              "name": "CancelPendingSwitch",
              "anchor": "Editor.CancelPendingSwitch",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelPendingSwitch()",
              "doc": "CancelPendingSwitch closes the unsaved-edits prompt without switching projects.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 1108
            },
            {
              "name": "CancelPendingTurnPrompt",
              "anchor": "Editor.CancelPendingTurnPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelPendingTurnPrompt()",
              "doc": "CancelPendingTurnPrompt dismisses the pending-turn prompt and leaves the turn pending.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 2405
            },
            {
              "name": "CancelPluginDrag2D",
              "anchor": "Editor.CancelPluginDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelPluginDrag2D() bool",
              "doc": "CancelPluginDrag2D aborts an active plugin tool drag, calling OnDragCancel when set.\n",
              "file": "pkg/editor/plugin.go",
              "line": 692
            },
            {
              "name": "CancelPluginDrag3D",
              "anchor": "Editor.CancelPluginDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelPluginDrag3D() bool",
              "doc": "CancelPluginDrag3D aborts an active 3D plugin tool drag, calling OnDragCancel3D when set.\n",
              "file": "pkg/editor/plugin.go",
              "line": 582
            },
            {
              "name": "CancelReleaseUpload",
              "anchor": "Editor.CancelReleaseUpload",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelReleaseUpload()",
              "doc": "CancelReleaseUpload cancels any in-flight store upload batch.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 1101
            },
            {
              "name": "CancelReviewNoteComposer",
              "anchor": "Editor.CancelReviewNoteComposer",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelReviewNoteComposer()",
              "doc": "CancelReviewNoteComposer closes the inline note composer without modifying any saved note.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 444
            },
            {
              "name": "CancelReviewRevertAllDialog",
              "anchor": "Editor.CancelReviewRevertAllDialog",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelReviewRevertAllDialog()",
              "doc": "CancelReviewRevertAllDialog closes the Revert All confirmation dialog without reverting.\n",
              "file": "pkg/editor/review.go",
              "line": 3293
            },
            {
              "name": "CancelRigDrag",
              "anchor": "Editor.CancelRigDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelRigDrag() bool",
              "doc": "CancelRigDrag aborts the active rig handle drag and restores the rig to its pre-drag state without recording history.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 637
            },
            {
              "name": "CancelRoomDrag",
              "anchor": "Editor.CancelRoomDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelRoomDrag()",
              "doc": "CancelRoomDrag aborts any active room drag or room-create drag and restores the pre-drag room.\n",
              "file": "pkg/editor/rooms.go",
              "line": 1163
            },
            {
              "name": "CancelSafeRename",
              "anchor": "Editor.CancelSafeRename",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelSafeRename()",
              "doc": "CancelSafeRename leaves safe-rename review mode without modifying any file on disk.\n",
              "file": "pkg/editor/usages.go",
              "line": 627
            },
            {
              "name": "CancelSaveConflict",
              "anchor": "Editor.CancelSaveConflict",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelSaveConflict()",
              "doc": "CancelSaveConflict dismisses the save-conflict confirmation prompt without overwriting the file on disk.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1460
            },
            {
              "name": "CancelShapeDrag2D",
              "anchor": "Editor.CancelShapeDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelShapeDrag2D() bool",
              "doc": "CancelShapeDrag2D aborts any active shape handle drag, restoring the pre-drag component value and recording nothing.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 769
            },
            {
              "name": "CancelSketchDrag",
              "anchor": "Editor.CancelSketchDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelSketchDrag()",
              "doc": "CancelSketchDrag cancels an in-progress sketch mark drag without creating a mark.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1136
            },
            {
              "name": "CancelTerrainStroke",
              "anchor": "Editor.CancelTerrainStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelTerrainStroke()",
              "doc": "CancelTerrainStroke aborts the active terrain brush stroke and restores all\nmodified samples without recording a History entry.\n",
              "file": "pkg/editor/terrain.go",
              "line": 1208
            },
            {
              "name": "CancelTileStroke",
              "anchor": "Editor.CancelTileStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelTileStroke()",
              "doc": "CancelTileStroke ends the stroke under way without recording it, discarding any live preview or putting back every cell a live stroke changed, as on Escape or when a second finger turns a one-finger stroke into a two-finger pan. It does nothing when no stroke is under way.\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 377
            },
            {
              "name": "CancelViewport3DDrag",
              "anchor": "Editor.CancelViewport3DDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) CancelViewport3DDrag()",
              "doc": "CancelViewport3DDrag aborts any active 3D drag (terrain stroke, 3D handle drag, 3D plugin tool drag, 3D component gizmo drag, 3D transform gizmo drag, or camera drag).\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 2170
            },
            {
              "name": "CanvasSize",
              "anchor": "Editor.CanvasSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanvasSize() (float32, float32)",
              "doc": "CanvasSize returns the size in points of the viewport's canvas, which fills its panel. The viewport sets it as it lays out (SetCanvasSize); until then it is the scene's virtual size (ViewportSize).\n",
              "file": "pkg/editor/view2d.go",
              "line": 33
            },
            {
              "name": "CanvasSizeRevision",
              "anchor": "Editor.CanvasSizeRevision",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanvasSizeRevision() uint64",
              "doc": "CanvasSizeRevision returns a counter incremented whenever the viewport canvas dimensions change.\n",
              "file": "pkg/editor/view2d.go",
              "line": 53
            },
            {
              "name": "CanvasToScreen",
              "anchor": "Editor.CanvasToScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanvasToScreen(x, y float32) (float32, float32)",
              "doc": "CanvasToScreen converts a point on the viewport's canvas into the scene's virtual screen, the space screen-space layers draw in, through the 2D view and back out through the scene's camera.\n",
              "file": "pkg/editor/viewport.go",
              "line": 64
            },
            {
              "name": "CanvasToTile",
              "anchor": "Editor.CanvasToTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanvasToTile(layer string, canvasX, canvasY float32) (col, row int, ok bool)",
              "doc": "CanvasToTile converts a point on the viewport's canvas into (col, row) on layer's inline tilemap.\n",
              "file": "pkg/editor/viewport.go",
              "line": 148
            },
            {
              "name": "CanvasToWorld",
              "anchor": "Editor.CanvasToWorld",
              "recv": "*Editor",
              "decl": "func (e *Editor) CanvasToWorld(x, y float32) (float32, float32)",
              "doc": "CanvasToWorld converts a point on the viewport's canvas into world coordinates through the 2D view (View2D), which the author pans and zooms independently of the scene's camera.\n",
              "file": "pkg/editor/viewport.go",
              "line": 29
            },
            {
              "name": "CaptureKeyAction",
              "anchor": "Editor.CaptureKeyAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) CaptureKeyAction() string",
              "doc": "CaptureKeyAction returns the action name waiting for a captured key, or empty when not capturing.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 491
            },
            {
              "name": "CaptureKeyEvent",
              "anchor": "Editor.CaptureKeyEvent",
              "recv": "*Editor",
              "decl": "func (e *Editor) CaptureKeyEvent(ev core.KeyEvent) (bool, error)",
              "doc": "CaptureKeyEvent handles a hardware key press while key capture is active, adding the captured key or keyCode binding to the target action through EditProject and ending capture mode.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 551
            },
            {
              "name": "CaptureKeyKind",
              "anchor": "Editor.CaptureKeyKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) CaptureKeyKind() string",
              "doc": "CaptureKeyKind returns the binding kind being captured (\"key\" or \"keyCode\"), or empty when not capturing.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 499
            },
            {
              "name": "CapturingKey",
              "anchor": "Editor.CapturingKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) CapturingKey() bool",
              "doc": "CapturingKey reports whether the Input Map panel is waiting for a key press to bind.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 486
            },
            {
              "name": "Catalog",
              "anchor": "Editor.Catalog",
              "recv": "*Editor",
              "decl": "func (e *Editor) Catalog() *l10n.Catalog",
              "doc": "Catalog returns the editor's active localization catalog.\n",
              "file": "pkg/editor/i18n.go",
              "line": 48
            },
            {
              "name": "ChangesAuditioningPath",
              "anchor": "Editor.ChangesAuditioningPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) ChangesAuditioningPath() string",
              "doc": "ChangesAuditioningPath returns the repo-relative path of the audio file currently auditioning in the Changes panel, or empty when idle.\n",
              "file": "pkg/editor/changes.go",
              "line": 412
            },
            {
              "name": "ChangesBusy",
              "anchor": "Editor.ChangesBusy",
              "recv": "*Editor",
              "decl": "func (e *Editor) ChangesBusy() bool",
              "doc": "ChangesBusy reports whether an asynchronous Changes operation (checks, pull, push, or PR creation) is running.\n",
              "file": "pkg/editor/changes.go",
              "line": 296
            },
            {
              "name": "ChangesBusyLabel",
              "anchor": "Editor.ChangesBusyLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) ChangesBusyLabel() string",
              "doc": "ChangesBusyLabel returns a short status label for the currently running asynchronous Changes operation, or empty when idle.\n",
              "file": "pkg/editor/changes.go",
              "line": 307
            },
            {
              "name": "ChangesCount",
              "anchor": "Editor.ChangesCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ChangesCount() int",
              "doc": "ChangesCount returns the last observed number of changed working-tree files in the open project's Git repository.\n",
              "file": "pkg/editor/changes.go",
              "line": 401
            },
            {
              "name": "ChangesGHAvailable",
              "anchor": "Editor.ChangesGHAvailable",
              "recv": "*Editor",
              "decl": "func (e *Editor) ChangesGHAvailable() bool",
              "doc": "ChangesGHAvailable reports whether the GitHub CLI (`gh`) is available (or Editor.GHRunner is injected),\nusing the cached value from the active session when open.\n",
              "file": "pkg/editor/changes.go",
              "line": 3148
            },
            {
              "name": "ChangesOpen",
              "anchor": "Editor.ChangesOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ChangesOpen() bool",
              "doc": "ChangesOpen reports whether the Changes & Commit screen is currently active.\n",
              "file": "pkg/editor/changes.go",
              "line": 388
            },
            {
              "name": "ChangesSession",
              "anchor": "Editor.ChangesSession",
              "recv": "*Editor",
              "decl": "func (e *Editor) ChangesSession() *ChangesSession",
              "doc": "ChangesSession returns the active Changes & Commit session, or nil when closed.\n",
              "file": "pkg/editor/changes.go",
              "line": 393
            },
            {
              "name": "CheckAgentUsageReset",
              "anchor": "Editor.CheckAgentUsageReset",
              "recv": "*Editor",
              "decl": "func (e *Editor) CheckAgentUsageReset()",
              "doc": "CheckAgentUsageReset checks whether the weekly reset boundary has passed and clears Limit reached if so.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 401
            },
            {
              "name": "CheckAutomationActionPermission",
              "anchor": "Editor.CheckAutomationActionPermission",
              "recv": "*Editor",
              "decl": "func (e *Editor) CheckAutomationActionPermission(action, targetPath string) AgentPermissionDecision",
              "doc": "CheckAutomationActionPermission evaluates action (e.g. \"Edit\", \"Create\", \"Run\", \"Code\", \"Delete\") and targetPath\nagainst the project's You-only trust boundary and active MCP permission rules (permissions.yaml, first match wins).\n",
              "file": "pkg/editor/automations.go",
              "line": 1371
            },
            {
              "name": "CheckExportCredits",
              "anchor": "Editor.CheckExportCredits",
              "recv": "*Editor",
              "decl": "func (e *Editor) CheckExportCredits() ExportCreditsReport",
              "doc": "CheckExportCredits runs the same credits check as `game release` against the open project's assets section, caches the result for the Export panel, and returns it.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 652
            },
            {
              "name": "CheckProblems",
              "anchor": "Editor.CheckProblems",
              "recv": "*Editor",
              "decl": "func (e *Editor) CheckProblems()",
              "doc": "CheckProblems runs assetcheck.CheckWith (using the editor's component registry\nand any unsaved open documents) and project.Check over the open project\nasynchronously off the UI goroutine. Each call supersedes any in-flight or\npending debounced check so stale results never overwrite newer ones. It is a\nno-op when no project is open.\n",
              "file": "pkg/editor/problems.go",
              "line": 176
            },
            {
              "name": "CheckYouOnlyTarget",
              "anchor": "Editor.CheckYouOnlyTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) CheckYouOnlyTarget(rawPath string) (YouOnlyDomain, bool)",
              "doc": "CheckYouOnlyTarget reports whether rawPath (relative to the project root or absolute) resolves to a You-only file,\nincluding Editor.SettingsPath, case-insensitive host aliases, macOS /var -> /private/var, and symlinked ancestor directories.\n",
              "file": "pkg/editor/you_only.go",
              "line": 153
            },
            {
              "name": "CheckingProblems",
              "anchor": "Editor.CheckingProblems",
              "recv": "*Editor",
              "decl": "func (e *Editor) CheckingProblems() bool",
              "doc": "CheckingProblems reports whether a background or debounced project check is\nin flight. It is safe to call from any goroutine.\n",
              "file": "pkg/editor/problems.go",
              "line": 480
            },
            {
              "name": "CheckpointFileBytes",
              "anchor": "Editor.CheckpointFileBytes",
              "recv": "*Editor",
              "decl": "func (e *Editor) CheckpointFileBytes(id, relPath string) ([]byte, bool, error)",
              "doc": "CheckpointFileBytes returns the saved pre-turn bytes of relPath from checkpoint id, whether it\nexisted before the turn, and any error (including size or SHA-256 mismatch).\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1295
            },
            {
              "name": "CheckpointManifest",
              "anchor": "Editor.CheckpointManifest",
              "recv": "*Editor",
              "decl": "func (e *Editor) CheckpointManifest(id string) (*CheckpointManifest, error)",
              "doc": "CheckpointManifest loads and validates the manifest of checkpoint id from .nsgo/checkpoints/<id>/manifest.yaml.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1257
            },
            {
              "name": "Checkpoints",
              "anchor": "Editor.Checkpoints",
              "recv": "*Editor",
              "decl": "func (e *Editor) Checkpoints() []CheckpointSummary",
              "doc": "Checkpoints returns the open project's persisted checkpoints, newest first.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1244
            },
            {
              "name": "CheckpointsDir",
              "anchor": "Editor.CheckpointsDir",
              "recv": "*Editor",
              "decl": "func (e *Editor) CheckpointsDir() string",
              "doc": "CheckpointsDir returns the OS path to the open project's .nsgo/checkpoints directory, or \"\" without a project.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 505
            },
            {
              "name": "ChipPayloadByID",
              "anchor": "Editor.ChipPayloadByID",
              "recv": "*Editor",
              "decl": "func (e *Editor) ChipPayloadByID(chipID string) (AgentChipPayload, bool)",
              "doc": "ChipPayloadByID finds chipID among attached, always, viewport image, or suggested chips and\nresolves its exact payload via ResolveChipPayload.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1615
            },
            {
              "name": "ClearAgentAttachedImages",
              "anchor": "Editor.ClearAgentAttachedImages",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearAgentAttachedImages()",
              "doc": "ClearAgentAttachedImages removes all one-shot reference image attachments from the current composer draft.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 790
            },
            {
              "name": "ClearAgentTasks",
              "anchor": "Editor.ClearAgentTasks",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearAgentTasks()",
              "doc": "ClearAgentTasks clears ephemeral Agent panel turn notifications, cancels waiting timers,\ncloses shown task notifications, and updates the Dock badge.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 647
            },
            {
              "name": "ClearAgentWaitingForYou",
              "anchor": "Editor.ClearAgentWaitingForYou",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearAgentWaitingForYou()",
              "doc": "ClearAgentWaitingForYou clears the open waiting request and restores Working or Connected status.\n",
              "file": "pkg/editor/agent.go",
              "line": 1470
            },
            {
              "name": "ClearAssetDragHover",
              "anchor": "Editor.ClearAssetDragHover",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearAssetDragHover()",
              "doc": "ClearAssetDragHover hides the viewport ghost preview while keeping the drag alive until dropped or cancelled.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1876
            },
            {
              "name": "ClearAssetDrawerFilters",
              "anchor": "Editor.ClearAssetDrawerFilters",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearAssetDrawerFilters()",
              "doc": "ClearAssetDrawerFilters resets kind, query, status, and folder filters so all assets show.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 537
            },
            {
              "name": "ClearCameraBounds",
              "anchor": "Editor.ClearCameraBounds",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearCameraBounds() error",
              "doc": "ClearCameraBounds removes the open scene camera's clamp bounds through History.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 639
            },
            {
              "name": "ClearDataTableError",
              "anchor": "Editor.ClearDataTableError",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearDataTableError()",
              "doc": "ClearDataTableError clears the open data table's validation error banner.\n",
              "file": "pkg/editor/datatable.go",
              "line": 166
            },
            {
              "name": "ClearExportOutput",
              "anchor": "Editor.ClearExportOutput",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearExportOutput()",
              "doc": "ClearExportOutput clears the Export panel's Output log.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 713
            },
            {
              "name": "ClearExportSelectedTargets",
              "anchor": "Editor.ClearExportSelectedTargets",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearExportSelectedTargets()",
              "doc": "ClearExportSelectedTargets resets the build scope to all presets.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 632
            },
            {
              "name": "ClearGridMapHover",
              "anchor": "Editor.ClearGridMapHover",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearGridMapHover()",
              "doc": "ClearGridMapHover hides the 3D GridMap cell preview overlay when the pointer leaves the viewport.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1073
            },
            {
              "name": "ClearIgnoredProblems",
              "anchor": "Editor.ClearIgnoredProblems",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearIgnoredProblems()",
              "doc": "ClearIgnoredProblems restores all ignored problems immediately.\n",
              "file": "pkg/editor/problems.go",
              "line": 561
            },
            {
              "name": "ClearLocalizationError",
              "anchor": "Editor.ClearLocalizationError",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearLocalizationError()",
              "doc": "ClearLocalizationError clears any error banner currently displayed in the Localization panel.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 187
            },
            {
              "name": "ClearNavPathPreview2D",
              "anchor": "Editor.ClearNavPathPreview2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearNavPathPreview2D()",
              "doc": "ClearNavPathPreview2D clears the active 2D navigation test-path endpoints and preview line.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 140
            },
            {
              "name": "ClearOutput",
              "anchor": "Editor.ClearOutput",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearOutput()",
              "doc": "ClearOutput removes all recorded entries and any panic card from the Output panel.\n",
              "file": "pkg/editor/output_panel.go",
              "line": 180
            },
            {
              "name": "ClearPlayAgentActivity",
              "anchor": "Editor.ClearPlayAgentActivity",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearPlayAgentActivity()",
              "doc": "ClearPlayAgentActivity clears the viewport agent stepping pill.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 1201
            },
            {
              "name": "ClearPluginHover2D",
              "anchor": "Editor.ClearPluginHover2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearPluginHover2D()",
              "doc": "ClearPluginHover2D notifies the hovered plugin tool's OnHover callback with active=false when the pointer leaves the viewport or the tool changes.\n",
              "file": "pkg/editor/plugin.go",
              "line": 728
            },
            {
              "name": "ClearPluginHover3D",
              "anchor": "Editor.ClearPluginHover3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearPluginHover3D()",
              "doc": "ClearPluginHover3D notifies the hovered 3D plugin tool's OnHover3D callback with active=false when the pointer leaves the viewport or the tool changes.\n",
              "file": "pkg/editor/plugin.go",
              "line": 622
            },
            {
              "name": "ClearReduceMotion",
              "anchor": "Editor.ClearReduceMotion",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearReduceMotion()",
              "doc": "ClearReduceMotion clears any explicit SetReduceMotion override so ReduceMotion follows the platform environment.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 718
            },
            {
              "name": "ClearReferences",
              "anchor": "Editor.ClearReferences",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearReferences()",
              "doc": "ClearReferences clears the active Find References target and results.\n",
              "file": "pkg/editor/search.go",
              "line": 337
            },
            {
              "name": "ClearRemoteConsole",
              "anchor": "Editor.ClearRemoteConsole",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearRemoteConsole()",
              "doc": "ClearRemoteConsole clears the remote console command output history.\n",
              "file": "pkg/editor/remote.go",
              "line": 472
            },
            {
              "name": "ClearSceneOpenError",
              "anchor": "Editor.ClearSceneOpenError",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearSceneOpenError()",
              "doc": "ClearSceneOpenError dismisses the active scene-open error state.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 108
            },
            {
              "name": "ClearSceneOverlays",
              "anchor": "Editor.ClearSceneOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearSceneOverlays()",
              "doc": "ClearSceneOverlays removes all live scene overlay entries.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 816
            },
            {
              "name": "ClearSelection",
              "anchor": "Editor.ClearSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearSelection() bool",
              "doc": "ClearSelection clears the entire object selection set.\n",
              "file": "pkg/editor/selection.go",
              "line": 40
            },
            {
              "name": "ClearSketch",
              "anchor": "Editor.ClearSketch",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearSketch()",
              "doc": "ClearSketch clears all sketch marks, any pending reading card, and any active confirmation hold.\nIt never modifies SceneDoc or Editor.History.\n",
              "file": "pkg/editor/sketch.go",
              "line": 979
            },
            {
              "name": "ClearTaskHoldState",
              "anchor": "Editor.ClearTaskHoldState",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearTaskHoldState(id string)",
              "doc": "ClearTaskHoldState clears editing/holding/blocked state on task id and triggers the hold release hook.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1656
            },
            {
              "name": "ClearTerrainHover",
              "anchor": "Editor.ClearTerrainHover",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearTerrainHover()",
              "doc": "ClearTerrainHover hides the 3D terrain brush cursor preview.\n",
              "file": "pkg/editor/terrain.go",
              "line": 1577
            },
            {
              "name": "ClearTileHover",
              "anchor": "Editor.ClearTileHover",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearTileHover()",
              "doc": "ClearTileHover records that the mouse left the viewport, which hides the hover outline.\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 806
            },
            {
              "name": "ClearTileSelection",
              "anchor": "Editor.ClearTileSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearTileSelection()",
              "doc": "ClearTileSelection clears the active map tile region selection.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 203
            },
            {
              "name": "ClearTileStamp",
              "anchor": "Editor.ClearTileStamp",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearTileStamp()",
              "doc": "ClearTileStamp clears the active stamp pattern.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 144
            },
            {
              "name": "ClearTilesetDraftPolygon",
              "anchor": "Editor.ClearTilesetDraftPolygon",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearTilesetDraftPolygon()",
              "doc": "ClearTilesetDraftPolygon discards any in-progress polygon vertices.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1017
            },
            {
              "name": "ClearTilesetTileTerrain",
              "anchor": "Editor.ClearTilesetTileTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearTilesetTileTerrain(tileID int) error",
              "doc": "ClearTilesetTileTerrain removes local tile tileID from its terrain set as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 776
            },
            {
              "name": "ClearToasts",
              "anchor": "Editor.ClearToasts",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearToasts()",
              "doc": "ClearToasts removes all active and queued toasts.\n",
              "file": "pkg/editor/toasts.go",
              "line": 808
            },
            {
              "name": "ClearViewportPointer",
              "anchor": "Editor.ClearViewportPointer",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClearViewportPointer()",
              "doc": "ClearViewportPointer clears any recorded viewport pointer position.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 205
            },
            {
              "name": "Clip",
              "anchor": "Editor.Clip",
              "recv": "*Editor",
              "decl": "func (e *Editor) Clip() *resource.Animation",
              "doc": "Clip returns a copy of the animation clip open in the animation editor, or nil.\n",
              "file": "pkg/editor/animation.go",
              "line": 28
            },
            {
              "name": "ClipDirty",
              "anchor": "Editor.ClipDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipDirty() bool",
              "doc": "ClipDirty reports whether the open animation clip differs from when it was opened or last saved.\n",
              "file": "pkg/editor/scenefile.go",
              "line": 44
            },
            {
              "name": "ClipError",
              "anchor": "Editor.ClipError",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipError() error",
              "doc": "ClipError returns why the open clip cannot be previewed on the scene, such as a track naming an object the scene does not have, or nil.\n",
              "file": "pkg/editor/animation.go",
              "line": 42
            },
            {
              "name": "ClipFrameEntry",
              "anchor": "Editor.ClipFrameEntry",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipFrameEntry(target, frame string) (AssetEntry, bool)",
              "doc": "ClipFrameEntry resolves the atlas entry (image and source rectangle) for frame on target's sprite atlas (using ClipTarget when target is empty), for rendering timeline frame thumbnails.\n",
              "file": "pkg/editor/animation.go",
              "line": 208
            },
            {
              "name": "ClipLoading",
              "anchor": "Editor.ClipLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipLoading() bool",
              "doc": "ClipLoading reports whether the animation panel is currently loading a clip.\n",
              "file": "pkg/editor/animation.go",
              "line": 45
            },
            {
              "name": "ClipPath",
              "anchor": "Editor.ClipPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipPath() string",
              "doc": "ClipPath returns the file the open clip was opened from or last saved to, or \"\".\n",
              "file": "pkg/editor/animation.go",
              "line": 36
            },
            {
              "name": "ClipPlaying",
              "anchor": "Editor.ClipPlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipPlaying() bool",
              "doc": "ClipPlaying reports whether the animation editor is playing the clip.\n",
              "file": "pkg/editor/animation.go",
              "line": 817
            },
            {
              "name": "ClipTarget",
              "anchor": "Editor.ClipTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipTarget() string",
              "doc": "ClipTarget returns the ID of the object the open clip plays on: its tracks with an empty target drive it.\n",
              "file": "pkg/editor/animation.go",
              "line": 39
            },
            {
              "name": "ClipTargetAsepriteTags",
              "anchor": "Editor.ClipTargetAsepriteTags",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipTargetAsepriteTags(target string) []string",
              "doc": "ClipTargetAsepriteTags returns the sorted Aseprite tag names defined on target's sprite atlas (using ClipTarget when target is empty).\n",
              "file": "pkg/editor/animation.go",
              "line": 184
            },
            {
              "name": "ClipTargetFrames",
              "anchor": "Editor.ClipTargetFrames",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipTargetFrames(target string) []AssetEntry",
              "doc": "ClipTargetFrames returns the frames of target's sprite atlas in sorted order (using ClipTarget when target is empty), or nil when the object has no sprite or its atlas cannot be resolved.\n",
              "file": "pkg/editor/animation.go",
              "line": 151
            },
            {
              "name": "ClipTime",
              "anchor": "Editor.ClipTime",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipTime() time.Duration",
              "doc": "ClipTime returns the animation editor's playhead.\n",
              "file": "pkg/editor/animation.go",
              "line": 802
            },
            {
              "name": "ClipTrack",
              "anchor": "Editor.ClipTrack",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClipTrack(target, property string) int",
              "doc": "ClipTrack returns the index of the open clip's track for target and property, or -1.\n",
              "file": "pkg/editor/animation.go",
              "line": 377
            },
            {
              "name": "Close",
              "anchor": "Editor.Close",
              "recv": "*Editor",
              "decl": "func (e *Editor) Close() error",
              "doc": "Close releases background resources owned by the editor, stopping any running game process, profiler client, export build, clip playback, audio audition, or play-in-editor loop.\n",
              "file": "pkg/editor/run_game.go",
              "line": 320
            },
            {
              "name": "CloseAgentReview",
              "anchor": "Editor.CloseAgentReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseAgentReview()",
              "doc": "CloseAgentReview closes the Review changes panel without deleting any unconfirmed files.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 194
            },
            {
              "name": "CloseAgentRewindPopover",
              "anchor": "Editor.CloseAgentRewindPopover",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseAgentRewindPopover()",
              "doc": "CloseAgentRewindPopover closes the rewind popover without rewinding.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 467
            },
            {
              "name": "CloseAgentTurnReview",
              "anchor": "Editor.CloseAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseAgentTurnReview()",
              "doc": "CloseAgentTurnReview closes the open inline agent turn review drawer.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1869
            },
            {
              "name": "CloseAskFrozenFrame",
              "anchor": "Editor.CloseAskFrozenFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseAskFrozenFrame()",
              "doc": "CloseAskFrozenFrame closes the \"Ask about frame N\" dialog while keeping the game paused.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 880
            },
            {
              "name": "CloseAskInPlace",
              "anchor": "Editor.CloseAskInPlace",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseAskInPlace()",
              "doc": "CloseAskInPlace closes the anchored ⌘L in-place composer without sending and restores prior focus.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 180
            },
            {
              "name": "CloseAssetGenerator",
              "anchor": "Editor.CloseAssetGenerator",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseAssetGenerator()",
              "doc": "CloseAssetGenerator closes the Generated Assets screen and returns to the scene editor.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 414
            },
            {
              "name": "CloseBuildReleaseScreen",
              "anchor": "Editor.CloseBuildReleaseScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseBuildReleaseScreen()",
              "doc": "CloseBuildReleaseScreen closes the Build and Release screen and returns to the scene editor.\n",
              "file": "pkg/editor/build_release.go",
              "line": 446
            },
            {
              "name": "CloseChangesPanel",
              "anchor": "Editor.CloseChangesPanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseChangesPanel()",
              "doc": "CloseChangesPanel closes the Changes & Commit screen and stops any audio audition started from it.\n",
              "file": "pkg/editor/changes.go",
              "line": 434
            },
            {
              "name": "CloseClip",
              "anchor": "Editor.CloseClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseClip() error",
              "doc": "CloseClip closes the open clip as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 284
            },
            {
              "name": "CloseCodeReview",
              "anchor": "Editor.CloseCodeReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseCodeReview()",
              "doc": "CloseCodeReview pauses the Go code review and returns to the editor (Esc), keeping pending changes and leaving a card in the Agent panel.\n",
              "file": "pkg/editor/code_review.go",
              "line": 889
            },
            {
              "name": "CloseCommandPalette",
              "anchor": "Editor.CloseCommandPalette",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseCommandPalette()",
              "doc": "CloseCommandPalette closes the Command Palette dialog.\n",
              "file": "pkg/editor/palette.go",
              "line": 66
            },
            {
              "name": "CloseConnectDialog",
              "anchor": "Editor.CloseConnectDialog",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseConnectDialog()",
              "doc": "CloseConnectDialog closes the Connect dialog without committing draft changes (\"Later\").\n",
              "file": "pkg/editor/agent.go",
              "line": 1051
            },
            {
              "name": "CloseCutscene",
              "anchor": "Editor.CloseCutscene",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseCutscene() error",
              "doc": "CloseCutscene closes the open cutscene timeline editor (and any open review) as an undoable command.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 472
            },
            {
              "name": "CloseDataTable",
              "anchor": "Editor.CloseDataTable",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseDataTable() error",
              "doc": "CloseDataTable closes the open data table as an undoable command.\n",
              "file": "pkg/editor/datatable.go",
              "line": 259
            },
            {
              "name": "CloseGridMap",
              "anchor": "Editor.CloseGridMap",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseGridMap()",
              "doc": "CloseGridMap closes the active GridMap editing session.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 489
            },
            {
              "name": "CloseKeychainCredentialEditor",
              "anchor": "Editor.CloseKeychainCredentialEditor",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseKeychainCredentialEditor()",
              "doc": "CloseKeychainCredentialEditor closes the inline keychain credential form inside Review uploads.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 1004
            },
            {
              "name": "CloseLocalizations",
              "anchor": "Editor.CloseLocalizations",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseLocalizations() error",
              "doc": "CloseLocalizations closes the Localization panel as an undoable command.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 310
            },
            {
              "name": "CloseMaterial",
              "anchor": "Editor.CloseMaterial",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseMaterial() error",
              "doc": "CloseMaterial closes the Material Editor panel as an undoable command.\n",
              "file": "pkg/editor/materials.go",
              "line": 585
            },
            {
              "name": "CloseMentionPicker",
              "anchor": "Editor.CloseMentionPicker",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseMentionPicker()",
              "doc": "CloseMentionPicker closes the @-mention picker without altering the composer draft.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 561
            },
            {
              "name": "CloseMergeConflict",
              "anchor": "Editor.CloseMergeConflict",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseMergeConflict()",
              "doc": "CloseMergeConflict closes the Scene Merge Conflict screen without aborting Git state (for example after FinishMerge completes or to inspect the scene).\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 215
            },
            {
              "name": "CloseObjectContextMenu",
              "anchor": "Editor.CloseObjectContextMenu",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseObjectContextMenu()",
              "doc": "CloseObjectContextMenu closes the viewport/keyboard object context menu if open.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 822
            },
            {
              "name": "CloseParticleEmitter",
              "anchor": "Editor.CloseParticleEmitter",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseParticleEmitter() error",
              "doc": "CloseParticleEmitter closes the open particle emitter panel as an undoable command.\n",
              "file": "pkg/editor/particles.go",
              "line": 340
            },
            {
              "name": "ClosePermissionsSettings",
              "anchor": "Editor.ClosePermissionsSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClosePermissionsSettings()",
              "doc": "ClosePermissionsSettings closes Settings › Permissions.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1221
            },
            {
              "name": "ClosePlaytestConfigPreview",
              "anchor": "Editor.ClosePlaytestConfigPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClosePlaytestConfigPreview()",
              "doc": "ClosePlaytestConfigPreview closes the inline playtest.yaml viewer drawer.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 867
            },
            {
              "name": "ClosePlaytestProposalReview",
              "anchor": "Editor.ClosePlaytestProposalReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClosePlaytestProposalReview()",
              "doc": "ClosePlaytestProposalReview closes the inline proposal review drawer.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 729
            },
            {
              "name": "ClosePlaytestReport",
              "anchor": "Editor.ClosePlaytestReport",
              "recv": "*Editor",
              "decl": "func (e *Editor) ClosePlaytestReport()",
              "doc": "ClosePlaytestReport closes the Playtest Report screen and returns to the scene editor.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 362
            },
            {
              "name": "CloseReviewUploads",
              "anchor": "Editor.CloseReviewUploads",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseReviewUploads()",
              "doc": "CloseReviewUploads closes the Review uploads confirmation dialog without starting any upload.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 972
            },
            {
              "name": "CloseRig",
              "anchor": "Editor.CloseRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseRig() error",
              "doc": "CloseRig closes the open skeletal rig as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 428
            },
            {
              "name": "CloseRooms",
              "anchor": "Editor.CloseRooms",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseRooms()",
              "doc": "CloseRooms closes the open room map beside the scene.\n",
              "file": "pkg/editor/rooms.go",
              "line": 325
            },
            {
              "name": "CloseSettings",
              "anchor": "Editor.CloseSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseSettings()",
              "doc": "CloseSettings closes the unified Settings view, cancelling any active input key capture/drag and stopping audio audition when leaving the Audio buses page.\n",
              "file": "pkg/editor/settings.go",
              "line": 1121
            },
            {
              "name": "CloseStates",
              "anchor": "Editor.CloseStates",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseStates() error",
              "doc": "CloseStates closes the open state machine as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 363
            },
            {
              "name": "CloseTab",
              "anchor": "Editor.CloseTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseTab(index int) error",
              "doc": "CloseTab closes the scene tab at index immediately without prompting.\nClosing the last remaining tab replaces it with a fresh clean untitled scene tab.\nIt returns ErrPlaying while Play mode is active.\n",
              "file": "pkg/editor/tabs.go",
              "line": 677
            },
            {
              "name": "CloseTerrain",
              "anchor": "Editor.CloseTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseTerrain()",
              "doc": "CloseTerrain closes the active terrain editing session.\n",
              "file": "pkg/editor/terrain.go",
              "line": 643
            },
            {
              "name": "CloseTileset",
              "anchor": "Editor.CloseTileset",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseTileset() error",
              "doc": "CloseTileset closes the Tileset Editor panel.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 341
            },
            {
              "name": "CloseUsagesScreen",
              "anchor": "Editor.CloseUsagesScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseUsagesScreen()",
              "doc": "CloseUsagesScreen closes the full-window Find Usages / Safe Rename screen and returns to the editor.\n",
              "file": "pkg/editor/usages.go",
              "line": 515
            },
            {
              "name": "CloseViewport3DAgentPrompt",
              "anchor": "Editor.CloseViewport3DAgentPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) CloseViewport3DAgentPrompt()",
              "doc": "CloseViewport3DAgentPrompt closes the 3D inline agent prompt.\n",
              "file": "pkg/editor/models.go",
              "line": 1012
            },
            {
              "name": "CodeReviewHasWaitingCard",
              "anchor": "Editor.CodeReviewHasWaitingCard",
              "recv": "*Editor",
              "decl": "func (e *Editor) CodeReviewHasWaitingCard() bool",
              "doc": "CodeReviewHasWaitingCard reports whether the Agent panel should display the unconfirmed-Go waiting card\n(after Keep wrote YAML changes while Go files remained unconfirmed) or paused-review card.\n",
              "file": "pkg/editor/code_review.go",
              "line": 451
            },
            {
              "name": "CodeReviewOpen",
              "anchor": "Editor.CodeReviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) CodeReviewOpen() bool",
              "doc": "CodeReviewOpen reports whether the full-window Go code review screen is currently visible.\n",
              "file": "pkg/editor/code_review.go",
              "line": 415
            },
            {
              "name": "CodeReviewSession",
              "anchor": "Editor.CodeReviewSession",
              "recv": "*Editor",
              "decl": "func (e *Editor) CodeReviewSession() *CodeReviewSession",
              "doc": "CodeReviewSession returns the active Go code review session, or nil when none is active.\n",
              "file": "pkg/editor/code_review.go",
              "line": 429
            },
            {
              "name": "CodeReviewWaitingGoFiles",
              "anchor": "Editor.CodeReviewWaitingGoFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) CodeReviewWaitingGoFiles() []string",
              "doc": "CodeReviewWaitingGoFiles returns the project-relative paths of Go files still waiting for confirmation.\n",
              "file": "pkg/editor/code_review.go",
              "line": 437
            },
            {
              "name": "ColliderHandles3D",
              "anchor": "Editor.ColliderHandles3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ColliderHandles3D(o *sceneformat.ObjectDoc) []ColliderHandle3D",
              "doc": "ColliderHandles3D returns the world-space size handles of object o's 3D collider\n(or trigger3d if it has no collider3d). Geometry-derived shapes (convex, trimesh,\nheightfield) and objects without a 3D collider return nil.\n",
              "file": "pkg/editor/collider3d_gizmo.go",
              "line": 181
            },
            {
              "name": "Command",
              "anchor": "Editor.Command",
              "recv": "*Editor",
              "decl": "func (e *Editor) Command(id string) (EditorCommand, bool)",
              "doc": "Command returns the active command with ID id, or false if no active command has that ID.\n",
              "file": "pkg/editor/commands.go",
              "line": 2843
            },
            {
              "name": "CommandPaletteOpen",
              "anchor": "Editor.CommandPaletteOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) CommandPaletteOpen() bool",
              "doc": "CommandPaletteOpen reports whether the Command Palette dialog is currently open.\n",
              "file": "pkg/editor/palette.go",
              "line": 56
            },
            {
              "name": "CommandScopeLabel",
              "anchor": "Editor.CommandScopeLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) CommandScopeLabel(scope string) string",
              "doc": "CommandScopeLabel returns the localized display name for a command scope.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 68
            },
            {
              "name": "Commands",
              "anchor": "Editor.Commands",
              "recv": "*Editor",
              "decl": "func (e *Editor) Commands() []EditorCommand",
              "doc": "Commands returns all currently active commands in deterministic order:\nbuilt-in and custom commands followed by the commands of active plugins,\nwith each command's normalized Scope and effective user shortcut applied.\n",
              "file": "pkg/editor/commands.go",
              "line": 2787
            },
            {
              "name": "CommitAndPushSelectedChanges",
              "anchor": "Editor.CommitAndPushSelectedChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) CommitAndPushSelectedChanges() (CommitMilestone, error)",
              "doc": "CommitAndPushSelectedChanges commits the currently included files and immediately pushes the branch.\n",
              "file": "pkg/editor/changes.go",
              "line": 2861
            },
            {
              "name": "CommitAndPushSelectedChangesAsync",
              "anchor": "Editor.CommitAndPushSelectedChangesAsync",
              "recv": "*Editor",
              "decl": "func (e *Editor) CommitAndPushSelectedChangesAsync(cx *core.Scope) error",
              "doc": "CommitAndPushSelectedChangesAsync commits locally and pushes the branch off the UI thread.\n",
              "file": "pkg/editor/changes.go",
              "line": 2874
            },
            {
              "name": "CommitMilestones",
              "anchor": "Editor.CommitMilestones",
              "recv": "*Editor",
              "decl": "func (e *Editor) CommitMilestones() []CommitMilestone",
              "doc": "CommitMilestones returns a copy of all commit milestones recorded during this editor session, most recent first.\n",
              "file": "pkg/editor/changes.go",
              "line": 420
            },
            {
              "name": "CommitReviewNote",
              "anchor": "Editor.CommitReviewNote",
              "recv": "*Editor",
              "decl": "func (e *Editor) CommitReviewNote() error",
              "doc": "CommitReviewNote saves the open inline note composer's draft text onto its target change.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 485
            },
            {
              "name": "CommitSelectedChanges",
              "anchor": "Editor.CommitSelectedChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) CommitSelectedChanges() (CommitMilestone, error)",
              "doc": "CommitSelectedChanges stages ONLY the checked/included files and commits ONLY those paths,\nleaving every unchecked file untouched and uncommitted, then records a CommitMilestone in History.\n",
              "file": "pkg/editor/changes.go",
              "line": 2604
            },
            {
              "name": "CommitTilesetDraftPolygon",
              "anchor": "Editor.CommitTilesetDraftPolygon",
              "recv": "*Editor",
              "decl": "func (e *Editor) CommitTilesetDraftPolygon() error",
              "doc": "CommitTilesetDraftPolygon turns the draft polygon (at least 3 points) into a collision shape on the selected tile as one undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1026
            },
            {
              "name": "CompactAgentThread",
              "anchor": "Editor.CompactAgentThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) CompactAgentThread() (string, error)",
              "doc": "CompactAgentThread folds earlier requests into a concise summary while keeping the last request\nwhole, and drops conversation token usage so the context ring reflects the compaction.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2732
            },
            {
              "name": "CompleteAgentPlan",
              "anchor": "Editor.CompleteAgentPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) CompleteAgentPlan() error",
              "doc": "CompleteAgentPlan finishes the active plan, attaches its step checklist to the linked AgentTurn's review,\nand restores the idle agent status.\n",
              "file": "pkg/editor/plan.go",
              "line": 1808
            },
            {
              "name": "CompleteAgentRequest",
              "anchor": "Editor.CompleteAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) CompleteAgentRequest(summary string)",
              "doc": "CompleteAgentRequest finishes the active live request and prepares the summary/review card,\nexplicitly noting anything that was skipped because the user denied it.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 828
            },
            {
              "name": "CompleteConnectDialog",
              "anchor": "Editor.CompleteConnectDialog",
              "recv": "*Editor",
              "decl": "func (e *Editor) CompleteConnectDialog()",
              "doc": "CompleteConnectDialog commits the Connect dialog choices and starting permission rules (\"Done\").\nChoosing AgentModeNone keeps the Agent panel closed; otherwise the Agent panel opens.\n",
              "file": "pkg/editor/agent.go",
              "line": 1133
            },
            {
              "name": "CompleteTaskTurn",
              "anchor": "Editor.CompleteTaskTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) CompleteTaskTurn(id string, review TaskReview) error",
              "doc": "CompleteTaskTurn finishes task id's running turn, releases its object holds, and moves it to\nTaskReadyToReview with its own separate TaskReview. Queued tasks do NOT start yet; they wait\nuntil this task is kept or reverted.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1758
            },
            {
              "name": "ComponentConnections",
              "anchor": "Editor.ComponentConnections",
              "recv": "*Editor",
              "decl": "func (e *Editor) ComponentConnections(objectID, component string) []int",
              "doc": "ComponentConnections returns the indexes, in ascending order, of the scene's connections that need objectID's component: those RemoveComponent removes with it. A connection that names an event or handler bare is listed only when the component's registered type declares it.\n",
              "file": "pkg/editor/objectedit.go",
              "line": 194
            },
            {
              "name": "ComponentField",
              "anchor": "Editor.ComponentField",
              "recv": "*Editor",
              "decl": "func (e *Editor) ComponentField(objectID, component, field string) (any, bool)",
              "doc": "ComponentField returns the value of field in the component on objectID: the value the scene sets, or else the field's registered default when a component registry is set (SetComponentRegistry). It returns false when the object does not exist, when the object has no such component, or when the field is neither set nor registered.\n",
              "file": "pkg/editor/plugin.go",
              "line": 763
            },
            {
              "name": "ComponentGizmoHandles3D",
              "anchor": "Editor.ComponentGizmoHandles3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ComponentGizmoHandles3D(objectID string) []PickedComponentGizmo3D",
              "doc": "ComponentGizmoHandles3D returns all 3D component gizmo handles registered for objectID's components.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 874
            },
            {
              "name": "ComponentRegistry",
              "anchor": "Editor.ComponentRegistry",
              "recv": "*Editor",
              "decl": "func (e *Editor) ComponentRegistry() *sceneformat.ComponentRegistry",
              "doc": "ComponentRegistry returns the registry set by SetComponentRegistry, or nil.\n",
              "file": "pkg/editor/state.go",
              "line": 1585
            },
            {
              "name": "ComposerChips",
              "anchor": "Editor.ComposerChips",
              "recv": "*Editor",
              "decl": "func (e *Editor) ComposerChips() []AgentContextChip",
              "doc": "ComposerChips returns the currently attached context chips (excluding suggested and always chips).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1327
            },
            {
              "name": "ComposerDraft",
              "anchor": "Editor.ComposerDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) ComposerDraft() string",
              "doc": "ComposerDraft returns the current draft text staged for the agent composer (for example via\nAsk to add in the inspector).\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 164
            },
            {
              "name": "ConfirmAgentRewind",
              "anchor": "Editor.ConfirmAgentRewind",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmAgentRewind() error",
              "doc": "ConfirmAgentRewind executes the rewind selected in the currently open rewind popover.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 546
            },
            {
              "name": "ConfirmCodeReviewFile",
              "anchor": "Editor.ConfirmCodeReviewFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmCodeReviewFile(relPath string, confirmed bool) error",
              "doc": "ConfirmCodeReviewFile confirms or unconfirms one Go file in the review.\nConfirming is refused with ErrCodeReviewChecksNotPassed until both nsgo check and nsgo test pass for the latest pending code.\nA confirmed file is not written to disk until KeepCodeReview runs, so it lands and undoes with the rest of the review.\n",
              "file": "pkg/editor/code_review.go",
              "line": 991
            },
            {
              "name": "ConfirmDiscardAndSwitch",
              "anchor": "Editor.ConfirmDiscardAndSwitch",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmDiscardAndSwitch() error",
              "doc": "ConfirmDiscardAndSwitch discards unsaved edits and executes the pending project switch.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 1094
            },
            {
              "name": "ConfirmHeldPermissionLoosening",
              "anchor": "Editor.ConfirmHeldPermissionLoosening",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmHeldPermissionLoosening(id string) error",
              "doc": "ConfirmHeldPermissionLoosening confirms one externally loosened rule or profile change by ID in Settings › Permissions (person-only).\nOnly that entry is loosened in effective permissions, recorded in History as the person's.\n",
              "file": "pkg/editor/you_only.go",
              "line": 728
            },
            {
              "name": "ConfirmKeepPendingTurnPrompt",
              "anchor": "Editor.ConfirmKeepPendingTurnPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmKeepPendingTurnPrompt() error",
              "doc": "ConfirmKeepPendingTurnPrompt keeps the pending agent turn and runs the waiting action.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 2369
            },
            {
              "name": "ConfirmOverwriteSave",
              "anchor": "Editor.ConfirmOverwriteSave",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmOverwriteSave() error",
              "doc": "ConfirmOverwriteSave confirms overwriting the file that triggered SaveConflictPromptOpen.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1486
            },
            {
              "name": "ConfirmProposedDeletion",
              "anchor": "Editor.ConfirmProposedDeletion",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmProposedDeletion(relPath string) error",
              "doc": "ConfirmProposedDeletion handles the person clicking \"Delete this file\" on a proposed deletion.\nIf unkept regular changes remain in the review, it marks the deletion as DeletionConfirmed\n(\"Deletion confirmed · happens with Keep\") so pressing Keep applies both together.\nIf no unkept regular changes remain (for example after Keep all already kept the other changes),\nit deletes the file immediately through a reversible checkpoint command so ⌘Z restores it.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 511
            },
            {
              "name": "ConfirmReleaseUploads",
              "anchor": "Editor.ConfirmReleaseUploads",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmReleaseUploads(sessionID uint64) error",
              "doc": "ConfirmReleaseUploads starts uploading the selected artifacts from the open Review uploads dialog.\nStrict trust boundary:\n  - Always refuses when called by an agent actor (AgentActorActive() == true), whatever the permission profile.\n  - Always refuses while playing or while Start Screen / Merge Conflict screens are active.\n  - Always refuses unless Review uploads is currently open and sessionID matches the active review session.\n  - Validates every selected artifact path stays within the open project directory.\n  - Consumes sessionID immediately so confirmation can never be replayed.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 1257
            },
            {
              "name": "ConfirmResumeLostAgentTurn",
              "anchor": "Editor.ConfirmResumeLostAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmResumeLostAgentTurn(turnID string) error",
              "doc": "ConfirmResumeLostAgentTurn resumes a reconnected Lost turn starting at its interrupted/next step.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1131
            },
            {
              "name": "ConfirmRevertPendingTurnPrompt",
              "anchor": "Editor.ConfirmRevertPendingTurnPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmRevertPendingTurnPrompt() error",
              "doc": "ConfirmRevertPendingTurnPrompt reverts the pending agent turn and runs the waiting action.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 2387
            },
            {
              "name": "ConfirmReviewRevertAll",
              "anchor": "Editor.ConfirmReviewRevertAll",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmReviewRevertAll() error",
              "doc": "ConfirmReviewRevertAll reverts all changes in the pending review as one reversible step\nso that ⌘Z (or the toast's Undo button) brings the review back.\n",
              "file": "pkg/editor/review.go",
              "line": 3545
            },
            {
              "name": "ConfirmSaveAndSwitch",
              "anchor": "Editor.ConfirmSaveAndSwitch",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConfirmSaveAndSwitch() error",
              "doc": "ConfirmSaveAndSwitch saves all unsaved edits and, if saving succeeds, executes the pending project switch.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 1076
            },
            {
              "name": "ConnectAssetGenerator",
              "anchor": "Editor.ConnectAssetGenerator",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectAssetGenerator(ctx context.Context, cfg GeneratorServerConfig, transport sdkmcp.Transport) error",
              "doc": "ConnectAssetGenerator connects an MCP asset generator server over transport (for example an in-memory transport in tests or stdio CommandTransport on desktop) and discovers its generation tool.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 683
            },
            {
              "name": "ConnectAssetGeneratorCommand",
              "anchor": "Editor.ConnectAssetGeneratorCommand",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectAssetGeneratorCommand(ctx context.Context, cfg GeneratorServerConfig) error",
              "doc": "ConnectAssetGeneratorCommand connects a configured stdio MCP generator server process on desktop platforms.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 754
            },
            {
              "name": "ConnectDialogAPIKey",
              "anchor": "Editor.ConnectDialogAPIKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectDialogAPIKey() string",
              "doc": "ConnectDialogAPIKey returns the draft API key entered in the Connect dialog.\n",
              "file": "pkg/editor/agent.go",
              "line": 974
            },
            {
              "name": "ConnectDialogChoice",
              "anchor": "Editor.ConnectDialogChoice",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectDialogChoice() AgentMode",
              "doc": "ConnectDialogChoice returns the radio choice currently highlighted inside the Connect dialog.\n",
              "file": "pkg/editor/agent.go",
              "line": 940
            },
            {
              "name": "ConnectDialogCopied",
              "anchor": "Editor.ConnectDialogCopied",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectDialogCopied() bool",
              "doc": "ConnectDialogCopied reports whether the install command was recently copied.\n",
              "file": "pkg/editor/agent.go",
              "line": 969
            },
            {
              "name": "ConnectDialogOpen",
              "anchor": "Editor.ConnectDialogOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectDialogOpen() bool",
              "doc": "ConnectDialogOpen reports whether the Connect an agent dialog is open.\n",
              "file": "pkg/editor/agent.go",
              "line": 935
            },
            {
              "name": "ConnectDialogPermissions",
              "anchor": "Editor.ConnectDialogPermissions",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectDialogPermissions() AgentPermissions",
              "doc": "ConnectDialogPermissions returns the draft checkbox state inside the Connect dialog.\n",
              "file": "pkg/editor/agent.go",
              "line": 961
            },
            {
              "name": "ConnectDialogStep",
              "anchor": "Editor.ConnectDialogStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectDialogStep() ConnectStep",
              "doc": "ConnectDialogStep returns the step the Connect dialog is focused on.\n",
              "file": "pkg/editor/agent.go",
              "line": 948
            },
            {
              "name": "ConnectDialogTroubleshooting",
              "anchor": "Editor.ConnectDialogTroubleshooting",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectDialogTroubleshooting() bool",
              "doc": "ConnectDialogTroubleshooting reports whether the Connect dialog was reopened from Troubleshoot at a failed step.\n",
              "file": "pkg/editor/agent.go",
              "line": 956
            },
            {
              "name": "ConnectProfiler",
              "anchor": "Editor.ConnectProfiler",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectProfiler(client ProfilerClient)",
              "doc": "ConnectProfiler connects the editor's profiler to client, polling game_perf_readout and game_perf_zones while connected.\nAny previously connected profiler client is closed first. Passing nil disconnects the profiler.\n",
              "file": "pkg/editor/profiler.go",
              "line": 431
            },
            {
              "name": "ConnectRemote",
              "anchor": "Editor.ConnectRemote",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectRemote(ctx context.Context, transport sdkmcp.Transport) error",
              "doc": "ConnectRemote connects the editor as an MCP client over transport, performs an initial refresh of scenes, layers, entities, loop status, and tunables, switches the scene tree to the Remote tab, and starts background refreshing while connected.\n",
              "file": "pkg/editor/remote.go",
              "line": 489
            },
            {
              "name": "ConnectRemoteCommand",
              "anchor": "Editor.ConnectRemoteCommand",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConnectRemoteCommand(ctx context.Context, dir string, extraArgs ...string) error",
              "doc": "ConnectRemoteCommand connects the editor to a running game via `go tool nsgo mcp` in dir (defaulting to the open project's directory when dir is empty).\n",
              "file": "pkg/editor/remote.go",
              "line": 562
            },
            {
              "name": "ContextBreakdownOpen",
              "anchor": "Editor.ContextBreakdownOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ContextBreakdownOpen() bool",
              "doc": "ContextBreakdownOpen reports whether the context ring breakdown popover is open.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2527
            },
            {
              "name": "ContextMeter",
              "anchor": "Editor.ContextMeter",
              "recv": "*Editor",
              "decl": "func (e *Editor) ContextMeter() ContextMeterSnapshot",
              "doc": "ContextMeter computes the live context ring percentage, warning level, and 6-category breakdown.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2555
            },
            {
              "name": "ContinueAgentWithHint",
              "anchor": "Editor.ContinueAgentWithHint",
              "recv": "*Editor",
              "decl": "func (e *Editor) ContinueAgentWithHint(turnID string) error",
              "doc": "ContinueAgentWithHint resumes a paused Stuck turn with the user's hint.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 956
            },
            {
              "name": "ContinueGridMapStroke",
              "anchor": "Editor.ContinueGridMapStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) ContinueGridMapStroke(sx, sy float32)",
              "doc": "ContinueGridMapStroke extends an active GridMap stroke to viewport pixel (sx, sy).\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1163
            },
            {
              "name": "ContinueTerrainStroke",
              "anchor": "Editor.ContinueTerrainStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) ContinueTerrainStroke(worldX, worldZ float32)",
              "doc": "ContinueTerrainStroke extends the active terrain brush stroke from its previous\nworld position to (worldX, worldZ), interpolating dabs along the segment so fast\ndrags remain smooth without gaps.\n",
              "file": "pkg/editor/terrain.go",
              "line": 1098
            },
            {
              "name": "ContinueTerrainStrokeAt",
              "anchor": "Editor.ContinueTerrainStrokeAt",
              "recv": "*Editor",
              "decl": "func (e *Editor) ContinueTerrainStrokeAt(sx, sy, w, h float32)",
              "doc": "ContinueTerrainStrokeAt raycasts pixel (sx, sy) against the open terrain and\nextends the active brush stroke to the hit point.\n",
              "file": "pkg/editor/terrain.go",
              "line": 1547
            },
            {
              "name": "ContinueTileStroke",
              "anchor": "Editor.ContinueTileStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) ContinueTileStroke(x, y float32)",
              "doc": "ContinueTileStroke carries the stroke under way on from the pointer's last point to the canvas point (x, y).\nFor Paint, Erase and Terrain it edits every cell the straight line crosses; for Rect, Line, Stamp, Random and SelectRegion\nit updates the live preview without mutating the scene document; for Pick it picks the tile at (x, y).\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 250
            },
            {
              "name": "ConvertOccluderToPolygon",
              "anchor": "Editor.ConvertOccluderToPolygon",
              "recv": "*Editor",
              "decl": "func (e *Editor) ConvertOccluderToPolygon(objectID string) error",
              "doc": "ConvertOccluderToPolygon converts objectID's occluder2d component to shape \"polygon\", seeding its points from the current rect dimensions when points is empty, in one undoable step.\n",
              "file": "pkg/editor/lights2d_editor.go",
              "line": 289
            },
            {
              "name": "CopyConnectInstallCommand",
              "anchor": "Editor.CopyConnectInstallCommand",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopyConnectInstallCommand()",
              "doc": "CopyConnectInstallCommand copies `go tool game mcp install` to the clipboard.\n",
              "file": "pkg/editor/agent.go",
              "line": 1103
            },
            {
              "name": "CopyFirstRunDiagnostics",
              "anchor": "Editor.CopyFirstRunDiagnostics",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopyFirstRunDiagnostics() string",
              "doc": "CopyFirstRunDiagnostics copies a safe diagnostic report (never containing any API key) to the clipboard\nand marks the Copy diagnostics button as Copied in place.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1032
            },
            {
              "name": "CopyObjectYAML",
              "anchor": "Editor.CopyObjectYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopyObjectYAML(id string) (string, int, error)",
              "doc": "CopyObjectYAML serializes object id in canonical sceneformat YAML, writes it to the clipboard\n(via WriteClipboard when set, otherwise the attached scope's system clipboard), caches it for Paste,\nupdates Status, and displays the toast \"Copied <name> as YAML · N lines\".\n",
              "file": "pkg/editor/context_menu.go",
              "line": 214
            },
            {
              "name": "CopyObjects",
              "anchor": "Editor.CopyObjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopyObjects(ids ...string) (string, error)",
              "doc": "CopyObjects encodes the objects named by ids (with their children, components, properties,\nand the connections among them) as valid scene-format YAML, writes it to the system clipboard,\nand returns the YAML string.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 417
            },
            {
              "name": "CopyPRDescription",
              "anchor": "Editor.CopyPRDescription",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopyPRDescription() (string, error)",
              "doc": "CopyPRDescription builds the structured PR description and places it on the clipboard (or Editor.ChangesClipboard / WriteClipboard when set).\n",
              "file": "pkg/editor/changes.go",
              "line": 3107
            },
            {
              "name": "CopySelected",
              "anchor": "Editor.CopySelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopySelected() (string, error)",
              "doc": "CopySelected copies the currently selected object(s) to the system clipboard as scene-format YAML.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 457
            },
            {
              "name": "CopySelectedTileRegion",
              "anchor": "Editor.CopySelectedTileRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopySelectedTileRegion() (TileStamp, error)",
              "doc": "CopySelectedTileRegion copies the active TileSelection on ActiveLayer into the tile clipboard and active stamp.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 899
            },
            {
              "name": "CopySelectedYAML",
              "anchor": "Editor.CopySelectedYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopySelectedYAML() (string, int, error)",
              "doc": "CopySelectedYAML copies the currently selected object as canonical sceneformat YAML.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 239
            },
            {
              "name": "CopyTileRegion",
              "anchor": "Editor.CopyTileRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopyTileRegion(layer string, col0, row0, col1, row1 int) (TileStamp, error)",
              "doc": "CopyTileRegion copies the inclusive rectangle from (col0, row0) to (col1, row1) on layer's inline tilemap\ninto the editor's tile clipboard and active stamp, returning a copy of the captured TileStamp.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 794
            },
            {
              "name": "CopyWebBuildURL",
              "anchor": "Editor.CopyWebBuildURL",
              "recv": "*Editor",
              "decl": "func (e *Editor) CopyWebBuildURL() (string, error)",
              "doc": "CopyWebBuildURL copies the active LAN web build URL (or web preset TestURL) to the clipboard.\n",
              "file": "pkg/editor/build_device.go",
              "line": 1283
            },
            {
              "name": "CorrectSketchMark",
              "anchor": "Editor.CorrectSketchMark",
              "recv": "*Editor",
              "decl": "func (e *Editor) CorrectSketchMark(number int) error",
              "doc": "CorrectSketchMark answers \"Correct a mark\" on the active sketch reading, reopening sketch mode\nwith that exact mark selected (defaulting to mark 1 if number <= 0) while keeping the hold gate active.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1415
            },
            {
              "name": "CountSceneInstances",
              "anchor": "Editor.CountSceneInstances",
              "recv": "*Editor",
              "decl": "func (e *Editor) CountSceneInstances(scenePath string) (instances, scenes int)",
              "doc": "CountSceneInstances counts how many objects across the open project (or open tabs when no project is open)\ninstance scenePath, returning (totalInstances, affectedScenes).\nDisk-backed scene files are scanned once per (ProjectPath, filesRev, scenesRev) and overlaid with all open tabs' live in-memory documents.\n",
              "file": "pkg/editor/overrides.go",
              "line": 1915
            },
            {
              "name": "CreateBrief",
              "anchor": "Editor.CreateBrief",
              "recv": "*Editor",
              "decl": "func (e *Editor) CreateBrief(b project.Brief) error",
              "doc": "CreateBrief creates or replaces brief.yaml with b as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 513
            },
            {
              "name": "CreateMaterialFile",
              "anchor": "Editor.CreateMaterialFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) CreateMaterialFile(relPath string) (string, error)",
              "doc": "CreateMaterialFile writes a new canonical *.material.yaml file at relPath inside the open project (appending \".material.yaml\" when needed), refuses to overwrite an existing file (ErrFileExists), and opens it in the Material Editor panel. It returns the written project-relative path.\n",
              "file": "pkg/editor/materials.go",
              "line": 475
            },
            {
              "name": "CreateObjectMaterial",
              "anchor": "Editor.CreateObjectMaterial",
              "recv": "*Editor",
              "decl": "func (e *Editor) CreateObjectMaterial(objectID, relPath string) (string, error)",
              "doc": "CreateObjectMaterial creates a new *.material.yaml file in the open project (picking a free materials/<objectID>.material.yaml path when relPath is empty), assigns it to objectID when the resolver can load materials, and opens it in the Material Editor panel. It returns the created project-relative path.\n",
              "file": "pkg/editor/materials.go",
              "line": 517
            },
            {
              "name": "CreateProjectErr",
              "anchor": "Editor.CreateProjectErr",
              "recv": "*Editor",
              "decl": "func (e *Editor) CreateProjectErr() error",
              "doc": "CreateProjectErr returns any error from the latest Start Screen project creation run.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 741
            },
            {
              "name": "CreateProjectFromStartScreen",
              "anchor": "Editor.CreateProjectFromStartScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) CreateProjectFromStartScreen() error",
              "doc": "CreateProjectFromStartScreen starts project creation using the current Start Screen form values,\nasking about unsaved edits first when another project or scene has unsaved changes.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 966
            },
            {
              "name": "CreateProjectOutput",
              "anchor": "Editor.CreateProjectOutput",
              "recv": "*Editor",
              "decl": "func (e *Editor) CreateProjectOutput() []string",
              "doc": "CreateProjectOutput returns the streamed output lines from the latest Start Screen project creation run.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 731
            },
            {
              "name": "CreatingProject",
              "anchor": "Editor.CreatingProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) CreatingProject() bool",
              "doc": "CreatingProject reports whether a Start Screen `game new` command is currently running.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 721
            },
            {
              "name": "CrossfadeRig",
              "anchor": "Editor.CrossfadeRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) CrossfadeRig(toAnim string, duration time.Duration) error",
              "doc": "CrossfadeRig initiates a smooth crossfade into toAnim over duration through the runtime skeletal.Skeleton.Crossfade.\n",
              "file": "pkg/editor/rig.go",
              "line": 1841
            },
            {
              "name": "CurrentAgentTurn",
              "anchor": "Editor.CurrentAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) CurrentAgentTurn() (AgentTurnSnapshot, bool)",
              "doc": "CurrentAgentTurn returns a read-only snapshot of the current (or most recently kept/reverted) multi-file agent turn.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 463
            },
            {
              "name": "CustomShortcutCount",
              "anchor": "Editor.CustomShortcutCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) CustomShortcutCount() int",
              "doc": "CustomShortcutCount returns the number of user shortcut overrides that differ from command defaults.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 259
            },
            {
              "name": "CutObjects",
              "anchor": "Editor.CutObjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutObjects(ids ...string) (string, error)",
              "doc": "CutObjects copies the objects named by ids to the system clipboard as scene-format YAML\nand removes the originals (with their connections) in one undoable step.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 473
            },
            {
              "name": "CutSelected",
              "anchor": "Editor.CutSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutSelected() (string, error)",
              "doc": "CutSelected cuts the currently selected object(s) to the system clipboard in one undoable step.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 512
            },
            {
              "name": "CutSelectedTileRegion",
              "anchor": "Editor.CutSelectedTileRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutSelectedTileRegion() (TileStamp, error)",
              "doc": "CutSelectedTileRegion cuts the active TileSelection on ActiveLayer into the tile clipboard and active stamp as one undoable step.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 907
            },
            {
              "name": "CutTileRegion",
              "anchor": "Editor.CutTileRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutTileRegion(layer string, col0, row0, col1, row1 int) (TileStamp, error)",
              "doc": "CutTileRegion copies the inclusive rectangle from (col0, row0) to (col1, row1) into the tile clipboard\nand active stamp, and clears those cells on layer's inline tilemap in one undoable command.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 823
            },
            {
              "name": "Cutscene",
              "anchor": "Editor.Cutscene",
              "recv": "*Editor",
              "decl": "func (e *Editor) Cutscene() *cutscene.Cutscene",
              "doc": "Cutscene returns a copy of the cutscene currently displayed by the timeline editor (the effective Before/After/edited review document while a review is open, or the open cutscene otherwise), or nil when none is open.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 188
            },
            {
              "name": "CutsceneActiveDialogue",
              "anchor": "Editor.CutsceneActiveDialogue",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneActiveDialogue() cutscene.DialogueLine",
              "doc": "CutsceneActiveDialogue returns the dialogue line active at the current playhead time.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 283
            },
            {
              "name": "CutsceneBase",
              "anchor": "Editor.CutsceneBase",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneBase() *cutscene.Cutscene",
              "doc": "CutsceneBase returns a copy of the underlying cutscene document before any uncommitted review changes, or nil.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 196
            },
            {
              "name": "CutsceneCameraLabel",
              "anchor": "Editor.CutsceneCameraLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneCameraLabel() string",
              "doc": "CutsceneCameraLabel returns the preview stage's camera caption (for example \"Camera · pan to knight · 640 × 360\").\n",
              "file": "pkg/editor/cutscene.go",
              "line": 299
            },
            {
              "name": "CutsceneChangeFocused",
              "anchor": "Editor.CutsceneChangeFocused",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneChangeFocused(index int) bool",
              "doc": "CutsceneChangeFocused reports whether change index owns the currently selected clip.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1266
            },
            {
              "name": "CutsceneClipManuallyEdited",
              "anchor": "Editor.CutsceneClipManuallyEdited",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneClipManuallyEdited(trackIdx, clipIdx int) bool",
              "doc": "CutsceneClipManuallyEdited reports whether the clip at (trackIdx, clipIdx) has a manual edit joined to the open review.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1227
            },
            {
              "name": "CutsceneClipReviewStatus",
              "anchor": "Editor.CutsceneClipReviewStatus",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneClipReviewStatus(trackIdx, clipIdx int) CutsceneChangeKind",
              "doc": "CutsceneClipReviewStatus returns whether the clip at (trackIdx, clipIdx) was added, changed, or unchanged in the active review view.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1241
            },
            {
              "name": "CutsceneDirty",
              "anchor": "Editor.CutsceneDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneDirty() bool",
              "doc": "CutsceneDirty reports whether the open cutscene differs from its last opened or saved YAML bytes, or has an uncommitted agent review open.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 223
            },
            {
              "name": "CutsceneError",
              "anchor": "Editor.CutsceneError",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneError() error",
              "doc": "CutsceneError returns why the open cutscene cannot be previewed on the scene, or nil.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 215
            },
            {
              "name": "CutsceneHandleKeyEvent",
              "anchor": "Editor.CutsceneHandleKeyEvent",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneHandleKeyEvent(ev core.KeyEvent, down bool) bool",
              "doc": "CutsceneHandleKeyEvent handles cutscene timeline keyboard shortcuts:\nhold B to peek Before during an open review, Space to play/pause, Left/Right arrows to scrub ±0.1 s (Shift ±0.5 s).\nIt ignores events during Play mode and never swallows modifier chords (Cmd/Ctrl/Alt).\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1449
            },
            {
              "name": "CutsceneLength",
              "anchor": "Editor.CutsceneLength",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneLength() time.Duration",
              "doc": "CutsceneLength returns the length of the currently displayed timeline cutscene, or 0 for none/video.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 253
            },
            {
              "name": "CutsceneLineText",
              "anchor": "Editor.CutsceneLineText",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneLineText(id string) (en, zh string)",
              "doc": "CutsceneLineText resolves the English and Chinese text for a dialogue line ID from the localization catalog.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1650
            },
            {
              "name": "CutsceneLines",
              "anchor": "Editor.CutsceneLines",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneLines() []CutsceneLineEntry",
              "doc": "CutsceneLines returns the localized dialogue lines referenced by the open cutscene (or its active review), each with its ID, English text, Chinese text, and whether it was added by the open review.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1675
            },
            {
              "name": "CutsceneLocPaths",
              "anchor": "Editor.CutsceneLocPaths",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneLocPaths() (enPath, zhPath string)",
              "doc": "CutsceneLocPaths returns the display paths for English and Chinese localization tables (defaulting to \"loc/en.yaml\" and \"loc/zh.yaml\").\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1636
            },
            {
              "name": "CutsceneOpen",
              "anchor": "Editor.CutsceneOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneOpen() bool",
              "doc": "CutsceneOpen reports whether a cutscene document is open in the cutscene timeline editor.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 183
            },
            {
              "name": "CutscenePath",
              "anchor": "Editor.CutscenePath",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutscenePath() string",
              "doc": "CutscenePath returns the file path the open cutscene was loaded from or saved to, or \"\".\n",
              "file": "pkg/editor/cutscene.go",
              "line": 207
            },
            {
              "name": "CutscenePlaying",
              "anchor": "Editor.CutscenePlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutscenePlaying() bool",
              "doc": "CutscenePlaying reports whether cutscene timeline preview playback is active.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 262
            },
            {
              "name": "CutscenePreviewPlayer",
              "anchor": "Editor.CutscenePreviewPlayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutscenePreviewPlayer() *cutscene.TimelinePlayer",
              "doc": "CutscenePreviewPlayer returns the active cutscene.TimelinePlayer used to pose the preview scene, or nil.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 275
            },
            {
              "name": "CutscenePreviewScene",
              "anchor": "Editor.CutscenePreviewScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutscenePreviewScene() *sceneformat.BuiltScene",
              "doc": "CutscenePreviewScene returns the BuiltScene posed by the cutscene TimelinePlayer at CutsceneTime, or nil.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 267
            },
            {
              "name": "CutsceneReviewChanges",
              "anchor": "Editor.CutsceneReviewChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneReviewChanges() []CutsceneChange",
              "doc": "CutsceneReviewChanges returns a copy of the changes in the open cutscene review.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1084
            },
            {
              "name": "CutsceneReviewHasManualEdits",
              "anchor": "Editor.CutsceneReviewHasManualEdits",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneReviewHasManualEdits() bool",
              "doc": "CutsceneReviewHasManualEdits reports whether the person has edited any clip during the open review.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1222
            },
            {
              "name": "CutsceneReviewKeptCount",
              "anchor": "Editor.CutsceneReviewKeptCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneReviewKeptCount() (kept, total int)",
              "doc": "CutsceneReviewKeptCount returns how many changes are currently kept out of total in the open review.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1097
            },
            {
              "name": "CutsceneReviewOpen",
              "anchor": "Editor.CutsceneReviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneReviewOpen() bool",
              "doc": "CutsceneReviewOpen reports whether a cutscene agent review is currently open.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1071
            },
            {
              "name": "CutsceneReviewPeekingBefore",
              "anchor": "Editor.CutsceneReviewPeekingBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneReviewPeekingBefore() bool",
              "doc": "CutsceneReviewPeekingBefore reports whether the user is holding B to peek at Before.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1130
            },
            {
              "name": "CutsceneReviewPrompt",
              "anchor": "Editor.CutsceneReviewPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneReviewPrompt() string",
              "doc": "CutsceneReviewPrompt returns the prompt string associated with the open cutscene review, or \"\".\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1076
            },
            {
              "name": "CutsceneReviewShowingBefore",
              "anchor": "Editor.CutsceneReviewShowingBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneReviewShowingBefore() bool",
              "doc": "CutsceneReviewShowingBefore reports whether the cutscene preview and timeline are currently displaying the Before state (either toggled to Before or peeking with B).\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1146
            },
            {
              "name": "CutsceneReviewViewMode",
              "anchor": "Editor.CutsceneReviewViewMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneReviewViewMode() CutsceneReviewView",
              "doc": "CutsceneReviewViewMode returns whether the review toggle is set to Before or After.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1111
            },
            {
              "name": "CutsceneThumbs",
              "anchor": "Editor.CutsceneThumbs",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneThumbs() []CutsceneThumbSample",
              "doc": "CutsceneThumbs returns the sampled thumbnail frames across the cutscene timeline for the scrub strip.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 291
            },
            {
              "name": "CutsceneTime",
              "anchor": "Editor.CutsceneTime",
              "recv": "*Editor",
              "decl": "func (e *Editor) CutsceneTime() time.Duration",
              "doc": "CutsceneTime returns the cutscene timeline's current playhead position.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 245
            },
            {
              "name": "CycleDataTableReviewSort",
              "anchor": "Editor.CycleDataTableReviewSort",
              "recv": "*Editor",
              "decl": "func (e *Editor) CycleDataTableReviewSort(col string) SortOrder",
              "doc": "CycleDataTableReviewSort cycles col through ascending -> descending -> file order (none).\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 938
            },
            {
              "name": "CycleMentionPickerGroup",
              "anchor": "Editor.CycleMentionPickerGroup",
              "recv": "*Editor",
              "decl": "func (e *Editor) CycleMentionPickerGroup(delta int) MentionGroup",
              "doc": "CycleMentionPickerGroup advances (+1) or rewinds (-1) the active group tab (Tab / Shift+Tab).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 586
            },
            {
              "name": "CycleRegion",
              "anchor": "Editor.CycleRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) CycleRegion(delta int) EditorRegion",
              "doc": "CycleRegion moves keyboard focus to the next (+1) or previous (-1) visible editor\nregion in Spec order (Header -> Scene tree -> Viewport -> Inspector -> Status bar -> Toast),\ndrawing the region's inset ring and restoring its last focused control.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 707
            },
            {
              "name": "Dark",
              "anchor": "Editor.Dark",
              "recv": "*Editor",
              "decl": "func (e *Editor) Dark() bool",
              "doc": "Dark reports whether the editor is currently shown in dark appearance: when a UI scope is attached it reflects cx.Dark() (combining SetAppearance, SetSubtreeAppearance, and the system appearance); otherwise it reports Appearance() == AppearanceDark.\n",
              "file": "pkg/editor/settings.go",
              "line": 796
            },
            {
              "name": "DataTable",
              "anchor": "Editor.DataTable",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTable() *datatable.Document",
              "doc": "DataTable returns a copy of the YAML data table open in the Data Table panel, or nil.\n",
              "file": "pkg/editor/datatable.go",
              "line": 134
            },
            {
              "name": "DataTableColumns",
              "anchor": "Editor.DataTableColumns",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableColumns() []DataTableColumn",
              "doc": "DataTableColumns returns the grid columns for the open data table: the union of all rows'\nkeys in deterministic first-appearance order, followed by any columns declared by the\nregistered Go row type that no row currently sets.\n",
              "file": "pkg/editor/datatable.go",
              "line": 332
            },
            {
              "name": "DataTableDirty",
              "anchor": "Editor.DataTableDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableDirty() bool",
              "doc": "DataTableDirty reports whether the open data table differs from when it was opened or last saved.\n",
              "file": "pkg/editor/scenefile.go",
              "line": 56
            },
            {
              "name": "DataTableError",
              "anchor": "Editor.DataTableError",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableError() error",
              "doc": "DataTableError returns the most recent validation error from editing the open data table, or nil.\n",
              "file": "pkg/editor/datatable.go",
              "line": 158
            },
            {
              "name": "DataTableFilter",
              "anchor": "Editor.DataTableFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableFilter() string",
              "doc": "DataTableFilter returns the current grid view filter query.\n",
              "file": "pkg/editor/datatable.go",
              "line": 598
            },
            {
              "name": "DataTableLoading",
              "anchor": "Editor.DataTableLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableLoading() bool",
              "doc": "DataTableLoading reports whether the Data Table panel is currently loading.\n",
              "file": "pkg/editor/datatable.go",
              "line": 175
            },
            {
              "name": "DataTablePath",
              "anchor": "Editor.DataTablePath",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTablePath() string",
              "doc": "DataTablePath returns the file path or name of the open data table, or \"\".\n",
              "file": "pkg/editor/datatable.go",
              "line": 142
            },
            {
              "name": "DataTableReviewActiveFileIndex",
              "anchor": "Editor.DataTableReviewActiveFileIndex",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewActiveFileIndex() int",
              "doc": "DataTableReviewActiveFileIndex returns the 0-based index of the currently selected file in the review.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 777
            },
            {
              "name": "DataTableReviewAllRecords",
              "anchor": "Editor.DataTableReviewAllRecords",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewAllRecords() []DataTableReviewRecord",
              "doc": "DataTableReviewAllRecords returns all records in the active review file in current file order,\nignoring the UI filter chip, search query, and sort order.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1154
            },
            {
              "name": "DataTableReviewAriaSort",
              "anchor": "Editor.DataTableReviewAriaSort",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewAriaSort(col string) string",
              "doc": "DataTableReviewAriaSort returns the WAI-ARIA aria-sort value (\"ascending\", \"descending\", or \"none\") for col.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 963
            },
            {
              "name": "DataTableReviewChecks",
              "anchor": "Editor.DataTableReviewChecks",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewChecks() []DataTableReviewCheck",
              "doc": "DataTableReviewChecks returns a copy of the agent's named check figures on the active review.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1829
            },
            {
              "name": "DataTableReviewChecksOutOfDate",
              "anchor": "Editor.DataTableReviewChecksOutOfDate",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewChecksOutOfDate() bool",
              "doc": "DataTableReviewChecksOutOfDate reports whether the person has reverted, edited, or reordered records\nsince the agent's check figures were last attached or refreshed.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1838
            },
            {
              "name": "DataTableReviewChipCounts",
              "anchor": "Editor.DataTableReviewChipCounts",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewChipCounts() (all, changed, unchanged, reverted, yours int)",
              "doc": "DataTableReviewChipCounts returns counts for All, Changed, Unchanged, Reverted, and Yours in the active file.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 847
            },
            {
              "name": "DataTableReviewColumns",
              "anchor": "Editor.DataTableReviewColumns",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewColumns() []DataTableReviewColumn",
              "doc": "DataTableReviewColumns returns the display columns for the active review file.\nWhen both `id` and `name` exist and `id` has no changes, `name` serves as the primary display column\n(and `kind`, when unchanged, is folded alongside `name` as in ReviewData.dc.html); any changed column\nis always kept visible.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 982
            },
            {
              "name": "DataTableReviewEditDraft",
              "anchor": "Editor.DataTableReviewEditDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewEditDraft() string",
              "doc": "DataTableReviewEditDraft returns the in-progress text in the active inline cell editor.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1481
            },
            {
              "name": "DataTableReviewError",
              "anchor": "Editor.DataTableReviewError",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewError() error",
              "doc": "DataTableReviewError returns the most recent inline validation error in the active review file, if any.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1499
            },
            {
              "name": "DataTableReviewFiles",
              "anchor": "Editor.DataTableReviewFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewFiles() []DataTableReviewFileSummary",
              "doc": "DataTableReviewFiles returns summaries of all data table files in the active review turn.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 725
            },
            {
              "name": "DataTableReviewFilter",
              "anchor": "Editor.DataTableReviewFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewFilter() DataTableReviewFilter",
              "doc": "DataTableReviewFilter returns the active filter chip for the selected file.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 859
            },
            {
              "name": "DataTableReviewFocusKey",
              "anchor": "Editor.DataTableReviewFocusKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewFocusKey() string",
              "doc": "DataTableReviewFocusKey returns the focused record key in the active file, or \"\".\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1299
            },
            {
              "name": "DataTableReviewFocusedYAML",
              "anchor": "Editor.DataTableReviewFocusedYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewFocusedYAML() (string, []DataTableReviewYAMLLine)",
              "doc": "DataTableReviewFocusedYAML returns the header title and +/- YAML diff lines for the focused record\n(or the empty file's YAML lines when the active file has 0 records).\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1844
            },
            {
              "name": "DataTableReviewKeptCount",
              "anchor": "Editor.DataTableReviewKeptCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewKeptCount() (kept, total int)",
              "doc": "DataTableReviewKeptCount returns the total kept changed records and total changed records across all files in the review.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 821
            },
            {
              "name": "DataTableReviewOpen",
              "anchor": "Editor.DataTableReviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewOpen() bool",
              "doc": "DataTableReviewOpen reports whether the full-window Data Table review screen is currently visible.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 626
            },
            {
              "name": "DataTableReviewPaused",
              "anchor": "Editor.DataTableReviewPaused",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewPaused() bool",
              "doc": "DataTableReviewPaused reports whether a Data Table review is currently paused in the background.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 636
            },
            {
              "name": "DataTableReviewPending",
              "anchor": "Editor.DataTableReviewPending",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewPending() bool",
              "doc": "DataTableReviewPending reports whether a Data Table review is active (either open or paused with Esc).\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 631
            },
            {
              "name": "DataTableReviewPrompt",
              "anchor": "Editor.DataTableReviewPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewPrompt() string",
              "doc": "DataTableReviewPrompt returns the quoted request prompt of the active review, or \"\".\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 660
            },
            {
              "name": "DataTableReviewSearch",
              "anchor": "Editor.DataTableReviewSearch",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewSearch() string",
              "doc": "DataTableReviewSearch returns the text filter query for the active file.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 890
            },
            {
              "name": "DataTableReviewSnapshot",
              "anchor": "Editor.DataTableReviewSnapshot",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewSnapshot() DataTableReviewSnapshot",
              "doc": "DataTableReviewSnapshot returns a full read-only snapshot of the active Data Table review.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 2009
            },
            {
              "name": "DataTableReviewSort",
              "anchor": "Editor.DataTableReviewSort",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewSort() (string, SortOrder)",
              "doc": "DataTableReviewSort returns the active file's sort column and direction.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 910
            },
            {
              "name": "DataTableReviewUserEditCount",
              "anchor": "Editor.DataTableReviewUserEditCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewUserEditCount() int",
              "doc": "DataTableReviewUserEditCount returns the total number of records edited or reordered by the person across all files.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 834
            },
            {
              "name": "DataTableReviewVisibleRecords",
              "anchor": "Editor.DataTableReviewVisibleRecords",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableReviewVisibleRecords() []DataTableReviewRecord",
              "doc": "DataTableReviewVisibleRecords returns the records visible in the active file after applying\nthe active chip filter, text search query, and sort column/direction.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1168
            },
            {
              "name": "DataTableRowType",
              "anchor": "Editor.DataTableRowType",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableRowType() *datatable.RowType",
              "doc": "DataTableRowType returns the registered Go row type active for the open data table, or nil.\n",
              "file": "pkg/editor/datatable.go",
              "line": 150
            },
            {
              "name": "DataTableRowTypeFor",
              "anchor": "Editor.DataTableRowTypeFor",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableRowTypeFor(path string) *datatable.RowType",
              "doc": "DataTableRowTypeFor returns the registered RowType matching path, or nil.\n",
              "file": "pkg/editor/datatable.go",
              "line": 116
            },
            {
              "name": "DataTableSort",
              "anchor": "Editor.DataTableSort",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableSort() (string, SortOrder)",
              "doc": "DataTableSort returns the grid view's current sort column and direction.\n",
              "file": "pkg/editor/datatable.go",
              "line": 578
            },
            {
              "name": "DataTableViewRows",
              "anchor": "Editor.DataTableViewRows",
              "recv": "*Editor",
              "decl": "func (e *Editor) DataTableViewRows() []int",
              "doc": "DataTableViewRows returns the 0-based document row indices currently visible after applying\nthe active filter and sort without mutating the document's row order.\n",
              "file": "pkg/editor/datatable.go",
              "line": 607
            },
            {
              "name": "DefaultInputBinding",
              "anchor": "Editor.DefaultInputBinding",
              "recv": "*Editor",
              "decl": "func (e *Editor) DefaultInputBinding(kind string) (project.Binding, error)",
              "doc": "DefaultInputBinding returns a valid default project.Binding of kind sized sensibly for the project's virtual display.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 349
            },
            {
              "name": "DefaultShortcut",
              "anchor": "Editor.DefaultShortcut",
              "recv": "*Editor",
              "decl": "func (e *Editor) DefaultShortcut(cmdID string) string",
              "doc": "DefaultShortcut returns the registered default primary shortcut for cmdID.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 222
            },
            {
              "name": "DeferFirstRunConnect",
              "anchor": "Editor.DeferFirstRunConnect",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeferFirstRunConnect()",
              "doc": "DeferFirstRunConnect handles the Later button on Connect in place, returning to Start while keeping idea and name.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1163
            },
            {
              "name": "DeleteAgentAPIKey",
              "anchor": "Editor.DeleteAgentAPIKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteAgentAPIKey(account string) error",
              "doc": "DeleteAgentAPIKey removes the built-in model API key from NSGo's core.Secrets / system keychain.\nRefused when invoked by an agent.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 689
            },
            {
              "name": "DeleteAgentFile",
              "anchor": "Editor.DeleteAgentFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteAgentFile(relPath string) error",
              "doc": "DeleteAgentFile records relPath's pre-turn bytes into the active checkpoint (if any) before\nremoving relPath from the open project.\nRefuses You-only files, symlinks, paths outside the project root, and edits while playing or previewing history.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 918
            },
            {
              "name": "DeleteAudioBus",
              "anchor": "Editor.DeleteAudioBus",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteAudioBus(name string) error",
              "doc": "DeleteAudioBus removes the named bus from game.yaml's audio.buses through EditProject.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 446
            },
            {
              "name": "DeleteClipEvent",
              "anchor": "Editor.DeleteClipEvent",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteClipEvent(i int) error",
              "doc": "DeleteClipEvent deletes event i of the open clip as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 766
            },
            {
              "name": "DeleteDataTableRow",
              "anchor": "Editor.DeleteDataTableRow",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteDataTableRow(row int) error",
              "doc": "DeleteDataTableRow deletes row (0-based) from the open data table as an undoable command.\n",
              "file": "pkg/editor/datatable.go",
              "line": 506
            },
            {
              "name": "DeleteInputAction",
              "anchor": "Editor.DeleteInputAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteInputAction(name string) error",
              "doc": "DeleteInputAction removes an action from game.yaml's input.actions through EditProject. If an axis still reads the action, project.Validate refuses the edit and nothing changes.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 317
            },
            {
              "name": "DeleteInputAxis",
              "anchor": "Editor.DeleteInputAxis",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteInputAxis(index int) error",
              "doc": "DeleteInputAxis removes input.axes[index] through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 624
            },
            {
              "name": "DeleteInputGamepadAxis",
              "anchor": "Editor.DeleteInputGamepadAxis",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteInputGamepadAxis(index int) error",
              "doc": "DeleteInputGamepadAxis removes input.gamepadAxes[index] through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 724
            },
            {
              "name": "DeleteInputMotionAxis",
              "anchor": "Editor.DeleteInputMotionAxis",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteInputMotionAxis(index int) error",
              "doc": "DeleteInputMotionAxis removes input.motionAxes[index] through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 674
            },
            {
              "name": "DeleteKey",
              "anchor": "Editor.DeleteKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteKey(track, key int) error",
              "doc": "DeleteKey deletes key key on track track as an undoable command; deleting a track's last key removes the track.\n",
              "file": "pkg/editor/animation.go",
              "line": 711
            },
            {
              "name": "DeleteObject",
              "anchor": "Editor.DeleteObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteObject(id string) error",
              "doc": "DeleteObject removes the object with ID id, a top-level object or a nested child, from the scene as an undoable command, together with the scene's connections from or to it, its descendants or the objects of scenes they instance; undoing it puts them back where they were.\n",
              "file": "pkg/editor/state.go",
              "line": 2286
            },
            {
              "name": "DeleteProperty",
              "anchor": "Editor.DeleteProperty",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteProperty(objectID, key string) error",
              "doc": "DeleteProperty removes key from objectID's Properties map through History.\n",
              "file": "pkg/editor/inspector.go",
              "line": 70
            },
            {
              "name": "DeletePublishCredential",
              "anchor": "Editor.DeletePublishCredential",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeletePublishCredential(dest PublishDestination) error",
              "doc": "DeletePublishCredential removes the stored credential for dest from the system keychain.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 939
            },
            {
              "name": "DeleteRigAnimation",
              "anchor": "Editor.DeleteRigAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteRigAnimation(name string) error",
              "doc": "DeleteRigAnimation removes animation name from the open rig as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1360
            },
            {
              "name": "DeleteRigBone",
              "anchor": "Editor.DeleteRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteRigBone(name string) error",
              "doc": "DeleteRigBone deletes bone name from the open rig as an undoable command.\nChild bones are reparented to name's parent and bone timelines for name are removed.\nIt refuses to delete a bone that still has slots bound to it.\n",
              "file": "pkg/editor/rig.go",
              "line": 793
            },
            {
              "name": "DeleteRigBoneKeyframe",
              "anchor": "Editor.DeleteRigBoneKeyframe",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteRigBoneKeyframe(anim, bone, track string, index int) error",
              "doc": "DeleteRigBoneKeyframe deletes keyframe index from bone's track (\"translate\", \"rotate\", or \"scale\") in anim as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1638
            },
            {
              "name": "DeleteRigSkin",
              "anchor": "Editor.DeleteRigSkin",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteRigSkin(name string) error",
              "doc": "DeleteRigSkin deletes skin name from the open rig as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1132
            },
            {
              "name": "DeleteRigSlot",
              "anchor": "Editor.DeleteRigSlot",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteRigSlot(name string) error",
              "doc": "DeleteRigSlot removes slot name and its entries in skins and animations as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1037
            },
            {
              "name": "DeleteRigSlotKeyframe",
              "anchor": "Editor.DeleteRigSlotKeyframe",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteRigSlotKeyframe(anim, slot, track string, index int) error",
              "doc": "DeleteRigSlotKeyframe deletes keyframe index from slot's track (\"attachment\" or \"alpha\") in anim as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1680
            },
            {
              "name": "DeleteRoom",
              "anchor": "Editor.DeleteRoom",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteRoom(id string) error",
              "doc": "DeleteRoom removes the room with ID id from the open room map as an undoable command.\n",
              "file": "pkg/editor/rooms.go",
              "line": 676
            },
            {
              "name": "DeleteSelected",
              "anchor": "Editor.DeleteSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteSelected() error",
              "doc": "DeleteSelected deletes the currently selected object(s) as one undoable step.\nWhen nothing is selected, it returns nil without modifying history.\n",
              "file": "pkg/editor/commands.go",
              "line": 2888
            },
            {
              "name": "DeleteSketchMark",
              "anchor": "Editor.DeleteSketchMark",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteSketchMark(number int) bool",
              "doc": "DeleteSketchMark removes the 1-based mark and renumbers remaining marks sequentially.\n",
              "file": "pkg/editor/sketch.go",
              "line": 946
            },
            {
              "name": "DeleteTilesetTileProperty",
              "anchor": "Editor.DeleteTilesetTileProperty",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeleteTilesetTileProperty(tileID int, key string) error",
              "doc": "DeleteTilesetTileProperty removes custom property key from tileID as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1447
            },
            {
              "name": "DeniedPermissionKeys",
              "anchor": "Editor.DeniedPermissionKeys",
              "recv": "*Editor",
              "decl": "func (e *Editor) DeniedPermissionKeys() []string",
              "doc": "DeniedPermissionKeys returns a sorted copy of permission keys denied in the current request.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 1107
            },
            {
              "name": "DenyPermission",
              "anchor": "Editor.DenyPermission",
              "recv": "*Editor",
              "decl": "func (e *Editor) DenyPermission() bool",
              "doc": "DenyPermission denies the open permission card, records the denial for this request so the agent\nwill never retry it automatically, marks the step with \"Allow now\", and lets the agent continue.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 688
            },
            {
              "name": "DetectSceneMergeConflicts",
              "anchor": "Editor.DetectSceneMergeConflicts",
              "recv": "*Editor",
              "decl": "func (e *Editor) DetectSceneMergeConflicts() ([]string, error)",
              "doc": "DetectSceneMergeConflicts checks the open project's Git repository (or dir when given)\nfor an in-progress merge with unmerged scene YAML files, returning their slash-separated paths\nrelative to the Git repository root.\n",
              "file": "pkg/editor/merge_git.go",
              "line": 162
            },
            {
              "name": "DetectedMergeConflicts",
              "anchor": "Editor.DetectedMergeConflicts",
              "recv": "*Editor",
              "decl": "func (e *Editor) DetectedMergeConflicts() []string",
              "doc": "DetectedMergeConflicts returns the slash-separated paths of unmerged scene files last detected in the open project's Git repository.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 207
            },
            {
              "name": "DiscardAgentTurnReview",
              "anchor": "Editor.DiscardAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) DiscardAgentTurnReview(turnID string) bool",
              "doc": "DiscardAgentTurnReview reverts all unkept undo steps recorded since the turn began and marks the review discarded.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1921
            },
            {
              "name": "DiscardEmptyAgentTurn",
              "anchor": "Editor.DiscardEmptyAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) DiscardEmptyAgentTurn()",
              "doc": "DiscardEmptyAgentTurn closes an active agent turn when it has recorded no scene changes\n(for example after a refused MCP edit).\n",
              "file": "pkg/editor/agent_live.go",
              "line": 267
            },
            {
              "name": "DiscardPermissionsDraft",
              "anchor": "Editor.DiscardPermissionsDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) DiscardPermissionsDraft()",
              "doc": "DiscardPermissionsDraft closes the open permissions draft card without modifying any rule or file on disk.\n",
              "file": "pkg/editor/you_only.go",
              "line": 1058
            },
            {
              "name": "DiscardRemoteLiveChanges",
              "anchor": "Editor.DiscardRemoteLiveChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) DiscardRemoteLiveChanges() error",
              "doc": "DiscardRemoteLiveChanges reverts every pending live change in the running game (when connected) and clears the RemoteLiveChanges list.\n",
              "file": "pkg/editor/remote.go",
              "line": 1723
            },
            {
              "name": "DisconnectAllAssetGenerators",
              "anchor": "Editor.DisconnectAllAssetGenerators",
              "recv": "*Editor",
              "decl": "func (e *Editor) DisconnectAllAssetGenerators()",
              "doc": "DisconnectAllAssetGenerators closes every connected MCP generator server session.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 825
            },
            {
              "name": "DisconnectAssetGenerator",
              "anchor": "Editor.DisconnectAssetGenerator",
              "recv": "*Editor",
              "decl": "func (e *Editor) DisconnectAssetGenerator(name string) error",
              "doc": "DisconnectAssetGenerator closes and disconnects the named MCP generator server.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 803
            },
            {
              "name": "DisconnectProfiler",
              "anchor": "Editor.DisconnectProfiler",
              "recv": "*Editor",
              "decl": "func (e *Editor) DisconnectProfiler() error",
              "doc": "DisconnectProfiler stops live polling and closes the connected profiler client, preserving recorded frames so the user can inspect or export them.\n",
              "file": "pkg/editor/profiler.go",
              "line": 481
            },
            {
              "name": "DisconnectRemote",
              "anchor": "Editor.DisconnectRemote",
              "recv": "*Editor",
              "decl": "func (e *Editor) DisconnectRemote() error",
              "doc": "DisconnectRemote closes any active remote MCP client session and stops background polling.\nAny unkept RemoteLiveChanges are preserved so the author can still keep them in the scene or discard them after stopping.\n",
              "file": "pkg/editor/remote.go",
              "line": 649
            },
            {
              "name": "DiskCompareOpen",
              "anchor": "Editor.DiskCompareOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) DiskCompareOpen() bool",
              "doc": "DiskCompareOpen reports whether the per-object Compare merge picker is open for an external scene conflict.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1420
            },
            {
              "name": "DiskConflicts",
              "anchor": "Editor.DiskConflicts",
              "recv": "*Editor",
              "decl": "func (e *Editor) DiskConflicts() []DiskConflict",
              "doc": "DiskConflicts returns all currently unresolved external-change conflicts in deterministic order (scene, project, clip).\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1313
            },
            {
              "name": "DiskReloadDiffOpen",
              "anchor": "Editor.DiskReloadDiffOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) DiskReloadDiffOpen() bool",
              "doc": "DiskReloadDiffOpen reports whether the quiet reload diff drawer is expanded.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1403
            },
            {
              "name": "DiskReloadNotice",
              "anchor": "Editor.DiskReloadNotice",
              "recv": "*Editor",
              "decl": "func (e *Editor) DiskReloadNotice() (DiskReloadNotice, bool)",
              "doc": "DiskReloadNotice returns the latest quiet external reload notice, if not dismissed.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1383
            },
            {
              "name": "DismissAgentAttachError",
              "anchor": "Editor.DismissAgentAttachError",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissAgentAttachError()",
              "doc": "DismissAgentAttachError clears the composer's attachment refusal banner.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 407
            },
            {
              "name": "DismissAgentPinNotice",
              "anchor": "Editor.DismissAgentPinNotice",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissAgentPinNotice()",
              "doc": "DismissAgentPinNotice hides the Pin to brief confirmation card without undoing the pin.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 426
            },
            {
              "name": "DismissAgentPlan",
              "anchor": "Editor.DismissAgentPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissAgentPlan()",
              "doc": "DismissAgentPlan clears any active plan without writing any files.\n",
              "file": "pkg/editor/plan.go",
              "line": 1855
            },
            {
              "name": "DismissAgentRewindBanner",
              "anchor": "Editor.DismissAgentRewindBanner",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissAgentRewindBanner()",
              "doc": "DismissAgentRewindBanner hides the post-rewind banner without redoing.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 531
            },
            {
              "name": "DismissAgentTurnReview",
              "anchor": "Editor.DismissAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissAgentTurnReview(turnID string) error",
              "doc": "DismissAgentTurnReview dismisses a Ready-to-review automation turn without reverting anything that was never kept.\nRefuses agent actors (ErrAutomationYouOnly).\n",
              "file": "pkg/editor/automations.go",
              "line": 1461
            },
            {
              "name": "DismissBlockedPermission",
              "anchor": "Editor.DismissBlockedPermission",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissBlockedPermission(id string)",
              "doc": "DismissBlockedPermission removes the blocked step with id from the editor's list.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1632
            },
            {
              "name": "DismissDiskReloadNotice",
              "anchor": "Editor.DismissDiskReloadNotice",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissDiskReloadNotice()",
              "doc": "DismissDiskReloadNotice clears the quiet external reload notice.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1393
            },
            {
              "name": "DismissPermissionToast",
              "anchor": "Editor.DismissPermissionToast",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissPermissionToast()",
              "doc": "DismissPermissionToast hides the active permission toast without changing saved rules.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1918
            },
            {
              "name": "DismissPlaytestProposal",
              "anchor": "Editor.DismissPlaytestProposal",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissPlaytestProposal(id string) error",
              "doc": "DismissPlaytestProposal dismisses a pending playtest_define proposal without modifying playtest.yaml.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 796
            },
            {
              "name": "DismissProposedFix",
              "anchor": "Editor.DismissProposedFix",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissProposedFix(fixID string)",
              "doc": "DismissProposedFix removes a pending proposed fix without applying it.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 278
            },
            {
              "name": "DismissResumeLostAgentTurn",
              "anchor": "Editor.DismissResumeLostAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissResumeLostAgentTurn(turnID string)",
              "doc": "DismissResumeLostAgentTurn declines resuming a reconnected Lost turn while keeping its review intact.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1148
            },
            {
              "name": "DismissSelectedTasks",
              "anchor": "Editor.DismissSelectedTasks",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissSelectedTasks() int",
              "doc": "DismissSelectedTasks dismisses every checked Ready to review task together, reverting nothing that was kept.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2483
            },
            {
              "name": "DismissSuggestedRule",
              "anchor": "Editor.DismissSuggestedRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissSuggestedRule(id string)",
              "doc": "DismissSuggestedRule hides suggestion id from SuggestedProjectRules.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1139
            },
            {
              "name": "DismissTasks",
              "anchor": "Editor.DismissTasks",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissTasks(ids []string) int",
              "doc": "DismissTasks dismisses one or more Ready to review or Failed tasks from the list.\nDismissing NEVER reverts anything that was kept (nor mutates kept scene edits or undo history).\n",
              "file": "pkg/editor/tasks.go",
              "line": 2377
            },
            {
              "name": "DismissToast",
              "anchor": "Editor.DismissToast",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissToast()",
              "doc": "DismissToast removes the currently visible toast and advances the queue.\n",
              "file": "pkg/editor/toasts.go",
              "line": 754
            },
            {
              "name": "DismissToastByID",
              "anchor": "Editor.DismissToastByID",
              "recv": "*Editor",
              "decl": "func (e *Editor) DismissToastByID(id string)",
              "doc": "DismissToastByID removes the toast with id from the visible slot or waiting queue.\n",
              "file": "pkg/editor/toasts.go",
              "line": 762
            },
            {
              "name": "DocReviews",
              "anchor": "Editor.DocReviews",
              "recv": "*Editor",
              "decl": "func (e *Editor) DocReviews() []DocReview",
              "doc": "DocReviews returns a copy of all DocReviews (pending, kept, and reverted).\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1377
            },
            {
              "name": "DockAreaRef",
              "anchor": "Editor.DockAreaRef",
              "recv": "*Editor",
              "decl": "func (e *Editor) DockAreaRef() *dock.AreaRef",
              "doc": "DockAreaRef returns the mounted ui.DockArea's AreaRef, or nil when EditorView is not mounted.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1295
            },
            {
              "name": "DockLayout",
              "anchor": "Editor.DockLayout",
              "recv": "*Editor",
              "decl": "func (e *Editor) DockLayout() dock.Layout",
              "doc": "DockLayout returns the effective dock.Layout currently displayed by ui.DockArea.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1285
            },
            {
              "name": "DraftAutomationFromWords",
              "anchor": "Editor.DraftAutomationFromWords",
              "recv": "*Editor",
              "decl": "func (e *Editor) DraftAutomationFromWords(words string) (*AutomationDraft, error)",
              "doc": "DraftAutomationFromWords asks the agent/drafter to turn plain words into a reviewable AutomationRule draft.\nThe draft is never written to automations.yaml until the author calls KeepAutomationDraft.\n",
              "file": "pkg/editor/automations.go",
              "line": 790
            },
            {
              "name": "DraftReleaseNotes",
              "anchor": "Editor.DraftReleaseNotes",
              "recv": "*Editor",
              "decl": "func (e *Editor) DraftReleaseNotes() (ReleaseNotesDraft, error)",
              "doc": "DraftReleaseNotes reads git commits since the last release tag (or initial commit), kept reviews,\nand changelog fragments, drafts player-facing Markdown via Editor.ReleaseNotesDrafter or DefaultReleaseNotesDraft,\nand writes the result directly to the release notes Markdown file read by `game release -release-notes`.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 482
            },
            {
              "name": "Dragging2D",
              "anchor": "Editor.Dragging2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) Dragging2D() GizmoHandle2D",
              "doc": "Dragging2D returns the handle a 2D viewport drag in progress holds, or Handle2DNone when none is.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 520
            },
            {
              "name": "DraggingCameraBounds",
              "anchor": "Editor.DraggingCameraBounds",
              "recv": "*Editor",
              "decl": "func (e *Editor) DraggingCameraBounds() RectHandle",
              "doc": "DraggingCameraBounds reports the camera.bounds handle currently being dragged, or RectHandleNone.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 818
            },
            {
              "name": "DraggingComponentGizmo3D",
              "anchor": "Editor.DraggingComponentGizmo3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) DraggingComponentGizmo3D() bool",
              "doc": "DraggingComponentGizmo3D reports whether a 3D component gizmo handle drag is currently in progress.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 947
            },
            {
              "name": "DraggingGizmo3D",
              "anchor": "Editor.DraggingGizmo3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) DraggingGizmo3D() bool",
              "doc": "DraggingGizmo3D reports whether a 3D gizmo drag is currently in progress.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 1139
            },
            {
              "name": "DraggingHandle3D",
              "anchor": "Editor.DraggingHandle3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) DraggingHandle3D() bool",
              "doc": "DraggingHandle3D reports whether an interactive light/camera handle drag is in progress.\n",
              "file": "pkg/editor/handles3d.go",
              "line": 473
            },
            {
              "name": "DraggingRig",
              "anchor": "Editor.DraggingRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) DraggingRig() RigHandle",
              "doc": "DraggingRig returns the active rig handle drag, or RigHandleNone.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 339
            },
            {
              "name": "DraggingRoom",
              "anchor": "Editor.DraggingRoom",
              "recv": "*Editor",
              "decl": "func (e *Editor) DraggingRoom() (string, RectHandle)",
              "doc": "DraggingRoom reports the room ID and handle currently being dragged, or (\"\", RectHandleNone).\n",
              "file": "pkg/editor/rooms.go",
              "line": 966
            },
            {
              "name": "DraggingShape2D",
              "anchor": "Editor.DraggingShape2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) DraggingShape2D() bool",
              "doc": "DraggingShape2D reports whether a 2D viewport component shape handle drag is currently active.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 496
            },
            {
              "name": "DrainAgentFollowUps",
              "anchor": "Editor.DrainAgentFollowUps",
              "recv": "*Editor",
              "decl": "func (e *Editor) DrainAgentFollowUps() []string",
              "doc": "DrainAgentFollowUps returns and clears any instructions added via \"Add to this request\" since the last drain.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 817
            },
            {
              "name": "DrawImageImportPreview",
              "anchor": "Editor.DrawImageImportPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) DrawImageImportPreview(d *core.Drawing, size core.Size, relPath string)",
              "doc": "DrawImageImportPreview draws the image asset, checkerboard background, slice grid overlay, and interactive pivot markers for relPath.\n",
              "file": "pkg/editor/asset_import_pivot.go",
              "line": 507
            },
            {
              "name": "DrawInputRegionCanvas",
              "anchor": "Editor.DrawInputRegionCanvas",
              "recv": "*Editor",
              "decl": "func (e *Editor) DrawInputRegionCanvas(d *core.Drawing, size core.Size)",
              "doc": "DrawInputRegionCanvas draws the virtual display frame and all touch/mouse input regions scaled to size.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 924
            },
            {
              "name": "DrawModelPreview",
              "anchor": "Editor.DrawModelPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) DrawModelPreview(d *core.Drawing, size core.Size, relPath string)",
              "doc": "DrawModelPreview draws the 3D orbit-camera model preview for relPath onto d, including a corner orientation triad.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 910
            },
            {
              "name": "DrawRigViewport",
              "anchor": "Editor.DrawRigViewport",
              "recv": "*Editor",
              "decl": "func (e *Editor) DrawRigViewport(d *core.Drawing, size core.Size)",
              "doc": "DrawRigViewport draws the open skeletal rig's attachments (via the runtime skeletal.Skeleton.Draw),\nbone hierarchy shapes, and interactive bone and attachment-origin handles into d.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 652
            },
            {
              "name": "DrawTileLine",
              "anchor": "Editor.DrawTileLine",
              "recv": "*Editor",
              "decl": "func (e *Editor) DrawTileLine(layer string, col0, row0, col1, row1, tileID int) error",
              "doc": "DrawTileLine draws a Bresenham line from (col0, row0) to (col1, row1) on layer's inline tilemap\nwith tileID (0 erases) as one undoable command.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 672
            },
            {
              "name": "DrawViewport",
              "anchor": "Editor.DrawViewport",
              "recv": "*Editor",
              "decl": "func (e *Editor) DrawViewport(d *core.Drawing, size core.Size)",
              "doc": "DrawViewport renders the active scene in 2D or 3D mode and, when in edit mode, the appropriate editor overlays (the scene camera's frame and bounds, tile grid, selection outline, the selection's transform gizmo and the active plugin tool's Draw in 2D; grid, axes, boxes and gizmo in 3D). In 2D edit mode the scene draws through the 2D view (View2D) over the whole canvas, previewing each world-space layer's parallax offset and repeat tiling as the 2D view pans; in Play mode the player's frame, the scene's virtual screen, is all that shows. size is the canvas's size, which it records (SetCanvasSize).\n",
              "file": "pkg/editor/viewport.go",
              "line": 473
            },
            {
              "name": "DrawViewport3D",
              "anchor": "Editor.DrawViewport3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) DrawViewport3D(d *core.Drawing, size core.Size)",
              "doc": "DrawViewport3D renders the 3D scene view onto d. Without the GPU view (Viewport3DOnGPU) it draws the whole view: the scene's background, the XZ ground grid, the world origin axes, a depth-sorted wireframe box for every visible object (the bounds of its geometry when it draws a mesh or model, ObjectCorners3D) and the active 3D gizmo. While the GPU view draws the scene's geometry under it, d is an overlay: it leaves the background clear and draws the grid, the axes, a box for each object that draws no geometry, the selected object's box as its selection outline, the edges of the geometry's triangles in Shading3DWireframe, and the gizmo.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 2212
            },
            {
              "name": "DrawViewportWithOverlays",
              "anchor": "Editor.DrawViewportWithOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) DrawViewportWithOverlays(d *core.Drawing, size core.Size, overlayIDs []string) error",
              "doc": "DrawViewportWithOverlays renders the viewport like DrawViewport, temporarily using overlayIDs\nas the active overlay set without changing the editor's persisted overlay settings.\nWhen overlayIDs is nil, the editor's active overlay set is used; an explicit empty slice disables\nall viewport overlays for this draw call. Unknown overlay IDs return an error.\n",
              "file": "pkg/editor/overlays.go",
              "line": 541
            },
            {
              "name": "DropAgentReferenceFiles",
              "anchor": "Editor.DropAgentReferenceFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) DropAgentReferenceFiles(uris []string) ([]AgentReferenceImage, error)",
              "doc": "DropAgentReferenceFiles attaches one or more dropped file paths or file:// URLs onto the Agent composer.\nValid PNG/JPEG/WebP files are attached as chips; unsupported files are refused with a clear reason.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 558
            },
            {
              "name": "DropAssetAt",
              "anchor": "Editor.DropAssetAt",
              "recv": "*Editor",
              "decl": "func (e *Editor) DropAssetAt(assetPath string, canvasX, canvasY float32) (objectID string, swapped bool, err error)",
              "doc": "DropAssetAt drops the sprite asset at assetPath onto viewport canvas point (canvasX, canvasY).\nIf an existing visible unlocked object lies under (canvasX, canvasY), its sprite is swapped in one undo step\nand swapped is true. Otherwise, a new sprite object is placed on the active layer, snapped to AssetSnapStep,\nin one undo step and swapped is false.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1898
            },
            {
              "name": "DropAtlasFrame",
              "anchor": "Editor.DropAtlasFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) DropAtlasFrame(atlasName, frameName string, x, y float32) (string, error)",
              "doc": "DropAtlasFrame places a new sprite object referencing (atlasName, frameName) at world/layer\ncoordinates (x, y) on the active layer as an undoable PlaceObject command.\n",
              "file": "pkg/editor/browser.go",
              "line": 103
            },
            {
              "name": "DropModelFiles",
              "anchor": "Editor.DropModelFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) DropModelFiles(uris []string, sx, sy, w, h float32) ([]string, error)",
              "doc": "DropModelFiles places the glTF files a drop from another app names (core.View.OnFileDrop's URLs) in the 3D viewport, as the Place tool would at viewport pixel (sx, sy) of a viewport w by h, all in one undoable step, and returns the new objects' IDs. Only .gltf and .glb files inside the open project's folder, outside the folders ProjectFiles leaves out, are placed, by their paths from its root; it fails without placing anything when a URL names no such file, such as a file outside the project, a file of another kind or a web drop, which names no path.\n",
              "file": "pkg/editor/models.go",
              "line": 395
            },
            {
              "name": "DropObject",
              "anchor": "Editor.DropObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) DropObject(id, targetID string, place DropPlace) error",
              "doc": "DropObject moves the object id, with its descendants, into the object targetID or beside it as place says, as one undoable command: what dragging a row of the scene tree onto another does. It is ReparentObject with the parent and index place names, so the object keeps its world transform and the same moves are refused.\n",
              "file": "pkg/editor/hierarchy.go",
              "line": 891
            },
            {
              "name": "DuplicateObject",
              "anchor": "Editor.DuplicateObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) DuplicateObject(id string) (string, error)",
              "doc": "DuplicateObject clones object id on the same layer (and under the same parent) next to\nthe original with fresh unique IDs for it and its descendants, rewriting internal connections\nand overrides to the new IDs, selects the duplicate, and returns its new ID as one undoable command.\n",
              "file": "pkg/editor/commands.go",
              "line": 2914
            },
            {
              "name": "DuplicateObjects",
              "anchor": "Editor.DuplicateObjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) DuplicateObjects(ids ...string) ([]string, error)",
              "doc": "DuplicateObjects clones all objects named by ids (with their children, components, properties,\ninternal connections, and scene overrides) next to the originals in one undoable step,\nallocating fresh unique IDs and rewriting connections among the duplicated objects to point\nat the copies. It selects the duplicates and returns their new root IDs.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 1204
            },
            {
              "name": "DuplicateSelected",
              "anchor": "Editor.DuplicateSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) DuplicateSelected() (string, error)",
              "doc": "DuplicateSelected duplicates the currently selected object(s) in one undoable step\nand returns the primary duplicate's ID.\n",
              "file": "pkg/editor/commands.go",
              "line": 2924
            },
            {
              "name": "DuplicateSelectedObjects",
              "anchor": "Editor.DuplicateSelectedObjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) DuplicateSelectedObjects() ([]string, error)",
              "doc": "DuplicateSelectedObjects duplicates all currently selected objects in one undoable step\nand returns the new root IDs.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 1259
            },
            {
              "name": "EditAssetImportSettings",
              "anchor": "Editor.EditAssetImportSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditAssetImportSettings(relPath, label string, edit func(f *importsettings.File)) error",
              "doc": "EditAssetImportSettings reads the sidecar for relPath (creating an empty version 1 file when absent), applies edit, prunes empty sections, validates and encodes the result through importsettings.Encode (or removes the sidecar when every section is cleared), and writes it on disk as one undoable History step.\nUndo restores the exact previous sidecar bytes, or removes a sidecar that did not exist before.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 524
            },
            {
              "name": "EditBrief",
              "anchor": "Editor.EditBrief",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditBrief(label string, edit func(b *project.Brief)) error",
              "doc": "EditBrief applies edit to a copy of the project's brief (creating version 1 when none exists yet),\nvalidates and encodes it in canonical YAML, writes brief.yaml when a project is open, and records\nthe change as one undoable step in Editor.History.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 444
            },
            {
              "name": "EditFirstRunFromConnect",
              "anchor": "Editor.EditFirstRunFromConnect",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditFirstRunFromConnect()",
              "doc": "EditFirstRunFromConnect returns from Connect in place back to Step 1 on the Start Screen, keeping idea and name.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1151
            },
            {
              "name": "EditMaterial",
              "anchor": "Editor.EditMaterial",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditMaterial(label string, edit func(m *resource.Material) error) error",
              "doc": "EditMaterial applies edit to a copy of the open resource.Material, validates it with resource.Encode, records an undoable command on Editor.History, and applies the change live through resource.Library.Reload so the preview and every viewport object using that material update immediately.\n",
              "file": "pkg/editor/materials.go",
              "line": 685
            },
            {
              "name": "EditParticleEmitter",
              "anchor": "Editor.EditParticleEmitter",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditParticleEmitter(label string, edit func(cfg *particles.Config) error) error",
              "doc": "EditParticleEmitter applies edit to a copy of the currently targeted particle emitter config (root or active sub-emitter), validates it, records an undoable command, and reloads the live preview without resetting running particles.\n",
              "file": "pkg/editor/particles.go",
              "line": 426
            },
            {
              "name": "EditPlanStep",
              "anchor": "Editor.EditPlanStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditPlanStep(stepNumber int) error",
              "doc": "EditPlanStep opens (or toggles closed) the inline editor for stepNumber (1-based). Passing 0 closes the editor.\n",
              "file": "pkg/editor/plan.go",
              "line": 1227
            },
            {
              "name": "EditProject",
              "anchor": "Editor.EditProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditProject(label string, edit func(f *project.File)) error",
              "doc": "EditProject applies edit to a copy of the open project file and, when the result passes project.Validate, makes it the project as one undoable step labeled label. An edit Validate refuses changes nothing and returns its error; so does any edit while playing (ErrPlaying) or without a project (ErrNoProject).\n",
              "file": "pkg/editor/project.go",
              "line": 321
            },
            {
              "name": "EditSelected",
              "anchor": "Editor.EditSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditSelected(label string, fn func(id string) error) error",
              "doc": "EditSelected executes fn for every currently selected object inside a single History.Group\nstep labeled label, so one Undo reverts every object to its own prior state. If any call\nreturns an error, all earlier edits in the group are rolled back and the error is returned.\n",
              "file": "pkg/editor/selection.go",
              "line": 287
            },
            {
              "name": "EditStoppedPlan",
              "anchor": "Editor.EditStoppedPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditStoppedPlan() error",
              "doc": "EditStoppedPlan returns a stopped plan to Draft phase so the person can revise answers or steps.\n",
              "file": "pkg/editor/plan.go",
              "line": 1676
            },
            {
              "name": "EditingDataTableReviewCell",
              "anchor": "Editor.EditingDataTableReviewCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditingDataTableReviewCell() (key, col string, ok bool)",
              "doc": "EditingDataTableReviewCell returns the record key and column currently being edited inline, if any.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1472
            },
            {
              "name": "EditorSettingsOpen",
              "anchor": "Editor.EditorSettingsOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditorSettingsOpen() bool",
              "doc": "EditorSettingsOpen reports whether the Settings view is currently open on an Editor or Agent page (General, Viewport, Shortcuts, Game brief, or Project rules).\n",
              "file": "pkg/editor/settings.go",
              "line": 1158
            },
            {
              "name": "EditorSettingsTab",
              "anchor": "Editor.EditorSettingsTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) EditorSettingsTab() EditorSettingsTab",
              "doc": "EditorSettingsTab returns the active page in the Editor Settings dialog.\n",
              "file": "pkg/editor/settings.go",
              "line": 1189
            },
            {
              "name": "EffectiveCamera3D",
              "anchor": "Editor.EffectiveCamera3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EffectiveCamera3D(w, h float32) *scene3d.Camera",
              "doc": "EffectiveCamera3D returns the scene3d.Camera the 3D viewport currently draws through: the scene's\nactive 3D camera when LookThroughCamera3D is true, and Camera3D.SceneCamera otherwise.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 502
            },
            {
              "name": "EffectiveExportTargets",
              "anchor": "Editor.EffectiveExportTargets",
              "recv": "*Editor",
              "decl": "func (e *Editor) EffectiveExportTargets() []string",
              "doc": "EffectiveExportTargets returns the build targets that an \"all presets\" build targets for the open project: game.yaml's BuildTargets when presets are configured, otherwise SteamPlatforms for the steam channel or DefaultPlatforms.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 519
            },
            {
              "name": "EffectiveGridSize",
              "anchor": "Editor.EffectiveGridSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) EffectiveGridSize() float32",
              "doc": "EffectiveGridSize returns the active grid snap step along X, defaulting to the active layer's tile width when it has a tilemap, or 8 otherwise.\n",
              "file": "pkg/editor/snap.go",
              "line": 338
            },
            {
              "name": "EffectiveGridStep",
              "anchor": "Editor.EffectiveGridStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) EffectiveGridStep() (stepX, stepY float32)",
              "doc": "EffectiveGridStep returns the active (X, Y) grid snap step: GridSize when explicitly set (> 0),\nelse the active layer's tilemap tile size when it has one, else (8, 8).\n",
              "file": "pkg/editor/snap.go",
              "line": 327
            },
            {
              "name": "EffectiveRotationSnapDeg",
              "anchor": "Editor.EffectiveRotationSnapDeg",
              "recv": "*Editor",
              "decl": "func (e *Editor) EffectiveRotationSnapDeg() float32",
              "doc": "EffectiveRotationSnapDeg returns the active rotation snap step in degrees, defaulting to 15 when unset or non-positive.\n",
              "file": "pkg/editor/snap.go",
              "line": 344
            },
            {
              "name": "EffectiveScaleSnapStep",
              "anchor": "Editor.EffectiveScaleSnapStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) EffectiveScaleSnapStep() float32",
              "doc": "EffectiveScaleSnapStep returns the active scale snap step, defaulting to 0.25 when unset or non-positive.\n",
              "file": "pkg/editor/snap.go",
              "line": 352
            },
            {
              "name": "EffectiveShortcut",
              "anchor": "Editor.EffectiveShortcut",
              "recv": "*Editor",
              "decl": "func (e *Editor) EffectiveShortcut(cmdID string) string",
              "doc": "EffectiveShortcut returns the active canonical shortcut for cmdID, applying any user override\nstored in EditorSettings.Shortcuts on top of the command's registered default.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 205
            },
            {
              "name": "EmitToastEvent",
              "anchor": "Editor.EmitToastEvent",
              "recv": "*Editor",
              "decl": "func (e *Editor) EmitToastEvent(ev ToastEvent) *ToastHandle",
              "doc": "EmitToastEvent routes a canonical event from the Spec's Feedback channels table to the\neditor's toast queue and returns a *ToastHandle for updating progress, transitioning a\nprogress toast to success or error, canceling associated work, or dismissing it.\n",
              "file": "pkg/editor/toasts.go",
              "line": 583
            },
            {
              "name": "EnabledAutomationsCount",
              "anchor": "Editor.EnabledAutomationsCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) EnabledAutomationsCount() int",
              "doc": "EnabledAutomationsCount returns how many automations are currently enabled.\n",
              "file": "pkg/editor/automations.go",
              "line": 294
            },
            {
              "name": "EnabledMCPToolCount",
              "anchor": "Editor.EnabledMCPToolCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) EnabledMCPToolCount() (enabled, total int)",
              "doc": "EnabledMCPToolCount returns how many registered MCP tools are enabled and the total registered count.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1004
            },
            {
              "name": "EndAgentStep",
              "anchor": "Editor.EndAgentStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndAgentStep()",
              "doc": "EndAgentStep clears the objects currently touched by the agent so manual edits to them are allowed again,\nand moves the header state to AgentStatePendingReview when pending turn changes exist, or AgentStateIdle otherwise.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 492
            },
            {
              "name": "EndAgentTurn",
              "anchor": "Editor.EndAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndAgentTurn(summary string) error",
              "doc": "EndAgentTurn marks the currently working agent turn as finished (AgentTurnPending) so the person\ncan review, revert/restore individual changes, Keep as one undo step, or Revert.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 580
            },
            {
              "name": "EndCameraBoundsDrag",
              "anchor": "Editor.EndCameraBoundsDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndCameraBoundsDrag() bool",
              "doc": "EndCameraBoundsDrag finishes an active camera.bounds drag and commits the new bounds as a\nsingle undoable command on History. Returns true when a change was committed.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 899
            },
            {
              "name": "EndCameraDrag",
              "anchor": "Editor.EndCameraDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndCameraDrag() bool",
              "doc": "EndCameraDrag finishes an active camera handle drag and commits the new position as a\nsingle undoable command on History. It returns true when a change was committed.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 722
            },
            {
              "name": "EndCheckpointTurn",
              "anchor": "Editor.EndCheckpointTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndCheckpointTurn(detail string) (*CheckpointSummary, error)",
              "doc": "EndCheckpointTurn finalizes the currently active checkpoint turn, persists its manifest (or cleans up\nan empty regular turn that touched no files), enforces the checkpoint size cap, and refreshes History.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 966
            },
            {
              "name": "EndComponentGizmoDrag3D",
              "anchor": "Editor.EndComponentGizmoDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndComponentGizmoDrag3D() bool",
              "doc": "EndComponentGizmoDrag3D finishes an active 3D component gizmo drag and commits all edits made\nduring the drag as one undoable step in Editor.History. Returns true when a step was committed.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 1128
            },
            {
              "name": "EndDrag2D",
              "anchor": "Editor.EndDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndDrag2D() bool",
              "doc": "EndDrag2D finishes the drag in progress and records what it changed as one undoable step, which Undo takes back to the object as it was before the drag. It reports false, recording nothing, when no drag is under way or the drag changed nothing.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 1152
            },
            {
              "name": "EndFly3D",
              "anchor": "Editor.EndFly3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndFly3D()",
              "doc": "EndFly3D stops flying (BeginFly3D); the camera stays where it flew to. A flight that neither turned nor moved the camera, such as a plain right-click, puts back the orthographic projection it started from.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 327
            },
            {
              "name": "EndGizmoDrag3D",
              "anchor": "Editor.EndGizmoDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndGizmoDrag3D() bool",
              "doc": "EndGizmoDrag3D finishes an active 3D gizmo drag and commits a single undoable command to History.\nReturns true if a transform change was committed. A drag that would shear a descendant's sprite is dropped, restoring the pre-drag transform.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 1782
            },
            {
              "name": "EndGridMapStroke",
              "anchor": "Editor.EndGridMapStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndGridMapStroke()",
              "doc": "EndGridMapStroke finishes an active GridMap stroke and commits all modified cells as one undoable History step.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1213
            },
            {
              "name": "EndHUDTouchDrag",
              "anchor": "Editor.EndHUDTouchDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndHUDTouchDrag() error",
              "doc": "EndHUDTouchDrag finishes an active touch control drag and writes the new offset to the screen file in one undo step.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1927
            },
            {
              "name": "EndHandleDrag3D",
              "anchor": "Editor.EndHandleDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndHandleDrag3D() bool",
              "doc": "EndHandleDrag3D commits an active light/camera handle drag as a single undoable History step.\n",
              "file": "pkg/editor/handles3d.go",
              "line": 819
            },
            {
              "name": "EndImagePivotDrag",
              "anchor": "Editor.EndImagePivotDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndImagePivotDrag() error",
              "doc": "EndImagePivotDrag commits an active pivot drag to the image's *.import.yaml sidecar as one undoable History step.\n",
              "file": "pkg/editor/asset_import_pivot.go",
              "line": 480
            },
            {
              "name": "EndInspectorScrub",
              "anchor": "Editor.EndInspectorScrub",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndInspectorScrub() bool",
              "doc": "EndInspectorScrub finishes the active scrub and commits the net change as one undo step.\nIt returns false (recording nothing) when no scrub is active or the value did not change.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 884
            },
            {
              "name": "EndMarquee2D",
              "anchor": "Editor.EndMarquee2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndMarquee2D() []string",
              "doc": "EndMarquee2D finishes an active 2D marquee drag, applies the selection, and returns\nthe resulting selected object IDs.\n",
              "file": "pkg/editor/marquee.go",
              "line": 100
            },
            {
              "name": "EndPluginDrag2D",
              "anchor": "Editor.EndPluginDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndPluginDrag2D(x, y float32) bool",
              "doc": "EndPluginDrag2D finishes an active plugin tool drag at canvas coordinates (x, y), calling OnDragEnd.\n",
              "file": "pkg/editor/plugin.go",
              "line": 676
            },
            {
              "name": "EndPluginDrag3D",
              "anchor": "Editor.EndPluginDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndPluginDrag3D(sx, sy float32) bool",
              "doc": "EndPluginDrag3D finishes an active 3D plugin tool drag at viewport pixel (sx, sy), calling OnDragEnd3D with the final pick ray.\n",
              "file": "pkg/editor/plugin.go",
              "line": 559
            },
            {
              "name": "EndRegionDrag",
              "anchor": "Editor.EndRegionDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndRegionDrag() error",
              "doc": "EndRegionDrag commits the dragged, resized, or newly drawn region as a single undoable EditProject step.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 889
            },
            {
              "name": "EndReview",
              "anchor": "Editor.EndReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndReview(kept bool)",
              "doc": "EndReview closes the general interactive edit review. When kept is true and AutoSave is enabled, any dirty changes schedule automatic saving after AutoSaveDelay (2 s).\n",
              "file": "pkg/editor/autosave.go",
              "line": 189
            },
            {
              "name": "EndRigDrag",
              "anchor": "Editor.EndRigDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndRigDrag() bool",
              "doc": "EndRigDrag commits the active rig handle drag as a single undoable command on Editor.History.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 601
            },
            {
              "name": "EndRoomDrag",
              "anchor": "Editor.EndRoomDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndRoomDrag() bool",
              "doc": "EndRoomDrag finishes the active room drag and commits the move, resize, or newly created\nroom as a single undoable History step. Returns true when a change was committed.\n",
              "file": "pkg/editor/rooms.go",
              "line": 1092
            },
            {
              "name": "EndShapeDrag2D",
              "anchor": "Editor.EndShapeDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndShapeDrag2D() bool",
              "doc": "EndShapeDrag2D finishes the active shape drag and commits it via SetComponentField as one undoable step.\nIt returns true when a change was recorded.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 742
            },
            {
              "name": "EndSketchDrag",
              "anchor": "Editor.EndSketchDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndSketchDrag() (SketchMark, bool)",
              "doc": "EndSketchDrag commits the in-progress sketch drag as a numbered mark in scene coordinates,\nor selects the clicked badge when no drag occurred.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1087
            },
            {
              "name": "EndTerrainStroke",
              "anchor": "Editor.EndTerrainStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndTerrainStroke() bool",
              "doc": "EndTerrainStroke completes the active terrain brush stroke and records all\nmodified samples as a single undoable command in History. Returns true when\na history entry was recorded.\n",
              "file": "pkg/editor/terrain.go",
              "line": 1128
            },
            {
              "name": "EndTileStroke",
              "anchor": "Editor.EndTileStroke",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndTileStroke()",
              "doc": "EndTileStroke ends the stroke under way, recording every cell it changed as one undo step; a stroke that changed nothing records none.\nA pick stroke made with the Pick tool that picked a tile makes Paint the active tool, so the picked tile paints next.\nA SelectRegion stroke updates TileSelection without recording an undo step.\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 273
            },
            {
              "name": "EndViewport3DDrag",
              "anchor": "Editor.EndViewport3DDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) EndViewport3DDrag()",
              "doc": "EndViewport3DDrag finishes any active terrain brush stroke, 3D plugin tool drag, 3D handle drag, 3D component gizmo drag, 3D transform gizmo drag, or camera drag.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 2144
            },
            {
              "name": "EnqueuePermissionRequest",
              "anchor": "Editor.EnqueuePermissionRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) EnqueuePermissionRequest(eval PermissionEvaluation, summary string, onResolve func(PermissionResponse)) PendingPermissionRequest",
              "doc": "EnqueuePermissionRequest adds a pending Ask permission request to the editor so the person can answer Allow once, Always, or Deny.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1660
            },
            {
              "name": "EnsureAgentRequest",
              "anchor": "Editor.EnsureAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) EnsureAgentRequest(prompt string) (uint64, <-chan struct{})",
              "doc": "EnsureAgentRequest returns the active request ID and stop channel, or starts an implicit live request\nwhen an external MCP client begins calling tools while the editor is idle.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 314
            },
            {
              "name": "EnterAgentContext",
              "anchor": "Editor.EnterAgentContext",
              "recv": "*Editor",
              "decl": "func (e *Editor) EnterAgentContext()",
              "doc": "EnterAgentContext marks subsequent History edits executed on the editor's goroutine as authored by the agent\nuntil the matching LeaveAgentContext call. Used by editormcp while executing agent tool calls.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 93
            },
            {
              "name": "EnvironmentPanelOpen",
              "anchor": "Editor.EnvironmentPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) EnvironmentPanelOpen() bool",
              "doc": "EnvironmentPanelOpen reports whether the Scene Environment panel is open.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 545
            },
            {
              "name": "EraseGridMapCell",
              "anchor": "Editor.EraseGridMapCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) EraseGridMapCell(c world3d.GridCoord) error",
              "doc": "EraseGridMapCell clears cell c in the open GridMap as an undoable command.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 787
            },
            {
              "name": "EraseTerrain",
              "anchor": "Editor.EraseTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) EraseTerrain(layer string, col, row int, terrainName string) error",
              "doc": "EraseTerrain removes terrain at (col, row) on layer's layered tilemap and updates its neighbors through the same autotile rules as tilemap.Tilemap.SetAutotile, as one undoable command.\n",
              "file": "pkg/editor/tilepaint.go",
              "line": 447
            },
            {
              "name": "EraseTile",
              "anchor": "Editor.EraseTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) EraseTile(layer string, col, row int) error",
              "doc": "EraseTile clears the tile at (col, row) (setting its ID to 0) on layer's inline tilemap as an undoable command, on a layered grid in the tile layer ActiveTileLayer names.\n",
              "file": "pkg/editor/tilepaint.go",
              "line": 233
            },
            {
              "name": "EraseTileLine",
              "anchor": "Editor.EraseTileLine",
              "recv": "*Editor",
              "decl": "func (e *Editor) EraseTileLine(layer string, col0, row0, col1, row1 int) error",
              "doc": "EraseTileLine erases a Bresenham line from (col0, row0) to (col1, row1) as one undoable command.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 726
            },
            {
              "name": "EraseTileRect",
              "anchor": "Editor.EraseTileRect",
              "recv": "*Editor",
              "decl": "func (e *Editor) EraseTileRect(layer string, col0, row0, col1, row1 int) error",
              "doc": "EraseTileRect erases the inclusive rectangle from (col0, row0) to (col1, row1) as one undoable command.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 666
            },
            {
              "name": "EvaluateBuildReadiness",
              "anchor": "Editor.EvaluateBuildReadiness",
              "recv": "*Editor",
              "decl": "func (e *Editor) EvaluateBuildReadiness(platform string) []BuildReadinessItem",
              "doc": "EvaluateBuildReadiness computes and returns the readiness checklist for platform against the open project.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1283
            },
            {
              "name": "EvaluatePermission",
              "anchor": "Editor.EvaluatePermission",
              "recv": "*Editor",
              "decl": "func (e *Editor) EvaluatePermission(req PermissionRequest) PermissionEvaluation",
              "doc": "EvaluatePermission evaluates req against the editor's current permission rules (including held external loosenings).\nIf the project's permissions.yaml failed to load, EvaluatePermission fails closed with PermissionDeny.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1564
            },
            {
              "name": "EvaluatePlanPermissions",
              "anchor": "Editor.EvaluatePlanPermissions",
              "recv": "*Editor",
              "decl": "func (e *Editor) EvaluatePlanPermissions(p *AgentPlan) PlanPermissionSummary",
              "doc": "EvaluatePlanPermissions inspects plan's live steps against the editor's active permission settings\nand produces the human-readable footer reason (for example \"Planned because it edits Go and 3 files\").\n",
              "file": "pkg/editor/plan.go",
              "line": 636
            },
            {
              "name": "ExecuteCodeReviewCheckRun",
              "anchor": "Editor.ExecuteCodeReviewCheckRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExecuteCodeReviewCheckRun(ctx context.Context, run *CodeReviewCheckRun) (CodeReviewCheckResult, error)",
              "doc": "ExecuteCodeReviewCheckRun runs nsgo check and nsgo test against the pending Go overlay for run.\nSafe to call off the editor's UI goroutine.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1197
            },
            {
              "name": "ExecuteCommand",
              "anchor": "Editor.ExecuteCommand",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExecuteCommand(id string) error",
              "doc": "ExecuteCommand runs the active command with ID id.\nIt returns ErrCommandNotFound if id is not active and ErrCommandDisabled if the command is disabled.\n",
              "file": "pkg/editor/commands.go",
              "line": 2854
            },
            {
              "name": "ExecutePaletteItem",
              "anchor": "Editor.ExecutePaletteItem",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExecutePaletteItem(id string) error",
              "doc": "ExecutePaletteItem runs the item identified by a palette item ID returned by PaletteItems.\n",
              "file": "pkg/editor/palette.go",
              "line": 374
            },
            {
              "name": "ExitHistoryPreview",
              "anchor": "Editor.ExitHistoryPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExitHistoryPreview()",
              "doc": "ExitHistoryPreview leaves point-in-time preview mode and returns the viewport to live editing.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 319
            },
            {
              "name": "ExpandedAgentRequestID",
              "anchor": "Editor.ExpandedAgentRequestID",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExpandedAgentRequestID() string",
              "doc": "ExpandedAgentRequestID returns the ID of the folded earlier request currently expanded, or \"\".\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1035
            },
            {
              "name": "ExportBuildOptionsFromPanel",
              "anchor": "Editor.ExportBuildOptionsFromPanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportBuildOptionsFromPanel() ExportBuildOptions",
              "doc": "ExportBuildOptionsFromPanel returns the ExportBuildOptions currently configured in the Export panel controls.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 755
            },
            {
              "name": "ExportChannel",
              "anchor": "Editor.ExportChannel",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportChannel() string",
              "doc": "ExportChannel returns the distribution channel selected in the Export panel (\"\" means nsgo.yaml's default).\n",
              "file": "pkg/editor/export_panel.go",
              "line": 536
            },
            {
              "name": "ExportCredits",
              "anchor": "Editor.ExportCredits",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportCredits() ExportCreditsReport",
              "doc": "ExportCredits returns the most recent pre-flight credits check report.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 637
            },
            {
              "name": "ExportDryRun",
              "anchor": "Editor.ExportDryRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportDryRun() bool",
              "doc": "ExportDryRun reports whether the Export panel's Dry Run toggle is enabled.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 577
            },
            {
              "name": "ExportLastCommandLine",
              "anchor": "Editor.ExportLastCommandLine",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportLastCommandLine() string",
              "doc": "ExportLastCommandLine returns the exact POSIX-quoted `go ... tool nsgo build ...` command line from the most recent build or dry run.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 745
            },
            {
              "name": "ExportLastError",
              "anchor": "Editor.ExportLastError",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportLastError() error",
              "doc": "ExportLastError returns the error from the last completed or rejected release build, or nil.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 725
            },
            {
              "name": "ExportLastOutputDir",
              "anchor": "Editor.ExportLastOutputDir",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportLastOutputDir() string",
              "doc": "ExportLastOutputDir returns the resolved output directory of the last planned or completed build.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 735
            },
            {
              "name": "ExportNavWarningMeta",
              "anchor": "Editor.ExportNavWarningMeta",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportNavWarningMeta() string",
              "doc": "ExportNavWarningMeta returns the warning badge label for the Export page in the Settings navigation sidebar (for example \"iOS\" when an iOS preset needs a team ID, or \"Credits\" when asset credits are missing), or empty when every configured preset is ready.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 152
            },
            {
              "name": "ExportOutput",
              "anchor": "Editor.ExportOutput",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportOutput() string",
              "doc": "ExportOutput returns the open project's export.output directory, or empty when unset.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 283
            },
            {
              "name": "ExportOutputLines",
              "anchor": "Editor.ExportOutputLines",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportOutputLines() []string",
              "doc": "ExportOutputLines returns a copy of every line currently in the Export panel's Output log.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 694
            },
            {
              "name": "ExportOutputText",
              "anchor": "Editor.ExportOutputText",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportOutputText() string",
              "doc": "ExportOutputText returns the Export panel's Output log joined with newlines.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 704
            },
            {
              "name": "ExportPanelOpen",
              "anchor": "Editor.ExportPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportPanelOpen() bool",
              "doc": "ExportPanelOpen reports whether the Settings view is open on the Export page.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 99
            },
            {
              "name": "ExportPresetReadiness",
              "anchor": "Editor.ExportPresetReadiness",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportPresetReadiness(platform string) (ready bool, detail string)",
              "doc": "ExportPresetReadiness reports whether a platform export preset is ready to build (\"Ready\") or needs setup (\"Set up\"), along with a concise detail string matching docs/design/editor/Settings.dc.html.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 118
            },
            {
              "name": "ExportPresets",
              "anchor": "Editor.ExportPresets",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportPresets() []project.Preset",
              "doc": "ExportPresets returns a cloned slice of the open project's export presets in build order.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 320
            },
            {
              "name": "ExportProfilerTrace",
              "anchor": "Editor.ExportProfilerTrace",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportProfilerTrace(w io.Writer) error",
              "doc": "ExportProfilerTrace exports all recorded frames (and their zones) as Chrome/Perfetto Trace Event Format JSON through debug.Profiler.WriteChromeTrace.\n",
              "file": "pkg/editor/profiler.go",
              "line": 1061
            },
            {
              "name": "ExportProfilerTraceFile",
              "anchor": "Editor.ExportProfilerTraceFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportProfilerTraceFile(path string) error",
              "doc": "ExportProfilerTraceFile writes the recorded profiler frames as Chrome/Perfetto Trace Event Format JSON to path.\n",
              "file": "pkg/editor/profiler.go",
              "line": 1146
            },
            {
              "name": "ExportReleaseNotes",
              "anchor": "Editor.ExportReleaseNotes",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportReleaseNotes() string",
              "doc": "ExportReleaseNotes returns the release notes file path configured in the Export panel.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 560
            },
            {
              "name": "ExportRunning",
              "anchor": "Editor.ExportRunning",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportRunning() bool",
              "doc": "ExportRunning reports whether a release build or dry run is currently in flight.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 684
            },
            {
              "name": "ExportSelectedTargets",
              "anchor": "Editor.ExportSelectedTargets",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportSelectedTargets() []string",
              "doc": "ExportSelectedTargets returns the subset of targets chosen for building in the Export panel, or nil when building all presets.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 591
            },
            {
              "name": "ExportToastHandle",
              "anchor": "Editor.ExportToastHandle",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExportToastHandle() *ToastHandle",
              "doc": "ExportToastHandle returns the active export build's *ToastHandle, or nil when no non-dry-run export is running.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 1016
            },
            {
              "name": "ExternalEditorLabel",
              "anchor": "Editor.ExternalEditorLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExternalEditorLabel() string",
              "doc": "ExternalEditorLabel returns the button label for opening a file externally, such as \"Open in GoLand\".\n",
              "file": "pkg/editor/code_review.go",
              "line": 1105
            },
            {
              "name": "ExtractLayerTilemap",
              "anchor": "Editor.ExtractLayerTilemap",
              "recv": "*Editor",
              "decl": "func (e *Editor) ExtractLayerTilemap(layerName, refName string) error",
              "doc": "ExtractLayerTilemap moves layerName's direct tilemap into top-level SceneDoc.Tilemaps[refName] and replaces the layer's tilemap with a Ref pointing to refName, as an undoable command. It refuses a layer without a tilemap, a layer already using Ref, an inherited base-owned layer, an empty or whitespace-padded refName, or a refName already present in SceneDoc.Tilemaps.\n",
              "file": "pkg/editor/tilemap_setup.go",
              "line": 692
            },
            {
              "name": "FailTask",
              "anchor": "Editor.FailTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) FailTask(id, errMsg string) error",
              "doc": "FailTask moves task id to TaskFailed, releases its holds, and keeps it visible until opened, retried, or dismissed.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1841
            },
            {
              "name": "FetchingPack",
              "anchor": "Editor.FetchingPack",
              "recv": "*Editor",
              "decl": "func (e *Editor) FetchingPack() string",
              "doc": "FetchingPack names the pack the library panel is fetching from a remote library, or is empty.\n",
              "file": "pkg/editor/library.go",
              "line": 115
            },
            {
              "name": "FileBrowserOpen",
              "anchor": "Editor.FileBrowserOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) FileBrowserOpen() bool",
              "doc": "FileBrowserOpen reports whether the full Project Files browser panel is open.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 236
            },
            {
              "name": "FillGridMapBox",
              "anchor": "Editor.FillGridMapBox",
              "recv": "*Editor",
              "decl": "func (e *Editor) FillGridMapBox(minC, maxC world3d.GridCoord, tileID uint16, orient uint8) error",
              "doc": "FillGridMapBox fills every cell in the inclusive box [minC, maxC] with tileID and orient (0..23)\nin a single undoable command. Setting tileID to 0 clears the box.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 813
            },
            {
              "name": "FillTileRect",
              "anchor": "Editor.FillTileRect",
              "recv": "*Editor",
              "decl": "func (e *Editor) FillTileRect(layer string, col0, row0, col1, row1, tileID int) error",
              "doc": "FillTileRect fills the inclusive rectangle from (col0, row0) to (col1, row1) on layer's inline tilemap\nwith tileID (0 erases) as one undoable command.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 611
            },
            {
              "name": "FilterShortcutCommands",
              "anchor": "Editor.FilterShortcutCommands",
              "recv": "*Editor",
              "decl": "func (e *Editor) FilterShortcutCommands(query string, targetOS core.OS) []EditorCommand",
              "doc": "FilterShortcutCommands returns active commands matching query across command label, description,\nID, category, keywords, scope name, and effective shortcut (both canonical and platform-formatted).\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 446
            },
            {
              "name": "FilteredHistoryEntries",
              "anchor": "Editor.FilteredHistoryEntries",
              "recv": "*Editor",
              "decl": "func (e *Editor) FilteredHistoryEntries(filter HistoryFilter) []HistoryEntry",
              "doc": "FilteredHistoryEntries returns the entries matching filter (or the panel's active filter when empty), newest first.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 200
            },
            {
              "name": "FilteredOutputEntries",
              "anchor": "Editor.FilteredOutputEntries",
              "recv": "*Editor",
              "decl": "func (e *Editor) FilteredOutputEntries() []OutputEntry",
              "doc": "FilteredOutputEntries returns the Output panel entries visible under the current Errors-only filter. It is safe to call from any goroutine.\n",
              "file": "pkg/editor/output_panel.go",
              "line": 158
            },
            {
              "name": "FilteredProjectTemplates",
              "anchor": "Editor.FilteredProjectTemplates",
              "recv": "*Editor",
              "decl": "func (e *Editor) FilteredProjectTemplates() []ProjectTemplate",
              "doc": "FilteredProjectTemplates returns the templates matching the active Start Screen filter chip (\"all\", \"2d\", or \"3d\").\n",
              "file": "pkg/editor/start_screen.go",
              "line": 365
            },
            {
              "name": "FindObject",
              "anchor": "Editor.FindObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) FindObject(id string) (*sceneformat.ObjectDoc, int, int)",
              "doc": "FindObject locates the object with ID id anywhere in the scene, nested children included, returning it with its layer index and its index among its siblings (the children of its parent, or its layer's top-level objects). It returns nil, -1, -1 when the open scene does not hold id, as for an object only an instanced or inherited scene adds.\n",
              "file": "pkg/editor/state.go",
              "line": 2052
            },
            {
              "name": "FindObjectUsages",
              "anchor": "Editor.FindObjectUsages",
              "recv": "*Editor",
              "decl": "func (e *Editor) FindObjectUsages(id string) (ObjectUsagesResult, error)",
              "doc": "FindObjectUsages searches the open project for usages of object id: references to its instanced Scene\n(when obj.Scene is set), usages of its Prefab (when obj.Prefab is set), or occurrences of its ID.\nReturns ErrNoProject when no project is open.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 641
            },
            {
              "name": "FindObjectYAMLLine",
              "anchor": "Editor.FindObjectYAMLLine",
              "recv": "*Editor",
              "decl": "func (e *Editor) FindObjectYAMLLine(objectID string) (string, int, error)",
              "doc": "FindObjectYAMLLine locates the 1-based line number where objectID begins in the open scene's\nYAML and returns (path, line, nil). When objectID is empty, it returns line 1 of the open scene.\nWhile the open scene has no unsaved edits and a file on disk, line numbers match the file on\ndisk (preserving hand-written comments and layout); otherwise they match Editor.SaveYAML.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 506
            },
            {
              "name": "FindReferences",
              "anchor": "Editor.FindReferences",
              "recv": "*Editor",
              "decl": "func (e *Editor) FindReferences(target string) ([]refs.Ref, error)",
              "doc": "FindReferences returns every reference to target across the open project as\nrefs.Scan reports them, preserving file, 1-based line, column, field and value.\ntarget is a slash-separated path from the project root (or a directory path,\nmatching references to that directory or files inside it). It returns\nErrNoProject when no project is open.\n",
              "file": "pkg/editor/search.go",
              "line": 150
            },
            {
              "name": "FindResolvedObject",
              "anchor": "Editor.FindResolvedObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) FindResolvedObject(id string) (*sceneformat.ObjectDoc, string)",
              "doc": "FindResolvedObject locates object id in Editor.Doc or, for instanced and inherited objects,\nin the resolved BuiltScene document, returning the ObjectDoc and its layer name.\n",
              "file": "pkg/editor/overrides.go",
              "line": 89
            },
            {
              "name": "FindUsages",
              "anchor": "Editor.FindUsages",
              "recv": "*Editor",
              "decl": "func (e *Editor) FindUsages(target string) (*UsagesReport, error)",
              "doc": "FindUsages scans the open project for every usage of target across scenes, prefab variants, data tables, Go source files (via go/parser), and other project files.\n",
              "file": "pkg/editor/usages.go",
              "line": 452
            },
            {
              "name": "FinishAgentToolStep",
              "anchor": "Editor.FinishAgentToolStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) FinishAgentToolStep(stepID, text, detail string, objects []string, failed bool)",
              "doc": "FinishAgentToolStep marks stepID done (or failed) with its plain-words result summary.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 409
            },
            {
              "name": "FinishCheckpointTurnOnError",
              "anchor": "Editor.FinishCheckpointTurnOnError",
              "recv": "*Editor",
              "decl": "func (e *Editor) FinishCheckpointTurnOnError(detail string) (*CheckpointSummary, error)",
              "doc": "FinishCheckpointTurnOnError finalizes the active checkpoint turn after a failure or panic:\nif no files were captured (and the turn is not a pre-start task/automation checkpoint), it discards\nthe empty checkpoint; otherwise it persists the checkpoint with detail so partial edits stay restorable.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 689
            },
            {
              "name": "FinishDataTableReviewCellEdit",
              "anchor": "Editor.FinishDataTableReviewCellEdit",
              "recv": "*Editor",
              "decl": "func (e *Editor) FinishDataTableReviewCellEdit()",
              "doc": "FinishDataTableReviewCellEdit closes the active inline cell editor.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1459
            },
            {
              "name": "FinishFirstRunConnect",
              "anchor": "Editor.FinishFirstRunConnect",
              "recv": "*Editor",
              "decl": "func (e *Editor) FinishFirstRunConnect() error",
              "doc": "FinishFirstRunConnect completes Connect in place once an agent has answered or an API key is verified,\nsyncs the #1200 Agent mode (and persists a validated API key via Editor.Keychain when available),\nand immediately opens Step 3 (The first plan) without creating any project folder on disk.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1170
            },
            {
              "name": "FinishMerge",
              "anchor": "Editor.FinishMerge",
              "recv": "*Editor",
              "decl": "func (e *Editor) FinishMerge() error",
              "doc": "FinishMerge validates and writes the resolved scene, runs game check and a short playtest,\nstages the resolved scene, and commits the merge when backed by Git.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 695
            },
            {
              "name": "FinishReviewYAMLEdit",
              "anchor": "Editor.FinishReviewYAMLEdit",
              "recv": "*Editor",
              "decl": "func (e *Editor) FinishReviewYAMLEdit(changeID string) error",
              "doc": "FinishReviewYAMLEdit exits in-place YAML editing (Done). Refused with ErrReviewYAMLInvalid while the YAML does not parse.\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 559
            },
            {
              "name": "FinishSketch",
              "anchor": "Editor.FinishSketch",
              "recv": "*Editor",
              "decl": "func (e *Editor) FinishSketch()",
              "doc": "FinishSketch exits sketch drawing mode (Done / Esc) while keeping all drawn marks on the viewport\nuntil they are sent, cleared, or kept.\n",
              "file": "pkg/editor/sketch.go",
              "line": 515
            },
            {
              "name": "FirstRunAPIKey",
              "anchor": "Editor.FirstRunAPIKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunAPIKey() string",
              "doc": "FirstRunAPIKey returns the in-memory API key input (never written to disk).\n",
              "file": "pkg/editor/first_run.go",
              "line": 1076
            },
            {
              "name": "FirstRunAPIKeyStoredInKeychain",
              "anchor": "Editor.FirstRunAPIKeyStoredInKeychain",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunAPIKeyStoredInKeychain() bool",
              "doc": "FirstRunAPIKeyStoredInKeychain reports whether the validated Start with AI API key was persisted to Editor.Keychain.\n",
              "file": "pkg/editor/first_run.go",
              "line": 583
            },
            {
              "name": "FirstRunAgentConnected",
              "anchor": "Editor.FirstRunAgentConnected",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunAgentConnected() bool",
              "doc": "FirstRunAgentConnected reports whether an agent is currently connected for Start with AI,\nincluding an active MCP client or configured API-key mode from the editor's Connect an agent flow.\n",
              "file": "pkg/editor/first_run.go",
              "line": 594
            },
            {
              "name": "FirstRunAgentOptions",
              "anchor": "Editor.FirstRunAgentOptions",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunAgentOptions() []FirstRunAgentOption",
              "doc": "FirstRunAgentOptions returns the agent choices displayed in Connect in place.\n",
              "file": "pkg/editor/first_run.go",
              "line": 815
            },
            {
              "name": "FirstRunBuildState",
              "anchor": "Editor.FirstRunBuildState",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunBuildState() FirstRunBuildSnapshot",
              "doc": "FirstRunBuildState returns a snapshot of the active Building screen state.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2083
            },
            {
              "name": "FirstRunConnectCanFinish",
              "anchor": "Editor.FirstRunConnectCanFinish",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunConnectCanFinish() bool",
              "doc": "FirstRunConnectCanFinish reports whether the Done button on Connect in place is enabled.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1141
            },
            {
              "name": "FirstRunConnectStatus",
              "anchor": "Editor.FirstRunConnectStatus",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunConnectStatus() FirstRunConnectStatus",
              "doc": "FirstRunConnectStatus returns the active Connect in place status.\n",
              "file": "pkg/editor/first_run.go",
              "line": 835
            },
            {
              "name": "FirstRunConnectSteps",
              "anchor": "Editor.FirstRunConnectSteps",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunConnectSteps() []FirstRunConnectStep",
              "doc": "FirstRunConnectSteps returns the progress checklist rows for the Connect in place card.\n",
              "file": "pkg/editor/first_run.go",
              "line": 845
            },
            {
              "name": "FirstRunConnectedAgent",
              "anchor": "Editor.FirstRunConnectedAgent",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunConnectedAgent() (kind, name string, tools int)",
              "doc": "FirstRunConnectedAgent returns the connected agent's kind, display name, and tool count,\nreflecting both Start with AI Connect and active #1200 Agent/MCP connections.\n",
              "file": "pkg/editor/first_run.go",
              "line": 612
            },
            {
              "name": "FirstRunDiagnosticsCopied",
              "anchor": "Editor.FirstRunDiagnosticsCopied",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunDiagnosticsCopied() bool",
              "doc": "FirstRunDiagnosticsCopied reports whether Copy diagnostics has been clicked in the current Connect view.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1066
            },
            {
              "name": "FirstRunFullScreenOpen",
              "anchor": "Editor.FirstRunFullScreenOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunFullScreenOpen() bool",
              "doc": "FirstRunFullScreenOpen reports whether a full-window first-run screen (Plan, Building, or Review) is active.\n",
              "file": "pkg/editor/first_run.go",
              "line": 571
            },
            {
              "name": "FirstRunPlan",
              "anchor": "Editor.FirstRunPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunPlan() *FirstRunPlan",
              "doc": "FirstRunPlan returns a copy of the active first plan, or nil when none is active.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1405
            },
            {
              "name": "FirstRunPlanCanApprove",
              "anchor": "Editor.FirstRunPlanCanApprove",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunPlanCanApprove() bool",
              "doc": "FirstRunPlanCanApprove reports whether Approve is currently enabled on the first plan.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1453
            },
            {
              "name": "FirstRunReviewState",
              "anchor": "Editor.FirstRunReviewState",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunReviewState() FirstRunReviewSnapshot",
              "doc": "FirstRunReviewState returns a read-only snapshot of the active First Review screen.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2420
            },
            {
              "name": "FirstRunSelectedAgent",
              "anchor": "Editor.FirstRunSelectedAgent",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunSelectedAgent() string",
              "doc": "FirstRunSelectedAgent returns the selected agent kind (\"claude\", \"codex\", or \"apikey\") in Connect in place.\n",
              "file": "pkg/editor/first_run.go",
              "line": 825
            },
            {
              "name": "FirstRunStage",
              "anchor": "Editor.FirstRunStage",
              "recv": "*Editor",
              "decl": "func (e *Editor) FirstRunStage() FirstRunStage",
              "doc": "FirstRunStage returns the active stage of the Start with AI first-run flow.\n",
              "file": "pkg/editor/first_run.go",
              "line": 561
            },
            {
              "name": "FitCollider3DToBounds",
              "anchor": "Editor.FitCollider3DToBounds",
              "recv": "*Editor",
              "decl": "func (e *Editor) FitCollider3DToBounds(objectID string) error",
              "doc": "FitCollider3DToBounds sizes objectID's 3D collider component (collider3d, or trigger3d\nif it has no collider3d; creating collider3d as a box if neither is present) to match\nthe local-space bounds of the object's 3D mesh or glTF model geometry as a single undo step.\n",
              "file": "pkg/editor/collider3d_gizmo.go",
              "line": 524
            },
            {
              "name": "FloodFillTile",
              "anchor": "Editor.FloodFillTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) FloodFillTile(layer string, col, row, tileID int) error",
              "doc": "FloodFillTile runs a 4-connected BFS flood fill starting at (col, row), replacing all contiguous matching tiles with tileID in a single undoable command. On a layered grid it fills the tile layer ActiveTileLayer names, where tiles match when their IDs and flips both do, and paints tileID as PaintTile does.\n",
              "file": "pkg/editor/tilepaint.go",
              "line": 258
            },
            {
              "name": "FlyLook3D",
              "anchor": "Editor.FlyLook3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) FlyLook3D(dx, dy float32)",
              "doc": "FlyLook3D turns the flying camera about its eye by a pointer's movement of dx and dy points right and down (OrbitCamera3D.Look). It does nothing unless flying, or for a movement that is not finite.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 285
            },
            {
              "name": "FlyMove3D",
              "anchor": "Editor.FlyMove3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) FlyMove3D(right, up, forward float32, fast bool, dt time.Duration)",
              "doc": "FlyMove3D moves the flying camera for dt at FlySpeed3D, flyBoost3D times as fast when fast is set: right, up and forward are each -1, 0 or 1, as the held D and A, E and Q, and W and S keys say, and a diagonal moves no faster than a straight line. It does nothing unless flying, or for a direction that is not finite.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 295
            },
            {
              "name": "Flying3D",
              "anchor": "Editor.Flying3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) Flying3D() bool",
              "doc": "Flying3D reports whether the 3D viewport's camera is flying (BeginFly3D).\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 280
            },
            {
              "name": "FocusAgentTurnReview",
              "anchor": "Editor.FocusAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusAgentTurnReview()",
              "doc": "FocusAgentTurnReview opens the Agent panel and focuses the pending review card.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 1018
            },
            {
              "name": "FocusComposer",
              "anchor": "Editor.FocusComposer",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusComposer()",
              "doc": "FocusComposer switches the right rail to the Agent panel and requests keyboard focus for the composer input.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 398
            },
            {
              "name": "FocusCutsceneReviewChange",
              "anchor": "Editor.FocusCutsceneReviewChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusCutsceneReviewChange(index int)",
              "doc": "FocusCutsceneReviewChange selects the primary clip of change index and scrubs the playhead to its start time.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1183
            },
            {
              "name": "FocusDataTableReviewRecord",
              "anchor": "Editor.FocusDataTableReviewRecord",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusDataTableReviewRecord(key string)",
              "doc": "FocusDataTableReviewRecord focuses record key in the active file so the right-hand YAML pane shows its diff.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1308
            },
            {
              "name": "FocusInAgentPanel",
              "anchor": "Editor.FocusInAgentPanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusInAgentPanel() bool",
              "doc": "FocusInAgentPanel reports whether keyboard focus is currently inside the agent panel.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 805
            },
            {
              "name": "FocusMergeConflict",
              "anchor": "Editor.FocusMergeConflict",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusMergeConflict(id string) error",
              "doc": "FocusMergeConflict focuses the conflict item with id.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 388
            },
            {
              "name": "FocusOpenAgentRequest",
              "anchor": "Editor.FocusOpenAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusOpenAgentRequest()",
              "doc": "FocusOpenAgentRequest opens the Agent panel and focuses the open waiting request or permission card.\n",
              "file": "pkg/editor/agent.go",
              "line": 1527
            },
            {
              "name": "FocusPermissionCard",
              "anchor": "Editor.FocusPermissionCard",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusPermissionCard()",
              "doc": "FocusPermissionCard opens the Agent panel and requests keyboard focus for the active permission card\n(for example when clicking the header \"Waiting for you\" chip).\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 636
            },
            {
              "name": "FocusPermissionRule",
              "anchor": "Editor.FocusPermissionRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusPermissionRule(index int)",
              "doc": "FocusPermissionRule moves focus to the 0-based rule index in Settings › Permissions.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1251
            },
            {
              "name": "FocusPluginPanel",
              "anchor": "Editor.FocusPluginPanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusPluginPanel(plugin, id string) error",
              "doc": "FocusPluginPanel focuses and highlights the docked panel id of the active plugin.\n",
              "file": "pkg/editor/palette.go",
              "line": 88
            },
            {
              "name": "FocusReviewChange",
              "anchor": "Editor.FocusReviewChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusReviewChange(changeID string) bool",
              "doc": "FocusReviewChange focuses changeID (full change ID or object ID), expands its file/kind groups if collapsed,\nmarks it seen, and frames it.\n",
              "file": "pkg/editor/review.go",
              "line": 2797
            },
            {
              "name": "FocusReviewFileRow",
              "anchor": "Editor.FocusReviewFileRow",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusReviewFileRow(filePath string) bool",
              "doc": "FocusReviewFileRow focuses a file header row in the left list so pressing X reverts/restores that file group.\n",
              "file": "pkg/editor/review.go",
              "line": 2825
            },
            {
              "name": "FocusReviewKindRow",
              "anchor": "Editor.FocusReviewKindRow",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusReviewKindRow(filePath string, kind ReviewChangeKind) bool",
              "doc": "FocusReviewKindRow focuses a kind subheader row in the left list so pressing X reverts/restores that kind group.\n",
              "file": "pkg/editor/review.go",
              "line": 2850
            },
            {
              "name": "FocusTask",
              "anchor": "Editor.FocusTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusTask(id string)",
              "doc": "FocusTask sets the focused task in the Tasks panel.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1044
            },
            {
              "name": "FocusTileReviewRegion",
              "anchor": "Editor.FocusTileReviewRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusTileReviewRegion(regionID string) bool",
              "doc": "FocusTileReviewRegion focuses regionID, switches the view to After, and highlights it in the viewport.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1870
            },
            {
              "name": "FocusUsage",
              "anchor": "Editor.FocusUsage",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusUsage(file string, refIdx int)",
              "doc": "FocusUsage selects a file (or the MOVED entry during rename review) and reference index in the References screen.\n",
              "file": "pkg/editor/usages.go",
              "line": 796
            },
            {
              "name": "FocusedAgentTaskID",
              "anchor": "Editor.FocusedAgentTaskID",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusedAgentTaskID() string",
              "doc": "FocusedAgentTaskID returns the ID of the agent task most recently opened or focused\n(for example by clicking a system notification).\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 781
            },
            {
              "name": "FocusedPluginPanel",
              "anchor": "Editor.FocusedPluginPanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusedPluginPanel() (plugin, id string, ok bool)",
              "doc": "FocusedPluginPanel returns the plugin and ID of the last focused plugin panel,\nor \"\", \"\", false when none is active.\n",
              "file": "pkg/editor/palette.go",
              "line": 107
            },
            {
              "name": "FocusedTask",
              "anchor": "Editor.FocusedTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusedTask() (AgentTask, bool)",
              "doc": "FocusedTask returns the currently focused task in the Tasks panel.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1022
            },
            {
              "name": "FocusedTaskID",
              "anchor": "Editor.FocusedTaskID",
              "recv": "*Editor",
              "decl": "func (e *Editor) FocusedTaskID() string",
              "doc": "FocusedTaskID returns the ID of the currently focused task, or empty string.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1129
            },
            {
              "name": "ForceSave",
              "anchor": "Editor.ForceSave",
              "recv": "*Editor",
              "decl": "func (e *Editor) ForceSave() error",
              "doc": "ForceSave writes dirty changes (project and scene) to disk even when the target file changed externally since it was opened or last saved.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1470
            },
            {
              "name": "FormatHistoryDayLabel",
              "anchor": "Editor.FormatHistoryDayLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) FormatHistoryDayLabel(ts time.Time) string",
              "doc": "FormatHistoryDayLabel returns the uppercase day group header for ts (\"TODAY\", \"YESTERDAY\", or \"YYYY-MM-DD\").\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 1065
            },
            {
              "name": "FormatHistoryRelativeTime",
              "anchor": "Editor.FormatHistoryRelativeTime",
              "recv": "*Editor",
              "decl": "func (e *Editor) FormatHistoryRelativeTime(ts time.Time) string",
              "doc": "FormatHistoryRelativeTime formats ts relative to the editor's current History clock\n(for example \"just now\", \"2 min ago\", \"2 hr ago\", \"yesterday 18:12\", or \"2026-11-23 14:20\").\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 1032
            },
            {
              "name": "FormatTaskMeta",
              "anchor": "Editor.FormatTaskMeta",
              "recv": "*Editor",
              "decl": "func (e *Editor) FormatTaskMeta(t AgentTask) string",
              "doc": "FormatTaskMeta builds the secondary metadata line for a task row matching Tasks.dc.html.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2665
            },
            {
              "name": "FrameAll2D",
              "anchor": "Editor.FrameAll2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) FrameAll2D() bool",
              "doc": "FrameAll2D pans and zooms the 2D view to show every object of the visible layers, their inline tilemaps and the scene camera's frame, centered with a margin, keeping the view's rotation. It reports false while the scene plays.\n",
              "file": "pkg/editor/view2d.go",
              "line": 186
            },
            {
              "name": "FrameDuration",
              "anchor": "Editor.FrameDuration",
              "recv": "*Editor",
              "decl": "func (e *Editor) FrameDuration(track, key int) (time.Duration, bool)",
              "doc": "FrameDuration returns how long frame key key on track track stays visible before the next frame key (or the end of the clip for the last frame key).\n",
              "file": "pkg/editor/animation.go",
              "line": 560
            },
            {
              "name": "FrameSelection",
              "anchor": "Editor.FrameSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) FrameSelection() bool",
              "doc": "FrameSelection centers the active 2D or 3D viewport camera on the selected object,\nor on all scene objects (or the origin) when nothing is selected.\nIn 2D mode it delegates to FrameSelection2D, moving the independent editor View2D\nwithout mutating SceneDoc.Camera.\n",
              "file": "pkg/editor/commands.go",
              "line": 2976
            },
            {
              "name": "FrameSelection2D",
              "anchor": "Editor.FrameSelection2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) FrameSelection2D() bool",
              "doc": "FrameSelection2D pans and zooms the 2D view to show the selected object(s) whole, centered with a margin, keeping the view's rotation. It frames everything (FrameAll2D) when nothing is selected, and reports false when there is nothing to frame or the scene plays.\n",
              "file": "pkg/editor/view2d.go",
              "line": 158
            },
            {
              "name": "GameRunning",
              "anchor": "Editor.GameRunning",
              "recv": "*Editor",
              "decl": "func (e *Editor) GameRunning() bool",
              "doc": "GameRunning reports whether a game child process started by RunGame or RunGameWith is currently running. It is safe to call from any goroutine.\n",
              "file": "pkg/editor/run_game.go",
              "line": 79
            },
            {
              "name": "GenerateAsset",
              "anchor": "Editor.GenerateAsset",
              "recv": "*Editor",
              "decl": "func (e *Editor) GenerateAsset(ctx context.Context, params GenerateAssetParams) (*AssetGenerationRequest, error)",
              "doc": "GenerateAsset invokes a connected MCP generator server, strictly decodes untrusted candidate payloads as pixels or audio in memory ONLY (writing NOTHING to disk), runs style and audio checks against brief.yaml and references, and adds or updates the request in the Generated Assets view.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 1324
            },
            {
              "name": "GeneratedAssetLicenseError",
              "anchor": "Editor.GeneratedAssetLicenseError",
              "recv": "*Editor",
              "decl": "func (e *Editor) GeneratedAssetLicenseError() string",
              "doc": "GeneratedAssetLicenseError returns the last scan/parse error from RefreshGeneratedAssetLicenses, if any.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2241
            },
            {
              "name": "GeneratedAssetLicenses",
              "anchor": "Editor.GeneratedAssetLicenses",
              "recv": "*Editor",
              "decl": "func (e *Editor) GeneratedAssetLicenses() []credits.GeneratedAssetLicense",
              "doc": "GeneratedAssetLicenses returns the last scanned *.source.yaml license entries for the open project.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2251
            },
            {
              "name": "GeneratedAssetRequests",
              "anchor": "Editor.GeneratedAssetRequests",
              "recv": "*Editor",
              "decl": "func (e *Editor) GeneratedAssetRequests() []AssetGenerationRequest",
              "doc": "GeneratedAssetRequests returns a snapshot of all active generation requests in order.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2261
            },
            {
              "name": "GitPull",
              "anchor": "Editor.GitPull",
              "recv": "*Editor",
              "decl": "func (e *Editor) GitPull() error",
              "doc": "GitPull pulls from the upstream branch using fast-forward only (never creating an unintended merge commit),\nreloads open scenes/project state from disk, and refreshes Changes.\n",
              "file": "pkg/editor/changes.go",
              "line": 2423
            },
            {
              "name": "GitPullAsync",
              "anchor": "Editor.GitPullAsync",
              "recv": "*Editor",
              "decl": "func (e *Editor) GitPullAsync(cx *core.Scope) error",
              "doc": "GitPullAsync runs `git pull --ff-only` off the UI thread and posts the result back to the editor scope.\n",
              "file": "pkg/editor/changes.go",
              "line": 2450
            },
            {
              "name": "GitSwitchBranch",
              "anchor": "Editor.GitSwitchBranch",
              "recv": "*Editor",
              "decl": "func (e *Editor) GitSwitchBranch(branch string) error",
              "doc": "GitSwitchBranch checks out branch in the active Changes repository and reloads open scenes and project state.\n",
              "file": "pkg/editor/changes.go",
              "line": 2367
            },
            {
              "name": "Gizmo2DShown",
              "anchor": "Editor.Gizmo2DShown",
              "recv": "*Editor",
              "decl": "func (e *Editor) Gizmo2DShown() bool",
              "doc": "Gizmo2DShown reports whether the 2D viewport shows the transform gizmo: on the selected object(s), nested children included, in 2D, with the Select, Move, Rotate, or Scale tool, outside Play. Objects hidden or locked in the editor (SetObjectHidden, SetObjectLocked), or under one that is, have no gizmo.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 257
            },
            {
              "name": "GizmoDragDelta3D",
              "anchor": "Editor.GizmoDragDelta3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) GizmoDragDelta3D() string",
              "doc": "GizmoDragDelta3D returns the formatted live drag delta shown in the status bar while a 3D transform gizmo drag is active, or empty when idle.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 1144
            },
            {
              "name": "GizmoLength3D",
              "anchor": "Editor.GizmoLength3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) GizmoLength3D(pos [3]float32) float32",
              "doc": "GizmoLength3D returns the world-space arm length / ring radius for a 3D gizmo placed at pos.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 726
            },
            {
              "name": "GizmoOrientation3D",
              "anchor": "Editor.GizmoOrientation3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) GizmoOrientation3D() math3d.Quat",
              "doc": "GizmoOrientation3D returns the active 3D transform gizmo's world-space orientation quaternion:\nidentity in Global space, or the primary draggable selected object's orthonormalized world\norientation (including its ancestors) in Local space.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 997
            },
            {
              "name": "GridMap",
              "anchor": "Editor.GridMap",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMap() *world3d.GridMap",
              "doc": "GridMap returns the active editable *world3d.GridMap, or nil when none is open.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 116
            },
            {
              "name": "GridMapBoxPreview",
              "anchor": "Editor.GridMapBoxPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapBoxPreview() (minC, maxC world3d.GridCoord, ok bool)",
              "doc": "GridMapBoxPreview returns the inclusive [minC, maxC] cell bounds of an active Box Fill drag, if any.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1102
            },
            {
              "name": "GridMapDirty",
              "anchor": "Editor.GridMapDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapDirty() bool",
              "doc": "GridMapDirty reports whether the open GridMap differs from what it was opened from or last saved to.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 675
            },
            {
              "name": "GridMapDoc",
              "anchor": "Editor.GridMapDoc",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapDoc() (*world3d.GridMapDoc, error)",
              "doc": "GridMapDoc exports the active editable GridMap as a canonical *world3d.GridMapDoc.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 659
            },
            {
              "name": "GridMapFloor",
              "anchor": "Editor.GridMapFloor",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapFloor() int",
              "doc": "GridMapFloor returns the active integer floor height (Y coordinate) edited by GridMap tools.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 151
            },
            {
              "name": "GridMapMeshLibrary",
              "anchor": "Editor.GridMapMeshLibrary",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapMeshLibrary() string",
              "doc": "GridMapMeshLibrary returns the mesh library path of the open GridMap, or empty when none is open.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 135
            },
            {
              "name": "GridMapOrientation",
              "anchor": "Editor.GridMapOrientation",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapOrientation() uint8",
              "doc": "GridMapOrientation returns the currently active 3D orientation index in 0..23 for GridMap painting.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 167
            },
            {
              "name": "GridMapPalette",
              "anchor": "Editor.GridMapPalette",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapPalette() GridMapPalette",
              "doc": "GridMapPalette returns the palette of the active editable GridMap's mesh library.\n",
              "file": "pkg/editor/gridmap_palette.go",
              "line": 56
            },
            {
              "name": "GridMapPath",
              "anchor": "Editor.GridMapPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapPath() string",
              "doc": "GridMapPath returns the project-relative path (or OS file path) of the open GridMap, or empty when none is open.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 124
            },
            {
              "name": "GridMapStrokeActive",
              "anchor": "Editor.GridMapStrokeActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapStrokeActive() (GridMapTool, bool)",
              "doc": "GridMapStrokeActive reports whether a GridMap pointer stroke is in progress and returns its tool mode.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1094
            },
            {
              "name": "GridMapTool",
              "anchor": "Editor.GridMapTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapTool() GridMapTool",
              "doc": "GridMapTool returns the active 3D GridMap editing tool.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 143
            },
            {
              "name": "GridMapYAML",
              "anchor": "Editor.GridMapYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) GridMapYAML() ([]byte, error)",
              "doc": "GridMapYAML encodes the active editable GridMap as deterministic canonical YAML that round-trips byte-for-byte.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 667
            },
            {
              "name": "GroupObjects",
              "anchor": "Editor.GroupObjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) GroupObjects(ids ...string) (string, error)",
              "doc": "GroupObjects wraps the objects named by ids under a new empty parent object placed at\ntheir common centre without moving any of them on screen, as one undoable step.\nIt selects and returns the new group parent's ID.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 1402
            },
            {
              "name": "GroupSelected",
              "anchor": "Editor.GroupSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) GroupSelected() (string, error)",
              "doc": "GroupSelected wraps the currently selected object(s) under a new empty parent object at\ntheir common centre without moving them on screen, as one undoable step.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 1592
            },
            {
              "name": "HUDActiveScreen",
              "anchor": "Editor.HUDActiveScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDActiveScreen() *gameui.ScreenDoc",
              "doc": "HUDActiveScreen returns a deep clone of the active ScreenDoc, or nil if no valid screen is open.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 771
            },
            {
              "name": "HUDActiveScreenPath",
              "anchor": "Editor.HUDActiveScreenPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDActiveScreenPath() string",
              "doc": "HUDActiveScreenPath returns the active screen's project-relative path, or \"\".\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 762
            },
            {
              "name": "HUDLayoutFrames",
              "anchor": "Editor.HUDLayoutFrames",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDLayoutFrames(canvasW, canvasH float32) []HUDFrameLayout",
              "doc": "HUDLayoutFrames computes the four side-by-side device frames (Phone 19.5:9 with notch, Tablet 4:3,\nDesktop 16:9, Ultrawide 21:9) scaled to fit inside canvasW×canvasH, each built via gameui.BuildScreen\nin the active language.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1428
            },
            {
              "name": "HUDLayoutOpen",
              "anchor": "Editor.HUDLayoutOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDLayoutOpen() bool",
              "doc": "HUDLayoutOpen reports whether the HUD and menu layout screen is currently active in EditorView.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 253
            },
            {
              "name": "HUDLoadErr",
              "anchor": "Editor.HUDLoadErr",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDLoadErr() error",
              "doc": "HUDLoadErr returns the parse/validation error of the active screen, or nil.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 780
            },
            {
              "name": "HUDLocale",
              "anchor": "Editor.HUDLocale",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDLocale() string",
              "doc": "HUDLocale returns the currently selected language tag in the HUD layout screen.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 842
            },
            {
              "name": "HUDLocaleStrings",
              "anchor": "Editor.HUDLocaleStrings",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDLocaleStrings(locale string) map[string]string",
              "doc": "HUDLocaleStrings returns a copy of the string map for locale.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 886
            },
            {
              "name": "HUDLocales",
              "anchor": "Editor.HUDLocales",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDLocales() []string",
              "doc": "HUDLocales returns the sorted list of available locales in the HUD layout screen.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 831
            },
            {
              "name": "HUDOverlays",
              "anchor": "Editor.HUDOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDOverlays() HUDOverlays",
              "doc": "HUDOverlays returns the active viewport overlay toggles.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 915
            },
            {
              "name": "HUDProblems",
              "anchor": "Editor.HUDProblems",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDProblems() []HUDProblem",
              "doc": "HUDProblems returns the active screen's GAME CHECK diagnostics in the active language, backed by gameui.CheckScreen.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1304
            },
            {
              "name": "HUDProjectName",
              "anchor": "Editor.HUDProjectName",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDProjectName() string",
              "doc": "HUDProjectName returns the project name displayed at the start of the HUD layout breadcrumb.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 789
            },
            {
              "name": "HUDScreens",
              "anchor": "Editor.HUDScreens",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDScreens() []HUDScreenEntry",
              "doc": "HUDScreens returns the list of project screens shown in the left rail's SCREENS section.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 800
            },
            {
              "name": "HUDSelectedNodeID",
              "anchor": "Editor.HUDSelectedNodeID",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDSelectedNodeID() string",
              "doc": "HUDSelectedNodeID returns the currently selected node's ID in the active screen, or \"\".\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 953
            },
            {
              "name": "HUDTextWidths",
              "anchor": "Editor.HUDTextWidths",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDTextWidths() []HUDTextWidthRow",
              "doc": "HUDTextWidths computes the TEXT WIDTH, PX table for every text-bearing node in the active screen across all project locales.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1229
            },
            {
              "name": "HUDTouchDragActive",
              "anchor": "Editor.HUDTouchDragActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDTouchDragActive() bool",
              "doc": "HUDTouchDragActive reports whether a touch control drag is currently in progress.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1873
            },
            {
              "name": "HUDTree",
              "anchor": "Editor.HUDTree",
              "recv": "*Editor",
              "decl": "func (e *Editor) HUDTree() []HUDTreeRow",
              "doc": "HUDTree returns the flattened node tree for the active screen's NODES rail.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1079
            },
            {
              "name": "HandleAgentComposerPaste",
              "anchor": "Editor.HandleAgentComposerPaste",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleAgentComposerPaste(ev core.PasteEvent) ([]AgentReferenceImage, bool, error)",
              "doc": "HandleAgentComposerPaste processes a core.PasteEvent from the Agent composer input.\nReturns (attached, handled, err). Plain text pastes return (nil, false, nil) so the input inserts text normally.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 597
            },
            {
              "name": "HandleCanvasPress",
              "anchor": "Editor.HandleCanvasPress",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleCanvasPress(x, y float32)",
              "doc": "HandleCanvasPress dispatches a click/tap at canvas coordinates (x, y) according to the active ViewMode and Tool. On a locked active layer (SetLayerLocked) the Place, Paint, Erase and Fill tools change nothing and the status bar says why. With the Pick tool, a press on a painted cell makes its tile the active tile and Paint the active tool.\n",
              "file": "pkg/editor/viewport.go",
              "line": 224
            },
            {
              "name": "HandleCanvasPressWith",
              "anchor": "Editor.HandleCanvasPressWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleCanvasPressWith(x, y float32, shift, mod bool)",
              "doc": "HandleCanvasPressWith dispatches a click/tap at canvas coordinates (x, y) with optional\nShift (add to selection) and Mod (toggle selection membership) modifiers.\n",
              "file": "pkg/editor/viewport.go",
              "line": 230
            },
            {
              "name": "HandleCanvasPressWithModifiers",
              "anchor": "Editor.HandleCanvasPressWithModifiers",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleCanvasPressWithModifiers(x, y float32, shift, mod, alt bool)",
              "doc": "HandleCanvasPressWithModifiers dispatches a click/tap at canvas coordinates (x, y) with optional\nShift (add), Mod (toggle), and Alt/Option (in 3D, select the hit child's parent or instance root) modifiers.\n",
              "file": "pkg/editor/viewport.go",
              "line": 236
            },
            {
              "name": "HandleCanvasSecondaryPress",
              "anchor": "Editor.HandleCanvasSecondaryPress",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleCanvasSecondaryPress(x, y float32) bool",
              "doc": "HandleCanvasSecondaryPress handles a secondary (right-button) press at canvas coordinates (x, y) in 2D edit mode.\nWhen the press hits a polygon vertex handle on the selected object with the Select or Move tool, it removes that vertex as one undoable step and reports true.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 855
            },
            {
              "name": "HandleNotificationPress",
              "anchor": "Editor.HandleNotificationPress",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleNotificationPress(id string) bool",
              "doc": "HandleNotificationPress handles an NSGo notification press callback ID. It returns true\nwhen id names an agent task notification and opens that task in its scene.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 796
            },
            {
              "name": "HandlePosition3D",
              "anchor": "Editor.HandlePosition3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandlePosition3D(kind Handle3DKind) ([3]float32, bool)",
              "doc": "HandlePosition3D returns the world-space position of handle kind on the currently selected light\nor 3D camera object, or false when the selected object does not expose that handle.\n",
              "file": "pkg/editor/handles3d.go",
              "line": 310
            },
            {
              "name": "HandleViewport3DPress",
              "anchor": "Editor.HandleViewport3DPress",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleViewport3DPress(sx, sy, w, h float32)",
              "doc": "HandleViewport3DPress handles a click/tap in the 3D viewport: with a terrain brush active it applies a dab, with an active 3D plugin tool it calls Press3D with the camera pick ray, with the Place tool and a model selected in the asset browser (SelectedModel) it places the model where the press lands (PlaceModelAt3D), otherwise it picks the deepest closest 3D object (stepping up to parent/instance root on a repeated press) or clears selection.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 2003
            },
            {
              "name": "HandleViewport3DPressWith",
              "anchor": "Editor.HandleViewport3DPressWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleViewport3DPressWith(sx, sy, w, h float32, shift, mod bool)",
              "doc": "HandleViewport3DPressWith handles a click/tap in the 3D viewport with optional Shift (add)\nand Mod (toggle) modifiers.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 2009
            },
            {
              "name": "HandleViewport3DPressWithModifiers",
              "anchor": "Editor.HandleViewport3DPressWithModifiers",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleViewport3DPressWithModifiers(sx, sy, w, h float32, shift, mod, alt bool)",
              "doc": "HandleViewport3DPressWithModifiers handles a click/tap in the 3D viewport with optional Shift (add),\nMod (toggle), and Alt/Option (pick parent or owning scene instance root) modifiers.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 2015
            },
            {
              "name": "HandleViewport3DWheel",
              "anchor": "Editor.HandleViewport3DWheel",
              "recv": "*Editor",
              "decl": "func (e *Editor) HandleViewport3DWheel(deltaY float32)",
              "doc": "HandleViewport3DWheel zooms the 3D orbit camera proportionally to deltaY, or while the camera flies (Flying3D) changes its fly speed (AdjustFlySpeed3D).\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 2196
            },
            {
              "name": "HasActiveLiveAgentRequest",
              "anchor": "Editor.HasActiveLiveAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasActiveLiveAgentRequest() bool",
              "doc": "HasActiveLiveAgentRequest reports whether an interactive agent request (started via StartAgentRequest or SubmitAgentPrompt) is currently active.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 158
            },
            {
              "name": "HasActiveToast",
              "anchor": "Editor.HasActiveToast",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasActiveToast() bool",
              "doc": "HasActiveToast reports whether a toast is currently shown and therefore part of\nthe F6 region cycle (RegionToast).\n",
              "file": "pkg/editor/toasts.go",
              "line": 835
            },
            {
              "name": "HasAgentAPIKey",
              "anchor": "Editor.HasAgentAPIKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasAgentAPIKey(account string) bool",
              "doc": "HasAgentAPIKey reports whether a built-in API key is currently stored in NSGo's core.Secrets / system keychain.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 750
            },
            {
              "name": "HasAgentLiveOverlays",
              "anchor": "Editor.HasAgentLiveOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasAgentLiveOverlays() bool",
              "doc": "HasAgentLiveOverlays reports whether any live agent change overlay or agent-working overlay is active.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 765
            },
            {
              "name": "HasAgentPanelCard",
              "anchor": "Editor.HasAgentPanelCard",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasAgentPanelCard() bool",
              "doc": "HasAgentPanelCard reports whether the editor has a pending, kept, or reverted agent turn card to show in the right rail.\n",
              "file": "pkg/editor/review.go",
              "line": 463
            },
            {
              "name": "HasCustomShortcuts",
              "anchor": "Editor.HasCustomShortcuts",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasCustomShortcuts() bool",
              "doc": "HasCustomShortcuts reports whether any command currently has a user shortcut override.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 274
            },
            {
              "name": "HasLayerOverride",
              "anchor": "Editor.HasLayerOverride",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasLayerOverride(layerName, fieldKey string) bool",
              "doc": "HasLayerOverride reports whether fieldKey is overridden on inherited layerName.\n",
              "file": "pkg/editor/overrides.go",
              "line": 1156
            },
            {
              "name": "HasObjectOverride",
              "anchor": "Editor.HasObjectOverride",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasObjectOverride(objectID, fieldKey string) bool",
              "doc": "HasObjectOverride reports whether fieldKey is currently overridden on objectID.\n",
              "file": "pkg/editor/overrides.go",
              "line": 615
            },
            {
              "name": "HasOpenReview",
              "anchor": "Editor.HasOpenReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasOpenReview() bool",
              "doc": "HasOpenReview reports whether any interactive review (scene/agent review, background task review, cutscene review, playtest proposal review, safe rename review, scene merge conflict, or unresolved external disk conflict) is currently open.\nEdits made inside an open review are not kept yet and are not automatically saved.\n",
              "file": "pkg/editor/autosave.go",
              "line": 218
            },
            {
              "name": "HasOpenTaskReview",
              "anchor": "Editor.HasOpenTaskReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasOpenTaskReview() bool",
              "doc": "HasOpenTaskReview reports whether any non-dismissed background agent task is\nwaiting in TaskReadyToReview with an unkept review. Autosave pauses while\nthis is true so unkept task edits are never flushed to disk prematurely.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1825
            },
            {
              "name": "HasPendingAgentTurn",
              "anchor": "Editor.HasPendingAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasPendingAgentTurn() bool",
              "doc": "HasPendingAgentTurn reports whether an agent turn is waiting for the person to Keep or Revert\n(including a stopped turn with partial changes, or a working turn with edits).\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 400
            },
            {
              "name": "HasPendingAgentTurnReview",
              "anchor": "Editor.HasPendingAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasPendingAgentTurnReview() bool",
              "doc": "HasPendingAgentTurnReview reports whether the latest agent turn left unkept, unreverted scene edits pending review.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 1087
            },
            {
              "name": "HasPendingCodeReview",
              "anchor": "Editor.HasPendingCodeReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasPendingCodeReview() bool",
              "doc": "HasPendingCodeReview reports whether a Go code review is open, paused, or waiting on unconfirmed Go files after Keep.\n",
              "file": "pkg/editor/code_review.go",
              "line": 420
            },
            {
              "name": "HasPendingReview",
              "anchor": "Editor.HasPendingReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasPendingReview() bool",
              "doc": "HasPendingReview reports whether an agent turn review is pending (either open full-window or paused via Esc).\n",
              "file": "pkg/editor/review.go",
              "line": 476
            },
            {
              "name": "HasProbes3D",
              "anchor": "Editor.HasProbes3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasProbes3D() bool",
              "doc": "HasProbes3D reports whether the open scene contains at least one reflection probe or light probe grid.\n",
              "file": "pkg/editor/probes3d.go",
              "line": 227
            },
            {
              "name": "HasPublishCredential",
              "anchor": "Editor.HasPublishCredential",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasPublishCredential(dest PublishDestination) bool",
              "doc": "HasPublishCredential reports whether a credential for dest is stored in the system keychain.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 913
            },
            {
              "name": "HasSceneCamera3D",
              "anchor": "Editor.HasSceneCamera3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasSceneCamera3D() bool",
              "doc": "HasSceneCamera3D reports whether the open scene defines at least one visible 3D camera object.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 424
            },
            {
              "name": "HasScope",
              "anchor": "Editor.HasScope",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasScope() bool",
              "doc": "HasScope reports whether a UI core.Scope is currently attached to the editor.\n",
              "file": "pkg/editor/agent.go",
              "line": 582
            },
            {
              "name": "HasSeenTip",
              "anchor": "Editor.HasSeenTip",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasSeenTip(tipID string) bool",
              "doc": "HasSeenTip reports whether tipID has been seen or skipped in EditorSettings.\n",
              "file": "pkg/editor/first_run.go",
              "line": 467
            },
            {
              "name": "HasUnkeptAgentTurnReview",
              "anchor": "Editor.HasUnkeptAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasUnkeptAgentTurnReview() bool",
              "doc": "HasUnkeptAgentTurnReview reports whether an active agent run, an open inline turn review drawer,\nor an unkept review from a partial, lost, stopped, or mismatched turn should pause automatic saving.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 494
            },
            {
              "name": "HasUnsavedChanges",
              "anchor": "Editor.HasUnsavedChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) HasUnsavedChanges() bool",
              "doc": "HasUnsavedChanges reports whether any open scene tab, the shared project, GridMap, terrain, room map, tileset, localization workspace, animation clip, cutscene, data table, skeletal rig, material, or kept multi-file agent turn file has edits that are not saved (or an active failed save), which switching projects or quitting would lose.\n",
              "file": "pkg/editor/scenefile.go",
              "line": 76
            },
            {
              "name": "HeldAgentNotifications",
              "anchor": "Editor.HeldAgentNotifications",
              "recv": "*Editor",
              "decl": "func (e *Editor) HeldAgentNotifications() []core.Notification",
              "doc": "HeldAgentNotifications returns a snapshot of system notifications currently held until Play stops.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 763
            },
            {
              "name": "HeldPermissionLoosenings",
              "anchor": "Editor.HeldPermissionLoosenings",
              "recv": "*Editor",
              "decl": "func (e *Editor) HeldPermissionLoosenings() []HeldPermissionLoosening",
              "doc": "HeldPermissionLoosenings returns a copy of externally loosened permission rules/profile changes\ncurrently held until confirmed by the person in Settings › Permissions.\n",
              "file": "pkg/editor/you_only.go",
              "line": 397
            },
            {
              "name": "HighlightedProblemLine",
              "anchor": "Editor.HighlightedProblemLine",
              "recv": "*Editor",
              "decl": "func (e *Editor) HighlightedProblemLine() (loc, snippet string)",
              "doc": "HighlightedProblemLine returns the file:line:col label and YAML line snippet\nhighlighted by ShowProblem, or empty strings when none is highlighted.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 200
            },
            {
              "name": "HistoryEntries",
              "anchor": "Editor.HistoryEntries",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryEntries() []HistoryEntry",
              "doc": "HistoryEntries returns all entries on the active scene's unified History timeline, newest first.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 192
            },
            {
              "name": "HistoryEntryByID",
              "anchor": "Editor.HistoryEntryByID",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryEntryByID(id uint64) (HistoryEntry, bool)",
              "doc": "HistoryEntryByID returns the timeline entry with ID id, or false when absent.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 211
            },
            {
              "name": "HistoryFilter",
              "anchor": "Editor.HistoryFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryFilter() HistoryFilter",
              "doc": "HistoryFilter returns the active filter tab in the History panel (All, You, or Agent).\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 167
            },
            {
              "name": "HistoryNow",
              "anchor": "Editor.HistoryNow",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryNow() time.Time",
              "doc": "HistoryNow returns the current time according to the editor's configured History clock, Editor.Now, or time.Now.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 81
            },
            {
              "name": "HistoryPanelOpen",
              "anchor": "Editor.HistoryPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryPanelOpen() bool",
              "doc": "HistoryPanelOpen reports whether the History timeline panel is open.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 109
            },
            {
              "name": "HistoryPreviewActive",
              "anchor": "Editor.HistoryPreviewActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryPreviewActive() bool",
              "doc": "HistoryPreviewActive reports whether the viewport is currently showing a read-only point-in-time history preview.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 219
            },
            {
              "name": "HistoryPreviewCheckpointID",
              "anchor": "Editor.HistoryPreviewCheckpointID",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryPreviewCheckpointID() string",
              "doc": "HistoryPreviewCheckpointID returns the checkpoint ID currently being previewed read-only, or \"\".\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 232
            },
            {
              "name": "HistoryPreviewDoc",
              "anchor": "Editor.HistoryPreviewDoc",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryPreviewDoc() *sceneformat.SceneDoc",
              "doc": "HistoryPreviewDoc returns the read-only SceneDoc currently being previewed, or nil when not previewing.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 255
            },
            {
              "name": "HistoryPreviewEntry",
              "anchor": "Editor.HistoryPreviewEntry",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryPreviewEntry() (HistoryEntry, bool)",
              "doc": "HistoryPreviewEntry returns the entry currently being previewed read-only, if any.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 224
            },
            {
              "name": "HistoryPreviewScene",
              "anchor": "Editor.HistoryPreviewScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) HistoryPreviewScene() *sceneformat.BuiltScene",
              "doc": "HistoryPreviewScene returns the built read-only preview scene, or nil when not previewing.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 263
            },
            {
              "name": "HitTest",
              "anchor": "Editor.HitTest",
              "recv": "*Editor",
              "decl": "func (e *Editor) HitTest(canvasX, canvasY float32) string",
              "doc": "HitTest returns the ID of the topmost visible object under the point (canvasX, canvasY) on the viewport's canvas, seen through the 2D view, nested, instanced and inherited objects included, or \"\" if no object is hit. Objects hidden or locked in the editor (SetObjectHidden, SetObjectLocked), with their descendants, and the objects of hidden and locked layers (SetLayerVisible, SetLayerLocked) are passed over, so the press reaches what lies under them.\n",
              "file": "pkg/editor/viewport.go",
              "line": 159
            },
            {
              "name": "HitTestCameraBoundsHandle",
              "anchor": "Editor.HitTestCameraBoundsHandle",
              "recv": "*Editor",
              "decl": "func (e *Editor) HitTestCameraBoundsHandle(canvasX, canvasY float32) RectHandle",
              "doc": "HitTestCameraBoundsHandle tests canvas point (canvasX, canvasY) against the 8 resize\nhandles and perimeter border (or empty interior) of camera.bounds when scene settings\nare active in 2D edit mode. Resize handles are checked before the border, and the\ninterior yields to objects and rooms so objects inside camera.bounds remain clickable.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 799
            },
            {
              "name": "HitTestCameraHandle",
              "anchor": "Editor.HitTestCameraHandle",
              "recv": "*Editor",
              "decl": "func (e *Editor) HitTestCameraHandle(canvasX, canvasY float32) bool",
              "doc": "HitTestCameraHandle reports whether canvas point (canvasX, canvasY) falls on the 2D\nviewport's camera position handle.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 656
            },
            {
              "name": "HitTestHUDCanvas",
              "anchor": "Editor.HitTestHUDCanvas",
              "recv": "*Editor",
              "decl": "func (e *Editor) HitTestHUDCanvas(canvasX, canvasY, canvasW, canvasH float32) (nodeID, deviceID string)",
              "doc": "HitTestHUDCanvas returns the topmost visible node ID and device profile ID under (canvasX, canvasY) on the multi-size canvas.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1759
            },
            {
              "name": "HitTestRigBone",
              "anchor": "Editor.HitTestRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) HitTestRigBone(x, y float32) string",
              "doc": "HitTestRigBone returns the name of the bone under rig canvas point (x, y), or \"\".\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 303
            },
            {
              "name": "HitTestRoom",
              "anchor": "Editor.HitTestRoom",
              "recv": "*Editor",
              "decl": "func (e *Editor) HitTestRoom(canvasX, canvasY float32) string",
              "doc": "HitTestRoom returns the ID of the first room in list order containing canvas point\n(canvasX, canvasY), matching rooms.Map.RoomAt semantics, or \"\" if none does.\n",
              "file": "pkg/editor/rooms.go",
              "line": 934
            },
            {
              "name": "HitTestRoomHandle",
              "anchor": "Editor.HitTestRoomHandle",
              "recv": "*Editor",
              "decl": "func (e *Editor) HitTestRoomHandle(canvasX, canvasY float32) (string, RectHandle)",
              "doc": "HitTestRoomHandle tests canvas point (canvasX, canvasY) against the selected room's 8\nresize handles, then its interior/border, then any other room's interior.\n",
              "file": "pkg/editor/rooms.go",
              "line": 948
            },
            {
              "name": "HitTestSketchMark",
              "anchor": "Editor.HitTestSketchMark",
              "recv": "*Editor",
              "decl": "func (e *Editor) HitTestSketchMark(canvasX, canvasY float32) int",
              "doc": "HitTestSketchMark returns the 1-based mark number whose badge or geometry lies under (canvasX, canvasY),\nor 0 if none is hit.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1000
            },
            {
              "name": "HoveredChipID",
              "anchor": "Editor.HoveredChipID",
              "recv": "*Editor",
              "decl": "func (e *Editor) HoveredChipID() string",
              "doc": "HoveredChipID returns the chip ID currently showing its exact-payload hover popover, or \"\".\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1589
            },
            {
              "name": "HoveredChipPayload",
              "anchor": "Editor.HoveredChipPayload",
              "recv": "*Editor",
              "decl": "func (e *Editor) HoveredChipPayload() (AgentChipPayload, bool)",
              "doc": "HoveredChipPayload resolves the exact sent payload for the currently hovered chip.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1606
            },
            {
              "name": "HoveredGridMapCell",
              "anchor": "Editor.HoveredGridMapCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) HoveredGridMapCell() (world3d.GridCoord, bool)",
              "doc": "HoveredGridMapCell returns the GridMap cell currently under the pointer on the active floor,\nor false when no GridMap tool is active, in 2D, while playing, or when the ray misses the floor plane.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1086
            },
            {
              "name": "HoveredTile",
              "anchor": "Editor.HoveredTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) HoveredTile() (col, row int, ok bool)",
              "doc": "HoveredTile returns the cell of the active layer's inline tilemap under the mouse (SetTileHover), which the viewport outlines, snapped to the grid. It reports false while no tile tool is active, in 3D, while playing, when the mouse is not over the viewport and when the cell under it is off the map.\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 818
            },
            {
              "name": "IgnoreProblem",
              "anchor": "Editor.IgnoreProblem",
              "recv": "*Editor",
              "decl": "func (e *Editor) IgnoreProblem(p assetcheck.Problem)",
              "doc": "IgnoreProblem hides p from the Problems panel, status bar count, scene tree\nbadges, and viewport problem overlay until p.File changes again (in the editor\nor on disk). If p still holds after a subsequent edit to p.File, it reappears.\n",
              "file": "pkg/editor/problems.go",
              "line": 508
            },
            {
              "name": "ImageImportPreviewCellPoint",
              "anchor": "Editor.ImageImportPreviewCellPoint",
              "recv": "*Editor",
              "decl": "func (e *Editor) ImageImportPreviewCellPoint(relPath string, cell int, pt importsettings.PivotPoint, canvasW, canvasH float32) (x, y float32, ok bool)",
              "doc": "ImageImportPreviewCellPoint maps a normalized pivot pt inside cell (-1 for the whole image, or 0..n-1 for a sliced cell) of relPath to canvas coordinates within canvasW x canvasH.\n",
              "file": "pkg/editor/asset_import_pivot.go",
              "line": 218
            },
            {
              "name": "ImagePivotDragging",
              "anchor": "Editor.ImagePivotDragging",
              "recv": "*Editor",
              "decl": "func (e *Editor) ImagePivotDragging() bool",
              "doc": "ImagePivotDragging reports whether an interactive pivot drag on the image import preview is currently active.\n",
              "file": "pkg/editor/asset_import_pivot.go",
              "line": 157
            },
            {
              "name": "ImportAssetFiles",
              "anchor": "Editor.ImportAssetFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) ImportAssetFiles(srcPaths []string) ([]string, error)",
              "doc": "ImportAssetFiles copies external files (OS paths or file:// URIs) into the active asset folder\n(or an inferred folder such as art/props, audio/sfx, or fonts), marks them as proposed imports,\nand refreshes the asset drawer.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 2290
            },
            {
              "name": "InitNavRegionPolygon",
              "anchor": "Editor.InitNavRegionPolygon",
              "recv": "*Editor",
              "decl": "func (e *Editor) InitNavRegionPolygon(objectID string) error",
              "doc": "InitNavRegionPolygon seeds objectID's navregion2d component with a default 128x128 square polygon through History.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 272
            },
            {
              "name": "InlineLayerTilemap",
              "anchor": "Editor.InlineLayerTilemap",
              "recv": "*Editor",
              "decl": "func (e *Editor) InlineLayerTilemap(layerName string) error",
              "doc": "InlineLayerTilemap moves layerName's Ref tilemap back inline onto the layer as an undoable command. When no other layer or layerOverride in the scene references the same top-level tilemap, the top-level entry in SceneDoc.Tilemaps is removed (and restored by Undo); when another layer still references it, the top-level entry is kept and this layer receives an independent inline copy.\n",
              "file": "pkg/editor/tilemap_setup.go",
              "line": 777
            },
            {
              "name": "InputActions",
              "anchor": "Editor.InputActions",
              "recv": "*Editor",
              "decl": "func (e *Editor) InputActions() []project.Action",
              "doc": "InputActions returns a deep copy of the open project's declared input actions in order.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 162
            },
            {
              "name": "InputAxes",
              "anchor": "Editor.InputAxes",
              "recv": "*Editor",
              "decl": "func (e *Editor) InputAxes() []project.Axis",
              "doc": "InputAxes returns a copy of the open project's declared action axes in order.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 170
            },
            {
              "name": "InputGamepadAxes",
              "anchor": "Editor.InputGamepadAxes",
              "recv": "*Editor",
              "decl": "func (e *Editor) InputGamepadAxes() []project.GamepadAxis",
              "doc": "InputGamepadAxes returns a copy of the open project's declared gamepad stick axes in order.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 186
            },
            {
              "name": "InputMapDisplaySize",
              "anchor": "Editor.InputMapDisplaySize",
              "recv": "*Editor",
              "decl": "func (e *Editor) InputMapDisplaySize() (width, height float32)",
              "doc": "InputMapDisplaySize returns the virtual display size the Input Map's region canvas maps onto: Project.Display when set, else Project.Window, else 640x360.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 140
            },
            {
              "name": "InputMapOpen",
              "anchor": "Editor.InputMapOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) InputMapOpen() bool",
              "doc": "InputMapOpen reports whether the Settings view is open on the Input map page.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 70
            },
            {
              "name": "InputMapRegionDrawKind",
              "anchor": "Editor.InputMapRegionDrawKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) InputMapRegionDrawKind() string",
              "doc": "InputMapRegionDrawKind returns the binding kind created when dragging a new region on empty space (\"touchRegion\" or \"mouseRegion\").\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 117
            },
            {
              "name": "InputMapTab",
              "anchor": "Editor.InputMapTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) InputMapTab() InputMapTab",
              "doc": "InputMapTab returns the active tab of the Input Map panel, defaulting to InputMapTabActions.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 91
            },
            {
              "name": "InputMotionAxes",
              "anchor": "Editor.InputMotionAxes",
              "recv": "*Editor",
              "decl": "func (e *Editor) InputMotionAxes() []project.MotionAxis",
              "doc": "InputMotionAxes returns a copy of the open project's declared motion axes in order.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 178
            },
            {
              "name": "InsertAgentComposerNewline",
              "anchor": "Editor.InsertAgentComposerNewline",
              "recv": "*Editor",
              "decl": "func (e *Editor) InsertAgentComposerNewline()",
              "doc": "InsertAgentComposerNewline appends a newline to the composer draft (used by Shift+Enter).\n",
              "file": "pkg/editor/agent.go",
              "line": 1576
            },
            {
              "name": "InsertAskInPlaceNewline",
              "anchor": "Editor.InsertAskInPlaceNewline",
              "recv": "*Editor",
              "decl": "func (e *Editor) InsertAskInPlaceNewline()",
              "doc": "InsertAskInPlaceNewline inserts a newline into the open in-place composer draft (⇧↵).\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 211
            },
            {
              "name": "InsertNavRegionVertex",
              "anchor": "Editor.InsertNavRegionVertex",
              "recv": "*Editor",
              "decl": "func (e *Editor) InsertNavRegionVertex(objectID string, afterIndex int, x, y float64) error",
              "doc": "InsertNavRegionVertex inserts a new local vertex (x, y) after vertex index afterIndex in objectID's navregion2d polygon through History.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 299
            },
            {
              "name": "InsertOccluderVertex",
              "anchor": "Editor.InsertOccluderVertex",
              "recv": "*Editor",
              "decl": "func (e *Editor) InsertOccluderVertex(objectID string, afterIndex int, x, y float64) error",
              "doc": "InsertOccluderVertex inserts a new local vertex (x, y) after vertex index afterIndex in objectID's polygon occluder2d component through History.\n",
              "file": "pkg/editor/lights2d_editor.go",
              "line": 226
            },
            {
              "name": "InspectAssetImport",
              "anchor": "Editor.InspectAssetImport",
              "recv": "*Editor",
              "decl": "func (e *Editor) InspectAssetImport(relPath string) (AssetImportInfo, error)",
              "doc": "InspectAssetImport returns the resolved import settings and game.yaml target defaults for relPath in the open project.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 396
            },
            {
              "name": "InspectModelImport",
              "anchor": "Editor.InspectModelImport",
              "recv": "*Editor",
              "decl": "func (e *Editor) InspectModelImport(relPath string) (ModelPreviewInfo, error)",
              "doc": "InspectModelImport loads (or reads from cache) the glTF/GLB model at relPath and returns its node hierarchy, meshes, materials, animations, bounds, and triangle counts.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 470
            },
            {
              "name": "InspectorFieldProblems",
              "anchor": "Editor.InspectorFieldProblems",
              "recv": "*Editor",
              "decl": "func (e *Editor) InspectorFieldProblems() []InspectorFieldProblem",
              "doc": "InspectorFieldProblems returns explicit field-level problems recorded via SetInspectorFieldProblems.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 258
            },
            {
              "name": "InspectorFilter",
              "anchor": "Editor.InspectorFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) InspectorFilter() string",
              "doc": "InspectorFilter returns the active inspector field filter query.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 104
            },
            {
              "name": "InspectorReviewChanges",
              "anchor": "Editor.InspectorReviewChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) InspectorReviewChanges() []InspectorReviewChange",
              "doc": "InspectorReviewChanges returns a copy of the active review changes shown in the inspector.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 228
            },
            {
              "name": "InspectorScrubbing",
              "anchor": "Editor.InspectorScrubbing",
              "recv": "*Editor",
              "decl": "func (e *Editor) InspectorScrubbing() bool",
              "doc": "InspectorScrubbing reports whether an interactive inspector label scrub is currently in progress.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 729
            },
            {
              "name": "InspectorSectionCollapsed",
              "anchor": "Editor.InspectorSectionCollapsed",
              "recv": "*Editor",
              "decl": "func (e *Editor) InspectorSectionCollapsed(sectionID string) bool",
              "doc": "InspectorSectionCollapsed reports whether the titled inspector section id is currently collapsed.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 122
            },
            {
              "name": "InstallPack",
              "anchor": "Editor.InstallPack",
              "recv": "*Editor",
              "decl": "func (e *Editor) InstallPack(p *library.Pack) error",
              "doc": "InstallPack installs the fetched pack p into the open project, as library.PlanInstall describes: it writes the pack's files beside game.yaml, records the pack, its autoload entries and its plugins in the project, and saves the project (SaveProject). The registered plugins a plugin pack names turn on, and the status bar names those this editor was built without.\n\nInstalling writes files the undo history cannot take back, so it empties the history, as OpenProject does; RemovePack undoes it. It refuses while playing (ErrPlaying), without a project (ErrNoProject) and while the project has unsaved edits (ErrProjectDirty), and on any error leaves the project and its files as they were.\n",
              "file": "pkg/editor/library.go",
              "line": 22
            },
            {
              "name": "InstanceOverrideCount",
              "anchor": "Editor.InstanceOverrideCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) InstanceOverrideCount(objectID string) int",
              "doc": "InstanceOverrideCount returns the total number of overridden fields across all targets of a local scene instance root (or on the owning instance of an instanced child).\n",
              "file": "pkg/editor/overrides.go",
              "line": 632
            },
            {
              "name": "InterfaceScale",
              "anchor": "Editor.InterfaceScale",
              "recv": "*Editor",
              "decl": "func (e *Editor) InterfaceScale() float32",
              "doc": "InterfaceScale returns the active typography and control scale multiplier (0.9, 1.0, or 1.15).\n",
              "file": "pkg/editor/settings.go",
              "line": 657
            },
            {
              "name": "InterfaceSize",
              "anchor": "Editor.InterfaceSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) InterfaceSize() InterfaceSize",
              "doc": "InterfaceSize returns the configured editor interface size (\"compact\", \"default\", or \"large\").\n",
              "file": "pkg/editor/settings.go",
              "line": 652
            },
            {
              "name": "IsDragging",
              "anchor": "Editor.IsDragging",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsDragging() bool",
              "doc": "IsDragging reports whether any interactive drag, scrub, marquee, gizmo, camera drag/flight,\nor paint stroke is currently active in the editor. Nothing may move focus while true.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 726
            },
            {
              "name": "IsMCPToolEnabled",
              "anchor": "Editor.IsMCPToolEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsMCPToolEnabled(name string) bool",
              "doc": "IsMCPToolEnabled reports whether the MCP tool named name is currently enabled for connected agents.\ngame_delete_file is off by default; all other tools are on by default unless overridden in editor.yaml.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 941
            },
            {
              "name": "IsObjectPausedByPlan",
              "anchor": "Editor.IsObjectPausedByPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsObjectPausedByPlan(id string) bool",
              "doc": "IsObjectPausedByPlan reports whether manual edits to scene object id are paused while the agent executes a plan.\n",
              "file": "pkg/editor/plan.go",
              "line": 555
            },
            {
              "name": "IsObjectProposedNew",
              "anchor": "Editor.IsObjectProposedNew",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsObjectProposedNew(id string) bool",
              "doc": "IsObjectProposedNew reports whether object id is proposed as a new object by a pending review.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 419
            },
            {
              "name": "IsObjectSelected",
              "anchor": "Editor.IsObjectSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsObjectSelected(id string) bool",
              "doc": "IsObjectSelected reports whether id is in the current object selection.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 100
            },
            {
              "name": "IsPermissionDenied",
              "anchor": "Editor.IsPermissionDenied",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsPermissionDenied(permissionKey string) bool",
              "doc": "IsPermissionDenied reports whether permissionKey was already denied in the current active request.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 1099
            },
            {
              "name": "IsPlanRunning",
              "anchor": "Editor.IsPlanRunning",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsPlanRunning() bool",
              "doc": "IsPlanRunning reports whether an approved plan is currently executing.\n",
              "file": "pkg/editor/plan.go",
              "line": 545
            },
            {
              "name": "IsProblemIgnored",
              "anchor": "Editor.IsProblemIgnored",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsProblemIgnored(p assetcheck.Problem) bool",
              "doc": "IsProblemIgnored reports whether p is currently ignored.\n",
              "file": "pkg/editor/problems.go",
              "line": 550
            },
            {
              "name": "IsSelected",
              "anchor": "Editor.IsSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsSelected(id string) bool",
              "doc": "IsSelected reports whether object id is part of the current selection set.\n",
              "file": "pkg/editor/selection.go",
              "line": 16
            },
            {
              "name": "IsTyping",
              "anchor": "Editor.IsTyping",
              "recv": "*Editor",
              "decl": "func (e *Editor) IsTyping() bool",
              "doc": "IsTyping reports whether keyboard focus is currently inside a text field.\nNothing may steal focus while true.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 757
            },
            {
              "name": "JumpToConnectionOtherEnd",
              "anchor": "Editor.JumpToConnectionOtherEnd",
              "recv": "*Editor",
              "decl": "func (e *Editor) JumpToConnectionOtherEnd(index int) bool",
              "doc": "JumpToConnectionOtherEnd selects the other endpoint of Doc.Connections[index] relative to SelectedID (To when From is selected, From when To is selected, or To otherwise). If the endpoint is an object inside an instanced scene (such as \"door_1/door\"), it selects its owning instance in Doc.\n",
              "file": "pkg/editor/connections.go",
              "line": 216
            },
            {
              "name": "JumpToLatestAgentRequest",
              "anchor": "Editor.JumpToLatestAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) JumpToLatestAgentRequest()",
              "doc": "JumpToLatestAgentRequest collapses any expanded earlier request and focuses the latest request.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1065
            },
            {
              "name": "JumpToReviewBlocker",
              "anchor": "Editor.JumpToReviewBlocker",
              "recv": "*Editor",
              "decl": "func (e *Editor) JumpToReviewBlocker() string",
              "doc": "JumpToReviewBlocker focuses the first active blocker change and returns its ID (or \"\" if none).\n",
              "file": "pkg/editor/review.go",
              "line": 3235
            },
            {
              "name": "JustDoItAgentPlan",
              "anchor": "Editor.JustDoItAgentPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) JustDoItAgentPlan() (AgentPlanDecision, error)",
              "doc": "JustDoItAgentPlan picks the suggested option for every unanswered clarifying question,\nrecords that the agent picked them (\"Picked for you: ...\"), and starts executing the plan.\n",
              "file": "pkg/editor/plan.go",
              "line": 1542
            },
            {
              "name": "JustDoItFirstRunPlan",
              "anchor": "Editor.JustDoItFirstRunPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) JustDoItFirstRunPlan() error",
              "doc": "JustDoItFirstRunPlan picks the suggested answer (when a clarifying question is unanswered)\nand immediately approves and starts building.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1482
            },
            {
              "name": "KeepAgentPartial",
              "anchor": "Editor.KeepAgentPartial",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepAgentPartial(turnID string)",
              "doc": "KeepAgentPartial keeps the partial turn's changes as undoable edits and dismisses the partial prompt card.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 758
            },
            {
              "name": "KeepAgentRequest",
              "anchor": "Editor.KeepAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepAgentRequest(threadID, requestID string) error",
              "doc": "KeepAgentRequest marks requestID in threadID as kept (keeping all proposed changes).\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1332
            },
            {
              "name": "KeepAgentTurn",
              "anchor": "Editor.KeepAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepAgentTurn() error",
              "doc": "KeepAgentTurn commits all non-reverted changes in the pending (or working/stopped) agent turn as ONE\nHistory command labelled with the request, marks the turn Kept, and displays a Spec toast with Undo.\nEdits remain in memory until the person saves. When no multi-file agent turn is open, it falls back\nto keeping an active single-scene live agent turn (BeginAgentTurn).\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 1914
            },
            {
              "name": "KeepAgentTurnDiffReview",
              "anchor": "Editor.KeepAgentTurnDiffReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepAgentTurnDiffReview(turnID string) bool",
              "doc": "KeepAgentTurnDiffReview keeps the actual diff in turnID's review (never the summary) and closes the review drawer.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1890
            },
            {
              "name": "KeepAgentTurnReview",
              "anchor": "Editor.KeepAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepAgentTurnReview(turnID string) error",
              "doc": "KeepAgentTurnReview marks an automation turn's Ready-to-review result as kept by the author.\nRefuses agent actors (ErrAutomationYouOnly) so automations can never auto-keep or apply You-only drafts.\n",
              "file": "pkg/editor/automations.go",
              "line": 1430
            },
            {
              "name": "KeepAllReviewChanges",
              "anchor": "Editor.KeepAllReviewChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepAllReviewChanges() (KeepAllResult, error)",
              "doc": "KeepAllReviewChanges applies Keep all (and ⌘↵) to the open review.\nInvariants enforced by the trust boundary (#1015):\n  - NEVER applies an open You-only PermissionsDraft (regardless of profile, Autonomous included).\n  - NEVER deletes any DeletionPending file; unconfirmed deletions remain on disk and stay pending for explicit confirmation.\n  - Keeps all non-reverted regular changes (and any open tile review) and applies ONLY deletions the person explicitly confirmed.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 597
            },
            {
              "name": "KeepAutomationDraft",
              "anchor": "Editor.KeepAutomationDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepAutomationDraft() error",
              "doc": "KeepAutomationDraft commits the pending natural-language automation draft into automations.yaml.\nRefuses agent actors (ErrAutomationYouOnly) so an automation can never apply a You-only draft.\n",
              "file": "pkg/editor/automations.go",
              "line": 868
            },
            {
              "name": "KeepBuildingFirstRun",
              "anchor": "Editor.KeepBuildingFirstRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepBuildingFirstRun()",
              "doc": "KeepBuildingFirstRun dismisses the Cancel confirmation dialog and resumes building.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2201
            },
            {
              "name": "KeepCodeReview",
              "anchor": "Editor.KeepCodeReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepCodeReview() error",
              "doc": "KeepCodeReview writes all unapplied YAML files plus all confirmed Go files to disk atomically as one undo step.\nUnconfirmed Go files are NEVER included in Keep: if any Go files remain unconfirmed, Keep writes only the YAML\n(and any confirmed Go) files, closes the review screen, and leaves a waiting card in the Agent panel.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1425
            },
            {
              "name": "KeepCutsceneReview",
              "anchor": "Editor.KeepCutsceneReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepCutsceneReview() error",
              "doc": "KeepCutsceneReview applies all kept review changes (and any manual edits joined to the review) in one undo step, writing the cutscene file to disk when CutscenePath is set and closing the review.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1321
            },
            {
              "name": "KeepDataTableReview",
              "anchor": "Editor.KeepDataTableReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepDataTableReview() error",
              "doc": "KeepDataTableReview commits all kept record changes and user edits across every file in the\nactive Data Table review as ONE atomic undo step, preserving untouched lines byte for byte.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 2257
            },
            {
              "name": "KeepDocReview",
              "anchor": "Editor.KeepDocReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepDocReview(id string) error",
              "doc": "KeepDocReview accepts the pending DocReview with id, applying the change as one undoable step\nin Editor.History and writing the file when a project is open.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1386
            },
            {
              "name": "KeepFirstRunReview",
              "anchor": "Editor.KeepFirstRunReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepFirstRunReview() error",
              "doc": "KeepFirstRunReview finalizes the First Review, applying any reverted object removals to the open scene,\nsaving, relinquishing temporary folder-delete ownership, and entering the normal working editor.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2562
            },
            {
              "name": "KeepLocalVersion",
              "anchor": "Editor.KeepLocalVersion",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepLocalVersion(kind DiskFileKind) error",
              "doc": "KeepLocalVersion resolves an external disk conflict for kind by keeping the editor's current in-memory document, acknowledging the current on-disk file so a subsequent Save will succeed, and recording the disk version in History as \"Changed outside the editor\" so Undo can inspect or revert to it.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1660
            },
            {
              "name": "KeepPendingAgentTurnReview",
              "anchor": "Editor.KeepPendingAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepPendingAgentTurnReview()",
              "doc": "KeepPendingAgentTurnReview keeps the latest turn's pending agent changes, resumes autosave, and shows a confirmation toast with Undo.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 1030
            },
            {
              "name": "KeepProposedAssets",
              "anchor": "Editor.KeepProposedAssets",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepProposedAssets()",
              "doc": "KeepProposedAssets approves all pending proposed imports, clearing their \"new\" / Proposed badge.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 622
            },
            {
              "name": "KeepProposedFile",
              "anchor": "Editor.KeepProposedFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepProposedFile(relPath string) error",
              "doc": "KeepProposedFile marks a proposed deletion as DeletionKept (\"The file stays · the rest of the review is unchanged\").\n",
              "file": "pkg/editor/agent_review.go",
              "line": 549
            },
            {
              "name": "KeepRemoteLiveChangesInScene",
              "anchor": "Editor.KeepRemoteLiveChangesInScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepRemoteLiveChangesInScene() (int, error)",
              "doc": "KeepRemoteLiveChangesInScene writes every live change whose entity maps to an object in the open scene (via sceneformat.ObjectRef or matching object ID) into e.Doc as a single undoable History group.\nOne Undo restores every kept change. Applied changes are removed from RemoteLiveChanges; changes on runtime-spawned entities with no scene object remain untouched.\n",
              "file": "pkg/editor/remote.go",
              "line": 1773
            },
            {
              "name": "KeepReview",
              "anchor": "Editor.KeepReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepReview()",
              "doc": "KeepReview closes the general interactive edit review as kept and schedules automatic saving of kept changes after AutoSaveDelay (2 s).\n",
              "file": "pkg/editor/autosave.go",
              "line": 212
            },
            {
              "name": "KeepSketchReview",
              "anchor": "Editor.KeepSketchReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepSketchReview() error",
              "doc": "KeepSketchReview keeps the agent's scene edits from the active sketch review, closes the review,\nand clears the sketch layer (marks, reading card, and hold).\n",
              "file": "pkg/editor/sketch.go",
              "line": 1596
            },
            {
              "name": "KeepTask",
              "anchor": "Editor.KeepTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepTask(id string) error",
              "doc": "KeepTask accepts a TaskReadyToReview turn, marks its review kept, transitions it to TaskDone,\nand starts the next queued task waiting for it.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1979
            },
            {
              "name": "KeepTileReview",
              "anchor": "Editor.KeepTileReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepTileReview() (AgentTileEditResult, error)",
              "doc": "KeepTileReview commits all non-reverted regions of the active tile review as ONE undoable step on History\nand closes the review. Undoing that single step restores the exact pre-review tilemap cleanly.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 2023
            },
            {
              "name": "KeepTurnReview",
              "anchor": "Editor.KeepTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeepTurnReview() error",
              "doc": "KeepTurnReview applies all non-reverted changes across every touched file as ONE History undo step,\nsaves them cleanly, shows a Toast with Undo, and updates the Agent panel summary.\nWhen any blocker is active, KeepTurnReview jumps to the first blocker and returns *ReviewBlockedError\n(which wraps ErrReviewBlocked).\n",
              "file": "pkg/editor/review.go",
              "line": 3447
            },
            {
              "name": "KeyProperty",
              "anchor": "Editor.KeyProperty",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeyProperty(target, property string, at time.Duration) (track, key int, err error)",
              "doc": "KeyProperty keys property at time at with the value it has in the scene, as an undoable command: the object's own field, its sprite frame for \"sprite.frame\", or a component field's value with its registered default when unset. Target is an object ID, or empty for the clip's target; a track that names the clip's target explicitly is the same track as one left empty. A track is added for a property the clip does not key yet, and a key already at that time takes the new value. A bool property's new key holds its value until the next key (resource.InterpStep). It returns the track and key indexes.\n",
              "file": "pkg/editor/animation.go",
              "line": 414
            },
            {
              "name": "KeyRigBoneRotate",
              "anchor": "Editor.KeyRigBoneRotate",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeyRigBoneRotate(anim, bone string, at time.Duration, angle float32, curve skeletal.CurveType, bezier [4]float32) error",
              "doc": "KeyRigBoneRotate keys bone's relative rotation angle (radians) at time at in animation anim as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1509
            },
            {
              "name": "KeyRigBoneScale",
              "anchor": "Editor.KeyRigBoneScale",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeyRigBoneScale(anim, bone string, at time.Duration, scaleX, scaleY float32, curve skeletal.CurveType, bezier [4]float32) error",
              "doc": "KeyRigBoneScale keys bone's relative scale (scaleX, scaleY) at time at in animation anim as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1541
            },
            {
              "name": "KeyRigBoneTranslate",
              "anchor": "Editor.KeyRigBoneTranslate",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeyRigBoneTranslate(anim, bone string, at time.Duration, x, y float32, curve skeletal.CurveType, bezier [4]float32) error",
              "doc": "KeyRigBoneTranslate keys bone's relative translation (x, y) at time at in animation anim as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1477
            },
            {
              "name": "KeyRigSlotAlpha",
              "anchor": "Editor.KeyRigSlotAlpha",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeyRigSlotAlpha(anim, slot string, at time.Duration, alpha float32, curve skeletal.CurveType, bezier [4]float32) error",
              "doc": "KeyRigSlotAlpha keys slot's opacity alpha in [0, 1] at time at in animation anim as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1606
            },
            {
              "name": "KeyRigSlotAttachment",
              "anchor": "Editor.KeyRigSlotAttachment",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeyRigSlotAttachment(anim, slot string, at time.Duration, frame string) error",
              "doc": "KeyRigSlotAttachment keys slot's active atlas frame (empty hides the slot) at time at in animation anim as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1573
            },
            {
              "name": "KeySpriteFrame",
              "anchor": "Editor.KeySpriteFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) KeySpriteFrame(target, frame string, at time.Duration) (track, key int, err error)",
              "doc": "KeySpriteFrame keys the discrete sprite.frame property on target (empty for the clip's target) with atlas frame name frame at time at, as an undoable command. When a resolver is configured, frame must exist in target's atlas.\n",
              "file": "pkg/editor/animation.go",
              "line": 480
            },
            {
              "name": "Language",
              "anchor": "Editor.Language",
              "recv": "*Editor",
              "decl": "func (e *Editor) Language() Language",
              "doc": "Language returns the editor's configured language setting (LanguageSystem, LanguageEnglish, or LanguageChinese).\n",
              "file": "pkg/editor/settings.go",
              "line": 637
            },
            {
              "name": "LastAgentChangeForObject",
              "anchor": "Editor.LastAgentChangeForObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) LastAgentChangeForObject(objectID string) (AgentObjectAttribution, bool)",
              "doc": "LastAgentChangeForObject returns the most recent non-reverted agent request that modified\nobjectID in the open scene (or a project-level thread), for the Inspector footer link.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1525
            },
            {
              "name": "LastAgentPrompt",
              "anchor": "Editor.LastAgentPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) LastAgentPrompt() AgentPromptRequest",
              "doc": "LastAgentPrompt returns the most recent AgentPromptRequest initiated by AskAgentAboutObject.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 780
            },
            {
              "name": "LastHUDPrompt",
              "anchor": "Editor.LastHUDPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) LastHUDPrompt() HUDPromptRequest",
              "doc": "LastHUDPrompt returns the most recent prompt submitted from the HUD layout screen.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 2049
            },
            {
              "name": "LastPlayMarksThread",
              "anchor": "Editor.LastPlayMarksThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) LastPlayMarksThread() *PlayMarksThread",
              "doc": "LastPlayMarksThread returns a copy of the most recently dispatched PlayMarksThread, or nil if none has been sent.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 778
            },
            {
              "name": "LastSentAgentRequest",
              "anchor": "Editor.LastSentAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) LastSentAgentRequest() *AgentRequest",
              "doc": "LastSentAgentRequest returns a copy of the last request assembled and sent by SendComposerPrompt, or nil.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2432
            },
            {
              "name": "LastSettingsAgentRequest",
              "anchor": "Editor.LastSettingsAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) LastSettingsAgentRequest() SettingsAgentRequest",
              "doc": "LastSettingsAgentRequest returns the most recent request dispatched via AskAgentFromSettings.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1599
            },
            {
              "name": "LastSketchRequest",
              "anchor": "Editor.LastSketchRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) LastSketchRequest() (SketchAgentRequest, bool)",
              "doc": "LastSketchRequest returns the most recent SketchAgentRequest sent via SendSketch.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1263
            },
            {
              "name": "LastViewport3DAgentRequest",
              "anchor": "Editor.LastViewport3DAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) LastViewport3DAgentRequest() (Viewport3DAgentRequest, bool)",
              "doc": "LastViewport3DAgentRequest returns the most recent request submitted from the 3D MODELS strip or 3D inspector agent prompt.\n",
              "file": "pkg/editor/models.go",
              "line": 1101
            },
            {
              "name": "LatestAgentTurn",
              "anchor": "Editor.LatestAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) LatestAgentTurn() (AgentTurn, bool)",
              "doc": "LatestAgentTurn returns the most recent agent turn and true, or zero and false when none exists.\n",
              "file": "pkg/editor/agent.go",
              "line": 1695
            },
            {
              "name": "LaunchBuildOnDevice",
              "anchor": "Editor.LaunchBuildOnDevice",
              "recv": "*Editor",
              "decl": "func (e *Editor) LaunchBuildOnDevice(deviceID string) error",
              "doc": "LaunchBuildOnDevice runs the selected RUN ON DEVICE target:\n  - \"browser\": opens the served web build URL in this Mac/computer's browser via OpenBrowserURL.\n  - \"phone-wifi\": selects the phone QR target and starts serving the web build if stopped.\n  - \"android-usb\": installs and runs the finished Android build on the connected USB Android device via `go tool nsgo`.\n",
              "file": "pkg/editor/build_device.go",
              "line": 1368
            },
            {
              "name": "LayerBaseValue",
              "anchor": "Editor.LayerBaseValue",
              "recv": "*Editor",
              "decl": "func (e *Editor) LayerBaseValue(layerName, fieldKey string) string",
              "doc": "LayerBaseValue returns a short human-readable summary of the un-overridden base value of fieldKey on layerName.\n",
              "file": "pkg/editor/overrides.go",
              "line": 1161
            },
            {
              "name": "LayerKindColor",
              "anchor": "Editor.LayerKindColor",
              "recv": "*Editor",
              "decl": "func (e *Editor) LayerKindColor(p SpecPalette, layerName string) core.Color",
              "doc": "LayerKindColor maps a layer's kind to a SpecPalette token color.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 538
            },
            {
              "name": "LayerKindLabel",
              "anchor": "Editor.LayerKindLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) LayerKindLabel(layerName string) string",
              "doc": "LayerKindLabel returns the concise Spec kind tag for a layer row in the scene rail\n(\"tiles\", \"screen\", or \"layer\").\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 492
            },
            {
              "name": "LayerLocked",
              "anchor": "Editor.LayerLocked",
              "recv": "*Editor",
              "decl": "func (e *Editor) LayerLocked(name string) bool",
              "doc": "LayerLocked reports whether the layer name is locked against the viewports (SetLayerLocked).\n",
              "file": "pkg/editor/layers.go",
              "line": 721
            },
            {
              "name": "LayerOverrideFields",
              "anchor": "Editor.LayerOverrideFields",
              "recv": "*Editor",
              "decl": "func (e *Editor) LayerOverrideFields(layerName string) []string",
              "doc": "LayerOverrideFields returns the sorted list of overridden fields in SceneDoc.LayerOverrides[layerName].\n",
              "file": "pkg/editor/overrides.go",
              "line": 1112
            },
            {
              "name": "Layers",
              "anchor": "Editor.Layers",
              "recv": "*Editor",
              "decl": "func (e *Editor) Layers() []LayerInfo",
              "doc": "Layers returns the open scene's layers in draw order, the first drawn first, with what the layers panel shows of each. In a scene that inherits another the space, order and visibility are those the resolved scene gives a layer, so a layer that extends one of the base's shows the base's, as its layer overrides change them.\n",
              "file": "pkg/editor/layers.go",
              "line": 70
            },
            {
              "name": "LayersPanelOpen",
              "anchor": "Editor.LayersPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) LayersPanelOpen() bool",
              "doc": "LayersPanelOpen reports whether the docked Layers panel is open.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 220
            },
            {
              "name": "LayoutFile",
              "anchor": "Editor.LayoutFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) LayoutFile() *LayoutFile",
              "doc": "LayoutFile returns a canonical copy of the editor's current persisted dock layout.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1260
            },
            {
              "name": "LeaveAgentContext",
              "anchor": "Editor.LeaveAgentContext",
              "recv": "*Editor",
              "decl": "func (e *Editor) LeaveAgentContext()",
              "doc": "LeaveAgentContext ends a scope opened by EnterAgentContext.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 101
            },
            {
              "name": "LeftRailMode",
              "anchor": "Editor.LeftRailMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) LeftRailMode() LeftRailMode",
              "doc": "LeftRailMode returns whether the editor's left rail is in Scene mode or Assets mode.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 393
            },
            {
              "name": "LibraryPanelOpen",
              "anchor": "Editor.LibraryPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) LibraryPanelOpen() bool",
              "doc": "LibraryPanelOpen reports whether the Asset Pack Library panel is open.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 268
            },
            {
              "name": "LoadAgentThread",
              "anchor": "Editor.LoadAgentThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadAgentThread(filePath string) error",
              "doc": "LoadAgentThread loads tasks from path (a *.thread.yaml file) into the editor.\n",
              "file": "pkg/editor/tasks.go",
              "line": 633
            },
            {
              "name": "LoadAssetStyleBrief",
              "anchor": "Editor.LoadAssetStyleBrief",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadAssetStyleBrief() AssetStyleBrief",
              "doc": "LoadAssetStyleBrief reads brief.yaml from the open project root when present, falling back to DefaultAssetStyleBrief for omitted fields.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 496
            },
            {
              "name": "LoadCheckpoints",
              "anchor": "Editor.LoadCheckpoints",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadCheckpoints() ([]CheckpointSummary, error)",
              "doc": "LoadCheckpoints scans .nsgo/checkpoints/ in the open project, parses each manifest, sorts newest\nfirst, and updates the editor's cached checkpoint list. Invalid, symlinked, or non-checkpoint directories are skipped.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1142
            },
            {
              "name": "LoadLayout",
              "anchor": "Editor.LoadLayout",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadLayout() error",
              "doc": "LoadLayout loads the dock layout from Editor.LayoutPath when set, dropping any panels that no longer exist.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1155
            },
            {
              "name": "LoadNavMesh3D",
              "anchor": "Editor.LoadNavMesh3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadNavMesh3D() (*navbake3d.File, error)",
              "doc": "LoadNavMesh3D reads and parses the scene's navMesh file (SceneDoc.NavMesh) from the open project\n(or scene directory / NavMesh3DAssetFS) and loads it into the 3D viewport preview overlay.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 348
            },
            {
              "name": "LoadPlaytestReport",
              "anchor": "Editor.LoadPlaytestReport",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadPlaytestReport(cfg PlaytestReportOpenConfig) error",
              "doc": "LoadPlaytestReport loads a playtest report into the editor without forcing the Playtest Report screen open.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 376
            },
            {
              "name": "LoadProjectPermissions",
              "anchor": "Editor.LoadProjectPermissions",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadProjectPermissions(path string) error",
              "doc": "LoadProjectPermissions loads permissions.yaml from path (falling back to DefaultPermissions when the file does not exist yet).\nWhen permissions.yaml exists but fails to parse or validate, the editor fails closed: it records PermissionsErr(),\nloads PermissionProfileCautious into memory, and EvaluatePermission denies all mutating/running calls until fixed.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1472
            },
            {
              "name": "LoadRecentProjects",
              "anchor": "Editor.LoadRecentProjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadRecentProjects() error",
              "doc": "LoadRecentProjects loads the recent projects list from Editor.RecentProjectsPath when set.\n",
              "file": "pkg/editor/recent_projects.go",
              "line": 230
            },
            {
              "name": "LoadSettings",
              "anchor": "Editor.LoadSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadSettings(path string) error",
              "doc": "LoadSettings sets SettingsPath to path and loads per-user editor settings from it. If path does not exist yet, default settings are applied without error; if the file exists and is invalid, an error is returned without changing the current settings.\n",
              "file": "pkg/editor/settings.go",
              "line": 946
            },
            {
              "name": "LoadUserSettings",
              "anchor": "Editor.LoadUserSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) LoadUserSettings() error",
              "doc": "LoadUserSettings loads per-user editor settings from DefaultSettingsPath(), creating no file until a setting is changed or saved.\n",
              "file": "pkg/editor/settings.go",
              "line": 962
            },
            {
              "name": "LocalizationDir",
              "anchor": "Editor.LocalizationDir",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationDir() string",
              "doc": "LocalizationDir returns the directory where the open localization YAML files live, or \"\".\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 171
            },
            {
              "name": "LocalizationDirty",
              "anchor": "Editor.LocalizationDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationDirty() bool",
              "doc": "LocalizationDirty reports whether any locale table in the open workspace differs from what was opened or last saved.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 679
            },
            {
              "name": "LocalizationError",
              "anchor": "Editor.LocalizationError",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationError() error",
              "doc": "LocalizationError returns the most recent error encountered in the Localization panel, or nil.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 179
            },
            {
              "name": "LocalizationIsMissing",
              "anchor": "Editor.LocalizationIsMissing",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationIsMissing(locale, key string) bool",
              "doc": "LocalizationIsMissing reports whether (locale, key) has a missing translation (an empty string for a simple key, or a missing \"other\" form for a plural key).\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 381
            },
            {
              "name": "LocalizationKeyPlural",
              "anchor": "Editor.LocalizationKeyPlural",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationKeyPlural(key string) bool",
              "doc": "LocalizationKeyPlural reports whether key is edited as CLDR plural forms.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 345
            },
            {
              "name": "LocalizationKeys",
              "anchor": "Editor.LocalizationKeys",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationKeys() []string",
              "doc": "LocalizationKeys returns the sorted message key rows of the open localization workspace.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 332
            },
            {
              "name": "LocalizationLoading",
              "anchor": "Editor.LocalizationLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationLoading() bool",
              "doc": "LocalizationLoading reports whether the Localization panel is currently loading tables.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 196
            },
            {
              "name": "LocalizationLocales",
              "anchor": "Editor.LocalizationLocales",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationLocales() []string",
              "doc": "LocalizationLocales returns the sorted BCP-47 locale columns of the open localization workspace.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 324
            },
            {
              "name": "LocalizationMissing",
              "anchor": "Editor.LocalizationMissing",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationMissing() []MissingTranslation",
              "doc": "LocalizationMissing returns every missing (locale, key) translation in deterministic key-then-locale order.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 389
            },
            {
              "name": "LocalizationMissingCount",
              "anchor": "Editor.LocalizationMissingCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationMissingCount() int",
              "doc": "LocalizationMissingCount returns the number of missing translations across all keys and locales.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 411
            },
            {
              "name": "LocalizationOpen",
              "anchor": "Editor.LocalizationOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationOpen() bool",
              "doc": "LocalizationOpen reports whether the Localization panel currently has a workspace open.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 166
            },
            {
              "name": "LocalizationPlural",
              "anchor": "Editor.LocalizationPlural",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationPlural(locale, key string) (l10n.PluralForms, bool)",
              "doc": "LocalizationPlural returns the CLDR plural forms for (locale, key) and whether any form is set.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 367
            },
            {
              "name": "LocalizationTable",
              "anchor": "Editor.LocalizationTable",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationTable(locale string) (*l10n.StringTable, error)",
              "doc": "LocalizationTable returns the canonical l10n.StringTable snapshot for locale.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 658
            },
            {
              "name": "LocalizationValue",
              "anchor": "Editor.LocalizationValue",
              "recv": "*Editor",
              "decl": "func (e *Editor) LocalizationValue(locale, key string) (string, bool)",
              "doc": "LocalizationValue returns the plain string translation for (locale, key) and whether it is present.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 353
            },
            {
              "name": "LookThroughCamera3D",
              "anchor": "Editor.LookThroughCamera3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) LookThroughCamera3D() bool",
              "doc": "LookThroughCamera3D reports whether the 3D viewport is currently looking through the scene's active 3D camera.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 459
            },
            {
              "name": "MakeInstanceLocal",
              "anchor": "Editor.MakeInstanceLocal",
              "recv": "*Editor",
              "decl": "func (e *Editor) MakeInstanceLocal(objectID string) error",
              "doc": "MakeInstanceLocal replaces a scene instance object (objectID, its owning instance if objectID is an instanced child,\nor SelectedID when empty) with a local copy of its resolved objects and connections in one undoable step.\n",
              "file": "pkg/editor/overrides.go",
              "line": 1236
            },
            {
              "name": "MarkAgentTurnPartial",
              "anchor": "Editor.MarkAgentTurnPartial",
              "recv": "*Editor",
              "decl": "func (e *Editor) MarkAgentTurnPartial(turnID string, partial AgentPartialState)",
              "doc": "MarkAgentTurnPartial attaches a partial completion card to turnID (or the latest turn when turnID is empty).\n",
              "file": "pkg/editor/agent_states.go",
              "line": 739
            },
            {
              "name": "MarkTipsSeen",
              "anchor": "Editor.MarkTipsSeen",
              "recv": "*Editor",
              "decl": "func (e *Editor) MarkTipsSeen(ids ...string) error",
              "doc": "MarkTipsSeen records one or more tip IDs in EditorSettings.SeenTips, saving to SettingsPath when set.\n",
              "file": "pkg/editor/first_run.go",
              "line": 475
            },
            {
              "name": "MarqueeActive",
              "anchor": "Editor.MarqueeActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) MarqueeActive() bool",
              "doc": "MarqueeActive reports whether a 2D viewport marquee box selection drag is in progress.\n",
              "file": "pkg/editor/marquee.go",
              "line": 40
            },
            {
              "name": "MarqueeRect",
              "anchor": "Editor.MarqueeRect",
              "recv": "*Editor",
              "decl": "func (e *Editor) MarqueeRect() (MarqueeRect, bool)",
              "doc": "MarqueeRect returns the active marquee rectangle in normalized canvas coordinates (X0<=X1, Y0<=Y1)\nand true, or the zero rect and false when no marquee drag is active.\n",
              "file": "pkg/editor/marquee.go",
              "line": 46
            },
            {
              "name": "Material",
              "anchor": "Editor.Material",
              "recv": "*Editor",
              "decl": "func (e *Editor) Material() *resource.Material",
              "doc": "Material returns a deep copy of the resource.Material open in the Material Editor panel, or nil when closed.\n",
              "file": "pkg/editor/materials.go",
              "line": 253
            },
            {
              "name": "MaterialDirty",
              "anchor": "Editor.MaterialDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) MaterialDirty() bool",
              "doc": "MaterialDirty reports whether the open material differs from the canonical resource.Encode bytes it was opened from or last saved to.\n",
              "file": "pkg/editor/materials.go",
              "line": 278
            },
            {
              "name": "MaterialOpen",
              "anchor": "Editor.MaterialOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) MaterialOpen() bool",
              "doc": "MaterialOpen reports whether the Material Editor panel has a material open.\n",
              "file": "pkg/editor/materials.go",
              "line": 248
            },
            {
              "name": "MaterialPath",
              "anchor": "Editor.MaterialPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) MaterialPath() string",
              "doc": "MaterialPath returns the disk path of the open material file, or \"\" for an unsaved or in-memory material.\n",
              "file": "pkg/editor/materials.go",
              "line": 262
            },
            {
              "name": "MaterialPreviewImage",
              "anchor": "Editor.MaterialPreviewImage",
              "recv": "*Editor",
              "decl": "func (e *Editor) MaterialPreviewImage(size int) (*image.RGBA, error)",
              "doc": "MaterialPreviewImage renders the open material's live 3D preview (sphere or cube) with render3d on a software GPU into a square RGBA image of size pixels, caching the image until the material, shape, size, lighting, or project assets change. Returns (nil, nil) when no material is open or the preview shape is MaterialPreviewSprite.\n",
              "file": "pkg/editor/materials.go",
              "line": 1104
            },
            {
              "name": "MaterialPreviewShape",
              "anchor": "Editor.MaterialPreviewShape",
              "recv": "*Editor",
              "decl": "func (e *Editor) MaterialPreviewShape() MaterialPreviewShape",
              "doc": "MaterialPreviewShape returns the active preview shape (Sphere, Cube, or Sprite).\n",
              "file": "pkg/editor/materials.go",
              "line": 291
            },
            {
              "name": "MaterialRelPath",
              "anchor": "Editor.MaterialRelPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) MaterialRelPath() string",
              "doc": "MaterialRelPath returns the slash-separated project-relative path of the open material, used for Library.Reload live updates, or \"\".\n",
              "file": "pkg/editor/materials.go",
              "line": 270
            },
            {
              "name": "MentionPickerActiveIndex",
              "anchor": "Editor.MentionPickerActiveIndex",
              "recv": "*Editor",
              "decl": "func (e *Editor) MentionPickerActiveIndex() int",
              "doc": "MentionPickerActiveIndex returns the 0-based index of the highlighted item in MentionPickerItems().\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 515
            },
            {
              "name": "MentionPickerGroup",
              "anchor": "Editor.MentionPickerGroup",
              "recv": "*Editor",
              "decl": "func (e *Editor) MentionPickerGroup() MentionGroup",
              "doc": "MentionPickerGroup returns the active group tab in the @-mention picker.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 507
            },
            {
              "name": "MentionPickerItems",
              "anchor": "Editor.MentionPickerItems",
              "recv": "*Editor",
              "decl": "func (e *Editor) MentionPickerItems() []MentionItem",
              "doc": "MentionPickerItems returns the filtered, ranked items currently shown in the @-mention picker\nfor the active query and group tab, excluding items already attached as chips.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 715
            },
            {
              "name": "MentionPickerOpen",
              "anchor": "Editor.MentionPickerOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) MentionPickerOpen() bool",
              "doc": "MentionPickerOpen reports whether the @-mention picker popover is currently open.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 494
            },
            {
              "name": "MentionPickerQuery",
              "anchor": "Editor.MentionPickerQuery",
              "recv": "*Editor",
              "decl": "func (e *Editor) MentionPickerQuery() string",
              "doc": "MentionPickerQuery returns the current @-mention filter query (without the leading '@').\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 499
            },
            {
              "name": "MergeConflictOpen",
              "anchor": "Editor.MergeConflictOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) MergeConflictOpen() bool",
              "doc": "MergeConflictOpen reports whether the Scene Merge Conflict resolution screen is currently active.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 194
            },
            {
              "name": "MergeSession",
              "anchor": "Editor.MergeSession",
              "recv": "*Editor",
              "decl": "func (e *Editor) MergeSession() *MergeConflictSession",
              "doc": "MergeSession returns the active scene merge conflict session, or nil when closed.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 199
            },
            {
              "name": "MissingPlugins",
              "anchor": "Editor.MissingPlugins",
              "recv": "*Editor",
              "decl": "func (e *Editor) MissingPlugins() []string",
              "doc": "MissingPlugins returns the names the open project lists under editor.plugins that no registered plugin has, in the project's order: plugins this editor binary was built without.\n",
              "file": "pkg/editor/plugin.go",
              "line": 414
            },
            {
              "name": "ModelPreviewAnimation",
              "anchor": "Editor.ModelPreviewAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) ModelPreviewAnimation() int",
              "doc": "ModelPreviewAnimation returns the 0-based index of the active animation in the model import preview, or -1 when the model has no animations.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 601
            },
            {
              "name": "ModelPreviewCamera",
              "anchor": "Editor.ModelPreviewCamera",
              "recv": "*Editor",
              "decl": "func (e *Editor) ModelPreviewCamera() OrbitCamera3D",
              "doc": "ModelPreviewCamera returns the current orbit camera of the model import preview.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 495
            },
            {
              "name": "ModelPreviewDuration",
              "anchor": "Editor.ModelPreviewDuration",
              "recv": "*Editor",
              "decl": "func (e *Editor) ModelPreviewDuration() time.Duration",
              "doc": "ModelPreviewDuration returns the duration of the active animation in the model import preview, or 0 when none is active.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 622
            },
            {
              "name": "ModelPreviewLoop",
              "anchor": "Editor.ModelPreviewLoop",
              "recv": "*Editor",
              "decl": "func (e *Editor) ModelPreviewLoop() bool",
              "doc": "ModelPreviewLoop reports whether model preview animation playback wraps at the end of the clip.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 633
            },
            {
              "name": "ModelPreviewNodeWorldTransform",
              "anchor": "Editor.ModelPreviewNodeWorldTransform",
              "recv": "*Editor",
              "decl": "func (e *Editor) ModelPreviewNodeWorldTransform(nodeIndex int) (math3d.Mat4, bool)",
              "doc": "ModelPreviewNodeWorldTransform returns the current evaluated world matrix of glTF node nodeIndex from the active model preview pose.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 801
            },
            {
              "name": "ModelPreviewPlaying",
              "anchor": "Editor.ModelPreviewPlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) ModelPreviewPlaying() bool",
              "doc": "ModelPreviewPlaying reports whether the model import preview is actively playing an animation.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 609
            },
            {
              "name": "ModelPreviewTime",
              "anchor": "Editor.ModelPreviewTime",
              "recv": "*Editor",
              "decl": "func (e *Editor) ModelPreviewTime() time.Duration",
              "doc": "ModelPreviewTime returns the current animation playhead timestamp in the model import preview.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 614
            },
            {
              "name": "ModelThumbnail",
              "anchor": "Editor.ModelThumbnail",
              "recv": "*Editor",
              "decl": "func (e *Editor) ModelThumbnail(m ModelEntry) (*image.RGBA, error)",
              "doc": "ModelThumbnail returns a picture of m, ModelThumbnailSize pixels square: its geometry framed from above, in front and to the right, lit by DefaultLights3D on a transparent background. The first call for a model loads it on the calling goroutine, the UI goroutine, as everything the Resolver serves loads, and leaves the rendering, through scenemodel on NSGo's software GPU (gpu.SoftwareRenderer), to a worker goroutine: it returns nil and no error, and the asset browser redraws when the picture is ready. The model loads apart from the 3D build's cache, which keeps only what the scene uses. It returns an error when m's model does not load or draws no geometry. The thumbnails are kept until the open project changes or its built assets reload (ReloadAssets).\n",
              "file": "pkg/editor/model_thumbs.go",
              "line": 93
            },
            {
              "name": "Models",
              "anchor": "Editor.Models",
              "recv": "*Editor",
              "decl": "func (e *Editor) Models() []ModelEntry",
              "doc": "Models returns what the asset browser offers to place in 3D: the built-in primitives in sceneformat.MeshPrimitives order, then the open project's models (ProjectModels) by path, each output of a model target marked Output.\n",
              "file": "pkg/editor/models.go",
              "line": 128
            },
            {
              "name": "MoveAudioBus",
              "anchor": "Editor.MoveAudioBus",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveAudioBus(from, to int) error",
              "doc": "MoveAudioBus moves the bus at index from to index to through EditProject.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 469
            },
            {
              "name": "MoveAudioBusEffect",
              "anchor": "Editor.MoveAudioBusEffect",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveAudioBusEffect(bus string, from, to int) error",
              "doc": "MoveAudioBusEffect moves an effect on bus from index from to index to through EditProject.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 582
            },
            {
              "name": "MoveDataTableRow",
              "anchor": "Editor.MoveDataTableRow",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveDataTableRow(from, to int) error",
              "doc": "MoveDataTableRow moves row from to to (both 0-based) as an undoable command.\n",
              "file": "pkg/editor/datatable.go",
              "line": 528
            },
            {
              "name": "MoveExportPreset",
              "anchor": "Editor.MoveExportPreset",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveExportPreset(platform string, delta int) error",
              "doc": "MoveExportPreset moves platform's export preset by delta positions (-1 up, +1 down) through EditProject.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 432
            },
            {
              "name": "MoveFile",
              "anchor": "Editor.MoveFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveFile(from, to string) error",
              "doc": "MoveFile moves or renames the file or directory from to to, both slash-separated paths from the root of the open project (the directory of ProjectPath), and rewrites every reference to what it moves across the project, as refs.PlanMove plans and `game mv` does: in the scenes, resource files, game.yaml, Tiled and LDtk files on disk, and in the open scene, project and clip, which keep their unsaved edits. When the open scene, or the open clip's file, is among the files moved, FilePath, ScenePath and ClipPath follow it.\n\nThe move is one undoable step. Undo moves the files back and puts back, byte for byte, each file the move rewrote, the project index included, and removes an index the move created and the directories it created when they are left empty; a file changed since the move has its references rewritten back as a move from to to from would, and a file the move left alone, such as one that already named to, stays as it is. Redo moves the files once more. A step that something on disk now blocks, such as a new file where the move would put one, fails and stays where it was, and the status bar says why. MoveFile refuses while playing (ErrPlaying) or without a project (ErrNoProject), and changes nothing when the plan fails.\n",
              "file": "pkg/editor/refs.go",
              "line": 23
            },
            {
              "name": "MoveKey",
              "anchor": "Editor.MoveKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveKey(track, key int, to time.Duration) (int, error)",
              "doc": "MoveKey moves key key on track track to time to, as an undoable command, and returns the key's index after the track's keys are put back in time order. It refuses a time outside the clip or one another key on the track already has.\n",
              "file": "pkg/editor/animation.go",
              "line": 673
            },
            {
              "name": "MoveLayer",
              "anchor": "Editor.MoveLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveLayer(name string, index int) error",
              "doc": "MoveLayer moves the layer name to position index of the draw order Layers lists, 0 drawing first, as an undoable command; an index below 0 puts it first and one past the end last. It moves the layer in the file next to the layer it is to draw after or before and changes its order only when the order it has would not draw it there, to the order of that neighbour, so the other layers keep their place and their orders. In a scene that inherits another it refuses to move a layer that extends one of the base's, whose order the base owns, and a move the resolved scene would not draw as asked.\n",
              "file": "pkg/editor/layers.go",
              "line": 458
            },
            {
              "name": "MoveMentionSelection",
              "anchor": "Editor.MoveMentionSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveMentionSelection(delta int) int",
              "doc": "MoveMentionSelection moves the highlighted row in the @-mention picker by delta (+1 down, -1 up).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 605
            },
            {
              "name": "MoveObject",
              "anchor": "Editor.MoveObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveObject(id string, x, y float32) error",
              "doc": "MoveObject sets object id's position to (x, y) as an undoable command.\nWhen id names an instanced or inherited object, it records an override on its instance or inheriting scene.\n",
              "file": "pkg/editor/state.go",
              "line": 2332
            },
            {
              "name": "MoveObject3D",
              "anchor": "Editor.MoveObject3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveObject3D(id string, x, y, posZ float32) error",
              "doc": "MoveObject3D sets object id's 3D position (x, y, posZ) as an undoable command.\n",
              "file": "pkg/editor/state.go",
              "line": 2630
            },
            {
              "name": "MoveObjectToLayer",
              "anchor": "Editor.MoveObjectToLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveObjectToLayer(id, layer string, index int) error",
              "doc": "MoveObjectToLayer moves the object id, with its descendants, to the top level of layer at index among its objects, as one undoable command; an index below 0 or past the last object puts it last. The object keeps its world transform within the layer's coordinate space, as ReparentObject does: a child taken out of its parent gets the local transform that leaves it where it was drawn. A move between a world and a screen layer keeps the numbers, not where the object appears on screen.\n",
              "file": "pkg/editor/hierarchy.go",
              "line": 261
            },
            {
              "name": "MoveObjectUnder",
              "anchor": "Editor.MoveObjectUnder",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveObjectUnder(id, parentID string) error",
              "doc": "MoveObjectUnder reparents object id under parentID (or to the top level of its layer when parentID is \"\")\nat the end of parentID's children as ONE undoable History step, preserving its world transform.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 595
            },
            {
              "name": "MovePanel",
              "anchor": "Editor.MovePanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) MovePanel(key, targetPanel string) bool",
              "doc": "MovePanel moves panel key into the same tab group as targetPanel,\nupdates and persists the layout, and returns whether the move succeeded.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1398
            },
            {
              "name": "MovePermissionRule",
              "anchor": "Editor.MovePermissionRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) MovePermissionRule(index, delta int) error",
              "doc": "MovePermissionRule moves rule at index by delta (-1 up, +1 down), keeps focus on the moved rule, and persists permissions.yaml.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1451
            },
            {
              "name": "MoveRigBone",
              "anchor": "Editor.MoveRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveRigBone(name string, x, y float32) error",
              "doc": "MoveRigBone sets bone name's bind-pose local offset (x, y) as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 947
            },
            {
              "name": "MoveRigSlotOrder",
              "anchor": "Editor.MoveRigSlotOrder",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveRigSlotOrder(slot string, newIndex int) error",
              "doc": "MoveRigSlotOrder moves slot to newIndex in draw order (back to front) as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1094
            },
            {
              "name": "MoveUnderCandidates",
              "anchor": "Editor.MoveUnderCandidates",
              "recv": "*Editor",
              "decl": "func (e *Editor) MoveUnderCandidates(id string) []MoveUnderCandidate",
              "doc": "MoveUnderCandidates returns every valid target parent that object id can be moved under via\nMoveObjectUnder / ReparentObject, excluding id itself, its descendants (preventing cycles),\nand any candidate that would exceed sceneformat.MaxObjectDepth. Each entry carries a descriptive\nnote (current parent, locked status, child count, or layer).\n",
              "file": "pkg/editor/context_menu.go",
              "line": 514
            },
            {
              "name": "NavMesh3DError",
              "anchor": "Editor.NavMesh3DError",
              "recv": "*Editor",
              "decl": "func (e *Editor) NavMesh3DError() string",
              "doc": "NavMesh3DError returns the error message from the most recent failed navmesh bake or load, or empty.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 159
            },
            {
              "name": "NavMesh3DFile",
              "anchor": "Editor.NavMesh3DFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) NavMesh3DFile() *navbake3d.File",
              "doc": "NavMesh3DFile returns the currently loaded or baked 3D navigation mesh file, or nil.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 126
            },
            {
              "name": "NavMesh3DMesh",
              "anchor": "Editor.NavMesh3DMesh",
              "recv": "*Editor",
              "decl": "func (e *Editor) NavMesh3DMesh() *navbake3d.Mesh",
              "doc": "NavMesh3DMesh returns the active preview mesh from NavMesh3DFile: the mesh matching\nNavMeshBakeConfig().AgentName when present, or the first mesh in the file.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 145
            },
            {
              "name": "NavMeshBakeConfig",
              "anchor": "Editor.NavMeshBakeConfig",
              "recv": "*Editor",
              "decl": "func (e *Editor) NavMeshBakeConfig() NavMeshBakeConfig",
              "doc": "NavMeshBakeConfig returns the editor's current 3D navigation mesh bake settings.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 99
            },
            {
              "name": "NavMeshPanelOpen",
              "anchor": "Editor.NavMeshPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) NavMeshPanelOpen() bool",
              "doc": "NavMeshPanelOpen reports whether the 3D NavMesh bake settings panel is visible.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 76
            },
            {
              "name": "NavPathPreview2D",
              "anchor": "Editor.NavPathPreview2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) NavPathPreview2D() NavPathPreview2D",
              "doc": "NavPathPreview2D returns a snapshot of the active 2D test-path endpoints and computed path.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 130
            },
            {
              "name": "Navigation3D",
              "anchor": "Editor.Navigation3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) Navigation3D() Navigation3D",
              "doc": "Navigation3D returns the configured 3D viewport mouse navigation mapping (\"default\", \"blender\", or \"maya\").\n",
              "file": "pkg/editor/settings.go",
              "line": 725
            },
            {
              "name": "NewAgentThread",
              "anchor": "Editor.NewAgentThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewAgentThread() *AgentThread",
              "doc": "NewAgentThread starts a new empty thread for the currently open scene (⌘N) and activates it.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 926
            },
            {
              "name": "NewClip",
              "anchor": "Editor.NewClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewClip(target, name string, length time.Duration) error",
              "doc": "NewClip opens a new, empty clip named name and length long that plays on the object target (the selected object when target is empty), as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 59
            },
            {
              "name": "NewClipFromAsepriteTag",
              "anchor": "Editor.NewClipFromAsepriteTag",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewClipFromAsepriteTag(target, tag string) error",
              "doc": "NewClipFromAsepriteTag creates and opens an animation clip from the named Aseprite tag on target's atlas (the selected object when target is empty), matching the tag's frames, exact durations and loop setting, as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 79
            },
            {
              "name": "NewClipFromFrames",
              "anchor": "Editor.NewClipFromFrames",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewClipFromFrames(target, name string, frames []string, fps float64, loop bool) error",
              "doc": "NewClipFromFrames creates and opens an animation clip on target (the selected object when target is empty) that steps through frames at fixed frame rate fps (frames per second), as an undoable command. When a resolver is configured, every frame must exist in target's atlas.\n",
              "file": "pkg/editor/animation.go",
              "line": 113
            },
            {
              "name": "NewGridMap",
              "anchor": "Editor.NewGridMap",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewGridMap(relPath, meshLibrary string, cellSize math3d.Vec3) error",
              "doc": "NewGridMap creates a new empty GridMap using meshLibrary and cellSize, ready to paint and save to relPath.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 418
            },
            {
              "name": "NewLocalizations",
              "anchor": "Editor.NewLocalizations",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewLocalizations(dir string, locales ...string) error",
              "doc": "NewLocalizations opens a fresh localization workspace targeting dir with the given BCP-47 locales (sorted and deduplicated) as an undoable command.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 220
            },
            {
              "name": "NewMaterial",
              "anchor": "Editor.NewMaterial",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewMaterial() error",
              "doc": "NewMaterial opens a new unsaved starter material in the Material Editor panel as an undoable command.\n",
              "file": "pkg/editor/materials.go",
              "line": 335
            },
            {
              "name": "NewParticleEmitter",
              "anchor": "Editor.NewParticleEmitter",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewParticleEmitter() error",
              "doc": "NewParticleEmitter opens a new starter 2D particle emitter in the Particle Emitter panel as an undoable command.\n",
              "file": "pkg/editor/particles.go",
              "line": 260
            },
            {
              "name": "NewProjectAgentThread",
              "anchor": "Editor.NewProjectAgentThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewProjectAgentThread() *AgentThread",
              "doc": "NewProjectAgentThread starts a new empty project-level thread (Project · no scene) and activates it.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 934
            },
            {
              "name": "NewRig",
              "anchor": "Editor.NewRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewRig(name, atlasName string) error",
              "doc": "NewRig creates and opens a new minimal skeletal rig with one root bone as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 299
            },
            {
              "name": "NewRoomMap",
              "anchor": "Editor.NewRoomMap",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewRoomMap(filePath string) error",
              "doc": "NewRoomMap creates a new valid room map beside the current scene with one starter room\nsized to the scene's virtual viewport (snapped to the tile grid when present) and selects it.\n",
              "file": "pkg/editor/rooms.go",
              "line": 272
            },
            {
              "name": "NewScene",
              "anchor": "Editor.NewScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewScene(rel string) (string, error)",
              "doc": "NewScene writes a new, minimal valid scene to rel, a slash-separated path from the root of the open project, and opens it as OpenScene does. A path without a .yaml or .yml extension gets \".scene.yaml\" (one ending in \".scene\" gets \".yaml\"), the name `game check` and `game index` find scenes by, and NewScene returns the path it wrote. The scene is named after the file and is as large as the project's display, or its window without one, with one world layer, \"main\". It refuses the names of the project's own files, game.yaml and nsgo.yaml, makes the directories the path needs, never overwrites a file (ErrFileExists), and returns ErrNoProject without a project. Like OpenScene, it loses the open scene's unsaved edits.\n",
              "file": "pkg/editor/scenefile.go",
              "line": 374
            },
            {
              "name": "NewTerrain",
              "anchor": "Editor.NewTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) NewTerrain(opts NewTerrainOptions) error",
              "doc": "NewTerrain creates a flat editable terrain with 16-bit heightmap precision,\nper-layer weight maps, and optional foliage layers, opens it in the editor,\nand switches the viewport to 3D mode.\n",
              "file": "pkg/editor/terrain.go",
              "line": 456
            },
            {
              "name": "NextFirstRunTip",
              "anchor": "Editor.NextFirstRunTip",
              "recv": "*Editor",
              "decl": "func (e *Editor) NextFirstRunTip() error",
              "doc": "NextFirstRunTip marks the active first-review tip as seen in EditorSettings and advances to the next unseen tip.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2538
            },
            {
              "name": "NoteAgentEditedObjects",
              "anchor": "Editor.NoteAgentEditedObjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) NoteAgentEditedObjects(objectIDs, files []string, label string)",
              "doc": "NoteAgentEditedObjects records object IDs and files modified by an agent edit (for example\nthrough editormcp's scene_edit) on the active thread's pending latest request when present.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1361
            },
            {
              "name": "NotifyAgentMCPConnected",
              "anchor": "Editor.NotifyAgentMCPConnected",
              "recv": "*Editor",
              "decl": "func (e *Editor) NotifyAgentMCPConnected(client AgentClientInfo)",
              "doc": "NotifyAgentMCPConnected records that an MCP client session attached to the editor's MCP server.\nTransitions waiting/reconnecting/disconnected states immediately to AgentStatusConnected.\n",
              "file": "pkg/editor/agent.go",
              "line": 1183
            },
            {
              "name": "NotifyAgentMCPDisconnected",
              "anchor": "Editor.NotifyAgentMCPDisconnected",
              "recv": "*Editor",
              "decl": "func (e *Editor) NotifyAgentMCPDisconnected(clientID, reason string)",
              "doc": "NotifyAgentMCPDisconnected records that an MCP client session closed or dropped.\nWhen the last connected client drops, the editor enters AgentStatusReconnecting and runs the 1, 2, 4, 8, 16 s retry schedule before transitioning to AgentStatusDisconnected.\n",
              "file": "pkg/editor/agent.go",
              "line": 1230
            },
            {
              "name": "NotifyAutomationFileAdded",
              "anchor": "Editor.NotifyAutomationFileAdded",
              "recv": "*Editor",
              "decl": "func (e *Editor) NotifyAutomationFileAdded(relPath string) int",
              "doc": "NotifyAutomationFileAdded fires any enabled file_added automations matching relPath's kind (and optional glob).\nReturns the number of background automation tasks started.\n",
              "file": "pkg/editor/automations.go",
              "line": 1551
            },
            {
              "name": "NotifyAutomationFileChanged",
              "anchor": "Editor.NotifyAutomationFileChanged",
              "recv": "*Editor",
              "decl": "func (e *Editor) NotifyAutomationFileChanged(relPath string) int",
              "doc": "NotifyAutomationFileChanged fires any enabled file_changed automations whose glob matches relPath.\nReturns the number of background automation tasks started.\n",
              "file": "pkg/editor/automations.go",
              "line": 1491
            },
            {
              "name": "NotifyAutomationReviewKept",
              "anchor": "Editor.NotifyAutomationReviewKept",
              "recv": "*Editor",
              "decl": "func (e *Editor) NotifyAutomationReviewKept(relPath string) int",
              "doc": "NotifyAutomationReviewKept fires any enabled review_kept automations (filtered by Trigger.Glob when set).\nReturns the number of background automation tasks started.\n",
              "file": "pkg/editor/automations.go",
              "line": 1517
            },
            {
              "name": "NudgeSelectedSketchMark",
              "anchor": "Editor.NudgeSelectedSketchMark",
              "recv": "*Editor",
              "decl": "func (e *Editor) NudgeSelectedSketchMark(dx, dy float32) bool",
              "doc": "NudgeSelectedSketchMark translates the selected sketch mark by (dx, dy) in scene coordinates.\n",
              "file": "pkg/editor/sketch.go",
              "line": 906
            },
            {
              "name": "ObjectAABB3D",
              "anchor": "Editor.ObjectAABB3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectAABB3D(o *sceneformat.ObjectDoc) (boxMin, boxMax [3]float32)",
              "doc": "ObjectAABB3D returns the world-space axis-aligned bounding box (min, max) enclosing object o's 3D box.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 418
            },
            {
              "name": "ObjectBaseValue",
              "anchor": "Editor.ObjectBaseValue",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectBaseValue(objectID, fieldKey string) string",
              "doc": "ObjectBaseValue returns a short human-readable string of the un-overridden source value for fieldKey on objectID.\n",
              "file": "pkg/editor/overrides.go",
              "line": 658
            },
            {
              "name": "ObjectChildrenSummary3D",
              "anchor": "Editor.ObjectChildrenSummary3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectChildrenSummary3D(id string) (ObjectChildrenSummary3D, bool)",
              "doc": "ObjectChildrenSummary3D returns a summary of object id's direct children, or false when id has no children.\n",
              "file": "pkg/editor/models.go",
              "line": 900
            },
            {
              "name": "ObjectColliderSummary3D",
              "anchor": "Editor.ObjectColliderSummary3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectColliderSummary3D(id string) (ObjectColliderSummary3D, bool)",
              "doc": "ObjectColliderSummary3D returns the 3D collider shape and body kind summary for object id, or false when id has no collider3d or trigger3d component.\n",
              "file": "pkg/editor/models.go",
              "line": 821
            },
            {
              "name": "ObjectConnections",
              "anchor": "Editor.ObjectConnections",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectConnections(objectID string) (outgoing, incoming []ConnectionEntry)",
              "doc": "ObjectConnections returns the outgoing (From == objectID) and incoming (To == objectID) connections of objectID in document order. Each ConnectionEntry carries a deep copy of its connection so callers cannot mutate Doc directly.\n",
              "file": "pkg/editor/connections.go",
              "line": 107
            },
            {
              "name": "ObjectContextMenuOpen",
              "anchor": "Editor.ObjectContextMenuOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectContextMenuOpen() bool",
              "doc": "ObjectContextMenuOpen reports whether the viewport/keyboard object context menu is currently open.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 841
            },
            {
              "name": "ObjectContextMenuTarget",
              "anchor": "Editor.ObjectContextMenuTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectContextMenuTarget() string",
              "doc": "ObjectContextMenuTarget returns the object ID currently targeted by the viewport/keyboard object context menu.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 846
            },
            {
              "name": "ObjectContextSubtitle",
              "anchor": "Editor.ObjectContextSubtitle",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectContextSubtitle(id string) string",
              "doc": "ObjectContextSubtitle returns the subtitle shown under an object's title in the object context menu,\nsuch as \"Sprite · layer Actors\".\n",
              "file": "pkg/editor/context_menu.go",
              "line": 154
            },
            {
              "name": "ObjectCorners3D",
              "anchor": "Editor.ObjectCorners3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectCorners3D(o *sceneformat.ObjectDoc) [8][3]float32",
              "doc": "ObjectCorners3D returns the 8 world-space corners of object o's oriented 3D bounding box: the bounds of the geometry it draws when the scene's 3D build (Scene3D) gives it a mesh or model, and otherwise a box the size of its sprite frame, or of a marker without one, as deep as its depth. A nested child's box is placed by the transforms of its ancestors too.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 362
            },
            {
              "name": "ObjectEvents",
              "anchor": "Editor.ObjectEvents",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectEvents(objectID string) []ObjectEvent",
              "doc": "ObjectEvents returns the events declared by objectID's registered components, ordered by component name ascending and then each component type's Events order. It returns nil when no component registry is set or objectID is not found.\n",
              "file": "pkg/editor/connections.go",
              "line": 47
            },
            {
              "name": "ObjectHandlers",
              "anchor": "Editor.ObjectHandlers",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectHandlers(objectID string) []ObjectHandler",
              "doc": "ObjectHandlers returns the handlers declared by objectID's registered components, ordered by component name ascending and then each component type's Handlers order. It returns nil when no component registry is set or objectID is not found.\n",
              "file": "pkg/editor/connections.go",
              "line": 77
            },
            {
              "name": "ObjectHasAnyOverride",
              "anchor": "Editor.ObjectHasAnyOverride",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectHasAnyOverride(objectID string) bool",
              "doc": "ObjectHasAnyOverride reports whether objectID (an instanced/inherited object, or a local scene instance root) has any overrides recorded.\n",
              "file": "pkg/editor/overrides.go",
              "line": 627
            },
            {
              "name": "ObjectHidden",
              "anchor": "Editor.ObjectHidden",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectHidden(id string) bool",
              "doc": "ObjectHidden reports whether the object id itself is hidden in the viewports (SetObjectHidden); a descendant of a hidden object is hidden too without being marked.\n",
              "file": "pkg/editor/hierarchy.go",
              "line": 811
            },
            {
              "name": "ObjectKindColor",
              "anchor": "Editor.ObjectKindColor",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectKindColor(p SpecPalette, id string) core.Color",
              "doc": "ObjectKindColor maps an object's kind or pending-new state to a SpecPalette token color.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 517
            },
            {
              "name": "ObjectKindLabel",
              "anchor": "Editor.ObjectKindLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectKindLabel(id string) string",
              "doc": "ObjectKindLabel returns a short human-readable kind label for object id (such as \"Sprite\",\n\"Prefab instance\", \"Scene instance\", \"3D Model\", \"3D Mesh\", \"Light\", \"Camera\", \"Particles\", \"Group\", or \"Object\").\n",
              "file": "pkg/editor/context_menu.go",
              "line": 111
            },
            {
              "name": "ObjectLOD3D",
              "anchor": "Editor.ObjectLOD3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectLOD3D(id string) (int, bool)",
              "doc": "ObjectLOD3D returns the currently selected LOD index (0 for finest, 1 for\n_LOD1, ...) drawn for scene object id in the 3D viewport, or (-1, false) when\nid has no LODs or is not currently visible.\n",
              "file": "pkg/editor/viewport3d_lod_occluder.go",
              "line": 270
            },
            {
              "name": "ObjectLODCount3D",
              "anchor": "Editor.ObjectLODCount3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectLODCount3D(id string) int",
              "doc": "ObjectLODCount3D returns how many LOD levels scene object id has in the built\n3D scene (0 when it has only one detail level or no 3D geometry).\n",
              "file": "pkg/editor/viewport3d_lod_occluder.go",
              "line": 285
            },
            {
              "name": "ObjectLocked",
              "anchor": "Editor.ObjectLocked",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectLocked(id string) bool",
              "doc": "ObjectLocked reports whether the object id itself is locked (SetObjectLocked); a descendant of a locked object is locked too without being marked.\n",
              "file": "pkg/editor/hierarchy.go",
              "line": 819
            },
            {
              "name": "ObjectMaterialSummary3D",
              "anchor": "Editor.ObjectMaterialSummary3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectMaterialSummary3D(id string) (ObjectMaterialSummary3D, bool)",
              "doc": "ObjectMaterialSummary3D returns the material file and roughness/metallic summary for object id, or false when id has neither a material nor 3D model/mesh geometry.\n",
              "file": "pkg/editor/models.go",
              "line": 744
            },
            {
              "name": "ObjectModelSummary3D",
              "anchor": "Editor.ObjectModelSummary3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectModelSummary3D(id string) (ObjectModelSummary3D, bool)",
              "doc": "ObjectModelSummary3D returns the model path or primitive name, total triangle count, and distinct material count for object id, or false when id has no 3D model or mesh.\n",
              "file": "pkg/editor/models.go",
              "line": 676
            },
            {
              "name": "ObjectOccluded3D",
              "anchor": "Editor.ObjectOccluded3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectOccluded3D(id string) bool",
              "doc": "ObjectOccluded3D reports whether scene object id is currently culled behind\nan occluder in the 3D viewport.\n",
              "file": "pkg/editor/viewport3d_lod_occluder.go",
              "line": 296
            },
            {
              "name": "ObjectOrigin",
              "anchor": "Editor.ObjectOrigin",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectOrigin(id string) ObjectOrigin",
              "doc": "ObjectOrigin returns whether id is a local, instanced, or inherited object.\n",
              "file": "pkg/editor/overrides.go",
              "line": 167
            },
            {
              "name": "ObjectOverrideFields",
              "anchor": "Editor.ObjectOverrideFields",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectOverrideFields(objectID string) []string",
              "doc": "ObjectOverrideFields returns the sorted list of overridden field keys on objectID\n(such as \"x\", \"y\", \"name\", \"sprite\", \"property:speed\", \"component:health.hp\").\nWhen objectID is a local scene instance root, it returns all override target keys (\"body\", ...).\n",
              "file": "pkg/editor/overrides.go",
              "line": 466
            },
            {
              "name": "ObjectOverrideInfo",
              "anchor": "Editor.ObjectOverrideInfo",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectOverrideInfo(id string) ObjectOverrideInfo",
              "doc": "ObjectOverrideInfo returns origin and override routing metadata for object id.\nIf id does not exist in either Editor.Doc or the resolved scene, the returned info has an empty ID.\n",
              "file": "pkg/editor/overrides.go",
              "line": 120
            },
            {
              "name": "ObjectProblemCount",
              "anchor": "Editor.ObjectProblemCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectProblemCount(objectID string) int",
              "doc": "ObjectProblemCount returns how many live visible problems are attributed to\nobjectID in the currently open scene. Call on the editor goroutine.\n",
              "file": "pkg/editor/problems.go",
              "line": 1339
            },
            {
              "name": "ObjectProblems",
              "anchor": "Editor.ObjectProblems",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectProblems(objectID string) []assetcheck.Problem",
              "doc": "ObjectProblems returns the live visible problems attributed to objectID in\nthe currently open scene. Call on the editor goroutine.\n",
              "file": "pkg/editor/problems.go",
              "line": 1329
            },
            {
              "name": "ObjectTaskBadge",
              "anchor": "Editor.ObjectTaskBadge",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectTaskBadge(objectID string) (ObjectTaskOverlay, bool)",
              "doc": "ObjectTaskBadge returns the active numbered overlay for objectID in the open scene (editing takes precedence over holding).\n",
              "file": "pkg/editor/tasks.go",
              "line": 2826
            },
            {
              "name": "ObjectYAML",
              "anchor": "Editor.ObjectYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) ObjectYAML(id string) (string, int, error)",
              "doc": "ObjectYAML serializes object id as a canonical single-object sceneformat YAML document that\nsceneformat.Parse parses back to the exact same ObjectDoc. It returns the YAML text and its line count.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 170
            },
            {
              "name": "Objects3D",
              "anchor": "Editor.Objects3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) Objects3D() []Object3DRef",
              "doc": "Objects3D returns the objects of every layer, nested, instanced and inherited children included, depth first in document order with each parent before its children, with sequential flat indices (Pick3D's).\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 283
            },
            {
              "name": "OpenActiveLayerTileset",
              "anchor": "Editor.OpenActiveLayerTileset",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenActiveLayerTileset() error",
              "doc": "OpenActiveLayerTileset opens the active layer's YAML tileset (whether layered or single-grid with TilesetFile) in the Tileset Editor panel.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 286
            },
            {
              "name": "OpenAgentRequest",
              "anchor": "Editor.OpenAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenAgentRequest(threadID, requestID string) error",
              "doc": "OpenAgentRequest switches the right rail to the Agent panel, activates threadID (opening its\nscene if needed), and expands requestID when it is folded as an earlier request.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1580
            },
            {
              "name": "OpenAgentReview",
              "anchor": "Editor.OpenAgentReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenAgentReview(prompt string, changes []AgentReviewChange)",
              "doc": "OpenAgentReview opens (or updates) the Review changes panel with prompt and non-deletion changes.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 146
            },
            {
              "name": "OpenAgentRewindPopover",
              "anchor": "Editor.OpenAgentRewindPopover",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenAgentRewindPopover(turnID string) bool",
              "doc": "OpenAgentRewindPopover opens the \"Rewind to before this message\" popover for turnID.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 429
            },
            {
              "name": "OpenAgentTask",
              "anchor": "Editor.OpenAgentTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenAgentTask(id string) error",
              "doc": "OpenAgentTask focuses the editor window, stops Play if running, dismisses obstructing\noverlays/panels (Settings, History, Problem agent panel, Ask-in-place, Assets mode),\nopens the task's scene (strictly confined inside the open project root), switches to\nthe Tasks or Agent panel, and focuses the task (and its open request card when waiting).\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 812
            },
            {
              "name": "OpenAgentTurnReview",
              "anchor": "Editor.OpenAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenAgentTurnReview(turnID string) *AgentTurnReview",
              "doc": "OpenAgentTurnReview opens the inline review for turnID (or latest turn with a review) so the author can\ninspect the actual diff and Keep or Discard it.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1847
            },
            {
              "name": "OpenAskFrozenFrame",
              "anchor": "Editor.OpenAskFrozenFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenAskFrozenFrame() error",
              "doc": "OpenAskFrozenFrame pauses Play mode, captures the current viewport frame PNG, and opens the \"Ask about frame N\" dialog.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 851
            },
            {
              "name": "OpenAskInPlace",
              "anchor": "Editor.OpenAskInPlace",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenAskInPlace() error",
              "doc": "OpenAskInPlace opens the anchored in-place composer targeting the current object selection,\nor targeting the open scene when nothing is selected.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 101
            },
            {
              "name": "OpenAskInPlaceFor",
              "anchor": "Editor.OpenAskInPlaceFor",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenAskInPlaceFor(ids ...string) error",
              "doc": "OpenAskInPlaceFor opens the anchored in-place composer targeting ids (or the open scene when ids is empty).\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 116
            },
            {
              "name": "OpenBaseScene",
              "anchor": "Editor.OpenBaseScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenBaseScene() error",
              "doc": "OpenBaseScene opens the base scene that the active scene inherits (SceneDoc.Inherits) in a tab, switching to its tab if it is already open.\n",
              "file": "pkg/editor/tabs.go",
              "line": 831
            },
            {
              "name": "OpenBlockedPermissionRule",
              "anchor": "Editor.OpenBlockedPermissionRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenBlockedPermissionRule(id string) bool",
              "doc": "OpenBlockedPermissionRule opens Settings › Permissions with the matching rule for blocked step id focused.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1646
            },
            {
              "name": "OpenBriefSettings",
              "anchor": "Editor.OpenBriefSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenBriefSettings()",
              "doc": "OpenBriefSettings opens the Settings view directly to Agent › Game brief (brief.yaml).\n",
              "file": "pkg/editor/settings.go",
              "line": 1246
            },
            {
              "name": "OpenBuildReleaseScreen",
              "anchor": "Editor.OpenBuildReleaseScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenBuildReleaseScreen() error",
              "doc": "OpenBuildReleaseScreen opens the full-window Build and Release screen for the open project,\nrefreshing project metadata, BEFORE EVERY BUILD checks, presets, and platform readiness.\n",
              "file": "pkg/editor/build_release.go",
              "line": 406
            },
            {
              "name": "OpenChangedFileInEditor",
              "anchor": "Editor.OpenChangedFileInEditor",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenChangedFileInEditor(filePath string) error",
              "doc": "OpenChangedFileInEditor closes the Changes panel and opens the changed project file in the editor when supported.\n",
              "file": "pkg/editor/changes.go",
              "line": 3391
            },
            {
              "name": "OpenChangesPanel",
              "anchor": "Editor.OpenChangesPanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenChangesPanel() error",
              "doc": "OpenChangesPanel opens the Changes & Commit screen for the open project's Git repository and refreshes its working-tree diff against HEAD.\n",
              "file": "pkg/editor/changes.go",
              "line": 576
            },
            {
              "name": "OpenChangesPanelIn",
              "anchor": "Editor.OpenChangesPanelIn",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenChangesPanelIn(dir string) error",
              "doc": "OpenChangesPanelIn opens the Changes & Commit screen for the Git repository containing dir.\n",
              "file": "pkg/editor/changes.go",
              "line": 597
            },
            {
              "name": "OpenClipFile",
              "anchor": "Editor.OpenClipFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenClipFile(path, target string) error",
              "doc": "OpenClipFile reads the animation resource file at path and opens it as OpenClipYAML does; the panel's Save Clip button, or SaveClipFile(ClipPath()), then writes back to path.\n",
              "file": "pkg/editor/animation.go",
              "line": 241
            },
            {
              "name": "OpenClipYAML",
              "anchor": "Editor.OpenClipYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenClipYAML(data []byte, target string) error",
              "doc": "OpenClipYAML parses data as an animation resource file, checks it against the component registry and opens it to play on target (the selected object when empty), as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 236
            },
            {
              "name": "OpenCodeReview",
              "anchor": "Editor.OpenCodeReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenCodeReview(selectPath string)",
              "doc": "OpenCodeReview opens or resumes the full-window Go code review screen.\nWhen selectPath is non-empty and exists in the session, it focuses that file; otherwise it focuses the first unconfirmed Go file.\n",
              "file": "pkg/editor/code_review.go",
              "line": 865
            },
            {
              "name": "OpenCodeReviewInExternalEditor",
              "anchor": "Editor.OpenCodeReviewInExternalEditor",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenCodeReviewInExternalEditor(relPath string, line int) error",
              "doc": "OpenCodeReviewInExternalEditor opens relPath (at 1-based line when > 0) in the author's external IDE/editor.\nContainment inside the project root is enforced.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1114
            },
            {
              "name": "OpenCodeReviewTestFile",
              "anchor": "Editor.OpenCodeReviewTestFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenCodeReviewTestFile() error",
              "doc": "OpenCodeReviewTestFile focuses the failing test file in the review if present, or opens it in the external editor.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1079
            },
            {
              "name": "OpenCommandPalette",
              "anchor": "Editor.OpenCommandPalette",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenCommandPalette()",
              "doc": "OpenCommandPalette opens the Command Palette dialog.\n",
              "file": "pkg/editor/palette.go",
              "line": 61
            },
            {
              "name": "OpenComponentAgentPrompt",
              "anchor": "Editor.OpenComponentAgentPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenComponentAgentPrompt(objectID string)",
              "doc": "OpenComponentAgentPrompt opens the 3D viewport's inline agent prompt to add a component to objectID (\"Ask to add a component…\").\n",
              "file": "pkg/editor/models.go",
              "line": 999
            },
            {
              "name": "OpenConnectDialog",
              "anchor": "Editor.OpenConnectDialog",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenConnectDialog()",
              "doc": "OpenConnectDialog opens the Connect an agent dialog at the starting step.\n",
              "file": "pkg/editor/agent.go",
              "line": 982
            },
            {
              "name": "OpenConnectDialogAt",
              "anchor": "Editor.OpenConnectDialogAt",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenConnectDialogAt(step ConnectStep)",
              "doc": "OpenConnectDialogAt opens the Connect an agent dialog focused directly on step (used by Troubleshoot so it lands on the step that failed, not the start).\n",
              "file": "pkg/editor/agent.go",
              "line": 1010
            },
            {
              "name": "OpenConnectDialogForMode",
              "anchor": "Editor.OpenConnectDialogForMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenConnectDialogForMode(mode AgentMode)",
              "doc": "OpenConnectDialogForMode opens the Connect an agent dialog pre-selected on mode (for example AgentModeAPIKey).\n",
              "file": "pkg/editor/agent.go",
              "line": 1001
            },
            {
              "name": "OpenCutsceneFile",
              "anchor": "Editor.OpenCutsceneFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenCutsceneFile(filePath string) error",
              "doc": "OpenCutsceneFile reads a *.cutscene.yaml file from disk and opens it in the cutscene timeline editor.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 400
            },
            {
              "name": "OpenCutsceneProjectFile",
              "anchor": "Editor.OpenCutsceneProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenCutsceneProjectFile(relPath string) error",
              "doc": "OpenCutsceneProjectFile opens a project-relative *.cutscene.yaml file in the cutscene timeline editor.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 418
            },
            {
              "name": "OpenCutsceneReview",
              "anchor": "Editor.OpenCutsceneReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenCutsceneReview(req CutsceneReviewRequest) error",
              "doc": "OpenCutsceneReview opens a review of an agent's proposed changes to a cutscene without writing to disk until KeepCutsceneReview is called.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 974
            },
            {
              "name": "OpenCutsceneYAML",
              "anchor": "Editor.OpenCutsceneYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenCutsceneYAML(data []byte) error",
              "doc": "OpenCutsceneYAML parses data as a cutscene YAML document and opens it in the cutscene timeline editor as an undoable command.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 392
            },
            {
              "name": "OpenDataTableFile",
              "anchor": "Editor.OpenDataTableFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenDataTableFile(path string) error",
              "doc": "OpenDataTableFile reads the YAML data table at path and opens it in the Data Table panel\nas an undoable command. If a Go row type is registered for path, the table is checked\nagainst it before opening.\n",
              "file": "pkg/editor/datatable.go",
              "line": 191
            },
            {
              "name": "OpenDataTableProjectFile",
              "anchor": "Editor.OpenDataTableProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenDataTableProjectFile(relPath string) error",
              "doc": "OpenDataTableProjectFile opens relPath (slash-separated from the open project's root)\nin the Data Table panel.\n",
              "file": "pkg/editor/datatable.go",
              "line": 204
            },
            {
              "name": "OpenDataTableReview",
              "anchor": "Editor.OpenDataTableReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenDataTableReview(req DataTableReviewRequest) error",
              "doc": "OpenDataTableReview opens a full-window row-by-row review for an agent's data table changes\nwithout modifying files on disk until KeepDataTableReview is called.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 259
            },
            {
              "name": "OpenDataTableYAML",
              "anchor": "Editor.OpenDataTableYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenDataTableYAML(name string, data []byte) error",
              "doc": "OpenDataTableYAML parses data as a versioned YAML data table named name (used for error\nmessages and row-type pattern matching) and opens it in the Data Table panel as an undoable\ncommand.\n",
              "file": "pkg/editor/datatable.go",
              "line": 218
            },
            {
              "name": "OpenDemo",
              "anchor": "Editor.OpenDemo",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenDemo() error",
              "doc": "OpenDemo replaces the current project or scene with the built-in Demo Room (or invokes Editor.OnOpenDemo when configured),\nclearing project state and undo history and closing the Start Screen.\n",
              "file": "pkg/editor/demo.go",
              "line": 136
            },
            {
              "name": "OpenExportOutputFolder",
              "anchor": "Editor.OpenExportOutputFolder",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenExportOutputFolder() error",
              "doc": "OpenExportOutputFolder opens the open project's resolved release output folder using OpenOutputFolder (or the OS file manager when nil).\n",
              "file": "pkg/editor/export_panel.go",
              "line": 1110
            },
            {
              "name": "OpenFile",
              "anchor": "Editor.OpenFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenFile(path string) error",
              "doc": "OpenFile reads a YAML scene file from path and opens it in a tab, or switches to its existing tab when that file is already open, preserving every open tab's undo history. A scene that does not parse returns sceneformat.Parse's *loaderr.Error, naming path.\n",
              "file": "pkg/editor/state.go",
              "line": 1734
            },
            {
              "name": "OpenFirstRunPlan",
              "anchor": "Editor.OpenFirstRunPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenFirstRunPlan() error",
              "doc": "OpenFirstRunPlan generates the agent's first plan for the current Start Screen idea and name,\nand transitions to Step 3 (The first plan). No project folder is created on disk until Approve.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1213
            },
            {
              "name": "OpenFirstRunReviewFromStopped",
              "anchor": "Editor.OpenFirstRunReviewFromStopped",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenFirstRunReviewFromStopped()",
              "doc": "OpenFirstRunReviewFromStopped opens the First Review for the partial files kept after StopFirstRunKeepFiles.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2243
            },
            {
              "name": "OpenFocusedReviewNoteComposer",
              "anchor": "Editor.OpenFocusedReviewNoteComposer",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenFocusedReviewNoteComposer() error",
              "doc": "OpenFocusedReviewNoteComposer implements the C shortcut in Review scope.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 424
            },
            {
              "name": "OpenFocusedUsage",
              "anchor": "Editor.OpenFocusedUsage",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenFocusedUsage() error",
              "doc": "OpenFocusedUsage activates the currently focused usage (Enter): closes the References screen, opens the scene with the instanced object selected and framed (or opens the data table / Go source file).\n",
              "file": "pkg/editor/usages.go",
              "line": 874
            },
            {
              "name": "OpenGridMap",
              "anchor": "Editor.OpenGridMap",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenGridMap(relOrPath string) error",
              "doc": "OpenGridMap opens a *.gridmap.yaml file by its slash-separated path from the open project root\n(or from GridMapFS, or an OS path on disk when no project is open), loads its glTF mesh library,\nand prepares it for painting in the 3D viewport.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 320
            },
            {
              "name": "OpenGridMapDoc",
              "anchor": "Editor.OpenGridMapDoc",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenGridMapDoc(doc *world3d.GridMapDoc, lib *world3d.MeshLibrary, filePath string) error",
              "doc": "OpenGridMapDoc opens doc with lib as the active editable GridMap in memory, optionally associated with filePath for saving.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 374
            },
            {
              "name": "OpenGridMapFS",
              "anchor": "Editor.OpenGridMapFS",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenGridMapFS(fsys fs.FS, name string) error",
              "doc": "OpenGridMapFS loads the GridMap at name from fsys and makes it the active editable GridMap.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 361
            },
            {
              "name": "OpenHUDScreen",
              "anchor": "Editor.OpenHUDScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenHUDScreen(relPath string) error",
              "doc": "OpenHUDScreen opens the screen at relPath (relative to the open project root, or matching an already-loaded screen path)\nand activates the HUD and menu layout screen.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 568
            },
            {
              "name": "OpenHUDScreenDoc",
              "anchor": "Editor.OpenHUDScreenDoc",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenHUDScreenDoc(name string, doc *gameui.ScreenDoc, locales map[string]map[string]string) error",
              "doc": "OpenHUDScreenDoc opens an in-memory ScreenDoc (and optional locale string tables) in the HUD layout screen.\nIf locales is nil, existing locale tables are kept (or defaulted to an empty \"en\" table).\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 678
            },
            {
              "name": "OpenHUDScreenFile",
              "anchor": "Editor.OpenHUDScreenFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenHUDScreenFile(absPath string) error",
              "doc": "OpenHUDScreenFile opens a standalone *.screen.yaml file from disk (scanning sibling *.screen.yaml files and a nearby locales/ folder if present).\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 625
            },
            {
              "name": "OpenHistoryStep",
              "anchor": "Editor.OpenHistoryStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenHistoryStep(threadID, requestID, stepID string) error",
              "doc": "OpenHistoryStep opens the right-rail History timeline focused on the given thread request/step\nand invokes Editor.OnOpenHistoryStep when configured.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1609
            },
            {
              "name": "OpenInstancedScene",
              "anchor": "Editor.OpenInstancedScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenInstancedScene(objectID string) error",
              "doc": "OpenInstancedScene opens the scene file instanced by objectID (or its owning instance if objectID is an instanced child, or SelectedID when empty) in a tab, switching to its tab if it is already open.\n",
              "file": "pkg/editor/tabs.go",
              "line": 801
            },
            {
              "name": "OpenKeychainCredentialEditor",
              "anchor": "Editor.OpenKeychainCredentialEditor",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenKeychainCredentialEditor(dest PublishDestination)",
              "doc": "OpenKeychainCredentialEditor opens the inline keychain credential form inside Review uploads for dest.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 991
            },
            {
              "name": "OpenLocalizations",
              "anchor": "Editor.OpenLocalizations",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenLocalizations(dir string) error",
              "doc": "OpenLocalizations reads all *.yaml string table files in dir with l10n.ParseYAML and opens them in the Localization panel as an undoable command. A missing directory opens an empty workspace targeting dir so saving creates it.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 245
            },
            {
              "name": "OpenMaterial",
              "anchor": "Editor.OpenMaterial",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenMaterial(relPath string) error",
              "doc": "OpenMaterial opens the material at relPath: from the open project's file when a project is open, or through the editor's MaterialResolver / 3D assets otherwise, so edits reload live into Library.\n",
              "file": "pkg/editor/materials.go",
              "line": 401
            },
            {
              "name": "OpenMaterialFile",
              "anchor": "Editor.OpenMaterialFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenMaterialFile(filePath string) error",
              "doc": "OpenMaterialFile reads a *.material.yaml file from filePath and opens it in the Material Editor panel as an undoable command.\n",
              "file": "pkg/editor/materials.go",
              "line": 357
            },
            {
              "name": "OpenMaterialProjectFile",
              "anchor": "Editor.OpenMaterialProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenMaterialProjectFile(relPath string) error",
              "doc": "OpenMaterialProjectFile opens relPath (slash-separated from the open project's root) in the Material Editor panel as an undoable command so edits reload live through Library.Reload.\n",
              "file": "pkg/editor/materials.go",
              "line": 379
            },
            {
              "name": "OpenMaterialYAML",
              "anchor": "Editor.OpenMaterialYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenMaterialYAML(data []byte) error",
              "doc": "OpenMaterialYAML parses data as a resource.Material YAML file and opens it in the Material Editor panel as an undoable command.\n",
              "file": "pkg/editor/materials.go",
              "line": 352
            },
            {
              "name": "OpenMentionPicker",
              "anchor": "Editor.OpenMentionPicker",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenMentionPicker(query string)",
              "doc": "OpenMentionPicker opens the @-mention picker (with optional initial query).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 523
            },
            {
              "name": "OpenMergeConflict",
              "anchor": "Editor.OpenMergeConflict",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenMergeConflict(scenePath string) error",
              "doc": "OpenMergeConflict opens the object-by-object Scene Merge Conflict screen for an unmerged\nscene file in a Git repository. scenePath may be empty to open the first conflicted scene\ndetected in the open project, a slash-separated path relative to the repository/project root,\nor an absolute OS path inside the repository.\n",
              "file": "pkg/editor/merge_git.go",
              "line": 340
            },
            {
              "name": "OpenMergeConflictSession",
              "anchor": "Editor.OpenMergeConflictSession",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenMergeConflictSession(cfg MergeConflictSessionConfig) error",
              "doc": "OpenMergeConflictSession opens the object-by-object Scene Merge Conflict screen from three parsed SceneDoc versions.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 225
            },
            {
              "name": "OpenModelAgentPrompt",
              "anchor": "Editor.OpenModelAgentPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenModelAgentPrompt()",
              "doc": "OpenModelAgentPrompt opens the 3D viewport's inline agent prompt to describe and request a new model (\"Or ask for one\").\n",
              "file": "pkg/editor/models.go",
              "line": 989
            },
            {
              "name": "OpenObjectContextMenu",
              "anchor": "Editor.OpenObjectContextMenu",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenObjectContextMenu(id string) bool",
              "doc": "OpenObjectContextMenu opens the viewport/keyboard object context menu targeting object id\n(defaulting to SelectedID). Returns false when playing, blocked by a modal screen, or when id does\nnot name an existing local or resolved scene object.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 799
            },
            {
              "name": "OpenObjectYAML",
              "anchor": "Editor.OpenObjectYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenObjectYAML(objectID string) (string, int, bool, error)",
              "doc": "OpenObjectYAML locates objectID's 1-based line in the scene YAML (or line 1 when empty),\nverifies project-root containment, invokes Editor.OnOpenFileAtLine(path, line) when set,\nupdates Editor.Status, and reports whether OnOpenFileAtLine actually ran.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 550
            },
            {
              "name": "OpenOutputEntry",
              "anchor": "Editor.OpenOutputEntry",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenOutputEntry(entry OutputEntry) error",
              "doc": "OpenOutputEntry navigates to the file:line location carried by entry: if it names a scene file (*.scene.yaml, *.scene.yml, or a scene listed under Project.Autoload.Scenes), it opens that scene in the editor (and updates ScenePath and SelectedFile when a project is open); otherwise it selects the file in the file browser when a project is open. Entries without a file:line location are a no-op.\n",
              "file": "pkg/editor/output_panel.go",
              "line": 194
            },
            {
              "name": "OpenParticleEmitterFile",
              "anchor": "Editor.OpenParticleEmitterFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenParticleEmitterFile(filePath string) error",
              "doc": "OpenParticleEmitterFile reads a versioned 2D particle emitter YAML file from path and opens it in the Particle Emitter panel as an undoable command.\n",
              "file": "pkg/editor/particles.go",
              "line": 282
            },
            {
              "name": "OpenParticleEmitterProjectFile",
              "anchor": "Editor.OpenParticleEmitterProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenParticleEmitterProjectFile(relPath string) error",
              "doc": "OpenParticleEmitterProjectFile opens relPath (slash-separated from the open project's root) in the Particle Emitter panel as an undoable command.\n",
              "file": "pkg/editor/particles.go",
              "line": 294
            },
            {
              "name": "OpenParticleEmitterYAML",
              "anchor": "Editor.OpenParticleEmitterYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenParticleEmitterYAML(data []byte) error",
              "doc": "OpenParticleEmitterYAML parses data as a versioned 2D particle emitter YAML file and opens it in the Particle Emitter panel as an undoable command.\n",
              "file": "pkg/editor/particles.go",
              "line": 277
            },
            {
              "name": "OpenPermissionsSettings",
              "anchor": "Editor.OpenPermissionsSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenPermissionsSettings(focusRule int)",
              "doc": "OpenPermissionsSettings opens Settings › Permissions and optionally focuses rule index focusRule (0-based; pass -1 to keep or clear rule focus).\n",
              "file": "pkg/editor/permissions.go",
              "line": 1198
            },
            {
              "name": "OpenPlaytestConfigPreview",
              "anchor": "Editor.OpenPlaytestConfigPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenPlaytestConfigPreview() error",
              "doc": "OpenPlaytestConfigPreview invokes Editor.OnOpenPlaytestConfig if set, or loads the active report's playtest.yaml into the inline preview drawer.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 827
            },
            {
              "name": "OpenPlaytestProposalReview",
              "anchor": "Editor.OpenPlaytestProposalReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenPlaytestProposalReview(id string)",
              "doc": "OpenPlaytestProposalReview opens the inline review panel for the proposed playtest_define metric with ID id.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 715
            },
            {
              "name": "OpenPlaytestReport",
              "anchor": "Editor.OpenPlaytestReport",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenPlaytestReport(cfg PlaytestReportOpenConfig) error",
              "doc": "OpenPlaytestReport loads a playtest report into the editor and opens the full-window Playtest Report screen.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 381
            },
            {
              "name": "OpenPlaytestReportFile",
              "anchor": "Editor.OpenPlaytestReportFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenPlaytestReportFile(reportPath string) error",
              "doc": "OpenPlaytestReportFile reads a YAML playtest report from disk and opens it in the Playtest Report screen.\nRelative paths are resolved against the open project's root directory and guarded against path traversal.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 529
            },
            {
              "name": "OpenProblem",
              "anchor": "Editor.OpenProblem",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenProblem(p assetcheck.Problem) error",
              "doc": "OpenProblem navigates to problem p in the open project: if p.File names a scene file (*.scene.yaml, *.scene.yml, or a scene listed under Project.Autoload.Scenes), it opens that scene with OpenScene (and updates ScenePath and SelectedFile, and clears OnSave), unless it is the scene already open (ScenePath), which keeps its edits and undo history and is only selected; if opening the scene fails (for example because the YAML does not parse), it still selects p.File in the file browser and returns the error. For any non-scene file, it selects p.File in the file browser. It returns ErrNoProject when no project is open. Opening another scene opens it in a tab without losing unsaved edits in other tabs.\n",
              "file": "pkg/editor/problems.go",
              "line": 600
            },
            {
              "name": "OpenProject",
              "anchor": "Editor.OpenProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenProject(path string) error",
              "doc": "OpenProject opens the game's project file: path is a game.yaml or the directory holding one. When the project names a main scene (project.Autoload.MainScene), it opens that scene too, as OpenFile does, with the view the project's ViewStateFile keeps for it. It empties the undo history either way, so no step can bring back a project opened before. The registered plugins the project names under editor.plugins turn on, and the status bar names those it lists that this editor was built without (MissingPlugins). With ProjectAssets set, Resolver becomes a project.Resolver over the project's directory before the scene opens, and a scene left open when the project names no main scene is built again against it. On an error it leaves the editor as it was.\n",
              "file": "pkg/editor/project.go",
              "line": 21
            },
            {
              "name": "OpenProjectFile",
              "anchor": "Editor.OpenProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenProjectFile(relPath string) error",
              "doc": "OpenProjectFile opens or selects relPath, a slash-separated path relative to the open project root: scene files open in the scene editor through OpenScene (updating ScenePath and SelectedFile, clearing OnSave and losing the open scene's unsaved edits; CommandPaletteView asks first), game.yaml opens Project Settings and selects the file, and other files are selected in the file browser.\n",
              "file": "pkg/editor/palette.go",
              "line": 132
            },
            {
              "name": "OpenProjectScene",
              "anchor": "Editor.OpenProjectScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenProjectScene(path, scene string) error",
              "doc": "OpenProjectScene opens the project file at path, a game.yaml or the directory holding one, as OpenProject does, and the scene file at scene, an OS path such as one inside the project's directory, in place of the project's main scene. A scene inside the project's directory gets its path from the project root as ScenePath, which Resolver names scene files by, so PlaceScene refuses an instance that leads back to it. On an error it leaves the editor as it was.\n",
              "file": "pkg/editor/project.go",
              "line": 26
            },
            {
              "name": "OpenPullRequest",
              "anchor": "Editor.OpenPullRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenPullRequest() (string, error)",
              "doc": "OpenPullRequest creates a pull request with `gh pr create` (or Editor.GHRunner) using the drafted title and PR description.\n",
              "file": "pkg/editor/changes.go",
              "line": 3235
            },
            {
              "name": "OpenPullRequestAsync",
              "anchor": "Editor.OpenPullRequestAsync",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenPullRequestAsync(cx *core.Scope) error",
              "doc": "OpenPullRequestAsync runs `gh pr create` off the UI thread and posts the result back to the editor scope.\n",
              "file": "pkg/editor/changes.go",
              "line": 3247
            },
            {
              "name": "OpenReference",
              "anchor": "Editor.OpenReference",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenReference(r refs.Ref) error",
              "doc": "OpenReference navigates to a Find References result r: if r.File is a scene\nfile, it opens that scene (unless already open), selects the top-level object\nat r.Line when one owns that line, and selects r.File in the file browser;\notherwise it selects r.File in the file browser. It returns ErrNoProject when\nno project is open. Opening another scene goes through OpenScene, as\nOpenSearchResult does, and SearchPanelView asks first while edits are unsaved.\n",
              "file": "pkg/editor/search.go",
              "line": 396
            },
            {
              "name": "OpenReviewNoteComposer",
              "anchor": "Editor.OpenReviewNoteComposer",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenReviewNoteComposer(changeID string) error",
              "doc": "OpenReviewNoteComposer opens the inline note composer (\"Note for the agent · not sent\") under changeID.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 398
            },
            {
              "name": "OpenReviewRevertAllDialog",
              "anchor": "Editor.OpenReviewRevertAllDialog",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenReviewRevertAllDialog()",
              "doc": "OpenReviewRevertAllDialog opens the Revert All confirmation dialog (⌘⌫).\n",
              "file": "pkg/editor/review.go",
              "line": 3283
            },
            {
              "name": "OpenReviewUploads",
              "anchor": "Editor.OpenReviewUploads",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenReviewUploads() error",
              "doc": "OpenReviewUploads opens the Review uploads confirmation dialog listing every artifact,\nits destination, size, and version before anything is sent. It never starts an upload.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 967
            },
            {
              "name": "OpenRigFile",
              "anchor": "Editor.OpenRigFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenRigFile(filePath, atlasName string) error",
              "doc": "OpenRigFile reads the .skel.yaml rig file at filePath and opens it in the rig editor as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 337
            },
            {
              "name": "OpenRigProjectFile",
              "anchor": "Editor.OpenRigProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenRigProjectFile(relPath, atlasName string) error",
              "doc": "OpenRigProjectFile opens relPath (slash-separated from the open project's root) in the rig editor.\n",
              "file": "pkg/editor/rig.go",
              "line": 352
            },
            {
              "name": "OpenRigYAML",
              "anchor": "Editor.OpenRigYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenRigYAML(name string, data []byte, atlasName string) error",
              "doc": "OpenRigYAML parses data as a .skel.yaml rig named name and opens it in the rig editor as an undoable command.\nOpening and saving without edits returns the exact original bytes unchanged.\n",
              "file": "pkg/editor/rig.go",
              "line": 332
            },
            {
              "name": "OpenRoomsFile",
              "anchor": "Editor.OpenRoomsFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenRoomsFile(filePath string) error",
              "doc": "OpenRoomsFile reads a *.rooms.yaml file from path, parses it with rooms.Parse, and opens\nit beside the current scene in the 2D viewport.\n",
              "file": "pkg/editor/rooms.go",
              "line": 128
            },
            {
              "name": "OpenRoomsProjectFile",
              "anchor": "Editor.OpenRoomsProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenRoomsProjectFile(relPath string) error",
              "doc": "OpenRoomsProjectFile opens relPath (slash-separated from the open project's root) beside the scene.\n",
              "file": "pkg/editor/rooms.go",
              "line": 143
            },
            {
              "name": "OpenRoomsYAML",
              "anchor": "Editor.OpenRoomsYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenRoomsYAML(name string, data []byte) error",
              "doc": "OpenRoomsYAML parses data with rooms.Parse and opens the room map beside the current scene.\n",
              "file": "pkg/editor/rooms.go",
              "line": 232
            },
            {
              "name": "OpenRulesSettings",
              "anchor": "Editor.OpenRulesSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenRulesSettings()",
              "doc": "OpenRulesSettings opens the Settings view directly to Agent › Project rules (AGENTS.md).\n",
              "file": "pkg/editor/settings.go",
              "line": 1254
            },
            {
              "name": "OpenScene",
              "anchor": "Editor.OpenScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenScene(rel string) error",
              "doc": "OpenScene opens the scene file at rel, a slash-separated path from the root of the open project (the directory of ProjectPath), in a tab with ScenePath set to rel, or switches to its tab when it is already open. Switching or opening tabs never clears any tab's undo history; the newly opened tab starts with OnSave nil while previously open tabs keep theirs. It returns ErrNoProject without a project.\n",
              "file": "pkg/editor/scenefile.go",
              "line": 352
            },
            {
              "name": "OpenSearchResult",
              "anchor": "Editor.OpenSearchResult",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenSearchResult(r SearchResult) error",
              "doc": "OpenSearchResult activates a search result: if it refers to a scene file (or an object inside one), it opens that scene when it is not already open (preserving unsaved edits when it is already open), updates ScenePath and SelectedFile, and selects the matching object, nested children included, or its top-level ancestor when the child cannot be selected. For any non-scene file, it selects the file in the file browser. It returns ErrNoProject when no project is open. Opening another scene goes through OpenScene, which clears OnSave and loses the open scene's unsaved edits; SearchPanelView asks first (HasUnsavedChanges).\n",
              "file": "pkg/editor/search.go",
              "line": 350
            },
            {
              "name": "OpenSelectedObjectYAML",
              "anchor": "Editor.OpenSelectedObjectYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenSelectedObjectYAML() error",
              "doc": "OpenSelectedObjectYAML locates the selected object's 1-based line in the scene YAML (or line 1\nwhen no object is selected), invokes Editor.OnOpenFileAtLine(path, line) when set, and updates\nEditor.Status with \"Opened <path>:<line>\".\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 574
            },
            {
              "name": "OpenSettingsPage",
              "anchor": "Editor.OpenSettingsPage",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenSettingsPage(page SettingsPage)",
              "doc": "OpenSettingsPage opens the unified Settings view on page (or switches to page if already open).\n",
              "file": "pkg/editor/settings.go",
              "line": 1066
            },
            {
              "name": "OpenShortcutsSettings",
              "anchor": "Editor.OpenShortcutsSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenShortcutsSettings()",
              "doc": "OpenShortcutsSettings opens the Settings view directly to the Shortcuts page.\n",
              "file": "pkg/editor/settings.go",
              "line": 1238
            },
            {
              "name": "OpenSourceScene",
              "anchor": "Editor.OpenSourceScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenSourceScene(objectID string) error",
              "doc": "OpenSourceScene opens the source scene file of objectID (or SelectedID when empty) in a tab:\nfor a scene instance root or instanced child it opens the instanced scene, and for an inherited object it opens the base scene.\n",
              "file": "pkg/editor/overrides.go",
              "line": 2049
            },
            {
              "name": "OpenStatesFile",
              "anchor": "Editor.OpenStatesFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenStatesFile(path, target string) error",
              "doc": "OpenStatesFile reads a *.states.yaml file from disk and opens it in the state machine editor.\n",
              "file": "pkg/editor/states.go",
              "line": 265
            },
            {
              "name": "OpenStatesProjectFile",
              "anchor": "Editor.OpenStatesProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenStatesProjectFile(relPath string) error",
              "doc": "OpenStatesProjectFile opens a project-relative *.states.yaml file in the state machine editor.\n",
              "file": "pkg/editor/states.go",
              "line": 274
            },
            {
              "name": "OpenStatesYAML",
              "anchor": "Editor.OpenStatesYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenStatesYAML(data []byte, target string) error",
              "doc": "OpenStatesYAML parses data as a *.states.yaml document and opens it to preview on target (selected object, or an object with an animator component, when empty) as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 260
            },
            {
              "name": "OpenTask",
              "anchor": "Editor.OpenTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenTask(id string) error",
              "doc": "OpenTask opens the Tasks panel focused on id and, when possible, switches to or opens its target\nscene (strictly confined inside the open project root) and selects its first edited/blocked object.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1077
            },
            {
              "name": "OpenTerrain",
              "anchor": "Editor.OpenTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenTerrain(doc *world3d.TerrainDoc, hm *world3d.Heightmap, foliageDensities map[string]*world3d.DensityMap) error",
              "doc": "OpenTerrain opens an already-constructed TerrainDoc and Heightmap in the editor\nfor sculpting and painting without requiring files on disk.\n",
              "file": "pkg/editor/terrain.go",
              "line": 552
            },
            {
              "name": "OpenTerrainFile",
              "anchor": "Editor.OpenTerrainFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenTerrainFile(yamlPath string) error",
              "doc": "OpenTerrainFile reads a *.terrain.yaml file and its referenced heightmap,\nsplat/weight maps, and foliage density maps from disk and opens them for\nsculpting and painting in the 3D viewport.\n",
              "file": "pkg/editor/terrain.go",
              "line": 586
            },
            {
              "name": "OpenTerrainProjectFile",
              "anchor": "Editor.OpenTerrainProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenTerrainProjectFile(relPath string) error",
              "doc": "OpenTerrainProjectFile opens relPath (slash-separated from the open project's root)\nin the terrain editor.\n",
              "file": "pkg/editor/terrain.go",
              "line": 628
            },
            {
              "name": "OpenTilesetFile",
              "anchor": "Editor.OpenTilesetFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenTilesetFile(filePath string) error",
              "doc": "OpenTilesetFile reads the YAML tileset at filePath and opens it in the Tileset Editor panel.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 216
            },
            {
              "name": "OpenTilesetProjectFile",
              "anchor": "Editor.OpenTilesetProjectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenTilesetProjectFile(relPath string) error",
              "doc": "OpenTilesetProjectFile opens relPath (slash-separated from the open project's root, or read via Resolver's FileResolver when no project is open) in the Tileset Editor panel.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 240
            },
            {
              "name": "OpenTilesetYAML",
              "anchor": "Editor.OpenTilesetYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenTilesetYAML(name string, data []byte) error",
              "doc": "OpenTilesetYAML parses data as a version 1 YAML tileset named name and opens it in the Tileset Editor panel.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 274
            },
            {
              "name": "OpenUsageItem",
              "anchor": "Editor.OpenUsageItem",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenUsageItem(item UsageItem) error",
              "doc": "OpenUsageItem navigates to a specific UsageItem: scenes open with the referencing object selected and framed; data tables open in the Data Table panel; Go files invoke OnOpenSourceFile and select the file.\n",
              "file": "pkg/editor/usages.go",
              "line": 896
            },
            {
              "name": "OpenUsagesScreen",
              "anchor": "Editor.OpenUsagesScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenUsagesScreen(targetPath string) error",
              "doc": "OpenUsagesScreen opens the full-window Find Usages screen for targetPath (or the current selection/file/scene when empty).\n",
              "file": "pkg/editor/usages.go",
              "line": 468
            },
            {
              "name": "OpenViewportSettings",
              "anchor": "Editor.OpenViewportSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenViewportSettings()",
              "doc": "OpenViewportSettings opens the Settings view directly to the Viewport page.\n",
              "file": "pkg/editor/settings.go",
              "line": 1230
            },
            {
              "name": "OpenYAML",
              "anchor": "Editor.OpenYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) OpenYAML(data []byte) error",
              "doc": "OpenYAML parses data as a sceneformat.SceneDoc, replaces the active document,\nclears undo/redo history, and rebuilds the scene.\n",
              "file": "pkg/editor/state.go",
              "line": 1633
            },
            {
              "name": "OrbitModelPreview",
              "anchor": "Editor.OrbitModelPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) OrbitModelPreview(dyaw, dpitch float32)",
              "doc": "OrbitModelPreview rotates the model preview orbit camera by dyaw and dpitch in radians.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 519
            },
            {
              "name": "OrbitView3D",
              "anchor": "Editor.OrbitView3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) OrbitView3D(dyaw, dpitch float32)",
              "doc": "OrbitView3D orbits the 3D viewport's camera about its Target by dyaw and dpitch radians, as a drag does; the viewport's Orbit buttons turn it 15 degrees left or right. Looking straight down or up from an axis view, a tilt first brings the view back within Orbit's range. A turn that is not finite changes nothing.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 179
            },
            {
              "name": "Orthographic3D",
              "anchor": "Editor.Orthographic3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) Orthographic3D() bool",
              "doc": "Orthographic3D reports whether the 3D viewport's camera projects in orthographic.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 174
            },
            {
              "name": "OutputEntries",
              "anchor": "Editor.OutputEntries",
              "recv": "*Editor",
              "decl": "func (e *Editor) OutputEntries() []OutputEntry",
              "doc": "OutputEntries returns a snapshot of every entry recorded in the Output panel in chronological order. It is safe to call from any goroutine.\n",
              "file": "pkg/editor/output_panel.go",
              "line": 145
            },
            {
              "name": "OutputErrorsOnly",
              "anchor": "Editor.OutputErrorsOnly",
              "recv": "*Editor",
              "decl": "func (e *Editor) OutputErrorsOnly() bool",
              "doc": "OutputErrorsOnly reports whether the Output panel is filtered to error entries only.\n",
              "file": "pkg/editor/output_panel.go",
              "line": 121
            },
            {
              "name": "OutputPanelOpen",
              "anchor": "Editor.OutputPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) OutputPanelOpen() bool",
              "doc": "OutputPanelOpen reports whether the Output panel is visible below the viewport.\n",
              "file": "pkg/editor/output_panel.go",
              "line": 97
            },
            {
              "name": "OutputPanic",
              "anchor": "Editor.OutputPanic",
              "recv": "*Editor",
              "decl": "func (e *Editor) OutputPanic() *PanicReport",
              "doc": "OutputPanic returns a copy of the latest detected panic report in the Output panel, or nil when none is present.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 251
            },
            {
              "name": "OutputPanicRuntimeExpanded",
              "anchor": "Editor.OutputPanicRuntimeExpanded",
              "recv": "*Editor",
              "decl": "func (e *Editor) OutputPanicRuntimeExpanded() bool",
              "doc": "OutputPanicRuntimeExpanded reports whether the panic card's folded runtime frames are expanded.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 276
            },
            {
              "name": "OverlayKindVisible",
              "anchor": "Editor.OverlayKindVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) OverlayKindVisible(kind OverlayKind) bool",
              "doc": "OverlayKindVisible reports whether overlay kind is currently enabled in the top-left viewport legend.\nFor OverlayKindFocusedChange, it reports whether any change kind is enabled (callers with a specific\nChangeKind should pass that ChangeKind).\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 908
            },
            {
              "name": "OverlayLegendKindEnabled",
              "anchor": "Editor.OverlayLegendKindEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) OverlayLegendKindEnabled(kind OverlayLegendKind) bool",
              "doc": "OverlayLegendKindEnabled reports whether the Spec overlay legend row kind is currently toggled on.\nAll kinds default to enabled unless persisted in EditorSettings.OverlayLegend / HiddenOverlayKinds.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 777
            },
            {
              "name": "OverlayLegendOpen",
              "anchor": "Editor.OverlayLegendOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) OverlayLegendOpen() bool",
              "doc": "OverlayLegendOpen reports whether the compact viewport overlay legend is visible (true by default in edit mode).\n",
              "file": "pkg/editor/spec_feedback_ui.go",
              "line": 38
            },
            {
              "name": "OverlaysPopoverOpen",
              "anchor": "Editor.OverlaysPopoverOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) OverlaysPopoverOpen() bool",
              "doc": "OverlaysPopoverOpen reports whether the viewport Overlays popover is currently open.\n",
              "file": "pkg/editor/overlays.go",
              "line": 516
            },
            {
              "name": "PaintGridMapCell",
              "anchor": "Editor.PaintGridMapCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) PaintGridMapCell(c world3d.GridCoord, tileID uint16, orient uint8) error",
              "doc": "PaintGridMapCell sets cell c in the open GridMap to tileID with orientation orient (0..23) as an undoable command.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 750
            },
            {
              "name": "PaintTerrain",
              "anchor": "Editor.PaintTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) PaintTerrain(layer string, col, row int, terrainName string) error",
              "doc": "PaintTerrain places a cell of terrainName (or ActiveTerrain / the tileset's first terrain when empty) at (col, row)\non layer's layered tilemap and updates the cell and its neighbors through the same autotile rules as tilemap.Tilemap.SetAutotile, as one undoable command.\n",
              "file": "pkg/editor/tilepaint.go",
              "line": 442
            },
            {
              "name": "PaintTile",
              "anchor": "Editor.PaintTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) PaintTile(layer string, col, row, tileID int) error",
              "doc": "PaintTile sets the tile at (col, row) on layer's inline tilemap to tileID as an undoable command. On a layered grid it paints the tile layer ActiveTileLayer names, and tileID is the tile's local ID in the tileset plus 1, as the tile palette numbers tiles, placed with the flips ActiveTileFlip holds; 0 empties the cell.\n",
              "file": "pkg/editor/tilepaint.go",
              "line": 201
            },
            {
              "name": "PaletteItems",
              "anchor": "Editor.PaletteItems",
              "recv": "*Editor",
              "decl": "func (e *Editor) PaletteItems() []base.CommandItem",
              "doc": "PaletteItems returns all items shown in the Command Palette:\nregistered editor commands (built-in, custom, and active plugins'), active plugin tools,\nactive plugin panels, and the open project's scenes and files.\n",
              "file": "pkg/editor/palette.go",
              "line": 201
            },
            {
              "name": "PaletteRecent",
              "anchor": "Editor.PaletteRecent",
              "recv": "*Editor",
              "decl": "func (e *Editor) PaletteRecent() []string",
              "doc": "PaletteRecent returns a copy of the most recently executed Command Palette item IDs (newest first).\n",
              "file": "pkg/editor/palette.go",
              "line": 30
            },
            {
              "name": "PanModelPreview",
              "anchor": "Editor.PanModelPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) PanModelPreview(dx, dy, canvasH float32)",
              "doc": "PanModelPreview translates the model preview camera target parallel to the view plane by (dx, dy) pixels in a canvas canvasH pixels tall.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 534
            },
            {
              "name": "PanRigView",
              "anchor": "Editor.PanRigView",
              "recv": "*Editor",
              "decl": "func (e *Editor) PanRigView(dx, dy float32)",
              "doc": "PanRigView pans the rig editor canvas by (dx, dy) canvas points.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 123
            },
            {
              "name": "PanView2D",
              "anchor": "Editor.PanView2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PanView2D(dx, dy float32) bool",
              "doc": "PanView2D moves what the 2D viewport shows by (dx, dy) canvas points, as a drag that grabs the world does: a positive dx brings into view what was to the left. It reports false for a zero or non-finite move and while the scene plays.\n",
              "file": "pkg/editor/view2d.go",
              "line": 129
            },
            {
              "name": "PanView3D",
              "anchor": "Editor.PanView3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PanView3D(dx, dy, h float32)",
              "doc": "PanView3D moves the 3D viewport's camera parallel to the view so the scene follows the pointer: dx and dy are how far it moved, in points, right and down, on a viewport h points high. What lies at Target moves by exactly that much, in perspective and in orthographic. A move that is not finite changes nothing.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 203
            },
            {
              "name": "PanelVisible",
              "anchor": "Editor.PanelVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) PanelVisible(key string) bool",
              "doc": "PanelVisible reports whether panel key is currently shown in the dock area.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1435
            },
            {
              "name": "Panels",
              "anchor": "Editor.Panels",
              "recv": "*Editor",
              "decl": "func (e *Editor) Panels() []PanelInfo",
              "doc": "Panels returns the list of user-toggleable dock panels (built-in panels and active plugin panels) in menu order.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1523
            },
            {
              "name": "ParticleActiveConfig",
              "anchor": "Editor.ParticleActiveConfig",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleActiveConfig() *particles.Config",
              "doc": "ParticleActiveConfig returns a deep copy of the currently targeted emitter Config (the root config or the selected nested sub-emitter), or nil when closed.\n",
              "file": "pkg/editor/particles.go",
              "line": 159
            },
            {
              "name": "ParticleActiveCurve",
              "anchor": "Editor.ParticleActiveCurve",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleActiveCurve() ParticleCurveKind",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1127
            },
            {
              "name": "ParticleAtlasFrames",
              "anchor": "Editor.ParticleAtlasFrames",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleAtlasFrames(atlasName string) []AssetEntry",
              "doc": "ParticleAtlasFrames returns the frames of atlasName in sorted order (or of ParticlePreviewAtlas when atlasName is empty).\n",
              "file": "pkg/editor/particles.go",
              "line": 779
            },
            {
              "name": "ParticleAtlasNames",
              "anchor": "Editor.ParticleAtlasNames",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleAtlasNames() []string",
              "doc": "ParticleAtlasNames returns all atlas names available through the editor's Resolver in sorted order.\n",
              "file": "pkg/editor/particles.go",
              "line": 764
            },
            {
              "name": "ParticleEmitter",
              "anchor": "Editor.ParticleEmitter",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleEmitter() *particles.Config",
              "doc": "ParticleEmitter returns a deep copy of the root particles.Config open in the Particle Emitter panel, or nil when closed.\n",
              "file": "pkg/editor/particles.go",
              "line": 150
            },
            {
              "name": "ParticleEmitterDirty",
              "anchor": "Editor.ParticleEmitterDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleEmitterDirty() bool",
              "doc": "ParticleEmitterDirty reports whether the open particle emitter differs from the YAML bytes it was opened from or last saved to.\n",
              "file": "pkg/editor/particles.go",
              "line": 247
            },
            {
              "name": "ParticleEmitterOpen",
              "anchor": "Editor.ParticleEmitterOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleEmitterOpen() bool",
              "doc": "ParticleEmitterOpen reports whether the Particle Emitter panel has an emitter open.\n",
              "file": "pkg/editor/particles.go",
              "line": 145
            },
            {
              "name": "ParticleEmitterPath",
              "anchor": "Editor.ParticleEmitterPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleEmitterPath() string",
              "doc": "ParticleEmitterPath returns the disk path of the open particle emitter file, or \"\".\n",
              "file": "pkg/editor/particles.go",
              "line": 239
            },
            {
              "name": "ParticlePreview",
              "anchor": "Editor.ParticlePreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticlePreview() *particles.Emitter",
              "doc": "ParticlePreview returns the live preview particles.Emitter for the open emitter, or nil when closed.\n",
              "file": "pkg/editor/particles.go",
              "line": 655
            },
            {
              "name": "ParticlePreviewAtlas",
              "anchor": "Editor.ParticlePreviewAtlas",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticlePreviewAtlas() string",
              "doc": "ParticlePreviewAtlas returns the atlas name bound to the live particle preview and atlas frame picker.\n",
              "file": "pkg/editor/particles.go",
              "line": 731
            },
            {
              "name": "ParticlePreviewElapsed",
              "anchor": "Editor.ParticlePreviewElapsed",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticlePreviewElapsed() time.Duration",
              "doc": "ParticlePreviewElapsed returns the elapsed simulation time of the live particle preview since its last Restart.\n",
              "file": "pkg/editor/particles.go",
              "line": 668
            },
            {
              "name": "ParticlePreviewFloor",
              "anchor": "Editor.ParticlePreviewFloor",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticlePreviewFloor() bool",
              "doc": "ParticlePreviewFloor reports whether the preview includes a test floor collider below the emitter.\n",
              "file": "pkg/editor/particles.go",
              "line": 749
            },
            {
              "name": "ParticlePreviewPlaying",
              "anchor": "Editor.ParticlePreviewPlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticlePreviewPlaying() bool",
              "doc": "ParticlePreviewPlaying reports whether the live particle preview is currently running.\n",
              "file": "pkg/editor/particles.go",
              "line": 663
            },
            {
              "name": "ParticleSelectedStop",
              "anchor": "Editor.ParticleSelectedStop",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleSelectedStop() int",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1147
            },
            {
              "name": "ParticleTargetPath",
              "anchor": "Editor.ParticleTargetPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) ParticleTargetPath() []int",
              "doc": "ParticleTargetPath returns a copy of the nested sub-emitter index path currently edited (empty for the root emitter).\n",
              "file": "pkg/editor/particles.go",
              "line": 172
            },
            {
              "name": "Paste",
              "anchor": "Editor.Paste",
              "recv": "*Editor",
              "decl": "func (e *Editor) Paste() ([]string, error)",
              "doc": "Paste reads scene-format YAML from the system clipboard and pastes its objects into the\nactive layer (at the viewport pointer when hovering, or with an offset when pasting into\na scene where original IDs are already taken) in one undoable step.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 529
            },
            {
              "name": "PasteAgentReferenceImage",
              "anchor": "Editor.PasteAgentReferenceImage",
              "recv": "*Editor",
              "decl": "func (e *Editor) PasteAgentReferenceImage() ([]AgentReferenceImage, bool, error)",
              "doc": "PasteAgentReferenceImage reads an image or copied file(s) from the clipboard (via Editor.ReadClipboardImage /\nEditor.ReadClipboardFiles when set, or the attached UI scope) and attaches them to the composer.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 654
            },
            {
              "name": "PasteInto",
              "anchor": "Editor.PasteInto",
              "recv": "*Editor",
              "decl": "func (e *Editor) PasteInto(parentID string) ([]string, error)",
              "doc": "PasteInto reads scene-format YAML from the system clipboard and pastes its objects as children\nof parentID in one undoable step.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 535
            },
            {
              "name": "PasteObject",
              "anchor": "Editor.PasteObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) PasteObject() (string, error)",
              "doc": "PasteObject pastes the object YAML currently on the clipboard (reading from ReadClipboard when set,\notherwise the cached object clipboard) onto the selected object's layer or the active layer.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 313
            },
            {
              "name": "PasteObjectYAML",
              "anchor": "Editor.PasteObjectYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) PasteObjectYAML(yamlText, layerName string) (string, error)",
              "doc": "PasteObjectYAML parses yamlText (either a canonical sceneformat SceneDoc as CopyObjectYAML writes,\nor a standalone ObjectDoc mapping) through sceneformat, assigns fresh unique IDs to the object and\nits descendants, and places it on layerName (or the active/source layer when empty) as one undoable step.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 265
            },
            {
              "name": "PasteTileRegion",
              "anchor": "Editor.PasteTileRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) PasteTileRegion(layer string, col, row int) error",
              "doc": "PasteTileRegion pastes the tile clipboard with its top-left corner at (col, row) on layer's inline tilemap\nin one undoable command.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 877
            },
            {
              "name": "PasteWith",
              "anchor": "Editor.PasteWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) PasteWith(opts PasteOptions) ([]string, error)",
              "doc": "PasteWith reads scene-format YAML from the system clipboard and pastes its objects according to opts.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 540
            },
            {
              "name": "PasteYAML",
              "anchor": "Editor.PasteYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) PasteYAML(data []byte) ([]string, error)",
              "doc": "PasteYAML parses data as scene-format YAML and pastes its objects into the active layer\nin one undoable step. Invalid YAML or validation failures are refused without mutating the scene\nor undo history.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 587
            },
            {
              "name": "PasteYAMLWith",
              "anchor": "Editor.PasteYAMLWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) PasteYAMLWith(data []byte, opts PasteOptions) ([]string, error)",
              "doc": "PasteYAMLWith parses data as scene-format YAML and pastes its objects according to opts\nin one undoable step.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 593
            },
            {
              "name": "PauseAutomationsForToday",
              "anchor": "Editor.PauseAutomationsForToday",
              "recv": "*Editor",
              "decl": "func (e *Editor) PauseAutomationsForToday() error",
              "doc": "PauseAutomationsForToday pauses every automation trigger until the next calendar day (relative to Editor.Now / time.Now).\nRefuses agent actors (ErrAutomationYouOnly).\n",
              "file": "pkg/editor/automations.go",
              "line": 506
            },
            {
              "name": "PauseClip",
              "anchor": "Editor.PauseClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) PauseClip()",
              "doc": "PauseClip stops clip playback at the playhead.\n",
              "file": "pkg/editor/animation.go",
              "line": 857
            },
            {
              "name": "PauseCutscene",
              "anchor": "Editor.PauseCutscene",
              "recv": "*Editor",
              "decl": "func (e *Editor) PauseCutscene()",
              "doc": "PauseCutscene pauses fixed-step preview playback of the open timeline cutscene.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 608
            },
            {
              "name": "PauseDataTableReview",
              "anchor": "Editor.PauseDataTableReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) PauseDataTableReview()",
              "doc": "PauseDataTableReview exits the full-window review screen while keeping the review pending\nand shows the \"Review paused\" toast with a Resume action.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 669
            },
            {
              "name": "PauseModelPreviewAnimation",
              "anchor": "Editor.PauseModelPreviewAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) PauseModelPreviewAnimation()",
              "doc": "PauseModelPreviewAnimation halts model preview animation playback at the current playhead and pose.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 730
            },
            {
              "name": "PauseParticlePreview",
              "anchor": "Editor.PauseParticlePreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) PauseParticlePreview()",
              "doc": "PauseParticlePreview pauses the live particle preview while keeping all live particles visible.\n",
              "file": "pkg/editor/particles.go",
              "line": 691
            },
            {
              "name": "PausePlay",
              "anchor": "Editor.PausePlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) PausePlay()",
              "doc": "PausePlay pauses local Play mode at the current frame.\n",
              "file": "pkg/editor/play.go",
              "line": 52
            },
            {
              "name": "PauseReview",
              "anchor": "Editor.PauseReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) PauseReview()",
              "doc": "PauseReview (Esc / Back to editor) leaves the full-window Review screen while keeping the turn pending,\npreserving the exact focused change, seen state, filter, and reverted set.\n",
              "file": "pkg/editor/review.go",
              "line": 3255
            },
            {
              "name": "PauseRig",
              "anchor": "Editor.PauseRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) PauseRig()",
              "doc": "PauseRig pauses rig animation playback at the current playhead.\n",
              "file": "pkg/editor/rig.go",
              "line": 1791
            },
            {
              "name": "PauseStates",
              "anchor": "Editor.PauseStates",
              "recv": "*Editor",
              "decl": "func (e *Editor) PauseStates()",
              "doc": "PauseStates pauses fixed-step preview playback of the open state machine.\n",
              "file": "pkg/editor/states.go",
              "line": 632
            },
            {
              "name": "PendingAgentPermissionAsk",
              "anchor": "Editor.PendingAgentPermissionAsk",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingAgentPermissionAsk() *AgentPermissionPrompt",
              "doc": "PendingAgentPermissionAsk returns a copy of the currently open interactive permission card, or nil.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 174
            },
            {
              "name": "PendingAgentPermissionCardFocused",
              "anchor": "Editor.PendingAgentPermissionCardFocused",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingAgentPermissionCardFocused() bool",
              "doc": "PendingAgentPermissionCardFocused reports whether keyboard focus is currently inside the Agent panel's live permission card.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 1122
            },
            {
              "name": "PendingAutomationDraft",
              "anchor": "Editor.PendingAutomationDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingAutomationDraft() *AutomationDraft",
              "doc": "PendingAutomationDraft returns a copy of the currently drafted automation waiting to be kept, or nil.\n",
              "file": "pkg/editor/automations.go",
              "line": 731
            },
            {
              "name": "PendingDocReviews",
              "anchor": "Editor.PendingDocReviews",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingDocReviews(target DocReviewTarget) []DocReview",
              "doc": "PendingDocReviews returns all pending DocReviews matching target (or all targets when target is empty).\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1359
            },
            {
              "name": "PendingPermissionRequests",
              "anchor": "Editor.PendingPermissionRequests",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingPermissionRequests() []PendingPermissionRequest",
              "doc": "PendingPermissionRequests returns all currently pending Ask permission requests.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1698
            },
            {
              "name": "PendingProjectAction",
              "anchor": "Editor.PendingProjectAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingProjectAction() (PendingProjectAction, bool)",
              "doc": "PendingProjectAction returns the pending project switch awaiting unsaved-edits confirmation, if any.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 988
            },
            {
              "name": "PendingReviewNotes",
              "anchor": "Editor.PendingReviewNotes",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingReviewNotes() *ReviewNoteBatch",
              "doc": "PendingReviewNotes returns a deep copy of the notes explicitly sent by the author and waiting\nfor the agent's next round redo, or nil if no notes have been sent.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 520
            },
            {
              "name": "PendingSaveConflict",
              "anchor": "Editor.PendingSaveConflict",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingSaveConflict() (*DiskConflictError, bool)",
              "doc": "PendingSaveConflict returns the pending save conflict error, if any.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1451
            },
            {
              "name": "PendingTurnPromptOpen",
              "anchor": "Editor.PendingTurnPromptOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingTurnPromptOpen() bool",
              "doc": "PendingTurnPromptOpen reports whether the pending-turn Keep/Revert/Cancel confirmation dialog is open.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 2302
            },
            {
              "name": "PendingTurnPromptSummary",
              "anchor": "Editor.PendingTurnPromptSummary",
              "recv": "*Editor",
              "decl": "func (e *Editor) PendingTurnPromptSummary() string",
              "doc": "PendingTurnPromptSummary describes the blocked action waiting on Keep, Revert, or Cancel.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 2307
            },
            {
              "name": "PermissionToast",
              "anchor": "Editor.PermissionToast",
              "recv": "*Editor",
              "decl": "func (e *Editor) PermissionToast() (PermissionToast, bool)",
              "doc": "PermissionToast returns the currently visible \"Always permission rule saved\" toast, if any.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1862
            },
            {
              "name": "Permissions",
              "anchor": "Editor.Permissions",
              "recv": "*Editor",
              "decl": "func (e *Editor) Permissions() PermissionsFile",
              "doc": "Permissions returns a copy of the editor's active project permission profile and rules (defaulting to the Balanced preset).\n",
              "file": "pkg/editor/permissions.go",
              "line": 1162
            },
            {
              "name": "PermissionsDraft",
              "anchor": "Editor.PermissionsDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) PermissionsDraft() *PermissionsDraft",
              "doc": "PermissionsDraft returns a copy of the currently open permissions draft, or nil.\n",
              "file": "pkg/editor/you_only.go",
              "line": 918
            },
            {
              "name": "PermissionsDraftOpen",
              "anchor": "Editor.PermissionsDraftOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) PermissionsDraftOpen() bool",
              "doc": "PermissionsDraftOpen reports whether an agent-submitted You-only permissions draft card is currently open.\n",
              "file": "pkg/editor/you_only.go",
              "line": 913
            },
            {
              "name": "PermissionsDraftPreviewYAML",
              "anchor": "Editor.PermissionsDraftPreviewYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) PermissionsDraftPreviewYAML() []PermissionsDraftYAMLLine",
              "doc": "PermissionsDraftPreviewYAML returns the diff lines showing what permissions.yaml will change for the currently ticked rules.\n",
              "file": "pkg/editor/you_only.go",
              "line": 960
            },
            {
              "name": "PermissionsDraftTickedCount",
              "anchor": "Editor.PermissionsDraftTickedCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) PermissionsDraftTickedCount() int",
              "doc": "PermissionsDraftTickedCount returns how many rules are currently ticked in the open permissions draft.\n",
              "file": "pkg/editor/you_only.go",
              "line": 926
            },
            {
              "name": "PermissionsErr",
              "anchor": "Editor.PermissionsErr",
              "recv": "*Editor",
              "decl": "func (e *Editor) PermissionsErr() error",
              "doc": "PermissionsErr returns the parse/load error if the project's permissions.yaml was invalid when opened.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1185
            },
            {
              "name": "PermissionsFocusedRule",
              "anchor": "Editor.PermissionsFocusedRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) PermissionsFocusedRule() int",
              "doc": "PermissionsFocusedRule returns the 0-based index of the currently focused rule in Settings › Permissions, or -1 if none.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1239
            },
            {
              "name": "PermissionsPath",
              "anchor": "Editor.PermissionsPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) PermissionsPath() string",
              "doc": "PermissionsPath returns the path of permissions.yaml for the open project (or an explicit path loaded via LoadProjectPermissions), or \"\" when no project is open.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1171
            },
            {
              "name": "PermissionsSettingsOpen",
              "anchor": "Editor.PermissionsSettingsOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) PermissionsSettingsOpen() bool",
              "doc": "PermissionsSettingsOpen reports whether the Settings › Permissions page is open.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1193
            },
            {
              "name": "PhysicsLayers",
              "anchor": "Editor.PhysicsLayers",
              "recv": "*Editor",
              "decl": "func (e *Editor) PhysicsLayers() *sceneformat.PhysicsLayerTable",
              "doc": "PhysicsLayers returns the active named collision layer table: the open project's physics.layers when present, otherwise the table set by SetPhysicsLayers, or nil.\n",
              "file": "pkg/editor/state.go",
              "line": 1599
            },
            {
              "name": "Pick3D",
              "anchor": "Editor.Pick3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) Pick3D(sx, sy, w, h float32) (objectIndex int, ok bool)",
              "doc": "Pick3D casts the camera's ray (ScreenRay), in perspective or in orthographic, through viewport pixel (sx, sy) and returns the flat index (Objects3D's) of the deepest closest visible scene object it hits, nested and instanced children included. An object that draws a mesh or model in the scene's 3D build (Scene3D) is hit on the triangles of its geometry, through the build's scene3d picking, and any other object on its world-space 3D AABB (ObjectAABB3D); when a ray hits both an ancestor and one of its descendants without a nearer unrelated object between them, the deepest hit descendant wins. A press that hits geometry picks the geometry's object even when the box of an object without geometry is nearer, since such boxes are a fixed size whatever the scene's scale and may enclose the camera or the whole level; the boxes are picked only where no geometry is hit. Objects hidden or locked in the editor (SetObjectHidden, SetObjectLocked), with their descendants, and the objects of hidden and locked layers (SetLayerVisible, SetLayerLocked) are passed over.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 457
            },
            {
              "name": "Pick3DObject",
              "anchor": "Editor.Pick3DObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) Pick3DObject(sx, sy, w, h float32) (string, bool)",
              "doc": "Pick3DObject returns the ID of the deepest closest visible 3D object hit at viewport pixel (sx, sy).\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 568
            },
            {
              "name": "PickAgentPointWorld",
              "anchor": "Editor.PickAgentPointWorld",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickAgentPointWorld(wx, wy float32) bool",
              "doc": "PickAgentPointWorld completes \"Let me point\" with the clicked world coordinate (wx, wy).\n",
              "file": "pkg/editor/agent_states.go",
              "line": 845
            },
            {
              "name": "PickAndAttachAgentReferenceImages",
              "anchor": "Editor.PickAndAttachAgentReferenceImages",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickAndAttachAgentReferenceImages()",
              "doc": "PickAndAttachAgentReferenceImages opens the native file picker (or Editor.PickAgentReferenceFiles in tests)\nfor PNG, JPEG, and WebP images and attaches any chosen files to the next request.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 726
            },
            {
              "name": "PickAskInPlaceSuggestion",
              "anchor": "Editor.PickAskInPlaceSuggestion",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickAskInPlaceSuggestion(index int) (AgentTurn, error)",
              "doc": "PickAskInPlaceSuggestion selects suggestion index and immediately starts an in-place agent turn with it.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 262
            },
            {
              "name": "PickComponentGizmo3D",
              "anchor": "Editor.PickComponentGizmo3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickComponentGizmo3D(sx, sy, w, h float32) (PickedComponentGizmo3D, bool)",
              "doc": "PickComponentGizmo3D hit-tests the selected object's 3D component gizmo handles at viewport pixel (sx, sy).\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 900
            },
            {
              "name": "PickGeneratedCandidate",
              "anchor": "Editor.PickGeneratedCandidate",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickGeneratedCandidate(requestID, candidateID string) error",
              "doc": "PickGeneratedCandidate writes EXACTLY the picked media file and its <file>.source.yaml sidecar to the open project atomically as ONE undoable History step.\nCalling Editor.Undo() once removes both files (or restores prior bytes if overwriting).\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 1602
            },
            {
              "name": "PickGizmo2D",
              "anchor": "Editor.PickGizmo2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickGizmo2D(x, y float32) GizmoHandle2D",
              "doc": "PickGizmo2D returns the part of the selected object's 2D gizmo under the canvas point (x, y), Handle2DBody over the selected object away from its handles, or Handle2DNone. It is Handle2DNone whenever the gizmo is not shown (Gizmo2DShown).\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 488
            },
            {
              "name": "PickGizmo3D",
              "anchor": "Editor.PickGizmo3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickGizmo3D(sx, sy, w, h float32) GizmoAxis3D",
              "doc": "PickGizmo3D hit-tests the active 3D gizmo handles on the currently selected object(s)\nusing render3d.Gizmo in the active Global or Local coordinate frame.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 1003
            },
            {
              "name": "PickGridMapCell",
              "anchor": "Editor.PickGridMapCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickGridMapCell(c world3d.GridCoord) bool",
              "doc": "PickGridMapCell makes the item and orientation stored at cell c active, returning true if the cell was occupied.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 901
            },
            {
              "name": "PickHandle3D",
              "anchor": "Editor.PickHandle3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickHandle3D(sx, sy, w, h float32) Handle3DKind",
              "doc": "PickHandle3D hit-tests interactive light and 3D camera handles on the currently selected object.\n",
              "file": "pkg/editor/handles3d.go",
              "line": 427
            },
            {
              "name": "PickNavRegionEdge2D",
              "anchor": "Editor.PickNavRegionEdge2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickNavRegionEdge2D(x, y float32) int",
              "doc": "PickNavRegionEdge2D returns the polygon edge index whose midpoint handle lies under the canvas point (x, y) on the selected object's navregion2d polygon, or -1 if none.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 440
            },
            {
              "name": "PickNavRegionVertex2D",
              "anchor": "Editor.PickNavRegionVertex2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickNavRegionVertex2D(x, y float32) int",
              "doc": "PickNavRegionVertex2D returns the polygon vertex index under the canvas point (x, y) on the selected object's navregion2d polygon, or -1 if none.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 422
            },
            {
              "name": "PickOccluderEdge2D",
              "anchor": "Editor.PickOccluderEdge2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickOccluderEdge2D(x, y float32) int",
              "doc": "PickOccluderEdge2D returns the polygon edge index whose midpoint handle lies under the canvas point (x, y) on the selected object's occluder2d polygon, or -1 if none.\n",
              "file": "pkg/editor/lights2d_editor.go",
              "line": 538
            },
            {
              "name": "PickOccluderVertex2D",
              "anchor": "Editor.PickOccluderVertex2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickOccluderVertex2D(x, y float32) int",
              "doc": "PickOccluderVertex2D returns the polygon vertex index under the canvas point (x, y) on the selected object's occluder2d polygon, or -1 if none.\n",
              "file": "pkg/editor/lights2d_editor.go",
              "line": 520
            },
            {
              "name": "PickRay3D",
              "anchor": "Editor.PickRay3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickRay3D(sx, sy, w, h float32) math3d.Ray",
              "doc": "PickRay3D returns the world-space ray from the editor's 3D camera through viewport pixel (sx, sy).\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 78
            },
            {
              "name": "PickRigHandle",
              "anchor": "Editor.PickRigHandle",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickRigHandle(x, y float32) RigHandle",
              "doc": "PickRigHandle returns the rig editor handle under canvas point (x, y).\nPriority: attachment origin when a slot is selected and either the slot/attachment focus is active\nor the attachment origin is offset from the selected bone's joint; otherwise bone move joint,\nbone length tip, bone rotation ring, then attachment origin.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 260
            },
            {
              "name": "PickShapeHandle2D",
              "anchor": "Editor.PickShapeHandle2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickShapeHandle2D(x, y float32) (ShapeHandle2D, bool)",
              "doc": "PickShapeHandle2D returns the interactive shape handle under canvas point (x, y), or false when none is hit.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 465
            },
            {
              "name": "PickTile",
              "anchor": "Editor.PickTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickTile(layer string, col, row int) bool",
              "doc": "PickTile makes the tile in cell (col, row) of layer's inline tilemap (the active layer's when layer is empty) the active tile, as SetActiveTileID does, and reports whether the cell held one; an empty cell, one off the map, or a call while the scene plays leaves the active tile as it was and reports false. On a layered grid it picks from ActiveTileLayer (or the first tile layer) and copies the cell's flips into ActiveTileFlip.\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 408
            },
            {
              "name": "PickingConnectionTarget",
              "anchor": "Editor.PickingConnectionTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) PickingConnectionTarget() bool",
              "doc": "PickingConnectionTarget reports whether connection target pick mode is active.\n",
              "file": "pkg/editor/connections.go",
              "line": 271
            },
            {
              "name": "PinAgentReferenceImage",
              "anchor": "Editor.PinAgentReferenceImage",
              "recv": "*Editor",
              "decl": "func (e *Editor) PinAgentReferenceImage(id, note string) (BriefPinNotice, error)",
              "doc": "PinAgentReferenceImage copies the attached image with the given ID to art/reference/<name>\nand adds it to art.references in brief.yaml as one atomic, undoable Editor.History step.\nUndo removes both the copied file and the YAML entry cleanly.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 1009
            },
            {
              "name": "PlaceModel3D",
              "anchor": "Editor.PlaceModel3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaceModel3D(m ModelEntry, p Placement3D) (string, error)",
              "doc": "PlaceModel3D adds an object that draws m to the active layer as one undoable step, resting on p: the object is placed so that the bounds of its geometry touch p from the side the surface faces (Placement3D.Normal), raised along the normal by how far the geometry reaches below its origin, so a unit box on the ground sits on it rather than half under it. With PlaceAlign3D and p on the scene's geometry, the object turns so that its +Y axis follows the surface's normal. The object is named after m (ModelEntry.Name), gets a new ID from it and is selected; placing a glTF model in a version 1 scene raises it to sceneformat.CurrentVersion, as PlaceObject does. It returns the new object's ID.\n\nIt refuses while playing, when the active layer is locked (SetLayerLocked) or draws in screen space, and when m's model does not load.\n",
              "file": "pkg/editor/models.go",
              "line": 331
            },
            {
              "name": "PlaceModelAt3D",
              "anchor": "Editor.PlaceModelAt3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaceModelAt3D(m ModelEntry, sx, sy, w, h float32) (string, error)",
              "doc": "PlaceModelAt3D places m where the Place tool puts it for viewport pixel (sx, sy) of a viewport w by h (PlacementAt3D, PlaceModel3D), and returns the new object's ID. It fails when the pixel's ray hits neither the scene's geometry nor the ground plane.\n",
              "file": "pkg/editor/models.go",
              "line": 383
            },
            {
              "name": "PlaceNavRegion2D",
              "anchor": "Editor.PlaceNavRegion2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaceNavRegion2D(layer string, points [][2]float64) (string, error)",
              "doc": "PlaceNavRegion2D places a new object with a built-in navregion2d component on layer (or ActiveLayer when empty) through History.\nWhen points is empty, a default 128x128 square centered on the object origin is used; otherwise points must contain at least 3 finite [x, y] vertices.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 235
            },
            {
              "name": "PlaceObject",
              "anchor": "Editor.PlaceObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaceObject(layerName string, obj sceneformat.ObjectDoc) (string, error)",
              "doc": "PlaceObject adds obj to layerName (or ActiveLayer when empty) as an undoable command,\nmerging defaults from e.Prefabs when obj.Prefab matches a registered prefab.\nReturns the placed object's unique ID. It refuses a tree that nests deeper than sceneformat.MaxObjectDepth levels or holds a sheared sprite (see sceneformat.CheckObjectTree), or that reuses an ID, including one the scene gets from a scene it inherits or instances, and an object whose mesh and model fields sceneformat.CheckObjectModel refuses. Placing an object that draws a glTF model in a version 1 scene raises it to sceneformat.CurrentVersion, which Undo restores. A tree that instances a scene file (sceneformat.ObjectDoc.Scene) needs a Resolver that implements sceneformat.SceneResolver, and is refused unless the scene still resolves with it placed: see checkPlacedInstances.\n",
              "file": "pkg/editor/state.go",
              "line": 2128
            },
            {
              "name": "PlaceOpenRig",
              "anchor": "Editor.PlaceOpenRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaceOpenRig(layer string, x, y float32) (string, error)",
              "doc": "PlaceOpenRig places the rig currently open in the rig editor into layer (active layer when empty)\nat (x, y), using its project-relative path (or RigPath), active atlas, active skin, and active animation.\n",
              "file": "pkg/editor/rig.go",
              "line": 1959
            },
            {
              "name": "PlaceParticles",
              "anchor": "Editor.PlaceParticles",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaceParticles(layer, file, atlas string, x, y float32) (string, error)",
              "doc": "PlaceParticles places a new object with the given particle emitter file and optional atlas at (x, y) on layer (ActiveLayer when empty) as an undoable command.\n",
              "file": "pkg/editor/particles.go",
              "line": 1652
            },
            {
              "name": "PlacePrefab",
              "anchor": "Editor.PlacePrefab",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlacePrefab(layerName, prefabName string, x, y float32) (string, error)",
              "doc": "PlacePrefab instantiates a registered prefab at (x, y) on layerName as an undoable command.\n",
              "file": "pkg/editor/state.go",
              "line": 2268
            },
            {
              "name": "PlaceRig",
              "anchor": "Editor.PlaceRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaceRig(layer, rigPath, atlas, skin, animation string, x, y float32) (string, error)",
              "doc": "PlaceRig places a new object with the built-in \"skeletal\" component referencing rigPath, atlas,\nskin and animation at (x, y) on layer (active layer when empty) as an undoable PlaceObject command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1911
            },
            {
              "name": "PlaceScene",
              "anchor": "Editor.PlaceScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaceScene(layerName, scenePath string, x, y float32) (string, error)",
              "doc": "PlaceScene places an instance of the scene file at scenePath, a slash-separated path from the project root such as \"scenes/enemy.scene.yaml\", at (x, y) on layerName (or ActiveLayer when empty) as an undoable command, and returns the new object's ID, derived from the file's name. The saved scene keeps the reference (sceneformat.ObjectDoc.Scene), not a copy of the instanced objects, and the viewport draws them through sceneformat.Build. The editor's Resolver must implement sceneformat.SceneResolver; PlaceScene, through PlaceObject, refuses a file that fails to load or resolve, and one that leads back to the open scene (ScenePath). Placing an instance in a version 1 scene raises it to sceneformat.CurrentVersion, which Undo restores.\n",
              "file": "pkg/editor/state.go",
              "line": 2207
            },
            {
              "name": "PlacementAt3D",
              "anchor": "Editor.PlacementAt3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlacementAt3D(sx, sy, w, h float32) (Placement3D, bool)",
              "doc": "PlacementAt3D returns where the Place tool puts a model for viewport pixel (sx, sy) of a viewport w by h: the nearest point where the camera's ray through the pixel (ScreenRay) hits the scene's geometry, passing over the objects hidden or locked in the editor as picking does, or where it crosses the ground plane, the horizontal plane at PlaceHeight3D, when it hits none. With PlaceSnap3D a point on the ground plane has its X and Z snapped to the 3D grid's spacing, which follows the camera's distance as the grid the viewport draws does; a point on the scene's geometry is not snapped, since the grid's spacing can far exceed the object under the pointer and a snapped point would leave its surface. It reports false when the ray hits no geometry and runs parallel to the ground plane or away from it.\n",
              "file": "pkg/editor/models.go",
              "line": 192
            },
            {
              "name": "PlanGhostsVisible",
              "anchor": "Editor.PlanGhostsVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlanGhostsVisible() bool",
              "doc": "PlanGhostsVisible reports whether planned viewport ghosts are currently toggled on.\n",
              "file": "pkg/editor/plan.go",
              "line": 1429
            },
            {
              "name": "PlanHeaderPillText",
              "anchor": "Editor.PlanHeaderPillText",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlanHeaderPillText() string",
              "doc": "PlanHeaderPillText returns the top header pill label for the active plan phase.\n",
              "file": "pkg/editor/plan.go",
              "line": 2272
            },
            {
              "name": "PlanNeededForEdit",
              "anchor": "Editor.PlanNeededForEdit",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlanNeededForEdit(files []string, actions []PermissionAction) (bool, string)",
              "doc": "PlanNeededForEdit evaluates files and actions against the project's active permissions.yaml rules\nto determine whether a request should propose a plan first and why.\n",
              "file": "pkg/editor/plan.go",
              "line": 615
            },
            {
              "name": "PlanPickedLine",
              "anchor": "Editor.PlanPickedLine",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlanPickedLine() string",
              "doc": "PlanPickedLine formats the answer summary banner shown once the plan leaves Draft (\"Picked for you: ...\" or \"Your answers: ...\").\n",
              "file": "pkg/editor/plan.go",
              "line": 2300
            },
            {
              "name": "PlanSeq",
              "anchor": "Editor.PlanSeq",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlanSeq() uint64",
              "doc": "PlanSeq returns a monotonically increasing sequence number for plan state changes.\n",
              "file": "pkg/editor/plan.go",
              "line": 525
            },
            {
              "name": "PlanStatusBarLine",
              "anchor": "Editor.PlanStatusBarLine",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlanStatusBarLine() string",
              "doc": "PlanStatusBarLine returns the compact status-bar summary for the active plan (for example \"Plan · 5 steps · 10 objects\").\n",
              "file": "pkg/editor/plan.go",
              "line": 2243
            },
            {
              "name": "PlanStepBadgeForNode",
              "anchor": "Editor.PlanStepBadgeForNode",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlanStepBadgeForNode(name string) int",
              "doc": "PlanStepBadgeForNode returns the 1-based plan step number badge for an existing Scene Tree layer or object, or 0 if none.\n",
              "file": "pkg/editor/plan.go",
              "line": 2408
            },
            {
              "name": "PlanSummaryLine",
              "anchor": "Editor.PlanSummaryLine",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlanSummaryLine() string",
              "doc": "PlanSummaryLine returns the live plan card summary (for example \"5 steps · 3 files · 10 objects · about 2 min · ~35k tokens\").\n",
              "file": "pkg/editor/plan.go",
              "line": 2233
            },
            {
              "name": "PlannedNewTreeNodeCount",
              "anchor": "Editor.PlannedNewTreeNodeCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlannedNewTreeNodeCount() int",
              "doc": "PlannedNewTreeNodeCount returns how many non-existing planned nodes are scheduled in the active plan.\n",
              "file": "pkg/editor/plan.go",
              "line": 2394
            },
            {
              "name": "Play",
              "anchor": "Editor.Play",
              "recv": "*Editor",
              "decl": "func (e *Editor) Play() error",
              "doc": "Play snapshots the current SceneDoc and starts a live game.Loop on the editor's attached core.Scope.\nCall EditorView(cx, ed) or AttachScope(cx) beforehand, or call PlayIn(cx) with an explicit scope.\n",
              "file": "pkg/editor/play.go",
              "line": 243
            },
            {
              "name": "PlayActiveInput",
              "anchor": "Editor.PlayActiveInput",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayActiveInput() replay.ActionSource",
              "doc": "PlayActiveInput returns the active replay.ActionSource for the running Play session:\nthe replay.Player while replaying a recording, otherwise the 60-second rolling recorder wrapping PlayInputSource.\n",
              "file": "pkg/editor/play.go",
              "line": 91
            },
            {
              "name": "PlayAgentActive",
              "anchor": "Editor.PlayAgentActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayAgentActive() bool",
              "doc": "PlayAgentActive reports whether the Play mode Agent tab has an active question, sent marks thread, or stepping progress.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 805
            },
            {
              "name": "PlayAgentPill",
              "anchor": "Editor.PlayAgentPill",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayAgentPill() string",
              "doc": "PlayAgentPill returns the viewport agent status pill text (e.g. \"agent stepping frames 4 800–4 812\"), or \"\".\n",
              "file": "pkg/editor/play_marks.go",
              "line": 1172
            },
            {
              "name": "PlayAgentSteps",
              "anchor": "Editor.PlayAgentSteps",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayAgentSteps() []PlayAgentStep",
              "doc": "PlayAgentSteps returns a copy of the step rows shown in the Play mode Agent tab.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 1180
            },
            {
              "name": "PlayClip",
              "anchor": "Editor.PlayClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayClip() error",
              "doc": "PlayClip plays the open clip on the scene from the playhead (from the start when a clip that does not loop is at its end). With a scope attached (EditorView or AttachScope) a game.Loop at PlayRate advances it; otherwise call StepClip.\n",
              "file": "pkg/editor/animation.go",
              "line": 820
            },
            {
              "name": "PlayCutscene",
              "anchor": "Editor.PlayCutscene",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayCutscene() error",
              "doc": "PlayCutscene starts fixed-step preview playback of the open timeline cutscene on game.Loop.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 563
            },
            {
              "name": "PlayFrames",
              "anchor": "Editor.PlayFrames",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayFrames() int",
              "doc": "PlayFrames returns the number of draw frames executed in the current or last Play session.\n",
              "file": "pkg/editor/play.go",
              "line": 169
            },
            {
              "name": "PlayGeneratedSoundCandidate",
              "anchor": "Editor.PlayGeneratedSoundCandidate",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayGeneratedSoundCandidate(requestID, candidateID string) error",
              "doc": "PlayGeneratedSoundCandidate auditions an in-memory generated sound candidate without writing anything to disk.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2318
            },
            {
              "name": "PlayIn",
              "anchor": "Editor.PlayIn",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayIn(cx *core.Scope) error",
              "doc": "PlayIn snapshots the current SceneDoc (as deterministic YAML), builds an isolated runtime copy,\nand starts a live game.Loop on cx calling OnPlayUpdate and OnPlayDraw.\nCalling Stop stops the loop, dispatches any unsent Play marks as one thread, and restores the exact pre-play SceneDoc snapshot.\n",
              "file": "pkg/editor/play.go",
              "line": 250
            },
            {
              "name": "PlayInspectorTab",
              "anchor": "Editor.PlayInspectorTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayInspectorTab() PlayInspectorTab",
              "doc": "PlayInspectorTab returns the active right-panel tab during Play mode (PlayTabInspector or PlayTabAgent).\n",
              "file": "pkg/editor/play_marks.go",
              "line": 788
            },
            {
              "name": "PlayLastReplayPath",
              "anchor": "Editor.PlayLastReplayPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayLastReplayPath() string",
              "doc": "PlayLastReplayPath returns the project-relative path of the most recently saved Play replay file, or empty.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 479
            },
            {
              "name": "PlayMarks",
              "anchor": "Editor.PlayMarks",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayMarks() []PlayMark",
              "doc": "PlayMarks returns a copy of all marks recorded in the current or most recent Play session.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 701
            },
            {
              "name": "PlayModelPreviewAnimation",
              "anchor": "Editor.PlayModelPreviewAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayModelPreviewAnimation(relPath string, index int) error",
              "doc": "PlayModelPreviewAnimation starts or resumes playback of animation index (or the active animation when index < 0) on relPath.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 685
            },
            {
              "name": "PlayParticlePreview",
              "anchor": "Editor.PlayParticlePreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayParticlePreview() error",
              "doc": "PlayParticlePreview starts or resumes the live particle preview loop.\n",
              "file": "pkg/editor/particles.go",
              "line": 676
            },
            {
              "name": "PlayPaused",
              "anchor": "Editor.PlayPaused",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayPaused() bool",
              "doc": "PlayPaused reports whether Play mode is currently paused (frozen).\n",
              "file": "pkg/editor/play.go",
              "line": 25
            },
            {
              "name": "PlayPhysics",
              "anchor": "Editor.PlayPhysics",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayPhysics() *sceneformat.PhysicsScene",
              "doc": "PlayPhysics returns the active runtime PhysicsScene constructed from built-in physics components while playing, or nil when stopped.\n",
              "file": "pkg/editor/play.go",
              "line": 143
            },
            {
              "name": "PlayRateHz",
              "anchor": "Editor.PlayRateHz",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayRateHz() int",
              "doc": "PlayRateHz returns the fixed update rate in Hz used by Play mode (60 when PlayRate <= 0).\n",
              "file": "pkg/editor/play.go",
              "line": 82
            },
            {
              "name": "PlayReplay",
              "anchor": "Editor.PlayReplay",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayReplay() *replay.Recording",
              "doc": "PlayReplay returns the active replay.Recording while watching a playtest run in Play mode, or nil otherwise.\n",
              "file": "pkg/editor/play.go",
              "line": 177
            },
            {
              "name": "PlayReplayIn",
              "anchor": "Editor.PlayReplayIn",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayReplayIn(cx *core.Scope, rec *replay.Recording, recordingPath string, runIndex int) error",
              "doc": "PlayReplayIn starts Play mode on cx driven by rec (such as a recording opened from the Playtest Report screen's \"Watch run N\" button).\n",
              "file": "pkg/editor/play.go",
              "line": 209
            },
            {
              "name": "PlayReplayPath",
              "anchor": "Editor.PlayReplayPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayReplayPath() string",
              "doc": "PlayReplayPath returns the slash-separated path of the recording currently playing in Play mode, or empty.\n",
              "file": "pkg/editor/play.go",
              "line": 193
            },
            {
              "name": "PlayReplayPlayer",
              "anchor": "Editor.PlayReplayPlayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayReplayPlayer() *replay.Player",
              "doc": "PlayReplayPlayer returns the active replay.Player driving Play mode while watching a recording, or nil otherwise.\n",
              "file": "pkg/editor/play.go",
              "line": 185
            },
            {
              "name": "PlayReplayRunIndex",
              "anchor": "Editor.PlayReplayRunIndex",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayReplayRunIndex() int",
              "doc": "PlayReplayRunIndex returns the 1-based playtest run index being watched in Play mode, or 0.\n",
              "file": "pkg/editor/play.go",
              "line": 201
            },
            {
              "name": "PlayRig",
              "anchor": "Editor.PlayRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayRig() error",
              "doc": "PlayRig starts playing the active rig animation through the runtime skeletal.Skeleton.\nWith a core.Scope attached (EditorView or AttachScope), a game.Loop advances it; otherwise call StepRig.\n",
              "file": "pkg/editor/rig.go",
              "line": 1753
            },
            {
              "name": "PlayRollingFrameCount",
              "anchor": "Editor.PlayRollingFrameCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayRollingFrameCount() int",
              "doc": "PlayRollingFrameCount returns how many input frames are currently kept in Play mode's rolling 60-second buffer.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 450
            },
            {
              "name": "PlayRollingMaxFrames",
              "anchor": "Editor.PlayRollingMaxFrames",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayRollingMaxFrames() int",
              "doc": "PlayRollingMaxFrames returns the maximum rolling replay buffer capacity in frames (60 * PlayRateHz, 3,600 at 60 Hz).\n",
              "file": "pkg/editor/play_marks.go",
              "line": 458
            },
            {
              "name": "PlayRollingRecording",
              "anchor": "Editor.PlayRollingRecording",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayRollingRecording() *replay.Recording",
              "doc": "PlayRollingRecording returns a snapshot copy of Play mode's current rolling replay.Recording (version 2).\n",
              "file": "pkg/editor/play_marks.go",
              "line": 487
            },
            {
              "name": "PlayRollingSummary",
              "anchor": "Editor.PlayRollingSummary",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayRollingSummary() string",
              "doc": "PlayRollingSummary returns the Play-mode replay sidebar summary text, e.g. \"Last 60 s kept · 3 600 frames\".\n",
              "file": "pkg/editor/play_marks.go",
              "line": 469
            },
            {
              "name": "PlayRollingWindowStart",
              "anchor": "Editor.PlayRollingWindowStart",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayRollingWindowStart() int",
              "doc": "PlayRollingWindowStart returns the first absolute Play frame retained in the rolling 60-second window.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 442
            },
            {
              "name": "PlayScene",
              "anchor": "Editor.PlayScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayScene() *sceneformat.BuiltScene",
              "doc": "PlayScene returns the active runtime BuiltScene while playing, or nil when stopped.\n",
              "file": "pkg/editor/play.go",
              "line": 135
            },
            {
              "name": "PlayStates",
              "anchor": "Editor.PlayStates",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayStates() error",
              "doc": "PlayStates starts fixed-step preview playback of the open state machine on game.Loop.\n",
              "file": "pkg/editor/states.go",
              "line": 598
            },
            {
              "name": "PlaySteps",
              "anchor": "Editor.PlaySteps",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaySteps() int",
              "doc": "PlaySteps returns the number of fixed simulation updates executed in the current or last Play session.\n",
              "file": "pkg/editor/play.go",
              "line": 161
            },
            {
              "name": "PlayTaskDot",
              "anchor": "Editor.PlayTaskDot",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayTaskDot() PlayTaskDotState",
              "doc": "PlayTaskDot returns the Play-mode corner dot state: visible only when at least one\nfailed, waiting, or ready-to-review task exists, colored by the most urgent state\n(TaskFailed > TaskNeedsYou > TaskReadyToReview), with a hover label naming the count\nand reminding the person to stop Play to open it.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 724
            },
            {
              "name": "PlayTick",
              "anchor": "Editor.PlayTick",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayTick(dt time.Duration)",
              "doc": "PlayTick advances local Play mode by one fixed simulation step of duration dt, recording input into\nthe 60-second rolling buffer and recovering panics into the Output panel.\n",
              "file": "pkg/editor/play.go",
              "line": 127
            },
            {
              "name": "PlayTimeScale",
              "anchor": "Editor.PlayTimeScale",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayTimeScale() float64",
              "doc": "PlayTimeScale returns the current Play mode time scale (1 when unset).\n",
              "file": "pkg/editor/play.go",
              "line": 62
            },
            {
              "name": "PlayTriggerEvents",
              "anchor": "Editor.PlayTriggerEvents",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayTriggerEvents() []sceneformat.PhysicsTriggerEvent",
              "doc": "PlayTriggerEvents returns a copy of all built-in physics trigger events recorded during the current or last Play session.\n",
              "file": "pkg/editor/play.go",
              "line": 151
            },
            {
              "name": "Playing",
              "anchor": "Editor.Playing",
              "recv": "*Editor",
              "decl": "func (e *Editor) Playing() bool",
              "doc": "Playing reports whether Play mode is currently active.\n",
              "file": "pkg/editor/play.go",
              "line": 20
            },
            {
              "name": "PlayingGeneratedSound",
              "anchor": "Editor.PlayingGeneratedSound",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlayingGeneratedSound() (string, string)",
              "doc": "PlayingGeneratedSound returns the currently auditioning (requestID, candidateID), or (\"\", \"\") when idle.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2385
            },
            {
              "name": "PlaytestReportOpen",
              "anchor": "Editor.PlaytestReportOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaytestReportOpen() bool",
              "doc": "PlaytestReportOpen reports whether the full-window Playtest Report screen is currently active.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 292
            },
            {
              "name": "PlaytestSession",
              "anchor": "Editor.PlaytestSession",
              "recv": "*Editor",
              "decl": "func (e *Editor) PlaytestSession() *PlaytestReportSession",
              "doc": "PlaytestSession returns the active PlaytestReportSession (even while the screen is closed), or nil if no report has been loaded.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 297
            },
            {
              "name": "PluginDragging2D",
              "anchor": "Editor.PluginDragging2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PluginDragging2D() bool",
              "doc": "PluginDragging2D reports whether a plugin tool currently owns a 2D viewport drag.\n",
              "file": "pkg/editor/plugin.go",
              "line": 708
            },
            {
              "name": "PluginDragging3D",
              "anchor": "Editor.PluginDragging3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) PluginDragging3D() bool",
              "doc": "PluginDragging3D reports whether a plugin tool currently owns a 3D viewport drag.\n",
              "file": "pkg/editor/plugin.go",
              "line": 601
            },
            {
              "name": "PluginEnabled",
              "anchor": "Editor.PluginEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) PluginEnabled(name string) bool",
              "doc": "PluginEnabled reports whether the plugin name is on.\n",
              "file": "pkg/editor/plugin.go",
              "line": 425
            },
            {
              "name": "PluginPlural",
              "anchor": "Editor.PluginPlural",
              "recv": "*Editor",
              "decl": "func (e *Editor) PluginPlural(pluginName, key string, count int, args ...l10n.Arg) string",
              "doc": "PluginPlural translates a pluralized key from the named registered plugin's localization catalog in the editor's active language.\nIf the plugin is not registered or has no catalog, key is returned.\n",
              "file": "pkg/editor/i18n.go",
              "line": 120
            },
            {
              "name": "PluginT",
              "anchor": "Editor.PluginT",
              "recv": "*Editor",
              "decl": "func (e *Editor) PluginT(pluginName, key string, args ...l10n.Arg) string",
              "doc": "PluginT translates key from the named registered plugin's localization catalog in the editor's active language.\nIf the plugin is not registered or has no catalog, key is returned.\n",
              "file": "pkg/editor/i18n.go",
              "line": 107
            },
            {
              "name": "PluginTool",
              "anchor": "Editor.PluginTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) PluginTool() (plugin, id string, ok bool)",
              "doc": "PluginTool returns the plugin and ID of the active plugin tool, and false when the active tool is not a plugin's.\n",
              "file": "pkg/editor/plugin.go",
              "line": 755
            },
            {
              "name": "Plural",
              "anchor": "Editor.Plural",
              "recv": "*Editor",
              "decl": "func (e *Editor) Plural(key string, count int, args ...l10n.Arg) string",
              "doc": "Plural translates a pluralized key in the editor's active language using the editor's localization catalog.\n",
              "file": "pkg/editor/i18n.go",
              "line": 101
            },
            {
              "name": "PointerRevision",
              "anchor": "Editor.PointerRevision",
              "recv": "*Editor",
              "decl": "func (e *Editor) PointerRevision() uint64",
              "doc": "PointerRevision returns a counter incremented whenever the viewport pointer position changes.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 218
            },
            {
              "name": "PollDiskChanges",
              "anchor": "Editor.PollDiskChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) PollDiskChanges() DiskPollResult",
              "doc": "PollDiskChanges checks the open scene, open clip, game.yaml, and the project tree for changes made on disk outside the editor.\nClean files reload automatically (as an undoable History step with a quiet reload notice); dirty files are never overwritten under the author and instead raise a conflict offering Compare, Reload from disk, and Keep mine. The file browser refreshes automatically whenever the project tree changes.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 966
            },
            {
              "name": "PollProfiler",
              "anchor": "Editor.PollProfiler",
              "recv": "*Editor",
              "decl": "func (e *Editor) PollProfiler(ctx context.Context) error",
              "doc": "PollProfiler queries game_perf_readout (including frame history) and game_perf_zones from the connected game, updates the recorded frame history and zone table, and refreshes the UI.\n",
              "file": "pkg/editor/profiler.go",
              "line": 622
            },
            {
              "name": "Post",
              "anchor": "Editor.Post",
              "recv": "*Editor",
              "decl": "func (e *Editor) Post(fn func())",
              "doc": "Post schedules fn onto the editor's UI scope when attached, or invokes fn inline otherwise.\n",
              "file": "pkg/editor/agent.go",
              "line": 591
            },
            {
              "name": "PostSketchReading",
              "anchor": "Editor.PostSketchReading",
              "recv": "*Editor",
              "decl": "func (e *Editor) PostSketchReading(reading SketchReading) error",
              "doc": "PostSketchReading records the agent's restatement of the active sketch marks and assumptions,\nopening the reading card in the Sketch/Agent panel while keeping the scene_edit hold gate active\nuntil the user answers Go ahead, Correct a mark, or replies in words.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1305
            },
            {
              "name": "PrefabNames",
              "anchor": "Editor.PrefabNames",
              "recv": "*Editor",
              "decl": "func (e *Editor) PrefabNames() []string",
              "doc": "PrefabNames returns the names of all registered prefabs in Editor.Prefabs, sorted alphabetically.\n",
              "file": "pkg/editor/overrides.go",
              "line": 2088
            },
            {
              "name": "PrepareCodeReviewCheckRun",
              "anchor": "Editor.PrepareCodeReviewCheckRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) PrepareCodeReviewCheckRun() (*CodeReviewCheckRun, error)",
              "doc": "PrepareCodeReviewCheckRun snapshots the active code review and marks checks running on the editor goroutine.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1164
            },
            {
              "name": "PrepareExternalAgentBaseline",
              "anchor": "Editor.PrepareExternalAgentBaseline",
              "recv": "*Editor",
              "decl": "func (e *Editor) PrepareExternalAgentBaseline()",
              "doc": "PrepareExternalAgentBaseline snapshots the scene before an external MCP tool mutates it so the turn's\nreview diff includes the very first edit of a terminal/scripted MCP session.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 613
            },
            {
              "name": "PressStatesAction",
              "anchor": "Editor.PressStatesAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) PressStatesAction(action string)",
              "doc": "PressStatesAction holds a named input action (such as \"move_left\", \"move_right\", \"jump\", \"attack\", \"hurt\") while Drive with keys is enabled.\n",
              "file": "pkg/editor/states.go",
              "line": 671
            },
            {
              "name": "PreviewCheckpoint",
              "anchor": "Editor.PreviewCheckpoint",
              "recv": "*Editor",
              "decl": "func (e *Editor) PreviewCheckpoint(id string) error",
              "doc": "PreviewCheckpoint enters read-only History preview mode for persistent checkpoint id without\nmutating Doc or History. When the checkpoint contains the open scene, ActiveScene() renders its\npre-turn scene snapshot read-only in the viewport.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1859
            },
            {
              "name": "PreviewHistoryEntry",
              "anchor": "Editor.PreviewHistoryEntry",
              "recv": "*Editor",
              "decl": "func (e *Editor) PreviewHistoryEntry(id uint64) error",
              "doc": "PreviewHistoryEntry renders the scene snapshot recorded at timeline entry id read-only in the viewport\nwithout mutating Editor.Doc or moving Editor.History's undo cursor.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 272
            },
            {
              "name": "PreviewSafeRename",
              "anchor": "Editor.PreviewSafeRename",
              "recv": "*Editor",
              "decl": "func (e *Editor) PreviewSafeRename(oldRel, newName string) (*SafeRenamePlan, error)",
              "doc": "PreviewSafeRename opens the References screen in safe-rename review mode for oldRel -> newName (either a bare stem such as \"slime_green\" or a full slash-separated project path), computing the exact dry-run line diffs and non-rewritten Go warnings WITHOUT writing any file to disk.\n",
              "file": "pkg/editor/usages.go",
              "line": 570
            },
            {
              "name": "PrimaryDiskConflict",
              "anchor": "Editor.PrimaryDiskConflict",
              "recv": "*Editor",
              "decl": "func (e *Editor) PrimaryDiskConflict() (DiskConflict, bool)",
              "doc": "PrimaryDiskConflict returns the highest-priority active external-change conflict (scene, then project, then clip), if any.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1330
            },
            {
              "name": "PrioritizeBuildPreset",
              "anchor": "Editor.PrioritizeBuildPreset",
              "recv": "*Editor",
              "decl": "func (e *Editor) PrioritizeBuildPreset(platform string)",
              "doc": "PrioritizeBuildPreset moves platform to be the next queued preset in build order.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1558
            },
            {
              "name": "ProblemAgentPanelOpen",
              "anchor": "Editor.ProblemAgentPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProblemAgentPanelOpen() bool",
              "doc": "ProblemAgentPanelOpen reports whether the right-hand Agent problem panel is visible.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 122
            },
            {
              "name": "ProblemCount",
              "anchor": "Editor.ProblemCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProblemCount() int",
              "doc": "ProblemCount returns the number of visible (non-ignored) problems found by\nthe last completed project check. It is safe to call from any goroutine.\n",
              "file": "pkg/editor/problems.go",
              "line": 464
            },
            {
              "name": "ProblemErr",
              "anchor": "Editor.ProblemErr",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProblemErr() error",
              "doc": "ProblemErr returns any fatal error that prevented checking the open project's\nroot directory, or nil. It is safe to call from any goroutine.\n",
              "file": "pkg/editor/problems.go",
              "line": 472
            },
            {
              "name": "ProblemOverlayVisible",
              "anchor": "Editor.ProblemOverlayVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProblemOverlayVisible() bool",
              "doc": "ProblemOverlayVisible reports whether the Spec Problem overlay is drawn on\nlive objects in the viewport (true by default, synchronized with the Problem legend toggle).\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 163
            },
            {
              "name": "ProblemQuestions",
              "anchor": "Editor.ProblemQuestions",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProblemQuestions() []ProblemQuestionRecord",
              "doc": "ProblemQuestions returns a copy of questions asked via AskAboutProblem.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 210
            },
            {
              "name": "Problems",
              "anchor": "Editor.Problems",
              "recv": "*Editor",
              "decl": "func (e *Editor) Problems() []assetcheck.Problem",
              "doc": "Problems returns a copy of the visible (non-ignored) problems found by the\nlast completed project check, sorted by file, line, column and message. It is\nsafe to call from any goroutine.\n",
              "file": "pkg/editor/problems.go",
              "line": 451
            },
            {
              "name": "ProfilerConnected",
              "anchor": "Editor.ProfilerConnected",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProfilerConnected() bool",
              "doc": "ProfilerConnected reports whether the editor's profiler is currently connected to a running game (remote MCP client or active Play-in-editor session).\n",
              "file": "pkg/editor/profiler.go",
              "line": 390
            },
            {
              "name": "ProfilerMetric",
              "anchor": "Editor.ProfilerMetric",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProfilerMetric() ProfilerMetric",
              "doc": "ProfilerMetric returns the currently active chart metric in the full Profiler panel.\n",
              "file": "pkg/editor/profiler.go",
              "line": 400
            },
            {
              "name": "ProfilerOpen",
              "anchor": "Editor.ProfilerOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProfilerOpen() bool",
              "doc": "ProfilerOpen reports whether the full Profiler panel is currently visible below the viewport.\n",
              "file": "pkg/editor/profiler.go",
              "line": 363
            },
            {
              "name": "ProfilerSnapshot",
              "anchor": "Editor.ProfilerSnapshot",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProfilerSnapshot() ProfilerSnapshot",
              "doc": "ProfilerSnapshot returns an immutable snapshot of the editor's current profiler readout, recorded frames, sorted zones, and highlighted spike. It is safe to call from any goroutine.\n",
              "file": "pkg/editor/profiler.go",
              "line": 949
            },
            {
              "name": "ProjectAudioFiles",
              "anchor": "Editor.ProjectAudioFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectAudioFiles() ([]string, error)",
              "doc": "ProjectAudioFiles lists slash-separated relative paths of audio files (.wav, .ogg, .mp3, .m4a, .flac, .aac, .opus) inside the open project.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 608
            },
            {
              "name": "ProjectCanonicalSavePending",
              "anchor": "Editor.ProjectCanonicalSavePending",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectCanonicalSavePending() bool",
              "doc": "ProjectCanonicalSavePending reports whether the open project has not yet been saved in canonical YAML form by SaveProject during this session.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 76
            },
            {
              "name": "ProjectCutscenes",
              "anchor": "Editor.ProjectCutscenes",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectCutscenes() []CutsceneEntry",
              "doc": "ProjectCutscenes returns all *.cutscene.yaml / *.cutscene.yml files discovered in the open project (plus the currently open cutscene if it has no project file), with name, kind, length and review status.\nDisk scanning is cached by (ProjectPath, filesRev) so high-frequency timeline playback never walks or parses project files on disk.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1559
            },
            {
              "name": "ProjectDirty",
              "anchor": "Editor.ProjectDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectDirty() bool",
              "doc": "ProjectDirty reports whether the open project differs from the game.yaml it was opened from or last saved to.\n",
              "file": "pkg/editor/project.go",
              "line": 341
            },
            {
              "name": "ProjectDisplayName",
              "anchor": "Editor.ProjectDisplayName",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectDisplayName() string",
              "doc": "ProjectDisplayName returns the human-readable project name for the header breadcrumb.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 284
            },
            {
              "name": "ProjectFiles",
              "anchor": "Editor.ProjectFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectFiles() ([]ProjectFile, error)",
              "doc": "ProjectFiles lists the files and directories of the open project, the directory of ProjectPath, in the order fs.WalkDir visits them: by name, each directory followed by what it holds. It leaves out the directories refs.Scan skips, those whose names start with \".\" or \"_\" and those named testdata, with what they hold, and like Scan it passes over a directory below the root that it cannot read. It returns ErrNoProject without a project.\n",
              "file": "pkg/editor/refs.go",
              "line": 267
            },
            {
              "name": "ProjectHDRs",
              "anchor": "Editor.ProjectHDRs",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectHDRs() []string",
              "doc": "ProjectHDRs lists the slash-separated paths of Radiance HDR (.hdr, .pic) environment files in\nthe open project, sorted alphabetically.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 513
            },
            {
              "name": "ProjectLoading",
              "anchor": "Editor.ProjectLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectLoading() bool",
              "doc": "ProjectLoading reports whether the editor is currently loading a project.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 136
            },
            {
              "name": "ProjectLoadingPath",
              "anchor": "Editor.ProjectLoadingPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectLoadingPath() string",
              "doc": "ProjectLoadingPath returns the project path currently being loaded, if any.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 141
            },
            {
              "name": "ProjectModels",
              "anchor": "Editor.ProjectModels",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectModels() []string",
              "doc": "ProjectModels returns the slash-separated paths of the open project's glTF models, sorted: every .gltf and .glb file ProjectFiles lists, and the output of every model target of game.yaml's assets section (project.ModelTarget.Out), whether or not `game assets` has built it yet. It returns nil without a project. The files are listed again only when the editor changes which files the project holds or reloads its built assets (ReloadAssets), or after RefreshSearch.\n",
              "file": "pkg/editor/models.go",
              "line": 91
            },
            {
              "name": "ProjectResourceFiles",
              "anchor": "Editor.ProjectResourceFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectResourceFiles() ([]string, error)",
              "doc": "ProjectResourceFiles lists slash-separated relative paths of files inside the open project (excluding game.yaml and nsgo.yaml) suitable for autoload.resources.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 515
            },
            {
              "name": "ProjectRoomsFiles",
              "anchor": "Editor.ProjectRoomsFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectRoomsFiles() []string",
              "doc": "ProjectRoomsFiles lists all *.rooms.yaml and *.rooms.yml files in the open project.\n",
              "file": "pkg/editor/rooms.go",
              "line": 109
            },
            {
              "name": "ProjectRules",
              "anchor": "Editor.ProjectRules",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectRules() string",
              "doc": "ProjectRules returns the plain Markdown contents of the project's AGENTS.md file.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 772
            },
            {
              "name": "ProjectRulesCount",
              "anchor": "Editor.ProjectRulesCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectRulesCount() int",
              "doc": "ProjectRulesCount returns the number of Markdown list-item rules (lines starting with \"- \" or \"* \") in AGENTS.md.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 798
            },
            {
              "name": "ProjectRulesDirty",
              "anchor": "Editor.ProjectRulesDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectRulesDirty() bool",
              "doc": "ProjectRulesDirty reports whether the in-memory AGENTS.md content differs from disk.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 793
            },
            {
              "name": "ProjectRulesExists",
              "anchor": "Editor.ProjectRulesExists",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectRulesExists() bool",
              "doc": "ProjectRulesExists reports whether the project has an AGENTS.md file on disk or authored in the editor.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 780
            },
            {
              "name": "ProjectRulesPath",
              "anchor": "Editor.ProjectRulesPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectRulesPath() string",
              "doc": "ProjectRulesPath returns the path to AGENTS.md in the open project, or empty when no project is open.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 785
            },
            {
              "name": "ProjectSceneFiles",
              "anchor": "Editor.ProjectSceneFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectSceneFiles() ([]string, error)",
              "doc": "ProjectSceneFiles lists slash-separated relative paths of .yaml/.yml files inside the open project (excluding game.yaml and nsgo.yaml) suitable for autoload.scenes.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 497
            },
            {
              "name": "ProjectSettingsOpen",
              "anchor": "Editor.ProjectSettingsOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectSettingsOpen() bool",
              "doc": "ProjectSettingsOpen reports whether the Settings view is open on the Project page.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 32
            },
            {
              "name": "ProjectSettingsSection",
              "anchor": "Editor.ProjectSettingsSection",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectSettingsSection() ProjectSettingsSection",
              "doc": "ProjectSettingsSection returns the active section in the Project Settings panel, defaulting to ProjectSectionGeneral.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 51
            },
            {
              "name": "ProjectTemplates",
              "anchor": "Editor.ProjectTemplates",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectTemplates() []ProjectTemplate",
              "doc": "ProjectTemplates returns the project templates configured on the Start Screen (from `game new`'s template registry).\n",
              "file": "pkg/editor/start_screen.go",
              "line": 340
            },
            {
              "name": "ProjectTextures",
              "anchor": "Editor.ProjectTextures",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProjectTextures() []string",
              "doc": "ProjectTextures returns the slash-separated paths of image files in the open project that can be assigned to Material.Texture, sorted.\n",
              "file": "pkg/editor/materials.go",
              "line": 315
            },
            {
              "name": "Projection3D",
              "anchor": "Editor.Projection3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) Projection3D(w, h float32) Projection3D",
              "doc": "Projection3D returns the camera projection and drawing helpers for a 3D viewport of size w x h.\nWhen w or h is non-positive, it falls back to the editor's current canvas or virtual viewport size.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 43
            },
            {
              "name": "ProposeAgentPlan",
              "anchor": "Editor.ProposeAgentPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposeAgentPlan(proposal AgentPlan) (*AgentPlan, <-chan AgentPlanDecision, error)",
              "doc": "ProposeAgentPlan stages a proposed plan in Draft phase without modifying any scene or file,\nswitches the right rail to the Agent tab, and returns a channel that receives the person's decision\n(approved with answers/edited steps, or stopped).\n",
              "file": "pkg/editor/plan.go",
              "line": 740
            },
            {
              "name": "ProposeAssetImports",
              "anchor": "Editor.ProposeAssetImports",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposeAssetImports(paths []string)",
              "doc": "ProposeAssetImports marks the given project-relative asset paths as newly proposed imports awaiting review.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 601
            },
            {
              "name": "ProposeBriefReview",
              "anchor": "Editor.ProposeBriefReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposeBriefReview(next *project.Brief, summary, rationale, source string) (*DocReview, error)",
              "doc": "ProposeBriefReview validates next, builds a canonical YAML diff against the current brief.yaml,\nand queues a pending DocReview without modifying the open brief or disk until KeepDocReview is called.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1266
            },
            {
              "name": "ProposeCodeReviewFiles",
              "anchor": "Editor.ProposeCodeReviewFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposeCodeReviewFiles(req CodeReviewProposeRequest) error",
              "doc": "ProposeCodeReviewFiles stages or updates pending Go and companion YAML files for review without writing them to disk.\nCalling it while a review is already active updates the existing turn in place (advancing Round for round 2 fixes)\nrather than creating a second turn, resets Go confirmations for modified code, and recomputes line-tagged diffs.\n",
              "file": "pkg/editor/code_review.go",
              "line": 559
            },
            {
              "name": "ProposeFileDeletion",
              "anchor": "Editor.ProposeFileDeletion",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposeFileDeletion(relPath, reason string) (*ProposedDeletion, error)",
              "doc": "ProposeFileDeletion adds a proposed file deletion to the Review changes panel WITHOUT deleting the file on disk.\nIt inspects the file's line count, preview lines, and scene usages via FindUsages, and refuses You-only files,\nsymlinks, .git/**, game.yaml, open scene tabs, and files larger than 1 MiB.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 316
            },
            {
              "name": "ProposeProblemFix",
              "anchor": "Editor.ProposeProblemFix",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposeProblemFix(prob assetcheck.Problem, explanation string, edit ProblemFixEdit) (ProposedProblemFix, error)",
              "doc": "ProposeProblemFix stages a validated, non-mutating proposed fix from an agent\nfor a live problem. It simulates the edit on a clone of the target scene to\nverify validity and compute the exact before/after YAML diff, then opens the\nAgent problem card. It NEVER modifies any open document, history, or file.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 297
            },
            {
              "name": "ProposeProjectRulesReview",
              "anchor": "Editor.ProposeProjectRulesReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposeProjectRulesReview(nextMarkdown, summary, rationale, source string) (*DocReview, error)",
              "doc": "ProposeProjectRulesReview builds a line diff against the current AGENTS.md and queues a pending\nDocReview without modifying AGENTS.md or disk until KeepDocReview is called.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1311
            },
            {
              "name": "ProposeSuggestedRule",
              "anchor": "Editor.ProposeSuggestedRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposeSuggestedRule(id string) (*DocReview, error)",
              "doc": "ProposeSuggestedRule turns suggested rule id into a reviewable DocReview targeting AGENTS.md.\nAGENTS.md is not modified until the person keeps the review.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1153
            },
            {
              "name": "ProposedFixFor",
              "anchor": "Editor.ProposedFixFor",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposedFixFor(p assetcheck.Problem) (ProposedProblemFix, bool)",
              "doc": "ProposedFixFor returns the pending proposed fix matching p, if any.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 238
            },
            {
              "name": "ProposedFixes",
              "anchor": "Editor.ProposedFixes",
              "recv": "*Editor",
              "decl": "func (e *Editor) ProposedFixes() []ProposedProblemFix",
              "doc": "ProposedFixes returns a copy of all pending agent-proposed fixes.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 220
            },
            {
              "name": "PruneCheckpoints",
              "anchor": "Editor.PruneCheckpoints",
              "recv": "*Editor",
              "decl": "func (e *Editor) PruneCheckpoints() (int, error)",
              "doc": "PruneCheckpoints drops the oldest completed checkpoints under .nsgo/checkpoints/ until total\nstorage is within CheckpointMaxBytes (defaulting to DefaultCheckpointMaxBytes), keeping at least\nthe newest checkpoint and never deleting an active turn. Returns the number of dropped checkpoints.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1350
            },
            {
              "name": "PublishCredentialAccount",
              "anchor": "Editor.PublishCredentialAccount",
              "recv": "*Editor",
              "decl": "func (e *Editor) PublishCredentialAccount(dest PublishDestination) string",
              "doc": "PublishCredentialAccount returns the non-secret display label for dest's keychain entry.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 922
            },
            {
              "name": "PushCommits",
              "anchor": "Editor.PushCommits",
              "recv": "*Editor",
              "decl": "func (e *Editor) PushCommits() error",
              "doc": "PushCommits pushes local commits on the current branch to its upstream (or sets upstream on origin when none is configured).\n",
              "file": "pkg/editor/changes.go",
              "line": 2892
            },
            {
              "name": "PushCommitsAsync",
              "anchor": "Editor.PushCommitsAsync",
              "recv": "*Editor",
              "decl": "func (e *Editor) PushCommitsAsync(cx *core.Scope) error",
              "doc": "PushCommitsAsync pushes commits off the UI thread and posts the result back to the editor scope.\n",
              "file": "pkg/editor/changes.go",
              "line": 2920
            },
            {
              "name": "QueryTiles",
              "anchor": "Editor.QueryTiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) QueryTiles(opts TileQueryOptions) (TileQueryResult, error)",
              "doc": "QueryTiles finds matching cells and groups them into connected regions on an inline tilemap layer.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 412
            },
            {
              "name": "QueueAgentRequest",
              "anchor": "Editor.QueueAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) QueueAgentRequest(prompt string) AgentQueuedRequest",
              "doc": "QueueAgentRequest appends a request to the queue with its timestamp without executing it.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1994
            },
            {
              "name": "QueuedToastCount",
              "anchor": "Editor.QueuedToastCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) QueuedToastCount() int",
              "doc": "QueuedToastCount returns how many additional toasts are waiting behind the visible toast.\n",
              "file": "pkg/editor/toasts.go",
              "line": 841
            },
            {
              "name": "QueuedToasts",
              "anchor": "Editor.QueuedToasts",
              "recv": "*Editor",
              "decl": "func (e *Editor) QueuedToasts() []Toast",
              "doc": "QueuedToasts returns a snapshot of the waiting toasts behind the active toast, in FIFO order.\n",
              "file": "pkg/editor/toasts.go",
              "line": 849
            },
            {
              "name": "RandomBrushSeed",
              "anchor": "Editor.RandomBrushSeed",
              "recv": "*Editor",
              "decl": "func (e *Editor) RandomBrushSeed() uint64",
              "doc": "RandomBrushSeed returns the fixed seed used by ToolRandomTile.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 293
            },
            {
              "name": "RandomBrushTiles",
              "anchor": "Editor.RandomBrushTiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) RandomBrushTiles() []WeightedTile",
              "doc": "RandomBrushTiles returns a copy of the weighted tiles used by ToolRandomTile.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 310
            },
            {
              "name": "RaycastTerrain3D",
              "anchor": "Editor.RaycastTerrain3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) RaycastTerrain3D(sx, sy, w, h float32) (world3d.TerrainHit, bool)",
              "doc": "RaycastTerrain3D casts a ray from the 3D viewport camera through pixel (sx, sy)\nand intersects it against the open terrain's Heightmap.\n",
              "file": "pkg/editor/terrain.go",
              "line": 1521
            },
            {
              "name": "ReadSceneYAMLForLocate",
              "anchor": "Editor.ReadSceneYAMLForLocate",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReadSceneYAMLForLocate() ([]byte, error)",
              "doc": "ReadSceneYAMLForLocate returns the open scene's YAML bytes for line/snippet inspection: when\nthe scene is clean on disk it reads the verified, size-capped disk file (preserving comments);\notherwise it returns Editor.SaveYAML.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 484
            },
            {
              "name": "ReadyToReviewTurns",
              "anchor": "Editor.ReadyToReviewTurns",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReadyToReviewTurns() []AgentTurn",
              "doc": "ReadyToReviewTurns returns all automation/background AgentTurns currently waiting in Ready to review.\n",
              "file": "pkg/editor/automations.go",
              "line": 1411
            },
            {
              "name": "ReassignTilesetEditMask",
              "anchor": "Editor.ReassignTilesetEditMask",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReassignTilesetEditMask() error",
              "doc": "ReassignTilesetEditMask commits the pending conflicting mask (TilesetEditMask) to the selected tile, clearing the previous owner in the same undo step.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 853
            },
            {
              "name": "RebindShortcut",
              "anchor": "Editor.RebindShortcut",
              "recv": "*Editor",
              "decl": "func (e *Editor) RebindShortcut(cmdID, newShortcut string) error",
              "doc": "RebindShortcut binds cmdID to newShortcut (or unbinds it when newShortcut is empty).\nIt checks for conflicts ONLY within cmdID's scope, returning *ShortcutConflictError if another\ncommand in the same scope already owns newShortcut. Keys used only in a different scope bind\nimmediately. When Editor.SettingsPath is set, the change is persisted to disk.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 348
            },
            {
              "name": "Rebuild",
              "anchor": "Editor.Rebuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) Rebuild()",
              "doc": "Rebuild resolves e.Doc against e.Resolver into e.Built. The scene's 3D build (Scene3D) is brought up to date the next time the 3D viewport draws or picks; a 3D gizmo drag in progress changes only the dragged object's transform, which moves its built node in place.\n",
              "file": "pkg/editor/state.go",
              "line": 1286
            },
            {
              "name": "RecallLastComposerPrompt",
              "anchor": "Editor.RecallLastComposerPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecallLastComposerPrompt() bool",
              "doc": "RecallLastComposerPrompt restores the most recently sent prompt into an empty composer (Spec: ↑ in empty composer).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2441
            },
            {
              "name": "RecentProjects",
              "anchor": "Editor.RecentProjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecentProjects() []RecentProjectEntry",
              "doc": "RecentProjects returns the editor's recent projects in most-recently-opened order,\nmarking each entry whose directory or game.yaml is currently missing on disk.\n",
              "file": "pkg/editor/recent_projects.go",
              "line": 268
            },
            {
              "name": "ReconnectAgent",
              "anchor": "Editor.ReconnectAgent",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReconnectAgent()",
              "doc": "ReconnectAgent restarts the reconnect sequence from try 1 of 5 (used by the Disconnected chip's Reconnect button).\n",
              "file": "pkg/editor/agent.go",
              "line": 1292
            },
            {
              "name": "RecordAgentFileEdit",
              "anchor": "Editor.RecordAgentFileEdit",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordAgentFileEdit(file string, yamlData []byte, why string) error",
              "doc": "RecordAgentFileEdit validates and applies raw YAML content to file (game.yaml, data table, clip,\nprefab, or scene) in memory inside the currently working agent turn without writing to disk.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 1140
            },
            {
              "name": "RecordAgentRequest",
              "anchor": "Editor.RecordAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordAgentRequest(count int)",
              "doc": "RecordAgentRequest increments this week's local agent request counter.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1285
            },
            {
              "name": "RecordAgentReviewOutcome",
              "anchor": "Editor.RecordAgentReviewOutcome",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordAgentReviewOutcome(kept bool, count int)",
              "doc": "RecordAgentReviewOutcome records whether reviewed agent changes were kept or reverted.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1307
            },
            {
              "name": "RecordAgentStep",
              "anchor": "Editor.RecordAgentStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordAgentStep(threadID, requestID string, step AgentThreadStep) error",
              "doc": "RecordAgentStep appends or updates a step on requestID in threadID, merges its Objects/Files\nonto the request for Inspector attribution, and persists the thread.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1221
            },
            {
              "name": "RecordAgentToolCall",
              "anchor": "Editor.RecordAgentToolCall",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordAgentToolCall(rec AgentToolCallRecord)",
              "doc": "RecordAgentToolCall records one MCP tool call into the Agent panel, tracking consecutive failures\nof the same tool and pausing the request automatically after AgentStuckFailureThreshold (3)\nconsecutive failures.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 516
            },
            {
              "name": "RecordAgentTurn",
              "anchor": "Editor.RecordAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordAgentTurn(opts AgentTurnOptions, fn func() error) error",
              "doc": "RecordAgentTurn executes fn as a single undoable agent turn on History, recording the agent's\nrequest title, change/kept counts, and any extra touched project files so the turn appears as\none entry on the History timeline and can be undone or restored atomically.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 333
            },
            {
              "name": "RecordAgentTurnStep",
              "anchor": "Editor.RecordAgentTurnStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordAgentTurnStep(label string)",
              "doc": "RecordAgentTurnStep appends a short progress step to the active agent turn (shown in the Agent panel).\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 563
            },
            {
              "name": "RecordAgentTurnSummary",
              "anchor": "Editor.RecordAgentTurnSummary",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordAgentTurnSummary(turnID, summary string) *AgentMismatchReport",
              "doc": "RecordAgentTurnSummary sets the summary on turnID (or latest turn) and runs the editor's automatic\nsummary-vs-diff mismatch check against the turn's actual review.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1790
            },
            {
              "name": "RecordBlockedAgentStep",
              "anchor": "Editor.RecordBlockedAgentStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordBlockedAgentStep(tool, text string, eval PermissionEvaluation) string",
              "doc": "RecordBlockedAgentStep records a step stopped by a Deny permission rule in the live Agent panel thread,\nkeeping its RuleIndex so clicking it opens Settings › Permissions at the exact matching rule.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 499
            },
            {
              "name": "RecordBlockedPermission",
              "anchor": "Editor.RecordBlockedPermission",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordBlockedPermission(eval PermissionEvaluation, summary string) BlockedPermissionStep",
              "doc": "RecordBlockedPermission records a step blocked by a Deny rule so the UI can show it and link directly to its rule in Settings › Permissions.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1590
            },
            {
              "name": "RecordCheckpointFile",
              "anchor": "Editor.RecordCheckpointFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordCheckpointFile(relPath string) error",
              "doc": "RecordCheckpointFile snapshots the pre-turn bytes of relPath into the active checkpoint before\nthe turn first modifies relPath. Repeated calls for the same path in the same turn are no-ops,\npreserving the original pre-turn bytes. Binary files are stored verbatim.\nRefuses paths outside the project root, symlinks, .nsgo/, .git/, and You-only files.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 707
            },
            {
              "name": "RecordExternalAgentToolCall",
              "anchor": "Editor.RecordExternalAgentToolCall",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordExternalAgentToolCall(clientName, toolName, summary string, isErr bool)",
              "doc": "RecordExternalAgentToolCall records a tool call executed by a terminal-started MCP session so its work appears as an agent turn in the panel.\n",
              "file": "pkg/editor/agent.go",
              "line": 1798
            },
            {
              "name": "RecordPlayAgentStep",
              "anchor": "Editor.RecordPlayAgentStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordPlayAgentStep(text, status string)",
              "doc": "RecordPlayAgentStep appends a custom progress step to the Play mode Agent tab.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 1188
            },
            {
              "name": "RecordPlaytestRun",
              "anchor": "Editor.RecordPlaytestRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordPlaytestRun(runs int)",
              "doc": "RecordPlaytestRun increments the local headless playtest run counter shown in Settings › Usage and privacy.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1326
            },
            {
              "name": "RecordRecentProject",
              "anchor": "Editor.RecordRecentProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordRecentProject(name, dir string) error",
              "doc": "RecordRecentProject adds or moves the project at dir to the top of the recent projects list\nwith the current UTC timestamp, and persists the list to Editor.RecentProjectsPath when set.\n",
              "file": "pkg/editor/recent_projects.go",
              "line": 296
            },
            {
              "name": "RecordReviewOutcome",
              "anchor": "Editor.RecordReviewOutcome",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordReviewOutcome(rec ReviewOutcomeRecord)",
              "doc": "RecordReviewOutcome records a kept or reverted review outcome for rule suggestion detection.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1023
            },
            {
              "name": "RecordReviewOutcomes",
              "anchor": "Editor.RecordReviewOutcomes",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordReviewOutcomes(recs ...ReviewOutcomeRecord)",
              "doc": "RecordReviewOutcomes appends multiple review outcomes at once.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1033
            },
            {
              "name": "RecordSketchReviewEdits",
              "anchor": "Editor.RecordSketchReviewEdits",
              "recv": "*Editor",
              "decl": "func (e *Editor) RecordSketchReviewEdits(label string, addedIDs, changedIDs, removedIDs []string)",
              "doc": "RecordSketchReviewEdits records scene edits performed by the agent after the user approved a sketch,\nopening the review card with the Sketch overlay toggle enabled so the person can Keep or Revert.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1550
            },
            {
              "name": "Redo",
              "anchor": "Editor.Redo",
              "recv": "*Editor",
              "decl": "func (e *Editor) Redo() bool",
              "doc": "Redo re-applies the last undone edit in History (or the last undone manual edit in an open cutscene review; no-op while playing). A step that fails to re-apply stays undone, and the status bar says why.\n",
              "file": "pkg/editor/state.go",
              "line": 1949
            },
            {
              "name": "RedoAgentRewind",
              "anchor": "Editor.RedoAgentRewind",
              "recv": "*Editor",
              "decl": "func (e *Editor) RedoAgentRewind() error",
              "doc": "RedoAgentRewind restores the files, conversation turns, session ID, and composer draft from the last RewindAgentTurn.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 785
            },
            {
              "name": "RedraftCommitMessage",
              "anchor": "Editor.RedraftCommitMessage",
              "recv": "*Editor",
              "decl": "func (e *Editor) RedraftCommitMessage() error",
              "doc": "RedraftCommitMessage regenerates the commit summary and description from the currently included files using Editor.CommitMessageDrafter or DefaultCommitDraft.\n",
              "file": "pkg/editor/changes.go",
              "line": 1963
            },
            {
              "name": "RedraftReleaseNotes",
              "anchor": "Editor.RedraftReleaseNotes",
              "recv": "*Editor",
              "decl": "func (e *Editor) RedraftReleaseNotes() (ReleaseNotesDraft, error)",
              "doc": "RedraftReleaseNotes regenerates the release notes from git commits and kept reviews,\noverwriting the release notes Markdown file on disk.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 520
            },
            {
              "name": "ReduceMotion",
              "anchor": "Editor.ReduceMotion",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReduceMotion() bool",
              "doc": "ReduceMotion reports whether reduced motion is active for viewport overlays and animations:\nit honors an explicit SetReduceMotion override when set, otherwise follows the attached\nUI scope's Environment.ReduceMotion().\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 694
            },
            {
              "name": "References",
              "anchor": "Editor.References",
              "recv": "*Editor",
              "decl": "func (e *Editor) References() []refs.Ref",
              "doc": "References returns a copy of the Find References results for ReferencesTarget.\n",
              "file": "pkg/editor/search.go",
              "line": 327
            },
            {
              "name": "ReferencesScreen",
              "anchor": "Editor.ReferencesScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReferencesScreen() *ReferencesScreenState",
              "doc": "ReferencesScreen returns a snapshot of the active References screen state, or nil when closed.\n",
              "file": "pkg/editor/usages.go",
              "line": 383
            },
            {
              "name": "ReferencesTarget",
              "anchor": "Editor.ReferencesTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReferencesTarget() string",
              "doc": "ReferencesTarget returns the slash-separated project path currently inspected\nin the Find References view, or empty when none is active.\n",
              "file": "pkg/editor/search.go",
              "line": 322
            },
            {
              "name": "RefineGeneratedAsset",
              "anchor": "Editor.RefineGeneratedAsset",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefineGeneratedAsset(ctx context.Context, requestID, words string) (*AssetGenerationRequest, error)",
              "doc": "RefineGeneratedAsset re-invokes the generator with additional refinement words while keeping the exact same references. Nothing is written to disk.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 1526
            },
            {
              "name": "RefreshAgentAPIKeyStatus",
              "anchor": "Editor.RefreshAgentAPIKeyStatus",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshAgentAPIKeyStatus() bool",
              "doc": "RefreshAgentAPIKeyStatus queries NSGo's core.Secrets / system keychain for the built-in API key and caches whether one is present.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 736
            },
            {
              "name": "RefreshAssetDrawer",
              "anchor": "Editor.RefreshAssetDrawer",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshAssetDrawer()",
              "doc": "RefreshAssetDrawer invalidates the cached asset drawer scan and forces a fresh rescan from disk and refs.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 588
            },
            {
              "name": "RefreshBuildPreflight",
              "anchor": "Editor.RefreshBuildPreflight",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshBuildPreflight() error",
              "doc": "RefreshBuildPreflight runs the BEFORE EVERY BUILD checks (nsgo check, smoke playtest summary,\nbudgets from game.yaml) and re-evaluates readiness for every preset.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1197
            },
            {
              "name": "RefreshChanges",
              "anchor": "Editor.RefreshChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshChanges() error",
              "doc": "RefreshChanges reloads Git branch, upstream ahead/behind counts, changed files, diffs, and scene comparisons for the active Changes session.\n",
              "file": "pkg/editor/changes.go",
              "line": 644
            },
            {
              "name": "RefreshChangesCount",
              "anchor": "Editor.RefreshChangesCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshChangesCount()",
              "doc": "RefreshChangesCount updates the lightweight working-tree changed-file count displayed in the status bar.\n",
              "file": "pkg/editor/changes.go",
              "line": 533
            },
            {
              "name": "RefreshConnectedDevices",
              "anchor": "Editor.RefreshConnectedDevices",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshConnectedDevices() ([]ConnectedDevice, error)",
              "doc": "RefreshConnectedDevices queries connected USB devices via Editor.DeviceDiscoverer (or `adb devices -l` on desktop)\nand updates the RUN ON DEVICE Android USB state.\n",
              "file": "pkg/editor/build_device.go",
              "line": 1323
            },
            {
              "name": "RefreshGeneratedAssetLicenses",
              "anchor": "Editor.RefreshGeneratedAssetLicenses",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshGeneratedAssetLicenses() []credits.GeneratedAssetLicense",
              "doc": "RefreshGeneratedAssetLicenses scans every *.source.yaml in the open project and updates the LICENSES · CHECKED AT EXPORT list.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2219
            },
            {
              "name": "RefreshHUDScreens",
              "anchor": "Editor.RefreshHUDScreens",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshHUDScreens() error",
              "doc": "RefreshHUDScreens rescans *.screen.yaml files and locales/*.yaml string tables from the open project directory.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 401
            },
            {
              "name": "RefreshRemote",
              "anchor": "Editor.RefreshRemote",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshRemote() error",
              "doc": "RefreshRemote queries the connected running game for its latest scenes, layers, live entities, selected entity components, loop state, and tunables.\n",
              "file": "pkg/editor/remote.go",
              "line": 1079
            },
            {
              "name": "RefreshSearch",
              "anchor": "Editor.RefreshSearch",
              "recv": "*Editor",
              "decl": "func (e *Editor) RefreshSearch() error",
              "doc": "RefreshSearch rescans the open project from disk, refreshes the file browser\nlisting and updates any active search or Find References results. It returns\nErrNoProject when no project is open.\n",
              "file": "pkg/editor/search.go",
              "line": 168
            },
            {
              "name": "RegenerateAsset",
              "anchor": "Editor.RegenerateAsset",
              "recv": "*Editor",
              "decl": "func (e *Editor) RegenerateAsset(ctx context.Context, requestID string) (*AssetGenerationRequest, error)",
              "doc": "RegenerateAsset re-invokes the generator for N fresh candidates with the same prompt and references. Nothing is written to disk.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 1557
            },
            {
              "name": "RegisterCommand",
              "anchor": "Editor.RegisterCommand",
              "recv": "*Editor",
              "decl": "func (e *Editor) RegisterCommand(cmd EditorCommand) error",
              "doc": "RegisterCommand adds a custom command to the editor's unified command registry.\nIt refuses an empty or invalid ID, missing Label or Run, a duplicate ID, an invalid\nshortcut, or any shortcut that clashes with an existing built-in, custom, or plugin shortcut.\n",
              "file": "pkg/editor/commands.go",
              "line": 2630
            },
            {
              "name": "RegisterDataTableRowType",
              "anchor": "Editor.RegisterDataTableRowType",
              "recv": "*Editor",
              "decl": "func (e *Editor) RegisterDataTableRowType(pattern string, rt *datatable.RowType) error",
              "doc": "RegisterDataTableRowType registers rt for datatable YAML files matching pattern.\nIf a matching table is already open, it is validated against rt before the registration\ntakes effect.\n",
              "file": "pkg/editor/datatable.go",
              "line": 86
            },
            {
              "name": "RegisterPlugin",
              "anchor": "Editor.RegisterPlugin",
              "recv": "*Editor",
              "decl": "func (e *Editor) RegisterPlugin(p Plugin) error",
              "doc": "RegisterPlugin makes p available to the editor. It is on while the open project names it under editor.plugins in game.yaml, or after SetPluginEnabled turns it on. RegisterPlugin refuses a name that is empty, has spaces or control characters or is already registered, a panel, inspector, tool or command without its ID, title, label, component or function, a panel or tool ID or component name with control characters, a command ID with spaces or control characters, a panel with an unknown dock, two panels, inspectors, tools or commands of p with the same ID or component, and any command whose shortcut is invalid or clashes with an already-registered shortcut. The editor keeps a copy of p's lists.\n",
              "file": "pkg/editor/plugin.go",
              "line": 173
            },
            {
              "name": "RegisterViewportOverlay",
              "anchor": "Editor.RegisterViewportOverlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) RegisterViewportOverlay(o ViewportOverlay) error",
              "doc": "RegisterViewportOverlay registers a custom viewport overlay directly on the editor.\nIt refuses an empty or invalid ID, missing name or Draw function, or an ID that clashes with\na built-in or previously registered overlay.\n",
              "file": "pkg/editor/overlays.go",
              "line": 232
            },
            {
              "name": "RegisteredMCPTools",
              "anchor": "Editor.RegisteredMCPTools",
              "recv": "*Editor",
              "decl": "func (e *Editor) RegisteredMCPTools() []AgentToolInfo",
              "doc": "RegisteredMCPTools returns the tools registered on the editor's MCP server (or DefaultAgentMCPTools before a server attaches), sorted by name.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 909
            },
            {
              "name": "RegisteredPlugins",
              "anchor": "Editor.RegisteredPlugins",
              "recv": "*Editor",
              "decl": "func (e *Editor) RegisteredPlugins() []string",
              "doc": "RegisteredPlugins returns the names of the registered plugins in the order they were registered.\n",
              "file": "pkg/editor/plugin.go",
              "line": 396
            },
            {
              "name": "ReimportAsset",
              "anchor": "Editor.ReimportAsset",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReimportAsset(relPath string) error",
              "doc": "ReimportAsset runs `go tool game assets` for relPath (or Editor.SelectedFile when relPath is empty) off the UI goroutine, streaming output into the Output panel, and reloads changed atlases and textures once the build succeeds.\n",
              "file": "pkg/editor/asset_build.go",
              "line": 168
            },
            {
              "name": "RejectHeldPermissionLoosening",
              "anchor": "Editor.RejectHeldPermissionLoosening",
              "recv": "*Editor",
              "decl": "func (e *Editor) RejectHeldPermissionLoosening(id string) error",
              "doc": "RejectHeldPermissionLoosening rejects an externally loosened rule or profile change, keeping the stricter rule active\nand writing the stricter effective permissions back to permissions.yaml so disk matches.\n",
              "file": "pkg/editor/you_only.go",
              "line": 802
            },
            {
              "name": "ReleaseAllStatesActions",
              "anchor": "Editor.ReleaseAllStatesActions",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleaseAllStatesActions()",
              "doc": "ReleaseAllStatesActions releases every held movement/action input so the character returns to idle.\n",
              "file": "pkg/editor/states.go",
              "line": 705
            },
            {
              "name": "ReleaseBuildRunning",
              "anchor": "Editor.ReleaseBuildRunning",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleaseBuildRunning() bool",
              "doc": "ReleaseBuildRunning reports whether a Build and Release screen run is active.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1594
            },
            {
              "name": "ReleaseBuildStopped",
              "anchor": "Editor.ReleaseBuildStopped",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleaseBuildStopped() bool",
              "doc": "ReleaseBuildStopped reports whether the last release build was stopped mid-run and can be resumed.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1604
            },
            {
              "name": "ReleaseDryRun",
              "anchor": "Editor.ReleaseDryRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleaseDryRun() bool",
              "doc": "ReleaseDryRun reports whether the Build and Release screen is configured for dry-run builds.\n",
              "file": "pkg/editor/build_release.go",
              "line": 849
            },
            {
              "name": "ReleaseDryRunOutput",
              "anchor": "Editor.ReleaseDryRunOutput",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleaseDryRunOutput() string",
              "doc": "ReleaseDryRunOutput returns the exact `releaseplan.WriteDryRun` output for the latest release build.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1625
            },
            {
              "name": "ReleaseNotesAbsPath",
              "anchor": "Editor.ReleaseNotesAbsPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleaseNotesAbsPath() (string, error)",
              "doc": "ReleaseNotesAbsPath resolves and validates the absolute path of the release notes Markdown file inside the open project.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 360
            },
            {
              "name": "ReleaseNotesFile",
              "anchor": "Editor.ReleaseNotesFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleaseNotesFile() string",
              "doc": "ReleaseNotesFile returns the project-relative Markdown file path used for RELEASE NOTES\nand read by `game release -release-notes`. It uses ExportReleaseNotes() when set, otherwise DefaultReleaseNotesFile.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 344
            },
            {
              "name": "ReleasePlanCommandLine",
              "anchor": "Editor.ReleasePlanCommandLine",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleasePlanCommandLine() string",
              "doc": "ReleasePlanCommandLine returns the combined POSIX-quoted `go ... tool nsgo build ...` command line\nmatching `game release -dry-run` for the included presets of the latest build.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1615
            },
            {
              "name": "ReleaseStatesAction",
              "anchor": "Editor.ReleaseStatesAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleaseStatesAction(action string)",
              "doc": "ReleaseStatesAction releases a held input action in Drive with keys mode.\n",
              "file": "pkg/editor/states.go",
              "line": 685
            },
            {
              "name": "ReleaseUploadRunning",
              "anchor": "Editor.ReleaseUploadRunning",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReleaseUploadRunning() bool",
              "doc": "ReleaseUploadRunning reports whether a user-confirmed store upload batch is currently running.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 1091
            },
            {
              "name": "ReloadAssets",
              "anchor": "Editor.ReloadAssets",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReloadAssets() (ReloadAssetsResult, error)",
              "doc": "ReloadAssets scans the open project's built atlas and texture outputs declared in game.yaml, reloads any that changed on disk into Editor.Resolver (updating AtlasMap entries or existing *sprite.Atlas values in place and invoking AssetReloader when implemented), rebuilds the open scene so the viewport reflects the new frames immediately, refreshes the asset browser and tile palette, and re-runs Problems check.\n",
              "file": "pkg/editor/asset_build.go",
              "line": 402
            },
            {
              "name": "ReloadBrief",
              "anchor": "Editor.ReloadBrief",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReloadBrief() error",
              "doc": "ReloadBrief reloads brief.yaml from disk for the open project.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 691
            },
            {
              "name": "ReloadFromDisk",
              "anchor": "Editor.ReloadFromDisk",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReloadFromDisk(kind DiskFileKind) error",
              "doc": "ReloadFromDisk reloads the open file identified by kind from disk, recording the author's previous edits in History as \"Unsaved edits before reload\" so Undo restores them.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1549
            },
            {
              "name": "ReloadProjectRules",
              "anchor": "Editor.ReloadProjectRules",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReloadProjectRules() error",
              "doc": "ReloadProjectRules reloads AGENTS.md from disk for the open project.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 988
            },
            {
              "name": "RemoteConnected",
              "anchor": "Editor.RemoteConnected",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteConnected() bool",
              "doc": "RemoteConnected reports whether the editor currently has an active MCP client session to a running game.\n",
              "file": "pkg/editor/remote.go",
              "line": 354
            },
            {
              "name": "RemoteConnecting",
              "anchor": "Editor.RemoteConnecting",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteConnecting() bool",
              "doc": "RemoteConnecting reports whether the editor is currently waiting to establish a remote MCP connection to a running game.\n",
              "file": "pkg/editor/remote.go",
              "line": 364
            },
            {
              "name": "RemoteConsoleHistory",
              "anchor": "Editor.RemoteConsoleHistory",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteConsoleHistory() []RemoteConsoleEntry",
              "doc": "RemoteConsoleHistory returns the history of commands run through RemoteExecConsole.\n",
              "file": "pkg/editor/remote.go",
              "line": 454
            },
            {
              "name": "RemoteExecConsole",
              "anchor": "Editor.RemoteExecConsole",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteExecConsole(command string) (gamemcp.ConsoleExecResult, error)",
              "doc": "RemoteExecConsole executes a command line on the running game's debug console via game_console_exec, appends the result to RemoteConsoleHistory, and refreshes remote state.\n",
              "file": "pkg/editor/remote.go",
              "line": 2038
            },
            {
              "name": "RemoteLiveChanges",
              "anchor": "Editor.RemoteLiveChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteLiveChanges() []RemoteLiveChange",
              "doc": "RemoteLiveChanges returns a copy of all pending live component edits made through the remote inspector.\n",
              "file": "pkg/editor/remote.go",
              "line": 435
            },
            {
              "name": "RemotePause",
              "anchor": "Editor.RemotePause",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemotePause() error",
              "doc": "RemotePause pauses the running game's fixed-step loop via game_loop_pause.\n",
              "file": "pkg/editor/remote.go",
              "line": 1904
            },
            {
              "name": "RemoteResume",
              "anchor": "Editor.RemoteResume",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteResume() error",
              "doc": "RemoteResume resumes the running game's fixed-step loop via game_loop_resume.\n",
              "file": "pkg/editor/remote.go",
              "line": 1928
            },
            {
              "name": "RemoteSetTimeScale",
              "anchor": "Editor.RemoteSetTimeScale",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteSetTimeScale(scale float64) error",
              "doc": "RemoteSetTimeScale sets the running game's simulation time scale via game_loop_time_scale.\n",
              "file": "pkg/editor/remote.go",
              "line": 1984
            },
            {
              "name": "RemoteSetTunable",
              "anchor": "Editor.RemoteSetTunable",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteSetTunable(name string, value any, clamp bool) (gamemcp.TunableSetResult, error)",
              "doc": "RemoteSetTunable updates a registered debug console tunable on the running game via game_tunable_set.\n",
              "file": "pkg/editor/remote.go",
              "line": 2007
            },
            {
              "name": "RemoteSnapshot",
              "anchor": "Editor.RemoteSnapshot",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteSnapshot() RemoteSnapshot",
              "doc": "RemoteSnapshot returns a deep-enough copy of the latest remote game snapshot for UI rendering and inspection.\n",
              "file": "pkg/editor/remote.go",
              "line": 374
            },
            {
              "name": "RemoteStep",
              "anchor": "Editor.RemoteStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoteStep(count int) (gamemcp.LoopStepResult, error)",
              "doc": "RemoteStep synchronously advances the running game by count fixed updates via game_loop_step, then refreshes the remote tree and selected entity inspection.\n",
              "file": "pkg/editor/remote.go",
              "line": 1951
            },
            {
              "name": "RemoveAgentMCPServer",
              "anchor": "Editor.RemoveAgentMCPServer",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveAgentMCPServer(name string) error",
              "doc": "RemoveAgentMCPServer deletes a user-added external MCP server, persists editor.yaml,\nand removes it from the open project's agent MCP configuration. Refused when invoked by an agent.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1173
            },
            {
              "name": "RemoveAgentReferenceImage",
              "anchor": "Editor.RemoveAgentReferenceImage",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveAgentReferenceImage(id string) bool",
              "doc": "RemoveAgentReferenceImage removes an attached one-shot image chip from the current composer draft.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 767
            },
            {
              "name": "RemoveAudioBusEffect",
              "anchor": "Editor.RemoveAudioBusEffect",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveAudioBusEffect(bus string, index int) error",
              "doc": "RemoveAudioBusEffect deletes the effect at index from bus's effect chain through EditProject.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 559
            },
            {
              "name": "RemoveAutomationRule",
              "anchor": "Editor.RemoveAutomationRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveAutomationRule(id string) error",
              "doc": "RemoveAutomationRule removes the automation with id and saves automations.yaml.\nRefuses agent actors (ErrAutomationYouOnly).\n",
              "file": "pkg/editor/automations.go",
              "line": 429
            },
            {
              "name": "RemoveBriefGenre",
              "anchor": "Editor.RemoveBriefGenre",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveBriefGenre(label string) error",
              "doc": "RemoveBriefGenre removes a genre label from brief.yaml as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 553
            },
            {
              "name": "RemoveBriefPlatform",
              "anchor": "Editor.RemoveBriefPlatform",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveBriefPlatform(platform string) error",
              "doc": "RemoveBriefPlatform removes a platform from brief.yaml as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 590
            },
            {
              "name": "RemoveBriefPlaytestTarget",
              "anchor": "Editor.RemoveBriefPlaytestTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveBriefPlaytestTarget(index int) error",
              "doc": "RemoveBriefPlaytestTarget removes the playtest target at index from brief.yaml as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 641
            },
            {
              "name": "RemoveClipTrack",
              "anchor": "Editor.RemoveClipTrack",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveClipTrack(track int) error",
              "doc": "RemoveClipTrack removes track track and all its keys from the open clip as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 733
            },
            {
              "name": "RemoveComponent",
              "anchor": "Editor.RemoveComponent",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveComponent(objectID, component string) error",
              "doc": "RemoveComponent removes the component named component from objectID through History, together with every connection of the scene that needs it: one from objectID whose event the component declares, or one to objectID whose handler it declares, named either bare (\"pressed\") or with the component (\"button.pressed\"). A bare name is attributed to the component through its registered type, so without a component registry, or for a component the registry does not know, only connections that name the component (\"button.pressed\") are removed. Undo puts the component and those connections back where they were. Removing a component the object does not have is refused.\n",
              "file": "pkg/editor/objectedit.go",
              "line": 150
            },
            {
              "name": "RemoveComposerChip",
              "anchor": "Editor.RemoveComposerChip",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveComposerChip(id string) bool",
              "doc": "RemoveComposerChip removes an attached chip by ID. Returns true if a chip was removed.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1428
            },
            {
              "name": "RemoveConnection",
              "anchor": "Editor.RemoveConnection",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveConnection(index int) error",
              "doc": "RemoveConnection removes Doc.Connections[index] as an undoable command. Undo puts it back at its original index.\n",
              "file": "pkg/editor/connections.go",
              "line": 195
            },
            {
              "name": "RemoveExportPreset",
              "anchor": "Editor.RemoveExportPreset",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveExportPreset(platform string) error",
              "doc": "RemoveExportPreset deletes the export preset for platform through EditProject as one undoable step. Removing the last preset when export.output is empty removes the empty export section.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 408
            },
            {
              "name": "RemoveFromSelection",
              "anchor": "Editor.RemoveFromSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveFromSelection(ids ...string) bool",
              "doc": "RemoveFromSelection removes ids from the current selection set. If SelectedID is removed,\nthe last remaining selected object becomes primary (or selection clears when empty).\n",
              "file": "pkg/editor/selection.go",
              "line": 126
            },
            {
              "name": "RemoveInputBinding",
              "anchor": "Editor.RemoveInputBinding",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveInputBinding(action string, index int) error",
              "doc": "RemoveInputBinding removes binding index from action through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 456
            },
            {
              "name": "RemoveLastComposerChip",
              "anchor": "Editor.RemoveLastComposerChip",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveLastComposerChip() bool",
              "doc": "RemoveLastComposerChip removes the rightmost attached chip (triggered by Backspace in an empty composer).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1446
            },
            {
              "name": "RemoveLayer",
              "anchor": "Editor.RemoveLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveLayer(name string) error",
              "doc": "RemoveLayer removes the layer name, with its objects and its tilemap, from the open scene as an undoable command, together with the scene's connections from or to its objects, their descendants or the objects of scenes they instance; Undo puts the layer back where it was, with them. When the layer is the active one, the layer that takes its place in the file, or the one before it, becomes active.\n",
              "file": "pkg/editor/layers.go",
              "line": 267
            },
            {
              "name": "RemoveLayerTilemap",
              "anchor": "Editor.RemoveLayerTilemap",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveLayerTilemap(layerName string) error",
              "doc": "RemoveLayerTilemap removes the tilemap attached to layerName (or ActiveLayer when empty) as an undoable command. If the layer referenced a top-level tilemap via Ref, only the layer's reference is removed and the top-level entry in SceneDoc.Tilemaps is kept.\n",
              "file": "pkg/editor/tilemap_setup.go",
              "line": 257
            },
            {
              "name": "RemoveLocalizationKey",
              "anchor": "Editor.RemoveLocalizationKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveLocalizationKey(key string) error",
              "doc": "RemoveLocalizationKey removes key from every locale in the Localization panel as an undoable command.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 481
            },
            {
              "name": "RemoveLocalizationLocale",
              "anchor": "Editor.RemoveLocalizationLocale",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveLocalizationLocale(locale string) error",
              "doc": "RemoveLocalizationLocale removes locale and all its translations from the Localization panel as an undoable command.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 440
            },
            {
              "name": "RemoveNavRegionVertex",
              "anchor": "Editor.RemoveNavRegionVertex",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveNavRegionVertex(objectID string, index int) error",
              "doc": "RemoveNavRegionVertex removes the vertex at index from objectID's navregion2d polygon through History.\nRemoving below 3 vertices is refused.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 331
            },
            {
              "name": "RemoveOccluderVertex",
              "anchor": "Editor.RemoveOccluderVertex",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveOccluderVertex(objectID string, index int) error",
              "doc": "RemoveOccluderVertex removes the vertex at index from objectID's polygon occluder2d component through History.\nRemoving below 3 vertices is refused.\n",
              "file": "pkg/editor/lights2d_editor.go",
              "line": 258
            },
            {
              "name": "RemovePack",
              "anchor": "Editor.RemovePack",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemovePack(name string) error",
              "doc": "RemovePack removes the installed pack called name from the open project, as library.PlanRemove describes, and saves the project. It empties the undo history and refuses as InstallPack does.\n",
              "file": "pkg/editor/library.go",
              "line": 39
            },
            {
              "name": "RemoveParticleBurst",
              "anchor": "Editor.RemoveParticleBurst",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveParticleBurst(index int) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 926
            },
            {
              "name": "RemoveParticleColorStop",
              "anchor": "Editor.RemoveParticleColorStop",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveParticleColorStop(kind ParticleCurveKind, index int) error",
              "doc": "RemoveParticleColorStop removes the color stop at index from the named color curve.\n",
              "file": "pkg/editor/particles.go",
              "line": 1418
            },
            {
              "name": "RemoveParticleFloatStop",
              "anchor": "Editor.RemoveParticleFloatStop",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveParticleFloatStop(kind ParticleCurveKind, index int) error",
              "doc": "RemoveParticleFloatStop removes the control point at index from the named float curve.\n",
              "file": "pkg/editor/particles.go",
              "line": 1329
            },
            {
              "name": "RemoveParticleSubEmitter",
              "anchor": "Editor.RemoveParticleSubEmitter",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveParticleSubEmitter(index int) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1112
            },
            {
              "name": "RemovePermissionRule",
              "anchor": "Editor.RemovePermissionRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemovePermissionRule(index int) error",
              "doc": "RemovePermissionRule removes rule at index and persists permissions.yaml.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1428
            },
            {
              "name": "RemovePlanStep",
              "anchor": "Editor.RemovePlanStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemovePlanStep(stepNumber int) error",
              "doc": "RemovePlanStep marks stepNumber as removed in Draft phase, hiding its ghosts and planned nodes\nand striking out any files exclusive to that step.\n",
              "file": "pkg/editor/plan.go",
              "line": 1370
            },
            {
              "name": "RemovePolygonVertex",
              "anchor": "Editor.RemovePolygonVertex",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemovePolygonVertex(objectID, component, field string, index int) error",
              "doc": "RemovePolygonVertex removes the vertex at index from a FieldPolygon component field as one undoable SetComponentField step.\nRemoving a vertex that would leave fewer than 3 vertices is refused.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 821
            },
            {
              "name": "RemoveProjectAutoloadResource",
              "anchor": "Editor.RemoveProjectAutoloadResource",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveProjectAutoloadResource(index int) error",
              "doc": "RemoveProjectAutoloadResource removes the autoload resource entry at index through EditProject.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 470
            },
            {
              "name": "RemoveProjectAutoloadScene",
              "anchor": "Editor.RemoveProjectAutoloadScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveProjectAutoloadScene(index int) error",
              "doc": "RemoveProjectAutoloadScene removes the autoload scene entry at index through EditProject.\nWhen the removed scene was autoload.mainScene, mainScene is cleared.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 410
            },
            {
              "name": "RemoveProjectPhysicsLayer",
              "anchor": "Editor.RemoveProjectPhysicsLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveProjectPhysicsLayer(index int) error",
              "doc": "RemoveProjectPhysicsLayer removes the physics layer at index through EditProject.\n",
              "file": "pkg/editor/project_settings_physics.go",
              "line": 95
            },
            {
              "name": "RemoveQueuedAgentRequest",
              "anchor": "Editor.RemoveQueuedAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveQueuedAgentRequest(id string) bool",
              "doc": "RemoveQueuedAgentRequest removes one queued request by ID.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 421
            },
            {
              "name": "RemoveRecentProject",
              "anchor": "Editor.RemoveRecentProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveRecentProject(dir string) error",
              "doc": "RemoveRecentProject removes the project at dir from the recent projects list and persists the change when RecentProjectsPath is set.\n",
              "file": "pkg/editor/recent_projects.go",
              "line": 344
            },
            {
              "name": "RemoveReviewNote",
              "anchor": "Editor.RemoveReviewNote",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveReviewNote(changeID string) error",
              "doc": "RemoveReviewNote removes an unsent draft note from changeID. A note added and removed before\nSendReviewNotes never enters the pending batch and never reaches the agent.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 497
            },
            {
              "name": "RemoveRigAttachment",
              "anchor": "Editor.RemoveRigAttachment",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveRigAttachment(skin, slot string) error",
              "doc": "RemoveRigAttachment removes slot's attachment entry from skin as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1288
            },
            {
              "name": "RemoveSceneOverlay",
              "anchor": "Editor.RemoveSceneOverlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveSceneOverlay(id string)",
              "doc": "RemoveSceneOverlay removes all live scene overlay entries matching id.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 791
            },
            {
              "name": "RemoveStatesParam",
              "anchor": "Editor.RemoveStatesParam",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveStatesParam(name string) error",
              "doc": "RemoveStatesParam removes parameter name from the open state machine as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 543
            },
            {
              "name": "RemoveStatesState",
              "anchor": "Editor.RemoveStatesState",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveStatesState(name string) error",
              "doc": "RemoveStatesState removes a state (and transitions touching it) from the open state machine as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 474
            },
            {
              "name": "RemoveStatesTransition",
              "anchor": "Editor.RemoveStatesTransition",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveStatesTransition(index int) error",
              "doc": "RemoveStatesTransition deletes transition index from the open state machine as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 524
            },
            {
              "name": "RemoveTilesetTerrain",
              "anchor": "Editor.RemoveTilesetTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveTilesetTerrain(name string) error",
              "doc": "RemoveTilesetTerrain deletes terrain name and clears all tile mask assignments belonging to it as one undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 668
            },
            {
              "name": "RemoveTilesetTileAnimFrame",
              "anchor": "Editor.RemoveTilesetTileAnimFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveTilesetTileAnimFrame(tileID, frameIndex int) error",
              "doc": "RemoveTilesetTileAnimFrame deletes animation frame frameIndex from tileID as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1319
            },
            {
              "name": "RemoveTilesetTileShape",
              "anchor": "Editor.RemoveTilesetTileShape",
              "recv": "*Editor",
              "decl": "func (e *Editor) RemoveTilesetTileShape(tileID, shapeIndex int) error",
              "doc": "RemoveTilesetTileShape deletes collision shape shapeIndex from tileID as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1255
            },
            {
              "name": "RenameAudioBus",
              "anchor": "Editor.RenameAudioBus",
              "recv": "*Editor",
              "decl": "func (e *Editor) RenameAudioBus(oldName, newName string) error",
              "doc": "RenameAudioBus renames an existing audio bus through EditProject.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 410
            },
            {
              "name": "RenameInputAction",
              "anchor": "Editor.RenameInputAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) RenameInputAction(oldName, newName string) error",
              "doc": "RenameInputAction renames an existing action and updates every axis in input.axes whose negative or positive action references oldName, all in one undoable EditProject step.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 276
            },
            {
              "name": "RenameLayer",
              "anchor": "Editor.RenameLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) RenameLayer(oldName, newName string) error",
              "doc": "RenameLayer renames the layer oldName to newName as an undoable command, and with it the ActiveLayer and the layer's lock. It refuses an empty name and one another layer has, and, in a scene that inherits another, renaming a layer that extends one of the base's or to the name of one of them, since the name is what ties the layer to the base and its layer overrides. Other scene files that inherit the open one and name the layer are not rewritten.\n",
              "file": "pkg/editor/layers.go",
              "line": 402
            },
            {
              "name": "RenameRigBone",
              "anchor": "Editor.RenameRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) RenameRigBone(oldName, newName string) error",
              "doc": "RenameRigBone renames bone oldName to newName across parent references, slots, and animations as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 827
            },
            {
              "name": "RenderModelPreview",
              "anchor": "Editor.RenderModelPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RenderModelPreview(relPath string, width, height int) (*image.RGBA, error)",
              "doc": "RenderModelPreview renders relPath at width x height pixels with the current orbit camera, effective import scale, and active animation pose using NSGo's software GPU renderer.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 821
            },
            {
              "name": "RenderSketchViewportPNG",
              "anchor": "Editor.RenderSketchViewportPNG",
              "recv": "*Editor",
              "decl": "func (e *Editor) RenderSketchViewportPNG(scale float32) ([]byte, int, int, error)",
              "doc": "RenderSketchViewportPNG renders the 2D viewport with the numbered sketch marks overlaid\nas a PNG image at scale pixels per point (defaulting to 1 when scale <= 0).\n",
              "file": "pkg/editor/sketch.go",
              "line": 1146
            },
            {
              "name": "RenderStats3D",
              "anchor": "Editor.RenderStats3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) RenderStats3D() render3d.RenderStats",
              "doc": "RenderStats3D returns the latest render3d.RenderStats evaluated for the 3D\nviewport at the current Camera3D and canvas size.\n",
              "file": "pkg/editor/viewport3d_lod_occluder.go",
              "line": 258
            },
            {
              "name": "RenderViewportPNG",
              "anchor": "Editor.RenderViewportPNG",
              "recv": "*Editor",
              "decl": "func (e *Editor) RenderViewportPNG(scale float64) ([]byte, int, int, error)",
              "doc": "RenderViewportPNG renders the editor's current viewport (2D or 3D) into a PNG image at scale pixels per point,\nclamping non-finite scales and oversized pixel dimensions (max 1280 px on the longest edge),\nand returning the encoded PNG bytes and its pixel dimensions.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 398
            },
            {
              "name": "ReopenPlanQuestion",
              "anchor": "Editor.ReopenPlanQuestion",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReopenPlanQuestion(questionID string) error",
              "doc": "ReopenPlanQuestion expands an already-answered question so the person can change their pick.\n",
              "file": "pkg/editor/plan.go",
              "line": 1203
            },
            {
              "name": "ReorderDataTableReviewRecord",
              "anchor": "Editor.ReorderDataTableReviewRecord",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReorderDataTableReviewRecord(key string, toIndex int) error",
              "doc": "ReorderDataTableReviewRecord moves record key to 0-based position toIndex in the active file's row order.\nThe reorder joins the review as the person's edit (filtered by Yours and tagged `you` in the YAML)\nand marks the agent's checks out of date.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1742
            },
            {
              "name": "ReorderHUDNode",
              "anchor": "Editor.ReorderHUDNode",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReorderHUDNode(nodeID string, delta int) error",
              "doc": "ReorderHUDNode moves nodeID by delta (-1 for earlier, +1 for later) within its parent container in one undo step and saves the screen file.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1730
            },
            {
              "name": "ReorderObject",
              "anchor": "Editor.ReorderObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReorderObject(id string, index int) error",
              "doc": "ReorderObject moves the object id to index among its siblings (the children of its parent, or its layer's top-level objects), as one undoable command; an index below 0 or past the last sibling puts it last. Its transform does not change.\n",
              "file": "pkg/editor/hierarchy.go",
              "line": 275
            },
            {
              "name": "ReorderQueuedTask",
              "anchor": "Editor.ReorderQueuedTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReorderQueuedTask(id string, delta int) error",
              "doc": "ReorderQueuedTask moves queued task id earlier (delta < 0) or later (delta > 0) among queued tasks.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2488
            },
            {
              "name": "ReparentObject",
              "anchor": "Editor.ReparentObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReparentObject(id, parentID string, index int) error",
              "doc": "ReparentObject moves the object id, with its descendants, under the object parentID at index among its children, or to the top level of its own layer at index when parentID is empty, as one undoable command; an index below 0 or past the last sibling puts it last. A child belongs to its parent's layer, so moving under an object of another layer moves it to that layer. The object keeps its world transform: its local transform is recomputed under the new parent in 2D, its depth too when the object or an old or new ancestor sets a 3D field, and its whole 3D world transform instead when one of them sets a 3D rotation (see keepWorldTransform); Undo restores the fields exactly. It refuses to move an object under itself or one of its descendants, a move that would nest deeper than sceneformat.MaxObjectDepth, and a move whose new world transform could not be written as a local one or would shear a sprite.\n",
              "file": "pkg/editor/hierarchy.go",
              "line": 239
            },
            {
              "name": "ReparentRigBone",
              "anchor": "Editor.ReparentRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReparentRigBone(name, newParent string, keepWorld bool) error",
              "doc": "ReparentRigBone sets bone name's parent to newParent (empty for a root bone) as an undoable command.\nCycles and unknown parents are refused. When keepWorld is true, local X, Y, Rotation, ScaleX and ScaleY\nare recomputed so the bone keeps its bind-pose world transform under newParent.\n",
              "file": "pkg/editor/rig.go",
              "line": 871
            },
            {
              "name": "ReplaceMissingAsset",
              "anchor": "Editor.ReplaceMissingAsset",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReplaceMissingAsset(missingPath, srcFilePath string) error",
              "doc": "ReplaceMissingAsset replaces a missing asset path by copying srcFilePath to missingPath on disk,\nrefreshing refs and the asset drawer so the missing problem resolves immediately.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 2371
            },
            {
              "name": "ReplayTips",
              "anchor": "Editor.ReplayTips",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReplayTips() error",
              "doc": "ReplayTips clears the first-run review tip IDs from EditorSettings.SeenTips so each tip shows again\n(wired to Help › Replay tips and the first review's Replay tips button).\n",
              "file": "pkg/editor/first_run.go",
              "line": 501
            },
            {
              "name": "ReplayUpToFrame",
              "anchor": "Editor.ReplayUpToFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReplayUpToFrame(rec *replay.Recording, stopFrame int) error",
              "doc": "ReplayUpToFrame starts (or restarts) Play mode from the clean initial scene snapshot using rec as the input source,\nsteps deterministically to stopFrame, and pauses Play mode there.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 433
            },
            {
              "name": "ReplayUpToPanic",
              "anchor": "Editor.ReplayUpToPanic",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReplayUpToPanic() error",
              "doc": "ReplayUpToPanic replays the saved input recording for the latest panic in Play mode and stops and pauses\none frame before the panic frame (panicFrame - 1) so the panic is not triggered.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 380
            },
            {
              "name": "ReplyAgentTurn",
              "anchor": "Editor.ReplyAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReplyAgentTurn(turnID, reply, status string) error",
              "doc": "ReplyAgentTurn records an agent reply and/or status (\"pending\", \"running\", \"done\", \"stopped\") on turnID\n(defaulting to the latest turn when turnID is empty) so the Agent panel's thread updates live.\n",
              "file": "pkg/editor/agent.go",
              "line": 1725
            },
            {
              "name": "ReplyToSketchReading",
              "anchor": "Editor.ReplyToSketchReading",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReplyToSketchReading(message string) error",
              "doc": "ReplyToSketchReading answers an agent sketch reading in words. It forwards the message through\nEditor.OnReplySketchReading and releases the hold gate so the agent can apply the clarified edits.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1453
            },
            {
              "name": "Report",
              "anchor": "Editor.Report",
              "recv": "*Editor",
              "decl": "func (e *Editor) Report(err error)",
              "doc": "Report shows err in the status bar as the editor's own panels show an edit it refuses, so a plugin's control does not drop the error silently; a nil err does nothing.\n",
              "file": "pkg/editor/plugin.go",
              "line": 786
            },
            {
              "name": "ReportAgentModelError",
              "anchor": "Editor.ReportAgentModelError",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReportAgentModelError(turnID string, state AgentLostState)",
              "doc": "ReportAgentModelError attaches a model error card (such as Anthropic API 529 overloaded) to turnID.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1166
            },
            {
              "name": "ReportAgentStep",
              "anchor": "Editor.ReportAgentStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReportAgentStep(text string, objects []string, running bool) string",
              "doc": "ReportAgentStep records a step reported directly by the agent in its own words (via agent_report_step),\nalong with the scene object IDs it touches.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 449
            },
            {
              "name": "RequestCancelFirstRunBuild",
              "anchor": "Editor.RequestCancelFirstRunBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestCancelFirstRunBuild()",
              "doc": "RequestCancelFirstRunBuild pauses building and opens the \"Stop building?\" confirmation dialog\n(triggered by Cancel or Esc during Building).\n",
              "file": "pkg/editor/first_run.go",
              "line": 2182
            },
            {
              "name": "RequestCloseTab",
              "anchor": "Editor.RequestCloseTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestCloseTab(index int) error",
              "doc": "RequestCloseTab closes tab index immediately when clean; when the tab has unsaved edits, it prompts in EditorView to save, discard or cancel (leaving the shared project file untouched), or reports errUnsaved when no EditorView is mounted.\n",
              "file": "pkg/editor/tabs.go",
              "line": 778
            },
            {
              "name": "RequestCreateProject",
              "anchor": "Editor.RequestCreateProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestCreateProject(req CreateProjectRequest) error",
              "doc": "RequestCreateProject creates and opens the project described by req, asking first if there are unsaved edits.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 1050
            },
            {
              "name": "RequestOpenDemo",
              "anchor": "Editor.RequestOpenDemo",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestOpenDemo() error",
              "doc": "RequestOpenDemo opens the built-in Demo Room, asking first if there are unsaved edits.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 1039
            },
            {
              "name": "RequestOpenProject",
              "anchor": "Editor.RequestOpenProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestOpenProject(path string) error",
              "doc": "RequestOpenProject opens the project at path, replacing the current project cleanly.\nWhen the current session has unsaved edits, it opens the unsaved-edits confirmation prompt instead of replacing immediately.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 1028
            },
            {
              "name": "RequestOpenScene",
              "anchor": "Editor.RequestOpenScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestOpenScene(rel string) error",
              "doc": "RequestOpenScene opens rel in a tab. When no agent turn is pending, it opens immediately (matching\nexisting tab behavior). When an agent turn is pending, it asks to Keep, Revert, or Cancel first.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 2333
            },
            {
              "name": "RequestPlaytestSuggestion",
              "anchor": "Editor.RequestPlaytestSuggestion",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestPlaytestSuggestion(index int) (PlaytestPromptRequest, error)",
              "doc": "RequestPlaytestSuggestion sends suggestion index i from Agent's read as an agent request that comes back as a review.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 922
            },
            {
              "name": "RequestRenameObject",
              "anchor": "Editor.RequestRenameObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestRenameObject(id string) error",
              "doc": "RequestRenameObject selects object id and asks the Scene Tree panel to start inline renaming of its row.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 715
            },
            {
              "name": "RequestSelectTab",
              "anchor": "Editor.RequestSelectTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestSelectTab(index int) error",
              "doc": "RequestSelectTab switches to open scene tab index, prompting Keep / Revert / Cancel first when\nswitching away from the active tab while an agent turn is pending.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 2351
            },
            {
              "name": "RequestTaskPermission",
              "anchor": "Editor.RequestTaskPermission",
              "recv": "*Editor",
              "decl": "func (e *Editor) RequestTaskPermission(id, prompt, detail string) error",
              "doc": "RequestTaskPermission transitions task id to TaskNeedsYou with the given permission prompt.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1682
            },
            {
              "name": "ResetAllShortcuts",
              "anchor": "Editor.ResetAllShortcuts",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetAllShortcuts() error",
              "doc": "ResetAllShortcuts removes all custom shortcut overrides, restoring every command to its default.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 433
            },
            {
              "name": "ResetAssetImportField",
              "anchor": "Editor.ResetAssetImportField",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetAssetImportField(relPath, field string) error",
              "doc": "ResetAssetImportField resets one overridden field of relPath's sidecar back to its inherited game.yaml default, removing the sidecar file when no overrides or credit remain.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 1040
            },
            {
              "name": "ResetGridSize",
              "anchor": "Editor.ResetGridSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetGridSize()",
              "doc": "ResetGridSize clears any explicit GridSize override so the grid step defaults to the active layer's tilemap tile size (or 8 when it has none).\n",
              "file": "pkg/editor/snap.go",
              "line": 204
            },
            {
              "name": "ResetLayout",
              "anchor": "Editor.ResetLayout",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetLayout()",
              "doc": "ResetLayout restores the default dock panel arrangement, clears hidden panels, persists to LayoutPath when set, and notifies subscribers.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1303
            },
            {
              "name": "ResetModelPreviewCamera",
              "anchor": "Editor.ResetModelPreviewCamera",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetModelPreviewCamera(relPath string)",
              "doc": "ResetModelPreviewCamera frames the model preview orbit camera on relPath's bounds from the default angle.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 503
            },
            {
              "name": "ResetPermissionsToPreset",
              "anchor": "Editor.ResetPermissionsToPreset",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetPermissionsToPreset() error",
              "doc": "ResetPermissionsToPreset resets the current profile's rules back to PermissionPreset(currentProfile).\n",
              "file": "pkg/editor/permissions.go",
              "line": 1318
            },
            {
              "name": "ResetProfiler",
              "anchor": "Editor.ResetProfiler",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetProfiler(ctx context.Context) error",
              "doc": "ResetProfiler resets accumulated performance counters in the connected game via game_perf_reset (when connected) and clears the editor's recorded profiler timeline and zone table.\n",
              "file": "pkg/editor/profiler.go",
              "line": 871
            },
            {
              "name": "ResetProposedDeletion",
              "anchor": "Editor.ResetProposedDeletion",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetProposedDeletion(relPath string)",
              "doc": "ResetProposedDeletion returns a confirmed or kept proposed deletion back to DeletionPending.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 567
            },
            {
              "name": "ResetRigView",
              "anchor": "Editor.ResetRigView",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetRigView()",
              "doc": "ResetRigView centers the rig editor canvas on the rig origin at 2x zoom.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 144
            },
            {
              "name": "ResetShortcut",
              "anchor": "Editor.ResetShortcut",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetShortcut(cmdID string) error",
              "doc": "ResetShortcut restores cmdID to its default shortcut. If another command in the same scope\ncurrently holds cmdID's default shortcut, that command receives cmdID's previous shortcut so\nboth remain bound without conflict.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 411
            },
            {
              "name": "ResetView2D",
              "anchor": "Editor.ResetView2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetView2D() bool",
              "doc": "ResetView2D returns the 2D view to the scene camera's view, which it then follows as the camera is edited. It reports false when the view already follows the camera or the scene plays.\n",
              "file": "pkg/editor/view2d.go",
              "line": 119
            },
            {
              "name": "ResetView3D",
              "anchor": "Editor.ResetView3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResetView3D()",
              "doc": "ResetView3D puts the 3D viewport's camera back to DefaultOrbitCamera3D, looking at the world origin, keeping the projection. It ends a flight and cancels a gizmo or camera drag.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 189
            },
            {
              "name": "ResizeLayerTilemap",
              "anchor": "Editor.ResizeLayerTilemap",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResizeLayerTilemap(layerName string, left, right, top, bottom int) error",
              "doc": "ResizeLayerTilemap grows (positive) or shrinks (negative) layerName's inline tilemap (single or layered, direct or referenced by Ref) from its left, right, top and bottom edges as an undoable command.\n\nPainted cells keep their world positions: growing or shrinking from the left or top shifts cells inside the grid and adjusts OffsetX/OffsetY by -left*TileWidth and -top*TileHeight so every remaining painted tile stays at its exact world coordinates. Writing a non-zero offset on a version 1 or version 2 scene raises SceneDoc.Version to sceneformat.CurrentVersion (which Undo restores). It refuses non-positive resulting dimensions, grids exceeding the scene format's cell cap, layers without an inline tilemap, and inherited base-owned layers.\n",
              "file": "pkg/editor/tilemap_setup.go",
              "line": 507
            },
            {
              "name": "ResolveAgentModelRoute",
              "anchor": "Editor.ResolveAgentModelRoute",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResolveAgentModelRoute(task AgentTaskKind) AgentModelRoute",
              "doc": "ResolveAgentModelRoute resolves the configured WHO DOES WHAT route label for task into an execution route.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 294
            },
            {
              "name": "ResolveChipPayload",
              "anchor": "Editor.ResolveChipPayload",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResolveChipPayload(chip AgentContextChip) AgentChipPayload",
              "doc": "ResolveChipPayload computes the exact header, text, and/or image bytes for chip.\nBoth the hover preview card and AssembleAgentRequest call this exact function.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1642
            },
            {
              "name": "ResolveMergeConflict",
              "anchor": "Editor.ResolveMergeConflict",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResolveMergeConflict(id string, choice MergeChoice) error",
              "doc": "ResolveMergeConflict picks choice (MergeChoiceAgent, MergeChoiceMine, MergeChoiceTheirs, or MergeChoiceUnresolved) for conflict item id.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 425
            },
            {
              "name": "ResolveReviewConflict",
              "anchor": "Editor.ResolveReviewConflict",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResolveReviewConflict(changeID string, choice ReviewConflictChoice) error",
              "doc": "ResolveReviewConflict sets how a conflicting change merges (Mine, Agent's, Both, or Unresolved).\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 291
            },
            {
              "name": "ResolveTaskPermission",
              "anchor": "Editor.ResolveTaskPermission",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResolveTaskPermission(id string, allow bool) error",
              "doc": "ResolveTaskPermission resolves a TaskNeedsYou permission ask, resuming the task when allowed\nor recording the refusal and resuming/notifying the optional callback.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1713
            },
            {
              "name": "ResolvedLanguage",
              "anchor": "Editor.ResolvedLanguage",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResolvedLanguage() string",
              "doc": "ResolvedLanguage returns the active BCP-47 locale (\"en\" or \"zh\") used to render the editor UI and plugins.\nWhen Language() is LanguageSystem, it follows the attached scope's environment locale, resolving Simplified Chinese locales (\"zh\", \"zh-CN\", \"zh-Hans\", etc.) to \"zh\" and all others to \"en\".\n",
              "file": "pkg/editor/i18n.go",
              "line": 57
            },
            {
              "name": "ResolvedPlanFiles",
              "anchor": "Editor.ResolvedPlanFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResolvedPlanFiles() []ResolvedPlanFile",
              "doc": "ResolvedPlanFiles returns every file in the active plan with InPlan set to false when all steps touching it were removed.\n",
              "file": "pkg/editor/plan.go",
              "line": 2335
            },
            {
              "name": "ResolvedPlanGhosts",
              "anchor": "Editor.ResolvedPlanGhosts",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResolvedPlanGhosts() []ResolvedPlanGhost",
              "doc": "ResolvedPlanGhosts returns the concrete viewport ghosts for all non-removed steps of the active plan,\napplying selected question option overrides and numeric repeat fields. Returns nil when ghosts are toggled off.\n",
              "file": "pkg/editor/plan.go",
              "line": 2422
            },
            {
              "name": "ResolvedPlanTreeNodes",
              "anchor": "Editor.ResolvedPlanTreeNodes",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResolvedPlanTreeNodes() []ResolvedPlanTreeNode",
              "doc": "ResolvedPlanTreeNodes returns planned Scene Tree nodes for non-removed steps with interpolated names.\n",
              "file": "pkg/editor/plan.go",
              "line": 2365
            },
            {
              "name": "RespondPermissionRequest",
              "anchor": "Editor.RespondPermissionRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) RespondPermissionRequest(id string, resp PermissionResponse) error",
              "doc": "RespondPermissionRequest resolves the pending Ask permission request id with resp.\nWhen resp is PermissionResponseAlways, it also inserts and persists the new Allow rule and opens the \"Always permission rule saved\" toast with Show and Undo.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1715
            },
            {
              "name": "RestartParticlePreview",
              "anchor": "Editor.RestartParticlePreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestartParticlePreview()",
              "doc": "RestartParticlePreview resets the live preview emitter and its PRNG so playback replays from t=0.\n",
              "file": "pkg/editor/particles.go",
              "line": 701
            },
            {
              "name": "RestoreAgentTurnChange",
              "anchor": "Editor.RestoreAgentTurnChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestoreAgentTurnChange(changeID string) error",
              "doc": "RestoreAgentTurnChange restores a previously reverted changeID inside the pending turn and\nimmediately brings it back in live in-memory state.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 1639
            },
            {
              "name": "RestoreAgentTurnFile",
              "anchor": "Editor.RestoreAgentTurnFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestoreAgentTurnFile(file string) error",
              "doc": "RestoreAgentTurnFile restores every reverted change in file in memory.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 1698
            },
            {
              "name": "RestoreAllFirstRunReview",
              "anchor": "Editor.RestoreAllFirstRunReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestoreAllFirstRunReview()",
              "doc": "RestoreAllFirstRunReview restores every change in the First Review to kept.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2497
            },
            {
              "name": "RestoreAutomationCheckpoint",
              "anchor": "Editor.RestoreAutomationCheckpoint",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestoreAutomationCheckpoint(id string) error",
              "doc": "RestoreAutomationCheckpoint restores the files captured in checkpoint id.\nRefuses agent actors (ErrAutomationYouOnly), Play mode (ErrPlaying), History preview (ErrHistoryPreview),\nsymlink escapes, internal paths, and You-only targets.\n",
              "file": "pkg/editor/automations.go",
              "line": 1283
            },
            {
              "name": "RestoreCheckpoint",
              "anchor": "Editor.RestoreCheckpoint",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestoreCheckpoint(id string) error",
              "doc": "RestoreCheckpoint restores every file recorded in checkpoint id back to its pre-turn bytes\n(removing files that did not exist before the turn) as one undoable step in History.\nCalling Undo reverts every file and open editor tab back to the state right before Restore.\nRefuses You-only files, symlinks, and restores while playing, on full-window screens, or during an active turn.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1719
            },
            {
              "name": "RestoreDataTableReviewRecord",
              "anchor": "Editor.RestoreDataTableReviewRecord",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestoreDataTableReviewRecord(key string) error",
              "doc": "RestoreDataTableReviewRecord restores a reverted record key and marks the agent's checks out of date.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1413
            },
            {
              "name": "RestoreHistoryEntry",
              "anchor": "Editor.RestoreHistoryEntry",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestoreHistoryEntry(id uint64) error",
              "doc": "RestoreHistoryEntry non-destructively rolls the open scene, project, and any touched extra files\nback to the state recorded at timeline entry id as ONE new undoable History step.\nEarlier and later entries remain in History and can still be previewed or restored; ONE Undo\nimmediately returns to the state right before Restore.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 516
            },
            {
              "name": "RestorePlanStep",
              "anchor": "Editor.RestorePlanStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestorePlanStep(stepNumber int) error",
              "doc": "RestorePlanStep restores a previously removed step in Draft phase.\n",
              "file": "pkg/editor/plan.go",
              "line": 1401
            },
            {
              "name": "RestorePreviewedHistory",
              "anchor": "Editor.RestorePreviewedHistory",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestorePreviewedHistory() error",
              "doc": "RestorePreviewedHistory restores whichever History entry or persistent checkpoint is currently\nbeing previewed as ONE undoable step.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 241
            },
            {
              "name": "RestoreTileReviewRegionByIndex",
              "anchor": "Editor.RestoreTileReviewRegionByIndex",
              "recv": "*Editor",
              "decl": "func (e *Editor) RestoreTileReviewRegionByIndex(index int) error",
              "doc": "RestoreTileReviewRegionByIndex restores the 0-based region index.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 2011
            },
            {
              "name": "ResumeAgentTurn",
              "anchor": "Editor.ResumeAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResumeAgentTurn(turnID string) error",
              "doc": "ResumeAgentTurn resumes a stopped turn starting strictly at the first step not done.\nSteps already marked AgentStepDone are skipped and never redone.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1274
            },
            {
              "name": "ResumeAutomations",
              "anchor": "Editor.ResumeAutomations",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResumeAutomations() error",
              "doc": "ResumeAutomations clears any active pause-for-today state so triggers fire normally again.\nRefuses agent actors (ErrAutomationYouOnly).\n",
              "file": "pkg/editor/automations.go",
              "line": 525
            },
            {
              "name": "ResumeDataTableReview",
              "anchor": "Editor.ResumeDataTableReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResumeDataTableReview()",
              "doc": "ResumeDataTableReview reopens a paused Data Table review at the exact file, focus, filter, and sort state.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 709
            },
            {
              "name": "ResumePlay",
              "anchor": "Editor.ResumePlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResumePlay()",
              "doc": "ResumePlay resumes local Play mode from a paused state.\n",
              "file": "pkg/editor/play.go",
              "line": 57
            },
            {
              "name": "ResumeReleaseBuild",
              "anchor": "Editor.ResumeReleaseBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResumeReleaseBuild() error",
              "doc": "ResumeReleaseBuild resumes a previously stopped release build, keeping completed presets and\ncontinuing the interrupted preset from the step that was running.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1697
            },
            {
              "name": "ResumeReview",
              "anchor": "Editor.ResumeReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ResumeReview() error",
              "doc": "ResumeReview re-opens the full-window Review screen at the exact focused change and seen state left by PauseReview.\n",
              "file": "pkg/editor/review.go",
              "line": 3270
            },
            {
              "name": "RetryAgentModelErrorNow",
              "anchor": "Editor.RetryAgentModelErrorNow",
              "recv": "*Editor",
              "decl": "func (e *Editor) RetryAgentModelErrorNow(turnID string) error",
              "doc": "RetryAgentModelErrorNow immediately retries a turn that failed with a model error.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1190
            },
            {
              "name": "RetryAgentTurn",
              "anchor": "Editor.RetryAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) RetryAgentTurn(turnID string) error",
              "doc": "RetryAgentTurn immediately retries a turn waiting in model-error backoff (or re-runs a failed turn).\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 767
            },
            {
              "name": "RetryFirstRunConnect",
              "anchor": "Editor.RetryFirstRunConnect",
              "recv": "*Editor",
              "decl": "func (e *Editor) RetryFirstRunConnect()",
              "doc": "RetryFirstRunConnect retries connecting the currently selected CLI agent.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1019
            },
            {
              "name": "RetryOpenScene",
              "anchor": "Editor.RetryOpenScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) RetryOpenScene() error",
              "doc": "RetryOpenScene retries opening the scene recorded in SceneOpenError.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 117
            },
            {
              "name": "RetrySave",
              "anchor": "Editor.RetrySave",
              "recv": "*Editor",
              "decl": "func (e *Editor) RetrySave() error",
              "doc": "RetrySave retries saving after an autosave failure (or saves dirty auto-saveable targets immediately).\nOn success it clears the failure state and updates the Saved timestamp; on failure it keeps the error in the status bar.\n",
              "file": "pkg/editor/autosave.go",
              "line": 658
            },
            {
              "name": "RetryTask",
              "anchor": "Editor.RetryTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) RetryTask(id string) error",
              "doc": "RetryTask retries a failed task, starting it immediately if unblocked or queuing it cleanly.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1919
            },
            {
              "name": "ReturnToStartFromFirstRun",
              "anchor": "Editor.ReturnToStartFromFirstRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReturnToStartFromFirstRun()",
              "doc": "ReturnToStartFromFirstRun returns to the Start Screen after Stop and delete the folder,\nkeeping the author's idea and project name intact.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2341
            },
            {
              "name": "RevertAgentRequest",
              "anchor": "Editor.RevertAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAgentRequest(threadID, requestID string) error",
              "doc": "RevertAgentRequest marks requestID in threadID as reverted (kept 0 changes).\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1346
            },
            {
              "name": "RevertAgentTurn",
              "anchor": "Editor.RevertAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAgentTurn() error",
              "doc": "RevertAgentTurn restores every touched file back to its exact pre-request state, marks the turn\nReverted, and displays a Spec toast whose Undo action brings the turn back as pending. When no\nmulti-file agent turn is open, it falls back to reverting an active single-scene live agent turn\n(BeginAgentTurn).\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 2103
            },
            {
              "name": "RevertAgentTurnChange",
              "anchor": "Editor.RevertAgentTurnChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAgentTurnChange(changeID string) error",
              "doc": "RevertAgentTurnChange marks changeID as reverted inside the pending turn and immediately removes\nthat change from live in-memory state.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 1616
            },
            {
              "name": "RevertAgentTurnFile",
              "anchor": "Editor.RevertAgentTurnFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAgentTurnFile(file string) error",
              "doc": "RevertAgentTurnFile marks every change in file as reverted and restores that file in memory.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 1676
            },
            {
              "name": "RevertAllCutsceneReview",
              "anchor": "Editor.RevertAllCutsceneReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAllCutsceneReview() error",
              "doc": "RevertAllCutsceneReview discards all pending review changes and manual review edits, closing the review and keeping the original cutscene untouched.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1290
            },
            {
              "name": "RevertAllDataTableReview",
              "anchor": "Editor.RevertAllDataTableReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAllDataTableReview() error",
              "doc": "RevertAllDataTableReview discards all pending changes in the active Data Table review without\nmodifying files on disk, closing the review with a one-step Undo toast that restores the review.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 2408
            },
            {
              "name": "RevertAllFirstRunReview",
              "anchor": "Editor.RevertAllFirstRunReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAllFirstRunReview()",
              "doc": "RevertAllFirstRunReview marks every change in the First Review as reverted.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2484
            },
            {
              "name": "RevertAllReviewChanges",
              "anchor": "Editor.RevertAllReviewChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAllReviewChanges() error",
              "doc": "RevertAllReviewChanges reverts all regular changes in the open review and dismisses all unapplied proposed deletions without touching disk.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 684
            },
            {
              "name": "RevertAllTileReview",
              "anchor": "Editor.RevertAllTileReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAllTileReview() error",
              "doc": "RevertAllTileReview discards every pending region of the active tile review, restoring the exact pre-review tilemap.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 2173
            },
            {
              "name": "RevertAndRedoReviewChange",
              "anchor": "Editor.RevertAndRedoReviewChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertAndRedoReviewChange(changeID, note string) (ReviewNoteBatch, error)",
              "doc": "RevertAndRedoReviewChange marks changeID reverted (for non-Go changes) and immediately sends\nthis note (along with any other unsent draft notes) to the agent with RevertFirst=true.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 639
            },
            {
              "name": "RevertCodeReview",
              "anchor": "Editor.RevertCodeReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertCodeReview() error",
              "doc": "RevertCodeReview discards all unapplied pending YAML and Go changes and closes the review without touching disk.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1565
            },
            {
              "name": "RevertDataTableReviewRecord",
              "anchor": "Editor.RevertDataTableReviewRecord",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertDataTableReviewRecord(key string) error",
              "doc": "RevertDataTableReviewRecord marks record key as reverted and marks the agent's checks out of date.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1394
            },
            {
              "name": "RevertDocReview",
              "anchor": "Editor.RevertDocReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertDocReview(id string) error",
              "doc": "RevertDocReview dismisses the pending DocReview with id without modifying the document or disk.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1442
            },
            {
              "name": "RevertLayerOverrideField",
              "anchor": "Editor.RevertLayerOverrideField",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertLayerOverrideField(layerName, fieldKey string) error",
              "doc": "RevertLayerOverrideField removes one overridden field from SceneDoc.LayerOverrides[layerName] as one undoable step.\n",
              "file": "pkg/editor/overrides.go",
              "line": 1194
            },
            {
              "name": "RevertLayerOverrides",
              "anchor": "Editor.RevertLayerOverrides",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertLayerOverrides(layerName string) error",
              "doc": "RevertLayerOverrides removes all overrides for layerName from SceneDoc.LayerOverrides as one undoable step.\n",
              "file": "pkg/editor/overrides.go",
              "line": 1225
            },
            {
              "name": "RevertObjectOverrideField",
              "anchor": "Editor.RevertObjectOverrideField",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertObjectOverrideField(objectID, fieldKey string) error",
              "doc": "RevertObjectOverrideField removes one overridden field from objectID's override entry as one undoable step,\npruning empty maps so the saved YAML stays clean.\n",
              "file": "pkg/editor/overrides.go",
              "line": 795
            },
            {
              "name": "RevertObjectOverrides",
              "anchor": "Editor.RevertObjectOverrides",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertObjectOverrides(objectID string) error",
              "doc": "RevertObjectOverrides removes all overrides for objectID as one undoable step.\nWhen objectID is a local scene instance root, it removes all entries in its Overrides map.\nWhen objectID is an instanced child or inherited object, it removes that object's override entry\n(and clears the owning Overrides map when it becomes empty).\n",
              "file": "pkg/editor/overrides.go",
              "line": 926
            },
            {
              "name": "RevertPendingAgentTurnReview",
              "anchor": "Editor.RevertPendingAgentTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertPendingAgentTurnReview()",
              "doc": "RevertPendingAgentTurnReview undoes scene edits made during the latest agent turn back to its starting history index.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 1065
            },
            {
              "name": "RevertProposedAssets",
              "anchor": "Editor.RevertProposedAssets",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertProposedAssets()",
              "doc": "RevertProposedAssets clears pending proposed imports from review state.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 641
            },
            {
              "name": "RevertRemoteLiveChange",
              "anchor": "Editor.RevertRemoteLiveChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertRemoteLiveChange(index int) error",
              "doc": "RevertRemoteLiveChange puts back the baseline scene value for live change index (sending game_component_set if still connected) and removes it from RemoteLiveChanges.\n",
              "file": "pkg/editor/remote.go",
              "line": 1641
            },
            {
              "name": "RevertReviewChange",
              "anchor": "Editor.RevertReviewChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertReviewChange(id string) error",
              "doc": "RevertReviewChange marks one non-deletion review item as reverted and runs its OnRevert hook if present.\n",
              "file": "pkg/editor/agent_review.go",
              "line": 205
            },
            {
              "name": "RevertScene",
              "anchor": "Editor.RevertScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertScene() error",
              "doc": "RevertScene puts back the open scene as its file (FilePath) holds it now, as one undoable step, so Undo brings the reverted edits back. The scene is then clean, until Undo. It refuses while playing (ErrPlaying) and returns ErrNoSceneFile for a scene without a file, and the error of a file that no longer reads or parses, changing nothing then.\n",
              "file": "pkg/editor/scenefile.go",
              "line": 450
            },
            {
              "name": "RevertSketchReview",
              "anchor": "Editor.RevertSketchReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertSketchReview() error",
              "doc": "RevertSketchReview reverts the agent's scene edits back to the pre-approval scene snapshot,\ncloses the review, and KEEPS the sketch marks intact so the user can send them again.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1620
            },
            {
              "name": "RevertTask",
              "anchor": "Editor.RevertTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertTask(id string) error",
              "doc": "RevertTask reverts an unkept TaskReadyToReview turn (patching only objects touched by this task\nso edits from other parallel tasks or human edits are preserved), marks it TaskStopped, and\nstarts the next queued task waiting for it. A turn already kept is never reverted by RevertTask.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2029
            },
            {
              "name": "RevertTileReviewRegionByIndex",
              "anchor": "Editor.RevertTileReviewRegionByIndex",
              "recv": "*Editor",
              "decl": "func (e *Editor) RevertTileReviewRegionByIndex(index int) error",
              "doc": "RevertTileReviewRegionByIndex marks the 0-based region index reverted.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 2000
            },
            {
              "name": "ReviewBlockers",
              "anchor": "Editor.ReviewBlockers",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewBlockers() []ReviewBlocker",
              "doc": "ReviewBlockers returns all active blockers on non-reverted changes in priority order:\nactive YAML parse errors first (\"Fix YAML on line N\"), then unresolved merge conflicts\n(\"Choose how <title> merges\"), then any custom blockers.\n",
              "file": "pkg/editor/review.go",
              "line": 3186
            },
            {
              "name": "ReviewChipCount",
              "anchor": "Editor.ReviewChipCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewChipCount(f ReviewFilter) int",
              "doc": "ReviewChipCount returns the count for filter chip f.\n",
              "file": "pkg/editor/review.go",
              "line": 2610
            },
            {
              "name": "ReviewDataTablePreviewFor",
              "anchor": "Editor.ReviewDataTablePreviewFor",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewDataTablePreviewFor(filePath string) *ReviewDataTablePreview",
              "doc": "ReviewDataTablePreviewFor returns the small-table preview model for a focused data table file.\n",
              "file": "pkg/editor/review.go",
              "line": 2303
            },
            {
              "name": "ReviewDraftNoteCount",
              "anchor": "Editor.ReviewDraftNoteCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewDraftNoteCount() int",
              "doc": "ReviewDraftNoteCount returns how many changes currently have an unsent draft note.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 353
            },
            {
              "name": "ReviewEffectiveSceneDoc",
              "anchor": "Editor.ReviewEffectiveSceneDoc",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewEffectiveSceneDoc(filePath string) *sceneformat.SceneDoc",
              "doc": "ReviewEffectiveSceneDoc returns a cloned copy of the live merged SceneDoc for filePath in the active review\n(applying non-reverted agent changes, auto-merged person edits, resolved conflicts, and valid hand edits).\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 585
            },
            {
              "name": "ReviewFirstRunAsIs",
              "anchor": "Editor.ReviewFirstRunAsIs",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewFirstRunAsIs()",
              "doc": "ReviewFirstRunAsIs bypasses the failed check fix proposal and enters First Review with the current files.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2398
            },
            {
              "name": "ReviewNoteComposerChangeID",
              "anchor": "Editor.ReviewNoteComposerChangeID",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewNoteComposerChangeID() string",
              "doc": "ReviewNoteComposerChangeID returns the change ID whose inline note composer is currently open (or \"\").\n",
              "file": "pkg/editor/review_notes.go",
              "line": 382
            },
            {
              "name": "ReviewNoteDraft",
              "anchor": "Editor.ReviewNoteDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewNoteDraft() string",
              "doc": "ReviewNoteDraft returns the live unsent draft text currently in the inline note composer.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 390
            },
            {
              "name": "ReviewObjectDocForChange",
              "anchor": "Editor.ReviewObjectDocForChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewObjectDocForChange(changeID string, round int) (*sceneformat.ObjectDoc, string, bool)",
              "doc": "ReviewObjectDocForChange returns a deep clone of the change's scene ObjectDoc and layer for round\n(used by editormcp's review_redo to apply coordinate/field updates cleanly).\n",
              "file": "pkg/editor/review_notes.go",
              "line": 686
            },
            {
              "name": "ReviewOpen",
              "anchor": "Editor.ReviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewOpen() bool",
              "doc": "ReviewOpen reports whether the full-window change-by-change Review screen is currently open.\n",
              "file": "pkg/editor/review.go",
              "line": 471
            },
            {
              "name": "ReviewOutcome",
              "anchor": "Editor.ReviewOutcome",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewOutcome() ReviewOutcome",
              "doc": "ReviewOutcome returns the lifecycle status of the most recent agent turn review.\n",
              "file": "pkg/editor/review.go",
              "line": 481
            },
            {
              "name": "ReviewOutcomes",
              "anchor": "Editor.ReviewOutcomes",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewOutcomes() []ReviewOutcomeRecord",
              "doc": "ReviewOutcomes returns a copy of all recorded review outcomes.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1043
            },
            {
              "name": "ReviewOverlays",
              "anchor": "Editor.ReviewOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewOverlays() []ReviewSceneOverlay",
              "doc": "ReviewOverlays returns the inspectable list of change overlays for the focused review scene\n(or for the editor's open scene when the review is paused/pending in the editor).\n",
              "file": "pkg/editor/review.go",
              "line": 2472
            },
            {
              "name": "ReviewPeekingBefore",
              "anchor": "Editor.ReviewPeekingBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewPeekingBefore() bool",
              "doc": "ReviewPeekingBefore reports whether the Review viewport is currently peeking at the pre-request scene.\n",
              "file": "pkg/editor/review.go",
              "line": 3156
            },
            {
              "name": "ReviewReleaseUploads",
              "anchor": "Editor.ReviewReleaseUploads",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewReleaseUploads() error",
              "doc": "ReviewReleaseUploads opens the Review uploads confirmation dialog listing every artifact,\nits size, destination (itch.io, Google Play internal testing, TestFlight), and version before\nanything is sent, and invokes OnReviewReleaseUploads (if set). It NEVER starts an upload automatically.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1784
            },
            {
              "name": "ReviewRevertAllDialogOpen",
              "anchor": "Editor.ReviewRevertAllDialogOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewRevertAllDialogOpen() bool",
              "doc": "ReviewRevertAllDialogOpen reports whether the Revert All confirmation dialog is currently shown.\n",
              "file": "pkg/editor/review.go",
              "line": 3303
            },
            {
              "name": "ReviewRevertAllFileList",
              "anchor": "Editor.ReviewRevertAllFileList",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewRevertAllFileList() string",
              "doc": "ReviewRevertAllFileList returns a human-readable list of files affected by Revert All for the confirmation dialog.\n",
              "file": "pkg/editor/review.go",
              "line": 4041
            },
            {
              "name": "ReviewRound",
              "anchor": "Editor.ReviewRound",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewRound() int",
              "doc": "ReviewRound returns the latest 1-based round number of the pending review (0 when none is pending).\n",
              "file": "pkg/editor/review_notes.go",
              "line": 268
            },
            {
              "name": "ReviewRoundBannerText",
              "anchor": "Editor.ReviewRoundBannerText",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewRoundBannerText() string",
              "doc": "ReviewRoundBannerText returns the banner copy shown beneath the filter chips once Round 2+ exists.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 329
            },
            {
              "name": "ReviewStatus",
              "anchor": "Editor.ReviewStatus",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewStatus() ReviewSnapshot",
              "doc": "ReviewStatus returns a complete read-only snapshot of the current or most recent turn review.\n",
              "file": "pkg/editor/review.go",
              "line": 3939
            },
            {
              "name": "ReviewUnsentOrPendingNoteCount",
              "anchor": "Editor.ReviewUnsentOrPendingNoteCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewUnsentOrPendingNoteCount() int",
              "doc": "ReviewUnsentOrPendingNoteCount returns how many distinct changes currently have either an unsent\ndraft note or a sent note awaiting redo (used by the Revert all warning dialog).\n",
              "file": "pkg/editor/review_notes.go",
              "line": 368
            },
            {
              "name": "ReviewViewRound",
              "anchor": "Editor.ReviewViewRound",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewViewRound() int",
              "doc": "ReviewViewRound returns the 1-based round currently being inspected in the Review screen.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 273
            },
            {
              "name": "ReviewViewingReadOnlyRound",
              "anchor": "Editor.ReviewViewingReadOnlyRound",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewViewingReadOnlyRound() bool",
              "doc": "ReviewViewingReadOnlyRound reports whether the author is currently inspecting an earlier\nread-only round (for example Round 1 once Round 2 exists).\n",
              "file": "pkg/editor/review_notes.go",
              "line": 279
            },
            {
              "name": "ReviewViewportPins",
              "anchor": "Editor.ReviewViewportPins",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewViewportPins() []ReviewViewportPin",
              "doc": "ReviewViewportPins returns inspectable note pins for visible non-reverted scene objects in\nthe focused review scene (when Review is open) or the open editor scene (when Review is paused).\n",
              "file": "pkg/editor/review_notes.go",
              "line": 1288
            },
            {
              "name": "ReviewViewportView2D",
              "anchor": "Editor.ReviewViewportView2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewViewportView2D() View2D",
              "doc": "ReviewViewportView2D returns the Review center viewport's current 2D camera view for the focused scene.\n",
              "file": "pkg/editor/review.go",
              "line": 2455
            },
            {
              "name": "ReviewVisibleRows",
              "anchor": "Editor.ReviewVisibleRows",
              "recv": "*Editor",
              "decl": "func (e *Editor) ReviewVisibleRows() []ReviewVisibleRow",
              "doc": "ReviewVisibleRows returns the flattened visible rows (file headers, kind headers, change cards)\nhonoring the active filter chip, search query, and collapsed file/kind groups.\n",
              "file": "pkg/editor/review.go",
              "line": 2665
            },
            {
              "name": "Revision",
              "anchor": "Editor.Revision",
              "recv": "*Editor",
              "decl": "func (e *Editor) Revision() uint64",
              "doc": "Revision returns a monotonically increasing counter bumped on every state change.\n",
              "file": "pkg/editor/state.go",
              "line": 1142
            },
            {
              "name": "RewindAgentTurn",
              "anchor": "Editor.RewindAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) RewindAgentTurn(turnID string, mode AgentRewindMode) error",
              "doc": "RewindAgentTurn rewinds the active agent thread to before turnID using mode:\n  - AgentRewindBoth restores files from the turns' checkpoints and drops the target and later turns (restoring the session ID from before turnID).\n  - AgentRewindFilesOnly restores files from the turns' checkpoints while keeping the conversation thread and session unchanged.\n  - AgentRewindConversationOnly drops the target and later turns (and restores the session ID from before turnID) while keeping all files untouched.\n\nIn all modes, the rewound message returns to the composer and a post-rewind banner with Redo is shown.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 562
            },
            {
              "name": "RigAnimation",
              "anchor": "Editor.RigAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigAnimation() string",
              "doc": "RigAnimation returns the active animation name in the rig editor, or \"\" for bind pose.\n",
              "file": "pkg/editor/rig.go",
              "line": 182
            },
            {
              "name": "RigAnimationNames",
              "anchor": "Editor.RigAnimationNames",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigAnimationNames() []string",
              "doc": "RigAnimationNames returns the sorted animation names defined in the open rig.\n",
              "file": "pkg/editor/rig.go",
              "line": 248
            },
            {
              "name": "RigAtlas",
              "anchor": "Editor.RigAtlas",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigAtlas() string",
              "doc": "RigAtlas returns the name of the atlas currently used to preview the open rig.\n",
              "file": "pkg/editor/rig.go",
              "line": 166
            },
            {
              "name": "RigAtlasFrames",
              "anchor": "Editor.RigAtlasFrames",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigAtlasFrames() []string",
              "doc": "RigAtlasFrames returns the sorted frame names in the rig editor's active atlas.\n",
              "file": "pkg/editor/rig.go",
              "line": 256
            },
            {
              "name": "RigAttachmentOriginCanvasPos",
              "anchor": "Editor.RigAttachmentOriginCanvasPos",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigAttachmentOriginCanvasPos(slot string) (math2d.Vec2, bool)",
              "doc": "RigAttachmentOriginCanvasPos returns the canvas position of slot's attachment origin handle\n(drawn offset along the attachment's local axes from the frame's top-left corner at the pivot),\nor false when the slot has no skin attachment.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 246
            },
            {
              "name": "RigBlending",
              "anchor": "Editor.RigBlending",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigBlending() bool",
              "doc": "RigBlending reports whether the rig editor's runtime skeleton is currently crossfading.\n",
              "file": "pkg/editor/rig.go",
              "line": 219
            },
            {
              "name": "RigBoneHandlePos",
              "anchor": "Editor.RigBoneHandlePos",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigBoneHandlePos(bone string) (origin, tip math2d.Vec2, ringRadius float32, ok bool)",
              "doc": "RigBoneHandlePos returns the canvas positions of bone's origin joint, length tip handle,\nand rotation ring radius, or false when the bone is not found.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 163
            },
            {
              "name": "RigBoneSummary",
              "anchor": "Editor.RigBoneSummary",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigBoneSummary() string",
              "doc": "RigBoneSummary returns a formatted readout for the rig status bar.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 825
            },
            {
              "name": "RigCanvasToWorld",
              "anchor": "Editor.RigCanvasToWorld",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigCanvasToWorld(cx, cy float32) (float32, float32)",
              "doc": "RigCanvasToWorld converts a point on the rig editor canvas to rig world coordinates.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 113
            },
            {
              "name": "RigData",
              "anchor": "Editor.RigData",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigData() *skeletal.SkeletonData",
              "doc": "RigData returns a deep copy of the open skeletal rig data, or nil when no rig is open.\n",
              "file": "pkg/editor/rig.go",
              "line": 142
            },
            {
              "name": "RigDirty",
              "anchor": "Editor.RigDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigDirty() bool",
              "doc": "RigDirty reports whether the open rig has been edited since it was opened or last saved.\n",
              "file": "pkg/editor/rig.go",
              "line": 158
            },
            {
              "name": "RigError",
              "anchor": "Editor.RigError",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigError() error",
              "doc": "RigError returns the last rig preview or validation error, or nil.\n",
              "file": "pkg/editor/rig.go",
              "line": 232
            },
            {
              "name": "RigOpen",
              "anchor": "Editor.RigOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigOpen() bool",
              "doc": "RigOpen reports whether a 2D skeletal rig is open in the rig editor.\n",
              "file": "pkg/editor/rig.go",
              "line": 137
            },
            {
              "name": "RigPath",
              "anchor": "Editor.RigPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigPath() string",
              "doc": "RigPath returns the file path or name of the open rig, or \"\".\n",
              "file": "pkg/editor/rig.go",
              "line": 150
            },
            {
              "name": "RigPlaying",
              "anchor": "Editor.RigPlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigPlaying() bool",
              "doc": "RigPlaying reports whether the rig editor is currently playing an animation.\n",
              "file": "pkg/editor/rig.go",
              "line": 214
            },
            {
              "name": "RigSkeleton",
              "anchor": "Editor.RigSkeleton",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigSkeleton() *skeletal.Skeleton",
              "doc": "RigSkeleton returns the live runtime skeletal.Skeleton used by the rig editor preview, or nil.\n",
              "file": "pkg/editor/rig.go",
              "line": 224
            },
            {
              "name": "RigSkin",
              "anchor": "Editor.RigSkin",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigSkin() string",
              "doc": "RigSkin returns the active preview skin name in the rig editor, or \"\".\n",
              "file": "pkg/editor/rig.go",
              "line": 174
            },
            {
              "name": "RigSkinNames",
              "anchor": "Editor.RigSkinNames",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigSkinNames() []string",
              "doc": "RigSkinNames returns the sorted skin names defined in the open rig.\n",
              "file": "pkg/editor/rig.go",
              "line": 240
            },
            {
              "name": "RigTime",
              "anchor": "Editor.RigTime",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigTime() time.Duration",
              "doc": "RigTime returns the current playhead time in the rig editor.\n",
              "file": "pkg/editor/rig.go",
              "line": 206
            },
            {
              "name": "RigWorldToCanvas",
              "anchor": "Editor.RigWorldToCanvas",
              "recv": "*Editor",
              "decl": "func (e *Editor) RigWorldToCanvas(wx, wy float32) (float32, float32)",
              "doc": "RigWorldToCanvas converts a point in rig world coordinates to rig editor canvas points.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 103
            },
            {
              "name": "RightPanelTab",
              "anchor": "Editor.RightPanelTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) RightPanelTab() RightPanelTab",
              "doc": "RightPanelTab returns the currently visible tab of the editor's right-hand panel (\"inspector\" or \"agent\").\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 374
            },
            {
              "name": "RightRailMode",
              "anchor": "Editor.RightRailMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) RightRailMode() RightRailMode",
              "doc": "RightRailMode returns which panel currently occupies the right rail.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 382
            },
            {
              "name": "RightRailTab",
              "anchor": "Editor.RightRailTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) RightRailTab() RightRailTab",
              "doc": "RightRailTab returns the active tab in the right sidebar (RightTabInspector, RightTabAgent, or RightTabHistory).\n",
              "file": "pkg/editor/agent.go",
              "line": 740
            },
            {
              "name": "RoomCreateMode",
              "anchor": "Editor.RoomCreateMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) RoomCreateMode() bool",
              "doc": "RoomCreateMode reports whether dragging in the 2D viewport draws a new room rectangle.\n",
              "file": "pkg/editor/rooms.go",
              "line": 492
            },
            {
              "name": "RoomGridSize",
              "anchor": "Editor.RoomGridSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) RoomGridSize() (w, h float32, ok bool)",
              "doc": "RoomGridSize returns the active tile grid step (w, h) used to snap room edges: an\nexplicit override set by SetRoomGridSize, else the active/first inline tilemap's tile\nsize, else the first built external tilemap's tile size. Returns (0, 0, false) when\nneither an explicit grid nor a tilemap is present.\n",
              "file": "pkg/editor/rooms.go",
              "line": 532
            },
            {
              "name": "RoomHandleCanvasPos",
              "anchor": "Editor.RoomHandleCanvasPos",
              "recv": "*Editor",
              "decl": "func (e *Editor) RoomHandleCanvasPos(roomID string, h RectHandle) (x, y float32, ok bool)",
              "doc": "RoomHandleCanvasPos returns the canvas coordinates of handle h on roomID in the open room map.\n",
              "file": "pkg/editor/rooms.go",
              "line": 919
            },
            {
              "name": "RoomSnapToGrid",
              "anchor": "Editor.RoomSnapToGrid",
              "recv": "*Editor",
              "decl": "func (e *Editor) RoomSnapToGrid() bool",
              "doc": "RoomSnapToGrid reports whether moving, resizing, and drawing rooms in the 2D viewport\nsnaps room edges to the scene's tile grid (default true).\n",
              "file": "pkg/editor/rooms.go",
              "line": 470
            },
            {
              "name": "Rooms",
              "anchor": "Editor.Rooms",
              "recv": "*Editor",
              "decl": "func (e *Editor) Rooms() *rooms.Map",
              "doc": "Rooms returns a deep copy of the currently open room map, or nil when none is open.\n",
              "file": "pkg/editor/rooms.go",
              "line": 61
            },
            {
              "name": "RoomsDirty",
              "anchor": "Editor.RoomsDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) RoomsDirty() bool",
              "doc": "RoomsDirty reports whether an open room map differs from what it was opened from or last saved to.\n",
              "file": "pkg/editor/rooms.go",
              "line": 92
            },
            {
              "name": "RoomsError",
              "anchor": "Editor.RoomsError",
              "recv": "*Editor",
              "decl": "func (e *Editor) RoomsError() error",
              "doc": "RoomsError returns the most recent validation error from editing the open room map, or nil.\n",
              "file": "pkg/editor/rooms.go",
              "line": 101
            },
            {
              "name": "RoomsLabel",
              "anchor": "Editor.RoomsLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) RoomsLabel() string",
              "doc": "RoomsLabel returns a short display label for the open room map (project-relative path\nwhen inside the open project, else file path, else \"Untitled rooms\").\n",
              "file": "pkg/editor/rooms.go",
              "line": 78
            },
            {
              "name": "RoomsPath",
              "anchor": "Editor.RoomsPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) RoomsPath() string",
              "doc": "RoomsPath returns the file path or logical name of the open room map, or \"\".\n",
              "file": "pkg/editor/rooms.go",
              "line": 69
            },
            {
              "name": "RotateGridMapCell",
              "anchor": "Editor.RotateGridMapCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) RotateGridMapCell(c world3d.GridCoord, axis world3d.GridAxis, quarterTurns int) error",
              "doc": "RotateGridMapCell rotates the occupied cell at c by quarterTurns 90-degree steps around axis\nas an undoable command.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 870
            },
            {
              "name": "RotateGridMapOrientation",
              "anchor": "Editor.RotateGridMapOrientation",
              "recv": "*Editor",
              "decl": "func (e *Editor) RotateGridMapOrientation(axis world3d.GridAxis, quarterTurns int) error",
              "doc": "RotateGridMapOrientation rotates the active GridMap item orientation by quarterTurns 90-degree steps\naround axis (world X, Y, or Z) through all 24 cube orientations, recorded as an undoable command.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 277
            },
            {
              "name": "RotateObject",
              "anchor": "Editor.RotateObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) RotateObject(id string, radians float32) error",
              "doc": "RotateObject sets object id's rotation (in radians) as an undoable command. It refuses a rotation under which the object's or a descendant's sprite would be sheared by a non-uniformly scaled ancestor (see sceneformat.CheckObjectTree).\nWhen id names an instanced or inherited object, it records an override on its instance or inheriting scene.\n",
              "file": "pkg/editor/state.go",
              "line": 2379
            },
            {
              "name": "RotateObject3D",
              "anchor": "Editor.RotateObject3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) RotateObject3D(id string, rotX, rotY, rotZ float32) error",
              "doc": "RotateObject3D sets object id's 3D Euler rotation (rotX, rotY, rotZ) in radians as an undoable command.\n",
              "file": "pkg/editor/state.go",
              "line": 2678
            },
            {
              "name": "RotateRigBone",
              "anchor": "Editor.RotateRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) RotateRigBone(name string, rotation float32) error",
              "doc": "RotateRigBone sets bone name's bind-pose local rotation (radians, clockwise) as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 963
            },
            {
              "name": "RulesAgentNote",
              "anchor": "Editor.RulesAgentNote",
              "recv": "*Editor",
              "decl": "func (e *Editor) RulesAgentNote() (note string, suggestions []string)",
              "doc": "RulesAgentNote computes the contextual note and suggested asks for the \"Agent on this page\" card\non Settings › Project rules.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1661
            },
            {
              "name": "RunAgentSceneEdit",
              "anchor": "Editor.RunAgentSceneEdit",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunAgentSceneEdit(file string, reasons map[string]string, fn func(target *Editor) error) error",
              "doc": "RunAgentSceneEdit executes fn on the scene or prefab named by file (empty for the active open scene)\ninside the currently working agent turn. Edits apply in memory immediately without pushing onto\nHistory and without writing to disk. If fn returns an error, all mutations from fn are rolled back.\nOptional reasons (keyed by object ID, \"obj:<id>\", \"obj:<id>::<field>\", or \"*\") attach why notes\nto the derived structural changes.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 1012
            },
            {
              "name": "RunAsAgent",
              "anchor": "Editor.RunAsAgent",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunAsAgent(fn func() error) error",
              "doc": "RunAsAgent executes fn while marking edits as originating from the agent rather than manual UI input,\nso agent-initiated MCP calls can edit objects the agent is currently touching while manual edits stay blocked.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 170
            },
            {
              "name": "RunAutomationWithCheckpoint",
              "anchor": "Editor.RunAutomationWithCheckpoint",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunAutomationWithCheckpoint(title string, files []string, fn func() error) (*CheckpointSummary, error)",
              "doc": "RunAutomationWithCheckpoint takes a pre-start checkpoint before running automation fn, keeps it\nactive so every additional file fn touches is captured before its first write, and finalizes it.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1091
            },
            {
              "name": "RunBuildOnAndroidDevice",
              "anchor": "Editor.RunBuildOnAndroidDevice",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunBuildOnAndroidDevice() error",
              "doc": "RunBuildOnAndroidDevice installs and launches the finished Android build onto the connected USB Android device\nusing `go -C <dir> tool nsgo build -target <android-target> -run -device <serial>` (or Editor.DeviceCommandRunner).\n",
              "file": "pkg/editor/build_device.go",
              "line": 1418
            },
            {
              "name": "RunBuildReadinessAction",
              "anchor": "Editor.RunBuildReadinessAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunBuildReadinessAction(platform, itemID string) error",
              "doc": "RunBuildReadinessAction executes the fix/action for one readiness item on platform.\nAgent-capable items (such as writing PrivacyInfo.xcprivacy or adding touch controls) are\nperformed directly on disk/project; person-required items invoke OnReleaseReadinessPersonAction.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1434
            },
            {
              "name": "RunBuildReadinessAgentSetup",
              "anchor": "Editor.RunBuildReadinessAgentSetup",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunBuildReadinessAgentSetup(platform string) error",
              "doc": "RunBuildReadinessAgentSetup performs every agent-handleable readiness fix on platform,\nthen hands off any remaining person-required items to OnReleaseReadinessPersonAction.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1521
            },
            {
              "name": "RunChangesChecks",
              "anchor": "Editor.RunChangesChecks",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunChangesChecks() error",
              "doc": "RunChangesChecks runs nsgo check and nsgo test (or Editor.ChangesCheckRunner when set) and records the result and timestamp.\n",
              "file": "pkg/editor/changes.go",
              "line": 2170
            },
            {
              "name": "RunChangesChecksAsync",
              "anchor": "Editor.RunChangesChecksAsync",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunChangesChecksAsync(cx *core.Scope) error",
              "doc": "RunChangesChecksAsync runs nsgo check and nsgo test off the UI thread and posts the result back to the editor scope.\n",
              "file": "pkg/editor/changes.go",
              "line": 2184
            },
            {
              "name": "RunCheckpointTurn",
              "anchor": "Editor.RunCheckpointTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunCheckpointTurn(title string, fn func() error) (*CheckpointSummary, error)",
              "doc": "RunCheckpointTurn runs fn inside BeginCheckpointTurn / EndCheckpointTurn, recording every file fn touches\ninto one persistent checkpoint. If fn returns an error or panics and no files were modified,\nthe empty checkpoint is discarded; if files were already modified, the checkpoint is kept so\nthe partial turn remains restorable.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1011
            },
            {
              "name": "RunCodeReviewChecks",
              "anchor": "Editor.RunCodeReviewChecks",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunCodeReviewChecks(ctx context.Context) error",
              "doc": "RunCodeReviewChecks synchronously runs nsgo check and nsgo test against the pending Go files via a Go build overlay,\nleaving every file on disk untouched.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1230
            },
            {
              "name": "RunCodeReviewChecksAsync",
              "anchor": "Editor.RunCodeReviewChecksAsync",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunCodeReviewChecksAsync() error",
              "doc": "RunCodeReviewChecksAsync runs nsgo check and nsgo test off the UI thread and posts progress and final results back to the UI scope.\n",
              "file": "pkg/editor/code_review.go",
              "line": 1254
            },
            {
              "name": "RunExportBuild",
              "anchor": "Editor.RunExportBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunExportBuild() error",
              "doc": "RunExportBuild launches a release build (or dry run) using the Export panel's current options.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 765
            },
            {
              "name": "RunGame",
              "anchor": "Editor.RunGame",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunGame() error",
              "doc": "RunGame launches `go tool game dev` in the open project's directory using the editor's RunStartAtOpenScene and RunWithAutomation settings.\n",
              "file": "pkg/editor/run_game.go",
              "line": 137
            },
            {
              "name": "RunGameWith",
              "anchor": "Editor.RunGameWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunGameWith(opts RunGameOptions) error",
              "doc": "RunGameWith launches `go tool game dev` in the open project's directory as a child process on desktop (or through Editor.RunGameCommand when set), streaming its standard output and error into the Output panel off the UI goroutine. Call StopGame or Close to terminate it and every process it started.\n",
              "file": "pkg/editor/run_game.go",
              "line": 145
            },
            {
              "name": "RunStartAtOpenScene",
              "anchor": "Editor.RunStartAtOpenScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunStartAtOpenScene() bool",
              "doc": "RunStartAtOpenScene reports whether RunGame (and the toolbar Run button / F5 shortcut) starts the game at the currently open scene when one is open inside the project.\n",
              "file": "pkg/editor/run_game.go",
              "line": 89
            },
            {
              "name": "RunStoppedPlanAgain",
              "anchor": "Editor.RunStoppedPlanAgain",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunStoppedPlanAgain() (AgentPlanDecision, error)",
              "doc": "RunStoppedPlanAgain restarts a stopped plan (same validation as ApproveAgentPlan).\n",
              "file": "pkg/editor/plan.go",
              "line": 1711
            },
            {
              "name": "RunTaskWithCheckpoint",
              "anchor": "Editor.RunTaskWithCheckpoint",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunTaskWithCheckpoint(title string, files []string, fn func() error) (*CheckpointSummary, error)",
              "doc": "RunTaskWithCheckpoint takes a pre-start checkpoint before running autonomous task fn, keeps it\nactive so every additional file fn touches is captured before its first write, and finalizes it.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1085
            },
            {
              "name": "RunWithAutomation",
              "anchor": "Editor.RunWithAutomation",
              "recv": "*Editor",
              "decl": "func (e *Editor) RunWithAutomation() bool",
              "doc": "RunWithAutomation reports whether RunGame passes `-automation` and connects the editor's Remote tab and inspector to the running game over MCP.\n",
              "file": "pkg/editor/run_game.go",
              "line": 113
            },
            {
              "name": "Save",
              "anchor": "Editor.Save",
              "recv": "*Editor",
              "decl": "func (e *Editor) Save() error",
              "doc": "Save saves what has unsaved edits, as the toolbar's Save button and Mod+S do, and records the open scene's view in the project's ViewStateFile (SaveViewState). An edited project file is saved first (SaveProject), whether or not the scene can be; an unedited one is left as written, comments included. An edited scene then goes to OnSave when it is set, else to FilePath (SaveFile), and an unedited one is left as written too, unless FilePath names no file yet. A scene with neither OnSave nor FilePath returns ErrNoSceneFile, unless it is unedited. It refuses while playing (ErrPlaying).\n",
              "file": "pkg/editor/scenefile.go",
              "line": 217
            },
            {
              "name": "SaveAgentThread",
              "anchor": "Editor.SaveAgentThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveAgentThread() error",
              "doc": "SaveAgentThread writes the current task list to its plain-text YAML thread file when a project or ThreadsDir is set.\n",
              "file": "pkg/editor/tasks.go",
              "line": 544
            },
            {
              "name": "SaveAll",
              "anchor": "Editor.SaveAll",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveAll() error",
              "doc": "SaveAll persists all currently dirty editors (project, every dirty open scene tab, GridMap, terrain, room map, localizations, clip, cutscene, data table, skeletal rig, material, and kept multi-file agent turn files) that have a save destination configured.\n",
              "file": "pkg/editor/scenefile.go",
              "line": 84
            },
            {
              "name": "SaveBrief",
              "anchor": "Editor.SaveBrief",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveBrief() error",
              "doc": "SaveBrief writes the current game brief to brief.yaml in canonical YAML form.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 651
            },
            {
              "name": "SaveClipFile",
              "anchor": "Editor.SaveClipFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveClipFile(path string) error",
              "doc": "SaveClipFile writes the open clip to path, replacing the file atomically, and remembers path as ClipPath.\n",
              "file": "pkg/editor/animation.go",
              "line": 304
            },
            {
              "name": "SaveClipYAML",
              "anchor": "Editor.SaveClipYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveClipYAML() ([]byte, error)",
              "doc": "SaveClipYAML encodes the open clip as deterministic YAML.\n",
              "file": "pkg/editor/animation.go",
              "line": 296
            },
            {
              "name": "SaveConflictPromptOpen",
              "anchor": "Editor.SaveConflictPromptOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveConflictPromptOpen() bool",
              "doc": "SaveConflictPromptOpen reports whether a Save operation hit an external disk conflict and is waiting for the author to confirm overwrite, reload, or cancel.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1446
            },
            {
              "name": "SaveCutsceneFile",
              "anchor": "Editor.SaveCutsceneFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveCutsceneFile(filePath string) error",
              "doc": "SaveCutsceneFile writes the open cutscene atomically to filePath and updates CutscenePath.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 505
            },
            {
              "name": "SaveCutsceneYAML",
              "anchor": "Editor.SaveCutsceneYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveCutsceneYAML() ([]byte, error)",
              "doc": "SaveCutsceneYAML encodes the open cutscene as canonical deterministic YAML.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 497
            },
            {
              "name": "SaveDataTableFile",
              "anchor": "Editor.SaveDataTableFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveDataTableFile(path string) error",
              "doc": "SaveDataTableFile writes the open data table to path atomically and remembers path.\n",
              "file": "pkg/editor/datatable.go",
              "line": 285
            },
            {
              "name": "SaveDataTableYAML",
              "anchor": "Editor.SaveDataTableYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveDataTableYAML() ([]byte, error)",
              "doc": "SaveDataTableYAML encodes the open data table to YAML, preserving exact bytes when unedited\nand changing only edited lines for single-cell updates.\n",
              "file": "pkg/editor/datatable.go",
              "line": 277
            },
            {
              "name": "SaveEditedGeneratedLicense",
              "anchor": "Editor.SaveEditedGeneratedLicense",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveEditedGeneratedLicense() error",
              "doc": "SaveEditedGeneratedLicense commits the user-entered license string and commercialUse flag to <asset>.source.yaml.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2122
            },
            {
              "name": "SaveFailed",
              "anchor": "Editor.SaveFailed",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveFailed() bool",
              "doc": "SaveFailed reports whether an automatic save is currently in a failed state.\n",
              "file": "pkg/editor/autosave.go",
              "line": 296
            },
            {
              "name": "SaveFailedForTab",
              "anchor": "Editor.SaveFailedForTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveFailedForTab(tabID uint64) bool",
              "doc": "SaveFailedForTab reports whether tabID currently has an active save failure.\n",
              "file": "pkg/editor/autosave.go",
              "line": 301
            },
            {
              "name": "SaveFile",
              "anchor": "Editor.SaveFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveFile(path string) error",
              "doc": "SaveFile encodes the scene to YAML and writes it to path, then rebuilds any other open tabs that instance or inherit scenes.\n",
              "file": "pkg/editor/state.go",
              "line": 1812
            },
            {
              "name": "SaveGridMap",
              "anchor": "Editor.SaveGridMap",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveGridMap() error",
              "doc": "SaveGridMap encodes the open GridMap as canonical YAML and writes it through OnSaveGridMap when set,\nor atomically to its file path otherwise.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 685
            },
            {
              "name": "SaveGridMapFile",
              "anchor": "Editor.SaveGridMapFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveGridMapFile(p string) error",
              "doc": "SaveGridMapFile encodes the open GridMap as canonical YAML and writes it atomically to p.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 716
            },
            {
              "name": "SaveLayout",
              "anchor": "Editor.SaveLayout",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveLayout() error",
              "doc": "SaveLayout encodes the editor's current dock layout (dropping any non-existent panels) and writes it atomically to Editor.LayoutPath when set.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1252
            },
            {
              "name": "SaveLocalizationYAML",
              "anchor": "Editor.SaveLocalizationYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveLocalizationYAML(locale string) ([]byte, error)",
              "doc": "SaveLocalizationYAML encodes locale's string table as deterministic canonical YAML.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 670
            },
            {
              "name": "SaveLocalizations",
              "anchor": "Editor.SaveLocalizations",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveLocalizations() error",
              "doc": "SaveLocalizations writes each locale's canonical YAML file to <LocalizationDir>/<locale>.yaml and removes files for locales that were loaded from disk and subsequently removed.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 700
            },
            {
              "name": "SaveLocalizationsTo",
              "anchor": "Editor.SaveLocalizationsTo",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveLocalizationsTo(dir string) error",
              "doc": "SaveLocalizationsTo writes each locale's canonical YAML file to <dir>/<locale>.yaml and sets dir as the workspace's localization directory.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 708
            },
            {
              "name": "SaveMaterial",
              "anchor": "Editor.SaveMaterial",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveMaterial() error",
              "doc": "SaveMaterial persists the open material via OnSaveMaterial when set, or to MaterialPath via SaveMaterialFile.\n",
              "file": "pkg/editor/materials.go",
              "line": 652
            },
            {
              "name": "SaveMaterialFile",
              "anchor": "Editor.SaveMaterialFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveMaterialFile(filePath string) error",
              "doc": "SaveMaterialFile encodes the open material with resource.Encode, writes it atomically to filePath, remembers filePath, and reloads live resource libraries.\n",
              "file": "pkg/editor/materials.go",
              "line": 609
            },
            {
              "name": "SaveMaterialYAML",
              "anchor": "Editor.SaveMaterialYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveMaterialYAML() ([]byte, error)",
              "doc": "SaveMaterialYAML encodes the open material with resource.Encode.\n",
              "file": "pkg/editor/materials.go",
              "line": 601
            },
            {
              "name": "SaveParticleEmitterFile",
              "anchor": "Editor.SaveParticleEmitterFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveParticleEmitterFile(filePath string) error",
              "doc": "SaveParticleEmitterFile encodes the open particle emitter to deterministic YAML, writes it atomically to filePath, remembers filePath, and hot-reloads matching live scene emitters.\n",
              "file": "pkg/editor/particles.go",
              "line": 363
            },
            {
              "name": "SaveParticleEmitterYAML",
              "anchor": "Editor.SaveParticleEmitterYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveParticleEmitterYAML() ([]byte, error)",
              "doc": "SaveParticleEmitterYAML encodes the open particle emitter as deterministic versioned YAML.\n",
              "file": "pkg/editor/particles.go",
              "line": 355
            },
            {
              "name": "SavePlayRollingReplay",
              "anchor": "Editor.SavePlayRollingReplay",
              "recv": "*Editor",
              "decl": "func (e *Editor) SavePlayRollingReplay() (relPath, absPath string, rec *replay.Recording, err error)",
              "doc": "SavePlayRollingReplay atomically encodes and writes Play mode's rolling recording under replays/<scene>-<frame>.replay.yaml\nusing replay version 2 YAML.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 600
            },
            {
              "name": "SaveProject",
              "anchor": "Editor.SaveProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveProject() error",
              "doc": "SaveProject writes the open project to ProjectPath in the canonical form project.Encode writes, which keeps no comments, and writes the fields game.yaml owns into the nsgo.yaml beside it when there is one (project.File.SyncNSGo), so the two never disagree.\n",
              "file": "pkg/editor/project.go",
              "line": 350
            },
            {
              "name": "SaveProjectPermissions",
              "anchor": "Editor.SaveProjectPermissions",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveProjectPermissions() error",
              "doc": "SaveProjectPermissions writes the editor's active permission rules to PermissionsPath().\n",
              "file": "pkg/editor/permissions.go",
              "line": 1523
            },
            {
              "name": "SaveProjectRules",
              "anchor": "Editor.SaveProjectRules",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveProjectRules() error",
              "doc": "SaveProjectRules writes the current AGENTS.md content to disk.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 952
            },
            {
              "name": "SaveReleaseNotes",
              "anchor": "Editor.SaveReleaseNotes",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveReleaseNotes() error",
              "doc": "SaveReleaseNotes writes the current RELEASE NOTES text atomically to the exact Markdown file\nread by `game release -release-notes`, modifying ONLY that file.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 445
            },
            {
              "name": "SaveRigFile",
              "anchor": "Editor.SaveRigFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveRigFile(filePath string) error",
              "doc": "SaveRigFile writes the open rig atomically to filePath and remembers filePath as RigPath.\n",
              "file": "pkg/editor/rig.go",
              "line": 456
            },
            {
              "name": "SaveRigYAML",
              "anchor": "Editor.SaveRigYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveRigYAML() ([]byte, error)",
              "doc": "SaveRigYAML encodes the open rig as deterministic .skel.yaml bytes.\nWhen the rig was opened from existing YAML and has not been modified (or all edits were undone),\nSaveRigYAML returns the exact original bytes unchanged.\n",
              "file": "pkg/editor/rig.go",
              "line": 445
            },
            {
              "name": "SaveRooms",
              "anchor": "Editor.SaveRooms",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveRooms() error",
              "doc": "SaveRooms persists the open room map to OnSaveRooms (when set) or its file path.\n",
              "file": "pkg/editor/rooms.go",
              "line": 385
            },
            {
              "name": "SaveRoomsFile",
              "anchor": "Editor.SaveRoomsFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveRoomsFile(filePath string) error",
              "doc": "SaveRoomsFile encodes the open room map to deterministic YAML and writes it atomically to filePath.\n",
              "file": "pkg/editor/rooms.go",
              "line": 353
            },
            {
              "name": "SaveRoomsYAML",
              "anchor": "Editor.SaveRoomsYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveRoomsYAML() ([]byte, error)",
              "doc": "SaveRoomsYAML validates and encodes the open room map to deterministic YAML using rooms.Encode.\n",
              "file": "pkg/editor/rooms.go",
              "line": 336
            },
            {
              "name": "SaveSceneAs",
              "anchor": "Editor.SaveSceneAs",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveSceneAs(rel string) (string, error)",
              "doc": "SaveSceneAs writes the open scene to rel, a slash-separated path from the root of the open project, and makes that file the scene's: FilePath and ScenePath name it, Save writes there and OnSave, which persisted the scene before, is cleared. A path without a .yaml or .yml extension gets \".scene.yaml\" (one ending in \".scene\" gets \".yaml\"), and SaveSceneAs returns the path it wrote. It refuses the names of the project's own files, game.yaml and nsgo.yaml, makes the directories the path needs and never overwrites another file (ErrFileExists); saving to the scene's own path saves it. It refuses while playing (ErrPlaying) and returns ErrNoProject without a project.\n",
              "file": "pkg/editor/scenefile.go",
              "line": 408
            },
            {
              "name": "SaveSettings",
              "anchor": "Editor.SaveSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveSettings() error",
              "doc": "SaveSettings persists the editor's current settings to SettingsPath (or DefaultSettingsPath() when SettingsPath is empty).\n",
              "file": "pkg/editor/settings.go",
              "line": 971
            },
            {
              "name": "SaveStatesFile",
              "anchor": "Editor.SaveStatesFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveStatesFile(path string) error",
              "doc": "SaveStatesFile writes the open state machine atomically to path and updates StatesPath.\n",
              "file": "pkg/editor/states.go",
              "line": 393
            },
            {
              "name": "SaveStatesYAML",
              "anchor": "Editor.SaveStatesYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveStatesYAML() ([]byte, error)",
              "doc": "SaveStatesYAML encodes the open state machine as canonical deterministic YAML.\n",
              "file": "pkg/editor/states.go",
              "line": 385
            },
            {
              "name": "SaveStatus",
              "anchor": "Editor.SaveStatus",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveStatus() SaveStatus",
              "doc": "SaveStatus returns the current save status for the status bar, unsaved dot, and editormcp tool warnings.\n",
              "file": "pkg/editor/autosave.go",
              "line": 268
            },
            {
              "name": "SaveStatusTooltip",
              "anchor": "Editor.SaveStatusTooltip",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveStatusTooltip() string",
              "doc": "SaveStatusTooltip returns the hover tooltip text for the Saved indicator in the status bar.\n",
              "file": "pkg/editor/autosave.go",
              "line": 312
            },
            {
              "name": "SaveTab",
              "anchor": "Editor.SaveTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveTab(index int) error",
              "doc": "SaveTab saves the scene in tab index to its OnSave callback or FilePath, leaving other tabs and the project file unchanged, and rebuilds any other open tabs that instance or inherit scenes.\n",
              "file": "pkg/editor/tabs.go",
              "line": 557
            },
            {
              "name": "SaveTerrain",
              "anchor": "Editor.SaveTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveTerrain() error",
              "doc": "SaveTerrain writes the open terrain's 16-bit PNG heightmap, weight/splat maps,\nfoliage density maps, and deterministic *.terrain.yaml back to disk.\n",
              "file": "pkg/editor/terrain.go",
              "line": 745
            },
            {
              "name": "SaveTerrainTo",
              "anchor": "Editor.SaveTerrainTo",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveTerrainTo(yamlPath string) error",
              "doc": "SaveTerrainTo writes the open terrain's 16-bit grayscale PNG heightmap,\nweight/splat maps, foliage density maps, and deterministic *.terrain.yaml\nto yamlPath (creating parent directories as needed).\n",
              "file": "pkg/editor/terrain.go",
              "line": 761
            },
            {
              "name": "SaveTileset",
              "anchor": "Editor.SaveTileset",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveTileset() error",
              "doc": "SaveTileset writes the open tileset via OnSaveTileset if set, or atomically to its file path on disk.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 367
            },
            {
              "name": "SaveTilesetYAML",
              "anchor": "Editor.SaveTilesetYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveTilesetYAML() ([]byte, error)",
              "doc": "SaveTilesetYAML validates and encodes the open tileset document to deterministic YAML.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 359
            },
            {
              "name": "SaveViewState",
              "anchor": "Editor.SaveViewState",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveViewState() error",
              "doc": "SaveViewState records the open scene's view, the 3D viewport's camera, in the open project's ViewStateFile, so opening the scene again shows it as it is now. The editor saves it itself as another scene opens, as the scene is saved and as the window closes; an app that ends the editor another way calls it first. It writes nothing without a project or for a scene outside it, and leaves the file as it is when it already holds this view. Creating the .game folder, it writes a .gitignore there that ignores everything in it, unless one is there already. Scenes the file lists whose files are gone are dropped from it, and a file that does not parse is written afresh; a file that does not read, or that a newer editor wrote, is left as it is and reported. A camera holding a value that is not finite is saved as DefaultOrbitCamera3D, so the file always loads.\n",
              "file": "pkg/editor/viewstate.go",
              "line": 169
            },
            {
              "name": "SaveYAML",
              "anchor": "Editor.SaveYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SaveYAML() ([]byte, error)",
              "doc": "SaveYAML encodes the current edit SceneDoc to deterministic YAML.\nIf Play mode is active, it returns a copy of the pre-play snapshot so runtime\nsimulation state never leaks into saved YAML.\n",
              "file": "pkg/editor/state.go",
              "line": 1724
            },
            {
              "name": "ScaleObject",
              "anchor": "Editor.ScaleObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) ScaleObject(id string, sx, sy float32) error",
              "doc": "ScaleObject sets object id's scale to (sx, sy) as an undoable command. It refuses a scale under which the object's or a descendant's sprite would be sheared, taking its ancestors' transforms into account (see sceneformat.CheckObjectTree).\nWhen id names an instanced or inherited object, it records an override on its instance or inheriting scene.\n",
              "file": "pkg/editor/state.go",
              "line": 2419
            },
            {
              "name": "ScaleObject3D",
              "anchor": "Editor.ScaleObject3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ScaleObject3D(id string, sx, sy, sz float32) error",
              "doc": "ScaleObject3D sets object id's 3D scale (sx, sy, sz) as an undoable command. It refuses a scale under which the object's or a descendant's sprite would be sheared, taking its ancestors' transforms into account (see sceneformat.CheckObjectTree).\n",
              "file": "pkg/editor/state.go",
              "line": 2723
            },
            {
              "name": "ScaleRigBone",
              "anchor": "Editor.ScaleRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) ScaleRigBone(name string, scaleX, scaleY float32) error",
              "doc": "ScaleRigBone sets bone name's bind-pose local scale (scaleX, scaleY) as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 978
            },
            {
              "name": "Scene3D",
              "anchor": "Editor.Scene3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) Scene3D() (*scenemodel.Built, error)",
              "doc": "Scene3D returns the open scene built in 3D by scenemodel.Build, the geometry and materials the 3D viewport draws and picks by, with its nodes posed as the viewport shows them: by the open animation clip at the playhead, by the running game while playing, and with the objects hidden in the editor (SetObjectHidden) and screen-space layers invisible. It returns nil and the error when the scene does not build, such as when a model it names does not load.\n\nModels, material files and images load through the editor's Resolver when it implements scenemodel.ModelResolver, sceneformat.MaterialResolver or scenemodel.ImageResolver, and from the open project's files otherwise. A scene that instances or inherits other scene files is resolved first (sceneformat.Resolve), with the Resolver as its sceneformat.SceneResolver. The scene is built again only when what it looks like changes, not when an object moves, so the result stays the same between such edits and its nodes move in place.\n",
              "file": "pkg/editor/scene3d.go",
              "line": 162
            },
            {
              "name": "SceneBreadcrumbName",
              "anchor": "Editor.SceneBreadcrumbName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneBreadcrumbName() string",
              "doc": "SceneBreadcrumbName returns a concise scene label for the header breadcrumb.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 303
            },
            {
              "name": "SceneDirty",
              "anchor": "Editor.SceneDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneDirty() bool",
              "doc": "SceneDirty reports whether the open scene differs from what it was opened from or last saved to. It compares encodings, as ProjectDirty does, so undoing back to the saved state makes the scene clean again. While playing it compares the scene as it was before Play.\n",
              "file": "pkg/editor/scenefile.go",
              "line": 35
            },
            {
              "name": "SceneInstances",
              "anchor": "Editor.SceneInstances",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneInstances(scenePath string) []string",
              "doc": "SceneInstances returns the IDs of all local objects in the active scene that instance scenePath, in document order.\n",
              "file": "pkg/editor/overrides.go",
              "line": 1896
            },
            {
              "name": "SceneLabel",
              "anchor": "Editor.SceneLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneLabel() string",
              "doc": "SceneLabel names the open scene as the toolbar and window title show it: its path from the project root (ScenePath) when it has one, else its file's path (FilePath), else \"Untitled\".\n",
              "file": "pkg/editor/scenefile.go",
              "line": 187
            },
            {
              "name": "SceneNodeCount",
              "anchor": "Editor.SceneNodeCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneNodeCount() int",
              "doc": "SceneNodeCount returns the total number of nodes (layers + all nested objects) in the open scene.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 338
            },
            {
              "name": "SceneObjectIDs",
              "anchor": "Editor.SceneObjectIDs",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneObjectIDs() []string",
              "doc": "SceneObjectIDs returns the IDs of every object in the open scene (including nested children and, when resolved, instanced or inherited objects) in document order.\n",
              "file": "pkg/editor/connections.go",
              "line": 123
            },
            {
              "name": "SceneOpenError",
              "anchor": "Editor.SceneOpenError",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneOpenError() *SceneOpenError",
              "doc": "SceneOpenError returns a copy of the active scene-open error state, or nil when none.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 99
            },
            {
              "name": "SceneOverlays",
              "anchor": "Editor.SceneOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneOverlays() []SceneOverlayEntry",
              "doc": "SceneOverlays returns a deep copy of the active live scene overlay entries.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 821
            },
            {
              "name": "SceneRailObjectKind",
              "anchor": "Editor.SceneRailObjectKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneRailObjectKind(id string) string",
              "doc": "SceneRailObjectKind returns the concise Spec kind tag for an object row in the scene rail\n(e.g. \"prefab\", \"sprite\", \"trigger\", \"group\", \"mesh\", \"light\", \"camera\", \"node\").\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 441
            },
            {
              "name": "SceneTaskOverlays",
              "anchor": "Editor.SceneTaskOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneTaskOverlays() []ObjectTaskOverlay",
              "doc": "SceneTaskOverlays returns all active numbered overlays (editing and holding) for running tasks in the open scene.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2879
            },
            {
              "name": "SceneTreeFilter",
              "anchor": "Editor.SceneTreeFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneTreeFilter() string",
              "doc": "SceneTreeFilter returns the current left-rail Scene Tree search query.\n",
              "file": "pkg/editor/scenetree.go",
              "line": 19
            },
            {
              "name": "SceneTreeFilterOpen",
              "anchor": "Editor.SceneTreeFilterOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneTreeFilterOpen() bool",
              "doc": "SceneTreeFilterOpen reports whether the left-rail Scene Tree filter bar is visible.\n",
              "file": "pkg/editor/scenetree.go",
              "line": 36
            },
            {
              "name": "SceneTreeTab",
              "anchor": "Editor.SceneTreeTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneTreeTab() SceneTreeTab",
              "doc": "SceneTreeTab returns whether the scene tree panel is showing the local scene document or the live remote tree.\n",
              "file": "pkg/editor/remote.go",
              "line": 327
            },
            {
              "name": "SceneUsedPrefabs",
              "anchor": "Editor.SceneUsedPrefabs",
              "recv": "*Editor",
              "decl": "func (e *Editor) SceneUsedPrefabs() []string",
              "doc": "SceneUsedPrefabs returns the sorted, deduplicated project-relative paths of\nprefabs and instanced scenes referenced by objects in the open scene.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 363
            },
            {
              "name": "ScreenToCanvas",
              "anchor": "Editor.ScreenToCanvas",
              "recv": "*Editor",
              "decl": "func (e *Editor) ScreenToCanvas(x, y float32) (float32, float32)",
              "doc": "ScreenToCanvas converts a point on the scene's virtual screen, where screen-space layers draw, into a point on the viewport's canvas.\n",
              "file": "pkg/editor/viewport.go",
              "line": 70
            },
            {
              "name": "ScreenToGridMapCell",
              "anchor": "Editor.ScreenToGridMapCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) ScreenToGridMapCell(sx, sy, w, h float32) (world3d.GridCoord, bool)",
              "doc": "ScreenToGridMapCell intersects the 3D camera ray at viewport pixel (sx, sy) with the active GridMap's\ncurrent floor plane (Y = Origin.Y + floor*CellSize.Y) and returns the integer GridCoord on that floor.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 997
            },
            {
              "name": "ScreenToWorld",
              "anchor": "Editor.ScreenToWorld",
              "recv": "*Editor",
              "decl": "func (e *Editor) ScreenToWorld(x, y float32) (float32, float32)",
              "doc": "ScreenToWorld converts a point on the scene's virtual screen into world coordinates by inverting the scene's camera, as the game sees the world.\n",
              "file": "pkg/editor/viewport.go",
              "line": 76
            },
            {
              "name": "Search",
              "anchor": "Editor.Search",
              "recv": "*Editor",
              "decl": "func (e *Editor) Search(query string) ([]SearchResult, error)",
              "doc": "Search searches the open project for query across file names and paths, file UIDs,\nand inside scene files: scene names, inherits paths, object IDs and names,\ncomponent types, and prefab or scene references. Matching is case-insensitive;\nspace-separated terms must all match the same file or object. It returns\nErrNoProject when no project is open.\n",
              "file": "pkg/editor/search.go",
              "line": 130
            },
            {
              "name": "SearchErr",
              "anchor": "Editor.SearchErr",
              "recv": "*Editor",
              "decl": "func (e *Editor) SearchErr() error",
              "doc": "SearchErr returns the last error encountered while indexing or searching the project.\n",
              "file": "pkg/editor/search.go",
              "line": 260
            },
            {
              "name": "SearchLoading",
              "anchor": "Editor.SearchLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) SearchLoading() bool",
              "doc": "SearchLoading reports whether the Search & References panel is currently scanning or searching.\n",
              "file": "pkg/editor/search.go",
              "line": 265
            },
            {
              "name": "SearchMentions",
              "anchor": "Editor.SearchMentions",
              "recv": "*Editor",
              "decl": "func (e *Editor) SearchMentions(query string, group MentionGroup) []MentionItem",
              "doc": "SearchMentions queries the @-mention index for query and group without mutating picker UI state.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 723
            },
            {
              "name": "SearchOpen",
              "anchor": "Editor.SearchOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SearchOpen() bool",
              "doc": "SearchOpen reports whether the Project Search and References panel is open.\n",
              "file": "pkg/editor/search.go",
              "line": 187
            },
            {
              "name": "SearchQuery",
              "anchor": "Editor.SearchQuery",
              "recv": "*Editor",
              "decl": "func (e *Editor) SearchQuery() string",
              "doc": "SearchQuery returns the current query string in the project search field.\n",
              "file": "pkg/editor/search.go",
              "line": 226
            },
            {
              "name": "SearchResults",
              "anchor": "Editor.SearchResults",
              "recv": "*Editor",
              "decl": "func (e *Editor) SearchResults() []SearchResult",
              "doc": "SearchResults returns a copy of the current search panel results.\n",
              "file": "pkg/editor/search.go",
              "line": 250
            },
            {
              "name": "SearchTab",
              "anchor": "Editor.SearchTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SearchTab() SearchTab",
              "doc": "SearchTab returns the active tab of the Project Search and References panel.\n",
              "file": "pkg/editor/search.go",
              "line": 212
            },
            {
              "name": "SeekClip",
              "anchor": "Editor.SeekClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) SeekClip(at time.Duration)",
              "doc": "SeekClip moves the playhead to at, clamped to the clip, and shows the scene posed by the clip there.\n",
              "file": "pkg/editor/animation.go",
              "line": 805
            },
            {
              "name": "SeekCutscene",
              "anchor": "Editor.SeekCutscene",
              "recv": "*Editor",
              "decl": "func (e *Editor) SeekCutscene(at time.Duration)",
              "doc": "SeekCutscene scrubs the cutscene timeline playhead to at (clamped to [0, Length]) and poses the preview scene deterministically using cutscene.TimelinePlayer.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 651
            },
            {
              "name": "SeekModelPreviewAnimation",
              "anchor": "Editor.SeekModelPreviewAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SeekModelPreviewAnimation(relPath string, t time.Duration) error",
              "doc": "SeekModelPreviewAnimation scrubs the active model preview animation on relPath to timestamp t and evaluates the pose immediately.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 754
            },
            {
              "name": "SeekRig",
              "anchor": "Editor.SeekRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) SeekRig(at time.Duration)",
              "doc": "SeekRig moves the rig editor's playhead to at and evaluates the pose through the runtime skeletal.Skeleton.\n",
              "file": "pkg/editor/rig.go",
              "line": 1726
            },
            {
              "name": "SeenTips",
              "anchor": "Editor.SeenTips",
              "recv": "*Editor",
              "decl": "func (e *Editor) SeenTips() []string",
              "doc": "SeenTips returns a sorted copy of the onboarding tip IDs already seen or skipped in EditorSettings.\n",
              "file": "pkg/editor/first_run.go",
              "line": 459
            },
            {
              "name": "Select3DAt",
              "anchor": "Editor.Select3DAt",
              "recv": "*Editor",
              "decl": "func (e *Editor) Select3DAt(sx, sy, w, h float32) bool",
              "doc": "Select3DAt picks the deepest closest 3D object under (sx, sy) and selects it (stepping up to its\nparent or instance root on a second press when already selected), or clears selection on empty space.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 641
            },
            {
              "name": "Select3DAtWith",
              "anchor": "Editor.Select3DAtWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) Select3DAtWith(sx, sy, w, h float32, shift, mod bool) bool",
              "doc": "Select3DAtWith picks the deepest closest 3D object under (sx, sy) and applies selection with\noptional Shift (add) and Mod (toggle) modifiers.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 647
            },
            {
              "name": "Select3DAtWithModifiers",
              "anchor": "Editor.Select3DAtWithModifiers",
              "recv": "*Editor",
              "decl": "func (e *Editor) Select3DAtWithModifiers(sx, sy, w, h float32, shift, mod, alt bool) bool",
              "doc": "Select3DAtWithModifiers picks the deepest closest 3D object under (sx, sy) and applies selection\nwith optional Shift (add), Mod (toggle), and Alt/Option (pick parent or owning scene instance root)\nmodifiers. A repeated plain press on an already-selected nested child steps selection up to its\nparent (and instance root) before cycling back to the child.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 655
            },
            {
              "name": "SelectAgentThread",
              "anchor": "Editor.SelectAgentThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectAgentThread(id string) error",
              "doc": "SelectAgentThread switches to thread id. When id belongs to a different scene in the open\nproject, SelectAgentThread opens or activates that scene's tab before entering thread id.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 956
            },
            {
              "name": "SelectAsset",
              "anchor": "Editor.SelectAsset",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectAsset(atlasName, frameName string) bool",
              "doc": "SelectAsset marks the named atlas frame as selected in the Asset Browser.\n",
              "file": "pkg/editor/browser.go",
              "line": 76
            },
            {
              "name": "SelectAssetPath",
              "anchor": "Editor.SelectAssetPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectAssetPath(relPath string)",
              "doc": "SelectAssetPath selects the asset at relPath in the asset drawer and resets frame preview state.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 558
            },
            {
              "name": "SelectAudioBus",
              "anchor": "Editor.SelectAudioBus",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectAudioBus(name string) bool",
              "doc": "SelectAudioBus selects bus in the mixer panel when it exists in the open project.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 260
            },
            {
              "name": "SelectAudioFile",
              "anchor": "Editor.SelectAudioFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectAudioFile(relPath string)",
              "doc": "SelectAudioFile sets the project-relative audio file path selected for auditioning.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 281
            },
            {
              "name": "SelectBuildDevice",
              "anchor": "Editor.SelectBuildDevice",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectBuildDevice(deviceID string)",
              "doc": "SelectBuildDevice selects a run-on-device entry on the finished build view.\n",
              "file": "pkg/editor/build_release.go",
              "line": 923
            },
            {
              "name": "SelectBuildPreset",
              "anchor": "Editor.SelectBuildPreset",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectBuildPreset(platform string)",
              "doc": "SelectBuildPreset selects platform in the Build and Release screen's preset list.\n",
              "file": "pkg/editor/build_release.go",
              "line": 939
            },
            {
              "name": "SelectChangedFile",
              "anchor": "Editor.SelectChangedFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectChangedFile(filePath string) error",
              "doc": "SelectChangedFile selects the changed file at repo-relative path for preview in the Review layout.\n",
              "file": "pkg/editor/changes.go",
              "line": 1807
            },
            {
              "name": "SelectClipKey",
              "anchor": "Editor.SelectClipKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectClipKey(track, key int)",
              "doc": "SelectClipKey selects key key on track track in the animation editor; an index out of range clears the selection.\n",
              "file": "pkg/editor/animation.go",
              "line": 789
            },
            {
              "name": "SelectCodeReviewFile",
              "anchor": "Editor.SelectCodeReviewFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectCodeReviewFile(relPath string)",
              "doc": "SelectCodeReviewFile switches the focused file in the Go code review screen.\n",
              "file": "pkg/editor/code_review.go",
              "line": 919
            },
            {
              "name": "SelectCutsceneClip",
              "anchor": "Editor.SelectCutsceneClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectCutsceneClip(trackIdx, clipIdx int)",
              "doc": "SelectCutsceneClip selects the clip at (trackIdx, clipIdx) on the displayed cutscene timeline.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 683
            },
            {
              "name": "SelectCutsceneClipByID",
              "anchor": "Editor.SelectCutsceneClipByID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectCutsceneClipByID(clipID string) bool",
              "doc": "SelectCutsceneClipByID selects the clip with the given clip ID on the displayed cutscene timeline.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 698
            },
            {
              "name": "SelectDataTableReviewFile",
              "anchor": "Editor.SelectDataTableReviewFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectDataTableReviewFile(index int) error",
              "doc": "SelectDataTableReviewFile switches the active file in the Data Table review by 0-based index.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 785
            },
            {
              "name": "SelectDataTableReviewFileByPath",
              "anchor": "Editor.SelectDataTableReviewFileByPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectDataTableReviewFileByPath(relOrName string) error",
              "doc": "SelectDataTableReviewFileByPath switches the active file in the review by project-relative or base path.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 807
            },
            {
              "name": "SelectExportPlatform",
              "anchor": "Editor.SelectExportPlatform",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectExportPlatform(platform string)",
              "doc": "SelectExportPlatform selects platform in the Export panel when it has a preset in the open project.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 367
            },
            {
              "name": "SelectFile",
              "anchor": "Editor.SelectFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectFile(relPath string)",
              "doc": "SelectFile selects relPath, a slash-separated path from the open project's\nroot, in the file browser.\n",
              "file": "pkg/editor/problems.go",
              "line": 579
            },
            {
              "name": "SelectFirstRunAgent",
              "anchor": "Editor.SelectFirstRunAgent",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectFirstRunAgent(kind string) error",
              "doc": "SelectFirstRunAgent selects kind (\"claude\", \"codex\", or \"apikey\") in Connect in place.\n",
              "file": "pkg/editor/first_run.go",
              "line": 887
            },
            {
              "name": "SelectFirstRunPlanAnswer",
              "anchor": "Editor.SelectFirstRunPlanAnswer",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectFirstRunPlanAnswer(optionID string) bool",
              "doc": "SelectFirstRunPlanAnswer selects an answer option for the first plan's clarifying question,\nupdating the affected step description live.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1416
            },
            {
              "name": "SelectGeneratedCandidate",
              "anchor": "Editor.SelectGeneratedCandidate",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectGeneratedCandidate(requestID, candidateID string)",
              "doc": "SelectGeneratedCandidate selects candidateID inside requestID for detailed style and source inspection.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2296
            },
            {
              "name": "SelectGeneratedRequest",
              "anchor": "Editor.SelectGeneratedRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectGeneratedRequest(requestID string)",
              "doc": "SelectGeneratedRequest activates requestID in the Generated Assets screen.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2275
            },
            {
              "name": "SelectHUDNode",
              "anchor": "Editor.SelectHUDNode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectHUDNode(id string)",
              "doc": "SelectHUDNode selects the node with id in the active screen.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 961
            },
            {
              "name": "SelectImportSliceCell",
              "anchor": "Editor.SelectImportSliceCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectImportSliceCell(cell int)",
              "doc": "SelectImportSliceCell selects the 0-based slice cell in the image import preview for per-cell pivot inspection and editing.\n",
              "file": "pkg/editor/asset_import_pivot.go",
              "line": 144
            },
            {
              "name": "SelectInputAction",
              "anchor": "Editor.SelectInputAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectInputAction(name string) bool",
              "doc": "SelectInputAction selects action in the Input Map panel when it exists.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 207
            },
            {
              "name": "SelectInputBinding",
              "anchor": "Editor.SelectInputBinding",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectInputBinding(index int) bool",
              "doc": "SelectInputBinding selects binding index within the currently selected action.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 243
            },
            {
              "name": "SelectMarquee2D",
              "anchor": "Editor.SelectMarquee2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectMarquee2D(x0, y0, x1, y1 float32, add, toggle bool, mode MarqueeMode) []string",
              "doc": "SelectMarquee2D selects visible, unlocked objects matching the canvas rectangle\nfrom (x0, y0) to (x1, y1) directly (without an interactive drag) and returns the\nresulting selected object IDs.\n",
              "file": "pkg/editor/marquee.go",
              "line": 127
            },
            {
              "name": "SelectModel",
              "anchor": "Editor.SelectModel",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectModel(m ModelEntry) error",
              "doc": "SelectModel makes m the model the Place tool adds in the 3D viewport (SelectedModel), or with an empty entry clears it. It refuses an entry that names neither or both of a primitive and a file, or one of a kind an object cannot draw.\n",
              "file": "pkg/editor/models.go",
              "line": 163
            },
            {
              "name": "SelectModelPreviewAnimation",
              "anchor": "Editor.SelectModelPreviewAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectModelPreviewAnimation(relPath string, index int) error",
              "doc": "SelectModelPreviewAnimation selects animation index on relPath and evaluates its pose at time 0 (continuing playback if already playing, or remaining paused otherwise).\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 658
            },
            {
              "name": "SelectNextObject",
              "anchor": "Editor.SelectNextObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectNextObject() string",
              "doc": "SelectNextObject selects the next visible, unlocked object in scene order (wrapping\naround to the first), returning the newly selected ID or \"\" when the scene has none.\nUsed by Tab in the viewport region.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 830
            },
            {
              "name": "SelectObject",
              "anchor": "Editor.SelectObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectObject(id string) bool",
              "doc": "SelectObject selects the object with ID id (or clears selection if id == \"\").\nReturns true if selection succeeded (or cleared).\n",
              "file": "pkg/editor/state.go",
              "line": 1993
            },
            {
              "name": "SelectObjects",
              "anchor": "Editor.SelectObjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectObjects(ids []string) bool",
              "doc": "SelectObjects selects all valid existing objects in ids (deduplicated, preserving order).\nThe last valid ID becomes SelectedID. Passing an empty slice clears the selection.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 109
            },
            {
              "name": "SelectObjectsWithPrimary",
              "anchor": "Editor.SelectObjectsWithPrimary",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectObjectsWithPrimary(ids []string, primary string) bool",
              "doc": "SelectObjectsWithPrimary replaces the current selection with the unique existing object IDs in ids.\nprimary sets SelectedID when it appears in the resulting set; otherwise the first ID\nbecomes primary. Passing an empty slice clears selection and returns true; passing only\nunknown IDs leaves selection unchanged and returns false.\n",
              "file": "pkg/editor/selection.go",
              "line": 48
            },
            {
              "name": "SelectPaletteStamp",
              "anchor": "Editor.SelectPaletteStamp",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectPaletteStamp(col0, row0, col1, row1 int) (TileStamp, error)",
              "doc": "SelectPaletteStamp selects an inclusive rectangle of tiles from the active layer's tile palette grid\n(using TilePalette().Columns columns per row), sets it as the active stamp pattern, and returns it.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 225
            },
            {
              "name": "SelectPaletteStampRange",
              "anchor": "Editor.SelectPaletteStampRange",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectPaletteStampRange(fromTileID, toTileID int) (TileStamp, error)",
              "doc": "SelectPaletteStampRange selects the rectangle in the active tile palette spanning fromTileID to toTileID\nas the active stamp pattern.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 279
            },
            {
              "name": "SelectParticleStop",
              "anchor": "Editor.SelectParticleStop",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectParticleStop(index int)",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1154
            },
            {
              "name": "SelectPermissionProfile",
              "anchor": "Editor.SelectPermissionProfile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectPermissionProfile(profile PermissionProfile) error",
              "doc": "SelectPermissionProfile switches to profile and fills the rule table with PermissionPreset(profile), persisting permissions.yaml when a project is open.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1307
            },
            {
              "name": "SelectPlaytestReportIndex",
              "anchor": "Editor.SelectPlaytestReportIndex",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectPlaytestReportIndex(idx int)",
              "doc": "SelectPlaytestReportIndex switches the active entry in the Playtest Report session (used by the BOT PROFILE switcher when multiple reports are loaded).\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 642
            },
            {
              "name": "SelectPrefab",
              "anchor": "Editor.SelectPrefab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectPrefab(name string) bool",
              "doc": "SelectPrefab marks the named registered prefab as selected in the Asset Browser (clearing SelectedAsset),\nor clears it when name is empty.\n",
              "file": "pkg/editor/overrides.go",
              "line": 2097
            },
            {
              "name": "SelectPreviousObject",
              "anchor": "Editor.SelectPreviousObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectPreviousObject() string",
              "doc": "SelectPreviousObject selects the previous visible, unlocked object in scene order\n(wrapping around to the last), returning the newly selected ID or \"\" when the scene has none.\nUsed by Shift-Tab in the viewport region.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 837
            },
            {
              "name": "SelectProjectTemplate",
              "anchor": "Editor.SelectProjectTemplate",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectProjectTemplate(name string) bool",
              "doc": "SelectProjectTemplate selects the template named name on the Start Screen when it exists in ProjectTemplates.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 427
            },
            {
              "name": "SelectRemoteEntity",
              "anchor": "Editor.SelectRemoteEntity",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectRemoteEntity(ref string) error",
              "doc": "SelectRemoteEntity selects a live entity by ref in the Remote tab and inspects its live components via game_entity_inspect.\nPassing an empty ref clears the remote selection.\n",
              "file": "pkg/editor/remote.go",
              "line": 1364
            },
            {
              "name": "SelectRemoteScene",
              "anchor": "Editor.SelectRemoteScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectRemoteScene(name string) error",
              "doc": "SelectRemoteScene chooses which remote scene's layers are shown in the Remote tab and refreshes layers immediately.\n",
              "file": "pkg/editor/remote.go",
              "line": 1336
            },
            {
              "name": "SelectRigAnimation",
              "anchor": "Editor.SelectRigAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectRigAnimation(name string) error",
              "doc": "SelectRigAnimation selects animation name in the rig editor (empty returns to bind pose) and updates the live preview.\n",
              "file": "pkg/editor/rig.go",
              "line": 1378
            },
            {
              "name": "SelectRigBone",
              "anchor": "Editor.SelectRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectRigBone(name string)",
              "doc": "SelectRigBone selects bone name in the rig editor, or clears the selection when empty.\n",
              "file": "pkg/editor/rig.go",
              "line": 705
            },
            {
              "name": "SelectRigSkin",
              "anchor": "Editor.SelectRigSkin",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectRigSkin(name string) error",
              "doc": "SelectRigSkin switches the preview skin in the rig editor.\n",
              "file": "pkg/editor/rig.go",
              "line": 1149
            },
            {
              "name": "SelectRigSlot",
              "anchor": "Editor.SelectRigSlot",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectRigSlot(name string)",
              "doc": "SelectRigSlot selects slot name in the rig editor, or clears the selection when empty.\n",
              "file": "pkg/editor/rig.go",
              "line": 720
            },
            {
              "name": "SelectRoom",
              "anchor": "Editor.SelectRoom",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectRoom(id string) bool",
              "doc": "SelectRoom selects the room with ID id in the open room map (or clears room selection\nwhen id == \"\"). Selecting a room deselects any scene object, layer, or asset file so the\ninspector displays the room's properties.\n",
              "file": "pkg/editor/rooms.go",
              "line": 437
            },
            {
              "name": "SelectSamePrefab",
              "anchor": "Editor.SelectSamePrefab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectSamePrefab(id string) ([]string, error)",
              "doc": "SelectSamePrefab selects every object in the open scene that shares the same Prefab (or instanced Scene)\nreference as object id (defaulting to SelectedID). Returns an error if the object has neither Prefab nor Scene.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 467
            },
            {
              "name": "SelectSketchMark",
              "anchor": "Editor.SelectSketchMark",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectSketchMark(number int)",
              "doc": "SelectSketchMark selects the 1-based mark number (or clears mark selection when number <= 0).\n",
              "file": "pkg/editor/sketch.go",
              "line": 610
            },
            {
              "name": "SelectStatesNode",
              "anchor": "Editor.SelectStatesNode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectStatesNode(name string)",
              "doc": "SelectStatesNode selects state name in the graph and switches the live preview to it.\n",
              "file": "pkg/editor/states.go",
              "line": 115
            },
            {
              "name": "SelectTab",
              "anchor": "Editor.SelectTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectTab(index int) error",
              "doc": "SelectTab activates the open scene tab at index without clearing any tab's undo history.\nIt returns ErrPlaying while Play mode is active.\n",
              "file": "pkg/editor/tabs.go",
              "line": 499
            },
            {
              "name": "SelectTabByID",
              "anchor": "Editor.SelectTabByID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectTabByID(id uint64) error",
              "doc": "SelectTabByID activates the open scene tab with ID id.\n",
              "file": "pkg/editor/tabs.go",
              "line": 548
            },
            {
              "name": "SelectedAssetPath",
              "anchor": "Editor.SelectedAssetPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedAssetPath() string",
              "doc": "SelectedAssetPath returns the currently selected asset path in the asset drawer.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 550
            },
            {
              "name": "SelectedAudioBus",
              "anchor": "Editor.SelectedAudioBus",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedAudioBus() string",
              "doc": "SelectedAudioBus returns the currently selected audio bus name in the mixer panel, falling back to the first declared bus when the selection is unset or no longer exists.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 245
            },
            {
              "name": "SelectedAudioFile",
              "anchor": "Editor.SelectedAudioFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedAudioFile() string",
              "doc": "SelectedAudioFile returns the project-relative audio file path selected for auditioning.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 273
            },
            {
              "name": "SelectedClipKey",
              "anchor": "Editor.SelectedClipKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedClipKey() (track, key int, ok bool)",
              "doc": "SelectedClipKey returns the key selected in the animation editor and whether one is.\n",
              "file": "pkg/editor/animation.go",
              "line": 780
            },
            {
              "name": "SelectedCutsceneClip",
              "anchor": "Editor.SelectedCutsceneClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedCutsceneClip() (trackIdx, clipIdx int, clip cutscene.Clip, track cutscene.Track, ok bool)",
              "doc": "SelectedCutsceneClip returns the currently selected track index, clip index, clip, and track on the displayed cutscene.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 670
            },
            {
              "name": "SelectedDismissTaskIDs",
              "anchor": "Editor.SelectedDismissTaskIDs",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedDismissTaskIDs() []string",
              "doc": "SelectedDismissTaskIDs returns the IDs of all Ready to review tasks currently checked for bulk dismissal, in list order.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2466
            },
            {
              "name": "SelectedExportPlatform",
              "anchor": "Editor.SelectedExportPlatform",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedExportPlatform() string",
              "doc": "SelectedExportPlatform returns the currently selected preset platform in the Export panel, falling back to the first declared preset.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 352
            },
            {
              "name": "SelectedHistoryStep",
              "anchor": "Editor.SelectedHistoryStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedHistoryStep() AgentHistorySelection",
              "doc": "SelectedHistoryStep returns the step currently highlighted in the History view.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1632
            },
            {
              "name": "SelectedIDs",
              "anchor": "Editor.SelectedIDs",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedIDs() []string",
              "doc": "SelectedIDs returns the IDs of all currently selected objects in selection order,\nor nil when no object is selected. When SelectedID was set directly without SelectObjects,\nit returns a single-element slice holding SelectedID if that object exists in Doc or the resolved scene.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 50
            },
            {
              "name": "SelectedImportSliceCell",
              "anchor": "Editor.SelectedImportSliceCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedImportSliceCell() int",
              "doc": "SelectedImportSliceCell returns the 0-based slice cell currently selected in the image import preview (0 by default).\n",
              "file": "pkg/editor/asset_import_pivot.go",
              "line": 133
            },
            {
              "name": "SelectedInputAction",
              "anchor": "Editor.SelectedInputAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedInputAction() string",
              "doc": "SelectedInputAction returns the selected action name in the Input Map panel, falling back to the first declared action when unset or missing.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 194
            },
            {
              "name": "SelectedInputBinding",
              "anchor": "Editor.SelectedInputBinding",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedInputBinding() int",
              "doc": "SelectedInputBinding returns the selected binding index within the selected action, or -1 when the selected action has no bindings.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 224
            },
            {
              "name": "SelectedObject",
              "anchor": "Editor.SelectedObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedObject() (*sceneformat.ObjectDoc, string)",
              "doc": "SelectedObject returns the currently selected ObjectDoc (local, instanced, or inherited) and its layer name, or nil, \"\".\n",
              "file": "pkg/editor/state.go",
              "line": 2044
            },
            {
              "name": "SelectedObjects",
              "anchor": "Editor.SelectedObjects",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedObjects() []*sceneformat.ObjectDoc",
              "doc": "SelectedObjects returns the ObjectDoc pointers for every selected object currently\npresent in e.Doc or the resolved scene, in selection order.\n",
              "file": "pkg/editor/selection.go",
              "line": 22
            },
            {
              "name": "SelectedProjectTemplate",
              "anchor": "Editor.SelectedProjectTemplate",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedProjectTemplate() string",
              "doc": "SelectedProjectTemplate returns the currently selected template name on the Start Screen.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 416
            },
            {
              "name": "SelectedRemoteEntity",
              "anchor": "Editor.SelectedRemoteEntity",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedRemoteEntity() string",
              "doc": "SelectedRemoteEntity returns the stable entity ref currently selected in the Remote tab, or \"\".\n",
              "file": "pkg/editor/remote.go",
              "line": 425
            },
            {
              "name": "SelectedRigBone",
              "anchor": "Editor.SelectedRigBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedRigBone() string",
              "doc": "SelectedRigBone returns the name of the currently selected bone in the rig editor, or \"\".\n",
              "file": "pkg/editor/rig.go",
              "line": 190
            },
            {
              "name": "SelectedRigSlot",
              "anchor": "Editor.SelectedRigSlot",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedRigSlot() string",
              "doc": "SelectedRigSlot returns the name of the currently selected slot in the rig editor, or \"\".\n",
              "file": "pkg/editor/rig.go",
              "line": 198
            },
            {
              "name": "SelectedRoom",
              "anchor": "Editor.SelectedRoom",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedRoom() *rooms.Room",
              "doc": "SelectedRoom returns a copy of the currently selected room, or nil when none is selected.\n",
              "file": "pkg/editor/rooms.go",
              "line": 422
            },
            {
              "name": "SelectedRoomID",
              "anchor": "Editor.SelectedRoomID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedRoomID() string",
              "doc": "SelectedRoomID returns the ID of the currently selected room in the open room map, or \"\".\n",
              "file": "pkg/editor/rooms.go",
              "line": 414
            },
            {
              "name": "SelectedSketchMark",
              "anchor": "Editor.SelectedSketchMark",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedSketchMark() int",
              "doc": "SelectedSketchMark returns the 1-based number of the currently selected sketch mark, or 0 when none is selected.\n",
              "file": "pkg/editor/sketch.go",
              "line": 602
            },
            {
              "name": "SelectedStatesNode",
              "anchor": "Editor.SelectedStatesNode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectedStatesNode() string",
              "doc": "SelectedStatesNode returns the currently selected (or active preview) state name in the graph.\n",
              "file": "pkg/editor/states.go",
              "line": 101
            },
            {
              "name": "SelectionCount",
              "anchor": "Editor.SelectionCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectionCount() int",
              "doc": "SelectionCount returns the number of currently selected objects.\n",
              "file": "pkg/editor/selection.go",
              "line": 11
            },
            {
              "name": "SelectionViewportBounds",
              "anchor": "Editor.SelectionViewportBounds",
              "recv": "*Editor",
              "decl": "func (e *Editor) SelectionViewportBounds(ids ...string) ([4]float32, bool)",
              "doc": "SelectionViewportBounds computes the union axis-aligned bounding box [minX, minY, maxX, maxY]\nin viewport canvas points for ids (defaulting to the current selection).\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 508
            },
            {
              "name": "SendAgentRequest",
              "anchor": "Editor.SendAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) SendAgentRequest(prompt string) (*AgentThreadRequest, error)",
              "doc": "SendAgentRequest appends a new request to the active thread (naming an unnamed thread after\nits first request), persists the thread to .nsgo/threads/<id>.yaml when a project is open,\nand invokes Editor.OnSendAgentRequest if set.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1080
            },
            {
              "name": "SendAgentRequestWith",
              "anchor": "Editor.SendAgentRequestWith",
              "recv": "*Editor",
              "decl": "func (e *Editor) SendAgentRequestWith(in AgentSendRequest) (*AgentThreadRequest, error)",
              "doc": "SendAgentRequestWith appends a configured request to the active thread, persists it to\n.nsgo/threads/<id>.yaml when a project is open, and invokes Editor.OnSendAgentRequest if set.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1086
            },
            {
              "name": "SendComposerPrompt",
              "anchor": "Editor.SendComposerPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) SendComposerPrompt() (AgentRequest, error)",
              "doc": "SendComposerPrompt assembles the request from the current draft and active chips (and nothing else),\ndelivers it to Editor.OnSendAgentComposerRequest when set, records the turn in the active thread, updates\ntoken usage from the agent's reported usage (or estimates it), and clears the draft.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2325
            },
            {
              "name": "SendPlayMarks",
              "anchor": "Editor.SendPlayMarks",
              "recv": "*Editor",
              "decl": "func (e *Editor) SendPlayMarks() (PlayMarksThread, bool)",
              "doc": "SendPlayMarks bundles all unsent marks into one PlayMarksThread, stores it in LastPlayMarksThread,\ninvokes Editor.OnPlayMarksThread if set, and updates the Agent tab. Returns (zero, false) when no unsent marks exist.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 724
            },
            {
              "name": "SendQueuedAgentRequest",
              "anchor": "Editor.SendQueuedAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) SendQueuedAgentRequest(id string) error",
              "doc": "SendQueuedAgentRequest dispatches one queued request once back online and below the weekly limit.\nWhile offline or while the weekly limit is still reached, it returns an error and leaves the item queued.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 437
            },
            {
              "name": "SendReviewNotes",
              "anchor": "Editor.SendReviewNotes",
              "recv": "*Editor",
              "decl": "func (e *Editor) SendReviewNotes() (ReviewNoteBatch, error)",
              "doc": "SendReviewNotes dispatches all remaining unsent draft notes to the agent over MCP (review_notes_get).\nNotes added and removed before calling SendReviewNotes never appear in the sent batch.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 606
            },
            {
              "name": "SendSketch",
              "anchor": "Editor.SendSketch",
              "recv": "*Editor",
              "decl": "func (e *Editor) SendSketch(prompt string) (SketchAgentRequest, error)",
              "doc": "SendSketch packages the active sketch marks (in exact scene coordinates), the rendered viewport PNG\nwith numbered marks overlaid, and prompt into a SketchAgentRequest, arms the confirmation hold gate\nso scene_edit refuses mutations until the person confirms, and invokes Editor.OnSendSketch if set.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1199
            },
            {
              "name": "SetActiveGridMapTile",
              "anchor": "Editor.SetActiveGridMapTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetActiveGridMapTile(tileID uint16)",
              "doc": "SetActiveGridMapTile selects the MeshLibrary tile ID used by GridMap Paint and Box Fill tools.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 220
            },
            {
              "name": "SetActiveGridMapTileByName",
              "anchor": "Editor.SetActiveGridMapTileByName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetActiveGridMapTileByName(name string) bool",
              "doc": "SetActiveGridMapTileByName selects the MeshLibrary item named name and reports whether it was found.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 242
            },
            {
              "name": "SetActiveLayer",
              "anchor": "Editor.SetActiveLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetActiveLayer(name string) bool",
              "doc": "SetActiveLayer selects the layer targeted by object placement and tile painting. When the layer's tileset (TilePalette) has no tile with ActiveTileID, its first tile becomes the active tile.\n",
              "file": "pkg/editor/state.go",
              "line": 1477
            },
            {
              "name": "SetActiveTerrain",
              "anchor": "Editor.SetActiveTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetActiveTerrain(name string)",
              "doc": "SetActiveTerrain sets the terrain set name used by ToolTerrain, PaintTerrain and EraseTerrain; choosing a terrain is view state and does not enter undo history.\n",
              "file": "pkg/editor/state.go",
              "line": 1536
            },
            {
              "name": "SetActiveTileFlip",
              "anchor": "Editor.SetActiveTileFlip",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetActiveTileFlip(flip uint32)",
              "doc": "SetActiveTileFlip sets the flip bits the Paint and Fill tools place tiles of a layered grid with (ActiveTileFlip); bits other than tilemap.FlipMask are dropped.\n",
              "file": "pkg/editor/state.go",
              "line": 1520
            },
            {
              "name": "SetActiveTileID",
              "anchor": "Editor.SetActiveTileID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetActiveTileID(id int)",
              "doc": "SetActiveTileID sets the tile GID used by PaintTile and FloodFillTile tools, which the tile palette (TilePaletteView) sets when a tile is pressed.\n",
              "file": "pkg/editor/state.go",
              "line": 1526
            },
            {
              "name": "SetActiveTileLayer",
              "anchor": "Editor.SetActiveTileLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetActiveTileLayer(name string) bool",
              "doc": "SetActiveTileLayer selects the tile layer of the active layer's layered grid that tile painting changes, as ActiveTileLayer describes; empty selects its first. It reports false, changing nothing, when the active layer's tilemap is not a layered grid with a tile layer of that name.\n",
              "file": "pkg/editor/state.go",
              "line": 1504
            },
            {
              "name": "SetAgentComposerDragOver",
              "anchor": "Editor.SetAgentComposerDragOver",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentComposerDragOver(active bool)",
              "doc": "SetAgentComposerDragOver sets whether the Agent composer shows its \"Drop to attach\" drop overlay.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 372
            },
            {
              "name": "SetAgentComposerText",
              "anchor": "Editor.SetAgentComposerText",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentComposerText(text string)",
              "doc": "SetAgentComposerText updates the multi-line draft in the Agent composer.\n",
              "file": "pkg/editor/agent.go",
              "line": 1566
            },
            {
              "name": "SetAgentImagePreviewID",
              "anchor": "Editor.SetAgentImagePreviewID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentImagePreviewID(id string)",
              "doc": "SetAgentImagePreviewID sets which image chip (or AgentBriefPreviewID) is showing its hover preview above the composer.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 390
            },
            {
              "name": "SetAgentMCPConnected",
              "anchor": "Editor.SetAgentMCPConnected",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentMCPConnected(connected bool, label string)",
              "doc": "SetAgentMCPConnected updates the live MCP connection status shown in the Agent panel header.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 862
            },
            {
              "name": "SetAgentMCPServerEnabled",
              "anchor": "Editor.SetAgentMCPServerEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentMCPServerEnabled(name string, enabled bool) error",
              "doc": "SetAgentMCPServerEnabled toggles an external MCP server on or off, persists editor.yaml,\nand syncs the open project's agent MCP configuration. Refused when invoked by an agent.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1134
            },
            {
              "name": "SetAgentOffline",
              "anchor": "Editor.SetAgentOffline",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentOffline(offline bool)",
              "doc": "SetAgentOffline switches the Agent panel into or out of offline mode.\nManual tools (select, move, inspector, game check, Play) keep working in offline mode.\nReturning online never auto-runs queued requests; each queued request waits to be sent explicitly.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1975
            },
            {
              "name": "SetAgentPanelOpen",
              "anchor": "Editor.SetAgentPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentPanelOpen(open bool)",
              "doc": "SetAgentPanelOpen opens or closes the Agent panel tab.\n",
              "file": "pkg/editor/agent.go",
              "line": 783
            },
            {
              "name": "SetAgentPanelRef",
              "anchor": "Editor.SetAgentPanelRef",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentPanelRef(ref *core.Ref)",
              "doc": "SetAgentPanelRef registers the agent panel container ref so focus-stability rules\ncan check whether keyboard focus is already inside the agent panel before focusing\na newly arrived permission card or question.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 717
            },
            {
              "name": "SetAgentPermissionProfile",
              "anchor": "Editor.SetAgentPermissionProfile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentPermissionProfile(profile AgentPermissionProfile) error",
              "doc": "SetAgentPermissionProfile sets the editor's agent permission profile in Settings -> Permissions (permissions.yaml).\nStore uploads always ask first in Review uploads regardless of profile.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 316
            },
            {
              "name": "SetAgentPrivacy",
              "anchor": "Editor.SetAgentPrivacy",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentPrivacy(kind PrivacyContentKind, allowed bool) error",
              "doc": "SetAgentPrivacy updates one outbound privacy switch under WHAT MAY LEAVE THIS COMPUTER and persists editor.yaml.\nRefused when invoked by an agent.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1358
            },
            {
              "name": "SetAgentRewindMode",
              "anchor": "Editor.SetAgentRewindMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentRewindMode(mode AgentRewindMode)",
              "doc": "SetAgentRewindMode selects one of the three choices in the rewind popover.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 412
            },
            {
              "name": "SetAgentState",
              "anchor": "Editor.SetAgentState",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentState(state AgentState, detail string)",
              "doc": "SetAgentState updates the agent's live state and optional detail text shown in the header pill.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 515
            },
            {
              "name": "SetAgentStuckHint",
              "anchor": "Editor.SetAgentStuckHint",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentStuckHint(turnID, hint string)",
              "doc": "SetAgentStuckHint updates the draft hint text inside a Stuck card.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 940
            },
            {
              "name": "SetAgentSwitcherOpen",
              "anchor": "Editor.SetAgentSwitcherOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentSwitcherOpen(open bool)",
              "doc": "SetAgentSwitcherOpen opens or closes the thread switcher popover.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 994
            },
            {
              "name": "SetAgentSwitcherQuery",
              "anchor": "Editor.SetAgentSwitcherQuery",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentSwitcherQuery(q string)",
              "doc": "SetAgentSwitcherQuery updates the thread switcher search filter.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1025
            },
            {
              "name": "SetAgentTaskRoute",
              "anchor": "Editor.SetAgentTaskRoute",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentTaskRoute(taskKey, model string) error",
              "doc": "SetAgentTaskRoute updates which connection/model handles taskKey and persists editor.yaml.\nRefused when invoked by an agent.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 854
            },
            {
              "name": "SetAgentThreadSessionID",
              "anchor": "Editor.SetAgentThreadSessionID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentThreadSessionID(threadID, sessionID string) error",
              "doc": "SetAgentThreadSessionID records the external agent's session ID on threadID and persists it,\nso follow-up requests continue the same external agent session.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1193
            },
            {
              "name": "SetAgentTokenUsage",
              "anchor": "Editor.SetAgentTokenUsage",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentTokenUsage(usage AgentTokenUsage)",
              "doc": "SetAgentTokenUsage updates the context meter from the agent's reported token usage.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2514
            },
            {
              "name": "SetAgentTurnReviewOpen",
              "anchor": "Editor.SetAgentTurnReviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentTurnReviewOpen(open bool)",
              "doc": "SetAgentTurnReviewOpen opens or closes the turn review state for the current pending turn.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 443
            },
            {
              "name": "SetAgentWaitingForYou",
              "anchor": "Editor.SetAgentWaitingForYou",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAgentWaitingForYou(req AgentOpenRequest)",
              "doc": "SetAgentWaitingForYou transitions the status chip to \"Waiting for you · elapsed\" with an open request card.\n",
              "file": "pkg/editor/agent.go",
              "line": 1434
            },
            {
              "name": "SetAmbientColor",
              "anchor": "Editor.SetAmbientColor",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAmbientColor(color string) error",
              "doc": "SetAmbientColor sets the scene's 2D lighting ambient color (SceneDoc.AmbientColor) through History.\nEmpty clears it; any non-empty value must be a CSS color accepted by core.ParseColor.\n",
              "file": "pkg/editor/lights2d_editor.go",
              "line": 44
            },
            {
              "name": "SetAppearance",
              "anchor": "Editor.SetAppearance",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAppearance(appearance Appearance) error",
              "doc": "SetAppearance updates the editor's appearance setting live through NSGo's Scope.SetAppearance. When SettingsPath is non-empty, the updated settings are saved to SettingsPath.\n",
              "file": "pkg/editor/settings.go",
              "line": 831
            },
            {
              "name": "SetAskFrozenFrameDraft",
              "anchor": "Editor.SetAskFrozenFrameDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAskFrozenFrameDraft(text string)",
              "doc": "SetAskFrozenFrameDraft updates the prompt draft in the \"Ask about frame N\" dialog.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 826
            },
            {
              "name": "SetAskInPlaceDraft",
              "anchor": "Editor.SetAskInPlaceDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAskInPlaceDraft(text string)",
              "doc": "SetAskInPlaceDraft updates the multi-line text draft of the open in-place composer\nand clears any highlighted suggestion so free typing is never blocked.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 198
            },
            {
              "name": "SetAssetApprovalAuthor",
              "anchor": "Editor.SetAssetApprovalAuthor",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetApprovalAuthor(author string)",
              "doc": "SetAssetApprovalAuthor sets the author name written to approvedBy in <file>.source.yaml when picking a candidate.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 435
            },
            {
              "name": "SetAssetBrowserOpen",
              "anchor": "Editor.SetAssetBrowserOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetBrowserOpen(open bool)",
              "doc": "SetAssetBrowserOpen opens or closes the Asset Browser panel.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 255
            },
            {
              "name": "SetAssetDrawerFolder",
              "anchor": "Editor.SetAssetDrawerFolder",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetDrawerFolder(folder string)",
              "doc": "SetAssetDrawerFolder selects a folder in the Assets left rail (\"\" for \"All assets\")\nand clears any active SHOW ONLY status filter, matching Assets.dc.html.\nInvalid, absolute, or parent-traversing paths are ignored.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 429
            },
            {
              "name": "SetAssetDrawerKind",
              "anchor": "Editor.SetAssetDrawerKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetDrawerKind(kind AssetDrawerKind)",
              "doc": "SetAssetDrawerKind sets the kind tab filter in the asset drawer.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 485
            },
            {
              "name": "SetAssetDrawerQuery",
              "anchor": "Editor.SetAssetDrawerQuery",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetDrawerQuery(query string)",
              "doc": "SetAssetDrawerQuery sets the name/path filter text in the asset drawer.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 509
            },
            {
              "name": "SetAssetDrawerSort",
              "anchor": "Editor.SetAssetDrawerSort",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetDrawerSort(sort AssetSortMode)",
              "doc": "SetAssetDrawerSort sets the asset drawer sort mode.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 527
            },
            {
              "name": "SetAssetDrawerStatusFilter",
              "anchor": "Editor.SetAssetDrawerStatusFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetDrawerStatusFilter(filter AssetStatusFilter)",
              "doc": "SetAssetDrawerStatusFilter sets or toggles a SHOW ONLY filter in the Assets left rail.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 455
            },
            {
              "name": "SetAssetGenPreviewBackground",
              "anchor": "Editor.SetAssetGenPreviewBackground",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetGenPreviewBackground(bgID string)",
              "doc": "SetAssetGenPreviewBackground switches the active preview backdrop (for example \"floor3\", \"floor1\", \"checker\") and updates contrast checks.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 662
            },
            {
              "name": "SetAssetGeneratorOpen",
              "anchor": "Editor.SetAssetGeneratorOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetGeneratorOpen(open bool)",
              "doc": "SetAssetGeneratorOpen opens or closes the full-window Generated Assets screen.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 385
            },
            {
              "name": "SetAssetImportCredit",
              "anchor": "Editor.SetAssetImportCredit",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetImportCredit(relPath string, credit *importsettings.Credit) error",
              "doc": "SetAssetImportCredit sets or clears (when nil) the credit section in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 1022
            },
            {
              "name": "SetAssetPreviewClip",
              "anchor": "Editor.SetAssetPreviewClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetPreviewClip(clipName string)",
              "doc": "SetAssetPreviewClip picks a clip in the selected asset's right-panel preview and resets to frame 0.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1523
            },
            {
              "name": "SetAssetPreviewFrame",
              "anchor": "Editor.SetAssetPreviewFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetPreviewFrame(idx int)",
              "doc": "SetAssetPreviewFrame selects a specific frame index and pauses auto-playback.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1543
            },
            {
              "name": "SetAssetPreviewPlaying",
              "anchor": "Editor.SetAssetPreviewPlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetPreviewPlaying(playing bool)",
              "doc": "SetAssetPreviewPlaying starts or pauses frame-by-frame clip preview playback for the selected asset.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1497
            },
            {
              "name": "SetAssetStyleBrief",
              "anchor": "Editor.SetAssetStyleBrief",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAssetStyleBrief(brief AssetStyleBrief)",
              "doc": "SetAssetStyleBrief overrides the active style brief used to check generated candidates and re-evaluates all in-memory candidates.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 447
            },
            {
              "name": "SetAudioBusEffect",
              "anchor": "Editor.SetAudioBusEffect",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioBusEffect(bus string, index int, fx project.Effect) error",
              "doc": "SetAudioBusEffect replaces the effect at index on bus through EditProject.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 538
            },
            {
              "name": "SetAudioBusVolume",
              "anchor": "Editor.SetAudioBusVolume",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioBusVolume(name string, volume float32) error",
              "doc": "SetAudioBusVolume updates the named bus's volume in [0, 1] through EditProject.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 490
            },
            {
              "name": "SetAudioImportBitrate",
              "anchor": "Editor.SetAudioImportBitrate",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioImportBitrate(relPath string, bitrate int) error",
              "doc": "SetAudioImportBitrate sets or clears (when 0) the audio bitrate override in kbps in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 837
            },
            {
              "name": "SetAudioImportChannels",
              "anchor": "Editor.SetAudioImportChannels",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioImportChannels(relPath string, channels int) error",
              "doc": "SetAudioImportChannels sets or clears (when 0) the audio channel count override (1 mono, 2 stereo) in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 821
            },
            {
              "name": "SetAudioImportFormat",
              "anchor": "Editor.SetAudioImportFormat",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioImportFormat(relPath, format string) error",
              "doc": "SetAudioImportFormat sets or clears (when empty) the audio output format override (\"wav\", \"aac\", or \"mp3\") in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 789
            },
            {
              "name": "SetAudioImportLoop",
              "anchor": "Editor.SetAudioImportLoop",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioImportLoop(relPath string, loop *importsettings.Loop) error",
              "doc": "SetAudioImportLoop sets or clears (when nil) the audio loop region in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 891
            },
            {
              "name": "SetAudioImportPeakDB",
              "anchor": "Editor.SetAudioImportPeakDB",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioImportPeakDB(relPath string, peakDB *float64) error",
              "doc": "SetAudioImportPeakDB sets or clears (when nil) the peak normalization override in dBFS, clearing rmsDB when non-nil.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 853
            },
            {
              "name": "SetAudioImportRMSDB",
              "anchor": "Editor.SetAudioImportRMSDB",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioImportRMSDB(relPath string, rmsDB *float64) error",
              "doc": "SetAudioImportRMSDB sets or clears (when nil) the RMS normalization override in dBFS, clearing peakDB when non-nil.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 872
            },
            {
              "name": "SetAudioImportRate",
              "anchor": "Editor.SetAudioImportRate",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioImportRate(relPath string, rate int) error",
              "doc": "SetAudioImportRate sets or clears (when 0) the audio sample rate override in Hz in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 805
            },
            {
              "name": "SetAudioMasterVolume",
              "anchor": "Editor.SetAudioMasterVolume",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioMasterVolume(volume float32) error",
              "doc": "SetAudioMasterVolume updates game.yaml's audio.master volume through EditProject (validated by project.Validate and undoable).\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 363
            },
            {
              "name": "SetAudioMixerOpen",
              "anchor": "Editor.SetAudioMixerOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAudioMixerOpen(open bool)",
              "doc": "SetAudioMixerOpen opens the Settings view on the Audio buses page, or closes Settings when open is false and the Audio buses page is active. Closing stops any active audition.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 226
            },
            {
              "name": "SetAuditionLoop",
              "anchor": "Editor.SetAuditionLoop",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAuditionLoop(loop bool)",
              "doc": "SetAuditionLoop controls whether audition playback loops.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 295
            },
            {
              "name": "SetAutoSave",
              "anchor": "Editor.SetAutoSave",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAutoSave(enabled bool) error",
              "doc": "SetAutoSave updates the per-user automatic saving preference live. When SettingsPath is non-empty, the updated settings are persisted to SettingsPath.\n",
              "file": "pkg/editor/settings.go",
              "line": 769
            },
            {
              "name": "SetAutomationDraftText",
              "anchor": "Editor.SetAutomationDraftText",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAutomationDraftText(text string)",
              "doc": "SetAutomationDraftText updates the natural-language description in \"+ New automation, in words\".\n",
              "file": "pkg/editor/automations.go",
              "line": 759
            },
            {
              "name": "SetAutomationEnabled",
              "anchor": "Editor.SetAutomationEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAutomationEnabled(id string, enabled bool) error",
              "doc": "SetAutomationEnabled toggles the enabled state of the automation with id and writes automations.yaml when a project is open.\nRefuses agent actors (ErrAutomationYouOnly).\n",
              "file": "pkg/editor/automations.go",
              "line": 347
            },
            {
              "name": "SetAutomations",
              "anchor": "Editor.SetAutomations",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetAutomations(f *AutomationsFile) error",
              "doc": "SetAutomations replaces the open project's automation list and writes automations.yaml when a project is open.\nRefuses agent actors (ErrAutomationYouOnly).\n",
              "file": "pkg/editor/automations.go",
              "line": 312
            },
            {
              "name": "SetBackground",
              "anchor": "Editor.SetBackground",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBackground(color string) error",
              "doc": "SetBackground updates the open scene's BackgroundColor CSS string (or clears it when empty)\nthrough History, validated by sceneformat.Validate.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 419
            },
            {
              "name": "SetBriefArtDirection",
              "anchor": "Editor.SetBriefArtDirection",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBriefArtDirection(art string) error",
              "doc": "SetBriefArtDirection updates brief.yaml's artDirection field as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 597
            },
            {
              "name": "SetBriefFeelSummary",
              "anchor": "Editor.SetBriefFeelSummary",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBriefFeelSummary(summary string) error",
              "doc": "SetBriefFeelSummary updates brief.yaml's feel.summary field as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 611
            },
            {
              "name": "SetBriefGenre",
              "anchor": "Editor.SetBriefGenre",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBriefGenre(genre []string) error",
              "doc": "SetBriefGenre updates brief.yaml's genre list as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 530
            },
            {
              "name": "SetBriefPitch",
              "anchor": "Editor.SetBriefPitch",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBriefPitch(pitch string) error",
              "doc": "SetBriefPitch updates brief.yaml's pitch field as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 523
            },
            {
              "name": "SetBriefPlatforms",
              "anchor": "Editor.SetBriefPlatforms",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBriefPlatforms(platforms []string) error",
              "doc": "SetBriefPlatforms updates brief.yaml's platforms list as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 567
            },
            {
              "name": "SetBriefPlaytestTargets",
              "anchor": "Editor.SetBriefPlaytestTargets",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBriefPlaytestTargets(targets []project.BriefPlaytestTarget) error",
              "doc": "SetBriefPlaytestTargets replaces brief.yaml's feel.targets slice as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 621
            },
            {
              "name": "SetBriefTags",
              "anchor": "Editor.SetBriefTags",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBriefTags(tags []string) error",
              "doc": "SetBriefTags updates brief.yaml's tags list as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 560
            },
            {
              "name": "SetBriefToneAndAudio",
              "anchor": "Editor.SetBriefToneAndAudio",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBriefToneAndAudio(tone string) error",
              "doc": "SetBriefToneAndAudio updates brief.yaml's toneAndAudio field as one undoable step.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 604
            },
            {
              "name": "SetBuildPresetFixProposal",
              "anchor": "Editor.SetBuildPresetFixProposal",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBuildPresetFixProposal(platform string, proposal *BuildPresetFixProposal) error",
              "doc": "SetBuildPresetFixProposal attaches an agent-proposed preset fix diff to a failed (or selected) preset.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1029
            },
            {
              "name": "SetBuildPresetIncluded",
              "anchor": "Editor.SetBuildPresetIncluded",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBuildPresetIncluded(platform string, included bool) error",
              "doc": "SetBuildPresetIncluded checks or unchecks platform for inclusion in the release build.\n",
              "file": "pkg/editor/build_release.go",
              "line": 963
            },
            {
              "name": "SetBuildPresetSigning",
              "anchor": "Editor.SetBuildPresetSigning",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetBuildPresetSigning(platform string, cfg BuildPresetSigningConfig)",
              "doc": "SetBuildPresetSigning configures signing settings (such as keystore path, alias, identity, or notarization)\nfor platform on the Build and Release screen.\n",
              "file": "pkg/editor/build_release.go",
              "line": 992
            },
            {
              "name": "SetCamera",
              "anchor": "Editor.SetCamera",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCamera(cam *sceneformat.CameraDoc) error",
              "doc": "SetCamera replaces the open scene's Camera (or clears it when nil) through History,\nvalidated by sceneformat.Validate.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 460
            },
            {
              "name": "SetCameraBounds",
              "anchor": "Editor.SetCameraBounds",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCameraBounds(bounds *sceneformat.BoundsDoc) error",
              "doc": "SetCameraBounds sets or clears (when bounds is nil) the open scene camera's world-space\nclamp rectangle through History, validated by sceneformat.Validate.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 591
            },
            {
              "name": "SetCameraPosition",
              "anchor": "Editor.SetCameraPosition",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCameraPosition(x, y float32) error",
              "doc": "SetCameraPosition updates the open scene camera's world-space (X, Y) position through\nHistory, initializing Camera from the scene's default center if it was previously unset.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 490
            },
            {
              "name": "SetCameraRotation",
              "anchor": "Editor.SetCameraRotation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCameraRotation(radians float32) error",
              "doc": "SetCameraRotation updates the open scene camera's rotation in radians through History.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 557
            },
            {
              "name": "SetCameraZoom",
              "anchor": "Editor.SetCameraZoom",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCameraZoom(zoom float32) error",
              "doc": "SetCameraZoom updates the open scene camera's zoom factor through History.\nNon-positive or non-finite values are refused by sceneformat.Validate.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 524
            },
            {
              "name": "SetCanvasSize",
              "anchor": "Editor.SetCanvasSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCanvasSize(w, h float32)",
              "doc": "SetCanvasSize records the size in points of the viewport's canvas, which CanvasToWorld and the 3D viewport map presses through. The viewport calls it as it lays out; a size that is not positive and finite is ignored.\n",
              "file": "pkg/editor/view2d.go",
              "line": 41
            },
            {
              "name": "SetChangeIncluded",
              "anchor": "Editor.SetChangeIncluded",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetChangeIncluded(filePath string, included bool) error",
              "doc": "SetChangeIncluded includes or excludes the changed file at path from the next commit.\n",
              "file": "pkg/editor/changes.go",
              "line": 1856
            },
            {
              "name": "SetChangesContext",
              "anchor": "Editor.SetChangesContext",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetChangesContext(reviews int, playtestSummary string, agentRequests int)",
              "doc": "SetChangesContext records review, playtest, and agent-request provenance metadata used when drafting commit messages and PR descriptions.\n",
              "file": "pkg/editor/changes.go",
              "line": 1946
            },
            {
              "name": "SetChangesSceneView",
              "anchor": "Editor.SetChangesSceneView",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetChangesSceneView(mode ChangesSceneViewMode)",
              "doc": "SetChangesSceneView switches the scene diff preview mode between side-by-side, HEAD, and Now.\n",
              "file": "pkg/editor/changes.go",
              "line": 1894
            },
            {
              "name": "SetClipLength",
              "anchor": "Editor.SetClipLength",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetClipLength(length time.Duration) error",
              "doc": "SetClipLength sets the open clip's length as an undoable command. It refuses a length that would leave a key or event past the end.\n",
              "file": "pkg/editor/animation.go",
              "line": 358
            },
            {
              "name": "SetClipLoading",
              "anchor": "Editor.SetClipLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetClipLoading(loading bool)",
              "doc": "SetClipLoading sets the animation panel's loading state and notifies listeners.\n",
              "file": "pkg/editor/animation.go",
              "line": 50
            },
            {
              "name": "SetClipLoop",
              "anchor": "Editor.SetClipLoop",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetClipLoop(loop bool) error",
              "doc": "SetClipLoop sets whether the open clip loops, as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 369
            },
            {
              "name": "SetClipName",
              "anchor": "Editor.SetClipName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetClipName(name string) error",
              "doc": "SetClipName renames the open clip as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 350
            },
            {
              "name": "SetClipTarget",
              "anchor": "Editor.SetClipTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetClipTarget(id string) error",
              "doc": "SetClipTarget makes the open clip play on the object id, as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 328
            },
            {
              "name": "SetCodeReviewFailureExplanation",
              "anchor": "Editor.SetCodeReviewFailureExplanation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCodeReviewFailureExplanation(explanation, suspectFile string, suspectLine int)",
              "doc": "SetCodeReviewFailureExplanation attaches or updates the agent's explanation and optional suspect source line\nfor the current failing check/test.\n",
              "file": "pkg/editor/code_review.go",
              "line": 835
            },
            {
              "name": "SetCodeReviewLayout",
              "anchor": "Editor.SetCodeReviewLayout",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCodeReviewLayout(layout CodeReviewDiffLayout)",
              "doc": "SetCodeReviewLayout switches the Go diff layout between Unified and Split.\n",
              "file": "pkg/editor/code_review.go",
              "line": 960
            },
            {
              "name": "SetCommandPaletteOpen",
              "anchor": "Editor.SetCommandPaletteOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCommandPaletteOpen(open bool)",
              "doc": "SetCommandPaletteOpen sets whether the Command Palette dialog is open.\n",
              "file": "pkg/editor/palette.go",
              "line": 79
            },
            {
              "name": "SetCommitDescription",
              "anchor": "Editor.SetCommitDescription",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCommitDescription(description string)",
              "doc": "SetCommitDescription updates the editable commit description field in the Changes panel without rebuilding the input widgets.\n",
              "file": "pkg/editor/changes.go",
              "line": 1929
            },
            {
              "name": "SetCommitSummary",
              "anchor": "Editor.SetCommitSummary",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCommitSummary(summary string)",
              "doc": "SetCommitSummary updates the editable commit summary field in the Changes panel without rebuilding the input widgets.\n",
              "file": "pkg/editor/changes.go",
              "line": 1912
            },
            {
              "name": "SetComponentField",
              "anchor": "Editor.SetComponentField",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetComponentField(objectID, componentName, field string, value any) error",
              "doc": "SetComponentField sets a typed field inside objectID.Components[componentName][field] through History. With a component registry set, or for a built-in physics or 2D lighting component without one, the field must be registered and value of its kind and within its range; it is stored normalized to bool, int, float64, string, []string, or [][2]float64.\n",
              "file": "pkg/editor/inspector.go",
              "line": 111
            },
            {
              "name": "SetComponentRegistry",
              "anchor": "Editor.SetComponentRegistry",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetComponentRegistry(reg *sceneformat.ComponentRegistry) error",
              "doc": "SetComponentRegistry makes the editor check components against reg: every open scene's components and connections must already conform, later opens refuse files whose components or connections do not, SetComponentField and PlaceObject refuse unregistered fields, and the inspector lists every registered field of a component. Nil turns the checks off. Changing the registry clears undo/redo history across open tabs, since commands recorded under the old registry could bring back components the new one refuses.\n",
              "file": "pkg/editor/state.go",
              "line": 1546
            },
            {
              "name": "SetComposerDraft",
              "anchor": "Editor.SetComposerDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetComposerDraft(text string)",
              "doc": "SetComposerDraft updates the agent composer draft text, refreshes @-mention trigger detection, and notifies listeners.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 172
            },
            {
              "name": "SetConnectAPIKey",
              "anchor": "Editor.SetConnectAPIKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetConnectAPIKey(key string)",
              "doc": "SetConnectAPIKey updates the draft API key in the Connect dialog.\n",
              "file": "pkg/editor/agent.go",
              "line": 1094
            },
            {
              "name": "SetConnectChoice",
              "anchor": "Editor.SetConnectChoice",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetConnectChoice(mode AgentMode)",
              "doc": "SetConnectChoice selects one of the three choices inside the Connect dialog.\n",
              "file": "pkg/editor/agent.go",
              "line": 1062
            },
            {
              "name": "SetConnectPermissions",
              "anchor": "Editor.SetConnectPermissions",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetConnectPermissions(perms AgentPermissions)",
              "doc": "SetConnectPermissions updates the draft permission checkboxes inside the Connect dialog.\n",
              "file": "pkg/editor/agent.go",
              "line": 1085
            },
            {
              "name": "SetContextBreakdownOpen",
              "anchor": "Editor.SetContextBreakdownOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetContextBreakdownOpen(open bool)",
              "doc": "SetContextBreakdownOpen opens or closes the context ring breakdown popover.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2532
            },
            {
              "name": "SetCutsceneClipEasing",
              "anchor": "Editor.SetCutsceneClipEasing",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCutsceneClipEasing(trackIdx, clipIdx int, easing cutscene.Easing) error",
              "doc": "SetCutsceneClipEasing updates the Easing of the clip at (trackIdx, clipIdx) on a camera or actor track.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 901
            },
            {
              "name": "SetCutsceneClipTiming",
              "anchor": "Editor.SetCutsceneClipTiming",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCutsceneClipTiming(trackIdx, clipIdx int, start, dur time.Duration) error",
              "doc": "SetCutsceneClipTiming updates the Start and Duration of the clip at (trackIdx, clipIdx).\nWhile a review is open, the edit joins the review and can be undone with Undo (⌘Z); otherwise it executes an ordinary undoable command on History.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 798
            },
            {
              "name": "SetCutsceneReviewPeekBefore",
              "anchor": "Editor.SetCutsceneReviewPeekBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCutsceneReviewPeekBefore(peek bool)",
              "doc": "SetCutsceneReviewPeekBefore sets the temporary hold-B peek state during an open review.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1135
            },
            {
              "name": "SetCutsceneReviewViewMode",
              "anchor": "Editor.SetCutsceneReviewViewMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetCutsceneReviewViewMode(mode CutsceneReviewView)",
              "doc": "SetCutsceneReviewViewMode switches the open review between Before and After.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1119
            },
            {
              "name": "SetDataTableCell",
              "anchor": "Editor.SetDataTableCell",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableCell(row int, col string, val datatable.Value) error",
              "doc": "SetDataTableCell updates or inserts cell (row, col) with val as an undoable command.\nWhen a Go row type is registered for the open table, the resulting row is checked with\nLoadYAML's rules and refused on error.\n",
              "file": "pkg/editor/datatable.go",
              "line": 366
            },
            {
              "name": "SetDataTableCellText",
              "anchor": "Editor.SetDataTableCellText",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableCellText(row int, col, text string) error",
              "doc": "SetDataTableCellText parses text using the column's registered Go type (if any) or its\ninferred ValueKind (string, number, bool, duration, list), and applies it as an undoable\ncell edit. Invalid values are refused and reported via DataTableError and Status.\n",
              "file": "pkg/editor/datatable.go",
              "line": 411
            },
            {
              "name": "SetDataTableFilter",
              "anchor": "Editor.SetDataTableFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableFilter(query string)",
              "doc": "SetDataTableFilter sets the case-insensitive substring filter applied to the grid view.\n",
              "file": "pkg/editor/datatable.go",
              "line": 586
            },
            {
              "name": "SetDataTableLoading",
              "anchor": "Editor.SetDataTableLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableLoading(loading bool)",
              "doc": "SetDataTableLoading updates the open data table's loading state and notifies listeners.\n",
              "file": "pkg/editor/datatable.go",
              "line": 180
            },
            {
              "name": "SetDataTableReviewCellText",
              "anchor": "Editor.SetDataTableReviewCellText",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableReviewCellText(key, col, text string) error",
              "doc": "SetDataTableReviewCellText edits cell (key, col) in place as the person's edit.\nIt joins the active review (filtered by Yours and tagged `you` in the YAML) and marks\nthe agent's checks out of date.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1510
            },
            {
              "name": "SetDataTableReviewChecks",
              "anchor": "Editor.SetDataTableReviewChecks",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableReviewChecks(checks []DataTableReviewCheck) error",
              "doc": "SetDataTableReviewChecks attaches or refreshes the agent's named check figures on the active review,\nclearing the out-of-date flag.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1805
            },
            {
              "name": "SetDataTableReviewEditDraft",
              "anchor": "Editor.SetDataTableReviewEditDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableReviewEditDraft(text string)",
              "doc": "SetDataTableReviewEditDraft updates the in-progress text in the active inline cell editor without triggering a table remount.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1490
            },
            {
              "name": "SetDataTableReviewFilter",
              "anchor": "Editor.SetDataTableReviewFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableReviewFilter(filter DataTableReviewFilter)",
              "doc": "SetDataTableReviewFilter switches the active row filter chip (All, Changed, Unchanged, Reverted, Yours).\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 868
            },
            {
              "name": "SetDataTableReviewSearch",
              "anchor": "Editor.SetDataTableReviewSearch",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableReviewSearch(query string)",
              "doc": "SetDataTableReviewSearch updates the case-insensitive text filter query for the active file.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 899
            },
            {
              "name": "SetDataTableReviewSort",
              "anchor": "Editor.SetDataTableReviewSort",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableReviewSort(col string, order SortOrder)",
              "doc": "SetDataTableReviewSort sets the active file's sort column and direction without mutating file row order.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 919
            },
            {
              "name": "SetDataTableSort",
              "anchor": "Editor.SetDataTableSort",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDataTableSort(col string, order SortOrder)",
              "doc": "SetDataTableSort sets the grid view's sort column and direction without modifying the document.\n",
              "file": "pkg/editor/datatable.go",
              "line": 563
            },
            {
              "name": "SetDiskCompareOpen",
              "anchor": "Editor.SetDiskCompareOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDiskCompareOpen(open bool)",
              "doc": "SetDiskCompareOpen opens or closes the per-object Compare merge picker for an active scene conflict.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1429
            },
            {
              "name": "SetDiskReloadDiffOpen",
              "anchor": "Editor.SetDiskReloadDiffOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDiskReloadDiffOpen(open bool)",
              "doc": "SetDiskReloadDiffOpen opens or closes the quiet reload diff details.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1408
            },
            {
              "name": "SetDockLayout",
              "anchor": "Editor.SetDockLayout",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetDockLayout(l dock.Layout)",
              "doc": "SetDockLayout applies a dock.Layout edit (from ui.DockArea drag/drop, resize, tab switch, or close),\nreconciles it with the blueprint, persists to LayoutPath when set, and notifies subscribers.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1330
            },
            {
              "name": "SetEditorSettingsOpen",
              "anchor": "Editor.SetEditorSettingsOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetEditorSettingsOpen(open bool)",
              "doc": "SetEditorSettingsOpen opens the Settings view on the General page, or closes Settings when open is false and an editor preferences page is active.\n",
              "file": "pkg/editor/settings.go",
              "line": 1163
            },
            {
              "name": "SetEditorSettingsTab",
              "anchor": "Editor.SetEditorSettingsTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetEditorSettingsTab(tab EditorSettingsTab)",
              "doc": "SetEditorSettingsTab switches the active page in the Editor Settings dialog.\n",
              "file": "pkg/editor/settings.go",
              "line": 1197
            },
            {
              "name": "SetEnvironment",
              "anchor": "Editor.SetEnvironment",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetEnvironment(env *sceneformat.EnvironmentDoc) error",
              "doc": "SetEnvironment replaces the open scene's 3D environment (sky, ambient/IBL, fog, tonemapping,\nexposure) as an undoable command on History, checked by sceneformat.Validate. Setting an\nenvironment on a scene below version 4 raises its version to sceneformat.CurrentVersion,\nwhich Undo restores.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 256
            },
            {
              "name": "SetEnvironmentPanelOpen",
              "anchor": "Editor.SetEnvironmentPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetEnvironmentPanelOpen(open bool)",
              "doc": "SetEnvironmentPanelOpen opens or closes the Scene Environment panel.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 550
            },
            {
              "name": "SetExpandedAgentRequestID",
              "anchor": "Editor.SetExpandedAgentRequestID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetExpandedAgentRequestID(reqID string)",
              "doc": "SetExpandedAgentRequestID expands reqID (or collapses all folded requests when empty).\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1043
            },
            {
              "name": "SetExportChannel",
              "anchor": "Editor.SetExportChannel",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetExportChannel(channel string) error",
              "doc": "SetExportChannel sets the distribution channel in the Export panel (\"\", \"direct\", \"store\", \"steam\", or \"none\").\n",
              "file": "pkg/editor/export_panel.go",
              "line": 544
            },
            {
              "name": "SetExportDryRun",
              "anchor": "Editor.SetExportDryRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetExportDryRun(dryRun bool)",
              "doc": "SetExportDryRun toggles dry-run mode in the Export panel.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 582
            },
            {
              "name": "SetExportOutput",
              "anchor": "Editor.SetExportOutput",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetExportOutput(output string) error",
              "doc": "SetExportOutput sets game.yaml's export.output directory through EditProject as one undoable step. Clearing it when no presets are configured removes the empty export section.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 291
            },
            {
              "name": "SetExportPanelOpen",
              "anchor": "Editor.SetExportPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetExportPanelOpen(open bool)",
              "doc": "SetExportPanelOpen opens the Settings view on the Export page (refreshing the pre-flight credits check), or closes Settings when open is false and the Export page is active.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 104
            },
            {
              "name": "SetExportPresetTargets",
              "anchor": "Editor.SetExportPresetTargets",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetExportPresetTargets(platform string, targets []string) error",
              "doc": "SetExportPresetTargets replaces platform's target list through EditProject. An empty slice builds the platform's default targets. Every target must belong to project.TargetsOf(platform).\n",
              "file": "pkg/editor/export_panel.go",
              "line": 456
            },
            {
              "name": "SetExportReleaseNotes",
              "anchor": "Editor.SetExportReleaseNotes",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetExportReleaseNotes(path string)",
              "doc": "SetExportReleaseNotes sets the release notes Markdown file path in the Export panel.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 568
            },
            {
              "name": "SetExportSelectedTargets",
              "anchor": "Editor.SetExportSelectedTargets",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetExportSelectedTargets(targets []string)",
              "doc": "SetExportSelectedTargets restricts builds from the Export panel to targets; an empty slice builds all presets.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 599
            },
            {
              "name": "SetFileBrowserOpen",
              "anchor": "Editor.SetFileBrowserOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetFileBrowserOpen(open bool)",
              "doc": "SetFileBrowserOpen opens or closes the full Project Files browser panel.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 239
            },
            {
              "name": "SetFirstRunAPIKey",
              "anchor": "Editor.SetFirstRunAPIKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetFirstRunAPIKey(key string)",
              "doc": "SetFirstRunAPIKey updates the in-memory API key and immediately validates it without holding firstRun.mu.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1086
            },
            {
              "name": "SetFirstRunAgentConnected",
              "anchor": "Editor.SetFirstRunAgentConnected",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetFirstRunAgentConnected(connected bool, kind, name string, tools int)",
              "doc": "SetFirstRunAgentConnected configures whether an agent is already connected (for example when\nan MCP session is active before pressing Start with AI).\n",
              "file": "pkg/editor/first_run.go",
              "line": 654
            },
            {
              "name": "SetFirstRunReviewBefore",
              "anchor": "Editor.SetFirstRunReviewBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetFirstRunReviewBefore(before bool)",
              "doc": "SetFirstRunReviewBefore toggles the Before/After segmented button in the First Review.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2510
            },
            {
              "name": "SetFirstRunReviewPeekBefore",
              "anchor": "Editor.SetFirstRunReviewPeekBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetFirstRunReviewPeekBefore(peek bool)",
              "doc": "SetFirstRunReviewPeekBefore controls the temporary hold-B Before peek in the First Review.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2524
            },
            {
              "name": "SetFontImportChars",
              "anchor": "Editor.SetFontImportChars",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetFontImportChars(relPath, chars string) error",
              "doc": "SetFontImportChars sets or clears (when empty) the baked font character set override in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 924
            },
            {
              "name": "SetFontImportPadding",
              "anchor": "Editor.SetFontImportPadding",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetFontImportPadding(relPath string, padding *int) error",
              "doc": "SetFontImportPadding sets or clears (when nil) the baked font glyph padding override in pixels in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 940
            },
            {
              "name": "SetFontImportSize",
              "anchor": "Editor.SetFontImportSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetFontImportSize(relPath string, size int) error",
              "doc": "SetFontImportSize sets or clears (when 0) the baked font pixel size override in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 908
            },
            {
              "name": "SetFrameDuration",
              "anchor": "Editor.SetFrameDuration",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetFrameDuration(track, key int, dur time.Duration) error",
              "doc": "SetFrameDuration sets the duration that frame key key on sprite.frame track track holds before the next frame (or the clip's end), shifting subsequent frame keys and adjusting the clip's length accordingly, as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 577
            },
            {
              "name": "SetGeneratedAssetLicense",
              "anchor": "Editor.SetGeneratedAssetLicense",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGeneratedAssetLicense(relPath, license string, commercialUse bool) error",
              "doc": "SetGeneratedAssetLicense updates license and commercialUse in <relPath>.source.yaml as one undoable History step.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 1999
            },
            {
              "name": "SetGeneratedLicenseCommercial",
              "anchor": "Editor.SetGeneratedLicenseCommercial",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGeneratedLicenseCommercial(on bool)",
              "doc": "SetGeneratedLicenseCommercial toggles the commercialUse flag in the inline license editor.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2112
            },
            {
              "name": "SetGeneratedLicenseDraft",
              "anchor": "Editor.SetGeneratedLicenseDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGeneratedLicenseDraft(val string)",
              "doc": "SetGeneratedLicenseDraft updates the in-memory license text being typed in the inline editor\nwithout bumping assetGen.rev so the active text input never remounts or loses focus.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2102
            },
            {
              "name": "SetGeneratorServerConfigs",
              "anchor": "Editor.SetGeneratorServerConfigs",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGeneratorServerConfigs(servers []GeneratorServerConfig) error",
              "doc": "SetGeneratorServerConfigs updates the configured MCP generator servers shown under Settings > Tools and GENERATORS · MCP.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 880
            },
            {
              "name": "SetGizmoMode3D",
              "anchor": "Editor.SetGizmoMode3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGizmoMode3D(mode GizmoMode3D)",
              "doc": "SetGizmoMode3D switches the active 3D transform gizmo mode (Translate, Rotate, or Scale) and leaves any active GridMap tool.\n",
              "file": "pkg/editor/state.go",
              "line": 1449
            },
            {
              "name": "SetGizmoSpace3D",
              "anchor": "Editor.SetGizmoSpace3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGizmoSpace3D(space GizmoSpace3D)",
              "doc": "SetGizmoSpace3D switches the 3D transform gizmo between Global (world) and Local (object) axes.\nIt cancels any active 3D gizmo drag so no drag mixes spaces, is not undoable, and ignores unknown values.\n",
              "file": "pkg/editor/state.go",
              "line": 1429
            },
            {
              "name": "SetGridMapFloor",
              "anchor": "Editor.SetGridMapFloor",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGridMapFloor(y int)",
              "doc": "SetGridMapFloor sets the current floor height (integer Y coordinate) used by GridMap painting, erasing, picking, and box fill.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 201
            },
            {
              "name": "SetGridMapHover",
              "anchor": "Editor.SetGridMapHover",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGridMapHover(sx, sy, w, h float32, picking bool)",
              "doc": "SetGridMapHover updates the pointer location used for the 3D GridMap cell preview overlay.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1059
            },
            {
              "name": "SetGridMapOrientation",
              "anchor": "Editor.SetGridMapOrientation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGridMapOrientation(orient uint8) error",
              "doc": "SetGridMapOrientation sets the active GridMap item orientation (0..23) as an undoable command.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 255
            },
            {
              "name": "SetGridMapTool",
              "anchor": "Editor.SetGridMapTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGridMapTool(tool GridMapTool)",
              "doc": "SetGridMapTool switches the active 3D GridMap tool. Choosing a paint, erase, pick, or box-fill tool\nfinishes any active stroke, cancels any 3D gizmo drag, and automatically opens the selected object's\nGridMap (or the first GridMap object in the scene) when no GridMap is open yet.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 177
            },
            {
              "name": "SetGridSize",
              "anchor": "Editor.SetGridSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetGridSize(size float32) bool",
              "doc": "SetGridSize sets an explicit grid spacing in world/layer units used when grid snapping is active.\nNon-positive or non-finite values are refused; call ResetGridSize to follow the active layer's tilemap tile size again.\n",
              "file": "pkg/editor/snap.go",
              "line": 190
            },
            {
              "name": "SetHUDLayoutOpen",
              "anchor": "Editor.SetHUDLayoutOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHUDLayoutOpen(open bool)",
              "doc": "SetHUDLayoutOpen opens or closes the HUD and menu layout screen.\nOpening it while a project is open automatically scans project *.screen.yaml files and locales/*.yaml tables.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 259
            },
            {
              "name": "SetHUDLocale",
              "anchor": "Editor.SetHUDLocale",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHUDLocale(locale string)",
              "doc": "SetHUDLocale switches the preview language across all four screen sizes, the text width table, inspector, and GAME CHECK.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 856
            },
            {
              "name": "SetHUDNodeAnchor",
              "anchor": "Editor.SetHUDNodeAnchor",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHUDNodeAnchor(nodeID string, anchor gameui.ScreenAnchor) error",
              "doc": "SetHUDNodeAnchor changes nodeID's anchor point (one of the 9 anchor positions or fill) in one undo step and saves the screen file.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1659
            },
            {
              "name": "SetHUDNodeOffset",
              "anchor": "Editor.SetHUDNodeOffset",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHUDNodeOffset(nodeID string, x, y float32) error",
              "doc": "SetHUDNodeOffset updates nodeID's anchor offset (x, y) in one undo step and saves the screen file.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1699
            },
            {
              "name": "SetHUDNodeSafeArea",
              "anchor": "Editor.SetHUDNodeSafeArea",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHUDNodeSafeArea(nodeID string, keepInSafeArea bool) error",
              "doc": "SetHUDNodeSafeArea sets whether nodeID stays inside the display safe area in one undo step and saves the screen file.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1674
            },
            {
              "name": "SetHUDNodeSizeMode",
              "anchor": "Editor.SetHUDNodeSizeMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHUDNodeSizeMode(nodeID string, mode gameui.SizeMode) error",
              "doc": "SetHUDNodeSizeMode toggles nodeID's sizing mode between fixed and fit_text in one undo step and saves the screen file.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1687
            },
            {
              "name": "SetHUDNodeSpacing",
              "anchor": "Editor.SetHUDNodeSpacing",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHUDNodeSpacing(nodeID string, spacing float32) error",
              "doc": "SetHUDNodeSpacing updates the child spacing of a container (vbox, hbox, sprite_row) in one undo step and saves the screen file.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1715
            },
            {
              "name": "SetHUDOverlays",
              "anchor": "Editor.SetHUDOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHUDOverlays(ov HUDOverlays)",
              "doc": "SetHUDOverlays replaces the active viewport overlay toggles.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 923
            },
            {
              "name": "SetHistoryClock",
              "anchor": "Editor.SetHistoryClock",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHistoryClock(fn func() time.Time)",
              "doc": "SetHistoryClock sets the clock used to timestamp History timeline entries across all open tabs.\nPassing nil restores Editor.Now or time.Now.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 65
            },
            {
              "name": "SetHistoryFilter",
              "anchor": "Editor.SetHistoryFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHistoryFilter(filter HistoryFilter)",
              "doc": "SetHistoryFilter switches the active filter tab in the History panel.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 175
            },
            {
              "name": "SetHistoryPanelOpen",
              "anchor": "Editor.SetHistoryPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHistoryPanelOpen(open bool)",
              "doc": "SetHistoryPanelOpen opens or closes the History timeline panel.\nClosing the panel also exits any active point-in-time preview.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 133
            },
            {
              "name": "SetHoveredChip",
              "anchor": "Editor.SetHoveredChip",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetHoveredChip(chipID string)",
              "doc": "SetHoveredChip sets or clears which chip's exact-payload hover preview is open.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1597
            },
            {
              "name": "SetImageImportCellPivot",
              "anchor": "Editor.SetImageImportCellPivot",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetImageImportCellPivot(relPath string, cell int, pt *importsettings.PivotPoint) error",
              "doc": "SetImageImportCellPivot sets or clears (when nil) the normalized pivot override for 0-based cell in relPath's sidecar, keeping cells in ascending order.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 742
            },
            {
              "name": "SetImageImportDefaultPivot",
              "anchor": "Editor.SetImageImportDefaultPivot",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetImageImportDefaultPivot(relPath string, pt *importsettings.PivotPoint) error",
              "doc": "SetImageImportDefaultPivot sets or clears (when nil) the default normalized pivot in relPath's sidecar without disturbing per-cell overrides.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 721
            },
            {
              "name": "SetImageImportFilter",
              "anchor": "Editor.SetImageImportFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetImageImportFilter(relPath, filter string) error",
              "doc": "SetImageImportFilter sets or clears (when empty) the image sampling filter override (\"linear\" or \"nearest\") in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 600
            },
            {
              "name": "SetImageImportFormat",
              "anchor": "Editor.SetImageImportFormat",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetImageImportFormat(relPath, format string) error",
              "doc": "SetImageImportFormat sets or clears (when empty) the image KTX2 format override (\"rgba8\", \"bc1\", \"bc3\", or \"etc2\") in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 616
            },
            {
              "name": "SetImageImportMipmaps",
              "anchor": "Editor.SetImageImportMipmaps",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetImageImportMipmaps(relPath string, mipmaps *bool) error",
              "doc": "SetImageImportMipmaps sets or clears (when nil) the image mipmaps override in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 632
            },
            {
              "name": "SetImageImportPivot",
              "anchor": "Editor.SetImageImportPivot",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetImageImportPivot(relPath string, pivot *importsettings.Pivot) error",
              "doc": "SetImageImportPivot sets or clears (when nil) the image pivot block in relPath's sidecar, sorting per-cell overrides by ascending cell index.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 701
            },
            {
              "name": "SetImageImportSRGB",
              "anchor": "Editor.SetImageImportSRGB",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetImageImportSRGB(relPath string, srgb *bool) error",
              "doc": "SetImageImportSRGB sets or clears (when nil) the image sRGB override in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 649
            },
            {
              "name": "SetImageImportSlice",
              "anchor": "Editor.SetImageImportSlice",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetImageImportSlice(relPath string, slice *importsettings.Slice) error",
              "doc": "SetImageImportSlice sets or clears (when nil) the image sprite-sheet slice grid in relPath's sidecar.\nClearing the slice also removes per-cell pivot overrides (which require image.slice), and setting a positive Count prunes per-cell pivot overrides at or above Count.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 667
            },
            {
              "name": "SetInputAxis",
              "anchor": "Editor.SetInputAxis",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInputAxis(index int, ax project.Axis) error",
              "doc": "SetInputAxis replaces input.axes[index] through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 605
            },
            {
              "name": "SetInputBinding",
              "anchor": "Editor.SetInputBinding",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInputBinding(action string, index int, b project.Binding) error",
              "doc": "SetInputBinding replaces binding index on action through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 403
            },
            {
              "name": "SetInputGamepadAxis",
              "anchor": "Editor.SetInputGamepadAxis",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInputGamepadAxis(index int, g project.GamepadAxis) error",
              "doc": "SetInputGamepadAxis replaces input.gamepadAxes[index] through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 705
            },
            {
              "name": "SetInputMapOpen",
              "anchor": "Editor.SetInputMapOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInputMapOpen(open bool)",
              "doc": "SetInputMapOpen opens the Settings view on the Input map page, or closes Settings when open is false and the Input map page is active. Closing cancels any active key capture or region drag.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 75
            },
            {
              "name": "SetInputMapRegionDrawKind",
              "anchor": "Editor.SetInputMapRegionDrawKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInputMapRegionDrawKind(kind string)",
              "doc": "SetInputMapRegionDrawKind sets the binding kind (\"touchRegion\" or \"mouseRegion\") created when drawing a new region on the canvas.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 125
            },
            {
              "name": "SetInputMapTab",
              "anchor": "Editor.SetInputMapTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInputMapTab(tab InputMapTab)",
              "doc": "SetInputMapTab switches the active tab of the Input Map panel.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 99
            },
            {
              "name": "SetInputMotionAxis",
              "anchor": "Editor.SetInputMotionAxis",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInputMotionAxis(index int, m project.MotionAxis) error",
              "doc": "SetInputMotionAxis replaces input.motionAxes[index] through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 655
            },
            {
              "name": "SetInputRegion",
              "anchor": "Editor.SetInputRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInputRegion(action string, index int, r project.Rect) error",
              "doc": "SetInputRegion updates the rectangle of a touchRegion or mouseRegion binding through EditProject.\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 426
            },
            {
              "name": "SetInspectorFieldProblems",
              "anchor": "Editor.SetInspectorFieldProblems",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInspectorFieldProblems(problems []InspectorFieldProblem)",
              "doc": "SetInspectorFieldProblems records explicit field-level problems shown as problem pills in the\ninspector alongside live project-check problems (Editor.Problems) and component range checks.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 249
            },
            {
              "name": "SetInspectorFilter",
              "anchor": "Editor.SetInspectorFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInspectorFilter(query string)",
              "doc": "SetInspectorFilter sets the inspector field filter query, narrowing visible sections and fields\nto those whose label, component name, or section title matches (case-insensitive substring).\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 113
            },
            {
              "name": "SetInspectorReviewChanges",
              "anchor": "Editor.SetInspectorReviewChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInspectorReviewChanges(changes []InspectorReviewChange)",
              "doc": "SetInspectorReviewChanges records the active agent review field changes shown in the inspector\n(\"was <old> · in review\"). Pass nil to clear them once a review is kept or reverted.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 219
            },
            {
              "name": "SetInspectorSectionCollapsed",
              "anchor": "Editor.SetInspectorSectionCollapsed",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInspectorSectionCollapsed(sectionID string, collapsed bool)",
              "doc": "SetInspectorSectionCollapsed expands or collapses the titled inspector section id.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 130
            },
            {
              "name": "SetInterfaceSize",
              "anchor": "Editor.SetInterfaceSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetInterfaceSize(size InterfaceSize) error",
              "doc": "SetInterfaceSize updates the per-user editor interface size live. When SettingsPath is non-empty, the updated settings are persisted to SettingsPath.\n",
              "file": "pkg/editor/settings.go",
              "line": 674
            },
            {
              "name": "SetKeyFrame",
              "anchor": "Editor.SetKeyFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetKeyFrame(track, key int, frame string) error",
              "doc": "SetKeyFrame sets the atlas frame name of key key on sprite.frame track track as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 537
            },
            {
              "name": "SetKeyInterp",
              "anchor": "Editor.SetKeyInterp",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetKeyInterp(track, key int, interp resource.Interp) error",
              "doc": "SetKeyInterp sets how key key on track track moves to the next key, as an undoable command.\n",
              "file": "pkg/editor/animation.go",
              "line": 659
            },
            {
              "name": "SetKeyValue",
              "anchor": "Editor.SetKeyValue",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetKeyValue(track, key int, value float64) error",
              "doc": "SetKeyValue sets the value of key key on track track as an undoable command. The value must suit the track's property: 0 or 1 for a bool, a whole number for an int, inside the range.\n",
              "file": "pkg/editor/animation.go",
              "line": 641
            },
            {
              "name": "SetLanguage",
              "anchor": "Editor.SetLanguage",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLanguage(lang Language) error",
              "doc": "SetLanguage updates the editor's language setting live without a restart. When SettingsPath is non-empty, the updated settings are saved to SettingsPath.\n",
              "file": "pkg/editor/settings.go",
              "line": 807
            },
            {
              "name": "SetLastReleaseBaseline",
              "anchor": "Editor.SetLastReleaseBaseline",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLastReleaseBaseline(baseline LastReleaseBaseline)",
              "doc": "SetLastReleaseBaseline sets the previous release's version and per-platform artifact sizes for delta comparison.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1014
            },
            {
              "name": "SetLayerLocked",
              "anchor": "Editor.SetLayerLocked",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLayerLocked(name string, locked bool) error",
              "doc": "SetLayerLocked locks the layer name against the viewports, or unlocks it: a press in either viewport passes over its objects, so it picks what lies under them, its objects are not moved there (no gizmo, no Move-tool drag), and the Place, Paint, Erase and Fill tools do nothing while it is the active layer. Like SetObjectLocked, the lock belongs to the editing session: it is not an edit, is not undone, and is never written to the scene file; opening another scene clears it. The layers panel and the scene tree still select and edit the layer and its objects.\n",
              "file": "pkg/editor/layers.go",
              "line": 694
            },
            {
              "name": "SetLayerParallax",
              "anchor": "Editor.SetLayerParallax",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLayerParallax(layerName string, parallaxX, parallaxY float32) error",
              "doc": "SetLayerParallax sets the horizontal and vertical parallax scroll factors of layerName (or ActiveLayer when empty) as an undoable command. Both factors must be finite. Setting a non-default parallax factor on a version 1 or version 2 scene raises the scene to sceneformat.CurrentVersion, which Undo restores. In a scene that inherits another, editing an inherited layer records the change under SceneDoc.LayerOverrides.\n",
              "file": "pkg/editor/layeredit.go",
              "line": 11
            },
            {
              "name": "SetLayerRepeat",
              "anchor": "Editor.SetLayerRepeat",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLayerRepeat(layerName string, repeatX, repeatY bool, repeatWidth, repeatHeight float32) error",
              "doc": "SetLayerRepeat sets the repeat flags and periods of layerName (or ActiveLayer when empty) as an undoable command. RepeatWidth and RepeatHeight must be finite and non-negative (0 uses the layer's tilemap pixel size or the scene's virtual size). Enabling repeat or setting a positive period on a version 1 or version 2 scene raises the scene to sceneformat.CurrentVersion, which Undo restores. In a scene that inherits another, editing an inherited layer records the change under SceneDoc.LayerOverrides.\n",
              "file": "pkg/editor/layeredit.go",
              "line": 62
            },
            {
              "name": "SetLayerSpace",
              "anchor": "Editor.SetLayerSpace",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLayerSpace(name string, space sceneformat.Space) error",
              "doc": "SetLayerSpace sets the space the layer name draws and hit-tests in, SpaceWorld (under the scene's camera) or SpaceScreen (at virtual screen coordinates, as a HUD), as an undoable command; its objects keep their coordinates. It changes nothing when the layer already has that space, its field left unset included for SpaceWorld. In a scene that inherits another, changing an inherited layer records the change under SceneDoc.LayerOverrides.\n",
              "file": "pkg/editor/layers.go",
              "line": 639
            },
            {
              "name": "SetLayerTilemapTileSize",
              "anchor": "Editor.SetLayerTilemapTileSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLayerTilemapTileSize(layerName string, tileWidth, tileHeight int) error",
              "doc": "SetLayerTilemapTileSize changes the tile dimensions (tileWidth x tileHeight in points) of layerName's inline tilemap (following Ref into SceneDoc.Tilemaps when referenced) as an undoable command. It refuses non-positive sizes, layers without an inline tilemap, and inherited base-owned layers.\n",
              "file": "pkg/editor/tilemap_setup.go",
              "line": 414
            },
            {
              "name": "SetLayerTilemapTileset",
              "anchor": "Editor.SetLayerTilemapTileset",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLayerTilemapTileset(layerName, tileset string) error",
              "doc": "SetLayerTilemapTileset changes the tileset atlas of layerName's inline single-grid tilemap (following Ref into SceneDoc.Tilemaps when referenced) as an undoable command. It refuses a layer without an inline single-grid tilemap, an inherited base-owned layer, an empty or unresolved tileset atlas, or an atlas missing frames for any painted tile ID in the grid.\n",
              "file": "pkg/editor/tilemap_setup.go",
              "line": 321
            },
            {
              "name": "SetLayerVisible",
              "anchor": "Editor.SetLayerVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLayerVisible(name string, visible bool) error",
              "doc": "SetLayerVisible shows or hides the layer name as an undoable command, writing its visible field: hiding writes visible: false, and showing leaves the field unset, its default, so hiding and showing a layer whose field was unset gives back the same file. Unlike the session's lock (SetLayerLocked), this is the scene's own setting: the game does not draw a hidden layer either. In a scene that inherits another, changing an inherited layer records the change under SceneDoc.LayerOverrides.\n",
              "file": "pkg/editor/layers.go",
              "line": 561
            },
            {
              "name": "SetLayersPanelOpen",
              "anchor": "Editor.SetLayersPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLayersPanelOpen(open bool)",
              "doc": "SetLayersPanelOpen opens or closes the docked Layers panel.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 223
            },
            {
              "name": "SetLayoutPath",
              "anchor": "Editor.SetLayoutPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLayoutPath(path string) error",
              "doc": "SetLayoutPath configures where the editor persists its per-user dock layout YAML file\nand loads any existing layout from path (an absent file keeps the default layout).\nPanels in the saved file that no longer exist are dropped.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1146
            },
            {
              "name": "SetLeftRailMode",
              "anchor": "Editor.SetLeftRailMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLeftRailMode(mode LeftRailMode)",
              "doc": "SetLeftRailMode switches the left rail between Scene mode and Assets mode.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 401
            },
            {
              "name": "SetLibraryPanelOpen",
              "anchor": "Editor.SetLibraryPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLibraryPanelOpen(open bool)",
              "doc": "SetLibraryPanelOpen opens or closes the Asset Pack Library panel.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 271
            },
            {
              "name": "SetLights3D",
              "anchor": "Editor.SetLights3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLights3D(lights *render3d.LightRig)",
              "doc": "SetLights3D sets the lights the 3D viewport draws the scene's geometry with (Lights3D) and redraws it; nil goes back to DefaultLights3D under a gradient sky. Like Shading3D, the lights are a view setting: setting them is not undoable and changes nothing in the scene file.\n",
              "file": "pkg/editor/state.go",
              "line": 1440
            },
            {
              "name": "SetLocalizationKeyPlural",
              "anchor": "Editor.SetLocalizationKeyPlural",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLocalizationKeyPlural(key string, plural bool) error",
              "doc": "SetLocalizationKeyPlural switches key between plain string mode and CLDR plural mode as an undoable command, preserving text in the \"other\" plural form (and vice versa).\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 504
            },
            {
              "name": "SetLocalizationLoading",
              "anchor": "Editor.SetLocalizationLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLocalizationLoading(loading bool)",
              "doc": "SetLocalizationLoading updates the Localization panel's loading state and notifies listeners.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 201
            },
            {
              "name": "SetLocalizationPlural",
              "anchor": "Editor.SetLocalizationPlural",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLocalizationPlural(locale, key string, forms l10n.PluralForms) error",
              "doc": "SetLocalizationPlural sets the CLDR plural forms for (locale, key) as an undoable command. Setting an empty PluralForms clears the translation so it is flagged as missing and omitted on save.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 584
            },
            {
              "name": "SetLocalizationPluralForm",
              "anchor": "Editor.SetLocalizationPluralForm",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLocalizationPluralForm(locale, key, category, value string) error",
              "doc": "SetLocalizationPluralForm sets one CLDR plural category (\"zero\", \"one\", \"two\", \"few\", \"many\", or \"other\") of (locale, key) as an undoable command.\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 619
            },
            {
              "name": "SetLocalizationString",
              "anchor": "Editor.SetLocalizationString",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLocalizationString(locale, key, value string) error",
              "doc": "SetLocalizationString sets the localized string for (locale, key) as an undoable command. Setting an empty string clears the translation so it is flagged as missing and omitted on save (allowing runtime fallback).\n",
              "file": "pkg/editor/localization_panel.go",
              "line": 549
            },
            {
              "name": "SetLookThroughCamera3D",
              "anchor": "Editor.SetLookThroughCamera3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetLookThroughCamera3D(on bool) error",
              "doc": "SetLookThroughCamera3D toggles whether the 3D viewport renders and projects through the scene's\nactive 3D camera (matching the game's first frame). Enabling it without a 3D camera in the scene\nreturns an error.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 466
            },
            {
              "name": "SetMCPToolEnabled",
              "anchor": "Editor.SetMCPToolEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMCPToolEnabled(name string, enabled bool) error",
              "doc": "SetMCPToolEnabled toggles an MCP tool on or off in per-user editor settings.\nTurning a tool off removes it from the MCP server's tool list and refuses calls to it.\nRefused when invoked by an agent.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 958
            },
            {
              "name": "SetMaterialBaseColor",
              "anchor": "Editor.SetMaterialBaseColor",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialBaseColor(color string) error",
              "doc": "SetMaterialBaseColor updates the open material's BaseColor CSS color string (empty for default white) through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 740
            },
            {
              "name": "SetMaterialBlend",
              "anchor": "Editor.SetMaterialBlend",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialBlend(blend string) error",
              "doc": "SetMaterialBlend updates the open material's 2D Blend mode (empty or \"sourceOver\" for default) through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 801
            },
            {
              "name": "SetMaterialDoubleSided",
              "anchor": "Editor.SetMaterialDoubleSided",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialDoubleSided(on bool) error",
              "doc": "SetMaterialDoubleSided updates the open material's DoubleSided flag through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 814
            },
            {
              "name": "SetMaterialEmissive",
              "anchor": "Editor.SetMaterialEmissive",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialEmissive(color string) error",
              "doc": "SetMaterialEmissive updates the open material's Emissive CSS color string (empty for none) through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 749
            },
            {
              "name": "SetMaterialMetallic",
              "anchor": "Editor.SetMaterialMetallic",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialMetallic(v float32) error",
              "doc": "SetMaterialMetallic updates the open material's Metallic factor in [0, 1] through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 767
            },
            {
              "name": "SetMaterialName",
              "anchor": "Editor.SetMaterialName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialName(name string) error",
              "doc": "SetMaterialName updates the open material's Name through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 732
            },
            {
              "name": "SetMaterialOpacity",
              "anchor": "Editor.SetMaterialOpacity",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialOpacity(v float32) error",
              "doc": "SetMaterialOpacity updates the open material's Opacity factor in [0, 1] through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 788
            },
            {
              "name": "SetMaterialPreviewShape",
              "anchor": "Editor.SetMaterialPreviewShape",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialPreviewShape(shape MaterialPreviewShape)",
              "doc": "SetMaterialPreviewShape switches the Material Editor's live preview between Sphere, Cube (render3d), and Sprite (2D). It is a view setting, not an edit.\n",
              "file": "pkg/editor/materials.go",
              "line": 299
            },
            {
              "name": "SetMaterialRoughness",
              "anchor": "Editor.SetMaterialRoughness",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialRoughness(v float32) error",
              "doc": "SetMaterialRoughness updates the open material's Roughness factor in [0, 1] through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 775
            },
            {
              "name": "SetMaterialTexture",
              "anchor": "Editor.SetMaterialTexture",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialTexture(texturePath string) error",
              "doc": "SetMaterialTexture updates the open material's Texture path (slash-separated from project root, or empty for none) through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 758
            },
            {
              "name": "SetMaterialUnlit",
              "anchor": "Editor.SetMaterialUnlit",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMaterialUnlit(on bool) error",
              "doc": "SetMaterialUnlit updates the open material's Unlit flag through History.\n",
              "file": "pkg/editor/materials.go",
              "line": 822
            },
            {
              "name": "SetMentionPickerGroup",
              "anchor": "Editor.SetMentionPickerGroup",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMentionPickerGroup(group MentionGroup)",
              "doc": "SetMentionPickerGroup switches the active tab of the @-mention picker.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 572
            },
            {
              "name": "SetMergeAgentSuggestion",
              "anchor": "Editor.SetMergeAgentSuggestion",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMergeAgentSuggestion(id string, sug MergeSuggestion) error",
              "doc": "SetMergeAgentSuggestion updates the agent's suggestion for conflict item id (for example from an MCP agent tool).\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 454
            },
            {
              "name": "SetMergeCustomEditing",
              "anchor": "Editor.SetMergeCustomEditing",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMergeCustomEditing(id string, open bool) error",
              "doc": "SetMergeCustomEditing toggles the inline \"Edit the result YAML by hand\" editor for conflict item id.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 525
            },
            {
              "name": "SetMergeCustomYAML",
              "anchor": "Editor.SetMergeCustomYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetMergeCustomYAML(id, raw string)",
              "doc": "SetMergeCustomYAML updates the live hand-edited YAML text draft for conflict item id without applying it yet.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 547
            },
            {
              "name": "SetModelImportAnimations",
              "anchor": "Editor.SetModelImportAnimations",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetModelImportAnimations(relPath string, animations *bool) error",
              "doc": "SetModelImportAnimations sets or clears (when nil) the model animations override in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 973
            },
            {
              "name": "SetModelImportLODHysteresis",
              "anchor": "Editor.SetModelImportLODHysteresis",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetModelImportLODHysteresis(relPath string, hysteresis float32) error",
              "doc": "SetModelImportLODHysteresis sets or clears (when 0) the model's LOD hysteresis deadband in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 1006
            },
            {
              "name": "SetModelImportLODs",
              "anchor": "Editor.SetModelImportLODs",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetModelImportLODs(relPath string, lods []importsettings.ModelLOD) error",
              "doc": "SetModelImportLODs sets or clears (when empty) the model's declared LOD levels in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 990
            },
            {
              "name": "SetModelImportScale",
              "anchor": "Editor.SetModelImportScale",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetModelImportScale(relPath string, scale float64) error",
              "doc": "SetModelImportScale sets or clears (when 0) the model scale multiplier override in relPath's sidecar.\n",
              "file": "pkg/editor/asset_import.go",
              "line": 957
            },
            {
              "name": "SetModelPreviewLoop",
              "anchor": "Editor.SetModelPreviewLoop",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetModelPreviewLoop(loop bool)",
              "doc": "SetModelPreviewLoop sets whether model preview animation playback loops.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 642
            },
            {
              "name": "SetNavMesh3DFile",
              "anchor": "Editor.SetNavMesh3DFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetNavMesh3DFile(f *navbake3d.File)",
              "doc": "SetNavMesh3DFile sets the 3D navigation mesh file previewed in the 3D viewport.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 134
            },
            {
              "name": "SetNavMeshBakeConfig",
              "anchor": "Editor.SetNavMeshBakeConfig",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetNavMeshBakeConfig(cfg NavMeshBakeConfig)",
              "doc": "SetNavMeshBakeConfig updates the editor's 3D navigation mesh bake settings.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 114
            },
            {
              "name": "SetNavMeshPanelOpen",
              "anchor": "Editor.SetNavMeshPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetNavMeshPanelOpen(open bool)",
              "doc": "SetNavMeshPanelOpen shows or hides the 3D NavMesh bake settings panel.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 81
            },
            {
              "name": "SetNavRegionPoints",
              "anchor": "Editor.SetNavRegionPoints",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetNavRegionPoints(objectID string, points [][2]float64) error",
              "doc": "SetNavRegionPoints replaces the local polygon vertices of objectID's navregion2d component through History (at least 3 finite points).\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 277
            },
            {
              "name": "SetNavTestPathPoints",
              "anchor": "Editor.SetNavTestPathPoints",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetNavTestPathPoints(start, end core.Point) ([]core.Point, bool)",
              "doc": "SetNavTestPathPoints sets both endpoints of the 2D navigation test path in world space and immediately evaluates ai.NavMesh.FindPath on the active built scene.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 153
            },
            {
              "name": "SetNavigation3D",
              "anchor": "Editor.SetNavigation3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetNavigation3D(mode Navigation3D) error",
              "doc": "SetNavigation3D updates the 3D viewport mouse navigation mapping live. When SettingsPath is non-empty, the updated settings are persisted to SettingsPath.\n",
              "file": "pkg/editor/settings.go",
              "line": 730
            },
            {
              "name": "SetObjectAlpha",
              "anchor": "Editor.SetObjectAlpha",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectAlpha(id string, alpha float32) error",
              "doc": "SetObjectAlpha sets object id's opacity in [0, 1] as an undoable command.\nWhen id names an instanced or inherited object, it records an override on its instance or inheriting scene.\n",
              "file": "pkg/editor/state.go",
              "line": 2463
            },
            {
              "name": "SetObjectCamera3D",
              "anchor": "Editor.SetObjectCamera3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectCamera3D(id string, cam *sceneformat.Camera3DDoc) error",
              "doc": "SetObjectCamera3D sets or clears object id's 3D camera definition as an undoable command on History.\nWhen cam has Current set to true, any other 3D camera in the scene with Current true is cleared\natomically in the same undo step so the scene stays valid. Setting a 3D camera on a scene below\nversion 4 raises its version to sceneformat.CurrentVersion, which Undo restores.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 120
            },
            {
              "name": "SetObjectDepth",
              "anchor": "Editor.SetObjectDepth",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectDepth(id string, depth float32) error",
              "doc": "SetObjectDepth sets object id's 3D depth extent as an undoable command.\n",
              "file": "pkg/editor/state.go",
              "line": 2773
            },
            {
              "name": "SetObjectFlip",
              "anchor": "Editor.SetObjectFlip",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectFlip(objectID string, flipX, flipY bool) error",
              "doc": "SetObjectFlip sets whether objectID's sprite is mirrored horizontally (flipX) and vertically (flipY) inside its frame, through History.\n",
              "file": "pkg/editor/objectedit.go",
              "line": 388
            },
            {
              "name": "SetObjectGridMap",
              "anchor": "Editor.SetObjectGridMap",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectGridMap(id, gridMapPath string) error",
              "doc": "SetObjectGridMap sets the 3D grid map file (*.gridmap.yaml or *.gridmap.yml) object id draws,\nor \"\" to clear it, as an undoable command. It refuses a path sceneformat refuses, or combining\na GridMap with Mesh or Model, and raises a version 1 scene to version 2 (restored on Undo).\n",
              "file": "pkg/editor/gridmap.go",
              "line": 1623
            },
            {
              "name": "SetObjectHidden",
              "anchor": "Editor.SetObjectHidden",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectHidden(id string, hidden bool) error",
              "doc": "SetObjectHidden hides the object id, and with it its descendants, in the editor's 2D and 3D viewports, or shows it again. The toggle belongs to the editing session, like the camera of the 3D view: it is not an edit, is not undone, and is never written to the scene file, and Play draws every object. A hidden object cannot be picked or manipulated in a viewport either (no gizmo, no Move-tool drag), though the scene tree still selects it and the inspector edits it.\n",
              "file": "pkg/editor/hierarchy.go",
              "line": 806
            },
            {
              "name": "SetObjectID",
              "anchor": "Editor.SetObjectID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectID(oldID, newID string) error",
              "doc": "SetObjectID changes the ID of the object oldID to newID as one undoable command, rewriting in the same step every connection (sceneformat.ConnectionDoc) and scene override (sceneformat.SceneDoc.Overrides) that names it, and, when the object instances a scene, the objects that scene adds (\"enemy_1/body\" becomes \"boss/body\"). The selection, the open clip's target and the targets of its tracks, and the object's hidden and locked toggles follow it. It refuses an empty ID and one any object of the scene already has, including one an instanced or inherited scene adds, and an ID under which the scene would no longer resolve.\n",
              "file": "pkg/editor/hierarchy.go",
              "line": 649
            },
            {
              "name": "SetObjectLight",
              "anchor": "Editor.SetObjectLight",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectLight(id string, light *sceneformat.LightDoc) error",
              "doc": "SetObjectLight sets or clears object id's 3D light definition as an undoable command on History.\nSetting a light on a scene below version 4 raises its version to sceneformat.CurrentVersion,\nwhich Undo restores.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 19
            },
            {
              "name": "SetObjectLightProbeGrid",
              "anchor": "Editor.SetObjectLightProbeGrid",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectLightProbeGrid(id string, grid *sceneformat.LightProbeGridDoc) error",
              "doc": "SetObjectLightProbeGrid sets or clears object id's light probe grid definition as an undoable\ncommand on History. Setting a light probe grid on a scene below version 4 raises its version to\nsceneformat.CurrentVersion, which Undo restores.\n",
              "file": "pkg/editor/probes3d.go",
              "line": 104
            },
            {
              "name": "SetObjectLocked",
              "anchor": "Editor.SetObjectLocked",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectLocked(id string, locked bool) error",
              "doc": "SetObjectLocked locks the object id, and with it its descendants, against picking in the editor's 2D and 3D viewports, or unlocks it, so a click goes to what lies under it, and against manipulation there: its gizmo is not shown and the Move tool does not move it. Like SetObjectHidden, the toggle belongs to the editing session and is never written to the scene file. A locked object can still be selected and edited from the scene tree and the inspector.\n",
              "file": "pkg/editor/hierarchy.go",
              "line": 814
            },
            {
              "name": "SetObjectMaterial",
              "anchor": "Editor.SetObjectMaterial",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectMaterial(objectID, material string) error",
              "doc": "SetObjectMaterial names the material resource file objectID's sprite draws with, by its slash-separated path from the project root such as \"materials/stone.material.yaml\", or with an empty path names none, through History. A named material must load through the editor's Resolver, which must therefore implement sceneformat.MaterialResolver, as sceneformat.Build needs to draw the scene.\n",
              "file": "pkg/editor/objectedit.go",
              "line": 431
            },
            {
              "name": "SetObjectMesh",
              "anchor": "Editor.SetObjectMesh",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectMesh(id, mesh string) error",
              "doc": "SetObjectMesh sets the built-in primitive object id draws in 3D, one of sceneformat.MeshPrimitives or \"\" for none, as an undoable command. It refuses any other name, and a primitive on an object that names a model.\n",
              "file": "pkg/editor/state.go",
              "line": 2809
            },
            {
              "name": "SetObjectModel",
              "anchor": "Editor.SetObjectModel",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectModel(id, model string) error",
              "doc": "SetObjectModel names the glTF model object id draws in 3D, by its slash-separated path from the project root, such as \"models/crate.glb\", or with an empty path names none, as one undoable step. A named model must load through the 3D build's assets (the Resolver when it is a scenemodel.ModelResolver, the project's files otherwise). Changing the model clears the object's modelNode and modelMesh, which name parts of the model it drew; naming a model in a version 1 scene raises it to version 2, the first that has models, which Undo restores. It refuses a model on an object that draws a built-in primitive, as SetObjectMesh refuses the reverse.\n",
              "file": "pkg/editor/models.go",
              "line": 473
            },
            {
              "name": "SetObjectName",
              "anchor": "Editor.SetObjectName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectName(id, name string) error",
              "doc": "SetObjectName sets object id's display name as an undoable command.\nWhen id names an instanced or inherited object, it records an override on its instance or inheriting scene.\n",
              "file": "pkg/editor/state.go",
              "line": 2540
            },
            {
              "name": "SetObjectOccluder",
              "anchor": "Editor.SetObjectOccluder",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectOccluder(id string, occ *sceneformat.OccluderDoc) error",
              "doc": "SetObjectOccluder sets or clears (when nil) object id's 3D occluder definition\nthrough History. Setting an occluder on a version 1 scene raises it to version 2.\n",
              "file": "pkg/editor/viewport3d_lod_occluder.go",
              "line": 307
            },
            {
              "name": "SetObjectOrigin",
              "anchor": "Editor.SetObjectOrigin",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectOrigin(objectID string, x, y float32) error",
              "doc": "SetObjectOrigin sets objectID's pivot inside its sprite's untrimmed frame (originX and originY) through History. Both must be finite.\n",
              "file": "pkg/editor/objectedit.go",
              "line": 342
            },
            {
              "name": "SetObjectParticles",
              "anchor": "Editor.SetObjectParticles",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectParticles(objectID string, ref *sceneformat.ParticlesRef) error",
              "doc": "SetObjectParticles binds objectID to a 2D particle emitter YAML file and optional atlas (or clears it when ref is nil) through History.\n",
              "file": "pkg/editor/particles.go",
              "line": 1553
            },
            {
              "name": "SetObjectReflectionProbe",
              "anchor": "Editor.SetObjectReflectionProbe",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectReflectionProbe(id string, probe *sceneformat.ReflectionProbeDoc) error",
              "doc": "SetObjectReflectionProbe sets or clears object id's reflection probe definition as an undoable\ncommand on History. Setting a reflection probe on a scene below version 4 raises its version to\nsceneformat.CurrentVersion, which Undo restores.\n",
              "file": "pkg/editor/probes3d.go",
              "line": 26
            },
            {
              "name": "SetObjectSprite",
              "anchor": "Editor.SetObjectSprite",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectSprite(objectID string, ref *sceneformat.SpriteRef) error",
              "doc": "SetObjectSprite binds objectID to the atlas frame ref names, or with a nil ref unbinds it, through History. ref needs both an atlas and a frame; with a Resolver set the atlas must resolve and hold the frame, as the asset browser lists them (Assets).\n",
              "file": "pkg/editor/objectedit.go",
              "line": 280
            },
            {
              "name": "SetObjectZ",
              "anchor": "Editor.SetObjectZ",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetObjectZ(id string, z int) error",
              "doc": "SetObjectZ sets object id's within-layer draw order Z as an undoable command.\nWhen id names an instanced or inherited object, it records an override on its instance or inheriting scene.\n",
              "file": "pkg/editor/state.go",
              "line": 2503
            },
            {
              "name": "SetOccluderPolygonPoints",
              "anchor": "Editor.SetOccluderPolygonPoints",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOccluderPolygonPoints(objectID string, points [][2]float64) error",
              "doc": "SetOccluderPolygonPoints replaces the local polygon vertices of objectID's occluder2d component through History (at least 3 finite points).\n",
              "file": "pkg/editor/lights2d_editor.go",
              "line": 203
            },
            {
              "name": "SetOrthographic3D",
              "anchor": "Editor.SetOrthographic3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOrthographic3D(on bool)",
              "doc": "SetOrthographic3D switches the 3D viewport's camera between perspective and orthographic (OrbitCamera3D.Orthographic), keeping what lies at its Target the same size. It ends a flight and cancels a gizmo or camera drag.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 155
            },
            {
              "name": "SetOutputErrorsOnly",
              "anchor": "Editor.SetOutputErrorsOnly",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOutputErrorsOnly(errorsOnly bool)",
              "doc": "SetOutputErrorsOnly toggles the Output panel's Errors-only filter.\n",
              "file": "pkg/editor/output_panel.go",
              "line": 131
            },
            {
              "name": "SetOutputPanelOpen",
              "anchor": "Editor.SetOutputPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOutputPanelOpen(open bool)",
              "doc": "SetOutputPanelOpen shows or hides the Output panel below the viewport.\n",
              "file": "pkg/editor/output_panel.go",
              "line": 107
            },
            {
              "name": "SetOutputPanic",
              "anchor": "Editor.SetOutputPanic",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOutputPanic(report *PanicReport)",
              "doc": "SetOutputPanic sets or clears the Output panel's panic card report.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 261
            },
            {
              "name": "SetOutputPanicRuntimeExpanded",
              "anchor": "Editor.SetOutputPanicRuntimeExpanded",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOutputPanicRuntimeExpanded(expanded bool)",
              "doc": "SetOutputPanicRuntimeExpanded shows or folds runtime stack frames inside the Output panel's panic card.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 286
            },
            {
              "name": "SetOverlayClock",
              "anchor": "Editor.SetOverlayClock",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOverlayClock(fn func() time.Time)",
              "doc": "SetOverlayClock sets a custom clock function for overlay fade-in and pulse animation timing\n(used in deterministic tests; pass nil to restore time.Now).\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 683
            },
            {
              "name": "SetOverlayKindVisible",
              "anchor": "Editor.SetOverlayKindVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOverlayKindVisible(kind OverlayKind, visible bool) error",
              "doc": "SetOverlayKindVisible shows or hides one legend kind across all viewports (2D and 3D) and\npersists the choice per person in Editor.SettingsPath when configured (never touching project files).\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 939
            },
            {
              "name": "SetOverlayLegendKind",
              "anchor": "Editor.SetOverlayLegendKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOverlayLegendKind(kind OverlayLegendKind, on bool) error",
              "doc": "SetOverlayLegendKind turns the Spec overlay legend row kind on or off and persists the choice\nin the editor's settings file when SettingsPath is configured.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 786
            },
            {
              "name": "SetOverlayLegendKinds",
              "anchor": "Editor.SetOverlayLegendKinds",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOverlayLegendKinds(kinds []OverlayKind) error",
              "doc": "SetOverlayLegendKinds replaces the enabled legend kinds and persists to SettingsPath when set.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 967
            },
            {
              "name": "SetOverlayLegendOpen",
              "anchor": "Editor.SetOverlayLegendOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOverlayLegendOpen(open bool)",
              "doc": "SetOverlayLegendOpen shows or hides the compact viewport overlay legend in the viewport top-left corner.\n",
              "file": "pkg/editor/spec_feedback_ui.go",
              "line": 43
            },
            {
              "name": "SetOverlaysPopoverOpen",
              "anchor": "Editor.SetOverlaysPopoverOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetOverlaysPopoverOpen(open bool)",
              "doc": "SetOverlaysPopoverOpen opens or closes the viewport Overlays popover.\n",
              "file": "pkg/editor/overlays.go",
              "line": 521
            },
            {
              "name": "SetPanelVisible",
              "anchor": "Editor.SetPanelVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPanelVisible(key string, visible bool)",
              "doc": "SetPanelVisible shows or hides panel key, persisting the layout when LayoutPath is set.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1458
            },
            {
              "name": "SetParticleActiveCurve",
              "anchor": "Editor.SetParticleActiveCurve",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleActiveCurve(kind ParticleCurveKind)",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1134
            },
            {
              "name": "SetParticleAlphaCurve",
              "anchor": "Editor.SetParticleAlphaCurve",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleAlphaCurve(c particles.FloatCurve) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1169
            },
            {
              "name": "SetParticleAngle",
              "anchor": "Editor.SetParticleAngle",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleAngle(minAngle, maxAngle float32) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 959
            },
            {
              "name": "SetParticleBurst",
              "anchor": "Editor.SetParticleBurst",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleBurst(index int, b particles.Burst) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 913
            },
            {
              "name": "SetParticleCollision",
              "anchor": "Editor.SetParticleCollision",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleCollision(col particles.CollisionConfig) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1027
            },
            {
              "name": "SetParticleColorCurve",
              "anchor": "Editor.SetParticleColorCurve",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleColorCurve(c particles.ColorCurve) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1183
            },
            {
              "name": "SetParticleColorStop",
              "anchor": "Editor.SetParticleColorStop",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleColorStop(kind ParticleCurveKind, index int, t float32, col core.Color) (int, error)",
              "doc": "SetParticleColorStop updates the color stop at index in the named color curve, keeping stops sorted by T, and returns its new index.\n",
              "file": "pkg/editor/particles.go",
              "line": 1383
            },
            {
              "name": "SetParticleFloatStop",
              "anchor": "Editor.SetParticleFloatStop",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleFloatStop(kind ParticleCurveKind, index int, t, val float32) (int, error)",
              "doc": "SetParticleFloatStop updates the control point at index in the named float curve, keeping stops sorted by T, and returns its new index.\n",
              "file": "pkg/editor/particles.go",
              "line": 1291
            },
            {
              "name": "SetParticleFrameNames",
              "anchor": "Editor.SetParticleFrameNames",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleFrameNames(names []string) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 999
            },
            {
              "name": "SetParticleGravity",
              "anchor": "Editor.SetParticleGravity",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleGravity(gx, gy float32) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 969
            },
            {
              "name": "SetParticleInitialRotation",
              "anchor": "Editor.SetParticleInitialRotation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleInitialRotation(minRot, maxRot float32) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 979
            },
            {
              "name": "SetParticleLifetime",
              "anchor": "Editor.SetParticleLifetime",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleLifetime(minLife, maxLife time.Duration) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 939
            },
            {
              "name": "SetParticleMaxParticles",
              "anchor": "Editor.SetParticleMaxParticles",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleMaxParticles(n int) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 893
            },
            {
              "name": "SetParticlePosition",
              "anchor": "Editor.SetParticlePosition",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticlePosition(x, y float32) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 833
            },
            {
              "name": "SetParticlePreviewAtlas",
              "anchor": "Editor.SetParticlePreviewAtlas",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticlePreviewAtlas(atlasName string)",
              "doc": "SetParticlePreviewAtlas binds the named atlas from the editor's Resolver to the live particle preview and atlas frame picker.\n",
              "file": "pkg/editor/particles.go",
              "line": 739
            },
            {
              "name": "SetParticlePreviewFloor",
              "anchor": "Editor.SetParticlePreviewFloor",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticlePreviewFloor(on bool)",
              "doc": "SetParticlePreviewFloor toggles the preview's horizontal test floor collider for inspecting collision response.\n",
              "file": "pkg/editor/particles.go",
              "line": 754
            },
            {
              "name": "SetParticleRate",
              "anchor": "Editor.SetParticleRate",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleRate(rate float32) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 883
            },
            {
              "name": "SetParticleRotation",
              "anchor": "Editor.SetParticleRotation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleRotation(rot float32) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 843
            },
            {
              "name": "SetParticleRotationCurve",
              "anchor": "Editor.SetParticleRotationCurve",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleRotationCurve(c particles.FloatCurve) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1176
            },
            {
              "name": "SetParticleRotationSpeed",
              "anchor": "Editor.SetParticleRotationSpeed",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleRotationSpeed(minSpeed, maxSpeed float32) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 989
            },
            {
              "name": "SetParticleSeed",
              "anchor": "Editor.SetParticleSeed",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleSeed(seed uint64) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 860
            },
            {
              "name": "SetParticleShape",
              "anchor": "Editor.SetParticleShape",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleShape(shape particles.Shape) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 867
            },
            {
              "name": "SetParticleSizeCurve",
              "anchor": "Editor.SetParticleSizeCurve",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleSizeCurve(c particles.FloatCurve) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1162
            },
            {
              "name": "SetParticleSpace",
              "anchor": "Editor.SetParticleSpace",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleSpace(space particles.SimulationSpace) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 826
            },
            {
              "name": "SetParticleSpeed",
              "anchor": "Editor.SetParticleSpeed",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleSpeed(minSpeed, maxSpeed float32) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 949
            },
            {
              "name": "SetParticleSubEmitter",
              "anchor": "Editor.SetParticleSubEmitter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleSubEmitter(index int, trigger particles.SubEmitterTrigger, burstCount int, inheritVelocity float32) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1094
            },
            {
              "name": "SetParticleTargetPath",
              "anchor": "Editor.SetParticleTargetPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleTargetPath(subPath []int) error",
              "doc": "SetParticleTargetPath selects either the root emitter (empty path) or a nested sub-emitter config by index path for editing in the panel.\n",
              "file": "pkg/editor/particles.go",
              "line": 180
            },
            {
              "name": "SetParticleTrail",
              "anchor": "Editor.SetParticleTrail",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleTrail(trail *particles.TrailConfig) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1057
            },
            {
              "name": "SetParticleTrailEnabled",
              "anchor": "Editor.SetParticleTrailEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleTrailEnabled(enabled bool) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1038
            },
            {
              "name": "SetParticleZ",
              "anchor": "Editor.SetParticleZ",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetParticleZ(z int) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 853
            },
            {
              "name": "SetPermissionRuleAction",
              "anchor": "Editor.SetPermissionRuleAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPermissionRuleAction(index int, action PermissionAction) error",
              "doc": "SetPermissionRuleAction updates the action of rule index and persists permissions.yaml.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1344
            },
            {
              "name": "SetPermissionRuleDecision",
              "anchor": "Editor.SetPermissionRuleDecision",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPermissionRuleDecision(index int, decision PermissionDecision) error",
              "doc": "SetPermissionRuleDecision updates the decision (allow, ask, deny) of rule index, keeping the active profile name (so IsModified marks it as changed when it differs from the preset), and persists permissions.yaml.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1327
            },
            {
              "name": "SetPermissionRulePatterns",
              "anchor": "Editor.SetPermissionRulePatterns",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPermissionRulePatterns(index int, patterns []string) error",
              "doc": "SetPermissionRulePatterns updates the file globs / run targets of rule index and persists permissions.yaml.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1367
            },
            {
              "name": "SetPermissions",
              "anchor": "Editor.SetPermissions",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPermissions(f PermissionsFile) error",
              "doc": "SetPermissions validates, persists permissions.yaml when a project path is available, and atomically applies f to the editor.\nIf writing permissions.yaml fails, in-memory rules remain unchanged so disk and memory never diverge.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1268
            },
            {
              "name": "SetPermissionsDraftRuleTicked",
              "anchor": "Editor.SetPermissionsDraftRuleTicked",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPermissionsDraftRuleTicked(index int, ticked bool)",
              "doc": "SetPermissionsDraftRuleTicked sets the checkbox state of rule index in the open permissions draft (person-only).\n",
              "file": "pkg/editor/you_only.go",
              "line": 940
            },
            {
              "name": "SetPermissionsSettingsOpen",
              "anchor": "Editor.SetPermissionsSettingsOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPermissionsSettingsOpen(open bool)",
              "doc": "SetPermissionsSettingsOpen opens or closes Settings › Permissions.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1230
            },
            {
              "name": "SetPhysicsLayers",
              "anchor": "Editor.SetPhysicsLayers",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPhysicsLayers(layers *sceneformat.PhysicsLayerTable)",
              "doc": "SetPhysicsLayers configures the named collision layer table used when validating and playing scenes without an open project. When a project with physics settings is open, the project's physics.layers take precedence.\n",
              "file": "pkg/editor/state.go",
              "line": 1590
            },
            {
              "name": "SetPlaceOptions3D",
              "anchor": "Editor.SetPlaceOptions3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPlaceOptions3D(height float32, snap, align bool) error",
              "doc": "SetPlaceOptions3D sets how the Place tool puts models in the 3D viewport: the ground plane's height (PlaceHeight3D), snapping to the grid (PlaceSnap3D) and aligning to the surface's normal (PlaceAlign3D). Like the camera, they are a view setting, not an edit: not undoable and not saved. It refuses a height that is not finite.\n",
              "file": "pkg/editor/models_ui.go",
              "line": 28
            },
            {
              "name": "SetPlanGhostsVisible",
              "anchor": "Editor.SetPlanGhostsVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPlanGhostsVisible(visible bool)",
              "doc": "SetPlanGhostsVisible turns planned viewport ghosts on or off without altering the plan or scene.\n",
              "file": "pkg/editor/plan.go",
              "line": 1439
            },
            {
              "name": "SetPlanStepField",
              "anchor": "Editor.SetPlanStepField",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPlanStepField(stepNumber int, fieldKey string, value int) error",
              "doc": "SetPlanStepField updates numeric fieldKey on stepNumber, clamping value to [Min, Max].\n",
              "file": "pkg/editor/plan.go",
              "line": 1265
            },
            {
              "name": "SetPlanStepNote",
              "anchor": "Editor.SetPlanStepNote",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPlanStepNote(stepNumber int, note string) error",
              "doc": "SetPlanStepNote stores a free-text note telling the agent how to change stepNumber.\n",
              "file": "pkg/editor/plan.go",
              "line": 1339
            },
            {
              "name": "SetPlayInspectorTab",
              "anchor": "Editor.SetPlayInspectorTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPlayInspectorTab(tab PlayInspectorTab)",
              "doc": "SetPlayInspectorTab switches between the Inspector and Agent tabs during Play mode.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 796
            },
            {
              "name": "SetPlayPaused",
              "anchor": "Editor.SetPlayPaused",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPlayPaused(paused bool)",
              "doc": "SetPlayPaused pauses or resumes local Play mode. Resuming clears the viewport agent stepping pill.\n",
              "file": "pkg/editor/play.go",
              "line": 30
            },
            {
              "name": "SetPlayTimeScale",
              "anchor": "Editor.SetPlayTimeScale",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPlayTimeScale(scale float64)",
              "doc": "SetPlayTimeScale updates the Play mode simulation time scale (such as 0.25, 0.5, 1, or 2).\n",
              "file": "pkg/editor/play.go",
              "line": 70
            },
            {
              "name": "SetPlaytestAgentRead",
              "anchor": "Editor.SetPlaytestAgentRead",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPlaytestAgentRead(read string, suggestions []string) error",
              "doc": "SetPlaytestAgentRead replaces the Agent's read text and actionable suggestions on the active playtest report entry.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 656
            },
            {
              "name": "SetPlaytestReportOpen",
              "anchor": "Editor.SetPlaytestReportOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPlaytestReportOpen(open bool)",
              "doc": "SetPlaytestReportOpen opens or closes the Playtest Report screen.\nOpening while Play mode is active is ignored. If no report is loaded yet and an open project contains playtest.report.yaml, it loads it automatically.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 331
            },
            {
              "name": "SetPluginEnabled",
              "anchor": "Editor.SetPluginEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPluginEnabled(name string, on bool) error",
              "doc": "SetPluginEnabled turns the registered plugin name on or off for the open project by adding it to or removing it from editor.plugins in game.yaml, as one undoable step that SaveProject writes. A plugin turned on goes last; turning off the last one removes the editor section when nothing else is left in it, including a section the author wrote, and Undo puts it back. It returns ErrNoProject without a project, ErrPlaying while playing, and an error for a name that is not registered when turning it on; turning off a plugin the project names but this editor lacks is allowed.\n",
              "file": "pkg/editor/plugin.go",
              "line": 430
            },
            {
              "name": "SetPluginHover2D",
              "anchor": "Editor.SetPluginHover2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPluginHover2D(x, y float32)",
              "doc": "SetPluginHover2D notifies the active plugin tool's OnHover callback of pointer motion at canvas coordinates (x, y) in 2D edit mode.\n",
              "file": "pkg/editor/plugin.go",
              "line": 713
            },
            {
              "name": "SetPluginHover3D",
              "anchor": "Editor.SetPluginHover3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPluginHover3D(sx, sy, w, h float32)",
              "doc": "SetPluginHover3D notifies the active plugin tool's OnHover3D callback of pointer motion at viewport pixel (sx, sy) in 3D edit mode.\n",
              "file": "pkg/editor/plugin.go",
              "line": 606
            },
            {
              "name": "SetPluginTool",
              "anchor": "Editor.SetPluginTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetPluginTool(plugin, id string) error",
              "doc": "SetPluginTool makes the tool id of the plugin that is on the active viewport tool; Tool becomes ToolPlugin. Choosing another tool with SetTool, or turning the plugin off, ends it.\n",
              "file": "pkg/editor/plugin.go",
              "line": 468
            },
            {
              "name": "SetProblemAgentPanelOpen",
              "anchor": "Editor.SetProblemAgentPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProblemAgentPanelOpen(open bool)",
              "doc": "SetProblemAgentPanelOpen shows or hides the right-hand Agent problem panel.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 132
            },
            {
              "name": "SetProblemOverlayVisible",
              "anchor": "Editor.SetProblemOverlayVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProblemOverlayVisible(visible bool)",
              "doc": "SetProblemOverlayVisible toggles the Spec Problem overlay in the viewport\n(synchronized with the Problem legend toggle and persisted when SettingsPath is set).\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 172
            },
            {
              "name": "SetProfilerMetric",
              "anchor": "Editor.SetProfilerMetric",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProfilerMetric(metric ProfilerMetric)",
              "doc": "SetProfilerMetric selects the active time-series chart in the full Profiler panel.\n",
              "file": "pkg/editor/profiler.go",
              "line": 410
            },
            {
              "name": "SetProfilerOpen",
              "anchor": "Editor.SetProfilerOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProfilerOpen(open bool)",
              "doc": "SetProfilerOpen opens or closes the full Profiler panel below the viewport.\n",
              "file": "pkg/editor/profiler.go",
              "line": 373
            },
            {
              "name": "SetProjectAppVersion",
              "anchor": "Editor.SetProjectAppVersion",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectAppVersion(version string) error",
              "doc": "SetProjectAppVersion updates game.yaml's appVersion through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 113
            },
            {
              "name": "SetProjectDisplayBarColor",
              "anchor": "Editor.SetProjectDisplayBarColor",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectDisplayBarColor(barColor string) error",
              "doc": "SetProjectDisplayBarColor updates game.yaml's display.barColor through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 322
            },
            {
              "name": "SetProjectDisplayEnabled",
              "anchor": "Editor.SetProjectDisplayEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectDisplayEnabled(enabled bool) error",
              "doc": "SetProjectDisplayEnabled enables or disables game.yaml's virtual display section through EditProject.\nEnabling initializes display.width and display.height from the project's window size.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 220
            },
            {
              "name": "SetProjectDisplayIntegerScale",
              "anchor": "Editor.SetProjectDisplayIntegerScale",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectDisplayIntegerScale(on bool) error",
              "doc": "SetProjectDisplayIntegerScale updates game.yaml's display.integerScale through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 284
            },
            {
              "name": "SetProjectDisplayMode",
              "anchor": "Editor.SetProjectDisplayMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectDisplayMode(mode string) error",
              "doc": "SetProjectDisplayMode updates game.yaml's display.mode through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 265
            },
            {
              "name": "SetProjectDisplayPixelSnap",
              "anchor": "Editor.SetProjectDisplayPixelSnap",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectDisplayPixelSnap(on bool) error",
              "doc": "SetProjectDisplayPixelSnap updates game.yaml's display.pixelSnap through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 303
            },
            {
              "name": "SetProjectDisplaySize",
              "anchor": "Editor.SetProjectDisplaySize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectDisplaySize(width, height float32) error",
              "doc": "SetProjectDisplaySize updates game.yaml's display.width and display.height through EditProject (creating display if nil).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 245
            },
            {
              "name": "SetProjectID",
              "anchor": "Editor.SetProjectID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectID(id string) error",
              "doc": "SetProjectID updates game.yaml's id through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 97
            },
            {
              "name": "SetProjectLoading",
              "anchor": "Editor.SetProjectLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectLoading(loading bool, projectPath string)",
              "doc": "SetProjectLoading sets the project-loading state so every region displays its designed loading state.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 149
            },
            {
              "name": "SetProjectMainScene",
              "anchor": "Editor.SetProjectMainScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectMainScene(name string) error",
              "doc": "SetProjectMainScene updates game.yaml's autoload.mainScene through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 341
            },
            {
              "name": "SetProjectName",
              "anchor": "Editor.SetProjectName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectName(name string) error",
              "doc": "SetProjectName updates game.yaml's name through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 81
            },
            {
              "name": "SetProjectPhysicsGravity2D",
              "anchor": "Editor.SetProjectPhysicsGravity2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectPhysicsGravity2D(x, y float32) error",
              "doc": "SetProjectPhysicsGravity2D updates game.yaml's physics.gravity2D through EditProject.\n",
              "file": "pkg/editor/project_settings_physics.go",
              "line": 16
            },
            {
              "name": "SetProjectPhysicsGravity3D",
              "anchor": "Editor.SetProjectPhysicsGravity3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectPhysicsGravity3D(x, y, z float32) error",
              "doc": "SetProjectPhysicsGravity3D updates game.yaml's physics.gravity3D through EditProject.\n",
              "file": "pkg/editor/project_settings_physics.go",
              "line": 36
            },
            {
              "name": "SetProjectPhysicsSolverIterations",
              "anchor": "Editor.SetProjectPhysicsSolverIterations",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectPhysicsSolverIterations(iter2D, iter3D int) error",
              "doc": "SetProjectPhysicsSolverIterations updates game.yaml's physics.solverIterations2D and solverIterations3D through EditProject.\n",
              "file": "pkg/editor/project_settings_physics.go",
              "line": 56
            },
            {
              "name": "SetProjectRules",
              "anchor": "Editor.SetProjectRules",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectRules(label, content string) error",
              "doc": "SetProjectRules updates AGENTS.md as plain Markdown in one undoable step in Editor.History,\nwriting the file when a project is open.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 905
            },
            {
              "name": "SetProjectSettingsOpen",
              "anchor": "Editor.SetProjectSettingsOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectSettingsOpen(open bool)",
              "doc": "SetProjectSettingsOpen opens the Settings view on the Project page, or closes Settings when open is false and the Project page is active.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 37
            },
            {
              "name": "SetProjectSettingsSection",
              "anchor": "Editor.SetProjectSettingsSection",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectSettingsSection(section ProjectSettingsSection)",
              "doc": "SetProjectSettingsSection switches the active section in the Project Settings panel.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 59
            },
            {
              "name": "SetProjectTemplates",
              "anchor": "Editor.SetProjectTemplates",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectTemplates(tmpls []ProjectTemplate)",
              "doc": "SetProjectTemplates sets the project templates displayed on the Start Screen.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 350
            },
            {
              "name": "SetProjectWindowAppearance",
              "anchor": "Editor.SetProjectWindowAppearance",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectWindowAppearance(appearance string) error",
              "doc": "SetProjectWindowAppearance updates game.yaml's window.appearance through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 203
            },
            {
              "name": "SetProjectWindowLimits",
              "anchor": "Editor.SetProjectWindowLimits",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectWindowLimits(minWidth, minHeight, maxWidth, maxHeight float32) error",
              "doc": "SetProjectWindowLimits updates game.yaml's window min/max width and height limits through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 162
            },
            {
              "name": "SetProjectWindowResizable",
              "anchor": "Editor.SetProjectWindowResizable",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectWindowResizable(resizable bool) error",
              "doc": "SetProjectWindowResizable updates game.yaml's window.resizable through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 182
            },
            {
              "name": "SetProjectWindowSize",
              "anchor": "Editor.SetProjectWindowSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectWindowSize(width, height float32) error",
              "doc": "SetProjectWindowSize updates game.yaml's window.width and window.height through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 145
            },
            {
              "name": "SetProjectWindowTitle",
              "anchor": "Editor.SetProjectWindowTitle",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProjectWindowTitle(title string) error",
              "doc": "SetProjectWindowTitle updates game.yaml's window.title through EditProject (validated and undoable).\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 129
            },
            {
              "name": "SetProperty",
              "anchor": "Editor.SetProperty",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProperty(objectID, key string, value any) error",
              "doc": "SetProperty sets a typed custom property on objectID through History.\nSupported value types include string, int, float64, float32, and bool.\n",
              "file": "pkg/editor/inspector.go",
              "line": 22
            },
            {
              "name": "SetProposedNewObjectIDs",
              "anchor": "Editor.SetProposedNewObjectIDs",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetProposedNewObjectIDs(ids []string)",
              "doc": "SetProposedNewObjectIDs marks object IDs proposed by a pending review so the scene rail displays a NEW tag.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 396
            },
            {
              "name": "SetRandomBrushSeed",
              "anchor": "Editor.SetRandomBrushSeed",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRandomBrushSeed(seed uint64)",
              "doc": "SetRandomBrushSeed sets the deterministic seed used by ToolRandomTile.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 301
            },
            {
              "name": "SetRandomBrushTileWeight",
              "anchor": "Editor.SetRandomBrushTileWeight",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRandomBrushTileWeight(tileID int, weight float64) error",
              "doc": "SetRandomBrushTileWeight adds tileID to the random brush pool with weight, or updates its weight when already present.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 349
            },
            {
              "name": "SetRandomBrushTiles",
              "anchor": "Editor.SetRandomBrushTiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRandomBrushTiles(entries []WeightedTile) error",
              "doc": "SetRandomBrushTiles configures the weighted tile pool for ToolRandomTile.\nEach entry must have a positive TileID and a positive finite Weight; duplicate tile IDs and overflowing weight sums are refused.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 319
            },
            {
              "name": "SetRecentProjectsPath",
              "anchor": "Editor.SetRecentProjectsPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRecentProjectsPath(path string) error",
              "doc": "SetRecentProjectsPath configures where the editor persists its per-user recent projects YAML file\nand loads any existing entries from path (an absent file starts with an empty list).\n",
              "file": "pkg/editor/recent_projects.go",
              "line": 221
            },
            {
              "name": "SetReduceMotion",
              "anchor": "Editor.SetReduceMotion",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReduceMotion(on bool)",
              "doc": "SetReduceMotion forces reduced motion on or off on the editor (overriding the platform environment).\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 708
            },
            {
              "name": "SetReducedMotionOverride",
              "anchor": "Editor.SetReducedMotionOverride",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReducedMotionOverride(v *bool)",
              "doc": "SetReducedMotionOverride overrides reduced-motion detection for deterministic testing.\nPass nil to follow core.Scope.Env().ReducedMotion.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 601
            },
            {
              "name": "SetRegisteredMCPTools",
              "anchor": "Editor.SetRegisteredMCPTools",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRegisteredMCPTools(tools []AgentToolInfo)",
              "doc": "SetRegisteredMCPTools publishes the sorted list of tools registered on the editor's MCP server\nso Settings › Tools shows every tool with its name, description, and on/off switch.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 889
            },
            {
              "name": "SetReleaseDryRun",
              "anchor": "Editor.SetReleaseDryRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseDryRun(dryRun bool)",
              "doc": "SetReleaseDryRun toggles dry-run mode on the Build and Release screen.\n",
              "file": "pkg/editor/build_release.go",
              "line": 859
            },
            {
              "name": "SetReleaseEditingPreset",
              "anchor": "Editor.SetReleaseEditingPreset",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseEditingPreset(editing bool)",
              "doc": "SetReleaseEditingPreset toggles the inline preset editor drawer for the selected preset.\n",
              "file": "pkg/editor/build_release.go",
              "line": 907
            },
            {
              "name": "SetReleaseFollowLog",
              "anchor": "Editor.SetReleaseFollowLog",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseFollowLog(follow bool)",
              "doc": "SetReleaseFollowLog toggles log auto-following on the Build and Release screen.\n",
              "file": "pkg/editor/build_release.go",
              "line": 875
            },
            {
              "name": "SetReleaseKeptReviews",
              "anchor": "Editor.SetReleaseKeptReviews",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseKeptReviews(reviews []string)",
              "doc": "SetReleaseKeptReviews sets the kept review summaries included when drafting player-facing release notes.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 408
            },
            {
              "name": "SetReleaseNotesFile",
              "anchor": "Editor.SetReleaseNotesFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseNotesFile(relPath string) error",
              "doc": "SetReleaseNotesFile sets the project-relative Markdown file path for RELEASE NOTES (syncing ExportReleaseNotes).\nPaths escaping the project directory or pointing through symlinks are refused.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 370
            },
            {
              "name": "SetReleaseNotesText",
              "anchor": "Editor.SetReleaseNotesText",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseNotesText(notes string)",
              "doc": "SetReleaseNotesText updates the release notes shown in the Build and Release screen and saves\nthem directly to the exact Markdown file that `game release -release-notes` reads, touching ONLY that file.\n",
              "file": "pkg/editor/build_release.go",
              "line": 816
            },
            {
              "name": "SetReleaseShowWholeLog",
              "anchor": "Editor.SetReleaseShowWholeLog",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseShowWholeLog(show bool)",
              "doc": "SetReleaseShowWholeLog toggles expanding the full log view on a failed preset.\n",
              "file": "pkg/editor/build_release.go",
              "line": 891
            },
            {
              "name": "SetReleaseUploadDestination",
              "anchor": "Editor.SetReleaseUploadDestination",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseUploadDestination(platform string, dest PublishDestination) error",
              "doc": "SetReleaseUploadDestination changes the target store destination for platform inside Review uploads.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 1048
            },
            {
              "name": "SetReleaseUploadItemIncluded",
              "anchor": "Editor.SetReleaseUploadItemIncluded",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseUploadItemIncluded(platform string, included bool) error",
              "doc": "SetReleaseUploadItemIncluded toggles whether platform's artifact is included in the Review uploads batch.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 1020
            },
            {
              "name": "SetReleaseVersion",
              "anchor": "Editor.SetReleaseVersion",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReleaseVersion(version string) error",
              "doc": "SetReleaseVersion updates the open project's appVersion through EditProject.\n",
              "file": "pkg/editor/build_release.go",
              "line": 791
            },
            {
              "name": "SetRemoteComponentField",
              "anchor": "Editor.SetRemoteComponentField",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRemoteComponentField(ref, component, field string, value any) error",
              "doc": "SetRemoteComponentField patches one field of component on the live entity ref via game_component_set, records or updates the edit in RemoteLiveChanges, and updates the cached inspection snapshot.\n",
              "file": "pkg/editor/remote.go",
              "line": 1399
            },
            {
              "name": "SetRemoteComponentValue",
              "anchor": "Editor.SetRemoteComponentValue",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRemoteComponentValue(ref, component string, value any, replace bool) error",
              "doc": "SetRemoteComponentValue sets or replaces a scalar or structured component value on the live entity ref via game_component_set.\n",
              "file": "pkg/editor/remote.go",
              "line": 1462
            },
            {
              "name": "SetReviewChangeBlocker",
              "anchor": "Editor.SetReviewChangeBlocker",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReviewChangeBlocker(changeID, reason string)",
              "doc": "SetReviewChangeBlocker sets or clears a blocker reason on changeID (plug-in hook for Conflicts / YAML errors).\n",
              "file": "pkg/editor/review.go",
              "line": 3170
            },
            {
              "name": "SetReviewChangeNote",
              "anchor": "Editor.SetReviewChangeNote",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReviewChangeNote(changeID, note string)",
              "doc": "SetReviewChangeNote sets or clears an unsent annotation note on changeID.\n",
              "file": "pkg/editor/review.go",
              "line": 3161
            },
            {
              "name": "SetReviewFilter",
              "anchor": "Editor.SetReviewFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReviewFilter(f ReviewFilter)",
              "doc": "SetReviewFilter switches the active left-list filter chip (All, Added, Changed, Removed, Unseen, Notes).\n",
              "file": "pkg/editor/review.go",
              "line": 2767
            },
            {
              "name": "SetReviewNote",
              "anchor": "Editor.SetReviewNote",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReviewNote(changeID, note string) error",
              "doc": "SetReviewNote saves an unsent turn-scoped note on changeID. Notes live only in memory on the\nactive turn and are never written to any scene, prefab, or data file.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 456
            },
            {
              "name": "SetReviewNoteDraft",
              "anchor": "Editor.SetReviewNoteDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReviewNoteDraft(text string)",
              "doc": "SetReviewNoteDraft updates the live composer draft without trimming spaces or triggering\na full Review UI remount so typing stays completely smooth and focus-stable.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 436
            },
            {
              "name": "SetReviewPeekBefore",
              "anchor": "Editor.SetReviewPeekBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReviewPeekBefore(peek bool)",
              "doc": "SetReviewPeekBefore switches Before-request peek mode (holding B).\n",
              "file": "pkg/editor/review.go",
              "line": 3135
            },
            {
              "name": "SetReviewSearch",
              "anchor": "Editor.SetReviewSearch",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReviewSearch(q string)",
              "doc": "SetReviewSearch updates the left-list filter query (matching change name, field, detail, or file path).\n",
              "file": "pkg/editor/review.go",
              "line": 2783
            },
            {
              "name": "SetReviewViewRound",
              "anchor": "Editor.SetReviewViewRound",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReviewViewRound(round int) error",
              "doc": "SetReviewViewRound switches the Review screen between Round 1 (read-only once Round 2+ exists)\nand the latest round. Keep always applies the latest round.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 288
            },
            {
              "name": "SetReviewYAMLDraft",
              "anchor": "Editor.SetReviewYAMLDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetReviewYAMLDraft(changeID, raw string) error",
              "doc": "SetReviewYAMLDraft updates the in-place YAML text for changeID, parses and validates it live\n(refusing unknown fields and duplicate keys), updates the Review viewport immediately when valid,\nor records a line-specific error with a one-step fix when the parser reports what is missing.\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 378
            },
            {
              "name": "SetRigAnimationDuration",
              "anchor": "Editor.SetRigAnimationDuration",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigAnimationDuration(name string, duration time.Duration) error",
              "doc": "SetRigAnimationDuration sets animation name's duration as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1396
            },
            {
              "name": "SetRigAnimationLoop",
              "anchor": "Editor.SetRigAnimationLoop",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigAnimationLoop(name string, loop bool) error",
              "doc": "SetRigAnimationLoop sets animation name's default loop flag as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1414
            },
            {
              "name": "SetRigAtlas",
              "anchor": "Editor.SetRigAtlas",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigAtlas(atlasName string) error",
              "doc": "SetRigAtlas selects which sprite.Atlas supplies attachment frames for the rig editor preview.\n",
              "file": "pkg/editor/rig.go",
              "line": 681
            },
            {
              "name": "SetRigAttachment",
              "anchor": "Editor.SetRigAttachment",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigAttachment(skin, slot string, att skeletal.Attachment) error",
              "doc": "SetRigAttachment sets the full skeletal.Attachment for slot in skin (creating skin if needed) as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1169
            },
            {
              "name": "SetRigAttachmentOrigin",
              "anchor": "Editor.SetRigAttachmentOrigin",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigAttachmentOrigin(skin, slot string, originX, originY float32) error",
              "doc": "SetRigAttachmentOrigin sets the pivot (originX, originY) of slot's attachment in skin as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1229
            },
            {
              "name": "SetRigAttachmentTransform",
              "anchor": "Editor.SetRigAttachmentTransform",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigAttachmentTransform(skin, slot string, x, y, rotation, scaleX, scaleY float32) error",
              "doc": "SetRigAttachmentTransform sets the local offset, rotation and scale of slot's attachment in skin as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1259
            },
            {
              "name": "SetRigBoneLength",
              "anchor": "Editor.SetRigBoneLength",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigBoneLength(name string, length float32) error",
              "doc": "SetRigBoneLength sets bone name's length (non-negative, finite) as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 994
            },
            {
              "name": "SetRigCanvasSize",
              "anchor": "Editor.SetRigCanvasSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigCanvasSize(w, h float32)",
              "doc": "SetRigCanvasSize records the rig editor canvas's laid-out size in points.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 81
            },
            {
              "name": "SetRigName",
              "anchor": "Editor.SetRigName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigName(name string) error",
              "doc": "SetRigName sets the open rig's name as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 697
            },
            {
              "name": "SetRigSlotAlpha",
              "anchor": "Editor.SetRigSlotAlpha",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigSlotAlpha(slot string, alpha float32) error",
              "doc": "SetRigSlotAlpha sets slot's bind-pose opacity in [0, 1] as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1079
            },
            {
              "name": "SetRigSlotBone",
              "anchor": "Editor.SetRigSlotBone",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRigSlotBone(slot, bone string) error",
              "doc": "SetRigSlotBone rebinds slot to bone as an undoable command.\n",
              "file": "pkg/editor/rig.go",
              "line": 1064
            },
            {
              "name": "SetRightPanelTab",
              "anchor": "Editor.SetRightPanelTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRightPanelTab(tab RightPanelTab)",
              "doc": "SetRightPanelTab switches the right-hand panel between Inspector and Agent.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 382
            },
            {
              "name": "SetRightRailMode",
              "anchor": "Editor.SetRightRailMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRightRailMode(mode RightRailMode)",
              "doc": "SetRightRailMode switches the right rail tab (RightRailInspector, RightRailAgent, or RightRailHistory).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 390
            },
            {
              "name": "SetRightRailTab",
              "anchor": "Editor.SetRightRailTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRightRailTab(tab RightRailTab)",
              "doc": "SetRightRailTab switches the right sidebar between Inspector, Agent, and History.\nWhen AgentModeNone is active, the Agent panel stays closed.\n",
              "file": "pkg/editor/agent.go",
              "line": 752
            },
            {
              "name": "SetRoomCreateMode",
              "anchor": "Editor.SetRoomCreateMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRoomCreateMode(on bool)",
              "doc": "SetRoomCreateMode toggles viewport drag-to-create mode for rooms in the open room map.\n",
              "file": "pkg/editor/rooms.go",
              "line": 497
            },
            {
              "name": "SetRoomGridSize",
              "anchor": "Editor.SetRoomGridSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRoomGridSize(w, h float32)",
              "doc": "SetRoomGridSize sets an explicit tile-grid snap size (w, h) for rooms when the scene has\nno tilemap or to override the tilemap's tile size; pass (0, 0) to follow the scene's tilemap.\n",
              "file": "pkg/editor/rooms.go",
              "line": 516
            },
            {
              "name": "SetRoomID",
              "anchor": "Editor.SetRoomID",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRoomID(oldID, newID string) error",
              "doc": "SetRoomID renames room oldID to newID as an undoable command, refusing empty, whitespace-padded,\nor duplicate IDs via rooms.Validate.\n",
              "file": "pkg/editor/rooms.go",
              "line": 758
            },
            {
              "name": "SetRoomMapTransition",
              "anchor": "Editor.SetRoomMapTransition",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRoomMapTransition(tr *rooms.Transition) error",
              "doc": "SetRoomMapTransition sets or clears (when tr is nil) the open room map's default transition\nas an undoable command, checked by rooms.Validate.\n",
              "file": "pkg/editor/rooms.go",
              "line": 882
            },
            {
              "name": "SetRoomName",
              "anchor": "Editor.SetRoomName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRoomName(id, name string) error",
              "doc": "SetRoomName updates room id's display name or localization key as an undoable command.\n",
              "file": "pkg/editor/rooms.go",
              "line": 802
            },
            {
              "name": "SetRoomRect",
              "anchor": "Editor.SetRoomRect",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRoomRect(id string, x, y, w, h float32) error",
              "doc": "SetRoomRect updates room id's rectangle (x, y, w, h) in world points as an undoable command.\n",
              "file": "pkg/editor/rooms.go",
              "line": 713
            },
            {
              "name": "SetRoomSnapToGrid",
              "anchor": "Editor.SetRoomSnapToGrid",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRoomSnapToGrid(on bool)",
              "doc": "SetRoomSnapToGrid enables or disables snapping room edges to the tile grid.\n",
              "file": "pkg/editor/rooms.go",
              "line": 478
            },
            {
              "name": "SetRoomTransition",
              "anchor": "Editor.SetRoomTransition",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRoomTransition(id string, tr *rooms.Transition) error",
              "doc": "SetRoomTransition sets or clears (when tr is nil) room id's transition override as an\nundoable command, checked by rooms.Validate.\n",
              "file": "pkg/editor/rooms.go",
              "line": 842
            },
            {
              "name": "SetRotationSnapDeg",
              "anchor": "Editor.SetRotationSnapDeg",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRotationSnapDeg(deg float32) bool",
              "doc": "SetRotationSnapDeg sets the rotation snap step in degrees. Non-positive or non-finite values are refused.\n",
              "file": "pkg/editor/snap.go",
              "line": 234
            },
            {
              "name": "SetRunStartAtOpenScene",
              "anchor": "Editor.SetRunStartAtOpenScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRunStartAtOpenScene(startAtOpen bool)",
              "doc": "SetRunStartAtOpenScene toggles whether RunGame starts the game at the currently open scene.\n",
              "file": "pkg/editor/run_game.go",
              "line": 99
            },
            {
              "name": "SetRunWithAutomation",
              "anchor": "Editor.SetRunWithAutomation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetRunWithAutomation(on bool)",
              "doc": "SetRunWithAutomation toggles whether RunGame launches the game with `-automation` and connects the editor's Remote inspector.\n",
              "file": "pkg/editor/run_game.go",
              "line": 123
            },
            {
              "name": "SetSafeRenameInput",
              "anchor": "Editor.SetSafeRenameInput",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSafeRenameInput(newName string) error",
              "doc": "SetSafeRenameInput updates the NEW NAME field in safe-rename mode, validating live and computing the dry-run plan without writing any file.\n",
              "file": "pkg/editor/usages.go",
              "line": 554
            },
            {
              "name": "SetScaleSnapStep",
              "anchor": "Editor.SetScaleSnapStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetScaleSnapStep(step float32) bool",
              "doc": "SetScaleSnapStep sets the scale snap increment. Non-positive or non-finite values are refused.\n",
              "file": "pkg/editor/snap.go",
              "line": 258
            },
            {
              "name": "SetSceneConflictChoice",
              "anchor": "Editor.SetSceneConflictChoice",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSceneConflictChoice(objectID string, choice DiskMergeChoice) error",
              "doc": "SetSceneConflictChoice sets whether objectID uses the editor's version (DiskMergeMine) or the disk version (DiskMergeDisk) when resolving an active external scene conflict.\n",
              "file": "pkg/editor/disk_watch.go",
              "line": 1762
            },
            {
              "name": "SetSceneName",
              "anchor": "Editor.SetSceneName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSceneName(name string) error",
              "doc": "SetSceneName updates the open scene's Name through History, checked by sceneformat.Validate.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 358
            },
            {
              "name": "SetSceneNavMesh",
              "anchor": "Editor.SetSceneNavMesh",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSceneNavMesh(navPath string) error",
              "doc": "SetSceneNavMesh updates SceneDoc.NavMesh through History as one undoable step, validated by sceneformat.Validate.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 167
            },
            {
              "name": "SetSceneOverlays",
              "anchor": "Editor.SetSceneOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSceneOverlays(entries []SceneOverlayEntry)",
              "doc": "SetSceneOverlays replaces the active live scene overlays (agent working, added, changed, removed,\nfocused review change) drawn over the open scene in both 2D and 3D viewports.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 744
            },
            {
              "name": "SetSceneTreeFilter",
              "anchor": "Editor.SetSceneTreeFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSceneTreeFilter(query string)",
              "doc": "SetSceneTreeFilter updates the left-rail Scene Tree search query.\n",
              "file": "pkg/editor/scenetree.go",
              "line": 27
            },
            {
              "name": "SetSceneTreeFilterOpen",
              "anchor": "Editor.SetSceneTreeFilterOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSceneTreeFilterOpen(open bool)",
              "doc": "SetSceneTreeFilterOpen shows or hides the left-rail Scene Tree filter bar.\nClosing the filter bar clears any active filter so hidden nodes are not left obscured.\n",
              "file": "pkg/editor/scenetree.go",
              "line": 42
            },
            {
              "name": "SetSceneTreeTab",
              "anchor": "Editor.SetSceneTreeTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSceneTreeTab(tab SceneTreeTab)",
              "doc": "SetSceneTreeTab switches the scene tree panel between SceneTreeLocal and SceneTreeRemote.\n",
              "file": "pkg/editor/remote.go",
              "line": 337
            },
            {
              "name": "SetSearchLoading",
              "anchor": "Editor.SetSearchLoading",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSearchLoading(loading bool)",
              "doc": "SetSearchLoading updates the Search & References panel loading state and notifies listeners.\n",
              "file": "pkg/editor/search.go",
              "line": 270
            },
            {
              "name": "SetSearchOpen",
              "anchor": "Editor.SetSearchOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSearchOpen(open bool)",
              "doc": "SetSearchOpen shows or hides the Project Search and References panel.\n",
              "file": "pkg/editor/search.go",
              "line": 192
            },
            {
              "name": "SetSearchQuery",
              "anchor": "Editor.SetSearchQuery",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSearchQuery(query string) error",
              "doc": "SetSearchQuery updates the project search field, opens the search panel on\nthe Search tab when query is non-empty, runs Search, and notifies listeners.\n",
              "file": "pkg/editor/search.go",
              "line": 232
            },
            {
              "name": "SetSearchTab",
              "anchor": "Editor.SetSearchTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSearchTab(tab SearchTab)",
              "doc": "SetSearchTab switches the Project Search and References panel between Search and References.\n",
              "file": "pkg/editor/search.go",
              "line": 217
            },
            {
              "name": "SetSelectedAlpha",
              "anchor": "Editor.SetSelectedAlpha",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedAlpha(alpha float32) error",
              "doc": "SetSelectedAlpha sets Alpha on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 370
            },
            {
              "name": "SetSelectedComponentField",
              "anchor": "Editor.SetSelectedComponentField",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedComponentField(componentName, field string, value any) error",
              "doc": "SetSelectedComponentField sets componentName.field to value on every selected object\nin one undo step, so one Undo restores each object's own prior value.\n",
              "file": "pkg/editor/selection.go",
              "line": 524
            },
            {
              "name": "SetSelectedDepth",
              "anchor": "Editor.SetSelectedDepth",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedDepth(depth float32) error",
              "doc": "SetSelectedDepth sets Depth on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 439
            },
            {
              "name": "SetSelectedFlipX",
              "anchor": "Editor.SetSelectedFlipX",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedFlipX(flipX bool) error",
              "doc": "SetSelectedFlipX sets FlipX on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 487
            },
            {
              "name": "SetSelectedFlipY",
              "anchor": "Editor.SetSelectedFlipY",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedFlipY(flipY bool) error",
              "doc": "SetSelectedFlipY sets FlipY on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 498
            },
            {
              "name": "SetSelectedMaterial",
              "anchor": "Editor.SetSelectedMaterial",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedMaterial(material string) error",
              "doc": "SetSelectedMaterial sets Material on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 509
            },
            {
              "name": "SetSelectedMesh",
              "anchor": "Editor.SetSelectedMesh",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedMesh(mesh string) error",
              "doc": "SetSelectedMesh sets Mesh on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 446
            },
            {
              "name": "SetSelectedName",
              "anchor": "Editor.SetSelectedName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedName(name string) error",
              "doc": "SetSelectedName sets the display Name on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 312
            },
            {
              "name": "SetSelectedOriginX",
              "anchor": "Editor.SetSelectedOriginX",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedOriginX(ox float32) error",
              "doc": "SetSelectedOriginX sets OriginX on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 465
            },
            {
              "name": "SetSelectedOriginY",
              "anchor": "Editor.SetSelectedOriginY",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedOriginY(oy float32) error",
              "doc": "SetSelectedOriginY sets OriginY on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 476
            },
            {
              "name": "SetSelectedPosZ",
              "anchor": "Editor.SetSelectedPosZ",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedPosZ(posZ float32) error",
              "doc": "SetSelectedPosZ sets PosZ on every selected object in one undo step, preserving X and Y.\n",
              "file": "pkg/editor/selection.go",
              "line": 384
            },
            {
              "name": "SetSelectedProperty",
              "anchor": "Editor.SetSelectedProperty",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedProperty(key string, value any) error",
              "doc": "SetSelectedProperty sets custom property key to value on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 516
            },
            {
              "name": "SetSelectedRotX",
              "anchor": "Editor.SetSelectedRotX",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedRotX(rotX float32) error",
              "doc": "SetSelectedRotX sets RotX on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 395
            },
            {
              "name": "SetSelectedRotY",
              "anchor": "Editor.SetSelectedRotY",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedRotY(rotY float32) error",
              "doc": "SetSelectedRotY sets RotY on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 406
            },
            {
              "name": "SetSelectedRotZ",
              "anchor": "Editor.SetSelectedRotZ",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedRotZ(rotZ float32) error",
              "doc": "SetSelectedRotZ sets RotZ on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 417
            },
            {
              "name": "SetSelectedRotation",
              "anchor": "Editor.SetSelectedRotation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedRotation(radians float32) error",
              "doc": "SetSelectedRotation sets the 2D rotation (radians) on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 341
            },
            {
              "name": "SetSelectedScaleX",
              "anchor": "Editor.SetSelectedScaleX",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedScaleX(sx float32) error",
              "doc": "SetSelectedScaleX sets ScaleX on every selected object in one undo step, preserving each object's ScaleY.\n",
              "file": "pkg/editor/selection.go",
              "line": 348
            },
            {
              "name": "SetSelectedScaleY",
              "anchor": "Editor.SetSelectedScaleY",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedScaleY(sy float32) error",
              "doc": "SetSelectedScaleY sets ScaleY on every selected object in one undo step, preserving each object's ScaleX.\n",
              "file": "pkg/editor/selection.go",
              "line": 359
            },
            {
              "name": "SetSelectedScaleZ",
              "anchor": "Editor.SetSelectedScaleZ",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedScaleZ(sz float32) error",
              "doc": "SetSelectedScaleZ sets ScaleZ on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 428
            },
            {
              "name": "SetSelectedSprite",
              "anchor": "Editor.SetSelectedSprite",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedSprite(sprite *sceneformat.SpriteRef) error",
              "doc": "SetSelectedSprite sets Sprite on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 453
            },
            {
              "name": "SetSelectedX",
              "anchor": "Editor.SetSelectedX",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedX(x float32) error",
              "doc": "SetSelectedX sets the X position on every selected object in one undo step, preserving each object's Y.\n",
              "file": "pkg/editor/selection.go",
              "line": 319
            },
            {
              "name": "SetSelectedY",
              "anchor": "Editor.SetSelectedY",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedY(y float32) error",
              "doc": "SetSelectedY sets the Y position on every selected object in one undo step, preserving each object's X.\n",
              "file": "pkg/editor/selection.go",
              "line": 330
            },
            {
              "name": "SetSelectedZ",
              "anchor": "Editor.SetSelectedZ",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSelectedZ(z int) error",
              "doc": "SetSelectedZ sets within-layer draw order Z on every selected object in one undo step.\n",
              "file": "pkg/editor/selection.go",
              "line": 377
            },
            {
              "name": "SetSettingsOpen",
              "anchor": "Editor.SetSettingsOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSettingsOpen(open bool)",
              "doc": "SetSettingsOpen opens or closes the unified Settings view. Opening shows the previously active page (or SettingsPageProject when a project is open and no page has been selected yet).\n",
              "file": "pkg/editor/settings.go",
              "line": 1138
            },
            {
              "name": "SetShading3D",
              "anchor": "Editor.SetShading3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShading3D(mode Shading3D)",
              "doc": "SetShading3D switches how the 3D viewport shades the scene's geometry on the GPU. It is a view setting, not an edit, so it is not undoable and is not saved with the scene; an unknown mode is ignored.\n",
              "file": "pkg/editor/state.go",
              "line": 1418
            },
            {
              "name": "SetShortcutsSheetOpen",
              "anchor": "Editor.SetShortcutsSheetOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShortcutsSheetOpen(open bool)",
              "doc": "SetShortcutsSheetOpen opens or closes the ⌘/ Keyboard Shortcuts reference sheet.\n",
              "file": "pkg/editor/settings.go",
              "line": 1267
            },
            {
              "name": "SetShowAgentChanges",
              "anchor": "Editor.SetShowAgentChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowAgentChanges(show bool) error",
              "doc": "SetShowAgentChanges updates whether viewport outlines highlight agent changes while a review is open. When SettingsPath is non-empty, the updated settings are persisted to SettingsPath.\n",
              "file": "pkg/editor/settings.go",
              "line": 703
            },
            {
              "name": "SetShowAllShapes",
              "anchor": "Editor.SetShowAllShapes",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowAllShapes(show bool)",
              "doc": "SetShowAllShapes toggles whether the 2D viewport draws shape component fields of all visible objects (true) or only the selected object (false).\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 137
            },
            {
              "name": "SetShowGrid",
              "anchor": "Editor.SetShowGrid",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowGrid(show bool)",
              "doc": "SetShowGrid toggles the optional 2D snap grid overlay in the 2D edit viewport.\n",
              "file": "pkg/editor/snap.go",
              "line": 272
            },
            {
              "name": "SetShowLODOverlay",
              "anchor": "Editor.SetShowLODOverlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowLODOverlay(show bool)",
              "doc": "SetShowLODOverlay toggles per-object active LOD labels and color-coding in the 3D viewport.\n",
              "file": "pkg/editor/viewport3d_lod_occluder.go",
              "line": 230
            },
            {
              "name": "SetShowLightingPreview",
              "anchor": "Editor.SetShowLightingPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowLightingPreview(show bool)",
              "doc": "SetShowLightingPreview toggles live 2D lighting and shadow preview in the 2D edit viewport.\n",
              "file": "pkg/editor/lights2d_editor.go",
              "line": 95
            },
            {
              "name": "SetShowNavMesh2D",
              "anchor": "Editor.SetShowNavMesh2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowNavMesh2D(show bool)",
              "doc": "SetShowNavMesh2D toggles drawing the built 2D navigation mesh overlay in the 2D edit viewport.\n",
              "file": "pkg/editor/navregion2d_editor.go",
              "line": 106
            },
            {
              "name": "SetShowNavMesh3D",
              "anchor": "Editor.SetShowNavMesh3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowNavMesh3D(show bool)",
              "doc": "SetShowNavMesh3D toggles drawing the baked 3D navigation mesh overlay in the 3D viewport.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 90
            },
            {
              "name": "SetShowOccluders",
              "anchor": "Editor.SetShowOccluders",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowOccluders(show bool)",
              "doc": "SetShowOccluders toggles occluder volume wireframes in the 3D viewport.\n",
              "file": "pkg/editor/viewport3d_lod_occluder.go",
              "line": 239
            },
            {
              "name": "SetShowPhysicsDebug",
              "anchor": "Editor.SetShowPhysicsDebug",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowPhysicsDebug(show bool)",
              "doc": "SetShowPhysicsDebug toggles collider and trigger debug drawing in the 2D and 3D viewports.\n",
              "file": "pkg/editor/state.go",
              "line": 1610
            },
            {
              "name": "SetShowRenderStats",
              "anchor": "Editor.SetShowRenderStats",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetShowRenderStats(show bool)",
              "doc": "SetShowRenderStats toggles the RenderStats HUD overlay in the 3D viewport.\n",
              "file": "pkg/editor/viewport3d_lod_occluder.go",
              "line": 248
            },
            {
              "name": "SetSketchActive",
              "anchor": "Editor.SetSketchActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSketchActive(on bool)",
              "doc": "SetSketchActive turns viewport sketch drawing mode on or off.\nTurning sketch mode off keeps existing marks on the layer until sent, cleared, or kept.\n",
              "file": "pkg/editor/sketch.go",
              "line": 477
            },
            {
              "name": "SetSketchAttached",
              "anchor": "Editor.SetSketchAttached",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSketchAttached(attached bool)",
              "doc": "SetSketchAttached attaches or detaches the sketch chip from the agent composer without erasing marks.\n",
              "file": "pkg/editor/sketch.go",
              "line": 655
            },
            {
              "name": "SetSketchMarkLabel",
              "anchor": "Editor.SetSketchMarkLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSketchMarkLabel(number int, label string) bool",
              "doc": "SetSketchMarkLabel updates the optional text label on the 1-based sketch mark.\n",
              "file": "pkg/editor/sketch.go",
              "line": 892
            },
            {
              "name": "SetSketchMarksHidden",
              "anchor": "Editor.SetSketchMarksHidden",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSketchMarksHidden(hidden bool)",
              "doc": "SetSketchMarksHidden hides or shows sketch marks on the viewport without clearing them.\n",
              "file": "pkg/editor/sketch.go",
              "line": 633
            },
            {
              "name": "SetSketchPanelOpen",
              "anchor": "Editor.SetSketchPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSketchPanelOpen(open bool)",
              "doc": "SetSketchPanelOpen shows or hides the right-side Sketch / Agent panel.\n",
              "file": "pkg/editor/sketch.go",
              "line": 539
            },
            {
              "name": "SetSketchPreviewOpen",
              "anchor": "Editor.SetSketchPreviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSketchPreviewOpen(open bool)",
              "doc": "SetSketchPreviewOpen opens or closes the \"Sent with this request\" preview card.\n",
              "file": "pkg/editor/sketch.go",
              "line": 676
            },
            {
              "name": "SetSketchPromptDraft",
              "anchor": "Editor.SetSketchPromptDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSketchPromptDraft(text string)",
              "doc": "SetSketchPromptDraft updates the Sketch/Agent composer draft text.\n",
              "file": "pkg/editor/sketch.go",
              "line": 705
            },
            {
              "name": "SetSketchReviewOverlayVisible",
              "anchor": "Editor.SetSketchReviewOverlayVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSketchReviewOverlayVisible(on bool)",
              "doc": "SetSketchReviewOverlayVisible toggles the Sketch overlay in review (laying the faint dotted sketch over the result).\n",
              "file": "pkg/editor/sketch.go",
              "line": 1516
            },
            {
              "name": "SetSketchTool",
              "anchor": "Editor.SetSketchTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSketchTool(tool SketchTool)",
              "doc": "SetSketchTool switches the active sketch tool and ensures sketch mode is active.\n",
              "file": "pkg/editor/sketch.go",
              "line": 563
            },
            {
              "name": "SetSnapInvert",
              "anchor": "Editor.SetSnapInvert",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSnapInvert(invert bool)",
              "doc": "SetSnapInvert sets whether snapping is temporarily inverted (as when holding Ctrl or Cmd during a drag).\n",
              "file": "pkg/editor/snap.go",
              "line": 282
            },
            {
              "name": "SetSnapRotation",
              "anchor": "Editor.SetSnapRotation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSnapRotation(on bool)",
              "doc": "SetSnapRotation toggles rotation snapping in 2D and 3D rotation drags.\n",
              "file": "pkg/editor/snap.go",
              "line": 224
            },
            {
              "name": "SetSnapScale",
              "anchor": "Editor.SetSnapScale",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSnapScale(on bool)",
              "doc": "SetSnapScale toggles scale snapping in 2D and 3D scale drags.\n",
              "file": "pkg/editor/snap.go",
              "line": 248
            },
            {
              "name": "SetSnapSettings",
              "anchor": "Editor.SetSnapSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSnapSettings(s SnapSettings) bool",
              "doc": "SetSnapSettings applies s to the editor, refusing non-finite or negative step values.\nZero step values for RotationStepDeg and ScaleStep restore their defaults (15° and 0.25);\nGridSize 0 follows the active layer's tilemap tile size (or 8 when it has none).\n",
              "file": "pkg/editor/snap.go",
              "line": 112
            },
            {
              "name": "SetSnapToGrid",
              "anchor": "Editor.SetSnapToGrid",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSnapToGrid(on bool)",
              "doc": "SetSnapToGrid toggles grid snapping for object placement, drags, 2D handles, and 3D translate gizmos.\n",
              "file": "pkg/editor/snap.go",
              "line": 179
            },
            {
              "name": "SetSnapToPixel",
              "anchor": "Editor.SetSnapToPixel",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetSnapToPixel(on bool)",
              "doc": "SetSnapToPixel toggles pixel snapping (whole 1-point increments) when grid snapping is off.\n",
              "file": "pkg/editor/snap.go",
              "line": 214
            },
            {
              "name": "SetStartProjectIdea",
              "anchor": "Editor.SetStartProjectIdea",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStartProjectIdea(idea string)",
              "doc": "SetStartProjectIdea updates the draft game idea text on the Start Screen.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 531
            },
            {
              "name": "SetStartProjectModule",
              "anchor": "Editor.SetStartProjectModule",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStartProjectModule(module string)",
              "doc": "SetStartProjectModule updates the draft Go module path and re-runs live validation.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 507
            },
            {
              "name": "SetStartProjectName",
              "anchor": "Editor.SetStartProjectName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStartProjectName(name string)",
              "doc": "SetStartProjectName updates the draft project name and re-runs live validation.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 459
            },
            {
              "name": "SetStartProjectParentDir",
              "anchor": "Editor.SetStartProjectParentDir",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStartProjectParentDir(dir string)",
              "doc": "SetStartProjectParentDir updates the draft parent folder and re-runs live validation.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 483
            },
            {
              "name": "SetStartScreenOpen",
              "anchor": "Editor.SetStartScreenOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStartScreenOpen(open bool)",
              "doc": "SetStartScreenOpen shows or hides the Start Screen.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 316
            },
            {
              "name": "SetStartTemplateFilter",
              "anchor": "Editor.SetStartTemplateFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStartTemplateFilter(filter string)",
              "doc": "SetStartTemplateFilter sets the Start Screen template filter (\"all\", \"2d\", or \"3d\").\n",
              "file": "pkg/editor/start_screen.go",
              "line": 397
            },
            {
              "name": "SetStatesDoc",
              "anchor": "Editor.SetStatesDoc",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStatesDoc(label string, doc *animclip.StateMachineDoc) error",
              "doc": "SetStatesDoc replaces the open state machine's document with doc as one undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 440
            },
            {
              "name": "SetStatesDriveWithKeys",
              "anchor": "Editor.SetStatesDriveWithKeys",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStatesDriveWithKeys(on bool)",
              "doc": "SetStatesDriveWithKeys enables or disables Drive with keys in the state machine preview.\n",
              "file": "pkg/editor/states.go",
              "line": 240
            },
            {
              "name": "SetStatesEntry",
              "anchor": "Editor.SetStatesEntry",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStatesEntry(name string) error",
              "doc": "SetStatesEntry sets the entry state of the open state machine as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 495
            },
            {
              "name": "SetStatesNodePos",
              "anchor": "Editor.SetStatesNodePos",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetStatesNodePos(name string, x, y float32) error",
              "doc": "SetStatesNodePos updates the graph layout coordinates of state name as an undoable command.\n",
              "file": "pkg/editor/states.go",
              "line": 503
            },
            {
              "name": "SetTaskComposerDraft",
              "anchor": "Editor.SetTaskComposerDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTaskComposerDraft(draft string)",
              "doc": "SetTaskComposerDraft updates the prompt draft in the Tasks panel composer.\n",
              "file": "pkg/editor/tasks.go",
              "line": 900
            },
            {
              "name": "SetTaskComposerMode",
              "anchor": "Editor.SetTaskComposerMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTaskComposerMode(mode TaskStartMode)",
              "doc": "SetTaskComposerMode sets the selected start mode (Queue or Run in parallel) in the Tasks composer.\n",
              "file": "pkg/editor/tasks.go",
              "line": 873
            },
            {
              "name": "SetTaskDismissSelected",
              "anchor": "Editor.SetTaskDismissSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTaskDismissSelected(id string, selected bool)",
              "doc": "SetTaskDismissSelected sets whether a Ready to review task is checked for bulk dismissal.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2426
            },
            {
              "name": "SetTaskHoldReleaseHook",
              "anchor": "Editor.SetTaskHoldReleaseHook",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTaskHoldReleaseHook(fn func(taskID string))",
              "doc": "SetTaskHoldReleaseHook registers a callback invoked whenever a task stops or finishes and\nreleases its object holds (used by editormcp to wake waiting parallel sessions).\n",
              "file": "pkg/editor/tasks.go",
              "line": 766
            },
            {
              "name": "SetTaskHoldState",
              "anchor": "Editor.SetTaskHoldState",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTaskHoldState(id string, editing []string, holding []string, blockedOn string, blockedByTaskID string) error",
              "doc": "SetTaskHoldState updates which objects task id is actively editing or holding/waiting on.\nWhen blockedOn is non-empty, the task shows \"waiting on <blockedOn>\" in the task list and viewport overlay.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1599
            },
            {
              "name": "SetTasksListExpanded",
              "anchor": "Editor.SetTasksListExpanded",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTasksListExpanded(expanded bool)",
              "doc": "SetTasksListExpanded expands or collapses the Tasks list inside the Agent panel.\n",
              "file": "pkg/editor/tasks.go",
              "line": 838
            },
            {
              "name": "SetTasksPanelOpen",
              "anchor": "Editor.SetTasksPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTasksPanelOpen(open bool)",
              "doc": "SetTasksPanelOpen opens or closes the Agent / Background Tasks panel.\n",
              "file": "pkg/editor/tasks.go",
              "line": 799
            },
            {
              "name": "SetTerrainBrush",
              "anchor": "Editor.SetTerrainBrush",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTerrainBrush(b TerrainBrush)",
              "doc": "SetTerrainBrush updates the active terrain brush configuration, ending any in-progress stroke first.\n",
              "file": "pkg/editor/terrain.go",
              "line": 375
            },
            {
              "name": "SetTerrainBrushMode",
              "anchor": "Editor.SetTerrainBrushMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTerrainBrushMode(mode TerrainBrushMode)",
              "doc": "SetTerrainBrushMode selects the active terrain brush mode while keeping the other brush parameters.\n",
              "file": "pkg/editor/terrain.go",
              "line": 410
            },
            {
              "name": "SetTerrainHoverAt",
              "anchor": "Editor.SetTerrainHoverAt",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTerrainHoverAt(sx, sy, w, h float32)",
              "doc": "SetTerrainHoverAt updates the 3D terrain brush cursor preview at viewport pixel (sx, sy).\n",
              "file": "pkg/editor/terrain.go",
              "line": 1561
            },
            {
              "name": "SetTileHover",
              "anchor": "Editor.SetTileHover",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTileHover(x, y float32, picking bool)",
              "doc": "SetTileHover records that the mouse rests at the canvas point (x, y), which the hover outline of a tile tool follows (HoveredTile); picking says it would pick rather than paint there, as with Alt held. The viewport redraws only when the cell under the pointer changes.\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 793
            },
            {
              "name": "SetTileReviewPeekBefore",
              "anchor": "Editor.SetTileReviewPeekBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTileReviewPeekBefore(peeking bool)",
              "doc": "SetTileReviewPeekBefore sets temporary hold-B Before peek mode during an open tile review.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1917
            },
            {
              "name": "SetTileReviewRegionReverted",
              "anchor": "Editor.SetTileReviewRegionReverted",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTileReviewRegionReverted(regionID string, reverted bool) error",
              "doc": "SetTileReviewRegionReverted marks regionID reverted (true) or kept/restored (false) and updates the live viewport.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1954
            },
            {
              "name": "SetTileReviewViewMode",
              "anchor": "Editor.SetTileReviewViewMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTileReviewViewMode(view TileReviewView)",
              "doc": "SetTileReviewViewMode switches between Before and After views during an open tile review.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1902
            },
            {
              "name": "SetTileSelection",
              "anchor": "Editor.SetTileSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTileSelection(col0, row0, col1, row1 int) bool",
              "doc": "SetTileSelection selects the inclusive cell rectangle on the active layer's inline tilemap for Copy/Cut.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 175
            },
            {
              "name": "SetTileStamp",
              "anchor": "Editor.SetTileStamp",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTileStamp(stamp TileStamp) error",
              "doc": "SetTileStamp sets the active stamp pattern painted by ToolStampTile.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 122
            },
            {
              "name": "SetTilesetAnimPlaying",
              "anchor": "Editor.SetTilesetAnimPlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetAnimPlaying(playing bool)",
              "doc": "SetTilesetAnimPlaying toggles live animation preview playback in the Tileset Editor.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1363
            },
            {
              "name": "SetTilesetSelectedShape",
              "anchor": "Editor.SetTilesetSelectedShape",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetSelectedShape(index int)",
              "doc": "SetTilesetSelectedShape selects collision shape index on the selected tile (-1 clears selection).\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 983
            },
            {
              "name": "SetTilesetSelectedTerrain",
              "anchor": "Editor.SetTilesetSelectedTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetSelectedTerrain(name string) bool",
              "doc": "SetTilesetSelectedTerrain selects terrain name in the Tileset Editor (and syncs ActiveTerrain for painting).\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 415
            },
            {
              "name": "SetTilesetSelectedTile",
              "anchor": "Editor.SetTilesetSelectedTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetSelectedTile(tileID int) bool",
              "doc": "SetTilesetSelectedTile selects local tile tileID in the Tileset Editor and syncs the 3x3 edge/corner view, shape selection, and animation preview.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 431
            },
            {
              "name": "SetTilesetShapeTool",
              "anchor": "Editor.SetTilesetShapeTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetShapeTool(tool TilesetShapeTool)",
              "doc": "SetTilesetShapeTool selects the collision shape drawing tool (rect or polygon).\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 962
            },
            {
              "name": "SetTilesetTab",
              "anchor": "Editor.SetTilesetTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTab(tab TilesetEditorTab)",
              "doc": "SetTilesetTab switches the active per-tile editing tab in the Tileset Editor panel.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 935
            },
            {
              "name": "SetTilesetTerrainDefault",
              "anchor": "Editor.SetTilesetTerrainDefault",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTerrainDefault(name string, tileID *int) error",
              "doc": "SetTilesetTerrainDefault sets (or clears when tileID == nil) the explicit default local tile ID of terrain name as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 726
            },
            {
              "name": "SetTilesetTerrainMode",
              "anchor": "Editor.SetTilesetTerrainMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTerrainMode(name, mode string) error",
              "doc": "SetTilesetTerrainMode changes terrain name's mode between \"cardinal\" (4-bit) and \"blob\" (8-bit) as an undoable edit. Switching from \"blob\" to \"cardinal\" strips diagonal bits from tiles of that terrain, refusing if two tiles would then share the same 4-bit mask.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 692
            },
            {
              "name": "SetTilesetTileAnimation",
              "anchor": "Editor.SetTilesetTileAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTileAnimation(tileID int, frames []tilemap.TileFrameDoc) error",
              "doc": "SetTilesetTileAnimation replaces tileID's full animation frame sequence as one undoable edit (nil or empty clears animation).\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1342
            },
            {
              "name": "SetTilesetTileCollision",
              "anchor": "Editor.SetTilesetTileCollision",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTileCollision(tileID int, mode string) error",
              "doc": "SetTilesetTileCollision sets tileID's primary collision mode (\"solid\", \"one-way\", or \"none\") as an undoable edit, preserving any custom flags bits.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1159
            },
            {
              "name": "SetTilesetTileFlags",
              "anchor": "Editor.SetTilesetTileFlags",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTileFlags(tileID int, solid, oneWay bool, customFlags tilemap.TileFlags) error",
              "doc": "SetTilesetTileFlags sets tileID's solid, one-way, and custom flag bits in one undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1183
            },
            {
              "name": "SetTilesetTileMask",
              "anchor": "Editor.SetTilesetTileMask",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTileMask(tileID int, terrainName string, mask uint8, reassign bool) error",
              "doc": "SetTilesetTileMask assigns local tile tileID to terrainName with neighbor bitmask mask as an undoable edit.\nWhen reassign is true and another tile in terrainName already owns mask, that other tile's terrain assignment is cleared in the same undo step; when reassign is false, a collision returns an error without modifying the tileset.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 751
            },
            {
              "name": "SetTilesetTileName",
              "anchor": "Editor.SetTilesetTileName",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTileName(tileID int, name string) error",
              "doc": "SetTilesetTileName sets tileID's optional name as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1124
            },
            {
              "name": "SetTilesetTileProperty",
              "anchor": "Editor.SetTilesetTileProperty",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTileProperty(tileID int, key string, value any) error",
              "doc": "SetTilesetTileProperty sets a typed custom property (bool, int, float64, or string) on tileID as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1413
            },
            {
              "name": "SetTilesetTileWeight",
              "anchor": "Editor.SetTilesetTileWeight",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTilesetTileWeight(tileID int, weight *float64) error",
              "doc": "SetTilesetTileWeight sets (or clears when weight == nil) tileID's variant selection weight as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1138
            },
            {
              "name": "SetTool",
              "anchor": "Editor.SetTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetTool(t Tool)",
              "doc": "SetTool switches the active viewport tool. A plugin's tool is chosen with SetPluginTool instead, so SetTool(ToolPlugin) is ignored.\n",
              "file": "pkg/editor/state.go",
              "line": 1350
            },
            {
              "name": "SetToolEnabled",
              "anchor": "Editor.SetToolEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetToolEnabled(toolName string, enabled bool)",
              "doc": "SetToolEnabled toggles an MCP tool in Settings › Tools (person-only).\n",
              "file": "pkg/editor/you_only.go",
              "line": 328
            },
            {
              "name": "SetView2D",
              "anchor": "Editor.SetView2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetView2D(v View2D) bool",
              "doc": "SetView2D sets the 2D viewport's view, its zoom clamped to [MinView2DZoom, MaxView2DZoom]. It reports false, and changes nothing, for a non-finite value, a zoom that is not positive or while the scene plays, when the view is the scene camera's.\n",
              "file": "pkg/editor/view2d.go",
              "line": 107
            },
            {
              "name": "SetView3D",
              "anchor": "Editor.SetView3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetView3D(v View3D)",
              "doc": "SetView3D turns the 3D viewport's camera to the axis view v, as the axis widget, the number-key shortcuts and the View commands do, keeping what it looks at and how far away. It ends a flight and cancels a gizmo or camera drag, whose rays came from the old camera. It does not change the projection; with Orthographic3D the view is then a true elevation or plan. The camera jumps there without animating.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 140
            },
            {
              "name": "SetViewMode",
              "anchor": "Editor.SetViewMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetViewMode(mode ViewMode)",
              "doc": "SetViewMode switches the editor viewport between 2D and 3D modes.\n",
              "file": "pkg/editor/state.go",
              "line": 1385
            },
            {
              "name": "SetViewportImageIncluded",
              "anchor": "Editor.SetViewportImageIncluded",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetViewportImageIncluded(on bool)",
              "doc": "SetViewportImageIncluded toggles whether the Viewport image chip is included in assembled requests.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1547
            },
            {
              "name": "SetViewportOverlay",
              "anchor": "Editor.SetViewportOverlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetViewportOverlay(id string, on bool) error",
              "doc": "SetViewportOverlay turns overlay id on or off and persists the updated per-user overlay set to\nSettingsPath when configured. It never modifies any project or scene file.\n",
              "file": "pkg/editor/overlays.go",
              "line": 425
            },
            {
              "name": "SetViewportOverlays",
              "anchor": "Editor.SetViewportOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetViewportOverlays(ids []string) error",
              "doc": "SetViewportOverlays replaces the enabled viewport overlay set with ids and persists to SettingsPath when set.\nUnknown overlay IDs are refused without changing the current set.\n",
              "file": "pkg/editor/overlays.go",
              "line": 454
            },
            {
              "name": "SetViewportPointer2D",
              "anchor": "Editor.SetViewportPointer2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetViewportPointer2D(canvasX, canvasY float32)",
              "doc": "SetViewportPointer2D records the mouse pointer's canvas position over the 2D viewport\nso Paste can place copied objects at the pointer and the status bar can display live coordinates.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 170
            },
            {
              "name": "SetViewportPointer3D",
              "anchor": "Editor.SetViewportPointer3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetViewportPointer3D(canvasX, canvasY float32)",
              "doc": "SetViewportPointer3D records the mouse pointer's canvas position over the 3D viewport\nso Paste can place copied objects at the pointer in 3D view.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 188
            },
            {
              "name": "SetVirtualSize",
              "anchor": "Editor.SetVirtualSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetVirtualSize(width, height float32) error",
              "doc": "SetVirtualSize updates the open scene's VirtualWidth and VirtualHeight through History.\nBoth dimensions must be finite and positive; non-positive sizes are refused before\nmodifying the document or History.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 386
            },
            {
              "name": "SetWeeklyRequestLimit",
              "anchor": "Editor.SetWeeklyRequestLimit",
              "recv": "*Editor",
              "decl": "func (e *Editor) SetWeeklyRequestLimit(limit int) error",
              "doc": "SetWeeklyRequestLimit sets the user's weekly agent request budget (0 disables the limit) and persists editor.yaml.\nRefused when invoked by an agent.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1260
            },
            {
              "name": "Settings",
              "anchor": "Editor.Settings",
              "recv": "*Editor",
              "decl": "func (e *Editor) Settings() EditorSettings",
              "doc": "Settings returns the editor's current per-user settings.\n",
              "file": "pkg/editor/settings.go",
              "line": 574
            },
            {
              "name": "SettingsFilePath",
              "anchor": "Editor.SettingsFilePath",
              "recv": "*Editor",
              "decl": "func (e *Editor) SettingsFilePath() string",
              "doc": "SettingsFilePath returns the resolved settings file path used for persistence (for diagnostics/tests).\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1414
            },
            {
              "name": "SettingsOpen",
              "anchor": "Editor.SettingsOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SettingsOpen() bool",
              "doc": "SettingsOpen reports whether the unified Settings view is currently open.\n",
              "file": "pkg/editor/settings.go",
              "line": 1053
            },
            {
              "name": "SettingsPage",
              "anchor": "Editor.SettingsPage",
              "recv": "*Editor",
              "decl": "func (e *Editor) SettingsPage() SettingsPage",
              "doc": "SettingsPage returns the active page of the unified Settings view, defaulting to SettingsPageGeneral.\n",
              "file": "pkg/editor/settings.go",
              "line": 1058
            },
            {
              "name": "SettingsPageContext",
              "anchor": "Editor.SettingsPageContext",
              "recv": "*Editor",
              "decl": "func (e *Editor) SettingsPageContext() (pageID, title, scope, file string)",
              "doc": "SettingsPageContext returns the page ID, display title, scope pill, and associated project file\nfor the active Settings page.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1523
            },
            {
              "name": "ShapeHandles2D",
              "anchor": "Editor.ShapeHandles2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShapeHandles2D() []ShapeHandle2D",
              "doc": "ShapeHandles2D returns all interactive 2D viewport handles for the selected object's component shape fields.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 351
            },
            {
              "name": "ShortcutConflict",
              "anchor": "Editor.ShortcutConflict",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShortcutConflict(cmdID, newShortcut string) (conflictID, conflictLabel string, ok bool)",
              "doc": "ShortcutConflict reports whether binding cmdID to newShortcut conflicts with another active\ncommand in the SAME scope. Keys used only in a different scope do NOT conflict.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 280
            },
            {
              "name": "ShortcutOverridden",
              "anchor": "Editor.ShortcutOverridden",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShortcutOverridden(cmdID string) bool",
              "doc": "ShortcutOverridden reports whether cmdID currently has a custom shortcut differing from its default.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 231
            },
            {
              "name": "ShortcutsSheetOpen",
              "anchor": "Editor.ShortcutsSheetOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShortcutsSheetOpen() bool",
              "doc": "ShortcutsSheetOpen reports whether the ⌘/ Keyboard Shortcuts reference sheet is open.\n",
              "file": "pkg/editor/settings.go",
              "line": 1262
            },
            {
              "name": "ShouldFocusAgentPrompt",
              "anchor": "Editor.ShouldFocusAgentPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShouldFocusAgentPrompt() bool",
              "doc": "ShouldFocusAgentPrompt reports whether a newly arrived agent permission card or\nquestion may take keyboard focus: true only when focus is already in the agent\npanel and no drag or text typing is in progress (Spec rule 05).\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 821
            },
            {
              "name": "ShowAgentChanges",
              "anchor": "Editor.ShowAgentChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowAgentChanges() bool",
              "doc": "ShowAgentChanges reports whether viewport outlines highlight agent changes while a review is open.\n",
              "file": "pkg/editor/settings.go",
              "line": 698
            },
            {
              "name": "ShowBuildArtifactInFinder",
              "anchor": "Editor.ShowBuildArtifactInFinder",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowBuildArtifactInFinder(platform string) error",
              "doc": "ShowBuildArtifactInFinder opens the build output folder (or artifact's parent directory) using OpenOutputFolder.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1753
            },
            {
              "name": "ShowObjectUsages",
              "anchor": "Editor.ShowObjectUsages",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowObjectUsages(id string) (ObjectUsagesResult, error)",
              "doc": "ShowObjectUsages runs FindObjectUsages for id and opens the Find Usages review screen (for scene or\npath-valued prefab targets) or the Project Search & References panel with the results.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 696
            },
            {
              "name": "ShowPermissionToastRule",
              "anchor": "Editor.ShowPermissionToastRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowPermissionToastRule()",
              "doc": "ShowPermissionToastRule opens Settings › Permissions with the newly saved \"Always\" rule focused.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1870
            },
            {
              "name": "ShowProblem",
              "anchor": "Editor.ShowProblem",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowProblem(p assetcheck.Problem) error",
              "doc": "ShowProblem navigates to p, opens its scene (keeping other tabs' unsaved\nedits intact), selects and frames the offending object in the viewport when\nknown, and highlights the exact file:line:col and YAML line in the Agent card.\n",
              "file": "pkg/editor/problems_fix.go",
              "line": 522
            },
            {
              "name": "ShowReferences",
              "anchor": "Editor.ShowReferences",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowReferences(target string) ([]refs.Ref, error)",
              "doc": "ShowReferences runs FindReferences for target, opens the Search & References\npanel on the References tab with the results, and returns them.\n",
              "file": "pkg/editor/search.go",
              "line": 280
            },
            {
              "name": "ShowSelectedFileReferences",
              "anchor": "Editor.ShowSelectedFileReferences",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowSelectedFileReferences() ([]refs.Ref, error)",
              "doc": "ShowSelectedFileReferences runs ShowReferences for Editor.SelectedFile.\n",
              "file": "pkg/editor/search.go",
              "line": 313
            },
            {
              "name": "ShowToast",
              "anchor": "Editor.ShowToast",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowToast(t Toast)",
              "doc": "ShowToast appends t to the editor's FIFO toast queue, merging duplicates with the same\nnon-empty ID into the existing queued entry, and repaints the editor.\n",
              "file": "pkg/editor/toasts.go",
              "line": 672
            },
            {
              "name": "ShowToastHandle",
              "anchor": "Editor.ShowToastHandle",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowToastHandle(t Toast) *ToastHandle",
              "doc": "ShowToastHandle appends t to the editor's FIFO toast queue and returns a *ToastHandle\nfor updating or dismissing it.\n",
              "file": "pkg/editor/toasts.go",
              "line": 678
            },
            {
              "name": "ShowingSceneSettings",
              "anchor": "Editor.ShowingSceneSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) ShowingSceneSettings() bool",
              "doc": "ShowingSceneSettings reports whether the inspector is showing the open scene's own\nsettings (a scene document is loaded, no object, room, or layer is selected for\ninspection, and no asset file's import settings are being inspected).\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 312
            },
            {
              "name": "SketchActive",
              "anchor": "Editor.SketchActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchActive() bool",
              "doc": "SketchActive reports whether viewport sketch drawing mode is currently active.\n",
              "file": "pkg/editor/sketch.go",
              "line": 471
            },
            {
              "name": "SketchApproved",
              "anchor": "Editor.SketchApproved",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchApproved() bool",
              "doc": "SketchApproved reports whether the user clicked Go ahead on the active sketch and allowed agent edits.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1290
            },
            {
              "name": "SketchAttached",
              "anchor": "Editor.SketchAttached",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchAttached() bool",
              "doc": "SketchAttached reports whether the active sketch marks are attached to the next agent request chip.\n",
              "file": "pkg/editor/sketch.go",
              "line": 650
            },
            {
              "name": "SketchBarCountLabel",
              "anchor": "Editor.SketchBarCountLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchBarCountLabel() string",
              "doc": "SketchBarCountLabel returns the sketch toolbar count text, e.g. \"3 marks not saved\".\n",
              "file": "pkg/editor/sketch.go",
              "line": 723
            },
            {
              "name": "SketchChipLabel",
              "anchor": "Editor.SketchChipLabel",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchChipLabel() string",
              "doc": "SketchChipLabel returns the composer context chip label, e.g. \"Sketch · 3 marks\".\n",
              "file": "pkg/editor/sketch.go",
              "line": 714
            },
            {
              "name": "SketchDragging",
              "anchor": "Editor.SketchDragging",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchDragging() bool",
              "doc": "SketchDragging reports whether a sketch mark drag is currently in progress on the viewport.\n",
              "file": "pkg/editor/sketch.go",
              "line": 753
            },
            {
              "name": "SketchHoldActive",
              "anchor": "Editor.SketchHoldActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchHoldActive() bool",
              "doc": "SketchHoldActive reports whether mutating scene MCP edits must hold until the user confirms the sent sketch.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1282
            },
            {
              "name": "SketchHoldState",
              "anchor": "Editor.SketchHoldState",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchHoldState() SketchHoldState",
              "doc": "SketchHoldState returns the current confirmation hold state of the sketch layer.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1274
            },
            {
              "name": "SketchMarkByNumber",
              "anchor": "Editor.SketchMarkByNumber",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchMarkByNumber(number int) (SketchMark, bool)",
              "doc": "SketchMarkByNumber returns the 1-based numbered sketch mark, if present.\n",
              "file": "pkg/editor/sketch.go",
              "line": 594
            },
            {
              "name": "SketchMarkCount",
              "anchor": "Editor.SketchMarkCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchMarkCount() int",
              "doc": "SketchMarkCount returns the number of marks currently on the viewport sketch layer.\n",
              "file": "pkg/editor/sketch.go",
              "line": 586
            },
            {
              "name": "SketchMarks",
              "anchor": "Editor.SketchMarks",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchMarks() []SketchMark",
              "doc": "SketchMarks returns a deep copy of all marks currently on the viewport sketch layer, in sequential badge order.\n",
              "file": "pkg/editor/sketch.go",
              "line": 578
            },
            {
              "name": "SketchMarksHidden",
              "anchor": "Editor.SketchMarksHidden",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchMarksHidden() bool",
              "doc": "SketchMarksHidden reports whether the sketch layer marks are temporarily hidden via the eye button.\n",
              "file": "pkg/editor/sketch.go",
              "line": 628
            },
            {
              "name": "SketchPanelOpen",
              "anchor": "Editor.SketchPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchPanelOpen() bool",
              "doc": "SketchPanelOpen reports whether the right-side Sketch / Agent panel should be shown.\n",
              "file": "pkg/editor/sketch.go",
              "line": 528
            },
            {
              "name": "SketchPreviewOpen",
              "anchor": "Editor.SketchPreviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchPreviewOpen() bool",
              "doc": "SketchPreviewOpen reports whether the \"Sent with this request\" sketch preview card is open.\n",
              "file": "pkg/editor/sketch.go",
              "line": 671
            },
            {
              "name": "SketchPromptDraft",
              "anchor": "Editor.SketchPromptDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchPromptDraft() string",
              "doc": "SketchPromptDraft returns the current text in the Sketch/Agent composer field.\n",
              "file": "pkg/editor/sketch.go",
              "line": 697
            },
            {
              "name": "SketchReading",
              "anchor": "Editor.SketchReading",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchReading() *SketchReading",
              "doc": "SketchReading returns a copy of the agent's posted sketch reading card, or nil when none is open.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1295
            },
            {
              "name": "SketchReviewChanges",
              "anchor": "Editor.SketchReviewChanges",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchReviewChanges() []SketchReviewChange",
              "doc": "SketchReviewChanges returns the changes recorded in the active post-sketch review.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1541
            },
            {
              "name": "SketchReviewOpen",
              "anchor": "Editor.SketchReviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchReviewOpen() bool",
              "doc": "SketchReviewOpen reports whether a post-sketch agent edit review is open.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1500
            },
            {
              "name": "SketchReviewOverlayVisible",
              "anchor": "Editor.SketchReviewOverlayVisible",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchReviewOverlayVisible() bool",
              "doc": "SketchReviewOverlayVisible reports whether the Sketch overlay toggle is enabled during review.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1505
            },
            {
              "name": "SketchStatusSceneCoords",
              "anchor": "Editor.SketchStatusSceneCoords",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchStatusSceneCoords() (float32, float32)",
              "doc": "SketchStatusSceneCoords returns the live scene coordinates shown in the status bar while sketching\n(the pointer position in scene space when hovering the viewport, otherwise the selected/last mark or view center).\n",
              "file": "pkg/editor/sketch.go",
              "line": 733
            },
            {
              "name": "SketchTool",
              "anchor": "Editor.SketchTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) SketchTool() SketchTool",
              "doc": "SketchTool returns the active sketch drawing tool (Pen, Arrow, Box, or Text).\n",
              "file": "pkg/editor/sketch.go",
              "line": 555
            },
            {
              "name": "SkipFirstRunTips",
              "anchor": "Editor.SkipFirstRunTips",
              "recv": "*Editor",
              "decl": "func (e *Editor) SkipFirstRunTips() error",
              "doc": "SkipFirstRunTips marks all three first-review tips as seen in EditorSettings and dismisses them.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2553
            },
            {
              "name": "SnapAxis2D",
              "anchor": "Editor.SnapAxis2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SnapAxis2D(v float64, axis int) float64",
              "doc": "SnapAxis2D snaps a 2D coordinate along axis (0 for X, 1 for Y) according to the active grid/pixel snap settings and temporary inversion.\n",
              "file": "pkg/editor/snap.go",
              "line": 414
            },
            {
              "name": "SnapInvert",
              "anchor": "Editor.SnapInvert",
              "recv": "*Editor",
              "decl": "func (e *Editor) SnapInvert() bool",
              "doc": "SnapInvert reports whether temporary snap inversion is currently active.\n",
              "file": "pkg/editor/snap.go",
              "line": 290
            },
            {
              "name": "SnapPosition2D",
              "anchor": "Editor.SnapPosition2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SnapPosition2D(x, y float64) (float64, float64)",
              "doc": "SnapPosition2D snaps (x, y) according to the active grid/pixel snap settings and temporary inversion.\n",
              "file": "pkg/editor/snap.go",
              "line": 433
            },
            {
              "name": "SnapPosition3D",
              "anchor": "Editor.SnapPosition3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) SnapPosition3D(x, y, z float64) (float64, float64, float64)",
              "doc": "SnapPosition3D snaps a 3D coordinate (x, y, z) according to the active grid/pixel snap settings and temporary inversion.\n",
              "file": "pkg/editor/snap.go",
              "line": 438
            },
            {
              "name": "SnapRotationRadians",
              "anchor": "Editor.SnapRotationRadians",
              "recv": "*Editor",
              "decl": "func (e *Editor) SnapRotationRadians(rad float64) float64",
              "doc": "SnapRotationRadians snaps rad to multiples of EffectiveRotationSnapDeg in radians when rotation snap (XOR temporary inversion) is active.\n",
              "file": "pkg/editor/snap.go",
              "line": 443
            },
            {
              "name": "SnapScaleFactor",
              "anchor": "Editor.SnapScaleFactor",
              "recv": "*Editor",
              "decl": "func (e *Editor) SnapScaleFactor(s float64) float64",
              "doc": "SnapScaleFactor snaps s to multiples of EffectiveScaleSnapStep when scale snap (XOR temporary inversion) is active,\navoiding collapse to zero.\n",
              "file": "pkg/editor/snap.go",
              "line": 453
            },
            {
              "name": "SnapSettings",
              "anchor": "Editor.SnapSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) SnapSettings() SnapSettings",
              "doc": "SnapSettings returns a snapshot of the editor's current snapping and grid overlay preferences.\n",
              "file": "pkg/editor/snap.go",
              "line": 93
            },
            {
              "name": "SnapValue",
              "anchor": "Editor.SnapValue",
              "recv": "*Editor",
              "decl": "func (e *Editor) SnapValue(v float64) float64",
              "doc": "SnapValue snaps v to the active grid step (or whole points when pixel snap is active), respecting temporary snap inversion, and normalizes -0 to 0.\n",
              "file": "pkg/editor/snap.go",
              "line": 400
            },
            {
              "name": "SpecPalette",
              "anchor": "Editor.SpecPalette",
              "recv": "*Editor",
              "decl": "func (e *Editor) SpecPalette(cx *core.Scope) SpecPalette",
              "doc": "SpecPalette returns the active SpecPalette for cx when non-nil (following cx.Dark(), which tracks\nScope.SetAppearance, Scope.SetSubtreeAppearance, and live system appearance changes), or e.Dark() otherwise.\n",
              "file": "pkg/editor/spec_theme.go",
              "line": 214
            },
            {
              "name": "StagedFileYAML",
              "anchor": "Editor.StagedFileYAML",
              "recv": "*Editor",
              "decl": "func (e *Editor) StagedFileYAML(rel string) ([]byte, bool)",
              "doc": "StagedFileYAML returns the live in-memory YAML bytes for rel (a slash-separated project path)\nif rel is currently open in a non-active scene tab or held in memory by an active/kept agent turn.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 1406
            },
            {
              "name": "StampTiles",
              "anchor": "Editor.StampTiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) StampTiles(layer string, col, row int, stamp TileStamp) error",
              "doc": "StampTiles places stamp with its top-left corner at (col, row) on layer's inline tilemap as one undoable command.\nCells falling outside the map are clipped.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 732
            },
            {
              "name": "StartAgentRequest",
              "anchor": "Editor.StartAgentRequest",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartAgentRequest(prompt string) uint64",
              "doc": "StartAgentRequest begins a new live agent request in the Agent panel, clears prior per-request denials\nso the agent may ask again on a new request, and immediately displays a gray placeholder step (within 300 ms).\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 243
            },
            {
              "name": "StartAgentTurn",
              "anchor": "Editor.StartAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartAgentTurn(prompt string) error",
              "doc": "StartAgentTurn begins a new pending agent turn labelled with prompt.\nEvery edit made through the editor's MCP server until EndAgentTurn or StopAgentTurn is grouped\ninto this one turn across all touched files, applied in memory immediately with zero disk writes.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 521
            },
            {
              "name": "StartCreateProject",
              "anchor": "Editor.StartCreateProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartCreateProject(req CreateProjectRequest) error",
              "doc": "StartCreateProject creates a new project using req via Editor.CreateProject (or `go tool game new` by default)\noff the UI goroutine, streaming its output to CreateProjectOutput, and opens the created project when it succeeds.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 777
            },
            {
              "name": "StartDataTableReviewCellEdit",
              "anchor": "Editor.StartDataTableReviewCellEdit",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartDataTableReviewCellEdit(key, col string)",
              "doc": "StartDataTableReviewCellEdit opens the inline value editor for (key, col) in the active file.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1432
            },
            {
              "name": "StartExportBuild",
              "anchor": "Editor.StartExportBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartExportBuild(opts ExportBuildOptions) error",
              "doc": "StartExportBuild validates the open project's release settings and asset credits, then executes `nsgo build` (or prints the exact dry-run command) off the UI goroutine, streaming output lines into the Output log and opening the output folder when a non-dry-run build succeeds.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 770
            },
            {
              "name": "StartFreshAgentThread",
              "anchor": "Editor.StartFreshAgentThread",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartFreshAgentThread() (string, error)",
              "doc": "StartFreshAgentThread starts a new thread seeded with a summary of the current thread,\nclears the old turns and transient attached chips, and drops context usage.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2800
            },
            {
              "name": "StartNameStatus",
              "anchor": "Editor.StartNameStatus",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartNameStatus() StartNameValidation",
              "doc": "StartNameStatus returns the live validation result for the Start Screen's New Project inputs.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 543
            },
            {
              "name": "StartProjectIdea",
              "anchor": "Editor.StartProjectIdea",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartProjectIdea() string",
              "doc": "StartProjectIdea returns the draft game idea text on the Start Screen.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 520
            },
            {
              "name": "StartProjectModule",
              "anchor": "Editor.StartProjectModule",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartProjectModule() string",
              "doc": "StartProjectModule returns the draft Go module path in the Start Screen form.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 496
            },
            {
              "name": "StartProjectName",
              "anchor": "Editor.StartProjectName",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartProjectName() string",
              "doc": "StartProjectName returns the draft project name in the Start Screen form.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 448
            },
            {
              "name": "StartProjectParentDir",
              "anchor": "Editor.StartProjectParentDir",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartProjectParentDir() string",
              "doc": "StartProjectParentDir returns the draft parent folder in the Start Screen form.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 472
            },
            {
              "name": "StartReleaseBuild",
              "anchor": "Editor.StartReleaseBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartReleaseBuild(opts ...BuildReleaseOptions) error",
              "doc": "StartReleaseBuild starts building every included, ready preset one at a time on a background goroutine.\nPass an optional BuildReleaseOptions to override DryRun, Channel, or ReleaseNotes; omitting it uses the screen's settings.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1636
            },
            {
              "name": "StartReleaseUpload",
              "anchor": "Editor.StartReleaseUpload",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartReleaseUpload() error",
              "doc": "StartReleaseUpload unconditionally refuses to upload directly without confirmation in Review uploads.\nCallers must open Review uploads (ReviewReleaseUploads) and have the person confirm via ConfirmReleaseUploads.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 1086
            },
            {
              "name": "StartSafeRename",
              "anchor": "Editor.StartSafeRename",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartSafeRename() error",
              "doc": "StartSafeRename switches the open References screen into safe-rename mode (F2).\n",
              "file": "pkg/editor/usages.go",
              "line": 526
            },
            {
              "name": "StartScreenOpen",
              "anchor": "Editor.StartScreenOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartScreenOpen() bool",
              "doc": "StartScreenOpen reports whether the Start Screen is currently displayed in EditorView.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 284
            },
            {
              "name": "StartSketch",
              "anchor": "Editor.StartSketch",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartSketch()",
              "doc": "StartSketch activates viewport sketch mode and opens the Sketch/Agent panel.\n",
              "file": "pkg/editor/sketch.go",
              "line": 509
            },
            {
              "name": "StartTemplateFilter",
              "anchor": "Editor.StartTemplateFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartTemplateFilter() string",
              "doc": "StartTemplateFilter returns the active Start Screen template filter (\"all\", \"2d\", or \"3d\").\n",
              "file": "pkg/editor/start_screen.go",
              "line": 386
            },
            {
              "name": "StartTurnReview",
              "anchor": "Editor.StartTurnReview",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartTurnReview(input ReviewTurnInput) error",
              "doc": "StartTurnReview analyzes the agent turn's before/after file snapshots into grouped file/kind changes\nand opens the full-window Review screen (or leaves it pending when input.StartPending is true).\n",
              "file": "pkg/editor/review.go",
              "line": 563
            },
            {
              "name": "StartWebBuildServer",
              "anchor": "Editor.StartWebBuildServer",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartWebBuildServer(servePath string) (WebBuildServerSnapshot, error)",
              "doc": "StartWebBuildServer starts serving servePath (a built web directory or .zip archive containing index.html)\nstrictly on the local network (LAN IP or loopback, never public), exposing the LAN URL, QR code payload,\nand /__nsgo_mcp/* Play-mode debug bridge endpoints. If servePath is empty, the editor locates the latest\nweb build output directory automatically.\n",
              "file": "pkg/editor/build_device.go",
              "line": 322
            },
            {
              "name": "StartWithAI",
              "anchor": "Editor.StartWithAI",
              "recv": "*Editor",
              "decl": "func (e *Editor) StartWithAI() error",
              "doc": "StartWithAI begins the Start with AI journey from the Start Screen.\nWhen no agent is connected yet, it opens Connect in place on the Start Screen while keeping\nthe idea and project name intact; when an agent is already connected, it opens the first plan directly.\nNo project folder is created until the author approves the plan.\n",
              "file": "pkg/editor/first_run.go",
              "line": 737
            },
            {
              "name": "States",
              "anchor": "Editor.States",
              "recv": "*Editor",
              "decl": "func (e *Editor) States() *animclip.StateMachineDoc",
              "doc": "States returns a copy of the sprite state machine open in the editor, or nil.\n",
              "file": "pkg/editor/states.go",
              "line": 68
            },
            {
              "name": "StatesActionHeld",
              "anchor": "Editor.StatesActionHeld",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesActionHeld(action string) bool",
              "doc": "StatesActionHeld reports whether action is currently held in Drive with keys mode.\n",
              "file": "pkg/editor/states.go",
              "line": 726
            },
            {
              "name": "StatesActiveFrame",
              "anchor": "Editor.StatesActiveFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesActiveFrame() string",
              "doc": "StatesActiveFrame returns the current sprite frame name shown on the preview target object, or \"\".\n",
              "file": "pkg/editor/states.go",
              "line": 146
            },
            {
              "name": "StatesClipMetaFor",
              "anchor": "Editor.StatesClipMetaFor",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesClipMetaFor(name string) (StatesClipMeta, bool)",
              "doc": "StatesClipMetaFor returns cached clip metadata for state name.\n",
              "file": "pkg/editor/states.go",
              "line": 166
            },
            {
              "name": "StatesClipResolver",
              "anchor": "Editor.StatesClipResolver",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesClipResolver() animclip.ClipResolver",
              "doc": "StatesClipResolver returns the ClipResolver used to load clips for the open state machine.\n",
              "file": "pkg/editor/states.go",
              "line": 581
            },
            {
              "name": "StatesCurrentState",
              "anchor": "Editor.StatesCurrentState",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesCurrentState() string",
              "doc": "StatesCurrentState returns the state currently active in the runtime preview, or SelectedStatesNode when no preview player is active.\n",
              "file": "pkg/editor/states.go",
              "line": 127
            },
            {
              "name": "StatesDirty",
              "anchor": "Editor.StatesDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesDirty() bool",
              "doc": "StatesDirty reports whether the open state machine differs from its last opened or saved YAML bytes.\n",
              "file": "pkg/editor/states.go",
              "line": 85
            },
            {
              "name": "StatesDriveWithKeys",
              "anchor": "Editor.StatesDriveWithKeys",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesDriveWithKeys() bool",
              "doc": "StatesDriveWithKeys reports whether Drive with keys is enabled in the state machine preview.\n",
              "file": "pkg/editor/states.go",
              "line": 237
            },
            {
              "name": "StatesDriverPosY",
              "anchor": "Editor.StatesDriverPosY",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesDriverPosY() float64",
              "doc": "StatesDriverPosY returns the simulated vertical jump offset of the Drive with keys preview (<= 0).\n",
              "file": "pkg/editor/states.go",
              "line": 158
            },
            {
              "name": "StatesError",
              "anchor": "Editor.StatesError",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesError() error",
              "doc": "StatesError returns why the open state machine cannot be previewed on the scene, or nil.\n",
              "file": "pkg/editor/states.go",
              "line": 82
            },
            {
              "name": "StatesHandleKeyEvent",
              "anchor": "Editor.StatesHandleKeyEvent",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesHandleKeyEvent(ev core.KeyEvent, down bool) bool",
              "doc": "StatesHandleKeyEvent forwards a hardware key event to the Drive with keys input actions when active.\nIt ignores events during Play mode, never swallows modifier shortcuts (Cmd/Ctrl/Alt) or unbound keys, and treats Escape as releasing keys and exiting Drive with keys.\n",
              "file": "pkg/editor/states.go",
              "line": 732
            },
            {
              "name": "StatesOutgoingFor",
              "anchor": "Editor.StatesOutgoingFor",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesOutgoingFor(state string) []StatesOutgoing",
              "doc": "StatesOutgoingFor returns the transitions leaving state name (including Any-state transitions to other states), formatted for the LEAVING <STATE> panel.\n",
              "file": "pkg/editor/states.go",
              "line": 183
            },
            {
              "name": "StatesPath",
              "anchor": "Editor.StatesPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesPath() string",
              "doc": "StatesPath returns the file path the open state machine was loaded from or saved to, or \"\".\n",
              "file": "pkg/editor/states.go",
              "line": 76
            },
            {
              "name": "StatesPlaying",
              "anchor": "Editor.StatesPlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesPlaying() bool",
              "doc": "StatesPlaying reports whether the state machine preview is running on game.Loop.\n",
              "file": "pkg/editor/states.go",
              "line": 234
            },
            {
              "name": "StatesPreviousState",
              "anchor": "Editor.StatesPreviousState",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesPreviousState() string",
              "doc": "StatesPreviousState returns the state active before the most recent preview transition, or \"\".\n",
              "file": "pkg/editor/states.go",
              "line": 138
            },
            {
              "name": "StatesTarget",
              "anchor": "Editor.StatesTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesTarget() string",
              "doc": "StatesTarget returns the object ID the open state machine previews on.\n",
              "file": "pkg/editor/states.go",
              "line": 79
            },
            {
              "name": "StatesTransitionTrace",
              "anchor": "Editor.StatesTransitionTrace",
              "recv": "*Editor",
              "decl": "func (e *Editor) StatesTransitionTrace() []string",
              "doc": "StatesTransitionTrace returns a copy of the state sequence observed since the preview started or reset.\n",
              "file": "pkg/editor/states.go",
              "line": 175
            },
            {
              "name": "StepAskInPlaceSuggestion",
              "anchor": "Editor.StepAskInPlaceSuggestion",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepAskInPlaceSuggestion(delta int)",
              "doc": "StepAskInPlaceSuggestion moves the highlighted contextual suggestion by delta (+1 for Down, -1 for Up),\nkeeping -1 (\"free typing\") in the cycle so arrows never trap or block typing.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 230
            },
            {
              "name": "StepAssetPreviewFrame",
              "anchor": "Editor.StepAssetPreviewFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepAssetPreviewFrame(delta int)",
              "doc": "StepAssetPreviewFrame advances or rewinds the selected asset's preview frame by delta (wrapping around).\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1560
            },
            {
              "name": "StepAutoSave",
              "anchor": "Editor.StepAutoSave",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepAutoSave() bool",
              "doc": "StepAutoSave advances autosave timers and applies any finished background write against the editor's clock (Editor.Now or time.Now).\nPrimarily used by deterministic headless tests; returns true if an autosave state transition occurred.\n",
              "file": "pkg/editor/autosave.go",
              "line": 624
            },
            {
              "name": "StepAutomations",
              "anchor": "Editor.StepAutomations",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepAutomations() int",
              "doc": "StepAutomations checks all enabled daily automations against the editor's clock (Editor.Now or time.Now)\nand starts any whose scheduled HH:MM has been reached today and has not yet run today.\nReturns the number of background automation tasks started.\n",
              "file": "pkg/editor/automations.go",
              "line": 1614
            },
            {
              "name": "StepClip",
              "anchor": "Editor.StepClip",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepClip(dt time.Duration)",
              "doc": "StepClip advances clip playback by dt, as the loop PlayClip starts does on every fixed step. A clip that does not loop pauses at its end.\n",
              "file": "pkg/editor/animation.go",
              "line": 878
            },
            {
              "name": "StepCodeReviewFile",
              "anchor": "Editor.StepCodeReviewFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepCodeReviewFile(delta int)",
              "doc": "StepCodeReviewFile moves selection forward (+1) or backward (-1) across visible files in the Go review sidebar.\n",
              "file": "pkg/editor/code_review.go",
              "line": 939
            },
            {
              "name": "StepCutscene",
              "anchor": "Editor.StepCutscene",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepCutscene(dt time.Duration)",
              "doc": "StepCutscene advances the cutscene timeline preview by one fixed step dt.\n",
              "file": "pkg/editor/cutscene.go",
              "line": 632
            },
            {
              "name": "StepDataTableReviewCellNumber",
              "anchor": "Editor.StepDataTableReviewCellNumber",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepDataTableReviewCellNumber(key, col string, delta float64) error",
              "doc": "StepDataTableReviewCellNumber increments or decrements a numeric cell by delta in place.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1589
            },
            {
              "name": "StepDataTableReviewFocus",
              "anchor": "Editor.StepDataTableReviewFocus",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepDataTableReviewFocus(delta int)",
              "doc": "StepDataTableReviewFocus moves focus to the next (+1) or previous (-1) visible record (J / K keys).\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1325
            },
            {
              "name": "StepGridMapFloor",
              "anchor": "Editor.StepGridMapFloor",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepGridMapFloor(delta int)",
              "doc": "StepGridMapFloor raises or lowers the active GridMap floor height by delta.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 212
            },
            {
              "name": "StepGridMapOrientation",
              "anchor": "Editor.StepGridMapOrientation",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepGridMapOrientation(delta int) error",
              "doc": "StepGridMapOrientation advances the active GridMap item orientation modulo 24 by delta as an undoable command.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 305
            },
            {
              "name": "StepMergeConflictFocus",
              "anchor": "Editor.StepMergeConflictFocus",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepMergeConflictFocus(delta int)",
              "doc": "StepMergeConflictFocus moves focus by delta (+1 next, -1 previous), wrapping cleanly.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 405
            },
            {
              "name": "StepModelPreviewAnimation",
              "anchor": "Editor.StepModelPreviewAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepModelPreviewAnimation(dt time.Duration)",
              "doc": "StepModelPreviewAnimation advances active model preview animation playback by dt and updates the posed scene.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 783
            },
            {
              "name": "StepParticlePreview",
              "anchor": "Editor.StepParticlePreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepParticlePreview(dt time.Duration)",
              "doc": "StepParticlePreview advances the live preview emitter by dt (even while paused).\n",
              "file": "pkg/editor/particles.go",
              "line": 712
            },
            {
              "name": "StepPlay",
              "anchor": "Editor.StepPlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepPlay(n int) int",
              "doc": "StepPlay synchronously advances local Play mode by n fixed simulation steps (even while paused)\nand returns the number of steps actually executed.\n",
              "file": "pkg/editor/play.go",
              "line": 106
            },
            {
              "name": "StepReviewChange",
              "anchor": "Editor.StepReviewChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepReviewChange(delta int) string",
              "doc": "StepReviewChange moves focus to the next (+1, J) or previous (-1, K) visible change card,\nmarks it seen, and frames it in the viewport.\nWhen filtering by Unseen, stepping advances cleanly through the remaining unseen items even after\nthe previously focused item becomes seen.\n",
              "file": "pkg/editor/review.go",
              "line": 2867
            },
            {
              "name": "StepReviewRow",
              "anchor": "Editor.StepReviewRow",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepReviewRow(delta int) string",
              "doc": "StepReviewRow moves keyboard row focus up (-1) or down (+1) across all visible rows (file headers, kind headers, and change cards).\n",
              "file": "pkg/editor/review.go",
              "line": 2945
            },
            {
              "name": "StepRig",
              "anchor": "Editor.StepRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepRig(dt time.Duration)",
              "doc": "StepRig advances the rig preview's live runtime skeletal.Skeleton by dt.\n",
              "file": "pkg/editor/rig.go",
              "line": 1809
            },
            {
              "name": "StepSceneEmitters",
              "anchor": "Editor.StepSceneEmitters",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepSceneEmitters(dt time.Duration)",
              "doc": "StepSceneEmitters advances every placed particle emitter in the edit BuiltScene by dt so the editor viewport previews them live without entering Play mode.\n",
              "file": "pkg/editor/particles.go",
              "line": 1753
            },
            {
              "name": "StepStates",
              "anchor": "Editor.StepStates",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepStates(dt time.Duration)",
              "doc": "StepStates advances the state machine preview by one fixed step dt, feeding project input actions through animclip.InputDriver when Drive with keys is active.\n",
              "file": "pkg/editor/states.go",
              "line": 653
            },
            {
              "name": "StepTileAnimations",
              "anchor": "Editor.StepTileAnimations",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepTileAnimations(dt time.Duration)",
              "doc": "StepTileAnimations advances animated tiles in the edit viewport and the Tileset Editor's animation preview by dt.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1492
            },
            {
              "name": "StepUsageFocus",
              "anchor": "Editor.StepUsageFocus",
              "recv": "*Editor",
              "decl": "func (e *Editor) StepUsageFocus(delta int)",
              "doc": "StepUsageFocus moves keyboard focus forward (+1) or backward (-1) through all usages in the References screen.\n",
              "file": "pkg/editor/usages.go",
              "line": 848
            },
            {
              "name": "Stop",
              "anchor": "Editor.Stop",
              "recv": "*Editor",
              "decl": "func (e *Editor) Stop() error",
              "doc": "Stop halts the running Play loop, sends any unsent Play marks as one thread,\nand restores the exact pre-play SceneDoc snapshot, discarding any runtime mutations made during Play mode.\n",
              "file": "pkg/editor/play.go",
              "line": 602
            },
            {
              "name": "StopAgent",
              "anchor": "Editor.StopAgent",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopAgent() bool",
              "doc": "StopAgent stops the running or waiting agent request (triggered by the Stop button or Mod+. from anywhere,\nincluding inside modal dialogs). Completed steps and edits stay pending for review, and the\n\"Agent stopped\" toast offers Review. Esc never calls StopAgent.\n",
              "file": "pkg/editor/agent_live_steps.go",
              "line": 868
            },
            {
              "name": "StopAgentPlan",
              "anchor": "Editor.StopAgentPlan",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopAgentPlan() (AgentPlanDecision, error)",
              "doc": "StopAgentPlan stops the active draft or running plan. When stopped before step 1 writes anything,\nNothingWritten remains true, every file stays unchanged, and Edit plan / Run again are offered.\n",
              "file": "pkg/editor/plan.go",
              "line": 1629
            },
            {
              "name": "StopAgentRun",
              "anchor": "Editor.StopAgentRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopAgentRun()",
              "doc": "StopAgentRun cancels the currently running agent request or active running plan,\nkeeping completed steps visible, recording done and not-done steps for Resume,\nand leaving changes unkept until reviewed.\n",
              "file": "pkg/editor/agent.go",
              "line": 1823
            },
            {
              "name": "StopAgentTurn",
              "anchor": "Editor.StopAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopAgentTurn() error",
              "doc": "StopAgentTurn stops a working agent turn (⌘. or Stop button). Any edits made so far remain\nlive in memory and pending as AgentTurnStopped so they can still be reviewed, kept, or reverted.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 602
            },
            {
              "name": "StopAndroidDeviceRun",
              "anchor": "Editor.StopAndroidDeviceRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopAndroidDeviceRun()",
              "doc": "StopAndroidDeviceRun cancels any in-flight Android USB install/run command.\n",
              "file": "pkg/editor/build_device.go",
              "line": 1589
            },
            {
              "name": "StopAssetAudioPreview",
              "anchor": "Editor.StopAssetAudioPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopAssetAudioPreview()",
              "doc": "StopAssetAudioPreview stops any active right-panel sound preview.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1703
            },
            {
              "name": "StopAudition",
              "anchor": "Editor.StopAudition",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopAudition()",
              "doc": "StopAudition stops any active audio bus audition playback.\n",
              "file": "pkg/editor/audio_mixer_panel.go",
              "line": 685
            },
            {
              "name": "StopChangedAudio",
              "anchor": "Editor.StopChangedAudio",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopChangedAudio()",
              "doc": "StopChangedAudio stops any audio asset audition playing from the Changes panel.\n",
              "file": "pkg/editor/changes.go",
              "line": 3356
            },
            {
              "name": "StopFirstRunDeleteFolder",
              "anchor": "Editor.StopFirstRunDeleteFolder",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopFirstRunDeleteFolder() error",
              "doc": "StopFirstRunDeleteFolder stops building and removes ONLY the brand-new folder created by this flow after Approve.\nIt refuses to delete any folder that was not created by this flow, and never deletes sibling or parent directories.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2273
            },
            {
              "name": "StopFirstRunKeepFiles",
              "anchor": "Editor.StopFirstRunKeepFiles",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopFirstRunKeepFiles()",
              "doc": "StopFirstRunKeepFiles stops building while preserving all files created so far on disk,\noffering \"Review them\" to inspect what was built.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2221
            },
            {
              "name": "StopGame",
              "anchor": "Editor.StopGame",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopGame() error",
              "doc": "StopGame stops the running game child process and every process it started, waiting until the process exits and all streamed output has been flushed. It is safe to call when no game is running.\n",
              "file": "pkg/editor/run_game.go",
              "line": 283
            },
            {
              "name": "StopGeneratedSoundCandidate",
              "anchor": "Editor.StopGeneratedSoundCandidate",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopGeneratedSoundCandidate()",
              "doc": "StopGeneratedSoundCandidate stops any currently auditioning generated sound candidate.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 2366
            },
            {
              "name": "StopModelPreviewAnimation",
              "anchor": "Editor.StopModelPreviewAnimation",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopModelPreviewAnimation()",
              "doc": "StopModelPreviewAnimation halts model preview animation playback, resets the playhead to 0, and restores the model's bind pose.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 739
            },
            {
              "name": "StopReleaseBuild",
              "anchor": "Editor.StopReleaseBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopReleaseBuild()",
              "doc": "StopReleaseBuild cancels an in-flight release build while keeping every completed step intact\nso ResumeReleaseBuild can continue from the interrupted step.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1680
            },
            {
              "name": "StopRig",
              "anchor": "Editor.StopRig",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopRig()",
              "doc": "StopRig stops rig playback and rewinds the playhead to 0.\n",
              "file": "pkg/editor/rig.go",
              "line": 1800
            },
            {
              "name": "StopRunningTasks",
              "anchor": "Editor.StopRunningTasks",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopRunningTasks()",
              "doc": "StopRunningTasks stops every currently running background task without disturbing reviewable turns.\n",
              "file": "pkg/editor/tasks.go",
              "line": 733
            },
            {
              "name": "StopStuckAgentTurn",
              "anchor": "Editor.StopStuckAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopStuckAgentTurn(turnID string)",
              "doc": "StopStuckAgentTurn stops a paused Stuck turn cleanly without modifying any file.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1007
            },
            {
              "name": "StopTask",
              "anchor": "Editor.StopTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopTask(id string) error",
              "doc": "StopTask cancels a running, waiting, or queued task, releases any object holds, and advances the queue.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1876
            },
            {
              "name": "StopWebBuildServer",
              "anchor": "Editor.StopWebBuildServer",
              "recv": "*Editor",
              "decl": "func (e *Editor) StopWebBuildServer() error",
              "doc": "StopWebBuildServer closes the LAN web build HTTP listener and all active connections,\nimmediately freeing the TCP port before returning.\n",
              "file": "pkg/editor/build_device.go",
              "line": 461
            },
            {
              "name": "StoreAgentAPIKey",
              "anchor": "Editor.StoreAgentAPIKey",
              "recv": "*Editor",
              "decl": "func (e *Editor) StoreAgentAPIKey(account, apiKey string) error",
              "doc": "StoreAgentAPIKey saves the built-in model API key exclusively in NSGo's core.Secrets / system keychain\n(never in editor.yaml or any project file). Refused when invoked by an agent.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 645
            },
            {
              "name": "StorePublishCredential",
              "anchor": "Editor.StorePublishCredential",
              "recv": "*Editor",
              "decl": "func (e *Editor) StorePublishCredential(dest PublishDestination, account, secret string) error",
              "doc": "StorePublishCredential stores a store upload token/key in the system keychain (never in project files).\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 874
            },
            {
              "name": "StripModels",
              "anchor": "Editor.StripModels",
              "recv": "*Editor",
              "decl": "func (e *Editor) StripModels() []ModelEntry",
              "doc": "StripModels returns the models offered in the 3D viewport's bottom MODELS strip: the open project's models first (in ProjectModels order, with model target outputs marked Output), followed by the built-in primitives in sceneformat.MeshPrimitives order.\n",
              "file": "pkg/editor/models.go",
              "line": 145
            },
            {
              "name": "SubmitAgentPrompt",
              "anchor": "Editor.SubmitAgentPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubmitAgentPrompt(prompt string) error",
              "doc": "SubmitAgentPrompt submits prompt (or the current composer text when prompt is empty) to the agent routed for Scene and data edits and streams its steps into the Agent panel.\n",
              "file": "pkg/editor/agent.go",
              "line": 1816
            },
            {
              "name": "SubmitAgentTaskPrompt",
              "anchor": "Editor.SubmitAgentTaskPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubmitAgentTaskPrompt(task AgentTaskKind, prompt string) error",
              "doc": "SubmitAgentTaskPrompt submits prompt for task, routing according to WHO DOES WHAT.\nWhen the weekly request limit is reached, the prompt is queued instead of executed and status shows Limit reached.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 541
            },
            {
              "name": "SubmitAskFrozenFrame",
              "anchor": "Editor.SubmitAskFrozenFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubmitAskFrozenFrame(prompt string) (AskFrozenFrameRequest, error)",
              "doc": "SubmitAskFrozenFrame saves the rolling replay under replays/, attaches the captured frame image and live state snapshot,\nswitches to the Agent tab, invokes Editor.OnAskFrozenFrame if set, and keeps the game paused.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 890
            },
            {
              "name": "SubmitAskInPlace",
              "anchor": "Editor.SubmitAskInPlace",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubmitAskInPlace() (AgentTurn, error)",
              "doc": "SubmitAskInPlace sends the active in-place composer request (or the currently arrow-highlighted suggestion),\nattaching selection IDs, open scene, and rendered viewport PNG context, flagging SkipPlan=true per Plan.dc.html,\nrecording the turn in the Agent panel, and closing the in-place composer.\n",
              "file": "pkg/editor/ask_in_place.go",
              "line": 282
            },
            {
              "name": "SubmitComposerTask",
              "anchor": "Editor.SubmitComposerTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubmitComposerTask() (AgentTask, error)",
              "doc": "SubmitComposerTask submits the current composer draft using TaskComposerMode and clears the draft.\n",
              "file": "pkg/editor/tasks.go",
              "line": 915
            },
            {
              "name": "SubmitHUDPrompt",
              "anchor": "Editor.SubmitHUDPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubmitHUDPrompt(prompt string) HUDPromptRequest",
              "doc": "SubmitHUDPrompt records a prompt from the HUD layout composer (and invokes Editor.OnHUDPrompt when set).\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1997
            },
            {
              "name": "SubmitPermissionsDraft",
              "anchor": "Editor.SubmitPermissionsDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubmitPermissionsDraft(req PermissionsDraftRequest) (*PermissionsDraft, error)",
              "doc": "SubmitPermissionsDraft opens the You-only Permissions Draft card with every rule unticked by default.\nSubmitting a draft never changes effective rules or permissions.yaml on disk.\n",
              "file": "pkg/editor/you_only.go",
              "line": 834
            },
            {
              "name": "SubmitTask",
              "anchor": "Editor.SubmitTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubmitTask(req TaskRequest) (AgentTask, error)",
              "doc": "SubmitTask adds a new background agent request according to req.StartMode:\n  - TaskStartQueue starts immediately only when no blocking turn is running, waiting on you,\n    or unreviewed; otherwise it enters TaskQueued and starts only after the blocking task is\n    kept or reverted.\n  - TaskStartParallel starts immediately as a separate session with its own numbered overlay.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1144
            },
            {
              "name": "SubmitViewport3DAgentPrompt",
              "anchor": "Editor.SubmitViewport3DAgentPrompt",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubmitViewport3DAgentPrompt(text string) (Viewport3DAgentRequest, error)",
              "doc": "SubmitViewport3DAgentPrompt dispatches text as a Viewport3DAgentRequest to OnAskAgent3D (falling back to OnAssetAskAgent when configured), updates the status bar, and closes the inline prompt.\n",
              "file": "pkg/editor/models.go",
              "line": 1064
            },
            {
              "name": "Subscribe",
              "anchor": "Editor.Subscribe",
              "recv": "*Editor",
              "decl": "func (e *Editor) Subscribe(fn func()) func()",
              "doc": "Subscribe registers fn to run whenever editor state changes and returns an unsubscribe function.\n",
              "file": "pkg/editor/state.go",
              "line": 1178
            },
            {
              "name": "SubscribeAgentPulse",
              "anchor": "Editor.SubscribeAgentPulse",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubscribeAgentPulse(fn func()) func()",
              "doc": "SubscribeAgentPulse registers fn to run on viewport-only agent pulse ticks and returns an unsubscribe function.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 625
            },
            {
              "name": "SubscribeCanvasSize",
              "anchor": "Editor.SubscribeCanvasSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubscribeCanvasSize(fn func()) func()",
              "doc": "SubscribeCanvasSize registers fn to run whenever SetCanvasSize records new viewport dimensions,\nreturning an unsubscribe function. Unlike Subscribe, it fires without bumping Editor.Revision.\n",
              "file": "pkg/editor/view2d.go",
              "line": 62
            },
            {
              "name": "SubscribePointer",
              "anchor": "Editor.SubscribePointer",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubscribePointer(fn func()) func()",
              "doc": "SubscribePointer registers fn to run when the viewport pointer coordinate changes and returns an unsubscribe func.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 226
            },
            {
              "name": "SubscribeTileAnim",
              "anchor": "Editor.SubscribeTileAnim",
              "recv": "*Editor",
              "decl": "func (e *Editor) SubscribeTileAnim(fn func()) func()",
              "doc": "SubscribeTileAnim registers fn to run on edit-mode tile animation ticks and returns an unsubscribe function.\n",
              "file": "pkg/editor/state.go",
              "line": 1155
            },
            {
              "name": "SuggestedChip",
              "anchor": "Editor.SuggestedChip",
              "recv": "*Editor",
              "decl": "func (e *Editor) SuggestedChip() (AgentContextChip, bool)",
              "doc": "SuggestedChip returns a suggested chip for the currently selected object when one is selected\nand not yet attached, or (zero, false). Selecting an object ONLY suggests a chip; nothing joins\nthe request unless the person explicitly adds it.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1462
            },
            {
              "name": "SuggestedProjectRules",
              "anchor": "Editor.SuggestedProjectRules",
              "recv": "*Editor",
              "decl": "func (e *Editor) SuggestedProjectRules() []SuggestedProjectRule",
              "doc": "SuggestedProjectRules analyzes patterns in the last 30 review outcomes and returns\nsuggested rules for actions that the author consistently reverted and has not yet\nadded to AGENTS.md or dismissed.\n",
              "file": "pkg/editor/brief_rules.go",
              "line": 1053
            },
            {
              "name": "SwapShortcut",
              "anchor": "Editor.SwapShortcut",
              "recv": "*Editor",
              "decl": "func (e *Editor) SwapShortcut(cmdID, newShortcut string) error",
              "doc": "SwapShortcut binds cmdID to newShortcut and, if another command in the same scope already owns\nnewShortcut, assigns cmdID's previous shortcut to that conflicting command so both remain bound.\nWhen Editor.SettingsPath is set, the updated bindings are persisted to disk.\n",
              "file": "pkg/editor/shortcuts.go",
              "line": 385
            },
            {
              "name": "SwitchAgentFallback",
              "anchor": "Editor.SwitchAgentFallback",
              "recv": "*Editor",
              "decl": "func (e *Editor) SwitchAgentFallback(turnID string) error",
              "doc": "SwitchAgentFallback switches a model-error turn to its fallback agent (e.g. Claude Code) and retries.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 1204
            },
            {
              "name": "SwitchAgentTurnToAlternative",
              "anchor": "Editor.SwitchAgentTurnToAlternative",
              "recv": "*Editor",
              "decl": "func (e *Editor) SwitchAgentTurnToAlternative(turnID string) error",
              "doc": "SwitchAgentTurnToAlternative switches the task kind of a turn experiencing a model error to another connected agent\n(updating WHO DOES WHAT in EditorSettings) and immediately runs the request on that agent.\nRefused with ErrAgentSettingsYouOnly if invoked by an agent.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 795
            },
            {
              "name": "SyncReviewPersonEdits",
              "anchor": "Editor.SyncReviewPersonEdits",
              "recv": "*Editor",
              "decl": "func (e *Editor) SyncReviewPersonEdits()",
              "doc": "SyncReviewPersonEdits explicitly synchronizes the pending review turn against the editor's open scene Doc\n(useful after direct in-memory edits or external disk reloads).\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 192
            },
            {
              "name": "T",
              "anchor": "Editor.T",
              "recv": "*Editor",
              "decl": "func (e *Editor) T(key string, args ...l10n.Arg) string",
              "doc": "T translates key in the editor's active language using the editor's localization catalog.\n",
              "file": "pkg/editor/i18n.go",
              "line": 96
            },
            {
              "name": "TabCount",
              "anchor": "Editor.TabCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) TabCount() int",
              "doc": "TabCount returns the number of open scene tabs.\n",
              "file": "pkg/editor/tabs.go",
              "line": 466
            },
            {
              "name": "TabDirty",
              "anchor": "Editor.TabDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) TabDirty(index int) bool",
              "doc": "TabDirty reports whether the scene in tab index has unsaved edits.\n",
              "file": "pkg/editor/tabs.go",
              "line": 475
            },
            {
              "name": "Tabs",
              "anchor": "Editor.Tabs",
              "recv": "*Editor",
              "decl": "func (e *Editor) Tabs() []SceneTab",
              "doc": "Tabs returns a snapshot of all open scene tabs in display order.\n",
              "file": "pkg/editor/tabs.go",
              "line": 419
            },
            {
              "name": "TakeAllAgentMergeSuggestions",
              "anchor": "Editor.TakeAllAgentMergeSuggestions",
              "recv": "*Editor",
              "decl": "func (e *Editor) TakeAllAgentMergeSuggestions() error",
              "doc": "TakeAllAgentMergeSuggestions selects MergeChoiceAgent for every conflict item in the active session.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 504
            },
            {
              "name": "TakeCheckpointBeforeAutomation",
              "anchor": "Editor.TakeCheckpointBeforeAutomation",
              "recv": "*Editor",
              "decl": "func (e *Editor) TakeCheckpointBeforeAutomation(title string, files ...string) (*CheckpointSummary, error)",
              "doc": "TakeCheckpointBeforeAutomation takes a persistent checkpoint under .nsgo/checkpoints/ immediately\nbefore an automation runs. When files is empty, the open scene(s) and game.yaml are captured.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1063
            },
            {
              "name": "TakeCheckpointBeforeTask",
              "anchor": "Editor.TakeCheckpointBeforeTask",
              "recv": "*Editor",
              "decl": "func (e *Editor) TakeCheckpointBeforeTask(title string, files ...string) (*CheckpointSummary, error)",
              "doc": "TakeCheckpointBeforeTask takes a persistent checkpoint under .nsgo/checkpoints/ immediately\nbefore an autonomous background task starts. When files is empty, the open scene(s) and game.yaml\nare captured. Any active turn must be ended first.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1057
            },
            {
              "name": "Task",
              "anchor": "Editor.Task",
              "recv": "*Editor",
              "decl": "func (e *Editor) Task(id string) (AgentTask, bool)",
              "doc": "Task returns the task with id, if present.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1006
            },
            {
              "name": "TaskComposerDraft",
              "anchor": "Editor.TaskComposerDraft",
              "recv": "*Editor",
              "decl": "func (e *Editor) TaskComposerDraft() string",
              "doc": "TaskComposerDraft returns the current prompt draft in the Tasks panel composer.\n",
              "file": "pkg/editor/tasks.go",
              "line": 889
            },
            {
              "name": "TaskComposerHint",
              "anchor": "Editor.TaskComposerHint",
              "recv": "*Editor",
              "decl": "func (e *Editor) TaskComposerHint() string",
              "doc": "TaskComposerHint returns the contextual Queue / Run in parallel hint shown under the composer.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2754
            },
            {
              "name": "TaskComposerMode",
              "anchor": "Editor.TaskComposerMode",
              "recv": "*Editor",
              "decl": "func (e *Editor) TaskComposerMode() TaskStartMode",
              "doc": "TaskComposerMode returns the selected start mode (Queue or Run in parallel) in the Tasks composer.\n",
              "file": "pkg/editor/tasks.go",
              "line": 861
            },
            {
              "name": "TaskDismissSelected",
              "anchor": "Editor.TaskDismissSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) TaskDismissSelected(id string) bool",
              "doc": "TaskDismissSelected reports whether task id is currently checked for bulk dismissal.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2455
            },
            {
              "name": "TaskDockBadgeCount",
              "anchor": "Editor.TaskDockBadgeCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) TaskDockBadgeCount() int",
              "doc": "TaskDockBadgeCount returns NeedsYou + ReadyToReview + Failed (running and queued never add to it).\n",
              "file": "pkg/editor/tasks.go",
              "line": 2584
            },
            {
              "name": "TaskElapsedString",
              "anchor": "Editor.TaskElapsedString",
              "recv": "*Editor",
              "decl": "func (e *Editor) TaskElapsedString(t AgentTask) string",
              "doc": "TaskElapsedString formats a task's elapsed time (e.g. \"0:38\") or fixed TimeLabel (e.g. \"02:00\").\n",
              "file": "pkg/editor/tasks.go",
              "line": 2589
            },
            {
              "name": "TaskStatusParts",
              "anchor": "Editor.TaskStatusParts",
              "recv": "*Editor",
              "decl": "func (e *Editor) TaskStatusParts() []TaskStatusPart",
              "doc": "TaskStatusParts builds the exact status bar indicator segments defined in docs/design/editor/Tasks.dc.html:\n  - Idle: \"No tasks\"\n  - Single running task (and nothing else active): \"1 running · M:SS\"\n  - Mixed: non-zero counts in urgency order (Failed, Needs you, Running, Ready to review, Queued); zero counts drop out.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2621
            },
            {
              "name": "TaskSummary",
              "anchor": "Editor.TaskSummary",
              "recv": "*Editor",
              "decl": "func (e *Editor) TaskSummary() TaskSummary",
              "doc": "TaskSummary returns the live counts across the five task groups plus the DockBadge count\n(NeedsYou + ReadyToReview + Failed; running and queued never add to the badge) and MostUrgent state.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2534
            },
            {
              "name": "Tasks",
              "anchor": "Editor.Tasks",
              "recv": "*Editor",
              "decl": "func (e *Editor) Tasks() []AgentTask",
              "doc": "Tasks returns a snapshot copy of all tasks in creation/queue order.\n",
              "file": "pkg/editor/tasks.go",
              "line": 959
            },
            {
              "name": "TasksInState",
              "anchor": "Editor.TasksInState",
              "recv": "*Editor",
              "decl": "func (e *Editor) TasksInState(state TaskState) []AgentTask",
              "doc": "TasksInState returns all visible (non-dismissed) tasks currently in state.\n",
              "file": "pkg/editor/tasks.go",
              "line": 989
            },
            {
              "name": "TasksListExpanded",
              "anchor": "Editor.TasksListExpanded",
              "recv": "*Editor",
              "decl": "func (e *Editor) TasksListExpanded() bool",
              "doc": "TasksListExpanded reports whether the Tasks section inside the Agent panel is expanded.\n",
              "file": "pkg/editor/tasks.go",
              "line": 827
            },
            {
              "name": "TasksPanelOpen",
              "anchor": "Editor.TasksPanelOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) TasksPanelOpen() bool",
              "doc": "TasksPanelOpen reports whether the Agent / Background Tasks panel is currently open.\n",
              "file": "pkg/editor/tasks.go",
              "line": 788
            },
            {
              "name": "Terrain",
              "anchor": "Editor.Terrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) Terrain() *world3d.Heightmap",
              "doc": "Terrain returns the open runtime [*world3d.Heightmap], or nil when no terrain is open.\n",
              "file": "pkg/editor/terrain.go",
              "line": 335
            },
            {
              "name": "TerrainBrush",
              "anchor": "Editor.TerrainBrush",
              "recv": "*Editor",
              "decl": "func (e *Editor) TerrainBrush() TerrainBrush",
              "doc": "TerrainBrush returns the current terrain brush configuration.\n",
              "file": "pkg/editor/terrain.go",
              "line": 367
            },
            {
              "name": "TerrainDirty",
              "anchor": "Editor.TerrainDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) TerrainDirty() bool",
              "doc": "TerrainDirty reports whether the open terrain has unsaved sculpt, paint, or metadata edits.\n",
              "file": "pkg/editor/terrain.go",
              "line": 359
            },
            {
              "name": "TerrainDoc",
              "anchor": "Editor.TerrainDoc",
              "recv": "*Editor",
              "decl": "func (e *Editor) TerrainDoc() *world3d.TerrainDoc",
              "doc": "TerrainDoc returns the open [*world3d.TerrainDoc], or nil when no terrain is open.\n",
              "file": "pkg/editor/terrain.go",
              "line": 343
            },
            {
              "name": "TerrainFoliageDensity",
              "anchor": "Editor.TerrainFoliageDensity",
              "recv": "*Editor",
              "decl": "func (e *Editor) TerrainFoliageDensity(name string) *world3d.DensityMap",
              "doc": "TerrainFoliageDensity returns the current [*world3d.DensityMap] for the named foliage layer, or nil.\n",
              "file": "pkg/editor/terrain.go",
              "line": 446
            },
            {
              "name": "TerrainOpen",
              "anchor": "Editor.TerrainOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) TerrainOpen() bool",
              "doc": "TerrainOpen reports whether a terrain is currently open for sculpting and painting.\n",
              "file": "pkg/editor/terrain.go",
              "line": 330
            },
            {
              "name": "TerrainPath",
              "anchor": "Editor.TerrainPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) TerrainPath() string",
              "doc": "TerrainPath returns the OS file path of the open *.terrain.yaml, or \"\" when unsaved/in-memory.\n",
              "file": "pkg/editor/terrain.go",
              "line": 351
            },
            {
              "name": "TerrainSplatMaps",
              "anchor": "Editor.TerrainSplatMaps",
              "recv": "*Editor",
              "decl": "func (e *Editor) TerrainSplatMaps() (splat0, splat1 *image.NRGBA)",
              "doc": "TerrainSplatMaps returns RGBA [*image.NRGBA] splat map images reflecting the current painted weights.\n",
              "file": "pkg/editor/terrain.go",
              "line": 438
            },
            {
              "name": "TerrainStrokeActive",
              "anchor": "Editor.TerrainStrokeActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) TerrainStrokeActive() bool",
              "doc": "TerrainStrokeActive reports whether a terrain brush stroke is currently in progress.\n",
              "file": "pkg/editor/terrain.go",
              "line": 1026
            },
            {
              "name": "TerrainWeightMap",
              "anchor": "Editor.TerrainWeightMap",
              "recv": "*Editor",
              "decl": "func (e *Editor) TerrainWeightMap(layer int) *image.Gray",
              "doc": "TerrainWeightMap returns an 8-bit grayscale image of layer's current painted weights, or nil.\n",
              "file": "pkg/editor/terrain.go",
              "line": 420
            },
            {
              "name": "TileAnimRevision",
              "anchor": "Editor.TileAnimRevision",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileAnimRevision() uint64",
              "doc": "TileAnimRevision returns a monotonically increasing counter bumped on edit-mode tile animation ticks without bumping Revision.\n",
              "file": "pkg/editor/state.go",
              "line": 1147
            },
            {
              "name": "TileAtlasNames",
              "anchor": "Editor.TileAtlasNames",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileAtlasNames() []string",
              "doc": "TileAtlasNames returns the names of atlases advertised by the editor's Resolver that contain at least one canonical positive integer tile frame (\"1\", \"2\", ...), in sorted order.\n",
              "file": "pkg/editor/tilemap_setup.go",
              "line": 41
            },
            {
              "name": "TileClipboard",
              "anchor": "Editor.TileClipboard",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileClipboard() (TileStamp, bool)",
              "doc": "TileClipboard returns a copy of the tile region clipboard (set by CopyTileRegion or CutTileRegion), and whether it is non-empty.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 167
            },
            {
              "name": "TilePalette",
              "anchor": "Editor.TilePalette",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilePalette() TilePalette",
              "doc": "TilePalette returns the palette of the active layer: the frames of its inline tilemap's tileset atlas whose names are tile IDs, or for a layered grid the tiles of its YAML tileset (up to the first 16384), in ID order, at the tilemap's tile size. A layer with no inline tilemap (none, or an external Tiled or LDtk map, which the editor does not paint), a tileset the Resolver cannot resolve and a tileset with no tile frames give a palette with no tiles and a Message saying so. A layered grid's tileset is read through the Resolver's sceneformat.FileResolver, and its image through its sceneformat.ImageResolver when it has one.\n",
              "file": "pkg/editor/tilepalette.go",
              "line": 140
            },
            {
              "name": "TilePreview",
              "anchor": "Editor.TilePreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilePreview() []TilePreviewCell",
              "doc": "TilePreview returns the cells currently previewed by an in-progress brush stroke before release, in deterministic row-major order.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 942
            },
            {
              "name": "TileReviewFocusedRegion",
              "anchor": "Editor.TileReviewFocusedRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewFocusedRegion() string",
              "doc": "TileReviewFocusedRegion returns the ID of the currently focused tile review region, or \"\".\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1862
            },
            {
              "name": "TileReviewHandleKeyEvent",
              "anchor": "Editor.TileReviewHandleKeyEvent",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewHandleKeyEvent(ev core.KeyEvent, down bool) bool",
              "doc": "TileReviewHandleKeyEvent handles keyboard shortcuts for an open tile review:\nhold B to peek Before (ignoring modifier chords and Play mode).\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1935
            },
            {
              "name": "TileReviewKeptCount",
              "anchor": "Editor.TileReviewKeptCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewKeptCount() (kept, total int)",
              "doc": "TileReviewKeptCount returns how many regions are currently marked kept and the total number of regions.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1836
            },
            {
              "name": "TileReviewLayer",
              "anchor": "Editor.TileReviewLayer",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewLayer() (layer, tileLayer string)",
              "doc": "TileReviewLayer returns the scene layer and layered tile sub-layer currently under review.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1807
            },
            {
              "name": "TileReviewOpen",
              "anchor": "Editor.TileReviewOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewOpen() bool",
              "doc": "TileReviewOpen reports whether a region-based tile edit review is currently open.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1802
            },
            {
              "name": "TileReviewPeekingBefore",
              "anchor": "Editor.TileReviewPeekingBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewPeekingBefore() bool",
              "doc": "TileReviewPeekingBefore reports whether hold-B Before peek is active.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1897
            },
            {
              "name": "TileReviewRegions",
              "anchor": "Editor.TileReviewRegions",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewRegions() []TileReviewRegion",
              "doc": "TileReviewRegions returns a copy of the pending tile review regions in deterministic order.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1815
            },
            {
              "name": "TileReviewShowingBefore",
              "anchor": "Editor.TileReviewShowingBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewShowingBefore() bool",
              "doc": "TileReviewShowingBefore reports whether the viewport is currently showing the pre-review Before state\n(either because Before is selected or because B is held to peek).\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1892
            },
            {
              "name": "TileReviewSteps",
              "anchor": "Editor.TileReviewSteps",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewSteps() []TileReviewStep",
              "doc": "TileReviewSteps returns a copy of the agent steps recorded in the active tile review.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1828
            },
            {
              "name": "TileReviewTotalCells",
              "anchor": "Editor.TileReviewTotalCells",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileReviewTotalCells() int",
              "doc": "TileReviewTotalCells returns the total number of changed cells across all pending review regions.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1850
            },
            {
              "name": "TileSelection",
              "anchor": "Editor.TileSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileSelection() (TileRect, bool)",
              "doc": "TileSelection returns the currently selected tile region on the active layer, and whether one is active.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 195
            },
            {
              "name": "TileStamp",
              "anchor": "Editor.TileStamp",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileStamp() (TileStamp, bool)",
              "doc": "TileStamp returns a copy of the active stamp pattern, and whether one is set.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 136
            },
            {
              "name": "TileStrokeActive",
              "anchor": "Editor.TileStrokeActive",
              "recv": "*Editor",
              "decl": "func (e *Editor) TileStrokeActive() (TileStrokeMode, bool)",
              "doc": "TileStrokeActive reports whether a tile stroke is under way, and its mode.\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 400
            },
            {
              "name": "TilesetAnimPlaying",
              "anchor": "Editor.TilesetAnimPlaying",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetAnimPlaying() bool",
              "doc": "TilesetAnimPlaying reports whether the Tileset Editor's tile animation preview is currently playing.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1373
            },
            {
              "name": "TilesetAnimPreviewTile",
              "anchor": "Editor.TilesetAnimPreviewTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetAnimPreviewTile() int",
              "doc": "TilesetAnimPreviewTile returns the local tile ID currently displayed by the Tileset Editor's animation preview for the selected tile.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1378
            },
            {
              "name": "TilesetDirty",
              "anchor": "Editor.TilesetDirty",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetDirty() bool",
              "doc": "TilesetDirty reports whether the open tileset differs from what it was opened from or last saved to.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 132
            },
            {
              "name": "TilesetDoc",
              "anchor": "Editor.TilesetDoc",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetDoc() *tilemap.TilesetDoc",
              "doc": "TilesetDoc returns a deep copy of the tileset document open in the Tileset Editor, or nil.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 124
            },
            {
              "name": "TilesetDraftPolygon",
              "anchor": "Editor.TilesetDraftPolygon",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetDraftPolygon() [][2]float32",
              "doc": "TilesetDraftPolygon returns a copy of the polygon vertices currently being drawn over the tile canvas.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 997
            },
            {
              "name": "TilesetEditMask",
              "anchor": "Editor.TilesetEditMask",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetEditMask() uint8",
              "doc": "TilesetEditMask returns the 8-bit neighbor mask currently shown in the Tileset Editor's 3x3 edge/corner editor for the selected tile.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 165
            },
            {
              "name": "TilesetError",
              "anchor": "Editor.TilesetError",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetError() error",
              "doc": "TilesetError returns the most recent validation or save error from the Tileset Editor, or nil.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 141
            },
            {
              "name": "TilesetMaskConflictTile",
              "anchor": "Editor.TilesetMaskConflictTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetMaskConflictTile() int",
              "doc": "TilesetMaskConflictTile returns the local tile ID that already owns TilesetEditMask in the selected terrain, or -1 when there is no conflict.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 173
            },
            {
              "name": "TilesetOpen",
              "anchor": "Editor.TilesetOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetOpen() bool",
              "doc": "TilesetOpen reports whether the Tileset Editor panel has a YAML tileset open.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 108
            },
            {
              "name": "TilesetPath",
              "anchor": "Editor.TilesetPath",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetPath() string",
              "doc": "TilesetPath returns the file path or name of the open tileset, or \"\".\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 113
            },
            {
              "name": "TilesetSelectedShape",
              "anchor": "Editor.TilesetSelectedShape",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetSelectedShape() int",
              "doc": "TilesetSelectedShape returns the index of the selected collision shape on the selected tile, or -1.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 975
            },
            {
              "name": "TilesetSelectedTerrain",
              "anchor": "Editor.TilesetSelectedTerrain",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetSelectedTerrain() string",
              "doc": "TilesetSelectedTerrain returns the name of the terrain set currently selected in the Tileset Editor, or \"\".\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 149
            },
            {
              "name": "TilesetSelectedTile",
              "anchor": "Editor.TilesetSelectedTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetSelectedTile() int",
              "doc": "TilesetSelectedTile returns the local tile ID currently selected in the Tileset Editor, or -1 when closed.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 157
            },
            {
              "name": "TilesetShapeTool",
              "anchor": "Editor.TilesetShapeTool",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetShapeTool() TilesetShapeTool",
              "doc": "TilesetShapeTool returns the active collision shape drawing tool (rect or polygon).\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 954
            },
            {
              "name": "TilesetTab",
              "anchor": "Editor.TilesetTab",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetTab() TilesetEditorTab",
              "doc": "TilesetTab returns the active tab of the Tileset Editor panel.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 924
            },
            {
              "name": "TilesetTileInfo",
              "anchor": "Editor.TilesetTileInfo",
              "recv": "*Editor",
              "decl": "func (e *Editor) TilesetTileInfo(tileID int) (tilemap.TileDoc, bool)",
              "doc": "TilesetTileInfo returns a deep copy of tileID's TileDoc in the open tileset and whether the tileset has explicit data for it.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1052
            },
            {
              "name": "ToastMessage",
              "anchor": "Editor.ToastMessage",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToastMessage() string",
              "doc": "ToastMessage returns the currently displayed viewport toast message, or \"\" when hidden.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 854
            },
            {
              "name": "ToastRemaining",
              "anchor": "Editor.ToastRemaining",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToastRemaining() time.Duration",
              "doc": "ToastRemaining returns the active toast's remaining auto-dismiss duration, or 0 if no toast\nis active or the active toast stays until dismissed/retried/completed (error or progress).\n",
              "file": "pkg/editor/toasts.go",
              "line": 553
            },
            {
              "name": "ToastTimerPaused",
              "anchor": "Editor.ToastTimerPaused",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToastTimerPaused() bool",
              "doc": "ToastTimerPaused reports whether the active toast's auto-dismiss countdown is currently paused\ndue to pointer hover, touch, keyboard focus inside the toast, or the window going to the\nbackground/inactive state.\n",
              "file": "pkg/editor/toasts.go",
              "line": 544
            },
            {
              "name": "ToggleAgentPointing",
              "anchor": "Editor.ToggleAgentPointing",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleAgentPointing(turnID string)",
              "doc": "ToggleAgentPointing enters or exits viewport pointing mode (\"Let me point\") for turnID.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 785
            },
            {
              "name": "ToggleAgentRequestExpanded",
              "anchor": "Editor.ToggleAgentRequestExpanded",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleAgentRequestExpanded(reqID string)",
              "doc": "ToggleAgentRequestExpanded expands reqID if collapsed, or collapses it if already expanded.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1053
            },
            {
              "name": "ToggleAgentRewindPopover",
              "anchor": "Editor.ToggleAgentRewindPopover",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleAgentRewindPopover(turnID string) bool",
              "doc": "ToggleAgentRewindPopover opens the rewind popover for turnID, or closes it if already open for turnID.\n",
              "file": "pkg/editor/agent_rewind.go",
              "line": 455
            },
            {
              "name": "ToggleAgentSwitcher",
              "anchor": "Editor.ToggleAgentSwitcher",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleAgentSwitcher()",
              "doc": "ToggleAgentSwitcher toggles the thread switcher popover.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1009
            },
            {
              "name": "ToggleAgentTurnChange",
              "anchor": "Editor.ToggleAgentTurnChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleAgentTurnChange(changeID string) error",
              "doc": "ToggleAgentTurnChange reverts changeID if active, or restores it if reverted.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 1661
            },
            {
              "name": "ToggleAssetAudioPreview",
              "anchor": "Editor.ToggleAssetAudioPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleAssetAudioPreview(relPath string) error",
              "doc": "ToggleAssetAudioPreview plays or stops the audio asset at relPath in the right-panel preview.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1652
            },
            {
              "name": "ToggleAssetDrawerStatusFilter",
              "anchor": "Editor.ToggleAssetDrawerStatusFilter",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleAssetDrawerStatusFilter(filter AssetStatusFilter)",
              "doc": "ToggleAssetDrawerStatusFilter toggles filter on or off.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 465
            },
            {
              "name": "ToggleChangeIncluded",
              "anchor": "Editor.ToggleChangeIncluded",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleChangeIncluded(filePath string) error",
              "doc": "ToggleChangeIncluded toggles whether the changed file at path is included in the next commit.\n",
              "file": "pkg/editor/changes.go",
              "line": 1880
            },
            {
              "name": "ToggleCommandPalette",
              "anchor": "Editor.ToggleCommandPalette",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleCommandPalette()",
              "doc": "ToggleCommandPalette toggles the Command Palette dialog open or closed.\n",
              "file": "pkg/editor/palette.go",
              "line": 71
            },
            {
              "name": "ToggleContextBreakdown",
              "anchor": "Editor.ToggleContextBreakdown",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleContextBreakdown() bool",
              "doc": "ToggleContextBreakdown toggles the context ring breakdown popover.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 2545
            },
            {
              "name": "ToggleCutsceneReviewChange",
              "anchor": "Editor.ToggleCutsceneReviewChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleCutsceneReviewChange(index int) error",
              "doc": "ToggleCutsceneReviewChange toggles change index between kept (Revert button) and reverted (Restore button).\n",
              "file": "pkg/editor/cutscene.go",
              "line": 1154
            },
            {
              "name": "ToggleDataTableReviewRecord",
              "anchor": "Editor.ToggleDataTableReviewRecord",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleDataTableReviewRecord(key string) error",
              "doc": "ToggleDataTableReviewRecord toggles record key between reverted and kept, marking the agent's checks out of date.\n",
              "file": "pkg/editor/datatable_review.go",
              "line": 1359
            },
            {
              "name": "ToggleEditorSettings",
              "anchor": "Editor.ToggleEditorSettings",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleEditorSettings()",
              "doc": "ToggleEditorSettings toggles the Settings view's General (editor preferences) page open or closed.\n",
              "file": "pkg/editor/settings.go",
              "line": 1177
            },
            {
              "name": "ToggleEnvironmentPanel",
              "anchor": "Editor.ToggleEnvironmentPanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleEnvironmentPanel() bool",
              "doc": "ToggleEnvironmentPanel toggles the Scene Environment panel and reports its new open state.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 559
            },
            {
              "name": "ToggleExportBuildTarget",
              "anchor": "Editor.ToggleExportBuildTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleExportBuildTarget(target string)",
              "doc": "ToggleExportBuildTarget toggles target in the Export panel's chosen build target subset.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 618
            },
            {
              "name": "ToggleExportPresetTarget",
              "anchor": "Editor.ToggleExportPresetTarget",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleExportPresetTarget(platform, target string) error",
              "doc": "ToggleExportPresetTarget adds or removes target on platform's export preset in canonical project.TargetsOf(platform) order through EditProject.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 483
            },
            {
              "name": "ToggleFirstRunReviewChange",
              "anchor": "Editor.ToggleFirstRunReviewChange",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleFirstRunReviewChange(id string) bool",
              "doc": "ToggleFirstRunReviewChange toggles a single change entry between kept and reverted in the First Review.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2463
            },
            {
              "name": "ToggleFocusedReviewRevert",
              "anchor": "Editor.ToggleFocusedReviewRevert",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleFocusedReviewRevert() bool",
              "doc": "ToggleFocusedReviewRevert implements the X shortcut in Review scope:\nreverts or restores the focused file group, kind group, or change card.\n",
              "file": "pkg/editor/review.go",
              "line": 3117
            },
            {
              "name": "ToggleGizmoSpace3D",
              "anchor": "Editor.ToggleGizmoSpace3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleGizmoSpace3D() GizmoSpace3D",
              "doc": "ToggleGizmoSpace3D switches the 3D transform gizmo between Global (world) and Local (object) axes and returns the active space.\n",
              "file": "pkg/editor/state.go",
              "line": 1464
            },
            {
              "name": "ToggleHUDOverlay",
              "anchor": "Editor.ToggleHUDOverlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleHUDOverlay(name string)",
              "doc": "ToggleHUDOverlay flips one overlay by name (\"safe\", \"anchors\", \"touch\", or \"focus\").\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 932
            },
            {
              "name": "ToggleHistoryPanel",
              "anchor": "Editor.ToggleHistoryPanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleHistoryPanel()",
              "doc": "ToggleHistoryPanel toggles the History timeline panel open or closed.\n",
              "file": "pkg/editor/history_timeline.go",
              "line": 159
            },
            {
              "name": "ToggleInspectorSection",
              "anchor": "Editor.ToggleInspectorSection",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleInspectorSection(sectionID string) bool",
              "doc": "ToggleInspectorSection flips the collapsed state of the titled inspector section id and\nreports whether the section is now expanded.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 153
            },
            {
              "name": "ToggleLookThroughCamera3D",
              "anchor": "Editor.ToggleLookThroughCamera3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleLookThroughCamera3D() bool",
              "doc": "ToggleLookThroughCamera3D switches between the orbit camera and the scene's active 3D camera.\nReturns true if looking through the scene camera afterwards.\n",
              "file": "pkg/editor/scene3d_edit.go",
              "line": 485
            },
            {
              "name": "ToggleMentionPicker",
              "anchor": "Editor.ToggleMentionPicker",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleMentionPicker()",
              "doc": "ToggleMentionPicker toggles the @-mention picker open or closed (clicking the @ button).\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 538
            },
            {
              "name": "ToggleObjectHidden",
              "anchor": "Editor.ToggleObjectHidden",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleObjectHidden(id string) (bool, error)",
              "doc": "ToggleObjectHidden toggles whether object id is hidden in the 2D and 3D viewports for this session.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 609
            },
            {
              "name": "ToggleObjectLocked",
              "anchor": "Editor.ToggleObjectLocked",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleObjectLocked(id string) (bool, error)",
              "doc": "ToggleObjectLocked toggles whether object id is locked against picking and manipulation in the viewports.\n",
              "file": "pkg/editor/context_menu.go",
              "line": 624
            },
            {
              "name": "ToggleOverlayKind",
              "anchor": "Editor.ToggleOverlayKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleOverlayKind(kind OverlayKind) error",
              "doc": "ToggleOverlayKind flips one legend kind between visible and hidden and persists to SettingsPath when set.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 959
            },
            {
              "name": "ToggleOverlayLegendKind",
              "anchor": "Editor.ToggleOverlayLegendKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleOverlayLegendKind(kind OverlayLegendKind) error",
              "doc": "ToggleOverlayLegendKind flips the Spec overlay legend row kind between shown and hidden\nand persists the choice in the editor's settings file when SettingsPath is configured.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 798
            },
            {
              "name": "ToggleOverlaysPopover",
              "anchor": "Editor.ToggleOverlaysPopover",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleOverlaysPopover()",
              "doc": "ToggleOverlaysPopover toggles the viewport Overlays popover open or closed.\n",
              "file": "pkg/editor/overlays.go",
              "line": 530
            },
            {
              "name": "TogglePanel",
              "anchor": "Editor.TogglePanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) TogglePanel(key string)",
              "doc": "TogglePanel toggles panel key's visibility in the dock area.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 1498
            },
            {
              "name": "ToggleParticleFrame",
              "anchor": "Editor.ToggleParticleFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleParticleFrame(frameName string) error",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 1010
            },
            {
              "name": "TogglePermissionsDraftRule",
              "anchor": "Editor.TogglePermissionsDraftRule",
              "recv": "*Editor",
              "decl": "func (e *Editor) TogglePermissionsDraftRule(index int)",
              "doc": "TogglePermissionsDraftRule toggles the checkbox state of rule index in the open permissions draft (person-only).\n",
              "file": "pkg/editor/you_only.go",
              "line": 952
            },
            {
              "name": "TogglePlanGhosts",
              "anchor": "Editor.TogglePlanGhosts",
              "recv": "*Editor",
              "decl": "func (e *Editor) TogglePlanGhosts()",
              "doc": "TogglePlanGhosts flips the viewport's \"Plan ghosts\" toggle.\n",
              "file": "pkg/editor/plan.go",
              "line": 1456
            },
            {
              "name": "TogglePlay",
              "anchor": "Editor.TogglePlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) TogglePlay() error",
              "doc": "TogglePlay starts play-in-editor if stopped, or stops it and restores the pre-play snapshot if playing.\n",
              "file": "pkg/editor/commands.go",
              "line": 2940
            },
            {
              "name": "ToggleRandomBrushTile",
              "anchor": "Editor.ToggleRandomBrushTile",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleRandomBrushTile(tileID int)",
              "doc": "ToggleRandomBrushTile adds tileID (with weight 1) to the random brush pool if absent, or removes it if present.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 382
            },
            {
              "name": "ToggleReviewChangeReverted",
              "anchor": "Editor.ToggleReviewChangeReverted",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleReviewChangeReverted(changeID string) bool",
              "doc": "ToggleReviewChangeReverted toggles reverted state on one change card.\n",
              "file": "pkg/editor/review.go",
              "line": 3007
            },
            {
              "name": "ToggleReviewFileCollapsed",
              "anchor": "Editor.ToggleReviewFileCollapsed",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleReviewFileCollapsed(filePath string)",
              "doc": "ToggleReviewFileCollapsed folds or unfolds filePath in the left list.\n",
              "file": "pkg/editor/review.go",
              "line": 2983
            },
            {
              "name": "ToggleReviewFileReverted",
              "anchor": "Editor.ToggleReviewFileReverted",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleReviewFileReverted(filePath string) bool",
              "doc": "ToggleReviewFileReverted reverts all revertable changes in filePath (or restores them all if already all reverted).\n",
              "file": "pkg/editor/review.go",
              "line": 3032
            },
            {
              "name": "ToggleReviewKindCollapsed",
              "anchor": "Editor.ToggleReviewKindCollapsed",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleReviewKindCollapsed(filePath string, kind ReviewChangeKind)",
              "doc": "ToggleReviewKindCollapsed folds or unfolds kind within filePath in the left list.\n",
              "file": "pkg/editor/review.go",
              "line": 2996
            },
            {
              "name": "ToggleReviewKindReverted",
              "anchor": "Editor.ToggleReviewKindReverted",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleReviewKindReverted(filePath string, kind ReviewChangeKind) bool",
              "doc": "ToggleReviewKindReverted reverts (or restores) all changes of kind within filePath.\n",
              "file": "pkg/editor/review.go",
              "line": 3074
            },
            {
              "name": "ToggleReviewOverlayLegend",
              "anchor": "Editor.ToggleReviewOverlayLegend",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleReviewOverlayLegend(kind string)",
              "doc": "ToggleReviewOverlayLegend toggles visibility of one overlay kind (\"added\", \"changed\", \"removed\", \"selected\") in the Review viewport legend.\n",
              "file": "pkg/editor/review.go",
              "line": 2587
            },
            {
              "name": "ToggleReviewPeekBefore",
              "anchor": "Editor.ToggleReviewPeekBefore",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleReviewPeekBefore()",
              "doc": "ToggleReviewPeekBefore flips Before-request peek mode.\n",
              "file": "pkg/editor/review.go",
              "line": 3148
            },
            {
              "name": "ToggleSelectObject",
              "anchor": "Editor.ToggleSelectObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleSelectObject(id string) bool",
              "doc": "ToggleSelectObject adds id to the current object selection if absent, or removes it if present.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 152
            },
            {
              "name": "ToggleSelection",
              "anchor": "Editor.ToggleSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleSelection(id string) bool",
              "doc": "ToggleSelection removes id if it is currently selected, or adds it (as primary) if it exists.\n",
              "file": "pkg/editor/selection.go",
              "line": 157
            },
            {
              "name": "ToggleShortcutsSheet",
              "anchor": "Editor.ToggleShortcutsSheet",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleShortcutsSheet()",
              "doc": "ToggleShortcutsSheet toggles the ⌘/ Keyboard Shortcuts reference sheet open or closed.\n",
              "file": "pkg/editor/settings.go",
              "line": 1280
            },
            {
              "name": "ToggleSketch",
              "anchor": "Editor.ToggleSketch",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleSketch()",
              "doc": "ToggleSketch toggles viewport sketch drawing mode on or off.\n",
              "file": "pkg/editor/sketch.go",
              "line": 520
            },
            {
              "name": "ToggleSketchMarksHidden",
              "anchor": "Editor.ToggleSketchMarksHidden",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleSketchMarksHidden()",
              "doc": "ToggleSketchMarksHidden flips whether sketch marks are temporarily hidden on the viewport.\n",
              "file": "pkg/editor/sketch.go",
              "line": 642
            },
            {
              "name": "ToggleSketchPreview",
              "anchor": "Editor.ToggleSketchPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleSketchPreview()",
              "doc": "ToggleSketchPreview toggles the \"Sent with this request\" preview card.\n",
              "file": "pkg/editor/sketch.go",
              "line": 689
            },
            {
              "name": "ToggleSketchReviewOverlay",
              "anchor": "Editor.ToggleSketchReviewOverlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleSketchReviewOverlay()",
              "doc": "ToggleSketchReviewOverlay flips the Sketch overlay visibility during review.\n",
              "file": "pkg/editor/sketch.go",
              "line": 1533
            },
            {
              "name": "ToggleTaskDismissSelection",
              "anchor": "Editor.ToggleTaskDismissSelection",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleTaskDismissSelection(id string)",
              "doc": "ToggleTaskDismissSelection toggles whether a Ready to review task is checked for bulk dismissal.\n",
              "file": "pkg/editor/tasks.go",
              "line": 2447
            },
            {
              "name": "ToggleTasksListExpanded",
              "anchor": "Editor.ToggleTasksListExpanded",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleTasksListExpanded()",
              "doc": "ToggleTasksListExpanded flips the expanded state of the Tasks list inside the Agent panel.\n",
              "file": "pkg/editor/tasks.go",
              "line": 853
            },
            {
              "name": "ToggleTasksPanel",
              "anchor": "Editor.ToggleTasksPanel",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleTasksPanel()",
              "doc": "ToggleTasksPanel toggles the Agent / Background Tasks panel open or closed.\n",
              "file": "pkg/editor/tasks.go",
              "line": 819
            },
            {
              "name": "ToggleTileReviewRegion",
              "anchor": "Editor.ToggleTileReviewRegion",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleTileReviewRegion(regionID string) error",
              "doc": "ToggleTileReviewRegion flips whether regionID is reverted or restored in the active tile review.\n",
              "file": "pkg/editor/tile_review.go",
              "line": 1987
            },
            {
              "name": "ToggleTilesetEdgeOrCorner",
              "anchor": "Editor.ToggleTilesetEdgeOrCorner",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleTilesetEdgeOrCorner(bit uint8) error",
              "doc": "ToggleTilesetEdgeOrCorner toggles one edge or corner bit (tilemap.MaskNorth .. MaskNorthWest) on the currently selected tile in the selected terrain, maintaining corner-gating rules.\nIf the resulting mask is free (or already owned by the selected tile), it is committed immediately as an undoable edit.\nIf another tile in the same terrain already owns the resulting mask, the editor keeps that other tile untouched, records the conflict (TilesetMaskConflictTile), and updates TilesetEditMask so the user can toggle additional edges/corners or call ReassignTilesetEditMask.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 789
            },
            {
              "name": "ToggleTilesetTileCenter",
              "anchor": "Editor.ToggleTilesetTileCenter",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleTilesetTileCenter() error",
              "doc": "ToggleTilesetTileCenter toggles whether the currently selected tile belongs to the selected terrain:\nif it does, removes it from the terrain; if it does not, assigns it with mask 0 (or flags a conflict if another tile owns mask 0).\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 822
            },
            {
              "name": "ToggleTilesetTileFlagBit",
              "anchor": "Editor.ToggleTilesetTileFlagBit",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleTilesetTileFlagBit(tileID int, bit uint) error",
              "doc": "ToggleTilesetTileFlagBit toggles bit (2..31 for custom bits, 0 for solid, 1 for one-way) on tileID as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1198
            },
            {
              "name": "ToggleViewportImage",
              "anchor": "Editor.ToggleViewportImage",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleViewportImage() bool",
              "doc": "ToggleViewportImage flips the Viewport image chip toggle and returns the new state.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1559
            },
            {
              "name": "ToggleViewportOverlay",
              "anchor": "Editor.ToggleViewportOverlay",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToggleViewportOverlay(id string) error",
              "doc": "ToggleViewportOverlay flips overlay id between on and off and persists to SettingsPath when set.\n",
              "file": "pkg/editor/overlays.go",
              "line": 445
            },
            {
              "name": "ToolEnabled",
              "anchor": "Editor.ToolEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) ToolEnabled(toolName string) bool",
              "doc": "ToolEnabled reports whether the named MCP tool is enabled in Settings › Tools (You-only).\nTools not explicitly disabled default to true; game_delete_file defaults to false.\n",
              "file": "pkg/editor/you_only.go",
              "line": 320
            },
            {
              "name": "TriggerAskAgentShortcut",
              "anchor": "Editor.TriggerAskAgentShortcut",
              "recv": "*Editor",
              "decl": "func (e *Editor) TriggerAskAgentShortcut() error",
              "doc": "TriggerAskAgentShortcut implements ⌘L for the panel composer (Spec.dc.html & Threads.dc.html):\n  - When an object is selected, attaches that object as a chip, focuses the agent composer, and updates AskAgentAboutObject.\n  - When nothing is selected, attaches the whole open scene as a chip and focuses the agent composer.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 410
            },
            {
              "name": "TriggerAssetGenerate",
              "anchor": "Editor.TriggerAssetGenerate",
              "recv": "*Editor",
              "decl": "func (e *Editor) TriggerAssetGenerate()",
              "doc": "TriggerAssetGenerate invokes OnAssetGenerate when configured, or reports ready status.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 2456
            },
            {
              "name": "TriggerAssetImport",
              "anchor": "Editor.TriggerAssetImport",
              "recv": "*Editor",
              "decl": "func (e *Editor) TriggerAssetImport()",
              "doc": "TriggerAssetImport runs OnAssetImport when configured, or opens a native file picker when a scope is attached.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 2421
            },
            {
              "name": "TriggerBeforeExportAutomations",
              "anchor": "Editor.TriggerBeforeExportAutomations",
              "recv": "*Editor",
              "decl": "func (e *Editor) TriggerBeforeExportAutomations(platforms ...string) int",
              "doc": "TriggerBeforeExportAutomations fires any enabled before_export automations matching platforms (or all when none specified).\nReturns the number of background automation tasks started.\n",
              "file": "pkg/editor/automations.go",
              "line": 1581
            },
            {
              "name": "TriggerReplaceMissingAsset",
              "anchor": "Editor.TriggerReplaceMissingAsset",
              "recv": "*Editor",
              "decl": "func (e *Editor) TriggerReplaceMissingAsset(missingPath string)",
              "doc": "TriggerReplaceMissingAsset invokes OnAssetReplaceMissing when configured, or opens a native file picker to replace missingPath.\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 2469
            },
            {
              "name": "TriggerShortcut",
              "anchor": "Editor.TriggerShortcut",
              "recv": "*Editor",
              "decl": "func (e *Editor) TriggerShortcut(shortcut string) bool",
              "doc": "TriggerShortcut finds the highest-priority enabled active command bound to shortcut and runs it.\nIt returns true if a matching enabled command executed.\n",
              "file": "pkg/editor/commands.go",
              "line": 2871
            },
            {
              "name": "TriggerStatesAction",
              "anchor": "Editor.TriggerStatesAction",
              "recv": "*Editor",
              "decl": "func (e *Editor) TriggerStatesAction(action string)",
              "doc": "TriggerStatesAction pulses a one-shot action (such as \"jump\", \"attack\", \"hurt\") for the next fixed step.\n",
              "file": "pkg/editor/states.go",
              "line": 695
            },
            {
              "name": "TroubleshootAgentConnection",
              "anchor": "Editor.TroubleshootAgentConnection",
              "recv": "*Editor",
              "decl": "func (e *Editor) TroubleshootAgentConnection()",
              "doc": "TroubleshootAgentConnection reopens the Connect dialog at the step that failed rather than at the start.\n",
              "file": "pkg/editor/agent.go",
              "line": 1039
            },
            {
              "name": "TryAnotherWayAgentTurn",
              "anchor": "Editor.TryAnotherWayAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) TryAnotherWayAgentTurn(turnID string) error",
              "doc": "TryAnotherWayAgentTurn asks the agent to try an alternative placement/strategy for a partial turn.\n",
              "file": "pkg/editor/agent_states.go",
              "line": 900
            },
            {
              "name": "UnansweredPlanQuestions",
              "anchor": "Editor.UnansweredPlanQuestions",
              "recv": "*Editor",
              "decl": "func (e *Editor) UnansweredPlanQuestions() int",
              "doc": "UnansweredPlanQuestions returns how many clarifying questions in the active plan have no selected option yet.\n",
              "file": "pkg/editor/plan.go",
              "line": 1464
            },
            {
              "name": "Undo",
              "anchor": "Editor.Undo",
              "recv": "*Editor",
              "decl": "func (e *Editor) Undo() bool",
              "doc": "Undo reverts the last edit in History (or follows Checkpoints.dc.html rules during an active agent turn/review, or the last manual edit joined to an open cutscene review; no-op while playing). A step that fails to revert, such as a file move (MoveFile) that something now on disk blocks, stays in place, and the status bar says why.\n",
              "file": "pkg/editor/state.go",
              "line": 1901
            },
            {
              "name": "UndoLastBriefPin",
              "anchor": "Editor.UndoLastBriefPin",
              "recv": "*Editor",
              "decl": "func (e *Editor) UndoLastBriefPin() bool",
              "doc": "UndoLastBriefPin undoes the Pin to brief step via Editor.Undo() only when it is still the latest\ncommand in Editor.History, never silently undoing unrelated later edits.\n",
              "file": "pkg/editor/agent_references.go",
              "line": 1136
            },
            {
              "name": "UndoLastSketchMark",
              "anchor": "Editor.UndoLastSketchMark",
              "recv": "*Editor",
              "decl": "func (e *Editor) UndoLastSketchMark() bool",
              "doc": "UndoLastSketchMark restores the previous sketch mark list without touching SceneDoc or Editor.History.\n",
              "file": "pkg/editor/sketch.go",
              "line": 964
            },
            {
              "name": "UndoPermissionToast",
              "anchor": "Editor.UndoPermissionToast",
              "recv": "*Editor",
              "decl": "func (e *Editor) UndoPermissionToast() error",
              "doc": "UndoPermissionToast reverts the last \"Always\" permission rule addition, restores permissions.yaml (or removes it if it did not exist before), and clears the toast.\n",
              "file": "pkg/editor/permissions.go",
              "line": 1879
            },
            {
              "name": "UndoPickedCandidate",
              "anchor": "Editor.UndoPickedCandidate",
              "recv": "*Editor",
              "decl": "func (e *Editor) UndoPickedCandidate(requestID, candidateID string) error",
              "doc": "UndoPickedCandidate reverts a previously picked generated asset cleanly.\nWhen the pick is still the most recent command in History, it invokes Editor.Undo() directly;\notherwise it executes a targeted undoable revert of ONLY that picked asset and its .source.yaml\nwithout touching unrelated edits on History.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 1695
            },
            {
              "name": "UndoRevertAgentTurn",
              "anchor": "Editor.UndoRevertAgentTurn",
              "recv": "*Editor",
              "decl": "func (e *Editor) UndoRevertAgentTurn() bool",
              "doc": "UndoRevertAgentTurn brings the most recently reverted agent turn back as pending, re-applying all\nnon-reverted changes in memory across every touched file.\n",
              "file": "pkg/editor/agent_turn.go",
              "line": 2236
            },
            {
              "name": "UndoReviewYAMLTyping",
              "anchor": "Editor.UndoReviewYAMLTyping",
              "recv": "*Editor",
              "decl": "func (e *Editor) UndoReviewYAMLTyping(changeID string) error",
              "doc": "UndoReviewYAMLTyping discards the in-progress YAML typing and restores the pre-edit snapshot.\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 522
            },
            {
              "name": "UndoSafeRename",
              "anchor": "Editor.UndoSafeRename",
              "recv": "*Editor",
              "decl": "func (e *Editor) UndoSafeRename() bool",
              "doc": "UndoSafeRename undoes the applied safe rename in one History step, restoring every moved and rewritten file on disk and in open tabs.\n",
              "file": "pkg/editor/usages.go",
              "line": 740
            },
            {
              "name": "UngroupObject",
              "anchor": "Editor.UngroupObject",
              "recv": "*Editor",
              "decl": "func (e *Editor) UngroupObject(id string) ([]string, error)",
              "doc": "UngroupObject lifts every direct child out of object id into id's parent (or layer) while\npreserving each child's world transform, as one undoable step. When id is an empty group\ncontainer with no connections of its own, id itself is removed; otherwise id is kept and its\nchildren are placed immediately after it. It selects and returns the lifted child IDs.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 1687
            },
            {
              "name": "UngroupSelected",
              "anchor": "Editor.UngroupSelected",
              "recv": "*Editor",
              "decl": "func (e *Editor) UngroupSelected() ([]string, error)",
              "doc": "UngroupSelected ungroups the currently selected object as one undoable step.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 1767
            },
            {
              "name": "UnifiedHistoryEntries",
              "anchor": "Editor.UnifiedHistoryEntries",
              "recv": "*Editor",
              "decl": "func (e *Editor) UnifiedHistoryEntries(filter HistoryFilter) []HistoryEntry",
              "doc": "UnifiedHistoryEntries returns the merged History panel timeline combining the active scene's\nsession entries, persisted project checkpoints from .nsgo/checkpoints/, and Git milestones,\nfiltered by filter and sorted newest first. Session sub-commands captured inside a persisted\ncheckpoint are folded into that checkpoint row so turns are never duplicated.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 1930
            },
            {
              "name": "UnsavedPromptOpen",
              "anchor": "Editor.UnsavedPromptOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) UnsavedPromptOpen() bool",
              "doc": "UnsavedPromptOpen reports whether the unsaved-edits confirmation dialog is open before switching projects.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 983
            },
            {
              "name": "UnsentPlayMarks",
              "anchor": "Editor.UnsentPlayMarks",
              "recv": "*Editor",
              "decl": "func (e *Editor) UnsentPlayMarks() []PlayMark",
              "doc": "UnsentPlayMarks returns a copy of marks that have not yet been sent to the agent.\n",
              "file": "pkg/editor/play_marks.go",
              "line": 709
            },
            {
              "name": "UpdateAgentPlanStep",
              "anchor": "Editor.UpdateAgentPlanStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateAgentPlanStep(stepNumber int, status PlanStepStatus) error",
              "doc": "UpdateAgentPlanStep updates stepNumber's execution status while a plan is running,\nadvancing ActiveStep to the next pending step and syncing the turn's review checklist.\n",
              "file": "pkg/editor/plan.go",
              "line": 1717
            },
            {
              "name": "UpdateAgentRequestOutcome",
              "anchor": "Editor.UpdateAgentRequestOutcome",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateAgentRequestOutcome(threadID, requestID string, outcome AgentThreadOutcome, kept, total int, detail, reply string) error",
              "doc": "UpdateAgentRequestOutcome updates a request's review outcome (\"pending\", \"kept\", \"reverted\"),\nchange counts, detail summary, and optional agent reply, and persists the thread.\n",
              "file": "pkg/editor/agent_threads.go",
              "line": 1288
            },
            {
              "name": "UpdateAssetDrag",
              "anchor": "Editor.UpdateAssetDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateAssetDrag(canvasX, canvasY float32)",
              "doc": "UpdateAssetDrag updates the active sprite drag preview position in viewport canvas coordinates,\ndetecting whether the pointer is over an existing object (swap mode) or empty space (snapped placement).\n",
              "file": "pkg/editor/asset_drawer.go",
              "line": 1815
            },
            {
              "name": "UpdateCameraBoundsDrag",
              "anchor": "Editor.UpdateCameraBoundsDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateCameraBoundsDrag(canvasX, canvasY float32) bool",
              "doc": "UpdateCameraBoundsDrag updates camera.bounds live to follow the pointer at (canvasX, canvasY)\nduring an active camera.bounds drag.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 863
            },
            {
              "name": "UpdateCameraDrag",
              "anchor": "Editor.UpdateCameraDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateCameraDrag(canvasX, canvasY float32) bool",
              "doc": "UpdateCameraDrag moves the scene camera live to follow the pointer at (canvasX, canvasY)\nduring an active camera handle drag.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 696
            },
            {
              "name": "UpdateComponentGizmoDrag3D",
              "anchor": "Editor.UpdateComponentGizmoDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateComponentGizmoDrag3D(sx, sy float32)",
              "doc": "UpdateComponentGizmoDrag3D updates an active 3D component gizmo handle drag to viewport pixel (sx, sy).\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 1024
            },
            {
              "name": "UpdateConnection",
              "anchor": "Editor.UpdateConnection",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateConnection(index int, conn sceneformat.ConnectionDoc) error",
              "doc": "UpdateConnection replaces Doc.Connections[index] with conn as an undoable command after validating the resulting scene with sceneformat.Validate and, when a component registry is set, sceneformat.ValidateConnections. Invalid connections are refused before reaching History, with the reason reported in Status.\n",
              "file": "pkg/editor/connections.go",
              "line": 163
            },
            {
              "name": "UpdateDrag2D",
              "anchor": "Editor.UpdateDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateDrag2D(x, y float32, keepAspect bool)",
              "doc": "UpdateDrag2D moves the drag in progress to the canvas point (x, y) and changes the object to match, from how it was when the drag began:\n\n  - the body and the move square move it by the distance the pointer travelled in its parent's space (its layer's space for a top-level object), which under a rotated or zoomed view or camera is the world distance, and the X and Y arrows by that distance along the object's own axis;\n  - the ring turns it about its origin by the angle the pointer turned there;\n  - an edge handle scales its X or Y, and a corner both, about its origin, so the point grabbed follows the pointer; keepAspect (Shift) scales both by the same factor, keeping the aspect ratio.\n\nA scale that would be zero or close to it, or a scale or rotation that would shear a sprite in the object's tree, its ancestors taken into account (as ScaleObject and RotateObject refuse), is not taken: the object keeps its last valid transform and the status bar says why. It does nothing without a drag.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 704
            },
            {
              "name": "UpdateGizmoDrag3D",
              "anchor": "Editor.UpdateGizmoDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateGizmoDrag3D(sx, sy float32)",
              "doc": "UpdateGizmoDrag3D updates the selected object's (or objects') 3D transform live during an active gizmo drag.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 1377
            },
            {
              "name": "UpdateHUDTouchDrag",
              "anchor": "Editor.UpdateHUDTouchDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateHUDTouchDrag(canvasX, canvasY float32) bool",
              "doc": "UpdateHUDTouchDrag previews the dragged touch control's anchor-relative offset across all four device frames.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 1878
            },
            {
              "name": "UpdateHandleDrag3D",
              "anchor": "Editor.UpdateHandleDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateHandleDrag3D(sx, sy float32)",
              "doc": "UpdateHandleDrag3D updates the light or 3D camera live during an active handle drag.\n",
              "file": "pkg/editor/handles3d.go",
              "line": 634
            },
            {
              "name": "UpdateImagePivotDrag",
              "anchor": "Editor.UpdateImagePivotDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateImagePivotDrag(canvasX, canvasY float32)",
              "doc": "UpdateImagePivotDrag moves the active dragged pivot marker to canvas coordinates (canvasX, canvasY) without writing the sidecar until EndImagePivotDrag.\n",
              "file": "pkg/editor/asset_import_pivot.go",
              "line": 461
            },
            {
              "name": "UpdateInspectorScrub",
              "anchor": "Editor.UpdateInspectorScrub",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateInspectorScrub(deltaPx float64, shift bool) (float64, error)",
              "doc": "UpdateInspectorScrub updates the active scrub from the cumulative horizontal drag distance\ndeltaPx (in points) since BeginInspectorScrub. When shift is true, 3D view scrubs in 0.01 fine\nsteps (for non-integer fields) while 2D view steps ×10.\n",
              "file": "pkg/editor/inspector_sections.go",
              "line": 810
            },
            {
              "name": "UpdateMarquee2D",
              "anchor": "Editor.UpdateMarquee2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateMarquee2D(x, y float32, mode MarqueeMode)",
              "doc": "UpdateMarquee2D updates the live corner and matching mode of an active 2D marquee drag.\n",
              "file": "pkg/editor/marquee.go",
              "line": 88
            },
            {
              "name": "UpdatePluginDrag2D",
              "anchor": "Editor.UpdatePluginDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdatePluginDrag2D(x, y float32)",
              "doc": "UpdatePluginDrag2D delivers drag movement at canvas coordinates (x, y) to the active plugin tool's OnDragMove callback.\n",
              "file": "pkg/editor/plugin.go",
              "line": 656
            },
            {
              "name": "UpdatePluginDrag3D",
              "anchor": "Editor.UpdatePluginDrag3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdatePluginDrag3D(sx, sy float32)",
              "doc": "UpdatePluginDrag3D delivers drag movement at viewport pixel (sx, sy) to the active plugin tool's OnDragMove3D callback as a camera pick ray.\n",
              "file": "pkg/editor/plugin.go",
              "line": 535
            },
            {
              "name": "UpdateProjectAutoloadResource",
              "anchor": "Editor.UpdateProjectAutoloadResource",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateProjectAutoloadResource(index int, name, relPath string) error",
              "doc": "UpdateProjectAutoloadResource updates the autoload resource entry at index through EditProject.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 450
            },
            {
              "name": "UpdateProjectAutoloadScene",
              "anchor": "Editor.UpdateProjectAutoloadScene",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateProjectAutoloadScene(index int, name, relPath string) error",
              "doc": "UpdateProjectAutoloadScene updates the autoload scene entry at index through EditProject.\nWhen the renamed scene was autoload.mainScene, mainScene follows the new name.\n",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 385
            },
            {
              "name": "UpdateRegionDrag",
              "anchor": "Editor.UpdateRegionDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateRegionDrag(x, y float32)",
              "doc": "UpdateRegionDrag updates the live preview rectangle during a region drag in virtual display coordinates (x, y).\n",
              "file": "pkg/editor/input_map_panel.go",
              "line": 844
            },
            {
              "name": "UpdateRigDrag",
              "anchor": "Editor.UpdateRigDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateRigDrag(x, y float32)",
              "doc": "UpdateRigDrag updates the active rig handle drag to rig canvas point (x, y).\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 452
            },
            {
              "name": "UpdateRoomDrag",
              "anchor": "Editor.UpdateRoomDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateRoomDrag(canvasX, canvasY float32) bool",
              "doc": "UpdateRoomDrag updates the live room move/resize or room-creation preview to follow\ncanvas point (canvasX, canvasY), snapping room edges to the tile grid when enabled.\n",
              "file": "pkg/editor/rooms.go",
              "line": 1032
            },
            {
              "name": "UpdateShapeDrag2D",
              "anchor": "Editor.UpdateShapeDrag2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateShapeDrag2D(x, y float32)",
              "doc": "UpdateShapeDrag2D updates the active shape handle drag to canvas point (x, y), applying grid snapping when SnapToGrid is enabled.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 617
            },
            {
              "name": "UpdateSketchDrag",
              "anchor": "Editor.UpdateSketchDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateSketchDrag(canvasX, canvasY float32) bool",
              "doc": "UpdateSketchDrag extends the in-progress sketch mark to canvas point (canvasX, canvasY).\n",
              "file": "pkg/editor/sketch.go",
              "line": 1059
            },
            {
              "name": "UpdateTaskStep",
              "anchor": "Editor.UpdateTaskStep",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateTaskStep(id string, stepIndex, stepTotal int, summary string) error",
              "doc": "UpdateTaskStep updates the current step progress text and step numbers on task id.\n",
              "file": "pkg/editor/tasks.go",
              "line": 1535
            },
            {
              "name": "UpdateTilesetTileAnimFrame",
              "anchor": "Editor.UpdateTilesetTileAnimFrame",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateTilesetTileAnimFrame(tileID, frameIndex int, frame tilemap.TileFrameDoc) error",
              "doc": "UpdateTilesetTileAnimFrame updates animation frame frameIndex of tileID as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1304
            },
            {
              "name": "UpdateTilesetTileShape",
              "anchor": "Editor.UpdateTilesetTileShape",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateTilesetTileShape(tileID, shapeIndex int, shape tilemap.TileShapeDoc) error",
              "doc": "UpdateTilesetTileShape replaces collision shape shapeIndex on tileID as an undoable edit.\n",
              "file": "pkg/editor/tileset_editor.go",
              "line": 1240
            },
            {
              "name": "UpdateViewport3DDrag",
              "anchor": "Editor.UpdateViewport3DDrag",
              "recv": "*Editor",
              "decl": "func (e *Editor) UpdateViewport3DDrag(sx, sy float32)",
              "doc": "UpdateViewport3DDrag advances the active terrain brush stroke, 3D plugin tool drag, 3D handle drag, 3D component gizmo drag, 3D transform gizmo drag, or camera orbit/pan drag.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 2110
            },
            {
              "name": "UsagesScreenOpen",
              "anchor": "Editor.UsagesScreenOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) UsagesScreenOpen() bool",
              "doc": "UsagesScreenOpen reports whether the full-window Find Usages / Safe Rename screen is open.\n",
              "file": "pkg/editor/usages.go",
              "line": 378
            },
            {
              "name": "VaryGeneratedCandidate",
              "anchor": "Editor.VaryGeneratedCandidate",
              "recv": "*Editor",
              "decl": "func (e *Editor) VaryGeneratedCandidate(ctx context.Context, requestID, candidateID string) (*AssetGenerationRequest, error)",
              "doc": "VaryGeneratedCandidate asks the generator for new variations of candidateID while preserving the request's references and seed context. Nothing is written to disk.\n",
              "file": "pkg/editor/asset_gen.go",
              "line": 1496
            },
            {
              "name": "View2D",
              "anchor": "Editor.View2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) View2D() View2D",
              "doc": "View2D returns the 2D viewport's view. Until the author pans or zooms (or after ResetView2D) it is the scene camera's view: the scene's virtual screen centered on the canvas at the camera's zoom (clamped to [MinView2DZoom, MaxView2DZoom]) and rotation, following the camera as it is edited. While the scene plays it is the scene camera's view too, so Play shows the player's frame as the game does; the author's own view comes back on Stop.\n",
              "file": "pkg/editor/view2d.go",
              "line": 85
            },
            {
              "name": "View2DFollowsCamera",
              "anchor": "Editor.View2DFollowsCamera",
              "recv": "*Editor",
              "decl": "func (e *Editor) View2DFollowsCamera() bool",
              "doc": "View2DFollowsCamera reports whether the 2D view is the scene camera's view, which it is until the author pans or zooms, again after ResetView2D, and always while the scene plays.\n",
              "file": "pkg/editor/view2d.go",
              "line": 102
            },
            {
              "name": "ViewName3D",
              "anchor": "Editor.ViewName3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ViewName3D() string",
              "doc": "ViewName3D names the 3D viewport's view as its bar and the status bar show it: the active scene camera when looking through it, the axis view's name (Front, Top, ...) or Perspective, with \" · ortho\" in orthographic, where a view along no axis is \"User · ortho\".\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 224
            },
            {
              "name": "Viewport3DAgentPromptKind",
              "anchor": "Editor.Viewport3DAgentPromptKind",
              "recv": "*Editor",
              "decl": "func (e *Editor) Viewport3DAgentPromptKind() Viewport3DAgentPromptKind",
              "doc": "Viewport3DAgentPromptKind returns the active 3D inline agent prompt kind.\n",
              "file": "pkg/editor/models.go",
              "line": 1026
            },
            {
              "name": "Viewport3DAgentPromptObjectID",
              "anchor": "Editor.Viewport3DAgentPromptObjectID",
              "recv": "*Editor",
              "decl": "func (e *Editor) Viewport3DAgentPromptObjectID() string",
              "doc": "Viewport3DAgentPromptObjectID returns the target object ID for a component prompt, or \"\".\n",
              "file": "pkg/editor/models.go",
              "line": 1034
            },
            {
              "name": "Viewport3DAgentPromptOpen",
              "anchor": "Editor.Viewport3DAgentPromptOpen",
              "recv": "*Editor",
              "decl": "func (e *Editor) Viewport3DAgentPromptOpen() bool",
              "doc": "Viewport3DAgentPromptOpen reports whether the 3D inline agent prompt is currently open.\n",
              "file": "pkg/editor/models.go",
              "line": 1021
            },
            {
              "name": "Viewport3DAgentPromptPlaceholder",
              "anchor": "Editor.Viewport3DAgentPromptPlaceholder",
              "recv": "*Editor",
              "decl": "func (e *Editor) Viewport3DAgentPromptPlaceholder() string",
              "doc": "Viewport3DAgentPromptPlaceholder returns the contextual placeholder text for the open 3D inline agent prompt.\n",
              "file": "pkg/editor/models.go",
              "line": 1042
            },
            {
              "name": "Viewport3DError",
              "anchor": "Editor.Viewport3DError",
              "recv": "*Editor",
              "decl": "func (e *Editor) Viewport3DError() error",
              "doc": "Viewport3DError returns why the 3D viewport cannot show the scene's geometry, or nil: the scene's 3D build failed (Scene3D), such as on a model that does not load, or the GPU view failed to draw it.\n",
              "file": "pkg/editor/viewport3d_gpu.go",
              "line": 64
            },
            {
              "name": "Viewport3DOnGPU",
              "anchor": "Editor.Viewport3DOnGPU",
              "recv": "*Editor",
              "decl": "func (e *Editor) Viewport3DOnGPU() bool",
              "doc": "Viewport3DOnGPU reports whether the 3D viewport's GPU view drew the scene's geometry the last frame, so the canvas over it draws only the overlays (DrawViewport3D). It is false on a target without GPU support, before the GPU view's first frame, after a device loss and when it cannot draw, and the canvas then draws the whole wireframe view.\n",
              "file": "pkg/editor/viewport3d_gpu.go",
              "line": 59
            },
            {
              "name": "ViewportImageChip",
              "anchor": "Editor.ViewportImageChip",
              "recv": "*Editor",
              "decl": "func (e *Editor) ViewportImageChip() AgentContextChip",
              "doc": "ViewportImageChip returns the chip descriptor for the Viewport image toggle.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1571
            },
            {
              "name": "ViewportImageIncluded",
              "anchor": "Editor.ViewportImageIncluded",
              "recv": "*Editor",
              "decl": "func (e *Editor) ViewportImageIncluded() bool",
              "doc": "ViewportImageIncluded reports whether the toggleable Viewport image chip is enabled.\n",
              "file": "pkg/editor/agent_composer.go",
              "line": 1542
            },
            {
              "name": "ViewportLiveOverlays",
              "anchor": "Editor.ViewportLiveOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) ViewportLiveOverlays() []ViewportLiveOverlay",
              "doc": "ViewportLiveOverlays returns the inspectable list of every live overlay item present in the viewport\n(Selection, Added, Changed, Removed, Agent working, and Problem), each carrying its visibility\naccording to the Overlay Legend toggles.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 808
            },
            {
              "name": "ViewportOverlayCount",
              "anchor": "Editor.ViewportOverlayCount",
              "recv": "*Editor",
              "decl": "func (e *Editor) ViewportOverlayCount(id string) int",
              "doc": "ViewportOverlayCount returns the live item count in the current scene for overlay id, or 0 if unknown or uncounted.\n",
              "file": "pkg/editor/overlays.go",
              "line": 412
            },
            {
              "name": "ViewportOverlayEnabled",
              "anchor": "Editor.ViewportOverlayEnabled",
              "recv": "*Editor",
              "decl": "func (e *Editor) ViewportOverlayEnabled(id string) bool",
              "doc": "ViewportOverlayEnabled reports whether overlay id is currently enabled in the editor.\n",
              "file": "pkg/editor/overlays.go",
              "line": 372
            },
            {
              "name": "ViewportOverlays",
              "anchor": "Editor.ViewportOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) ViewportOverlays() []ViewportOverlay",
              "doc": "ViewportOverlays returns all currently available viewport overlays in display order:\nthe built-in overlays first, followed by directly registered custom overlays and overlays\ncontributed by active plugins.\n",
              "file": "pkg/editor/overlays.go",
              "line": 273
            },
            {
              "name": "ViewportPointer2DWorld",
              "anchor": "Editor.ViewportPointer2DWorld",
              "recv": "*Editor",
              "decl": "func (e *Editor) ViewportPointer2DWorld() (x, y float32, ok bool)",
              "doc": "ViewportPointer2DWorld returns the current 2D viewport pointer coordinates in world space, or (0, 0, false) when none.\n",
              "file": "pkg/editor/clipboard_group.go",
              "line": 249
            },
            {
              "name": "ViewportSize",
              "anchor": "Editor.ViewportSize",
              "recv": "*Editor",
              "decl": "func (e *Editor) ViewportSize() (float32, float32)",
              "doc": "ViewportSize returns the scene's virtual viewport size in points, defaulting to 640x360 when unset.\n",
              "file": "pkg/editor/viewport.go",
              "line": 21
            },
            {
              "name": "VisibleShapes2D",
              "anchor": "Editor.VisibleShapes2D",
              "recv": "*Editor",
              "decl": "func (e *Editor) VisibleShapes2D() []DrawnShape2D",
              "doc": "VisibleShapes2D returns the component shapes currently drawn in the 2D viewport in draw order.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 288
            },
            {
              "name": "VisibleTasks",
              "anchor": "Editor.VisibleTasks",
              "recv": "*Editor",
              "decl": "func (e *Editor) VisibleTasks() []AgentTask",
              "doc": "VisibleTasks returns all non-dismissed tasks belonging to the five active groups.\n",
              "file": "pkg/editor/tasks.go",
              "line": 973
            },
            {
              "name": "VisibleViewportLiveOverlays",
              "anchor": "Editor.VisibleViewportLiveOverlays",
              "recv": "*Editor",
              "decl": "func (e *Editor) VisibleViewportLiveOverlays() []ViewportLiveOverlay",
              "doc": "VisibleViewportLiveOverlays returns only the live viewport overlays whose legend kind is currently enabled.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 940
            },
            {
              "name": "WaitAndroidDeviceRun",
              "anchor": "Editor.WaitAndroidDeviceRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitAndroidDeviceRun() error",
              "doc": "WaitAndroidDeviceRun blocks until any in-flight Android USB install/run command finishes and returns its error.\n",
              "file": "pkg/editor/build_device.go",
              "line": 1568
            },
            {
              "name": "WaitAssetsBuild",
              "anchor": "Editor.WaitAssetsBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitAssetsBuild() error",
              "doc": "WaitAssetsBuild blocks until any in-flight BuildAssets or ReimportAsset run finishes and returns its final error.\n",
              "file": "pkg/editor/asset_build.go",
              "line": 114
            },
            {
              "name": "WaitAutoSave",
              "anchor": "Editor.WaitAutoSave",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitAutoSave()",
              "doc": "WaitAutoSave blocks until any in-flight autosave disk write finishes and applies its completion on the caller's goroutine (for headless tests).\n",
              "file": "pkg/editor/autosave.go",
              "line": 645
            },
            {
              "name": "WaitAutomations",
              "anchor": "Editor.WaitAutomations",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitAutomations(timeout time.Duration) bool",
              "doc": "WaitAutomations blocks briefly until all active background automation runs finish (for headless tests).\nReturns true if all active runs completed within timeout.\n",
              "file": "pkg/editor/automations.go",
              "line": 2053
            },
            {
              "name": "WaitChangesOp",
              "anchor": "Editor.WaitChangesOp",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitChangesOp()",
              "doc": "WaitChangesOp blocks until any in-flight asynchronous Changes operation completes (primarily for tests).\n",
              "file": "pkg/editor/changes.go",
              "line": 318
            },
            {
              "name": "WaitCodeReviewChecks",
              "anchor": "Editor.WaitCodeReviewChecks",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitCodeReviewChecks()",
              "doc": "WaitCodeReviewChecks blocks until any in-flight asynchronous code review check completes (primarily for tests).\n",
              "file": "pkg/editor/code_review.go",
              "line": 402
            },
            {
              "name": "WaitExportBuild",
              "anchor": "Editor.WaitExportBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitExportBuild() error",
              "doc": "WaitExportBuild blocks until any in-flight release build finishes and returns its final error.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 1093
            },
            {
              "name": "WaitForCreateProject",
              "anchor": "Editor.WaitForCreateProject",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitForCreateProject()",
              "doc": "WaitForCreateProject blocks until any active Start Screen project creation run finishes.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 751
            },
            {
              "name": "WaitForFirstRunBuild",
              "anchor": "Editor.WaitForFirstRunBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitForFirstRunBuild()",
              "doc": "WaitForFirstRunBuild blocks until any active first-run build goroutine finishes or stops.\n",
              "file": "pkg/editor/first_run.go",
              "line": 2070
            },
            {
              "name": "WaitForProblems",
              "anchor": "Editor.WaitForProblems",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitForProblems()",
              "doc": "WaitForProblems blocks until any pending debounced or in-flight project check\n(including newer checks started while waiting) finishes. It returns\nimmediately when idle.\n",
              "file": "pkg/editor/problems.go",
              "line": 489
            },
            {
              "name": "WaitGame",
              "anchor": "Editor.WaitGame",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitGame() error",
              "doc": "WaitGame blocks until the currently running game process exits and returns its exit error (nil when stopped via StopGame or when idle).\n",
              "file": "pkg/editor/run_game.go",
              "line": 303
            },
            {
              "name": "WaitModelThumbnails",
              "anchor": "Editor.WaitModelThumbnails",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitModelThumbnails()",
              "doc": "WaitModelThumbnails blocks until all model thumbnails queued so far have finished rendering offscreen.\n",
              "file": "pkg/editor/model_thumbs.go",
              "line": 178
            },
            {
              "name": "WaitReleaseBuild",
              "anchor": "Editor.WaitReleaseBuild",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitReleaseBuild() error",
              "doc": "WaitReleaseBuild blocks until any in-flight release build finishes and returns its final error.\n",
              "file": "pkg/editor/build_release.go",
              "line": 1733
            },
            {
              "name": "WaitReleaseUpload",
              "anchor": "Editor.WaitReleaseUpload",
              "recv": "*Editor",
              "decl": "func (e *Editor) WaitReleaseUpload() error",
              "doc": "WaitReleaseUpload blocks until any in-flight store upload batch finishes and returns its first error, if any.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 1114
            },
            {
              "name": "WatchPlaytestRun",
              "anchor": "Editor.WatchPlaytestRun",
              "recv": "*Editor",
              "decl": "func (e *Editor) WatchPlaytestRun(runIndex int) error",
              "doc": "WatchPlaytestRun opens the specified 1-based run's .replay.yaml recording in Play mode using the editor's attached core.Scope.\nWhen runIndex <= 0, the active entry's default WatchRunIndex is used.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 962
            },
            {
              "name": "WatchPlaytestRunIn",
              "anchor": "Editor.WatchPlaytestRunIn",
              "recv": "*Editor",
              "decl": "func (e *Editor) WatchPlaytestRunIn(cx *core.Scope, runIndex int) error",
              "doc": "WatchPlaytestRunIn opens the specified 1-based run's .replay.yaml recording in Play mode on cx.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 967
            },
            {
              "name": "WebBridgeSessions",
              "anchor": "Editor.WebBridgeSessions",
              "recv": "*Editor",
              "decl": "func (e *Editor) WebBridgeSessions() []WebBridgeSession",
              "doc": "WebBridgeSessions returns all phone/browser Play-mode sessions currently connected to the LAN MCP bridge.\n",
              "file": "pkg/editor/build_device.go",
              "line": 1255
            },
            {
              "name": "WebBuildServerState",
              "anchor": "Editor.WebBuildServerState",
              "recv": "*Editor",
              "decl": "func (e *Editor) WebBuildServerState() WebBuildServerSnapshot",
              "doc": "WebBuildServerState returns a thread-safe snapshot of the LAN web build server and connected phone MCP sessions.\n",
              "file": "pkg/editor/build_device.go",
              "line": 285
            },
            {
              "name": "WeeklyRequestLimit",
              "anchor": "Editor.WeeklyRequestLimit",
              "recv": "*Editor",
              "decl": "func (e *Editor) WeeklyRequestLimit() int",
              "doc": "WeeklyRequestLimit returns the weekly agent request limit (defaults to DefaultWeeklyRequestLimit = 300; 0 means no limit).\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 1246
            },
            {
              "name": "WindowTitle",
              "anchor": "Editor.WindowTitle",
              "recv": "*Editor",
              "decl": "func (e *Editor) WindowTitle() string",
              "doc": "WindowTitle is the title EditorView gives the window: SceneLabel, followed by \"*\" while HasUnsavedChanges, then the editor's name (AppName, or the localized default app name while it is empty), as in \"scenes/level.scene.yaml* - NSGo Scene Editor\".\n",
              "file": "pkg/editor/scenefile.go",
              "line": 199
            },
            {
              "name": "WithAgentActor",
              "anchor": "Editor.WithAgentActor",
              "recv": "*Editor",
              "decl": "func (e *Editor) WithAgentActor(fn func() error) error",
              "doc": "WithAgentActor runs fn marked as an agent actor so strict human-only boundaries\n(such as confirming store uploads in Review uploads) are enforced regardless of permission profile.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 328
            },
            {
              "name": "WorkspaceState",
              "anchor": "Editor.WorkspaceState",
              "recv": "*Editor",
              "decl": "func (e *Editor) WorkspaceState() WorkspaceState",
              "doc": "WorkspaceState returns the active high-level state of the editor workspace.\n",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 175
            },
            {
              "name": "WorldToCanvas",
              "anchor": "Editor.WorldToCanvas",
              "recv": "*Editor",
              "decl": "func (e *Editor) WorldToCanvas(wx, wy float32) (float32, float32)",
              "doc": "WorldToCanvas converts a world-space coordinate into a point on the viewport's canvas through the 2D view (View2D).\n",
              "file": "pkg/editor/viewport.go",
              "line": 47
            },
            {
              "name": "WorldToScreen",
              "anchor": "Editor.WorldToScreen",
              "recv": "*Editor",
              "decl": "func (e *Editor) WorldToScreen(wx, wy float32) (float32, float32)",
              "doc": "WorldToScreen converts a world-space coordinate into a point on the scene's virtual screen through the scene's camera, as the game draws world-space layers.\n",
              "file": "pkg/editor/viewport.go",
              "line": 101
            },
            {
              "name": "WriteAgentFile",
              "anchor": "Editor.WriteAgentFile",
              "recv": "*Editor",
              "decl": "func (e *Editor) WriteAgentFile(relPath string, data []byte) error",
              "doc": "WriteAgentFile records relPath's pre-turn bytes into the active checkpoint (if any) before\nwriting data atomically to relPath inside the open project. Open scene tabs or game.yaml\nmatching relPath are reloaded cleanly to stay synchronized with disk.\nRefuses You-only files, symlinks, paths outside the project root, and edits while playing or previewing history.\n",
              "file": "pkg/editor/checkpoints.go",
              "line": 863
            },
            {
              "name": "ZoomModelPreview",
              "anchor": "Editor.ZoomModelPreview",
              "recv": "*Editor",
              "decl": "func (e *Editor) ZoomModelPreview(factor float32)",
              "doc": "ZoomModelPreview scales the model preview camera distance by dividing by factor (>1 zooms in, <1 zooms out), clamped relative to the model's size so models of any scale stay comfortably inspectable.\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 554
            },
            {
              "name": "ZoomRigView",
              "anchor": "Editor.ZoomRigView",
              "recv": "*Editor",
              "decl": "func (e *Editor) ZoomRigView(factor float32)",
              "doc": "ZoomRigView scales the rig editor canvas zoom by factor, clamped to [0.25, 16].\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 134
            },
            {
              "name": "ZoomView2DAt",
              "anchor": "Editor.ZoomView2DAt",
              "recv": "*Editor",
              "decl": "func (e *Editor) ZoomView2DAt(x, y, factor float32) bool",
              "doc": "ZoomView2DAt multiplies the 2D view's zoom by factor about the canvas point (x, y), which keeps showing the same world point, as a wheel or pinch zooms about the pointer. The zoom stays within [MinView2DZoom, MaxView2DZoom]; it reports false when factor is not positive and finite, the zoom is already at the limit it moves toward or the scene plays.\n",
              "file": "pkg/editor/view2d.go",
              "line": 141
            },
            {
              "name": "ZoomView3D",
              "anchor": "Editor.ZoomView3D",
              "recv": "*Editor",
              "decl": "func (e *Editor) ZoomView3D(factor float32)",
              "doc": "ZoomView3D zooms the 3D viewport's camera by factor toward its Target (OrbitCamera3D.ZoomBy): above 1 zooms in, below 1 out, as a pinch does.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 214
            }
          ]
        },
        {
          "name": "EditorCommand",
          "anchor": "EditorCommand",
          "decl": "type EditorCommand struct {\n\t// ID uniquely identifies the command (for example \"file.save\" or \"plugin.health.heal-all\").\n\tID string\n\t// Label is the display title shown in menus and the command palette.\n\tLabel string\n\t// Description is optional explanatory text shown in the command palette.\n\tDescription string\n\t// Category groups the command in the command palette (for example \"File\", \"Edit\", \"Tools\", \"View\", \"Project\").\n\tCategory string\n\t// Keywords are extra search terms matched by the command palette.\n\tKeywords []string\n\t// Scope identifies the keyboard scope this command belongs to (for example ScopeGlobal, ScopeViewport, ScopeViewport2D, ScopeViewport3D, ScopeTile, ScopeSceneTree, ScopeAnimation, ScopePlay). Empty defaults to ScopeGlobal.\n\tScope string\n\t// Shortcut is the canonical primary NSGo key shortcut (using \"mod\" for Command on Apple platforms and Ctrl elsewhere), or empty when unbound.\n\tShortcut string\n\t// AlternateShortcuts are optional additional shortcuts that invoke the same command (such as \"backspace\" alongside \"delete\").\n\tAlternateShortcuts []string\n\t// Enabled reports whether the command can run right now; nil means always enabled.\n\tEnabled func() bool\n\t// Checked reports whether the command represents an active mode or open toggle; nil for non-toggle commands.\n\tChecked func() bool\n\t// Run executes the command.\n\tRun func() error\n}",
          "doc": "EditorCommand describes an invocable command in the editor's unified command registry,\nshared by keyboard shortcuts, the desktop menu bar, and the command palette.\n",
          "file": "pkg/editor/commands.go",
          "line": 183,
          "members": [
            {
              "name": "ID",
              "anchor": "EditorCommand.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the command (for example \"file.save\" or \"plugin.health.heal-all\")."
            },
            {
              "name": "Label",
              "anchor": "EditorCommand.Label",
              "kind": "field",
              "doc": "Label is the display title shown in menus and the command palette."
            },
            {
              "name": "Description",
              "anchor": "EditorCommand.Description",
              "kind": "field",
              "doc": "Description is optional explanatory text shown in the command palette."
            },
            {
              "name": "Category",
              "anchor": "EditorCommand.Category",
              "kind": "field",
              "doc": "Category groups the command in the command palette (for example \"File\", \"Edit\", \"Tools\", \"View\", \"Project\")."
            },
            {
              "name": "Keywords",
              "anchor": "EditorCommand.Keywords",
              "kind": "field",
              "doc": "Keywords are extra search terms matched by the command palette."
            },
            {
              "name": "Scope",
              "anchor": "EditorCommand.Scope",
              "kind": "field",
              "doc": "Scope identifies the keyboard scope this command belongs to (for example ScopeGlobal, ScopeViewport, ScopeViewport2D, ScopeViewport3D, ScopeTile, ScopeSceneTree, ScopeAnimation, ScopePlay). Empty defaults to ScopeGlobal."
            },
            {
              "name": "Shortcut",
              "anchor": "EditorCommand.Shortcut",
              "kind": "field",
              "doc": "Shortcut is the canonical primary NSGo key shortcut (using \"mod\" for Command on Apple platforms and Ctrl elsewhere), or empty when unbound."
            },
            {
              "name": "AlternateShortcuts",
              "anchor": "EditorCommand.AlternateShortcuts",
              "kind": "field",
              "doc": "AlternateShortcuts are optional additional shortcuts that invoke the same command (such as \"backspace\" alongside \"delete\")."
            },
            {
              "name": "Enabled",
              "anchor": "EditorCommand.Enabled",
              "kind": "field",
              "doc": "Enabled reports whether the command can run right now; nil means always enabled."
            },
            {
              "name": "Checked",
              "anchor": "EditorCommand.Checked",
              "kind": "field",
              "doc": "Checked reports whether the command represents an active mode or open toggle; nil for non-toggle commands."
            },
            {
              "name": "Run",
              "anchor": "EditorCommand.Run",
              "kind": "field",
              "doc": "Run executes the command."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EditorRegion",
          "anchor": "EditorRegion",
          "decl": "type EditorRegion string",
          "doc": "EditorRegion identifies a fixed-order keyboard landmark region in the editor,\ncycled with F6 (next) and Shift-F6 (previous) per docs/design/editor/Spec.dc.html.\n",
          "file": "pkg/editor/focus_regions.go",
          "line": 29,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RegionNone",
                  "anchor": "RegionNone"
                },
                {
                  "name": "RegionHeader",
                  "anchor": "RegionHeader"
                },
                {
                  "name": "RegionSceneTree",
                  "anchor": "RegionSceneTree"
                },
                {
                  "name": "RegionViewport",
                  "anchor": "RegionViewport"
                },
                {
                  "name": "RegionInspector",
                  "anchor": "RegionInspector"
                },
                {
                  "name": "RegionStatusBar",
                  "anchor": "RegionStatusBar"
                },
                {
                  "name": "RegionToast",
                  "anchor": "RegionToast"
                }
              ],
              "decl": "const (\n\t// RegionNone indicates no region currently holds focus or an F6 region ring.\n\tRegionNone EditorRegion = \"\"\n\t// RegionHeader is the top toolbar / header region.\n\tRegionHeader EditorRegion = \"header\"\n\t// RegionSceneTree is the left rail region (scene tree, layers, asset and file browsers, or Assets rail).\n\tRegionSceneTree EditorRegion = \"scene-tree\"\n\t// RegionViewport is the central 2D/3D viewport region where focus is the selection.\n\tRegionViewport EditorRegion = \"viewport\"\n\t// RegionInspector is the right rail region (Agent and Inspector).\n\tRegionInspector EditorRegion = \"inspector\"\n\t// RegionStatusBar is the bottom status bar region.\n\tRegionStatusBar EditorRegion = \"status-bar\"\n\t// RegionToast is the floating toast region, participating in F6 order only while a toast is shown.\n\tRegionToast EditorRegion = \"toast\"\n)",
              "doc": "",
              "file": "pkg/editor/focus_regions.go",
              "line": 31
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "EditorRegionOrder",
              "anchor": "EditorRegionOrder",
              "decl": "func EditorRegionOrder() []EditorRegion",
              "doc": "EditorRegionOrder returns the fixed Spec order for F6 / Shift-F6 region cycling.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 49
            }
          ],
          "methods": []
        },
        {
          "name": "EditorSettings",
          "anchor": "EditorSettings",
          "decl": "type EditorSettings struct {\n\t// Version is the schema version; it must equal SettingsVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Language selects the editor UI language (\"system\", \"en\", or \"zh\").\n\tLanguage Language `yaml:\"language\" schema:\"required,enum=system|en|zh\"`\n\t// Appearance selects the editor color scheme (\"system\", \"light\", or \"dark\").\n\tAppearance Appearance `yaml:\"appearance\" schema:\"required,enum=system|light|dark\"`\n\t// AutoSave controls whether kept edits save automatically after 2 seconds.\n\t// When omitted, autosave is enabled by default.\n\tAutoSave *bool `yaml:\"autoSave,omitempty\"`\n\t// InterfaceSize scales editor text and controls together (\"compact\", \"default\", or \"large\").\n\t// When omitted, \"default\" is used.\n\tInterfaceSize InterfaceSize `yaml:\"interfaceSize,omitempty\" schema:\"enum=compact|default|large\"`\n\t// Snap holds per-user viewport snapping and 2D snap grid preferences (step in px, rotation step in degrees, grid overlay).\n\tSnap *SnapSettings `yaml:\"snap,omitempty\"`\n\t// ShowAgentChanges controls whether viewport outlines highlight agent changes while a review is open.\n\t// When omitted, outlines are shown by default.\n\tShowAgentChanges *bool `yaml:\"showAgentChanges,omitempty\"`\n\t// Navigation3D selects the 3D viewport's mouse navigation mapping (\"default\", \"blender\", or \"maya\").\n\t// When omitted, \"default\" is used.\n\tNavigation3D Navigation3D `yaml:\"navigation3D,omitempty\" schema:\"enum=default|blender|maya\"`\n\t// ViewportOverlays lists the enabled 2D viewport overlay IDs in canonical sorted order.\n\t// When omitted, the editor uses DefaultViewportOverlays(); an empty list disables all overlays.\n\tViewportOverlays *[]string `yaml:\"viewportOverlays,omitempty\"`\n\t// HiddenOverlayKinds lists Spec overlay legend kinds toggled off by the user\n\t// (\"selection\", \"agent\", \"added\", \"changed\", \"removed\", \"problem\") in canonical sorted order.\n\tHiddenOverlayKinds []string `yaml:\"hiddenOverlayKinds,omitempty\"`\n\t// OverlayLegend lists the enabled Spec viewport overlay legend kinds\n\t// (\"selection\", \"agent\", \"added\", \"changed\", \"removed\", \"problem\") in canonical sorted order.\n\t// When omitted, all six legend kinds are enabled by default; an empty list hides all six kinds.\n\tOverlayLegend *[]string `yaml:\"overlayLegend,omitempty\"`\n\t// Shortcuts overrides default command shortcuts keyed by command ID (for example \"view.frame\": \"g\"). An empty string explicitly unbinds a command.\n\tShortcuts map[string]string `yaml:\"shortcuts,omitempty\"`\n\t// SeenTips lists the onboarding tip IDs already seen or skipped by this user in canonical sorted order.\n\t// Help › Replay tips clears the first-run review tip IDs so each tip shows again.\n\tSeenTips []string `yaml:\"seenTips,omitempty\"`\n\t// Agent stores per-computer preferences for connected models, MCP tools, external MCP servers, weekly usage limit, and outbound privacy rules. Secrets such as API keys are never stored here.\n\tAgent *AgentSettings `yaml:\"agent,omitempty\"`\n}",
          "doc": "EditorSettings holds per-user editor preferences saved outside any game project as versioned YAML.\nA file looks like this:\n\n\t# yaml-language-server: $schema=https://game.nsgo.dev/schemas/editor-settings.v1.json\n\tversion: 1\n\tlanguage: system\n\tappearance: system\n\nParseEditorSettings decodes it strictly and EncodeEditorSettings writes it back in canonical form, so a file EncodeEditorSettings wrote survives a load and save byte for byte.\n",
          "file": "pkg/editor/settings.go",
          "line": 153,
          "members": [
            {
              "name": "Version",
              "anchor": "EditorSettings.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal SettingsVersion (1)."
            },
            {
              "name": "Language",
              "anchor": "EditorSettings.Language",
              "kind": "field",
              "doc": "Language selects the editor UI language (\"system\", \"en\", or \"zh\")."
            },
            {
              "name": "Appearance",
              "anchor": "EditorSettings.Appearance",
              "kind": "field",
              "doc": "Appearance selects the editor color scheme (\"system\", \"light\", or \"dark\")."
            },
            {
              "name": "AutoSave",
              "anchor": "EditorSettings.AutoSave",
              "kind": "field",
              "doc": "AutoSave controls whether kept edits save automatically after 2 seconds.\nWhen omitted, autosave is enabled by default."
            },
            {
              "name": "InterfaceSize",
              "anchor": "EditorSettings.InterfaceSize",
              "kind": "field",
              "doc": "InterfaceSize scales editor text and controls together (\"compact\", \"default\", or \"large\").\nWhen omitted, \"default\" is used."
            },
            {
              "name": "Snap",
              "anchor": "EditorSettings.Snap",
              "kind": "field",
              "doc": "Snap holds per-user viewport snapping and 2D snap grid preferences (step in px, rotation step in degrees, grid overlay)."
            },
            {
              "name": "ShowAgentChanges",
              "anchor": "EditorSettings.ShowAgentChanges",
              "kind": "field",
              "doc": "ShowAgentChanges controls whether viewport outlines highlight agent changes while a review is open.\nWhen omitted, outlines are shown by default."
            },
            {
              "name": "Navigation3D",
              "anchor": "EditorSettings.Navigation3D",
              "kind": "field",
              "doc": "Navigation3D selects the 3D viewport's mouse navigation mapping (\"default\", \"blender\", or \"maya\").\nWhen omitted, \"default\" is used."
            },
            {
              "name": "ViewportOverlays",
              "anchor": "EditorSettings.ViewportOverlays",
              "kind": "field",
              "doc": "ViewportOverlays lists the enabled 2D viewport overlay IDs in canonical sorted order.\nWhen omitted, the editor uses DefaultViewportOverlays(); an empty list disables all overlays."
            },
            {
              "name": "HiddenOverlayKinds",
              "anchor": "EditorSettings.HiddenOverlayKinds",
              "kind": "field",
              "doc": "HiddenOverlayKinds lists Spec overlay legend kinds toggled off by the user\n(\"selection\", \"agent\", \"added\", \"changed\", \"removed\", \"problem\") in canonical sorted order."
            },
            {
              "name": "OverlayLegend",
              "anchor": "EditorSettings.OverlayLegend",
              "kind": "field",
              "doc": "OverlayLegend lists the enabled Spec viewport overlay legend kinds\n(\"selection\", \"agent\", \"added\", \"changed\", \"removed\", \"problem\") in canonical sorted order.\nWhen omitted, all six legend kinds are enabled by default; an empty list hides all six kinds."
            },
            {
              "name": "Shortcuts",
              "anchor": "EditorSettings.Shortcuts",
              "kind": "field",
              "doc": "Shortcuts overrides default command shortcuts keyed by command ID (for example \"view.frame\": \"g\"). An empty string explicitly unbinds a command."
            },
            {
              "name": "SeenTips",
              "anchor": "EditorSettings.SeenTips",
              "kind": "field",
              "doc": "SeenTips lists the onboarding tip IDs already seen or skipped by this user in canonical sorted order.\nHelp › Replay tips clears the first-run review tip IDs so each tip shows again."
            },
            {
              "name": "Agent",
              "anchor": "EditorSettings.Agent",
              "kind": "field",
              "doc": "Agent stores per-computer preferences for connected models, MCP tools, external MCP servers, weekly usage limit, and outbound privacy rules. Secrets such as API keys are never stored here."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultEditorSettings",
              "anchor": "DefaultEditorSettings",
              "decl": "func DefaultEditorSettings() EditorSettings",
              "doc": "DefaultEditorSettings returns the default per-user editor settings: version 1, following the system language and appearance.\n",
              "file": "pkg/editor/settings.go",
              "line": 236
            },
            {
              "name": "LoadEditorSettings",
              "anchor": "LoadEditorSettings",
              "decl": "func LoadEditorSettings(path string) (*EditorSettings, error)",
              "doc": "LoadEditorSettings reads and parses per-user editor settings from path.\n",
              "file": "pkg/editor/settings.go",
              "line": 546
            },
            {
              "name": "ParseEditorSettings",
              "anchor": "ParseEditorSettings",
              "decl": "func ParseEditorSettings(data []byte) (*EditorSettings, error)",
              "doc": "ParseEditorSettings decodes and validates a versioned YAML editor settings document.\nUnknown fields, trailing YAML documents, YAML anchors/aliases/merge keys, missing or unsupported versions, and unknown language or appearance values are refused.\n\nErrors are *loaderr.Error values carrying the line, column, field path and fix; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/editor/settings.go",
              "line": 259
            }
          ],
          "methods": [
            {
              "name": "AutoSaveEnabled",
              "anchor": "EditorSettings.AutoSaveEnabled",
              "recv": "EditorSettings",
              "decl": "func (s EditorSettings) AutoSaveEnabled() bool",
              "doc": "AutoSaveEnabled reports whether automatic saving of kept changes is enabled (true when AutoSave is nil).\n",
              "file": "pkg/editor/settings.go",
              "line": 194
            },
            {
              "name": "EffectiveInterfaceSize",
              "anchor": "EditorSettings.EffectiveInterfaceSize",
              "recv": "EditorSettings",
              "decl": "func (s EditorSettings) EffectiveInterfaceSize() InterfaceSize",
              "doc": "EffectiveInterfaceSize returns the active interface size, defaulting to InterfaceSizeDefault when unset.\n",
              "file": "pkg/editor/settings.go",
              "line": 199
            },
            {
              "name": "EffectiveNavigation3D",
              "anchor": "EditorSettings.EffectiveNavigation3D",
              "recv": "EditorSettings",
              "decl": "func (s EditorSettings) EffectiveNavigation3D() Navigation3D",
              "doc": "EffectiveNavigation3D returns the active 3D mouse navigation mapping, defaulting to Navigation3DDefault when unset.\n",
              "file": "pkg/editor/settings.go",
              "line": 212
            },
            {
              "name": "ShowAgentChangesEnabled",
              "anchor": "EditorSettings.ShowAgentChangesEnabled",
              "recv": "EditorSettings",
              "decl": "func (s EditorSettings) ShowAgentChangesEnabled() bool",
              "doc": "ShowAgentChangesEnabled reports whether agent change outlines are drawn in the viewport while a review is open (true when ShowAgentChanges is nil).\n",
              "file": "pkg/editor/settings.go",
              "line": 207
            }
          ]
        },
        {
          "name": "EditorSettingsTab",
          "anchor": "EditorSettingsTab",
          "decl": "type EditorSettingsTab int",
          "doc": "EditorSettingsTab selects which page is active in EditorSettingsDialogView.\n",
          "file": "pkg/editor/settings.go",
          "line": 220,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "EditorSettingsTabGeneral",
                  "anchor": "EditorSettingsTabGeneral"
                },
                {
                  "name": "EditorSettingsTabViewport",
                  "anchor": "EditorSettingsTabViewport"
                },
                {
                  "name": "EditorSettingsTabShortcuts",
                  "anchor": "EditorSettingsTabShortcuts"
                },
                {
                  "name": "EditorSettingsTabBrief",
                  "anchor": "EditorSettingsTabBrief"
                },
                {
                  "name": "EditorSettingsTabRules",
                  "anchor": "EditorSettingsTabRules"
                }
              ],
              "decl": "const (\n\t// EditorSettingsTabGeneral shows language, appearance, saving, and interface size settings.\n\tEditorSettingsTabGeneral EditorSettingsTab = iota\n\t// EditorSettingsTabViewport shows snapping, grid, agent change outlines, 3D navigation, and overlay legend choices.\n\tEditorSettingsTabViewport\n\t// EditorSettingsTabShortcuts shows searchable, scope-aware shortcut rebinding.\n\tEditorSettingsTabShortcuts\n\t// EditorSettingsTabBrief shows the Agent › Game brief (brief.yaml) page.\n\tEditorSettingsTabBrief\n\t// EditorSettingsTabRules shows the Agent › Project rules (AGENTS.md) page.\n\tEditorSettingsTabRules\n)",
              "doc": "",
              "file": "pkg/editor/settings.go",
              "line": 222
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ExportBuildOptions",
          "anchor": "ExportBuildOptions",
          "decl": "type ExportBuildOptions struct {\n\t// Targets restricts the build to the chosen targets; empty builds all presets in game.yaml (or game release's defaults when no presets are defined).\n\tTargets []string\n\t// Channel selects the distribution channel (\"\", \"direct\", \"store\", \"steam\", \"none\"). Empty uses nsgo.yaml's updates.channel.\n\tChannel string\n\t// ReleaseNotes is an optional path (project-relative or absolute) to a Markdown file passed to -release-notes.\n\tReleaseNotes string\n\t// DryRun prints the nsgo build command without running nsgo build or writing CREDITS.md.\n\tDryRun bool\n}",
          "doc": "ExportBuildOptions configures one release build or dry run launched from the Export panel.\n",
          "file": "pkg/editor/export_panel.go",
          "line": 33,
          "members": [
            {
              "name": "Targets",
              "anchor": "ExportBuildOptions.Targets",
              "kind": "field",
              "doc": "Targets restricts the build to the chosen targets; empty builds all presets in game.yaml (or game release's defaults when no presets are defined)."
            },
            {
              "name": "Channel",
              "anchor": "ExportBuildOptions.Channel",
              "kind": "field",
              "doc": "Channel selects the distribution channel (\"\", \"direct\", \"store\", \"steam\", \"none\"). Empty uses nsgo.yaml's updates.channel."
            },
            {
              "name": "ReleaseNotes",
              "anchor": "ExportBuildOptions.ReleaseNotes",
              "kind": "field",
              "doc": "ReleaseNotes is an optional path (project-relative or absolute) to a Markdown file passed to -release-notes."
            },
            {
              "name": "DryRun",
              "anchor": "ExportBuildOptions.DryRun",
              "kind": "field",
              "doc": "DryRun prints the nsgo build command without running nsgo build or writing CREDITS.md."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ExportCreditsReport",
          "anchor": "ExportCreditsReport",
          "decl": "type ExportCreditsReport struct {\n\t// Configured reports whether game.yaml declares an assets section.\n\tConfigured bool\n\t// Entries are the credited assets found.\n\tEntries []credits.Entry\n\t// Missing are the slash-separated paths of assets without a credit, sorted.\n\tMissing []string\n\t// Err is any non-missing error encountered while scanning assets or parsing sidecars.\n\tErr error\n}",
          "doc": "ExportCreditsReport summarizes the pre-flight credits check for the open project's assets section.\n",
          "file": "pkg/editor/export_panel.go",
          "line": 45,
          "members": [
            {
              "name": "Configured",
              "anchor": "ExportCreditsReport.Configured",
              "kind": "field",
              "doc": "Configured reports whether game.yaml declares an assets section."
            },
            {
              "name": "Entries",
              "anchor": "ExportCreditsReport.Entries",
              "kind": "field",
              "doc": "Entries are the credited assets found."
            },
            {
              "name": "Missing",
              "anchor": "ExportCreditsReport.Missing",
              "kind": "field",
              "doc": "Missing are the slash-separated paths of assets without a credit, sorted."
            },
            {
              "name": "Err",
              "anchor": "ExportCreditsReport.Err",
              "kind": "field",
              "doc": "Err is any non-missing error encountered while scanning assets or parsing sidecars."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "OK",
              "anchor": "ExportCreditsReport.OK",
              "recv": "ExportCreditsReport",
              "decl": "func (r ExportCreditsReport) OK() bool",
              "doc": "OK reports whether the credits pre-flight check permits a release build.\n",
              "file": "pkg/editor/export_panel.go",
              "line": 57
            }
          ]
        },
        {
          "name": "ExternalAgentKind",
          "anchor": "ExternalAgentKind",
          "decl": "type ExternalAgentKind string",
          "doc": "ExternalAgentKind identifies a supported external agent CLI invoked non-interactively by the composer.\n",
          "file": "pkg/editor/agent.go",
          "line": 89,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ExternalAgentAuto",
                  "anchor": "ExternalAgentAuto"
                },
                {
                  "name": "ExternalAgentClaudeCode",
                  "anchor": "ExternalAgentClaudeCode"
                },
                {
                  "name": "ExternalAgentCodex",
                  "anchor": "ExternalAgentCodex"
                }
              ],
              "decl": "const (\n\tExternalAgentAuto       ExternalAgentKind = \"\"\n\tExternalAgentClaudeCode ExternalAgentKind = \"claude\"\n\tExternalAgentCodex      ExternalAgentKind = \"codex\"\n)",
              "doc": "",
              "file": "pkg/editor/agent.go",
              "line": 91
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "DetectExternalAgentKind",
              "anchor": "DetectExternalAgentKind",
              "decl": "func DetectExternalAgentKind(clientName string) ExternalAgentKind",
              "doc": "DetectExternalAgentKind infers which CLI to invoke from a connected MCP client name.\n",
              "file": "pkg/editor/agent.go",
              "line": 155
            }
          ],
          "methods": []
        },
        {
          "name": "FeedbackChannel",
          "anchor": "FeedbackChannel",
          "decl": "type FeedbackChannel string",
          "doc": "FeedbackChannel identifies the canonical home of an editor feedback event in\ndocs/design/editor/Spec.dc.html (\"Feedback channels\"). Decisions never go in a toast.\n",
          "file": "pkg/editor/toasts.go",
          "line": 28,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FeedbackChannelToast",
                  "anchor": "FeedbackChannelToast"
                },
                {
                  "name": "FeedbackChannelProgressToast",
                  "anchor": "FeedbackChannelProgressToast"
                },
                {
                  "name": "FeedbackChannelAgentCard",
                  "anchor": "FeedbackChannelAgentCard"
                },
                {
                  "name": "FeedbackChannelReview",
                  "anchor": "FeedbackChannelReview"
                },
                {
                  "name": "FeedbackChannelProblems",
                  "anchor": "FeedbackChannelProblems"
                },
                {
                  "name": "FeedbackChannelSystemNotification",
                  "anchor": "FeedbackChannelSystemNotification"
                }
              ],
              "decl": "const (\n\tFeedbackChannelToast              FeedbackChannel = \"toast\"\n\tFeedbackChannelProgressToast      FeedbackChannel = \"progress_toast\"\n\tFeedbackChannelAgentCard          FeedbackChannel = \"agent_card\"\n\tFeedbackChannelReview             FeedbackChannel = \"review\"\n\tFeedbackChannelProblems           FeedbackChannel = \"problems\"\n\tFeedbackChannelSystemNotification FeedbackChannel = \"system_notification\"\n)",
              "doc": "",
              "file": "pkg/editor/toasts.go",
              "line": 30
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FeedbackChannelEntry",
          "anchor": "FeedbackChannelEntry",
          "decl": "type FeedbackChannelEntry struct {\n\tEvent     string\n\tChannel   FeedbackChannel\n\tAction    string\n\tEventKind ToastEventKind\n\tStays     bool\n}",
          "doc": "FeedbackChannelEntry describes one row of the Spec Feedback channels table\n(docs/design/editor/Spec.dc.html).\n",
          "file": "pkg/editor/toasts.go",
          "line": 41,
          "members": [
            {
              "name": "Event",
              "anchor": "FeedbackChannelEntry.Event",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Channel",
              "anchor": "FeedbackChannelEntry.Channel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Action",
              "anchor": "FeedbackChannelEntry.Action",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EventKind",
              "anchor": "FeedbackChannelEntry.EventKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stays",
              "anchor": "FeedbackChannelEntry.Stays",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SpecFeedbackChannels",
              "anchor": "SpecFeedbackChannels",
              "decl": "func SpecFeedbackChannels() []FeedbackChannelEntry",
              "doc": "SpecFeedbackChannels returns the complete Spec Feedback channels table mapping each\neditor event to its single home.\n",
              "file": "pkg/editor/toasts.go",
              "line": 51
            }
          ],
          "methods": []
        },
        {
          "name": "FirstRunAPIKeyStatus",
          "anchor": "FirstRunAPIKeyStatus",
          "decl": "type FirstRunAPIKeyStatus string",
          "doc": "FirstRunAPIKeyStatus is returned by Editor.FirstRunValidateAPIKey.\n",
          "file": "pkg/editor/first_run.go",
          "line": 103,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FirstRunAPIKeyEmpty",
                  "anchor": "FirstRunAPIKeyEmpty"
                },
                {
                  "name": "FirstRunAPIKeyWorks",
                  "anchor": "FirstRunAPIKeyWorks"
                },
                {
                  "name": "FirstRunAPIKeyNotAccepted",
                  "anchor": "FirstRunAPIKeyNotAccepted"
                },
                {
                  "name": "FirstRunAPIKeyNoNetwork",
                  "anchor": "FirstRunAPIKeyNoNetwork"
                },
                {
                  "name": "FirstRunAPIKeyNoQuota",
                  "anchor": "FirstRunAPIKeyNoQuota"
                }
              ],
              "decl": "const (\n\tFirstRunAPIKeyEmpty       FirstRunAPIKeyStatus = \"\"\n\tFirstRunAPIKeyWorks       FirstRunAPIKeyStatus = \"works\"\n\tFirstRunAPIKeyNotAccepted FirstRunAPIKeyStatus = \"not_accepted\"\n\tFirstRunAPIKeyNoNetwork   FirstRunAPIKeyStatus = \"no_network\"\n\tFirstRunAPIKeyNoQuota     FirstRunAPIKeyStatus = \"no_quota\"\n)",
              "doc": "",
              "file": "pkg/editor/first_run.go",
              "line": 105
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunAgentOption",
          "anchor": "FirstRunAgentOption",
          "decl": "type FirstRunAgentOption struct {\n\t// Kind is \"claude\", \"codex\", or \"apikey\".\n\tKind string\n\t// Name is the display label (such as \"Claude Code\", \"Codex\", or \"An API key\").\n\tName string\n\t// Description is the short subtitle shown beneath Name.\n\tDescription string\n\t// Detected reports whether a local CLI agent was found on PATH (ignored for \"apikey\").\n\tDetected bool\n\t// ExecutablePath holds the resolved binary path when Detected is true.\n\tExecutablePath string\n}",
          "doc": "FirstRunAgentOption describes one agent choice shown in Connect in place.\n",
          "file": "pkg/editor/first_run.go",
          "line": 74,
          "members": [
            {
              "name": "Kind",
              "anchor": "FirstRunAgentOption.Kind",
              "kind": "field",
              "doc": "Kind is \"claude\", \"codex\", or \"apikey\"."
            },
            {
              "name": "Name",
              "anchor": "FirstRunAgentOption.Name",
              "kind": "field",
              "doc": "Name is the display label (such as \"Claude Code\", \"Codex\", or \"An API key\")."
            },
            {
              "name": "Description",
              "anchor": "FirstRunAgentOption.Description",
              "kind": "field",
              "doc": "Description is the short subtitle shown beneath Name."
            },
            {
              "name": "Detected",
              "anchor": "FirstRunAgentOption.Detected",
              "kind": "field",
              "doc": "Detected reports whether a local CLI agent was found on PATH (ignored for \"apikey\")."
            },
            {
              "name": "ExecutablePath",
              "anchor": "FirstRunAgentOption.ExecutablePath",
              "kind": "field",
              "doc": "ExecutablePath holds the resolved binary path when Detected is true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunBuildEvent",
          "anchor": "FirstRunBuildEvent",
          "decl": "type FirstRunBuildEvent struct {\n\tStageIndex   int\n\tStageStatus  FirstRunBuildStageStatus\n\tLogTitle     string\n\tLogSubtitle  string\n\tObjectsDone  int\n\tObjectsTotal int\n\tPlacingLabel string\n\tPlacedShapes []FirstRunPreviewShape\n}",
          "doc": "FirstRunBuildEvent is emitted by FirstRunBuilder as stages and object placements advance.\n",
          "file": "pkg/editor/first_run.go",
          "line": 233,
          "members": [
            {
              "name": "StageIndex",
              "anchor": "FirstRunBuildEvent.StageIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StageStatus",
              "anchor": "FirstRunBuildEvent.StageStatus",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LogTitle",
              "anchor": "FirstRunBuildEvent.LogTitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LogSubtitle",
              "anchor": "FirstRunBuildEvent.LogSubtitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectsDone",
              "anchor": "FirstRunBuildEvent.ObjectsDone",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectsTotal",
              "anchor": "FirstRunBuildEvent.ObjectsTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlacingLabel",
              "anchor": "FirstRunBuildEvent.PlacingLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlacedShapes",
              "anchor": "FirstRunBuildEvent.PlacedShapes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunBuildFixProposal",
          "anchor": "FirstRunBuildFixProposal",
          "decl": "type FirstRunBuildFixProposal struct {\n\tProblemSummary string\n\tObjectID       string\n\tObjectBadge    string\n\tFixDescription string\n\tApplyFix       func(ctx context.Context, projectDir string) error\n}",
          "doc": "FirstRunBuildFixProposal is shown when the Check stage fails before entering the first review.\n",
          "file": "pkg/editor/first_run.go",
          "line": 224,
          "members": [
            {
              "name": "ProblemSummary",
              "anchor": "FirstRunBuildFixProposal.ProblemSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "FirstRunBuildFixProposal.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectBadge",
              "anchor": "FirstRunBuildFixProposal.ObjectBadge",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FixDescription",
              "anchor": "FirstRunBuildFixProposal.FixDescription",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ApplyFix",
              "anchor": "FirstRunBuildFixProposal.ApplyFix",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunBuildLogEntry",
          "anchor": "FirstRunBuildLogEntry",
          "decl": "type FirstRunBuildLogEntry struct {\n\tStageIndex int\n\tStatus     FirstRunBuildStageStatus\n\tTitle      string\n\tSubtitle   string\n\tDoneCount  int\n\tTotalCount int\n}",
          "doc": "FirstRunBuildLogEntry is one item in the Building agent panel log.\n",
          "file": "pkg/editor/first_run.go",
          "line": 214,
          "members": [
            {
              "name": "StageIndex",
              "anchor": "FirstRunBuildLogEntry.StageIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "FirstRunBuildLogEntry.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "FirstRunBuildLogEntry.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Subtitle",
              "anchor": "FirstRunBuildLogEntry.Subtitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DoneCount",
              "anchor": "FirstRunBuildLogEntry.DoneCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalCount",
              "anchor": "FirstRunBuildLogEntry.TotalCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunBuildOutcome",
          "anchor": "FirstRunBuildOutcome",
          "decl": "type FirstRunBuildOutcome string",
          "doc": "FirstRunBuildOutcome identifies the current mode of the Building stage.\n",
          "file": "pkg/editor/first_run.go",
          "line": 280,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FirstRunBuildRunning",
                  "anchor": "FirstRunBuildRunning"
                },
                {
                  "name": "FirstRunBuildCancelPrompt",
                  "anchor": "FirstRunBuildCancelPrompt"
                },
                {
                  "name": "FirstRunBuildCheckFailed",
                  "anchor": "FirstRunBuildCheckFailed"
                },
                {
                  "name": "FirstRunBuildStoppedKept",
                  "anchor": "FirstRunBuildStoppedKept"
                },
                {
                  "name": "FirstRunBuildStoppedDeleted",
                  "anchor": "FirstRunBuildStoppedDeleted"
                }
              ],
              "decl": "const (\n\tFirstRunBuildRunning        FirstRunBuildOutcome = \"running\"\n\tFirstRunBuildCancelPrompt   FirstRunBuildOutcome = \"cancel_prompt\"\n\tFirstRunBuildCheckFailed    FirstRunBuildOutcome = \"check_failed\"\n\tFirstRunBuildStoppedKept    FirstRunBuildOutcome = \"stopped_kept\"\n\tFirstRunBuildStoppedDeleted FirstRunBuildOutcome = \"stopped_deleted\"\n)",
              "doc": "",
              "file": "pkg/editor/first_run.go",
              "line": 282
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunBuildRequest",
          "anchor": "FirstRunBuildRequest",
          "decl": "type FirstRunBuildRequest struct {\n\tPlan         FirstRunPlan\n\tProjectDir   string\n\tAnswer       string\n\tWaitIfPaused func(context.Context) error\n}",
          "doc": "FirstRunBuildRequest is passed to Editor.FirstRunBuilder after the target project folder is created.\n",
          "file": "pkg/editor/first_run.go",
          "line": 245,
          "members": [
            {
              "name": "Plan",
              "anchor": "FirstRunBuildRequest.Plan",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectDir",
              "anchor": "FirstRunBuildRequest.ProjectDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Answer",
              "anchor": "FirstRunBuildRequest.Answer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WaitIfPaused",
              "anchor": "FirstRunBuildRequest.WaitIfPaused",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunBuildResult",
          "anchor": "FirstRunBuildResult",
          "decl": "type FirstRunBuildResult struct {\n\tSceneRelPath   string\n\tPlanStepsDone  int\n\tPlanStepsTotal int\n\tDeviations     []FirstRunPlanDeviation\n\tChanges        []FirstRunReviewChange\n\tShapes         []FirstRunPreviewShape\n\tCheckFailure   *FirstRunBuildFixProposal\n}",
          "doc": "FirstRunBuildResult is returned by Editor.FirstRunBuilder when building finishes or pauses on a check failure.\n",
          "file": "pkg/editor/first_run.go",
          "line": 269,
          "members": [
            {
              "name": "SceneRelPath",
              "anchor": "FirstRunBuildResult.SceneRelPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanStepsDone",
              "anchor": "FirstRunBuildResult.PlanStepsDone",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanStepsTotal",
              "anchor": "FirstRunBuildResult.PlanStepsTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Deviations",
              "anchor": "FirstRunBuildResult.Deviations",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changes",
              "anchor": "FirstRunBuildResult.Changes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shapes",
              "anchor": "FirstRunBuildResult.Shapes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckFailure",
              "anchor": "FirstRunBuildResult.CheckFailure",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunBuildSnapshot",
          "anchor": "FirstRunBuildSnapshot",
          "decl": "type FirstRunBuildSnapshot struct {\n\tProjectName       string\n\tSceneName         string\n\tDisplayPath       string\n\tOutcome           FirstRunBuildOutcome\n\tStages            [5]FirstRunBuildStageStatus\n\tLog               []FirstRunBuildLogEntry\n\tObjectsDone       int\n\tObjectsTotal      int\n\tPlacingLabel      string\n\tShapes            []FirstRunPreviewShape\n\tElapsed           time.Duration\n\tCreatedByFlow     bool\n\tCanDeleteFolder   bool\n\tCreatedAgeSeconds int\n\tCheckFailure      *FirstRunBuildFixProposal\n\tStatusPill        string\n}",
          "doc": "FirstRunBuildSnapshot is a read-only copy of the active Building screen state.\n",
          "file": "pkg/editor/first_run.go",
          "line": 291,
          "members": [
            {
              "name": "ProjectName",
              "anchor": "FirstRunBuildSnapshot.ProjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneName",
              "anchor": "FirstRunBuildSnapshot.SceneName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DisplayPath",
              "anchor": "FirstRunBuildSnapshot.DisplayPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Outcome",
              "anchor": "FirstRunBuildSnapshot.Outcome",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stages",
              "anchor": "FirstRunBuildSnapshot.Stages",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Log",
              "anchor": "FirstRunBuildSnapshot.Log",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectsDone",
              "anchor": "FirstRunBuildSnapshot.ObjectsDone",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectsTotal",
              "anchor": "FirstRunBuildSnapshot.ObjectsTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlacingLabel",
              "anchor": "FirstRunBuildSnapshot.PlacingLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shapes",
              "anchor": "FirstRunBuildSnapshot.Shapes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Elapsed",
              "anchor": "FirstRunBuildSnapshot.Elapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CreatedByFlow",
              "anchor": "FirstRunBuildSnapshot.CreatedByFlow",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CanDeleteFolder",
              "anchor": "FirstRunBuildSnapshot.CanDeleteFolder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CreatedAgeSeconds",
              "anchor": "FirstRunBuildSnapshot.CreatedAgeSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckFailure",
              "anchor": "FirstRunBuildSnapshot.CheckFailure",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StatusPill",
              "anchor": "FirstRunBuildSnapshot.StatusPill",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunBuildStageStatus",
          "anchor": "FirstRunBuildStageStatus",
          "decl": "type FirstRunBuildStageStatus string",
          "doc": "FirstRunBuildStageStatus describes the status of one stage in the 5-stage progress bar.\n",
          "file": "pkg/editor/first_run.go",
          "line": 201,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FirstRunBuildStageTodo",
                  "anchor": "FirstRunBuildStageTodo"
                },
                {
                  "name": "FirstRunBuildStageActive",
                  "anchor": "FirstRunBuildStageActive"
                },
                {
                  "name": "FirstRunBuildStageDone",
                  "anchor": "FirstRunBuildStageDone"
                },
                {
                  "name": "FirstRunBuildStageFail",
                  "anchor": "FirstRunBuildStageFail"
                }
              ],
              "decl": "const (\n\tFirstRunBuildStageTodo   FirstRunBuildStageStatus = \"todo\"\n\tFirstRunBuildStageActive FirstRunBuildStageStatus = \"active\"\n\tFirstRunBuildStageDone   FirstRunBuildStageStatus = \"done\"\n\tFirstRunBuildStageFail   FirstRunBuildStageStatus = \"fail\"\n)",
              "doc": "",
              "file": "pkg/editor/first_run.go",
              "line": 203
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunConnectStatus",
          "anchor": "FirstRunConnectStatus",
          "decl": "type FirstRunConnectStatus string",
          "doc": "FirstRunConnectStatus describes the current state of the Connect in place card.\n",
          "file": "pkg/editor/first_run.go",
          "line": 88,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FirstRunConnectIdle",
                  "anchor": "FirstRunConnectIdle"
                },
                {
                  "name": "FirstRunConnectConnecting",
                  "anchor": "FirstRunConnectConnecting"
                },
                {
                  "name": "FirstRunConnectConnected",
                  "anchor": "FirstRunConnectConnected"
                },
                {
                  "name": "FirstRunConnectTimeout",
                  "anchor": "FirstRunConnectTimeout"
                },
                {
                  "name": "FirstRunConnectKeyIdle",
                  "anchor": "FirstRunConnectKeyIdle"
                },
                {
                  "name": "FirstRunConnectKeyValid",
                  "anchor": "FirstRunConnectKeyValid"
                },
                {
                  "name": "FirstRunConnectKeyInvalid",
                  "anchor": "FirstRunConnectKeyInvalid"
                },
                {
                  "name": "FirstRunConnectKeyNoNetwork",
                  "anchor": "FirstRunConnectKeyNoNetwork"
                },
                {
                  "name": "FirstRunConnectKeyNoQuota",
                  "anchor": "FirstRunConnectKeyNoQuota"
                }
              ],
              "decl": "const (\n\tFirstRunConnectIdle         FirstRunConnectStatus = \"idle\"\n\tFirstRunConnectConnecting   FirstRunConnectStatus = \"connecting\"\n\tFirstRunConnectConnected    FirstRunConnectStatus = \"connected\"\n\tFirstRunConnectTimeout      FirstRunConnectStatus = \"timeout\"\n\tFirstRunConnectKeyIdle      FirstRunConnectStatus = \"key_idle\"\n\tFirstRunConnectKeyValid     FirstRunConnectStatus = \"key_valid\"\n\tFirstRunConnectKeyInvalid   FirstRunConnectStatus = \"key_invalid\"\n\tFirstRunConnectKeyNoNetwork FirstRunConnectStatus = \"key_no_network\"\n\tFirstRunConnectKeyNoQuota   FirstRunConnectStatus = \"key_no_quota\"\n)",
              "doc": "",
              "file": "pkg/editor/first_run.go",
              "line": 90
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunConnectStep",
          "anchor": "FirstRunConnectStep",
          "decl": "type FirstRunConnectStep struct {\n\tText    string\n\tDone    bool\n\tWaiting bool\n\tStrong  bool\n}",
          "doc": "FirstRunConnectStep is one checklist row inside the Connect in place card.\n",
          "file": "pkg/editor/first_run.go",
          "line": 114,
          "members": [
            {
              "name": "Text",
              "anchor": "FirstRunConnectStep.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Done",
              "anchor": "FirstRunConnectStep.Done",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Waiting",
              "anchor": "FirstRunConnectStep.Waiting",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Strong",
              "anchor": "FirstRunConnectStep.Strong",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunGhost",
          "anchor": "FirstRunGhost",
          "decl": "type FirstRunGhost struct {\n\tID    string\n\tStep  int\n\tLabel string\n\tKind  string // \"room\", \"floor\", \"slime\", \"coin\", \"lever\", \"door\"\n\tX, Y  float32\n\tW, H  float32\n}",
          "doc": "FirstRunGhost marks a planned addition on the read-only template preview viewport.\n",
          "file": "pkg/editor/first_run.go",
          "line": 170,
          "members": [
            {
              "name": "ID",
              "anchor": "FirstRunGhost.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "FirstRunGhost.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "FirstRunGhost.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "FirstRunGhost.Kind",
              "kind": "field",
              "doc": "\"room\", \"floor\", \"slime\", \"coin\", \"lever\", \"door\""
            },
            {
              "name": "X",
              "anchor": "FirstRunGhost.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "FirstRunGhost.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "FirstRunGhost.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "FirstRunGhost.H",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunPlan",
          "anchor": "FirstRunPlan",
          "decl": "type FirstRunPlan struct {\n\tProjectName      string\n\tTargetDir        string\n\tDisplayPath      string\n\tModule           string\n\tIdea             string\n\tTemplate         string\n\tTemplateTitle    string\n\tSceneName        string\n\tEstimatedFiles   int\n\tEstimatedObjects int\n\tEstimatedMinutes int\n\tQuestion         *FirstRunPlanQuestion\n\tSelectedAnswer   string\n\tSteps            []FirstRunPlanStep\n\tTemplateShapes   []FirstRunPreviewShape\n\tGhosts           []FirstRunGhost\n\tApproved         bool\n}",
          "doc": "FirstRunPlan is the agent's proposed plan shown before Approve creates the project folder.\n",
          "file": "pkg/editor/first_run.go",
          "line": 180,
          "members": [
            {
              "name": "ProjectName",
              "anchor": "FirstRunPlan.ProjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetDir",
              "anchor": "FirstRunPlan.TargetDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DisplayPath",
              "anchor": "FirstRunPlan.DisplayPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Module",
              "anchor": "FirstRunPlan.Module",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Idea",
              "anchor": "FirstRunPlan.Idea",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Template",
              "anchor": "FirstRunPlan.Template",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TemplateTitle",
              "anchor": "FirstRunPlan.TemplateTitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneName",
              "anchor": "FirstRunPlan.SceneName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EstimatedFiles",
              "anchor": "FirstRunPlan.EstimatedFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EstimatedObjects",
              "anchor": "FirstRunPlan.EstimatedObjects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EstimatedMinutes",
              "anchor": "FirstRunPlan.EstimatedMinutes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Question",
              "anchor": "FirstRunPlan.Question",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedAnswer",
              "anchor": "FirstRunPlan.SelectedAnswer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "FirstRunPlan.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TemplateShapes",
              "anchor": "FirstRunPlan.TemplateShapes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ghosts",
              "anchor": "FirstRunPlan.Ghosts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Approved",
              "anchor": "FirstRunPlan.Approved",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultFirstRunPlan",
              "anchor": "DefaultFirstRunPlan",
              "decl": "func DefaultFirstRunPlan(req FirstRunPlanRequest) *FirstRunPlan",
              "doc": "DefaultFirstRunPlan picks the closest template for req.Idea and returns a deterministic,\nreviewable first plan matching docs/design/editor/FirstRun.dc.html.\n",
              "file": "pkg/editor/first_run.go",
              "line": 1289
            }
          ],
          "methods": []
        },
        {
          "name": "FirstRunPlanDeviation",
          "anchor": "FirstRunPlanDeviation",
          "decl": "type FirstRunPlanDeviation struct {\n\tSummary string\n}",
          "doc": "FirstRunPlanDeviation describes an intentional difference between the approved plan and the built result,\ndisplayed in amber on top of the first review.\n",
          "file": "pkg/editor/first_run.go",
          "line": 254,
          "members": [
            {
              "name": "Summary",
              "anchor": "FirstRunPlanDeviation.Summary",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunPlanOption",
          "anchor": "FirstRunPlanOption",
          "decl": "type FirstRunPlanOption struct {\n\tID        string\n\tLabel     string\n\tNote      string\n\tSuggested bool\n\tVerb      string\n}",
          "doc": "FirstRunPlanOption is one answer card for a clarifying question in the first plan.\n",
          "file": "pkg/editor/first_run.go",
          "line": 135,
          "members": [
            {
              "name": "ID",
              "anchor": "FirstRunPlanOption.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "FirstRunPlanOption.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "FirstRunPlanOption.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Suggested",
              "anchor": "FirstRunPlanOption.Suggested",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Verb",
              "anchor": "FirstRunPlanOption.Verb",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunPlanQuestion",
          "anchor": "FirstRunPlanQuestion",
          "decl": "type FirstRunPlanQuestion struct {\n\tPrompt  string\n\tOptions []FirstRunPlanOption\n}",
          "doc": "FirstRunPlanQuestion is an optional clarifying question asked in the first plan before building.\n",
          "file": "pkg/editor/first_run.go",
          "line": 144,
          "members": [
            {
              "name": "Prompt",
              "anchor": "FirstRunPlanQuestion.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Options",
              "anchor": "FirstRunPlanQuestion.Options",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunPlanRequest",
          "anchor": "FirstRunPlanRequest",
          "decl": "type FirstRunPlanRequest struct {\n\tIdea        string\n\tProjectName string\n\tParentDir   string\n\tTargetDir   string\n\tDisplayPath string\n\tModule      string\n\tTemplates   []ProjectTemplate\n\tSelected    string\n}",
          "doc": "FirstRunPlanRequest carries the Start Screen's idea, validated project name, and available templates\nto Editor.FirstRunPlanner before any project folder is created.\n",
          "file": "pkg/editor/first_run.go",
          "line": 123,
          "members": [
            {
              "name": "Idea",
              "anchor": "FirstRunPlanRequest.Idea",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectName",
              "anchor": "FirstRunPlanRequest.ProjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParentDir",
              "anchor": "FirstRunPlanRequest.ParentDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetDir",
              "anchor": "FirstRunPlanRequest.TargetDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DisplayPath",
              "anchor": "FirstRunPlanRequest.DisplayPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Module",
              "anchor": "FirstRunPlanRequest.Module",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Templates",
              "anchor": "FirstRunPlanRequest.Templates",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Selected",
              "anchor": "FirstRunPlanRequest.Selected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunPlanStep",
          "anchor": "FirstRunPlanStep",
          "decl": "type FirstRunPlanStep struct {\n\tNumber     int\n\tTitle      string\n\tFilesLabel string\n\tPermission string\n}",
          "doc": "FirstRunPlanStep is one numbered step in the first plan card.\n",
          "file": "pkg/editor/first_run.go",
          "line": 150,
          "members": [
            {
              "name": "Number",
              "anchor": "FirstRunPlanStep.Number",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "FirstRunPlanStep.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FilesLabel",
              "anchor": "FirstRunPlanStep.FilesLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Permission",
              "anchor": "FirstRunPlanStep.Permission",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunPreviewShape",
          "anchor": "FirstRunPreviewShape",
          "decl": "type FirstRunPreviewShape struct {\n\tID       string\n\tChangeID string\n\tKind     string // \"room\", \"floor\", \"platform\", \"divider\", \"knight\", \"slime\", \"coin\", \"lever\", \"door\"\n\tX, Y     float32\n\tW, H     float32\n\tOutline  string // \"\", \"added\", \"agent\", \"problem\", \"planned\"\n\tBadge    string\n}",
          "doc": "FirstRunPreviewShape is a schematic 2D preview box rendered in the read-only template preview,\nlive building viewport, or first-review viewport.\n",
          "file": "pkg/editor/first_run.go",
          "line": 159,
          "members": [
            {
              "name": "ID",
              "anchor": "FirstRunPreviewShape.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangeID",
              "anchor": "FirstRunPreviewShape.ChangeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "FirstRunPreviewShape.Kind",
              "kind": "field",
              "doc": "\"room\", \"floor\", \"platform\", \"divider\", \"knight\", \"slime\", \"coin\", \"lever\", \"door\""
            },
            {
              "name": "X",
              "anchor": "FirstRunPreviewShape.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "FirstRunPreviewShape.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "FirstRunPreviewShape.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "FirstRunPreviewShape.H",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Outline",
              "anchor": "FirstRunPreviewShape.Outline",
              "kind": "field",
              "doc": "\"\", \"added\", \"agent\", \"problem\", \"planned\""
            },
            {
              "name": "Badge",
              "anchor": "FirstRunPreviewShape.Badge",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunReviewChange",
          "anchor": "FirstRunReviewChange",
          "decl": "type FirstRunReviewChange struct {\n\tID        string\n\tSign      string // \"+\"\n\tTitle     string\n\tDetail    string\n\tObjectIDs []string\n\tReverted  bool\n}",
          "doc": "FirstRunReviewChange is one grouped change entry in the first review's left list.\n",
          "file": "pkg/editor/first_run.go",
          "line": 259,
          "members": [
            {
              "name": "ID",
              "anchor": "FirstRunReviewChange.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "FirstRunReviewChange.Sign",
              "kind": "field",
              "doc": "\"+\""
            },
            {
              "name": "Title",
              "anchor": "FirstRunReviewChange.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "FirstRunReviewChange.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectIDs",
              "anchor": "FirstRunReviewChange.ObjectIDs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "FirstRunReviewChange.Reverted",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunReviewSnapshot",
          "anchor": "FirstRunReviewSnapshot",
          "decl": "type FirstRunReviewSnapshot struct {\n\tProjectName    string\n\tProjectDir     string\n\tSceneRelPath   string\n\tPlanStepsDone  int\n\tPlanStepsTotal int\n\tDeviations     []FirstRunPlanDeviation\n\tChanges        []FirstRunReviewChange\n\tShapes         []FirstRunPreviewShape\n\tBeforeMode     bool\n\tPeekBefore     bool\n\tShowingBefore  bool\n\tKeptCount      int\n\tTotalCount     int\n\tActiveTipIndex int\n\tActiveTipID    string\n}",
          "doc": "FirstRunReviewSnapshot is a read-only copy of the active First Review screen state.\n",
          "file": "pkg/editor/first_run.go",
          "line": 311,
          "members": [
            {
              "name": "ProjectName",
              "anchor": "FirstRunReviewSnapshot.ProjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectDir",
              "anchor": "FirstRunReviewSnapshot.ProjectDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneRelPath",
              "anchor": "FirstRunReviewSnapshot.SceneRelPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanStepsDone",
              "anchor": "FirstRunReviewSnapshot.PlanStepsDone",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanStepsTotal",
              "anchor": "FirstRunReviewSnapshot.PlanStepsTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Deviations",
              "anchor": "FirstRunReviewSnapshot.Deviations",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changes",
              "anchor": "FirstRunReviewSnapshot.Changes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shapes",
              "anchor": "FirstRunReviewSnapshot.Shapes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BeforeMode",
              "anchor": "FirstRunReviewSnapshot.BeforeMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PeekBefore",
              "anchor": "FirstRunReviewSnapshot.PeekBefore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ShowingBefore",
              "anchor": "FirstRunReviewSnapshot.ShowingBefore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptCount",
              "anchor": "FirstRunReviewSnapshot.KeptCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalCount",
              "anchor": "FirstRunReviewSnapshot.TotalCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveTipIndex",
              "anchor": "FirstRunReviewSnapshot.ActiveTipIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveTipID",
              "anchor": "FirstRunReviewSnapshot.ActiveTipID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FirstRunStage",
          "anchor": "FirstRunStage",
          "decl": "type FirstRunStage int",
          "doc": "FirstRunStage identifies the active stage of the Start with AI first-run journey\n(docs/design/editor/FirstRun.dc.html).\n",
          "file": "pkg/editor/first_run.go",
          "line": 25,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FirstRunStageNone",
                  "anchor": "FirstRunStageNone"
                },
                {
                  "name": "FirstRunStageConnect",
                  "anchor": "FirstRunStageConnect"
                },
                {
                  "name": "FirstRunStagePlan",
                  "anchor": "FirstRunStagePlan"
                },
                {
                  "name": "FirstRunStageBuilding",
                  "anchor": "FirstRunStageBuilding"
                },
                {
                  "name": "FirstRunStageReview",
                  "anchor": "FirstRunStageReview"
                }
              ],
              "decl": "const (\n\t// FirstRunStageNone means no first-run flow step is active (normal Start Screen or working editor).\n\tFirstRunStageNone FirstRunStage = iota\n\t// FirstRunStageConnect shows Connect an agent in place on the Start Screen while preserving idea and name.\n\tFirstRunStageConnect\n\t// FirstRunStagePlan shows the read-only template preview with planned ghosts and the agent's first plan before any folder is created.\n\tFirstRunStagePlan\n\t// FirstRunStageBuilding shows the working layout with the 5-stage bar, live object counts, Esc/Cancel confirmation, and check-failure fix proposal.\n\tFirstRunStageBuilding\n\t// FirstRunStageReview shows the first review with the plan summary, amber deviations, Before/After peek, per-change toggles, and one-time onboarding tips.\n\tFirstRunStageReview\n)",
              "doc": "",
              "file": "pkg/editor/first_run.go",
              "line": 27
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "FirstRunStage.String",
              "recv": "FirstRunStage",
              "decl": "func (s FirstRunStage) String() string",
              "doc": "String returns a human-readable stage name.\n",
              "file": "pkg/editor/first_run.go",
              "line": 41
            }
          ]
        },
        {
          "name": "GameProcess",
          "anchor": "GameProcess",
          "decl": "type GameProcess interface {\n\t// Wait blocks until the process exits and returns its exit error, if any.\n\tWait() error\n\t// Stop terminates the process and every child process it started.\n\tStop() error\n}",
          "doc": "GameProcess represents a running child game process owned by the editor.\n",
          "file": "pkg/editor/run_game.go",
          "line": 48,
          "members": [
            {
              "name": "Wait",
              "anchor": "GameProcess.Wait",
              "kind": "method",
              "doc": "Wait blocks until the process exits and returns its exit error, if any."
            },
            {
              "name": "Stop",
              "anchor": "GameProcess.Stop",
              "kind": "method",
              "doc": "Stop terminates the process and every child process it started."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GenerateAssetParams",
          "anchor": "GenerateAssetParams",
          "decl": "type GenerateAssetParams struct {\n\t// TargetPath is the project-relative slash path where the asset will be written once picked (for example \"art/characters/slime_frost.png\").\n\tTargetPath string\n\t// Generator names the connected MCP generator server to invoke; empty picks the first connected server matching Kind.\n\tGenerator string\n\t// Kind selects images or sound; empty is inferred from TargetPath's extension or Generator's kind.\n\tKind AssetGeneratorKind\n\t// Model optionally requests a specific generator model.\n\tModel string\n\t// Prompt is the generation prompt sent to the MCP server.\n\tPrompt string\n\t// UserPrompt is an optional human-facing summary quote shown in the request header (defaults to Prompt).\n\tUserPrompt string\n\t// References lists project-relative asset or brief references sent to the generator (for example \"art/characters/slime.png\", \"brief.yaml#art\").\n\tReferences []string\n\t// Count is the number of candidates to request (defaults to 4 for images and 3 for sounds).\n\tCount int\n\t// BaseSeed optionally suggests a starting seed.\n\tBaseSeed *int64\n\t// VaryFromSeed optionally requests variations anchored on an earlier candidate's seed.\n\tVaryFromSeed *int64\n\t// Refine optionally adds refinement words while keeping the same references.\n\tRefine string\n}",
          "doc": "GenerateAssetParams configures an MCP asset generation call.\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 216,
          "members": [
            {
              "name": "TargetPath",
              "anchor": "GenerateAssetParams.TargetPath",
              "kind": "field",
              "doc": "TargetPath is the project-relative slash path where the asset will be written once picked (for example \"art/characters/slime_frost.png\")."
            },
            {
              "name": "Generator",
              "anchor": "GenerateAssetParams.Generator",
              "kind": "field",
              "doc": "Generator names the connected MCP generator server to invoke; empty picks the first connected server matching Kind."
            },
            {
              "name": "Kind",
              "anchor": "GenerateAssetParams.Kind",
              "kind": "field",
              "doc": "Kind selects images or sound; empty is inferred from TargetPath's extension or Generator's kind."
            },
            {
              "name": "Model",
              "anchor": "GenerateAssetParams.Model",
              "kind": "field",
              "doc": "Model optionally requests a specific generator model."
            },
            {
              "name": "Prompt",
              "anchor": "GenerateAssetParams.Prompt",
              "kind": "field",
              "doc": "Prompt is the generation prompt sent to the MCP server."
            },
            {
              "name": "UserPrompt",
              "anchor": "GenerateAssetParams.UserPrompt",
              "kind": "field",
              "doc": "UserPrompt is an optional human-facing summary quote shown in the request header (defaults to Prompt)."
            },
            {
              "name": "References",
              "anchor": "GenerateAssetParams.References",
              "kind": "field",
              "doc": "References lists project-relative asset or brief references sent to the generator (for example \"art/characters/slime.png\", \"brief.yaml#art\")."
            },
            {
              "name": "Count",
              "anchor": "GenerateAssetParams.Count",
              "kind": "field",
              "doc": "Count is the number of candidates to request (defaults to 4 for images and 3 for sounds)."
            },
            {
              "name": "BaseSeed",
              "anchor": "GenerateAssetParams.BaseSeed",
              "kind": "field",
              "doc": "BaseSeed optionally suggests a starting seed."
            },
            {
              "name": "VaryFromSeed",
              "anchor": "GenerateAssetParams.VaryFromSeed",
              "kind": "field",
              "doc": "VaryFromSeed optionally requests variations anchored on an earlier candidate's seed."
            },
            {
              "name": "Refine",
              "anchor": "GenerateAssetParams.Refine",
              "kind": "field",
              "doc": "Refine optionally adds refinement words while keeping the same references."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GeneratedCandidate",
          "anchor": "GeneratedCandidate",
          "decl": "type GeneratedCandidate struct {\n\tID                    string\n\tSeed                  *int64\n\tMimeType              string\n\tCleanBytes            []byte\n\tWidth                 int\n\tHeight                int\n\tPixels                *image.RGBA\n\tImage                 core.ImageSource\n\tColorCount            int\n\tHasAntiAliasing       bool\n\tContrastRatio         float64\n\tDuration              time.Duration\n\tSampleRate            int\n\tChannels              int\n\tLoudnessDBFS          float64\n\tPeakDBFS              float64\n\tAudioLoudnessMeasured bool\n\tWaveform              []float32\n\tAudioCheckPass        bool\n\tAudioCheckText        string\n\tChecks                []AssetStyleCheck\n\tLicense               string\n\tCommercialUse         bool\n}",
          "doc": "GeneratedCandidate holds one untrusted candidate decoded strictly in memory (never written to disk before Pick).\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 160,
          "members": [
            {
              "name": "ID",
              "anchor": "GeneratedCandidate.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "GeneratedCandidate.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MimeType",
              "anchor": "GeneratedCandidate.MimeType",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CleanBytes",
              "anchor": "GeneratedCandidate.CleanBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "GeneratedCandidate.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "GeneratedCandidate.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pixels",
              "anchor": "GeneratedCandidate.Pixels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Image",
              "anchor": "GeneratedCandidate.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorCount",
              "anchor": "GeneratedCandidate.ColorCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasAntiAliasing",
              "anchor": "GeneratedCandidate.HasAntiAliasing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ContrastRatio",
              "anchor": "GeneratedCandidate.ContrastRatio",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "GeneratedCandidate.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SampleRate",
              "anchor": "GeneratedCandidate.SampleRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Channels",
              "anchor": "GeneratedCandidate.Channels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LoudnessDBFS",
              "anchor": "GeneratedCandidate.LoudnessDBFS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PeakDBFS",
              "anchor": "GeneratedCandidate.PeakDBFS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AudioLoudnessMeasured",
              "anchor": "GeneratedCandidate.AudioLoudnessMeasured",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Waveform",
              "anchor": "GeneratedCandidate.Waveform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AudioCheckPass",
              "anchor": "GeneratedCandidate.AudioCheckPass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AudioCheckText",
              "anchor": "GeneratedCandidate.AudioCheckText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checks",
              "anchor": "GeneratedCandidate.Checks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "License",
              "anchor": "GeneratedCandidate.License",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CommercialUse",
              "anchor": "GeneratedCandidate.CommercialUse",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GeneratorServerConfig",
          "anchor": "GeneratorServerConfig",
          "decl": "type GeneratorServerConfig struct {\n\t// Name uniquely identifies the generator server (for example \"pixel-gen\" or \"sfx-gen\").\n\tName string `yaml:\"name\" schema:\"required,minLength=1\"`\n\t// Kind declares what kind of assets the generator produces (\"images\" or \"sound\").\n\tKind AssetGeneratorKind `yaml:\"kind\" schema:\"required,enum=images|sound\"`\n\t// Command is the executable launched over stdio MCP transport when connecting from Settings > Tools.\n\tCommand string `yaml:\"command,omitempty\"`\n\t// Args are command-line arguments passed to Command.\n\tArgs []string `yaml:\"args,omitempty\"`\n\t// Tool optionally names the specific MCP tool to invoke; empty selects the first matching generate tool advertised by the server.\n\tTool string `yaml:\"tool,omitempty\"`\n}",
          "doc": "GeneratorServerConfig describes one MCP generator server configured under Settings > Tools.\n",
          "file": "pkg/editor/asset_gen.go",
          "line": 71,
          "members": [
            {
              "name": "Name",
              "anchor": "GeneratorServerConfig.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the generator server (for example \"pixel-gen\" or \"sfx-gen\")."
            },
            {
              "name": "Kind",
              "anchor": "GeneratorServerConfig.Kind",
              "kind": "field",
              "doc": "Kind declares what kind of assets the generator produces (\"images\" or \"sound\")."
            },
            {
              "name": "Command",
              "anchor": "GeneratorServerConfig.Command",
              "kind": "field",
              "doc": "Command is the executable launched over stdio MCP transport when connecting from Settings > Tools."
            },
            {
              "name": "Args",
              "anchor": "GeneratorServerConfig.Args",
              "kind": "field",
              "doc": "Args are command-line arguments passed to Command."
            },
            {
              "name": "Tool",
              "anchor": "GeneratorServerConfig.Tool",
              "kind": "field",
              "doc": "Tool optionally names the specific MCP tool to invoke; empty selects the first matching generate tool advertised by the server."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GizmoAxis3D",
          "anchor": "GizmoAxis3D",
          "decl": "type GizmoAxis3D int",
          "doc": "GizmoAxis3D identifies an axis, plane, or center handle on a 3D transform gizmo.\n",
          "file": "pkg/editor/state.go",
          "line": 197,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Axis3DNone",
                  "anchor": "Axis3DNone"
                },
                {
                  "name": "Axis3DX",
                  "anchor": "Axis3DX"
                },
                {
                  "name": "Axis3DY",
                  "anchor": "Axis3DY"
                },
                {
                  "name": "Axis3DZ",
                  "anchor": "Axis3DZ"
                },
                {
                  "name": "Axis3DXY",
                  "anchor": "Axis3DXY"
                },
                {
                  "name": "Axis3DXZ",
                  "anchor": "Axis3DXZ"
                },
                {
                  "name": "Axis3DYZ",
                  "anchor": "Axis3DYZ"
                },
                {
                  "name": "Axis3DAll",
                  "anchor": "Axis3DAll"
                }
              ],
              "decl": "const (\n\tAxis3DNone GizmoAxis3D = iota\n\tAxis3DX\n\tAxis3DY\n\tAxis3DZ\n\tAxis3DXY\n\tAxis3DXZ\n\tAxis3DYZ\n\tAxis3DAll\n)",
              "doc": "",
              "file": "pkg/editor/state.go",
              "line": 199
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "GizmoAxis3D.String",
              "recv": "GizmoAxis3D",
              "decl": "func (a GizmoAxis3D) String() string",
              "doc": "String returns a human-readable label for the gizmo axis.\n",
              "file": "pkg/editor/state.go",
              "line": 211
            }
          ]
        },
        {
          "name": "GizmoDrag3D",
          "anchor": "GizmoDrag3D",
          "decl": "type GizmoDrag3D struct {\n\t// ObjectID is the ID of the object carrying Component.\n\tObjectID string\n\t// Component is the component type name being edited.\n\tComponent string\n\t// Handle is the picked handle in object space as it was when the drag began.\n\tHandle GizmoHandle3D\n\t// StartRay and Ray are the camera pick rays in world space at drag start and the current pointer position.\n\tStartRay math3d.Ray\n\tRay      math3d.Ray\n\t// StartLocalRay and LocalRay are StartRay and Ray transformed into the object's local space.\n\tStartLocalRay math3d.Ray\n\tLocalRay      math3d.Ray\n\t// ObjectToWorld and WorldToObject transform between object space and world space at drag start.\n\tObjectToWorld math3d.Mat4\n\tWorldToObject math3d.Mat4\n\t// StartPoint is the handle's object-space reference point at drag start (Position for point/box, midpoint for line).\n\tStartPoint math3d.Vec3\n\t// ScreenStart and ScreenCurrent are the viewport pixel coordinates at drag start and now.\n\tScreenStart   [2]float32\n\tScreenCurrent [2]float32\n\t// ViewportWidth and ViewportHeight are the 3D viewport's size in points.\n\tViewportWidth  float32\n\tViewportHeight float32\n\t// Camera is the editor's 3D camera for the drag.\n\tCamera OrbitCamera3D\n\t// contains filtered or unexported fields\n}",
          "doc": "GizmoDrag3D describes an in-progress drag of a 3D component gizmo handle.\n",
          "file": "pkg/editor/gizmo3d.go",
          "line": 303,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "GizmoDrag3D.ObjectID",
              "kind": "field",
              "doc": "ObjectID is the ID of the object carrying Component."
            },
            {
              "name": "Component",
              "anchor": "GizmoDrag3D.Component",
              "kind": "field",
              "doc": "Component is the component type name being edited."
            },
            {
              "name": "Handle",
              "anchor": "GizmoDrag3D.Handle",
              "kind": "field",
              "doc": "Handle is the picked handle in object space as it was when the drag began."
            },
            {
              "name": "StartRay",
              "anchor": "GizmoDrag3D.StartRay",
              "kind": "field",
              "doc": "StartRay and Ray are the camera pick rays in world space at drag start and the current pointer position."
            },
            {
              "name": "Ray",
              "anchor": "GizmoDrag3D.Ray",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartLocalRay",
              "anchor": "GizmoDrag3D.StartLocalRay",
              "kind": "field",
              "doc": "StartLocalRay and LocalRay are StartRay and Ray transformed into the object's local space."
            },
            {
              "name": "LocalRay",
              "anchor": "GizmoDrag3D.LocalRay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectToWorld",
              "anchor": "GizmoDrag3D.ObjectToWorld",
              "kind": "field",
              "doc": "ObjectToWorld and WorldToObject transform between object space and world space at drag start."
            },
            {
              "name": "WorldToObject",
              "anchor": "GizmoDrag3D.WorldToObject",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartPoint",
              "anchor": "GizmoDrag3D.StartPoint",
              "kind": "field",
              "doc": "StartPoint is the handle's object-space reference point at drag start (Position for point/box, midpoint for line)."
            },
            {
              "name": "ScreenStart",
              "anchor": "GizmoDrag3D.ScreenStart",
              "kind": "field",
              "doc": "ScreenStart and ScreenCurrent are the viewport pixel coordinates at drag start and now."
            },
            {
              "name": "ScreenCurrent",
              "anchor": "GizmoDrag3D.ScreenCurrent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportWidth",
              "anchor": "GizmoDrag3D.ViewportWidth",
              "kind": "field",
              "doc": "ViewportWidth and ViewportHeight are the 3D viewport's size in points."
            },
            {
              "name": "ViewportHeight",
              "anchor": "GizmoDrag3D.ViewportHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Camera",
              "anchor": "GizmoDrag3D.Camera",
              "kind": "field",
              "doc": "Camera is the editor's 3D camera for the drag."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AxisDelta",
              "anchor": "GizmoDrag3D.AxisDelta",
              "recv": "GizmoDrag3D",
              "decl": "func (d GizmoDrag3D) AxisDelta(axis math3d.Vec3) (float32, bool)",
              "doc": "AxisDelta computes the signed displacement along object-space axis from the drag start to the\ncurrent pointer ray, falling back to screen-space projection when the axis is nearly parallel\nto the view ray.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 340
            },
            {
              "name": "PlaneDelta",
              "anchor": "GizmoDrag3D.PlaneDelta",
              "recv": "GizmoDrag3D",
              "decl": "func (d GizmoDrag3D) PlaneDelta(planeNormal math3d.Vec3) (math3d.Vec3, bool)",
              "doc": "PlaneDelta returns the object-space displacement between StartLocalRay and LocalRay intersected\nwith the plane passing through StartPoint with planeNormal.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 421
            },
            {
              "name": "PlanePoint",
              "anchor": "GizmoDrag3D.PlanePoint",
              "recv": "GizmoDrag3D",
              "decl": "func (d GizmoDrag3D) PlanePoint(planePoint, planeNormal math3d.Vec3) (math3d.Vec3, bool)",
              "doc": "PlanePoint intersects LocalRay with the object-space plane passing through planePoint with planeNormal.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 400
            },
            {
              "name": "ViewPlaneDelta",
              "anchor": "GizmoDrag3D.ViewPlaneDelta",
              "recv": "GizmoDrag3D",
              "decl": "func (d GizmoDrag3D) ViewPlaneDelta() (math3d.Vec3, bool)",
              "doc": "ViewPlaneDelta returns the object-space displacement across the camera-facing plane passing through StartPoint.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 444
            }
          ]
        },
        {
          "name": "GizmoHandle2D",
          "anchor": "GizmoHandle2D",
          "decl": "type GizmoHandle2D int",
          "doc": "GizmoHandle2D names a part of the 2D transform gizmo drawn on the selected object, or the object itself, that a drag in the 2D viewport takes.\n",
          "file": "pkg/editor/gizmo2d.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Handle2DNone",
                  "anchor": "Handle2DNone"
                },
                {
                  "name": "Handle2DBody",
                  "anchor": "Handle2DBody"
                },
                {
                  "name": "Handle2DMove",
                  "anchor": "Handle2DMove"
                },
                {
                  "name": "Handle2DMoveX",
                  "anchor": "Handle2DMoveX"
                },
                {
                  "name": "Handle2DMoveY",
                  "anchor": "Handle2DMoveY"
                },
                {
                  "name": "Handle2DRotate",
                  "anchor": "Handle2DRotate"
                },
                {
                  "name": "Handle2DScaleN",
                  "anchor": "Handle2DScaleN"
                },
                {
                  "name": "Handle2DScaleE",
                  "anchor": "Handle2DScaleE"
                },
                {
                  "name": "Handle2DScaleS",
                  "anchor": "Handle2DScaleS"
                },
                {
                  "name": "Handle2DScaleW",
                  "anchor": "Handle2DScaleW"
                },
                {
                  "name": "Handle2DScaleNE",
                  "anchor": "Handle2DScaleNE"
                },
                {
                  "name": "Handle2DScaleSE",
                  "anchor": "Handle2DScaleSE"
                },
                {
                  "name": "Handle2DScaleSW",
                  "anchor": "Handle2DScaleSW"
                },
                {
                  "name": "Handle2DScaleNW",
                  "anchor": "Handle2DScaleNW"
                },
                {
                  "name": "Handle2DLightRadius",
                  "anchor": "Handle2DLightRadius"
                },
                {
                  "name": "Handle2DLightSpotAngle",
                  "anchor": "Handle2DLightSpotAngle"
                },
                {
                  "name": "Handle2DLightSpotDirection",
                  "anchor": "Handle2DLightSpotDirection"
                },
                {
                  "name": "Handle2DOccluderVertex",
                  "anchor": "Handle2DOccluderVertex"
                },
                {
                  "name": "Handle2DOccluderEdgeMid",
                  "anchor": "Handle2DOccluderEdgeMid"
                },
                {
                  "name": "Handle2DOccluderRectN",
                  "anchor": "Handle2DOccluderRectN"
                },
                {
                  "name": "Handle2DOccluderRectE",
                  "anchor": "Handle2DOccluderRectE"
                },
                {
                  "name": "Handle2DOccluderRectS",
                  "anchor": "Handle2DOccluderRectS"
                },
                {
                  "name": "Handle2DOccluderRectW",
                  "anchor": "Handle2DOccluderRectW"
                },
                {
                  "name": "Handle2DNavRegionVertex",
                  "anchor": "Handle2DNavRegionVertex"
                },
                {
                  "name": "Handle2DNavRegionEdgeMid",
                  "anchor": "Handle2DNavRegionEdgeMid"
                }
              ],
              "decl": "const (\n\t// Handle2DNone is no handle: a drag that starts away from the gizmo and every object.\n\tHandle2DNone GizmoHandle2D = iota\n\t// Handle2DBody is the object itself: a drag moves it freely, keeping the offset from where it was grabbed.\n\tHandle2DBody\n\t// Handle2DMove is the square at the object's origin: a drag moves it freely.\n\tHandle2DMove\n\t// Handle2DMoveX is the arrow along the object's own X axis: a drag moves it along that axis only.\n\tHandle2DMoveX\n\t// Handle2DMoveY is the arrow along the object's own Y axis: a drag moves it along that axis only.\n\tHandle2DMoveY\n\t// Handle2DRotate is the ring around the object: a drag turns it about its origin.\n\tHandle2DRotate\n\t// Handle2DScaleN is the middle of the outline's top edge, its local -Y side: a drag scales the object's Y about its origin.\n\tHandle2DScaleN\n\t// Handle2DScaleE is the middle of the outline's right edge, its local +X side: a drag scales the object's X about its origin.\n\tHandle2DScaleE\n\t// Handle2DScaleS is the middle of the outline's bottom edge, its local +Y side: a drag scales the object's Y about its origin.\n\tHandle2DScaleS\n\t// Handle2DScaleW is the middle of the outline's left edge, its local -X side: a drag scales the object's X about its origin.\n\tHandle2DScaleW\n\t// Handle2DScaleNE is the outline's top right corner: a drag scales the object's X and Y about its origin.\n\tHandle2DScaleNE\n\t// Handle2DScaleSE is the outline's bottom right corner: a drag scales the object's X and Y about its origin.\n\tHandle2DScaleSE\n\t// Handle2DScaleSW is the outline's bottom left corner: a drag scales the object's X and Y about its origin.\n\tHandle2DScaleSW\n\t// Handle2DScaleNW is the outline's top left corner: a drag scales the object's X and Y about its origin.\n\tHandle2DScaleNW\n\t// Handle2DLightRadius is the radius handle on a selected object with a light2d component: a drag adjusts light2d.radius.\n\tHandle2DLightRadius\n\t// Handle2DLightSpotAngle is either cone-edge handle on a selected spotlight (light2d kind \"spot\"): a drag adjusts light2d.angle.\n\tHandle2DLightSpotAngle\n\t// Handle2DLightSpotDirection is the aim handle along a selected spotlight's center ray: a drag adjusts light2d.direction.\n\tHandle2DLightSpotDirection\n\t// Handle2DOccluderVertex is a vertex handle on a selected polygon occluder2d: a drag moves that vertex in local space.\n\tHandle2DOccluderVertex\n\t// Handle2DOccluderEdgeMid is an edge-midpoint handle on a selected polygon occluder2d: a drag inserts a new vertex on that edge and moves it.\n\tHandle2DOccluderEdgeMid\n\t// Handle2DOccluderRectN is the top edge handle on a selected rect occluder2d: a drag resizes occluder2d.height.\n\tHandle2DOccluderRectN\n\t// Handle2DOccluderRectE is the right edge handle on a selected rect occluder2d: a drag resizes occluder2d.width.\n\tHandle2DOccluderRectE\n\t// Handle2DOccluderRectS is the bottom edge handle on a selected rect occluder2d: a drag resizes occluder2d.height.\n\tHandle2DOccluderRectS\n\t// Handle2DOccluderRectW is the left edge handle on a selected rect occluder2d: a drag resizes occluder2d.width.\n\tHandle2DOccluderRectW\n\t// Handle2DNavRegionVertex is a vertex handle on a selected navregion2d polygon: a drag moves that vertex in local space.\n\tHandle2DNavRegionVertex\n\t// Handle2DNavRegionEdgeMid is an edge-midpoint handle on a selected navregion2d polygon: a drag inserts a new vertex on that edge and moves it.\n\tHandle2DNavRegionEdgeMid\n)",
              "doc": "",
              "file": "pkg/editor/gizmo2d.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsComponentHandle",
              "anchor": "GizmoHandle2D.IsComponentHandle",
              "recv": "GizmoHandle2D",
              "decl": "func (h GizmoHandle2D) IsComponentHandle() bool",
              "doc": "IsComponentHandle reports whether h edits a component (light2d, occluder2d, or navregion2d) rather than the object's 2D transform.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 145
            },
            {
              "name": "IsLight",
              "anchor": "GizmoHandle2D.IsLight",
              "recv": "GizmoHandle2D",
              "decl": "func (h GizmoHandle2D) IsLight() bool",
              "doc": "IsLight reports whether h is one of the 2D light radius, spot-angle, or direction handles.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 130
            },
            {
              "name": "IsNavRegion",
              "anchor": "GizmoHandle2D.IsNavRegion",
              "recv": "GizmoHandle2D",
              "decl": "func (h GizmoHandle2D) IsNavRegion() bool",
              "doc": "IsNavRegion reports whether h is one of the 2D navigation region polygon vertex or edge-midpoint handles.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 140
            },
            {
              "name": "IsOccluder",
              "anchor": "GizmoHandle2D.IsOccluder",
              "recv": "GizmoHandle2D",
              "decl": "func (h GizmoHandle2D) IsOccluder() bool",
              "doc": "IsOccluder reports whether h is one of the 2D occluder polygon or rect shape handles.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 135
            },
            {
              "name": "IsScale",
              "anchor": "GizmoHandle2D.IsScale",
              "recv": "GizmoHandle2D",
              "decl": "func (h GizmoHandle2D) IsScale() bool",
              "doc": "IsScale reports whether h is one of the corner or edge scale handles.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 127
            },
            {
              "name": "String",
              "anchor": "GizmoHandle2D.String",
              "recv": "GizmoHandle2D",
              "decl": "func (h GizmoHandle2D) String() string",
              "doc": "String returns a human-readable label for the handle.\n",
              "file": "pkg/editor/gizmo2d.go",
              "line": 71
            }
          ]
        },
        {
          "name": "GizmoHandle3D",
          "anchor": "GizmoHandle3D",
          "decl": "type GizmoHandle3D struct {\n\t// ID identifies the handle within its ComponentGizmo3D and is passed to ComponentGizmo3D.Drag.\n\t// A handle with an empty ID or DisplayOnly=true is drawn as visual feedback and is not pickable.\n\tID string\n\t// Kind selects whether the handle is a point, line segment, or wireframe box.\n\tKind GizmoHandleKind3D\n\t// Position is the object-space location of a GizmoHandlePoint3D or center of a GizmoHandleBox3D.\n\tPosition math3d.Vec3\n\t// Start and End are the object-space endpoints of a GizmoHandleLine3D.\n\tStart math3d.Vec3\n\tEnd   math3d.Vec3\n\t// Size holds the object-space full extents (width, height, depth) of a GizmoHandleBox3D.\n\tSize math3d.Vec3\n\t// Color is the handle's stroke/fill color; zero uses the editor's default accent color.\n\tColor core.Color\n\t// Radius is the screen-space marker radius in points for GizmoHandlePoint3D (defaults to 5 when <= 0).\n\tRadius float32\n\t// LineWidth is the stroke width in points for GizmoHandleLine3D and GizmoHandleBox3D (defaults to 1.75 when <= 0).\n\tLineWidth float32\n\t// DisplayOnly marks a visual-only primitive that draws over the 3D view without intercepting drags.\n\tDisplayOnly bool\n\t// Axis optionally records the handle's primary object-space direction for drag helpers (for example math3d.Vec3{X: 1}).\n\tAxis math3d.Vec3\n\t// Label is an optional short label drawn beside the handle while active.\n\tLabel string\n}",
          "doc": "GizmoHandle3D describes one visual or interactive 3D gizmo handle in object space.\n",
          "file": "pkg/editor/gizmo3d.go",
          "line": 229,
          "members": [
            {
              "name": "ID",
              "anchor": "GizmoHandle3D.ID",
              "kind": "field",
              "doc": "ID identifies the handle within its ComponentGizmo3D and is passed to ComponentGizmo3D.Drag.\nA handle with an empty ID or DisplayOnly=true is drawn as visual feedback and is not pickable."
            },
            {
              "name": "Kind",
              "anchor": "GizmoHandle3D.Kind",
              "kind": "field",
              "doc": "Kind selects whether the handle is a point, line segment, or wireframe box."
            },
            {
              "name": "Position",
              "anchor": "GizmoHandle3D.Position",
              "kind": "field",
              "doc": "Position is the object-space location of a GizmoHandlePoint3D or center of a GizmoHandleBox3D."
            },
            {
              "name": "Start",
              "anchor": "GizmoHandle3D.Start",
              "kind": "field",
              "doc": "Start and End are the object-space endpoints of a GizmoHandleLine3D."
            },
            {
              "name": "End",
              "anchor": "GizmoHandle3D.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Size",
              "anchor": "GizmoHandle3D.Size",
              "kind": "field",
              "doc": "Size holds the object-space full extents (width, height, depth) of a GizmoHandleBox3D."
            },
            {
              "name": "Color",
              "anchor": "GizmoHandle3D.Color",
              "kind": "field",
              "doc": "Color is the handle's stroke/fill color; zero uses the editor's default accent color."
            },
            {
              "name": "Radius",
              "anchor": "GizmoHandle3D.Radius",
              "kind": "field",
              "doc": "Radius is the screen-space marker radius in points for GizmoHandlePoint3D (defaults to 5 when <= 0)."
            },
            {
              "name": "LineWidth",
              "anchor": "GizmoHandle3D.LineWidth",
              "kind": "field",
              "doc": "LineWidth is the stroke width in points for GizmoHandleLine3D and GizmoHandleBox3D (defaults to 1.75 when <= 0)."
            },
            {
              "name": "DisplayOnly",
              "anchor": "GizmoHandle3D.DisplayOnly",
              "kind": "field",
              "doc": "DisplayOnly marks a visual-only primitive that draws over the 3D view without intercepting drags."
            },
            {
              "name": "Axis",
              "anchor": "GizmoHandle3D.Axis",
              "kind": "field",
              "doc": "Axis optionally records the handle's primary object-space direction for drag helpers (for example math3d.Vec3{X: 1})."
            },
            {
              "name": "Label",
              "anchor": "GizmoHandle3D.Label",
              "kind": "field",
              "doc": "Label is an optional short label drawn beside the handle while active."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GizmoHandleKind3D",
          "anchor": "GizmoHandleKind3D",
          "decl": "type GizmoHandleKind3D int",
          "doc": "GizmoHandleKind3D identifies the object-space geometry of a 3D gizmo handle.\n",
          "file": "pkg/editor/gizmo3d.go",
          "line": 203,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GizmoHandlePoint3D",
                  "anchor": "GizmoHandlePoint3D"
                },
                {
                  "name": "GizmoHandleLine3D",
                  "anchor": "GizmoHandleLine3D"
                },
                {
                  "name": "GizmoHandleBox3D",
                  "anchor": "GizmoHandleBox3D"
                }
              ],
              "decl": "const (\n\t// GizmoHandlePoint3D is a point handle at Position in object space.\n\tGizmoHandlePoint3D GizmoHandleKind3D = iota\n\t// GizmoHandleLine3D is a line segment handle from Start to End in object space.\n\tGizmoHandleLine3D\n\t// GizmoHandleBox3D is a wireframe box handle centered at Position with full extents Size in object space.\n\tGizmoHandleBox3D\n)",
              "doc": "",
              "file": "pkg/editor/gizmo3d.go",
              "line": 205
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "GizmoHandleKind3D.String",
              "recv": "GizmoHandleKind3D",
              "decl": "func (k GizmoHandleKind3D) String() string",
              "doc": "String returns a human-readable name for k.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 215
            }
          ]
        },
        {
          "name": "GizmoMode3D",
          "anchor": "GizmoMode3D",
          "decl": "type GizmoMode3D int",
          "doc": "GizmoMode3D selects the active 3D transform gizmo operation.\n",
          "file": "pkg/editor/state.go",
          "line": 144,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Gizmo3DTranslate",
                  "anchor": "Gizmo3DTranslate"
                },
                {
                  "name": "Gizmo3DRotate",
                  "anchor": "Gizmo3DRotate"
                },
                {
                  "name": "Gizmo3DScale",
                  "anchor": "Gizmo3DScale"
                },
                {
                  "name": "Gizmo3DCollider",
                  "anchor": "Gizmo3DCollider"
                }
              ],
              "decl": "const (\n\tGizmo3DTranslate GizmoMode3D = iota\n\tGizmo3DRotate\n\tGizmo3DScale\n\t// Gizmo3DCollider shows draggable size handles on the selected object's 3D collider or trigger.\n\tGizmo3DCollider\n)",
              "doc": "",
              "file": "pkg/editor/state.go",
              "line": 146
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "GizmoMode3D.String",
              "recv": "GizmoMode3D",
              "decl": "func (m GizmoMode3D) String() string",
              "doc": "String returns a human-readable label for the 3D gizmo mode.\n",
              "file": "pkg/editor/state.go",
              "line": 155
            }
          ]
        },
        {
          "name": "GizmoSpace3D",
          "anchor": "GizmoSpace3D",
          "decl": "type GizmoSpace3D int",
          "doc": "GizmoSpace3D selects whether the 3D transform gizmo aligns with world axes (Global)\nor the selected object's world orientation (Local).\n",
          "file": "pkg/editor/state.go",
          "line": 234,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GizmoSpaceGlobal",
                  "anchor": "GizmoSpaceGlobal"
                },
                {
                  "name": "GizmoSpaceLocal",
                  "anchor": "GizmoSpaceLocal"
                }
              ],
              "decl": "const (\n\t// GizmoSpaceGlobal aligns 3D transform gizmo axes with world X, Y, Z.\n\tGizmoSpaceGlobal GizmoSpace3D = iota\n\t// GizmoSpaceLocal aligns 3D transform gizmo axes with the selected object's orientation.\n\tGizmoSpaceLocal\n)",
              "doc": "",
              "file": "pkg/editor/state.go",
              "line": 236
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "GizmoSpace3D.String",
              "recv": "GizmoSpace3D",
              "decl": "func (s GizmoSpace3D) String() string",
              "doc": "String returns \"Global\" or \"Local\".\n",
              "file": "pkg/editor/state.go",
              "line": 244
            }
          ]
        },
        {
          "name": "GridMapPalette",
          "anchor": "GridMapPalette",
          "decl": "type GridMapPalette struct {\n\t// Path is the open GridMap's path (or name).\n\tPath string\n\t// MeshLibrary is the glTF mesh library path referenced by the GridMap.\n\tMeshLibrary string\n\t// Floor is the active integer floor height (Y coordinate).\n\tFloor int\n\t// Orientation is the active orientation index in 0..23.\n\tOrientation uint8\n\t// Items are the mesh library's items in ascending ID order.\n\tItems []GridMapPaletteItem\n\t// Message explains why Items is empty, or is empty when Items is non-empty.\n\tMessage string\n}",
          "doc": "GridMapPalette is what the 3D GridMap palette shows for the active GridMap:\nevery item in its mesh library with bounds/geometry for its thumbnail, plus\nthe current floor height and orientation, or a Message explaining why none\nare available.\n",
          "file": "pkg/editor/gridmap_palette.go",
          "line": 21,
          "members": [
            {
              "name": "Path",
              "anchor": "GridMapPalette.Path",
              "kind": "field",
              "doc": "Path is the open GridMap's path (or name)."
            },
            {
              "name": "MeshLibrary",
              "anchor": "GridMapPalette.MeshLibrary",
              "kind": "field",
              "doc": "MeshLibrary is the glTF mesh library path referenced by the GridMap."
            },
            {
              "name": "Floor",
              "anchor": "GridMapPalette.Floor",
              "kind": "field",
              "doc": "Floor is the active integer floor height (Y coordinate)."
            },
            {
              "name": "Orientation",
              "anchor": "GridMapPalette.Orientation",
              "kind": "field",
              "doc": "Orientation is the active orientation index in 0..23."
            },
            {
              "name": "Items",
              "anchor": "GridMapPalette.Items",
              "kind": "field",
              "doc": "Items are the mesh library's items in ascending ID order."
            },
            {
              "name": "Message",
              "anchor": "GridMapPalette.Message",
              "kind": "field",
              "doc": "Message explains why Items is empty, or is empty when Items is non-empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Has",
              "anchor": "GridMapPalette.Has",
              "recv": "GridMapPalette",
              "decl": "func (p GridMapPalette) Has(id uint16) bool",
              "doc": "Has reports whether p contains an item with the given tile ID.\n",
              "file": "pkg/editor/gridmap_palette.go",
              "line": 51
            }
          ]
        },
        {
          "name": "GridMapPaletteItem",
          "anchor": "GridMapPaletteItem",
          "decl": "type GridMapPaletteItem struct {\n\t// ID is the MeshLibrary tile ID written into GridMap cells.\n\tID uint16\n\t// Name is the tile's name in the MeshLibrary and YAML file.\n\tName string\n\t// MeshID is the glTF mesh index in the mesh library.\n\tMeshID uint32\n\t// LocalBounds is the tile's local axis-aligned bounding box.\n\tLocalBounds math3d.AABB\n\t// Thumbnail holds pre-extracted isometric 3D triangles for rendering the item's thumbnail.\n\tThumbnail []gridMapThumbTri\n}",
          "doc": "GridMapPaletteItem is one selectable mesh tile in a GridMapPalette.\n",
          "file": "pkg/editor/gridmap_palette.go",
          "line": 37,
          "members": [
            {
              "name": "ID",
              "anchor": "GridMapPaletteItem.ID",
              "kind": "field",
              "doc": "ID is the MeshLibrary tile ID written into GridMap cells."
            },
            {
              "name": "Name",
              "anchor": "GridMapPaletteItem.Name",
              "kind": "field",
              "doc": "Name is the tile's name in the MeshLibrary and YAML file."
            },
            {
              "name": "MeshID",
              "anchor": "GridMapPaletteItem.MeshID",
              "kind": "field",
              "doc": "MeshID is the glTF mesh index in the mesh library."
            },
            {
              "name": "LocalBounds",
              "anchor": "GridMapPaletteItem.LocalBounds",
              "kind": "field",
              "doc": "LocalBounds is the tile's local axis-aligned bounding box."
            },
            {
              "name": "Thumbnail",
              "anchor": "GridMapPaletteItem.Thumbnail",
              "kind": "field",
              "doc": "Thumbnail holds pre-extracted isometric 3D triangles for rendering the item's thumbnail."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridMapTool",
          "anchor": "GridMapTool",
          "decl": "type GridMapTool int",
          "doc": "GridMapTool selects the active 3D GridMap editing tool in the 3D viewport.\n",
          "file": "pkg/editor/gridmap.go",
          "line": 30,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GridMapToolNone",
                  "anchor": "GridMapToolNone"
                },
                {
                  "name": "GridMapToolPaint",
                  "anchor": "GridMapToolPaint"
                },
                {
                  "name": "GridMapToolErase",
                  "anchor": "GridMapToolErase"
                },
                {
                  "name": "GridMapToolPick",
                  "anchor": "GridMapToolPick"
                },
                {
                  "name": "GridMapToolBoxFill",
                  "anchor": "GridMapToolBoxFill"
                }
              ],
              "decl": "const (\n\t// GridMapToolNone leaves the 3D viewport in normal object selection and transform gizmo mode.\n\tGridMapToolNone GridMapTool = iota\n\t// GridMapToolPaint paints the active mesh library item at the active orientation onto cells on the current floor height.\n\tGridMapToolPaint\n\t// GridMapToolErase clears cells on the current floor height.\n\tGridMapToolErase\n\t// GridMapToolPick picks the tile item and orientation from the cell under the pointer and switches to Paint.\n\tGridMapToolPick\n\t// GridMapToolBoxFill drags a box on the current floor height and fills it with the active item and orientation.\n\tGridMapToolBoxFill\n)",
              "doc": "",
              "file": "pkg/editor/gridmap.go",
              "line": 32
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "GridMapTool.String",
              "recv": "GridMapTool",
              "decl": "func (t GridMapTool) String() string",
              "doc": "String returns a human-readable label for the GridMap tool.\n",
              "file": "pkg/editor/gridmap.go",
              "line": 46
            }
          ]
        },
        {
          "name": "HUDFrameLayout",
          "anchor": "HUDFrameLayout",
          "decl": "type HUDFrameLayout struct {\n\tDevice gameui.DeviceProfile\n\tLabel  string\n\tScale  float32\n\tX, Y   float32\n\tW, H   float32\n\tBezel  float32\n\tBuilt  *gameui.BuiltScreen\n}",
          "doc": "HUDFrameLayout describes one of the four simultaneous reference device previews on the multi-size canvas.\n",
          "file": "pkg/editor/hud_layout.go",
          "line": 117,
          "members": [
            {
              "name": "Device",
              "anchor": "HUDFrameLayout.Device",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "HUDFrameLayout.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "HUDFrameLayout.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "HUDFrameLayout.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "HUDFrameLayout.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "HUDFrameLayout.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "HUDFrameLayout.H",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bezel",
              "anchor": "HUDFrameLayout.Bezel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Built",
              "anchor": "HUDFrameLayout.Built",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HUDOverlays",
          "anchor": "HUDOverlays",
          "decl": "type HUDOverlays struct {\n\tSafeAreas  bool\n\tAnchors    bool\n\tTouchAreas bool\n\tFocusOrder bool\n}",
          "doc": "HUDOverlays controls the four diagnostic overlays shown on the HUD layout multi-size canvas.\n",
          "file": "pkg/editor/hud_layout.go",
          "line": 31,
          "members": [
            {
              "name": "SafeAreas",
              "anchor": "HUDOverlays.SafeAreas",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Anchors",
              "anchor": "HUDOverlays.Anchors",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TouchAreas",
              "anchor": "HUDOverlays.TouchAreas",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusOrder",
              "anchor": "HUDOverlays.FocusOrder",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultHUDOverlays",
              "anchor": "DefaultHUDOverlays",
              "decl": "func DefaultHUDOverlays() HUDOverlays",
              "doc": "DefaultHUDOverlays returns the default overlay set with all four overlays enabled, matching docs/design/editor/HUDLayout.dc.html.\n",
              "file": "pkg/editor/hud_layout.go",
              "line": 39
            }
          ],
          "methods": []
        },
        {
          "name": "HUDProblem",
          "anchor": "HUDProblem",
          "decl": "type HUDProblem struct {\n\tCode   gameui.ScreenIssueCode\n\tNodeID string\n\tTitle  string\n\tDetail string\n\tLocale string\n\tOverPx float32\n\tIssue  gameui.ScreenIssue\n}",
          "doc": "HUDProblem is one diagnostic listed under GAME CHECK for the active screen and language.\n",
          "file": "pkg/editor/hud_layout.go",
          "line": 96,
          "members": [
            {
              "name": "Code",
              "anchor": "HUDProblem.Code",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NodeID",
              "anchor": "HUDProblem.NodeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "HUDProblem.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "HUDProblem.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Locale",
              "anchor": "HUDProblem.Locale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OverPx",
              "anchor": "HUDProblem.OverPx",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Issue",
              "anchor": "HUDProblem.Issue",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HUDPromptRequest",
          "anchor": "HUDPromptRequest",
          "decl": "type HUDPromptRequest struct {\n\tPrompt     string\n\tScreenPath string\n\tScreenName string\n\tSelectedID string\n\tLocale     string\n\tProblems   []HUDProblem\n}",
          "doc": "HUDPromptRequest captures an agent prompt submitted from the HUD layout composer or \"Ask the agent to fix N\" button.\n",
          "file": "pkg/editor/hud_layout.go",
          "line": 107,
          "members": [
            {
              "name": "Prompt",
              "anchor": "HUDPromptRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScreenPath",
              "anchor": "HUDPromptRequest.ScreenPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScreenName",
              "anchor": "HUDPromptRequest.ScreenName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedID",
              "anchor": "HUDPromptRequest.SelectedID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Locale",
              "anchor": "HUDPromptRequest.Locale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Problems",
              "anchor": "HUDPromptRequest.Problems",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HUDScreenEntry",
          "anchor": "HUDScreenEntry",
          "decl": "type HUDScreenEntry struct {\n\t// Path is the screen's slash-separated path from the project root (or file path for standalone screens).\n\tPath string\n\t// Name is the human-readable screen name (typically the file stem without .screen.yaml).\n\tName string\n\t// NodeCount is the total number of UI nodes in the screen tree.\n\tNodeCount int\n\t// ProblemCount is the number of GAME CHECK problems for this screen in the active language.\n\tProblemCount int\n\t// LoadErr holds any parse or validation error encountered when reading this screen file.\n\tLoadErr error\n}",
          "doc": "HUDScreenEntry summarizes one *.screen.yaml file listed in the left rail's SCREENS section.\n",
          "file": "pkg/editor/hud_layout.go",
          "line": 49,
          "members": [
            {
              "name": "Path",
              "anchor": "HUDScreenEntry.Path",
              "kind": "field",
              "doc": "Path is the screen's slash-separated path from the project root (or file path for standalone screens)."
            },
            {
              "name": "Name",
              "anchor": "HUDScreenEntry.Name",
              "kind": "field",
              "doc": "Name is the human-readable screen name (typically the file stem without .screen.yaml)."
            },
            {
              "name": "NodeCount",
              "anchor": "HUDScreenEntry.NodeCount",
              "kind": "field",
              "doc": "NodeCount is the total number of UI nodes in the screen tree."
            },
            {
              "name": "ProblemCount",
              "anchor": "HUDScreenEntry.ProblemCount",
              "kind": "field",
              "doc": "ProblemCount is the number of GAME CHECK problems for this screen in the active language."
            },
            {
              "name": "LoadErr",
              "anchor": "HUDScreenEntry.LoadErr",
              "kind": "field",
              "doc": "LoadErr holds any parse or validation error encountered when reading this screen file."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HUDTextWidthRow",
          "anchor": "HUDTextWidthRow",
          "decl": "type HUDTextWidthRow struct {\n\tNodeID   string\n\tTextKey  string\n\tBoxLabel string\n\tFitsText bool\n\tBoxWidth float32\n\tWidths   map[string]float32\n\tOverflow map[string]float32\n}",
          "doc": "HUDTextWidthRow is one row of the TEXT WIDTH, PX table comparing a text node's box against its width in every project locale.\n",
          "file": "pkg/editor/hud_layout.go",
          "line": 85,
          "members": [
            {
              "name": "NodeID",
              "anchor": "HUDTextWidthRow.NodeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextKey",
              "anchor": "HUDTextWidthRow.TextKey",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BoxLabel",
              "anchor": "HUDTextWidthRow.BoxLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FitsText",
              "anchor": "HUDTextWidthRow.FitsText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BoxWidth",
              "anchor": "HUDTextWidthRow.BoxWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Widths",
              "anchor": "HUDTextWidthRow.Widths",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Overflow",
              "anchor": "HUDTextWidthRow.Overflow",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HUDTreeRow",
          "anchor": "HUDTreeRow",
          "decl": "type HUDTreeRow struct {\n\t// ID is the ScreenNodeDoc.ID, or \"\" for the synthetic root screen row.\n\tID string\n\t// Name is the displayed label (node ID, or screen name on the root row).\n\tName string\n\t// Type is the ScreenNodeDoc.Type (empty on the synthetic root row).\n\tType gameui.ScreenNodeType\n\t// Depth is 0 for the root row and 1+ for nodes in the screen tree.\n\tDepth int\n\t// AnchorTag is the short monospace tag shown on the right (\"screen\", \"TL\", \"TC\", \"TR\", \"CL\", \"C\", \"CR\", \"BL\", \"BC\", \"BR\", \"FILL\", or \"\").\n\tAnchorTag string\n\t// HasProblem reports whether GAME CHECK found a problem on this node in the active language.\n\tHasProblem bool\n\t// ParentID is the containing node's ID, or \"\" for top-level screen nodes.\n\tParentID string\n\t// Index is the node's position inside its parent's children slice (or doc.Nodes).\n\tIndex int\n\t// SiblingLen is the total number of siblings in the parent container.\n\tSiblingLen int\n}",
          "doc": "HUDTreeRow is one flattened row of the active screen's NODES tree in the left rail.\n",
          "file": "pkg/editor/hud_layout.go",
          "line": 63,
          "members": [
            {
              "name": "ID",
              "anchor": "HUDTreeRow.ID",
              "kind": "field",
              "doc": "ID is the ScreenNodeDoc.ID, or \"\" for the synthetic root screen row."
            },
            {
              "name": "Name",
              "anchor": "HUDTreeRow.Name",
              "kind": "field",
              "doc": "Name is the displayed label (node ID, or screen name on the root row)."
            },
            {
              "name": "Type",
              "anchor": "HUDTreeRow.Type",
              "kind": "field",
              "doc": "Type is the ScreenNodeDoc.Type (empty on the synthetic root row)."
            },
            {
              "name": "Depth",
              "anchor": "HUDTreeRow.Depth",
              "kind": "field",
              "doc": "Depth is 0 for the root row and 1+ for nodes in the screen tree."
            },
            {
              "name": "AnchorTag",
              "anchor": "HUDTreeRow.AnchorTag",
              "kind": "field",
              "doc": "AnchorTag is the short monospace tag shown on the right (\"screen\", \"TL\", \"TC\", \"TR\", \"CL\", \"C\", \"CR\", \"BL\", \"BC\", \"BR\", \"FILL\", or \"\")."
            },
            {
              "name": "HasProblem",
              "anchor": "HUDTreeRow.HasProblem",
              "kind": "field",
              "doc": "HasProblem reports whether GAME CHECK found a problem on this node in the active language."
            },
            {
              "name": "ParentID",
              "anchor": "HUDTreeRow.ParentID",
              "kind": "field",
              "doc": "ParentID is the containing node's ID, or \"\" for top-level screen nodes."
            },
            {
              "name": "Index",
              "anchor": "HUDTreeRow.Index",
              "kind": "field",
              "doc": "Index is the node's position inside its parent's children slice (or doc.Nodes)."
            },
            {
              "name": "SiblingLen",
              "anchor": "HUDTreeRow.SiblingLen",
              "kind": "field",
              "doc": "SiblingLen is the total number of siblings in the parent container."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Handle3DKind",
          "anchor": "Handle3DKind",
          "decl": "type Handle3DKind int",
          "doc": "Handle3DKind identifies an interactive 3D viewport handle for editing a selected light or 3D camera.\n",
          "file": "pkg/editor/handles3d.go",
          "line": 14,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Handle3DNone",
                  "anchor": "Handle3DNone"
                },
                {
                  "name": "Handle3DLightDirection",
                  "anchor": "Handle3DLightDirection"
                },
                {
                  "name": "Handle3DLightRange",
                  "anchor": "Handle3DLightRange"
                },
                {
                  "name": "Handle3DLightOuterCone",
                  "anchor": "Handle3DLightOuterCone"
                },
                {
                  "name": "Handle3DLightInnerCone",
                  "anchor": "Handle3DLightInnerCone"
                },
                {
                  "name": "Handle3DCameraFOV",
                  "anchor": "Handle3DCameraFOV"
                },
                {
                  "name": "Handle3DCameraFar",
                  "anchor": "Handle3DCameraFar"
                },
                {
                  "name": "Handle3DProbeBoundsPosX",
                  "anchor": "Handle3DProbeBoundsPosX"
                },
                {
                  "name": "Handle3DProbeBoundsNegX",
                  "anchor": "Handle3DProbeBoundsNegX"
                },
                {
                  "name": "Handle3DProbeBoundsPosY",
                  "anchor": "Handle3DProbeBoundsPosY"
                },
                {
                  "name": "Handle3DProbeBoundsNegY",
                  "anchor": "Handle3DProbeBoundsNegY"
                },
                {
                  "name": "Handle3DProbeBoundsPosZ",
                  "anchor": "Handle3DProbeBoundsPosZ"
                },
                {
                  "name": "Handle3DProbeBoundsNegZ",
                  "anchor": "Handle3DProbeBoundsNegZ"
                }
              ],
              "decl": "const (\n\tHandle3DNone Handle3DKind = iota\n\t// Handle3DLightDirection aims a directional or spot light along the dragged direction.\n\tHandle3DLightDirection\n\t// Handle3DLightRange edits a point or spot light's range radius/distance.\n\tHandle3DLightRange\n\t// Handle3DLightOuterCone edits a spot light's outer cone half-angle (degrees).\n\tHandle3DLightOuterCone\n\t// Handle3DLightInnerCone edits a spot light's inner cone half-angle (degrees).\n\tHandle3DLightInnerCone\n\t// Handle3DCameraFOV edits a 3D camera's vertical FOV (perspective, degrees) or OrthoHeight (orthographic).\n\tHandle3DCameraFOV\n\t// Handle3DCameraFar edits a 3D camera's far clip plane distance.\n\tHandle3DCameraFar\n\t// Handle3DProbeBoundsPosX edits the +X face of a selected reflection probe or light probe grid's bounds box.\n\tHandle3DProbeBoundsPosX\n\t// Handle3DProbeBoundsNegX edits the -X face of a selected reflection probe or light probe grid's bounds box.\n\tHandle3DProbeBoundsNegX\n\t// Handle3DProbeBoundsPosY edits the +Y face of a selected reflection probe or light probe grid's bounds box.\n\tHandle3DProbeBoundsPosY\n\t// Handle3DProbeBoundsNegY edits the -Y face of a selected reflection probe or light probe grid's bounds box.\n\tHandle3DProbeBoundsNegY\n\t// Handle3DProbeBoundsPosZ edits the +Z face of a selected reflection probe or light probe grid's bounds box.\n\tHandle3DProbeBoundsPosZ\n\t// Handle3DProbeBoundsNegZ edits the -Z face of a selected reflection probe or light probe grid's bounds box.\n\tHandle3DProbeBoundsNegZ\n)",
              "doc": "",
              "file": "pkg/editor/handles3d.go",
              "line": 16
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Handle3DKind.String",
              "recv": "Handle3DKind",
              "decl": "func (h Handle3DKind) String() string",
              "doc": "String returns a human-readable label for the handle kind.\n",
              "file": "pkg/editor/handles3d.go",
              "line": 45
            }
          ]
        },
        {
          "name": "HeldPermissionLoosening",
          "anchor": "HeldPermissionLoosening",
          "decl": "type HeldPermissionLoosening struct {\n\tID               string                      `json:\"id\"`\n\tKind             HeldPermissionLooseningKind `json:\"kind\"`\n\tRuleIndex        int                         `json:\"ruleIndex\"`\n\tAction           PermissionAction            `json:\"action,omitempty\"`\n\tPatterns         []string                    `json:\"patterns,omitempty\"`\n\tCurrentProfile   PermissionProfile           `json:\"currentProfile,omitempty\"`\n\tIncomingProfile  PermissionProfile           `json:\"incomingProfile,omitempty\"`\n\tCurrentDecision  PermissionDecision          `json:\"currentDecision\"`\n\tIncomingDecision PermissionDecision          `json:\"incomingDecision\"`\n\tSource           string                      `json:\"source,omitempty\"`\n\tSummary          string                      `json:\"summary\"`\n}",
          "doc": "HeldPermissionLoosening represents one loosened rule or profile from an external permissions.yaml change\nthat is held (not used) until the person explicitly confirms it in Settings › Permissions.\n",
          "file": "pkg/editor/you_only.go",
          "line": 297,
          "members": [
            {
              "name": "ID",
              "anchor": "HeldPermissionLoosening.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "HeldPermissionLoosening.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RuleIndex",
              "anchor": "HeldPermissionLoosening.RuleIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Action",
              "anchor": "HeldPermissionLoosening.Action",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Patterns",
              "anchor": "HeldPermissionLoosening.Patterns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CurrentProfile",
              "anchor": "HeldPermissionLoosening.CurrentProfile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IncomingProfile",
              "anchor": "HeldPermissionLoosening.IncomingProfile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CurrentDecision",
              "anchor": "HeldPermissionLoosening.CurrentDecision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IncomingDecision",
              "anchor": "HeldPermissionLoosening.IncomingDecision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "HeldPermissionLoosening.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "HeldPermissionLoosening.Summary",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HeldPermissionLooseningKind",
          "anchor": "HeldPermissionLooseningKind",
          "decl": "type HeldPermissionLooseningKind string",
          "doc": "HeldPermissionLooseningKind classifies how an external permissions.yaml change loosened effective permissions.\n",
          "file": "pkg/editor/you_only.go",
          "line": 284,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "HeldLooseningRuleRelaxed",
                  "anchor": "HeldLooseningRuleRelaxed"
                },
                {
                  "name": "HeldLooseningRuleRemoved",
                  "anchor": "HeldLooseningRuleRemoved"
                },
                {
                  "name": "HeldLooseningProfileRelaxed",
                  "anchor": "HeldLooseningProfileRelaxed"
                }
              ],
              "decl": "const (\n\t// HeldLooseningRuleRelaxed marks a rule whose decision became looser (e.g. Deny -> Allow or Ask -> Allow).\n\tHeldLooseningRuleRelaxed HeldPermissionLooseningKind = \"rule_relaxed\"\n\t// HeldLooseningRuleRemoved marks a stricter rule that was removed or narrowed externally, loosening effective evaluation.\n\tHeldLooseningRuleRemoved HeldPermissionLooseningKind = \"rule_removed\"\n\t// HeldLooseningProfileRelaxed marks a base profile change to a looser preset (e.g. Balanced -> Autonomous).\n\tHeldLooseningProfileRelaxed HeldPermissionLooseningKind = \"profile_relaxed\"\n)",
              "doc": "",
              "file": "pkg/editor/you_only.go",
              "line": 286
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "History",
          "anchor": "History",
          "decl": "type History struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "History records executed Commands and supports linear undo and redo, a unified timeline of manual edits, agent turns, and saved points, plus non-destructive commit milestones.\n",
          "file": "pkg/editor/history.go",
          "line": 223,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHistory",
              "anchor": "NewHistory",
              "decl": "func NewHistory() *History",
              "doc": "NewHistory returns an empty undo/redo History.\n",
              "file": "pkg/editor/history.go",
              "line": 542
            }
          ],
          "methods": [
            {
              "name": "CanRedo",
              "anchor": "History.CanRedo",
              "recv": "*History",
              "decl": "func (h *History) CanRedo() bool",
              "doc": "CanRedo reports whether Redo has a command to re-apply.\n",
              "file": "pkg/editor/history.go",
              "line": 659
            },
            {
              "name": "CanUndo",
              "anchor": "History.CanUndo",
              "recv": "*History",
              "decl": "func (h *History) CanUndo() bool",
              "doc": "CanUndo reports whether Undo has a command to revert.\n",
              "file": "pkg/editor/history.go",
              "line": 647
            },
            {
              "name": "Clear",
              "anchor": "History.Clear",
              "recv": "*History",
              "decl": "func (h *History) Clear()",
              "doc": "Clear empties the command stack and timeline entries.\n",
              "file": "pkg/editor/history.go",
              "line": 664
            },
            {
              "name": "Entries",
              "anchor": "History.Entries",
              "recv": "*History",
              "decl": "func (h *History) Entries() []HistoryEntry",
              "doc": "Entries returns a copy of all recorded timeline entries, newest first.\n",
              "file": "pkg/editor/history.go",
              "line": 262
            },
            {
              "name": "Entry",
              "anchor": "History.Entry",
              "recv": "*History",
              "decl": "func (h *History) Entry(id uint64) (HistoryEntry, bool)",
              "doc": "Entry returns the timeline entry with ID id, or false when not found.\n",
              "file": "pkg/editor/history.go",
              "line": 290
            },
            {
              "name": "Execute",
              "anchor": "History.Execute",
              "recv": "*History",
              "decl": "func (h *History) Execute(cmd Command)",
              "doc": "Execute runs cmd.Do(), discards any redo tail beyond the current cursor, pushes cmd onto the stack, and notifies any change hook.\n",
              "file": "pkg/editor/history.go",
              "line": 547
            },
            {
              "name": "FilteredEntries",
              "anchor": "History.FilteredEntries",
              "recv": "*History",
              "decl": "func (h *History) FilteredEntries(filter HistoryFilter) []HistoryEntry",
              "doc": "FilteredEntries returns a copy of recorded timeline entries matching filter, newest first.\n",
              "file": "pkg/editor/history.go",
              "line": 267
            },
            {
              "name": "Group",
              "anchor": "History.Group",
              "recv": "*History",
              "decl": "func (h *History) Group(label string, fn func() error) error",
              "doc": "Group runs fn and records every command fn executes through h as one step labeled label, so that one Undo reverts them all, last first, and one Redo applies them again. When fn returns an error, Group undoes the commands fn executed, last first, records nothing and returns the error, leaving the history as it was. A group in which fn executes nothing records nothing. While fn runs, a nested Group joins the outer one, and a Clear drops what the group collected, since it belonged to the document the clear left behind; fn must not call Undo or Redo.\n",
              "file": "pkg/editor/history.go",
              "line": 804
            },
            {
              "name": "Index",
              "anchor": "History.Index",
              "recv": "*History",
              "decl": "func (h *History) Index() int",
              "doc": "Index returns the number of currently applied commands.\n",
              "file": "pkg/editor/history.go",
              "line": 692
            },
            {
              "name": "Len",
              "anchor": "History.Len",
              "recv": "*History",
              "decl": "func (h *History) Len() int",
              "doc": "Len returns the total number of commands retained in history (applied plus redoable).\n",
              "file": "pkg/editor/history.go",
              "line": 684
            },
            {
              "name": "MarkBranchPushed",
              "anchor": "History.MarkBranchPushed",
              "recv": "*History",
              "decl": "func (h *History) MarkBranchPushed(branch string)",
              "doc": "MarkBranchPushed marks all recorded milestones on branch as pushed.\n",
              "file": "pkg/editor/history.go",
              "line": 520
            },
            {
              "name": "Milestones",
              "anchor": "History.Milestones",
              "recv": "*History",
              "decl": "func (h *History) Milestones() []CommitMilestone",
              "doc": "Milestones returns a copy of all recorded commit milestones, most recent first.\n",
              "file": "pkg/editor/history.go",
              "line": 532
            },
            {
              "name": "RecordMilestone",
              "anchor": "History.RecordMilestone",
              "recv": "*History",
              "decl": "func (h *History) RecordMilestone(m CommitMilestone)",
              "doc": "RecordMilestone records a Git commit milestone in history without altering the undo/redo command stack or rebuilding the scene.\n",
              "file": "pkg/editor/history.go",
              "line": 512
            },
            {
              "name": "RecordSaved",
              "anchor": "History.RecordSaved",
              "recv": "*History",
              "decl": "func (h *History) RecordSaved(files []string, detail string, snap historySnapshot) HistoryEntry",
              "doc": "RecordSaved appends a saved-point marker to the timeline without altering the undo/redo stack.\n",
              "file": "pkg/editor/history.go",
              "line": 315
            },
            {
              "name": "Redo",
              "anchor": "History.Redo",
              "recv": "*History",
              "decl": "func (h *History) Redo() bool",
              "doc": "Redo re-applies the most recently undone command and returns true. It returns false when there is nothing to redo, and also when the command is one whose step can fail, such as a file move (MoveFile) that something on disk now blocks, and it failed; the command then stays undone. Editor.Redo reports why in the status bar.\n",
              "file": "pkg/editor/history.go",
              "line": 620
            },
            {
              "name": "RedoAuthor",
              "anchor": "History.RedoAuthor",
              "recv": "*History",
              "decl": "func (h *History) RedoAuthor() CommandAuthor",
              "doc": "RedoAuthor returns the author of the next command Redo would re-apply, or \"\" when nothing can be redone.\n",
              "file": "pkg/editor/history.go",
              "line": 750
            },
            {
              "name": "RedoLabel",
              "anchor": "History.RedoLabel",
              "recv": "*History",
              "decl": "func (h *History) RedoLabel() string",
              "doc": "RedoLabel returns the label of the next command Redo would re-apply, or \"\".\n",
              "file": "pkg/editor/history.go",
              "line": 734
            },
            {
              "name": "SetClock",
              "anchor": "History.SetClock",
              "recv": "*History",
              "decl": "func (h *History) SetClock(fn func() time.Time)",
              "doc": "SetClock sets the time source used to timestamp newly recorded history entries. Passing nil restores time.Now.\n",
              "file": "pkg/editor/history.go",
              "line": 247
            },
            {
              "name": "Undo",
              "anchor": "History.Undo",
              "recv": "*History",
              "decl": "func (h *History) Undo() bool",
              "doc": "Undo reverts the most recently executed command and returns true. It returns false when there is nothing to undo, and also when the command is one whose step can fail, such as a file move (MoveFile) that something on disk now blocks, and it failed; the command then stays applied. Editor.Undo reports why in the status bar.\n",
              "file": "pkg/editor/history.go",
              "line": 593
            },
            {
              "name": "UndoActor",
              "anchor": "History.UndoActor",
              "recv": "*History",
              "decl": "func (h *History) UndoActor() HistoryActor",
              "doc": "UndoActor returns who initiated the next command Undo would revert, or \"\" when nothing can be undone.\n",
              "file": "pkg/editor/history.go",
              "line": 716
            },
            {
              "name": "UndoAuthor",
              "anchor": "History.UndoAuthor",
              "recv": "*History",
              "decl": "func (h *History) UndoAuthor() CommandAuthor",
              "doc": "UndoAuthor returns the author of the next command Undo would revert, or \"\" when nothing can be undone.\n",
              "file": "pkg/editor/history.go",
              "line": 742
            },
            {
              "name": "UndoLabel",
              "anchor": "History.UndoLabel",
              "recv": "*History",
              "decl": "func (h *History) UndoLabel() string",
              "doc": "UndoLabel returns the label of the next command Undo would revert, or \"\".\n",
              "file": "pkg/editor/history.go",
              "line": 708
            }
          ]
        },
        {
          "name": "HistoryActor",
          "anchor": "HistoryActor",
          "decl": "type HistoryActor string",
          "doc": "HistoryActor identifies whether a History step was initiated by the person using the editor or by an AI agent.\n",
          "file": "pkg/editor/history.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "HistoryActorPerson",
                  "anchor": "HistoryActorPerson"
                },
                {
                  "name": "HistoryActorAgent",
                  "anchor": "HistoryActorAgent"
                }
              ],
              "decl": "const (\n\t// HistoryActorPerson attributes a command to the person using the editor.\n\tHistoryActorPerson HistoryActor = \"person\"\n\t// HistoryActorAgent attributes a command to an AI agent.\n\tHistoryActorAgent HistoryActor = \"agent\"\n)",
              "doc": "",
              "file": "pkg/editor/history.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HistoryAuthor",
          "anchor": "HistoryAuthor",
          "decl": "type HistoryAuthor string",
          "doc": "HistoryAuthor identifies who produced a timeline entry in History.\n",
          "file": "pkg/editor/history.go",
          "line": 61,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "HistoryAuthorYou",
                  "anchor": "HistoryAuthorYou"
                },
                {
                  "name": "HistoryAuthorAgent",
                  "anchor": "HistoryAuthorAgent"
                },
                {
                  "name": "HistoryAuthorGit",
                  "anchor": "HistoryAuthorGit"
                }
              ],
              "decl": "const (\n\t// HistoryAuthorYou marks edits made directly by the person in the editor.\n\tHistoryAuthorYou HistoryAuthor = \"you\"\n\t// HistoryAuthorAgent marks turns made by an AI agent (through MCP or kept reviews).\n\tHistoryAuthorAgent HistoryAuthor = \"agent\"\n\t// HistoryAuthorGit marks external Git working-tree transitions (such as switching branches).\n\tHistoryAuthorGit HistoryAuthor = \"git\"\n)",
              "doc": "",
              "file": "pkg/editor/history.go",
              "line": 63
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Label",
              "anchor": "HistoryAuthor.Label",
              "recv": "HistoryAuthor",
              "decl": "func (a HistoryAuthor) Label() string",
              "doc": "Label returns the human-readable author prefix used in the History panel and MCP readouts.\n",
              "file": "pkg/editor/history.go",
              "line": 73
            }
          ]
        },
        {
          "name": "HistoryEntry",
          "anchor": "HistoryEntry",
          "decl": "type HistoryEntry struct {\n\t// ID uniquely identifies this entry within the current History instance.\n\tID uint64\n\t// Kind is HistoryEntryEdit or HistoryEntrySaved.\n\tKind HistoryEntryKind\n\t// Author is who produced the step (HistoryAuthorYou, HistoryAuthorAgent, or HistoryAuthorGit; empty for saved markers).\n\tAuthor HistoryAuthor\n\t// Summary is the concise headline (for example \"moved Knight\", \"slimes and coins\", or \"Saved\").\n\tSummary string\n\t// Detail is the secondary description (for example \"x 416 → 452\", \"6 changes · kept 5\", or \"level_01.scene.yaml\").\n\tDetail string\n\t// Files lists the project-relative (or base) file paths touched by this entry.\n\tFiles []string\n\t// Timestamp is when the step was recorded.\n\tTimestamp time.Time\n\t// ChangeCount is the number of individual changes proposed in an agent turn (0 when not applicable).\n\tChangeCount int\n\t// KeptCount is the number of changes kept in an agent turn (0 when not applicable).\n\tKeptCount int\n\t// CommandIndex is the 1-based History command index right after this step ran, or 0 for saved markers and superseded steps.\n\tCommandIndex int\n\t// Undone reports whether this step is currently undone (ahead of the History undo cursor or superseded).\n\tUndone bool\n\t// RestoredFromID is non-zero when this step was created by restoring an earlier HistoryEntry.\n\tRestoredFromID uint64\n\t// CheckpointID is non-empty when this entry is backed by or belongs to a persistent checkpoint under .nsgo/checkpoints/.\n\tCheckpointID string\n\t// CheckpointKind identifies why a persistent checkpoint was created (\"turn\", \"task\", or \"automation\").\n\tCheckpointKind CheckpointKind\n\t// Persistent reports whether this entry is stored in .nsgo/checkpoints/ and survives editor restarts.\n\tPersistent bool\n}",
          "doc": "HistoryEntry is one visible row on the unified History timeline: a manual edit, an agent turn,\na Git/external reload, a non-destructive restore, or a saved-point marker.\n",
          "file": "pkg/editor/history.go",
          "line": 109,
          "members": [
            {
              "name": "ID",
              "anchor": "HistoryEntry.ID",
              "kind": "field",
              "doc": "ID uniquely identifies this entry within the current History instance."
            },
            {
              "name": "Kind",
              "anchor": "HistoryEntry.Kind",
              "kind": "field",
              "doc": "Kind is HistoryEntryEdit or HistoryEntrySaved."
            },
            {
              "name": "Author",
              "anchor": "HistoryEntry.Author",
              "kind": "field",
              "doc": "Author is who produced the step (HistoryAuthorYou, HistoryAuthorAgent, or HistoryAuthorGit; empty for saved markers)."
            },
            {
              "name": "Summary",
              "anchor": "HistoryEntry.Summary",
              "kind": "field",
              "doc": "Summary is the concise headline (for example \"moved Knight\", \"slimes and coins\", or \"Saved\")."
            },
            {
              "name": "Detail",
              "anchor": "HistoryEntry.Detail",
              "kind": "field",
              "doc": "Detail is the secondary description (for example \"x 416 → 452\", \"6 changes · kept 5\", or \"level_01.scene.yaml\")."
            },
            {
              "name": "Files",
              "anchor": "HistoryEntry.Files",
              "kind": "field",
              "doc": "Files lists the project-relative (or base) file paths touched by this entry."
            },
            {
              "name": "Timestamp",
              "anchor": "HistoryEntry.Timestamp",
              "kind": "field",
              "doc": "Timestamp is when the step was recorded."
            },
            {
              "name": "ChangeCount",
              "anchor": "HistoryEntry.ChangeCount",
              "kind": "field",
              "doc": "ChangeCount is the number of individual changes proposed in an agent turn (0 when not applicable)."
            },
            {
              "name": "KeptCount",
              "anchor": "HistoryEntry.KeptCount",
              "kind": "field",
              "doc": "KeptCount is the number of changes kept in an agent turn (0 when not applicable)."
            },
            {
              "name": "CommandIndex",
              "anchor": "HistoryEntry.CommandIndex",
              "kind": "field",
              "doc": "CommandIndex is the 1-based History command index right after this step ran, or 0 for saved markers and superseded steps."
            },
            {
              "name": "Undone",
              "anchor": "HistoryEntry.Undone",
              "kind": "field",
              "doc": "Undone reports whether this step is currently undone (ahead of the History undo cursor or superseded)."
            },
            {
              "name": "RestoredFromID",
              "anchor": "HistoryEntry.RestoredFromID",
              "kind": "field",
              "doc": "RestoredFromID is non-zero when this step was created by restoring an earlier HistoryEntry."
            },
            {
              "name": "CheckpointID",
              "anchor": "HistoryEntry.CheckpointID",
              "kind": "field",
              "doc": "CheckpointID is non-empty when this entry is backed by or belongs to a persistent checkpoint under .nsgo/checkpoints/."
            },
            {
              "name": "CheckpointKind",
              "anchor": "HistoryEntry.CheckpointKind",
              "kind": "field",
              "doc": "CheckpointKind identifies why a persistent checkpoint was created (\"turn\", \"task\", or \"automation\")."
            },
            {
              "name": "Persistent",
              "anchor": "HistoryEntry.Persistent",
              "kind": "field",
              "doc": "Persistent reports whether this entry is stored in .nsgo/checkpoints/ and survives editor restarts."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "HistoryEntry.Clone",
              "recv": "HistoryEntry",
              "decl": "func (e HistoryEntry) Clone() HistoryEntry",
              "doc": "Clone returns a deep copy of e so callers cannot mutate History's internal slice.\n",
              "file": "pkg/editor/history.go",
              "line": 143
            }
          ]
        },
        {
          "name": "HistoryEntryKind",
          "anchor": "HistoryEntryKind",
          "decl": "type HistoryEntryKind string",
          "doc": "HistoryEntryKind distinguishes undoable edit steps from saved-point markers on the History timeline.\n",
          "file": "pkg/editor/history.go",
          "line": 87,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "HistoryEntryEdit",
                  "anchor": "HistoryEntryEdit"
                },
                {
                  "name": "HistoryEntrySaved",
                  "anchor": "HistoryEntrySaved"
                },
                {
                  "name": "HistoryEntryCheckpoint",
                  "anchor": "HistoryEntryCheckpoint"
                }
              ],
              "decl": "const (\n\t// HistoryEntryEdit is a recorded manual edit, agent turn, external reload, or restore step.\n\tHistoryEntryEdit HistoryEntryKind = \"edit\"\n\t// HistoryEntrySaved is a saved-point marker recorded when files are persisted to disk or OnSave.\n\tHistoryEntrySaved HistoryEntryKind = \"saved\"\n\t// HistoryEntryCheckpoint is a persistent per-turn, task, or automation checkpoint stored under .nsgo/checkpoints/.\n\tHistoryEntryCheckpoint HistoryEntryKind = \"checkpoint\"\n)",
              "doc": "",
              "file": "pkg/editor/history.go",
              "line": 89
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HistoryFilter",
          "anchor": "HistoryFilter",
          "decl": "type HistoryFilter string",
          "doc": "HistoryFilter filters which entries the History panel or MCP history_list returns.\n",
          "file": "pkg/editor/history.go",
          "line": 99,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "HistoryFilterAll",
                  "anchor": "HistoryFilterAll"
                },
                {
                  "name": "HistoryFilterYou",
                  "anchor": "HistoryFilterYou"
                },
                {
                  "name": "HistoryFilterAgent",
                  "anchor": "HistoryFilterAgent"
                }
              ],
              "decl": "const (\n\tHistoryFilterAll   HistoryFilter = \"all\"\n\tHistoryFilterYou   HistoryFilter = \"you\"\n\tHistoryFilterAgent HistoryFilter = \"agent\"\n)",
              "doc": "",
              "file": "pkg/editor/history.go",
              "line": 101
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HistoryMeta",
          "anchor": "HistoryMeta",
          "decl": "type HistoryMeta struct {\n\tAuthor         HistoryAuthor\n\tSummary        string\n\tDetail         string\n\tFiles          []string\n\tChangeCount    int\n\tKeptCount      int\n\tRestoredFromID uint64\n\tBeforeFiles    map[string]historyFileSnapshot\n\tAfterFiles     map[string]historyFileSnapshot\n}",
          "doc": "HistoryMeta provides rich timeline metadata for a Command executed through History.\n",
          "file": "pkg/editor/history.go",
          "line": 149,
          "members": [
            {
              "name": "Author",
              "anchor": "HistoryMeta.Author",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "HistoryMeta.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "HistoryMeta.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "HistoryMeta.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangeCount",
              "anchor": "HistoryMeta.ChangeCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptCount",
              "anchor": "HistoryMeta.KeptCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestoredFromID",
              "anchor": "HistoryMeta.RestoredFromID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BeforeFiles",
              "anchor": "HistoryMeta.BeforeFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AfterFiles",
              "anchor": "HistoryMeta.AfterFiles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InputMapTab",
          "anchor": "InputMapTab",
          "decl": "type InputMapTab string",
          "doc": "InputMapTab selects which page of the Input Map panel is visible.\n",
          "file": "pkg/editor/input_map_panel.go",
          "line": 17,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "InputMapTabActions",
                  "anchor": "InputMapTabActions"
                },
                {
                  "name": "InputMapTabAxes",
                  "anchor": "InputMapTabAxes"
                }
              ],
              "decl": "const (\n\t// InputMapTabActions shows actions, bindings, key capture and the region canvas.\n\tInputMapTabActions InputMapTab = \"actions\"\n\t// InputMapTabAxes shows action axes, motion axes and gamepad stick axes.\n\tInputMapTabAxes InputMapTab = \"axes\"\n)",
              "doc": "",
              "file": "pkg/editor/input_map_panel.go",
              "line": 19
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Inspector",
          "anchor": "Inspector",
          "decl": "type Inspector struct {\n\t// Component is the component type name the inspector draws, as it is keyed under an object's components, with no control characters; its container has the test ID \"inspector-plugin-<plugin>-<component>\", which can collide as Panel.ID's can.\n\tComponent string\n\t// View builds the section's controls for the object objectID once when the inspector shows it, below the component's title. It reads rev inside reactive functions to follow the editor's state, and edits the component through Editor.SetComponentField; Editor.ComponentField reads a field with its registered default. As the generic fields do, its controls should be disabled while Editor.Playing reports true, and an edit the editor refuses should be shown with Editor.Report rather than dropped.\n\tView func(cx *core.Scope, ed *Editor, rev *core.Signal[uint64], objectID string) core.Node\n}",
          "doc": "Inspector draws the inspector's section for one component type in place of its generic fields.\n",
          "file": "pkg/editor/plugin.go",
          "line": 86,
          "members": [
            {
              "name": "Component",
              "anchor": "Inspector.Component",
              "kind": "field",
              "doc": "Component is the component type name the inspector draws, as it is keyed under an object's components, with no control characters; its container has the test ID \"inspector-plugin-<plugin>-<component>\", which can collide as Panel.ID's can."
            },
            {
              "name": "View",
              "anchor": "Inspector.View",
              "kind": "field",
              "doc": "View builds the section's controls for the object objectID once when the inspector shows it, below the component's title. It reads rev inside reactive functions to follow the editor's state, and edits the component through Editor.SetComponentField; Editor.ComponentField reads a field with its registered default. As the generic fields do, its controls should be disabled while Editor.Playing reports true, and an edit the editor refuses should be shown with Editor.Report rather than dropped."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InspectorFieldProblem",
          "anchor": "InspectorFieldProblem",
          "decl": "type InspectorFieldProblem struct {\n\tObjectID  string\n\tComponent string // empty for top-level object field or custom property\n\tField     string // e.g. \"alpha\", \"coyote\", or \"prop:<key>\"\n\tMessage   string\n}",
          "doc": "InspectorFieldProblem records a validation or project-check problem attached to a specific\nobject field so the inspector can show a problem pill beside the control and its section header.\n",
          "file": "pkg/editor/inspector_sections.go",
          "line": 96,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "InspectorFieldProblem.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "InspectorFieldProblem.Component",
              "kind": "field",
              "doc": "empty for top-level object field or custom property"
            },
            {
              "name": "Field",
              "anchor": "InspectorFieldProblem.Field",
              "kind": "field",
              "doc": "e.g. \"alpha\", \"coyote\", or \"prop:<key>\""
            },
            {
              "name": "Message",
              "anchor": "InspectorFieldProblem.Message",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InspectorReviewChange",
          "anchor": "InspectorReviewChange",
          "decl": "type InspectorReviewChange struct {\n\tObjectID  string\n\tComponent string // empty for top-level object field or custom property\n\tField     string // e.g. \"x\", \"speed\", or \"prop:<key>\"\n\tOldValue  string\n\tNewValue  string\n}",
          "doc": "InspectorReviewChange records a field value modified in an open agent review so the inspector\ncan highlight the field and display \"was <OldValue> · in review\".\n",
          "file": "pkg/editor/inspector_sections.go",
          "line": 86,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "InspectorReviewChange.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "InspectorReviewChange.Component",
              "kind": "field",
              "doc": "empty for top-level object field or custom property"
            },
            {
              "name": "Field",
              "anchor": "InspectorReviewChange.Field",
              "kind": "field",
              "doc": "e.g. \"x\", \"speed\", or \"prop:<key>\""
            },
            {
              "name": "OldValue",
              "anchor": "InspectorReviewChange.OldValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewValue",
              "anchor": "InspectorReviewChange.NewValue",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InspectorScrubField",
          "anchor": "InspectorScrubField",
          "decl": "type InspectorScrubField struct {\n\tObjectID string\n\tField    string\n\tStep     float64\n\tMin      *float64\n\tMax      *float64\n\tInteger  bool\n}",
          "doc": "InspectorScrubField identifies one numeric field of an object that can be scrubbed by dragging its label.\n\nField names either a built-in object field (\"x\", \"y\", \"z\", \"rotation\", \"scaleX\", \"scaleY\",\n\"alpha\", \"originX\", \"originY\", \"posZ\", \"rotX\", \"rotY\", \"rotZ\", \"scaleZ\", \"depth\"), a custom\nproperty (\"prop:<key>\"), or a component field (\"comp:<component>.<field>\").\n",
          "file": "pkg/editor/inspector_sections.go",
          "line": 67,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "InspectorScrubField.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "InspectorScrubField.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "InspectorScrubField.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Min",
              "anchor": "InspectorScrubField.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "InspectorScrubField.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Integer",
              "anchor": "InspectorScrubField.Integer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InterfaceSize",
          "anchor": "InterfaceSize",
          "decl": "type InterfaceSize string",
          "doc": "InterfaceSize scales the editor's typography and controls together.\n",
          "file": "pkg/editor/settings.go",
          "line": 89,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "InterfaceSizeCompact",
                  "anchor": "InterfaceSizeCompact"
                },
                {
                  "name": "InterfaceSizeDefault",
                  "anchor": "InterfaceSizeDefault"
                },
                {
                  "name": "InterfaceSizeLarge",
                  "anchor": "InterfaceSizeLarge"
                }
              ],
              "decl": "const (\n\t// InterfaceSizeCompact uses a slightly denser 90% scale for text and controls.\n\tInterfaceSizeCompact InterfaceSize = \"compact\"\n\t// InterfaceSizeDefault uses the standard 100% Spec scale.\n\tInterfaceSizeDefault InterfaceSize = \"default\"\n\t// InterfaceSizeLarge uses a roomier 115% scale for text and controls.\n\tInterfaceSizeLarge InterfaceSize = \"large\"\n)",
              "doc": "",
              "file": "pkg/editor/settings.go",
              "line": 91
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Scale",
              "anchor": "InterfaceSize.Scale",
              "recv": "InterfaceSize",
              "decl": "func (s InterfaceSize) Scale() float32",
              "doc": "Scale returns the multiplier applied to editor typography and control sizes.\n",
              "file": "pkg/editor/settings.go",
              "line": 111
            },
            {
              "name": "Valid",
              "anchor": "InterfaceSize.Valid",
              "recv": "InterfaceSize",
              "decl": "func (s InterfaceSize) Valid() bool",
              "doc": "Valid reports whether s is a recognized interface size choice.\n",
              "file": "pkg/editor/settings.go",
              "line": 101
            }
          ]
        },
        {
          "name": "KeepAllResult",
          "anchor": "KeepAllResult",
          "decl": "type KeepAllResult struct {\n\tKeptChanges          int      `json:\"keptChanges\"`\n\tDeletedFiles         []string `json:\"deletedFiles,omitempty\"`\n\tLeftPendingDeletions []string `json:\"leftPendingDeletions,omitempty\"`\n\tLeftPermissionsDraft bool     `json:\"leftPermissionsDraft,omitempty\"`\n\tReviewStillOpen      bool     `json:\"reviewStillOpen\"`\n}",
          "doc": "KeepAllResult reports what KeepAllReviewChanges did.\n",
          "file": "pkg/editor/agent_review.go",
          "line": 87,
          "members": [
            {
              "name": "KeptChanges",
              "anchor": "KeepAllResult.KeptChanges",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeletedFiles",
              "anchor": "KeepAllResult.DeletedFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LeftPendingDeletions",
              "anchor": "KeepAllResult.LeftPendingDeletions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LeftPermissionsDraft",
              "anchor": "KeepAllResult.LeftPermissionsDraft",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReviewStillOpen",
              "anchor": "KeepAllResult.ReviewStillOpen",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Keychain",
          "anchor": "Keychain",
          "decl": "type Keychain interface {\n\tSet(service, account, secret string) error\n\tGet(service, account string) (string, error)\n\tDelete(service, account string) error\n}",
          "doc": "Keychain stores, retrieves, and removes store upload credentials in the host OS keychain\n(macOS Keychain, Linux Secret Service, Windows Credential Manager) or an in-memory test store.\nCredentials must never be written into project files.\n",
          "file": "pkg/editor/keychain.go",
          "line": 64,
          "members": [
            {
              "name": "Set",
              "anchor": "Keychain.Set",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Get",
              "anchor": "Keychain.Get",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Delete",
              "anchor": "Keychain.Delete",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultKeychain",
              "anchor": "DefaultKeychain",
              "decl": "func DefaultKeychain() Keychain",
              "doc": "DefaultKeychain returns the platform's native system keychain implementation.\n",
              "file": "pkg/editor/keychain.go",
              "line": 90
            }
          ],
          "methods": []
        },
        {
          "name": "KeychainCredential",
          "anchor": "KeychainCredential",
          "decl": "type KeychainCredential struct {\n\tDestination PublishDestination `yaml:\"-\" json:\"-\"`\n\tAccount     string             `yaml:\"-\" json:\"-\"`\n\tSecret      string             `yaml:\"-\" json:\"-\"`\n}",
          "doc": "KeychainCredential holds a store upload credential retrieved from the system keychain just before upload.\nIts fields carry `yaml:\"-\" json:\"-\"` and redacted String/GoString methods so secrets are never serialized\ninto project files, snapshots, or logs.\n",
          "file": "pkg/editor/keychain.go",
          "line": 73,
          "members": [
            {
              "name": "Destination",
              "anchor": "KeychainCredential.Destination",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Account",
              "anchor": "KeychainCredential.Account",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Secret",
              "anchor": "KeychainCredential.Secret",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "GoString",
              "anchor": "KeychainCredential.GoString",
              "recv": "KeychainCredential",
              "decl": "func (c KeychainCredential) GoString() string",
              "doc": "GoString redacts the credential secret for %#v formatting.\n",
              "file": "pkg/editor/keychain.go",
              "line": 85
            },
            {
              "name": "String",
              "anchor": "KeychainCredential.String",
              "recv": "KeychainCredential",
              "decl": "func (c KeychainCredential) String() string",
              "doc": "String redacts the credential secret for safe logging.\n",
              "file": "pkg/editor/keychain.go",
              "line": 80
            }
          ]
        },
        {
          "name": "Language",
          "anchor": "Language",
          "decl": "type Language string",
          "doc": "Language selects the editor UI language.\n",
          "file": "pkg/editor/settings.go",
          "line": 33,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LanguageSystem",
                  "anchor": "LanguageSystem"
                },
                {
                  "name": "LanguageEnglish",
                  "anchor": "LanguageEnglish"
                },
                {
                  "name": "LanguageChinese",
                  "anchor": "LanguageChinese"
                }
              ],
              "decl": "const (\n\t// LanguageSystem follows the operating system's locale (falling back to English when not Simplified Chinese).\n\tLanguageSystem Language = \"system\"\n\t// LanguageEnglish shows the editor UI in English.\n\tLanguageEnglish Language = \"en\"\n\t// LanguageChinese shows the editor UI in Simplified Chinese.\n\tLanguageChinese Language = \"zh\"\n)",
              "doc": "",
              "file": "pkg/editor/settings.go",
              "line": 35
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "Language.Valid",
              "recv": "Language",
              "decl": "func (l Language) Valid() bool",
              "doc": "Valid reports whether l is a recognized editor language choice.\n",
              "file": "pkg/editor/settings.go",
              "line": 45
            }
          ]
        },
        {
          "name": "LastReleaseArtifact",
          "anchor": "LastReleaseArtifact",
          "decl": "type LastReleaseArtifact struct {\n\tSizeBytes  int64              `yaml:\"sizeBytes\" json:\"sizeBytes\"`\n\tBreakdown  BuildSizeBreakdown `yaml:\"breakdown\" json:\"breakdown\"`\n\tAssetSizes map[string]int64   `yaml:\"assetSizes,omitempty\" json:\"assetSizes,omitempty\"`\n}",
          "doc": "LastReleaseArtifact records one platform's size and breakdown from the previous release.\n",
          "file": "pkg/editor/build_release.go",
          "line": 190,
          "members": [
            {
              "name": "SizeBytes",
              "anchor": "LastReleaseArtifact.SizeBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Breakdown",
              "anchor": "LastReleaseArtifact.Breakdown",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AssetSizes",
              "anchor": "LastReleaseArtifact.AssetSizes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LastReleaseBaseline",
          "anchor": "LastReleaseBaseline",
          "decl": "type LastReleaseBaseline struct {\n\tVersion   string                         `yaml:\"version\" json:\"version\"`\n\tArtifacts map[string]LastReleaseArtifact `yaml:\"artifacts,omitempty\" json:\"artifacts,omitempty\"`\n}",
          "doc": "LastReleaseBaseline holds the previous release's version and per-platform artifact sizes for delta comparison.\n",
          "file": "pkg/editor/build_release.go",
          "line": 197,
          "members": [
            {
              "name": "Version",
              "anchor": "LastReleaseBaseline.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Artifacts",
              "anchor": "LastReleaseBaseline.Artifacts",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayerInfo",
          "anchor": "LayerInfo",
          "decl": "type LayerInfo struct {\n\t// Name is the layer's name.\n\tName string\n\t// Space is the layer's effective space, SpaceWorld or SpaceScreen.\n\tSpace sceneformat.Space\n\t// Order is the layer's draw order value.\n\tOrder int\n\t// Visible reports whether the layer draws, as its visible field says.\n\tVisible bool\n\t// Locked reports whether the layer is locked against picking and painting in the viewports for the session (SetLayerLocked).\n\tLocked bool\n\t// Active reports whether the layer is the editor's ActiveLayer.\n\tActive bool\n\t// Tilemap describes the layer's tilemap: the tileset and size of an inline grid (\"tiles 16x12\"), the name of the top-level tilemap it refers to, or the path of an external Tiled map; it is empty for a layer without a tilemap.\n\tTilemap string\n\t// Objects is the number of objects on the layer, nested children included.\n\tObjects int\n\t// Inherited reports whether the layer extends a layer of the scene the open scene inherits (SceneDoc.Inherits), whose space, order, visibility and name that scene owns.\n\tInherited bool\n}",
          "doc": "LayerInfo is what the layers panel shows for one layer of the open scene (Layers).\n",
          "file": "pkg/editor/layers.go",
          "line": 15,
          "members": [
            {
              "name": "Name",
              "anchor": "LayerInfo.Name",
              "kind": "field",
              "doc": "Name is the layer's name."
            },
            {
              "name": "Space",
              "anchor": "LayerInfo.Space",
              "kind": "field",
              "doc": "Space is the layer's effective space, SpaceWorld or SpaceScreen."
            },
            {
              "name": "Order",
              "anchor": "LayerInfo.Order",
              "kind": "field",
              "doc": "Order is the layer's draw order value."
            },
            {
              "name": "Visible",
              "anchor": "LayerInfo.Visible",
              "kind": "field",
              "doc": "Visible reports whether the layer draws, as its visible field says."
            },
            {
              "name": "Locked",
              "anchor": "LayerInfo.Locked",
              "kind": "field",
              "doc": "Locked reports whether the layer is locked against picking and painting in the viewports for the session (SetLayerLocked)."
            },
            {
              "name": "Active",
              "anchor": "LayerInfo.Active",
              "kind": "field",
              "doc": "Active reports whether the layer is the editor's ActiveLayer."
            },
            {
              "name": "Tilemap",
              "anchor": "LayerInfo.Tilemap",
              "kind": "field",
              "doc": "Tilemap describes the layer's tilemap: the tileset and size of an inline grid (\"tiles 16x12\"), the name of the top-level tilemap it refers to, or the path of an external Tiled map; it is empty for a layer without a tilemap."
            },
            {
              "name": "Objects",
              "anchor": "LayerInfo.Objects",
              "kind": "field",
              "doc": "Objects is the number of objects on the layer, nested children included."
            },
            {
              "name": "Inherited",
              "anchor": "LayerInfo.Inherited",
              "kind": "field",
              "doc": "Inherited reports whether the layer extends a layer of the scene the open scene inherits (SceneDoc.Inherits), whose space, order, visibility and name that scene owns."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayoutFile",
          "anchor": "LayoutFile",
          "decl": "type LayoutFile struct {\n\t// Version is the schema version; it must equal LayoutVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Center is the center region's split/tab tree (always containing the viewport panel).\n\tCenter LayoutNode `yaml:\"center\"`\n\t// Left is the optional left dock region.\n\tLeft *LayoutRegion `yaml:\"left,omitempty\"`\n\t// Right is the optional right dock region.\n\tRight *LayoutRegion `yaml:\"right,omitempty\"`\n\t// Bottom is the optional bottom dock region.\n\tBottom *LayoutRegion `yaml:\"bottom,omitempty\"`\n\t// Hidden lists panel keys explicitly hidden by the user, sorted lexicographically.\n\tHidden []string `yaml:\"hidden,omitempty\"`\n}",
          "doc": "LayoutFile is the strict versioned YAML document storing a user's dock panel arrangement outside any project directory.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 97,
          "members": [
            {
              "name": "Version",
              "anchor": "LayoutFile.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal LayoutVersion (1)."
            },
            {
              "name": "Center",
              "anchor": "LayoutFile.Center",
              "kind": "field",
              "doc": "Center is the center region's split/tab tree (always containing the viewport panel)."
            },
            {
              "name": "Left",
              "anchor": "LayoutFile.Left",
              "kind": "field",
              "doc": "Left is the optional left dock region."
            },
            {
              "name": "Right",
              "anchor": "LayoutFile.Right",
              "kind": "field",
              "doc": "Right is the optional right dock region."
            },
            {
              "name": "Bottom",
              "anchor": "LayoutFile.Bottom",
              "kind": "field",
              "doc": "Bottom is the optional bottom dock region."
            },
            {
              "name": "Hidden",
              "anchor": "LayoutFile.Hidden",
              "kind": "field",
              "doc": "Hidden lists panel keys explicitly hidden by the user, sorted lexicographically."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultLayoutFile",
              "anchor": "DefaultLayoutFile",
              "decl": "func DefaultLayoutFile() *LayoutFile",
              "doc": "DefaultLayoutFile returns the canonical default editor dock layout document.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 201
            },
            {
              "name": "LoadLayoutFile",
              "anchor": "LoadLayoutFile",
              "decl": "func LoadLayoutFile(path string) (*LayoutFile, error)",
              "doc": "LoadLayoutFile reads and parses the layout YAML file at path.\nWhen the file does not exist, it returns DefaultLayoutFile() and a nil error.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 529
            },
            {
              "name": "ParseLayout",
              "anchor": "ParseLayout",
              "decl": "func ParseLayout(data []byte) (*LayoutFile, error)",
              "doc": "ParseLayout strictly decodes and validates a versioned editor dock layout YAML document,\nrefusing unknown fields, duplicate keys, trailing YAML documents, invalid nodes, and unsupported versions.\n",
              "file": "pkg/editor/dock_layout.go",
              "line": 225
            }
          ],
          "methods": []
        },
        {
          "name": "LayoutNode",
          "anchor": "LayoutNode",
          "decl": "type LayoutNode struct {\n\tPanels   []string     `yaml:\"panels,omitempty\"`\n\tActive   int          `yaml:\"active,omitempty\"`\n\tAxis     string       `yaml:\"axis,omitempty\"`\n\tSizes    []float32    `yaml:\"sizes,omitempty,flow\"`\n\tChildren []LayoutNode `yaml:\"children,omitempty\"`\n}",
          "doc": "LayoutNode is either a tab group (Panels + optional Active index) or a split (Axis + Children + optional Sizes).\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 120,
          "members": [
            {
              "name": "Panels",
              "anchor": "LayoutNode.Panels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Active",
              "anchor": "LayoutNode.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Axis",
              "anchor": "LayoutNode.Axis",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sizes",
              "anchor": "LayoutNode.Sizes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Children",
              "anchor": "LayoutNode.Children",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayoutRegion",
          "anchor": "LayoutRegion",
          "decl": "type LayoutRegion struct {\n\tSize   float32    `yaml:\"size\"`\n\tClosed bool       `yaml:\"closed,omitempty\"`\n\tRoot   LayoutNode `yaml:\"root\"`\n}",
          "doc": "LayoutRegion describes one edge dock (left, right, or bottom): its size across its edge in points, whether it is collapsed, and its container tree.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 113,
          "members": [
            {
              "name": "Size",
              "anchor": "LayoutRegion.Size",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Closed",
              "anchor": "LayoutRegion.Closed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Root",
              "anchor": "LayoutRegion.Root",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LeftRailMode",
          "anchor": "LeftRailMode",
          "decl": "type LeftRailMode int",
          "doc": "LeftRailMode selects whether the editor's left rail shows the Scene tree or the Assets drawer browser.\n",
          "file": "pkg/editor/asset_drawer.go",
          "line": 52,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LeftRailScene",
                  "anchor": "LeftRailScene"
                },
                {
                  "name": "LeftRailAssets",
                  "anchor": "LeftRailAssets"
                }
              ],
              "decl": "const (\n\t// LeftRailScene shows the Scene tree, layers, and standard scene inspector.\n\tLeftRailScene LeftRailMode = iota\n\t// LeftRailAssets shows asset folders, SHOW ONLY filters, the bottom asset drawer, and the selected-asset inspector.\n\tLeftRailAssets\n)",
              "doc": "",
              "file": "pkg/editor/asset_drawer.go",
              "line": 54
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MarqueeMode",
          "anchor": "MarqueeMode",
          "decl": "type MarqueeMode int",
          "doc": "MarqueeMode selects whether a marquee box matches objects it fully encloses or objects it touches.\n",
          "file": "pkg/editor/marquee.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "MarqueeEnclose",
                  "anchor": "MarqueeEnclose"
                },
                {
                  "name": "MarqueeTouch",
                  "anchor": "MarqueeTouch"
                }
              ],
              "decl": "const (\n\t// MarqueeEnclose selects objects whose 2D canvas bounding box lies completely inside the marquee.\n\tMarqueeEnclose MarqueeMode = iota\n\t// MarqueeTouch selects objects whose 2D canvas bounding box intersects (touches) the marquee.\n\tMarqueeTouch\n)",
              "doc": "",
              "file": "pkg/editor/marquee.go",
              "line": 15
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MarqueeRect",
          "anchor": "MarqueeRect",
          "decl": "type MarqueeRect struct {\n\tX0, Y0, X1, Y1 float32\n\tMode           MarqueeMode\n}",
          "doc": "MarqueeRect is the normalized canvas-space rectangle of an active 2D marquee selection drag.\n",
          "file": "pkg/editor/marquee.go",
          "line": 23,
          "members": [
            {
              "name": "X0",
              "anchor": "MarqueeRect.X0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y0",
              "anchor": "MarqueeRect.Y0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X1",
              "anchor": "MarqueeRect.X1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y1",
              "anchor": "MarqueeRect.Y1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "MarqueeRect.Mode",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MaterialPreviewShape",
          "anchor": "MaterialPreviewShape",
          "decl": "type MaterialPreviewShape int",
          "doc": "MaterialPreviewShape selects what the Material Editor's live preview renders.\n",
          "file": "pkg/editor/materials.go",
          "line": 33,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "MaterialPreviewSphere",
                  "anchor": "MaterialPreviewSphere"
                },
                {
                  "name": "MaterialPreviewCube",
                  "anchor": "MaterialPreviewCube"
                },
                {
                  "name": "MaterialPreviewSprite",
                  "anchor": "MaterialPreviewSprite"
                }
              ],
              "decl": "const (\n\t// MaterialPreviewSphere renders a 3D UV sphere with render3d.\n\tMaterialPreviewSphere MaterialPreviewShape = iota\n\t// MaterialPreviewCube renders a 3D unit cube with render3d.\n\tMaterialPreviewCube\n\t// MaterialPreviewSprite renders a 2D sprite preview with base color, texture, opacity and blend mode.\n\tMaterialPreviewSprite\n)",
              "doc": "",
              "file": "pkg/editor/materials.go",
              "line": 35
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "MaterialPreviewShape.String",
              "recv": "MaterialPreviewShape",
              "decl": "func (s MaterialPreviewShape) String() string",
              "doc": "String returns a human-readable label for s.\n",
              "file": "pkg/editor/materials.go",
              "line": 45
            }
          ]
        },
        {
          "name": "MemoryKeychain",
          "anchor": "MemoryKeychain",
          "decl": "type MemoryKeychain struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MemoryKeychain is a thread-safe in-memory Keychain implementation for tests and sandboxed tooling.\n",
          "file": "pkg/editor/keychain.go",
          "line": 95,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMemoryKeychain",
              "anchor": "NewMemoryKeychain",
              "decl": "func NewMemoryKeychain() *MemoryKeychain",
              "doc": "NewMemoryKeychain constructs an empty in-memory Keychain.\n",
              "file": "pkg/editor/keychain.go",
              "line": 101
            }
          ],
          "methods": [
            {
              "name": "Delete",
              "anchor": "MemoryKeychain.Delete",
              "recv": "*MemoryKeychain",
              "decl": "func (m *MemoryKeychain) Delete(service, account string) error",
              "doc": "Delete removes any secret stored under (service, account) in memory.\n",
              "file": "pkg/editor/keychain.go",
              "line": 152
            },
            {
              "name": "Get",
              "anchor": "MemoryKeychain.Get",
              "recv": "*MemoryKeychain",
              "decl": "func (m *MemoryKeychain) Get(service, account string) (string, error)",
              "doc": "Get retrieves the secret stored under (service, account) in memory.\n",
              "file": "pkg/editor/keychain.go",
              "line": 134
            },
            {
              "name": "Len",
              "anchor": "MemoryKeychain.Len",
              "recv": "*MemoryKeychain",
              "decl": "func (m *MemoryKeychain) Len() int",
              "doc": "Len returns the number of entries currently stored in memory.\n",
              "file": "pkg/editor/keychain.go",
              "line": 167
            },
            {
              "name": "Set",
              "anchor": "MemoryKeychain.Set",
              "recv": "*MemoryKeychain",
              "decl": "func (m *MemoryKeychain) Set(service, account, secret string) error",
              "doc": "Set stores secret under (service, account) in memory.\n",
              "file": "pkg/editor/keychain.go",
              "line": 112
            }
          ]
        },
        {
          "name": "MemorySecretStore",
          "anchor": "MemorySecretStore",
          "decl": "type MemorySecretStore struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MemorySecretStore is an in-memory AgentSecretStore for headless tests without a core.Scope.\n",
          "file": "pkg/editor/agent_builtin.go",
          "line": 75,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMemorySecretStore",
              "anchor": "NewMemorySecretStore",
              "decl": "func NewMemorySecretStore(initial map[string]string) *MemorySecretStore",
              "doc": "NewMemorySecretStore returns an initialized MemorySecretStore optionally seeded with values.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 81
            }
          ],
          "methods": [
            {
              "name": "Delete",
              "anchor": "MemorySecretStore.Delete",
              "recv": "*MemorySecretStore",
              "decl": "func (m *MemorySecretStore) Delete(account string) error",
              "doc": "Delete removes account from the store.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 115
            },
            {
              "name": "Get",
              "anchor": "MemorySecretStore.Get",
              "recv": "*MemorySecretStore",
              "decl": "func (m *MemorySecretStore) Get(account string) (string, bool, error)",
              "doc": "Get returns the secret stored under account.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 90
            },
            {
              "name": "GoString",
              "anchor": "MemorySecretStore.GoString",
              "recv": "*MemorySecretStore",
              "decl": "func (m *MemorySecretStore) GoString() string",
              "doc": "GoString redacts stored secret values.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 137
            },
            {
              "name": "Set",
              "anchor": "MemorySecretStore.Set",
              "recv": "*MemorySecretStore",
              "decl": "func (m *MemorySecretStore) Set(account, value string) error",
              "doc": "Set stores value under account.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 101
            },
            {
              "name": "String",
              "anchor": "MemorySecretStore.String",
              "recv": "*MemorySecretStore",
              "decl": "func (m *MemorySecretStore) String() string",
              "doc": "String redacts stored secret values so they can never leak into logs or test output.\n",
              "file": "pkg/editor/agent_builtin.go",
              "line": 126
            }
          ]
        },
        {
          "name": "MentionGroup",
          "anchor": "MentionGroup",
          "decl": "type MentionGroup string",
          "doc": "MentionGroup classifies items in the composer's @-mention picker (Threads.dc.html).\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 39,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "MentionGroupAll",
                  "anchor": "MentionGroupAll"
                },
                {
                  "name": "MentionGroupObjects",
                  "anchor": "MentionGroupObjects"
                },
                {
                  "name": "MentionGroupFiles",
                  "anchor": "MentionGroupFiles"
                },
                {
                  "name": "MentionGroupPrefabs",
                  "anchor": "MentionGroupPrefabs"
                },
                {
                  "name": "MentionGroupAssets",
                  "anchor": "MentionGroupAssets"
                },
                {
                  "name": "MentionGroupProblems",
                  "anchor": "MentionGroupProblems"
                },
                {
                  "name": "MentionGroupPlaytests",
                  "anchor": "MentionGroupPlaytests"
                },
                {
                  "name": "MentionGroupHistory",
                  "anchor": "MentionGroupHistory"
                },
                {
                  "name": "MentionGroupRules",
                  "anchor": "MentionGroupRules"
                }
              ],
              "decl": "const (\n\tMentionGroupAll       MentionGroup = \"all\"\n\tMentionGroupObjects   MentionGroup = \"objects\"\n\tMentionGroupFiles     MentionGroup = \"files\"\n\tMentionGroupPrefabs   MentionGroup = \"prefabs\"\n\tMentionGroupAssets    MentionGroup = \"assets\"\n\tMentionGroupProblems  MentionGroup = \"problems\"\n\tMentionGroupPlaytests MentionGroup = \"playtests\"\n\tMentionGroupHistory   MentionGroup = \"history\"\n\tMentionGroupRules     MentionGroup = \"rules\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_composer.go",
              "line": 41
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MentionIconKind",
          "anchor": "MentionIconKind",
          "decl": "type MentionIconKind string",
          "doc": "MentionIconKind identifies the visual icon rendered for a picker row or chip.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 79,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "MentionIconObject",
                  "anchor": "MentionIconObject"
                },
                {
                  "name": "MentionIconFile",
                  "anchor": "MentionIconFile"
                },
                {
                  "name": "MentionIconPrefab",
                  "anchor": "MentionIconPrefab"
                },
                {
                  "name": "MentionIconImage",
                  "anchor": "MentionIconImage"
                },
                {
                  "name": "MentionIconSound",
                  "anchor": "MentionIconSound"
                },
                {
                  "name": "MentionIconProblem",
                  "anchor": "MentionIconProblem"
                },
                {
                  "name": "MentionIconPlaytest",
                  "anchor": "MentionIconPlaytest"
                },
                {
                  "name": "MentionIconHistory",
                  "anchor": "MentionIconHistory"
                },
                {
                  "name": "MentionIconRule",
                  "anchor": "MentionIconRule"
                },
                {
                  "name": "MentionIconScene",
                  "anchor": "MentionIconScene"
                },
                {
                  "name": "MentionIconViewport",
                  "anchor": "MentionIconViewport"
                }
              ],
              "decl": "const (\n\tMentionIconObject   MentionIconKind = \"obj\"\n\tMentionIconFile     MentionIconKind = \"file\"\n\tMentionIconPrefab   MentionIconKind = \"prefab\"\n\tMentionIconImage    MentionIconKind = \"thumb\"\n\tMentionIconSound    MentionIconKind = \"sound\"\n\tMentionIconProblem  MentionIconKind = \"problem\"\n\tMentionIconPlaytest MentionIconKind = \"run\"\n\tMentionIconHistory  MentionIconKind = \"history\"\n\tMentionIconRule     MentionIconKind = \"rule\"\n\tMentionIconScene    MentionIconKind = \"scene\"\n\tMentionIconViewport MentionIconKind = \"viewport\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_composer.go",
              "line": 81
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MentionItem",
          "anchor": "MentionItem",
          "decl": "type MentionItem struct {\n\tID       string\n\tGroup    MentionGroup\n\tChipKind ContextChipKind\n\tIcon     MentionIconKind\n\tName     string\n\tMeta     string\n\t// Target references the underlying entity: object ID, project-relative file path, problem key, etc.\n\tTarget string\n\t// SceneFile is the project-relative scene path for object mentions.\n\tSceneFile string\n\t// Layer is the scene layer name for object mentions.\n\tLayer string\n\t// Line is the 1-based line number when known (such as a problem or object start line).\n\tLine int\n\t// Detail holds structured summary text for non-file entities (problems, playtests, history steps).\n\tDetail string\n\t// ColorSwatch is an optional hex tint for object/asset dots (using Spec tokens when 0).\n\tColorRole string\n}",
          "doc": "MentionItem is one selectable entry in the composer's @-mention picker.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 113,
          "members": [
            {
              "name": "ID",
              "anchor": "MentionItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Group",
              "anchor": "MentionItem.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChipKind",
              "anchor": "MentionItem.ChipKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Icon",
              "anchor": "MentionItem.Icon",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "MentionItem.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Meta",
              "anchor": "MentionItem.Meta",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "MentionItem.Target",
              "kind": "field",
              "doc": "Target references the underlying entity: object ID, project-relative file path, problem key, etc."
            },
            {
              "name": "SceneFile",
              "anchor": "MentionItem.SceneFile",
              "kind": "field",
              "doc": "SceneFile is the project-relative scene path for object mentions."
            },
            {
              "name": "Layer",
              "anchor": "MentionItem.Layer",
              "kind": "field",
              "doc": "Layer is the scene layer name for object mentions."
            },
            {
              "name": "Line",
              "anchor": "MentionItem.Line",
              "kind": "field",
              "doc": "Line is the 1-based line number when known (such as a problem or object start line)."
            },
            {
              "name": "Detail",
              "anchor": "MentionItem.Detail",
              "kind": "field",
              "doc": "Detail holds structured summary text for non-file entities (problems, playtests, history steps)."
            },
            {
              "name": "ColorRole",
              "anchor": "MentionItem.ColorRole",
              "kind": "field",
              "doc": "ColorSwatch is an optional hex tint for object/asset dots (using Spec tokens when 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergeAutoItem",
          "anchor": "MergeAutoItem",
          "decl": "type MergeAutoItem struct {\n\tScope     string `json:\"scope\"`\n\tObjectID  string `json:\"objectId,omitempty\"`\n\tName      string `json:\"name\"`\n\tSide      string `json:\"side\"`\n\tAction    string `json:\"action\"`\n\tSideLabel string `json:\"sideLabel\"`\n}",
          "doc": "MergeAutoItem describes one scene item joined cleanly by identity in MERGED BY ID.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 96,
          "members": [
            {
              "name": "Scope",
              "anchor": "MergeAutoItem.Scope",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "MergeAutoItem.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "MergeAutoItem.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Side",
              "anchor": "MergeAutoItem.Side",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Action",
              "anchor": "MergeAutoItem.Action",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SideLabel",
              "anchor": "MergeAutoItem.SideLabel",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergeChoice",
          "anchor": "MergeChoice",
          "decl": "type MergeChoice string",
          "doc": "MergeChoice records which resolution the author picked for one scene merge conflict item.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 25,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "MergeChoiceUnresolved",
                  "anchor": "MergeChoiceUnresolved"
                },
                {
                  "name": "MergeChoiceAgent",
                  "anchor": "MergeChoiceAgent"
                },
                {
                  "name": "MergeChoiceMine",
                  "anchor": "MergeChoiceMine"
                },
                {
                  "name": "MergeChoiceTheirs",
                  "anchor": "MergeChoiceTheirs"
                },
                {
                  "name": "MergeChoiceCustom",
                  "anchor": "MergeChoiceCustom"
                }
              ],
              "decl": "const (\n\t// MergeChoiceUnresolved indicates the author has not yet chosen a resolution.\n\tMergeChoiceUnresolved MergeChoice = \"\"\n\t// MergeChoiceAgent selects the agent's suggested resolution.\n\tMergeChoiceAgent MergeChoice = \"agent\"\n\t// MergeChoiceMine selects the current branch's (ours) version.\n\tMergeChoiceMine MergeChoice = \"mine\"\n\t// MergeChoiceTheirs selects the incoming branch's (theirs) version.\n\tMergeChoiceTheirs MergeChoice = \"theirs\"\n\t// MergeChoiceCustom selects hand-edited YAML entered by the author.\n\tMergeChoiceCustom MergeChoice = \"custom\"\n)",
              "doc": "",
              "file": "pkg/editor/merge_conflict.go",
              "line": 27
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergeConflictItem",
          "anchor": "MergeConflictItem",
          "decl": "type MergeConflictItem struct {\n\tID           string                      `json:\"id\"`\n\tScope        string                      `json:\"scope\"`\n\tLayer        string                      `json:\"layer,omitempty\"`\n\tObjectID     string                      `json:\"objectId,omitempty\"`\n\tTarget       string                      `json:\"target,omitempty\"`\n\tName         string                      `json:\"name\"`\n\tKind         string                      `json:\"kind\"`\n\tSummary      string                      `json:\"summary\"`\n\tConflicts    []sceneformat.MergeConflict `json:\"conflicts\"`\n\tBaseObj      *sceneformat.ObjectDoc      `json:\"-\"`\n\tMineObj      *sceneformat.ObjectDoc      `json:\"-\"`\n\tTheirsObj    *sceneformat.ObjectDoc      `json:\"-\"`\n\tMineLayer    string                      `json:\"mineLayer,omitempty\"`\n\tTheirsLayer  string                      `json:\"theirsLayer,omitempty\"`\n\tMineParent   string                      `json:\"mineParent,omitempty\"`\n\tTheirsParent string                      `json:\"theirsParent,omitempty\"`\n\n\tAgent  MergeOption `json:\"agent\"`\n\tMine   MergeOption `json:\"mine\"`\n\tTheirs MergeOption `json:\"theirs\"`\n\n\tChoice        MergeChoice `json:\"choice\"`\n\tEditingCustom bool        `json:\"editingCustom,omitempty\"`\n\tCustomYAML    string      `json:\"customYaml,omitempty\"`\n\tCustomErr     string      `json:\"customErr,omitempty\"`\n\t// contains filtered or unexported fields\n}",
          "doc": "MergeConflictItem groups all sceneformat.MergeConflict entries that belong to one scene item\n(normally one object ID, or a layer/scene/connection/tilemap/override entry) so conflicts are\nresolved object by object.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 64,
          "members": [
            {
              "name": "ID",
              "anchor": "MergeConflictItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scope",
              "anchor": "MergeConflictItem.Scope",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "MergeConflictItem.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "MergeConflictItem.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "MergeConflictItem.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "MergeConflictItem.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "MergeConflictItem.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "MergeConflictItem.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Conflicts",
              "anchor": "MergeConflictItem.Conflicts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseObj",
              "anchor": "MergeConflictItem.BaseObj",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MineObj",
              "anchor": "MergeConflictItem.MineObj",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TheirsObj",
              "anchor": "MergeConflictItem.TheirsObj",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MineLayer",
              "anchor": "MergeConflictItem.MineLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TheirsLayer",
              "anchor": "MergeConflictItem.TheirsLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MineParent",
              "anchor": "MergeConflictItem.MineParent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TheirsParent",
              "anchor": "MergeConflictItem.TheirsParent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Agent",
              "anchor": "MergeConflictItem.Agent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mine",
              "anchor": "MergeConflictItem.Mine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Theirs",
              "anchor": "MergeConflictItem.Theirs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Choice",
              "anchor": "MergeConflictItem.Choice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditingCustom",
              "anchor": "MergeConflictItem.EditingCustom",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CustomYAML",
              "anchor": "MergeConflictItem.CustomYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CustomErr",
              "anchor": "MergeConflictItem.CustomErr",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergeConflictSession",
          "anchor": "MergeConflictSession",
          "decl": "type MergeConflictSession struct {\n\tRepoDir       string\n\tScenePath     string\n\tProjectName   string\n\tSceneName     string\n\tMine          MergeSideMeta\n\tTheirs        MergeSideMeta\n\tBaseDoc       *sceneformat.SceneDoc\n\tMineDoc       *sceneformat.SceneDoc\n\tTheirsDoc     *sceneformat.SceneDoc\n\tBaseMergedDoc *sceneformat.SceneDoc\n\tConflicts     []MergeConflictItem\n\tAutoMerged    []MergeAutoItem\n\tFocusedID     string\n\tFinished      bool\n\tCommitSHA     string\n\tVerifySummary string\n\tVerifyErr     string\n\t// contains filtered or unexported fields\n}",
          "doc": "MergeConflictSession holds the live state of an object-by-object scene merge conflict screen.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 149,
          "members": [
            {
              "name": "RepoDir",
              "anchor": "MergeConflictSession.RepoDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "MergeConflictSession.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectName",
              "anchor": "MergeConflictSession.ProjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneName",
              "anchor": "MergeConflictSession.SceneName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mine",
              "anchor": "MergeConflictSession.Mine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Theirs",
              "anchor": "MergeConflictSession.Theirs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseDoc",
              "anchor": "MergeConflictSession.BaseDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MineDoc",
              "anchor": "MergeConflictSession.MineDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TheirsDoc",
              "anchor": "MergeConflictSession.TheirsDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseMergedDoc",
              "anchor": "MergeConflictSession.BaseMergedDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Conflicts",
              "anchor": "MergeConflictSession.Conflicts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AutoMerged",
              "anchor": "MergeConflictSession.AutoMerged",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusedID",
              "anchor": "MergeConflictSession.FocusedID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Finished",
              "anchor": "MergeConflictSession.Finished",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CommitSHA",
              "anchor": "MergeConflictSession.CommitSHA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VerifySummary",
              "anchor": "MergeConflictSession.VerifySummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VerifyErr",
              "anchor": "MergeConflictSession.VerifyErr",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AllResolved",
              "anchor": "MergeConflictSession.AllResolved",
              "recv": "*MergeConflictSession",
              "decl": "func (s *MergeConflictSession) AllResolved() bool",
              "doc": "AllResolved reports whether every conflict item has a chosen resolution.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 370
            },
            {
              "name": "BuildResultDoc",
              "anchor": "MergeConflictSession.BuildResultDoc",
              "recv": "*MergeConflictSession",
              "decl": "func (s *MergeConflictSession) BuildResultDoc() (*sceneformat.SceneDoc, error)",
              "doc": "BuildResultDoc constructs a fresh SceneDoc by starting from BaseMergedDoc and applying every chosen conflict item.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 634
            },
            {
              "name": "FocusedItem",
              "anchor": "MergeConflictSession.FocusedItem",
              "recv": "*MergeConflictSession",
              "decl": "func (s *MergeConflictSession) FocusedItem() *MergeConflictItem",
              "doc": "FocusedItem returns a pointer to the currently focused conflict item, or nil when empty.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 375
            },
            {
              "name": "RemainingCount",
              "anchor": "MergeConflictSession.RemainingCount",
              "recv": "*MergeConflictSession",
              "decl": "func (s *MergeConflictSession) RemainingCount() int",
              "doc": "RemainingCount returns how many conflict items in s are still unresolved.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 362
            },
            {
              "name": "ResolvedCount",
              "anchor": "MergeConflictSession.ResolvedCount",
              "recv": "*MergeConflictSession",
              "decl": "func (s *MergeConflictSession) ResolvedCount() int",
              "doc": "ResolvedCount returns how many conflict items in s currently have a valid resolution chosen.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 348
            },
            {
              "name": "ResultDoc",
              "anchor": "MergeConflictSession.ResultDoc",
              "recv": "*MergeConflictSession",
              "decl": "func (s *MergeConflictSession) ResultDoc() (*sceneformat.SceneDoc, error)",
              "doc": "ResultDoc returns the current assembled SceneDoc reflecting every resolved conflict choice.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 617
            }
          ]
        },
        {
          "name": "MergeConflictSessionConfig",
          "anchor": "MergeConflictSessionConfig",
          "decl": "type MergeConflictSessionConfig struct {\n\tRepoDir     string\n\tScenePath   string\n\tProjectName string\n\tSceneName   string\n\tMine        MergeSideMeta\n\tTheirs      MergeSideMeta\n\tBaseDoc     *sceneformat.SceneDoc\n\tMineDoc     *sceneformat.SceneDoc\n\tTheirsDoc   *sceneformat.SceneDoc\n}",
          "doc": "MergeConflictSessionConfig configures OpenMergeConflictSession for in-memory or fixture merges.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 136,
          "members": [
            {
              "name": "RepoDir",
              "anchor": "MergeConflictSessionConfig.RepoDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "MergeConflictSessionConfig.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjectName",
              "anchor": "MergeConflictSessionConfig.ProjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneName",
              "anchor": "MergeConflictSessionConfig.SceneName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mine",
              "anchor": "MergeConflictSessionConfig.Mine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Theirs",
              "anchor": "MergeConflictSessionConfig.Theirs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseDoc",
              "anchor": "MergeConflictSessionConfig.BaseDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MineDoc",
              "anchor": "MergeConflictSessionConfig.MineDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TheirsDoc",
              "anchor": "MergeConflictSessionConfig.TheirsDoc",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergeOption",
          "anchor": "MergeOption",
          "decl": "type MergeOption struct {\n\tChoice  MergeChoice            `json:\"choice\"`\n\tTitle   string                 `json:\"title\"`\n\tMeta    string                 `json:\"meta\"`\n\tYAML    string                 `json:\"yaml\"`\n\tReason  string                 `json:\"reason,omitempty\"`\n\tDeleted bool                   `json:\"deleted,omitempty\"`\n\tObject  *sceneformat.ObjectDoc `json:\"-\"`\n\t// contains filtered or unexported fields\n}",
          "doc": "MergeOption describes one selectable resolution card (Agent's suggestion, Mine, or Theirs).\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 49,
          "members": [
            {
              "name": "Choice",
              "anchor": "MergeOption.Choice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "MergeOption.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Meta",
              "anchor": "MergeOption.Meta",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAML",
              "anchor": "MergeOption.YAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "MergeOption.Reason",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Deleted",
              "anchor": "MergeOption.Deleted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Object",
              "anchor": "MergeOption.Object",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergePlaytestResult",
          "anchor": "MergePlaytestResult",
          "decl": "type MergePlaytestResult struct {\n\tDuration time.Duration `json:\"duration\"`\n\tSteps    int           `json:\"steps\"`\n\tSummary  string        `json:\"summary\"`\n}",
          "doc": "MergePlaytestResult summarizes the short playtest run executed by FinishMerge.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 129,
          "members": [
            {
              "name": "Duration",
              "anchor": "MergePlaytestResult.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "MergePlaytestResult.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "MergePlaytestResult.Summary",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergeSideMeta",
          "anchor": "MergeSideMeta",
          "decl": "type MergeSideMeta struct {\n\tBranch  string `json:\"branch\"`\n\tAuthor  string `json:\"author,omitempty\"`\n\tCommit  string `json:\"commit,omitempty\"`\n\tMessage string `json:\"message,omitempty\"`\n}",
          "doc": "MergeSideMeta describes one branch participating in a scene merge.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 41,
          "members": [
            {
              "name": "Branch",
              "anchor": "MergeSideMeta.Branch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Author",
              "anchor": "MergeSideMeta.Author",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Commit",
              "anchor": "MergeSideMeta.Commit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "MergeSideMeta.Message",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergeSuggestRequest",
          "anchor": "MergeSuggestRequest",
          "decl": "type MergeSuggestRequest struct {\n\tScenePath  string\n\tItem       MergeConflictItem\n\tMine       MergeSideMeta\n\tTheirs     MergeSideMeta\n\tBaseDoc    *sceneformat.SceneDoc\n\tMineDoc    *sceneformat.SceneDoc\n\tTheirsDoc  *sceneformat.SceneDoc\n\tMergedDoc  *sceneformat.SceneDoc\n\tAutoMerged []MergeAutoItem\n}",
          "doc": "MergeSuggestRequest provides full three-way context to Editor.MergeSuggester for one conflicted item.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 106,
          "members": [
            {
              "name": "ScenePath",
              "anchor": "MergeSuggestRequest.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Item",
              "anchor": "MergeSuggestRequest.Item",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mine",
              "anchor": "MergeSuggestRequest.Mine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Theirs",
              "anchor": "MergeSuggestRequest.Theirs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseDoc",
              "anchor": "MergeSuggestRequest.BaseDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MineDoc",
              "anchor": "MergeSuggestRequest.MineDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TheirsDoc",
              "anchor": "MergeSuggestRequest.TheirsDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MergedDoc",
              "anchor": "MergeSuggestRequest.MergedDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AutoMerged",
              "anchor": "MergeSuggestRequest.AutoMerged",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergeSuggestion",
          "anchor": "MergeSuggestion",
          "decl": "type MergeSuggestion struct {\n\tMeta      string\n\tYAML      string\n\tReason    string\n\tDeleted   bool\n\tObject    *sceneformat.ObjectDoc\n\tFieldSide map[string]MergeChoice\n}",
          "doc": "MergeSuggestion is the agent's suggested resolution for one MergeConflictItem.\n",
          "file": "pkg/editor/merge_conflict.go",
          "line": 119,
          "members": [
            {
              "name": "Meta",
              "anchor": "MergeSuggestion.Meta",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAML",
              "anchor": "MergeSuggestion.YAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "MergeSuggestion.Reason",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Deleted",
              "anchor": "MergeSuggestion.Deleted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Object",
              "anchor": "MergeSuggestion.Object",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FieldSide",
              "anchor": "MergeSuggestion.FieldSide",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultMergeSuggestion",
              "anchor": "DefaultMergeSuggestion",
              "decl": "func DefaultMergeSuggestion(req MergeSuggestRequest) MergeSuggestion",
              "doc": "DefaultMergeSuggestion produces a deterministic, reasoned suggestion for req without requiring an external LLM.\n",
              "file": "pkg/editor/merge_conflict.go",
              "line": 1277
            }
          ],
          "methods": []
        },
        {
          "name": "MissingTranslation",
          "anchor": "MissingTranslation",
          "decl": "type MissingTranslation struct {\n\tLocale string\n\tKey    string\n\tPlural bool\n}",
          "doc": "MissingTranslation identifies a (locale, key) cell that lacks a translation in the Localization panel.\n",
          "file": "pkg/editor/localization_panel.go",
          "line": 25,
          "members": [
            {
              "name": "Locale",
              "anchor": "MissingTranslation.Locale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Key",
              "anchor": "MissingTranslation.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Plural",
              "anchor": "MissingTranslation.Plural",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ModelAnimationInfo",
          "anchor": "ModelAnimationInfo",
          "decl": "type ModelAnimationInfo struct {\n\t// Index is the 0-based index of the animation in gltf.Document.Animations.\n\tIndex int\n\t// Name is the authored glTF animation name (may be empty).\n\tName string\n\t// Duration is the clip's duration.\n\tDuration time.Duration\n\t// Channels is the number of animation channels in the clip.\n\tChannels int\n}",
          "doc": "ModelAnimationInfo describes one glTF animation clip shown in the model import preview.\n",
          "file": "pkg/editor/asset_import_model.go",
          "line": 117,
          "members": [
            {
              "name": "Index",
              "anchor": "ModelAnimationInfo.Index",
              "kind": "field",
              "doc": "Index is the 0-based index of the animation in gltf.Document.Animations."
            },
            {
              "name": "Name",
              "anchor": "ModelAnimationInfo.Name",
              "kind": "field",
              "doc": "Name is the authored glTF animation name (may be empty)."
            },
            {
              "name": "Duration",
              "anchor": "ModelAnimationInfo.Duration",
              "kind": "field",
              "doc": "Duration is the clip's duration."
            },
            {
              "name": "Channels",
              "anchor": "ModelAnimationInfo.Channels",
              "kind": "field",
              "doc": "Channels is the number of animation channels in the clip."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "ModelAnimationInfo.DisplayName",
              "recv": "ModelAnimationInfo",
              "decl": "func (a ModelAnimationInfo) DisplayName() string",
              "doc": "DisplayName returns Name when non-empty, or \"Animation <Index>\".\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 129
            }
          ]
        },
        {
          "name": "ModelEntry",
          "anchor": "ModelEntry",
          "decl": "type ModelEntry struct {\n\t// Mesh names the built-in primitive, one of sceneformat.MeshPrimitives, or is empty for a file.\n\tMesh string\n\t// Path is the slash-separated path of the .gltf or .glb file from the project root, such as \"models/crate.glb\", or is empty for a primitive.\n\tPath string\n\t// Output says Path is what a model target of game.yaml's assets section writes (project.ModelTarget.Out), which `game assets` builds and the asset browser lists before it has been built.\n\tOutput bool\n}",
          "doc": "ModelEntry is one model the asset browser lists for placing in 3D (Models): a built-in primitive, which an object draws through sceneformat.ObjectDoc.Mesh, or a glTF file of the open project, which it draws through sceneformat.ObjectDoc.Model. Exactly one of Mesh and Path is set.\n",
          "file": "pkg/editor/models.go",
          "line": 23,
          "members": [
            {
              "name": "Mesh",
              "anchor": "ModelEntry.Mesh",
              "kind": "field",
              "doc": "Mesh names the built-in primitive, one of sceneformat.MeshPrimitives, or is empty for a file."
            },
            {
              "name": "Path",
              "anchor": "ModelEntry.Path",
              "kind": "field",
              "doc": "Path is the slash-separated path of the .gltf or .glb file from the project root, such as \"models/crate.glb\", or is empty for a primitive."
            },
            {
              "name": "Output",
              "anchor": "ModelEntry.Output",
              "kind": "field",
              "doc": "Output says Path is what a model target of game.yaml's assets section writes (project.ModelTarget.Out), which `game assets` builds and the asset browser lists before it has been built."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "FileLabel",
              "anchor": "ModelEntry.FileLabel",
              "recv": "ModelEntry",
              "decl": "func (m ModelEntry) FileLabel() string",
              "doc": "FileLabel is the concise filename label shown on 3D MODELS strip cards and tooltips: the file's basename (\"fountain.glb\") for glTF models, or the primitive's name (\"box\") for built-in primitives.\n",
              "file": "pkg/editor/models.go",
              "line": 50
            },
            {
              "name": "Key",
              "anchor": "ModelEntry.Key",
              "recv": "ModelEntry",
              "decl": "func (m ModelEntry) Key() string",
              "doc": "Key identifies the entry among those Models returns: \"mesh:\" and the primitive's name, or the file's path.\n",
              "file": "pkg/editor/models.go",
              "line": 33
            },
            {
              "name": "Name",
              "anchor": "ModelEntry.Name",
              "recv": "ModelEntry",
              "decl": "func (m ModelEntry) Name() string",
              "doc": "Name is what the asset browser shows for the entry and what a placed object is named after: the primitive's name, or the file's name without its extension (\"crate\" for \"models/crate.glb\").\n",
              "file": "pkg/editor/models.go",
              "line": 41
            }
          ]
        },
        {
          "name": "ModelMaterialInfo",
          "anchor": "ModelMaterialInfo",
          "decl": "type ModelMaterialInfo struct {\n\t// Index is the 0-based index of the material in gltf.Document.Materials.\n\tIndex int\n\t// Name is the authored glTF material name (may be empty).\n\tName string\n\t// AlphaMode is the glTF alpha mode (OPAQUE, MASK, or BLEND).\n\tAlphaMode gltf.AlphaMode\n\t// Metallic and Roughness are the PBR metallic-roughness factors.\n\tMetallic, Roughness float32\n\t// DoubleSided reports whether back-face culling is disabled.\n\tDoubleSided bool\n\t// Unlit reports whether KHR_materials_unlit is enabled.\n\tUnlit bool\n\t// HasBaseColorTexture reports whether the material binds a base color texture.\n\tHasBaseColorTexture bool\n\t// BaseColor is the linear RGBA base color factor.\n\tBaseColor math3d.Vec4\n}",
          "doc": "ModelMaterialInfo describes one glTF material shown in the model import preview.\n",
          "file": "pkg/editor/asset_import_model.go",
          "line": 89,
          "members": [
            {
              "name": "Index",
              "anchor": "ModelMaterialInfo.Index",
              "kind": "field",
              "doc": "Index is the 0-based index of the material in gltf.Document.Materials."
            },
            {
              "name": "Name",
              "anchor": "ModelMaterialInfo.Name",
              "kind": "field",
              "doc": "Name is the authored glTF material name (may be empty)."
            },
            {
              "name": "AlphaMode",
              "anchor": "ModelMaterialInfo.AlphaMode",
              "kind": "field",
              "doc": "AlphaMode is the glTF alpha mode (OPAQUE, MASK, or BLEND)."
            },
            {
              "name": "Metallic",
              "anchor": "ModelMaterialInfo.Metallic",
              "kind": "field",
              "doc": "Metallic and Roughness are the PBR metallic-roughness factors."
            },
            {
              "name": "Roughness",
              "anchor": "ModelMaterialInfo.Roughness",
              "kind": "field",
              "doc": "Metallic and Roughness are the PBR metallic-roughness factors."
            },
            {
              "name": "DoubleSided",
              "anchor": "ModelMaterialInfo.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided reports whether back-face culling is disabled."
            },
            {
              "name": "Unlit",
              "anchor": "ModelMaterialInfo.Unlit",
              "kind": "field",
              "doc": "Unlit reports whether KHR_materials_unlit is enabled."
            },
            {
              "name": "HasBaseColorTexture",
              "anchor": "ModelMaterialInfo.HasBaseColorTexture",
              "kind": "field",
              "doc": "HasBaseColorTexture reports whether the material binds a base color texture."
            },
            {
              "name": "BaseColor",
              "anchor": "ModelMaterialInfo.BaseColor",
              "kind": "field",
              "doc": "BaseColor is the linear RGBA base color factor."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "ModelMaterialInfo.DisplayName",
              "recv": "ModelMaterialInfo",
              "decl": "func (m ModelMaterialInfo) DisplayName() string",
              "doc": "DisplayName returns Name when non-empty, or \"Material <Index>\".\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 109
            }
          ]
        },
        {
          "name": "ModelMeshInfo",
          "anchor": "ModelMeshInfo",
          "decl": "type ModelMeshInfo struct {\n\t// Index is the 0-based index of the mesh in gltf.Document.Meshes.\n\tIndex int\n\t// Name is the authored glTF mesh name (may be empty).\n\tName string\n\t// Primitives is the number of primitives in the mesh.\n\tPrimitives int\n\t// Triangles is the total triangle count across all triangle primitives of the mesh.\n\tTriangles int\n\t// Vertices is the total vertex count across all primitives of the mesh.\n\tVertices int\n\t// MorphTargets is the maximum number of morph targets on any primitive of the mesh.\n\tMorphTargets int\n\t// Bounds is the local-space axis-aligned bounding box of the mesh.\n\tBounds math3d.AABB\n}",
          "doc": "ModelMeshInfo describes one glTF mesh shown in the model import preview.\n",
          "file": "pkg/editor/asset_import_model.go",
          "line": 63,
          "members": [
            {
              "name": "Index",
              "anchor": "ModelMeshInfo.Index",
              "kind": "field",
              "doc": "Index is the 0-based index of the mesh in gltf.Document.Meshes."
            },
            {
              "name": "Name",
              "anchor": "ModelMeshInfo.Name",
              "kind": "field",
              "doc": "Name is the authored glTF mesh name (may be empty)."
            },
            {
              "name": "Primitives",
              "anchor": "ModelMeshInfo.Primitives",
              "kind": "field",
              "doc": "Primitives is the number of primitives in the mesh."
            },
            {
              "name": "Triangles",
              "anchor": "ModelMeshInfo.Triangles",
              "kind": "field",
              "doc": "Triangles is the total triangle count across all triangle primitives of the mesh."
            },
            {
              "name": "Vertices",
              "anchor": "ModelMeshInfo.Vertices",
              "kind": "field",
              "doc": "Vertices is the total vertex count across all primitives of the mesh."
            },
            {
              "name": "MorphTargets",
              "anchor": "ModelMeshInfo.MorphTargets",
              "kind": "field",
              "doc": "MorphTargets is the maximum number of morph targets on any primitive of the mesh."
            },
            {
              "name": "Bounds",
              "anchor": "ModelMeshInfo.Bounds",
              "kind": "field",
              "doc": "Bounds is the local-space axis-aligned bounding box of the mesh."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "ModelMeshInfo.DisplayName",
              "recv": "ModelMeshInfo",
              "decl": "func (m ModelMeshInfo) DisplayName() string",
              "doc": "DisplayName returns Name when non-empty, or \"Mesh <Index>\".\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 81
            }
          ]
        },
        {
          "name": "ModelNodeInfo",
          "anchor": "ModelNodeInfo",
          "decl": "type ModelNodeInfo struct {\n\t// Index is the 0-based index of the node in gltf.Document.Nodes.\n\tIndex int\n\t// Name is the authored glTF node name (may be empty).\n\tName string\n\t// Parent is the parent node index, or -1 for a root node.\n\tParent int\n\t// Depth is the nesting depth in the scene graph (0 for root nodes).\n\tDepth int\n\t// Mesh is the referenced mesh index, or -1 when the node has no mesh.\n\tMesh int\n\t// MeshName is the referenced mesh's name (or empty).\n\tMeshName string\n\t// Skin is the referenced skin index, or -1 when unskinned.\n\tSkin int\n\t// Triangles is the triangle count of the node's mesh, or 0 when Mesh < 0.\n\tTriangles int\n\t// Bounds is the world-space axis-aligned bounding box of this node's mesh in rest pose, or empty when Mesh < 0.\n\tBounds math3d.AABB\n}",
          "doc": "ModelNodeInfo describes one glTF node shown in the model import preview.\n",
          "file": "pkg/editor/asset_import_model.go",
          "line": 33,
          "members": [
            {
              "name": "Index",
              "anchor": "ModelNodeInfo.Index",
              "kind": "field",
              "doc": "Index is the 0-based index of the node in gltf.Document.Nodes."
            },
            {
              "name": "Name",
              "anchor": "ModelNodeInfo.Name",
              "kind": "field",
              "doc": "Name is the authored glTF node name (may be empty)."
            },
            {
              "name": "Parent",
              "anchor": "ModelNodeInfo.Parent",
              "kind": "field",
              "doc": "Parent is the parent node index, or -1 for a root node."
            },
            {
              "name": "Depth",
              "anchor": "ModelNodeInfo.Depth",
              "kind": "field",
              "doc": "Depth is the nesting depth in the scene graph (0 for root nodes)."
            },
            {
              "name": "Mesh",
              "anchor": "ModelNodeInfo.Mesh",
              "kind": "field",
              "doc": "Mesh is the referenced mesh index, or -1 when the node has no mesh."
            },
            {
              "name": "MeshName",
              "anchor": "ModelNodeInfo.MeshName",
              "kind": "field",
              "doc": "MeshName is the referenced mesh's name (or empty)."
            },
            {
              "name": "Skin",
              "anchor": "ModelNodeInfo.Skin",
              "kind": "field",
              "doc": "Skin is the referenced skin index, or -1 when unskinned."
            },
            {
              "name": "Triangles",
              "anchor": "ModelNodeInfo.Triangles",
              "kind": "field",
              "doc": "Triangles is the triangle count of the node's mesh, or 0 when Mesh < 0."
            },
            {
              "name": "Bounds",
              "anchor": "ModelNodeInfo.Bounds",
              "kind": "field",
              "doc": "Bounds is the world-space axis-aligned bounding box of this node's mesh in rest pose, or empty when Mesh < 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "ModelNodeInfo.DisplayName",
              "recv": "ModelNodeInfo",
              "decl": "func (n ModelNodeInfo) DisplayName() string",
              "doc": "DisplayName returns Name when non-empty, or \"Node <Index>\".\n",
              "file": "pkg/editor/asset_import_model.go",
              "line": 55
            }
          ]
        },
        {
          "name": "ModelPreviewInfo",
          "anchor": "ModelPreviewInfo",
          "decl": "type ModelPreviewInfo struct {\n\t// Path is the clean slash-separated model path relative to the project root.\n\tPath string\n\t// Scale is the effective import scale from game.yaml or the sidecar.\n\tScale float64\n\t// Bounds is the axis-aligned bounding box of the model in unscaled space.\n\tBounds math3d.AABB\n\t// ScaledBounds is Bounds multiplied by Scale.\n\tScaledBounds math3d.AABB\n\t// TotalTriangles is the total rendered triangle count across the model's active scene.\n\tTotalTriangles int\n\t// TotalVertices is the total rendered vertex count across the model's active scene.\n\tTotalVertices int\n\n\tNodes      []ModelNodeInfo\n\tMeshes     []ModelMeshInfo\n\tMaterials  []ModelMaterialInfo\n\tAnimations []ModelAnimationInfo\n}",
          "doc": "ModelPreviewInfo summarizes a glTF or GLB model's contents, geometry counts,\nand bounds (both unscaled and at the effective import scale).\n",
          "file": "pkg/editor/asset_import_model.go",
          "line": 138,
          "members": [
            {
              "name": "Path",
              "anchor": "ModelPreviewInfo.Path",
              "kind": "field",
              "doc": "Path is the clean slash-separated model path relative to the project root."
            },
            {
              "name": "Scale",
              "anchor": "ModelPreviewInfo.Scale",
              "kind": "field",
              "doc": "Scale is the effective import scale from game.yaml or the sidecar."
            },
            {
              "name": "Bounds",
              "anchor": "ModelPreviewInfo.Bounds",
              "kind": "field",
              "doc": "Bounds is the axis-aligned bounding box of the model in unscaled space."
            },
            {
              "name": "ScaledBounds",
              "anchor": "ModelPreviewInfo.ScaledBounds",
              "kind": "field",
              "doc": "ScaledBounds is Bounds multiplied by Scale."
            },
            {
              "name": "TotalTriangles",
              "anchor": "ModelPreviewInfo.TotalTriangles",
              "kind": "field",
              "doc": "TotalTriangles is the total rendered triangle count across the model's active scene."
            },
            {
              "name": "TotalVertices",
              "anchor": "ModelPreviewInfo.TotalVertices",
              "kind": "field",
              "doc": "TotalVertices is the total rendered vertex count across the model's active scene."
            },
            {
              "name": "Nodes",
              "anchor": "ModelPreviewInfo.Nodes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Meshes",
              "anchor": "ModelPreviewInfo.Meshes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Materials",
              "anchor": "ModelPreviewInfo.Materials",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Animations",
              "anchor": "ModelPreviewInfo.Animations",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MoveUnderCandidate",
          "anchor": "MoveUnderCandidate",
          "decl": "type MoveUnderCandidate struct {\n\t// ID is the target parent object's ID, or \"\" for moving to the top level of Layer.\n\tID string\n\t// Name is the target's display name (or ID when Name is empty, or the layer name for a top-level entry).\n\tName string\n\t// Layer is the scene layer containing this target.\n\tLayer string\n\t// Note is the secondary hint shown beside the entry (such as \"layer Actors\", \"2 children\", \"current\", or \"locked\").\n\tNote string\n\t// Current reports that this entry is already the object's current parent.\n\tCurrent bool\n\t// Locked reports that this candidate object is locked in the session.\n\tLocked bool\n\t// IsLayerRoot reports that choosing this entry moves the object to the top level of Layer.\n\tIsLayerRoot bool\n\t// ChildCount is how many direct children the candidate object currently has.\n\tChildCount int\n\t// Depth is the candidate's nesting depth (0 for a layer root, 1 for a top-level object).\n\tDepth int\n}",
          "doc": "MoveUnderCandidate describes one valid target parent in the \"Move under\" submenu of an object's context menu.\n",
          "file": "pkg/editor/context_menu.go",
          "line": 31,
          "members": [
            {
              "name": "ID",
              "anchor": "MoveUnderCandidate.ID",
              "kind": "field",
              "doc": "ID is the target parent object's ID, or \"\" for moving to the top level of Layer."
            },
            {
              "name": "Name",
              "anchor": "MoveUnderCandidate.Name",
              "kind": "field",
              "doc": "Name is the target's display name (or ID when Name is empty, or the layer name for a top-level entry)."
            },
            {
              "name": "Layer",
              "anchor": "MoveUnderCandidate.Layer",
              "kind": "field",
              "doc": "Layer is the scene layer containing this target."
            },
            {
              "name": "Note",
              "anchor": "MoveUnderCandidate.Note",
              "kind": "field",
              "doc": "Note is the secondary hint shown beside the entry (such as \"layer Actors\", \"2 children\", \"current\", or \"locked\")."
            },
            {
              "name": "Current",
              "anchor": "MoveUnderCandidate.Current",
              "kind": "field",
              "doc": "Current reports that this entry is already the object's current parent."
            },
            {
              "name": "Locked",
              "anchor": "MoveUnderCandidate.Locked",
              "kind": "field",
              "doc": "Locked reports that this candidate object is locked in the session."
            },
            {
              "name": "IsLayerRoot",
              "anchor": "MoveUnderCandidate.IsLayerRoot",
              "kind": "field",
              "doc": "IsLayerRoot reports that choosing this entry moves the object to the top level of Layer."
            },
            {
              "name": "ChildCount",
              "anchor": "MoveUnderCandidate.ChildCount",
              "kind": "field",
              "doc": "ChildCount is how many direct children the candidate object currently has."
            },
            {
              "name": "Depth",
              "anchor": "MoveUnderCandidate.Depth",
              "kind": "field",
              "doc": "Depth is the candidate's nesting depth (0 for a layer root, 1 for a top-level object)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavMeshBakeConfig",
          "anchor": "NavMeshBakeConfig",
          "decl": "type NavMeshBakeConfig struct {\n\t// AgentName names the baked agent type; empty defaults to project.DefaultNavAgent (\"default\").\n\tAgentName string\n\t// Radius is how far the baked mesh keeps from walls and ledges.\n\tRadius float32\n\t// Height is the minimum ceiling clearance the agent needs.\n\tHeight float32\n\t// MaxClimb is the highest step (riser) the agent can climb.\n\tMaxClimb float32\n\t// MaxSlope is the steepest walkable slope in degrees, below 90.\n\tMaxSlope float32\n\t// CellSize is the horizontal (XZ) voxel size of the heightfield.\n\tCellSize float32\n\t// CellHeight is the vertical (Y) voxel size of the heightfield.\n\tCellHeight float32\n\t// OutputPath is the slash-separated project-relative path (or file path when no project is open)\n\t// where the deterministic .navmesh.yaml file is written. Empty uses SceneDoc.NavMesh or derives\n\t// a sibling .navmesh.yaml path from the open scene's path.\n\tOutputPath string\n}",
          "doc": "NavMeshBakeConfig holds the 3D navigation mesh bake parameters edited in the editor's\nNavMesh panel and used by Editor.BakeNavMesh3D. Zero numeric fields take navbake3d's defaults.\n",
          "file": "pkg/editor/navmesh3d.go",
          "line": 23,
          "members": [
            {
              "name": "AgentName",
              "anchor": "NavMeshBakeConfig.AgentName",
              "kind": "field",
              "doc": "AgentName names the baked agent type; empty defaults to project.DefaultNavAgent (\"default\")."
            },
            {
              "name": "Radius",
              "anchor": "NavMeshBakeConfig.Radius",
              "kind": "field",
              "doc": "Radius is how far the baked mesh keeps from walls and ledges."
            },
            {
              "name": "Height",
              "anchor": "NavMeshBakeConfig.Height",
              "kind": "field",
              "doc": "Height is the minimum ceiling clearance the agent needs."
            },
            {
              "name": "MaxClimb",
              "anchor": "NavMeshBakeConfig.MaxClimb",
              "kind": "field",
              "doc": "MaxClimb is the highest step (riser) the agent can climb."
            },
            {
              "name": "MaxSlope",
              "anchor": "NavMeshBakeConfig.MaxSlope",
              "kind": "field",
              "doc": "MaxSlope is the steepest walkable slope in degrees, below 90."
            },
            {
              "name": "CellSize",
              "anchor": "NavMeshBakeConfig.CellSize",
              "kind": "field",
              "doc": "CellSize is the horizontal (XZ) voxel size of the heightfield."
            },
            {
              "name": "CellHeight",
              "anchor": "NavMeshBakeConfig.CellHeight",
              "kind": "field",
              "doc": "CellHeight is the vertical (Y) voxel size of the heightfield."
            },
            {
              "name": "OutputPath",
              "anchor": "NavMeshBakeConfig.OutputPath",
              "kind": "field",
              "doc": "OutputPath is the slash-separated project-relative path (or file path when no project is open)\nwhere the deterministic .navmesh.yaml file is written. Empty uses SceneDoc.NavMesh or derives\na sibling .navmesh.yaml path from the open scene's path."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultNavMeshBakeConfig",
              "anchor": "DefaultNavMeshBakeConfig",
              "decl": "func DefaultNavMeshBakeConfig() NavMeshBakeConfig",
              "doc": "DefaultNavMeshBakeConfig returns NavMeshBakeConfig populated with navbake3d's defaults.\n",
              "file": "pkg/editor/navmesh3d.go",
              "line": 45
            }
          ],
          "methods": []
        },
        {
          "name": "NavPathPreview2D",
          "anchor": "NavPathPreview2D",
          "decl": "type NavPathPreview2D struct {\n\tHasStart bool\n\tHasEnd   bool\n\tStart    core.Point\n\tEnd      core.Point\n\tPath     []core.Point\n\tFound    bool\n}",
          "doc": "NavPathPreview2D holds the active 2D navigation test-path endpoints and the latest path returned by ai.NavMesh.FindPath.\n",
          "file": "pkg/editor/navregion2d_editor.go",
          "line": 26,
          "members": [
            {
              "name": "HasStart",
              "anchor": "NavPathPreview2D.HasStart",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasEnd",
              "anchor": "NavPathPreview2D.HasEnd",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Start",
              "anchor": "NavPathPreview2D.Start",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "End",
              "anchor": "NavPathPreview2D.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "NavPathPreview2D.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Found",
              "anchor": "NavPathPreview2D.Found",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Navigation3D",
          "anchor": "Navigation3D",
          "decl": "type Navigation3D string",
          "doc": "Navigation3D selects the 3D viewport's mouse navigation mapping.\n",
          "file": "pkg/editor/settings.go",
          "line": 123,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Navigation3DDefault",
                  "anchor": "Navigation3DDefault"
                },
                {
                  "name": "Navigation3DBlender",
                  "anchor": "Navigation3DBlender"
                },
                {
                  "name": "Navigation3DMaya",
                  "anchor": "Navigation3DMaya"
                }
              ],
              "decl": "const (\n\t// Navigation3DDefault orbits on left-drag, pans on Shift+left-drag or middle-drag, and flies on right-drag.\n\tNavigation3DDefault Navigation3D = \"default\"\n\t// Navigation3DBlender orbits on middle-drag, pans on Shift+middle-drag, and flies on right-drag.\n\tNavigation3DBlender Navigation3D = \"blender\"\n\t// Navigation3DMaya orbits on Alt+left-drag, pans on middle-drag (or Alt+middle-drag), and flies on right-drag.\n\tNavigation3DMaya Navigation3D = \"maya\"\n)",
              "doc": "",
              "file": "pkg/editor/settings.go",
              "line": 125
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "Navigation3D.Valid",
              "recv": "Navigation3D",
              "decl": "func (n Navigation3D) Valid() bool",
              "doc": "Valid reports whether n is a recognized 3D mouse navigation mapping.\n",
              "file": "pkg/editor/settings.go",
              "line": 135
            }
          ]
        },
        {
          "name": "NewTerrainOptions",
          "anchor": "NewTerrainOptions",
          "decl": "type NewTerrainOptions struct {\n\t// Name is the human-readable terrain name (defaults to \"Terrain\").\n\tName string\n\t// Path is the optional file path where SaveTerrain writes the *.terrain.yaml (project-relative when a project is open, or OS path).\n\tPath string\n\t// Cols and Rows set the heightmap grid dimensions (each defaults to 33 when < 2).\n\tCols int\n\tRows int\n\t// CellSize is the XZ spacing between samples in world units (defaults to 2 when <= 0).\n\tCellSize float32\n\t// HeightScale is the world-space Y scale for normalized [0, 1] heights (defaults to 32 when <= 0).\n\tHeightScale float32\n\t// Origin is the world-space origin of sample (0, 0).\n\tOrigin [3]float32\n\t// Layers optionally provides the initial material layers (defaults to grass and rock when empty).\n\tLayers []world3d.TerrainLayerDoc\n\t// Foliage optionally provides the initial foliage layers.\n\tFoliage []world3d.FoliageLayerDoc\n}",
          "doc": "NewTerrainOptions configures [Editor.NewTerrain].\n",
          "file": "pkg/editor/terrain.go",
          "line": 192,
          "members": [
            {
              "name": "Name",
              "anchor": "NewTerrainOptions.Name",
              "kind": "field",
              "doc": "Name is the human-readable terrain name (defaults to \"Terrain\")."
            },
            {
              "name": "Path",
              "anchor": "NewTerrainOptions.Path",
              "kind": "field",
              "doc": "Path is the optional file path where SaveTerrain writes the *.terrain.yaml (project-relative when a project is open, or OS path)."
            },
            {
              "name": "Cols",
              "anchor": "NewTerrainOptions.Cols",
              "kind": "field",
              "doc": "Cols and Rows set the heightmap grid dimensions (each defaults to 33 when < 2)."
            },
            {
              "name": "Rows",
              "anchor": "NewTerrainOptions.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CellSize",
              "anchor": "NewTerrainOptions.CellSize",
              "kind": "field",
              "doc": "CellSize is the XZ spacing between samples in world units (defaults to 2 when <= 0)."
            },
            {
              "name": "HeightScale",
              "anchor": "NewTerrainOptions.HeightScale",
              "kind": "field",
              "doc": "HeightScale is the world-space Y scale for normalized [0, 1] heights (defaults to 32 when <= 0)."
            },
            {
              "name": "Origin",
              "anchor": "NewTerrainOptions.Origin",
              "kind": "field",
              "doc": "Origin is the world-space origin of sample (0, 0)."
            },
            {
              "name": "Layers",
              "anchor": "NewTerrainOptions.Layers",
              "kind": "field",
              "doc": "Layers optionally provides the initial material layers (defaults to grass and rock when empty)."
            },
            {
              "name": "Foliage",
              "anchor": "NewTerrainOptions.Foliage",
              "kind": "field",
              "doc": "Foliage optionally provides the initial foliage layers."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Object3DRef",
          "anchor": "Object3DRef",
          "decl": "type Object3DRef struct {\n\tIndex      int\n\tLayerIndex int\n\t// ObjectIndex is the object's index among its siblings: the children of its parent, or its layer's top-level objects.\n\tObjectIndex int\n\tID          string\n\t// ParentID is the ID of the object's parent, or empty for a top-level object.\n\tParentID string\n\tDoc      *sceneformat.ObjectDoc\n}",
          "doc": "Object3DRef identifies a scene object by its flat 3D index, layer/object indices, and ID.\n",
          "file": "pkg/editor/viewport3d.go",
          "line": 271,
          "members": [
            {
              "name": "Index",
              "anchor": "Object3DRef.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LayerIndex",
              "anchor": "Object3DRef.LayerIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectIndex",
              "anchor": "Object3DRef.ObjectIndex",
              "kind": "field",
              "doc": "ObjectIndex is the object's index among its siblings: the children of its parent, or its layer's top-level objects."
            },
            {
              "name": "ID",
              "anchor": "Object3DRef.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParentID",
              "anchor": "Object3DRef.ParentID",
              "kind": "field",
              "doc": "ParentID is the ID of the object's parent, or empty for a top-level object."
            },
            {
              "name": "Doc",
              "anchor": "Object3DRef.Doc",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectChildrenSummary3D",
          "anchor": "ObjectChildrenSummary3D",
          "decl": "type ObjectChildrenSummary3D struct {\n\t// Count is the number of direct children.\n\tCount int\n\t// IDs are the child IDs (or names when an ID is empty) in document order.\n\tIDs []string\n\t// SharedRef is the shared prefab, model, or scene path when every child references the same one.\n\tSharedRef string\n\t// Summary is the formatted single-line summary (e.g. \"wall_n · wall_e · wall_w · wall_s_l · wall_s_r\" or \"bench_01 … bench_06 · prefabs/bench.prefab.yaml\").\n\tSummary string\n}",
          "doc": "ObjectChildrenSummary3D summarizes the direct children of a group object for the 3D inspector's CHILDREN section.\n",
          "file": "pkg/editor/models.go",
          "line": 888,
          "members": [
            {
              "name": "Count",
              "anchor": "ObjectChildrenSummary3D.Count",
              "kind": "field",
              "doc": "Count is the number of direct children."
            },
            {
              "name": "IDs",
              "anchor": "ObjectChildrenSummary3D.IDs",
              "kind": "field",
              "doc": "IDs are the child IDs (or names when an ID is empty) in document order."
            },
            {
              "name": "SharedRef",
              "anchor": "ObjectChildrenSummary3D.SharedRef",
              "kind": "field",
              "doc": "SharedRef is the shared prefab, model, or scene path when every child references the same one."
            },
            {
              "name": "Summary",
              "anchor": "ObjectChildrenSummary3D.Summary",
              "kind": "field",
              "doc": "Summary is the formatted single-line summary (e.g. \"wall_n · wall_e · wall_w · wall_s_l · wall_s_r\" or \"bench_01 … bench_06 · prefabs/bench.prefab.yaml\")."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectColliderSummary3D",
          "anchor": "ObjectColliderSummary3D",
          "decl": "type ObjectColliderSummary3D struct {\n\t// ShapeKey is the canonical component shape value (e.g. \"convex\", \"box\", \"sphere\", \"capsule\", \"cylinder\", \"trimesh\", \"heightfield\").\n\tShapeKey string\n\t// Shape is the localized human-readable shape name (e.g. \"Convex hull\", \"Box\").\n\tShape string\n\t// BodyKind is the effective 3D body kind (\"static\", \"dynamic\", \"kinematic\", or \"trigger\").\n\tBodyKind string\n\t// IsTrigger reports whether the collider behaves as a non-solid trigger sensor.\n\tIsTrigger bool\n}",
          "doc": "ObjectColliderSummary3D summarizes an object's 3D collider and physics body kind for the 3D inspector's COLLIDER section.\n",
          "file": "pkg/editor/models.go",
          "line": 804,
          "members": [
            {
              "name": "ShapeKey",
              "anchor": "ObjectColliderSummary3D.ShapeKey",
              "kind": "field",
              "doc": "ShapeKey is the canonical component shape value (e.g. \"convex\", \"box\", \"sphere\", \"capsule\", \"cylinder\", \"trimesh\", \"heightfield\")."
            },
            {
              "name": "Shape",
              "anchor": "ObjectColliderSummary3D.Shape",
              "kind": "field",
              "doc": "Shape is the localized human-readable shape name (e.g. \"Convex hull\", \"Box\")."
            },
            {
              "name": "BodyKind",
              "anchor": "ObjectColliderSummary3D.BodyKind",
              "kind": "field",
              "doc": "BodyKind is the effective 3D body kind (\"static\", \"dynamic\", \"kinematic\", or \"trigger\")."
            },
            {
              "name": "IsTrigger",
              "anchor": "ObjectColliderSummary3D.IsTrigger",
              "kind": "field",
              "doc": "IsTrigger reports whether the collider behaves as a non-solid trigger sensor."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Text",
              "anchor": "ObjectColliderSummary3D.Text",
              "recv": "ObjectColliderSummary3D",
              "decl": "func (s ObjectColliderSummary3D) Text() string",
              "doc": "Text formats the collider summary as \"<Shape> · <BodyKind>\" (for example, \"Convex hull · static\").\n",
              "file": "pkg/editor/models.go",
              "line": 816
            }
          ]
        },
        {
          "name": "ObjectEvent",
          "anchor": "ObjectEvent",
          "decl": "type ObjectEvent struct {\n\t// Component is the component type name on the object.\n\tComponent string\n\t// Event is the event declaration from the component registry.\n\tEvent sceneformat.Event\n\t// Ref is the shortest unambiguous name to write in ConnectionDoc.Event: the bare event name when unique on the object, or \"component.event\" when several of its registered components declare the same name.\n\tRef string\n}",
          "doc": "ObjectEvent is an event declared by one of an object's registered components.\n",
          "file": "pkg/editor/connections.go",
          "line": 15,
          "members": [
            {
              "name": "Component",
              "anchor": "ObjectEvent.Component",
              "kind": "field",
              "doc": "Component is the component type name on the object."
            },
            {
              "name": "Event",
              "anchor": "ObjectEvent.Event",
              "kind": "field",
              "doc": "Event is the event declaration from the component registry."
            },
            {
              "name": "Ref",
              "anchor": "ObjectEvent.Ref",
              "kind": "field",
              "doc": "Ref is the shortest unambiguous name to write in ConnectionDoc.Event: the bare event name when unique on the object, or \"component.event\" when several of its registered components declare the same name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectHandler",
          "anchor": "ObjectHandler",
          "decl": "type ObjectHandler struct {\n\t// Component is the component type name on the object.\n\tComponent string\n\t// Handler is the handler declaration (including Params and Doc) from the component registry.\n\tHandler sceneformat.Handler\n\t// Ref is the shortest unambiguous name to write in ConnectionDoc.Handler: the bare handler name when unique on the object, or \"component.handler\" when several of its registered components declare the same name.\n\tRef string\n}",
          "doc": "ObjectHandler is a handler declared by one of an object's registered components.\n",
          "file": "pkg/editor/connections.go",
          "line": 25,
          "members": [
            {
              "name": "Component",
              "anchor": "ObjectHandler.Component",
              "kind": "field",
              "doc": "Component is the component type name on the object."
            },
            {
              "name": "Handler",
              "anchor": "ObjectHandler.Handler",
              "kind": "field",
              "doc": "Handler is the handler declaration (including Params and Doc) from the component registry."
            },
            {
              "name": "Ref",
              "anchor": "ObjectHandler.Ref",
              "kind": "field",
              "doc": "Ref is the shortest unambiguous name to write in ConnectionDoc.Handler: the bare handler name when unique on the object, or \"component.handler\" when several of its registered components declare the same name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectMaterialSummary3D",
          "anchor": "ObjectMaterialSummary3D",
          "decl": "type ObjectMaterialSummary3D struct {\n\t// Path is the project-relative *.material.yaml path, or empty when the object uses the model's embedded glTF material or default primitive surface.\n\tPath string\n\t// FileName is the basename of Path (e.g. \"stone.material.yaml\"), or empty when no external material file is assigned.\n\tFileName string\n\t// Roughness is the PBR roughness in [0, 1].\n\tRoughness float32\n\t// Metallic is the PBR metallic factor in [0, 1].\n\tMetallic float32\n\t// HasValues reports whether Roughness and Metallic were resolved from a material file or built 3D drawable.\n\tHasValues bool\n}",
          "doc": "ObjectMaterialSummary3D summarizes the 3D surface material (material file name, roughness, and metallic) for the 3D inspector's MATERIAL section.\n",
          "file": "pkg/editor/models.go",
          "line": 730,
          "members": [
            {
              "name": "Path",
              "anchor": "ObjectMaterialSummary3D.Path",
              "kind": "field",
              "doc": "Path is the project-relative *.material.yaml path, or empty when the object uses the model's embedded glTF material or default primitive surface."
            },
            {
              "name": "FileName",
              "anchor": "ObjectMaterialSummary3D.FileName",
              "kind": "field",
              "doc": "FileName is the basename of Path (e.g. \"stone.material.yaml\"), or empty when no external material file is assigned."
            },
            {
              "name": "Roughness",
              "anchor": "ObjectMaterialSummary3D.Roughness",
              "kind": "field",
              "doc": "Roughness is the PBR roughness in [0, 1]."
            },
            {
              "name": "Metallic",
              "anchor": "ObjectMaterialSummary3D.Metallic",
              "kind": "field",
              "doc": "Metallic is the PBR metallic factor in [0, 1]."
            },
            {
              "name": "HasValues",
              "anchor": "ObjectMaterialSummary3D.HasValues",
              "kind": "field",
              "doc": "HasValues reports whether Roughness and Metallic were resolved from a material file or built 3D drawable."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectModelSummary3D",
          "anchor": "ObjectModelSummary3D",
          "decl": "type ObjectModelSummary3D struct {\n\t// Path is the project-relative glTF model path (e.g. \"models/fountain.glb\"), or empty for a built-in primitive.\n\tPath string\n\t// Mesh is the built-in primitive name (e.g. \"box\"), or empty for a glTF model file.\n\tMesh string\n\t// Triangles is the total triangle count across all drawables belonging to the object.\n\tTriangles int\n\t// MaterialCount is the number of distinct materials used by the object's drawables.\n\tMaterialCount int\n}",
          "doc": "ObjectModelSummary3D summarizes the 3D geometry drawn by an object for the 3D inspector's MODEL card.\n",
          "file": "pkg/editor/models.go",
          "line": 570,
          "members": [
            {
              "name": "Path",
              "anchor": "ObjectModelSummary3D.Path",
              "kind": "field",
              "doc": "Path is the project-relative glTF model path (e.g. \"models/fountain.glb\"), or empty for a built-in primitive."
            },
            {
              "name": "Mesh",
              "anchor": "ObjectModelSummary3D.Mesh",
              "kind": "field",
              "doc": "Mesh is the built-in primitive name (e.g. \"box\"), or empty for a glTF model file."
            },
            {
              "name": "Triangles",
              "anchor": "ObjectModelSummary3D.Triangles",
              "kind": "field",
              "doc": "Triangles is the total triangle count across all drawables belonging to the object."
            },
            {
              "name": "MaterialCount",
              "anchor": "ObjectModelSummary3D.MaterialCount",
              "kind": "field",
              "doc": "MaterialCount is the number of distinct materials used by the object's drawables."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Entry",
              "anchor": "ObjectModelSummary3D.Entry",
              "recv": "ObjectModelSummary3D",
              "decl": "func (s ObjectModelSummary3D) Entry() ModelEntry",
              "doc": "Entry returns the ModelEntry for rendering the object's offscreen thumbnail.\n",
              "file": "pkg/editor/models.go",
              "line": 582
            },
            {
              "name": "StatsText",
              "anchor": "ObjectModelSummary3D.StatsText",
              "recv": "ObjectModelSummary3D",
              "decl": "func (s ObjectModelSummary3D) StatsText() string",
              "doc": "StatsText formats triangle and material counts concisely (for example, \"1,284 tris · 2 materials\").\n",
              "file": "pkg/editor/models.go",
              "line": 587
            }
          ]
        },
        {
          "name": "ObjectOrigin",
          "anchor": "ObjectOrigin",
          "decl": "type ObjectOrigin int",
          "doc": "ObjectOrigin identifies where an object in the active scene originates.\n",
          "file": "pkg/editor/overrides.go",
          "line": 19,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ObjectLocal",
                  "anchor": "ObjectLocal"
                },
                {
                  "name": "ObjectInstanced",
                  "anchor": "ObjectInstanced"
                },
                {
                  "name": "ObjectInherited",
                  "anchor": "ObjectInherited"
                }
              ],
              "decl": "const (\n\t// ObjectLocal is an object defined directly in Editor.Doc.\n\tObjectLocal ObjectOrigin = iota\n\t// ObjectInstanced is an object brought in by a local scene instance (ObjectDoc.Scene) in Editor.Doc.\n\tObjectInstanced\n\t// ObjectInherited is an object brought in by the scene's base scene (SceneDoc.Inherits), including any instanced objects inside that base scene.\n\tObjectInherited\n)",
              "doc": "",
              "file": "pkg/editor/overrides.go",
              "line": 21
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ObjectOrigin.String",
              "recv": "ObjectOrigin",
              "decl": "func (o ObjectOrigin) String() string",
              "doc": "String returns a human-readable label for the object origin.\n",
              "file": "pkg/editor/overrides.go",
              "line": 31
            }
          ]
        },
        {
          "name": "ObjectOverlay",
          "anchor": "ObjectOverlay",
          "decl": "type ObjectOverlay struct {\n\t// Kind selects which of the seven Spec overlay styles to draw.\n\tKind OverlayKind\n\t// ChangeKind, when Kind is OverlayKindFocusedChange, chooses the underlying change kind\n\t// (OverlayKindAdded, OverlayKindChanged, or OverlayKindRemoved; defaults to OverlayKindAdded).\n\t// Focused changes always keep their own semantic color and dash at 2.5 px — never Accent.\n\tChangeKind OverlayKind\n\t// Label is the primary text shown in the overlay's tag or pill:\n\t//   - Selection: object name (for example \"Knight\")\n\t//   - Agent: what the agent is doing (for example \"placing slime_02\")\n\t//   - Added: object name (prefixed with \"+ \" automatically if absent)\n\t//   - Changed: field old → new value (for example \"z 10 → 12\")\n\t//   - Removed: removed object name (drawn struck-through beside SecondaryLabel)\n\t//   - Problem: alert message (for example \"door: lever_02 is missing\")\n\tLabel string\n\t// SecondaryLabel optionally overrides the trailing text on Removed pills (defaults to \"removed\").\n\tSecondaryLabel string\n\t// TaskNumber, when > 0 on OverlayKindAgent, draws the numbered task badge inside the agent pill.\n\tTaskNumber int\n\t// Holding, when true on OverlayKindAgent, renders the holding (45% dashed + clock glyph) variant.\n\tHolding bool\n\t// Bounds is the object's axis-aligned bounding box in canvas points.\n\tBounds core.Bounds\n\t// Corners optionally supplies the exact transformed 4-corner quad in canvas points for\n\t// rotated 2D selection outlines. When empty, Bounds is used.\n\tCorners []math2d.Vec2\n\t// CanvasSize optionally clamps pill placement inside the viewport canvas.\n\tCanvasSize core.Size\n\t// PairedWithSelection, when true on OverlayKindAgent, places the agent outline 3 px further\n\t// out than Selection's outline so Selection keeps its handles inside.\n\tPairedWithSelection bool\n\t// PillStackOffset shifts the pill upward in points to clear another pill on the same object.\n\tPillStackOffset float32\n\t// Elapsed is the time since this overlay appeared (change fade-in) or started (agent pulse).\n\t// When HasElapsed is false, the overlay renders at full opacity (1.0).\n\tElapsed    time.Duration\n\tHasElapsed bool\n\t// ReduceMotion disables fade-in (instant 100%) and agent outline pulsing (solid 100%).\n\tReduceMotion bool\n}",
          "doc": "ObjectOverlay describes one Spec viewport overlay drawn over an object's canvas bounds.\n",
          "file": "pkg/editor/viewport_overlay.go",
          "line": 144,
          "members": [
            {
              "name": "Kind",
              "anchor": "ObjectOverlay.Kind",
              "kind": "field",
              "doc": "Kind selects which of the seven Spec overlay styles to draw."
            },
            {
              "name": "ChangeKind",
              "anchor": "ObjectOverlay.ChangeKind",
              "kind": "field",
              "doc": "ChangeKind, when Kind is OverlayKindFocusedChange, chooses the underlying change kind\n(OverlayKindAdded, OverlayKindChanged, or OverlayKindRemoved; defaults to OverlayKindAdded).\nFocused changes always keep their own semantic color and dash at 2.5 px — never Accent."
            },
            {
              "name": "Label",
              "anchor": "ObjectOverlay.Label",
              "kind": "field",
              "doc": "Label is the primary text shown in the overlay's tag or pill:\n  - Selection: object name (for example \"Knight\")\n  - Agent: what the agent is doing (for example \"placing slime_02\")\n  - Added: object name (prefixed with \"+ \" automatically if absent)\n  - Changed: field old → new value (for example \"z 10 → 12\")\n  - Removed: removed object name (drawn struck-through beside SecondaryLabel)\n  - Problem: alert message (for example \"door: lever_02 is missing\")"
            },
            {
              "name": "SecondaryLabel",
              "anchor": "ObjectOverlay.SecondaryLabel",
              "kind": "field",
              "doc": "SecondaryLabel optionally overrides the trailing text on Removed pills (defaults to \"removed\")."
            },
            {
              "name": "TaskNumber",
              "anchor": "ObjectOverlay.TaskNumber",
              "kind": "field",
              "doc": "TaskNumber, when > 0 on OverlayKindAgent, draws the numbered task badge inside the agent pill."
            },
            {
              "name": "Holding",
              "anchor": "ObjectOverlay.Holding",
              "kind": "field",
              "doc": "Holding, when true on OverlayKindAgent, renders the holding (45% dashed + clock glyph) variant."
            },
            {
              "name": "Bounds",
              "anchor": "ObjectOverlay.Bounds",
              "kind": "field",
              "doc": "Bounds is the object's axis-aligned bounding box in canvas points."
            },
            {
              "name": "Corners",
              "anchor": "ObjectOverlay.Corners",
              "kind": "field",
              "doc": "Corners optionally supplies the exact transformed 4-corner quad in canvas points for\nrotated 2D selection outlines. When empty, Bounds is used."
            },
            {
              "name": "CanvasSize",
              "anchor": "ObjectOverlay.CanvasSize",
              "kind": "field",
              "doc": "CanvasSize optionally clamps pill placement inside the viewport canvas."
            },
            {
              "name": "PairedWithSelection",
              "anchor": "ObjectOverlay.PairedWithSelection",
              "kind": "field",
              "doc": "PairedWithSelection, when true on OverlayKindAgent, places the agent outline 3 px further\nout than Selection's outline so Selection keeps its handles inside."
            },
            {
              "name": "PillStackOffset",
              "anchor": "ObjectOverlay.PillStackOffset",
              "kind": "field",
              "doc": "PillStackOffset shifts the pill upward in points to clear another pill on the same object."
            },
            {
              "name": "Elapsed",
              "anchor": "ObjectOverlay.Elapsed",
              "kind": "field",
              "doc": "Elapsed is the time since this overlay appeared (change fade-in) or started (agent pulse).\nWhen HasElapsed is false, the overlay renders at full opacity (1.0)."
            },
            {
              "name": "HasElapsed",
              "anchor": "ObjectOverlay.HasElapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReduceMotion",
              "anchor": "ObjectOverlay.ReduceMotion",
              "kind": "field",
              "doc": "ReduceMotion disables fade-in (instant 100%) and agent outline pulsing (solid 100%)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectOverrideInfo",
          "anchor": "ObjectOverrideInfo",
          "decl": "type ObjectOverrideInfo struct {\n\t// ID is the object's full ID in the resolved scene (for example \"enemy_1/body\" or \"hero\").\n\tID string\n\t// Origin is ObjectLocal, ObjectInstanced, or ObjectInherited.\n\tOrigin ObjectOrigin\n\t// Layer is the name of the layer holding the object in the resolved scene.\n\tLayer string\n\t// InstanceID is the ID of the owning local scene-instancing object in Editor.Doc when Origin is ObjectInstanced, or \"\" otherwise.\n\tInstanceID string\n\t// Key is the override map key: the object's ID inside the instanced scene when Origin is ObjectInstanced, or the full ID when Origin is ObjectInherited.\n\tKey string\n\t// SourceScene is the slash-separated path of the scene file that defines this object (instance.Scene or Editor.Doc.Inherits).\n\tSourceScene string\n}",
          "doc": "ObjectOverrideInfo describes an object's origin and where edits to it record overrides.\n",
          "file": "pkg/editor/overrides.go",
          "line": 43,
          "members": [
            {
              "name": "ID",
              "anchor": "ObjectOverrideInfo.ID",
              "kind": "field",
              "doc": "ID is the object's full ID in the resolved scene (for example \"enemy_1/body\" or \"hero\")."
            },
            {
              "name": "Origin",
              "anchor": "ObjectOverrideInfo.Origin",
              "kind": "field",
              "doc": "Origin is ObjectLocal, ObjectInstanced, or ObjectInherited."
            },
            {
              "name": "Layer",
              "anchor": "ObjectOverrideInfo.Layer",
              "kind": "field",
              "doc": "Layer is the name of the layer holding the object in the resolved scene."
            },
            {
              "name": "InstanceID",
              "anchor": "ObjectOverrideInfo.InstanceID",
              "kind": "field",
              "doc": "InstanceID is the ID of the owning local scene-instancing object in Editor.Doc when Origin is ObjectInstanced, or \"\" otherwise."
            },
            {
              "name": "Key",
              "anchor": "ObjectOverrideInfo.Key",
              "kind": "field",
              "doc": "Key is the override map key: the object's ID inside the instanced scene when Origin is ObjectInstanced, or the full ID when Origin is ObjectInherited."
            },
            {
              "name": "SourceScene",
              "anchor": "ObjectOverrideInfo.SourceScene",
              "kind": "field",
              "doc": "SourceScene is the slash-separated path of the scene file that defines this object (instance.Scene or Editor.Doc.Inherits)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectTaskOverlay",
          "anchor": "ObjectTaskOverlay",
          "decl": "type ObjectTaskOverlay struct {\n\tTaskID              string\n\tTaskNumber          int\n\tObjectID            string\n\tHolding             bool\n\tBlockedOn           string\n\tBlockedByTaskNumber int\n\tLabel               string\n}",
          "doc": "ObjectTaskOverlay describes a numbered overlay drawn on an object in the viewport and scene tree.\n",
          "file": "pkg/editor/tasks.go",
          "line": 282,
          "members": [
            {
              "name": "TaskID",
              "anchor": "ObjectTaskOverlay.TaskID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TaskNumber",
              "anchor": "ObjectTaskOverlay.TaskNumber",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ObjectTaskOverlay.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Holding",
              "anchor": "ObjectTaskOverlay.Holding",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlockedOn",
              "anchor": "ObjectTaskOverlay.BlockedOn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlockedByTaskNumber",
              "anchor": "ObjectTaskOverlay.BlockedByTaskNumber",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "ObjectTaskOverlay.Label",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectUsagesResult",
          "anchor": "ObjectUsagesResult",
          "decl": "type ObjectUsagesResult struct {\n\t// Target is the scene path, prefab name, or object ID that was searched.\n\tTarget string\n\t// Kind is \"references\" when FindReferences ran for a project file path, or \"search\" when Search ran.\n\tKind string\n\t// References holds matching file references when Kind == \"references\".\n\tReferences []refs.Ref\n\t// SearchResults holds matching project search hits when Kind == \"search\".\n\tSearchResults []SearchResult\n\t// Count is the total number of usages found.\n\tCount int\n}",
          "doc": "ObjectUsagesResult reports project references or search matches found for an object by FindObjectUsages.\n",
          "file": "pkg/editor/context_menu.go",
          "line": 53,
          "members": [
            {
              "name": "Target",
              "anchor": "ObjectUsagesResult.Target",
              "kind": "field",
              "doc": "Target is the scene path, prefab name, or object ID that was searched."
            },
            {
              "name": "Kind",
              "anchor": "ObjectUsagesResult.Kind",
              "kind": "field",
              "doc": "Kind is \"references\" when FindReferences ran for a project file path, or \"search\" when Search ran."
            },
            {
              "name": "References",
              "anchor": "ObjectUsagesResult.References",
              "kind": "field",
              "doc": "References holds matching file references when Kind == \"references\"."
            },
            {
              "name": "SearchResults",
              "anchor": "ObjectUsagesResult.SearchResults",
              "kind": "field",
              "doc": "SearchResults holds matching project search hits when Kind == \"search\"."
            },
            {
              "name": "Count",
              "anchor": "ObjectUsagesResult.Count",
              "kind": "field",
              "doc": "Count is the total number of usages found."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "OrbitCamera3D",
          "anchor": "OrbitCamera3D",
          "decl": "type OrbitCamera3D struct {\n\tTarget   [3]float32\n\tYaw      float32\n\tPitch    float32\n\tDistance float32\n\tFOV      float32\n\tNear     float32\n\tFar      float32\n\t// Orthographic projects the view in parallel instead of in perspective. The view is OrthoHeight high, the height the perspective view shows at Target, so switching keeps what lies at Target the same size; Distance still zooms it, and the eye moves back along the view so the clip planes take in the scene in front of Target and behind it.\n\tOrthographic bool\n}",
          "doc": "OrbitCamera3D is a pure-Go right-handed (Y-up) orbit camera for the 3D scene view: it looks at Target from Distance away, turned by Yaw about the vertical axis and tilted by Pitch, through a perspective projection or, with Orthographic, a parallel one.\n",
          "file": "pkg/editor/viewport3d.go",
          "line": 26,
          "members": [
            {
              "name": "Target",
              "anchor": "OrbitCamera3D.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Yaw",
              "anchor": "OrbitCamera3D.Yaw",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pitch",
              "anchor": "OrbitCamera3D.Pitch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Distance",
              "anchor": "OrbitCamera3D.Distance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FOV",
              "anchor": "OrbitCamera3D.FOV",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Near",
              "anchor": "OrbitCamera3D.Near",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Far",
              "anchor": "OrbitCamera3D.Far",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Orthographic",
              "anchor": "OrbitCamera3D.Orthographic",
              "kind": "field",
              "doc": "Orthographic projects the view in parallel instead of in perspective. The view is OrthoHeight high, the height the perspective view shows at Target, so switching keeps what lies at Target the same size; Distance still zooms it, and the eye moves back along the view so the clip planes take in the scene in front of Target and behind it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultOrbitCamera3D",
              "anchor": "DefaultOrbitCamera3D",
              "decl": "func DefaultOrbitCamera3D() OrbitCamera3D",
              "doc": "DefaultOrbitCamera3D returns a perspective orbit camera framed on the world origin.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 39
            }
          ],
          "methods": [
            {
              "name": "AxisView",
              "anchor": "OrbitCamera3D.AxisView",
              "recv": "OrbitCamera3D",
              "decl": "func (c OrbitCamera3D) AxisView() (View3D, bool)",
              "doc": "AxisView returns the axis view the camera looks along, and false when it looks along none, as after an orbit.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 81
            },
            {
              "name": "Basis",
              "anchor": "OrbitCamera3D.Basis",
              "recv": "OrbitCamera3D",
              "decl": "func (c OrbitCamera3D) Basis() (right, up, forward [3]float32)",
              "doc": "Basis returns the camera's orthonormal right, up, and forward (eye-to-target) unit vectors in world space.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 121
            },
            {
              "name": "Eye",
              "anchor": "OrbitCamera3D.Eye",
              "recv": "OrbitCamera3D",
              "decl": "func (c OrbitCamera3D) Eye() [3]float32",
              "doc": "Eye returns the camera's world-space position derived from Target, Yaw, Pitch and Distance, moved back along the view in orthographic (Orthographic).\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 100
            },
            {
              "name": "Fly",
              "anchor": "OrbitCamera3D.Fly",
              "recv": "*OrbitCamera3D",
              "decl": "func (c *OrbitCamera3D) Fly(right, up, forward float32)",
              "doc": "Fly moves the camera, eye and Target together, by right along the view's right direction, up along the world's up axis and forward along the direction the view looks. A move that is not finite changes nothing.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 118
            },
            {
              "name": "Look",
              "anchor": "OrbitCamera3D.Look",
              "recv": "*OrbitCamera3D",
              "decl": "func (c *OrbitCamera3D) Look(dyaw, dpitch float32)",
              "doc": "Look turns the camera about its eye, as a first-person camera turns its head: dyaw turns it left (positive) or right and dpitch tilts it down (positive) or up, in radians; a turn that is not finite changes nothing. Target moves to stay Distance in front of the eye, and the tilt stops short of straight up or down, as Orbit's does.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 105
            },
            {
              "name": "Orbit",
              "anchor": "OrbitCamera3D.Orbit",
              "recv": "*OrbitCamera3D",
              "decl": "func (c *OrbitCamera3D) Orbit(dyaw, dpitch float32)",
              "doc": "Orbit rotates the camera around Target by dyaw (azimuth) and dpitch (elevation) in radians.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 138
            },
            {
              "name": "OrthoHeight",
              "anchor": "OrbitCamera3D.OrthoHeight",
              "recv": "OrbitCamera3D",
              "decl": "func (c OrbitCamera3D) OrthoHeight() float32",
              "doc": "OrthoHeight returns the world height the view shows at Target: the whole height of the orthographic view, and the height of the perspective view's slice through Target.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 72
            },
            {
              "name": "Pan",
              "anchor": "OrbitCamera3D.Pan",
              "recv": "*OrbitCamera3D",
              "decl": "func (c *OrbitCamera3D) Pan(dx, dy float32)",
              "doc": "Pan translates Target parallel to the camera image plane by dx along camera right and dy along camera up.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 153
            },
            {
              "name": "Project",
              "anchor": "OrbitCamera3D.Project",
              "recv": "OrbitCamera3D",
              "decl": "func (c OrbitCamera3D) Project(world [3]float32, w, h float32) (sx, sy, depth float32, visible bool)",
              "doc": "Project transforms a world-space 3D point into viewport pixel coordinates (sx, sy) and camera depth, in perspective or in orthographic (Orthographic).\nvisible is true when the point lies strictly between Near and Far in front of the camera.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 231
            },
            {
              "name": "Ray",
              "anchor": "OrbitCamera3D.Ray",
              "recv": "OrbitCamera3D",
              "decl": "func (c OrbitCamera3D) Ray(sx, sy, w, h float32) math3d.Ray",
              "doc": "Ray returns the world-space pick ray passing through viewport pixel (sx, sy) for a viewport of size w x h.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 33
            },
            {
              "name": "SceneCamera",
              "anchor": "OrbitCamera3D.SceneCamera",
              "recv": "OrbitCamera3D",
              "decl": "func (c OrbitCamera3D) SceneCamera(w, h float32) *scene3d.Camera",
              "doc": "SceneCamera returns c as a scene3d.Camera for a viewport w by h, with the same eye, view direction, projection (perspective, or orthographic with OrthoHeight) and clip planes that Project and ScreenRay use, which the 3D viewport draws the scene's geometry through.\n",
              "file": "pkg/editor/viewport3d_gpu.go",
              "line": 38
            },
            {
              "name": "ScreenRay",
              "anchor": "OrbitCamera3D.ScreenRay",
              "recv": "OrbitCamera3D",
              "decl": "func (c OrbitCamera3D) ScreenRay(sx, sy, w, h float32) (origin, dir [3]float32)",
              "doc": "ScreenRay returns the world-space ray (origin, unit direction) passing through viewport pixel (sx, sy). In perspective every ray starts at the eye; in orthographic (Orthographic) every ray runs along the view's forward direction from the point of the eye's plane under the pixel.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 246
            },
            {
              "name": "SetView",
              "anchor": "OrbitCamera3D.SetView",
              "recv": "*OrbitCamera3D",
              "decl": "func (c *OrbitCamera3D) SetView(v View3D)",
              "doc": "SetView turns the camera to look at Target along the axis view v, keeping Target, Distance and the projection. A value that names no view changes nothing.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 71
            },
            {
              "name": "ViewProj",
              "anchor": "OrbitCamera3D.ViewProj",
              "recv": "OrbitCamera3D",
              "decl": "func (c OrbitCamera3D) ViewProj(w, h float32) math3d.Mat4",
              "doc": "ViewProj returns the right-handed Y-up [0, 1] NDC view-projection matrix\nmatching OrbitCamera3D.SceneCamera (perspective or orthographic) for a\nviewport of size w x h.\n",
              "file": "pkg/editor/viewport3d_lod_occluder.go",
              "line": 20
            },
            {
              "name": "Zoom",
              "anchor": "OrbitCamera3D.Zoom",
              "recv": "*OrbitCamera3D",
              "decl": "func (c *OrbitCamera3D) Zoom(delta float32)",
              "doc": "Zoom adjusts camera Distance by subtracting delta (positive zooms in, negative zooms out),\nclamped to a safe positive range.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 165
            },
            {
              "name": "ZoomBy",
              "anchor": "OrbitCamera3D.ZoomBy",
              "recv": "*OrbitCamera3D",
              "decl": "func (c *OrbitCamera3D) ZoomBy(factor float32)",
              "doc": "ZoomBy divides Distance by factor, so a factor of 2 shows the view twice as large, clamped as Zoom clamps it. A factor that is not positive and finite changes nothing.\n",
              "file": "pkg/editor/viewport3d.go",
              "line": 177
            }
          ]
        },
        {
          "name": "OutputEntry",
          "anchor": "OutputEntry",
          "decl": "type OutputEntry struct {\n\tTime   time.Time\n\tSource OutputSource\n\tLevel  OutputLevel\n\tText   string\n\t// File is the parsed file path when Text contains a file:line location, or empty.\n\tFile string\n\t// Line is the 1-based line number paired with File, or 0 when none was parsed.\n\tLine int\n}",
          "doc": "OutputEntry is one timestamped line in the editor's Output panel history.\n",
          "file": "pkg/editor/output_panel.go",
          "line": 70,
          "members": [
            {
              "name": "Time",
              "anchor": "OutputEntry.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "OutputEntry.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Level",
              "anchor": "OutputEntry.Level",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "OutputEntry.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "OutputEntry.File",
              "kind": "field",
              "doc": "File is the parsed file path when Text contains a file:line location, or empty."
            },
            {
              "name": "Line",
              "anchor": "OutputEntry.Line",
              "kind": "field",
              "doc": "Line is the 1-based line number paired with File, or 0 when none was parsed."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "OutputLevel",
          "anchor": "OutputLevel",
          "decl": "type OutputLevel int",
          "doc": "OutputLevel classifies the severity of an Output panel entry.\n",
          "file": "pkg/editor/output_panel.go",
          "line": 48,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OutputInfo",
                  "anchor": "OutputInfo"
                },
                {
                  "name": "OutputError",
                  "anchor": "OutputError"
                }
              ],
              "decl": "const (\n\t// OutputInfo is a normal status message or game stdout line.\n\tOutputInfo OutputLevel = iota\n\t// OutputError is an error reported by the editor or streamed from game stderr.\n\tOutputError\n)",
              "doc": "",
              "file": "pkg/editor/output_panel.go",
              "line": 50
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "OutputLevel.String",
              "recv": "OutputLevel",
              "decl": "func (l OutputLevel) String() string",
              "doc": "String returns a short label for the output level (\"info\" or \"error\").\n",
              "file": "pkg/editor/output_panel.go",
              "line": 58
            }
          ]
        },
        {
          "name": "OutputSource",
          "anchor": "OutputSource",
          "decl": "type OutputSource int",
          "doc": "OutputSource identifies where a line in the Output panel originated.\n",
          "file": "pkg/editor/output_panel.go",
          "line": 22,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OutputEditor",
                  "anchor": "OutputEditor"
                },
                {
                  "name": "OutputStdout",
                  "anchor": "OutputStdout"
                },
                {
                  "name": "OutputStderr",
                  "anchor": "OutputStderr"
                }
              ],
              "decl": "const (\n\t// OutputEditor is a status or error message produced by the editor itself.\n\tOutputEditor OutputSource = iota\n\t// OutputStdout is a line streamed from the running game's standard output.\n\tOutputStdout\n\t// OutputStderr is a line streamed from the running game's standard error.\n\tOutputStderr\n)",
              "doc": "",
              "file": "pkg/editor/output_panel.go",
              "line": 24
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "OutputSource.String",
              "recv": "OutputSource",
              "decl": "func (s OutputSource) String() string",
              "doc": "String returns a short label for the output source (\"editor\", \"stdout\", or \"stderr\").\n",
              "file": "pkg/editor/output_panel.go",
              "line": 34
            }
          ]
        },
        {
          "name": "OverlayKind",
          "anchor": "OverlayKind",
          "decl": "type OverlayKind string",
          "doc": "OverlayKind identifies one of the seven Spec viewport overlay styles defined in\ndocs/design/editor/Spec.dc.html (\"Overlay legend\").\n",
          "file": "pkg/editor/viewport_overlay.go",
          "line": 19,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OverlayKindSelection",
                  "anchor": "OverlayKindSelection"
                },
                {
                  "name": "OverlayKindAgent",
                  "anchor": "OverlayKindAgent"
                },
                {
                  "name": "OverlayKindAdded",
                  "anchor": "OverlayKindAdded"
                },
                {
                  "name": "OverlayKindChanged",
                  "anchor": "OverlayKindChanged"
                },
                {
                  "name": "OverlayKindRemoved",
                  "anchor": "OverlayKindRemoved"
                },
                {
                  "name": "OverlayKindProblem",
                  "anchor": "OverlayKindProblem"
                },
                {
                  "name": "OverlayKindFocusedChange",
                  "anchor": "OverlayKindFocusedChange"
                }
              ],
              "decl": "const (\n\t// OverlayKindSelection is the person's selection: accent, 1.5 px solid, four corner handles, name tag.\n\tOverlayKindSelection OverlayKind = \"selection\"\n\t// OverlayKindAgent is the agent working overlay: agent violet, 1.5 px solid, no handles,\n\t// pulsing 1.6 s between 100% and 45%, pill with agent glyph saying what it is doing.\n\tOverlayKindAgent OverlayKind = \"agent\"\n\t// OverlayKindAdded marks a newly added object: added green, 1.5 px dashed, \"+ name\" pill.\n\tOverlayKindAdded OverlayKind = \"added\"\n\t// OverlayKindChanged marks an edited object: changed amber, 1.5 px dashed, \"field old → new\" pill.\n\tOverlayKindChanged OverlayKind = \"changed\"\n\t// OverlayKindRemoved marks a removed object: removed red, 1.5 px solid around a 25% grey ghost,\n\t// pill with struck-through name.\n\tOverlayKindRemoved OverlayKind = \"removed\"\n\t// OverlayKindProblem marks a live object with a problem: problem red, 2 px solid on the live object,\n\t// filled pill with alert triangle icon and message (never like a removed ghost).\n\tOverlayKindProblem OverlayKind = \"problem\"\n\t// OverlayKindFocusedChange highlights the focused change in a Review: its own color and dash at 2.5 px\n\t// with an outlined pill, never accent.\n\tOverlayKindFocusedChange OverlayKind = \"focused\"\n)",
              "doc": "",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 21
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "OverlayLegendKinds",
              "anchor": "OverlayLegendKinds",
              "decl": "func OverlayLegendKinds() []OverlayKind",
              "doc": "OverlayLegendKinds returns the six toggleable Spec overlay legend kinds in display order:\nSelection, Agent working, Added, Changed, Removed, Problem.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 70
            }
          ],
          "methods": [
            {
              "name": "IsChangeKind",
              "anchor": "OverlayKind.IsChangeKind",
              "recv": "OverlayKind",
              "decl": "func (k OverlayKind) IsChangeKind() bool",
              "doc": "IsChangeKind reports whether k is a diff/review change kind (Added, Changed, or Removed).\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 109
            },
            {
              "name": "IsLegendKind",
              "anchor": "OverlayKind.IsLegendKind",
              "recv": "OverlayKind",
              "decl": "func (k OverlayKind) IsLegendKind() bool",
              "doc": "IsLegendKind reports whether k is one of the six toggleable rows in the viewport overlay legend.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 94
            },
            {
              "name": "Valid",
              "anchor": "OverlayKind.Valid",
              "recv": "OverlayKind",
              "decl": "func (k OverlayKind) Valid() bool",
              "doc": "Valid reports whether k is any of the seven Spec overlay kinds.\n",
              "file": "pkg/editor/viewport_overlay.go",
              "line": 104
            }
          ]
        },
        {
          "name": "OverlayLegendKind",
          "anchor": "OverlayLegendKind",
          "decl": "type OverlayLegendKind string",
          "doc": "OverlayLegendKind identifies one toggleable row of the Spec viewport overlay legend\n(docs/design/editor/Spec.dc.html): Selection, Agent working, Added, Changed, Removed, Problem.\n",
          "file": "pkg/editor/agent_live.go",
          "line": 28,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OverlayLegendSelection",
                  "anchor": "OverlayLegendSelection"
                },
                {
                  "name": "OverlayLegendAgent",
                  "anchor": "OverlayLegendAgent"
                },
                {
                  "name": "OverlayLegendAdded",
                  "anchor": "OverlayLegendAdded"
                },
                {
                  "name": "OverlayLegendChanged",
                  "anchor": "OverlayLegendChanged"
                },
                {
                  "name": "OverlayLegendRemoved",
                  "anchor": "OverlayLegendRemoved"
                },
                {
                  "name": "OverlayLegendProblem",
                  "anchor": "OverlayLegendProblem"
                }
              ],
              "decl": "const (\n\tOverlayLegendSelection OverlayLegendKind = \"selection\"\n\tOverlayLegendAgent     OverlayLegendKind = \"agent\"\n\tOverlayLegendAdded     OverlayLegendKind = \"added\"\n\tOverlayLegendChanged   OverlayLegendKind = \"changed\"\n\tOverlayLegendRemoved   OverlayLegendKind = \"removed\"\n\tOverlayLegendProblem   OverlayLegendKind = \"problem\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_live.go",
              "line": 30
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "AllOverlayLegendKinds",
              "anchor": "AllOverlayLegendKinds",
              "decl": "func AllOverlayLegendKinds() []OverlayLegendKind",
              "doc": "AllOverlayLegendKinds returns every Spec overlay legend kind in canonical display order.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 49
            }
          ],
          "methods": [
            {
              "name": "Valid",
              "anchor": "OverlayLegendKind.Valid",
              "recv": "OverlayLegendKind",
              "decl": "func (k OverlayLegendKind) Valid() bool",
              "doc": "Valid reports whether k is a recognized Spec overlay legend kind.\n",
              "file": "pkg/editor/agent_live.go",
              "line": 54
            }
          ]
        },
        {
          "name": "PaletteTerrain",
          "anchor": "PaletteTerrain",
          "decl": "type PaletteTerrain struct {\n\tName string\n\tMode string\n}",
          "doc": "PaletteTerrain describes one terrain set shown in the tile palette for a layered grid's YAML tileset.\n",
          "file": "pkg/editor/tilepalette.go",
          "line": 86,
          "members": [
            {
              "name": "Name",
              "anchor": "PaletteTerrain.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "PaletteTerrain.Mode",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PaletteTile",
          "anchor": "PaletteTile",
          "decl": "type PaletteTile struct {\n\t// ID is the tile ID painting writes: the value in a single grid's data, or a layered grid's tile's local ID plus 1, as PaintTile takes it.\n\tID int\n\t// Number is the tile's number as the scene file writes it, which the palette and the status bar show: ID for a single grid, and the local ID (ID less 1) for a layered grid.\n\tNumber int\n\t// Name is the tile's human-readable name from the YAML tileset (or atlas frame name), or empty when unnamed.\n\tName string\n\t// Col and Row are the tile's 0-based atlas/sheet cell coordinates.\n\tCol, Row int\n\t// Collision summarizes the tile's collision rule (\"solid\", \"one-way top\", \"shapes\", or \"none\") for YAML tilesets.\n\tCollision string\n\t// Terrain names the terrain set this tile belongs to in a YAML tileset, if any.\n\tTerrain string\n\t// Image is the image the tile is drawn from: the tileset atlas's image, or a YAML tileset's grid image.\n\tImage core.ImageSource\n\t// Frame is the tile's frame in Image.\n\tFrame sprite.Frame\n}",
          "doc": "PaletteTile is one tile of a TilePalette: for a single grid, a frame of the tileset atlas whose name is its tile ID (\"1\", \"2\", ...), as sceneformat looks tiles up; for a layered grid, a tile of its YAML tileset.\n",
          "file": "pkg/editor/tilepalette.go",
          "line": 92,
          "members": [
            {
              "name": "ID",
              "anchor": "PaletteTile.ID",
              "kind": "field",
              "doc": "ID is the tile ID painting writes: the value in a single grid's data, or a layered grid's tile's local ID plus 1, as PaintTile takes it."
            },
            {
              "name": "Number",
              "anchor": "PaletteTile.Number",
              "kind": "field",
              "doc": "Number is the tile's number as the scene file writes it, which the palette and the status bar show: ID for a single grid, and the local ID (ID less 1) for a layered grid."
            },
            {
              "name": "Name",
              "anchor": "PaletteTile.Name",
              "kind": "field",
              "doc": "Name is the tile's human-readable name from the YAML tileset (or atlas frame name), or empty when unnamed."
            },
            {
              "name": "Col",
              "anchor": "PaletteTile.Col",
              "kind": "field",
              "doc": "Col and Row are the tile's 0-based atlas/sheet cell coordinates."
            },
            {
              "name": "Row",
              "anchor": "PaletteTile.Row",
              "kind": "field",
              "doc": "Col and Row are the tile's 0-based atlas/sheet cell coordinates."
            },
            {
              "name": "Collision",
              "anchor": "PaletteTile.Collision",
              "kind": "field",
              "doc": "Collision summarizes the tile's collision rule (\"solid\", \"one-way top\", \"shapes\", or \"none\") for YAML tilesets."
            },
            {
              "name": "Terrain",
              "anchor": "PaletteTile.Terrain",
              "kind": "field",
              "doc": "Terrain names the terrain set this tile belongs to in a YAML tileset, if any."
            },
            {
              "name": "Image",
              "anchor": "PaletteTile.Image",
              "kind": "field",
              "doc": "Image is the image the tile is drawn from: the tileset atlas's image, or a YAML tileset's grid image."
            },
            {
              "name": "Frame",
              "anchor": "PaletteTile.Frame",
              "kind": "field",
              "doc": "Frame is the tile's frame in Image."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Panel",
          "anchor": "Panel",
          "decl": "type Panel struct {\n\t// ID identifies the panel within its plugin and has no control characters. The panel's container has the test ID \"plugin-panel-<plugin>-<id>\"; as the parts are joined with '-', a plugin whose name or IDs contain '-' can share a test ID with another, so name plugins that are used together so that their test IDs differ.\n\tID string\n\t// Title is shown above the panel.\n\tTitle string\n\t// TitleKey is an optional localization key in the plugin's catalog used in place of Title when present.\n\tTitleKey string\n\t// Dock is where the panel sits.\n\tDock Dock\n\t// View builds the panel's content once when the panel appears; the panel stays mounted, keeping its scope and state, while its plugin is on, whatever other panels come and go in its dock. It reads rev, which changes on every editor state change, inside reactive functions to follow the editor's state, as the editor's own panels do.\n\tView func(cx *core.Scope, ed *Editor, rev *core.Signal[uint64]) core.Node\n}",
          "doc": "Panel is a view a plugin docks in the editor window.\n",
          "file": "pkg/editor/plugin.go",
          "line": 72,
          "members": [
            {
              "name": "ID",
              "anchor": "Panel.ID",
              "kind": "field",
              "doc": "ID identifies the panel within its plugin and has no control characters. The panel's container has the test ID \"plugin-panel-<plugin>-<id>\"; as the parts are joined with '-', a plugin whose name or IDs contain '-' can share a test ID with another, so name plugins that are used together so that their test IDs differ."
            },
            {
              "name": "Title",
              "anchor": "Panel.Title",
              "kind": "field",
              "doc": "Title is shown above the panel."
            },
            {
              "name": "TitleKey",
              "anchor": "Panel.TitleKey",
              "kind": "field",
              "doc": "TitleKey is an optional localization key in the plugin's catalog used in place of Title when present."
            },
            {
              "name": "Dock",
              "anchor": "Panel.Dock",
              "kind": "field",
              "doc": "Dock is where the panel sits."
            },
            {
              "name": "View",
              "anchor": "Panel.View",
              "kind": "field",
              "doc": "View builds the panel's content once when the panel appears; the panel stays mounted, keeping its scope and state, while its plugin is on, whatever other panels come and go in its dock. It reads rev, which changes on every editor state change, inside reactive functions to follow the editor's state, as the editor's own panels do."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PanelInfo",
          "anchor": "PanelInfo",
          "decl": "type PanelInfo struct {\n\t// Key is the stable panel key (such as PanelInspector or PluginPanelKey(\"health\", \"overview\")).\n\tKey string\n\t// Title is the human-readable title shown on tabs and in the View > Panels menu.\n\tTitle string\n\t// DefaultDock is where the panel docks by default.\n\tDefaultDock Dock\n\t// Visible reports whether the panel is currently shown in the dock area.\n\tVisible bool\n\t// Available reports whether the panel can currently be toggled or shown (for example Files requires an open project).\n\tAvailable bool\n\t// Closable reports whether the user can hide or close the panel (false for PanelViewport).\n\tClosable bool\n\t// Plugin and PluginID identify the owning plugin when this entry represents a plugin panel.\n\tPlugin   string\n\tPluginID string\n}",
          "doc": "PanelInfo describes one dockable editor panel for menus, commands, and layout inspection.\n",
          "file": "pkg/editor/dock_layout.go",
          "line": 129,
          "members": [
            {
              "name": "Key",
              "anchor": "PanelInfo.Key",
              "kind": "field",
              "doc": "Key is the stable panel key (such as PanelInspector or PluginPanelKey(\"health\", \"overview\"))."
            },
            {
              "name": "Title",
              "anchor": "PanelInfo.Title",
              "kind": "field",
              "doc": "Title is the human-readable title shown on tabs and in the View > Panels menu."
            },
            {
              "name": "DefaultDock",
              "anchor": "PanelInfo.DefaultDock",
              "kind": "field",
              "doc": "DefaultDock is where the panel docks by default."
            },
            {
              "name": "Visible",
              "anchor": "PanelInfo.Visible",
              "kind": "field",
              "doc": "Visible reports whether the panel is currently shown in the dock area."
            },
            {
              "name": "Available",
              "anchor": "PanelInfo.Available",
              "kind": "field",
              "doc": "Available reports whether the panel can currently be toggled or shown (for example Files requires an open project)."
            },
            {
              "name": "Closable",
              "anchor": "PanelInfo.Closable",
              "kind": "field",
              "doc": "Closable reports whether the user can hide or close the panel (false for PanelViewport)."
            },
            {
              "name": "Plugin",
              "anchor": "PanelInfo.Plugin",
              "kind": "field",
              "doc": "Plugin and PluginID identify the owning plugin when this entry represents a plugin panel."
            },
            {
              "name": "PluginID",
              "anchor": "PanelInfo.PluginID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PanicReport",
          "anchor": "PanicReport",
          "decl": "type PanicReport struct {\n\tRunNumber  int               `json:\"runNumber\"`\n\tTime       time.Time         `json:\"time\"`\n\tFrame      int               `json:\"frame\"`\n\tMessage    string            `json:\"message\"`\n\tFrames     []PanicStackFrame `json:\"frames\"`\n\tReplayPath string            `json:\"replayPath,omitempty\"`\n\tReplayAbs  string            `json:\"replayAbs,omitempty\"`\n}",
          "doc": "PanicReport captures a panic detected in a game run or Play session, with separated game and runtime frames.\n",
          "file": "pkg/editor/play_panic.go",
          "line": 25,
          "members": [
            {
              "name": "RunNumber",
              "anchor": "PanicReport.RunNumber",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Time",
              "anchor": "PanicReport.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frame",
              "anchor": "PanicReport.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "PanicReport.Message",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "PanicReport.Frames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayPath",
              "anchor": "PanicReport.ReplayPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayAbs",
              "anchor": "PanicReport.ReplayAbs",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParsePanicTrace",
              "anchor": "ParsePanicTrace",
              "decl": "func ParsePanicTrace(lines []string, projectDir string) (*PanicReport, bool)",
              "doc": "ParsePanicTrace detects a Go panic message and stack trace in lines, normalizing paths relative to projectDir\nand separating game frames from runtime/engine frames.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 77
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "PanicReport.Clone",
              "recv": "*PanicReport",
              "decl": "func (p *PanicReport) Clone() *PanicReport",
              "doc": "Clone returns an independent copy of p.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 36
            },
            {
              "name": "GameFrames",
              "anchor": "PanicReport.GameFrames",
              "recv": "*PanicReport",
              "decl": "func (p *PanicReport) GameFrames() []PanicStackFrame",
              "doc": "GameFrames returns the user/game stack frames (non-runtime) in call order.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 46
            },
            {
              "name": "RuntimeFrames",
              "anchor": "PanicReport.RuntimeFrames",
              "recv": "*PanicReport",
              "decl": "func (p *PanicReport) RuntimeFrames() []PanicStackFrame",
              "doc": "RuntimeFrames returns the folded game-runtime and Go-runtime stack frames in call order.\n",
              "file": "pkg/editor/play_panic.go",
              "line": 60
            }
          ]
        },
        {
          "name": "PanicStackFrame",
          "anchor": "PanicStackFrame",
          "decl": "type PanicStackFrame struct {\n\tFunction string `json:\"function\"`\n\tFile     string `json:\"file\"`\n\tLine     int    `json:\"line\"`\n\tRuntime  bool   `json:\"runtime\"`\n}",
          "doc": "PanicStackFrame represents one parsed stack frame from a Go panic trace.\n",
          "file": "pkg/editor/play_panic.go",
          "line": 17,
          "members": [
            {
              "name": "Function",
              "anchor": "PanicStackFrame.Function",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "PanicStackFrame.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "PanicStackFrame.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Runtime",
              "anchor": "PanicStackFrame.Runtime",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ParticleCurveKind",
          "anchor": "ParticleCurveKind",
          "decl": "type ParticleCurveKind string",
          "doc": "ParticleCurveKind selects which curve the Particle Emitter panel's curve widget edits.\n",
          "file": "pkg/editor/particles.go",
          "line": 30,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ParticleCurveSize",
                  "anchor": "ParticleCurveSize"
                },
                {
                  "name": "ParticleCurveAlpha",
                  "anchor": "ParticleCurveAlpha"
                },
                {
                  "name": "ParticleCurveRotation",
                  "anchor": "ParticleCurveRotation"
                },
                {
                  "name": "ParticleCurveColor",
                  "anchor": "ParticleCurveColor"
                },
                {
                  "name": "ParticleCurveTrailWidth",
                  "anchor": "ParticleCurveTrailWidth"
                },
                {
                  "name": "ParticleCurveTrailColor",
                  "anchor": "ParticleCurveTrailColor"
                }
              ],
              "decl": "const (\n\tParticleCurveSize       ParticleCurveKind = \"size\"\n\tParticleCurveAlpha      ParticleCurveKind = \"alpha\"\n\tParticleCurveRotation   ParticleCurveKind = \"rotation\"\n\tParticleCurveColor      ParticleCurveKind = \"color\"\n\tParticleCurveTrailWidth ParticleCurveKind = \"trailWidth\"\n\tParticleCurveTrailColor ParticleCurveKind = \"trailColor\"\n)",
              "doc": "",
              "file": "pkg/editor/particles.go",
              "line": 32
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PasteOptions",
          "anchor": "PasteOptions",
          "decl": "type PasteOptions struct {\n\t// Layer names the target layer; empty uses ActiveLayer (or ParentID's layer when ParentID is set).\n\tLayer string\n\t// ParentID optionally names an existing object to paste under as children.\n\tParentID string\n\t// At optionally places the pasted objects' 2D centroid at this layer-space point.\n\tAt *[2]float32\n\t// At3D optionally places the pasted objects' 3D centroid at this world-space point.\n\tAt3D *[3]float32\n\t// Offset optionally shifts every pasted root by (dx, dy) in 2D.\n\tOffset *[2]float32\n\t// Offset3D optionally shifts every pasted root by (dx, dy, dz) in 3D.\n\tOffset3D *[3]float32\n}",
          "doc": "PasteOptions configures where PasteWith and PasteYAMLWith place pasted objects.\n",
          "file": "pkg/editor/clipboard_group.go",
          "line": 32,
          "members": [
            {
              "name": "Layer",
              "anchor": "PasteOptions.Layer",
              "kind": "field",
              "doc": "Layer names the target layer; empty uses ActiveLayer (or ParentID's layer when ParentID is set)."
            },
            {
              "name": "ParentID",
              "anchor": "PasteOptions.ParentID",
              "kind": "field",
              "doc": "ParentID optionally names an existing object to paste under as children."
            },
            {
              "name": "At",
              "anchor": "PasteOptions.At",
              "kind": "field",
              "doc": "At optionally places the pasted objects' 2D centroid at this layer-space point."
            },
            {
              "name": "At3D",
              "anchor": "PasteOptions.At3D",
              "kind": "field",
              "doc": "At3D optionally places the pasted objects' 3D centroid at this world-space point."
            },
            {
              "name": "Offset",
              "anchor": "PasteOptions.Offset",
              "kind": "field",
              "doc": "Offset optionally shifts every pasted root by (dx, dy) in 2D."
            },
            {
              "name": "Offset3D",
              "anchor": "PasteOptions.Offset3D",
              "kind": "field",
              "doc": "Offset3D optionally shifts every pasted root by (dx, dy, dz) in 3D."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PendingGoOverlayFile",
          "anchor": "PendingGoOverlayFile",
          "decl": "type PendingGoOverlayFile struct {\n\tContent string\n\tDelete  bool\n}",
          "doc": "PendingGoOverlayFile represents one pending Go file included in a Go build overlay JSON.\n",
          "file": "pkg/editor/code_review.go",
          "line": 189,
          "members": [
            {
              "name": "Content",
              "anchor": "PendingGoOverlayFile.Content",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Delete",
              "anchor": "PendingGoOverlayFile.Delete",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PendingPermissionRequest",
          "anchor": "PendingPermissionRequest",
          "decl": "type PendingPermissionRequest struct {\n\tID         string               `json:\"id\"`\n\tSummary    string               `json:\"summary\"`\n\tEvaluation PermissionEvaluation `json:\"evaluation\"`\n\tStatus     string               `json:\"status\"` // \"pending\", \"allowed_once\", \"allowed_always\", \"denied\"\n\t// contains filtered or unexported fields\n}",
          "doc": "PendingPermissionRequest represents an MCP tool call paused on an Ask rule awaiting the person's answer.\n",
          "file": "pkg/editor/permissions.go",
          "line": 1062,
          "members": [
            {
              "name": "ID",
              "anchor": "PendingPermissionRequest.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "PendingPermissionRequest.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Evaluation",
              "anchor": "PendingPermissionRequest.Evaluation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "PendingPermissionRequest.Status",
              "kind": "field",
              "doc": "\"pending\", \"allowed_once\", \"allowed_always\", \"denied\""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PendingProjectAction",
          "anchor": "PendingProjectAction",
          "decl": "type PendingProjectAction struct {\n\t// Kind is \"open\", \"create\", or \"demo\".\n\tKind string\n\t// Target is the path or name being opened (project directory or \"Demo Room\").\n\tTarget string\n\t// Summary is a human-readable description shown in the confirmation dialog.\n\tSummary string\n}",
          "doc": "PendingProjectAction describes a project switch waiting for confirmation because the open session has unsaved edits.\n",
          "file": "pkg/editor/start_screen.go",
          "line": 121,
          "members": [
            {
              "name": "Kind",
              "anchor": "PendingProjectAction.Kind",
              "kind": "field",
              "doc": "Kind is \"open\", \"create\", or \"demo\"."
            },
            {
              "name": "Target",
              "anchor": "PendingProjectAction.Target",
              "kind": "field",
              "doc": "Target is the path or name being opened (project directory or \"Demo Room\")."
            },
            {
              "name": "Summary",
              "anchor": "PendingProjectAction.Summary",
              "kind": "field",
              "doc": "Summary is a human-readable description shown in the confirmation dialog."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionAction",
          "anchor": "PermissionAction",
          "decl": "type PermissionAction string",
          "doc": "PermissionAction is the kind of mutating or running work a permission rule governs.\n",
          "file": "pkg/editor/permissions.go",
          "line": 82,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PermissionActionEdit",
                  "anchor": "PermissionActionEdit"
                },
                {
                  "name": "PermissionActionCreate",
                  "anchor": "PermissionActionCreate"
                },
                {
                  "name": "PermissionActionDelete",
                  "anchor": "PermissionActionDelete"
                },
                {
                  "name": "PermissionActionRun",
                  "anchor": "PermissionActionRun"
                },
                {
                  "name": "PermissionActionCode",
                  "anchor": "PermissionActionCode"
                }
              ],
              "decl": "const (\n\t// PermissionActionEdit modifies existing project files or open editor documents.\n\tPermissionActionEdit PermissionAction = \"edit\"\n\t// PermissionActionCreate creates new files anywhere in the project.\n\tPermissionActionCreate PermissionAction = \"create\"\n\t// PermissionActionDelete deletes files from the project.\n\tPermissionActionDelete PermissionAction = \"delete\"\n\t// PermissionActionRun runs project work such as game check, headless playtests, or shell commands.\n\tPermissionActionRun PermissionAction = \"run\"\n\t// PermissionActionCode edits Go source code (such as **/*.go).\n\tPermissionActionCode PermissionAction = \"code\"\n)",
              "doc": "",
              "file": "pkg/editor/permissions.go",
              "line": 84
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "PermissionAction.DisplayName",
              "recv": "PermissionAction",
              "decl": "func (a PermissionAction) DisplayName() string",
              "doc": "DisplayName returns the English label for a.\n",
              "file": "pkg/editor/permissions.go",
              "line": 108
            },
            {
              "name": "Valid",
              "anchor": "PermissionAction.Valid",
              "recv": "PermissionAction",
              "decl": "func (a PermissionAction) Valid() bool",
              "doc": "Valid reports whether a is a recognized permission action.\n",
              "file": "pkg/editor/permissions.go",
              "line": 98
            }
          ]
        },
        {
          "name": "PermissionDecision",
          "anchor": "PermissionDecision",
          "decl": "type PermissionDecision string",
          "doc": "PermissionDecision is what the MCP server does when a rule matches a tool call.\n",
          "file": "pkg/editor/permissions.go",
          "line": 126,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PermissionAllow",
                  "anchor": "PermissionAllow"
                },
                {
                  "name": "PermissionAsk",
                  "anchor": "PermissionAsk"
                },
                {
                  "name": "PermissionDeny",
                  "anchor": "PermissionDeny"
                }
              ],
              "decl": "const (\n\t// PermissionAllow runs the tool call immediately.\n\tPermissionAllow PermissionDecision = \"allow\"\n\t// PermissionAsk opens a permission request for the person to allow once, always allow, or deny.\n\tPermissionAsk PermissionDecision = \"ask\"\n\t// PermissionDeny refuses the tool call before running it and returns an error naming the rule.\n\tPermissionDeny PermissionDecision = \"deny\"\n)",
              "doc": "",
              "file": "pkg/editor/permissions.go",
              "line": 128
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "PermissionDecision.DisplayName",
              "recv": "PermissionDecision",
              "decl": "func (d PermissionDecision) DisplayName() string",
              "doc": "DisplayName returns the English label for d.\n",
              "file": "pkg/editor/permissions.go",
              "line": 148
            },
            {
              "name": "Strictness",
              "anchor": "PermissionDecision.Strictness",
              "recv": "PermissionDecision",
              "decl": "func (d PermissionDecision) Strictness() int",
              "doc": "Strictness ranks decisions from loosest (0 = Allow) to strictest (2 = Deny; invalid = 3 fail-closed).\n",
              "file": "pkg/editor/permissions.go",
              "line": 162
            },
            {
              "name": "Valid",
              "anchor": "PermissionDecision.Valid",
              "recv": "PermissionDecision",
              "decl": "func (d PermissionDecision) Valid() bool",
              "doc": "Valid reports whether d is a recognized permission decision.\n",
              "file": "pkg/editor/permissions.go",
              "line": 138
            }
          ]
        },
        {
          "name": "PermissionEvaluation",
          "anchor": "PermissionEvaluation",
          "decl": "type PermissionEvaluation struct {\n\t// Decision is PermissionAllow, PermissionAsk, or PermissionDeny.\n\tDecision PermissionDecision `json:\"decision\"`\n\t// Profile is the active base profile name.\n\tProfile PermissionProfile `json:\"profile\"`\n\t// Modified reports whether the active rule table differs from PermissionPreset(Profile).\n\tModified bool `json:\"modified,omitempty\"`\n\t// RuleIndex is the 0-based index of the first matching rule, or -1 when no rule matched and the profile default decided.\n\tRuleIndex int `json:\"ruleIndex\"`\n\t// RuleNumber is the 1-based rule number (RuleIndex + 1), or 0 when no rule matched.\n\tRuleNumber int `json:\"ruleNumber,omitempty\"`\n\t// RuleTotal is the total number of rules in the table.\n\tRuleTotal int `json:\"ruleTotal,omitempty\"`\n\t// Rule is a copy of the matched rule, or nil when no rule matched.\n\tRule *PermissionRule `json:\"rule,omitempty\"`\n\t// Reason is a clear, readable explanation naming the rule and/or profile that caused Decision.\n\tReason string `json:\"reason\"`\n\t// Link is the Settings navigation label for this decision, such as \"Settings › Permissions · rule 7 of 7\".\n\tLink string `json:\"link\"`\n\t// HeldByDisk reports that an external permissions.yaml change tried to loosen this rule or profile,\n\t// and the editor is holding the stricter decision until the person confirms it in Settings › Permissions.\n\tHeldByDisk bool `json:\"heldByDisk,omitempty\"`\n\t// Tool, Action, and Target echo the evaluated request.\n\tTool   string           `json:\"tool,omitempty\"`\n\tAction PermissionAction `json:\"action\"`\n\tTarget string           `json:\"target,omitempty\"`\n}",
          "doc": "PermissionEvaluation is the result of evaluating a PermissionRequest against a PermissionsFile.\nEvery decision identifies which rule index or base profile produced it.\n",
          "file": "pkg/editor/permissions.go",
          "line": 629,
          "members": [
            {
              "name": "Decision",
              "anchor": "PermissionEvaluation.Decision",
              "kind": "field",
              "doc": "Decision is PermissionAllow, PermissionAsk, or PermissionDeny."
            },
            {
              "name": "Profile",
              "anchor": "PermissionEvaluation.Profile",
              "kind": "field",
              "doc": "Profile is the active base profile name."
            },
            {
              "name": "Modified",
              "anchor": "PermissionEvaluation.Modified",
              "kind": "field",
              "doc": "Modified reports whether the active rule table differs from PermissionPreset(Profile)."
            },
            {
              "name": "RuleIndex",
              "anchor": "PermissionEvaluation.RuleIndex",
              "kind": "field",
              "doc": "RuleIndex is the 0-based index of the first matching rule, or -1 when no rule matched and the profile default decided."
            },
            {
              "name": "RuleNumber",
              "anchor": "PermissionEvaluation.RuleNumber",
              "kind": "field",
              "doc": "RuleNumber is the 1-based rule number (RuleIndex + 1), or 0 when no rule matched."
            },
            {
              "name": "RuleTotal",
              "anchor": "PermissionEvaluation.RuleTotal",
              "kind": "field",
              "doc": "RuleTotal is the total number of rules in the table."
            },
            {
              "name": "Rule",
              "anchor": "PermissionEvaluation.Rule",
              "kind": "field",
              "doc": "Rule is a copy of the matched rule, or nil when no rule matched."
            },
            {
              "name": "Reason",
              "anchor": "PermissionEvaluation.Reason",
              "kind": "field",
              "doc": "Reason is a clear, readable explanation naming the rule and/or profile that caused Decision."
            },
            {
              "name": "Link",
              "anchor": "PermissionEvaluation.Link",
              "kind": "field",
              "doc": "Link is the Settings navigation label for this decision, such as \"Settings › Permissions · rule 7 of 7\"."
            },
            {
              "name": "HeldByDisk",
              "anchor": "PermissionEvaluation.HeldByDisk",
              "kind": "field",
              "doc": "HeldByDisk reports that an external permissions.yaml change tried to loosen this rule or profile,\nand the editor is holding the stricter decision until the person confirms it in Settings › Permissions."
            },
            {
              "name": "Tool",
              "anchor": "PermissionEvaluation.Tool",
              "kind": "field",
              "doc": "Tool, Action, and Target echo the evaluated request."
            },
            {
              "name": "Action",
              "anchor": "PermissionEvaluation.Action",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "PermissionEvaluation.Target",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionProfile",
          "anchor": "PermissionProfile",
          "decl": "type PermissionProfile string",
          "doc": "PermissionProfile selects a preset rule table for what the editor's MCP server lets an agent do on its own.\nProfiles are presets of rules; the rules themselves decide every tool call.\n",
          "file": "pkg/editor/permissions.go",
          "line": 46,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PermissionProfileCautious",
                  "anchor": "PermissionProfileCautious"
                },
                {
                  "name": "PermissionProfileBalanced",
                  "anchor": "PermissionProfileBalanced"
                },
                {
                  "name": "PermissionProfileAutonomous",
                  "anchor": "PermissionProfileAutonomous"
                }
              ],
              "decl": "const (\n\t// PermissionProfileCautious asks before every edit, creation, game check, and playtest, and denies deleting files or running shell commands.\n\tPermissionProfileCautious PermissionProfile = \"cautious\"\n\t// PermissionProfileBalanced edits content (scenes/**, prefabs/**, data/**) and runs game check and playtests on its own, asks before game.yaml, brief.yaml, Go code, and file creation, and denies deleting files or running shell commands.\n\tPermissionProfileBalanced PermissionProfile = \"balanced\"\n\t// PermissionProfileAutonomous does whole tasks end to end while keeping reviewable editor undo steps; deletes and shell commands remain denied unless explicitly allowed.\n\tPermissionProfileAutonomous PermissionProfile = \"autonomous\"\n)",
              "doc": "",
              "file": "pkg/editor/permissions.go",
              "line": 48
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "PermissionProfile.DisplayName",
              "recv": "PermissionProfile",
              "decl": "func (p PermissionProfile) DisplayName() string",
              "doc": "DisplayName returns the English label for p.\n",
              "file": "pkg/editor/permissions.go",
              "line": 68
            },
            {
              "name": "Valid",
              "anchor": "PermissionProfile.Valid",
              "recv": "PermissionProfile",
              "decl": "func (p PermissionProfile) Valid() bool",
              "doc": "Valid reports whether p is a recognized permission profile name.\n",
              "file": "pkg/editor/permissions.go",
              "line": 58
            }
          ]
        },
        {
          "name": "PermissionRequest",
          "anchor": "PermissionRequest",
          "decl": "type PermissionRequest struct {\n\t// Tool is the MCP tool name (for example \"scene_edit\", \"game_playtest\", or \"shell_run\").\n\tTool string\n\t// Action is the mutating or running operation category.\n\tAction PermissionAction\n\t// Target is a slash-separated project-relative file path (such as \"scenes/level_01.scene.yaml\") or a run target (such as \"game check\", \"playtests\", or \"shell: go generate ./assets\").\n\tTarget string\n\t// Summary optionally provides a short human-readable description of the call for UI cards and logs.\n\tSummary string\n}",
          "doc": "PermissionRequest describes an MCP tool call to evaluate against a PermissionsFile.\n",
          "file": "pkg/editor/permissions.go",
          "line": 616,
          "members": [
            {
              "name": "Tool",
              "anchor": "PermissionRequest.Tool",
              "kind": "field",
              "doc": "Tool is the MCP tool name (for example \"scene_edit\", \"game_playtest\", or \"shell_run\")."
            },
            {
              "name": "Action",
              "anchor": "PermissionRequest.Action",
              "kind": "field",
              "doc": "Action is the mutating or running operation category."
            },
            {
              "name": "Target",
              "anchor": "PermissionRequest.Target",
              "kind": "field",
              "doc": "Target is a slash-separated project-relative file path (such as \"scenes/level_01.scene.yaml\") or a run target (such as \"game check\", \"playtests\", or \"shell: go generate ./assets\")."
            },
            {
              "name": "Summary",
              "anchor": "PermissionRequest.Summary",
              "kind": "field",
              "doc": "Summary optionally provides a short human-readable description of the call for UI cards and logs."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionResponse",
          "anchor": "PermissionResponse",
          "decl": "type PermissionResponse int",
          "doc": "PermissionResponse is the person's answer to a pending Ask permission request.\n",
          "file": "pkg/editor/permissions.go",
          "line": 1050,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PermissionResponseAllowOnce",
                  "anchor": "PermissionResponseAllowOnce"
                },
                {
                  "name": "PermissionResponseAlways",
                  "anchor": "PermissionResponseAlways"
                },
                {
                  "name": "PermissionResponseDeny",
                  "anchor": "PermissionResponseDeny"
                }
              ],
              "decl": "const (\n\t// PermissionResponseAllowOnce allows this one request without modifying permissions.yaml.\n\tPermissionResponseAllowOnce PermissionResponse = iota + 1\n\t// PermissionResponseAlways adds an Allow rule to permissions.yaml, persists it, and shows the \"Always permission rule saved\" toast with Show and Undo.\n\tPermissionResponseAlways\n\t// PermissionResponseDeny refuses the request without modifying permissions.yaml.\n\tPermissionResponseDeny\n)",
              "doc": "",
              "file": "pkg/editor/permissions.go",
              "line": 1052
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionRule",
          "anchor": "PermissionRule",
          "decl": "type PermissionRule struct {\n\t// Action is the kind of operation this rule matches (\"edit\", \"create\", \"delete\", \"run\", or \"code\").\n\tAction PermissionAction `yaml:\"action\" json:\"action\" schema:\"required,enum=edit|create|delete|run|code\"`\n\t// Patterns lists slash-separated file globs (such as \"scenes/**\", \"game.yaml\", \"**/*.go\", \"**\") or run targets (such as \"game check\", \"playtests\", \"shell\").\n\tPatterns []string `yaml:\"patterns\" json:\"patterns\" schema:\"required,minItems=1\"`\n\t// Decision is what happens when this rule is the first match (\"allow\", \"ask\", or \"deny\").\n\tDecision PermissionDecision `yaml:\"decision\" json:\"decision\" schema:\"required,enum=allow|ask|deny\"`\n}",
          "doc": "PermissionRule is one row in the first-match-wins permission rule table.\n",
          "file": "pkg/editor/permissions.go",
          "line": 183,
          "members": [
            {
              "name": "Action",
              "anchor": "PermissionRule.Action",
              "kind": "field",
              "doc": "Action is the kind of operation this rule matches (\"edit\", \"create\", \"delete\", \"run\", or \"code\")."
            },
            {
              "name": "Patterns",
              "anchor": "PermissionRule.Patterns",
              "kind": "field",
              "doc": "Patterns lists slash-separated file globs (such as \"scenes/**\", \"game.yaml\", \"**/*.go\", \"**\") or run targets (such as \"game check\", \"playtests\", \"shell\")."
            },
            {
              "name": "Decision",
              "anchor": "PermissionRule.Decision",
              "kind": "field",
              "doc": "Decision is what happens when this rule is the first match (\"allow\", \"ask\", or \"deny\")."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "AlwaysRuleForEvaluation",
              "anchor": "AlwaysRuleForEvaluation",
              "decl": "func AlwaysRuleForEvaluation(eval PermissionEvaluation) PermissionRule",
              "doc": "AlwaysRuleForEvaluation constructs the specific Allow rule added when a person chooses \"Always\" on eval.\nReturns a rule with empty Patterns when eval lacks a safe, concrete target (callers must refuse to persist it).\n",
              "file": "pkg/editor/permissions.go",
              "line": 1776
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "PermissionRule.Clone",
              "recv": "PermissionRule",
              "decl": "func (r PermissionRule) Clone() PermissionRule",
              "doc": "Clone returns a deep copy of r.\n",
              "file": "pkg/editor/permissions.go",
              "line": 193
            },
            {
              "name": "Summary",
              "anchor": "PermissionRule.Summary",
              "recv": "PermissionRule",
              "decl": "func (r PermissionRule) Summary() string",
              "doc": "Summary formats r as a compact readable string such as \"Run · shell commands → Deny\".\n",
              "file": "pkg/editor/permissions.go",
              "line": 202
            }
          ]
        },
        {
          "name": "PermissionToast",
          "anchor": "PermissionToast",
          "decl": "type PermissionToast struct {\n\tMessage   string\n\tRuleIndex int\n\tRule      PermissionRule\n\t// contains filtered or unexported fields\n}",
          "doc": "PermissionToast holds the active \"Always permission rule saved\" confirmation toast state, with enough state to Show the saved rule or Undo it byte-for-byte.\n",
          "file": "pkg/editor/permissions.go",
          "line": 1071,
          "members": [
            {
              "name": "Message",
              "anchor": "PermissionToast.Message",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RuleIndex",
              "anchor": "PermissionToast.RuleIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rule",
              "anchor": "PermissionToast.Rule",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionsDraft",
          "anchor": "PermissionsDraft",
          "decl": "type PermissionsDraft struct {\n\tID      string                 `json:\"id\"`\n\tRequest string                 `json:\"request,omitempty\"`\n\tDomain  YouOnlyDomain          `json:\"domain\"`\n\tRules   []PermissionsDraftRule `json:\"rules\"`\n}",
          "doc": "PermissionsDraft holds an agent-submitted draft awaiting explicit per-rule ticks and Apply from the person.\n",
          "file": "pkg/editor/you_only.go",
          "line": 243,
          "members": [
            {
              "name": "ID",
              "anchor": "PermissionsDraft.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Request",
              "anchor": "PermissionsDraft.Request",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Domain",
              "anchor": "PermissionsDraft.Domain",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rules",
              "anchor": "PermissionsDraft.Rules",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "PermissionsDraft.Clone",
              "recv": "*PermissionsDraft",
              "decl": "func (d *PermissionsDraft) Clone() *PermissionsDraft",
              "doc": "Clone returns a deep copy of d.\n",
              "file": "pkg/editor/you_only.go",
              "line": 251
            }
          ]
        },
        {
          "name": "PermissionsDraftRequest",
          "anchor": "PermissionsDraftRequest",
          "decl": "type PermissionsDraftRequest struct {\n\tRequest string                     `json:\"request,omitempty\"`\n\tRules   []PermissionsDraftRuleSpec `json:\"rules\"`\n}",
          "doc": "PermissionsDraftRequest is submitted by the agent (e.g. via permissions_draft MCP tool) to open a You-only draft card.\n",
          "file": "pkg/editor/you_only.go",
          "line": 225,
          "members": [
            {
              "name": "Request",
              "anchor": "PermissionsDraftRequest.Request",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rules",
              "anchor": "PermissionsDraftRequest.Rules",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionsDraftRule",
          "anchor": "PermissionsDraftRule",
          "decl": "type PermissionsDraftRule struct {\n\tID              string             `json:\"id\"`\n\tRuleIndex       int                `json:\"ruleIndex\"` // >= 0 if updating an existing rule; -1 if adding a new rule\n\tAction          PermissionAction   `json:\"action\"`\n\tPatterns        []string           `json:\"patterns\"`\n\tCurrentDecision PermissionDecision `json:\"currentDecision\"`\n\tDraftDecision   PermissionDecision `json:\"draftDecision\"`\n\tTicked          bool               `json:\"ticked\"`\n}",
          "doc": "PermissionsDraftRule is one row in the open Permissions Draft card.\nTicked is always false when a draft opens; only the person may tick a rule.\n",
          "file": "pkg/editor/you_only.go",
          "line": 232,
          "members": [
            {
              "name": "ID",
              "anchor": "PermissionsDraftRule.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RuleIndex",
              "anchor": "PermissionsDraftRule.RuleIndex",
              "kind": "field",
              "doc": ">= 0 if updating an existing rule; -1 if adding a new rule"
            },
            {
              "name": "Action",
              "anchor": "PermissionsDraftRule.Action",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Patterns",
              "anchor": "PermissionsDraftRule.Patterns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CurrentDecision",
              "anchor": "PermissionsDraftRule.CurrentDecision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DraftDecision",
              "anchor": "PermissionsDraftRule.DraftDecision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ticked",
              "anchor": "PermissionsDraftRule.Ticked",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionsDraftRuleSpec",
          "anchor": "PermissionsDraftRuleSpec",
          "decl": "type PermissionsDraftRuleSpec struct {\n\tAction   PermissionAction   `json:\"action\"`\n\tPatterns []string           `json:\"patterns\"`\n\tDecision PermissionDecision `json:\"decision\"`\n}",
          "doc": "PermissionsDraftRuleSpec describes one rule change an agent proposes in a permissions draft.\n",
          "file": "pkg/editor/you_only.go",
          "line": 218,
          "members": [
            {
              "name": "Action",
              "anchor": "PermissionsDraftRuleSpec.Action",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Patterns",
              "anchor": "PermissionsDraftRuleSpec.Patterns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Decision",
              "anchor": "PermissionsDraftRuleSpec.Decision",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionsDraftYAMLLine",
          "anchor": "PermissionsDraftYAMLLine",
          "decl": "type PermissionsDraftYAMLLine struct {\n\tKind string // \"\", \"-\", \"+\"\n\tText string\n}",
          "doc": "PermissionsDraftYAMLLine is one line in the \"permissions.yaml · if applied\" diff preview of the draft card.\n",
          "file": "pkg/editor/you_only.go",
          "line": 276,
          "members": [
            {
              "name": "Kind",
              "anchor": "PermissionsDraftYAMLLine.Kind",
              "kind": "field",
              "doc": "\"\", \"-\", \"+\""
            },
            {
              "name": "Text",
              "anchor": "PermissionsDraftYAMLLine.Text",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionsFile",
          "anchor": "PermissionsFile",
          "decl": "type PermissionsFile struct {\n\t// Version is the schema version; it must equal PermissionsVersion (1).\n\tVersion int `yaml:\"version\" json:\"version\" schema:\"required\"`\n\t// Profile names the base preset (\"cautious\", \"balanced\", or \"autonomous\").\n\t// Editing individual rules keeps Profile so the editor can mark the profile as changed from its preset.\n\tProfile PermissionProfile `yaml:\"profile\" json:\"profile\" schema:\"required,enum=cautious|balanced|autonomous\"`\n\t// Rules is the ordered first-match-wins permission table checked before every mutating or running MCP tool call.\n\tRules []PermissionRule `yaml:\"rules\" json:\"rules\" schema:\"required\"`\n}",
          "doc": "PermissionsFile is the versioned YAML document stored in permissions.yaml beside game.yaml.\nRules are evaluated from top to bottom and the first matching rule decides.\nA file looks like this:\n\n\t# yaml-language-server: $schema=https://game.nsgo.dev/schemas/permissions.v1.json\n\tversion: 1\n\tprofile: balanced\n\trules:\n\t  - action: edit\n\t    patterns:\n\t      - scenes/**\n\t      - prefabs/**\n\t      - data/**\n\t    decision: allow\n",
          "file": "pkg/editor/permissions.go",
          "line": 242,
          "members": [
            {
              "name": "Version",
              "anchor": "PermissionsFile.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal PermissionsVersion (1)."
            },
            {
              "name": "Profile",
              "anchor": "PermissionsFile.Profile",
              "kind": "field",
              "doc": "Profile names the base preset (\"cautious\", \"balanced\", or \"autonomous\").\nEditing individual rules keeps Profile so the editor can mark the profile as changed from its preset."
            },
            {
              "name": "Rules",
              "anchor": "PermissionsFile.Rules",
              "kind": "field",
              "doc": "Rules is the ordered first-match-wins permission table checked before every mutating or running MCP tool call."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultPermissions",
              "anchor": "DefaultPermissions",
              "decl": "func DefaultPermissions() PermissionsFile",
              "doc": "DefaultPermissions returns the editor's default project permissions: version 1 with the Balanced profile preset.\n",
              "file": "pkg/editor/permissions.go",
              "line": 339
            },
            {
              "name": "LoadPermissions",
              "anchor": "LoadPermissions",
              "decl": "func LoadPermissions(filePath string) (*PermissionsFile, error)",
              "doc": "LoadPermissions reads and parses permissions.yaml from path.\n",
              "file": "pkg/editor/permissions.go",
              "line": 581
            },
            {
              "name": "ParsePermissions",
              "anchor": "ParsePermissions",
              "decl": "func ParsePermissions(data []byte) (*PermissionsFile, error)",
              "doc": "ParsePermissions decodes and validates a versioned YAML permissions.yaml document.\nUnknown fields, trailing YAML documents, YAML anchors/aliases/merge keys, duplicate mapping keys, missing or unsupported versions, and invalid profiles, actions, patterns, or decisions are refused.\n\nErrors are *loaderr.Error values carrying the line, column, field path and fix; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/editor/permissions.go",
              "line": 372
            },
            {
              "name": "PermissionPreset",
              "anchor": "PermissionPreset",
              "decl": "func PermissionPreset(profile PermissionProfile) PermissionsFile",
              "doc": "PermissionPreset returns the canonical rule table for profile (defaulting to Balanced for an unknown profile).\n",
              "file": "pkg/editor/permissions.go",
              "line": 266
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "PermissionsFile.Clone",
              "recv": "PermissionsFile",
              "decl": "func (f PermissionsFile) Clone() PermissionsFile",
              "doc": "Clone returns a deep copy of f.\n",
              "file": "pkg/editor/permissions.go",
              "line": 253
            },
            {
              "name": "Evaluate",
              "anchor": "PermissionsFile.Evaluate",
              "recv": "PermissionsFile",
              "decl": "func (f PermissionsFile) Evaluate(req PermissionRequest) PermissionEvaluation",
              "doc": "Evaluate checks req against f's rules from top to bottom (first match wins).\nWhen no rule matches, the active profile's default decision applies.\nUnrecognized actions or escaping file paths fail closed (PermissionDeny).\n",
              "file": "pkg/editor/permissions.go",
              "line": 660
            },
            {
              "name": "IsModified",
              "anchor": "PermissionsFile.IsModified",
              "recv": "PermissionsFile",
              "decl": "func (f PermissionsFile) IsModified() bool",
              "doc": "IsModified reports whether f's rules differ from PermissionPreset(f.Profile).\n",
              "file": "pkg/editor/permissions.go",
              "line": 344
            }
          ]
        },
        {
          "name": "PickedComponentGizmo3D",
          "anchor": "PickedComponentGizmo3D",
          "decl": "type PickedComponentGizmo3D struct {\n\tObjectID  string\n\tComponent string\n\tHandle    GizmoHandle3D\n}",
          "doc": "PickedComponentGizmo3D identifies a picked or active 3D component gizmo handle on a scene object.\n",
          "file": "pkg/editor/gizmo3d.go",
          "line": 296,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "PickedComponentGizmo3D.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "PickedComponentGizmo3D.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Handle",
              "anchor": "PickedComponentGizmo3D.Handle",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Placement3D",
          "anchor": "Placement3D",
          "decl": "type Placement3D struct {\n\t// Point is the world-space point the model rests on.\n\tPoint [3]float32\n\t// Normal is the outward unit normal of the surface at Point, straight up on the ground plane.\n\tNormal [3]float32\n\t// OnSurface says Point lies on the scene's geometry rather than on the ground plane.\n\tOnSurface bool\n}",
          "doc": "Placement3D is where the Place tool puts a model in the 3D viewport (PlacementAt3D): a point on the geometry under the pointer, or on the ground plane where it hits none.\n",
          "file": "pkg/editor/models.go",
          "line": 182,
          "members": [
            {
              "name": "Point",
              "anchor": "Placement3D.Point",
              "kind": "field",
              "doc": "Point is the world-space point the model rests on."
            },
            {
              "name": "Normal",
              "anchor": "Placement3D.Normal",
              "kind": "field",
              "doc": "Normal is the outward unit normal of the surface at Point, straight up on the ground plane."
            },
            {
              "name": "OnSurface",
              "anchor": "Placement3D.OnSurface",
              "kind": "field",
              "doc": "OnSurface says Point lies on the scene's geometry rather than on the ground plane."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanAnswerDecision",
          "anchor": "PlanAnswerDecision",
          "decl": "type PlanAnswerDecision struct {\n\tQuestionID   string `json:\"questionId\"`\n\tLabel        string `json:\"label,omitempty\"`\n\tOptionID     string `json:\"optionId\"`\n\tOptionLabel  string `json:\"optionLabel\"`\n\tPickedForYou bool   `json:\"pickedForYou,omitempty\"`\n}",
          "doc": "PlanAnswerDecision records the person's final answer to one clarifying question.\n",
          "file": "pkg/editor/plan.go",
          "line": 324,
          "members": [
            {
              "name": "QuestionID",
              "anchor": "PlanAnswerDecision.QuestionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "PlanAnswerDecision.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OptionID",
              "anchor": "PlanAnswerDecision.OptionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OptionLabel",
              "anchor": "PlanAnswerDecision.OptionLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PickedForYou",
              "anchor": "PlanAnswerDecision.PickedForYou",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanEstimate",
          "anchor": "PlanEstimate",
          "decl": "type PlanEstimate struct {\n\tDuration string `json:\"duration,omitempty\"`\n\tTokens   string `json:\"tokens,omitempty\"`\n}",
          "doc": "PlanEstimate holds optional human-readable duration and token budget estimates for a plan.\n",
          "file": "pkg/editor/plan.go",
          "line": 71,
          "members": [
            {
              "name": "Duration",
              "anchor": "PlanEstimate.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tokens",
              "anchor": "PlanEstimate.Tokens",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanFile",
          "anchor": "PlanFile",
          "decl": "type PlanFile struct {\n\tPath string      `json:\"path\"`\n\tTag  PlanFileTag `json:\"tag,omitempty\"`\n}",
          "doc": "PlanFile lists one file touched by the plan for the \"FILES IN THIS PLAN\" panel.\n",
          "file": "pkg/editor/plan.go",
          "line": 77,
          "members": [
            {
              "name": "Path",
              "anchor": "PlanFile.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "PlanFile.Tag",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanFileTag",
          "anchor": "PlanFileTag",
          "decl": "type PlanFileTag string",
          "doc": "PlanFileTag classifies how a file in a plan will be changed.\n",
          "file": "pkg/editor/plan.go",
          "line": 62,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PlanFileEdit",
                  "anchor": "PlanFileEdit"
                },
                {
                  "name": "PlanFileNew",
                  "anchor": "PlanFileNew"
                },
                {
                  "name": "PlanFileDelete",
                  "anchor": "PlanFileDelete"
                }
              ],
              "decl": "const (\n\tPlanFileEdit   PlanFileTag = \"edit\"\n\tPlanFileNew    PlanFileTag = \"new\"\n\tPlanFileDelete PlanFileTag = \"delete\"\n)",
              "doc": "",
              "file": "pkg/editor/plan.go",
              "line": 64
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanGhost",
          "anchor": "PlanGhost",
          "decl": "type PlanGhost struct {\n\tID          string   `json:\"id,omitempty\"`\n\tStep        int      `json:\"step,omitempty\"`\n\tX           float32  `json:\"x\"`\n\tY           float32  `json:\"y\"`\n\tWidth       float32  `json:\"width\"`\n\tHeight      float32  `json:\"height\"`\n\tRadius      float32  `json:\"radius,omitempty\"`\n\tLabel       string   `json:\"label,omitempty\"`\n\tActiveLabel string   `json:\"activeLabel,omitempty\"`\n\tLabelX      *float32 `json:\"labelX,omitempty\"`\n\tLabelY      *float32 `json:\"labelY,omitempty\"`\n\t// RepeatField optionally names a PlanStepField.Key on the owning step so changing a count stepper\n\t// updates how many ghost boxes are drawn across SpanWidth (or stepped by StepX / StaggerY).\n\tRepeatField string  `json:\"repeatField,omitempty\"`\n\tSpanWidth   float32 `json:\"spanWidth,omitempty\"`\n\tStepX       float32 `json:\"stepX,omitempty\"`\n\tStaggerY    float32 `json:\"staggerY,omitempty\"`\n\t// ObjectID optionally links this ghost to a planned or existing scene object whose manual edits pause while running.\n\tObjectID string `json:\"objectId,omitempty\"`\n}",
          "doc": "PlanGhost describes a planned rectangle or object ghost drawn in the 2D viewport for a plan step.\n",
          "file": "pkg/editor/plan.go",
          "line": 174,
          "members": [
            {
              "name": "ID",
              "anchor": "PlanGhost.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "PlanGhost.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "PlanGhost.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "PlanGhost.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "PlanGhost.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "PlanGhost.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "PlanGhost.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "PlanGhost.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveLabel",
              "anchor": "PlanGhost.ActiveLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelX",
              "anchor": "PlanGhost.LabelX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelY",
              "anchor": "PlanGhost.LabelY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RepeatField",
              "anchor": "PlanGhost.RepeatField",
              "kind": "field",
              "doc": "RepeatField optionally names a PlanStepField.Key on the owning step so changing a count stepper\nupdates how many ghost boxes are drawn across SpanWidth (or stepped by StepX / StaggerY)."
            },
            {
              "name": "SpanWidth",
              "anchor": "PlanGhost.SpanWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepX",
              "anchor": "PlanGhost.StepX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StaggerY",
              "anchor": "PlanGhost.StaggerY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "PlanGhost.ObjectID",
              "kind": "field",
              "doc": "ObjectID optionally links this ghost to a planned or existing scene object whose manual edits pause while running."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanGhostOverride",
          "anchor": "PlanGhostOverride",
          "decl": "type PlanGhostOverride struct {\n\tStep        int         `json:\"step\"`\n\tGhostID     string      `json:\"ghostId,omitempty\"`\n\tX           *float32    `json:\"x,omitempty\"`\n\tY           *float32    `json:\"y,omitempty\"`\n\tWidth       *float32    `json:\"width,omitempty\"`\n\tHeight      *float32    `json:\"height,omitempty\"`\n\tLabel       string      `json:\"label,omitempty\"`\n\tLabelX      *float32    `json:\"labelX,omitempty\"`\n\tLabelY      *float32    `json:\"labelY,omitempty\"`\n\tReplaceWith []PlanGhost `json:\"replaceWith,omitempty\"`\n}",
          "doc": "PlanGhostOverride adjusts or replaces planned viewport ghosts when a clarifying question option is selected.\n",
          "file": "pkg/editor/plan.go",
          "line": 100,
          "members": [
            {
              "name": "Step",
              "anchor": "PlanGhostOverride.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GhostID",
              "anchor": "PlanGhostOverride.GhostID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "PlanGhostOverride.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "PlanGhostOverride.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "PlanGhostOverride.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "PlanGhostOverride.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "PlanGhostOverride.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelX",
              "anchor": "PlanGhostOverride.LabelX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelY",
              "anchor": "PlanGhostOverride.LabelY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplaceWith",
              "anchor": "PlanGhostOverride.ReplaceWith",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanOption",
          "anchor": "PlanOption",
          "decl": "type PlanOption struct {\n\tID                 string              `json:\"id\"`\n\tLabel              string              `json:\"label\"`\n\tNote               string              `json:\"note,omitempty\"`\n\tSuggested          bool                `json:\"suggested,omitempty\"`\n\tPreview            *PlanOptionPreview  `json:\"preview,omitempty\"`\n\tStepTitleOverrides map[int]string      `json:\"stepTitleOverrides,omitempty\"`\n\tGhostOverrides     []PlanGhostOverride `json:\"ghostOverrides,omitempty\"`\n}",
          "doc": "PlanOption is one selectable choice in a clarifying question on a proposed plan.\n",
          "file": "pkg/editor/plan.go",
          "line": 114,
          "members": [
            {
              "name": "ID",
              "anchor": "PlanOption.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "PlanOption.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "PlanOption.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Suggested",
              "anchor": "PlanOption.Suggested",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Preview",
              "anchor": "PlanOption.Preview",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepTitleOverrides",
              "anchor": "PlanOption.StepTitleOverrides",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GhostOverrides",
              "anchor": "PlanOption.GhostOverrides",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanOptionPreview",
          "anchor": "PlanOptionPreview",
          "decl": "type PlanOptionPreview struct {\n\t// Kind selects the visual style: \"room\" (mini room sketch with gate & lever markers) or \"strip\" (timing/state bar).\n\tKind             string             `json:\"kind\"`\n\tRoomSplitPercent float32            `json:\"roomSplitPercent,omitempty\"` // default 46\n\tGatePercent      float32            `json:\"gatePercent,omitempty\"`      // 0..100 horizontal position of gate marker\n\tLeverPercent     float32            `json:\"leverPercent,omitempty\"`     // 0..100 horizontal position of lever marker\n\tSegments         []PlanStripSegment `json:\"segments,omitempty\"`         // for kind == \"strip\"\n}",
          "doc": "PlanOptionPreview describes an optional visual thumbnail shown on a clarifying question option card.\n",
          "file": "pkg/editor/plan.go",
          "line": 90,
          "members": [
            {
              "name": "Kind",
              "anchor": "PlanOptionPreview.Kind",
              "kind": "field",
              "doc": "Kind selects the visual style: \"room\" (mini room sketch with gate & lever markers) or \"strip\" (timing/state bar)."
            },
            {
              "name": "RoomSplitPercent",
              "anchor": "PlanOptionPreview.RoomSplitPercent",
              "kind": "field",
              "doc": "default 46"
            },
            {
              "name": "GatePercent",
              "anchor": "PlanOptionPreview.GatePercent",
              "kind": "field",
              "doc": "0..100 horizontal position of gate marker"
            },
            {
              "name": "LeverPercent",
              "anchor": "PlanOptionPreview.LeverPercent",
              "kind": "field",
              "doc": "0..100 horizontal position of lever marker"
            },
            {
              "name": "Segments",
              "anchor": "PlanOptionPreview.Segments",
              "kind": "field",
              "doc": "for kind == \"strip\""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanPermissionSummary",
          "anchor": "PlanPermissionSummary",
          "decl": "type PlanPermissionSummary struct {\n\tNeeded     bool\n\tEditsGo    bool\n\tRunsGame   bool\n\tFileCount  int\n\tAskReasons []string\n\tReason     string\n}",
          "doc": "PlanPermissionSummary explains why a plan was requested based on the active permissions.yaml rules.\n",
          "file": "pkg/editor/plan.go",
          "line": 448,
          "members": [
            {
              "name": "Needed",
              "anchor": "PlanPermissionSummary.Needed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditsGo",
              "anchor": "PlanPermissionSummary.EditsGo",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RunsGame",
              "anchor": "PlanPermissionSummary.RunsGame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileCount",
              "anchor": "PlanPermissionSummary.FileCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AskReasons",
              "anchor": "PlanPermissionSummary.AskReasons",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "PlanPermissionSummary.Reason",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanPhase",
          "anchor": "PlanPhase",
          "decl": "type PlanPhase string",
          "doc": "PlanPhase is the lifecycle state of an agent-proposed plan.\n",
          "file": "pkg/editor/plan.go",
          "line": 35,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PlanPhaseNone",
                  "anchor": "PlanPhaseNone"
                },
                {
                  "name": "PlanPhaseDraft",
                  "anchor": "PlanPhaseDraft"
                },
                {
                  "name": "PlanPhaseRunning",
                  "anchor": "PlanPhaseRunning"
                },
                {
                  "name": "PlanPhaseStopped",
                  "anchor": "PlanPhaseStopped"
                },
                {
                  "name": "PlanPhaseDone",
                  "anchor": "PlanPhaseDone"
                }
              ],
              "decl": "const (\n\t// PlanPhaseNone indicates no plan is active.\n\tPlanPhaseNone PlanPhase = \"\"\n\t// PlanPhaseDraft indicates the agent proposed a plan and is waiting for the person to answer questions, edit steps, and approve.\n\tPlanPhaseDraft PlanPhase = \"draft\"\n\t// PlanPhaseRunning indicates the person approved (or chose Just do it) and the agent is executing steps.\n\tPlanPhaseRunning PlanPhase = \"running\"\n\t// PlanPhaseStopped indicates the person stopped the plan before completion.\n\tPlanPhaseStopped PlanPhase = \"stopped\"\n\t// PlanPhaseDone indicates the plan finished and its step checklist was attached to the turn's review.\n\tPlanPhaseDone PlanPhase = \"done\"\n)",
              "doc": "",
              "file": "pkg/editor/plan.go",
              "line": 37
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanQuestion",
          "anchor": "PlanQuestion",
          "decl": "type PlanQuestion struct {\n\tID         string       `json:\"id\"`\n\tLabel      string       `json:\"label,omitempty\"`\n\tPrompt     string       `json:\"prompt\"`\n\tOptions    []PlanOption `json:\"options\"`\n\tSelectedID string       `json:\"selectedId,omitempty\"`\n}",
          "doc": "PlanQuestion is a clarifying question the person answers before approving a plan.\n",
          "file": "pkg/editor/plan.go",
          "line": 125,
          "members": [
            {
              "name": "ID",
              "anchor": "PlanQuestion.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "PlanQuestion.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "PlanQuestion.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Options",
              "anchor": "PlanQuestion.Options",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedID",
              "anchor": "PlanQuestion.SelectedID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "SelectedOption",
              "anchor": "PlanQuestion.SelectedOption",
              "recv": "PlanQuestion",
              "decl": "func (q PlanQuestion) SelectedOption() (PlanOption, bool)",
              "doc": "SelectedOption returns the currently chosen option, if answered.\n",
              "file": "pkg/editor/plan.go",
              "line": 152
            },
            {
              "name": "SuggestedOption",
              "anchor": "PlanQuestion.SuggestedOption",
              "recv": "PlanQuestion",
              "decl": "func (q PlanQuestion) SuggestedOption() (PlanOption, bool)",
              "doc": "SuggestedOption returns the option marked Suggested (falling back to an option noted \"Suggested\" or index 0).\n",
              "file": "pkg/editor/plan.go",
              "line": 134
            }
          ]
        },
        {
          "name": "PlanReviewStep",
          "anchor": "PlanReviewStep",
          "decl": "type PlanReviewStep struct {\n\tNumber  int            `json:\"number\"`\n\tID      string         `json:\"id\"`\n\tTitle   string         `json:\"title\"`\n\tFiles   []string       `json:\"files,omitempty\"`\n\tRemoved bool           `json:\"removed,omitempty\"`\n\tStatus  PlanStepStatus `json:\"status\"`\n\tNote    string         `json:\"note,omitempty\"`\n}",
          "doc": "PlanReviewStep records one step of a plan inside an AgentTurn's review checklist.\n",
          "file": "pkg/editor/plan.go",
          "line": 361,
          "members": [
            {
              "name": "Number",
              "anchor": "PlanReviewStep.Number",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "PlanReviewStep.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "PlanReviewStep.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "PlanReviewStep.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "PlanReviewStep.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "PlanReviewStep.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "PlanReviewStep.Note",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanStep",
          "anchor": "PlanStep",
          "decl": "type PlanStep struct {\n\tNumber           int              `json:\"number\"`\n\tID               string           `json:\"id,omitempty\"`\n\tTitle            string           `json:\"title\"`\n\tFiles            []string         `json:\"files,omitempty\"`\n\tFilesLabel       string           `json:\"filesLabel,omitempty\"`\n\tAdds             string           `json:\"adds,omitempty\"`\n\tObjects          int              `json:\"objects,omitempty\"`\n\tPermission       string           `json:\"permission,omitempty\"`\n\tPermissionAction PermissionAction `json:\"permissionAction,omitempty\"`\n\tPermissionTarget string           `json:\"permissionTarget,omitempty\"`\n\tFields           []PlanStepField  `json:\"fields,omitempty\"`\n\tNote             string           `json:\"note,omitempty\"`\n\tNotePlaceholder  string           `json:\"notePlaceholder,omitempty\"`\n\tRemoved          bool             `json:\"removed,omitempty\"`\n\tStatus           PlanStepStatus   `json:\"status,omitempty\"`\n\tGhosts           []PlanGhost      `json:\"ghosts,omitempty\"`\n\tNodes            []PlanTreeNode   `json:\"nodes,omitempty\"`\n}",
          "doc": "PlanStep is one numbered step in an agent-proposed plan.\n",
          "file": "pkg/editor/plan.go",
          "line": 207,
          "members": [
            {
              "name": "Number",
              "anchor": "PlanStep.Number",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "PlanStep.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "PlanStep.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "PlanStep.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FilesLabel",
              "anchor": "PlanStep.FilesLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Adds",
              "anchor": "PlanStep.Adds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Objects",
              "anchor": "PlanStep.Objects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Permission",
              "anchor": "PlanStep.Permission",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionAction",
              "anchor": "PlanStep.PermissionAction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionTarget",
              "anchor": "PlanStep.PermissionTarget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fields",
              "anchor": "PlanStep.Fields",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "PlanStep.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NotePlaceholder",
              "anchor": "PlanStep.NotePlaceholder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "PlanStep.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "PlanStep.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ghosts",
              "anchor": "PlanStep.Ghosts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Nodes",
              "anchor": "PlanStep.Nodes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanStepDecision",
          "anchor": "PlanStepDecision",
          "decl": "type PlanStepDecision struct {\n\tNumber     int            `json:\"number\"`\n\tID         string         `json:\"id\"`\n\tTitle      string         `json:\"title\"`\n\tFiles      []string       `json:\"files,omitempty\"`\n\tAdds       string         `json:\"adds,omitempty\"`\n\tObjects    int            `json:\"objects,omitempty\"`\n\tPermission string         `json:\"permission,omitempty\"`\n\tRemoved    bool           `json:\"removed,omitempty\"`\n\tFields     map[string]int `json:\"fields,omitempty\"`\n\tNote       string         `json:\"note,omitempty\"`\n\tStatus     PlanStepStatus `json:\"status,omitempty\"`\n}",
          "doc": "PlanStepDecision records the finalized state of one step returned to the agent after approval or stop.\n",
          "file": "pkg/editor/plan.go",
          "line": 333,
          "members": [
            {
              "name": "Number",
              "anchor": "PlanStepDecision.Number",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "PlanStepDecision.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "PlanStepDecision.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "PlanStepDecision.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Adds",
              "anchor": "PlanStepDecision.Adds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Objects",
              "anchor": "PlanStepDecision.Objects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Permission",
              "anchor": "PlanStepDecision.Permission",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "PlanStepDecision.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fields",
              "anchor": "PlanStepDecision.Fields",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "PlanStepDecision.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "PlanStepDecision.Status",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanStepField",
          "anchor": "PlanStepField",
          "decl": "type PlanStepField struct {\n\tKey           string `json:\"key\"`\n\tLabel         string `json:\"label\"`\n\tValue         int    `json:\"value\"`\n\tMin           int    `json:\"min\"`\n\tMax           int    `json:\"max\"`\n\tStep          int    `json:\"step,omitempty\"`\n\tHint          string `json:\"hint,omitempty\"`\n\tCountsObjects bool   `json:\"countsObjects,omitempty\"`\n}",
          "doc": "PlanStepField is one editable numeric parameter on a plan step (rendered with - / value / + steppers and limits).\n",
          "file": "pkg/editor/plan.go",
          "line": 162,
          "members": [
            {
              "name": "Key",
              "anchor": "PlanStepField.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "PlanStepField.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "PlanStepField.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Min",
              "anchor": "PlanStepField.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "PlanStepField.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "PlanStepField.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hint",
              "anchor": "PlanStepField.Hint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CountsObjects",
              "anchor": "PlanStepField.CountsObjects",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanStepStatus",
          "anchor": "PlanStepStatus",
          "decl": "type PlanStepStatus string",
          "doc": "PlanStepStatus tracks execution progress of one step in an active or reviewed plan.\n",
          "file": "pkg/editor/plan.go",
          "line": 51,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PlanStepPending",
                  "anchor": "PlanStepPending"
                },
                {
                  "name": "PlanStepRunning",
                  "anchor": "PlanStepRunning"
                },
                {
                  "name": "PlanStepDone",
                  "anchor": "PlanStepDone"
                },
                {
                  "name": "PlanStepFailed",
                  "anchor": "PlanStepFailed"
                },
                {
                  "name": "PlanStepSkipped",
                  "anchor": "PlanStepSkipped"
                }
              ],
              "decl": "const (\n\tPlanStepPending PlanStepStatus = \"pending\"\n\tPlanStepRunning PlanStepStatus = \"running\"\n\tPlanStepDone    PlanStepStatus = \"done\"\n\tPlanStepFailed  PlanStepStatus = \"failed\"\n\tPlanStepSkipped PlanStepStatus = \"skipped\"\n)",
              "doc": "",
              "file": "pkg/editor/plan.go",
              "line": 53
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanStripSegment",
          "anchor": "PlanStripSegment",
          "decl": "type PlanStripSegment struct {\n\tFrom   float32 `json:\"from\"`   // 0..100 percentage\n\tTo     float32 `json:\"to\"`     // 0..100 percentage\n\tActive bool    `json:\"active\"` // true = lit segment, false = recessed track\n}",
          "doc": "PlanStripSegment is one segment in a horizontal timing/state strip preview on a question option.\n",
          "file": "pkg/editor/plan.go",
          "line": 83,
          "members": [
            {
              "name": "From",
              "anchor": "PlanStripSegment.From",
              "kind": "field",
              "doc": "0..100 percentage"
            },
            {
              "name": "To",
              "anchor": "PlanStripSegment.To",
              "kind": "field",
              "doc": "0..100 percentage"
            },
            {
              "name": "Active",
              "anchor": "PlanStripSegment.Active",
              "kind": "field",
              "doc": "true = lit segment, false = recessed track"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanTreeNode",
          "anchor": "PlanTreeNode",
          "decl": "type PlanTreeNode struct {\n\tName     string `json:\"name\"`\n\tLayer    string `json:\"layer,omitempty\"`\n\tExisting bool   `json:\"existing,omitempty\"`\n\tStep     int    `json:\"step,omitempty\"`\n\tObjectID string `json:\"objectId,omitempty\"`\n}",
          "doc": "PlanTreeNode describes a planned node shown in the Scene Tree with a dashed marker and step badge,\nor an existing layer/object annotated with a step badge when Existing is true.\n",
          "file": "pkg/editor/plan.go",
          "line": 198,
          "members": [
            {
              "name": "Name",
              "anchor": "PlanTreeNode.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "PlanTreeNode.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Existing",
              "anchor": "PlanTreeNode.Existing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "PlanTreeNode.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "PlanTreeNode.ObjectID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlayAgentStep",
          "anchor": "PlayAgentStep",
          "decl": "type PlayAgentStep struct {\n\tText   string `json:\"text\"`\n\tStatus string `json:\"status\"` // \"done\", \"active\", or \"pending\"\n}",
          "doc": "PlayAgentStep is one progress row displayed in the Play mode Agent tab while the agent inspects a replay.\n",
          "file": "pkg/editor/play_marks.go",
          "line": 83,
          "members": [
            {
              "name": "Text",
              "anchor": "PlayAgentStep.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "PlayAgentStep.Status",
              "kind": "field",
              "doc": "\"done\", \"active\", or \"pending\""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlayInspectorTab",
          "anchor": "PlayInspectorTab",
          "decl": "type PlayInspectorTab int",
          "doc": "PlayInspectorTab selects between the Inspector and Agent tabs in the right panel during Play mode.\n",
          "file": "pkg/editor/play_marks.go",
          "line": 23,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PlayTabInspector",
                  "anchor": "PlayTabInspector"
                },
                {
                  "name": "PlayTabAgent",
                  "anchor": "PlayTabAgent"
                }
              ],
              "decl": "const (\n\t// PlayTabInspector shows the normal or live remote entity inspector.\n\tPlayTabInspector PlayInspectorTab = iota\n\t// PlayTabAgent shows the Play mode Agent tab with MARKS · N and agent replay stepping progress.\n\tPlayTabAgent\n)",
              "doc": "",
              "file": "pkg/editor/play_marks.go",
              "line": 25
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlayLiveEntityState",
          "anchor": "PlayLiveEntityState",
          "decl": "type PlayLiveEntityState struct {\n\tID         string         `json:\"id\"`\n\tName       string         `json:\"name,omitempty\"`\n\tLayer      string         `json:\"layer,omitempty\"`\n\tX          float32        `json:\"x\"`\n\tY          float32        `json:\"y\"`\n\tComponents map[string]any `json:\"components,omitempty\"`\n\tProperties map[string]any `json:\"properties,omitempty\"`\n}",
          "doc": "PlayLiveEntityState captures a live scene entity's runtime transform and components at a frozen frame.\n",
          "file": "pkg/editor/play_marks.go",
          "line": 54,
          "members": [
            {
              "name": "ID",
              "anchor": "PlayLiveEntityState.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "PlayLiveEntityState.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "PlayLiveEntityState.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "PlayLiveEntityState.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "PlayLiveEntityState.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Components",
              "anchor": "PlayLiveEntityState.Components",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "PlayLiveEntityState.Properties",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlayMark",
          "anchor": "PlayMark",
          "decl": "type PlayMark struct {\n\tID         int       `json:\"id\"`\n\tFrame      int       `json:\"frame\"`\n\tSeconds    float64   `json:\"seconds\"`\n\tTimeLabel  string    `json:\"timeLabel\"`\n\tReplayPath string    `json:\"replayPath\"`\n\tAbsPath    string    `json:\"absPath,omitempty\"`\n\tScene      string    `json:\"scene,omitempty\"`\n\tCreatedAt  time.Time `json:\"createdAt\"`\n\tSent       bool      `json:\"sent,omitempty\"`\n}",
          "doc": "PlayMark records one moment marked during Play mode (⌥F / AddPlayMark) with its saved input recording.\n",
          "file": "pkg/editor/play_marks.go",
          "line": 33,
          "members": [
            {
              "name": "ID",
              "anchor": "PlayMark.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frame",
              "anchor": "PlayMark.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seconds",
              "anchor": "PlayMark.Seconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TimeLabel",
              "anchor": "PlayMark.TimeLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayPath",
              "anchor": "PlayMark.ReplayPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AbsPath",
              "anchor": "PlayMark.AbsPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scene",
              "anchor": "PlayMark.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CreatedAt",
              "anchor": "PlayMark.CreatedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sent",
              "anchor": "PlayMark.Sent",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlayMarksThread",
          "anchor": "PlayMarksThread",
          "decl": "type PlayMarksThread struct {\n\tScene     string     `json:\"scene,omitempty\"`\n\tMarks     []PlayMark `json:\"marks\"`\n\tSummary   string     `json:\"summary\"`\n\tCreatedAt time.Time  `json:\"createdAt\"`\n}",
          "doc": "PlayMarksThread bundles all unsent marks from a Play session into one thread sent to the agent.\n",
          "file": "pkg/editor/play_marks.go",
          "line": 46,
          "members": [
            {
              "name": "Scene",
              "anchor": "PlayMarksThread.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Marks",
              "anchor": "PlayMarksThread.Marks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "PlayMarksThread.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CreatedAt",
              "anchor": "PlayMarksThread.CreatedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlayTaskDotState",
          "anchor": "PlayTaskDotState",
          "decl": "type PlayTaskDotState struct {\n\t// Visible reports whether any attention-needing task (failed, waiting, or ready to review) exists.\n\tVisible bool\n\t// UrgentState is the highest-urgency active state (TaskFailed > TaskNeedsYou > TaskReadyToReview).\n\tUrgentState TaskState\n\t// UrgentCount is the number of tasks in UrgentState.\n\tUrgentCount int\n\t// AriaLabel is the accessible label for the corner dot (for example \"1 task needs you\").\n\tAriaLabel string\n\t// HoverLabel is the tooltip pill shown only on hover or keyboard focus\n\t// (for example \"1 task needs you · stop Play to open\").\n\tHoverLabel string\n}",
          "doc": "PlayTaskDotState describes the single corner dot shown during Play mode\n(docs/design/editor/Tasks.dc.html: \"Nothing pops over a running game. One dot in the corner,\nin the color of the most urgent state; the label shows only on hover.\").\n",
          "file": "pkg/editor/agent_notifications.go",
          "line": 62,
          "members": [
            {
              "name": "Visible",
              "anchor": "PlayTaskDotState.Visible",
              "kind": "field",
              "doc": "Visible reports whether any attention-needing task (failed, waiting, or ready to review) exists."
            },
            {
              "name": "UrgentState",
              "anchor": "PlayTaskDotState.UrgentState",
              "kind": "field",
              "doc": "UrgentState is the highest-urgency active state (TaskFailed > TaskNeedsYou > TaskReadyToReview)."
            },
            {
              "name": "UrgentCount",
              "anchor": "PlayTaskDotState.UrgentCount",
              "kind": "field",
              "doc": "UrgentCount is the number of tasks in UrgentState."
            },
            {
              "name": "AriaLabel",
              "anchor": "PlayTaskDotState.AriaLabel",
              "kind": "field",
              "doc": "AriaLabel is the accessible label for the corner dot (for example \"1 task needs you\")."
            },
            {
              "name": "HoverLabel",
              "anchor": "PlayTaskDotState.HoverLabel",
              "kind": "field",
              "doc": "HoverLabel is the tooltip pill shown only on hover or keyboard focus\n(for example \"1 task needs you · stop Play to open\")."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Color",
              "anchor": "PlayTaskDotState.Color",
              "recv": "PlayTaskDotState",
              "decl": "func (d PlayTaskDotState) Color(p SpecPalette) core.Color",
              "doc": "Color returns the Spec token color for the dot's most urgent state (never raw hex).\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 77
            }
          ]
        },
        {
          "name": "PlaytestChartKind",
          "anchor": "PlaytestChartKind",
          "decl": "type PlaytestChartKind string",
          "doc": "PlaytestChartKind identifies which single chart visualization the Playtest Report screen renders for a report.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 21,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PlaytestChartHeatMap",
                  "anchor": "PlaytestChartHeatMap"
                },
                {
                  "name": "PlaytestChartBars",
                  "anchor": "PlaytestChartBars"
                },
                {
                  "name": "PlaytestChartLine",
                  "anchor": "PlaytestChartLine"
                },
                {
                  "name": "PlaytestChartMatrix",
                  "anchor": "PlaytestChartMatrix"
                }
              ],
              "decl": "const (\n\t// PlaytestChartHeatMap renders a spatial heat map (deaths or time per tile) over the level.\n\tPlaytestChartHeatMap PlaytestChartKind = \"heat\"\n\t// PlaytestChartBars renders labeled vertical bars per wave/bucket against an optional dashed goal line.\n\tPlaytestChartBars PlaytestChartKind = \"bars\"\n\t// PlaytestChartLine renders a per-level line progression chart highlighting dips, spikes or flagged levels.\n\tPlaytestChartLine PlaytestChartKind = \"line\"\n\t// PlaytestChartMatrix renders a row-vs-column win-rate matrix with cells above the threshold (default 60%) flagged.\n\tPlaytestChartMatrix PlaytestChartKind = \"matrix\"\n)",
              "doc": "",
              "file": "pkg/editor/playtest_report.go",
              "line": 23
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "PlaytestChartKind.String",
              "recv": "PlaytestChartKind",
              "decl": "func (k PlaytestChartKind) String() string",
              "doc": "String returns a human-readable name for the chart kind.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 35
            }
          ]
        },
        {
          "name": "PlaytestChartSpec",
          "anchor": "PlaytestChartSpec",
          "decl": "type PlaytestChartSpec struct {\n\tKind     PlaytestChartKind\n\tTitle    string\n\tSubtitle string\n\tHeatMap  *PlaytestHeatChart\n\tBars     *PlaytestSeriesChart\n\tLine     *PlaytestSeriesChart\n\tMatrix   *PlaytestMatrixChart\n}",
          "doc": "PlaytestChartSpec is the single chart selected for a playtest report.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 116,
          "members": [
            {
              "name": "Kind",
              "anchor": "PlaytestChartSpec.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "PlaytestChartSpec.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Subtitle",
              "anchor": "PlaytestChartSpec.Subtitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeatMap",
              "anchor": "PlaytestChartSpec.HeatMap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bars",
              "anchor": "PlaytestChartSpec.Bars",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "PlaytestChartSpec.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Matrix",
              "anchor": "PlaytestChartSpec.Matrix",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SelectPlaytestChart",
              "anchor": "SelectPlaytestChart",
              "decl": "func SelectPlaytestChart(rep *playtest.Report) PlaytestChartSpec",
              "doc": "SelectPlaytestChart chooses the single best chart visualization for rep from its metrics and data:\n 1. Win-rate matrix (PlaytestChartMatrix) when Matrices is non-empty,\n 2. Spatial level heat map (PlaytestChartHeatMap) when HeatMaps is non-empty,\n 3. Bars per wave against a goal line (PlaytestChartBars) or line per level (PlaytestChartLine) when Series is non-empty,\n 4. Fallback to positioned run events (heat map) or per-run progression (line).\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 1325
            }
          ],
          "methods": []
        },
        {
          "name": "PlaytestHeatChart",
          "anchor": "PlaytestHeatChart",
          "decl": "type PlaytestHeatChart struct {\n\tMetric        string\n\tEvent         string\n\tIsTimePerTile bool\n\tPoints        []playtest.HeatPoint\n\tClusters      []PlaytestHeatCluster\n\tChips         []PlaytestHeatChip\n\tMinX, MaxX    float64\n\tMinY, MaxY    float64\n}",
          "doc": "PlaytestHeatChart holds the spatial data rendered by PlaytestChartHeatMap.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 83,
          "members": [
            {
              "name": "Metric",
              "anchor": "PlaytestHeatChart.Metric",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Event",
              "anchor": "PlaytestHeatChart.Event",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsTimePerTile",
              "anchor": "PlaytestHeatChart.IsTimePerTile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "PlaytestHeatChart.Points",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clusters",
              "anchor": "PlaytestHeatChart.Clusters",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Chips",
              "anchor": "PlaytestHeatChart.Chips",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinX",
              "anchor": "PlaytestHeatChart.MinX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxX",
              "anchor": "PlaytestHeatChart.MaxX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinY",
              "anchor": "PlaytestHeatChart.MinY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxY",
              "anchor": "PlaytestHeatChart.MaxY",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestHeatChip",
          "anchor": "PlaytestHeatChip",
          "decl": "type PlaytestHeatChip struct {\n\tX       float64\n\tY       float64\n\tText    string\n\tProblem bool\n}",
          "doc": "PlaytestHeatChip is a concise pill annotation placed over a notable cluster on the level heat map.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 75,
          "members": [
            {
              "name": "X",
              "anchor": "PlaytestHeatChip.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "PlaytestHeatChip.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "PlaytestHeatChip.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Problem",
              "anchor": "PlaytestHeatChip.Problem",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestHeatCluster",
          "anchor": "PlaytestHeatCluster",
          "decl": "type PlaytestHeatCluster struct {\n\tX       float64\n\tY       float64\n\tCount   int\n\tShare   float64 // 0..1 share of total points\n\tTag     string\n\tProblem bool\n}",
          "doc": "PlaytestHeatCluster is a clustered density hotspot drawn as a radial heat blob on the level heat map.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 65,
          "members": [
            {
              "name": "X",
              "anchor": "PlaytestHeatCluster.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "PlaytestHeatCluster.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "PlaytestHeatCluster.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Share",
              "anchor": "PlaytestHeatCluster.Share",
              "kind": "field",
              "doc": "0..1 share of total points"
            },
            {
              "name": "Tag",
              "anchor": "PlaytestHeatCluster.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Problem",
              "anchor": "PlaytestHeatCluster.Problem",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestMatrixChart",
          "anchor": "PlaytestMatrixChart",
          "decl": "type PlaytestMatrixChart struct {\n\tName      string\n\tUnit      string\n\tFlagAbove float64\n\tLabels    []string\n\tCells     [][]*float64\n\tCaption   string\n}",
          "doc": "PlaytestMatrixChart holds the grid data rendered by PlaytestChartMatrix.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 106,
          "members": [
            {
              "name": "Name",
              "anchor": "PlaytestMatrixChart.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unit",
              "anchor": "PlaytestMatrixChart.Unit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FlagAbove",
              "anchor": "PlaytestMatrixChart.FlagAbove",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Labels",
              "anchor": "PlaytestMatrixChart.Labels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "PlaytestMatrixChart.Cells",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Caption",
              "anchor": "PlaytestMatrixChart.Caption",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestMetricCard",
          "anchor": "PlaytestMetricCard",
          "decl": "type PlaytestMetricCard struct {\n\tName      string\n\tLabel     string\n\tValueText string\n\tFoot      string\n\tGoalText  string\n\tSource    string\n\tStatus    string // \"met\", \"missed\", or \"info\"\n\tBadge     string // \"Met\", \"Missed\", or \"Info\"\n\tMet       bool\n\tMissed    bool\n}",
          "doc": "PlaytestMetricCard is one summary card rendered in the top grid of the Playtest Report screen.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 51,
          "members": [
            {
              "name": "Name",
              "anchor": "PlaytestMetricCard.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "PlaytestMetricCard.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ValueText",
              "anchor": "PlaytestMetricCard.ValueText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Foot",
              "anchor": "PlaytestMetricCard.Foot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GoalText",
              "anchor": "PlaytestMetricCard.GoalText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "PlaytestMetricCard.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "PlaytestMetricCard.Status",
              "kind": "field",
              "doc": "\"met\", \"missed\", or \"info\""
            },
            {
              "name": "Badge",
              "anchor": "PlaytestMetricCard.Badge",
              "kind": "field",
              "doc": "\"Met\", \"Missed\", or \"Info\""
            },
            {
              "name": "Met",
              "anchor": "PlaytestMetricCard.Met",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Missed",
              "anchor": "PlaytestMetricCard.Missed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildPlaytestMetricCards",
              "anchor": "BuildPlaytestMetricCards",
              "decl": "func BuildPlaytestMetricCards(rep *playtest.Report) []PlaytestMetricCard",
              "doc": "BuildPlaytestMetricCards converts report.Metrics into display-ready metric cards with Met/Missed badges, foot lines, goals, and source files.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 1144
            }
          ],
          "methods": []
        },
        {
          "name": "PlaytestPromptRequest",
          "anchor": "PlaytestPromptRequest",
          "decl": "type PlaytestPromptRequest struct {\n\tKind            string   `json:\"kind\"` // \"tune\" or \"suggestion\"\n\tPrompt          string   `json:\"prompt\"`\n\tProject         string   `json:\"project,omitempty\"`\n\tScope           string   `json:\"scope,omitempty\"`\n\tReportPath      string   `json:\"reportPath,omitempty\"`\n\tConfigPath      string   `json:\"configPath,omitempty\"`\n\tSuggestionID    string   `json:\"suggestionId,omitempty\"`\n\tSuggestionIndex int      `json:\"suggestionIndex,omitempty\"`\n\tMissedMetrics   []string `json:\"missedMetrics,omitempty\"`\n}",
          "doc": "PlaytestPromptRequest captures a tuning or suggestion request sent from the Playtest Report screen to the agent.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 174,
          "members": [
            {
              "name": "Kind",
              "anchor": "PlaytestPromptRequest.Kind",
              "kind": "field",
              "doc": "\"tune\" or \"suggestion\""
            },
            {
              "name": "Prompt",
              "anchor": "PlaytestPromptRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Project",
              "anchor": "PlaytestPromptRequest.Project",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scope",
              "anchor": "PlaytestPromptRequest.Scope",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReportPath",
              "anchor": "PlaytestPromptRequest.ReportPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConfigPath",
              "anchor": "PlaytestPromptRequest.ConfigPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SuggestionID",
              "anchor": "PlaytestPromptRequest.SuggestionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SuggestionIndex",
              "anchor": "PlaytestPromptRequest.SuggestionIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MissedMetrics",
              "anchor": "PlaytestPromptRequest.MissedMetrics",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestProposal",
          "anchor": "PlaytestProposal",
          "decl": "type PlaytestProposal struct {\n\tID          string       `json:\"id\"`\n\tFile        string       `json:\"file\"`\n\tMetricName  string       `json:\"metricName\"`\n\tMetricLabel string       `json:\"metricLabel,omitempty\"`\n\tRationale   string       `json:\"rationale,omitempty\"`\n\tSummary     string       `json:\"summary,omitempty\"`\n\tReplace     bool         `json:\"replace,omitempty\"`\n\tBefore      string       `json:\"before,omitempty\"`\n\tAfter       string       `json:\"after,omitempty\"`\n\tDiff        string       `json:\"diff,omitempty\"`\n\tStatus      string       `json:\"status\"` // \"pending\", \"applied\", \"dismissed\"\n\tApplyFunc   func() error `json:\"-\"`\n\tDismissFunc func() error `json:\"-\"`\n}",
          "doc": "PlaytestProposal represents a metric proposed by the agent with playtest_define awaiting a person's review.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 135,
          "members": [
            {
              "name": "ID",
              "anchor": "PlaytestProposal.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "PlaytestProposal.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetricName",
              "anchor": "PlaytestProposal.MetricName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetricLabel",
              "anchor": "PlaytestProposal.MetricLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rationale",
              "anchor": "PlaytestProposal.Rationale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "PlaytestProposal.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Replace",
              "anchor": "PlaytestProposal.Replace",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Before",
              "anchor": "PlaytestProposal.Before",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "After",
              "anchor": "PlaytestProposal.After",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Diff",
              "anchor": "PlaytestProposal.Diff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "PlaytestProposal.Status",
              "kind": "field",
              "doc": "\"pending\", \"applied\", \"dismissed\""
            },
            {
              "name": "ApplyFunc",
              "anchor": "PlaytestProposal.ApplyFunc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DismissFunc",
              "anchor": "PlaytestProposal.DismissFunc",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "BannerText",
              "anchor": "PlaytestProposal.BannerText",
              "recv": "PlaytestProposal",
              "decl": "func (p PlaytestProposal) BannerText() string",
              "doc": "BannerText formats the single-line summary shown in the BOT PROFILE proposal banner.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 152
            }
          ]
        },
        {
          "name": "PlaytestReportEntry",
          "anchor": "PlaytestReportEntry",
          "decl": "type PlaytestReportEntry struct {\n\tID            string\n\tReport        *playtest.Report\n\tReportPath    string\n\tConfigPath    string\n\tBaseDir       string\n\tRunsSummary   string\n\tWatchRunIndex int\n\tWatchLabel    string\n\tAgentRead     string\n\tSuggestions   []PlaytestSuggestion\n\tCards         []PlaytestMetricCard\n\tChart         PlaytestChartSpec\n}",
          "doc": "PlaytestReportEntry holds one loaded report and its derived UI view-model.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 213,
          "members": [
            {
              "name": "ID",
              "anchor": "PlaytestReportEntry.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Report",
              "anchor": "PlaytestReportEntry.Report",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReportPath",
              "anchor": "PlaytestReportEntry.ReportPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConfigPath",
              "anchor": "PlaytestReportEntry.ConfigPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseDir",
              "anchor": "PlaytestReportEntry.BaseDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RunsSummary",
              "anchor": "PlaytestReportEntry.RunsSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WatchRunIndex",
              "anchor": "PlaytestReportEntry.WatchRunIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WatchLabel",
              "anchor": "PlaytestReportEntry.WatchLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentRead",
              "anchor": "PlaytestReportEntry.AgentRead",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Suggestions",
              "anchor": "PlaytestReportEntry.Suggestions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cards",
              "anchor": "PlaytestReportEntry.Cards",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Chart",
              "anchor": "PlaytestReportEntry.Chart",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestReportOpenConfig",
          "anchor": "PlaytestReportOpenConfig",
          "decl": "type PlaytestReportOpenConfig struct {\n\t// Report is the validated playtest.Report to display (required unless Entries is non-empty).\n\tReport *playtest.Report\n\t// ReportPath is the slash-separated path to the report file relative to the project root (or absolute path).\n\tReportPath string\n\t// ConfigPath is the slash-separated path to playtest.yaml (defaults to \"playtest.yaml\").\n\tConfigPath string\n\t// BaseDir is the base directory used to resolve relative recording paths and playtest.yaml when no project is open.\n\tBaseDir string\n\t// RunsSummary optionally overrides the formatted runs summary in the header.\n\tRunsSummary string\n\t// WatchRunIndex optionally selects which 1-based run Watch run N opens (0 chooses automatically).\n\tWatchRunIndex int\n\t// WatchLabel optionally overrides the Watch button label (e.g. \"Watch match 38\").\n\tWatchLabel string\n\t// AgentRead optionally overrides the synthesized Agent's read summary paragraph.\n\tAgentRead string\n\t// Suggestions optionally overrides the synthesized actionable suggestions list.\n\tSuggestions []string\n\t// Proposals optionally seeds pending playtest_define metric proposals for the session.\n\tProposals []PlaytestProposal\n\t// AdditionalEntries optionally attaches extra reports so the BOT PROFILE strip can switch between multiple reports.\n\tAdditionalEntries []PlaytestReportOpenConfig\n}",
          "doc": "PlaytestReportOpenConfig supplies a playtest.Report and optional presentation metadata to OpenPlaytestReport / LoadPlaytestReport.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 187,
          "members": [
            {
              "name": "Report",
              "anchor": "PlaytestReportOpenConfig.Report",
              "kind": "field",
              "doc": "Report is the validated playtest.Report to display (required unless Entries is non-empty)."
            },
            {
              "name": "ReportPath",
              "anchor": "PlaytestReportOpenConfig.ReportPath",
              "kind": "field",
              "doc": "ReportPath is the slash-separated path to the report file relative to the project root (or absolute path)."
            },
            {
              "name": "ConfigPath",
              "anchor": "PlaytestReportOpenConfig.ConfigPath",
              "kind": "field",
              "doc": "ConfigPath is the slash-separated path to playtest.yaml (defaults to \"playtest.yaml\")."
            },
            {
              "name": "BaseDir",
              "anchor": "PlaytestReportOpenConfig.BaseDir",
              "kind": "field",
              "doc": "BaseDir is the base directory used to resolve relative recording paths and playtest.yaml when no project is open."
            },
            {
              "name": "RunsSummary",
              "anchor": "PlaytestReportOpenConfig.RunsSummary",
              "kind": "field",
              "doc": "RunsSummary optionally overrides the formatted runs summary in the header."
            },
            {
              "name": "WatchRunIndex",
              "anchor": "PlaytestReportOpenConfig.WatchRunIndex",
              "kind": "field",
              "doc": "WatchRunIndex optionally selects which 1-based run Watch run N opens (0 chooses automatically)."
            },
            {
              "name": "WatchLabel",
              "anchor": "PlaytestReportOpenConfig.WatchLabel",
              "kind": "field",
              "doc": "WatchLabel optionally overrides the Watch button label (e.g. \"Watch match 38\")."
            },
            {
              "name": "AgentRead",
              "anchor": "PlaytestReportOpenConfig.AgentRead",
              "kind": "field",
              "doc": "AgentRead optionally overrides the synthesized Agent's read summary paragraph."
            },
            {
              "name": "Suggestions",
              "anchor": "PlaytestReportOpenConfig.Suggestions",
              "kind": "field",
              "doc": "Suggestions optionally overrides the synthesized actionable suggestions list."
            },
            {
              "name": "Proposals",
              "anchor": "PlaytestReportOpenConfig.Proposals",
              "kind": "field",
              "doc": "Proposals optionally seeds pending playtest_define metric proposals for the session."
            },
            {
              "name": "AdditionalEntries",
              "anchor": "PlaytestReportOpenConfig.AdditionalEntries",
              "kind": "field",
              "doc": "AdditionalEntries optionally attaches extra reports so the BOT PROFILE strip can switch between multiple reports."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestReportSession",
          "anchor": "PlaytestReportSession",
          "decl": "type PlaytestReportSession struct {\n\tEntries           []*PlaytestReportEntry\n\tActiveIndex       int\n\tProposals         []PlaytestProposal\n\tReviewProposalID  string\n\tConfigPreviewOpen bool\n\tConfigPreviewPath string\n\tConfigPreviewText string\n\tConfigPreviewErr  string\n\tLastPrompt        PlaytestPromptRequest\n\tNotice            string\n}",
          "doc": "PlaytestReportSession holds the state of the Editor's Playtest Report screen.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 229,
          "members": [
            {
              "name": "Entries",
              "anchor": "PlaytestReportSession.Entries",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveIndex",
              "anchor": "PlaytestReportSession.ActiveIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Proposals",
              "anchor": "PlaytestReportSession.Proposals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReviewProposalID",
              "anchor": "PlaytestReportSession.ReviewProposalID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConfigPreviewOpen",
              "anchor": "PlaytestReportSession.ConfigPreviewOpen",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConfigPreviewPath",
              "anchor": "PlaytestReportSession.ConfigPreviewPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConfigPreviewText",
              "anchor": "PlaytestReportSession.ConfigPreviewText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConfigPreviewErr",
              "anchor": "PlaytestReportSession.ConfigPreviewErr",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastPrompt",
              "anchor": "PlaytestReportSession.LastPrompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Notice",
              "anchor": "PlaytestReportSession.Notice",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ActiveEntry",
              "anchor": "PlaytestReportSession.ActiveEntry",
              "recv": "*PlaytestReportSession",
              "decl": "func (s *PlaytestReportSession) ActiveEntry() *PlaytestReportEntry",
              "doc": "ActiveEntry returns the currently displayed report entry, or nil when none is loaded.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 243
            },
            {
              "name": "FirstPendingProposal",
              "anchor": "PlaytestReportSession.FirstPendingProposal",
              "recv": "*PlaytestReportSession",
              "decl": "func (s *PlaytestReportSession) FirstPendingProposal() *PlaytestProposal",
              "doc": "FirstPendingProposal returns the first pending playtest_define proposal, if any.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 254
            },
            {
              "name": "ProposalByID",
              "anchor": "PlaytestReportSession.ProposalByID",
              "recv": "*PlaytestReportSession",
              "decl": "func (s *PlaytestReportSession) ProposalByID(id string) *PlaytestProposal",
              "doc": "ProposalByID returns the proposal with ID id, or nil.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 267
            }
          ]
        },
        {
          "name": "PlaytestSeriesChart",
          "anchor": "PlaytestSeriesChart",
          "decl": "type PlaytestSeriesChart struct {\n\tName       string\n\tUnit       string\n\tEntries    []playtest.SeriesEntry\n\tTargetMax  *float64\n\tTargetText string\n\tMaxVal     float64\n\tDecimals   int\n}",
          "doc": "PlaytestSeriesChart holds the bucketed data rendered by PlaytestChartBars or PlaytestChartLine.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 95,
          "members": [
            {
              "name": "Name",
              "anchor": "PlaytestSeriesChart.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unit",
              "anchor": "PlaytestSeriesChart.Unit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Entries",
              "anchor": "PlaytestSeriesChart.Entries",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetMax",
              "anchor": "PlaytestSeriesChart.TargetMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetText",
              "anchor": "PlaytestSeriesChart.TargetText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxVal",
              "anchor": "PlaytestSeriesChart.MaxVal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Decimals",
              "anchor": "PlaytestSeriesChart.Decimals",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestSuggestion",
          "anchor": "PlaytestSuggestion",
          "decl": "type PlaytestSuggestion struct {\n\tID           string `json:\"id\"`\n\tText         string `json:\"text\"`\n\tRequested    bool   `json:\"requested,omitempty\"`\n\tReviewStatus string `json:\"reviewStatus,omitempty\"` // \"\", \"requested\", \"pending_review\", \"applied\"\n}",
          "doc": "PlaytestSuggestion is one actionable tuning suggestion under Agent's read.\n",
          "file": "pkg/editor/playtest_report.go",
          "line": 127,
          "members": [
            {
              "name": "ID",
              "anchor": "PlaytestSuggestion.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "PlaytestSuggestion.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Requested",
              "anchor": "PlaytestSuggestion.Requested",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReviewStatus",
              "anchor": "PlaytestSuggestion.ReviewStatus",
              "kind": "field",
              "doc": "\"\", \"requested\", \"pending_review\", \"applied\""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultPlaytestAgentRead",
              "anchor": "DefaultPlaytestAgentRead",
              "decl": "func DefaultPlaytestAgentRead(rep *playtest.Report) (string, []PlaytestSuggestion)",
              "doc": "DefaultPlaytestAgentRead synthesizes a concise multi-sentence diagnostic read and actionable suggestions from rep.\n",
              "file": "pkg/editor/playtest_report.go",
              "line": 1799
            }
          ],
          "methods": []
        },
        {
          "name": "Plugin",
          "anchor": "Plugin",
          "decl": "type Plugin struct {\n\t// Name identifies the plugin in game.yaml; it is unique among the editor's plugins and has no spaces or control characters.\n\tName string\n\t// Panels are docked around the viewport while the plugin is on.\n\tPanels []Panel\n\t// Inspectors replace the inspector's generic fields of the components they name.\n\tInspectors []Inspector\n\t// Tools are added to the 2D and/or 3D viewport's tool bar according to which hooks they set.\n\tTools []PluginTool\n\t// Gizmos3D register 3D viewport handles and drag editors per component type while the plugin is on.\n\tGizmos3D []ComponentGizmo3D\n\t// Overlays are custom 2D viewport overlays added to the Overlays popover and editormcp's viewport_image tool while the plugin is on.\n\tOverlays []ViewportOverlay\n\t// Commands are added to the editor's command registry, desktop menu bar, command palette, and keyboard shortcuts while the plugin is on.\n\tCommands []PluginCommand\n\t// Catalog optionally supplies localized strings for this plugin (for example English and Simplified Chinese) resolved in the editor's active language via Editor.PluginT, Editor.PluginPlural, and panel/tool/command TitleKey/LabelKey fields.\n\tCatalog *l10n.Catalog\n\t// LocaleYAML optionally supplies versioned l10n YAML string table documents (such as embedded locales/*.yaml files) merged into the plugin's localization catalog at RegisterPlugin time.\n\tLocaleYAML [][]byte\n\t// contains filtered or unexported fields\n}",
          "doc": "Plugin extends the scene editor with panels, component inspectors and viewport tools, as Godot's EditorPlugin does. Go has no portable way to load code at run time, so a plugin is Go code built into the editor binary: the binary registers it with Editor.RegisterPlugin, and a project turns it on by naming it under editor.plugins in its game.yaml (project.Editor). A registered plugin the open project does not name stays off.\n\nA plugin changes the scene only through the editor's methods, such as SetComponentField and MoveObject, or by executing its own Command on Editor.History, so every edit it makes can be undone.\n",
          "file": "pkg/editor/plugin.go",
          "line": 22,
          "members": [
            {
              "name": "Name",
              "anchor": "Plugin.Name",
              "kind": "field",
              "doc": "Name identifies the plugin in game.yaml; it is unique among the editor's plugins and has no spaces or control characters."
            },
            {
              "name": "Panels",
              "anchor": "Plugin.Panels",
              "kind": "field",
              "doc": "Panels are docked around the viewport while the plugin is on."
            },
            {
              "name": "Inspectors",
              "anchor": "Plugin.Inspectors",
              "kind": "field",
              "doc": "Inspectors replace the inspector's generic fields of the components they name."
            },
            {
              "name": "Tools",
              "anchor": "Plugin.Tools",
              "kind": "field",
              "doc": "Tools are added to the 2D and/or 3D viewport's tool bar according to which hooks they set."
            },
            {
              "name": "Gizmos3D",
              "anchor": "Plugin.Gizmos3D",
              "kind": "field",
              "doc": "Gizmos3D register 3D viewport handles and drag editors per component type while the plugin is on."
            },
            {
              "name": "Overlays",
              "anchor": "Plugin.Overlays",
              "kind": "field",
              "doc": "Overlays are custom 2D viewport overlays added to the Overlays popover and editormcp's viewport_image tool while the plugin is on."
            },
            {
              "name": "Commands",
              "anchor": "Plugin.Commands",
              "kind": "field",
              "doc": "Commands are added to the editor's command registry, desktop menu bar, command palette, and keyboard shortcuts while the plugin is on."
            },
            {
              "name": "Catalog",
              "anchor": "Plugin.Catalog",
              "kind": "field",
              "doc": "Catalog optionally supplies localized strings for this plugin (for example English and Simplified Chinese) resolved in the editor's active language via Editor.PluginT, Editor.PluginPlural, and panel/tool/command TitleKey/LabelKey fields."
            },
            {
              "name": "LocaleYAML",
              "anchor": "Plugin.LocaleYAML",
              "kind": "field",
              "doc": "LocaleYAML optionally supplies versioned l10n YAML string table documents (such as embedded locales/*.yaml files) merged into the plugin's localization catalog at RegisterPlugin time."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PluginCommand",
          "anchor": "PluginCommand",
          "decl": "type PluginCommand struct {\n\t// ID identifies the command within its plugin (registered globally as \"plugin.<plugin>.<id>\") and has no spaces or control characters.\n\tID string\n\t// Label is the display name shown in the command palette and menu bar.\n\tLabel string\n\t// LabelKey is an optional localization key in the plugin's catalog used in place of Label when present.\n\tLabelKey string\n\t// Description is optional explanatory text shown in the command palette.\n\tDescription string\n\t// DescriptionKey is an optional localization key in the plugin's catalog used in place of Description when present.\n\tDescriptionKey string\n\t// Category groups the command in the command palette (defaults to the plugin's name when empty).\n\tCategory string\n\t// CategoryKey is an optional localization key in the plugin's catalog used in place of Category when present.\n\tCategoryKey string\n\t// Keywords are extra search terms matched by the command palette.\n\tKeywords []string\n\t// Scope names the keyboard scope for shortcut conflict checks (for example ScopeGlobal, ScopeViewport, ScopeTile, ScopeViewport3D). Empty defaults to ScopeGlobal.\n\tScope string\n\t// Shortcut is an optional NSGo key shortcut (such as \"mod+shift+h\" or \"alt+h\"). Clashing with any built-in, custom, or other registered plugin shortcut is refused at RegisterPlugin time.\n\tShortcut string\n\t// Enabled, when set, reports whether the command can run right now; nil means always enabled.\n\tEnabled func(ed *Editor) bool\n\t// Run executes the command.\n\tRun func(ed *Editor) error\n}",
          "doc": "PluginCommand is a command a plugin adds to the editor's command registry, command palette,\ndesktop menu bar, and optional keyboard shortcut.\n",
          "file": "pkg/editor/plugin.go",
          "line": 145,
          "members": [
            {
              "name": "ID",
              "anchor": "PluginCommand.ID",
              "kind": "field",
              "doc": "ID identifies the command within its plugin (registered globally as \"plugin.<plugin>.<id>\") and has no spaces or control characters."
            },
            {
              "name": "Label",
              "anchor": "PluginCommand.Label",
              "kind": "field",
              "doc": "Label is the display name shown in the command palette and menu bar."
            },
            {
              "name": "LabelKey",
              "anchor": "PluginCommand.LabelKey",
              "kind": "field",
              "doc": "LabelKey is an optional localization key in the plugin's catalog used in place of Label when present."
            },
            {
              "name": "Description",
              "anchor": "PluginCommand.Description",
              "kind": "field",
              "doc": "Description is optional explanatory text shown in the command palette."
            },
            {
              "name": "DescriptionKey",
              "anchor": "PluginCommand.DescriptionKey",
              "kind": "field",
              "doc": "DescriptionKey is an optional localization key in the plugin's catalog used in place of Description when present."
            },
            {
              "name": "Category",
              "anchor": "PluginCommand.Category",
              "kind": "field",
              "doc": "Category groups the command in the command palette (defaults to the plugin's name when empty)."
            },
            {
              "name": "CategoryKey",
              "anchor": "PluginCommand.CategoryKey",
              "kind": "field",
              "doc": "CategoryKey is an optional localization key in the plugin's catalog used in place of Category when present."
            },
            {
              "name": "Keywords",
              "anchor": "PluginCommand.Keywords",
              "kind": "field",
              "doc": "Keywords are extra search terms matched by the command palette."
            },
            {
              "name": "Scope",
              "anchor": "PluginCommand.Scope",
              "kind": "field",
              "doc": "Scope names the keyboard scope for shortcut conflict checks (for example ScopeGlobal, ScopeViewport, ScopeTile, ScopeViewport3D). Empty defaults to ScopeGlobal."
            },
            {
              "name": "Shortcut",
              "anchor": "PluginCommand.Shortcut",
              "kind": "field",
              "doc": "Shortcut is an optional NSGo key shortcut (such as \"mod+shift+h\" or \"alt+h\"). Clashing with any built-in, custom, or other registered plugin shortcut is refused at RegisterPlugin time."
            },
            {
              "name": "Enabled",
              "anchor": "PluginCommand.Enabled",
              "kind": "field",
              "doc": "Enabled, when set, reports whether the command can run right now; nil means always enabled."
            },
            {
              "name": "Run",
              "anchor": "PluginCommand.Run",
              "kind": "field",
              "doc": "Run executes the command."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PluginTool",
          "anchor": "PluginTool",
          "decl": "type PluginTool struct {\n\t// ID identifies the tool within its plugin and has no control characters; its tool bar button has the test ID \"tool-<plugin>-<id>\", which can collide as Panel.ID's can.\n\tID string\n\t// Label is the tool's button text and its name in the status bar.\n\tLabel string\n\t// LabelKey is an optional localization key in the plugin's catalog used in place of Label when present.\n\tLabelKey string\n\t// Press, when set, handles a press at canvas coordinates (x, y), which go through the editor's 2D view (View2D) rather than the scene camera: Editor.CanvasToWorld converts them to world coordinates for a world-space layer, and Editor.CanvasToScreen to the scene's screen coordinates for a screen-space layer. It is not called while playing. At least one of Press, OnDragBegin, Press3D, or OnDragBegin3D must be set.\n\tPress func(ed *Editor, x, y float32)\n\t// Draw, when set, draws over the scene in canvas coordinates while the tool is active and the editor is not playing. Canvas coordinates follow the 2D view: Editor.WorldToCanvas places a world point and Editor.ScreenToCanvas a screen-space layer's point.\n\tDraw func(ed *Editor, d *core.Drawing)\n\t// OnDragBegin, when set, is called when a primary drag begins at canvas coordinates (x, y) while the tool is active in 2D edit mode. Returning true claims the drag so subsequent motion calls OnDragMove and release calls OnDragEnd (or OnDragCancel if cancelled).\n\tOnDragBegin func(ed *Editor, x, y float32) bool\n\t// OnDragMove, when set, is called as a claimed drag moves to canvas coordinates (x, y).\n\tOnDragMove func(ed *Editor, x, y float32)\n\t// OnDragEnd, when set, is called when a claimed drag finishes at canvas coordinates (x, y).\n\tOnDragEnd func(ed *Editor, x, y float32)\n\t// OnDragCancel, when set, is called when a claimed drag is cancelled by Escape, a cancelled gesture, a second finger, Play, Undo/Redo, Save, or changing tools, view mode or scene.\n\tOnDragCancel func(ed *Editor)\n\t// OnHover, when set, is called as the pointer moves across the 2D viewport at canvas coordinates (x, y) while the tool is active in edit mode, and with active=false when the pointer leaves the viewport or the tool becomes inactive.\n\tOnHover func(ed *Editor, x, y float32, active bool)\n\t// Press3D, when set, handles a press in the 3D viewport with the world-space pick ray from the editor's 3D camera. Not called while playing.\n\tPress3D func(ed *Editor, ray math3d.Ray)\n\t// Draw3D, when set, draws over the 3D viewport while the tool is active in 3D edit mode using proj's camera projection and helpers.\n\tDraw3D func(ed *Editor, d *core.Drawing, proj Projection3D)\n\t// OnDragBegin3D, when set, is called when a primary drag begins in the 3D viewport with the pick ray. Returning true claims the drag so subsequent motion calls OnDragMove3D and release calls OnDragEnd3D (or OnDragCancel3D if cancelled), instead of orbiting the camera.\n\tOnDragBegin3D func(ed *Editor, ray math3d.Ray) bool\n\t// OnDragMove3D, when set, is called as a claimed 3D drag moves with the updated pick ray.\n\tOnDragMove3D func(ed *Editor, ray math3d.Ray)\n\t// OnDragEnd3D, when set, is called when a claimed 3D drag finishes with the final pick ray.\n\tOnDragEnd3D func(ed *Editor, ray math3d.Ray)\n\t// OnDragCancel3D, when set, is called when a claimed 3D drag is cancelled by Escape, a cancelled gesture, a second finger, Play, Undo/Redo, Save, or changing tools, view mode or scene.\n\tOnDragCancel3D func(ed *Editor)\n\t// OnHover3D, when set, is called as the pointer moves across the 3D viewport with the pick ray while the tool is active in 3D edit mode, and with active=false when the pointer leaves the viewport or the tool becomes inactive.\n\tOnHover3D func(ed *Editor, ray math3d.Ray, active bool)\n}",
          "doc": "PluginTool is a 2D and/or 3D viewport tool a plugin adds. While it is the active tool (Editor.SetPluginTool),\nin 2D a press calls Press, drags call OnDragBegin/OnDragMove/OnDragEnd/OnDragCancel, pointer motion calls OnHover,\nand Draw draws over the scene in edit mode; in 3D a press calls Press3D with the camera's pick ray, drags call\nOnDragBegin3D/OnDragMove3D/OnDragEnd3D/OnDragCancel3D, pointer motion calls OnHover3D, and Draw3D draws over the\n3D view with the camera's Projection3D.\n",
          "file": "pkg/editor/plugin.go",
          "line": 98,
          "members": [
            {
              "name": "ID",
              "anchor": "PluginTool.ID",
              "kind": "field",
              "doc": "ID identifies the tool within its plugin and has no control characters; its tool bar button has the test ID \"tool-<plugin>-<id>\", which can collide as Panel.ID's can."
            },
            {
              "name": "Label",
              "anchor": "PluginTool.Label",
              "kind": "field",
              "doc": "Label is the tool's button text and its name in the status bar."
            },
            {
              "name": "LabelKey",
              "anchor": "PluginTool.LabelKey",
              "kind": "field",
              "doc": "LabelKey is an optional localization key in the plugin's catalog used in place of Label when present."
            },
            {
              "name": "Press",
              "anchor": "PluginTool.Press",
              "kind": "field",
              "doc": "Press, when set, handles a press at canvas coordinates (x, y), which go through the editor's 2D view (View2D) rather than the scene camera: Editor.CanvasToWorld converts them to world coordinates for a world-space layer, and Editor.CanvasToScreen to the scene's screen coordinates for a screen-space layer. It is not called while playing. At least one of Press, OnDragBegin, Press3D, or OnDragBegin3D must be set."
            },
            {
              "name": "Draw",
              "anchor": "PluginTool.Draw",
              "kind": "field",
              "doc": "Draw, when set, draws over the scene in canvas coordinates while the tool is active and the editor is not playing. Canvas coordinates follow the 2D view: Editor.WorldToCanvas places a world point and Editor.ScreenToCanvas a screen-space layer's point."
            },
            {
              "name": "OnDragBegin",
              "anchor": "PluginTool.OnDragBegin",
              "kind": "field",
              "doc": "OnDragBegin, when set, is called when a primary drag begins at canvas coordinates (x, y) while the tool is active in 2D edit mode. Returning true claims the drag so subsequent motion calls OnDragMove and release calls OnDragEnd (or OnDragCancel if cancelled)."
            },
            {
              "name": "OnDragMove",
              "anchor": "PluginTool.OnDragMove",
              "kind": "field",
              "doc": "OnDragMove, when set, is called as a claimed drag moves to canvas coordinates (x, y)."
            },
            {
              "name": "OnDragEnd",
              "anchor": "PluginTool.OnDragEnd",
              "kind": "field",
              "doc": "OnDragEnd, when set, is called when a claimed drag finishes at canvas coordinates (x, y)."
            },
            {
              "name": "OnDragCancel",
              "anchor": "PluginTool.OnDragCancel",
              "kind": "field",
              "doc": "OnDragCancel, when set, is called when a claimed drag is cancelled by Escape, a cancelled gesture, a second finger, Play, Undo/Redo, Save, or changing tools, view mode or scene."
            },
            {
              "name": "OnHover",
              "anchor": "PluginTool.OnHover",
              "kind": "field",
              "doc": "OnHover, when set, is called as the pointer moves across the 2D viewport at canvas coordinates (x, y) while the tool is active in edit mode, and with active=false when the pointer leaves the viewport or the tool becomes inactive."
            },
            {
              "name": "Press3D",
              "anchor": "PluginTool.Press3D",
              "kind": "field",
              "doc": "Press3D, when set, handles a press in the 3D viewport with the world-space pick ray from the editor's 3D camera. Not called while playing."
            },
            {
              "name": "Draw3D",
              "anchor": "PluginTool.Draw3D",
              "kind": "field",
              "doc": "Draw3D, when set, draws over the 3D viewport while the tool is active in 3D edit mode using proj's camera projection and helpers."
            },
            {
              "name": "OnDragBegin3D",
              "anchor": "PluginTool.OnDragBegin3D",
              "kind": "field",
              "doc": "OnDragBegin3D, when set, is called when a primary drag begins in the 3D viewport with the pick ray. Returning true claims the drag so subsequent motion calls OnDragMove3D and release calls OnDragEnd3D (or OnDragCancel3D if cancelled), instead of orbiting the camera."
            },
            {
              "name": "OnDragMove3D",
              "anchor": "PluginTool.OnDragMove3D",
              "kind": "field",
              "doc": "OnDragMove3D, when set, is called as a claimed 3D drag moves with the updated pick ray."
            },
            {
              "name": "OnDragEnd3D",
              "anchor": "PluginTool.OnDragEnd3D",
              "kind": "field",
              "doc": "OnDragEnd3D, when set, is called when a claimed 3D drag finishes with the final pick ray."
            },
            {
              "name": "OnDragCancel3D",
              "anchor": "PluginTool.OnDragCancel3D",
              "kind": "field",
              "doc": "OnDragCancel3D, when set, is called when a claimed 3D drag is cancelled by Escape, a cancelled gesture, a second finger, Play, Undo/Redo, Save, or changing tools, view mode or scene."
            },
            {
              "name": "OnHover3D",
              "anchor": "PluginTool.OnHover3D",
              "kind": "field",
              "doc": "OnHover3D, when set, is called as the pointer moves across the 3D viewport with the pick ray while the tool is active in 3D edit mode, and with active=false when the pointer leaves the viewport or the tool becomes inactive."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Prefab",
          "anchor": "Prefab",
          "decl": "type Prefab struct {\n\tName       string\n\tSprite     *sceneformat.SpriteRef\n\tPosZ       float32\n\tOriginX    float32\n\tOriginY    float32\n\tRotX       float32\n\tRotY       float32\n\tRotZ       float32\n\tScaleX     *float32\n\tScaleY     *float32\n\tScaleZ     *float32\n\tDepth      float32\n\tMesh       string\n\tFlipX      bool\n\tFlipY      bool\n\tAlpha      *float32\n\tZ          int\n\tComponents map[string]any\n\tProperties map[string]any\n}",
          "doc": "Prefab is a reusable object template that PlaceObject and PlacePrefab can instantiate.\n",
          "file": "pkg/editor/state.go",
          "line": 254,
          "members": [
            {
              "name": "Name",
              "anchor": "Prefab.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sprite",
              "anchor": "Prefab.Sprite",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PosZ",
              "anchor": "Prefab.PosZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OriginX",
              "anchor": "Prefab.OriginX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OriginY",
              "anchor": "Prefab.OriginY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotX",
              "anchor": "Prefab.RotX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotY",
              "anchor": "Prefab.RotY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotZ",
              "anchor": "Prefab.RotZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleX",
              "anchor": "Prefab.ScaleX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleY",
              "anchor": "Prefab.ScaleY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleZ",
              "anchor": "Prefab.ScaleZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "Prefab.Depth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mesh",
              "anchor": "Prefab.Mesh",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FlipX",
              "anchor": "Prefab.FlipX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FlipY",
              "anchor": "Prefab.FlipY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Alpha",
              "anchor": "Prefab.Alpha",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Prefab.Z",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Components",
              "anchor": "Prefab.Components",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "Prefab.Properties",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PrivacyContentKind",
          "anchor": "PrivacyContentKind",
          "decl": "type PrivacyContentKind string",
          "doc": "PrivacyContentKind identifies one of the four outbound content categories controlled\nunder Settings › Usage and privacy (\"WHAT MAY LEAVE THIS COMPUTER\").\n",
          "file": "pkg/editor/agent_settings.go",
          "line": 40,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PrivacySceneAndData",
                  "anchor": "PrivacySceneAndData"
                },
                {
                  "name": "PrivacyViewportImages",
                  "anchor": "PrivacyViewportImages"
                },
                {
                  "name": "PrivacyGoSource",
                  "anchor": "PrivacyGoSource"
                },
                {
                  "name": "PrivacyArtAndAudio",
                  "anchor": "PrivacyArtAndAudio"
                }
              ],
              "decl": "const (\n\t// PrivacySceneAndData covers scene, prefab, data table, tileset, state machine, cutscene, and project YAML/text files.\n\tPrivacySceneAndData PrivacyContentKind = \"scene_and_data\"\n\t// PrivacyViewportImages covers PNG viewport captures and frozen play-mode frame images.\n\tPrivacyViewportImages PrivacyContentKind = \"viewport_images\"\n\t// PrivacyGoSource covers Go source code and Go module/workspace files (.go, go.mod, go.sum, go.work).\n\tPrivacyGoSource PrivacyContentKind = \"go_source\"\n\t// PrivacyArtAndAudio covers images, audio files, 3D models, fonts, atlases, materials, particles, rigs, and import sidecars.\n\tPrivacyArtAndAudio PrivacyContentKind = \"art_and_audio\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_settings.go",
              "line": 42
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ClassifyProjectFilePrivacy",
              "anchor": "ClassifyProjectFilePrivacy",
              "decl": "func ClassifyProjectFilePrivacy(relPath string) PrivacyContentKind",
              "doc": "ClassifyProjectFilePrivacy classifies a project-relative file path into one of the four outbound\nprivacy content categories controlled under Settings › Usage and privacy.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 116
            }
          ],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "PrivacyContentKind.DisplayName",
              "recv": "PrivacyContentKind",
              "decl": "func (k PrivacyContentKind) DisplayName() string",
              "doc": "DisplayName returns the human-readable Settings label for k.\n",
              "file": "pkg/editor/agent_settings.go",
              "line": 54
            }
          ]
        },
        {
          "name": "ProblemDiffLine",
          "anchor": "ProblemDiffLine",
          "decl": "type ProblemDiffLine struct {\n\tKind string `json:\"kind\"` // \"removed\", \"added\", or \"context\"\n\tLine int    `json:\"line,omitempty\"`\n\tText string `json:\"text\"`\n}",
          "doc": "ProblemDiffLine is one line of the before/after YAML diff shown on a proposed fix card.\n",
          "file": "pkg/editor/problems_fix.go",
          "line": 66,
          "members": [
            {
              "name": "Kind",
              "anchor": "ProblemDiffLine.Kind",
              "kind": "field",
              "doc": "\"removed\", \"added\", or \"context\""
            },
            {
              "name": "Line",
              "anchor": "ProblemDiffLine.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "ProblemDiffLine.Text",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProblemFixEdit",
          "anchor": "ProblemFixEdit",
          "decl": "type ProblemFixEdit struct {\n\t// Kind selects the edit operation (update_connection, remove_connection,\n\t// set_sprite, set_material, set_object_id, set_component_field,\n\t// remove_component, or replace_line).\n\tKind string `json:\"kind\"`\n\t// File is the slash-separated project path to edit; defaults to Problem.File.\n\tFile string `json:\"file,omitempty\"`\n\n\t// Connection edit fields (update_connection, remove_connection).\n\tConnectionIndex int            `json:\"connectionIndex,omitempty\"`\n\tFrom            string         `json:\"from,omitempty\"`\n\tEvent           string         `json:\"event,omitempty\"`\n\tTo              string         `json:\"to,omitempty\"`\n\tHandler         string         `json:\"handler,omitempty\"`\n\tOnce            *bool          `json:\"once,omitempty\"`\n\tArgs            map[string]any `json:\"args,omitempty\"`\n\n\t// Object/component edit fields.\n\tObjectID  string `json:\"objectId,omitempty\"`\n\tNewID     string `json:\"newId,omitempty\"`\n\tAtlas     string `json:\"atlas,omitempty\"`\n\tFrame     string `json:\"frame,omitempty\"`\n\tComponent string `json:\"component,omitempty\"`\n\tField     string `json:\"field,omitempty\"`\n\tValue     any    `json:\"value,omitempty\"`\n\n\t// Line-level YAML replacement (replace_line), validated against sceneformat.\n\tLine        int    `json:\"line,omitempty\"`\n\tOldText     string `json:\"oldText,omitempty\"`\n\tReplacement string `json:\"replacement,omitempty\"`\n}",
          "doc": "ProblemFixEdit describes one structured edit inside an agent's proposed fix\nfor a problem. Proposals are validated on a cloned document without mutating\nthe editor or disk; only ApplyProposedFix applies them as one undoable step.\n",
          "file": "pkg/editor/problems_fix.go",
          "line": 33,
          "members": [
            {
              "name": "Kind",
              "anchor": "ProblemFixEdit.Kind",
              "kind": "field",
              "doc": "Kind selects the edit operation (update_connection, remove_connection,\nset_sprite, set_material, set_object_id, set_component_field,\nremove_component, or replace_line)."
            },
            {
              "name": "File",
              "anchor": "ProblemFixEdit.File",
              "kind": "field",
              "doc": "File is the slash-separated project path to edit; defaults to Problem.File."
            },
            {
              "name": "ConnectionIndex",
              "anchor": "ProblemFixEdit.ConnectionIndex",
              "kind": "field",
              "doc": "Connection edit fields (update_connection, remove_connection)."
            },
            {
              "name": "From",
              "anchor": "ProblemFixEdit.From",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Event",
              "anchor": "ProblemFixEdit.Event",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "To",
              "anchor": "ProblemFixEdit.To",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Handler",
              "anchor": "ProblemFixEdit.Handler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Once",
              "anchor": "ProblemFixEdit.Once",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Args",
              "anchor": "ProblemFixEdit.Args",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ProblemFixEdit.ObjectID",
              "kind": "field",
              "doc": "Object/component edit fields."
            },
            {
              "name": "NewID",
              "anchor": "ProblemFixEdit.NewID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Atlas",
              "anchor": "ProblemFixEdit.Atlas",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frame",
              "anchor": "ProblemFixEdit.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "ProblemFixEdit.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "ProblemFixEdit.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "ProblemFixEdit.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "ProblemFixEdit.Line",
              "kind": "field",
              "doc": "Line-level YAML replacement (replace_line), validated against sceneformat."
            },
            {
              "name": "OldText",
              "anchor": "ProblemFixEdit.OldText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Replacement",
              "anchor": "ProblemFixEdit.Replacement",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProblemQuestionRecord",
          "anchor": "ProblemQuestionRecord",
          "decl": "type ProblemQuestionRecord struct {\n\tProblem  assetcheck.Problem\n\tQuestion string\n\tObjectID string\n}",
          "doc": "ProblemQuestionRecord stores a submitted \"Ask about this problem…\" question\nshown in the Agent problem panel.\n",
          "file": "pkg/editor/problems_fix.go",
          "line": 115,
          "members": [
            {
              "name": "Problem",
              "anchor": "ProblemQuestionRecord.Problem",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Question",
              "anchor": "ProblemQuestionRecord.Question",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ProblemQuestionRecord.ObjectID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProblemQuestionRequest",
          "anchor": "ProblemQuestionRequest",
          "decl": "type ProblemQuestionRequest struct {\n\tProblem  assetcheck.Problem\n\tQuestion string\n\tObjectID string\n\tFix      *ProposedProblemFix\n}",
          "doc": "ProblemQuestionRequest is delivered to Editor.OnAskAboutProblem when the\nperson submits a question from \"Ask about this problem…\" with the problem attached.\n",
          "file": "pkg/editor/problems_fix.go",
          "line": 106,
          "members": [
            {
              "name": "Problem",
              "anchor": "ProblemQuestionRequest.Problem",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Question",
              "anchor": "ProblemQuestionRequest.Question",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ProblemQuestionRequest.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fix",
              "anchor": "ProblemQuestionRequest.Fix",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProfilerClient",
          "anchor": "ProfilerClient",
          "decl": "type ProfilerClient interface {\n\tCallTool(ctx context.Context, name string, args json.RawMessage) (json.RawMessage, error)\n\tClose() error\n}",
          "doc": "ProfilerClient invokes a running game's MCP performance tools (game_perf_readout, game_perf_zones, game_perf_reset).\nImplementations must be safe to Close more than once.\n",
          "file": "pkg/editor/profiler.go",
          "line": 78,
          "members": [
            {
              "name": "CallTool",
              "anchor": "ProfilerClient.CallTool",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Close",
              "anchor": "ProfilerClient.Close",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ConnectProfilerCommand",
              "anchor": "ConnectProfilerCommand",
              "decl": "func ConnectProfilerCommand(ctx context.Context, dir string, args ...string) (ProfilerClient, error)",
              "doc": "ConnectProfilerCommand connects to the running game in dir by launching `go tool nsgo mcp` (or custom args when provided) over an MCP stdio CommandTransport.\n",
              "file": "pkg/editor/profiler.go",
              "line": 169
            },
            {
              "name": "ConnectProfilerMCP",
              "anchor": "ConnectProfilerMCP",
              "decl": "func ConnectProfilerMCP(ctx context.Context, transport sdkmcp.Transport) (ProfilerClient, error)",
              "doc": "ConnectProfilerMCP connects to a running game's MCP server over transport using the official MCP Go SDK.\nUse it with &sdkmcp.CommandTransport{Command: ...}, &sdkmcp.IOTransport{...}, or sdkmcp.NewInMemoryTransports().\n",
              "file": "pkg/editor/profiler.go",
              "line": 150
            },
            {
              "name": "ConnectProfilerScope",
              "anchor": "ConnectProfilerScope",
              "decl": "func ConnectProfilerScope(cx *core.Scope) ProfilerClient",
              "doc": "ConnectProfilerScope returns a ProfilerClient that calls game_perf_* tools registered on cx via github.com/nsgo-dev/nsgo/automation.\nCall PollProfiler on cx's graph goroutine when invoking manually; background polling dispatches automatically onto cx.\n",
              "file": "pkg/editor/profiler.go",
              "line": 248
            },
            {
              "name": "NewBridgeProfilerClient",
              "anchor": "NewBridgeProfilerClient",
              "decl": "func NewBridgeProfilerClient(b *mcp.Bridge) ProfilerClient",
              "doc": "NewBridgeProfilerClient returns a ProfilerClient backed directly by b's tool handlers without registering tools on a core.Scope.\n",
              "file": "pkg/editor/profiler.go",
              "line": 278
            }
          ],
          "methods": []
        },
        {
          "name": "ProfilerFrame",
          "anchor": "ProfilerFrame",
          "decl": "type ProfilerFrame struct {\n\tTimestamp          time.Time\n\tFrameMs            float64\n\tUpdateMs           float64\n\tDrawMs             float64\n\tFPS                float64\n\tAllocsPerFrame     float64\n\tAllocBytesPerFrame float64\n\tHeapBytes          uint64\n\tGCCount            uint64\n\tGCLastPauseMs      float64\n\tGCMaxPauseMs       float64\n\tGCRecentHitches    int\n\tGCHitch            bool\n\tAssetMemoryBytes   int64\n\tAssetMemoryBudget  int64\n\tAssetOverBudget    bool\n\tCause              string\n\tZones              []mcp.PerfZoneInfo\n}",
          "doc": "ProfilerFrame is one chronological sample recorded by the editor's profiler from game_perf_readout and game_perf_zones.\n",
          "file": "pkg/editor/profiler.go",
          "line": 84,
          "members": [
            {
              "name": "Timestamp",
              "anchor": "ProfilerFrame.Timestamp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameMs",
              "anchor": "ProfilerFrame.FrameMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UpdateMs",
              "anchor": "ProfilerFrame.UpdateMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawMs",
              "anchor": "ProfilerFrame.DrawMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FPS",
              "anchor": "ProfilerFrame.FPS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AllocsPerFrame",
              "anchor": "ProfilerFrame.AllocsPerFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AllocBytesPerFrame",
              "anchor": "ProfilerFrame.AllocBytesPerFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeapBytes",
              "anchor": "ProfilerFrame.HeapBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCCount",
              "anchor": "ProfilerFrame.GCCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCLastPauseMs",
              "anchor": "ProfilerFrame.GCLastPauseMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCMaxPauseMs",
              "anchor": "ProfilerFrame.GCMaxPauseMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCRecentHitches",
              "anchor": "ProfilerFrame.GCRecentHitches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCHitch",
              "anchor": "ProfilerFrame.GCHitch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AssetMemoryBytes",
              "anchor": "ProfilerFrame.AssetMemoryBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AssetMemoryBudget",
              "anchor": "ProfilerFrame.AssetMemoryBudget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AssetOverBudget",
              "anchor": "ProfilerFrame.AssetOverBudget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cause",
              "anchor": "ProfilerFrame.Cause",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zones",
              "anchor": "ProfilerFrame.Zones",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProfilerMetric",
          "anchor": "ProfilerMetric",
          "decl": "type ProfilerMetric int",
          "doc": "ProfilerMetric selects which time-series chart is shown in the full Profiler panel.\n",
          "file": "pkg/editor/profiler.go",
          "line": 47,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ProfilerMetricFrame",
                  "anchor": "ProfilerMetricFrame"
                },
                {
                  "name": "ProfilerMetricFPS",
                  "anchor": "ProfilerMetricFPS"
                },
                {
                  "name": "ProfilerMetricAllocsGC",
                  "anchor": "ProfilerMetricAllocsGC"
                },
                {
                  "name": "ProfilerMetricMemory",
                  "anchor": "ProfilerMetricMemory"
                }
              ],
              "decl": "const (\n\t// ProfilerMetricFrame charts total frame, update, and draw times in milliseconds.\n\tProfilerMetricFrame ProfilerMetric = iota\n\t// ProfilerMetricFPS charts frames per second over time.\n\tProfilerMetricFPS\n\t// ProfilerMetricAllocsGC charts allocations per frame, live heap bytes, and GC hitches over time.\n\tProfilerMetricAllocsGC\n\t// ProfilerMetricMemory charts tracked asset memory against budgets over time.\n\tProfilerMetricMemory\n)",
              "doc": "",
              "file": "pkg/editor/profiler.go",
              "line": 49
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ProfilerMetric.String",
              "recv": "ProfilerMetric",
              "decl": "func (m ProfilerMetric) String() string",
              "doc": "String returns the human-readable label for m.\n",
              "file": "pkg/editor/profiler.go",
              "line": 61
            }
          ]
        },
        {
          "name": "ProfilerSnapshot",
          "anchor": "ProfilerSnapshot",
          "decl": "type ProfilerSnapshot struct {\n\tConnected      bool\n\tInEditorPlay   bool\n\tSourceLabel    string\n\tOpen           bool\n\tMetric         ProfilerMetric\n\tHasReadout     bool\n\tReadout        mcp.PerfReadoutResult\n\tZones          []mcp.PerfZoneInfo\n\tRecording      bool\n\tRecordedFrames int\n\tFrames         []ProfilerFrame\n\tSpike          *ProfilerSpike\n\tLastError      string\n}",
          "doc": "ProfilerSnapshot is an immutable snapshot of the editor's profiler state for UI rendering and tests.\n",
          "file": "pkg/editor/profiler.go",
          "line": 122,
          "members": [
            {
              "name": "Connected",
              "anchor": "ProfilerSnapshot.Connected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InEditorPlay",
              "anchor": "ProfilerSnapshot.InEditorPlay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SourceLabel",
              "anchor": "ProfilerSnapshot.SourceLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Open",
              "anchor": "ProfilerSnapshot.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Metric",
              "anchor": "ProfilerSnapshot.Metric",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasReadout",
              "anchor": "ProfilerSnapshot.HasReadout",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Readout",
              "anchor": "ProfilerSnapshot.Readout",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zones",
              "anchor": "ProfilerSnapshot.Zones",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Recording",
              "anchor": "ProfilerSnapshot.Recording",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RecordedFrames",
              "anchor": "ProfilerSnapshot.RecordedFrames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "ProfilerSnapshot.Frames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spike",
              "anchor": "ProfilerSnapshot.Spike",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastError",
              "anchor": "ProfilerSnapshot.LastError",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProfilerSpike",
          "anchor": "ProfilerSpike",
          "decl": "type ProfilerSpike struct {\n\t// FrameIndex is the index into ProfilerSnapshot.Frames.\n\tFrameIndex int\n\t// BarIndex is the index within the visible strip bars (0 .. profilerStripBars-1).\n\tBarIndex int\n\t// PositionFrac is the horizontal fraction [0, 1] of the spike bar across the strip chart.\n\tPositionFrac float64\n\t// FrameMs is the spike frame duration in milliseconds.\n\tFrameMs float64\n\t// Cause is the game-supplied spike explanation or \"GC pause\" when known, or empty.\n\tCause string\n\t// Label is the formatted callout pill text, such as \"18.2 ms · first use of torch_glow compiled its shader\".\n\tLabel string\n}",
          "doc": "ProfilerSpike describes the most prominent frame-time spike in the 60 s strip window.\n",
          "file": "pkg/editor/profiler.go",
          "line": 106,
          "members": [
            {
              "name": "FrameIndex",
              "anchor": "ProfilerSpike.FrameIndex",
              "kind": "field",
              "doc": "FrameIndex is the index into ProfilerSnapshot.Frames."
            },
            {
              "name": "BarIndex",
              "anchor": "ProfilerSpike.BarIndex",
              "kind": "field",
              "doc": "BarIndex is the index within the visible strip bars (0 .. profilerStripBars-1)."
            },
            {
              "name": "PositionFrac",
              "anchor": "ProfilerSpike.PositionFrac",
              "kind": "field",
              "doc": "PositionFrac is the horizontal fraction [0, 1] of the spike bar across the strip chart."
            },
            {
              "name": "FrameMs",
              "anchor": "ProfilerSpike.FrameMs",
              "kind": "field",
              "doc": "FrameMs is the spike frame duration in milliseconds."
            },
            {
              "name": "Cause",
              "anchor": "ProfilerSpike.Cause",
              "kind": "field",
              "doc": "Cause is the game-supplied spike explanation or \"GC pause\" when known, or empty."
            },
            {
              "name": "Label",
              "anchor": "ProfilerSpike.Label",
              "kind": "field",
              "doc": "Label is the formatted callout pill text, such as \"18.2 ms · first use of torch_glow compiled its shader\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProjectFile",
          "anchor": "ProjectFile",
          "decl": "type ProjectFile struct {\n\t// Path is the slash-separated path from the project root.\n\tPath string\n\t// Dir reports whether Path is a directory.\n\tDir bool\n}",
          "doc": "ProjectFile is a file or directory of the open project, as the file browser lists it.\n",
          "file": "pkg/editor/refs.go",
          "line": 259,
          "members": [
            {
              "name": "Path",
              "anchor": "ProjectFile.Path",
              "kind": "field",
              "doc": "Path is the slash-separated path from the project root."
            },
            {
              "name": "Dir",
              "anchor": "ProjectFile.Dir",
              "kind": "field",
              "doc": "Dir reports whether Path is a directory."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProjectSettingsSection",
          "anchor": "ProjectSettingsSection",
          "decl": "type ProjectSettingsSection string",
          "doc": "ProjectSettingsSection identifies a category tab in the Project Settings panel.\n",
          "file": "pkg/editor/project_settings_panel.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ProjectSectionGeneral",
                  "anchor": "ProjectSectionGeneral"
                },
                {
                  "name": "ProjectSectionWindow",
                  "anchor": "ProjectSectionWindow"
                },
                {
                  "name": "ProjectSectionDisplay",
                  "anchor": "ProjectSectionDisplay"
                },
                {
                  "name": "ProjectSectionPhysics",
                  "anchor": "ProjectSectionPhysics"
                },
                {
                  "name": "ProjectSectionAutoload",
                  "anchor": "ProjectSectionAutoload"
                },
                {
                  "name": "ProjectSectionPlugins",
                  "anchor": "ProjectSectionPlugins"
                }
              ],
              "decl": "const (\n\tProjectSectionGeneral  ProjectSettingsSection = \"general\"\n\tProjectSectionWindow   ProjectSettingsSection = \"window\"\n\tProjectSectionDisplay  ProjectSettingsSection = \"display\"\n\tProjectSectionPhysics  ProjectSettingsSection = \"physics\"\n\tProjectSectionAutoload ProjectSettingsSection = \"autoload\"\n\tProjectSectionPlugins  ProjectSettingsSection = \"plugins\"\n)",
              "doc": "",
              "file": "pkg/editor/project_settings_panel.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProjectTemplate",
          "anchor": "ProjectTemplate",
          "decl": "type ProjectTemplate struct {\n\t// Name is the template identifier passed to `game new -template` (such as \"starter\").\n\tName string\n\t// Title is the human-readable card title; derived from Name when empty.\n\tTitle string\n\t// Summary is the one-line description shown on the template card.\n\tSummary string\n\t// Dimension classifies the template for Start Screen filter chips: \"2d\" or \"3d\" (inferred when empty).\n\tDimension string\n\t// Default marks the template selected initially.\n\tDefault bool\n}",
          "doc": "ProjectTemplate describes one project template offered on the editor's Start Screen,\npopulated dynamically from `game new`'s template registry.\n",
          "file": "pkg/editor/start_screen.go",
          "line": 23,
          "members": [
            {
              "name": "Name",
              "anchor": "ProjectTemplate.Name",
              "kind": "field",
              "doc": "Name is the template identifier passed to `game new -template` (such as \"starter\")."
            },
            {
              "name": "Title",
              "anchor": "ProjectTemplate.Title",
              "kind": "field",
              "doc": "Title is the human-readable card title; derived from Name when empty."
            },
            {
              "name": "Summary",
              "anchor": "ProjectTemplate.Summary",
              "kind": "field",
              "doc": "Summary is the one-line description shown on the template card."
            },
            {
              "name": "Dimension",
              "anchor": "ProjectTemplate.Dimension",
              "kind": "field",
              "doc": "Dimension classifies the template for Start Screen filter chips: \"2d\" or \"3d\" (inferred when empty)."
            },
            {
              "name": "Default",
              "anchor": "ProjectTemplate.Default",
              "kind": "field",
              "doc": "Default marks the template selected initially."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayTitle",
              "anchor": "ProjectTemplate.DisplayTitle",
              "recv": "ProjectTemplate",
              "decl": "func (t ProjectTemplate) DisplayTitle() string",
              "doc": "DisplayTitle returns Title when set, or a readable title derived from Name.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 37
            },
            {
              "name": "EffectiveDimension",
              "anchor": "ProjectTemplate.EffectiveDimension",
              "recv": "ProjectTemplate",
              "decl": "func (t ProjectTemplate) EffectiveDimension() string",
              "doc": "EffectiveDimension returns \"3d\" or \"2d\" for Start Screen template filtering.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 61
            }
          ]
        },
        {
          "name": "Projection3D",
          "anchor": "Projection3D",
          "decl": "type Projection3D struct {\n\tCamera OrbitCamera3D\n\tWidth  float32\n\tHeight float32\n\t// ViewProj is the right-handed Y-up [0, 1] NDC view-projection matrix for Camera at Width x Height.\n\tViewProj math3d.Mat4\n\t// contains filtered or unexported fields\n}",
          "doc": "Projection3D carries the 3D viewport's camera projection and world-to-screen drawing helpers\nfor a single frame of size Width x Height in viewport points.\n",
          "file": "pkg/editor/gizmo3d.go",
          "line": 22,
          "members": [
            {
              "name": "Camera",
              "anchor": "Projection3D.Camera",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Projection3D.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Projection3D.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewProj",
              "anchor": "Projection3D.ViewProj",
              "kind": "field",
              "doc": "ViewProj is the right-handed Y-up [0, 1] NDC view-projection matrix for Camera at Width x Height."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DrawBox",
              "anchor": "Projection3D.DrawBox",
              "recv": "Projection3D",
              "decl": "func (p Projection3D) DrawBox(d *core.Drawing, center, size math3d.Vec3, mat math3d.Mat4, color core.Color, width float32)",
              "doc": "DrawBox draws a wireframe 3D box centered at center with full extents size, transformed by mat\n(use math3d.Mat4Identity() when center and size are already in world space).\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 175
            },
            {
              "name": "DrawLine",
              "anchor": "Projection3D.DrawLine",
              "recv": "Projection3D",
              "decl": "func (p Projection3D) DrawLine(d *core.Drawing, a, b math3d.Vec3, color core.Color, width float32)",
              "doc": "DrawLine draws a near-clipped world-space 3D segment from a to b.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 159
            },
            {
              "name": "DrawPoint",
              "anchor": "Projection3D.DrawPoint",
              "recv": "Projection3D",
              "decl": "func (p Projection3D) DrawPoint(d *core.Drawing, world math3d.Vec3, radius float32, fill core.Color)",
              "doc": "DrawPoint draws a filled screen-space circular marker at the projection of world.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 144
            },
            {
              "name": "GizmoLength",
              "anchor": "Projection3D.GizmoLength",
              "recv": "Projection3D",
              "decl": "func (p Projection3D) GizmoLength(world math3d.Vec3) float32",
              "doc": "GizmoLength returns a camera-distance-scaled world length suitable for 3D handles placed at world.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 118
            },
            {
              "name": "Project",
              "anchor": "Projection3D.Project",
              "recv": "Projection3D",
              "decl": "func (p Projection3D) Project(world math3d.Vec3) (sx, sy, depth float32, visible bool)",
              "doc": "Project transforms a world-space 3D point into viewport pixel coordinates (sx, sy) and camera depth.\nvisible is true when the point lies strictly between Near and Far in front of the camera.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 84
            },
            {
              "name": "ProjectSegment",
              "anchor": "Projection3D.ProjectSegment",
              "recv": "Projection3D",
              "decl": "func (p Projection3D) ProjectSegment(a, b math3d.Vec3) (x0, y0, x1, y1 float32, visible bool)",
              "doc": "ProjectSegment clips a world-space 3D segment against the camera's near plane and projects both endpoints to viewport pixel coordinates.\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 95
            },
            {
              "name": "ScreenRay",
              "anchor": "Projection3D.ScreenRay",
              "recv": "Projection3D",
              "decl": "func (p Projection3D) ScreenRay(sx, sy float32) math3d.Ray",
              "doc": "ScreenRay returns the world-space pick ray passing through viewport pixel (sx, sy).\n",
              "file": "pkg/editor/gizmo3d.go",
              "line": 106
            }
          ]
        },
        {
          "name": "ProposedDeletion",
          "anchor": "ProposedDeletion",
          "decl": "type ProposedDeletion struct {\n\tID             string                 `json:\"id\"`\n\tPath           string                 `json:\"path\"`\n\tAbsPath        string                 `json:\"-\"`\n\tLineCount      int                    `json:\"lineCount\"`\n\tSceneUsages    []string               `json:\"sceneUsages,omitempty\"`\n\tUsedByAnyScene bool                   `json:\"usedByAnyScene\"`\n\tUsageSummary   string                 `json:\"usageSummary\"`\n\tDetail         string                 `json:\"detail\"`\n\tPreviewLines   []string               `json:\"previewLines,omitempty\"`\n\tMoreLines      int                    `json:\"moreLines,omitempty\"`\n\tReason         string                 `json:\"reason,omitempty\"`\n\tStatus         ProposedDeletionStatus `json:\"status\"`\n}",
          "doc": "ProposedDeletion describes one file deletion proposed by the agent (e.g. via game_delete_file).\nKeep all never applies a pending deletion; it requires explicit per-file confirmation, and ⌘Z restores the file from its checkpoint.\n",
          "file": "pkg/editor/agent_review.go",
          "line": 63,
          "members": [
            {
              "name": "ID",
              "anchor": "ProposedDeletion.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "ProposedDeletion.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AbsPath",
              "anchor": "ProposedDeletion.AbsPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LineCount",
              "anchor": "ProposedDeletion.LineCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneUsages",
              "anchor": "ProposedDeletion.SceneUsages",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UsedByAnyScene",
              "anchor": "ProposedDeletion.UsedByAnyScene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UsageSummary",
              "anchor": "ProposedDeletion.UsageSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "ProposedDeletion.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreviewLines",
              "anchor": "ProposedDeletion.PreviewLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MoreLines",
              "anchor": "ProposedDeletion.MoreLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "ProposedDeletion.Reason",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "ProposedDeletion.Status",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProposedDeletionStatus",
          "anchor": "ProposedDeletionStatus",
          "decl": "type ProposedDeletionStatus string",
          "doc": "ProposedDeletionStatus tracks the person's explicit decision on a proposed file deletion.\n",
          "file": "pkg/editor/agent_review.go",
          "line": 48,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DeletionPending",
                  "anchor": "DeletionPending"
                },
                {
                  "name": "DeletionConfirmed",
                  "anchor": "DeletionConfirmed"
                },
                {
                  "name": "DeletionKept",
                  "anchor": "DeletionKept"
                },
                {
                  "name": "DeletionApplied",
                  "anchor": "DeletionApplied"
                }
              ],
              "decl": "const (\n\t// DeletionPending means the deletion has not been confirmed yet; Keep all NEVER applies it.\n\tDeletionPending ProposedDeletionStatus = \"pending\"\n\t// DeletionConfirmed means the person explicitly clicked \"Delete this file\" while other review items remain.\n\tDeletionConfirmed ProposedDeletionStatus = \"confirmed\"\n\t// DeletionKept means the person explicitly clicked \"Keep the file\".\n\tDeletionKept ProposedDeletionStatus = \"kept\"\n\t// DeletionApplied means the file was deleted from disk via a reversible checkpoint command (⌘Z restores it).\n\tDeletionApplied ProposedDeletionStatus = \"applied\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_review.go",
              "line": 50
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProposedProblemFix",
          "anchor": "ProposedProblemFix",
          "decl": "type ProposedProblemFix struct {\n\tID          string             `json:\"id\"`\n\tProblem     assetcheck.Problem `json:\"problem\"`\n\tExplanation string             `json:\"explanation\"`\n\tEdit        ProblemFixEdit     `json:\"edit\"`\n\tDiff        []ProblemDiffLine  `json:\"diff\"`\n\tObjectID    string             `json:\"objectId,omitempty\"`\n\tSummary     string             `json:\"summary,omitempty\"`\n\t// contains filtered or unexported fields\n}",
          "doc": "ProposedProblemFix is a fix proposed by an agent (for example via MCP\nproblem_propose_fix) for a live problem. Creating a proposal never mutates\nany document or file; only ApplyProposedFix applies it as one undoable step.\n",
          "file": "pkg/editor/problems_fix.go",
          "line": 75,
          "members": [
            {
              "name": "ID",
              "anchor": "ProposedProblemFix.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Problem",
              "anchor": "ProposedProblemFix.Problem",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Explanation",
              "anchor": "ProposedProblemFix.Explanation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Edit",
              "anchor": "ProposedProblemFix.Edit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Diff",
              "anchor": "ProposedProblemFix.Diff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ProposedProblemFix.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "ProposedProblemFix.Summary",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PublishDestination",
          "anchor": "PublishDestination",
          "decl": "type PublishDestination string",
          "doc": "PublishDestination identifies a supported store upload destination on the Build and Release screen.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 103,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PublishDestItchIO",
                  "anchor": "PublishDestItchIO"
                },
                {
                  "name": "PublishDestGooglePlay",
                  "anchor": "PublishDestGooglePlay"
                },
                {
                  "name": "PublishDestTestFlight",
                  "anchor": "PublishDestTestFlight"
                }
              ],
              "decl": "const (\n\t// PublishDestItchIO publishes desktop or web packages to itch.io.\n\tPublishDestItchIO PublishDestination = \"itch.io\"\n\t// PublishDestGooglePlay publishes Android App Bundles (.aab) to Google Play internal testing.\n\tPublishDestGooglePlay PublishDestination = \"google_play_internal\"\n\t// PublishDestTestFlight publishes iOS builds (.ipa) to Apple TestFlight.\n\tPublishDestTestFlight PublishDestination = \"testflight\"\n)",
              "doc": "",
              "file": "pkg/editor/build_release_publish.go",
              "line": 105
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "AllPublishDestinations",
              "anchor": "AllPublishDestinations",
              "decl": "func AllPublishDestinations() []PublishDestination",
              "doc": "AllPublishDestinations returns every supported store upload destination in display order.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 115
            },
            {
              "name": "DefaultPublishDestinationForPlatform",
              "anchor": "DefaultPublishDestinationForPlatform",
              "decl": "func DefaultPublishDestinationForPlatform(platform string) (PublishDestination, string)",
              "doc": "DefaultPublishDestinationForPlatform returns the default store destination and track label for platform.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 148
            }
          ],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "PublishDestination.DisplayName",
              "recv": "PublishDestination",
              "decl": "func (d PublishDestination) DisplayName() string",
              "doc": "DisplayName returns the user-facing store destination label shown in Review uploads.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 134
            },
            {
              "name": "Valid",
              "anchor": "PublishDestination.Valid",
              "recv": "PublishDestination",
              "decl": "func (d PublishDestination) Valid() bool",
              "doc": "Valid reports whether d is a recognized PublishDestination.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 124
            }
          ]
        },
        {
          "name": "RecentProject",
          "anchor": "RecentProject",
          "decl": "type RecentProject struct {\n\t// Name is the project's display name (from game.yaml or its folder name).\n\tName string `yaml:\"name\"`\n\t// Path is the absolute path to the project directory.\n\tPath string `yaml:\"path\"`\n\t// LastOpened is the RFC3339 UTC timestamp when the project was last opened.\n\tLastOpened string `yaml:\"lastOpened\"`\n}",
          "doc": "RecentProject records one project opened in the editor.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 37,
          "members": [
            {
              "name": "Name",
              "anchor": "RecentProject.Name",
              "kind": "field",
              "doc": "Name is the project's display name (from game.yaml or its folder name)."
            },
            {
              "name": "Path",
              "anchor": "RecentProject.Path",
              "kind": "field",
              "doc": "Path is the absolute path to the project directory."
            },
            {
              "name": "LastOpened",
              "anchor": "RecentProject.LastOpened",
              "kind": "field",
              "doc": "LastOpened is the RFC3339 UTC timestamp when the project was last opened."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RecentProjectEntry",
          "anchor": "RecentProjectEntry",
          "decl": "type RecentProjectEntry struct {\n\tRecentProject\n\t// Missing reports whether the project directory or its game.yaml no longer exists on disk.\n\tMissing bool\n}",
          "doc": "RecentProjectEntry pairs a persisted RecentProject with whether its project folder is missing on disk.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 47,
          "members": [
            {
              "name": "RecentProject",
              "anchor": "RecentProjectEntry.RecentProject",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Missing",
              "anchor": "RecentProjectEntry.Missing",
              "kind": "field",
              "doc": "Missing reports whether the project directory or its game.yaml no longer exists on disk."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RecentProjectsFile",
          "anchor": "RecentProjectsFile",
          "decl": "type RecentProjectsFile struct {\n\t// Version is the schema version; it must equal RecentProjectsVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Projects lists recently opened projects, most recently opened first.\n\tProjects []RecentProject `yaml:\"projects,omitempty\"`\n}",
          "doc": "RecentProjectsFile is the strict versioned YAML document storing projects recently opened by a user outside any project directory.\n",
          "file": "pkg/editor/recent_projects.go",
          "line": 29,
          "members": [
            {
              "name": "Version",
              "anchor": "RecentProjectsFile.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal RecentProjectsVersion (1)."
            },
            {
              "name": "Projects",
              "anchor": "RecentProjectsFile.Projects",
              "kind": "field",
              "doc": "Projects lists recently opened projects, most recently opened first."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadRecentProjectsFile",
              "anchor": "LoadRecentProjectsFile",
              "decl": "func LoadRecentProjectsFile(path string) (*RecentProjectsFile, error)",
              "doc": "LoadRecentProjectsFile reads and parses the recent projects YAML file at path.\nWhen the file does not exist, it returns an empty version 1 RecentProjectsFile and a nil error.\n",
              "file": "pkg/editor/recent_projects.go",
              "line": 196
            },
            {
              "name": "ParseRecentProjects",
              "anchor": "ParseRecentProjects",
              "decl": "func ParseRecentProjects(data []byte) (*RecentProjectsFile, error)",
              "doc": "ParseRecentProjects strictly decodes and validates a versioned recent-projects YAML document,\nrefusing unknown fields, duplicate keys, trailing YAML documents, and unsupported versions.\n",
              "file": "pkg/editor/recent_projects.go",
              "line": 64
            }
          ],
          "methods": []
        },
        {
          "name": "RectHandle",
          "anchor": "RectHandle",
          "decl": "type RectHandle int",
          "doc": "RectHandle names an interactive handle on a world-space axis-aligned rectangle in the\n2D viewport, shared by camera.bounds and room-map rectangles.\n",
          "file": "pkg/editor/scenesettings.go",
          "line": 31,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RectHandleNone",
                  "anchor": "RectHandleNone"
                },
                {
                  "name": "RectHandleBody",
                  "anchor": "RectHandleBody"
                },
                {
                  "name": "RectHandleN",
                  "anchor": "RectHandleN"
                },
                {
                  "name": "RectHandleE",
                  "anchor": "RectHandleE"
                },
                {
                  "name": "RectHandleS",
                  "anchor": "RectHandleS"
                },
                {
                  "name": "RectHandleW",
                  "anchor": "RectHandleW"
                },
                {
                  "name": "RectHandleNE",
                  "anchor": "RectHandleNE"
                },
                {
                  "name": "RectHandleSE",
                  "anchor": "RectHandleSE"
                },
                {
                  "name": "RectHandleSW",
                  "anchor": "RectHandleSW"
                },
                {
                  "name": "RectHandleNW",
                  "anchor": "RectHandleNW"
                }
              ],
              "decl": "const (\n\t// RectHandleNone means no handle was hit.\n\tRectHandleNone RectHandle = iota\n\t// RectHandleBody moves the entire rectangle without changing its size.\n\tRectHandleBody\n\t// RectHandleN resizes the top (-Y) edge.\n\tRectHandleN\n\t// RectHandleE resizes the right (+X) edge.\n\tRectHandleE\n\t// RectHandleS resizes the bottom (+Y) edge.\n\tRectHandleS\n\t// RectHandleW resizes the left (-X) edge.\n\tRectHandleW\n\t// RectHandleNE resizes the top-right corner.\n\tRectHandleNE\n\t// RectHandleSE resizes the bottom-right corner.\n\tRectHandleSE\n\t// RectHandleSW resizes the bottom-left corner.\n\tRectHandleSW\n\t// RectHandleNW resizes the top-left corner.\n\tRectHandleNW\n)",
              "doc": "",
              "file": "pkg/editor/scenesettings.go",
              "line": 33
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsResize",
              "anchor": "RectHandle.IsResize",
              "recv": "RectHandle",
              "decl": "func (h RectHandle) IsResize() bool",
              "doc": "IsResize reports whether h is one of the 8 edge or corner resize handles.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 83
            },
            {
              "name": "String",
              "anchor": "RectHandle.String",
              "recv": "RectHandle",
              "decl": "func (h RectHandle) String() string",
              "doc": "String returns a human-readable label for h.\n",
              "file": "pkg/editor/scenesettings.go",
              "line": 57
            }
          ]
        },
        {
          "name": "ReferencesScreenMode",
          "anchor": "ReferencesScreenMode",
          "decl": "type ReferencesScreenMode string",
          "doc": "ReferencesScreenMode selects which workflow stage the full-window References screen displays.\n",
          "file": "pkg/editor/usages.go",
          "line": 27,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReferencesModeUsages",
                  "anchor": "ReferencesModeUsages"
                },
                {
                  "name": "ReferencesModeRename",
                  "anchor": "ReferencesModeRename"
                },
                {
                  "name": "ReferencesModeDone",
                  "anchor": "ReferencesModeDone"
                }
              ],
              "decl": "const (\n\t// ReferencesModeUsages lists grouped usages of a prefab, scene, or project file.\n\tReferencesModeUsages ReferencesScreenMode = \"usages\"\n\t// ReferencesModeRename previews a safe YAML-only rename with exact line diffs and non-rewritten warnings.\n\tReferencesModeRename ReferencesScreenMode = \"rename\"\n\t// ReferencesModeDone displays the post-rename summary with one-step Undo and Back to the scene.\n\tReferencesModeDone ReferencesScreenMode = \"done\"\n)",
              "doc": "",
              "file": "pkg/editor/usages.go",
              "line": 29
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReferencesScreenState",
          "anchor": "ReferencesScreenState",
          "decl": "type ReferencesScreenState struct {\n\tOpen            bool                 `json:\"open\"`\n\tMode            ReferencesScreenMode `json:\"mode\"`\n\tTarget          string               `json:\"target\"`\n\tSourceObjectID  string               `json:\"sourceObjectId,omitempty\"`\n\tReturnSceneName string               `json:\"returnSceneName,omitempty\"`\n\tReport          *UsagesReport        `json:\"report,omitempty\"`\n\tFocusedFile     string               `json:\"focusedFile,omitempty\"`\n\tFocusedRefIdx   int                  `json:\"focusedRefIdx\"`\n\tRenameInput     string               `json:\"renameInput,omitempty\"`\n\tFolderPrefix    string               `json:\"folderPrefix,omitempty\"`\n\tOldStem         string               `json:\"oldStem,omitempty\"`\n\tSuffix          string               `json:\"suffix,omitempty\"`\n\tPlan            *SafeRenamePlan      `json:\"plan,omitempty\"`\n\tAppliedFrom     string               `json:\"appliedFrom,omitempty\"`\n\tAppliedTo       string               `json:\"appliedTo,omitempty\"`\n\tAppliedFiles    int                  `json:\"appliedFiles,omitempty\"`\n\tCheckProblems   []SafeRenameProblem  `json:\"checkProblems,omitempty\"`\n\tAskSentFiles    map[string]bool      `json:\"askSentFiles,omitempty\"`\n}",
          "doc": "ReferencesScreenState is a read-only snapshot of the full-window Find Usages and Safe Rename screen.\n",
          "file": "pkg/editor/usages.go",
          "line": 213,
          "members": [
            {
              "name": "Open",
              "anchor": "ReferencesScreenState.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "ReferencesScreenState.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "ReferencesScreenState.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SourceObjectID",
              "anchor": "ReferencesScreenState.SourceObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReturnSceneName",
              "anchor": "ReferencesScreenState.ReturnSceneName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Report",
              "anchor": "ReferencesScreenState.Report",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusedFile",
              "anchor": "ReferencesScreenState.FocusedFile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusedRefIdx",
              "anchor": "ReferencesScreenState.FocusedRefIdx",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RenameInput",
              "anchor": "ReferencesScreenState.RenameInput",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FolderPrefix",
              "anchor": "ReferencesScreenState.FolderPrefix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldStem",
              "anchor": "ReferencesScreenState.OldStem",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Suffix",
              "anchor": "ReferencesScreenState.Suffix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Plan",
              "anchor": "ReferencesScreenState.Plan",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AppliedFrom",
              "anchor": "ReferencesScreenState.AppliedFrom",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AppliedTo",
              "anchor": "ReferencesScreenState.AppliedTo",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AppliedFiles",
              "anchor": "ReferencesScreenState.AppliedFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckProblems",
              "anchor": "ReferencesScreenState.CheckProblems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AskSentFiles",
              "anchor": "ReferencesScreenState.AskSentFiles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseNotesDraft",
          "anchor": "ReleaseNotesDraft",
          "decl": "type ReleaseNotesDraft struct {\n\tMarkdown   string `json:\"markdown\"`\n\tProvenance string `json:\"provenance\"`\n}",
          "doc": "ReleaseNotesDraft is the player-facing Markdown and provenance badge produced for RELEASE NOTES.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 181,
          "members": [
            {
              "name": "Markdown",
              "anchor": "ReleaseNotesDraft.Markdown",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Provenance",
              "anchor": "ReleaseNotesDraft.Provenance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultReleaseNotesDraft",
              "anchor": "DefaultReleaseNotesDraft",
              "decl": "func DefaultReleaseNotesDraft(req ReleaseNotesDraftRequest) ReleaseNotesDraft",
              "doc": "DefaultReleaseNotesDraft builds clean, deterministic, player-facing Markdown release notes\nfrom git commits since the last release tag (or initial commit), kept reviews, and changelog entries.\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 610
            }
          ],
          "methods": []
        },
        {
          "name": "ReleaseNotesDraftRequest",
          "anchor": "ReleaseNotesDraftRequest",
          "decl": "type ReleaseNotesDraftRequest struct {\n\tProjectName      string   `json:\"projectName\"`\n\tVersion          string   `json:\"version\"`\n\tLastReleaseTag   string   `json:\"lastReleaseTag,omitempty\"`\n\tSinceRef         string   `json:\"sinceRef\"`\n\tCommitCount      int      `json:\"commitCount\"`\n\tCommitSubjects   []string `json:\"commitSubjects,omitempty\"`\n\tKeptReviews      []string `json:\"keptReviews,omitempty\"`\n\tChangelogEntries []string `json:\"changelogEntries,omitempty\"`\n}",
          "doc": "ReleaseNotesDraftRequest holds the git history, kept reviews, and changelog entries passed to\nEditor.ReleaseNotesDrafter or DefaultReleaseNotesDraft.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 169,
          "members": [
            {
              "name": "ProjectName",
              "anchor": "ReleaseNotesDraftRequest.ProjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "ReleaseNotesDraftRequest.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastReleaseTag",
              "anchor": "ReleaseNotesDraftRequest.LastReleaseTag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SinceRef",
              "anchor": "ReleaseNotesDraftRequest.SinceRef",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CommitCount",
              "anchor": "ReleaseNotesDraftRequest.CommitCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CommitSubjects",
              "anchor": "ReleaseNotesDraftRequest.CommitSubjects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptReviews",
              "anchor": "ReleaseNotesDraftRequest.KeptReviews",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangelogEntries",
              "anchor": "ReleaseNotesDraftRequest.ChangelogEntries",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseStepRequest",
          "anchor": "ReleaseStepRequest",
          "decl": "type ReleaseStepRequest struct {\n\tPlatform string\n\tStepID   BuildStepID\n\tStep     BuildStep\n\tDir      string\n\tDryRun   bool\n\tPlan     *releaseplan.Plan\n\tSigning  BuildPresetSigningConfig\n}",
          "doc": "ReleaseStepRequest provides full context to Editor.ReleaseStepRunner when overriding a release build step.\n",
          "file": "pkg/editor/build_release.go",
          "line": 260,
          "members": [
            {
              "name": "Platform",
              "anchor": "ReleaseStepRequest.Platform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepID",
              "anchor": "ReleaseStepRequest.StepID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "ReleaseStepRequest.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dir",
              "anchor": "ReleaseStepRequest.Dir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DryRun",
              "anchor": "ReleaseStepRequest.DryRun",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Plan",
              "anchor": "ReleaseStepRequest.Plan",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Signing",
              "anchor": "ReleaseStepRequest.Signing",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseUploadItem",
          "anchor": "ReleaseUploadItem",
          "decl": "type ReleaseUploadItem struct {\n\tPlatform          string              `json:\"platform\"`\n\tPlatformName      string              `json:\"platformName\"`\n\tDestination       PublishDestination  `json:\"destination\"`\n\tDestinationLabel  string              `json:\"destinationLabel\"`\n\tTrack             string              `json:\"track,omitempty\"`\n\tVersion           string              `json:\"version\"`\n\tArtifactName      string              `json:\"artifactName\"`\n\tArtifactPath      string              `json:\"artifactPath\"`\n\tArtifactRelPath   string              `json:\"artifactRelPath\"`\n\tSizeBytes         int64               `json:\"sizeBytes\"`\n\tIncluded          bool                `json:\"included\"`\n\tHasCredential     bool                `json:\"hasCredential\"`\n\tCredentialAccount string              `json:\"credentialAccount,omitempty\"`\n\tStatus            ReleaseUploadStatus `json:\"status\"`\n\tProgress          float64             `json:\"progress\"`\n\tStatusMessage     string              `json:\"statusMessage,omitempty\"`\n\tResultURL         string              `json:\"resultUrl,omitempty\"`\n\tErr               string              `json:\"err,omitempty\"`\n}",
          "doc": "ReleaseUploadItem describes one artifact queued for user confirmation in Review uploads.\nIt never stores credential secrets.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 199,
          "members": [
            {
              "name": "Platform",
              "anchor": "ReleaseUploadItem.Platform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlatformName",
              "anchor": "ReleaseUploadItem.PlatformName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Destination",
              "anchor": "ReleaseUploadItem.Destination",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DestinationLabel",
              "anchor": "ReleaseUploadItem.DestinationLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Track",
              "anchor": "ReleaseUploadItem.Track",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "ReleaseUploadItem.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ArtifactName",
              "anchor": "ReleaseUploadItem.ArtifactName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ArtifactPath",
              "anchor": "ReleaseUploadItem.ArtifactPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ArtifactRelPath",
              "anchor": "ReleaseUploadItem.ArtifactRelPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeBytes",
              "anchor": "ReleaseUploadItem.SizeBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Included",
              "anchor": "ReleaseUploadItem.Included",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasCredential",
              "anchor": "ReleaseUploadItem.HasCredential",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CredentialAccount",
              "anchor": "ReleaseUploadItem.CredentialAccount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "ReleaseUploadItem.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Progress",
              "anchor": "ReleaseUploadItem.Progress",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StatusMessage",
              "anchor": "ReleaseUploadItem.StatusMessage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResultURL",
              "anchor": "ReleaseUploadItem.ResultURL",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Err",
              "anchor": "ReleaseUploadItem.Err",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseUploadProgress",
          "anchor": "ReleaseUploadProgress",
          "decl": "type ReleaseUploadProgress struct {\n\tFraction float64\n\tMessage  string\n}",
          "doc": "ReleaseUploadProgress reports incremental upload progress for one artifact.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 250,
          "members": [
            {
              "name": "Fraction",
              "anchor": "ReleaseUploadProgress.Fraction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "ReleaseUploadProgress.Message",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseUploadRequest",
          "anchor": "ReleaseUploadRequest",
          "decl": "type ReleaseUploadRequest struct {\n\tPlatform         string\n\tDestination      PublishDestination\n\tDestinationLabel string\n\tTrack            string\n\tVersion          string\n\tArtifactPath     string\n\tArtifactName     string\n\tSizeBytes        int64\n\tReleaseNotesPath string\n\tCredential       KeychainCredential\n}",
          "doc": "ReleaseUploadRequest describes one user-confirmed artifact upload passed to ReleaseUploader.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 236,
          "members": [
            {
              "name": "Platform",
              "anchor": "ReleaseUploadRequest.Platform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Destination",
              "anchor": "ReleaseUploadRequest.Destination",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DestinationLabel",
              "anchor": "ReleaseUploadRequest.DestinationLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Track",
              "anchor": "ReleaseUploadRequest.Track",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "ReleaseUploadRequest.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ArtifactPath",
              "anchor": "ReleaseUploadRequest.ArtifactPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ArtifactName",
              "anchor": "ReleaseUploadRequest.ArtifactName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeBytes",
              "anchor": "ReleaseUploadRequest.SizeBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReleaseNotesPath",
              "anchor": "ReleaseUploadRequest.ReleaseNotesPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Credential",
              "anchor": "ReleaseUploadRequest.Credential",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseUploadResult",
          "anchor": "ReleaseUploadResult",
          "decl": "type ReleaseUploadResult struct {\n\tDestination PublishDestination\n\tPlatform    string\n\tVersion     string\n\tURL         string\n\tMessage     string\n}",
          "doc": "ReleaseUploadResult describes the outcome of uploading one artifact to a store destination.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 256,
          "members": [
            {
              "name": "Destination",
              "anchor": "ReleaseUploadResult.Destination",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Platform",
              "anchor": "ReleaseUploadResult.Platform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "ReleaseUploadResult.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "URL",
              "anchor": "ReleaseUploadResult.URL",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "ReleaseUploadResult.Message",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseUploadReviewSnapshot",
          "anchor": "ReleaseUploadReviewSnapshot",
          "decl": "type ReleaseUploadReviewSnapshot struct {\n\tOpen                bool                   `json:\"open\"`\n\tSessionID           uint64                 `json:\"sessionId\"`\n\tPermissionProfile   AgentPermissionProfile `json:\"permissionProfile\"`\n\tReleaseNotesFile    string                 `json:\"releaseNotesFile\"`\n\tReleaseNotesPreview string                 `json:\"releaseNotesPreview,omitempty\"`\n\tItems               []ReleaseUploadItem    `json:\"items\"`\n\tRunning             bool                   `json:\"running\"`\n\tCompleted           bool                   `json:\"completed\"`\n\tKeychainEditorOpen  bool                   `json:\"keychainEditorOpen\"`\n\tKeychainDest        PublishDestination     `json:\"keychainDest,omitempty\"`\n\tLastErr             string                 `json:\"lastErr,omitempty\"`\n}",
          "doc": "ReleaseUploadReviewSnapshot is a thread-safe value copy of the Review uploads confirmation dialog state.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 221,
          "members": [
            {
              "name": "Open",
              "anchor": "ReleaseUploadReviewSnapshot.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SessionID",
              "anchor": "ReleaseUploadReviewSnapshot.SessionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionProfile",
              "anchor": "ReleaseUploadReviewSnapshot.PermissionProfile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReleaseNotesFile",
              "anchor": "ReleaseUploadReviewSnapshot.ReleaseNotesFile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReleaseNotesPreview",
              "anchor": "ReleaseUploadReviewSnapshot.ReleaseNotesPreview",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Items",
              "anchor": "ReleaseUploadReviewSnapshot.Items",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Running",
              "anchor": "ReleaseUploadReviewSnapshot.Running",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Completed",
              "anchor": "ReleaseUploadReviewSnapshot.Completed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeychainEditorOpen",
              "anchor": "ReleaseUploadReviewSnapshot.KeychainEditorOpen",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeychainDest",
              "anchor": "ReleaseUploadReviewSnapshot.KeychainDest",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastErr",
              "anchor": "ReleaseUploadReviewSnapshot.LastErr",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseUploadStatus",
          "anchor": "ReleaseUploadStatus",
          "decl": "type ReleaseUploadStatus string",
          "doc": "ReleaseUploadStatus reports the lifecycle state of one upload item in Review uploads.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 187,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "UploadStatusPending",
                  "anchor": "UploadStatusPending"
                },
                {
                  "name": "UploadStatusUploading",
                  "anchor": "UploadStatusUploading"
                },
                {
                  "name": "UploadStatusDone",
                  "anchor": "UploadStatusDone"
                },
                {
                  "name": "UploadStatusFailed",
                  "anchor": "UploadStatusFailed"
                },
                {
                  "name": "UploadStatusCancelled",
                  "anchor": "UploadStatusCancelled"
                }
              ],
              "decl": "const (\n\tUploadStatusPending   ReleaseUploadStatus = \"pending\"\n\tUploadStatusUploading ReleaseUploadStatus = \"uploading\"\n\tUploadStatusDone      ReleaseUploadStatus = \"done\"\n\tUploadStatusFailed    ReleaseUploadStatus = \"failed\"\n\tUploadStatusCancelled ReleaseUploadStatus = \"cancelled\"\n)",
              "doc": "",
              "file": "pkg/editor/build_release_publish.go",
              "line": 189
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseUploader",
          "anchor": "ReleaseUploader",
          "decl": "type ReleaseUploader interface {\n\tUpload(ctx context.Context, req ReleaseUploadRequest, progress func(ReleaseUploadProgress)) (ReleaseUploadResult, error)\n}",
          "doc": "ReleaseUploader uploads a single user-confirmed release artifact to a store destination.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 265,
          "members": [
            {
              "name": "Upload",
              "anchor": "ReleaseUploader.Upload",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReleaseUploaderFunc",
          "anchor": "ReleaseUploaderFunc",
          "decl": "type ReleaseUploaderFunc func(ctx context.Context, req ReleaseUploadRequest, progress func(ReleaseUploadProgress)) (ReleaseUploadResult, error)",
          "doc": "ReleaseUploaderFunc adapts a plain function to ReleaseUploader.\n",
          "file": "pkg/editor/build_release_publish.go",
          "line": 270,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Upload",
              "anchor": "ReleaseUploaderFunc.Upload",
              "recv": "ReleaseUploaderFunc",
              "decl": "func (f ReleaseUploaderFunc) Upload(ctx context.Context, req ReleaseUploadRequest, progress func(ReleaseUploadProgress)) (ReleaseUploadResult, error)",
              "doc": "Upload calls f(ctx, req, progress).\n",
              "file": "pkg/editor/build_release_publish.go",
              "line": 273
            }
          ]
        },
        {
          "name": "ReloadAssetsResult",
          "anchor": "ReloadAssetsResult",
          "decl": "type ReloadAssetsResult struct {\n\t// Atlases lists the names of sprite atlases reloaded from disk, sorted.\n\tAtlases []string\n\t// Textures lists the project-relative paths of texture outputs that changed on disk, sorted.\n\tTextures []string\n}",
          "doc": "ReloadAssetsResult summarizes which built atlases and textures changed on disk and were reloaded by ReloadAssets.\n",
          "file": "pkg/editor/asset_build.go",
          "line": 58,
          "members": [
            {
              "name": "Atlases",
              "anchor": "ReloadAssetsResult.Atlases",
              "kind": "field",
              "doc": "Atlases lists the names of sprite atlases reloaded from disk, sorted."
            },
            {
              "name": "Textures",
              "anchor": "ReloadAssetsResult.Textures",
              "kind": "field",
              "doc": "Textures lists the project-relative paths of texture outputs that changed on disk, sorted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RemoteConsoleEntry",
          "anchor": "RemoteConsoleEntry",
          "decl": "type RemoteConsoleEntry struct {\n\tTime    time.Time\n\tCommand string\n\tOK      bool\n\tOutput  string\n\tLines   []string\n\tError   string\n}",
          "doc": "RemoteConsoleEntry records one command executed against the running game's debug console via game_console_exec.\n",
          "file": "pkg/editor/remote.go",
          "line": 69,
          "members": [
            {
              "name": "Time",
              "anchor": "RemoteConsoleEntry.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Command",
              "anchor": "RemoteConsoleEntry.Command",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OK",
              "anchor": "RemoteConsoleEntry.OK",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Output",
              "anchor": "RemoteConsoleEntry.Output",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Lines",
              "anchor": "RemoteConsoleEntry.Lines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "RemoteConsoleEntry.Error",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RemoteLiveChange",
          "anchor": "RemoteLiveChange",
          "decl": "type RemoteLiveChange struct {\n\tEntityRef  string\n\tEntityName string\n\tObjectID   string\n\tComponent  string\n\tField      string\n\tFrom       any\n\tTo         any\n}",
          "doc": "RemoteLiveChange records one live component field edit made through game_component_set during a remote session.\nStopping or disconnecting keeps the list until the author keeps the changes in the scene or discards them.\n",
          "file": "pkg/editor/remote.go",
          "line": 58,
          "members": [
            {
              "name": "EntityRef",
              "anchor": "RemoteLiveChange.EntityRef",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EntityName",
              "anchor": "RemoteLiveChange.EntityName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "RemoteLiveChange.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "RemoteLiveChange.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "RemoteLiveChange.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "From",
              "anchor": "RemoteLiveChange.From",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "To",
              "anchor": "RemoteLiveChange.To",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RemoteSnapshot",
          "anchor": "RemoteSnapshot",
          "decl": "type RemoteSnapshot struct {\n\tConnected    bool\n\tConnecting   bool\n\tError        string\n\tScenes       gamemcp.ScenesListResult\n\tActiveScene  string\n\tLayers       []gamemcp.LayerInfo\n\tEntities     []gamemcp.EntitySummary\n\tSelectedRef  string\n\tInspected    *gamemcp.EntityInspectResult\n\tLoop         *gamemcp.LoopStatusResult\n\tFPS          float64\n\tHasFPS       bool\n\tTunables     []gamemcp.TunableResult\n\tHasConsole   bool\n\tTaken        []RemoteTakenEntity\n\tRefreshCount uint64\n}",
          "doc": "RemoteSnapshot is a point-in-time snapshot of the connected game's live scenes, layers, entities, selected entity inspection, loop state, tunables, and taken scene objects.\n",
          "file": "pkg/editor/remote.go",
          "line": 87,
          "members": [
            {
              "name": "Connected",
              "anchor": "RemoteSnapshot.Connected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Connecting",
              "anchor": "RemoteSnapshot.Connecting",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "RemoteSnapshot.Error",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scenes",
              "anchor": "RemoteSnapshot.Scenes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveScene",
              "anchor": "RemoteSnapshot.ActiveScene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layers",
              "anchor": "RemoteSnapshot.Layers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Entities",
              "anchor": "RemoteSnapshot.Entities",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedRef",
              "anchor": "RemoteSnapshot.SelectedRef",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Inspected",
              "anchor": "RemoteSnapshot.Inspected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Loop",
              "anchor": "RemoteSnapshot.Loop",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FPS",
              "anchor": "RemoteSnapshot.FPS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasFPS",
              "anchor": "RemoteSnapshot.HasFPS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tunables",
              "anchor": "RemoteSnapshot.Tunables",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasConsole",
              "anchor": "RemoteSnapshot.HasConsole",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Taken",
              "anchor": "RemoteSnapshot.Taken",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefreshCount",
              "anchor": "RemoteSnapshot.RefreshCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RemoteTakenEntity",
          "anchor": "RemoteTakenEntity",
          "decl": "type RemoteTakenEntity struct {\n\tObjectID    string\n\tName        string\n\tLayer       string\n\tTakenAtStep uint64\n}",
          "doc": "RemoteTakenEntity records an object present in the open scene that was alive in the running game and is no longer alive (for example a collected pickup or destroyed enemy).\n",
          "file": "pkg/editor/remote.go",
          "line": 79,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "RemoteTakenEntity.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "RemoteTakenEntity.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "RemoteTakenEntity.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TakenAtStep",
              "anchor": "RemoteTakenEntity.TakenAtStep",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ResolvedPlanFile",
          "anchor": "ResolvedPlanFile",
          "decl": "type ResolvedPlanFile struct {\n\tPath   string\n\tTag    PlanFileTag\n\tInPlan bool\n}",
          "doc": "ResolvedPlanFile is one row in the \"FILES IN THIS PLAN\" panel, with InPlan false when every referencing step was removed.\n",
          "file": "pkg/editor/plan.go",
          "line": 441,
          "members": [
            {
              "name": "Path",
              "anchor": "ResolvedPlanFile.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "ResolvedPlanFile.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InPlan",
              "anchor": "ResolvedPlanFile.InPlan",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ResolvedPlanGhost",
          "anchor": "ResolvedPlanGhost",
          "decl": "type ResolvedPlanGhost struct {\n\tID       string\n\tStep     int\n\tX        float32\n\tY        float32\n\tWidth    float32\n\tHeight   float32\n\tRadius   float32\n\tLabel    string\n\tLabelX   float32\n\tLabelY   float32\n\tHasLabel bool\n\tActive   bool\n\tObjectID string\n}",
          "doc": "ResolvedPlanGhost is a concrete ghost rectangle ready to draw in the 2D viewport.\n",
          "file": "pkg/editor/plan.go",
          "line": 415,
          "members": [
            {
              "name": "ID",
              "anchor": "ResolvedPlanGhost.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "ResolvedPlanGhost.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "ResolvedPlanGhost.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ResolvedPlanGhost.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "ResolvedPlanGhost.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "ResolvedPlanGhost.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "ResolvedPlanGhost.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "ResolvedPlanGhost.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelX",
              "anchor": "ResolvedPlanGhost.LabelX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelY",
              "anchor": "ResolvedPlanGhost.LabelY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasLabel",
              "anchor": "ResolvedPlanGhost.HasLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Active",
              "anchor": "ResolvedPlanGhost.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ResolvedPlanGhost.ObjectID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ResolvedPlanTreeNode",
          "anchor": "ResolvedPlanTreeNode",
          "decl": "type ResolvedPlanTreeNode struct {\n\tName     string\n\tLayer    string\n\tExisting bool\n\tStep     int\n\tObjectID string\n}",
          "doc": "ResolvedPlanTreeNode is a planned Scene Tree node after applying field interpolation and removed-step filtering.\n",
          "file": "pkg/editor/plan.go",
          "line": 432,
          "members": [
            {
              "name": "Name",
              "anchor": "ResolvedPlanTreeNode.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "ResolvedPlanTreeNode.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Existing",
              "anchor": "ResolvedPlanTreeNode.Existing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "ResolvedPlanTreeNode.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ResolvedPlanTreeNode.ObjectID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewAgentNote",
          "anchor": "ReviewAgentNote",
          "decl": "type ReviewAgentNote struct {\n\tChangeID    string           `json:\"change_id\"`\n\tFile        string           `json:\"file\"`\n\tFileKind    ReviewFileKind   `json:\"file_kind\"`\n\tKind        ReviewChangeKind `json:\"kind\"`\n\tObject      string           `json:\"object,omitempty\"`\n\tField       string           `json:\"field,omitempty\"`\n\tTitle       string           `json:\"title\"`\n\tNote        string           `json:\"note\"`\n\tRevertFirst bool             `json:\"revert_first,omitempty\"`\n}",
          "doc": "ReviewAgentNote is one change-scoped author note explicitly sent to the agent over MCP.\nNotes live strictly in memory on the active turn and are never written to project files.\n",
          "file": "pkg/editor/review_notes.go",
          "line": 19,
          "members": [
            {
              "name": "ChangeID",
              "anchor": "ReviewAgentNote.ChangeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "ReviewAgentNote.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileKind",
              "anchor": "ReviewAgentNote.FileKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ReviewAgentNote.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Object",
              "anchor": "ReviewAgentNote.Object",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "ReviewAgentNote.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "ReviewAgentNote.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "ReviewAgentNote.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RevertFirst",
              "anchor": "ReviewAgentNote.RevertFirst",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewBlockedError",
          "anchor": "ReviewBlockedError",
          "decl": "type ReviewBlockedError struct {\n\tBlocker ReviewBlocker\n}",
          "doc": "ReviewBlockedError describes why KeepTurnReview refused to land the turn.\n",
          "file": "pkg/editor/review.go",
          "line": 67,
          "members": [
            {
              "name": "Blocker",
              "anchor": "ReviewBlockedError.Blocker",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "ReviewBlockedError.Error",
              "recv": "*ReviewBlockedError",
              "decl": "func (e *ReviewBlockedError) Error() string",
              "doc": "",
              "file": "pkg/editor/review.go",
              "line": 71
            },
            {
              "name": "Unwrap",
              "anchor": "ReviewBlockedError.Unwrap",
              "recv": "*ReviewBlockedError",
              "decl": "func (e *ReviewBlockedError) Unwrap() error",
              "doc": "",
              "file": "pkg/editor/review.go",
              "line": 75
            }
          ]
        },
        {
          "name": "ReviewBlocker",
          "anchor": "ReviewBlocker",
          "decl": "type ReviewBlocker struct {\n\tKind     string `json:\"kind,omitempty\"` // \"yaml_error\", \"conflict\", or \"custom\"\n\tChangeID string `json:\"changeId\"`\n\tObjectID string `json:\"objectId,omitempty\"`\n\tLine     int    `json:\"line,omitempty\"`\n\tReason   string `json:\"reason\"`\n}",
          "doc": "ReviewBlocker describes an active blocker preventing Keep until resolved.\n",
          "file": "pkg/editor/review.go",
          "line": 168,
          "members": [
            {
              "name": "Kind",
              "anchor": "ReviewBlocker.Kind",
              "kind": "field",
              "doc": "\"yaml_error\", \"conflict\", or \"custom\""
            },
            {
              "name": "ChangeID",
              "anchor": "ReviewBlocker.ChangeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ReviewBlocker.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "ReviewBlocker.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "ReviewBlocker.Reason",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewChange",
          "anchor": "ReviewChange",
          "decl": "type ReviewChange struct {\n\tID                string                `json:\"id\"`\n\tFile              string                `json:\"file\"`\n\tFileKind          ReviewFileKind        `json:\"fileKind\"`\n\tKind              ReviewChangeKind      `json:\"kind\"`\n\tTitle             string                `json:\"title\"`\n\tDetail            string                `json:\"detail\"`\n\tWhy               string                `json:\"why\"`\n\tObjectID          string                `json:\"objectId,omitempty\"`\n\tLayer             string                `json:\"layer,omitempty\"`\n\tParentID          string                `json:\"parentId,omitempty\"`\n\tField             string                `json:\"field,omitempty\"`\n\tOldValue          string                `json:\"oldValue,omitempty\"`\n\tNewValue          string                `json:\"newValue,omitempty\"`\n\tDeltaPct          string                `json:\"deltaPct,omitempty\"`\n\tPrefabImpact      string                `json:\"prefabImpact,omitempty\"`\n\tRowID             string                `json:\"rowId,omitempty\"`\n\tLine              int                   `json:\"line,omitempty\"`\n\tYAMLLines         []ReviewYAMLLine      `json:\"yamlLines,omitempty\"`\n\tSeen              bool                  `json:\"seen\"`\n\tReverted          bool                  `json:\"reverted\"`\n\tNote              string                `json:\"note,omitempty\"`\n\tSentNote          string                `json:\"sentNote,omitempty\"`\n\tRedoneInRound     int                   `json:\"redoneInRound,omitempty\"`\n\tRedoneNote        string                `json:\"redoneNote,omitempty\"`\n\tVersions          []ReviewChangeVersion `json:\"versions,omitempty\"`\n\tBlocker           string                `json:\"blocker,omitempty\"`\n\tGoRequiresConfirm bool                  `json:\"goRequiresConfirm,omitempty\"`\n\tGoConfirmed       bool                  `json:\"goConfirmed,omitempty\"`\n\tAuthor            ReviewLineAuthor      `json:\"author,omitempty\"`\n\tConflicts         []ReviewConflict      `json:\"conflicts,omitempty\"`\n\tConflictChoice    ReviewConflictChoice  `json:\"conflictChoice,omitempty\"`\n\tAutoMergedFields  []string              `json:\"autoMergedFields,omitempty\"`\n\tEditingYAML       bool                  `json:\"editingYaml,omitempty\"`\n\tHandEdited        bool                  `json:\"handEdited,omitempty\"`\n\tHandEditBy        ReviewLineAuthor      `json:\"handEditBy,omitempty\"`\n\tHandEditFields    []string              `json:\"handEditFields,omitempty\"`\n\tHandEditLines     []ReviewYAMLLine      `json:\"handEditLines,omitempty\"`\n\tHandEditYAML      string                `json:\"handEditYaml,omitempty\"`\n\tYAMLError         *ReviewYAMLError      `json:\"yamlError,omitempty\"`\n\t// contains filtered or unexported fields\n}",
          "doc": "ReviewChange is one reviewable change inside an agent turn.\n",
          "file": "pkg/editor/review.go",
          "line": 196,
          "members": [
            {
              "name": "ID",
              "anchor": "ReviewChange.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "ReviewChange.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileKind",
              "anchor": "ReviewChange.FileKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ReviewChange.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "ReviewChange.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "ReviewChange.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Why",
              "anchor": "ReviewChange.Why",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ReviewChange.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "ReviewChange.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParentID",
              "anchor": "ReviewChange.ParentID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "ReviewChange.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldValue",
              "anchor": "ReviewChange.OldValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewValue",
              "anchor": "ReviewChange.NewValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaPct",
              "anchor": "ReviewChange.DeltaPct",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PrefabImpact",
              "anchor": "ReviewChange.PrefabImpact",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RowID",
              "anchor": "ReviewChange.RowID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "ReviewChange.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAMLLines",
              "anchor": "ReviewChange.YAMLLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seen",
              "anchor": "ReviewChange.Seen",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "ReviewChange.Reverted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "ReviewChange.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SentNote",
              "anchor": "ReviewChange.SentNote",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RedoneInRound",
              "anchor": "ReviewChange.RedoneInRound",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RedoneNote",
              "anchor": "ReviewChange.RedoneNote",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Versions",
              "anchor": "ReviewChange.Versions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blocker",
              "anchor": "ReviewChange.Blocker",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GoRequiresConfirm",
              "anchor": "ReviewChange.GoRequiresConfirm",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GoConfirmed",
              "anchor": "ReviewChange.GoConfirmed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Author",
              "anchor": "ReviewChange.Author",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Conflicts",
              "anchor": "ReviewChange.Conflicts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConflictChoice",
              "anchor": "ReviewChange.ConflictChoice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AutoMergedFields",
              "anchor": "ReviewChange.AutoMergedFields",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditingYAML",
              "anchor": "ReviewChange.EditingYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HandEdited",
              "anchor": "ReviewChange.HandEdited",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HandEditBy",
              "anchor": "ReviewChange.HandEditBy",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HandEditFields",
              "anchor": "ReviewChange.HandEditFields",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HandEditLines",
              "anchor": "ReviewChange.HandEditLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HandEditYAML",
              "anchor": "ReviewChange.HandEditYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAMLError",
              "anchor": "ReviewChange.YAMLError",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CanEditYAML",
              "anchor": "ReviewChange.CanEditYAML",
              "recv": "*ReviewChange",
              "decl": "func (c *ReviewChange) CanEditYAML() bool",
              "doc": "CanEditYAML reports whether this change can be hand-edited in place in the review's right YAML pane.\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 78
            },
            {
              "name": "HasUnresolvedConflict",
              "anchor": "ReviewChange.HasUnresolvedConflict",
              "recv": "*ReviewChange",
              "decl": "func (c *ReviewChange) HasUnresolvedConflict() bool",
              "doc": "HasUnresolvedConflict reports whether this non-reverted change has overlapping edits awaiting a choice.\n",
              "file": "pkg/editor/review_conflicts.go",
              "line": 86
            },
            {
              "name": "VersionFor",
              "anchor": "ReviewChange.VersionFor",
              "recv": "ReviewChange",
              "decl": "func (c ReviewChange) VersionFor(round int) ReviewChangeVersion",
              "doc": "VersionFor returns the immutable snapshot of c for the given 1-based review round.\n",
              "file": "pkg/editor/review_notes.go",
              "line": 156
            }
          ]
        },
        {
          "name": "ReviewChangeKind",
          "anchor": "ReviewChangeKind",
          "decl": "type ReviewChangeKind string",
          "doc": "ReviewChangeKind classifies an individual change in an agent turn review.\n",
          "file": "pkg/editor/review.go",
          "line": 89,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReviewChangeAdded",
                  "anchor": "ReviewChangeAdded"
                },
                {
                  "name": "ReviewChangeChanged",
                  "anchor": "ReviewChangeChanged"
                },
                {
                  "name": "ReviewChangeRemoved",
                  "anchor": "ReviewChangeRemoved"
                }
              ],
              "decl": "const (\n\tReviewChangeAdded   ReviewChangeKind = \"added\"\n\tReviewChangeChanged ReviewChangeKind = \"changed\"\n\tReviewChangeRemoved ReviewChangeKind = \"removed\"\n)",
              "doc": "",
              "file": "pkg/editor/review.go",
              "line": 91
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewChangeVersion",
          "anchor": "ReviewChangeVersion",
          "decl": "type ReviewChangeVersion struct {\n\tRound     int              `json:\"round\"`\n\tDetail    string           `json:\"detail\"`\n\tWhy       string           `json:\"why\"`\n\tOldValue  string           `json:\"oldValue,omitempty\"`\n\tNewValue  string           `json:\"newValue,omitempty\"`\n\tDeltaPct  string           `json:\"deltaPct,omitempty\"`\n\tLine      int              `json:\"line,omitempty\"`\n\tX         float32          `json:\"x,omitempty\"`\n\tY         float32          `json:\"y,omitempty\"`\n\tYAMLLines []ReviewYAMLLine `json:\"yamlLines,omitempty\"`\n\t// contains filtered or unexported fields\n}",
          "doc": "ReviewChangeVersion holds one round's immutable snapshot of a ReviewChange (1-based).\n",
          "file": "pkg/editor/review.go",
          "line": 177,
          "members": [
            {
              "name": "Round",
              "anchor": "ReviewChangeVersion.Round",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "ReviewChangeVersion.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Why",
              "anchor": "ReviewChangeVersion.Why",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldValue",
              "anchor": "ReviewChangeVersion.OldValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewValue",
              "anchor": "ReviewChangeVersion.NewValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaPct",
              "anchor": "ReviewChangeVersion.DeltaPct",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "ReviewChangeVersion.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "ReviewChangeVersion.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ReviewChangeVersion.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAMLLines",
              "anchor": "ReviewChangeVersion.YAMLLines",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewConflict",
          "anchor": "ReviewConflict",
          "decl": "type ReviewConflict struct {\n\tField      string               `json:\"field\"`\n\tIsList     bool                 `json:\"isList,omitempty\"`\n\tBase       any                  `json:\"base,omitempty\"`\n\tMine       any                  `json:\"mine,omitempty\"`\n\tAgent      any                  `json:\"agent,omitempty\"`\n\tMineLines  []ReviewConflictLine `json:\"mineLines,omitempty\"`\n\tAgentLines []ReviewConflictLine `json:\"agentLines,omitempty\"`\n}",
          "doc": "ReviewConflict describes one overlapping field or list edit on a reviewed object.\n",
          "file": "pkg/editor/review_conflicts.go",
          "line": 50,
          "members": [
            {
              "name": "Field",
              "anchor": "ReviewConflict.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsList",
              "anchor": "ReviewConflict.IsList",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Base",
              "anchor": "ReviewConflict.Base",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mine",
              "anchor": "ReviewConflict.Mine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Agent",
              "anchor": "ReviewConflict.Agent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MineLines",
              "anchor": "ReviewConflict.MineLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentLines",
              "anchor": "ReviewConflict.AgentLines",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewConflictChoice",
          "anchor": "ReviewConflictChoice",
          "decl": "type ReviewConflictChoice string",
          "doc": "ReviewConflictChoice selects how an overlapping edit between the person and the agent merges.\n",
          "file": "pkg/editor/review_conflicts.go",
          "line": 20,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReviewConflictUnresolved",
                  "anchor": "ReviewConflictUnresolved"
                },
                {
                  "name": "ReviewConflictMine",
                  "anchor": "ReviewConflictMine"
                },
                {
                  "name": "ReviewConflictAgent",
                  "anchor": "ReviewConflictAgent"
                },
                {
                  "name": "ReviewConflictBoth",
                  "anchor": "ReviewConflictBoth"
                }
              ],
              "decl": "const (\n\t// ReviewConflictUnresolved indicates the person has not yet chosen Mine, Agent's, or Both.\n\tReviewConflictUnresolved ReviewConflictChoice = \"\"\n\t// ReviewConflictMine keeps the person's edit for the conflicting field or list.\n\tReviewConflictMine ReviewConflictChoice = \"mine\"\n\t// ReviewConflictAgent keeps the agent's edit for the conflicting field or list.\n\tReviewConflictAgent ReviewConflictChoice = \"agent\"\n\t// ReviewConflictBoth keeps both sides' entries for a conflicting list (or map), yours first.\n\tReviewConflictBoth ReviewConflictChoice = \"both\"\n)",
              "doc": "",
              "file": "pkg/editor/review_conflicts.go",
              "line": 22
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewConflictLine",
          "anchor": "ReviewConflictLine",
          "decl": "type ReviewConflictLine struct {\n\tAuthor ReviewLineAuthor `json:\"author\"`\n\tSign   string           `json:\"sign\"`\n\tText   string           `json:\"text\"`\n}",
          "doc": "ReviewConflictLine is one side's preview line inside a conflict card (\"you\" or \"agent\").\n",
          "file": "pkg/editor/review_conflicts.go",
          "line": 43,
          "members": [
            {
              "name": "Author",
              "anchor": "ReviewConflictLine.Author",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "ReviewConflictLine.Sign",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "ReviewConflictLine.Text",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewDataCellDiff",
          "anchor": "ReviewDataCellDiff",
          "decl": "type ReviewDataCellDiff struct {\n\tColumn   string `json:\"column\"`\n\tOldValue string `json:\"oldValue\"`\n\tNewValue string `json:\"newValue\"`\n\tDeltaPct string `json:\"deltaPct,omitempty\"`\n}",
          "doc": "ReviewDataCellDiff describes a changed cell in a data table row.\n",
          "file": "pkg/editor/review.go",
          "line": 139,
          "members": [
            {
              "name": "Column",
              "anchor": "ReviewDataCellDiff.Column",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldValue",
              "anchor": "ReviewDataCellDiff.OldValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewValue",
              "anchor": "ReviewDataCellDiff.NewValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaPct",
              "anchor": "ReviewDataCellDiff.DeltaPct",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewDataRow",
          "anchor": "ReviewDataRow",
          "decl": "type ReviewDataRow struct {\n\tID        string                        `json:\"id\"`\n\tChangeID  string                        `json:\"changeId,omitempty\"`\n\tValues    map[string]string             `json:\"values\"`\n\tChanged   bool                          `json:\"changed,omitempty\"`\n\tAdded     bool                          `json:\"added,omitempty\"`\n\tRemoved   bool                          `json:\"removed,omitempty\"`\n\tFocused   bool                          `json:\"focused,omitempty\"`\n\tCellDiffs map[string]ReviewDataCellDiff `json:\"cellDiffs,omitempty\"`\n}",
          "doc": "ReviewDataRow is one row in the center small-data-table preview.\n",
          "file": "pkg/editor/review.go",
          "line": 147,
          "members": [
            {
              "name": "ID",
              "anchor": "ReviewDataRow.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangeID",
              "anchor": "ReviewDataRow.ChangeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Values",
              "anchor": "ReviewDataRow.Values",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "ReviewDataRow.Changed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Added",
              "anchor": "ReviewDataRow.Added",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "ReviewDataRow.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Focused",
              "anchor": "ReviewDataRow.Focused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CellDiffs",
              "anchor": "ReviewDataRow.CellDiffs",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewDataTablePreview",
          "anchor": "ReviewDataTablePreview",
          "decl": "type ReviewDataTablePreview struct {\n\tFile         string          `json:\"file\"`\n\tColumns      []string        `json:\"columns\"`\n\tTotalRows    int             `json:\"totalRows\"`\n\tChangedCount int             `json:\"changedCount\"`\n\tRows         []ReviewDataRow `json:\"rows\"`\n}",
          "doc": "ReviewDataTablePreview holds the center-pane table view model for a small data table file.\n",
          "file": "pkg/editor/review.go",
          "line": 159,
          "members": [
            {
              "name": "File",
              "anchor": "ReviewDataTablePreview.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Columns",
              "anchor": "ReviewDataTablePreview.Columns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalRows",
              "anchor": "ReviewDataTablePreview.TotalRows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangedCount",
              "anchor": "ReviewDataTablePreview.ChangedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "ReviewDataTablePreview.Rows",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewFileInput",
          "anchor": "ReviewFileInput",
          "decl": "type ReviewFileInput struct {\n\t// Path is the slash-separated path relative to the project root (for example \"scenes/level_01.scene.yaml\").\n\tPath string\n\t// FileKind optionally overrides automatic detection from Path.\n\tFileKind ReviewFileKind\n\t// BeforeYAML is the exact file content before the agent turn (empty/nil when newly created).\n\tBeforeYAML []byte\n\t// AfterYAML is the exact file content after the agent turn (empty/nil when deleted).\n\tAfterYAML []byte\n\t// PersonYAML optionally supplies concurrent manual edits made by the person to this file.\n\tPersonYAML []byte\n\t// ExistedBefore explicitly records whether the file existed on disk before the turn.\n\t// When nil, it defaults to len(BeforeYAML) > 0.\n\tExistedBefore *bool\n\t// Reasons maps a change target key (object ID, prefab field path, data row ID, or \"*\" default) to the agent's Why explanation.\n\tReasons map[string]string\n\t// Details maps a change target key to an optional custom detail line shown on its card.\n\tDetails map[string]string\n\t// Notes maps a change target key to an optional review note.\n\tNotes map[string]string\n\t// Blockers maps a change target key to an optional blocker reason that disables Keep until cleared.\n\tBlockers map[string]string\n}",
          "doc": "ReviewFileInput specifies one touched file when opening a turn review.\n",
          "file": "pkg/editor/review.go",
          "line": 311,
          "members": [
            {
              "name": "Path",
              "anchor": "ReviewFileInput.Path",
              "kind": "field",
              "doc": "Path is the slash-separated path relative to the project root (for example \"scenes/level_01.scene.yaml\")."
            },
            {
              "name": "FileKind",
              "anchor": "ReviewFileInput.FileKind",
              "kind": "field",
              "doc": "FileKind optionally overrides automatic detection from Path."
            },
            {
              "name": "BeforeYAML",
              "anchor": "ReviewFileInput.BeforeYAML",
              "kind": "field",
              "doc": "BeforeYAML is the exact file content before the agent turn (empty/nil when newly created)."
            },
            {
              "name": "AfterYAML",
              "anchor": "ReviewFileInput.AfterYAML",
              "kind": "field",
              "doc": "AfterYAML is the exact file content after the agent turn (empty/nil when deleted)."
            },
            {
              "name": "PersonYAML",
              "anchor": "ReviewFileInput.PersonYAML",
              "kind": "field",
              "doc": "PersonYAML optionally supplies concurrent manual edits made by the person to this file."
            },
            {
              "name": "ExistedBefore",
              "anchor": "ReviewFileInput.ExistedBefore",
              "kind": "field",
              "doc": "ExistedBefore explicitly records whether the file existed on disk before the turn.\nWhen nil, it defaults to len(BeforeYAML) > 0."
            },
            {
              "name": "Reasons",
              "anchor": "ReviewFileInput.Reasons",
              "kind": "field",
              "doc": "Reasons maps a change target key (object ID, prefab field path, data row ID, or \"*\" default) to the agent's Why explanation."
            },
            {
              "name": "Details",
              "anchor": "ReviewFileInput.Details",
              "kind": "field",
              "doc": "Details maps a change target key to an optional custom detail line shown on its card."
            },
            {
              "name": "Notes",
              "anchor": "ReviewFileInput.Notes",
              "kind": "field",
              "doc": "Notes maps a change target key to an optional review note."
            },
            {
              "name": "Blockers",
              "anchor": "ReviewFileInput.Blockers",
              "kind": "field",
              "doc": "Blockers maps a change target key to an optional blocker reason that disables Keep until cleared."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewFileKind",
          "anchor": "ReviewFileKind",
          "decl": "type ReviewFileKind string",
          "doc": "ReviewFileKind classifies the kind of file touched by an agent turn.\n",
          "file": "pkg/editor/review.go",
          "line": 78,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReviewFileScene",
                  "anchor": "ReviewFileScene"
                },
                {
                  "name": "ReviewFilePrefab",
                  "anchor": "ReviewFilePrefab"
                },
                {
                  "name": "ReviewFileData",
                  "anchor": "ReviewFileData"
                },
                {
                  "name": "ReviewFileGo",
                  "anchor": "ReviewFileGo"
                },
                {
                  "name": "ReviewFileOther",
                  "anchor": "ReviewFileOther"
                }
              ],
              "decl": "const (\n\tReviewFileScene  ReviewFileKind = \"scene\"\n\tReviewFilePrefab ReviewFileKind = \"prefab\"\n\tReviewFileData   ReviewFileKind = \"data\"\n\tReviewFileGo     ReviewFileKind = \"go\"\n\tReviewFileOther  ReviewFileKind = \"other\"\n)",
              "doc": "",
              "file": "pkg/editor/review.go",
              "line": 80
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewFileSummary",
          "anchor": "ReviewFileSummary",
          "decl": "type ReviewFileSummary struct {\n\tPath        string         `json:\"path\"`\n\tName        string         `json:\"name\"`\n\tFileKind    ReviewFileKind `json:\"fileKind\"`\n\tAdded       int            `json:\"added\"`\n\tChanged     int            `json:\"changed\"`\n\tRemoved     int            `json:\"removed\"`\n\tAllReverted bool           `json:\"allReverted\"`\n\tCollapsed   bool           `json:\"collapsed\"`\n}",
          "doc": "ReviewFileSummary summarizes one file group in the review.\n",
          "file": "pkg/editor/review.go",
          "line": 256,
          "members": [
            {
              "name": "Path",
              "anchor": "ReviewFileSummary.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "ReviewFileSummary.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileKind",
              "anchor": "ReviewFileSummary.FileKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Added",
              "anchor": "ReviewFileSummary.Added",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "ReviewFileSummary.Changed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "ReviewFileSummary.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AllReverted",
              "anchor": "ReviewFileSummary.AllReverted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Collapsed",
              "anchor": "ReviewFileSummary.Collapsed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewFilter",
          "anchor": "ReviewFilter",
          "decl": "type ReviewFilter string",
          "doc": "ReviewFilter selects which changes appear in the left review list.\n",
          "file": "pkg/editor/review.go",
          "line": 98,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReviewFilterAll",
                  "anchor": "ReviewFilterAll"
                },
                {
                  "name": "ReviewFilterAdded",
                  "anchor": "ReviewFilterAdded"
                },
                {
                  "name": "ReviewFilterChanged",
                  "anchor": "ReviewFilterChanged"
                },
                {
                  "name": "ReviewFilterRemoved",
                  "anchor": "ReviewFilterRemoved"
                },
                {
                  "name": "ReviewFilterUnseen",
                  "anchor": "ReviewFilterUnseen"
                },
                {
                  "name": "ReviewFilterNotes",
                  "anchor": "ReviewFilterNotes"
                }
              ],
              "decl": "const (\n\tReviewFilterAll     ReviewFilter = \"all\"\n\tReviewFilterAdded   ReviewFilter = \"added\"\n\tReviewFilterChanged ReviewFilter = \"changed\"\n\tReviewFilterRemoved ReviewFilter = \"removed\"\n\tReviewFilterUnseen  ReviewFilter = \"unseen\"\n\tReviewFilterNotes   ReviewFilter = \"notes\"\n)",
              "doc": "",
              "file": "pkg/editor/review.go",
              "line": 100
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewLineAuthor",
          "anchor": "ReviewLineAuthor",
          "decl": "type ReviewLineAuthor string",
          "doc": "ReviewLineAuthor tags who wrote a line in the review YAML pane or conflict card.\n",
          "file": "pkg/editor/review_conflicts.go",
          "line": 34,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReviewAuthorNone",
                  "anchor": "ReviewAuthorNone"
                },
                {
                  "name": "ReviewAuthorAgent",
                  "anchor": "ReviewAuthorAgent"
                },
                {
                  "name": "ReviewAuthorYou",
                  "anchor": "ReviewAuthorYou"
                }
              ],
              "decl": "const (\n\tReviewAuthorNone  ReviewLineAuthor = \"\"\n\tReviewAuthorAgent ReviewLineAuthor = \"agent\"\n\tReviewAuthorYou   ReviewLineAuthor = \"you\"\n)",
              "doc": "",
              "file": "pkg/editor/review_conflicts.go",
              "line": 36
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewNoteBatch",
          "anchor": "ReviewNoteBatch",
          "decl": "type ReviewNoteBatch struct {\n\tRound int               `json:\"round\"`\n\tNotes []ReviewAgentNote `json:\"notes\"`\n}",
          "doc": "ReviewNoteBatch is a batch of change-scoped notes explicitly dispatched via\n\"Send N notes\" or \"Revert and redo with this note\".\n",
          "file": "pkg/editor/review_notes.go",
          "line": 33,
          "members": [
            {
              "name": "Round",
              "anchor": "ReviewNoteBatch.Round",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Notes",
              "anchor": "ReviewNoteBatch.Notes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewOutcome",
          "anchor": "ReviewOutcome",
          "decl": "type ReviewOutcome string",
          "doc": "ReviewOutcome reports the lifecycle status of the most recent agent turn review.\n",
          "file": "pkg/editor/review.go",
          "line": 110,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReviewOutcomeNone",
                  "anchor": "ReviewOutcomeNone"
                },
                {
                  "name": "ReviewOutcomePending",
                  "anchor": "ReviewOutcomePending"
                },
                {
                  "name": "ReviewOutcomeKept",
                  "anchor": "ReviewOutcomeKept"
                },
                {
                  "name": "ReviewOutcomeReverted",
                  "anchor": "ReviewOutcomeReverted"
                }
              ],
              "decl": "const (\n\tReviewOutcomeNone     ReviewOutcome = \"\"\n\tReviewOutcomePending  ReviewOutcome = \"pending\"\n\tReviewOutcomeKept     ReviewOutcome = \"kept\"\n\tReviewOutcomeReverted ReviewOutcome = \"reverted\"\n)",
              "doc": "",
              "file": "pkg/editor/review.go",
              "line": 112
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewOutcomeRecord",
          "anchor": "ReviewOutcomeRecord",
          "decl": "type ReviewOutcomeRecord struct {\n\tReviewID string `json:\"reviewId,omitempty\"`\n\t// Action describes the normalized kind of change, such as \"moved the camera bounds\".\n\tAction  string `json:\"action\"`\n\tField   string `json:\"field,omitempty\"`\n\tFile    string `json:\"file,omitempty\"`\n\tSummary string `json:\"summary,omitempty\"`\n\tKept    bool   `json:\"kept\"`\n}",
          "doc": "ReviewOutcomeRecord records whether a reviewed agent change was kept or reverted,\nused to detect repeated revert patterns for Settings › Project rules suggestions.\n",
          "file": "pkg/editor/brief_rules.go",
          "line": 52,
          "members": [
            {
              "name": "ReviewID",
              "anchor": "ReviewOutcomeRecord.ReviewID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Action",
              "anchor": "ReviewOutcomeRecord.Action",
              "kind": "field",
              "doc": "Action describes the normalized kind of change, such as \"moved the camera bounds\"."
            },
            {
              "name": "Field",
              "anchor": "ReviewOutcomeRecord.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "ReviewOutcomeRecord.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "ReviewOutcomeRecord.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kept",
              "anchor": "ReviewOutcomeRecord.Kept",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewOverlayVisibility",
          "anchor": "ReviewOverlayVisibility",
          "decl": "type ReviewOverlayVisibility struct {\n\tAdded    bool `json:\"added\"`\n\tChanged  bool `json:\"changed\"`\n\tRemoved  bool `json:\"removed\"`\n\tSelected bool `json:\"selected\"`\n}",
          "doc": "ReviewOverlayVisibility controls which overlay kinds are visible in the Review viewport legend.\n",
          "file": "pkg/editor/review.go",
          "line": 303,
          "members": [
            {
              "name": "Added",
              "anchor": "ReviewOverlayVisibility.Added",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "ReviewOverlayVisibility.Changed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "ReviewOverlayVisibility.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Selected",
              "anchor": "ReviewOverlayVisibility.Selected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewRedoChange",
          "anchor": "ReviewRedoChange",
          "decl": "type ReviewRedoChange struct {\n\tChangeID    string\n\tDetail      string\n\tX           *float32\n\tY           *float32\n\tObjectDoc   *sceneformat.ObjectDoc\n\tLayerName   string\n\tFileContent []byte\n\tOldValue    string\n\tNewValue    string\n\tDeltaPct    string\n\tYAMLLines   []ReviewYAMLLine\n}",
          "doc": "ReviewRedoChange describes the agent's second-round (or later) revision for one noted change.\n",
          "file": "pkg/editor/review_notes.go",
          "line": 39,
          "members": [
            {
              "name": "ChangeID",
              "anchor": "ReviewRedoChange.ChangeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "ReviewRedoChange.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "ReviewRedoChange.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ReviewRedoChange.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectDoc",
              "anchor": "ReviewRedoChange.ObjectDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LayerName",
              "anchor": "ReviewRedoChange.LayerName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileContent",
              "anchor": "ReviewRedoChange.FileContent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldValue",
              "anchor": "ReviewRedoChange.OldValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewValue",
              "anchor": "ReviewRedoChange.NewValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaPct",
              "anchor": "ReviewRedoChange.DeltaPct",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAMLLines",
              "anchor": "ReviewRedoChange.YAMLLines",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewRowKind",
          "anchor": "ReviewRowKind",
          "decl": "type ReviewRowKind string",
          "doc": "ReviewRowKind identifies a visible row in the grouped left change list.\n",
          "file": "pkg/editor/review.go",
          "line": 120,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReviewRowFile",
                  "anchor": "ReviewRowFile"
                },
                {
                  "name": "ReviewRowKindHeader",
                  "anchor": "ReviewRowKindHeader"
                },
                {
                  "name": "ReviewRowCard",
                  "anchor": "ReviewRowCard"
                }
              ],
              "decl": "const (\n\tReviewRowFile       ReviewRowKind = \"file\"\n\tReviewRowKindHeader ReviewRowKind = \"kind\"\n\tReviewRowCard       ReviewRowKind = \"card\"\n)",
              "doc": "",
              "file": "pkg/editor/review.go",
              "line": 122
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewSceneOverlay",
          "anchor": "ReviewSceneOverlay",
          "decl": "type ReviewSceneOverlay struct {\n\tChangeID    string           `json:\"changeId\"`\n\tFile        string           `json:\"file\"`\n\tObjectID    string           `json:\"objectId\"`\n\tKind        ReviewChangeKind `json:\"kind\"`\n\tColorRole   string           `json:\"colorRole\"` // \"added\", \"changed\", \"removed\" (never \"accent\")\n\tFocused     bool             `json:\"focused\"`\n\tStrokeWidth float32          `json:\"strokeWidth\"` // 2.5 when focused, 1.5 otherwise\n\tDashed      bool             `json:\"dashed\"`\n\tPillText    string           `json:\"pillText\"`\n\tX           float32          `json:\"x\"`\n\tY           float32          `json:\"y\"`\n\tW           float32          `json:\"w\"`\n\tH           float32          `json:\"h\"`\n}",
          "doc": "ReviewSceneOverlay is an inspectable overlay entry drawn in the Review viewport or main editor viewport.\n",
          "file": "pkg/editor/review.go",
          "line": 286,
          "members": [
            {
              "name": "ChangeID",
              "anchor": "ReviewSceneOverlay.ChangeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "ReviewSceneOverlay.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ReviewSceneOverlay.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ReviewSceneOverlay.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorRole",
              "anchor": "ReviewSceneOverlay.ColorRole",
              "kind": "field",
              "doc": "\"added\", \"changed\", \"removed\" (never \"accent\")"
            },
            {
              "name": "Focused",
              "anchor": "ReviewSceneOverlay.Focused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StrokeWidth",
              "anchor": "ReviewSceneOverlay.StrokeWidth",
              "kind": "field",
              "doc": "2.5 when focused, 1.5 otherwise"
            },
            {
              "name": "Dashed",
              "anchor": "ReviewSceneOverlay.Dashed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PillText",
              "anchor": "ReviewSceneOverlay.PillText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "ReviewSceneOverlay.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ReviewSceneOverlay.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "ReviewSceneOverlay.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "ReviewSceneOverlay.H",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewSnapshot",
          "anchor": "ReviewSnapshot",
          "decl": "type ReviewSnapshot struct {\n\tActive               bool                    `json:\"active\"`\n\tOpen                 bool                    `json:\"open\"`\n\tOutcome              ReviewOutcome           `json:\"outcome\"`\n\tRequest              string                  `json:\"request,omitempty\"`\n\tRound                int                     `json:\"round,omitempty\"`\n\tViewRound            int                     `json:\"viewRound,omitempty\"`\n\tViewingReadOnlyRound bool                    `json:\"viewingReadOnlyRound,omitempty\"`\n\tDraftNoteCount       int                     `json:\"draftNoteCount,omitempty\"`\n\tComposingChangeID    string                  `json:\"composingChangeId,omitempty\"`\n\tPendingBatch         *ReviewNoteBatch        `json:\"pendingBatch,omitempty\"`\n\tRoundBanner          string                  `json:\"roundBanner,omitempty\"`\n\tTotalChanges         int                     `json:\"totalChanges\"`\n\tSeenCount            int                     `json:\"seenCount\"`\n\tKeptCount            int                     `json:\"keptCount\"`\n\tRevertedCount        int                     `json:\"revertedCount\"`\n\tFileCount            int                     `json:\"fileCount\"`\n\tFocusedID            string                  `json:\"focusedId,omitempty\"`\n\tFocusedRowKey        string                  `json:\"focusedRowKey,omitempty\"`\n\tFilter               ReviewFilter            `json:\"filter,omitempty\"`\n\tSearch               string                  `json:\"search,omitempty\"`\n\tPeekBefore           bool                    `json:\"peekBefore\"`\n\tRevertConfirm        bool                    `json:\"revertConfirm\"`\n\tBlockers             []ReviewBlocker         `json:\"blockers,omitempty\"`\n\tOverlayLegend        ReviewOverlayVisibility `json:\"overlayLegend\"`\n\tFiles                []ReviewFileSummary     `json:\"files,omitempty\"`\n\tChanges              []ReviewChange          `json:\"changes,omitempty\"`\n\tLastRounds           int                     `json:\"lastRounds,omitempty\"`\n\tLastOutcomeMsg       string                  `json:\"lastOutcomeMsg,omitempty\"`\n}",
          "doc": "ReviewSnapshot is the read-only state returned by Editor.ReviewStatus and editormcp's review_status tool.\n",
          "file": "pkg/editor/review.go",
          "line": 348,
          "members": [
            {
              "name": "Active",
              "anchor": "ReviewSnapshot.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Open",
              "anchor": "ReviewSnapshot.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Outcome",
              "anchor": "ReviewSnapshot.Outcome",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Request",
              "anchor": "ReviewSnapshot.Request",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Round",
              "anchor": "ReviewSnapshot.Round",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewRound",
              "anchor": "ReviewSnapshot.ViewRound",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewingReadOnlyRound",
              "anchor": "ReviewSnapshot.ViewingReadOnlyRound",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DraftNoteCount",
              "anchor": "ReviewSnapshot.DraftNoteCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ComposingChangeID",
              "anchor": "ReviewSnapshot.ComposingChangeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PendingBatch",
              "anchor": "ReviewSnapshot.PendingBatch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RoundBanner",
              "anchor": "ReviewSnapshot.RoundBanner",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalChanges",
              "anchor": "ReviewSnapshot.TotalChanges",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SeenCount",
              "anchor": "ReviewSnapshot.SeenCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptCount",
              "anchor": "ReviewSnapshot.KeptCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RevertedCount",
              "anchor": "ReviewSnapshot.RevertedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileCount",
              "anchor": "ReviewSnapshot.FileCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusedID",
              "anchor": "ReviewSnapshot.FocusedID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusedRowKey",
              "anchor": "ReviewSnapshot.FocusedRowKey",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Filter",
              "anchor": "ReviewSnapshot.Filter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Search",
              "anchor": "ReviewSnapshot.Search",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PeekBefore",
              "anchor": "ReviewSnapshot.PeekBefore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RevertConfirm",
              "anchor": "ReviewSnapshot.RevertConfirm",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blockers",
              "anchor": "ReviewSnapshot.Blockers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OverlayLegend",
              "anchor": "ReviewSnapshot.OverlayLegend",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "ReviewSnapshot.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changes",
              "anchor": "ReviewSnapshot.Changes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastRounds",
              "anchor": "ReviewSnapshot.LastRounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastOutcomeMsg",
              "anchor": "ReviewSnapshot.LastOutcomeMsg",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewTurnInput",
          "anchor": "ReviewTurnInput",
          "decl": "type ReviewTurnInput struct {\n\t// Request is the quoted user request displayed in the Review header and Agent panel.\n\tRequest string\n\t// Files are the project files touched by this agent turn, in presentation order.\n\tFiles []ReviewFileInput\n\t// DefaultWhy is used when a change has no per-target or per-file reason.\n\tDefaultWhy string\n\t// StartPending leaves the review pending in the Agent panel instead of opening full-window immediately.\n\tStartPending bool\n}",
          "doc": "ReviewTurnInput configures Editor.StartTurnReview.\n",
          "file": "pkg/editor/review.go",
          "line": 336,
          "members": [
            {
              "name": "Request",
              "anchor": "ReviewTurnInput.Request",
              "kind": "field",
              "doc": "Request is the quoted user request displayed in the Review header and Agent panel."
            },
            {
              "name": "Files",
              "anchor": "ReviewTurnInput.Files",
              "kind": "field",
              "doc": "Files are the project files touched by this agent turn, in presentation order."
            },
            {
              "name": "DefaultWhy",
              "anchor": "ReviewTurnInput.DefaultWhy",
              "kind": "field",
              "doc": "DefaultWhy is used when a change has no per-target or per-file reason."
            },
            {
              "name": "StartPending",
              "anchor": "ReviewTurnInput.StartPending",
              "kind": "field",
              "doc": "StartPending leaves the review pending in the Agent panel instead of opening full-window immediately."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewViewportPin",
          "anchor": "ReviewViewportPin",
          "decl": "type ReviewViewportPin struct {\n\tChangeID string  `json:\"changeId\"`\n\tFile     string  `json:\"file\"`\n\tObjectID string  `json:\"objectId\"`\n\tNote     string  `json:\"note\"`\n\tRedone   bool    `json:\"redone,omitempty\"`\n\tX        float32 `json:\"x\"`\n\tY        float32 `json:\"y\"`\n}",
          "doc": "ReviewViewportPin represents a note pin positioned beside a noted scene object\nin the Review viewport or the paused 2D editor viewport.\n",
          "file": "pkg/editor/review_notes.go",
          "line": 55,
          "members": [
            {
              "name": "ChangeID",
              "anchor": "ReviewViewportPin.ChangeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "ReviewViewportPin.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ReviewViewportPin.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "ReviewViewportPin.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Redone",
              "anchor": "ReviewViewportPin.Redone",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "ReviewViewportPin.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ReviewViewportPin.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewVisibleRow",
          "anchor": "ReviewVisibleRow",
          "decl": "type ReviewVisibleRow struct {\n\tKey            string           `json:\"key\"`\n\tRowKind        ReviewRowKind    `json:\"rowKind\"`\n\tFile           string           `json:\"file\"`\n\tFileName       string           `json:\"fileName,omitempty\"`\n\tFileKind       ReviewFileKind   `json:\"fileKind,omitempty\"`\n\tKind           ReviewChangeKind `json:\"kind,omitempty\"`\n\tChangeID       string           `json:\"changeId,omitempty\"`\n\tCount          int              `json:\"count,omitempty\"`\n\tAdded          int              `json:\"added,omitempty\"`\n\tChanged        int              `json:\"changed,omitempty\"`\n\tRemoved        int              `json:\"removed,omitempty\"`\n\tCollapsed      bool             `json:\"collapsed,omitempty\"`\n\tAllReverted    bool             `json:\"allReverted,omitempty\"`\n\tCanRevertGroup bool             `json:\"canRevertGroup,omitempty\"`\n}",
          "doc": "ReviewVisibleRow represents one rendered row in the left grouped change list.\n",
          "file": "pkg/editor/review.go",
          "line": 268,
          "members": [
            {
              "name": "Key",
              "anchor": "ReviewVisibleRow.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RowKind",
              "anchor": "ReviewVisibleRow.RowKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "ReviewVisibleRow.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileName",
              "anchor": "ReviewVisibleRow.FileName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileKind",
              "anchor": "ReviewVisibleRow.FileKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ReviewVisibleRow.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangeID",
              "anchor": "ReviewVisibleRow.ChangeID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "ReviewVisibleRow.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Added",
              "anchor": "ReviewVisibleRow.Added",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "ReviewVisibleRow.Changed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "ReviewVisibleRow.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Collapsed",
              "anchor": "ReviewVisibleRow.Collapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AllReverted",
              "anchor": "ReviewVisibleRow.AllReverted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CanRevertGroup",
              "anchor": "ReviewVisibleRow.CanRevertGroup",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewYAMLError",
          "anchor": "ReviewYAMLError",
          "decl": "type ReviewYAMLError struct {\n\tLine        int            `json:\"line\"`\n\tLocalLine   int            `json:\"localLine\"`\n\tTitle       string         `json:\"title\"`\n\tMessage     string         `json:\"message\"`\n\tFix         *ReviewYAMLFix `json:\"fix,omitempty\"`\n\tRawParseErr string         `json:\"rawParseErr,omitempty\"`\n}",
          "doc": "ReviewYAMLError describes a syntax or validation error while hand-editing YAML in a review.\n",
          "file": "pkg/editor/review_conflicts.go",
          "line": 68,
          "members": [
            {
              "name": "Line",
              "anchor": "ReviewYAMLError.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalLine",
              "anchor": "ReviewYAMLError.LocalLine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "ReviewYAMLError.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "ReviewYAMLError.Message",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fix",
              "anchor": "ReviewYAMLError.Fix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RawParseErr",
              "anchor": "ReviewYAMLError.RawParseErr",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewYAMLFix",
          "anchor": "ReviewYAMLFix",
          "decl": "type ReviewYAMLFix struct {\n\tLabel       string `json:\"label\"`\n\tDescription string `json:\"description,omitempty\"`\n\tPatchedYAML string `json:\"patchedYaml\"`\n}",
          "doc": "ReviewYAMLFix is a mechanical one-step fix offered when a YAML parse error names what is missing.\n",
          "file": "pkg/editor/review_conflicts.go",
          "line": 61,
          "members": [
            {
              "name": "Label",
              "anchor": "ReviewYAMLFix.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Description",
              "anchor": "ReviewYAMLFix.Description",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PatchedYAML",
              "anchor": "ReviewYAMLFix.PatchedYAML",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewYAMLLine",
          "anchor": "ReviewYAMLLine",
          "decl": "type ReviewYAMLLine struct {\n\tLine   int              `json:\"line\"`\n\tSign   string           `json:\"sign,omitempty\"` // \"\", \"+\", \"-\"\n\tText   string           `json:\"text\"`\n\tTag    string           `json:\"tag,omitempty\"`\n\tAuthor ReviewLineAuthor `json:\"author,omitempty\"`\n\tError  bool             `json:\"error,omitempty\"`\n}",
          "doc": "ReviewYAMLLine is one line in the right-hand YAML/code diff view.\n",
          "file": "pkg/editor/review.go",
          "line": 129,
          "members": [
            {
              "name": "Line",
              "anchor": "ReviewYAMLLine.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "ReviewYAMLLine.Sign",
              "kind": "field",
              "doc": "\"\", \"+\", \"-\""
            },
            {
              "name": "Text",
              "anchor": "ReviewYAMLLine.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "ReviewYAMLLine.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Author",
              "anchor": "ReviewYAMLLine.Author",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "ReviewYAMLLine.Error",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RigHandle",
          "anchor": "RigHandle",
          "decl": "type RigHandle int",
          "doc": "RigHandle identifies an interactive handle in the 2D skeletal rig editor canvas.\n",
          "file": "pkg/editor/rig_handles.go",
          "line": 14,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RigHandleNone",
                  "anchor": "RigHandleNone"
                },
                {
                  "name": "RigHandleBoneMove",
                  "anchor": "RigHandleBoneMove"
                },
                {
                  "name": "RigHandleBoneRotate",
                  "anchor": "RigHandleBoneRotate"
                },
                {
                  "name": "RigHandleBoneLength",
                  "anchor": "RigHandleBoneLength"
                },
                {
                  "name": "RigHandleAttachmentOrigin",
                  "anchor": "RigHandleAttachmentOrigin"
                }
              ],
              "decl": "const (\n\t// RigHandleNone is no handle.\n\tRigHandleNone RigHandle = iota\n\t// RigHandleBoneMove is the joint circle at the selected bone's origin: dragging moves the bone in its parent's space.\n\tRigHandleBoneMove\n\t// RigHandleBoneRotate is the rotation ring around the selected bone's origin: dragging rotates the bone.\n\tRigHandleBoneRotate\n\t// RigHandleBoneLength is the diamond at the selected bone's tip: dragging sets the bone's length.\n\tRigHandleBoneLength\n\t// RigHandleAttachmentOrigin is the pivot crosshair on the selected slot's active attachment: dragging edits OriginX and OriginY.\n\tRigHandleAttachmentOrigin\n)",
              "doc": "",
              "file": "pkg/editor/rig_handles.go",
              "line": 16
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "RigHandle.String",
              "recv": "RigHandle",
              "decl": "func (h RigHandle) String() string",
              "doc": "String returns a human-readable label for h.\n",
              "file": "pkg/editor/rig_handles.go",
              "line": 30
            }
          ]
        },
        {
          "name": "RightPanelTab",
          "anchor": "RightPanelTab",
          "decl": "type RightPanelTab string",
          "doc": "RightPanelTab selects which tab is visible in the editor's right-hand panel.\n",
          "file": "pkg/editor/agent_turn.go",
          "line": 96,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RightPanelInspector",
                  "anchor": "RightPanelInspector"
                },
                {
                  "name": "RightPanelAgent",
                  "anchor": "RightPanelAgent"
                }
              ],
              "decl": "const (\n\tRightPanelInspector RightPanelTab = \"inspector\"\n\tRightPanelAgent     RightPanelTab = \"agent\"\n)",
              "doc": "",
              "file": "pkg/editor/agent_turn.go",
              "line": 98
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RightRailMode",
          "anchor": "RightRailMode",
          "decl": "type RightRailMode = RightRailTab",
          "doc": "RightRailMode aliases RightRailTab for callers selecting which panel occupies the editor's right rail.\n",
          "file": "pkg/editor/agent_composer.go",
          "line": 36,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RightRailTab",
          "anchor": "RightRailTab",
          "decl": "type RightRailTab string",
          "doc": "RightRailTab selects which panel is shown in the right sidebar.\n",
          "file": "pkg/editor/agent.go",
          "line": 22,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RunGameOptions",
          "anchor": "RunGameOptions",
          "decl": "type RunGameOptions struct {\n\t// StartAtOpenScene passes the currently open scene (when it belongs to the open project) to `game dev -scene <path>` and sets hotreload.SceneEnv in the child environment.\n\tStartAtOpenScene bool\n\t// Automation passes `-automation` to `game dev` and connects the editor's remote scene tree and inspector to the running game over MCP.\n\tAutomation bool\n\t// ExtraArgs are optional extra arguments appended after `go tool game dev` (and `-scene <path>` when set).\n\tExtraArgs []string\n}",
          "doc": "RunGameOptions configures launching the open project with `go tool game dev`.\n",
          "file": "pkg/editor/run_game.go",
          "line": 24,
          "members": [
            {
              "name": "StartAtOpenScene",
              "anchor": "RunGameOptions.StartAtOpenScene",
              "kind": "field",
              "doc": "StartAtOpenScene passes the currently open scene (when it belongs to the open project) to `game dev -scene <path>` and sets hotreload.SceneEnv in the child environment."
            },
            {
              "name": "Automation",
              "anchor": "RunGameOptions.Automation",
              "kind": "field",
              "doc": "Automation passes `-automation` to `game dev` and connects the editor's remote scene tree and inspector to the running game over MCP."
            },
            {
              "name": "ExtraArgs",
              "anchor": "RunGameOptions.ExtraArgs",
              "kind": "field",
              "doc": "ExtraArgs are optional extra arguments appended after `go tool game dev` (and `-scene <path>` when set)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RunGameSpec",
          "anchor": "RunGameSpec",
          "decl": "type RunGameSpec struct {\n\t// Dir is the open project's root directory where the command executes.\n\tDir string\n\t// Name is the executable to run (\"go\").\n\tName string\n\t// Args are the command arguments (for example [\"tool\", \"game\", \"dev\"]).\n\tArgs []string\n\t// Env is the full process environment passed to the child process.\n\tEnv []string\n\t// Scene is the slash-separated project-relative path of the open scene when StartAtOpenScene is active, or empty.\n\tScene string\n}",
          "doc": "RunGameSpec describes the child process started by RunGame / RunGameWith.\n",
          "file": "pkg/editor/run_game.go",
          "line": 34,
          "members": [
            {
              "name": "Dir",
              "anchor": "RunGameSpec.Dir",
              "kind": "field",
              "doc": "Dir is the open project's root directory where the command executes."
            },
            {
              "name": "Name",
              "anchor": "RunGameSpec.Name",
              "kind": "field",
              "doc": "Name is the executable to run (\"go\")."
            },
            {
              "name": "Args",
              "anchor": "RunGameSpec.Args",
              "kind": "field",
              "doc": "Args are the command arguments (for example [\"tool\", \"game\", \"dev\"])."
            },
            {
              "name": "Env",
              "anchor": "RunGameSpec.Env",
              "kind": "field",
              "doc": "Env is the full process environment passed to the child process."
            },
            {
              "name": "Scene",
              "anchor": "RunGameSpec.Scene",
              "kind": "field",
              "doc": "Scene is the slash-separated project-relative path of the open scene when StartAtOpenScene is active, or empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SafeRenameAgentRequest",
          "anchor": "SafeRenameAgentRequest",
          "decl": "type SafeRenameAgentRequest struct {\n\tFile    string\n\tLine    int\n\tIdent   string\n\tOldPath string\n\tNewPath string\n}",
          "doc": "SafeRenameAgentRequest is passed to Editor.OnAskAgentUpdateRef when the author asks the agent to update a non-rewritten reference.\n",
          "file": "pkg/editor/usages.go",
          "line": 171,
          "members": [
            {
              "name": "File",
              "anchor": "SafeRenameAgentRequest.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "SafeRenameAgentRequest.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ident",
              "anchor": "SafeRenameAgentRequest.Ident",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldPath",
              "anchor": "SafeRenameAgentRequest.OldPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewPath",
              "anchor": "SafeRenameAgentRequest.NewPath",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SafeRenameFileDiff",
          "anchor": "SafeRenameFileDiff",
          "decl": "type SafeRenameFileDiff struct {\n\tPath               string               `json:\"path\"`\n\tOldPath            string               `json:\"oldPath\"`\n\tGroup              UsageGroupKind       `json:\"group\"`\n\tChangeCount        int                  `json:\"changeCount\"`\n\tDiffs              []SafeRenameLineDiff `json:\"diffs\"`\n\tPreviewLines       []CodePreviewLine    `json:\"previewLines,omitempty\"`\n\tPreservedOverrides []string             `json:\"preservedOverrides,omitempty\"`\n}",
          "doc": "SafeRenameFileDiff describes the planned changes to one YAML file in a safe rename review.\n",
          "file": "pkg/editor/usages.go",
          "line": 148,
          "members": [
            {
              "name": "Path",
              "anchor": "SafeRenameFileDiff.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldPath",
              "anchor": "SafeRenameFileDiff.OldPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Group",
              "anchor": "SafeRenameFileDiff.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangeCount",
              "anchor": "SafeRenameFileDiff.ChangeCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Diffs",
              "anchor": "SafeRenameFileDiff.Diffs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreviewLines",
              "anchor": "SafeRenameFileDiff.PreviewLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreservedOverrides",
              "anchor": "SafeRenameFileDiff.PreservedOverrides",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SafeRenameLineDiff",
          "anchor": "SafeRenameLineDiff",
          "decl": "type SafeRenameLineDiff struct {\n\tLine    int    `json:\"line\"`\n\tOldText string `json:\"oldText\"`\n\tNewText string `json:\"newText\"`\n}",
          "doc": "SafeRenameLineDiff records one rewritten line pair (old -> new) inside a YAML file.\n",
          "file": "pkg/editor/usages.go",
          "line": 141,
          "members": [
            {
              "name": "Line",
              "anchor": "SafeRenameLineDiff.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldText",
              "anchor": "SafeRenameLineDiff.OldText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewText",
              "anchor": "SafeRenameLineDiff.NewText",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SafeRenamePlan",
          "anchor": "SafeRenamePlan",
          "decl": "type SafeRenamePlan struct {\n\tFrom               string               `json:\"from\"`\n\tTo                 string               `json:\"to\"`\n\tFolderPrefix       string               `json:\"folderPrefix\"`\n\tOldStem            string               `json:\"oldStem\"`\n\tNewStem            string               `json:\"newStem\"`\n\tSuffix             string               `json:\"suffix\"`\n\tValid              bool                 `json:\"valid\"`\n\tValidationMsg      string               `json:\"validationMsg\"`\n\tMovedContentLines  []CodePreviewLine    `json:\"movedContentLines,omitempty\"`\n\tFiles              []SafeRenameFileDiff `json:\"files,omitempty\"`\n\tProblems           []SafeRenameProblem  `json:\"problems,omitempty\"`\n\tRewrittenFileCount int                  `json:\"rewrittenFileCount\"`\n\tTotalTouchedFiles  int                  `json:\"totalTouchedFiles\"`\n\tRewrittenRefCount  int                  `json:\"rewrittenRefCount\"`\n\tIndexUpdated       bool                 `json:\"indexUpdated,omitempty\"`\n\tPreservedObjects   []string             `json:\"preservedObjects,omitempty\"`\n}",
          "doc": "SafeRenamePlan is the dry-run result of PreviewSafeRename before any file is written to disk.\n",
          "file": "pkg/editor/usages.go",
          "line": 180,
          "members": [
            {
              "name": "From",
              "anchor": "SafeRenamePlan.From",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "To",
              "anchor": "SafeRenamePlan.To",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FolderPrefix",
              "anchor": "SafeRenamePlan.FolderPrefix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldStem",
              "anchor": "SafeRenamePlan.OldStem",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewStem",
              "anchor": "SafeRenamePlan.NewStem",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Suffix",
              "anchor": "SafeRenamePlan.Suffix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Valid",
              "anchor": "SafeRenamePlan.Valid",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ValidationMsg",
              "anchor": "SafeRenamePlan.ValidationMsg",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MovedContentLines",
              "anchor": "SafeRenamePlan.MovedContentLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "SafeRenamePlan.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Problems",
              "anchor": "SafeRenamePlan.Problems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RewrittenFileCount",
              "anchor": "SafeRenamePlan.RewrittenFileCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalTouchedFiles",
              "anchor": "SafeRenamePlan.TotalTouchedFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RewrittenRefCount",
              "anchor": "SafeRenamePlan.RewrittenRefCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IndexUpdated",
              "anchor": "SafeRenamePlan.IndexUpdated",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreservedObjects",
              "anchor": "SafeRenamePlan.PreservedObjects",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "FileDiff",
              "anchor": "SafeRenamePlan.FileDiff",
              "recv": "*SafeRenamePlan",
              "decl": "func (p *SafeRenamePlan) FileDiff(filePath string) *SafeRenameFileDiff",
              "doc": "FileDiff returns the SafeRenameFileDiff for the given old or new project path, or nil.\n",
              "file": "pkg/editor/usages.go",
              "line": 200
            }
          ]
        },
        {
          "name": "SafeRenameProblem",
          "anchor": "SafeRenameProblem",
          "decl": "type SafeRenameProblem struct {\n\tFile         string `json:\"file\"`\n\tLine         int    `json:\"line\"`\n\tIdent        string `json:\"ident,omitempty\"`\n\tOldPath      string `json:\"oldPath\"`\n\tNewPath      string `json:\"newPath,omitempty\"`\n\tMessage      string `json:\"message\"`\n\tNotRewritten bool   `json:\"notRewritten\"`\n\tAskSent      bool   `json:\"askSent,omitempty\"`\n}",
          "doc": "SafeRenameProblem describes a non-YAML reference (such as a Go string constant) that safe rename intentionally does not rewrite.\n",
          "file": "pkg/editor/usages.go",
          "line": 159,
          "members": [
            {
              "name": "File",
              "anchor": "SafeRenameProblem.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "SafeRenameProblem.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ident",
              "anchor": "SafeRenameProblem.Ident",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldPath",
              "anchor": "SafeRenameProblem.OldPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewPath",
              "anchor": "SafeRenameProblem.NewPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "SafeRenameProblem.Message",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NotRewritten",
              "anchor": "SafeRenameProblem.NotRewritten",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AskSent",
              "anchor": "SafeRenameProblem.AskSent",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SaveErrorKind",
          "anchor": "SaveErrorKind",
          "decl": "type SaveErrorKind string",
          "doc": "SaveErrorKind classifies common filesystem save errors for status bar messages.\n",
          "file": "pkg/editor/autosave.go",
          "line": 56,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SaveErrorNone",
                  "anchor": "SaveErrorNone"
                },
                {
                  "name": "SaveErrorReadOnly",
                  "anchor": "SaveErrorReadOnly"
                },
                {
                  "name": "SaveErrorDiskFull",
                  "anchor": "SaveErrorDiskFull"
                },
                {
                  "name": "SaveErrorOther",
                  "anchor": "SaveErrorOther"
                }
              ],
              "decl": "const (\n\tSaveErrorNone     SaveErrorKind = \"\"\n\tSaveErrorReadOnly SaveErrorKind = \"read_only\"\n\tSaveErrorDiskFull SaveErrorKind = \"disk_full\"\n\tSaveErrorOther    SaveErrorKind = \"other\"\n)",
              "doc": "",
              "file": "pkg/editor/autosave.go",
              "line": 58
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SaveStatus",
          "anchor": "SaveStatus",
          "decl": "type SaveStatus struct {\n\t// Kind is SaveStatusSaved, SaveStatusSaving (only after 300 ms in flight), or SaveStatusFailed.\n\tKind SaveStatusKind\n\t// LastSavedAt is when the last save succeeded (zero if none yet in this session).\n\tLastSavedAt time.Time\n\t// HasSaved reports whether a save has succeeded during this session.\n\tHasSaved bool\n\t// ErrorKind classifies the active save failure when Kind == SaveStatusFailed.\n\tErrorKind SaveErrorKind\n\t// ErrorMessage is the localized status-bar message when Kind == SaveStatusFailed\n\t// (for example \"Couldn't save: folder is read-only\" or \"Couldn't save: disk is full · 12 MB free\").\n\tErrorMessage string\n\t// RawError is the underlying error string for diagnostics and MCP warnings.\n\tRawError string\n\t// TargetPath is the file path that failed to save (project-relative when inside the project, or OS path).\n\tTargetPath string\n\t// FailedTabID is the scene tab ID associated with a failed scene save, or 0 for non-tab saves.\n\tFailedTabID uint64\n\t// FailedAt is when the active save failure occurred.\n\tFailedAt time.Time\n\t// AutoSaveFailure reports whether the active failure came from an automatic save (kept in the status bar, never toasted).\n\tAutoSaveFailure bool\n}",
          "doc": "SaveStatus describes the current save state shown in the status bar and reported to editormcp.\n",
          "file": "pkg/editor/autosave.go",
          "line": 66,
          "members": [
            {
              "name": "Kind",
              "anchor": "SaveStatus.Kind",
              "kind": "field",
              "doc": "Kind is SaveStatusSaved, SaveStatusSaving (only after 300 ms in flight), or SaveStatusFailed."
            },
            {
              "name": "LastSavedAt",
              "anchor": "SaveStatus.LastSavedAt",
              "kind": "field",
              "doc": "LastSavedAt is when the last save succeeded (zero if none yet in this session)."
            },
            {
              "name": "HasSaved",
              "anchor": "SaveStatus.HasSaved",
              "kind": "field",
              "doc": "HasSaved reports whether a save has succeeded during this session."
            },
            {
              "name": "ErrorKind",
              "anchor": "SaveStatus.ErrorKind",
              "kind": "field",
              "doc": "ErrorKind classifies the active save failure when Kind == SaveStatusFailed."
            },
            {
              "name": "ErrorMessage",
              "anchor": "SaveStatus.ErrorMessage",
              "kind": "field",
              "doc": "ErrorMessage is the localized status-bar message when Kind == SaveStatusFailed\n(for example \"Couldn't save: folder is read-only\" or \"Couldn't save: disk is full · 12 MB free\")."
            },
            {
              "name": "RawError",
              "anchor": "SaveStatus.RawError",
              "kind": "field",
              "doc": "RawError is the underlying error string for diagnostics and MCP warnings."
            },
            {
              "name": "TargetPath",
              "anchor": "SaveStatus.TargetPath",
              "kind": "field",
              "doc": "TargetPath is the file path that failed to save (project-relative when inside the project, or OS path)."
            },
            {
              "name": "FailedTabID",
              "anchor": "SaveStatus.FailedTabID",
              "kind": "field",
              "doc": "FailedTabID is the scene tab ID associated with a failed scene save, or 0 for non-tab saves."
            },
            {
              "name": "FailedAt",
              "anchor": "SaveStatus.FailedAt",
              "kind": "field",
              "doc": "FailedAt is when the active save failure occurred."
            },
            {
              "name": "AutoSaveFailure",
              "anchor": "SaveStatus.AutoSaveFailure",
              "kind": "field",
              "doc": "AutoSaveFailure reports whether the active failure came from an automatic save (kept in the status bar, never toasted)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SaveStatusKind",
          "anchor": "SaveStatusKind",
          "decl": "type SaveStatusKind int",
          "doc": "SaveStatusKind identifies the save indicator state shown in the status bar.\n",
          "file": "pkg/editor/autosave.go",
          "line": 30,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SaveStatusSaved",
                  "anchor": "SaveStatusSaved"
                },
                {
                  "name": "SaveStatusSaving",
                  "anchor": "SaveStatusSaving"
                },
                {
                  "name": "SaveStatusFailed",
                  "anchor": "SaveStatusFailed"
                }
              ],
              "decl": "const (\n\t// SaveStatusSaved indicates the document is saved (or a save is under the 300 ms indicator threshold).\n\tSaveStatusSaved SaveStatusKind = iota\n\t// SaveStatusSaving indicates a save has been running for at least SavingIndicatorDelay (300 ms).\n\tSaveStatusSaving\n\t// SaveStatusFailed indicates an autosave failed and remains in the status bar with Retry and Save as… until fixed.\n\tSaveStatusFailed\n)",
              "doc": "",
              "file": "pkg/editor/autosave.go",
              "line": 32
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "SaveStatusKind.String",
              "recv": "SaveStatusKind",
              "decl": "func (k SaveStatusKind) String() string",
              "doc": "String returns a lowercase name for k.\n",
              "file": "pkg/editor/autosave.go",
              "line": 42
            }
          ]
        },
        {
          "name": "SceneComparison",
          "anchor": "SceneComparison",
          "decl": "type SceneComparison struct {\n\tHeadDoc   *sceneformat.SceneDoc   `json:\"-\"`\n\tNowDoc    *sceneformat.SceneDoc   `json:\"-\"`\n\tHeadBuilt *sceneformat.BuiltScene `json:\"-\"`\n\tNowBuilt  *sceneformat.BuiltScene `json:\"-\"`\n\tAdded     []SceneObjectChange     `json:\"added,omitempty\"`\n\tChanged   []SceneObjectChange     `json:\"changed,omitempty\"`\n\tRemoved   []SceneObjectChange     `json:\"removed,omitempty\"`\n\tHeadErr   string                  `json:\"headErr,omitempty\"`\n\tNowErr    string                  `json:\"nowErr,omitempty\"`\n}",
          "doc": "SceneComparison holds the parsed HEAD and working-tree versions of a changed scene along with per-object deltas.\n",
          "file": "pkg/editor/changes.go",
          "line": 90,
          "members": [
            {
              "name": "HeadDoc",
              "anchor": "SceneComparison.HeadDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NowDoc",
              "anchor": "SceneComparison.NowDoc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeadBuilt",
              "anchor": "SceneComparison.HeadBuilt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NowBuilt",
              "anchor": "SceneComparison.NowBuilt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Added",
              "anchor": "SceneComparison.Added",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "SceneComparison.Changed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "SceneComparison.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeadErr",
              "anchor": "SceneComparison.HeadErr",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NowErr",
              "anchor": "SceneComparison.NowErr",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SceneConflictEntry",
          "anchor": "SceneConflictEntry",
          "decl": "type SceneConflictEntry struct {\n\tObjectID    string\n\tObjectName  string\n\tLayer       string\n\tMineChanged bool\n\tDiskChanged bool\n\tOverlap     bool\n\tMineSummary string\n\tDiskSummary string\n\tNote        string\n\tChoice      DiskMergeChoice\n}",
          "doc": "SceneConflictEntry describes one object touched in the editor, on disk, or on both sides during an external scene conflict.\n",
          "file": "pkg/editor/disk_watch.go",
          "line": 65,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "SceneConflictEntry.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectName",
              "anchor": "SceneConflictEntry.ObjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "SceneConflictEntry.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MineChanged",
              "anchor": "SceneConflictEntry.MineChanged",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DiskChanged",
              "anchor": "SceneConflictEntry.DiskChanged",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Overlap",
              "anchor": "SceneConflictEntry.Overlap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MineSummary",
              "anchor": "SceneConflictEntry.MineSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DiskSummary",
              "anchor": "SceneConflictEntry.DiskSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Note",
              "anchor": "SceneConflictEntry.Note",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Choice",
              "anchor": "SceneConflictEntry.Choice",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SceneObjectChange",
          "anchor": "SceneObjectChange",
          "decl": "type SceneObjectChange struct {\n\tID      string                 `json:\"id\"`\n\tName    string                 `json:\"name\"`\n\tLayer   string                 `json:\"layer,omitempty\"`\n\tKind    SceneObjectChangeKind  `json:\"kind\"`\n\tSummary string                 `json:\"summary,omitempty\"`\n\tHeadObj *sceneformat.ObjectDoc `json:\"-\"`\n\tNowObj  *sceneformat.ObjectDoc `json:\"-\"`\n}",
          "doc": "SceneObjectChange describes one added, changed, or removed object in a scene compared with HEAD.\n",
          "file": "pkg/editor/changes.go",
          "line": 79,
          "members": [
            {
              "name": "ID",
              "anchor": "SceneObjectChange.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "SceneObjectChange.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "SceneObjectChange.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "SceneObjectChange.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "SceneObjectChange.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeadObj",
              "anchor": "SceneObjectChange.HeadObj",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NowObj",
              "anchor": "SceneObjectChange.NowObj",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SceneObjectChangeKind",
          "anchor": "SceneObjectChangeKind",
          "decl": "type SceneObjectChangeKind string",
          "doc": "SceneObjectChangeKind classifies how a scene object differs from HEAD.\n",
          "file": "pkg/editor/changes.go",
          "line": 70,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SceneObjectAdded",
                  "anchor": "SceneObjectAdded"
                },
                {
                  "name": "SceneObjectChanged",
                  "anchor": "SceneObjectChanged"
                },
                {
                  "name": "SceneObjectRemoved",
                  "anchor": "SceneObjectRemoved"
                }
              ],
              "decl": "const (\n\tSceneObjectAdded   SceneObjectChangeKind = \"added\"\n\tSceneObjectChanged SceneObjectChangeKind = \"changed\"\n\tSceneObjectRemoved SceneObjectChangeKind = \"removed\"\n)",
              "doc": "",
              "file": "pkg/editor/changes.go",
              "line": 72
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SceneObjectDiff",
          "anchor": "SceneObjectDiff",
          "decl": "type SceneObjectDiff struct {\n\tObjectID   string\n\tObjectName string\n\tLayer      string\n\tAction     string // \"added\", \"removed\", \"changed\"\n\tDetail     string\n}",
          "doc": "SceneObjectDiff summarizes one object-level change from a quiet external scene reload.\n",
          "file": "pkg/editor/disk_watch.go",
          "line": 91,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "SceneObjectDiff.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectName",
              "anchor": "SceneObjectDiff.ObjectName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "SceneObjectDiff.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Action",
              "anchor": "SceneObjectDiff.Action",
              "kind": "field",
              "doc": "\"added\", \"removed\", \"changed\""
            },
            {
              "name": "Detail",
              "anchor": "SceneObjectDiff.Detail",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SceneOpenError",
          "anchor": "SceneOpenError",
          "decl": "type SceneOpenError struct {\n\tPath    string\n\tLine    int\n\tColumn  int\n\tMessage string\n\tFix     string\n\tErr     error\n\t// contains filtered or unexported fields\n}",
          "doc": "SceneOpenError captures the structured details of a failed scene open\n(covering missing files and YAML/schema errors from open_errors_test.go).\n",
          "file": "pkg/editor/main_layout_ui.go",
          "line": 42,
          "members": [
            {
              "name": "Path",
              "anchor": "SceneOpenError.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "SceneOpenError.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Column",
              "anchor": "SceneOpenError.Column",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "SceneOpenError.Message",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fix",
              "anchor": "SceneOpenError.Fix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Err",
              "anchor": "SceneOpenError.Err",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SceneOverlayEntry",
          "anchor": "SceneOverlayEntry",
          "decl": "type SceneOverlayEntry struct {\n\t// ID optionally identifies this entry for targeted updates or removal.\n\tID string\n\t// ObjectID names the scene object this overlay attaches to.\n\tObjectID string\n\t// Kind selects which Spec overlay style to draw (Agent, Added, Changed, Removed, or FocusedChange).\n\tKind OverlayKind\n\t// ChangeKind selects the base change kind when Kind is OverlayKindFocusedChange.\n\tChangeKind OverlayKind\n\t// Label is the pill text (action text for Agent, object name for Added/Removed, \"field old → new\" for Changed).\n\tLabel string\n\t// SecondaryLabel optionally overrides \"removed\" on Removed pills.\n\tSecondaryLabel string\n\t// GhostBounds optionally supplies 2D world bounds for a Removed object that is no longer in the scene.\n\tGhostBounds *core.Bounds\n\t// GhostPos3D and GhostSize3D optionally supply 3D world center & extents for a Removed object in 3D view.\n\tGhostPos3D  *[3]float32\n\tGhostSize3D *[3]float32\n\t// StartedAt records when the overlay appeared; automatically stamped with the editor clock when zero.\n\tStartedAt time.Time\n}",
          "doc": "SceneOverlayEntry attaches a live Spec overlay (Agent working, Added, Changed, Removed,\nor Focused change in Review) to an object in the open scene (or world ghost bounds for Removed).\n",
          "file": "pkg/editor/viewport_overlay.go",
          "line": 652,
          "members": [
            {
              "name": "ID",
              "anchor": "SceneOverlayEntry.ID",
              "kind": "field",
              "doc": "ID optionally identifies this entry for targeted updates or removal."
            },
            {
              "name": "ObjectID",
              "anchor": "SceneOverlayEntry.ObjectID",
              "kind": "field",
              "doc": "ObjectID names the scene object this overlay attaches to."
            },
            {
              "name": "Kind",
              "anchor": "SceneOverlayEntry.Kind",
              "kind": "field",
              "doc": "Kind selects which Spec overlay style to draw (Agent, Added, Changed, Removed, or FocusedChange)."
            },
            {
              "name": "ChangeKind",
              "anchor": "SceneOverlayEntry.ChangeKind",
              "kind": "field",
              "doc": "ChangeKind selects the base change kind when Kind is OverlayKindFocusedChange."
            },
            {
              "name": "Label",
              "anchor": "SceneOverlayEntry.Label",
              "kind": "field",
              "doc": "Label is the pill text (action text for Agent, object name for Added/Removed, \"field old → new\" for Changed)."
            },
            {
              "name": "SecondaryLabel",
              "anchor": "SceneOverlayEntry.SecondaryLabel",
              "kind": "field",
              "doc": "SecondaryLabel optionally overrides \"removed\" on Removed pills."
            },
            {
              "name": "GhostBounds",
              "anchor": "SceneOverlayEntry.GhostBounds",
              "kind": "field",
              "doc": "GhostBounds optionally supplies 2D world bounds for a Removed object that is no longer in the scene."
            },
            {
              "name": "GhostPos3D",
              "anchor": "SceneOverlayEntry.GhostPos3D",
              "kind": "field",
              "doc": "GhostPos3D and GhostSize3D optionally supply 3D world center & extents for a Removed object in 3D view."
            },
            {
              "name": "GhostSize3D",
              "anchor": "SceneOverlayEntry.GhostSize3D",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartedAt",
              "anchor": "SceneOverlayEntry.StartedAt",
              "kind": "field",
              "doc": "StartedAt records when the overlay appeared; automatically stamped with the editor clock when zero."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SceneTab",
          "anchor": "SceneTab",
          "decl": "type SceneTab struct {\n\t// ID is a stable identifier unique within this Editor session.\n\tID uint64\n\t// Index is the tab's 0-based position in Tabs().\n\tIndex int\n\t// Label is the display name shown in the tab bar (the file's base name, disambiguated when two open tabs share a base name, or \"Untitled\").\n\tLabel string\n\t// Path is the scene's slash-separated path from the project root (ScenePath), or FilePath when outside a project, or empty for an untitled scene.\n\tPath string\n\t// FilePath is the OS path of the scene file, or empty.\n\tFilePath string\n\t// ScenePath is the slash-separated project-relative path, or empty.\n\tScenePath string\n\t// Name is SceneDoc.Name.\n\tName string\n\t// Dirty reports whether this tab's scene differs from what it was opened from or last saved to.\n\tDirty bool\n\t// SaveFailed reports whether an automatic save for this tab is currently in a failed state.\n\tSaveFailed bool\n\t// Active reports whether this tab is the currently active tab.\n\tActive bool\n}",
          "doc": "SceneTab describes one open scene tab in the editor's tab bar.\n",
          "file": "pkg/editor/tabs.go",
          "line": 17,
          "members": [
            {
              "name": "ID",
              "anchor": "SceneTab.ID",
              "kind": "field",
              "doc": "ID is a stable identifier unique within this Editor session."
            },
            {
              "name": "Index",
              "anchor": "SceneTab.Index",
              "kind": "field",
              "doc": "Index is the tab's 0-based position in Tabs()."
            },
            {
              "name": "Label",
              "anchor": "SceneTab.Label",
              "kind": "field",
              "doc": "Label is the display name shown in the tab bar (the file's base name, disambiguated when two open tabs share a base name, or \"Untitled\")."
            },
            {
              "name": "Path",
              "anchor": "SceneTab.Path",
              "kind": "field",
              "doc": "Path is the scene's slash-separated path from the project root (ScenePath), or FilePath when outside a project, or empty for an untitled scene."
            },
            {
              "name": "FilePath",
              "anchor": "SceneTab.FilePath",
              "kind": "field",
              "doc": "FilePath is the OS path of the scene file, or empty."
            },
            {
              "name": "ScenePath",
              "anchor": "SceneTab.ScenePath",
              "kind": "field",
              "doc": "ScenePath is the slash-separated project-relative path, or empty."
            },
            {
              "name": "Name",
              "anchor": "SceneTab.Name",
              "kind": "field",
              "doc": "Name is SceneDoc.Name."
            },
            {
              "name": "Dirty",
              "anchor": "SceneTab.Dirty",
              "kind": "field",
              "doc": "Dirty reports whether this tab's scene differs from what it was opened from or last saved to."
            },
            {
              "name": "SaveFailed",
              "anchor": "SceneTab.SaveFailed",
              "kind": "field",
              "doc": "SaveFailed reports whether an automatic save for this tab is currently in a failed state."
            },
            {
              "name": "Active",
              "anchor": "SceneTab.Active",
              "kind": "field",
              "doc": "Active reports whether this tab is the currently active tab."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SceneTreeTab",
          "anchor": "SceneTreeTab",
          "decl": "type SceneTreeTab int",
          "doc": "SceneTreeTab selects whether the left scene tree panel displays the open scene document or the live remote game tree.\n",
          "file": "pkg/editor/remote.go",
          "line": 37,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SceneTreeLocal",
                  "anchor": "SceneTreeLocal"
                },
                {
                  "name": "SceneTreeRemote",
                  "anchor": "SceneTreeRemote"
                }
              ],
              "decl": "const (\n\t// SceneTreeLocal shows the editable scene document layers and objects.\n\tSceneTreeLocal SceneTreeTab = iota\n\t// SceneTreeRemote shows the running game's live scenes, layers, and entities over MCP.\n\tSceneTreeRemote\n)",
              "doc": "",
              "file": "pkg/editor/remote.go",
              "line": 39
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "SceneTreeTab.String",
              "recv": "SceneTreeTab",
              "decl": "func (t SceneTreeTab) String() string",
              "doc": "String returns \"Scene\" or \"Remote\".\n",
              "file": "pkg/editor/remote.go",
              "line": 47
            }
          ]
        },
        {
          "name": "SearchKind",
          "anchor": "SearchKind",
          "decl": "type SearchKind string",
          "doc": "SearchKind classifies what kind of project entity a SearchResult matched.\n",
          "file": "pkg/editor/search.go",
          "line": 21,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SearchFile",
                  "anchor": "SearchFile"
                },
                {
                  "name": "SearchUID",
                  "anchor": "SearchUID"
                },
                {
                  "name": "SearchObject",
                  "anchor": "SearchObject"
                },
                {
                  "name": "SearchComponent",
                  "anchor": "SearchComponent"
                },
                {
                  "name": "SearchPrefab",
                  "anchor": "SearchPrefab"
                },
                {
                  "name": "SearchSceneRef",
                  "anchor": "SearchSceneRef"
                }
              ],
              "decl": "const (\n\t// SearchFile matched a project file's name, path, or scene name.\n\tSearchFile SearchKind = \"file\"\n\t// SearchUID matched a file's stable UID header or project index UID.\n\tSearchUID SearchKind = \"uid\"\n\t// SearchObject matched a scene object's ID or display name.\n\tSearchObject SearchKind = \"object\"\n\t// SearchComponent matched a component type on a scene object or override.\n\tSearchComponent SearchKind = \"component\"\n\t// SearchPrefab matched a prefab name referenced by a scene object or override.\n\tSearchPrefab SearchKind = \"prefab\"\n\t// SearchSceneRef matched an instanced scene (object.scene) or inherited scene (inherits) path.\n\tSearchSceneRef SearchKind = \"scene\"\n)",
              "doc": "",
              "file": "pkg/editor/search.go",
              "line": 23
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SearchResult",
          "anchor": "SearchResult",
          "decl": "type SearchResult struct {\n\t// Kind says which kind of entity or field matched.\n\tKind SearchKind\n\t// File is the slash-separated path of the file from the open project's root.\n\tFile string\n\t// UID is the file's stable UID when present.\n\tUID string\n\t// Layer is the scene layer name for object-level hits.\n\tLayer string\n\t// ObjectID is the matching object's ID inside a scene file, or empty for file-level hits.\n\tObjectID string\n\t// TopObjectID is the top-level ancestor object's ID selectable in the editor (equal to ObjectID for top-level objects).\n\tTopObjectID string\n\t// ObjectName is the matching object's display name when set.\n\tObjectName string\n\t// Match is the specific matched token or value (such as a UID, component type, prefab, or scene path).\n\tMatch string\n\t// Detail is a human-readable summary of why the result matched.\n\tDetail string\n}",
          "doc": "SearchResult is one hit returned by Editor.Search.\n",
          "file": "pkg/editor/search.go",
          "line": 49,
          "members": [
            {
              "name": "Kind",
              "anchor": "SearchResult.Kind",
              "kind": "field",
              "doc": "Kind says which kind of entity or field matched."
            },
            {
              "name": "File",
              "anchor": "SearchResult.File",
              "kind": "field",
              "doc": "File is the slash-separated path of the file from the open project's root."
            },
            {
              "name": "UID",
              "anchor": "SearchResult.UID",
              "kind": "field",
              "doc": "UID is the file's stable UID when present."
            },
            {
              "name": "Layer",
              "anchor": "SearchResult.Layer",
              "kind": "field",
              "doc": "Layer is the scene layer name for object-level hits."
            },
            {
              "name": "ObjectID",
              "anchor": "SearchResult.ObjectID",
              "kind": "field",
              "doc": "ObjectID is the matching object's ID inside a scene file, or empty for file-level hits."
            },
            {
              "name": "TopObjectID",
              "anchor": "SearchResult.TopObjectID",
              "kind": "field",
              "doc": "TopObjectID is the top-level ancestor object's ID selectable in the editor (equal to ObjectID for top-level objects)."
            },
            {
              "name": "ObjectName",
              "anchor": "SearchResult.ObjectName",
              "kind": "field",
              "doc": "ObjectName is the matching object's display name when set."
            },
            {
              "name": "Match",
              "anchor": "SearchResult.Match",
              "kind": "field",
              "doc": "Match is the specific matched token or value (such as a UID, component type, prefab, or scene path)."
            },
            {
              "name": "Detail",
              "anchor": "SearchResult.Detail",
              "kind": "field",
              "doc": "Detail is a human-readable summary of why the result matched."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SearchTab",
          "anchor": "SearchTab",
          "decl": "type SearchTab int",
          "doc": "SearchTab selects which view the Project Search and References panel displays.\n",
          "file": "pkg/editor/search.go",
          "line": 39,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SearchTabSearch",
                  "anchor": "SearchTabSearch"
                },
                {
                  "name": "SearchTabReferences",
                  "anchor": "SearchTabReferences"
                }
              ],
              "decl": "const (\n\t// SearchTabSearch displays the project-wide search field and results.\n\tSearchTabSearch SearchTab = iota\n\t// SearchTabReferences displays incoming references to a selected project file.\n\tSearchTabReferences\n)",
              "doc": "",
              "file": "pkg/editor/search.go",
              "line": 41
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsAgentRequest",
          "anchor": "SettingsAgentRequest",
          "decl": "type SettingsAgentRequest struct {\n\tPage          string `json:\"page\"`\n\tPageTitle     string `json:\"pageTitle\"`\n\tScope         string `json:\"scope,omitempty\"`\n\tFile          string `json:\"file,omitempty\"`\n\tSource        string `json:\"source\"` // \"suggestion\", \"page_composer\", or \"search\"\n\tPrompt        string `json:\"prompt\"`\n\tContextPrompt string `json:\"contextPrompt\"`\n}",
          "doc": "SettingsAgentRequest captures a request sent from a Settings page (\"Agent on this page\" card\nor the Settings search bar) to the Agent panel with the active Settings page as context.\n",
          "file": "pkg/editor/brief_rules.go",
          "line": 75,
          "members": [
            {
              "name": "Page",
              "anchor": "SettingsAgentRequest.Page",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PageTitle",
              "anchor": "SettingsAgentRequest.PageTitle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scope",
              "anchor": "SettingsAgentRequest.Scope",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "SettingsAgentRequest.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "SettingsAgentRequest.Source",
              "kind": "field",
              "doc": "\"suggestion\", \"page_composer\", or \"search\""
            },
            {
              "name": "Prompt",
              "anchor": "SettingsAgentRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ContextPrompt",
              "anchor": "SettingsAgentRequest.ContextPrompt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsPage",
          "anchor": "SettingsPage",
          "decl": "type SettingsPage string",
          "doc": "SettingsPage identifies a page in the unified Settings view (docs/design/editor/Settings.dc.html).\n",
          "file": "pkg/editor/settings.go",
          "line": 989,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SettingsPageModels",
                  "anchor": "SettingsPageModels"
                },
                {
                  "name": "SettingsPageTools",
                  "anchor": "SettingsPageTools"
                },
                {
                  "name": "SettingsPageUsage",
                  "anchor": "SettingsPageUsage"
                },
                {
                  "name": "SettingsPageAutomations",
                  "anchor": "SettingsPageAutomations"
                },
                {
                  "name": "SettingsPageProject",
                  "anchor": "SettingsPageProject"
                },
                {
                  "name": "SettingsPageInput",
                  "anchor": "SettingsPageInput"
                },
                {
                  "name": "SettingsPageAudio",
                  "anchor": "SettingsPageAudio"
                },
                {
                  "name": "SettingsPageExport",
                  "anchor": "SettingsPageExport"
                },
                {
                  "name": "SettingsPagePermissions",
                  "anchor": "SettingsPagePermissions"
                },
                {
                  "name": "SettingsPageGeneral",
                  "anchor": "SettingsPageGeneral"
                },
                {
                  "name": "SettingsPageViewport",
                  "anchor": "SettingsPageViewport"
                },
                {
                  "name": "SettingsPageShortcuts",
                  "anchor": "SettingsPageShortcuts"
                },
                {
                  "name": "SettingsPageBrief",
                  "anchor": "SettingsPageBrief"
                },
                {
                  "name": "SettingsPageRules",
                  "anchor": "SettingsPageRules"
                }
              ],
              "decl": "const (\n\t// SettingsPageModels configures connected agents, built-in keychain API connection, and task routing (This computer, You only).\n\tSettingsPageModels SettingsPage = \"models\"\n\t// SettingsPageTools toggles every tool registered on the editor's MCP server and configures external MCP servers (This computer, You only).\n\tSettingsPageTools SettingsPage = \"tools\"\n\t// SettingsPageUsage tracks weekly agent requests against a limit, kept review share, local playtest runs, and outbound privacy switches (This computer, You only).\n\tSettingsPageUsage SettingsPage = \"usage\"\n\t// SettingsPageAutomations edits the project's shared automations.yaml rules, pause-for-today state, and natural-language drafts.\n\tSettingsPageAutomations SettingsPage = \"automations\"\n\t// SettingsPageProject edits game.yaml's project metadata, window, display, physics, autoload, and plugins.\n\tSettingsPageProject SettingsPage = \"project\"\n\t// SettingsPageInput edits game.yaml's input actions, bindings, touch/mouse regions, and axes.\n\tSettingsPageInput SettingsPage = \"input\"\n\t// SettingsPageAudio edits game.yaml's audio master level, buses, DSP effect chains, and live audition.\n\tSettingsPageAudio SettingsPage = \"audio\"\n\t// SettingsPageExport edits game.yaml's export output, platform presets, credits pre-flight, and release builds.\n\tSettingsPageExport SettingsPage = \"export\"\n\t// SettingsPagePermissions edits permissions.yaml's MCP agent permission profile and first-match-wins rules.\n\tSettingsPagePermissions SettingsPage = \"permissions\"\n\t// SettingsPageGeneral edits per-computer editor language, appearance, saving, and interface size preferences.\n\tSettingsPageGeneral SettingsPage = \"general\"\n\t// SettingsPageViewport edits per-computer snapping, grid, agent change outlines, 3D navigation, and overlay legend choices.\n\tSettingsPageViewport SettingsPage = \"viewport\"\n\t// SettingsPageShortcuts edits per-computer command keyboard shortcuts within a scope.\n\tSettingsPageShortcuts SettingsPage = \"shortcuts\"\n\t// SettingsPageBrief edits the project's brief.yaml game brief read by the agent.\n\tSettingsPageBrief SettingsPage = \"brief\"\n\t// SettingsPageRules edits the project's AGENTS.md rules read by the agent.\n\tSettingsPageRules SettingsPage = \"rules\"\n)",
              "doc": "",
              "file": "pkg/editor/settings.go",
              "line": 991
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsAgentPage",
              "anchor": "SettingsPage.IsAgentPage",
              "recv": "SettingsPage",
              "decl": "func (p SettingsPage) IsAgentPage() bool",
              "doc": "IsAgentPage reports whether p is one of the per-computer Agent Settings pages (Models and connections, Tools, Usage and privacy).\n",
              "file": "pkg/editor/settings.go",
              "line": 1033
            },
            {
              "name": "IsProjectPage",
              "anchor": "SettingsPage.IsProjectPage",
              "recv": "SettingsPage",
              "decl": "func (p SettingsPage) IsProjectPage() bool",
              "doc": "IsProjectPage reports whether p edits the open project's game.yaml rather than per-computer editor preferences.\n",
              "file": "pkg/editor/settings.go",
              "line": 1043
            },
            {
              "name": "Valid",
              "anchor": "SettingsPage.Valid",
              "recv": "SettingsPage",
              "decl": "func (p SettingsPage) Valid() bool",
              "doc": "Valid reports whether p is a recognized Settings page.\n",
              "file": "pkg/editor/settings.go",
              "line": 1023
            }
          ]
        },
        {
          "name": "Shading3D",
          "anchor": "Shading3D",
          "decl": "type Shading3D int",
          "doc": "Shading3D selects how the 3D viewport shades the scene's geometry when it draws it on the GPU (Viewport3DOnGPU).\n",
          "file": "pkg/editor/state.go",
          "line": 171,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Shading3DLit",
                  "anchor": "Shading3DLit"
                },
                {
                  "name": "Shading3DUnlit",
                  "anchor": "Shading3DUnlit"
                },
                {
                  "name": "Shading3DWireframe",
                  "anchor": "Shading3DWireframe"
                }
              ],
              "decl": "const (\n\t// Shading3DLit lights the geometry with Lights3D, or with DefaultLights3D under a gradient sky when Lights3D is nil.\n\tShading3DLit Shading3D = iota\n\t// Shading3DUnlit draws the geometry at its textured base color plus its emissive color, ignoring the lights.\n\tShading3DUnlit\n\t// Shading3DWireframe lights the geometry as Shading3DLit does and draws the edges of its triangles over it.\n\tShading3DWireframe\n)",
              "doc": "",
              "file": "pkg/editor/state.go",
              "line": 173
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Shading3D.String",
              "recv": "Shading3D",
              "decl": "func (s Shading3D) String() string",
              "doc": "String returns a human-readable label for the shading mode.\n",
              "file": "pkg/editor/state.go",
              "line": 183
            }
          ]
        },
        {
          "name": "ShapeHandle2D",
          "anchor": "ShapeHandle2D",
          "decl": "type ShapeHandle2D struct {\n\tObjectID  string\n\tComponent string\n\tField     string\n\tKind      ShapeHandleKind\n\t// Index is the vertex index for ShapeHandlePolygonVertex, the starting vertex index for ShapeHandlePolygonMidpoint, or 0..3 for cardinal circle radius handles (+X, +Y, -X, -Y).\n\tIndex int\n\t// Pos is the handle's position in canvas points.\n\tPos math2d.Vec2\n}",
          "doc": "ShapeHandle2D describes one interactive handle on a component shape field of the selected object.\n",
          "file": "pkg/editor/shapes2d.go",
          "line": 87,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "ShapeHandle2D.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "ShapeHandle2D.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "ShapeHandle2D.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ShapeHandle2D.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Index",
              "anchor": "ShapeHandle2D.Index",
              "kind": "field",
              "doc": "Index is the vertex index for ShapeHandlePolygonVertex, the starting vertex index for ShapeHandlePolygonMidpoint, or 0..3 for cardinal circle radius handles (+X, +Y, -X, -Y)."
            },
            {
              "name": "Pos",
              "anchor": "ShapeHandle2D.Pos",
              "kind": "field",
              "doc": "Pos is the handle's position in canvas points."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShapeHandleKind",
          "anchor": "ShapeHandleKind",
          "decl": "type ShapeHandleKind int",
          "doc": "ShapeHandleKind identifies what part of a component shape field a 2D viewport handle edits.\n",
          "file": "pkg/editor/shapes2d.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ShapeHandleNone",
                  "anchor": "ShapeHandleNone"
                },
                {
                  "name": "ShapeHandlePoint",
                  "anchor": "ShapeHandlePoint"
                },
                {
                  "name": "ShapeHandleRectCenter",
                  "anchor": "ShapeHandleRectCenter"
                },
                {
                  "name": "ShapeHandleRectN",
                  "anchor": "ShapeHandleRectN"
                },
                {
                  "name": "ShapeHandleRectE",
                  "anchor": "ShapeHandleRectE"
                },
                {
                  "name": "ShapeHandleRectS",
                  "anchor": "ShapeHandleRectS"
                },
                {
                  "name": "ShapeHandleRectW",
                  "anchor": "ShapeHandleRectW"
                },
                {
                  "name": "ShapeHandleRectNE",
                  "anchor": "ShapeHandleRectNE"
                },
                {
                  "name": "ShapeHandleRectSE",
                  "anchor": "ShapeHandleRectSE"
                },
                {
                  "name": "ShapeHandleRectSW",
                  "anchor": "ShapeHandleRectSW"
                },
                {
                  "name": "ShapeHandleRectNW",
                  "anchor": "ShapeHandleRectNW"
                },
                {
                  "name": "ShapeHandleCircleCenter",
                  "anchor": "ShapeHandleCircleCenter"
                },
                {
                  "name": "ShapeHandleCircleRadius",
                  "anchor": "ShapeHandleCircleRadius"
                },
                {
                  "name": "ShapeHandlePolygonVertex",
                  "anchor": "ShapeHandlePolygonVertex"
                },
                {
                  "name": "ShapeHandlePolygonMidpoint",
                  "anchor": "ShapeHandlePolygonMidpoint"
                }
              ],
              "decl": "const (\n\t// ShapeHandleNone is no handle.\n\tShapeHandleNone ShapeHandleKind = iota\n\t// ShapeHandlePoint moves a FieldPoint's (x, y).\n\tShapeHandlePoint\n\t// ShapeHandleRectCenter moves a FieldRect's position without resizing it.\n\tShapeHandleRectCenter\n\t// ShapeHandleRectN moves the top edge of a FieldRect.\n\tShapeHandleRectN\n\t// ShapeHandleRectE moves the right edge of a FieldRect.\n\tShapeHandleRectE\n\t// ShapeHandleRectS moves the bottom edge of a FieldRect.\n\tShapeHandleRectS\n\t// ShapeHandleRectW moves the left edge of a FieldRect.\n\tShapeHandleRectW\n\t// ShapeHandleRectNE moves the top-right corner of a FieldRect.\n\tShapeHandleRectNE\n\t// ShapeHandleRectSE moves the bottom-right corner of a FieldRect.\n\tShapeHandleRectSE\n\t// ShapeHandleRectSW moves the bottom-left corner of a FieldRect.\n\tShapeHandleRectSW\n\t// ShapeHandleRectNW moves the top-left corner of a FieldRect.\n\tShapeHandleRectNW\n\t// ShapeHandleCircleCenter moves a FieldCircle's center.\n\tShapeHandleCircleCenter\n\t// ShapeHandleCircleRadius adjusts a FieldCircle's radius from a cardinal rim handle.\n\tShapeHandleCircleRadius\n\t// ShapeHandlePolygonVertex moves vertex Index of a FieldPolygon.\n\tShapeHandlePolygonVertex\n\t// ShapeHandlePolygonMidpoint inserts a new vertex on the edge from Index to (Index+1)%N of a FieldPolygon.\n\tShapeHandlePolygonMidpoint\n)",
              "doc": "",
              "file": "pkg/editor/shapes2d.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ShapeHandleKind.String",
              "recv": "ShapeHandleKind",
              "decl": "func (k ShapeHandleKind) String() string",
              "doc": "String returns a human-readable name for k.\n",
              "file": "pkg/editor/shapes2d.go",
              "line": 51
            }
          ]
        },
        {
          "name": "ShortcutConflictError",
          "anchor": "ShortcutConflictError",
          "decl": "type ShortcutConflictError struct {\n\tCommandID     string\n\tScope         string\n\tShortcut      string\n\tConflictID    string\n\tConflictLabel string\n}",
          "doc": "ShortcutConflictError is returned by RebindShortcut when another command in the same scope\nalready owns the requested shortcut. Callers can resolve it in place with SwapShortcut.\n",
          "file": "pkg/editor/shortcuts.go",
          "line": 46,
          "members": [
            {
              "name": "CommandID",
              "anchor": "ShortcutConflictError.CommandID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scope",
              "anchor": "ShortcutConflictError.Scope",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shortcut",
              "anchor": "ShortcutConflictError.Shortcut",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConflictID",
              "anchor": "ShortcutConflictError.ConflictID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConflictLabel",
              "anchor": "ShortcutConflictError.ConflictLabel",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "ShortcutConflictError.Error",
              "recv": "*ShortcutConflictError",
              "decl": "func (e *ShortcutConflictError) Error() string",
              "doc": "",
              "file": "pkg/editor/shortcuts.go",
              "line": 54
            }
          ]
        },
        {
          "name": "SketchAgentRequest",
          "anchor": "SketchAgentRequest",
          "decl": "type SketchAgentRequest struct {\n\tScene     string       `json:\"scene\"`\n\tChipLabel string       `json:\"chipLabel\"`\n\tPrompt    string       `json:\"prompt,omitempty\"`\n\tView      View2D       `json:\"view\"`\n\tMarks     []SketchMark `json:\"marks\"`\n\tPNG       []byte       `json:\"-\"`\n\tWidth     int          `json:\"width,omitempty\"`\n\tHeight    int          `json:\"height,omitempty\"`\n}",
          "doc": "SketchAgentRequest is the structured payload sent to the agent when the author sends a viewport sketch.\n",
          "file": "pkg/editor/sketch.go",
          "line": 214,
          "members": [
            {
              "name": "Scene",
              "anchor": "SketchAgentRequest.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChipLabel",
              "anchor": "SketchAgentRequest.ChipLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "SketchAgentRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "View",
              "anchor": "SketchAgentRequest.View",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Marks",
              "anchor": "SketchAgentRequest.Marks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PNG",
              "anchor": "SketchAgentRequest.PNG",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "SketchAgentRequest.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "SketchAgentRequest.Height",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SketchHoldState",
          "anchor": "SketchHoldState",
          "decl": "type SketchHoldState string",
          "doc": "SketchHoldState describes the confirmation hold lifecycle for a sent viewport sketch.\n",
          "file": "pkg/editor/sketch.go",
          "line": 76,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SketchHoldNone",
                  "anchor": "SketchHoldNone"
                },
                {
                  "name": "SketchHoldPending",
                  "anchor": "SketchHoldPending"
                },
                {
                  "name": "SketchHoldReading",
                  "anchor": "SketchHoldReading"
                },
                {
                  "name": "SketchHoldApproved",
                  "anchor": "SketchHoldApproved"
                }
              ],
              "decl": "const (\n\t// SketchHoldNone means no sent sketch is currently awaiting confirmation or editing.\n\tSketchHoldNone SketchHoldState = \"none\"\n\t// SketchHoldPending means a sketch was sent to the agent; mutating scene MCP tools hold until confirmed.\n\tSketchHoldPending SketchHoldState = \"pending\"\n\t// SketchHoldReading means the agent posted its restatement card; mutating scene MCP tools still hold until Go ahead or a reply.\n\tSketchHoldReading SketchHoldState = \"reading\"\n\t// SketchHoldApproved means the user answered Go ahead (or replied approvingly) and the agent may now edit the scene.\n\tSketchHoldApproved SketchHoldState = \"approved\"\n)",
              "doc": "",
              "file": "pkg/editor/sketch.go",
              "line": 78
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SketchMark",
          "anchor": "SketchMark",
          "decl": "type SketchMark struct {\n\tID     string        `json:\"id\"`\n\tNumber int           `json:\"number\"`\n\tKind   SketchTool    `json:\"kind\"`\n\tLabel  string        `json:\"label,omitempty\"`\n\tPoints []SketchPoint `json:\"points,omitempty\"`\n\tStart  *SketchPoint  `json:\"start,omitempty\"`\n\tEnd    *SketchPoint  `json:\"end,omitempty\"`\n\tRect   *SketchRect   `json:\"rect,omitempty\"`\n\tAt     *SketchPoint  `json:\"at,omitempty\"`\n}",
          "doc": "SketchMark is one numbered annotation drawn on the viewport sketch layer in scene coordinates.\nSketch marks live solely in editor session state and are never written into SceneDoc or *.scene.yaml.\n",
          "file": "pkg/editor/sketch.go",
          "line": 105,
          "members": [
            {
              "name": "ID",
              "anchor": "SketchMark.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Number",
              "anchor": "SketchMark.Number",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "SketchMark.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "SketchMark.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "SketchMark.Points",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Start",
              "anchor": "SketchMark.Start",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "End",
              "anchor": "SketchMark.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rect",
              "anchor": "SketchMark.Rect",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "At",
              "anchor": "SketchMark.At",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AnchorScenePoint",
              "anchor": "SketchMark.AnchorScenePoint",
              "recv": "SketchMark",
              "decl": "func (m SketchMark) AnchorScenePoint() SketchPoint",
              "doc": "AnchorScenePoint returns the primary anchor point of m in scene coordinates,\nwhere its numbered badge attaches.\n",
              "file": "pkg/editor/sketch.go",
              "line": 144
            },
            {
              "name": "Clone",
              "anchor": "SketchMark.Clone",
              "recv": "SketchMark",
              "decl": "func (m SketchMark) Clone() SketchMark",
              "doc": "Clone returns a deep copy of m.\n",
              "file": "pkg/editor/sketch.go",
              "line": 118
            },
            {
              "name": "GeometrySummary",
              "anchor": "SketchMark.GeometrySummary",
              "recv": "SketchMark",
              "decl": "func (m SketchMark) GeometrySummary() string",
              "doc": "GeometrySummary formats m's geometry concisely in scene coordinates for the preview popover and reading card.\n",
              "file": "pkg/editor/sketch.go",
              "line": 167
            },
            {
              "name": "ReadingHeading",
              "anchor": "SketchMark.ReadingHeading",
              "recv": "SketchMark",
              "decl": "func (m SketchMark) ReadingHeading() string",
              "doc": "ReadingHeading formats the compact mark caption shown above an agent restatement row\n(for example `Box · “3 spikes”`).\n",
              "file": "pkg/editor/sketch.go",
              "line": 202
            }
          ]
        },
        {
          "name": "SketchPoint",
          "anchor": "SketchPoint",
          "decl": "type SketchPoint struct {\n\tX float32 `json:\"x\"`\n\tY float32 `json:\"y\"`\n}",
          "doc": "SketchPoint is a 2D point stored strictly in scene (world) coordinates.\n",
          "file": "pkg/editor/sketch.go",
          "line": 90,
          "members": [
            {
              "name": "X",
              "anchor": "SketchPoint.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "SketchPoint.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SketchReading",
          "anchor": "SketchReading",
          "decl": "type SketchReading struct {\n\tSummary     string              `json:\"summary,omitempty\"`\n\tItems       []SketchReadingItem `json:\"items\"`\n\tAssumptions []string            `json:\"assumptions,omitempty\"`\n\tPostedAt    time.Time           `json:\"postedAt,omitempty\"`\n}",
          "doc": "SketchReading is the reading card posted by the agent via MCP before scene_edit is allowed.\n",
          "file": "pkg/editor/sketch.go",
          "line": 233,
          "members": [
            {
              "name": "Summary",
              "anchor": "SketchReading.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Items",
              "anchor": "SketchReading.Items",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Assumptions",
              "anchor": "SketchReading.Assumptions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PostedAt",
              "anchor": "SketchReading.PostedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "SketchReading.Clone",
              "recv": "*SketchReading",
              "decl": "func (r *SketchReading) Clone() *SketchReading",
              "doc": "Clone returns a deep copy of r.\n",
              "file": "pkg/editor/sketch.go",
              "line": 241
            }
          ]
        },
        {
          "name": "SketchReadingItem",
          "anchor": "SketchReadingItem",
          "decl": "type SketchReadingItem struct {\n\tNumber int    `json:\"number\"`\n\tMark   string `json:\"mark,omitempty\"`\n\tText   string `json:\"text\"`\n}",
          "doc": "SketchReadingItem is the agent's restatement of one numbered sketch mark before editing.\n",
          "file": "pkg/editor/sketch.go",
          "line": 226,
          "members": [
            {
              "name": "Number",
              "anchor": "SketchReadingItem.Number",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mark",
              "anchor": "SketchReadingItem.Mark",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "SketchReadingItem.Text",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SketchReadingReply",
          "anchor": "SketchReadingReply",
          "decl": "type SketchReadingReply struct {\n\tAction     string `json:\"action\"` // \"approve\", \"correct\", or \"reply\"\n\tMarkNumber int    `json:\"markNumber,omitempty\"`\n\tMessage    string `json:\"message,omitempty\"`\n}",
          "doc": "SketchReadingReply describes the user's answer to an agent sketch reading card.\n",
          "file": "pkg/editor/sketch.go",
          "line": 252,
          "members": [
            {
              "name": "Action",
              "anchor": "SketchReadingReply.Action",
              "kind": "field",
              "doc": "\"approve\", \"correct\", or \"reply\""
            },
            {
              "name": "MarkNumber",
              "anchor": "SketchReadingReply.MarkNumber",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "SketchReadingReply.Message",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SketchRect",
          "anchor": "SketchRect",
          "decl": "type SketchRect struct {\n\tX      float32 `json:\"x\"`\n\tY      float32 `json:\"y\"`\n\tWidth  float32 `json:\"width\"`\n\tHeight float32 `json:\"height\"`\n}",
          "doc": "SketchRect is an axis-aligned rectangle stored strictly in scene (world) coordinates.\n",
          "file": "pkg/editor/sketch.go",
          "line": 96,
          "members": [
            {
              "name": "X",
              "anchor": "SketchRect.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "SketchRect.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "SketchRect.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "SketchRect.Height",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SketchReviewChange",
          "anchor": "SketchReviewChange",
          "decl": "type SketchReviewChange struct {\n\tKind   SketchReviewChangeKind `json:\"kind\"`\n\tID     string                 `json:\"id\"`\n\tDetail string                 `json:\"detail,omitempty\"`\n}",
          "doc": "SketchReviewChange describes one object added, changed, or removed by the agent after approving a sketch.\n",
          "file": "pkg/editor/sketch.go",
          "line": 268,
          "members": [
            {
              "name": "Kind",
              "anchor": "SketchReviewChange.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "SketchReviewChange.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "SketchReviewChange.Detail",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SketchReviewChangeKind",
          "anchor": "SketchReviewChangeKind",
          "decl": "type SketchReviewChangeKind string",
          "doc": "SketchReviewChangeKind classifies one scene edit tracked by a post-sketch review.\n",
          "file": "pkg/editor/sketch.go",
          "line": 259,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SketchChangeAdded",
                  "anchor": "SketchChangeAdded"
                },
                {
                  "name": "SketchChangeChanged",
                  "anchor": "SketchChangeChanged"
                },
                {
                  "name": "SketchChangeRemoved",
                  "anchor": "SketchChangeRemoved"
                }
              ],
              "decl": "const (\n\tSketchChangeAdded   SketchReviewChangeKind = \"added\"\n\tSketchChangeChanged SketchReviewChangeKind = \"changed\"\n\tSketchChangeRemoved SketchReviewChangeKind = \"removed\"\n)",
              "doc": "",
              "file": "pkg/editor/sketch.go",
              "line": 261
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SketchTool",
          "anchor": "SketchTool",
          "decl": "type SketchTool string",
          "doc": "SketchTool selects one of the four viewport sketch drawing tools.\n",
          "file": "pkg/editor/sketch.go",
          "line": 20,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SketchToolPen",
                  "anchor": "SketchToolPen"
                },
                {
                  "name": "SketchToolArrow",
                  "anchor": "SketchToolArrow"
                },
                {
                  "name": "SketchToolBox",
                  "anchor": "SketchToolBox"
                },
                {
                  "name": "SketchToolText",
                  "anchor": "SketchToolText"
                }
              ],
              "decl": "const (\n\t// SketchToolPen draws a freehand polyline in scene coordinates.\n\tSketchToolPen SketchTool = \"pen\"\n\t// SketchToolArrow draws a directed arrow from start to end in scene coordinates.\n\tSketchToolArrow SketchTool = \"arrow\"\n\t// SketchToolBox draws a rectangular region in scene coordinates.\n\tSketchToolBox SketchTool = \"box\"\n\t// SketchToolText places a labelled anchor point in scene coordinates.\n\tSketchToolText SketchTool = \"text\"\n)",
              "doc": "",
              "file": "pkg/editor/sketch.go",
              "line": 22
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Hint",
              "anchor": "SketchTool.Hint",
              "recv": "SketchTool",
              "decl": "func (t SketchTool) Hint() string",
              "doc": "Hint returns the short status hint displayed below the floating sketch toolbar.\n",
              "file": "pkg/editor/sketch.go",
              "line": 60
            },
            {
              "name": "String",
              "anchor": "SketchTool.String",
              "recv": "SketchTool",
              "decl": "func (t SketchTool) String() string",
              "doc": "String returns the human-readable tool label.\n",
              "file": "pkg/editor/sketch.go",
              "line": 44
            },
            {
              "name": "Valid",
              "anchor": "SketchTool.Valid",
              "recv": "SketchTool",
              "decl": "func (t SketchTool) Valid() bool",
              "doc": "Valid reports whether t is one of the four built-in sketch tools.\n",
              "file": "pkg/editor/sketch.go",
              "line": 34
            }
          ]
        },
        {
          "name": "SnapSettings",
          "anchor": "SnapSettings",
          "decl": "type SnapSettings struct {\n\t// Grid snaps object placement, drags, 2D handles, and 3D translate gizmos to EffectiveGridStep.\n\tGrid bool `yaml:\"grid,omitempty\"`\n\t// GridSize is an explicit grid step in world/layer units; 0 means follow the active layer's tilemap tile size (or 8 when it has none).\n\tGridSize float32 `yaml:\"gridSize,omitempty\"`\n\t// Pixel snaps positions to whole points (1-unit increments) when Grid is off.\n\tPixel bool `yaml:\"pixel,omitempty\"`\n\t// Rotation snaps 2D and 3D rotation drags to RotationStepDeg-degree increments.\n\tRotation bool `yaml:\"rotation,omitempty\"`\n\t// RotationStepDeg is the rotation snap step in degrees (defaults to 15 when <= 0).\n\tRotationStepDeg float32 `yaml:\"rotationStepDeg,omitempty\"`\n\t// Scale snaps 2D and 3D scale drags to ScaleStep increments.\n\tScale bool `yaml:\"scale,omitempty\"`\n\t// ScaleStep is the scale snap step (defaults to 0.25 when <= 0).\n\tScaleStep float32 `yaml:\"scaleStep,omitempty\"`\n\t// ShowGrid draws a 2D grid overlay at the active snap step in the 2D edit viewport, following View2D.\n\tShowGrid bool `yaml:\"showGrid,omitempty\"`\n}",
          "doc": "SnapSettings holds the editor's snapping and 2D grid overlay preferences.\nThey are editor preferences persisted per project in ViewStateFile (.game/editor.yaml), never in scene files.\n",
          "file": "pkg/editor/snap.go",
          "line": 26,
          "members": [
            {
              "name": "Grid",
              "anchor": "SnapSettings.Grid",
              "kind": "field",
              "doc": "Grid snaps object placement, drags, 2D handles, and 3D translate gizmos to EffectiveGridStep."
            },
            {
              "name": "GridSize",
              "anchor": "SnapSettings.GridSize",
              "kind": "field",
              "doc": "GridSize is an explicit grid step in world/layer units; 0 means follow the active layer's tilemap tile size (or 8 when it has none)."
            },
            {
              "name": "Pixel",
              "anchor": "SnapSettings.Pixel",
              "kind": "field",
              "doc": "Pixel snaps positions to whole points (1-unit increments) when Grid is off."
            },
            {
              "name": "Rotation",
              "anchor": "SnapSettings.Rotation",
              "kind": "field",
              "doc": "Rotation snaps 2D and 3D rotation drags to RotationStepDeg-degree increments."
            },
            {
              "name": "RotationStepDeg",
              "anchor": "SnapSettings.RotationStepDeg",
              "kind": "field",
              "doc": "RotationStepDeg is the rotation snap step in degrees (defaults to 15 when <= 0)."
            },
            {
              "name": "Scale",
              "anchor": "SnapSettings.Scale",
              "kind": "field",
              "doc": "Scale snaps 2D and 3D scale drags to ScaleStep increments."
            },
            {
              "name": "ScaleStep",
              "anchor": "SnapSettings.ScaleStep",
              "kind": "field",
              "doc": "ScaleStep is the scale snap step (defaults to 0.25 when <= 0)."
            },
            {
              "name": "ShowGrid",
              "anchor": "SnapSettings.ShowGrid",
              "kind": "field",
              "doc": "ShowGrid draws a 2D grid overlay at the active snap step in the 2D edit viewport, following View2D."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultSnapSettings",
              "anchor": "DefaultSnapSettings",
              "decl": "func DefaultSnapSettings() SnapSettings",
              "doc": "DefaultSnapSettings returns the default snapping preferences (all snaps and grid overlay off, auto grid size, 15° rotation step, 0.25 scale step).\n",
              "file": "pkg/editor/snap.go",
              "line": 46
            }
          ],
          "methods": []
        },
        {
          "name": "SortOrder",
          "anchor": "SortOrder",
          "decl": "type SortOrder int",
          "doc": "SortOrder selects how the Data Table panel sorts visible rows.\n",
          "file": "pkg/editor/datatable.go",
          "line": 21,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SortNone",
                  "anchor": "SortNone"
                },
                {
                  "name": "SortAsc",
                  "anchor": "SortAsc"
                },
                {
                  "name": "SortDesc",
                  "anchor": "SortDesc"
                }
              ],
              "decl": "const (\n\tSortNone SortOrder = iota\n\tSortAsc\n\tSortDesc\n)",
              "doc": "",
              "file": "pkg/editor/datatable.go",
              "line": 23
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "SortOrder.String",
              "recv": "SortOrder",
              "decl": "func (s SortOrder) String() string",
              "doc": "String returns the human-readable sort direction.\n",
              "file": "pkg/editor/datatable.go",
              "line": 30
            }
          ]
        },
        {
          "name": "SpecContrastPair",
          "anchor": "SpecContrastPair",
          "decl": "type SpecContrastPair struct {\n\tName       string\n\tForeground core.Color\n\tBackground core.Color\n\tMinRatio   float64\n\tUsage      string\n}",
          "doc": "SpecContrastPair is one foreground/background measurement row in the Spec's WCAG 2.2 contrast table.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 342,
          "members": [
            {
              "name": "Name",
              "anchor": "SpecContrastPair.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Foreground",
              "anchor": "SpecContrastPair.Foreground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Background",
              "anchor": "SpecContrastPair.Background",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinRatio",
              "anchor": "SpecContrastPair.MinRatio",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Usage",
              "anchor": "SpecContrastPair.Usage",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SpecContrastTable",
              "anchor": "SpecContrastTable",
              "decl": "func SpecContrastTable(p SpecPalette) []SpecContrastPair",
              "doc": "SpecContrastTable returns every foreground/background and overlay contrast pair required by\ndocs/design/editor/Spec.dc.html for palette p (Dark or Light), with its WCAG 2.2 minimum threshold.\n",
              "file": "pkg/editor/spec_theme.go",
              "line": 357
            }
          ],
          "methods": [
            {
              "name": "Ratio",
              "anchor": "SpecContrastPair.Ratio",
              "recv": "SpecContrastPair",
              "decl": "func (p SpecContrastPair) Ratio() float64",
              "doc": "Ratio returns the measured WCAG 2.2 contrast ratio for this pair.\n",
              "file": "pkg/editor/spec_theme.go",
              "line": 351
            }
          ]
        },
        {
          "name": "SpecFocusWithinCard",
          "anchor": "SpecFocusWithinCard",
          "decl": "type SpecFocusWithinCard struct {\n\tRef      *core.Ref\n\tTestID   string\n\tStyle    core.Style\n\tChildren []core.Node\n}",
          "doc": "SpecFocusWithinCard wraps a composer or card container so keyboard focus on any\ncontrol inside it draws the 2 px accent ring (+2 px offset) on the card itself\nvia :focus-within in both Spec Dark and Spec Light appearances.\n",
          "file": "pkg/editor/focus_regions.go",
          "line": 1052,
          "members": [
            {
              "name": "Ref",
              "anchor": "SpecFocusWithinCard.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestID",
              "anchor": "SpecFocusWithinCard.TestID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Style",
              "anchor": "SpecFocusWithinCard.Style",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Children",
              "anchor": "SpecFocusWithinCard.Children",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Render",
              "anchor": "SpecFocusWithinCard.Render",
              "recv": "SpecFocusWithinCard",
              "decl": "func (c SpecFocusWithinCard) Render(cx *core.Scope) core.Node",
              "doc": "Render implements core.Node.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 1060
            }
          ]
        },
        {
          "name": "SpecIconButton",
          "anchor": "SpecIconButton",
          "decl": "type SpecIconButton struct {\n\tRef      *core.Ref\n\tIcon     func() *core.SVG\n\tLabel    string\n\tTooltip  string\n\tSize     core.Points\n\tIconSize core.Points\n\tTint     func() core.Color\n\tSelected func() bool\n\tDisabled func() bool\n\tOnPress  func()\n\tTestID   string\n}",
          "doc": "SpecIconButton is a Spec-compliant icon-only button with a 2 px accent focus ring\nat +2 px offset on :focus-visible only in both Spec Dark and Spec Light appearances,\nand a tooltip that opens on hover and focus.\n\nNSGo gap (v0.3.0): ui.IconButton hardcodes FocusRing(cx, -2) on ghost buttons and\nomits FocusVisible on circular variants.\n",
          "file": "pkg/editor/focus_regions.go",
          "line": 979,
          "members": [
            {
              "name": "Ref",
              "anchor": "SpecIconButton.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Icon",
              "anchor": "SpecIconButton.Icon",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "SpecIconButton.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tooltip",
              "anchor": "SpecIconButton.Tooltip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Size",
              "anchor": "SpecIconButton.Size",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IconSize",
              "anchor": "SpecIconButton.IconSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tint",
              "anchor": "SpecIconButton.Tint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Selected",
              "anchor": "SpecIconButton.Selected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "SpecIconButton.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnPress",
              "anchor": "SpecIconButton.OnPress",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestID",
              "anchor": "SpecIconButton.TestID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Render",
              "anchor": "SpecIconButton.Render",
              "recv": "SpecIconButton",
              "decl": "func (b SpecIconButton) Render(cx *core.Scope) core.Node",
              "doc": "Render implements core.Node.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 994
            }
          ]
        },
        {
          "name": "SpecPalette",
          "anchor": "SpecPalette",
          "decl": "type SpecPalette struct {\n\t// Dark reports whether this palette is the dark appearance.\n\tDark bool\n\n\t// Surfaces.\n\tBg          core.Color // Window and outer background (`bg`).\n\tPanel       core.Color // Side panels, inspector, agent panel (`panel`).\n\tRaised      core.Color // Cards, composer, toasts, popovers (`raised`).\n\tInset       core.Color // Recessed wells, tracks, sidebar rails (`inset`).\n\tViewport    core.Color // Viewport canvas surround (`.vp`).\n\tViewportDot core.Color // Viewport dot grid mark.\n\tPillBg      core.Color // Floating overlay pill background.\n\n\t// Borders.\n\tLine       core.Color // Dividers between regions (`line`).\n\tLineRaised core.Color // Edges of raised surfaces and quiet button fills (`line raised`).\n\n\t// Four text levels, all meeting WCAG 2.2 AA (>= 4.5:1) on Bg, Panel, and Raised.\n\tTextPrimary   core.Color // Spec `text strong`: titles, selected rows, primary button fill.\n\tTextSecondary core.Color // Spec `text`: body, messages, values.\n\tTextMuted     core.Color // Spec `text secondary`: labels, tree rows, file names.\n\tTextFaint     core.Color // Spec `text muted`: hints, placeholders, meta, section labels.\n\tOnTextPrimary core.Color // Ink drawn on a solid TextPrimary primary button fill (Play, Send, Create).\n\n\t// Semantic roles, each carrying Fg, Fill, Edge, and OnFill.\n\tAccent  SpecRole // Selection, focus ring, Keep; solid.\n\tAgent   SpecRole // Agent working; solid violet, never blue.\n\tAdded   SpecRole // New objects and lines; dashed.\n\tChanged SpecRole // Edited objects and values; dashed.\n\tRemoved SpecRole // Deleted objects and problems/errors; solid.\n\tWarning SpecRole // Permission asks, waiting, warning toasts (with dedicated Fill and Edge).\n\n\t// Surface interaction overlays and 3D viewport / axis tokens (docs/design/editor/Viewport3D.dc.html).\n\tHoverOverlay     core.Color // Subtle hover wash over surfaces (`surfaceHover`).\n\tActiveOverlay    core.Color // Subtle pressed wash over surfaces (`surfacePressed`).\n\tPrimaryHover     core.Color // Hover fill for solid TextPrimary buttons (`specPrimaryHover`).\n\tAccentHover      core.Color // Hover fill for solid Accent buttons (`accentHover`).\n\tAccentPressed    core.Color // Pressed fill for solid Accent buttons (`accentPressed`).\n\tViewport3DGround core.Color // 3D viewport ground plane (`specViewport3DGround`).\n\tViewport3DGrid   core.Color // 3D viewport grid line (`specViewport3DGrid`).\n\tAxisX            core.Color // 3D X axis token (`specAxisX`, #FF6B6B dark / #C92A2A light).\n\tAxisY            core.Color // 3D Y axis token (`specAxisY`, #4FD38A dark / #0D7A43 light).\n\tAxisZ            core.Color // 3D Z axis token (`specAxisZ`, #3B7BFF dark / #1D5CE6 light).\n}",
          "doc": "SpecPalette holds every color token defined by docs/design/editor/Spec.dc.html\nin either the Dark or Light appearance.\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 126,
          "members": [
            {
              "name": "Dark",
              "anchor": "SpecPalette.Dark",
              "kind": "field",
              "doc": "Dark reports whether this palette is the dark appearance."
            },
            {
              "name": "Bg",
              "anchor": "SpecPalette.Bg",
              "kind": "field",
              "doc": "Surfaces.\nWindow and outer background (`bg`)."
            },
            {
              "name": "Panel",
              "anchor": "SpecPalette.Panel",
              "kind": "field",
              "doc": "Side panels, inspector, agent panel (`panel`)."
            },
            {
              "name": "Raised",
              "anchor": "SpecPalette.Raised",
              "kind": "field",
              "doc": "Cards, composer, toasts, popovers (`raised`)."
            },
            {
              "name": "Inset",
              "anchor": "SpecPalette.Inset",
              "kind": "field",
              "doc": "Recessed wells, tracks, sidebar rails (`inset`)."
            },
            {
              "name": "Viewport",
              "anchor": "SpecPalette.Viewport",
              "kind": "field",
              "doc": "Viewport canvas surround (`.vp`)."
            },
            {
              "name": "ViewportDot",
              "anchor": "SpecPalette.ViewportDot",
              "kind": "field",
              "doc": "Viewport dot grid mark."
            },
            {
              "name": "PillBg",
              "anchor": "SpecPalette.PillBg",
              "kind": "field",
              "doc": "Floating overlay pill background."
            },
            {
              "name": "Line",
              "anchor": "SpecPalette.Line",
              "kind": "field",
              "doc": "Borders.\nDividers between regions (`line`)."
            },
            {
              "name": "LineRaised",
              "anchor": "SpecPalette.LineRaised",
              "kind": "field",
              "doc": "Edges of raised surfaces and quiet button fills (`line raised`)."
            },
            {
              "name": "TextPrimary",
              "anchor": "SpecPalette.TextPrimary",
              "kind": "field",
              "doc": "Four text levels, all meeting WCAG 2.2 AA (>= 4.5:1) on Bg, Panel, and Raised.\nSpec `text strong`: titles, selected rows, primary button fill."
            },
            {
              "name": "TextSecondary",
              "anchor": "SpecPalette.TextSecondary",
              "kind": "field",
              "doc": "Spec `text`: body, messages, values."
            },
            {
              "name": "TextMuted",
              "anchor": "SpecPalette.TextMuted",
              "kind": "field",
              "doc": "Spec `text secondary`: labels, tree rows, file names."
            },
            {
              "name": "TextFaint",
              "anchor": "SpecPalette.TextFaint",
              "kind": "field",
              "doc": "Spec `text muted`: hints, placeholders, meta, section labels."
            },
            {
              "name": "OnTextPrimary",
              "anchor": "SpecPalette.OnTextPrimary",
              "kind": "field",
              "doc": "Ink drawn on a solid TextPrimary primary button fill (Play, Send, Create)."
            },
            {
              "name": "Accent",
              "anchor": "SpecPalette.Accent",
              "kind": "field",
              "doc": "Semantic roles, each carrying Fg, Fill, Edge, and OnFill.\nSelection, focus ring, Keep; solid."
            },
            {
              "name": "Agent",
              "anchor": "SpecPalette.Agent",
              "kind": "field",
              "doc": "Agent working; solid violet, never blue."
            },
            {
              "name": "Added",
              "anchor": "SpecPalette.Added",
              "kind": "field",
              "doc": "New objects and lines; dashed."
            },
            {
              "name": "Changed",
              "anchor": "SpecPalette.Changed",
              "kind": "field",
              "doc": "Edited objects and values; dashed."
            },
            {
              "name": "Removed",
              "anchor": "SpecPalette.Removed",
              "kind": "field",
              "doc": "Deleted objects and problems/errors; solid."
            },
            {
              "name": "Warning",
              "anchor": "SpecPalette.Warning",
              "kind": "field",
              "doc": "Permission asks, waiting, warning toasts (with dedicated Fill and Edge)."
            },
            {
              "name": "HoverOverlay",
              "anchor": "SpecPalette.HoverOverlay",
              "kind": "field",
              "doc": "Surface interaction overlays and 3D viewport / axis tokens (docs/design/editor/Viewport3D.dc.html).\nSubtle hover wash over surfaces (`surfaceHover`)."
            },
            {
              "name": "ActiveOverlay",
              "anchor": "SpecPalette.ActiveOverlay",
              "kind": "field",
              "doc": "Subtle pressed wash over surfaces (`surfacePressed`)."
            },
            {
              "name": "PrimaryHover",
              "anchor": "SpecPalette.PrimaryHover",
              "kind": "field",
              "doc": "Hover fill for solid TextPrimary buttons (`specPrimaryHover`)."
            },
            {
              "name": "AccentHover",
              "anchor": "SpecPalette.AccentHover",
              "kind": "field",
              "doc": "Hover fill for solid Accent buttons (`accentHover`)."
            },
            {
              "name": "AccentPressed",
              "anchor": "SpecPalette.AccentPressed",
              "kind": "field",
              "doc": "Pressed fill for solid Accent buttons (`accentPressed`)."
            },
            {
              "name": "Viewport3DGround",
              "anchor": "SpecPalette.Viewport3DGround",
              "kind": "field",
              "doc": "3D viewport ground plane (`specViewport3DGround`)."
            },
            {
              "name": "Viewport3DGrid",
              "anchor": "SpecPalette.Viewport3DGrid",
              "kind": "field",
              "doc": "3D viewport grid line (`specViewport3DGrid`)."
            },
            {
              "name": "AxisX",
              "anchor": "SpecPalette.AxisX",
              "kind": "field",
              "doc": "3D X axis token (`specAxisX`, #FF6B6B dark / #C92A2A light)."
            },
            {
              "name": "AxisY",
              "anchor": "SpecPalette.AxisY",
              "kind": "field",
              "doc": "3D Y axis token (`specAxisY`, #4FD38A dark / #0D7A43 light)."
            },
            {
              "name": "AxisZ",
              "anchor": "SpecPalette.AxisZ",
              "kind": "field",
              "doc": "3D Z axis token (`specAxisZ`, #3B7BFF dark / #1D5CE6 light)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DarkSpecPalette",
              "anchor": "DarkSpecPalette",
              "decl": "func DarkSpecPalette() SpecPalette",
              "doc": "DarkSpecPalette returns the dark Spec token palette from docs/design/editor/Spec.dc.html.\n",
              "file": "pkg/editor/spec_theme.go",
              "line": 195
            },
            {
              "name": "LightSpecPalette",
              "anchor": "LightSpecPalette",
              "decl": "func LightSpecPalette() SpecPalette",
              "doc": "LightSpecPalette returns the light Spec token palette measured against the same WCAG 2.2 contrast table.\n",
              "file": "pkg/editor/spec_theme.go",
              "line": 200
            },
            {
              "name": "SpecPaletteFor",
              "anchor": "SpecPaletteFor",
              "decl": "func SpecPaletteFor(dark bool) SpecPalette",
              "doc": "SpecPaletteFor returns DarkSpecPalette when dark is true and LightSpecPalette otherwise.\n",
              "file": "pkg/editor/spec_theme.go",
              "line": 205
            }
          ],
          "methods": [
            {
              "name": "FocusRing",
              "anchor": "SpecPalette.FocusRing",
              "recv": "SpecPalette",
              "decl": "func (p SpecPalette) FocusRing(offset core.Points) *core.Style",
              "doc": "FocusRing returns the Spec keyboard focus ring style (2 px Accent.Edge outline with the given offset).\n",
              "file": "pkg/editor/spec_theme.go",
              "line": 175
            },
            {
              "name": "Problem",
              "anchor": "SpecPalette.Problem",
              "recv": "SpecPalette",
              "decl": "func (p SpecPalette) Problem() SpecRole",
              "doc": "Problem returns the semantic role shared by removed objects and problems/errors (Spec `removed · problem`).\n",
              "file": "pkg/editor/spec_theme.go",
              "line": 172
            }
          ]
        },
        {
          "name": "SpecRole",
          "anchor": "SpecRole",
          "decl": "type SpecRole struct {\n\t// Fg is the foreground text, icon, glyph, or solid badge fill color.\n\tFg core.Color\n\t// Fill is the tinted surface or pill fill color behind Fg or body text.\n\tFill core.Color\n\t// Edge is the border, focus ring, or viewport overlay outline stroke color.\n\tEdge core.Color\n\t// OnFill is the high-contrast ink drawn directly on a solid Fg fill (>= 4.5:1 AA).\n\t// It is never white on a fill that fails WCAG AA (for example dark Accent #3B7BFF or dark Agent #9B7BFF).\n\tOnFill core.Color\n}",
          "doc": "SpecRole holds the coordinated colors for a semantic Spec token role\n(Accent, Agent, Added, Changed, Removed/Problem, or Warning).\n",
          "file": "pkg/editor/spec_theme.go",
          "line": 112,
          "members": [
            {
              "name": "Fg",
              "anchor": "SpecRole.Fg",
              "kind": "field",
              "doc": "Fg is the foreground text, icon, glyph, or solid badge fill color."
            },
            {
              "name": "Fill",
              "anchor": "SpecRole.Fill",
              "kind": "field",
              "doc": "Fill is the tinted surface or pill fill color behind Fg or body text."
            },
            {
              "name": "Edge",
              "anchor": "SpecRole.Edge",
              "kind": "field",
              "doc": "Edge is the border, focus ring, or viewport overlay outline stroke color."
            },
            {
              "name": "OnFill",
              "anchor": "SpecRole.OnFill",
              "kind": "field",
              "doc": "OnFill is the high-contrast ink drawn directly on a solid Fg fill (>= 4.5:1 AA).\nIt is never white on a fill that fails WCAG AA (for example dark Accent #3B7BFF or dark Agent #9B7BFF)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SpecSwitch",
          "anchor": "SpecSwitch",
          "decl": "type SpecSwitch struct {\n\tRef      *core.Ref\n\tChecked  func() bool\n\tDisabled func() bool\n\tInvalid  func() bool\n\tOnChange func(bool)\n\tLabel    string\n\tSize     ui.Size\n\tTestID   string\n}",
          "doc": "SpecSwitch is a Spec-compliant on/off switch (RoleSwitch, aria-checked) with a\n2 px accent focus ring at +2 px offset on :focus-visible only in both Spec Dark\nand Spec Light appearances. Mouse clicks toggle without drawing the ring.\n\nNSGo gap (v0.3.0): ui.Switch does not set FocusVisible on its pressable view or track.\n",
          "file": "pkg/editor/focus_regions.go",
          "line": 906,
          "members": [
            {
              "name": "Ref",
              "anchor": "SpecSwitch.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checked",
              "anchor": "SpecSwitch.Checked",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "SpecSwitch.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Invalid",
              "anchor": "SpecSwitch.Invalid",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnChange",
              "anchor": "SpecSwitch.OnChange",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "SpecSwitch.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Size",
              "anchor": "SpecSwitch.Size",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestID",
              "anchor": "SpecSwitch.TestID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Render",
              "anchor": "SpecSwitch.Render",
              "recv": "SpecSwitch",
              "decl": "func (s SpecSwitch) Render(cx *core.Scope) core.Node",
              "doc": "Render implements core.Node.\n",
              "file": "pkg/editor/focus_regions.go",
              "line": 918
            }
          ]
        },
        {
          "name": "StartNameValidation",
          "anchor": "StartNameValidation",
          "decl": "type StartNameValidation struct {\n\t// OK reports whether the current inputs are valid and ready to create a project.\n\tOK bool\n\t// TargetDir is the resolved full target directory path.\n\tTargetDir string\n\t// DisplayPath is TargetDir shortened with \"~\" when inside the user's home directory.\n\tDisplayPath string\n\t// Exists reports whether TargetDir already exists on disk.\n\tExists bool\n\t// SuggestedName is the next free sibling folder name (such as \"dungeon-run-2\") when Exists is true.\n\tSuggestedName string\n\t// InvalidChars reports whether Name violates the lowercase a-z, 0-9, and - rule.\n\tInvalidChars bool\n\t// NotWritable reports whether the target parent directory is not writable.\n\tNotWritable bool\n\t// Message is the human-readable validation status or error text.\n\tMessage string\n}",
          "doc": "StartNameValidation summarizes live validation of the Start Screen's New Project name, folder, and module inputs.\n",
          "file": "pkg/editor/start_screen.go",
          "line": 101,
          "members": [
            {
              "name": "OK",
              "anchor": "StartNameValidation.OK",
              "kind": "field",
              "doc": "OK reports whether the current inputs are valid and ready to create a project."
            },
            {
              "name": "TargetDir",
              "anchor": "StartNameValidation.TargetDir",
              "kind": "field",
              "doc": "TargetDir is the resolved full target directory path."
            },
            {
              "name": "DisplayPath",
              "anchor": "StartNameValidation.DisplayPath",
              "kind": "field",
              "doc": "DisplayPath is TargetDir shortened with \"~\" when inside the user's home directory."
            },
            {
              "name": "Exists",
              "anchor": "StartNameValidation.Exists",
              "kind": "field",
              "doc": "Exists reports whether TargetDir already exists on disk."
            },
            {
              "name": "SuggestedName",
              "anchor": "StartNameValidation.SuggestedName",
              "kind": "field",
              "doc": "SuggestedName is the next free sibling folder name (such as \"dungeon-run-2\") when Exists is true."
            },
            {
              "name": "InvalidChars",
              "anchor": "StartNameValidation.InvalidChars",
              "kind": "field",
              "doc": "InvalidChars reports whether Name violates the lowercase a-z, 0-9, and - rule."
            },
            {
              "name": "NotWritable",
              "anchor": "StartNameValidation.NotWritable",
              "kind": "field",
              "doc": "NotWritable reports whether the target parent directory is not writable."
            },
            {
              "name": "Message",
              "anchor": "StartNameValidation.Message",
              "kind": "field",
              "doc": "Message is the human-readable validation status or error text."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ValidateNewProjectInputs",
              "anchor": "ValidateNewProjectInputs",
              "decl": "func ValidateNewProjectInputs(name, parentDir, module string) StartNameValidation",
              "doc": "ValidateNewProjectInputs checks name, parentDir, and optional module path according to the Start Screen rules:\nlowercase a-z, 0-9, and - starting with a letter; target folder does not exist (suggesting <name>-2 etc.);\nparent folder has write access; optional module path is a valid Go module path.\n",
              "file": "pkg/editor/start_screen.go",
              "line": 556
            }
          ],
          "methods": []
        },
        {
          "name": "StatesClipMeta",
          "anchor": "StatesClipMeta",
          "decl": "type StatesClipMeta struct {\n\tFrames     int\n\tLoop       bool\n\tSummary    string\n\tFirstFrame string\n}",
          "doc": "StatesClipMeta summarizes a state's animation clip for the graph node card and thumbnail.\n",
          "file": "pkg/editor/states.go",
          "line": 30,
          "members": [
            {
              "name": "Frames",
              "anchor": "StatesClipMeta.Frames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Loop",
              "anchor": "StatesClipMeta.Loop",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "StatesClipMeta.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FirstFrame",
              "anchor": "StatesClipMeta.FirstFrame",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "StatesOutgoing",
          "anchor": "StatesOutgoing",
          "decl": "type StatesOutgoing struct {\n\tIndex   int\n\tTo      string\n\tDetail  string\n\tFromAny bool\n}",
          "doc": "StatesOutgoing describes one row in the LEAVING <STATE> list.\n",
          "file": "pkg/editor/states.go",
          "line": 38,
          "members": [
            {
              "name": "Index",
              "anchor": "StatesOutgoing.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "To",
              "anchor": "StatesOutgoing.To",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "StatesOutgoing.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FromAny",
              "anchor": "StatesOutgoing.FromAny",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SuggestedProjectRule",
          "anchor": "SuggestedProjectRule",
          "decl": "type SuggestedProjectRule struct {\n\tID            string `json:\"id\"`\n\tPattern       string `json:\"pattern\"`\n\tReason        string `json:\"reason\"`\n\tRule          string `json:\"rule\"`\n\tRevertedCount int    `json:\"revertedCount\"`\n\tTotalMatches  int    `json:\"totalMatches\"`\n\tWindowSize    int    `json:\"windowSize\"`\n}",
          "doc": "SuggestedProjectRule is a project rule suggested from repeated reverted reviews.\n",
          "file": "pkg/editor/brief_rules.go",
          "line": 63,
          "members": [
            {
              "name": "ID",
              "anchor": "SuggestedProjectRule.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pattern",
              "anchor": "SuggestedProjectRule.Pattern",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "SuggestedProjectRule.Reason",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rule",
              "anchor": "SuggestedProjectRule.Rule",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RevertedCount",
              "anchor": "SuggestedProjectRule.RevertedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalMatches",
              "anchor": "SuggestedProjectRule.TotalMatches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WindowSize",
              "anchor": "SuggestedProjectRule.WindowSize",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TaskRequest",
          "anchor": "TaskRequest",
          "decl": "type TaskRequest struct {\n\tID                string\n\tNumber            int\n\tTitle             string\n\tPrompt            string\n\tSource            TaskSource\n\tPlanStep          int\n\tPlanTotal         int\n\tStartMode         TaskStartMode\n\tScenePath         string\n\tStepSummary       string\n\tStepIndex         int\n\tStepTotal         int\n\tSteps             []TaskStep\n\tPermissionPrompt  string\n\tPermissionDetail  string\n\tError             string\n\tEditingObjects    []string\n\tHoldingObjects    []string\n\tBlockedOn         string\n\tBlockedByTaskID   string\n\tStartsAfterTaskID string\n\tReview            *TaskReview\n\tTimeLabel         string\n\tElapsedSeconds    int\n\t// InitialState optionally seeds the task directly into a specific state (for automations,\n\t// plan steps, tests, or restored entries) without automatically launching AgentTaskRunner.\n\tInitialState TaskState\n}",
          "doc": "TaskRequest configures a new background task submitted to Editor.SubmitTask.\n",
          "file": "pkg/editor/tasks.go",
          "line": 230,
          "members": [
            {
              "name": "ID",
              "anchor": "TaskRequest.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Number",
              "anchor": "TaskRequest.Number",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "TaskRequest.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "TaskRequest.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "TaskRequest.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanStep",
              "anchor": "TaskRequest.PlanStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlanTotal",
              "anchor": "TaskRequest.PlanTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartMode",
              "anchor": "TaskRequest.StartMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "TaskRequest.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepSummary",
              "anchor": "TaskRequest.StepSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepIndex",
              "anchor": "TaskRequest.StepIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepTotal",
              "anchor": "TaskRequest.StepTotal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "TaskRequest.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionPrompt",
              "anchor": "TaskRequest.PermissionPrompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PermissionDetail",
              "anchor": "TaskRequest.PermissionDetail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "TaskRequest.Error",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditingObjects",
              "anchor": "TaskRequest.EditingObjects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HoldingObjects",
              "anchor": "TaskRequest.HoldingObjects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlockedOn",
              "anchor": "TaskRequest.BlockedOn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlockedByTaskID",
              "anchor": "TaskRequest.BlockedByTaskID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartsAfterTaskID",
              "anchor": "TaskRequest.StartsAfterTaskID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Review",
              "anchor": "TaskRequest.Review",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TimeLabel",
              "anchor": "TaskRequest.TimeLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ElapsedSeconds",
              "anchor": "TaskRequest.ElapsedSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InitialState",
              "anchor": "TaskRequest.InitialState",
              "kind": "field",
              "doc": "InitialState optionally seeds the task directly into a specific state (for automations,\nplan steps, tests, or restored entries) without automatically launching AgentTaskRunner."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TaskReview",
          "anchor": "TaskReview",
          "decl": "type TaskReview struct {\n\tID              string             `yaml:\"id\" json:\"id\"`\n\tTaskID          string             `yaml:\"taskId,omitempty\" json:\"taskId,omitempty\"`\n\tScenePath       string             `yaml:\"scene,omitempty\" json:\"scene,omitempty\"`\n\tSummary         string             `yaml:\"summary,omitempty\" json:\"summary,omitempty\"`\n\tChangeCount     int                `yaml:\"changeCount,omitempty\" json:\"changeCount,omitempty\"`\n\tChanges         []TaskReviewChange `yaml:\"changes,omitempty\" json:\"changes,omitempty\"`\n\tBeforeSceneYAML string             `yaml:\"beforeSceneYaml,omitempty\" json:\"beforeSceneYaml,omitempty\"`\n\tAfterSceneYAML  string             `yaml:\"afterSceneYaml,omitempty\" json:\"afterSceneYaml,omitempty\"`\n\tKept            bool               `yaml:\"kept,omitempty\" json:\"kept,omitempty\"`\n\tReverted        bool               `yaml:\"reverted,omitempty\" json:\"reverted,omitempty\"`\n\tDismissed       bool               `yaml:\"dismissed,omitempty\" json:\"dismissed,omitempty\"`\n}",
          "doc": "TaskReview records the separate review turn produced by one completed background task.\n",
          "file": "pkg/editor/tasks.go",
          "line": 137,
          "members": [
            {
              "name": "ID",
              "anchor": "TaskReview.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TaskID",
              "anchor": "TaskReview.TaskID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "TaskReview.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "TaskReview.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangeCount",
              "anchor": "TaskReview.ChangeCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changes",
              "anchor": "TaskReview.Changes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BeforeSceneYAML",
              "anchor": "TaskReview.BeforeSceneYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AfterSceneYAML",
              "anchor": "TaskReview.AfterSceneYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kept",
              "anchor": "TaskReview.Kept",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "TaskReview.Reverted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dismissed",
              "anchor": "TaskReview.Dismissed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveChangeCount",
              "anchor": "TaskReview.EffectiveChangeCount",
              "recv": "*TaskReview",
              "decl": "func (r *TaskReview) EffectiveChangeCount() int",
              "doc": "EffectiveChangeCount returns len(Changes) when populated, else ChangeCount.\n",
              "file": "pkg/editor/tasks.go",
              "line": 152
            }
          ]
        },
        {
          "name": "TaskReviewChange",
          "anchor": "TaskReviewChange",
          "decl": "type TaskReviewChange struct {\n\tObjectID   string `yaml:\"objectId,omitempty\" json:\"objectId,omitempty\"`\n\tFile       string `yaml:\"file,omitempty\" json:\"file,omitempty\"`\n\tKind       string `yaml:\"kind,omitempty\" json:\"kind,omitempty\"` // \"added\", \"changed\", \"removed\"\n\tSummary    string `yaml:\"summary,omitempty\" json:\"summary,omitempty\"`\n\tBeforeYAML string `yaml:\"beforeYaml,omitempty\" json:\"beforeYaml,omitempty\"`\n\tAfterYAML  string `yaml:\"afterYaml,omitempty\" json:\"afterYaml,omitempty\"`\n\tKept       bool   `yaml:\"kept,omitempty\" json:\"kept,omitempty\"`\n\tReverted   bool   `yaml:\"reverted,omitempty\" json:\"reverted,omitempty\"`\n}",
          "doc": "TaskReviewChange describes one object or file change belonging to a task's turn review.\n",
          "file": "pkg/editor/tasks.go",
          "line": 125,
          "members": [
            {
              "name": "ObjectID",
              "anchor": "TaskReviewChange.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "TaskReviewChange.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "TaskReviewChange.Kind",
              "kind": "field",
              "doc": "\"added\", \"changed\", \"removed\""
            },
            {
              "name": "Summary",
              "anchor": "TaskReviewChange.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BeforeYAML",
              "anchor": "TaskReviewChange.BeforeYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AfterYAML",
              "anchor": "TaskReviewChange.AfterYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kept",
              "anchor": "TaskReviewChange.Kept",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "TaskReviewChange.Reverted",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TaskSource",
          "anchor": "TaskSource",
          "decl": "type TaskSource string",
          "doc": "TaskSource identifies what initiated a background task (requests, plan steps, and automations share one list).\n",
          "file": "pkg/editor/tasks.go",
          "line": 83,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TaskSourceUser",
                  "anchor": "TaskSourceUser"
                },
                {
                  "name": "TaskSourcePlan",
                  "anchor": "TaskSourcePlan"
                },
                {
                  "name": "TaskSourceAutomation",
                  "anchor": "TaskSourceAutomation"
                }
              ],
              "decl": "const (\n\tTaskSourceUser       TaskSource = \"you\"\n\tTaskSourcePlan       TaskSource = \"plan\"\n\tTaskSourceAutomation TaskSource = \"automation\"\n)",
              "doc": "",
              "file": "pkg/editor/tasks.go",
              "line": 85
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "TaskSource.Valid",
              "recv": "TaskSource",
              "decl": "func (s TaskSource) Valid() bool",
              "doc": "Valid reports whether s is a known TaskSource.\n",
              "file": "pkg/editor/tasks.go",
              "line": 92
            }
          ]
        },
        {
          "name": "TaskStartMode",
          "anchor": "TaskStartMode",
          "decl": "type TaskStartMode string",
          "doc": "TaskStartMode chooses whether a new request queues behind the current turn or runs in parallel.\n",
          "file": "pkg/editor/tasks.go",
          "line": 102,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TaskStartQueue",
                  "anchor": "TaskStartQueue"
                },
                {
                  "name": "TaskStartParallel",
                  "anchor": "TaskStartParallel"
                }
              ],
              "decl": "const (\n\t// TaskStartQueue starts the request only after the running task is kept or reverted, so it builds on the reviewed scene.\n\tTaskStartQueue TaskStartMode = \"queue\"\n\t// TaskStartParallel starts immediately as a separate agent session with its own numbered overlay.\n\tTaskStartParallel TaskStartMode = \"parallel\"\n)",
              "doc": "",
              "file": "pkg/editor/tasks.go",
              "line": 104
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "TaskStartMode.Valid",
              "recv": "TaskStartMode",
              "decl": "func (m TaskStartMode) Valid() bool",
              "doc": "Valid reports whether m is a known TaskStartMode.\n",
              "file": "pkg/editor/tasks.go",
              "line": 112
            }
          ]
        },
        {
          "name": "TaskState",
          "anchor": "TaskState",
          "decl": "type TaskState string",
          "doc": "TaskState identifies where a background agent task sits in its lifecycle.\n",
          "file": "pkg/editor/tasks.go",
          "line": 43,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TaskNeedsYou",
                  "anchor": "TaskNeedsYou"
                },
                {
                  "name": "TaskRunning",
                  "anchor": "TaskRunning"
                },
                {
                  "name": "TaskReadyToReview",
                  "anchor": "TaskReadyToReview"
                },
                {
                  "name": "TaskQueued",
                  "anchor": "TaskQueued"
                },
                {
                  "name": "TaskFailed",
                  "anchor": "TaskFailed"
                },
                {
                  "name": "TaskStopped",
                  "anchor": "TaskStopped"
                },
                {
                  "name": "TaskDone",
                  "anchor": "TaskDone"
                }
              ],
              "decl": "const (\n\t// TaskNeedsYou means the task is paused waiting for a person's permission or input.\n\tTaskNeedsYou TaskState = \"needs_you\"\n\t// TaskRunning means the task is actively running (or holding on an object another task is editing).\n\tTaskRunning TaskState = \"running\"\n\t// TaskReadyToReview means the task finished its turn and waits for Keep, Revert, or Dismiss.\n\tTaskReadyToReview TaskState = \"ready_to_review\"\n\t// TaskQueued means the task waits for the running/unreviewed task ahead of it to be kept or reverted.\n\tTaskQueued TaskState = \"queued\"\n\t// TaskFailed means the task exited with an error and stays visible until opened, retried, or dismissed.\n\tTaskFailed TaskState = \"failed\"\n\t// TaskStopped means the task was stopped/cancelled or reverted.\n\tTaskStopped TaskState = \"stopped\"\n\t// TaskDone means the task's turn was kept and completed.\n\tTaskDone TaskState = \"done\"\n)",
              "doc": "",
              "file": "pkg/editor/tasks.go",
              "line": 45
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ActiveGroup",
              "anchor": "TaskState.ActiveGroup",
              "recv": "TaskState",
              "decl": "func (s TaskState) ActiveGroup() bool",
              "doc": "ActiveGroup reports whether s belongs to one of the five visible groups in the Tasks tab.\n",
              "file": "pkg/editor/tasks.go",
              "line": 73
            },
            {
              "name": "IsNotifiable",
              "anchor": "TaskState.IsNotifiable",
              "recv": "TaskState",
              "decl": "func (s TaskState) IsNotifiable() bool",
              "doc": "IsNotifiable reports whether s is one of the three states allowed to reach the person outside\nthe editor (waiting for permission, ready to review, or failed). Running, queued, stopped, and\ndone never send system notifications and never add to the Dock badge.\n",
              "file": "pkg/editor/agent_notifications.go",
              "line": 34
            },
            {
              "name": "Valid",
              "anchor": "TaskState.Valid",
              "recv": "TaskState",
              "decl": "func (s TaskState) Valid() bool",
              "doc": "Valid reports whether s is a known TaskState.\n",
              "file": "pkg/editor/tasks.go",
              "line": 63
            }
          ]
        },
        {
          "name": "TaskStatusPart",
          "anchor": "TaskStatusPart",
          "decl": "type TaskStatusPart struct {\n\tState TaskState\n\tLabel string\n}",
          "doc": "TaskStatusPart is one colored dot + label segment rendered in the status bar indicator.\n",
          "file": "pkg/editor/tasks.go",
          "line": 276,
          "members": [
            {
              "name": "State",
              "anchor": "TaskStatusPart.State",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "TaskStatusPart.Label",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TaskStep",
          "anchor": "TaskStep",
          "decl": "type TaskStep struct {\n\tSummary string `yaml:\"summary\" json:\"summary\"`\n\tDone    bool   `yaml:\"done,omitempty\" json:\"done,omitempty\"`\n\tActive  bool   `yaml:\"active,omitempty\" json:\"active,omitempty\"`\n\tBlocked bool   `yaml:\"blocked,omitempty\" json:\"blocked,omitempty\"`\n}",
          "doc": "TaskStep is one step entry shown in the focused task detail area.\n",
          "file": "pkg/editor/tasks.go",
          "line": 117,
          "members": [
            {
              "name": "Summary",
              "anchor": "TaskStep.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Done",
              "anchor": "TaskStep.Done",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Active",
              "anchor": "TaskStep.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blocked",
              "anchor": "TaskStep.Blocked",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TaskSummary",
          "anchor": "TaskSummary",
          "decl": "type TaskSummary struct {\n\tNeedsYou      int `json:\"needsYou\"`\n\tRunning       int `json:\"running\"`\n\tBlocked       int `json:\"blocked\"`\n\tReadyToReview int `json:\"readyToReview\"`\n\tQueued        int `json:\"queued\"`\n\tFailed        int `json:\"failed\"`\n\t// DockBadge equals NeedsYou + ReadyToReview + Failed; Running and Queued never add to it.\n\tDockBadge int `json:\"dockBadge\"`\n\t// MostUrgent is the highest-priority active state (Failed > NeedsYou > ReadyToReview > Running > Queued), or empty when idle.\n\tMostUrgent TaskState `json:\"mostUrgent,omitempty\"`\n}",
          "doc": "TaskSummary aggregates active task counts and Dock badge totals for the status bar, Tasks panel,\nand downstream notification/Dock badge consumers (#1023).\n",
          "file": "pkg/editor/tasks.go",
          "line": 262,
          "members": [
            {
              "name": "NeedsYou",
              "anchor": "TaskSummary.NeedsYou",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Running",
              "anchor": "TaskSummary.Running",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blocked",
              "anchor": "TaskSummary.Blocked",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReadyToReview",
              "anchor": "TaskSummary.ReadyToReview",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Queued",
              "anchor": "TaskSummary.Queued",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Failed",
              "anchor": "TaskSummary.Failed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DockBadge",
              "anchor": "TaskSummary.DockBadge",
              "kind": "field",
              "doc": "DockBadge equals NeedsYou + ReadyToReview + Failed; Running and Queued never add to it."
            },
            {
              "name": "MostUrgent",
              "anchor": "TaskSummary.MostUrgent",
              "kind": "field",
              "doc": "MostUrgent is the highest-priority active state (Failed > NeedsYou > ReadyToReview > Running > Queued), or empty when idle."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainBrush",
          "anchor": "TerrainBrush",
          "decl": "type TerrainBrush struct {\n\t// Mode selects the brush operation (TerrainBrushNone disables terrain brushing).\n\tMode TerrainBrushMode\n\t// Radius is the world-space XZ radius of the brush in meters (> 0; defaults to 8 when <= 0).\n\tRadius float32\n\t// Strength controls the per-dab brush intensity in (0, 1] (defaults to 0.5 when <= 0).\n\tStrength float32\n\t// Falloff controls how strength decays from center to radius.\n\tFalloff TerrainBrushFalloff\n\t// TargetHeight is the world-space Y elevation used by TerrainBrushSetHeight (and TerrainBrushFlatten when UseTargetHeight is true).\n\tTargetHeight float32\n\t// UseTargetHeight makes TerrainBrushFlatten target TargetHeight instead of sampling the terrain height where the stroke starts.\n\tUseTargetHeight bool\n\t// TargetDensity is the target foliage density in [0, 1] for TerrainBrushPaintFoliage (1 paints full density, 0 erases).\n\tTargetDensity float32\n\t// LayerIndex selects the material layer (0..len(doc.Layers)-1) painted by TerrainBrushPaintLayer.\n\tLayerIndex int\n\t// FoliageIndex selects the foliage layer (0..len(doc.Foliage)-1) painted by TerrainBrushPaintFoliage.\n\tFoliageIndex int\n}",
          "doc": "TerrainBrush configures the active terrain sculpt or paint tool.\n",
          "file": "pkg/editor/terrain.go",
          "line": 118,
          "members": [
            {
              "name": "Mode",
              "anchor": "TerrainBrush.Mode",
              "kind": "field",
              "doc": "Mode selects the brush operation (TerrainBrushNone disables terrain brushing)."
            },
            {
              "name": "Radius",
              "anchor": "TerrainBrush.Radius",
              "kind": "field",
              "doc": "Radius is the world-space XZ radius of the brush in meters (> 0; defaults to 8 when <= 0)."
            },
            {
              "name": "Strength",
              "anchor": "TerrainBrush.Strength",
              "kind": "field",
              "doc": "Strength controls the per-dab brush intensity in (0, 1] (defaults to 0.5 when <= 0)."
            },
            {
              "name": "Falloff",
              "anchor": "TerrainBrush.Falloff",
              "kind": "field",
              "doc": "Falloff controls how strength decays from center to radius."
            },
            {
              "name": "TargetHeight",
              "anchor": "TerrainBrush.TargetHeight",
              "kind": "field",
              "doc": "TargetHeight is the world-space Y elevation used by TerrainBrushSetHeight (and TerrainBrushFlatten when UseTargetHeight is true)."
            },
            {
              "name": "UseTargetHeight",
              "anchor": "TerrainBrush.UseTargetHeight",
              "kind": "field",
              "doc": "UseTargetHeight makes TerrainBrushFlatten target TargetHeight instead of sampling the terrain height where the stroke starts."
            },
            {
              "name": "TargetDensity",
              "anchor": "TerrainBrush.TargetDensity",
              "kind": "field",
              "doc": "TargetDensity is the target foliage density in [0, 1] for TerrainBrushPaintFoliage (1 paints full density, 0 erases)."
            },
            {
              "name": "LayerIndex",
              "anchor": "TerrainBrush.LayerIndex",
              "kind": "field",
              "doc": "LayerIndex selects the material layer (0..len(doc.Layers)-1) painted by TerrainBrushPaintLayer."
            },
            {
              "name": "FoliageIndex",
              "anchor": "TerrainBrush.FoliageIndex",
              "kind": "field",
              "doc": "FoliageIndex selects the foliage layer (0..len(doc.Foliage)-1) painted by TerrainBrushPaintFoliage."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultTerrainBrush",
              "anchor": "DefaultTerrainBrush",
              "decl": "func DefaultTerrainBrush() TerrainBrush",
              "doc": "DefaultTerrainBrush returns sensible defaults for terrain sculpting and painting.\n",
              "file": "pkg/editor/terrain.go",
              "line": 140
            }
          ],
          "methods": []
        },
        {
          "name": "TerrainBrushFalloff",
          "anchor": "TerrainBrushFalloff",
          "decl": "type TerrainBrushFalloff int",
          "doc": "TerrainBrushFalloff selects how a terrain brush's influence decays from its center to its radius.\n",
          "file": "pkg/editor/terrain.go",
          "line": 75,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TerrainFalloffSmooth",
                  "anchor": "TerrainFalloffSmooth"
                },
                {
                  "name": "TerrainFalloffLinear",
                  "anchor": "TerrainFalloffLinear"
                },
                {
                  "name": "TerrainFalloffFlat",
                  "anchor": "TerrainFalloffFlat"
                }
              ],
              "decl": "const (\n\t// TerrainFalloffSmooth uses a C1 smoothstep curve (1 at center, 0 at edge, flat derivatives at both ends).\n\tTerrainFalloffSmooth TerrainBrushFalloff = iota\n\t// TerrainFalloffLinear decays linearly from 1 at the center to 0 at the edge.\n\tTerrainFalloffLinear\n\t// TerrainFalloffFlat applies uniform weight 1 everywhere inside the brush radius.\n\tTerrainFalloffFlat\n)",
              "doc": "",
              "file": "pkg/editor/terrain.go",
              "line": 77
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "TerrainBrushFalloff.String",
              "recv": "TerrainBrushFalloff",
              "decl": "func (f TerrainBrushFalloff) String() string",
              "doc": "String returns a human-readable label for f.\n",
              "file": "pkg/editor/terrain.go",
              "line": 87
            }
          ]
        },
        {
          "name": "TerrainBrushMode",
          "anchor": "TerrainBrushMode",
          "decl": "type TerrainBrushMode int",
          "doc": "TerrainBrushMode selects the active terrain sculpting or painting brush in the 3D viewport.\n",
          "file": "pkg/editor/terrain.go",
          "line": 29,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TerrainBrushNone",
                  "anchor": "TerrainBrushNone"
                },
                {
                  "name": "TerrainBrushRaise",
                  "anchor": "TerrainBrushRaise"
                },
                {
                  "name": "TerrainBrushLower",
                  "anchor": "TerrainBrushLower"
                },
                {
                  "name": "TerrainBrushSmooth",
                  "anchor": "TerrainBrushSmooth"
                },
                {
                  "name": "TerrainBrushFlatten",
                  "anchor": "TerrainBrushFlatten"
                },
                {
                  "name": "TerrainBrushSetHeight",
                  "anchor": "TerrainBrushSetHeight"
                },
                {
                  "name": "TerrainBrushPaintLayer",
                  "anchor": "TerrainBrushPaintLayer"
                },
                {
                  "name": "TerrainBrushPaintFoliage",
                  "anchor": "TerrainBrushPaintFoliage"
                }
              ],
              "decl": "const (\n\t// TerrainBrushNone leaves normal 3D object picking, gizmos, and camera orbiting active.\n\tTerrainBrushNone TerrainBrushMode = iota\n\t// TerrainBrushRaise raises heightmap vertices within the brush radius.\n\tTerrainBrushRaise\n\t// TerrainBrushLower lowers heightmap vertices within the brush radius.\n\tTerrainBrushLower\n\t// TerrainBrushSmooth blends heightmap vertices toward their local neighborhood average.\n\tTerrainBrushSmooth\n\t// TerrainBrushFlatten levels heightmap vertices toward the height sampled at the start of the stroke (or TargetHeight when UseTargetHeight is true).\n\tTerrainBrushFlatten\n\t// TerrainBrushSetHeight moves heightmap vertices toward TerrainBrush.TargetHeight.\n\tTerrainBrushSetHeight\n\t// TerrainBrushPaintLayer increases the weight of TerrainBrush.LayerIndex and renormalizes the remaining material layers.\n\tTerrainBrushPaintLayer\n\t// TerrainBrushPaintFoliage blends the density of TerrainBrush.FoliageIndex toward TerrainBrush.TargetDensity.\n\tTerrainBrushPaintFoliage\n)",
              "doc": "",
              "file": "pkg/editor/terrain.go",
              "line": 31
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "TerrainBrushMode.String",
              "recv": "TerrainBrushMode",
              "decl": "func (m TerrainBrushMode) String() string",
              "doc": "String returns a human-readable label for m.\n",
              "file": "pkg/editor/terrain.go",
              "line": 51
            }
          ]
        },
        {
          "name": "TileCoord",
          "anchor": "TileCoord",
          "decl": "type TileCoord struct {\n\tCol int `json:\"col\"`\n\tRow int `json:\"row\"`\n}",
          "doc": "TileCoord is a 0-based (Col, Row) cell coordinate on an inline tilemap.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 19,
          "members": [
            {
              "name": "Col",
              "anchor": "TileCoord.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "TileCoord.Row",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TilePalette",
          "anchor": "TilePalette",
          "decl": "type TilePalette struct {\n\t// Layer is the active layer's name.\n\tLayer string\n\t// Tileset is the atlas a single grid names, or the YAML tileset file a layered grid names; empty when the layer has no inline tilemap.\n\tTileset string\n\t// TileWidth and TileHeight are the tilemap's tile size in points, which the palette shows each tile at.\n\tTileWidth, TileHeight int\n\t// Columns is the number of tiles per row in the palette grid (the YAML tileset's Columns when set, otherwise the panel's wrapped row width).\n\tColumns int\n\t// TileLayers are the names of a layered grid's tile layers, in order, and TileLayer the one tile tools change (Editor.ActiveTileLayer, or the first); both are empty for a single grid.\n\tTileLayers []string\n\tTileLayer  string\n\t// Terrains are the terrain sets defined in a layered grid's YAML tileset, and ActiveTerrain the one ToolTerrain paints (Editor.ActiveTerrain, or the first).\n\tTerrains      []PaletteTerrain\n\tActiveTerrain string\n\t// Tiles are the tileset's tiles in ascending ID order.\n\tTiles []PaletteTile\n\t// Message says why Tiles is empty, such as a layer without an inline tilemap or a tileset that does not resolve; it is empty when Tiles is not.\n\tMessage string\n}",
          "doc": "TilePalette is what the tile palette shows for the active layer: the tiles of the tileset its inline tilemap names, in tile ID order, or, when there are none to pick, why.\n",
          "file": "pkg/editor/tilepalette.go",
          "line": 64,
          "members": [
            {
              "name": "Layer",
              "anchor": "TilePalette.Layer",
              "kind": "field",
              "doc": "Layer is the active layer's name."
            },
            {
              "name": "Tileset",
              "anchor": "TilePalette.Tileset",
              "kind": "field",
              "doc": "Tileset is the atlas a single grid names, or the YAML tileset file a layered grid names; empty when the layer has no inline tilemap."
            },
            {
              "name": "TileWidth",
              "anchor": "TilePalette.TileWidth",
              "kind": "field",
              "doc": "TileWidth and TileHeight are the tilemap's tile size in points, which the palette shows each tile at."
            },
            {
              "name": "TileHeight",
              "anchor": "TilePalette.TileHeight",
              "kind": "field",
              "doc": "TileWidth and TileHeight are the tilemap's tile size in points, which the palette shows each tile at."
            },
            {
              "name": "Columns",
              "anchor": "TilePalette.Columns",
              "kind": "field",
              "doc": "Columns is the number of tiles per row in the palette grid (the YAML tileset's Columns when set, otherwise the panel's wrapped row width)."
            },
            {
              "name": "TileLayers",
              "anchor": "TilePalette.TileLayers",
              "kind": "field",
              "doc": "TileLayers are the names of a layered grid's tile layers, in order, and TileLayer the one tile tools change (Editor.ActiveTileLayer, or the first); both are empty for a single grid."
            },
            {
              "name": "TileLayer",
              "anchor": "TilePalette.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Terrains",
              "anchor": "TilePalette.Terrains",
              "kind": "field",
              "doc": "Terrains are the terrain sets defined in a layered grid's YAML tileset, and ActiveTerrain the one ToolTerrain paints (Editor.ActiveTerrain, or the first)."
            },
            {
              "name": "ActiveTerrain",
              "anchor": "TilePalette.ActiveTerrain",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tiles",
              "anchor": "TilePalette.Tiles",
              "kind": "field",
              "doc": "Tiles are the tileset's tiles in ascending ID order."
            },
            {
              "name": "Message",
              "anchor": "TilePalette.Message",
              "kind": "field",
              "doc": "Message says why Tiles is empty, such as a layer without an inline tilemap or a tileset that does not resolve; it is empty when Tiles is not."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Has",
              "anchor": "TilePalette.Has",
              "recv": "TilePalette",
              "decl": "func (p TilePalette) Has(id int) bool",
              "doc": "Has reports whether p holds a tile with the given ID.\n",
              "file": "pkg/editor/tilepalette.go",
              "line": 115
            },
            {
              "name": "Tile",
              "anchor": "TilePalette.Tile",
              "recv": "TilePalette",
              "decl": "func (p TilePalette) Tile(id int) (PaletteTile, bool)",
              "doc": "Tile returns the tile of p with the given ID, and whether p holds one.\n",
              "file": "pkg/editor/tilepalette.go",
              "line": 120
            }
          ]
        },
        {
          "name": "TilePreviewCell",
          "anchor": "TilePreviewCell",
          "decl": "type TilePreviewCell struct {\n\tCol   int\n\tRow   int\n\tTile  int\n\tFlip  uint32\n\tErase bool\n}",
          "doc": "TilePreviewCell is one cell in an in-progress brush stroke's live preview before release.\n",
          "file": "pkg/editor/tilebrush.go",
          "line": 113,
          "members": [
            {
              "name": "Col",
              "anchor": "TilePreviewCell.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "TilePreviewCell.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tile",
              "anchor": "TilePreviewCell.Tile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flip",
              "anchor": "TilePreviewCell.Flip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Erase",
              "anchor": "TilePreviewCell.Erase",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileQueryOptions",
          "anchor": "TileQueryOptions",
          "decl": "type TileQueryOptions struct {\n\t// Layer names the scene layer to query; empty uses ActiveLayer or the first layer with an inline tilemap.\n\tLayer string\n\t// TileLayer names the tile layer of a layered tilemap; empty uses ActiveTileLayer or its first tile layer.\n\tTileLayer string\n\t// TileIDs filters cells matching any of these tile IDs (0 = empty, >0 = tile ID as PaintTile takes it).\n\tTileIDs []int\n\t// TileNames filters cells matching any of these named tiles in the layer's YAML tileset.\n\tTileNames []string\n\t// EmptyOnly matches only empty cells (tile ID 0) when true.\n\tEmptyOnly bool\n\t// Rect, when non-nil, restricts the query to an inclusive sub-rectangle clamped to the map bounds.\n\tRect *TileRect\n\t// MinCells filters out connected regions smaller than MinCells.\n\tMinCells int\n\t// Diagonal uses 8-connected neighbors instead of the default 4-connected grid neighbors.\n\tDiagonal bool\n\t// IncludeCells controls whether each region includes its explicit Cells list.\n\t// When nil, cells are included automatically when total matched cells <= 512.\n\tIncludeCells *bool\n}",
          "doc": "TileQueryOptions configures Editor.QueryTiles.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 25,
          "members": [
            {
              "name": "Layer",
              "anchor": "TileQueryOptions.Layer",
              "kind": "field",
              "doc": "Layer names the scene layer to query; empty uses ActiveLayer or the first layer with an inline tilemap."
            },
            {
              "name": "TileLayer",
              "anchor": "TileQueryOptions.TileLayer",
              "kind": "field",
              "doc": "TileLayer names the tile layer of a layered tilemap; empty uses ActiveTileLayer or its first tile layer."
            },
            {
              "name": "TileIDs",
              "anchor": "TileQueryOptions.TileIDs",
              "kind": "field",
              "doc": "TileIDs filters cells matching any of these tile IDs (0 = empty, >0 = tile ID as PaintTile takes it)."
            },
            {
              "name": "TileNames",
              "anchor": "TileQueryOptions.TileNames",
              "kind": "field",
              "doc": "TileNames filters cells matching any of these named tiles in the layer's YAML tileset."
            },
            {
              "name": "EmptyOnly",
              "anchor": "TileQueryOptions.EmptyOnly",
              "kind": "field",
              "doc": "EmptyOnly matches only empty cells (tile ID 0) when true."
            },
            {
              "name": "Rect",
              "anchor": "TileQueryOptions.Rect",
              "kind": "field",
              "doc": "Rect, when non-nil, restricts the query to an inclusive sub-rectangle clamped to the map bounds."
            },
            {
              "name": "MinCells",
              "anchor": "TileQueryOptions.MinCells",
              "kind": "field",
              "doc": "MinCells filters out connected regions smaller than MinCells."
            },
            {
              "name": "Diagonal",
              "anchor": "TileQueryOptions.Diagonal",
              "kind": "field",
              "doc": "Diagonal uses 8-connected neighbors instead of the default 4-connected grid neighbors."
            },
            {
              "name": "IncludeCells",
              "anchor": "TileQueryOptions.IncludeCells",
              "kind": "field",
              "doc": "IncludeCells controls whether each region includes its explicit Cells list.\nWhen nil, cells are included automatically when total matched cells <= 512."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileQueryRegion",
          "anchor": "TileQueryRegion",
          "decl": "type TileQueryRegion struct {\n\tBounds      TileRect    `json:\"bounds\"`\n\tWidth       int         `json:\"width\"`\n\tHeight      int         `json:\"height\"`\n\tCellCount   int         `json:\"cellCount\"`\n\tRectangular bool        `json:\"rectangular\"`\n\tTileIDs     []int       `json:\"tileIds,omitempty\"`\n\tTileNames   []string    `json:\"tileNames,omitempty\"`\n\tSummary     string      `json:\"summary\"`\n\tCells       []TileCoord `json:\"cells,omitempty\"`\n}",
          "doc": "TileQueryRegion is one connected region of matching cells found by Editor.QueryTiles.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 48,
          "members": [
            {
              "name": "Bounds",
              "anchor": "TileQueryRegion.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "TileQueryRegion.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TileQueryRegion.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CellCount",
              "anchor": "TileQueryRegion.CellCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rectangular",
              "anchor": "TileQueryRegion.Rectangular",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileIDs",
              "anchor": "TileQueryRegion.TileIDs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileNames",
              "anchor": "TileQueryRegion.TileNames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "TileQueryRegion.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "TileQueryRegion.Cells",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileQueryResult",
          "anchor": "TileQueryResult",
          "decl": "type TileQueryResult struct {\n\tLayer        string            `json:\"layer\"`\n\tTileLayer    string            `json:\"tileLayer,omitempty\"`\n\tTileset      string            `json:\"tileset,omitempty\"`\n\tWidth        int               `json:\"width\"`\n\tHeight       int               `json:\"height\"`\n\tTileWidth    int               `json:\"tileWidth\"`\n\tTileHeight   int               `json:\"tileHeight\"`\n\tMatchedCells int               `json:\"matchedCells\"`\n\tRegions      []TileQueryRegion `json:\"regions\"`\n}",
          "doc": "TileQueryResult is what Editor.QueryTiles returns.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 61,
          "members": [
            {
              "name": "Layer",
              "anchor": "TileQueryResult.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayer",
              "anchor": "TileQueryResult.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tileset",
              "anchor": "TileQueryResult.Tileset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "TileQueryResult.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TileQueryResult.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileWidth",
              "anchor": "TileQueryResult.TileWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileHeight",
              "anchor": "TileQueryResult.TileHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MatchedCells",
              "anchor": "TileQueryResult.MatchedCells",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Regions",
              "anchor": "TileQueryResult.Regions",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileRect",
          "anchor": "TileRect",
          "decl": "type TileRect struct {\n\tCol0, Row0 int\n\tCol1, Row1 int\n}",
          "doc": "TileRect is an inclusive cell rectangle on an inline tilemap, with Col0 <= Col1 and Row0 <= Row1.\n",
          "file": "pkg/editor/tilebrush.go",
          "line": 16,
          "members": [
            {
              "name": "Col0",
              "anchor": "TileRect.Col0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row0",
              "anchor": "TileRect.Row0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Col1",
              "anchor": "TileRect.Col1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row1",
              "anchor": "TileRect.Row1",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Height",
              "anchor": "TileRect.Height",
              "recv": "TileRect",
              "decl": "func (r TileRect) Height() int",
              "doc": "Height returns the number of rows in r (0 when invalid).\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 30
            },
            {
              "name": "Width",
              "anchor": "TileRect.Width",
              "recv": "TileRect",
              "decl": "func (r TileRect) Width() int",
              "doc": "Width returns the number of columns in r (0 when invalid).\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 22
            }
          ]
        },
        {
          "name": "TileReviewCell",
          "anchor": "TileReviewCell",
          "decl": "type TileReviewCell struct {\n\tCol    int   `json:\"col\"`\n\tRow    int   `json:\"row\"`\n\tOldGID int64 `json:\"oldTile\"`\n\tNewGID int64 `json:\"newTile\"`\n}",
          "doc": "TileReviewCell is one changed cell belonging to a TileReviewRegion.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 171,
          "members": [
            {
              "name": "Col",
              "anchor": "TileReviewCell.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "TileReviewCell.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldGID",
              "anchor": "TileReviewCell.OldGID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NewGID",
              "anchor": "TileReviewCell.NewGID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileReviewKind",
          "anchor": "TileReviewKind",
          "decl": "type TileReviewKind string",
          "doc": "TileReviewKind classifies how a tile review region differs from the pre-review tilemap.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 151,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TileReviewPainted",
                  "anchor": "TileReviewPainted"
                },
                {
                  "name": "TileReviewReplaced",
                  "anchor": "TileReviewReplaced"
                },
                {
                  "name": "TileReviewErased",
                  "anchor": "TileReviewErased"
                }
              ],
              "decl": "const (\n\t// TileReviewPainted marks cells that were empty before and now hold a tile.\n\tTileReviewPainted TileReviewKind = \"painted\"\n\t// TileReviewReplaced marks cells that held a tile before and now hold a different tile or flip.\n\tTileReviewReplaced TileReviewKind = \"replaced\"\n\t// TileReviewErased marks cells that held a tile before and are now empty.\n\tTileReviewErased TileReviewKind = \"erased\"\n)",
              "doc": "",
              "file": "pkg/editor/tile_review.go",
              "line": 153
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileReviewRegion",
          "anchor": "TileReviewRegion",
          "decl": "type TileReviewRegion struct {\n\tID       string           `json:\"id\"`\n\tKind     TileReviewKind   `json:\"kind\"`\n\tSign     string           `json:\"sign\"`\n\tTitle    string           `json:\"title\"`\n\tDetail   string           `json:\"detail\"`\n\tBounds   TileRect         `json:\"bounds\"`\n\tCells    []TileReviewCell `json:\"cells,omitempty\"`\n\tReverted bool             `json:\"reverted\"`\n}",
          "doc": "TileReviewRegion is one connected region of pending agent tile edits that can be reverted or restored independently.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 179,
          "members": [
            {
              "name": "ID",
              "anchor": "TileReviewRegion.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "TileReviewRegion.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "TileReviewRegion.Sign",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "TileReviewRegion.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "TileReviewRegion.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "TileReviewRegion.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "TileReviewRegion.Cells",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "TileReviewRegion.Reverted",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileReviewStep",
          "anchor": "TileReviewStep",
          "decl": "type TileReviewStep struct {\n\tTool         string `json:\"tool\"`\n\tSummary      string `json:\"summary\"`\n\tChangedCells int    `json:\"changedCells\"`\n}",
          "doc": "TileReviewStep records one agent tile tool step inside the active tile review.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 191,
          "members": [
            {
              "name": "Tool",
              "anchor": "TileReviewStep.Tool",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "TileReviewStep.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangedCells",
              "anchor": "TileReviewStep.ChangedCells",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileReviewView",
          "anchor": "TileReviewView",
          "decl": "type TileReviewView int",
          "doc": "TileReviewView selects whether the viewport shows the Before or After state during a tile review.\n",
          "file": "pkg/editor/tile_review.go",
          "line": 163,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TileReviewAfter",
                  "anchor": "TileReviewAfter"
                },
                {
                  "name": "TileReviewBefore",
                  "anchor": "TileReviewBefore"
                }
              ],
              "decl": "const (\n\tTileReviewAfter TileReviewView = iota\n\tTileReviewBefore\n)",
              "doc": "",
              "file": "pkg/editor/tile_review.go",
              "line": 165
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileStamp",
          "anchor": "TileStamp",
          "decl": "type TileStamp struct {\n\tWidth  int\n\tHeight int\n\tTiles  []int\n\tFlips  []uint32\n}",
          "doc": "TileStamp is a rectangular pattern of tiles painted by the Stamp brush or held by the tile region clipboard.\nTiles is row-major of length Width*Height: 0 is an empty cell, and a positive integer is a tile ID (as PaintTile takes it).\nFlips, when non-empty (length Width*Height), carries per-cell flip bits (tilemap.FlipHorizontal, FlipVertical, FlipDiagonal) for layered tilemaps.\n",
          "file": "pkg/editor/tilebrush.go",
          "line": 50,
          "members": [
            {
              "name": "Width",
              "anchor": "TileStamp.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TileStamp.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tiles",
              "anchor": "TileStamp.Tiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flips",
              "anchor": "TileStamp.Flips",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Cell",
              "anchor": "TileStamp.Cell",
              "recv": "TileStamp",
              "decl": "func (s TileStamp) Cell(col, row int) (int, uint32)",
              "doc": "Cell returns the tile ID and flip bits at (col, row) within s, or (0, 0) out of bounds.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 76
            },
            {
              "name": "Clone",
              "anchor": "TileStamp.Clone",
              "recv": "TileStamp",
              "decl": "func (s TileStamp) Clone() TileStamp",
              "doc": "Clone returns an independent copy of s.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 63
            },
            {
              "name": "Empty",
              "anchor": "TileStamp.Empty",
              "recv": "TileStamp",
              "decl": "func (s TileStamp) Empty() bool",
              "doc": "Empty reports whether s holds no cells.\n",
              "file": "pkg/editor/tilebrush.go",
              "line": 58
            }
          ]
        },
        {
          "name": "TileStrokeMode",
          "anchor": "TileStrokeMode",
          "decl": "type TileStrokeMode int",
          "doc": "TileStrokeMode says what a tile stroke (Editor.BeginTileStroke) does to the cells under the pointer.\n",
          "file": "pkg/editor/tilestroke.go",
          "line": 14,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TileStrokePaint",
                  "anchor": "TileStrokePaint"
                },
                {
                  "name": "TileStrokeErase",
                  "anchor": "TileStrokeErase"
                },
                {
                  "name": "TileStrokePick",
                  "anchor": "TileStrokePick"
                },
                {
                  "name": "TileStrokeTerrain",
                  "anchor": "TileStrokeTerrain"
                },
                {
                  "name": "TileStrokeEraseTerrain",
                  "anchor": "TileStrokeEraseTerrain"
                },
                {
                  "name": "TileStrokeRect",
                  "anchor": "TileStrokeRect"
                },
                {
                  "name": "TileStrokeRectErase",
                  "anchor": "TileStrokeRectErase"
                },
                {
                  "name": "TileStrokeLine",
                  "anchor": "TileStrokeLine"
                },
                {
                  "name": "TileStrokeLineErase",
                  "anchor": "TileStrokeLineErase"
                },
                {
                  "name": "TileStrokeStamp",
                  "anchor": "TileStrokeStamp"
                },
                {
                  "name": "TileStrokeRandom",
                  "anchor": "TileStrokeRandom"
                },
                {
                  "name": "TileStrokeSelectRegion",
                  "anchor": "TileStrokeSelectRegion"
                }
              ],
              "decl": "const (\n\t// TileStrokePaint writes the active tile (ActiveTileID) into every cell the stroke crosses.\n\tTileStrokePaint TileStrokeMode = iota\n\t// TileStrokeErase clears every cell the stroke crosses.\n\tTileStrokeErase\n\t// TileStrokePick makes the tile in the cell under the pointer the active tile, as the pointer moves, and edits nothing.\n\tTileStrokePick\n\t// TileStrokeTerrain places terrain tiles from the active terrain set into every cell the stroke crosses and updates neighbors with SetAutotile rules.\n\tTileStrokeTerrain\n\t// TileStrokeEraseTerrain removes terrain from every cell the stroke crosses and updates neighbors with SetAutotile rules.\n\tTileStrokeEraseTerrain\n\t// TileStrokeRect fills the dragged rectangle with ActiveTileID, previewed live and committed on EndTileStroke.\n\tTileStrokeRect\n\t// TileStrokeRectErase clears every cell in the dragged rectangle, previewed live and committed on EndTileStroke.\n\tTileStrokeRectErase\n\t// TileStrokeLine draws a Bresenham line of ActiveTileID between the start and end cells, previewed live and committed on EndTileStroke.\n\tTileStrokeLine\n\t// TileStrokeLineErase clears every cell along a Bresenham line between the start and end cells, previewed live and committed on EndTileStroke.\n\tTileStrokeLineErase\n\t// TileStrokeStamp paints the active TileStamp pattern along the stroke, pattern-aligned to the start cell, previewed live and committed on EndTileStroke.\n\tTileStrokeStamp\n\t// TileStrokeRandom paints deterministic weighted picks from the random brush pool along the stroke, previewed live and committed on EndTileStroke.\n\tTileStrokeRandom\n\t// TileStrokeSelectRegion selects a rectangular region of cells on the active tilemap for Copy or Cut.\n\tTileStrokeSelectRegion\n)",
              "doc": "",
              "file": "pkg/editor/tilestroke.go",
              "line": 16
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "TileStrokeMode.String",
              "recv": "TileStrokeMode",
              "decl": "func (m TileStrokeMode) String() string",
              "doc": "String returns a human-readable label for the mode.\n",
              "file": "pkg/editor/tilestroke.go",
              "line": 44
            }
          ]
        },
        {
          "name": "TilesetEditorTab",
          "anchor": "TilesetEditorTab",
          "decl": "type TilesetEditorTab string",
          "doc": "TilesetEditorTab selects which per-tile editing tab is shown in the Tileset Editor panel.\n",
          "file": "pkg/editor/tileset_editor.go",
          "line": 33,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TilesetTabTerrain",
                  "anchor": "TilesetTabTerrain"
                },
                {
                  "name": "TilesetTabCollision",
                  "anchor": "TilesetTabCollision"
                },
                {
                  "name": "TilesetTabAnimation",
                  "anchor": "TilesetTabAnimation"
                },
                {
                  "name": "TilesetTabData",
                  "anchor": "TilesetTabData"
                }
              ],
              "decl": "const (\n\t// TilesetTabTerrain edits 4-bit cardinal and 8-bit blob autotile masks.\n\tTilesetTabTerrain TilesetEditorTab = \"terrain\"\n\t// TilesetTabCollision edits per-tile solid/one-way/custom flags and rect/polygon collision shapes.\n\tTilesetTabCollision TilesetEditorTab = \"collision\"\n\t// TilesetTabAnimation edits per-tile animation frames, durations, and live playback preview.\n\tTilesetTabAnimation TilesetEditorTab = \"animation\"\n\t// TilesetTabData edits per-tile name, variant weight, and typed custom properties.\n\tTilesetTabData TilesetEditorTab = \"data\"\n)",
              "doc": "",
              "file": "pkg/editor/tileset_editor.go",
              "line": 35
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TilesetShapeTool",
          "anchor": "TilesetShapeTool",
          "decl": "type TilesetShapeTool string",
          "doc": "TilesetShapeTool selects the interactive collision shape drawing tool on the tile canvas.\n",
          "file": "pkg/editor/tileset_editor.go",
          "line": 47,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TilesetShapeToolRect",
                  "anchor": "TilesetShapeToolRect"
                },
                {
                  "name": "TilesetShapeToolPolygon",
                  "anchor": "TilesetShapeToolPolygon"
                }
              ],
              "decl": "const (\n\t// TilesetShapeToolRect adds or edits rectangular collision shapes over the tile.\n\tTilesetShapeToolRect TilesetShapeTool = \"rect\"\n\t// TilesetShapeToolPolygon clicks vertices over the tile to construct a polygon collision shape.\n\tTilesetShapeToolPolygon TilesetShapeTool = \"polygon\"\n)",
              "doc": "",
              "file": "pkg/editor/tileset_editor.go",
              "line": 49
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Toast",
          "anchor": "Toast",
          "decl": "type Toast struct {\n\t// ID optionally deduplicates repeated identical events in the toast queue.\n\tID string\n\t// Kind selects the icon shape and surface styling (ToastWarning uses Spec Warning.Fill and Warning.Edge).\n\tKind ToastKind\n\t// Message is the single-line feedback text.\n\tMessage string\n\t// ActionLabel is an optional short verb button label (for example \"Undo\", \"Show\", \"Retry\", or \"Cancel\").\n\tActionLabel string\n\t// ActionShortcut is an optional keyboard shortcut hint shown next to ActionLabel (for example \"⌘Z\").\n\tActionShortcut string\n\t// OnAction runs when the user activates the toast's action button.\n\tOnAction func()\n\t// Progress is the 0..1 completion fraction for ToastProgress toasts.\n\tProgress float32\n\t// Dismissible reports whether a Dismiss button is shown; defaults to true when Kind != ToastProgress.\n\tDismissible *bool\n}",
          "doc": "Toast describes a transient feedback message shown at the bottom center of the editor viewport\n(or bottom center of the window when no viewport is on screen, per docs/design/editor/Toasts.dc.html).\nDecisions never go in a toast; at most one action button is shown.\n",
          "file": "pkg/editor/toasts.go",
          "line": 116,
          "members": [
            {
              "name": "ID",
              "anchor": "Toast.ID",
              "kind": "field",
              "doc": "ID optionally deduplicates repeated identical events in the toast queue."
            },
            {
              "name": "Kind",
              "anchor": "Toast.Kind",
              "kind": "field",
              "doc": "Kind selects the icon shape and surface styling (ToastWarning uses Spec Warning.Fill and Warning.Edge)."
            },
            {
              "name": "Message",
              "anchor": "Toast.Message",
              "kind": "field",
              "doc": "Message is the single-line feedback text."
            },
            {
              "name": "ActionLabel",
              "anchor": "Toast.ActionLabel",
              "kind": "field",
              "doc": "ActionLabel is an optional short verb button label (for example \"Undo\", \"Show\", \"Retry\", or \"Cancel\")."
            },
            {
              "name": "ActionShortcut",
              "anchor": "Toast.ActionShortcut",
              "kind": "field",
              "doc": "ActionShortcut is an optional keyboard shortcut hint shown next to ActionLabel (for example \"⌘Z\")."
            },
            {
              "name": "OnAction",
              "anchor": "Toast.OnAction",
              "kind": "field",
              "doc": "OnAction runs when the user activates the toast's action button."
            },
            {
              "name": "Progress",
              "anchor": "Toast.Progress",
              "kind": "field",
              "doc": "Progress is the 0..1 completion fraction for ToastProgress toasts."
            },
            {
              "name": "Dismissible",
              "anchor": "Toast.Dismissible",
              "kind": "field",
              "doc": "Dismissible reports whether a Dismiss button is shown; defaults to true when Kind != ToastProgress."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToastEvent",
          "anchor": "ToastEvent",
          "decl": "type ToastEvent struct {\n\t// Kind selects canonical Spec defaults (toast tone, action label, shortcut, timeout,\n\t// and default deduplication key).\n\tKind ToastEventKind\n\t// ID optionally overrides the default deduplication key derived from Kind and Target.\n\tID string\n\t// Target optionally identifies the subject (for example a file path or export preset)\n\t// used to scope the default deduplication key when ID is empty.\n\tTarget string\n\t// Message is the single-line feedback text displayed in the toast.\n\tMessage string\n\t// ActionLabel optionally overrides the canonical verb button label for Kind.\n\tActionLabel string\n\t// ActionShortcut optionally overrides the canonical keyboard shortcut hint for Kind\n\t// (for example \"⌘Z\" or \"Ctrl+Z\").\n\tActionShortcut string\n\t// OnAction runs when the user activates the toast's action button.\n\tOnAction func()\n\t// OnCancel runs when the user activates Cancel on a ToastEventExportRunning toast or\n\t// calls ToastHandle.Cancel. If OnAction is nil on a progress event, Cancel runs OnCancel.\n\tOnCancel func()\n\t// Progress is the initial 0..1 completion fraction for ToastEventExportRunning toasts.\n\tProgress float32\n}",
          "doc": "ToastEvent describes a Spec feedback-channel event routed to the editor's toast queue\nvia Editor.EmitToastEvent.\n",
          "file": "pkg/editor/toasts.go",
          "line": 88,
          "members": [
            {
              "name": "Kind",
              "anchor": "ToastEvent.Kind",
              "kind": "field",
              "doc": "Kind selects canonical Spec defaults (toast tone, action label, shortcut, timeout,\nand default deduplication key)."
            },
            {
              "name": "ID",
              "anchor": "ToastEvent.ID",
              "kind": "field",
              "doc": "ID optionally overrides the default deduplication key derived from Kind and Target."
            },
            {
              "name": "Target",
              "anchor": "ToastEvent.Target",
              "kind": "field",
              "doc": "Target optionally identifies the subject (for example a file path or export preset)\nused to scope the default deduplication key when ID is empty."
            },
            {
              "name": "Message",
              "anchor": "ToastEvent.Message",
              "kind": "field",
              "doc": "Message is the single-line feedback text displayed in the toast."
            },
            {
              "name": "ActionLabel",
              "anchor": "ToastEvent.ActionLabel",
              "kind": "field",
              "doc": "ActionLabel optionally overrides the canonical verb button label for Kind."
            },
            {
              "name": "ActionShortcut",
              "anchor": "ToastEvent.ActionShortcut",
              "kind": "field",
              "doc": "ActionShortcut optionally overrides the canonical keyboard shortcut hint for Kind\n(for example \"⌘Z\" or \"Ctrl+Z\")."
            },
            {
              "name": "OnAction",
              "anchor": "ToastEvent.OnAction",
              "kind": "field",
              "doc": "OnAction runs when the user activates the toast's action button."
            },
            {
              "name": "OnCancel",
              "anchor": "ToastEvent.OnCancel",
              "kind": "field",
              "doc": "OnCancel runs when the user activates Cancel on a ToastEventExportRunning toast or\ncalls ToastHandle.Cancel. If OnAction is nil on a progress event, Cancel runs OnCancel."
            },
            {
              "name": "Progress",
              "anchor": "ToastEvent.Progress",
              "kind": "field",
              "doc": "Progress is the initial 0..1 completion fraction for ToastEventExportRunning toasts."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToastEventKind",
          "anchor": "ToastEventKind",
          "decl": "type ToastEventKind string",
          "doc": "ToastEventKind identifies a canonical passing-feedback event from the Spec's Feedback\nchannels table (docs/design/editor/Spec.dc.html). Screens emit events through\nEditor.EmitToastEvent instead of inventing ad-hoc tones, durations, or queue keys.\n",
          "file": "pkg/editor/toasts.go",
          "line": 71,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ToastEventReviewKept",
                  "anchor": "ToastEventReviewKept"
                },
                {
                  "name": "ToastEventReviewReverted",
                  "anchor": "ToastEventReviewReverted"
                },
                {
                  "name": "ToastEventFixApplied",
                  "anchor": "ToastEventFixApplied"
                },
                {
                  "name": "ToastEventAgentStopped",
                  "anchor": "ToastEventAgentStopped"
                },
                {
                  "name": "ToastEventPermissionSaved",
                  "anchor": "ToastEventPermissionSaved"
                },
                {
                  "name": "ToastEventCopied",
                  "anchor": "ToastEventCopied"
                },
                {
                  "name": "ToastEventDiskChanged",
                  "anchor": "ToastEventDiskChanged"
                },
                {
                  "name": "ToastEventSaveFailed",
                  "anchor": "ToastEventSaveFailed"
                },
                {
                  "name": "ToastEventExportRunning",
                  "anchor": "ToastEventExportRunning"
                },
                {
                  "name": "ToastEventExportFailed",
                  "anchor": "ToastEventExportFailed"
                }
              ],
              "decl": "const (\n\tToastEventReviewKept      ToastEventKind = \"review.kept\"\n\tToastEventReviewReverted  ToastEventKind = \"review.reverted\"\n\tToastEventFixApplied      ToastEventKind = \"problem.fix_applied\"\n\tToastEventAgentStopped    ToastEventKind = \"agent.stopped\"\n\tToastEventPermissionSaved ToastEventKind = \"permission.rule_saved\"\n\tToastEventCopied          ToastEventKind = \"clipboard.copied\"\n\tToastEventDiskChanged     ToastEventKind = \"disk.file_changed\"\n\tToastEventSaveFailed      ToastEventKind = \"save.failed\"\n\tToastEventExportRunning   ToastEventKind = \"export.running\"\n\tToastEventExportFailed    ToastEventKind = \"export.failed\"\n)",
              "doc": "",
              "file": "pkg/editor/toasts.go",
              "line": 73
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToastHandle",
          "anchor": "ToastHandle",
          "decl": "type ToastHandle struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ToastHandle tracks a toast emitted into an Editor so long-running work (such as an export)\ncan update its percent, transition in place into a success or error toast when the work\nfinishes, cancel that work, or dismiss the toast. All methods are safe on a nil handle.\n",
          "file": "pkg/editor/toasts.go",
          "line": 184,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Active",
              "anchor": "ToastHandle.Active",
              "recv": "*ToastHandle",
              "decl": "func (h *ToastHandle) Active() bool",
              "doc": "Active reports whether this toast is currently visible or waiting in the editor's queue.\n",
              "file": "pkg/editor/toasts.go",
              "line": 198
            },
            {
              "name": "Cancel",
              "anchor": "ToastHandle.Cancel",
              "recv": "*ToastHandle",
              "decl": "func (h *ToastHandle) Cancel()",
              "doc": "Cancel invokes the toast's cancellation callback (if any) once and dismisses the toast.\n",
              "file": "pkg/editor/toasts.go",
              "line": 299
            },
            {
              "name": "Complete",
              "anchor": "ToastHandle.Complete",
              "recv": "*ToastHandle",
              "decl": "func (h *ToastHandle) Complete(message, actionLabel, actionShortcut string, onAction func())",
              "doc": "Complete transitions a running progress (or active) toast in place into a ToastSuccess toast\n(for example \"Exported build/macos/dungeon-run.app\" with \"Show in Finder\"), starting its\nSpec auto-dismiss timer (4 s, or 6 s when actionLabel is non-empty).\n",
              "file": "pkg/editor/toasts.go",
              "line": 233
            },
            {
              "name": "Dismiss",
              "anchor": "ToastHandle.Dismiss",
              "recv": "*ToastHandle",
              "decl": "func (h *ToastHandle) Dismiss()",
              "doc": "Dismiss removes this specific toast from the visible slot or waiting queue.\n",
              "file": "pkg/editor/toasts.go",
              "line": 318
            },
            {
              "name": "Fail",
              "anchor": "ToastHandle.Fail",
              "recv": "*ToastHandle",
              "decl": "func (h *ToastHandle) Fail(message, actionLabel string, onRetry func())",
              "doc": "Fail transitions a running progress (or active) toast in place into a persistent ToastError\ntoast (staying until retried or dismissed) with an optional Retry action.\n",
              "file": "pkg/editor/toasts.go",
              "line": 266
            },
            {
              "name": "ID",
              "anchor": "ToastHandle.ID",
              "recv": "*ToastHandle",
              "decl": "func (h *ToastHandle) ID() string",
              "doc": "ID returns the toast's queue/deduplication identifier.\n",
              "file": "pkg/editor/toasts.go",
              "line": 190
            },
            {
              "name": "SetProgress",
              "anchor": "ToastHandle.SetProgress",
              "recv": "*ToastHandle",
              "decl": "func (h *ToastHandle) SetProgress(progress float32, message string)",
              "doc": "SetProgress updates a running progress toast's 0..1 completion fraction and optional message\nin place without disturbing its queue position, motion state, or keyboard focus.\n",
              "file": "pkg/editor/toasts.go",
              "line": 207
            }
          ]
        },
        {
          "name": "ToastKind",
          "anchor": "ToastKind",
          "decl": "type ToastKind string",
          "doc": "ToastKind identifies the visual tone and semantic icon of an editor toast (docs/design/editor/Toasts.dc.html).\n",
          "file": "pkg/editor/toasts.go",
          "line": 16,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ToastSuccess",
                  "anchor": "ToastSuccess"
                },
                {
                  "name": "ToastInfo",
                  "anchor": "ToastInfo"
                },
                {
                  "name": "ToastWarning",
                  "anchor": "ToastWarning"
                },
                {
                  "name": "ToastError",
                  "anchor": "ToastError"
                },
                {
                  "name": "ToastProgress",
                  "anchor": "ToastProgress"
                }
              ],
              "decl": "const (\n\tToastSuccess  ToastKind = \"success\"\n\tToastInfo     ToastKind = \"info\"\n\tToastWarning  ToastKind = \"warning\"\n\tToastError    ToastKind = \"error\"\n\tToastProgress ToastKind = \"progress\"\n)",
              "doc": "",
              "file": "pkg/editor/toasts.go",
              "line": 18
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Tool",
          "anchor": "Tool",
          "decl": "type Tool int",
          "doc": "Tool selects the active viewport interaction mode.\n",
          "file": "pkg/editor/state.go",
          "line": 48,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ToolSelect",
                  "anchor": "ToolSelect"
                },
                {
                  "name": "ToolMove",
                  "anchor": "ToolMove"
                },
                {
                  "name": "ToolPlace",
                  "anchor": "ToolPlace"
                },
                {
                  "name": "ToolPaintTile",
                  "anchor": "ToolPaintTile"
                },
                {
                  "name": "ToolEraseTile",
                  "anchor": "ToolEraseTile"
                },
                {
                  "name": "ToolFillTile",
                  "anchor": "ToolFillTile"
                },
                {
                  "name": "ToolPlugin",
                  "anchor": "ToolPlugin"
                },
                {
                  "name": "ToolPickTile",
                  "anchor": "ToolPickTile"
                },
                {
                  "name": "ToolTerrain",
                  "anchor": "ToolTerrain"
                },
                {
                  "name": "ToolRectTile",
                  "anchor": "ToolRectTile"
                },
                {
                  "name": "ToolLineTile",
                  "anchor": "ToolLineTile"
                },
                {
                  "name": "ToolStampTile",
                  "anchor": "ToolStampTile"
                },
                {
                  "name": "ToolRandomTile",
                  "anchor": "ToolRandomTile"
                },
                {
                  "name": "ToolNavTestPath",
                  "anchor": "ToolNavTestPath"
                },
                {
                  "name": "ToolRotate",
                  "anchor": "ToolRotate"
                },
                {
                  "name": "ToolScale",
                  "anchor": "ToolScale"
                },
                {
                  "name": "ToolPan",
                  "anchor": "ToolPan"
                }
              ],
              "decl": "const (\n\tToolSelect Tool = iota\n\tToolMove\n\tToolPlace\n\tToolPaintTile\n\tToolEraseTile\n\tToolFillTile\n\t// ToolPlugin is a plugin's tool, chosen with Editor.SetPluginTool; SetTool(ToolPlugin) is ignored.\n\tToolPlugin\n\t// ToolPickTile takes the tile under the pointer as the active tile (Editor.PickTile), then hands over to ToolPaintTile.\n\tToolPickTile\n\t// ToolTerrain paints or erases autotiled terrain sets from a layered grid's YAML tileset, updating each cell and its neighbors through the same rules as tilemap.Tilemap.SetAutotile.\n\tToolTerrain\n\t// ToolRectTile fills or erases a dragged rectangle of tiles on the active layer's inline tilemap.\n\tToolRectTile\n\t// ToolLineTile draws or erases a Bresenham line of tiles between two cells.\n\tToolLineTile\n\t// ToolStampTile paints a rectangular TileStamp pattern (selected from the palette or copied/cut from the map).\n\tToolStampTile\n\t// ToolRandomTile paints a deterministic weighted random pick from selected tiles.\n\tToolRandomTile\n\t// ToolNavTestPath sets start and end world points on click to preview the path ai.NavMesh.FindPath finds on the built 2D navigation mesh.\n\tToolNavTestPath\n\t// ToolRotate rotates the selected object in 2D (and sets 3D Gizmo3DRotate).\n\tToolRotate\n\t// ToolScale scales the selected object in 2D (and sets 3D Gizmo3DScale).\n\tToolScale\n\t// ToolPan pans the viewport camera on drag.\n\tToolPan\n)",
              "doc": "",
              "file": "pkg/editor/state.go",
              "line": 50
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Tool.String",
              "recv": "Tool",
              "decl": "func (t Tool) String() string",
              "doc": "String returns a human-readable label for the tool.\n",
              "file": "pkg/editor/state.go",
              "line": 82
            }
          ]
        },
        {
          "name": "Transform3D",
          "anchor": "Transform3D",
          "decl": "type Transform3D struct {\n\tX, Y, PosZ       float32\n\tRotX, RotY, RotZ float32\n\tScaleX           *float32\n\tScaleY           *float32\n\tScaleZ           *float32\n}",
          "doc": "Transform3D snapshots an object's 3D transform fields (preserving nil Scale pointers\nso Undo restores unset YAML fields byte-for-byte).\n",
          "file": "pkg/editor/state.go",
          "line": 2577,
          "members": [
            {
              "name": "X",
              "anchor": "Transform3D.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Transform3D.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PosZ",
              "anchor": "Transform3D.PosZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotX",
              "anchor": "Transform3D.RotX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotY",
              "anchor": "Transform3D.RotY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotZ",
              "anchor": "Transform3D.RotZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleX",
              "anchor": "Transform3D.ScaleX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleY",
              "anchor": "Transform3D.ScaleY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleZ",
              "anchor": "Transform3D.ScaleZ",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UsageFileGroup",
          "anchor": "UsageFileGroup",
          "decl": "type UsageFileGroup struct {\n\tFile            string         `json:\"file\"`\n\tName            string         `json:\"name\"`\n\tGroup           UsageGroupKind `json:\"group\"`\n\tNotRewritten    bool           `json:\"notRewritten,omitempty\"`\n\tVirtualWidth    float32        `json:\"virtualWidth,omitempty\"`\n\tVirtualHeight   float32        `json:\"virtualHeight,omitempty\"`\n\tBackgroundColor string         `json:\"backgroundColor,omitempty\"`\n\tRefs            []UsageItem    `json:\"refs\"`\n}",
          "doc": "UsageFileGroup groups all usages inside one project file.\n",
          "file": "pkg/editor/usages.go",
          "line": 79,
          "members": [
            {
              "name": "File",
              "anchor": "UsageFileGroup.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "UsageFileGroup.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Group",
              "anchor": "UsageFileGroup.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NotRewritten",
              "anchor": "UsageFileGroup.NotRewritten",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VirtualWidth",
              "anchor": "UsageFileGroup.VirtualWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VirtualHeight",
              "anchor": "UsageFileGroup.VirtualHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BackgroundColor",
              "anchor": "UsageFileGroup.BackgroundColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Refs",
              "anchor": "UsageFileGroup.Refs",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UsageGroupKind",
          "anchor": "UsageGroupKind",
          "decl": "type UsageGroupKind string",
          "doc": "UsageGroupKind classifies a usage into one of the four primary References screen categories (plus Other).\n",
          "file": "pkg/editor/usages.go",
          "line": 39,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "UsageGroupScenes",
                  "anchor": "UsageGroupScenes"
                },
                {
                  "name": "UsageGroupVariants",
                  "anchor": "UsageGroupVariants"
                },
                {
                  "name": "UsageGroupDataTables",
                  "anchor": "UsageGroupDataTables"
                },
                {
                  "name": "UsageGroupGoCode",
                  "anchor": "UsageGroupGoCode"
                },
                {
                  "name": "UsageGroupOther",
                  "anchor": "UsageGroupOther"
                }
              ],
              "decl": "const (\n\t// UsageGroupScenes lists scene instances referencing the target file, with override counts.\n\tUsageGroupScenes UsageGroupKind = \"scenes\"\n\t// UsageGroupVariants lists prefab or scene variants that inherit the target file.\n\tUsageGroupVariants UsageGroupKind = \"variants\"\n\t// UsageGroupDataTables lists data table rows referencing the target file.\n\tUsageGroupDataTables UsageGroupKind = \"data\"\n\t// UsageGroupGoCode lists Go string literals or constants holding the target path (not rewritten).\n\tUsageGroupGoCode UsageGroupKind = \"go\"\n\t// UsageGroupOther lists references in other YAML/JSON project files (such as game.yaml, cutscenes, or screens).\n\tUsageGroupOther UsageGroupKind = \"other\"\n)",
              "doc": "",
              "file": "pkg/editor/usages.go",
              "line": 41
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UsageItem",
          "anchor": "UsageItem",
          "decl": "type UsageItem struct {\n\tFile          string         `json:\"file\"`\n\tLine          int            `json:\"line\"`\n\tColumn        int            `json:\"column,omitempty\"`\n\tGroup         UsageGroupKind `json:\"group\"`\n\tLabel         string         `json:\"label\"`\n\tField         string         `json:\"field\"`\n\tValue         string         `json:\"value\"`\n\tObjectID      string         `json:\"objectId,omitempty\"`\n\tTopObjectID   string         `json:\"topObjectId,omitempty\"`\n\tRowID         string         `json:\"rowId,omitempty\"`\n\tGoIdent       string         `json:\"goIdent,omitempty\"`\n\tX             float32        `json:\"x,omitempty\"`\n\tY             float32        `json:\"y,omitempty\"`\n\tHasPos        bool           `json:\"hasPos,omitempty\"`\n\tOverrideCount int            `json:\"overrideCount,omitempty\"`\n\tOverrides     []string       `json:\"overrides,omitempty\"`\n\tNotRewritten  bool           `json:\"notRewritten,omitempty\"`\n}",
          "doc": "UsageItem is one occurrence of a reference to the target file.\n",
          "file": "pkg/editor/usages.go",
          "line": 58,
          "members": [
            {
              "name": "File",
              "anchor": "UsageItem.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "UsageItem.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Column",
              "anchor": "UsageItem.Column",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Group",
              "anchor": "UsageItem.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "UsageItem.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "UsageItem.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "UsageItem.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "UsageItem.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TopObjectID",
              "anchor": "UsageItem.TopObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RowID",
              "anchor": "UsageItem.RowID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GoIdent",
              "anchor": "UsageItem.GoIdent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "UsageItem.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "UsageItem.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasPos",
              "anchor": "UsageItem.HasPos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OverrideCount",
              "anchor": "UsageItem.OverrideCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Overrides",
              "anchor": "UsageItem.Overrides",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NotRewritten",
              "anchor": "UsageItem.NotRewritten",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UsagesReport",
          "anchor": "UsagesReport",
          "decl": "type UsagesReport struct {\n\tTarget      string           `json:\"target\"`\n\tTotalUsages int              `json:\"totalUsages\"`\n\tTotalFiles  int              `json:\"totalFiles\"`\n\tScenes      []UsageFileGroup `json:\"scenes,omitempty\"`\n\tVariants    []UsageFileGroup `json:\"variants,omitempty\"`\n\tDataTables  []UsageFileGroup `json:\"dataTables,omitempty\"`\n\tGoCode      []UsageFileGroup `json:\"goCode,omitempty\"`\n\tOther       []UsageFileGroup `json:\"other,omitempty\"`\n}",
          "doc": "UsagesReport is the grouped result of Editor.FindUsages across scenes, prefab variants, data tables, Go code, and other files.\n",
          "file": "pkg/editor/usages.go",
          "line": 91,
          "members": [
            {
              "name": "Target",
              "anchor": "UsagesReport.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalUsages",
              "anchor": "UsagesReport.TotalUsages",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalFiles",
              "anchor": "UsagesReport.TotalFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scenes",
              "anchor": "UsagesReport.Scenes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Variants",
              "anchor": "UsagesReport.Variants",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DataTables",
              "anchor": "UsagesReport.DataTables",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GoCode",
              "anchor": "UsagesReport.GoCode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Other",
              "anchor": "UsagesReport.Other",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AllFiles",
              "anchor": "UsagesReport.AllFiles",
              "recv": "*UsagesReport",
              "decl": "func (r *UsagesReport) AllFiles() []UsageFileGroup",
              "doc": "AllFiles returns all grouped files in display order: Scenes, Prefab Variants, Data Tables, Go Code, Other.\n",
              "file": "pkg/editor/usages.go",
              "line": 103
            },
            {
              "name": "FileByPath",
              "anchor": "UsagesReport.FileByPath",
              "recv": "*UsagesReport",
              "decl": "func (r *UsagesReport) FileByPath(p string) *UsageFileGroup",
              "doc": "FileByPath looks up a UsageFileGroup by its slash-separated project path.\n",
              "file": "pkg/editor/usages.go",
              "line": 117
            }
          ]
        },
        {
          "name": "View2D",
          "anchor": "View2D",
          "decl": "type View2D struct {\n\t// X and Y are the world point shown at the center of the viewport's canvas.\n\tX, Y float32\n\t// Zoom is how many canvas points one world unit spans, between MinView2DZoom and MaxView2DZoom.\n\tZoom float32\n\t// Rotation turns the view in radians, as CameraDoc.Rotation turns the scene's camera: the world turns by -Rotation on the canvas. Panning and zooming keep it; only the scene camera's view (ResetView2D) sets it.\n\tRotation float32\n}",
          "doc": "View2D is the 2D viewport's own view of the world: the editor's camera, which the author pans and zooms to reach any part of a level. It is separate from the scene's camera (SceneDoc.Camera), which says what the player sees, and is never saved to the scene nor recorded in History.\n",
          "file": "pkg/editor/view2d.go",
          "line": 11,
          "members": [
            {
              "name": "X",
              "anchor": "View2D.X",
              "kind": "field",
              "doc": "X and Y are the world point shown at the center of the viewport's canvas."
            },
            {
              "name": "Y",
              "anchor": "View2D.Y",
              "kind": "field",
              "doc": "X and Y are the world point shown at the center of the viewport's canvas."
            },
            {
              "name": "Zoom",
              "anchor": "View2D.Zoom",
              "kind": "field",
              "doc": "Zoom is how many canvas points one world unit spans, between MinView2DZoom and MaxView2DZoom."
            },
            {
              "name": "Rotation",
              "anchor": "View2D.Rotation",
              "kind": "field",
              "doc": "Rotation turns the view in radians, as CameraDoc.Rotation turns the scene's camera: the world turns by -Rotation on the canvas. Panning and zooming keep it; only the scene camera's view (ResetView2D) sets it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "View3D",
          "anchor": "View3D",
          "decl": "type View3D int",
          "doc": "View3D names one of the six axis-aligned views of the 3D viewport, each looking at Target from one end of a world axis.\n",
          "file": "pkg/editor/navigate3d.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "View3DFront",
                  "anchor": "View3DFront"
                },
                {
                  "name": "View3DBack",
                  "anchor": "View3DBack"
                },
                {
                  "name": "View3DRight",
                  "anchor": "View3DRight"
                },
                {
                  "name": "View3DLeft",
                  "anchor": "View3DLeft"
                },
                {
                  "name": "View3DTop",
                  "anchor": "View3DTop"
                },
                {
                  "name": "View3DBottom",
                  "anchor": "View3DBottom"
                }
              ],
              "decl": "const (\n\t// View3DFront looks from +Z toward -Z.\n\tView3DFront View3D = iota\n\t// View3DBack looks from -Z toward +Z.\n\tView3DBack\n\t// View3DRight looks from +X toward -X.\n\tView3DRight\n\t// View3DLeft looks from -X toward +X.\n\tView3DLeft\n\t// View3DTop looks straight down from +Y, with -Z at the top of the view.\n\tView3DTop\n\t// View3DBottom looks straight up from -Y, with +Z at the top of the view.\n\tView3DBottom\n)",
              "doc": "",
              "file": "pkg/editor/navigate3d.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "View3D.String",
              "recv": "View3D",
              "decl": "func (v View3D) String() string",
              "doc": "String returns the view's name: Front, Back, Right, Left, Top or Bottom.\n",
              "file": "pkg/editor/navigate3d.go",
              "line": 31
            }
          ]
        },
        {
          "name": "ViewMode",
          "anchor": "ViewMode",
          "decl": "type ViewMode int",
          "doc": "ViewMode selects whether the editor viewport renders and edits in 2D or 3D.\n",
          "file": "pkg/editor/state.go",
          "line": 124,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ViewMode2D",
                  "anchor": "ViewMode2D"
                },
                {
                  "name": "ViewMode3D",
                  "anchor": "ViewMode3D"
                }
              ],
              "decl": "const (\n\tViewMode2D ViewMode = iota\n\tViewMode3D\n)",
              "doc": "",
              "file": "pkg/editor/state.go",
              "line": 126
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ViewMode.String",
              "recv": "ViewMode",
              "decl": "func (m ViewMode) String() string",
              "doc": "String returns a human-readable label for the view mode.\n",
              "file": "pkg/editor/state.go",
              "line": 132
            }
          ]
        },
        {
          "name": "Viewport3DAgentPromptKind",
          "anchor": "Viewport3DAgentPromptKind",
          "decl": "type Viewport3DAgentPromptKind int",
          "doc": "Viewport3DAgentPromptKind identifies what the 3D viewport's inline agent prompt is asking for.\n",
          "file": "pkg/editor/models.go",
          "line": 952,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Viewport3DAgentPromptNone",
                  "anchor": "Viewport3DAgentPromptNone"
                },
                {
                  "name": "Viewport3DAgentPromptModel",
                  "anchor": "Viewport3DAgentPromptModel"
                },
                {
                  "name": "Viewport3DAgentPromptComponent",
                  "anchor": "Viewport3DAgentPromptComponent"
                }
              ],
              "decl": "const (\n\t// Viewport3DAgentPromptNone means the 3D inline agent prompt is closed.\n\tViewport3DAgentPromptNone Viewport3DAgentPromptKind = iota\n\t// Viewport3DAgentPromptModel asks the agent for a new 3D model (\"Or ask for one\").\n\tViewport3DAgentPromptModel\n\t// Viewport3DAgentPromptComponent asks the agent to add a component to the selected object (\"Ask to add a component…\").\n\tViewport3DAgentPromptComponent\n)",
              "doc": "",
              "file": "pkg/editor/models.go",
              "line": 954
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Viewport3DAgentRequest",
          "anchor": "Viewport3DAgentRequest",
          "decl": "type Viewport3DAgentRequest struct {\n\tKind     Viewport3DAgentPromptKind\n\tObjectID string\n\tPrompt   string\n}",
          "doc": "Viewport3DAgentRequest is dispatched when the author submits a prompt from the 3D MODELS strip (\"Or ask for one\")\nor from the 3D inspector (\"Ask to add a component…\").\n",
          "file": "pkg/editor/models.go",
          "line": 965,
          "members": [
            {
              "name": "Kind",
              "anchor": "Viewport3DAgentRequest.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "Viewport3DAgentRequest.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "Viewport3DAgentRequest.Prompt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ViewportLiveOverlay",
          "anchor": "ViewportLiveOverlay",
          "decl": "type ViewportLiveOverlay struct {\n\tKind     OverlayLegendKind `json:\"kind\"`\n\tObjectID string            `json:\"objectId\"`\n\tLabel    string            `json:\"label\"`\n\tDetail   string            `json:\"detail,omitempty\"`\n\tDashed   bool              `json:\"dashed\"`\n\tOutsetPx float32           `json:\"outsetPx\"`\n\tGhost    bool              `json:\"ghost,omitempty\"`\n\tVisible  bool              `json:\"visible\"`\n\tReadOnly bool              `json:\"readOnly,omitempty\"`\n}",
          "doc": "ViewportLiveOverlay describes one inspectable overlay drawn in the viewport for the current editor state.\n",
          "file": "pkg/editor/agent_live.go",
          "line": 123,
          "members": [
            {
              "name": "Kind",
              "anchor": "ViewportLiveOverlay.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectID",
              "anchor": "ViewportLiveOverlay.ObjectID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "ViewportLiveOverlay.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "ViewportLiveOverlay.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dashed",
              "anchor": "ViewportLiveOverlay.Dashed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OutsetPx",
              "anchor": "ViewportLiveOverlay.OutsetPx",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ghost",
              "anchor": "ViewportLiveOverlay.Ghost",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visible",
              "anchor": "ViewportLiveOverlay.Visible",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReadOnly",
              "anchor": "ViewportLiveOverlay.ReadOnly",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ViewportOverlay",
          "anchor": "ViewportOverlay",
          "decl": "type ViewportOverlay struct {\n\t// ID uniquely identifies the overlay in editor settings and editormcp's viewport_overlays list.\n\t// It must be non-empty with no spaces or control characters.\n\tID string\n\t// Name is the human-readable label shown in the Overlays popover (for example \"Patrol paths\").\n\tName string\n\t// NameKey is an optional localization key resolved in the editor's or owning plugin's catalog.\n\tNameKey string\n\t// DefaultOn sets whether the overlay starts enabled when EditorSettings.ViewportOverlays is nil.\n\tDefaultOn bool\n\t// Color is the swatch color (from Spec tokens for built-in overlays).\n\tColor core.Color\n\t// Swatch selects the swatch style rendered beside Name in the Overlays popover.\n\tSwatch ViewportOverlaySwatch\n\t// Count optionally returns the live item count in the current scene for the Overlays popover.\n\tCount func(ed *Editor) int\n\t// CountUnit optionally formats a count with a unit noun (for example \"5 shapes\" or \"2 regions\").\n\tCountUnit func(ed *Editor, n int) string\n\t// Draw renders the overlay onto d in canvas coordinates (using Editor.WorldToCanvas or Editor.layerAffineFor).\n\tDraw func(ed *Editor, d *core.Drawing, scene *sceneformat.BuiltScene)\n\t// contains filtered or unexported fields\n}",
          "doc": "ViewportOverlay describes a toggleable 2D viewport overlay drawn in both the live editor viewport\nand the editor MCP server's viewport_image tool. Plugins can register custom overlays via\nPlugin.Overlays or Editor.RegisterViewportOverlay.\n",
          "file": "pkg/editor/overlays.go",
          "line": 56,
          "members": [
            {
              "name": "ID",
              "anchor": "ViewportOverlay.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the overlay in editor settings and editormcp's viewport_overlays list.\nIt must be non-empty with no spaces or control characters."
            },
            {
              "name": "Name",
              "anchor": "ViewportOverlay.Name",
              "kind": "field",
              "doc": "Name is the human-readable label shown in the Overlays popover (for example \"Patrol paths\")."
            },
            {
              "name": "NameKey",
              "anchor": "ViewportOverlay.NameKey",
              "kind": "field",
              "doc": "NameKey is an optional localization key resolved in the editor's or owning plugin's catalog."
            },
            {
              "name": "DefaultOn",
              "anchor": "ViewportOverlay.DefaultOn",
              "kind": "field",
              "doc": "DefaultOn sets whether the overlay starts enabled when EditorSettings.ViewportOverlays is nil."
            },
            {
              "name": "Color",
              "anchor": "ViewportOverlay.Color",
              "kind": "field",
              "doc": "Color is the swatch color (from Spec tokens for built-in overlays)."
            },
            {
              "name": "Swatch",
              "anchor": "ViewportOverlay.Swatch",
              "kind": "field",
              "doc": "Swatch selects the swatch style rendered beside Name in the Overlays popover."
            },
            {
              "name": "Count",
              "anchor": "ViewportOverlay.Count",
              "kind": "field",
              "doc": "Count optionally returns the live item count in the current scene for the Overlays popover."
            },
            {
              "name": "CountUnit",
              "anchor": "ViewportOverlay.CountUnit",
              "kind": "field",
              "doc": "CountUnit optionally formats a count with a unit noun (for example \"5 shapes\" or \"2 regions\")."
            },
            {
              "name": "Draw",
              "anchor": "ViewportOverlay.Draw",
              "kind": "field",
              "doc": "Draw renders the overlay onto d in canvas coordinates (using Editor.WorldToCanvas or Editor.layerAffineFor)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ViewportOverlaySwatch",
          "anchor": "ViewportOverlaySwatch",
          "decl": "type ViewportOverlaySwatch int",
          "doc": "ViewportOverlaySwatch selects the visual legend swatch shown beside an overlay row in the Overlays popover.\n",
          "file": "pkg/editor/overlays.go",
          "line": 36,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OverlaySwatchBox",
                  "anchor": "OverlaySwatchBox"
                },
                {
                  "name": "OverlaySwatchDashedBox",
                  "anchor": "OverlaySwatchDashedBox"
                },
                {
                  "name": "OverlaySwatchLine",
                  "anchor": "OverlaySwatchLine"
                },
                {
                  "name": "OverlaySwatchDashedLine",
                  "anchor": "OverlaySwatchDashedLine"
                },
                {
                  "name": "OverlaySwatchRegion",
                  "anchor": "OverlaySwatchRegion"
                },
                {
                  "name": "OverlaySwatchLabel",
                  "anchor": "OverlaySwatchLabel"
                }
              ],
              "decl": "const (\n\t// OverlaySwatchBox draws a solid rectangular outline swatch.\n\tOverlaySwatchBox ViewportOverlaySwatch = iota\n\t// OverlaySwatchDashedBox draws a dotted/dashed rectangular outline with subtle tinted fill.\n\tOverlaySwatchDashedBox\n\t// OverlaySwatchLine draws a solid horizontal line swatch.\n\tOverlaySwatchLine\n\t// OverlaySwatchDashedLine draws a dotted/dashed horizontal line swatch.\n\tOverlaySwatchDashedLine\n\t// OverlaySwatchRegion draws a shaded region swatch with a top edge line.\n\tOverlaySwatchRegion\n\t// OverlaySwatchLabel draws an underline bar representing text labels.\n\tOverlaySwatchLabel\n)",
              "doc": "",
              "file": "pkg/editor/overlays.go",
              "line": 38
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WebBridgeInfo",
          "anchor": "WebBridgeInfo",
          "decl": "type WebBridgeInfo struct {\n\tProtocol          string `json:\"protocol\"`\n\tProject           string `json:\"project\"`\n\tPlayMode          bool   `json:\"playMode\"`\n\tSessionEndpoint   string `json:\"sessionEndpoint\"`\n\tRPCEndpoint       string `json:\"rpcEndpoint\"`\n\tPollEndpoint      string `json:\"pollEndpoint\"`\n\tReplyEndpoint     string `json:\"replyEndpoint\"`\n\tBridgeScript      string `json:\"bridgeScript\"`\n\tToken             string `json:\"token\"`\n\tConnectedClients  int    `json:\"connectedClients\"`\n\tEditorBridgeReady bool   `json:\"editorBridgeReady\"`\n}",
          "doc": "WebBridgeInfo is returned by GET /__nsgo_mcp/info so a served web build in Play mode can connect back to the editor's MCP bridge.\n",
          "file": "pkg/editor/build_device.go",
          "line": 91,
          "members": [
            {
              "name": "Protocol",
              "anchor": "WebBridgeInfo.Protocol",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Project",
              "anchor": "WebBridgeInfo.Project",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlayMode",
              "anchor": "WebBridgeInfo.PlayMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SessionEndpoint",
              "anchor": "WebBridgeInfo.SessionEndpoint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RPCEndpoint",
              "anchor": "WebBridgeInfo.RPCEndpoint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PollEndpoint",
              "anchor": "WebBridgeInfo.PollEndpoint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplyEndpoint",
              "anchor": "WebBridgeInfo.ReplyEndpoint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BridgeScript",
              "anchor": "WebBridgeInfo.BridgeScript",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Token",
              "anchor": "WebBridgeInfo.Token",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConnectedClients",
              "anchor": "WebBridgeInfo.ConnectedClients",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditorBridgeReady",
              "anchor": "WebBridgeInfo.EditorBridgeReady",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WebBridgeSession",
          "anchor": "WebBridgeSession",
          "decl": "type WebBridgeSession struct {\n\tSessionID    string    `json:\"sessionId\"`\n\tClientID     string    `json:\"clientId,omitempty\"`\n\tDevice       string    `json:\"device\"`\n\tRemoteIP     string    `json:\"remoteIp\"`\n\tPlayMode     bool      `json:\"playMode\"`\n\tCapabilities []string  `json:\"capabilities,omitempty\"`\n\tConnectedAt  time.Time `json:\"connectedAt\"`\n}",
          "doc": "WebBridgeSession records one phone or browser Play-mode client connected back to the editor's MCP bridge.\n",
          "file": "pkg/editor/build_device.go",
          "line": 80,
          "members": [
            {
              "name": "SessionID",
              "anchor": "WebBridgeSession.SessionID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClientID",
              "anchor": "WebBridgeSession.ClientID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Device",
              "anchor": "WebBridgeSession.Device",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemoteIP",
              "anchor": "WebBridgeSession.RemoteIP",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlayMode",
              "anchor": "WebBridgeSession.PlayMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Capabilities",
              "anchor": "WebBridgeSession.Capabilities",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConnectedAt",
              "anchor": "WebBridgeSession.ConnectedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WebBuildServerSnapshot",
          "anchor": "WebBuildServerSnapshot",
          "decl": "type WebBuildServerSnapshot struct {\n\tServing          bool               `json:\"serving\"`\n\tStoppedByUser    bool               `json:\"stoppedByUser\"`\n\tURL              string             `json:\"url,omitempty\"`\n\tListenAddr       string             `json:\"listenAddr,omitempty\"`\n\tHost             string             `json:\"host,omitempty\"`\n\tPort             int                `json:\"port,omitempty\"`\n\tServeDir         string             `json:\"serveDir,omitempty\"`\n\tBridgeInfoURL    string             `json:\"bridgeInfoUrl,omitempty\"`\n\tBridgeToken      string             `json:\"bridgeToken,omitempty\"`\n\tConnectedClients []WebBridgeSession `json:\"connectedClients,omitempty\"`\n\tLastErr          string             `json:\"lastErr,omitempty\"`\n}",
          "doc": "WebBuildServerSnapshot is a thread-safe value copy of the LAN web build server state.\n",
          "file": "pkg/editor/build_device.go",
          "line": 106,
          "members": [
            {
              "name": "Serving",
              "anchor": "WebBuildServerSnapshot.Serving",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StoppedByUser",
              "anchor": "WebBuildServerSnapshot.StoppedByUser",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "URL",
              "anchor": "WebBuildServerSnapshot.URL",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ListenAddr",
              "anchor": "WebBuildServerSnapshot.ListenAddr",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Host",
              "anchor": "WebBuildServerSnapshot.Host",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Port",
              "anchor": "WebBuildServerSnapshot.Port",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ServeDir",
              "anchor": "WebBuildServerSnapshot.ServeDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BridgeInfoURL",
              "anchor": "WebBuildServerSnapshot.BridgeInfoURL",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BridgeToken",
              "anchor": "WebBuildServerSnapshot.BridgeToken",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConnectedClients",
              "anchor": "WebBuildServerSnapshot.ConnectedClients",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastErr",
              "anchor": "WebBuildServerSnapshot.LastErr",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WeightedTile",
          "anchor": "WeightedTile",
          "decl": "type WeightedTile struct {\n\tTileID int\n\tWeight float64\n}",
          "doc": "WeightedTile is one weighted entry in the Random brush's tile pool.\n",
          "file": "pkg/editor/tilebrush.go",
          "line": 107,
          "members": [
            {
              "name": "TileID",
              "anchor": "WeightedTile.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight",
              "anchor": "WeightedTile.Weight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorkspaceState",
          "anchor": "WorkspaceState",
          "decl": "type WorkspaceState uint8",
          "doc": "WorkspaceState classifies the high-level state of the main editor workspace\nso every region (header, left rail, viewport, right panel, status bar) can\nrender a designed empty, loading, error, or active editing state.\n",
          "file": "pkg/editor/main_layout_ui.go",
          "line": 25,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "WorkspaceReady",
                  "anchor": "WorkspaceReady"
                },
                {
                  "name": "WorkspaceNoProject",
                  "anchor": "WorkspaceNoProject"
                },
                {
                  "name": "WorkspaceNoScene",
                  "anchor": "WorkspaceNoScene"
                },
                {
                  "name": "WorkspaceLoading",
                  "anchor": "WorkspaceLoading"
                },
                {
                  "name": "WorkspaceSceneError",
                  "anchor": "WorkspaceSceneError"
                }
              ],
              "decl": "const (\n\t// WorkspaceReady means an editable scene is open and ready.\n\tWorkspaceReady WorkspaceState = iota\n\t// WorkspaceNoProject means no project and no real scene have been opened yet.\n\tWorkspaceNoProject\n\t// WorkspaceNoScene means a project is open, but no scene is currently open.\n\tWorkspaceNoScene\n\t// WorkspaceLoading means a project is currently being loaded.\n\tWorkspaceLoading\n\t// WorkspaceSceneError means opening a scene failed (missing file, malformed YAML, etc.).\n\tWorkspaceSceneError\n)",
              "doc": "",
              "file": "pkg/editor/main_layout_ui.go",
              "line": 27
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "YouOnlyDomain",
          "anchor": "YouOnlyDomain",
          "decl": "type YouOnlyDomain string",
          "doc": "YouOnlyDomain names one of the four You-only settings domains that the agent may never write directly.\n",
          "file": "pkg/editor/you_only.go",
          "line": 19,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "YouOnlyPermissions",
                  "anchor": "YouOnlyPermissions"
                },
                {
                  "name": "YouOnlyTools",
                  "anchor": "YouOnlyTools"
                },
                {
                  "name": "YouOnlyModels",
                  "anchor": "YouOnlyModels"
                },
                {
                  "name": "YouOnlyUsage",
                  "anchor": "YouOnlyUsage"
                },
                {
                  "name": "YouOnlyAutomations",
                  "anchor": "YouOnlyAutomations"
                }
              ],
              "decl": "const (\n\t// YouOnlyPermissions protects permissions.yaml and .nsgo/permissions.yaml.\n\tYouOnlyPermissions YouOnlyDomain = \"permissions\"\n\t// YouOnlyTools protects the MCP tool list and external server list (tools.yaml, mcp.yaml).\n\tYouOnlyTools YouOnlyDomain = \"tools\"\n\t// YouOnlyModels protects model connections and routing settings (models.yaml).\n\tYouOnlyModels YouOnlyDomain = \"models\"\n\t// YouOnlyUsage protects usage limits and privacy toggles (usage.yaml).\n\tYouOnlyUsage YouOnlyDomain = \"usage\"\n\t// YouOnlyAutomations protects automations.yaml and .nsgo/automations-state.yaml so agents can only draft automations for the person to keep.\n\tYouOnlyAutomations YouOnlyDomain = \"automations\"\n)",
              "doc": "",
              "file": "pkg/editor/you_only.go",
              "line": 21
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "MatchYouOnlyPath",
              "anchor": "MatchYouOnlyPath",
              "decl": "func MatchYouOnlyPath(filePath string) (YouOnlyDomain, bool)",
              "doc": "MatchYouOnlyPath reports whether filePath targets a You-only configuration file (permissions, tools, models, usage, or automations)\nthat the MCP server refuses every agent write to, regardless of profile or rules.\n",
              "file": "pkg/editor/you_only.go",
              "line": 54
            }
          ],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "YouOnlyDomain.DisplayName",
              "recv": "YouOnlyDomain",
              "decl": "func (d YouOnlyDomain) DisplayName() string",
              "doc": "DisplayName returns the human-readable Settings page name for d.\n",
              "file": "pkg/editor/you_only.go",
              "line": 35
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/editor/editorcmd",
      "name": "editorcmd",
      "dir": "pkg/editor/editorcmd",
      "page": "pkg/editor/editorcmd",
      "synopsis": "Package editorcmd is the scene editor's command line, which `go tool game editor` runs and which a game's own editor command runs with the game's component types and editor plugins built in.",
      "doc": "Package editorcmd is the scene editor's command line, which `go tool game editor` runs and which a game's own editor command runs with the game's component types and editor plugins built in. `game generate editor` writes such a command into a project: a main function built with the gameeditor tag that calls Main with the project's Components and plugins, so its scenes' components are checked against their registered types. `go tool game editor <dir>` runs that command when the project has one.\n\nAn editor command opens a project, as its directory or its game.yaml, which opens its main scene, or a scene file, which inside a project opens that project too, and optionally an animation clip on one of the scene's objects. The editor New returns sets editor.Editor.ProjectAssets, so an open project's scenes draw its own atlases, its atlases fill the asset browser and its scene files can be placed as instances (project.Resolver).\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultWindowWidth",
              "anchor": "DefaultWindowWidth"
            },
            {
              "name": "DefaultWindowHeight",
              "anchor": "DefaultWindowHeight"
            }
          ],
          "decl": "const (\n\tDefaultWindowWidth  = 1120\n\tDefaultWindowHeight = 680\n)",
          "doc": "Default window size, in points, Show opens the editor at.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 199
        },
        {
          "idents": [
            {
              "name": "Usage",
              "anchor": "Usage"
            }
          ],
          "decl": "const Usage = \"[project-dir | game.yaml | scene.yaml] [clip.animation.yaml [object-id]]\"",
          "doc": "Usage is the arguments an editor command takes after its flags.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 25
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "IsProject",
          "anchor": "IsProject",
          "decl": "func IsProject(p string) bool",
          "doc": "IsProject reports whether p names a project rather than a scene file: a directory, or a file named game.yaml.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 145
        },
        {
          "name": "Main",
          "anchor": "Main",
          "decl": "func Main(opts Options)",
          "doc": "Main is a game's editor command: it runs Run with the process's arguments and opts, and exits with status 2 for a usage error and 1 for any other, after printing it.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 291
        },
        {
          "name": "New",
          "anchor": "New",
          "decl": "func New(opts Options) (*editor.Editor, error)",
          "doc": "New returns an editor on an empty scene with opts' component types, plugins, name and library, and ProjectAssets set, so the project Open opens supplies the scenes' assets. A scene opened outside any project resolves no atlases.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 44
        },
        {
          "name": "Open",
          "anchor": "Open",
          "decl": "func Open(ed *editor.Editor, args []string) error",
          "doc": "Open opens in ed what an editor command's arguments name, as Usage gives them. args[0] is a project, as its directory or its game.yaml, which opens the project and its main scene (editor.Editor.OpenProject), or a scene file, which opens with the project whose directory holds it, when one does (editor.Editor.OpenProjectScene, which sets ScenePath), and on its own otherwise (editor.Editor.OpenFile). args[1] is an animation clip file the animation panel opens on the object named by args[2], or on the scene's first object; that object is selected, so when the clip file does not exist yet the toolbar's Animate button starts a clip on it, and the panel's Save Clip button writes the clip to args[1]. No arguments open nothing.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 100
        },
        {
          "name": "ProjectRoot",
          "anchor": "ProjectRoot",
          "decl": "func ProjectRoot(p string) (string, bool)",
          "doc": "ProjectRoot returns the directory of the project p belongs to, and false when it belongs to none: p itself for a directory holding a game.yaml, the directory of a game.yaml, and for any other file the nearest directory above it that holds a game.yaml, unless a directory nearer the file holds an nsgo.yaml or a go.mod, which makes that directory the file's root as game check finds it. For a file, the directory it returns is absolute.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 153
        },
        {
          "name": "Run",
          "anchor": "Run",
          "decl": "func Run(args []string, opts Options, stderr io.Writer, launch func(*editor.Editor)) error",
          "doc": "Run is an editor command run with args, its command line after the program's name: it parses the -library flag into opts.Library and the arguments Usage gives, builds the editor with New, opens the arguments with Open, or the project in the working directory without any, refuses a project listing plugins the editor lacks when opts.RequirePlugins is set, and shows the editor with launch, or when launch is nil as Show does, in a window of opts.WindowWidth by opts.WindowHeight. Usage and flag errors are reported on stderr and wrap a usage error that Main exits 2 for.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 247
        },
        {
          "name": "Serve",
          "anchor": "Serve",
          "decl": "func Serve(cx *core.Scope, ed *editor.Editor, stderr io.Writer) *editormcp.Server",
          "doc": "Serve serves ed's MCP server (package editormcp) on the endpoint of the project ed has open, and of each project it opens later, until cx is cleaned up, and offers its tools to nsgo mcp under go tool nsgo dev -automation, so an agent reaches a game's own editor as it reaches go tool game editor. An endpoint it cannot open, as when another editor has the project open, is reported on stderr; the editor works without it.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 231
        },
        {
          "name": "Show",
          "anchor": "Show",
          "decl": "func Show(ed *editor.Editor)",
          "doc": "Show shows ed in the scene editor's window, DefaultWindowWidth by DefaultWindowHeight, serving its MCP server for go tool game mcp (Serve), and returns once it closes.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 205
        }
      ],
      "types": [
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Components are the component types the scenes' objects may set, which the editor checks every component and field against and lists in the inspector, together with the built-in 2D and 3D physics components (sceneformat.RegisterPhysicsComponents) the registry does not register itself; nil leaves components free-form.\n\tComponents *sceneformat.ComponentRegistry\n\t// Plugins are the editor plugins built into the command, which a project turns on under editor.plugins in its game.yaml.\n\tPlugins []editor.Plugin\n\t// AppName is the editor's name in its window title (editor.Editor.AppName); empty means the editor's default.\n\tAppName string\n\t// Library is the library index the library panel installs packs from (editor.Editor.Library), as library.Open takes it: an https URL, an index file or a directory holding index.yaml; empty hides the panel.\n\tLibrary string\n\t// WindowWidth and WindowHeight are the size, in points, of the window Run shows the editor in; zero for either means the default, 1120 by 680.\n\tWindowWidth, WindowHeight core.Points\n\t// RequirePlugins makes Run refuse a project whose game.yaml lists an editor plugin that Plugins lacks (editor.Editor.MissingPlugins), for a command that should not edit the project's scenes without them.\n\tRequirePlugins bool\n}",
          "doc": "Options are what an editor command builds its editor with.\n",
          "file": "pkg/editor/editorcmd/editorcmd.go",
          "line": 28,
          "members": [
            {
              "name": "Components",
              "anchor": "Options.Components",
              "kind": "field",
              "doc": "Components are the component types the scenes' objects may set, which the editor checks every component and field against and lists in the inspector, together with the built-in 2D and 3D physics components (sceneformat.RegisterPhysicsComponents) the registry does not register itself; nil leaves components free-form."
            },
            {
              "name": "Plugins",
              "anchor": "Options.Plugins",
              "kind": "field",
              "doc": "Plugins are the editor plugins built into the command, which a project turns on under editor.plugins in its game.yaml."
            },
            {
              "name": "AppName",
              "anchor": "Options.AppName",
              "kind": "field",
              "doc": "AppName is the editor's name in its window title (editor.Editor.AppName); empty means the editor's default."
            },
            {
              "name": "Library",
              "anchor": "Options.Library",
              "kind": "field",
              "doc": "Library is the library index the library panel installs packs from (editor.Editor.Library), as library.Open takes it: an https URL, an index file or a directory holding index.yaml; empty hides the panel."
            },
            {
              "name": "WindowWidth",
              "anchor": "Options.WindowWidth",
              "kind": "field",
              "doc": "WindowWidth and WindowHeight are the size, in points, of the window Run shows the editor in; zero for either means the default, 1120 by 680."
            },
            {
              "name": "WindowHeight",
              "anchor": "Options.WindowHeight",
              "kind": "field",
              "doc": "WindowWidth and WindowHeight are the size, in points, of the window Run shows the editor in; zero for either means the default, 1120 by 680."
            },
            {
              "name": "RequirePlugins",
              "anchor": "Options.RequirePlugins",
              "kind": "field",
              "doc": "RequirePlugins makes Run refuse a project whose game.yaml lists an editor plugin that Plugins lacks (editor.Editor.MissingPlugins), for a command that should not edit the project's scenes without them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/editor/editormcp",
      "name": "editormcp",
      "dir": "pkg/editor/editormcp",
      "page": "pkg/editor/editormcp",
      "synopsis": "Package editormcp is the NSGo Game Editor's MCP server: an agent reads and edits the project open in the editor through it, with the same editor commands the inspector, scene tree and viewport use, so every edit is an undo step the person sees and can take back.",
      "doc": "Package editormcp is the NSGo Game Editor's MCP server: an agent reads and edits the project open in the editor through it, with the same editor commands the inspector, scene tree and viewport use, so every edit is an undo step the person sees and can take back.\n\nA Server serves an editor.Editor. Open serves it on the project's local endpoint (Endpoint), a Unix domain socket private to the user and named after the project's path, never a network port, and follows the editor to another project's endpoint when it opens one. `go tool game mcp` runs a Proxy on standard input and output, which an agent such as Claude Code or Codex starts: it finds the editor that has the project open through that endpoint and forwards to it, and while none has it answers each call with how to open the project.\n\nThe server's tools are a registry (Server.AddTool) that the editor's parts join, so that every action with a button or a shortcut has a tool. This package adds the first five, named as the editor's Settings › Tools page lists them:\n\n  - scene_read reads a scene, prefab, data or project file with line numbers, the open scene and game.yaml as the editor holds them.\n  - scene_edit adds, moves, changes and removes objects, components and properties of the open scene through the editor's methods, the edits of one call as one undo step, or none when the editor refuses one; the refusal (EditError) names the file, the edit, the object, the field and the fix.\n  - selection_get reports what the person has selected.\n  - viewport_image returns a PNG of the viewport.\n  - game_check runs the Problems panel's checks (including open unsaved documents) and returns its problems with file, line, column and message.\n  - problem_propose_fix proposes a validated fix for a live problem with an explanation and diff in the editor's Agent panel without ever applying it.\n  - game_playtest runs headless bot playtests configured by playtest.yaml with replay recordings and returns the evaluated YAML report.\n  - playtest_define proposes a new or updated metric in playtest.yaml as a pending review with a diff.\n\nTool handlers run on the server's goroutines and reach the editor through Call.Editor, which runs a function on the editor's goroutine and waits, so a tool may wait for work the editor does elsewhere, such as a project check, and return an image: the two things an app tool registered with NSGo's automation cannot do (nsgo-dev/nsgo#2342, nsgo-dev/nsgo#2343). RegisterAutomation offers the same tools to nsgo mcp as well, for an editor running under go tool nsgo dev -automation.\n\nResources editor://scene and editor://selection hold the open scene's YAML and the selection; a client that subscribes to them hears of every change, with _meta saying whether the agent or the person made it (MetaBy) and the editor's revision (MetaRevision).\n",
      "consts": [
        {
          "idents": [
            {
              "name": "ToolAgentReportStep",
              "anchor": "ToolAgentReportStep"
            },
            {
              "name": "ToolAgentTurnGet",
              "anchor": "ToolAgentTurnGet"
            },
            {
              "name": "ToolAgentTurnReply",
              "anchor": "ToolAgentTurnReply"
            }
          ],
          "decl": "const (\n\t// ToolAgentReportStep lets a connected agent report a live progress step in its own plain words\n\t// along with the scene object IDs the step touches, and receive queued \"Add to this request\" follow-ups.\n\tToolAgentReportStep = \"agent_report_step\"\n\t// ToolAgentTurnGet returns the latest (or named) agent turn started from the ⌘L in-place composer or Agent panel,\n\t// with the user's prompt, skipPlan flag, selection object IDs, open scene path and YAML, and viewport PNG image.\n\tToolAgentTurnGet = \"agent_turn_get\"\n\t// ToolAgentTurnReply records the agent's reply and status (\"running\", \"done\", \"stopped\") on a turn in the Agent panel.\n\tToolAgentTurnReply = \"agent_turn_reply\"\n)",
          "doc": "Agent turn tool names exposed by editormcp alongside scene_read, scene_edit, selection_get, and viewport_image.\n",
          "file": "pkg/editor/editormcp/agent.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ToolCheckpointList",
              "anchor": "ToolCheckpointList"
            },
            {
              "name": "ToolCheckpointRestore",
              "anchor": "ToolCheckpointRestore"
            }
          ],
          "decl": "const (\n\t// ToolCheckpointList lists persistent turn checkpoints and session history entries in the open project.\n\tToolCheckpointList = \"checkpoint_list\"\n\t// ToolCheckpointRestore restores a persistent checkpoint back to its pre-turn files as one undoable step.\n\tToolCheckpointRestore = \"checkpoint_restore\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/checkpoints.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ToolCodeReviewPropose",
              "anchor": "ToolCodeReviewPropose"
            },
            {
              "name": "ToolCodeReviewStatus",
              "anchor": "ToolCodeReviewStatus"
            },
            {
              "name": "ToolCodeReviewRunChecks",
              "anchor": "ToolCodeReviewRunChecks"
            }
          ],
          "decl": "const (\n\t// ToolCodeReviewPropose stages pending Go files (and optional companion YAML files) in the editor's file-by-file Go review without writing them to disk, and optionally runs nsgo check and nsgo test via a Go build overlay.\n\tToolCodeReviewPropose = \"code_review_propose\"\n\t// ToolCodeReviewStatus reports the active Go code review's round, files, confirmation status, check/test outcomes, and any waiting unconfirmed Go files.\n\tToolCodeReviewStatus = \"code_review_status\"\n\t// ToolCodeReviewRunChecks reruns nsgo check and nsgo test against the pending Go files via a Go build overlay without touching disk.\n\tToolCodeReviewRunChecks = \"code_review_run_checks\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/code_review.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ToolProjectContext",
              "anchor": "ToolProjectContext"
            },
            {
              "name": "ToolBriefEdit",
              "anchor": "ToolBriefEdit"
            },
            {
              "name": "ToolRulesEdit",
              "anchor": "ToolRulesEdit"
            }
          ],
          "decl": "const (\n\t// ToolProjectContext returns the project's shared agent context: brief.yaml (with gaps and playtest targets) and AGENTS.md.\n\tToolProjectContext = \"project_context\"\n\t// ToolBriefEdit validates and proposes an edit to brief.yaml as a reviewable change without modifying disk until kept.\n\tToolBriefEdit = \"brief_edit\"\n\t// ToolRulesEdit proposes an edit or new rule for AGENTS.md as a reviewable change without modifying disk until kept.\n\tToolRulesEdit = \"rules_edit\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/context.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ToolCutsceneWrite",
              "anchor": "ToolCutsceneWrite"
            },
            {
              "name": "ToolCutsceneScrub",
              "anchor": "ToolCutsceneScrub"
            }
          ],
          "decl": "const (\n\t// ToolCutsceneWrite validates a *.cutscene.yaml document and opens it as an interactive agent review on the cutscene timeline (or writes it directly when review is false).\n\tToolCutsceneWrite = \"cutscene_write\"\n\t// ToolCutsceneScrub scrubs the cutscene timeline to a chosen timestamp and returns the posed camera, actors, active dialogue and review state.\n\tToolCutsceneScrub = \"cutscene_scrub\"\n)",
          "doc": "The names of the cutscene timeline tools added to the editor's MCP server.\n",
          "file": "pkg/editor/editormcp/cutscene.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ToolDataTableReviewPropose",
              "anchor": "ToolDataTableReviewPropose"
            },
            {
              "name": "ToolDataTableReviewChecks",
              "anchor": "ToolDataTableReviewChecks"
            },
            {
              "name": "ToolDataTableReviewStatus",
              "anchor": "ToolDataTableReviewStatus"
            }
          ],
          "decl": "const (\n\t// ToolDataTableReviewPropose validates proposed YAML data table changes and opens the row-by-row Data Table review without modifying disk until kept.\n\tToolDataTableReviewPropose = \"datatable_review_propose\"\n\t// ToolDataTableReviewChecks attaches or refreshes named agent check figures on the active Data Table review.\n\tToolDataTableReviewChecks = \"datatable_review_checks\"\n\t// ToolDataTableReviewStatus reports the active Data Table review state, per-record kept/reverted/user-edited status, and whether agent checks are out of date.\n\tToolDataTableReviewStatus = \"datatable_review_status\"\n)",
          "doc": "The names of the Data Table review tools added to the editor's MCP server.\n",
          "file": "pkg/editor/editormcp/datatable_review.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "ToolObjectSetField",
              "anchor": "ToolObjectSetField"
            },
            {
              "name": "ToolObjectLocateYAML",
              "anchor": "ToolObjectLocateYAML"
            }
          ],
          "decl": "const (\n\t// ToolObjectSetField sets a single inspector field, custom property, or component field on an object through Editor methods.\n\tToolObjectSetField = \"object_set_field\"\n\t// ToolObjectLocateYAML locates an object's exact 1-based line in the open scene YAML and optionally opens it via Editor.OnOpenFileAtLine.\n\tToolObjectLocateYAML = \"object_locate_yaml\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/inspector.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ClaudeConfigFile",
              "anchor": "ClaudeConfigFile"
            },
            {
              "name": "CodexConfigFile",
              "anchor": "CodexConfigFile"
            }
          ],
          "decl": "const (\n\t// ClaudeConfigFile is the project-relative MCP configuration file Claude Code reads.\n\tClaudeConfigFile = \".mcp.json\"\n\t// CodexConfigFile is the project-relative MCP configuration file Codex reads.\n\tCodexConfigFile = \".codex/config.toml\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/install.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ToolMergeStatus",
              "anchor": "ToolMergeStatus"
            },
            {
              "name": "ToolMergeResolve",
              "anchor": "ToolMergeResolve"
            },
            {
              "name": "ToolMergeFinish",
              "anchor": "ToolMergeFinish"
            },
            {
              "name": "ToolMergeAbort",
              "anchor": "ToolMergeAbort"
            }
          ],
          "decl": "const (\n\t// ToolMergeStatus inspects the active scene merge conflict session or detects unmerged scene conflicts in Git.\n\tToolMergeStatus = \"merge_status\"\n\t// ToolMergeResolve resolves a conflicted scene object (Mine, Theirs, Agent, custom YAML, or all Agent) or updates the agent's suggestion.\n\tToolMergeResolve = \"merge_resolve\"\n\t// ToolMergeFinish writes the resolved scene, runs game check and a short playtest, and creates the Git merge commit.\n\tToolMergeFinish = \"merge_finish\"\n\t// ToolMergeAbort aborts the active Git merge and restores the branch as it was.\n\tToolMergeAbort = \"merge_abort\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/merge.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ToolObjectCopyYAML",
              "anchor": "ToolObjectCopyYAML"
            },
            {
              "name": "ToolObjectPasteYAML",
              "anchor": "ToolObjectPasteYAML"
            },
            {
              "name": "ToolObjectDuplicate",
              "anchor": "ToolObjectDuplicate"
            },
            {
              "name": "ToolObjectGroup",
              "anchor": "ToolObjectGroup"
            },
            {
              "name": "ToolObjectMoveUnder",
              "anchor": "ToolObjectMoveUnder"
            },
            {
              "name": "ToolObjectSelectSamePrefab",
              "anchor": "ToolObjectSelectSamePrefab"
            },
            {
              "name": "ToolObjectVisibility",
              "anchor": "ToolObjectVisibility"
            },
            {
              "name": "ToolObjectFindUsages",
              "anchor": "ToolObjectFindUsages"
            }
          ],
          "decl": "const (\n\t// ToolObjectCopyYAML serializes an object as canonical sceneformat YAML and copies it to the clipboard.\n\tToolObjectCopyYAML = \"object_copy_yaml\"\n\t// ToolObjectPasteYAML pastes canonical sceneformat object YAML into the open scene in one undo step.\n\tToolObjectPasteYAML = \"object_paste_yaml\"\n\t// ToolObjectDuplicate clones an object with fresh unique IDs in one undo step.\n\tToolObjectDuplicate = \"object_duplicate\"\n\t// ToolObjectGroup wraps one or more objects under a new parent group object in one undo step.\n\tToolObjectGroup = \"object_group\"\n\t// ToolObjectMoveUnder reparents an object under another object (or lists valid candidate parents) in one undo step.\n\tToolObjectMoveUnder = \"object_move_under\"\n\t// ToolObjectSelectSamePrefab selects every object in the open scene sharing the same prefab or instanced scene.\n\tToolObjectSelectSamePrefab = \"object_select_same_prefab\"\n\t// ToolObjectVisibility sets an object's session-only hidden and/or locked state in the viewports.\n\tToolObjectVisibility = \"object_visibility\"\n\t// ToolObjectFindUsages finds references or project search matches for an object across the open project.\n\tToolObjectFindUsages = \"object_find_usages\"\n)",
          "doc": "Object context-menu tool names exposed alongside scene_edit and selection_get.\n",
          "file": "pkg/editor/editormcp/object_menu.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "ToolPlanPropose",
              "anchor": "ToolPlanPropose"
            },
            {
              "name": "ToolPlanStepUpdate",
              "anchor": "ToolPlanStepUpdate"
            }
          ],
          "decl": "const (\n\t// ToolPlanPropose proposes a structured multi-step plan with clarifying questions, editable step parameters,\n\t// planned viewport ghosts, and planned Scene Tree nodes before any file or scene is modified, and waits for\n\t// the person's decision (approved with answers and edited steps, or stopped).\n\tToolPlanPropose = \"plan_propose\"\n\t// ToolPlanStepUpdate updates a running plan step's status (running, done, failed, skipped) and optionally\n\t// completes the plan so the turn's review lists each plan step and marks which were done.\n\tToolPlanStepUpdate = \"plan_step_update\"\n)",
          "doc": "Plan tool names exposed by editormcp for proposing a plan before edits and tracking step completion.\n",
          "file": "pkg/editor/editormcp/plan.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ToolPlayFrozenContext",
              "anchor": "ToolPlayFrozenContext"
            },
            {
              "name": "ToolPlayReplayStep",
              "anchor": "ToolPlayReplayStep"
            }
          ],
          "decl": "const (\n\t// ToolPlayFrozenContext returns the frozen Play frame image, prompt, rolling/saved replay YAML, live entities, marks, and panic report.\n\tToolPlayFrozenContext = \"play_frozen_context\"\n\t// ToolPlayReplayStep steps the Play mode replay across frames A..B while keeping the game paused and updating the viewport agent pill and step log.\n\tToolPlayReplayStep = \"play_replay_step\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/play_frozen.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ToolGamePlaytest",
              "anchor": "ToolGamePlaytest"
            },
            {
              "name": "ToolPlaytestDefine",
              "anchor": "ToolPlaytestDefine"
            },
            {
              "name": "ToolPlaytestReport",
              "anchor": "ToolPlaytestReport"
            }
          ],
          "decl": "const (\n\t// ToolGamePlaytest runs headless bot playtests configured by playtest.yaml with replay recordings and returns the evaluated YAML report.\n\tToolGamePlaytest = \"game_playtest\"\n\t// ToolPlaytestDefine proposes adding or updating a metric in playtest.yaml, returning a diff that arrives as a review rather than overwriting the file directly.\n\tToolPlaytestDefine = \"playtest_define\"\n\t// ToolPlaytestReport opens, inspects or updates the editor's Playtest Report screen (loading a report file, updating the agent's read and suggestions, or watching a run's recording).\n\tToolPlaytestReport = \"playtest_report\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/playtest.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ToolRefsFind",
              "anchor": "ToolRefsFind"
            },
            {
              "name": "ToolRefactorRename",
              "anchor": "ToolRefactorRename"
            }
          ],
          "decl": "const (\n\t// ToolRefsFind finds every usage of a prefab, scene, or project file across scenes, prefab variants, data tables, and Go source code.\n\tToolRefsFind = \"refs_find\"\n\t// ToolRefactorRename previews a safe YAML-only rename in the editor's References review screen (with exact line diffs and non-rewritten Go warnings), or applies it as one undo step when apply is true.\n\tToolRefactorRename = \"refactor_rename\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/refs.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "ToolReleaseNotesDraft",
              "anchor": "ToolReleaseNotesDraft"
            },
            {
              "name": "ToolReleaseReviewUploads",
              "anchor": "ToolReleaseReviewUploads"
            }
          ],
          "decl": "const (\n\t// ToolReleaseNotesDraft drafts player-facing Markdown release notes from commits and kept reviews\n\t// and writes them to the exact file `game release -release-notes` reads.\n\tToolReleaseNotesDraft = \"release_notes_draft\"\n\t// ToolReleaseReviewUploads stages the Review uploads confirmation dialog for the person.\n\t// Store uploads ALWAYS ask first in Review uploads, whatever the permission profile.\n\tToolReleaseReviewUploads = \"release_review_uploads\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/release.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ToolReviewStatus",
              "anchor": "ToolReviewStatus"
            },
            {
              "name": "ToolReviewNotesGet",
              "anchor": "ToolReviewNotesGet"
            },
            {
              "name": "ToolReviewRedo",
              "anchor": "ToolReviewRedo"
            }
          ],
          "decl": "const (\n\t// ToolReviewStatus reads the active or most recent agent turn review's seen, reverted, conflict, and hand-edited YAML state.\n\tToolReviewStatus = \"review_status\"\n\t// ToolReviewNotesGet reads the active review's round state, changes, and sent notes waiting for the agent.\n\tToolReviewNotesGet = \"review_notes_get\"\n\t// ToolReviewRedo redoes only changes that were noted by the author, advancing the review to the next round.\n\tToolReviewRedo = \"review_redo\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/review.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ToolSketchRead",
              "anchor": "ToolSketchRead"
            },
            {
              "name": "ToolSketchReading",
              "anchor": "ToolSketchReading"
            }
          ],
          "decl": "const (\n\t// ToolSketchRead reads the active/sent viewport sketch marks in scene coordinates and optional PNG image.\n\tToolSketchRead = \"sketch_read\"\n\t// ToolSketchReading posts the agent's restatement of the user's sketch marks and assumptions before editing.\n\tToolSketchReading = \"sketch_reading\"\n)",
          "doc": "The names of the viewport sketch tools added to the editor's MCP server.\n",
          "file": "pkg/editor/editormcp/sketch.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "ToolStatesWrite",
              "anchor": "ToolStatesWrite"
            },
            {
              "name": "ToolStatesTest",
              "anchor": "ToolStatesTest"
            }
          ],
          "decl": "const (\n\t// ToolStatesWrite validates and writes a *.states.yaml file in the open project and opens it in the editor.\n\tToolStatesWrite = \"states_write\"\n\t// ToolStatesTest plays scripted input against a *.states.yaml file and reports the state trace and any stuck states.\n\tToolStatesTest = \"states_test\"\n)",
          "doc": "The names of the sprite state machine tools added to the editor's MCP server.\n",
          "file": "pkg/editor/editormcp/states.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "SceneURI",
              "anchor": "SceneURI"
            },
            {
              "name": "SelectionURI",
              "anchor": "SelectionURI"
            },
            {
              "name": "AgentTurnURI",
              "anchor": "AgentTurnURI"
            },
            {
              "name": "BriefURI",
              "anchor": "BriefURI"
            },
            {
              "name": "RulesURI",
              "anchor": "RulesURI"
            },
            {
              "name": "ContextURI",
              "anchor": "ContextURI"
            }
          ],
          "decl": "const (\n\t// SceneURI is the scene open in the editor as YAML, with every edit not yet saved.\n\tSceneURI = \"editor://scene\"\n\t// SelectionURI is what the person has selected, as selection_get reports it, in JSON.\n\tSelectionURI = \"editor://selection\"\n\t// AgentTurnURI is the latest agent turn submitted from the ⌘L in-place composer or Agent panel,\n\t// including selection object IDs, open scene YAML, skipPlan flag, and the captured viewport PNG.\n\tAgentTurnURI = \"editor://agent/turn\"\n\t// BriefURI is the open project's brief.yaml as canonical YAML (empty when absent).\n\tBriefURI = \"editor://brief\"\n\t// RulesURI is the open project's AGENTS.md as plain Markdown (empty when absent).\n\tRulesURI = \"editor://rules\"\n\t// ContextURI is the combined JSON context payload (brief.yaml, AGENTS.md, gaps, playtest targets, and pending reviews) the agent reads before every request.\n\tContextURI = \"editor://context\"\n)",
          "doc": "The resources of the editor's server, which a client reads and subscribes to for the change stream and shared project context.\n",
          "file": "pkg/editor/editormcp/stream.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "MetaBy",
              "anchor": "MetaBy"
            },
            {
              "name": "MetaRevision",
              "anchor": "MetaRevision"
            },
            {
              "name": "MetaTurnID",
              "anchor": "MetaTurnID"
            },
            {
              "name": "MetaSkipPlan",
              "anchor": "MetaSkipPlan"
            }
          ],
          "decl": "const (\n\t// MetaBy says who made the change a notice reports: \"agent\" when it came from a tool call, \"person\" when it came from the editor's own controls.\n\tMetaBy = \"nsgo.dev/by\"\n\t// MetaRevision is the editor's revision (editor.Editor.Revision) after the change.\n\tMetaRevision = \"nsgo.dev/revision\"\n\t// MetaTurnID names the agent turn carried by an editor://agent/turn notification.\n\tMetaTurnID = \"nsgo.dev/turnId\"\n\t// MetaSkipPlan reports whether the notified agent turn is a small in-place ⌘L request that skips the plan.\n\tMetaSkipPlan = \"nsgo.dev/skipPlan\"\n)",
          "doc": "The keys of a resource notice's _meta.\n",
          "file": "pkg/editor/editormcp/stream.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "ToolTasksList",
              "anchor": "ToolTasksList"
            },
            {
              "name": "ToolTasksSubmit",
              "anchor": "ToolTasksSubmit"
            },
            {
              "name": "ToolTasksControl",
              "anchor": "ToolTasksControl"
            }
          ],
          "decl": "const (\n\t// ToolTasksList lists all background agent tasks, active object holds, and summary badge counts.\n\tToolTasksList = \"tasks_list\"\n\t// ToolTasksSubmit queues or runs a background agent request in parallel.\n\tToolTasksSubmit = \"tasks_submit\"\n\t// ToolTasksControl controls background tasks (keep, revert, dismiss, stop, retry, open, focus, allow, deny).\n\tToolTasksControl = \"tasks_control\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/tasks.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "ToolTileQuery",
              "anchor": "ToolTileQuery"
            },
            {
              "name": "ToolTilePaint",
              "anchor": "ToolTilePaint"
            },
            {
              "name": "ToolTileAutotile",
              "anchor": "ToolTileAutotile"
            },
            {
              "name": "ToolTileErase",
              "anchor": "ToolTileErase"
            },
            {
              "name": "ToolTileReviewStatus",
              "anchor": "ToolTileReviewStatus"
            },
            {
              "name": "ToolTileReviewRevertRegion",
              "anchor": "ToolTileReviewRevertRegion"
            },
            {
              "name": "ToolTileReviewRestoreRegion",
              "anchor": "ToolTileReviewRestoreRegion"
            },
            {
              "name": "ToolTileReviewKeep",
              "anchor": "ToolTileReviewKeep"
            },
            {
              "name": "ToolTileReviewRevertAll",
              "anchor": "ToolTileReviewRevertAll"
            }
          ],
          "decl": "const (\n\t// ToolTileQuery queries cells and connected regions/pockets on an inline tilemap layer.\n\tToolTileQuery = \"tile_query\"\n\t// ToolTilePaint paints explicit cells, rectangles, or weighted random picks on a tile layer.\n\tToolTilePaint = \"tile_paint\"\n\t// ToolTileAutotile re-edges (or places and re-edges) a region using a YAML tileset terrain set.\n\tToolTileAutotile = \"tile_autotile\"\n\t// ToolTileErase clears explicit cells or rectangles on a tile layer.\n\tToolTileErase = \"tile_erase\"\n\t// ToolTileReviewStatus inspects the active region-based tile edit review (and optionally toggles Before/After or focuses a region).\n\tToolTileReviewStatus = \"tile_review_status\"\n\t// ToolTileReviewRevertRegion marks one pending tile review region reverted.\n\tToolTileReviewRevertRegion = \"tile_review_revert_region\"\n\t// ToolTileReviewRestoreRegion restores a reverted tile review region.\n\tToolTileReviewRestoreRegion = \"tile_review_restore_region\"\n\t// ToolTileReviewKeep commits all kept tile review regions cleanly as one undoable edit.\n\tToolTileReviewKeep = \"tile_review_keep\"\n\t// ToolTileReviewRevertAll reverts all pending tile review changes and closes the review.\n\tToolTileReviewRevertAll = \"tile_review_revert_all\"\n)",
          "doc": "The names of the tile and tile-review tools added to the editor's MCP server.\n",
          "file": "pkg/editor/editormcp/tiles.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ToolTilesetRead",
              "anchor": "ToolTilesetRead"
            },
            {
              "name": "ToolTilesetEdit",
              "anchor": "ToolTilesetEdit"
            }
          ],
          "decl": "const (\n\t// ToolTilesetRead reads a *.tileset.yaml tileset document (or the tileset open in the editor) with its tile collision, animation, terrain, variant weight, and custom data fields.\n\tToolTilesetRead = \"tileset_read\"\n\t// ToolTilesetEdit edits a *.tileset.yaml tileset through the editor's undoable tileset commands (flags, collision shapes, animation, custom data, name, weight, and terrain rules).\n\tToolTilesetEdit = \"tileset_edit\"\n)",
          "doc": "The names of the tileset tools added to the editor's MCP server.\n",
          "file": "pkg/editor/editormcp/tileset.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "ToolSceneRead",
              "anchor": "ToolSceneRead"
            },
            {
              "name": "ToolSceneEdit",
              "anchor": "ToolSceneEdit"
            },
            {
              "name": "ToolSelectionGet",
              "anchor": "ToolSelectionGet"
            },
            {
              "name": "ToolViewportImage",
              "anchor": "ToolViewportImage"
            },
            {
              "name": "ToolGameCheck",
              "anchor": "ToolGameCheck"
            }
          ],
          "decl": "const (\n\t// ToolSceneRead reads a scene, prefab, data or project file with line numbers.\n\tToolSceneRead = \"scene_read\"\n\t// ToolSceneEdit adds, moves, changes and removes objects, components and properties of the open scene.\n\tToolSceneEdit = \"scene_edit\"\n\t// ToolSelectionGet reports what the person has selected.\n\tToolSelectionGet = \"selection_get\"\n\t// ToolViewportImage returns a PNG of the viewport.\n\tToolViewportImage = \"viewport_image\"\n\t// ToolGameCheck runs the Problems panel's checks over the project.\n\tToolGameCheck = \"game_check\"\n)",
          "doc": "The names of the tools this package adds, as the editor's Settings › Tools page lists them.\n",
          "file": "pkg/editor/editormcp/tools.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "ToolTurnStart",
              "anchor": "ToolTurnStart"
            },
            {
              "name": "ToolTurnEnd",
              "anchor": "ToolTurnEnd"
            },
            {
              "name": "ToolTurnStatus",
              "anchor": "ToolTurnStatus"
            },
            {
              "name": "ToolFileEdit",
              "anchor": "ToolFileEdit"
            }
          ],
          "decl": "const (\n\t// ToolTurnStart opens a new agent turn that groups subsequent MCP edits across files into one reviewable step.\n\tToolTurnStart = \"turn_start\"\n\t// ToolTurnEnd finishes the working agent turn so the person can review, revert individual changes, Keep, or Revert.\n\tToolTurnEnd = \"turn_end\"\n\t// ToolTurnStatus reads the current agent turn's derived changes and which changes the person reverted.\n\tToolTurnStatus = \"turn_status\"\n\t// ToolFileEdit validates and edits a project YAML file (game.yaml, data table, clip, prefab, or scene) in memory without writing to disk.\n\tToolFileEdit = \"file_edit\"\n)",
          "doc": "Tool names for agent turns and multi-file YAML editing.\nNote: there is intentionally no MCP tool that keeps or reverts a turn; that remains the person's decision.\n",
          "file": "pkg/editor/editormcp/turn.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ToolPermissionsDraft",
              "anchor": "ToolPermissionsDraft"
            },
            {
              "name": "ToolGameDeleteFile",
              "anchor": "ToolGameDeleteFile"
            }
          ],
          "decl": "const (\n\t// ToolPermissionsDraft submits a You-only permissions draft card for the person to review and tick rule by rule.\n\t// It never modifies permissions.yaml or active rules on its own.\n\tToolPermissionsDraft = \"permissions_draft\"\n\t// ToolGameDeleteFile proposes deleting a project file in the Review changes panel with its line count and scene usages.\n\t// It never deletes the file directly on disk, refuses You-only files, and Keep all never applies the deletion without per-file confirmation.\n\tToolGameDeleteFile = \"game_delete_file\"\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/you_only.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "EndpointDirEnv",
              "anchor": "EndpointDirEnv"
            }
          ],
          "decl": "const EndpointDirEnv = \"NSGO_GAME_EDITOR_ENDPOINTS\"",
          "doc": "EndpointDirEnv names the environment variable that, when set, holds the directory the editors' endpoints live in instead of the user's cache directory, as a test or a sandboxed agent sets it for both the editor and go tool game mcp.\n",
          "file": "pkg/editor/editormcp/endpoint.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "ServerName",
              "anchor": "ServerName"
            }
          ],
          "decl": "const ServerName = \"nsgo-game-editor\"",
          "doc": "ServerName is the name the editor's server gives clients when they connect.\n",
          "file": "pkg/editor/editormcp/server.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "ToolHistoryList",
              "anchor": "ToolHistoryList"
            }
          ],
          "decl": "const ToolHistoryList = \"history_list\"",
          "doc": "ToolHistoryList is the MCP tool name exposing recent History timeline entries to connected agents.\n",
          "file": "pkg/editor/editormcp/history.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ToolProblemProposeFix",
              "anchor": "ToolProblemProposeFix"
            }
          ],
          "decl": "const ToolProblemProposeFix = \"problem_propose_fix\"",
          "doc": "ToolProblemProposeFix stages an agent-proposed fix for a live problem in the\neditor's Agent card without ever applying it or mutating any scene or file.\n",
          "file": "pkg/editor/editormcp/problems.go",
          "line": 16
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNoEditor",
              "anchor": "ErrNoEditor"
            },
            {
              "name": "ErrInUse",
              "anchor": "ErrInUse"
            }
          ],
          "decl": "var (\n\t// ErrNoEditor reports that no editor has the project open: its endpoint does not exist or nothing answers on it.\n\tErrNoEditor = errors.New(\"editormcp: no editor has the project open\")\n\t// ErrInUse reports that another editor already serves the project's endpoint.\n\tErrInUse = errors.New(\"editormcp: another editor already serves the project\")\n)",
          "doc": "",
          "file": "pkg/editor/editormcp/endpoint.go",
          "line": 22
        }
      ],
      "funcs": [
        {
          "name": "Dial",
          "anchor": "Dial",
          "decl": "func Dial(ctx context.Context, root string) (net.Conn, error)",
          "doc": "Dial connects to the editor that has the project at root open. It returns an error wrapping ErrNoEditor, which says how to open the project, when none does.\n",
          "file": "pkg/editor/editormcp/endpoint.go",
          "line": 109
        },
        {
          "name": "Endpoint",
          "anchor": "Endpoint",
          "decl": "func Endpoint(root string) (string, error)",
          "doc": "Endpoint returns the path of the local socket the editor with the project at root open serves on: a file named after a hash of the project's absolute path in the endpoint directory, which is $NSGO_GAME_EDITOR_ENDPOINTS when set (EndpointDirEnv) and otherwise nsgo-game/editor in the user's cache directory. root should come from ProjectRoot, so that every spelling of the project's path names the same endpoint. The endpoint is a Unix domain socket, which macOS, Linux and Windows 10 and later all have; it is never a network port.\n",
          "file": "pkg/editor/editormcp/endpoint.go",
          "line": 54
        },
        {
          "name": "InstallCommand",
          "anchor": "InstallCommand",
          "decl": "func InstallCommand() (string, []string)",
          "doc": "InstallCommand returns the command and arguments an external MCP client runs in the project root to connect to the open editor.\n",
          "file": "pkg/editor/editormcp/install.go",
          "line": 48
        },
        {
          "name": "Installed",
          "anchor": "Installed",
          "decl": "func Installed(root string) bool",
          "doc": "Installed reports whether both Claude Code and Codex project MCP configurations exist in root and reference ServerName.\n",
          "file": "pkg/editor/editormcp/install.go",
          "line": 136
        },
        {
          "name": "Listen",
          "anchor": "Listen",
          "decl": "func Listen(root string) (net.Listener, error)",
          "doc": "Listen opens the endpoint for the project at root, which only this user can connect to: its directory is created private to the user. When the endpoint is left over from an editor that quit without closing it, Listen replaces it; when another editor answers on it, Listen returns ErrInUse.\n",
          "file": "pkg/editor/editormcp/endpoint.go",
          "line": 80
        },
        {
          "name": "ProjectRoot",
          "anchor": "ProjectRoot",
          "decl": "func ProjectRoot(path string) (string, error)",
          "doc": "ProjectRoot returns the absolute, symlink-free directory of the project at path: a game.yaml, the directory holding one, or any directory below that one, as an agent started in a subdirectory of the project names it. It returns an error naming path when no game.yaml is found on the way up.\n",
          "file": "pkg/editor/editormcp/endpoint.go",
          "line": 30
        }
      ],
      "types": [
        {
          "name": "Action",
          "anchor": "Action",
          "decl": "type Action string",
          "doc": "Action is what a tool does to the project, which the editor's permission rules decide on: reading changes nothing, editing changes files the person can review and undo, and running starts work such as a check or a playtest.\n",
          "file": "pkg/editor/editormcp/server.go",
          "line": 37,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ActionRead",
                  "anchor": "ActionRead"
                },
                {
                  "name": "ActionEdit",
                  "anchor": "ActionEdit"
                },
                {
                  "name": "ActionCreate",
                  "anchor": "ActionCreate"
                },
                {
                  "name": "ActionDelete",
                  "anchor": "ActionDelete"
                },
                {
                  "name": "ActionRun",
                  "anchor": "ActionRun"
                },
                {
                  "name": "ActionCode",
                  "anchor": "ActionCode"
                }
              ],
              "decl": "const (\n\t// ActionRead reads the project or the editor's state and changes nothing.\n\tActionRead Action = \"read\"\n\t// ActionEdit changes the open project through editor commands.\n\tActionEdit Action = \"edit\"\n\t// ActionCreate creates new files in the open project.\n\tActionCreate Action = \"create\"\n\t// ActionDelete deletes files from the open project.\n\tActionDelete Action = \"delete\"\n\t// ActionRun runs work over the project, such as game check, playtests, or shell commands.\n\tActionRun Action = \"run\"\n\t// ActionCode changes Go source files in the open project.\n\tActionCode Action = \"code\"\n)",
              "doc": "The actions a tool takes.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 40
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "Action.Valid",
              "recv": "Action",
              "decl": "func (a Action) Valid() bool",
              "doc": "Valid reports whether a is one of the recognized tool actions.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 56
            }
          ]
        },
        {
          "name": "AgentReportStepResult",
          "anchor": "AgentReportStepResult",
          "decl": "type AgentReportStepResult struct {\n\tStepID    string   `json:\"stepId\"`\n\tText      string   `json:\"text\"`\n\tObjects   []string `json:\"objects,omitempty\"`\n\tStatus    string   `json:\"status\"`\n\tFollowUps []string `json:\"followUps,omitempty\"`\n}",
          "doc": "AgentReportStepResult is the structured payload returned by agent_report_step.\n",
          "file": "pkg/editor/editormcp/agent_live.go",
          "line": 21,
          "members": [
            {
              "name": "StepID",
              "anchor": "AgentReportStepResult.StepID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "AgentReportStepResult.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Objects",
              "anchor": "AgentReportStepResult.Objects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "AgentReportStepResult.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FollowUps",
              "anchor": "AgentReportStepResult.FollowUps",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AgentTurnPayload",
          "anchor": "AgentTurnPayload",
          "decl": "type AgentTurnPayload struct {\n\tID               string   `json:\"id\"`\n\tPrompt           string   `json:\"prompt\"`\n\tSource           string   `json:\"source\"`\n\tSkipPlan         bool     `json:\"skipPlan\"`\n\tStatus           string   `json:\"status\"`\n\tScenePath        string   `json:\"scenePath,omitempty\"`\n\tSceneName        string   `json:\"sceneName,omitempty\"`\n\tSceneYAML        string   `json:\"sceneYaml,omitempty\"`\n\tSelectionIDs     []string `json:\"selectionIds,omitempty\"`\n\tSelectionNames   []string `json:\"selectionNames,omitempty\"`\n\tLayer            string   `json:\"layer,omitempty\"`\n\tViewportWidth    int      `json:\"viewportWidth,omitempty\"`\n\tViewportHeight   int      `json:\"viewportHeight,omitempty\"`\n\tViewMode         string   `json:\"viewMode,omitempty\"`\n\tHasViewportImage bool     `json:\"hasViewportImage\"`\n\tReply            string   `json:\"reply,omitempty\"`\n}",
          "doc": "AgentTurnPayload is the structured representation of an editor.AgentTurn returned by agent_turn_get\nand the editor://agent/turn resource.\n",
          "file": "pkg/editor/editormcp/agent.go",
          "line": 73,
          "members": [
            {
              "name": "ID",
              "anchor": "AgentTurnPayload.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "AgentTurnPayload.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "AgentTurnPayload.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SkipPlan",
              "anchor": "AgentTurnPayload.SkipPlan",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "AgentTurnPayload.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "AgentTurnPayload.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneName",
              "anchor": "AgentTurnPayload.SceneName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneYAML",
              "anchor": "AgentTurnPayload.SceneYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectionIDs",
              "anchor": "AgentTurnPayload.SelectionIDs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectionNames",
              "anchor": "AgentTurnPayload.SelectionNames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "AgentTurnPayload.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportWidth",
              "anchor": "AgentTurnPayload.ViewportWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewportHeight",
              "anchor": "AgentTurnPayload.ViewportHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewMode",
              "anchor": "AgentTurnPayload.ViewMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasViewportImage",
              "anchor": "AgentTurnPayload.HasViewportImage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reply",
              "anchor": "AgentTurnPayload.Reply",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AutomationResult",
          "anchor": "AutomationResult",
          "decl": "type AutomationResult struct {\n\t// Text is the tool's text for the agent.\n\tText string `json:\"text,omitempty\"`\n\t// Structured is the tool's structured result, or absent.\n\tStructured any `json:\"structured,omitempty\"`\n\t// PNGBase64 is the tool's PNG in base64, or empty.\n\tPNGBase64 string `json:\"pngBase64,omitempty\"`\n\t// SaveWarning is set while the editor's automatic saving is failing, so the agent does not build on edits not on disk.\n\tSaveWarning *SaveWarning `json:\"saveWarning,omitempty\"`\n}",
          "doc": "AutomationResult is what a tool registered by RegisterAutomation returns to nsgo mcp: app tools return JSON, so a PNG comes as base64 text (nsgo-dev/nsgo#2343).\n",
          "file": "pkg/editor/editormcp/automation.go",
          "line": 14,
          "members": [
            {
              "name": "Text",
              "anchor": "AutomationResult.Text",
              "kind": "field",
              "doc": "Text is the tool's text for the agent."
            },
            {
              "name": "Structured",
              "anchor": "AutomationResult.Structured",
              "kind": "field",
              "doc": "Structured is the tool's structured result, or absent."
            },
            {
              "name": "PNGBase64",
              "anchor": "AutomationResult.PNGBase64",
              "kind": "field",
              "doc": "PNGBase64 is the tool's PNG in base64, or empty."
            },
            {
              "name": "SaveWarning",
              "anchor": "AutomationResult.SaveWarning",
              "kind": "field",
              "doc": "SaveWarning is set while the editor's automatic saving is failing, so the agent does not build on edits not on disk."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BriefContext",
          "anchor": "BriefContext",
          "decl": "type BriefContext struct {\n\tExists          bool                          `json:\"exists\"`\n\tFile            string                        `json:\"file\"`\n\tYAML            string                        `json:\"yaml,omitempty\"`\n\tParsed          *project.Brief                `json:\"parsed,omitempty\"`\n\tGaps            []project.BriefSection        `json:\"gaps,omitempty\"`\n\tPlaytestTargets []project.BriefPlaytestTarget `json:\"playtestTargets,omitempty\"`\n\tError           string                        `json:\"error,omitempty\"`\n}",
          "doc": "BriefContext is the brief.yaml section of ProjectContext.\n",
          "file": "pkg/editor/editormcp/context.go",
          "line": 26,
          "members": [
            {
              "name": "Exists",
              "anchor": "BriefContext.Exists",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "BriefContext.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAML",
              "anchor": "BriefContext.YAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Parsed",
              "anchor": "BriefContext.Parsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Gaps",
              "anchor": "BriefContext.Gaps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlaytestTargets",
              "anchor": "BriefContext.PlaytestTargets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "BriefContext.Error",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Call",
          "anchor": "Call",
          "decl": "type Call struct {\n\t// Args is the call's JSON object of arguments.\n\tArgs json.RawMessage\n\t// contains filtered or unexported fields\n}",
          "doc": "Call is one call of a tool: its arguments and the server it runs on.\n",
          "file": "pkg/editor/editormcp/server.go",
          "line": 91,
          "members": [
            {
              "name": "Args",
              "anchor": "Call.Args",
              "kind": "field",
              "doc": "Args is the call's JSON object of arguments."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Decode",
              "anchor": "Call.Decode",
              "recv": "*Call",
              "decl": "func (c *Call) Decode(v any) error",
              "doc": "Decode decodes the call's arguments into v, refusing a field v does not have, so a misspelled argument is an error the agent reads rather than one silently dropped.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 111
            },
            {
              "name": "Editor",
              "anchor": "Call.Editor",
              "recv": "*Call",
              "decl": "func (c *Call) Editor(ctx context.Context, fn func(ed *editor.Editor) error) error",
              "doc": "Editor runs fn on the editor's goroutine and returns its error; see Server.Editor.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 103
            }
          ]
        },
        {
          "name": "Check",
          "anchor": "Check",
          "decl": "type Check struct {\n\t// Problems are the visible problems the Problems panel lists, sorted by file, line, column and message.\n\tProblems []Problem `json:\"problems\"`\n\t// Unsaved names the open scene when the editor holds edits to it not yet saved on disk (which game_check checked live).\n\tUnsaved string `json:\"unsaved,omitempty\"`\n}",
          "doc": "Check is what game_check reports.\n",
          "file": "pkg/editor/editormcp/tools.go",
          "line": 765,
          "members": [
            {
              "name": "Problems",
              "anchor": "Check.Problems",
              "kind": "field",
              "doc": "Problems are the visible problems the Problems panel lists, sorted by file, line, column and message."
            },
            {
              "name": "Unsaved",
              "anchor": "Check.Unsaved",
              "kind": "field",
              "doc": "Unsaved names the open scene when the editor holds edits to it not yet saved on disk (which game_check checked live)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CheckpointListItem",
          "anchor": "CheckpointListItem",
          "decl": "type CheckpointListItem struct {\n\tID           string   `json:\"id\"`\n\tCheckpointID string   `json:\"checkpointId,omitempty\"`\n\tTime         string   `json:\"time,omitempty\"`\n\tWho          string   `json:\"who\"`\n\tKind         string   `json:\"kind,omitempty\"`\n\tTitle        string   `json:\"title\"`\n\tDetail       string   `json:\"detail,omitempty\"`\n\tFiles        []string `json:\"files,omitempty\"`\n\tPersistent   bool     `json:\"persistent\"`\n\tRestorable   bool     `json:\"restorable\"`\n}",
          "doc": "CheckpointListItem is one entry returned by checkpoint_list.\n",
          "file": "pkg/editor/editormcp/checkpoints.go",
          "line": 39,
          "members": [
            {
              "name": "ID",
              "anchor": "CheckpointListItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckpointID",
              "anchor": "CheckpointListItem.CheckpointID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Time",
              "anchor": "CheckpointListItem.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Who",
              "anchor": "CheckpointListItem.Who",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "CheckpointListItem.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "CheckpointListItem.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "CheckpointListItem.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "CheckpointListItem.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Persistent",
              "anchor": "CheckpointListItem.Persistent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restorable",
              "anchor": "CheckpointListItem.Restorable",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CheckpointListResult",
          "anchor": "CheckpointListResult",
          "decl": "type CheckpointListResult struct {\n\tFilter  string               `json:\"filter\"`\n\tTotal   int                  `json:\"total\"`\n\tEntries []CheckpointListItem `json:\"entries\"`\n}",
          "doc": "CheckpointListResult is the structured payload returned by checkpoint_list.\n",
          "file": "pkg/editor/editormcp/checkpoints.go",
          "line": 53,
          "members": [
            {
              "name": "Filter",
              "anchor": "CheckpointListResult.Filter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Total",
              "anchor": "CheckpointListResult.Total",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Entries",
              "anchor": "CheckpointListResult.Entries",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CheckpointRestoreResult",
          "anchor": "CheckpointRestoreResult",
          "decl": "type CheckpointRestoreResult struct {\n\tID       string   `json:\"id\"`\n\tTitle    string   `json:\"title\"`\n\tFiles    []string `json:\"files,omitempty\"`\n\tRevision uint64   `json:\"revision\"`\n}",
          "doc": "CheckpointRestoreResult is the structured payload returned by checkpoint_restore.\n",
          "file": "pkg/editor/editormcp/checkpoints.go",
          "line": 60,
          "members": [
            {
              "name": "ID",
              "anchor": "CheckpointRestoreResult.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "CheckpointRestoreResult.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "CheckpointRestoreResult.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "CheckpointRestoreResult.Revision",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewChecksSummary",
          "anchor": "CodeReviewChecksSummary",
          "decl": "type CodeReviewChecksSummary struct {\n\tPhase       string                         `json:\"phase\"`\n\tCheckPassed bool                           `json:\"checkPassed\"`\n\tCheckError  string                         `json:\"checkError,omitempty\"`\n\tTestPassed  bool                           `json:\"testPassed\"`\n\tPassedCount int                            `json:\"passedCount\"`\n\tFailedCount int                            `json:\"failedCount\"`\n\tTotalCount  int                            `json:\"totalCount\"`\n\tDurationMs  int64                          `json:\"durationMs,omitempty\"`\n\tPackages    []string                       `json:\"packages,omitempty\"`\n\tFailures    []editor.CodeReviewTestFailure `json:\"failures,omitempty\"`\n}",
          "doc": "CodeReviewChecksSummary is the structured check/test status returned by code_review_* tools.\n",
          "file": "pkg/editor/editormcp/code_review.go",
          "line": 157,
          "members": [
            {
              "name": "Phase",
              "anchor": "CodeReviewChecksSummary.Phase",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckPassed",
              "anchor": "CodeReviewChecksSummary.CheckPassed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckError",
              "anchor": "CodeReviewChecksSummary.CheckError",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestPassed",
              "anchor": "CodeReviewChecksSummary.TestPassed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PassedCount",
              "anchor": "CodeReviewChecksSummary.PassedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FailedCount",
              "anchor": "CodeReviewChecksSummary.FailedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalCount",
              "anchor": "CodeReviewChecksSummary.TotalCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DurationMs",
              "anchor": "CodeReviewChecksSummary.DurationMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Packages",
              "anchor": "CodeReviewChecksSummary.Packages",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Failures",
              "anchor": "CodeReviewChecksSummary.Failures",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewFileSummary",
          "anchor": "CodeReviewFileSummary",
          "decl": "type CodeReviewFileSummary struct {\n\tPath          string `json:\"path\"`\n\tKind          string `json:\"kind\"`\n\tAddedLines    int    `json:\"addedLines\"`\n\tRemovedLines  int    `json:\"removedLines\"`\n\tConfirmed     bool   `json:\"confirmed\"`\n\tApplied       bool   `json:\"applied\"`\n\tEditedInRound int    `json:\"editedInRound\"`\n}",
          "doc": "CodeReviewFileSummary is one file entry in CodeReviewStatusResult.\n",
          "file": "pkg/editor/editormcp/code_review.go",
          "line": 146,
          "members": [
            {
              "name": "Path",
              "anchor": "CodeReviewFileSummary.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "CodeReviewFileSummary.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AddedLines",
              "anchor": "CodeReviewFileSummary.AddedLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemovedLines",
              "anchor": "CodeReviewFileSummary.RemovedLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Confirmed",
              "anchor": "CodeReviewFileSummary.Confirmed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Applied",
              "anchor": "CodeReviewFileSummary.Applied",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EditedInRound",
              "anchor": "CodeReviewFileSummary.EditedInRound",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CodeReviewStatusResult",
          "anchor": "CodeReviewStatusResult",
          "decl": "type CodeReviewStatusResult struct {\n\tActive         bool                    `json:\"active\"`\n\tOpen           bool                    `json:\"open\"`\n\tPaused         bool                    `json:\"paused\"`\n\tKeptYAML       bool                    `json:\"keptYaml\"`\n\tFixRequested   bool                    `json:\"fixRequested\"`\n\tTurnID         string                  `json:\"turnId,omitempty\"`\n\tPrompt         string                  `json:\"prompt,omitempty\"`\n\tRound          int                     `json:\"round,omitempty\"`\n\tRoundSummary   string                  `json:\"roundSummary,omitempty\"`\n\tSelectedPath   string                  `json:\"selectedPath,omitempty\"`\n\tLayout         string                  `json:\"layout,omitempty\"`\n\tFiles          []CodeReviewFileSummary `json:\"files,omitempty\"`\n\tWaitingGoFiles []string                `json:\"waitingGoFiles,omitempty\"`\n\tChecks         CodeReviewChecksSummary `json:\"checks\"`\n}",
          "doc": "CodeReviewStatusResult is the structured result returned by code_review_propose, code_review_status, and code_review_run_checks.\n",
          "file": "pkg/editor/editormcp/code_review.go",
          "line": 171,
          "members": [
            {
              "name": "Active",
              "anchor": "CodeReviewStatusResult.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Open",
              "anchor": "CodeReviewStatusResult.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Paused",
              "anchor": "CodeReviewStatusResult.Paused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptYAML",
              "anchor": "CodeReviewStatusResult.KeptYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FixRequested",
              "anchor": "CodeReviewStatusResult.FixRequested",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TurnID",
              "anchor": "CodeReviewStatusResult.TurnID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "CodeReviewStatusResult.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Round",
              "anchor": "CodeReviewStatusResult.Round",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RoundSummary",
              "anchor": "CodeReviewStatusResult.RoundSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedPath",
              "anchor": "CodeReviewStatusResult.SelectedPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layout",
              "anchor": "CodeReviewStatusResult.Layout",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "CodeReviewStatusResult.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WaitingGoFiles",
              "anchor": "CodeReviewStatusResult.WaitingGoFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checks",
              "anchor": "CodeReviewStatusResult.Checks",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneActorPose",
          "anchor": "CutsceneActorPose",
          "decl": "type CutsceneActorPose struct {\n\tID    string  `json:\"id\"`\n\tX     float32 `json:\"x\"`\n\tY     float32 `json:\"y\"`\n\tState string  `json:\"state,omitempty\"`\n}",
          "doc": "CutsceneActorPose is one actor's posed coordinates and active state returned by cutscene_scrub.\n",
          "file": "pkg/editor/editormcp/cutscene.go",
          "line": 70,
          "members": [
            {
              "name": "ID",
              "anchor": "CutsceneActorPose.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "CutsceneActorPose.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "CutsceneActorPose.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "CutsceneActorPose.State",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneCameraPose",
          "anchor": "CutsceneCameraPose",
          "decl": "type CutsceneCameraPose struct {\n\tLabel string  `json:\"label\"`\n\tX     float32 `json:\"x\"`\n\tY     float32 `json:\"y\"`\n\tZoom  float32 `json:\"zoom\"`\n}",
          "doc": "CutsceneCameraPose is the posed camera state returned by cutscene_scrub.\n",
          "file": "pkg/editor/editormcp/cutscene.go",
          "line": 78,
          "members": [
            {
              "name": "Label",
              "anchor": "CutsceneCameraPose.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "CutsceneCameraPose.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "CutsceneCameraPose.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zoom",
              "anchor": "CutsceneCameraPose.Zoom",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneChangeSummary",
          "anchor": "CutsceneChangeSummary",
          "decl": "type CutsceneChangeSummary struct {\n\tID       string `json:\"id\"`\n\tSign     string `json:\"sign\"`\n\tTitle    string `json:\"title\"`\n\tDetail   string `json:\"detail\"`\n\tReverted bool   `json:\"reverted,omitempty\"`\n}",
          "doc": "CutsceneChangeSummary summarizes one change inside a pending cutscene review.\n",
          "file": "pkg/editor/editormcp/cutscene.go",
          "line": 50,
          "members": [
            {
              "name": "ID",
              "anchor": "CutsceneChangeSummary.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "CutsceneChangeSummary.Sign",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "CutsceneChangeSummary.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "CutsceneChangeSummary.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "CutsceneChangeSummary.Reverted",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneDialoguePose",
          "anchor": "CutsceneDialoguePose",
          "decl": "type CutsceneDialoguePose struct {\n\tActive  bool   `json:\"active\"`\n\tID      string `json:\"id,omitempty\"`\n\tSpeaker string `json:\"speaker,omitempty\"`\n\tText    string `json:\"text,omitempty\"`\n}",
          "doc": "CutsceneDialoguePose is the active dialogue subtitle returned by cutscene_scrub.\n",
          "file": "pkg/editor/editormcp/cutscene.go",
          "line": 86,
          "members": [
            {
              "name": "Active",
              "anchor": "CutsceneDialoguePose.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "CutsceneDialoguePose.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Speaker",
              "anchor": "CutsceneDialoguePose.Speaker",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "CutsceneDialoguePose.Text",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneScrubResult",
          "anchor": "CutsceneScrubResult",
          "decl": "type CutsceneScrubResult struct {\n\tFile          string               `json:\"file,omitempty\"`\n\tTimeSeconds   float64              `json:\"timeSeconds\"`\n\tLengthSeconds float64              `json:\"lengthSeconds\"`\n\tCamera        CutsceneCameraPose   `json:\"camera\"`\n\tActors        []CutsceneActorPose  `json:\"actors,omitempty\"`\n\tDialogue      CutsceneDialoguePose `json:\"dialogue\"`\n\tReviewOpen    bool                 `json:\"reviewOpen,omitempty\"`\n\tShowingBefore bool                 `json:\"showingBefore,omitempty\"`\n\tKeptChanges   int                  `json:\"keptChanges,omitempty\"`\n\tTotalChanges  int                  `json:\"totalChanges,omitempty\"`\n}",
          "doc": "CutsceneScrubResult is what cutscene_scrub reports.\n",
          "file": "pkg/editor/editormcp/cutscene.go",
          "line": 94,
          "members": [
            {
              "name": "File",
              "anchor": "CutsceneScrubResult.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TimeSeconds",
              "anchor": "CutsceneScrubResult.TimeSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LengthSeconds",
              "anchor": "CutsceneScrubResult.LengthSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Camera",
              "anchor": "CutsceneScrubResult.Camera",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actors",
              "anchor": "CutsceneScrubResult.Actors",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dialogue",
              "anchor": "CutsceneScrubResult.Dialogue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReviewOpen",
              "anchor": "CutsceneScrubResult.ReviewOpen",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ShowingBefore",
              "anchor": "CutsceneScrubResult.ShowingBefore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptChanges",
              "anchor": "CutsceneScrubResult.KeptChanges",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalChanges",
              "anchor": "CutsceneScrubResult.TotalChanges",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CutsceneWriteResult",
          "anchor": "CutsceneWriteResult",
          "decl": "type CutsceneWriteResult struct {\n\tFile    string                  `json:\"file\"`\n\tStatus  string                  `json:\"status\"` // \"pending_review\" or \"written\"\n\tKind    string                  `json:\"kind\"`\n\tLength  float64                 `json:\"lengthSeconds,omitempty\"`\n\tTracks  int                     `json:\"tracks\"`\n\tOpened  bool                    `json:\"opened\"`\n\tChanges []CutsceneChangeSummary `json:\"changes,omitempty\"`\n}",
          "doc": "CutsceneWriteResult is what cutscene_write reports.\n",
          "file": "pkg/editor/editormcp/cutscene.go",
          "line": 59,
          "members": [
            {
              "name": "File",
              "anchor": "CutsceneWriteResult.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Status",
              "anchor": "CutsceneWriteResult.Status",
              "kind": "field",
              "doc": "\"pending_review\" or \"written\""
            },
            {
              "name": "Kind",
              "anchor": "CutsceneWriteResult.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Length",
              "anchor": "CutsceneWriteResult.Length",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tracks",
              "anchor": "CutsceneWriteResult.Tracks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Opened",
              "anchor": "CutsceneWriteResult.Opened",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changes",
              "anchor": "CutsceneWriteResult.Changes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewRecordStatus",
          "anchor": "DataTableReviewRecordStatus",
          "decl": "type DataTableReviewRecordStatus struct {\n\tKey           string `json:\"key\"`\n\tDisplayName   string `json:\"displayName,omitempty\"`\n\tChanged       bool   `json:\"changed,omitempty\"`\n\tReverted      bool   `json:\"reverted,omitempty\"`\n\tUserEdited    bool   `json:\"userEdited,omitempty\"`\n\tUserReordered bool   `json:\"userReordered,omitempty\"`\n}",
          "doc": "DataTableReviewRecordStatus summarizes one changed, reverted, or user-edited record for MCP callers.\n",
          "file": "pkg/editor/editormcp/datatable_review.go",
          "line": 209,
          "members": [
            {
              "name": "Key",
              "anchor": "DataTableReviewRecordStatus.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DisplayName",
              "anchor": "DataTableReviewRecordStatus.DisplayName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "DataTableReviewRecordStatus.Changed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "DataTableReviewRecordStatus.Reverted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserEdited",
              "anchor": "DataTableReviewRecordStatus.UserEdited",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserReordered",
              "anchor": "DataTableReviewRecordStatus.UserReordered",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DataTableReviewStatusResult",
          "anchor": "DataTableReviewStatusResult",
          "decl": "type DataTableReviewStatusResult struct {\n\teditor.DataTableReviewSnapshot\n\tActiveRecords []DataTableReviewRecordStatus `json:\"activeRecords,omitempty\"`\n}",
          "doc": "DataTableReviewStatusResult is returned by datatable_review_propose, datatable_review_checks, and datatable_review_status.\n",
          "file": "pkg/editor/editormcp/datatable_review.go",
          "line": 219,
          "members": [
            {
              "name": "DataTableReviewSnapshot",
              "anchor": "DataTableReviewStatusResult.DataTableReviewSnapshot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveRecords",
              "anchor": "DataTableReviewStatusResult.ActiveRecords",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DocEditResult",
          "anchor": "DocEditResult",
          "decl": "type DocEditResult struct {\n\tStatus string           `json:\"status\"`\n\tReview editor.DocReview `json:\"review\"`\n}",
          "doc": "DocEditResult is returned by brief_edit and rules_edit when queuing a reviewable change.\n",
          "file": "pkg/editor/editormcp/context.go",
          "line": 55,
          "members": [
            {
              "name": "Status",
              "anchor": "DocEditResult.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Review",
              "anchor": "DocEditResult.Review",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EditError",
          "anchor": "EditError",
          "decl": "type EditError struct {\n\t// File is the scene the call edits, by its path from the project root.\n\tFile string `json:\"file\"`\n\t// Edit is the 1-based index of the refused edit among the call's edits, or 0 for the call as a whole.\n\tEdit int `json:\"edit,omitempty\"`\n\t// Op is the refused edit's op.\n\tOp string `json:\"op,omitempty\"`\n\t// Object is the ID of the object the edit names, or empty.\n\tObject string `json:\"object,omitempty\"`\n\t// Component is the component the edit names, or empty.\n\tComponent string `json:\"component,omitempty\"`\n\t// Field is the field or property the editor refused, or empty.\n\tField string `json:\"field,omitempty\"`\n\t// Problem says what is wrong.\n\tProblem string `json:\"problem\"`\n\t// Fix says what to change for the edit to apply.\n\tFix string `json:\"fix\"`\n}",
          "doc": "EditError is a scene_edit the editor refused. Nothing of the call applied: the open scene, its undo history and its file on disk are as they were.\n",
          "file": "pkg/editor/editormcp/edit.go",
          "line": 64,
          "members": [
            {
              "name": "File",
              "anchor": "EditError.File",
              "kind": "field",
              "doc": "File is the scene the call edits, by its path from the project root."
            },
            {
              "name": "Edit",
              "anchor": "EditError.Edit",
              "kind": "field",
              "doc": "Edit is the 1-based index of the refused edit among the call's edits, or 0 for the call as a whole."
            },
            {
              "name": "Op",
              "anchor": "EditError.Op",
              "kind": "field",
              "doc": "Op is the refused edit's op."
            },
            {
              "name": "Object",
              "anchor": "EditError.Object",
              "kind": "field",
              "doc": "Object is the ID of the object the edit names, or empty."
            },
            {
              "name": "Component",
              "anchor": "EditError.Component",
              "kind": "field",
              "doc": "Component is the component the edit names, or empty."
            },
            {
              "name": "Field",
              "anchor": "EditError.Field",
              "kind": "field",
              "doc": "Field is the field or property the editor refused, or empty."
            },
            {
              "name": "Problem",
              "anchor": "EditError.Problem",
              "kind": "field",
              "doc": "Problem says what is wrong."
            },
            {
              "name": "Fix",
              "anchor": "EditError.Fix",
              "kind": "field",
              "doc": "Fix says what to change for the edit to apply."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "EditError.Error",
              "recv": "*EditError",
              "decl": "func (e *EditError) Error() string",
              "doc": "Error formats e as \"scene_edit: file: edit N (op) on object \"id\" component \"c\" field \"f\": problem; fix. Nothing was changed.\"\n",
              "file": "pkg/editor/editormcp/edit.go",
              "line": 84
            }
          ]
        },
        {
          "name": "EditResult",
          "anchor": "EditResult",
          "decl": "type EditResult struct {\n\t// File is the scene edited.\n\tFile string `json:\"file\"`\n\t// Undo is the undo step's label, which one Undo takes back.\n\tUndo string `json:\"undo\"`\n\t// Objects are the IDs of the objects the edits added, in order.\n\tObjects []string `json:\"added,omitempty\"`\n\t// Revision is the editor's revision after the edits.\n\tRevision uint64 `json:\"revision\"`\n}",
          "doc": "EditResult is what scene_edit reports once its edits applied.\n",
          "file": "pkg/editor/editormcp/edit.go",
          "line": 111,
          "members": [
            {
              "name": "File",
              "anchor": "EditResult.File",
              "kind": "field",
              "doc": "File is the scene edited."
            },
            {
              "name": "Undo",
              "anchor": "EditResult.Undo",
              "kind": "field",
              "doc": "Undo is the undo step's label, which one Undo takes back."
            },
            {
              "name": "Objects",
              "anchor": "EditResult.Objects",
              "kind": "field",
              "doc": "Objects are the IDs of the objects the edits added, in order."
            },
            {
              "name": "Revision",
              "anchor": "EditResult.Revision",
              "kind": "field",
              "doc": "Revision is the editor's revision after the edits."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FileEditResult",
          "anchor": "FileEditResult",
          "decl": "type FileEditResult struct {\n\tFile     string `json:\"file\"`\n\tInTurn   bool   `json:\"inTurn\"`\n\tRevision uint64 `json:\"revision\"`\n}",
          "doc": "FileEditResult is returned by file_edit after applying a validated in-memory edit.\n",
          "file": "pkg/editor/editormcp/turn.go",
          "line": 52,
          "members": [
            {
              "name": "File",
              "anchor": "FileEditResult.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InTurn",
              "anchor": "FileEditResult.InTurn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "FileEditResult.Revision",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FileText",
          "anchor": "FileText",
          "decl": "type FileText struct {\n\t// File is the file's slash-separated path from the project root, or the open scene's name when it has no file.\n\tFile string `json:\"file\"`\n\t// Source is \"editor\" when the text is what the editor holds, with its unsaved edits, and \"disk\" when it is the file on disk, as it is whenever the editor holds no unsaved edits to it.\n\tSource string `json:\"source\"`\n\t// Unsaved reports that the editor holds edits to the file that are not saved.\n\tUnsaved bool `json:\"unsaved\"`\n\t// Lines is how many lines the file has.\n\tLines int `json:\"lines\"`\n\t// From and To are the first and last line returned, 1-based; both are 0 for an empty file.\n\tFrom int `json:\"from\"`\n\tTo   int `json:\"to\"`\n\t// contains filtered or unexported fields\n}",
          "doc": "FileText is a file scene_read read.\n",
          "file": "pkg/editor/editormcp/tools.go",
          "line": 240,
          "members": [
            {
              "name": "File",
              "anchor": "FileText.File",
              "kind": "field",
              "doc": "File is the file's slash-separated path from the project root, or the open scene's name when it has no file."
            },
            {
              "name": "Source",
              "anchor": "FileText.Source",
              "kind": "field",
              "doc": "Source is \"editor\" when the text is what the editor holds, with its unsaved edits, and \"disk\" when it is the file on disk, as it is whenever the editor holds no unsaved edits to it."
            },
            {
              "name": "Unsaved",
              "anchor": "FileText.Unsaved",
              "kind": "field",
              "doc": "Unsaved reports that the editor holds edits to the file that are not saved."
            },
            {
              "name": "Lines",
              "anchor": "FileText.Lines",
              "kind": "field",
              "doc": "Lines is how many lines the file has."
            },
            {
              "name": "From",
              "anchor": "FileText.From",
              "kind": "field",
              "doc": "From and To are the first and last line returned, 1-based; both are 0 for an empty file."
            },
            {
              "name": "To",
              "anchor": "FileText.To",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GameDeleteFileResult",
          "anchor": "GameDeleteFileResult",
          "decl": "type GameDeleteFileResult struct {\n\tStatus         string   `json:\"status\"`\n\tFile           string   `json:\"file\"`\n\tLineCount      int      `json:\"lineCount\"`\n\tUsedByAnyScene bool     `json:\"usedByAnyScene\"`\n\tSceneUsages    []string `json:\"sceneUsages,omitempty\"`\n\tUsageSummary   string   `json:\"usageSummary\"`\n\tToolEnabled    bool     `json:\"toolEnabled\"`\n\tDeletedOnDisk  bool     `json:\"deletedOnDisk\"`\n}",
          "doc": "GameDeleteFileResult is the structured result returned by game_delete_file.\n",
          "file": "pkg/editor/editormcp/you_only.go",
          "line": 228,
          "members": [
            {
              "name": "Status",
              "anchor": "GameDeleteFileResult.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "GameDeleteFileResult.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LineCount",
              "anchor": "GameDeleteFileResult.LineCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UsedByAnyScene",
              "anchor": "GameDeleteFileResult.UsedByAnyScene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneUsages",
              "anchor": "GameDeleteFileResult.SceneUsages",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UsageSummary",
              "anchor": "GameDeleteFileResult.UsageSummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToolEnabled",
              "anchor": "GameDeleteFileResult.ToolEnabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeletedOnDisk",
              "anchor": "GameDeleteFileResult.DeletedOnDisk",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HistoryEntryView",
          "anchor": "HistoryEntryView",
          "decl": "type HistoryEntryView struct {\n\tID           uint64   `json:\"id\"`\n\tKind         string   `json:\"kind\"`\n\tAuthor       string   `json:\"author,omitempty\"`\n\tAuthorLabel  string   `json:\"authorLabel,omitempty\"`\n\tSummary      string   `json:\"summary\"`\n\tDetail       string   `json:\"detail,omitempty\"`\n\tFiles        []string `json:\"files,omitempty\"`\n\tTimestamp    string   `json:\"timestamp\"`\n\tRelativeTime string   `json:\"relativeTime\"`\n\tChangeCount  int      `json:\"changeCount,omitempty\"`\n\tKeptCount    int      `json:\"keptCount,omitempty\"`\n\tUndone       bool     `json:\"undone,omitempty\"`\n\tCheckpointID string   `json:\"checkpointId,omitempty\"`\n\tPersistent   bool     `json:\"persistent,omitempty\"`\n}",
          "doc": "HistoryEntryView is one entry returned by history_list.\n",
          "file": "pkg/editor/editormcp/history.go",
          "line": 21,
          "members": [
            {
              "name": "ID",
              "anchor": "HistoryEntryView.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "HistoryEntryView.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Author",
              "anchor": "HistoryEntryView.Author",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AuthorLabel",
              "anchor": "HistoryEntryView.AuthorLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "HistoryEntryView.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "HistoryEntryView.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "HistoryEntryView.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Timestamp",
              "anchor": "HistoryEntryView.Timestamp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RelativeTime",
              "anchor": "HistoryEntryView.RelativeTime",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChangeCount",
              "anchor": "HistoryEntryView.ChangeCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptCount",
              "anchor": "HistoryEntryView.KeptCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Undone",
              "anchor": "HistoryEntryView.Undone",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckpointID",
              "anchor": "HistoryEntryView.CheckpointID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Persistent",
              "anchor": "HistoryEntryView.Persistent",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HistoryListResult",
          "anchor": "HistoryListResult",
          "decl": "type HistoryListResult struct {\n\tScene        string             `json:\"scene\"`\n\tUnsaved      bool               `json:\"unsaved\"`\n\tPreviewingID uint64             `json:\"previewingId,omitempty\"`\n\tUndoIndex    int                `json:\"undoIndex\"`\n\tTotal        int                `json:\"total\"`\n\tEntries      []HistoryEntryView `json:\"entries\"`\n}",
          "doc": "HistoryListResult is the structured payload returned by history_list.\n",
          "file": "pkg/editor/editormcp/history.go",
          "line": 39,
          "members": [
            {
              "name": "Scene",
              "anchor": "HistoryListResult.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unsaved",
              "anchor": "HistoryListResult.Unsaved",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreviewingID",
              "anchor": "HistoryListResult.PreviewingID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UndoIndex",
              "anchor": "HistoryListResult.UndoIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Total",
              "anchor": "HistoryListResult.Total",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Entries",
              "anchor": "HistoryListResult.Entries",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InstallFile",
          "anchor": "InstallFile",
          "decl": "type InstallFile struct {\n\t// Client names the external agent that reads this file (\"Claude Code\" or \"Codex\").\n\tClient string\n\t// Path is the absolute path on disk.\n\tPath string\n\t// RelPath is the slash-separated path relative to the project root.\n\tRelPath string\n\t// Changed reports whether Install wrote new bytes (false when the file was already identical).\n\tChanged bool\n}",
          "doc": "InstallFile describes one project-level MCP configuration file written or verified by Install.\n",
          "file": "pkg/editor/editormcp/install.go",
          "line": 30,
          "members": [
            {
              "name": "Client",
              "anchor": "InstallFile.Client",
              "kind": "field",
              "doc": "Client names the external agent that reads this file (\"Claude Code\" or \"Codex\")."
            },
            {
              "name": "Path",
              "anchor": "InstallFile.Path",
              "kind": "field",
              "doc": "Path is the absolute path on disk."
            },
            {
              "name": "RelPath",
              "anchor": "InstallFile.RelPath",
              "kind": "field",
              "doc": "RelPath is the slash-separated path relative to the project root."
            },
            {
              "name": "Changed",
              "anchor": "InstallFile.Changed",
              "kind": "field",
              "doc": "Changed reports whether Install wrote new bytes (false when the file was already identical)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InstallResult",
          "anchor": "InstallResult",
          "decl": "type InstallResult struct {\n\tRoot  string\n\tFiles []InstallFile\n}",
          "doc": "InstallResult summarizes the files created or updated by Install.\n",
          "file": "pkg/editor/editormcp/install.go",
          "line": 42,
          "members": [
            {
              "name": "Root",
              "anchor": "InstallResult.Root",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "InstallResult.Files",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Install",
              "anchor": "Install",
              "decl": "func Install(path string) (*InstallResult, error)",
              "doc": "Install writes the project-level MCP configuration files that Claude Code (.mcp.json) and Codex (.codex/config.toml) read so they find the editor's MCP server automatically.\nExisting unrelated MCP servers or settings in either file are preserved, and running Install twice produces byte-for-byte identical files.\n",
              "file": "pkg/editor/editormcp/install.go",
              "line": 54
            },
            {
              "name": "InstallWithServers",
              "anchor": "InstallWithServers",
              "decl": "func InstallWithServers(path string, extra []editor.AgentMCPServer, removed ...string) (*InstallResult, error)",
              "doc": "InstallWithServers writes the editor's MCP server plus any enabled external MCP servers from Settings › Tools\ninto Claude Code (.mcp.json) and Codex (.codex/config.toml), removing disabled or removed managed server entries\nwhile preserving unrelated servers and comments.\n",
              "file": "pkg/editor/editormcp/install.go",
              "line": 113
            }
          ],
          "methods": []
        },
        {
          "name": "MergeStatusResult",
          "anchor": "MergeStatusResult",
          "decl": "type MergeStatusResult struct {\n\tOpen           bool                       `json:\"open\"`\n\tScenePath      string                     `json:\"scenePath,omitempty\"`\n\tMine           editor.MergeSideMeta       `json:\"mine,omitempty\"`\n\tTheirs         editor.MergeSideMeta       `json:\"theirs,omitempty\"`\n\tFocusedID      string                     `json:\"focusedId,omitempty\"`\n\tResolvedCount  int                        `json:\"resolvedCount\"`\n\tTotalConflicts int                        `json:\"totalConflicts\"`\n\tFinished       bool                       `json:\"finished,omitempty\"`\n\tCommitSHA      string                     `json:\"commitSha,omitempty\"`\n\tVerifySummary  string                     `json:\"verifySummary,omitempty\"`\n\tVerifyErr      string                     `json:\"verifyErr,omitempty\"`\n\tDetectedScenes []string                   `json:\"detectedScenes,omitempty\"`\n\tConflicts      []editor.MergeConflictItem `json:\"conflicts,omitempty\"`\n\tAutoMerged     []editor.MergeAutoItem     `json:\"autoMerged,omitempty\"`\n}",
          "doc": "MergeStatusResult is the structured payload returned by merge_status, merge_resolve, and merge_finish.\n",
          "file": "pkg/editor/editormcp/merge.go",
          "line": 100,
          "members": [
            {
              "name": "Open",
              "anchor": "MergeStatusResult.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScenePath",
              "anchor": "MergeStatusResult.ScenePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mine",
              "anchor": "MergeStatusResult.Mine",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Theirs",
              "anchor": "MergeStatusResult.Theirs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusedID",
              "anchor": "MergeStatusResult.FocusedID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResolvedCount",
              "anchor": "MergeStatusResult.ResolvedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalConflicts",
              "anchor": "MergeStatusResult.TotalConflicts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Finished",
              "anchor": "MergeStatusResult.Finished",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CommitSHA",
              "anchor": "MergeStatusResult.CommitSHA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VerifySummary",
              "anchor": "MergeStatusResult.VerifySummary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VerifyErr",
              "anchor": "MergeStatusResult.VerifyErr",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DetectedScenes",
              "anchor": "MergeStatusResult.DetectedScenes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Conflicts",
              "anchor": "MergeStatusResult.Conflicts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AutoMerged",
              "anchor": "MergeStatusResult.AutoMerged",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectCopyYAMLResult",
          "anchor": "ObjectCopyYAMLResult",
          "decl": "type ObjectCopyYAMLResult struct {\n\tID    string `json:\"id\"`\n\tYAML  string `json:\"yaml\"`\n\tLines int    `json:\"lines\"`\n\tToast string `json:\"toast\"`\n}",
          "doc": "ObjectCopyYAMLResult is returned by object_copy_yaml.\n",
          "file": "pkg/editor/editormcp/object_menu.go",
          "line": 138,
          "members": [
            {
              "name": "ID",
              "anchor": "ObjectCopyYAMLResult.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAML",
              "anchor": "ObjectCopyYAMLResult.YAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Lines",
              "anchor": "ObjectCopyYAMLResult.Lines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Toast",
              "anchor": "ObjectCopyYAMLResult.Toast",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectDuplicateResult",
          "anchor": "ObjectDuplicateResult",
          "decl": "type ObjectDuplicateResult struct {\n\tSourceID string `json:\"sourceId\"`\n\tID       string `json:\"id\"`\n\tRevision uint64 `json:\"revision\"`\n}",
          "doc": "ObjectDuplicateResult is returned by object_duplicate.\n",
          "file": "pkg/editor/editormcp/object_menu.go",
          "line": 285,
          "members": [
            {
              "name": "SourceID",
              "anchor": "ObjectDuplicateResult.SourceID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "ObjectDuplicateResult.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "ObjectDuplicateResult.Revision",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectFieldResult",
          "anchor": "ObjectFieldResult",
          "decl": "type ObjectFieldResult struct {\n\tFile      string `json:\"file\"`\n\tObject    string `json:\"object\"`\n\tComponent string `json:\"component,omitempty\"`\n\tProperty  bool   `json:\"property,omitempty\"`\n\tField     string `json:\"field\"`\n\tUndo      string `json:\"undo,omitempty\"`\n\tRevision  uint64 `json:\"revision\"`\n}",
          "doc": "ObjectFieldResult is returned by object_set_field.\n",
          "file": "pkg/editor/editormcp/inspector.go",
          "line": 36,
          "members": [
            {
              "name": "File",
              "anchor": "ObjectFieldResult.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Object",
              "anchor": "ObjectFieldResult.Object",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "ObjectFieldResult.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Property",
              "anchor": "ObjectFieldResult.Property",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "ObjectFieldResult.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Undo",
              "anchor": "ObjectFieldResult.Undo",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "ObjectFieldResult.Revision",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectGroupResult",
          "anchor": "ObjectGroupResult",
          "decl": "type ObjectGroupResult struct {\n\tGroupID  string   `json:\"groupId\"`\n\tChildren []string `json:\"children\"`\n\tRevision uint64   `json:\"revision\"`\n}",
          "doc": "ObjectGroupResult is returned by object_group.\n",
          "file": "pkg/editor/editormcp/object_menu.go",
          "line": 367,
          "members": [
            {
              "name": "GroupID",
              "anchor": "ObjectGroupResult.GroupID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Children",
              "anchor": "ObjectGroupResult.Children",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "ObjectGroupResult.Revision",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectMoveUnderResult",
          "anchor": "ObjectMoveUnderResult",
          "decl": "type ObjectMoveUnderResult struct {\n\tID         string                      `json:\"id\"`\n\tParent     string                      `json:\"parent,omitempty\"`\n\tCandidates []editor.MoveUnderCandidate `json:\"candidates,omitempty\"`\n\tUndo       string                      `json:\"undo,omitempty\"`\n\tRevision   uint64                      `json:\"revision\"`\n}",
          "doc": "ObjectMoveUnderResult is returned by object_move_under.\n",
          "file": "pkg/editor/editormcp/object_menu.go",
          "line": 468,
          "members": [
            {
              "name": "ID",
              "anchor": "ObjectMoveUnderResult.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Parent",
              "anchor": "ObjectMoveUnderResult.Parent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Candidates",
              "anchor": "ObjectMoveUnderResult.Candidates",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Undo",
              "anchor": "ObjectMoveUnderResult.Undo",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "ObjectMoveUnderResult.Revision",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectPasteYAMLResult",
          "anchor": "ObjectPasteYAMLResult",
          "decl": "type ObjectPasteYAMLResult struct {\n\tID       string `json:\"id\"`\n\tRevision uint64 `json:\"revision\"`\n}",
          "doc": "ObjectPasteYAMLResult is returned by object_paste_yaml.\n",
          "file": "pkg/editor/editormcp/object_menu.go",
          "line": 180,
          "members": [
            {
              "name": "ID",
              "anchor": "ObjectPasteYAMLResult.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "ObjectPasteYAMLResult.Revision",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectSelectSamePrefabResult",
          "anchor": "ObjectSelectSamePrefabResult",
          "decl": "type ObjectSelectSamePrefabResult struct {\n\tSelectedIDs []string `json:\"selectedIds\"`\n\tCount       int      `json:\"count\"`\n}",
          "doc": "ObjectSelectSamePrefabResult is returned by object_select_same_prefab.\n",
          "file": "pkg/editor/editormcp/object_menu.go",
          "line": 580,
          "members": [
            {
              "name": "SelectedIDs",
              "anchor": "ObjectSelectSamePrefabResult.SelectedIDs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "ObjectSelectSamePrefabResult.Count",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectVisibilityResult",
          "anchor": "ObjectVisibilityResult",
          "decl": "type ObjectVisibilityResult struct {\n\tID     string `json:\"id\"`\n\tHidden bool   `json:\"hidden\"`\n\tLocked bool   `json:\"locked\"`\n}",
          "doc": "ObjectVisibilityResult is returned by object_visibility.\n",
          "file": "pkg/editor/editormcp/object_menu.go",
          "line": 611,
          "members": [
            {
              "name": "ID",
              "anchor": "ObjectVisibilityResult.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "ObjectVisibilityResult.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Locked",
              "anchor": "ObjectVisibilityResult.Locked",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectYAMLLocation",
          "anchor": "ObjectYAMLLocation",
          "decl": "type ObjectYAMLLocation struct {\n\tFile   string `json:\"file\"`\n\tObject string `json:\"object,omitempty\"`\n\tLine   int    `json:\"line\"`\n\tOpened bool   `json:\"opened,omitempty\"`\n\tYAML   string `json:\"yaml,omitempty\"`\n}",
          "doc": "ObjectYAMLLocation is returned by object_locate_yaml.\n",
          "file": "pkg/editor/editormcp/inspector.go",
          "line": 47,
          "members": [
            {
              "name": "File",
              "anchor": "ObjectYAMLLocation.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Object",
              "anchor": "ObjectYAMLLocation.Object",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "ObjectYAMLLocation.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Opened",
              "anchor": "ObjectYAMLLocation.Opened",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAML",
              "anchor": "ObjectYAMLLocation.YAML",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Run hands fn to the editor's goroutine and returns at once, as core.Scope.Post does for an editor shown in a window; the server waits for fn to run. When nil, the server runs fn on the calling goroutine, one at a time, for an editor no UI drives, as in a test or a script.\n\tRun func(fn func())\n\t// RunPlaytest optionally overrides how game_playtest executes a playtest request, for tests or in-process runners. When nil, game_playtest runs `go tool nsgo test` in the project root.\n\tRunPlaytest func(ctx context.Context, req PlaytestRunRequest) (*playtest.Report, error)\n\t// OnPermissionAsk is invoked when a tool call matches an Ask rule. When nil (or returning PermissionAnswerPending), the server queues the pending request on the Editor and returns a *PermissionError with Decision == editor.PermissionAsk without invoking the tool handler.\n\tOnPermissionAsk func(ctx context.Context, eval editor.PermissionEvaluation) (PermissionPromptAnswer, error)\n\t// OnPermissionDecision, when non-nil, is called with every permission evaluation produced for a mutating or running tool call (Allow, Ask, or Deny).\n\tOnPermissionDecision func(eval editor.PermissionEvaluation)\n}",
          "doc": "Options configure a Server.\n",
          "file": "pkg/editor/editormcp/server.go",
          "line": 148,
          "members": [
            {
              "name": "Run",
              "anchor": "Options.Run",
              "kind": "field",
              "doc": "Run hands fn to the editor's goroutine and returns at once, as core.Scope.Post does for an editor shown in a window; the server waits for fn to run. When nil, the server runs fn on the calling goroutine, one at a time, for an editor no UI drives, as in a test or a script."
            },
            {
              "name": "RunPlaytest",
              "anchor": "Options.RunPlaytest",
              "kind": "field",
              "doc": "RunPlaytest optionally overrides how game_playtest executes a playtest request, for tests or in-process runners. When nil, game_playtest runs `go tool nsgo test` in the project root."
            },
            {
              "name": "OnPermissionAsk",
              "anchor": "Options.OnPermissionAsk",
              "kind": "field",
              "doc": "OnPermissionAsk is invoked when a tool call matches an Ask rule. When nil (or returning PermissionAnswerPending), the server queues the pending request on the Editor and returns a *PermissionError with Decision == editor.PermissionAsk without invoking the tool handler."
            },
            {
              "name": "OnPermissionDecision",
              "anchor": "Options.OnPermissionDecision",
              "kind": "field",
              "doc": "OnPermissionDecision, when non-nil, is called with every permission evaluation produced for a mutating or running tool call (Allow, Ask, or Deny)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionDeniedResult",
          "anchor": "PermissionDeniedResult",
          "decl": "type PermissionDeniedResult struct {\n\tDenied             bool   `json:\"denied\"`\n\tAlreadyDenied      bool   `json:\"alreadyDenied,omitempty\"`\n\tBlockedByRule      bool   `json:\"blockedByRule,omitempty\"`\n\tContinuedWithoutIt bool   `json:\"continuedWithoutIt,omitempty\"`\n\tRule               string `json:\"rule,omitempty\"`\n\tMessage            string `json:\"message\"`\n}",
          "doc": "PermissionDeniedResult is returned as non-fatal structured content when a tool call is denied\nby the person on an interactive Agent panel permission card so the agent continues without retrying it.\n",
          "file": "pkg/editor/editormcp/agent_live.go",
          "line": 31,
          "members": [
            {
              "name": "Denied",
              "anchor": "PermissionDeniedResult.Denied",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlreadyDenied",
              "anchor": "PermissionDeniedResult.AlreadyDenied",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlockedByRule",
              "anchor": "PermissionDeniedResult.BlockedByRule",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ContinuedWithoutIt",
              "anchor": "PermissionDeniedResult.ContinuedWithoutIt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rule",
              "anchor": "PermissionDeniedResult.Rule",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "PermissionDeniedResult.Message",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionError",
          "anchor": "PermissionError",
          "decl": "type PermissionError struct {\n\t// Tool is the MCP tool name that was checked.\n\tTool string `json:\"tool\"`\n\t// Action is the evaluated permission action (\"edit\", \"create\", \"delete\", \"run\", or \"code\").\n\tAction editor.PermissionAction `json:\"action\"`\n\t// Target is the evaluated project-relative file path or run target.\n\tTarget string `json:\"target,omitempty\"`\n\t// Decision is editor.PermissionDeny or editor.PermissionAsk.\n\tDecision editor.PermissionDecision `json:\"decision\"`\n\t// Profile is the active base profile (\"cautious\", \"balanced\", or \"autonomous\").\n\tProfile editor.PermissionProfile `json:\"profile\"`\n\t// Modified reports whether the active rules differ from the profile preset.\n\tModified bool `json:\"modified,omitempty\"`\n\t// RuleIndex is the 0-based index of the first matching rule, or -1 when the profile default decided.\n\tRuleIndex int `json:\"ruleIndex\"`\n\t// RuleNumber is the 1-based rule number (RuleIndex + 1), or 0 when the profile default decided.\n\tRuleNumber int `json:\"ruleNumber,omitempty\"`\n\t// RuleTotal is the total number of rules in the active table.\n\tRuleTotal int `json:\"ruleTotal,omitempty\"`\n\t// Rule is a copy of the matched rule, or nil when the profile default decided.\n\tRule *editor.PermissionRule `json:\"rule,omitempty\"`\n\t// Reason is a clear, agent-readable explanation naming the rule and profile.\n\tReason string `json:\"reason\"`\n\t// Link is the Settings › Permissions location of the matching rule, such as \"Settings › Permissions · rule 7 of 7\".\n\tLink string `json:\"link\"`\n\t// HeldByDisk reports that an external permissions.yaml loosening was held until confirmed in Settings › Permissions.\n\tHeldByDisk bool `json:\"heldByDisk,omitempty\"`\n\t// RequestID identifies the pending Ask request queued on the editor, when Decision == editor.PermissionAsk.\n\tRequestID string `json:\"requestId,omitempty\"`\n}",
          "doc": "PermissionError is returned when the editor's MCP permission rules block a tool call (Deny) or pause it awaiting the person's approval (Ask).\nThe underlying tool handler never runs when a PermissionError is returned.\n",
          "file": "pkg/editor/editormcp/permissions.go",
          "line": 32,
          "members": [
            {
              "name": "Tool",
              "anchor": "PermissionError.Tool",
              "kind": "field",
              "doc": "Tool is the MCP tool name that was checked."
            },
            {
              "name": "Action",
              "anchor": "PermissionError.Action",
              "kind": "field",
              "doc": "Action is the evaluated permission action (\"edit\", \"create\", \"delete\", \"run\", or \"code\")."
            },
            {
              "name": "Target",
              "anchor": "PermissionError.Target",
              "kind": "field",
              "doc": "Target is the evaluated project-relative file path or run target."
            },
            {
              "name": "Decision",
              "anchor": "PermissionError.Decision",
              "kind": "field",
              "doc": "Decision is editor.PermissionDeny or editor.PermissionAsk."
            },
            {
              "name": "Profile",
              "anchor": "PermissionError.Profile",
              "kind": "field",
              "doc": "Profile is the active base profile (\"cautious\", \"balanced\", or \"autonomous\")."
            },
            {
              "name": "Modified",
              "anchor": "PermissionError.Modified",
              "kind": "field",
              "doc": "Modified reports whether the active rules differ from the profile preset."
            },
            {
              "name": "RuleIndex",
              "anchor": "PermissionError.RuleIndex",
              "kind": "field",
              "doc": "RuleIndex is the 0-based index of the first matching rule, or -1 when the profile default decided."
            },
            {
              "name": "RuleNumber",
              "anchor": "PermissionError.RuleNumber",
              "kind": "field",
              "doc": "RuleNumber is the 1-based rule number (RuleIndex + 1), or 0 when the profile default decided."
            },
            {
              "name": "RuleTotal",
              "anchor": "PermissionError.RuleTotal",
              "kind": "field",
              "doc": "RuleTotal is the total number of rules in the active table."
            },
            {
              "name": "Rule",
              "anchor": "PermissionError.Rule",
              "kind": "field",
              "doc": "Rule is a copy of the matched rule, or nil when the profile default decided."
            },
            {
              "name": "Reason",
              "anchor": "PermissionError.Reason",
              "kind": "field",
              "doc": "Reason is a clear, agent-readable explanation naming the rule and profile."
            },
            {
              "name": "Link",
              "anchor": "PermissionError.Link",
              "kind": "field",
              "doc": "Link is the Settings › Permissions location of the matching rule, such as \"Settings › Permissions · rule 7 of 7\"."
            },
            {
              "name": "HeldByDisk",
              "anchor": "PermissionError.HeldByDisk",
              "kind": "field",
              "doc": "HeldByDisk reports that an external permissions.yaml loosening was held until confirmed in Settings › Permissions."
            },
            {
              "name": "RequestID",
              "anchor": "PermissionError.RequestID",
              "kind": "field",
              "doc": "RequestID identifies the pending Ask request queued on the editor, when Decision == editor.PermissionAsk."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "PermissionError.Error",
              "recv": "*PermissionError",
              "decl": "func (e *PermissionError) Error() string",
              "doc": "",
              "file": "pkg/editor/editormcp/permissions.go",
              "line": 63
            }
          ]
        },
        {
          "name": "PermissionPromptAnswer",
          "anchor": "PermissionPromptAnswer",
          "decl": "type PermissionPromptAnswer int",
          "doc": "PermissionPromptAnswer is the person's response when an MCP tool call matches an Ask permission rule.\n",
          "file": "pkg/editor/editormcp/permissions.go",
          "line": 17,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PermissionAnswerPending",
                  "anchor": "PermissionAnswerPending"
                },
                {
                  "name": "PermissionAnswerAllowOnce",
                  "anchor": "PermissionAnswerAllowOnce"
                },
                {
                  "name": "PermissionAnswerAllowAlways",
                  "anchor": "PermissionAnswerAllowAlways"
                },
                {
                  "name": "PermissionAnswerDeny",
                  "anchor": "PermissionAnswerDeny"
                }
              ],
              "decl": "const (\n\t// PermissionAnswerPending leaves the request pending without running the tool, returning a *PermissionError with Decision == editor.PermissionAsk.\n\tPermissionAnswerPending PermissionPromptAnswer = iota\n\t// PermissionAnswerAllowOnce allows this single tool call without changing permissions.yaml.\n\tPermissionAnswerAllowOnce\n\t// PermissionAnswerAllowAlways inserts and saves an Allow rule in permissions.yaml, shows the \"Always permission rule saved\" toast with Show and Undo, and runs the tool.\n\tPermissionAnswerAllowAlways\n\t// PermissionAnswerDeny refuses this tool call without changing permissions.yaml.\n\tPermissionAnswerDeny\n)",
              "doc": "",
              "file": "pkg/editor/editormcp/permissions.go",
              "line": 19
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionsDraftResult",
          "anchor": "PermissionsDraftResult",
          "decl": "type PermissionsDraftResult struct {\n\tStatus      string                   `json:\"status\"`\n\tDraftID     string                   `json:\"draftId\"`\n\tDomain      editor.YouOnlyDomain     `json:\"domain\"`\n\tRuleCount   int                      `json:\"ruleCount\"`\n\tTickedCount int                      `json:\"tickedCount\"`\n\tDraft       *editor.PermissionsDraft `json:\"draft\"`\n}",
          "doc": "PermissionsDraftResult is the structured result returned by permissions_draft.\n",
          "file": "pkg/editor/editormcp/you_only.go",
          "line": 192,
          "members": [
            {
              "name": "Status",
              "anchor": "PermissionsDraftResult.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DraftID",
              "anchor": "PermissionsDraftResult.DraftID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Domain",
              "anchor": "PermissionsDraftResult.Domain",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RuleCount",
              "anchor": "PermissionsDraftResult.RuleCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TickedCount",
              "anchor": "PermissionsDraftResult.TickedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Draft",
              "anchor": "PermissionsDraftResult.Draft",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlanStepUpdatePayload",
          "anchor": "PlanStepUpdatePayload",
          "decl": "type PlanStepUpdatePayload struct {\n\tPlanID     string           `json:\"planId,omitempty\"`\n\tPhase      editor.PlanPhase `json:\"phase\"`\n\tStopped    bool             `json:\"stopped\"`\n\tActiveStep int              `json:\"activeStep,omitempty\"`\n\tDoneSteps  int              `json:\"doneSteps\"`\n\tTotalSteps int              `json:\"totalSteps\"`\n}",
          "doc": "PlanStepUpdatePayload is the structured response returned by plan_step_update.\n",
          "file": "pkg/editor/editormcp/plan.go",
          "line": 410,
          "members": [
            {
              "name": "PlanID",
              "anchor": "PlanStepUpdatePayload.PlanID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Phase",
              "anchor": "PlanStepUpdatePayload.Phase",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stopped",
              "anchor": "PlanStepUpdatePayload.Stopped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveStep",
              "anchor": "PlanStepUpdatePayload.ActiveStep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DoneSteps",
              "anchor": "PlanStepUpdatePayload.DoneSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalSteps",
              "anchor": "PlanStepUpdatePayload.TotalSteps",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlayFrozenContextResult",
          "anchor": "PlayFrozenContextResult",
          "decl": "type PlayFrozenContextResult struct {\n\tPlaying          bool                         `json:\"playing\"`\n\tPaused           bool                         `json:\"paused\"`\n\tFrame            int                          `json:\"frame\"`\n\tSeconds          float64                      `json:\"seconds\"`\n\tScene            string                       `json:\"scene,omitempty\"`\n\tPrompt           string                       `json:\"prompt,omitempty\"`\n\tReplayPath       string                       `json:\"replayPath,omitempty\"`\n\tReplayFrames     int                          `json:\"replayFrames\"`\n\tWindowStartFrame int                          `json:\"windowStartFrame,omitempty\"`\n\tReplayYAML       string                       `json:\"replayYaml,omitempty\"`\n\tSelectedID       string                       `json:\"selectedId,omitempty\"`\n\tLiveEntities     []editor.PlayLiveEntityState `json:\"liveEntities,omitempty\"`\n\tLiveChanges      []editor.RemoteLiveChange    `json:\"liveChanges,omitempty\"`\n\tMarks            []editor.PlayMark            `json:\"marks,omitempty\"`\n\tLastMarksThread  *editor.PlayMarksThread      `json:\"lastMarksThread,omitempty\"`\n\tPanic            *editor.PanicReport          `json:\"panic,omitempty\"`\n\tAgentPill        string                       `json:\"agentPill,omitempty\"`\n\tAgentSteps       []editor.PlayAgentStep       `json:\"agentSteps,omitempty\"`\n}",
          "doc": "PlayFrozenContextResult is the structured payload returned by play_frozen_context.\n",
          "file": "pkg/editor/editormcp/play_frozen.go",
          "line": 68,
          "members": [
            {
              "name": "Playing",
              "anchor": "PlayFrozenContextResult.Playing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Paused",
              "anchor": "PlayFrozenContextResult.Paused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frame",
              "anchor": "PlayFrozenContextResult.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seconds",
              "anchor": "PlayFrozenContextResult.Seconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scene",
              "anchor": "PlayFrozenContextResult.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "PlayFrozenContextResult.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayPath",
              "anchor": "PlayFrozenContextResult.ReplayPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayFrames",
              "anchor": "PlayFrozenContextResult.ReplayFrames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WindowStartFrame",
              "anchor": "PlayFrozenContextResult.WindowStartFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayYAML",
              "anchor": "PlayFrozenContextResult.ReplayYAML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedID",
              "anchor": "PlayFrozenContextResult.SelectedID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LiveEntities",
              "anchor": "PlayFrozenContextResult.LiveEntities",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LiveChanges",
              "anchor": "PlayFrozenContextResult.LiveChanges",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Marks",
              "anchor": "PlayFrozenContextResult.Marks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastMarksThread",
              "anchor": "PlayFrozenContextResult.LastMarksThread",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Panic",
              "anchor": "PlayFrozenContextResult.Panic",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentPill",
              "anchor": "PlayFrozenContextResult.AgentPill",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentSteps",
              "anchor": "PlayFrozenContextResult.AgentSteps",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlayReplayStepResult",
          "anchor": "PlayReplayStepResult",
          "decl": "type PlayReplayStepResult struct {\n\tFromFrame    int                          `json:\"fromFrame\"`\n\tToFrame      int                          `json:\"toFrame\"`\n\tCurrentFrame int                          `json:\"currentFrame\"`\n\tPaused       bool                         `json:\"paused\"`\n\tPill         string                       `json:\"pill\"`\n\tAgentSteps   []editor.PlayAgentStep       `json:\"agentSteps,omitempty\"`\n\tLiveEntities []editor.PlayLiveEntityState `json:\"liveEntities,omitempty\"`\n}",
          "doc": "PlayReplayStepResult is the structured payload returned by play_replay_step.\n",
          "file": "pkg/editor/editormcp/play_frozen.go",
          "line": 90,
          "members": [
            {
              "name": "FromFrame",
              "anchor": "PlayReplayStepResult.FromFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToFrame",
              "anchor": "PlayReplayStepResult.ToFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CurrentFrame",
              "anchor": "PlayReplayStepResult.CurrentFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Paused",
              "anchor": "PlayReplayStepResult.Paused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pill",
              "anchor": "PlayReplayStepResult.Pill",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentSteps",
              "anchor": "PlayReplayStepResult.AgentSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LiveEntities",
              "anchor": "PlayReplayStepResult.LiveEntities",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestDefineResult",
          "anchor": "PlaytestDefineResult",
          "decl": "type PlaytestDefineResult struct {\n\t// Status is \"pending_review\", confirming playtest.yaml on disk was not modified yet.\n\tStatus string `json:\"status\"`\n\t// Review holds the proposed playtest.yaml change and its diff.\n\tReview PlaytestReview `json:\"review\"`\n}",
          "doc": "PlaytestDefineResult is what playtest_define returns beside its text summary.\n",
          "file": "pkg/editor/editormcp/playtest.go",
          "line": 89,
          "members": [
            {
              "name": "Status",
              "anchor": "PlaytestDefineResult.Status",
              "kind": "field",
              "doc": "Status is \"pending_review\", confirming playtest.yaml on disk was not modified yet."
            },
            {
              "name": "Review",
              "anchor": "PlaytestDefineResult.Review",
              "kind": "field",
              "doc": "Review holds the proposed playtest.yaml change and its diff."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestReportStatusResult",
          "anchor": "PlaytestReportStatusResult",
          "decl": "type PlaytestReportStatusResult struct {\n\tOpen             bool     `json:\"open\"`\n\tReportPath       string   `json:\"reportPath,omitempty\"`\n\tScope            string   `json:\"scope,omitempty\"`\n\tProject          string   `json:\"project,omitempty\"`\n\tChartKind        string   `json:\"chartKind,omitempty\"`\n\tPassed           bool     `json:\"passed\"`\n\tMissedCount      int      `json:\"missedCount\"`\n\tWatchRunIndex    int      `json:\"watchRunIndex,omitempty\"`\n\tPendingProposals int      `json:\"pendingProposals\"`\n\tRead             string   `json:\"read,omitempty\"`\n\tSuggestions      []string `json:\"suggestions,omitempty\"`\n}",
          "doc": "PlaytestReportStatusResult is the structured payload returned by playtest_report.\n",
          "file": "pkg/editor/editormcp/playtest.go",
          "line": 199,
          "members": [
            {
              "name": "Open",
              "anchor": "PlaytestReportStatusResult.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReportPath",
              "anchor": "PlaytestReportStatusResult.ReportPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scope",
              "anchor": "PlaytestReportStatusResult.Scope",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Project",
              "anchor": "PlaytestReportStatusResult.Project",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChartKind",
              "anchor": "PlaytestReportStatusResult.ChartKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Passed",
              "anchor": "PlaytestReportStatusResult.Passed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MissedCount",
              "anchor": "PlaytestReportStatusResult.MissedCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WatchRunIndex",
              "anchor": "PlaytestReportStatusResult.WatchRunIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PendingProposals",
              "anchor": "PlaytestReportStatusResult.PendingProposals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Read",
              "anchor": "PlaytestReportStatusResult.Read",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Suggestions",
              "anchor": "PlaytestReportStatusResult.Suggestions",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestReview",
          "anchor": "PlaytestReview",
          "decl": "type PlaytestReview struct {\n\t// ID uniquely identifies this pending review on the server (e.g. \"playtest-review-1\").\n\tID string `json:\"id\"`\n\t// File is the slash-separated path to playtest.yaml from the project root.\n\tFile string `json:\"file\"`\n\t// Metric is the proposed playtest metric definition.\n\tMetric playtest.Metric `json:\"metric\"`\n\t// Rationale explains why the agent proposed this metric (for example, which goal in brief.yaml motivated it).\n\tRationale string `json:\"rationale,omitempty\"`\n\t// Replace reports whether the proposal updates an existing metric with the same name instead of appending a new one.\n\tReplace bool `json:\"replace,omitempty\"`\n\t// Before is the text of playtest.yaml on disk when the proposal was created.\n\tBefore string `json:\"before\"`\n\t// After is the canonical YAML text of playtest.yaml if the proposal is accepted.\n\tAfter string `json:\"after\"`\n\t// Diff is a unified line diff between Before and After.\n\tDiff string `json:\"diff\"`\n\t// Status is \"pending\", \"applied\", or \"dismissed\".\n\tStatus string `json:\"status\"`\n}",
          "doc": "PlaytestReview is a proposed edit to playtest.yaml created by playtest_define awaiting a person's review.\n",
          "file": "pkg/editor/editormcp/playtest.go",
          "line": 67,
          "members": [
            {
              "name": "ID",
              "anchor": "PlaytestReview.ID",
              "kind": "field",
              "doc": "ID uniquely identifies this pending review on the server (e.g. \"playtest-review-1\")."
            },
            {
              "name": "File",
              "anchor": "PlaytestReview.File",
              "kind": "field",
              "doc": "File is the slash-separated path to playtest.yaml from the project root."
            },
            {
              "name": "Metric",
              "anchor": "PlaytestReview.Metric",
              "kind": "field",
              "doc": "Metric is the proposed playtest metric definition."
            },
            {
              "name": "Rationale",
              "anchor": "PlaytestReview.Rationale",
              "kind": "field",
              "doc": "Rationale explains why the agent proposed this metric (for example, which goal in brief.yaml motivated it)."
            },
            {
              "name": "Replace",
              "anchor": "PlaytestReview.Replace",
              "kind": "field",
              "doc": "Replace reports whether the proposal updates an existing metric with the same name instead of appending a new one."
            },
            {
              "name": "Before",
              "anchor": "PlaytestReview.Before",
              "kind": "field",
              "doc": "Before is the text of playtest.yaml on disk when the proposal was created."
            },
            {
              "name": "After",
              "anchor": "PlaytestReview.After",
              "kind": "field",
              "doc": "After is the canonical YAML text of playtest.yaml if the proposal is accepted."
            },
            {
              "name": "Diff",
              "anchor": "PlaytestReview.Diff",
              "kind": "field",
              "doc": "Diff is a unified line diff between Before and After."
            },
            {
              "name": "Status",
              "anchor": "PlaytestReview.Status",
              "kind": "field",
              "doc": "Status is \"pending\", \"applied\", or \"dismissed\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestRunRequest",
          "anchor": "PlaytestRunRequest",
          "decl": "type PlaytestRunRequest struct {\n\t// ProjectRoot is the absolute directory of the open project.\n\tProjectRoot string\n\t// ConfigFile is the slash-separated path to playtest.yaml relative to ProjectRoot.\n\tConfigFile string\n\t// ConfigPath is the absolute path to playtest.yaml.\n\tConfigPath string\n\t// Config is the validated playtest configuration with any count/seeds overrides applied.\n\tConfig *playtest.Config\n\t// OutFile is the slash-separated path to the YAML report relative to ProjectRoot.\n\tOutFile string\n\t// OutPath is the absolute path to the YAML report.\n\tOutPath string\n\t// RecordingsDir is the slash-separated directory for per-run .replay.yaml files relative to ProjectRoot, or empty.\n\tRecordingsDir string\n\t// RecordingsPath is the absolute directory for per-run .replay.yaml files, or empty.\n\tRecordingsPath string\n\t// Pattern is the Go test -run regexp (defaults to \"Playtest\").\n\tPattern string\n}",
          "doc": "PlaytestRunRequest is the validated request passed to Options.RunPlaytest (or the default `go tool nsgo test` runner).\n",
          "file": "pkg/editor/editormcp/playtest.go",
          "line": 29,
          "members": [
            {
              "name": "ProjectRoot",
              "anchor": "PlaytestRunRequest.ProjectRoot",
              "kind": "field",
              "doc": "ProjectRoot is the absolute directory of the open project."
            },
            {
              "name": "ConfigFile",
              "anchor": "PlaytestRunRequest.ConfigFile",
              "kind": "field",
              "doc": "ConfigFile is the slash-separated path to playtest.yaml relative to ProjectRoot."
            },
            {
              "name": "ConfigPath",
              "anchor": "PlaytestRunRequest.ConfigPath",
              "kind": "field",
              "doc": "ConfigPath is the absolute path to playtest.yaml."
            },
            {
              "name": "Config",
              "anchor": "PlaytestRunRequest.Config",
              "kind": "field",
              "doc": "Config is the validated playtest configuration with any count/seeds overrides applied."
            },
            {
              "name": "OutFile",
              "anchor": "PlaytestRunRequest.OutFile",
              "kind": "field",
              "doc": "OutFile is the slash-separated path to the YAML report relative to ProjectRoot."
            },
            {
              "name": "OutPath",
              "anchor": "PlaytestRunRequest.OutPath",
              "kind": "field",
              "doc": "OutPath is the absolute path to the YAML report."
            },
            {
              "name": "RecordingsDir",
              "anchor": "PlaytestRunRequest.RecordingsDir",
              "kind": "field",
              "doc": "RecordingsDir is the slash-separated directory for per-run .replay.yaml files relative to ProjectRoot, or empty."
            },
            {
              "name": "RecordingsPath",
              "anchor": "PlaytestRunRequest.RecordingsPath",
              "kind": "field",
              "doc": "RecordingsPath is the absolute directory for per-run .replay.yaml files, or empty."
            },
            {
              "name": "Pattern",
              "anchor": "PlaytestRunRequest.Pattern",
              "kind": "field",
              "doc": "Pattern is the Go test -run regexp (defaults to \"Playtest\")."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaytestRunResult",
          "anchor": "PlaytestRunResult",
          "decl": "type PlaytestRunResult struct {\n\t// File is the slash-separated path of the playtest.yaml that ran.\n\tFile string `json:\"file\"`\n\t// ReportFile is the slash-separated path where the YAML report was written.\n\tReportFile string `json:\"reportFile\"`\n\t// RecordingsDir is the slash-separated directory where per-seed .replay.yaml recordings were written, if enabled.\n\tRecordingsDir string `json:\"recordingsDir,omitempty\"`\n\t// Passed reports whether every metric with a goal met its goal.\n\tPassed bool `json:\"passed\"`\n\t// MissedCount is how many metrics missed their goal.\n\tMissedCount int `json:\"missedCount\"`\n\t// Report is the evaluated playtest report.\n\tReport *playtest.Report `json:\"report\"`\n}",
          "doc": "PlaytestRunResult is what game_playtest returns beside its text summary.\n",
          "file": "pkg/editor/editormcp/playtest.go",
          "line": 51,
          "members": [
            {
              "name": "File",
              "anchor": "PlaytestRunResult.File",
              "kind": "field",
              "doc": "File is the slash-separated path of the playtest.yaml that ran."
            },
            {
              "name": "ReportFile",
              "anchor": "PlaytestRunResult.ReportFile",
              "kind": "field",
              "doc": "ReportFile is the slash-separated path where the YAML report was written."
            },
            {
              "name": "RecordingsDir",
              "anchor": "PlaytestRunResult.RecordingsDir",
              "kind": "field",
              "doc": "RecordingsDir is the slash-separated directory where per-seed .replay.yaml recordings were written, if enabled."
            },
            {
              "name": "Passed",
              "anchor": "PlaytestRunResult.Passed",
              "kind": "field",
              "doc": "Passed reports whether every metric with a goal met its goal."
            },
            {
              "name": "MissedCount",
              "anchor": "PlaytestRunResult.MissedCount",
              "kind": "field",
              "doc": "MissedCount is how many metrics missed their goal."
            },
            {
              "name": "Report",
              "anchor": "PlaytestRunResult.Report",
              "kind": "field",
              "doc": "Report is the evaluated playtest report."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Problem",
          "anchor": "Problem",
          "decl": "type Problem struct {\n\t// File is the slash-separated path of the file at fault from the project root.\n\tFile string `json:\"file\"`\n\t// Line is the 1-based line of the problem, or 0 when it is about the whole file.\n\tLine int `json:\"line,omitempty\"`\n\t// Column is the 1-based column on Line where the scene format knows it, or 0 when unknown.\n\tColumn int `json:\"column,omitempty\"`\n\t// Object is the ID of the scene object the problem names or belongs to when known.\n\tObject string `json:\"object,omitempty\"`\n\t// Message says what is wrong.\n\tMessage string `json:\"message\"`\n}",
          "doc": "Problem is one problem game_check reports, as a row of the Problems panel shows it.\n",
          "file": "pkg/editor/editormcp/tools.go",
          "line": 751,
          "members": [
            {
              "name": "File",
              "anchor": "Problem.File",
              "kind": "field",
              "doc": "File is the slash-separated path of the file at fault from the project root."
            },
            {
              "name": "Line",
              "anchor": "Problem.Line",
              "kind": "field",
              "doc": "Line is the 1-based line of the problem, or 0 when it is about the whole file."
            },
            {
              "name": "Column",
              "anchor": "Problem.Column",
              "kind": "field",
              "doc": "Column is the 1-based column on Line where the scene format knows it, or 0 when unknown."
            },
            {
              "name": "Object",
              "anchor": "Problem.Object",
              "kind": "field",
              "doc": "Object is the ID of the scene object the problem names or belongs to when known."
            },
            {
              "name": "Message",
              "anchor": "Problem.Message",
              "kind": "field",
              "doc": "Message says what is wrong."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProblemProposeFixResult",
          "anchor": "ProblemProposeFixResult",
          "decl": "type ProblemProposeFixResult struct {\n\tStatus  string                    `json:\"status\"`\n\tApplied bool                      `json:\"applied\"`\n\tFix     editor.ProposedProblemFix `json:\"fix\"`\n}",
          "doc": "ProblemProposeFixResult is what problem_propose_fix returns beside its text summary.\nApplied is always false because no MCP tool applies a fix.\n",
          "file": "pkg/editor/editormcp/problems.go",
          "line": 119,
          "members": [
            {
              "name": "Status",
              "anchor": "ProblemProposeFixResult.Status",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Applied",
              "anchor": "ProblemProposeFixResult.Applied",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fix",
              "anchor": "ProblemProposeFixResult.Fix",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProjectContext",
          "anchor": "ProjectContext",
          "decl": "type ProjectContext struct {\n\tProject        string             `json:\"project,omitempty\"`\n\tLanguage       string             `json:\"language,omitempty\"`\n\tBrief          BriefContext       `json:\"brief\"`\n\tRules          RulesContext       `json:\"rules\"`\n\tPendingReviews []editor.DocReview `json:\"pendingReviews,omitempty\"`\n}",
          "doc": "ProjectContext is the combined context payload given to the agent before requests\nthrough project_context and the editor://context resource.\n",
          "file": "pkg/editor/editormcp/context.go",
          "line": 46,
          "members": [
            {
              "name": "Project",
              "anchor": "ProjectContext.Project",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Language",
              "anchor": "ProjectContext.Language",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Brief",
              "anchor": "ProjectContext.Brief",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rules",
              "anchor": "ProjectContext.Rules",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PendingReviews",
              "anchor": "ProjectContext.PendingReviews",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Proxy",
          "anchor": "Proxy",
          "decl": "type Proxy struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Proxy is the MCP server go tool game mcp runs on standard input and output: it finds the editor that has the project open, through the project's endpoint, and forwards every tool call, resource read and subscription to it, and the editor's notifications back. It connects when a client first needs the editor and again after the editor closes and opens the project anew, so the agent's session outlives the editor's. While no editor has the project open, it lists the editor's built-in tools and answers each call with an error that says how to open the project.\n",
          "file": "pkg/editor/editormcp/proxy.go",
          "line": 16,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewProxy",
              "anchor": "NewProxy",
              "decl": "func NewProxy(root string) *Proxy",
              "doc": "NewProxy returns the proxy for the project at root, which ProjectRoot finds.\n",
              "file": "pkg/editor/editormcp/proxy.go",
              "line": 41
            }
          ],
          "methods": [
            {
              "name": "Run",
              "anchor": "Proxy.Run",
              "recv": "*Proxy",
              "decl": "func (p *Proxy) Run(ctx context.Context, t mcp.Transport) error",
              "doc": "Run serves one client on t until the client disconnects or ctx ends; then it closes its connection to the editor.\n",
              "file": "pkg/editor/editormcp/proxy.go",
              "line": 123
            }
          ]
        },
        {
          "name": "RefactorRenameResult",
          "anchor": "RefactorRenameResult",
          "decl": "type RefactorRenameResult struct {\n\tFrom               string                      `json:\"from\"`\n\tTo                 string                      `json:\"to\"`\n\tValid              bool                        `json:\"valid\"`\n\tValidationMsg      string                      `json:\"validationMsg,omitempty\"`\n\tApplied            bool                        `json:\"applied\"`\n\tReviewOpen         bool                        `json:\"reviewOpen\"`\n\tRewrittenFileCount int                         `json:\"rewrittenFileCount\"`\n\tTotalTouchedFiles  int                         `json:\"totalTouchedFiles\"`\n\tRewrittenRefCount  int                         `json:\"rewrittenRefCount\"`\n\tPreservedObjects   []string                    `json:\"preservedObjects,omitempty\"`\n\tFiles              []editor.SafeRenameFileDiff `json:\"files,omitempty\"`\n\tProblems           []editor.SafeRenameProblem  `json:\"problems,omitempty\"`\n\tCheckProblems      []editor.SafeRenameProblem  `json:\"checkProblems,omitempty\"`\n}",
          "doc": "RefactorRenameResult is the structured payload returned by refactor_rename.\n",
          "file": "pkg/editor/editormcp/refs.go",
          "line": 75,
          "members": [
            {
              "name": "From",
              "anchor": "RefactorRenameResult.From",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "To",
              "anchor": "RefactorRenameResult.To",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Valid",
              "anchor": "RefactorRenameResult.Valid",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ValidationMsg",
              "anchor": "RefactorRenameResult.ValidationMsg",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Applied",
              "anchor": "RefactorRenameResult.Applied",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReviewOpen",
              "anchor": "RefactorRenameResult.ReviewOpen",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RewrittenFileCount",
              "anchor": "RefactorRenameResult.RewrittenFileCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalTouchedFiles",
              "anchor": "RefactorRenameResult.TotalTouchedFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RewrittenRefCount",
              "anchor": "RefactorRenameResult.RewrittenRefCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreservedObjects",
              "anchor": "RefactorRenameResult.PreservedObjects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Files",
              "anchor": "RefactorRenameResult.Files",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Problems",
              "anchor": "RefactorRenameResult.Problems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CheckProblems",
              "anchor": "RefactorRenameResult.CheckProblems",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RefsFindResult",
          "anchor": "RefsFindResult",
          "decl": "type RefsFindResult struct {\n\tTarget      string                  `json:\"target\"`\n\tOpen        bool                    `json:\"open\"`\n\tTotalUsages int                     `json:\"totalUsages\"`\n\tTotalFiles  int                     `json:\"totalFiles\"`\n\tScenes      []editor.UsageFileGroup `json:\"scenes,omitempty\"`\n\tVariants    []editor.UsageFileGroup `json:\"variants,omitempty\"`\n\tDataTables  []editor.UsageFileGroup `json:\"dataTables,omitempty\"`\n\tGoCode      []editor.UsageFileGroup `json:\"goCode,omitempty\"`\n\tOther       []editor.UsageFileGroup `json:\"other,omitempty\"`\n}",
          "doc": "RefsFindResult is the structured payload returned by refs_find.\n",
          "file": "pkg/editor/editormcp/refs.go",
          "line": 62,
          "members": [
            {
              "name": "Target",
              "anchor": "RefsFindResult.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Open",
              "anchor": "RefsFindResult.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalUsages",
              "anchor": "RefsFindResult.TotalUsages",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalFiles",
              "anchor": "RefsFindResult.TotalFiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scenes",
              "anchor": "RefsFindResult.Scenes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Variants",
              "anchor": "RefsFindResult.Variants",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DataTables",
              "anchor": "RefsFindResult.DataTables",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GoCode",
              "anchor": "RefsFindResult.GoCode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Other",
              "anchor": "RefsFindResult.Other",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Result",
          "anchor": "Result",
          "decl": "type Result struct {\n\t// Text is what the agent reads.\n\tText string\n\t// Structured is a JSON-encodable value with what Text says, or nil.\n\tStructured any\n\t// PNG is an image the tool returns, such as viewport_image's, or nil.\n\tPNG []byte\n\t// SaveWarning is populated by Server when the editor's automatic saving is currently failing.\n\tSaveWarning *SaveWarning\n}",
          "doc": "Result is what a tool returns: text for the agent, an optional JSON value with the same facts for programs, and an optional PNG.\n",
          "file": "pkg/editor/editormcp/server.go",
          "line": 136,
          "members": [
            {
              "name": "Text",
              "anchor": "Result.Text",
              "kind": "field",
              "doc": "Text is what the agent reads."
            },
            {
              "name": "Structured",
              "anchor": "Result.Structured",
              "kind": "field",
              "doc": "Structured is a JSON-encodable value with what Text says, or nil."
            },
            {
              "name": "PNG",
              "anchor": "Result.PNG",
              "kind": "field",
              "doc": "PNG is an image the tool returns, such as viewport_image's, or nil."
            },
            {
              "name": "SaveWarning",
              "anchor": "Result.SaveWarning",
              "kind": "field",
              "doc": "SaveWarning is populated by Server when the editor's automatic saving is currently failing."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewChangeSummary",
          "anchor": "ReviewChangeSummary",
          "decl": "type ReviewChangeSummary struct {\n\tID            string                  `json:\"id\"`\n\tFile          string                  `json:\"file\"`\n\tFileKind      editor.ReviewFileKind   `json:\"file_kind\"`\n\tKind          editor.ReviewChangeKind `json:\"kind\"`\n\tObject        string                  `json:\"object,omitempty\"`\n\tField         string                  `json:\"field,omitempty\"`\n\tTitle         string                  `json:\"title\"`\n\tDetail        string                  `json:\"detail\"`\n\tWhy           string                  `json:\"why,omitempty\"`\n\tSeen          bool                    `json:\"seen\"`\n\tReverted      bool                    `json:\"reverted\"`\n\tRedoneInRound int                     `json:\"redone_in_round,omitempty\"`\n}",
          "doc": "ReviewChangeSummary is one change entry reported by review_notes_get.\n",
          "file": "pkg/editor/editormcp/review.go",
          "line": 274,
          "members": [
            {
              "name": "ID",
              "anchor": "ReviewChangeSummary.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "ReviewChangeSummary.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FileKind",
              "anchor": "ReviewChangeSummary.FileKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ReviewChangeSummary.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Object",
              "anchor": "ReviewChangeSummary.Object",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "ReviewChangeSummary.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "ReviewChangeSummary.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "ReviewChangeSummary.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Why",
              "anchor": "ReviewChangeSummary.Why",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seen",
              "anchor": "ReviewChangeSummary.Seen",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "ReviewChangeSummary.Reverted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RedoneInRound",
              "anchor": "ReviewChangeSummary.RedoneInRound",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewNotesStatusResult",
          "anchor": "ReviewNotesStatusResult",
          "decl": "type ReviewNotesStatusResult struct {\n\tActive            bool                     `json:\"active\"`\n\tOpen              bool                     `json:\"open\"`\n\tPaused            bool                     `json:\"paused\"`\n\tRequest           string                   `json:\"request,omitempty\"`\n\tRound             int                      `json:\"round\"`\n\tViewRound         int                      `json:\"view_round\"`\n\tDraftNoteCount    int                      `json:\"draft_note_count\"`\n\tPendingNotesRound int                      `json:\"pending_notes_round,omitempty\"`\n\tSentNotes         []editor.ReviewAgentNote `json:\"sent_notes,omitempty\"`\n\tChanges           []ReviewChangeSummary    `json:\"changes,omitempty\"`\n}",
          "doc": "ReviewNotesStatusResult is the structured result returned by review_notes_get.\n",
          "file": "pkg/editor/editormcp/review.go",
          "line": 290,
          "members": [
            {
              "name": "Active",
              "anchor": "ReviewNotesStatusResult.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Open",
              "anchor": "ReviewNotesStatusResult.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Paused",
              "anchor": "ReviewNotesStatusResult.Paused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Request",
              "anchor": "ReviewNotesStatusResult.Request",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Round",
              "anchor": "ReviewNotesStatusResult.Round",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewRound",
              "anchor": "ReviewNotesStatusResult.ViewRound",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DraftNoteCount",
              "anchor": "ReviewNotesStatusResult.DraftNoteCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PendingNotesRound",
              "anchor": "ReviewNotesStatusResult.PendingNotesRound",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SentNotes",
              "anchor": "ReviewNotesStatusResult.SentNotes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changes",
              "anchor": "ReviewNotesStatusResult.Changes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReviewRedoResult",
          "anchor": "ReviewRedoResult",
          "decl": "type ReviewRedoResult struct {\n\tRound         int      `json:\"round\"`\n\tRedoneIDs     []string `json:\"redone_ids\"`\n\tRoundBanner   string   `json:\"round_banner\"`\n\tPreservedPrev bool     `json:\"preserved_previous_round\"`\n}",
          "doc": "ReviewRedoResult is the structured result returned by review_redo.\n",
          "file": "pkg/editor/editormcp/review.go",
          "line": 304,
          "members": [
            {
              "name": "Round",
              "anchor": "ReviewRedoResult.Round",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RedoneIDs",
              "anchor": "ReviewRedoResult.RedoneIDs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RoundBanner",
              "anchor": "ReviewRedoResult.RoundBanner",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreservedPrev",
              "anchor": "ReviewRedoResult.PreservedPrev",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RulesContext",
          "anchor": "RulesContext",
          "decl": "type RulesContext struct {\n\tExists    bool   `json:\"exists\"`\n\tFile      string `json:\"file\"`\n\tMarkdown  string `json:\"markdown,omitempty\"`\n\tRuleCount int    `json:\"ruleCount\"`\n}",
          "doc": "RulesContext is the AGENTS.md section of ProjectContext.\n",
          "file": "pkg/editor/editormcp/context.go",
          "line": 37,
          "members": [
            {
              "name": "Exists",
              "anchor": "RulesContext.Exists",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "RulesContext.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Markdown",
              "anchor": "RulesContext.Markdown",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RuleCount",
              "anchor": "RulesContext.RuleCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SaveWarning",
          "anchor": "SaveWarning",
          "decl": "type SaveWarning struct {\n\t// Message is the human-readable warning appended to tool text output.\n\tMessage string `json:\"message\"`\n\t// Error is the editor's current save error message.\n\tError string `json:\"error\"`\n\t// File is the scene or project path that failed to save, when known.\n\tFile string `json:\"file,omitempty\"`\n}",
          "doc": "SaveWarning is attached to tool results while the editor's automatic saving is failing,\nso the agent does not build on edits that are not on disk.\n",
          "file": "pkg/editor/editormcp/server.go",
          "line": 117,
          "members": [
            {
              "name": "Message",
              "anchor": "SaveWarning.Message",
              "kind": "field",
              "doc": "Message is the human-readable warning appended to tool text output."
            },
            {
              "name": "Error",
              "anchor": "SaveWarning.Error",
              "kind": "field",
              "doc": "Error is the editor's current save error message."
            },
            {
              "name": "File",
              "anchor": "SaveWarning.File",
              "kind": "field",
              "doc": "File is the scene or project path that failed to save, when known."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SelectedObject",
          "anchor": "SelectedObject",
          "decl": "type SelectedObject struct {\n\t// ID and Name are the object's ID and display name.\n\tID   string `json:\"id\"`\n\tName string `json:\"name,omitempty\"`\n\t// Layer is the layer the object is on.\n\tLayer string `json:\"layer\"`\n\t// X and Y are where the object sits in its parent's space.\n\tX float32 `json:\"x\"`\n\tY float32 `json:\"y\"`\n\t// Components are the names of its components, sorted.\n\tComponents []string `json:\"components,omitempty\"`\n\t// Line is the line of the open scene's YAML, as scene_read numbers it, that starts the object, or 0 when the scene does not hold it itself.\n\tLine int `json:\"line,omitempty\"`\n\t// YAML is the object as the open scene's YAML writes it, with line numbers as scene_read shows them.\n\tYAML string `json:\"yaml,omitempty\"`\n}",
          "doc": "SelectedObject is the selected object of a Selection.\n",
          "file": "pkg/editor/editormcp/tools.go",
          "line": 497,
          "members": [
            {
              "name": "ID",
              "anchor": "SelectedObject.ID",
              "kind": "field",
              "doc": "ID and Name are the object's ID and display name."
            },
            {
              "name": "Name",
              "anchor": "SelectedObject.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "SelectedObject.Layer",
              "kind": "field",
              "doc": "Layer is the layer the object is on."
            },
            {
              "name": "X",
              "anchor": "SelectedObject.X",
              "kind": "field",
              "doc": "X and Y are where the object sits in its parent's space."
            },
            {
              "name": "Y",
              "anchor": "SelectedObject.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Components",
              "anchor": "SelectedObject.Components",
              "kind": "field",
              "doc": "Components are the names of its components, sorted."
            },
            {
              "name": "Line",
              "anchor": "SelectedObject.Line",
              "kind": "field",
              "doc": "Line is the line of the open scene's YAML, as scene_read numbers it, that starts the object, or 0 when the scene does not hold it itself."
            },
            {
              "name": "YAML",
              "anchor": "SelectedObject.YAML",
              "kind": "field",
              "doc": "YAML is the object as the open scene's YAML writes it, with line numbers as scene_read shows them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Selection",
          "anchor": "Selection",
          "decl": "type Selection struct {\n\t// Scene is the open scene's path from the project root, or its file, or \"the open scene\" when it has none.\n\tScene string `json:\"scene\"`\n\t// ActiveLayer is the layer new objects go on.\n\tActiveLayer string `json:\"activeLayer\"`\n\t// Object is the selected object, or nil when none is selected.\n\tObject *SelectedObject `json:\"object,omitempty\"`\n\t// SelectedIDs lists every currently selected object ID when one or more objects are selected.\n\tSelectedIDs []string `json:\"selectedIds,omitempty\"`\n\t// File is the file selected in the file browser, by its path from the project root, or empty.\n\tFile string `json:\"file,omitempty\"`\n\t// Tool is the viewport's active tool, such as \"Select\".\n\tTool string `json:\"tool\"`\n\t// ViewMode is \"2D\" or \"3D\".\n\tViewMode string `json:\"viewMode\"`\n\t// Playing reports that the scene plays in the editor, when edits are refused.\n\tPlaying bool `json:\"playing,omitempty\"`\n\t// Language is the editor's active UI language (\"en\" or \"zh\"), so connected agents can reply in the same language.\n\tLanguage string `json:\"language,omitempty\"`\n}",
          "doc": "Selection is what selection_get reports.\n",
          "file": "pkg/editor/editormcp/tools.go",
          "line": 475,
          "members": [
            {
              "name": "Scene",
              "anchor": "Selection.Scene",
              "kind": "field",
              "doc": "Scene is the open scene's path from the project root, or its file, or \"the open scene\" when it has none."
            },
            {
              "name": "ActiveLayer",
              "anchor": "Selection.ActiveLayer",
              "kind": "field",
              "doc": "ActiveLayer is the layer new objects go on."
            },
            {
              "name": "Object",
              "anchor": "Selection.Object",
              "kind": "field",
              "doc": "Object is the selected object, or nil when none is selected."
            },
            {
              "name": "SelectedIDs",
              "anchor": "Selection.SelectedIDs",
              "kind": "field",
              "doc": "SelectedIDs lists every currently selected object ID when one or more objects are selected."
            },
            {
              "name": "File",
              "anchor": "Selection.File",
              "kind": "field",
              "doc": "File is the file selected in the file browser, by its path from the project root, or empty."
            },
            {
              "name": "Tool",
              "anchor": "Selection.Tool",
              "kind": "field",
              "doc": "Tool is the viewport's active tool, such as \"Select\"."
            },
            {
              "name": "ViewMode",
              "anchor": "Selection.ViewMode",
              "kind": "field",
              "doc": "ViewMode is \"2D\" or \"3D\"."
            },
            {
              "name": "Playing",
              "anchor": "Selection.Playing",
              "kind": "field",
              "doc": "Playing reports that the scene plays in the editor, when edits are refused."
            },
            {
              "name": "Language",
              "anchor": "Selection.Language",
              "kind": "field",
              "doc": "Language is the editor's active UI language (\"en\" or \"zh\"), so connected agents can reply in the same language."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Server",
          "anchor": "Server",
          "decl": "type Server struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Server is the editor's MCP server. It serves the project open in an Editor on the project's local endpoint (Open), or on any MCP transport (Connect), with a registry of tools that the editor's parts join (AddTool), and a stream of changes to the open scene and the selection as resource notifications.\n",
          "file": "pkg/editor/editormcp/server.go",
          "line": 160,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(ed *editor.Editor, opts Options) *Server",
              "doc": "New returns a server for ed with the built-in tools. Call it on the editor's goroutine, which is the one Options.Run hands functions to.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 219
            }
          ],
          "methods": [
            {
              "name": "AddTool",
              "anchor": "Server.AddTool",
              "recv": "*Server",
              "decl": "func (s *Server) AddTool(t Tool) error",
              "doc": "AddTool adds t to the server, which tells connected clients the tool list changed. It refuses a tool without a name or a handler, with an invalid input schema, or with a name already on the server.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 342
            },
            {
              "name": "ApplyPlaytestReview",
              "anchor": "Server.ApplyPlaytestReview",
              "recv": "*Server",
              "decl": "func (s *Server) ApplyPlaytestReview(id string) error",
              "doc": "ApplyPlaytestReview applies the pending playtest_define review with ID id to disk after verifying the file has not changed since the review was created.\n",
              "file": "pkg/editor/editormcp/playtest.go",
              "line": 627
            },
            {
              "name": "BeginStep",
              "anchor": "Server.BeginStep",
              "recv": "*Server",
              "decl": "func (s *Server) BeginStep(ctx context.Context, objectIDs []string, activity string) error",
              "doc": "BeginStep marks objectIDs as currently touched by the agent's active step with the pill label activity\nuntil EndStep is called or the next BeginStep moves the agent onto different objects. While a step is\nactive, manual edits to those objects are refused in the editor while MCP tool edits remain allowed.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 464
            },
            {
              "name": "BindSessionTask",
              "anchor": "Server.BindSessionTask",
              "recv": "*Server",
              "decl": "func (s *Server) BindSessionTask(ss *mcp.ServerSession, taskID string)",
              "doc": "BindSessionTask associates an existing MCP ServerSession with background task taskID.\n",
              "file": "pkg/editor/editormcp/holds.go",
              "line": 113
            },
            {
              "name": "Clients",
              "anchor": "Server.Clients",
              "recv": "*Server",
              "decl": "func (s *Server) Clients() []editor.AgentClientInfo",
              "doc": "Clients returns the MCP clients currently attached to the server.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 512
            },
            {
              "name": "Close",
              "anchor": "Server.Close",
              "recv": "*Server",
              "decl": "func (s *Server) Close() error",
              "doc": "Close stops serving: it closes the endpoint and every session, removes the socket file and stops following the editor. Call it on the editor's goroutine; the editor stays as it is.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 803
            },
            {
              "name": "CompleteTaskTurn",
              "anchor": "Server.CompleteTaskTurn",
              "recv": "*Server",
              "decl": "func (s *Server) CompleteTaskTurn(ctx context.Context, taskID, summary string) (editor.TaskReview, error)",
              "doc": "CompleteTaskTurn finishes taskID's active turn, produces its own separate editor.TaskReview\nfrom the edits recorded on its session, releases all object holds held by taskID (waking\nany parallel task waiting on those objects), and transitions the task to TaskReadyToReview.\nIf updating the editor fails, recorded changes and holds are preserved.\n",
              "file": "pkg/editor/editormcp/holds.go",
              "line": 582
            },
            {
              "name": "Connect",
              "anchor": "Server.Connect",
              "recv": "*Server",
              "decl": "func (s *Server) Connect(ctx context.Context, t mcp.Transport) (*mcp.ServerSession, error)",
              "doc": "Connect serves one MCP session on t until the client disconnects or the server closes, as Open does for each client of the endpoint and as a test or an in-process agent does with mcp.NewInMemoryTransports.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 502
            },
            {
              "name": "ConnectTask",
              "anchor": "Server.ConnectTask",
              "recv": "*Server",
              "decl": "func (s *Server) ConnectTask(ctx context.Context, t mcp.Transport, taskID string) (*mcp.ServerSession, error)",
              "doc": "ConnectTask serves one dedicated MCP session on t bound to background task taskID.\nEdits performed on this session automatically hold their target objects for the duration\nof the task's turn and release those holds when the session closes. Sessions are tracked\nby Server.wg and Server.Clients() alongside ordinary Connect sessions.\n",
              "file": "pkg/editor/editormcp/holds.go",
              "line": 102
            },
            {
              "name": "DismissPlaytestReview",
              "anchor": "Server.DismissPlaytestReview",
              "recv": "*Server",
              "decl": "func (s *Server) DismissPlaytestReview(id string) error",
              "doc": "DismissPlaytestReview marks the pending playtest_define review with ID id as dismissed without modifying disk.\n",
              "file": "pkg/editor/editormcp/playtest.go",
              "line": 656
            },
            {
              "name": "Editor",
              "anchor": "Server.Editor",
              "recv": "*Server",
              "decl": "func (s *Server) Editor(ctx context.Context, fn func(ed *editor.Editor) error) error",
              "doc": "Editor runs fn on the editor's goroutine with the editor and returns fn's error, waiting until fn has run. Edits fn makes through the editor's methods count as the agent's in the change stream. When ctx ends before fn starts, fn does not run and Editor returns ctx's error; once fn has started, Editor waits for it. A panic in fn comes back as an error.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 404
            },
            {
              "name": "EndStep",
              "anchor": "Server.EndStep",
              "recv": "*Server",
              "decl": "func (s *Server) EndStep(ctx context.Context) error",
              "doc": "EndStep releases any objects marked by BeginStep so manual edits to them are allowed again.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 473
            },
            {
              "name": "HeldObjects",
              "anchor": "Server.HeldObjects",
              "recv": "*Server",
              "decl": "func (s *Server) HeldObjects() map[string]string",
              "doc": "HeldObjects returns a snapshot map of objectID -> holding taskID.\n",
              "file": "pkg/editor/editormcp/holds.go",
              "line": 171
            },
            {
              "name": "LastPermissionDecision",
              "anchor": "Server.LastPermissionDecision",
              "recv": "*Server",
              "decl": "func (s *Server) LastPermissionDecision() (editor.PermissionEvaluation, bool)",
              "doc": "LastPermissionDecision returns a copy of the most recent permission evaluation recorded by the server for a mutating or running tool call.\n",
              "file": "pkg/editor/editormcp/permissions.go",
              "line": 86
            },
            {
              "name": "Open",
              "anchor": "Server.Open",
              "recv": "*Server",
              "decl": "func (s *Server) Open() error",
              "doc": "Open starts serving on the endpoint of the project open in the editor (Endpoint) and moves to the new project's endpoint whenever the editor opens another, until Close. Call it on the editor's goroutine. Without a project it serves nothing until one opens. It returns the error opening the endpoint, such as ErrInUse when another editor has the same project open, which Status reports too.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 679
            },
            {
              "name": "PlaytestReviews",
              "anchor": "Server.PlaytestReviews",
              "recv": "*Server",
              "decl": "func (s *Server) PlaytestReviews() []PlaytestReview",
              "doc": "PlaytestReviews returns all playtest.yaml metric reviews proposed via playtest_define on this server, in creation order.\n",
              "file": "pkg/editor/editormcp/playtest.go",
              "line": 616
            },
            {
              "name": "RegisterAutomation",
              "anchor": "Server.RegisterAutomation",
              "recv": "*Server",
              "decl": "func (s *Server) RegisterAutomation(cx *core.Scope) error",
              "doc": "RegisterAutomation registers the server's tools, as they are now, with github.com/nsgo-dev/nsgo/automation on cx, so that nsgo mcp offers them too while the editor runs under go tool nsgo dev -automation or go tool nsgo test, beside the tools that drive its windows. cx must be a scope on the editor's goroutine, the one Options.Run hands functions to; the tools are unregistered when cx is cleaned up. App tools run synchronously on that goroutine (nsgo-dev/nsgo#2342), so each call runs there from start to end: game_check holds the editor until the check ends. In ordinary and release builds automation registers nothing, and the server's own endpoint (Open) is how agents reach the editor.\n",
              "file": "pkg/editor/editormcp/automation.go",
              "line": 26
            },
            {
              "name": "ReleaseTaskHolds",
              "anchor": "Server.ReleaseTaskHolds",
              "recv": "*Server",
              "decl": "func (s *Server) ReleaseTaskHolds(taskID string)",
              "doc": "ReleaseTaskHolds releases every object hold owned by taskID, clears its buffered turn\nsnapshots/changes, and wakes waiting parallel tasks.\n",
              "file": "pkg/editor/editormcp/holds.go",
              "line": 184
            },
            {
              "name": "RemoveTool",
              "anchor": "Server.RemoveTool",
              "recv": "*Server",
              "decl": "func (s *Server) RemoveTool(name string)",
              "doc": "RemoveTool removes the tool named name, if the server has it, which tells connected clients the tool list changed.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 382
            },
            {
              "name": "SetHoldBlockedHook",
              "anchor": "Server.SetHoldBlockedHook",
              "recv": "*Server",
              "decl": "func (s *Server) SetHoldBlockedHook(fn func(taskID, objectID, holderTaskID string))",
              "doc": "SetHoldBlockedHook registers an optional deterministic callback fired immediately after\na parallel task enters the holding state waiting on an object held by another task.\n",
              "file": "pkg/editor/editormcp/holds.go",
              "line": 147
            },
            {
              "name": "SetHoldWaitTimeout",
              "anchor": "Server.SetHoldWaitTimeout",
              "recv": "*Server",
              "decl": "func (s *Server) SetHoldWaitTimeout(d time.Duration)",
              "doc": "SetHoldWaitTimeout configures how long acquireObjectHolds waits on a held object before\nreturning an *EditError timeout. Non-positive values reset to defaultHoldWaitTimeout.\n",
              "file": "pkg/editor/editormcp/holds.go",
              "line": 158
            },
            {
              "name": "Status",
              "anchor": "Server.Status",
              "recv": "*Server",
              "decl": "func (s *Server) Status() (string, error)",
              "doc": "Status returns the endpoint the server listens on, empty when it serves none, and why it does not when opening it failed.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 687
            },
            {
              "name": "Tools",
              "anchor": "Server.Tools",
              "recv": "*Server",
              "decl": "func (s *Server) Tools() []Tool",
              "doc": "Tools returns the server's tools sorted by name.\n",
              "file": "pkg/editor/editormcp/server.go",
              "line": 393
            }
          ]
        },
        {
          "name": "SketchReadResult",
          "anchor": "SketchReadResult",
          "decl": "type SketchReadResult struct {\n\tScene        string                `json:\"scene\"`\n\tActive       bool                  `json:\"active\"`\n\tHoldState    string                `json:\"holdState\"`\n\tHoldActive   bool                  `json:\"holdActive\"`\n\tChipLabel    string                `json:\"chipLabel,omitempty\"`\n\tPrompt       string                `json:\"prompt,omitempty\"`\n\tSelectedMark int                   `json:\"selectedMark,omitempty\"`\n\tView         editor.View2D         `json:\"view\"`\n\tMarks        []editor.SketchMark   `json:\"marks\"`\n\tReading      *editor.SketchReading `json:\"reading,omitempty\"`\n\tWidth        int                   `json:\"width,omitempty\"`\n\tHeight       int                   `json:\"height,omitempty\"`\n}",
          "doc": "SketchReadResult is the structured payload returned by sketch_read.\n",
          "file": "pkg/editor/editormcp/sketch.go",
          "line": 80,
          "members": [
            {
              "name": "Scene",
              "anchor": "SketchReadResult.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Active",
              "anchor": "SketchReadResult.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HoldState",
              "anchor": "SketchReadResult.HoldState",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HoldActive",
              "anchor": "SketchReadResult.HoldActive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChipLabel",
              "anchor": "SketchReadResult.ChipLabel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prompt",
              "anchor": "SketchReadResult.Prompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SelectedMark",
              "anchor": "SketchReadResult.SelectedMark",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "View",
              "anchor": "SketchReadResult.View",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Marks",
              "anchor": "SketchReadResult.Marks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reading",
              "anchor": "SketchReadResult.Reading",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "SketchReadResult.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "SketchReadResult.Height",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SketchReadingResult",
          "anchor": "SketchReadingResult",
          "decl": "type SketchReadingResult struct {\n\tScene      string                `json:\"scene\"`\n\tHoldState  string                `json:\"holdState\"`\n\tHoldActive bool                  `json:\"holdActive\"`\n\tReading    *editor.SketchReading `json:\"reading\"`\n}",
          "doc": "SketchReadingResult is the structured payload returned by sketch_reading.\n",
          "file": "pkg/editor/editormcp/sketch.go",
          "line": 176,
          "members": [
            {
              "name": "Scene",
              "anchor": "SketchReadingResult.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HoldState",
              "anchor": "SketchReadingResult.HoldState",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HoldActive",
              "anchor": "SketchReadingResult.HoldActive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reading",
              "anchor": "SketchReadingResult.Reading",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "StatesTestResult",
          "anchor": "StatesTestResult",
          "decl": "type StatesTestResult struct {\n\tFile            string                     `json:\"file,omitempty\"`\n\tSummary         string                     `json:\"summary\"`\n\tDurationSeconds float64                    `json:\"durationSeconds\"`\n\tSteps           int                        `json:\"steps\"`\n\tTrace           []string                   `json:\"trace\"`\n\tTransitions     []animclip.TransitionEvent `json:\"transitions,omitempty\"`\n\tVisitedStates   []string                   `json:\"visitedStates\"`\n\tUnvisitedStates []string                   `json:\"unvisitedStates,omitempty\"`\n\tStuckStates     []string                   `json:\"stuckStates,omitempty\"`\n}",
          "doc": "StatesTestResult is what states_test reports.\n",
          "file": "pkg/editor/editormcp/states.go",
          "line": 76,
          "members": [
            {
              "name": "File",
              "anchor": "StatesTestResult.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Summary",
              "anchor": "StatesTestResult.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DurationSeconds",
              "anchor": "StatesTestResult.DurationSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "StatesTestResult.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Trace",
              "anchor": "StatesTestResult.Trace",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transitions",
              "anchor": "StatesTestResult.Transitions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VisitedStates",
              "anchor": "StatesTestResult.VisitedStates",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UnvisitedStates",
              "anchor": "StatesTestResult.UnvisitedStates",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StuckStates",
              "anchor": "StatesTestResult.StuckStates",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "StatesWriteResult",
          "anchor": "StatesWriteResult",
          "decl": "type StatesWriteResult struct {\n\tFile        string `json:\"file\"`\n\tEntry       string `json:\"entry\"`\n\tStates      int    `json:\"states\"`\n\tTransitions int    `json:\"transitions\"`\n\tOpened      bool   `json:\"opened\"`\n}",
          "doc": "StatesWriteResult is what states_write reports.\n",
          "file": "pkg/editor/editormcp/states.go",
          "line": 67,
          "members": [
            {
              "name": "File",
              "anchor": "StatesWriteResult.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Entry",
              "anchor": "StatesWriteResult.Entry",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "States",
              "anchor": "StatesWriteResult.States",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transitions",
              "anchor": "StatesWriteResult.Transitions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Opened",
              "anchor": "StatesWriteResult.Opened",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TasksListResult",
          "anchor": "TasksListResult",
          "decl": "type TasksListResult struct {\n\tSummary editor.TaskSummary `json:\"summary\"`\n\tTasks   []editor.AgentTask `json:\"tasks\"`\n\tHolds   map[string]string  `json:\"holds,omitempty\"`\n}",
          "doc": "TasksListResult is the structured reply returned by tasks_list.\n",
          "file": "pkg/editor/editormcp/tasks.go",
          "line": 39,
          "members": [
            {
              "name": "Summary",
              "anchor": "TasksListResult.Summary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tasks",
              "anchor": "TasksListResult.Tasks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Holds",
              "anchor": "TasksListResult.Holds",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileReviewRegionView",
          "anchor": "TileReviewRegionView",
          "decl": "type TileReviewRegionView struct {\n\tIndex     int             `json:\"index\"`\n\tID        string          `json:\"id\"`\n\tKind      string          `json:\"kind\"`\n\tSign      string          `json:\"sign\"`\n\tTitle     string          `json:\"title\"`\n\tDetail    string          `json:\"detail\"`\n\tBounds    editor.TileRect `json:\"bounds\"`\n\tCellCount int             `json:\"cellCount\"`\n\tReverted  bool            `json:\"reverted\"`\n}",
          "doc": "TileReviewRegionView summarizes one region returned by tile_review_* MCP tools.\n",
          "file": "pkg/editor/editormcp/tiles.go",
          "line": 348,
          "members": [
            {
              "name": "Index",
              "anchor": "TileReviewRegionView.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "TileReviewRegionView.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "TileReviewRegionView.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sign",
              "anchor": "TileReviewRegionView.Sign",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "TileReviewRegionView.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detail",
              "anchor": "TileReviewRegionView.Detail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "TileReviewRegionView.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CellCount",
              "anchor": "TileReviewRegionView.CellCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reverted",
              "anchor": "TileReviewRegionView.Reverted",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileReviewStatusResult",
          "anchor": "TileReviewStatusResult",
          "decl": "type TileReviewStatusResult struct {\n\tOpen          bool                    `json:\"open\"`\n\tLayer         string                  `json:\"layer,omitempty\"`\n\tTileLayer     string                  `json:\"tileLayer,omitempty\"`\n\tShowingBefore bool                    `json:\"showingBefore\"`\n\tPeekingBefore bool                    `json:\"peekingBefore\"`\n\tFocusedRegion string                  `json:\"focusedRegion,omitempty\"`\n\tKeptRegions   int                     `json:\"keptRegions\"`\n\tTotalRegions  int                     `json:\"totalRegions\"`\n\tTotalCells    int                     `json:\"totalCells\"`\n\tSteps         []editor.TileReviewStep `json:\"steps,omitempty\"`\n\tRegions       []TileReviewRegionView  `json:\"regions,omitempty\"`\n}",
          "doc": "TileReviewStatusResult is what tile_review_status, tile_review_revert_region, and tile_review_restore_region return.\n",
          "file": "pkg/editor/editormcp/tiles.go",
          "line": 361,
          "members": [
            {
              "name": "Open",
              "anchor": "TileReviewStatusResult.Open",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "TileReviewStatusResult.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayer",
              "anchor": "TileReviewStatusResult.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ShowingBefore",
              "anchor": "TileReviewStatusResult.ShowingBefore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PeekingBefore",
              "anchor": "TileReviewStatusResult.PeekingBefore",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusedRegion",
              "anchor": "TileReviewStatusResult.FocusedRegion",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeptRegions",
              "anchor": "TileReviewStatusResult.KeptRegions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalRegions",
              "anchor": "TileReviewStatusResult.TotalRegions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalCells",
              "anchor": "TileReviewStatusResult.TotalCells",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "TileReviewStatusResult.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Regions",
              "anchor": "TileReviewStatusResult.Regions",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TilesetAnimFrameView",
          "anchor": "TilesetAnimFrameView",
          "decl": "type TilesetAnimFrameView struct {\n\tTile     int    `json:\"tile\"`\n\tDuration string `json:\"duration\"`\n}",
          "doc": "TilesetAnimFrameView is one animation frame in JSON form.\n",
          "file": "pkg/editor/editormcp/tileset.go",
          "line": 129,
          "members": [
            {
              "name": "Tile",
              "anchor": "TilesetAnimFrameView.Tile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "TilesetAnimFrameView.Duration",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TilesetEditResult",
          "anchor": "TilesetEditResult",
          "decl": "type TilesetEditResult struct {\n\tFile    string `json:\"file\"`\n\tApplied int    `json:\"applied\"`\n\tSaved   bool   `json:\"saved\"`\n\tUnsaved bool   `json:\"unsaved\"`\n\tTiles   int    `json:\"tiles\"`\n}",
          "doc": "TilesetEditResult is the structured result of tileset_edit.\n",
          "file": "pkg/editor/editormcp/tileset.go",
          "line": 135,
          "members": [
            {
              "name": "File",
              "anchor": "TilesetEditResult.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Applied",
              "anchor": "TilesetEditResult.Applied",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Saved",
              "anchor": "TilesetEditResult.Saved",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unsaved",
              "anchor": "TilesetEditResult.Unsaved",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tiles",
              "anchor": "TilesetEditResult.Tiles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TilesetReadResult",
          "anchor": "TilesetReadResult",
          "decl": "type TilesetReadResult struct {\n\tFile       string               `json:\"file\"`\n\tSource     string               `json:\"source\"`\n\tUnsaved    bool                 `json:\"unsaved\"`\n\tName       string               `json:\"name,omitempty\"`\n\tTileWidth  int                  `json:\"tileWidth\"`\n\tTileHeight int                  `json:\"tileHeight\"`\n\tImage      string               `json:\"image,omitempty\"`\n\tAtlas      string               `json:\"atlas,omitempty\"`\n\tTileCount  int                  `json:\"tileCount\"`\n\tTerrains   []tilemap.TerrainDoc `json:\"terrains,omitempty\"`\n\tTiles      []TilesetTileView    `json:\"tiles,omitempty\"`\n\tYAML       string               `json:\"yaml\"`\n}",
          "doc": "TilesetReadResult is the structured result of tileset_read.\n",
          "file": "pkg/editor/editormcp/tileset.go",
          "line": 98,
          "members": [
            {
              "name": "File",
              "anchor": "TilesetReadResult.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "TilesetReadResult.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unsaved",
              "anchor": "TilesetReadResult.Unsaved",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "TilesetReadResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileWidth",
              "anchor": "TilesetReadResult.TileWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileHeight",
              "anchor": "TilesetReadResult.TileHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Image",
              "anchor": "TilesetReadResult.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Atlas",
              "anchor": "TilesetReadResult.Atlas",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileCount",
              "anchor": "TilesetReadResult.TileCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Terrains",
              "anchor": "TilesetReadResult.Terrains",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tiles",
              "anchor": "TilesetReadResult.Tiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAML",
              "anchor": "TilesetReadResult.YAML",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TilesetTileView",
          "anchor": "TilesetTileView",
          "decl": "type TilesetTileView struct {\n\tID         int                    `json:\"id\"`\n\tName       string                 `json:\"name,omitempty\"`\n\tSolid      bool                   `json:\"solid,omitempty\"`\n\tOneWay     bool                   `json:\"oneWay,omitempty\"`\n\tFlags      tilemap.TileFlags      `json:\"flags,omitempty\"`\n\tWeight     *float64               `json:\"weight,omitempty\"`\n\tProperties map[string]any         `json:\"properties,omitempty\"`\n\tShapes     []tilemap.TileShapeDoc `json:\"shapes,omitempty\"`\n\tAnimation  []TilesetAnimFrameView `json:\"animation,omitempty\"`\n\tTerrain    string                 `json:\"terrain,omitempty\"`\n\tNeighbors  []string               `json:\"neighbors,omitempty\"`\n}",
          "doc": "TilesetTileView is one tile's fields returned by tileset_read.\n",
          "file": "pkg/editor/editormcp/tileset.go",
          "line": 114,
          "members": [
            {
              "name": "ID",
              "anchor": "TilesetTileView.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "TilesetTileView.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Solid",
              "anchor": "TilesetTileView.Solid",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OneWay",
              "anchor": "TilesetTileView.OneWay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "TilesetTileView.Flags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight",
              "anchor": "TilesetTileView.Weight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "TilesetTileView.Properties",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shapes",
              "anchor": "TilesetTileView.Shapes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Animation",
              "anchor": "TilesetTileView.Animation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Terrain",
              "anchor": "TilesetTileView.Terrain",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Neighbors",
              "anchor": "TilesetTileView.Neighbors",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Tool",
          "anchor": "Tool",
          "decl": "type Tool struct {\n\t// Name is the tool's MCP name, such as scene_read: letters, digits, '_', '-' and '.', unique on the server.\n\tName string\n\t// Title is a short human-readable name, such as \"Read a file\".\n\tTitle string\n\t// Description says what the tool does, for the agent.\n\tDescription string\n\t// InputSchema is the JSON Schema of the tool's arguments, an object schema; nil takes any object.\n\tInputSchema json.RawMessage\n\t// Action is what the tool does to the project. It must be set to a valid Action; AddTool refuses tools with an empty or unrecognized Action so no tool can silently bypass permission enforcement.\n\tAction Action\n\t// Target optionally derives the permission action and project-relative file path or run target from args and ed before permission rules are evaluated. When nil, the server infers the target from common argument fields (file, path, from, command) or the open scene.\n\tTarget func(args json.RawMessage, ed *editor.Editor) (editor.PermissionAction, string)\n\n\t// DefaultOff marks a tool that starts switched off in Settings › Tools (such as game_delete_file)\n\t// and is not offered to connected agents until the person explicitly turns it on.\n\tDefaultOff bool\n\t// Destructive marks a tool that removes files or data so MCP annotations reflect it accurately.\n\tDestructive bool\n\t// Handler runs the tool on a goroutine of the server, never the editor's: it reaches the editor through Call.Editor, which runs a function on the editor's goroutine, so it may wait for work the editor does elsewhere, such as a project check, without stopping the editor.\n\tHandler func(ctx context.Context, c *Call) (*Result, error)\n\t// contains filtered or unexported fields\n}",
          "doc": "Tool is one tool of the editor's server: the five this package adds (scene_read, scene_edit, selection_get, viewport_image and game_check) and those other parts of the editor add with Server.AddTool, so that every editor action with a button or a shortcut has a tool.\n",
          "file": "pkg/editor/editormcp/server.go",
          "line": 66,
          "members": [
            {
              "name": "Name",
              "anchor": "Tool.Name",
              "kind": "field",
              "doc": "Name is the tool's MCP name, such as scene_read: letters, digits, '_', '-' and '.', unique on the server."
            },
            {
              "name": "Title",
              "anchor": "Tool.Title",
              "kind": "field",
              "doc": "Title is a short human-readable name, such as \"Read a file\"."
            },
            {
              "name": "Description",
              "anchor": "Tool.Description",
              "kind": "field",
              "doc": "Description says what the tool does, for the agent."
            },
            {
              "name": "InputSchema",
              "anchor": "Tool.InputSchema",
              "kind": "field",
              "doc": "InputSchema is the JSON Schema of the tool's arguments, an object schema; nil takes any object."
            },
            {
              "name": "Action",
              "anchor": "Tool.Action",
              "kind": "field",
              "doc": "Action is what the tool does to the project. It must be set to a valid Action; AddTool refuses tools with an empty or unrecognized Action so no tool can silently bypass permission enforcement."
            },
            {
              "name": "Target",
              "anchor": "Tool.Target",
              "kind": "field",
              "doc": "Target optionally derives the permission action and project-relative file path or run target from args and ed before permission rules are evaluated. When nil, the server infers the target from common argument fields (file, path, from, command) or the open scene."
            },
            {
              "name": "DefaultOff",
              "anchor": "Tool.DefaultOff",
              "kind": "field",
              "doc": "DefaultOff marks a tool that starts switched off in Settings › Tools (such as game_delete_file)\nand is not offered to connected agents until the person explicitly turns it on."
            },
            {
              "name": "Destructive",
              "anchor": "Tool.Destructive",
              "kind": "field",
              "doc": "Destructive marks a tool that removes files or data so MCP annotations reflect it accurately."
            },
            {
              "name": "Handler",
              "anchor": "Tool.Handler",
              "kind": "field",
              "doc": "Handler runs the tool on a goroutine of the server, never the editor's: it reaches the editor through Call.Editor, which runs a function on the editor's goroutine, so it may wait for work the editor does elsewhere, such as a project check, without stopping the editor."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TurnStatus",
          "anchor": "TurnStatus",
          "decl": "type TurnStatus struct {\n\tHasTurn bool                      `json:\"hasTurn\"`\n\tTurn    *editor.AgentTurnSnapshot `json:\"turn,omitempty\"`\n}",
          "doc": "TurnStatus is the read-only structured result returned by turn_start, turn_end, and turn_status.\n",
          "file": "pkg/editor/editormcp/turn.go",
          "line": 46,
          "members": [
            {
              "name": "HasTurn",
              "anchor": "TurnStatus.HasTurn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Turn",
              "anchor": "TurnStatus.Turn",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ViewportImage",
          "anchor": "ViewportImage",
          "decl": "type ViewportImage struct {\n\t// Width and Height are the PNG's size in pixels.\n\tWidth  int `json:\"width\"`\n\tHeight int `json:\"height\"`\n\t// View is the editor's 2D view: the world point at the center, the zoom and the rotation.\n\tView editor.View2D `json:\"view\"`\n\t// ViewMode is \"2D\" or \"3D\".\n\tViewMode string `json:\"viewMode\"`\n\t// ViewportOverlays lists the viewport overlay names drawn into this image.\n\tViewportOverlays []string `json:\"viewportOverlays,omitempty\"`\n\t// SkippedImages counts the images left out because they are not loaded in memory.\n\tSkippedImages int `json:\"skippedImages,omitempty\"`\n\t// SkippedOps counts the drawing operations left out by kind.\n\tSkippedOps map[string]int `json:\"skippedOps,omitempty\"`\n}",
          "doc": "ViewportImage is what viewport_image reports beside its PNG.\n",
          "file": "pkg/editor/editormcp/tools.go",
          "line": 638,
          "members": [
            {
              "name": "Width",
              "anchor": "ViewportImage.Width",
              "kind": "field",
              "doc": "Width and Height are the PNG's size in pixels."
            },
            {
              "name": "Height",
              "anchor": "ViewportImage.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "View",
              "anchor": "ViewportImage.View",
              "kind": "field",
              "doc": "View is the editor's 2D view: the world point at the center, the zoom and the rotation."
            },
            {
              "name": "ViewMode",
              "anchor": "ViewportImage.ViewMode",
              "kind": "field",
              "doc": "ViewMode is \"2D\" or \"3D\"."
            },
            {
              "name": "ViewportOverlays",
              "anchor": "ViewportImage.ViewportOverlays",
              "kind": "field",
              "doc": "ViewportOverlays lists the viewport overlay names drawn into this image."
            },
            {
              "name": "SkippedImages",
              "anchor": "ViewportImage.SkippedImages",
              "kind": "field",
              "doc": "SkippedImages counts the images left out because they are not loaded in memory."
            },
            {
              "name": "SkippedOps",
              "anchor": "ViewportImage.SkippedOps",
              "kind": "field",
              "doc": "SkippedOps counts the drawing operations left out by kind."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "YouOnlyError",
          "anchor": "YouOnlyError",
          "decl": "type YouOnlyError struct {\n\tTool   string               `json:\"tool\"`\n\tDomain editor.YouOnlyDomain `json:\"domain\"`\n\tPath   string               `json:\"path\"`\n\tReason string               `json:\"reason\"`\n\tHint   string               `json:\"hint\"`\n}",
          "doc": "YouOnlyError is returned when an agent attempts to write, rename, or delete a You-only settings file\n(permissions, tools, models, usage, or per-user editor settings) through any MCP tool.\n",
          "file": "pkg/editor/editormcp/you_only.go",
          "line": 24,
          "members": [
            {
              "name": "Tool",
              "anchor": "YouOnlyError.Tool",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Domain",
              "anchor": "YouOnlyError.Domain",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "YouOnlyError.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reason",
              "anchor": "YouOnlyError.Reason",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hint",
              "anchor": "YouOnlyError.Hint",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "YouOnlyError.Error",
              "recv": "*YouOnlyError",
              "decl": "func (e *YouOnlyError) Error() string",
              "doc": "",
              "file": "pkg/editor/editormcp/you_only.go",
              "line": 32
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/effects",
      "name": "effects",
      "dir": "pkg/effects",
      "page": "pkg/effects",
      "synopsis": "Package effects draws a game's frame through a chain of shader passes, in order, with uniforms animated on the platform's frame clock.",
      "doc": "Package effects draws a game's frame through a chain of shader passes, in order, with uniforms animated on the platform's frame clock.\n\nAn Effect is a fragment program in Kage, Go's syntax for shaders (core.CompileShader), that defines\n\n\tfunc Effect(pos vec2) vec4\n\nthe premultiplied color of the frame's point pos, in the frame's pixels from its top left corner, and reads the pass before it with Input(pos) and the frame's size in pixels with InputSize(). The first effect's Input reads the frame itself: the pixel under pos, transparent outside the frame. An effect that reads an extra texture, such as a palette, calls Texture(pos) and TextureSize(), bound to image1 through image3 in the chain's order (at most 3 textured effects per chain). Exported variables at the package level are the effect's uniforms.\n\nCompile fuses a chain's effects into one program, in which each effect's Input calls the effect before it, so the passes run in one draw with no texture between them: a pass that reads its input at several points runs the passes before it at each of them. View draws a frame, usually a pixel buffer the game writes (core.ImageSource.Pixels), through a chain.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultShakeFrequency",
              "anchor": "DefaultShakeFrequency"
            }
          ],
          "decl": "const DefaultShakeFrequency = 12",
          "doc": "DefaultShakeFrequency is a Shake's Frequency when its config leaves it 0.\n",
          "file": "pkg/effects/shake.go",
          "line": 70
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Clock",
          "anchor": "Clock",
          "decl": "func Clock(cx *core.Scope, period time.Duration) *core.AnimatedValue",
          "doc": "Clock returns a value that counts seconds on the platform's frame clock, from 0 up to period and from 0 again, for as long as cx's owner lasts: a uniform set to it animates an effect with no work per frame. A period of 0 or less is an hour. Choose a period after which the effect looks as it started, such as a whole number of its cycles, as the value jumps back to 0.\n",
          "file": "pkg/effects/view.go",
          "line": 85
        },
        {
          "name": "Float",
          "anchor": "Float",
          "decl": "func Float(u core.Uniforms, name string) float64",
          "doc": "Float returns the number uniform u sets name to, for an effect's Reference: any of Go's integer or float kinds, a bool as 0 or 1, or a core.Constant. It is 0 when u leaves name out or sets it to anything else, such as a vector, which a Reference reads from u itself.\n",
          "file": "pkg/effects/reference.go",
          "line": 197
        },
        {
          "name": "PaletteImage",
          "anchor": "PaletteImage",
          "decl": "func PaletteImage(rows ...[]core.Color) *image.RGBA",
          "doc": "PaletteImage builds a premultiplied RGBA palette texture from rows of colors, one row per palette. Shorter rows are padded on the right with transparent pixels. Returns an empty image when rows has no colors.\n",
          "file": "pkg/effects/palette.go",
          "line": 167
        },
        {
          "name": "ShakeOffset",
          "anchor": "ShakeOffset",
          "decl": "func ShakeOffset(amplitude, seconds, frequency float64, phase [4]float64) (x, y float64)",
          "doc": "ShakeOffset returns how far ShakeEffect moves the frame, in its pixels, at the uniforms given: (0, 0) when the offset is not finite or is 1e30 pixels or more along either direction, as on the GPU. It reads plain numbers, so it serves a ShakeEffect a game drives by hand; a Shake's uniforms follow animated nodes whose values only the platform knows.\n",
          "file": "pkg/effects/shake.go",
          "line": 59
        }
      ],
      "types": [
        {
          "name": "Chain",
          "anchor": "Chain",
          "decl": "type Chain struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Chain is effects compiled into one program, which View draws a frame through.\n",
          "file": "pkg/effects/chain.go",
          "line": 39,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Compile",
              "anchor": "Compile",
              "decl": "func Compile(effects ...Effect) (*Chain, error)",
              "doc": "Compile compiles effects into a chain that draws them in order, the first over the frame and each next over the one before it. No effects make a chain that draws the frame as it is.\n\nEach effect's source is checked and compiled on its own first, so an error names the effect and gives the line and column in its source.\n",
              "file": "pkg/effects/chain.go",
              "line": 72
            },
            {
              "name": "MustCompile",
              "anchor": "MustCompile",
              "decl": "func MustCompile(effects ...Effect) *Chain",
              "doc": "MustCompile is Compile for effects that are part of the program: it panics when they do not compile.\n",
              "file": "pkg/effects/chain.go",
              "line": 122
            }
          ],
          "methods": [
            {
              "name": "HasTexture",
              "anchor": "Chain.HasTexture",
              "recv": "*Chain",
              "decl": "func (c *Chain) HasTexture(i int) bool",
              "doc": "HasTexture reports whether effect i of the chain reads an extra texture through Texture or TextureSize.\n",
              "file": "pkg/effects/chain.go",
              "line": 172
            },
            {
              "name": "HasUniform",
              "anchor": "Chain.HasUniform",
              "recv": "*Chain",
              "decl": "func (c *Chain) HasUniform(i int, name string) bool",
              "doc": "HasUniform reports whether effect i of the chain declares a uniform named name.\n",
              "file": "pkg/effects/chain.go",
              "line": 167
            },
            {
              "name": "Images",
              "anchor": "Chain.Images",
              "recv": "*Chain",
              "decl": "func (c *Chain) Images(frame core.ImageSource, perEffect []core.ImageSource) []core.ImageSource",
              "doc": "Images returns the shader's Images slice for frame (image0) and each textured effect's image (image1 through image3 in chain order). A non-zero entry in perEffect[i] replaces effect i's own Texture. It panics when perEffect has more entries than the chain has effects, or when a non-zero entry targets an effect that reads no texture.\n",
              "file": "pkg/effects/chain.go",
              "line": 177
            },
            {
              "name": "Len",
              "anchor": "Chain.Len",
              "recv": "*Chain",
              "decl": "func (c *Chain) Len() int",
              "doc": "Len returns how many effects the chain draws.\n",
              "file": "pkg/effects/chain.go",
              "line": 158
            },
            {
              "name": "Program",
              "anchor": "Chain.Program",
              "recv": "*Chain",
              "decl": "func (c *Chain) Program() *core.ShaderProgram",
              "doc": "Program returns the chain's compiled program, which reads the frame as image0, any textured effects' images as image1 through image3, and the effects' uniforms under the names Uniforms gives them.\n",
              "file": "pkg/effects/chain.go",
              "line": 164
            },
            {
              "name": "Reference",
              "anchor": "Chain.Reference",
              "recv": "*Chain",
              "decl": "func (c *Chain) Reference(frame *image.RGBA, width, height int, perEffect []core.Uniforms) (*image.RGBA, error)",
              "doc": "Reference draws frame through the chain on the CPU into a picture of width by height pixels, with each effect's Reference, as View draws it on the GPU into a box of that many pixels with the same uniforms: each pixel's center is mapped onto the frame and drawn by the last effect. perEffect[i] is effect i's uniforms, as Chain.Uniforms and View.Uniforms take them. It is the picture a test compares a chain's output with, and a screenshot of it where no GPU draws. Colors are clamped to 0 to 1 and rounded to 8 bits.\n\nIt returns an error when an effect has no Reference, when perEffect names a uniform an effect does not declare or has more entries than the chain has effects, when a textured effect's Texture has neither Pixels nor Data, and for a uniform set to an AnimatedNode other than a core.Constant, whose value only the platform knows.\n",
              "file": "pkg/effects/reference.go",
              "line": 44
            },
            {
              "name": "ReferenceWithTextures",
              "anchor": "Chain.ReferenceWithTextures",
              "recv": "*Chain",
              "decl": "func (c *Chain) ReferenceWithTextures(frame *image.RGBA, width, height int, perEffect []core.Uniforms, textures []core.ImageSource) (*image.RGBA, error)",
              "doc": "ReferenceWithTextures is Reference with per-effect texture overrides, as View.Textures and Chain.Images take them: a non-zero entry in textures[i] replaces effect i's own Texture.\n",
              "file": "pkg/effects/reference.go",
              "line": 49
            },
            {
              "name": "Source",
              "anchor": "Chain.Source",
              "recv": "*Chain",
              "decl": "func (c *Chain) Source() string",
              "doc": "Source returns the Kage program the chain's effects compile into, which is the same for the same effects.\n",
              "file": "pkg/effects/chain.go",
              "line": 161
            },
            {
              "name": "Uniforms",
              "anchor": "Chain.Uniforms",
              "recv": "*Chain",
              "decl": "func (c *Chain) Uniforms(perEffect []core.Uniforms) core.Uniforms",
              "doc": "Uniforms returns the program's uniforms from each effect's own, in the chain's order: perEffect[i] sets effect i's uniforms by the names its source declares. A value is what core.Uniforms takes, an AnimatedNode among them, which follows the platform's frame clock. It panics when an effect has no uniform of a name, or when perEffect has more entries than the chain has effects.\n",
              "file": "pkg/effects/chain.go",
              "line": 207
            }
          ]
        },
        {
          "name": "Effect",
          "anchor": "Effect",
          "decl": "type Effect struct {\n\t// Name names the effect in errors; the effect's index names it when empty.\n\tName string\n\t// Source is the effect's Kage program, as the package documentation describes it.\n\tSource string\n\t// Reference draws the effect on the CPU for Chain.Reference: the premultiplied color, red, green, blue and alpha from 0 to 1, of the frame's point (x, y) given the pass before it and the effect's uniforms, by the names its source declares, as Chain.Reference is given them (Float reads a number). A uniform left out is 0, as on the GPU. It is nil for an effect that has none, which a chain draws on the GPU only.\n\tReference func(in Input, u core.Uniforms, x, y float64) [4]float64\n\t// Texture is the effect's extra texture, read in its source with Texture(pos) and TextureSize(), and in its Reference with Input.TextureAt and Input.TextureSize. View binds it automatically and may replace it via View.Textures or View.TexturesFunc.\n\tTexture core.ImageSource\n}",
          "doc": "Effect is one pass of a chain.\n",
          "file": "pkg/effects/chain.go",
          "line": 27,
          "members": [
            {
              "name": "Name",
              "anchor": "Effect.Name",
              "kind": "field",
              "doc": "Name names the effect in errors; the effect's index names it when empty."
            },
            {
              "name": "Source",
              "anchor": "Effect.Source",
              "kind": "field",
              "doc": "Source is the effect's Kage program, as the package documentation describes it."
            },
            {
              "name": "Reference",
              "anchor": "Effect.Reference",
              "kind": "field",
              "doc": "Reference draws the effect on the CPU for Chain.Reference: the premultiplied color, red, green, blue and alpha from 0 to 1, of the frame's point (x, y) given the pass before it and the effect's uniforms, by the names its source declares, as Chain.Reference is given them (Float reads a number). A uniform left out is 0, as on the GPU. It is nil for an effect that has none, which a chain draws on the GPU only."
            },
            {
              "name": "Texture",
              "anchor": "Effect.Texture",
              "kind": "field",
              "doc": "Texture is the effect's extra texture, read in its source with Texture(pos) and TextureSize(), and in its Reference with Input.TextureAt and Input.TextureSize. View binds it automatically and may replace it via View.Textures or View.TexturesFunc."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Bloom",
              "anchor": "Bloom",
              "decl": "func Bloom() Effect",
              "doc": "Bloom returns an effect that makes the frame's highlights glow in one pass: it adds, over each point, the bright part of the input at the point and at 16 points around it, an inner ring of 8 at half the radius and an outer ring of 8 at the radius turned half a step, weighted 4 at the center, 2 on the inner ring and 1 on the outer. It approximates a blurred bright pass without a texture between passes, so its glow is a soft star rather than a smooth disc at large radii.\n\nIts uniforms, by name:\n\n  - Threshold, from 0 to 1: the luminance (Rec. 709) above which a pixel glows, as much as its luminance rises from Threshold toward 1. It is the luminance of the premultiplied color, so a translucent pixel glows in proportion to its alpha: white at half alpha has a luminance of 0.5. Values outside 0 to 1 are clamped, and NaN acts as 0.\n  - Intensity: how much of the glow is added; 0 or less, the default being 0, or NaN returns the input unchanged, 1 to 2 is a strong bloom, and above 1000 it acts as 1000.\n  - Radius: how far, in the frame's pixels, the glow reaches.\n\nThe glow adds light: a translucent pixel near a highlight becomes more opaque, and colors stay premultiplied. Each output point reads its input 17 times, and a chain runs the effects before it at each of those points, so put Bloom first in a chain or after effects that read their input once.\n",
              "file": "pkg/effects/bloom.go",
              "line": 61
            },
            {
              "name": "CRT",
              "anchor": "CRT",
              "decl": "func CRT() Effect",
              "doc": "CRT returns an effect that bends the frame onto a curved cathode-ray tube and draws horizontal scanlines along the curve in one pass.\n\nIts uniforms, by name:\n\n  - Curvature: barrel distortion strength. 0 or less, the default being 0, or NaN leaves the frame flat; 0.1 to 0.3 is a typical CRT curve; values above 4 act as 4. The four edge midpoints stay pinned to the frame border while the corners pull inward onto an opaque black bezel.\n  - Scanlines, from 0 to 1: how dark the gaps between horizontal scanlines turn, 0 leaving the brightness unchanged and 1 turning the troughs black. Values outside 0 to 1 are clamped, and NaN acts as 0.\n  - Lines: how many scanlines span the frame's height. 0 or less, the default being 0, or NaN draws one scanline per pixel row of the frame, which shows as alternating bright and dark rows when the view scales the frame up (at 2x or higher); set Lines to half the frame's height or less when drawing a frame at 1:1. Values above 16384 act as 16384.\n\nWhen both Curvature and Scanlines are 0 or less, CRT passes its input through unchanged. Inside the screen, scanlines darken RGB while keeping each pixel's alpha, so colors stay premultiplied; outside the curved tube, the bezel is opaque black. Each output point reads its input at most once, so CRT can follow multi-tap passes such as Bloom without multiplying their taps, and chains with VignetteEffect when darkened corners are also wanted. The effect has a Reference, so a chain of it draws a reference picture.\n",
              "file": "pkg/effects/crt.go",
              "line": 80
            },
            {
              "name": "FlashEffect",
              "anchor": "FlashEffect",
              "decl": "func FlashEffect() Effect",
              "doc": "FlashEffect returns an effect that turns the whole frame toward an opaque color, as a hit, a bolt of lightning or a camera's flash does. Its uniforms are Amount, from 0, which draws the frame as it is, to 1, which draws only the color, and Color, a core.Color, black when left out. A Flash animates them on the frame clock. The effect has a Reference, so a chain of it draws a reference picture.\n",
              "file": "pkg/effects/flash.go",
              "line": 25
            },
            {
              "name": "PaletteRamp",
              "anchor": "PaletteRamp",
              "decl": "func PaletteRamp(palette core.ImageSource) Effect",
              "doc": "PaletteRamp returns an effect that maps each pixel's straight Rec. 709 luminance through a palette texture: each row is a dark-to-light palette of any width, with column 0 for black and column width-1 for white, preserving the pixel's alpha (multiplied by the palette entry's alpha).\n\nIts uniforms, by name:\n\n  - Amount, from 0 to 1: how far the frame turns to the palette; 0 or less, the default, or NaN returns the input unchanged.\n  - Row, from 0 to height-1: which palette row to map into; clamped to the texture's height, with NaN as 0. Fractional values blend linearly between adjacent rows.\n\npalette is bound as the effect's Texture and may be left zero to supply or replace it per view via View.Textures or View.TexturesFunc. The effect has a Reference, so a chain of it draws a reference picture when the palette has Pixels or Data.\n",
              "file": "pkg/effects/palette.go",
              "line": 157
            },
            {
              "name": "PaletteSwap",
              "anchor": "PaletteSwap",
              "decl": "func PaletteSwap(palette core.ImageSource) Effect",
              "doc": "PaletteSwap returns an effect that swaps colors through a palette texture: row 0 holds up to 256 source (key) colors (transparent pixels are skipped), and each row from 0 to height-1 holds a target palette. A pixel whose straight RGB matches a key in row 0 within Tolerance is replaced by the color at that column in Row, premultiplied by the pixel's alpha; unmatched colors and transparent pixels pass through unchanged.\n\nIts uniforms, by name:\n\n  - Amount, from 0 to 1: how far matched colors turn to the target row; 0 or less, the default, or NaN returns the input unchanged.\n  - Row, from 0 to height-1: which palette row to swap to; clamped to the texture's height, with NaN as 0. Fractional values blend linearly between adjacent rows, so animating Row transitions smoothly between palettes on the frame clock.\n  - Tolerance, from 0 to 1: the largest difference in any straight RGB channel that matches a key in row 0. Values at or below 0.002/alpha (including 0, the default, and NaN) match exact 8-bit colors, accounting for premultiplied alpha rounding; larger values pick the nearest matching key in Euclidean RGB distance, and 1 maps every non-transparent color to its nearest key.\n\npalette is bound as the effect's Texture and may be left zero to supply or replace it per view via View.Textures or View.TexturesFunc. The effect has a Reference, so a chain of it draws a reference picture when the palette has Pixels or Data.\n",
              "file": "pkg/effects/palette.go",
              "line": 140
            },
            {
              "name": "ShakeEffect",
              "anchor": "ShakeEffect",
              "decl": "func ShakeEffect() Effect",
              "doc": "ShakeEffect returns an effect that moves the whole frame about, as an explosion or a heavy landing does, reading the frame's edge where it moves off it. Its uniforms are:\n\n  - Amplitude, how far the frame moves at most along each direction, in the frame's pixels;\n  - Time, the shake's clock in seconds;\n  - Frequency, how many times a second the frame sways;\n  - Phase, four numbers or nodes in radians that start the sway's sines, which tell one shake from another.\n\nThe frame moves by Amplitude times 0.6·sin(w+Phase[0]) + 0.4·sin(2.17w+Phase[1]) across and 0.6·sin(1.13w+Phase[2]) + 0.4·sin(2.71w+Phase[3]) down, with w = 2π·Frequency·Time. An offset that is not finite, or 1e30 pixels or more along either direction, as a NaN or infinite uniform gives, leaves the frame where it is. A Shake animates them on the frame clock. The effect has a Reference, so a chain of it draws a reference picture.\n",
              "file": "pkg/effects/shake.go",
              "line": 47
            },
            {
              "name": "VignetteEffect",
              "anchor": "VignetteEffect",
              "decl": "func VignetteEffect() Effect",
              "doc": "VignetteEffect returns an effect that turns the frame's edges toward a color, as an old lens or a hurt player's view does. Its uniforms are:\n\n  - Strength, how far the corners turn, from 0, which draws the frame as it is, to 1;\n  - Radius, the distance from the center at which the edges start to turn, 0 at the center and 1 at the corners, round in the frame's pixels;\n  - Softness, the distance over which they turn all the way, eased; 0 draws a hard edge;\n  - Color, a core.Color the edges turn to, black when left out; it keeps each pixel's alpha.\n\nEach is a number or an AnimatedNode, so a game can close the vignette in on the frame clock. The effect has a Reference, so a chain of it draws a reference picture.\n",
              "file": "pkg/effects/vignette.go",
              "line": 42
            }
          ],
          "methods": []
        },
        {
          "name": "Flash",
          "anchor": "Flash",
          "decl": "type Flash struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Flash is a full-screen flash a game triggers: FlashEffect's Amount jumps to a peak and fades to 0 on the platform's frame clock, with no commit per frame.\n",
          "file": "pkg/effects/flash.go",
          "line": 53,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFlash",
              "anchor": "NewFlash",
              "decl": "func NewFlash(cx *core.Scope, cfg FlashConfig) *Flash",
              "doc": "NewFlash returns a flash for FlashEffect, at rest, that lasts as long as cx's owner.\n",
              "file": "pkg/effects/flash.go",
              "line": 61
            }
          ],
          "methods": [
            {
              "name": "Amount",
              "anchor": "Flash.Amount",
              "recv": "*Flash",
              "decl": "func (f *Flash) Amount() core.AnimatedNode",
              "doc": "Amount returns the node FlashEffect's Amount follows, from 0 at rest up to a Trigger's peak.\n",
              "file": "pkg/effects/flash.go",
              "line": 71
            },
            {
              "name": "Stop",
              "anchor": "Flash.Stop",
              "recv": "*Flash",
              "decl": "func (f *Flash) Stop()",
              "doc": "Stop ends a running flash at once, with Amount at 0.\n",
              "file": "pkg/effects/flash.go",
              "line": 85
            },
            {
              "name": "Trigger",
              "anchor": "Flash.Trigger",
              "recv": "*Flash",
              "decl": "func (f *Flash) Trigger(peak float64, fade time.Duration) bool",
              "doc": "Trigger sets Amount to peak, clamped to 0 to 1, and fades it to 0 over fade, easing out, in place of a flash still fading. It reports whether the flash runs: it does not under reduced motion, nor for a peak of 0 or less or a fade of 0 or less, which leave a running flash alone: Stop, not Trigger(0, fade), ends a running flash.\n",
              "file": "pkg/effects/flash.go",
              "line": 74
            },
            {
              "name": "Uniforms",
              "anchor": "Flash.Uniforms",
              "recv": "*Flash",
              "decl": "func (f *Flash) Uniforms() core.Uniforms",
              "doc": "Uniforms returns FlashEffect's uniforms, for its place in a View's Uniforms: Amount follows the flash.\n",
              "file": "pkg/effects/flash.go",
              "line": 66
            }
          ]
        },
        {
          "name": "FlashConfig",
          "anchor": "FlashConfig",
          "decl": "type FlashConfig struct {\n\t// Color is the flash's color; the zero Color is black.\n\tColor core.Color\n\t// ReduceMotion, when set, is asked at each Trigger, and the flash does not run while it reports true: pass an a11y.Assist's ReduceMotion, which follows the player's choice and else the platform's. When nil, the platform's reduced motion setting is asked.\n\tReduceMotion func() bool\n}",
          "doc": "FlashConfig configures a Flash.\n",
          "file": "pkg/effects/flash.go",
          "line": 45,
          "members": [
            {
              "name": "Color",
              "anchor": "FlashConfig.Color",
              "kind": "field",
              "doc": "Color is the flash's color; the zero Color is black."
            },
            {
              "name": "ReduceMotion",
              "anchor": "FlashConfig.ReduceMotion",
              "kind": "field",
              "doc": "ReduceMotion, when set, is asked at each Trigger, and the flash does not run while it reports true: pass an a11y.Assist's ReduceMotion, which follows the player's choice and else the platform's. When nil, the platform's reduced motion setting is asked."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Input",
          "anchor": "Input",
          "decl": "type Input struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Input is what an effect's Reference reads: the pass before it, or the frame for the first, as Input and InputSize read them in its source, plus the effect's extra texture as Texture and TextureSize read it.\n",
          "file": "pkg/effects/reference.go",
          "line": 17,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "At",
              "anchor": "Input.At",
              "recv": "Input",
              "decl": "func (in Input) At(x, y float64) [4]float64",
              "doc": "At returns the premultiplied color of the input at (x, y), in the frame's pixels: for the frame, the pixel under the point, transparent outside it.\n",
              "file": "pkg/effects/reference.go",
              "line": 25
            },
            {
              "name": "Size",
              "anchor": "Input.Size",
              "recv": "Input",
              "decl": "func (in Input) Size() (w, h float64)",
              "doc": "Size returns the frame's size in pixels.\n",
              "file": "pkg/effects/reference.go",
              "line": 28
            },
            {
              "name": "TextureAt",
              "anchor": "Input.TextureAt",
              "recv": "Input",
              "decl": "func (in Input) TextureAt(x, y float64) [4]float64",
              "doc": "TextureAt returns the premultiplied color of the effect's extra texture at (x, y), in its pixels: the pixel under the point, transparent outside it, as Texture(pos) reads it in its source.\n",
              "file": "pkg/effects/reference.go",
              "line": 31
            },
            {
              "name": "TextureSize",
              "anchor": "Input.TextureSize",
              "recv": "Input",
              "decl": "func (in Input) TextureSize() (w, h float64)",
              "doc": "TextureSize returns the size of the effect's extra texture in pixels, as TextureSize() reads it in its source.\n",
              "file": "pkg/effects/reference.go",
              "line": 39
            }
          ]
        },
        {
          "name": "Shake",
          "anchor": "Shake",
          "decl": "type Shake struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Shake is a screen shake a game triggers: ShakeEffect's Amplitude jumps to a peak and decays to 0 while its Time runs, on the platform's frame clock, with no commit per frame.\n",
          "file": "pkg/effects/shake.go",
          "line": 83,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewShake",
              "anchor": "NewShake",
              "decl": "func NewShake(cx *core.Scope, cfg ShakeConfig) *Shake",
              "doc": "NewShake returns a shake for ShakeEffect, at rest, that lasts as long as cx's owner.\n",
              "file": "pkg/effects/shake.go",
              "line": 94
            }
          ],
          "methods": [
            {
              "name": "Amplitude",
              "anchor": "Shake.Amplitude",
              "recv": "*Shake",
              "decl": "func (s *Shake) Amplitude() core.AnimatedNode",
              "doc": "Amplitude returns the node ShakeEffect's Amplitude follows, 0 at rest.\n",
              "file": "pkg/effects/shake.go",
              "line": 122
            },
            {
              "name": "Stop",
              "anchor": "Shake.Stop",
              "recv": "*Shake",
              "decl": "func (s *Shake) Stop()",
              "doc": "Stop ends a running shake at once, with the frame back in place.\n",
              "file": "pkg/effects/shake.go",
              "line": 142
            },
            {
              "name": "Trigger",
              "anchor": "Shake.Trigger",
              "recv": "*Shake",
              "decl": "func (s *Shake) Trigger(amplitude float64, d time.Duration) bool",
              "doc": "Trigger shakes the frame by amplitude pixels at first, decaying to 0 over d, easing out, in place of a shake still running, with the next phases the seed gives. It reports whether the shake runs: it does not under reduced motion, nor for an amplitude or a duration of 0 or less, which leave a running shake alone and draw no phases. Stop, not Trigger(0, d), ends a running shake: unlike tilemap.Camera.Shake, where an intensity or a duration of 0 or less cancels.\n",
              "file": "pkg/effects/shake.go",
              "line": 125
            },
            {
              "name": "Uniforms",
              "anchor": "Shake.Uniforms",
              "recv": "*Shake",
              "decl": "func (s *Shake) Uniforms() core.Uniforms",
              "doc": "Uniforms returns ShakeEffect's uniforms, for its place in a View's Uniforms: Amplitude, Time and Phase follow the shake.\n",
              "file": "pkg/effects/shake.go",
              "line": 112
            }
          ]
        },
        {
          "name": "ShakeConfig",
          "anchor": "ShakeConfig",
          "decl": "type ShakeConfig struct {\n\t// Seed picks each trigger's phases in turn, so the same seed shakes the same way in a replay; 0 is a seed of its own like any other, where tilemap.Camera's ShakeSeed takes 0 as 1.\n\tSeed uint64\n\t// Frequency is how many times a second the frame sways, DefaultShakeFrequency when 0 or less.\n\tFrequency float64\n\t// ReduceMotion, when set, is asked at each Trigger, and the shake does not run while it reports true: pass an a11y.Assist's ReduceMotion, which follows the player's choice and else the platform's. When nil, the platform's reduced motion setting is asked.\n\tReduceMotion func() bool\n}",
          "doc": "ShakeConfig configures a Shake.\n",
          "file": "pkg/effects/shake.go",
          "line": 73,
          "members": [
            {
              "name": "Seed",
              "anchor": "ShakeConfig.Seed",
              "kind": "field",
              "doc": "Seed picks each trigger's phases in turn, so the same seed shakes the same way in a replay; 0 is a seed of its own like any other, where tilemap.Camera's ShakeSeed takes 0 as 1."
            },
            {
              "name": "Frequency",
              "anchor": "ShakeConfig.Frequency",
              "kind": "field",
              "doc": "Frequency is how many times a second the frame sways, DefaultShakeFrequency when 0 or less."
            },
            {
              "name": "ReduceMotion",
              "anchor": "ShakeConfig.ReduceMotion",
              "kind": "field",
              "doc": "ReduceMotion, when set, is asked at each Trigger, and the shake does not run while it reports true: pass an a11y.Assist's ReduceMotion, which follows the player's choice and else the platform's. When nil, the platform's reduced motion setting is asked."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "View",
          "anchor": "View",
          "decl": "type View struct {\n\t// Chain is the effects the frame is drawn through; a nil Chain draws the frame as it is.\n\tChain *Chain\n\t// Frame is the picture the chain reads, usually a pixel buffer the game writes each frame, with Version telling its frames apart; FrameFunc, when set, follows the graph instead.\n\tFrame     core.ImageSource\n\tFrameFunc func() core.ImageSource\n\t// Uniforms are each effect's uniforms, in the chain's order, as Chain.Uniforms takes them: an AnimatedNode among them follows the platform's frame clock with no commit per frame. UniformsFunc, when set, follows the graph, its values over Uniforms'.\n\tUniforms     []core.Uniforms\n\tUniformsFunc func() []core.Uniforms\n\t// Textures overrides each textured effect's Texture, in the chain's order, as Chain.Images takes them; a zero entry keeps the effect's own Texture. TexturesFunc, when set, follows the graph instead.\n\tTextures     []core.ImageSource\n\tTexturesFunc func() []core.ImageSource\n\t// Class is Tailwind CSS classes, as core.View's.\n\tClass     string\n\tStyle     core.Style\n\tStyleFunc func() core.Style\n\t// Children draw over the chain's picture, such as a HUD.\n\tChildren []core.Node\n\tOnPress  func(core.PressEvent)\n\tOnLayout func(core.Bounds)\n\tRef      *core.Ref\n\t// Label names what the view shows for assistive technology, which skips an unlabeled view as a decoration.\n\tLabel     string\n\tLabelFunc func() string\n\tTestID    string\n}",
          "doc": "View draws a frame through a chain, stretched over its box: a core.Shader whose image0 is the frame. Give the box the frame's aspect ratio, as a screen.Viewport places a virtual canvas, for square pixels.\n",
          "file": "pkg/effects/view.go",
          "line": 11,
          "members": [
            {
              "name": "Chain",
              "anchor": "View.Chain",
              "kind": "field",
              "doc": "Chain is the effects the frame is drawn through; a nil Chain draws the frame as it is."
            },
            {
              "name": "Frame",
              "anchor": "View.Frame",
              "kind": "field",
              "doc": "Frame is the picture the chain reads, usually a pixel buffer the game writes each frame, with Version telling its frames apart; FrameFunc, when set, follows the graph instead."
            },
            {
              "name": "FrameFunc",
              "anchor": "View.FrameFunc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Uniforms",
              "anchor": "View.Uniforms",
              "kind": "field",
              "doc": "Uniforms are each effect's uniforms, in the chain's order, as Chain.Uniforms takes them: an AnimatedNode among them follows the platform's frame clock with no commit per frame. UniformsFunc, when set, follows the graph, its values over Uniforms'."
            },
            {
              "name": "UniformsFunc",
              "anchor": "View.UniformsFunc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Textures",
              "anchor": "View.Textures",
              "kind": "field",
              "doc": "Textures overrides each textured effect's Texture, in the chain's order, as Chain.Images takes them; a zero entry keeps the effect's own Texture. TexturesFunc, when set, follows the graph instead."
            },
            {
              "name": "TexturesFunc",
              "anchor": "View.TexturesFunc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Class",
              "anchor": "View.Class",
              "kind": "field",
              "doc": "Class is Tailwind CSS classes, as core.View's."
            },
            {
              "name": "Style",
              "anchor": "View.Style",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StyleFunc",
              "anchor": "View.StyleFunc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Children",
              "anchor": "View.Children",
              "kind": "field",
              "doc": "Children draw over the chain's picture, such as a HUD."
            },
            {
              "name": "OnPress",
              "anchor": "View.OnPress",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnLayout",
              "anchor": "View.OnLayout",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ref",
              "anchor": "View.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "View.Label",
              "kind": "field",
              "doc": "Label names what the view shows for assistive technology, which skips an unlabeled view as a decoration."
            },
            {
              "name": "LabelFunc",
              "anchor": "View.LabelFunc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TestID",
              "anchor": "View.TestID",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Render",
              "anchor": "View.Render",
              "recv": "View",
              "decl": "func (v View) Render(*core.Scope) core.Node",
              "doc": "Render implements core.Node.\n",
              "file": "pkg/effects/view.go",
              "line": 39
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/entities",
      "name": "entities",
      "dir": "pkg/entities",
      "page": "pkg/entities",
      "synopsis": "Package entities provides a small, zero-reflection entity-component-system (ECS) for NSGo games: generational entities, typed sparse-set components, allocation-free queries, topologically ordered systems, prefabs and JSON world snapshots integrated with game/save.",
      "doc": "Package entities provides a small, zero-reflection entity-component-system (ECS) for NSGo games: generational entities, typed sparse-set components, allocation-free queries, topologically ordered systems, prefabs and JSON world snapshots integrated with game/save.\n\n# Architectural Decision (#136)\n\nThree architectures were weighed for representing game objects in github.com/nsgo-dev/game:\n\n 1. A small, zero-reflection, generational-index ECS with typed sparse-set storage (chosen).\n 2. An object-oriented scene tree of heap-allocated nodes with virtual update methods.\n 3. A reflection-driven archetype ECS with dynamic tables and query planners.\n\nThis package chooses (1) for five reasons:\n\n  - Predictable, allocation-free hot loops: entities are 64-bit generational handles (32-bit slot index + 32-bit generation) recycled through a free list, and each component type lives in a contiguous typed sparse set. Spawning, destroying, accessing and querying components perform zero heap allocations in steady state and avoid GC pointer chasing.\n  - Zero reflection: Go generics identify component stores via zero-sized type tags and keep all component access, queries and prefab builders statically typed with no reflect imports.\n  - Safe handle lifetimes: stale Entity handles are automatically invalidated when a slot is destroyed and recycled, eliminating dangling references without weak pointers or runtime bookkeeping.\n  - Explicit, deterministic execution: systems declare Before/After ordering constraints resolved once via Kahn's topological sort with registration-order tie-breaking, making frame order inspectable (for debug overlays) and reproducible across runs and platforms.\n  - Clean serialization boundaries: only component types explicitly registered with RegisterCodec are written into deterministic WorldSnapshot JSON values and persisted through game/save, keeping transient runtime state (such as sprite handles or audio voices) out of save files while preserving entity IDs and cross-entity references.\n\nAll methods on World and Scheduler are designed to be called on the engine's goroutine, matching game.Loop and NSGo's core.Scope.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrCycle",
              "anchor": "ErrCycle"
            },
            {
              "name": "ErrDeadEntity",
              "anchor": "ErrDeadEntity"
            },
            {
              "name": "ErrNotDecomposable",
              "anchor": "ErrNotDecomposable"
            }
          ],
          "decl": "var (\n\t// ErrCycle reports a SetParent call that would create a cycle in the hierarchy, including parenting an entity to itself.\n\tErrCycle = errors.New(\"entities: hierarchy cycle\")\n\t// ErrDeadEntity reports a hierarchy operation attempted on Zero or an entity that is not alive in the World.\n\tErrDeadEntity = errors.New(\"entities: dead entity\")\n\t// ErrNotDecomposable reports a keep-world reparent whose exact relative\n\t// transform contains shear and cannot be stored as a Transform2D.\n\tErrNotDecomposable = errors.New(\"entities: relative transform is not decomposable to TRS\")\n)",
          "doc": "",
          "file": "pkg/entities/hierarchy.go",
          "line": 8
        },
        {
          "idents": [
            {
              "name": "ErrEmptySystemName",
              "anchor": "ErrEmptySystemName"
            },
            {
              "name": "ErrDuplicateSystem",
              "anchor": "ErrDuplicateSystem"
            },
            {
              "name": "ErrNilSystem",
              "anchor": "ErrNilSystem"
            },
            {
              "name": "ErrUnknownSystem",
              "anchor": "ErrUnknownSystem"
            },
            {
              "name": "ErrSystemCycle",
              "anchor": "ErrSystemCycle"
            }
          ],
          "decl": "var (\n\t// ErrEmptySystemName reports a system or ordering constraint with an empty name.\n\tErrEmptySystemName = errors.New(\"entities: empty system name\")\n\t// ErrDuplicateSystem reports registering a system whose name is already present in the Scheduler.\n\tErrDuplicateSystem = errors.New(\"entities: duplicate system name\")\n\t// ErrNilSystem reports registering a system with a nil update function.\n\tErrNilSystem = errors.New(\"entities: nil system function\")\n\t// ErrUnknownSystem reports a Before or After constraint naming a system that was never registered.\n\tErrUnknownSystem = errors.New(\"entities: unknown system dependency\")\n\t// ErrSystemCycle reports a cycle in the system ordering constraints.\n\tErrSystemCycle = errors.New(\"entities: cyclic system dependency\")\n)",
          "doc": "",
          "file": "pkg/entities/scheduler.go",
          "line": 10
        },
        {
          "idents": [
            {
              "name": "ErrEmptyCodecName",
              "anchor": "ErrEmptyCodecName"
            },
            {
              "name": "ErrDuplicateCodec",
              "anchor": "ErrDuplicateCodec"
            },
            {
              "name": "ErrUnknownCodec",
              "anchor": "ErrUnknownCodec"
            },
            {
              "name": "ErrInvalidSnapshot",
              "anchor": "ErrInvalidSnapshot"
            }
          ],
          "decl": "var (\n\t// ErrEmptyCodecName reports registering a component codec with an empty type name.\n\tErrEmptyCodecName = errors.New(\"entities: empty codec name\")\n\t// ErrDuplicateCodec reports registering a codec name or component type that is already registered on the World.\n\tErrDuplicateCodec = errors.New(\"entities: duplicate codec registration\")\n\t// ErrUnknownCodec reports a snapshot containing a component type that has no registered codec on the target World.\n\tErrUnknownCodec = errors.New(\"entities: unknown component codec\")\n\t// ErrInvalidSnapshot reports a malformed WorldSnapshot (such as zero generation, duplicate entity index, or out-of-range index).\n\tErrInvalidSnapshot = errors.New(\"entities: invalid world snapshot\")\n)",
          "doc": "",
          "file": "pkg/entities/snapshot.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ErrWorldDisposed",
              "anchor": "ErrWorldDisposed"
            }
          ],
          "decl": "var ErrWorldDisposed = errors.New(\"entities: world is disposed\")",
          "doc": "ErrWorldDisposed reports an operation attempted on a World that has been disposed.\n",
          "file": "pkg/entities/world.go",
          "line": 14
        }
      ],
      "funcs": [
        {
          "name": "CodecName",
          "anchor": "CodecName",
          "decl": "func CodecName[T any](w *World) (string, bool)",
          "doc": "CodecName returns the codec name registered for component type T on w and whether one is registered.\n",
          "file": "pkg/entities/snapshot.go",
          "line": 156
        },
        {
          "name": "Each1",
          "anchor": "Each1",
          "decl": "func Each1[A any](w *World, fn func(Entity, *A) bool)",
          "doc": "Each1 visits every live entity in w carrying component A in deterministic dense order until fn returns false.\nIt performs no reflection and zero heap allocations.\n\nThe component pointers are valid only during the callback and only until the callback adds a component of a type it is iterating (to any entity): that can grow the store and move its values, so a write through an older pointer would be lost. Read or write through the pointers first, or collect entities and add components after Each returns.\n",
          "file": "pkg/entities/query.go",
          "line": 7
        },
        {
          "name": "Each2",
          "anchor": "Each2",
          "decl": "func Each2[A, B any](w *World, fn func(Entity, *A, *B) bool)",
          "doc": "Each2 visits every live entity in w carrying both A and B until fn returns false.\nIt drives iteration from the smaller sparse set and checks membership in the other in O(1) time, with deterministic order, no reflection and zero heap allocations.\n\nA callback may destroy the entity it was handed, but must not add or remove other entities/components of the queried stores.\n\nThe component pointers are valid only during the callback and only until the callback adds a component of a type it is iterating (to any entity): that can grow the store and move its values, so a write through an older pointer would be lost. Read or write through the pointers first, or collect entities and add components after Each returns.\n",
          "file": "pkg/entities/query.go",
          "line": 21
        },
        {
          "name": "Each3",
          "anchor": "Each3",
          "decl": "func Each3[A, B, C any](w *World, fn func(Entity, *A, *B, *C) bool)",
          "doc": "Each3 visits every live entity in w carrying A, B and C until fn returns false.\nIt drives iteration from the smallest of the three sparse sets and checks membership in the other two in O(1) time, with deterministic order, no reflection and zero heap allocations.\n\nThe component pointers are valid only during the callback and only until the callback adds a component of a type it is iterating (to any entity): that can grow the store and move its values, so a write through an older pointer would be lost. Read or write through the pointers first, or collect entities and add components after Each returns.\n",
          "file": "pkg/entities/query.go",
          "line": 61
        },
        {
          "name": "Get",
          "anchor": "Get",
          "decl": "func Get[T any](w *World, e Entity) (*T, bool)",
          "doc": "Get returns a pointer to entity e's component of type T in w, or (nil, false) if absent or if e is not alive.\n",
          "file": "pkg/entities/component.go",
          "line": 226
        },
        {
          "name": "Has",
          "anchor": "Has",
          "decl": "func Has[T any](w *World, e Entity) bool",
          "doc": "Has reports whether live entity e carries component T in w.\n",
          "file": "pkg/entities/component.go",
          "line": 235
        },
        {
          "name": "LoadWorld",
          "anchor": "LoadWorld",
          "decl": "func LoadWorld(store *save.Store, slot string, w *World) error",
          "doc": "LoadWorld reads slot from store through game/save and atomically restores it into w.\n",
          "file": "pkg/entities/snapshot.go",
          "line": 517
        },
        {
          "name": "RegisterCodec",
          "anchor": "RegisterCodec",
          "decl": "func RegisterCodec[T any](w *World, typeName string) error",
          "doc": "RegisterCodec registers a JSON codec for component type T under typeName on w.\n\nOnly component types with a registered codec are included in WorldSnapshot output. Registering the same typeName or the same Go type T twice returns ErrDuplicateCodec.\n",
          "file": "pkg/entities/snapshot.go",
          "line": 63
        },
        {
          "name": "Remove",
          "anchor": "Remove",
          "decl": "func Remove[T any](w *World, e Entity)",
          "doc": "Remove detaches component T from entity e in w if present.\n",
          "file": "pkg/entities/component.go",
          "line": 244
        },
        {
          "name": "SaveWorld",
          "anchor": "SaveWorld",
          "decl": "func SaveWorld(store *save.Store, slot string, w *World) error",
          "doc": "SaveWorld snapshots w and writes it to slot in store through game/save.\n",
          "file": "pkg/entities/snapshot.go",
          "line": 505
        },
        {
          "name": "Set",
          "anchor": "Set",
          "decl": "func Set[T any](w *World, e Entity, v T)",
          "doc": "Set attaches or replaces component v on entity e in w. It is a no-op if e is not alive in w.\nSetting a Transform2D while the World has a Hierarchy2D marks e and its descendants dirty, exactly like Hierarchy2D.SetLocal, so WorldTransform2D never goes stale (#546). Writing through a pointer from Get or a Store still needs Hierarchy2D.MarkDirty.\n",
          "file": "pkg/entities/component.go",
          "line": 214
        }
      ],
      "types": [
        {
          "name": "ComponentSnapshot",
          "anchor": "ComponentSnapshot",
          "decl": "type ComponentSnapshot struct {\n\tType string          `json:\"type\"`\n\tData json.RawMessage `json:\"data\"`\n}",
          "doc": "ComponentSnapshot holds a single JSON-encoded component tagged by its registered codec name.\n",
          "file": "pkg/entities/snapshot.go",
          "line": 55,
          "members": [
            {
              "name": "Type",
              "anchor": "ComponentSnapshot.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "ComponentSnapshot.Data",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Entity",
          "anchor": "Entity",
          "decl": "type Entity uint64",
          "doc": "Entity is a 64-bit generational handle identifying an entity in a World.\n\nThe low 32 bits store the slot index and the high 32 bits store the slot's generation. When an entity is destroyed, its slot is recycled with an incremented generation, so stale handles never alias newly spawned entities.\n",
          "file": "pkg/entities/world.go",
          "line": 19,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Zero",
                  "anchor": "Zero"
                }
              ],
              "decl": "const Zero Entity = 0",
              "doc": "Zero is the invalid entity handle. Live entities always have a non-zero generation, so Zero is never alive.\n",
              "file": "pkg/entities/world.go",
              "line": 11
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "MakeEntity",
              "anchor": "MakeEntity",
              "decl": "func MakeEntity(index, generation uint32) Entity",
              "doc": "MakeEntity constructs a generational Entity handle from its 32-bit slot index and generation.\nIt returns Zero when generation is 0.\n",
              "file": "pkg/entities/world.go",
              "line": 27
            }
          ],
          "methods": [
            {
              "name": "Generation",
              "anchor": "Entity.Generation",
              "recv": "Entity",
              "decl": "func (e Entity) Generation() uint32",
              "doc": "Generation returns the entity's 32-bit generation counter (0 for Zero).\n",
              "file": "pkg/entities/world.go",
              "line": 38
            },
            {
              "name": "Index",
              "anchor": "Entity.Index",
              "recv": "Entity",
              "decl": "func (e Entity) Index() uint32",
              "doc": "Index returns the entity's 32-bit slot index.\n",
              "file": "pkg/entities/world.go",
              "line": 35
            },
            {
              "name": "IsZero",
              "anchor": "Entity.IsZero",
              "recv": "Entity",
              "decl": "func (e Entity) IsZero() bool",
              "doc": "IsZero reports whether e is the invalid Zero handle.\n",
              "file": "pkg/entities/world.go",
              "line": 41
            },
            {
              "name": "String",
              "anchor": "Entity.String",
              "recv": "Entity",
              "decl": "func (e Entity) String() string",
              "doc": "String formats e as \"Entity(index:generation)\" or \"Entity(0)\" for Zero.\n",
              "file": "pkg/entities/world.go",
              "line": 44
            }
          ]
        },
        {
          "name": "EntitySnapshot",
          "anchor": "EntitySnapshot",
          "decl": "type EntitySnapshot struct {\n\tIndex uint32 `json:\"index\"`\n\t// Parent is the slot index of this entity's hierarchy parent, when the\n\t// snapshot recorded one; it is nil for a root entity.\n\tParent     *uint32             `json:\"parent,omitempty\"`\n\tGeneration uint32              `json:\"generation\"`\n\tComponents []ComponentSnapshot `json:\"components,omitempty\"`\n}",
          "doc": "EntitySnapshot captures one live entity's generational handle and its serialized components in sorted type-name order.\n",
          "file": "pkg/entities/snapshot.go",
          "line": 45,
          "members": [
            {
              "name": "Index",
              "anchor": "EntitySnapshot.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Parent",
              "anchor": "EntitySnapshot.Parent",
              "kind": "field",
              "doc": "Parent is the slot index of this entity's hierarchy parent, when the\nsnapshot recorded one; it is nil for a root entity."
            },
            {
              "name": "Generation",
              "anchor": "EntitySnapshot.Generation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Components",
              "anchor": "EntitySnapshot.Components",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Hierarchy2D",
          "anchor": "Hierarchy2D",
          "decl": "type Hierarchy2D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Hierarchy2D manages parent-child 2D transform relationships, visibility inheritance, and dirty-subtree propagation for a World.\n\nLocal transforms are stored in the World's Store[Transform2D] and composed world transforms are cached in Store[WorldTransform2D], allowing ECS queries (Each1/Each2/Each3) to iterate world transforms directly with zero allocations.\nParent-child links are maintained in an intrusive, pointer-free slice indexed by Entity.Index(), so steady-state updates, dirty propagation, reparenting, and Sync perform zero heap allocations.\n\nWhen World.Destroy removes a parent entity directly, Hierarchy2D automatically cleans up its links according to its configured RemovePolicy (default RemoveDetach) so dangling parent/child references never occur.\n",
          "file": "pkg/entities/hierarchy.go",
          "line": 136,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHierarchy2D",
              "anchor": "NewHierarchy2D",
              "decl": "func NewHierarchy2D(w *World) *Hierarchy2D",
              "doc": "NewHierarchy2D returns the 2D transform hierarchy bound to w, creating and attaching it on first call.\nIt returns nil if w is nil.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 151
            }
          ],
          "methods": [
            {
              "name": "AppendChildren",
              "anchor": "Hierarchy2D.AppendChildren",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) AppendChildren(dst []Entity, e Entity) []Entity",
              "doc": "AppendChildren appends e's direct children in deterministic insertion order to dst and returns the extended slice.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 346
            },
            {
              "name": "ChildCount",
              "anchor": "Hierarchy2D.ChildCount",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) ChildCount(e Entity) int",
              "doc": "ChildCount returns the number of direct children of e (0 if e is dead or has no children).\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 324
            },
            {
              "name": "Children",
              "anchor": "Hierarchy2D.Children",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) Children(e Entity) []Entity",
              "doc": "Children returns a newly allocated slice of e's direct children in deterministic insertion order, or nil if e has none.\nFor zero-allocation iteration, use EachChild or AppendChildren.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 337
            },
            {
              "name": "DestroyWithPolicy",
              "anchor": "Hierarchy2D.DestroyWithPolicy",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) DestroyWithPolicy(e Entity, policy RemovePolicy)",
              "doc": "DestroyWithPolicy destroys e in the World after applying policy to its children:\n  - RemoveDetach: detaches direct children to root, keeping each child's local Transform2D.\n  - RemoveDetachKeepWorld: detaches direct children to root while preserving their world transforms.\n  - RemoveCascade: recursively destroys e and all of its descendants.\n\nIn all cases, parent/child links are cleaned up so no dangling handles remain.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 572
            },
            {
              "name": "Detach",
              "anchor": "Hierarchy2D.Detach",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) Detach(child Entity, keepWorld bool)",
              "doc": "Detach removes child from its parent so it becomes a root entity.\nWhen keepWorld is true, child's local Transform2D is updated to its composed world transform before detaching.\nDetaching Zero, a dead entity, or an entity that is already a root is a no-op.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 279
            },
            {
              "name": "EachChild",
              "anchor": "Hierarchy2D.EachChild",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) EachChild(e Entity, fn func(Entity) bool)",
              "doc": "EachChild calls fn for each direct child of e in deterministic insertion order until fn returns false.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 361
            },
            {
              "name": "IsDirty",
              "anchor": "Hierarchy2D.IsDirty",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) IsDirty(e Entity) bool",
              "doc": "IsDirty reports whether e currently needs world-transform recomputation.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 481
            },
            {
              "name": "Local",
              "anchor": "Hierarchy2D.Local",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) Local(e Entity) (Transform2D, bool)",
              "doc": "Local returns e's local Transform2D and true, or (zero, false) if e is dead or has no Transform2D.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 379
            },
            {
              "name": "MarkDirty",
              "anchor": "Hierarchy2D.MarkDirty",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) MarkDirty(e Entity)",
              "doc": "MarkDirty marks e and all of its descendants as needing world-transform recomputation.\nCall MarkDirty after mutating a *Transform2D pointer obtained directly from Store[Transform2D].\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 472
            },
            {
              "name": "Parent",
              "anchor": "Hierarchy2D.Parent",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) Parent(e Entity) (Entity, bool)",
              "doc": "Parent returns e's parent entity and true, or (Zero, false) if e is dead, not in the hierarchy, or is a root.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 308
            },
            {
              "name": "RemovePolicy",
              "anchor": "Hierarchy2D.RemovePolicy",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) RemovePolicy() RemovePolicy",
              "doc": "RemovePolicy returns the default RemovePolicy used when World.Destroy is called directly on a parent entity.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 199
            },
            {
              "name": "SetLocal",
              "anchor": "Hierarchy2D.SetLocal",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) SetLocal(e Entity, t Transform2D)",
              "doc": "SetLocal sets e's local Transform2D and marks e and its descendants dirty.\nIt is a no-op if e is not alive.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 392
            },
            {
              "name": "SetParent",
              "anchor": "Hierarchy2D.SetParent",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) SetParent(child, parent Entity, keepWorld bool) error",
              "doc": "SetParent attaches child as the last direct child of parent in deterministic insertion order.\n\nIf parent is Zero, child is detached to root (equivalent to Detach(child, keepWorld)).\nSetParent returns ErrWorldDisposed if the World is disposed, ErrDeadEntity if child (or non-Zero parent) is not alive, and ErrCycle if parenting would introduce a cycle (including child == parent).\nWhen keepWorld is true, child's local Transform2D is recomputed relative to parent's world transform so child stays at the same world position, rotation, and scale.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 211
            },
            {
              "name": "SetPosition",
              "anchor": "Hierarchy2D.SetPosition",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) SetPosition(e Entity, x, y float32)",
              "doc": "SetPosition updates e's local (X, Y) position and marks e and its descendants dirty.\nIf e does not yet have a Transform2D, NewTransform2D(x, y) is attached.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 403
            },
            {
              "name": "SetRemovePolicy",
              "anchor": "Hierarchy2D.SetRemovePolicy",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) SetRemovePolicy(policy RemovePolicy)",
              "doc": "SetRemovePolicy sets the default RemovePolicy used when World.Destroy is called directly on a parent entity.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 191
            },
            {
              "name": "SetRotation",
              "anchor": "Hierarchy2D.SetRotation",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) SetRotation(e Entity, rotation float32)",
              "doc": "SetRotation updates e's local rotation in radians and marks e and its descendants dirty.\nIf e does not yet have a Transform2D, IdentityTransform2D with the given rotation is attached.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 419
            },
            {
              "name": "SetScale",
              "anchor": "Hierarchy2D.SetScale",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) SetScale(e Entity, sx, sy float32)",
              "doc": "SetScale updates e's local (ScaleX, ScaleY) and marks e and its descendants dirty.\nIf e does not yet have a Transform2D, IdentityTransform2D with the given scale is attached.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 436
            },
            {
              "name": "SetVisible",
              "anchor": "Hierarchy2D.SetVisible",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) SetVisible(e Entity, visible bool)",
              "doc": "SetVisible updates e's local visibility and marks e and its descendants dirty.\nIf e does not yet have a Transform2D, IdentityTransform2D with the given visibility is attached.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 455
            },
            {
              "name": "Sync",
              "anchor": "Hierarchy2D.Sync",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) Sync() int",
              "doc": "Sync updates WorldTransform2D for all dirty subtrees in topological parent-before-child order, skipping clean nodes completely.\nIt returns the number of entities whose WorldTransform2D was recomputed and performs zero heap allocations in steady state.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 494
            },
            {
              "name": "WorldTransform",
              "anchor": "Hierarchy2D.WorldTransform",
              "recv": "*Hierarchy2D",
              "decl": "func (h *Hierarchy2D) WorldTransform(e Entity) (WorldTransform2D, bool)",
              "doc": "WorldTransform returns e's up-to-date WorldTransform2D and true, resolving e's dirty ancestor chain lazily on demand if needed.\nIt returns (zero, false) if e is dead or has no Transform2D and is not part of the hierarchy.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 551
            }
          ]
        },
        {
          "name": "Prefab",
          "anchor": "Prefab",
          "decl": "type Prefab struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Prefab is a named entity template that attaches a preset list of components to each entity it spawns.\n\nValue components added with With are copied per entity, while reference-containing components (slices, maps, pointers) added with WithFunc invoke their constructor per spawn so entities never share mutable state.\n",
          "file": "pkg/entities/prefab.go",
          "line": 6,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPrefab",
              "anchor": "NewPrefab",
              "decl": "func NewPrefab(name string) *Prefab",
              "doc": "NewPrefab returns an empty Prefab with the given name.\n",
              "file": "pkg/entities/prefab.go",
              "line": 17
            },
            {
              "name": "With",
              "anchor": "With",
              "decl": "func With[T any](p *Prefab, v T) *Prefab",
              "doc": "With attaches a value component template v of type T to p and returns p.\nIf T is already present on p, its builder is replaced.\nFor components containing slices, maps or pointers, prefer WithFunc so each spawned entity receives an independent copy.\n",
              "file": "pkg/entities/prefab.go",
              "line": 52
            },
            {
              "name": "WithFunc",
              "anchor": "WithFunc",
              "decl": "func WithFunc[T any](p *Prefab, make func() T) *Prefab",
              "doc": "WithFunc attaches a constructor-backed component template of type T to p and returns p.\nmake is invoked once per spawned entity so slices, maps and pointers are never shared across entities. If make is nil, the zero value of T is used.\n",
              "file": "pkg/entities/prefab.go",
              "line": 61
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Prefab.Clone",
              "recv": "*Prefab",
              "decl": "func (p *Prefab) Clone(name string) *Prefab",
              "doc": "Clone returns a new Prefab named name with a shallow copy of p's component builders, allowing derived prefabs to override or add components without mutating p.\n",
              "file": "pkg/entities/prefab.go",
              "line": 30
            },
            {
              "name": "Name",
              "anchor": "Prefab.Name",
              "recv": "*Prefab",
              "decl": "func (p *Prefab) Name() string",
              "doc": "Name returns the prefab's name.\n",
              "file": "pkg/entities/prefab.go",
              "line": 22
            },
            {
              "name": "Spawn",
              "anchor": "Prefab.Spawn",
              "recv": "*Prefab",
              "decl": "func (p *Prefab) Spawn(w *World) Entity",
              "doc": "Spawn creates a new entity in w and applies all of p's component builders to it.\n",
              "file": "pkg/entities/prefab.go",
              "line": 73
            },
            {
              "name": "SpawnN",
              "anchor": "Prefab.SpawnN",
              "recv": "*Prefab",
              "decl": "func (p *Prefab) SpawnN(w *World, n int) []Entity",
              "doc": "SpawnN spawns n independent entities from p in w and returns their handles.\nIt returns nil when n <= 0 or w is nil.\n",
              "file": "pkg/entities/prefab.go",
              "line": 89
            }
          ]
        },
        {
          "name": "RemovePolicy",
          "anchor": "RemovePolicy",
          "decl": "type RemovePolicy uint8",
          "doc": "RemovePolicy controls what happens to direct children when a parent entity is destroyed.\n",
          "file": "pkg/entities/hierarchy.go",
          "line": 106,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RemoveDetach",
                  "anchor": "RemoveDetach"
                },
                {
                  "name": "RemoveDetachKeepWorld",
                  "anchor": "RemoveDetachKeepWorld"
                },
                {
                  "name": "RemoveCascade",
                  "anchor": "RemoveCascade"
                }
              ],
              "decl": "const (\n\t// RemoveDetach detaches direct children to root before destroying the parent, keeping each child's local Transform2D.\n\t// This is the default policy applied when World.Destroy removes a parent directly.\n\tRemoveDetach RemovePolicy = iota\n\t// RemoveDetachKeepWorld detaches direct children to root before destroying the parent, updating each child's local Transform2D to preserve its composed world transform.\n\tRemoveDetachKeepWorld\n\t// RemoveCascade recursively destroys the entity and all of its descendants.\n\tRemoveCascade\n)",
              "doc": "",
              "file": "pkg/entities/hierarchy.go",
              "line": 108
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Scheduler",
          "anchor": "Scheduler",
          "decl": "type Scheduler struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Scheduler runs named systems over a World in a deterministic topological order derived from Before and After constraints.\n\nTies between unconstrained systems are broken by registration order. The zero value of Scheduler is ready to use.\n",
          "file": "pkg/entities/scheduler.go",
          "line": 50,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewScheduler",
              "anchor": "NewScheduler",
              "decl": "func NewScheduler() *Scheduler",
              "doc": "NewScheduler returns an empty Scheduler.\n",
              "file": "pkg/entities/scheduler.go",
              "line": 58
            }
          ],
          "methods": [
            {
              "name": "AddSystem",
              "anchor": "Scheduler.AddSystem",
              "recv": "*Scheduler",
              "decl": "func (s *Scheduler) AddSystem(name string, fn func(w *World, dt time.Duration), opts ...SystemOption) error",
              "doc": "AddSystem registers a named system with optional Before/After constraints.\n\nConstraint targets may be registered later; missing targets and dependency cycles are reported by Build and Step. Immediate errors (empty name, duplicate name, nil function, empty target, or self-dependency) are returned right away without modifying s.\n",
              "file": "pkg/entities/scheduler.go",
              "line": 65
            },
            {
              "name": "Build",
              "anchor": "Scheduler.Build",
              "recv": "*Scheduler",
              "decl": "func (s *Scheduler) Build() error",
              "doc": "Build validates all Before/After constraints and resolves the deterministic execution order using Kahn's algorithm with registration-order tie-breaking.\n",
              "file": "pkg/entities/scheduler.go",
              "line": 107
            },
            {
              "name": "Order",
              "anchor": "Scheduler.Order",
              "recv": "*Scheduler",
              "decl": "func (s *Scheduler) Order() []string",
              "doc": "Order returns the resolved system names in execution order.\nIt resolves the schedule lazily if needed and returns nil if the schedule is empty or invalid.\n",
              "file": "pkg/entities/scheduler.go",
              "line": 181
            },
            {
              "name": "Step",
              "anchor": "Scheduler.Step",
              "recv": "*Scheduler",
              "decl": "func (s *Scheduler) Step(w *World, dt time.Duration) error",
              "doc": "Step resolves the schedule if needed and runs every system on w with dt in exact resolved order.\nOnce built, Step performs zero heap allocations of its own.\n",
              "file": "pkg/entities/scheduler.go",
              "line": 204
            },
            {
              "name": "String",
              "anchor": "Scheduler.String",
              "recv": "*Scheduler",
              "decl": "func (s *Scheduler) String() string",
              "doc": "String formats the resolved system order as \"a -> b -> c\" for debug overlays and logs.\n",
              "file": "pkg/entities/scheduler.go",
              "line": 198
            }
          ]
        },
        {
          "name": "Store",
          "anchor": "Store",
          "decl": "type Store[T any] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Store holds all instances of component type T in a World using a typed sparse set.\n\nDense arrays (dense and values) keep components tightly packed for cache-friendly, zero-allocation iteration, while sparse maps entity slot indices to dense indices in O(1) time.\n",
          "file": "pkg/entities/component.go",
          "line": 26,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Component",
              "anchor": "Component",
              "decl": "func Component[T any](w *World) *Store[T]",
              "doc": "Component returns the typed component Store for T in w, creating it if it does not yet exist.\n",
              "file": "pkg/entities/component.go",
              "line": 35
            }
          ],
          "methods": [
            {
              "name": "Each",
              "anchor": "Store.Each",
              "recv": "*Store[T]",
              "decl": "func (s *Store[T]) Each(fn func(Entity, *T) bool)",
              "doc": "Each calls fn for every entity carrying T in deterministic dense order until fn returns false.\nEach visits every entity carrying T in dense (insertion) order until fn returns false.\n\nA callback may destroy the entity it was handed, but not add or remove other\nentities/components of this store: a removal elsewhere swaps the last entry\ninto the removed slot, which can skip or revisit an entity. When the callback needs to touch other entities of the same store, collect them during Each and act after it returns. The *T is valid only until the callback adds a component to this store, which can grow it and move its values (#546).\n",
              "file": "pkg/entities/component.go",
              "line": 142
            },
            {
              "name": "Get",
              "anchor": "Store.Get",
              "recv": "*Store[T]",
              "decl": "func (s *Store[T]) Get(e Entity) (*T, bool)",
              "doc": "Get returns a pointer to e's component value and true, or (nil, false) if e is not alive or lacks T.\nThe returned pointer remains valid until components are added or removed from this store.\n",
              "file": "pkg/entities/component.go",
              "line": 114
            },
            {
              "name": "Has",
              "anchor": "Store.Has",
              "recv": "*Store[T]",
              "decl": "func (s *Store[T]) Has(e Entity) bool",
              "doc": "Has reports whether live entity e currently carries component T.\n",
              "file": "pkg/entities/component.go",
              "line": 123
            },
            {
              "name": "Len",
              "anchor": "Store.Len",
              "recv": "*Store[T]",
              "decl": "func (s *Store[T]) Len() int",
              "doc": "Len returns the number of entities that currently carry component T.\n",
              "file": "pkg/entities/component.go",
              "line": 79
            },
            {
              "name": "Remove",
              "anchor": "Store.Remove",
              "recv": "*Store[T]",
              "decl": "func (s *Store[T]) Remove(e Entity)",
              "doc": "Remove detaches component T from e if present. It is a no-op if e is stale or lacks T.\n",
              "file": "pkg/entities/component.go",
              "line": 129
            },
            {
              "name": "Set",
              "anchor": "Store.Set",
              "recv": "*Store[T]",
              "decl": "func (s *Store[T]) Set(e Entity, v T)",
              "doc": "Set attaches or replaces component v on e. It is a no-op if e is not alive in the store's World.\n",
              "file": "pkg/entities/component.go",
              "line": 82
            }
          ]
        },
        {
          "name": "SystemOption",
          "anchor": "SystemOption",
          "decl": "type SystemOption func(*systemEntry)",
          "doc": "SystemOption declares an ordering constraint on a system added to a Scheduler.\n",
          "file": "pkg/entities/scheduler.go",
          "line": 24,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "After",
              "anchor": "After",
              "decl": "func After(other string) SystemOption",
              "doc": "After constrains the system to run after the system named other.\n",
              "file": "pkg/entities/scheduler.go",
              "line": 34
            },
            {
              "name": "Before",
              "anchor": "Before",
              "decl": "func Before(other string) SystemOption",
              "doc": "Before constrains the system to run before the system named other.\n",
              "file": "pkg/entities/scheduler.go",
              "line": 27
            }
          ],
          "methods": []
        },
        {
          "name": "Transform2D",
          "anchor": "Transform2D",
          "decl": "type Transform2D struct {\n\tX        float32 `json:\"x\"`\n\tY        float32 `json:\"y\"`\n\tRotation float32 `json:\"rotation,omitempty\"`\n\tScaleX   float32 `json:\"scaleX\"`\n\tScaleY   float32 `json:\"scaleY\"`\n\tHidden   bool    `json:\"hidden,omitempty\"`\n}",
          "doc": "Transform2D is an entity's local 2D transform relative to its parent (or to world space when the entity is a root).\n\nThe zero value of Transform2D is visible (Hidden == false) with ScaleX == 0 and ScaleY == 0 (collapsed scale), matching game/sprite.Sprite.\nUse IdentityTransform2D or NewTransform2D to construct a visible transform with unit scale (1, 1).\n",
          "file": "pkg/entities/hierarchy.go",
          "line": 22,
          "members": [
            {
              "name": "X",
              "anchor": "Transform2D.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Transform2D.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "Transform2D.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleX",
              "anchor": "Transform2D.ScaleX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleY",
              "anchor": "Transform2D.ScaleY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "Transform2D.Hidden",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "IdentityTransform2D",
              "anchor": "IdentityTransform2D",
              "decl": "func IdentityTransform2D() Transform2D",
              "doc": "IdentityTransform2D returns a visible Transform2D at (0, 0) with zero rotation and unit scale (1, 1).\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 32
            },
            {
              "name": "NewTransform2D",
              "anchor": "NewTransform2D",
              "decl": "func NewTransform2D(x, y float32) Transform2D",
              "doc": "NewTransform2D returns a visible Transform2D at (x, y) with zero rotation and unit scale (1, 1).\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 37
            }
          ],
          "methods": [
            {
              "name": "Matrix",
              "anchor": "Transform2D.Matrix",
              "recv": "Transform2D",
              "decl": "func (t Transform2D) Matrix() [6]float32",
              "doc": "Matrix returns the local 2D affine matrix [a, b, c, d, tx, ty] mapping local points to parent space:\n\n\tpx = a*lx + c*ly + tx\n\tpy = b*lx + d*ly + ty\n\nThe layout matches nsgo/core.Drawing.Transform and game/sprite.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 53
            },
            {
              "name": "SetVisible",
              "anchor": "Transform2D.SetVisible",
              "recv": "*Transform2D",
              "decl": "func (t *Transform2D) SetVisible(visible bool)",
              "doc": "SetVisible sets whether this local transform is visible.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 45
            },
            {
              "name": "Visible",
              "anchor": "Transform2D.Visible",
              "recv": "Transform2D",
              "decl": "func (t Transform2D) Visible() bool",
              "doc": "Visible reports whether this local transform is visible (!t.Hidden).\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 42
            }
          ]
        },
        {
          "name": "World",
          "anchor": "World",
          "decl": "type World struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "World owns entities, their typed component stores, and registered serialization codecs.\n\nThe zero value of World is ready to use; NewWorld returns a freshly allocated one.\n",
          "file": "pkg/entities/world.go",
          "line": 54,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewWorld",
              "anchor": "NewWorld",
              "decl": "func NewWorld() *World",
              "doc": "NewWorld returns an empty World ready for spawning entities and attaching components.\n",
              "file": "pkg/entities/world.go",
              "line": 73
            }
          ],
          "methods": [
            {
              "name": "Alive",
              "anchor": "World.Alive",
              "recv": "*World",
              "decl": "func (w *World) Alive(e Entity) bool",
              "doc": "Alive reports whether e refers to a currently live entity in w.\n",
              "file": "pkg/entities/world.go",
              "line": 144
            },
            {
              "name": "Attach",
              "anchor": "World.Attach",
              "recv": "*World",
              "decl": "func (w *World) Attach(cx *core.Scope)",
              "doc": "Attach binds w's lifetime to cx so w.Dispose runs automatically when cx is disposed.\n",
              "file": "pkg/entities/world.go",
              "line": 78
            },
            {
              "name": "ChildrenOf",
              "anchor": "World.ChildrenOf",
              "recv": "*World",
              "decl": "func (w *World) ChildrenOf(e Entity) []Entity",
              "doc": "ChildrenOf returns e's direct children in w's Hierarchy2D without creating a hierarchy when none is attached.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 183
            },
            {
              "name": "Clear",
              "anchor": "World.Clear",
              "recv": "*World",
              "decl": "func (w *World) Clear()",
              "doc": "Clear removes all live entities and their components while preserving slot generations, allocated capacities and registered codecs for zero-allocation reuse.\nAll entity handles issued before Clear become stale.\n",
              "file": "pkg/entities/world.go",
              "line": 193
            },
            {
              "name": "CodecNames",
              "anchor": "World.CodecNames",
              "recv": "*World",
              "decl": "func (w *World) CodecNames() []string",
              "doc": "CodecNames returns the component codec names registered on w in ascending order.\n",
              "file": "pkg/entities/snapshot.go",
              "line": 148
            },
            {
              "name": "Count",
              "anchor": "World.Count",
              "recv": "*World",
              "decl": "func (w *World) Count() int",
              "doc": "Count returns the number of live entities in w.\n",
              "file": "pkg/entities/world.go",
              "line": 168
            },
            {
              "name": "DecodeComponent",
              "anchor": "World.DecodeComponent",
              "recv": "*World",
              "decl": "func (w *World) DecodeComponent(e Entity, typeName string, raw json.RawMessage) error",
              "doc": "DecodeComponent strictly decodes raw JSON into the codec-registered component named typeName and attaches or replaces it on live entity e. Unknown JSON fields, trailing data, invalid nulls for non-nullable component types and values the codec cannot encode back, such as a NaN, are rejected without mutating e.\n",
              "file": "pkg/entities/snapshot.go",
              "line": 200
            },
            {
              "name": "Destroy",
              "anchor": "World.Destroy",
              "recv": "*World",
              "decl": "func (w *World) Destroy(e Entity)",
              "doc": "Destroy removes e and all of its components from w and returns its slot to the free list with an incremented generation.\nDestroying Zero or an entity that is not alive in w is a no-op.\n",
              "file": "pkg/entities/world.go",
              "line": 122
            },
            {
              "name": "Dispose",
              "anchor": "World.Dispose",
              "recv": "*World",
              "decl": "func (w *World) Dispose()",
              "doc": "Dispose releases all entities and component storage in w and marks w as disposed.\nCalling Dispose more than once is a no-op.\n",
              "file": "pkg/entities/world.go",
              "line": 87
            },
            {
              "name": "Disposed",
              "anchor": "World.Disposed",
              "recv": "*World",
              "decl": "func (w *World) Disposed() bool",
              "doc": "Disposed reports whether w has been disposed.\n",
              "file": "pkg/entities/world.go",
              "line": 96
            },
            {
              "name": "Each",
              "anchor": "World.Each",
              "recv": "*World",
              "decl": "func (w *World) Each(fn func(Entity) bool)",
              "doc": "Each calls fn for every live entity in w in ascending slot-index order until fn returns false.\nEntities spawned during iteration are not visited.\n",
              "file": "pkg/entities/world.go",
              "line": 174
            },
            {
              "name": "EncodeComponent",
              "anchor": "World.EncodeComponent",
              "recv": "*World",
              "decl": "func (w *World) EncodeComponent(e Entity, typeName string) (json.RawMessage, bool, error)",
              "doc": "EncodeComponent encodes the codec-registered component named typeName on live entity e as JSON.\nIt returns (nil, false, nil) when e is not alive, typeName is not registered, or e does not carry the component.\n",
              "file": "pkg/entities/snapshot.go",
              "line": 178
            },
            {
              "name": "EntityComponents",
              "anchor": "World.EntityComponents",
              "recv": "*World",
              "decl": "func (w *World) EntityComponents(e Entity) ([]ComponentSnapshot, error)",
              "doc": "EntityComponents encodes all codec-registered components carried by live entity e in ascending codec-name order.\n",
              "file": "pkg/entities/snapshot.go",
              "line": 248
            },
            {
              "name": "HasCodec",
              "anchor": "World.HasCodec",
              "recv": "*World",
              "decl": "func (w *World) HasCodec(e Entity, typeName string) bool",
              "doc": "HasCodec reports whether live entity e currently carries the codec-registered component named typeName.\n",
              "file": "pkg/entities/snapshot.go",
              "line": 165
            },
            {
              "name": "Hierarchy2D",
              "anchor": "World.Hierarchy2D",
              "recv": "*World",
              "decl": "func (w *World) Hierarchy2D() *Hierarchy2D",
              "doc": "Hierarchy2D returns the World's 2D transform hierarchy, creating and attaching it on first call.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 170
            },
            {
              "name": "ParentOf",
              "anchor": "World.ParentOf",
              "recv": "*World",
              "decl": "func (w *World) ParentOf(e Entity) (Entity, bool)",
              "doc": "ParentOf returns e's parent entity in w's Hierarchy2D without creating a hierarchy when none is attached.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 175
            },
            {
              "name": "PatchComponent",
              "anchor": "World.PatchComponent",
              "recv": "*World",
              "decl": "func (w *World) PatchComponent(e Entity, typeName string, raw json.RawMessage) error",
              "doc": "PatchComponent strictly decodes raw JSON onto live entity e's existing codec-registered component (or its zero value when absent) and writes the result back atomically. Fields the patch does not change keep their current values, including unexported fields, fields tagged `json:\"-\"` and the identity of pointers, maps and slices. Unknown JSON fields, trailing data and values the codec cannot encode back, such as a NaN, are rejected without mutating e.\n",
              "file": "pkg/entities/snapshot.go",
              "line": 205
            },
            {
              "name": "RemoveComponent",
              "anchor": "World.RemoveComponent",
              "recv": "*World",
              "decl": "func (w *World) RemoveComponent(e Entity, typeName string) (bool, error)",
              "doc": "RemoveComponent detaches the codec-registered component named typeName from live entity e and reports whether it was present.\n",
              "file": "pkg/entities/snapshot.go",
              "line": 230
            },
            {
              "name": "Reset",
              "anchor": "World.Reset",
              "recv": "*World",
              "decl": "func (w *World) Reset()",
              "doc": "Reset removes all entities and releases entity and component backing storage while keeping registered codecs intact.\n",
              "file": "pkg/entities/world.go",
              "line": 219
            },
            {
              "name": "Resolve",
              "anchor": "World.Resolve",
              "recv": "*World",
              "decl": "func (w *World) Resolve(index, generation uint32) (Entity, bool)",
              "doc": "Resolve reconstructs the entity handle for (index, generation) and reports whether it is currently live in w.\n",
              "file": "pkg/entities/world.go",
              "line": 156
            },
            {
              "name": "Restore",
              "anchor": "World.Restore",
              "recv": "*World",
              "decl": "func (w *World) Restore(snap WorldSnapshot) error",
              "doc": "Restore atomically replaces w's entities and components with snap using w's registered codecs.\n\nEntity indices and generations are preserved verbatim so cross-entity references stored inside components remain valid. If decoding fails (for example due to an unknown codec or invalid JSON), w is left completely unchanged.\n\nAn error about the snapshot's contents is a *loaderr.Error that names the field at fault, such as \"entities[2].parent\", and how to fix it, and matches ErrInvalidSnapshot or ErrUnknownCodec with errors.Is.\n",
              "file": "pkg/entities/snapshot.go",
              "line": 326
            },
            {
              "name": "Snapshot",
              "anchor": "World.Snapshot",
              "recv": "*World",
              "decl": "func (w *World) Snapshot() (WorldSnapshot, error)",
              "doc": "Snapshot encodes all live entities and their codec-registered components into a deterministic WorldSnapshot.\nEntities are emitted in ascending slot-index order and each entity's components in ascending codec-name order.\n",
              "file": "pkg/entities/snapshot.go",
              "line": 277
            },
            {
              "name": "Spawn",
              "anchor": "World.Spawn",
              "recv": "*World",
              "decl": "func (w *World) Spawn() Entity",
              "doc": "Spawn creates a new live entity, recycling a previously destroyed slot when available.\nIt returns Zero if w has been disposed.\n",
              "file": "pkg/entities/world.go",
              "line": 102
            }
          ]
        },
        {
          "name": "WorldSnapshot",
          "anchor": "WorldSnapshot",
          "decl": "type WorldSnapshot struct {\n\tEntities []EntitySnapshot `json:\"entities\"`\n}",
          "doc": "WorldSnapshot is a deterministic, JSON-serializable snapshot of a World's live entities and registered components.\n",
          "file": "pkg/entities/snapshot.go",
          "line": 40,
          "members": [
            {
              "name": "Entities",
              "anchor": "WorldSnapshot.Entities",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldTransform2D",
          "anchor": "WorldTransform2D",
          "decl": "type WorldTransform2D struct {\n\tX            float32\n\tY            float32\n\tRotation     float32\n\tScaleX       float32\n\tScaleY       float32\n\tMatrix       [6]float32\n\tWorldVisible bool\n}",
          "doc": "WorldTransform2D is the cached world-space 2D transform composed from an entity's ancestor chain.\n\nMatrix holds the exact 2D affine transform [a, b, c, d, tx, ty] mapping local coordinates to world space.\nX, Y, Rotation, ScaleX and ScaleY hold the decomposed world position, orientation (radians), and axis scales.\nWorldVisible is true only when this entity and every ancestor are visible.\n",
          "file": "pkg/entities/hierarchy.go",
          "line": 74,
          "members": [
            {
              "name": "X",
              "anchor": "WorldTransform2D.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "WorldTransform2D.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "WorldTransform2D.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleX",
              "anchor": "WorldTransform2D.ScaleX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleY",
              "anchor": "WorldTransform2D.ScaleY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Matrix",
              "anchor": "WorldTransform2D.Matrix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldVisible",
              "anchor": "WorldTransform2D.WorldVisible",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "InverseTransformPoint",
              "anchor": "WorldTransform2D.InverseTransformPoint",
              "recv": "WorldTransform2D",
              "decl": "func (wt WorldTransform2D) InverseTransformPoint(wx, wy float32) (lx, ly float32)",
              "doc": "InverseTransformPoint maps a point (wx, wy) in world space back into this entity's local space.\nIf Matrix is singular (zero determinant), it returns (0, 0).\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 92
            },
            {
              "name": "TransformPoint",
              "anchor": "WorldTransform2D.TransformPoint",
              "recv": "WorldTransform2D",
              "decl": "func (wt WorldTransform2D) TransformPoint(lx, ly float32) (wx, wy float32)",
              "doc": "TransformPoint maps a point (lx, ly) in this entity's local space into world space.\n",
              "file": "pkg/entities/hierarchy.go",
              "line": 85
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/fighting",
      "name": "fighting",
      "dir": "pkg/fighting",
      "page": "pkg/fighting",
      "synopsis": "Package fighting buffers per-step fighting-game input and recognizes motion inputs (quarter circles, dragon punches, charges, double taps), button presses and combos from YAML move sets.",
      "doc": "Package fighting buffers per-step fighting-game input and recognizes motion inputs (quarter circles, dragon punches, charges, double taps), button presses and combos from YAML move sets.\n\nDirections use numpad notation: 5 is neutral, 6 is forward, 4 is back, 2 is down and 8 is up, with the diagonals on 1, 3, 7 and 9. A Recognizer samples one step at a time from any Source, such as *input.Actions or a *replay.Player, mirrors the direction when the character faces left, and reports the moves and combos completed on that step.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultDeadzone",
              "anchor": "DefaultDeadzone"
            }
          ],
          "decl": "const DefaultDeadzone = 0.5",
          "doc": "DefaultDeadzone is the axis magnitude at or above which an axis counts as pushed when Input.Deadzone is zero.\n",
          "file": "pkg/fighting/format.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the move set schema version written by Encode and required by Parse.\n",
          "file": "pkg/fighting/format.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "MaxButtons",
              "anchor": "MaxButtons"
            }
          ],
          "decl": "const MaxButtons = 32",
          "doc": "MaxButtons is the largest number of distinct button actions a move set may name.\n",
          "file": "pkg/fighting/format.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "MaxSteps",
              "anchor": "MaxSteps"
            }
          ],
          "decl": "const MaxSteps = 600",
          "doc": "MaxSteps bounds every step count in a move set (windows, buffers, charge times and combo gaps) to ten seconds at 60 steps per second, so a document cannot make a Recognizer allocate an unbounded history.\n",
          "file": "pkg/fighting/format.go",
          "line": 18
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(set *MoveSet) ([]byte, error)",
          "doc": "Encode validates set and serializes it as deterministic 2-space YAML with fields in schema order, so Parse followed by Encode reproduces Encode's output byte for byte.\n",
          "file": "pkg/fighting/format.go",
          "line": 133
        }
      ],
      "types": [
        {
          "name": "Buffer",
          "anchor": "Buffer",
          "decl": "type Buffer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Buffer is a fixed-capacity ring of the most recent Frames, one per step.\n\nPush allocates nothing, so a Buffer can sit in a fixed-step update loop. A Buffer is not safe for concurrent use.\n",
          "file": "pkg/fighting/buffer.go",
          "line": 22,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBuffer",
              "anchor": "NewBuffer",
              "decl": "func NewBuffer(capacity int) *Buffer",
              "doc": "NewBuffer returns an empty Buffer that keeps the last capacity frames; a capacity below 1 keeps one frame.\n",
              "file": "pkg/fighting/buffer.go",
              "line": 28
            }
          ],
          "methods": [
            {
              "name": "At",
              "anchor": "Buffer.At",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) At(step int) (Frame, bool)",
              "doc": "At returns the frame for step and whether it is still held.\n",
              "file": "pkg/fighting/buffer.go",
              "line": 73
            },
            {
              "name": "Cap",
              "anchor": "Buffer.Cap",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Cap() int",
              "doc": "Cap returns how many frames the buffer keeps.\n",
              "file": "pkg/fighting/buffer.go",
              "line": 58
            },
            {
              "name": "Latest",
              "anchor": "Buffer.Latest",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Latest() (Frame, bool)",
              "doc": "Latest returns the most recent frame and whether there is one.\n",
              "file": "pkg/fighting/buffer.go",
              "line": 70
            },
            {
              "name": "Len",
              "anchor": "Buffer.Len",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Len() int",
              "doc": "Len returns how many frames the buffer currently holds.\n",
              "file": "pkg/fighting/buffer.go",
              "line": 61
            },
            {
              "name": "Oldest",
              "anchor": "Buffer.Oldest",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Oldest() int",
              "doc": "Oldest returns the Step of the oldest frame still held, or Steps() when the buffer is empty.\n",
              "file": "pkg/fighting/buffer.go",
              "line": 67
            },
            {
              "name": "Push",
              "anchor": "Buffer.Push",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Push(raw Direction, held uint32, facing Facing) Frame",
              "doc": "Push records the next step's absolute direction, held buttons and facing, derives Dir and Pressed, and returns the stored frame. An invalid direction is recorded as Neutral.\n",
              "file": "pkg/fighting/buffer.go",
              "line": 33
            },
            {
              "name": "Reset",
              "anchor": "Buffer.Reset",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Reset()",
              "doc": "Reset empties the buffer and restarts step numbering at zero.\n",
              "file": "pkg/fighting/buffer.go",
              "line": 81
            },
            {
              "name": "Steps",
              "anchor": "Buffer.Steps",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Steps() int",
              "doc": "Steps returns how many frames have been pushed since the buffer was created or last reset; the latest frame's Step is Steps()-1.\n",
              "file": "pkg/fighting/buffer.go",
              "line": 64
            }
          ]
        },
        {
          "name": "Charge",
          "anchor": "Charge",
          "decl": "type Charge struct {\n\t// Dirs is a string of numpad digits any of which counts as holding the charge, such as \"147\" for any back direction.\n\tDirs string `yaml:\"dirs\"`\n\t// Steps is the least number of consecutive steps the charge must be held.\n\tSteps int `yaml:\"steps\"`\n\t// Grace is the most steps allowed between the end of the charge and the first motion entry, beyond the step that immediately follows it.\n\tGrace int `yaml:\"grace,omitempty\"`\n}",
          "doc": "Charge is a direction held for a number of consecutive steps before a motion starts.\n",
          "file": "pkg/fighting/format.go",
          "line": 80,
          "members": [
            {
              "name": "Dirs",
              "anchor": "Charge.Dirs",
              "kind": "field",
              "doc": "Dirs is a string of numpad digits any of which counts as holding the charge, such as \"147\" for any back direction."
            },
            {
              "name": "Steps",
              "anchor": "Charge.Steps",
              "kind": "field",
              "doc": "Steps is the least number of consecutive steps the charge must be held."
            },
            {
              "name": "Grace",
              "anchor": "Charge.Grace",
              "kind": "field",
              "doc": "Grace is the most steps allowed between the end of the charge and the first motion entry, beyond the step that immediately follows it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Combo",
          "anchor": "Combo",
          "decl": "type Combo struct {\n\t// Name identifies the combo in results; it must be unique across moves and combos.\n\tName string `yaml:\"name\"`\n\t// Sequence lists at least two move names in order.\n\tSequence []string `yaml:\"sequence\"`\n\t// Gap is the most steps between consecutive moves of the sequence, at least 1.\n\tGap int `yaml:\"gap\"`\n}",
          "doc": "Combo is a sequence of moves where each move follows the previous one within Gap steps.\n",
          "file": "pkg/fighting/format.go",
          "line": 90,
          "members": [
            {
              "name": "Name",
              "anchor": "Combo.Name",
              "kind": "field",
              "doc": "Name identifies the combo in results; it must be unique across moves and combos."
            },
            {
              "name": "Sequence",
              "anchor": "Combo.Sequence",
              "kind": "field",
              "doc": "Sequence lists at least two move names in order."
            },
            {
              "name": "Gap",
              "anchor": "Combo.Gap",
              "kind": "field",
              "doc": "Gap is the most steps between consecutive moves of the sequence, at least 1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Direction",
          "anchor": "Direction",
          "decl": "type Direction uint8",
          "doc": "Direction is a stick or pad direction in numpad notation, from 1 (down-back) to 9 (up-forward), with 5 for neutral. The zero value is invalid; Neutral is the resting direction.\n",
          "file": "pkg/fighting/direction.go",
          "line": 9,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DownBack",
                  "anchor": "DownBack"
                },
                {
                  "name": "Down",
                  "anchor": "Down"
                },
                {
                  "name": "DownForward",
                  "anchor": "DownForward"
                },
                {
                  "name": "Back",
                  "anchor": "Back"
                },
                {
                  "name": "Neutral",
                  "anchor": "Neutral"
                },
                {
                  "name": "Forward",
                  "anchor": "Forward"
                },
                {
                  "name": "UpBack",
                  "anchor": "UpBack"
                },
                {
                  "name": "Up",
                  "anchor": "Up"
                },
                {
                  "name": "UpForward",
                  "anchor": "UpForward"
                }
              ],
              "decl": "const (\n\tDownBack    Direction = 1\n\tDown        Direction = 2\n\tDownForward Direction = 3\n\tBack        Direction = 4\n\tNeutral     Direction = 5\n\tForward     Direction = 6\n\tUpBack      Direction = 7\n\tUp          Direction = 8\n\tUpForward   Direction = 9\n)",
              "doc": "Numpad directions relative to a character facing right, so Back is left and Forward is right.\n",
              "file": "pkg/fighting/direction.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "DirectionOf",
              "anchor": "DirectionOf",
              "decl": "func DirectionOf(x, y int) Direction",
              "doc": "DirectionOf returns the direction for a horizontal sign x and a vertical sign y, where x > 0 is right, x < 0 is left, y > 0 is up and y < 0 is down; zero is centered on that axis.\n",
              "file": "pkg/fighting/direction.go",
              "line": 25
            }
          ],
          "methods": [
            {
              "name": "Mirror",
              "anchor": "Direction.Mirror",
              "recv": "Direction",
              "decl": "func (d Direction) Mirror() Direction",
              "doc": "Mirror returns d flipped horizontally (4 and 6, 1 and 3, 7 and 9 swap). It converts between absolute directions and directions relative to a character facing left. An invalid direction is returned unchanged.\n",
              "file": "pkg/fighting/direction.go",
              "line": 63
            },
            {
              "name": "String",
              "anchor": "Direction.String",
              "recv": "Direction",
              "decl": "func (d Direction) String() string",
              "doc": "String returns the numpad digit for d, or \"?\" for an invalid direction.\n",
              "file": "pkg/fighting/direction.go",
              "line": 71
            },
            {
              "name": "Valid",
              "anchor": "Direction.Valid",
              "recv": "Direction",
              "decl": "func (d Direction) Valid() bool",
              "doc": "Valid reports whether d is one of the nine numpad directions.\n",
              "file": "pkg/fighting/direction.go",
              "line": 44
            },
            {
              "name": "X",
              "anchor": "Direction.X",
              "recv": "Direction",
              "decl": "func (d Direction) X() int",
              "doc": "X returns -1 when d points back (left), 1 when it points forward (right) and 0 otherwise, including for an invalid direction.\n",
              "file": "pkg/fighting/direction.go",
              "line": 47
            },
            {
              "name": "Y",
              "anchor": "Direction.Y",
              "recv": "Direction",
              "decl": "func (d Direction) Y() int",
              "doc": "Y returns -1 when d points down, 1 when it points up and 0 otherwise, including for an invalid direction.\n",
              "file": "pkg/fighting/direction.go",
              "line": 55
            }
          ]
        },
        {
          "name": "Facing",
          "anchor": "Facing",
          "decl": "type Facing uint8",
          "doc": "Facing is the side a character faces. The zero value, FaceRight, leaves directions unchanged; FaceLeft mirrors them so 6 always means toward the opponent.\n",
          "file": "pkg/fighting/direction.go",
          "line": 79,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FaceRight",
                  "anchor": "FaceRight"
                },
                {
                  "name": "FaceLeft",
                  "anchor": "FaceLeft"
                }
              ],
              "decl": "const (\n\t// FaceRight means forward is right: absolute and relative directions are the same.\n\tFaceRight Facing = iota\n\t// FaceLeft means forward is left: directions are mirrored before matching.\n\tFaceLeft\n)",
              "doc": "",
              "file": "pkg/fighting/direction.go",
              "line": 81
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Relative",
              "anchor": "Facing.Relative",
              "recv": "Facing",
              "decl": "func (f Facing) Relative(d Direction) Direction",
              "doc": "Relative returns the absolute direction d as seen by a character with facing f.\n",
              "file": "pkg/fighting/direction.go",
              "line": 89
            }
          ]
        },
        {
          "name": "Frame",
          "anchor": "Frame",
          "decl": "type Frame struct {\n\t// Step is the zero-based index of the step since the buffer was created or last reset.\n\tStep int\n\t// Raw is the absolute direction, with 4 meaning left and 6 meaning right.\n\tRaw Direction\n\t// Dir is Raw relative to Facing, with 4 meaning back and 6 meaning forward. Moves match against Dir.\n\tDir Direction\n\t// Facing is the side the character faced on this step.\n\tFacing Facing\n\t// Held has bit i set while button i is held.\n\tHeld uint32\n\t// Pressed has bit i set when button i is held on this step but was not held on the previous one.\n\tPressed uint32\n}",
          "doc": "Frame is the input sampled on one step.\n",
          "file": "pkg/fighting/buffer.go",
          "line": 4,
          "members": [
            {
              "name": "Step",
              "anchor": "Frame.Step",
              "kind": "field",
              "doc": "Step is the zero-based index of the step since the buffer was created or last reset."
            },
            {
              "name": "Raw",
              "anchor": "Frame.Raw",
              "kind": "field",
              "doc": "Raw is the absolute direction, with 4 meaning left and 6 meaning right."
            },
            {
              "name": "Dir",
              "anchor": "Frame.Dir",
              "kind": "field",
              "doc": "Dir is Raw relative to Facing, with 4 meaning back and 6 meaning forward. Moves match against Dir."
            },
            {
              "name": "Facing",
              "anchor": "Frame.Facing",
              "kind": "field",
              "doc": "Facing is the side the character faced on this step."
            },
            {
              "name": "Held",
              "anchor": "Frame.Held",
              "kind": "field",
              "doc": "Held has bit i set while button i is held."
            },
            {
              "name": "Pressed",
              "anchor": "Frame.Pressed",
              "kind": "field",
              "doc": "Pressed has bit i set when button i is held on this step but was not held on the previous one."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Input",
          "anchor": "Input",
          "decl": "type Input struct {\n\t// Up, Down, Left and Right are digital action names. Pressing both opposite actions cancels that axis (neutral SOCD).\n\tUp    string `yaml:\"up,omitempty\"`\n\tDown  string `yaml:\"down,omitempty\"`\n\tLeft  string `yaml:\"left,omitempty\"`\n\tRight string `yaml:\"right,omitempty\"`\n\t// AxisX is an analog axis name whose positive values point right.\n\tAxisX string `yaml:\"axisX,omitempty\"`\n\t// AxisY is an analog axis name whose positive values point down, as in screen coordinates and most gamepads; set YUp when positive values point up.\n\tAxisY string `yaml:\"axisY,omitempty\"`\n\t// YUp makes positive AxisY values point up.\n\tYUp bool `yaml:\"yUp,omitempty\"`\n\t// Deadzone is the magnitude in (0, 1] at or above which an axis counts as pushed; zero means DefaultDeadzone.\n\tDeadzone float64 `yaml:\"deadzone,omitempty\"`\n}",
          "doc": "Input names the actions and axes a Recognizer reads to build a direction each step. Actions and axes may be mixed; their contributions are summed per axis before the deadzone applies.\n",
          "file": "pkg/fighting/format.go",
          "line": 39,
          "members": [
            {
              "name": "Up",
              "anchor": "Input.Up",
              "kind": "field",
              "doc": "Up, Down, Left and Right are digital action names. Pressing both opposite actions cancels that axis (neutral SOCD)."
            },
            {
              "name": "Down",
              "anchor": "Input.Down",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Left",
              "anchor": "Input.Left",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Right",
              "anchor": "Input.Right",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AxisX",
              "anchor": "Input.AxisX",
              "kind": "field",
              "doc": "AxisX is an analog axis name whose positive values point right."
            },
            {
              "name": "AxisY",
              "anchor": "Input.AxisY",
              "kind": "field",
              "doc": "AxisY is an analog axis name whose positive values point down, as in screen coordinates and most gamepads; set YUp when positive values point up."
            },
            {
              "name": "YUp",
              "anchor": "Input.YUp",
              "kind": "field",
              "doc": "YUp makes positive AxisY values point up."
            },
            {
              "name": "Deadzone",
              "anchor": "Input.Deadzone",
              "kind": "field",
              "doc": "Deadzone is the magnitude in (0, 1] at or above which an axis counts as pushed; zero means DefaultDeadzone."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Match",
          "anchor": "Match",
          "decl": "type Match struct {\n\t// Name is the move's or combo's name.\n\tName string\n\t// Index is the position of the move in MoveSet.Moves, or of the combo in MoveSet.Combos.\n\tIndex int\n\t// Start is the step of the earliest input that formed the match: the first motion entry or chord button for a move, the first move's Step for a combo.\n\tStart int\n\t// Step is the step on which the match completed.\n\tStep int\n}",
          "doc": "Match is a move or combo completed on a step.\n",
          "file": "pkg/fighting/recognizer.go",
          "line": 19,
          "members": [
            {
              "name": "Name",
              "anchor": "Match.Name",
              "kind": "field",
              "doc": "Name is the move's or combo's name."
            },
            {
              "name": "Index",
              "anchor": "Match.Index",
              "kind": "field",
              "doc": "Index is the position of the move in MoveSet.Moves, or of the combo in MoveSet.Combos."
            },
            {
              "name": "Start",
              "anchor": "Match.Start",
              "kind": "field",
              "doc": "Start is the step of the earliest input that formed the match: the first motion entry or chord button for a move, the first move's Step for a combo."
            },
            {
              "name": "Step",
              "anchor": "Match.Step",
              "kind": "field",
              "doc": "Step is the step on which the match completed."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Move",
          "anchor": "Move",
          "decl": "type Move struct {\n\t// Name identifies the move in results and combos; it must be unique across moves and combos.\n\tName string `yaml:\"name\"`\n\t// Motion is the ordered direction sequence. Each entry is a string of one or more distinct numpad digits, any of which satisfies that step, so \"23\" accepts down or down-forward.\n\tMotion []string `yaml:\"motion,omitempty\"`\n\t// Window is the most steps allowed from the first to the last motion entry. It must be at least len(Motion)-1, and is refused on a move with fewer than 2 motion entries.\n\tWindow int `yaml:\"window,omitempty\"`\n\t// Charge requires a direction to be held before the motion starts.\n\tCharge *Charge `yaml:\"charge,omitempty\"`\n\t// Press lists button action names that finish the move. Without PressAll, pressing any one of them on the current step finishes it.\n\tPress []string `yaml:\"press,omitempty\"`\n\t// PressAll requires every Press button to be pressed within PressWindow steps, one of them on the current step.\n\tPressAll bool `yaml:\"pressAll,omitempty\"`\n\t// PressWindow is the most steps between the first and last button of a PressAll chord.\n\tPressWindow int `yaml:\"pressWindow,omitempty\"`\n\t// Buffer is the most steps the finishing press may come after the last motion entry. It needs both Motion and Press; a move without Press finishes on the first step its motion fits.\n\tBuffer int `yaml:\"buffer,omitempty\"`\n\t// Priority orders moves finished on the same step, highest first; ties keep definition order.\n\tPriority int `yaml:\"priority,omitempty\"`\n}",
          "doc": "Move is one recognizable input: a motion, a button press, or a motion finished by a button press.\n\nMotion steps are matched on distinct, increasing steps of the facing-relative direction history, so [\"6\", \"5\", \"6\"] is a forward double tap and [\"2\", \"3\", \"6\"] a quarter circle forward. All step counts are inclusive. Inputs that completed a move cannot complete it again: its next completion needs a motion that starts after that step.\n",
          "file": "pkg/fighting/format.go",
          "line": 58,
          "members": [
            {
              "name": "Name",
              "anchor": "Move.Name",
              "kind": "field",
              "doc": "Name identifies the move in results and combos; it must be unique across moves and combos."
            },
            {
              "name": "Motion",
              "anchor": "Move.Motion",
              "kind": "field",
              "doc": "Motion is the ordered direction sequence. Each entry is a string of one or more distinct numpad digits, any of which satisfies that step, so \"23\" accepts down or down-forward."
            },
            {
              "name": "Window",
              "anchor": "Move.Window",
              "kind": "field",
              "doc": "Window is the most steps allowed from the first to the last motion entry. It must be at least len(Motion)-1, and is refused on a move with fewer than 2 motion entries."
            },
            {
              "name": "Charge",
              "anchor": "Move.Charge",
              "kind": "field",
              "doc": "Charge requires a direction to be held before the motion starts."
            },
            {
              "name": "Press",
              "anchor": "Move.Press",
              "kind": "field",
              "doc": "Press lists button action names that finish the move. Without PressAll, pressing any one of them on the current step finishes it."
            },
            {
              "name": "PressAll",
              "anchor": "Move.PressAll",
              "kind": "field",
              "doc": "PressAll requires every Press button to be pressed within PressWindow steps, one of them on the current step."
            },
            {
              "name": "PressWindow",
              "anchor": "Move.PressWindow",
              "kind": "field",
              "doc": "PressWindow is the most steps between the first and last button of a PressAll chord."
            },
            {
              "name": "Buffer",
              "anchor": "Move.Buffer",
              "kind": "field",
              "doc": "Buffer is the most steps the finishing press may come after the last motion entry. It needs both Motion and Press; a move without Press finishes on the first step its motion fits."
            },
            {
              "name": "Priority",
              "anchor": "Move.Priority",
              "kind": "field",
              "doc": "Priority orders moves finished on the same step, highest first; ties keep definition order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MoveSet",
          "anchor": "MoveSet",
          "decl": "type MoveSet struct {\n\t// Version is the schema version; it must equal FormatVersion.\n\tVersion int `yaml:\"version\"`\n\t// Input names the actions and axes that make up the stick or pad.\n\tInput Input `yaml:\"input\"`\n\t// Moves are the motion inputs and button presses to recognize, in definition order.\n\tMoves []Move `yaml:\"moves\"`\n\t// Combos are sequences of moves performed with bounded gaps.\n\tCombos []Combo `yaml:\"combos,omitempty\"`\n}",
          "doc": "MoveSet is the root of a versioned YAML move set: how directions are read, the moves to recognize and the combos built from them.\n",
          "file": "pkg/fighting/format.go",
          "line": 27,
          "members": [
            {
              "name": "Version",
              "anchor": "MoveSet.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal FormatVersion."
            },
            {
              "name": "Input",
              "anchor": "MoveSet.Input",
              "kind": "field",
              "doc": "Input names the actions and axes that make up the stick or pad."
            },
            {
              "name": "Moves",
              "anchor": "MoveSet.Moves",
              "kind": "field",
              "doc": "Moves are the motion inputs and button presses to recognize, in definition order."
            },
            {
              "name": "Combos",
              "anchor": "MoveSet.Combos",
              "kind": "field",
              "doc": "Combos are sequences of moves performed with bounded gaps."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadFile",
              "anchor": "LoadFile",
              "decl": "func LoadFile(path string) (*MoveSet, error)",
              "doc": "LoadFile reads and parses the YAML move set at path.\n",
              "file": "pkg/fighting/format.go",
              "line": 124
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*MoveSet, error)",
              "doc": "Parse decodes a YAML move set and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/fighting/format.go",
              "line": 100
            }
          ],
          "methods": [
            {
              "name": "Buttons",
              "anchor": "MoveSet.Buttons",
              "recv": "*MoveSet",
              "decl": "func (set *MoveSet) Buttons() []string",
              "doc": "Buttons returns the distinct button action names the moves press, in order of first appearance. Bit i of Frame.Held and of the held mask passed to Recognizer.Feed is Buttons()[i].\n",
              "file": "pkg/fighting/format.go",
              "line": 289
            },
            {
              "name": "Lookback",
              "anchor": "MoveSet.Lookback",
              "recv": "*MoveSet",
              "decl": "func (set *MoveSet) Lookback() int",
              "doc": "Lookback returns how many past steps, including the current one, a Recognizer must keep to evaluate every move in set.\n",
              "file": "pkg/fighting/format.go",
              "line": 304
            },
            {
              "name": "Validate",
              "anchor": "MoveSet.Validate",
              "recv": "*MoveSet",
              "decl": "func (set *MoveSet) Validate() error",
              "doc": "Validate checks set against the schema: the version, input names, at least one move, unique non-empty names, well-formed motions and charges, step counts within [0, MaxSteps], at most MaxButtons buttons and combos that reference existing moves.\n",
              "file": "pkg/fighting/format.go",
              "line": 151
            }
          ]
        },
        {
          "name": "Recognizer",
          "anchor": "Recognizer",
          "decl": "type Recognizer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Recognizer buffers per-step input and recognizes the moves and combos of a MoveSet.\n\nCall Update (or Feed) exactly once per fixed step, after the Source has stepped. Recognition is deterministic: the same frames always give the same Results. For rollback, save the recognizer's state with AppendState alongside the rest of the simulation and restore it with LoadState before re-simulating. Update allocates nothing after construction. A Recognizer is not safe for concurrent use.\n",
          "file": "pkg/fighting/recognizer.go",
          "line": 45,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRecognizer",
              "anchor": "NewRecognizer",
              "decl": "func NewRecognizer(set *MoveSet) (*Recognizer, error)",
              "doc": "NewRecognizer validates set and returns a Recognizer for it whose buffer holds set.Lookback() steps. Later changes to set do not affect the Recognizer.\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 85
            }
          ],
          "methods": [
            {
              "name": "AppendState",
              "anchor": "Recognizer.AppendState",
              "recv": "*Recognizer",
              "decl": "func (r *Recognizer) AppendState(dst []byte) []byte",
              "doc": "AppendState appends the recognizer's complete state (the buffered frames, step count and the progress of every move and combo) to dst and returns the extended slice. The bytes are an in-memory snapshot for rollback, meant for LoadState on a Recognizer built from the same move set; they are not a file format.\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 255
            },
            {
              "name": "Buffer",
              "anchor": "Recognizer.Buffer",
              "recv": "*Recognizer",
              "decl": "func (r *Recognizer) Buffer() *Buffer",
              "doc": "Buffer returns the recognizer's input history. Push frames through Feed or Update rather than directly, so combos stay in step.\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 154
            },
            {
              "name": "Buttons",
              "anchor": "Recognizer.Buttons",
              "recv": "*Recognizer",
              "decl": "func (r *Recognizer) Buttons() []string",
              "doc": "Buttons returns the button action names in bit order, as MoveSet.Buttons does.\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 151
            },
            {
              "name": "Direction",
              "anchor": "Recognizer.Direction",
              "recv": "*Recognizer",
              "decl": "func (r *Recognizer) Direction(src Source) Direction",
              "doc": "Direction reads the absolute direction from src: digital actions add ±1 to their axis, analog axes add their value, and an axis whose total magnitude reaches the deadzone points that way.\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 157
            },
            {
              "name": "Feed",
              "anchor": "Recognizer.Feed",
              "recv": "*Recognizer",
              "decl": "func (r *Recognizer) Feed(raw Direction, held uint32, facing Facing) Result",
              "doc": "Feed records one step from an absolute direction and a held button mask (bit i for Buttons()[i]), for inputs that arrive already decoded, such as rollback netcode, and returns what completed on that step.\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 219
            },
            {
              "name": "Held",
              "anchor": "Recognizer.Held",
              "recv": "*Recognizer",
              "decl": "func (r *Recognizer) Held(src Source) uint32",
              "doc": "Held reads the held button mask from src, bit i for Buttons()[i].\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 203
            },
            {
              "name": "LoadState",
              "anchor": "Recognizer.LoadState",
              "recv": "*Recognizer",
              "decl": "func (r *Recognizer) LoadState(state []byte) error",
              "doc": "LoadState restores state written by AppendState, so the recognizer continues exactly as the one that wrote it would. It refuses state written for a different move set, or malformed state, and then leaves the recognizer unchanged.\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 283
            },
            {
              "name": "Reset",
              "anchor": "Recognizer.Reset",
              "recv": "*Recognizer",
              "decl": "func (r *Recognizer) Reset()",
              "doc": "Reset clears the input history and combo progress and restarts step numbering at zero.\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 238
            },
            {
              "name": "Update",
              "anchor": "Recognizer.Update",
              "recv": "*Recognizer",
              "decl": "func (r *Recognizer) Update(src Source, facing Facing) Result",
              "doc": "Update samples src for the current step with the character facing facing and returns what completed on it.\n",
              "file": "pkg/fighting/recognizer.go",
              "line": 214
            }
          ]
        },
        {
          "name": "Result",
          "anchor": "Result",
          "decl": "type Result struct {\n\t// Step is the step the result describes.\n\tStep int\n\t// Moves are the moves completed on Step, highest Priority first and in definition order among equal priorities. Moves[0] is the move a game would perform.\n\tMoves []Match\n\t// Combos are the combos whose last move completed on Step, in definition order.\n\tCombos []Match\n}",
          "doc": "Result lists what completed on one step.\n\nIts slices are reused by the next Update, Feed or Reset; copy them to keep them longer.\n",
          "file": "pkg/fighting/recognizer.go",
          "line": 33,
          "members": [
            {
              "name": "Step",
              "anchor": "Result.Step",
              "kind": "field",
              "doc": "Step is the step the result describes."
            },
            {
              "name": "Moves",
              "anchor": "Result.Moves",
              "kind": "field",
              "doc": "Moves are the moves completed on Step, highest Priority first and in definition order among equal priorities. Moves[0] is the move a game would perform."
            },
            {
              "name": "Combos",
              "anchor": "Result.Combos",
              "kind": "field",
              "doc": "Combos are the combos whose last move completed on Step, in definition order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Source",
          "anchor": "Source",
          "decl": "type Source interface {\n\tPressed(name string) bool\n\tAxis(name string) float64\n}",
          "doc": "Source supplies the actions and axes a Recognizer reads each step. *input.Actions, *replay.Recorder and *replay.Player all satisfy it.\n",
          "file": "pkg/fighting/recognizer.go",
          "line": 13,
          "members": [
            {
              "name": "Pressed",
              "anchor": "Source.Pressed",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Axis",
              "anchor": "Source.Axis",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/flow",
      "name": "flow",
      "dir": "pkg/flow",
      "page": "pkg/flow",
      "synopsis": "Package flow holds gameplay flow primitives driven by a game.Loop's fixed steps: game-clock timers, finite and hierarchical state machines, step sequences, a typed event bus and a branching dialogue runtime.",
      "doc": "Package flow holds gameplay flow primitives driven by a game.Loop's fixed steps: game-clock timers, finite and hierarchical state machines, step sequences, a typed event bus and a branching dialogue runtime.\n\nNothing in flow reads the wall clock, spawns goroutines or keeps package-level state, so every piece pauses with the loop, stays deterministic under nsgotest and isolates cleanly per scene or world.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultHistoryLimit",
              "anchor": "DefaultHistoryLimit"
            }
          ],
          "decl": "const DefaultHistoryLimit = 32",
          "doc": "DefaultHistoryLimit is the default maximum number of transitions retained by a Machine.\n",
          "file": "pkg/flow/machine.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "DefaultMaxStepsPerContinue",
              "anchor": "DefaultMaxStepsPerContinue"
            }
          ],
          "decl": "const DefaultMaxStepsPerContinue = 1024",
          "doc": "DefaultMaxStepsPerContinue is the default upper bound on internal statements\n(assignments, branches, jumps, commands) executed in a single Start, Continue,\nor Choose call before returning ErrStepLimitExceeded.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 35
        },
        {
          "idents": [
            {
              "name": "MachineSnapshotVersion",
              "anchor": "MachineSnapshotVersion"
            }
          ],
          "decl": "const MachineSnapshotVersion = 1",
          "doc": "MachineSnapshotVersion is the [MachineSnapshot] schema version written and read\nby [Machine.Snapshot] and [Machine.Restore].\n",
          "file": "pkg/flow/machine_snapshot.go",
          "line": 11
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNilScript",
              "anchor": "ErrNilScript"
            },
            {
              "name": "ErrUnknownNode",
              "anchor": "ErrUnknownNode"
            },
            {
              "name": "ErrInvalidChoice",
              "anchor": "ErrInvalidChoice"
            },
            {
              "name": "ErrChoiceUnavailable",
              "anchor": "ErrChoiceUnavailable"
            },
            {
              "name": "ErrNoPendingChoice",
              "anchor": "ErrNoPendingChoice"
            },
            {
              "name": "ErrChoiceRequired",
              "anchor": "ErrChoiceRequired"
            },
            {
              "name": "ErrStepLimitExceeded",
              "anchor": "ErrStepLimitExceeded"
            }
          ],
          "decl": "var (\n\t// ErrNilScript is returned when starting a DialogueRunner with a nil script.\n\tErrNilScript = errors.New(\"flow: nil dialogue script\")\n\t// ErrUnknownNode is returned when starting or jumping to a node not present in the script.\n\tErrUnknownNode = errors.New(\"flow: unknown dialogue node\")\n\t// ErrInvalidChoice is returned when Choose receives an out-of-range option index.\n\tErrInvalidChoice = errors.New(\"flow: invalid dialogue choice index\")\n\t// ErrChoiceUnavailable is returned when Choose selects an option whose <<if>> guard evaluated false.\n\tErrChoiceUnavailable = errors.New(\"flow: dialogue choice is unavailable\")\n\t// ErrNoPendingChoice is returned when Choose is called while no choice menu is active.\n\tErrNoPendingChoice = errors.New(\"flow: no pending dialogue choices\")\n\t// ErrChoiceRequired is returned when Continue is called while a choice menu is awaiting Choose.\n\tErrChoiceRequired = errors.New(\"flow: dialogue is waiting for Choose\")\n\t// ErrStepLimitExceeded is returned when execution exceeds MaxStepsPerContinue without yielding a line, choice, or end.\n\tErrStepLimitExceeded = errors.New(\"flow: dialogue step limit exceeded\")\n)",
          "doc": "",
          "file": "pkg/flow/dialogue.go",
          "line": 37
        },
        {
          "idents": [
            {
              "name": "ErrInvalidSnapshot",
              "anchor": "ErrInvalidSnapshot"
            }
          ],
          "decl": "var ErrInvalidSnapshot = errors.New(\"flow: invalid snapshot\")",
          "doc": "ErrInvalidSnapshot reports a snapshot that [Machine.Restore] refuses because its\nversion, recorded states, or timing do not match the target machine.\n",
          "file": "pkg/flow/machine_snapshot.go",
          "line": 15
        }
      ],
      "funcs": [
        {
          "name": "BindBus",
          "anchor": "BindBus",
          "decl": "func BindBus[E any, S comparable](m *HSM[S], b *Bus) (unsubscribe func())",
          "doc": "BindBus subscribes m to events of type E on b, forwarding each delivered event to m.Send in delivery order so it is processed on the next Update step.\nIt returns an idempotent unsubscribe function.\n",
          "file": "pkg/flow/hsm.go",
          "line": 292
        },
        {
          "name": "Enqueue",
          "anchor": "Enqueue",
          "decl": "func Enqueue[T any](b *Bus, event T)",
          "doc": "Enqueue buffers event on b to be delivered in FIFO order on the next Flush.\n",
          "file": "pkg/flow/bus.go",
          "line": 136
        },
        {
          "name": "FormatMachineInspection",
          "anchor": "FormatMachineInspection",
          "decl": "func FormatMachineInspection(snap MachineInspection) string",
          "doc": "FormatMachineInspection renders snap in a deterministic canonical text format suitable for\nstatedump Values and golden-file diffs across runs.\n",
          "file": "pkg/flow/machine.go",
          "line": 395
        },
        {
          "name": "OnAnyEvent",
          "anchor": "OnAnyEvent",
          "decl": "func OnAnyEvent[E any, S comparable](m *HSM[S], to S, guard func(E) bool)",
          "doc": "OnAnyEvent registers a typed wildcard event-triggered transition on m to to from any active state within m (when to is not already active).\nIt matches any queued event of type E when guard is nil or guard(ev) returns true.\n",
          "file": "pkg/flow/hsm.go",
          "line": 272
        },
        {
          "name": "OnEvent",
          "anchor": "OnEvent",
          "decl": "func OnEvent[E any, S comparable](m *HSM[S], from, to S, guard func(E) bool)",
          "doc": "OnEvent registers a typed event-triggered transition on m from from to to.\nIt matches any queued event of type E (including events forwarded from a Bus via BindBus) when guard is nil or guard(ev) returns true.\n",
          "file": "pkg/flow/hsm.go",
          "line": 252
        },
        {
          "name": "Publish",
          "anchor": "Publish",
          "decl": "func Publish[T any](b *Bus, event T)",
          "doc": "Publish synchronously delivers event to every current subscriber of type T on b in subscription order.\n\nSubscribers added during dispatch do not receive the event in flight; subscribers removed during dispatch are skipped if they have not yet run.\n",
          "file": "pkg/flow/bus.go",
          "line": 106
        },
        {
          "name": "Subscribe",
          "anchor": "Subscribe",
          "decl": "func Subscribe[T any](b *Bus, fn func(T)) (unsubscribe func())",
          "doc": "Subscribe registers fn to receive events of type T published on b and returns an idempotent unsubscribe function. A nil fn is ignored.\n",
          "file": "pkg/flow/bus.go",
          "line": 74
        },
        {
          "name": "SubscribeOnce",
          "anchor": "SubscribeOnce",
          "decl": "func SubscribeOnce[T any](b *Bus, fn func(T)) (unsubscribe func())",
          "doc": "SubscribeOnce registers fn to receive the next event of type T published on b, then automatically unsubscribes it before invoking fn. It returns an idempotent unsubscribe function to cancel before it fires.\n",
          "file": "pkg/flow/bus.go",
          "line": 79
        }
      ],
      "types": [
        {
          "name": "Bus",
          "anchor": "Bus",
          "decl": "type Bus struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Bus is a typed, zero-global-state event bus for communication between objects in a scene or world.\n\nThe zero value is ready to use. Handlers run in subscription order; unsubscribing or subscribing inside a handler never skips subsequent subscribers for the event in flight.\n",
          "file": "pkg/flow/bus.go",
          "line": 8,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clear",
              "anchor": "Bus.Clear",
              "recv": "*Bus",
              "decl": "func (b *Bus) Clear()",
              "doc": "Clear removes all subscribers and discards all buffered events from b.\n",
              "file": "pkg/flow/bus.go",
              "line": 152
            },
            {
              "name": "Flush",
              "anchor": "Bus.Flush",
              "recv": "*Bus",
              "decl": "func (b *Bus) Flush()",
              "doc": "Flush delivers all events buffered by Enqueue in FIFO order, including any events enqueued by handlers during Flush.\n",
              "file": "pkg/flow/bus.go",
              "line": 141
            }
          ]
        },
        {
          "name": "DialogueChoice",
          "anchor": "DialogueChoice",
          "decl": "type DialogueChoice struct {\n\tIndex     int\n\tText      string\n\tLineID    string\n\tAvailable bool\n\tTags      []string\n}",
          "doc": "DialogueChoice holds one option presented at a StepChoices step.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 143,
          "members": [
            {
              "name": "Index",
              "anchor": "DialogueChoice.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "DialogueChoice.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LineID",
              "anchor": "DialogueChoice.LineID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Available",
              "anchor": "DialogueChoice.Available",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "DialogueChoice.Tags",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DialogueEvent",
          "anchor": "DialogueEvent",
          "decl": "type DialogueEvent struct {\n\tCommand string\n\tArgs    []string\n\tNode    string\n}",
          "doc": "DialogueEvent is published onto flow.Bus (via Publish) and/or passed to\nDialogueOptions.OnCommand whenever a script executes a game command such as\n<<give_item key 1>> or <<play_sfx chime>>.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 94,
          "members": [
            {
              "name": "Command",
              "anchor": "DialogueEvent.Command",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Args",
              "anchor": "DialogueEvent.Args",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Node",
              "anchor": "DialogueEvent.Node",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DialogueLine",
          "anchor": "DialogueLine",
          "decl": "type DialogueLine struct {\n\tSpeaker string\n\tText    string\n\tLineID  string\n\tTags    []string\n}",
          "doc": "DialogueLine holds a resolved dialogue line produced by a DialogueRunner.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 135,
          "members": [
            {
              "name": "Speaker",
              "anchor": "DialogueLine.Speaker",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "DialogueLine.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LineID",
              "anchor": "DialogueLine.LineID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "DialogueLine.Tags",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DialogueOptions",
          "anchor": "DialogueOptions",
          "decl": "type DialogueOptions struct {\n\t// Bus, if non-nil, receives a DialogueEvent via Publish for every game command.\n\tBus *Bus\n\t// OnCommand, if non-nil, is invoked for every game command after Bus delivery.\n\tOnCommand func(DialogueEvent)\n\t// StringResolver, if non-nil, resolves localized text for dialogue lines and choices.\n\tStringResolver StringResolver\n\t// MaxStepsPerContinue caps internal statements per Start, Continue, or Choose call\n\t// to guard against infinite <<jump>> loops. Defaults to DefaultMaxStepsPerContinue.\n\tMaxStepsPerContinue int\n}",
          "doc": "DialogueOptions configures a DialogueRunner.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 159,
          "members": [
            {
              "name": "Bus",
              "anchor": "DialogueOptions.Bus",
              "kind": "field",
              "doc": "Bus, if non-nil, receives a DialogueEvent via Publish for every game command."
            },
            {
              "name": "OnCommand",
              "anchor": "DialogueOptions.OnCommand",
              "kind": "field",
              "doc": "OnCommand, if non-nil, is invoked for every game command after Bus delivery."
            },
            {
              "name": "StringResolver",
              "anchor": "DialogueOptions.StringResolver",
              "kind": "field",
              "doc": "StringResolver, if non-nil, resolves localized text for dialogue lines and choices."
            },
            {
              "name": "MaxStepsPerContinue",
              "anchor": "DialogueOptions.MaxStepsPerContinue",
              "kind": "field",
              "doc": "MaxStepsPerContinue caps internal statements per Start, Continue, or Choose call\nto guard against infinite <<jump>> loops. Defaults to DefaultMaxStepsPerContinue."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DialogueRunner",
          "anchor": "DialogueRunner",
          "decl": "type DialogueRunner struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DialogueRunner executes a parsed DialogueScript step by step.\n\nIt maintains variables, node visit counts, and the active execution stack\nwithout goroutines or global state. Game commands execute synchronously and\npublish typed DialogueEvent values on DialogueOptions.Bus when configured.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 1085,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDialogueRunner",
              "anchor": "NewDialogueRunner",
              "decl": "func NewDialogueRunner(script *DialogueScript, opts DialogueOptions) *DialogueRunner",
              "doc": "NewDialogueRunner creates a runner for script with the given options.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1097
            }
          ],
          "methods": [
            {
              "name": "Choose",
              "anchor": "DialogueRunner.Choose",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) Choose(optionIndex int) (DialogueStep, error)",
              "doc": "Choose selects optionIndex from the active StepChoices step and advances to\nthe next line, choice menu, or end of dialogue.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1141
            },
            {
              "name": "Continue",
              "anchor": "DialogueRunner.Continue",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) Continue() (DialogueStep, error)",
              "doc": "Continue advances an active dialogue to the next line, choice menu, or end.\nCalling Continue while a choice menu is awaiting Choose returns ErrChoiceRequired.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1129
            },
            {
              "name": "CurrentNode",
              "anchor": "DialogueRunner.CurrentNode",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) CurrentNode() string",
              "doc": "CurrentNode returns the title of the currently executing node, or \"\" when ended.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1161
            },
            {
              "name": "LoadState",
              "anchor": "DialogueRunner.LoadState",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) LoadState(state DialogueState)",
              "doc": "LoadState restores variables and visit counts from a previously saved DialogueState.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1209
            },
            {
              "name": "SetVar",
              "anchor": "DialogueRunner.SetVar",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) SetVar(name string, val any)",
              "doc": "SetVar sets a dialogue variable. A leading '$' is optional and normalized away.\nNumeric Go types are normalized to float64 to match Yarn expression semantics.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1167
            },
            {
              "name": "Start",
              "anchor": "DialogueRunner.Start",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) Start(node string) (DialogueStep, error)",
              "doc": "Start begins executing the script at the named node and advances until the\nfirst line, choice menu, or end of dialogue.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1111
            },
            {
              "name": "State",
              "anchor": "DialogueRunner.State",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) State() DialogueState",
              "doc": "State returns a serializable snapshot of the runner's variables and visit counts.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1199
            },
            {
              "name": "Var",
              "anchor": "DialogueRunner.Var",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) Var(name string) (any, bool)",
              "doc": "Var returns the current value of name (leading '$' optional) and whether it is set.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1175
            },
            {
              "name": "Vars",
              "anchor": "DialogueRunner.Vars",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) Vars() map[string]any",
              "doc": "Vars returns a shallow copy of all currently set dialogue variables (keys without leading '$').\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1184
            },
            {
              "name": "Visited",
              "anchor": "DialogueRunner.Visited",
              "recv": "*DialogueRunner",
              "decl": "func (r *DialogueRunner) Visited(node string) int",
              "doc": "Visited returns how many times the named node has been entered via Start or <<jump>>.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 1191
            }
          ]
        },
        {
          "name": "DialogueScript",
          "anchor": "DialogueScript",
          "decl": "type DialogueScript struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DialogueScript is a parsed Yarn Spinner script containing one or more named nodes.\nA parsed DialogueScript is immutable and safe to share across multiple DialogueRunners.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 56,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseYarn",
              "anchor": "ParseYarn",
              "decl": "func ParseYarn(src string) (*DialogueScript, error)",
              "doc": "ParseYarn parses Yarn Spinner (.yarn) source text into a reusable DialogueScript.\n\nSupported syntax:\n  - Node headers (title: ..., custom key: value) delimited by --- and ===\n  - Comments starting with //\n  - Dialogue lines: [Speaker: ]Text [#line:id] [#tag ...] with {expr} interpolation\n  - Branching choices: -> Option text [<<if cond>>] [#line:id] [#tag ...] with indented bodies\n  - Conditionals: <<if expr>> / <<elseif expr>> / <<else>> / <<endif>>\n  - Variables: <<set $var = expr>> (plus to, +=, -=, *=, /=) and <<declare $var = expr>>\n  - Control flow: <<jump NodeTitle>> and <<stop>>\n  - Game commands: <<command arg1 \"quoted arg\" $var {$expr}>>\n\nIts errors are *loaderr.Error values that give the line of the problem and how to fix it; a caller that read src from a file names it with loaderr.WithFile.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 282
            }
          ],
          "methods": [
            {
              "name": "HasNode",
              "anchor": "DialogueScript.HasNode",
              "recv": "*DialogueScript",
              "decl": "func (s *DialogueScript) HasNode(title string) bool",
              "doc": "HasNode reports whether the script contains a node with the given title.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 70
            },
            {
              "name": "NodeHeaders",
              "anchor": "DialogueScript.NodeHeaders",
              "recv": "*DialogueScript",
              "decl": "func (s *DialogueScript) NodeHeaders(title string) map[string]string",
              "doc": "NodeHeaders returns a copy of the header metadata declared on the named node,\nor nil if the node does not exist.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 80
            },
            {
              "name": "Nodes",
              "anchor": "DialogueScript.Nodes",
              "recv": "*DialogueScript",
              "decl": "func (s *DialogueScript) Nodes() []string",
              "doc": "Nodes returns the script's node titles in declaration order.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 62
            }
          ]
        },
        {
          "name": "DialogueState",
          "anchor": "DialogueState",
          "decl": "type DialogueState struct {\n\tVars    map[string]any `json:\"vars,omitempty\"`\n\tVisited map[string]int `json:\"visited,omitempty\"`\n}",
          "doc": "DialogueState is a JSON-serializable snapshot of a DialogueRunner's variables\nand node visit counts for save/load persistence.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 173,
          "members": [
            {
              "name": "Vars",
              "anchor": "DialogueState.Vars",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visited",
              "anchor": "DialogueState.Visited",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DialogueStep",
          "anchor": "DialogueStep",
          "decl": "type DialogueStep struct {\n\tKind    StepKind\n\tLine    DialogueLine\n\tChoices []DialogueChoice\n}",
          "doc": "DialogueStep is the result of Start, Continue, or Choose on a DialogueRunner.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 152,
          "members": [
            {
              "name": "Kind",
              "anchor": "DialogueStep.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "DialogueStep.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Choices",
              "anchor": "DialogueStep.Choices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HSM",
          "anchor": "HSM",
          "decl": "type HSM[S comparable] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "HSM is a hierarchical finite state machine keyed by states of type S and stepped by Update on a game.Loop.\n\nAny state may own a nested child *HSM[S] attached via AddChild, with its own initial state and optional shallow history (SetHistory).\nEnter callbacks run outside-in (parent before child), Exit callbacks run inside-out (child before parent), and transitions between branches exit up to the lowest common ancestor before entering down to the target leaf.\nTransitions declared on a parent apply while any descendant is active, and the innermost active state is checked first.\n\nEvent-triggered transitions (AddEventTransition, AddAnyEventTransition, OnEvent, OnAnyEvent) work alongside polled conditions (AddTransition, AddAnyTransition). Events sent through Send or forwarded from a Bus via BindBus are queued in FIFO send order and processed once per Update step.\n",
          "file": "pkg/flow/hsm.go",
          "line": 37,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHSM",
              "anchor": "NewHSM",
              "decl": "func NewHSM[S comparable](initial S) *HSM[S]",
              "doc": "NewHSM returns a hierarchical state machine whose initial state is initial.\nCall Start to run initial Enter callbacks before the first Update, or let the first Update start it automatically.\n",
              "file": "pkg/flow/hsm.go",
              "line": 71
            }
          ],
          "methods": [
            {
              "name": "AddAnyEventTransition",
              "anchor": "HSM.AddAnyEventTransition",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) AddAnyEventTransition(to S, event any, guard ...func() bool)",
              "doc": "AddAnyEventTransition registers an event-triggered wildcard transition to to from any active state within m (when to is not already active).\nIt fires when an event equal to event is processed and all non-nil guards return true. A nil event is ignored.\n",
              "file": "pkg/flow/hsm.go",
              "line": 227
            },
            {
              "name": "AddAnyTransition",
              "anchor": "HSM.AddAnyTransition",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) AddAnyTransition(to S, when func() bool)",
              "doc": "AddAnyTransition registers a polled wildcard transition to to from any active state within m.\nTransitions are evaluated in declaration order during Update, and a wildcard transition does not re-enter to when it is already active.\n",
              "file": "pkg/flow/hsm.go",
              "line": 191
            },
            {
              "name": "AddChild",
              "anchor": "HSM.AddChild",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) AddChild(parent S, child *HSM[S])",
              "doc": "AddChild attaches child as the nested state machine owned by state parent in m.\nPassing nil removes any child attached to parent.\nAddChild panics if attaching child would create a cycle or if child is already attached to a different parent machine.\n",
              "file": "pkg/flow/hsm.go",
              "line": 115
            },
            {
              "name": "AddEventTransition",
              "anchor": "HSM.AddEventTransition",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) AddEventTransition(from, to S, event any, guard ...func() bool)",
              "doc": "AddEventTransition registers an event-triggered transition from from to to that fires when an event equal to event is processed and all non-nil guards return true.\nA nil event is ignored.\n",
              "file": "pkg/flow/hsm.go",
              "line": 202
            },
            {
              "name": "AddState",
              "anchor": "HSM.AddState",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) AddState(id S, state State)",
              "doc": "AddState registers the Enter, Update and Exit callbacks for id, replacing any previously registered callbacks for id while preserving any attached child machine.\n",
              "file": "pkg/flow/hsm.go",
              "line": 104
            },
            {
              "name": "AddTransition",
              "anchor": "HSM.AddTransition",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) AddTransition(from, to S, when func() bool)",
              "doc": "AddTransition registers a polled conditional transition from from to to.\nTransitions are evaluated in declaration order during Update, with innermost active states checked first.\n",
              "file": "pkg/flow/hsm.go",
              "line": 180
            },
            {
              "name": "ClearHistory",
              "anchor": "HSM.ClearHistory",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) ClearHistory()",
              "doc": "ClearHistory forgets any recorded shallow history on m and all of its nested child machines.\n",
              "file": "pkg/flow/hsm.go",
              "line": 167
            },
            {
              "name": "Current",
              "anchor": "HSM.Current",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) Current() []S",
              "doc": "Current returns the active state path from m down to the active leaf state.\nBefore Start is called, Current returns the initial path from m to its initial leaf.\nFor an attached child machine that is not currently active, Current returns nil.\n",
              "file": "pkg/flow/hsm.go",
              "line": 655
            },
            {
              "name": "History",
              "anchor": "HSM.History",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) History() bool",
              "doc": "History reports whether shallow history is enabled on m.\n",
              "file": "pkg/flow/hsm.go",
              "line": 162
            },
            {
              "name": "In",
              "anchor": "HSM.In",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) In(state S) bool",
              "doc": "In reports whether state is currently active anywhere along m's active path.\n",
              "file": "pkg/flow/hsm.go",
              "line": 689
            },
            {
              "name": "Leaf",
              "anchor": "HSM.Leaf",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) Leaf() S",
              "doc": "Leaf returns the innermost active leaf state reachable from m, or the zero value of S if m is an inactive child machine.\n",
              "file": "pkg/flow/hsm.go",
              "line": 679
            },
            {
              "name": "Previous",
              "anchor": "HSM.Previous",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) Previous() S",
              "doc": "Previous returns the state before the last transition at m's level, or the zero value of S before any transition.\n",
              "file": "pkg/flow/hsm.go",
              "line": 694
            },
            {
              "name": "Send",
              "anchor": "HSM.Send",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) Send(event any)",
              "doc": "Send queues event onto the root machine in FIFO send order to be processed on the next Update step.\nEvents sent while Update is processing transitions or callbacks are deferred to the following step. A nil event is ignored.\n",
              "file": "pkg/flow/hsm.go",
              "line": 327
            },
            {
              "name": "SetHistory",
              "anchor": "HSM.SetHistory",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) SetHistory(enabled bool)",
              "doc": "SetHistory enables or disables shallow history on m.\nWhen enabled, re-entering m as a child machine resumes its last active direct child state instead of its initial state.\n",
              "file": "pkg/flow/hsm.go",
              "line": 157
            },
            {
              "name": "SetState",
              "anchor": "HSM.SetState",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) SetState(to S)",
              "doc": "SetState immediately switches to to, exiting up to the lowest common ancestor (inside-out) and entering down to the target leaf (outside-in).\nSwitching to the already-active leaf state after Start is a no-op.\n",
              "file": "pkg/flow/hsm.go",
              "line": 352
            },
            {
              "name": "Start",
              "anchor": "HSM.Start",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) Start()",
              "doc": "Start enters the initial state path from root to leaf if the machine has not yet started. Subsequent calls are no-ops.\n",
              "file": "pkg/flow/hsm.go",
              "line": 336
            },
            {
              "name": "TimeIn",
              "anchor": "HSM.TimeIn",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) TimeIn(state S) time.Duration",
              "doc": "TimeIn returns the game time spent in state if state is currently active along m's active path, or 0 otherwise.\n",
              "file": "pkg/flow/hsm.go",
              "line": 700
            },
            {
              "name": "TimeInState",
              "anchor": "HSM.TimeInState",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) TimeInState() time.Duration",
              "doc": "TimeInState returns the game time spent in m's current state since entering it.\n",
              "file": "pkg/flow/hsm.go",
              "line": 697
            },
            {
              "name": "Update",
              "anchor": "HSM.Update",
              "recv": "*HSM[S]",
              "decl": "func (m *HSM[S]) Update(dt time.Duration)",
              "doc": "Update advances the root machine by dt:\n 1. Starts the machine if needed.\n 2. Processes queued events (sent before this Update via Send or BindBus) once in FIFO send order, checking active states from innermost to outermost.\n 3. If no event triggered a transition, evaluates polled transitions from innermost to outermost in declaration order, taking at most one.\n 4. Advances TimeInState for every active state (when dt > 0) and runs each active state's Update callback from outside in.\n\nCalling Update on an attached child machine is a no-op; drive the hierarchy from the root machine.\n",
              "file": "pkg/flow/hsm.go",
              "line": 403
            }
          ]
        },
        {
          "name": "Handle",
          "anchor": "Handle",
          "decl": "type Handle struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Handle represents a running Step started on a Runner.\n",
          "file": "pkg/flow/sequence.go",
          "line": 20,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Cancel",
              "anchor": "Handle.Cancel",
              "recv": "*Handle",
              "decl": "func (h *Handle) Cancel()",
              "doc": "Cancel stops the step so it will not run further. Cancelling a nil or finished Handle is a no-op.\n",
              "file": "pkg/flow/sequence.go",
              "line": 86
            },
            {
              "name": "Done",
              "anchor": "Handle.Done",
              "recv": "*Handle",
              "decl": "func (h *Handle) Done() bool",
              "doc": "Done reports whether the step has finished or been cancelled.\n",
              "file": "pkg/flow/sequence.go",
              "line": 99
            }
          ]
        },
        {
          "name": "Machine",
          "anchor": "Machine",
          "decl": "type Machine[S comparable] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Machine is a finite state machine keyed by states of type S and stepped by Update on a game.Loop.\n",
          "file": "pkg/flow/machine.go",
          "line": 82,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMachine",
              "anchor": "NewMachine",
              "decl": "func NewMachine[S comparable](initial S) *Machine[S]",
              "doc": "NewMachine returns a state machine whose initial state is initial. Call Start to run the initial state's Enter callback before the first Update, or let the first Update start it automatically.\n",
              "file": "pkg/flow/machine.go",
              "line": 102
            }
          ],
          "methods": [
            {
              "name": "AddAnyTransition",
              "anchor": "Machine.AddAnyTransition",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) AddAnyTransition(to S, when func() bool)",
              "doc": "AddAnyTransition registers a conditional transition to to from any other state. Transitions are checked in declaration order during Update, and a wildcard transition does not re-enter to when already in it.\n",
              "file": "pkg/flow/machine.go",
              "line": 136
            },
            {
              "name": "AddNamedAnyTransition",
              "anchor": "Machine.AddNamedAnyTransition",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) AddNamedAnyTransition(name string, to S, when func() bool)",
              "doc": "AddNamedAnyTransition registers a labeled wildcard transition to to from any other state.\nWhen name is non-empty it is recorded in TransitionRecord.Transition whenever the transition fires;\nwhen empty, a default \"*->to\" label is used.\n",
              "file": "pkg/flow/machine.go",
              "line": 143
            },
            {
              "name": "AddNamedTransition",
              "anchor": "Machine.AddNamedTransition",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) AddNamedTransition(name string, from, to S, when func() bool)",
              "doc": "AddNamedTransition registers a labeled conditional transition from from to to.\nWhen name is non-empty it is recorded in TransitionRecord.Transition whenever the transition fires;\nwhen empty, a default \"from->to\" label is used.\n",
              "file": "pkg/flow/machine.go",
              "line": 127
            },
            {
              "name": "AddState",
              "anchor": "Machine.AddState",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) AddState(id S, state State)",
              "doc": "AddState registers the callbacks for id, replacing any previously registered for id.\n",
              "file": "pkg/flow/machine.go",
              "line": 112
            },
            {
              "name": "AddTransition",
              "anchor": "Machine.AddTransition",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) AddTransition(from, to S, when func() bool)",
              "doc": "AddTransition registers a conditional transition from from to to. Transitions are checked in declaration order during Update.\n",
              "file": "pkg/flow/machine.go",
              "line": 120
            },
            {
              "name": "ClearHistory",
              "anchor": "Machine.ClearHistory",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) ClearHistory()",
              "doc": "ClearHistory discards all recorded transitions without changing HistoryLimit or Step.\n",
              "file": "pkg/flow/machine.go",
              "line": 326
            },
            {
              "name": "Current",
              "anchor": "Machine.Current",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) Current() S",
              "doc": "Current returns the machine's current state.\n",
              "file": "pkg/flow/machine.go",
              "line": 262
            },
            {
              "name": "FormatState",
              "anchor": "Machine.FormatState",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) FormatState() string",
              "doc": "FormatState returns a deterministic, human-readable text summary of m's current state and\ntransition history suitable for statedump Values and diffing AI decisions across runs.\n",
              "file": "pkg/flow/machine.go",
              "line": 389
            },
            {
              "name": "History",
              "anchor": "Machine.History",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) History() []TransitionRecord[S]",
              "doc": "History returns m's retained transitions in chronological order (oldest to newest).\n",
              "file": "pkg/flow/machine.go",
              "line": 350
            },
            {
              "name": "HistoryInto",
              "anchor": "Machine.HistoryInto",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) HistoryInto(dst []TransitionRecord[S]) []TransitionRecord[S]",
              "doc": "HistoryInto appends m's retained transitions in chronological order (oldest to newest)\ninto dst[:0], performing zero heap allocations when cap(dst) is sufficient.\n",
              "file": "pkg/flow/machine.go",
              "line": 337
            },
            {
              "name": "HistoryLimit",
              "anchor": "Machine.HistoryLimit",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) HistoryLimit() int",
              "doc": "HistoryLimit returns the maximum number of transitions retained in m's ring buffer.\nBefore SetHistoryLimit is called, HistoryLimit returns DefaultHistoryLimit.\n",
              "file": "pkg/flow/machine.go",
              "line": 280
            },
            {
              "name": "Inspect",
              "anchor": "Machine.Inspect",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) Inspect() MachineInspection",
              "doc": "Inspect returns a type-erased read-only snapshot of m's current state and transition history.\n",
              "file": "pkg/flow/machine.go",
              "line": 358
            },
            {
              "name": "Previous",
              "anchor": "Machine.Previous",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) Previous() S",
              "doc": "Previous returns the state before the last transition, or the zero value of S before any transition.\n",
              "file": "pkg/flow/machine.go",
              "line": 265
            },
            {
              "name": "Restore",
              "anchor": "Machine.Restore",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) Restore(snap MachineSnapshot[S]) error",
              "doc": "Restore validates snap against m's known states and replaces m's runtime state\nwithout calling any Exit or Enter callbacks.\n\nRestore refuses snapshots with an unsupported version, unknown Current or non-zero\nPrevious state, negative TimeInState, or non-zero TimeInState/Previous on an unstarted\nmachine, leaving m unchanged and returning an error wrapping [ErrInvalidSnapshot].\n",
              "file": "pkg/flow/machine_snapshot.go",
              "line": 58
            },
            {
              "name": "SetHistoryLimit",
              "anchor": "Machine.SetHistoryLimit",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) SetHistoryLimit(limit int)",
              "doc": "SetHistoryLimit sets the maximum number of recent transitions retained by m.\nPassing 0 or a negative value disables transition history and clears any retained entries.\nShrinking the limit preserves the most recent transitions in chronological order.\n",
              "file": "pkg/flow/machine.go",
              "line": 290
            },
            {
              "name": "SetState",
              "anchor": "Machine.SetState",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) SetState(to S)",
              "doc": "SetState immediately switches to to, running the current state's Exit and to's Enter callbacks. Switching to the current state after Start is a no-op.\n",
              "file": "pkg/flow/machine.go",
              "line": 164
            },
            {
              "name": "Snapshot",
              "anchor": "Machine.Snapshot",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) Snapshot() MachineSnapshot[S]",
              "doc": "Snapshot returns m's runtime state as plain data. Restoring it into a fresh\n[Machine] with the same states and transitions resumes from the exact state and\nTimeInState without running Exit or Enter hooks.\n",
              "file": "pkg/flow/machine_snapshot.go",
              "line": 39
            },
            {
              "name": "Start",
              "anchor": "Machine.Start",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) Start()",
              "doc": "Start runs the initial state's Enter callback if the machine has not yet started. Subsequent calls are no-ops.\n",
              "file": "pkg/flow/machine.go",
              "line": 152
            },
            {
              "name": "Started",
              "anchor": "Machine.Started",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) Started() bool",
              "doc": "Started reports whether the machine has been started (either via [Machine.Start],\n[Machine.SetState], [Machine.Update], or [Machine.Restore]).\n",
              "file": "pkg/flow/machine_snapshot.go",
              "line": 34
            },
            {
              "name": "Step",
              "anchor": "Machine.Step",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) Step() uint64",
              "doc": "Step returns the number of Update steps executed by m.\n",
              "file": "pkg/flow/machine.go",
              "line": 271
            },
            {
              "name": "TimeInState",
              "anchor": "Machine.TimeInState",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) TimeInState() time.Duration",
              "doc": "TimeInState returns the game time spent in the current state since entering it.\n",
              "file": "pkg/flow/machine.go",
              "line": 268
            },
            {
              "name": "Update",
              "anchor": "Machine.Update",
              "recv": "*Machine[S]",
              "decl": "func (m *Machine[S]) Update(dt time.Duration)",
              "doc": "Update advances the machine by dt: it starts the machine if needed, increments Step, evaluates transitions in declaration order (taking at most one), adds dt to TimeInState and runs the current state's Update callback.\n",
              "file": "pkg/flow/machine.go",
              "line": 235
            }
          ]
        },
        {
          "name": "MachineInspection",
          "anchor": "MachineInspection",
          "decl": "type MachineInspection struct {\n\t// Current is the formatted current state.\n\tCurrent string\n\t// Previous is the formatted previous state (empty when HasPrevious is false).\n\tPrevious string\n\t// HasPrevious reports whether at least one transition has occurred.\n\tHasPrevious bool\n\t// Step is the total number of Update steps executed.\n\tStep uint64\n\t// TimeInState is the elapsed game time spent in Current.\n\tTimeInState time.Duration\n\t// History lists the retained recent transitions in chronological order (oldest to newest).\n\tHistory []TransitionSnapshot\n}",
          "doc": "MachineInspection is a type-erased, read-only snapshot of a Machine's current state and transition history.\n",
          "file": "pkg/flow/machine.go",
          "line": 49,
          "members": [
            {
              "name": "Current",
              "anchor": "MachineInspection.Current",
              "kind": "field",
              "doc": "Current is the formatted current state."
            },
            {
              "name": "Previous",
              "anchor": "MachineInspection.Previous",
              "kind": "field",
              "doc": "Previous is the formatted previous state (empty when HasPrevious is false)."
            },
            {
              "name": "HasPrevious",
              "anchor": "MachineInspection.HasPrevious",
              "kind": "field",
              "doc": "HasPrevious reports whether at least one transition has occurred."
            },
            {
              "name": "Step",
              "anchor": "MachineInspection.Step",
              "kind": "field",
              "doc": "Step is the total number of Update steps executed."
            },
            {
              "name": "TimeInState",
              "anchor": "MachineInspection.TimeInState",
              "kind": "field",
              "doc": "TimeInState is the elapsed game time spent in Current."
            },
            {
              "name": "History",
              "anchor": "MachineInspection.History",
              "kind": "field",
              "doc": "History lists the retained recent transitions in chronological order (oldest to newest)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MachineInspector",
          "anchor": "MachineInspector",
          "decl": "type MachineInspector interface {\n\t// Inspect returns a type-erased read-only snapshot of the machine's current state and transition history.\n\tInspect() MachineInspection\n\t// FormatState returns a deterministic text summary of the machine's current state and transition history.\n\tFormatState() string\n}",
          "doc": "MachineInspector is implemented by every *Machine[S] so tools and debug overlays can inspect\nany Machine regardless of its state type parameter S.\n",
          "file": "pkg/flow/machine.go",
          "line": 66,
          "members": [
            {
              "name": "Inspect",
              "anchor": "MachineInspector.Inspect",
              "kind": "method",
              "doc": "Inspect returns a type-erased read-only snapshot of the machine's current state and transition history."
            },
            {
              "name": "FormatState",
              "anchor": "MachineInspector.FormatState",
              "kind": "method",
              "doc": "FormatState returns a deterministic text summary of the machine's current state and transition history."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MachineSnapshot",
          "anchor": "MachineSnapshot",
          "decl": "type MachineSnapshot[S comparable] struct {\n\t// Version is MachineSnapshotVersion.\n\tVersion int `json:\"version\" yaml:\"version\"`\n\t// Current is the machine's active state (or its initial state if not yet started).\n\tCurrent S `json:\"current\" yaml:\"current\"`\n\t// Previous is the state before the last transition, or the zero value of S before any transition.\n\tPrevious S `json:\"previous,omitempty\" yaml:\"previous,omitempty\"`\n\t// TimeInState is the game time spent in Current since entering it.\n\tTimeInState time.Duration `json:\"timeInState,omitempty\" yaml:\"timeInState,omitempty\"`\n\t// Started reports whether the machine has entered its initial state.\n\tStarted bool `json:\"started,omitempty\" yaml:\"started,omitempty\"`\n}",
          "doc": "MachineSnapshot holds a [Machine]'s runtime state as plain data that marshals\ndeterministically to YAML and JSON, for save slots, rollback netcode, and state dumps.\n",
          "file": "pkg/flow/machine_snapshot.go",
          "line": 19,
          "members": [
            {
              "name": "Version",
              "anchor": "MachineSnapshot.Version",
              "kind": "field",
              "doc": "Version is MachineSnapshotVersion."
            },
            {
              "name": "Current",
              "anchor": "MachineSnapshot.Current",
              "kind": "field",
              "doc": "Current is the machine's active state (or its initial state if not yet started)."
            },
            {
              "name": "Previous",
              "anchor": "MachineSnapshot.Previous",
              "kind": "field",
              "doc": "Previous is the state before the last transition, or the zero value of S before any transition."
            },
            {
              "name": "TimeInState",
              "anchor": "MachineSnapshot.TimeInState",
              "kind": "field",
              "doc": "TimeInState is the game time spent in Current since entering it."
            },
            {
              "name": "Started",
              "anchor": "MachineSnapshot.Started",
              "kind": "field",
              "doc": "Started reports whether the machine has entered its initial state."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Runner",
          "anchor": "Runner",
          "decl": "type Runner struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Runner drives one or more active Steps on each game step. The zero value is ready to use.\n",
          "file": "pkg/flow/sequence.go",
          "line": 14,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clear",
              "anchor": "Runner.Clear",
              "recv": "*Runner",
              "decl": "func (r *Runner) Clear()",
              "doc": "Clear cancels every active Handle on the Runner.\n",
              "file": "pkg/flow/sequence.go",
              "line": 36
            },
            {
              "name": "Start",
              "anchor": "Runner.Start",
              "recv": "*Runner",
              "decl": "func (r *Runner) Start(step Step) *Handle",
              "doc": "Start schedules step to run on subsequent Update calls and returns a Handle to observe or cancel it. A nil step returns an already-done Handle.\n",
              "file": "pkg/flow/sequence.go",
              "line": 26
            },
            {
              "name": "Update",
              "anchor": "Runner.Update",
              "recv": "*Runner",
              "decl": "func (r *Runner) Update(dt time.Duration)",
              "doc": "Update advances all active steps by dt in start order. Steps started from inside a callback begin on the next Update step.\n",
              "file": "pkg/flow/sequence.go",
              "line": 47
            }
          ]
        },
        {
          "name": "State",
          "anchor": "State",
          "decl": "type State struct {\n\t// Enter runs once when the machine enters the state.\n\tEnter func()\n\t// Update runs on each Machine.Update step while the machine is in the state.\n\tUpdate func(dt time.Duration)\n\t// Exit runs once when the machine leaves the state.\n\tExit func()\n}",
          "doc": "State holds the optional callbacks for one state of a Machine.\n",
          "file": "pkg/flow/machine.go",
          "line": 14,
          "members": [
            {
              "name": "Enter",
              "anchor": "State.Enter",
              "kind": "field",
              "doc": "Enter runs once when the machine enters the state."
            },
            {
              "name": "Update",
              "anchor": "State.Update",
              "kind": "field",
              "doc": "Update runs on each Machine.Update step while the machine is in the state."
            },
            {
              "name": "Exit",
              "anchor": "State.Exit",
              "kind": "field",
              "doc": "Exit runs once when the machine leaves the state."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Step",
          "anchor": "Step",
          "decl": "type Step interface {\n\tUpdate(dt time.Duration) (leftover time.Duration, done bool)\n\tCancel()\n}",
          "doc": "Step is one unit of work in a sequence, advanced deterministically by Update without goroutines.\n\nUpdate advances the step by up to dt and returns any unused time along with whether the step has finished, so a Seq can pass leftover time to the next step on the same tick. Cancel stops an unfinished step cleanly when its Handle or an enclosing Race cancels it.\n",
          "file": "pkg/flow/sequence.go",
          "line": 8,
          "members": [
            {
              "name": "Update",
              "anchor": "Step.Update",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Cancel",
              "anchor": "Step.Cancel",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Do",
              "anchor": "Do",
              "decl": "func Do(fn func()) Step",
              "doc": "Do returns a Step that calls fn once and completes immediately, passing all remaining dt to the next step.\n",
              "file": "pkg/flow/sequence.go",
              "line": 136
            },
            {
              "name": "Loop",
              "anchor": "Loop",
              "decl": "func Loop(makeStep func() Step) Step",
              "doc": "Loop returns a Step that repeats the Step returned by makeStep until cancelled. A zero-duration body runs once per Update step rather than spinning indefinitely.\n",
              "file": "pkg/flow/sequence.go",
              "line": 411
            },
            {
              "name": "Parallel",
              "anchor": "Parallel",
              "decl": "func Parallel(steps ...Step) Step",
              "doc": "Parallel returns a Step that updates every branch on each step until all branches have completed.\n",
              "file": "pkg/flow/sequence.go",
              "line": 295
            },
            {
              "name": "Race",
              "anchor": "Race",
              "decl": "func Race(steps ...Step) Step",
              "doc": "Race returns a Step that updates branches in order until the first branch completes, then cancels the remaining branches.\n",
              "file": "pkg/flow/sequence.go",
              "line": 351
            },
            {
              "name": "Repeat",
              "anchor": "Repeat",
              "decl": "func Repeat(n int, makeStep func() Step) Step",
              "doc": "Repeat returns a Step that runs the Step returned by makeStep n times in sequence. A non-positive n or nil makeStep completes immediately.\n",
              "file": "pkg/flow/sequence.go",
              "line": 403
            },
            {
              "name": "Seq",
              "anchor": "Seq",
              "decl": "func Seq(steps ...Step) Step",
              "doc": "Seq returns a Step that runs steps in order, carrying any leftover dt from a completed step into the next one on the same tick. Nil entries are skipped.\n",
              "file": "pkg/flow/sequence.go",
              "line": 245
            },
            {
              "name": "Wait",
              "anchor": "Wait",
              "decl": "func Wait(d time.Duration) Step",
              "doc": "Wait returns a Step that completes after d of game time has elapsed.\n",
              "file": "pkg/flow/sequence.go",
              "line": 104
            },
            {
              "name": "WaitUntil",
              "anchor": "WaitUntil",
              "decl": "func WaitUntil(cond func() bool) Step",
              "doc": "WaitUntil returns a Step that completes on the first Update where cond returns true (or immediately if cond is nil).\n",
              "file": "pkg/flow/sequence.go",
              "line": 164
            },
            {
              "name": "While",
              "anchor": "While",
              "decl": "func While(cond func() bool, update func(dt time.Duration)) Step",
              "doc": "While returns a Step that runs update(dt) on each step while cond returns true, completing as soon as cond returns false.\n",
              "file": "pkg/flow/sequence.go",
              "line": 196
            }
          ],
          "methods": []
        },
        {
          "name": "StepKind",
          "anchor": "StepKind",
          "decl": "type StepKind int",
          "doc": "StepKind identifies what a DialogueStep produced.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 109,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "StepEnded",
                  "anchor": "StepEnded"
                },
                {
                  "name": "StepLine",
                  "anchor": "StepLine"
                },
                {
                  "name": "StepChoices",
                  "anchor": "StepChoices"
                }
              ],
              "decl": "const (\n\t// StepEnded indicates the dialogue reached the end of a node, hit <<stop>>, or has not started.\n\tStepEnded StepKind = iota\n\t// StepLine indicates a single spoken or narrated line is ready to display.\n\tStepLine\n\t// StepChoices indicates one or more player choices are awaiting Choose.\n\tStepChoices\n)",
              "doc": "",
              "file": "pkg/flow/dialogue.go",
              "line": 111
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "StepKind.String",
              "recv": "StepKind",
              "decl": "func (k StepKind) String() string",
              "doc": "String returns a human-readable name for the StepKind.\n",
              "file": "pkg/flow/dialogue.go",
              "line": 121
            }
          ]
        },
        {
          "name": "StringResolver",
          "anchor": "StringResolver",
          "decl": "type StringResolver func(lineID, fallback string, vars map[string]any) string",
          "doc": "StringResolver resolves localized text for a dialogue line or choice.\n\nIt receives the #line:<id> identifier (empty if untagged), the raw source text\nfrom the Yarn script as fallback, and a snapshot of the runner's variables.\nAny remaining {expr} placeholders in the returned string are interpolated by\nthe runner using its current variables.\n",
          "file": "pkg/flow/dialogue.go",
          "line": 106,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Timer",
          "anchor": "Timer",
          "decl": "type Timer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Timer is a handle to a callback scheduled on a Timers scheduler.\n",
          "file": "pkg/flow/timer.go",
          "line": 18,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Active",
              "anchor": "Timer.Active",
              "recv": "*Timer",
              "decl": "func (t *Timer) Active() bool",
              "doc": "Active reports whether the timer is still scheduled to fire.\n",
              "file": "pkg/flow/timer.go",
              "line": 147
            },
            {
              "name": "Cancel",
              "anchor": "Timer.Cancel",
              "recv": "*Timer",
              "decl": "func (t *Timer) Cancel()",
              "doc": "Cancel stops the timer so it will not fire again. Cancelling a nil or inactive timer is a no-op.\n",
              "file": "pkg/flow/timer.go",
              "line": 137
            },
            {
              "name": "Remaining",
              "anchor": "Timer.Remaining",
              "recv": "*Timer",
              "decl": "func (t *Timer) Remaining() time.Duration",
              "doc": "Remaining returns the game time left before the timer next fires, or 0 when inactive.\n",
              "file": "pkg/flow/timer.go",
              "line": 152
            }
          ]
        },
        {
          "name": "Timers",
          "anchor": "Timers",
          "decl": "type Timers struct {\n\t// Paused stops Update from advancing timers when true.\n\tPaused bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Timers schedules one-shot and repeating callbacks on the game clock rather than the wall clock.\n\nCall Update on each fixed step of a game.Loop; timers pause automatically while the loop is paused or while Paused is true. The zero value is ready to use.\n",
          "file": "pkg/flow/timer.go",
          "line": 8,
          "members": [
            {
              "name": "Paused",
              "anchor": "Timers.Paused",
              "kind": "field",
              "doc": "Paused stops Update from advancing timers when true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "After",
              "anchor": "Timers.After",
              "recv": "*Timers",
              "decl": "func (ts *Timers) After(d time.Duration, fn func()) *Timer",
              "doc": "After schedules fn to run once after d of game time has elapsed. A non-positive d fires on the next Update step.\n",
              "file": "pkg/flow/timer.go",
              "line": 28
            },
            {
              "name": "Clear",
              "anchor": "Timers.Clear",
              "recv": "*Timers",
              "decl": "func (ts *Timers) Clear()",
              "doc": "Clear cancels all scheduled timers.\n",
              "file": "pkg/flow/timer.go",
              "line": 60
            },
            {
              "name": "Every",
              "anchor": "Timers.Every",
              "recv": "*Timers",
              "decl": "func (ts *Timers) Every(d time.Duration, fn func()) *Timer",
              "doc": "Every schedules fn to run each time d of game time elapses, carrying any overshoot into the next period so repeating timers do not drift. A non-positive d fires once per Update step.\n",
              "file": "pkg/flow/timer.go",
              "line": 33
            },
            {
              "name": "SetPaused",
              "anchor": "Timers.SetPaused",
              "recv": "*Timers",
              "decl": "func (ts *Timers) SetPaused(paused bool)",
              "doc": "SetPaused sets whether Update advances scheduled timers.\n",
              "file": "pkg/flow/timer.go",
              "line": 55
            },
            {
              "name": "Update",
              "anchor": "Timers.Update",
              "recv": "*Timers",
              "decl": "func (ts *Timers) Update(dt time.Duration)",
              "doc": "Update advances all active timers by dt and fires expired ones in registration order.\n\nCallbacks may safely cancel existing timers or schedule new ones; newly scheduled timers begin counting on the following Update step.\n",
              "file": "pkg/flow/timer.go",
              "line": 73
            }
          ]
        },
        {
          "name": "TransitionRecord",
          "anchor": "TransitionRecord",
          "decl": "type TransitionRecord[S comparable] struct {\n\t// From is the state the machine left.\n\tFrom S\n\t// To is the state the machine entered.\n\tTo S\n\t// Step is the Update step count on which the transition occurred (0 before the first Update).\n\tStep uint64\n\t// Transition names the transition that fired: the label passed to AddNamedTransition or\n\t// AddNamedAnyTransition, \"from->to\" / \"*->to\" for unnamed transitions, or \"SetState\".\n\tTransition string\n}",
          "doc": "TransitionRecord records one state transition taken by a Machine.\n",
          "file": "pkg/flow/machine.go",
          "line": 24,
          "members": [
            {
              "name": "From",
              "anchor": "TransitionRecord.From",
              "kind": "field",
              "doc": "From is the state the machine left."
            },
            {
              "name": "To",
              "anchor": "TransitionRecord.To",
              "kind": "field",
              "doc": "To is the state the machine entered."
            },
            {
              "name": "Step",
              "anchor": "TransitionRecord.Step",
              "kind": "field",
              "doc": "Step is the Update step count on which the transition occurred (0 before the first Update)."
            },
            {
              "name": "Transition",
              "anchor": "TransitionRecord.Transition",
              "kind": "field",
              "doc": "Transition names the transition that fired: the label passed to AddNamedTransition or\nAddNamedAnyTransition, \"from->to\" / \"*->to\" for unnamed transitions, or \"SetState\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TransitionSnapshot",
          "anchor": "TransitionSnapshot",
          "decl": "type TransitionSnapshot struct {\n\t// From is the formatted state the machine left.\n\tFrom string\n\t// To is the formatted state the machine entered.\n\tTo string\n\t// Step is the Update step count on which the transition occurred.\n\tStep uint64\n\t// Transition names the transition that fired.\n\tTransition string\n}",
          "doc": "TransitionSnapshot is a type-erased TransitionRecord for inspection and debug overlays.\n",
          "file": "pkg/flow/machine.go",
          "line": 37,
          "members": [
            {
              "name": "From",
              "anchor": "TransitionSnapshot.From",
              "kind": "field",
              "doc": "From is the formatted state the machine left."
            },
            {
              "name": "To",
              "anchor": "TransitionSnapshot.To",
              "kind": "field",
              "doc": "To is the formatted state the machine entered."
            },
            {
              "name": "Step",
              "anchor": "TransitionSnapshot.Step",
              "kind": "field",
              "doc": "Step is the Update step count on which the transition occurred."
            },
            {
              "name": "Transition",
              "anchor": "TransitionSnapshot.Transition",
              "kind": "field",
              "doc": "Transition names the transition that fired."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/fog",
      "name": "fog",
      "dir": "pkg/fog",
      "page": "pkg/fog",
      "synopsis": "Package fog tracks fog of war for strategy games: which cells of an orthogonal, isometric, staggered or hexagonal tile grid each team has explored and which it can see right now.",
      "doc": "Package fog tracks fog of war for strategy games: which cells of an orthogonal, isometric, staggered or hexagonal tile grid each team has explored and which it can see right now.\n\nA Fog holds a grid of opaque cells (walls, cliffs, forests) and a set of vision sources (units and buildings), each with a team, a cell and a radius in cells. Update recomputes every changed team's visible cells by symmetric shadowcasting from its sources, limited to each source's radius, and adds them to the cells the team has explored, which stay explored when the sources move away. A cell is therefore Unseen, Explored or Visible to each team.\n\nDraw paints the fog over a tilemap in world coordinates under a tilemap.Camera aligned to the map's orientation (rectangles for orthogonal grids, diamonds for isometric and staggered grids, hexagons for hexagonal grids), and a Fog marshals to and from versioned JSON text, so a save.Store slot keeps a team's explored map, the sources and the opaque cells through a save and load.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the snapshot schema version MarshalJSON writes and the newest UnmarshalJSON reads.\n",
          "file": "pkg/fog/snapshot.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "MaxCells",
              "anchor": "MaxCells"
            }
          ],
          "decl": "const MaxCells = 1 << 24",
          "doc": "MaxCells is the largest number of cells (width times height) a Fog holds.\n",
          "file": "pkg/fog/fog.go",
          "line": 20
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrInvalidSnapshot",
              "anchor": "ErrInvalidSnapshot"
            },
            {
              "name": "ErrFutureVersion",
              "anchor": "ErrFutureVersion"
            }
          ],
          "decl": "var (\n\t// ErrInvalidSnapshot reports a fog snapshot that is malformed, has unknown fields, or disagrees with its own grid size.\n\tErrInvalidSnapshot = errors.New(\"fog: invalid snapshot\")\n\t// ErrFutureVersion reports a fog snapshot written by a newer schema version than this package reads.\n\tErrFutureVersion = errors.New(\"fog: snapshot version newer than supported\")\n)",
          "doc": "",
          "file": "pkg/fog/snapshot.go",
          "line": 19
        }
      ],
      "funcs": [],
      "types": [
        {
          "name": "Fog",
          "anchor": "Fog",
          "decl": "type Fog struct {\n\t// TileWidth and TileHeight are a cell's size in world points, used by Draw and CellAt.\n\tTileWidth, TileHeight float32\n\t// Origin is the world-space position of cell (0, 0)'s origin, copied from Tilemap.Origin by NewFromTilemap.\n\tOrigin core.Point\n\t// Orientation selects how cells are arranged for visibility, CellAt and Draw.\n\t// The zero value (tilemap.OrientationOrthogonal) preserves orthogonal behavior.\n\tOrientation tilemap.Orientation\n\t// StaggerAxis selects which axis is staggered for staggered isometric and hexagonal grids.\n\tStaggerAxis tilemap.StaggerAxis\n\t// StaggerIndex selects whether odd or even rows or columns are shifted for staggered and hexagonal grids.\n\tStaggerIndex tilemap.StaggerIndex\n\t// HexSideLength is the length of a hex's flat side along its staggered axis; 0 defaults to half TileWidth (StaggerX) or half TileHeight (StaggerY), matching tilemap.Tilemap.\n\tHexSideLength float32\n\t// contains filtered or unexported fields\n}",
          "doc": "Fog is the fog of war of one map for every team: opaque cells, vision sources, and each team's visible and explored cells.\n\nA Fog is not safe for concurrent use. Change sources and opaque cells during a fixed step, then call Update once before reading or drawing the fog.\n",
          "file": "pkg/fog/fog.go",
          "line": 66,
          "members": [
            {
              "name": "TileWidth",
              "anchor": "Fog.TileWidth",
              "kind": "field",
              "doc": "TileWidth and TileHeight are a cell's size in world points, used by Draw and CellAt."
            },
            {
              "name": "TileHeight",
              "anchor": "Fog.TileHeight",
              "kind": "field",
              "doc": "TileWidth and TileHeight are a cell's size in world points, used by Draw and CellAt."
            },
            {
              "name": "Origin",
              "anchor": "Fog.Origin",
              "kind": "field",
              "doc": "Origin is the world-space position of cell (0, 0)'s origin, copied from Tilemap.Origin by NewFromTilemap."
            },
            {
              "name": "Orientation",
              "anchor": "Fog.Orientation",
              "kind": "field",
              "doc": "Orientation selects how cells are arranged for visibility, CellAt and Draw.\nThe zero value (tilemap.OrientationOrthogonal) preserves orthogonal behavior."
            },
            {
              "name": "StaggerAxis",
              "anchor": "Fog.StaggerAxis",
              "kind": "field",
              "doc": "StaggerAxis selects which axis is staggered for staggered isometric and hexagonal grids."
            },
            {
              "name": "StaggerIndex",
              "anchor": "Fog.StaggerIndex",
              "kind": "field",
              "doc": "StaggerIndex selects whether odd or even rows or columns are shifted for staggered and hexagonal grids."
            },
            {
              "name": "HexSideLength",
              "anchor": "Fog.HexSideLength",
              "kind": "field",
              "doc": "HexSideLength is the length of a hex's flat side along its staggered axis; 0 defaults to half TileWidth (StaggerX) or half TileHeight (StaggerY), matching tilemap.Tilemap."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(width, height int, tileWidth, tileHeight float32) *Fog",
              "doc": "New returns a Fog over a grid of width by height cells, each tileWidth by tileHeight world points, with no opaque cells, sources or teams.\n\nNew panics if width or height is negative, exactly one of them is zero, or the grid has more than MaxCells cells.\n",
              "file": "pkg/fog/fog.go",
              "line": 103
            },
            {
              "name": "NewFromTilemap",
              "anchor": "NewFromTilemap",
              "decl": "func NewFromTilemap(m *tilemap.Tilemap, mask tilemap.TileFlags) *Fog",
              "doc": "NewFromTilemap returns a Fog matching m's grid size, tile size, world Origin and projection (Orientation, StaggerAxis, StaggerIndex, HexSideLength) in which every cell whose tilemap flags include any bit of mask is opaque; a zero mask makes no cell opaque.\n",
              "file": "pkg/fog/fog.go",
              "line": 120
            }
          ],
          "methods": [
            {
              "name": "AddSource",
              "anchor": "Fog.AddSource",
              "recv": "*Fog",
              "decl": "func (f *Fog) AddSource(s Source) SourceID",
              "doc": "AddSource adds a vision source and returns its ID; its team sees from it at the next Update.\n",
              "file": "pkg/fog/fog.go",
              "line": 227
            },
            {
              "name": "CellAt",
              "anchor": "Fog.CellAt",
              "recv": "*Fog",
              "decl": "func (f *Fog) CellAt(p core.Point) (col, row int, ok bool)",
              "doc": "CellAt returns the cell holding world point p, given TileWidth and TileHeight, and whether it lies in the grid.\n",
              "file": "pkg/fog/fog.go",
              "line": 424
            },
            {
              "name": "Draw",
              "anchor": "Fog.Draw",
              "recv": "*Fog",
              "decl": "func (f *Fog) Draw(d *core.Drawing, team Team, cam *tilemap.Camera, style Style)",
              "doc": "Draw paints team's fog over the grid in world coordinates, as of the last Update: one filled path of Style.Unseen over unseen cells and one of Style.Explored over explored cells. Visible cells stay uncovered.\n\nLike tilemap.Tilemap.Draw, Draw expects d to already carry the camera's transform (cam.Apply(d)), and uses cam only to skip cells outside cam.VisibleBounds(); a nil cam draws the whole grid. Draw it after the tilemap and units so it covers them. Orthogonal grids emit horizontal runs of rectangles; isometric and staggered grids emit aligned tile diamonds; hexagonal grids emit aligned pointy-top or flat-top hexagons matching Tilemap's projection.\n",
              "file": "pkg/fog/draw.go",
              "line": 26
            },
            {
              "name": "Explore",
              "anchor": "Fog.Explore",
              "recv": "*Fog",
              "decl": "func (f *Fog) Explore(team Team, col, row int)",
              "doc": "Explore marks (col, row) explored for team without making it visible, such as for a scouting report or a revealed landmark. Cells outside the grid are ignored.\n",
              "file": "pkg/fog/fog.go",
              "line": 463
            },
            {
              "name": "ExploreAll",
              "anchor": "Fog.ExploreAll",
              "recv": "*Fog",
              "decl": "func (f *Fog) ExploreAll(team Team)",
              "doc": "ExploreAll marks the whole grid explored for team, such as for a map-reveal cheat or a replay viewer.\n",
              "file": "pkg/fog/fog.go",
              "line": 499
            },
            {
              "name": "ExploreRect",
              "anchor": "Fog.ExploreRect",
              "recv": "*Fog",
              "decl": "func (f *Fog) ExploreRect(team Team, col, row, w, h int)",
              "doc": "ExploreRect marks the cells from (col, row) spanning w columns and h rows explored for team, clipped to the grid.\n",
              "file": "pkg/fog/fog.go",
              "line": 468
            },
            {
              "name": "Explored",
              "anchor": "Fog.Explored",
              "recv": "*Fog",
              "decl": "func (f *Fog) Explored(team Team, col, row int) bool",
              "doc": "Explored reports whether team has ever seen (col, row), including cells it sees now.\n",
              "file": "pkg/fog/fog.go",
              "line": 421
            },
            {
              "name": "ExploredCount",
              "anchor": "Fog.ExploredCount",
              "recv": "*Fog",
              "decl": "func (f *Fog) ExploredCount(team Team) int",
              "doc": "ExploredCount returns how many cells team has explored, such as for an exploration percentage.\n",
              "file": "pkg/fog/fog.go",
              "line": 514
            },
            {
              "name": "Forget",
              "anchor": "Fog.Forget",
              "recv": "*Fog",
              "decl": "func (f *Fog) Forget(team Team)",
              "doc": "Forget clears every cell team has explored except those it sees now, such as for a \"re-fog\" effect.\n",
              "file": "pkg/fog/fog.go",
              "line": 502
            },
            {
              "name": "Height",
              "anchor": "Fog.Height",
              "recv": "*Fog",
              "decl": "func (f *Fog) Height() int",
              "doc": "Height returns the grid's height in cells.\n",
              "file": "pkg/fog/fog.go",
              "line": 173
            },
            {
              "name": "InBounds",
              "anchor": "Fog.InBounds",
              "recv": "*Fog",
              "decl": "func (f *Fog) InBounds(col, row int) bool",
              "doc": "InBounds reports whether (col, row) is a cell of the grid.\n",
              "file": "pkg/fog/fog.go",
              "line": 176
            },
            {
              "name": "MarshalJSON",
              "anchor": "Fog.MarshalJSON",
              "recv": "Fog",
              "decl": "func (f Fog) MarshalJSON() ([]byte, error)",
              "doc": "MarshalJSON writes the fog as versioned JSON text: the grid size, tile size, opaque cells, sources and each team's explored cells, in a fixed order with sources by ID and teams in increasing order, so the same fog always writes the same bytes.\n\nVisible cells are not written; UnmarshalJSON recomputes them from the sources and opaque cells, so a Fog passed to save.Store.Save and back through save.Store.Load sees and has explored exactly what it did.\n\nMarshalJSON has a value receiver so a Fog held by value in a struct that is saved by value still writes its snapshot rather than its exported fields alone.\n",
              "file": "pkg/fog/snapshot.go",
              "line": 68
            },
            {
              "name": "Move",
              "anchor": "Fog.Move",
              "recv": "*Fog",
              "decl": "func (f *Fog) Move(id SourceID, col, row int) bool",
              "doc": "Move moves the source with id to (col, row) and reports whether it exists.\n",
              "file": "pkg/fog/fog.go",
              "line": 257
            },
            {
              "name": "MoveTo",
              "anchor": "Fog.MoveTo",
              "recv": "*Fog",
              "decl": "func (f *Fog) MoveTo(id SourceID, p core.Point) bool",
              "doc": "MoveTo moves the source with id to the cell holding world point p (see CellAt) and reports whether it exists.\n",
              "file": "pkg/fog/fog.go",
              "line": 267
            },
            {
              "name": "Opaque",
              "anchor": "Fog.Opaque",
              "recv": "*Fog",
              "decl": "func (f *Fog) Opaque(col, row int) bool",
              "doc": "Opaque reports whether (col, row) blocks sight; cells outside the grid report true.\n",
              "file": "pkg/fog/fog.go",
              "line": 189
            },
            {
              "name": "RemoveSource",
              "anchor": "Fog.RemoveSource",
              "recv": "*Fog",
              "decl": "func (f *Fog) RemoveSource(id SourceID) bool",
              "doc": "RemoveSource removes the source with id, such as when a unit dies, and reports whether it existed. Its team stops seeing from it at the next Update, but keeps what it explored.\n",
              "file": "pkg/fog/fog.go",
              "line": 273
            },
            {
              "name": "Revision",
              "anchor": "Fog.Revision",
              "recv": "*Fog",
              "decl": "func (f *Fog) Revision(team Team) uint64",
              "doc": "Revision returns a number that grows whenever team's visible or explored cells change, and that every team gets afresh when the fog is loaded, so a minimap or cached fog texture can redraw only when it differs. Revisions come from one counter shared by every Fog in the program, so a Fog loaded in place of another, even through save.Store.Load, never repeats a revision a cache has already seen. A team with nothing reports 0.\n",
              "file": "pkg/fog/fog.go",
              "line": 527
            },
            {
              "name": "SetOpaque",
              "anchor": "Fog.SetOpaque",
              "recv": "*Fog",
              "decl": "func (f *Fog) SetOpaque(col, row int, opaque bool)",
              "doc": "SetOpaque makes (col, row) block sight or not, such as when a door opens or a forest burns, and marks every team for the next Update. Cells outside the grid are ignored.\n\nAn opaque cell is still seen itself when a source has sight of it, so walls show at the edge of vision.\n",
              "file": "pkg/fog/fog.go",
              "line": 199
            },
            {
              "name": "SetSource",
              "anchor": "Fog.SetSource",
              "recv": "*Fog",
              "decl": "func (f *Fog) SetSource(id SourceID, s Source) bool",
              "doc": "SetSource replaces the source with id, such as when a unit moves, changes sides or gains sight range, and reports whether it exists. A change marks the old and new teams for the next Update; setting the same values does nothing.\n",
              "file": "pkg/fog/fog.go",
              "line": 242
            },
            {
              "name": "Source",
              "anchor": "Fog.Source",
              "recv": "*Fog",
              "decl": "func (f *Fog) Source(id SourceID) (Source, bool)",
              "doc": "Source returns the source with id and whether it exists.\n",
              "file": "pkg/fog/fog.go",
              "line": 236
            },
            {
              "name": "Sources",
              "anchor": "Fog.Sources",
              "recv": "*Fog",
              "decl": "func (f *Fog) Sources() []SourceID",
              "doc": "Sources returns the IDs of every source in increasing order.\n",
              "file": "pkg/fog/fog.go",
              "line": 284
            },
            {
              "name": "State",
              "anchor": "Fog.State",
              "recv": "*Fog",
              "decl": "func (f *Fog) State(team Team, col, row int) State",
              "doc": "State returns what team knows about (col, row) as of the last Update; cells outside the grid and teams with nothing are Unseen.\n",
              "file": "pkg/fog/fog.go",
              "line": 402
            },
            {
              "name": "Teams",
              "anchor": "Fog.Teams",
              "recv": "*Fog",
              "decl": "func (f *Fog) Teams() []Team",
              "doc": "Teams returns every team that has had a source or explored cells, in increasing order.\n",
              "file": "pkg/fog/fog.go",
              "line": 294
            },
            {
              "name": "UnmarshalJSON",
              "anchor": "Fog.UnmarshalJSON",
              "recv": "*Fog",
              "decl": "func (f *Fog) UnmarshalJSON(data []byte) error",
              "doc": "UnmarshalJSON replaces the fog with one read from JSON text written by MarshalJSON, and recomputes every team's visible cells from the sources.\n\nIt refuses unknown fields, a missing or newer version (ErrFutureVersion), a grid larger than MaxCells or with exactly one zero size, rows that disagree with the grid size, sources or teams out of order or repeated, a source ID above nextSource, and a source whose team has no explored grid. On error the fog is unchanged.\n",
              "file": "pkg/fog/snapshot.go",
              "line": 153
            },
            {
              "name": "Update",
              "anchor": "Fog.Update",
              "recv": "*Fog",
              "decl": "func (f *Fog) Update() bool",
              "doc": "Update recomputes the visible cells of every team whose sources or opaque cells changed since the last Update, adds them to the team's explored cells, and reports whether any team's visible or explored cells changed.\n",
              "file": "pkg/fog/fog.go",
              "line": 304
            },
            {
              "name": "Visible",
              "anchor": "Fog.Visible",
              "recv": "*Fog",
              "decl": "func (f *Fog) Visible(team Team, col, row int) bool",
              "doc": "Visible reports whether team can see (col, row) as of the last Update, such as to show or hide an enemy unit standing there.\n",
              "file": "pkg/fog/fog.go",
              "line": 418
            },
            {
              "name": "VisibleAt",
              "anchor": "Fog.VisibleAt",
              "recv": "*Fog",
              "decl": "func (f *Fog) VisibleAt(team Team, p core.Point) bool",
              "doc": "VisibleAt reports whether team can see the cell holding world point p as of the last Update.\n",
              "file": "pkg/fog/fog.go",
              "line": 457
            },
            {
              "name": "Width",
              "anchor": "Fog.Width",
              "recv": "*Fog",
              "decl": "func (f *Fog) Width() int",
              "doc": "Width returns the grid's width in cells.\n",
              "file": "pkg/fog/fog.go",
              "line": 170
            }
          ]
        },
        {
          "name": "Source",
          "anchor": "Source",
          "decl": "type Source struct {\n\t// Team is the side the source reveals cells for.\n\tTeam Team\n\t// Col and Row are the cell the source stands on; a source outside the grid sees nothing.\n\tCol, Row int\n\t// Radius is how far the source sees, in cells: a cell dx columns and dy rows away is in range when dx*dx+dy*dy <= Radius*Radius+Radius, which rounds the disc. 0 sees only the source's own cell, and a negative radius behaves as 0.\n\tRadius int\n}",
          "doc": "Source is something that gives its team vision: a unit, a building or a ward.\n",
          "file": "pkg/fog/fog.go",
          "line": 54,
          "members": [
            {
              "name": "Team",
              "anchor": "Source.Team",
              "kind": "field",
              "doc": "Team is the side the source reveals cells for."
            },
            {
              "name": "Col",
              "anchor": "Source.Col",
              "kind": "field",
              "doc": "Col and Row are the cell the source stands on; a source outside the grid sees nothing."
            },
            {
              "name": "Row",
              "anchor": "Source.Row",
              "kind": "field",
              "doc": "Col and Row are the cell the source stands on; a source outside the grid sees nothing."
            },
            {
              "name": "Radius",
              "anchor": "Source.Radius",
              "kind": "field",
              "doc": "Radius is how far the source sees, in cells: a cell dx columns and dy rows away is in range when dx*dx+dy*dy <= Radius*Radius+Radius, which rounds the disc. 0 sees only the source's own cell, and a negative radius behaves as 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SourceID",
          "anchor": "SourceID",
          "decl": "type SourceID uint32",
          "doc": "SourceID identifies a vision source added with Fog.AddSource; IDs start at 1 and are never reused by one Fog.\n",
          "file": "pkg/fog/fog.go",
          "line": 51,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "State",
          "anchor": "State",
          "decl": "type State uint8",
          "doc": "State is what a team knows about one cell.\n",
          "file": "pkg/fog/fog.go",
          "line": 26,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Unseen",
                  "anchor": "Unseen"
                },
                {
                  "name": "Explored",
                  "anchor": "Explored"
                },
                {
                  "name": "Visible",
                  "anchor": "Visible"
                }
              ],
              "decl": "const (\n\t// Unseen marks a cell the team has never seen.\n\tUnseen State = iota\n\t// Explored marks a cell the team has seen before but cannot see now.\n\tExplored\n\t// Visible marks a cell one of the team's sources can see now.\n\tVisible\n)",
              "doc": "",
              "file": "pkg/fog/fog.go",
              "line": 28
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "State.String",
              "recv": "State",
              "decl": "func (s State) String() string",
              "doc": "String returns \"unseen\", \"explored\" or \"visible\".\n",
              "file": "pkg/fog/fog.go",
              "line": 38
            }
          ]
        },
        {
          "name": "Style",
          "anchor": "Style",
          "decl": "type Style struct {\n\t// Unseen fills cells the team has never seen; a zero alpha leaves them uncovered.\n\tUnseen core.Color\n\t// Explored fills cells the team has seen before but cannot see now; a zero alpha leaves them uncovered.\n\tExplored core.Color\n}",
          "doc": "Style is the paint Draw lays over cells a team cannot see now.\n",
          "file": "pkg/fog/draw.go",
          "line": 11,
          "members": [
            {
              "name": "Unseen",
              "anchor": "Style.Unseen",
              "kind": "field",
              "doc": "Unseen fills cells the team has never seen; a zero alpha leaves them uncovered."
            },
            {
              "name": "Explored",
              "anchor": "Style.Explored",
              "kind": "field",
              "doc": "Explored fills cells the team has seen before but cannot see now; a zero alpha leaves them uncovered."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultStyle",
              "anchor": "DefaultStyle",
              "decl": "func DefaultStyle() Style",
              "doc": "DefaultStyle returns opaque black over unseen cells and half-transparent black over explored ones, so remembered terrain shows dimmed.\n",
              "file": "pkg/fog/draw.go",
              "line": 19
            }
          ],
          "methods": []
        },
        {
          "name": "Team",
          "anchor": "Team",
          "decl": "type Team int",
          "doc": "Team identifies a side whose sources share vision and exploration.\n",
          "file": "pkg/fog/fog.go",
          "line": 23,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/framedata",
      "name": "framedata",
      "dir": "pkg/framedata",
      "page": "pkg/framedata",
      "synopsis": "Package framedata gives fighting games per-frame hitboxes, hurtboxes and hit properties for their moves, authored as versioned YAML and resolved deterministically once per fixed step.",
      "doc": "Package framedata gives fighting games per-frame hitboxes, hurtboxes and hit properties for their moves, authored as versioned YAML and resolved deterministically once per fixed step.\n\n# Documents\n\nA Doc lists a character's moves. Each Move lasts Length frames (one frame per fixed step, numbered from 1 like published frame data) and holds Boxes, each active on an inclusive range of frames: hurtboxes (KindHurt) where the character can be hit and hitboxes (KindHit) that strike, with damage, hitstun, blockstun, knockback and a hit Group. Cancels open windows where a move may be cut short into other moves, on any frame or only after the move hit, was blocked or made contact. Parse decodes and validates a version 1 document, refusing unknown fields; Encode writes deterministic YAML that Parse reads back unchanged.\n\nBoxes are in points relative to the fighter's origin (usually between its feet), facing right, with Y growing downward like a core.Drawing. A fighter facing left mirrors them about its origin.\n\n# Resolving hits\n\nA Fighter plays one move at a time from its Doc and returns to its Neutral move when a move that does not loop ends. A World holds the fighters of a match; World.Step advances every fighter one frame, then tests each active hitbox against every other fighter's active hurtboxes. All hits of a step are found from the positions before any of them is applied, so two fighters that strike each other on the same frame trade. Fighters are visited in slice order and boxes in document order, so the same inputs always produce the same hits in the same order.\n\nA move instance hits each opponent at most once per hit Group (a multi-hit move gives its hits different groups) and at most once per step. A hit puts the opponent in hitstun, or blockstun when it is Blocking, interrupts its move with its Neutral move, and lets the attacker's cancel windows that wait for contact open.\n\nThe debug package's ShapeOverlay.DrawFighterBoxes draws a fighter's active boxes as wireframes.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the frame data schema version this package reads and writes.\n",
          "file": "pkg/framedata/format.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "MaxGroup",
              "anchor": "MaxGroup"
            }
          ],
          "decl": "const MaxGroup = 63",
          "doc": "MaxGroup is the highest hit group a hitbox may use; groups run from 0 to MaxGroup.\n",
          "file": "pkg/framedata/format.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "MaxLength",
              "anchor": "MaxLength"
            }
          ],
          "decl": "const MaxLength = 3600",
          "doc": "MaxLength is the most frames a move may last: a minute at 60 steps a second.\n",
          "file": "pkg/framedata/format.go",
          "line": 17
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(doc *Doc) ([]byte, error)",
          "doc": "Encode validates doc and writes it as deterministic 2-space YAML that Parse reads back unchanged.\n",
          "file": "pkg/framedata/format.go",
          "line": 203
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(doc *Doc) error",
          "doc": "Validate checks that doc follows the version 1 schema: unique move names, lengths from 1 to MaxLength, boxes and cancel windows inside their moves, positive finite box sizes, hit properties only on hitboxes, and cancels into moves that exist.\n",
          "file": "pkg/framedata/format.go",
          "line": 221
        }
      ],
      "types": [
        {
          "name": "Box",
          "anchor": "Box",
          "decl": "type Box struct {\n\t// Kind is KindHurt or KindHit.\n\tKind Kind `yaml:\"kind\"`\n\t// Start and End are the first and last frames the box is active on, with 1 <= Start <= End <= the move's Length.\n\tStart int `yaml:\"start\"`\n\tEnd   int `yaml:\"end\"`\n\t// X and Y are the box's top-left corner in points from the fighter's origin; Y grows downward.\n\tX float32 `yaml:\"x,omitempty\"`\n\tY float32 `yaml:\"y,omitempty\"`\n\t// Width and Height are the box's size in points; both must be positive.\n\tWidth  float32 `yaml:\"width\"`\n\tHeight float32 `yaml:\"height\"`\n\t// Group is a hitbox's hit group, from 0 to MaxGroup. A move instance hits each opponent once per group, so hitboxes of one hit share a group and each hit of a multi-hit move has its own. Hurtboxes leave it 0.\n\tGroup int `yaml:\"group,omitempty\"`\n\t// Damage is how much damage a hitbox deals. Hurtboxes leave it 0.\n\tDamage int `yaml:\"damage,omitempty\"`\n\t// Hitstun is how many frames an opponent hit by the hitbox cannot act. Hurtboxes leave it 0.\n\tHitstun int `yaml:\"hitstun,omitempty\"`\n\t// Blockstun is how many frames an opponent that blocks the hitbox cannot act. Hurtboxes leave it 0.\n\tBlockstun int `yaml:\"blockstun,omitempty\"`\n\t// KnockbackX and KnockbackY push an opponent hit by the hitbox, in points per frame; positive X is away from the attacker. Hurtboxes leave them 0.\n\tKnockbackX float32 `yaml:\"knockbackX,omitempty\"`\n\tKnockbackY float32 `yaml:\"knockbackY,omitempty\"`\n}",
          "doc": "Box is a rectangle active on the frames Start to End inclusive, relative to the fighter's origin when it faces right.\n",
          "file": "pkg/framedata/format.go",
          "line": 71,
          "members": [
            {
              "name": "Kind",
              "anchor": "Box.Kind",
              "kind": "field",
              "doc": "Kind is KindHurt or KindHit."
            },
            {
              "name": "Start",
              "anchor": "Box.Start",
              "kind": "field",
              "doc": "Start and End are the first and last frames the box is active on, with 1 <= Start <= End <= the move's Length."
            },
            {
              "name": "End",
              "anchor": "Box.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "Box.X",
              "kind": "field",
              "doc": "X and Y are the box's top-left corner in points from the fighter's origin; Y grows downward."
            },
            {
              "name": "Y",
              "anchor": "Box.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Box.Width",
              "kind": "field",
              "doc": "Width and Height are the box's size in points; both must be positive."
            },
            {
              "name": "Height",
              "anchor": "Box.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Group",
              "anchor": "Box.Group",
              "kind": "field",
              "doc": "Group is a hitbox's hit group, from 0 to MaxGroup. A move instance hits each opponent once per group, so hitboxes of one hit share a group and each hit of a multi-hit move has its own. Hurtboxes leave it 0."
            },
            {
              "name": "Damage",
              "anchor": "Box.Damage",
              "kind": "field",
              "doc": "Damage is how much damage a hitbox deals. Hurtboxes leave it 0."
            },
            {
              "name": "Hitstun",
              "anchor": "Box.Hitstun",
              "kind": "field",
              "doc": "Hitstun is how many frames an opponent hit by the hitbox cannot act. Hurtboxes leave it 0."
            },
            {
              "name": "Blockstun",
              "anchor": "Box.Blockstun",
              "kind": "field",
              "doc": "Blockstun is how many frames an opponent that blocks the hitbox cannot act. Hurtboxes leave it 0."
            },
            {
              "name": "KnockbackX",
              "anchor": "Box.KnockbackX",
              "kind": "field",
              "doc": "KnockbackX and KnockbackY push an opponent hit by the hitbox, in points per frame; positive X is away from the attacker. Hurtboxes leave them 0."
            },
            {
              "name": "KnockbackY",
              "anchor": "Box.KnockbackY",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Active",
              "anchor": "Box.Active",
              "recv": "Box",
              "decl": "func (b Box) Active(frame int) bool",
              "doc": "Active reports whether the box is active on frame.\n",
              "file": "pkg/framedata/format.go",
              "line": 97
            }
          ]
        },
        {
          "name": "Cancel",
          "anchor": "Cancel",
          "decl": "type Cancel struct {\n\t// Start and End are the first and last frames of the window, with 1 <= Start <= End <= the move's Length.\n\tStart int `yaml:\"start\"`\n\tEnd   int `yaml:\"end\"`\n\t// When is when the window is open: OnAny (the default), OnHit, OnBlock or OnContact.\n\tWhen Condition `yaml:\"when,omitempty\"`\n\t// Into names the moves the window may cancel into; each must be a move of the same Doc.\n\tInto []string `yaml:\"into,flow\"`\n}",
          "doc": "Cancel is a window of frames, Start to End inclusive, in which a move may be cut short into the moves named in Into.\n",
          "file": "pkg/framedata/format.go",
          "line": 100,
          "members": [
            {
              "name": "Start",
              "anchor": "Cancel.Start",
              "kind": "field",
              "doc": "Start and End are the first and last frames of the window, with 1 <= Start <= End <= the move's Length."
            },
            {
              "name": "End",
              "anchor": "Cancel.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "When",
              "anchor": "Cancel.When",
              "kind": "field",
              "doc": "When is when the window is open: OnAny (the default), OnHit, OnBlock or OnContact."
            },
            {
              "name": "Into",
              "anchor": "Cancel.Into",
              "kind": "field",
              "doc": "Into names the moves the window may cancel into; each must be a move of the same Doc."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Condition",
          "anchor": "Condition",
          "decl": "type Condition string",
          "doc": "Condition says when a cancel window is open.\n",
          "file": "pkg/framedata/format.go",
          "line": 33,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OnAny",
                  "anchor": "OnAny"
                },
                {
                  "name": "OnHit",
                  "anchor": "OnHit"
                },
                {
                  "name": "OnBlock",
                  "anchor": "OnBlock"
                },
                {
                  "name": "OnContact",
                  "anchor": "OnContact"
                }
              ],
              "decl": "const (\n\t// OnAny opens the window whether or not the move connected. It is the empty string, the default.\n\tOnAny Condition = \"\"\n\t// OnHit opens the window only after the move hit an opponent that was not blocking.\n\tOnHit Condition = \"hit\"\n\t// OnBlock opens the window only after the move was blocked.\n\tOnBlock Condition = \"block\"\n\t// OnContact opens the window after the move hit or was blocked.\n\tOnContact Condition = \"contact\"\n)",
              "doc": "",
              "file": "pkg/framedata/format.go",
              "line": 35
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Doc",
          "anchor": "Doc",
          "decl": "type Doc struct {\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Moves are the character's moves. Names are unique.\n\tMoves []Move `yaml:\"moves,omitempty\"`\n}",
          "doc": "Doc is the root of a versioned YAML frame data document: one character's moves.\n",
          "file": "pkg/framedata/format.go",
          "line": 47,
          "members": [
            {
              "name": "Version",
              "anchor": "Doc.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "Moves",
              "anchor": "Doc.Moves",
              "kind": "field",
              "doc": "Moves are the character's moves. Names are unique."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Doc, error)",
              "doc": "Parse decodes a YAML frame data document and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/framedata/format.go",
              "line": 165
            }
          ],
          "methods": [
            {
              "name": "Move",
              "anchor": "Doc.Move",
              "recv": "*Doc",
              "decl": "func (d *Doc) Move(name string) (*Move, bool)",
              "doc": "Move returns the move named name and true, or nil and false when the document has none.\n",
              "file": "pkg/framedata/format.go",
              "line": 152
            }
          ]
        },
        {
          "name": "Fighter",
          "anchor": "Fighter",
          "decl": "type Fighter struct {\n\t// Moves is the fighter's frame data. It should have passed Validate, as Parse ensures: a hitbox whose Group is outside 0 to MaxGroup never hits.\n\tMoves *Doc\n\t// Neutral names the looping move the fighter returns to when a move that does not loop ends or when it is hit, such as \"idle\". Empty, or a name Moves does not have, leaves the fighter with no move and so no boxes.\n\tNeutral string\n\t// X and Y place the fighter's origin in world points.\n\tX, Y float32\n\t// FacingLeft mirrors the fighter's boxes and knockback about its origin.\n\tFacingLeft bool\n\t// Team keeps fighters from hitting each other: two fighters with the same non-zero Team never hit. Fighters on team 0 can hit everyone.\n\tTeam int\n\t// Blocking turns hits on the fighter into blocks: blockstun instead of hitstun. The game sets it each step from input when the fighter may block.\n\tBlocking bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Fighter is one character in a World: where it stands, which way it faces and which move of its Doc it is playing on which frame.\n\nA Fighter plays its Neutral move when it has no other, so it always has hurtboxes to be hit on. Start begins a move when the fighter can act or when a cancel window of its current move allows it; Force begins one regardless.\n",
          "file": "pkg/framedata/fighter.go",
          "line": 13,
          "members": [
            {
              "name": "Moves",
              "anchor": "Fighter.Moves",
              "kind": "field",
              "doc": "Moves is the fighter's frame data. It should have passed Validate, as Parse ensures: a hitbox whose Group is outside 0 to MaxGroup never hits."
            },
            {
              "name": "Neutral",
              "anchor": "Fighter.Neutral",
              "kind": "field",
              "doc": "Neutral names the looping move the fighter returns to when a move that does not loop ends or when it is hit, such as \"idle\". Empty, or a name Moves does not have, leaves the fighter with no move and so no boxes."
            },
            {
              "name": "X",
              "anchor": "Fighter.X",
              "kind": "field",
              "doc": "X and Y place the fighter's origin in world points."
            },
            {
              "name": "Y",
              "anchor": "Fighter.Y",
              "kind": "field",
              "doc": "X and Y place the fighter's origin in world points."
            },
            {
              "name": "FacingLeft",
              "anchor": "Fighter.FacingLeft",
              "kind": "field",
              "doc": "FacingLeft mirrors the fighter's boxes and knockback about its origin."
            },
            {
              "name": "Team",
              "anchor": "Fighter.Team",
              "kind": "field",
              "doc": "Team keeps fighters from hitting each other: two fighters with the same non-zero Team never hit. Fighters on team 0 can hit everyone."
            },
            {
              "name": "Blocking",
              "anchor": "Fighter.Blocking",
              "kind": "field",
              "doc": "Blocking turns hits on the fighter into blocks: blockstun instead of hitstun. The game sets it each step from input when the fighter may block."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Actionable",
              "anchor": "Fighter.Actionable",
              "recv": "*Fighter",
              "decl": "func (f *Fighter) Actionable() bool",
              "doc": "Actionable reports whether the fighter may start any move: it is not stunned and it has no move, a looping move or a move on its last frame.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 60
            },
            {
              "name": "Boxes",
              "anchor": "Fighter.Boxes",
              "recv": "*Fighter",
              "decl": "func (f *Fighter) Boxes(dst []WorldBox) []WorldBox",
              "doc": "Boxes appends the boxes of the current move active on the fighter's current frame to dst, in document order, and returns the extended slice.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 175
            },
            {
              "name": "CanStart",
              "anchor": "Fighter.CanStart",
              "recv": "*Fighter",
              "decl": "func (f *Fighter) CanStart(name string) bool",
              "doc": "CanStart reports whether Start(name) would begin the move: the move exists and the fighter is actionable, or a cancel window of its current move open on this frame lists the move.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 68
            },
            {
              "name": "Contact",
              "anchor": "Fighter.Contact",
              "recv": "*Fighter",
              "decl": "func (f *Fighter) Contact() (hit, blocked bool)",
              "doc": "Contact reports whether the current move instance has hit an opponent and whether it has been blocked.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 57
            },
            {
              "name": "Force",
              "anchor": "Fighter.Force",
              "recv": "*Fighter",
              "decl": "func (f *Fighter) Force(name string) error",
              "doc": "Force begins the move named name on its first frame regardless of stun and cancel windows, for hit reactions, throws and scripted moves. It returns an error when Moves has no such move.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 111
            },
            {
              "name": "Frame",
              "anchor": "Fighter.Frame",
              "recv": "*Fighter",
              "decl": "func (f *Fighter) Frame() int",
              "doc": "Frame returns the frame of the current move the fighter shows, from 1, or 0 when it has no move.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 46
            },
            {
              "name": "Move",
              "anchor": "Fighter.Move",
              "recv": "*Fighter",
              "decl": "func (f *Fighter) Move() *Move",
              "doc": "Move returns the move the fighter is playing, or nil when it has none.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 43
            },
            {
              "name": "Start",
              "anchor": "Fighter.Start",
              "recv": "*Fighter",
              "decl": "func (f *Fighter) Start(name string) bool",
              "doc": "Start begins the move named name on its first frame, which the next World.Step resolves, when CanStart allows it, and reports whether it did.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 101
            },
            {
              "name": "Stun",
              "anchor": "Fighter.Stun",
              "recv": "*Fighter",
              "decl": "func (f *Fighter) Stun() int",
              "doc": "Stun returns how many more steps the fighter stays in hitstun or blockstun.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 54
            }
          ]
        },
        {
          "name": "FighterState",
          "anchor": "FighterState",
          "decl": "type FighterState struct {\n\t// X, Y, FacingLeft and Blocking are the fighter's fields of the same names.\n\tX, Y       float32\n\tFacingLeft bool\n\tBlocking   bool\n\t// Move names the move the fighter plays, or is empty when it has none.\n\tMove string\n\t// Frame is the frame of Move the fighter shows, from 1, or 0 when it has no move.\n\tFrame int\n\t// Fresh reports that Move began after the last Step advanced the fighter, by Start, Force or a hit, so the next Step resolves its first frame instead of advancing it.\n\tFresh bool\n\t// Stun is the steps of hitstun or blockstun left.\n\tStun int\n\t// Hit and Blocked are the current move instance's contact, as Fighter.Contact reports it.\n\tHit, Blocked bool\n\t// Landed lists, per opponent, the hit groups the current move instance has already struck it with.\n\tLanded []Landed\n}",
          "doc": "FighterState is the state of one Fighter in a WorldState.\n",
          "file": "pkg/framedata/state.go",
          "line": 14,
          "members": [
            {
              "name": "X",
              "anchor": "FighterState.X",
              "kind": "field",
              "doc": "X, Y, FacingLeft and Blocking are the fighter's fields of the same names."
            },
            {
              "name": "Y",
              "anchor": "FighterState.Y",
              "kind": "field",
              "doc": "X, Y, FacingLeft and Blocking are the fighter's fields of the same names."
            },
            {
              "name": "FacingLeft",
              "anchor": "FighterState.FacingLeft",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blocking",
              "anchor": "FighterState.Blocking",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Move",
              "anchor": "FighterState.Move",
              "kind": "field",
              "doc": "Move names the move the fighter plays, or is empty when it has none."
            },
            {
              "name": "Frame",
              "anchor": "FighterState.Frame",
              "kind": "field",
              "doc": "Frame is the frame of Move the fighter shows, from 1, or 0 when it has no move."
            },
            {
              "name": "Fresh",
              "anchor": "FighterState.Fresh",
              "kind": "field",
              "doc": "Fresh reports that Move began after the last Step advanced the fighter, by Start, Force or a hit, so the next Step resolves its first frame instead of advancing it."
            },
            {
              "name": "Stun",
              "anchor": "FighterState.Stun",
              "kind": "field",
              "doc": "Stun is the steps of hitstun or blockstun left."
            },
            {
              "name": "Hit",
              "anchor": "FighterState.Hit",
              "kind": "field",
              "doc": "Hit and Blocked are the current move instance's contact, as Fighter.Contact reports it."
            },
            {
              "name": "Blocked",
              "anchor": "FighterState.Blocked",
              "kind": "field",
              "doc": "Hit and Blocked are the current move instance's contact, as Fighter.Contact reports it."
            },
            {
              "name": "Landed",
              "anchor": "FighterState.Landed",
              "kind": "field",
              "doc": "Landed lists, per opponent, the hit groups the current move instance has already struck it with."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FrameData",
          "anchor": "FrameData",
          "decl": "type FrameData struct {\n\t// Startup is the first frame a hitbox is active on.\n\tStartup int\n\t// Active is how many frames pass from the first frame a hitbox is active on to the last, inclusive.\n\tActive int\n\t// Recovery is how many frames the move lasts after its last active frame.\n\tRecovery int\n\t// OnHit and OnBlock are the attacker's frame advantage when the earliest hitbox connects on its first frame and the opponent is hit or blocks: positive means the attacker can act first.\n\tOnHit   int\n\tOnBlock int\n}",
          "doc": "FrameData summarizes a move the way fighting game frame data tables do.\n",
          "file": "pkg/framedata/format.go",
          "line": 111,
          "members": [
            {
              "name": "Startup",
              "anchor": "FrameData.Startup",
              "kind": "field",
              "doc": "Startup is the first frame a hitbox is active on."
            },
            {
              "name": "Active",
              "anchor": "FrameData.Active",
              "kind": "field",
              "doc": "Active is how many frames pass from the first frame a hitbox is active on to the last, inclusive."
            },
            {
              "name": "Recovery",
              "anchor": "FrameData.Recovery",
              "kind": "field",
              "doc": "Recovery is how many frames the move lasts after its last active frame."
            },
            {
              "name": "OnHit",
              "anchor": "FrameData.OnHit",
              "kind": "field",
              "doc": "OnHit and OnBlock are the attacker's frame advantage when the earliest hitbox connects on its first frame and the opponent is hit or blocks: positive means the attacker can act first."
            },
            {
              "name": "OnBlock",
              "anchor": "FrameData.OnBlock",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Hit",
          "anchor": "Hit",
          "decl": "type Hit struct {\n\t// Attacker and Victim are the fighters that struck and were struck.\n\tAttacker, Victim *Fighter\n\t// Move is the attacker's move and Frame the frame of it that connected.\n\tMove  *Move\n\tFrame int\n\t// Box is the index of the connecting hitbox in Move.Boxes, and Group its hit group.\n\tBox   int\n\tGroup int\n\t// Blocked reports whether the victim was blocking.\n\tBlocked bool\n\t// Damage is the hitbox's damage, dealt in full on a hit and left to the game to scale on a block.\n\tDamage int\n\t// Stun is the frames of stun the victim took: the hitbox's hitstun, or its blockstun when Blocked.\n\tStun int\n\t// KnockbackX and KnockbackY are the hitbox's knockback in world space, with X pointing away from the attacker: toward the side of the attacker's origin the victim's origin is on, or the attacker's facing when both share an X.\n\tKnockbackX, KnockbackY float32\n\t// X and Y are the center of the overlap of the hitbox and the hurtbox it struck, where a game draws a hit spark.\n\tX, Y float32\n}",
          "doc": "Hit is one hitbox connecting with an opponent during a World.Step.\n",
          "file": "pkg/framedata/fighter.go",
          "line": 208,
          "members": [
            {
              "name": "Attacker",
              "anchor": "Hit.Attacker",
              "kind": "field",
              "doc": "Attacker and Victim are the fighters that struck and were struck."
            },
            {
              "name": "Victim",
              "anchor": "Hit.Victim",
              "kind": "field",
              "doc": "Attacker and Victim are the fighters that struck and were struck."
            },
            {
              "name": "Move",
              "anchor": "Hit.Move",
              "kind": "field",
              "doc": "Move is the attacker's move and Frame the frame of it that connected."
            },
            {
              "name": "Frame",
              "anchor": "Hit.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Box",
              "anchor": "Hit.Box",
              "kind": "field",
              "doc": "Box is the index of the connecting hitbox in Move.Boxes, and Group its hit group."
            },
            {
              "name": "Group",
              "anchor": "Hit.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blocked",
              "anchor": "Hit.Blocked",
              "kind": "field",
              "doc": "Blocked reports whether the victim was blocking."
            },
            {
              "name": "Damage",
              "anchor": "Hit.Damage",
              "kind": "field",
              "doc": "Damage is the hitbox's damage, dealt in full on a hit and left to the game to scale on a block."
            },
            {
              "name": "Stun",
              "anchor": "Hit.Stun",
              "kind": "field",
              "doc": "Stun is the frames of stun the victim took: the hitbox's hitstun, or its blockstun when Blocked."
            },
            {
              "name": "KnockbackX",
              "anchor": "Hit.KnockbackX",
              "kind": "field",
              "doc": "KnockbackX and KnockbackY are the hitbox's knockback in world space, with X pointing away from the attacker: toward the side of the attacker's origin the victim's origin is on, or the attacker's facing when both share an X."
            },
            {
              "name": "KnockbackY",
              "anchor": "Hit.KnockbackY",
              "kind": "field",
              "doc": "KnockbackX and KnockbackY are the hitbox's knockback in world space, with X pointing away from the attacker: toward the side of the attacker's origin the victim's origin is on, or the attacker's facing when both share an X."
            },
            {
              "name": "X",
              "anchor": "Hit.X",
              "kind": "field",
              "doc": "X and Y are the center of the overlap of the hitbox and the hurtbox it struck, where a game draws a hit spark."
            },
            {
              "name": "Y",
              "anchor": "Hit.Y",
              "kind": "field",
              "doc": "X and Y are the center of the overlap of the hitbox and the hurtbox it struck, where a game draws a hit spark."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind string",
          "doc": "Kind says whether a box can be hit or strikes.\n",
          "file": "pkg/framedata/format.go",
          "line": 23,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindHurt",
                  "anchor": "KindHurt"
                },
                {
                  "name": "KindHit",
                  "anchor": "KindHit"
                }
              ],
              "decl": "const (\n\t// KindHurt is a hurtbox: where the fighter can be hit.\n\tKindHurt Kind = \"hurt\"\n\t// KindHit is a hitbox: where the fighter strikes.\n\tKindHit Kind = \"hit\"\n)",
              "doc": "",
              "file": "pkg/framedata/format.go",
              "line": 25
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Landed",
          "anchor": "Landed",
          "decl": "type Landed struct {\n\t// Victim is the opponent's index in World.Fighters.\n\tVictim int\n\t// Groups has bit g set when hit group g has struck the opponent.\n\tGroups uint64\n}",
          "doc": "Landed records the hit groups a move instance has struck one opponent with.\n",
          "file": "pkg/framedata/state.go",
          "line": 34,
          "members": [
            {
              "name": "Victim",
              "anchor": "Landed.Victim",
              "kind": "field",
              "doc": "Victim is the opponent's index in World.Fighters."
            },
            {
              "name": "Groups",
              "anchor": "Landed.Groups",
              "kind": "field",
              "doc": "Groups has bit g set when hit group g has struck the opponent."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Move",
          "anchor": "Move",
          "decl": "type Move struct {\n\t// Name identifies the move within its Doc.\n\tName string `yaml:\"name\"`\n\t// Animation optionally names the sprite animation the game plays alongside the move, such as an entry of a sprite.Atlas's Animations.\n\tAnimation string `yaml:\"animation,omitempty\"`\n\t// Length is how many frames the move lasts, from 1 to MaxLength.\n\tLength int `yaml:\"length\"`\n\t// Loop starts the move over after its last frame instead of ending it, for stances such as idle, walk and crouch.\n\tLoop bool `yaml:\"loop,omitempty\"`\n\t// Boxes are the move's hurtboxes and hitboxes, each active on a range of frames. Their order is the order hits are tested in.\n\tBoxes []Box `yaml:\"boxes,omitempty\"`\n\t// Cancels are the windows where the move may be cut short into other moves.\n\tCancels []Cancel `yaml:\"cancels,omitempty\"`\n}",
          "doc": "Move is one animation's frame data: how long it lasts, its boxes on each frame and where it may be cancelled.\n",
          "file": "pkg/framedata/format.go",
          "line": 55,
          "members": [
            {
              "name": "Name",
              "anchor": "Move.Name",
              "kind": "field",
              "doc": "Name identifies the move within its Doc."
            },
            {
              "name": "Animation",
              "anchor": "Move.Animation",
              "kind": "field",
              "doc": "Animation optionally names the sprite animation the game plays alongside the move, such as an entry of a sprite.Atlas's Animations."
            },
            {
              "name": "Length",
              "anchor": "Move.Length",
              "kind": "field",
              "doc": "Length is how many frames the move lasts, from 1 to MaxLength."
            },
            {
              "name": "Loop",
              "anchor": "Move.Loop",
              "kind": "field",
              "doc": "Loop starts the move over after its last frame instead of ending it, for stances such as idle, walk and crouch."
            },
            {
              "name": "Boxes",
              "anchor": "Move.Boxes",
              "kind": "field",
              "doc": "Boxes are the move's hurtboxes and hitboxes, each active on a range of frames. Their order is the order hits are tested in."
            },
            {
              "name": "Cancels",
              "anchor": "Move.Cancels",
              "kind": "field",
              "doc": "Cancels are the windows where the move may be cut short into other moves."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "FrameData",
              "anchor": "Move.FrameData",
              "recv": "*Move",
              "decl": "func (m *Move) FrameData() (FrameData, bool)",
              "doc": "FrameData returns the move's startup, active and recovery frames and its advantage, and false when the move has no hitbox.\n",
              "file": "pkg/framedata/format.go",
              "line": 124
            }
          ]
        },
        {
          "name": "World",
          "anchor": "World",
          "decl": "type World struct {\n\t// Fighters are the fighters of the match. Their order is the order hits are found and reported in.\n\tFighters []*Fighter\n\t// contains filtered or unexported fields\n}",
          "doc": "World resolves the hits between the fighters of a match, one fixed step at a time.\n\nA World is not safe for concurrent use. A Fighter belongs to at most one World.\n",
          "file": "pkg/framedata/fighter.go",
          "line": 232,
          "members": [
            {
              "name": "Fighters",
              "anchor": "World.Fighters",
              "kind": "field",
              "doc": "Fighters are the fighters of the match. Their order is the order hits are found and reported in."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Restore",
              "anchor": "World.Restore",
              "recv": "*World",
              "decl": "func (w *World) Restore(src *WorldState) error",
              "doc": "Restore sets every fighter to the state in src, which Save took from this World or from one with the same fighters. It copies src, which the caller may keep and restore again.\n\nIt returns an error, and changes nothing, when src has a different number of fighters, a state for a nil fighter, a move its fighter's Moves does not have, a frame outside that move, or a Landed victim that is not another fighter of the World.\n",
              "file": "pkg/framedata/state.go",
              "line": 79
            },
            {
              "name": "Save",
              "anchor": "World.Save",
              "recv": "*World",
              "decl": "func (w *World) Save(dst *WorldState)",
              "doc": "Save copies the state of every fighter into dst, reusing dst's slices so that saving on every step allocates nothing once warm. The copy shares no memory with the World.\n",
              "file": "pkg/framedata/state.go",
              "line": 42
            },
            {
              "name": "Step",
              "anchor": "World.Step",
              "recv": "*World",
              "decl": "func (w *World) Step() []Hit",
              "doc": "Step advances every fighter one frame, finds every hitbox that overlaps an opponent's hurtbox on that frame, and applies the hits: the attacker's contact opens its cancel windows, and the victim takes hitstun or blockstun and returns to its Neutral move.\n\nHits are found from the fighters' positions and moves before any hit of the step is applied, so fighters that strike each other on the same frame trade. A move instance hits each opponent once per hit group and at most once per step. A victim struck by several hits in one step takes the longest stun.\n\nThe returned hits are ordered by attacker, then victim, in Fighters order, and stay valid until the next Step.\n",
              "file": "pkg/framedata/fighter.go",
              "line": 244
            }
          ]
        },
        {
          "name": "WorldBox",
          "anchor": "WorldBox",
          "decl": "type WorldBox struct {\n\t// Kind is KindHurt or KindHit.\n\tKind Kind\n\t// Rect is the box in world points, mirrored when the fighter faces left.\n\tRect math2d.Rect\n\t// Index is the box's index in the current move's Boxes.\n\tIndex int\n}",
          "doc": "WorldBox is one active box of a fighter placed in world points.\n",
          "file": "pkg/framedata/fighter.go",
          "line": 165,
          "members": [
            {
              "name": "Kind",
              "anchor": "WorldBox.Kind",
              "kind": "field",
              "doc": "Kind is KindHurt or KindHit."
            },
            {
              "name": "Rect",
              "anchor": "WorldBox.Rect",
              "kind": "field",
              "doc": "Rect is the box in world points, mirrored when the fighter faces left."
            },
            {
              "name": "Index",
              "anchor": "WorldBox.Index",
              "kind": "field",
              "doc": "Index is the box's index in the current move's Boxes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldState",
          "anchor": "WorldState",
          "decl": "type WorldState struct {\n\t// Fighters holds one state per entry of World.Fighters, in the same order. A nil fighter has a zero state.\n\tFighters []FighterState\n}",
          "doc": "WorldState is a copy of everything World.Step reads and changes in a World's fighters, for replay and rollback net code to save a match and restore it later.\n\nIt names moves by name and fighters by their index in World.Fighters, so it holds no pointers and a game can encode it, compare it or hash it for a checksum. The fighters' configuration (Moves, Neutral and Team) is not part of it: a restore expects the World to have the same fighters with the same configuration.\n",
          "file": "pkg/framedata/state.go",
          "line": 8,
          "members": [
            {
              "name": "Fighters",
              "anchor": "WorldState.Fighters",
              "kind": "field",
              "doc": "Fighters holds one state per entry of World.Fighters, in the same order. A nil fighter has a zero state."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/gametest",
      "name": "gametest",
      "dir": "pkg/gametest",
      "page": "pkg/gametest",
      "synopsis": "Package gametest provides deterministic software rendering of nsgo Canvas draw operations, golden PNG comparison, and visual diff generation for tests.",
      "doc": "Package gametest provides deterministic software rendering of nsgo Canvas\ndraw operations, golden PNG comparison, and visual diff generation for tests.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultGoldenDir",
              "anchor": "DefaultGoldenDir"
            }
          ],
          "decl": "const DefaultGoldenDir = \"testdata/golden\"",
          "doc": "DefaultGoldenDir is the relative directory used by AssertGolden and AssertOpsGolden.\n",
          "file": "pkg/gametest/golden.go",
          "line": 27
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "AssertGolden",
          "anchor": "AssertGolden",
          "decl": "func AssertGolden(t testing.TB, name string, got image.Image)",
          "doc": "AssertGolden compares got against testdata/golden/<name>.png and fails t on mismatch,\nwriting the actual and diff PNGs into a test temporary directory for inspection.\n",
          "file": "pkg/gametest/golden.go",
          "line": 446
        },
        {
          "name": "AssertGoldenAt",
          "anchor": "AssertGoldenAt",
          "decl": "func AssertGoldenAt(t testing.TB, goldenPath string, got image.Image)",
          "doc": "AssertGoldenAt compares got against goldenPath and fails t on mismatch.\n",
          "file": "pkg/gametest/golden.go",
          "line": 452
        },
        {
          "name": "AssertOpsGolden",
          "anchor": "AssertOpsGolden",
          "decl": "func AssertOpsGolden(t testing.TB, name string, width, height int, ops []core.DrawOp, opts ...RenderOptions)",
          "doc": "AssertOpsGolden rasterizes ops with RenderOps and asserts the resulting image\nmatches testdata/golden/<name>.png.\n",
          "file": "pkg/gametest/golden.go",
          "line": 473
        },
        {
          "name": "AssertSameImages",
          "anchor": "AssertSameImages",
          "decl": "func AssertSameImages(t testing.TB, got, want []core.DrawOp)",
          "doc": "AssertSameImages fails t unless got and want draw the same image rectangles, in the same order, to the same places with the same alpha, composite, tint, sampling and clip, their numbers within 1e-3.\n\nUnlike comparing the operations themselves, it holds however the images were recorded, such as one DrawImageFrom per sprite against one DrawAtlas. It compares only images, as ImageDraws reads them: a test whose recordings also fill, stroke or write text checks those on its own.\n",
          "file": "pkg/gametest/images.go",
          "line": 161
        },
        {
          "name": "CompareGolden",
          "anchor": "CompareGolden",
          "decl": "func CompareGolden(got image.Image, goldenPath string, update bool) (*image.RGBA, int, error)",
          "doc": "CompareGolden compares got against the PNG stored at goldenPath.\n\nWhen update is true, got is written to goldenPath and CompareGolden returns\n(nil, 0, nil). When update is false, CompareGolden decodes goldenPath and\nreturns DiffImage(got, want).\n",
          "file": "pkg/gametest/golden.go",
          "line": 423
        },
        {
          "name": "DiffImage",
          "anchor": "DiffImage",
          "decl": "func DiffImage(got, want image.Image) (diff *image.RGBA, mismatchedPixels int)",
          "doc": "DiffImage compares got and want pixel by pixel and returns a visual diff\nimage along with the count of mismatched pixels.\n\nMatching pixels are rendered as a dimmed grayscale context; mismatched pixels\n(including pixels outside either image's bounds when dimensions differ) are\nhighlighted in solid magenta (#ff00ff).\n",
          "file": "pkg/gametest/golden.go",
          "line": 332
        },
        {
          "name": "GoldenPath",
          "anchor": "GoldenPath",
          "decl": "func GoldenPath(dir, name string) string",
          "doc": "GoldenPath returns the standard golden PNG file path under dir for name.\n",
          "file": "pkg/gametest/golden.go",
          "line": 386
        },
        {
          "name": "ReadPNG",
          "anchor": "ReadPNG",
          "decl": "func ReadPNG(path string) (image.Image, error)",
          "doc": "ReadPNG opens and decodes a PNG image from path.\n",
          "file": "pkg/gametest/golden.go",
          "line": 409
        },
        {
          "name": "RenderOps",
          "anchor": "RenderOps",
          "decl": "func RenderOps(width, height int, ops []core.DrawOp, opts ...RenderOptions) *image.RGBA",
          "doc": "RenderOps deterministically rasterizes recorded core.DrawOp operations into an RGBA image of size width by height pixels.\n\nSupported operations include Save, Restore, Translate, Scale, Rotate, Transform, SetTransform, SetAlpha, SetFillColor, SetStrokeColor, SetLineWidth, Clear, Rect + Fill/Stroke (including FillRect and StrokeRect), polygon paths (MoveTo, LineTo, ClosePath + Fill/Stroke), DrawImage / DrawImageIn / DrawImageFrom and DrawAtlas.\n",
          "file": "pkg/gametest/golden.go",
          "line": 42
        },
        {
          "name": "ShouldUpdateGolden",
          "anchor": "ShouldUpdateGolden",
          "decl": "func ShouldUpdateGolden() bool",
          "doc": "ShouldUpdateGolden reports whether golden updates are enabled via the\n-update-golden flag or the UPDATE_GOLDEN environment variable.\n",
          "file": "pkg/gametest/golden.go",
          "line": 377
        },
        {
          "name": "WritePNG",
          "anchor": "WritePNG",
          "decl": "func WritePNG(path string, img image.Image) error",
          "doc": "WritePNG encodes img as a PNG file at path, creating parent directories as needed.\n",
          "file": "pkg/gametest/golden.go",
          "line": 397
        }
      ],
      "types": [
        {
          "name": "ClipStep",
          "anchor": "ClipStep",
          "decl": "type ClipStep struct {\n\t// Op is the path operation (MoveTo, LineTo, QuadTo, CubicTo, Arc, Rect, RoundRect, Ellipse or ClosePath) or the Clip.\n\tOp core.DrawOp\n\t// Transform is the drawing's transform then, as the arguments a, b, c, d, e, f of Drawing.Transform.\n\tTransform [6]float32\n}",
          "doc": "ClipStep is one operation of a clipping path, or the Clip that ends one, with the drawing's transform when it was recorded.\n",
          "file": "pkg/gametest/images.go",
          "line": 35,
          "members": [
            {
              "name": "Op",
              "anchor": "ClipStep.Op",
              "kind": "field",
              "doc": "Op is the path operation (MoveTo, LineTo, QuadTo, CubicTo, Arc, Rect, RoundRect, Ellipse or ClosePath) or the Clip."
            },
            {
              "name": "Transform",
              "anchor": "ClipStep.Transform",
              "kind": "field",
              "doc": "Transform is the drawing's transform then, as the arguments a, b, c, d, e, f of Drawing.Transform."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ImageDraw",
          "anchor": "ImageDraw",
          "decl": "type ImageDraw struct {\n\t// Image is the image drawn from.\n\tImage core.ImageSource\n\t// SX, SY, SW and SH are the rectangle of the image drawn, in the image's points; SW and SH are 0 when the operation draws the whole image.\n\tSX, SY, SW, SH float32\n\t// Corners are where the drawn rectangle's top left, top right, bottom right and bottom left land on the canvas, after the drawing's transform. An image drawn at its natural size (DrawImage, DrawTintedImage) takes the size of its source rectangle, or of the whole image when the source sets Size or Pixels; with neither, its size is unknown and all four corners are its top left.\n\tCorners [4]core.Point\n\t// Alpha is the opacity it draws with: the drawing's alpha, times the sprite's own for a DrawAtlas sprite.\n\tAlpha float32\n\t// Composite is how it mixes with what is under it.\n\tComposite core.CompositeOp\n\t// Tinted reports whether the image's channels are multiplied by Tint, as DrawTintedImage records; a DrawAtlas sprite is never tinted.\n\tTinted bool\n\t// Tint is the color a tinted image is multiplied by.\n\tTint core.Color\n\t// Sampling is how the image's texels are sampled.\n\tSampling core.ImageSampling\n\t// Clip is the clipping in effect, outermost first: the operations of each clipping path, each followed by the Clip that used it. It is empty when nothing clips the image.\n\tClip []ClipStep\n}",
          "doc": "ImageDraw is one rectangle of an image that recorded operations put on the canvas: a DrawImage, DrawImageIn or DrawImageFrom, or one sprite of a DrawAtlas.\n",
          "file": "pkg/gametest/images.go",
          "line": 13,
          "members": [
            {
              "name": "Image",
              "anchor": "ImageDraw.Image",
              "kind": "field",
              "doc": "Image is the image drawn from."
            },
            {
              "name": "SX",
              "anchor": "ImageDraw.SX",
              "kind": "field",
              "doc": "SX, SY, SW and SH are the rectangle of the image drawn, in the image's points; SW and SH are 0 when the operation draws the whole image."
            },
            {
              "name": "SY",
              "anchor": "ImageDraw.SY",
              "kind": "field",
              "doc": "SX, SY, SW and SH are the rectangle of the image drawn, in the image's points; SW and SH are 0 when the operation draws the whole image."
            },
            {
              "name": "SW",
              "anchor": "ImageDraw.SW",
              "kind": "field",
              "doc": "SX, SY, SW and SH are the rectangle of the image drawn, in the image's points; SW and SH are 0 when the operation draws the whole image."
            },
            {
              "name": "SH",
              "anchor": "ImageDraw.SH",
              "kind": "field",
              "doc": "SX, SY, SW and SH are the rectangle of the image drawn, in the image's points; SW and SH are 0 when the operation draws the whole image."
            },
            {
              "name": "Corners",
              "anchor": "ImageDraw.Corners",
              "kind": "field",
              "doc": "Corners are where the drawn rectangle's top left, top right, bottom right and bottom left land on the canvas, after the drawing's transform. An image drawn at its natural size (DrawImage, DrawTintedImage) takes the size of its source rectangle, or of the whole image when the source sets Size or Pixels; with neither, its size is unknown and all four corners are its top left."
            },
            {
              "name": "Alpha",
              "anchor": "ImageDraw.Alpha",
              "kind": "field",
              "doc": "Alpha is the opacity it draws with: the drawing's alpha, times the sprite's own for a DrawAtlas sprite."
            },
            {
              "name": "Composite",
              "anchor": "ImageDraw.Composite",
              "kind": "field",
              "doc": "Composite is how it mixes with what is under it."
            },
            {
              "name": "Tinted",
              "anchor": "ImageDraw.Tinted",
              "kind": "field",
              "doc": "Tinted reports whether the image's channels are multiplied by Tint, as DrawTintedImage records; a DrawAtlas sprite is never tinted."
            },
            {
              "name": "Tint",
              "anchor": "ImageDraw.Tint",
              "kind": "field",
              "doc": "Tint is the color a tinted image is multiplied by."
            },
            {
              "name": "Sampling",
              "anchor": "ImageDraw.Sampling",
              "kind": "field",
              "doc": "Sampling is how the image's texels are sampled."
            },
            {
              "name": "Clip",
              "anchor": "ImageDraw.Clip",
              "kind": "field",
              "doc": "Clip is the clipping in effect, outermost first: the operations of each clipping path, each followed by the Clip that used it. It is empty when nothing clips the image."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ImageDraws",
              "anchor": "ImageDraws",
              "decl": "func ImageDraws(ops []core.DrawOp) []ImageDraw",
              "doc": "ImageDraws replays the state that ops set (Save, Restore, Translate, Scale, Rotate, Transform, SetTransform, SetAlpha, SetComposite and clipping paths) and returns every image rectangle they draw, in order. It reads only images: fills, strokes, texts and meshes are left out.\n\nIt lets a test check where sprites land and what they show however they were recorded: one DrawImageFrom per sprite, or many sprites in one DrawAtlas, as sprite.Batch draws them.\n",
              "file": "pkg/gametest/images.go",
              "line": 45
            }
          ],
          "methods": []
        },
        {
          "name": "RenderOptions",
          "anchor": "RenderOptions",
          "decl": "type RenderOptions struct {\n\t// Background fills the output image before replaying ops.\n\t// The zero value leaves the canvas transparent.\n\tBackground color.RGBA\n\t// Images resolves core.ImageSource.URI values referenced by DrawImage ops\n\t// when neither Pixels nor Data is set on the ImageSource.\n\tImages map[string]image.Image\n}",
          "doc": "RenderOptions configures optional inputs for RenderOps.\n",
          "file": "pkg/gametest/golden.go",
          "line": 30,
          "members": [
            {
              "name": "Background",
              "anchor": "RenderOptions.Background",
              "kind": "field",
              "doc": "Background fills the output image before replaying ops.\nThe zero value leaves the canvas transparent."
            },
            {
              "name": "Images",
              "anchor": "RenderOptions.Images",
              "kind": "field",
              "doc": "Images resolves core.ImageSource.URI values referenced by DrawImage ops\nwhen neither Pixels nor Data is set on the ImageSource."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/gameui",
      "name": "gameui",
      "dir": "pkg/gameui",
      "page": "pkg/gameui",
      "synopsis": "Package gameui provides stylized in-canvas menus, spatial focus navigation, virtual-resolution scaling, and world-anchored native NSGo overlays.",
      "doc": "Package gameui provides stylized in-canvas menus, spatial focus navigation, virtual-resolution scaling,\nand world-anchored native NSGo overlays.\n\nBuild a widget tree from containers (Panel, VBox, HBox) and widgets (Label, Button, Toggle, Slider, List, ProgressBar, Spacer), wrap it in a Root, and drive layout, input, and drawing from your game's Canvas:\n\n  - Call Root.Layout(bounds) to compute exact non-overlapping widget rectangles with padding, spacing, fixed/flex sizing, and alignment.\n  - Configure Root.Viewport (or Viewport.Draw / Viewport.WindowToVirtual) for virtual-resolution Fit/Letterbox/Fill/Stretch/Integer scaling and accurate pointer/touch hit-testing.\n  - Route pointer/touch events via OnPointerMove, OnPointerDown, OnPointerUp, or OnPress, and keyboard/gamepad navigation via SpatialNavigator (2D spatial lookup, explicit NavOverrides, StepActions, OnConfirm/OnBack, and customizable FocusRingStyle) or Root.OnKeyDown.\n  - Call Root.Draw(d, bounds) inside Canvas.Draw; all operations run inside Save/Restore using Path fills and strokes so caller drawing state is never mutated.\n  - Customize visuals with Theme (starting from DefaultTheme), NineSlice / FrameDrawer hooks, and custom TextDrawer / TextMeasurer hooks for bitmap fonts.\n  - Drop in SettingsMenu for a ready-to-use Audio, Video, Controls (rebinding), Language, and Accessibility screen persisted through save.DefaultSettingsStore and playable with mouse, touch, keyboard, and gamepad alone.\n  - Mount AnchorOverlay over your game Canvas and call Sync(proj) each frame to pin native NSGo views (name tags, speech bubbles, text inputs) to 2D world positions with automatic off-screen hiding.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MinTouchTargetSize",
              "anchor": "MinTouchTargetSize"
            },
            {
              "name": "MinTextContrastRatio",
              "anchor": "MinTextContrastRatio"
            }
          ],
          "decl": "const (\n\t// MinTouchTargetSize is the minimum touch target diameter in points required on phones and tablets.\n\tMinTouchTargetSize float32 = 44\n\t// MinTextContrastRatio is the minimum WCAG 2.1 contrast ratio required for screen text against its fill.\n\tMinTextContrastRatio float64 = 4.5\n)",
          "doc": "",
          "file": "pkg/gameui/screen_check.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "SettingsCustomResolution",
              "anchor": "SettingsCustomResolution"
            },
            {
              "name": "SettingsCustomReduceFlashes",
              "anchor": "SettingsCustomReduceFlashes"
            }
          ],
          "decl": "const (\n\t// SettingsCustomResolution is the key inside save.Settings.Custom storing the selected resolution ID.\n\tSettingsCustomResolution = \"resolution\"\n\t// SettingsCustomReduceFlashes is the key inside save.Settings.Custom storing the flash-reduction toggle.\n\tSettingsCustomReduceFlashes = \"reduce_flashes\"\n)",
          "doc": "",
          "file": "pkg/gameui/settings_menu.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "DefaultScreenFontSize",
              "anchor": "DefaultScreenFontSize"
            }
          ],
          "decl": "const DefaultScreenFontSize float32 = 12",
          "doc": "DefaultScreenFontSize is the default virtual font size in points used for screen files when a node omits fontSize.\n",
          "file": "pkg/gameui/screen_build.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "ScreenFormatVersion",
              "anchor": "ScreenFormatVersion"
            }
          ],
          "decl": "const ScreenFormatVersion = 1",
          "doc": "ScreenFormatVersion is the *.screen.yaml schema version this package reads and writes.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ScreenSchemaComment",
              "anchor": "ScreenSchemaComment"
            }
          ],
          "decl": "const ScreenSchemaComment = \"# yaml-language-server: $schema=\" + ScreenSchemaURL",
          "doc": "ScreenSchemaComment is the first line EncodeScreen writes: a YAML comment pointing a YAML language server at ScreenSchemaURL. ParseScreen ignores it like any other comment.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "ScreenSchemaURL",
              "anchor": "ScreenSchemaURL"
            }
          ],
          "decl": "const ScreenSchemaURL = \"https://game.nsgo.dev/schemas/screen.v1.json\"",
          "doc": "ScreenSchemaURL is where the JSON Schema of version 1 screen documents is published.\nEncodeScreen writes it in a yaml-language-server comment on the first line so editors and AI tools validate and complete screen files as they are written.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 25
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "ApplyBindingsToActions",
          "anchor": "ApplyBindingsToActions",
          "decl": "func ApplyBindingsToActions(a *input.Actions, bindings map[string][]string, preserveRegions bool)",
          "doc": "ApplyBindingsToActions updates a's action bindings from save.Settings.Bindings.\nWhen preserveRegions is true, existing TouchRegion and MouseRegion inputs on each action\nare preserved alongside the rebound keyboard, mouse-button, and gamepad bindings.\n",
          "file": "pkg/gameui/settings_bindings.go",
          "line": 279
        },
        {
          "name": "DrawFocusRing",
          "anchor": "DrawFocusRing",
          "decl": "func DrawFocusRing(d *core.Drawing, bounds core.Bounds, radius float32, style *FocusRingStyle, theme *Theme)",
          "doc": "DrawFocusRing renders a customizable focus ring around bounds using style and theme defaults.\n",
          "file": "pkg/gameui/focus_nav.go",
          "line": 90
        },
        {
          "name": "EncodeScreen",
          "anchor": "EncodeScreen",
          "decl": "func EncodeScreen(doc *ScreenDoc) ([]byte, error)",
          "doc": "EncodeScreen validates doc and writes it as deterministic 2-space YAML prefixed with ScreenSchemaComment.\nA document EncodeScreen writes loads with ParseScreen and saves back byte-for-byte unchanged.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 660
        },
        {
          "name": "FormatBindingLabel",
          "anchor": "FormatBindingLabel",
          "decl": "func FormatBindingLabel(token string) string",
          "doc": "FormatBindingLabel returns a concise human-readable label for a binding token\n(for example \"Space\", \"A\", \"Pad A/South\", or \"Mouse Left\").\n",
          "file": "pkg/gameui/settings_bindings.go",
          "line": 148
        },
        {
          "name": "FormatBindingToken",
          "anchor": "FormatBindingToken",
          "decl": "func FormatBindingToken(in input.Input) string",
          "doc": "FormatBindingToken encodes an input.Input into a portable string token suitable for save.Settings.Bindings.\nReturns \"\" for region inputs or zero inputs.\n",
          "file": "pkg/gameui/settings_bindings.go",
          "line": 63
        },
        {
          "name": "GamepadButtonToken",
          "anchor": "GamepadButtonToken",
          "decl": "func GamepadButtonToken(b gamepad.Button) string",
          "doc": "GamepadButtonToken returns the canonical binding token stored in save.Settings.Bindings\nfor b (such as \"gamepad:south\" or \"gamepad:dpad_left\"), or \"\" if b is out of range.\n",
          "file": "pkg/gameui/settings_bindings.go",
          "line": 54
        },
        {
          "name": "MeasureScreenText",
          "anchor": "MeasureScreenText",
          "decl": "func MeasureScreenText(text string, fontSize float32) (width, height float32)",
          "doc": "MeasureScreenText estimates single-line text width and height in virtual points for screen layout and overflow checks.\nFull-width CJK and East Asian glyphs measure at 1.0× fontSize, spaces at 0.25× fontSize, and other glyphs at 0.5× fontSize.\nWhen fontSize <= 0, DefaultScreenFontSize (12) is used.\n",
          "file": "pkg/gameui/screen_build.go",
          "line": 99
        },
        {
          "name": "ParseBindingToken",
          "anchor": "ParseBindingToken",
          "decl": "func ParseBindingToken(token string) (input.Input, bool)",
          "doc": "ParseBindingToken decodes a binding token from save.Settings.Bindings into an input.Input.\nSupported forms are \"key:<name>\", \"keycode:<code>\", \"gamepad:<button>\", \"mouse:<button>\",\nand bare key names (such as \"space\" or \"Escape\") treated as keyboard keys.\n",
          "file": "pkg/gameui/settings_bindings.go",
          "line": 102
        },
        {
          "name": "SetSettingsReduceFlashes",
          "anchor": "SetSettingsReduceFlashes",
          "decl": "func SetSettingsReduceFlashes(s *save.Settings, reduce bool)",
          "doc": "SetSettingsReduceFlashes writes reduce into s.Custom[\"reduce_flashes\"].\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 332
        },
        {
          "name": "SetSettingsResolution",
          "anchor": "SetSettingsResolution",
          "decl": "func SetSettingsResolution(s *save.Settings, id string)",
          "doc": "SetSettingsResolution writes id into s.Custom[\"resolution\"].\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 299
        },
        {
          "name": "SettingsReduceFlashesFrom",
          "anchor": "SettingsReduceFlashesFrom",
          "decl": "func SettingsReduceFlashesFrom(s save.Settings) bool",
          "doc": "SettingsReduceFlashesFrom reads the flash-reduction flag from s.Custom[\"reduce_flashes\"].\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 316
        },
        {
          "name": "SettingsResolutionFrom",
          "anchor": "SettingsResolutionFrom",
          "decl": "func SettingsResolutionFrom(s save.Settings) string",
          "doc": "SettingsResolutionFrom reads the persisted resolution ID from s.Custom[\"resolution\"], or \"\" if unset.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 283
        },
        {
          "name": "ValidateScreen",
          "anchor": "ValidateScreen",
          "decl": "func ValidateScreen(doc *ScreenDoc) error",
          "doc": "ValidateScreen validates doc against the version 1 *.screen.yaml schema and invariants.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 351
        }
      ],
      "types": [
        {
          "name": "Align",
          "anchor": "Align",
          "decl": "type Align uint8",
          "doc": "Align controls cross-axis placement in VBox and HBox, and child placement inside Panel.\n",
          "file": "pkg/gameui/widget.go",
          "line": 6,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AlignDefault",
                  "anchor": "AlignDefault"
                },
                {
                  "name": "AlignStretch",
                  "anchor": "AlignStretch"
                },
                {
                  "name": "AlignStart",
                  "anchor": "AlignStart"
                },
                {
                  "name": "AlignCenter",
                  "anchor": "AlignCenter"
                },
                {
                  "name": "AlignEnd",
                  "anchor": "AlignEnd"
                }
              ],
              "decl": "const (\n\t// AlignDefault inherits the container's Align, or stretches when unset on a container.\n\tAlignDefault Align = iota\n\t// AlignStretch expands the child to fill the available cross-axis size unless it sets a fixed size.\n\tAlignStretch\n\t// AlignStart aligns the child to the start (left in VBox, top in HBox).\n\tAlignStart\n\t// AlignCenter centers the child along the cross axis.\n\tAlignCenter\n\t// AlignEnd aligns the child to the end (right in VBox, bottom in HBox).\n\tAlignEnd\n)",
              "doc": "",
              "file": "pkg/gameui/widget.go",
              "line": 8
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AnchorOverlay",
          "anchor": "AnchorOverlay",
          "decl": "type AnchorOverlay struct {\n\t// TestID optionally sets the TestID on the overlay container view.\n\tTestID string\n\t// contains filtered or unexported fields\n}",
          "doc": "AnchorOverlay renders native NSGo views anchored to 2D world positions inside a non-blocking overlay\n(PointerEventsNone on the overlay container, PointerEventsOn on each anchored view).\nCall Sync(proj) each frame to update screen coordinates in the same commit and automatically hide off-screen anchors.\n",
          "file": "pkg/gameui/anchor.go",
          "line": 140,
          "members": [
            {
              "name": "TestID",
              "anchor": "AnchorOverlay.TestID",
              "kind": "field",
              "doc": "TestID optionally sets the TestID on the overlay container view."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewAnchorOverlay",
              "anchor": "NewAnchorOverlay",
              "decl": "func NewAnchorOverlay(cx *core.Scope) *AnchorOverlay",
              "doc": "NewAnchorOverlay creates a signal-driven AnchorOverlay bound to cx.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 153
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "AnchorOverlay.Add",
              "recv": "*AnchorOverlay",
              "decl": "func (o *AnchorOverlay) Add(anchor *WorldAnchor)",
              "doc": "Add registers or replaces anchor by its ID.\nIf Sync has already been called, the new anchor is immediately projected with the last WorldProjection.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 163
            },
            {
              "name": "Get",
              "anchor": "AnchorOverlay.Get",
              "recv": "*AnchorOverlay",
              "decl": "func (o *AnchorOverlay) Get(id string) *WorldAnchor",
              "doc": "Get returns the registered WorldAnchor with id, or nil if not found.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 208
            },
            {
              "name": "Remove",
              "anchor": "AnchorOverlay.Remove",
              "recv": "*AnchorOverlay",
              "decl": "func (o *AnchorOverlay) Remove(id string) bool",
              "doc": "Remove deletes the anchor with id from the overlay. Returns true if it existed.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 189
            },
            {
              "name": "ScreenPosition",
              "anchor": "AnchorOverlay.ScreenPosition",
              "recv": "*AnchorOverlay",
              "decl": "func (o *AnchorOverlay) ScreenPosition(id string) (core.Point, bool)",
              "doc": "ScreenPosition returns the last synced screen position (including OffsetX/OffsetY) and on-screen visibility for id.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 240
            },
            {
              "name": "SetVisible",
              "anchor": "AnchorOverlay.SetVisible",
              "recv": "*AnchorOverlay",
              "decl": "func (o *AnchorOverlay) SetVisible(id string, visible bool) bool",
              "doc": "SetVisible updates an anchor's logical visibility flag. Call Sync to apply.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 230
            },
            {
              "name": "SetWorldPosition",
              "anchor": "AnchorOverlay.SetWorldPosition",
              "recv": "*AnchorOverlay",
              "decl": "func (o *AnchorOverlay) SetWorldPosition(id string, worldX, worldY float32) bool",
              "doc": "SetWorldPosition updates an anchor's world coordinates. Call Sync to project and commit updated screen positions.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 219
            },
            {
              "name": "Sync",
              "anchor": "AnchorOverlay.Sync",
              "recv": "*AnchorOverlay",
              "decl": "func (o *AnchorOverlay) Sync(proj WorldProjection)",
              "doc": "Sync projects all registered anchors through proj and atomically updates their screen positions\nand visibility signals in a single batch so anchored views stay aligned within the same frame\nand off-screen anchors are hidden immediately.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 254
            },
            {
              "name": "View",
              "anchor": "AnchorOverlay.View",
              "recv": "*AnchorOverlay",
              "decl": "func (o *AnchorOverlay) View(_ *core.Scope) core.View",
              "doc": "View returns the non-blocking absolute overlay core.View rendering all currently visible world anchors.\nThe container uses PointerEventsNone so clicks pass through to the game canvas underneath, while each\nanchored wrapper re-enables interaction with PointerEventsOn.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 299
            }
          ]
        },
        {
          "name": "AnchoredItem",
          "anchor": "AnchoredItem",
          "decl": "type AnchoredItem struct {\n\tID          string\n\tWidget      Widget\n\tAnchor      ScreenAnchor\n\tOffset      ScreenOffsetDoc\n\tSafeArea    bool\n\tSizeMode    SizeMode\n\tFixedWidth  float32\n\tFixedHeight float32\n\t// PassThrough marks an unsized container whose children anchor directly against the parent's full bounds and safe area.\n\tPassThrough bool\n}",
          "doc": "AnchoredItem pairs a child Widget with its anchor, offset, safe-area inset preference, and sizing mode inside a ScreenCanvas.\n",
          "file": "pkg/gameui/screen_widgets.go",
          "line": 387,
          "members": [
            {
              "name": "ID",
              "anchor": "AnchoredItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Widget",
              "anchor": "AnchoredItem.Widget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Anchor",
              "anchor": "AnchoredItem.Anchor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Offset",
              "anchor": "AnchoredItem.Offset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SafeArea",
              "anchor": "AnchoredItem.SafeArea",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeMode",
              "anchor": "AnchoredItem.SizeMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FixedWidth",
              "anchor": "AnchoredItem.FixedWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FixedHeight",
              "anchor": "AnchoredItem.FixedHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PassThrough",
              "anchor": "AnchoredItem.PassThrough",
              "kind": "field",
              "doc": "PassThrough marks an unsized container whose children anchor directly against the parent's full bounds and safe area."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuiltScreen",
          "anchor": "BuiltScreen",
          "decl": "type BuiltScreen struct {\n\t// Root is the interactive gameui.Root configured with the screen's Viewport and theme.\n\tRoot *Root\n\t// Navigator is a SpatialNavigator attached to Root with explicit focus-order overrides wired.\n\tNavigator *SpatialNavigator\n\t// Doc is a clone of the ScreenDoc this screen was built from.\n\tDoc *ScreenDoc\n\t// Canvas is the root ScreenCanvas child of Root.\n\tCanvas *ScreenCanvas\n\t// Nodes maps every node ID in the screen to its built Widget.\n\tNodes map[string]Widget\n\t// FocusOrder lists focusable widgets that declared an explicit focusOrder, sorted ascending.\n\tFocusOrder []Widget\n\t// contains filtered or unexported fields\n}",
          "doc": "BuiltScreen is the runtime UI tree constructed from a *.screen.yaml document.\n",
          "file": "pkg/gameui/screen_build.go",
          "line": 161,
          "members": [
            {
              "name": "Root",
              "anchor": "BuiltScreen.Root",
              "kind": "field",
              "doc": "Root is the interactive gameui.Root configured with the screen's Viewport and theme."
            },
            {
              "name": "Navigator",
              "anchor": "BuiltScreen.Navigator",
              "kind": "field",
              "doc": "Navigator is a SpatialNavigator attached to Root with explicit focus-order overrides wired."
            },
            {
              "name": "Doc",
              "anchor": "BuiltScreen.Doc",
              "kind": "field",
              "doc": "Doc is a clone of the ScreenDoc this screen was built from."
            },
            {
              "name": "Canvas",
              "anchor": "BuiltScreen.Canvas",
              "kind": "field",
              "doc": "Canvas is the root ScreenCanvas child of Root."
            },
            {
              "name": "Nodes",
              "anchor": "BuiltScreen.Nodes",
              "kind": "field",
              "doc": "Nodes maps every node ID in the screen to its built Widget."
            },
            {
              "name": "FocusOrder",
              "anchor": "BuiltScreen.FocusOrder",
              "kind": "field",
              "doc": "FocusOrder lists focusable widgets that declared an explicit focusOrder, sorted ascending."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildScreen",
              "anchor": "BuildScreen",
              "decl": "func BuildScreen(doc *ScreenDoc, opts ScreenBuildOptions) (*BuiltScreen, error)",
              "doc": "BuildScreen constructs a runtime BuiltScreen (including a configured gameui.Root, Viewport, safe-area anchoring,\nlocalized text, device-class visibility, and focus-order navigation) from doc.\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 269
            }
          ],
          "methods": [
            {
              "name": "ApplyCatalog",
              "anchor": "BuiltScreen.ApplyCatalog",
              "recv": "*BuiltScreen",
              "decl": "func (s *BuiltScreen) ApplyCatalog(cat *l10n.Catalog, locale string)",
              "doc": "ApplyCatalog refreshes all localized text nodes from cat for locale (or cat's fallback locale when locale is empty).\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 239
            },
            {
              "name": "Draw",
              "anchor": "BuiltScreen.Draw",
              "recv": "*BuiltScreen",
              "decl": "func (s *BuiltScreen) Draw(d *core.Drawing, bounds core.Bounds)",
              "doc": "Draw delegates to s.Root.Draw(d, bounds).\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 261
            },
            {
              "name": "Layout",
              "anchor": "BuiltScreen.Layout",
              "recv": "*BuiltScreen",
              "decl": "func (s *BuiltScreen) Layout(bounds core.Bounds)",
              "doc": "Layout delegates to s.Root.Layout(bounds).\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 254
            },
            {
              "name": "SetDeviceClass",
              "anchor": "BuiltScreen.SetDeviceClass",
              "recv": "*BuiltScreen",
              "decl": "func (s *BuiltScreen) SetDeviceClass(class DeviceClass)",
              "doc": "SetDeviceClass updates conditional visibility for all nodes carrying deviceClasses restrictions.\nPassing an empty DeviceClass makes all nodes visible.\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 196
            },
            {
              "name": "SetSafeArea",
              "anchor": "BuiltScreen.SetSafeArea",
              "recv": "*BuiltScreen",
              "decl": "func (s *BuiltScreen) SetSafeArea(insets core.Edges)",
              "doc": "SetSafeArea updates the safe-area insets used by subsequent Layout and Draw calls.\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 187
            },
            {
              "name": "SetTextLookup",
              "anchor": "BuiltScreen.SetTextLookup",
              "recv": "*BuiltScreen",
              "decl": "func (s *BuiltScreen) SetTextLookup(fn func(key string) string)",
              "doc": "SetTextLookup refreshes all localized text nodes using fn (or the raw textKey when fn is nil).\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 208
            },
            {
              "name": "Widget",
              "anchor": "BuiltScreen.Widget",
              "recv": "*BuiltScreen",
              "decl": "func (s *BuiltScreen) Widget(id string) Widget",
              "doc": "Widget returns the built Widget with id, or nil if no node has that ID.\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 179
            }
          ]
        },
        {
          "name": "Button",
          "anchor": "Button",
          "decl": "type Button struct {\n\tText           string\n\tOnClick        func()\n\tDisabled       bool\n\tFont           core.Font\n\tTextColor      core.Color\n\tBackground     core.Color\n\tCornerRadius   float32\n\tPadding        core.Edges\n\tFocusOrder     int\n\tTouchHitSize   float32\n\tWidth          float32\n\tHeight         float32\n\tMinWidth       float32\n\tMinHeight      float32\n\tFlex           float32\n\tAlign          Align\n\tHidden         bool\n\tNav            NavOverrides\n\tDrawBackground func(*core.Drawing, core.Bounds)\n\tFrameDrawer    FrameDrawer\n\tNineSlice      *NineSlice\n\tTextDrawer     TextDrawer\n\t// contains filtered or unexported fields\n}",
          "doc": "Button is a clickable and focusable action trigger.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 186,
          "members": [
            {
              "name": "Text",
              "anchor": "Button.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnClick",
              "anchor": "Button.OnClick",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "Button.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Font",
              "anchor": "Button.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextColor",
              "anchor": "Button.TextColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Background",
              "anchor": "Button.Background",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CornerRadius",
              "anchor": "Button.CornerRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Padding",
              "anchor": "Button.Padding",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusOrder",
              "anchor": "Button.FocusOrder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TouchHitSize",
              "anchor": "Button.TouchHitSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Button.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Button.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "Button.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "Button.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "Button.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "Button.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "Button.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Nav",
              "anchor": "Button.Nav",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawBackground",
              "anchor": "Button.DrawBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameDrawer",
              "anchor": "Button.FrameDrawer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NineSlice",
              "anchor": "Button.NineSlice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextDrawer",
              "anchor": "Button.TextDrawer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Button.Bounds",
              "recv": "*Button",
              "decl": "func (b *Button) Bounds() core.Bounds",
              "doc": "Bounds returns the button's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 214
            },
            {
              "name": "HitBounds",
              "anchor": "Button.HitBounds",
              "recv": "*Button",
              "decl": "func (b *Button) HitBounds() core.Bounds",
              "doc": "HitBounds returns the button's interactive hit area, expanded to TouchHitSize when larger than Bounds.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 217
            }
          ]
        },
        {
          "name": "ColorRect",
          "anchor": "ColorRect",
          "decl": "type ColorRect struct {\n\tColor        core.Color\n\tCornerRadius float32\n\tWidth        float32\n\tHeight       float32\n\tMinWidth     float32\n\tMinHeight    float32\n\tFlex         float32\n\tAlign        Align\n\tHidden       bool\n\t// contains filtered or unexported fields\n}",
          "doc": "ColorRect draws a solid or translucent filled rectangle (such as a modal backdrop or HUD plate).\n",
          "file": "pkg/gameui/screen_widgets.go",
          "line": 44,
          "members": [
            {
              "name": "Color",
              "anchor": "ColorRect.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CornerRadius",
              "anchor": "ColorRect.CornerRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "ColorRect.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "ColorRect.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "ColorRect.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "ColorRect.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "ColorRect.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "ColorRect.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "ColorRect.Hidden",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "ColorRect.Bounds",
              "recv": "*ColorRect",
              "decl": "func (c *ColorRect) Bounds() core.Bounds",
              "doc": "Bounds returns the rectangle's laid-out bounds.\n",
              "file": "pkg/gameui/screen_widgets.go",
              "line": 59
            }
          ]
        },
        {
          "name": "Container",
          "anchor": "Container",
          "decl": "type Container interface {\n\tWidget\n\t// ChildWidgets returns the container's direct children in layout order.\n\tChildWidgets() []Widget\n}",
          "doc": "Container is a Widget that lays out child widgets.\nPanel, VBox, and HBox implement Container.\n",
          "file": "pkg/gameui/widget.go",
          "line": 70,
          "members": [
            {
              "name": "ChildWidgets",
              "anchor": "Container.ChildWidgets",
              "kind": "method",
              "doc": "ChildWidgets returns the container's direct children in layout order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DeviceClass",
          "anchor": "DeviceClass",
          "decl": "type DeviceClass string",
          "doc": "DeviceClass identifies a target device form factor for conditional visibility and reference layout checks.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 71,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DevicePhone",
                  "anchor": "DevicePhone"
                },
                {
                  "name": "DeviceTablet",
                  "anchor": "DeviceTablet"
                },
                {
                  "name": "DeviceDesktop",
                  "anchor": "DeviceDesktop"
                },
                {
                  "name": "DeviceUltrawide",
                  "anchor": "DeviceUltrawide"
                }
              ],
              "decl": "const (\n\tDevicePhone     DeviceClass = \"phone\"\n\tDeviceTablet    DeviceClass = \"tablet\"\n\tDeviceDesktop   DeviceClass = \"desktop\"\n\tDeviceUltrawide DeviceClass = \"ultrawide\"\n)",
              "doc": "",
              "file": "pkg/gameui/screen_format.go",
              "line": 73
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DeviceProfile",
          "anchor": "DeviceProfile",
          "decl": "type DeviceProfile struct {\n\t// ID is the machine identifier (for example \"phone\", \"tablet\", \"desktop\", \"ultrawide\").\n\tID string\n\t// Name is the human-readable profile name (for example \"Phone 19.5:9 (notch)\").\n\tName string\n\t// Class is the device class matched against ScreenNodeDoc.DeviceClasses.\n\tClass DeviceClass\n\t// Width and Height are the virtual canvas dimensions in points at this aspect ratio.\n\tWidth  float32\n\tHeight float32\n\t// SafeArea specifies the notch, rounded-corner, and home-indicator insets in virtual points.\n\tSafeArea core.Edges\n\t// Touch reports whether this device uses touch input (and enforces minimum touch target size).\n\tTouch bool\n}",
          "doc": "DeviceProfile describes a reference display size, safe-area insets, and device class used to preview and validate screens.\n",
          "file": "pkg/gameui/screen_build.go",
          "line": 15,
          "members": [
            {
              "name": "ID",
              "anchor": "DeviceProfile.ID",
              "kind": "field",
              "doc": "ID is the machine identifier (for example \"phone\", \"tablet\", \"desktop\", \"ultrawide\")."
            },
            {
              "name": "Name",
              "anchor": "DeviceProfile.Name",
              "kind": "field",
              "doc": "Name is the human-readable profile name (for example \"Phone 19.5:9 (notch)\")."
            },
            {
              "name": "Class",
              "anchor": "DeviceProfile.Class",
              "kind": "field",
              "doc": "Class is the device class matched against ScreenNodeDoc.DeviceClasses."
            },
            {
              "name": "Width",
              "anchor": "DeviceProfile.Width",
              "kind": "field",
              "doc": "Width and Height are the virtual canvas dimensions in points at this aspect ratio."
            },
            {
              "name": "Height",
              "anchor": "DeviceProfile.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SafeArea",
              "anchor": "DeviceProfile.SafeArea",
              "kind": "field",
              "doc": "SafeArea specifies the notch, rounded-corner, and home-indicator insets in virtual points."
            },
            {
              "name": "Touch",
              "anchor": "DeviceProfile.Touch",
              "kind": "field",
              "doc": "Touch reports whether this device uses touch input (and enforces minimum touch target size)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ReferenceDevices",
              "anchor": "ReferenceDevices",
              "decl": "func ReferenceDevices() []DeviceProfile",
              "doc": "ReferenceDevices returns the four standard reference profiles for a 640×360 design canvas:\nPhone 19.5:9 with a notch (780×360), Tablet 4:3 (640×480), Desktop 16:9 (640×360), and Ultrawide 21:9 (840×360).\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 33
            },
            {
              "name": "ReferenceDevicesFor",
              "anchor": "ReferenceDevicesFor",
              "decl": "func ReferenceDevicesFor(designW, designH float32) []DeviceProfile",
              "doc": "ReferenceDevicesFor returns the four standard reference profiles scaled to match a screen's design size:\nPhone 19.5:9 with a notch, Tablet 4:3, Desktop 16:9, and Ultrawide 21:9.\n",
              "file": "pkg/gameui/screen_build.go",
              "line": 39
            }
          ],
          "methods": []
        },
        {
          "name": "FocusManager",
          "anchor": "FocusManager",
          "decl": "type FocusManager = SpatialNavigator",
          "doc": "FocusManager is an alias for SpatialNavigator.\n",
          "file": "pkg/gameui/focus_nav.go",
          "line": 198,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FocusRingStyle",
          "anchor": "FocusRingStyle",
          "decl": "type FocusRingStyle struct {\n\t// Color overrides Theme.FocusedBorder when non-zero. Set core.Transparent to disable the default stroke.\n\tColor core.Color\n\t// Width overrides Theme.FocusWidth when > 0.\n\tWidth float32\n\t// Outset expands the ring outward from the widget bounds by Outset points (negative insets it).\n\tOutset float32\n\t// CornerRadius overrides the corner radius (0 uses widget/theme default; < 0 uses square corners).\n\tCornerRadius float32\n\t// Dash sets an optional line dash pattern for the focus ring stroke.\n\tDash []float32\n\t// Draw replaces the default stroke when non-nil, running inside Save/Restore.\n\tDraw func(d *core.Drawing, bounds core.Bounds, theme *Theme)\n}",
          "doc": "FocusRingStyle customizes the focus indicator drawn around the currently focused widget.\n",
          "file": "pkg/gameui/focus_nav.go",
          "line": 74,
          "members": [
            {
              "name": "Color",
              "anchor": "FocusRingStyle.Color",
              "kind": "field",
              "doc": "Color overrides Theme.FocusedBorder when non-zero. Set core.Transparent to disable the default stroke."
            },
            {
              "name": "Width",
              "anchor": "FocusRingStyle.Width",
              "kind": "field",
              "doc": "Width overrides Theme.FocusWidth when > 0."
            },
            {
              "name": "Outset",
              "anchor": "FocusRingStyle.Outset",
              "kind": "field",
              "doc": "Outset expands the ring outward from the widget bounds by Outset points (negative insets it)."
            },
            {
              "name": "CornerRadius",
              "anchor": "FocusRingStyle.CornerRadius",
              "kind": "field",
              "doc": "CornerRadius overrides the corner radius (0 uses widget/theme default; < 0 uses square corners)."
            },
            {
              "name": "Dash",
              "anchor": "FocusRingStyle.Dash",
              "kind": "field",
              "doc": "Dash sets an optional line dash pattern for the focus ring stroke."
            },
            {
              "name": "Draw",
              "anchor": "FocusRingStyle.Draw",
              "kind": "field",
              "doc": "Draw replaces the default stroke when non-nil, running inside Save/Restore."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FrameDrawer",
          "anchor": "FrameDrawer",
          "decl": "type FrameDrawer func(d *core.Drawing, bounds core.Bounds, state WidgetState)",
          "doc": "FrameDrawer draws a stylized background frame (such as a nine-slice sprite or custom skin)\nfor a widget in its current interaction state.\n",
          "file": "pkg/gameui/viewport.go",
          "line": 317,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NineSliceStateFrame",
              "anchor": "NineSliceStateFrame",
              "decl": "func NineSliceStateFrame(normal, hover, pressed, disabled *NineSlice) FrameDrawer",
              "doc": "NineSliceStateFrame returns a state-aware FrameDrawer that selects the matching NineSlice\nfor Disabled, Pressed, Hovered, or Normal state, falling back to normal when a state slice is nil.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 409
            }
          ],
          "methods": []
        },
        {
          "name": "HBox",
          "anchor": "HBox",
          "decl": "type HBox struct {\n\tChildren       []Widget\n\tSpacing        float32\n\tPadding        core.Edges\n\tAlign          Align\n\tJustify        Justify\n\tWidth          float32\n\tHeight         float32\n\tMinWidth       float32\n\tMinHeight      float32\n\tFlex           float32\n\tHidden         bool\n\tDrawBackground func(*core.Drawing, core.Bounds)\n\tFrameDrawer    FrameDrawer\n\tNineSlice      *NineSlice\n\t// contains filtered or unexported fields\n}",
          "doc": "HBox arranges Children horizontally from left to right with Spacing and Padding.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 104,
          "members": [
            {
              "name": "Children",
              "anchor": "HBox.Children",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spacing",
              "anchor": "HBox.Spacing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Padding",
              "anchor": "HBox.Padding",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "HBox.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Justify",
              "anchor": "HBox.Justify",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "HBox.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "HBox.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "HBox.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "HBox.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "HBox.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "HBox.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawBackground",
              "anchor": "HBox.DrawBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameDrawer",
              "anchor": "HBox.FrameDrawer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NineSlice",
              "anchor": "HBox.NineSlice",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "HBox.Bounds",
              "recv": "*HBox",
              "decl": "func (b *HBox) Bounds() core.Bounds",
              "doc": "Bounds returns the HBox's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 124
            },
            {
              "name": "ChildWidgets",
              "anchor": "HBox.ChildWidgets",
              "recv": "*HBox",
              "decl": "func (b *HBox) ChildWidgets() []Widget",
              "doc": "ChildWidgets returns the HBox's direct children.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 127
            }
          ]
        },
        {
          "name": "Justify",
          "anchor": "Justify",
          "decl": "type Justify uint8",
          "doc": "Justify controls main-axis distribution in VBox and HBox when extra space remains and no child has Flex > 0.\n",
          "file": "pkg/gameui/widget.go",
          "line": 22,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "JustifyStart",
                  "anchor": "JustifyStart"
                },
                {
                  "name": "JustifyCenter",
                  "anchor": "JustifyCenter"
                },
                {
                  "name": "JustifyEnd",
                  "anchor": "JustifyEnd"
                },
                {
                  "name": "JustifySpaceBetween",
                  "anchor": "JustifySpaceBetween"
                }
              ],
              "decl": "const (\n\t// JustifyStart packs children at the start of the main axis.\n\tJustifyStart Justify = iota\n\t// JustifyCenter centers children as a group along the main axis.\n\tJustifyCenter\n\t// JustifyEnd packs children at the end of the main axis.\n\tJustifyEnd\n\t// JustifySpaceBetween spreads remaining space evenly between adjacent children.\n\tJustifySpaceBetween\n)",
              "doc": "",
              "file": "pkg/gameui/widget.go",
              "line": 24
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Label",
          "anchor": "Label",
          "decl": "type Label struct {\n\tText           string\n\tColor          core.Color\n\tBackground     core.Color\n\tCornerRadius   float32\n\tPadding        core.Edges\n\tFont           core.Font\n\tTextAlign      core.TextAlign\n\tWidth          float32\n\tHeight         float32\n\tMinWidth       float32\n\tMinHeight      float32\n\tFlex           float32\n\tAlign          Align\n\tHidden         bool\n\tDrawBackground func(*core.Drawing, core.Bounds)\n\tFrameDrawer    FrameDrawer\n\tNineSlice      *NineSlice\n\tTextDrawer     TextDrawer\n\t// contains filtered or unexported fields\n}",
          "doc": "Label displays non-interactive text. Focus navigation skips labels automatically.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 144,
          "members": [
            {
              "name": "Text",
              "anchor": "Label.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "Label.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Background",
              "anchor": "Label.Background",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CornerRadius",
              "anchor": "Label.CornerRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Padding",
              "anchor": "Label.Padding",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Font",
              "anchor": "Label.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextAlign",
              "anchor": "Label.TextAlign",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Label.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Label.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "Label.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "Label.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "Label.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "Label.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "Label.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawBackground",
              "anchor": "Label.DrawBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameDrawer",
              "anchor": "Label.FrameDrawer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NineSlice",
              "anchor": "Label.NineSlice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextDrawer",
              "anchor": "Label.TextDrawer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Label.Bounds",
              "recv": "*Label",
              "decl": "func (l *Label) Bounds() core.Bounds",
              "doc": "Bounds returns the label's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 168
            }
          ]
        },
        {
          "name": "List",
          "anchor": "List",
          "decl": "type List struct {\n\tItems          []string\n\tSelected       int\n\tItemHeight     float32\n\tSpacing        float32\n\tOnSelect       func(index int, item string)\n\tDisabled       bool\n\tFont           core.Font\n\tWidth          float32\n\tHeight         float32\n\tMinWidth       float32\n\tMinHeight      float32\n\tFlex           float32\n\tAlign          Align\n\tHidden         bool\n\tNav            NavOverrides\n\tDrawBackground func(*core.Drawing, core.Bounds)\n\tFrameDrawer    FrameDrawer\n\tNineSlice      *NineSlice\n\tTextDrawer     TextDrawer\n\t// contains filtered or unexported fields\n}",
          "doc": "List is a focusable vertical list of selectable items supporting pointer and keyboard/gamepad selection.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 483,
          "members": [
            {
              "name": "Items",
              "anchor": "List.Items",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Selected",
              "anchor": "List.Selected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ItemHeight",
              "anchor": "List.ItemHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spacing",
              "anchor": "List.Spacing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnSelect",
              "anchor": "List.OnSelect",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "List.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Font",
              "anchor": "List.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "List.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "List.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "List.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "List.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "List.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "List.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "List.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Nav",
              "anchor": "List.Nav",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawBackground",
              "anchor": "List.DrawBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameDrawer",
              "anchor": "List.FrameDrawer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NineSlice",
              "anchor": "List.NineSlice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextDrawer",
              "anchor": "List.TextDrawer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "List.Bounds",
              "recv": "*List",
              "decl": "func (l *List) Bounds() core.Bounds",
              "doc": "Bounds returns the list's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 511
            },
            {
              "name": "ItemAt",
              "anchor": "List.ItemAt",
              "recv": "*List",
              "decl": "func (l *List) ItemAt(p core.Point) int",
              "doc": "ItemAt returns the 0-based index of the item containing p, or -1 if none.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 522
            },
            {
              "name": "ItemBounds",
              "anchor": "List.ItemBounds",
              "recv": "*List",
              "decl": "func (l *List) ItemBounds(index int) core.Bounds",
              "doc": "ItemBounds returns the laid-out rectangle for item at index, or zero Bounds if out of range.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 514
            },
            {
              "name": "Select",
              "anchor": "List.Select",
              "recv": "*List",
              "decl": "func (l *List) Select(index int) bool",
              "doc": "Select updates Selected to index (clamped into [0, len(Items)-1]) and invokes OnSelect.\nReturns false when the list is disabled or empty.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 533
            }
          ]
        },
        {
          "name": "NavAction",
          "anchor": "NavAction",
          "decl": "type NavAction uint8",
          "doc": "NavAction identifies a logical UI navigation action from keyboard, gamepad, or virtual controls.\n",
          "file": "pkg/gameui/focus_nav.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NavNone",
                  "anchor": "NavNone"
                },
                {
                  "name": "NavUp",
                  "anchor": "NavUp"
                },
                {
                  "name": "NavDown",
                  "anchor": "NavDown"
                },
                {
                  "name": "NavLeft",
                  "anchor": "NavLeft"
                },
                {
                  "name": "NavRight",
                  "anchor": "NavRight"
                },
                {
                  "name": "NavConfirm",
                  "anchor": "NavConfirm"
                },
                {
                  "name": "NavBack",
                  "anchor": "NavBack"
                }
              ],
              "decl": "const (\n\t// NavNone is the zero value representing no action.\n\tNavNone NavAction = iota\n\t// NavUp moves focus upward.\n\tNavUp\n\t// NavDown moves focus downward.\n\tNavDown\n\t// NavLeft moves focus left (or decrements a focused Slider when SliderSteps is enabled).\n\tNavLeft\n\t// NavRight moves focus right (or increments a focused Slider when SliderSteps is enabled).\n\tNavRight\n\t// NavConfirm activates the currently focused widget and invokes OnConfirm.\n\tNavConfirm\n\t// NavBack invokes OnBack (e.g. closing a submenu or canceling an action).\n\tNavBack\n)",
              "doc": "",
              "file": "pkg/gameui/focus_nav.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "NavAction.String",
              "recv": "NavAction",
              "decl": "func (a NavAction) String() string",
              "doc": "String returns a human-readable name for a.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 30
            }
          ]
        },
        {
          "name": "NavOverrides",
          "anchor": "NavOverrides",
          "decl": "type NavOverrides struct {\n\tUp    Widget\n\tDown  Widget\n\tLeft  Widget\n\tRight Widget\n}",
          "doc": "NavOverrides specifies explicit per-widget directional neighbors that take precedence over automatic 2D spatial lookup.\n",
          "file": "pkg/gameui/focus_nav.go",
          "line": 50,
          "members": [
            {
              "name": "Up",
              "anchor": "NavOverrides.Up",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Down",
              "anchor": "NavOverrides.Down",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Left",
              "anchor": "NavOverrides.Left",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Right",
              "anchor": "NavOverrides.Right",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "For",
              "anchor": "NavOverrides.For",
              "recv": "NavOverrides",
              "decl": "func (o NavOverrides) For(dir NavAction) Widget",
              "doc": "For returns the explicit neighbor configured for dir, or nil if unset or non-directional.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 58
            }
          ]
        },
        {
          "name": "NineSlice",
          "anchor": "NineSlice",
          "decl": "type NineSlice struct {\n\tImage  core.ImageSource\n\tSrc    core.Bounds\n\tLeft   float32\n\tTop    float32\n\tRight  float32\n\tBottom float32\n}",
          "doc": "NineSlice describes a 9-patch sprite frame with fixed corner margins (Left, Top, Right, Bottom)\ninside Src of Image. Corners stay unstretched while edges and center scale to fill destination bounds.\n",
          "file": "pkg/gameui/viewport.go",
          "line": 321,
          "members": [
            {
              "name": "Image",
              "anchor": "NineSlice.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Src",
              "anchor": "NineSlice.Src",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Left",
              "anchor": "NineSlice.Left",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Top",
              "anchor": "NineSlice.Top",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Right",
              "anchor": "NineSlice.Right",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bottom",
              "anchor": "NineSlice.Bottom",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "NineSlice.Draw",
              "recv": "NineSlice",
              "decl": "func (ns NineSlice) Draw(d *core.Drawing, dst core.Bounds)",
              "doc": "Draw renders the 9-patch image stretched into dst.\nCorner insets clamp proportionally if dst is smaller than Left+Right or Top+Bottom.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 332
            },
            {
              "name": "FrameDrawer",
              "anchor": "NineSlice.FrameDrawer",
              "recv": "NineSlice",
              "decl": "func (ns NineSlice) FrameDrawer() FrameDrawer",
              "doc": "FrameDrawer adapts a single NineSlice into a FrameDrawer callback.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 401
            }
          ]
        },
        {
          "name": "Panel",
          "anchor": "Panel",
          "decl": "type Panel struct {\n\tChild          Widget\n\tPadding        core.Edges\n\tAlign          Align\n\tWidth          float32\n\tHeight         float32\n\tMinWidth       float32\n\tMinHeight      float32\n\tFlex           float32\n\tHidden         bool\n\tBackground     core.Color\n\tBorder         core.Color\n\tCornerRadius   float32 // 0 uses Theme.CornerRadius; < 0 uses square corners.\n\tDrawBackground func(*core.Drawing, core.Bounds)\n\tFrameDrawer    FrameDrawer\n\tNineSlice      *NineSlice\n\t// contains filtered or unexported fields\n}",
          "doc": "Panel frames a single optional Child with padding, background fill, and border.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 16,
          "members": [
            {
              "name": "Child",
              "anchor": "Panel.Child",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Padding",
              "anchor": "Panel.Padding",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "Panel.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Panel.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Panel.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "Panel.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "Panel.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "Panel.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "Panel.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Background",
              "anchor": "Panel.Background",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Border",
              "anchor": "Panel.Border",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CornerRadius",
              "anchor": "Panel.CornerRadius",
              "kind": "field",
              "doc": "0 uses Theme.CornerRadius; < 0 uses square corners."
            },
            {
              "name": "DrawBackground",
              "anchor": "Panel.DrawBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameDrawer",
              "anchor": "Panel.FrameDrawer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NineSlice",
              "anchor": "Panel.NineSlice",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Panel.Bounds",
              "recv": "*Panel",
              "decl": "func (p *Panel) Bounds() core.Bounds",
              "doc": "Bounds returns the panel's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 37
            },
            {
              "name": "ChildWidgets",
              "anchor": "Panel.ChildWidgets",
              "recv": "*Panel",
              "decl": "func (p *Panel) ChildWidgets() []Widget",
              "doc": "ChildWidgets returns the panel's child if non-nil.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 40
            }
          ]
        },
        {
          "name": "ProgressBar",
          "anchor": "ProgressBar",
          "decl": "type ProgressBar struct {\n\tValue          float32\n\tMin            float32\n\tMax            float32\n\tLabel          string\n\tFillColor      core.Color\n\tTrackColor     core.Color\n\tFont           core.Font\n\tWidth          float32\n\tHeight         float32\n\tMinWidth       float32\n\tMinHeight      float32\n\tFlex           float32\n\tAlign          Align\n\tHidden         bool\n\tDrawBackground func(*core.Drawing, core.Bounds)\n\tFrameDrawer    FrameDrawer\n\tNineSlice      *NineSlice\n\tTextDrawer     TextDrawer\n\t// contains filtered or unexported fields\n}",
          "doc": "ProgressBar displays a read-only progress meter in [Min, Max] (or [0, 1] when both Min and Max are 0).\n",
          "file": "pkg/gameui/widgets.go",
          "line": 392,
          "members": [
            {
              "name": "Value",
              "anchor": "ProgressBar.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Min",
              "anchor": "ProgressBar.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "ProgressBar.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "ProgressBar.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FillColor",
              "anchor": "ProgressBar.FillColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TrackColor",
              "anchor": "ProgressBar.TrackColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Font",
              "anchor": "ProgressBar.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "ProgressBar.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "ProgressBar.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "ProgressBar.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "ProgressBar.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "ProgressBar.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "ProgressBar.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "ProgressBar.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawBackground",
              "anchor": "ProgressBar.DrawBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameDrawer",
              "anchor": "ProgressBar.FrameDrawer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NineSlice",
              "anchor": "ProgressBar.NineSlice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextDrawer",
              "anchor": "ProgressBar.TextDrawer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "ProgressBar.Bounds",
              "recv": "*ProgressBar",
              "decl": "func (p *ProgressBar) Bounds() core.Bounds",
              "doc": "Bounds returns the progress bar's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 416
            },
            {
              "name": "Fraction",
              "anchor": "ProgressBar.Fraction",
              "recv": "*ProgressBar",
              "decl": "func (p *ProgressBar) Fraction() float32",
              "doc": "Fraction returns Value normalized into [0, 1].\n",
              "file": "pkg/gameui/widgets.go",
              "line": 419
            }
          ]
        },
        {
          "name": "Root",
          "anchor": "Root",
          "decl": "type Root struct {\n\t// Child is the root widget of the UI tree (typically a Panel, VBox, or HBox).\n\tChild Widget\n\t// Theme styles all widgets under this Root; nil uses DefaultTheme.\n\tTheme *Theme\n\t// Viewport optionally maps a fixed virtual resolution onto the physical window bounds,\n\t// applying scaling and letterboxing in Draw and mapping window pointer/touch input into virtual coordinates.\n\tViewport *Viewport\n\t// FocusRing optionally overrides the focus ring style drawn around the focused widget.\n\tFocusRing *FocusRingStyle\n\t// contains filtered or unexported fields\n}",
          "doc": "Root manages layout, focus navigation, pointer/touch interaction, and rendering for a game UI widget tree.\n",
          "file": "pkg/gameui/root.go",
          "line": 11,
          "members": [
            {
              "name": "Child",
              "anchor": "Root.Child",
              "kind": "field",
              "doc": "Child is the root widget of the UI tree (typically a Panel, VBox, or HBox)."
            },
            {
              "name": "Theme",
              "anchor": "Root.Theme",
              "kind": "field",
              "doc": "Theme styles all widgets under this Root; nil uses DefaultTheme."
            },
            {
              "name": "Viewport",
              "anchor": "Root.Viewport",
              "kind": "field",
              "doc": "Viewport optionally maps a fixed virtual resolution onto the physical window bounds,\napplying scaling and letterboxing in Draw and mapping window pointer/touch input into virtual coordinates."
            },
            {
              "name": "FocusRing",
              "anchor": "Root.FocusRing",
              "kind": "field",
              "doc": "FocusRing optionally overrides the focus ring style drawn around the focused widget."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRoot",
              "anchor": "NewRoot",
              "decl": "func NewRoot(child Widget) *Root",
              "doc": "NewRoot returns a Root wrapping child with the default theme.\n",
              "file": "pkg/gameui/root.go",
              "line": 33
            }
          ],
          "methods": [
            {
              "name": "Activate",
              "anchor": "Root.Activate",
              "recv": "*Root",
              "decl": "func (r *Root) Activate() bool",
              "doc": "Activate triggers the currently focused widget (clicks a Button or flips a Toggle).\n",
              "file": "pkg/gameui/root.go",
              "line": 384
            },
            {
              "name": "Adjust",
              "anchor": "Root.Adjust",
              "recv": "*Root",
              "decl": "func (r *Root) Adjust(delta float32) bool",
              "doc": "Adjust steps the currently focused adjustable widget by delta steps (e.g. -1 or +1).\nFor a Slider, Value moves by delta * step within [Min, Max]. For a Toggle, delta > 0 checks it and delta < 0 unchecks it.\nFor a List, Selected steps by delta clamped to the available items.\n",
              "file": "pkg/gameui/root.go",
              "line": 436
            },
            {
              "name": "Bounds",
              "anchor": "Root.Bounds",
              "recv": "*Root",
              "decl": "func (r *Root) Bounds() core.Bounds",
              "doc": "Bounds returns the bounds from the last Layout or Draw call.\n",
              "file": "pkg/gameui/root.go",
              "line": 46
            },
            {
              "name": "ClearFocus",
              "anchor": "Root.ClearFocus",
              "recv": "*Root",
              "decl": "func (r *Root) ClearFocus()",
              "doc": "ClearFocus removes keyboard/gamepad focus from the active widget.\n",
              "file": "pkg/gameui/root.go",
              "line": 278
            },
            {
              "name": "Draw",
              "anchor": "Root.Draw",
              "recv": "*Root",
              "decl": "func (r *Root) Draw(d *core.Drawing, bounds core.Bounds)",
              "doc": "Draw lays out the tree into bounds and draws every visible widget into d.\nWhen Viewport is set, Draw renders letterbox bars and transforms d into the virtual resolution.\nCaller drawing state (transform, colors, stroke settings, alpha, text align/baseline, and current path) is preserved.\n",
              "file": "pkg/gameui/root.go",
              "line": 80
            },
            {
              "name": "DrawWithViewport",
              "anchor": "Root.DrawWithViewport",
              "recv": "*Root",
              "decl": "func (r *Root) DrawWithViewport(d *core.Drawing, vp Viewport)",
              "doc": "DrawWithViewport renders the UI tree using vp without permanently replacing r.Viewport.\n",
              "file": "pkg/gameui/root.go",
              "line": 106
            },
            {
              "name": "FocusIndex",
              "anchor": "Root.FocusIndex",
              "recv": "*Root",
              "decl": "func (r *Root) FocusIndex() int",
              "doc": "FocusIndex returns the index of the focused widget in the current list of enabled, visible focusable widgets, or -1 if none is focused.\n",
              "file": "pkg/gameui/root.go",
              "line": 254
            },
            {
              "name": "FocusNext",
              "anchor": "Root.FocusNext",
              "recv": "*Root",
              "decl": "func (r *Root) FocusNext() bool",
              "doc": "FocusNext moves focus to the next enabled, focusable widget, wrapping from the end to the beginning.\n",
              "file": "pkg/gameui/root.go",
              "line": 319
            },
            {
              "name": "FocusPrev",
              "anchor": "Root.FocusPrev",
              "recv": "*Root",
              "decl": "func (r *Root) FocusPrev() bool",
              "doc": "FocusPrev moves focus to the previous enabled, focusable widget, wrapping from the beginning to the end.\n",
              "file": "pkg/gameui/root.go",
              "line": 333
            },
            {
              "name": "Focused",
              "anchor": "Root.Focused",
              "recv": "*Root",
              "decl": "func (r *Root) Focused() Widget",
              "doc": "Focused returns the currently focused widget, or nil if none is focused.\n",
              "file": "pkg/gameui/root.go",
              "line": 260
            },
            {
              "name": "HitTest",
              "anchor": "Root.HitTest",
              "recv": "*Root",
              "decl": "func (r *Root) HitTest(p core.Point) Widget",
              "doc": "HitTest returns the topmost enabled, focusable widget containing p, or nil.\nWhen Viewport is set, p is mapped from window coordinates into virtual coordinates and points inside letterbox bars return nil.\n",
              "file": "pkg/gameui/root.go",
              "line": 557
            },
            {
              "name": "Hovered",
              "anchor": "Root.Hovered",
              "recv": "*Root",
              "decl": "func (r *Root) Hovered() Widget",
              "doc": "Hovered returns the currently hovered interactive widget, or nil.\n",
              "file": "pkg/gameui/root.go",
              "line": 266
            },
            {
              "name": "Layout",
              "anchor": "Root.Layout",
              "recv": "*Root",
              "decl": "func (r *Root) Layout(bounds core.Bounds)",
              "doc": "Layout computes exact rectangles for every widget in the tree inside bounds and refreshes the focusable widget list.\nWhen Viewport is set, bounds specifies the physical window rectangle and the widget tree is laid out in virtual coordinates.\n",
              "file": "pkg/gameui/root.go",
              "line": 50
            },
            {
              "name": "MoveFocus",
              "anchor": "Root.MoveFocus",
              "recv": "*Root",
              "decl": "func (r *Root) MoveFocus(dx, dy int) bool",
              "doc": "MoveFocus moves focus geometrically in direction (dx, dy) (for arrow keys and gamepad D-pad/stick),\nchecking explicit per-widget NavOverrides first, wrapping along the axis when reaching an edge,\nand falling back to linear order if layout has not run.\n",
              "file": "pkg/gameui/root.go",
              "line": 349
            },
            {
              "name": "OnKeyDown",
              "anchor": "Root.OnKeyDown",
              "recv": "*Root",
              "decl": "func (r *Root) OnKeyDown(ev core.KeyEvent) bool",
              "doc": "OnKeyDown handles keyboard navigation, activation, and slider adjustment.\nReturns true if the event was consumed by the UI.\n",
              "file": "pkg/gameui/root.go",
              "line": 481
            },
            {
              "name": "OnPointerDown",
              "anchor": "Root.OnPointerDown",
              "recv": "*Root",
              "decl": "func (r *Root) OnPointerDown(p core.Point) bool",
              "doc": "OnPointerDown focuses and presses the interactive widget under p, beginning a drag if it is a Slider.\nReturns true if an interactive widget was hit.\n",
              "file": "pkg/gameui/root.go",
              "line": 629
            },
            {
              "name": "OnPointerMove",
              "anchor": "Root.OnPointerMove",
              "recv": "*Root",
              "decl": "func (r *Root) OnPointerMove(p core.Point) bool",
              "doc": "OnPointerMove updates hover state and smoothly drags any active Slider.\nReturns true if the pointer is over an interactive widget or dragging a Slider.\n",
              "file": "pkg/gameui/root.go",
              "line": 599
            },
            {
              "name": "OnPointerUp",
              "anchor": "Root.OnPointerUp",
              "recv": "*Root",
              "decl": "func (r *Root) OnPointerUp(p core.Point) bool",
              "doc": "OnPointerUp finishes any active press or Slider drag, activating a Button, Toggle, or List item when released inside it.\nReturns true if a press or drag was handled.\n",
              "file": "pkg/gameui/root.go",
              "line": 666
            },
            {
              "name": "OnPress",
              "anchor": "Root.OnPress",
              "recv": "*Root",
              "decl": "func (r *Root) OnPress(ev core.PressEvent) bool",
              "doc": "OnPress handles a core.Canvas PressEvent directly (tapping/clicking a Button, Toggle, Slider, or List, or activating the focused widget on keyboard press).\n",
              "file": "pkg/gameui/root.go",
              "line": 721
            },
            {
              "name": "Pressed",
              "anchor": "Root.Pressed",
              "recv": "*Root",
              "decl": "func (r *Root) Pressed() Widget",
              "doc": "Pressed returns the currently pressed interactive widget, or nil.\n",
              "file": "pkg/gameui/root.go",
              "line": 272
            },
            {
              "name": "SetFocus",
              "anchor": "Root.SetFocus",
              "recv": "*Root",
              "decl": "func (r *Root) SetFocus(w Widget) bool",
              "doc": "SetFocus focuses w if it is visible and focusable in this tree.\n",
              "file": "pkg/gameui/root.go",
              "line": 301
            },
            {
              "name": "SetFocusIndex",
              "anchor": "Root.SetFocusIndex",
              "recv": "*Root",
              "decl": "func (r *Root) SetFocusIndex(index int) bool",
              "doc": "SetFocusIndex focuses the focusable widget at index, or clears focus when index < 0.\n",
              "file": "pkg/gameui/root.go",
              "line": 285
            },
            {
              "name": "StateOf",
              "anchor": "Root.StateOf",
              "recv": "*Root",
              "decl": "func (r *Root) StateOf(w Widget) WidgetState",
              "doc": "StateOf returns the current hover, pressed, focused, and disabled state of w.\n",
              "file": "pkg/gameui/root.go",
              "line": 129
            }
          ]
        },
        {
          "name": "ScaleMode",
          "anchor": "ScaleMode",
          "decl": "type ScaleMode uint8",
          "doc": "ScaleMode controls how a Viewport maps a virtual resolution into a physical window size.\n",
          "file": "pkg/gameui/viewport.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ScaleFit",
                  "anchor": "ScaleFit"
                },
                {
                  "name": "ScaleFill",
                  "anchor": "ScaleFill"
                },
                {
                  "name": "ScaleStretch",
                  "anchor": "ScaleStretch"
                },
                {
                  "name": "ScaleInteger",
                  "anchor": "ScaleInteger"
                },
                {
                  "name": "ScaleLetterbox",
                  "anchor": "ScaleLetterbox"
                },
                {
                  "name": "IntegerScale",
                  "anchor": "IntegerScale"
                }
              ],
              "decl": "const (\n\t// ScaleFit uniformly scales the virtual canvas to fit inside the window, adding letterbox or pillarbox bars as needed.\n\tScaleFit ScaleMode = iota\n\t// ScaleFill uniformly scales the virtual canvas to cover the entire window, cropping any overflow symmetrically.\n\tScaleFill\n\t// ScaleStretch scales X and Y independently to fill the window without preserving aspect ratio.\n\tScaleStretch\n\t// ScaleInteger uniformly scales by the largest integer factor >= 1 that fits inside the window,\n\t// falling back to ScaleFit when the window is smaller than the virtual resolution.\n\tScaleInteger\n\n\t// ScaleLetterbox is an alias for ScaleFit.\n\tScaleLetterbox = ScaleFit\n\t// IntegerScale is an alias for ScaleInteger.\n\tIntegerScale = ScaleInteger\n)",
              "doc": "",
              "file": "pkg/gameui/viewport.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScreenAnchor",
          "anchor": "ScreenAnchor",
          "decl": "type ScreenAnchor string",
          "doc": "ScreenAnchor positions a node against one of nine reference points or fills its parent bounds.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 55,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AnchorTopLeft",
                  "anchor": "AnchorTopLeft"
                },
                {
                  "name": "AnchorTopCenter",
                  "anchor": "AnchorTopCenter"
                },
                {
                  "name": "AnchorTopRight",
                  "anchor": "AnchorTopRight"
                },
                {
                  "name": "AnchorCenterLeft",
                  "anchor": "AnchorCenterLeft"
                },
                {
                  "name": "AnchorCenter",
                  "anchor": "AnchorCenter"
                },
                {
                  "name": "AnchorCenterRight",
                  "anchor": "AnchorCenterRight"
                },
                {
                  "name": "AnchorBottomLeft",
                  "anchor": "AnchorBottomLeft"
                },
                {
                  "name": "AnchorBottomCenter",
                  "anchor": "AnchorBottomCenter"
                },
                {
                  "name": "AnchorBottomRight",
                  "anchor": "AnchorBottomRight"
                },
                {
                  "name": "AnchorFill",
                  "anchor": "AnchorFill"
                }
              ],
              "decl": "const (\n\tAnchorTopLeft      ScreenAnchor = \"top_left\"\n\tAnchorTopCenter    ScreenAnchor = \"top_center\"\n\tAnchorTopRight     ScreenAnchor = \"top_right\"\n\tAnchorCenterLeft   ScreenAnchor = \"center_left\"\n\tAnchorCenter       ScreenAnchor = \"center\"\n\tAnchorCenterRight  ScreenAnchor = \"center_right\"\n\tAnchorBottomLeft   ScreenAnchor = \"bottom_left\"\n\tAnchorBottomCenter ScreenAnchor = \"bottom_center\"\n\tAnchorBottomRight  ScreenAnchor = \"bottom_right\"\n\tAnchorFill         ScreenAnchor = \"fill\"\n)",
              "doc": "",
              "file": "pkg/gameui/screen_format.go",
              "line": 57
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScreenBuildOptions",
          "anchor": "ScreenBuildOptions",
          "decl": "type ScreenBuildOptions struct {\n\t// SafeArea specifies the display safe-area insets in virtual points (for notches, rounded corners, and home indicators).\n\tSafeArea core.Edges\n\t// DeviceClass selects which conditional nodes (ScreenNodeDoc.DeviceClasses) are visible.\n\t// When empty, no device-class filtering is applied and all nodes remain visible.\n\tDeviceClass DeviceClass\n\t// ViewportWidth and ViewportHeight optionally override the Viewport's virtual dimensions (for example 780×360 for a 19.5:9 phone).\n\t// When zero, the document's DesignWidth and DesignHeight are used.\n\tViewportWidth  float32\n\tViewportHeight float32\n\t// Text resolves localization textKey values. When nil and Catalog is set, Catalog.T(Locale, key) is used; when both are nil, the key itself is displayed.\n\tText func(key string) string\n\t// Catalog optionally resolves textKey values when Text is nil.\n\tCatalog *l10n.Catalog\n\t// Locale optionally selects the locale in Catalog (empty uses Catalog's active locale).\n\tLocale string\n\t// Theme optionally overrides the built Root's theme; nil uses DefaultTheme tuned for DefaultScreenFontSize and screen text measurement.\n\tTheme *Theme\n\t// OnClick optionally binds click callbacks by node ID for button and touch_button nodes.\n\tOnClick map[string]func()\n\t// Sprites optionally resolves a node's Sprite path (and optional SpriteFrame) into a core.ImageSource and source rectangle.\n\tSprites func(path, frame string) (core.ImageSource, core.Bounds, bool)\n}",
          "doc": "ScreenBuildOptions configures BuildScreen.\n",
          "file": "pkg/gameui/screen_build.go",
          "line": 130,
          "members": [
            {
              "name": "SafeArea",
              "anchor": "ScreenBuildOptions.SafeArea",
              "kind": "field",
              "doc": "SafeArea specifies the display safe-area insets in virtual points (for notches, rounded corners, and home indicators)."
            },
            {
              "name": "DeviceClass",
              "anchor": "ScreenBuildOptions.DeviceClass",
              "kind": "field",
              "doc": "DeviceClass selects which conditional nodes (ScreenNodeDoc.DeviceClasses) are visible.\nWhen empty, no device-class filtering is applied and all nodes remain visible."
            },
            {
              "name": "ViewportWidth",
              "anchor": "ScreenBuildOptions.ViewportWidth",
              "kind": "field",
              "doc": "ViewportWidth and ViewportHeight optionally override the Viewport's virtual dimensions (for example 780×360 for a 19.5:9 phone).\nWhen zero, the document's DesignWidth and DesignHeight are used."
            },
            {
              "name": "ViewportHeight",
              "anchor": "ScreenBuildOptions.ViewportHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "ScreenBuildOptions.Text",
              "kind": "field",
              "doc": "Text resolves localization textKey values. When nil and Catalog is set, Catalog.T(Locale, key) is used; when both are nil, the key itself is displayed."
            },
            {
              "name": "Catalog",
              "anchor": "ScreenBuildOptions.Catalog",
              "kind": "field",
              "doc": "Catalog optionally resolves textKey values when Text is nil."
            },
            {
              "name": "Locale",
              "anchor": "ScreenBuildOptions.Locale",
              "kind": "field",
              "doc": "Locale optionally selects the locale in Catalog (empty uses Catalog's active locale)."
            },
            {
              "name": "Theme",
              "anchor": "ScreenBuildOptions.Theme",
              "kind": "field",
              "doc": "Theme optionally overrides the built Root's theme; nil uses DefaultTheme tuned for DefaultScreenFontSize and screen text measurement."
            },
            {
              "name": "OnClick",
              "anchor": "ScreenBuildOptions.OnClick",
              "kind": "field",
              "doc": "OnClick optionally binds click callbacks by node ID for button and touch_button nodes."
            },
            {
              "name": "Sprites",
              "anchor": "ScreenBuildOptions.Sprites",
              "kind": "field",
              "doc": "Sprites optionally resolves a node's Sprite path (and optional SpriteFrame) into a core.ImageSource and source rectangle."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScreenCanvas",
          "anchor": "ScreenCanvas",
          "decl": "type ScreenCanvas struct {\n\tSafeArea     core.Edges\n\tItems        []AnchoredItem\n\tBackground   core.Color\n\tCornerRadius float32\n\tWidth        float32\n\tHeight       float32\n\tMinWidth     float32\n\tMinHeight    float32\n\tFlex         float32\n\tAlign        Align\n\tHidden       bool\n\t// contains filtered or unexported fields\n}",
          "doc": "ScreenCanvas lays out children using nine-point anchors or fill, optional safe-area insets, and offsets.\nIt implements Container and Widget.\n",
          "file": "pkg/gameui/screen_widgets.go",
          "line": 402,
          "members": [
            {
              "name": "SafeArea",
              "anchor": "ScreenCanvas.SafeArea",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Items",
              "anchor": "ScreenCanvas.Items",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Background",
              "anchor": "ScreenCanvas.Background",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CornerRadius",
              "anchor": "ScreenCanvas.CornerRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "ScreenCanvas.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "ScreenCanvas.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "ScreenCanvas.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "ScreenCanvas.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "ScreenCanvas.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "ScreenCanvas.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "ScreenCanvas.Hidden",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "ScreenCanvas.Bounds",
              "recv": "*ScreenCanvas",
              "decl": "func (c *ScreenCanvas) Bounds() core.Bounds",
              "doc": "Bounds returns the canvas's laid-out rectangle.\n",
              "file": "pkg/gameui/screen_widgets.go",
              "line": 419
            },
            {
              "name": "ChildWidgets",
              "anchor": "ScreenCanvas.ChildWidgets",
              "recv": "*ScreenCanvas",
              "decl": "func (c *ScreenCanvas) ChildWidgets() []Widget",
              "doc": "ChildWidgets returns the direct child widgets in render order.\n",
              "file": "pkg/gameui/screen_widgets.go",
              "line": 422
            }
          ]
        },
        {
          "name": "ScreenCheckOptions",
          "anchor": "ScreenCheckOptions",
          "decl": "type ScreenCheckOptions struct {\n\t// Locales maps normalized locale tags to their message string maps (for example from l10n.StringTable.Strings).\n\tLocales map[string]map[string]string\n\t// Plurals optionally maps normalized locale tags to their CLDR plural entries (for example from l10n.StringTable.Plurals).\n\tPlurals map[string]map[string]l10n.PluralForms\n\t// Devices optionally overrides the reference device profiles; empty uses ReferenceDevicesFor(doc.DesignWidth, doc.DesignHeight).\n\tDevices []DeviceProfile\n\t// Theme optionally overrides the theme used for default text/button colors and text measurement.\n\tTheme *Theme\n\t// FallbackBackdrop is the backdrop color used to composite translucent fills when no opaque ancestor fill exists (defaults to #101216).\n\tFallbackBackdrop core.Color\n}",
          "doc": "ScreenCheckOptions configures CheckScreen.\n",
          "file": "pkg/gameui/screen_check.go",
          "line": 54,
          "members": [
            {
              "name": "Locales",
              "anchor": "ScreenCheckOptions.Locales",
              "kind": "field",
              "doc": "Locales maps normalized locale tags to their message string maps (for example from l10n.StringTable.Strings)."
            },
            {
              "name": "Plurals",
              "anchor": "ScreenCheckOptions.Plurals",
              "kind": "field",
              "doc": "Plurals optionally maps normalized locale tags to their CLDR plural entries (for example from l10n.StringTable.Plurals)."
            },
            {
              "name": "Devices",
              "anchor": "ScreenCheckOptions.Devices",
              "kind": "field",
              "doc": "Devices optionally overrides the reference device profiles; empty uses ReferenceDevicesFor(doc.DesignWidth, doc.DesignHeight)."
            },
            {
              "name": "Theme",
              "anchor": "ScreenCheckOptions.Theme",
              "kind": "field",
              "doc": "Theme optionally overrides the theme used for default text/button colors and text measurement."
            },
            {
              "name": "FallbackBackdrop",
              "anchor": "ScreenCheckOptions.FallbackBackdrop",
              "kind": "field",
              "doc": "FallbackBackdrop is the backdrop color used to composite translucent fills when no opaque ancestor fill exists (defaults to #101216)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScreenDoc",
          "anchor": "ScreenDoc",
          "decl": "type ScreenDoc struct {\n\t// Version is the schema version; it must equal ScreenFormatVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// UID is an optional stable ID for the screen file, kept across renames by game index and game mv.\n\tUID string `yaml:\"uid,omitempty\"`\n\t// Name is the screen's human-readable name (for example \"hud\" or \"pause\").\n\tName string `yaml:\"name,omitempty\"`\n\t// DesignWidth is the authored reference canvas width in virtual points (for example 640).\n\tDesignWidth float32 `yaml:\"designWidth\" schema:\"required,exclusiveMinimum=0\"`\n\t// DesignHeight is the authored reference canvas height in virtual points (for example 360).\n\tDesignHeight float32 `yaml:\"designHeight\" schema:\"required,exclusiveMinimum=0\"`\n\t// ScaleMode controls how the screen scales to different window sizes: fit (default), fill, stretch, or integer.\n\tScaleMode ScreenScaleMode `yaml:\"scaleMode,omitempty\" schema:\"enum=fit|fill|stretch|integer\"`\n\t// Nodes are the top-level UI nodes of the screen, rendered in slice order.\n\tNodes []ScreenNodeDoc `yaml:\"nodes,omitempty\"`\n}",
          "doc": "ScreenDoc is the root of a versioned *.screen.yaml HUD or menu screen definition.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 105,
          "members": [
            {
              "name": "Version",
              "anchor": "ScreenDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal ScreenFormatVersion (1)."
            },
            {
              "name": "UID",
              "anchor": "ScreenDoc.UID",
              "kind": "field",
              "doc": "UID is an optional stable ID for the screen file, kept across renames by game index and game mv."
            },
            {
              "name": "Name",
              "anchor": "ScreenDoc.Name",
              "kind": "field",
              "doc": "Name is the screen's human-readable name (for example \"hud\" or \"pause\")."
            },
            {
              "name": "DesignWidth",
              "anchor": "ScreenDoc.DesignWidth",
              "kind": "field",
              "doc": "DesignWidth is the authored reference canvas width in virtual points (for example 640)."
            },
            {
              "name": "DesignHeight",
              "anchor": "ScreenDoc.DesignHeight",
              "kind": "field",
              "doc": "DesignHeight is the authored reference canvas height in virtual points (for example 360)."
            },
            {
              "name": "ScaleMode",
              "anchor": "ScreenDoc.ScaleMode",
              "kind": "field",
              "doc": "ScaleMode controls how the screen scales to different window sizes: fit (default), fill, stretch, or integer."
            },
            {
              "name": "Nodes",
              "anchor": "ScreenDoc.Nodes",
              "kind": "field",
              "doc": "Nodes are the top-level UI nodes of the screen, rendered in slice order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadScreenFS",
              "anchor": "LoadScreenFS",
              "decl": "func LoadScreenFS(fsys fs.FS, name string) (*ScreenDoc, error)",
              "doc": "LoadScreenFS reads and parses a *.screen.yaml file from fsys, attaching name to any returned error.\n",
              "file": "pkg/gameui/screen_format.go",
              "line": 263
            },
            {
              "name": "ParseScreen",
              "anchor": "ParseScreen",
              "decl": "func ParseScreen(data []byte) (*ScreenDoc, error)",
              "doc": "ParseScreen decodes and validates a versioned *.screen.yaml document.\nUnknown fields, trailing YAML documents, YAML anchors/aliases/merge keys, missing or unsupported versions,\nduplicate node IDs, duplicate focus orders, invalid enums or colors, and non-finite numbers are refused.\n\nErrors are *loaderr.Error values carrying line, column, field path, and fix guidance; callers that read from a file\ncan attach the file path with loaderr.WithFile.\n",
              "file": "pkg/gameui/screen_format.go",
              "line": 254
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "ScreenDoc.Clone",
              "recv": "*ScreenDoc",
              "decl": "func (doc *ScreenDoc) Clone() *ScreenDoc",
              "doc": "Clone returns a deep copy of doc.\n",
              "file": "pkg/gameui/screen_format.go",
              "line": 599
            },
            {
              "name": "EffectiveScaleMode",
              "anchor": "ScreenDoc.EffectiveScaleMode",
              "recv": "*ScreenDoc",
              "decl": "func (doc *ScreenDoc) EffectiveScaleMode() ScaleMode",
              "doc": "EffectiveScaleMode maps doc.ScaleMode to a gameui.ScaleMode, defaulting to ScaleFit.\n",
              "file": "pkg/gameui/screen_format.go",
              "line": 225
            }
          ]
        },
        {
          "name": "ScreenIssue",
          "anchor": "ScreenIssue",
          "decl": "type ScreenIssue struct {\n\t// Code classifies the issue.\n\tCode ScreenIssueCode\n\t// NodeID is the ScreenNodeDoc.ID at fault.\n\tNodeID string\n\t// NodePath holds the YAML path steps from the document root to the offending node or field (for example [\"nodes\", \"3\", \"textKey\"]).\n\tNodePath []string\n\t// Locale is the BCP-47 locale tag involved, when the issue is locale-specific.\n\tLocale string\n\t// Devices names the reference device profiles involved, when the issue is device-specific.\n\tDevices []string\n\t// Message describes the issue for diagnostics and UI panels.\n\tMessage string\n}",
          "doc": "ScreenIssue is one problem CheckScreen finds in a ScreenDoc.\n",
          "file": "pkg/gameui/screen_check.go",
          "line": 38,
          "members": [
            {
              "name": "Code",
              "anchor": "ScreenIssue.Code",
              "kind": "field",
              "doc": "Code classifies the issue."
            },
            {
              "name": "NodeID",
              "anchor": "ScreenIssue.NodeID",
              "kind": "field",
              "doc": "NodeID is the ScreenNodeDoc.ID at fault."
            },
            {
              "name": "NodePath",
              "anchor": "ScreenIssue.NodePath",
              "kind": "field",
              "doc": "NodePath holds the YAML path steps from the document root to the offending node or field (for example [\"nodes\", \"3\", \"textKey\"])."
            },
            {
              "name": "Locale",
              "anchor": "ScreenIssue.Locale",
              "kind": "field",
              "doc": "Locale is the BCP-47 locale tag involved, when the issue is locale-specific."
            },
            {
              "name": "Devices",
              "anchor": "ScreenIssue.Devices",
              "kind": "field",
              "doc": "Devices names the reference device profiles involved, when the issue is device-specific."
            },
            {
              "name": "Message",
              "anchor": "ScreenIssue.Message",
              "kind": "field",
              "doc": "Message describes the issue for diagnostics and UI panels."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CheckScreen",
              "anchor": "CheckScreen",
              "decl": "func CheckScreen(doc *ScreenDoc, opts ScreenCheckOptions) []ScreenIssue",
              "doc": "CheckScreen checks doc against the HUD/menu screen quality rules:\n  - touch areas under 44 pt on phones and tablets;\n  - localized text overflowing its box at any reference device size (Phone 19.5:9 with notch, Tablet 4:3, Desktop 16:9, Ultrawide 21:9);\n  - textKey entries missing from any project locale;\n  - text under 4.5:1 WCAG contrast against its own fill.\n",
              "file": "pkg/gameui/screen_check.go",
              "line": 81
            }
          ],
          "methods": []
        },
        {
          "name": "ScreenIssueCode",
          "anchor": "ScreenIssueCode",
          "decl": "type ScreenIssueCode string",
          "doc": "ScreenIssueCode identifies the category of a screen check diagnostic.\n",
          "file": "pkg/gameui/screen_check.go",
          "line": 24,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "IssueTouchAreaTooSmall",
                  "anchor": "IssueTouchAreaTooSmall"
                },
                {
                  "name": "IssueTextOverflow",
                  "anchor": "IssueTextOverflow"
                },
                {
                  "name": "IssueMissingTextKey",
                  "anchor": "IssueMissingTextKey"
                },
                {
                  "name": "IssueLowContrast",
                  "anchor": "IssueLowContrast"
                }
              ],
              "decl": "const (\n\t// IssueTouchAreaTooSmall flags a touch control whose hit area is below MinTouchTargetSize (44 pt) on phones or tablets.\n\tIssueTouchAreaTooSmall ScreenIssueCode = \"touch_area_too_small\"\n\t// IssueTextOverflow flags a text node whose localized string exceeds its laid-out box width at one or more reference sizes.\n\tIssueTextOverflow ScreenIssueCode = \"text_overflow\"\n\t// IssueMissingTextKey flags a textKey absent from a project locale table.\n\tIssueMissingTextKey ScreenIssueCode = \"missing_text_key\"\n\t// IssueLowContrast flags text whose contrast ratio against its fill is under 4.5:1.\n\tIssueLowContrast ScreenIssueCode = \"low_contrast\"\n)",
              "doc": "",
              "file": "pkg/gameui/screen_check.go",
              "line": 26
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScreenNodeDoc",
          "anchor": "ScreenNodeDoc",
          "decl": "type ScreenNodeDoc struct {\n\t// ID uniquely identifies this node within the screen.\n\tID string `yaml:\"id\" schema:\"required,minLength=1\"`\n\t// Type selects the widget or container kind.\n\tType ScreenNodeType `yaml:\"type\" schema:\"required,enum=vbox|hbox|label|button|sprite_row|color_rect|touch_stick|touch_button|container\"`\n\t// Anchor positions the node relative to the screen or safe area: one of the nine anchor points or fill.\n\tAnchor ScreenAnchor `yaml:\"anchor,omitempty\" schema:\"enum=top_left|top_center|top_right|center_left|center|center_right|bottom_left|bottom_center|bottom_right|fill\"`\n\t// Offset shifts the node from its anchor in virtual points. For right and bottom anchors, positive values inset inward from that edge.\n\tOffset *ScreenOffsetDoc `yaml:\"offset,omitempty\"`\n\t// SafeArea keeps the node inside the display safe area (away from notches and home indicators). Nil defaults to true for non-fill anchors and false for fill.\n\tSafeArea *bool `yaml:\"safeArea,omitempty\"`\n\t// SizeMode selects whether width is fixed (\"fixed\", the default) or sizes to fit localized text (\"fit_text\").\n\tSizeMode SizeMode `yaml:\"sizeMode,omitempty\" schema:\"enum=fixed|fit_text\"`\n\t// Width is the node's fixed width in virtual points (0 uses intrinsic or container-determined width).\n\tWidth float32 `yaml:\"width,omitempty\" schema:\"minimum=0\"`\n\t// Height is the node's fixed height in virtual points (0 uses intrinsic or container-determined height).\n\tHeight float32 `yaml:\"height,omitempty\" schema:\"minimum=0\"`\n\t// Padding is the node's inner padding in virtual points.\n\tPadding *ScreenPaddingDoc `yaml:\"padding,omitempty\"`\n\t// Spacing is the gap between children of a vbox, hbox, or sprite_row in virtual points.\n\tSpacing float32 `yaml:\"spacing,omitempty\" schema:\"minimum=0\"`\n\t// TextKey names a localized string in the project's l10n tables (such as \"hud.hint.lever\"). Screen files store localization keys rather than literal text.\n\tTextKey string `yaml:\"textKey,omitempty\"`\n\t// FocusOrder sets the explicit keyboard/gamepad focus traversal order (1-based; 0 means not explicitly ordered).\n\tFocusOrder int `yaml:\"focusOrder,omitempty\" schema:\"minimum=0\"`\n\t// TouchHitSize is the touch target diameter in virtual points for touch_stick, touch_button, or touch-interactive buttons.\n\tTouchHitSize float32 `yaml:\"touchHitSize,omitempty\" schema:\"minimum=0\"`\n\t// DeviceClasses optionally restricts the node and its subtree to the listed device classes (for example [phone, tablet]). Empty shows on all devices.\n\tDeviceClasses []DeviceClass `yaml:\"deviceClasses,omitempty\"`\n\t// Sprite is a project-relative path to a sprite image or atlas file (for example \"art/ui/heart.png\"), followed by refs and game mv.\n\tSprite string `yaml:\"sprite,omitempty\"`\n\t// SpriteFrame optionally names a frame inside a sprite atlas when Sprite points to an atlas JSON file.\n\tSpriteFrame string `yaml:\"spriteFrame,omitempty\"`\n\t// SpriteCount is the number of repeated icons in a sprite_row (defaults to 1 when Sprite is set).\n\tSpriteCount int `yaml:\"spriteCount,omitempty\" schema:\"minimum=0\"`\n\t// FontSize overrides the text font size in virtual points for text-bearing nodes.\n\tFontSize float32 `yaml:\"fontSize,omitempty\" schema:\"minimum=0\"`\n\t// TextColor is an optional CSS color string parsed with core.ParseColor for text.\n\tTextColor string `yaml:\"textColor,omitempty\"`\n\t// Background is an optional CSS color string parsed with core.ParseColor for the node's fill.\n\tBackground string `yaml:\"background,omitempty\"`\n\t// CornerRadius is an optional corner radius in virtual points.\n\tCornerRadius float32 `yaml:\"cornerRadius,omitempty\" schema:\"minimum=0\"`\n\t// Children are nested child nodes for container types (vbox, hbox, container).\n\tChildren []ScreenNodeDoc `yaml:\"children,omitempty\"`\n}",
          "doc": "ScreenNodeDoc is one node in a *.screen.yaml tree.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 157,
          "members": [
            {
              "name": "ID",
              "anchor": "ScreenNodeDoc.ID",
              "kind": "field",
              "doc": "ID uniquely identifies this node within the screen."
            },
            {
              "name": "Type",
              "anchor": "ScreenNodeDoc.Type",
              "kind": "field",
              "doc": "Type selects the widget or container kind."
            },
            {
              "name": "Anchor",
              "anchor": "ScreenNodeDoc.Anchor",
              "kind": "field",
              "doc": "Anchor positions the node relative to the screen or safe area: one of the nine anchor points or fill."
            },
            {
              "name": "Offset",
              "anchor": "ScreenNodeDoc.Offset",
              "kind": "field",
              "doc": "Offset shifts the node from its anchor in virtual points. For right and bottom anchors, positive values inset inward from that edge."
            },
            {
              "name": "SafeArea",
              "anchor": "ScreenNodeDoc.SafeArea",
              "kind": "field",
              "doc": "SafeArea keeps the node inside the display safe area (away from notches and home indicators). Nil defaults to true for non-fill anchors and false for fill."
            },
            {
              "name": "SizeMode",
              "anchor": "ScreenNodeDoc.SizeMode",
              "kind": "field",
              "doc": "SizeMode selects whether width is fixed (\"fixed\", the default) or sizes to fit localized text (\"fit_text\")."
            },
            {
              "name": "Width",
              "anchor": "ScreenNodeDoc.Width",
              "kind": "field",
              "doc": "Width is the node's fixed width in virtual points (0 uses intrinsic or container-determined width)."
            },
            {
              "name": "Height",
              "anchor": "ScreenNodeDoc.Height",
              "kind": "field",
              "doc": "Height is the node's fixed height in virtual points (0 uses intrinsic or container-determined height)."
            },
            {
              "name": "Padding",
              "anchor": "ScreenNodeDoc.Padding",
              "kind": "field",
              "doc": "Padding is the node's inner padding in virtual points."
            },
            {
              "name": "Spacing",
              "anchor": "ScreenNodeDoc.Spacing",
              "kind": "field",
              "doc": "Spacing is the gap between children of a vbox, hbox, or sprite_row in virtual points."
            },
            {
              "name": "TextKey",
              "anchor": "ScreenNodeDoc.TextKey",
              "kind": "field",
              "doc": "TextKey names a localized string in the project's l10n tables (such as \"hud.hint.lever\"). Screen files store localization keys rather than literal text."
            },
            {
              "name": "FocusOrder",
              "anchor": "ScreenNodeDoc.FocusOrder",
              "kind": "field",
              "doc": "FocusOrder sets the explicit keyboard/gamepad focus traversal order (1-based; 0 means not explicitly ordered)."
            },
            {
              "name": "TouchHitSize",
              "anchor": "ScreenNodeDoc.TouchHitSize",
              "kind": "field",
              "doc": "TouchHitSize is the touch target diameter in virtual points for touch_stick, touch_button, or touch-interactive buttons."
            },
            {
              "name": "DeviceClasses",
              "anchor": "ScreenNodeDoc.DeviceClasses",
              "kind": "field",
              "doc": "DeviceClasses optionally restricts the node and its subtree to the listed device classes (for example [phone, tablet]). Empty shows on all devices."
            },
            {
              "name": "Sprite",
              "anchor": "ScreenNodeDoc.Sprite",
              "kind": "field",
              "doc": "Sprite is a project-relative path to a sprite image or atlas file (for example \"art/ui/heart.png\"), followed by refs and game mv."
            },
            {
              "name": "SpriteFrame",
              "anchor": "ScreenNodeDoc.SpriteFrame",
              "kind": "field",
              "doc": "SpriteFrame optionally names a frame inside a sprite atlas when Sprite points to an atlas JSON file."
            },
            {
              "name": "SpriteCount",
              "anchor": "ScreenNodeDoc.SpriteCount",
              "kind": "field",
              "doc": "SpriteCount is the number of repeated icons in a sprite_row (defaults to 1 when Sprite is set)."
            },
            {
              "name": "FontSize",
              "anchor": "ScreenNodeDoc.FontSize",
              "kind": "field",
              "doc": "FontSize overrides the text font size in virtual points for text-bearing nodes."
            },
            {
              "name": "TextColor",
              "anchor": "ScreenNodeDoc.TextColor",
              "kind": "field",
              "doc": "TextColor is an optional CSS color string parsed with core.ParseColor for text."
            },
            {
              "name": "Background",
              "anchor": "ScreenNodeDoc.Background",
              "kind": "field",
              "doc": "Background is an optional CSS color string parsed with core.ParseColor for the node's fill."
            },
            {
              "name": "CornerRadius",
              "anchor": "ScreenNodeDoc.CornerRadius",
              "kind": "field",
              "doc": "CornerRadius is an optional corner radius in virtual points."
            },
            {
              "name": "Children",
              "anchor": "ScreenNodeDoc.Children",
              "kind": "field",
              "doc": "Children are nested child nodes for container types (vbox, hbox, container)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveAnchor",
              "anchor": "ScreenNodeDoc.EffectiveAnchor",
              "recv": "*ScreenNodeDoc",
              "decl": "func (n *ScreenNodeDoc) EffectiveAnchor() ScreenAnchor",
              "doc": "EffectiveAnchor returns n.Anchor, defaulting to AnchorTopLeft when empty.\n",
              "file": "pkg/gameui/screen_format.go",
              "line": 217
            },
            {
              "name": "KeepInSafeArea",
              "anchor": "ScreenNodeDoc.KeepInSafeArea",
              "recv": "*ScreenNodeDoc",
              "decl": "func (n *ScreenNodeDoc) KeepInSafeArea() bool",
              "doc": "KeepInSafeArea reports whether the node stays inside the display safe area.\nWhen SafeArea is nil, non-fill anchors default to true and AnchorFill defaults to false.\n",
              "file": "pkg/gameui/screen_format.go",
              "line": 206
            }
          ]
        },
        {
          "name": "ScreenNodeType",
          "anchor": "ScreenNodeType",
          "decl": "type ScreenNodeType string",
          "doc": "ScreenNodeType identifies the widget or container kind of a ScreenNodeDoc.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 31,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NodeVBox",
                  "anchor": "NodeVBox"
                },
                {
                  "name": "NodeHBox",
                  "anchor": "NodeHBox"
                },
                {
                  "name": "NodeLabel",
                  "anchor": "NodeLabel"
                },
                {
                  "name": "NodeButton",
                  "anchor": "NodeButton"
                },
                {
                  "name": "NodeSpriteRow",
                  "anchor": "NodeSpriteRow"
                },
                {
                  "name": "NodeColorRect",
                  "anchor": "NodeColorRect"
                },
                {
                  "name": "NodeTouchStick",
                  "anchor": "NodeTouchStick"
                },
                {
                  "name": "NodeTouchButton",
                  "anchor": "NodeTouchButton"
                },
                {
                  "name": "NodeContainer",
                  "anchor": "NodeContainer"
                }
              ],
              "decl": "const (\n\t// NodeVBox stacks children vertically.\n\tNodeVBox ScreenNodeType = \"vbox\"\n\t// NodeHBox arranges children horizontally.\n\tNodeHBox ScreenNodeType = \"hbox\"\n\t// NodeLabel displays localized non-interactive text.\n\tNodeLabel ScreenNodeType = \"label\"\n\t// NodeButton displays a focusable, clickable button.\n\tNodeButton ScreenNodeType = \"button\"\n\t// NodeSpriteRow displays a horizontal row of repeated sprite icons (such as health hearts).\n\tNodeSpriteRow ScreenNodeType = \"sprite_row\"\n\t// NodeColorRect draws a filled rectangle (such as a modal dim backdrop or HUD plate).\n\tNodeColorRect ScreenNodeType = \"color_rect\"\n\t// NodeTouchStick displays an on-screen virtual thumbstick for touch devices.\n\tNodeTouchStick ScreenNodeType = \"touch_stick\"\n\t// NodeTouchButton displays an on-screen circular/rounded touch action button.\n\tNodeTouchButton ScreenNodeType = \"touch_button\"\n\t// NodeContainer groups child nodes with optional device-class filtering or anchored sub-bounds.\n\tNodeContainer ScreenNodeType = \"container\"\n)",
              "doc": "",
              "file": "pkg/gameui/screen_format.go",
              "line": 33
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsContainer",
              "anchor": "ScreenNodeType.IsContainer",
              "recv": "ScreenNodeType",
              "decl": "func (t ScreenNodeType) IsContainer() bool",
              "doc": "IsContainer reports whether t can hold child nodes.\n",
              "file": "pkg/gameui/screen_format.go",
              "line": 514
            }
          ]
        },
        {
          "name": "ScreenOffsetDoc",
          "anchor": "ScreenOffsetDoc",
          "decl": "type ScreenOffsetDoc struct {\n\t// X is the horizontal offset in virtual points.\n\tX float32 `yaml:\"x,omitempty\"`\n\t// Y is the vertical offset in virtual points.\n\tY float32 `yaml:\"y,omitempty\"`\n}",
          "doc": "ScreenOffsetDoc is an offset from a node's anchor point in virtual points.\nFor right and bottom anchors, positive X and Y values move inward away from that edge.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 124,
          "members": [
            {
              "name": "X",
              "anchor": "ScreenOffsetDoc.X",
              "kind": "field",
              "doc": "X is the horizontal offset in virtual points."
            },
            {
              "name": "Y",
              "anchor": "ScreenOffsetDoc.Y",
              "kind": "field",
              "doc": "Y is the vertical offset in virtual points."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScreenPaddingDoc",
          "anchor": "ScreenPaddingDoc",
          "decl": "type ScreenPaddingDoc struct {\n\t// Top is the top inner padding in virtual points.\n\tTop float32 `yaml:\"top,omitempty\" schema:\"minimum=0\"`\n\t// Right is the right inner padding in virtual points.\n\tRight float32 `yaml:\"right,omitempty\" schema:\"minimum=0\"`\n\t// Bottom is the bottom inner padding in virtual points.\n\tBottom float32 `yaml:\"bottom,omitempty\" schema:\"minimum=0\"`\n\t// Left is the left inner padding in virtual points.\n\tLeft float32 `yaml:\"left,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "ScreenPaddingDoc holds inner padding in virtual points.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 132,
          "members": [
            {
              "name": "Top",
              "anchor": "ScreenPaddingDoc.Top",
              "kind": "field",
              "doc": "Top is the top inner padding in virtual points."
            },
            {
              "name": "Right",
              "anchor": "ScreenPaddingDoc.Right",
              "kind": "field",
              "doc": "Right is the right inner padding in virtual points."
            },
            {
              "name": "Bottom",
              "anchor": "ScreenPaddingDoc.Bottom",
              "kind": "field",
              "doc": "Bottom is the bottom inner padding in virtual points."
            },
            {
              "name": "Left",
              "anchor": "ScreenPaddingDoc.Left",
              "kind": "field",
              "doc": "Left is the left inner padding in virtual points."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Edges",
              "anchor": "ScreenPaddingDoc.Edges",
              "recv": "*ScreenPaddingDoc",
              "decl": "func (p *ScreenPaddingDoc) Edges() core.Edges",
              "doc": "Edges converts p into core.Edges (returning zero edges when p is nil).\n",
              "file": "pkg/gameui/screen_format.go",
              "line": 144
            }
          ]
        },
        {
          "name": "ScreenScaleMode",
          "anchor": "ScreenScaleMode",
          "decl": "type ScreenScaleMode string",
          "doc": "ScreenScaleMode selects the Viewport scaling behavior for a screen file.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 91,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ScreenScaleFit",
                  "anchor": "ScreenScaleFit"
                },
                {
                  "name": "ScreenScaleFill",
                  "anchor": "ScreenScaleFill"
                },
                {
                  "name": "ScreenScaleStretch",
                  "anchor": "ScreenScaleStretch"
                },
                {
                  "name": "ScreenScaleInteger",
                  "anchor": "ScreenScaleInteger"
                }
              ],
              "decl": "const (\n\t// ScreenScaleFit uniformly scales the design canvas to fit inside the window (default).\n\tScreenScaleFit ScreenScaleMode = \"fit\"\n\t// ScreenScaleFill uniformly scales the design canvas to cover the window.\n\tScreenScaleFill ScreenScaleMode = \"fill\"\n\t// ScreenScaleStretch scales X and Y independently to fill the window.\n\tScreenScaleStretch ScreenScaleMode = \"stretch\"\n\t// ScreenScaleInteger uniformly scales by the largest integer factor >= 1 that fits.\n\tScreenScaleInteger ScreenScaleMode = \"integer\"\n)",
              "doc": "",
              "file": "pkg/gameui/screen_format.go",
              "line": 93
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsAction",
          "anchor": "SettingsAction",
          "decl": "type SettingsAction struct {\n\t// Name is the action key stored in save.Settings.Bindings (for example \"jump\", \"left\", \"pause\").\n\tName string\n\t// Label is displayed in the Controls tab; defaults to Name when empty.\n\tLabel string\n\t// Defaults lists default binding tokens (for example \"key:space\", \"gamepad:south\") restored on Reset.\n\tDefaults []string\n}",
          "doc": "SettingsAction describes a rebindable input action shown in the Controls tab.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 88,
          "members": [
            {
              "name": "Name",
              "anchor": "SettingsAction.Name",
              "kind": "field",
              "doc": "Name is the action key stored in save.Settings.Bindings (for example \"jump\", \"left\", \"pause\")."
            },
            {
              "name": "Label",
              "anchor": "SettingsAction.Label",
              "kind": "field",
              "doc": "Label is displayed in the Controls tab; defaults to Name when empty."
            },
            {
              "name": "Defaults",
              "anchor": "SettingsAction.Defaults",
              "kind": "field",
              "doc": "Defaults lists default binding tokens (for example \"key:space\", \"gamepad:south\") restored on Reset."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsAudioBus",
          "anchor": "SettingsAudioBus",
          "decl": "type SettingsAudioBus struct {\n\t// Name is the key inside save.AudioSettings.Groups (for example \"music\", \"sfx\", \"ui\").\n\tName string\n\t// Label is shown next to the slider; defaults to Name when empty.\n\tLabel string\n}",
          "doc": "SettingsAudioBus describes an audio group slider shown in the Audio tab.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 63,
          "members": [
            {
              "name": "Name",
              "anchor": "SettingsAudioBus.Name",
              "kind": "field",
              "doc": "Name is the key inside save.AudioSettings.Groups (for example \"music\", \"sfx\", \"ui\")."
            },
            {
              "name": "Label",
              "anchor": "SettingsAudioBus.Label",
              "kind": "field",
              "doc": "Label is shown next to the slider; defaults to Name when empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsLocale",
          "anchor": "SettingsLocale",
          "decl": "type SettingsLocale struct {\n\t// Tag is the BCP-47 locale tag stored in save.Settings.Locale (\"\" selects the system default).\n\tTag string\n\t// Label is displayed in the Language tab; defaults to Tag or SystemDefault.\n\tLabel string\n}",
          "doc": "SettingsLocale describes a selectable language entry in the Language tab.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 98,
          "members": [
            {
              "name": "Tag",
              "anchor": "SettingsLocale.Tag",
              "kind": "field",
              "doc": "Tag is the BCP-47 locale tag stored in save.Settings.Locale (\"\" selects the system default)."
            },
            {
              "name": "Label",
              "anchor": "SettingsLocale.Label",
              "kind": "field",
              "doc": "Label is displayed in the Language tab; defaults to Tag or SystemDefault."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsMenu",
          "anchor": "SettingsMenu",
          "decl": "type SettingsMenu struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "SettingsMenu is a ready-to-use, gameui-based settings screen covering Audio, Video,\nControls (rebinding), Language, and Accessibility, persisted via save.DefaultSettingsStore\nand operable with mouse, touch, keyboard, and gamepad alone.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 401,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSettingsMenu",
              "anchor": "NewSettingsMenu",
              "decl": "func NewSettingsMenu(cfg SettingsMenuConfig) *SettingsMenu",
              "doc": "NewSettingsMenu constructs a SettingsMenu wired to cfg and ready to draw and receive input.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 498
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "SettingsMenu.Apply",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Apply() error",
              "doc": "Apply validates the working settings and dispatches them to Targets and OnApply.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1760
            },
            {
              "name": "Back",
              "anchor": "SettingsMenu.Back",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Back()",
              "doc": "Back cancels capture if active; otherwise invokes OnBack.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1842
            },
            {
              "name": "BeginCapture",
              "anchor": "SettingsMenu.BeginCapture",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) BeginCapture(actionName string) bool",
              "doc": "BeginCapture enters control-rebinding capture mode for actionName.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1690
            },
            {
              "name": "CancelCapture",
              "anchor": "SettingsMenu.CancelCapture",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) CancelCapture()",
              "doc": "CancelCapture exits control-rebinding capture mode without modifying bindings.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1708
            },
            {
              "name": "CaptureBinding",
              "anchor": "SettingsMenu.CaptureBinding",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) CaptureBinding(token string) bool",
              "doc": "CaptureBinding assigns token to the currently capturing action, replacing the existing binding\nof the same input device class (keyboard vs gamepad vs mouse) while keeping other classes intact.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1719
            },
            {
              "name": "CapturingAction",
              "anchor": "SettingsMenu.CapturingAction",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) CapturingAction() string",
              "doc": "CapturingAction returns the action name currently awaiting a key or gamepad button press, or \"\".\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1687
            },
            {
              "name": "Dirty",
              "anchor": "SettingsMenu.Dirty",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Dirty() bool",
              "doc": "Dirty reports whether the working settings have unsaved changes.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1681
            },
            {
              "name": "Draw",
              "anchor": "SettingsMenu.Draw",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Draw(d *core.Drawing, bounds core.Bounds)",
              "doc": "Draw lays out and renders the settings menu into d within bounds.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1858
            },
            {
              "name": "Err",
              "anchor": "SettingsMenu.Err",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Err() error",
              "doc": "Err returns the last error produced by Load, Apply, or Save.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1684
            },
            {
              "name": "FooterButtons",
              "anchor": "SettingsMenu.FooterButtons",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) FooterButtons() (apply, saveBtn, reset, back *Button)",
              "doc": "FooterButtons returns the Apply, Save, Reset, and Back buttons in order.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1650
            },
            {
              "name": "HandleAction",
              "anchor": "SettingsMenu.HandleAction",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) HandleAction(action NavAction) bool",
              "doc": "HandleAction dispatches a logical NavAction through the menu, supporting slider adjustment,\ntoggle switching, cycle-option stepping on NavLeft/NavRight, and capture cancellation on NavBack.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1994
            },
            {
              "name": "Layout",
              "anchor": "SettingsMenu.Layout",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Layout(bounds core.Bounds)",
              "doc": "Layout lays out the menu inside bounds.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1853
            },
            {
              "name": "Navigator",
              "anchor": "SettingsMenu.Navigator",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Navigator() *SpatialNavigator",
              "doc": "Navigator returns the menu's SpatialNavigator.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1585
            },
            {
              "name": "NextTab",
              "anchor": "SettingsMenu.NextTab",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) NextTab()",
              "doc": "NextTab switches to the next settings tab, wrapping from Accessibility back to Audio.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1624
            },
            {
              "name": "OnGamepadButton",
              "anchor": "SettingsMenu.OnGamepadButton",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) OnGamepadButton(btn gamepad.Button) bool",
              "doc": "OnGamepadButton processes a single gamepad button press (rising edge).\nWhile capturing a control rebind, any valid button is captured; otherwise D-pad,\nSouth (confirm), East (back), and LB/RB (previous/next tab) drive the menu.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 2052
            },
            {
              "name": "OnKeyDown",
              "anchor": "SettingsMenu.OnKeyDown",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) OnKeyDown(ev core.KeyEvent) bool",
              "doc": "OnKeyDown handles keyboard navigation, slider/option stepping, and control rebinding capture.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1946
            },
            {
              "name": "OnPointerDown",
              "anchor": "SettingsMenu.OnPointerDown",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) OnPointerDown(p core.Point) bool",
              "doc": "OnPointerDown focuses and presses the control under p.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1868
            },
            {
              "name": "OnPointerMove",
              "anchor": "SettingsMenu.OnPointerMove",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) OnPointerMove(p core.Point) bool",
              "doc": "OnPointerMove updates hover state and drags any active slider.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1863
            },
            {
              "name": "OnPointerUp",
              "anchor": "SettingsMenu.OnPointerUp",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) OnPointerUp(p core.Point) bool",
              "doc": "OnPointerUp finishes any press or slider drag, activating controls released inside their bounds.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1873
            },
            {
              "name": "OnPress",
              "anchor": "SettingsMenu.OnPress",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) OnPress(ev core.PressEvent) bool",
              "doc": "OnPress handles a completed core.PressEvent directly.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1878
            },
            {
              "name": "OnTouch",
              "anchor": "SettingsMenu.OnTouch",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) OnTouch(ev core.TouchEvent) bool",
              "doc": "OnTouch routes touch start, move, end, and cancel events to sliders, toggles, and buttons.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1883
            },
            {
              "name": "PrevTab",
              "anchor": "SettingsMenu.PrevTab",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) PrevTab()",
              "doc": "PrevTab switches to the previous settings tab, wrapping from Audio to Accessibility.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1629
            },
            {
              "name": "Reset",
              "anchor": "SettingsMenu.Reset",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Reset()",
              "doc": "Reset restores all settings to their configured defaults and refreshes the UI.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1817
            },
            {
              "name": "ResetControls",
              "anchor": "SettingsMenu.ResetControls",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) ResetControls()",
              "doc": "ResetControls restores all configured actions' bindings to their default values.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1741
            },
            {
              "name": "Root",
              "anchor": "SettingsMenu.Root",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Root() *Root",
              "doc": "Root returns the menu's underlying gameui Root.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1582
            },
            {
              "name": "Save",
              "anchor": "SettingsMenu.Save",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Save() error",
              "doc": "Save validates the working settings, persists them through Store (when configured),\napplies them to Targets/OnApply, and invokes OnSave.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1783
            },
            {
              "name": "SetSettings",
              "anchor": "SettingsMenu.SetSettings",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) SetSettings(s save.Settings)",
              "doc": "SetSettings replaces the menu's working settings and refreshes all controls.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1660
            },
            {
              "name": "SetTab",
              "anchor": "SettingsMenu.SetTab",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) SetTab(tab SettingsTab)",
              "doc": "SetTab switches the active settings tab, cancelling any in-progress control capture\nand updating focus and directional navigation cleanly.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1592
            },
            {
              "name": "SetText",
              "anchor": "SettingsMenu.SetText",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) SetText(text SettingsText)",
              "doc": "SetText updates the menu's user-visible strings (for example after changing locale).\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1675
            },
            {
              "name": "Settings",
              "anchor": "SettingsMenu.Settings",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Settings() save.Settings",
              "doc": "Settings returns a deep copy of the menu's current working player settings.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1655
            },
            {
              "name": "StepActions",
              "anchor": "SettingsMenu.StepActions",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) StepActions(pressed func(NavAction) bool) bool",
              "doc": "StepActions polls logical UI navigation actions (such as from input.Actions.JustPressed)\nand dispatches them in deterministic order.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 2035
            },
            {
              "name": "StepGamepad",
              "anchor": "SettingsMenu.StepGamepad",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) StepGamepad(pads []gamepad.Pad) bool",
              "doc": "StepGamepad polls connected gamepads once per frame, driving navigation, tab switching,\nvalue adjustment, and control-rebinding capture on button and left-stick rising edges.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 2111
            },
            {
              "name": "SyncGamepad",
              "anchor": "SettingsMenu.SyncGamepad",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) SyncGamepad(pads []gamepad.Pad)",
              "doc": "SyncGamepad records the currently held buttons and left-stick position on pads as the\nbaseline without triggering any actions. Call it when opening the menu so buttons held\nto open the screen do not immediately fire inside it.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 2086
            },
            {
              "name": "Tab",
              "anchor": "SettingsMenu.Tab",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) Tab() SettingsTab",
              "doc": "Tab returns the currently active SettingsTab.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1588
            },
            {
              "name": "TabButton",
              "anchor": "SettingsMenu.TabButton",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) TabButton(tab SettingsTab) *Button",
              "doc": "TabButton returns the tab-bar Button for tab.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1634
            },
            {
              "name": "TabControls",
              "anchor": "SettingsMenu.TabControls",
              "recv": "*SettingsMenu",
              "decl": "func (m *SettingsMenu) TabControls(tab SettingsTab) []Widget",
              "doc": "TabControls returns the ordered focusable widgets inside tab.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 1642
            }
          ]
        },
        {
          "name": "SettingsMenuConfig",
          "anchor": "SettingsMenuConfig",
          "decl": "type SettingsMenuConfig struct {\n\t// Store optionally loads initial player settings and persists changes when Save is called.\n\tStore *save.DefaultSettingsStore\n\t// Targets optionally receives validated settings via save.Apply when Apply or Save is called.\n\tTargets save.SettingsTargets\n\t// Initial supplies starting settings when Store is nil (or if Store.Load fails).\n\tInitial *save.Settings\n\t// Defaults supplies baseline settings restored by Reset.\n\tDefaults *save.Settings\n\n\t// AudioBuses configures group volume sliders in the Audio tab (defaults to music, sfx, ui).\n\tAudioBuses []SettingsAudioBus\n\t// Resolutions configures selectable resolutions in the Video tab (defaults to Native, 960x540, 1280x720, 1920x1080).\n\tResolutions []SettingsResolution\n\t// ScaleModes configures scale mode options in the Video tab (defaults to fit, fill, stretch, expand).\n\tScaleModes []SettingsOptionItem\n\t// QualityPresets configures quality preset options in the Video tab (defaults to auto, low, medium, high).\n\tQualityPresets []SettingsOptionItem\n\t// FrameCaps configures selectable FPS caps in the Video tab; 0 means uncapped (defaults to 0, 30, 60, 120).\n\tFrameCaps []int\n\t// Actions configures rebindable input actions in the Controls tab.\n\tActions []SettingsAction\n\t// Locales configures selectable languages in the Language tab.\n\tLocales []SettingsLocale\n\t// ColorBlindModes configures color-blind palette modes in the Accessibility tab.\n\tColorBlindModes []SettingsOptionItem\n\n\t// Text customizes displayed labels; unset fields inherit DefaultSettingsText.\n\tText SettingsText\n\t// Theme optionally overrides the Theme used by the menu's Root.\n\t// When nil, DefaultTheme is used and switches automatically to HighContrastTheme while Accessibility.HighContrast is true.\n\tTheme *Theme\n\t// Viewport optionally attaches virtual-resolution scaling to the menu's Root.\n\tViewport *Viewport\n\n\t// AutoApply dispatches Targets and OnApply immediately whenever any control changes.\n\tAutoApply bool\n\t// AutoSave persists changes to Store immediately whenever any control changes.\n\tAutoSave bool\n\n\t// OnChange runs whenever any setting changes in the working copy.\n\tOnChange func(save.Settings)\n\t// OnApply runs when Apply or Save applies settings.\n\tOnApply func(save.Settings) error\n\t// OnSave runs after Save succeeds.\n\tOnSave func(save.Settings) error\n\t// OnReset runs after Reset restores defaults.\n\tOnReset func(save.Settings)\n\t// OnBack runs when Back or NavBack is triggered outside capture mode.\n\tOnBack func()\n\t// OnResolutionChange runs when the selected resolution changes.\n\tOnResolutionChange func(SettingsResolution)\n}",
          "doc": "SettingsMenuConfig configures a ready-to-use SettingsMenu. Every field is optional.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 344,
          "members": [
            {
              "name": "Store",
              "anchor": "SettingsMenuConfig.Store",
              "kind": "field",
              "doc": "Store optionally loads initial player settings and persists changes when Save is called."
            },
            {
              "name": "Targets",
              "anchor": "SettingsMenuConfig.Targets",
              "kind": "field",
              "doc": "Targets optionally receives validated settings via save.Apply when Apply or Save is called."
            },
            {
              "name": "Initial",
              "anchor": "SettingsMenuConfig.Initial",
              "kind": "field",
              "doc": "Initial supplies starting settings when Store is nil (or if Store.Load fails)."
            },
            {
              "name": "Defaults",
              "anchor": "SettingsMenuConfig.Defaults",
              "kind": "field",
              "doc": "Defaults supplies baseline settings restored by Reset."
            },
            {
              "name": "AudioBuses",
              "anchor": "SettingsMenuConfig.AudioBuses",
              "kind": "field",
              "doc": "AudioBuses configures group volume sliders in the Audio tab (defaults to music, sfx, ui)."
            },
            {
              "name": "Resolutions",
              "anchor": "SettingsMenuConfig.Resolutions",
              "kind": "field",
              "doc": "Resolutions configures selectable resolutions in the Video tab (defaults to Native, 960x540, 1280x720, 1920x1080)."
            },
            {
              "name": "ScaleModes",
              "anchor": "SettingsMenuConfig.ScaleModes",
              "kind": "field",
              "doc": "ScaleModes configures scale mode options in the Video tab (defaults to fit, fill, stretch, expand)."
            },
            {
              "name": "QualityPresets",
              "anchor": "SettingsMenuConfig.QualityPresets",
              "kind": "field",
              "doc": "QualityPresets configures quality preset options in the Video tab (defaults to auto, low, medium, high)."
            },
            {
              "name": "FrameCaps",
              "anchor": "SettingsMenuConfig.FrameCaps",
              "kind": "field",
              "doc": "FrameCaps configures selectable FPS caps in the Video tab; 0 means uncapped (defaults to 0, 30, 60, 120)."
            },
            {
              "name": "Actions",
              "anchor": "SettingsMenuConfig.Actions",
              "kind": "field",
              "doc": "Actions configures rebindable input actions in the Controls tab."
            },
            {
              "name": "Locales",
              "anchor": "SettingsMenuConfig.Locales",
              "kind": "field",
              "doc": "Locales configures selectable languages in the Language tab."
            },
            {
              "name": "ColorBlindModes",
              "anchor": "SettingsMenuConfig.ColorBlindModes",
              "kind": "field",
              "doc": "ColorBlindModes configures color-blind palette modes in the Accessibility tab."
            },
            {
              "name": "Text",
              "anchor": "SettingsMenuConfig.Text",
              "kind": "field",
              "doc": "Text customizes displayed labels; unset fields inherit DefaultSettingsText."
            },
            {
              "name": "Theme",
              "anchor": "SettingsMenuConfig.Theme",
              "kind": "field",
              "doc": "Theme optionally overrides the Theme used by the menu's Root.\nWhen nil, DefaultTheme is used and switches automatically to HighContrastTheme while Accessibility.HighContrast is true."
            },
            {
              "name": "Viewport",
              "anchor": "SettingsMenuConfig.Viewport",
              "kind": "field",
              "doc": "Viewport optionally attaches virtual-resolution scaling to the menu's Root."
            },
            {
              "name": "AutoApply",
              "anchor": "SettingsMenuConfig.AutoApply",
              "kind": "field",
              "doc": "AutoApply dispatches Targets and OnApply immediately whenever any control changes."
            },
            {
              "name": "AutoSave",
              "anchor": "SettingsMenuConfig.AutoSave",
              "kind": "field",
              "doc": "AutoSave persists changes to Store immediately whenever any control changes."
            },
            {
              "name": "OnChange",
              "anchor": "SettingsMenuConfig.OnChange",
              "kind": "field",
              "doc": "OnChange runs whenever any setting changes in the working copy."
            },
            {
              "name": "OnApply",
              "anchor": "SettingsMenuConfig.OnApply",
              "kind": "field",
              "doc": "OnApply runs when Apply or Save applies settings."
            },
            {
              "name": "OnSave",
              "anchor": "SettingsMenuConfig.OnSave",
              "kind": "field",
              "doc": "OnSave runs after Save succeeds."
            },
            {
              "name": "OnReset",
              "anchor": "SettingsMenuConfig.OnReset",
              "kind": "field",
              "doc": "OnReset runs after Reset restores defaults."
            },
            {
              "name": "OnBack",
              "anchor": "SettingsMenuConfig.OnBack",
              "kind": "field",
              "doc": "OnBack runs when Back or NavBack is triggered outside capture mode."
            },
            {
              "name": "OnResolutionChange",
              "anchor": "SettingsMenuConfig.OnResolutionChange",
              "kind": "field",
              "doc": "OnResolutionChange runs when the selected resolution changes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsOptionItem",
          "anchor": "SettingsOptionItem",
          "decl": "type SettingsOptionItem struct {\n\tValue string\n\tLabel string\n}",
          "doc": "SettingsOptionItem pairs a persisted setting value with a user-visible display label.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 82,
          "members": [
            {
              "name": "Value",
              "anchor": "SettingsOptionItem.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "SettingsOptionItem.Label",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsResolution",
          "anchor": "SettingsResolution",
          "decl": "type SettingsResolution struct {\n\t// ID is persisted in save.Settings.Custom[\"resolution\"] (for example \"native\" or \"1280x720\").\n\tID string\n\t// Label is displayed in the Video tab; defaults to ID when empty.\n\tLabel string\n\t// Width and Height optionally carry the target dimensions in points/pixels (0 for native/auto).\n\tWidth  int\n\tHeight int\n}",
          "doc": "SettingsResolution describes a selectable resolution entry in the Video tab.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 71,
          "members": [
            {
              "name": "ID",
              "anchor": "SettingsResolution.ID",
              "kind": "field",
              "doc": "ID is persisted in save.Settings.Custom[\"resolution\"] (for example \"native\" or \"1280x720\")."
            },
            {
              "name": "Label",
              "anchor": "SettingsResolution.Label",
              "kind": "field",
              "doc": "Label is displayed in the Video tab; defaults to ID when empty."
            },
            {
              "name": "Width",
              "anchor": "SettingsResolution.Width",
              "kind": "field",
              "doc": "Width and Height optionally carry the target dimensions in points/pixels (0 for native/auto)."
            },
            {
              "name": "Height",
              "anchor": "SettingsResolution.Height",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsTab",
          "anchor": "SettingsTab",
          "decl": "type SettingsTab uint8",
          "doc": "SettingsTab identifies one of the five built-in sections of a SettingsMenu.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 27,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SettingsTabAudio",
                  "anchor": "SettingsTabAudio"
                },
                {
                  "name": "SettingsTabVideo",
                  "anchor": "SettingsTabVideo"
                },
                {
                  "name": "SettingsTabControls",
                  "anchor": "SettingsTabControls"
                },
                {
                  "name": "SettingsTabLanguage",
                  "anchor": "SettingsTabLanguage"
                },
                {
                  "name": "SettingsTabAccessibility",
                  "anchor": "SettingsTabAccessibility"
                }
              ],
              "decl": "const (\n\t// SettingsTabAudio edits mute, master volume, and audio bus volumes.\n\tSettingsTabAudio SettingsTab = iota\n\t// SettingsTabVideo edits window mode, resolution, scale mode, integer scale, quality preset, VSync, and frame cap.\n\tSettingsTabVideo\n\t// SettingsTabControls edits keyboard and gamepad action bindings with capture and reset.\n\tSettingsTabControls\n\t// SettingsTabLanguage selects the active locale.\n\tSettingsTabLanguage\n\t// SettingsTabAccessibility edits captions, text scale, high contrast, reduced motion, screen shake, flash reduction, color-blind mode, and game speed.\n\tSettingsTabAccessibility\n)",
              "doc": "",
              "file": "pkg/gameui/settings_menu.go",
              "line": 29
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "SettingsTab.String",
              "recv": "SettingsTab",
              "decl": "func (t SettingsTab) String() string",
              "doc": "String returns the canonical lowercase name of tab.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 45
            }
          ]
        },
        {
          "name": "SettingsText",
          "anchor": "SettingsText",
          "decl": "type SettingsText struct {\n\tTitle string\n\n\tTabAudio         string\n\tTabVideo         string\n\tTabControls      string\n\tTabLanguage      string\n\tTabAccessibility string\n\n\tMuteAll      string\n\tMasterVolume string\n\n\tWindowMode    string\n\tWindowed      string\n\tFullscreen    string\n\tResolution    string\n\tScaleMode     string\n\tIntegerScale  string\n\tQualityPreset string\n\tVSync         string\n\tFrameCap      string\n\tUncapped      string\n\n\tControlsHint  string\n\tCapturePrompt string\n\tUnbound       string\n\tResetControls string\n\n\tLanguageHint  string\n\tSystemDefault string\n\n\tSubtitles     string\n\tTextScale     string\n\tHighContrast  string\n\tReduceMotion  string\n\tScreenShake   string\n\tReduceFlashes string\n\tColorBlind    string\n\tGameSpeed     string\n\n\tApply string\n\tSave  string\n\tReset string\n\tBack  string\n\n\tSavedStatus   string\n\tAppliedStatus string\n\tResetStatus   string\n}",
          "doc": "SettingsText holds every user-visible string displayed by SettingsMenu, so a game can localize it.\nPartial structs passed via SettingsMenuConfig.Text inherit unset fields from DefaultSettingsText.\n",
          "file": "pkg/gameui/settings_menu.go",
          "line": 107,
          "members": [
            {
              "name": "Title",
              "anchor": "SettingsText.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TabAudio",
              "anchor": "SettingsText.TabAudio",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TabVideo",
              "anchor": "SettingsText.TabVideo",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TabControls",
              "anchor": "SettingsText.TabControls",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TabLanguage",
              "anchor": "SettingsText.TabLanguage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TabAccessibility",
              "anchor": "SettingsText.TabAccessibility",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MuteAll",
              "anchor": "SettingsText.MuteAll",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MasterVolume",
              "anchor": "SettingsText.MasterVolume",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WindowMode",
              "anchor": "SettingsText.WindowMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Windowed",
              "anchor": "SettingsText.Windowed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fullscreen",
              "anchor": "SettingsText.Fullscreen",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Resolution",
              "anchor": "SettingsText.Resolution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleMode",
              "anchor": "SettingsText.ScaleMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IntegerScale",
              "anchor": "SettingsText.IntegerScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "QualityPreset",
              "anchor": "SettingsText.QualityPreset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VSync",
              "anchor": "SettingsText.VSync",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameCap",
              "anchor": "SettingsText.FrameCap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Uncapped",
              "anchor": "SettingsText.Uncapped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ControlsHint",
              "anchor": "SettingsText.ControlsHint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CapturePrompt",
              "anchor": "SettingsText.CapturePrompt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unbound",
              "anchor": "SettingsText.Unbound",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResetControls",
              "anchor": "SettingsText.ResetControls",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LanguageHint",
              "anchor": "SettingsText.LanguageHint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SystemDefault",
              "anchor": "SettingsText.SystemDefault",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Subtitles",
              "anchor": "SettingsText.Subtitles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextScale",
              "anchor": "SettingsText.TextScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HighContrast",
              "anchor": "SettingsText.HighContrast",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReduceMotion",
              "anchor": "SettingsText.ReduceMotion",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScreenShake",
              "anchor": "SettingsText.ScreenShake",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReduceFlashes",
              "anchor": "SettingsText.ReduceFlashes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorBlind",
              "anchor": "SettingsText.ColorBlind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GameSpeed",
              "anchor": "SettingsText.GameSpeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Apply",
              "anchor": "SettingsText.Apply",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Save",
              "anchor": "SettingsText.Save",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reset",
              "anchor": "SettingsText.Reset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Back",
              "anchor": "SettingsText.Back",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SavedStatus",
              "anchor": "SettingsText.SavedStatus",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AppliedStatus",
              "anchor": "SettingsText.AppliedStatus",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResetStatus",
              "anchor": "SettingsText.ResetStatus",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultSettingsText",
              "anchor": "DefaultSettingsText",
              "decl": "func DefaultSettingsText() SettingsText",
              "doc": "DefaultSettingsText returns the English strings used by SettingsMenu.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 158
            }
          ],
          "methods": []
        },
        {
          "name": "SizeMode",
          "anchor": "SizeMode",
          "decl": "type SizeMode string",
          "doc": "SizeMode controls whether a node uses a fixed width or sizes horizontally to fit localized text.\n",
          "file": "pkg/gameui/screen_format.go",
          "line": 81,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SizeFixed",
                  "anchor": "SizeFixed"
                },
                {
                  "name": "SizeFitText",
                  "anchor": "SizeFitText"
                }
              ],
              "decl": "const (\n\t// SizeFixed keeps the node's declared Width (the default when omitted).\n\tSizeFixed SizeMode = \"fixed\"\n\t// SizeFitText expands or contracts width to fit the node's localized text plus horizontal padding.\n\tSizeFitText SizeMode = \"fit_text\"\n)",
              "doc": "",
              "file": "pkg/gameui/screen_format.go",
              "line": 83
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Slider",
          "anchor": "Slider",
          "decl": "type Slider struct {\n\tLabel          string\n\tMin            float32\n\tMax            float32\n\tValue          float32\n\tStep           float32\n\tOnChange       func(value float32)\n\tDisabled       bool\n\tFont           core.Font\n\tWidth          float32\n\tHeight         float32\n\tMinWidth       float32\n\tMinHeight      float32\n\tFlex           float32\n\tAlign          Align\n\tHidden         bool\n\tNav            NavOverrides\n\tDrawBackground func(*core.Drawing, core.Bounds)\n\tFrameDrawer    FrameDrawer\n\tNineSlice      *NineSlice\n\tTextDrawer     TextDrawer\n\t// contains filtered or unexported fields\n}",
          "doc": "Slider is a horizontal draggable and left/right steppable value control in [Min, Max].\nWhen Min and Max are both 0, the range defaults to [0, 1].\nWhen Step <= 0, keyboard and Adjust steps default to (Max - Min) / 10.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 283,
          "members": [
            {
              "name": "Label",
              "anchor": "Slider.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Min",
              "anchor": "Slider.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "Slider.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "Slider.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "Slider.Step",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnChange",
              "anchor": "Slider.OnChange",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "Slider.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Font",
              "anchor": "Slider.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Slider.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Slider.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "Slider.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "Slider.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "Slider.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "Slider.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "Slider.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Nav",
              "anchor": "Slider.Nav",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawBackground",
              "anchor": "Slider.DrawBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameDrawer",
              "anchor": "Slider.FrameDrawer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NineSlice",
              "anchor": "Slider.NineSlice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextDrawer",
              "anchor": "Slider.TextDrawer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Slider.Bounds",
              "recv": "*Slider",
              "decl": "func (s *Slider) Bounds() core.Bounds",
              "doc": "Bounds returns the slider's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 310
            },
            {
              "name": "Fraction",
              "anchor": "Slider.Fraction",
              "recv": "*Slider",
              "decl": "func (s *Slider) Fraction() float32",
              "doc": "Fraction returns the slider's current Value normalized into [0, 1].\n",
              "file": "pkg/gameui/widgets.go",
              "line": 340
            },
            {
              "name": "SetValue",
              "anchor": "Slider.SetValue",
              "recv": "*Slider",
              "decl": "func (s *Slider) SetValue(v float32) bool",
              "doc": "SetValue clamps v into [Min, Max], updates Value, and invokes OnChange if Value changed.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 350
            },
            {
              "name": "TrackBounds",
              "anchor": "Slider.TrackBounds",
              "recv": "*Slider",
              "decl": "func (s *Slider) TrackBounds() core.Bounds",
              "doc": "TrackBounds returns the slider's interactive track rectangle from the last Layout pass.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 313
            }
          ]
        },
        {
          "name": "Spacer",
          "anchor": "Spacer",
          "decl": "type Spacer struct {\n\tWidth     float32\n\tHeight    float32\n\tMinWidth  float32\n\tMinHeight float32\n\tFlex      float32\n\tHidden    bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Spacer reserves empty space inside a VBox or HBox.\nA zero-value Spacer defaults to Flex: 1 so it expands to push siblings apart; setting Width or Height without Flex creates a fixed gap.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 450,
          "members": [
            {
              "name": "Width",
              "anchor": "Spacer.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Spacer.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "Spacer.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "Spacer.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "Spacer.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "Spacer.Hidden",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Spacer.Bounds",
              "recv": "*Spacer",
              "decl": "func (s *Spacer) Bounds() core.Bounds",
              "doc": "Bounds returns the spacer's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 462
            }
          ]
        },
        {
          "name": "SpatialNavigator",
          "anchor": "SpatialNavigator",
          "decl": "type SpatialNavigator struct {\n\t// Root is the UI root whose focusable widgets are navigated.\n\tRoot *Root\n\t// WrapAround enables edge wrap-around when no widget exists further in the requested direction.\n\tWrapAround bool\n\t// SliderSteps causes NavLeft and NavRight to adjust a focused Slider by -1/+1 step\n\t// unless an explicit Left/Right neighbor override is configured for that Slider.\n\tSliderSteps bool\n\t// OnConfirm is invoked after NavConfirm activates the focused widget (or when Confirm is called).\n\tOnConfirm func(focused Widget)\n\t// OnBack is invoked when NavBack is triggered.\n\tOnBack func()\n\t// OnFocusChange is invoked whenever navigation moves focus from prev to next.\n\tOnFocusChange func(prev, next Widget)\n\t// FocusRing customizes the focus ring drawn by DrawFocusRing (or attached to Root).\n\tFocusRing *FocusRingStyle\n\t// contains filtered or unexported fields\n}",
          "doc": "SpatialNavigator drives 2D spatial focus navigation, explicit neighbor overrides,\naction-based keyboard/gamepad input, and customizable focus ring rendering over a Root.\n",
          "file": "pkg/gameui/focus_nav.go",
          "line": 177,
          "members": [
            {
              "name": "Root",
              "anchor": "SpatialNavigator.Root",
              "kind": "field",
              "doc": "Root is the UI root whose focusable widgets are navigated."
            },
            {
              "name": "WrapAround",
              "anchor": "SpatialNavigator.WrapAround",
              "kind": "field",
              "doc": "WrapAround enables edge wrap-around when no widget exists further in the requested direction."
            },
            {
              "name": "SliderSteps",
              "anchor": "SpatialNavigator.SliderSteps",
              "kind": "field",
              "doc": "SliderSteps causes NavLeft and NavRight to adjust a focused Slider by -1/+1 step\nunless an explicit Left/Right neighbor override is configured for that Slider."
            },
            {
              "name": "OnConfirm",
              "anchor": "SpatialNavigator.OnConfirm",
              "kind": "field",
              "doc": "OnConfirm is invoked after NavConfirm activates the focused widget (or when Confirm is called)."
            },
            {
              "name": "OnBack",
              "anchor": "SpatialNavigator.OnBack",
              "kind": "field",
              "doc": "OnBack is invoked when NavBack is triggered."
            },
            {
              "name": "OnFocusChange",
              "anchor": "SpatialNavigator.OnFocusChange",
              "kind": "field",
              "doc": "OnFocusChange is invoked whenever navigation moves focus from prev to next."
            },
            {
              "name": "FocusRing",
              "anchor": "SpatialNavigator.FocusRing",
              "kind": "field",
              "doc": "FocusRing customizes the focus ring drawn by DrawFocusRing (or attached to Root)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSpatialNavigator",
              "anchor": "NewSpatialNavigator",
              "decl": "func NewSpatialNavigator(root *Root) *SpatialNavigator",
              "doc": "NewSpatialNavigator returns a SpatialNavigator attached to root with wrap-around and slider stepping enabled.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 201
            }
          ],
          "methods": [
            {
              "name": "Back",
              "anchor": "SpatialNavigator.Back",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) Back() bool",
              "doc": "Back triggers the OnBack callback if configured.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 387
            },
            {
              "name": "ClearFocus",
              "anchor": "SpatialNavigator.ClearFocus",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) ClearFocus()",
              "doc": "ClearFocus clears focus on Root.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 262
            },
            {
              "name": "ClearOverrides",
              "anchor": "SpatialNavigator.ClearOverrides",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) ClearOverrides(w Widget)",
              "doc": "ClearOverrides removes any navigator-level overrides registered for w.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 230
            },
            {
              "name": "Confirm",
              "anchor": "SpatialNavigator.Confirm",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) Confirm() bool",
              "doc": "Confirm activates the currently focused widget and calls OnConfirm if configured.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 372
            },
            {
              "name": "DrawFocusRing",
              "anchor": "SpatialNavigator.DrawFocusRing",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) DrawFocusRing(d *core.Drawing)",
              "doc": "DrawFocusRing draws a customizable focus ring around the currently focused widget in Root.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 447
            },
            {
              "name": "Focused",
              "anchor": "SpatialNavigator.Focused",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) Focused() Widget",
              "doc": "Focused returns the currently focused widget in Root, or nil.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 238
            },
            {
              "name": "HandleAction",
              "anchor": "SpatialNavigator.HandleAction",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) HandleAction(action NavAction) bool",
              "doc": "HandleAction executes a single NavAction (directional move, slider step, confirm, or back).\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 396
            },
            {
              "name": "Move",
              "anchor": "SpatialNavigator.Move",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) Move(dir NavAction) bool",
              "doc": "Move navigates focus in the directional NavAction (NavUp, NavDown, NavLeft, NavRight).\nIt checks explicit per-widget overrides first, then falls back to 2D spatial navigation.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 287
            },
            {
              "name": "Overrides",
              "anchor": "SpatialNavigator.Overrides",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) Overrides(w Widget) NavOverrides",
              "doc": "Overrides returns the navigator-level overrides registered for w (or zero value if none).\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 222
            },
            {
              "name": "SetFocus",
              "anchor": "SpatialNavigator.SetFocus",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) SetFocus(w Widget) bool",
              "doc": "SetFocus focuses w if it is visible and focusable in Root.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 246
            },
            {
              "name": "SetOverrides",
              "anchor": "SpatialNavigator.SetOverrides",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) SetOverrides(w Widget, ov NavOverrides)",
              "doc": "SetOverrides registers explicit directional neighbor overrides for w on this navigator.\nNavigator overrides take precedence over widget-level Nav fields and automatic spatial search.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 211
            },
            {
              "name": "StepActions",
              "anchor": "SpatialNavigator.StepActions",
              "recv": "*SpatialNavigator",
              "decl": "func (n *SpatialNavigator) StepActions(pressed func(NavAction) bool) bool",
              "doc": "StepActions polls logical UI navigation actions using pressed (for example, wrapping input.Actions.JustPressed)\nand dispatches any triggered actions in deterministic order. Returns true if any action was handled.\n",
              "file": "pkg/gameui/focus_nav.go",
              "line": 430
            }
          ]
        },
        {
          "name": "SpriteRow",
          "anchor": "SpriteRow",
          "decl": "type SpriteRow struct {\n\tSpritePath  string\n\tSpriteFrame string\n\tImage       core.ImageSource\n\tSrc         core.Bounds\n\tHasImage    bool\n\tCount       int\n\tSpacing     float32\n\tColor       core.Color\n\tWidth       float32\n\tHeight      float32\n\tMinWidth    float32\n\tMinHeight   float32\n\tFlex        float32\n\tAlign       Align\n\tHidden      bool\n\t// contains filtered or unexported fields\n}",
          "doc": "SpriteRow displays a horizontal row of repeated sprite icons (such as health hearts or ammo pips).\n",
          "file": "pkg/gameui/screen_widgets.go",
          "line": 93,
          "members": [
            {
              "name": "SpritePath",
              "anchor": "SpriteRow.SpritePath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpriteFrame",
              "anchor": "SpriteRow.SpriteFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Image",
              "anchor": "SpriteRow.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Src",
              "anchor": "SpriteRow.Src",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasImage",
              "anchor": "SpriteRow.HasImage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "SpriteRow.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spacing",
              "anchor": "SpriteRow.Spacing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "SpriteRow.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "SpriteRow.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "SpriteRow.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "SpriteRow.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "SpriteRow.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "SpriteRow.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "SpriteRow.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "SpriteRow.Hidden",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "SpriteRow.Bounds",
              "recv": "*SpriteRow",
              "decl": "func (s *SpriteRow) Bounds() core.Bounds",
              "doc": "Bounds returns the sprite row's laid-out bounds.\n",
              "file": "pkg/gameui/screen_widgets.go",
              "line": 114
            }
          ]
        },
        {
          "name": "TextDrawParams",
          "anchor": "TextDrawParams",
          "decl": "type TextDrawParams struct {\n\tText     string\n\tX, Y     float32\n\tFont     core.Font\n\tColor    core.Color\n\tAlign    core.TextAlign\n\tBaseline core.TextBaseline\n\tBounds   core.Bounds\n}",
          "doc": "TextDrawParams carries the text string, anchor position, font, color, alignment, baseline, and widget bounds\npassed to a custom TextDrawer hook.\n",
          "file": "pkg/gameui/viewport.go",
          "line": 428,
          "members": [
            {
              "name": "Text",
              "anchor": "TextDrawParams.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "TextDrawParams.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "TextDrawParams.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Font",
              "anchor": "TextDrawParams.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "TextDrawParams.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "TextDrawParams.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Baseline",
              "anchor": "TextDrawParams.Baseline",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "TextDrawParams.Bounds",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TextDrawer",
          "anchor": "TextDrawer",
          "decl": "type TextDrawer func(d *core.Drawing, params TextDrawParams)",
          "doc": "TextDrawer renders widget text into d, allowing custom bitmap or stylized font renderers without circular imports.\n",
          "file": "pkg/gameui/viewport.go",
          "line": 439,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TextMeasurer",
          "anchor": "TextMeasurer",
          "decl": "type TextMeasurer func(text string, font core.Font) (width, height float32)",
          "doc": "TextMeasurer measures text width and height for layout when using a custom TextDrawer.\n",
          "file": "pkg/gameui/viewport.go",
          "line": 442,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Theme",
          "anchor": "Theme",
          "decl": "type Theme struct {\n\t// PanelBackground and PanelBorder style Panel containers.\n\tPanelBackground core.Color\n\tPanelBorder     core.Color\n\n\t// Background, Hover, Active, Disabled, Border, and FocusedBorder style interactive controls.\n\tBackground    core.Color\n\tHover         core.Color\n\tActive        core.Color\n\tFocusedBorder core.Color\n\tDisabled      core.Color\n\tBorder        core.Color\n\n\t// Text, DisabledText, MutedText, Accent, AccentHover, AccentActive, and Track style labels, toggles, sliders, and progress bars.\n\tText         core.Color\n\tDisabledText core.Color\n\tMutedText    core.Color\n\tAccent       core.Color\n\tAccentHover  core.Color\n\tAccentActive core.Color\n\tTrack        core.Color\n\n\t// Padding is the default inner padding used for widget intrinsic sizing and spacing.\n\tPadding float32\n\t// CornerRadius is the default corner radius for rounded widget surfaces.\n\tCornerRadius float32\n\t// BorderWidth is the stroke width for widget borders.\n\tBorderWidth float32\n\t// FocusWidth is the stroke width for the focused outline.\n\tFocusWidth float32\n\t// Font is the default font used by text-bearing widgets.\n\tFont core.Font\n\n\t// PanelFrame optionally draws stylized or nine-slice frames for Panel widgets.\n\tPanelFrame FrameDrawer\n\t// ButtonFrame optionally draws stylized or nine-slice frames for Button widgets.\n\tButtonFrame FrameDrawer\n\t// FrameDrawer optionally draws stylized or nine-slice frames when a widget has no specific frame drawer.\n\tFrameDrawer FrameDrawer\n\t// TextDrawer optionally replaces default Canvas FillText rendering (for example, with a bitmap font renderer).\n\tTextDrawer TextDrawer\n\t// TextMeasurer optionally provides text dimensions for layout when using a custom TextDrawer.\n\tTextMeasurer TextMeasurer\n\t// FocusRing optionally customizes the focus ring drawn around focused widgets.\n\tFocusRing *FocusRingStyle\n}",
          "doc": "Theme holds the colors, spacing, corner radius, borders, and default font used to lay out and draw a game UI.\n",
          "file": "pkg/gameui/theme.go",
          "line": 6,
          "members": [
            {
              "name": "PanelBackground",
              "anchor": "Theme.PanelBackground",
              "kind": "field",
              "doc": "PanelBackground and PanelBorder style Panel containers."
            },
            {
              "name": "PanelBorder",
              "anchor": "Theme.PanelBorder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Background",
              "anchor": "Theme.Background",
              "kind": "field",
              "doc": "Background, Hover, Active, Disabled, Border, and FocusedBorder style interactive controls."
            },
            {
              "name": "Hover",
              "anchor": "Theme.Hover",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Active",
              "anchor": "Theme.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusedBorder",
              "anchor": "Theme.FocusedBorder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "Theme.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Border",
              "anchor": "Theme.Border",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "Theme.Text",
              "kind": "field",
              "doc": "Text, DisabledText, MutedText, Accent, AccentHover, AccentActive, and Track style labels, toggles, sliders, and progress bars."
            },
            {
              "name": "DisabledText",
              "anchor": "Theme.DisabledText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MutedText",
              "anchor": "Theme.MutedText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Accent",
              "anchor": "Theme.Accent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AccentHover",
              "anchor": "Theme.AccentHover",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AccentActive",
              "anchor": "Theme.AccentActive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Track",
              "anchor": "Theme.Track",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Padding",
              "anchor": "Theme.Padding",
              "kind": "field",
              "doc": "Padding is the default inner padding used for widget intrinsic sizing and spacing."
            },
            {
              "name": "CornerRadius",
              "anchor": "Theme.CornerRadius",
              "kind": "field",
              "doc": "CornerRadius is the default corner radius for rounded widget surfaces."
            },
            {
              "name": "BorderWidth",
              "anchor": "Theme.BorderWidth",
              "kind": "field",
              "doc": "BorderWidth is the stroke width for widget borders."
            },
            {
              "name": "FocusWidth",
              "anchor": "Theme.FocusWidth",
              "kind": "field",
              "doc": "FocusWidth is the stroke width for the focused outline."
            },
            {
              "name": "Font",
              "anchor": "Theme.Font",
              "kind": "field",
              "doc": "Font is the default font used by text-bearing widgets."
            },
            {
              "name": "PanelFrame",
              "anchor": "Theme.PanelFrame",
              "kind": "field",
              "doc": "PanelFrame optionally draws stylized or nine-slice frames for Panel widgets."
            },
            {
              "name": "ButtonFrame",
              "anchor": "Theme.ButtonFrame",
              "kind": "field",
              "doc": "ButtonFrame optionally draws stylized or nine-slice frames for Button widgets."
            },
            {
              "name": "FrameDrawer",
              "anchor": "Theme.FrameDrawer",
              "kind": "field",
              "doc": "FrameDrawer optionally draws stylized or nine-slice frames when a widget has no specific frame drawer."
            },
            {
              "name": "TextDrawer",
              "anchor": "Theme.TextDrawer",
              "kind": "field",
              "doc": "TextDrawer optionally replaces default Canvas FillText rendering (for example, with a bitmap font renderer)."
            },
            {
              "name": "TextMeasurer",
              "anchor": "Theme.TextMeasurer",
              "kind": "field",
              "doc": "TextMeasurer optionally provides text dimensions for layout when using a custom TextDrawer."
            },
            {
              "name": "FocusRing",
              "anchor": "Theme.FocusRing",
              "kind": "field",
              "doc": "FocusRing optionally customizes the focus ring drawn around focused widgets."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultTheme",
              "anchor": "DefaultTheme",
              "decl": "func DefaultTheme() Theme",
              "doc": "DefaultTheme returns a high-contrast dark theme suited for in-game overlays and menus.\n",
              "file": "pkg/gameui/theme.go",
              "line": 54
            },
            {
              "name": "HighContrastTheme",
              "anchor": "HighContrastTheme",
              "decl": "func HighContrastTheme() Theme",
              "doc": "HighContrastTheme returns a high-contrast dark gameui Theme suitable when Accessibility.HighContrast is enabled.\n",
              "file": "pkg/gameui/settings_menu.go",
              "line": 260
            }
          ],
          "methods": []
        },
        {
          "name": "Toggle",
          "anchor": "Toggle",
          "decl": "type Toggle struct {\n\tLabel          string\n\tChecked        bool\n\tStyle          ToggleStyle\n\tOnChange       func(checked bool)\n\tDisabled       bool\n\tFont           core.Font\n\tWidth          float32\n\tHeight         float32\n\tMinWidth       float32\n\tMinHeight      float32\n\tFlex           float32\n\tAlign          Align\n\tHidden         bool\n\tNav            NavOverrides\n\tDrawBackground func(*core.Drawing, core.Bounds)\n\tFrameDrawer    FrameDrawer\n\tNineSlice      *NineSlice\n\tTextDrawer     TextDrawer\n\t// contains filtered or unexported fields\n}",
          "doc": "Toggle is a focusable boolean checkbox or switch control.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 239,
          "members": [
            {
              "name": "Label",
              "anchor": "Toggle.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Checked",
              "anchor": "Toggle.Checked",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Style",
              "anchor": "Toggle.Style",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnChange",
              "anchor": "Toggle.OnChange",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "Toggle.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Font",
              "anchor": "Toggle.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Toggle.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Toggle.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "Toggle.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "Toggle.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "Toggle.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "Toggle.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "Toggle.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Nav",
              "anchor": "Toggle.Nav",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawBackground",
              "anchor": "Toggle.DrawBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameDrawer",
              "anchor": "Toggle.FrameDrawer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NineSlice",
              "anchor": "Toggle.NineSlice",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextDrawer",
              "anchor": "Toggle.TextDrawer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Toggle.Bounds",
              "recv": "*Toggle",
              "decl": "func (t *Toggle) Bounds() core.Bounds",
              "doc": "Bounds returns the toggle's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 263
            }
          ]
        },
        {
          "name": "ToggleStyle",
          "anchor": "ToggleStyle",
          "decl": "type ToggleStyle uint8",
          "doc": "ToggleStyle picks the visual presentation of a Toggle widget.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 6,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ToggleCheckbox",
                  "anchor": "ToggleCheckbox"
                },
                {
                  "name": "ToggleSwitch",
                  "anchor": "ToggleSwitch"
                }
              ],
              "decl": "const (\n\t// ToggleCheckbox draws a square checkbox with a checkmark when checked.\n\tToggleCheckbox ToggleStyle = iota\n\t// ToggleSwitch draws a sliding pill switch.\n\tToggleSwitch\n)",
              "doc": "",
              "file": "pkg/gameui/widgets.go",
              "line": 8
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TouchButton",
          "anchor": "TouchButton",
          "decl": "type TouchButton struct {\n\tText       string\n\tHitSize    float32\n\tOnClick    func()\n\tDisabled   bool\n\tFont       core.Font\n\tTextColor  core.Color\n\tBackground core.Color\n\tFocusOrder int\n\tNav        NavOverrides\n\tWidth      float32\n\tHeight     float32\n\tMinWidth   float32\n\tMinHeight  float32\n\tFlex       float32\n\tAlign      Align\n\tHidden     bool\n\tTextDrawer TextDrawer\n\t// contains filtered or unexported fields\n}",
          "doc": "TouchButton is an on-screen circular touch action button with an expanded touch hit target.\n",
          "file": "pkg/gameui/screen_widgets.go",
          "line": 278,
          "members": [
            {
              "name": "Text",
              "anchor": "TouchButton.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitSize",
              "anchor": "TouchButton.HitSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnClick",
              "anchor": "TouchButton.OnClick",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "TouchButton.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Font",
              "anchor": "TouchButton.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextColor",
              "anchor": "TouchButton.TextColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Background",
              "anchor": "TouchButton.Background",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusOrder",
              "anchor": "TouchButton.FocusOrder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Nav",
              "anchor": "TouchButton.Nav",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "TouchButton.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TouchButton.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "TouchButton.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "TouchButton.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "TouchButton.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "TouchButton.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "TouchButton.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextDrawer",
              "anchor": "TouchButton.TextDrawer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "TouchButton.Bounds",
              "recv": "*TouchButton",
              "decl": "func (b *TouchButton) Bounds() core.Bounds",
              "doc": "Bounds returns the touch button's visual bounds.\n",
              "file": "pkg/gameui/screen_widgets.go",
              "line": 301
            },
            {
              "name": "HitBounds",
              "anchor": "TouchButton.HitBounds",
              "recv": "*TouchButton",
              "decl": "func (b *TouchButton) HitBounds() core.Bounds",
              "doc": "HitBounds returns the touch button's interactive hit area, expanded to HitSize when larger than Bounds.\n",
              "file": "pkg/gameui/screen_widgets.go",
              "line": 304
            }
          ]
        },
        {
          "name": "TouchStick",
          "anchor": "TouchStick",
          "decl": "type TouchStick struct {\n\tHitSize   float32\n\tBaseColor core.Color\n\tKnobColor core.Color\n\tValueX    float32\n\tValueY    float32\n\tOnMove    func(x, y float32)\n\tDisabled  bool\n\tWidth     float32\n\tHeight    float32\n\tMinWidth  float32\n\tMinHeight float32\n\tFlex      float32\n\tAlign     Align\n\tHidden    bool\n\t// contains filtered or unexported fields\n}",
          "doc": "TouchStick is an on-screen virtual thumbstick with an optional expanded circular touch hit area.\n",
          "file": "pkg/gameui/screen_widgets.go",
          "line": 196,
          "members": [
            {
              "name": "HitSize",
              "anchor": "TouchStick.HitSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColor",
              "anchor": "TouchStick.BaseColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KnobColor",
              "anchor": "TouchStick.KnobColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ValueX",
              "anchor": "TouchStick.ValueX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ValueY",
              "anchor": "TouchStick.ValueY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnMove",
              "anchor": "TouchStick.OnMove",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "TouchStick.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "TouchStick.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TouchStick.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "TouchStick.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "TouchStick.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "TouchStick.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "TouchStick.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "TouchStick.Hidden",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "TouchStick.Bounds",
              "recv": "*TouchStick",
              "decl": "func (t *TouchStick) Bounds() core.Bounds",
              "doc": "Bounds returns the stick's visual bounds.\n",
              "file": "pkg/gameui/screen_widgets.go",
              "line": 216
            },
            {
              "name": "HitBounds",
              "anchor": "TouchStick.HitBounds",
              "recv": "*TouchStick",
              "decl": "func (t *TouchStick) HitBounds() core.Bounds",
              "doc": "HitBounds returns the stick's interactive touch target bounds, expanded to HitSize when larger than Bounds.\n",
              "file": "pkg/gameui/screen_widgets.go",
              "line": 219
            }
          ]
        },
        {
          "name": "VBox",
          "anchor": "VBox",
          "decl": "type VBox struct {\n\tChildren       []Widget\n\tSpacing        float32\n\tPadding        core.Edges\n\tAlign          Align\n\tJustify        Justify\n\tWidth          float32\n\tHeight         float32\n\tMinWidth       float32\n\tMinHeight      float32\n\tFlex           float32\n\tHidden         bool\n\tDrawBackground func(*core.Drawing, core.Bounds)\n\tFrameDrawer    FrameDrawer\n\tNineSlice      *NineSlice\n\t// contains filtered or unexported fields\n}",
          "doc": "VBox arranges Children vertically from top to bottom with Spacing and Padding.\n",
          "file": "pkg/gameui/widgets.go",
          "line": 64,
          "members": [
            {
              "name": "Children",
              "anchor": "VBox.Children",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spacing",
              "anchor": "VBox.Spacing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Padding",
              "anchor": "VBox.Padding",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "VBox.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Justify",
              "anchor": "VBox.Justify",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "VBox.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "VBox.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinWidth",
              "anchor": "VBox.MinWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinHeight",
              "anchor": "VBox.MinHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flex",
              "anchor": "VBox.Flex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hidden",
              "anchor": "VBox.Hidden",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawBackground",
              "anchor": "VBox.DrawBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameDrawer",
              "anchor": "VBox.FrameDrawer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NineSlice",
              "anchor": "VBox.NineSlice",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "VBox.Bounds",
              "recv": "*VBox",
              "decl": "func (b *VBox) Bounds() core.Bounds",
              "doc": "Bounds returns the VBox's laid-out rectangle.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 84
            },
            {
              "name": "ChildWidgets",
              "anchor": "VBox.ChildWidgets",
              "recv": "*VBox",
              "decl": "func (b *VBox) ChildWidgets() []Widget",
              "doc": "ChildWidgets returns the VBox's direct children.\n",
              "file": "pkg/gameui/widgets.go",
              "line": 87
            }
          ]
        },
        {
          "name": "Viewport",
          "anchor": "Viewport",
          "decl": "type Viewport struct {\n\tVirtualWidth  float32\n\tVirtualHeight float32\n\tWindowWidth   float32\n\tWindowHeight  float32\n\tScaleMode     ScaleMode\n\t// LetterboxColor fills letterbox/pillarbox bars in Draw and DrawLetterbox.\n\t// Zero defaults to opaque black; set core.Transparent to skip drawing bars.\n\tLetterboxColor core.Color\n}",
          "doc": "Viewport maps a fixed virtual UI resolution onto a physical window size with scaling, letterboxing,\ndrawing transform setup, and window-to-virtual coordinate conversion.\n",
          "file": "pkg/gameui/viewport.go",
          "line": 31,
          "members": [
            {
              "name": "VirtualWidth",
              "anchor": "Viewport.VirtualWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VirtualHeight",
              "anchor": "Viewport.VirtualHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WindowWidth",
              "anchor": "Viewport.WindowWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WindowHeight",
              "anchor": "Viewport.WindowHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleMode",
              "anchor": "Viewport.ScaleMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LetterboxColor",
              "anchor": "Viewport.LetterboxColor",
              "kind": "field",
              "doc": "LetterboxColor fills letterbox/pillarbox bars in Draw and DrawLetterbox.\nZero defaults to opaque black; set core.Transparent to skip drawing bars."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewViewport",
              "anchor": "NewViewport",
              "decl": "func NewViewport(virtualW, virtualH float32, mode ScaleMode) Viewport",
              "doc": "NewViewport returns a Viewport configured for virtualW x virtualH using mode.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 46
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Viewport.Apply",
              "recv": "Viewport",
              "decl": "func (v Viewport) Apply(d *core.Drawing)",
              "doc": "Apply clips d to VisibleBounds and applies the viewport's translation and scale transform.\nCallers should wrap Apply in d.Save() / d.Restore().\n",
              "file": "pkg/gameui/viewport.go",
              "line": 277
            },
            {
              "name": "Draw",
              "anchor": "Viewport.Draw",
              "recv": "Viewport",
              "decl": "func (v Viewport) Draw(d *core.Drawing, drawFn func(d *core.Drawing, virtualBounds core.Bounds))",
              "doc": "Draw renders letterbox bars, sets up the viewport clip and transform inside Save/Restore,\nand invokes drawFn with the virtual canvas bounds.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 300
            },
            {
              "name": "DrawLetterbox",
              "anchor": "Viewport.DrawLetterbox",
              "recv": "Viewport",
              "decl": "func (v Viewport) DrawLetterbox(d *core.Drawing)",
              "doc": "DrawLetterbox fills any active letterbox/pillarbox bars into d unless LetterboxColor is core.Transparent.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 255
            },
            {
              "name": "LetterboxBars",
              "anchor": "Viewport.LetterboxBars",
              "recv": "Viewport",
              "decl": "func (v Viewport) LetterboxBars() []core.Bounds",
              "doc": "LetterboxBars returns the non-empty, non-overlapping bar rectangles inside the window outside Rect().\n",
              "file": "pkg/gameui/viewport.go",
              "line": 165
            },
            {
              "name": "Rect",
              "anchor": "Viewport.Rect",
              "recv": "Viewport",
              "decl": "func (v Viewport) Rect() core.Bounds",
              "doc": "Rect returns the projected virtual canvas rectangle in physical window coordinates.\nFor ScaleFill, Rect may extend outside [0, WindowWidth] x [0, WindowHeight].\n",
              "file": "pkg/gameui/viewport.go",
              "line": 124
            },
            {
              "name": "Scale",
              "anchor": "Viewport.Scale",
              "recv": "Viewport",
              "decl": "func (v Viewport) Scale() float32",
              "doc": "Scale returns the uniform scale factor (or min(sx, sy) for ScaleStretch).\n",
              "file": "pkg/gameui/viewport.go",
              "line": 117
            },
            {
              "name": "ScaleXY",
              "anchor": "Viewport.ScaleXY",
              "recv": "Viewport",
              "decl": "func (v Viewport) ScaleXY() (sx, sy float32)",
              "doc": "ScaleXY returns the horizontal and vertical scale factors from virtual coordinates to window coordinates.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 90
            },
            {
              "name": "SetWindowSize",
              "anchor": "Viewport.SetWindowSize",
              "recv": "*Viewport",
              "decl": "func (v *Viewport) SetWindowSize(size core.Size)",
              "doc": "SetWindowSize updates the viewport's physical window dimensions.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 55
            },
            {
              "name": "VirtualBounds",
              "anchor": "Viewport.VirtualBounds",
              "recv": "Viewport",
              "decl": "func (v Viewport) VirtualBounds() core.Bounds",
              "doc": "VirtualBounds returns the layout rectangle in virtual coordinates: (0, 0, VirtualWidth, VirtualHeight).\n",
              "file": "pkg/gameui/viewport.go",
              "line": 79
            },
            {
              "name": "VirtualToWindow",
              "anchor": "Viewport.VirtualToWindow",
              "recv": "Viewport",
              "decl": "func (v Viewport) VirtualToWindow(p core.Point) core.Point",
              "doc": "VirtualToWindow maps a point in virtual coordinates into physical window coordinates.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 242
            },
            {
              "name": "VisibleBounds",
              "anchor": "Viewport.VisibleBounds",
              "recv": "Viewport",
              "decl": "func (v Viewport) VisibleBounds() core.Bounds",
              "doc": "VisibleBounds returns the intersection of Rect() with the window bounds [0, WindowWidth] x [0, WindowHeight].\nFor ScaleFit and ScaleInteger this equals Rect(); for ScaleFill it equals the full window bounds.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 146
            },
            {
              "name": "WindowToVirtual",
              "anchor": "Viewport.WindowToVirtual",
              "recv": "Viewport",
              "decl": "func (v Viewport) WindowToVirtual(p core.Point) (core.Point, bool)",
              "doc": "WindowToVirtual maps a physical window point into virtual coordinates.\nok is false when p falls outside the active viewport (for example, inside letterbox/pillarbox bars or outside the window).\n",
              "file": "pkg/gameui/viewport.go",
              "line": 222
            },
            {
              "name": "WithWindowSize",
              "anchor": "Viewport.WithWindowSize",
              "recv": "Viewport",
              "decl": "func (v Viewport) WithWindowSize(w, h float32) Viewport",
              "doc": "WithWindowSize returns a copy of v with WindowWidth and WindowHeight set to w and h.\n",
              "file": "pkg/gameui/viewport.go",
              "line": 61
            }
          ]
        },
        {
          "name": "VirtualViewport",
          "anchor": "VirtualViewport",
          "decl": "type VirtualViewport = Viewport",
          "doc": "VirtualViewport is an alias for Viewport.\n",
          "file": "pkg/gameui/viewport.go",
          "line": 43,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Widget",
          "anchor": "Widget",
          "decl": "type Widget interface {\n\t// Bounds returns the widget's rectangle from the last Layout pass.\n\tBounds() core.Bounds\n\t// contains filtered or unexported methods\n}",
          "doc": "Widget is a node in a game UI layout and focus tree.\n",
          "file": "pkg/gameui/widget.go",
          "line": 55,
          "members": [
            {
              "name": "Bounds",
              "anchor": "Widget.Bounds",
              "kind": "method",
              "doc": "Bounds returns the widget's rectangle from the last Layout pass."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WidgetState",
          "anchor": "WidgetState",
          "decl": "type WidgetState struct {\n\tHovered  bool\n\tPressed  bool\n\tFocused  bool\n\tDisabled bool\n}",
          "doc": "WidgetState describes the current interaction state of a widget during Draw or StateOf queries.\n",
          "file": "pkg/gameui/widget.go",
          "line": 36,
          "members": [
            {
              "name": "Hovered",
              "anchor": "WidgetState.Hovered",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pressed",
              "anchor": "WidgetState.Pressed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Focused",
              "anchor": "WidgetState.Focused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "WidgetState.Disabled",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldAnchor",
          "anchor": "WorldAnchor",
          "decl": "type WorldAnchor struct {\n\t// ID uniquely identifies this anchor inside an AnchorOverlay.\n\tID string\n\t// WorldX and WorldY are the anchor's coordinates in 2D game world space.\n\tWorldX, WorldY float32\n\t// OffsetX and OffsetY shift the anchored view in screen points after world projection.\n\tOffsetX, OffsetY float32\n\t// AnchorX and AnchorY position the view relative to the projected point as fractions of the view's own size:\n\t// (0, 0) = top-left at point, (0.5, 0.5) = centered on point, (0.5, 1.0) = centered directly above point.\n\tAnchorX, AnchorY float32\n\t// Visible toggles whether this anchor is shown when on-screen.\n\tVisible bool\n\t// View builds the native NSGo view mounted at this anchor's screen position.\n\tView func(*core.Scope) core.View\n\t// TestID optionally assigns a TestID to the positioned anchor wrapper view.\n\tTestID string\n}",
          "doc": "WorldAnchor binds a native NSGo View (such as a name tag, speech bubble, or text input)\nto a 2D world position with optional screen-space pixel offset and normalized anchor pivot.\n",
          "file": "pkg/gameui/anchor.go",
          "line": 93,
          "members": [
            {
              "name": "ID",
              "anchor": "WorldAnchor.ID",
              "kind": "field",
              "doc": "ID uniquely identifies this anchor inside an AnchorOverlay."
            },
            {
              "name": "WorldX",
              "anchor": "WorldAnchor.WorldX",
              "kind": "field",
              "doc": "WorldX and WorldY are the anchor's coordinates in 2D game world space."
            },
            {
              "name": "WorldY",
              "anchor": "WorldAnchor.WorldY",
              "kind": "field",
              "doc": "WorldX and WorldY are the anchor's coordinates in 2D game world space."
            },
            {
              "name": "OffsetX",
              "anchor": "WorldAnchor.OffsetX",
              "kind": "field",
              "doc": "OffsetX and OffsetY shift the anchored view in screen points after world projection."
            },
            {
              "name": "OffsetY",
              "anchor": "WorldAnchor.OffsetY",
              "kind": "field",
              "doc": "OffsetX and OffsetY shift the anchored view in screen points after world projection."
            },
            {
              "name": "AnchorX",
              "anchor": "WorldAnchor.AnchorX",
              "kind": "field",
              "doc": "AnchorX and AnchorY position the view relative to the projected point as fractions of the view's own size:\n(0, 0) = top-left at point, (0.5, 0.5) = centered on point, (0.5, 1.0) = centered directly above point."
            },
            {
              "name": "AnchorY",
              "anchor": "WorldAnchor.AnchorY",
              "kind": "field",
              "doc": "AnchorX and AnchorY position the view relative to the projected point as fractions of the view's own size:\n(0, 0) = top-left at point, (0.5, 0.5) = centered on point, (0.5, 1.0) = centered directly above point."
            },
            {
              "name": "Visible",
              "anchor": "WorldAnchor.Visible",
              "kind": "field",
              "doc": "Visible toggles whether this anchor is shown when on-screen."
            },
            {
              "name": "View",
              "anchor": "WorldAnchor.View",
              "kind": "field",
              "doc": "View builds the native NSGo view mounted at this anchor's screen position."
            },
            {
              "name": "TestID",
              "anchor": "WorldAnchor.TestID",
              "kind": "field",
              "doc": "TestID optionally assigns a TestID to the positioned anchor wrapper view."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewWorldAnchor",
              "anchor": "NewWorldAnchor",
              "decl": "func NewWorldAnchor(id string, worldX, worldY float32, view func(*core.Scope) core.View) *WorldAnchor",
              "doc": "NewWorldAnchor returns a visible WorldAnchor at (worldX, worldY) rendering view.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 112
            }
          ],
          "methods": []
        },
        {
          "name": "WorldProjection",
          "anchor": "WorldProjection",
          "decl": "type WorldProjection struct {\n\t// WorldToScreen converts a world position (worldX, worldY) to screen/window coordinates (screenX, screenY).\n\tWorldToScreen func(worldX, worldY float32) (screenX, screenY float32)\n\t// ScreenBounds is the visible screen rectangle in window coordinates.\n\t// When non-zero, projected positions outside ScreenBounds are treated as off-screen and hidden.\n\tScreenBounds core.Bounds\n}",
          "doc": "WorldProjection maps 2D game world coordinates into screen/window coordinates and defines\nthe visible screen bounds used to automatically hide off-screen world anchors.\n",
          "file": "pkg/gameui/anchor.go",
          "line": 11,
          "members": [
            {
              "name": "WorldToScreen",
              "anchor": "WorldProjection.WorldToScreen",
              "kind": "field",
              "doc": "WorldToScreen converts a world position (worldX, worldY) to screen/window coordinates (screenX, screenY)."
            },
            {
              "name": "ScreenBounds",
              "anchor": "WorldProjection.ScreenBounds",
              "kind": "field",
              "doc": "ScreenBounds is the visible screen rectangle in window coordinates.\nWhen non-zero, projected positions outside ScreenBounds are treated as off-screen and hidden."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCameraViewportProjection",
              "anchor": "NewCameraViewportProjection",
              "decl": "func NewCameraViewportProjection(camX, camY, zoom, viewW, viewH float32, vp Viewport) WorldProjection",
              "doc": "NewCameraViewportProjection creates a WorldProjection combining a 2D camera centered at (camX, camY)\nwith zoom and view dimensions (viewW, viewH) with a virtual-resolution Viewport (including scaling and letterboxing).\nPoints projecting into letterbox bars or outside the window fall outside ScreenBounds.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 30
            },
            {
              "name": "NewWorldProjection",
              "anchor": "NewWorldProjection",
              "decl": "func NewWorldProjection(worldToScreen func(worldX, worldY float32) (screenX, screenY float32), screenBounds core.Bounds) WorldProjection",
              "doc": "NewWorldProjection constructs a WorldProjection from a custom projection function and visible screen bounds.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 20
            }
          ],
          "methods": [
            {
              "name": "Project",
              "anchor": "WorldProjection.Project",
              "recv": "WorldProjection",
              "decl": "func (p WorldProjection) Project(worldX, worldY float32) (pt core.Point, onScreen bool)",
              "doc": "Project maps (worldX, worldY) to screen coordinates and reports whether the projected point is on-screen.\n",
              "file": "pkg/gameui/anchor.go",
              "line": 72
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/gltf",
      "name": "gltf",
      "dir": "pkg/gltf",
      "page": "pkg/gltf",
      "synopsis": "Package gltf implements a pure-Go glTF 2.0 (.gltf) and binary GLB (.glb) asset loader using only the Go standard library and pkg/math3d.",
      "doc": "Package gltf implements a pure-Go glTF 2.0 (.gltf) and binary GLB (.glb) asset loader using only the Go standard library and pkg/math3d.\n\nSupported features:\n  - Auto-detection of JSON .gltf and binary .glb containers via Load and LoadFS\n  - Embedded base64 data URIs, GLB BIN chunks, and external fs.FS buffers/images\n  - Full typed accessor decoding (SCALAR, VEC2, VEC3, VEC4, MAT4, indices, joints, weights) with all component types, normalized integer unpacking, interleaved byteStride buffers, zero-initialized accessors, and sparse accessors\n  - Scene graph and node hierarchy with matrix/TRS transforms, cycle detection, and world matrix computation\n  - PBR metallic-roughness materials, textures, samplers, PNG/JPEG image decoding, KHR_materials_unlit, KHR_texture_transform, and KHR_materials_variants\n  - Mesh primitives with bounds, morph targets with CPU position/normal blending, skins with inverse bind matrices, and STEP/LINEAR/CUBICSPLINE keyframe animations\n  - Compressed geometry: KHR_draco_mesh_compression primitives (Draco bitstream 2.2, sequential and edgebreaker connectivity), EXT_meshopt_compression and KHR_meshopt_compression buffer views (attribute, triangle and index codecs with the octahedral, quaternion, exponential and color filters, never fetching fallback buffers), and KHR_mesh_quantization; every reader returns the decoded data\n",
      "consts": [
        {
          "idents": [
            {
              "name": "ExtMOZLightmap",
              "anchor": "ExtMOZLightmap"
            },
            {
              "name": "ExtLightmap",
              "anchor": "ExtLightmap"
            }
          ],
          "decl": "const (\n\t// ExtMOZLightmap is the Mozilla Hubs / Blender glTF material extension name for baked lightmaps.\n\tExtMOZLightmap = \"MOZ_lightmap\"\n\n\t// ExtLightmap is the generic EXT_lightmap glTF material extension name for baked lightmaps.\n\tExtLightmap = \"EXT_lightmap\"\n)",
          "doc": "",
          "file": "pkg/gltf/lightmap.go",
          "line": 11
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "EvaluateMorphNormals",
          "anchor": "EvaluateMorphNormals",
          "decl": "func EvaluateMorphNormals(prim Primitive, weights []float32, out []math3d.Vec3) []math3d.Vec3",
          "doc": "EvaluateMorphNormals computes the morphed and re-normalized vertex normals\nfor prim given morph target weights. If out has sufficient capacity it is\nreused without allocation.\n",
          "file": "pkg/gltf/mesh.go",
          "line": 106
        },
        {
          "name": "EvaluateMorphPositions",
          "anchor": "EvaluateMorphPositions",
          "decl": "func EvaluateMorphPositions(prim Primitive, weights []float32, out []math3d.Vec3) []math3d.Vec3",
          "doc": "EvaluateMorphPositions computes the morphed vertex positions for prim given\nmorph target weights:\n\n\tout[i] = prim.Positions[i] + sum_k(weights[k] * prim.Targets[k].Positions[i])\n\nIf out has sufficient capacity it is reused without allocation; otherwise a\nnew slice is allocated and returned.\n",
          "file": "pkg/gltf/mesh.go",
          "line": 76
        },
        {
          "name": "EvaluateMorphTangents",
          "anchor": "EvaluateMorphTangents",
          "decl": "func EvaluateMorphTangents(prim Primitive, weights []float32, out []math3d.Vec4) []math3d.Vec4",
          "doc": "EvaluateMorphTangents computes the morphed vertex tangents for prim given\nmorph target weights:\n\n\tout[i].xyz = normalize(prim.Tangents[i].xyz + sum_k(weights[k] * prim.Targets[k].Tangents[i]))\n\tout[i].w   = prim.Tangents[i].w\n\nPer glTF 2.0, morph target TANGENT deltas displace only the XYZ components\nand leave the W handedness sign unchanged. If out has sufficient capacity it\nis reused without allocation; otherwise a new slice is allocated and returned.\n",
          "file": "pkg/gltf/morph.go",
          "line": 28
        },
        {
          "name": "ParseLODNodeName",
          "anchor": "ParseLODNodeName",
          "decl": "func ParseLODNodeName(name string) (baseName string, level int, ok bool)",
          "doc": "ParseLODNodeName inspects a glTF node or mesh name for the case-insensitive\n_LOD<N> suffix convention (such as \"Tree_LOD0\", \"Tree_LOD1\", \"Tree_lod2\"),\ntolerating Blender's optional trailing \".001\" duplicate numbering.\n\nWhen name carries a recognized suffix with a non-empty base name and a\nnon-negative integer level, ParseLODNodeName returns (baseName, level, true).\nOtherwise it returns (\"\", 0, false).\n",
          "file": "pkg/gltf/lod.go",
          "line": 15
        },
        {
          "name": "PrimitiveLightmapUVs",
          "anchor": "PrimitiveLightmapUVs",
          "decl": "func PrimitiveLightmapUVs(prim Primitive) (uvs []math3d.Vec2, usedFallback bool)",
          "doc": "PrimitiveLightmapUVs returns the lightmap UV channel for prim: prim.TexCoords1 (TEXCOORD_1) when present, falling back to prim.TexCoords0 (TEXCOORD_0) when TEXCOORD_1 is absent. The second return value reports whether the fallback path was used.\n",
          "file": "pkg/gltf/lightmap.go",
          "line": 182
        },
        {
          "name": "ResolveWeights",
          "anchor": "ResolveWeights",
          "decl": "func ResolveWeights(doc *Document, nodeIndex int) []float32",
          "doc": "ResolveWeights returns the effective morph target weights for doc.Nodes[nodeIndex]\nfollowing glTF 2.0 precedence: non-empty node.Weights override mesh.Weights,\nand missing weights default to zeros matching the mesh's morph target count.\nReturns nil when doc is nil, nodeIndex is out of range, the node has no mesh,\nor the mesh has no morph targets.\n",
          "file": "pkg/gltf/morph.go",
          "line": 90
        },
        {
          "name": "ResolveWeightsInto",
          "anchor": "ResolveWeightsInto",
          "decl": "func ResolveWeightsInto(doc *Document, nodeIndex int, dst []float32) []float32",
          "doc": "ResolveWeightsInto resolves the effective morph target weights for\ndoc.Nodes[nodeIndex] into dst following glTF 2.0 precedence (node.Weights\noverrides mesh.Weights, else zeros matching the target count). If dst has\nsufficient capacity it is reused without allocation.\n",
          "file": "pkg/gltf/morph.go",
          "line": 102
        },
        {
          "name": "SampleMorphWeights",
          "anchor": "SampleMorphWeights",
          "decl": "func SampleMorphWeights(anim Animation, nodeIndex int, t float32, dst []float32) ([]float32, bool)",
          "doc": "SampleMorphWeights evaluates the [PathWeights] channel targeting nodeIndex in\nanim at time t (in seconds) into dst and reports whether a matching channel\nwas found and sampled.\n\nIt supports [InterpolationStep], [InterpolationLinear], and\n[InterpolationCubicSpline] (unpacking 3*N values per keyframe in glTF order:\nin-tangent, value, out-tangent), clamping outside the channel's keyframe time\nrange. If dst has sufficient capacity it is reused without allocation.\n",
          "file": "pkg/gltf/morph.go",
          "line": 143
        }
      ],
      "types": [
        {
          "name": "Accessor",
          "anchor": "Accessor",
          "decl": "type Accessor struct {\n\tName          string\n\tBufferView    int\n\tByteOffset    int\n\tComponentType ComponentType\n\tNormalized    bool\n\tCount         int\n\tType          AccessorType\n\tMin           []float32\n\tMax           []float32\n\tSparse        *AccessorSparse\n\tExtras        json.RawMessage\n\t// contains filtered or unexported fields\n}",
          "doc": "Accessor defines typed view metadata over a BufferView (or zero-initialized storage).\nBufferView is -1 when omitted (zero-initialized per glTF 2.0 spec).\n",
          "file": "pkg/gltf/gltf.go",
          "line": 139,
          "members": [
            {
              "name": "Name",
              "anchor": "Accessor.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BufferView",
              "anchor": "Accessor.BufferView",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ByteOffset",
              "anchor": "Accessor.ByteOffset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ComponentType",
              "anchor": "Accessor.ComponentType",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normalized",
              "anchor": "Accessor.Normalized",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "Accessor.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Type",
              "anchor": "Accessor.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Min",
              "anchor": "Accessor.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "Accessor.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sparse",
              "anchor": "Accessor.Sparse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Accessor.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AccessorSparse",
          "anchor": "AccessorSparse",
          "decl": "type AccessorSparse struct {\n\tCount   int\n\tIndices AccessorSparseIndices\n\tValues  AccessorSparseValues\n}",
          "doc": "AccessorSparse describes sparse overrides applied on top of a base accessor.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 131,
          "members": [
            {
              "name": "Count",
              "anchor": "AccessorSparse.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "AccessorSparse.Indices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Values",
              "anchor": "AccessorSparse.Values",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AccessorSparseIndices",
          "anchor": "AccessorSparseIndices",
          "decl": "type AccessorSparseIndices struct {\n\tBufferView    int\n\tByteOffset    int\n\tComponentType ComponentType\n}",
          "doc": "AccessorSparseIndices describes the index buffer of a sparse accessor.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 118,
          "members": [
            {
              "name": "BufferView",
              "anchor": "AccessorSparseIndices.BufferView",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ByteOffset",
              "anchor": "AccessorSparseIndices.ByteOffset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ComponentType",
              "anchor": "AccessorSparseIndices.ComponentType",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AccessorSparseValues",
          "anchor": "AccessorSparseValues",
          "decl": "type AccessorSparseValues struct {\n\tBufferView int\n\tByteOffset int\n}",
          "doc": "AccessorSparseValues describes the replacement values buffer of a sparse accessor.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 125,
          "members": [
            {
              "name": "BufferView",
              "anchor": "AccessorSparseValues.BufferView",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ByteOffset",
              "anchor": "AccessorSparseValues.ByteOffset",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AccessorType",
          "anchor": "AccessorType",
          "decl": "type AccessorType string",
          "doc": "AccessorType identifies the element structure of an accessor.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 53,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AccessorScalar",
                  "anchor": "AccessorScalar"
                },
                {
                  "name": "AccessorVec2",
                  "anchor": "AccessorVec2"
                },
                {
                  "name": "AccessorVec3",
                  "anchor": "AccessorVec3"
                },
                {
                  "name": "AccessorVec4",
                  "anchor": "AccessorVec4"
                },
                {
                  "name": "AccessorMat2",
                  "anchor": "AccessorMat2"
                },
                {
                  "name": "AccessorMat3",
                  "anchor": "AccessorMat3"
                },
                {
                  "name": "AccessorMat4",
                  "anchor": "AccessorMat4"
                }
              ],
              "decl": "const (\n\tAccessorScalar AccessorType = \"SCALAR\"\n\tAccessorVec2   AccessorType = \"VEC2\"\n\tAccessorVec3   AccessorType = \"VEC3\"\n\tAccessorVec4   AccessorType = \"VEC4\"\n\tAccessorMat2   AccessorType = \"MAT2\"\n\tAccessorMat3   AccessorType = \"MAT3\"\n\tAccessorMat4   AccessorType = \"MAT4\"\n)",
              "doc": "",
              "file": "pkg/gltf/gltf.go",
              "line": 55
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Components",
              "anchor": "AccessorType.Components",
              "recv": "AccessorType",
              "decl": "func (t AccessorType) Components() int",
              "doc": "Components returns the number of scalar components in an element of type t,\nor 0 if t is unknown.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 67
            }
          ]
        },
        {
          "name": "AlphaMode",
          "anchor": "AlphaMode",
          "decl": "type AlphaMode string",
          "doc": "AlphaMode controls how a material's alpha channel is interpreted.\n",
          "file": "pkg/gltf/material.go",
          "line": 18,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AlphaOpaque",
                  "anchor": "AlphaOpaque"
                },
                {
                  "name": "AlphaMask",
                  "anchor": "AlphaMask"
                },
                {
                  "name": "AlphaBlend",
                  "anchor": "AlphaBlend"
                }
              ],
              "decl": "const (\n\tAlphaOpaque AlphaMode = \"OPAQUE\"\n\tAlphaMask   AlphaMode = \"MASK\"\n\tAlphaBlend  AlphaMode = \"BLEND\"\n)",
              "doc": "",
              "file": "pkg/gltf/material.go",
              "line": 20
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Animation",
          "anchor": "Animation",
          "decl": "type Animation struct {\n\tName     string\n\tDuration float32\n\tChannels []AnimationChannel\n\tExtras   json.RawMessage\n}",
          "doc": "Animation represents a glTF 2.0 keyframe animation clip.\n",
          "file": "pkg/gltf/anim.go",
          "line": 53,
          "members": [
            {
              "name": "Name",
              "anchor": "Animation.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "Animation.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Channels",
              "anchor": "Animation.Channels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Animation.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Animation.Apply",
              "recv": "*Animation",
              "decl": "func (a *Animation) Apply(doc *Document, t float32)",
              "doc": "Apply evaluates the animation at time t and writes sampled translation,\nrotation, scale, and morph target weights directly onto matching nodes in doc.\nCall doc.ComputeWorldMatrices afterwards to propagate updated transforms.\n",
              "file": "pkg/gltf/anim.go",
              "line": 80
            },
            {
              "name": "Sample",
              "anchor": "Animation.Sample",
              "recv": "*Animation",
              "decl": "func (a *Animation) Sample(t float32) []ChannelSample",
              "doc": "Sample evaluates all channels of the animation at time t (in seconds) and\nreturns one ChannelSample per channel with a valid TargetNode (>= 0).\n",
              "file": "pkg/gltf/anim.go",
              "line": 62
            }
          ]
        },
        {
          "name": "AnimationChannel",
          "anchor": "AnimationChannel",
          "decl": "type AnimationChannel struct {\n\tTargetNode    int\n\tPath          TargetPath\n\tInterpolation Interpolation\n\tTimes         []float32\n\tValues        []float32\n\tStride        int\n}",
          "doc": "AnimationChannel holds a single decoded keyframe track targeting one node property.\nFor InterpolationCubicSpline, Values stores 3*Stride floats per keyframe in\nglTF order: [inTangent, value, outTangent].\n",
          "file": "pkg/gltf/anim.go",
          "line": 33,
          "members": [
            {
              "name": "TargetNode",
              "anchor": "AnimationChannel.TargetNode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "AnimationChannel.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Interpolation",
              "anchor": "AnimationChannel.Interpolation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Times",
              "anchor": "AnimationChannel.Times",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Values",
              "anchor": "AnimationChannel.Values",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stride",
              "anchor": "AnimationChannel.Stride",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Sample",
              "anchor": "AnimationChannel.Sample",
              "recv": "*AnimationChannel",
              "decl": "func (ch *AnimationChannel) Sample(t float32) ChannelSample",
              "doc": "Sample evaluates this channel at time t (in seconds), clamping to the first\nand last keyframes outside the channel's time range.\n",
              "file": "pkg/gltf/anim.go",
              "line": 109
            }
          ]
        },
        {
          "name": "Asset",
          "anchor": "Asset",
          "decl": "type Asset struct {\n\tVersion    string\n\tMinVersion string\n\tGenerator  string\n\tCopyright  string\n\tExtras     json.RawMessage\n}",
          "doc": "Asset holds metadata about the glTF asset.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 87,
          "members": [
            {
              "name": "Version",
              "anchor": "Asset.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinVersion",
              "anchor": "Asset.MinVersion",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Generator",
              "anchor": "Asset.Generator",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Copyright",
              "anchor": "Asset.Copyright",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Asset.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Buffer",
          "anchor": "Buffer",
          "decl": "type Buffer struct {\n\tName       string\n\tURI        string\n\tByteLength int\n\tData       []byte\n\tExtras     json.RawMessage\n}",
          "doc": "Buffer holds resolved binary buffer bytes. For a buffer that meshopt-compressed bufferViews decode into (an EXT_meshopt_compression or KHR_meshopt_compression fallback or placeholder buffer), Data holds the decompressed views and the buffer's own URI is never fetched.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 96,
          "members": [
            {
              "name": "Name",
              "anchor": "Buffer.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "URI",
              "anchor": "Buffer.URI",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ByteLength",
              "anchor": "Buffer.ByteLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "Buffer.Data",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Buffer.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BufferResolver",
          "anchor": "BufferResolver",
          "decl": "type BufferResolver func(uri string) ([]byte, error)",
          "doc": "BufferResolver resolves relative external URIs (for .bin buffers and images)\nto their raw bytes.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 24,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BufferView",
          "anchor": "BufferView",
          "decl": "type BufferView struct {\n\tName       string\n\tBuffer     int\n\tByteOffset int\n\tByteLength int\n\tByteStride int\n\tTarget     int\n\tExtras     json.RawMessage\n\t// Extensions keeps unsupported optional extension payloads by name.\n\tExtensions map[string]json.RawMessage\n}",
          "doc": "BufferView defines a slice of a Buffer with an optional interleaved ByteStride.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 105,
          "members": [
            {
              "name": "Name",
              "anchor": "BufferView.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Buffer",
              "anchor": "BufferView.Buffer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ByteOffset",
              "anchor": "BufferView.ByteOffset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ByteLength",
              "anchor": "BufferView.ByteLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ByteStride",
              "anchor": "BufferView.ByteStride",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "BufferView.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "BufferView.Extras",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extensions",
              "anchor": "BufferView.Extensions",
              "kind": "field",
              "doc": "Extensions keeps unsupported optional extension payloads by name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Camera",
          "anchor": "Camera",
          "decl": "type Camera struct {\n\tName        string\n\tType        CameraType\n\tAspectRatio float32 // perspective only; 0 means unspecified\n\tYFOV        float32 // perspective vertical field of view in radians\n\tXMag        float32 // orthographic horizontal magnification\n\tYMag        float32 // orthographic vertical magnification\n\tZNear       float32\n\tZFar        float32 // perspective: 0 means infinite far plane\n\tExtras      json.RawMessage\n}",
          "doc": "Camera describes a glTF 2.0 perspective or orthographic camera.\n",
          "file": "pkg/gltf/scene.go",
          "line": 72,
          "members": [
            {
              "name": "Name",
              "anchor": "Camera.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Type",
              "anchor": "Camera.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AspectRatio",
              "anchor": "Camera.AspectRatio",
              "kind": "field",
              "doc": "perspective only; 0 means unspecified"
            },
            {
              "name": "YFOV",
              "anchor": "Camera.YFOV",
              "kind": "field",
              "doc": "perspective vertical field of view in radians"
            },
            {
              "name": "XMag",
              "anchor": "Camera.XMag",
              "kind": "field",
              "doc": "orthographic horizontal magnification"
            },
            {
              "name": "YMag",
              "anchor": "Camera.YMag",
              "kind": "field",
              "doc": "orthographic vertical magnification"
            },
            {
              "name": "ZNear",
              "anchor": "Camera.ZNear",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ZFar",
              "anchor": "Camera.ZFar",
              "kind": "field",
              "doc": "perspective: 0 means infinite far plane"
            },
            {
              "name": "Extras",
              "anchor": "Camera.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CameraType",
          "anchor": "CameraType",
          "decl": "type CameraType string",
          "doc": "CameraType identifies the projection model of a glTF camera.\n",
          "file": "pkg/gltf/scene.go",
          "line": 64,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CameraPerspective",
                  "anchor": "CameraPerspective"
                },
                {
                  "name": "CameraOrthographic",
                  "anchor": "CameraOrthographic"
                }
              ],
              "decl": "const (\n\tCameraPerspective  CameraType = \"perspective\"\n\tCameraOrthographic CameraType = \"orthographic\"\n)",
              "doc": "",
              "file": "pkg/gltf/scene.go",
              "line": 66
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChannelSample",
          "anchor": "ChannelSample",
          "decl": "type ChannelSample struct {\n\tNode        int\n\tPath        TargetPath\n\tTranslation math3d.Vec3\n\tRotation    math3d.Quat\n\tScale       math3d.Vec3\n\tWeights     []float32\n}",
          "doc": "ChannelSample holds the evaluated value of one animation channel at time t.\n",
          "file": "pkg/gltf/anim.go",
          "line": 43,
          "members": [
            {
              "name": "Node",
              "anchor": "ChannelSample.Node",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "ChannelSample.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Translation",
              "anchor": "ChannelSample.Translation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "ChannelSample.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "ChannelSample.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weights",
              "anchor": "ChannelSample.Weights",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Clearcoat",
          "anchor": "Clearcoat",
          "decl": "type Clearcoat struct {\n\t// Factor is clearcoatFactor in [0, 1] (default 0). Multiplied by Texture's R channel when present.\n\tFactor float32\n\t// Texture is clearcoatTexture (optional, linear; R channel modulates Factor).\n\tTexture *TextureRef\n\t// RoughnessFactor is clearcoatRoughnessFactor in [0, 1] (default 0). Multiplied by RoughnessTexture's G channel when present.\n\tRoughnessFactor float32\n\t// RoughnessTexture is clearcoatRoughnessTexture (optional, linear; G channel modulates RoughnessFactor).\n\tRoughnessTexture *TextureRef\n\t// NormalTexture is clearcoatNormalTexture (optional, tangent-space normal map; Scale defaults to 1).\n\tNormalTexture *TextureRef\n}",
          "doc": "Clearcoat represents the Khronos KHR_materials_clearcoat material extension,\ndescribing a dielectric coating layer (IOR 1.5, F0 = 0.04) on top of the\nbase PBR metallic-roughness material.\n",
          "file": "pkg/gltf/material_ext.go",
          "line": 16,
          "members": [
            {
              "name": "Factor",
              "anchor": "Clearcoat.Factor",
              "kind": "field",
              "doc": "Factor is clearcoatFactor in [0, 1] (default 0). Multiplied by Texture's R channel when present."
            },
            {
              "name": "Texture",
              "anchor": "Clearcoat.Texture",
              "kind": "field",
              "doc": "Texture is clearcoatTexture (optional, linear; R channel modulates Factor)."
            },
            {
              "name": "RoughnessFactor",
              "anchor": "Clearcoat.RoughnessFactor",
              "kind": "field",
              "doc": "RoughnessFactor is clearcoatRoughnessFactor in [0, 1] (default 0). Multiplied by RoughnessTexture's G channel when present."
            },
            {
              "name": "RoughnessTexture",
              "anchor": "Clearcoat.RoughnessTexture",
              "kind": "field",
              "doc": "RoughnessTexture is clearcoatRoughnessTexture (optional, linear; G channel modulates RoughnessFactor)."
            },
            {
              "name": "NormalTexture",
              "anchor": "Clearcoat.NormalTexture",
              "kind": "field",
              "doc": "NormalTexture is clearcoatNormalTexture (optional, tangent-space normal map; Scale defaults to 1)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ColliderKind",
          "anchor": "ColliderKind",
          "decl": "type ColliderKind string",
          "doc": "ColliderKind identifies the physics collision shape declared on a glTF node\nthrough naming conventions or extras.collider metadata.\n",
          "file": "pkg/gltf/collider.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ColliderNone",
                  "anchor": "ColliderNone"
                },
                {
                  "name": "ColliderTriMesh",
                  "anchor": "ColliderTriMesh"
                },
                {
                  "name": "ColliderBox",
                  "anchor": "ColliderBox"
                },
                {
                  "name": "ColliderSphere",
                  "anchor": "ColliderSphere"
                },
                {
                  "name": "ColliderCapsule",
                  "anchor": "ColliderCapsule"
                },
                {
                  "name": "ColliderConvex",
                  "anchor": "ColliderConvex"
                }
              ],
              "decl": "const (\n\t// ColliderNone indicates that a node carries no collider annotation.\n\tColliderNone ColliderKind = \"\"\n\t// ColliderTriMesh builds a static triangle-mesh collider from the node's mesh.\n\tColliderTriMesh ColliderKind = \"trimesh\"\n\t// ColliderBox builds a box collider from explicit extras dimensions or the\n\t// node mesh's local bounds.\n\tColliderBox ColliderKind = \"box\"\n\t// ColliderSphere builds a sphere collider from explicit extras dimensions or\n\t// the node mesh's local bounds.\n\tColliderSphere ColliderKind = \"sphere\"\n\t// ColliderCapsule builds a capsule collider from explicit extras dimensions\n\t// or the node mesh's local bounds.\n\tColliderCapsule ColliderKind = \"capsule\"\n\t// ColliderConvex marks a convex hull collider (falling back to a triangle\n\t// mesh collider until native convex hulls are available).\n\tColliderConvex ColliderKind = \"convex\"\n)",
              "doc": "",
              "file": "pkg/gltf/collider.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ComponentType",
          "anchor": "ComponentType",
          "decl": "type ComponentType int",
          "doc": "ComponentType identifies the binary storage type of an accessor component.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 27,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ComponentByte",
                  "anchor": "ComponentByte"
                },
                {
                  "name": "ComponentUnsignedByte",
                  "anchor": "ComponentUnsignedByte"
                },
                {
                  "name": "ComponentShort",
                  "anchor": "ComponentShort"
                },
                {
                  "name": "ComponentUnsignedShort",
                  "anchor": "ComponentUnsignedShort"
                },
                {
                  "name": "ComponentUnsignedInt",
                  "anchor": "ComponentUnsignedInt"
                },
                {
                  "name": "ComponentFloat",
                  "anchor": "ComponentFloat"
                }
              ],
              "decl": "const (\n\tComponentByte          ComponentType = 5120 // int8\n\tComponentUnsignedByte  ComponentType = 5121 // uint8\n\tComponentShort         ComponentType = 5122 // int16\n\tComponentUnsignedShort ComponentType = 5123 // uint16\n\tComponentUnsignedInt   ComponentType = 5125 // uint32\n\tComponentFloat         ComponentType = 5126 // float32\n)",
              "doc": "",
              "file": "pkg/gltf/gltf.go",
              "line": 29
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ByteSize",
              "anchor": "ComponentType.ByteSize",
              "recv": "ComponentType",
              "decl": "func (c ComponentType) ByteSize() int",
              "doc": "ByteSize returns the size in bytes of a single component, or 0 if unknown.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 39
            }
          ]
        },
        {
          "name": "Document",
          "anchor": "Document",
          "decl": "type Document struct {\n\tAsset              Asset\n\tExtensionsUsed     []string\n\tExtensionsRequired []string\n\tScene              int // default scene index, or -1 if unspecified\n\tScenes             []Scene\n\tNodes              []Node\n\tCameras            []Camera\n\tBuffers            []Buffer\n\tBufferViews        []BufferView\n\tAccessors          []Accessor\n\tSamplers           []Sampler\n\tImages             []Image\n\tTextures           []Texture\n\tMaterials          []Material\n\tVariants           []MaterialVariant\n\tMeshes             []Mesh\n\tSkins              []Skin\n\tAnimations         []Animation\n\tExtras             json.RawMessage\n\t// contains filtered or unexported fields\n}",
          "doc": "Document is a parsed glTF 2.0 / GLB asset with resolved buffers, decoded\nmeshes, materials, scene hierarchy, skins, and animations.\n",
          "file": "pkg/gltf/gltf.go",
          "line": 158,
          "members": [
            {
              "name": "Asset",
              "anchor": "Document.Asset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ExtensionsUsed",
              "anchor": "Document.ExtensionsUsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ExtensionsRequired",
              "anchor": "Document.ExtensionsRequired",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scene",
              "anchor": "Document.Scene",
              "kind": "field",
              "doc": "default scene index, or -1 if unspecified"
            },
            {
              "name": "Scenes",
              "anchor": "Document.Scenes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Nodes",
              "anchor": "Document.Nodes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cameras",
              "anchor": "Document.Cameras",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Buffers",
              "anchor": "Document.Buffers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BufferViews",
              "anchor": "Document.BufferViews",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Accessors",
              "anchor": "Document.Accessors",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Samplers",
              "anchor": "Document.Samplers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Images",
              "anchor": "Document.Images",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Textures",
              "anchor": "Document.Textures",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Materials",
              "anchor": "Document.Materials",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Variants",
              "anchor": "Document.Variants",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Meshes",
              "anchor": "Document.Meshes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Skins",
              "anchor": "Document.Skins",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Animations",
              "anchor": "Document.Animations",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Document.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Load",
              "anchor": "Load",
              "decl": "func Load(data []byte, resolver BufferResolver) (*Document, error)",
              "doc": "Load parses a glTF 2.0 JSON (.gltf) or binary GLB (.glb) document from data.\nExternal buffer/image URIs are resolved via resolver (which may be nil when\nall resources are embedded via GLB BIN chunks or base64 data URIs).\n\nIts errors are *loaderr.Error values that give the field of the problem, the line in the JSON (in a GLB, the line in its JSON chunk) and how to fix it; a caller that read data from a file names it with loaderr.WithFile, as LoadFS does.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 198
            },
            {
              "name": "LoadFS",
              "anchor": "LoadFS",
              "decl": "func LoadFS(fsys fs.FS, path string) (*Document, error)",
              "doc": "LoadFS loads a .gltf or .glb file at path from fsys, automatically resolving\nrelative external .bin buffers and image URIs against path's directory in fsys.\nIts errors are *loaderr.Error values that name path.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 322
            }
          ],
          "methods": [
            {
              "name": "ColliderNodes",
              "anchor": "Document.ColliderNodes",
              "recv": "*Document",
              "decl": "func (d *Document) ColliderNodes() ([]NodeCollider, error)",
              "doc": "ColliderNodes returns all collider annotations found on nodes in the\ndocument's default scene (or all nodes when no scenes are defined), in\ndeterministic scene traversal order.\n",
              "file": "pkg/gltf/collider.go",
              "line": 527
            },
            {
              "name": "ComputeWorldMatrices",
              "anchor": "Document.ComputeWorldMatrices",
              "recv": "*Document",
              "decl": "func (d *Document) ComputeWorldMatrices() error",
              "doc": "ComputeWorldMatrices validates the node hierarchy (rejecting out-of-range\nchild indices, multiple parents, and cycles), updates LocalMatrix from TRS\nfor non-matrix nodes, and computes exact parent-to-child WorldMatrix values\nfor every node in the document.\n",
              "file": "pkg/gltf/scene.go",
              "line": 88
            },
            {
              "name": "DecodeImage",
              "anchor": "Document.DecodeImage",
              "recv": "*Document",
              "decl": "func (d *Document) DecodeImage(index int) (image.Image, error)",
              "doc": "DecodeImage decodes the PNG or JPEG image at index from its bufferView,\ndata URI, or external URI (resolved via the loader's BufferResolver / fs.FS).\n",
              "file": "pkg/gltf/material.go",
              "line": 385
            },
            {
              "name": "DrawableNodes",
              "anchor": "Document.DrawableNodes",
              "recv": "*Document",
              "decl": "func (d *Document) DrawableNodes() []int",
              "doc": "DrawableNodes returns the deterministic slice of node indices in the\ndocument's default scene (or all nodes when no scenes are defined) that\nreference a valid mesh and should be drawn visually, excluding collider-only\nnodes such as *-colonly and extras.collider.draw == false.\n",
              "file": "pkg/gltf/collider.go",
              "line": 498
            },
            {
              "name": "ImageBytes",
              "anchor": "Document.ImageBytes",
              "recv": "*Document",
              "decl": "func (d *Document) ImageBytes(index int) ([]byte, error)",
              "doc": "ImageBytes returns the raw encoded bytes (e.g. PNG or JPEG) for image index.\n",
              "file": "pkg/gltf/material.go",
              "line": 351
            },
            {
              "name": "LightmapTexCoords",
              "anchor": "Document.LightmapTexCoords",
              "recv": "*Document",
              "decl": "func (d *Document) LightmapTexCoords(prim Primitive, ref *LightmapRef) (uvs []math3d.Vec2, usedFallback bool, err error)",
              "doc": "LightmapTexCoords resolves the baked lightmap UVs for prim using ref (or TEXCOORD_1 when ref is nil). When TEXCOORD_1 is requested but absent on prim, it falls back to prim.TexCoords0 and reports usedFallback = true. A primitive with neither TEXCOORD_1 nor TEXCOORD_0 is an error, since every vertex would sample the same lightmap texel.\n",
              "file": "pkg/gltf/lightmap.go",
              "line": 193
            },
            {
              "name": "MaterialForPrimitive",
              "anchor": "Document.MaterialForPrimitive",
              "recv": "*Document",
              "decl": "func (d *Document) MaterialForPrimitive(prim Primitive, variantIndex int) int",
              "doc": "MaterialForPrimitive returns the material index to use for prim under the\nspecified KHR_materials_variants variantIndex. If variantIndex is negative,\nout of range, or unmapped on prim, it falls back to prim.Material.\n",
              "file": "pkg/gltf/material.go",
              "line": 227
            },
            {
              "name": "MaterialForVariant",
              "anchor": "Document.MaterialForVariant",
              "recv": "*Document",
              "decl": "func (d *Document) MaterialForVariant(prim Primitive, variantName string) int",
              "doc": "MaterialForVariant returns the material index to use for prim under the\nnamed KHR_materials_variants variant. If name does not match any variant or\nis unmapped on prim, it falls back to prim.Material.\n",
              "file": "pkg/gltf/material.go",
              "line": 250
            },
            {
              "name": "MaterialLightmap",
              "anchor": "Document.MaterialLightmap",
              "recv": "*Document",
              "decl": "func (d *Document) MaterialLightmap(materialIndex int) (*LightmapRef, error)",
              "doc": "MaterialLightmap extracts baked lightmap metadata from d.Materials[materialIndex], checking MOZ_lightmap, EXT_lightmap, and extras.lightmap in that order. It returns (nil, nil) when the material carries no lightmap metadata.\n",
              "file": "pkg/gltf/lightmap.go",
              "line": 63
            },
            {
              "name": "MeshMaterials",
              "anchor": "Document.MeshMaterials",
              "recv": "*Document",
              "decl": "func (d *Document) MeshMaterials(meshIndex, variantIndex int) ([]int, error)",
              "doc": "MeshMaterials returns the resolved material index for each primitive of\nd.Meshes[meshIndex] under variantIndex, falling back to each primitive's\ndefault Material when variantIndex is negative, out of range, or unmapped.\n",
              "file": "pkg/gltf/material.go",
              "line": 257
            },
            {
              "name": "PrimitiveTexCoords",
              "anchor": "Document.PrimitiveTexCoords",
              "recv": "*Document",
              "decl": "func (d *Document) PrimitiveTexCoords(prim Primitive, texCoord int) ([]math3d.Vec2, error)",
              "doc": "PrimitiveTexCoords returns the raw texture coordinates for UV set texCoord\n(TEXCOORD_<texCoord>) on prim. Sets 0 and 1 return prim.TexCoords0 and\nprim.TexCoords1 directly when loaded; higher sets (TEXCOORD_2, ...) are\ndecoded on demand from prim.Attributes.\n",
              "file": "pkg/gltf/material.go",
              "line": 290
            },
            {
              "name": "ReadIndices",
              "anchor": "Document.ReadIndices",
              "recv": "*Document",
              "decl": "func (d *Document) ReadIndices(accessorIndex int) ([]uint32, error)",
              "doc": "ReadIndices decodes a SCALAR index accessor (UNSIGNED_BYTE, UNSIGNED_SHORT,\nor UNSIGNED_INT) as []uint32.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 2061
            },
            {
              "name": "ReadJoints",
              "anchor": "Document.ReadJoints",
              "recv": "*Document",
              "decl": "func (d *Document) ReadJoints(accessorIndex int) ([][4]uint16, error)",
              "doc": "ReadJoints decodes a VEC4 JOINTS_n accessor (UNSIGNED_BYTE or UNSIGNED_SHORT)\nas [][4]uint16.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 2103
            },
            {
              "name": "ReadMat4",
              "anchor": "Document.ReadMat4",
              "recv": "*Document",
              "decl": "func (d *Document) ReadMat4(accessorIndex int) ([]math3d.Mat4, error)",
              "doc": "ReadMat4 decodes a MAT4 accessor as column-major []math3d.Mat4.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 2028
            },
            {
              "name": "ReadScalar",
              "anchor": "Document.ReadScalar",
              "recv": "*Document",
              "decl": "func (d *Document) ReadScalar(accessorIndex int) ([]float32, error)",
              "doc": "ReadScalar decodes a SCALAR accessor as []float32, supporting all glTF\ncomponent types, normalized unpacking, byteStride, and sparse accessors.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 1908
            },
            {
              "name": "ReadVec2",
              "anchor": "Document.ReadVec2",
              "recv": "*Document",
              "decl": "func (d *Document) ReadVec2(accessorIndex int) ([]math3d.Vec2, error)",
              "doc": "ReadVec2 decodes a VEC2 accessor as []math3d.Vec2.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 1932
            },
            {
              "name": "ReadVec3",
              "anchor": "Document.ReadVec3",
              "recv": "*Document",
              "decl": "func (d *Document) ReadVec3(accessorIndex int) ([]math3d.Vec3, error)",
              "doc": "ReadVec3 decodes a VEC3 accessor as []math3d.Vec3.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 1963
            },
            {
              "name": "ReadVec4",
              "anchor": "Document.ReadVec4",
              "recv": "*Document",
              "decl": "func (d *Document) ReadVec4(accessorIndex int) ([]math3d.Vec4, error)",
              "doc": "ReadVec4 decodes a VEC4 accessor as []math3d.Vec4.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 1995
            },
            {
              "name": "ReadWeights",
              "anchor": "Document.ReadWeights",
              "recv": "*Document",
              "decl": "func (d *Document) ReadWeights(accessorIndex int) ([]math3d.Vec4, error)",
              "doc": "ReadWeights decodes a VEC4 WEIGHTS_n accessor (FLOAT, normalized\nUNSIGNED_BYTE, or normalized UNSIGNED_SHORT) as []math3d.Vec4.\n",
              "file": "pkg/gltf/gltf.go",
              "line": 2146
            },
            {
              "name": "ResolveVariantMaterials",
              "anchor": "Document.ResolveVariantMaterials",
              "recv": "*Document",
              "decl": "func (d *Document) ResolveVariantMaterials(variantIndex int) [][]int",
              "doc": "ResolveVariantMaterials returns resolved material indices [mesh][primitive]\nfor every mesh in d under variantIndex without modifying Primitive.Material,\nso switching variants or reverting to defaults (variantIndex < 0) is\nrepeatable.\n",
              "file": "pkg/gltf/material.go",
              "line": 273
            },
            {
              "name": "SceneColliderNodes",
              "anchor": "Document.SceneColliderNodes",
              "recv": "*Document",
              "decl": "func (d *Document) SceneColliderNodes(sceneIdx int) ([]NodeCollider, error)",
              "doc": "SceneColliderNodes returns all collider annotations found on nodes in\nd.Scenes[sceneIdx] (or all nodes when sceneIdx < 0), in deterministic scene\ntraversal order.\n",
              "file": "pkg/gltf/collider.go",
              "line": 534
            },
            {
              "name": "SceneDrawableNodes",
              "anchor": "Document.SceneDrawableNodes",
              "recv": "*Document",
              "decl": "func (d *Document) SceneDrawableNodes(sceneIdx int) []int",
              "doc": "SceneDrawableNodes returns the deterministic slice of node indices in\nd.Scenes[sceneIdx] (or all nodes when sceneIdx < 0) that reference a valid\nmesh and should be drawn visually, excluding collider-only nodes.\n",
              "file": "pkg/gltf/collider.go",
              "line": 505
            },
            {
              "name": "TransformTexCoords",
              "anchor": "Document.TransformTexCoords",
              "recv": "*Document",
              "decl": "func (d *Document) TransformTexCoords(prim Primitive, ref *TextureRef, out []math3d.Vec2) ([]math3d.Vec2, error)",
              "doc": "TransformTexCoords evaluates the final UV coordinates for ref on prim,\nselecting ref.EffectiveTexCoord() and applying ref.Transform when present.\nIf out has sufficient capacity it is reused without allocation; otherwise a\nnew slice is allocated and returned.\n",
              "file": "pkg/gltf/material.go",
              "line": 325
            },
            {
              "name": "VariantIndex",
              "anchor": "Document.VariantIndex",
              "recv": "*Document",
              "decl": "func (d *Document) VariantIndex(name string) int",
              "doc": "VariantIndex returns the index of the first KHR_materials_variants entry\nwhose Name equals name, or -1 when no variant matches.\n",
              "file": "pkg/gltf/material.go",
              "line": 238
            }
          ]
        },
        {
          "name": "FilterMode",
          "anchor": "FilterMode",
          "decl": "type FilterMode int",
          "doc": "FilterMode defines glTF texture minification/magnification filtering modes.\n",
          "file": "pkg/gltf/material.go",
          "line": 27,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FilterNearest",
                  "anchor": "FilterNearest"
                },
                {
                  "name": "FilterLinear",
                  "anchor": "FilterLinear"
                },
                {
                  "name": "FilterNearestMipmapNearest",
                  "anchor": "FilterNearestMipmapNearest"
                },
                {
                  "name": "FilterLinearMipmapNearest",
                  "anchor": "FilterLinearMipmapNearest"
                },
                {
                  "name": "FilterNearestMipmapLinear",
                  "anchor": "FilterNearestMipmapLinear"
                },
                {
                  "name": "FilterLinearMipmapLinear",
                  "anchor": "FilterLinearMipmapLinear"
                }
              ],
              "decl": "const (\n\tFilterNearest              FilterMode = 9728\n\tFilterLinear               FilterMode = 9729\n\tFilterNearestMipmapNearest FilterMode = 9984\n\tFilterLinearMipmapNearest  FilterMode = 9985\n\tFilterNearestMipmapLinear  FilterMode = 9986\n\tFilterLinearMipmapLinear   FilterMode = 9987\n)",
              "doc": "",
              "file": "pkg/gltf/material.go",
              "line": 29
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Image",
          "anchor": "Image",
          "decl": "type Image struct {\n\tName       string\n\tURI        string\n\tMimeType   string\n\tBufferView int\n\tExtras     json.RawMessage\n}",
          "doc": "Image represents an embedded or external texture image.\nBufferView is -1 when the image is referenced via URI.\n",
          "file": "pkg/gltf/material.go",
          "line": 69,
          "members": [
            {
              "name": "Name",
              "anchor": "Image.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "URI",
              "anchor": "Image.URI",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MimeType",
              "anchor": "Image.MimeType",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BufferView",
              "anchor": "Image.BufferView",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Image.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Interpolation",
          "anchor": "Interpolation",
          "decl": "type Interpolation string",
          "doc": "Interpolation defines the keyframe interpolation mode for an animation channel.\n",
          "file": "pkg/gltf/anim.go",
          "line": 12,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "InterpolationLinear",
                  "anchor": "InterpolationLinear"
                },
                {
                  "name": "InterpolationStep",
                  "anchor": "InterpolationStep"
                },
                {
                  "name": "InterpolationCubicSpline",
                  "anchor": "InterpolationCubicSpline"
                }
              ],
              "decl": "const (\n\tInterpolationLinear      Interpolation = \"LINEAR\"\n\tInterpolationStep        Interpolation = \"STEP\"\n\tInterpolationCubicSpline Interpolation = \"CUBICSPLINE\"\n)",
              "doc": "",
              "file": "pkg/gltf/anim.go",
              "line": 14
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LightmapRef",
          "anchor": "LightmapRef",
          "decl": "type LightmapRef struct {\n\t// Texture points to the lightmap texture in Document.Textures and its UV channel (defaulting to 1 for TEXCOORD_1). A KHR_texture_transform on the lightmap is folded into UVScale and UVOffset, so Texture.Transform carries only its texCoord override (if any) and passing Texture to [Document.TransformTexCoords] never applies the scale and offset a second time.\n\tTexture TextureRef\n\t// Intensity scales the decoded lightmap irradiance (defaults to 1).\n\tIntensity float32\n\t// Encoding is an optional encoding hint such as \"linear\", \"srgb\", \"rgbm\", or \"rgbd\", normalized to lower case. Empty when unspecified.\n\tEncoding string\n\t// RGBMMaxRange is an optional peak HDR scale hint for RGBM lightmaps (0 when unspecified, letting the renderer apply its default range).\n\tRGBMMaxRange float32\n\t// UVScale scales lightmap UVs when mapping into a shared lightmap atlas (defaults to [1, 1]). UVScale and UVOffset are the authoritative atlas transform: pass them to render3d's LightmapMaterial.SetUVTransform. They come from, in increasing precedence, the lightmap's KHR_texture_transform (scale and offset; a non-zero rotation is refused), a scaleOffset [sx, sy, ox, oy] field, and separate uvScale and uvOffset fields.\n\tUVScale [2]float32\n\t// UVOffset offsets scaled lightmap UVs when mapping into a shared lightmap atlas (defaults to [0, 0]). See UVScale for precedence.\n\tUVOffset [2]float32\n}",
          "doc": "LightmapRef describes a baked lightmap binding extracted from a glTF material's MOZ_lightmap extension, EXT_lightmap extension, or extras.lightmap metadata.\n",
          "file": "pkg/gltf/lightmap.go",
          "line": 20,
          "members": [
            {
              "name": "Texture",
              "anchor": "LightmapRef.Texture",
              "kind": "field",
              "doc": "Texture points to the lightmap texture in Document.Textures and its UV channel (defaulting to 1 for TEXCOORD_1). A KHR_texture_transform on the lightmap is folded into UVScale and UVOffset, so Texture.Transform carries only its texCoord override (if any) and passing Texture to [Document.TransformTexCoords] never applies the scale and offset a second time."
            },
            {
              "name": "Intensity",
              "anchor": "LightmapRef.Intensity",
              "kind": "field",
              "doc": "Intensity scales the decoded lightmap irradiance (defaults to 1)."
            },
            {
              "name": "Encoding",
              "anchor": "LightmapRef.Encoding",
              "kind": "field",
              "doc": "Encoding is an optional encoding hint such as \"linear\", \"srgb\", \"rgbm\", or \"rgbd\", normalized to lower case. Empty when unspecified."
            },
            {
              "name": "RGBMMaxRange",
              "anchor": "LightmapRef.RGBMMaxRange",
              "kind": "field",
              "doc": "RGBMMaxRange is an optional peak HDR scale hint for RGBM lightmaps (0 when unspecified, letting the renderer apply its default range)."
            },
            {
              "name": "UVScale",
              "anchor": "LightmapRef.UVScale",
              "kind": "field",
              "doc": "UVScale scales lightmap UVs when mapping into a shared lightmap atlas (defaults to [1, 1]). UVScale and UVOffset are the authoritative atlas transform: pass them to render3d's LightmapMaterial.SetUVTransform. They come from, in increasing precedence, the lightmap's KHR_texture_transform (scale and offset; a non-zero rotation is refused), a scaleOffset [sx, sy, ox, oy] field, and separate uvScale and uvOffset fields."
            },
            {
              "name": "UVOffset",
              "anchor": "LightmapRef.UVOffset",
              "kind": "field",
              "doc": "UVOffset offsets scaled lightmap UVs when mapping into a shared lightmap atlas (defaults to [0, 0]). See UVScale for precedence."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultLightmapRef",
              "anchor": "DefaultLightmapRef",
              "decl": "func DefaultLightmapRef(textureIndex int) LightmapRef",
              "doc": "DefaultLightmapRef returns a LightmapRef referencing textureIndex on TEXCOORD_1 with unit intensity and identity atlas UV transform.\n",
              "file": "pkg/gltf/lightmap.go",
              "line": 36
            }
          ],
          "methods": []
        },
        {
          "name": "Material",
          "anchor": "Material",
          "decl": "type Material struct {\n\tName                     string\n\tBaseColorFactor          math3d.Vec4\n\tBaseColorTexture         *TextureRef\n\tMetallicFactor           float32\n\tRoughnessFactor          float32\n\tMetallicRoughnessTexture *TextureRef\n\tNormalTexture            *TextureRef\n\tOcclusionTexture         *TextureRef\n\tEmissiveFactor           math3d.Vec3\n\tEmissiveTexture          *TextureRef\n\tAlphaMode                AlphaMode\n\tAlphaCutoff              float32\n\tDoubleSided              bool\n\tUnlit                    bool          // KHR_materials_unlit\n\tClearcoat                *Clearcoat    // KHR_materials_clearcoat\n\tTransmission             *Transmission // KHR_materials_transmission\n\tExtras                   json.RawMessage\n\t// Extensions keeps unsupported optional extension payloads by name.\n\tExtensions map[string]json.RawMessage\n}",
          "doc": "Material defines a glTF 2.0 PBR metallic-roughness material.\n",
          "file": "pkg/gltf/material.go",
          "line": 165,
          "members": [
            {
              "name": "Name",
              "anchor": "Material.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColorFactor",
              "anchor": "Material.BaseColorFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColorTexture",
              "anchor": "Material.BaseColorTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicFactor",
              "anchor": "Material.MetallicFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RoughnessFactor",
              "anchor": "Material.RoughnessFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicRoughnessTexture",
              "anchor": "Material.MetallicRoughnessTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalTexture",
              "anchor": "Material.NormalTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OcclusionTexture",
              "anchor": "Material.OcclusionTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EmissiveFactor",
              "anchor": "Material.EmissiveFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EmissiveTexture",
              "anchor": "Material.EmissiveTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlphaMode",
              "anchor": "Material.AlphaMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlphaCutoff",
              "anchor": "Material.AlphaCutoff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DoubleSided",
              "anchor": "Material.DoubleSided",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unlit",
              "anchor": "Material.Unlit",
              "kind": "field",
              "doc": "KHR_materials_unlit"
            },
            {
              "name": "Clearcoat",
              "anchor": "Material.Clearcoat",
              "kind": "field",
              "doc": "KHR_materials_clearcoat"
            },
            {
              "name": "Transmission",
              "anchor": "Material.Transmission",
              "kind": "field",
              "doc": "KHR_materials_transmission"
            },
            {
              "name": "Extras",
              "anchor": "Material.Extras",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extensions",
              "anchor": "Material.Extensions",
              "kind": "field",
              "doc": "Extensions keeps unsupported optional extension payloads by name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EmissiveStrength",
              "anchor": "Material.EmissiveStrength",
              "recv": "Material",
              "decl": "func (m Material) EmissiveStrength() (float32, error)",
              "doc": "EmissiveStrength returns the KHR_materials_emissive_strength multiplier for m, defaulting to 1.0 when the extension or its emissiveStrength property is omitted. A payload that is not an object, or an emissiveStrength that is not a finite number >= 0, returns an error.\n",
              "file": "pkg/gltf/material.go",
              "line": 188
            },
            {
              "name": "IOR",
              "anchor": "Material.IOR",
              "recv": "Material",
              "decl": "func (m Material) IOR() (float32, error)",
              "doc": "IOR returns the KHR_materials_ior dielectric index of refraction for m, defaulting to 1.5 when the extension or its ior property is omitted. A non-object payload or an ior that is not a finite number >= 1.0 (or 0 per spec) returns an error.\n",
              "file": "pkg/gltf/material_ext.go",
              "line": 39
            }
          ]
        },
        {
          "name": "MaterialVariant",
          "anchor": "MaterialVariant",
          "decl": "type MaterialVariant struct {\n\tName   string\n\tExtras json.RawMessage\n}",
          "doc": "MaterialVariant represents an entry in KHR_materials_variants.\n",
          "file": "pkg/gltf/material.go",
          "line": 219,
          "members": [
            {
              "name": "Name",
              "anchor": "MaterialVariant.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "MaterialVariant.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Mesh",
          "anchor": "Mesh",
          "decl": "type Mesh struct {\n\tName       string\n\tPrimitives []Primitive\n\tWeights    []float32\n\tExtras     json.RawMessage\n}",
          "doc": "Mesh groups one or more geometry primitives and optional default morph weights.\n",
          "file": "pkg/gltf/mesh.go",
          "line": 52,
          "members": [
            {
              "name": "Name",
              "anchor": "Mesh.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Primitives",
              "anchor": "Mesh.Primitives",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weights",
              "anchor": "Mesh.Weights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Mesh.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MorphResult",
          "anchor": "MorphResult",
          "decl": "type MorphResult struct {\n\tPositions []math3d.Vec3\n\tNormals   []math3d.Vec3\n\tTangents  []math3d.Vec4\n\tBounds    math3d.AABB\n}",
          "doc": "MorphResult holds the evaluated vertex attributes and object-space bounding\nbox for a morphed [Primitive]. Reuse one MorphResult across frames to\nevaluate morph targets with zero steady-state allocations.\n",
          "file": "pkg/gltf/morph.go",
          "line": 12,
          "members": [
            {
              "name": "Positions",
              "anchor": "MorphResult.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "MorphResult.Normals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tangents",
              "anchor": "MorphResult.Tangents",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "MorphResult.Bounds",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ApplyMorphWeights",
              "anchor": "ApplyMorphWeights",
              "decl": "func ApplyMorphWeights(base Primitive, weights []float32, dst *MorphResult) *MorphResult",
              "doc": "ApplyMorphWeights evaluates base's morph targets with weights into dst and\nreturns dst (allocating one if dst is nil). It blends Positions, renormalizes\nblended Normals, blends and renormalizes Tangents.xyz while preserving\nTangents.w handedness, and recomputes Bounds from the resulting Positions.\nReusing dst across calls performs zero heap allocations once its slices are sized.\n",
              "file": "pkg/gltf/morph.go",
              "line": 74
            }
          ],
          "methods": []
        },
        {
          "name": "MorphTarget",
          "anchor": "MorphTarget",
          "decl": "type MorphTarget struct {\n\tPositions []math3d.Vec3\n\tNormals   []math3d.Vec3\n\tTangents  []math3d.Vec3\n}",
          "doc": "MorphTarget holds vertex attribute displacement deltas for a single morph target.\n",
          "file": "pkg/gltf/mesh.go",
          "line": 23,
          "members": [
            {
              "name": "Positions",
              "anchor": "MorphTarget.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "MorphTarget.Normals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tangents",
              "anchor": "MorphTarget.Tangents",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Node",
          "anchor": "Node",
          "decl": "type Node struct {\n\tName        string\n\tParent      int\n\tChildren    []int\n\tTranslation math3d.Vec3\n\tRotation    math3d.Quat\n\tScale       math3d.Vec3\n\tLocalMatrix math3d.Mat4\n\tWorldMatrix math3d.Mat4\n\t// HasMatrix reports whether this node's transform is governed directly by\n\t// LocalMatrix (authored via the glTF \"matrix\" property) rather than TRS.\n\t// When false, ComputeWorldMatrices recomputes LocalMatrix from Translation,\n\t// Rotation, and Scale.\n\tHasMatrix bool\n\t// MatrixNotTRS reports that the authored matrix has shear or another part a translation, rotation and scale cannot express. Translation then holds the matrix's translation, Rotation and Scale stay identity, and LocalMatrix is the only exact transform (#546).\n\tMatrixNotTRS bool\n\tMesh         int\n\tSkin         int\n\tCamera       int\n\tWeights      []float32\n\tExtras       json.RawMessage\n\tExtensions   map[string]json.RawMessage\n}",
          "doc": "Node represents a node in the glTF 2.0 scene graph.\nIndex fields (Parent, Mesh, Skin, Camera) are -1 when unset.\n",
          "file": "pkg/gltf/scene.go",
          "line": 19,
          "members": [
            {
              "name": "Name",
              "anchor": "Node.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Parent",
              "anchor": "Node.Parent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Children",
              "anchor": "Node.Children",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Translation",
              "anchor": "Node.Translation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "Node.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "Node.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalMatrix",
              "anchor": "Node.LocalMatrix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldMatrix",
              "anchor": "Node.WorldMatrix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasMatrix",
              "anchor": "Node.HasMatrix",
              "kind": "field",
              "doc": "HasMatrix reports whether this node's transform is governed directly by\nLocalMatrix (authored via the glTF \"matrix\" property) rather than TRS.\nWhen false, ComputeWorldMatrices recomputes LocalMatrix from Translation,\nRotation, and Scale."
            },
            {
              "name": "MatrixNotTRS",
              "anchor": "Node.MatrixNotTRS",
              "kind": "field",
              "doc": "MatrixNotTRS reports that the authored matrix has shear or another part a translation, rotation and scale cannot express. Translation then holds the matrix's translation, Rotation and Scale stay identity, and LocalMatrix is the only exact transform (#546)."
            },
            {
              "name": "Mesh",
              "anchor": "Node.Mesh",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Skin",
              "anchor": "Node.Skin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Camera",
              "anchor": "Node.Camera",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weights",
              "anchor": "Node.Weights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Node.Extras",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extensions",
              "anchor": "Node.Extensions",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsDrawable",
              "anchor": "Node.IsDrawable",
              "recv": "Node",
              "decl": "func (n Node) IsDrawable() bool",
              "doc": "IsDrawable reports whether n should be rendered visually.\nIt returns false when n has no mesh (Mesh < 0) or when n is marked as a\ncollider-only / non-drawn node via a *-colonly name suffix or extras\n(\"draw\": false, \"collider\": {\"draw\": false | \"only\": true | \"visible\": false}).\n",
              "file": "pkg/gltf/collider.go",
              "line": 436
            },
            {
              "name": "SetTransform",
              "anchor": "Node.SetTransform",
              "recv": "*Node",
              "decl": "func (n *Node) SetTransform(t math3d.Transform)",
              "doc": "SetTransform updates the node's local TRS properties, clears HasMatrix, and\nrefreshes LocalMatrix.\n",
              "file": "pkg/gltf/scene.go",
              "line": 54
            },
            {
              "name": "Transform",
              "anchor": "Node.Transform",
              "recv": "*Node",
              "decl": "func (n *Node) Transform() math3d.Transform",
              "doc": "Transform returns the node's local TRS transform.\n",
              "file": "pkg/gltf/scene.go",
              "line": 44
            }
          ]
        },
        {
          "name": "NodeCollider",
          "anchor": "NodeCollider",
          "decl": "type NodeCollider struct {\n\t// NodeIndex is the node's index in Document.Nodes (-1 when parsed from a\n\t// standalone Node outside a Document).\n\tNodeIndex int\n\t// NodeName is the original Node.Name.\n\tNodeName string\n\t// BaseName is Node.Name with any recognized collider suffix removed.\n\tBaseName string\n\t// MeshIndex is Node.Mesh (-1 if the node has no mesh).\n\tMeshIndex int\n\t// Kind is the resolved collider shape kind.\n\tKind ColliderKind\n\t// Draw reports whether the node's mesh should still be rendered visually.\n\t// It is false for *-colonly suffixes, extras.collider.draw == false,\n\t// extras.collider.only == true, extras.collider.visible == false, or nodes\n\t// without a mesh.\n\tDraw bool\n\t// IsTrigger marks a sensor/trigger volume rather than a solid obstacle.\n\tIsTrigger bool\n\t// Tag is the resolved physics tag (extras.collider.tag when provided,\n\t// otherwise BaseName, falling back to NodeName).\n\tTag string\n\t// WorldMatrix is the node's world transform matrix (identity when unset).\n\tWorldMatrix math3d.Mat4\n\n\t// Optional local-space shape overrides supplied via extras.collider.\n\tHasCenter      bool\n\tCenter         math3d.Vec3\n\tHasHalfExtents bool\n\tHalfExtents    math3d.Vec3\n\tHasRadius      bool\n\tRadius         float32\n\tHasHeight      bool\n\tHeight         float32\n\n\t// Optional physics material and layer filter overrides from extras.collider.\n\tHasFriction    bool\n\tFriction       float32\n\tHasRestitution bool\n\tRestitution    float32\n\tHasLayer       bool\n\tLayer          uint32\n\tHasMask        bool\n\tMask           uint32\n}",
          "doc": "NodeCollider describes the collider metadata resolved from a glTF node's name\nsuffix and/or extras.collider object.\n",
          "file": "pkg/gltf/collider.go",
          "line": 38,
          "members": [
            {
              "name": "NodeIndex",
              "anchor": "NodeCollider.NodeIndex",
              "kind": "field",
              "doc": "NodeIndex is the node's index in Document.Nodes (-1 when parsed from a\nstandalone Node outside a Document)."
            },
            {
              "name": "NodeName",
              "anchor": "NodeCollider.NodeName",
              "kind": "field",
              "doc": "NodeName is the original Node.Name."
            },
            {
              "name": "BaseName",
              "anchor": "NodeCollider.BaseName",
              "kind": "field",
              "doc": "BaseName is Node.Name with any recognized collider suffix removed."
            },
            {
              "name": "MeshIndex",
              "anchor": "NodeCollider.MeshIndex",
              "kind": "field",
              "doc": "MeshIndex is Node.Mesh (-1 if the node has no mesh)."
            },
            {
              "name": "Kind",
              "anchor": "NodeCollider.Kind",
              "kind": "field",
              "doc": "Kind is the resolved collider shape kind."
            },
            {
              "name": "Draw",
              "anchor": "NodeCollider.Draw",
              "kind": "field",
              "doc": "Draw reports whether the node's mesh should still be rendered visually.\nIt is false for *-colonly suffixes, extras.collider.draw == false,\nextras.collider.only == true, extras.collider.visible == false, or nodes\nwithout a mesh."
            },
            {
              "name": "IsTrigger",
              "anchor": "NodeCollider.IsTrigger",
              "kind": "field",
              "doc": "IsTrigger marks a sensor/trigger volume rather than a solid obstacle."
            },
            {
              "name": "Tag",
              "anchor": "NodeCollider.Tag",
              "kind": "field",
              "doc": "Tag is the resolved physics tag (extras.collider.tag when provided,\notherwise BaseName, falling back to NodeName)."
            },
            {
              "name": "WorldMatrix",
              "anchor": "NodeCollider.WorldMatrix",
              "kind": "field",
              "doc": "WorldMatrix is the node's world transform matrix (identity when unset)."
            },
            {
              "name": "HasCenter",
              "anchor": "NodeCollider.HasCenter",
              "kind": "field",
              "doc": "Optional local-space shape overrides supplied via extras.collider."
            },
            {
              "name": "Center",
              "anchor": "NodeCollider.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasHalfExtents",
              "anchor": "NodeCollider.HasHalfExtents",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HalfExtents",
              "anchor": "NodeCollider.HalfExtents",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasRadius",
              "anchor": "NodeCollider.HasRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "NodeCollider.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasHeight",
              "anchor": "NodeCollider.HasHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "NodeCollider.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasFriction",
              "anchor": "NodeCollider.HasFriction",
              "kind": "field",
              "doc": "Optional physics material and layer filter overrides from extras.collider."
            },
            {
              "name": "Friction",
              "anchor": "NodeCollider.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasRestitution",
              "anchor": "NodeCollider.HasRestitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "NodeCollider.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasLayer",
              "anchor": "NodeCollider.HasLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "NodeCollider.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasMask",
              "anchor": "NodeCollider.HasMask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "NodeCollider.Mask",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseNodeCollider",
              "anchor": "ParseNodeCollider",
              "decl": "func ParseNodeCollider(node Node) (NodeCollider, bool, error)",
              "doc": "ParseNodeCollider inspects a glTF node's name suffix and extras.collider\nmetadata to determine whether it defines a physics collider and whether its\nmesh should be drawn visually.\n\nRecognized Godot-style node name suffixes (case-insensitive, with optional\ntrailing Blender \".001\" numbering):\n  - -col / -colonly: triangle mesh collider (drawn / collider-only)\n  - -boxcol / -boxcolonly: box collider (drawn / collider-only)\n  - -spherecol / -spherecolonly: sphere collider (drawn / collider-only)\n  - -capsulecol / -capsulecolonly: capsule collider (drawn / collider-only)\n  - -convcol / -convcolonly: convex collider (drawn / collider-only)\n\nRecognized node extras metadata:\n  - {\"collider\": \"box\"|\"sphere\"|\"capsule\"|\"trimesh\"|\"convex\"|\"none\"}\n  - {\"collider\": true|false}\n  - {\"collider\": {\"shape\"|\"type\": ..., \"draw\": bool, \"only\": bool, \"trigger\": bool,\n    \"tag\": string, \"center\": [x,y,z], \"halfExtents\"|\"size\": [x,y,z],\n    \"radius\": r, \"height\": h, \"friction\": f, \"restitution\": r,\n    \"layer\": u32, \"mask\": u32}}\n  - optional top-level {\"draw\": false} paired with a shorthand collider.\n\nWhen extras.collider is present it takes precedence over name-suffix defaults.\nIt returns (info, true, nil) when the node defines a collider, (zero, false, nil)\nwhen the node is not a collider, or an error when extras.collider is malformed.\n",
              "file": "pkg/gltf/collider.go",
              "line": 243
            }
          ],
          "methods": []
        },
        {
          "name": "Primitive",
          "anchor": "Primitive",
          "decl": "type Primitive struct {\n\tMode            PrimitiveMode\n\tMaterial        int\n\tPositions       []math3d.Vec3\n\tNormals         []math3d.Vec3\n\tTangents        []math3d.Vec4\n\tTexCoords0      []math3d.Vec2\n\tTexCoords1      []math3d.Vec2\n\tColors0         []math3d.Vec4\n\tJoints0         [][4]uint16\n\tWeights0        []math3d.Vec4\n\tIndices         []uint32\n\tBounds          math3d.AABB\n\tTargets         []MorphTarget\n\tVariantMappings map[int]int\n\tAttributes      map[string]int\n\tExtras          json.RawMessage\n}",
          "doc": "Primitive holds decoded geometry attributes, indices, bounding volume,\nmorph targets, and KHR_materials_variants mappings for a single draw primitive.\nMaterial is -1 when no default material is assigned.\n",
          "file": "pkg/gltf/mesh.go",
          "line": 32,
          "members": [
            {
              "name": "Mode",
              "anchor": "Primitive.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Material",
              "anchor": "Primitive.Material",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Positions",
              "anchor": "Primitive.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "Primitive.Normals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tangents",
              "anchor": "Primitive.Tangents",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TexCoords0",
              "anchor": "Primitive.TexCoords0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TexCoords1",
              "anchor": "Primitive.TexCoords1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Colors0",
              "anchor": "Primitive.Colors0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Joints0",
              "anchor": "Primitive.Joints0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weights0",
              "anchor": "Primitive.Weights0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "Primitive.Indices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "Primitive.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Targets",
              "anchor": "Primitive.Targets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VariantMappings",
              "anchor": "Primitive.VariantMappings",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Attributes",
              "anchor": "Primitive.Attributes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Primitive.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PrimitiveMode",
          "anchor": "PrimitiveMode",
          "decl": "type PrimitiveMode int",
          "doc": "PrimitiveMode specifies the topology of a mesh primitive.\n",
          "file": "pkg/gltf/mesh.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ModePoints",
                  "anchor": "ModePoints"
                },
                {
                  "name": "ModeLines",
                  "anchor": "ModeLines"
                },
                {
                  "name": "ModeLineLoop",
                  "anchor": "ModeLineLoop"
                },
                {
                  "name": "ModeLineStrip",
                  "anchor": "ModeLineStrip"
                },
                {
                  "name": "ModeTriangles",
                  "anchor": "ModeTriangles"
                },
                {
                  "name": "ModeTriangleStrip",
                  "anchor": "ModeTriangleStrip"
                },
                {
                  "name": "ModeTriangleFan",
                  "anchor": "ModeTriangleFan"
                }
              ],
              "decl": "const (\n\tModePoints        PrimitiveMode = 0\n\tModeLines         PrimitiveMode = 1\n\tModeLineLoop      PrimitiveMode = 2\n\tModeLineStrip     PrimitiveMode = 3\n\tModeTriangles     PrimitiveMode = 4\n\tModeTriangleStrip PrimitiveMode = 5\n\tModeTriangleFan   PrimitiveMode = 6\n)",
              "doc": "",
              "file": "pkg/gltf/mesh.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Sampler",
          "anchor": "Sampler",
          "decl": "type Sampler struct {\n\tName      string\n\tMagFilter FilterMode\n\tMinFilter FilterMode\n\tWrapS     WrapMode\n\tWrapT     WrapMode\n\tExtras    json.RawMessage\n}",
          "doc": "Sampler describes filtering and wrapping properties for a texture.\n",
          "file": "pkg/gltf/material.go",
          "line": 48,
          "members": [
            {
              "name": "Name",
              "anchor": "Sampler.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MagFilter",
              "anchor": "Sampler.MagFilter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinFilter",
              "anchor": "Sampler.MinFilter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WrapS",
              "anchor": "Sampler.WrapS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WrapT",
              "anchor": "Sampler.WrapT",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Sampler.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Scene",
          "anchor": "Scene",
          "decl": "type Scene struct {\n\tName   string\n\tRoots  []int\n\tExtras json.RawMessage\n}",
          "doc": "Scene represents a glTF 2.0 scene with its root node indices.\n",
          "file": "pkg/gltf/scene.go",
          "line": 11,
          "members": [
            {
              "name": "Name",
              "anchor": "Scene.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Roots",
              "anchor": "Scene.Roots",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Scene.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Skin",
          "anchor": "Skin",
          "decl": "type Skin struct {\n\tName                string\n\tJoints              []int\n\tSkeleton            int\n\tInverseBindMatrices []math3d.Mat4\n\tExtras              json.RawMessage\n}",
          "doc": "Skin defines skeletal joints and their inverse bind matrices.\nSkeleton is -1 when unset.\n",
          "file": "pkg/gltf/mesh.go",
          "line": 61,
          "members": [
            {
              "name": "Name",
              "anchor": "Skin.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Joints",
              "anchor": "Skin.Joints",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Skeleton",
              "anchor": "Skin.Skeleton",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InverseBindMatrices",
              "anchor": "Skin.InverseBindMatrices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Skin.Extras",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TargetPath",
          "anchor": "TargetPath",
          "decl": "type TargetPath string",
          "doc": "TargetPath identifies which node property an animation channel drives.\n",
          "file": "pkg/gltf/anim.go",
          "line": 21,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PathTranslation",
                  "anchor": "PathTranslation"
                },
                {
                  "name": "PathRotation",
                  "anchor": "PathRotation"
                },
                {
                  "name": "PathScale",
                  "anchor": "PathScale"
                },
                {
                  "name": "PathWeights",
                  "anchor": "PathWeights"
                }
              ],
              "decl": "const (\n\tPathTranslation TargetPath = \"translation\"\n\tPathRotation    TargetPath = \"rotation\"\n\tPathScale       TargetPath = \"scale\"\n\tPathWeights     TargetPath = \"weights\"\n)",
              "doc": "",
              "file": "pkg/gltf/anim.go",
              "line": 23
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Texture",
          "anchor": "Texture",
          "decl": "type Texture struct {\n\tName       string\n\tSampler    int\n\tSource     int\n\tExtras     json.RawMessage\n\tExtensions map[string]json.RawMessage\n}",
          "doc": "Texture binds an Image source with an optional Sampler.\nSampler and Source are -1 when unset.\n",
          "file": "pkg/gltf/material.go",
          "line": 59,
          "members": [
            {
              "name": "Name",
              "anchor": "Texture.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sampler",
              "anchor": "Texture.Sampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "Texture.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extras",
              "anchor": "Texture.Extras",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Extensions",
              "anchor": "Texture.Extensions",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TextureRef",
          "anchor": "TextureRef",
          "decl": "type TextureRef struct {\n\tTextureIndex int\n\tTexCoord     int\n\tScale        float32\n\tStrength     float32\n\tTransform    *TextureTransform\n}",
          "doc": "TextureRef references a Texture in Document.Textures along with UV channel,\nnormal scale / occlusion strength, and optional KHR_texture_transform.\n",
          "file": "pkg/gltf/material.go",
          "line": 139,
          "members": [
            {
              "name": "TextureIndex",
              "anchor": "TextureRef.TextureIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TexCoord",
              "anchor": "TextureRef.TexCoord",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "TextureRef.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Strength",
              "anchor": "TextureRef.Strength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transform",
              "anchor": "TextureRef.Transform",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ApplyUV",
              "anchor": "TextureRef.ApplyUV",
              "recv": "TextureRef",
              "decl": "func (r TextureRef) ApplyUV(uv math3d.Vec2) math3d.Vec2",
              "doc": "ApplyUV transforms uv with r.Transform if present, or returns uv unchanged.\n",
              "file": "pkg/gltf/material.go",
              "line": 157
            },
            {
              "name": "EffectiveTexCoord",
              "anchor": "TextureRef.EffectiveTexCoord",
              "recv": "TextureRef",
              "decl": "func (r TextureRef) EffectiveTexCoord() int",
              "doc": "EffectiveTexCoord returns Transform.TexCoord if KHR_texture_transform overrides\nthe UV set, otherwise TexCoord.\n",
              "file": "pkg/gltf/material.go",
              "line": 149
            }
          ]
        },
        {
          "name": "TextureTransform",
          "anchor": "TextureTransform",
          "decl": "type TextureTransform struct {\n\tOffset   [2]float32\n\tRotation float32\n\tScale    [2]float32\n\tTexCoord *int\n}",
          "doc": "TextureTransform represents the Khronos KHR_texture_transform extension.\nTransforms are applied in exact spec order: T(Offset) * R(Rotation) * S(Scale)\nin glTF UV space (origin top-left, +U right, +V down, positive rotation\ncounter-clockwise).\n",
          "file": "pkg/gltf/material.go",
          "line": 81,
          "members": [
            {
              "name": "Offset",
              "anchor": "TextureTransform.Offset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "TextureTransform.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "TextureTransform.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TexCoord",
              "anchor": "TextureTransform.TexCoord",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultTextureTransform",
              "anchor": "DefaultTextureTransform",
              "decl": "func DefaultTextureTransform() TextureTransform",
              "doc": "DefaultTextureTransform returns the identity KHR_texture_transform value\n(offset [0, 0], rotation 0, scale [1, 1], no texCoord override).\n",
              "file": "pkg/gltf/material.go",
              "line": 90
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "TextureTransform.Apply",
              "recv": "TextureTransform",
              "decl": "func (t TextureTransform) Apply(uv math3d.Vec2) math3d.Vec2",
              "doc": "Apply transforms a 2D texture coordinate using the exact\nKHR_texture_transform matrix order M = T * R * S.\n",
              "file": "pkg/gltf/material.go",
              "line": 119
            },
            {
              "name": "ApplyUV",
              "anchor": "TextureTransform.ApplyUV",
              "recv": "TextureTransform",
              "decl": "func (t TextureTransform) ApplyUV(u, v float32) (float32, float32)",
              "doc": "ApplyUV transforms texture coordinates (u, v) using the exact\nKHR_texture_transform matrix order M = T * R * S:\n\n\tsu = u * Scale[0]\n\tsv = v * Scale[1]\n\tu' =  cos(Rotation)*su + sin(Rotation)*sv + Offset[0]\n\tv' = -sin(Rotation)*su + cos(Rotation)*sv + Offset[1]\n",
              "file": "pkg/gltf/material.go",
              "line": 109
            },
            {
              "name": "IsIdentity",
              "anchor": "TextureTransform.IsIdentity",
              "recv": "TextureTransform",
              "decl": "func (t TextureTransform) IsIdentity() bool",
              "doc": "IsIdentity reports whether t leaves UV coordinates unchanged (offset [0, 0],\nrotation 0, and scale [1, 1]).\n",
              "file": "pkg/gltf/material.go",
              "line": 98
            },
            {
              "name": "Matrix",
              "anchor": "TextureTransform.Matrix",
              "recv": "TextureTransform",
              "decl": "func (t TextureTransform) Matrix() math3d.Mat3",
              "doc": "Matrix returns the column-major 3x3 homogeneous UV transform matrix T * R * S\nmatching the Khronos KHR_texture_transform specification.\n",
              "file": "pkg/gltf/material.go",
              "line": 126
            }
          ]
        },
        {
          "name": "Transmission",
          "anchor": "Transmission",
          "decl": "type Transmission struct {\n\t// Factor is transmissionFactor in [0, 1] (default 0). Multiplied by Texture's R channel when present.\n\tFactor float32\n\t// Texture is transmissionTexture (optional, linear; R channel modulates Factor).\n\tTexture *TextureRef\n}",
          "doc": "Transmission represents the Khronos KHR_materials_transmission material\nextension, describing optical transmission through thin dielectric surfaces.\n",
          "file": "pkg/gltf/material_ext.go",
          "line": 31,
          "members": [
            {
              "name": "Factor",
              "anchor": "Transmission.Factor",
              "kind": "field",
              "doc": "Factor is transmissionFactor in [0, 1] (default 0). Multiplied by Texture's R channel when present."
            },
            {
              "name": "Texture",
              "anchor": "Transmission.Texture",
              "kind": "field",
              "doc": "Texture is transmissionTexture (optional, linear; R channel modulates Factor)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WrapMode",
          "anchor": "WrapMode",
          "decl": "type WrapMode int",
          "doc": "WrapMode defines glTF texture coordinate wrapping modes.\n",
          "file": "pkg/gltf/material.go",
          "line": 39,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "WrapClampToEdge",
                  "anchor": "WrapClampToEdge"
                },
                {
                  "name": "WrapMirroredRepeat",
                  "anchor": "WrapMirroredRepeat"
                },
                {
                  "name": "WrapRepeat",
                  "anchor": "WrapRepeat"
                }
              ],
              "decl": "const (\n\tWrapClampToEdge    WrapMode = 33071\n\tWrapMirroredRepeat WrapMode = 33648\n\tWrapRepeat         WrapMode = 10497\n)",
              "doc": "",
              "file": "pkg/gltf/material.go",
              "line": 41
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/idle",
      "name": "idle",
      "dir": "pkg/idle",
      "page": "pkg/idle",
      "synopsis": "Package idle provides the arithmetic idle and incremental games need: a Number that holds values far beyond float64's range, progress earned while the game was closed, and formatting of very large numbers in short (1.23K, 4.5万), letter, scientific (1.23e45), engineering and full forms.",
      "doc": "Package idle provides the arithmetic idle and incremental games need: a Number that holds values far beyond float64's range, progress earned while the game was closed, and formatting of very large numbers in short (1.23K, 4.5万), letter, scientific (1.23e45), engineering and full forms.\n\nA Number is a plain float64 for magnitudes up to 1e300 and a float64 mantissa with an int64 power of ten beyond, so it reaches 10^MaxExponent instead of float64's 1.8e308 while ordinary values keep exact float64 arithmetic. Its operations are plain IEEE-754 float64 operations with no fused multiply-add, so a given sequence of them gives the same bits on every platform, and it reads and writes itself as text (\"1.23e45\") for saves and data tables.\n\nOffline credits an absence measured from wall-clock timestamps, with a minimum, a cap, an efficiency and protection against a clock moved backwards. Format renders a Number for a Locale; English and Chinese locales are built in, and a game can describe its own in a versioned YAML file read by ParseLocale.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultDigits",
              "anchor": "DefaultDigits"
            }
          ],
          "decl": "const DefaultDigits = 3",
          "doc": "DefaultDigits is the number of significant digits Format shows when Format.Digits is 0.\n",
          "file": "pkg/idle/format.go",
          "line": 41
        },
        {
          "idents": [
            {
              "name": "LocaleVersion",
              "anchor": "LocaleVersion"
            }
          ],
          "decl": "const LocaleVersion = 1",
          "doc": "LocaleVersion is the locale file schema version this package reads and writes.\n",
          "file": "pkg/idle/locale.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "MaxExponent",
              "anchor": "MaxExponent"
            }
          ],
          "decl": "const MaxExponent int64 = 1_000_000_000_000_000_000",
          "doc": "MaxExponent is the largest power of ten a Number holds. Results beyond it saturate to the largest Number of that sign, and results whose magnitude falls below 10^-MaxExponent become zero.\n",
          "file": "pkg/idle/number.go",
          "line": 12
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrRange",
              "anchor": "ErrRange"
            }
          ],
          "decl": "var ErrRange = errors.New(\"number out of range\")",
          "doc": "ErrRange reports text whose power of ten lies beyond ±MaxExponent.\n",
          "file": "pkg/idle/number.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ErrSyntax",
              "anchor": "ErrSyntax"
            }
          ],
          "decl": "var ErrSyntax = errors.New(\"invalid number syntax\")",
          "doc": "ErrSyntax reports text that is not a decimal number, such as an empty string, \"inf\", \"NaN\", a hexadecimal float or stray characters.\n",
          "file": "pkg/idle/number.go",
          "line": 15
        }
      ],
      "funcs": [
        {
          "name": "EncodeLocale",
          "anchor": "EncodeLocale",
          "decl": "func EncodeLocale(l *Locale) ([]byte, error)",
          "doc": "EncodeLocale validates l and writes it as deterministic 2-space YAML with fields in a fixed order, so ParseLocale followed by EncodeLocale reproduces the same bytes.\n",
          "file": "pkg/idle/locale.go",
          "line": 155
        }
      ],
      "types": [
        {
          "name": "Away",
          "anchor": "Away",
          "decl": "type Away struct {\n\t// Elapsed is the wall-clock time between the last-seen time and now; 0 when there was no last-seen time or the clock moved backwards.\n\tElapsed time.Duration\n\t// Credited is the part of Elapsed that earns progress, after Min and Cap.\n\tCredited time.Duration\n\t// Capped reports that Cap cut the absence short.\n\tCapped bool\n\t// Rewound reports that now is before the last-seen time: the device clock was set back, so nothing is credited.\n\tRewound bool\n\t// Seen is the later of the last-seen time and now, without a monotonic clock reading. A game stores it as the next last-seen time, so setting the clock back and forward again cannot credit the same hours twice.\n\tSeen time.Time\n}",
          "doc": "Away describes one absence as Offline credits it.\n",
          "file": "pkg/idle/offline.go",
          "line": 21,
          "members": [
            {
              "name": "Elapsed",
              "anchor": "Away.Elapsed",
              "kind": "field",
              "doc": "Elapsed is the wall-clock time between the last-seen time and now; 0 when there was no last-seen time or the clock moved backwards."
            },
            {
              "name": "Credited",
              "anchor": "Away.Credited",
              "kind": "field",
              "doc": "Credited is the part of Elapsed that earns progress, after Min and Cap."
            },
            {
              "name": "Capped",
              "anchor": "Away.Capped",
              "kind": "field",
              "doc": "Capped reports that Cap cut the absence short."
            },
            {
              "name": "Rewound",
              "anchor": "Away.Rewound",
              "kind": "field",
              "doc": "Rewound reports that now is before the last-seen time: the device clock was set back, so nothing is credited."
            },
            {
              "name": "Seen",
              "anchor": "Away.Seen",
              "kind": "field",
              "doc": "Seen is the later of the last-seen time and now, without a monotonic clock reading. A game stores it as the next last-seen time, so setting the clock back and forward again cannot credit the same hours twice."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Steps",
              "anchor": "Away.Steps",
              "recv": "Away",
              "decl": "func (a Away) Steps(step time.Duration) (n int64, rest time.Duration)",
              "doc": "Steps splits the credited time into whole fixed steps and the remainder, for a game that replays its simulation step by step while away instead of multiplying a rate. It panics if step is not positive.\n",
              "file": "pkg/idle/offline.go",
              "line": 83
            }
          ]
        },
        {
          "name": "Format",
          "anchor": "Format",
          "decl": "type Format struct {\n\t// Notation is the notation; the zero value is Short.\n\tNotation Notation\n\t// Digits is the number of significant digits, from 1 to 17; 0 means DefaultDigits and larger values are treated as 17.\n\tDigits int\n\t// Fixed keeps trailing zeros in the fraction.\n\tFixed bool\n\t// Locale supplies separators and units; nil means English. It must be valid; see Locale.Validate.\n\tLocale *Locale\n}",
          "doc": "Format writes Numbers for display in a notation and locale. The zero Format writes Short notation with three significant digits in English: 1234 is \"1.23K\", 1e45 is \"1Qad\".\n\nDigits is the number of significant digits shown; integer digits are never dropped, so 123456 is \"123K\" and 1234 in Full is \"1,234\" even with Digits 3. Trailing fraction zeros are trimmed unless Fixed is set, which keeps the width steady as a counter climbs: \"1.20K\" instead of \"1.2K\".\n\nRounding happens before the unit is chosen, so 999999 with three digits is \"1M\", never \"1000K\". Positional output covers exponents from -6 up; smaller magnitudes are scientific.\n",
          "file": "pkg/idle/format.go",
          "line": 54,
          "members": [
            {
              "name": "Notation",
              "anchor": "Format.Notation",
              "kind": "field",
              "doc": "Notation is the notation; the zero value is Short."
            },
            {
              "name": "Digits",
              "anchor": "Format.Digits",
              "kind": "field",
              "doc": "Digits is the number of significant digits, from 1 to 17; 0 means DefaultDigits and larger values are treated as 17."
            },
            {
              "name": "Fixed",
              "anchor": "Format.Fixed",
              "kind": "field",
              "doc": "Fixed keeps trailing zeros in the fraction."
            },
            {
              "name": "Locale",
              "anchor": "Format.Locale",
              "kind": "field",
              "doc": "Locale supplies separators and units; nil means English. It must be valid; see Locale.Validate."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Append",
              "anchor": "Format.Append",
              "recv": "Format",
              "decl": "func (f Format) Append(dst []byte, n Number) []byte",
              "doc": "Append appends n written in f's notation and locale to dst, allocating nothing when dst has room, so a HUD can redraw a counter every frame.\n",
              "file": "pkg/idle/format.go",
              "line": 72
            },
            {
              "name": "Format",
              "anchor": "Format.Format",
              "recv": "Format",
              "decl": "func (f Format) Format(n Number) string",
              "doc": "Format returns n written in f's notation and locale.\n",
              "file": "pkg/idle/format.go",
              "line": 66
            }
          ]
        },
        {
          "name": "Locale",
          "anchor": "Locale",
          "decl": "type Locale struct {\n\t// Version is the schema version; it must equal LocaleVersion.\n\tVersion int `yaml:\"version\"`\n\t// Name is the locale's BCP 47 tag, such as \"en\" or \"zh-Hans\".\n\tName string `yaml:\"name\"`\n\t// Decimal separates the integer and fraction digits.\n\tDecimal string `yaml:\"decimal\"`\n\t// Group separates each three integer digits in positional output; empty means no grouping.\n\tGroup string `yaml:\"group\"`\n\t// Exponent marks the power of ten in scientific and engineering output, such as \"e\" in 1.23e45.\n\tExponent string `yaml:\"exponent\"`\n\t// Units lists the Short notation's units in ascending Exp order.\n\tUnits []Unit `yaml:\"units\"`\n}",
          "doc": "Locale describes how numbers read in one language: the decimal and grouping separators, the exponent marker, and the units the Short notation divides by, such as K and M in English or 万 and 亿 in Chinese.\n\nA Locale is a versioned YAML document, so a game can add a language, or name its own units, without code:\n\n\tversion: 1\n\tname: de\n\tdecimal: \",\"\n\tgroup: \".\"\n\texponent: e\n\tunits:\n\t  - exp: 3\n\t    suffix: \" Tsd.\"\n\t  - exp: 6\n\t    suffix: \" Mio.\"\n\nFormat reads a Locale without validating it; one from ParseLocale or the built-in constructors is always valid, and one built in code should pass Validate first.\n",
          "file": "pkg/idle/locale.go",
          "line": 36,
          "members": [
            {
              "name": "Version",
              "anchor": "Locale.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal LocaleVersion."
            },
            {
              "name": "Name",
              "anchor": "Locale.Name",
              "kind": "field",
              "doc": "Name is the locale's BCP 47 tag, such as \"en\" or \"zh-Hans\"."
            },
            {
              "name": "Decimal",
              "anchor": "Locale.Decimal",
              "kind": "field",
              "doc": "Decimal separates the integer and fraction digits."
            },
            {
              "name": "Group",
              "anchor": "Locale.Group",
              "kind": "field",
              "doc": "Group separates each three integer digits in positional output; empty means no grouping."
            },
            {
              "name": "Exponent",
              "anchor": "Locale.Exponent",
              "kind": "field",
              "doc": "Exponent marks the power of ten in scientific and engineering output, such as \"e\" in 1.23e45."
            },
            {
              "name": "Units",
              "anchor": "Locale.Units",
              "kind": "field",
              "doc": "Units lists the Short notation's units in ascending Exp order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ChineseSimplified",
              "anchor": "ChineseSimplified",
              "decl": "func ChineseSimplified() *Locale",
              "doc": "ChineseSimplified returns a new Simplified Chinese locale: \".\" and \",\", and the myriad units 万, 亿, 兆, 京, 垓, 秭, 穰, 沟, 涧, 正 and 载 for 10^4 to 10^44, each 10^4 times the last.\n",
              "file": "pkg/idle/locale.go",
              "line": 226
            },
            {
              "name": "ChineseTraditional",
              "anchor": "ChineseTraditional",
              "decl": "func ChineseTraditional() *Locale",
              "doc": "ChineseTraditional returns a new Traditional Chinese locale with the myriad units 萬, 億, 兆, 京, 垓, 秭, 穰, 溝, 澗, 正 and 載 for 10^4 to 10^44.\n",
              "file": "pkg/idle/locale.go",
              "line": 229
            },
            {
              "name": "English",
              "anchor": "English",
              "decl": "func English() *Locale",
              "doc": "English returns a new English locale: \".\" and \",\", and the units K, M, B, T, Qa, Qi, Sx, Sp, Oc, No, Dc, Ud, Dd, Td, Qad, Qid, Sxd, Spd, Ocd, Nod and Vg for 10^3 to 10^63.\n",
              "file": "pkg/idle/locale.go",
              "line": 223
            },
            {
              "name": "LocaleFor",
              "anchor": "LocaleFor",
              "decl": "func LocaleFor(tag string) *Locale",
              "doc": "LocaleFor returns a new built-in locale for a BCP 47 tag: Traditional Chinese for zh with the Hant script or the TW, HK or MO region, Simplified Chinese for other zh tags, and English for everything else. Case and \"_\" or \"-\" separators do not matter.\n",
              "file": "pkg/idle/locale.go",
              "line": 232
            },
            {
              "name": "ParseLocale",
              "anchor": "ParseLocale",
              "decl": "func ParseLocale(data []byte) (*Locale, error)",
              "doc": "ParseLocale decodes a YAML locale document and validates it. Unknown fields and trailing documents are refused.\n",
              "file": "pkg/idle/locale.go",
              "line": 131
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Locale.Clone",
              "recv": "*Locale",
              "decl": "func (l *Locale) Clone() *Locale",
              "doc": "Clone returns a deep copy of l, so a built-in locale can be adjusted without affecting other users.\n",
              "file": "pkg/idle/locale.go",
              "line": 177
            },
            {
              "name": "Validate",
              "anchor": "Locale.Validate",
              "recv": "*Locale",
              "decl": "func (l *Locale) Validate() error",
              "doc": "Validate reports whether l is a well-formed version 1 locale: separators and suffixes that are non-empty where required, valid UTF-8 and free of ASCII digits and signs, a decimal separator that differs from the group separator, an exponent marker that differs from both, unit suffixes that are neither separator and do not start with the exponent marker, and unit exponents from 1 to 1000000 in strictly ascending order with distinct suffixes.\n",
              "file": "pkg/idle/locale.go",
              "line": 60
            }
          ]
        },
        {
          "name": "Notation",
          "anchor": "Notation",
          "decl": "type Notation uint8",
          "doc": "Notation selects how Format writes a number.\n",
          "file": "pkg/idle/format.go",
          "line": 8,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Short",
                  "anchor": "Short"
                },
                {
                  "name": "Scientific",
                  "anchor": "Scientific"
                },
                {
                  "name": "Engineering",
                  "anchor": "Engineering"
                },
                {
                  "name": "Letters",
                  "anchor": "Letters"
                },
                {
                  "name": "Full",
                  "anchor": "Full"
                }
              ],
              "decl": "const (\n\t// Short divides by the locale's largest unit at or below the value: 1.23K and 4.5B in English, 1.23万 and 4.5亿 in Chinese. Values below the first unit are positional, and values past the last unit's range, or that would need more than 21 integer digits, as in a gap between two units of a custom locale, switch to Scientific.\n\tShort Notation = iota\n\t// Scientific writes one integer digit and a power of ten, such as 1.23e45. Values below 1000 are positional.\n\tScientific\n\t// Engineering writes a power of ten that is a multiple of three and one to three integer digits, such as 12.3e45. Values below 1000 are positional.\n\tEngineering\n\t// Letters uses K, M, B and T, then aa, ab, … zz, aaa and so on for each further factor of 1000, so it never runs out. Values below 1000 are positional; only the locale's decimal separator applies.\n\tLetters\n\t// Full writes every integer digit with grouping separators, such as 1,234,567, up to 10^21, and Scientific beyond.\n\tFull\n)",
              "doc": "",
              "file": "pkg/idle/format.go",
              "line": 10
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Notation.String",
              "recv": "Notation",
              "decl": "func (n Notation) String() string",
              "doc": "String returns the notation's name, such as \"short\".\n",
              "file": "pkg/idle/format.go",
              "line": 24
            }
          ]
        },
        {
          "name": "Number",
          "anchor": "Number",
          "decl": "type Number struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Number is a signed number that reaches far beyond float64: its value is Mantissa() × 10^Exponent() with an int64 exponent up to MaxExponent. The zero value is 0.\n\nA magnitude from 1e-300 up to 1e300 is held as a plain float64, so arithmetic there is exactly float64 arithmetic (2^10 is 1024, integers up to 2^53 are exact) and only values past that range pay for a separate exponent. Every value has one representation, so two equal Numbers compare equal with ==. A Number is a small value type; its methods never modify it and return a new Number.\n",
          "file": "pkg/idle/number.go",
          "line": 23,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(f float64) Number",
              "doc": "New returns the Number nearest f: f itself for magnitudes from 1e-300 up to 1e300, and within one unit in the last place of f beyond, where the decimal mantissa's precision does not line up with float64's. It panics if f is NaN or infinite.\n",
              "file": "pkg/idle/number.go",
              "line": 67
            },
            {
              "name": "NewExp",
              "anchor": "NewExp",
              "decl": "func NewExp(mantissa float64, exp int64) Number",
              "doc": "NewExp returns the Number equal to mantissa × 10^exp; the mantissa need not be normalized. It panics if mantissa is NaN or infinite.\n",
              "file": "pkg/idle/number.go",
              "line": 78
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(s string) (Number, error)",
              "doc": "Parse reads a decimal number: an optional sign, digits with an optional point, and an optional exponent, such as \"42\", \"-0.5\", \"1.23e45\" or \"7E+400\". The exponent may exceed float64's range up to ±MaxExponent. Spaces, underscores, hexadecimal, \"inf\" and \"NaN\" are refused with ErrSyntax; a value whose power of ten lies beyond the range returns ErrRange, and zero is 0 whatever its exponent.\n",
              "file": "pkg/idle/number.go",
              "line": 498
            },
            {
              "name": "Seconds",
              "anchor": "Seconds",
              "decl": "func Seconds(d time.Duration) Number",
              "doc": "Seconds returns d in seconds as a Number, to float64 precision.\n",
              "file": "pkg/idle/offline.go",
              "line": 91
            }
          ],
          "methods": [
            {
              "name": "Abs",
              "anchor": "Number.Abs",
              "recv": "Number",
              "decl": "func (n Number) Abs() Number",
              "doc": "Abs returns |n|.\n",
              "file": "pkg/idle/number.go",
              "line": 216
            },
            {
              "name": "Add",
              "anchor": "Number.Add",
              "recv": "Number",
              "decl": "func (n Number) Add(o Number) Number",
              "doc": "Add returns n + o. Past the plain range, when the exponents differ by 17 or more the smaller operand lies below the larger's precision and the larger is returned unchanged.\n",
              "file": "pkg/idle/number.go",
              "line": 219
            },
            {
              "name": "AppendText",
              "anchor": "Number.AppendText",
              "recv": "Number",
              "decl": "func (n Number) AppendText(dst []byte) []byte",
              "doc": "AppendText appends n's canonical text, as String returns it, to dst.\n",
              "file": "pkg/idle/number.go",
              "line": 429
            },
            {
              "name": "Cmp",
              "anchor": "Number.Cmp",
              "recv": "Number",
              "decl": "func (n Number) Cmp(o Number) int",
              "doc": "Cmp compares n and o and returns -1, 0 or +1 as n is less than, equal to or greater than o.\n",
              "file": "pkg/idle/number.go",
              "line": 307
            },
            {
              "name": "Div",
              "anchor": "Number.Div",
              "recv": "Number",
              "decl": "func (n Number) Div(o Number) Number",
              "doc": "Div returns n / o. It panics if o is zero.\n",
              "file": "pkg/idle/number.go",
              "line": 263
            },
            {
              "name": "Exponent",
              "anchor": "Number.Exponent",
              "recv": "Number",
              "decl": "func (n Number) Exponent() int64",
              "doc": "Exponent returns n's decimal exponent, the power of ten of its leading digit; it is 0 for zero.\n",
              "file": "pkg/idle/number.go",
              "line": 188
            },
            {
              "name": "Float64",
              "anchor": "Number.Float64",
              "recv": "Number",
              "decl": "func (n Number) Float64() float64",
              "doc": "Float64 returns the float64 nearest n: n itself for magnitudes from 1e-300 up to 1e300, ±Inf when |n| exceeds float64's range, and 0 or a subnormal when it is below the smallest normal float64.\n",
              "file": "pkg/idle/number.go",
              "line": 360
            },
            {
              "name": "IsZero",
              "anchor": "Number.IsZero",
              "recv": "Number",
              "decl": "func (n Number) IsZero() bool",
              "doc": "IsZero reports whether n is 0.\n",
              "file": "pkg/idle/number.go",
              "line": 194
            },
            {
              "name": "Log10",
              "anchor": "Number.Log10",
              "recv": "Number",
              "decl": "func (n Number) Log10() float64",
              "doc": "Log10 returns log10(|n|), -Inf for zero. It is meant for display, such as progress bars over many orders of magnitude; its last bits may differ between platforms, so game state should not depend on it.\n",
              "file": "pkg/idle/number.go",
              "line": 373
            },
            {
              "name": "Mantissa",
              "anchor": "Number.Mantissa",
              "recv": "Number",
              "decl": "func (n Number) Mantissa() float64",
              "doc": "Mantissa returns n's decimal mantissa: 0 for zero, otherwise a value with 1 ≤ |m| < 10 carrying n's sign.\n",
              "file": "pkg/idle/number.go",
              "line": 182
            },
            {
              "name": "MarshalText",
              "anchor": "Number.MarshalText",
              "recv": "Number",
              "decl": "func (n Number) MarshalText() ([]byte, error)",
              "doc": "MarshalText implements encoding.TextMarshaler with n's canonical text, so a Number is a string in JSON saves and YAML data.\n",
              "file": "pkg/idle/number.go",
              "line": 470
            },
            {
              "name": "Max",
              "anchor": "Number.Max",
              "recv": "Number",
              "decl": "func (n Number) Max(o Number) Number",
              "doc": "Max returns the larger of n and o.\n",
              "file": "pkg/idle/number.go",
              "line": 352
            },
            {
              "name": "Min",
              "anchor": "Number.Min",
              "recv": "Number",
              "decl": "func (n Number) Min(o Number) Number",
              "doc": "Min returns the smaller of n and o.\n",
              "file": "pkg/idle/number.go",
              "line": 344
            },
            {
              "name": "Mul",
              "anchor": "Number.Mul",
              "recv": "Number",
              "decl": "func (n Number) Mul(o Number) Number",
              "doc": "Mul returns n × o.\n",
              "file": "pkg/idle/number.go",
              "line": 248
            },
            {
              "name": "Neg",
              "anchor": "Number.Neg",
              "recv": "Number",
              "decl": "func (n Number) Neg() Number",
              "doc": "Neg returns -n.\n",
              "file": "pkg/idle/number.go",
              "line": 208
            },
            {
              "name": "Pow",
              "anchor": "Number.Pow",
              "recv": "Number",
              "decl": "func (n Number) Pow(k int64) Number",
              "doc": "Pow returns n raised to the integer power k by repeated squaring, so geometric costs such as base × growth^owned come out the same on every platform. Pow(0) is 1; a negative k returns 1 / n^-k and panics if n is zero.\n",
              "file": "pkg/idle/number.go",
              "line": 284
            },
            {
              "name": "Scale",
              "anchor": "Number.Scale",
              "recv": "Number",
              "decl": "func (n Number) Scale(f float64) Number",
              "doc": "Scale returns n × f. It panics if f is NaN or infinite.\n",
              "file": "pkg/idle/number.go",
              "line": 281
            },
            {
              "name": "Sign",
              "anchor": "Number.Sign",
              "recv": "Number",
              "decl": "func (n Number) Sign() int",
              "doc": "Sign returns -1, 0 or +1 as n is negative, zero or positive.\n",
              "file": "pkg/idle/number.go",
              "line": 197
            },
            {
              "name": "String",
              "anchor": "Number.String",
              "recv": "Number",
              "decl": "func (n Number) String() string",
              "doc": "String returns n's canonical text: positional for exponents from -6 to 20 (\"1500\", \"0.25\"), otherwise scientific with the shortest mantissa that reads back exactly (\"1.23e45\", \"-4e-9\"). Parse of the text returns n.\n",
              "file": "pkg/idle/number.go",
              "line": 423
            },
            {
              "name": "Sub",
              "anchor": "Number.Sub",
              "recv": "Number",
              "decl": "func (n Number) Sub(o Number) Number",
              "doc": "Sub returns n - o.\n",
              "file": "pkg/idle/number.go",
              "line": 245
            },
            {
              "name": "UnmarshalJSON",
              "anchor": "Number.UnmarshalJSON",
              "recv": "*Number",
              "decl": "func (n *Number) UnmarshalJSON(data []byte) error",
              "doc": "UnmarshalJSON implements json.Unmarshaler. It accepts the string MarshalText writes and also a JSON number, so a person can type 1500 for a Number field in a JSON data file; null leaves n unchanged, as encoding/json does for other types.\n",
              "file": "pkg/idle/number.go",
              "line": 483
            },
            {
              "name": "UnmarshalText",
              "anchor": "Number.UnmarshalText",
              "recv": "*Number",
              "decl": "func (n *Number) UnmarshalText(text []byte) error",
              "doc": "UnmarshalText implements encoding.TextUnmarshaler with Parse.\n",
              "file": "pkg/idle/number.go",
              "line": 473
            }
          ]
        },
        {
          "name": "Offline",
          "anchor": "Offline",
          "decl": "type Offline struct {\n\t// Cap is the longest absence credited; 0 means no cap.\n\tCap time.Duration\n\t// Min is the shortest absence credited; a shorter one credits nothing. It must not exceed a non-zero Cap, since an absence between Cap and Min would then credit nothing while a longer one credits Cap.\n\tMin time.Duration\n\t// Efficiency is the fraction of the online rate earned while away, such as 0.5 for half; 0 means 1, the full rate.\n\tEfficiency float64\n}",
          "doc": "Offline credits the time a player spent away from the game, measured between two wall-clock timestamps: the last-seen time a game stores in its save and the time it starts again or returns from the background.\n\nThe zero Offline credits every absence in full. A game usually sets Cap, so returning after a month pays no more than, say, eight hours, and Min, so a quick app switch is not an \"offline\" event.\n",
          "file": "pkg/idle/offline.go",
          "line": 11,
          "members": [
            {
              "name": "Cap",
              "anchor": "Offline.Cap",
              "kind": "field",
              "doc": "Cap is the longest absence credited; 0 means no cap."
            },
            {
              "name": "Min",
              "anchor": "Offline.Min",
              "kind": "field",
              "doc": "Min is the shortest absence credited; a shorter one credits nothing. It must not exceed a non-zero Cap, since an absence between Cap and Min would then credit nothing while a longer one credits Cap."
            },
            {
              "name": "Efficiency",
              "anchor": "Offline.Efficiency",
              "kind": "field",
              "doc": "Efficiency is the fraction of the online rate earned while away, such as 0.5 for half; 0 means 1, the full rate."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Absence",
              "anchor": "Offline.Absence",
              "recv": "Offline",
              "decl": "func (o Offline) Absence(last, now time.Time) Away",
              "doc": "Absence measures the time between last and now and applies Min and Cap. A zero last, as on a first launch, credits nothing. Monotonic clock readings are dropped so the difference is wall-clock time, which keeps running while the device sleeps and is what a saved timestamp holds. It panics if Cap or Min is negative, Min is above a non-zero Cap, or Efficiency is negative or not finite.\n",
              "file": "pkg/idle/offline.go",
              "line": 35
            },
            {
              "name": "Earn",
              "anchor": "Offline.Earn",
              "recv": "Offline",
              "decl": "func (o Offline) Earn(rate Number, last, now time.Time) (Number, Away)",
              "doc": "Earn returns what rate, an amount per second, yields over the absence between last and now: rate × the credited seconds × Efficiency. It panics if Cap or Min is negative, Min is above a non-zero Cap, or Efficiency is negative or not finite.\n",
              "file": "pkg/idle/offline.go",
              "line": 57
            }
          ]
        },
        {
          "name": "Unit",
          "anchor": "Unit",
          "decl": "type Unit struct {\n\t// Exp is the unit's power of ten, such as 3 for K or 4 for 万.\n\tExp int `yaml:\"exp\"`\n\t// Suffix follows the scaled digits, such as \"K\", \"万\" or \" million\".\n\tSuffix string `yaml:\"suffix\"`\n}",
          "doc": "Unit is one Short notation unit: a value of at least 10^Exp is shown divided by 10^Exp and followed by Suffix.\n",
          "file": "pkg/idle/locale.go",
          "line": 52,
          "members": [
            {
              "name": "Exp",
              "anchor": "Unit.Exp",
              "kind": "field",
              "doc": "Exp is the unit's power of ten, such as 3 for K or 4 for 万."
            },
            {
              "name": "Suffix",
              "anchor": "Unit.Suffix",
              "kind": "field",
              "doc": "Suffix follows the scaled digits, such as \"K\", \"万\" or \" million\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/input",
      "name": "input",
      "dir": "pkg/input",
      "page": "pkg/input",
      "synopsis": "Package input turns touch regions, mouse buttons, relative mouse motion under a pointer lock, keyboard keys, game controller buttons and sticks, and device motion sensors into named actions and axes sampled once per game.Loop step, saves bindings in core.Storage across launches, and plays haptic and rumble feedback.",
      "doc": "Package input turns touch regions, mouse buttons, relative mouse motion under a pointer lock, keyboard keys, game controller buttons and sticks, and device motion sensors into named actions and axes sampled once per game.Loop step, saves bindings in core.Storage across launches, and plays haptic and rumble feedback.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultGamepadDeadZone",
              "anchor": "DefaultGamepadDeadZone"
            }
          ],
          "decl": "const DefaultGamepadDeadZone = 0.15",
          "doc": "DefaultGamepadDeadZone is the stick dead zone GamepadAxisOptions uses when its DeadZone is 0: stick deflections up to this magnitude read 0.\n",
          "file": "pkg/input/gamepad.go",
          "line": 14
        }
      ],
      "vars": [],
      "funcs": [],
      "types": [
        {
          "name": "Actions",
          "anchor": "Actions",
          "decl": "type Actions struct {\n\t// MapPoint, when set, transforms a touch or mouse position from the view's coordinates before testing TouchRegion and MouseRegion bounds, such as mapping a view to a letterboxed virtual canvas. Returning false ignores the point for region tests.\n\tMapPoint func(core.Point) (core.Point, bool)\n\t// contains filtered or unexported fields\n}",
          "doc": "Actions maps touch regions, mouse buttons, relative mouse motion under a pointer lock, keyboard keys and game controllers to named actions and axes, sampled once per fixed game.Loop step.\n\nCall Attach on the game's view (or forward events to OnTouch, OnPressDown, OnPressUp, OnMouseMove, OnMouseLeave, OnContextMenu, OnPointerDelta, OnKeyDown and OnKeyUp), call WatchKeys to hear the keys held anywhere on the window, call WatchGamepads to read game controllers, and call Step at the start of each Loop.Update. Between steps, Pressed, JustPressed, JustReleased and Axis report that step's snapshot. A quick tap that starts and ends between two steps is latched so it still registers for one step.\n\nThe zero value is ready to use. Actions' methods are called on the engine's goroutine, as core.View's callbacks and Loop.Update are.\n",
          "file": "pkg/input/input.go",
          "line": 72,
          "members": [
            {
              "name": "MapPoint",
              "anchor": "Actions.MapPoint",
              "kind": "field",
              "doc": "MapPoint, when set, transforms a touch or mouse position from the view's coordinates before testing TouchRegion and MouseRegion bounds, such as mapping a view to a letterboxed virtual canvas. Returning false ignores the point for region tests."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewActions",
              "anchor": "NewActions",
              "decl": "func NewActions() *Actions",
              "doc": "NewActions returns an Actions with no bindings.\n",
              "file": "pkg/input/input.go",
              "line": 132
            }
          ],
          "methods": [
            {
              "name": "ActionNames",
              "anchor": "Actions.ActionNames",
              "recv": "*Actions",
              "decl": "func (a *Actions) ActionNames() []string",
              "doc": "ActionNames returns the sorted names of all actions bound, referenced by axes or virtual pads, or currently active or injected on a.\n",
              "file": "pkg/input/input.go",
              "line": 259
            },
            {
              "name": "Attach",
              "anchor": "Actions.Attach",
              "recv": "*Actions",
              "decl": "func (a *Actions) Attach(v *core.View)",
              "doc": "Attach wires a's touch, press, mouse, context-menu, pointer-lock motion and key handlers onto v, chaining any callbacks already set on v. v hears keys only while it has the keyboard focus; WatchKeys hears them anywhere on the window. A key held as v leaves the tree stays held until Reset, as OnKeyUp says.\n",
              "file": "pkg/input/input.go",
              "line": 650
            },
            {
              "name": "AttachMotion",
              "anchor": "Actions.AttachMotion",
              "recv": "*Actions",
              "decl": "func (a *Actions) AttachMotion(m *MotionInput)",
              "doc": "AttachMotion connects m as the motion sample source for a's motion axes.\nPassing nil detaches any existing MotionInput without stopping it.\n",
              "file": "pkg/input/motion.go",
              "line": 462
            },
            {
              "name": "Axis",
              "anchor": "Actions.Axis",
              "recv": "*Actions",
              "decl": "func (a *Actions) Axis(name string) float64",
              "doc": "Axis returns the value of name in [-1, 1] for the current step.\n\nFor an axis bound with BindAxis, its negative action contributes -1 and its positive action contributes +1.\nFor an axis bound with BindMotionAxis, the calibrated and dead-zoned motion reading contributes a value in [-1, 1].\nFor an axis bound with BindPointerAxis, the step's scaled relative mouse motion contributes, as Delta reads it.\nFor an axis bound with BindGamepadAxis, the dead-zoned stick reading of the controllers a reads contributes a value in [-1, 1].\nAn analog value from a VirtualPad stick bound to the same axis name is added too, as is any injected value set with SetAxis.\nWhen more than one is bound to the same axis name, their contributions are summed and clamped to [-1, 1].\nOtherwise Axis returns 1 when action name is pressed and 0 when it is not.\n",
              "file": "pkg/input/input.go",
              "line": 512
            },
            {
              "name": "AxisBinding",
              "anchor": "Actions.AxisBinding",
              "recv": "*Actions",
              "decl": "func (a *Actions) AxisBinding(name string) (negative, positive string, ok bool)",
              "doc": "AxisBinding returns the negative and positive action names bound to axis name.\n",
              "file": "pkg/input/input.go",
              "line": 191
            },
            {
              "name": "AxisNames",
              "anchor": "Actions.AxisNames",
              "recv": "*Actions",
              "decl": "func (a *Actions) AxisNames() []string",
              "doc": "AxisNames returns the sorted names of all axes bound or injected on a.\n",
              "file": "pkg/input/input.go",
              "line": 310
            },
            {
              "name": "Bind",
              "anchor": "Actions.Bind",
              "recv": "*Actions",
              "decl": "func (a *Actions) Bind(name string, inputs ...Input)",
              "doc": "Bind binds name to inputs, replacing any previous inputs for name. Calling Bind with no inputs unbinds name. A key name is lowercased, as Key does, so Bindings returns it lowercased.\n",
              "file": "pkg/input/input.go",
              "line": 137
            },
            {
              "name": "BindAxis",
              "anchor": "Actions.BindAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) BindAxis(name, negative, positive string)",
              "doc": "BindAxis binds axis name to two opposite actions: negative drives it toward -1 and positive toward +1. Calling BindAxis with two empty names unbinds the axis.\n",
              "file": "pkg/input/input.go",
              "line": 174
            },
            {
              "name": "BindGamepadAxis",
              "anchor": "Actions.BindGamepadAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) BindGamepadAxis(name string, axis gamepad.Axis, opts GamepadAxisOptions)",
              "doc": "BindGamepadAxis binds axis name to a stick axis of the game controllers a reads, mapped into [-1, 1] with opts' dead zone and sensitivity. An axis outside the W3C Standard Gamepad layout unbinds the gamepad axis for name.\n\nA gamepad axis may share a name with an axis bound with BindAxis, BindMotionAxis or a VirtualPad stick; Actions.Axis sums all of them and clamps the result to [-1, 1].\n",
              "file": "pkg/input/gamepad.go",
              "line": 86
            },
            {
              "name": "BindMotionAxis",
              "anchor": "Actions.BindMotionAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) BindMotionAxis(name string, axis MotionAxis, opts MotionAxisOptions)",
              "doc": "BindMotionAxis binds axis name on a to a tilt or gyroscope axis with opts.\nCalling BindMotionAxis with MotionAxisNone unbinds the motion axis for name.\nA motion axis may share a name with an opposite-action axis bound via BindAxis;\nActions.Axis sums both contributions and clamps the result to [-1, 1].\n",
              "file": "pkg/input/motion.go",
              "line": 435
            },
            {
              "name": "BindPointerAxis",
              "anchor": "Actions.BindPointerAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) BindPointerAxis(name string, axis PointerAxis, opts PointerAxisOptions)",
              "doc": "BindPointerAxis binds axis name on a to relative mouse motion along axis while the game holds the pointer lock, scaled by opts. Calling BindPointerAxis with PointerAxisNone unbinds the pointer axis for name.\n\nRead the motion with Delta for mouselook, where a fast flick must turn the camera further than a slow one, or with Axis, which adds it to any other axis bound to name and clamps the sum to [-1, 1].\n",
              "file": "pkg/input/pointer.go",
              "line": 96
            },
            {
              "name": "BindVirtualPad",
              "anchor": "Actions.BindVirtualPad",
              "recv": "*Actions",
              "decl": "func (a *Actions) BindVirtualPad(pad *VirtualPad)",
              "doc": "BindVirtualPad connects pad to a so its virtual buttons drive their bound actions and its virtual sticks drive their named axes on each Step.\n",
              "file": "pkg/input/input.go",
              "line": 358
            },
            {
              "name": "Bindings",
              "anchor": "Actions.Bindings",
              "recv": "*Actions",
              "decl": "func (a *Actions) Bindings(name string) []Input",
              "doc": "Bindings returns a copy of the inputs currently bound to name, or nil if name is unbound.\n",
              "file": "pkg/input/input.go",
              "line": 165
            },
            {
              "name": "CalibrateMotion",
              "anchor": "Actions.CalibrateMotion",
              "recv": "*Actions",
              "decl": "func (a *Actions) CalibrateMotion()",
              "doc": "CalibrateMotion captures the current tilt reading as the neutral hold angle on a's MotionInput.\n",
              "file": "pkg/input/motion.go",
              "line": 497
            },
            {
              "name": "ClearAxis",
              "anchor": "Actions.ClearAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) ClearAxis(name string)",
              "doc": "ClearAxis removes an injected analog contribution previously set with SetAxis for axis name.\n",
              "file": "pkg/input/input.go",
              "line": 254
            },
            {
              "name": "Delta",
              "anchor": "Actions.Delta",
              "recv": "*Actions",
              "decl": "func (a *Actions) Delta(name string) float64",
              "doc": "Delta returns the relative motion of pointer axis name for the current step: the motion heard since the previous Step along its axis, scaled by Sensitivity and negated by Invert, without a clamp. It reads 0 when no pointer axis is bound to name.\n",
              "file": "pkg/input/pointer.go",
              "line": 169
            },
            {
              "name": "GamepadAxisBinding",
              "anchor": "Actions.GamepadAxisBinding",
              "recv": "*Actions",
              "decl": "func (a *Actions) GamepadAxisBinding(name string) (gamepad.Axis, GamepadAxisOptions, bool)",
              "doc": "GamepadAxisBinding returns the stick axis and options bound to name with BindGamepadAxis.\n",
              "file": "pkg/input/gamepad.go",
              "line": 105
            },
            {
              "name": "Gamepads",
              "anchor": "Actions.Gamepads",
              "recv": "*Actions",
              "decl": "func (a *Actions) Gamepads() []gamepad.Pad",
              "doc": "Gamepads returns a copy of the controller state a last read, sorted by controller ID.\n",
              "file": "pkg/input/gamepad.go",
              "line": 60
            },
            {
              "name": "JustPressed",
              "anchor": "Actions.JustPressed",
              "recv": "*Actions",
              "decl": "func (a *Actions) JustPressed(name string) bool",
              "doc": "JustPressed reports whether name became pressed on the current step and was not pressed on the previous step.\n",
              "file": "pkg/input/input.go",
              "line": 494
            },
            {
              "name": "JustReleased",
              "anchor": "Actions.JustReleased",
              "recv": "*Actions",
              "decl": "func (a *Actions) JustReleased(name string) bool",
              "doc": "JustReleased reports whether name was pressed on the previous step and is no longer pressed on the current step.\n",
              "file": "pkg/input/input.go",
              "line": 499
            },
            {
              "name": "Load",
              "anchor": "Actions.Load",
              "recv": "*Actions",
              "decl": "func (a *Actions) Load(store core.Storage, key string) (bool, error)",
              "doc": "Load replaces a's action and axis bindings with those saved in store under key, and reports whether key was present.\n\nWhen key is absent, Load leaves a's existing bindings as they are and returns false, nil. When the stored value is invalid JSON, has a field Load does not know or uses an unknown format, Load leaves a's bindings untouched and returns false and an error: a *loaderr.Error that names key as its file, with the line and field of the problem and how to fix it.\n",
              "file": "pkg/input/storage.go",
              "line": 145
            },
            {
              "name": "LockPointer",
              "anchor": "Actions.LockPointer",
              "recv": "*Actions",
              "decl": "func (a *Actions) LockPointer(cx *core.Scope, ref *core.Ref) bool",
              "doc": "LockPointer asks the platform to hide the pointer and keep it in place while the view ref names hears relative motion, which Attach forwards to a's pointer axes. It reports whether it made the request: false with a nil scope or ref, a view that has been removed, or a surface without the lock, as cx.Env().CanLockPointer reports. NSGo may still decline a request for a view that is not placed in the tree, such as one inside a held subtree, without telling the app.\n\nCall it from every press on that view, whether or not a lock was requested before: browsers lock only during a user gesture, and locking again replaces the previous lock. Escape, the window losing focus and hiding or removing the view release the lock as the platform decides, and NSGo does not tell the app, so the next press is the way to resume.\n",
              "file": "pkg/input/pointer.go",
              "line": 124
            },
            {
              "name": "Motion",
              "anchor": "Actions.Motion",
              "recv": "*Actions",
              "decl": "func (a *Actions) Motion() *MotionInput",
              "doc": "Motion returns the MotionInput currently attached to a, or nil if none is attached.\n",
              "file": "pkg/input/motion.go",
              "line": 474
            },
            {
              "name": "MotionAxisBinding",
              "anchor": "Actions.MotionAxisBinding",
              "recv": "*Actions",
              "decl": "func (a *Actions) MotionAxisBinding(name string) (MotionAxis, MotionAxisOptions, bool)",
              "doc": "MotionAxisBinding returns the motion axis and options bound to name.\n",
              "file": "pkg/input/motion.go",
              "line": 455
            },
            {
              "name": "OnContextMenu",
              "anchor": "Actions.OnContextMenu",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnContextMenu(ev core.ContextMenuEvent)",
              "doc": "OnContextMenu records a secondary (right) click from a view's OnContextMenu callback as a single-step pulse of core.MouseButtonRight at ev.Position.\n",
              "file": "pkg/input/input.go",
              "line": 640
            },
            {
              "name": "OnGamepads",
              "anchor": "Actions.OnGamepads",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnGamepads(pads []gamepad.Pad)",
              "doc": "OnGamepads replaces the controller state a reads with pads, such as recorded or synthetic controllers in a unit test or an input replay, and latches any button that became pressed so it registers on the next Step even if it is released before then.\n\nWhile WatchGamepads has a scope attached, the next Step replaces pads with the live controllers.\n",
              "file": "pkg/input/gamepad.go",
              "line": 54
            },
            {
              "name": "OnKeyDown",
              "anchor": "Actions.OnKeyDown",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnKeyDown(ev core.KeyEvent) bool",
              "doc": "OnKeyDown records a key going down from a view's OnKeyDown callback and reports whether an action is bound to it, which consumes the key so the keymap's bindings and the view's own Return and Space do not take it as well. A held key's auto-repeat changes nothing, and neither does the repeat of a key that went down before the view had the focus, whose coming up the view does not hear.\n",
              "file": "pkg/input/keys.go",
              "line": 35
            },
            {
              "name": "OnKeyUp",
              "anchor": "Actions.OnKeyUp",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnKeyUp(ev core.KeyEvent)",
              "doc": "OnKeyUp records a key coming up from a view's OnKeyUp callback. NSGo sends it for a key that went down while the view had the keyboard focus, wherever the focus has gone since, and for every key still held as the window loses the keyboard focus, so no key stays held. It does not send it once the view has left the tree, so a key held as the attached view is removed stays held until Reset; call Reset when the game view is replaced, or use WatchKeys, which has no such view.\n",
              "file": "pkg/input/keys.go",
              "line": 49
            },
            {
              "name": "OnMotion",
              "anchor": "Actions.OnMotion",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnMotion(sample core.MotionSample)",
              "doc": "OnMotion feeds a core.MotionSample directly into a's attached MotionInput (creating one lazily\nif none is attached). Useful for deterministic unit tests and input replays.\n",
              "file": "pkg/input/motion.go",
              "line": 492
            },
            {
              "name": "OnMouseLeave",
              "anchor": "Actions.OnMouseLeave",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnMouseLeave(ev core.MouseEvent)",
              "doc": "OnMouseLeave clears held mouse buttons when the pointer leaves the view.\n",
              "file": "pkg/input/input.go",
              "line": 631
            },
            {
              "name": "OnMouseMove",
              "anchor": "Actions.OnMouseMove",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnMouseMove(ev core.MouseEvent)",
              "doc": "OnMouseMove records mouse movement and any held button from a view's OnMouseMove callback.\n",
              "file": "pkg/input/input.go",
              "line": 619
            },
            {
              "name": "OnPointerDelta",
              "anchor": "Actions.OnPointerDelta",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnPointerDelta(dx, dy float64)",
              "doc": "OnPointerDelta records relative motion, right and down, from a view's OnPointerDelta callback, which NSGo calls only while that view holds the pointer lock. Motion adds up until the next Step; a value that is not finite is ignored.\n",
              "file": "pkg/input/pointer.go",
              "line": 152
            },
            {
              "name": "OnPressDown",
              "anchor": "Actions.OnPressDown",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnPressDown(ev core.PressEvent)",
              "doc": "OnPressDown records a primary pointer press from a view's OnPressDown callback. Keyboard presses and presses synthesized while a touch finger is active are ignored so touches only trigger TouchRegion bindings.\n",
              "file": "pkg/input/input.go",
              "line": 595
            },
            {
              "name": "OnPressUp",
              "anchor": "Actions.OnPressUp",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnPressUp(ev core.PressEvent)",
              "doc": "OnPressUp records a primary pointer release from a view's OnPressUp callback.\n",
              "file": "pkg/input/input.go",
              "line": 606
            },
            {
              "name": "OnTouch",
              "anchor": "Actions.OnTouch",
              "recv": "*Actions",
              "decl": "func (a *Actions) OnTouch(ev core.TouchEvent)",
              "doc": "OnTouch records a touch event from a view's OnTouch callback.\n",
              "file": "pkg/input/input.go",
              "line": 554
            },
            {
              "name": "PointerAxisBinding",
              "anchor": "Actions.PointerAxisBinding",
              "recv": "*Actions",
              "decl": "func (a *Actions) PointerAxisBinding(name string) (PointerAxis, PointerAxisOptions, bool)",
              "doc": "PointerAxisBinding returns the pointer axis and options bound to name.\n",
              "file": "pkg/input/pointer.go",
              "line": 116
            },
            {
              "name": "PointerDelta",
              "anchor": "Actions.PointerDelta",
              "recv": "*Actions",
              "decl": "func (a *Actions) PointerDelta() (dx, dy float64)",
              "doc": "PointerDelta returns the relative mouse motion, right and down, heard between the previous Step and the current one, unscaled.\n",
              "file": "pkg/input/pointer.go",
              "line": 164
            },
            {
              "name": "PointerLockRequested",
              "anchor": "Actions.PointerLockRequested",
              "recv": "*Actions",
              "decl": "func (a *Actions) PointerLockRequested() bool",
              "doc": "PointerLockRequested reports whether a holds a request from LockPointer that UnlockPointer has not released. It is not the platform's lock state: Escape, the window losing focus and hiding the view release the lock without NSGo telling the app, and the request stays. Do not use it to decide whether to call LockPointer again or whether the player is still looking around.\n\nNSGo reports the release to its core (driver.EventPointerUnlocked) but exposes no callback or query to apps, so this package cannot report the real state (nsgo-dev/nsgo#2249).\n",
              "file": "pkg/input/pointer.go",
              "line": 147
            },
            {
              "name": "Press",
              "anchor": "Actions.Press",
              "recv": "*Actions",
              "decl": "func (a *Actions) Press(name string)",
              "doc": "Press holds action name pressed across subsequent Step calls until Release or Reset is called, even if name has no physical Input bindings.\nLike physical input, a Press followed by Release between two Step calls is latched so it still registers for one step.\n",
              "file": "pkg/input/input.go",
              "line": 209
            },
            {
              "name": "Pressed",
              "anchor": "Actions.Pressed",
              "recv": "*Actions",
              "decl": "func (a *Actions) Pressed(name string) bool",
              "doc": "Pressed reports whether name is held during the current step.\n",
              "file": "pkg/input/input.go",
              "line": 489
            },
            {
              "name": "Release",
              "anchor": "Actions.Release",
              "recv": "*Actions",
              "decl": "func (a *Actions) Release(name string)",
              "doc": "Release ends an injected hold started by Press for action name.\n",
              "file": "pkg/input/input.go",
              "line": 231
            },
            {
              "name": "Reset",
              "anchor": "Actions.Reset",
              "recv": "*Actions",
              "decl": "func (a *Actions) Reset()",
              "doc": "Reset clears active touches, held mouse buttons, held keys, the last game controller state read, pending latches, motion readings, relative mouse motion and the current step snapshot, keeping all action, axis and calibration settings and any pointer lock, so mouselook survives a scene change; a game controller button held across Reset stays inactive until it is released, as a held mouse button does. UnlockPointer releases the lock. Call it on focus loss, backgrounding or a scene change so no action stays stuck.\n",
              "file": "pkg/input/input.go",
              "line": 461
            },
            {
              "name": "ResetMotionCalibration",
              "anchor": "Actions.ResetMotionCalibration",
              "recv": "*Actions",
              "decl": "func (a *Actions) ResetMotionCalibration()",
              "doc": "ResetMotionCalibration clears any neutral tilt offset on a's MotionInput.\n",
              "file": "pkg/input/motion.go",
              "line": 502
            },
            {
              "name": "Save",
              "anchor": "Actions.Save",
              "recv": "*Actions",
              "decl": "func (a *Actions) Save(store core.Storage, key string) error",
              "doc": "Save writes all of a's action, axis, motion axis, pointer axis and game controller stick axis bindings as JSON into store under key. It fails with *core.StorageFullError when the storage is full.\n",
              "file": "pkg/input/storage.go",
              "line": 70
            },
            {
              "name": "SelectAnyGamepad",
              "anchor": "Actions.SelectAnyGamepad",
              "recv": "*Actions",
              "decl": "func (a *Actions) SelectAnyGamepad()",
              "doc": "SelectAnyGamepad makes a read every connected controller again: a button is pressed when it is pressed on any of them, and a stick axis takes the reading farthest from center.\n",
              "file": "pkg/input/gamepad.go",
              "line": 72
            },
            {
              "name": "SelectGamepad",
              "anchor": "Actions.SelectGamepad",
              "recv": "*Actions",
              "decl": "func (a *Actions) SelectGamepad(id int)",
              "doc": "SelectGamepad makes a read only the controller with ID id, such as one player's controller in a local multiplayer game with one Actions per player. By default a reads every connected controller.\n",
              "file": "pkg/input/gamepad.go",
              "line": 65
            },
            {
              "name": "SelectedGamepad",
              "anchor": "Actions.SelectedGamepad",
              "recv": "*Actions",
              "decl": "func (a *Actions) SelectedGamepad() (id int, ok bool)",
              "doc": "SelectedGamepad returns the controller ID chosen with SelectGamepad, and false when a reads every controller.\n",
              "file": "pkg/input/gamepad.go",
              "line": 79
            },
            {
              "name": "SetAxis",
              "anchor": "Actions.SetAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) SetAxis(name string, value float64)",
              "doc": "SetAxis sets an injected analog contribution in [-1, 1] for axis name, sampled on each subsequent Step until ClearAxis or Reset is called.\nNon-finite (NaN) values are ignored; values outside [-1, 1] are clamped.\n",
              "file": "pkg/input/input.go",
              "line": 243
            },
            {
              "name": "Step",
              "anchor": "Actions.Step",
              "recv": "*Actions",
              "decl": "func (a *Actions) Step()",
              "doc": "Step samples the current input state into the step snapshot. Call it once at the start of each game.Loop.Update step.\n",
              "file": "pkg/input/input.go",
              "line": 384
            },
            {
              "name": "Trigger",
              "anchor": "Actions.Trigger",
              "recv": "*Actions",
              "decl": "func (a *Actions) Trigger(name string)",
              "doc": "Trigger latches action name so it registers as pressed on the next Step call, even if name has no physical Input bindings.\n",
              "file": "pkg/input/input.go",
              "line": 197
            },
            {
              "name": "Unbind",
              "anchor": "Actions.Unbind",
              "recv": "*Actions",
              "decl": "func (a *Actions) Unbind(name string)",
              "doc": "Unbind removes all inputs bound to name.\n",
              "file": "pkg/input/input.go",
              "line": 158
            },
            {
              "name": "UnbindAxis",
              "anchor": "Actions.UnbindAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) UnbindAxis(name string)",
              "doc": "UnbindAxis removes the axis binding for name.\n",
              "file": "pkg/input/input.go",
              "line": 186
            },
            {
              "name": "UnbindGamepadAxis",
              "anchor": "Actions.UnbindGamepadAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) UnbindGamepadAxis(name string)",
              "doc": "UnbindGamepadAxis removes the gamepad axis binding for name.\n",
              "file": "pkg/input/gamepad.go",
              "line": 99
            },
            {
              "name": "UnbindMotionAxis",
              "anchor": "Actions.UnbindMotionAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) UnbindMotionAxis(name string)",
              "doc": "UnbindMotionAxis removes the motion axis binding for name.\n",
              "file": "pkg/input/motion.go",
              "line": 448
            },
            {
              "name": "UnbindPointerAxis",
              "anchor": "Actions.UnbindPointerAxis",
              "recv": "*Actions",
              "decl": "func (a *Actions) UnbindPointerAxis(name string)",
              "doc": "UnbindPointerAxis removes the pointer axis binding for name.\n",
              "file": "pkg/input/pointer.go",
              "line": 111
            },
            {
              "name": "UnbindVirtualPad",
              "anchor": "Actions.UnbindVirtualPad",
              "recv": "*Actions",
              "decl": "func (a *Actions) UnbindVirtualPad(pad *VirtualPad)",
              "doc": "UnbindVirtualPad disconnects pad from a.\n",
              "file": "pkg/input/input.go",
              "line": 370
            },
            {
              "name": "UnlockPointer",
              "anchor": "Actions.UnlockPointer",
              "recv": "*Actions",
              "decl": "func (a *Actions) UnlockPointer()",
              "doc": "UnlockPointer releases a lock LockPointer requested, so the platform shows the pointer again where it was. Motion heard before the release still reaches the next Step. It does nothing when a holds no request, or when the platform has already released the lock.\n",
              "file": "pkg/input/pointer.go",
              "line": 137
            },
            {
              "name": "WatchGamepads",
              "anchor": "Actions.WatchGamepads",
              "recv": "*Actions",
              "decl": "func (a *Actions) WatchGamepads(cx *core.Scope)",
              "doc": "WatchGamepads makes a read the game controllers connected to cx's app on every Step with gamepad.Pads, so GamepadButton inputs and BindGamepadAxis axes follow the physical controllers on every target that supports them.\n\nStep reads the controllers' state as of the current display frame, so call Step from game.Loop.Update as usual. A press and release that both happen between two Step calls are not seen. Reading stops once cx is disposed, and while cx's core.Access refuses core.AccessGamepad no controller is read. Passing nil stops reading and releases every controller input.\n",
              "file": "pkg/input/gamepad.go",
              "line": 43
            },
            {
              "name": "WatchKeys",
              "anchor": "Actions.WatchKeys",
              "recv": "*Actions",
              "decl": "func (a *Actions) WatchKeys(cx *core.Scope) (stop func())",
              "doc": "WatchKeys has a hear the keys held anywhere on cx's window, whichever view has the keyboard focus, until cx is disposed or stop is called, which releases the keys it heard. A key held as Reset is called counts as released until it comes up and goes down again, as it does for a focused view. It follows core.KeysDown and core.KeyCodesDown, so keys typed into a text input or composed by an input method are never held, and every held key comes up as the window loses the keyboard focus. Call it once, from the scope that runs the game.Loop.\n",
              "file": "pkg/input/keys.go",
              "line": 66
            },
            {
              "name": "WatchMotion",
              "anchor": "Actions.WatchMotion",
              "recv": "*Actions",
              "decl": "func (a *Actions) WatchMotion(cx *core.Scope, opts MotionOptions) (*MotionInput, error)",
              "doc": "WatchMotion creates a MotionInput with opts, starts watching device motion sensors on cx,\nattaches it to a, and returns it. Any previously attached stream on a's internal MotionInput\nis replaced (not stopped if owned externally). The new stream stops automatically when cx is disposed.\n",
              "file": "pkg/input/motion.go",
              "line": 481
            }
          ]
        },
        {
          "name": "DeviceKind",
          "anchor": "DeviceKind",
          "decl": "type DeviceKind uint8",
          "doc": "DeviceKind identifies the input device class the player last used.\n",
          "file": "pkg/input/prompts.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DeviceUnknown",
                  "anchor": "DeviceUnknown"
                },
                {
                  "name": "DeviceTouch",
                  "anchor": "DeviceTouch"
                },
                {
                  "name": "DeviceMouse",
                  "anchor": "DeviceMouse"
                },
                {
                  "name": "DeviceKeyboard",
                  "anchor": "DeviceKeyboard"
                },
                {
                  "name": "DeviceGamepadXbox",
                  "anchor": "DeviceGamepadXbox"
                },
                {
                  "name": "DeviceGamepadPlayStation",
                  "anchor": "DeviceGamepadPlayStation"
                },
                {
                  "name": "DeviceGamepadNintendo",
                  "anchor": "DeviceGamepadNintendo"
                },
                {
                  "name": "DeviceGamepadGeneric",
                  "anchor": "DeviceGamepadGeneric"
                }
              ],
              "decl": "const (\n\tDeviceUnknown DeviceKind = iota\n\tDeviceTouch\n\tDeviceMouse\n\tDeviceKeyboard\n\tDeviceGamepadXbox\n\tDeviceGamepadPlayStation\n\tDeviceGamepadNintendo\n\tDeviceGamepadGeneric\n)",
              "doc": "",
              "file": "pkg/input/prompts.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "DetectGamepadKind",
              "anchor": "DetectGamepadKind",
              "decl": "func DetectGamepadKind(name string) DeviceKind",
              "doc": "DetectGamepadKind infers the gamepad brand from a controller name string, falling back to DeviceGamepadGeneric.\n",
              "file": "pkg/input/prompts.go",
              "line": 58
            }
          ],
          "methods": [
            {
              "name": "IsGamepad",
              "anchor": "DeviceKind.IsGamepad",
              "recv": "DeviceKind",
              "decl": "func (d DeviceKind) IsGamepad() bool",
              "doc": "IsGamepad reports whether d is one of the gamepad device kinds.\n",
              "file": "pkg/input/prompts.go",
              "line": 48
            },
            {
              "name": "String",
              "anchor": "DeviceKind.String",
              "recv": "DeviceKind",
              "decl": "func (d DeviceKind) String() string",
              "doc": "String returns a short canonical name for d.\n",
              "file": "pkg/input/prompts.go",
              "line": 24
            }
          ]
        },
        {
          "name": "DeviceTracker",
          "anchor": "DeviceTracker",
          "decl": "type DeviceTracker struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DeviceTracker tracks the player's last-used input device across touch, mouse, keyboard, and gamepad activity.\n\nWhen constructed with NewDeviceTracker(cx, initial) and a non-nil core.Scope, it backs LastDevice with a core.Signal[DeviceKind] so reactive HUD views automatically re-render whenever the player switches devices.\n\nThe zero value is ready to use in non-reactive mode starting at DeviceUnknown.\n",
          "file": "pkg/input/prompts.go",
          "line": 88,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDeviceTracker",
              "anchor": "NewDeviceTracker",
              "decl": "func NewDeviceTracker(cx *core.Scope, initial DeviceKind) *DeviceTracker",
              "doc": "NewDeviceTracker returns a DeviceTracker initialized to initial. When cx is non-nil, it creates a reactive core.Signal[DeviceKind] owned by cx.\n",
              "file": "pkg/input/prompts.go",
              "line": 96
            }
          ],
          "methods": [
            {
              "name": "Attach",
              "anchor": "DeviceTracker.Attach",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) Attach(v *core.View)",
              "doc": "Attach wires t's touch, mouse, press, wheel, and keyboard handlers onto v, chaining any existing callbacks without consuming key events.\n",
              "file": "pkg/input/prompts.go",
              "line": 234
            },
            {
              "name": "LastDevice",
              "anchor": "DeviceTracker.LastDevice",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) LastDevice() DeviceKind",
              "doc": "LastDevice returns the most recently used input device. When t was created with a core.Scope, reading LastDevice subscribes the current reactive computation to device changes.\n",
              "file": "pkg/input/prompts.go",
              "line": 105
            },
            {
              "name": "LastDeviceUntracked",
              "anchor": "DeviceTracker.LastDeviceUntracked",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) LastDeviceUntracked() DeviceKind",
              "doc": "LastDeviceUntracked returns the most recently used input device without subscribing to t's signal.\n",
              "file": "pkg/input/prompts.go",
              "line": 113
            },
            {
              "name": "OnChange",
              "anchor": "DeviceTracker.OnChange",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) OnChange(fn func(DeviceKind))",
              "doc": "OnChange registers fn to run whenever the tracked device changes.\n",
              "file": "pkg/input/prompts.go",
              "line": 126
            },
            {
              "name": "OnContextMenu",
              "anchor": "DeviceTracker.OnContextMenu",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) OnContextMenu(core.ContextMenuEvent)",
              "doc": "OnContextMenu records a secondary mouse click and switches to DeviceMouse.\n",
              "file": "pkg/input/prompts.go",
              "line": 206
            },
            {
              "name": "OnGamepad",
              "anchor": "DeviceTracker.OnGamepad",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) OnGamepad(kind DeviceKind)",
              "doc": "OnGamepad records gamepad activity for kind. Non-gamepad kinds default to DeviceGamepadGeneric.\n",
              "file": "pkg/input/prompts.go",
              "line": 221
            },
            {
              "name": "OnGamepadActivity",
              "anchor": "DeviceTracker.OnGamepadActivity",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) OnGamepadActivity(controllerName string)",
              "doc": "OnGamepadActivity records gamepad activity using a controller name string to infer its brand.\n",
              "file": "pkg/input/prompts.go",
              "line": 229
            },
            {
              "name": "OnKey",
              "anchor": "DeviceTracker.OnKey",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) OnKey(core.KeyEvent)",
              "doc": "OnKey records hardware keyboard activity and switches to DeviceKeyboard.\n",
              "file": "pkg/input/prompts.go",
              "line": 216
            },
            {
              "name": "OnMouseMove",
              "anchor": "DeviceTracker.OnMouseMove",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) OnMouseMove(core.MouseEvent)",
              "doc": "OnMouseMove records mouse pointer movement and switches the active device to DeviceMouse.\n",
              "file": "pkg/input/prompts.go",
              "line": 189
            },
            {
              "name": "OnPressDown",
              "anchor": "DeviceTracker.OnPressDown",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) OnPressDown(ev core.PressEvent)",
              "doc": "OnPressDown records a press event. Keyboard presses switch to DeviceKeyboard; pointer presses switch to DeviceMouse unless synthesized while a touch finger is active.\n",
              "file": "pkg/input/prompts.go",
              "line": 194
            },
            {
              "name": "OnTouch",
              "anchor": "DeviceTracker.OnTouch",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) OnTouch(ev core.TouchEvent)",
              "doc": "OnTouch records touch activity and switches the active device to DeviceTouch.\n",
              "file": "pkg/input/prompts.go",
              "line": 152
            },
            {
              "name": "OnWheel",
              "anchor": "DeviceTracker.OnWheel",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) OnWheel(core.WheelEvent)",
              "doc": "OnWheel records mouse wheel activity and switches to DeviceMouse.\n",
              "file": "pkg/input/prompts.go",
              "line": 211
            },
            {
              "name": "Reset",
              "anchor": "DeviceTracker.Reset",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) Reset()",
              "doc": "Reset clears active touch tracking while keeping the last-used device.\n",
              "file": "pkg/input/prompts.go",
              "line": 147
            },
            {
              "name": "SetDevice",
              "anchor": "DeviceTracker.SetDevice",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) SetDevice(d DeviceKind)",
              "doc": "SetDevice explicitly sets the last-used device and notifies subscribers if it changed.\n",
              "file": "pkg/input/prompts.go",
              "line": 133
            },
            {
              "name": "Signal",
              "anchor": "DeviceTracker.Signal",
              "recv": "*DeviceTracker",
              "decl": "func (t *DeviceTracker) Signal() *core.Signal[DeviceKind]",
              "doc": "Signal returns the reactive signal backing t, or nil if t was created without a core.Scope.\n",
              "file": "pkg/input/prompts.go",
              "line": 121
            }
          ]
        },
        {
          "name": "DisconnectEvent",
          "anchor": "DisconnectEvent",
          "decl": "type DisconnectEvent struct {\n\t// PlayerIndex is the 0-based index of the affected player slot.\n\tPlayerIndex int\n\t// Player is the affected player slot.\n\tPlayer *Player\n\t// PreviousGamepadID is the controller ID that disconnected.\n\tPreviousGamepadID int\n\t// FallbackActive reports whether FallbackToKeyboardTouch enabled keyboard and pointer fallback for this player instead of pausing.\n\tFallbackActive bool\n\t// ShouldPause reports whether the policy requests pausing gameplay for this disconnect.\n\tShouldPause bool\n}",
          "doc": "DisconnectEvent describes a player's assigned game controller disconnecting mid-game.\n",
          "file": "pkg/input/disconnect.go",
          "line": 28,
          "members": [
            {
              "name": "PlayerIndex",
              "anchor": "DisconnectEvent.PlayerIndex",
              "kind": "field",
              "doc": "PlayerIndex is the 0-based index of the affected player slot."
            },
            {
              "name": "Player",
              "anchor": "DisconnectEvent.Player",
              "kind": "field",
              "doc": "Player is the affected player slot."
            },
            {
              "name": "PreviousGamepadID",
              "anchor": "DisconnectEvent.PreviousGamepadID",
              "kind": "field",
              "doc": "PreviousGamepadID is the controller ID that disconnected."
            },
            {
              "name": "FallbackActive",
              "anchor": "DisconnectEvent.FallbackActive",
              "kind": "field",
              "doc": "FallbackActive reports whether FallbackToKeyboardTouch enabled keyboard and pointer fallback for this player instead of pausing."
            },
            {
              "name": "ShouldPause",
              "anchor": "DisconnectEvent.ShouldPause",
              "kind": "field",
              "doc": "ShouldPause reports whether the policy requests pausing gameplay for this disconnect."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DisconnectPolicy",
          "anchor": "DisconnectPolicy",
          "decl": "type DisconnectPolicy struct {\n\t// PauseOnDisconnect requests a pause (via OnPause) whenever at least one player's assigned controller disconnects without an active keyboard/pointer fallback, and requests resume once every disconnected player that caused the pause has recovered or been unassigned.\n\tPauseOnDisconnect bool\n\t// AllowReassignOnPress lets an unassigned connected controller claim the lowest-index player slot awaiting reconnect when a button is newly pressed on that controller.\n\tAllowReassignOnPress bool\n\t// FallbackToKeyboardTouch lets a player whose assigned controller disconnects continue playing via keyboard and pointer/touch without pausing. Players temporarily enables keyboard and pointer routing on that player until a controller reconnects or claims the slot, then restores the player's prior keyboard and pointer assignments.\n\tFallbackToKeyboardTouch bool\n\t// OnPause, when set, is called with true when PauseOnDisconnect pauses gameplay and with false once every disconnected required player has recovered or been unassigned. Pass game.Loop.SetPaused directly to pause and resume a Loop.\n\tOnPause func(paused bool)\n\t// OnDisconnect, when set, is called when a player's previously connected assigned controller disappears from the controller snapshot.\n\tOnDisconnect func(DisconnectEvent)\n\t// OnReconnect, when set, is called when a player awaiting reconnect regains its previous controller or is reassigned to another connected controller (automatically via AllowReassignOnPress or manually via AssignGamepad).\n\tOnReconnect func(ReconnectEvent)\n}",
          "doc": "DisconnectPolicy configures how Players responds when a player's assigned game controller disconnects mid-game and how that player recovers.\n",
          "file": "pkg/input/disconnect.go",
          "line": 12,
          "members": [
            {
              "name": "PauseOnDisconnect",
              "anchor": "DisconnectPolicy.PauseOnDisconnect",
              "kind": "field",
              "doc": "PauseOnDisconnect requests a pause (via OnPause) whenever at least one player's assigned controller disconnects without an active keyboard/pointer fallback, and requests resume once every disconnected player that caused the pause has recovered or been unassigned."
            },
            {
              "name": "AllowReassignOnPress",
              "anchor": "DisconnectPolicy.AllowReassignOnPress",
              "kind": "field",
              "doc": "AllowReassignOnPress lets an unassigned connected controller claim the lowest-index player slot awaiting reconnect when a button is newly pressed on that controller."
            },
            {
              "name": "FallbackToKeyboardTouch",
              "anchor": "DisconnectPolicy.FallbackToKeyboardTouch",
              "kind": "field",
              "doc": "FallbackToKeyboardTouch lets a player whose assigned controller disconnects continue playing via keyboard and pointer/touch without pausing. Players temporarily enables keyboard and pointer routing on that player until a controller reconnects or claims the slot, then restores the player's prior keyboard and pointer assignments."
            },
            {
              "name": "OnPause",
              "anchor": "DisconnectPolicy.OnPause",
              "kind": "field",
              "doc": "OnPause, when set, is called with true when PauseOnDisconnect pauses gameplay and with false once every disconnected required player has recovered or been unassigned. Pass game.Loop.SetPaused directly to pause and resume a Loop."
            },
            {
              "name": "OnDisconnect",
              "anchor": "DisconnectPolicy.OnDisconnect",
              "kind": "field",
              "doc": "OnDisconnect, when set, is called when a player's previously connected assigned controller disappears from the controller snapshot."
            },
            {
              "name": "OnReconnect",
              "anchor": "DisconnectPolicy.OnReconnect",
              "kind": "field",
              "doc": "OnReconnect, when set, is called when a player awaiting reconnect regains its previous controller or is reassigned to another connected controller (automatically via AllowReassignOnPress or manually via AssignGamepad)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GamepadAxisOptions",
          "anchor": "GamepadAxisOptions",
          "decl": "type GamepadAxisOptions struct {\n\t// DeadZone is the stick deflection in [0, 1) below which the axis reads 0; readings beyond it are rescaled so the axis still rises smoothly from 0 to 1. Zero uses DefaultGamepadDeadZone, and a negative value turns the dead zone off.\n\tDeadZone float64\n\t// Axial applies DeadZone to this axis alone instead of to the whole stick. By default the dead zone is radial: it measures the stick's distance from center over both of its axes, so a diagonal push is not snapped to a straight line.\n\tAxial bool\n\t// Sensitivity multiplies the dead-zoned value before clamping to [-1, 1] (1 when <= 0).\n\tSensitivity float64\n\t// Invert negates the resulting axis value, such as to make pushing the stick up read positive on AxisLeftY.\n\tInvert bool\n}",
          "doc": "GamepadAxisOptions configures how one bound stick axis is mapped into [-1, 1].\n",
          "file": "pkg/input/gamepad.go",
          "line": 24,
          "members": [
            {
              "name": "DeadZone",
              "anchor": "GamepadAxisOptions.DeadZone",
              "kind": "field",
              "doc": "DeadZone is the stick deflection in [0, 1) below which the axis reads 0; readings beyond it are rescaled so the axis still rises smoothly from 0 to 1. Zero uses DefaultGamepadDeadZone, and a negative value turns the dead zone off."
            },
            {
              "name": "Axial",
              "anchor": "GamepadAxisOptions.Axial",
              "kind": "field",
              "doc": "Axial applies DeadZone to this axis alone instead of to the whole stick. By default the dead zone is radial: it measures the stick's distance from center over both of its axes, so a diagonal push is not snapped to a straight line."
            },
            {
              "name": "Sensitivity",
              "anchor": "GamepadAxisOptions.Sensitivity",
              "kind": "field",
              "doc": "Sensitivity multiplies the dead-zoned value before clamping to [-1, 1] (1 when <= 0)."
            },
            {
              "name": "Invert",
              "anchor": "GamepadAxisOptions.Invert",
              "kind": "field",
              "doc": "Invert negates the resulting axis value, such as to make pushing the stick up read positive on AxisLeftY."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GestureConfig",
          "anchor": "GestureConfig",
          "decl": "type GestureConfig struct {\n\t// TapMaxDuration is the maximum press duration for GestureTap.\n\tTapMaxDuration time.Duration\n\t// TapMaxDistance is the maximum finger drift in points allowed for GestureTap and GestureLongPress.\n\tTapMaxDistance float32\n\t// DoubleTapMaxInterval is the maximum elapsed time between two taps to recognize GestureDoubleTap.\n\tDoubleTapMaxInterval time.Duration\n\t// DoubleTapMaxDistance is the maximum distance in points between two taps to recognize GestureDoubleTap.\n\tDoubleTapMaxDistance float32\n\t// LongPressDuration is how long a stationary finger must be held to fire GestureLongPress.\n\tLongPressDuration time.Duration\n\t// SwipeMinDistance is the minimum drag distance in points for a directional swipe.\n\tSwipeMinDistance float32\n\t// SwipeMinVelocity is the minimum drag speed in points per second for a directional swipe.\n\tSwipeMinVelocity float32\n\t// PinchMinDelta is the minimum change in two-finger spacing in points to fire GesturePinchIn or GesturePinchOut.\n\tPinchMinDelta float32\n}",
          "doc": "GestureConfig tunes the thresholds used by GestureRecognizer.\n\nAny non-positive field falls back to DefaultGestureConfig.\n",
          "file": "pkg/input/gestures.go",
          "line": 58,
          "members": [
            {
              "name": "TapMaxDuration",
              "anchor": "GestureConfig.TapMaxDuration",
              "kind": "field",
              "doc": "TapMaxDuration is the maximum press duration for GestureTap."
            },
            {
              "name": "TapMaxDistance",
              "anchor": "GestureConfig.TapMaxDistance",
              "kind": "field",
              "doc": "TapMaxDistance is the maximum finger drift in points allowed for GestureTap and GestureLongPress."
            },
            {
              "name": "DoubleTapMaxInterval",
              "anchor": "GestureConfig.DoubleTapMaxInterval",
              "kind": "field",
              "doc": "DoubleTapMaxInterval is the maximum elapsed time between two taps to recognize GestureDoubleTap."
            },
            {
              "name": "DoubleTapMaxDistance",
              "anchor": "GestureConfig.DoubleTapMaxDistance",
              "kind": "field",
              "doc": "DoubleTapMaxDistance is the maximum distance in points between two taps to recognize GestureDoubleTap."
            },
            {
              "name": "LongPressDuration",
              "anchor": "GestureConfig.LongPressDuration",
              "kind": "field",
              "doc": "LongPressDuration is how long a stationary finger must be held to fire GestureLongPress."
            },
            {
              "name": "SwipeMinDistance",
              "anchor": "GestureConfig.SwipeMinDistance",
              "kind": "field",
              "doc": "SwipeMinDistance is the minimum drag distance in points for a directional swipe."
            },
            {
              "name": "SwipeMinVelocity",
              "anchor": "GestureConfig.SwipeMinVelocity",
              "kind": "field",
              "doc": "SwipeMinVelocity is the minimum drag speed in points per second for a directional swipe."
            },
            {
              "name": "PinchMinDelta",
              "anchor": "GestureConfig.PinchMinDelta",
              "kind": "field",
              "doc": "PinchMinDelta is the minimum change in two-finger spacing in points to fire GesturePinchIn or GesturePinchOut."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultGestureConfig",
              "anchor": "DefaultGestureConfig",
              "decl": "func DefaultGestureConfig() GestureConfig",
              "doc": "DefaultGestureConfig returns balanced mobile/tablet thresholds for GestureRecognizer.\n",
              "file": "pkg/input/gestures.go",
              "line": 78
            }
          ],
          "methods": []
        },
        {
          "name": "GestureEvent",
          "anchor": "GestureEvent",
          "decl": "type GestureEvent struct {\n\tKind     GestureKind\n\tPosition core.Point\n\t// Scale is the current pinch ratio (currentDistance / initialDistance) for GesturePinchIn and GesturePinchOut, and 0 for non-pinch gestures.\n\tScale float64\n}",
          "doc": "GestureEvent describes a single gesture recognized on a simulation step.\n",
          "file": "pkg/input/gestures.go",
          "line": 121,
          "members": [
            {
              "name": "Kind",
              "anchor": "GestureEvent.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Position",
              "anchor": "GestureEvent.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "GestureEvent.Scale",
              "kind": "field",
              "doc": "Scale is the current pinch ratio (currentDistance / initialDistance) for GesturePinchIn and GesturePinchOut, and 0 for non-pinch gestures."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GestureKind",
          "anchor": "GestureKind",
          "decl": "type GestureKind uint8",
          "doc": "GestureKind identifies a touch gesture recognized by GestureRecognizer.\n",
          "file": "pkg/input/gestures.go",
          "line": 12,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GestureNone",
                  "anchor": "GestureNone"
                },
                {
                  "name": "GestureTap",
                  "anchor": "GestureTap"
                },
                {
                  "name": "GestureDoubleTap",
                  "anchor": "GestureDoubleTap"
                },
                {
                  "name": "GestureLongPress",
                  "anchor": "GestureLongPress"
                },
                {
                  "name": "GestureSwipeLeft",
                  "anchor": "GestureSwipeLeft"
                },
                {
                  "name": "GestureSwipeRight",
                  "anchor": "GestureSwipeRight"
                },
                {
                  "name": "GestureSwipeUp",
                  "anchor": "GestureSwipeUp"
                },
                {
                  "name": "GestureSwipeDown",
                  "anchor": "GestureSwipeDown"
                },
                {
                  "name": "GesturePinchIn",
                  "anchor": "GesturePinchIn"
                },
                {
                  "name": "GesturePinchOut",
                  "anchor": "GesturePinchOut"
                }
              ],
              "decl": "const (\n\tGestureNone GestureKind = iota\n\tGestureTap\n\tGestureDoubleTap\n\tGestureLongPress\n\tGestureSwipeLeft\n\tGestureSwipeRight\n\tGestureSwipeUp\n\tGestureSwipeDown\n\tGesturePinchIn\n\tGesturePinchOut\n)",
              "doc": "",
              "file": "pkg/input/gestures.go",
              "line": 14
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "GestureKind.String",
              "recv": "GestureKind",
              "decl": "func (g GestureKind) String() string",
              "doc": "String returns a human-readable name for g.\n",
              "file": "pkg/input/gestures.go",
              "line": 28
            }
          ]
        },
        {
          "name": "GestureRecognizer",
          "anchor": "GestureRecognizer",
          "decl": "type GestureRecognizer struct {\n\t// Config overrides default gesture thresholds. Zero fields use DefaultGestureConfig.\n\tConfig GestureConfig\n\t// MapPoint, when set, transforms touch points from view coordinates before gesture recognition. Returning false ignores the point.\n\tMapPoint func(core.Point) (core.Point, bool)\n\t// OnGesture, when set, runs during Update for each gesture recognized on that step.\n\tOnGesture func(GestureEvent)\n\t// contains filtered or unexported fields\n}",
          "doc": "GestureRecognizer deterministically recognizes taps, double-taps, long-presses, four-direction swipes, and two-finger pinches from core.TouchEvent streams stepped by game.Loop's Update(dt).\n\nCall OnTouch from the view (or Attach to wire it) and call Update(dt) once per game.Loop.Update step before Actions.Step so gesture-bound actions trigger on that exact step.\n\nThe zero value is ready to use.\n",
          "file": "pkg/input/gestures.go",
          "line": 143,
          "members": [
            {
              "name": "Config",
              "anchor": "GestureRecognizer.Config",
              "kind": "field",
              "doc": "Config overrides default gesture thresholds. Zero fields use DefaultGestureConfig."
            },
            {
              "name": "MapPoint",
              "anchor": "GestureRecognizer.MapPoint",
              "kind": "field",
              "doc": "MapPoint, when set, transforms touch points from view coordinates before gesture recognition. Returning false ignores the point."
            },
            {
              "name": "OnGesture",
              "anchor": "GestureRecognizer.OnGesture",
              "kind": "field",
              "doc": "OnGesture, when set, runs during Update for each gesture recognized on that step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGestureRecognizer",
              "anchor": "NewGestureRecognizer",
              "decl": "func NewGestureRecognizer(a *Actions) *GestureRecognizer",
              "doc": "NewGestureRecognizer returns a GestureRecognizer optionally wired to trigger actions on a.\n",
              "file": "pkg/input/gestures.go",
              "line": 172
            }
          ],
          "methods": [
            {
              "name": "Attach",
              "anchor": "GestureRecognizer.Attach",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) Attach(v *core.View)",
              "doc": "Attach wires g.OnTouch onto v, chaining any existing v.OnTouch callback.\n",
              "file": "pkg/input/gestures.go",
              "line": 255
            },
            {
              "name": "BindActions",
              "anchor": "GestureRecognizer.BindActions",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) BindActions(a *Actions)",
              "doc": "BindActions wires g to trigger bound actions on a (or disconnects when a is nil).\n",
              "file": "pkg/input/gestures.go",
              "line": 177
            },
            {
              "name": "BindGesture",
              "anchor": "GestureRecognizer.BindGesture",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) BindGesture(action string, kind GestureKind)",
              "doc": "BindGesture binds action to gesture kind. When kind is recognized, g triggers action on its bound Actions. Binding GestureNone removes action's gesture bindings.\n",
              "file": "pkg/input/gestures.go",
              "line": 182
            },
            {
              "name": "Events",
              "anchor": "GestureRecognizer.Events",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) Events() []GestureEvent",
              "doc": "Events returns a copy of all gestures recognized on the most recent Update step.\n",
              "file": "pkg/input/gestures.go",
              "line": 223
            },
            {
              "name": "OnTouch",
              "anchor": "GestureRecognizer.OnTouch",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) OnTouch(ev core.TouchEvent)",
              "doc": "OnTouch records touch activity for gesture recognition.\n",
              "file": "pkg/input/gestures.go",
              "line": 307
            },
            {
              "name": "PinchScale",
              "anchor": "GestureRecognizer.PinchScale",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) PinchScale() float64",
              "doc": "PinchScale returns the current two-finger pinch scale ratio (currentDistance / initialDistance), or 1 when no pinch is active.\n",
              "file": "pkg/input/gestures.go",
              "line": 231
            },
            {
              "name": "Reset",
              "anchor": "GestureRecognizer.Reset",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) Reset()",
              "doc": "Reset clears active touches, pinch state, pending tap history, and the current step's events while keeping Config, MapPoint, OnGesture, and gesture bindings.\n",
              "file": "pkg/input/gestures.go",
              "line": 242
            },
            {
              "name": "Triggered",
              "anchor": "GestureRecognizer.Triggered",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) Triggered(kind GestureKind) bool",
              "doc": "Triggered reports whether kind fired on the most recent Update step.\n",
              "file": "pkg/input/gestures.go",
              "line": 213
            },
            {
              "name": "UnbindGesture",
              "anchor": "GestureRecognizer.UnbindGesture",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) UnbindGesture(action string)",
              "doc": "UnbindGesture removes all gesture bindings for action.\n",
              "file": "pkg/input/gestures.go",
              "line": 199
            },
            {
              "name": "Update",
              "anchor": "GestureRecognizer.Update",
              "recv": "*GestureRecognizer",
              "decl": "func (g *GestureRecognizer) Update(dt time.Duration)",
              "doc": "Update advances the deterministic gesture clock by dt, evaluates held long-presses, promotes pending touch gestures into the current step, and triggers any bound Actions.\n",
              "file": "pkg/input/gestures.go",
              "line": 267
            }
          ]
        },
        {
          "name": "Haptics",
          "anchor": "Haptics",
          "decl": "type Haptics struct {\n\t// Enabled controls whether any haptic or rumble feedback is emitted (true by default).\n\t// Set to false for accessibility or player preferences.\n\tEnabled bool\n\n\t// PulseInterval is how frequently mobile haptic pulses repeat during a continuous Rumble\n\t// (50 ms when <= 0).\n\tPulseInterval time.Duration\n\n\t// GamepadRumble, when set, receives motor strength updates for external gamepad rumble\n\t// backends (seam for nsgo#1049). Called with (lowFreq, highFreq, duration) in [0, 1]\n\t// when a rumble segment begins, and with (0, 0, 0) when rumble finishes, stops, is disabled,\n\t// or pauses in background.\n\tGamepadRumble func(lowFreq, highFreq float32, duration time.Duration)\n\n\t// OnHaptic, when set, is called each time a haptic is dispatched to core.Scope.PlayHaptic.\n\t// Useful for visual accessibility cues, telemetry, or tests.\n\tOnHaptic func(core.Haptic)\n\t// contains filtered or unexported fields\n}",
          "doc": "Haptics plays tactile feedback through core.Scope.PlayHaptic on iOS and Android, runs timed\nrumble and multi-step patterns on Update(dt), and forwards motor updates to an optional\nGamepadRumble sink (a seam for gamepad rumble hardware).\n\nAll output is silenced while Enabled is false or while the scope's window is in\ncore.LifecycleBackground. Any active rumble stops automatically when disabled, backgrounded,\nor when the owning scope is disposed.\n\nHaptics' methods are called on the engine's goroutine, as core.Scope and game.Loop.Update are.\n",
          "file": "pkg/input/haptics.go",
          "line": 32,
          "members": [
            {
              "name": "Enabled",
              "anchor": "Haptics.Enabled",
              "kind": "field",
              "doc": "Enabled controls whether any haptic or rumble feedback is emitted (true by default).\nSet to false for accessibility or player preferences."
            },
            {
              "name": "PulseInterval",
              "anchor": "Haptics.PulseInterval",
              "kind": "field",
              "doc": "PulseInterval is how frequently mobile haptic pulses repeat during a continuous Rumble\n(50 ms when <= 0)."
            },
            {
              "name": "GamepadRumble",
              "anchor": "Haptics.GamepadRumble",
              "kind": "field",
              "doc": "GamepadRumble, when set, receives motor strength updates for external gamepad rumble\nbackends (seam for nsgo#1049). Called with (lowFreq, highFreq, duration) in [0, 1]\nwhen a rumble segment begins, and with (0, 0, 0) when rumble finishes, stops, is disabled,\nor pauses in background."
            },
            {
              "name": "OnHaptic",
              "anchor": "Haptics.OnHaptic",
              "kind": "field",
              "doc": "OnHaptic, when set, is called each time a haptic is dispatched to core.Scope.PlayHaptic.\nUseful for visual accessibility cues, telemetry, or tests."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHaptics",
              "anchor": "NewHaptics",
              "decl": "func NewHaptics(cx *core.Scope) *Haptics",
              "doc": "NewHaptics returns a Haptics bound to cx with Enabled set to true.\nIt watches cx's lifecycle so feedback pauses cleanly in core.LifecycleBackground,\nand stops any active rumble when cx is disposed.\n",
              "file": "pkg/input/haptics.go",
              "line": 65
            }
          ],
          "methods": [
            {
              "name": "Error",
              "anchor": "Haptics.Error",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Error()",
              "doc": "Error plays an error/failure outcome haptic (core.HapticError).\n",
              "file": "pkg/input/haptics.go",
              "line": 148
            },
            {
              "name": "Heavy",
              "anchor": "Haptics.Heavy",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Heavy()",
              "doc": "Heavy plays a heavy impact haptic (core.HapticHeavy).\n",
              "file": "pkg/input/haptics.go",
              "line": 133
            },
            {
              "name": "Light",
              "anchor": "Haptics.Light",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Light()",
              "doc": "Light plays a light impact haptic (core.HapticLight).\n",
              "file": "pkg/input/haptics.go",
              "line": 127
            },
            {
              "name": "Load",
              "anchor": "Haptics.Load",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Load(store core.Storage, key string) (bool, error)",
              "doc": "Load restores h.Enabled from store under key and reports whether key was present.\nWhen key is absent or invalid, h.Enabled is left untouched. An invalid value's error is a *loaderr.Error that names key as its file.\n",
              "file": "pkg/input/haptics.go",
              "line": 98
            },
            {
              "name": "Medium",
              "anchor": "Haptics.Medium",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Medium()",
              "doc": "Medium plays a medium impact haptic (core.HapticMedium).\n",
              "file": "pkg/input/haptics.go",
              "line": 130
            },
            {
              "name": "Play",
              "anchor": "Haptics.Play",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Play(kind core.Haptic)",
              "doc": "Play emits kind through core.Scope.PlayHaptic when h is enabled and in foreground.\nInvalid haptic values are ignored.\n",
              "file": "pkg/input/haptics.go",
              "line": 113
            },
            {
              "name": "PlayPattern",
              "anchor": "Haptics.PlayPattern",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) PlayPattern(steps ...RumbleStep)",
              "doc": "PlayPattern runs a sequence of timed RumbleSteps, replacing any active rumble.\nCall Update(dt) on each game.Loop step to advance the pattern.\n",
              "file": "pkg/input/haptics.go",
              "line": 165
            },
            {
              "name": "Rigid",
              "anchor": "Haptics.Rigid",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Rigid()",
              "doc": "Rigid plays a rigid impact haptic (core.HapticRigid).\n",
              "file": "pkg/input/haptics.go",
              "line": 139
            },
            {
              "name": "Rumble",
              "anchor": "Haptics.Rumble",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Rumble(lowFreq, highFreq float32, duration time.Duration)",
              "doc": "Rumble starts a timed rumble with lowFreq and highFreq motor strengths in [0, 1] for duration.\nCalling Rumble with duration <= 0 or both strengths <= 0 stops any active rumble.\nStep the rumble scheduler by calling Update(dt) from game.Loop.Update.\n",
              "file": "pkg/input/haptics.go",
              "line": 153
            },
            {
              "name": "Rumbling",
              "anchor": "Haptics.Rumbling",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Rumbling() bool",
              "doc": "Rumbling reports whether a rumble or pattern is currently playing.\n",
              "file": "pkg/input/haptics.go",
              "line": 207
            },
            {
              "name": "Save",
              "anchor": "Haptics.Save",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Save(store core.Storage, key string) error",
              "doc": "Save writes h.Enabled into store under key. It fails with *core.StorageFullError when storage is full.\n",
              "file": "pkg/input/haptics.go",
              "line": 92
            },
            {
              "name": "Selection",
              "anchor": "Haptics.Selection",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Selection()",
              "doc": "Selection plays a subtle selection-change tick (core.HapticSelection).\n",
              "file": "pkg/input/haptics.go",
              "line": 124
            },
            {
              "name": "SetEnabled",
              "anchor": "Haptics.SetEnabled",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) SetEnabled(enabled bool)",
              "doc": "SetEnabled sets h.Enabled and immediately stops any active rumble when disabling.\n",
              "file": "pkg/input/haptics.go",
              "line": 84
            },
            {
              "name": "Soft",
              "anchor": "Haptics.Soft",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Soft()",
              "doc": "Soft plays a soft impact haptic (core.HapticSoft).\n",
              "file": "pkg/input/haptics.go",
              "line": 136
            },
            {
              "name": "StopRumble",
              "anchor": "Haptics.StopRumble",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) StopRumble()",
              "doc": "StopRumble immediately stops any active rumble or pattern and zeroes the gamepad motor sink.\n",
              "file": "pkg/input/haptics.go",
              "line": 192
            },
            {
              "name": "Success",
              "anchor": "Haptics.Success",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Success()",
              "doc": "Success plays a positive outcome haptic (core.HapticSuccess).\n",
              "file": "pkg/input/haptics.go",
              "line": 142
            },
            {
              "name": "Update",
              "anchor": "Haptics.Update",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Update(dt time.Duration)",
              "doc": "Update advances any active rumble or pattern by dt, emitting periodic mobile haptic pulses\nand ending or advancing steps as their durations expire. Call it from game.Loop.Update.\n",
              "file": "pkg/input/haptics.go",
              "line": 213
            },
            {
              "name": "Warning",
              "anchor": "Haptics.Warning",
              "recv": "*Haptics",
              "decl": "func (h *Haptics) Warning()",
              "doc": "Warning plays a warning outcome haptic (core.HapticWarning).\n",
              "file": "pkg/input/haptics.go",
              "line": 145
            }
          ]
        },
        {
          "name": "Input",
          "anchor": "Input",
          "decl": "type Input struct {\n\tKind   InputKind\n\tBounds core.Bounds\n\tButton core.MouseButton\n\t// Key is the key name of an InputKey, such as \"a\", \"left\", \"space\" or \"shift\".\n\tKey string\n\t// Code is the physical position of an InputKeyCode, such as \"KeyW\" or \"ArrowLeft\".\n\tCode string\n\t// PadButton is the controller button of an InputGamepadButton input.\n\tPadButton gamepad.Button\n}",
          "doc": "Input is one physical trigger bound to an action: a touch region, a mouse button, a mouse button in a region, a key, a key's physical position or a game controller button.\n\nMake one with TouchRegion, MouseButton, MouseRegion, Key, KeyCode or GamepadButton. Its zero value is never active.\n",
          "file": "pkg/input/input.go",
          "line": 35,
          "members": [
            {
              "name": "Kind",
              "anchor": "Input.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "Input.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Button",
              "anchor": "Input.Button",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Key",
              "anchor": "Input.Key",
              "kind": "field",
              "doc": "Key is the key name of an InputKey, such as \"a\", \"left\", \"space\" or \"shift\"."
            },
            {
              "name": "Code",
              "anchor": "Input.Code",
              "kind": "field",
              "doc": "Code is the physical position of an InputKeyCode, such as \"KeyW\" or \"ArrowLeft\"."
            },
            {
              "name": "PadButton",
              "anchor": "Input.PadButton",
              "kind": "field",
              "doc": "PadButton is the controller button of an InputGamepadButton input."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "GamepadButton",
              "anchor": "GamepadButton",
              "decl": "func GamepadButton(b gamepad.Button) Input",
              "doc": "GamepadButton returns an input that is active while button b is pressed (value at least 0.5, as gamepad.Pad.Pressed tests) on a connected game controller that a uses (see SelectGamepad). A button outside the W3C Standard Gamepad layout is never active.\n\nBind it with Actions.Bind like any other Input, and feed controller state to the Actions with WatchGamepads or OnGamepads.\n",
              "file": "pkg/input/gamepad.go",
              "line": 19
            },
            {
              "name": "Key",
              "anchor": "Key",
              "decl": "func Key(name string) Input",
              "doc": "Key returns an input that is active while the key named name is held, named as core.KeyEvent.Key names it: \"a\", \"1\", \"space\", \"enter\", \"left\", \"f5\", or a modifier alone, \"shift\", \"ctrl\", \"alt\" or \"meta\". Only those names are held: the aliases core.KeyHeld also accepts, such as \"mod\", \"cmd\" or \"option\", never are, so bind \"meta\" where Env.AppleKeys reports Command as the platform modifier and \"ctrl\" elsewhere. A letter or a digit is the one the keyboard layout types unshifted, so Key follows the layout; KeyCode follows the physical position instead. The name is matched without regard to case, and an empty name is never active.\n",
              "file": "pkg/input/keys.go",
              "line": 11
            },
            {
              "name": "KeyCode",
              "anchor": "KeyCode",
              "decl": "func KeyCode(code string) Input",
              "doc": "KeyCode returns an input that is active while the key at physical position code is held, named as core.KeyEvent.Code names it, after the web's KeyboardEvent.code: \"KeyW\", \"ArrowLeft\", \"Space\", \"ShiftLeft\". A position stays where it is on every layout, so KeyCode(\"KeyW\") is the key above S on QWERTY and AZERTY alike. An empty code is never active.\n",
              "file": "pkg/input/keys.go",
              "line": 24
            },
            {
              "name": "MouseButton",
              "anchor": "MouseButton",
              "decl": "func MouseButton(button core.MouseButton) Input",
              "doc": "MouseButton returns an input that is active while button is held down on the view. core.MouseButtonNone is never active.\n",
              "file": "pkg/input/input.go",
              "line": 53
            },
            {
              "name": "MouseRegion",
              "anchor": "MouseRegion",
              "decl": "func MouseRegion(rect core.Bounds, button core.MouseButton) Input",
              "doc": "MouseRegion returns an input that is active while button is held down and the mouse lies inside rect, as core.Bounds.Contains tests. core.MouseButtonNone is never active.\n",
              "file": "pkg/input/input.go",
              "line": 58
            },
            {
              "name": "TouchRegion",
              "anchor": "TouchRegion",
              "decl": "func TouchRegion(rect core.Bounds) Input",
              "doc": "TouchRegion returns an input that is active while any touch finger lies inside rect: from its origin, included, to its far edges, excluded, as core.Bounds.Contains tests.\n",
              "file": "pkg/input/input.go",
              "line": 48
            }
          ],
          "methods": []
        },
        {
          "name": "InputKind",
          "anchor": "InputKind",
          "decl": "type InputKind uint8",
          "doc": "InputKind says what kind of physical input an Input watches.\n",
          "file": "pkg/input/input.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "InputNone",
                  "anchor": "InputNone"
                },
                {
                  "name": "InputTouchRegion",
                  "anchor": "InputTouchRegion"
                },
                {
                  "name": "InputMouseButton",
                  "anchor": "InputMouseButton"
                },
                {
                  "name": "InputMouseRegion",
                  "anchor": "InputMouseRegion"
                },
                {
                  "name": "InputKey",
                  "anchor": "InputKey"
                },
                {
                  "name": "InputKeyCode",
                  "anchor": "InputKeyCode"
                },
                {
                  "name": "InputGamepadButton",
                  "anchor": "InputGamepadButton"
                }
              ],
              "decl": "const (\n\t// InputNone is the zero Input, which is never active.\n\tInputNone InputKind = iota\n\t// InputTouchRegion is active while any touch finger lies inside a rectangle.\n\tInputTouchRegion\n\t// InputMouseButton is active while a mouse button is held down on the view.\n\tInputMouseButton\n\t// InputMouseRegion is active while a mouse button is held down inside a rectangle.\n\tInputMouseRegion\n\t// InputKey is active while a keyboard key, named as core.KeyEvent.Key names it, is held.\n\tInputKey\n\t// InputKeyCode is active while a keyboard key at a physical position, named as core.KeyEvent.Code names it, is held.\n\tInputKeyCode\n\t// InputGamepadButton is active while a button is pressed on a game controller the Actions reads.\n\tInputGamepadButton\n)",
              "doc": "",
              "file": "pkg/input/input.go",
              "line": 15
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MotionAxis",
          "anchor": "MotionAxis",
          "decl": "type MotionAxis uint8",
          "doc": "MotionAxis identifies one tilt (accelerometer/gravity) or gyroscope axis.\n",
          "file": "pkg/input/motion.go",
          "line": 19,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "MotionAxisNone",
                  "anchor": "MotionAxisNone"
                },
                {
                  "name": "TiltX",
                  "anchor": "TiltX"
                },
                {
                  "name": "TiltY",
                  "anchor": "TiltY"
                },
                {
                  "name": "TiltZ",
                  "anchor": "TiltZ"
                },
                {
                  "name": "GyroX",
                  "anchor": "GyroX"
                },
                {
                  "name": "GyroY",
                  "anchor": "GyroY"
                },
                {
                  "name": "GyroZ",
                  "anchor": "GyroZ"
                }
              ],
              "decl": "const (\n\t// MotionAxisNone is the zero MotionAxis, which always reads 0.\n\tMotionAxisNone MotionAxis = iota\n\t// TiltX is device tilt along the natural device X axis (right, in g units).\n\tTiltX\n\t// TiltY is device tilt along the natural device Y axis (up, in g units).\n\tTiltY\n\t// TiltZ is device tilt along the natural device Z axis (out of the screen, in g units).\n\tTiltZ\n\t// GyroX is angular velocity around the natural device X axis (rad/s).\n\tGyroX\n\t// GyroY is angular velocity around the natural device Y axis (rad/s).\n\tGyroY\n\t// GyroZ is angular velocity around the natural device Z axis (rad/s).\n\tGyroZ\n)",
              "doc": "",
              "file": "pkg/input/motion.go",
              "line": 21
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "MotionAxis.String",
              "recv": "MotionAxis",
              "decl": "func (m MotionAxis) String() string",
              "doc": "String returns a stable name for m.\n",
              "file": "pkg/input/motion.go",
              "line": 39
            }
          ]
        },
        {
          "name": "MotionAxisOptions",
          "anchor": "MotionAxisOptions",
          "decl": "type MotionAxisOptions struct {\n\t// DeadZone is the magnitude in [0, 1) below which the axis reads 0.\n\tDeadZone float64\n\t// Sensitivity multiplies the calibrated reading before clamping.\n\tSensitivity float64\n\t// MaxRange is the input magnitude that maps to 1.0 before Sensitivity:\n\t// in g for Tilt axes (default 1.0), and in rad/s for Gyro axes (default math.Pi).\n\tMaxRange float64\n\t// Smoothing is an optional per-axis low-pass factor in [0, 1) applied on each Step.\n\tSmoothing float64\n\t// Invert negates the resulting axis value.\n\tInvert bool\n}",
          "doc": "MotionAxisOptions configures how one bound motion axis is mapped into [-1, 1].\nZero-valued DeadZone, Sensitivity and MaxRange inherit defaults from the attached MotionInput.\n",
          "file": "pkg/input/motion.go",
          "line": 129,
          "members": [
            {
              "name": "DeadZone",
              "anchor": "MotionAxisOptions.DeadZone",
              "kind": "field",
              "doc": "DeadZone is the magnitude in [0, 1) below which the axis reads 0."
            },
            {
              "name": "Sensitivity",
              "anchor": "MotionAxisOptions.Sensitivity",
              "kind": "field",
              "doc": "Sensitivity multiplies the calibrated reading before clamping."
            },
            {
              "name": "MaxRange",
              "anchor": "MotionAxisOptions.MaxRange",
              "kind": "field",
              "doc": "MaxRange is the input magnitude that maps to 1.0 before Sensitivity:\nin g for Tilt axes (default 1.0), and in rad/s for Gyro axes (default math.Pi)."
            },
            {
              "name": "Smoothing",
              "anchor": "MotionAxisOptions.Smoothing",
              "kind": "field",
              "doc": "Smoothing is an optional per-axis low-pass factor in [0, 1) applied on each Step."
            },
            {
              "name": "Invert",
              "anchor": "MotionAxisOptions.Invert",
              "kind": "field",
              "doc": "Invert negates the resulting axis value."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MotionInput",
          "anchor": "MotionInput",
          "decl": "type MotionInput struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MotionInput watches device accelerometer and gyroscope sensors via core.Scope.WatchMotion,\ncalibrates tilt against a neutral hold angle, applies low-pass smoothing, dead zone and sensitivity,\nand exposes [-1, 1] axis values sampled once per fixed game.Loop step.\n\nMotionInput's methods are called on the engine's goroutine, as core.Scope.WatchMotion callbacks\nand game.Loop.Update are.\n",
          "file": "pkg/input/motion.go",
          "line": 154,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMotionInput",
              "anchor": "NewMotionInput",
              "decl": "func NewMotionInput(opts MotionOptions) *MotionInput",
              "doc": "NewMotionInput returns a MotionInput configured with opts.\nCall Start(cx) to subscribe to live device sensors, or feed samples directly with OnMotion.\n",
              "file": "pkg/input/motion.go",
              "line": 181
            },
            {
              "name": "WatchMotion",
              "anchor": "WatchMotion",
              "decl": "func WatchMotion(cx *core.Scope, opts MotionOptions) (*MotionInput, error)",
              "doc": "WatchMotion creates a MotionInput with opts and immediately subscribes to device motion sensors\non cx via cx.WatchMotion. The sensor stream stops automatically when cx is disposed (or when Stop\nis called) and pauses automatically while the app is in background.\n",
              "file": "pkg/input/motion.go",
              "line": 188
            }
          ],
          "methods": [
            {
              "name": "Active",
              "anchor": "MotionInput.Active",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Active() bool",
              "doc": "Active reports whether m currently has a live, unstopped sensor stream.\n",
              "file": "pkg/input/motion.go",
              "line": 232
            },
            {
              "name": "Axis",
              "anchor": "MotionInput.Axis",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Axis(axis MotionAxis) float64",
              "doc": "Axis returns the stepped value of axis in [-1, 1] using m's default options.\n",
              "file": "pkg/input/motion.go",
              "line": 350
            },
            {
              "name": "AxisWith",
              "anchor": "MotionInput.AxisWith",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) AxisWith(axis MotionAxis, opts MotionAxisOptions) float64",
              "doc": "AxisWith returns the stepped value of axis in [-1, 1] using per-axis opts, with zero fields\nfalling back to m's defaults.\n",
              "file": "pkg/input/motion.go",
              "line": 356
            },
            {
              "name": "Calibrate",
              "anchor": "MotionInput.Calibrate",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Calibrate()",
              "doc": "Calibrate captures the current tilt reading as the neutral hold orientation so TiltX, TiltY and TiltZ\nread 0 at that hold angle. If no tilt sample has arrived yet, the next tilt sample received is captured\nas the neutral orientation.\n",
              "file": "pkg/input/motion.go",
              "line": 322
            },
            {
              "name": "Calibrated",
              "anchor": "MotionInput.Calibrated",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Calibrated() bool",
              "doc": "Calibrated reports whether a neutral tilt offset has been captured.\n",
              "file": "pkg/input/motion.go",
              "line": 340
            },
            {
              "name": "Calibration",
              "anchor": "MotionInput.Calibration",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Calibration() core.SensorVector",
              "doc": "Calibration returns the captured neutral tilt vector in g units.\n",
              "file": "pkg/input/motion.go",
              "line": 345
            },
            {
              "name": "OnMotion",
              "anchor": "MotionInput.OnMotion",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) OnMotion(sample core.MotionSample)",
              "doc": "OnMotion ingests one core.MotionSample (from WatchMotion, a unit test, or a replay).\nUpdated values are held until the next Step call so reads stay stable within a fixed game.Loop step.\n",
              "file": "pkg/input/motion.go",
              "line": 249
            },
            {
              "name": "Options",
              "anchor": "MotionInput.Options",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Options() MotionOptions",
              "doc": "Options returns m's current MotionOptions.\n",
              "file": "pkg/input/motion.go",
              "line": 243
            },
            {
              "name": "Reset",
              "anchor": "MotionInput.Reset",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Reset()",
              "doc": "Reset clears live and snapped sensor readings without changing options, calibration or the active stream.\n",
              "file": "pkg/input/motion.go",
              "line": 307
            },
            {
              "name": "ResetCalibration",
              "anchor": "MotionInput.ResetCalibration",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) ResetCalibration()",
              "doc": "ResetCalibration clears any neutral tilt offset captured by Calibrate.\n",
              "file": "pkg/input/motion.go",
              "line": 333
            },
            {
              "name": "SetOptions",
              "anchor": "MotionInput.SetOptions",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) SetOptions(opts MotionOptions)",
              "doc": "SetOptions updates DeadZone, Sensitivity, TiltRange, GyroRange, Smoothing and OnError at runtime.\nChanging Sensors or Interval takes effect on the next Start call.\n",
              "file": "pkg/input/motion.go",
              "line": 238
            },
            {
              "name": "Start",
              "anchor": "MotionInput.Start",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Start(cx *core.Scope) error",
              "doc": "Start subscribes to live device motion sensors on cx using m's options.\nAny previously active stream on m is stopped first.\n",
              "file": "pkg/input/motion.go",
              "line": 198
            },
            {
              "name": "Step",
              "anchor": "MotionInput.Step",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Step()",
              "doc": "Step snapshots the latest smoothed sensor readings for the current game.Loop step.\nCalling Step multiple times with no new samples in between is idempotent.\n",
              "file": "pkg/input/motion.go",
              "line": 299
            },
            {
              "name": "Stop",
              "anchor": "MotionInput.Stop",
              "recv": "*MotionInput",
              "decl": "func (m *MotionInput) Stop()",
              "doc": "Stop cancels the active sensor stream, if any.\n",
              "file": "pkg/input/motion.go",
              "line": 224
            }
          ]
        },
        {
          "name": "MotionOptions",
          "anchor": "MotionOptions",
          "decl": "type MotionOptions struct {\n\t// Sensors chooses which NSGo motion sensors to watch.\n\t// Zero requests core.SensorAccelerometer | core.SensorGyroscope.\n\tSensors core.MotionSensors\n\t// Interval is the requested sample interval, clamped by NSGo to 10ms..1s (0 defaults to 20ms).\n\tInterval time.Duration\n\t// DeadZone is the default magnitude in [0, 1) below which normalized axis readings snap to 0.\n\tDeadZone float64\n\t// Sensitivity multiplies calibrated axis values before clamping (1 when <= 0).\n\tSensitivity float64\n\t// TiltRange is the tilt magnitude in g (9.80665 m/s²) that maps to 1.0 before Sensitivity (1.0 when <= 0).\n\tTiltRange float64\n\t// GyroRange is the rotation rate in rad/s that maps to 1.0 before Sensitivity (math.Pi when <= 0).\n\tGyroRange float64\n\t// Smoothing is the low-pass filter factor in [0, 1) applied to incoming samples.\n\t// 0 disables smoothing; higher values smooth more heavily (filtered = prev*Smoothing + raw*(1-Smoothing)).\n\tSmoothing float64\n\t// OnError is called on the engine goroutine if WatchMotion's provider reports an error\n\t// (such as core.SensorNotAllowed or core.SensorNotAvailable).\n\tOnError func(error)\n}",
          "doc": "MotionOptions configures a MotionInput watching device sensors via core.Scope.WatchMotion.\n",
          "file": "pkg/input/motion.go",
          "line": 105,
          "members": [
            {
              "name": "Sensors",
              "anchor": "MotionOptions.Sensors",
              "kind": "field",
              "doc": "Sensors chooses which NSGo motion sensors to watch.\nZero requests core.SensorAccelerometer | core.SensorGyroscope."
            },
            {
              "name": "Interval",
              "anchor": "MotionOptions.Interval",
              "kind": "field",
              "doc": "Interval is the requested sample interval, clamped by NSGo to 10ms..1s (0 defaults to 20ms)."
            },
            {
              "name": "DeadZone",
              "anchor": "MotionOptions.DeadZone",
              "kind": "field",
              "doc": "DeadZone is the default magnitude in [0, 1) below which normalized axis readings snap to 0."
            },
            {
              "name": "Sensitivity",
              "anchor": "MotionOptions.Sensitivity",
              "kind": "field",
              "doc": "Sensitivity multiplies calibrated axis values before clamping (1 when <= 0)."
            },
            {
              "name": "TiltRange",
              "anchor": "MotionOptions.TiltRange",
              "kind": "field",
              "doc": "TiltRange is the tilt magnitude in g (9.80665 m/s²) that maps to 1.0 before Sensitivity (1.0 when <= 0)."
            },
            {
              "name": "GyroRange",
              "anchor": "MotionOptions.GyroRange",
              "kind": "field",
              "doc": "GyroRange is the rotation rate in rad/s that maps to 1.0 before Sensitivity (math.Pi when <= 0)."
            },
            {
              "name": "Smoothing",
              "anchor": "MotionOptions.Smoothing",
              "kind": "field",
              "doc": "Smoothing is the low-pass filter factor in [0, 1) applied to incoming samples.\n0 disables smoothing; higher values smooth more heavily (filtered = prev*Smoothing + raw*(1-Smoothing))."
            },
            {
              "name": "OnError",
              "anchor": "MotionOptions.OnError",
              "kind": "field",
              "doc": "OnError is called on the engine goroutine if WatchMotion's provider reports an error\n(such as core.SensorNotAllowed or core.SensorNotAvailable)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Player",
          "anchor": "Player",
          "decl": "type Player struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Player is one player's input slot in a Players group, with its own Actions and assigned physical devices.\n\nA nil *Player reports zero/false for all queries and -1 for Index.\n",
          "file": "pkg/input/players.go",
          "line": 14,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Actions",
              "anchor": "Player.Actions",
              "recv": "*Player",
              "decl": "func (p *Player) Actions() *Actions",
              "doc": "Actions returns p's Actions, where bindings, axes, virtual pads, and saved controls live. Returns nil if p is nil.\n",
              "file": "pkg/input/players.go",
              "line": 39
            },
            {
              "name": "Axis",
              "anchor": "Player.Axis",
              "recv": "*Player",
              "decl": "func (p *Player) Axis(name string) float64",
              "doc": "Axis returns the value of axis name in [-1, 1] for p on the current step.\n",
              "file": "pkg/input/players.go",
              "line": 71
            },
            {
              "name": "Delta",
              "anchor": "Player.Delta",
              "recv": "*Player",
              "decl": "func (p *Player) Delta(name string) float64",
              "doc": "Delta returns the relative motion of pointer axis name for p on the current step.\n",
              "file": "pkg/input/players.go",
              "line": 79
            },
            {
              "name": "FallbackActive",
              "anchor": "Player.FallbackActive",
              "recv": "*Player",
              "decl": "func (p *Player) FallbackActive() bool",
              "doc": "FallbackActive reports whether p is currently using temporary keyboard and pointer fallback because its assigned controller disconnected under DisconnectPolicy.FallbackToKeyboardTouch. Returns false if p is nil.\n",
              "file": "pkg/input/disconnect.go",
              "line": 73
            },
            {
              "name": "Gamepad",
              "anchor": "Player.Gamepad",
              "recv": "*Player",
              "decl": "func (p *Player) Gamepad() (gamepad.Pad, bool)",
              "doc": "Gamepad returns the latest connected controller state for p's assigned controller, or false when p has no assigned controller or that controller is not currently connected.\n",
              "file": "pkg/input/players.go",
              "line": 95
            },
            {
              "name": "GamepadConnected",
              "anchor": "Player.GamepadConnected",
              "recv": "*Player",
              "decl": "func (p *Player) GamepadConnected() bool",
              "doc": "GamepadConnected reports whether p has an assigned controller that is present in the latest controller snapshot.\n",
              "file": "pkg/input/players.go",
              "line": 107
            },
            {
              "name": "GamepadDisconnected",
              "anchor": "Player.GamepadDisconnected",
              "recv": "*Player",
              "decl": "func (p *Player) GamepadDisconnected() bool",
              "doc": "GamepadDisconnected reports whether p has an assigned controller that was previously connected and has since disconnected, awaiting reconnect or reassignment. Returns false if p is nil.\n",
              "file": "pkg/input/disconnect.go",
              "line": 65
            },
            {
              "name": "GamepadID",
              "anchor": "Player.GamepadID",
              "recv": "*Player",
              "decl": "func (p *Player) GamepadID() (id int, ok bool)",
              "doc": "GamepadID returns the controller ID assigned to p and true, or (0, false) when p has no assigned controller.\n",
              "file": "pkg/input/players.go",
              "line": 87
            },
            {
              "name": "HasDevice",
              "anchor": "Player.HasDevice",
              "recv": "*Player",
              "decl": "func (p *Player) HasDevice() bool",
              "doc": "HasDevice reports whether at least one physical device (a controller, keyboard, or pointer) is assigned to p.\n",
              "file": "pkg/input/players.go",
              "line": 129
            },
            {
              "name": "Index",
              "anchor": "Player.Index",
              "recv": "*Player",
              "decl": "func (p *Player) Index() int",
              "doc": "Index returns p's 0-based slot index in its Players group, or -1 if p is nil.\n",
              "file": "pkg/input/players.go",
              "line": 31
            },
            {
              "name": "JustPressed",
              "anchor": "Player.JustPressed",
              "recv": "*Player",
              "decl": "func (p *Player) JustPressed(name string) bool",
              "doc": "JustPressed reports whether action name became pressed for p on the current step.\n",
              "file": "pkg/input/players.go",
              "line": 55
            },
            {
              "name": "JustReleased",
              "anchor": "Player.JustReleased",
              "recv": "*Player",
              "decl": "func (p *Player) JustReleased(name string) bool",
              "doc": "JustReleased reports whether action name was released for p on the current step.\n",
              "file": "pkg/input/players.go",
              "line": 63
            },
            {
              "name": "Pressed",
              "anchor": "Player.Pressed",
              "recv": "*Player",
              "decl": "func (p *Player) Pressed(name string) bool",
              "doc": "Pressed reports whether action name is held for p during the current step.\n",
              "file": "pkg/input/players.go",
              "line": 47
            },
            {
              "name": "UsesKeyboard",
              "anchor": "Player.UsesKeyboard",
              "recv": "*Player",
              "decl": "func (p *Player) UsesKeyboard() bool",
              "doc": "UsesKeyboard reports whether keyboard events from p's Players group are routed to p.\n",
              "file": "pkg/input/players.go",
              "line": 113
            },
            {
              "name": "UsesPointer",
              "anchor": "Player.UsesPointer",
              "recv": "*Player",
              "decl": "func (p *Player) UsesPointer() bool",
              "doc": "UsesPointer reports whether touch, mouse, and pointer-lock events from p's Players group are routed to p.\n",
              "file": "pkg/input/players.go",
              "line": 121
            }
          ]
        },
        {
          "name": "Players",
          "anchor": "Players",
          "decl": "type Players struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Players coordinates local multiplayer input across several player slots, routing each connected game controller to at most one player and sharing keyboard or pointer events among the players assigned to them, sampled once per fixed game.Loop step.\n\nEach player owns its own Actions (accessed via Player.Actions), so several players can share the same gamepad bindings on separate controllers, use disjoint key sets on one keyboard, or combine keyboard, pointer, and game controllers.\n\nCall WatchGamepads, WatchKeys, and/or Attach on Players rather than on individual players' Actions, assign devices with AssignGamepad, AssignKeyboard, AssignPointer, or AssignUnassignedGamepads, and call Step once at the start of each game.Loop.Update step.\n\nThe zero value is ready to use with no players; call NewPlayers or Add to create slots. Players' methods are called on the engine's goroutine, as core.View's callbacks and game.Loop.Update are.\n",
          "file": "pkg/input/players.go",
          "line": 143,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPlayers",
              "anchor": "NewPlayers",
              "decl": "func NewPlayers(count int) *Players",
              "doc": "NewPlayers returns a Players group with count player slots (0 to count-1), each with an empty Actions and no assigned devices. A non-positive count returns an empty Players.\n",
              "file": "pkg/input/players.go",
              "line": 163
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Players.Add",
              "recv": "*Players",
              "decl": "func (m *Players) Add() *Player",
              "doc": "Add appends a new player slot with an empty Actions and no assigned devices, and returns it.\n",
              "file": "pkg/input/players.go",
              "line": 179
            },
            {
              "name": "All",
              "anchor": "Players.All",
              "recv": "*Players",
              "decl": "func (m *Players) All() []*Player",
              "doc": "All returns a copy of the player slots in index order, or nil when m has no players.\n",
              "file": "pkg/input/players.go",
              "line": 203
            },
            {
              "name": "AssignGamepad",
              "anchor": "Players.AssignGamepad",
              "recv": "*Players",
              "decl": "func (m *Players) AssignGamepad(index, padID int) bool",
              "doc": "AssignGamepad assigns controller padID exclusively to player index, returning false if index is out of range.\n\nIf another player already owns padID, that player is unassigned from padID first and its held controller inputs are released. If padID is not yet connected, the assignment is remembered and takes effect once padID appears in Step or OnGamepads. If player index was awaiting reconnect and padID is currently connected, AssignGamepad completes recovery, ends any active fallback, and emits OnReconnect.\n",
              "file": "pkg/input/players.go",
              "line": 233
            },
            {
              "name": "AssignKeyboard",
              "anchor": "Players.AssignKeyboard",
              "recv": "*Players",
              "decl": "func (m *Players) AssignKeyboard(index int) bool",
              "doc": "AssignKeyboard routes keyboard events from m (WatchKeys, OnKeyDown, OnKeyUp, Attach) to player index, returning false if index is out of range.\n\nMultiple players may be assigned to the keyboard simultaneously so they can share one keyboard with disjoint key sets.\n",
              "file": "pkg/input/players.go",
              "line": 301
            },
            {
              "name": "AssignPointer",
              "anchor": "Players.AssignPointer",
              "recv": "*Players",
              "decl": "func (m *Players) AssignPointer(index int) bool",
              "doc": "AssignPointer routes touch, mouse, and pointer-lock events from m (Attach and OnTouch/OnPressDown/OnMouseMove/OnPointerDelta) to player index, returning false if index is out of range.\n\nMultiple players may be assigned to pointer events, such as split-screen touch regions on one screen.\n",
              "file": "pkg/input/players.go",
              "line": 336
            },
            {
              "name": "AssignUnassignedGamepads",
              "anchor": "Players.AssignUnassignedGamepads",
              "recv": "*Players",
              "decl": "func (m *Players) AssignUnassignedGamepads() int",
              "doc": "AssignUnassignedGamepads assigns each connected controller from the last read (Step or OnGamepads) that is not yet assigned to any player, in ascending controller ID order, to the next player slot that has no device assigned, and returns how many controllers were assigned.\n",
              "file": "pkg/input/players.go",
              "line": 388
            },
            {
              "name": "Attach",
              "anchor": "Players.Attach",
              "recv": "*Players",
              "decl": "func (m *Players) Attach(v *core.View)",
              "doc": "Attach wires m's touch, press, mouse, context-menu, pointer-lock motion, and key handlers onto v, chaining any callbacks already set on v. Keyboard events are forwarded to players with AssignKeyboard; pointer and touch events are forwarded to players with AssignPointer.\n",
              "file": "pkg/input/players.go",
              "line": 509
            },
            {
              "name": "DisconnectPolicy",
              "anchor": "Players.DisconnectPolicy",
              "recv": "*Players",
              "decl": "func (m *Players) DisconnectPolicy() DisconnectPolicy",
              "doc": "DisconnectPolicy returns the disconnect and reconnect policy currently configured on m.\n",
              "file": "pkg/input/disconnect.go",
              "line": 100
            },
            {
              "name": "DisconnectedPlayers",
              "anchor": "Players.DisconnectedPlayers",
              "recv": "*Players",
              "decl": "func (m *Players) DisconnectedPlayers() []*Player",
              "doc": "DisconnectedPlayers returns the player slots currently awaiting controller reconnect, in ascending slot index order, or nil if no player is disconnected.\n",
              "file": "pkg/input/disconnect.go",
              "line": 105
            },
            {
              "name": "Gamepads",
              "anchor": "Players.Gamepads",
              "recv": "*Players",
              "decl": "func (m *Players) Gamepads() []gamepad.Pad",
              "doc": "Gamepads returns a copy of the controller state m last read, sorted by controller ID.\n",
              "file": "pkg/input/players.go",
              "line": 446
            },
            {
              "name": "Len",
              "anchor": "Players.Len",
              "recv": "*Players",
              "decl": "func (m *Players) Len() int",
              "doc": "Len returns the number of player slots in m.\n",
              "file": "pkg/input/players.go",
              "line": 190
            },
            {
              "name": "NextUnassigned",
              "anchor": "Players.NextUnassigned",
              "recv": "*Players",
              "decl": "func (m *Players) NextUnassigned() *Player",
              "doc": "NextUnassigned returns the first player slot with no device assigned, or nil when every slot has a device.\n",
              "file": "pkg/input/players.go",
              "line": 211
            },
            {
              "name": "OnContextMenu",
              "anchor": "Players.OnContextMenu",
              "recv": "*Players",
              "decl": "func (m *Players) OnContextMenu(ev core.ContextMenuEvent)",
              "doc": "OnContextMenu forwards ev to every player assigned to pointer events.\n",
              "file": "pkg/input/players.go",
              "line": 626
            },
            {
              "name": "OnGamepads",
              "anchor": "Players.OnGamepads",
              "recv": "*Players",
              "decl": "func (m *Players) OnGamepads(pads []gamepad.Pad)",
              "doc": "OnGamepads replaces the controller state m reads with pads, such as synthetic or recorded controllers in a unit test or replay, routes each controller to its assigned player, processes any disconnect, reconnect, or press-to-reassign policy transitions, and latches any rising edges so a quick press between steps registers on the next Step.\n\nWhile WatchGamepads has a live scope attached, the next Step replaces pads with the live controllers.\n",
              "file": "pkg/input/players.go",
              "line": 439
            },
            {
              "name": "OnKeyDown",
              "anchor": "Players.OnKeyDown",
              "recv": "*Players",
              "decl": "func (m *Players) OnKeyDown(ev core.KeyEvent) bool",
              "doc": "OnKeyDown forwards ev to every player assigned to the keyboard and reports whether any of them consumed it.\n",
              "file": "pkg/input/players.go",
              "line": 561
            },
            {
              "name": "OnKeyUp",
              "anchor": "Players.OnKeyUp",
              "recv": "*Players",
              "decl": "func (m *Players) OnKeyUp(ev core.KeyEvent)",
              "doc": "OnKeyUp forwards ev to every player assigned to the keyboard.\n",
              "file": "pkg/input/players.go",
              "line": 572
            },
            {
              "name": "OnMouseLeave",
              "anchor": "Players.OnMouseLeave",
              "recv": "*Players",
              "decl": "func (m *Players) OnMouseLeave(ev core.MouseEvent)",
              "doc": "OnMouseLeave forwards ev to every player assigned to pointer events.\n",
              "file": "pkg/input/players.go",
              "line": 617
            },
            {
              "name": "OnMouseMove",
              "anchor": "Players.OnMouseMove",
              "recv": "*Players",
              "decl": "func (m *Players) OnMouseMove(ev core.MouseEvent)",
              "doc": "OnMouseMove forwards ev to every player assigned to pointer events.\n",
              "file": "pkg/input/players.go",
              "line": 608
            },
            {
              "name": "OnPointerDelta",
              "anchor": "Players.OnPointerDelta",
              "recv": "*Players",
              "decl": "func (m *Players) OnPointerDelta(dx, dy float64)",
              "doc": "OnPointerDelta forwards relative pointer motion to every player assigned to pointer events.\n",
              "file": "pkg/input/players.go",
              "line": 635
            },
            {
              "name": "OnPressDown",
              "anchor": "Players.OnPressDown",
              "recv": "*Players",
              "decl": "func (m *Players) OnPressDown(ev core.PressEvent)",
              "doc": "OnPressDown forwards ev to every player assigned to pointer events.\n",
              "file": "pkg/input/players.go",
              "line": 590
            },
            {
              "name": "OnPressUp",
              "anchor": "Players.OnPressUp",
              "recv": "*Players",
              "decl": "func (m *Players) OnPressUp(ev core.PressEvent)",
              "doc": "OnPressUp forwards ev to every player assigned to pointer events.\n",
              "file": "pkg/input/players.go",
              "line": 599
            },
            {
              "name": "OnTouch",
              "anchor": "Players.OnTouch",
              "recv": "*Players",
              "decl": "func (m *Players) OnTouch(ev core.TouchEvent)",
              "doc": "OnTouch forwards ev to every player assigned to pointer events.\n",
              "file": "pkg/input/players.go",
              "line": 581
            },
            {
              "name": "PausedByDisconnect",
              "anchor": "Players.PausedByDisconnect",
              "recv": "*Players",
              "decl": "func (m *Players) PausedByDisconnect() bool",
              "doc": "PausedByDisconnect reports whether m has paused gameplay via DisconnectPolicy.PauseOnDisconnect because at least one disconnected player is awaiting a controller without fallback.\n",
              "file": "pkg/input/disconnect.go",
              "line": 116
            },
            {
              "name": "Player",
              "anchor": "Players.Player",
              "recv": "*Players",
              "decl": "func (m *Players) Player(index int) *Player",
              "doc": "Player returns the player at slot index, or nil if index is out of range.\n",
              "file": "pkg/input/players.go",
              "line": 195
            },
            {
              "name": "PlayerByGamepad",
              "anchor": "Players.PlayerByGamepad",
              "recv": "*Players",
              "decl": "func (m *Players) PlayerByGamepad(padID int) *Player",
              "doc": "PlayerByGamepad returns the player currently assigned to controller padID, or nil if no player owns padID.\n",
              "file": "pkg/input/players.go",
              "line": 221
            },
            {
              "name": "PollGamepads",
              "anchor": "Players.PollGamepads",
              "recv": "*Players",
              "decl": "func (m *Players) PollGamepads()",
              "doc": "PollGamepads reads the live controllers once from the scope passed to WatchGamepads, processes any controller disconnect, reconnect, or press-to-reassign transitions, and updates each player's controller state without stepping Actions.\n\nWhen WatchGamepads has a live scope and a DisconnectPolicy is configured, Players automatically polls on display frames while any player is awaiting reconnect so a paused game.Loop resumes once a controller reconnects or presses a button. Call PollGamepads directly if you drive polling outside game.Loop.\n",
              "file": "pkg/input/disconnect.go",
              "line": 123
            },
            {
              "name": "Reset",
              "anchor": "Players.Reset",
              "recv": "*Players",
              "decl": "func (m *Players) Reset()",
              "doc": "Reset calls Reset on every player's Actions and clears m's last controller snapshot, keeping all player slots, bindings, and device assignments. Held keys and controller buttons stay inactive until released, matching Actions.Reset.\n",
              "file": "pkg/input/players.go",
              "line": 501
            },
            {
              "name": "SetDisconnectPolicy",
              "anchor": "Players.SetDisconnectPolicy",
              "recv": "*Players",
              "decl": "func (m *Players) SetDisconnectPolicy(policy DisconnectPolicy)",
              "doc": "SetDisconnectPolicy configures how m handles mid-game controller disconnects, reconnections, press-to-reassign recovery, and single-player keyboard/touch fallback.\n\nUpdating the policy while players are already disconnected immediately applies fallback and pause transitions to match the new policy.\n",
              "file": "pkg/input/disconnect.go",
              "line": 83
            },
            {
              "name": "Step",
              "anchor": "Players.Step",
              "recv": "*Players",
              "decl": "func (m *Players) Step()",
              "doc": "Step polls live controllers once (when WatchGamepads is attached), reconciles any mid-game controller disconnects, reconnects, or press-to-reassign transitions, routes controllers to their assigned players, steps every player's Actions, and delivers any DisconnectPolicy callbacks. Call it once at the start of each game.Loop.Update step.\n",
              "file": "pkg/input/players.go",
              "line": 490
            },
            {
              "name": "Unassign",
              "anchor": "Players.Unassign",
              "recv": "*Players",
              "decl": "func (m *Players) Unassign(index int) bool",
              "doc": "Unassign removes all device assignments (controller, keyboard, and pointer) from player index and releases any inputs they held. Returns false if index is out of range.\n",
              "file": "pkg/input/players.go",
              "line": 363
            },
            {
              "name": "UnassignGamepad",
              "anchor": "Players.UnassignGamepad",
              "recv": "*Players",
              "decl": "func (m *Players) UnassignGamepad(index int) bool",
              "doc": "UnassignGamepad removes the controller assignment from player index and releases any inputs it held. Returns false if index is out of range or player index had no controller assigned.\n",
              "file": "pkg/input/players.go",
              "line": 274
            },
            {
              "name": "UnassignKeyboard",
              "anchor": "Players.UnassignKeyboard",
              "recv": "*Players",
              "decl": "func (m *Players) UnassignKeyboard(index int) bool",
              "doc": "UnassignKeyboard stops routing keyboard events from m to player index and releases any keys held on that player. Returns false if index is out of range or player index was not assigned to the keyboard.\n",
              "file": "pkg/input/players.go",
              "line": 320
            },
            {
              "name": "UnassignPointer",
              "anchor": "Players.UnassignPointer",
              "recv": "*Players",
              "decl": "func (m *Players) UnassignPointer(index int) bool",
              "doc": "UnassignPointer stops routing touch, mouse, and pointer-lock events from m to player index and releases any touches, held mouse buttons, or pending pointer deltas on that player. Returns false if index is out of range or player index was not assigned to pointer events.\n",
              "file": "pkg/input/players.go",
              "line": 349
            },
            {
              "name": "UnassignedGamepads",
              "anchor": "Players.UnassignedGamepads",
              "recv": "*Players",
              "decl": "func (m *Players) UnassignedGamepads() []gamepad.Pad",
              "doc": "UnassignedGamepads returns a copy of the controllers m last read that are not currently assigned to any player, sorted by controller ID.\n",
              "file": "pkg/input/players.go",
              "line": 451
            },
            {
              "name": "WatchGamepads",
              "anchor": "Players.WatchGamepads",
              "recv": "*Players",
              "decl": "func (m *Players) WatchGamepads(cx *core.Scope)",
              "doc": "WatchGamepads makes m poll connected controllers from cx's app once on every Step with gamepad.Pads and route each controller to the player assigned to its ID.\n\nPolling stops once cx is disposed, and while cx's core.Access refuses core.AccessGamepad no controller is read. Passing nil stops watching and releases every controller input across all players.\n",
              "file": "pkg/input/players.go",
              "line": 408
            },
            {
              "name": "WatchKeys",
              "anchor": "Players.WatchKeys",
              "recv": "*Players",
              "decl": "func (m *Players) WatchKeys(cx *core.Scope) (stop func())",
              "doc": "WatchKeys watches the keys held anywhere on cx's window once and routes them to every player assigned to the keyboard (AssignKeyboard), until cx is disposed, WatchKeys is called again, or stop is called, which releases watched keys on every player.\n",
              "file": "pkg/input/players.go",
              "line": 462
            }
          ]
        },
        {
          "name": "PointerAxis",
          "anchor": "PointerAxis",
          "decl": "type PointerAxis uint8",
          "doc": "PointerAxis identifies one direction of the relative mouse motion a view hears while it holds the pointer lock.\n",
          "file": "pkg/input/pointer.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PointerAxisNone",
                  "anchor": "PointerAxisNone"
                },
                {
                  "name": "PointerX",
                  "anchor": "PointerX"
                },
                {
                  "name": "PointerY",
                  "anchor": "PointerY"
                }
              ],
              "decl": "const (\n\t// PointerAxisNone is the zero PointerAxis, which always reads 0.\n\tPointerAxisNone PointerAxis = iota\n\t// PointerX is relative motion to the right, in the units NSGo's View.OnPointerDelta reports; motion to the left is negative.\n\tPointerX\n\t// PointerY is relative motion down, in the units NSGo's View.OnPointerDelta reports; motion up is negative.\n\tPointerY\n)",
              "doc": "",
              "file": "pkg/input/pointer.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "PointerAxis.String",
              "recv": "PointerAxis",
              "decl": "func (p PointerAxis) String() string",
              "doc": "String returns a stable name for p.\n",
              "file": "pkg/input/pointer.go",
              "line": 23
            }
          ]
        },
        {
          "name": "PointerAxisOptions",
          "anchor": "PointerAxisOptions",
          "decl": "type PointerAxisOptions struct {\n\t// Sensitivity multiplies the motion, such as radians of camera turn per unit of motion (1 when zero, negative or not finite).\n\tSensitivity float64\n\t// Invert negates the motion, as an inverted look axis does.\n\tInvert bool\n}",
          "doc": "PointerAxisOptions configures how one bound pointer axis scales relative mouse motion.\n",
          "file": "pkg/input/pointer.go",
          "line": 61,
          "members": [
            {
              "name": "Sensitivity",
              "anchor": "PointerAxisOptions.Sensitivity",
              "kind": "field",
              "doc": "Sensitivity multiplies the motion, such as radians of camera turn per unit of motion (1 when zero, negative or not finite)."
            },
            {
              "name": "Invert",
              "anchor": "PointerAxisOptions.Invert",
              "kind": "field",
              "doc": "Invert negates the motion, as an inverted look axis does."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Prompt",
          "anchor": "Prompt",
          "decl": "type Prompt struct {\n\t// Label is the human-readable prompt text, such as \"Tap Jump\", \"Click\", \"[Space]\", \"[A]\", or \"[Cross]\".\n\tLabel string\n\t// Icon is an optional icon asset or sprite key, such as \"key_space\" or \"gamepad_ps_cross\".\n\tIcon string\n\t// Glyph is an optional compact button or key symbol, such as \"Space\", \"A\", or \"Cross\".\n\tGlyph string\n}",
          "doc": "Prompt describes how an action should be shown in a HUD for a specific input device.\n",
          "file": "pkg/input/prompts.go",
          "line": 271,
          "members": [
            {
              "name": "Label",
              "anchor": "Prompt.Label",
              "kind": "field",
              "doc": "Label is the human-readable prompt text, such as \"Tap Jump\", \"Click\", \"[Space]\", \"[A]\", or \"[Cross]\"."
            },
            {
              "name": "Icon",
              "anchor": "Prompt.Icon",
              "kind": "field",
              "doc": "Icon is an optional icon asset or sprite key, such as \"key_space\" or \"gamepad_ps_cross\"."
            },
            {
              "name": "Glyph",
              "anchor": "Prompt.Glyph",
              "kind": "field",
              "doc": "Glyph is an optional compact button or key symbol, such as \"Space\", \"A\", or \"Cross\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PromptTable",
          "anchor": "PromptTable",
          "decl": "type PromptTable struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PromptTable maps (action, DeviceKind) pairs to HUD Prompts with a device fallback chain.\n\nThe zero value is ready to use.\n",
          "file": "pkg/input/prompts.go",
          "line": 283,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultPromptTable",
              "anchor": "DefaultPromptTable",
              "decl": "func DefaultPromptTable() *PromptTable",
              "doc": "DefaultPromptTable returns a PromptTable pre-populated with prompts for common game actions across touch, mouse, keyboard, and Xbox/PlayStation/Nintendo/generic gamepads.\n",
              "file": "pkg/input/prompts.go",
              "line": 293
            },
            {
              "name": "NewPromptTable",
              "anchor": "NewPromptTable",
              "decl": "func NewPromptTable() *PromptTable",
              "doc": "NewPromptTable returns an empty PromptTable.\n",
              "file": "pkg/input/prompts.go",
              "line": 288
            }
          ],
          "methods": [
            {
              "name": "Delete",
              "anchor": "PromptTable.Delete",
              "recv": "*PromptTable",
              "decl": "func (t *PromptTable) Delete(action string, device DeviceKind)",
              "doc": "Delete removes the prompt registered for (action, device).\n",
              "file": "pkg/input/prompts.go",
              "line": 385
            },
            {
              "name": "Lookup",
              "anchor": "PromptTable.Lookup",
              "recv": "*PromptTable",
              "decl": "func (t *PromptTable) Lookup(action string, device DeviceKind) (Prompt, bool)",
              "doc": "Lookup returns the prompt explicitly registered for (action, device) without consulting the fallback chain.\n",
              "file": "pkg/input/prompts.go",
              "line": 395
            },
            {
              "name": "Prompt",
              "anchor": "PromptTable.Prompt",
              "recv": "*PromptTable",
              "decl": "func (t *PromptTable) Prompt(action string, device DeviceKind) Prompt",
              "doc": "Prompt resolves the prompt for (action, device) using the device fallback chain (e.g. GamepadPlayStation -> GamepadGeneric -> Keyboard -> action name).\n",
              "file": "pkg/input/prompts.go",
              "line": 404
            },
            {
              "name": "PromptFor",
              "anchor": "PromptTable.PromptFor",
              "recv": "*PromptTable",
              "decl": "func (t *PromptTable) PromptFor(action string, tracker *DeviceTracker) Prompt",
              "doc": "PromptFor resolves the prompt for action using tracker.LastDevice(), subscribing any active reactive computation to device changes.\n",
              "file": "pkg/input/prompts.go",
              "line": 416
            },
            {
              "name": "Set",
              "anchor": "PromptTable.Set",
              "recv": "*PromptTable",
              "decl": "func (t *PromptTable) Set(action string, device DeviceKind, prompt Prompt)",
              "doc": "Set stores prompt for (action, device).\n",
              "file": "pkg/input/prompts.go",
              "line": 362
            },
            {
              "name": "SetMany",
              "anchor": "PromptTable.SetMany",
              "recv": "*PromptTable",
              "decl": "func (t *PromptTable) SetMany(action string, prompts map[DeviceKind]Prompt)",
              "doc": "SetMany stores multiple per-device prompts for action.\n",
              "file": "pkg/input/prompts.go",
              "line": 378
            }
          ]
        },
        {
          "name": "ReconnectEvent",
          "anchor": "ReconnectEvent",
          "decl": "type ReconnectEvent struct {\n\t// PlayerIndex is the 0-based index of the recovered player slot.\n\tPlayerIndex int\n\t// Player is the recovered player slot.\n\tPlayer *Player\n\t// PreviousGamepadID is the controller ID that had disconnected.\n\tPreviousGamepadID int\n\t// NewGamepadID is the controller ID now assigned to the player.\n\tNewGamepadID int\n\t// Reassigned reports whether NewGamepadID differs from PreviousGamepadID.\n\tReassigned bool\n\t// FallbackActive is false once controller control is restored.\n\tFallbackActive bool\n\t// ShouldPause reports whether Players still requires gameplay to remain paused after this reconnect (for example, because another player is still disconnected).\n\tShouldPause bool\n}",
          "doc": "ReconnectEvent describes a disconnected player recovering a game controller, either by reconnecting the same controller or by reassigning to another controller.\n",
          "file": "pkg/input/disconnect.go",
          "line": 42,
          "members": [
            {
              "name": "PlayerIndex",
              "anchor": "ReconnectEvent.PlayerIndex",
              "kind": "field",
              "doc": "PlayerIndex is the 0-based index of the recovered player slot."
            },
            {
              "name": "Player",
              "anchor": "ReconnectEvent.Player",
              "kind": "field",
              "doc": "Player is the recovered player slot."
            },
            {
              "name": "PreviousGamepadID",
              "anchor": "ReconnectEvent.PreviousGamepadID",
              "kind": "field",
              "doc": "PreviousGamepadID is the controller ID that had disconnected."
            },
            {
              "name": "NewGamepadID",
              "anchor": "ReconnectEvent.NewGamepadID",
              "kind": "field",
              "doc": "NewGamepadID is the controller ID now assigned to the player."
            },
            {
              "name": "Reassigned",
              "anchor": "ReconnectEvent.Reassigned",
              "kind": "field",
              "doc": "Reassigned reports whether NewGamepadID differs from PreviousGamepadID."
            },
            {
              "name": "FallbackActive",
              "anchor": "ReconnectEvent.FallbackActive",
              "kind": "field",
              "doc": "FallbackActive is false once controller control is restored."
            },
            {
              "name": "ShouldPause",
              "anchor": "ReconnectEvent.ShouldPause",
              "kind": "field",
              "doc": "ShouldPause reports whether Players still requires gameplay to remain paused after this reconnect (for example, because another player is still disconnected)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RumbleStep",
          "anchor": "RumbleStep",
          "decl": "type RumbleStep struct {\n\tLowFreq  float32\n\tHighFreq float32\n\tDuration time.Duration\n}",
          "doc": "RumbleStep is one segment of a rumble or haptic pattern.\nLowFreq and HighFreq are motor strengths in [0, 1]; setting both to 0 inserts a silent pause for Duration.\n",
          "file": "pkg/input/haptics.go",
          "line": 17,
          "members": [
            {
              "name": "LowFreq",
              "anchor": "RumbleStep.LowFreq",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HighFreq",
              "anchor": "RumbleStep.HighFreq",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "RumbleStep.Duration",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "VirtualButton",
          "anchor": "VirtualButton",
          "decl": "type VirtualButton struct {\n\t// Center and Radius define a circular button when Radius > 0.\n\tCenter core.Point\n\tRadius float32\n\t// Bounds defines a rectangular button when Radius <= 0.\n\tBounds core.Bounds\n\t// Label is optional text drawn centered inside the button.\n\tLabel string\n\t// Action is the action name driven by this button in VirtualPad and Actions.\n\tAction string\n\t// contains filtered or unexported fields\n}",
          "doc": "VirtualButton is a circular or rectangular on-screen button with multi-touch finger tracking.\n",
          "file": "pkg/input/virtual.go",
          "line": 308,
          "members": [
            {
              "name": "Center",
              "anchor": "VirtualButton.Center",
              "kind": "field",
              "doc": "Center and Radius define a circular button when Radius > 0."
            },
            {
              "name": "Radius",
              "anchor": "VirtualButton.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "VirtualButton.Bounds",
              "kind": "field",
              "doc": "Bounds defines a rectangular button when Radius <= 0."
            },
            {
              "name": "Label",
              "anchor": "VirtualButton.Label",
              "kind": "field",
              "doc": "Label is optional text drawn centered inside the button."
            },
            {
              "name": "Action",
              "anchor": "VirtualButton.Action",
              "kind": "field",
              "doc": "Action is the action name driven by this button in VirtualPad and Actions."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Contains",
              "anchor": "VirtualButton.Contains",
              "recv": "*VirtualButton",
              "decl": "func (b *VirtualButton) Contains(p core.Point) bool",
              "doc": "Contains reports whether p lies inside the button's circular or rectangular hit area.\n",
              "file": "pkg/input/virtual.go",
              "line": 328
            },
            {
              "name": "Draw",
              "anchor": "VirtualButton.Draw",
              "recv": "*VirtualButton",
              "decl": "func (b *VirtualButton) Draw(d *core.Drawing, style VirtualStyle)",
              "doc": "Draw draws the button and its optional label into d, leaving d's state unchanged.\n",
              "file": "pkg/input/virtual.go",
              "line": 398
            },
            {
              "name": "OnTouch",
              "anchor": "VirtualButton.OnTouch",
              "recv": "*VirtualButton",
              "decl": "func (b *VirtualButton) OnTouch(ev core.TouchEvent)",
              "doc": "OnTouch feeds a touch event directly to the button when used standalone without a VirtualPad.\n",
              "file": "pkg/input/virtual.go",
              "line": 344
            },
            {
              "name": "Pressed",
              "anchor": "VirtualButton.Pressed",
              "recv": "*VirtualButton",
              "decl": "func (b *VirtualButton) Pressed() bool",
              "doc": "Pressed reports whether at least one finger is currently pressing the button.\n",
              "file": "pkg/input/virtual.go",
              "line": 323
            },
            {
              "name": "Reset",
              "anchor": "VirtualButton.Reset",
              "recv": "*VirtualButton",
              "decl": "func (b *VirtualButton) Reset()",
              "doc": "Reset releases all fingers tracked by the button.\n",
              "file": "pkg/input/virtual.go",
              "line": 339
            }
          ]
        },
        {
          "name": "VirtualPad",
          "anchor": "VirtualPad",
          "decl": "type VirtualPad struct {\n\t// MapPoint, when set, transforms touch positions from view coordinates before hit-testing and updating sticks and buttons. Returning false ignores the touch point.\n\tMapPoint func(core.Point) (core.Point, bool)\n\tSticks   []*VirtualStick\n\tButtons  []*VirtualButton\n\t// contains filtered or unexported fields\n}",
          "doc": "VirtualPad owns a collection of VirtualSticks and VirtualButtons, routes multi-touch fingers without controls stealing each other's touches, optionally wires into Actions, and draws all controls into a core.Drawing.\n",
          "file": "pkg/input/virtual.go",
          "line": 451,
          "members": [
            {
              "name": "MapPoint",
              "anchor": "VirtualPad.MapPoint",
              "kind": "field",
              "doc": "MapPoint, when set, transforms touch positions from view coordinates before hit-testing and updating sticks and buttons. Returning false ignores the touch point."
            },
            {
              "name": "Sticks",
              "anchor": "VirtualPad.Sticks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Buttons",
              "anchor": "VirtualPad.Buttons",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewVirtualPad",
              "anchor": "NewVirtualPad",
              "decl": "func NewVirtualPad() *VirtualPad",
              "doc": "NewVirtualPad returns an empty VirtualPad.\n",
              "file": "pkg/input/virtual.go",
              "line": 462
            }
          ],
          "methods": [
            {
              "name": "AddButton",
              "anchor": "VirtualPad.AddButton",
              "recv": "*VirtualPad",
              "decl": "func (p *VirtualPad) AddButton(b *VirtualButton) *VirtualButton",
              "doc": "AddButton adds b to p and returns b.\n",
              "file": "pkg/input/virtual.go",
              "line": 475
            },
            {
              "name": "AddStick",
              "anchor": "VirtualPad.AddStick",
              "recv": "*VirtualPad",
              "decl": "func (p *VirtualPad) AddStick(s *VirtualStick) *VirtualStick",
              "doc": "AddStick adds s to p and returns s.\n",
              "file": "pkg/input/virtual.go",
              "line": 467
            },
            {
              "name": "Attach",
              "anchor": "VirtualPad.Attach",
              "recv": "*VirtualPad",
              "decl": "func (p *VirtualPad) Attach(v *core.View)",
              "doc": "Attach wires p.OnTouch onto v, chaining any existing v.OnTouch callback.\n",
              "file": "pkg/input/virtual.go",
              "line": 558
            },
            {
              "name": "Axis",
              "anchor": "VirtualPad.Axis",
              "recv": "*VirtualPad",
              "decl": "func (p *VirtualPad) Axis(name string) float64",
              "doc": "Axis returns the current axis value in [-1, 1] for name from p's sticks (or 1 if a button with Action == name is pressed).\n",
              "file": "pkg/input/virtual.go",
              "line": 506
            },
            {
              "name": "BindActions",
              "anchor": "VirtualPad.BindActions",
              "recv": "*VirtualPad",
              "decl": "func (p *VirtualPad) BindActions(a *Actions)",
              "doc": "BindActions connects p to a (or disconnects from any previous Actions when a is nil).\n",
              "file": "pkg/input/virtual.go",
              "line": 483
            },
            {
              "name": "Draw",
              "anchor": "VirtualPad.Draw",
              "recv": "*VirtualPad",
              "decl": "func (p *VirtualPad) Draw(d *core.Drawing, style VirtualStyle)",
              "doc": "Draw draws all sticks and buttons in p into d.\n",
              "file": "pkg/input/virtual.go",
              "line": 570
            },
            {
              "name": "OnTouch",
              "anchor": "VirtualPad.OnTouch",
              "recv": "*VirtualPad",
              "decl": "func (p *VirtualPad) OnTouch(ev core.TouchEvent)",
              "doc": "OnTouch routes ev to p's buttons and sticks so each touch finger stays owned by the control that captured it.\n",
              "file": "pkg/input/virtual.go",
              "line": 550
            },
            {
              "name": "Pressed",
              "anchor": "VirtualPad.Pressed",
              "recv": "*VirtualPad",
              "decl": "func (p *VirtualPad) Pressed(action string) bool",
              "doc": "Pressed reports whether any button in p bound to action is currently pressed.\n",
              "file": "pkg/input/virtual.go",
              "line": 493
            },
            {
              "name": "Reset",
              "anchor": "VirtualPad.Reset",
              "recv": "*VirtualPad",
              "decl": "func (p *VirtualPad) Reset()",
              "doc": "Reset releases all active sticks, buttons, and tracked finger ownership.\n",
              "file": "pkg/input/virtual.go",
              "line": 535
            }
          ]
        },
        {
          "name": "VirtualStick",
          "anchor": "VirtualStick",
          "decl": "type VirtualStick struct {\n\t// Name optionally identifies the stick. When AxisXName or AxisYName is empty and Name is set, VirtualPad exposes them as Name+\"_x\" and Name+\"_y\".\n\tName string\n\t// AxisXName and AxisYName name the horizontal and vertical axes exposed through VirtualPad.Axis and Actions.Axis.\n\tAxisXName string\n\tAxisYName string\n\t// Zone is the touch-down activation rectangle. On a fixed stick with an empty Zone, touches inside the circle (Center, Radius) activate it.\n\tZone core.Bounds\n\t// Center is the resting base center of the stick.\n\tCenter core.Point\n\t// Radius is the maximum travel radius of the knob in points.\n\tRadius float32\n\t// DeadZone is the radial dead-zone fraction in [0, 1). Displacements inside DeadZone*Radius yield 0; displacements beyond it rescale smoothly to [0, 1].\n\tDeadZone float32\n\t// Floating, when true, re-centers the stick's base on the touch-down point inside Zone and returns it to Center on release.\n\tFloating bool\n\n\t// AxisX and AxisY hold the stick's current normalized outputs in [-1, 1].\n\tAxisX float64\n\tAxisY float64\n\t// contains filtered or unexported fields\n}",
          "doc": "VirtualStick is a fixed or floating on-screen thumbstick that captures a single touch finger and outputs normalized AxisX and AxisY values in [-1, 1] with radial dead-zone rescaling.\n",
          "file": "pkg/input/virtual.go",
          "line": 91,
          "members": [
            {
              "name": "Name",
              "anchor": "VirtualStick.Name",
              "kind": "field",
              "doc": "Name optionally identifies the stick. When AxisXName or AxisYName is empty and Name is set, VirtualPad exposes them as Name+\"_x\" and Name+\"_y\"."
            },
            {
              "name": "AxisXName",
              "anchor": "VirtualStick.AxisXName",
              "kind": "field",
              "doc": "AxisXName and AxisYName name the horizontal and vertical axes exposed through VirtualPad.Axis and Actions.Axis."
            },
            {
              "name": "AxisYName",
              "anchor": "VirtualStick.AxisYName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zone",
              "anchor": "VirtualStick.Zone",
              "kind": "field",
              "doc": "Zone is the touch-down activation rectangle. On a fixed stick with an empty Zone, touches inside the circle (Center, Radius) activate it."
            },
            {
              "name": "Center",
              "anchor": "VirtualStick.Center",
              "kind": "field",
              "doc": "Center is the resting base center of the stick."
            },
            {
              "name": "Radius",
              "anchor": "VirtualStick.Radius",
              "kind": "field",
              "doc": "Radius is the maximum travel radius of the knob in points."
            },
            {
              "name": "DeadZone",
              "anchor": "VirtualStick.DeadZone",
              "kind": "field",
              "doc": "DeadZone is the radial dead-zone fraction in [0, 1). Displacements inside DeadZone*Radius yield 0; displacements beyond it rescale smoothly to [0, 1]."
            },
            {
              "name": "Floating",
              "anchor": "VirtualStick.Floating",
              "kind": "field",
              "doc": "Floating, when true, re-centers the stick's base on the touch-down point inside Zone and returns it to Center on release."
            },
            {
              "name": "AxisX",
              "anchor": "VirtualStick.AxisX",
              "kind": "field",
              "doc": "AxisX and AxisY hold the stick's current normalized outputs in [-1, 1]."
            },
            {
              "name": "AxisY",
              "anchor": "VirtualStick.AxisY",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Active",
              "anchor": "VirtualStick.Active",
              "recv": "*VirtualStick",
              "decl": "func (s *VirtualStick) Active() bool",
              "doc": "Active reports whether a touch finger is currently captured by the stick.\n",
              "file": "pkg/input/virtual.go",
              "line": 119
            },
            {
              "name": "BasePosition",
              "anchor": "VirtualStick.BasePosition",
              "recv": "*VirtualStick",
              "decl": "func (s *VirtualStick) BasePosition() core.Point",
              "doc": "BasePosition returns the current center of the stick's base ring.\n",
              "file": "pkg/input/virtual.go",
              "line": 124
            },
            {
              "name": "Draw",
              "anchor": "VirtualStick.Draw",
              "recv": "*VirtualStick",
              "decl": "func (s *VirtualStick) Draw(d *core.Drawing, style VirtualStyle)",
              "doc": "Draw draws the stick's base ring and knob into d, leaving d's state unchanged.\n",
              "file": "pkg/input/virtual.go",
              "line": 195
            },
            {
              "name": "KnobPosition",
              "anchor": "VirtualStick.KnobPosition",
              "recv": "*VirtualStick",
              "decl": "func (s *VirtualStick) KnobPosition() core.Point",
              "doc": "KnobPosition returns the current center of the stick's thumb knob.\n",
              "file": "pkg/input/virtual.go",
              "line": 132
            },
            {
              "name": "OnTouch",
              "anchor": "VirtualStick.OnTouch",
              "recv": "*VirtualStick",
              "decl": "func (s *VirtualStick) OnTouch(ev core.TouchEvent)",
              "doc": "OnTouch feeds a touch event directly to the stick when used standalone without a VirtualPad.\n",
              "file": "pkg/input/virtual.go",
              "line": 150
            },
            {
              "name": "Reset",
              "anchor": "VirtualStick.Reset",
              "recv": "*VirtualStick",
              "decl": "func (s *VirtualStick) Reset()",
              "doc": "Reset releases any captured finger and returns the stick to its neutral center.\n",
              "file": "pkg/input/virtual.go",
              "line": 140
            }
          ]
        },
        {
          "name": "VirtualStyle",
          "anchor": "VirtualStyle",
          "decl": "type VirtualStyle struct {\n\tBaseFill           core.Color\n\tBaseStroke         core.Color\n\tBaseStrokeWidth    float32\n\tKnobFill           core.Color\n\tKnobActiveFill     core.Color\n\tKnobRadiusRatio    float32\n\tButtonFill         core.Color\n\tButtonPressedFill  core.Color\n\tButtonStroke       core.Color\n\tButtonStrokeWidth  float32\n\tButtonCornerRadius float32\n\tLabelColor         core.Color\n\tLabelFont          core.Font\n}",
          "doc": "VirtualStyle controls how VirtualStick and VirtualButton draw themselves into a core.Drawing.\n\nZero fields fall back to DefaultVirtualStyle so VirtualStyle{} draws a visible default overlay.\n",
          "file": "pkg/input/virtual.go",
          "line": 14,
          "members": [
            {
              "name": "BaseFill",
              "anchor": "VirtualStyle.BaseFill",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseStroke",
              "anchor": "VirtualStyle.BaseStroke",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseStrokeWidth",
              "anchor": "VirtualStyle.BaseStrokeWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KnobFill",
              "anchor": "VirtualStyle.KnobFill",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KnobActiveFill",
              "anchor": "VirtualStyle.KnobActiveFill",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KnobRadiusRatio",
              "anchor": "VirtualStyle.KnobRadiusRatio",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ButtonFill",
              "anchor": "VirtualStyle.ButtonFill",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ButtonPressedFill",
              "anchor": "VirtualStyle.ButtonPressedFill",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ButtonStroke",
              "anchor": "VirtualStyle.ButtonStroke",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ButtonStrokeWidth",
              "anchor": "VirtualStyle.ButtonStrokeWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ButtonCornerRadius",
              "anchor": "VirtualStyle.ButtonCornerRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelColor",
              "anchor": "VirtualStyle.LabelColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelFont",
              "anchor": "VirtualStyle.LabelFont",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultVirtualStyle",
              "anchor": "DefaultVirtualStyle",
              "decl": "func DefaultVirtualStyle() VirtualStyle",
              "doc": "DefaultVirtualStyle returns a translucent white-on-dark overlay style for virtual sticks and buttons.\n",
              "file": "pkg/input/virtual.go",
              "line": 31
            }
          ],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/inventory",
      "name": "inventory",
      "dir": "pkg/inventory",
      "page": "pkg/inventory",
      "synopsis": "Package inventory holds gameplay items: item definitions read from versioned YAML, slot-based containers of item stacks, typed equipment slots, and snapshots that round-trip through a game/save Store.",
      "doc": "Package inventory holds gameplay items: item definitions read from versioned YAML, slot-based containers of item stacks, typed equipment slots, and snapshots that round-trip through a game/save Store.\n\n# Item definitions\n\nA Catalog is the set of ItemDef values a game knows, parsed from a version 1 YAML document with Parse (unknown fields, duplicate IDs and trailing documents are refused) or built in code with NewCatalog. Catalog.Encode writes deterministic 2-space YAML that Parse reads back unchanged. Each definition names its maximum stack size (1 when omitted), the equipment kind it fits, if any, and free-form tags and numeric stats.\n\n# Containers\n\nA Container is a fixed number of slots, each empty or holding one Stack of a single item no larger than that item's maximum stack. Add tops up existing stacks of the item in slot order before filling empty slots in slot order, and returns what did not fit; AddAll adds everything or nothing. Remove takes items from the last matching slot backwards. MoveTo moves a whole stack into an empty slot, merges it into a stack of the same item as far as that stack has room, or swaps it with a different item; SplitTo moves part of a stack; Transfer quick-moves a stack into another container. Every operation that returns an error leaves both containers unchanged.\n\n# Equipment\n\nEquipment is a set of named slots, each accepting items whose ItemDef.Equip equals the slot's kind (two \"ring\" slots can share one kind). Equip takes one item from a container slot and returns the item it replaces to the container; Unequip returns the equipped item to a container. Both are all-or-nothing.\n\n# Saving\n\nContainer.Snapshot and Equipment.Snapshot return plain JSON-tagged values to store in a save slot alongside the rest of a game's state; Restore validates a snapshot against the catalog (unknown items, oversized stacks, out-of-range slots and wrong equipment kinds are refused) before replacing anything.\n\nNothing in inventory reads the clock, spawns goroutines or keeps package-level state, so it is deterministic and safe to run on a headless server. A Container or Equipment is not safe for concurrent use.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the item catalog schema version this package reads and writes.\n",
          "file": "pkg/inventory/catalog.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "MaxContainerSize",
              "anchor": "MaxContainerSize"
            }
          ],
          "decl": "const MaxContainerSize = 1 << 16",
          "doc": "MaxContainerSize is the largest number of slots a Container may have.\n",
          "file": "pkg/inventory/catalog.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "MaxStackLimit",
              "anchor": "MaxStackLimit"
            }
          ],
          "decl": "const MaxStackLimit = 1 << 30",
          "doc": "MaxStackLimit is the largest MaxStack an item definition may declare.\n",
          "file": "pkg/inventory/catalog.go",
          "line": 20
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrUnknownItem",
              "anchor": "ErrUnknownItem"
            },
            {
              "name": "ErrInvalidCount",
              "anchor": "ErrInvalidCount"
            },
            {
              "name": "ErrSlotOutOfRange",
              "anchor": "ErrSlotOutOfRange"
            },
            {
              "name": "ErrEmptySlot",
              "anchor": "ErrEmptySlot"
            },
            {
              "name": "ErrSlotOccupied",
              "anchor": "ErrSlotOccupied"
            },
            {
              "name": "ErrFull",
              "anchor": "ErrFull"
            },
            {
              "name": "ErrNotEnough",
              "anchor": "ErrNotEnough"
            },
            {
              "name": "ErrCatalogMismatch",
              "anchor": "ErrCatalogMismatch"
            }
          ],
          "decl": "var (\n\t// ErrUnknownItem reports an item ID the catalog does not define.\n\tErrUnknownItem = errors.New(\"inventory: unknown item\")\n\t// ErrInvalidCount reports a non-positive count, or a count larger than a stack holds.\n\tErrInvalidCount = errors.New(\"inventory: invalid count\")\n\t// ErrSlotOutOfRange reports a container slot index outside [0, Len).\n\tErrSlotOutOfRange = errors.New(\"inventory: slot out of range\")\n\t// ErrEmptySlot reports an operation that needs an item in a slot that holds none.\n\tErrEmptySlot = errors.New(\"inventory: slot is empty\")\n\t// ErrSlotOccupied reports a destination slot holding a different item, or one without room for the items being moved.\n\tErrSlotOccupied = errors.New(\"inventory: slot is occupied\")\n\t// ErrFull reports that a container has no room for all of the items asked for.\n\tErrFull = errors.New(\"inventory: container is full\")\n\t// ErrNotEnough reports a container holding fewer of an item than asked for.\n\tErrNotEnough = errors.New(\"inventory: not enough items\")\n\t// ErrCatalogMismatch reports an operation across containers or equipment built from different catalogs.\n\tErrCatalogMismatch = errors.New(\"inventory: different catalogs\")\n)",
          "doc": "",
          "file": "pkg/inventory/container.go",
          "line": 8
        },
        {
          "idents": [
            {
              "name": "ErrUnknownEquipSlot",
              "anchor": "ErrUnknownEquipSlot"
            },
            {
              "name": "ErrNotEquippable",
              "anchor": "ErrNotEquippable"
            }
          ],
          "decl": "var (\n\t// ErrUnknownEquipSlot reports an equipment slot name the Equipment does not have.\n\tErrUnknownEquipSlot = errors.New(\"inventory: unknown equipment slot\")\n\t// ErrNotEquippable reports an item whose equipment kind does not match the slot's kind.\n\tErrNotEquippable = errors.New(\"inventory: item does not fit equipment slot\")\n)",
          "doc": "",
          "file": "pkg/inventory/equipment.go",
          "line": 8
        }
      ],
      "funcs": [],
      "types": [
        {
          "name": "Catalog",
          "anchor": "Catalog",
          "decl": "type Catalog struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Catalog is an immutable, validated set of item definitions. Build one with Parse or NewCatalog.\n",
          "file": "pkg/inventory/catalog.go",
          "line": 77,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCatalog",
              "anchor": "NewCatalog",
              "decl": "func NewCatalog(defs ...ItemDef) (*Catalog, error)",
              "doc": "NewCatalog validates defs and returns a catalog holding copies of them in the given order.\n",
              "file": "pkg/inventory/catalog.go",
              "line": 83
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Catalog, error)",
              "doc": "Parse decodes a version 1 YAML item catalog and validates it. Unknown fields, duplicate item IDs, invalid definitions and trailing YAML documents are refused.\n",
              "file": "pkg/inventory/catalog.go",
              "line": 107
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "Catalog.Encode",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Encode() ([]byte, error)",
              "doc": "Encode writes the catalog as deterministic 2-space YAML (definitions in catalog order, stats keys sorted) that Parse reads back unchanged.\n",
              "file": "pkg/inventory/catalog.go",
              "line": 153
            },
            {
              "name": "Has",
              "anchor": "Catalog.Has",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Has(id string) bool",
              "doc": "Has reports whether the catalog defines id.\n",
              "file": "pkg/inventory/catalog.go",
              "line": 181
            },
            {
              "name": "Item",
              "anchor": "Catalog.Item",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Item(id string) (ItemDef, bool)",
              "doc": "Item returns a copy of the definition with the given ID.\n",
              "file": "pkg/inventory/catalog.go",
              "line": 172
            },
            {
              "name": "Items",
              "anchor": "Catalog.Items",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Items() []ItemDef",
              "doc": "Items returns copies of every definition in catalog order.\n",
              "file": "pkg/inventory/catalog.go",
              "line": 187
            },
            {
              "name": "Len",
              "anchor": "Catalog.Len",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Len() int",
              "doc": "Len returns the number of definitions in the catalog.\n",
              "file": "pkg/inventory/catalog.go",
              "line": 196
            }
          ]
        },
        {
          "name": "Container",
          "anchor": "Container",
          "decl": "type Container struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Container is a fixed number of slots holding item stacks from one Catalog. The zero Container is not usable; create one with NewContainer.\n",
          "file": "pkg/inventory/container.go",
          "line": 39,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewContainer",
              "anchor": "NewContainer",
              "decl": "func NewContainer(catalog *Catalog, size int) (*Container, error)",
              "doc": "NewContainer returns an empty container with size slots, in [1, MaxContainerSize], holding items from catalog.\n",
              "file": "pkg/inventory/container.go",
              "line": 45
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Container.Add",
              "recv": "*Container",
              "decl": "func (c *Container) Add(item string, count int) (remaining int, err error)",
              "doc": "Add puts up to count of item into the container and returns how many did not fit. It first tops up existing stacks of item in slot order, then fills empty slots in slot order. It returns ErrUnknownItem or ErrInvalidCount, adding nothing, when item is not in the catalog or count is not positive.\n",
              "file": "pkg/inventory/container.go",
              "line": 120
            },
            {
              "name": "AddAll",
              "anchor": "Container.AddAll",
              "recv": "*Container",
              "decl": "func (c *Container) AddAll(item string, count int) error",
              "doc": "AddAll puts all count of item into the container the way Add does, or returns ErrFull and adds nothing when they do not all fit.\n",
              "file": "pkg/inventory/container.go",
              "line": 153
            },
            {
              "name": "Catalog",
              "anchor": "Container.Catalog",
              "recv": "*Container",
              "decl": "func (c *Container) Catalog() *Catalog",
              "doc": "Catalog returns the catalog the container's items come from.\n",
              "file": "pkg/inventory/container.go",
              "line": 56
            },
            {
              "name": "Clear",
              "anchor": "Container.Clear",
              "recv": "*Container",
              "decl": "func (c *Container) Clear()",
              "doc": "Clear empties every slot.\n",
              "file": "pkg/inventory/container.go",
              "line": 209
            },
            {
              "name": "Count",
              "anchor": "Container.Count",
              "recv": "*Container",
              "decl": "func (c *Container) Count(item string) int",
              "doc": "Count returns how many of item the container holds across all slots.\n",
              "file": "pkg/inventory/container.go",
              "line": 77
            },
            {
              "name": "IsEmpty",
              "anchor": "Container.IsEmpty",
              "recv": "*Container",
              "decl": "func (c *Container) IsEmpty() bool",
              "doc": "IsEmpty reports whether every slot is empty.\n",
              "file": "pkg/inventory/container.go",
              "line": 88
            },
            {
              "name": "Len",
              "anchor": "Container.Len",
              "recv": "*Container",
              "decl": "func (c *Container) Len() int",
              "doc": "Len returns the number of slots.\n",
              "file": "pkg/inventory/container.go",
              "line": 59
            },
            {
              "name": "Move",
              "anchor": "Container.Move",
              "recv": "*Container",
              "decl": "func (c *Container) Move(from, to int) error",
              "doc": "Move moves the stack in slot from to slot to within the container, as MoveTo does.\n",
              "file": "pkg/inventory/container.go",
              "line": 214
            },
            {
              "name": "MoveTo",
              "anchor": "Container.MoveTo",
              "recv": "*Container",
              "decl": "func (c *Container) MoveTo(from int, dst *Container, to int) error",
              "doc": "MoveTo moves the whole stack in slot from into slot to of dst, which may be c itself:\n  - into an empty slot, the stack moves there;\n  - onto a stack of the same item, as many as that stack has room for merge into it and the rest stay in from;\n  - onto a different item, the two stacks swap.\n\nMoving a slot onto itself does nothing. It returns ErrEmptySlot when slot from is empty and ErrCatalogMismatch when dst uses a different catalog.\n",
              "file": "pkg/inventory/container.go",
              "line": 224
            },
            {
              "name": "Remove",
              "anchor": "Container.Remove",
              "recv": "*Container",
              "decl": "func (c *Container) Remove(item string, count int) error",
              "doc": "Remove takes count of item out of the container, from the last slot holding it backwards, or returns ErrNotEnough and removes nothing when the container holds fewer.\n",
              "file": "pkg/inventory/container.go",
              "line": 166
            },
            {
              "name": "RemoveAt",
              "anchor": "Container.RemoveAt",
              "recv": "*Container",
              "decl": "func (c *Container) RemoveAt(i, count int) (Stack, error)",
              "doc": "RemoveAt takes count items out of slot i and returns them as a Stack. It returns ErrEmptySlot for an empty slot and ErrInvalidCount when count is not in [1, the slot's count].\n",
              "file": "pkg/inventory/container.go",
              "line": 189
            },
            {
              "name": "Restore",
              "anchor": "Container.Restore",
              "recv": "*Container",
              "decl": "func (c *Container) Restore(st ContainerState) error",
              "doc": "Restore replaces the container's contents with st after checking every entry: the slot must be in range and listed once, the item defined by the catalog, and the count in [1, the item's maximum stack]. On error the container is left unchanged.\n",
              "file": "pkg/inventory/container.go",
              "line": 382
            },
            {
              "name": "Room",
              "anchor": "Container.Room",
              "recv": "*Container",
              "decl": "func (c *Container) Room(item string) int",
              "doc": "Room returns how many more of item the container can hold: the free space in its stacks of item plus a full stack per empty slot. It returns 0 for an item the catalog does not define.\n",
              "file": "pkg/inventory/container.go",
              "line": 98
            },
            {
              "name": "Slot",
              "anchor": "Container.Slot",
              "recv": "*Container",
              "decl": "func (c *Container) Slot(i int) Stack",
              "doc": "Slot returns the stack in slot i, or an empty Stack when i is out of range.\n",
              "file": "pkg/inventory/container.go",
              "line": 62
            },
            {
              "name": "Slots",
              "anchor": "Container.Slots",
              "recv": "*Container",
              "decl": "func (c *Container) Slots() []Stack",
              "doc": "Slots returns a copy of every slot in order.\n",
              "file": "pkg/inventory/container.go",
              "line": 70
            },
            {
              "name": "Snapshot",
              "anchor": "Container.Snapshot",
              "recv": "*Container",
              "decl": "func (c *Container) Snapshot() ContainerState",
              "doc": "Snapshot returns the container's non-empty slots in ascending order.\n",
              "file": "pkg/inventory/container.go",
              "line": 371
            },
            {
              "name": "Split",
              "anchor": "Container.Split",
              "recv": "*Container",
              "decl": "func (c *Container) Split(from, to, count int) error",
              "doc": "Split moves count items from slot from to slot to within the container, as SplitTo does.\n",
              "file": "pkg/inventory/container.go",
              "line": 257
            },
            {
              "name": "SplitTo",
              "anchor": "Container.SplitTo",
              "recv": "*Container",
              "decl": "func (c *Container) SplitTo(from int, dst *Container, to int, count int) error",
              "doc": "SplitTo moves count items, in [1, the stack's count], from slot from into slot to of dst, which must be empty or hold the same item with room for all count. It returns ErrSlotOccupied, moving nothing, when slot to holds a different item or lacks the room, and does nothing when from and to are the same slot.\n",
              "file": "pkg/inventory/container.go",
              "line": 262
            },
            {
              "name": "Transfer",
              "anchor": "Container.Transfer",
              "recv": "*Container",
              "decl": "func (c *Container) Transfer(from int, dst *Container) (moved int, err error)",
              "doc": "Transfer quick-moves the stack in slot from into dst the way Add does (topping up dst's stacks of the item, then filling its empty slots) and returns how many moved; what does not fit stays in slot from. dst must be a different container from the same catalog.\n",
              "file": "pkg/inventory/container.go",
              "line": 294
            }
          ]
        },
        {
          "name": "ContainerState",
          "anchor": "ContainerState",
          "decl": "type ContainerState struct {\n\t// Slots lists the non-empty slots in ascending slot order.\n\tSlots []SlotState `json:\"slots\"`\n}",
          "doc": "ContainerState is a container's contents in a form encoding/json writes deterministically, for storing in a save slot.\n",
          "file": "pkg/inventory/container.go",
          "line": 355,
          "members": [
            {
              "name": "Slots",
              "anchor": "ContainerState.Slots",
              "kind": "field",
              "doc": "Slots lists the non-empty slots in ascending slot order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EquipSlot",
          "anchor": "EquipSlot",
          "decl": "type EquipSlot struct {\n\t// Name identifies the slot, such as \"head\" or \"ring-left\"; unique within an Equipment.\n\tName string\n\t// Kind is the equipment kind the slot accepts, matched against ItemDef.Equip; several slots may share a kind.\n\tKind string\n}",
          "doc": "EquipSlot is one named equipment slot.\n",
          "file": "pkg/inventory/equipment.go",
          "line": 16,
          "members": [
            {
              "name": "Name",
              "anchor": "EquipSlot.Name",
              "kind": "field",
              "doc": "Name identifies the slot, such as \"head\" or \"ring-left\"; unique within an Equipment."
            },
            {
              "name": "Kind",
              "anchor": "EquipSlot.Kind",
              "kind": "field",
              "doc": "Kind is the equipment kind the slot accepts, matched against ItemDef.Equip; several slots may share a kind."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Equipment",
          "anchor": "Equipment",
          "decl": "type Equipment struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Equipment is a set of typed slots, each holding at most one item. The zero Equipment is not usable; create one with NewEquipment.\n",
          "file": "pkg/inventory/equipment.go",
          "line": 24,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewEquipment",
              "anchor": "NewEquipment",
              "decl": "func NewEquipment(catalog *Catalog, slots ...EquipSlot) (*Equipment, error)",
              "doc": "NewEquipment returns empty equipment with the given slots, in order, holding items from catalog. Slot names must be unique and, like kinds, non-empty without whitespace or control characters.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 32
            }
          ],
          "methods": [
            {
              "name": "CanEquip",
              "anchor": "Equipment.CanEquip",
              "recv": "*Equipment",
              "decl": "func (e *Equipment) CanEquip(slot, item string) bool",
              "doc": "CanEquip reports whether item is in the catalog and fits slot's kind.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 75
            },
            {
              "name": "Catalog",
              "anchor": "Equipment.Catalog",
              "recv": "*Equipment",
              "decl": "func (e *Equipment) Catalog() *Catalog",
              "doc": "Catalog returns the catalog the equipment's items come from.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 58
            },
            {
              "name": "Clear",
              "anchor": "Equipment.Clear",
              "recv": "*Equipment",
              "decl": "func (e *Equipment) Clear()",
              "doc": "Clear empties every equipment slot.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 154
            },
            {
              "name": "Equip",
              "anchor": "Equipment.Equip",
              "recv": "*Equipment",
              "decl": "func (e *Equipment) Equip(slot string, src *Container, from int) error",
              "doc": "Equip takes one item from slot from of src and puts it in the equipment slot. An item already in the slot goes back to src: into slot from when taking the item emptied it, otherwise wherever src.AddAll would put it. It returns ErrNotEquippable when the item's kind does not match the slot, ErrFull when src has no room for the replaced item, and ErrCatalogMismatch when src uses a different catalog; on any error nothing changes. Equipping the item that is already in the slot does nothing.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 85
            },
            {
              "name": "Equipped",
              "anchor": "Equipment.Equipped",
              "recv": "*Equipment",
              "decl": "func (e *Equipment) Equipped(slot string) (string, bool)",
              "doc": "Equipped returns the item in slot, and false when slot is empty or unknown.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 66
            },
            {
              "name": "Restore",
              "anchor": "Equipment.Restore",
              "recv": "*Equipment",
              "decl": "func (e *Equipment) Restore(st EquipmentState) error",
              "doc": "Restore replaces the equipped items with st after checking every entry: the slot must exist and be listed once, and the item must be in the catalog and fit the slot's kind. On error the equipment is left unchanged.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 184
            },
            {
              "name": "Slots",
              "anchor": "Equipment.Slots",
              "recv": "*Equipment",
              "decl": "func (e *Equipment) Slots() []EquipSlot",
              "doc": "Slots returns a copy of the equipment's slots in order.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 61
            },
            {
              "name": "Snapshot",
              "anchor": "Equipment.Snapshot",
              "recv": "*Equipment",
              "decl": "func (e *Equipment) Snapshot() EquipmentState",
              "doc": "Snapshot returns the occupied slots in slot order.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 173
            },
            {
              "name": "Unequip",
              "anchor": "Equipment.Unequip",
              "recv": "*Equipment",
              "decl": "func (e *Equipment) Unequip(slot string, dst *Container) error",
              "doc": "Unequip moves the item in slot into dst the way dst.AddAll does. It returns ErrEmptySlot when slot holds nothing and ErrFull, leaving the item equipped, when dst has no room.\n",
              "file": "pkg/inventory/equipment.go",
              "line": 132
            }
          ]
        },
        {
          "name": "EquipmentState",
          "anchor": "EquipmentState",
          "decl": "type EquipmentState struct {\n\t// Slots lists the occupied equipment slots in the Equipment's slot order.\n\tSlots []EquippedState `json:\"slots\"`\n}",
          "doc": "EquipmentState is the equipped items in a form encoding/json writes deterministically, for storing in a save slot.\n",
          "file": "pkg/inventory/equipment.go",
          "line": 159,
          "members": [
            {
              "name": "Slots",
              "anchor": "EquipmentState.Slots",
              "kind": "field",
              "doc": "Slots lists the occupied equipment slots in the Equipment's slot order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EquippedState",
          "anchor": "EquippedState",
          "decl": "type EquippedState struct {\n\t// Slot is the equipment slot's name.\n\tSlot string `json:\"slot\"`\n\t// Item is the equipped item's ID.\n\tItem string `json:\"item\"`\n}",
          "doc": "EquippedState is one occupied equipment slot in an EquipmentState.\n",
          "file": "pkg/inventory/equipment.go",
          "line": 165,
          "members": [
            {
              "name": "Slot",
              "anchor": "EquippedState.Slot",
              "kind": "field",
              "doc": "Slot is the equipment slot's name."
            },
            {
              "name": "Item",
              "anchor": "EquippedState.Item",
              "kind": "field",
              "doc": "Item is the equipped item's ID."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ItemDef",
          "anchor": "ItemDef",
          "decl": "type ItemDef struct {\n\t// ID uniquely identifies the item within its catalog and is what stacks, snapshots and saves refer to. It must be non-empty and contain no whitespace or control characters.\n\tID string `yaml:\"id\"`\n\t// Name is the item's display name or localization key.\n\tName string `yaml:\"name,omitempty\"`\n\t// Description is optional longer display text or a localization key.\n\tDescription string `yaml:\"description,omitempty\"`\n\t// Icon is an optional asset URI for the item's icon, such as \"asset:icons/potion.png\".\n\tIcon string `yaml:\"icon,omitempty\"`\n\t// MaxStack is how many of the item one slot holds, in [1, MaxStackLimit]; 0 means 1 and is written by omitting the field, since Parse refuses an explicit \"maxStack: 0\".\n\tMaxStack int `yaml:\"maxStack,omitempty\"`\n\t// Equip is the equipment kind the item fits, matched against EquipSlot.Kind; empty means the item cannot be equipped.\n\tEquip string `yaml:\"equip,omitempty\"`\n\t// Tags are free-form labels such as \"consumable\" or \"quest\", unique within the item.\n\tTags []string `yaml:\"tags,omitempty,flow\"`\n\t// Stats holds finite numeric values such as damage, armor, weight or price, keyed by non-empty names.\n\tStats map[string]float64 `yaml:\"stats,omitempty\"`\n}",
          "doc": "ItemDef defines one kind of item.\n",
          "file": "pkg/inventory/catalog.go",
          "line": 26,
          "members": [
            {
              "name": "ID",
              "anchor": "ItemDef.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the item within its catalog and is what stacks, snapshots and saves refer to. It must be non-empty and contain no whitespace or control characters."
            },
            {
              "name": "Name",
              "anchor": "ItemDef.Name",
              "kind": "field",
              "doc": "Name is the item's display name or localization key."
            },
            {
              "name": "Description",
              "anchor": "ItemDef.Description",
              "kind": "field",
              "doc": "Description is optional longer display text or a localization key."
            },
            {
              "name": "Icon",
              "anchor": "ItemDef.Icon",
              "kind": "field",
              "doc": "Icon is an optional asset URI for the item's icon, such as \"asset:icons/potion.png\"."
            },
            {
              "name": "MaxStack",
              "anchor": "ItemDef.MaxStack",
              "kind": "field",
              "doc": "MaxStack is how many of the item one slot holds, in [1, MaxStackLimit]; 0 means 1 and is written by omitting the field, since Parse refuses an explicit \"maxStack: 0\"."
            },
            {
              "name": "Equip",
              "anchor": "ItemDef.Equip",
              "kind": "field",
              "doc": "Equip is the equipment kind the item fits, matched against EquipSlot.Kind; empty means the item cannot be equipped."
            },
            {
              "name": "Tags",
              "anchor": "ItemDef.Tags",
              "kind": "field",
              "doc": "Tags are free-form labels such as \"consumable\" or \"quest\", unique within the item."
            },
            {
              "name": "Stats",
              "anchor": "ItemDef.Stats",
              "kind": "field",
              "doc": "Stats holds finite numeric values such as damage, armor, weight or price, keyed by non-empty names."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveMaxStack",
              "anchor": "ItemDef.EffectiveMaxStack",
              "recv": "ItemDef",
              "decl": "func (d ItemDef) EffectiveMaxStack() int",
              "doc": "EffectiveMaxStack returns MaxStack, or 1 when MaxStack is 0.\n",
              "file": "pkg/inventory/catalog.go",
              "line": 46
            },
            {
              "name": "HasTag",
              "anchor": "ItemDef.HasTag",
              "recv": "ItemDef",
              "decl": "func (d ItemDef) HasTag(tag string) bool",
              "doc": "HasTag reports whether the item carries tag.\n",
              "file": "pkg/inventory/catalog.go",
              "line": 54
            }
          ]
        },
        {
          "name": "SlotState",
          "anchor": "SlotState",
          "decl": "type SlotState struct {\n\t// Slot is the slot index.\n\tSlot int `json:\"slot\"`\n\t// Item is the item's ID.\n\tItem string `json:\"item\"`\n\t// Count is how many of the item the slot holds.\n\tCount int `json:\"count\"`\n}",
          "doc": "SlotState is one non-empty slot in a ContainerState.\n",
          "file": "pkg/inventory/container.go",
          "line": 361,
          "members": [
            {
              "name": "Slot",
              "anchor": "SlotState.Slot",
              "kind": "field",
              "doc": "Slot is the slot index."
            },
            {
              "name": "Item",
              "anchor": "SlotState.Item",
              "kind": "field",
              "doc": "Item is the item's ID."
            },
            {
              "name": "Count",
              "anchor": "SlotState.Count",
              "kind": "field",
              "doc": "Count is how many of the item the slot holds."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Stack",
          "anchor": "Stack",
          "decl": "type Stack struct {\n\t// Item is the item's ID in the catalog; empty for an empty slot.\n\tItem string\n\t// Count is how many of the item the slot holds; 0 for an empty slot.\n\tCount int\n}",
          "doc": "Stack is a count of one item in a slot. The zero Stack is an empty slot.\n",
          "file": "pkg/inventory/container.go",
          "line": 28,
          "members": [
            {
              "name": "Item",
              "anchor": "Stack.Item",
              "kind": "field",
              "doc": "Item is the item's ID in the catalog; empty for an empty slot."
            },
            {
              "name": "Count",
              "anchor": "Stack.Count",
              "kind": "field",
              "doc": "Count is how many of the item the slot holds; 0 for an empty slot."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Empty",
              "anchor": "Stack.Empty",
              "recv": "Stack",
              "decl": "func (s Stack) Empty() bool",
              "doc": "Empty reports whether the stack holds nothing.\n",
              "file": "pkg/inventory/container.go",
              "line": 36
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/l10n",
      "name": "l10n",
      "dir": "pkg/l10n",
      "page": "pkg/l10n",
      "synopsis": "Package l10n provides localization for NSGo games: versioned YAML and JSON string tables with BCP-47 locale fallback, interpolation, and CLDR pluralization; per-language asset resolution, fs.FS discovery, versioned YAML asset manifests, runtime locale switching, and missing-variant auditing; Unicode script detection and per-script/per-locale font selection; and right-to-left text reordering and HUD layout mirroring.",
      "doc": "Package l10n provides localization for NSGo games: versioned YAML and JSON string tables with BCP-47 locale fallback, interpolation, and CLDR pluralization; per-language asset resolution, fs.FS discovery, versioned YAML asset manifests, runtime locale switching, and missing-variant auditing; Unicode script detection and per-script/per-locale font selection; and right-to-left text reordering and HUD layout mirroring.\n\nIt builds on NSGo's public core package, the Go standard library, and go.yaml.in/yaml/v3 for YAML string tables and asset manifests.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "AssetManifestVersion",
              "anchor": "AssetManifestVersion"
            }
          ],
          "decl": "const AssetManifestVersion = 1",
          "doc": "AssetManifestVersion is the asset manifest schema version this package reads and writes.\n",
          "file": "pkg/l10n/assetmanifest.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "SchemaComment",
              "anchor": "SchemaComment"
            }
          ],
          "decl": "const SchemaComment = \"# yaml-language-server: $schema=\" + SchemaURL",
          "doc": "SchemaComment is the first line EncodeYAML writes: a YAML comment pointing a YAML language server at SchemaURL. ParseYAML ignores it like any other comment.\n",
          "file": "pkg/l10n/yaml.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "SchemaURL",
              "anchor": "SchemaURL"
            }
          ],
          "decl": "const SchemaURL = \"https://game.nsgo.dev/schemas/l10n.v1.json\"",
          "doc": "SchemaURL is where the JSON Schema of version 1 YAML string tables is published.\nEncodeYAML names it in a yaml-language-server comment on the first line so editors and AI tools validate and complete string table files as they are written.\n",
          "file": "pkg/l10n/yaml.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "StringTableVersion",
              "anchor": "StringTableVersion"
            }
          ],
          "decl": "const StringTableVersion = 1",
          "doc": "StringTableVersion is the YAML string table schema version this package reads and writes.\n",
          "file": "pkg/l10n/yaml.go",
          "line": 19
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "EncodeAssetManifest",
          "anchor": "EncodeAssetManifest",
          "decl": "func EncodeAssetManifest(m *AssetManifest) ([]byte, error)",
          "doc": "EncodeAssetManifest validates m and writes it as deterministic 2-space YAML: fields in schema order, map keys sorted, and group members sorted.\n",
          "file": "pkg/l10n/assetmanifest.go",
          "line": 141
        },
        {
          "name": "EncodeYAML",
          "anchor": "EncodeYAML",
          "decl": "func EncodeYAML(t *StringTable) ([]byte, error)",
          "doc": "EncodeYAML validates t and writes it as deterministic 2-space YAML prefixed with SchemaComment: fields in schema order (version, locale, strings, plurals), map keys sorted lexicographically, and CLDR plural categories in canonical order (zero, one, two, few, many, other).\n",
          "file": "pkg/l10n/yaml.go",
          "line": 217
        },
        {
          "name": "LayoutAlignment",
          "anchor": "LayoutAlignment",
          "decl": "func LayoutAlignment(align string, dir Direction) string",
          "doc": "LayoutAlignment adapts a horizontal alignment string (\"left\", \"right\",\n\"start\", \"end\", \"center\", \"justify\") for dir.\n\nIn DirLTR, \"start\" maps to \"left\" and \"end\" maps to \"right\".\nIn DirRTL, \"left\" and \"start\" map to \"right\", while \"right\" and \"end\" map to\n\"left\". \"center\", \"justify\", and unrecognized values are preserved.\n",
          "file": "pkg/l10n/rtl.go",
          "line": 118
        },
        {
          "name": "MirrorX",
          "anchor": "MirrorX",
          "decl": "func MirrorX(x, width, containerWidth float32, dir Direction) float32",
          "doc": "MirrorX mirrors a horizontal HUD or dialogue element position x (with element\nwidth inside a container of containerWidth) when dir is DirRTL.\nIn DirLTR, x is returned unchanged.\n",
          "file": "pkg/l10n/rtl.go",
          "line": 153
        },
        {
          "name": "NormalizeLocale",
          "anchor": "NormalizeLocale",
          "decl": "func NormalizeLocale(tag string) string",
          "doc": "NormalizeLocale canonicalizes a BCP-47 locale tag: underscores become\nhyphens, the primary language subtag is lowercased, 4-letter script subtags\nare Title-cased (e.g. \"Hans\"), and 2-letter region subtags are UPPERCASED\n(e.g. \"US\").\n",
          "file": "pkg/l10n/catalog.go",
          "line": 336
        },
        {
          "name": "ValidateAssetManifest",
          "anchor": "ValidateAssetManifest",
          "decl": "func ValidateAssetManifest(m *AssetManifest) error",
          "doc": "ValidateAssetManifest checks m against the version 1 schema: the version, a normalized base locale, clean asset names with at least one variant each, normalized variant locales with non-empty paths that carry no surrounding spaces, and non-empty group names whose members are clean and unique.\n",
          "file": "pkg/l10n/assetmanifest.go",
          "line": 178
        },
        {
          "name": "ValidateStringTable",
          "anchor": "ValidateStringTable",
          "decl": "func ValidateStringTable(t *StringTable) error",
          "doc": "ValidateStringTable checks t against the version 1 string table schema: version == StringTableVersion, canonical BCP-47 locale, valid non-empty keys with no overlap between Strings and Plurals, and non-empty PluralForms entries.\n",
          "file": "pkg/l10n/yaml.go",
          "line": 170
        },
        {
          "name": "VisualOrder",
          "anchor": "VisualOrder",
          "decl": "func VisualOrder(s string, baseDir Direction) string",
          "doc": "VisualOrder converts logical-order text s into visual left-to-right drawing\norder for baseDir, suitable for canvas/bitmap text renderers that draw glyphs\nleft-to-right.\n\nEach line separated by '\\n' is reordered independently. Embedded LTR words\nand numbers inside RTL lines remain left-to-right, combining marks stay\nattached to their base characters, and paired brackets ((), [], {}, <>, «»,\n‹›) are mirrored inside RTL runs.\n",
          "file": "pkg/l10n/rtl.go",
          "line": 95
        }
      ],
      "types": [
        {
          "name": "Arg",
          "anchor": "Arg",
          "decl": "type Arg struct {\n\tName  string\n\tValue any\n}",
          "doc": "Arg is a named placeholder argument passed to Catalog.T, Catalog.Plural,\nLocalizer.T, or Localizer.Plural.\n",
          "file": "pkg/l10n/catalog.go",
          "line": 18,
          "members": [
            {
              "name": "Name",
              "anchor": "Arg.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "Arg.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Param",
              "anchor": "Param",
              "decl": "func Param(name string, value any) Arg",
              "doc": "Param creates a named placeholder argument for string interpolation\n(e.g. Param(\"score\", 42) substitutes \"{score}\").\n",
              "file": "pkg/l10n/catalog.go",
              "line": 25
            }
          ],
          "methods": []
        },
        {
          "name": "AssetCatalog",
          "anchor": "AssetCatalog",
          "decl": "type AssetCatalog struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "AssetCatalog maps logical asset names (such as \"voice/intro.wav\" or\n\"ui/title_banner.png\") to per-locale asset paths, resolves lookups along the\nBCP-47 fallback chain, tracks named asset groups for selective runtime\nreloads on language switch, and audits missing locale variants.\n",
          "file": "pkg/l10n/assets.go",
          "line": 48,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DiscoverFS",
              "anchor": "DiscoverFS",
              "decl": "func DiscoverFS(fsys fs.FS, baseLocale string) (*AssetCatalog, error)",
              "doc": "DiscoverFS walks fsys and builds an AssetCatalog using baseLocale as the\nfallback locale for unlocalized files and BCP-47 fallback chains.\n\nRecognized layouts:\n  - Directory layout: \"locales/<locale>/<name>\" (or \"<prefix>/locales/<locale>/<name>\")\n  - Dot suffix layout: \"<name>.<locale>.<ext>\" (for example \"ui/title_banner.ja.png\")\n  - Underscore suffix layout: \"<name>_<locale>.<ext>\" (for example \"voice/intro_zh-Hans.wav\" or \"voice/intro_zh_Hans.wav\")\n  - Unlocalized files (such as \"sfx/click.wav\"): registered under baseLocale when\n    baseLocale is non-empty and no explicit baseLocale variant exists for that name.\n",
              "file": "pkg/l10n/assets.go",
              "line": 79
            },
            {
              "name": "NewAssetCatalog",
              "anchor": "NewAssetCatalog",
              "decl": "func NewAssetCatalog(baseLocale string) *AssetCatalog",
              "doc": "NewAssetCatalog creates a new AssetCatalog whose fallback locale is\nbaseLocale (for example \"en\" or \"en-US\").\n",
              "file": "pkg/l10n/assets.go",
              "line": 60
            }
          ],
          "methods": [
            {
              "name": "AffectedAssets",
              "anchor": "AssetCatalog.AffectedAssets",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) AffectedAssets(oldLocale, newLocale string) []string",
              "doc": "AffectedAssets returns a sorted list of logical asset names whose resolved\npath or resolved locale changes when switching from oldLocale to newLocale.\n",
              "file": "pkg/l10n/assets.go",
              "line": 369
            },
            {
              "name": "AffectedGroups",
              "anchor": "AssetCatalog.AffectedGroups",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) AffectedGroups(oldLocale, newLocale string) []string",
              "doc": "AffectedGroups returns a sorted list of registered group names that contain\nat least one asset whose resolved variant changes when switching from\noldLocale to newLocale.\n",
              "file": "pkg/l10n/assets.go",
              "line": 385
            },
            {
              "name": "ApplyAssetManifest",
              "anchor": "AssetCatalog.ApplyAssetManifest",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) ApplyAssetManifest(m *AssetManifest) error",
              "doc": "ApplyAssetManifest validates m and merges it into c: a non-empty BaseLocale replaces c's base locale, every variant is registered (replacing an existing path for the same asset and locale), and group members are added to their groups.\n",
              "file": "pkg/l10n/assetmanifest.go",
              "line": 243
            },
            {
              "name": "AssetManifest",
              "anchor": "AssetCatalog.AssetManifest",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) AssetManifest() *AssetManifest",
              "doc": "AssetManifest returns a snapshot of c as a manifest: its base locale, every registered variant, and every group with its members sorted. The result shares no maps or slices with c.\n",
              "file": "pkg/l10n/assetmanifest.go",
              "line": 267
            },
            {
              "name": "BaseLocale",
              "anchor": "AssetCatalog.BaseLocale",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) BaseLocale() string",
              "doc": "BaseLocale returns the normalized base/fallback locale configured on c.\n",
              "file": "pkg/l10n/assets.go",
              "line": 88
            },
            {
              "name": "CheckMissing",
              "anchor": "AssetCatalog.CheckMissing",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) CheckMissing(locales ...string) []MissingReport",
              "doc": "CheckMissing audits direct-variant asset coverage for locales in\ndeterministic sorted order.\n\nIf no locales are provided, all locales currently registered in c are\naudited. Each MissingReport lists the sorted logical asset names that lack a\ndirect variant for that locale (and would therefore require fallback or fail\nto resolve).\n",
              "file": "pkg/l10n/assets.go",
              "line": 540
            },
            {
              "name": "CheckMissingGroup",
              "anchor": "AssetCatalog.CheckMissingGroup",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) CheckMissingGroup(group string, locales ...string) []MissingReport",
              "doc": "CheckMissingGroup audits direct-variant asset coverage for the logical assets\nregistered in group across locales in deterministic sorted order.\n",
              "file": "pkg/l10n/assets.go",
              "line": 548
            },
            {
              "name": "Discover",
              "anchor": "AssetCatalog.Discover",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) Discover(fsys fs.FS) error",
              "doc": "Discover walks fsys and registers all discovered asset variants into c.\nExplicit locale matches (\"locales/<locale>/<name>\", \"<name>.<locale>.<ext>\",\n\"<name>_<locale>.<ext>\") take precedence over unlocalized default files.\n",
              "file": "pkg/l10n/assets.go",
              "line": 247
            },
            {
              "name": "GroupAssets",
              "anchor": "AssetCatalog.GroupAssets",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) GroupAssets(group string) []string",
              "doc": "GroupAssets returns a sorted list of logical asset names registered in group.\n",
              "file": "pkg/l10n/assets.go",
              "line": 157
            },
            {
              "name": "Groups",
              "anchor": "AssetCatalog.Groups",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) Groups() []string",
              "doc": "Groups returns a sorted list of all asset group names registered in c.\n",
              "file": "pkg/l10n/assets.go",
              "line": 145
            },
            {
              "name": "LoadAssetManifestYAML",
              "anchor": "AssetCatalog.LoadAssetManifestYAML",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) LoadAssetManifestYAML(data []byte) error",
              "doc": "LoadAssetManifestYAML parses a YAML asset manifest with ParseAssetManifest and merges it into c with ApplyAssetManifest. Nothing is merged when the manifest is invalid.\n",
              "file": "pkg/l10n/assetmanifest.go",
              "line": 234
            },
            {
              "name": "Locale",
              "anchor": "AssetCatalog.Locale",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) Locale() string",
              "doc": "Locale returns the currently active locale tracked by c, falling back to\nBaseLocale if no active locale has been set.\n",
              "file": "pkg/l10n/assets.go",
              "line": 96
            },
            {
              "name": "Locales",
              "anchor": "AssetCatalog.Locales",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) Locales() []string",
              "doc": "Locales returns a sorted list of all locales that have at least one asset\nvariant registered in c.\n",
              "file": "pkg/l10n/assets.go",
              "line": 107
            },
            {
              "name": "MarshalAssetManifestYAML",
              "anchor": "AssetCatalog.MarshalAssetManifestYAML",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) MarshalAssetManifestYAML() ([]byte, error)",
              "doc": "MarshalAssetManifestYAML writes c's AssetManifest snapshot with EncodeAssetManifest.\n",
              "file": "pkg/l10n/assetmanifest.go",
              "line": 292
            },
            {
              "name": "Names",
              "anchor": "AssetCatalog.Names",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) Names() []string",
              "doc": "Names returns a sorted list of all logical asset names registered in c.\n",
              "file": "pkg/l10n/assets.go",
              "line": 129
            },
            {
              "name": "OnReload",
              "anchor": "AssetCatalog.OnReload",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) OnReload(fn func(groups []string, locale string)) (stop func())",
              "doc": "OnReload registers a callback invoked by SetLocale whenever one or more\nasset groups are affected by a locale switch. The returned function removes\nthe callback.\n",
              "file": "pkg/l10n/assets.go",
              "line": 420
            },
            {
              "name": "Register",
              "anchor": "AssetCatalog.Register",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) Register(name, locale, assetPath string)",
              "doc": "Register registers a localized variant path for logical asset name and locale. It ignores an empty or invalid name, a locale that is empty or not BCP-47 syntax, and an empty path.\n",
              "file": "pkg/l10n/assets.go",
              "line": 177
            },
            {
              "name": "RegisterGroup",
              "anchor": "AssetCatalog.RegisterGroup",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) RegisterGroup(group string, names ...string)",
              "doc": "RegisterGroup associates logical asset names with group so AffectedGroups,\nSetLocale, and WatchLocale can determine which asset groups require reloading\non a locale switch. Calling RegisterGroup multiple times for the same group\nmerges names.\n",
              "file": "pkg/l10n/assets.go",
              "line": 221
            },
            {
              "name": "RegisterMap",
              "anchor": "AssetCatalog.RegisterMap",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) RegisterMap(name string, variants map[string]string)",
              "doc": "RegisterMap registers multiple locale variants (locale -> path) for logical\nasset name.\n",
              "file": "pkg/l10n/assets.go",
              "line": 200
            },
            {
              "name": "Resolve",
              "anchor": "AssetCatalog.Resolve",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) Resolve(name, locale string) (ResolvedAsset, bool)",
              "doc": "Resolve looks up logical asset name for locale along the BCP-47 fallback\nchain (for example \"zh-Hans-CN\" -> \"zh-Hans\" -> \"zh\" -> BaseLocale).\n\nIsFallback is true whenever the resolved locale differs from the normalized\nrequested locale. Returns (ResolvedAsset{}, false) if no variant exists in\nthe fallback chain.\n",
              "file": "pkg/l10n/assets.go",
              "line": 309
            },
            {
              "name": "ResolveGroup",
              "anchor": "AssetCatalog.ResolveGroup",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) ResolveGroup(group, locale string) []ResolvedAsset",
              "doc": "ResolveGroup resolves every asset registered in group for locale, returning\nthe resolved assets in deterministic sorted order by LogicalName.\n",
              "file": "pkg/l10n/assets.go",
              "line": 341
            },
            {
              "name": "SetLocale",
              "anchor": "AssetCatalog.SetLocale",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) SetLocale(locale string) []string",
              "doc": "SetLocale switches the catalog's active locale at runtime, computes the\naffected asset groups between the previous locale and locale, notifies any\nOnReload listeners if at least one group is affected, and returns the sorted\nlist of affected groups.\n",
              "file": "pkg/l10n/assets.go",
              "line": 446
            },
            {
              "name": "WatchLocale",
              "anchor": "AssetCatalog.WatchLocale",
              "recv": "*AssetCatalog",
              "decl": "func (c *AssetCatalog) WatchLocale(\n\tcx *core.Scope,\n\tlocaleSignal *core.Signal[string],\n\treloadFn func(groups []string, locale string),\n) (stop func())",
              "doc": "WatchLocale subscribes to locale changes on localeSignal inside cx and\ninvokes reloadFn with ONLY the affected asset groups whenever the active\nlocale changes.\n\nIf localeSignal is nil, WatchLocale follows cx.Env().Locale(). The initial\nlocale is recorded without triggering a reload; reloadFn is called only when\na subsequent locale change alters at least one asset in a registered group.\nCalling the returned stop function cancels the subscription.\n",
              "file": "pkg/l10n/assets.go",
              "line": 479
            }
          ]
        },
        {
          "name": "AssetManifest",
          "anchor": "AssetManifest",
          "decl": "type AssetManifest struct {\n\t// Version is the schema version; it must equal AssetManifestVersion.\n\tVersion int `yaml:\"version\"`\n\t// BaseLocale is the optional fallback locale, written in normalized BCP-47 form (for example \"en\" or \"zh-Hans\").\n\tBaseLocale string `yaml:\"base_locale,omitempty\"`\n\t// Assets maps a logical asset name (a clean slash-separated path such as \"voice/intro.wav\") to its variants, each a normalized locale mapped to a non-empty asset path.\n\tAssets map[string]map[string]string `yaml:\"assets,omitempty\"`\n\t// Groups maps a group name to the logical asset names it reloads on a locale switch. Members are clean asset names without duplicates; a group may name assets that the manifest itself does not list.\n\tGroups map[string][]string `yaml:\"groups,omitempty\"`\n}",
          "doc": "AssetManifest is the versioned YAML document that maps logical asset names to per-locale paths and names asset groups. A manifest looks like this:\n\n\tversion: 1\n\tbase_locale: en\n\tassets:\n\t  voice/intro.wav:\n\t    en: locales/en/voice/intro.wav\n\t    ja: locales/ja/voice/intro.wav\n\tgroups:\n\t  voice:\n\t    - voice/intro.wav\n\nParseAssetManifest decodes it strictly and EncodeAssetManifest writes it back in canonical form, so a manifest that EncodeAssetManifest wrote survives a load and save unchanged.\n",
          "file": "pkg/l10n/assetmanifest.go",
          "line": 34,
          "members": [
            {
              "name": "Version",
              "anchor": "AssetManifest.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal AssetManifestVersion."
            },
            {
              "name": "BaseLocale",
              "anchor": "AssetManifest.BaseLocale",
              "kind": "field",
              "doc": "BaseLocale is the optional fallback locale, written in normalized BCP-47 form (for example \"en\" or \"zh-Hans\")."
            },
            {
              "name": "Assets",
              "anchor": "AssetManifest.Assets",
              "kind": "field",
              "doc": "Assets maps a logical asset name (a clean slash-separated path such as \"voice/intro.wav\") to its variants, each a normalized locale mapped to a non-empty asset path."
            },
            {
              "name": "Groups",
              "anchor": "AssetManifest.Groups",
              "kind": "field",
              "doc": "Groups maps a group name to the logical asset names it reloads on a locale switch. Members are clean asset names without duplicates; a group may name assets that the manifest itself does not list."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseAssetManifest",
              "anchor": "ParseAssetManifest",
              "decl": "func ParseAssetManifest(data []byte) (*AssetManifest, error)",
              "doc": "ParseAssetManifest decodes and validates a YAML asset manifest. Unknown fields, duplicate keys, trailing YAML documents, a missing or unsupported version, and names or locales that are not in canonical form are refused.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/l10n/assetmanifest.go",
              "line": 48
            }
          ],
          "methods": []
        },
        {
          "name": "Catalog",
          "anchor": "Catalog",
          "decl": "type Catalog struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Catalog stores localized string tables keyed by BCP-47 locale tag and message\nkey, resolving lookups along the BCP-47 fallback chain to a fallback locale.\n",
          "file": "pkg/l10n/catalog.go",
          "line": 55,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCatalog",
              "anchor": "NewCatalog",
              "decl": "func NewCatalog(fallbackLocale string) *Catalog",
              "doc": "NewCatalog creates a new localization catalog whose fallback locale is\nfallbackLocale (for example \"en\" or \"en-US\").\n",
              "file": "pkg/l10n/catalog.go",
              "line": 63
            }
          ],
          "methods": [
            {
              "name": "ApplyStringTable",
              "anchor": "Catalog.ApplyStringTable",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) ApplyStringTable(t *StringTable) error",
              "doc": "ApplyStringTable validates t and merges its string and plural entries into c under t.Locale. Nothing is merged when t is invalid.\n",
              "file": "pkg/l10n/yaml.go",
              "line": 258
            },
            {
              "name": "FallbackLocale",
              "anchor": "Catalog.FallbackLocale",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) FallbackLocale() string",
              "doc": "FallbackLocale returns the normalized fallback locale configured on c.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 71
            },
            {
              "name": "Has",
              "anchor": "Catalog.Has",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Has(locale, key string) bool",
              "doc": "Has reports whether key resolves in locale or anywhere along its fallback chain.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 114
            },
            {
              "name": "LoadJSON",
              "anchor": "Catalog.LoadJSON",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) LoadJSON(locale string, data []byte) error",
              "doc": "LoadJSON parses a JSON string table and merges its entries into locale.\n\nSupported JSON shapes:\n  - Flat keys: {\"title\": \"Quest\", \"hud.score\": \"Score: {score}\"}\n  - Nested objects: {\"menu\": {\"play\": \"Play\"}} -> key \"menu.play\"\n  - Plural objects: {\"coins\": {\"zero\": \"No coins\", \"one\": \"{count} coin\", \"other\": \"{count} coins\"}}\n\nNested objects may contain plural objects at any depth. Calling LoadJSON\nmultiple times for the same locale merges new keys into the existing table.\n\nErrors about data are *loaderr.Error values that give the line and key of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 132
            },
            {
              "name": "LoadYAML",
              "anchor": "Catalog.LoadYAML",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) LoadYAML(data []byte) error",
              "doc": "LoadYAML parses a versioned YAML string table with ParseYAML and merges its entries into the table's locale. Nothing is merged when data is invalid.\n\nErrors about data are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/l10n/yaml.go",
              "line": 249
            },
            {
              "name": "Locales",
              "anchor": "Catalog.Locales",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Locales() []string",
              "doc": "Locales returns a sorted list of all locales that have entries in c.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 78
            },
            {
              "name": "MarshalYAML",
              "anchor": "Catalog.MarshalYAML",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) MarshalYAML(locale string) ([]byte, error)",
              "doc": "MarshalYAML encodes locale's entries in c with EncodeYAML. It returns an error when locale has no entries in c or is not a valid BCP-47 tag.\n",
              "file": "pkg/l10n/yaml.go",
              "line": 307
            },
            {
              "name": "Plural",
              "anchor": "Catalog.Plural",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Plural(locale, key string, count int, args ...Arg) string",
              "doc": "Plural resolves key for locale, selects the plural form matching count for\nthe matched locale's plural rules, and interpolates named placeholders.\n\nThe \"{count}\" placeholder is automatically populated with count unless args\nexplicitly provides a Param(\"count\", ...). If key is not found, key itself is\nreturned.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 187
            },
            {
              "name": "Set",
              "anchor": "Catalog.Set",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Set(locale, key, value string)",
              "doc": "Set stores a localized string for locale and key.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 90
            },
            {
              "name": "SetPlural",
              "anchor": "Catalog.SetPlural",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) SetPlural(locale, key string, forms PluralForms)",
              "doc": "SetPlural stores plural form templates for locale and key.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 102
            },
            {
              "name": "StringTable",
              "anchor": "Catalog.StringTable",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) StringTable(locale string) (*StringTable, bool)",
              "doc": "StringTable returns a snapshot of locale's entries in c as a StringTable, and reports whether locale exists in c. The result shares no maps with c.\n",
              "file": "pkg/l10n/yaml.go",
              "line": 275
            },
            {
              "name": "T",
              "anchor": "Catalog.T",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) T(locale, key string, args ...Arg) string",
              "doc": "T resolves key for locale along the BCP-47 fallback chain and interpolates\nany named placeholders ({name}) using args.\n\nIf key is not found in any locale in the chain, key itself is returned.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 164
            }
          ]
        },
        {
          "name": "Direction",
          "anchor": "Direction",
          "decl": "type Direction uint8",
          "doc": "Direction specifies horizontal text and layout reading direction.\n",
          "file": "pkg/l10n/rtl.go",
          "line": 12,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DirLTR",
                  "anchor": "DirLTR"
                },
                {
                  "name": "DirRTL",
                  "anchor": "DirRTL"
                }
              ],
              "decl": "const (\n\t// DirLTR is left-to-right direction (Latin, CJK, Cyrillic, etc.).\n\tDirLTR Direction = iota\n\t// DirRTL is right-to-left direction (Arabic, Hebrew, Persian, Urdu, etc.).\n\tDirRTL\n)",
              "doc": "",
              "file": "pkg/l10n/rtl.go",
              "line": 14
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "EnvDirection",
              "anchor": "EnvDirection",
              "decl": "func EnvDirection(cx *core.Scope) Direction",
              "doc": "EnvDirection returns the active layout direction for cx, honoring\ncx.Env().RTL() and falling back to LocaleDirection(cx.Env().Locale()).\nReading EnvDirection inside a reactive computation subscribes to environment\nRTL and locale changes.\n",
              "file": "pkg/l10n/rtl.go",
              "line": 61
            },
            {
              "name": "LocaleDirection",
              "anchor": "LocaleDirection",
              "decl": "func LocaleDirection(locale string) Direction",
              "doc": "LocaleDirection returns the default writing direction for a BCP-47 locale\ntag. Explicit script subtags (such as \"ar-Latn\" vs \"az-Arab\") take precedence\nover the primary language subtag.\n",
              "file": "pkg/l10n/rtl.go",
              "line": 37
            },
            {
              "name": "TextDirection",
              "anchor": "TextDirection",
              "decl": "func TextDirection(s string) Direction",
              "doc": "TextDirection determines the base direction of s from its first strong\ndirectional character (UAX #9 rules P2/P3). If s contains no strong\ndirectional characters, DirLTR is returned.\n",
              "file": "pkg/l10n/rtl.go",
              "line": 75
            }
          ],
          "methods": [
            {
              "name": "IsRTL",
              "anchor": "Direction.IsRTL",
              "recv": "Direction",
              "decl": "func (d Direction) IsRTL() bool",
              "doc": "IsRTL reports whether d is DirRTL.\n",
              "file": "pkg/l10n/rtl.go",
              "line": 30
            },
            {
              "name": "String",
              "anchor": "Direction.String",
              "recv": "Direction",
              "decl": "func (d Direction) String() string",
              "doc": "String returns \"ltr\" or \"rtl\".\n",
              "file": "pkg/l10n/rtl.go",
              "line": 22
            }
          ]
        },
        {
          "name": "FontRun",
          "anchor": "FontRun",
          "decl": "type FontRun[F any] struct {\n\tText   string\n\tScript Script\n\tFont   F\n\tStart  int\n\tEnd    int\n}",
          "doc": "FontRun pairs a segmented text run with its resolved Script and font.\n",
          "file": "pkg/l10n/script.go",
          "line": 258,
          "members": [
            {
              "name": "Text",
              "anchor": "FontRun.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Script",
              "anchor": "FontRun.Script",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Font",
              "anchor": "FontRun.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Start",
              "anchor": "FontRun.Start",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "End",
              "anchor": "FontRun.End",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FontSet",
          "anchor": "FontSet",
          "decl": "type FontSet[F any] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "FontSet maps Unicode scripts and BCP-47 locales to fonts of any type F, so\nthe same selector works with platform fonts (core.Font) as well as bitmap or\natlas fonts (such as *text.Font).\n",
          "file": "pkg/l10n/script.go",
          "line": 269,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFontSet",
              "anchor": "NewFontSet",
              "decl": "func NewFontSet[F any](defaultFont F) *FontSet[F]",
              "doc": "NewFontSet creates a FontSet with defaultFont as its fallback font.\n",
              "file": "pkg/l10n/script.go",
              "line": 277
            }
          ],
          "methods": [
            {
              "name": "Default",
              "anchor": "FontSet.Default",
              "recv": "*FontSet[F]",
              "decl": "func (fs *FontSet[F]) Default() F",
              "doc": "Default returns the fallback font configured on fs.\n",
              "file": "pkg/l10n/script.go",
              "line": 286
            },
            {
              "name": "ForLocale",
              "anchor": "FontSet.ForLocale",
              "recv": "*FontSet[F]",
              "decl": "func (fs *FontSet[F]) ForLocale(locale string) F",
              "doc": "ForLocale selects the best font for locale by walking its BCP-47 fallback\nchain in registered locale fonts, then falling back to the font registered\nfor LocaleScript(locale), and finally the default font.\n",
              "file": "pkg/l10n/script.go",
              "line": 331
            },
            {
              "name": "ForScript",
              "anchor": "FontSet.ForScript",
              "recv": "*FontSet[F]",
              "decl": "func (fs *FontSet[F]) ForScript(script Script) F",
              "doc": "ForScript returns the font registered for script, or the default font if none\nis set.\n",
              "file": "pkg/l10n/script.go",
              "line": 314
            },
            {
              "name": "ForText",
              "anchor": "FontSet.ForText",
              "recv": "*FontSet[F]",
              "decl": "func (fs *FontSet[F]) ForText(locale, text string) F",
              "doc": "ForText selects the best font for rendering text in locale.\n\nIf text's dominant script matches locale's script, locale-specific overrides\n(such as \"zh-Hant\" vs \"zh-Hans\") take precedence over generic script fonts.\nOtherwise the font registered for text's detected script is selected.\n",
              "file": "pkg/l10n/script.go",
              "line": 342
            },
            {
              "name": "RunsForText",
              "anchor": "FontSet.RunsForText",
              "recv": "*FontSet[F]",
              "decl": "func (fs *FontSet[F]) RunsForText(locale, text string) []FontRun[F]",
              "doc": "RunsForText segments text by script and attaches the resolved font for each\nrun, enabling mixed-script rendering (for example Latin + CJK or Arabic).\n",
              "file": "pkg/l10n/script.go",
              "line": 351
            },
            {
              "name": "SetLocale",
              "anchor": "FontSet.SetLocale",
              "recv": "*FontSet[F]",
              "decl": "func (fs *FontSet[F]) SetLocale(locale string, font F)",
              "doc": "SetLocale registers font for a BCP-47 locale tag (for example \"zh-Hans\" vs\n\"zh-Hant\" vs \"ja\" to pick region-specific Han glyph forms).\n",
              "file": "pkg/l10n/script.go",
              "line": 302
            },
            {
              "name": "SetScript",
              "anchor": "FontSet.SetScript",
              "recv": "*FontSet[F]",
              "decl": "func (fs *FontSet[F]) SetScript(script Script, font F)",
              "doc": "SetScript registers font for a Unicode script (for example ScriptCJK or\nScriptArabic).\n",
              "file": "pkg/l10n/script.go",
              "line": 294
            }
          ]
        },
        {
          "name": "Localizer",
          "anchor": "Localizer",
          "decl": "type Localizer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Localizer is a reactive localization view bound to a core.Scope.\n\nBy default it follows cx.Env().Locale() (and cx.Env().RTL()), so UI and HUD\nbindings that call Locale, Direction, T, or Plural re-evaluate automatically\nwhenever the environment locale changes. Calling SetLocale sets an explicit\noverride signal; calling SetLocale(\"\") returns to following the environment.\n",
          "file": "pkg/l10n/catalog.go",
          "line": 244,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLocalizer",
              "anchor": "NewLocalizer",
              "decl": "func NewLocalizer(cx *core.Scope, cat *Catalog) *Localizer",
              "doc": "NewLocalizer creates a reactive Localizer owned by cx backed by cat.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 251
            }
          ],
          "methods": [
            {
              "name": "Catalog",
              "anchor": "Localizer.Catalog",
              "recv": "*Localizer",
              "decl": "func (l *Localizer) Catalog() *Catalog",
              "doc": "Catalog returns the underlying Catalog.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 260
            },
            {
              "name": "Direction",
              "anchor": "Localizer.Direction",
              "recv": "*Localizer",
              "decl": "func (l *Localizer) Direction() Direction",
              "doc": "Direction returns the active layout direction (DirLTR or DirRTL).\n\nWhen a manual locale override is active, it returns LocaleDirection of that\nlocale. Otherwise it honors cx.Env().RTL() and falls back to\nLocaleDirection(l.Locale()). Reading Direction inside a reactive computation\nsubscribes to locale and RTL environment changes.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 291
            },
            {
              "name": "Locale",
              "anchor": "Localizer.Locale",
              "recv": "*Localizer",
              "decl": "func (l *Localizer) Locale() string",
              "doc": "Locale returns the active BCP-47 locale tag. When read inside a reactive\ncomputation, it subscribes to both manual SetLocale overrides and\ncx.Env().Locale() changes.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 272
            },
            {
              "name": "Plural",
              "anchor": "Localizer.Plural",
              "recv": "*Localizer",
              "decl": "func (l *Localizer) Plural(key string, count int, args ...Arg) string",
              "doc": "Plural resolves a pluralized key for the active locale and count. Reading\nPlural inside a reactive computation subscribes it to locale changes.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 318
            },
            {
              "name": "RTL",
              "anchor": "Localizer.RTL",
              "recv": "*Localizer",
              "decl": "func (l *Localizer) RTL() bool",
              "doc": "RTL reports whether the active layout direction is right-to-left.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 302
            },
            {
              "name": "SetLocale",
              "anchor": "Localizer.SetLocale",
              "recv": "*Localizer",
              "decl": "func (l *Localizer) SetLocale(locale string)",
              "doc": "SetLocale overrides the active locale with a BCP-47 tag (such as \"ja\" or\n\"zh-Hans\"). Pass an empty string to clear the override and follow\ncx.Env().Locale() again.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 265
            },
            {
              "name": "T",
              "anchor": "Localizer.T",
              "recv": "*Localizer",
              "decl": "func (l *Localizer) T(key string, args ...Arg) string",
              "doc": "T resolves key for the active locale and interpolates args. Reading T inside\na reactive computation subscribes it to locale changes.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 308
            },
            {
              "name": "Visual",
              "anchor": "Localizer.Visual",
              "recv": "*Localizer",
              "decl": "func (l *Localizer) Visual(s string) string",
              "doc": "Visual reorders s into visual left-to-right drawing order for the active\nDirection.\n",
              "file": "pkg/l10n/catalog.go",
              "line": 328
            }
          ]
        },
        {
          "name": "MissingReport",
          "anchor": "MissingReport",
          "decl": "type MissingReport struct {\n\tLocale      string\n\tTotalAssets int\n\tPresent     int\n\tMissing     []string\n\tCoverage    float64\n}",
          "doc": "MissingReport summarizes direct-variant localization coverage for a single\nlocale across a set of logical assets.\n",
          "file": "pkg/l10n/assets.go",
          "line": 26,
          "members": [
            {
              "name": "Locale",
              "anchor": "MissingReport.Locale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalAssets",
              "anchor": "MissingReport.TotalAssets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Present",
              "anchor": "MissingReport.Present",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Missing",
              "anchor": "MissingReport.Missing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Coverage",
              "anchor": "MissingReport.Coverage",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Complete",
              "anchor": "MissingReport.Complete",
              "recv": "MissingReport",
              "decl": "func (r MissingReport) Complete() bool",
              "doc": "Complete reports whether every audited asset has a direct variant for Locale.\n",
              "file": "pkg/l10n/assets.go",
              "line": 35
            }
          ]
        },
        {
          "name": "PluralForms",
          "anchor": "PluralForms",
          "decl": "type PluralForms struct {\n\t// Zero is the template used when count is 0 (if provided) or matches the CLDR zero category.\n\tZero string `yaml:\"zero,omitempty\"`\n\t// One is the template used for the CLDR one plural category.\n\tOne string `yaml:\"one,omitempty\"`\n\t// Two is the template used for the CLDR two plural category.\n\tTwo string `yaml:\"two,omitempty\"`\n\t// Few is the template used for the CLDR few plural category.\n\tFew string `yaml:\"few,omitempty\"`\n\t// Many is the template used for the CLDR many plural category.\n\tMany string `yaml:\"many,omitempty\"`\n\t// Other is the default fallback template for pluralization.\n\tOther string `yaml:\"other,omitempty\"`\n}",
          "doc": "PluralForms holds localized message templates keyed by CLDR plural category.\nAny unset category falls back to Other (or One if Other is empty).\n",
          "file": "pkg/l10n/catalog.go",
          "line": 31,
          "members": [
            {
              "name": "Zero",
              "anchor": "PluralForms.Zero",
              "kind": "field",
              "doc": "Zero is the template used when count is 0 (if provided) or matches the CLDR zero category."
            },
            {
              "name": "One",
              "anchor": "PluralForms.One",
              "kind": "field",
              "doc": "One is the template used for the CLDR one plural category."
            },
            {
              "name": "Two",
              "anchor": "PluralForms.Two",
              "kind": "field",
              "doc": "Two is the template used for the CLDR two plural category."
            },
            {
              "name": "Few",
              "anchor": "PluralForms.Few",
              "kind": "field",
              "doc": "Few is the template used for the CLDR few plural category."
            },
            {
              "name": "Many",
              "anchor": "PluralForms.Many",
              "kind": "field",
              "doc": "Many is the template used for the CLDR many plural category."
            },
            {
              "name": "Other",
              "anchor": "PluralForms.Other",
              "kind": "field",
              "doc": "Other is the default fallback template for pluralization."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ResolvedAsset",
          "anchor": "ResolvedAsset",
          "decl": "type ResolvedAsset struct {\n\tLogicalName     string\n\tRequestedLocale string\n\tResolvedLocale  string\n\tPath            string\n\tIsFallback      bool\n}",
          "doc": "ResolvedAsset describes the concrete localized asset path selected for a\nlogical asset name and requested BCP-47 locale.\n",
          "file": "pkg/l10n/assets.go",
          "line": 16,
          "members": [
            {
              "name": "LogicalName",
              "anchor": "ResolvedAsset.LogicalName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RequestedLocale",
              "anchor": "ResolvedAsset.RequestedLocale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResolvedLocale",
              "anchor": "ResolvedAsset.ResolvedLocale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "ResolvedAsset.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsFallback",
              "anchor": "ResolvedAsset.IsFallback",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Script",
          "anchor": "Script",
          "decl": "type Script uint8",
          "doc": "Script identifies a Unicode writing script for font selection and text\nsegmentation.\n",
          "file": "pkg/l10n/script.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ScriptCommon",
                  "anchor": "ScriptCommon"
                },
                {
                  "name": "ScriptLatin",
                  "anchor": "ScriptLatin"
                },
                {
                  "name": "ScriptCJK",
                  "anchor": "ScriptCJK"
                },
                {
                  "name": "ScriptJapanese",
                  "anchor": "ScriptJapanese"
                },
                {
                  "name": "ScriptKorean",
                  "anchor": "ScriptKorean"
                },
                {
                  "name": "ScriptArabic",
                  "anchor": "ScriptArabic"
                },
                {
                  "name": "ScriptHebrew",
                  "anchor": "ScriptHebrew"
                },
                {
                  "name": "ScriptCyrillic",
                  "anchor": "ScriptCyrillic"
                },
                {
                  "name": "ScriptGreek",
                  "anchor": "ScriptGreek"
                },
                {
                  "name": "ScriptThai",
                  "anchor": "ScriptThai"
                },
                {
                  "name": "ScriptDevanagari",
                  "anchor": "ScriptDevanagari"
                }
              ],
              "decl": "const (\n\tScriptCommon Script = iota\n\tScriptLatin\n\tScriptCJK\n\tScriptJapanese\n\tScriptKorean\n\tScriptArabic\n\tScriptHebrew\n\tScriptCyrillic\n\tScriptGreek\n\tScriptThai\n\tScriptDevanagari\n)",
              "doc": "",
              "file": "pkg/l10n/script.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "DetectScript",
              "anchor": "DetectScript",
              "decl": "func DetectScript(s string) Script",
              "doc": "DetectScript returns the dominant non-Common Script present in s, or\nScriptCommon if s contains only neutral characters (digits, spaces,\npunctuation) or is empty.\n\nWhen Japanese Kana (Hiragana/Katakana) appears alongside CJK ideographs\n(Kanji), ScriptJapanese takes precedence; similarly ScriptKorean takes\nprecedence when Hangul appears alongside Hanja.\n",
              "file": "pkg/l10n/script.go",
              "line": 102
            },
            {
              "name": "LocaleScript",
              "anchor": "LocaleScript",
              "decl": "func LocaleScript(locale string) Script",
              "doc": "LocaleScript returns the primary writing Script associated with a BCP-47\nlocale tag (respecting explicit script subtags such as \"sr-Latn\" or\n\"zh-Hans\" before falling back to the primary language subtag).\n",
              "file": "pkg/l10n/script.go",
              "line": 193
            },
            {
              "name": "RuneScript",
              "anchor": "RuneScript",
              "decl": "func RuneScript(r rune) Script",
              "doc": "RuneScript classifies a single Unicode rune into its Script.\nSpaces, digits, punctuation, and symbols return ScriptCommon.\n",
              "file": "pkg/l10n/script.go",
              "line": 68
            }
          ],
          "methods": [
            {
              "name": "String",
              "anchor": "Script.String",
              "recv": "Script",
              "decl": "func (s Script) String() string",
              "doc": "String returns the human-readable name of s.\n",
              "file": "pkg/l10n/script.go",
              "line": 28
            }
          ]
        },
        {
          "name": "ScriptRun",
          "anchor": "ScriptRun",
          "decl": "type ScriptRun struct {\n\tText   string\n\tScript Script\n\tStart  int\n\tEnd    int\n}",
          "doc": "ScriptRun is a contiguous slice of text sharing a resolved Script.\nStart and End are byte offsets into the original string.\n",
          "file": "pkg/l10n/script.go",
          "line": 59,
          "members": [
            {
              "name": "Text",
              "anchor": "ScriptRun.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Script",
              "anchor": "ScriptRun.Script",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Start",
              "anchor": "ScriptRun.Start",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "End",
              "anchor": "ScriptRun.End",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SegmentByScript",
              "anchor": "SegmentByScript",
              "decl": "func SegmentByScript(s string) []ScriptRun",
              "doc": "SegmentByScript splits mixed-script text (such as \"Score: 100 得分\") into\ncontiguous ScriptRuns.\n\nNeutral ScriptCommon characters (spaces, digits, punctuation) attach to the\npreceding strong script, or to the first strong script when they appear at\nthe start of the string. A string containing only ScriptCommon characters\nreturns a single ScriptCommon run; an empty string returns nil.\n",
              "file": "pkg/l10n/script.go",
              "line": 151
            }
          ],
          "methods": []
        },
        {
          "name": "StringTable",
          "anchor": "StringTable",
          "decl": "type StringTable struct {\n\t// Version is the schema version; it must equal StringTableVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Locale is the normalized BCP-47 locale tag this table translates (for example \"en\" or \"zh-Hans\").\n\tLocale string `yaml:\"locale\" schema:\"required,minLength=1\"`\n\t// Strings maps message keys (such as \"menu.play\" or \"hud.score\") to localized string templates.\n\tStrings map[string]string `yaml:\"strings,omitempty\"`\n\t// Plurals maps message keys to CLDR plural form templates (zero, one, two, few, many, other).\n\tPlurals map[string]PluralForms `yaml:\"plurals,omitempty\"`\n}",
          "doc": "StringTable is a versioned YAML localization string table for one locale. A file looks like this:\n\n\t# yaml-language-server: $schema=https://game.nsgo.dev/schemas/l10n.v1.json\n\tversion: 1\n\tlocale: en\n\tstrings:\n\t  hud.score: \"Score: {score}\"\n\t  menu.play: Play\n\tplurals:\n\t  coins:\n\t    zero: No coins\n\t    one: \"{count} coin\"\n\t    other: \"{count} coins\"\n\nParseYAML decodes it strictly and EncodeYAML writes it back in canonical form with sorted keys, so a table EncodeYAML wrote survives a load and save byte for byte.\n",
          "file": "pkg/l10n/yaml.go",
          "line": 43,
          "members": [
            {
              "name": "Version",
              "anchor": "StringTable.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal StringTableVersion (1)."
            },
            {
              "name": "Locale",
              "anchor": "StringTable.Locale",
              "kind": "field",
              "doc": "Locale is the normalized BCP-47 locale tag this table translates (for example \"en\" or \"zh-Hans\")."
            },
            {
              "name": "Strings",
              "anchor": "StringTable.Strings",
              "kind": "field",
              "doc": "Strings maps message keys (such as \"menu.play\" or \"hud.score\") to localized string templates."
            },
            {
              "name": "Plurals",
              "anchor": "StringTable.Plurals",
              "kind": "field",
              "doc": "Plurals maps message keys to CLDR plural form templates (zero, one, two, few, many, other)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseYAML",
              "anchor": "ParseYAML",
              "decl": "func ParseYAML(data []byte) (*StringTable, error)",
              "doc": "ParseYAML decodes and validates a versioned YAML string table. Unknown fields, invalid CLDR plural categories, duplicate keys, trailing YAML documents, YAML anchors/aliases/merge keys, null values, a missing or unsupported version, non-canonical locales, empty keys, keys defined in both strings and plurals, and empty plural entries are refused.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/l10n/yaml.go",
              "line": 60
            }
          ],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/leaderboard",
      "name": "leaderboard",
      "dir": "pkg/leaderboard",
      "page": "pkg/leaderboard",
      "synopsis": "Package leaderboard submits scores to and shows the platform's leaderboards, Game Center on Apple platforms and Play Games Services on Android, through NSGo's gameservices package.",
      "doc": "Package leaderboard submits scores to and shows the platform's leaderboards, Game Center on Apple platforms and Play Games Services on Android, through NSGo's gameservices package.\n\nA game declares its boards once in a versioned YAML Catalog that maps each board's name in the game to its ID in every game service, and its code then names boards rather than platform IDs:\n\n\tversion: 1\n\tleaderboards:\n\t  - name: high-score\n\t    gameCenter: com.example.game.high_score\n\t    playGames: CgkIxxxxxxxxxxEAIQAQ\n\n\tcatalog, err := leaderboard.Parse(data)\n\tboards, err := leaderboard.New(cx, catalog)\n\tboards.SignIn(nil)\n\tboards.Submit(\"high-score\", score, func(err error) { ... })\n\tboards.Show(\"high-score\")\n\nCalls complete through callbacks on the engine goroutine. On platforms without a game service (Windows, Linux, the web, watchOS and mini programs) they report ErrUnsupported, and Available and Supports let a view hide its leaderboard button there. A misspelt board name reports ErrUnknownLeaderboard on every platform.\n\nTests run against nsgotest's per-app fake game service: start the app with nsgotest.Environment(core.Environment{CanUseGameServices: true, OS: core.OSIOS}), sign a player in with App.SetGameServicesPlayer, and read App.GameServicesSubmittedScores and App.GameServicesShownLeaderboards.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "Global",
              "anchor": "Global"
            },
            {
              "name": "Friends",
              "anchor": "Friends"
            }
          ],
          "decl": "const (\n\tGlobal  = gameservices.Global\n\tFriends = gameservices.Friends\n)",
          "doc": "Player scopes for Query.Players.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "AllTime",
              "anchor": "AllTime"
            },
            {
              "name": "Week",
              "anchor": "Week"
            },
            {
              "name": "Today",
              "anchor": "Today"
            }
          ],
          "decl": "const (\n\tAllTime = gameservices.AllTime\n\tWeek    = gameservices.Week\n\tToday   = gameservices.Today\n)",
          "doc": "Time scopes for Query.Time.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the leaderboard catalog schema version this package reads and writes.\n",
          "file": "pkg/leaderboard/catalog.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "MaxIDLength",
              "anchor": "MaxIDLength"
            }
          ],
          "decl": "const MaxIDLength = 100",
          "doc": "MaxIDLength is the longest platform leaderboard ID a catalog accepts, matching Game Center's limit of 100 characters.\n",
          "file": "pkg/leaderboard/catalog.go",
          "line": 19
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrUnknownLeaderboard",
              "anchor": "ErrUnknownLeaderboard"
            },
            {
              "name": "ErrNoPlatformID",
              "anchor": "ErrNoPlatformID"
            },
            {
              "name": "ErrUnsupported",
              "anchor": "ErrUnsupported"
            },
            {
              "name": "ErrUnavailable",
              "anchor": "ErrUnavailable"
            },
            {
              "name": "ErrUnauthenticated",
              "anchor": "ErrUnauthenticated"
            },
            {
              "name": "ErrCancelled",
              "anchor": "ErrCancelled"
            }
          ],
          "decl": "var (\n\t// ErrUnknownLeaderboard means the name is not declared in the catalog. It is reported on every platform, so a misspelt name shows up while developing on a desktop without a game service.\n\tErrUnknownLeaderboard = errors.New(\"leaderboard: unknown leaderboard\")\n\t// ErrNoPlatformID means the board is declared but has no ID for the game service of the platform the game runs on.\n\tErrNoPlatformID = errors.New(\"leaderboard: no ID for this platform's game service\")\n\t// ErrUnsupported means the platform has no game service the game can reach (Windows, Linux, the web, watchOS, mini programs, or a device without Game Center or Play Games).\n\tErrUnsupported = gameservices.ErrUnsupported\n\t// ErrUnavailable means the platform's game service could not be reached or is not enabled.\n\tErrUnavailable = gameservices.ErrUnavailable\n\t// ErrUnauthenticated means no player is signed in; call Service.SignIn first.\n\tErrUnauthenticated = gameservices.ErrUnauthenticated\n\t// ErrCancelled means the player dismissed the platform's sign-in.\n\tErrCancelled = gameservices.ErrCancelled\n)",
          "doc": "Errors a Service reports. The platform's own errors are NSGo's gameservices sentinels, repeated here so callers can test them with errors.Is without a second import.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 38
        }
      ],
      "funcs": [],
      "types": [
        {
          "name": "Board",
          "anchor": "Board",
          "decl": "type Board struct {\n\t// Name is the game's own key for the board, such as \"high-score\". It is unique within the catalog.\n\tName string `yaml:\"name\"`\n\t// GameCenter is the leaderboard ID registered in App Store Connect, used on iOS, iPadOS, tvOS and macOS.\n\tGameCenter string `yaml:\"gameCenter,omitempty\"`\n\t// PlayGames is the leaderboard ID the Google Play Console generated, used on Android.\n\tPlayGames string `yaml:\"playGames,omitempty\"`\n}",
          "doc": "Board declares one leaderboard: the name the game's code uses and the ID it has in each platform game service. A board needs at least one ID; on a platform whose ID it lacks, Service reports ErrNoPlatformID.\n",
          "file": "pkg/leaderboard/catalog.go",
          "line": 36,
          "members": [
            {
              "name": "Name",
              "anchor": "Board.Name",
              "kind": "field",
              "doc": "Name is the game's own key for the board, such as \"high-score\". It is unique within the catalog."
            },
            {
              "name": "GameCenter",
              "anchor": "Board.GameCenter",
              "kind": "field",
              "doc": "GameCenter is the leaderboard ID registered in App Store Connect, used on iOS, iPadOS, tvOS and macOS."
            },
            {
              "name": "PlayGames",
              "anchor": "Board.PlayGames",
              "kind": "field",
              "doc": "PlayGames is the leaderboard ID the Google Play Console generated, used on Android."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ID",
              "anchor": "Board.ID",
              "recv": "Board",
              "decl": "func (b Board) ID(provider Provider) string",
              "doc": "ID returns the board's ID for provider, or \"\" when the board declares none for it.\n",
              "file": "pkg/leaderboard/catalog.go",
              "line": 46
            }
          ]
        },
        {
          "name": "Catalog",
          "anchor": "Catalog",
          "decl": "type Catalog struct {\n\t// Version is the schema version; it must equal CurrentVersion.\n\tVersion int `yaml:\"version\"`\n\t// Leaderboards lists the boards in the order the file declares them.\n\tLeaderboards []Board `yaml:\"leaderboards\"`\n}",
          "doc": "Catalog is the YAML file that declares a game's leaderboards once: each board's name in the game and its ID in every platform game service it is registered with.\n\n\tversion: 1\n\tleaderboards:\n\t  - name: high-score\n\t    gameCenter: com.example.game.high_score\n\t    playGames: CgkIxxxxxxxxxxEAIQAQ\n",
          "file": "pkg/leaderboard/catalog.go",
          "line": 28,
          "members": [
            {
              "name": "Version",
              "anchor": "Catalog.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion."
            },
            {
              "name": "Leaderboards",
              "anchor": "Catalog.Leaderboards",
              "kind": "field",
              "doc": "Leaderboards lists the boards in the order the file declares them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Catalog, error)",
              "doc": "Parse decodes a YAML leaderboard catalog and validates it. Unknown fields, duplicate keys and trailing YAML documents are refused.\n",
              "file": "pkg/leaderboard/catalog.go",
              "line": 70
            }
          ],
          "methods": [
            {
              "name": "Board",
              "anchor": "Catalog.Board",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Board(name string) (Board, bool)",
              "doc": "Board returns the board declared under name and whether it exists.\n",
              "file": "pkg/leaderboard/catalog.go",
              "line": 57
            },
            {
              "name": "Encode",
              "anchor": "Catalog.Encode",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Encode() ([]byte, error)",
              "doc": "Encode validates c and writes it as deterministic two-space YAML: fields in schema order, boards in declaration order, and absent IDs left out, so Parse followed by Encode reproduces a file Encode wrote byte for byte.\n",
              "file": "pkg/leaderboard/catalog.go",
              "line": 94
            },
            {
              "name": "Validate",
              "anchor": "Catalog.Validate",
              "recv": "*Catalog",
              "decl": "func (c *Catalog) Validate() error",
              "doc": "Validate checks c against the version 1 schema: a supported version, at least one board, unique non-empty names without control characters or surrounding whitespace, at least one well-formed platform ID per board, and no two boards sharing a Game Center or Play Games ID.\n",
              "file": "pkg/leaderboard/catalog.go",
              "line": 112
            }
          ]
        },
        {
          "name": "Entry",
          "anchor": "Entry",
          "decl": "type Entry = gameservices.ScoreEntry",
          "doc": "Entry is one ranked row of a leaderboard returned by Service.Scores. Its LeaderboardID is the platform ID, not the catalog name.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 17,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Player",
          "anchor": "Player",
          "decl": "type Player = gameservices.Player",
          "doc": "Player is the local player signed into the platform game service.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 15,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlayerScope",
          "anchor": "PlayerScope",
          "decl": "type PlayerScope = gameservices.PlayerScope",
          "doc": "PlayerScope selects which players Service.Scores includes: Global or Friends.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 19,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Provider",
          "anchor": "Provider",
          "decl": "type Provider uint8",
          "doc": "Provider names a platform game service a Board can carry an ID for.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 54,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ProviderNone",
                  "anchor": "ProviderNone"
                },
                {
                  "name": "ProviderGameCenter",
                  "anchor": "ProviderGameCenter"
                },
                {
                  "name": "ProviderPlayGames",
                  "anchor": "ProviderPlayGames"
                }
              ],
              "decl": "const (\n\t// ProviderNone means the platform has no game service this package can use.\n\tProviderNone Provider = iota\n\t// ProviderGameCenter is Apple's Game Center on iOS, iPadOS, tvOS and macOS.\n\tProviderGameCenter\n\t// ProviderPlayGames is Google Play Games Services on Android.\n\tProviderPlayGames\n)",
              "doc": "",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 56
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ProviderFor",
              "anchor": "ProviderFor",
              "decl": "func ProviderFor(os core.OS) Provider",
              "doc": "ProviderFor returns the game service NSGo's gameservices package talks to on os: Game Center on macOS and iOS (which covers iPadOS and tvOS), Play Games on Android, and ProviderNone elsewhere.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 77
            }
          ],
          "methods": [
            {
              "name": "String",
              "anchor": "Provider.String",
              "recv": "Provider",
              "decl": "func (p Provider) String() string",
              "doc": "String returns the provider's catalog key: \"gameCenter\", \"playGames\" or \"none\".\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 66
            }
          ]
        },
        {
          "name": "Query",
          "anchor": "Query",
          "decl": "type Query struct {\n\t// Players chooses everyone (Global, the default) or the local player's friends (Friends).\n\tPlayers PlayerScope\n\t// Time chooses all-time scores (AllTime, the default), this week's (Week) or today's (Today).\n\tTime TimeScope\n\t// Limit is the most rows to load; 0 or less means 25, and more than 100 is clamped to 100.\n\tLimit int\n}",
          "doc": "Query selects the rows Service.Scores loads. The zero Query asks for the global all-time board with the platform's default of 25 rows.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 88,
          "members": [
            {
              "name": "Players",
              "anchor": "Query.Players",
              "kind": "field",
              "doc": "Players chooses everyone (Global, the default) or the local player's friends (Friends)."
            },
            {
              "name": "Time",
              "anchor": "Query.Time",
              "kind": "field",
              "doc": "Time chooses all-time scores (AllTime, the default), this week's (Week) or today's (Today)."
            },
            {
              "name": "Limit",
              "anchor": "Query.Limit",
              "kind": "field",
              "doc": "Limit is the most rows to load; 0 or less means 25, and more than 100 is clamped to 100."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Service",
          "anchor": "Service",
          "decl": "type Service struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Service submits scores to and shows the leaderboards a Catalog declares, through NSGo's gameservices package and so through Game Center or Play Games. Every callback runs on the engine goroutine, after the call that started it has returned, so it may update signals and views directly.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 98,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(cx *core.Scope, c *Catalog) (*Service, error)",
              "doc": "New validates c and returns a Service bound to cx, which keeps its own copy of the catalog. The service starts signed out; call SignIn before submitting scores.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 105
            }
          ],
          "methods": [
            {
              "name": "Available",
              "anchor": "Service.Available",
              "recv": "*Service",
              "decl": "func (s *Service) Available() bool",
              "doc": "Available reports whether the platform's game service can be used here. It reads the environment reactively, so a view that calls it updates when that changes.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 130
            },
            {
              "name": "Catalog",
              "anchor": "Service.Catalog",
              "recv": "*Service",
              "decl": "func (s *Service) Catalog() *Catalog",
              "doc": "Catalog returns a copy of the catalog the service was built from.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 120
            },
            {
              "name": "ID",
              "anchor": "Service.ID",
              "recv": "*Service",
              "decl": "func (s *Service) ID(name string) (string, error)",
              "doc": "ID returns the platform ID of the board name, or ErrUnknownLeaderboard, ErrUnsupported or ErrNoPlatformID (checked in that order).\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 141
            },
            {
              "name": "Player",
              "anchor": "Service.Player",
              "recv": "*Service",
              "decl": "func (s *Service) Player() Player",
              "doc": "Player returns the signed-in player, or the zero Player while signed out. It reads a signal, so a view that calls it updates on sign-in and sign-out.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 146
            },
            {
              "name": "Provider",
              "anchor": "Service.Provider",
              "recv": "*Service",
              "decl": "func (s *Service) Provider() Provider",
              "doc": "Provider returns the game service of the platform the game runs on, whether or not it is reachable.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 125
            },
            {
              "name": "Scores",
              "anchor": "Service.Scores",
              "recv": "*Service",
              "decl": "func (s *Service) Scores(name string, q Query, done func([]Entry, error))",
              "doc": "Scores loads ranked rows of the board name selected by q, for a game that draws its own board, and calls done with them or an error. done must not be nil.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 208
            },
            {
              "name": "Show",
              "anchor": "Service.Show",
              "recv": "*Service",
              "decl": "func (s *Service) Show(name string) error",
              "doc": "Show presents the platform's own leaderboard UI for the board name. It reports ErrUnknownLeaderboard, ErrUnsupported or ErrNoPlatformID instead of silently doing nothing; once it returns nil, what the platform shows (including its sign-in prompt) is up to the platform.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 198
            },
            {
              "name": "SignIn",
              "anchor": "Service.SignIn",
              "recv": "*Service",
              "decl": "func (s *Service) SignIn(done func(Player, error))",
              "doc": "SignIn signs the local player into the platform game service, which may show the platform's own sign-in UI, and calls done with the player or an error such as ErrUnsupported or ErrCancelled. done may be nil.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 156
            },
            {
              "name": "SignedIn",
              "anchor": "Service.SignedIn",
              "recv": "*Service",
              "decl": "func (s *Service) SignedIn() bool",
              "doc": "SignedIn reports whether a player is signed in, reactively like Player.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 151
            },
            {
              "name": "Submit",
              "anchor": "Service.Submit",
              "recv": "*Service",
              "decl": "func (s *Service) Submit(name string, score int64, done func(error))",
              "doc": "Submit sends score to the board name for the signed-in player and calls done with the result; done may be nil. The platform keeps each player's best score by the board's own sort order, so a game can submit every finished run. A board the catalog does not declare, a platform without a game service or a board without an ID here fail through done without reaching the platform.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 183
            },
            {
              "name": "Supports",
              "anchor": "Service.Supports",
              "recv": "*Service",
              "decl": "func (s *Service) Supports(name string) bool",
              "doc": "Supports reports whether the board name can be submitted to and shown here: the service is Available and the board has an ID for this platform. Like Available it reads reactively.\n",
              "file": "pkg/leaderboard/leaderboard.go",
              "line": 135
            }
          ]
        },
        {
          "name": "TimeScope",
          "anchor": "TimeScope",
          "decl": "type TimeScope = gameservices.TimeScope",
          "doc": "TimeScope selects the time window Service.Scores covers: AllTime, Week or Today.\n",
          "file": "pkg/leaderboard/leaderboard.go",
          "line": 21,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/leaderboard/selfhost",
      "name": "selfhost",
      "dir": "pkg/leaderboard/selfhost",
      "page": "pkg/leaderboard/selfhost",
      "synopsis": "Package selfhost is a self-hostable leaderboard service, for cross-platform games and games on platforms without a game service: one board ranks the scores a player's devices submit from every platform, keyed by the account the accounts package signs in.",
      "doc": "Package selfhost is a self-hostable leaderboard service, for cross-platform games and games on platforms without a game service: one board ranks the scores a player's devices submit from every platform, keyed by the account the accounts package signs in.\n\n# Boards\n\nA versioned YAML Config declares the boards. Each has a sort order (descending for points, ascending for times), a reset period (allTime, daily or weekly, in UTC) and, for a resetting board, how many earlier periods stay readable after a reset. A board ranks each account's best score in a period; equal scores rank by who got there first.\n\n# Submitting\n\nService.Submit records a score for an account. Over HTTP (Service.Handler) the account is the subject of the player's account token, which the handler verifies offline with an accounts/token Verifier, so a player can only submit their own scores.\n\nA board with validation: signed accepts a score only with a proof from the game server: after deciding a match or checking a replay, the server signs the board, account and score with a ProofSigner, and the client submits the proof beside the score. The configuration lists the servers' public keys and how long a proof stays valid.\n\n# Queries\n\nTop pages through a period from the first rank, Around returns the entries around an account, and Friends ranks a set of accounts the game supplies. Each reads the current period, the previous one, or an earlier period the board keeps by its ID. Every board period is an order-statistic skip list in memory, so each query costs O(log n + entries returned): a few microseconds on a board of a million accounts.\n\n# Storage\n\nThe service keeps its records in a Store: NewMemoryStore for tests, or OpenFileStore, which writes one JSON Lines file per board period. New loads them and drops the periods boards no longer keep; a reset drops them as it happens.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultLimit",
              "anchor": "DefaultLimit"
            },
            {
              "name": "DefaultRadius",
              "anchor": "DefaultRadius"
            }
          ],
          "decl": "const (\n\t// DefaultLimit is the number of entries GET top returns without a limit.\n\tDefaultLimit = 25\n\t// DefaultRadius is the radius GET around uses without one.\n\tDefaultRadius = 5\n)",
          "doc": "Query defaults the handler uses when a request leaves them out.\n",
          "file": "pkg/leaderboard/selfhost/http.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "MaxPage",
              "anchor": "MaxPage"
            },
            {
              "name": "MaxRadius",
              "anchor": "MaxRadius"
            },
            {
              "name": "MaxFriends",
              "anchor": "MaxFriends"
            },
            {
              "name": "MaxAccountLength",
              "anchor": "MaxAccountLength"
            }
          ],
          "decl": "const (\n\t// MaxPage is the most entries Top returns at once.\n\tMaxPage = 100\n\t// MaxRadius is the most entries Around returns on each side of the account.\n\tMaxRadius = 50\n\t// MaxFriends is the most accounts one Friends query looks up.\n\tMaxFriends = 200\n\t// MaxAccountLength is the longest account ID, in bytes, the service ranks.\n\tMaxAccountLength = 128\n)",
          "doc": "Query limits.\n",
          "file": "pkg/leaderboard/selfhost/service.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "AllTimePeriod",
              "anchor": "AllTimePeriod"
            }
          ],
          "decl": "const AllTimePeriod = \"all\"",
          "doc": "AllTimePeriod is the ID of an all-time board's only period.\n",
          "file": "pkg/leaderboard/selfhost/period.go",
          "line": 8
        },
        {
          "idents": [
            {
              "name": "ConfigVersion",
              "anchor": "ConfigVersion"
            }
          ],
          "decl": "const ConfigVersion = 1",
          "doc": "ConfigVersion is the configuration file schema version this package reads and writes.\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "DefaultProofTTL",
              "anchor": "DefaultProofTTL"
            }
          ],
          "decl": "const DefaultProofTTL = 10 * time.Minute",
          "doc": "DefaultProofTTL is how old a game server's score proof may be when the configuration sets no proofTTL.\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "MaxKeep",
              "anchor": "MaxKeep"
            }
          ],
          "decl": "const MaxKeep = 1000",
          "doc": "MaxKeep is the most earlier periods a resetting board keeps readable.\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "MaxSafeScore",
              "anchor": "MaxSafeScore"
            }
          ],
          "decl": "const MaxSafeScore = 1<<53 - 1",
          "doc": "MaxSafeScore is the largest score magnitude a board accepts, 2^53-1, so a score survives a JSON number in every client, JavaScript's included.\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 22
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrUnknownBoard",
              "anchor": "ErrUnknownBoard"
            },
            {
              "name": "ErrUnknownPeriod",
              "anchor": "ErrUnknownPeriod"
            },
            {
              "name": "ErrNotRanked",
              "anchor": "ErrNotRanked"
            },
            {
              "name": "ErrInvalidAccount",
              "anchor": "ErrInvalidAccount"
            },
            {
              "name": "ErrScoreOutOfRange",
              "anchor": "ErrScoreOutOfRange"
            },
            {
              "name": "ErrProofRequired",
              "anchor": "ErrProofRequired"
            },
            {
              "name": "ErrInvalidProof",
              "anchor": "ErrInvalidProof"
            },
            {
              "name": "ErrProofExpired",
              "anchor": "ErrProofExpired"
            },
            {
              "name": "ErrInvalidQuery",
              "anchor": "ErrInvalidQuery"
            }
          ],
          "decl": "var (\n\t// ErrUnknownBoard means the configuration has no board of that name.\n\tErrUnknownBoard = errors.New(\"selfhost: unknown board\")\n\t// ErrUnknownPeriod means the board has no such period, or no longer keeps it.\n\tErrUnknownPeriod = errors.New(\"selfhost: unknown period\")\n\t// ErrNotRanked means the account has no score in the period.\n\tErrNotRanked = errors.New(\"selfhost: account has no score in the period\")\n\t// ErrInvalidAccount means an account ID is empty, too long, not UTF-8 or holds a control character.\n\tErrInvalidAccount = errors.New(\"selfhost: invalid account ID\")\n\t// ErrScoreOutOfRange means the score is outside the board's min and max.\n\tErrScoreOutOfRange = errors.New(\"selfhost: score out of range\")\n\t// ErrProofRequired means the board validates scores and the submission has no proof.\n\tErrProofRequired = errors.New(\"selfhost: the board needs a game server's proof\")\n\t// ErrInvalidProof means the proof is malformed, signed by a key the configuration does not list, issued in the future, or not for this board, account and score.\n\tErrInvalidProof = errors.New(\"selfhost: invalid score proof\")\n\t// ErrProofExpired means the proof is older than the configuration's proofTTL, or was issued before the current period of a daily or weekly board began.\n\tErrProofExpired = errors.New(\"selfhost: score proof expired\")\n\t// ErrInvalidQuery means a limit, offset or radius is out of range, or a Friends query names too many accounts.\n\tErrInvalidQuery = errors.New(\"selfhost: invalid query\")\n)",
          "doc": "Errors the service returns; the HTTP handler maps each to a status and an error code.\n",
          "file": "pkg/leaderboard/selfhost/service.go",
          "line": 30
        }
      ],
      "funcs": [],
      "types": [
        {
          "name": "Board",
          "anchor": "Board",
          "decl": "type Board struct {\n\t// Name is the board's key in URLs and the data directory: 1 to 64 characters of a-z, 0-9, '.', '_' and '-', starting with a letter or digit.\n\tName string `yaml:\"name\"`\n\t// Order is the direction scores rank in.\n\tOrder Order `yaml:\"order\"`\n\t// Reset is how often the board starts over.\n\tReset Reset `yaml:\"reset\"`\n\t// WeekStart is the day a weekly board resets on, such as \"monday\" (the default when empty); only a weekly board may set it.\n\tWeekStart string `yaml:\"weekStart,omitempty\"`\n\t// Keep is how many earlier periods of a daily or weekly board stay readable after it resets, from 1 to MaxKeep; zero means 1. An all-time board may not set it.\n\tKeep int `yaml:\"keep,omitempty\"`\n\t// Validation is \"signed\" to accept only scores with a game server's proof, or empty to trust the player's client.\n\tValidation Validation `yaml:\"validation,omitempty\"`\n\t// Min is the lowest score accepted; nil means -MaxSafeScore.\n\tMin *int64 `yaml:\"min,omitempty\"`\n\t// Max is the highest score accepted; nil means MaxSafeScore.\n\tMax *int64 `yaml:\"max,omitempty\"`\n}",
          "doc": "Board declares one leaderboard.\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 93,
          "members": [
            {
              "name": "Name",
              "anchor": "Board.Name",
              "kind": "field",
              "doc": "Name is the board's key in URLs and the data directory: 1 to 64 characters of a-z, 0-9, '.', '_' and '-', starting with a letter or digit."
            },
            {
              "name": "Order",
              "anchor": "Board.Order",
              "kind": "field",
              "doc": "Order is the direction scores rank in."
            },
            {
              "name": "Reset",
              "anchor": "Board.Reset",
              "kind": "field",
              "doc": "Reset is how often the board starts over."
            },
            {
              "name": "WeekStart",
              "anchor": "Board.WeekStart",
              "kind": "field",
              "doc": "WeekStart is the day a weekly board resets on, such as \"monday\" (the default when empty); only a weekly board may set it."
            },
            {
              "name": "Keep",
              "anchor": "Board.Keep",
              "kind": "field",
              "doc": "Keep is how many earlier periods of a daily or weekly board stay readable after it resets, from 1 to MaxKeep; zero means 1. An all-time board may not set it."
            },
            {
              "name": "Validation",
              "anchor": "Board.Validation",
              "kind": "field",
              "doc": "Validation is \"signed\" to accept only scores with a game server's proof, or empty to trust the player's client."
            },
            {
              "name": "Min",
              "anchor": "Board.Min",
              "kind": "field",
              "doc": "Min is the lowest score accepted; nil means -MaxSafeScore."
            },
            {
              "name": "Max",
              "anchor": "Board.Max",
              "kind": "field",
              "doc": "Max is the highest score accepted; nil means MaxSafeScore."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BoardInfo",
          "anchor": "BoardInfo",
          "decl": "type BoardInfo struct {\n\t// Board is the board's declaration.\n\tBoard Board\n\t// Current is the period scores count in now.\n\tCurrent Period\n\t// Previous are the earlier periods still readable, the latest first.\n\tPrevious []Period\n}",
          "doc": "BoardInfo describes a board and its periods now.\n",
          "file": "pkg/leaderboard/selfhost/service.go",
          "line": 138,
          "members": [
            {
              "name": "Board",
              "anchor": "BoardInfo.Board",
              "kind": "field",
              "doc": "Board is the board's declaration."
            },
            {
              "name": "Current",
              "anchor": "BoardInfo.Current",
              "kind": "field",
              "doc": "Current is the period scores count in now."
            },
            {
              "name": "Previous",
              "anchor": "BoardInfo.Previous",
              "kind": "field",
              "doc": "Previous are the earlier periods still readable, the latest first."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Config",
          "anchor": "Config",
          "decl": "type Config struct {\n\t// Version is the schema version; it must be ConfigVersion.\n\tVersion int `yaml:\"version\"`\n\t// ProofTTL is how old a game server's score proof may be, from 1s to 24h; zero means DefaultProofTTL.\n\tProofTTL Duration `yaml:\"proofTTL,omitempty\"`\n\t// Boards are the leaderboards, in the order the service lists them.\n\tBoards []Board `yaml:\"boards\"`\n\t// ServerKeys are the game servers' Ed25519 public keys that sign score proofs. A board with validation: signed needs at least one.\n\tServerKeys []token.PublicKey `yaml:\"serverKeys,omitempty\"`\n}",
          "doc": "Config is the leaderboard service's settings, kept in a YAML file:\n\n\tversion: 1\n\tproofTTL: 10m\n\tboards:\n\t  - name: high-score\n\t    order: descending\n\t    reset: allTime\n\t  - name: weekly-sprint\n\t    order: ascending\n\t    reset: weekly\n\t    weekStart: monday\n\t    keep: 4\n\t    validation: signed\n\t    min: 1\n\t    max: 3600000\n\tserverKeys:\n\t  - id: 2317febd373fcbcd\n\t    key: hze+0cYruVRddgjkbHzgCeWWJbEsBkn6K8JNHRDf6Wg=\n\nUnknown fields, duplicate keys and trailing documents are refused. Optional fields keep what the file says, so a parsed file marshals back to the same fields; Marshal writes them in the order above with 2-space indentation, and a file in that form reads back and writes again byte for byte.\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 81,
          "members": [
            {
              "name": "Version",
              "anchor": "Config.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be ConfigVersion."
            },
            {
              "name": "ProofTTL",
              "anchor": "Config.ProofTTL",
              "kind": "field",
              "doc": "ProofTTL is how old a game server's score proof may be, from 1s to 24h; zero means DefaultProofTTL."
            },
            {
              "name": "Boards",
              "anchor": "Config.Boards",
              "kind": "field",
              "doc": "Boards are the leaderboards, in the order the service lists them."
            },
            {
              "name": "ServerKeys",
              "anchor": "Config.ServerKeys",
              "kind": "field",
              "doc": "ServerKeys are the game servers' Ed25519 public keys that sign score proofs. A board with validation: signed needs at least one."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseConfig",
              "anchor": "ParseConfig",
              "decl": "func ParseConfig(data []byte) (Config, error)",
              "doc": "ParseConfig decodes and validates a YAML configuration. Unknown fields, duplicate keys and trailing documents are refused.\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 278
            }
          ],
          "methods": [
            {
              "name": "Board",
              "anchor": "Config.Board",
              "recv": "Config",
              "decl": "func (c Config) Board(name string) (Board, bool)",
              "doc": "Board returns the board named name and whether it exists.\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 157
            },
            {
              "name": "Marshal",
              "anchor": "Config.Marshal",
              "recv": "Config",
              "decl": "func (c Config) Marshal() ([]byte, error)",
              "doc": "Marshal validates c and encodes it as deterministic 2-space YAML.\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 302
            },
            {
              "name": "Validate",
              "anchor": "Config.Validate",
              "recv": "Config",
              "decl": "func (c Config) Validate() error",
              "doc": "Validate checks that c is a complete version 1 configuration.\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 167
            }
          ]
        },
        {
          "name": "Duration",
          "anchor": "Duration",
          "decl": "type Duration time.Duration",
          "doc": "Duration is a time.Duration written in YAML as Go duration text (\"10m\", \"1h30m\").\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 320,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsZero",
              "anchor": "Duration.IsZero",
              "recv": "Duration",
              "decl": "func (d Duration) IsZero() bool",
              "doc": "IsZero reports whether d is zero, so an omitted duration stays omitted.\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 323
            },
            {
              "name": "MarshalYAML",
              "anchor": "Duration.MarshalYAML",
              "recv": "Duration",
              "decl": "func (d Duration) MarshalYAML() (any, error)",
              "doc": "MarshalYAML writes d as its shortest Go duration text: \"10m\" rather than \"10m0s\".\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 326
            },
            {
              "name": "UnmarshalYAML",
              "anchor": "Duration.UnmarshalYAML",
              "recv": "*Duration",
              "decl": "func (d *Duration) UnmarshalYAML(n *yaml.Node) error",
              "doc": "UnmarshalYAML reads Go duration text.\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 338
            }
          ]
        },
        {
          "name": "Entry",
          "anchor": "Entry",
          "decl": "type Entry struct {\n\t// Rank is the 1-based rank: the better score first, then the earlier achievement, then the smaller account ID, so no two entries share a rank.\n\tRank int\n\t// Account is the account ID.\n\tAccount string\n\t// Score is the account's best score in the period.\n\tScore int64\n\t// Achieved is when that score was submitted.\n\tAchieved time.Time\n}",
          "doc": "Entry is an account's place on a board.\n",
          "file": "pkg/leaderboard/selfhost/service.go",
          "line": 86,
          "members": [
            {
              "name": "Rank",
              "anchor": "Entry.Rank",
              "kind": "field",
              "doc": "Rank is the 1-based rank: the better score first, then the earlier achievement, then the smaller account ID, so no two entries share a rank."
            },
            {
              "name": "Account",
              "anchor": "Entry.Account",
              "kind": "field",
              "doc": "Account is the account ID."
            },
            {
              "name": "Score",
              "anchor": "Entry.Score",
              "kind": "field",
              "doc": "Score is the account's best score in the period."
            },
            {
              "name": "Achieved",
              "anchor": "Entry.Achieved",
              "kind": "field",
              "doc": "Achieved is when that score was submitted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FileStore",
          "anchor": "FileStore",
          "decl": "type FileStore struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "FileStore is a Store in a directory of text files: one JSON Lines file per board and period, at <dir>/<board>/<period>.jsonl, each line an account's new best score:\n\n\t{\"account\":\"3f9a...\",\"score\":4200,\"achieved\":\"2026-11-24T09:15:02.5Z\"}\n\nSave appends a line and Drop deletes a period's file. Load replays the files; it cuts off a last line a crash left unfinished, and rewrites a file whose lines are mostly superseded scores with one line per account. It is safe for concurrent use.\n",
          "file": "pkg/leaderboard/selfhost/filestore.go",
          "line": 31,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "OpenFileStore",
              "anchor": "OpenFileStore",
              "decl": "func OpenFileStore(dir string, opts FileStoreOptions) (*FileStore, error)",
              "doc": "OpenFileStore returns a FileStore in dir, creating the directory when it does not exist.\n",
              "file": "pkg/leaderboard/selfhost/filestore.go",
              "line": 52
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "FileStore.Close",
              "recv": "*FileStore",
              "decl": "func (f *FileStore) Close() error",
              "doc": "Close closes the files the store has open for appending.\n",
              "file": "pkg/leaderboard/selfhost/filestore.go",
              "line": 271
            },
            {
              "name": "Drop",
              "anchor": "FileStore.Drop",
              "recv": "*FileStore",
              "decl": "func (f *FileStore) Drop(ctx context.Context, board, period string) error",
              "doc": "Drop deletes a period's file.\n",
              "file": "pkg/leaderboard/selfhost/filestore.go",
              "line": 249
            },
            {
              "name": "Load",
              "anchor": "FileStore.Load",
              "recv": "*FileStore",
              "decl": "func (f *FileStore) Load(ctx context.Context, fn func(Record) error) error",
              "doc": "Load replays every period file, boards and periods in name order.\n",
              "file": "pkg/leaderboard/selfhost/filestore.go",
              "line": 71
            },
            {
              "name": "Save",
              "anchor": "FileStore.Save",
              "recv": "*FileStore",
              "decl": "func (f *FileStore) Save(ctx context.Context, rec Record) error",
              "doc": "Save appends rec to its period's file.\n",
              "file": "pkg/leaderboard/selfhost/filestore.go",
              "line": 194
            }
          ]
        },
        {
          "name": "FileStoreOptions",
          "anchor": "FileStoreOptions",
          "decl": "type FileStoreOptions struct {\n\t// Sync flushes every Save to the disk before it returns. Without it a Save reaches the operating system, which survives the process crashing but not the machine losing power.\n\tSync bool\n}",
          "doc": "FileStoreOptions are a FileStore's settings.\n",
          "file": "pkg/leaderboard/selfhost/filestore.go",
          "line": 46,
          "members": [
            {
              "name": "Sync",
              "anchor": "FileStoreOptions.Sync",
              "kind": "field",
              "doc": "Sync flushes every Save to the disk before it returns. Without it a Save reaches the operating system, which survives the process crashing but not the machine losing power."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MemoryStore",
          "anchor": "MemoryStore",
          "decl": "type MemoryStore struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MemoryStore is a Store in memory, for tests and prototypes: its records last as long as the process. It is safe for concurrent use.\n",
          "file": "pkg/leaderboard/selfhost/store.go",
          "line": 35,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMemoryStore",
              "anchor": "NewMemoryStore",
              "decl": "func NewMemoryStore() *MemoryStore",
              "doc": "NewMemoryStore returns an empty MemoryStore.\n",
              "file": "pkg/leaderboard/selfhost/store.go",
              "line": 41
            }
          ],
          "methods": [
            {
              "name": "Drop",
              "anchor": "MemoryStore.Drop",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Drop(ctx context.Context, board, period string) error",
              "doc": "Drop removes the records of a board's period.\n",
              "file": "pkg/leaderboard/selfhost/store.go",
              "line": 71
            },
            {
              "name": "Load",
              "anchor": "MemoryStore.Load",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Load(ctx context.Context, fn func(Record) error) error",
              "doc": "Load calls fn for every record in the order they were saved.\n",
              "file": "pkg/leaderboard/selfhost/store.go",
              "line": 44
            },
            {
              "name": "Periods",
              "anchor": "MemoryStore.Periods",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Periods() []string",
              "doc": "Periods returns the board and period pairs the store holds records for, sorted, as \"board/period\".\n",
              "file": "pkg/leaderboard/selfhost/store.go",
              "line": 89
            },
            {
              "name": "Save",
              "anchor": "MemoryStore.Save",
              "recv": "*MemoryStore",
              "decl": "func (m *MemoryStore) Save(ctx context.Context, rec Record) error",
              "doc": "Save appends rec.\n",
              "file": "pkg/leaderboard/selfhost/store.go",
              "line": 60
            }
          ]
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Store keeps the records; required.\n\tStore Store\n\t// Tokens verifies the account service's tokens for Handler, which needs it; a Service used only from Go may leave it nil.\n\tTokens *token.Verifier\n\t// Logger receives resets and store errors, never tokens or proofs; nil discards them.\n\tLogger *slog.Logger\n\t// Now is the service's clock; nil uses time.Now.\n\tNow func() time.Time\n\t// Leeway is the clock skew allowed between a game server and the service: a proof issued up to Leeway in the future is accepted, and an expired one up to Leeway late.\n\tLeeway time.Duration\n}",
          "doc": "Options are what a Service needs besides its Config.\n",
          "file": "pkg/leaderboard/selfhost/service.go",
          "line": 52,
          "members": [
            {
              "name": "Store",
              "anchor": "Options.Store",
              "kind": "field",
              "doc": "Store keeps the records; required."
            },
            {
              "name": "Tokens",
              "anchor": "Options.Tokens",
              "kind": "field",
              "doc": "Tokens verifies the account service's tokens for Handler, which needs it; a Service used only from Go may leave it nil."
            },
            {
              "name": "Logger",
              "anchor": "Options.Logger",
              "kind": "field",
              "doc": "Logger receives resets and store errors, never tokens or proofs; nil discards them."
            },
            {
              "name": "Now",
              "anchor": "Options.Now",
              "kind": "field",
              "doc": "Now is the service's clock; nil uses time.Now."
            },
            {
              "name": "Leeway",
              "anchor": "Options.Leeway",
              "kind": "field",
              "doc": "Leeway is the clock skew allowed between a game server and the service: a proof issued up to Leeway in the future is accepted, and an expired one up to Leeway late."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Order",
          "anchor": "Order",
          "decl": "type Order string",
          "doc": "Order is the direction a board ranks scores in.\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 31,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Descending",
                  "anchor": "Descending"
                },
                {
                  "name": "Ascending",
                  "anchor": "Ascending"
                }
              ],
              "decl": "const (\n\t// Descending ranks the highest score first, as for points.\n\tDescending Order = \"descending\"\n\t// Ascending ranks the lowest score first, as for a race time.\n\tAscending Order = \"ascending\"\n)",
              "doc": "The orders a board ranks in.\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 34
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Page",
          "anchor": "Page",
          "decl": "type Page struct {\n\t// Board is the board's name.\n\tBoard string\n\t// Period is the period the entries are in.\n\tPeriod Period\n\t// Total is how many accounts have a score in the period.\n\tTotal int\n\t// Entries are the entries asked for, in rank order.\n\tEntries []Entry\n}",
          "doc": "Page is the result of a query: some entries of one period of a board.\n",
          "file": "pkg/leaderboard/selfhost/service.go",
          "line": 102,
          "members": [
            {
              "name": "Board",
              "anchor": "Page.Board",
              "kind": "field",
              "doc": "Board is the board's name."
            },
            {
              "name": "Period",
              "anchor": "Page.Period",
              "kind": "field",
              "doc": "Period is the period the entries are in."
            },
            {
              "name": "Total",
              "anchor": "Page.Total",
              "kind": "field",
              "doc": "Total is how many accounts have a score in the period."
            },
            {
              "name": "Entries",
              "anchor": "Page.Entries",
              "kind": "field",
              "doc": "Entries are the entries asked for, in rank order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Period",
          "anchor": "Period",
          "decl": "type Period struct {\n\t// ID names the period: AllTimePeriod for an all-time board, otherwise the UTC date it starts on, such as \"2026-11-23\".\n\tID string\n\t// Start is when the period starts; zero for an all-time board.\n\tStart time.Time\n\t// End is when the next period starts; zero for an all-time board.\n\tEnd time.Time\n}",
          "doc": "Period is one stretch of a board between resets.\n",
          "file": "pkg/leaderboard/selfhost/period.go",
          "line": 14,
          "members": [
            {
              "name": "ID",
              "anchor": "Period.ID",
              "kind": "field",
              "doc": "ID names the period: AllTimePeriod for an all-time board, otherwise the UTC date it starts on, such as \"2026-11-23\"."
            },
            {
              "name": "Start",
              "anchor": "Period.Start",
              "kind": "field",
              "doc": "Start is when the period starts; zero for an all-time board."
            },
            {
              "name": "End",
              "anchor": "Period.End",
              "kind": "field",
              "doc": "End is when the next period starts; zero for an all-time board."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProofSigner",
          "anchor": "ProofSigner",
          "decl": "type ProofSigner struct {\n\n\t// Now is the signer's clock; nil uses time.Now.\n\tNow func() time.Time\n\t// contains filtered or unexported fields\n}",
          "doc": "ProofSigner issues score proofs on a game server: after the server has decided a match or checked a replay, it signs the board, the account and the score, and the player's client submits the proof with the score. A board with validation: signed accepts a score only with such a proof, made within the configuration's proofTTL by a key listed in its serverKeys.\n\nA proof is the text \"v1.<key id>.<unix seconds>.<signature>\", the signature an Ed25519 signature in unpadded base64url. It holds no secret, but it lets anyone holding it submit that score for that account, so the server hands it only to that player.\n",
          "file": "pkg/leaderboard/selfhost/proof.go",
          "line": 26,
          "members": [
            {
              "name": "Now",
              "anchor": "ProofSigner.Now",
              "kind": "field",
              "doc": "Now is the signer's clock; nil uses time.Now."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewProofSigner",
              "anchor": "NewProofSigner",
              "decl": "func NewProofSigner(key ed25519.PrivateKey) (*ProofSigner, error)",
              "doc": "NewProofSigner returns a signer for key, such as one read with token.ParsePrivateKey from the PEM file leaderboardd genkey writes.\n",
              "file": "pkg/leaderboard/selfhost/proof.go",
              "line": 34
            }
          ],
          "methods": [
            {
              "name": "PublicKey",
              "anchor": "ProofSigner.PublicKey",
              "recv": "*ProofSigner",
              "decl": "func (s *ProofSigner) PublicKey() token.PublicKey",
              "doc": "PublicKey returns the signer's public key as a serverKeys entry for the leaderboard configuration.\n",
              "file": "pkg/leaderboard/selfhost/proof.go",
              "line": 42
            },
            {
              "name": "Sign",
              "anchor": "ProofSigner.Sign",
              "recv": "*ProofSigner",
              "decl": "func (s *ProofSigner) Sign(board, account string, score int64) (string, error)",
              "doc": "Sign returns a proof that the account scored score on the board now.\n",
              "file": "pkg/leaderboard/selfhost/proof.go",
              "line": 48
            }
          ]
        },
        {
          "name": "Record",
          "anchor": "Record",
          "decl": "type Record struct {\n\t// Board is the board's name.\n\tBoard string\n\t// Period is the period's ID.\n\tPeriod string\n\t// Account is the account ID.\n\tAccount string\n\t// Score is the best score.\n\tScore int64\n\t// Achieved is when the score was submitted; an earlier achievement ranks above a later one with the same score.\n\tAchieved time.Time\n}",
          "doc": "Record is an account's best score in one period of a board, as a Store keeps it.\n",
          "file": "pkg/leaderboard/selfhost/store.go",
          "line": 11,
          "members": [
            {
              "name": "Board",
              "anchor": "Record.Board",
              "kind": "field",
              "doc": "Board is the board's name."
            },
            {
              "name": "Period",
              "anchor": "Record.Period",
              "kind": "field",
              "doc": "Period is the period's ID."
            },
            {
              "name": "Account",
              "anchor": "Record.Account",
              "kind": "field",
              "doc": "Account is the account ID."
            },
            {
              "name": "Score",
              "anchor": "Record.Score",
              "kind": "field",
              "doc": "Score is the best score."
            },
            {
              "name": "Achieved",
              "anchor": "Record.Achieved",
              "kind": "field",
              "doc": "Achieved is when the score was submitted; an earlier achievement ranks above a later one with the same score."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Reset",
          "anchor": "Reset",
          "decl": "type Reset string",
          "doc": "Reset is how often a board starts over.\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 42,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AllTime",
                  "anchor": "AllTime"
                },
                {
                  "name": "Daily",
                  "anchor": "Daily"
                },
                {
                  "name": "Weekly",
                  "anchor": "Weekly"
                }
              ],
              "decl": "const (\n\t// AllTime never resets.\n\tAllTime Reset = \"allTime\"\n\t// Daily starts over every day at midnight UTC.\n\tDaily Reset = \"daily\"\n\t// Weekly starts over every week at midnight UTC on the board's weekStart day.\n\tWeekly Reset = \"weekly\"\n)",
              "doc": "The reset periods. Periods are in UTC: a daily board starts over at midnight UTC, a weekly one at midnight UTC on its weekStart day.\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 45
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Result",
          "anchor": "Result",
          "decl": "type Result struct {\n\t// Period is the period the score counted in.\n\tPeriod Period\n\t// Entry is the account's entry after the submission: the new score when it improved on the account's best, the earlier best otherwise.\n\tEntry Entry\n\t// Total is how many accounts have a score in the period.\n\tTotal int\n\t// Improved reports whether the score became the account's best in the period.\n\tImproved bool\n}",
          "doc": "Result is what a submission did.\n",
          "file": "pkg/leaderboard/selfhost/service.go",
          "line": 126,
          "members": [
            {
              "name": "Period",
              "anchor": "Result.Period",
              "kind": "field",
              "doc": "Period is the period the score counted in."
            },
            {
              "name": "Entry",
              "anchor": "Result.Entry",
              "kind": "field",
              "doc": "Entry is the account's entry after the submission: the new score when it improved on the account's best, the earlier best otherwise."
            },
            {
              "name": "Total",
              "anchor": "Result.Total",
              "kind": "field",
              "doc": "Total is how many accounts have a score in the period."
            },
            {
              "name": "Improved",
              "anchor": "Result.Improved",
              "kind": "field",
              "doc": "Improved reports whether the score became the account's best in the period."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Service",
          "anchor": "Service",
          "decl": "type Service struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Service is the leaderboard service: the configuration's boards, each ranking every account's best score in its current period and keeping its earlier periods readable. It is safe for concurrent use.\n",
          "file": "pkg/leaderboard/selfhost/service.go",
          "line": 66,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(ctx context.Context, cfg Config, opts Options) (*Service, error)",
              "doc": "New returns a service with the configuration and options. It loads the store's records, serves those of each board's current period and the earlier periods the board keeps, and drops from the store only the periods that align with the board's reset and weekStart and are older than the ones it keeps. Records it cannot place are left in the store, not served, and logged as a warning: those of a board the configuration no longer declares, and those of a period that does not align, such as one stored before the board's reset or weekStart changed. A period later than the current one, which a clock that is behind sees, is loaded but not served until the clock reaches it.\n",
              "file": "pkg/leaderboard/selfhost/service.go",
              "line": 148
            }
          ],
          "methods": [
            {
              "name": "Around",
              "anchor": "Service.Around",
              "recv": "*Service",
              "decl": "func (s *Service) Around(ctx context.Context, board, period, account string, radius int) (Page, error)",
              "doc": "Around returns the account's entry with up to radius entries (0 to MaxRadius) on each side of it. Near either end of the board the window shifts so it still holds 2*radius+1 entries when the board has that many. It returns ErrNotRanked when the account has no score in the period.\n",
              "file": "pkg/leaderboard/selfhost/service.go",
              "line": 383
            },
            {
              "name": "Boards",
              "anchor": "Service.Boards",
              "recv": "*Service",
              "decl": "func (s *Service) Boards(ctx context.Context) []BoardInfo",
              "doc": "Boards describes every board in the configuration's order, with its current period and the earlier periods still readable.\n",
              "file": "pkg/leaderboard/selfhost/service.go",
              "line": 449
            },
            {
              "name": "Config",
              "anchor": "Service.Config",
              "recv": "*Service",
              "decl": "func (s *Service) Config() Config",
              "doc": "Config returns the service's configuration.\n",
              "file": "pkg/leaderboard/selfhost/service.go",
              "line": 236
            },
            {
              "name": "Friends",
              "anchor": "Service.Friends",
              "recv": "*Service",
              "decl": "func (s *Service) Friends(ctx context.Context, board, period string, accounts []string) (Page, error)",
              "doc": "Friends returns the entries of the given accounts that have a score in the period, in rank order, each with its rank on the whole board. A game passes the player's friends from wherever it keeps them (a platform's friend list, its own social graph), usually with the player's own account; duplicates are ignored. At most MaxFriends accounts are looked up at once.\n",
              "file": "pkg/leaderboard/selfhost/service.go",
              "line": 407
            },
            {
              "name": "Handler",
              "anchor": "Service.Handler",
              "recv": "*Service",
              "decl": "func (s *Service) Handler() http.Handler",
              "doc": "Handler serves the service over HTTP. Every request carries the player's account token as \"Authorization: Bearer <token>\", verified offline with Options.Tokens, whose subject is the account the request is for. Requests and responses are JSON; every response carries Cache-Control: no-store.\n\n\tGET  /v1/boards                                              -> {\"boards\": [board]}\n\tPOST /v1/boards/{board}/scores   {\"score\", \"proof\"}          -> {\"period\", \"entry\", \"total\", \"improved\"}\n\tGET  /v1/boards/{board}/top?period=&offset=&limit=           -> page\n\tGET  /v1/boards/{board}/around?period=&radius=               -> page around the token's account\n\tPOST /v1/boards/{board}/friends?period=   {\"accounts\": [id]} -> page of those accounts\n\nA board is {\"name\", \"order\", \"reset\", \"validation\", \"current\", \"previous\"}; a period is {\"id\", \"start\", \"end\"}, start and end in RFC 3339 and absent for an all-time board; a page is {\"board\", \"period\", \"total\", \"entries\"}; an entry is {\"rank\", \"account\", \"score\", \"achieved\"}. period is \"current\" (the default), \"previous\" or an earlier period's ID; limit defaults to DefaultLimit and radius to DefaultRadius.\n\nErrors are {\"error\": code} with the status the code implies: invalid_token 401; proof_required, invalid_proof and proof_expired 403; unknown_board, unknown_period and not_ranked 404; bad_request, invalid_account and score_out_of_range 400; request_too_large 413; unavailable 503 when the request was cancelled or timed out; internal 500.\n\nThe handler does not limit request rates; put it behind a rate limiter, and behind TLS. It panics when the service has no Options.Tokens.\n",
              "file": "pkg/leaderboard/selfhost/http.go",
              "line": 39
            },
            {
              "name": "Rank",
              "anchor": "Service.Rank",
              "recv": "*Service",
              "decl": "func (s *Service) Rank(ctx context.Context, board, period, account string) (Entry, error)",
              "doc": "Rank returns the account's entry in a period, or ErrNotRanked when it has none.\n",
              "file": "pkg/leaderboard/selfhost/service.go",
              "line": 440
            },
            {
              "name": "Submit",
              "anchor": "Service.Submit",
              "recv": "*Service",
              "decl": "func (s *Service) Submit(ctx context.Context, sub Submission) (Result, error)",
              "doc": "Submit records a score. The score counts in the board's current period and replaces the account's best there only when it is better; an equal or worse score leaves the entry as it was and reports Improved false.\n",
              "file": "pkg/leaderboard/selfhost/service.go",
              "line": 281
            },
            {
              "name": "Top",
              "anchor": "Service.Top",
              "recv": "*Service",
              "decl": "func (s *Service) Top(ctx context.Context, board, period string, offset, limit int) (Page, error)",
              "doc": "Top returns up to limit entries (1 to MaxPage) of a period from rank offset+1 on. The period is \"\" or \"current\" for the current period, \"previous\" for the one before, or the ID of an earlier period the board still keeps.\n",
              "file": "pkg/leaderboard/selfhost/service.go",
              "line": 363
            }
          ]
        },
        {
          "name": "Store",
          "anchor": "Store",
          "decl": "type Store interface {\n\t// Load calls fn for every record kept, in the order they were saved, stopping at fn's first error. A later record for the same board, period and account replaces an earlier one.\n\tLoad(ctx context.Context, fn func(Record) error) error\n\t// Save keeps rec as the account's best score in the period, replacing the one before.\n\tSave(ctx context.Context, rec Record) error\n\t// Drop removes every record of a board's period, once the board no longer keeps it.\n\tDrop(ctx context.Context, board, period string) error\n}",
          "doc": "Store keeps the service's records so a restart finds the boards as they were. The service calls it with one board's calls at a time, from many goroutines across boards.\n",
          "file": "pkg/leaderboard/selfhost/store.go",
          "line": 25,
          "members": [
            {
              "name": "Load",
              "anchor": "Store.Load",
              "kind": "method",
              "doc": "Load calls fn for every record kept, in the order they were saved, stopping at fn's first error. A later record for the same board, period and account replaces an earlier one."
            },
            {
              "name": "Save",
              "anchor": "Store.Save",
              "kind": "method",
              "doc": "Save keeps rec as the account's best score in the period, replacing the one before."
            },
            {
              "name": "Drop",
              "anchor": "Store.Drop",
              "kind": "method",
              "doc": "Drop removes every record of a board's period, once the board no longer keeps it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Submission",
          "anchor": "Submission",
          "decl": "type Submission struct {\n\t// Board is the board's name.\n\tBoard string\n\t// Account is the account that scored, the subject of the player's verified token.\n\tAccount string\n\t// Score is the score.\n\tScore int64\n\t// Proof is a game server's ProofSigner proof of the score; a board with validation: signed needs it, other boards ignore it.\n\tProof string\n}",
          "doc": "Submission is a score for a board.\n",
          "file": "pkg/leaderboard/selfhost/service.go",
          "line": 114,
          "members": [
            {
              "name": "Board",
              "anchor": "Submission.Board",
              "kind": "field",
              "doc": "Board is the board's name."
            },
            {
              "name": "Account",
              "anchor": "Submission.Account",
              "kind": "field",
              "doc": "Account is the account that scored, the subject of the player's verified token."
            },
            {
              "name": "Score",
              "anchor": "Submission.Score",
              "kind": "field",
              "doc": "Score is the score."
            },
            {
              "name": "Proof",
              "anchor": "Submission.Proof",
              "kind": "field",
              "doc": "Proof is a game server's ProofSigner proof of the score; a board with validation: signed needs it, other boards ignore it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Validation",
          "anchor": "Validation",
          "decl": "type Validation string",
          "doc": "Validation is how a board checks where a score came from.\n",
          "file": "pkg/leaderboard/selfhost/config.go",
          "line": 55,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SignedByServer",
                  "anchor": "SignedByServer"
                }
              ],
              "decl": "const SignedByServer Validation = \"signed\"",
              "doc": "SignedByServer accepts a score only with a proof signed by one of the configuration's serverKeys, which the game server issues for the match result or replay it checked.\n",
              "file": "pkg/leaderboard/selfhost/config.go",
              "line": 58
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/lights2d",
      "name": "lights2d",
      "dir": "pkg/lights2d",
      "page": "pkg/lights2d",
      "synopsis": "Package lights2d implements 2D lighting for NSGo games: point and spot lights composited over ambient darkness, exact 2D visibility-polygon shadows from occluders, and tangent-space normal-mapped sprite shading.",
      "doc": "Package lights2d implements 2D lighting for NSGo games: point and spot lights\ncomposited over ambient darkness, exact 2D visibility-polygon shadows from\noccluders, and tangent-space normal-mapped sprite shading.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "LineOfSight",
          "anchor": "LineOfSight",
          "decl": "func LineOfSight(occluders *[]Occluder) func(from, to core.Point) bool",
          "doc": "LineOfSight returns a function that reports Visible against *occluders, reading the slice on every call so a game that rebuilds its occluders keeps one function. It has the shape of ai.LineOfSight, so the occluders that cast shadows also block an agent's sight.\n",
          "file": "pkg/lights2d/visibility.go",
          "line": 300
        },
        {
          "name": "PointInPolygon",
          "anchor": "PointInPolygon",
          "decl": "func PointInPolygon(p core.Point, poly []core.Point) bool",
          "doc": "PointInPolygon reports whether p lies inside the closed polygon poly using\nthe even-odd ray-casting rule.\n",
          "file": "pkg/lights2d/visibility.go",
          "line": 335
        },
        {
          "name": "ShadeNormalMap",
          "anchor": "ShadeNormalMap",
          "decl": "func ShadeNormalMap(diffuse, normalMap *image.NRGBA, spriteX, spriteY float32, ambient core.Color, lights []*Light, lightZ float32) *image.NRGBA",
          "doc": "ShadeNormalMap computes tangent-space normal-mapped lighting for diffuse\nusing normalMap, placing the sprite's top-left corner at (spriteX, spriteY).\n\nNormal vectors are decoded from normalMap RGB channels as\n(nx, ny, nz) = (2*R - 1, 2*G - 1, 2*B - 1) and normalized. Each pixel's\ndiffuse RGB is modulated by ambient + Σ(lightColor * intensity * atten * max(0, N·L)),\nwhere L points from the pixel toward (light.X, light.Y, lightZ). Alpha is\npreserved from diffuse.\n\nIf diffuse is nil, ShadeNormalMap returns nil. If normalMap is nil, a flat\nforward-facing normal (0, 0, 1) is used.\n",
          "file": "pkg/lights2d/normalmap.go",
          "line": 23
        },
        {
          "name": "ShadeNormalMapWithOccluders",
          "anchor": "ShadeNormalMapWithOccluders",
          "decl": "func ShadeNormalMapWithOccluders(diffuse, normalMap *image.NRGBA, spriteX, spriteY float32, ambient core.Color, lights []*Light, lightZ float32, occluders []Occluder) *image.NRGBA",
          "doc": "ShadeNormalMapWithOccluders behaves like ShadeNormalMap and also tests\nline-of-sight shadow occlusion against occluders for lights with CastShadows\nenabled.\n",
          "file": "pkg/lights2d/normalmap.go",
          "line": 30
        },
        {
          "name": "VisibilityPolygon",
          "anchor": "VisibilityPolygon",
          "decl": "func VisibilityPolygon(origin core.Point, radius float32, occluders []Occluder) []core.Point",
          "doc": "VisibilityPolygon computes the exact 2D visibility polygon from origin within\nthe bounding square [origin.X-radius, origin.X+radius] x [origin.Y-radius, origin.Y+radius]\nagainst occluders using radial ray casting.\n\nIt returns nil when radius <= 0.\n",
          "file": "pkg/lights2d/visibility.go",
          "line": 111
        },
        {
          "name": "Visible",
          "anchor": "Visible",
          "decl": "func Visible(origin, target core.Point, occluders []Occluder) bool",
          "doc": "Visible reports whether the line of sight from origin to target is\nunobstructed by occluders.\n",
          "file": "pkg/lights2d/visibility.go",
          "line": 291
        }
      ],
      "types": [
        {
          "name": "Light",
          "anchor": "Light",
          "decl": "type Light struct {\n\t// X and Y are the light's position in world coordinates.\n\tX, Y float32\n\t// Radius is the maximum reach of the light. Non-positive values emit nothing.\n\tRadius float32\n\t// Color is the light's color (its alpha further scales brightness).\n\tColor core.Color\n\t// Intensity scales the light's brightness. Non-positive values emit nothing.\n\tIntensity float32\n\t// Falloff is the distance attenuation exponent in (1 - d/Radius)^Falloff.\n\t// Values <= 0 default to 2 (smooth quadratic falloff).\n\tFalloff float32\n\t// ConeAngle is the spotlight direction in radians (0 = +X, pi/2 = +Y).\n\tConeAngle float32\n\t// ConeSpread is the total angular width of the spotlight cone in radians.\n\t// When ConeSpread <= 0 or >= 2*pi, the light is omnidirectional.\n\tConeSpread float32\n\t// CastShadows clips the light against the scene's occluders.\n\tCastShadows bool\n\t// Enabled turns the light on or off.\n\tEnabled bool\n}",
          "doc": "Light is a 2D point light or directional spotlight.\n",
          "file": "pkg/lights2d/lights.go",
          "line": 18,
          "members": [
            {
              "name": "X",
              "anchor": "Light.X",
              "kind": "field",
              "doc": "X and Y are the light's position in world coordinates."
            },
            {
              "name": "Y",
              "anchor": "Light.Y",
              "kind": "field",
              "doc": "X and Y are the light's position in world coordinates."
            },
            {
              "name": "Radius",
              "anchor": "Light.Radius",
              "kind": "field",
              "doc": "Radius is the maximum reach of the light. Non-positive values emit nothing."
            },
            {
              "name": "Color",
              "anchor": "Light.Color",
              "kind": "field",
              "doc": "Color is the light's color (its alpha further scales brightness)."
            },
            {
              "name": "Intensity",
              "anchor": "Light.Intensity",
              "kind": "field",
              "doc": "Intensity scales the light's brightness. Non-positive values emit nothing."
            },
            {
              "name": "Falloff",
              "anchor": "Light.Falloff",
              "kind": "field",
              "doc": "Falloff is the distance attenuation exponent in (1 - d/Radius)^Falloff.\nValues <= 0 default to 2 (smooth quadratic falloff)."
            },
            {
              "name": "ConeAngle",
              "anchor": "Light.ConeAngle",
              "kind": "field",
              "doc": "ConeAngle is the spotlight direction in radians (0 = +X, pi/2 = +Y)."
            },
            {
              "name": "ConeSpread",
              "anchor": "Light.ConeSpread",
              "kind": "field",
              "doc": "ConeSpread is the total angular width of the spotlight cone in radians.\nWhen ConeSpread <= 0 or >= 2*pi, the light is omnidirectional."
            },
            {
              "name": "CastShadows",
              "anchor": "Light.CastShadows",
              "kind": "field",
              "doc": "CastShadows clips the light against the scene's occluders."
            },
            {
              "name": "Enabled",
              "anchor": "Light.Enabled",
              "kind": "field",
              "doc": "Enabled turns the light on or off."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLight",
              "anchor": "NewLight",
              "decl": "func NewLight(x, y, radius float32, color core.Color) *Light",
              "doc": "NewLight returns an enabled omnidirectional light with Intensity 1 and\nquadratic Falloff (2).\n",
              "file": "pkg/lights2d/lights.go",
              "line": 43
            }
          ],
          "methods": [
            {
              "name": "AttenuationAt",
              "anchor": "Light.AttenuationAt",
              "recv": "*Light",
              "decl": "func (l *Light) AttenuationAt(x, y float32) float32",
              "doc": "AttenuationAt returns the combined distance and spotlight-cone attenuation\nfactor in [0, 1] at world point (x, y). It returns 0 when the light is\ndisabled, has non-positive Radius or Intensity, or (x, y) lies outside the\nlight's radius or spotlight cone.\n",
              "file": "pkg/lights2d/lights.go",
              "line": 70
            }
          ]
        },
        {
          "name": "NormalSprite",
          "anchor": "NormalSprite",
          "decl": "type NormalSprite struct {\n\t// Diffuse is the unlit straight-alpha sprite image.\n\tDiffuse *image.NRGBA\n\t// NormalMap is the tangent-space normal map matching Diffuse.\n\tNormalMap *image.NRGBA\n\t// X and Y are the sprite's top-left position in world coordinates.\n\tX, Y float32\n\t// LightZ is the elevation of 2D lights above the sprite plane.\n\t// Values <= 0 are passed through directly; NewNormalSprite initializes it to 32.\n\tLightZ float32\n\t// contains filtered or unexported fields\n}",
          "doc": "NormalSprite caches normal-mapped shading of a diffuse/normal-map sprite pair\nand exposes a premultiplied core.ImageSource ready for Drawing.DrawImage.\n\nIt only recomputes shading and increments ImageSource.Version when the\nsprite's position, LightZ, source images, or the scene's lighting/occluders\nchange, or after Invalidate is called.\n",
          "file": "pkg/lights2d/normalmap.go",
          "line": 246,
          "members": [
            {
              "name": "Diffuse",
              "anchor": "NormalSprite.Diffuse",
              "kind": "field",
              "doc": "Diffuse is the unlit straight-alpha sprite image."
            },
            {
              "name": "NormalMap",
              "anchor": "NormalSprite.NormalMap",
              "kind": "field",
              "doc": "NormalMap is the tangent-space normal map matching Diffuse."
            },
            {
              "name": "X",
              "anchor": "NormalSprite.X",
              "kind": "field",
              "doc": "X and Y are the sprite's top-left position in world coordinates."
            },
            {
              "name": "Y",
              "anchor": "NormalSprite.Y",
              "kind": "field",
              "doc": "X and Y are the sprite's top-left position in world coordinates."
            },
            {
              "name": "LightZ",
              "anchor": "NormalSprite.LightZ",
              "kind": "field",
              "doc": "LightZ is the elevation of 2D lights above the sprite plane.\nValues <= 0 are passed through directly; NewNormalSprite initializes it to 32."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNormalSprite",
              "anchor": "NewNormalSprite",
              "decl": "func NewNormalSprite(diffuse, normalMap *image.NRGBA) *NormalSprite",
              "doc": "NewNormalSprite returns a NormalSprite with a default LightZ of 32.\n",
              "file": "pkg/lights2d/normalmap.go",
              "line": 265
            }
          ],
          "methods": [
            {
              "name": "Draw",
              "anchor": "NormalSprite.Draw",
              "recv": "*NormalSprite",
              "decl": "func (ns *NormalSprite) Draw(d *core.Drawing, scene *Scene)",
              "doc": "Draw shades (if dirty) and draws the sprite into d at (ns.X, ns.Y).\n",
              "file": "pkg/lights2d/normalmap.go",
              "line": 336
            },
            {
              "name": "ImageSource",
              "anchor": "NormalSprite.ImageSource",
              "recv": "*NormalSprite",
              "decl": "func (ns *NormalSprite) ImageSource(scene *Scene) core.ImageSource",
              "doc": "ImageSource returns a core.ImageSource backed by premultiplied Pixels shaded\nby scene. Repeated calls with unchanged inputs return the cached ImageSource\nwith the same Version and perform no re-shading.\n",
              "file": "pkg/lights2d/normalmap.go",
              "line": 294
            },
            {
              "name": "Invalidate",
              "anchor": "NormalSprite.Invalidate",
              "recv": "*NormalSprite",
              "decl": "func (ns *NormalSprite) Invalidate()",
              "doc": "Invalidate marks the cached shaded image stale so the next ImageSource or\nDraw call recomputes it. Call this after mutating Diffuse or NormalMap pixels\nin place.\n",
              "file": "pkg/lights2d/normalmap.go",
              "line": 276
            },
            {
              "name": "Shaded",
              "anchor": "NormalSprite.Shaded",
              "recv": "*NormalSprite",
              "decl": "func (ns *NormalSprite) Shaded() *image.NRGBA",
              "doc": "Shaded returns the most recently computed straight-alpha shaded image, or nil\nif ImageSource has not been called yet.\n",
              "file": "pkg/lights2d/normalmap.go",
              "line": 284
            }
          ]
        },
        {
          "name": "Occluder",
          "anchor": "Occluder",
          "decl": "type Occluder struct {\n\tVertices []core.Point\n\tSegments []Segment\n}",
          "doc": "Occluder blocks light along its edges.\n\nVertices form a closed polygon (each consecutive pair of vertices, plus the\nedge from the last vertex back to the first when there are at least three\nvertices). Segments are additional explicit line segments. An Occluder may\npopulate Vertices, Segments, or both.\n",
          "file": "pkg/lights2d/visibility.go",
          "line": 21,
          "members": [
            {
              "name": "Vertices",
              "anchor": "Occluder.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Segments",
              "anchor": "Occluder.Segments",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PolygonOccluder",
              "anchor": "PolygonOccluder",
              "decl": "func PolygonOccluder(vertices ...core.Point) Occluder",
              "doc": "PolygonOccluder returns a closed polygon Occluder from vertices.\n",
              "file": "pkg/lights2d/visibility.go",
              "line": 43
            },
            {
              "name": "RectOccluder",
              "anchor": "RectOccluder",
              "decl": "func RectOccluder(b core.Bounds) Occluder",
              "doc": "RectOccluder returns a closed rectangular Occluder for b.\n",
              "file": "pkg/lights2d/visibility.go",
              "line": 27
            },
            {
              "name": "SegmentOccluder",
              "anchor": "SegmentOccluder",
              "decl": "func SegmentOccluder(segments ...Segment) Occluder",
              "doc": "SegmentOccluder returns an Occluder built from explicit line segments.\n",
              "file": "pkg/lights2d/visibility.go",
              "line": 50
            }
          ],
          "methods": []
        },
        {
          "name": "Scene",
          "anchor": "Scene",
          "decl": "type Scene struct {\n\t// Ambient is the ambient darkness tint and alpha drawn over the scene bounds,\n\t// and the baseline ambient illumination in EvaluateAt and normal-map shading.\n\tAmbient core.Color\n\t// Lights are the point and spot lights in the scene.\n\tLights []*Light\n\t// Occluders block light from lights with CastShadows enabled.\n\tOccluders []Occluder\n\t// LightComposite sets how light glows composite onto the drawing.\n\t// Zero defaults to core.CompositeLighter (additive) unless set explicitly\n\t// with SetLightComposite. Assign core.CompositeScreen for softer\n\t// screen-blended lights, or call SetLightComposite(core.CompositeSourceOver)\n\t// for alpha-over glows.\n\tLightComposite core.CompositeOp\n\t// DisableShadows skips occlusion for every light, as though none had CastShadows, without changing the lights; a low quality preset sets it (quality.Preset.Shadows false).\n\tDisableShadows bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Scene holds the ambient darkness, lights, and shadow-casting occluders for a\n2D lighting pass.\n",
          "file": "pkg/lights2d/lights.go",
          "line": 102,
          "members": [
            {
              "name": "Ambient",
              "anchor": "Scene.Ambient",
              "kind": "field",
              "doc": "Ambient is the ambient darkness tint and alpha drawn over the scene bounds,\nand the baseline ambient illumination in EvaluateAt and normal-map shading."
            },
            {
              "name": "Lights",
              "anchor": "Scene.Lights",
              "kind": "field",
              "doc": "Lights are the point and spot lights in the scene."
            },
            {
              "name": "Occluders",
              "anchor": "Scene.Occluders",
              "kind": "field",
              "doc": "Occluders block light from lights with CastShadows enabled."
            },
            {
              "name": "LightComposite",
              "anchor": "Scene.LightComposite",
              "kind": "field",
              "doc": "LightComposite sets how light glows composite onto the drawing.\nZero defaults to core.CompositeLighter (additive) unless set explicitly\nwith SetLightComposite. Assign core.CompositeScreen for softer\nscreen-blended lights, or call SetLightComposite(core.CompositeSourceOver)\nfor alpha-over glows."
            },
            {
              "name": "DisableShadows",
              "anchor": "Scene.DisableShadows",
              "kind": "field",
              "doc": "DisableShadows skips occlusion for every light, as though none had CastShadows, without changing the lights; a low quality preset sets it (quality.Preset.Shadows false)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "Scene.Draw",
              "recv": "*Scene",
              "decl": "func (s *Scene) Draw(d *core.Drawing, bounds core.Bounds)",
              "doc": "Draw renders the ambient darkness overlay followed by all active light glows\ninto d, clipped to bounds. Lights with CastShadows enabled are clipped to\ntheir exact 2D visibility polygon against s.Occluders.\n\nDraw leaves d's graphics state as it found it.\n",
              "file": "pkg/lights2d/lights.go",
              "line": 159
            },
            {
              "name": "EffectiveLightComposite",
              "anchor": "Scene.EffectiveLightComposite",
              "recv": "*Scene",
              "decl": "func (s *Scene) EffectiveLightComposite() core.CompositeOp",
              "doc": "EffectiveLightComposite returns the composite operation Draw uses for light\nglows: s.LightComposite when non-zero or set with SetLightComposite, and\ncore.CompositeLighter otherwise.\n",
              "file": "pkg/lights2d/lights.go",
              "line": 136
            },
            {
              "name": "EvaluateAt",
              "anchor": "Scene.EvaluateAt",
              "recv": "*Scene",
              "decl": "func (s *Scene) EvaluateAt(x, y float32) (r, g, b float32)",
              "doc": "EvaluateAt computes the lit RGB intensity at world point (x, y), combining\nambient illumination with every active light's color, intensity, distance\nfalloff, spotlight cone, and shadow occlusion.\n",
              "file": "pkg/lights2d/lights.go",
              "line": 239
            },
            {
              "name": "SetLightComposite",
              "anchor": "Scene.SetLightComposite",
              "recv": "*Scene",
              "decl": "func (s *Scene) SetLightComposite(op core.CompositeOp)",
              "doc": "SetLightComposite sets how light glows composite onto the drawing, including\ncore.CompositeSourceOver (whose zero value is otherwise treated as unset and\ndefaults to core.CompositeLighter).\n",
              "file": "pkg/lights2d/lights.go",
              "line": 125
            },
            {
              "name": "ShadeNormalMap",
              "anchor": "Scene.ShadeNormalMap",
              "recv": "*Scene",
              "decl": "func (s *Scene) ShadeNormalMap(diffuse, normalMap *image.NRGBA, spriteX, spriteY, lightZ float32) *image.NRGBA",
              "doc": "ShadeNormalMap shades diffuse using normalMap with the scene's Ambient, Lights, and Occluders, leaving the occluders out when DisableShadows is set.\n",
              "file": "pkg/lights2d/normalmap.go",
              "line": 40
            }
          ]
        },
        {
          "name": "Segment",
          "anchor": "Segment",
          "decl": "type Segment struct {\n\tA, B core.Point\n}",
          "doc": "Segment is a 2D line segment from A to B that blocks light.\n",
          "file": "pkg/lights2d/visibility.go",
          "line": 11,
          "members": [
            {
              "name": "A",
              "anchor": "Segment.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "Segment.B",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/liveops",
      "name": "liveops",
      "dir": "pkg/liveops",
      "page": "pkg/liveops",
      "synopsis": "Package liveops holds provider-agnostic live operations primitives for NSGo games: crash reports, consent-gated analytics, a cloud-save sync interface and in-app purchases credited into the save.",
      "doc": "Package liveops holds provider-agnostic live operations primitives for NSGo games: crash reports, consent-gated analytics, a cloud-save sync interface and in-app purchases credited into the save. It links no third-party analytics, crash-reporting, ad or payment SDKs.\n\n# Scope (#194)\n\nIn scope for the core game module:\n  - Crash reports (#195): panic recovery around game.Loop and arbitrary callbacks, with a fixed-size step ring buffer, stack trace, metadata and an optional state snapshot handed to the app's reporter.\n  - Analytics (#198): a provider-agnostic, strictly opt-in event API whose consent state persists in core.Storage. Zero events are sent or buffered before explicit ConsentGranted.\n  - Cloud saves (#196): the provider-agnostic CloudSync interface, PlatformCloud over NSGo's cloud package (iCloud on macOS/iOS, Google Play Games Saved Games on Android, and the in-memory store in nsgotest), DirCloud for Steam Auto-Cloud and other directory-synced stores, CloudClient (#557) for the self-hosted cloudsave service, and CloudSyncer (#539), which detects slots changed on two devices and resolves them by policy without silently losing either copy.\n  - In-app purchases (#369): Purchases over NSGo's purchase services, which credits consumables into the save exactly once through a Ledger saved with them, keeps unlocks and subscriptions from the store's entitlements, restores them, follows purchases waiting for approval and hands transactions to an optional server before delivering them.\n\nOut of scope for the core game module:\n  - Ads (#199): ad networks (AdMob, AppLovin and similar) require proprietary native SDKs with store-policy and privacy obligations that do not belong in the core game layer. Games that show ads embed native SDK views directly through NSGo.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "CloudSaveFormat",
              "anchor": "CloudSaveFormat"
            }
          ],
          "decl": "const CloudSaveFormat = \"nsgo-cloud-save\"",
          "doc": "CloudSaveFormat is the \"format\" value that marks a cloud payload written by CloudSyncer. A payload without it is read as a plain save written by a game that used CloudSync directly, at revision 0.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "CloudSaveVersion",
              "anchor": "CloudSaveVersion"
            }
          ],
          "decl": "const CloudSaveVersion = 1",
          "doc": "CloudSaveVersion is the schema version of the cloud payload CloudSyncer writes and the newest one it reads.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "DefaultCloudPrefix",
              "anchor": "DefaultCloudPrefix"
            }
          ],
          "decl": "const DefaultCloudPrefix = \"save.\"",
          "doc": "DefaultCloudPrefix is the file-name prefix PlatformCloud prepends to each save slot when PlatformCloudOptions.Prefix is empty, storing slot \"main\" as \"save.main.json\". A flat dot-separated name without slashes works in both Apple iCloud ubiquity containers and Google Play Games Saved Games snapshots, and keeps save slots separate from other files in the container.\n",
          "file": "pkg/liveops/cloud_platform.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "DefaultConsentKey",
              "anchor": "DefaultConsentKey"
            }
          ],
          "decl": "const DefaultConsentKey = \"liveops.analytics.consent\"",
          "doc": "DefaultConsentKey is the core.Storage key used by NewAnalytics when key is empty.\n",
          "file": "pkg/liveops/analytics.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "DefaultHistorySize",
              "anchor": "DefaultHistorySize"
            }
          ],
          "decl": "const DefaultHistorySize = 120",
          "doc": "DefaultHistorySize is the number of recent steps a CrashReporter keeps when CrashOptions.HistorySize is 0 or negative.\n",
          "file": "pkg/liveops/crash.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "DefaultSyncStateKey",
              "anchor": "DefaultSyncStateKey"
            }
          ],
          "decl": "const DefaultSyncStateKey = \"liveops.cloudsync\"",
          "doc": "DefaultSyncStateKey is the core.Storage key prefix under which CloudSyncer keeps each slot's sync state when CloudSyncOptions.StateKey is empty.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "LedgerLimit",
              "anchor": "LedgerLimit"
            }
          ],
          "decl": "const LedgerLimit = 1024",
          "doc": "LedgerLimit is how many transaction IDs each list of a Ledger keeps; the oldest are dropped past it to bound the save's size. A store hands a game only its unfinished transactions again, and a finished transaction is never far back in the list, so no credit repeats. A refund, though, can come weeks after its purchase: one whose ID has been dropped, after LedgerLimit newer consumables were credited, is finished without running Revoke.\n",
          "file": "pkg/liveops/purchases.go",
          "line": 12
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrCorruptCloudSave",
              "anchor": "ErrCorruptCloudSave"
            },
            {
              "name": "ErrCorruptSyncState",
              "anchor": "ErrCorruptSyncState"
            },
            {
              "name": "ErrCloudChanged",
              "anchor": "ErrCloudChanged"
            },
            {
              "name": "ErrConflictChanged",
              "anchor": "ErrConflictChanged"
            },
            {
              "name": "ErrInvalidDevice",
              "anchor": "ErrInvalidDevice"
            }
          ],
          "decl": "var (\n\t// ErrCorruptCloudSave reports a cloud payload marked with CloudSaveFormat that does not decode: an unknown field, a newer schema version, a hash that does not match its data, or a malformed value. The slot is left untouched on both sides.\n\tErrCorruptCloudSave = errors.New(\"liveops: corrupt cloud save\")\n\t// ErrCorruptSyncState reports a slot's stored sync state that does not decode. The slot is left untouched on both sides.\n\tErrCorruptSyncState = errors.New(\"liveops: corrupt cloud sync state\")\n\t// ErrCloudChanged reports that the cloud copy of a slot changed between CloudSyncer reading it and writing it, such as when another device uploaded at the same moment. Nothing was written; the next sync sees the new copy.\n\tErrCloudChanged = errors.New(\"liveops: cloud save changed during sync\")\n\t// ErrConflictChanged reports that a slot passed to CloudSyncer.Resolve no longer holds the copies of the Conflict it was given, because a save or a sync changed either side since. Nothing was written; sync again to see the current conflict, if any.\n\tErrConflictChanged = errors.New(\"liveops: save changed since the conflict was reported\")\n\t// ErrInvalidDevice reports a device ID that is empty, longer than 64 bytes or not made of ASCII letters, digits, '-' and '_'.\n\tErrInvalidDevice = errors.New(\"liveops: invalid device id\")\n)",
          "doc": "",
          "file": "pkg/liveops/cloudsync.go",
          "line": 35
        },
        {
          "idents": [
            {
              "name": "ErrCloudConflict",
              "anchor": "ErrCloudConflict"
            }
          ],
          "decl": "var ErrCloudConflict = errors.New(\"liveops: platform cloud save conflict\")",
          "doc": "ErrCloudConflict is returned by PlatformCloud when the native cloud backend (iCloud NSFileVersion or Google Play Games Saved Games) holds unresolved conflicting versions of a slot. Resolve it through PlatformCloud.OnConflict or by writing the winning payload.\n",
          "file": "pkg/liveops/cloud.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ErrCloudUnavailable",
              "anchor": "ErrCloudUnavailable"
            }
          ],
          "decl": "var ErrCloudUnavailable = errors.New(\"liveops: cloud save backend unavailable\")",
          "doc": "ErrCloudUnavailable is returned by a CloudSync implementation when cloud storage is signed out, offline or unsupported on the current target.\n",
          "file": "pkg/liveops/cloud.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "ErrInvalidConsent",
              "anchor": "ErrInvalidConsent"
            }
          ],
          "decl": "var ErrInvalidConsent = errors.New(\"liveops: invalid consent state\")",
          "doc": "ErrInvalidConsent is returned by Analytics.SetConsent when given an unknown ConsentState value.\n",
          "file": "pkg/liveops/analytics.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ErrNoLedger",
              "anchor": "ErrNoLedger"
            }
          ],
          "decl": "var ErrNoLedger = errors.New(\"liveops: purchases need a ledger\")",
          "doc": "ErrNoLedger is what Buy and every delivery answer when PurchasesOptions has no Ledger to record credits in.\n",
          "file": "pkg/liveops/purchases.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ErrSlotNotFound",
              "anchor": "ErrSlotNotFound"
            }
          ],
          "decl": "var ErrSlotNotFound = errors.New(\"liveops: cloud save slot not found\")",
          "doc": "ErrSlotNotFound is returned by CloudSync.Load when the requested save slot does not exist.\n",
          "file": "pkg/liveops/cloud.go",
          "line": 9
        },
        {
          "idents": [
            {
              "name": "ErrSlotTooLarge",
              "anchor": "ErrSlotTooLarge"
            }
          ],
          "decl": "var ErrSlotTooLarge = errors.New(\"liveops: cloud save slot too large\")",
          "doc": "ErrSlotTooLarge is returned by a CloudSync implementation whose backend refuses a save payload over its size limit. The slot is left as it was.\n",
          "file": "pkg/liveops/cloud.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ErrTooManySlots",
              "anchor": "ErrTooManySlots"
            }
          ],
          "decl": "var ErrTooManySlots = errors.New(\"liveops: too many cloud save slots\")",
          "doc": "ErrTooManySlots is returned by a CloudSync implementation whose backend refuses a new slot because the player already has as many as it keeps. The slot is not created.\n",
          "file": "pkg/liveops/cloud.go",
          "line": 18
        }
      ],
      "funcs": [
        {
          "name": "EncodeCloudSave",
          "anchor": "EncodeCloudSave",
          "decl": "func EncodeCloudSave(v SaveVersion) ([]byte, error)",
          "doc": "EncodeCloudSave returns the JSON text CloudSyncer stores in the cloud for v: format, version, revision, hash, modified time (RFC 3339, UTC), device and the save data, in that fixed order. Data that is valid UTF-8, such as a save.Store payload, is kept as a readable string; other data is base64 in data_base64. v.Hash is recomputed from v.Data and v.Summary is not stored.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 1105
        },
        {
          "name": "PayloadHash",
          "anchor": "PayloadHash",
          "decl": "func PayloadHash(payload []byte) string",
          "doc": "PayloadHash identifies a raw cloud payload for ConditionalCloudSync: \"sha256:\" followed by the lowercase hex SHA-256 of payload.\n",
          "file": "pkg/liveops/cloud.go",
          "line": 49
        }
      ],
      "types": [
        {
          "name": "Analytics",
          "anchor": "Analytics",
          "decl": "type Analytics struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Analytics gates event tracking on explicit player consent and optionally persists the consent choice in core.Storage.\n\nEvents tracked while Consent is ConsentUnknown or ConsentDenied are dropped immediately — they are never sent and never buffered for later replay.\n",
          "file": "pkg/liveops/analytics.go",
          "line": 74,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewAnalytics",
              "anchor": "NewAnalytics",
              "decl": "func NewAnalytics(store core.Storage, key string, provider AnalyticsProvider) *Analytics",
              "doc": "NewAnalytics returns an Analytics gate backed by store under key (DefaultConsentKey when empty) and dispatching consented events to provider.\nIt loads any previously persisted consent choice from store immediately, failing closed to ConsentUnknown when absent or unrecognized.\n",
              "file": "pkg/liveops/analytics.go",
              "line": 86
            },
            {
              "name": "NewMemoryAnalytics",
              "anchor": "NewMemoryAnalytics",
              "decl": "func NewMemoryAnalytics(provider AnalyticsProvider) *Analytics",
              "doc": "NewMemoryAnalytics returns an Analytics gate that keeps its consent state in memory only, starting in ConsentUnknown.\n",
              "file": "pkg/liveops/analytics.go",
              "line": 104
            }
          ],
          "methods": [
            {
              "name": "Consent",
              "anchor": "Analytics.Consent",
              "recv": "*Analytics",
              "decl": "func (a *Analytics) Consent() ConsentState",
              "doc": "Consent returns the current ConsentState.\nWhen backed by core.Storage, reading Consent inside a reactive computation subscribes it to storage changes.\n",
              "file": "pkg/liveops/analytics.go",
              "line": 127
            },
            {
              "name": "Flush",
              "anchor": "Analytics.Flush",
              "recv": "*Analytics",
              "decl": "func (a *Analytics) Flush() error",
              "doc": "Flush flushes the configured provider when Consent is ConsentGranted.\nWhen consent is not granted or no provider is set, Flush is a no-op returning nil.\n",
              "file": "pkg/liveops/analytics.go",
              "line": 203
            },
            {
              "name": "SetClock",
              "anchor": "Analytics.SetClock",
              "recv": "*Analytics",
              "decl": "func (a *Analytics) SetClock(now func() time.Time)",
              "doc": "SetClock sets the clock function used for Event.Time; time.Now is used when nil.\n",
              "file": "pkg/liveops/analytics.go",
              "line": 112
            },
            {
              "name": "SetConsent",
              "anchor": "Analytics.SetConsent",
              "recv": "*Analytics",
              "decl": "func (a *Analytics) SetConsent(state ConsentState) error",
              "doc": "SetConsent updates the consent choice and persists it when backed by core.Storage.\nRevoking consent (ConsentDenied or ConsentUnknown) immediately stops all subsequent Track calls.\n",
              "file": "pkg/liveops/analytics.go",
              "line": 150
            },
            {
              "name": "SetProvider",
              "anchor": "Analytics.SetProvider",
              "recv": "*Analytics",
              "decl": "func (a *Analytics) SetProvider(provider AnalyticsProvider)",
              "doc": "SetProvider replaces the AnalyticsProvider that receives consented events.\n",
              "file": "pkg/liveops/analytics.go",
              "line": 119
            },
            {
              "name": "Track",
              "anchor": "Analytics.Track",
              "recv": "*Analytics",
              "decl": "func (a *Analytics) Track(name string, props map[string]any) bool",
              "doc": "Track dispatches an event to the configured provider only when Consent is ConsentGranted.\nWhen consent is ConsentUnknown or ConsentDenied, or when no provider is configured, Track drops the event immediately without buffering and returns false.\nWhen consent is granted, props is defensively copied before dispatch and Track returns whether provider.Send succeeded.\n",
              "file": "pkg/liveops/analytics.go",
              "line": 175
            }
          ]
        },
        {
          "name": "AnalyticsProvider",
          "anchor": "AnalyticsProvider",
          "decl": "type AnalyticsProvider interface {\n\tSend(Event) error\n\tFlush() error\n}",
          "doc": "AnalyticsProvider receives analytics events after explicit opt-in consent.\nProvider implementations live outside the core game module so no third-party analytics SDK is linked unless chosen by the app.\n",
          "file": "pkg/liveops/analytics.go",
          "line": 66,
          "members": [
            {
              "name": "Send",
              "anchor": "AnalyticsProvider.Send",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Flush",
              "anchor": "AnalyticsProvider.Flush",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuyResult",
          "anchor": "BuyResult",
          "decl": "type BuyResult int",
          "doc": "BuyResult is how a Buy ended without an error.\n",
          "file": "pkg/liveops/purchases.go",
          "line": 41,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BuyFailed",
                  "anchor": "BuyFailed"
                },
                {
                  "name": "Bought",
                  "anchor": "Bought"
                },
                {
                  "name": "BuyPending",
                  "anchor": "BuyPending"
                },
                {
                  "name": "BuyCancelled",
                  "anchor": "BuyCancelled"
                }
              ],
              "decl": "const (\n\t// BuyFailed is the result that goes with an error.\n\tBuyFailed BuyResult = iota\n\t// Bought: the purchase went through and was delivered, its credit saved or its unlock owned.\n\tBought\n\t// BuyPending: the purchase waits for approval, as Ask to Buy's does; Pending reports it until its transaction arrives through the store's updates, which deliver it as Buy would have.\n\tBuyPending\n\t// BuyCancelled: the user closed the store's sheet.\n\tBuyCancelled\n)",
              "doc": "",
              "file": "pkg/liveops/purchases.go",
              "line": 43
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "BuyResult.String",
              "recv": "BuyResult",
              "decl": "func (r BuyResult) String() string",
              "doc": "String returns \"failed\", \"bought\", \"pending\" or \"cancelled\".\n",
              "file": "pkg/liveops/purchases.go",
              "line": 55
            }
          ]
        },
        {
          "name": "Choice",
          "anchor": "Choice",
          "decl": "type Choice int",
          "doc": "Choice is the answer to a Conflict under PolicyAsk.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 75,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ChoiceDefer",
                  "anchor": "ChoiceDefer"
                },
                {
                  "name": "ChoiceLocal",
                  "anchor": "ChoiceLocal"
                },
                {
                  "name": "ChoiceCloud",
                  "anchor": "ChoiceCloud"
                },
                {
                  "name": "ChoiceBoth",
                  "anchor": "ChoiceBoth"
                }
              ],
              "decl": "const (\n\t// ChoiceDefer leaves the conflict unresolved: nothing is written on either side and the next sync asks again.\n\tChoiceDefer Choice = iota\n\t// ChoiceLocal keeps this device's copy and overwrites (or deletes) the cloud copy.\n\tChoiceLocal\n\t// ChoiceCloud keeps the cloud copy and overwrites (or deletes) this device's copy. SlotResult.Discarded holds the replaced copy; when it was a valid save envelope and the cloud copy exists, the local save backend also keeps it as its backup.\n\tChoiceCloud\n\t// ChoiceBoth keeps the cloud copy in the slot and moves this device's copy into a fork slot on both sides. When one side deleted the slot it keeps the copy that exists.\n\tChoiceBoth\n)",
              "doc": "",
              "file": "pkg/liveops/cloudsync.go",
              "line": 77
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Choice.String",
              "recv": "Choice",
              "decl": "func (c Choice) String() string",
              "doc": "String returns \"defer\", \"local\", \"cloud\", \"both\" or \"unknown\".\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 89
            }
          ]
        },
        {
          "name": "CloudChange",
          "anchor": "CloudChange",
          "decl": "type CloudChange struct {\n\t// Slots lists the sorted save slot names affected by this change. It may be empty on account-change or initial-sync notifications that did not enumerate individual files.\n\tSlots []string\n\t// Reason explains why the external change arrived.\n\tReason cloud.ChangeReason\n}",
          "doc": "CloudChange reports save slots updated or deleted externally in platform cloud storage (such as from another device).\n",
          "file": "pkg/liveops/cloud_platform.go",
          "line": 68,
          "members": [
            {
              "name": "Slots",
              "anchor": "CloudChange.Slots",
              "kind": "field",
              "doc": "Slots lists the sorted save slot names affected by this change. It may be empty on account-change or initial-sync notifications that did not enumerate individual files."
            },
            {
              "name": "Reason",
              "anchor": "CloudChange.Reason",
              "kind": "field",
              "doc": "Reason explains why the external change arrived."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CloudClient",
          "anchor": "CloudClient",
          "decl": "type CloudClient struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CloudClient is the CloudSync of the self-hosted cloud save service in package cloudsave, over HTTPS. It implements ConditionalCloudSync, so a CloudSyncer on it never overwrites another device's upload, and adds the service's version history: Versions, LoadVersion, Restore and Purge.\n\nIts errors wrap the liveops sentinels: ErrSlotNotFound, ErrCloudChanged when a conditional write lost to another device, ErrSlotTooLarge (with the service's limit in the message), ErrTooManySlots, and ErrCloudUnavailable when the network, the service or the token fails, which a sync treats as offline. A done context's error is returned as it is. A CloudClient is safe for concurrent use.\n",
          "file": "pkg/liveops/cloudclient.go",
          "line": 39,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCloudClient",
              "anchor": "NewCloudClient",
              "decl": "func NewCloudClient(opts CloudClientOptions) (*CloudClient, error)",
              "doc": "NewCloudClient returns a client for opts, or an error when the URL or the token source is missing or invalid.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 63
            }
          ],
          "methods": [
            {
              "name": "Delete",
              "anchor": "CloudClient.Delete",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) Delete(ctx context.Context, slot string) error",
              "doc": "Delete implements CloudSync. The service keeps the slot's history, so Restore can bring it back.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 115
            },
            {
              "name": "DeleteIf",
              "anchor": "CloudClient.DeleteIf",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) DeleteIf(ctx context.Context, slot, match string) error",
              "doc": "DeleteIf implements ConditionalCloudSync.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 121
            },
            {
              "name": "List",
              "anchor": "CloudClient.List",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) List(ctx context.Context) ([]string, error)",
              "doc": "List implements CloudSync: the names of the player's live slots, in byte order.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 127
            },
            {
              "name": "Load",
              "anchor": "CloudClient.Load",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) Load(ctx context.Context, slot string) ([]byte, error)",
              "doc": "Load implements CloudSync. It checks the payload against the service's ETag.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 99
            },
            {
              "name": "LoadVersion",
              "anchor": "CloudClient.LoadVersion",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) LoadVersion(ctx context.Context, slot string, number int64) ([]byte, error)",
              "doc": "LoadVersion returns the payload of kept version number of slot, as Load returns the current one. It returns ErrSlotNotFound when the version is not kept or is a deletion.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 161
            },
            {
              "name": "Purge",
              "anchor": "CloudClient.Purge",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) Purge(ctx context.Context, slot string) error",
              "doc": "Purge removes slot and its whole history from the service for good; a slot that does not exist is not an error.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 214
            },
            {
              "name": "Restore",
              "anchor": "CloudClient.Restore",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) Restore(ctx context.Context, slot string, number int64) error",
              "doc": "Restore makes kept version number the slot's current copy, as a new version written only while the slot still holds the copy Restore read (ErrCloudChanged otherwise). Restoring a deletion deletes the slot.\n\nA payload written by CloudSyncer is re-stamped with the next revision and the current time, so every device sees the restore as the newest copy: one whose copy is unchanged since its last sync downloads it on the next sync, and one with unsynced changes gets a conflict its policy resolves. Other payloads are restored byte for byte.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 172
            },
            {
              "name": "Save",
              "anchor": "CloudClient.Save",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) Save(ctx context.Context, slot string, data []byte) error",
              "doc": "Save implements CloudSync: it replaces the slot whatever it holds.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 105
            },
            {
              "name": "SaveIf",
              "anchor": "CloudClient.SaveIf",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) SaveIf(ctx context.Context, slot string, data []byte, match string) error",
              "doc": "SaveIf implements ConditionalCloudSync.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 110
            },
            {
              "name": "Versions",
              "anchor": "CloudClient.Versions",
              "recv": "*CloudClient",
              "decl": "func (c *CloudClient) Versions(ctx context.Context, slot string) ([]CloudVersion, error)",
              "doc": "Versions lists the kept versions of slot, newest first, deletions included. It returns ErrSlotNotFound for a slot with no history.\n",
              "file": "pkg/liveops/cloudclient.go",
              "line": 142
            }
          ]
        },
        {
          "name": "CloudClientOptions",
          "anchor": "CloudClientOptions",
          "decl": "type CloudClientOptions struct {\n\t// URL is the base URL of the cloud save service (package cloudsave), such as \"https://saves.example.com\". It must use https, except on a loopback host (localhost, 127.0.0.1, ::1) during development. Required.\n\tURL string\n\t// Token returns a current bearer token from the account service for the signed-in player, getting a new one when the last has expired. Every device signed in to the same account reads and writes the same slots. Required.\n\tToken func(ctx context.Context) (string, error)\n\t// HTTPClient sends the requests; http.DefaultClient when nil. The client uses a copy that does not follow redirects. On the web its requests go through the browser's fetch, so the page's origin must be in the service's allowedOrigins.\n\tHTTPClient *http.Client\n\t// Now stamps payloads Restore re-writes; time.Now when nil.\n\tNow func() time.Time\n}",
          "doc": "CloudClientOptions configures NewCloudClient.\n",
          "file": "pkg/liveops/cloudclient.go",
          "line": 25,
          "members": [
            {
              "name": "URL",
              "anchor": "CloudClientOptions.URL",
              "kind": "field",
              "doc": "URL is the base URL of the cloud save service (package cloudsave), such as \"https://saves.example.com\". It must use https, except on a loopback host (localhost, 127.0.0.1, ::1) during development. Required."
            },
            {
              "name": "Token",
              "anchor": "CloudClientOptions.Token",
              "kind": "field",
              "doc": "Token returns a current bearer token from the account service for the signed-in player, getting a new one when the last has expired. Every device signed in to the same account reads and writes the same slots. Required."
            },
            {
              "name": "HTTPClient",
              "anchor": "CloudClientOptions.HTTPClient",
              "kind": "field",
              "doc": "HTTPClient sends the requests; http.DefaultClient when nil. The client uses a copy that does not follow redirects. On the web its requests go through the browser's fetch, so the page's origin must be in the service's allowedOrigins."
            },
            {
              "name": "Now",
              "anchor": "CloudClientOptions.Now",
              "kind": "field",
              "doc": "Now stamps payloads Restore re-writes; time.Now when nil."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CloudProvider",
          "anchor": "CloudProvider",
          "decl": "type CloudProvider uint8",
          "doc": "CloudProvider names a platform cloud-save service.\n",
          "file": "pkg/liveops/cloud_platform.go",
          "line": 22,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CloudProviderNone",
                  "anchor": "CloudProviderNone"
                },
                {
                  "name": "CloudProviderICloud",
                  "anchor": "CloudProviderICloud"
                },
                {
                  "name": "CloudProviderPlayGames",
                  "anchor": "CloudProviderPlayGames"
                },
                {
                  "name": "CloudProviderSteam",
                  "anchor": "CloudProviderSteam"
                }
              ],
              "decl": "const (\n\t// CloudProviderNone means the platform has no built-in OS cloud-save service through NSGo's cloud package (Windows, Linux, the web).\n\tCloudProviderNone CloudProvider = iota\n\t// CloudProviderICloud is Apple's iCloud ubiquity container on macOS and iOS (including iPadOS and tvOS).\n\tCloudProviderICloud\n\t// CloudProviderPlayGames is Google Play Games Saved Games on Android.\n\tCloudProviderPlayGames\n\t// CloudProviderSteam is Steam Auto-Cloud on desktop targets, which syncs a local directory (such as cx.DataDir() or a subdirectory via DirCloud).\n\tCloudProviderSteam\n)",
              "doc": "",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 24
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "CloudProviderFor",
              "anchor": "CloudProviderFor",
              "decl": "func CloudProviderFor(os core.OS) CloudProvider",
              "doc": "CloudProviderFor returns the built-in OS cloud-save service NSGo's cloud package reaches on os: CloudProviderICloud on macOS and iOS, CloudProviderPlayGames on Android, and CloudProviderNone elsewhere.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 50
            }
          ],
          "methods": [
            {
              "name": "String",
              "anchor": "CloudProvider.String",
              "recv": "CloudProvider",
              "decl": "func (p CloudProvider) String() string",
              "doc": "String returns \"none\", \"icloud\", \"play-games\" or \"steam\".\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 36
            }
          ]
        },
        {
          "name": "CloudSync",
          "anchor": "CloudSync",
          "decl": "type CloudSync interface {\n\t// Load reads the raw bytes stored in slot, returning ErrSlotNotFound if slot does not exist.\n\tLoad(ctx context.Context, slot string) ([]byte, error)\n\t// Save writes data to slot, replacing any previous contents.\n\tSave(ctx context.Context, slot string, data []byte) error\n\t// Delete removes slot if it exists.\n\tDelete(ctx context.Context, slot string) error\n\t// List returns the names of all save slots stored for the current player.\n\tList(ctx context.Context) ([]string, error)\n}",
          "doc": "CloudSync is the provider-agnostic cloud-save interface for NSGo games (#196).\n\nPlatformCloud adapts NSGo's cloud package (iCloud on macOS and iOS, Google Play Games Saved Games on Android, and the in-memory store under nsgotest); DirCloud adapts a local directory synced by a desktop storefront such as Steam Auto-Cloud; CloudClient talks to the self-hosted backend in package cloudsave; and games can also supply their own backend or an in-memory mock against this interface.\n",
          "file": "pkg/liveops/cloud.go",
          "line": 26,
          "members": [
            {
              "name": "Load",
              "anchor": "CloudSync.Load",
              "kind": "method",
              "doc": "Load reads the raw bytes stored in slot, returning ErrSlotNotFound if slot does not exist."
            },
            {
              "name": "Save",
              "anchor": "CloudSync.Save",
              "kind": "method",
              "doc": "Save writes data to slot, replacing any previous contents."
            },
            {
              "name": "Delete",
              "anchor": "CloudSync.Delete",
              "kind": "method",
              "doc": "Delete removes slot if it exists."
            },
            {
              "name": "List",
              "anchor": "CloudSync.List",
              "kind": "method",
              "doc": "List returns the names of all save slots stored for the current player."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CloudSyncOptions",
          "anchor": "CloudSyncOptions",
          "decl": "type CloudSyncOptions struct {\n\t// Local is this device's save backend, such as save.StorageBackend or save.FileBackend. Required.\n\tLocal save.Backend\n\t// Cloud is the player's cloud storage. Required.\n\tCloud CloudSync\n\t// State holds each slot's sync state on this device, as JSON text under StateKey. Required.\n\tState core.Storage\n\t// StateKey is the key prefix CloudSyncer owns in State; DefaultSyncStateKey when empty.\n\tStateKey string\n\t// Device identifies this device in cloud payloads and fork slot names: 1 to 64 ASCII letters, digits, '-' or '_'. Required.\n\tDevice string\n\t// Policy resolves conflicts; PolicyNewest when zero.\n\tPolicy ConflictPolicy\n\t// Ask answers each conflict under PolicyAsk. It is required with PolicyAsk. It runs inside the sync, on the app's thread, so it must return without waiting for the player: to ask through a dialog, keep the Conflict, return ChoiceDefer, show both summaries, and apply the answer with CloudSyncer.Resolve. An error leaves the slot untouched and is returned by the sync.\n\tAsk func(ctx context.Context, c Conflict) (Choice, error)\n\t// Summarize returns a short, player-facing description of a save payload for Conflict summaries. Optional.\n\tSummarize func(slot string, data []byte) string\n\t// Now returns the current time, used to stamp local writes made through Backend; time.Now when nil.\n\tNow func() time.Time\n}",
          "doc": "CloudSyncOptions configures NewCloudSyncer.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 214,
          "members": [
            {
              "name": "Local",
              "anchor": "CloudSyncOptions.Local",
              "kind": "field",
              "doc": "Local is this device's save backend, such as save.StorageBackend or save.FileBackend. Required."
            },
            {
              "name": "Cloud",
              "anchor": "CloudSyncOptions.Cloud",
              "kind": "field",
              "doc": "Cloud is the player's cloud storage. Required."
            },
            {
              "name": "State",
              "anchor": "CloudSyncOptions.State",
              "kind": "field",
              "doc": "State holds each slot's sync state on this device, as JSON text under StateKey. Required."
            },
            {
              "name": "StateKey",
              "anchor": "CloudSyncOptions.StateKey",
              "kind": "field",
              "doc": "StateKey is the key prefix CloudSyncer owns in State; DefaultSyncStateKey when empty."
            },
            {
              "name": "Device",
              "anchor": "CloudSyncOptions.Device",
              "kind": "field",
              "doc": "Device identifies this device in cloud payloads and fork slot names: 1 to 64 ASCII letters, digits, '-' or '_'. Required."
            },
            {
              "name": "Policy",
              "anchor": "CloudSyncOptions.Policy",
              "kind": "field",
              "doc": "Policy resolves conflicts; PolicyNewest when zero."
            },
            {
              "name": "Ask",
              "anchor": "CloudSyncOptions.Ask",
              "kind": "field",
              "doc": "Ask answers each conflict under PolicyAsk. It is required with PolicyAsk. It runs inside the sync, on the app's thread, so it must return without waiting for the player: to ask through a dialog, keep the Conflict, return ChoiceDefer, show both summaries, and apply the answer with CloudSyncer.Resolve. An error leaves the slot untouched and is returned by the sync."
            },
            {
              "name": "Summarize",
              "anchor": "CloudSyncOptions.Summarize",
              "kind": "field",
              "doc": "Summarize returns a short, player-facing description of a save payload for Conflict summaries. Optional."
            },
            {
              "name": "Now",
              "anchor": "CloudSyncOptions.Now",
              "kind": "field",
              "doc": "Now returns the current time, used to stamp local writes made through Backend; time.Now when nil."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CloudSyncer",
          "anchor": "CloudSyncer",
          "decl": "type CloudSyncer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CloudSyncer reconciles a device's save slots with cloud storage, detecting slots that changed on both sides since the last sync and resolving them by policy without silently losing either copy.\n\nIt remembers, per slot, the content hash and cloud revision both sides agreed on at the last sync (the base). On each sync it compares the local copy, the cloud copy and the base: when only one side differs from the base that side is copied to the other, and when both differ (and from each other) the slot is a conflict. Cloud payloads are JSON text carrying the revision, content hash, modified time and writing device next to the save data.\n\nWrite saves through Backend so that each local write is stamped with its time for PolicyNewest and conflict summaries. A CloudSyncer is not safe for concurrent use; call Sync, SyncSlot and Resolve where the app's code runs, as core.Storage requires, or use SyncAsync, SyncSlotAsync and ResolveAsync to run cloud I/O off the engine goroutine while marshaling local storage, sync state and Ask callbacks onto cx's engine goroutine (required with PlatformCloud on Apple and Android devices, and recommended with CloudClient so network I/O does not stall frames).\n\nBefore every cloud write it reads the cloud copy again and refuses to write when it changed (ErrCloudChanged). When Cloud implements ConditionalCloudSync, as CloudClient and DirCloud do, the write itself is conditional on that copy, so an upload by another device can never be overwritten: the losing write fails with ErrCloudChanged and the next sync sees both copies as a conflict for the policy to resolve. A plain CloudSync has no conditional write, so an upload by another device that lands between the re-read and the write can still be overwritten; the window is a single Load and Save apart.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 242,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCloudSyncer",
              "anchor": "NewCloudSyncer",
              "decl": "func NewCloudSyncer(opts CloudSyncOptions) (*CloudSyncer, error)",
              "doc": "NewCloudSyncer returns a CloudSyncer for opts, or an error when a required option is missing or invalid.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 256
            }
          ],
          "methods": [
            {
              "name": "Backend",
              "anchor": "CloudSyncer.Backend",
              "recv": "*CloudSyncer",
              "decl": "func (s *CloudSyncer) Backend() save.Backend",
              "doc": "Backend returns the local save backend wrapped so that every Write and Delete is stamped with the current time in the slot's sync state. Pass it to save.NewStore so PolicyNewest and conflict summaries know when each local copy was written. Its Unwrap method returns the local backend, so a save.SettingsStore built on it keeps settings where the local backend does.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 313
            },
            {
              "name": "Resolve",
              "anchor": "CloudSyncer.Resolve",
              "recv": "*CloudSyncer",
              "decl": "func (s *CloudSyncer) Resolve(ctx context.Context, c Conflict, choice Choice) (SlotResult, error)",
              "doc": "Resolve applies choice to a conflict reported earlier, typically one that Ask answered with ChoiceDefer so the game could show the player both copies outside the sync. It reads both sides again and applies choice only while they still hold the copies in c (the same existence, content hash and cloud revision); otherwise it writes nothing and returns ErrConflictChanged. ChoiceDefer writes nothing. Resolve works under every policy and does not call Ask.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 366
            },
            {
              "name": "ResolveAsync",
              "anchor": "CloudSyncer.ResolveAsync",
              "recv": "*CloudSyncer",
              "decl": "func (s *CloudSyncer) ResolveAsync(cx *core.Scope, ctx context.Context, c Conflict, choice Choice, done func(SlotResult, error))",
              "doc": "ResolveAsync runs Resolve asynchronously as SyncAsync does for Sync.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 435
            },
            {
              "name": "Sync",
              "anchor": "CloudSyncer.Sync",
              "recv": "*CloudSyncer",
              "decl": "func (s *CloudSyncer) Sync(ctx context.Context) (SyncResult, error)",
              "doc": "Sync reconciles every slot known locally, in the cloud or in the sync state, in slot-name order.\n\nA slot that fails is skipped and its error joined into the returned error while the others still sync, except when the cloud is unavailable or ctx is done, which stops the sync.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 356
            },
            {
              "name": "SyncAsync",
              "anchor": "CloudSyncer.SyncAsync",
              "recv": "*CloudSyncer",
              "decl": "func (s *CloudSyncer) SyncAsync(cx *core.Scope, ctx context.Context, done func(SyncResult, error))",
              "doc": "SyncAsync runs Sync with cloud I/O off cx's engine goroutine while marshaling local backend, sync state, Summarize, Now and Ask calls onto cx's engine goroutine through cx.Post, then delivers the result to done on the engine goroutine. Use it on Apple and Android devices with PlatformCloud (whose callbacks arrive via cx.Post) and with CloudClient so network I/O does not block frames.\n\nConcurrent SyncAsync, SyncSlotAsync and ResolveAsync calls on the same CloudSyncer are serialized in order. If a local save changes a slot while its cloud read is in flight, SyncAsync refuses to overwrite the local copy (ErrConflictChanged) so the next sync resolves both copies cleanly. Disposing cx stops the sync and skips done.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 373
            },
            {
              "name": "SyncSlot",
              "anchor": "CloudSyncer.SyncSlot",
              "recv": "*CloudSyncer",
              "decl": "func (s *CloudSyncer) SyncSlot(ctx context.Context, slot string) (SlotResult, error)",
              "doc": "SyncSlot reconciles one slot. On error nothing has been written for the slot, except that a failure after a conflict fork was created leaves the fork in place; the next sync uploads it and reuses it rather than creating another.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 361
            },
            {
              "name": "SyncSlotAsync",
              "anchor": "CloudSyncer.SyncSlotAsync",
              "recv": "*CloudSyncer",
              "decl": "func (s *CloudSyncer) SyncSlotAsync(cx *core.Scope, ctx context.Context, slot string, done func(SlotResult, error))",
              "doc": "SyncSlotAsync runs SyncSlot asynchronously as SyncAsync does for Sync.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 404
            }
          ]
        },
        {
          "name": "CloudVersion",
          "anchor": "CloudVersion",
          "decl": "type CloudVersion struct {\n\t// Number counts the slot's versions from 1; each write or delete adds one.\n\tNumber int64\n\t// Deleted marks a version that deleted the slot.\n\tDeleted bool\n\t// Hash is the PayloadHash of the version's payload, empty for a deletion.\n\tHash string\n\t// Size is the payload's length in bytes.\n\tSize int64\n\t// Created is when the service stored the version.\n\tCreated time.Time\n}",
          "doc": "CloudVersion describes one kept version of a slot in the service's history.\n",
          "file": "pkg/liveops/cloudclient.go",
          "line": 49,
          "members": [
            {
              "name": "Number",
              "anchor": "CloudVersion.Number",
              "kind": "field",
              "doc": "Number counts the slot's versions from 1; each write or delete adds one."
            },
            {
              "name": "Deleted",
              "anchor": "CloudVersion.Deleted",
              "kind": "field",
              "doc": "Deleted marks a version that deleted the slot."
            },
            {
              "name": "Hash",
              "anchor": "CloudVersion.Hash",
              "kind": "field",
              "doc": "Hash is the PayloadHash of the version's payload, empty for a deletion."
            },
            {
              "name": "Size",
              "anchor": "CloudVersion.Size",
              "kind": "field",
              "doc": "Size is the payload's length in bytes."
            },
            {
              "name": "Created",
              "anchor": "CloudVersion.Created",
              "kind": "field",
              "doc": "Created is when the service stored the version."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConditionalCloudSync",
          "anchor": "ConditionalCloudSync",
          "decl": "type ConditionalCloudSync interface {\n\tCloudSync\n\t// SaveIf writes data to slot only while the slot holds the payload whose PayloadHash is match, or, when match is empty, only while the slot does not exist. Otherwise it writes nothing and returns an error wrapping ErrCloudChanged.\n\tSaveIf(ctx context.Context, slot string, data []byte, match string) error\n\t// DeleteIf removes slot only while it holds the payload whose PayloadHash is match. Otherwise it removes nothing and returns an error wrapping ErrCloudChanged. An empty match succeeds, removing nothing, while slot does not exist.\n\tDeleteIf(ctx context.Context, slot, match string) error\n}",
          "doc": "ConditionalCloudSync is a CloudSync whose backend can write and delete a slot only while it still holds the payload the caller last read, so two devices writing the same slot at once cannot overwrite each other. CloudSyncer uses these methods whenever its Cloud implements them; CloudClient does.\n\nA payload is identified by PayloadHash of its raw bytes, as Load returned them.\n",
          "file": "pkg/liveops/cloud.go",
          "line": 40,
          "members": [
            {
              "name": "SaveIf",
              "anchor": "ConditionalCloudSync.SaveIf",
              "kind": "method",
              "doc": "SaveIf writes data to slot only while the slot holds the payload whose PayloadHash is match, or, when match is empty, only while the slot does not exist. Otherwise it writes nothing and returns an error wrapping ErrCloudChanged."
            },
            {
              "name": "DeleteIf",
              "anchor": "ConditionalCloudSync.DeleteIf",
              "kind": "method",
              "doc": "DeleteIf removes slot only while it holds the payload whose PayloadHash is match. Otherwise it removes nothing and returns an error wrapping ErrCloudChanged. An empty match succeeds, removing nothing, while slot does not exist."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Conflict",
          "anchor": "Conflict",
          "decl": "type Conflict struct {\n\t// Slot is the save slot name.\n\tSlot string\n\t// Local is this device's copy.\n\tLocal SaveVersion\n\t// Cloud is the copy in cloud storage.\n\tCloud SaveVersion\n}",
          "doc": "Conflict is a slot whose local and cloud copies both changed since this device last synced it, passed to CloudSyncOptions.Ask under PolicyAsk and reported in SlotResult.Conflict. Pass it back to CloudSyncer.Resolve to apply the player's choice later.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 173,
          "members": [
            {
              "name": "Slot",
              "anchor": "Conflict.Slot",
              "kind": "field",
              "doc": "Slot is the save slot name."
            },
            {
              "name": "Local",
              "anchor": "Conflict.Local",
              "kind": "field",
              "doc": "Local is this device's copy."
            },
            {
              "name": "Cloud",
              "anchor": "Conflict.Cloud",
              "kind": "field",
              "doc": "Cloud is the copy in cloud storage."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConflictPolicy",
          "anchor": "ConflictPolicy",
          "decl": "type ConflictPolicy int",
          "doc": "ConflictPolicy chooses how CloudSyncer resolves a slot whose local and cloud copies both changed since the last sync.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 49,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PolicyNewest",
                  "anchor": "PolicyNewest"
                },
                {
                  "name": "PolicyKeepBoth",
                  "anchor": "PolicyKeepBoth"
                },
                {
                  "name": "PolicyAsk",
                  "anchor": "PolicyAsk"
                }
              ],
              "decl": "const (\n\t// PolicyNewest keeps the copy with the later modified time and overwrites the other. When either time is unknown or both are equal it keeps both, as PolicyKeepBoth does, and when one side deleted the slot and the other changed it, it keeps the changed copy.\n\tPolicyNewest ConflictPolicy = iota\n\t// PolicyKeepBoth keeps the cloud copy in the slot and moves the local copy into a new fork slot on both sides, so neither is lost. When one side deleted the slot and the other changed it, it keeps the changed copy.\n\tPolicyKeepBoth\n\t// PolicyAsk passes each conflict, with a summary of both copies, to CloudSyncOptions.Ask and applies the player's Choice.\n\tPolicyAsk\n)",
              "doc": "",
              "file": "pkg/liveops/cloudsync.go",
              "line": 51
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ConflictPolicy.String",
              "recv": "ConflictPolicy",
              "decl": "func (p ConflictPolicy) String() string",
              "doc": "String returns \"newest\", \"keep-both\", \"ask\" or \"unknown\".\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 61
            }
          ]
        },
        {
          "name": "ConsentState",
          "anchor": "ConsentState",
          "decl": "type ConsentState int",
          "doc": "ConsentState represents the player's analytics consent choice.\n",
          "file": "pkg/liveops/analytics.go",
          "line": 18,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ConsentUnknown",
                  "anchor": "ConsentUnknown"
                },
                {
                  "name": "ConsentDenied",
                  "anchor": "ConsentDenied"
                },
                {
                  "name": "ConsentGranted",
                  "anchor": "ConsentGranted"
                }
              ],
              "decl": "const (\n\t// ConsentUnknown is the default before the player chooses. No events are sent or buffered.\n\tConsentUnknown ConsentState = iota\n\t// ConsentDenied records that the player declined or revoked analytics. No events are sent or buffered.\n\tConsentDenied\n\t// ConsentGranted records explicit opt-in consent. Only in this state may events be dispatched to the provider.\n\tConsentGranted\n)",
              "doc": "",
              "file": "pkg/liveops/analytics.go",
              "line": 20
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ConsentState.String",
              "recv": "ConsentState",
              "decl": "func (s ConsentState) String() string",
              "doc": "String returns \"unknown\", \"denied\" or \"granted\".\n",
              "file": "pkg/liveops/analytics.go",
              "line": 30
            }
          ]
        },
        {
          "name": "CrashOptions",
          "anchor": "CrashOptions",
          "decl": "type CrashOptions struct {\n\t// HistorySize is how many recent steps the ring buffer keeps; DefaultHistorySize (120) when <= 0.\n\tHistorySize int\n\t// Reporter receives every CrashReport produced by a recovered panic.\n\tReporter func(CrashReport)\n\t// CaptureState optionally returns a JSON-marshalable snapshot of the game's state when a panic is caught.\n\tCaptureState func() any\n\t// Metadata holds initial key-value pairs copied into every CrashReport (such as app version, target OS or scene name).\n\tMetadata map[string]string\n\t// Rethrow re-panics with the recovered value after Reporter returns.\n\tRethrow bool\n\t// Now returns the clock time for CrashReport.Timestamp; time.Now when nil.\n\tNow func() time.Time\n}",
          "doc": "CrashOptions configures a CrashReporter.\n",
          "file": "pkg/liveops/crash.go",
          "line": 75,
          "members": [
            {
              "name": "HistorySize",
              "anchor": "CrashOptions.HistorySize",
              "kind": "field",
              "doc": "HistorySize is how many recent steps the ring buffer keeps; DefaultHistorySize (120) when <= 0."
            },
            {
              "name": "Reporter",
              "anchor": "CrashOptions.Reporter",
              "kind": "field",
              "doc": "Reporter receives every CrashReport produced by a recovered panic."
            },
            {
              "name": "CaptureState",
              "anchor": "CrashOptions.CaptureState",
              "kind": "field",
              "doc": "CaptureState optionally returns a JSON-marshalable snapshot of the game's state when a panic is caught."
            },
            {
              "name": "Metadata",
              "anchor": "CrashOptions.Metadata",
              "kind": "field",
              "doc": "Metadata holds initial key-value pairs copied into every CrashReport (such as app version, target OS or scene name)."
            },
            {
              "name": "Rethrow",
              "anchor": "CrashOptions.Rethrow",
              "kind": "field",
              "doc": "Rethrow re-panics with the recovered value after Reporter returns."
            },
            {
              "name": "Now",
              "anchor": "CrashOptions.Now",
              "kind": "field",
              "doc": "Now returns the clock time for CrashReport.Timestamp; time.Now when nil."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CrashReport",
          "anchor": "CrashReport",
          "decl": "type CrashReport struct {\n\t// Timestamp is when the panic was caught, from CrashOptions.Now or time.Now.\n\tTimestamp time.Time `json:\"timestamp\"`\n\t// Panic is the raw value returned by recover. When marshaled to JSON, an error that does not implement json.Marshaler or encoding.TextMarshaler, or any non-JSON-marshalable value, is encoded as its string message.\n\tPanic any `json:\"panic,omitempty\"`\n\t// Message is fmt.Sprint(Panic).\n\tMessage string `json:\"message\"`\n\t// Stack is the goroutine stack trace captured at recovery via runtime/debug.Stack.\n\tStack string `json:\"stack\"`\n\t// Step is the reporter's monotonic step counter at the time of the crash.\n\tStep uint64 `json:\"step\"`\n\t// LastSteps holds the buffered steps in chronological order, oldest to newest.\n\tLastSteps []StepRecord `json:\"last_steps,omitempty\"`\n\t// State is the optional snapshot returned by CrashOptions.CaptureState.\n\tState any `json:\"state,omitempty\"`\n\t// Metadata holds a copy of the reporter's metadata key-value pairs (such as app version, target OS or scene name).\n\tMetadata map[string]string `json:\"metadata,omitempty\"`\n}",
          "doc": "CrashReport is a JSON-marshalable snapshot built when a guarded callback panics.\n",
          "file": "pkg/liveops/crash.go",
          "line": 30,
          "members": [
            {
              "name": "Timestamp",
              "anchor": "CrashReport.Timestamp",
              "kind": "field",
              "doc": "Timestamp is when the panic was caught, from CrashOptions.Now or time.Now."
            },
            {
              "name": "Panic",
              "anchor": "CrashReport.Panic",
              "kind": "field",
              "doc": "Panic is the raw value returned by recover. When marshaled to JSON, an error that does not implement json.Marshaler or encoding.TextMarshaler, or any non-JSON-marshalable value, is encoded as its string message."
            },
            {
              "name": "Message",
              "anchor": "CrashReport.Message",
              "kind": "field",
              "doc": "Message is fmt.Sprint(Panic)."
            },
            {
              "name": "Stack",
              "anchor": "CrashReport.Stack",
              "kind": "field",
              "doc": "Stack is the goroutine stack trace captured at recovery via runtime/debug.Stack."
            },
            {
              "name": "Step",
              "anchor": "CrashReport.Step",
              "kind": "field",
              "doc": "Step is the reporter's monotonic step counter at the time of the crash."
            },
            {
              "name": "LastSteps",
              "anchor": "CrashReport.LastSteps",
              "kind": "field",
              "doc": "LastSteps holds the buffered steps in chronological order, oldest to newest."
            },
            {
              "name": "State",
              "anchor": "CrashReport.State",
              "kind": "field",
              "doc": "State is the optional snapshot returned by CrashOptions.CaptureState."
            },
            {
              "name": "Metadata",
              "anchor": "CrashReport.Metadata",
              "kind": "field",
              "doc": "Metadata holds a copy of the reporter's metadata key-value pairs (such as app version, target OS or scene name)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalJSON",
              "anchor": "CrashReport.MarshalJSON",
              "recv": "CrashReport",
              "decl": "func (r CrashReport) MarshalJSON() ([]byte, error)",
              "doc": "MarshalJSON encodes r as JSON, ensuring Panic values that are plain errors or non-JSON types serialize cleanly as strings rather than empty objects or marshal errors.\n",
              "file": "pkg/liveops/crash.go",
              "line": 50
            }
          ]
        },
        {
          "name": "CrashReporter",
          "anchor": "CrashReporter",
          "decl": "type CrashReporter struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CrashReporter records recent simulation steps in a fixed-size ring buffer and catches panics in guarded callbacks or game.Loop runs, building a CrashReport for the app's Reporter.\n",
          "file": "pkg/liveops/crash.go",
          "line": 91,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCrashReporter",
              "anchor": "NewCrashReporter",
              "decl": "func NewCrashReporter(opts CrashOptions) *CrashReporter",
              "doc": "NewCrashReporter returns a CrashReporter configured by opts, pre-allocating its step ring buffer so steady-state RecordStep calls perform no heap allocations.\n",
              "file": "pkg/liveops/crash.go",
              "line": 105
            }
          ],
          "methods": [
            {
              "name": "DeleteMetadata",
              "anchor": "CrashReporter.DeleteMetadata",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) DeleteMetadata(key string)",
              "doc": "DeleteMetadata removes a metadata key from subsequent CrashReports.\n",
              "file": "pkg/liveops/crash.go",
              "line": 185
            },
            {
              "name": "GuardLoop",
              "anchor": "CrashReporter.GuardLoop",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) GuardLoop(l *game.Loop)",
              "doc": "GuardLoop wraps l.Update and l.Draw in place with panic recovery and step recording.\nIf l.Update does not call RecordStep itself during a step, the guard records an \"update\" step automatically (including for a step that panics).\n",
              "file": "pkg/liveops/crash.go",
              "line": 240
            },
            {
              "name": "LastSteps",
              "anchor": "CrashReporter.LastSteps",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) LastSteps() []StepRecord",
              "doc": "LastSteps returns a chronological copy (oldest to newest) of the buffered steps.\n",
              "file": "pkg/liveops/crash.go",
              "line": 158
            },
            {
              "name": "RecordStep",
              "anchor": "CrashReporter.RecordStep",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) RecordStep(dt time.Duration, summary string) uint64",
              "doc": "RecordStep appends a step to the ring buffer and returns its monotonic step number. It allocates nothing in steady state.\n",
              "file": "pkg/liveops/crash.go",
              "line": 121
            },
            {
              "name": "RecordStepData",
              "anchor": "CrashReporter.RecordStepData",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) RecordStepData(dt time.Duration, summary string, data any) uint64",
              "doc": "RecordStepData appends a step with optional structured data to the ring buffer and returns its monotonic step number. It allocates nothing in steady state.\n",
              "file": "pkg/liveops/crash.go",
              "line": 126
            },
            {
              "name": "Reset",
              "anchor": "CrashReporter.Reset",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) Reset()",
              "doc": "Reset clears the buffered steps without reallocating the ring buffer. The monotonic step counter continues from its current value.\n",
              "file": "pkg/liveops/crash.go",
              "line": 166
            },
            {
              "name": "RunSafe",
              "anchor": "CrashReporter.RunSafe",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) RunSafe(fn func()) (panicked bool)",
              "doc": "RunSafe runs fn and recovers any panic into a CrashReport passed to Reporter.\nIt reports whether fn panicked. When CrashOptions.Rethrow is true, RunSafe re-panics with the original value after Reporter returns.\n",
              "file": "pkg/liveops/crash.go",
              "line": 193
            },
            {
              "name": "SetMetadata",
              "anchor": "CrashReporter.SetMetadata",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) SetMetadata(key, value string)",
              "doc": "SetMetadata sets or updates a metadata key included in subsequent CrashReports.\n",
              "file": "pkg/liveops/crash.go",
              "line": 175
            },
            {
              "name": "Step",
              "anchor": "CrashReporter.Step",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) Step() uint64",
              "doc": "Step returns the reporter's current monotonic step count.\n",
              "file": "pkg/liveops/crash.go",
              "line": 150
            },
            {
              "name": "WrapLoop",
              "anchor": "CrashReporter.WrapLoop",
              "recv": "*CrashReporter",
              "decl": "func (c *CrashReporter) WrapLoop(l *game.Loop) *game.Loop",
              "doc": "WrapLoop returns a new *game.Loop that delegates to l.Update and l.Draw with panic recovery and step recording.\nIf l.Update does not call RecordStep itself during a step, the wrapper records an \"update\" step automatically (including for a step that panics).\nReturns nil when l is nil.\n",
              "file": "pkg/liveops/crash.go",
              "line": 216
            }
          ]
        },
        {
          "name": "DirCloud",
          "anchor": "DirCloud",
          "decl": "type DirCloud struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DirCloud implements ConditionalCloudSync over a directory on disk, storing each slot as \"<slot>.json\" with atomic temp-file writes and directory sync.\n\nIt is designed for desktop storefronts such as Steam Auto-Cloud, which synchronize a configured directory (such as a subdirectory of cx.DataDir()) across machines without a native cloud SDK. Pairing DirCloud with CloudSyncer gives Steam builds the same CloudSync and conflict-resolution pipeline as iCloud and Google Play Games builds; games that do not need CloudSyncer's conflict envelopes can also point Steam Auto-Cloud directly at save.FileBackend(cx.DataDir()).\n\nDirCloud is safe for concurrent use within a process.\n",
          "file": "pkg/liveops/cloud_dir.go",
          "line": 26,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDirCloud",
              "anchor": "NewDirCloud",
              "decl": "func NewDirCloud(dir string) (*DirCloud, error)",
              "doc": "NewDirCloud returns a DirCloud storing slot files inside dir, or an error when dir is empty (such as cx.DataDir() on the web). The directory is created on the first write.\n",
              "file": "pkg/liveops/cloud_dir.go",
              "line": 35
            }
          ],
          "methods": [
            {
              "name": "Delete",
              "anchor": "DirCloud.Delete",
              "recv": "*DirCloud",
              "decl": "func (c *DirCloud) Delete(ctx context.Context, slot string) error",
              "doc": "Delete implements CloudSync.\n",
              "file": "pkg/liveops/cloud_dir.go",
              "line": 109
            },
            {
              "name": "DeleteIf",
              "anchor": "DirCloud.DeleteIf",
              "recv": "*DirCloud",
              "decl": "func (c *DirCloud) DeleteIf(ctx context.Context, slot, match string) error",
              "doc": "DeleteIf implements ConditionalCloudSync.\n",
              "file": "pkg/liveops/cloud_dir.go",
              "line": 114
            },
            {
              "name": "Dir",
              "anchor": "DirCloud.Dir",
              "recv": "*DirCloud",
              "decl": "func (c *DirCloud) Dir() string",
              "doc": "Dir returns the cleaned directory path where DirCloud keeps slot files.\n",
              "file": "pkg/liveops/cloud_dir.go",
              "line": 43
            },
            {
              "name": "List",
              "anchor": "DirCloud.List",
              "recv": "*DirCloud",
              "decl": "func (c *DirCloud) List(ctx context.Context) ([]string, error)",
              "doc": "List implements CloudSync. It returns the sorted names of all valid save slots in the directory, or nil if the directory does not exist yet.\n",
              "file": "pkg/liveops/cloud_dir.go",
              "line": 151
            },
            {
              "name": "Load",
              "anchor": "DirCloud.Load",
              "recv": "*DirCloud",
              "decl": "func (c *DirCloud) Load(ctx context.Context, slot string) ([]byte, error)",
              "doc": "Load implements CloudSync.\n",
              "file": "pkg/liveops/cloud_dir.go",
              "line": 48
            },
            {
              "name": "Save",
              "anchor": "DirCloud.Save",
              "recv": "*DirCloud",
              "decl": "func (c *DirCloud) Save(ctx context.Context, slot string, data []byte) error",
              "doc": "Save implements CloudSync.\n",
              "file": "pkg/liveops/cloud_dir.go",
              "line": 70
            },
            {
              "name": "SaveIf",
              "anchor": "DirCloud.SaveIf",
              "recv": "*DirCloud",
              "decl": "func (c *DirCloud) SaveIf(ctx context.Context, slot string, data []byte, match string) error",
              "doc": "SaveIf implements ConditionalCloudSync.\n",
              "file": "pkg/liveops/cloud_dir.go",
              "line": 75
            }
          ]
        },
        {
          "name": "Event",
          "anchor": "Event",
          "decl": "type Event struct {\n\tName       string         `json:\"name\"`\n\tProperties map[string]any `json:\"properties,omitempty\"`\n\tTime       time.Time      `json:\"time\"`\n}",
          "doc": "Event is one analytics event delivered to an AnalyticsProvider after explicit consent.\n",
          "file": "pkg/liveops/analytics.go",
          "line": 58,
          "members": [
            {
              "name": "Name",
              "anchor": "Event.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "Event.Properties",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Time",
              "anchor": "Event.Time",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Ledger",
          "anchor": "Ledger",
          "decl": "type Ledger struct {\n\t// Credited are the IDs of consumable transactions credited, oldest first.\n\tCredited []string `json:\"credited,omitempty\"`\n\t// Revoked are the IDs of credited consumable transactions whose refund or revocation was taken back, oldest first.\n\tRevoked []string `json:\"revoked,omitempty\"`\n}",
          "doc": "Ledger records the transactions a game has credited and revoked, so each is applied once across runs. Keep it inside the state PurchasesOptions.Save writes, beside the coins, lives or other state a credit changes: the credit and its record then reach the disk in one write, so a kill before that write loses both and the store's redelivery credits it again, and a kill after it finds the record and only finishes the transaction.\n",
          "file": "pkg/liveops/purchases.go",
          "line": 18,
          "members": [
            {
              "name": "Credited",
              "anchor": "Ledger.Credited",
              "kind": "field",
              "doc": "Credited are the IDs of consumable transactions credited, oldest first."
            },
            {
              "name": "Revoked",
              "anchor": "Ledger.Revoked",
              "kind": "field",
              "doc": "Revoked are the IDs of credited consumable transactions whose refund or revocation was taken back, oldest first."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "HasCredited",
              "anchor": "Ledger.HasCredited",
              "recv": "Ledger",
              "decl": "func (l Ledger) HasCredited(id string) bool",
              "doc": "HasCredited reports whether the transaction whose ID is id was credited.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 26
            },
            {
              "name": "HasRevoked",
              "anchor": "Ledger.HasRevoked",
              "recv": "Ledger",
              "decl": "func (l Ledger) HasRevoked(id string) bool",
              "doc": "HasRevoked reports whether the refund or revocation of the transaction whose ID is id was taken back.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 29
            }
          ]
        },
        {
          "name": "PlatformCloud",
          "anchor": "PlatformCloud",
          "decl": "type PlatformCloud struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PlatformCloud implements CloudSync over NSGo's package cloud: Apple iCloud ubiquity containers on macOS and iOS, Google Play Games Saved Games on Android, and an isolated per-app in-memory store in nsgotest. On platforms without a built-in OS cloud store (Windows, Linux, the web), every operation fails with ErrCloudUnavailable and never silently drops writes.\n\nEach save slot is stored as \"<Prefix><slot>.json\" (default \"save.<slot>.json\") and validated with save.ValidateSlot. Errors wrap liveops's sentinels alongside package cloud's sentinels: ErrCloudUnavailable (cloud.ErrUnavailable), ErrSlotNotFound (cloud.ErrNotFound), and ErrCloudConflict (cloud.ErrConflict / *cloud.ConflictError).\n\nOn real Apple and Android targets (where cx.CloudStore() is nil), package cloud delivers its callbacks on cx's engine goroutine through cx.Post, so blocking CloudSync methods (Load, Save, Delete, List) must be called off the engine goroutine—such as through CloudSyncer.SyncAsync—or they would block the goroutine needed to deliver their answer. Under nsgotest (where cx.CloudStore() is non-nil), operations run directly against the per-app store and are safe from any goroutine, including synchronous CloudSyncer.Sync calls in tests.\n",
          "file": "pkg/liveops/cloud_platform.go",
          "line": 96,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPlatformCloud",
              "anchor": "NewPlatformCloud",
              "decl": "func NewPlatformCloud(cx *core.Scope, opts PlatformCloudOptions) (*PlatformCloud, error)",
              "doc": "NewPlatformCloud returns a PlatformCloud bound to cx, or an error if cx is nil or opts.Prefix is invalid. Call it on cx's engine goroutine with a scope that lives as long as cloud sync runs (such as the app's root scope).\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 106
            }
          ],
          "methods": [
            {
              "name": "Available",
              "anchor": "PlatformCloud.Available",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) Available() bool",
              "doc": "Available reports whether platform cloud storage is reachable right now (cx.Env().CanUseCloudStorage()). Read in a reactive computation on the engine goroutine, it updates when availability changes.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 151
            },
            {
              "name": "Delete",
              "anchor": "PlatformCloud.Delete",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) Delete(ctx context.Context, slot string) error",
              "doc": "Delete implements CloudSync. Deleting an absent slot succeeds when cloud storage is available and returns ErrCloudUnavailable when it is not.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 263
            },
            {
              "name": "FileName",
              "anchor": "PlatformCloud.FileName",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) FileName(slot string) (string, error)",
              "doc": "FileName returns the platform cloud file or snapshot name for slot (\"<Prefix><slot>.json\"), or an error wrapping save.ErrInvalidSlot when slot is invalid.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 159
            },
            {
              "name": "List",
              "anchor": "PlatformCloud.List",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) List(ctx context.Context) ([]string, error)",
              "doc": "List implements CloudSync. It lists the sorted names of valid save slots matching this PlatformCloud's prefix, ignoring other files in the cloud container.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 298
            },
            {
              "name": "Load",
              "anchor": "PlatformCloud.Load",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) Load(ctx context.Context, slot string) ([]byte, error)",
              "doc": "Load implements CloudSync. It returns ErrSlotNotFound when slot does not exist, ErrCloudUnavailable when cloud storage is unavailable or cx is disposed, and ErrCloudConflict (also wrapping *cloud.ConflictError) when unresolved native platform conflicts exist.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 182
            },
            {
              "name": "OnConflict",
              "anchor": "PlatformCloud.OnConflict",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) OnConflict(resolve func(PlatformConflict)) (stop func())",
              "doc": "OnConflict subscribes resolve to native platform version conflicts for slots matching this PlatformCloud's prefix. Notifications are delivered on cx's engine goroutine and stop automatically when stop is called or cx is disposed.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 380
            },
            {
              "name": "Prefix",
              "anchor": "PlatformCloud.Prefix",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) Prefix() string",
              "doc": "Prefix returns the file-name prefix prepended to each slot name.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 156
            },
            {
              "name": "Provider",
              "anchor": "PlatformCloud.Provider",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) Provider() CloudProvider",
              "doc": "Provider returns the built-in OS cloud-save service of the platform cx runs on (CloudProviderICloud, CloudProviderPlayGames, or CloudProviderNone), whether or not the player is signed in.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 146
            },
            {
              "name": "Save",
              "anchor": "PlatformCloud.Save",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) Save(ctx context.Context, slot string, data []byte) error",
              "doc": "Save implements CloudSync. It writes data to slot and returns ErrCloudUnavailable rather than silently dropping writes when cloud storage is unavailable.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 228
            },
            {
              "name": "WatchChanges",
              "anchor": "PlatformCloud.WatchChanges",
              "recv": "*PlatformCloud",
              "decl": "func (c *PlatformCloud) WatchChanges(onChange func(CloudChange)) (stop func())",
              "doc": "WatchChanges subscribes onChange to external cloud-save changes for slots matching this PlatformCloud's prefix. Notifications are delivered on cx's engine goroutine and stop automatically when stop is called or cx is disposed. Account-change notifications (cloud.ChangeAccount) and container-wide initial-sync notifications are delivered even when the platform did not enumerate individual file names.\n",
              "file": "pkg/liveops/cloud_platform.go",
              "line": 350
            }
          ]
        },
        {
          "name": "PlatformCloudOptions",
          "anchor": "PlatformCloudOptions",
          "decl": "type PlatformCloudOptions struct {\n\t// Prefix is prepended to each slot name to form its cloud file or snapshot name (\"<Prefix><slot>.json\"); DefaultCloudPrefix (\"save.\") when empty. Must not start with '/' or '.', or contain \"..\", '\\', \"//\" or control characters. Avoid '/' when targeting Android, where Google Play Games snapshot names do not accept path separators.\n\tPrefix string\n}",
          "doc": "PlatformCloudOptions configures NewPlatformCloud.\n",
          "file": "pkg/liveops/cloud_platform.go",
          "line": 62,
          "members": [
            {
              "name": "Prefix",
              "anchor": "PlatformCloudOptions.Prefix",
              "kind": "field",
              "doc": "Prefix is prepended to each slot name to form its cloud file or snapshot name (\"<Prefix><slot>.json\"); DefaultCloudPrefix (\"save.\") when empty. Must not start with '/' or '.', or contain \"..\", '\\', \"//\" or control characters. Avoid '/' when targeting Android, where Google Play Games snapshot names do not accept path separators."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlatformConflict",
          "anchor": "PlatformConflict",
          "decl": "type PlatformConflict struct {\n\t// Slot is the save slot name.\n\tSlot string\n\t// Local holds the local cloud payload bytes (which may be a CloudSyncer JSON envelope decodable with DecodeCloudSave).\n\tLocal []byte\n\t// Remote holds the conflicting remote cloud payload bytes.\n\tRemote []byte\n\t// LocalTime is the modification time reported for Local, if known.\n\tLocalTime time.Time\n\t// RemoteTime is the modification time reported for Remote, if known.\n\tRemoteTime time.Time\n\t// Resolve commits the winning payload bytes to platform cloud storage, clearing the native conflict.\n\tResolve func(chosen []byte) error\n}",
          "doc": "PlatformConflict describes a version conflict reported by the native platform cloud backend (iCloud NSFileVersion or Google Play Games Saved Games) for one save slot.\n",
          "file": "pkg/liveops/cloud_platform.go",
          "line": 76,
          "members": [
            {
              "name": "Slot",
              "anchor": "PlatformConflict.Slot",
              "kind": "field",
              "doc": "Slot is the save slot name."
            },
            {
              "name": "Local",
              "anchor": "PlatformConflict.Local",
              "kind": "field",
              "doc": "Local holds the local cloud payload bytes (which may be a CloudSyncer JSON envelope decodable with DecodeCloudSave)."
            },
            {
              "name": "Remote",
              "anchor": "PlatformConflict.Remote",
              "kind": "field",
              "doc": "Remote holds the conflicting remote cloud payload bytes."
            },
            {
              "name": "LocalTime",
              "anchor": "PlatformConflict.LocalTime",
              "kind": "field",
              "doc": "LocalTime is the modification time reported for Local, if known."
            },
            {
              "name": "RemoteTime",
              "anchor": "PlatformConflict.RemoteTime",
              "kind": "field",
              "doc": "RemoteTime is the modification time reported for Remote, if known."
            },
            {
              "name": "Resolve",
              "anchor": "PlatformConflict.Resolve",
              "kind": "field",
              "doc": "Resolve commits the winning payload bytes to platform cloud storage, clearing the native conflict."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Purchases",
          "anchor": "Purchases",
          "decl": "type Purchases struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Purchases sells a game's in-app products over NSGo's purchase services: it credits consumables into the save exactly once, keeps unlocks and subscriptions from the store's entitlements, restores them, follows purchases waiting for approval and hands each transaction to an optional server before delivering it. Its methods run on the scope's goroutine, as NSGo's callbacks do.\n",
          "file": "pkg/liveops/purchases.go",
          "line": 87,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPurchases",
              "anchor": "NewPurchases",
              "decl": "func NewPurchases(cx *core.Scope, opts PurchasesOptions) *Purchases",
              "doc": "NewPurchases starts selling with opts under cx: it registers for the store's transaction updates, which hand over unfinished transactions as the app starts, and reads the user's current entitlements. Call it as the app starts, before the first frame, so no update waits.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 110
            }
          ],
          "methods": [
            {
              "name": "Available",
              "anchor": "Purchases.Available",
              "recv": "*Purchases",
              "decl": "func (p *Purchases) Available() bool",
              "doc": "Available reports whether this platform and build reach a store, core.Env.CanPurchase; read in a reactive computation, it follows it.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 135
            },
            {
              "name": "Buy",
              "anchor": "Purchases.Buy",
              "recv": "*Purchases",
              "decl": "func (p *Purchases) Buy(product string, quantity int, done func(BuyResult, error))",
              "doc": "Buy buys quantity of product (0 is 1) through the store's sheet and answers done once: Bought after the transaction is verified and delivered, BuyPending or BuyCancelled, or BuyFailed with the error. done may be nil.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 161
            },
            {
              "name": "Entitlement",
              "anchor": "Purchases.Entitlement",
              "recv": "*Purchases",
              "decl": "func (p *Purchases) Entitlement(product string) (core.Transaction, bool)",
              "doc": "Entitlement returns the latest transaction that gives the user product, and whether there is one, whatever its expiration date.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 148
            },
            {
              "name": "Owned",
              "anchor": "Purchases.Owned",
              "recv": "*Purchases",
              "decl": "func (p *Purchases) Owned(product string) bool",
              "doc": "Owned reports whether the user owns product now: a non-consumable or a subscription that is neither refunded nor past its expiration date at the scope's wall time. Read in a reactive computation, it follows purchases, refunds and restores.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 138
            },
            {
              "name": "Pending",
              "anchor": "Purchases.Pending",
              "recv": "*Purchases",
              "decl": "func (p *Purchases) Pending(product string) bool",
              "doc": "Pending reports whether a purchase of product waits for approval. Read in a reactive computation, it follows the approval. A request the approver declines produces no transaction, so Pending stays true until a transaction for product arrives, from a later Buy too, or the app restarts.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 155
            },
            {
              "name": "Refresh",
              "anchor": "Purchases.Refresh",
              "recv": "*Purchases",
              "decl": "func (p *Purchases) Refresh(done func(error))",
              "doc": "Refresh reads the user's current entitlements from the store and makes them what Owned reports, then answers done, which may be nil. An unlock delivered while the answer was on its way stays, unless the answer holds a later transaction for it, and one refunded meanwhile stays gone. NewPurchases calls it; call it again as the app returns to the foreground, which is also when Owned next notices a subscription that expired. An error goes to done, or to OnError when done is nil.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 194
            },
            {
              "name": "Restore",
              "anchor": "Purchases.Restore",
              "recv": "*Purchases",
              "decl": "func (p *Purchases) Restore(done func(error))",
              "doc": "Restore has the store bring the user's purchases up to date, which may ask them to sign in, then refreshes what Owned reports, and answers done, which may be nil: nil, or the store's error, core.PurchaseCancelled when the user declined to sign in. Call it only from a Restore Purchases button the user presses.\n",
              "file": "pkg/liveops/purchases.go",
              "line": 229
            }
          ]
        },
        {
          "name": "PurchasesOptions",
          "anchor": "PurchasesOptions",
          "decl": "type PurchasesOptions struct {\n\t// Ledger is the game's record of credited transactions, which Save must persist along with the state Credit and Revoke change. It is required.\n\tLedger *Ledger\n\t// Credit applies a consumable transaction to the game's state, tr.Quantity of tr.ProductID. It runs at most once per transaction ID, across runs too, as long as Save persists Ledger with that state.\n\tCredit func(tr core.Transaction)\n\t// Revoke takes back what a credited consumable gave when the store refunds or revokes it; nil keeps the credit. It runs at most once per transaction ID, as Credit does.\n\tRevoke func(tr core.Transaction)\n\t// Save persists the game's save, Ledger included, after Credit or Revoke changed it. A transaction is finished only once Save returns nil: after an error it stays unfinished, the store hands it to the app again at its next launch, and the ledger kept in memory or on disk keeps Credit from running twice. It is required for consumables.\n\tSave func() error\n\t// Verify hands tr, whose Signed is the store's JWS, to the game's server and calls done once with nil to accept it or an error to refuse it, from any goroutine. A refused transaction is neither delivered nor finished. nil accepts what the device verified, Transaction.Verified.\n\tVerify func(tr core.Transaction, done func(error))\n\t// AccountToken is the UUID of the game's own that each purchase carries to the store and the game's server, \"\" for none.\n\tAccountToken string\n\t// OnError hears failures that no Buy or Restore answers: a transaction from the store's updates refused, unsaved or not finished, or entitlements the store could not answer.\n\tOnError func(tr core.Transaction, err error)\n}",
          "doc": "PurchasesOptions configures NewPurchases.\n",
          "file": "pkg/liveops/purchases.go",
          "line": 69,
          "members": [
            {
              "name": "Ledger",
              "anchor": "PurchasesOptions.Ledger",
              "kind": "field",
              "doc": "Ledger is the game's record of credited transactions, which Save must persist along with the state Credit and Revoke change. It is required."
            },
            {
              "name": "Credit",
              "anchor": "PurchasesOptions.Credit",
              "kind": "field",
              "doc": "Credit applies a consumable transaction to the game's state, tr.Quantity of tr.ProductID. It runs at most once per transaction ID, across runs too, as long as Save persists Ledger with that state."
            },
            {
              "name": "Revoke",
              "anchor": "PurchasesOptions.Revoke",
              "kind": "field",
              "doc": "Revoke takes back what a credited consumable gave when the store refunds or revokes it; nil keeps the credit. It runs at most once per transaction ID, as Credit does."
            },
            {
              "name": "Save",
              "anchor": "PurchasesOptions.Save",
              "kind": "field",
              "doc": "Save persists the game's save, Ledger included, after Credit or Revoke changed it. A transaction is finished only once Save returns nil: after an error it stays unfinished, the store hands it to the app again at its next launch, and the ledger kept in memory or on disk keeps Credit from running twice. It is required for consumables."
            },
            {
              "name": "Verify",
              "anchor": "PurchasesOptions.Verify",
              "kind": "field",
              "doc": "Verify hands tr, whose Signed is the store's JWS, to the game's server and calls done once with nil to accept it or an error to refuse it, from any goroutine. A refused transaction is neither delivered nor finished. nil accepts what the device verified, Transaction.Verified."
            },
            {
              "name": "AccountToken",
              "anchor": "PurchasesOptions.AccountToken",
              "kind": "field",
              "doc": "AccountToken is the UUID of the game's own that each purchase carries to the store and the game's server, \"\" for none."
            },
            {
              "name": "OnError",
              "anchor": "PurchasesOptions.OnError",
              "kind": "field",
              "doc": "OnError hears failures that no Buy or Restore answers: a transaction from the store's updates refused, unsaved or not finished, or entitlements the store could not answer."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SaveVersion",
          "anchor": "SaveVersion",
          "decl": "type SaveVersion struct {\n\t// Exists is false when this side deleted the slot; the other fields are then zero.\n\tExists bool\n\t// Revision is the cloud revision: the cloud copy's own, or for the local copy the revision it was last synced at (0 when never synced).\n\tRevision int64\n\t// Hash is \"sha256:\" followed by the hex SHA-256 of Data.\n\tHash string\n\t// Modified is when the copy was last written, zero when unknown (a local write that bypassed CloudSyncer.Backend, or a plain cloud payload). A local time counts only for the exact copy it was recorded with: a later write that bypassed Backend makes it unknown.\n\tModified time.Time\n\t// Device is the ID of the device that wrote the copy, empty when unknown.\n\tDevice string\n\t// Summary is CloudSyncOptions.Summarize's text for Data, such as \"Level 12, 3h 40m played\".\n\tSummary string\n\t// Data is the raw save payload.\n\tData []byte\n}",
          "doc": "SaveVersion describes one side's copy of a slot in a Conflict or a SlotResult.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 155,
          "members": [
            {
              "name": "Exists",
              "anchor": "SaveVersion.Exists",
              "kind": "field",
              "doc": "Exists is false when this side deleted the slot; the other fields are then zero."
            },
            {
              "name": "Revision",
              "anchor": "SaveVersion.Revision",
              "kind": "field",
              "doc": "Revision is the cloud revision: the cloud copy's own, or for the local copy the revision it was last synced at (0 when never synced)."
            },
            {
              "name": "Hash",
              "anchor": "SaveVersion.Hash",
              "kind": "field",
              "doc": "Hash is \"sha256:\" followed by the hex SHA-256 of Data."
            },
            {
              "name": "Modified",
              "anchor": "SaveVersion.Modified",
              "kind": "field",
              "doc": "Modified is when the copy was last written, zero when unknown (a local write that bypassed CloudSyncer.Backend, or a plain cloud payload). A local time counts only for the exact copy it was recorded with: a later write that bypassed Backend makes it unknown."
            },
            {
              "name": "Device",
              "anchor": "SaveVersion.Device",
              "kind": "field",
              "doc": "Device is the ID of the device that wrote the copy, empty when unknown."
            },
            {
              "name": "Summary",
              "anchor": "SaveVersion.Summary",
              "kind": "field",
              "doc": "Summary is CloudSyncOptions.Summarize's text for Data, such as \"Level 12, 3h 40m played\"."
            },
            {
              "name": "Data",
              "anchor": "SaveVersion.Data",
              "kind": "field",
              "doc": "Data is the raw save payload."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DecodeCloudSave",
              "anchor": "DecodeCloudSave",
              "decl": "func DecodeCloudSave(raw []byte) (SaveVersion, error)",
              "doc": "DecodeCloudSave reads a cloud payload. A JSON object whose \"format\" is CloudSaveFormat is decoded strictly (unknown fields, a newer version, a revision below 1 or at math.MaxInt64, a hash that does not match the data or a malformed value return an error wrapping ErrCorruptCloudSave); any other payload is a plain save written without CloudSyncer and is returned as revision 0 with no modified time or device.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 1142
            }
          ],
          "methods": []
        },
        {
          "name": "SlotResult",
          "anchor": "SlotResult",
          "decl": "type SlotResult struct {\n\t// Slot is the save slot name.\n\tSlot string\n\t// Outcome is what was done.\n\tOutcome SyncOutcome\n\t// Conflict is set when both copies had changed, whatever the outcome.\n\tConflict *Conflict\n\t// Fork is the slot the local copy was moved to under OutcomeKeptBoth.\n\tFork string\n\t// Discarded is the copy a resolution replaced under OutcomeKeptLocal or OutcomeKeptCloud, so a game can show or archive it.\n\tDiscarded *SaveVersion\n}",
          "doc": "SlotResult reports what a sync did to one slot.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 183,
          "members": [
            {
              "name": "Slot",
              "anchor": "SlotResult.Slot",
              "kind": "field",
              "doc": "Slot is the save slot name."
            },
            {
              "name": "Outcome",
              "anchor": "SlotResult.Outcome",
              "kind": "field",
              "doc": "Outcome is what was done."
            },
            {
              "name": "Conflict",
              "anchor": "SlotResult.Conflict",
              "kind": "field",
              "doc": "Conflict is set when both copies had changed, whatever the outcome."
            },
            {
              "name": "Fork",
              "anchor": "SlotResult.Fork",
              "kind": "field",
              "doc": "Fork is the slot the local copy was moved to under OutcomeKeptBoth."
            },
            {
              "name": "Discarded",
              "anchor": "SlotResult.Discarded",
              "kind": "field",
              "doc": "Discarded is the copy a resolution replaced under OutcomeKeptLocal or OutcomeKeptCloud, so a game can show or archive it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "StepRecord",
          "anchor": "StepRecord",
          "decl": "type StepRecord struct {\n\t// Step is the 1-based monotonic step counter assigned when the step was recorded.\n\tStep uint64 `json:\"step\"`\n\t// DT is the fixed simulation step duration passed to RecordStep or Loop.Update.\n\tDT time.Duration `json:\"dt\"`\n\t// Summary is an optional short label describing what ran in the step.\n\tSummary string `json:\"summary,omitempty\"`\n\t// Data holds optional structured context attached to the step.\n\tData any `json:\"data,omitempty\"`\n}",
          "doc": "StepRecord describes one recorded step in a CrashReporter's fixed-size ring buffer.\n",
          "file": "pkg/liveops/crash.go",
          "line": 18,
          "members": [
            {
              "name": "Step",
              "anchor": "StepRecord.Step",
              "kind": "field",
              "doc": "Step is the 1-based monotonic step counter assigned when the step was recorded."
            },
            {
              "name": "DT",
              "anchor": "StepRecord.DT",
              "kind": "field",
              "doc": "DT is the fixed simulation step duration passed to RecordStep or Loop.Update."
            },
            {
              "name": "Summary",
              "anchor": "StepRecord.Summary",
              "kind": "field",
              "doc": "Summary is an optional short label describing what ran in the step."
            },
            {
              "name": "Data",
              "anchor": "StepRecord.Data",
              "kind": "field",
              "doc": "Data holds optional structured context attached to the step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SyncOutcome",
          "anchor": "SyncOutcome",
          "decl": "type SyncOutcome int",
          "doc": "SyncOutcome says what CloudSyncer did to one slot.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 105,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OutcomeUpToDate",
                  "anchor": "OutcomeUpToDate"
                },
                {
                  "name": "OutcomeUploaded",
                  "anchor": "OutcomeUploaded"
                },
                {
                  "name": "OutcomeDownloaded",
                  "anchor": "OutcomeDownloaded"
                },
                {
                  "name": "OutcomeDeletedCloud",
                  "anchor": "OutcomeDeletedCloud"
                },
                {
                  "name": "OutcomeDeletedLocal",
                  "anchor": "OutcomeDeletedLocal"
                },
                {
                  "name": "OutcomeKeptLocal",
                  "anchor": "OutcomeKeptLocal"
                },
                {
                  "name": "OutcomeKeptCloud",
                  "anchor": "OutcomeKeptCloud"
                },
                {
                  "name": "OutcomeKeptBoth",
                  "anchor": "OutcomeKeptBoth"
                },
                {
                  "name": "OutcomeDeferred",
                  "anchor": "OutcomeDeferred"
                }
              ],
              "decl": "const (\n\t// OutcomeUpToDate means both sides already held the same copy.\n\tOutcomeUpToDate SyncOutcome = iota\n\t// OutcomeUploaded means only the local copy had changed, and it was uploaded.\n\tOutcomeUploaded\n\t// OutcomeDownloaded means only the cloud copy had changed, and it was written locally.\n\tOutcomeDownloaded\n\t// OutcomeDeletedCloud means the slot was deleted locally and unchanged in the cloud, so the cloud copy was deleted.\n\tOutcomeDeletedCloud\n\t// OutcomeDeletedLocal means the slot was deleted in the cloud and unchanged locally, so the local copy was deleted.\n\tOutcomeDeletedLocal\n\t// OutcomeKeptLocal means a conflict was resolved in favour of the local copy; SlotResult.Discarded holds the cloud copy it replaced.\n\tOutcomeKeptLocal\n\t// OutcomeKeptCloud means a conflict was resolved in favour of the cloud copy; SlotResult.Discarded holds the local copy it replaced. When that copy was a valid save envelope and the cloud copy exists, the local save backend also keeps it as its backup; otherwise Discarded is the only copy left.\n\tOutcomeKeptCloud\n\t// OutcomeKeptBoth means a conflict was resolved by keeping the cloud copy in the slot and moving the local copy to SlotResult.Fork on both sides.\n\tOutcomeKeptBoth\n\t// OutcomeDeferred means a conflict was left unresolved, by ChoiceDefer under PolicyAsk or passed to CloudSyncer.Resolve; nothing was written.\n\tOutcomeDeferred\n)",
              "doc": "",
              "file": "pkg/liveops/cloudsync.go",
              "line": 107
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "SyncOutcome.String",
              "recv": "SyncOutcome",
              "decl": "func (o SyncOutcome) String() string",
              "doc": "String returns a lowercase, hyphenated name such as \"up-to-date\" or \"kept-both\".\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 129
            }
          ]
        },
        {
          "name": "SyncResult",
          "anchor": "SyncResult",
          "decl": "type SyncResult struct {\n\t// Slots holds one entry for each slot that synced without error.\n\tSlots []SlotResult\n}",
          "doc": "SyncResult reports what CloudSyncer.Sync did to each slot, sorted by slot name.\n",
          "file": "pkg/liveops/cloudsync.go",
          "line": 197,
          "members": [
            {
              "name": "Slots",
              "anchor": "SyncResult.Slots",
              "kind": "field",
              "doc": "Slots holds one entry for each slot that synced without error."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Conflicts",
              "anchor": "SyncResult.Conflicts",
              "recv": "SyncResult",
              "decl": "func (r SyncResult) Conflicts() []SlotResult",
              "doc": "Conflicts returns the slot results that held a conflict.\n",
              "file": "pkg/liveops/cloudsync.go",
              "line": 203
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/loaderr",
      "name": "loaderr",
      "dir": "pkg/loaderr",
      "page": "pkg/loaderr",
      "synopsis": "Package loaderr is the error that every loader and validator in this module returns for a file it cannot use: which file, which line and column, which field, what was wrong, what was expected and how to fix it, so a person or an agent reading the message can act on it without opening the loader's source.",
      "doc": "Package loaderr is the error that every loader and validator in this module returns for a file it cannot use: which file, which line and column, which field, what was wrong, what was expected and how to fix it, so a person or an agent reading the message can act on it without opening the loader's source.\n\nA validator that walks a decoded document does not know lines, so it names the field instead, with Errorf and a path built by Path (\"layers[2].objects[0].id\"). The loader's entry point then passes every error through Locate with the file name and the bytes it decoded: Locate finds the field's line and column in the YAML or JSON text, turns encoding/json and YAML decode errors (syntax, unknown fields, wrong types) into an Error with their line and a fix, and fills in the file name. A loader that is handed bytes rather than a path does not know the file's name; the caller that read the file names it with WithFile.\n\nSee docs/en/errors.md for the guideline loaders follow.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FixSyntax",
              "anchor": "FixSyntax"
            },
            {
              "name": "FixUnknownField",
              "anchor": "FixUnknownField"
            },
            {
              "name": "FixType",
              "anchor": "FixType"
            },
            {
              "name": "FixDuplicateKey",
              "anchor": "FixDuplicateKey"
            },
            {
              "name": "FixTruncated",
              "anchor": "FixTruncated"
            }
          ],
          "decl": "const (\n\tFixSyntax       = \"correct the syntax at this position; the rest of the file is not read until it parses\"\n\tFixUnknownField = \"remove the field or correct its spelling; this format refuses fields it does not define\"\n\tFixType         = \"write a value of the expected type\"\n\tFixDuplicateKey = \"remove one of the two keys; a key may appear once in a mapping\"\n\tFixTruncated    = \"complete the document; it ends in the middle of a value, as a file cut short does\"\n)",
          "doc": "Fixes Locate gives the decode errors it recognises.\n",
          "file": "pkg/loaderr/locate.go",
          "line": 20
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "FindField",
          "anchor": "FindField",
          "decl": "func FindField(data []byte, field string) (line, column int)",
          "doc": "FindField returns the 1-based line and column of the value at field (a path as Path writes it) in data, a YAML or JSON document. For a mapping key it is the key's position. When field is not in data it returns the position of the nearest enclosing value that is, the document's start for an empty field, and 0, 0 when data does not parse.\n",
          "file": "pkg/loaderr/locate.go",
          "line": 93
        },
        {
          "name": "Join",
          "anchor": "Join",
          "decl": "func Join(base string, parts ...any) string",
          "doc": "Join returns the path base, as Path writes it, followed by parts, so a validator can extend the path of the value it was handed: Join(\"layers[2]\", \"objects\", 0) is \"layers[2].objects[0]\".\n",
          "file": "pkg/loaderr/loaderr.go",
          "line": 129
        },
        {
          "name": "Locate",
          "anchor": "Locate",
          "decl": "func Locate(err error, file string, data []byte, fix string) error",
          "doc": "Locate returns err as an *Error that names file and, when data holds the text the loader decoded, the line and column of the problem. Loaders call it once on every error their entry point returns.\n\n  - An *Error in err's chain is copied with File set to file when it has none, Line and Column set from where its Field is in data, and Fix set to fix when it has none. When the field itself is missing from data, the line is that of the nearest enclosing value that is there. The copy keeps that Error's Problem and Err, not the text of errors wrapping it.\n  - A decode error from encoding/json (syntax, unknown field, wrong type) or from YAML (syntax, unknown field, wrong type, duplicate key, an unexpected end) becomes an Error at its line and column, with the field it was in, when known, and a fix for its kind.\n  - Any other error becomes an Error that names file, with fix as its Fix and err as its Err, at line 0.\n\nLocate returns nil for a nil err.\n",
          "file": "pkg/loaderr/locate.go",
          "line": 35
        },
        {
          "name": "LocateJSON",
          "anchor": "LocateJSON",
          "decl": "func LocateJSON(err error, file string, data []byte, fix string) error",
          "doc": "LocateJSON is like Locate for loaders that only decode JSON, XML, or CSV documents\nand never YAML. Using LocateJSON lets dead-code elimination omit the YAML parser\nfrom WebAssembly builds that do not load YAML files.\n",
          "file": "pkg/loaderr/locate.go",
          "line": 65
        },
        {
          "name": "Path",
          "anchor": "Path",
          "decl": "func Path(parts ...any) string",
          "doc": "Path builds a field path from keys and indexes: a string is a key and an int an index, so Path(\"layers\", 2, \"objects\", 0, \"id\") is \"layers[2].objects[0].id\". A key that is empty or holds '.', '[', ']' or '\"' is written quoted in brackets, as in `tilemaps[\"a.b\"]`.\n",
          "file": "pkg/loaderr/loaderr.go",
          "line": 102
        },
        {
          "name": "WithFile",
          "anchor": "WithFile",
          "decl": "func WithFile(err error, file string) error",
          "doc": "WithFile returns a copy of err with File set to file, when err is itself an *Error whose File is empty. Any other error, including one that only wraps an *Error, is returned unchanged, so the context and sentinels around it still match with errors.Is; so is nil.\n\nA caller that read a file and handed its bytes to a loader, whose entry point returns an *Error, uses it to name the file in the loader's errors.\n",
          "file": "pkg/loaderr/loaderr.go",
          "line": 91
        }
      ],
      "types": [
        {
          "name": "Error",
          "anchor": "Error",
          "decl": "type Error struct {\n\tFile     string // the file's path or name, empty until a loader or its caller knows it\n\tLine     int    // 1-based line in File, 0 when unknown\n\tColumn   int    // 1-based column in Line, 0 when unknown\n\tField    string // where in the document, as Path writes it (\"layers[2].space\"), empty for the document as a whole\n\tProblem  string // what is wrong, as the loader says it\n\tExpected string // what the loader expected there, empty when Problem already says it\n\tFix      string // what to change so the file loads\n\tErr      error  // the underlying error, if any\n}",
          "doc": "Error describes one problem in a file a loader read: where it is, what is wrong and how to fix it.\n\nIts message reads \"file:line:column: field: problem; expected E; fix: F\", leaving out the parts it does not know. Line and Column are 1-based and 0 when the problem is not at one place in the text, such as a file that cannot be read.\n",
          "file": "pkg/loaderr/loaderr.go",
          "line": 13,
          "members": [
            {
              "name": "File",
              "anchor": "Error.File",
              "kind": "field",
              "doc": "the file's path or name, empty until a loader or its caller knows it"
            },
            {
              "name": "Line",
              "anchor": "Error.Line",
              "kind": "field",
              "doc": "1-based line in File, 0 when unknown"
            },
            {
              "name": "Column",
              "anchor": "Error.Column",
              "kind": "field",
              "doc": "1-based column in Line, 0 when unknown"
            },
            {
              "name": "Field",
              "anchor": "Error.Field",
              "kind": "field",
              "doc": "where in the document, as Path writes it (\"layers[2].space\"), empty for the document as a whole"
            },
            {
              "name": "Problem",
              "anchor": "Error.Problem",
              "kind": "field",
              "doc": "what is wrong, as the loader says it"
            },
            {
              "name": "Expected",
              "anchor": "Error.Expected",
              "kind": "field",
              "doc": "what the loader expected there, empty when Problem already says it"
            },
            {
              "name": "Fix",
              "anchor": "Error.Fix",
              "kind": "field",
              "doc": "what to change so the file loads"
            },
            {
              "name": "Err",
              "anchor": "Error.Err",
              "kind": "field",
              "doc": "the underlying error, if any"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "As",
              "anchor": "As",
              "decl": "func As(err error) (*Error, bool)",
              "doc": "As returns the first *Error in err's chain.\n",
              "file": "pkg/loaderr/loaderr.go",
              "line": 80
            },
            {
              "name": "Errorf",
              "anchor": "Errorf",
              "decl": "func Errorf(field, fix, format string, args ...any) *Error",
              "doc": "Errorf returns an Error for the value at field whose Problem is format formatted with args, as fmt.Errorf formats it, and whose fix is fix. A %w verb keeps the wrapped error as Err; with two or more, Err is the formatted error, which wraps them all, so errors.Is and errors.As find each one.\n",
              "file": "pkg/loaderr/loaderr.go",
              "line": 70
            }
          ],
          "methods": [
            {
              "name": "Error",
              "anchor": "Error.Error",
              "recv": "*Error",
              "decl": "func (e *Error) Error() string",
              "doc": "Error returns the message described on Error.\n",
              "file": "pkg/loaderr/loaderr.go",
              "line": 25
            },
            {
              "name": "Unwrap",
              "anchor": "Error.Unwrap",
              "recv": "*Error",
              "decl": "func (e *Error) Unwrap() error",
              "doc": "Unwrap returns the underlying error, so errors.Is and errors.As see through an Error.\n",
              "file": "pkg/loaderr/loaderr.go",
              "line": 67
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/loot",
      "name": "loot",
      "dir": "pkg/loot",
      "page": "pkg/loot",
      "synopsis": "Package loot rolls nested weighted drop tables with guaranteed drops and pity counters on the deterministic streams of package random.",
      "doc": "Package loot rolls nested weighted drop tables with guaranteed drops and pity counters on the deterministic streams of package random.\n\n# Tables\n\nA Document is the versioned YAML text a game's author writes: a list of named tables. Each Table holds weighted Entries, of which it picks Rolls times, and Guaranteed entries it drops every time it is rolled. An Entry drops an item, rolls another table (nesting), or drops nothing. Parse decodes and validates a Document, refusing unknown fields, unsupported versions, unknown or cyclic table references and runaway sizes; Encode writes the same Document back as deterministic YAML that parses to an equal value.\n\n# Rolling\n\nNew compiles a Document into an immutable Library. A Roller rolls a Library's tables on one random.Stream, so a seed and a sequence of rolls always produce the same drops on every platform. A Library can be shared by many Rollers; each Roller is used by one goroutine.\n\n# Pity\n\nA table's Pity rules raise the chance of one of its entries after a run of picks without it. A hard rule (GuaranteeAt) forces the entry on the GuaranteeAt-th pick since it was last picked; a soft rule (SoftFrom, SoftStep) adds SoftStep to the entry's weight for every pick from the SoftFrom-th one on. A Roller keeps a miss counter per rule; State and SetState copy the counters out and back in for save slots, beside the stream's own random.State.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MaxRolls",
              "anchor": "MaxRolls"
            },
            {
              "name": "MaxCount",
              "anchor": "MaxCount"
            },
            {
              "name": "MaxWeight",
              "anchor": "MaxWeight"
            },
            {
              "name": "MaxGuaranteeAt",
              "anchor": "MaxGuaranteeAt"
            },
            {
              "name": "MaxRollSteps",
              "anchor": "MaxRollSteps"
            }
          ],
          "decl": "const (\n\t// MaxRolls is the largest number of weighted picks one roll of a table may make.\n\tMaxRolls = 1024\n\t// MaxCount is the largest quantity of an item entry, or the largest number of times a table entry rolls its table.\n\tMaxCount = 1 << 30\n\t// MaxWeight is the largest entry weight and the largest SoftStep.\n\tMaxWeight = 1e15\n\t// MaxGuaranteeAt is the largest GuaranteeAt and SoftFrom of a pity rule.\n\tMaxGuaranteeAt = 1 << 20\n\t// MaxRollSteps bounds the work of one Roller.Roll: the worst case of picks, sub-table rolls and drops a table can produce, which Validate computes from Rolls and Count maxima, must not exceed it. A weighted pick counts as many steps as its table has entries and pity rules, because it scans all of them.\n\tMaxRollSteps = 1 << 16\n)",
          "doc": "Limits that keep every roll bounded. Validate refuses documents that exceed them.\n",
          "file": "pkg/loot/format.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the loot document schema version that Parse accepts and Encode writes.\n",
          "file": "pkg/loot/format.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "MaxMisses",
              "anchor": "MaxMisses"
            }
          ],
          "decl": "const MaxMisses = 1 << 30",
          "doc": "MaxMisses is the largest value a pity miss counter holds; counting saturates there, and SetState refuses larger values.\n",
          "file": "pkg/loot/roller.go",
          "line": 10
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrUnknownTable",
              "anchor": "ErrUnknownTable"
            }
          ],
          "decl": "var ErrUnknownTable = errors.New(\"loot: unknown table\")",
          "doc": "ErrUnknownTable is returned by Roller.Roll for a table name the Library does not hold.\n",
          "file": "pkg/loot/library.go",
          "line": 9
        }
      ],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(doc *Document) ([]byte, error)",
          "doc": "Encode validates doc and writes it as deterministic 2-space YAML that Parse decodes to an equal Document.\n",
          "file": "pkg/loot/format.go",
          "line": 192
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(doc *Document) error",
          "doc": "Validate checks doc against the version 1 schema: names, entry kinds, weights, ranges, pity rules, table references without cycles, and the MaxRollSteps bound on every table.\n",
          "file": "pkg/loot/format.go",
          "line": 210
        }
      ],
      "types": [
        {
          "name": "Document",
          "anchor": "Document",
          "decl": "type Document struct {\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Tables are the document's tables. Their names are unique, and entries refer to them by name.\n\tTables []Table `yaml:\"tables\"`\n}",
          "doc": "Document is the root of a versioned YAML loot document.\n",
          "file": "pkg/loot/format.go",
          "line": 32,
          "members": [
            {
              "name": "Version",
              "anchor": "Document.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "Tables",
              "anchor": "Document.Tables",
              "kind": "field",
              "doc": "Tables are the document's tables. Their names are unique, and entries refer to them by name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Document, error)",
              "doc": "Parse decodes a YAML loot document and validates it. Unknown fields, duplicate keys and trailing YAML documents are rejected. Empty lists decode as nil, so the result equals the Document that its Encode text parses to.\n",
              "file": "pkg/loot/format.go",
              "line": 151
            }
          ],
          "methods": []
        },
        {
          "name": "Drop",
          "anchor": "Drop",
          "decl": "type Drop struct {\n\tItem  string `json:\"item\" yaml:\"item\"`\n\tCount int    `json:\"count\" yaml:\"count\"`\n}",
          "doc": "Drop is one item a roll produced, with its quantity (always at least 1).\n",
          "file": "pkg/loot/roller.go",
          "line": 13,
          "members": [
            {
              "name": "Item",
              "anchor": "Drop.Item",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "Drop.Count",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Entry",
          "anchor": "Entry",
          "decl": "type Entry struct {\n\t// Item names the item this entry drops.\n\tItem string `yaml:\"item,omitempty\"`\n\t// Table names another table of the document that this entry rolls.\n\tTable string `yaml:\"table,omitempty\"`\n\t// Nothing marks an empty pick, which drops nothing; its weight sets the chance of a miss.\n\tNothing bool `yaml:\"nothing,omitempty\"`\n\t// Weight is the entry's relative chance among the table's Entries. It must be positive there and 0 in Guaranteed.\n\tWeight float64 `yaml:\"weight,omitempty\"`\n\t// Count is the item's quantity, or how many times the table entry rolls its table, drawn uniformly from the range; nil means exactly one. A Nothing entry has no Count.\n\tCount *Range `yaml:\"count,omitempty\"`\n}",
          "doc": "Entry is one possible drop of a table. Exactly one of Item, Table and Nothing is set.\n",
          "file": "pkg/loot/format.go",
          "line": 54,
          "members": [
            {
              "name": "Item",
              "anchor": "Entry.Item",
              "kind": "field",
              "doc": "Item names the item this entry drops."
            },
            {
              "name": "Table",
              "anchor": "Entry.Table",
              "kind": "field",
              "doc": "Table names another table of the document that this entry rolls."
            },
            {
              "name": "Nothing",
              "anchor": "Entry.Nothing",
              "kind": "field",
              "doc": "Nothing marks an empty pick, which drops nothing; its weight sets the chance of a miss."
            },
            {
              "name": "Weight",
              "anchor": "Entry.Weight",
              "kind": "field",
              "doc": "Weight is the entry's relative chance among the table's Entries. It must be positive there and 0 in Guaranteed."
            },
            {
              "name": "Count",
              "anchor": "Entry.Count",
              "kind": "field",
              "doc": "Count is the item's quantity, or how many times the table entry rolls its table, drawn uniformly from the range; nil means exactly one. A Nothing entry has no Count."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Library",
          "anchor": "Library",
          "decl": "type Library struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Library is a compiled, immutable set of tables that any number of Rollers can roll concurrently.\n",
          "file": "pkg/loot/library.go",
          "line": 49,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(doc *Document) (*Library, error)",
              "doc": "New validates doc and compiles it into a Library. The Library does not keep doc, so later changes to doc do not affect it.\n",
              "file": "pkg/loot/library.go",
              "line": 57
            }
          ],
          "methods": [
            {
              "name": "Chances",
              "anchor": "Library.Chances",
              "recv": "*Library",
              "decl": "func (l *Library) Chances(table string) []float64",
              "doc": "Chances returns the probability of each of the named table's Entries on one pick with no pity ramp applied, in document order. It returns nil for an unknown table or one without entries.\n",
              "file": "pkg/loot/library.go",
              "line": 77
            },
            {
              "name": "Has",
              "anchor": "Library.Has",
              "recv": "*Library",
              "decl": "func (l *Library) Has(name string) bool",
              "doc": "Has reports whether the Library holds a table named name.\n",
              "file": "pkg/loot/library.go",
              "line": 62
            },
            {
              "name": "Tables",
              "anchor": "Library.Tables",
              "recv": "*Library",
              "decl": "func (l *Library) Tables() []string",
              "doc": "Tables returns the Library's table names in document order.\n",
              "file": "pkg/loot/library.go",
              "line": 68
            }
          ]
        },
        {
          "name": "Pity",
          "anchor": "Pity",
          "decl": "type Pity struct {\n\t// Name identifies the rule's miss counter in State; it is unique within its table.\n\tName string `yaml:\"name\"`\n\t// Item names the target entry by its Item.\n\tItem string `yaml:\"item,omitempty\"`\n\t// Table names the target entry by its Table.\n\tTable string `yaml:\"table,omitempty\"`\n\t// GuaranteeAt, when positive, forces the target on the GuaranteeAt-th pick since it was last picked. When several rules of a table force a pick at once, the first one in order wins and the others keep counting.\n\tGuaranteeAt int `yaml:\"guaranteeAt,omitempty\"`\n\t// SoftFrom, when positive, starts the soft ramp: on the n-th pick since the target was last picked, with n >= SoftFrom, the target's weight grows by (n-SoftFrom+1)*SoftStep. It must be below GuaranteeAt when both are set.\n\tSoftFrom int `yaml:\"softFrom,omitempty\"`\n\t// SoftStep is the weight the soft ramp adds per pick. It is positive exactly when SoftFrom is.\n\tSoftStep float64 `yaml:\"softStep,omitempty\"`\n}",
          "doc": "Pity is a rule that raises the chance of one entry of its table after a run of picks without it. Exactly one of Item and Table names the target entry, and at least one of GuaranteeAt and SoftFrom is set.\n",
          "file": "pkg/loot/format.go",
          "line": 68,
          "members": [
            {
              "name": "Name",
              "anchor": "Pity.Name",
              "kind": "field",
              "doc": "Name identifies the rule's miss counter in State; it is unique within its table."
            },
            {
              "name": "Item",
              "anchor": "Pity.Item",
              "kind": "field",
              "doc": "Item names the target entry by its Item."
            },
            {
              "name": "Table",
              "anchor": "Pity.Table",
              "kind": "field",
              "doc": "Table names the target entry by its Table."
            },
            {
              "name": "GuaranteeAt",
              "anchor": "Pity.GuaranteeAt",
              "kind": "field",
              "doc": "GuaranteeAt, when positive, forces the target on the GuaranteeAt-th pick since it was last picked. When several rules of a table force a pick at once, the first one in order wins and the others keep counting."
            },
            {
              "name": "SoftFrom",
              "anchor": "Pity.SoftFrom",
              "kind": "field",
              "doc": "SoftFrom, when positive, starts the soft ramp: on the n-th pick since the target was last picked, with n >= SoftFrom, the target's weight grows by (n-SoftFrom+1)*SoftStep. It must be below GuaranteeAt when both are set."
            },
            {
              "name": "SoftStep",
              "anchor": "Pity.SoftStep",
              "kind": "field",
              "doc": "SoftStep is the weight the soft ramp adds per pick. It is positive exactly when SoftFrom is."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Range",
          "anchor": "Range",
          "decl": "type Range struct {\n\tMin int\n\tMax int\n}",
          "doc": "Range is an inclusive integer range [Min, Max]. In YAML it is written as a single integer when Min equals Max and as a mapping with min and max otherwise.\n",
          "file": "pkg/loot/format.go",
          "line": 84,
          "members": [
            {
              "name": "Min",
              "anchor": "Range.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "Range.Max",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Between",
              "anchor": "Between",
              "decl": "func Between(min, max int) *Range",
              "doc": "Between returns a pointer to the range [min, max].\n",
              "file": "pkg/loot/format.go",
              "line": 93
            },
            {
              "name": "Exactly",
              "anchor": "Exactly",
              "decl": "func Exactly(n int) *Range",
              "doc": "Exactly returns a pointer to the range [n, n].\n",
              "file": "pkg/loot/format.go",
              "line": 90
            }
          ],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Range.MarshalYAML",
              "recv": "Range",
              "decl": "func (r Range) MarshalYAML() (any, error)",
              "doc": "MarshalYAML writes r as an integer when Min equals Max and as a min/max mapping otherwise.\n",
              "file": "pkg/loot/format.go",
              "line": 96
            },
            {
              "name": "UnmarshalYAML",
              "anchor": "Range.UnmarshalYAML",
              "recv": "*Range",
              "decl": "func (r *Range) UnmarshalYAML(value *yaml.Node) error",
              "doc": "UnmarshalYAML reads an integer or a mapping with exactly the keys min and max.\n",
              "file": "pkg/loot/format.go",
              "line": 107
            }
          ]
        },
        {
          "name": "Roller",
          "anchor": "Roller",
          "decl": "type Roller struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Roller rolls a Library's tables on one random.Stream and keeps the pity miss counters of one player or save. A Roller is not safe for concurrent use; give each goroutine its own Roller and stream.\n",
          "file": "pkg/loot/roller.go",
          "line": 24,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRoller",
              "anchor": "NewRoller",
              "decl": "func NewRoller(lib *Library, stream *random.Stream) *Roller",
              "doc": "NewRoller returns a Roller with zero pity counters that rolls lib's tables on stream, typically a stream forked for loot such as streams.Stream(\"loot\"). It panics if lib or stream is nil.\n",
              "file": "pkg/loot/roller.go",
              "line": 32
            }
          ],
          "methods": [
            {
              "name": "AppendRoll",
              "anchor": "Roller.AppendRoll",
              "recv": "*Roller",
              "decl": "func (r *Roller) AppendRoll(dst []Drop, table string) ([]Drop, error)",
              "doc": "AppendRoll is like Roll but appends the drops to dst, so a caller that reuses dst rolls without allocating. On an unknown table it returns dst unchanged and an error wrapping ErrUnknownTable, without drawing from the stream or touching the counters.\n",
              "file": "pkg/loot/roller.go",
              "line": 56
            },
            {
              "name": "Library",
              "anchor": "Roller.Library",
              "recv": "*Roller",
              "decl": "func (r *Roller) Library() *Library",
              "doc": "Library returns the Library r rolls.\n",
              "file": "pkg/loot/roller.go",
              "line": 45
            },
            {
              "name": "Misses",
              "anchor": "Roller.Misses",
              "recv": "*Roller",
              "decl": "func (r *Roller) Misses(table, rule string) (int, bool)",
              "doc": "Misses returns how many picks of table have passed since the target of its pity rule was last picked, and false when the table or rule does not exist. The next pick is pick number Misses+1, which is what GuaranteeAt and SoftFrom count.\n",
              "file": "pkg/loot/roller.go",
              "line": 143
            },
            {
              "name": "ResetPity",
              "anchor": "Roller.ResetPity",
              "recv": "*Roller",
              "decl": "func (r *Roller) ResetPity()",
              "doc": "ResetPity sets every pity counter of r back to zero.\n",
              "file": "pkg/loot/roller.go",
              "line": 203
            },
            {
              "name": "Roll",
              "anchor": "Roller.Roll",
              "recv": "*Roller",
              "decl": "func (r *Roller) Roll(table string) ([]Drop, error)",
              "doc": "Roll rolls the named table once and returns its drops in the order they were produced: guaranteed entries first, then each weighted pick, with nested tables expanded in place.\n",
              "file": "pkg/loot/roller.go",
              "line": 51
            },
            {
              "name": "SetState",
              "anchor": "Roller.SetState",
              "recv": "*Roller",
              "decl": "func (r *Roller) SetState(st State) error",
              "doc": "SetState replaces r's pity counters with st's. Rules missing from st start at zero, and counters for tables or rules the Library no longer has are ignored, so a save outlives edits to the loot document. It refuses a counter below 0 or above MaxMisses and then leaves r unchanged.\n",
              "file": "pkg/loot/roller.go",
              "line": 181
            },
            {
              "name": "State",
              "anchor": "Roller.State",
              "recv": "*Roller",
              "decl": "func (r *Roller) State() State",
              "doc": "State returns a copy of r's pity counters.\n",
              "file": "pkg/loot/roller.go",
              "line": 157
            },
            {
              "name": "Stream",
              "anchor": "Roller.Stream",
              "recv": "*Roller",
              "decl": "func (r *Roller) Stream() *random.Stream",
              "doc": "Stream returns the stream r draws from; save its State beside r.State to resume the same drops.\n",
              "file": "pkg/loot/roller.go",
              "line": 48
            }
          ]
        },
        {
          "name": "State",
          "anchor": "State",
          "decl": "type State struct {\n\tPity map[string]map[string]int `json:\"pity,omitempty\" yaml:\"pity,omitempty\"`\n}",
          "doc": "State is a Roller's pity counters as plain data for save slots, keyed by table name and then by pity rule name. Only non-zero counters are listed. Its map keys marshal in sorted order with encoding/json and YAML, so its text is deterministic.\n",
          "file": "pkg/loot/roller.go",
          "line": 19,
          "members": [
            {
              "name": "Pity",
              "anchor": "State.Pity",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Table",
          "anchor": "Table",
          "decl": "type Table struct {\n\t// Name identifies the table to Roller.Roll and to entries of other tables.\n\tName string `yaml:\"name\"`\n\t// Rolls is how many weighted picks one roll of the table makes, drawn uniformly from the range; nil means exactly one. It must be nil when Entries is empty.\n\tRolls *Range `yaml:\"rolls,omitempty\"`\n\t// Guaranteed entries drop every time the table is rolled, before its weighted picks. Their Weight must be 0 and they cannot be Nothing.\n\tGuaranteed []Entry `yaml:\"guaranteed,omitempty\"`\n\t// Entries are the weighted choices of each pick. Every Weight must be positive, and no two entries may name the same item or the same table.\n\tEntries []Entry `yaml:\"entries,omitempty\"`\n\t// Pity rules raise the chance of one entry of Entries after a run of picks without it.\n\tPity []Pity `yaml:\"pity,omitempty\"`\n}",
          "doc": "Table is one named drop table.\n",
          "file": "pkg/loot/format.go",
          "line": 40,
          "members": [
            {
              "name": "Name",
              "anchor": "Table.Name",
              "kind": "field",
              "doc": "Name identifies the table to Roller.Roll and to entries of other tables."
            },
            {
              "name": "Rolls",
              "anchor": "Table.Rolls",
              "kind": "field",
              "doc": "Rolls is how many weighted picks one roll of the table makes, drawn uniformly from the range; nil means exactly one. It must be nil when Entries is empty."
            },
            {
              "name": "Guaranteed",
              "anchor": "Table.Guaranteed",
              "kind": "field",
              "doc": "Guaranteed entries drop every time the table is rolled, before its weighted picks. Their Weight must be 0 and they cannot be Nothing."
            },
            {
              "name": "Entries",
              "anchor": "Table.Entries",
              "kind": "field",
              "doc": "Entries are the weighted choices of each pick. Every Weight must be positive, and no two entries may name the same item or the same table."
            },
            {
              "name": "Pity",
              "anchor": "Table.Pity",
              "kind": "field",
              "doc": "Pity rules raise the chance of one entry of Entries after a run of picks without it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/math2d",
      "name": "math2d",
      "dir": "pkg/math2d",
      "page": "pkg/math2d",
      "synopsis": "Package math2d provides small, zero-allocation 2D value types shared by game packages: vectors (Vec2), axis-aligned rectangles (Rect), circles (Circle), and 3×2 affine transforms (Affine).",
      "doc": "Package math2d provides small, zero-allocation 2D value types shared by game packages:\nvectors (Vec2), axis-aligned rectangles (Rect), circles (Circle), and 3×2 affine\ntransforms (Affine).\n\nCoordinates use float32 to match NSGo's core geometry (core.Points, core.Point,\ncore.Size, core.Bounds) and core.Drawing, with lossless conversions to and from core.\nAngles are in radians, turning from +X toward +Y (clockwise in NSGo's Y-down drawing\ncoordinates).\n",
      "consts": [],
      "vars": [],
      "funcs": [],
      "types": [
        {
          "name": "Affine",
          "anchor": "Affine",
          "decl": "type Affine struct {\n\tA, B   float32\n\tC, D   float32\n\tTx, Ty float32\n}",
          "doc": "Affine is a 2D 3×2 affine transform stored in the same column order as\ncore.Drawing.Transform and core.Matrix3D.Affine (Canvas 2D / SVG matrix(a, b, c, d, e, f)):\n\n\t[ A  C  Tx ] [ x ]   [ A*x + C*y + Tx ]\n\t[ B  D  Ty ] [ y ] = [ B*x + D*y + Ty ]\n\t[ 0  0  1  ] [ 1 ]   [ 1              ]\n\nThe zero value maps every point to (0, 0); use Identity for the no-op transform.\n",
          "file": "pkg/math2d/affine.go",
          "line": 17,
          "members": [
            {
              "name": "A",
              "anchor": "Affine.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "Affine.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "C",
              "anchor": "Affine.C",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "D",
              "anchor": "Affine.D",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tx",
              "anchor": "Affine.Tx",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ty",
              "anchor": "Affine.Ty",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FromCore",
              "anchor": "FromCore",
              "decl": "func FromCore(m core.Matrix3D) (Affine, bool)",
              "doc": "FromCore extracts a 2D Affine from an NSGo core.Matrix3D.\nIt returns (Affine{}, false) if m is not a pure 2D affine transform.\n",
              "file": "pkg/math2d/affine.go",
              "line": 84
            },
            {
              "name": "Identity",
              "anchor": "Identity",
              "decl": "func Identity() Affine",
              "doc": "Identity returns the identity affine transform.\n",
              "file": "pkg/math2d/affine.go",
              "line": 24
            },
            {
              "name": "Rotate",
              "anchor": "Rotate",
              "decl": "func Rotate(rad float32) Affine",
              "doc": "Rotate returns a rotation transform by rad radians from +X toward +Y.\n",
              "file": "pkg/math2d/affine.go",
              "line": 39
            },
            {
              "name": "RotateAround",
              "anchor": "RotateAround",
              "decl": "func RotateAround(rad, cx, cy float32) Affine",
              "doc": "RotateAround returns a rotation transform by rad radians about pivot (cx, cy).\n",
              "file": "pkg/math2d/affine.go",
              "line": 49
            },
            {
              "name": "Scale",
              "anchor": "Scale",
              "decl": "func Scale(sx, sy float32) Affine",
              "doc": "Scale returns a pure scaling transform by (sx, sy).\n",
              "file": "pkg/math2d/affine.go",
              "line": 34
            },
            {
              "name": "TRS",
              "anchor": "TRS",
              "decl": "func TRS(pos Vec2, rot float32, scale Vec2) Affine",
              "doc": "TRS returns a transform that scales by scale, rotates by rot radians, and translates by pos:\nTranslate(pos.X, pos.Y).Mul(Rotate(rot)).Mul(Scale(scale.X, scale.Y)).\n",
              "file": "pkg/math2d/affine.go",
              "line": 67
            },
            {
              "name": "Translate",
              "anchor": "Translate",
              "decl": "func Translate(x, y float32) Affine",
              "doc": "Translate returns a pure translation transform by (x, y).\n",
              "file": "pkg/math2d/affine.go",
              "line": 29
            }
          ],
          "methods": [
            {
              "name": "ApproxEqual",
              "anchor": "Affine.ApproxEqual",
              "recv": "Affine",
              "decl": "func (m Affine) ApproxEqual(o Affine, eps float32) bool",
              "doc": "ApproxEqual reports whether each element of m and o differs by at most eps.\nIt returns false if eps < 0 or any value is NaN.\n",
              "file": "pkg/math2d/affine.go",
              "line": 184
            },
            {
              "name": "Invert",
              "anchor": "Affine.Invert",
              "recv": "Affine",
              "decl": "func (m Affine) Invert() (Affine, bool)",
              "doc": "Invert returns the inverse of m, or (Affine{}, false) if m is singular,\ndegenerate, or contains non-finite values.\n",
              "file": "pkg/math2d/affine.go",
              "line": 123
            },
            {
              "name": "Mul",
              "anchor": "Affine.Mul",
              "recv": "Affine",
              "decl": "func (m Affine) Mul(other Affine) Affine",
              "doc": "Mul returns the matrix product m * other (other applied first, then m).\n",
              "file": "pkg/math2d/affine.go",
              "line": 110
            },
            {
              "name": "ToCore",
              "anchor": "Affine.ToCore",
              "recv": "Affine",
              "decl": "func (m Affine) ToCore() core.Matrix3D",
              "doc": "ToCore converts m to an NSGo core.Matrix3D losslessly.\n",
              "file": "pkg/math2d/affine.go",
              "line": 100
            },
            {
              "name": "TransformPoint",
              "anchor": "Affine.TransformPoint",
              "recv": "Affine",
              "decl": "func (m Affine) TransformPoint(p Vec2) Vec2",
              "doc": "TransformPoint applies m (including translation) to point p.\n",
              "file": "pkg/math2d/affine.go",
              "line": 149
            },
            {
              "name": "TransformRect",
              "anchor": "Affine.TransformRect",
              "recv": "Affine",
              "decl": "func (m Affine) TransformRect(r Rect) Rect",
              "doc": "TransformRect transforms the four corners of r by m and returns the tightest\naxis-aligned bounding Rect enclosing them.\nIt returns the zero Rect if r is empty.\n",
              "file": "pkg/math2d/affine.go",
              "line": 167
            },
            {
              "name": "TransformVector",
              "anchor": "Affine.TransformVector",
              "recv": "Affine",
              "decl": "func (m Affine) TransformVector(v Vec2) Vec2",
              "doc": "TransformVector applies only the linear part of m (ignoring translation) to vector v.\n",
              "file": "pkg/math2d/affine.go",
              "line": 157
            }
          ]
        },
        {
          "name": "Circle",
          "anchor": "Circle",
          "decl": "type Circle struct {\n\tCenter Vec2\n\tRadius float32\n}",
          "doc": "Circle is a 2D circle defined by its Center and Radius.\n\nA circle with Radius <= 0 (or NaN) is empty and contains or overlaps nothing.\n",
          "file": "pkg/math2d/circle.go",
          "line": 6,
          "members": [
            {
              "name": "Center",
              "anchor": "Circle.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Circle.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ApproxEqual",
              "anchor": "Circle.ApproxEqual",
              "recv": "Circle",
              "decl": "func (c Circle) ApproxEqual(o Circle, eps float32) bool",
              "doc": "ApproxEqual reports whether c and o have centers and radii within eps.\nIt returns false if eps < 0 or any value is NaN.\n",
              "file": "pkg/math2d/circle.go",
              "line": 71
            },
            {
              "name": "Bounds",
              "anchor": "Circle.Bounds",
              "recv": "Circle",
              "decl": "func (c Circle) Bounds() Rect",
              "doc": "Bounds returns the axis-aligned bounding Rect of c, or the zero Rect if Radius < 0\nor any component is NaN.\n",
              "file": "pkg/math2d/circle.go",
              "line": 48
            },
            {
              "name": "Contains",
              "anchor": "Circle.Contains",
              "recv": "Circle",
              "decl": "func (c Circle) Contains(p Vec2) bool",
              "doc": "Contains reports whether p lies inside or on the boundary of c.\n",
              "file": "pkg/math2d/circle.go",
              "line": 12
            },
            {
              "name": "Overlaps",
              "anchor": "Circle.Overlaps",
              "recv": "Circle",
              "decl": "func (c Circle) Overlaps(o Circle) bool",
              "doc": "Overlaps reports whether c and o intersect (including tangent contact).\n",
              "file": "pkg/math2d/circle.go",
              "line": 23
            },
            {
              "name": "OverlapsRect",
              "anchor": "Circle.OverlapsRect",
              "recv": "Circle",
              "decl": "func (c Circle) OverlapsRect(r Rect) bool",
              "doc": "OverlapsRect reports whether c and non-empty rectangle r intersect\n(including boundary contact).\n",
              "file": "pkg/math2d/circle.go",
              "line": 35
            },
            {
              "name": "Translate",
              "anchor": "Circle.Translate",
              "recv": "Circle",
              "decl": "func (c Circle) Translate(v Vec2) Circle",
              "doc": "Translate returns c shifted by v.\n",
              "file": "pkg/math2d/circle.go",
              "line": 62
            }
          ]
        },
        {
          "name": "Rect",
          "anchor": "Rect",
          "decl": "type Rect struct {\n\tX, Y, W, H float32\n}",
          "doc": "Rect is an axis-aligned 2D rectangle given by its origin (X, Y) and size (W, H).\n\nA rectangle with W <= 0 or H <= 0 (or any NaN field) is empty.\nContainment uses half-open intervals [X, X+W) × [Y, Y+H), matching NSGo's core.Bounds.\n",
          "file": "pkg/math2d/rect.go",
          "line": 9,
          "members": [
            {
              "name": "X",
              "anchor": "Rect.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Rect.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "Rect.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "Rect.H",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FromBounds",
              "anchor": "FromBounds",
              "decl": "func FromBounds(b core.Bounds) Rect",
              "doc": "FromBounds converts an NSGo core.Bounds to a Rect losslessly.\n",
              "file": "pkg/math2d/rect.go",
              "line": 14
            },
            {
              "name": "FromCenter",
              "anchor": "FromCenter",
              "decl": "func FromCenter(center, size Vec2) Rect",
              "doc": "FromCenter returns a Rect centered at center with the given size.\n",
              "file": "pkg/math2d/rect.go",
              "line": 24
            },
            {
              "name": "FromMinMax",
              "anchor": "FromMinMax",
              "decl": "func FromMinMax(lo, hi Vec2) Rect",
              "doc": "FromMinMax returns a Rect spanning from lo to hi.\nIf lo has a component greater than hi, the resulting Rect has negative W or H;\ncall Normalized to flip negative extents.\n",
              "file": "pkg/math2d/rect.go",
              "line": 36
            }
          ],
          "methods": [
            {
              "name": "ApproxEqual",
              "anchor": "Rect.ApproxEqual",
              "recv": "Rect",
              "decl": "func (r Rect) ApproxEqual(o Rect, eps float32) bool",
              "doc": "ApproxEqual reports whether each field of r and o differs by at most eps.\nIt returns false if eps < 0 or any value is NaN.\n",
              "file": "pkg/math2d/rect.go",
              "line": 181
            },
            {
              "name": "Bounds",
              "anchor": "Rect.Bounds",
              "recv": "Rect",
              "decl": "func (r Rect) Bounds() core.Bounds",
              "doc": "Bounds converts r to an NSGo core.Bounds losslessly.\n",
              "file": "pkg/math2d/rect.go",
              "line": 46
            },
            {
              "name": "Center",
              "anchor": "Rect.Center",
              "recv": "Rect",
              "decl": "func (r Rect) Center() Vec2",
              "doc": "Center returns the midpoint of r.\n",
              "file": "pkg/math2d/rect.go",
              "line": 60
            },
            {
              "name": "ClampPoint",
              "anchor": "Rect.ClampPoint",
              "recv": "Rect",
              "decl": "func (r Rect) ClampPoint(p Vec2) Vec2",
              "doc": "ClampPoint clamps p to the closed region spanned by r.\nNegative W or H is normalized before clamping.\n",
              "file": "pkg/math2d/rect.go",
              "line": 167
            },
            {
              "name": "ClosestPoint",
              "anchor": "Rect.ClosestPoint",
              "recv": "Rect",
              "decl": "func (r Rect) ClosestPoint(p Vec2) Vec2",
              "doc": "ClosestPoint returns the point in the closed rectangle r closest to p.\nFor points inside r, it returns p; for points outside, it returns the nearest\npoint on r's perimeter.\n",
              "file": "pkg/math2d/rect.go",
              "line": 175
            },
            {
              "name": "Contains",
              "anchor": "Rect.Contains",
              "recv": "Rect",
              "decl": "func (r Rect) Contains(p Vec2) bool",
              "doc": "Contains reports whether p lies within r's half-open bounds [X, X+W) × [Y, Y+H).\n",
              "file": "pkg/math2d/rect.go",
              "line": 85
            },
            {
              "name": "ContainsRect",
              "anchor": "Rect.ContainsRect",
              "recv": "Rect",
              "decl": "func (r Rect) ContainsRect(o Rect) bool",
              "doc": "ContainsRect reports whether non-empty rectangle o lies completely inside non-empty r.\nIt returns false if either rectangle is empty.\n",
              "file": "pkg/math2d/rect.go",
              "line": 94
            },
            {
              "name": "Empty",
              "anchor": "Rect.Empty",
              "recv": "Rect",
              "decl": "func (r Rect) Empty() bool",
              "doc": "Empty reports whether r has zero or negative area or contains any NaN component.\n",
              "file": "pkg/math2d/rect.go",
              "line": 80
            },
            {
              "name": "Expand",
              "anchor": "Rect.Expand",
              "recv": "Rect",
              "decl": "func (r Rect) Expand(margin float32) Rect",
              "doc": "Expand returns r expanded outward by margin on all four sides (negative shrinks).\n",
              "file": "pkg/math2d/rect.go",
              "line": 146
            },
            {
              "name": "Intersection",
              "anchor": "Rect.Intersection",
              "recv": "Rect",
              "decl": "func (r Rect) Intersection(o Rect) (Rect, bool)",
              "doc": "Intersection returns the overlapping region of r and o, or (Rect{}, false) if they\ndo not overlap or either is empty.\n",
              "file": "pkg/math2d/rect.go",
              "line": 112
            },
            {
              "name": "Max",
              "anchor": "Rect.Max",
              "recv": "Rect",
              "decl": "func (r Rect) Max() Vec2",
              "doc": "Max returns the far corner (X+W, Y+H) of r.\n",
              "file": "pkg/math2d/rect.go",
              "line": 57
            },
            {
              "name": "Min",
              "anchor": "Rect.Min",
              "recv": "Rect",
              "decl": "func (r Rect) Min() Vec2",
              "doc": "Min returns the origin corner (X, Y) of r.\n",
              "file": "pkg/math2d/rect.go",
              "line": 54
            },
            {
              "name": "Normalized",
              "anchor": "Rect.Normalized",
              "recv": "Rect",
              "decl": "func (r Rect) Normalized() Rect",
              "doc": "Normalized returns an equivalent Rect with non-negative W and H, shifting X or Y\nwhen W or H is negative.\n",
              "file": "pkg/math2d/rect.go",
              "line": 67
            },
            {
              "name": "Overlaps",
              "anchor": "Rect.Overlaps",
              "recv": "Rect",
              "decl": "func (r Rect) Overlaps(o Rect) bool",
              "doc": "Overlaps reports whether r and o have a non-empty intersection.\nRectangles that touch only along an edge or corner do not overlap.\n",
              "file": "pkg/math2d/rect.go",
              "line": 103
            },
            {
              "name": "Size",
              "anchor": "Rect.Size",
              "recv": "Rect",
              "decl": "func (r Rect) Size() Vec2",
              "doc": "Size returns the dimensions (W, H) of r.\n",
              "file": "pkg/math2d/rect.go",
              "line": 63
            },
            {
              "name": "Translate",
              "anchor": "Rect.Translate",
              "recv": "Rect",
              "decl": "func (r Rect) Translate(v Vec2) Rect",
              "doc": "Translate returns r shifted by v.\n",
              "file": "pkg/math2d/rect.go",
              "line": 156
            },
            {
              "name": "Union",
              "anchor": "Rect.Union",
              "recv": "Rect",
              "decl": "func (r Rect) Union(o Rect) Rect",
              "doc": "Union returns the smallest Rect containing both r and o.\nAn empty rectangle acts as the identity element.\n",
              "file": "pkg/math2d/rect.go",
              "line": 128
            }
          ]
        },
        {
          "name": "Vec2",
          "anchor": "Vec2",
          "decl": "type Vec2 struct {\n\tX, Y float32\n}",
          "doc": "Vec2 is a 2D vector or point in float32 coordinates.\n",
          "file": "pkg/math2d/vec2.go",
          "line": 10,
          "members": [
            {
              "name": "X",
              "anchor": "Vec2.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Vec2.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FromAngle",
              "anchor": "FromAngle",
              "decl": "func FromAngle(rad float32) Vec2",
              "doc": "FromAngle returns the unit vector at rad radians from +X toward +Y.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 30
            },
            {
              "name": "FromPoint",
              "anchor": "FromPoint",
              "decl": "func FromPoint(p core.Point) Vec2",
              "doc": "FromPoint converts an NSGo core.Point to a Vec2 losslessly.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 36
            },
            {
              "name": "FromSize",
              "anchor": "FromSize",
              "decl": "func FromSize(s core.Size) Vec2",
              "doc": "FromSize converts an NSGo core.Size to a Vec2 losslessly.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 41
            },
            {
              "name": "One",
              "anchor": "One",
              "decl": "func One() Vec2",
              "doc": "One returns the vector (1, 1).\n",
              "file": "pkg/math2d/vec2.go",
              "line": 21
            },
            {
              "name": "UnitX",
              "anchor": "UnitX",
              "decl": "func UnitX() Vec2",
              "doc": "UnitX returns the positive X unit vector (1, 0).\n",
              "file": "pkg/math2d/vec2.go",
              "line": 24
            },
            {
              "name": "UnitY",
              "anchor": "UnitY",
              "decl": "func UnitY() Vec2",
              "doc": "UnitY returns the positive Y unit vector (0, 1).\n",
              "file": "pkg/math2d/vec2.go",
              "line": 27
            },
            {
              "name": "V2",
              "anchor": "V2",
              "decl": "func V2(x, y float32) Vec2",
              "doc": "V2 returns Vec2{X: x, Y: y}.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 15
            },
            {
              "name": "Zero",
              "anchor": "Zero",
              "decl": "func Zero() Vec2",
              "doc": "Zero returns the zero vector (0, 0).\n",
              "file": "pkg/math2d/vec2.go",
              "line": 18
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Vec2.Add",
              "recv": "Vec2",
              "decl": "func (v Vec2) Add(o Vec2) Vec2",
              "doc": "Add returns v + o.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 56
            },
            {
              "name": "Angle",
              "anchor": "Vec2.Angle",
              "recv": "Vec2",
              "decl": "func (v Vec2) Angle() float32",
              "doc": "Angle returns the angle of v in radians in [-π, π] from +X toward +Y.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 179
            },
            {
              "name": "ApproxEqual",
              "anchor": "Vec2.ApproxEqual",
              "recv": "Vec2",
              "decl": "func (v Vec2) ApproxEqual(o Vec2, eps float32) bool",
              "doc": "ApproxEqual reports whether each component of v and o differs by at most eps.\nIt returns false if eps < 0 or any value is NaN.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 242
            },
            {
              "name": "Clamp",
              "anchor": "Vec2.Clamp",
              "recv": "Vec2",
              "decl": "func (v Vec2) Clamp(lo, hi Vec2) Vec2",
              "doc": "Clamp clamps each component of v to [lo, hi].\n",
              "file": "pkg/math2d/vec2.go",
              "line": 233
            },
            {
              "name": "ClampLen",
              "anchor": "Vec2.ClampLen",
              "recv": "Vec2",
              "decl": "func (v Vec2) ClampLen(maxLen float32) Vec2",
              "doc": "ClampLen returns v scaled down so its length does not exceed maxLen.\nIf maxLen <= 0 or NaN, or v has NaN or infinite length, it returns the zero vector.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 129
            },
            {
              "name": "Cross",
              "anchor": "Vec2.Cross",
              "recv": "Vec2",
              "decl": "func (v Vec2) Cross(o Vec2) float32",
              "doc": "Cross returns the 2D scalar cross product (v.X*o.Y - v.Y*o.X).\n",
              "file": "pkg/math2d/vec2.go",
              "line": 91
            },
            {
              "name": "Dist",
              "anchor": "Vec2.Dist",
              "recv": "Vec2",
              "decl": "func (v Vec2) Dist(o Vec2) float32",
              "doc": "Dist returns the Euclidean distance between v and o.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 107
            },
            {
              "name": "DistSq",
              "anchor": "Vec2.DistSq",
              "recv": "Vec2",
              "decl": "func (v Vec2) DistSq(o Vec2) float32",
              "doc": "DistSq returns the squared distance between v and o.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 112
            },
            {
              "name": "Div",
              "anchor": "Vec2.Div",
              "recv": "Vec2",
              "decl": "func (v Vec2) Div(o Vec2) Vec2",
              "doc": "Div returns the component-wise quotient of v divided by o.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 76
            },
            {
              "name": "Dot",
              "anchor": "Vec2.Dot",
              "recv": "Vec2",
              "decl": "func (v Vec2) Dot(o Vec2) float32",
              "doc": "Dot returns the dot product of v and o.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 86
            },
            {
              "name": "Len",
              "anchor": "Vec2.Len",
              "recv": "Vec2",
              "decl": "func (v Vec2) Len() float32",
              "doc": "Len returns the Euclidean length of v.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 96
            },
            {
              "name": "LenSq",
              "anchor": "Vec2.LenSq",
              "recv": "Vec2",
              "decl": "func (v Vec2) LenSq() float32",
              "doc": "LenSq returns the squared length of v.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 102
            },
            {
              "name": "Lerp",
              "anchor": "Vec2.Lerp",
              "recv": "Vec2",
              "decl": "func (v Vec2) Lerp(o Vec2, t float32) Vec2",
              "doc": "Lerp linearly interpolates between v (at t=0) and o (at t=1).\n",
              "file": "pkg/math2d/vec2.go",
              "line": 146
            },
            {
              "name": "Max",
              "anchor": "Vec2.Max",
              "recv": "Vec2",
              "decl": "func (v Vec2) Max(o Vec2) Vec2",
              "doc": "Max returns the component-wise maximum of v and o.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 228
            },
            {
              "name": "Min",
              "anchor": "Vec2.Min",
              "recv": "Vec2",
              "decl": "func (v Vec2) Min(o Vec2) Vec2",
              "doc": "Min returns the component-wise minimum of v and o.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 223
            },
            {
              "name": "MoveTowards",
              "anchor": "Vec2.MoveTowards",
              "recv": "Vec2",
              "decl": "func (v Vec2) MoveTowards(target Vec2, maxDelta float32) Vec2",
              "doc": "MoveTowards moves v toward target by at most maxDelta without overshooting.\nIf maxDelta <= 0 or NaN, or the distance is NaN, it returns v unchanged.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 155
            },
            {
              "name": "Mul",
              "anchor": "Vec2.Mul",
              "recv": "Vec2",
              "decl": "func (v Vec2) Mul(o Vec2) Vec2",
              "doc": "Mul returns the component-wise product of v and o.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 71
            },
            {
              "name": "Neg",
              "anchor": "Vec2.Neg",
              "recv": "Vec2",
              "decl": "func (v Vec2) Neg() Vec2",
              "doc": "Neg returns -v.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 81
            },
            {
              "name": "Normalize",
              "anchor": "Vec2.Normalize",
              "recv": "Vec2",
              "decl": "func (v Vec2) Normalize() Vec2",
              "doc": "Normalize returns a unit vector in the direction of v.\nIf v has zero length, NaN, or infinite length, it returns the zero vector.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 118
            },
            {
              "name": "Perp",
              "anchor": "Vec2.Perp",
              "recv": "Vec2",
              "decl": "func (v Vec2) Perp() Vec2",
              "doc": "Perp returns v rotated by +π/2 radians: (-v.Y, v.X).\n",
              "file": "pkg/math2d/vec2.go",
              "line": 197
            },
            {
              "name": "Point",
              "anchor": "Vec2.Point",
              "recv": "Vec2",
              "decl": "func (v Vec2) Point() core.Point",
              "doc": "Point converts v to an NSGo core.Point losslessly.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 46
            },
            {
              "name": "Project",
              "anchor": "Vec2.Project",
              "recv": "Vec2",
              "decl": "func (v Vec2) Project(onto Vec2) Vec2",
              "doc": "Project returns the orthogonal projection of v onto onto.\nIf onto has zero length, NaN, or infinite length, it returns the zero vector.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 209
            },
            {
              "name": "Reflect",
              "anchor": "Vec2.Reflect",
              "recv": "Vec2",
              "decl": "func (v Vec2) Reflect(normal Vec2) Vec2",
              "doc": "Reflect returns v reflected across a surface with unit normal n.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 202
            },
            {
              "name": "Rotate",
              "anchor": "Vec2.Rotate",
              "recv": "Vec2",
              "decl": "func (v Vec2) Rotate(rad float32) Vec2",
              "doc": "Rotate returns v rotated by rad radians from +X toward +Y.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 184
            },
            {
              "name": "Scale",
              "anchor": "Vec2.Scale",
              "recv": "Vec2",
              "decl": "func (v Vec2) Scale(s float32) Vec2",
              "doc": "Scale returns v multiplied by scalar s.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 66
            },
            {
              "name": "Size",
              "anchor": "Vec2.Size",
              "recv": "Vec2",
              "decl": "func (v Vec2) Size() core.Size",
              "doc": "Size converts v to an NSGo core.Size losslessly.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 51
            },
            {
              "name": "Sub",
              "anchor": "Vec2.Sub",
              "recv": "Vec2",
              "decl": "func (v Vec2) Sub(o Vec2) Vec2",
              "doc": "Sub returns v - o.\n",
              "file": "pkg/math2d/vec2.go",
              "line": 61
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/math3d",
      "name": "math3d",
      "dir": "pkg/math3d",
      "page": "pkg/math3d",
      "synopsis": "Package math3d provides 3D linear algebra, rotations, transforms, and spatial primitives for NSGo 3D games using pure Go float32 types with zero external dependencies.",
      "doc": "Package math3d provides 3D linear algebra, rotations, transforms, and spatial\nprimitives for NSGo 3D games using pure Go float32 types with zero external\ndependencies.\n\n# Conventions\n\nEvery type and function in this package follows one consistent set of\nconventions aligned with glTF 2.0, WebGPU, and Metal so matrices and vectors\ncan be uploaded directly to GPU uniform buffers without transposing or\nflipping handedness:\n\n  - Coordinate system: Right-handed, Y-up.\n    +X points right (Vec3Right), +Y points up (Vec3Up), and -Z points forward\n    (Vec3Forward). A default camera at the origin looks down -Z; +Z points\n    toward the viewer. Cross products obey the right-hand rule:\n    X × Y = Z, Y × Z = X, Z × X = Y.\n\n  - Angles and rotations: All angles are in radians (use DegToRad and\n    RadToDeg to convert). Positive rotation angles are counter-clockwise when\n    looking from the positive tip of the rotation axis toward the origin\n    (right-hand thumb rule).\n\n  - Matrix layout: Mat3 ([9]float32) and Mat4 ([16]float32) are stored in\n    column-major order: column c, row r lives at index c*3+r (Mat3) or\n    c*4+r (Mat4). This matches WGSL mat4x4<f32>, Metal simd::float4x4, GLSL\n    mat4, and glTF 2.0 node matrices directly.\n\n  - Vector multiplication and composition: Vectors are treated as column\n    vectors and multiplied on the right (M * v). Matrix multiplication\n    composes right-to-left: (A.Mul(B)).MulVec4(v) == A.MulVec4(B.MulVec4(v)).\n    Model transforms use TRS order: M = T * R * S (scale, then rotate, then\n    translate). The full clip-space transform is P * V * M.\n\n  - Clip-space (NDC) depth range: Perspective and Ortho default to WebGPU /\n    Metal / Vulkan zero-to-one depth [0, 1] (also available explicitly as\n    PerspectiveZO and OrthoZO), mapping view-space z = -near to NDC z = 0\n    and z = -far to NDC z = 1. OpenGL / WebGL negative-one-to-one depth\n    [-1, 1] is available via PerspectiveNO and OrthoNO.\n\n  - Quaternions: Quat stores (X, Y, Z, W) matching glTF 2.0's [x, y, z, w]\n    order, with identity QuatIdentity() = {0, 0, 0, 1}. Unit quaternions\n    represent right-handed rotations; q and -q represent the same rotation.\n    Multiplication composes right-to-left, matching Mat4:\n    (q1.Mul(q2)).RotateVec3(v) == q1.RotateVec3(q2.RotateVec3(v)).\n    QuatFromEuler and ToEuler use intrinsic YXZ (yaw-pitch-roll:\n    Ry(yaw) * Rx(pitch) * Rz(roll)); QuatFromEulerXYZ and ToEulerXYZ use\n    intrinsic XYZ (Rx(x) * Ry(y) * Rz(z)).\n\n  - Frustums and planes: Plane represents {p | Normal·p + D = 0}.\n    FrustumFromMat4 (and FrustumFromMat4ZO) extracts six inward-pointing\n    normalized planes via Gribb-Hartmann for [0, 1] depth projections;\n    FrustumFromMat4NO extracts planes for [-1, 1] depth projections.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FrustumLeft",
              "anchor": "FrustumLeft"
            },
            {
              "name": "FrustumRight",
              "anchor": "FrustumRight"
            },
            {
              "name": "FrustumBottom",
              "anchor": "FrustumBottom"
            },
            {
              "name": "FrustumTop",
              "anchor": "FrustumTop"
            },
            {
              "name": "FrustumNear",
              "anchor": "FrustumNear"
            },
            {
              "name": "FrustumFar",
              "anchor": "FrustumFar"
            }
          ],
          "decl": "const (\n\tFrustumLeft = iota\n\tFrustumRight\n\tFrustumBottom\n\tFrustumTop\n\tFrustumNear\n\tFrustumFar\n)",
          "doc": "Frustum plane indices.\n",
          "file": "pkg/math3d/bounds.go",
          "line": 346
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "ApproxEqual",
          "anchor": "ApproxEqual",
          "decl": "func ApproxEqual(a, b, eps float32) bool",
          "doc": "ApproxEqual reports whether |a - b| <= eps.\n",
          "file": "pkg/math3d/vec.go",
          "line": 28
        },
        {
          "name": "Clamp",
          "anchor": "Clamp",
          "decl": "func Clamp(v, lo, hi float32) float32",
          "doc": "Clamp restricts v to the closed interval [lo, hi].\n",
          "file": "pkg/math3d/vec.go",
          "line": 14
        },
        {
          "name": "DegToRad",
          "anchor": "DegToRad",
          "decl": "func DegToRad(deg float32) float32",
          "doc": "DegToRad converts degrees to radians.\n",
          "file": "pkg/math3d/vec.go",
          "line": 8
        },
        {
          "name": "Lerp",
          "anchor": "Lerp",
          "decl": "func Lerp(a, b, t float32) float32",
          "doc": "Lerp linearly interpolates between a (at t=0) and b (at t=1).\n",
          "file": "pkg/math3d/vec.go",
          "line": 25
        },
        {
          "name": "RadToDeg",
          "anchor": "RadToDeg",
          "decl": "func RadToDeg(rad float32) float32",
          "doc": "RadToDeg converts radians to degrees.\n",
          "file": "pkg/math3d/vec.go",
          "line": 11
        }
      ],
      "types": [
        {
          "name": "AABB",
          "anchor": "AABB",
          "decl": "type AABB struct {\n\tMin, Max Vec3\n}",
          "doc": "AABB is an axis-aligned bounding box defined by its minimum and maximum corners.\nAn AABB is empty when Min.X > Max.X, Min.Y > Max.Y, or Min.Z > Max.Z.\nUse AABBEmpty to construct an identity box for incremental expansion.\n",
          "file": "pkg/math3d/bounds.go",
          "line": 8,
          "members": [
            {
              "name": "Min",
              "anchor": "AABB.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "AABB.Max",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "AABBEmpty",
              "anchor": "AABBEmpty",
              "decl": "func AABBEmpty() AABB",
              "doc": "AABBEmpty returns an empty AABB with Min at +Inf and Max at -Inf, ready to\naccumulate points with ExpandPoint or boxes with Union.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 14
            }
          ],
          "methods": [
            {
              "name": "Center",
              "anchor": "AABB.Center",
              "recv": "AABB",
              "decl": "func (b AABB) Center() Vec3",
              "doc": "Center returns the center point of b, or Vec3Zero if b is empty.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 29
            },
            {
              "name": "Contains",
              "anchor": "AABB.Contains",
              "recv": "AABB",
              "decl": "func (b AABB) Contains(p Vec3) bool",
              "doc": "Contains reports whether p lies inside or on the boundary of b.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 78
            },
            {
              "name": "Empty",
              "anchor": "AABB.Empty",
              "recv": "AABB",
              "decl": "func (b AABB) Empty() bool",
              "doc": "Empty reports whether b represents an empty volume (any Min component exceeds Max).\n",
              "file": "pkg/math3d/bounds.go",
              "line": 24
            },
            {
              "name": "ExpandPoint",
              "anchor": "AABB.ExpandPoint",
              "recv": "AABB",
              "decl": "func (b AABB) ExpandPoint(p Vec3) AABB",
              "doc": "ExpandPoint returns the smallest AABB containing both b and point p.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 53
            },
            {
              "name": "HalfExtents",
              "anchor": "AABB.HalfExtents",
              "recv": "AABB",
              "decl": "func (b AABB) HalfExtents() Vec3",
              "doc": "HalfExtents returns half the size of b along each axis, or Vec3Zero if b is empty.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 45
            },
            {
              "name": "Intersects",
              "anchor": "AABB.Intersects",
              "recv": "AABB",
              "decl": "func (b AABB) Intersects(other AABB) bool",
              "doc": "Intersects reports whether b overlaps or touches other.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 88
            },
            {
              "name": "IsFinite",
              "anchor": "AABB.IsFinite",
              "recv": "AABB",
              "decl": "func (a AABB) IsFinite() bool",
              "doc": "IsFinite reports whether both corners are finite. A NaN bound is not empty\n(its comparisons are false) and would otherwise poison spatial indexes.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 476
            },
            {
              "name": "Size",
              "anchor": "AABB.Size",
              "recv": "AABB",
              "decl": "func (b AABB) Size() Vec3",
              "doc": "Size returns the full width, height, and depth of b (Max - Min), or Vec3Zero if b is empty.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 37
            },
            {
              "name": "Transform",
              "anchor": "AABB.Transform",
              "recv": "AABB",
              "decl": "func (b AABB) Transform(m Mat4) AABB",
              "doc": "Transform returns the tight axis-aligned bounding box enclosing b after\ntransforming by m. For affine matrices this uses Arvo's exact O(1) method;\nfor projective matrices all 8 corners are transformed.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 100
            },
            {
              "name": "Union",
              "anchor": "AABB.Union",
              "recv": "AABB",
              "decl": "func (b AABB) Union(other AABB) AABB",
              "doc": "Union returns the smallest AABB containing both b and other.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 64
            }
          ]
        },
        {
          "name": "CatmullRom3D",
          "anchor": "CatmullRom3D",
          "decl": "type CatmullRom3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CatmullRom3D is a multi-segment interpolating 3D Catmull-Rom spline with\nconfigurable Barry-Goldman knot parameterization (alpha in [0, 1]).\n\nParameter t in [0, 1] maps uniformly across segments so control point i lies at\nt = float32(i) / float32(SegmentCount()).\n",
          "file": "pkg/math3d/spline.go",
          "line": 1082,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCatmullRom3D",
              "anchor": "NewCatmullRom3D",
              "decl": "func NewCatmullRom3D(points []Vec3, closed bool) *CatmullRom3D",
              "doc": "NewCatmullRom3D constructs a centripetal (alpha = 0.5) 3D Catmull-Rom spline\ninterpolating all points. Centripetal parameterization prevents cusps and\nself-intersections within segments.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1090
            },
            {
              "name": "NewCatmullRom3DAlpha",
              "anchor": "NewCatmullRom3DAlpha",
              "decl": "func NewCatmullRom3DAlpha(points []Vec3, alpha float32, closed bool) *CatmullRom3D",
              "doc": "NewCatmullRom3DAlpha constructs a 3D Catmull-Rom spline interpolating all points\nwith knot parameterization exponent alpha clamped to [0, 1]:\n  - alpha = 0.0: uniform\n  - alpha = 0.5: centripetal (default)\n  - alpha = 1.0: chordal\n\nOpen splines synthesize reflected ghost endpoints so the spline starts at\npoints[0] and ends at points[len(points)-1]. Closed splines wrap seamlessly\nthrough all points. If len(points) < 2, an empty zero-length spline is returned.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1103
            }
          ],
          "methods": [
            {
              "name": "Alpha",
              "anchor": "CatmullRom3D.Alpha",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) Alpha() float32",
              "doc": "Alpha returns the knot parameterization exponent in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 1204
            },
            {
              "name": "Closed",
              "anchor": "CatmullRom3D.Closed",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) Closed() bool",
              "doc": "Closed reports whether the spline forms a closed loop.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1293
            },
            {
              "name": "Derivative",
              "anchor": "CatmullRom3D.Derivative",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) Derivative(t float32) Vec3",
              "doc": "Derivative evaluates the unnormalized first derivative dP/dt at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 1228
            },
            {
              "name": "DistanceToT",
              "anchor": "CatmullRom3D.DistanceToT",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) DistanceToT(dist float32) float32",
              "doc": "DistanceToT maps an arc-length distance to parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 1252
            },
            {
              "name": "FrameAt",
              "anchor": "CatmullRom3D.FrameAt",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) FrameAt(t float32, worldUp Vec3) CurveFrame",
              "doc": "FrameAt evaluates the Rotation-Minimizing Frame at parameter t in [0, 1],\ninitialized with worldUp at t=0.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1277
            },
            {
              "name": "FrameAtDistance",
              "anchor": "CatmullRom3D.FrameAtDistance",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) FrameAtDistance(dist float32) CurveFrame",
              "doc": "FrameAtDistance evaluates the Rotation-Minimizing Frame at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1285
            },
            {
              "name": "Length",
              "anchor": "CatmullRom3D.Length",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) Length() float32",
              "doc": "Length returns the total arc length of the spline.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1244
            },
            {
              "name": "Point",
              "anchor": "CatmullRom3D.Point",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) Point(t float32) Vec3",
              "doc": "Point evaluates the spline position at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 1220
            },
            {
              "name": "PointAtDistance",
              "anchor": "CatmullRom3D.PointAtDistance",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) PointAtDistance(dist float32) Vec3",
              "doc": "PointAtDistance evaluates the spline position at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1260
            },
            {
              "name": "SegmentCount",
              "anchor": "CatmullRom3D.SegmentCount",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) SegmentCount() int",
              "doc": "SegmentCount returns the number of cubic segments in the spline.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1212
            },
            {
              "name": "Tangent",
              "anchor": "CatmullRom3D.Tangent",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) Tangent(t float32) Vec3",
              "doc": "Tangent evaluates the unit tangent vector at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 1236
            },
            {
              "name": "TangentAtDistance",
              "anchor": "CatmullRom3D.TangentAtDistance",
              "recv": "*CatmullRom3D",
              "decl": "func (c *CatmullRom3D) TangentAtDistance(dist float32) Vec3",
              "doc": "TangentAtDistance evaluates the unit tangent vector at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1268
            }
          ]
        },
        {
          "name": "CubicBezier3D",
          "anchor": "CubicBezier3D",
          "decl": "type CubicBezier3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CubicBezier3D is a 3D cubic Bézier curve defined by four control points.\n",
          "file": "pkg/math3d/spline.go",
          "line": 760,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCubicBezier3D",
              "anchor": "NewCubicBezier3D",
              "decl": "func NewCubicBezier3D(p0, p1, p2, p3 Vec3) *CubicBezier3D",
              "doc": "NewCubicBezier3D constructs a 3D cubic Bézier curve from p0 to p3 with control\nhandles p1 and p2, precomputing its Gauss-Legendre arc-length LUT and\nRotation-Minimizing Frames.\n",
              "file": "pkg/math3d/spline.go",
              "line": 767
            }
          ],
          "methods": [
            {
              "name": "Closed",
              "anchor": "CubicBezier3D.Closed",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) Closed() bool",
              "doc": "Closed reports false because a single cubic Bézier segment is open.\n",
              "file": "pkg/math3d/spline.go",
              "line": 846
            },
            {
              "name": "Derivative",
              "anchor": "CubicBezier3D.Derivative",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) Derivative(t float32) Vec3",
              "doc": "Derivative evaluates the unnormalized first derivative dP/dt at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 781
            },
            {
              "name": "DistanceToT",
              "anchor": "CubicBezier3D.DistanceToT",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) DistanceToT(dist float32) float32",
              "doc": "DistanceToT maps an arc-length distance in [0, Length()] to parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 805
            },
            {
              "name": "FrameAt",
              "anchor": "CubicBezier3D.FrameAt",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) FrameAt(t float32, worldUp Vec3) CurveFrame",
              "doc": "FrameAt evaluates the Rotation-Minimizing Frame at parameter t in [0, 1],\ninitialized with worldUp at t=0.\n",
              "file": "pkg/math3d/spline.go",
              "line": 830
            },
            {
              "name": "FrameAtDistance",
              "anchor": "CubicBezier3D.FrameAtDistance",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) FrameAtDistance(dist float32) CurveFrame",
              "doc": "FrameAtDistance evaluates the Rotation-Minimizing Frame at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 838
            },
            {
              "name": "Length",
              "anchor": "CubicBezier3D.Length",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) Length() float32",
              "doc": "Length returns the total arc length of the curve.\n",
              "file": "pkg/math3d/spline.go",
              "line": 797
            },
            {
              "name": "Point",
              "anchor": "CubicBezier3D.Point",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) Point(t float32) Vec3",
              "doc": "Point evaluates the curve position at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 773
            },
            {
              "name": "PointAtDistance",
              "anchor": "CubicBezier3D.PointAtDistance",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) PointAtDistance(dist float32) Vec3",
              "doc": "PointAtDistance evaluates the curve position at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 813
            },
            {
              "name": "Tangent",
              "anchor": "CubicBezier3D.Tangent",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) Tangent(t float32) Vec3",
              "doc": "Tangent evaluates the unit tangent vector at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 789
            },
            {
              "name": "TangentAtDistance",
              "anchor": "CubicBezier3D.TangentAtDistance",
              "recv": "*CubicBezier3D",
              "decl": "func (c *CubicBezier3D) TangentAtDistance(dist float32) Vec3",
              "doc": "TangentAtDistance evaluates the unit tangent vector at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 821
            }
          ]
        },
        {
          "name": "CubicHermite3D",
          "anchor": "CubicHermite3D",
          "decl": "type CubicHermite3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CubicHermite3D is a single-segment 3D cubic Hermite curve defined by start and\nend positions and their parametric endpoint tangents.\n",
          "file": "pkg/math3d/spline.go",
          "line": 850,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCubicHermite3D",
              "anchor": "NewCubicHermite3D",
              "decl": "func NewCubicHermite3D(p0, m0, p1, m1 Vec3) *CubicHermite3D",
              "doc": "NewCubicHermite3D constructs a 3D cubic Hermite curve starting at p0 with\nderivative m0 and ending at p1 with derivative m1, precomputing its\nGauss-Legendre arc-length LUT and Rotation-Minimizing Frames.\n",
              "file": "pkg/math3d/spline.go",
              "line": 857
            }
          ],
          "methods": [
            {
              "name": "Closed",
              "anchor": "CubicHermite3D.Closed",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) Closed() bool",
              "doc": "Closed reports false because a single cubic Hermite segment is open.\n",
              "file": "pkg/math3d/spline.go",
              "line": 937
            },
            {
              "name": "Derivative",
              "anchor": "CubicHermite3D.Derivative",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) Derivative(t float32) Vec3",
              "doc": "Derivative evaluates the unnormalized first derivative dP/dt at parameter t in [0, 1].\nAt t=0 this equals m0; at t=1 this equals m1.\n",
              "file": "pkg/math3d/spline.go",
              "line": 872
            },
            {
              "name": "DistanceToT",
              "anchor": "CubicHermite3D.DistanceToT",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) DistanceToT(dist float32) float32",
              "doc": "DistanceToT maps an arc-length distance in [0, Length()] to parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 896
            },
            {
              "name": "FrameAt",
              "anchor": "CubicHermite3D.FrameAt",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) FrameAt(t float32, worldUp Vec3) CurveFrame",
              "doc": "FrameAt evaluates the Rotation-Minimizing Frame at parameter t in [0, 1],\ninitialized with worldUp at t=0.\n",
              "file": "pkg/math3d/spline.go",
              "line": 921
            },
            {
              "name": "FrameAtDistance",
              "anchor": "CubicHermite3D.FrameAtDistance",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) FrameAtDistance(dist float32) CurveFrame",
              "doc": "FrameAtDistance evaluates the Rotation-Minimizing Frame at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 929
            },
            {
              "name": "Length",
              "anchor": "CubicHermite3D.Length",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) Length() float32",
              "doc": "Length returns the total arc length of the curve.\n",
              "file": "pkg/math3d/spline.go",
              "line": 888
            },
            {
              "name": "Point",
              "anchor": "CubicHermite3D.Point",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) Point(t float32) Vec3",
              "doc": "Point evaluates the curve position at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 863
            },
            {
              "name": "PointAtDistance",
              "anchor": "CubicHermite3D.PointAtDistance",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) PointAtDistance(dist float32) Vec3",
              "doc": "PointAtDistance evaluates the curve position at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 904
            },
            {
              "name": "Tangent",
              "anchor": "CubicHermite3D.Tangent",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) Tangent(t float32) Vec3",
              "doc": "Tangent evaluates the unit tangent vector at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 880
            },
            {
              "name": "TangentAtDistance",
              "anchor": "CubicHermite3D.TangentAtDistance",
              "recv": "*CubicHermite3D",
              "decl": "func (c *CubicHermite3D) TangentAtDistance(dist float32) Vec3",
              "doc": "TangentAtDistance evaluates the unit tangent vector at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 912
            }
          ]
        },
        {
          "name": "Curve3D",
          "anchor": "Curve3D",
          "decl": "type Curve3D interface {\n\t// Point evaluates the 3D position at parameter t in [0, 1].\n\tPoint(t float32) Vec3\n\t// Tangent evaluates the unit forward tangent vector at parameter t in [0, 1].\n\tTangent(t float32) Vec3\n\t// Length returns the total arc length of the curve.\n\tLength() float32\n\t// DistanceToT maps an arc-length distance in [0, Length()] to parameter t in [0, 1].\n\tDistanceToT(dist float32) float32\n\t// PointAtDistance evaluates the 3D position at arc-length distance dist.\n\tPointAtDistance(dist float32) Vec3\n\t// TangentAtDistance evaluates the unit forward tangent at arc-length distance dist.\n\tTangentAtDistance(dist float32) Vec3\n\t// FrameAt evaluates a smooth Rotation-Minimizing Frame at parameter t in [0, 1],\n\t// initialized at t=0 with worldUp (or Vec3Up if worldUp is zero).\n\tFrameAt(t float32, worldUp Vec3) CurveFrame\n\t// FrameAtDistance evaluates the Rotation-Minimizing Frame at arc-length distance dist\n\t// using default world up (Vec3Up).\n\tFrameAtDistance(dist float32) CurveFrame\n\t// Closed reports whether the curve forms a closed loop.\n\tClosed() bool\n}",
          "doc": "Curve3D is a parameterized 3D curve supporting arc-length reparameterization\nand smooth Rotation-Minimizing Frames (RMF).\n\nParameter t lies in [0, 1]. Open curves clamp out-of-range t and dist values;\nclosed curves wrap out-of-range values around the loop.\n",
          "file": "pkg/math3d/spline.go",
          "line": 53,
          "members": [
            {
              "name": "Point",
              "anchor": "Curve3D.Point",
              "kind": "method",
              "doc": "Point evaluates the 3D position at parameter t in [0, 1]."
            },
            {
              "name": "Tangent",
              "anchor": "Curve3D.Tangent",
              "kind": "method",
              "doc": "Tangent evaluates the unit forward tangent vector at parameter t in [0, 1]."
            },
            {
              "name": "Length",
              "anchor": "Curve3D.Length",
              "kind": "method",
              "doc": "Length returns the total arc length of the curve."
            },
            {
              "name": "DistanceToT",
              "anchor": "Curve3D.DistanceToT",
              "kind": "method",
              "doc": "DistanceToT maps an arc-length distance in [0, Length()] to parameter t in [0, 1]."
            },
            {
              "name": "PointAtDistance",
              "anchor": "Curve3D.PointAtDistance",
              "kind": "method",
              "doc": "PointAtDistance evaluates the 3D position at arc-length distance dist."
            },
            {
              "name": "TangentAtDistance",
              "anchor": "Curve3D.TangentAtDistance",
              "kind": "method",
              "doc": "TangentAtDistance evaluates the unit forward tangent at arc-length distance dist."
            },
            {
              "name": "FrameAt",
              "anchor": "Curve3D.FrameAt",
              "kind": "method",
              "doc": "FrameAt evaluates a smooth Rotation-Minimizing Frame at parameter t in [0, 1],\ninitialized at t=0 with worldUp (or Vec3Up if worldUp is zero)."
            },
            {
              "name": "FrameAtDistance",
              "anchor": "Curve3D.FrameAtDistance",
              "kind": "method",
              "doc": "FrameAtDistance evaluates the Rotation-Minimizing Frame at arc-length distance dist\nusing default world up (Vec3Up)."
            },
            {
              "name": "Closed",
              "anchor": "Curve3D.Closed",
              "kind": "method",
              "doc": "Closed reports whether the curve forms a closed loop."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CurveFrame",
          "anchor": "CurveFrame",
          "decl": "type CurveFrame struct {\n\tPosition Vec3\n\tTangent  Vec3\n\tUp       Vec3\n\tRight    Vec3\n}",
          "doc": "CurveFrame is an orthonormal right-handed reference frame attached to a 3D curve.\n\nFollowing math3d conventions, Tangent points forward along the curve (local -Z),\nUp points along local +Y, and Right points along local +X (Right = Tangent × Up).\nThe basis matrix columns [Right, Up, -Tangent] form a proper right-handed rotation\nwith determinant +1.\n",
          "file": "pkg/math3d/spline.go",
          "line": 11,
          "members": [
            {
              "name": "Position",
              "anchor": "CurveFrame.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tangent",
              "anchor": "CurveFrame.Tangent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Up",
              "anchor": "CurveFrame.Up",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Right",
              "anchor": "CurveFrame.Right",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Mat4",
              "anchor": "CurveFrame.Mat4",
              "recv": "CurveFrame",
              "decl": "func (f CurveFrame) Mat4() Mat4",
              "doc": "Mat4 returns the column-major 4x4 rigid transform matrix for the frame,\nequivalent to f.Transform().ToMat4().\n",
              "file": "pkg/math3d/spline.go",
              "line": 39
            },
            {
              "name": "Rotation",
              "anchor": "CurveFrame.Rotation",
              "recv": "CurveFrame",
              "decl": "func (f CurveFrame) Rotation() Quat",
              "doc": "Rotation returns the unit quaternion orienting local +X to Right, local +Y to Up,\nand local -Z (Vec3Forward) to Tangent.\n",
              "file": "pkg/math3d/spline.go",
              "line": 20
            },
            {
              "name": "Transform",
              "anchor": "CurveFrame.Transform",
              "recv": "CurveFrame",
              "decl": "func (f CurveFrame) Transform() Transform",
              "doc": "Transform returns the rigid TRS transform placing an object at Position oriented\nalong the frame (with unit scale).\n",
              "file": "pkg/math3d/spline.go",
              "line": 29
            }
          ]
        },
        {
          "name": "Frustum",
          "anchor": "Frustum",
          "decl": "type Frustum struct {\n\tPlanes [6]Plane\n}",
          "doc": "Frustum is a 6-plane view volume with normalized inward-pointing normals.\nA point lies inside the frustum when SignedDist >= 0 for all six planes.\n",
          "file": "pkg/math3d/bounds.go",
          "line": 357,
          "members": [
            {
              "name": "Planes",
              "anchor": "Frustum.Planes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FrustumFromMat4",
              "anchor": "FrustumFromMat4",
              "decl": "func FrustumFromMat4(vp Mat4) Frustum",
              "doc": "FrustumFromMat4 extracts the six normalized inward-pointing frustum planes\nfrom a view-projection matrix vp using the Gribb-Hartmann method, assuming\nWebGPU/Metal [0, 1] NDC depth (Perspective / PerspectiveZO / Ortho / OrthoZO).\n\nThis is equivalent to FrustumFromMat4ZO. Use FrustumFromMat4NO for OpenGL\n[-1, 1] depth projections.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 367
            },
            {
              "name": "FrustumFromMat4NO",
              "anchor": "FrustumFromMat4NO",
              "decl": "func FrustumFromMat4NO(vp Mat4) Frustum",
              "doc": "FrustumFromMat4NO extracts frustum planes from a view-projection matrix using\nnegative-one-to-one [-1, 1] NDC depth (PerspectiveNO / OrthoNO).\n",
              "file": "pkg/math3d/bounds.go",
              "line": 392
            },
            {
              "name": "FrustumFromMat4ZO",
              "anchor": "FrustumFromMat4ZO",
              "decl": "func FrustumFromMat4ZO(vp Mat4) Frustum",
              "doc": "FrustumFromMat4ZO extracts frustum planes from a view-projection matrix using\nzero-to-one [0, 1] NDC depth.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 373
            }
          ],
          "methods": [
            {
              "name": "ContainsPoint",
              "anchor": "Frustum.ContainsPoint",
              "recv": "Frustum",
              "decl": "func (f Frustum) ContainsPoint(p Vec3) bool",
              "doc": "ContainsPoint reports whether p lies inside or on the boundary of f.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 414
            },
            {
              "name": "IntersectsAABB",
              "anchor": "Frustum.IntersectsAABB",
              "recv": "Frustum",
              "decl": "func (f Frustum) IntersectsAABB(b AABB) bool",
              "doc": "IntersectsAABB reports whether box b lies inside or intersects f using the\npositive-vertex (p-vertex) test against each frustum plane.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 443
            },
            {
              "name": "IntersectsSphere",
              "anchor": "Frustum.IntersectsSphere",
              "recv": "Frustum",
              "decl": "func (f Frustum) IntersectsSphere(s Sphere) bool",
              "doc": "IntersectsSphere reports whether sphere s lies inside or intersects f.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 429
            }
          ]
        },
        {
          "name": "HermiteSpline3D",
          "anchor": "HermiteSpline3D",
          "decl": "type HermiteSpline3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "HermiteSpline3D is a C1-continuous multi-segment 3D cubic Hermite spline.\n",
          "file": "pkg/math3d/spline.go",
          "line": 940,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHermiteSpline3D",
              "anchor": "NewHermiteSpline3D",
              "decl": "func NewHermiteSpline3D(points, tangents []Vec3, closed bool) *HermiteSpline3D",
              "doc": "NewHermiteSpline3D constructs a multi-segment cubic Hermite spline interpolating\npoints with corresponding per-point tangents.\n\nWhen closed is false, len(points)-1 segments connect points[0] through points[n-1].\nWhen closed is true, len(points) segments form a closed loop back to points[0].\nMissing tangent entries (if len(tangents) < len(points)) default to the uniform Catmull-Rom tangent (points[i+1] - points[i-1]) / 2, one-sided at the ends of an open spline, so the curve keeps moving through those points instead of stopping and flipping its frame there (#546). Pass Vec3Zero explicitly for a point where the curve should stop.\nIf len(points) < 2, an empty zero-length spline is returned.\n",
              "file": "pkg/math3d/spline.go",
              "line": 951
            }
          ],
          "methods": [
            {
              "name": "Closed",
              "anchor": "HermiteSpline3D.Closed",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) Closed() bool",
              "doc": "Closed reports whether the spline forms a closed loop.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1070
            },
            {
              "name": "Derivative",
              "anchor": "HermiteSpline3D.Derivative",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) Derivative(t float32) Vec3",
              "doc": "Derivative evaluates the unnormalized first derivative dP/dt at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 1005
            },
            {
              "name": "DistanceToT",
              "anchor": "HermiteSpline3D.DistanceToT",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) DistanceToT(dist float32) float32",
              "doc": "DistanceToT maps an arc-length distance to parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 1029
            },
            {
              "name": "FrameAt",
              "anchor": "HermiteSpline3D.FrameAt",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) FrameAt(t float32, worldUp Vec3) CurveFrame",
              "doc": "FrameAt evaluates the Rotation-Minimizing Frame at parameter t in [0, 1],\ninitialized with worldUp at t=0.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1054
            },
            {
              "name": "FrameAtDistance",
              "anchor": "HermiteSpline3D.FrameAtDistance",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) FrameAtDistance(dist float32) CurveFrame",
              "doc": "FrameAtDistance evaluates the Rotation-Minimizing Frame at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1062
            },
            {
              "name": "Length",
              "anchor": "HermiteSpline3D.Length",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) Length() float32",
              "doc": "Length returns the total arc length of the spline.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1021
            },
            {
              "name": "Point",
              "anchor": "HermiteSpline3D.Point",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) Point(t float32) Vec3",
              "doc": "Point evaluates the spline position at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 997
            },
            {
              "name": "PointAtDistance",
              "anchor": "HermiteSpline3D.PointAtDistance",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) PointAtDistance(dist float32) Vec3",
              "doc": "PointAtDistance evaluates the spline position at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1037
            },
            {
              "name": "SegmentCount",
              "anchor": "HermiteSpline3D.SegmentCount",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) SegmentCount() int",
              "doc": "SegmentCount returns the number of cubic segments in the spline.\n",
              "file": "pkg/math3d/spline.go",
              "line": 989
            },
            {
              "name": "Tangent",
              "anchor": "HermiteSpline3D.Tangent",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) Tangent(t float32) Vec3",
              "doc": "Tangent evaluates the unit tangent vector at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 1013
            },
            {
              "name": "TangentAtDistance",
              "anchor": "HermiteSpline3D.TangentAtDistance",
              "recv": "*HermiteSpline3D",
              "decl": "func (c *HermiteSpline3D) TangentAtDistance(dist float32) Vec3",
              "doc": "TangentAtDistance evaluates the unit tangent vector at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 1045
            }
          ]
        },
        {
          "name": "Mat3",
          "anchor": "Mat3",
          "decl": "type Mat3 [9]float32",
          "doc": "Mat3 is a 3x3 float32 matrix stored in column-major order.\nElement at (row, col) is at index col*3 + row.\n",
          "file": "pkg/math3d/mat.go",
          "line": 7,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Mat3FromCols",
              "anchor": "Mat3FromCols",
              "decl": "func Mat3FromCols(c0, c1, c2 Vec3) Mat3",
              "doc": "Mat3FromCols builds a Mat3 from its three column vectors.\n",
              "file": "pkg/math3d/mat.go",
              "line": 19
            },
            {
              "name": "Mat3FromMat4",
              "anchor": "Mat3FromMat4",
              "decl": "func Mat3FromMat4(m Mat4) Mat3",
              "doc": "Mat3FromMat4 extracts the upper-left 3x3 submatrix of m.\n",
              "file": "pkg/math3d/mat.go",
              "line": 28
            },
            {
              "name": "Mat3Identity",
              "anchor": "Mat3Identity",
              "decl": "func Mat3Identity() Mat3",
              "doc": "Mat3Identity returns the 3x3 identity matrix.\n",
              "file": "pkg/math3d/mat.go",
              "line": 10
            },
            {
              "name": "NormalMatrix",
              "anchor": "NormalMatrix",
              "decl": "func NormalMatrix(model Mat4) (Mat3, bool)",
              "doc": "NormalMatrix returns the inverse-transpose of the upper-left 3x3 of model,\nsuitable for transforming surface normals under non-uniform scale.\nIt returns false if the upper-left 3x3 is singular.\n",
              "file": "pkg/math3d/mat.go",
              "line": 39
            }
          ],
          "methods": [
            {
              "name": "ApproxEqual",
              "anchor": "Mat3.ApproxEqual",
              "recv": "Mat3",
              "decl": "func (m Mat3) ApproxEqual(b Mat3, eps float32) bool",
              "doc": "ApproxEqual reports whether every element of m is within eps of b.\n",
              "file": "pkg/math3d/mat.go",
              "line": 135
            },
            {
              "name": "At",
              "anchor": "Mat3.At",
              "recv": "Mat3",
              "decl": "func (m Mat3) At(row, col int) float32",
              "doc": "At returns the element at (row, col).\n",
              "file": "pkg/math3d/mat.go",
              "line": 48
            },
            {
              "name": "Col",
              "anchor": "Mat3.Col",
              "recv": "Mat3",
              "decl": "func (m Mat3) Col(col int) Vec3",
              "doc": "Col returns column col (0..2) as a Vec3.\n",
              "file": "pkg/math3d/mat.go",
              "line": 51
            },
            {
              "name": "Det",
              "anchor": "Mat3.Det",
              "recv": "Mat3",
              "decl": "func (m Mat3) Det() float32",
              "doc": "Det returns the determinant of m.\n",
              "file": "pkg/math3d/mat.go",
              "line": 92
            },
            {
              "name": "Inverse",
              "anchor": "Mat3.Inverse",
              "recv": "Mat3",
              "decl": "func (m Mat3) Inverse() (Mat3, bool)",
              "doc": "Inverse returns the inverse of m and true, or the zero matrix and false if m is singular.\n",
              "file": "pkg/math3d/mat.go",
              "line": 104
            },
            {
              "name": "Mul",
              "anchor": "Mat3.Mul",
              "recv": "Mat3",
              "decl": "func (m Mat3) Mul(b Mat3) Mat3",
              "doc": "Mul returns the matrix product m * b.\n",
              "file": "pkg/math3d/mat.go",
              "line": 62
            },
            {
              "name": "MulVec3",
              "anchor": "Mat3.MulVec3",
              "recv": "Mat3",
              "decl": "func (m Mat3) MulVec3(v Vec3) Vec3",
              "doc": "MulVec3 returns the column-vector product m * v.\n",
              "file": "pkg/math3d/mat.go",
              "line": 74
            },
            {
              "name": "Row",
              "anchor": "Mat3.Row",
              "recv": "Mat3",
              "decl": "func (m Mat3) Row(row int) Vec3",
              "doc": "Row returns row row (0..2) as a Vec3.\n",
              "file": "pkg/math3d/mat.go",
              "line": 57
            },
            {
              "name": "Transpose",
              "anchor": "Mat3.Transpose",
              "recv": "Mat3",
              "decl": "func (m Mat3) Transpose() Mat3",
              "doc": "Transpose returns the transpose of m.\n",
              "file": "pkg/math3d/mat.go",
              "line": 83
            }
          ]
        },
        {
          "name": "Mat4",
          "anchor": "Mat4",
          "decl": "type Mat4 [16]float32",
          "doc": "Mat4 is a 4x4 float32 matrix stored in column-major order, matching WGSL,\nMetal, GLSL, and glTF 2.0 directly. Element at (row, col) is at index col*4 + row.\n",
          "file": "pkg/math3d/mat.go",
          "line": 146,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LookAt",
              "anchor": "LookAt",
              "decl": "func LookAt(eye, target, up Vec3) Mat4",
              "doc": "LookAt returns a right-handed view matrix for a camera positioned at eye,\nlooking toward target, with world up direction up. In the resulting view\nspace, the camera sits at the origin looking down -Z with +X right and +Y up.\n",
              "file": "pkg/math3d/mat.go",
              "line": 408
            },
            {
              "name": "Mat4FromCols",
              "anchor": "Mat4FromCols",
              "decl": "func Mat4FromCols(c0, c1, c2, c3 Vec4) Mat4",
              "doc": "Mat4FromCols builds a Mat4 from its four column vectors.\n",
              "file": "pkg/math3d/mat.go",
              "line": 159
            },
            {
              "name": "Mat4Identity",
              "anchor": "Mat4Identity",
              "decl": "func Mat4Identity() Mat4",
              "doc": "Mat4Identity returns the 4x4 identity matrix.\n",
              "file": "pkg/math3d/mat.go",
              "line": 149
            },
            {
              "name": "Ortho",
              "anchor": "Ortho",
              "decl": "func Ortho(left, right, bottom, top, near, far float32) Mat4",
              "doc": "Ortho returns a right-handed orthographic projection matrix mapping\nview-space [left, right] x [bottom, top] x [-far, -near] to\n[-1, 1] x [-1, 1] x [0, 1] (WebGPU/Metal NDC depth [0, 1]).\n\nThis is equivalent to OrthoZO. Use OrthoNO for OpenGL [-1, 1] depth.\n",
              "file": "pkg/math3d/mat.go",
              "line": 475
            },
            {
              "name": "OrthoNO",
              "anchor": "OrthoNO",
              "decl": "func OrthoNO(left, right, bottom, top, near, far float32) Mat4",
              "doc": "OrthoNO returns a right-handed orthographic projection matrix for\nnegative-one-to-one NDC depth [-1, 1] (OpenGL, WebGL).\n",
              "file": "pkg/math3d/mat.go",
              "line": 495
            },
            {
              "name": "OrthoZO",
              "anchor": "OrthoZO",
              "decl": "func OrthoZO(left, right, bottom, top, near, far float32) Mat4",
              "doc": "OrthoZO returns a right-handed orthographic projection matrix for\nzero-to-one NDC depth [0, 1] (WebGPU, Metal, Vulkan, D3D).\n",
              "file": "pkg/math3d/mat.go",
              "line": 481
            },
            {
              "name": "Perspective",
              "anchor": "Perspective",
              "decl": "func Perspective(fovY, aspect, near, far float32) Mat4",
              "doc": "Perspective returns a right-handed perspective projection matrix mapping\nview-space z in [-near, -far] to WebGPU/Metal NDC depth [0, 1].\nfovY is the vertical field of view in radians; aspect is width/height;\nnear and far are positive distances from the camera (0 < near < far).\n\nThis is equivalent to PerspectiveZO. Use PerspectiveNO for OpenGL [-1, 1] depth.\n",
              "file": "pkg/math3d/mat.go",
              "line": 440
            },
            {
              "name": "PerspectiveNO",
              "anchor": "PerspectiveNO",
              "decl": "func PerspectiveNO(fovY, aspect, near, far float32) Mat4",
              "doc": "PerspectiveNO returns a right-handed perspective projection matrix for\nnegative-one-to-one NDC depth [-1, 1] (OpenGL, WebGL).\n",
              "file": "pkg/math3d/mat.go",
              "line": 459
            },
            {
              "name": "PerspectiveZO",
              "anchor": "PerspectiveZO",
              "decl": "func PerspectiveZO(fovY, aspect, near, far float32) Mat4",
              "doc": "PerspectiveZO returns a right-handed perspective projection matrix for\nzero-to-one NDC depth [0, 1] (WebGPU, Metal, Vulkan, D3D).\n",
              "file": "pkg/math3d/mat.go",
              "line": 446
            },
            {
              "name": "RotateAxis",
              "anchor": "RotateAxis",
              "decl": "func RotateAxis(axis Vec3, rad float32) Mat4",
              "doc": "RotateAxis returns a right-handed rotation matrix around axis by rad radians.\nIf axis has zero length, Mat4Identity is returned.\n",
              "file": "pkg/math3d/mat.go",
              "line": 387
            },
            {
              "name": "RotateX",
              "anchor": "RotateX",
              "decl": "func RotateX(rad float32) Mat4",
              "doc": "RotateX returns a right-handed rotation matrix around the +X axis by rad radians.\n",
              "file": "pkg/math3d/mat.go",
              "line": 350
            },
            {
              "name": "RotateY",
              "anchor": "RotateY",
              "decl": "func RotateY(rad float32) Mat4",
              "doc": "RotateY returns a right-handed rotation matrix around the +Y axis by rad radians.\n",
              "file": "pkg/math3d/mat.go",
              "line": 362
            },
            {
              "name": "RotateZ",
              "anchor": "RotateZ",
              "decl": "func RotateZ(rad float32) Mat4",
              "doc": "RotateZ returns a right-handed rotation matrix around the +Z axis by rad radians.\n",
              "file": "pkg/math3d/mat.go",
              "line": 374
            },
            {
              "name": "Scale",
              "anchor": "Scale",
              "decl": "func Scale(v Vec3) Mat4",
              "doc": "Scale returns a scaling matrix with diagonal (v.X, v.Y, v.Z, 1).\n",
              "file": "pkg/math3d/mat.go",
              "line": 340
            },
            {
              "name": "TRS",
              "anchor": "TRS",
              "decl": "func TRS(pos Vec3, rot Quat, scale Vec3) Mat4",
              "doc": "TRS builds a model matrix from translation pos, rotation rot, and scale\nin standard T * R * S order (scale first, then rotate, then translate).\n",
              "file": "pkg/math3d/mat.go",
              "line": 509
            },
            {
              "name": "Translate",
              "anchor": "Translate",
              "decl": "func Translate(v Vec3) Mat4",
              "doc": "Translate returns a translation matrix by v.\n",
              "file": "pkg/math3d/mat.go",
              "line": 330
            }
          ],
          "methods": [
            {
              "name": "ApproxEqual",
              "anchor": "Mat4.ApproxEqual",
              "recv": "Mat4",
              "decl": "func (m Mat4) ApproxEqual(b Mat4, eps float32) bool",
              "doc": "ApproxEqual reports whether every element of m is within eps of b.\n",
              "file": "pkg/math3d/mat.go",
              "line": 320
            },
            {
              "name": "At",
              "anchor": "Mat4.At",
              "recv": "Mat4",
              "decl": "func (m Mat4) At(row, col int) float32",
              "doc": "At returns the element at (row, col).\n",
              "file": "pkg/math3d/mat.go",
              "line": 169
            },
            {
              "name": "Col",
              "anchor": "Mat4.Col",
              "recv": "Mat4",
              "decl": "func (m Mat4) Col(col int) Vec4",
              "doc": "Col returns column col (0..3) as a Vec4.\n",
              "file": "pkg/math3d/mat.go",
              "line": 172
            },
            {
              "name": "Decompose",
              "anchor": "Mat4.Decompose",
              "recv": "Mat4",
              "decl": "func (m Mat4) Decompose() (pos Vec3, rot Quat, scale Vec3, ok bool)",
              "doc": "Decompose factors an affine TRS matrix into translation pos, unit rotation\nrot, and scale such that TRS(pos, rot, scale) reproduces m.\n\nIf m has a reflection (negative upper-left 3x3 determinant), the sign is\nplaced on scale.X so rot remains a proper right-handed rotation.\nIt returns ok = false if m has projective terms or a zero scale axis.\n",
              "file": "pkg/math3d/mat.go",
              "line": 532
            },
            {
              "name": "Det",
              "anchor": "Mat4.Det",
              "recv": "Mat4",
              "decl": "func (m Mat4) Det() float32",
              "doc": "Det returns the determinant of m.\n",
              "file": "pkg/math3d/mat.go",
              "line": 243
            },
            {
              "name": "Inverse",
              "anchor": "Mat4.Inverse",
              "recv": "Mat4",
              "decl": "func (m Mat4) Inverse() (Mat4, bool)",
              "doc": "Inverse returns the inverse of m and true, or the zero matrix and false if m is singular.\n",
              "file": "pkg/math3d/mat.go",
              "line": 267
            },
            {
              "name": "Mat3",
              "anchor": "Mat4.Mat3",
              "recv": "Mat4",
              "decl": "func (m Mat4) Mat3() Mat3",
              "doc": "Mat3 extracts the upper-left 3x3 submatrix of m.\n",
              "file": "pkg/math3d/mat.go",
              "line": 183
            },
            {
              "name": "Mul",
              "anchor": "Mat4.Mul",
              "recv": "Mat4",
              "decl": "func (m Mat4) Mul(b Mat4) Mat4",
              "doc": "Mul returns the matrix product m * b (applying b first, then m).\n",
              "file": "pkg/math3d/mat.go",
              "line": 186
            },
            {
              "name": "MulVec4",
              "anchor": "Mat4.MulVec4",
              "recv": "Mat4",
              "decl": "func (m Mat4) MulVec4(v Vec4) Vec4",
              "doc": "MulVec4 returns the column-vector product m * v.\n",
              "file": "pkg/math3d/mat.go",
              "line": 199
            },
            {
              "name": "Row",
              "anchor": "Mat4.Row",
              "recv": "Mat4",
              "decl": "func (m Mat4) Row(row int) Vec4",
              "doc": "Row returns row row (0..3) as a Vec4.\n",
              "file": "pkg/math3d/mat.go",
              "line": 178
            },
            {
              "name": "TransformDir",
              "anchor": "Mat4.TransformDir",
              "recv": "Mat4",
              "decl": "func (m Mat4) TransformDir(d Vec3) Vec3",
              "doc": "TransformDir transforms a 3D direction vector d as (d.X, d.Y, d.Z, 0),\nignoring translation.\n",
              "file": "pkg/math3d/mat.go",
              "line": 224
            },
            {
              "name": "TransformPoint",
              "anchor": "Mat4.TransformPoint",
              "recv": "Mat4",
              "decl": "func (m Mat4) TransformPoint(p Vec3) Vec3",
              "doc": "TransformPoint transforms a 3D point p as (p.X, p.Y, p.Z, 1), performing\nperspective division by w when w is neither 1 nor 0.\n",
              "file": "pkg/math3d/mat.go",
              "line": 210
            },
            {
              "name": "Transpose",
              "anchor": "Mat4.Transpose",
              "recv": "Mat4",
              "decl": "func (m Mat4) Transpose() Mat4",
              "doc": "Transpose returns the transpose of m.\n",
              "file": "pkg/math3d/mat.go",
              "line": 233
            }
          ]
        },
        {
          "name": "Plane",
          "anchor": "Plane",
          "decl": "type Plane struct {\n\tNormal Vec3\n\tD      float32\n}",
          "doc": "Plane is an infinite plane satisfying Normal · p + D = 0.\nWhen Normal is unit-length, SignedDist returns the signed Euclidean distance\nfrom the plane (positive on the side Normal points toward).\n",
          "file": "pkg/math3d/bounds.go",
          "line": 180,
          "members": [
            {
              "name": "Normal",
              "anchor": "Plane.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "D",
              "anchor": "Plane.D",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PlaneFromPointNormal",
              "anchor": "PlaneFromPointNormal",
              "decl": "func PlaneFromPointNormal(point, normal Vec3) Plane",
              "doc": "PlaneFromPointNormal builds a normalized plane passing through point with\nthe given outward normal.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 187
            }
          ],
          "methods": [
            {
              "name": "Normalized",
              "anchor": "Plane.Normalized",
              "recv": "Plane",
              "decl": "func (p Plane) Normalized() Plane",
              "doc": "Normalized returns an equivalent plane with a unit-length Normal.\nIf Normal has zero length, p is returned unchanged.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 199
            },
            {
              "name": "SignedDist",
              "anchor": "Plane.SignedDist",
              "recv": "Plane",
              "decl": "func (p Plane) SignedDist(point Vec3) float32",
              "doc": "SignedDist returns Normal · point + D (signed Euclidean distance when Normal is normalized).\n",
              "file": "pkg/math3d/bounds.go",
              "line": 193
            }
          ]
        },
        {
          "name": "QuadraticBezier3D",
          "anchor": "QuadraticBezier3D",
          "decl": "type QuadraticBezier3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "QuadraticBezier3D is a 3D quadratic Bézier curve defined by three control points.\n",
          "file": "pkg/math3d/spline.go",
          "line": 671,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewQuadraticBezier3D",
              "anchor": "NewQuadraticBezier3D",
              "decl": "func NewQuadraticBezier3D(p0, p1, p2 Vec3) *QuadraticBezier3D",
              "doc": "NewQuadraticBezier3D constructs a 3D quadratic Bézier curve from p0 through\ncontrol point p1 to p2, precomputing its Gauss-Legendre arc-length LUT and\nRotation-Minimizing Frames.\n",
              "file": "pkg/math3d/spline.go",
              "line": 678
            }
          ],
          "methods": [
            {
              "name": "Closed",
              "anchor": "QuadraticBezier3D.Closed",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) Closed() bool",
              "doc": "Closed reports false because a single quadratic Bézier segment is open.\n",
              "file": "pkg/math3d/spline.go",
              "line": 757
            },
            {
              "name": "Derivative",
              "anchor": "QuadraticBezier3D.Derivative",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) Derivative(t float32) Vec3",
              "doc": "Derivative evaluates the unnormalized first derivative dP/dt at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 692
            },
            {
              "name": "DistanceToT",
              "anchor": "QuadraticBezier3D.DistanceToT",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) DistanceToT(dist float32) float32",
              "doc": "DistanceToT maps an arc-length distance in [0, Length()] to parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 716
            },
            {
              "name": "FrameAt",
              "anchor": "QuadraticBezier3D.FrameAt",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) FrameAt(t float32, worldUp Vec3) CurveFrame",
              "doc": "FrameAt evaluates the Rotation-Minimizing Frame at parameter t in [0, 1],\ninitialized with worldUp at t=0.\n",
              "file": "pkg/math3d/spline.go",
              "line": 741
            },
            {
              "name": "FrameAtDistance",
              "anchor": "QuadraticBezier3D.FrameAtDistance",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) FrameAtDistance(dist float32) CurveFrame",
              "doc": "FrameAtDistance evaluates the Rotation-Minimizing Frame at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 749
            },
            {
              "name": "Length",
              "anchor": "QuadraticBezier3D.Length",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) Length() float32",
              "doc": "Length returns the total arc length of the curve.\n",
              "file": "pkg/math3d/spline.go",
              "line": 708
            },
            {
              "name": "Point",
              "anchor": "QuadraticBezier3D.Point",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) Point(t float32) Vec3",
              "doc": "Point evaluates the curve position at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 684
            },
            {
              "name": "PointAtDistance",
              "anchor": "QuadraticBezier3D.PointAtDistance",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) PointAtDistance(dist float32) Vec3",
              "doc": "PointAtDistance evaluates the curve position at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 724
            },
            {
              "name": "Tangent",
              "anchor": "QuadraticBezier3D.Tangent",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) Tangent(t float32) Vec3",
              "doc": "Tangent evaluates the unit tangent vector at parameter t in [0, 1].\n",
              "file": "pkg/math3d/spline.go",
              "line": 700
            },
            {
              "name": "TangentAtDistance",
              "anchor": "QuadraticBezier3D.TangentAtDistance",
              "recv": "*QuadraticBezier3D",
              "decl": "func (c *QuadraticBezier3D) TangentAtDistance(dist float32) Vec3",
              "doc": "TangentAtDistance evaluates the unit tangent vector at arc-length distance dist.\n",
              "file": "pkg/math3d/spline.go",
              "line": 732
            }
          ]
        },
        {
          "name": "Quat",
          "anchor": "Quat",
          "decl": "type Quat struct {\n\tX, Y, Z, W float32\n}",
          "doc": "Quat is a quaternion stored as (X, Y, Z, W), matching glTF 2.0's [x, y, z, w]\norder. Unit quaternions represent right-handed 3D rotations; q and -q\nrepresent the same rotation.\n",
          "file": "pkg/math3d/quat.go",
          "line": 8,
          "members": [
            {
              "name": "X",
              "anchor": "Quat.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Quat.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Quat.Z",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "Quat.W",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LookRotation",
              "anchor": "LookRotation",
              "decl": "func LookRotation(forward, up Vec3) Quat",
              "doc": "LookRotation returns a unit quaternion that orients an object's local forward\n(-Z) along forward and its local up (+Y) toward up.\n\nFor a camera at eye looking at target, Transform{Pos: eye, Rot: LookRotation(target.Sub(eye), up), Scale: Vec3One()}.ToMat4()\nis the inverse of LookAt(eye, target, up).\n",
              "file": "pkg/math3d/quat.go",
              "line": 315
            },
            {
              "name": "QuatFromAxisAngle",
              "anchor": "QuatFromAxisAngle",
              "decl": "func QuatFromAxisAngle(axis Vec3, rad float32) Quat",
              "doc": "QuatFromAxisAngle returns a unit quaternion representing a right-handed\nrotation of rad radians around axis. If axis has zero length, QuatIdentity\nis returned.\n",
              "file": "pkg/math3d/quat.go",
              "line": 18
            },
            {
              "name": "QuatFromEuler",
              "anchor": "QuatFromEuler",
              "decl": "func QuatFromEuler(pitch, yaw, roll float32) Quat",
              "doc": "QuatFromEuler builds a unit quaternion from intrinsic YXZ Euler angles\n(yaw around +Y, then pitch around local +X, then roll around local +Z),\nequivalent to Ry(yaw) * Rx(pitch) * Rz(roll). All angles are in radians.\n",
              "file": "pkg/math3d/quat.go",
              "line": 36
            },
            {
              "name": "QuatFromEulerXYZ",
              "anchor": "QuatFromEulerXYZ",
              "decl": "func QuatFromEulerXYZ(x, y, z float32) Quat",
              "doc": "QuatFromEulerXYZ builds a unit quaternion from intrinsic XYZ Euler angles,\nequivalent to Rx(x) * Ry(y) * Rz(z). All angles are in radians.\n",
              "file": "pkg/math3d/quat.go",
              "line": 50
            },
            {
              "name": "QuatFromMat3",
              "anchor": "QuatFromMat3",
              "decl": "func QuatFromMat3(m Mat3) Quat",
              "doc": "QuatFromMat3 converts a pure 3x3 right-handed rotation matrix into a unit\nquaternion using Shepperd's method.\n",
              "file": "pkg/math3d/quat.go",
              "line": 119
            },
            {
              "name": "QuatFromMat4",
              "anchor": "QuatFromMat4",
              "decl": "func QuatFromMat4(m Mat4) Quat",
              "doc": "QuatFromMat4 converts the upper-left 3x3 rotation part of m into a unit\nquaternion. The upper-left 3x3 must be a pure rotation (orthonormal with\ndeterminant +1); use Decompose when scale is present.\n",
              "file": "pkg/math3d/quat.go",
              "line": 162
            },
            {
              "name": "QuatIdentity",
              "anchor": "QuatIdentity",
              "decl": "func QuatIdentity() Quat",
              "doc": "QuatIdentity returns the identity rotation quaternion (0, 0, 0, 1).\n",
              "file": "pkg/math3d/quat.go",
              "line": 13
            }
          ],
          "methods": [
            {
              "name": "ApproxEqual",
              "anchor": "Quat.ApproxEqual",
              "recv": "Quat",
              "decl": "func (q Quat) ApproxEqual(b Quat, eps float32) bool",
              "doc": "ApproxEqual reports whether q and b represent approximately the same rotation\n(accounting for the double-cover equivalence q == -q).\n",
              "file": "pkg/math3d/quat.go",
              "line": 296
            },
            {
              "name": "Conj",
              "anchor": "Quat.Conj",
              "recv": "Quat",
              "decl": "func (q Quat) Conj() Quat",
              "doc": "Conj returns the conjugate of q: (-X, -Y, -Z, W).\nFor unit quaternions, Conj equals Inverse.\n",
              "file": "pkg/math3d/quat.go",
              "line": 203
            },
            {
              "name": "Dot",
              "anchor": "Quat.Dot",
              "recv": "Quat",
              "decl": "func (q Quat) Dot(b Quat) float32",
              "doc": "Dot returns the 4D dot product of q and b.\n",
              "file": "pkg/math3d/quat.go",
              "line": 206
            },
            {
              "name": "Inverse",
              "anchor": "Quat.Inverse",
              "recv": "Quat",
              "decl": "func (q Quat) Inverse() Quat",
              "doc": "Inverse returns the multiplicative inverse of q, or QuatIdentity if q has zero norm.\n",
              "file": "pkg/math3d/quat.go",
              "line": 229
            },
            {
              "name": "Len",
              "anchor": "Quat.Len",
              "recv": "Quat",
              "decl": "func (q Quat) Len() float32",
              "doc": "Len returns the norm of q.\n",
              "file": "pkg/math3d/quat.go",
              "line": 216
            },
            {
              "name": "LenSq",
              "anchor": "Quat.LenSq",
              "recv": "Quat",
              "decl": "func (q Quat) LenSq() float32",
              "doc": "LenSq returns the squared norm of q.\n",
              "file": "pkg/math3d/quat.go",
              "line": 211
            },
            {
              "name": "Mul",
              "anchor": "Quat.Mul",
              "recv": "Quat",
              "decl": "func (q Quat) Mul(b Quat) Quat",
              "doc": "Mul returns the Hamilton product q * b, composing rotation b followed by q.\n",
              "file": "pkg/math3d/quat.go",
              "line": 192
            },
            {
              "name": "Nlerp",
              "anchor": "Quat.Nlerp",
              "recv": "Quat",
              "decl": "func (q Quat) Nlerp(b Quat, t float32) Quat",
              "doc": "Nlerp performs shortest-path normalized linear interpolation from q (t=0) to b (t=1).\n",
              "file": "pkg/math3d/quat.go",
              "line": 280
            },
            {
              "name": "Norm",
              "anchor": "Quat.Norm",
              "recv": "Quat",
              "decl": "func (q Quat) Norm() Quat",
              "doc": "Norm returns the normalized unit quaternion, or QuatIdentity if q has zero norm.\n",
              "file": "pkg/math3d/quat.go",
              "line": 219
            },
            {
              "name": "RotateVec3",
              "anchor": "Quat.RotateVec3",
              "recv": "Quat",
              "decl": "func (q Quat) RotateVec3(v Vec3) Vec3",
              "doc": "RotateVec3 rotates v by the unit rotation q.\n",
              "file": "pkg/math3d/quat.go",
              "line": 239
            },
            {
              "name": "Slerp",
              "anchor": "Quat.Slerp",
              "recv": "Quat",
              "decl": "func (q Quat) Slerp(b Quat, t float32) Quat",
              "doc": "Slerp performs shortest-path spherical linear interpolation from q (t=0) to b (t=1).\nIf q·b < 0, b is negated so interpolation always takes the shorter arc.\n",
              "file": "pkg/math3d/quat.go",
              "line": 248
            },
            {
              "name": "ToEuler",
              "anchor": "Quat.ToEuler",
              "recv": "Quat",
              "decl": "func (q Quat) ToEuler() (pitch, yaw, roll float32)",
              "doc": "ToEuler extracts intrinsic YXZ Euler angles (pitch, yaw, roll) in radians\nsuch that QuatFromEuler(pitch, yaw, roll) reproduces q (up to sign ±q).\nNear ±90° pitch it still separates yaw and roll; only an exact gimbal lock folds roll into yaw.\n",
              "file": "pkg/math3d/quat.go",
              "line": 65
            },
            {
              "name": "ToEulerXYZ",
              "anchor": "Quat.ToEulerXYZ",
              "recv": "Quat",
              "decl": "func (q Quat) ToEulerXYZ() (x, y, z float32)",
              "doc": "ToEulerXYZ extracts intrinsic XYZ Euler angles (x, y, z) in radians\nsuch that QuatFromEulerXYZ(x, y, z) reproduces q (up to sign ±q).\n",
              "file": "pkg/math3d/quat.go",
              "line": 102
            },
            {
              "name": "ToMat3",
              "anchor": "Quat.ToMat3",
              "recv": "Quat",
              "decl": "func (q Quat) ToMat3() Mat3",
              "doc": "ToMat3 converts q to a 3x3 column-major rotation matrix.\n",
              "file": "pkg/math3d/quat.go",
              "line": 167
            },
            {
              "name": "ToMat4",
              "anchor": "Quat.ToMat4",
              "recv": "Quat",
              "decl": "func (q Quat) ToMat4() Mat4",
              "doc": "ToMat4 converts q to a 4x4 column-major rotation matrix.\n",
              "file": "pkg/math3d/quat.go",
              "line": 181
            }
          ]
        },
        {
          "name": "Ray",
          "anchor": "Ray",
          "decl": "type Ray struct {\n\tOrigin, Dir Vec3\n}",
          "doc": "Ray is a half-line P(t) = Origin + t * Dir for t >= 0.\n",
          "file": "pkg/math3d/bounds.go",
          "line": 212,
          "members": [
            {
              "name": "Origin",
              "anchor": "Ray.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dir",
              "anchor": "Ray.Dir",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "At",
              "anchor": "Ray.At",
              "recv": "Ray",
              "decl": "func (r Ray) At(t float32) Vec3",
              "doc": "At returns the point along the ray at parameter t: Origin + t * Dir.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 217
            },
            {
              "name": "IntersectAABB",
              "anchor": "Ray.IntersectAABB",
              "recv": "Ray",
              "decl": "func (r Ray) IntersectAABB(b AABB) (tMin, tMax float32, hit bool)",
              "doc": "IntersectAABB tests r against b using the slab method.\nOn a hit, tMin is the nearest non-negative entry parameter (0 when r.Origin\nlies inside b) and tMax is the exit parameter.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 224
            },
            {
              "name": "IntersectPlane",
              "anchor": "Ray.IntersectPlane",
              "recv": "Ray",
              "decl": "func (r Ray) IntersectPlane(p Plane) (t float32, hit bool)",
              "doc": "IntersectPlane tests r against plane p, returning the parameter t >= 0 of the\nintersection point, or false if the ray is parallel to or points away from p.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 301
            },
            {
              "name": "IntersectSphere",
              "anchor": "Ray.IntersectSphere",
              "recv": "Ray",
              "decl": "func (r Ray) IntersectSphere(s Sphere) (t float32, hit bool)",
              "doc": "IntersectSphere tests r against sphere s, returning the smallest non-negative\nparameter t where r.At(t) touches the surface of s.\nWorks whether or not r.Dir is unit-length.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 272
            },
            {
              "name": "IntersectTriangle",
              "anchor": "Ray.IntersectTriangle",
              "recv": "Ray",
              "decl": "func (r Ray) IntersectTriangle(v0, v1, v2 Vec3) (t, u, v float32, hit bool)",
              "doc": "IntersectTriangle tests r against triangle (v0, v1, v2) using the\nMöller-Trumbore algorithm (double-sided).\nOn a hit, t >= 0 is the ray parameter and (u, v) are barycentric coordinates\nsuch that r.At(t) == v0*(1-u-v) + v1*u + v2*v.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 318
            }
          ]
        },
        {
          "name": "Sphere",
          "anchor": "Sphere",
          "decl": "type Sphere struct {\n\tCenter Vec3\n\tRadius float32\n}",
          "doc": "Sphere is a 3D bounding sphere defined by Center and Radius.\n",
          "file": "pkg/math3d/bounds.go",
          "line": 146,
          "members": [
            {
              "name": "Center",
              "anchor": "Sphere.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Sphere.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Contains",
              "anchor": "Sphere.Contains",
              "recv": "Sphere",
              "decl": "func (s Sphere) Contains(p Vec3) bool",
              "doc": "Contains reports whether p lies inside or on the surface of s.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 152
            },
            {
              "name": "IntersectsAABB",
              "anchor": "Sphere.IntersectsAABB",
              "recv": "Sphere",
              "decl": "func (s Sphere) IntersectsAABB(b AABB) bool",
              "doc": "IntersectsAABB reports whether s overlaps or touches b.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 169
            },
            {
              "name": "IntersectsSphere",
              "anchor": "Sphere.IntersectsSphere",
              "recv": "Sphere",
              "decl": "func (s Sphere) IntersectsSphere(other Sphere) bool",
              "doc": "IntersectsSphere reports whether s overlaps or touches other.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 160
            }
          ]
        },
        {
          "name": "Transform",
          "anchor": "Transform",
          "decl": "type Transform struct {\n\tPos   Vec3\n\tRot   Quat\n\tScale Vec3\n}",
          "doc": "Transform represents a 3D TRS (translation, rotation, scale) transform.\nIts zero value has zero scale and a zero quaternion; use TransformIdentity\nfor a default identity transform.\n",
          "file": "pkg/math3d/quat.go",
          "line": 337,
          "members": [
            {
              "name": "Pos",
              "anchor": "Transform.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rot",
              "anchor": "Transform.Rot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "Transform.Scale",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "TransformIdentity",
              "anchor": "TransformIdentity",
              "decl": "func TransformIdentity() Transform",
              "doc": "TransformIdentity returns the identity transform (Pos: 0, Rot: identity, Scale: 1).\n",
              "file": "pkg/math3d/quat.go",
              "line": 344
            }
          ],
          "methods": [
            {
              "name": "ApproxEqual",
              "anchor": "Transform.ApproxEqual",
              "recv": "Transform",
              "decl": "func (t Transform) ApproxEqual(b Transform, eps float32) bool",
              "doc": "ApproxEqual reports whether t and b are approximately equal within eps.\n",
              "file": "pkg/math3d/quat.go",
              "line": 445
            },
            {
              "name": "Inverse",
              "anchor": "Transform.Inverse",
              "recv": "Transform",
              "decl": "func (t Transform) Inverse() Transform",
              "doc": "Inverse returns the Transform that undoes t under [Transform.Mul]: t.Mul(t.Inverse()) is the identity whenever every scale component is non-zero.\n\nIt is the geometric inverse (t.Inverse().TransformPoint(t.TransformPoint(p)) == p) only when t is rigid, its scale is uniform, or it has no rotation. The inverse of a non-uniform scale combined with a rotation is S⁻¹·R⁻¹, which shears and so is not a TRS that a Transform can hold; use [Transform.InverseMat4] for it.\n",
              "file": "pkg/math3d/quat.go",
              "line": 374
            },
            {
              "name": "InverseMat4",
              "anchor": "Transform.InverseMat4",
              "recv": "Transform",
              "decl": "func (t Transform) InverseMat4() (Mat4, bool)",
              "doc": "InverseMat4 returns the exact inverse of t.ToMat4(), S⁻¹·R⁻¹·T⁻¹, built in closed form rather than by general 4x4 inversion, and true. It is right for every transform, including the non-uniform scale with rotation that [Transform.Inverse] cannot represent. It returns the zero matrix and false when a scale component is zero, a component of t is not finite, or the inverse overflows float32 (a subnormal scale).\n",
              "file": "pkg/math3d/quat.go",
              "line": 390
            },
            {
              "name": "Lerp",
              "anchor": "Transform.Lerp",
              "recv": "Transform",
              "decl": "func (t Transform) Lerp(b Transform, alpha float32) Transform",
              "doc": "Lerp interpolates from t (alpha=0) to b (alpha=1), using linear interpolation\nfor position and scale and shortest-path Slerp for rotation.\n",
              "file": "pkg/math3d/quat.go",
              "line": 436
            },
            {
              "name": "Mul",
              "anchor": "Transform.Mul",
              "recv": "Transform",
              "decl": "func (t Transform) Mul(child Transform) Transform",
              "doc": "Mul composes parent and child transforms (parent * child), transforming\nchild's local space into parent's space.\n\nBecause a Transform cannot represent shear, this matches parent.ToMat4().Mul(child.ToMat4())\nexactly whenever parent.Scale is uniform (or child has no rotation). For\nhierarchies with non-uniform parent scale and rotated children, compose as Mat4.\n",
              "file": "pkg/math3d/quat.go",
              "line": 363
            },
            {
              "name": "ToMat4",
              "anchor": "Transform.ToMat4",
              "recv": "Transform",
              "decl": "func (t Transform) ToMat4() Mat4",
              "doc": "ToMat4 converts t to a column-major 4x4 matrix in T * R * S order.\n",
              "file": "pkg/math3d/quat.go",
              "line": 353
            },
            {
              "name": "TransformDir",
              "anchor": "Transform.TransformDir",
              "recv": "Transform",
              "decl": "func (t Transform) TransformDir(d Vec3) Vec3",
              "doc": "TransformDir applies t's scale and rotation to direction vector d (ignoring translation).\n",
              "file": "pkg/math3d/quat.go",
              "line": 430
            },
            {
              "name": "TransformPoint",
              "anchor": "Transform.TransformPoint",
              "recv": "Transform",
              "decl": "func (t Transform) TransformPoint(p Vec3) Vec3",
              "doc": "TransformPoint applies t to point p (scale, rotate, then translate).\n",
              "file": "pkg/math3d/quat.go",
              "line": 425
            }
          ]
        },
        {
          "name": "Vec2",
          "anchor": "Vec2",
          "decl": "type Vec2 struct {\n\tX, Y float32\n}",
          "doc": "Vec2 is a 2-component float32 vector.\n",
          "file": "pkg/math3d/vec.go",
          "line": 37,
          "members": [
            {
              "name": "X",
              "anchor": "Vec2.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Vec2.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Vec2One",
              "anchor": "Vec2One",
              "decl": "func Vec2One() Vec2",
              "doc": "Vec2One returns (1, 1).\n",
              "file": "pkg/math3d/vec.go",
              "line": 45
            },
            {
              "name": "Vec2UnitX",
              "anchor": "Vec2UnitX",
              "decl": "func Vec2UnitX() Vec2",
              "doc": "Vec2UnitX returns the +X unit vector (1, 0).\n",
              "file": "pkg/math3d/vec.go",
              "line": 48
            },
            {
              "name": "Vec2UnitY",
              "anchor": "Vec2UnitY",
              "decl": "func Vec2UnitY() Vec2",
              "doc": "Vec2UnitY returns the +Y unit vector (0, 1).\n",
              "file": "pkg/math3d/vec.go",
              "line": 51
            },
            {
              "name": "Vec2Zero",
              "anchor": "Vec2Zero",
              "decl": "func Vec2Zero() Vec2",
              "doc": "Vec2Zero returns the zero 2D vector (0, 0).\n",
              "file": "pkg/math3d/vec.go",
              "line": 42
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Vec2.Add",
              "recv": "Vec2",
              "decl": "func (v Vec2) Add(b Vec2) Vec2",
              "doc": "Add returns v + b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 54
            },
            {
              "name": "ApproxEqual",
              "anchor": "Vec2.ApproxEqual",
              "recv": "Vec2",
              "decl": "func (v Vec2) ApproxEqual(b Vec2, eps float32) bool",
              "doc": "ApproxEqual reports whether each component of v is within eps of b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 113
            },
            {
              "name": "Clamp",
              "anchor": "Vec2.Clamp",
              "recv": "Vec2",
              "decl": "func (v Vec2) Clamp(lo, hi Vec2) Vec2",
              "doc": "Clamp restricts each component of v to [lo, hi].\n",
              "file": "pkg/math3d/vec.go",
              "line": 108
            },
            {
              "name": "Dist",
              "anchor": "Vec2.Dist",
              "recv": "Vec2",
              "decl": "func (v Vec2) Dist(b Vec2) float32",
              "doc": "Dist returns the Euclidean distance between v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 94
            },
            {
              "name": "DistSq",
              "anchor": "Vec2.DistSq",
              "recv": "Vec2",
              "decl": "func (v Vec2) DistSq(b Vec2) float32",
              "doc": "DistSq returns the squared Euclidean distance between v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 91
            },
            {
              "name": "Div",
              "anchor": "Vec2.Div",
              "recv": "Vec2",
              "decl": "func (v Vec2) Div(b Vec2) Vec2",
              "doc": "Div returns the component-wise quotient v / b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 63
            },
            {
              "name": "Dot",
              "anchor": "Vec2.Dot",
              "recv": "Vec2",
              "decl": "func (v Vec2) Dot(b Vec2) float32",
              "doc": "Dot returns the dot product v · b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 72
            },
            {
              "name": "Len",
              "anchor": "Vec2.Len",
              "recv": "Vec2",
              "decl": "func (v Vec2) Len() float32",
              "doc": "Len returns the Euclidean length of v.\n",
              "file": "pkg/math3d/vec.go",
              "line": 78
            },
            {
              "name": "LenSq",
              "anchor": "Vec2.LenSq",
              "recv": "Vec2",
              "decl": "func (v Vec2) LenSq() float32",
              "doc": "LenSq returns the squared Euclidean length of v.\n",
              "file": "pkg/math3d/vec.go",
              "line": 75
            },
            {
              "name": "Lerp",
              "anchor": "Vec2.Lerp",
              "recv": "Vec2",
              "decl": "func (v Vec2) Lerp(b Vec2, t float32) Vec2",
              "doc": "Lerp linearly interpolates from v (t=0) to b (t=1).\n",
              "file": "pkg/math3d/vec.go",
              "line": 97
            },
            {
              "name": "Max",
              "anchor": "Vec2.Max",
              "recv": "Vec2",
              "decl": "func (v Vec2) Max(b Vec2) Vec2",
              "doc": "Max returns the component-wise maximum of v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 105
            },
            {
              "name": "Min",
              "anchor": "Vec2.Min",
              "recv": "Vec2",
              "decl": "func (v Vec2) Min(b Vec2) Vec2",
              "doc": "Min returns the component-wise minimum of v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 102
            },
            {
              "name": "Mul",
              "anchor": "Vec2.Mul",
              "recv": "Vec2",
              "decl": "func (v Vec2) Mul(b Vec2) Vec2",
              "doc": "Mul returns the component-wise product of v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 60
            },
            {
              "name": "Neg",
              "anchor": "Vec2.Neg",
              "recv": "Vec2",
              "decl": "func (v Vec2) Neg() Vec2",
              "doc": "Neg returns -v.\n",
              "file": "pkg/math3d/vec.go",
              "line": 69
            },
            {
              "name": "Norm",
              "anchor": "Vec2.Norm",
              "recv": "Vec2",
              "decl": "func (v Vec2) Norm() Vec2",
              "doc": "Norm returns the unit vector in the direction of v, or the zero vector if v has zero length.\n",
              "file": "pkg/math3d/vec.go",
              "line": 81
            },
            {
              "name": "Scale",
              "anchor": "Vec2.Scale",
              "recv": "Vec2",
              "decl": "func (v Vec2) Scale(s float32) Vec2",
              "doc": "Scale returns v multiplied by scalar s.\n",
              "file": "pkg/math3d/vec.go",
              "line": 66
            },
            {
              "name": "Sub",
              "anchor": "Vec2.Sub",
              "recv": "Vec2",
              "decl": "func (v Vec2) Sub(b Vec2) Vec2",
              "doc": "Sub returns v - b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 57
            },
            {
              "name": "Vec3",
              "anchor": "Vec2.Vec3",
              "recv": "Vec2",
              "decl": "func (v Vec2) Vec3(z float32) Vec3",
              "doc": "Vec3 promotes v to a Vec3 with the given z component.\n",
              "file": "pkg/math3d/vec.go",
              "line": 118
            }
          ]
        },
        {
          "name": "Vec3",
          "anchor": "Vec3",
          "decl": "type Vec3 struct {\n\tX, Y, Z float32\n}",
          "doc": "Vec3 is a 3-component float32 vector in right-handed Y-up space (+X right, +Y up, -Z forward).\n",
          "file": "pkg/math3d/vec.go",
          "line": 121,
          "members": [
            {
              "name": "X",
              "anchor": "Vec3.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Vec3.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Vec3.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Vec3Forward",
              "anchor": "Vec3Forward",
              "decl": "func Vec3Forward() Vec3",
              "doc": "Vec3Forward returns the right-handed forward -Z axis (0, 0, -1).\n",
              "file": "pkg/math3d/vec.go",
              "line": 147
            },
            {
              "name": "Vec3One",
              "anchor": "Vec3One",
              "decl": "func Vec3One() Vec3",
              "doc": "Vec3One returns (1, 1, 1).\n",
              "file": "pkg/math3d/vec.go",
              "line": 129
            },
            {
              "name": "Vec3Right",
              "anchor": "Vec3Right",
              "decl": "func Vec3Right() Vec3",
              "doc": "Vec3Right returns the right-handed +X axis (1, 0, 0).\n",
              "file": "pkg/math3d/vec.go",
              "line": 141
            },
            {
              "name": "Vec3UnitX",
              "anchor": "Vec3UnitX",
              "decl": "func Vec3UnitX() Vec3",
              "doc": "Vec3UnitX returns the +X unit vector (1, 0, 0).\n",
              "file": "pkg/math3d/vec.go",
              "line": 132
            },
            {
              "name": "Vec3UnitY",
              "anchor": "Vec3UnitY",
              "decl": "func Vec3UnitY() Vec3",
              "doc": "Vec3UnitY returns the +Y unit vector (0, 1, 0).\n",
              "file": "pkg/math3d/vec.go",
              "line": 135
            },
            {
              "name": "Vec3UnitZ",
              "anchor": "Vec3UnitZ",
              "decl": "func Vec3UnitZ() Vec3",
              "doc": "Vec3UnitZ returns the +Z unit vector (0, 0, 1).\n",
              "file": "pkg/math3d/vec.go",
              "line": 138
            },
            {
              "name": "Vec3Up",
              "anchor": "Vec3Up",
              "decl": "func Vec3Up() Vec3",
              "doc": "Vec3Up returns the right-handed +Y axis (0, 1, 0).\n",
              "file": "pkg/math3d/vec.go",
              "line": 144
            },
            {
              "name": "Vec3Zero",
              "anchor": "Vec3Zero",
              "decl": "func Vec3Zero() Vec3",
              "doc": "Vec3Zero returns the zero 3D vector (0, 0, 0).\n",
              "file": "pkg/math3d/vec.go",
              "line": 126
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Vec3.Add",
              "recv": "Vec3",
              "decl": "func (v Vec3) Add(b Vec3) Vec3",
              "doc": "Add returns v + b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 150
            },
            {
              "name": "ApproxEqual",
              "anchor": "Vec3.ApproxEqual",
              "recv": "Vec3",
              "decl": "func (v Vec3) ApproxEqual(b Vec3, eps float32) bool",
              "doc": "ApproxEqual reports whether each component of v is within eps of b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 222
            },
            {
              "name": "Clamp",
              "anchor": "Vec3.Clamp",
              "recv": "Vec3",
              "decl": "func (v Vec3) Clamp(lo, hi Vec3) Vec3",
              "doc": "Clamp restricts each component of v to [lo, hi].\n",
              "file": "pkg/math3d/vec.go",
              "line": 217
            },
            {
              "name": "Cross",
              "anchor": "Vec3.Cross",
              "recv": "Vec3",
              "decl": "func (v Vec3) Cross(b Vec3) Vec3",
              "doc": "Cross returns the right-handed cross product v × b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 171
            },
            {
              "name": "Dist",
              "anchor": "Vec3.Dist",
              "recv": "Vec3",
              "decl": "func (v Vec3) Dist(b Vec3) float32",
              "doc": "Dist returns the Euclidean distance between v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 199
            },
            {
              "name": "DistSq",
              "anchor": "Vec3.DistSq",
              "recv": "Vec3",
              "decl": "func (v Vec3) DistSq(b Vec3) float32",
              "doc": "DistSq returns the squared Euclidean distance between v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 196
            },
            {
              "name": "Div",
              "anchor": "Vec3.Div",
              "recv": "Vec3",
              "decl": "func (v Vec3) Div(b Vec3) Vec3",
              "doc": "Div returns the component-wise quotient v / b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 159
            },
            {
              "name": "Dot",
              "anchor": "Vec3.Dot",
              "recv": "Vec3",
              "decl": "func (v Vec3) Dot(b Vec3) float32",
              "doc": "Dot returns the dot product v · b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 168
            },
            {
              "name": "IsFinite",
              "anchor": "Vec3.IsFinite",
              "recv": "Vec3",
              "decl": "func (v Vec3) IsFinite() bool",
              "doc": "IsFinite reports whether x is neither NaN nor an infinity.\n",
              "file": "pkg/math3d/bounds.go",
              "line": 468
            },
            {
              "name": "Len",
              "anchor": "Vec3.Len",
              "recv": "Vec3",
              "decl": "func (v Vec3) Len() float32",
              "doc": "Len returns the Euclidean length of v.\n",
              "file": "pkg/math3d/vec.go",
              "line": 183
            },
            {
              "name": "LenSq",
              "anchor": "Vec3.LenSq",
              "recv": "Vec3",
              "decl": "func (v Vec3) LenSq() float32",
              "doc": "LenSq returns the squared Euclidean length of v.\n",
              "file": "pkg/math3d/vec.go",
              "line": 180
            },
            {
              "name": "Lerp",
              "anchor": "Vec3.Lerp",
              "recv": "Vec3",
              "decl": "func (v Vec3) Lerp(b Vec3, t float32) Vec3",
              "doc": "Lerp linearly interpolates from v (t=0) to b (t=1).\n",
              "file": "pkg/math3d/vec.go",
              "line": 202
            },
            {
              "name": "Max",
              "anchor": "Vec3.Max",
              "recv": "Vec3",
              "decl": "func (v Vec3) Max(b Vec3) Vec3",
              "doc": "Max returns the component-wise maximum of v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 212
            },
            {
              "name": "Min",
              "anchor": "Vec3.Min",
              "recv": "Vec3",
              "decl": "func (v Vec3) Min(b Vec3) Vec3",
              "doc": "Min returns the component-wise minimum of v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 207
            },
            {
              "name": "Mul",
              "anchor": "Vec3.Mul",
              "recv": "Vec3",
              "decl": "func (v Vec3) Mul(b Vec3) Vec3",
              "doc": "Mul returns the component-wise product of v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 156
            },
            {
              "name": "Neg",
              "anchor": "Vec3.Neg",
              "recv": "Vec3",
              "decl": "func (v Vec3) Neg() Vec3",
              "doc": "Neg returns -v.\n",
              "file": "pkg/math3d/vec.go",
              "line": 165
            },
            {
              "name": "Norm",
              "anchor": "Vec3.Norm",
              "recv": "Vec3",
              "decl": "func (v Vec3) Norm() Vec3",
              "doc": "Norm returns the unit vector in the direction of v, or the zero vector if v has zero length.\n",
              "file": "pkg/math3d/vec.go",
              "line": 186
            },
            {
              "name": "Scale",
              "anchor": "Vec3.Scale",
              "recv": "Vec3",
              "decl": "func (v Vec3) Scale(s float32) Vec3",
              "doc": "Scale returns v multiplied by scalar s.\n",
              "file": "pkg/math3d/vec.go",
              "line": 162
            },
            {
              "name": "Sub",
              "anchor": "Vec3.Sub",
              "recv": "Vec3",
              "decl": "func (v Vec3) Sub(b Vec3) Vec3",
              "doc": "Sub returns v - b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 153
            },
            {
              "name": "Vec4",
              "anchor": "Vec3.Vec4",
              "recv": "Vec3",
              "decl": "func (v Vec3) Vec4(w float32) Vec4",
              "doc": "Vec4 promotes v to a Vec4 with the given w component (use 1 for points, 0 for directions).\n",
              "file": "pkg/math3d/vec.go",
              "line": 230
            },
            {
              "name": "XY",
              "anchor": "Vec3.XY",
              "recv": "Vec3",
              "decl": "func (v Vec3) XY() Vec2",
              "doc": "XY returns the X and Y components as a Vec2.\n",
              "file": "pkg/math3d/vec.go",
              "line": 227
            }
          ]
        },
        {
          "name": "Vec4",
          "anchor": "Vec4",
          "decl": "type Vec4 struct {\n\tX, Y, Z, W float32\n}",
          "doc": "Vec4 is a 4-component float32 vector, commonly used for homogeneous coordinates and colors.\n",
          "file": "pkg/math3d/vec.go",
          "line": 233,
          "members": [
            {
              "name": "X",
              "anchor": "Vec4.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Vec4.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Vec4.Z",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "Vec4.W",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Vec4One",
              "anchor": "Vec4One",
              "decl": "func Vec4One() Vec4",
              "doc": "Vec4One returns (1, 1, 1, 1).\n",
              "file": "pkg/math3d/vec.go",
              "line": 241
            },
            {
              "name": "Vec4Zero",
              "anchor": "Vec4Zero",
              "decl": "func Vec4Zero() Vec4",
              "doc": "Vec4Zero returns the zero 4D vector (0, 0, 0, 0).\n",
              "file": "pkg/math3d/vec.go",
              "line": 238
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Vec4.Add",
              "recv": "Vec4",
              "decl": "func (v Vec4) Add(b Vec4) Vec4",
              "doc": "Add returns v + b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 244
            },
            {
              "name": "ApproxEqual",
              "anchor": "Vec4.ApproxEqual",
              "recv": "Vec4",
              "decl": "func (v Vec4) ApproxEqual(b Vec4, eps float32) bool",
              "doc": "ApproxEqual reports whether each component of v is within eps of b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 312
            },
            {
              "name": "Clamp",
              "anchor": "Vec4.Clamp",
              "recv": "Vec4",
              "decl": "func (v Vec4) Clamp(lo, hi Vec4) Vec4",
              "doc": "Clamp restricts each component of v to [lo, hi].\n",
              "file": "pkg/math3d/vec.go",
              "line": 302
            },
            {
              "name": "Dist",
              "anchor": "Vec4.Dist",
              "recv": "Vec4",
              "decl": "func (v Vec4) Dist(b Vec4) float32",
              "doc": "Dist returns the Euclidean distance between v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 284
            },
            {
              "name": "DistSq",
              "anchor": "Vec4.DistSq",
              "recv": "Vec4",
              "decl": "func (v Vec4) DistSq(b Vec4) float32",
              "doc": "DistSq returns the squared Euclidean distance between v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 281
            },
            {
              "name": "Div",
              "anchor": "Vec4.Div",
              "recv": "Vec4",
              "decl": "func (v Vec4) Div(b Vec4) Vec4",
              "doc": "Div returns the component-wise quotient v / b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 253
            },
            {
              "name": "Dot",
              "anchor": "Vec4.Dot",
              "recv": "Vec4",
              "decl": "func (v Vec4) Dot(b Vec4) float32",
              "doc": "Dot returns the dot product v · b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 262
            },
            {
              "name": "Len",
              "anchor": "Vec4.Len",
              "recv": "Vec4",
              "decl": "func (v Vec4) Len() float32",
              "doc": "Len returns the Euclidean length of v.\n",
              "file": "pkg/math3d/vec.go",
              "line": 268
            },
            {
              "name": "LenSq",
              "anchor": "Vec4.LenSq",
              "recv": "Vec4",
              "decl": "func (v Vec4) LenSq() float32",
              "doc": "LenSq returns the squared Euclidean length of v.\n",
              "file": "pkg/math3d/vec.go",
              "line": 265
            },
            {
              "name": "Lerp",
              "anchor": "Vec4.Lerp",
              "recv": "Vec4",
              "decl": "func (v Vec4) Lerp(b Vec4, t float32) Vec4",
              "doc": "Lerp linearly interpolates from v (t=0) to b (t=1).\n",
              "file": "pkg/math3d/vec.go",
              "line": 287
            },
            {
              "name": "Max",
              "anchor": "Vec4.Max",
              "recv": "Vec4",
              "decl": "func (v Vec4) Max(b Vec4) Vec4",
              "doc": "Max returns the component-wise maximum of v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 297
            },
            {
              "name": "Min",
              "anchor": "Vec4.Min",
              "recv": "Vec4",
              "decl": "func (v Vec4) Min(b Vec4) Vec4",
              "doc": "Min returns the component-wise minimum of v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 292
            },
            {
              "name": "Mul",
              "anchor": "Vec4.Mul",
              "recv": "Vec4",
              "decl": "func (v Vec4) Mul(b Vec4) Vec4",
              "doc": "Mul returns the component-wise product of v and b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 250
            },
            {
              "name": "Neg",
              "anchor": "Vec4.Neg",
              "recv": "Vec4",
              "decl": "func (v Vec4) Neg() Vec4",
              "doc": "Neg returns -v.\n",
              "file": "pkg/math3d/vec.go",
              "line": 259
            },
            {
              "name": "Norm",
              "anchor": "Vec4.Norm",
              "recv": "Vec4",
              "decl": "func (v Vec4) Norm() Vec4",
              "doc": "Norm returns the unit vector in the direction of v, or the zero vector if v has zero length.\n",
              "file": "pkg/math3d/vec.go",
              "line": 271
            },
            {
              "name": "Scale",
              "anchor": "Vec4.Scale",
              "recv": "Vec4",
              "decl": "func (v Vec4) Scale(s float32) Vec4",
              "doc": "Scale returns v multiplied by scalar s.\n",
              "file": "pkg/math3d/vec.go",
              "line": 256
            },
            {
              "name": "Sub",
              "anchor": "Vec4.Sub",
              "recv": "Vec4",
              "decl": "func (v Vec4) Sub(b Vec4) Vec4",
              "doc": "Sub returns v - b.\n",
              "file": "pkg/math3d/vec.go",
              "line": 247
            },
            {
              "name": "XYZ",
              "anchor": "Vec4.XYZ",
              "recv": "Vec4",
              "decl": "func (v Vec4) XYZ() Vec3",
              "doc": "XYZ returns the X, Y, and Z components as a Vec3.\n",
              "file": "pkg/math3d/vec.go",
              "line": 320
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/mcp",
      "name": "mcp",
      "dir": "pkg/mcp",
      "page": "pkg/mcp",
      "synopsis": "Package mcp exposes a running NSGo game's state to coding agents over MCP through github.com/nsgo-dev/nsgo/automation.",
      "doc": "Package mcp exposes a running NSGo game's state to coding agents over MCP through github.com/nsgo-dev/nsgo/automation.\n\nNSGo's built-in `nsgo mcp` server inspects native views, whereas a game draws into a single Canvas or GPU view. Attaching a [Bridge] to a [core.Scope] registers game-specific tools via [automation.Register] so `nsgo mcp` serves them automatically alongside the built-in tools:\n\n  - game_scenes_list: list active scenes on the scene stack and any registered named scenes, including the current scene and transition progress.\n  - game_layers_list: list layers of a scene in draw order with visibility, z-order, coordinate space, parallax, depth sort and item counts.\n  - game_entities_list: list live entities with stable generational references (\"entity:<index>:<generation>\") across steps, hierarchy links and component names.\n  - game_entity_inspect: inspect a single live entity by its stable reference, returning metadata, hierarchy links and all readable component values.\n  - game_component_get: read one component's value on a live entity by reference and component name.\n  - game_loop_status: report the game loop's paused state, effective time scale, fixed step rate, total steps, simulated game time and whether random seeding is configured.\n  - game_loop_pause: pause the game loop without accumulating a catch-up backlog.\n  - game_loop_resume: resume a paused game loop.\n  - game_loop_step: synchronously advance the game loop by N fixed updates (1..3600, default 1), advancing exact simulated game time.\n  - game_loop_time_scale: set the game loop's simulation time scale (finite, >= 0; 0 resets to the default 1x speed).\n  - game_loop_seed: set the deterministic random seed via Config.Random, Config.RandomStreams and/or Config.SetSeed.\n  - game_input_action: inject a press, release, tap, or analog axis value for a named action on [input.Actions].\n  - game_input_axis: inject or clear 1D or multi-axis analog values in [-1, 1] on [input.Actions].\n  - game_input_pointer: inject a pointer press, release, move, or click in game (or camera world) coordinates, mapped through [screen.Viewport] and hit-tested/dispatched on the active [scene.Scene].\n  - game_input_actions_list: list configured action and axis names with their current step state.\n  - game_tunables_list: list registered debug console tunables with their type, current value, default and numeric bounds.\n  - game_tunable_get: read one registered tunable's current value and metadata by name.\n  - game_tunable_set: update one registered tunable's value with type checking and range validation or optional clamping.\n  - game_console_commands_list: list built-in and registered debug console commands with their usage descriptions.\n  - game_console_exec: execute a debug console command line and return its structured status, output text, output lines and error.\n  - game_prefabs_list: list registered prefabs available to game_entity_spawn.\n  - game_entity_spawn: spawn a registered prefab or empty entity with optional parent, position and component overrides.\n  - game_entity_destroy: destroy a live entity by stable reference with an optional hierarchy child policy.\n  - game_component_set: set or patch a component's value on a live entity so the change takes effect on the next simulation step.\n  - game_component_remove: remove a component from a live entity.\n  - game_replay_status: report input recording and playback status, frame progress and saved recordings.\n  - game_replay_record_start: start recording per-step inputs into a named recording.\n  - game_replay_record_stop: stop the active recording, store it and return its deterministic YAML text and summary.\n  - game_replay_play: replay a stored or inline YAML recording deterministically, optionally resetting and running to completion.\n  - game_replay_stop: stop an active replay playback cleanly.\n  - game_replay_list: list stored recordings with frame counts, seeds, step rates and metadata.\n  - game_perf_readout: read live frame timing (FPS, frame/update/draw costs and percentiles), draw statistics, allocations per frame, heap/GC counters, asset memory, and optional frame history or profiler zones matching the debug overlay.\n  - game_perf_zones: list named profiler timing zones sorted by recent per-frame cost.\n  - game_perf_reset: reset accumulated debug overlay frame timings, pushed draw statistics, profiler zones and GC monitor history.\n  - game_assets_list: list loaded asset groups, asset keys/types, load states, and estimated memory usage in bytes.\n  - game_asset_reload: reload a named asset, URI, or path (or all loaded assets) in place and report structured reload diagnostics.\n  - game_assets_reload_group: reload every loaded asset in a named asset group in place.\n  - game_screenshot: capture the game view as PNG, optionally with aligned sprite bounds, physics collision shapes, reference grid, camera frame and labels drawn on top.\n\nComponents registered on an [entities.World] with [entities.RegisterCodec] are readable and editable automatically. Transient or non-saved components can also be exposed with [RegisterComponent], [RegisterComponentFunc], [RegisterMutableComponent] or [RegisterComponentEditor], and built-in [entities.Transform2D], [entities.WorldTransform2D] and [sceneformat.ObjectRef] components are surfaced automatically when present and not already registered under another name. Prefabs can be registered via [Config.Prefabs], [Bridge.RegisterPrefab], [Bridge.RegisterEntityPrefab] or [Bridge.RegisterScenePrefab].\n\nLike [automation.Register], attachment is active in `nsgo dev -automation` and test builds (`nsgo test`) and is a no-op in ordinary and release builds. Call [Attach], [Bridge.Attach] and [Bridge.Detach] on the engine goroutine.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "ToolAssetsList",
              "anchor": "ToolAssetsList"
            },
            {
              "name": "ToolAssetReload",
              "anchor": "ToolAssetReload"
            },
            {
              "name": "ToolAssetsReloadGroup",
              "anchor": "ToolAssetsReloadGroup"
            }
          ],
          "decl": "const (\n\t// ToolAssetsList lists asset groups, asset keys/types, load states, and estimated memory usage in bytes.\n\tToolAssetsList = \"game_assets_list\"\n\t// ToolAssetReload reloads a single named asset, URI, or path (or all loaded assets) in place.\n\tToolAssetReload = \"game_asset_reload\"\n\t// ToolAssetsReloadGroup reloads every loaded asset in a named asset group in place.\n\tToolAssetsReloadGroup = \"game_assets_reload_group\"\n)",
          "doc": "Asset and hot-reload tool names registered by Bridge with github.com/nsgo-dev/nsgo/automation.\n",
          "file": "pkg/mcp/assets.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ToolTunablesList",
              "anchor": "ToolTunablesList"
            },
            {
              "name": "ToolTunableGet",
              "anchor": "ToolTunableGet"
            },
            {
              "name": "ToolTunableSet",
              "anchor": "ToolTunableSet"
            },
            {
              "name": "ToolConsoleCommandsList",
              "anchor": "ToolConsoleCommandsList"
            },
            {
              "name": "ToolConsoleExec",
              "anchor": "ToolConsoleExec"
            }
          ],
          "decl": "const (\n\t// ToolTunablesList lists registered tunables on the debug console with values, defaults and bounds.\n\tToolTunablesList = \"game_tunables_list\"\n\t// ToolTunableGet reads one registered tunable's current value and metadata by name.\n\tToolTunableGet = \"game_tunable_get\"\n\t// ToolTunableSet updates one registered tunable's value with type and range checking.\n\tToolTunableSet = \"game_tunable_set\"\n\t// ToolConsoleCommandsList lists built-in and custom commands registered on the debug console.\n\tToolConsoleCommandsList = \"game_console_commands_list\"\n\t// ToolConsoleExec runs a command string through the debug console and returns its output.\n\tToolConsoleExec = \"game_console_exec\"\n)",
          "doc": "Tool names for debug console and tunable tools registered by Bridge.\n",
          "file": "pkg/mcp/console.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ToolPrefabsList",
              "anchor": "ToolPrefabsList"
            },
            {
              "name": "ToolEntitySpawn",
              "anchor": "ToolEntitySpawn"
            },
            {
              "name": "ToolEntityDestroy",
              "anchor": "ToolEntityDestroy"
            },
            {
              "name": "ToolComponentSet",
              "anchor": "ToolComponentSet"
            },
            {
              "name": "ToolComponentRemove",
              "anchor": "ToolComponentRemove"
            }
          ],
          "decl": "const (\n\t// ToolPrefabsList lists registered prefabs available to game_entity_spawn.\n\tToolPrefabsList = \"game_prefabs_list\"\n\t// ToolEntitySpawn spawns a registered prefab or an empty entity with optional parent, position and component overrides.\n\tToolEntitySpawn = \"game_entity_spawn\"\n\t// ToolEntityDestroy destroys a live entity by stable reference with an optional hierarchy child policy.\n\tToolEntityDestroy = \"game_entity_destroy\"\n\t// ToolComponentSet sets or patches one component's value on a live entity.\n\tToolComponentSet = \"game_component_set\"\n\t// ToolComponentRemove removes one component from a live entity.\n\tToolComponentRemove = \"game_component_remove\"\n)",
          "doc": "Tool names for object mutation registered by Bridge with github.com/nsgo-dev/nsgo/automation.\n",
          "file": "pkg/mcp/edit.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ToolInputAction",
              "anchor": "ToolInputAction"
            },
            {
              "name": "ToolInputAxis",
              "anchor": "ToolInputAxis"
            },
            {
              "name": "ToolInputPointer",
              "anchor": "ToolInputPointer"
            },
            {
              "name": "ToolInputActionsList",
              "anchor": "ToolInputActionsList"
            }
          ],
          "decl": "const (\n\t// ToolInputAction injects a press, release, tap, or analog value for a named input action.\n\tToolInputAction = \"game_input_action\"\n\t// ToolInputAxis injects or clears one or more analog axis values in [-1, 1].\n\tToolInputAxis = \"game_input_axis\"\n\t// ToolInputPointer injects a pointer press, release, move, or click in game (or world) coordinates mapped through the viewport.\n\tToolInputPointer = \"game_input_pointer\"\n\t// ToolInputActionsList lists configured actions and axes along with their current step state.\n\tToolInputActionsList = \"game_input_actions_list\"\n)",
          "doc": "Input injection tool names registered by Bridge with github.com/nsgo-dev/nsgo/automation.\n",
          "file": "pkg/mcp/input.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ToolLoopStatus",
              "anchor": "ToolLoopStatus"
            },
            {
              "name": "ToolLoopPause",
              "anchor": "ToolLoopPause"
            },
            {
              "name": "ToolLoopResume",
              "anchor": "ToolLoopResume"
            },
            {
              "name": "ToolLoopStep",
              "anchor": "ToolLoopStep"
            },
            {
              "name": "ToolLoopTimeScale",
              "anchor": "ToolLoopTimeScale"
            },
            {
              "name": "ToolLoopSeed",
              "anchor": "ToolLoopSeed"
            }
          ],
          "decl": "const (\n\t// ToolLoopStatus reports the game loop's current paused state, time scale, step rate, step count and simulated game time.\n\tToolLoopStatus = \"game_loop_status\"\n\t// ToolLoopPause pauses the game loop's fixed updates without accumulating a catch-up backlog.\n\tToolLoopPause = \"game_loop_pause\"\n\t// ToolLoopResume resumes a paused game loop.\n\tToolLoopResume = \"game_loop_resume\"\n\t// ToolLoopStep synchronously advances the game loop by a requested number of fixed updates.\n\tToolLoopStep = \"game_loop_step\"\n\t// ToolLoopTimeScale sets the game loop's simulation time scale.\n\tToolLoopTimeScale = \"game_loop_time_scale\"\n\t// ToolLoopSeed sets the game's deterministic random seed.\n\tToolLoopSeed = \"game_loop_seed\"\n)",
          "doc": "Loop-control tool names registered by Bridge with github.com/nsgo-dev/nsgo/automation.\n",
          "file": "pkg/mcp/loop.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ToolScenesList",
              "anchor": "ToolScenesList"
            },
            {
              "name": "ToolLayersList",
              "anchor": "ToolLayersList"
            },
            {
              "name": "ToolEntitiesList",
              "anchor": "ToolEntitiesList"
            },
            {
              "name": "ToolEntityInspect",
              "anchor": "ToolEntityInspect"
            },
            {
              "name": "ToolComponentGet",
              "anchor": "ToolComponentGet"
            }
          ],
          "decl": "const (\n\t// ToolScenesList lists active scenes on the stack and any registered named scenes.\n\tToolScenesList = \"game_scenes_list\"\n\t// ToolLayersList lists layers in a scene in draw order.\n\tToolLayersList = \"game_layers_list\"\n\t// ToolEntitiesList lists live entities with stable generational references.\n\tToolEntitiesList = \"game_entities_list\"\n\t// ToolEntityInspect reads a single live entity's metadata, hierarchy and component values.\n\tToolEntityInspect = \"game_entity_inspect\"\n\t// ToolComponentGet reads one component's value on a live entity.\n\tToolComponentGet = \"game_component_get\"\n)",
          "doc": "Tool names registered by Bridge with github.com/nsgo-dev/nsgo/automation.\n",
          "file": "pkg/mcp/mcp.go",
          "line": 34
        },
        {
          "idents": [
            {
              "name": "ToolPerfReadout",
              "anchor": "ToolPerfReadout"
            },
            {
              "name": "ToolPerfZones",
              "anchor": "ToolPerfZones"
            },
            {
              "name": "ToolPerfReset",
              "anchor": "ToolPerfReset"
            }
          ],
          "decl": "const (\n\t// ToolPerfReadout reads live frame timing, draw statistics, allocation/GC telemetry, and optional frame history or profiler zones.\n\tToolPerfReadout = \"game_perf_readout\"\n\t// ToolPerfZones lists named profiler timing zones sorted by recent cost.\n\tToolPerfZones = \"game_perf_zones\"\n\t// ToolPerfReset resets accumulated overlay frame stats, profiler zones, and GC monitor history.\n\tToolPerfReset = \"game_perf_reset\"\n)",
          "doc": "Performance readout tool names registered by Bridge with github.com/nsgo-dev/nsgo/automation.\n",
          "file": "pkg/mcp/perf.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "ToolReplayStatus",
              "anchor": "ToolReplayStatus"
            },
            {
              "name": "ToolReplayRecordStart",
              "anchor": "ToolReplayRecordStart"
            },
            {
              "name": "ToolReplayRecordStop",
              "anchor": "ToolReplayRecordStop"
            },
            {
              "name": "ToolReplayPlay",
              "anchor": "ToolReplayPlay"
            },
            {
              "name": "ToolReplayStop",
              "anchor": "ToolReplayStop"
            },
            {
              "name": "ToolReplayList",
              "anchor": "ToolReplayList"
            }
          ],
          "decl": "const (\n\t// ToolReplayStatus reports current recording/playback state, frame progress and saved recording names.\n\tToolReplayStatus = \"game_replay_status\"\n\t// ToolReplayRecordStart starts recording fixed-step inputs into a named recording.\n\tToolReplayRecordStart = \"game_replay_record_start\"\n\t// ToolReplayRecordStop stops the active recording, stores it and returns its deterministic YAML text and summary.\n\tToolReplayRecordStop = \"game_replay_record_stop\"\n\t// ToolReplayPlay starts replaying a stored recording by name or an inline YAML recording.\n\tToolReplayPlay = \"game_replay_play\"\n\t// ToolReplayStop stops an active replay playback.\n\tToolReplayStop = \"game_replay_stop\"\n\t// ToolReplayList lists stored recordings with their frame counts, seeds, step rates and metadata.\n\tToolReplayList = \"game_replay_list\"\n)",
          "doc": "Replay tool names registered by Bridge with github.com/nsgo-dev/nsgo/automation.\n",
          "file": "pkg/mcp/replay.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "MaxLoopSteps",
              "anchor": "MaxLoopSteps"
            }
          ],
          "decl": "const MaxLoopSteps = 3600",
          "doc": "MaxLoopSteps is the maximum number of fixed updates a single game_loop_step call may advance.\n",
          "file": "pkg/mcp/loop.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "ToolScreenshot",
              "anchor": "ToolScreenshot"
            }
          ],
          "decl": "const ToolScreenshot = \"game_screenshot\"",
          "doc": "ToolScreenshot captures the game view as a PNG image, optionally with aligned sprite bounds, physics collision shapes, reference grid, camera frame and label overlays drawn on top.\n",
          "file": "pkg/mcp/screenshot.go",
          "line": 30
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrEmptyAssetKey",
              "anchor": "ErrEmptyAssetKey"
            },
            {
              "name": "ErrDuplicateAsset",
              "anchor": "ErrDuplicateAsset"
            }
          ],
          "decl": "var (\n\t// ErrEmptyAssetKey reports registering a custom asset with an empty key.\n\tErrEmptyAssetKey = errors.New(\"mcp: empty asset key\")\n\t// ErrDuplicateAsset reports registering a custom asset key that is already registered on the Bridge.\n\tErrDuplicateAsset = errors.New(\"mcp: duplicate asset registration\")\n)",
          "doc": "",
          "file": "pkg/mcp/assets.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "ErrEmptyPrefabName",
              "anchor": "ErrEmptyPrefabName"
            },
            {
              "name": "ErrDuplicatePrefab",
              "anchor": "ErrDuplicatePrefab"
            }
          ],
          "decl": "var (\n\t// ErrEmptyPrefabName reports registering a prefab with an empty name.\n\tErrEmptyPrefabName = errors.New(\"mcp: empty prefab name\")\n\t// ErrDuplicatePrefab reports registering a prefab name that is already registered on the Bridge.\n\tErrDuplicatePrefab = errors.New(\"mcp: duplicate prefab registration\")\n)",
          "doc": "",
          "file": "pkg/mcp/edit.go",
          "line": 34
        },
        {
          "idents": [
            {
              "name": "ErrNilBridge",
              "anchor": "ErrNilBridge"
            },
            {
              "name": "ErrAlreadyAttached",
              "anchor": "ErrAlreadyAttached"
            },
            {
              "name": "ErrEmptyComponentName",
              "anchor": "ErrEmptyComponentName"
            },
            {
              "name": "ErrDuplicateComponent",
              "anchor": "ErrDuplicateComponent"
            }
          ],
          "decl": "var (\n\t// ErrNilBridge reports an operation attempted on a nil Bridge.\n\tErrNilBridge = errors.New(\"mcp: nil bridge\")\n\t// ErrAlreadyAttached reports calling Bridge.Attach on a Bridge that is already attached to a live scope.\n\tErrAlreadyAttached = errors.New(\"mcp: bridge is already attached\")\n\t// ErrEmptyComponentName reports registering a component inspector with an empty name.\n\tErrEmptyComponentName = errors.New(\"mcp: empty component name\")\n\t// ErrDuplicateComponent reports registering a component name that is already registered on the Bridge.\n\tErrDuplicateComponent = errors.New(\"mcp: duplicate component registration\")\n)",
          "doc": "",
          "file": "pkg/mcp/mcp.go",
          "line": 47
        },
        {
          "idents": [
            {
              "name": "ErrReplayNotConfigured",
              "anchor": "ErrReplayNotConfigured"
            },
            {
              "name": "ErrAlreadyRecording",
              "anchor": "ErrAlreadyRecording"
            },
            {
              "name": "ErrNotRecording",
              "anchor": "ErrNotRecording"
            },
            {
              "name": "ErrAlreadyReplaying",
              "anchor": "ErrAlreadyReplaying"
            },
            {
              "name": "ErrNotReplaying",
              "anchor": "ErrNotReplaying"
            }
          ],
          "decl": "var (\n\t// ErrReplayNotConfigured reports a replay tool call on a Bridge without a configured ReplayController.\n\tErrReplayNotConfigured = errors.New(\"mcp: no replay controller configured\")\n\t// ErrAlreadyRecording reports starting a recording while another recording is already active.\n\tErrAlreadyRecording = errors.New(\"mcp: recording is already in progress\")\n\t// ErrNotRecording reports stopping a recording when none is active.\n\tErrNotRecording = errors.New(\"mcp: no recording in progress\")\n\t// ErrAlreadyReplaying reports starting a recording or replay while playback is already in progress.\n\tErrAlreadyReplaying = errors.New(\"mcp: replay is already in progress\")\n\t// ErrNotReplaying reports stopping a replay when none is active.\n\tErrNotReplaying = errors.New(\"mcp: no replay in progress\")\n)",
          "doc": "",
          "file": "pkg/mcp/replay.go",
          "line": 36
        }
      ],
      "funcs": [
        {
          "name": "FormatEntityRef",
          "anchor": "FormatEntityRef",
          "decl": "func FormatEntityRef(e entities.Entity) string",
          "doc": "FormatEntityRef formats e as a stable generational reference string (\"entity:<index>:<generation>\") usable across MCP calls and simulation steps.\nIt returns \"\" for entities.Zero.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 24
        },
        {
          "name": "ParseEntityRef",
          "anchor": "ParseEntityRef",
          "decl": "func ParseEntityRef(ref string) (entities.Entity, error)",
          "doc": "ParseEntityRef parses a reference returned by FormatEntityRef back into an entities.Entity handle.\nIt refuses malformed strings and zero generations.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 33
        },
        {
          "name": "RegisterComponent",
          "anchor": "RegisterComponent",
          "decl": "func RegisterComponent[T any](b *Bridge, name string) error",
          "doc": "RegisterComponent registers a typed component inspector for component type T under name on b.\n\nUse this to expose runtime components that are not registered with entities.RegisterCodec on the World, or to override how a component is named or inspected.\n",
          "file": "pkg/mcp/mcp.go",
          "line": 379
        },
        {
          "name": "RegisterComponentEditor",
          "anchor": "RegisterComponentEditor",
          "decl": "func RegisterComponentEditor[T any](b *Bridge, name string, apply func(w *entities.World, e entities.Entity, v T) error) error",
          "doc": "RegisterComponentEditor registers a typed component editor for component type T under name on b.\n\nWhen name is not yet registered on b, it also registers inspection and removal for T. When name was previously registered read-only with RegisterComponent[T] for the same type T, it attaches the editor to that registration. It refuses a name registered with RegisterComponentFunc, whose reader may expose data that is not stored as T, and a name registered for another type. apply receives the strictly decoded and finite-validated value and may enforce domain invariants or synchronize secondary runtime state before writing.\n",
          "file": "pkg/mcp/edit.go",
          "line": 402
        },
        {
          "name": "RegisterComponentFunc",
          "anchor": "RegisterComponentFunc",
          "decl": "func RegisterComponentFunc(b *Bridge, name string, read func(w *entities.World, e entities.Entity) (any, bool, error)) error",
          "doc": "RegisterComponentFunc registers a custom component reader under name on b.\nread returns (value, true, nil) when entity e carries the component, (nil, false, nil) when absent, or an error.\n",
          "file": "pkg/mcp/mcp.go",
          "line": 416
        },
        {
          "name": "RegisterMutableComponent",
          "anchor": "RegisterMutableComponent",
          "decl": "func RegisterMutableComponent[T any](b *Bridge, name string) error",
          "doc": "RegisterMutableComponent registers component type T under name on b for both inspection (game_entities_list, game_entity_inspect, game_component_get) and mutation (game_component_set, game_component_remove, game_entity_spawn).\n\nEdits are strictly decoded with DisallowUnknownFields, validated against NaN/Inf floats, and written with entities.Set[T].\n",
          "file": "pkg/mcp/edit.go",
          "line": 383
        }
      ],
      "types": [
        {
          "name": "AssetEntry",
          "anchor": "AssetEntry",
          "decl": "type AssetEntry struct {\n\tKey      string `json:\"key\"`\n\tKind     string `json:\"kind\"`\n\tURI      string `json:\"uri,omitempty\"`\n\tImageURI string `json:\"image_uri,omitempty\"`\n\tLoaded   bool   `json:\"loaded\"`\n\tBytes    int64  `json:\"bytes\"`\n\tFrames   int    `json:\"frames,omitempty\"`\n}",
          "doc": "AssetEntry describes one asset within an asset group returned by game_assets_list.\n",
          "file": "pkg/mcp/assets.go",
          "line": 61,
          "members": [
            {
              "name": "Key",
              "anchor": "AssetEntry.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AssetEntry.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "URI",
              "anchor": "AssetEntry.URI",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageURI",
              "anchor": "AssetEntry.ImageURI",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Loaded",
              "anchor": "AssetEntry.Loaded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "AssetEntry.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "AssetEntry.Frames",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetGroupSummary",
          "anchor": "AssetGroupSummary",
          "decl": "type AssetGroupSummary struct {\n\tName   string       `json:\"name\"`\n\tSource string       `json:\"source\"`\n\tState  string       `json:\"state\"`\n\tLoaded int          `json:\"loaded\"`\n\tTotal  int          `json:\"total\"`\n\tBytes  int64        `json:\"bytes\"`\n\tError  string       `json:\"error,omitempty\"`\n\tAssets []AssetEntry `json:\"assets\"`\n}",
          "doc": "AssetGroupSummary describes one asset group and its estimated memory usage returned by game_assets_list.\n",
          "file": "pkg/mcp/assets.go",
          "line": 72,
          "members": [
            {
              "name": "Name",
              "anchor": "AssetGroupSummary.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "AssetGroupSummary.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "AssetGroupSummary.State",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Loaded",
              "anchor": "AssetGroupSummary.Loaded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Total",
              "anchor": "AssetGroupSummary.Total",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "AssetGroupSummary.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "AssetGroupSummary.Error",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Assets",
              "anchor": "AssetGroupSummary.Assets",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetReloadResult",
          "anchor": "AssetReloadResult",
          "decl": "type AssetReloadResult struct {\n\tReloaded   bool           `json:\"reloaded\"`\n\tKey        string         `json:\"key,omitempty\"`\n\tGroup      string         `json:\"group,omitempty\"`\n\tKind       string         `json:\"kind,omitempty\"`\n\tBytes      int64          `json:\"bytes\"`\n\tDurationMS float64        `json:\"duration_ms\"`\n\tRevision   int            `json:\"revision,omitempty\"`\n\tItems      []ReloadedItem `json:\"items,omitempty\"`\n\tError      string         `json:\"error,omitempty\"`\n}",
          "doc": "AssetReloadResult is the JSON result of game_asset_reload.\n",
          "file": "pkg/mcp/assets.go",
          "line": 132,
          "members": [
            {
              "name": "Reloaded",
              "anchor": "AssetReloadResult.Reloaded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Key",
              "anchor": "AssetReloadResult.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Group",
              "anchor": "AssetReloadResult.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "AssetReloadResult.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "AssetReloadResult.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DurationMS",
              "anchor": "AssetReloadResult.DurationMS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "AssetReloadResult.Revision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Items",
              "anchor": "AssetReloadResult.Items",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "AssetReloadResult.Error",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetsListResult",
          "anchor": "AssetsListResult",
          "decl": "type AssetsListResult struct {\n\tRevision   int                 `json:\"revision,omitempty\"`\n\tGroupCount int                 `json:\"group_count\"`\n\tAssetCount int                 `json:\"asset_count\"`\n\tTotalBytes int64               `json:\"total_bytes\"`\n\tGroups     []AssetGroupSummary `json:\"groups\"`\n}",
          "doc": "AssetsListResult is the JSON result of game_assets_list.\n",
          "file": "pkg/mcp/assets.go",
          "line": 84,
          "members": [
            {
              "name": "Revision",
              "anchor": "AssetsListResult.Revision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GroupCount",
              "anchor": "AssetsListResult.GroupCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AssetCount",
              "anchor": "AssetsListResult.AssetCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalBytes",
              "anchor": "AssetsListResult.TotalBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Groups",
              "anchor": "AssetsListResult.Groups",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AssetsReloadGroupResult",
          "anchor": "AssetsReloadGroupResult",
          "decl": "type AssetsReloadGroupResult struct {\n\tGroup      string         `json:\"group\"`\n\tReloaded   bool           `json:\"reloaded\"`\n\tCount      int            `json:\"count\"`\n\tFailed     int            `json:\"failed,omitempty\"`\n\tSkipped    int            `json:\"skipped,omitempty\"`\n\tBytes      int64          `json:\"bytes\"`\n\tDurationMS float64        `json:\"duration_ms\"`\n\tRevision   int            `json:\"revision,omitempty\"`\n\tItems      []ReloadedItem `json:\"items\"`\n\tError      string         `json:\"error,omitempty\"`\n}",
          "doc": "AssetsReloadGroupResult is the JSON result of game_assets_reload_group.\n",
          "file": "pkg/mcp/assets.go",
          "line": 145,
          "members": [
            {
              "name": "Group",
              "anchor": "AssetsReloadGroupResult.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reloaded",
              "anchor": "AssetsReloadGroupResult.Reloaded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "AssetsReloadGroupResult.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Failed",
              "anchor": "AssetsReloadGroupResult.Failed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Skipped",
              "anchor": "AssetsReloadGroupResult.Skipped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "AssetsReloadGroupResult.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DurationMS",
              "anchor": "AssetsReloadGroupResult.DurationMS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "AssetsReloadGroupResult.Revision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Items",
              "anchor": "AssetsReloadGroupResult.Items",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "AssetsReloadGroupResult.Error",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Bridge",
          "anchor": "Bridge",
          "decl": "type Bridge struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Bridge exposes a running game's subsystems to nsgo mcp via automation.Register.\n\nCreate a Bridge with New or Attach, optionally register additional component inspectors, editors or prefabs, and attach it to a core.Scope on the engine goroutine. Disposing the scope or calling Detach unregisters every tool automatically.\n",
          "file": "pkg/mcp/mcp.go",
          "line": 217,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Attach",
              "anchor": "Attach",
              "decl": "func Attach(cx *core.Scope, cfg Config) (*Bridge, error)",
              "doc": "Attach constructs a Bridge for cfg and registers its tools on cx until cx is disposed.\nCall it on the engine goroutine.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 250
            },
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(cfg Config) *Bridge",
              "doc": "New constructs a Bridge for cfg without registering its tools yet.\nCall Bridge.Attach on the engine goroutine to register its tools on a core.Scope.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 234
            }
          ],
          "methods": [
            {
              "name": "Attach",
              "anchor": "Bridge.Attach",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) Attach(cx *core.Scope) error",
              "doc": "Attach registers all of b's tools on a child scope of cx via automation.Register.\nIf any registration fails, all tools registered by this call are cleaned up before returning the error.\nCall Attach on the engine goroutine.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 261
            },
            {
              "name": "Attached",
              "anchor": "Bridge.Attached",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) Attached() bool",
              "doc": "Attached reports whether b is currently attached to a live scope.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 310
            },
            {
              "name": "Detach",
              "anchor": "Bridge.Detach",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) Detach()",
              "doc": "Detach unregisters all tools registered by b on its attached scope.\nCalling Detach when b is nil or not attached is a no-op.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 297
            },
            {
              "name": "RegisterAsset",
              "anchor": "Bridge.RegisterAsset",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) RegisterAsset(asset CustomAsset) error",
              "doc": "RegisterAsset registers a custom game-managed asset on b for game_assets_list and game_asset_reload.\n",
              "file": "pkg/mcp/assets.go",
              "line": 220
            },
            {
              "name": "RegisterAtlas",
              "anchor": "Bridge.RegisterAtlas",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) RegisterAtlas(key, group, jsonPath string, atlas *sprite.Atlas, readFile func(ctx context.Context, path string) ([]byte, error)) error",
              "doc": "RegisterAtlas registers a standalone live *sprite.Atlas (not owned by an assets.Manager) on b so game_assets_list reports its frame count and estimated memory, and game_asset_reload re-parses jsonPath via readFile and updates *atlas in place without replacing the pointer.\n",
              "file": "pkg/mcp/assets.go",
              "line": 246
            },
            {
              "name": "RegisterEntityPrefab",
              "anchor": "Bridge.RegisterEntityPrefab",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) RegisterEntityPrefab(p *entities.Prefab) error",
              "doc": "RegisterEntityPrefab registers an *entities.Prefab under its Prefab.Name on b for game_prefabs_list and game_entity_spawn.\n",
              "file": "pkg/mcp/edit.go",
              "line": 292
            },
            {
              "name": "RegisterPrefab",
              "anchor": "Bridge.RegisterPrefab",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) RegisterPrefab(name string, spawn PrefabSpawner) error",
              "doc": "RegisterPrefab registers a custom prefab spawner under name on b for game_prefabs_list and game_entity_spawn.\n",
              "file": "pkg/mcp/edit.go",
              "line": 265
            },
            {
              "name": "RegisterScenePrefab",
              "anchor": "Bridge.RegisterScenePrefab",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) RegisterScenePrefab(name string, doc *sceneformat.SceneDoc) error",
              "doc": "RegisterScenePrefab registers a self-contained *sceneformat.SceneDoc template under name on b so game_entity_spawn can instantiate it via sceneformat.SpawnEntities.\n\ndoc must pass sceneformat.Validate, must not refer to unresolved external scenes, and must hold exactly one top-level object across its layers, which becomes the spawned root entity; nest every other object under it as a child. Each spawn attaches the document's sceneformat.ObjectRef IDs unchanged, so repeated spawns produce entities with the same object IDs and names.\n",
              "file": "pkg/mcp/edit.go",
              "line": 322
            },
            {
              "name": "Replay",
              "anchor": "Bridge.Replay",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) Replay() *ReplayController",
              "doc": "Replay returns the ReplayController configured on b, or nil if none is set.\n",
              "file": "pkg/mcp/replay.go",
              "line": 129
            },
            {
              "name": "SetActions",
              "anchor": "Bridge.SetActions",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetActions(a *input.Actions)",
              "doc": "SetActions replaces the static Actions configured on b.\nIf Config.ActionsFunc is set and returns a non-nil *input.Actions, ActionsFunc continues to take precedence.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 334
            },
            {
              "name": "SetAssets",
              "anchor": "Bridge.SetAssets",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetAssets(m *assets.Manager)",
              "doc": "SetAssets replaces the static Assets manager configured on b. If Config.AssetsFunc is set and returns a non-nil manager, AssetsFunc continues to take precedence.\n",
              "file": "pkg/mcp/assets.go",
              "line": 212
            },
            {
              "name": "SetConsole",
              "anchor": "Bridge.SetConsole",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetConsole(c *debug.Console)",
              "doc": "SetConsole replaces the static debug Console configured on b. If Config.ConsoleFunc is set and returns a non-nil console, ConsoleFunc continues to take precedence.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 351
            },
            {
              "name": "SetLoop",
              "anchor": "Bridge.SetLoop",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetLoop(l *game.Loop)",
              "doc": "SetLoop replaces the static Loop configured on b.\nIf Config.LoopFunc is set and returns a non-nil loop, LoopFunc continues to take precedence.\n",
              "file": "pkg/mcp/loop.go",
              "line": 108
            },
            {
              "name": "SetPhysics",
              "anchor": "Bridge.SetPhysics",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetPhysics(w *physics.World)",
              "doc": "SetPhysics replaces the static 2D physics world configured on b. If Config.PhysicsFunc is set and returns a non-nil world, PhysicsFunc continues to take precedence.\n",
              "file": "pkg/mcp/screenshot.go",
              "line": 139
            },
            {
              "name": "SetReplay",
              "anchor": "Bridge.SetReplay",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetReplay(ctrl *ReplayController)",
              "doc": "SetReplay replaces the ReplayController configured on b.\n",
              "file": "pkg/mcp/replay.go",
              "line": 137
            },
            {
              "name": "SetRigidPhysics",
              "anchor": "Bridge.SetRigidPhysics",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetRigidPhysics(w *physics.RigidWorld)",
              "doc": "SetRigidPhysics replaces the static 2D rigid-body physics world configured on b. If Config.RigidPhysicsFunc is set and returns a non-nil world, RigidPhysicsFunc continues to take precedence.\n",
              "file": "pkg/mcp/screenshot.go",
              "line": 147
            },
            {
              "name": "SetScene",
              "anchor": "Bridge.SetScene",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetScene(s *scene.Scene)",
              "doc": "SetScene replaces the static standalone Scene configured on b.\nIf Config.Scenes has an active scene or Config.SceneFunc returns a non-nil scene, those take precedence.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 325
            },
            {
              "name": "SetViewport",
              "anchor": "Bridge.SetViewport",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetViewport(vp *screen.Viewport)",
              "doc": "SetViewport replaces the static Viewport configured on b.\nIf Config.ViewportFunc is set and returns a viewport with positive dimensions, ViewportFunc continues to take precedence.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 343
            },
            {
              "name": "SetWorld",
              "anchor": "Bridge.SetWorld",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) SetWorld(w *entities.World)",
              "doc": "SetWorld replaces the static World configured on b.\nIf Config.WorldFunc is set and returns a non-nil world, WorldFunc continues to take precedence.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 316
            },
            {
              "name": "Tools",
              "anchor": "Bridge.Tools",
              "recv": "*Bridge",
              "decl": "func (b *Bridge) Tools() []automation.Tool",
              "doc": "Tools returns the full set of automation.Tool definitions owned by b, assembled from each tool group.\n",
              "file": "pkg/mcp/mcp.go",
              "line": 359
            }
          ]
        },
        {
          "name": "CameraInfo",
          "anchor": "CameraInfo",
          "decl": "type CameraInfo struct {\n\tX        float32 `json:\"x\"`\n\tY        float32 `json:\"y\"`\n\tZoom     float32 `json:\"zoom\"`\n\tRotation float32 `json:\"rotation,omitempty\"`\n\tWidth    float32 `json:\"width\"`\n\tHeight   float32 `json:\"height\"`\n}",
          "doc": "CameraInfo describes a 2D scene's camera state.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 57,
          "members": [
            {
              "name": "X",
              "anchor": "CameraInfo.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "CameraInfo.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zoom",
              "anchor": "CameraInfo.Zoom",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "CameraInfo.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "CameraInfo.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "CameraInfo.Height",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ComponentGetResult",
          "anchor": "ComponentGetResult",
          "decl": "type ComponentGetResult struct {\n\tRef       string          `json:\"ref\"`\n\tComponent string          `json:\"component\"`\n\tValue     json.RawMessage `json:\"value\"`\n}",
          "doc": "ComponentGetResult is the JSON result of game_component_get.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 151,
          "members": [
            {
              "name": "Ref",
              "anchor": "ComponentGetResult.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "ComponentGetResult.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "ComponentGetResult.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ComponentRemoveResult",
          "anchor": "ComponentRemoveResult",
          "decl": "type ComponentRemoveResult struct {\n\tRef       string `json:\"ref\"`\n\tComponent string `json:\"component\"`\n\tRemoved   bool   `json:\"removed\"`\n}",
          "doc": "ComponentRemoveResult is the JSON result of game_component_remove.\n",
          "file": "pkg/mcp/edit.go",
          "line": 92,
          "members": [
            {
              "name": "Ref",
              "anchor": "ComponentRemoveResult.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "ComponentRemoveResult.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "ComponentRemoveResult.Removed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ComponentSetResult",
          "anchor": "ComponentSetResult",
          "decl": "type ComponentSetResult struct {\n\tRef       string          `json:\"ref\"`\n\tComponent string          `json:\"component\"`\n\tValue     json.RawMessage `json:\"value\"`\n\t// ReadError is set when the write succeeded but reading the component back failed; Value is then null.\n\tReadError string `json:\"read_error,omitempty\"`\n}",
          "doc": "ComponentSetResult is the JSON result of game_component_set.\n",
          "file": "pkg/mcp/edit.go",
          "line": 83,
          "members": [
            {
              "name": "Ref",
              "anchor": "ComponentSetResult.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Component",
              "anchor": "ComponentSetResult.Component",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "ComponentSetResult.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReadError",
              "anchor": "ComponentSetResult.ReadError",
              "kind": "field",
              "doc": "ReadError is set when the write succeeded but reading the component back failed; Value is then null."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Config",
          "anchor": "Config",
          "decl": "type Config struct {\n\t// Scenes is the game's scene stack manager. When set, game_scenes_list reports the active stack and transition state, and game_layers_list defaults to the current scene.\n\tScenes *scene.Manager\n\n\t// Scene is a standalone active scene for games that do not use a scene.Manager.\n\tScene *scene.Scene\n\n\t// SceneFunc dynamically resolves the active scene on each tool call (for example, when restarting a level allocates a new *scene.Scene). When non-nil and returning a non-nil scene, it overrides Scene.\n\tSceneFunc func() *scene.Scene\n\n\t// SceneName maps a scene.Controller on Scenes's stack to a human-readable name such as \"title\", \"gameplay\" or \"pause\". When nil or returning \"\", stack entries receive stable fallback names (\"scene:0\", \"scene:1\", ...).\n\tSceneName func(*scene.Controller) string\n\n\t// NamedScenes registers additional named scenes (active or inactive) so game_scenes_list lists them and game_layers_list can inspect them by name.\n\tNamedScenes map[string]*scene.Scene\n\n\t// World is the game's ECS entity world for entity and component inspection tools.\n\tWorld *entities.World\n\n\t// WorldFunc dynamically resolves the active entity world on each tool call (for example, when switching levels replaces the *entities.World). When non-nil and returning a non-nil world, it overrides World.\n\tWorldFunc func() *entities.World\n\n\t// EntityName returns a human-readable name for a live entity (such as \"player\" or \"slime_1\"). When nil or returning \"\", inspection falls back to sceneformat.ObjectRef.ID if attached.\n\tEntityName func(entities.Entity) string\n\n\t// EntityTags returns labels/tags attached to a live entity (such as [\"enemy\", \"boss\"]).\n\tEntityTags func(entities.Entity) []string\n\n\t// EntityLayer returns the scene layer name an entity belongs to. When nil or returning \"\", inspection falls back to sceneformat.ObjectRef.Layer if attached.\n\tEntityLayer func(entities.Entity) string\n\t// Loop is the game's fixed-step loop for pause, resume, synchronous stepping and time-scale tools.\n\tLoop *game.Loop\n\n\t// LoopFunc dynamically resolves the active game loop on each tool call. When non-nil and returning a non-nil loop, it overrides Loop.\n\tLoopFunc func() *game.Loop\n\n\t// Random is a deterministic random stream re-seeded by game_loop_seed.\n\tRandom *random.Stream\n\n\t// RandomStreams is a named deterministic random stream manager re-seeded by game_loop_seed.\n\tRandomStreams *random.Streams\n\n\t// SetSeed is a custom callback invoked by game_loop_seed to apply a deterministic random seed.\n\tSetSeed func(uint64)\n\n\t// Actions is the game's input action map driven by game_input_action, game_input_axis, game_input_actions_list and game_input_pointer.\n\tActions *input.Actions\n\n\t// ActionsFunc dynamically resolves the active input.Actions on each tool call. When non-nil and returning a non-nil *input.Actions, it overrides Actions.\n\tActionsFunc func() *input.Actions\n\n\t// Viewport maps virtual game coordinates to view coordinates for game_input_pointer, and maps the game's virtual canvas onto the image when game_screenshot renders the game view and aligns overlays.\n\tViewport *screen.Viewport\n\n\t// ViewportFunc dynamically resolves the active screen.Viewport on each tool call. When non-nil and returning a viewport with positive dimensions, it overrides Viewport.\n\tViewportFunc func() screen.Viewport\n\n\t// ViewSizeFunc returns the current canvas/view size in points for Viewport.Layout and Viewport.GameToView.\n\t// When nil or returning a non-positive size, pointer mapping falls back to the attached scope's Env().Window(), and then to the viewport's virtual size.\n\tViewSizeFunc func() core.Size\n\n\t// OnPointer is called whenever game_input_pointer injects a pointer press, release or move, after viewport mapping and scene hit testing.\n\tOnPointer func(PointerEvent)\n\n\t// Console is the game's debug console for tunable inspection/mutation and command execution tools.\n\tConsole *debug.Console\n\n\t// ConsoleFunc dynamically resolves the active debug console on each tool call. When non-nil and returning a non-nil console, it overrides Console.\n\tConsoleFunc func() *debug.Console\n\n\t// Prefabs registers named prefab spawners available to game_prefabs_list and game_entity_spawn. Additional prefabs (including *entities.Prefab and *sceneformat.SceneDoc templates) can also be registered on the Bridge via RegisterPrefab, RegisterEntityPrefab and RegisterScenePrefab.\n\tPrefabs map[string]PrefabSpawner\n\n\t// Replay configures input recording and deterministic playback tools.\n\tReplay *ReplayController\n\n\t// Overlay is the game's development debug overlay for frame timing, draw statistics, GC/allocation and asset memory readouts.\n\tOverlay *debug.Overlay\n\n\t// Profiler is a named-scope timing profiler. When nil, performance tools fall back to Overlay.Profiler().\n\tProfiler *debug.Profiler\n\n\t// GC is a per-frame GC and allocation monitor. When nil, performance tools fall back to Overlay.GC().\n\tGC *debug.GCMonitor\n\n\t// Memory is an asset memory tracker. When nil, performance tools fall back to Overlay.Memory().\n\tMemory *debug.MemoryTracker\n\n\t// DrawStatsFunc dynamically supplies per-frame draw statistics (draw calls, sprites, batches, triangles, vertices). When nil, performance tools fall back to Overlay.DrawStats() or RenderStatsFunc.\n\tDrawStatsFunc func() debug.DrawStats\n\n\t// RenderStatsFunc supplies 3D per-frame render statistics (culling, batching, state switches, geometry and GPU memory). A game using game/render3d returns mcp.PerfRender3DStats(stats) for its latest render3d.RenderStats.\n\tRenderStatsFunc func() PerfRender3DStats\n\n\t// Assets is the game's asset manager for listing loaded asset groups/memory and reloading assets or groups.\n\tAssets *assets.Manager\n\n\t// AssetsFunc dynamically resolves the active asset manager on each tool call. When non-nil and returning a non-nil manager, it overrides Assets.\n\tAssetsFunc func() *assets.Manager\n\n\t// Resources is an optional resource.Library whose loaded YAML resources are listed and can be reloaded by path.\n\tResources *resource.Library\n\n\t// Shaders is an optional hotreload.ShaderReloader whose tracked shaders are listed and can be reloaded by name or path.\n\tShaders *hotreload.ShaderReloader\n\n\t// Materials is an optional hotreload.MaterialReloader whose tracked materials are listed and can be reloaded by name or path.\n\tMaterials *hotreload.MaterialReloader\n\n\t// ReloadAsset is an optional custom reload callback invoked by game_asset_reload when no configured asset manager, reloader or custom asset owns key.\n\tReloadAsset func(ctx context.Context, key string) error\n\n\t// Physics is the game's 2D physics world used to draw collision shape overlays in game_screenshot.\n\tPhysics *physics.World\n\n\t// PhysicsFunc dynamically resolves the active 2D physics world on each screenshot call. When non-nil and returning a non-nil world, it overrides Physics.\n\tPhysicsFunc func() *physics.World\n\n\t// RigidPhysics is an optional 2D rigid-body physics world whose bodies are drawn alongside Physics when collision shape overlays are enabled.\n\tRigidPhysics *physics.RigidWorld\n\n\t// RigidPhysicsFunc dynamically resolves the active 2D rigid-body physics world on each screenshot call. When non-nil and returning a non-nil world, it overrides RigidPhysics.\n\tRigidPhysicsFunc func() *physics.RigidWorld\n\n\t// DrawFrame optionally records the game's current frame into d for a target of width by height pixels. When nil, game_screenshot renders the active scene (from Scenes or Scene/SceneFunc) under Viewport if configured.\n\tDrawFrame func(d *core.Drawing, width, height int)\n\n\t// CaptureFrame optionally returns an already-rendered game frame (for example from a GPU readback or offscreen canvas). Requested overlays are composited on top in the same camera and viewport coordinates.\n\tCaptureFrame func(ctx context.Context) (*image.RGBA, error)\n\n\t// ScreenshotDir confines relative output paths written when game_screenshot is called with a path argument. When empty, writing to disk via path is refused.\n\tScreenshotDir string\n\n\t// ScreenshotBackground optionally fills the screenshot canvas before drawing the game frame when CaptureFrame is nil. Zero leaves the background transparent.\n\tScreenshotBackground core.Color\n}",
          "doc": "Config names the parts of a running game that MCP tools inspect and drive.\nEvery field is optional; tools whose subsystem is unconfigured still register and return either an empty list or an explanatory error when called.\n",
          "file": "pkg/mcp/mcp.go",
          "line": 60,
          "members": [
            {
              "name": "Scenes",
              "anchor": "Config.Scenes",
              "kind": "field",
              "doc": "Scenes is the game's scene stack manager. When set, game_scenes_list reports the active stack and transition state, and game_layers_list defaults to the current scene."
            },
            {
              "name": "Scene",
              "anchor": "Config.Scene",
              "kind": "field",
              "doc": "Scene is a standalone active scene for games that do not use a scene.Manager."
            },
            {
              "name": "SceneFunc",
              "anchor": "Config.SceneFunc",
              "kind": "field",
              "doc": "SceneFunc dynamically resolves the active scene on each tool call (for example, when restarting a level allocates a new *scene.Scene). When non-nil and returning a non-nil scene, it overrides Scene."
            },
            {
              "name": "SceneName",
              "anchor": "Config.SceneName",
              "kind": "field",
              "doc": "SceneName maps a scene.Controller on Scenes's stack to a human-readable name such as \"title\", \"gameplay\" or \"pause\". When nil or returning \"\", stack entries receive stable fallback names (\"scene:0\", \"scene:1\", ...)."
            },
            {
              "name": "NamedScenes",
              "anchor": "Config.NamedScenes",
              "kind": "field",
              "doc": "NamedScenes registers additional named scenes (active or inactive) so game_scenes_list lists them and game_layers_list can inspect them by name."
            },
            {
              "name": "World",
              "anchor": "Config.World",
              "kind": "field",
              "doc": "World is the game's ECS entity world for entity and component inspection tools."
            },
            {
              "name": "WorldFunc",
              "anchor": "Config.WorldFunc",
              "kind": "field",
              "doc": "WorldFunc dynamically resolves the active entity world on each tool call (for example, when switching levels replaces the *entities.World). When non-nil and returning a non-nil world, it overrides World."
            },
            {
              "name": "EntityName",
              "anchor": "Config.EntityName",
              "kind": "field",
              "doc": "EntityName returns a human-readable name for a live entity (such as \"player\" or \"slime_1\"). When nil or returning \"\", inspection falls back to sceneformat.ObjectRef.ID if attached."
            },
            {
              "name": "EntityTags",
              "anchor": "Config.EntityTags",
              "kind": "field",
              "doc": "EntityTags returns labels/tags attached to a live entity (such as [\"enemy\", \"boss\"])."
            },
            {
              "name": "EntityLayer",
              "anchor": "Config.EntityLayer",
              "kind": "field",
              "doc": "EntityLayer returns the scene layer name an entity belongs to. When nil or returning \"\", inspection falls back to sceneformat.ObjectRef.Layer if attached."
            },
            {
              "name": "Loop",
              "anchor": "Config.Loop",
              "kind": "field",
              "doc": "Loop is the game's fixed-step loop for pause, resume, synchronous stepping and time-scale tools."
            },
            {
              "name": "LoopFunc",
              "anchor": "Config.LoopFunc",
              "kind": "field",
              "doc": "LoopFunc dynamically resolves the active game loop on each tool call. When non-nil and returning a non-nil loop, it overrides Loop."
            },
            {
              "name": "Random",
              "anchor": "Config.Random",
              "kind": "field",
              "doc": "Random is a deterministic random stream re-seeded by game_loop_seed."
            },
            {
              "name": "RandomStreams",
              "anchor": "Config.RandomStreams",
              "kind": "field",
              "doc": "RandomStreams is a named deterministic random stream manager re-seeded by game_loop_seed."
            },
            {
              "name": "SetSeed",
              "anchor": "Config.SetSeed",
              "kind": "field",
              "doc": "SetSeed is a custom callback invoked by game_loop_seed to apply a deterministic random seed."
            },
            {
              "name": "Actions",
              "anchor": "Config.Actions",
              "kind": "field",
              "doc": "Actions is the game's input action map driven by game_input_action, game_input_axis, game_input_actions_list and game_input_pointer."
            },
            {
              "name": "ActionsFunc",
              "anchor": "Config.ActionsFunc",
              "kind": "field",
              "doc": "ActionsFunc dynamically resolves the active input.Actions on each tool call. When non-nil and returning a non-nil *input.Actions, it overrides Actions."
            },
            {
              "name": "Viewport",
              "anchor": "Config.Viewport",
              "kind": "field",
              "doc": "Viewport maps virtual game coordinates to view coordinates for game_input_pointer, and maps the game's virtual canvas onto the image when game_screenshot renders the game view and aligns overlays."
            },
            {
              "name": "ViewportFunc",
              "anchor": "Config.ViewportFunc",
              "kind": "field",
              "doc": "ViewportFunc dynamically resolves the active screen.Viewport on each tool call. When non-nil and returning a viewport with positive dimensions, it overrides Viewport."
            },
            {
              "name": "ViewSizeFunc",
              "anchor": "Config.ViewSizeFunc",
              "kind": "field",
              "doc": "ViewSizeFunc returns the current canvas/view size in points for Viewport.Layout and Viewport.GameToView.\nWhen nil or returning a non-positive size, pointer mapping falls back to the attached scope's Env().Window(), and then to the viewport's virtual size."
            },
            {
              "name": "OnPointer",
              "anchor": "Config.OnPointer",
              "kind": "field",
              "doc": "OnPointer is called whenever game_input_pointer injects a pointer press, release or move, after viewport mapping and scene hit testing."
            },
            {
              "name": "Console",
              "anchor": "Config.Console",
              "kind": "field",
              "doc": "Console is the game's debug console for tunable inspection/mutation and command execution tools."
            },
            {
              "name": "ConsoleFunc",
              "anchor": "Config.ConsoleFunc",
              "kind": "field",
              "doc": "ConsoleFunc dynamically resolves the active debug console on each tool call. When non-nil and returning a non-nil console, it overrides Console."
            },
            {
              "name": "Prefabs",
              "anchor": "Config.Prefabs",
              "kind": "field",
              "doc": "Prefabs registers named prefab spawners available to game_prefabs_list and game_entity_spawn. Additional prefabs (including *entities.Prefab and *sceneformat.SceneDoc templates) can also be registered on the Bridge via RegisterPrefab, RegisterEntityPrefab and RegisterScenePrefab."
            },
            {
              "name": "Replay",
              "anchor": "Config.Replay",
              "kind": "field",
              "doc": "Replay configures input recording and deterministic playback tools."
            },
            {
              "name": "Overlay",
              "anchor": "Config.Overlay",
              "kind": "field",
              "doc": "Overlay is the game's development debug overlay for frame timing, draw statistics, GC/allocation and asset memory readouts."
            },
            {
              "name": "Profiler",
              "anchor": "Config.Profiler",
              "kind": "field",
              "doc": "Profiler is a named-scope timing profiler. When nil, performance tools fall back to Overlay.Profiler()."
            },
            {
              "name": "GC",
              "anchor": "Config.GC",
              "kind": "field",
              "doc": "GC is a per-frame GC and allocation monitor. When nil, performance tools fall back to Overlay.GC()."
            },
            {
              "name": "Memory",
              "anchor": "Config.Memory",
              "kind": "field",
              "doc": "Memory is an asset memory tracker. When nil, performance tools fall back to Overlay.Memory()."
            },
            {
              "name": "DrawStatsFunc",
              "anchor": "Config.DrawStatsFunc",
              "kind": "field",
              "doc": "DrawStatsFunc dynamically supplies per-frame draw statistics (draw calls, sprites, batches, triangles, vertices). When nil, performance tools fall back to Overlay.DrawStats() or RenderStatsFunc."
            },
            {
              "name": "RenderStatsFunc",
              "anchor": "Config.RenderStatsFunc",
              "kind": "field",
              "doc": "RenderStatsFunc supplies 3D per-frame render statistics (culling, batching, state switches, geometry and GPU memory). A game using game/render3d returns mcp.PerfRender3DStats(stats) for its latest render3d.RenderStats."
            },
            {
              "name": "Assets",
              "anchor": "Config.Assets",
              "kind": "field",
              "doc": "Assets is the game's asset manager for listing loaded asset groups/memory and reloading assets or groups."
            },
            {
              "name": "AssetsFunc",
              "anchor": "Config.AssetsFunc",
              "kind": "field",
              "doc": "AssetsFunc dynamically resolves the active asset manager on each tool call. When non-nil and returning a non-nil manager, it overrides Assets."
            },
            {
              "name": "Resources",
              "anchor": "Config.Resources",
              "kind": "field",
              "doc": "Resources is an optional resource.Library whose loaded YAML resources are listed and can be reloaded by path."
            },
            {
              "name": "Shaders",
              "anchor": "Config.Shaders",
              "kind": "field",
              "doc": "Shaders is an optional hotreload.ShaderReloader whose tracked shaders are listed and can be reloaded by name or path."
            },
            {
              "name": "Materials",
              "anchor": "Config.Materials",
              "kind": "field",
              "doc": "Materials is an optional hotreload.MaterialReloader whose tracked materials are listed and can be reloaded by name or path."
            },
            {
              "name": "ReloadAsset",
              "anchor": "Config.ReloadAsset",
              "kind": "field",
              "doc": "ReloadAsset is an optional custom reload callback invoked by game_asset_reload when no configured asset manager, reloader or custom asset owns key."
            },
            {
              "name": "Physics",
              "anchor": "Config.Physics",
              "kind": "field",
              "doc": "Physics is the game's 2D physics world used to draw collision shape overlays in game_screenshot."
            },
            {
              "name": "PhysicsFunc",
              "anchor": "Config.PhysicsFunc",
              "kind": "field",
              "doc": "PhysicsFunc dynamically resolves the active 2D physics world on each screenshot call. When non-nil and returning a non-nil world, it overrides Physics."
            },
            {
              "name": "RigidPhysics",
              "anchor": "Config.RigidPhysics",
              "kind": "field",
              "doc": "RigidPhysics is an optional 2D rigid-body physics world whose bodies are drawn alongside Physics when collision shape overlays are enabled."
            },
            {
              "name": "RigidPhysicsFunc",
              "anchor": "Config.RigidPhysicsFunc",
              "kind": "field",
              "doc": "RigidPhysicsFunc dynamically resolves the active 2D rigid-body physics world on each screenshot call. When non-nil and returning a non-nil world, it overrides RigidPhysics."
            },
            {
              "name": "DrawFrame",
              "anchor": "Config.DrawFrame",
              "kind": "field",
              "doc": "DrawFrame optionally records the game's current frame into d for a target of width by height pixels. When nil, game_screenshot renders the active scene (from Scenes or Scene/SceneFunc) under Viewport if configured."
            },
            {
              "name": "CaptureFrame",
              "anchor": "Config.CaptureFrame",
              "kind": "field",
              "doc": "CaptureFrame optionally returns an already-rendered game frame (for example from a GPU readback or offscreen canvas). Requested overlays are composited on top in the same camera and viewport coordinates."
            },
            {
              "name": "ScreenshotDir",
              "anchor": "Config.ScreenshotDir",
              "kind": "field",
              "doc": "ScreenshotDir confines relative output paths written when game_screenshot is called with a path argument. When empty, writing to disk via path is refused."
            },
            {
              "name": "ScreenshotBackground",
              "anchor": "Config.ScreenshotBackground",
              "kind": "field",
              "doc": "ScreenshotBackground optionally fills the screenshot canvas before drawing the game frame when CaptureFrame is nil. Zero leaves the background transparent."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConsoleCommandInfo",
          "anchor": "ConsoleCommandInfo",
          "decl": "type ConsoleCommandInfo struct {\n\tName    string `json:\"name\"`\n\tHelp    string `json:\"help,omitempty\"`\n\tBuiltin bool   `json:\"builtin\"`\n}",
          "doc": "ConsoleCommandInfo describes one debug console command returned by game_console_commands_list.\n",
          "file": "pkg/mcp/console.go",
          "line": 60,
          "members": [
            {
              "name": "Name",
              "anchor": "ConsoleCommandInfo.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Help",
              "anchor": "ConsoleCommandInfo.Help",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Builtin",
              "anchor": "ConsoleCommandInfo.Builtin",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConsoleCommandsListResult",
          "anchor": "ConsoleCommandsListResult",
          "decl": "type ConsoleCommandsListResult struct {\n\tTotal    int                  `json:\"total\"`\n\tCommands []ConsoleCommandInfo `json:\"commands\"`\n}",
          "doc": "ConsoleCommandsListResult is the JSON result of game_console_commands_list.\n",
          "file": "pkg/mcp/console.go",
          "line": 67,
          "members": [
            {
              "name": "Total",
              "anchor": "ConsoleCommandsListResult.Total",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Commands",
              "anchor": "ConsoleCommandsListResult.Commands",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConsoleExecResult",
          "anchor": "ConsoleExecResult",
          "decl": "type ConsoleExecResult struct {\n\tCommand string   `json:\"command\"`\n\tOK      bool     `json:\"ok\"`\n\tOutput  string   `json:\"output\"`\n\tLines   []string `json:\"lines\"`\n\tError   string   `json:\"error,omitempty\"`\n}",
          "doc": "ConsoleExecResult is the JSON result of game_console_exec.\n",
          "file": "pkg/mcp/console.go",
          "line": 73,
          "members": [
            {
              "name": "Command",
              "anchor": "ConsoleExecResult.Command",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OK",
              "anchor": "ConsoleExecResult.OK",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Output",
              "anchor": "ConsoleExecResult.Output",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Lines",
              "anchor": "ConsoleExecResult.Lines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "ConsoleExecResult.Error",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CustomAsset",
          "anchor": "CustomAsset",
          "decl": "type CustomAsset struct {\n\t// Key is the unique asset identifier (required).\n\tKey string\n\t// Group is the asset group name reported by game_assets_list (defaults to \"custom\" when empty).\n\tGroup string\n\t// Kind describes the asset type (e.g. \"atlas\", \"image\", \"scene\", \"shader\", \"material\", \"sound\", \"bytes\", \"custom\").\n\tKind string\n\t// URI is an optional source path or URI shown in game_assets_list and matched by game_asset_reload.\n\tURI string\n\t// Bytes returns the asset's current estimated memory footprint in bytes (optional).\n\tBytes func() int64\n\t// Frames returns the current frame count for atlas-like assets (optional).\n\tFrames func() int\n\t// Reload reloads the asset in place (optional).\n\tReload func(ctx context.Context) error\n}",
          "doc": "CustomAsset registers a game-managed asset outside assets.Manager (such as a standalone sprite.Atlas, scene file, or data table) so game_assets_list reports its memory and game_asset_reload / game_assets_reload_group can reload it on demand.\n",
          "file": "pkg/mcp/assets.go",
          "line": 38,
          "members": [
            {
              "name": "Key",
              "anchor": "CustomAsset.Key",
              "kind": "field",
              "doc": "Key is the unique asset identifier (required)."
            },
            {
              "name": "Group",
              "anchor": "CustomAsset.Group",
              "kind": "field",
              "doc": "Group is the asset group name reported by game_assets_list (defaults to \"custom\" when empty)."
            },
            {
              "name": "Kind",
              "anchor": "CustomAsset.Kind",
              "kind": "field",
              "doc": "Kind describes the asset type (e.g. \"atlas\", \"image\", \"scene\", \"shader\", \"material\", \"sound\", \"bytes\", \"custom\")."
            },
            {
              "name": "URI",
              "anchor": "CustomAsset.URI",
              "kind": "field",
              "doc": "URI is an optional source path or URI shown in game_assets_list and matched by game_asset_reload."
            },
            {
              "name": "Bytes",
              "anchor": "CustomAsset.Bytes",
              "kind": "field",
              "doc": "Bytes returns the asset's current estimated memory footprint in bytes (optional)."
            },
            {
              "name": "Frames",
              "anchor": "CustomAsset.Frames",
              "kind": "field",
              "doc": "Frames returns the current frame count for atlas-like assets (optional)."
            },
            {
              "name": "Reload",
              "anchor": "CustomAsset.Reload",
              "kind": "field",
              "doc": "Reload reloads the asset in place (optional)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EntitiesListResult",
          "anchor": "EntitiesListResult",
          "decl": "type EntitiesListResult struct {\n\tTotal    int             `json:\"total\"`\n\tReturned int             `json:\"returned\"`\n\tEntities []EntitySummary `json:\"entities\"`\n}",
          "doc": "EntitiesListResult is the JSON result of game_entities_list.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 131,
          "members": [
            {
              "name": "Total",
              "anchor": "EntitiesListResult.Total",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Returned",
              "anchor": "EntitiesListResult.Returned",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Entities",
              "anchor": "EntitiesListResult.Entities",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EntityDestroyResult",
          "anchor": "EntityDestroyResult",
          "decl": "type EntityDestroyResult struct {\n\tRef       string `json:\"ref\"`\n\tPolicy    string `json:\"policy\"`\n\tDestroyed int    `json:\"destroyed\"`\n}",
          "doc": "EntityDestroyResult is the JSON result of game_entity_destroy.\n",
          "file": "pkg/mcp/edit.go",
          "line": 76,
          "members": [
            {
              "name": "Ref",
              "anchor": "EntityDestroyResult.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Policy",
              "anchor": "EntityDestroyResult.Policy",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Destroyed",
              "anchor": "EntityDestroyResult.Destroyed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EntityInspectResult",
          "anchor": "EntityInspectResult",
          "decl": "type EntityInspectResult struct {\n\tRef        string                     `json:\"ref\"`\n\tIndex      uint32                     `json:\"index\"`\n\tGeneration uint32                     `json:\"generation\"`\n\tName       string                     `json:\"name,omitempty\"`\n\tLayer      string                     `json:\"layer,omitempty\"`\n\tTags       []string                   `json:\"tags,omitempty\"`\n\tParent     string                     `json:\"parent,omitempty\"`\n\tChildren   []string                   `json:\"children,omitempty\"`\n\tComponents map[string]json.RawMessage `json:\"components\"`\n}",
          "doc": "EntityInspectResult is the JSON result of game_entity_inspect.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 138,
          "members": [
            {
              "name": "Ref",
              "anchor": "EntityInspectResult.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Index",
              "anchor": "EntityInspectResult.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Generation",
              "anchor": "EntityInspectResult.Generation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "EntityInspectResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "EntityInspectResult.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "EntityInspectResult.Tags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Parent",
              "anchor": "EntityInspectResult.Parent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Children",
              "anchor": "EntityInspectResult.Children",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Components",
              "anchor": "EntityInspectResult.Components",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EntitySpawnResult",
          "anchor": "EntitySpawnResult",
          "decl": "type EntitySpawnResult struct {\n\tRef        string                     `json:\"ref\"`\n\tIndex      uint32                     `json:\"index\"`\n\tGeneration uint32                     `json:\"generation\"`\n\tPrefab     string                     `json:\"prefab,omitempty\"`\n\tName       string                     `json:\"name,omitempty\"`\n\tLayer      string                     `json:\"layer,omitempty\"`\n\tTags       []string                   `json:\"tags,omitempty\"`\n\tParent     string                     `json:\"parent,omitempty\"`\n\tChildren   []string                   `json:\"children,omitempty\"`\n\tComponents map[string]json.RawMessage `json:\"components\"`\n}",
          "doc": "EntitySpawnResult is the JSON result of game_entity_spawn.\n",
          "file": "pkg/mcp/edit.go",
          "line": 62,
          "members": [
            {
              "name": "Ref",
              "anchor": "EntitySpawnResult.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Index",
              "anchor": "EntitySpawnResult.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Generation",
              "anchor": "EntitySpawnResult.Generation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prefab",
              "anchor": "EntitySpawnResult.Prefab",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "EntitySpawnResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "EntitySpawnResult.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "EntitySpawnResult.Tags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Parent",
              "anchor": "EntitySpawnResult.Parent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Children",
              "anchor": "EntitySpawnResult.Children",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Components",
              "anchor": "EntitySpawnResult.Components",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EntitySummary",
          "anchor": "EntitySummary",
          "decl": "type EntitySummary struct {\n\tRef        string                     `json:\"ref\"`\n\tIndex      uint32                     `json:\"index\"`\n\tGeneration uint32                     `json:\"generation\"`\n\tName       string                     `json:\"name,omitempty\"`\n\tLayer      string                     `json:\"layer,omitempty\"`\n\tTags       []string                   `json:\"tags,omitempty\"`\n\tParent     string                     `json:\"parent,omitempty\"`\n\tChildCount int                        `json:\"child_count,omitempty\"`\n\tComponents []string                   `json:\"components,omitempty\"`\n\tValues     map[string]json.RawMessage `json:\"values,omitempty\"`\n}",
          "doc": "EntitySummary describes one live entity returned by game_entities_list.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 117,
          "members": [
            {
              "name": "Ref",
              "anchor": "EntitySummary.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Index",
              "anchor": "EntitySummary.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Generation",
              "anchor": "EntitySummary.Generation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "EntitySummary.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "EntitySummary.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "EntitySummary.Tags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Parent",
              "anchor": "EntitySummary.Parent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildCount",
              "anchor": "EntitySummary.ChildCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Components",
              "anchor": "EntitySummary.Components",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Values",
              "anchor": "EntitySummary.Values",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InputActionInfo",
          "anchor": "InputActionInfo",
          "decl": "type InputActionInfo struct {\n\tName         string `json:\"name\"`\n\tPressed      bool   `json:\"pressed\"`\n\tJustPressed  bool   `json:\"just_pressed,omitempty\"`\n\tJustReleased bool   `json:\"just_released,omitempty\"`\n\tBindingCount int    `json:\"binding_count,omitempty\"`\n}",
          "doc": "InputActionInfo describes one action entry returned by game_input_actions_list.\n",
          "file": "pkg/mcp/input.go",
          "line": 107,
          "members": [
            {
              "name": "Name",
              "anchor": "InputActionInfo.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pressed",
              "anchor": "InputActionInfo.Pressed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "JustPressed",
              "anchor": "InputActionInfo.JustPressed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "JustReleased",
              "anchor": "InputActionInfo.JustReleased",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BindingCount",
              "anchor": "InputActionInfo.BindingCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InputActionResult",
          "anchor": "InputActionResult",
          "decl": "type InputActionResult struct {\n\tName         string   `json:\"name\"`\n\tMode         string   `json:\"mode\"`\n\tValue        *float64 `json:\"value,omitempty\"`\n\tPressed      bool     `json:\"pressed\"`\n\tJustPressed  bool     `json:\"just_pressed,omitempty\"`\n\tJustReleased bool     `json:\"just_released,omitempty\"`\n\tAxis         float64  `json:\"axis,omitempty\"`\n}",
          "doc": "InputActionResult is the JSON result of game_input_action.\n",
          "file": "pkg/mcp/input.go",
          "line": 65,
          "members": [
            {
              "name": "Name",
              "anchor": "InputActionResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "InputActionResult.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "InputActionResult.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pressed",
              "anchor": "InputActionResult.Pressed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "JustPressed",
              "anchor": "InputActionResult.JustPressed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "JustReleased",
              "anchor": "InputActionResult.JustReleased",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Axis",
              "anchor": "InputActionResult.Axis",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InputActionsListResult",
          "anchor": "InputActionsListResult",
          "decl": "type InputActionsListResult struct {\n\tConfigured bool              `json:\"configured\"`\n\tActions    []InputActionInfo `json:\"actions\"`\n\tAxes       []InputAxisInfo   `json:\"axes\"`\n}",
          "doc": "InputActionsListResult is the JSON result of game_input_actions_list.\n",
          "file": "pkg/mcp/input.go",
          "line": 124,
          "members": [
            {
              "name": "Configured",
              "anchor": "InputActionsListResult.Configured",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actions",
              "anchor": "InputActionsListResult.Actions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Axes",
              "anchor": "InputActionsListResult.Axes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InputAxisInfo",
          "anchor": "InputAxisInfo",
          "decl": "type InputAxisInfo struct {\n\tName     string  `json:\"name\"`\n\tValue    float64 `json:\"value\"`\n\tNegative string  `json:\"negative,omitempty\"`\n\tPositive string  `json:\"positive,omitempty\"`\n}",
          "doc": "InputAxisInfo describes one axis entry returned by game_input_actions_list.\n",
          "file": "pkg/mcp/input.go",
          "line": 116,
          "members": [
            {
              "name": "Name",
              "anchor": "InputAxisInfo.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "InputAxisInfo.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Negative",
              "anchor": "InputAxisInfo.Negative",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Positive",
              "anchor": "InputAxisInfo.Positive",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InputAxisResult",
          "anchor": "InputAxisResult",
          "decl": "type InputAxisResult struct {\n\tAxes    map[string]float64 `json:\"axes\"`\n\tCleared []string           `json:\"cleared,omitempty\"`\n}",
          "doc": "InputAxisResult is the JSON result of game_input_axis.\n",
          "file": "pkg/mcp/input.go",
          "line": 76,
          "members": [
            {
              "name": "Axes",
              "anchor": "InputAxisResult.Axes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cleared",
              "anchor": "InputAxisResult.Cleared",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InputPointerResult",
          "anchor": "InputPointerResult",
          "decl": "type InputPointerResult struct {\n\tAction           string   `json:\"action\"`\n\tSpace            string   `json:\"space\"`\n\tButton           string   `json:\"button\"`\n\tGameX            float32  `json:\"game_x\"`\n\tGameY            float32  `json:\"game_y\"`\n\tViewX            float32  `json:\"view_x\"`\n\tViewY            float32  `json:\"view_y\"`\n\tWorldX           *float32 `json:\"world_x,omitempty\"`\n\tWorldY           *float32 `json:\"world_y,omitempty\"`\n\tInViewport       bool     `json:\"in_viewport\"`\n\tDispatched       bool     `json:\"dispatched,omitempty\"`\n\tHit              bool     `json:\"hit\"`\n\tHitLayer         string   `json:\"hit_layer,omitempty\"`\n\tHitSpace         string   `json:\"hit_space,omitempty\"`\n\tHitKind          string   `json:\"hit_kind,omitempty\"`\n\tHitFrame         string   `json:\"hit_frame,omitempty\"`\n\tHitBatchIndex    *int     `json:\"hit_batch_index,omitempty\"`\n\tHitSpriteIndex   *int     `json:\"hit_sprite_index,omitempty\"`\n\tHitDrawableIndex *int     `json:\"hit_drawable_index,omitempty\"`\n\tHitX             *float32 `json:\"hit_x,omitempty\"`\n\tHitY             *float32 `json:\"hit_y,omitempty\"`\n}",
          "doc": "InputPointerResult is the JSON result of game_input_pointer.\n",
          "file": "pkg/mcp/input.go",
          "line": 82,
          "members": [
            {
              "name": "Action",
              "anchor": "InputPointerResult.Action",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Space",
              "anchor": "InputPointerResult.Space",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Button",
              "anchor": "InputPointerResult.Button",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GameX",
              "anchor": "InputPointerResult.GameX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GameY",
              "anchor": "InputPointerResult.GameY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewX",
              "anchor": "InputPointerResult.ViewX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewY",
              "anchor": "InputPointerResult.ViewY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldX",
              "anchor": "InputPointerResult.WorldX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldY",
              "anchor": "InputPointerResult.WorldY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InViewport",
              "anchor": "InputPointerResult.InViewport",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dispatched",
              "anchor": "InputPointerResult.Dispatched",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hit",
              "anchor": "InputPointerResult.Hit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitLayer",
              "anchor": "InputPointerResult.HitLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitSpace",
              "anchor": "InputPointerResult.HitSpace",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitKind",
              "anchor": "InputPointerResult.HitKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitFrame",
              "anchor": "InputPointerResult.HitFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitBatchIndex",
              "anchor": "InputPointerResult.HitBatchIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitSpriteIndex",
              "anchor": "InputPointerResult.HitSpriteIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitDrawableIndex",
              "anchor": "InputPointerResult.HitDrawableIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitX",
              "anchor": "InputPointerResult.HitX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitY",
              "anchor": "InputPointerResult.HitY",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayerInfo",
          "anchor": "LayerInfo",
          "decl": "type LayerInfo struct {\n\tIndex         int     `json:\"index\"`\n\tDrawIndex     int     `json:\"draw_index\"`\n\tName          string  `json:\"name\"`\n\tSpace         string  `json:\"space\"`\n\tVisible       bool    `json:\"visible\"`\n\tOrder         int     `json:\"order\"`\n\tParallaxX     float32 `json:\"parallax_x\"`\n\tParallaxY     float32 `json:\"parallax_y\"`\n\tOffsetX       float32 `json:\"offset_x,omitempty\"`\n\tOffsetY       float32 `json:\"offset_y,omitempty\"`\n\tRepeatX       bool    `json:\"repeat_x,omitempty\"`\n\tRepeatY       bool    `json:\"repeat_y,omitempty\"`\n\tRepeatWidth   float32 `json:\"repeat_width,omitempty\"`\n\tRepeatHeight  float32 `json:\"repeat_height,omitempty\"`\n\tDepthSort     string  `json:\"depth_sort\"`\n\tItemCount     int     `json:\"item_count\"`\n\tBatchCount    int     `json:\"batch_count,omitempty\"`\n\tSpriteCount   int     `json:\"sprite_count,omitempty\"`\n\tTilemapCount  int     `json:\"tilemap_count,omitempty\"`\n\tDrawableCount int     `json:\"drawable_count,omitempty\"`\n}",
          "doc": "LayerInfo describes one scene layer returned by game_layers_list.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 87,
          "members": [
            {
              "name": "Index",
              "anchor": "LayerInfo.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawIndex",
              "anchor": "LayerInfo.DrawIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "LayerInfo.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Space",
              "anchor": "LayerInfo.Space",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visible",
              "anchor": "LayerInfo.Visible",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Order",
              "anchor": "LayerInfo.Order",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParallaxX",
              "anchor": "LayerInfo.ParallaxX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParallaxY",
              "anchor": "LayerInfo.ParallaxY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetX",
              "anchor": "LayerInfo.OffsetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetY",
              "anchor": "LayerInfo.OffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RepeatX",
              "anchor": "LayerInfo.RepeatX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RepeatY",
              "anchor": "LayerInfo.RepeatY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RepeatWidth",
              "anchor": "LayerInfo.RepeatWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RepeatHeight",
              "anchor": "LayerInfo.RepeatHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DepthSort",
              "anchor": "LayerInfo.DepthSort",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ItemCount",
              "anchor": "LayerInfo.ItemCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BatchCount",
              "anchor": "LayerInfo.BatchCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpriteCount",
              "anchor": "LayerInfo.SpriteCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TilemapCount",
              "anchor": "LayerInfo.TilemapCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawableCount",
              "anchor": "LayerInfo.DrawableCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayersListResult",
          "anchor": "LayersListResult",
          "decl": "type LayersListResult struct {\n\tScene  string      `json:\"scene\"`\n\tLayers []LayerInfo `json:\"layers\"`\n}",
          "doc": "LayersListResult is the JSON result of game_layers_list.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 111,
          "members": [
            {
              "name": "Scene",
              "anchor": "LayersListResult.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layers",
              "anchor": "LayersListResult.Layers",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LoopSeedResult",
          "anchor": "LoopSeedResult",
          "decl": "type LoopSeedResult struct {\n\tSeed uint64 `json:\"seed\"`\n}",
          "doc": "LoopSeedResult is the JSON result of game_loop_seed.\n",
          "file": "pkg/mcp/loop.go",
          "line": 55,
          "members": [
            {
              "name": "Seed",
              "anchor": "LoopSeedResult.Seed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LoopStatusResult",
          "anchor": "LoopStatusResult",
          "decl": "type LoopStatusResult struct {\n\tPaused          bool    `json:\"paused\"`\n\tTimeScale       float64 `json:\"time_scale\"`\n\tStepSeconds     float64 `json:\"step_seconds\"`\n\tStepHz          int     `json:\"step_hz\"`\n\tSteps           uint64  `json:\"steps\"`\n\tGameTimeSeconds float64 `json:\"game_time_seconds\"`\n\tSeedConfigured  bool    `json:\"seed_configured\"`\n}",
          "doc": "LoopStatusResult is the JSON result of game_loop_status, game_loop_pause,\ngame_loop_resume and game_loop_time_scale.\n",
          "file": "pkg/mcp/loop.go",
          "line": 35,
          "members": [
            {
              "name": "Paused",
              "anchor": "LoopStatusResult.Paused",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TimeScale",
              "anchor": "LoopStatusResult.TimeScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepSeconds",
              "anchor": "LoopStatusResult.StepSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepHz",
              "anchor": "LoopStatusResult.StepHz",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steps",
              "anchor": "LoopStatusResult.Steps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GameTimeSeconds",
              "anchor": "LoopStatusResult.GameTimeSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SeedConfigured",
              "anchor": "LoopStatusResult.SeedConfigured",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LoopStepResult",
          "anchor": "LoopStepResult",
          "decl": "type LoopStepResult struct {\n\tStepsAdvanced   int     `json:\"steps_advanced\"`\n\tTotalSteps      uint64  `json:\"total_steps\"`\n\tGameTimeSeconds float64 `json:\"game_time_seconds\"`\n\tDeltaSeconds    float64 `json:\"delta_seconds\"`\n\tPaused          bool    `json:\"paused\"`\n}",
          "doc": "LoopStepResult is the JSON result of game_loop_step.\n",
          "file": "pkg/mcp/loop.go",
          "line": 46,
          "members": [
            {
              "name": "StepsAdvanced",
              "anchor": "LoopStepResult.StepsAdvanced",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalSteps",
              "anchor": "LoopStepResult.TotalSteps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GameTimeSeconds",
              "anchor": "LoopStepResult.GameTimeSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaSeconds",
              "anchor": "LoopStepResult.DeltaSeconds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Paused",
              "anchor": "LoopStepResult.Paused",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "OverlayStyle",
          "anchor": "OverlayStyle",
          "decl": "type OverlayStyle struct {\n\tBoundsColor     core.Color\n\tBoxColor        core.Color\n\tCircleColor     core.Color\n\tTriggerColor    core.Color\n\tSolidTileColor  core.Color\n\tOneWayTileColor core.Color\n\tGridColor       core.Color\n\tCameraColor     core.Color\n\tLabelTextColor  core.Color\n\tLabelBgColor    core.Color\n}",
          "doc": "OverlayStyle defines the colors drawn by game_screenshot diagnostic overlays.\n",
          "file": "pkg/mcp/screenshot.go",
          "line": 39,
          "members": [
            {
              "name": "BoundsColor",
              "anchor": "OverlayStyle.BoundsColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BoxColor",
              "anchor": "OverlayStyle.BoxColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CircleColor",
              "anchor": "OverlayStyle.CircleColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriggerColor",
              "anchor": "OverlayStyle.TriggerColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SolidTileColor",
              "anchor": "OverlayStyle.SolidTileColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OneWayTileColor",
              "anchor": "OverlayStyle.OneWayTileColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GridColor",
              "anchor": "OverlayStyle.GridColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CameraColor",
              "anchor": "OverlayStyle.CameraColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelTextColor",
              "anchor": "OverlayStyle.LabelTextColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LabelBgColor",
              "anchor": "OverlayStyle.LabelBgColor",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultOverlayStyle",
              "anchor": "DefaultOverlayStyle",
              "decl": "func DefaultOverlayStyle() OverlayStyle",
              "doc": "DefaultOverlayStyle returns the default high-contrast colors for game_screenshot overlays. Collision shape colors match physics.DefaultDebugStyle.\n",
              "file": "pkg/mcp/screenshot.go",
              "line": 53
            }
          ],
          "methods": []
        },
        {
          "name": "OverlaysDrawn",
          "anchor": "OverlaysDrawn",
          "decl": "type OverlaysDrawn struct {\n\tBounds          bool `json:\"bounds,omitempty\"`\n\tCollisionShapes bool `json:\"collision_shapes,omitempty\"`\n\tGrid            bool `json:\"grid,omitempty\"`\n\tCamera          bool `json:\"camera,omitempty\"`\n\tLabels          bool `json:\"labels,omitempty\"`\n\t// SpriteBounds counts the sprites outlined: those in scene layers' Item.Batch. Sprites a Drawable item or a tilemap draws get no outline.\n\tSpriteBounds   int `json:\"sprite_bounds,omitempty\"`\n\tPhysicsBoxes   int `json:\"physics_boxes,omitempty\"`\n\tPhysicsCircles int `json:\"physics_circles,omitempty\"`\n\t// PhysicsPolygons, PhysicsCapsules and PhysicsLines count the polygon, capsule, and segment or chain bodies outlined.\n\tPhysicsPolygons int `json:\"physics_polygons,omitempty\"`\n\tPhysicsCapsules int `json:\"physics_capsules,omitempty\"`\n\tPhysicsLines    int `json:\"physics_lines,omitempty\"`\n\tPhysicsTriggers int `json:\"physics_triggers,omitempty\"`\n\tPhysicsTiles    int `json:\"physics_tiles,omitempty\"`\n}",
          "doc": "OverlaysDrawn summarizes which overlays were rendered on a screenshot and how many primitives each drew.\n",
          "file": "pkg/mcp/screenshot.go",
          "line": 104,
          "members": [
            {
              "name": "Bounds",
              "anchor": "OverlaysDrawn.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CollisionShapes",
              "anchor": "OverlaysDrawn.CollisionShapes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grid",
              "anchor": "OverlaysDrawn.Grid",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Camera",
              "anchor": "OverlaysDrawn.Camera",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Labels",
              "anchor": "OverlaysDrawn.Labels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpriteBounds",
              "anchor": "OverlaysDrawn.SpriteBounds",
              "kind": "field",
              "doc": "SpriteBounds counts the sprites outlined: those in scene layers' Item.Batch. Sprites a Drawable item or a tilemap draws get no outline."
            },
            {
              "name": "PhysicsBoxes",
              "anchor": "OverlaysDrawn.PhysicsBoxes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PhysicsCircles",
              "anchor": "OverlaysDrawn.PhysicsCircles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PhysicsPolygons",
              "anchor": "OverlaysDrawn.PhysicsPolygons",
              "kind": "field",
              "doc": "PhysicsPolygons, PhysicsCapsules and PhysicsLines count the polygon, capsule, and segment or chain bodies outlined."
            },
            {
              "name": "PhysicsCapsules",
              "anchor": "OverlaysDrawn.PhysicsCapsules",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PhysicsLines",
              "anchor": "OverlaysDrawn.PhysicsLines",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PhysicsTriggers",
              "anchor": "OverlaysDrawn.PhysicsTriggers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PhysicsTiles",
              "anchor": "OverlaysDrawn.PhysicsTiles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfFrameSample",
          "anchor": "PerfFrameSample",
          "decl": "type PerfFrameSample struct {\n\tFrameMs  float64 `json:\"frame_ms\"`\n\tUpdateMs float64 `json:\"update_ms\"`\n\tDrawMs   float64 `json:\"draw_ms\"`\n\tGCHitch  bool    `json:\"gc_hitch,omitempty\"`\n\tCause    string  `json:\"cause,omitempty\"`\n}",
          "doc": "PerfFrameSample is one chronological frame timing entry from the debug overlay's ring buffer.\n",
          "file": "pkg/mcp/perf.go",
          "line": 36,
          "members": [
            {
              "name": "FrameMs",
              "anchor": "PerfFrameSample.FrameMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UpdateMs",
              "anchor": "PerfFrameSample.UpdateMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawMs",
              "anchor": "PerfFrameSample.DrawMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCHitch",
              "anchor": "PerfFrameSample.GCHitch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cause",
              "anchor": "PerfFrameSample.Cause",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfMemoryGroup",
          "anchor": "PerfMemoryGroup",
          "decl": "type PerfMemoryGroup struct {\n\tGroup      string           `json:\"group\"`\n\tTotalBytes int64            `json:\"total_bytes\"`\n\tBudget     int64            `json:\"budget,omitempty\"`\n\tOverBudget bool             `json:\"over_budget,omitempty\"`\n\tCount      int              `json:\"count\"`\n\tByKind     map[string]int64 `json:\"by_kind,omitempty\"`\n}",
          "doc": "PerfMemoryGroup summarizes tracked asset memory for one debug.MemoryTracker group.\n",
          "file": "pkg/mcp/perf.go",
          "line": 72,
          "members": [
            {
              "name": "Group",
              "anchor": "PerfMemoryGroup.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalBytes",
              "anchor": "PerfMemoryGroup.TotalBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Budget",
              "anchor": "PerfMemoryGroup.Budget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OverBudget",
              "anchor": "PerfMemoryGroup.OverBudget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "PerfMemoryGroup.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ByKind",
              "anchor": "PerfMemoryGroup.ByKind",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfMemorySummary",
          "anchor": "PerfMemorySummary",
          "decl": "type PerfMemorySummary struct {\n\tTotalBytes  int64             `json:\"total_bytes\"`\n\tTotalBudget int64             `json:\"total_budget,omitempty\"`\n\tOverBudget  bool              `json:\"over_budget,omitempty\"`\n\tGroups      []PerfMemoryGroup `json:\"groups\"`\n}",
          "doc": "PerfMemorySummary summarizes tracked asset memory from a debug.MemoryTracker.\n",
          "file": "pkg/mcp/perf.go",
          "line": 82,
          "members": [
            {
              "name": "TotalBytes",
              "anchor": "PerfMemorySummary.TotalBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalBudget",
              "anchor": "PerfMemorySummary.TotalBudget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OverBudget",
              "anchor": "PerfMemorySummary.OverBudget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Groups",
              "anchor": "PerfMemorySummary.Groups",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfReadoutResult",
          "anchor": "PerfReadoutResult",
          "decl": "type PerfReadoutResult struct {\n\tFPS            float64 `json:\"fps\"`\n\tFrameMs        float64 `json:\"frame_ms\"`\n\tUpdateMs       float64 `json:\"update_ms\"`\n\tDrawMs         float64 `json:\"draw_ms\"`\n\tSampleCount    int     `json:\"sample_count\"`\n\tLatestFrameMs  float64 `json:\"latest_frame_ms\"`\n\tLatestUpdateMs float64 `json:\"latest_update_ms\"`\n\tLatestDrawMs   float64 `json:\"latest_draw_ms\"`\n\tMinFrameMs     float64 `json:\"min_frame_ms\"`\n\tMaxFrameMs     float64 `json:\"max_frame_ms\"`\n\tP50FrameMs     float64 `json:\"p50_frame_ms\"`\n\tP95FrameMs     float64 `json:\"p95_frame_ms\"`\n\tP99FrameMs     float64 `json:\"p99_frame_ms\"`\n\n\tDrawCalls int    `json:\"draw_calls\"`\n\tSprites   int    `json:\"sprites\"`\n\tBatches   int    `json:\"batches\"`\n\tTriangles uint64 `json:\"triangles\"`\n\tVertices  uint64 `json:\"vertices\"`\n\n\tAllocsPerFrame      float64 `json:\"allocs_per_frame\"`\n\tAllocBytesPerFrame  float64 `json:\"alloc_bytes_per_frame\"`\n\tLastFrameAllocs     uint64  `json:\"last_frame_allocs\"`\n\tLastFrameAllocBytes uint64  `json:\"last_frame_alloc_bytes\"`\n\tHeapBytes           uint64  `json:\"heap_bytes\"`\n\tGCCount             uint64  `json:\"gc_count\"`\n\tGCLastPauseMs       float64 `json:\"gc_last_pause_ms\"`\n\tGCMaxPauseMs        float64 `json:\"gc_max_pause_ms\"`\n\tGCRecentHitches     int     `json:\"gc_recent_hitches\"`\n\n\tRender3D    *PerfRender3DStats `json:\"render3d,omitempty\"`\n\tAssetMemory *PerfMemorySummary `json:\"asset_memory,omitempty\"`\n\tHistory     []PerfFrameSample  `json:\"history,omitempty\"`\n\tZones       []PerfZoneInfo     `json:\"zones,omitempty\"`\n\tSources     PerfSources        `json:\"sources\"`\n}",
          "doc": "PerfReadoutResult is the JSON result of game_perf_readout.\n",
          "file": "pkg/mcp/perf.go",
          "line": 90,
          "members": [
            {
              "name": "FPS",
              "anchor": "PerfReadoutResult.FPS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameMs",
              "anchor": "PerfReadoutResult.FrameMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UpdateMs",
              "anchor": "PerfReadoutResult.UpdateMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawMs",
              "anchor": "PerfReadoutResult.DrawMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SampleCount",
              "anchor": "PerfReadoutResult.SampleCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LatestFrameMs",
              "anchor": "PerfReadoutResult.LatestFrameMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LatestUpdateMs",
              "anchor": "PerfReadoutResult.LatestUpdateMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LatestDrawMs",
              "anchor": "PerfReadoutResult.LatestDrawMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinFrameMs",
              "anchor": "PerfReadoutResult.MinFrameMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxFrameMs",
              "anchor": "PerfReadoutResult.MaxFrameMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "P50FrameMs",
              "anchor": "PerfReadoutResult.P50FrameMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "P95FrameMs",
              "anchor": "PerfReadoutResult.P95FrameMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "P99FrameMs",
              "anchor": "PerfReadoutResult.P99FrameMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawCalls",
              "anchor": "PerfReadoutResult.DrawCalls",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sprites",
              "anchor": "PerfReadoutResult.Sprites",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Batches",
              "anchor": "PerfReadoutResult.Batches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triangles",
              "anchor": "PerfReadoutResult.Triangles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vertices",
              "anchor": "PerfReadoutResult.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AllocsPerFrame",
              "anchor": "PerfReadoutResult.AllocsPerFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AllocBytesPerFrame",
              "anchor": "PerfReadoutResult.AllocBytesPerFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastFrameAllocs",
              "anchor": "PerfReadoutResult.LastFrameAllocs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastFrameAllocBytes",
              "anchor": "PerfReadoutResult.LastFrameAllocBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeapBytes",
              "anchor": "PerfReadoutResult.HeapBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCCount",
              "anchor": "PerfReadoutResult.GCCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCLastPauseMs",
              "anchor": "PerfReadoutResult.GCLastPauseMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCMaxPauseMs",
              "anchor": "PerfReadoutResult.GCMaxPauseMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GCRecentHitches",
              "anchor": "PerfReadoutResult.GCRecentHitches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Render3D",
              "anchor": "PerfReadoutResult.Render3D",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AssetMemory",
              "anchor": "PerfReadoutResult.AssetMemory",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "History",
              "anchor": "PerfReadoutResult.History",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zones",
              "anchor": "PerfReadoutResult.Zones",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sources",
              "anchor": "PerfReadoutResult.Sources",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfRender3DStats",
          "anchor": "PerfRender3DStats",
          "decl": "type PerfRender3DStats struct {\n\tTotalItems       int    `json:\"total_items\"`\n\tCulledItems      int    `json:\"culled_items\"`\n\tOccluded         int    `json:\"occluded\"`\n\tVisibleItems     int    `json:\"visible_items\"`\n\tOpaqueDraws      int    `json:\"opaque_draws\"`\n\tTransparentDraws int    `json:\"transparent_draws\"`\n\tInstancedBatches int    `json:\"instanced_batches\"`\n\tTotalDrawCalls   int    `json:\"total_draw_calls\"`\n\tTriangles        uint64 `json:\"triangles\"`\n\tVertices         uint64 `json:\"vertices\"`\n\tMaterialSwitches int    `json:\"material_switches\"`\n\tPipelineSwitches int    `json:\"pipeline_switches\"`\n\tTextureBytes     uint64 `json:\"texture_bytes\"`\n\tBufferBytes      uint64 `json:\"buffer_bytes\"`\n}",
          "doc": "PerfRender3DStats is a 3D renderer's per-frame statistics in snake_case JSON form. It has the same fields in the same order as render3d.RenderStats, so a game converts one with mcp.PerfRender3DStats(stats) and game/mcp does not link the 3D renderer.\n",
          "file": "pkg/mcp/perf.go",
          "line": 54,
          "members": [
            {
              "name": "TotalItems",
              "anchor": "PerfRender3DStats.TotalItems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CulledItems",
              "anchor": "PerfRender3DStats.CulledItems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Occluded",
              "anchor": "PerfRender3DStats.Occluded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VisibleItems",
              "anchor": "PerfRender3DStats.VisibleItems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OpaqueDraws",
              "anchor": "PerfRender3DStats.OpaqueDraws",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TransparentDraws",
              "anchor": "PerfRender3DStats.TransparentDraws",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InstancedBatches",
              "anchor": "PerfRender3DStats.InstancedBatches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalDrawCalls",
              "anchor": "PerfRender3DStats.TotalDrawCalls",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triangles",
              "anchor": "PerfRender3DStats.Triangles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vertices",
              "anchor": "PerfRender3DStats.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaterialSwitches",
              "anchor": "PerfRender3DStats.MaterialSwitches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PipelineSwitches",
              "anchor": "PerfRender3DStats.PipelineSwitches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextureBytes",
              "anchor": "PerfRender3DStats.TextureBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BufferBytes",
              "anchor": "PerfRender3DStats.BufferBytes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfResetResult",
          "anchor": "PerfResetResult",
          "decl": "type PerfResetResult struct {\n\tResetFrameStats bool `json:\"reset_frame_stats\"`\n\tResetProfiler   bool `json:\"reset_profiler\"`\n\tResetGC         bool `json:\"reset_gc\"`\n\tResetDrawStats  bool `json:\"reset_draw_stats\"`\n}",
          "doc": "PerfResetResult is the JSON result of game_perf_reset.\n",
          "file": "pkg/mcp/perf.go",
          "line": 137,
          "members": [
            {
              "name": "ResetFrameStats",
              "anchor": "PerfResetResult.ResetFrameStats",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResetProfiler",
              "anchor": "PerfResetResult.ResetProfiler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResetGC",
              "anchor": "PerfResetResult.ResetGC",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResetDrawStats",
              "anchor": "PerfResetResult.ResetDrawStats",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfSources",
          "anchor": "PerfSources",
          "decl": "type PerfSources struct {\n\tOverlay   bool `json:\"overlay\"`\n\tProfiler  bool `json:\"profiler\"`\n\tGC        bool `json:\"gc\"`\n\tMemory    bool `json:\"memory\"`\n\tDrawStats bool `json:\"draw_stats\"`\n\tRender3D  bool `json:\"render3d\"`\n}",
          "doc": "PerfSources reports which telemetry providers contributed to a performance readout.\n",
          "file": "pkg/mcp/perf.go",
          "line": 26,
          "members": [
            {
              "name": "Overlay",
              "anchor": "PerfSources.Overlay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Profiler",
              "anchor": "PerfSources.Profiler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GC",
              "anchor": "PerfSources.GC",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Memory",
              "anchor": "PerfSources.Memory",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawStats",
              "anchor": "PerfSources.DrawStats",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Render3D",
              "anchor": "PerfSources.Render3D",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfZoneInfo",
          "anchor": "PerfZoneInfo",
          "decl": "type PerfZoneInfo struct {\n\tName   string  `json:\"name\"`\n\tLastMs float64 `json:\"last_ms\"`\n\tAvgMs  float64 `json:\"avg_ms\"`\n\tMaxMs  float64 `json:\"max_ms\"`\n\tCalls  int     `json:\"calls\"`\n}",
          "doc": "PerfZoneInfo summarizes one named timing scope from debug.Profiler.\n",
          "file": "pkg/mcp/perf.go",
          "line": 45,
          "members": [
            {
              "name": "Name",
              "anchor": "PerfZoneInfo.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastMs",
              "anchor": "PerfZoneInfo.LastMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AvgMs",
              "anchor": "PerfZoneInfo.AvgMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxMs",
              "anchor": "PerfZoneInfo.MaxMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Calls",
              "anchor": "PerfZoneInfo.Calls",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfZonesResult",
          "anchor": "PerfZonesResult",
          "decl": "type PerfZonesResult struct {\n\tRecording      bool           `json:\"recording\"`\n\tRecordedFrames int            `json:\"recorded_frames\"`\n\tTotal          int            `json:\"total\"`\n\tZones          []PerfZoneInfo `json:\"zones\"`\n}",
          "doc": "PerfZonesResult is the JSON result of game_perf_zones.\n",
          "file": "pkg/mcp/perf.go",
          "line": 129,
          "members": [
            {
              "name": "Recording",
              "anchor": "PerfZonesResult.Recording",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RecordedFrames",
              "anchor": "PerfZonesResult.RecordedFrames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Total",
              "anchor": "PerfZonesResult.Total",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zones",
              "anchor": "PerfZonesResult.Zones",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PointerAction",
          "anchor": "PointerAction",
          "decl": "type PointerAction string",
          "doc": "PointerAction identifies the kind of pointer event delivered to Config.OnPointer.\n",
          "file": "pkg/mcp/input.go",
          "line": 31,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PointerPress",
                  "anchor": "PointerPress"
                },
                {
                  "name": "PointerRelease",
                  "anchor": "PointerRelease"
                },
                {
                  "name": "PointerMove",
                  "anchor": "PointerMove"
                }
              ],
              "decl": "const (\n\t// PointerPress reports a pointer button press.\n\tPointerPress PointerAction = \"press\"\n\t// PointerRelease reports a pointer button release.\n\tPointerRelease PointerAction = \"release\"\n\t// PointerMove reports pointer movement.\n\tPointerMove PointerAction = \"move\"\n)",
              "doc": "",
              "file": "pkg/mcp/input.go",
              "line": 33
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PointerEvent",
          "anchor": "PointerEvent",
          "decl": "type PointerEvent struct {\n\t// Action is PointerPress, PointerRelease, or PointerMove. A \"click\" tool call emits PointerPress followed by PointerRelease.\n\tAction PointerAction\n\t// Button is the mouse button for the event (MouseButtonLeft, MouseButtonRight, MouseButtonMiddle, or MouseButtonNone when hovering).\n\tButton core.MouseButton\n\t// GamePoint is the event position in virtual game canvas coordinates.\n\tGamePoint core.Point\n\t// ViewPoint is GamePoint mapped through the configured screen.Viewport into view coordinates (equal to GamePoint when no viewport is configured).\n\tViewPoint core.Point\n\t// WorldPoint is GamePoint converted into world coordinates through the active scene's Camera when present, or the supplied world point when space=\"world\".\n\tWorldPoint core.Point\n\t// HasWorldPoint reports whether WorldPoint is populated.\n\tHasWorldPoint bool\n\t// InViewport reports whether ViewPoint lies inside the visible viewport area (true when no viewport is configured).\n\tInViewport bool\n\t// Hit is the topmost hit returned by the active scene's HitTest(GamePoint) when InViewport is true, or nil if nothing was hit.\n\tHit *scene.HitResult\n\t// Dispatched reports whether Scene.DispatchPress invoked a sprite or drawable OnPress callback for this event.\n\tDispatched bool\n}",
          "doc": "PointerEvent describes a pointer event injected through game_input_pointer after viewport mapping and scene hit testing.\n",
          "file": "pkg/mcp/input.go",
          "line": 43,
          "members": [
            {
              "name": "Action",
              "anchor": "PointerEvent.Action",
              "kind": "field",
              "doc": "Action is PointerPress, PointerRelease, or PointerMove. A \"click\" tool call emits PointerPress followed by PointerRelease."
            },
            {
              "name": "Button",
              "anchor": "PointerEvent.Button",
              "kind": "field",
              "doc": "Button is the mouse button for the event (MouseButtonLeft, MouseButtonRight, MouseButtonMiddle, or MouseButtonNone when hovering)."
            },
            {
              "name": "GamePoint",
              "anchor": "PointerEvent.GamePoint",
              "kind": "field",
              "doc": "GamePoint is the event position in virtual game canvas coordinates."
            },
            {
              "name": "ViewPoint",
              "anchor": "PointerEvent.ViewPoint",
              "kind": "field",
              "doc": "ViewPoint is GamePoint mapped through the configured screen.Viewport into view coordinates (equal to GamePoint when no viewport is configured)."
            },
            {
              "name": "WorldPoint",
              "anchor": "PointerEvent.WorldPoint",
              "kind": "field",
              "doc": "WorldPoint is GamePoint converted into world coordinates through the active scene's Camera when present, or the supplied world point when space=\"world\"."
            },
            {
              "name": "HasWorldPoint",
              "anchor": "PointerEvent.HasWorldPoint",
              "kind": "field",
              "doc": "HasWorldPoint reports whether WorldPoint is populated."
            },
            {
              "name": "InViewport",
              "anchor": "PointerEvent.InViewport",
              "kind": "field",
              "doc": "InViewport reports whether ViewPoint lies inside the visible viewport area (true when no viewport is configured)."
            },
            {
              "name": "Hit",
              "anchor": "PointerEvent.Hit",
              "kind": "field",
              "doc": "Hit is the topmost hit returned by the active scene's HitTest(GamePoint) when InViewport is true, or nil if nothing was hit."
            },
            {
              "name": "Dispatched",
              "anchor": "PointerEvent.Dispatched",
              "kind": "field",
              "doc": "Dispatched reports whether Scene.DispatchPress invoked a sprite or drawable OnPress callback for this event."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PrefabInfo",
          "anchor": "PrefabInfo",
          "decl": "type PrefabInfo struct {\n\tName string `json:\"name\"`\n\tKind string `json:\"kind\"`\n}",
          "doc": "PrefabInfo describes one registered prefab returned by game_prefabs_list.\n",
          "file": "pkg/mcp/edit.go",
          "line": 51,
          "members": [
            {
              "name": "Name",
              "anchor": "PrefabInfo.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "PrefabInfo.Kind",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PrefabSpawner",
          "anchor": "PrefabSpawner",
          "decl": "type PrefabSpawner func(w *entities.World, overrides map[string]any) (entities.Entity, error)",
          "doc": "PrefabSpawner spawns a live entity into w with optional override parameters from game_entity_spawn.\n",
          "file": "pkg/mcp/edit.go",
          "line": 42,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PrefabsListResult",
          "anchor": "PrefabsListResult",
          "decl": "type PrefabsListResult struct {\n\tPrefabs []PrefabInfo `json:\"prefabs\"`\n}",
          "doc": "PrefabsListResult is the JSON result of game_prefabs_list.\n",
          "file": "pkg/mcp/edit.go",
          "line": 57,
          "members": [
            {
              "name": "Prefabs",
              "anchor": "PrefabsListResult.Prefabs",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReloadedItem",
          "anchor": "ReloadedItem",
          "decl": "type ReloadedItem struct {\n\tKey    string `json:\"key\"`\n\tGroup  string `json:\"group,omitempty\"`\n\tKind   string `json:\"kind,omitempty\"`\n\tURI    string `json:\"uri,omitempty\"`\n\tBytes  int64  `json:\"bytes\"`\n\tFrames int    `json:\"frames,omitempty\"`\n\t// Skipped says why the asset was left unchanged without an error, such as a sound or an image with no file behind it.\n\tSkipped string `json:\"skipped,omitempty\"`\n\tError   string `json:\"error,omitempty\"`\n}",
          "doc": "ReloadedItem describes one asset touched during a reload operation.\n",
          "file": "pkg/mcp/assets.go",
          "line": 93,
          "members": [
            {
              "name": "Key",
              "anchor": "ReloadedItem.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Group",
              "anchor": "ReloadedItem.Group",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ReloadedItem.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "URI",
              "anchor": "ReloadedItem.URI",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "ReloadedItem.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "ReloadedItem.Frames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Skipped",
              "anchor": "ReloadedItem.Skipped",
              "kind": "field",
              "doc": "Skipped says why the asset was left unchanged without an error, such as a sound or an image with no file behind it."
            },
            {
              "name": "Error",
              "anchor": "ReloadedItem.Error",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RenderedPNG",
          "anchor": "RenderedPNG",
          "decl": "type RenderedPNG struct {\n\t// PNG is the encoded image.\n\tPNG []byte\n\t// Width and Height are the image's size in pixels.\n\tWidth, Height int\n\t// SkippedOps counts the drawing operations the rasterizer does not support, such as text, by their core.DrawKind name.\n\tSkippedOps map[string]int\n\t// SkippedImages counts the images it could not draw because their source is not in memory (a URI, asset: or offscreen source rather than Pixels or Data).\n\tSkippedImages int\n}",
          "doc": "RenderedPNG is a drawing RenderPNG rasterized: the PNG and what the software rasterizer could not draw, so a caller can say the picture is partial.\n",
          "file": "pkg/mcp/render.go",
          "line": 12,
          "members": [
            {
              "name": "PNG",
              "anchor": "RenderedPNG.PNG",
              "kind": "field",
              "doc": "PNG is the encoded image."
            },
            {
              "name": "Width",
              "anchor": "RenderedPNG.Width",
              "kind": "field",
              "doc": "Width and Height are the image's size in pixels."
            },
            {
              "name": "Height",
              "anchor": "RenderedPNG.Height",
              "kind": "field",
              "doc": "Width and Height are the image's size in pixels."
            },
            {
              "name": "SkippedOps",
              "anchor": "RenderedPNG.SkippedOps",
              "kind": "field",
              "doc": "SkippedOps counts the drawing operations the rasterizer does not support, such as text, by their core.DrawKind name."
            },
            {
              "name": "SkippedImages",
              "anchor": "RenderedPNG.SkippedImages",
              "kind": "field",
              "doc": "SkippedImages counts the images it could not draw because their source is not in memory (a URI, asset: or offscreen source rather than Pixels or Data)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "RenderPNG",
              "anchor": "RenderPNG",
              "decl": "func RenderPNG(ops []core.DrawOp, width, height int, background core.Color) (RenderedPNG, error)",
              "doc": "RenderPNG plays ops, a recorded core.Drawing's operations, into a width by height pixel image over background and encodes it as PNG, with the software rasterizer game_screenshot uses when it draws a frame itself, so tools outside a running game, such as the editor's viewport_image, get the same picture on every platform and headless. Zero background leaves the image transparent. It refuses a size that is not positive, exceeds 8192 pixels on a side or 4096 × 4096 pixels in all.\n",
              "file": "pkg/mcp/render.go",
              "line": 24
            }
          ],
          "methods": []
        },
        {
          "name": "ReplayConfig",
          "anchor": "ReplayConfig",
          "decl": "type ReplayConfig struct {\n\t// Source is the live replay.ActionSource (such as *input.Actions) forwarded during live play and wrapped by a fresh replay.Recorder on each game_replay_record_start. It is required for recording, and it keeps being stepped during playback so its previous-step snapshot is current when live input resumes.\n\tSource replay.ActionSource\n\n\t// Actions lists the default watched action names recorded by game_replay_record_start when the caller omits actions.\n\tActions []string\n\n\t// Axes lists the default watched axis names recorded by game_replay_record_start when the caller omits axes.\n\tAxes []string\n\n\t// StepRate is the game's fixed step rate in steps per second when the Bridge has no game loop (Config.Loop or Config.LoopFunc); with a loop, the loop's StepRate is used. It defaults to 60. Recordings are made at this rate, and game_replay_play refuses a recording made at another rate.\n\tStepRate int\n\n\t// StepFunc, when set, advances the simulation by one fixed step of duration dt and is expected to call the controller's Step method once. game_replay_play uses it for run_to_end and steps; without it, those advance the Bridge's game loop with Loop.StepNow.\n\tStepFunc func(dt time.Duration)\n\n\t// SeedFunc, when set, supplies the default seed for game_replay_record_start when the caller omits seed.\n\tSeedFunc func() uint64\n\n\t// ResetFunc, when set, resets the simulation deterministically to seed. With reset (the default when ResetFunc or a seed target is configured), game_replay_record_start and game_replay_play first re-seed the Bridge's seed targets (Config.Random, Config.RandomStreams, Config.SetSeed) and then call ResetFunc, so a recording and its replay start from the same state.\n\tResetFunc func(seed uint64) error\n\n\t// OnRecordStart, when set, is called after a recording starts.\n\tOnRecordStart func(name string, seed uint64)\n\n\t// OnRecordStop, when set, is called after a recording stops with the stored name and a copy of the completed recording.\n\tOnRecordStop func(name string, rec *replay.Recording)\n\n\t// OnReplayStart, when set, is called after ResetFunc succeeds and playback starts.\n\tOnReplayStart func(rec *replay.Recording)\n\n\t// OnReplayStop, when set, is called when playback finishes or is stopped early.\n\tOnReplayStop func()\n\n\t// SaveDir is an optional root directory on disk where game_replay_record_stop may write YAML recordings when save_path is supplied. Writes go through os.Root, so relative paths and symbolic links cannot leave SaveDir; when SaveDir is empty, save_path is refused.\n\tSaveDir string\n}",
          "doc": "ReplayConfig configures a ReplayController for MCP input recording and deterministic playback.\n\nPass the resulting *ReplayController as your game's replay.ActionSource so live play, recording and playback share the exact same update loop.\n",
          "file": "pkg/mcp/replay.go",
          "line": 56,
          "members": [
            {
              "name": "Source",
              "anchor": "ReplayConfig.Source",
              "kind": "field",
              "doc": "Source is the live replay.ActionSource (such as *input.Actions) forwarded during live play and wrapped by a fresh replay.Recorder on each game_replay_record_start. It is required for recording, and it keeps being stepped during playback so its previous-step snapshot is current when live input resumes."
            },
            {
              "name": "Actions",
              "anchor": "ReplayConfig.Actions",
              "kind": "field",
              "doc": "Actions lists the default watched action names recorded by game_replay_record_start when the caller omits actions."
            },
            {
              "name": "Axes",
              "anchor": "ReplayConfig.Axes",
              "kind": "field",
              "doc": "Axes lists the default watched axis names recorded by game_replay_record_start when the caller omits axes."
            },
            {
              "name": "StepRate",
              "anchor": "ReplayConfig.StepRate",
              "kind": "field",
              "doc": "StepRate is the game's fixed step rate in steps per second when the Bridge has no game loop (Config.Loop or Config.LoopFunc); with a loop, the loop's StepRate is used. It defaults to 60. Recordings are made at this rate, and game_replay_play refuses a recording made at another rate."
            },
            {
              "name": "StepFunc",
              "anchor": "ReplayConfig.StepFunc",
              "kind": "field",
              "doc": "StepFunc, when set, advances the simulation by one fixed step of duration dt and is expected to call the controller's Step method once. game_replay_play uses it for run_to_end and steps; without it, those advance the Bridge's game loop with Loop.StepNow."
            },
            {
              "name": "SeedFunc",
              "anchor": "ReplayConfig.SeedFunc",
              "kind": "field",
              "doc": "SeedFunc, when set, supplies the default seed for game_replay_record_start when the caller omits seed."
            },
            {
              "name": "ResetFunc",
              "anchor": "ReplayConfig.ResetFunc",
              "kind": "field",
              "doc": "ResetFunc, when set, resets the simulation deterministically to seed. With reset (the default when ResetFunc or a seed target is configured), game_replay_record_start and game_replay_play first re-seed the Bridge's seed targets (Config.Random, Config.RandomStreams, Config.SetSeed) and then call ResetFunc, so a recording and its replay start from the same state."
            },
            {
              "name": "OnRecordStart",
              "anchor": "ReplayConfig.OnRecordStart",
              "kind": "field",
              "doc": "OnRecordStart, when set, is called after a recording starts."
            },
            {
              "name": "OnRecordStop",
              "anchor": "ReplayConfig.OnRecordStop",
              "kind": "field",
              "doc": "OnRecordStop, when set, is called after a recording stops with the stored name and a copy of the completed recording."
            },
            {
              "name": "OnReplayStart",
              "anchor": "ReplayConfig.OnReplayStart",
              "kind": "field",
              "doc": "OnReplayStart, when set, is called after ResetFunc succeeds and playback starts."
            },
            {
              "name": "OnReplayStop",
              "anchor": "ReplayConfig.OnReplayStop",
              "kind": "field",
              "doc": "OnReplayStop, when set, is called when playback finishes or is stopped early."
            },
            {
              "name": "SaveDir",
              "anchor": "ReplayConfig.SaveDir",
              "kind": "field",
              "doc": "SaveDir is an optional root directory on disk where game_replay_record_stop may write YAML recordings when save_path is supplied. Writes go through os.Root, so relative paths and symbolic links cannot leave SaveDir; when SaveDir is empty, save_path is refused."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReplayController",
          "anchor": "ReplayController",
          "decl": "type ReplayController struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ReplayController coordinates live input forwarding, recording via replay.Recorder, and deterministic playback via replay.Player for MCP tools.\n\nReplayController implements replay.ActionSource so a game can read inputs from it unconditionally across live play, recording and playback.\n",
          "file": "pkg/mcp/replay.go",
          "line": 102,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewReplayController",
              "anchor": "NewReplayController",
              "decl": "func NewReplayController(cfg ReplayConfig) *ReplayController",
              "doc": "NewReplayController creates a ReplayController from cfg.\n",
              "file": "pkg/mcp/replay.go",
              "line": 119
            }
          ],
          "methods": [
            {
              "name": "Axis",
              "anchor": "ReplayController.Axis",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) Axis(name string) float64",
              "doc": "Axis returns the value of axis name on the active input source for the current step.\n",
              "file": "pkg/mcp/replay.go",
              "line": 225
            },
            {
              "name": "DeleteRecording",
              "anchor": "ReplayController.DeleteRecording",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) DeleteRecording(name string) bool",
              "doc": "DeleteRecording removes the stored recording named name and reports whether it existed.\n",
              "file": "pkg/mcp/replay.go",
              "line": 282
            },
            {
              "name": "GetRecording",
              "anchor": "ReplayController.GetRecording",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) GetRecording(name string) (*replay.Recording, bool)",
              "doc": "GetRecording returns a deep copy of the stored recording named name.\n",
              "file": "pkg/mcp/replay.go",
              "line": 270
            },
            {
              "name": "JustPressed",
              "anchor": "ReplayController.JustPressed",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) JustPressed(name string) bool",
              "doc": "JustPressed reports whether name became pressed on the active input source on the current step.\n",
              "file": "pkg/mcp/replay.go",
              "line": 191
            },
            {
              "name": "JustReleased",
              "anchor": "ReplayController.JustReleased",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) JustReleased(name string) bool",
              "doc": "JustReleased reports whether name was released on the active input source on the current step.\n",
              "file": "pkg/mcp/replay.go",
              "line": 208
            },
            {
              "name": "Pressed",
              "anchor": "ReplayController.Pressed",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) Pressed(name string) bool",
              "doc": "Pressed reports whether name is pressed on the active input source for the current step.\n",
              "file": "pkg/mcp/replay.go",
              "line": 174
            },
            {
              "name": "Recording",
              "anchor": "ReplayController.Recording",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) Recording() bool",
              "doc": "Recording reports whether an input recording is currently in progress.\n",
              "file": "pkg/mcp/replay.go",
              "line": 242
            },
            {
              "name": "RecordingNames",
              "anchor": "ReplayController.RecordingNames",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) RecordingNames() []string",
              "doc": "RecordingNames returns the sorted names of all recordings stored in c.\n",
              "file": "pkg/mcp/replay.go",
              "line": 294
            },
            {
              "name": "Replaying",
              "anchor": "ReplayController.Replaying",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) Replaying() bool",
              "doc": "Replaying reports whether replay playback is currently in progress (not yet finished).\n",
              "file": "pkg/mcp/replay.go",
              "line": 247
            },
            {
              "name": "SaveRecording",
              "anchor": "ReplayController.SaveRecording",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) SaveRecording(name string, rec *replay.Recording) error",
              "doc": "SaveRecording validates and stores a deep copy of rec under name in c's in-memory store.\n",
              "file": "pkg/mcp/replay.go",
              "line": 252
            },
            {
              "name": "Step",
              "anchor": "ReplayController.Step",
              "recv": "*ReplayController",
              "decl": "func (c *ReplayController) Step()",
              "doc": "Step advances the active replay.Player, active replay.Recorder or live Source by one fixed step.\n\nAfter the final recorded step, one more Step is a trailing playback step that releases actions still held at the end of the recording (firing JustReleased once); the Step after it finishes playback and resumes live input. The live Source is stepped during playback too, so its previous-step snapshot is current when live input resumes.\n",
              "file": "pkg/mcp/replay.go",
              "line": 147
            }
          ]
        },
        {
          "name": "ReplayListResult",
          "anchor": "ReplayListResult",
          "decl": "type ReplayListResult struct {\n\tCount      int             `json:\"count\"`\n\tRecordings []ReplaySummary `json:\"recordings\"`\n}",
          "doc": "ReplayListResult is the JSON result of game_replay_list.\n",
          "file": "pkg/mcp/replay.go",
          "line": 438,
          "members": [
            {
              "name": "Count",
              "anchor": "ReplayListResult.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Recordings",
              "anchor": "ReplayListResult.Recordings",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReplayPlayResult",
          "anchor": "ReplayPlayResult",
          "decl": "type ReplayPlayResult struct {\n\tName              string `json:\"name,omitempty\"`\n\tSeed              uint64 `json:\"seed\"`\n\tStepRate          int    `json:\"step_rate\"`\n\tReplaying         bool   `json:\"replaying\"`\n\tCompleted         bool   `json:\"completed\"`\n\tFramesPlayed      int    `json:\"frames_played\"`\n\tReplayTotalFrames int    `json:\"replay_total_frames\"`\n}",
          "doc": "ReplayPlayResult is the JSON result of game_replay_play.\n",
          "file": "pkg/mcp/replay.go",
          "line": 407,
          "members": [
            {
              "name": "Name",
              "anchor": "ReplayPlayResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "ReplayPlayResult.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepRate",
              "anchor": "ReplayPlayResult.StepRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Replaying",
              "anchor": "ReplayPlayResult.Replaying",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Completed",
              "anchor": "ReplayPlayResult.Completed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FramesPlayed",
              "anchor": "ReplayPlayResult.FramesPlayed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayTotalFrames",
              "anchor": "ReplayPlayResult.ReplayTotalFrames",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReplayRecordStartResult",
          "anchor": "ReplayRecordStartResult",
          "decl": "type ReplayRecordStartResult struct {\n\tRecording bool              `json:\"recording\"`\n\tName      string            `json:\"name\"`\n\tSeed      uint64            `json:\"seed\"`\n\tStepRate  int               `json:\"step_rate\"`\n\tActions   []string          `json:\"actions,omitempty\"`\n\tAxes      []string          `json:\"axes,omitempty\"`\n\tMetadata  map[string]string `json:\"metadata,omitempty\"`\n}",
          "doc": "ReplayRecordStartResult is the JSON result of game_replay_record_start.\n",
          "file": "pkg/mcp/replay.go",
          "line": 382,
          "members": [
            {
              "name": "Recording",
              "anchor": "ReplayRecordStartResult.Recording",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "ReplayRecordStartResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "ReplayRecordStartResult.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepRate",
              "anchor": "ReplayRecordStartResult.StepRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actions",
              "anchor": "ReplayRecordStartResult.Actions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Axes",
              "anchor": "ReplayRecordStartResult.Axes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Metadata",
              "anchor": "ReplayRecordStartResult.Metadata",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReplayRecordStopResult",
          "anchor": "ReplayRecordStopResult",
          "decl": "type ReplayRecordStopResult struct {\n\tName      string            `json:\"name\"`\n\tFrames    int               `json:\"frames\"`\n\tSeed      uint64            `json:\"seed\"`\n\tStepRate  int               `json:\"step_rate\"`\n\tEvents    int               `json:\"events\"`\n\tActions   []string          `json:\"actions,omitempty\"`\n\tAxes      []string          `json:\"axes,omitempty\"`\n\tMetadata  map[string]string `json:\"metadata,omitempty\"`\n\tSavedPath string            `json:\"saved_path,omitempty\"`\n\tYAML      string            `json:\"yaml\"`\n}",
          "doc": "ReplayRecordStopResult is the JSON result of game_replay_record_stop.\n",
          "file": "pkg/mcp/replay.go",
          "line": 393,
          "members": [
            {
              "name": "Name",
              "anchor": "ReplayRecordStopResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "ReplayRecordStopResult.Frames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "ReplayRecordStopResult.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepRate",
              "anchor": "ReplayRecordStopResult.StepRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Events",
              "anchor": "ReplayRecordStopResult.Events",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actions",
              "anchor": "ReplayRecordStopResult.Actions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Axes",
              "anchor": "ReplayRecordStopResult.Axes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Metadata",
              "anchor": "ReplayRecordStopResult.Metadata",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SavedPath",
              "anchor": "ReplayRecordStopResult.SavedPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YAML",
              "anchor": "ReplayRecordStopResult.YAML",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReplayStatusResult",
          "anchor": "ReplayStatusResult",
          "decl": "type ReplayStatusResult struct {\n\tRecording         bool              `json:\"recording\"`\n\tRecordingName     string            `json:\"recording_name,omitempty\"`\n\tRecordingSeed     uint64            `json:\"recording_seed,omitempty\"`\n\tRecordingStepRate int               `json:\"recording_step_rate,omitempty\"`\n\tRecordingMetadata map[string]string `json:\"recording_metadata,omitempty\"`\n\tFramesRecorded    int               `json:\"frames_recorded\"`\n\tReplaying         bool              `json:\"replaying\"`\n\tReplayDone        bool              `json:\"replay_done,omitempty\"`\n\tReplayName        string            `json:\"replay_name,omitempty\"`\n\tReplayFrame       int               `json:\"replay_frame\"`\n\tReplayTotalFrames int               `json:\"replay_total_frames\"`\n\tSavedRecordings   []string          `json:\"saved_recordings\"`\n}",
          "doc": "ReplayStatusResult is the JSON result of game_replay_status.\n",
          "file": "pkg/mcp/replay.go",
          "line": 366,
          "members": [
            {
              "name": "Recording",
              "anchor": "ReplayStatusResult.Recording",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RecordingName",
              "anchor": "ReplayStatusResult.RecordingName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RecordingSeed",
              "anchor": "ReplayStatusResult.RecordingSeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RecordingStepRate",
              "anchor": "ReplayStatusResult.RecordingStepRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RecordingMetadata",
              "anchor": "ReplayStatusResult.RecordingMetadata",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FramesRecorded",
              "anchor": "ReplayStatusResult.FramesRecorded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Replaying",
              "anchor": "ReplayStatusResult.Replaying",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayDone",
              "anchor": "ReplayStatusResult.ReplayDone",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayName",
              "anchor": "ReplayStatusResult.ReplayName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayFrame",
              "anchor": "ReplayStatusResult.ReplayFrame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayTotalFrames",
              "anchor": "ReplayStatusResult.ReplayTotalFrames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SavedRecordings",
              "anchor": "ReplayStatusResult.SavedRecordings",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReplayStopResult",
          "anchor": "ReplayStopResult",
          "decl": "type ReplayStopResult struct {\n\tStopped           bool   `json:\"stopped\"`\n\tName              string `json:\"name,omitempty\"`\n\tFramesPlayed      int    `json:\"frames_played\"`\n\tReplayTotalFrames int    `json:\"replay_total_frames\"`\n}",
          "doc": "ReplayStopResult is the JSON result of game_replay_stop.\n",
          "file": "pkg/mcp/replay.go",
          "line": 418,
          "members": [
            {
              "name": "Stopped",
              "anchor": "ReplayStopResult.Stopped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "ReplayStopResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FramesPlayed",
              "anchor": "ReplayStopResult.FramesPlayed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReplayTotalFrames",
              "anchor": "ReplayStopResult.ReplayTotalFrames",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReplaySummary",
          "anchor": "ReplaySummary",
          "decl": "type ReplaySummary struct {\n\tName     string            `json:\"name\"`\n\tFrames   int               `json:\"frames\"`\n\tSeed     uint64            `json:\"seed\"`\n\tStepRate int               `json:\"step_rate\"`\n\tEvents   int               `json:\"events\"`\n\tActions  []string          `json:\"actions,omitempty\"`\n\tAxes     []string          `json:\"axes,omitempty\"`\n\tMetadata map[string]string `json:\"metadata,omitempty\"`\n}",
          "doc": "ReplaySummary describes one stored recording returned by game_replay_list.\n",
          "file": "pkg/mcp/replay.go",
          "line": 426,
          "members": [
            {
              "name": "Name",
              "anchor": "ReplaySummary.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "ReplaySummary.Frames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "ReplaySummary.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepRate",
              "anchor": "ReplaySummary.StepRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Events",
              "anchor": "ReplaySummary.Events",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actions",
              "anchor": "ReplaySummary.Actions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Axes",
              "anchor": "ReplaySummary.Axes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Metadata",
              "anchor": "ReplaySummary.Metadata",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SceneInfo",
          "anchor": "SceneInfo",
          "decl": "type SceneInfo struct {\n\tName        string      `json:\"name\"`\n\tActive      bool        `json:\"active\"`\n\tCurrent     bool        `json:\"current,omitempty\"`\n\tStackIndex  *int        `json:\"stack_index,omitempty\"`\n\tTransparent bool        `json:\"transparent,omitempty\"`\n\tLayerCount  int         `json:\"layer_count\"`\n\tCamera      *CameraInfo `json:\"camera,omitempty\"`\n}",
          "doc": "SceneInfo describes one active or named scene returned by game_scenes_list.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 67,
          "members": [
            {
              "name": "Name",
              "anchor": "SceneInfo.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Active",
              "anchor": "SceneInfo.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Current",
              "anchor": "SceneInfo.Current",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StackIndex",
              "anchor": "SceneInfo.StackIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transparent",
              "anchor": "SceneInfo.Transparent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LayerCount",
              "anchor": "SceneInfo.LayerCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Camera",
              "anchor": "SceneInfo.Camera",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScenesListResult",
          "anchor": "ScenesListResult",
          "decl": "type ScenesListResult struct {\n\tCurrent       string      `json:\"current,omitempty\"`\n\tStackDepth    int         `json:\"stack_depth\"`\n\tTransitioning bool        `json:\"transitioning,omitempty\"`\n\tProgress      float64     `json:\"progress,omitempty\"`\n\tScenes        []SceneInfo `json:\"scenes\"`\n}",
          "doc": "ScenesListResult is the JSON result of game_scenes_list.\n",
          "file": "pkg/mcp/inspect.go",
          "line": 78,
          "members": [
            {
              "name": "Current",
              "anchor": "ScenesListResult.Current",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StackDepth",
              "anchor": "ScenesListResult.StackDepth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transitioning",
              "anchor": "ScenesListResult.Transitioning",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Progress",
              "anchor": "ScenesListResult.Progress",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scenes",
              "anchor": "ScenesListResult.Scenes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScreenshotOverlays",
          "anchor": "ScreenshotOverlays",
          "decl": "type ScreenshotOverlays struct {\n\t// Bounds draws crisp bounding rectangles aligned with every visible sprite in the scene.\n\tBounds bool `json:\"bounds,omitempty\"`\n\t// CollisionShapes draws 2D physics collision shapes (boxes, circles, triggers, rigid bodies and collision tiles).\n\tCollisionShapes bool `json:\"collision_shapes,omitempty\"`\n\t// Physics is an alias for CollisionShapes; setting either enables collision-shape overlays.\n\tPhysics bool `json:\"physics,omitempty\"`\n\t// Grid draws a reference grid in world space (or view space when no camera is active).\n\tGrid bool `json:\"grid,omitempty\"`\n\t// GridStep sets the spacing of the reference grid in world points when Grid is true (default 32).\n\tGridStep float32 `json:\"grid_step,omitempty\"`\n\t// Camera draws the active camera's visible frame and center crosshair.\n\tCamera bool `json:\"camera,omitempty\"`\n\t// Labels draws compact text labels next to drawn sprite bounds and physics bodies.\n\tLabels bool `json:\"labels,omitempty\"`\n}",
          "doc": "ScreenshotOverlays configures diagnostic overlays drawn on top of a game_screenshot capture.\n",
          "file": "pkg/mcp/screenshot.go",
          "line": 86,
          "members": [
            {
              "name": "Bounds",
              "anchor": "ScreenshotOverlays.Bounds",
              "kind": "field",
              "doc": "Bounds draws crisp bounding rectangles aligned with every visible sprite in the scene."
            },
            {
              "name": "CollisionShapes",
              "anchor": "ScreenshotOverlays.CollisionShapes",
              "kind": "field",
              "doc": "CollisionShapes draws 2D physics collision shapes (boxes, circles, triggers, rigid bodies and collision tiles)."
            },
            {
              "name": "Physics",
              "anchor": "ScreenshotOverlays.Physics",
              "kind": "field",
              "doc": "Physics is an alias for CollisionShapes; setting either enables collision-shape overlays."
            },
            {
              "name": "Grid",
              "anchor": "ScreenshotOverlays.Grid",
              "kind": "field",
              "doc": "Grid draws a reference grid in world space (or view space when no camera is active)."
            },
            {
              "name": "GridStep",
              "anchor": "ScreenshotOverlays.GridStep",
              "kind": "field",
              "doc": "GridStep sets the spacing of the reference grid in world points when Grid is true (default 32)."
            },
            {
              "name": "Camera",
              "anchor": "ScreenshotOverlays.Camera",
              "kind": "field",
              "doc": "Camera draws the active camera's visible frame and center crosshair."
            },
            {
              "name": "Labels",
              "anchor": "ScreenshotOverlays.Labels",
              "kind": "field",
              "doc": "Labels draws compact text labels next to drawn sprite bounds and physics bodies."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ScreenshotResult",
          "anchor": "ScreenshotResult",
          "decl": "type ScreenshotResult struct {\n\tWidth         int           `json:\"width\"`\n\tHeight        int           `json:\"height\"`\n\tFormat        string        `json:\"format\"`\n\tScene         string        `json:\"scene,omitempty\"`\n\tPath          string        `json:\"path,omitempty\"`\n\tBytes         int           `json:\"bytes\"`\n\tPNGBase64     string        `json:\"png_base64,omitempty\"`\n\tOverlaysDrawn OverlaysDrawn `json:\"overlays_drawn\"`\n\t// SkippedOps counts, by draw operation kind (such as \"DrawFillText\" or \"DrawEllipse\"), what the software rasterizer did not draw when the frame was rendered rather than captured. A non-empty map means the image is partial.\n\tSkippedOps map[string]int `json:\"skipped_ops,omitempty\"`\n\t// SkippedImages counts image and atlas draws the software rasterizer left out because their source is not in memory (a URI, an \"asset:\" file or an Offscreen canvas) or could not be decoded. Use CaptureFrame to see them.\n\tSkippedImages int `json:\"skipped_images,omitempty\"`\n}",
          "doc": "ScreenshotResult is the JSON result of game_screenshot.\n",
          "file": "pkg/mcp/screenshot.go",
          "line": 123,
          "members": [
            {
              "name": "Width",
              "anchor": "ScreenshotResult.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "ScreenshotResult.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Format",
              "anchor": "ScreenshotResult.Format",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scene",
              "anchor": "ScreenshotResult.Scene",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Path",
              "anchor": "ScreenshotResult.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "ScreenshotResult.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PNGBase64",
              "anchor": "ScreenshotResult.PNGBase64",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OverlaysDrawn",
              "anchor": "ScreenshotResult.OverlaysDrawn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SkippedOps",
              "anchor": "ScreenshotResult.SkippedOps",
              "kind": "field",
              "doc": "SkippedOps counts, by draw operation kind (such as \"DrawFillText\" or \"DrawEllipse\"), what the software rasterizer did not draw when the frame was rendered rather than captured. A non-empty map means the image is partial."
            },
            {
              "name": "SkippedImages",
              "anchor": "ScreenshotResult.SkippedImages",
              "kind": "field",
              "doc": "SkippedImages counts image and atlas draws the software rasterizer left out because their source is not in memory (a URI, an \"asset:\" file or an Offscreen canvas) or could not be decoded. Use CaptureFrame to see them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TunableResult",
          "anchor": "TunableResult",
          "decl": "type TunableResult struct {\n\tName    string `json:\"name\"`\n\tType    string `json:\"type\"`\n\tValue   any    `json:\"value\"`\n\tDefault any    `json:\"default\"`\n\tMin     any    `json:\"min,omitempty\"`\n\tMax     any    `json:\"max,omitempty\"`\n}",
          "doc": "TunableResult describes one registered tunable variable, as game_tunables_list and game_tunable_get return it. It is debug.TunableInfo in JSON form, with a non-finite float bound written as \"NaN\", \"+Inf\" or \"-Inf\".\n",
          "file": "pkg/mcp/console.go",
          "line": 32,
          "members": [
            {
              "name": "Name",
              "anchor": "TunableResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Type",
              "anchor": "TunableResult.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "TunableResult.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Default",
              "anchor": "TunableResult.Default",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Min",
              "anchor": "TunableResult.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "TunableResult.Max",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TunableSetResult",
          "anchor": "TunableSetResult",
          "decl": "type TunableSetResult struct {\n\tName     string `json:\"name\"`\n\tType     string `json:\"type\"`\n\tOldValue any    `json:\"old_value\"`\n\tValue    any    `json:\"value\"`\n\tDefault  any    `json:\"default\"`\n\tMin      any    `json:\"min,omitempty\"`\n\tMax      any    `json:\"max,omitempty\"`\n\tClamped  bool   `json:\"clamped,omitempty\"`\n}",
          "doc": "TunableSetResult is the JSON result of game_tunable_set.\n",
          "file": "pkg/mcp/console.go",
          "line": 48,
          "members": [
            {
              "name": "Name",
              "anchor": "TunableSetResult.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Type",
              "anchor": "TunableSetResult.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OldValue",
              "anchor": "TunableSetResult.OldValue",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "TunableSetResult.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Default",
              "anchor": "TunableSetResult.Default",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Min",
              "anchor": "TunableSetResult.Min",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "TunableSetResult.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clamped",
              "anchor": "TunableSetResult.Clamped",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TunablesListResult",
          "anchor": "TunablesListResult",
          "decl": "type TunablesListResult struct {\n\tTotal    int             `json:\"total\"`\n\tTunables []TunableResult `json:\"tunables\"`\n}",
          "doc": "TunablesListResult is the JSON result of game_tunables_list.\n",
          "file": "pkg/mcp/console.go",
          "line": 42,
          "members": [
            {
              "name": "Total",
              "anchor": "TunablesListResult.Total",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tunables",
              "anchor": "TunablesListResult.Tunables",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/modding",
      "name": "modding",
      "dir": "pkg/modding",
      "page": "pkg/modding",
      "synopsis": "Package modding loads and runs sandboxed TSX/JS game mods on top of NSGo's tsx runtime.",
      "doc": "Package modding loads and runs sandboxed TSX/JS game mods on top of NSGo's tsx runtime.\n\nA mod lives in a directory containing a mod.yaml manifest ([ModManifest], read by [ParseManifest] and written by [EncodeManifest]) and an entry script (such as mod.tsx or mod.js). Mods import the capability-gated \"game\" module to subscribe to simulation steps and events, emit events, spawn entities, read and write scoped game state, play audio, persist per-mod storage, write logs, and optionally mount TSX UI panels or HUD widgets.\n\n[Manager] discovers mods from the filesystem or any [io/fs.FS], installs or removes individual mods dynamically ([Manager.Install], [Manager.Uninstall]), validates manifests, resolves dependencies in deterministic topological order, isolates faults so a broken mod never crashes the host game or sibling mods, persists enabled/disabled state via [core.Storage], and drives step hooks from [game.Loop].\n\n[Workshop] integrates Steam Workshop (Steamworks ISteamUGC) with [Manager] through a [WorkshopBackend]: [NewSteamWorkshop] binds the Steamworks flat C API via purego on macOS, Linux and Windows (returning [ErrWorkshopUnavailable] when Steam is absent or on web/mobile), while [NewMemoryWorkshop] simulates multi-user publishing, subscriptions and updates on disk for tests and offline workflows. Published mods store deterministic Workshop metadata in workshop.yaml ([WorkshopMetadata]).\n",
      "consts": [
        {
          "idents": [
            {
              "name": "WorkshopFile",
              "anchor": "WorkshopFile"
            },
            {
              "name": "WorkshopMetadataVersion",
              "anchor": "WorkshopMetadataVersion"
            },
            {
              "name": "WorkshopLegalAgreementURL",
              "anchor": "WorkshopLegalAgreementURL"
            }
          ],
          "decl": "const (\n\t// WorkshopFile is the deterministic YAML metadata file stored beside mod.yaml in a mod\n\t// directory published to Steam Workshop.\n\tWorkshopFile = \"workshop.yaml\"\n\t// WorkshopMetadataVersion is the workshop.yaml schema version this package reads and writes.\n\tWorkshopMetadataVersion = 1\n\t// WorkshopLegalAgreementURL is the Steam Workshop Subscriber Agreement page shown when\n\t// Steamworks reports that the publisher must accept the legal agreement before an item\n\t// becomes visible to other players.\n\tWorkshopLegalAgreementURL = \"https://steamcommunity.com/sharedfiles/workshoplegalagreement\"\n)",
          "doc": "",
          "file": "pkg/modding/workshop.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "GameAPIDTS",
              "anchor": "GameAPIDTS"
            }
          ],
          "decl": "const GameAPIDTS = `// TypeScript declarations for NSGo Game Modding API (\"game\" module).\n\ndeclare module \"game\" {\n  export type CapabilityName =\n    | \"readState\"\n    | \"writeState\"\n    | \"spawnEntity\"\n    | \"emitEvent\"\n    | \"ui\"\n    | \"audio\"\n    | \"storage\";\n\n  export type Unsubscribe = () => void;\n\n  export interface ModInfo {\n    readonly id: string;\n    readonly name: string;\n    readonly version: string;\n    readonly author: string;\n    readonly description: string;\n    readonly capabilities: CapabilityName[];\n  }\n\n  export interface SoundOptions {\n    volume?: number;\n    rate?: number;\n    loop?: boolean;\n  }\n\n  export type PanelContent = unknown | (() => unknown);\n\n  /**\n   * Registers a hook for a named game event.\n   * Use \"step\" to subscribe to fixed-rate simulation ticks (payload is dt in seconds).\n   */\n  export function registerHook(event: string, fn: (payload: any) => void): Unsubscribe;\n\n  /**\n   * Registers a callback invoked on every fixed-rate simulation step.\n   * @param fn Callback receiving the step duration dt in seconds.\n   */\n  export function onStep(fn: (dt: number) => void): Unsubscribe;\n\n  /**\n   * Subscribes to a named game event emitted by the host or another mod.\n   */\n  export function onEvent<T = any>(name: string, fn: (payload: T) => void): Unsubscribe;\n\n  /**\n   * Emits a named event to the host and subscribed mods.\n   * Requires the \"emitEvent\" capability.\n   */\n  export function emit(name: string, payload?: any): void;\n\n  /**\n   * Spawns a game entity from a prefab at world coordinates (x, y).\n   * Returns the spawned entity ID.\n   * Requires the \"spawnEntity\" capability.\n   */\n  export function spawn(\n    prefab: string,\n    x: number,\n    y: number,\n    props?: Record<string, any>\n  ): string;\n\n  /**\n   * Reads a value from scoped game state, or null if absent.\n   * Requires the \"readState\" capability.\n   */\n  export function getState<T = any>(key: string): T | null;\n\n  /**\n   * Writes a value to scoped game state.\n   * Requires the \"writeState\" or \"storage\" capability.\n   */\n  export function setState(key: string, value: any): void;\n\n  /**\n   * Requests playback of a named sound asset.\n   * Requires the \"audio\" capability.\n   */\n  export function playSound(name: string, opts?: SoundOptions): void;\n\n  /**\n   * Appends a message to this mod's captured log buffer.\n   */\n  export function log(...args: any[]): void;\n\n  /**\n   * Mounts or updates a TSX UI panel or HUD widget in an optional named slot.\n   * Requires the \"ui\" capability.\n   */\n  export function mountPanel(id: string, render: PanelContent, slot?: string): void;\n\n  /**\n   * Unmounts a previously mounted TSX UI panel by ID.\n   * Requires the \"ui\" capability.\n   */\n  export function unmountPanel(id: string): void;\n\n  /**\n   * Reads a string from this mod's isolated persistent storage, or null if absent.\n   * Requires the \"storage\" capability.\n   */\n  export function storageGet(key: string): string | null;\n\n  /**\n   * Writes a string to this mod's isolated persistent storage.\n   * Requires the \"storage\" capability.\n   */\n  export function storageSet(key: string, value: string): void;\n\n  /**\n   * Removes a key from this mod's isolated persistent storage.\n   * Requires the \"storage\" capability.\n   */\n  export function storageRemove(key: string): void;\n\n  /**\n   * Returns metadata and effective capabilities for the calling mod.\n   */\n  export function modInfo(): ModInfo;\n}\n`",
          "doc": "GameAPIDTS is the TypeScript declaration file (game.d.ts) for the sandboxed \"game\" module.\nMod authors can include it in their tsconfig.json to get full TypeScript type checking.\n",
          "file": "pkg/modding/api.go",
          "line": 673
        },
        {
          "idents": [
            {
              "name": "GameModule",
              "anchor": "GameModule"
            }
          ],
          "decl": "const GameModule = \"game\"",
          "doc": "GameModule is the module specifier mods import to reach the sandboxed game API:\n\n\timport { onStep, onEvent, emit, spawn, getState, setState, log } from \"game\";\n",
          "file": "pkg/modding/api.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ManifestFile",
              "anchor": "ManifestFile"
            }
          ],
          "decl": "const ManifestFile = \"mod.yaml\"",
          "doc": "ManifestFile is the name of the manifest file [Manager] reads from each mod's directory.\n",
          "file": "pkg/modding/manifest.go",
          "line": 200
        },
        {
          "idents": [
            {
              "name": "ManifestVersion",
              "anchor": "ManifestVersion"
            }
          ],
          "decl": "const ManifestVersion = 1",
          "doc": "ManifestVersion is the mod manifest schema version this package reads and writes.\n",
          "file": "pkg/modding/manifest.go",
          "line": 206
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrPermission",
              "anchor": "ErrPermission"
            },
            {
              "name": "ErrNotFound",
              "anchor": "ErrNotFound"
            },
            {
              "name": "ErrDuplicateMod",
              "anchor": "ErrDuplicateMod"
            },
            {
              "name": "ErrMissingDependency",
              "anchor": "ErrMissingDependency"
            },
            {
              "name": "ErrVersionMismatch",
              "anchor": "ErrVersionMismatch"
            },
            {
              "name": "ErrCyclicDependency",
              "anchor": "ErrCyclicDependency"
            },
            {
              "name": "ErrInvalidManifest",
              "anchor": "ErrInvalidManifest"
            },
            {
              "name": "ErrModDisabled",
              "anchor": "ErrModDisabled"
            },
            {
              "name": "ErrModFailed",
              "anchor": "ErrModFailed"
            },
            {
              "name": "ErrWebUnisolated",
              "anchor": "ErrWebUnisolated"
            }
          ],
          "decl": "var (\n\t// ErrPermission is returned when a mod calls an API it lacks the capability for.\n\tErrPermission = errors.New(\"modding: permission denied\")\n\t// ErrNotFound is returned when a mod ID is not known to the manager.\n\tErrNotFound = errors.New(\"modding: mod not found\")\n\t// ErrDuplicateMod is returned when two discovered mods share the same ID.\n\tErrDuplicateMod = errors.New(\"modding: duplicate mod id\")\n\t// ErrMissingDependency is returned when a mod declares a dependency that was not discovered.\n\tErrMissingDependency = errors.New(\"modding: missing dependency\")\n\t// ErrVersionMismatch is returned when a dependency or game version fails a version constraint.\n\tErrVersionMismatch = errors.New(\"modding: incompatible version\")\n\t// ErrCyclicDependency is returned when mod dependencies form a cycle.\n\tErrCyclicDependency = errors.New(\"modding: cyclic dependency\")\n\t// ErrInvalidManifest is returned when a mod.yaml manifest fails parsing or validation.\n\tErrInvalidManifest = errors.New(\"modding: invalid manifest\")\n\t// ErrModDisabled is returned when attempting to load a disabled mod.\n\tErrModDisabled = errors.New(\"modding: mod is disabled\")\n\t// ErrModFailed is returned when interacting with a mod in StateFailed.\n\tErrModFailed = errors.New(\"modding: mod failed\")\n\t// ErrWebUnisolated is returned when a mod would load on the web, where its capabilities cannot be enforced, without ManagerOptions.WebUnisolated.\n\tErrWebUnisolated = errors.New(\"modding: the web cannot isolate mods from the page; set ManagerOptions.WebUnisolated to run them with the page's authority\")\n)",
          "doc": "",
          "file": "pkg/modding/api.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ErrWorkshopUnavailable",
              "anchor": "ErrWorkshopUnavailable"
            },
            {
              "name": "ErrWorkshopNotFound",
              "anchor": "ErrWorkshopNotFound"
            },
            {
              "name": "ErrWorkshopNotInstalled",
              "anchor": "ErrWorkshopNotInstalled"
            },
            {
              "name": "ErrWorkshopLegalAgreementRequired",
              "anchor": "ErrWorkshopLegalAgreementRequired"
            },
            {
              "name": "ErrInvalidWorkshopMetadata",
              "anchor": "ErrInvalidWorkshopMetadata"
            },
            {
              "name": "ErrWorkshopUnsafePath",
              "anchor": "ErrWorkshopUnsafePath"
            }
          ],
          "decl": "var (\n\t// ErrWorkshopUnavailable is returned when Steamworks is not available (library absent,\n\t// Steam client not running, or unsupported platform such as web or mobile).\n\tErrWorkshopUnavailable = errors.New(\"modding: steam workshop unavailable\")\n\t// ErrWorkshopNotFound is returned when a Workshop PublishedFileID does not exist.\n\tErrWorkshopNotFound = errors.New(\"modding: workshop item not found\")\n\t// ErrWorkshopNotInstalled is returned when a Workshop item is not downloaded locally\n\t// or needs an update before it can be read from disk.\n\tErrWorkshopNotInstalled = errors.New(\"modding: workshop item not installed\")\n\t// ErrWorkshopLegalAgreementRequired is returned when Steamworks requires the author to\n\t// accept the Steam Workshop Subscriber Agreement before the item is public.\n\tErrWorkshopLegalAgreementRequired = errors.New(\"modding: steam workshop legal agreement acceptance required\")\n\t// ErrInvalidWorkshopMetadata is returned when workshop.yaml fails parsing or validation.\n\tErrInvalidWorkshopMetadata = errors.New(\"modding: invalid workshop metadata\")\n\t// ErrWorkshopUnsafePath is returned when a Workshop directory or file escapes its\n\t// allowed root or mod directory via path traversal or symlinks.\n\tErrWorkshopUnsafePath = errors.New(\"modding: unsafe workshop path\")\n)",
          "doc": "",
          "file": "pkg/modding/workshop.go",
          "line": 35
        }
      ],
      "funcs": [
        {
          "name": "CheckConstraint",
          "anchor": "CheckConstraint",
          "decl": "func CheckConstraint(version, constraint string) (bool, error)",
          "doc": "CheckConstraint reports whether version satisfies constraint.\nSupported operators: *, =, >=, >, <=, <, ^, ~, and space/comma-separated conjunctions.\n",
          "file": "pkg/modding/manifest.go",
          "line": 542
        },
        {
          "name": "EncodeManifest",
          "anchor": "EncodeManifest",
          "decl": "func EncodeManifest(m ModManifest) ([]byte, error)",
          "doc": "EncodeManifest validates m and writes it as deterministic 2-space YAML: fields in a fixed order, capabilities in canonical order and dependencies sorted by ID in byte order. A ManifestVersion of 0 (a manifest built in code) is written as [ManifestVersion]. [ParseManifest] reads the output back as an equal manifest, and encoding that again gives the same bytes.\n",
          "file": "pkg/modding/manifest.go",
          "line": 306
        },
        {
          "name": "EncodeWorkshopMetadata",
          "anchor": "EncodeWorkshopMetadata",
          "decl": "func EncodeWorkshopMetadata(m WorkshopMetadata) ([]byte, error)",
          "doc": "EncodeWorkshopMetadata validates m and encodes it as deterministic 2-space YAML with fixed\nkey order and tags sorted in byte order. A Version of 0 is written as [WorkshopMetadataVersion].\n",
          "file": "pkg/modding/workshop.go",
          "line": 232
        },
        {
          "name": "ValidateConstraint",
          "anchor": "ValidateConstraint",
          "decl": "func ValidateConstraint(constraint string) error",
          "doc": "ValidateConstraint checks that constraint is a syntactically valid version constraint.\n",
          "file": "pkg/modding/manifest.go",
          "line": 535
        },
        {
          "name": "WriteGameAPIDTS",
          "anchor": "WriteGameAPIDTS",
          "decl": "func WriteGameAPIDTS(dst string) error",
          "doc": "WriteGameAPIDTS writes [GameAPIDTS] to dst (creating parent directories as needed)\nso mod projects can reference game.d.ts for TypeScript type checking.\n",
          "file": "pkg/modding/api.go",
          "line": 801
        }
      ],
      "types": [
        {
          "name": "Capability",
          "anchor": "Capability",
          "decl": "type Capability uint32",
          "doc": "Capability is a bitmask of permissions granted to a mod.\nA mod may only call game API operations covered by both its manifest and the host's grant.\n",
          "file": "pkg/modding/manifest.go",
          "line": 23,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CapNone",
                  "anchor": "CapNone"
                },
                {
                  "name": "CapReadState",
                  "anchor": "CapReadState"
                },
                {
                  "name": "CapWriteState",
                  "anchor": "CapWriteState"
                },
                {
                  "name": "CapSpawnEntity",
                  "anchor": "CapSpawnEntity"
                },
                {
                  "name": "CapEmitEvent",
                  "anchor": "CapEmitEvent"
                },
                {
                  "name": "CapUI",
                  "anchor": "CapUI"
                },
                {
                  "name": "CapAudio",
                  "anchor": "CapAudio"
                },
                {
                  "name": "CapStorage",
                  "anchor": "CapStorage"
                },
                {
                  "name": "CapAll",
                  "anchor": "CapAll"
                }
              ],
              "decl": "const (\n\t// CapNone grants no privileged game API capabilities (hooks and logging remain available).\n\tCapNone Capability = 0\n\t// CapReadState allows reading scoped game state via getState.\n\tCapReadState Capability = 1 << iota\n\t// CapWriteState allows writing scoped game state via setState.\n\tCapWriteState\n\t// CapSpawnEntity allows spawning entities via spawn.\n\tCapSpawnEntity\n\t// CapEmitEvent allows emitting game events via emit.\n\tCapEmitEvent\n\t// CapUI allows mounting and unmounting TSX UI panels and HUD widgets.\n\tCapUI\n\t// CapAudio allows playing sounds through the game bridge and NSGo audio.\n\tCapAudio\n\t// CapStorage allows reading/writing persistent per-mod storage (and scoped state writes).\n\tCapStorage\n\n\t// CapAll includes every defined game modding capability.\n\tCapAll = CapReadState | CapWriteState | CapSpawnEntity | CapEmitEvent | CapUI | CapAudio | CapStorage\n)",
              "doc": "",
              "file": "pkg/modding/manifest.go",
              "line": 25
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ParseCapability",
              "anchor": "ParseCapability",
              "decl": "func ParseCapability(name string) (Capability, error)",
              "doc": "ParseCapability parses a capability name (camelCase, snake_case, or kebab-case).\n",
              "file": "pkg/modding/manifest.go",
              "line": 86
            }
          ],
          "methods": [
            {
              "name": "Has",
              "anchor": "Capability.Has",
              "recv": "Capability",
              "decl": "func (c Capability) Has(req Capability) bool",
              "doc": "Has reports whether c contains all capabilities in req.\n",
              "file": "pkg/modding/manifest.go",
              "line": 61
            },
            {
              "name": "MarshalJSON",
              "anchor": "Capability.MarshalJSON",
              "recv": "Capability",
              "decl": "func (c Capability) MarshalJSON() ([]byte, error)",
              "doc": "MarshalJSON encodes c as a JSON array of canonical capability names.\n",
              "file": "pkg/modding/manifest.go",
              "line": 111
            },
            {
              "name": "MarshalYAML",
              "anchor": "Capability.MarshalYAML",
              "recv": "Capability",
              "decl": "func (c Capability) MarshalYAML() (any, error)",
              "doc": "MarshalYAML encodes c as a flow sequence of canonical capability names in table order, so a manifest's capabilities always serialize the same way regardless of how they were listed.\n",
              "file": "pkg/modding/manifest.go",
              "line": 143
            },
            {
              "name": "Names",
              "anchor": "Capability.Names",
              "recv": "Capability",
              "decl": "func (c Capability) Names() []string",
              "doc": "Names returns the canonical names of the capabilities set in c, in deterministic order.\n",
              "file": "pkg/modding/manifest.go",
              "line": 66
            },
            {
              "name": "String",
              "anchor": "Capability.String",
              "recv": "Capability",
              "decl": "func (c Capability) String() string",
              "doc": "String returns a comma-separated list of capability names, or \"none\" when empty.\n",
              "file": "pkg/modding/manifest.go",
              "line": 77
            },
            {
              "name": "UnmarshalJSON",
              "anchor": "Capability.UnmarshalJSON",
              "recv": "*Capability",
              "decl": "func (c *Capability) UnmarshalJSON(data []byte) error",
              "doc": "UnmarshalJSON decodes a JSON array of capability names into c.\n",
              "file": "pkg/modding/manifest.go",
              "line": 120
            },
            {
              "name": "UnmarshalYAML",
              "anchor": "Capability.UnmarshalYAML",
              "recv": "*Capability",
              "decl": "func (c *Capability) UnmarshalYAML(value *yaml.Node) error",
              "doc": "UnmarshalYAML decodes a YAML sequence of canonical capability names (such as readState) into c. Unknown, non-canonical and repeated names are refused.\n",
              "file": "pkg/modding/manifest.go",
              "line": 159
            }
          ]
        },
        {
          "name": "Event",
          "anchor": "Event",
          "decl": "type Event struct {\n\t// ModID is the emitting mod's ID, or empty when emitted by the host.\n\tModID   string\n\tName    string\n\tPayload any\n}",
          "doc": "Event describes an event emitted by a mod or by the host game.\n",
          "file": "pkg/modding/api.go",
          "line": 79,
          "members": [
            {
              "name": "ModID",
              "anchor": "Event.ModID",
              "kind": "field",
              "doc": "ModID is the emitting mod's ID, or empty when emitted by the host."
            },
            {
              "name": "Name",
              "anchor": "Event.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Payload",
              "anchor": "Event.Payload",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GameBridge",
          "anchor": "GameBridge",
          "decl": "type GameBridge struct {\n\t// OnSpawn handles entity spawn requests from mods with CapSpawnEntity.\n\t// Returning an entity ID passes it back to the mod; returning an error throws in JS.\n\tOnSpawn func(req SpawnRequest) (string, error)\n\t// OnEmit is notified whenever a mod with CapEmitEvent emits an event.\n\t// Events are also dispatched to subscribed mods in load order.\n\tOnEmit func(ev Event)\n\t// OnGetState reads a scoped state key for mods with CapReadState.\n\t// When nil, reads from the manager's built-in state map.\n\tOnGetState func(modID, key string) (any, bool)\n\t// OnSetState writes a scoped state key for mods with CapWriteState or CapStorage.\n\t// When nil, writes to the manager's built-in state map.\n\tOnSetState func(modID, key string, val any) error\n\t// OnPlaySound handles audio playback requests from mods with CapAudio.\n\tOnPlaySound func(req SoundRequest) error\n\t// OnLog is notified whenever a mod logs a message, in addition to the per-mod log buffer.\n\tOnLog func(entry LogEntry)\n\t// OnPanelsChange is notified whenever a mod mounts or unmounts a UI panel.\n\tOnPanelsChange func()\n}",
          "doc": "GameBridge connects sandboxed mods to the host game.\nAll callbacks are optional: when nil, [Manager] supplies safe built-in defaults\nfor scoped state, entity ID generation, event dispatch, and UI panels.\n",
          "file": "pkg/modding/api.go",
          "line": 113,
          "members": [
            {
              "name": "OnSpawn",
              "anchor": "GameBridge.OnSpawn",
              "kind": "field",
              "doc": "OnSpawn handles entity spawn requests from mods with CapSpawnEntity.\nReturning an entity ID passes it back to the mod; returning an error throws in JS."
            },
            {
              "name": "OnEmit",
              "anchor": "GameBridge.OnEmit",
              "kind": "field",
              "doc": "OnEmit is notified whenever a mod with CapEmitEvent emits an event.\nEvents are also dispatched to subscribed mods in load order."
            },
            {
              "name": "OnGetState",
              "anchor": "GameBridge.OnGetState",
              "kind": "field",
              "doc": "OnGetState reads a scoped state key for mods with CapReadState.\nWhen nil, reads from the manager's built-in state map."
            },
            {
              "name": "OnSetState",
              "anchor": "GameBridge.OnSetState",
              "kind": "field",
              "doc": "OnSetState writes a scoped state key for mods with CapWriteState or CapStorage.\nWhen nil, writes to the manager's built-in state map."
            },
            {
              "name": "OnPlaySound",
              "anchor": "GameBridge.OnPlaySound",
              "kind": "field",
              "doc": "OnPlaySound handles audio playback requests from mods with CapAudio."
            },
            {
              "name": "OnLog",
              "anchor": "GameBridge.OnLog",
              "kind": "field",
              "doc": "OnLog is notified whenever a mod logs a message, in addition to the per-mod log buffer."
            },
            {
              "name": "OnPanelsChange",
              "anchor": "GameBridge.OnPanelsChange",
              "kind": "field",
              "doc": "OnPanelsChange is notified whenever a mod mounts or unmounts a UI panel."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InstallInfo",
          "anchor": "InstallInfo",
          "decl": "type InstallInfo struct {\n\tID         PublishedFileID\n\tSizeOnDisk uint64\n\tFolder     string\n\tTimestamp  time.Time\n}",
          "doc": "InstallInfo describes a locally downloaded Steam Workshop item on disk.\n",
          "file": "pkg/modding/workshop.go",
          "line": 309,
          "members": [
            {
              "name": "ID",
              "anchor": "InstallInfo.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeOnDisk",
              "anchor": "InstallInfo.SizeOnDisk",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Folder",
              "anchor": "InstallInfo.Folder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Timestamp",
              "anchor": "InstallInfo.Timestamp",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InstalledWorkshopItem",
          "anchor": "InstalledWorkshopItem",
          "decl": "type InstalledWorkshopItem struct {\n\tID        PublishedFileID\n\tModID     string\n\tManifest  ModManifest\n\tFolder    string\n\tTimestamp time.Time\n}",
          "doc": "InstalledWorkshopItem links a Steam Workshop PublishedFileID to the mod installed in [Manager].\n",
          "file": "pkg/modding/workshop.go",
          "line": 394,
          "members": [
            {
              "name": "ID",
              "anchor": "InstalledWorkshopItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ModID",
              "anchor": "InstalledWorkshopItem.ModID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Manifest",
              "anchor": "InstalledWorkshopItem.Manifest",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Folder",
              "anchor": "InstalledWorkshopItem.Folder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Timestamp",
              "anchor": "InstalledWorkshopItem.Timestamp",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LogEntry",
          "anchor": "LogEntry",
          "decl": "type LogEntry struct {\n\tModID   string\n\tMessage string\n\tAt      time.Time\n}",
          "doc": "LogEntry is one captured log line emitted by a mod via game.log.\n",
          "file": "pkg/modding/api.go",
          "line": 96,
          "members": [
            {
              "name": "ModID",
              "anchor": "LogEntry.ModID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "LogEntry.Message",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "At",
              "anchor": "LogEntry.At",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Manager",
          "anchor": "Manager",
          "decl": "type Manager struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Manager discovers, validates, loads, isolates, and steps TSX/JS game mods under a [*core.Scope].\nAll methods should be called on the engine's goroutine, as NSGo scopes and game.Loop are.\n",
          "file": "pkg/modding/manager.go",
          "line": 110,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewManager",
              "anchor": "NewManager",
              "decl": "func NewManager(cx *core.Scope, opts ManagerOptions) *Manager",
              "doc": "NewManager creates a mod manager scoped to cx. Disposing cx automatically unloads all mods.\n",
              "file": "pkg/modding/manager.go",
              "line": 131
            }
          ],
          "methods": [
            {
              "name": "API",
              "anchor": "Manager.API",
              "recv": "*Manager",
              "decl": "func (m *Manager) API(id string) (*ModAPI, bool)",
              "doc": "API returns the active [*ModAPI] for a loaded mod.\n",
              "file": "pkg/modding/manager.go",
              "line": 880
            },
            {
              "name": "Call",
              "anchor": "Manager.Call",
              "recv": "*Manager",
              "decl": "func (m *Manager) Call(id, fnName string, args []any, done func(result any, err error))",
              "doc": "Call invokes an exported JavaScript function on loaded mod id.\n",
              "file": "pkg/modding/manager.go",
              "line": 822
            },
            {
              "name": "Close",
              "anchor": "Manager.Close",
              "recv": "*Manager",
              "decl": "func (m *Manager) Close()",
              "doc": "Close unloads all mods and releases resources held by the manager. Afterwards no mod reports [StateLoaded]: [Manager.Info] shows each loaded mod as discovered, or disabled when it is.\n",
              "file": "pkg/modding/manager.go",
              "line": 989
            },
            {
              "name": "Disable",
              "anchor": "Manager.Disable",
              "recv": "*Manager",
              "decl": "func (m *Manager) Disable(id string) error",
              "doc": "Disable marks mod id as disabled, unloads it if currently loaded, and persists the preference\nwhen StorageKey is configured.\n",
              "file": "pkg/modding/manager.go",
              "line": 483
            },
            {
              "name": "Discover",
              "anchor": "Manager.Discover",
              "recv": "*Manager",
              "decl": "func (m *Manager) Discover(dir string) ([]ModManifest, error)",
              "doc": "Discover scans immediate subdirectories of dir for mod.yaml manifests, validates them, resolves dependency order, and registers them with the manager.\n",
              "file": "pkg/modding/manager.go",
              "line": 145
            },
            {
              "name": "DiscoverFS",
              "anchor": "Manager.DiscoverFS",
              "recv": "*Manager",
              "decl": "func (m *Manager) DiscoverFS(fsys fs.FS) ([]ModManifest, error)",
              "doc": "DiscoverFS scans immediate subdirectories of fsys for mod.yaml manifests ([ManifestFile]), validates them, checks GameVersion compatibility and entry file existence, resolves dependency order via topological sort, and registers them with the manager. Subdirectories without a manifest are skipped; one that still has only a mod.json is refused with [ErrInvalidManifest].\n\nIf validation or dependency resolution fails, existing loaded mods are left untouched.\n",
              "file": "pkg/modding/manager.go",
              "line": 174
            },
            {
              "name": "Emit",
              "anchor": "Manager.Emit",
              "recv": "*Manager",
              "decl": "func (m *Manager) Emit(name string, payload any)",
              "doc": "Emit dispatches a host event to all loaded mods subscribed via onEvent or registerHook,\nin deterministic load order, with fault isolation.\n",
              "file": "pkg/modding/manager.go",
              "line": 784
            },
            {
              "name": "Enable",
              "anchor": "Manager.Enable",
              "recv": "*Manager",
              "decl": "func (m *Manager) Enable(id string) error",
              "doc": "Enable marks mod id as enabled and persists the preference when StorageKey is configured.\n",
              "file": "pkg/modding/manager.go",
              "line": 468
            },
            {
              "name": "GetState",
              "anchor": "Manager.GetState",
              "recv": "*Manager",
              "decl": "func (m *Manager) GetState(key string) (any, bool)",
              "doc": "GetState reads a value from the manager's built-in scoped game state map.\n",
              "file": "pkg/modding/manager.go",
              "line": 898
            },
            {
              "name": "Info",
              "anchor": "Manager.Info",
              "recv": "*Manager",
              "decl": "func (m *Manager) Info(id string) (ModInfo, bool)",
              "doc": "Info returns the current [ModInfo] snapshot for mod id.\n",
              "file": "pkg/modding/manager.go",
              "line": 857
            },
            {
              "name": "Install",
              "anchor": "Manager.Install",
              "recv": "*Manager",
              "decl": "func (m *Manager) Install(dir string) (ModManifest, error)",
              "doc": "Install validates a single mod directory on disk and installs or updates it in the manager\nwithout disturbing unrelated mods. If a mod with the same ID is already registered, its\nrunning instance (if any) is unloaded and replaced. Call [Manager.Load] or [Manager.LoadAll]\nto start the installed mod.\n",
              "file": "pkg/modding/manager.go",
              "line": 264
            },
            {
              "name": "InstallFS",
              "anchor": "Manager.InstallFS",
              "recv": "*Manager",
              "decl": "func (m *Manager) InstallFS(fsys fs.FS, dirName string) (ModManifest, error)",
              "doc": "InstallFS validates a single mod rooted at fsys and installs or updates it in the manager\nwithout disturbing unrelated mods. dirName labels the mod directory in manifest errors.\nDependency order across all registered mods is re-validated; if validation fails, existing\nmods remain untouched.\n",
              "file": "pkg/modding/manager.go",
              "line": 282
            },
            {
              "name": "List",
              "anchor": "Manager.List",
              "recv": "*Manager",
              "decl": "func (m *Manager) List() []ModInfo",
              "doc": "List returns snapshots of all discovered mods in deterministic load order.\n",
              "file": "pkg/modding/manager.go",
              "line": 846
            },
            {
              "name": "Load",
              "anchor": "Manager.Load",
              "recv": "*Manager",
              "decl": "func (m *Manager) Load(id string) error",
              "doc": "Load compiles and starts mod id in its sandbox. Any dependencies not yet loaded are\nloaded first. Compilation, entry execution, or panic failures are caught cleanly,\nmarking the mod StateFailed without crashing the host or other mods.\n",
              "file": "pkg/modding/manager.go",
              "line": 521
            },
            {
              "name": "LoadAll",
              "anchor": "Manager.LoadAll",
              "recv": "*Manager",
              "decl": "func (m *Manager) LoadAll() error",
              "doc": "LoadAll loads all enabled discovered mods in deterministic topological order.\nA failure in one mod is isolated (marking that mod StateFailed) and does not prevent\nsibling mods from loading. Returns a joined error if any mod failed.\n",
              "file": "pkg/modding/manager.go",
              "line": 500
            },
            {
              "name": "Logs",
              "anchor": "Manager.Logs",
              "recv": "*Manager",
              "decl": "func (m *Manager) Logs(id string) []LogEntry",
              "doc": "Logs returns a copy of the captured log buffer for mod id.\n",
              "file": "pkg/modding/manager.go",
              "line": 889
            },
            {
              "name": "Panels",
              "anchor": "Manager.Panels",
              "recv": "*Manager",
              "decl": "func (m *Manager) Panels(slot string) []Panel",
              "doc": "Panels returns all currently mounted UI panels across loaded mods in deterministic order.\nWhen slot is non-empty, only panels mounted for that slot are returned.\n",
              "file": "pkg/modding/manager.go",
              "line": 910
            },
            {
              "name": "PanelsView",
              "anchor": "Manager.PanelsView",
              "recv": "*Manager",
              "decl": "func (m *Manager) PanelsView(slot string) core.Node",
              "doc": "PanelsView returns a reactive [core.Node] rendering all TSX UI panels mounted for slot\n(or all slots when slot is empty). Each panel is wrapped in a [core.Catch] boundary so a\nrender error in one mod's UI never crashes the host game or other mods.\n",
              "file": "pkg/modding/manager.go",
              "line": 939
            },
            {
              "name": "Reload",
              "anchor": "Manager.Reload",
              "recv": "*Manager",
              "decl": "func (m *Manager) Reload(id string) error",
              "doc": "Reload re-reads mod id's manifest if present, validates it, then unloads the mod and loads it fresh from its FS.\n\nA manifest that cannot be read or fails validation (bad syntax, changed ID, incompatible game version or unresolvable dependencies) is reported without unloading, so the previously loaded version keeps running (#546). A mod whose mod.yaml has been replaced by a mod.json is refused the same way with [ErrInvalidManifest], as [Manager.DiscoverFS] refuses it.\n",
              "file": "pkg/modding/manager.go",
              "line": 689
            },
            {
              "name": "SetGrant",
              "anchor": "Manager.SetGrant",
              "recv": "*Manager",
              "decl": "func (m *Manager) SetGrant(id string, caps Capability) error",
              "doc": "SetGrant sets a per-mod capability grant for id, further narrowing its manifest capabilities (and ManagerOptions.Grant if set).\n\nOn a loaded mod it takes effect at once (#546): the game module checks the new capabilities from the next call, revoking [CapUI] removes the panels the mod mounted, and when the change reaches what the sandbox itself enforces ([CapAudio], [CapStorage]), the mod is unloaded and loaded again with a sandbox built for them, running its entry script again. The error is that load's.\n",
              "file": "pkg/modding/manager.go",
              "line": 434
            },
            {
              "name": "SetState",
              "anchor": "Manager.SetState",
              "recv": "*Manager",
              "decl": "func (m *Manager) SetState(key string, val any)",
              "doc": "SetState writes a value to the manager's built-in scoped game state map.\n",
              "file": "pkg/modding/manager.go",
              "line": 904
            },
            {
              "name": "Step",
              "anchor": "Manager.Step",
              "recv": "*Manager",
              "decl": "func (m *Manager) Step(dt time.Duration)",
              "doc": "Step invokes all loaded mods' onStep (and registerHook(\"step\", ...)) callbacks in\ndeterministic load order. A runtime error or panic inside one mod isolates and marks\nthat mod StateFailed without interrupting other mods.\n",
              "file": "pkg/modding/manager.go",
              "line": 762
            },
            {
              "name": "Uninstall",
              "anchor": "Manager.Uninstall",
              "recv": "*Manager",
              "decl": "func (m *Manager) Uninstall(id string) error",
              "doc": "Uninstall unloads mod id (if loaded) and removes it from the manager.\n",
              "file": "pkg/modding/manager.go",
              "line": 301
            },
            {
              "name": "Unload",
              "anchor": "Manager.Unload",
              "recv": "*Manager",
              "decl": "func (m *Manager) Unload(id string) error",
              "doc": "Unload stops mod id, removes all of its hooks and UI panels, and disposes its sandbox scope.\n",
              "file": "pkg/modding/manager.go",
              "line": 671
            }
          ]
        },
        {
          "name": "ManagerOptions",
          "anchor": "ManagerOptions",
          "decl": "type ManagerOptions struct {\n\t// Bridge connects mod API calls to the host game.\n\tBridge GameBridge\n\t// StorageKey, when non-empty, persists mod enabled/disabled state in cx.Storage()\n\t// under \"<StorageKey>.enabled.<id>\" and isolates per-mod CapStorage keys under\n\t// \"<StorageKey>.mod.<id>.<key>\".\n\tStorageKey string\n\t// GameVersion, when non-empty, checks each discovered mod's manifest.GameVersion constraint.\n\tGameVersion string\n\t// Grant, when non-nil, narrows every mod's manifest capabilities to (manifest.Capabilities & *Grant).\n\tGrant *Capability\n\t// Limits overrides tsx.DefaultLimits for each mod's sandbox.\n\tLimits *tsx.Limits\n\t// MaxLogs caps the number of retained log entries per mod (256 when <= 0).\n\tMaxLogs int\n\t// WebUnisolated lets mods run on web targets, where the browser cannot isolate a mod from the page: a mod there can use the page's own APIs (XMLHttpRequest, WebSocket, localStorage) whatever its capabilities say. Without it, loading a mod on the web fails with ErrWebUnisolated. Other targets isolate mods and ignore it. It is forwarded as tsx.Sandbox.WebUnisolated.\n\tWebUnisolated bool\n}",
          "doc": "ManagerOptions configures a [Manager].\n",
          "file": "pkg/modding/manager.go",
          "line": 70,
          "members": [
            {
              "name": "Bridge",
              "anchor": "ManagerOptions.Bridge",
              "kind": "field",
              "doc": "Bridge connects mod API calls to the host game."
            },
            {
              "name": "StorageKey",
              "anchor": "ManagerOptions.StorageKey",
              "kind": "field",
              "doc": "StorageKey, when non-empty, persists mod enabled/disabled state in cx.Storage()\nunder \"<StorageKey>.enabled.<id>\" and isolates per-mod CapStorage keys under\n\"<StorageKey>.mod.<id>.<key>\"."
            },
            {
              "name": "GameVersion",
              "anchor": "ManagerOptions.GameVersion",
              "kind": "field",
              "doc": "GameVersion, when non-empty, checks each discovered mod's manifest.GameVersion constraint."
            },
            {
              "name": "Grant",
              "anchor": "ManagerOptions.Grant",
              "kind": "field",
              "doc": "Grant, when non-nil, narrows every mod's manifest capabilities to (manifest.Capabilities & *Grant)."
            },
            {
              "name": "Limits",
              "anchor": "ManagerOptions.Limits",
              "kind": "field",
              "doc": "Limits overrides tsx.DefaultLimits for each mod's sandbox."
            },
            {
              "name": "MaxLogs",
              "anchor": "ManagerOptions.MaxLogs",
              "kind": "field",
              "doc": "MaxLogs caps the number of retained log entries per mod (256 when <= 0)."
            },
            {
              "name": "WebUnisolated",
              "anchor": "ManagerOptions.WebUnisolated",
              "kind": "field",
              "doc": "WebUnisolated lets mods run on web targets, where the browser cannot isolate a mod from the page: a mod there can use the page's own APIs (XMLHttpRequest, WebSocket, localStorage) whatever its capabilities say. Without it, loading a mod on the web fails with ErrWebUnisolated. Other targets isolate mods and ignore it. It is forwarded as tsx.Sandbox.WebUnisolated."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MemoryWorkshop",
          "anchor": "MemoryWorkshop",
          "decl": "type MemoryWorkshop struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MemoryWorkshop is an in-memory and filesystem-backed [WorkshopBackend] that simulates Steam\nWorkshop publishing, querying, subscribing, downloading, and updates without requiring the\nSteam client. It supports multiple users via [MemoryWorkshop.AsUser] so one user can publish\na mod and another player can subscribe and install it through [Manager].\n",
          "file": "pkg/modding/workshop.go",
          "line": 1114,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMemoryWorkshop",
              "anchor": "NewMemoryWorkshop",
              "decl": "func NewMemoryWorkshop(rootDir string) *MemoryWorkshop",
              "doc": "NewMemoryWorkshop creates a [MemoryWorkshop] storing published item snapshots and per-user\ndownloaded copies inside rootDir.\n",
              "file": "pkg/modding/workshop.go",
              "line": 1148
            }
          ],
          "methods": [
            {
              "name": "AsUser",
              "anchor": "MemoryWorkshop.AsUser",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) AsUser(steamUserID uint64) WorkshopBackend",
              "doc": "AsUser returns a [WorkshopBackend] view scoped to steamUserID sharing this Workshop catalog.\n",
              "file": "pkg/modding/workshop.go",
              "line": 1159
            },
            {
              "name": "CreateItem",
              "anchor": "MemoryWorkshop.CreateItem",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) CreateItem(ctx context.Context, appID uint32) (PublishedFileID, error)",
              "doc": "CreateItem implements [WorkshopBackend] for the default user (ID 0).\n",
              "file": "pkg/modding/workshop.go",
              "line": 1183
            },
            {
              "name": "DownloadItem",
              "anchor": "MemoryWorkshop.DownloadItem",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) DownloadItem(ctx context.Context, id PublishedFileID, highPriority bool) error",
              "doc": "DownloadItem implements [WorkshopBackend] for the default user (ID 0).\n",
              "file": "pkg/modding/workshop.go",
              "line": 1213
            },
            {
              "name": "ItemContentDir",
              "anchor": "MemoryWorkshop.ItemContentDir",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) ItemContentDir(id PublishedFileID) (string, bool)",
              "doc": "ItemContentDir returns the stored Workshop snapshot directory for id, if published.\n",
              "file": "pkg/modding/workshop.go",
              "line": 1172
            },
            {
              "name": "ItemInstallInfo",
              "anchor": "MemoryWorkshop.ItemInstallInfo",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) ItemInstallInfo(ctx context.Context, id PublishedFileID) (InstallInfo, error)",
              "doc": "ItemInstallInfo implements [WorkshopBackend] for the default user (ID 0).\n",
              "file": "pkg/modding/workshop.go",
              "line": 1208
            },
            {
              "name": "QueryItems",
              "anchor": "MemoryWorkshop.QueryItems",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) QueryItems(ctx context.Context, query WorkshopQuery) ([]WorkshopItem, error)",
              "doc": "QueryItems implements [WorkshopBackend] for the default user (ID 0).\n",
              "file": "pkg/modding/workshop.go",
              "line": 1218
            },
            {
              "name": "SetNeedsLegalAgreement",
              "anchor": "MemoryWorkshop.SetNeedsLegalAgreement",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) SetNeedsLegalAgreement(userID uint64, required bool)",
              "doc": "SetNeedsLegalAgreement configures whether SubmitUpdate reports NeedsLegalAgreement for userID\n(use 0 for the default user when calling methods directly on *MemoryWorkshop).\n",
              "file": "pkg/modding/workshop.go",
              "line": 1165
            },
            {
              "name": "SubmitUpdate",
              "anchor": "MemoryWorkshop.SubmitUpdate",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) SubmitUpdate(ctx context.Context, req PublishRequest) (PublishResult, error)",
              "doc": "SubmitUpdate implements [WorkshopBackend] for the default user (ID 0).\n",
              "file": "pkg/modding/workshop.go",
              "line": 1188
            },
            {
              "name": "Subscribe",
              "anchor": "MemoryWorkshop.Subscribe",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) Subscribe(ctx context.Context, id PublishedFileID) error",
              "doc": "Subscribe implements [WorkshopBackend] for the default user (ID 0).\n",
              "file": "pkg/modding/workshop.go",
              "line": 1193
            },
            {
              "name": "SubscribedItems",
              "anchor": "MemoryWorkshop.SubscribedItems",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) SubscribedItems(ctx context.Context) ([]PublishedFileID, error)",
              "doc": "SubscribedItems implements [WorkshopBackend] for the default user (ID 0).\n",
              "file": "pkg/modding/workshop.go",
              "line": 1203
            },
            {
              "name": "Unsubscribe",
              "anchor": "MemoryWorkshop.Unsubscribe",
              "recv": "*MemoryWorkshop",
              "decl": "func (m *MemoryWorkshop) Unsubscribe(ctx context.Context, id PublishedFileID) error",
              "doc": "Unsubscribe implements [WorkshopBackend] for the default user (ID 0).\n",
              "file": "pkg/modding/workshop.go",
              "line": 1198
            }
          ]
        },
        {
          "name": "ModAPI",
          "anchor": "ModAPI",
          "decl": "type ModAPI struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ModAPI is the capability-gated game API bound to a single loaded mod instance.\nTSX/JS mods access it by importing functions from the \"game\" module; Go code may\nalso inspect or invoke it via [Manager.API].\n",
          "file": "pkg/modding/api.go",
          "line": 157,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Capabilities",
              "anchor": "ModAPI.Capabilities",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) Capabilities() Capability",
              "doc": "Capabilities returns the effective capabilities granted to this mod.\n",
              "file": "pkg/modding/api.go",
              "line": 216
            },
            {
              "name": "Emit",
              "anchor": "ModAPI.Emit",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) Emit(name string, payload any) error",
              "doc": "Emit emits an event to the host bridge and all loaded mods subscribed to name.\nRequires [CapEmitEvent].\n",
              "file": "pkg/modding/api.go",
              "line": 315
            },
            {
              "name": "GetState",
              "anchor": "ModAPI.GetState",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) GetState(key string) (any, bool, error)",
              "doc": "GetState reads a key from scoped game state. Requires [CapReadState].\n",
              "file": "pkg/modding/api.go",
              "line": 350
            },
            {
              "name": "Log",
              "anchor": "ModAPI.Log",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) Log(msg string)",
              "doc": "Log appends a message to the mod's captured log buffer and notifies Bridge.OnLog.\n",
              "file": "pkg/modding/api.go",
              "line": 406
            },
            {
              "name": "Logs",
              "anchor": "ModAPI.Logs",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) Logs() []LogEntry",
              "doc": "Logs returns a copy of the log entries captured for this mod.\n",
              "file": "pkg/modding/api.go",
              "line": 219
            },
            {
              "name": "Manifest",
              "anchor": "ModAPI.Manifest",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) Manifest() ModManifest",
              "doc": "Manifest returns the mod's manifest.\n",
              "file": "pkg/modding/api.go",
              "line": 213
            },
            {
              "name": "MountPanel",
              "anchor": "ModAPI.MountPanel",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) MountPanel(id string, render func() core.Node, slot string) error",
              "doc": "MountPanel mounts or replaces a TSX UI panel or HUD widget for this mod. Requires [CapUI].\n",
              "file": "pkg/modding/api.go",
              "line": 428
            },
            {
              "name": "OnEvent",
              "anchor": "ModAPI.OnEvent",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) OnEvent(name string, fn func(payload any)) (func(), error)",
              "doc": "OnEvent registers a callback invoked whenever an event named name is emitted.\n",
              "file": "pkg/modding/api.go",
              "line": 283
            },
            {
              "name": "OnStep",
              "anchor": "ModAPI.OnStep",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) OnStep(fn func(dt float64)) (func(), error)",
              "doc": "OnStep registers a callback invoked on each [Manager.Step] tick with dt in seconds.\n",
              "file": "pkg/modding/api.go",
              "line": 262
            },
            {
              "name": "PlaySound",
              "anchor": "ModAPI.PlaySound",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) PlaySound(name string, opts map[string]any) error",
              "doc": "PlaySound requests the host game to play a named sound. Requires [CapAudio].\n",
              "file": "pkg/modding/api.go",
              "line": 375
            },
            {
              "name": "RegisterHook",
              "anchor": "ModAPI.RegisterHook",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) RegisterHook(event string, fn func(any)) (func(), error)",
              "doc": "RegisterHook subscribes fn to event. Event \"step\" subscribes to fixed simulation steps\n(receiving dt in seconds); any other name subscribes to emitted events of that name.\n",
              "file": "pkg/modding/api.go",
              "line": 245
            },
            {
              "name": "SetState",
              "anchor": "ModAPI.SetState",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) SetState(key string, val any) error",
              "doc": "SetState writes a key to scoped game state. Requires [CapWriteState] or [CapStorage].\n",
              "file": "pkg/modding/api.go",
              "line": 363
            },
            {
              "name": "Spawn",
              "anchor": "ModAPI.Spawn",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) Spawn(prefab string, x, y float64, props map[string]any) (string, error)",
              "doc": "Spawn requests the host game to spawn an entity of prefab at (x, y) with optional props.\nRequires [CapSpawnEntity].\n",
              "file": "pkg/modding/api.go",
              "line": 328
            },
            {
              "name": "StorageGet",
              "anchor": "ModAPI.StorageGet",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) StorageGet(key string) (string, bool, error)",
              "doc": "StorageGet reads a string value from this mod's isolated persistent storage. Requires [CapStorage].\n",
              "file": "pkg/modding/api.go",
              "line": 470
            },
            {
              "name": "StorageRemove",
              "anchor": "ModAPI.StorageRemove",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) StorageRemove(key string) error",
              "doc": "StorageRemove removes a key from this mod's isolated persistent storage. Requires [CapStorage].\n",
              "file": "pkg/modding/api.go",
              "line": 487
            },
            {
              "name": "StorageSet",
              "anchor": "ModAPI.StorageSet",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) StorageSet(key, val string) error",
              "doc": "StorageSet writes a string value to this mod's isolated persistent storage. Requires [CapStorage].\n",
              "file": "pkg/modding/api.go",
              "line": 479
            },
            {
              "name": "UnmountPanel",
              "anchor": "ModAPI.UnmountPanel",
              "recv": "*ModAPI",
              "decl": "func (a *ModAPI) UnmountPanel(id string) error",
              "doc": "UnmountPanel removes a previously mounted TSX UI panel. Requires [CapUI].\n",
              "file": "pkg/modding/api.go",
              "line": 457
            }
          ]
        },
        {
          "name": "ModInfo",
          "anchor": "ModInfo",
          "decl": "type ModInfo struct {\n\tManifest     ModManifest\n\tState        ModState\n\tEnabled      bool\n\tCapabilities Capability\n\tError        error\n\tLogs         []LogEntry\n\tOrder        int\n}",
          "doc": "ModInfo is a snapshot of a managed mod's manifest, state, effective capabilities, error, and logs.\n",
          "file": "pkg/modding/manager.go",
          "line": 59,
          "members": [
            {
              "name": "Manifest",
              "anchor": "ModInfo.Manifest",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "ModInfo.State",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Enabled",
              "anchor": "ModInfo.Enabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Capabilities",
              "anchor": "ModInfo.Capabilities",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Error",
              "anchor": "ModInfo.Error",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Logs",
              "anchor": "ModInfo.Logs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Order",
              "anchor": "ModInfo.Order",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ModManifest",
          "anchor": "ModManifest",
          "decl": "type ModManifest struct {\n\t// ManifestVersion is the schema version of the manifest file. A mod.yaml must state [ManifestVersion]; a manifest built in code may leave it 0, and [EncodeManifest] writes [ManifestVersion].\n\tManifestVersion int `yaml:\"manifestVersion\" json:\"manifestVersion\"`\n\t// ID uniquely identifies the mod, such as com.example.boss-rush.\n\tID string `yaml:\"id\" json:\"id\"`\n\t// Name is the mod's human-readable name.\n\tName string `yaml:\"name\" json:\"name\"`\n\t// Version is the mod's own semantic version, which dependency constraints are checked against.\n\tVersion string `yaml:\"version\" json:\"version\"`\n\t// Author optionally names the mod's author.\n\tAuthor string `yaml:\"author,omitempty\" json:\"author,omitempty\"`\n\t// Description optionally describes the mod.\n\tDescription string `yaml:\"description,omitempty\" json:\"description,omitempty\"`\n\t// Entry is the entry script's slash-separated path relative to the mod's directory.\n\tEntry string `yaml:\"entry\" json:\"entry\"`\n\t// GameVersion optionally constrains the host game versions the mod runs on, such as \">=0.2.0\".\n\tGameVersion string `yaml:\"gameVersion,omitempty\" json:\"gameVersion,omitempty\"`\n\t// Capabilities lists the game API capabilities the mod requests.\n\tCapabilities Capability `yaml:\"capabilities,omitempty\" json:\"capabilities,omitempty\"`\n\t// Dependencies maps the IDs of mods this mod requires to version constraints.\n\tDependencies map[string]string `yaml:\"dependencies,omitempty\" json:\"dependencies,omitempty\"`\n}",
          "doc": "ModManifest describes a mod. Mod authors write it as YAML in a [ManifestFile] (mod.yaml) in the mod's directory; [ParseManifest] reads it and [EncodeManifest] writes it.\n",
          "file": "pkg/modding/manifest.go",
          "line": 215,
          "members": [
            {
              "name": "ManifestVersion",
              "anchor": "ModManifest.ManifestVersion",
              "kind": "field",
              "doc": "ManifestVersion is the schema version of the manifest file. A mod.yaml must state [ManifestVersion]; a manifest built in code may leave it 0, and [EncodeManifest] writes [ManifestVersion]."
            },
            {
              "name": "ID",
              "anchor": "ModManifest.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the mod, such as com.example.boss-rush."
            },
            {
              "name": "Name",
              "anchor": "ModManifest.Name",
              "kind": "field",
              "doc": "Name is the mod's human-readable name."
            },
            {
              "name": "Version",
              "anchor": "ModManifest.Version",
              "kind": "field",
              "doc": "Version is the mod's own semantic version, which dependency constraints are checked against."
            },
            {
              "name": "Author",
              "anchor": "ModManifest.Author",
              "kind": "field",
              "doc": "Author optionally names the mod's author."
            },
            {
              "name": "Description",
              "anchor": "ModManifest.Description",
              "kind": "field",
              "doc": "Description optionally describes the mod."
            },
            {
              "name": "Entry",
              "anchor": "ModManifest.Entry",
              "kind": "field",
              "doc": "Entry is the entry script's slash-separated path relative to the mod's directory."
            },
            {
              "name": "GameVersion",
              "anchor": "ModManifest.GameVersion",
              "kind": "field",
              "doc": "GameVersion optionally constrains the host game versions the mod runs on, such as \">=0.2.0\"."
            },
            {
              "name": "Capabilities",
              "anchor": "ModManifest.Capabilities",
              "kind": "field",
              "doc": "Capabilities lists the game API capabilities the mod requests."
            },
            {
              "name": "Dependencies",
              "anchor": "ModManifest.Dependencies",
              "kind": "field",
              "doc": "Dependencies maps the IDs of mods this mod requires to version constraints."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseManifest",
              "anchor": "ParseManifest",
              "decl": "func ParseManifest(data []byte) (ModManifest, error)",
              "doc": "ParseManifest parses and validates a mod.yaml manifest. Unknown fields, duplicate keys, trailing YAML documents and a missing or unsupported manifestVersion are refused.\n\nIts errors match ErrInvalidManifest (or ErrCyclicDependency) with errors.Is, and are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile, as Manager does.\n",
              "file": "pkg/modding/manifest.go",
              "line": 241
            },
            {
              "name": "ResolveOrder",
              "anchor": "ResolveOrder",
              "decl": "func ResolveOrder(manifests []ModManifest) ([]ModManifest, error)",
              "doc": "ResolveOrder validates manifests and returns them in deterministic topological load order\n(every dependency precedes every mod that depends on it, with lexicographical ID tie-breaking).\nIt rejects duplicate IDs, missing dependencies, version mismatches, and dependency cycles.\n",
              "file": "pkg/modding/manifest.go",
              "line": 634
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "ModManifest.Validate",
              "recv": "ModManifest",
              "decl": "func (m ModManifest) Validate() error",
              "doc": "Validate checks that m has a valid ID, name, version, entry path, capabilities, and version constraints. ManifestVersion may be 0 for a manifest built in code, or [ManifestVersion]; [ParseManifest] additionally requires a file to state [ManifestVersion]. Its errors are *loaderr.Error values that name the field at fault and how to fix it, and match ErrInvalidManifest or ErrCyclicDependency with errors.Is.\n",
              "file": "pkg/modding/manifest.go",
              "line": 358
            }
          ]
        },
        {
          "name": "ModState",
          "anchor": "ModState",
          "decl": "type ModState uint8",
          "doc": "ModState is the lifecycle state of a managed mod.\n",
          "file": "pkg/modding/manager.go",
          "line": 29,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "StateDiscovered",
                  "anchor": "StateDiscovered"
                },
                {
                  "name": "StateLoaded",
                  "anchor": "StateLoaded"
                },
                {
                  "name": "StateDisabled",
                  "anchor": "StateDisabled"
                },
                {
                  "name": "StateFailed",
                  "anchor": "StateFailed"
                }
              ],
              "decl": "const (\n\t// StateDiscovered means the mod manifest was discovered and validated, and is not loaded.\n\tStateDiscovered ModState = iota\n\t// StateLoaded means the mod is compiled, running in its sandbox, and receiving hooks.\n\tStateLoaded\n\t// StateDisabled means the mod was explicitly disabled and will not be loaded.\n\tStateDisabled\n\t// StateFailed means the mod failed to compile, load, or faulted at runtime.\n\tStateFailed\n)",
              "doc": "",
              "file": "pkg/modding/manager.go",
              "line": 31
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ModState.String",
              "recv": "ModState",
              "decl": "func (s ModState) String() string",
              "doc": "String returns a human-readable state name.\n",
              "file": "pkg/modding/manager.go",
              "line": 43
            }
          ]
        },
        {
          "name": "Panel",
          "anchor": "Panel",
          "decl": "type Panel struct {\n\tModID string\n\tID    string\n\tSlot  string\n\tNode  core.Node\n}",
          "doc": "Panel is a TSX UI panel or HUD widget mounted by a mod via game.mountPanel.\n",
          "file": "pkg/modding/api.go",
          "line": 103,
          "members": [
            {
              "name": "ModID",
              "anchor": "Panel.ModID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "Panel.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Slot",
              "anchor": "Panel.Slot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Node",
              "anchor": "Panel.Node",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PermissionError",
          "anchor": "PermissionError",
          "decl": "type PermissionError struct {\n\tModID      string\n\tCapability Capability\n\tAction     string\n}",
          "doc": "PermissionError reports a blocked capability check. It unwraps to both [ErrPermission]\nand a [*core.Error] with [core.CodeAccessDenied], so TSX catches receive error.code,\nerror.permission, and error.resource.\n",
          "file": "pkg/modding/api.go",
          "line": 47,
          "members": [
            {
              "name": "ModID",
              "anchor": "PermissionError.ModID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Capability",
              "anchor": "PermissionError.Capability",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Action",
              "anchor": "PermissionError.Action",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "PermissionError.Error",
              "recv": "*PermissionError",
              "decl": "func (e *PermissionError) Error() string",
              "doc": "",
              "file": "pkg/modding/api.go",
              "line": 53
            },
            {
              "name": "Unwrap",
              "anchor": "PermissionError.Unwrap",
              "recv": "*PermissionError",
              "decl": "func (e *PermissionError) Unwrap() []error",
              "doc": "Unwrap exposes ErrPermission and a structured core.Error with CodeAccessDenied.\n",
              "file": "pkg/modding/api.go",
              "line": 58
            }
          ]
        },
        {
          "name": "PublishOptions",
          "anchor": "PublishOptions",
          "decl": "type PublishOptions struct {\n\tAppID       uint32\n\tTitle       string\n\tDescription string\n\tTags        []string\n\tVisibility  WorkshopVisibility\n\tPreview     string // relative slash-separated path inside the mod directory\n\tChangeNote  string\n}",
          "doc": "PublishOptions customizes a single [Workshop.Publish] call.\nNon-zero fields override values from workshop.yaml and mod.yaml.\n",
          "file": "pkg/modding/workshop.go",
          "line": 383,
          "members": [
            {
              "name": "AppID",
              "anchor": "PublishOptions.AppID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "PublishOptions.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Description",
              "anchor": "PublishOptions.Description",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "PublishOptions.Tags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visibility",
              "anchor": "PublishOptions.Visibility",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Preview",
              "anchor": "PublishOptions.Preview",
              "kind": "field",
              "doc": "relative slash-separated path inside the mod directory"
            },
            {
              "name": "ChangeNote",
              "anchor": "PublishOptions.ChangeNote",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PublishRequest",
          "anchor": "PublishRequest",
          "decl": "type PublishRequest struct {\n\tAppID       uint32\n\tID          PublishedFileID\n\tTitle       string\n\tDescription string\n\tTags        []string\n\tVisibility  WorkshopVisibility\n\tPreviewFile string // absolute path to preview image on disk, or empty\n\tContentDir  string // absolute path to mod content directory on disk\n\tChangeNote  string\n}",
          "doc": "PublishRequest describes a Steam Workshop item update submitted via [WorkshopBackend.SubmitUpdate].\n",
          "file": "pkg/modding/workshop.go",
          "line": 289,
          "members": [
            {
              "name": "AppID",
              "anchor": "PublishRequest.AppID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "PublishRequest.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "PublishRequest.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Description",
              "anchor": "PublishRequest.Description",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "PublishRequest.Tags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visibility",
              "anchor": "PublishRequest.Visibility",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PreviewFile",
              "anchor": "PublishRequest.PreviewFile",
              "kind": "field",
              "doc": "absolute path to preview image on disk, or empty"
            },
            {
              "name": "ContentDir",
              "anchor": "PublishRequest.ContentDir",
              "kind": "field",
              "doc": "absolute path to mod content directory on disk"
            },
            {
              "name": "ChangeNote",
              "anchor": "PublishRequest.ChangeNote",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PublishResult",
          "anchor": "PublishResult",
          "decl": "type PublishResult struct {\n\tID                  PublishedFileID\n\tNeedsLegalAgreement bool\n\tLegalAgreementURL   string\n}",
          "doc": "PublishResult reports the outcome of submitting a Steam Workshop item update.\n",
          "file": "pkg/modding/workshop.go",
          "line": 302,
          "members": [
            {
              "name": "ID",
              "anchor": "PublishResult.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NeedsLegalAgreement",
              "anchor": "PublishResult.NeedsLegalAgreement",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LegalAgreementURL",
              "anchor": "PublishResult.LegalAgreementURL",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PublishedFileID",
          "anchor": "PublishedFileID",
          "decl": "type PublishedFileID uint64",
          "doc": "PublishedFileID uniquely identifies an item on Steam Workshop (Steamworks PublishedFileId_t).\n",
          "file": "pkg/modding/workshop.go",
          "line": 55,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "PublishedFileID.String",
              "recv": "PublishedFileID",
              "decl": "func (id PublishedFileID) String() string",
              "doc": "String formats id as a decimal Steam Workshop item ID.\n",
              "file": "pkg/modding/workshop.go",
              "line": 58
            }
          ]
        },
        {
          "name": "SemVer",
          "anchor": "SemVer",
          "decl": "type SemVer struct {\n\tMajor int\n\tMinor int\n\tPatch int\n\tPre   string\n}",
          "doc": "SemVer is a parsed semantic version (MAJOR.MINOR.PATCH[-prerelease]).\n",
          "file": "pkg/modding/manifest.go",
          "line": 440,
          "members": [
            {
              "name": "Major",
              "anchor": "SemVer.Major",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Minor",
              "anchor": "SemVer.Minor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Patch",
              "anchor": "SemVer.Patch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pre",
              "anchor": "SemVer.Pre",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseSemVer",
              "anchor": "ParseSemVer",
              "decl": "func ParseSemVer(raw string) (SemVer, error)",
              "doc": "ParseSemVer parses a semantic version string such as \"1.2.3\" or \"0.4.0-beta.1\".\n",
              "file": "pkg/modding/manifest.go",
              "line": 448
            }
          ],
          "methods": [
            {
              "name": "Compare",
              "anchor": "SemVer.Compare",
              "recv": "SemVer",
              "decl": "func (v SemVer) Compare(other SemVer) int",
              "doc": "Compare compares v and other according to SemVer 2.0.0 precedence.\n",
              "file": "pkg/modding/manifest.go",
              "line": 493
            },
            {
              "name": "String",
              "anchor": "SemVer.String",
              "recv": "SemVer",
              "decl": "func (v SemVer) String() string",
              "doc": "String formats v as MAJOR.MINOR.PATCH[-prerelease].\n",
              "file": "pkg/modding/manifest.go",
              "line": 484
            }
          ]
        },
        {
          "name": "SoundRequest",
          "anchor": "SoundRequest",
          "decl": "type SoundRequest struct {\n\tModID  string\n\tName   string\n\tVolume float64\n\tRate   float64\n\tLoop   bool\n}",
          "doc": "SoundRequest describes a sound playback requested by a mod.\n",
          "file": "pkg/modding/api.go",
          "line": 87,
          "members": [
            {
              "name": "ModID",
              "anchor": "SoundRequest.ModID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "SoundRequest.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Volume",
              "anchor": "SoundRequest.Volume",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rate",
              "anchor": "SoundRequest.Rate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Loop",
              "anchor": "SoundRequest.Loop",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SpawnRequest",
          "anchor": "SpawnRequest",
          "decl": "type SpawnRequest struct {\n\tModID  string\n\tPrefab string\n\tX, Y   float64\n\tProps  map[string]any\n}",
          "doc": "SpawnRequest describes an entity spawn requested by a mod.\n",
          "file": "pkg/modding/api.go",
          "line": 71,
          "members": [
            {
              "name": "ModID",
              "anchor": "SpawnRequest.ModID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prefab",
              "anchor": "SpawnRequest.Prefab",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "SpawnRequest.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "SpawnRequest.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Props",
              "anchor": "SpawnRequest.Props",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SteamWorkshop",
          "anchor": "SteamWorkshop",
          "decl": "type SteamWorkshop struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "SteamWorkshop implements [WorkshopBackend] against the local Steamworks shared library\n(libsteam_api.dylib on macOS, libsteam_api.so on Linux, steam_api64.dll on Windows) using\npurego and the Steamworks flat C API without CGo.\n",
          "file": "pkg/modding/workshop_steam.go",
          "line": 51,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSteamWorkshop",
              "anchor": "NewSteamWorkshop",
              "decl": "func NewSteamWorkshop(opts SteamWorkshopOptions) (*SteamWorkshop, error)",
              "doc": "NewSteamWorkshop loads the Steamworks shared library via purego, initializes Steamworks\n(unless opts.SkipInit is set), and binds the flat ISteamUGC and ISteamUtils APIs.\nWhen the Steamworks library or running Steam client is absent, it returns an error matching\n[ErrWorkshopUnavailable].\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 97
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "SteamWorkshop.Close",
              "recv": "*SteamWorkshop",
              "decl": "func (w *SteamWorkshop) Close() error",
              "doc": "Close shuts down Steamworks (if initialized by [NewSteamWorkshop]) and unloads the library.\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 242
            },
            {
              "name": "CreateItem",
              "anchor": "SteamWorkshop.CreateItem",
              "recv": "*SteamWorkshop",
              "decl": "func (w *SteamWorkshop) CreateItem(ctx context.Context, appID uint32) (PublishedFileID, error)",
              "doc": "CreateItem creates a new empty Steam Workshop community item under appID.\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 301
            },
            {
              "name": "DownloadItem",
              "anchor": "SteamWorkshop.DownloadItem",
              "recv": "*SteamWorkshop",
              "decl": "func (w *SteamWorkshop) DownloadItem(ctx context.Context, id PublishedFileID, highPriority bool) error",
              "doc": "DownloadItem starts downloading or updating Workshop item id and waits until Steam reports\nit is installed and up to date (or ctx is canceled).\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 524
            },
            {
              "name": "ItemInstallInfo",
              "anchor": "SteamWorkshop.ItemInstallInfo",
              "recv": "*SteamWorkshop",
              "decl": "func (w *SteamWorkshop) ItemInstallInfo(ctx context.Context, id PublishedFileID) (InstallInfo, error)",
              "doc": "ItemInstallInfo returns the local install folder, size, and update timestamp for id.\nIf the item is not installed or needs an update, it returns [ErrWorkshopNotInstalled].\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 491
            },
            {
              "name": "QueryItems",
              "anchor": "SteamWorkshop.QueryItems",
              "recv": "*SteamWorkshop",
              "decl": "func (w *SteamWorkshop) QueryItems(ctx context.Context, query WorkshopQuery) ([]WorkshopItem, error)",
              "doc": "QueryItems queries Steam Workshop for items matching query.\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 557
            },
            {
              "name": "SubmitUpdate",
              "anchor": "SteamWorkshop.SubmitUpdate",
              "recv": "*SteamWorkshop",
              "decl": "func (w *SteamWorkshop) SubmitUpdate(ctx context.Context, req PublishRequest) (PublishResult, error)",
              "doc": "SubmitUpdate uploads updated metadata, preview image, and content directory for req.ID.\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 324
            },
            {
              "name": "Subscribe",
              "anchor": "SteamWorkshop.Subscribe",
              "recv": "*SteamWorkshop",
              "decl": "func (w *SteamWorkshop) Subscribe(ctx context.Context, id PublishedFileID) error",
              "doc": "Subscribe subscribes the local Steam user to Workshop item id.\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 417
            },
            {
              "name": "SubscribedItems",
              "anchor": "SteamWorkshop.SubscribedItems",
              "recv": "*SteamWorkshop",
              "decl": "func (w *SteamWorkshop) SubscribedItems(ctx context.Context) ([]PublishedFileID, error)",
              "doc": "SubscribedItems returns all Workshop item IDs the local Steam user is subscribed to.\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 466
            },
            {
              "name": "Unsubscribe",
              "anchor": "SteamWorkshop.Unsubscribe",
              "recv": "*SteamWorkshop",
              "decl": "func (w *SteamWorkshop) Unsubscribe(ctx context.Context, id PublishedFileID) error",
              "doc": "Unsubscribe unsubscribes the local Steam user from Workshop item id.\n",
              "file": "pkg/modding/workshop_steam.go",
              "line": 443
            }
          ]
        },
        {
          "name": "SteamWorkshopOptions",
          "anchor": "SteamWorkshopOptions",
          "decl": "type SteamWorkshopOptions struct {\n\t// LibraryPath optionally specifies the exact path to the Steamworks shared library\n\t// (libsteam_api.dylib on macOS, libsteam_api.so on Linux, steam_api64.dll on Windows).\n\t// When empty, standard Steamworks library names are probed.\n\tLibraryPath string\n\t// SkipInit skips calling SteamAPI_Init and SteamAPI_Shutdown when the host game\n\t// already manages Steamworks initialization elsewhere.\n\tSkipInit bool\n\t// PollInterval sets how often async SteamAPICall_t handles pump SteamAPI_RunCallbacks\n\t// while waiting for completion. Defaults to 10ms when <= 0.\n\tPollInterval time.Duration\n}",
          "doc": "SteamWorkshopOptions configures [NewSteamWorkshop].\n",
          "file": "pkg/modding/workshop.go",
          "line": 354,
          "members": [
            {
              "name": "LibraryPath",
              "anchor": "SteamWorkshopOptions.LibraryPath",
              "kind": "field",
              "doc": "LibraryPath optionally specifies the exact path to the Steamworks shared library\n(libsteam_api.dylib on macOS, libsteam_api.so on Linux, steam_api64.dll on Windows).\nWhen empty, standard Steamworks library names are probed."
            },
            {
              "name": "SkipInit",
              "anchor": "SteamWorkshopOptions.SkipInit",
              "kind": "field",
              "doc": "SkipInit skips calling SteamAPI_Init and SteamAPI_Shutdown when the host game\nalready manages Steamworks initialization elsewhere."
            },
            {
              "name": "PollInterval",
              "anchor": "SteamWorkshopOptions.PollInterval",
              "kind": "field",
              "doc": "PollInterval sets how often async SteamAPICall_t handles pump SteamAPI_RunCallbacks\nwhile waiting for completion. Defaults to 10ms when <= 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SyncResult",
          "anchor": "SyncResult",
          "decl": "type SyncResult struct {\n\tInstalled []InstalledWorkshopItem\n\tUpdated   []InstalledWorkshopItem\n\tRemoved   []InstalledWorkshopItem\n\tUnchanged []InstalledWorkshopItem\n}",
          "doc": "SyncResult summarizes the changes [Workshop.SyncSubscribed] applied to [Manager].\n",
          "file": "pkg/modding/workshop.go",
          "line": 403,
          "members": [
            {
              "name": "Installed",
              "anchor": "SyncResult.Installed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Updated",
              "anchor": "SyncResult.Updated",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Removed",
              "anchor": "SyncResult.Removed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unchanged",
              "anchor": "SyncResult.Unchanged",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Workshop",
          "anchor": "Workshop",
          "decl": "type Workshop struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Workshop connects a [WorkshopBackend] to a [*Manager] so players can publish mods and levels\nto Steam Workshop and automatically download, validate, install, update, and remove\nsubscribed items through the mod manager.\n",
          "file": "pkg/modding/workshop.go",
          "line": 413,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewWorkshop",
              "anchor": "NewWorkshop",
              "decl": "func NewWorkshop(backend WorkshopBackend, manager *Manager, opts WorkshopOptions) *Workshop",
              "doc": "NewWorkshop creates a Workshop client backed by backend and installing into manager.\nmanager may be nil for publish-only workflows (such as a mod uploader CLI).\n",
              "file": "pkg/modding/workshop.go",
              "line": 423
            }
          ],
          "methods": [
            {
              "name": "InstallSubscribed",
              "anchor": "Workshop.InstallSubscribed",
              "recv": "*Workshop",
              "decl": "func (w *Workshop) InstallSubscribed(ctx context.Context, id PublishedFileID) (InstalledWorkshopItem, error)",
              "doc": "InstallSubscribed ensures subscribed Workshop item id is downloaded, validates its folder\nand mod.yaml safely, and installs or updates it in the mod [Manager].\n",
              "file": "pkg/modding/workshop.go",
              "line": 611
            },
            {
              "name": "Installed",
              "anchor": "Workshop.Installed",
              "recv": "*Workshop",
              "decl": "func (w *Workshop) Installed() []InstalledWorkshopItem",
              "doc": "Installed returns a deterministic snapshot of Workshop items currently installed in the manager.\n",
              "file": "pkg/modding/workshop.go",
              "line": 591
            },
            {
              "name": "Publish",
              "anchor": "Workshop.Publish",
              "recv": "*Workshop",
              "decl": "func (w *Workshop) Publish(ctx context.Context, dir string, opts PublishOptions) (PublishResult, error)",
              "doc": "Publish validates the mod in dir, creates a Steam Workshop item if workshop.yaml does not\nyet record a PublishedFileID, submits the update, and writes deterministic workshop.yaml\nmetadata back to dir so subsequent publishes update the same item.\n\nIf Steamworks reports that the author must accept the Steam Workshop Subscriber Agreement,\nPublish still saves the assigned PublishedFileID to workshop.yaml and returns the populated\n[PublishResult] alongside an error matching [ErrWorkshopLegalAgreementRequired].\n",
              "file": "pkg/modding/workshop.go",
              "line": 440
            },
            {
              "name": "QueryItems",
              "anchor": "Workshop.QueryItems",
              "recv": "*Workshop",
              "decl": "func (w *Workshop) QueryItems(ctx context.Context, query WorkshopQuery) ([]WorkshopItem, error)",
              "doc": "QueryItems queries Steam Workshop items matching query.\n",
              "file": "pkg/modding/workshop.go",
              "line": 583
            },
            {
              "name": "Subscribe",
              "anchor": "Workshop.Subscribe",
              "recv": "*Workshop",
              "decl": "func (w *Workshop) Subscribe(ctx context.Context, id PublishedFileID) error",
              "doc": "Subscribe subscribes the active player to Workshop item id.\n",
              "file": "pkg/modding/workshop.go",
              "line": 567
            },
            {
              "name": "SyncSubscribed",
              "anchor": "Workshop.SyncSubscribed",
              "recv": "*Workshop",
              "decl": "func (w *Workshop) SyncSubscribed(ctx context.Context) (SyncResult, error)",
              "doc": "SyncSubscribed reconciles the mod [Manager] with all currently subscribed Steam Workshop\nitems: unsubscribed items are unloaded and removed, missing or outdated items are downloaded,\ninstall folders and manifests are validated safely, and valid mods are installed in\ntopological dependency order. Failures in individual items are isolated and returned as a\njoined error so healthy subscribed mods still sync.\n",
              "file": "pkg/modding/workshop.go",
              "line": 669
            },
            {
              "name": "Unsubscribe",
              "anchor": "Workshop.Unsubscribe",
              "recv": "*Workshop",
              "decl": "func (w *Workshop) Unsubscribe(ctx context.Context, id PublishedFileID) error",
              "doc": "Unsubscribe unsubscribes the active player from Workshop item id.\n",
              "file": "pkg/modding/workshop.go",
              "line": 575
            }
          ]
        },
        {
          "name": "WorkshopBackend",
          "anchor": "WorkshopBackend",
          "decl": "type WorkshopBackend interface {\n\tCreateItem(ctx context.Context, appID uint32) (PublishedFileID, error)\n\tSubmitUpdate(ctx context.Context, req PublishRequest) (PublishResult, error)\n\tSubscribe(ctx context.Context, id PublishedFileID) error\n\tUnsubscribe(ctx context.Context, id PublishedFileID) error\n\tSubscribedItems(ctx context.Context) ([]PublishedFileID, error)\n\tItemInstallInfo(ctx context.Context, id PublishedFileID) (InstallInfo, error)\n\tDownloadItem(ctx context.Context, id PublishedFileID, highPriority bool) error\n\tQueryItems(ctx context.Context, query WorkshopQuery) ([]WorkshopItem, error)\n}",
          "doc": "WorkshopBackend abstracts the Steamworks ISteamUGC workflow.\nUse [NewSteamWorkshop] to talk to the local Steam client on desktop platforms, or\n[NewMemoryWorkshop] for deterministic tests and offline workflows.\n",
          "file": "pkg/modding/workshop.go",
          "line": 342,
          "members": [
            {
              "name": "CreateItem",
              "anchor": "WorkshopBackend.CreateItem",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "SubmitUpdate",
              "anchor": "WorkshopBackend.SubmitUpdate",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Subscribe",
              "anchor": "WorkshopBackend.Subscribe",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Unsubscribe",
              "anchor": "WorkshopBackend.Unsubscribe",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "SubscribedItems",
              "anchor": "WorkshopBackend.SubscribedItems",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "ItemInstallInfo",
              "anchor": "WorkshopBackend.ItemInstallInfo",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "DownloadItem",
              "anchor": "WorkshopBackend.DownloadItem",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "QueryItems",
              "anchor": "WorkshopBackend.QueryItems",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorkshopItem",
          "anchor": "WorkshopItem",
          "decl": "type WorkshopItem struct {\n\tID          PublishedFileID\n\tAppID       uint32\n\tTitle       string\n\tDescription string\n\tTags        []string\n\tVisibility  WorkshopVisibility\n\tOwnerID     uint64\n\tUpdatedAt   time.Time\n\tVotesUp     uint32\n\tVotesDown   uint32\n}",
          "doc": "WorkshopItem describes a Steam Workshop item returned by [WorkshopBackend.QueryItems].\n",
          "file": "pkg/modding/workshop.go",
          "line": 326,
          "members": [
            {
              "name": "ID",
              "anchor": "WorkshopItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AppID",
              "anchor": "WorkshopItem.AppID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Title",
              "anchor": "WorkshopItem.Title",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Description",
              "anchor": "WorkshopItem.Description",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "WorkshopItem.Tags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visibility",
              "anchor": "WorkshopItem.Visibility",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OwnerID",
              "anchor": "WorkshopItem.OwnerID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UpdatedAt",
              "anchor": "WorkshopItem.UpdatedAt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VotesUp",
              "anchor": "WorkshopItem.VotesUp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VotesDown",
              "anchor": "WorkshopItem.VotesDown",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorkshopMetadata",
          "anchor": "WorkshopMetadata",
          "decl": "type WorkshopMetadata struct {\n\t// Version is the schema version of workshop.yaml. Files must state [WorkshopMetadataVersion];\n\t// a value built in code may leave it 0 and [EncodeWorkshopMetadata] writes [WorkshopMetadataVersion].\n\tVersion int `yaml:\"version\" json:\"version\"`\n\t// AppID is the Steam application ID that owns this Workshop item.\n\tAppID uint32 `yaml:\"appId\" json:\"appId\"`\n\t// PublishedFileID is the Steam Workshop item ID assigned on first publish, or 0 before upload.\n\tPublishedFileID PublishedFileID `yaml:\"publishedFileId,omitempty\" json:\"publishedFileId,omitempty\"`\n\t// Title is the Steam Workshop item title (defaults to ModManifest.Name when omitted).\n\tTitle string `yaml:\"title,omitempty\" json:\"title,omitempty\"`\n\t// Description is the Steam Workshop item description (defaults to ModManifest.Description when omitted).\n\tDescription string `yaml:\"description,omitempty\" json:\"description,omitempty\"`\n\t// Tags lists Steam Workshop discovery tags such as \"level\", \"gameplay\", or \"ui\".\n\tTags []string `yaml:\"tags,omitempty\" json:\"tags,omitempty\"`\n\t// Visibility controls who can see the Workshop item (public, friendsOnly, private, unlisted).\n\tVisibility WorkshopVisibility `yaml:\"visibility,omitempty\" json:\"visibility,omitempty\"`\n\t// Preview is a relative slash-separated path inside the mod directory to a preview image.\n\tPreview string `yaml:\"preview,omitempty\" json:\"preview,omitempty\"`\n}",
          "doc": "WorkshopMetadata is the deterministic YAML sidecar (workshop.yaml) stored in a mod or level\ndirectory published to Steam Workshop. Storing PublishedFileID lets subsequent publishes\nupdate the existing Workshop item instead of creating duplicates.\n",
          "file": "pkg/modding/workshop.go",
          "line": 116,
          "members": [
            {
              "name": "Version",
              "anchor": "WorkshopMetadata.Version",
              "kind": "field",
              "doc": "Version is the schema version of workshop.yaml. Files must state [WorkshopMetadataVersion];\na value built in code may leave it 0 and [EncodeWorkshopMetadata] writes [WorkshopMetadataVersion]."
            },
            {
              "name": "AppID",
              "anchor": "WorkshopMetadata.AppID",
              "kind": "field",
              "doc": "AppID is the Steam application ID that owns this Workshop item."
            },
            {
              "name": "PublishedFileID",
              "anchor": "WorkshopMetadata.PublishedFileID",
              "kind": "field",
              "doc": "PublishedFileID is the Steam Workshop item ID assigned on first publish, or 0 before upload."
            },
            {
              "name": "Title",
              "anchor": "WorkshopMetadata.Title",
              "kind": "field",
              "doc": "Title is the Steam Workshop item title (defaults to ModManifest.Name when omitted)."
            },
            {
              "name": "Description",
              "anchor": "WorkshopMetadata.Description",
              "kind": "field",
              "doc": "Description is the Steam Workshop item description (defaults to ModManifest.Description when omitted)."
            },
            {
              "name": "Tags",
              "anchor": "WorkshopMetadata.Tags",
              "kind": "field",
              "doc": "Tags lists Steam Workshop discovery tags such as \"level\", \"gameplay\", or \"ui\"."
            },
            {
              "name": "Visibility",
              "anchor": "WorkshopMetadata.Visibility",
              "kind": "field",
              "doc": "Visibility controls who can see the Workshop item (public, friendsOnly, private, unlisted)."
            },
            {
              "name": "Preview",
              "anchor": "WorkshopMetadata.Preview",
              "kind": "field",
              "doc": "Preview is a relative slash-separated path inside the mod directory to a preview image."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseWorkshopMetadata",
              "anchor": "ParseWorkshopMetadata",
              "decl": "func ParseWorkshopMetadata(data []byte) (WorkshopMetadata, error)",
              "doc": "ParseWorkshopMetadata parses and validates a workshop.yaml file. Unknown fields, duplicate\nkeys, trailing YAML documents, invalid visibility/preview/tag values, and a missing or\nunsupported version are refused as [ErrInvalidWorkshopMetadata].\n",
              "file": "pkg/modding/workshop.go",
              "line": 144
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "WorkshopMetadata.Validate",
              "recv": "WorkshopMetadata",
              "decl": "func (m WorkshopMetadata) Validate() error",
              "doc": "Validate checks that m has valid Steam Workshop metadata fields. Version may be 0 for a\nvalue constructed in Go, or [WorkshopMetadataVersion]; [ParseWorkshopMetadata] requires\nfiles to state version: 1.\n",
              "file": "pkg/modding/workshop.go",
              "line": 202
            }
          ]
        },
        {
          "name": "WorkshopOptions",
          "anchor": "WorkshopOptions",
          "decl": "type WorkshopOptions struct {\n\t// AppID is the default Steam App ID used when creating or publishing items if\n\t// workshop.yaml and PublishOptions do not specify one.\n\tAppID uint32\n\t// AllowedRoots optionally restricts the filesystem roots from which Workshop\n\t// item install directories may be loaded. When non-empty, ItemInstallInfo.Folder\n\t// must resolve inside at least one of these directories after symlink evaluation.\n\tAllowedRoots []string\n\t// AutoLoad automatically calls [Manager.Load] on newly installed or updated enabled\n\t// Workshop mods during [Workshop.SyncSubscribed] and [Workshop.InstallSubscribed].\n\tAutoLoad bool\n}",
          "doc": "WorkshopOptions configures a [Workshop] client.\n",
          "file": "pkg/modding/workshop.go",
          "line": 368,
          "members": [
            {
              "name": "AppID",
              "anchor": "WorkshopOptions.AppID",
              "kind": "field",
              "doc": "AppID is the default Steam App ID used when creating or publishing items if\nworkshop.yaml and PublishOptions do not specify one."
            },
            {
              "name": "AllowedRoots",
              "anchor": "WorkshopOptions.AllowedRoots",
              "kind": "field",
              "doc": "AllowedRoots optionally restricts the filesystem roots from which Workshop\nitem install directories may be loaded. When non-empty, ItemInstallInfo.Folder\nmust resolve inside at least one of these directories after symlink evaluation."
            },
            {
              "name": "AutoLoad",
              "anchor": "WorkshopOptions.AutoLoad",
              "kind": "field",
              "doc": "AutoLoad automatically calls [Manager.Load] on newly installed or updated enabled\nWorkshop mods during [Workshop.SyncSubscribed] and [Workshop.InstallSubscribed]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorkshopQuery",
          "anchor": "WorkshopQuery",
          "decl": "type WorkshopQuery struct {\n\tAppID      uint32\n\tIDs        []PublishedFileID\n\tSearchText string\n\tTags       []string\n\tPage       uint32 // 1-based page number (0 is treated as 1)\n}",
          "doc": "WorkshopQuery filters items returned by [WorkshopBackend.QueryItems].\n",
          "file": "pkg/modding/workshop.go",
          "line": 317,
          "members": [
            {
              "name": "AppID",
              "anchor": "WorkshopQuery.AppID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IDs",
              "anchor": "WorkshopQuery.IDs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SearchText",
              "anchor": "WorkshopQuery.SearchText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "WorkshopQuery.Tags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Page",
              "anchor": "WorkshopQuery.Page",
              "kind": "field",
              "doc": "1-based page number (0 is treated as 1)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorkshopVisibility",
          "anchor": "WorkshopVisibility",
          "decl": "type WorkshopVisibility string",
          "doc": "WorkshopVisibility controls who can view an item on Steam Workshop.\n",
          "file": "pkg/modding/workshop.go",
          "line": 63,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "VisibilityPublic",
                  "anchor": "VisibilityPublic"
                },
                {
                  "name": "VisibilityFriendsOnly",
                  "anchor": "VisibilityFriendsOnly"
                },
                {
                  "name": "VisibilityPrivate",
                  "anchor": "VisibilityPrivate"
                },
                {
                  "name": "VisibilityUnlisted",
                  "anchor": "VisibilityUnlisted"
                }
              ],
              "decl": "const (\n\t// VisibilityPublic makes the item visible to everyone on Steam Workshop.\n\tVisibilityPublic WorkshopVisibility = \"public\"\n\t// VisibilityFriendsOnly restricts visibility to the author's Steam friends.\n\tVisibilityFriendsOnly WorkshopVisibility = \"friendsOnly\"\n\t// VisibilityPrivate restricts visibility to the author and contributors.\n\tVisibilityPrivate WorkshopVisibility = \"private\"\n\t// VisibilityUnlisted hides the item from browse/search while allowing direct link access.\n\tVisibilityUnlisted WorkshopVisibility = \"unlisted\"\n)",
              "doc": "",
              "file": "pkg/modding/workshop.go",
              "line": 65
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "WorkshopVisibility.Valid",
              "recv": "WorkshopVisibility",
              "decl": "func (v WorkshopVisibility) Valid() bool",
              "doc": "Valid reports whether v is one of the defined Workshop visibility values.\n",
              "file": "pkg/modding/workshop.go",
              "line": 77
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/navbake",
      "name": "navbake",
      "dir": "pkg/navbake",
      "page": "pkg/navbake",
      "synopsis": "Package navbake bakes 2D navigation meshes for game/ai from level geometry: an outline with concave obstacles and holes, or a tilemap's solid cells, shrunk by an agent's radius and divided into the convex polygons ai.NavMesh searches.",
      "doc": "Package navbake bakes 2D navigation meshes for game/ai from level geometry: an outline with concave obstacles and holes, or a tilemap's solid cells, shrunk by an agent's radius and divided into the convex polygons ai.NavMesh searches.\n\nA bake snaps the geometry to a fine grid and works with exact integer predicates, so it never fails on touching or overlapping obstacles and gives the same polygons for the same input on every platform. Its result, a Mesh, saves to a versioned YAML file that loads back and saves to the same bytes, and Draw shows it as a debug overlay.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultPrecision",
              "anchor": "DefaultPrecision"
            }
          ],
          "decl": "const DefaultPrecision = 1.0 / 256",
          "doc": "DefaultPrecision is the grid step, in world units, that Options.Precision defaults to.\n",
          "file": "pkg/navbake/bake.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the baked mesh file schema version this package reads and writes.\n",
          "file": "pkg/navbake/format.go",
          "line": 17
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Draw",
          "anchor": "Draw",
          "decl": "func Draw(d *core.Drawing, m *Mesh, fill, edge, portal core.Color, lineWidth float32)",
          "doc": "Draw fills every polygon of m in fill, outlines it in edge and strokes the portals between polygons in portal, at lineWidth world units under whatever camera transform d already has. It is meant for debug overlays; a transparent color skips that layer. It finds the portals with Mesh.Portals on every call.\n",
          "file": "pkg/navbake/draw.go",
          "line": 151
        }
      ],
      "types": [
        {
          "name": "Agent",
          "anchor": "Agent",
          "decl": "type Agent struct {\n\t// Name identifies the agent type, such as \"small\" or \"tank\"; BakeAll needs it unique and not empty.\n\tName string\n\t// Radius is how far the agent's center keeps from every obstacle and from the outline's edges, in world units.\n\tRadius float32\n}",
          "doc": "Agent is a kind of agent a mesh is baked for.\n",
          "file": "pkg/navbake/bake.go",
          "line": 28,
          "members": [
            {
              "name": "Name",
              "anchor": "Agent.Name",
              "kind": "field",
              "doc": "Name identifies the agent type, such as \"small\" or \"tank\"; BakeAll needs it unique and not empty."
            },
            {
              "name": "Radius",
              "anchor": "Agent.Radius",
              "kind": "field",
              "doc": "Radius is how far the agent's center keeps from every obstacle and from the outline's edges, in world units."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Mesh",
          "anchor": "Mesh",
          "decl": "type Mesh struct {\n\t// Version is the schema version; it must be FormatVersion.\n\tVersion int `yaml:\"version\"`\n\t// Agent names the agent type the mesh was baked for; empty for an unnamed agent.\n\tAgent string `yaml:\"agent,omitempty\"`\n\t// Radius is the agent radius the mesh was baked for, in world units.\n\tRadius float32 `yaml:\"radius\"`\n\t// Polygons are the mesh's convex polygons.\n\tPolygons []Polygon `yaml:\"polygons\"`\n\t// Links are optional point-to-point off-mesh connections (jumps, drops, ladders, teleports) applied by NavMesh.\n\tLinks []OffMeshLink `yaml:\"links,omitempty\"`\n}",
          "doc": "Mesh is a baked navigation mesh: convex polygons for one agent type, kept in YAML so it can be committed beside the level it was baked from and reviewed as a diff.\n\n\tversion: 1\n\tagent: small\n\tradius: 4\n\tpolygons:\n\t  - [[4, 4], [60, 4], [60, 28], [4, 28]]\n\t  - [[60, 4], [124, 4], [124, 28], [60, 28]]\n\nEach polygon is a list of [x, y] vertices in world units, counter-clockwise in a y-up frame (clockwise on a y-down screen), starting from its lowest vertex. A bake writes its polygons in a fixed order, so baking the same input gives the same bytes.\n",
          "file": "pkg/navbake/format.go",
          "line": 29,
          "members": [
            {
              "name": "Version",
              "anchor": "Mesh.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be FormatVersion."
            },
            {
              "name": "Agent",
              "anchor": "Mesh.Agent",
              "kind": "field",
              "doc": "Agent names the agent type the mesh was baked for; empty for an unnamed agent."
            },
            {
              "name": "Radius",
              "anchor": "Mesh.Radius",
              "kind": "field",
              "doc": "Radius is the agent radius the mesh was baked for, in world units."
            },
            {
              "name": "Polygons",
              "anchor": "Mesh.Polygons",
              "kind": "field",
              "doc": "Polygons are the mesh's convex polygons."
            },
            {
              "name": "Links",
              "anchor": "Mesh.Links",
              "kind": "field",
              "doc": "Links are optional point-to-point off-mesh connections (jumps, drops, ladders, teleports) applied by NavMesh."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Bake",
              "anchor": "Bake",
              "decl": "func Bake(src Source, agent Agent, opts Options) (*Mesh, error)",
              "doc": "Bake builds the navigation mesh of src for one agent: the walkable area, shrunk by the agent's radius, divided into convex polygons.\n\nObstacles are inflated by the radius with their convex corners rounded, the result is triangulated with a constrained Delaunay triangulation and the triangles are merged into convex polygons. A path that NavMesh.FindPath finds on the result keeps at least Radius from every obstacle and outline edge. Baking the same input gives the same mesh, so its YAML is byte for byte the same.\n",
              "file": "pkg/navbake/bake.go",
              "line": 44
            },
            {
              "name": "BakeAll",
              "anchor": "BakeAll",
              "decl": "func BakeAll(src Source, agents []Agent, opts Options) ([]*Mesh, error)",
              "doc": "BakeAll bakes one mesh per agent type from the same source, in the order of agents, sharing the work that does not depend on the radius.\n",
              "file": "pkg/navbake/bake.go",
              "line": 53
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Mesh, error)",
              "doc": "Parse decodes and validates a baked mesh file. Unknown fields, a second YAML document and any value Validate refuses are errors.\n",
              "file": "pkg/navbake/format.go",
              "line": 163
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "Mesh.Encode",
              "recv": "*Mesh",
              "decl": "func (m *Mesh) Encode() ([]byte, error)",
              "doc": "Encode validates m and writes it as YAML with two-space indentation, fields in a fixed order and one polygon per line, so encoding a parsed file gives back the same bytes for files written in that form.\n",
              "file": "pkg/navbake/format.go",
              "line": 187
            },
            {
              "name": "NavMesh",
              "anchor": "Mesh.NavMesh",
              "recv": "*Mesh",
              "decl": "func (m *Mesh) NavMesh() *ai.NavMesh",
              "doc": "NavMesh builds the ai.NavMesh of m, ready for FindPath; polygons that touch along an edge are connected there,\nand any OffMeshLinks stored in m.Links are registered via AddOffMeshLink.\n",
              "file": "pkg/navbake/format.go",
              "line": 120
            },
            {
              "name": "Portals",
              "anchor": "Mesh.Portals",
              "recv": "*Mesh",
              "decl": "func (m *Mesh) Portals() []Portal",
              "doc": "Portals returns the shared edges between the polygons of m, ordered by From then To. It buckets the polygons' bounds on a uniform grid and compares only polygons whose bounds touch, so it takes time near linear in the number of polygons for a baked mesh; a game that draws them every frame should still keep the result.\n",
              "file": "pkg/navbake/draw.go",
              "line": 22
            },
            {
              "name": "TiledNavMesh",
              "anchor": "Mesh.TiledNavMesh",
              "recv": "*Mesh",
              "decl": "func (m *Mesh) TiledNavMesh(tileSize float32) *ai.TiledNavMesh",
              "doc": "TiledNavMesh builds an ai.TiledNavMesh partitioned into fixed square tiles of size tileSize\nfrom m's baked polygons, ready for runtime tile replacement and dynamic obstacle carving.\n",
              "file": "pkg/navbake/format.go",
              "line": 151
            },
            {
              "name": "Validate",
              "anchor": "Mesh.Validate",
              "recv": "*Mesh",
              "decl": "func (m *Mesh) Validate() error",
              "doc": "Validate reports the first problem with m: a version other than FormatVersion, a radius that is negative or not finite, or a polygon with fewer than three vertices, a coordinate that is not finite, or a shape that is not convex, wound counter-clockwise in a y-up frame with a positive area.\n",
              "file": "pkg/navbake/format.go",
              "line": 205
            }
          ]
        },
        {
          "name": "OffMeshLink",
          "anchor": "OffMeshLink",
          "decl": "type OffMeshLink struct {\n\t// ID is an optional game-defined link identifier.\n\tID int `yaml:\"id,omitempty\"`\n\t// Start is the world-space [x, y] entry point of the link.\n\tStart Point `yaml:\"start\"`\n\t// End is the world-space [x, y] exit point of the link.\n\tEnd Point `yaml:\"end\"`\n\t// Radius is the optional endpoint snap and entry tolerance in world units (>= 0).\n\tRadius float32 `yaml:\"radius,omitempty\"`\n\t// Bidirectional allows traversal from End to Start as well as Start to End when true.\n\tBidirectional bool `yaml:\"bidirectional,omitempty\"`\n\t// Cost overrides the A* traversal cost when positive; 0 uses 2D Euclidean distance.\n\tCost float32 `yaml:\"cost,omitempty\"`\n\t// Area is the link's navigation area ID (0 for default).\n\tArea ai.NavArea `yaml:\"area,omitempty\"`\n\t// Flags holds optional custom link flag bits; ai.NavLinkOffMesh is always added on load.\n\tFlags uint32 `yaml:\"flags,omitempty\"`\n\t// UserData holds optional game-defined metadata (such as \"jump\", \"ladder\", or \"teleport\").\n\tUserData string `yaml:\"userData,omitempty\"`\n}",
          "doc": "OffMeshLink is a point-to-point off-mesh connection stored in a baked 2D navigation mesh,\nsuch as a jump, drop-down, ladder, or teleporter.\n",
          "file": "pkg/navbake/format.go",
          "line": 64,
          "members": [
            {
              "name": "ID",
              "anchor": "OffMeshLink.ID",
              "kind": "field",
              "doc": "ID is an optional game-defined link identifier."
            },
            {
              "name": "Start",
              "anchor": "OffMeshLink.Start",
              "kind": "field",
              "doc": "Start is the world-space [x, y] entry point of the link."
            },
            {
              "name": "End",
              "anchor": "OffMeshLink.End",
              "kind": "field",
              "doc": "End is the world-space [x, y] exit point of the link."
            },
            {
              "name": "Radius",
              "anchor": "OffMeshLink.Radius",
              "kind": "field",
              "doc": "Radius is the optional endpoint snap and entry tolerance in world units (>= 0)."
            },
            {
              "name": "Bidirectional",
              "anchor": "OffMeshLink.Bidirectional",
              "kind": "field",
              "doc": "Bidirectional allows traversal from End to Start as well as Start to End when true."
            },
            {
              "name": "Cost",
              "anchor": "OffMeshLink.Cost",
              "kind": "field",
              "doc": "Cost overrides the A* traversal cost when positive; 0 uses 2D Euclidean distance."
            },
            {
              "name": "Area",
              "anchor": "OffMeshLink.Area",
              "kind": "field",
              "doc": "Area is the link's navigation area ID (0 for default)."
            },
            {
              "name": "Flags",
              "anchor": "OffMeshLink.Flags",
              "kind": "field",
              "doc": "Flags holds optional custom link flag bits; ai.NavLinkOffMesh is always added on load."
            },
            {
              "name": "UserData",
              "anchor": "OffMeshLink.UserData",
              "kind": "field",
              "doc": "UserData holds optional game-defined metadata (such as \"jump\", \"ladder\", or \"teleport\")."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Precision is the grid step that the bake snaps every point to, in world units; zero means DefaultPrecision. Coordinates, and the obstacles once grown by an agent's radius, must stay within 2^24 steps of the origin (65536 world units at DefaultPrecision), the largest grid that the float32 coordinates of a Mesh hold exactly; a gap or sliver of an obstacle thinner than one step may close or vanish.\n\tPrecision float32\n}",
          "doc": "Options tunes a bake. The zero value is ready to use.\n",
          "file": "pkg/navbake/bake.go",
          "line": 36,
          "members": [
            {
              "name": "Precision",
              "anchor": "Options.Precision",
              "kind": "field",
              "doc": "Precision is the grid step that the bake snaps every point to, in world units; zero means DefaultPrecision. Coordinates, and the obstacles once grown by an agent's radius, must stay within 2^24 steps of the origin (65536 world units at DefaultPrecision), the largest grid that the float32 coordinates of a Mesh hold exactly; a gap or sliver of an obstacle thinner than one step may close or vanish."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Point",
          "anchor": "Point",
          "decl": "type Point [2]float32",
          "doc": "Point is a 2D position in world space, written as a flow [x, y] list.\n",
          "file": "pkg/navbake/format.go",
          "line": 43,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CorePoint",
              "anchor": "Point.CorePoint",
              "recv": "Point",
              "decl": "func (p Point) CorePoint() core.Point",
              "doc": "CorePoint returns p as a core.Point.\n",
              "file": "pkg/navbake/format.go",
              "line": 46
            },
            {
              "name": "MarshalYAML",
              "anchor": "Point.MarshalYAML",
              "recv": "Point",
              "decl": "func (p Point) MarshalYAML() (any, error)",
              "doc": "MarshalYAML writes p as a flow [x, y] sequence, each coordinate in the shortest form that reads back as the same float32.\n",
              "file": "pkg/navbake/format.go",
              "line": 51
            }
          ]
        },
        {
          "name": "Polygon",
          "anchor": "Polygon",
          "decl": "type Polygon []core.Point",
          "doc": "Polygon is one convex polygon of a Mesh. In YAML it is a flow sequence of [x, y] pairs on one line.\n",
          "file": "pkg/navbake/format.go",
          "line": 86,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Polygon.MarshalYAML",
              "recv": "Polygon",
              "decl": "func (p Polygon) MarshalYAML() (any, error)",
              "doc": "MarshalYAML writes p as a flow sequence of [x, y] pairs, each coordinate in the shortest form that reads back as the same float32.\n",
              "file": "pkg/navbake/format.go",
              "line": 303
            },
            {
              "name": "UnmarshalYAML",
              "anchor": "Polygon.UnmarshalYAML",
              "recv": "*Polygon",
              "decl": "func (p *Polygon) UnmarshalYAML(node *yaml.Node) error",
              "doc": "UnmarshalYAML reads p from a sequence of [x, y] pairs.\n",
              "file": "pkg/navbake/format.go",
              "line": 319
            }
          ]
        },
        {
          "name": "Portal",
          "anchor": "Portal",
          "decl": "type Portal struct {\n\t// A and B are the ends of the shared stretch.\n\tA, B core.Point\n\t// From and To are the indices of the two polygons, From < To.\n\tFrom, To int\n}",
          "doc": "Portal is the stretch of edge two polygons of a Mesh share, which an agent crosses to go from one to the other.\n",
          "file": "pkg/navbake/draw.go",
          "line": 11,
          "members": [
            {
              "name": "A",
              "anchor": "Portal.A",
              "kind": "field",
              "doc": "A and B are the ends of the shared stretch."
            },
            {
              "name": "B",
              "anchor": "Portal.B",
              "kind": "field",
              "doc": "A and B are the ends of the shared stretch."
            },
            {
              "name": "From",
              "anchor": "Portal.From",
              "kind": "field",
              "doc": "From and To are the indices of the two polygons, From < To."
            },
            {
              "name": "To",
              "anchor": "Portal.To",
              "kind": "field",
              "doc": "From and To are the indices of the two polygons, From < To."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Source",
          "anchor": "Source",
          "decl": "type Source struct {\n\t// Outlines are the walkable areas, such as a level's outer boundary.\n\tOutlines [][]core.Point\n\t// Obstacles are the blocked areas inside the outlines, such as walls, pillars and holes.\n\tObstacles [][]core.Point\n\t// Links are optional point-to-point off-mesh connections (jumps, drops, ladders, teleports) stored on every baked Mesh.\n\tLinks []OffMeshLink\n}",
          "doc": "Source is the level geometry a navigation mesh is baked from: the areas agents may walk and the obstacles inside them, as polygons in world units.\n\nPolygons may be concave, may overlap and may be wound either way: a point is walkable when it is inside the outlines and outside the obstacles under the nonzero winding rule. Two overlapping polygons wound in opposite directions cancel where they overlap, which is how a tilemap's walkable pocket inside a solid block is described.\n",
          "file": "pkg/navbake/bake.go",
          "line": 18,
          "members": [
            {
              "name": "Outlines",
              "anchor": "Source.Outlines",
              "kind": "field",
              "doc": "Outlines are the walkable areas, such as a level's outer boundary."
            },
            {
              "name": "Obstacles",
              "anchor": "Source.Obstacles",
              "kind": "field",
              "doc": "Obstacles are the blocked areas inside the outlines, such as walls, pillars and holes."
            },
            {
              "name": "Links",
              "anchor": "Source.Links",
              "kind": "field",
              "doc": "Links are optional point-to-point off-mesh connections (jumps, drops, ladders, teleports) stored on every baked Mesh."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FromTilemap",
              "anchor": "FromTilemap",
              "decl": "func FromTilemap(m *tilemap.Tilemap, mask tilemap.TileFlags) (Source, error)",
              "doc": "FromTilemap returns the source of a tilemap's navigation mesh in world space: the map's area is the outline and every cell whose flags match mask (across all tile layers, as Tilemap.FlagsAt combines them) is an obstacle, such as mask = tilemap.TileSolid.\n\nCells are the shapes the map's Orientation gives them: squares on an orthogonal map, diamonds on an isometric or staggered one and hexagons on a hexagonal one, so the mesh lines up with the tiles drawn. Neighbouring solid cells merge into one obstacle when the mesh is baked.\n",
              "file": "pkg/navbake/tilemap.go",
              "line": 14
            }
          ],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/navbake3d",
      "name": "navbake3d",
      "dir": "pkg/navbake3d",
      "page": "pkg/navbake3d",
      "synopsis": "Package navbake3d bakes 3D navigation meshes from level geometry, as Recast, Godot's NavigationRegion3D and Unity's NavMeshSurface do, so a 3D game no longer authors world3d.NavMesh polygons by hand.",
      "doc": "Package navbake3d bakes 3D navigation meshes from level geometry, as Recast, Godot's NavigationRegion3D and Unity's NavMeshSurface do, so a 3D game no longer authors world3d.NavMesh polygons by hand. Package navbake bakes the 2D ai.NavMesh instead.\n\nA Geometry collects the level's triangles from glTF models, scene3d scenes and sceneformat scene files, world3d terrain heightmaps and GridMaps, and physics3d static colliders, each on layers a Settings.LayerMask selects from. Bake rasterizes them into a heightfield, keeps the surfaces an agent type can stand on (no steeper than its MaxSlope, with its Height of clearance), lets it step up and down its MaxClimb, keeps its Radius from walls and ledges, partitions the walkable area into regions, traces and simplifies their outlines and splits them into convex polygons with triangles that follow the height of the ground. Each AgentType gets a mesh of its own.\n\nThe result is a File, a versioned YAML document a sceneformat scene names in its navMesh field: Encode writes the same bytes for the same level every time, and Parse then Encode changes nothing. Mesh.NavMesh turns one agent type's mesh into the world3d.NavMesh that finds paths, DrawDebug and Mesh.DebugLines show it, and the game navmesh command bakes a scene from the command line.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultCellSize",
              "anchor": "DefaultCellSize"
            },
            {
              "name": "DefaultCellHeight",
              "anchor": "DefaultCellHeight"
            },
            {
              "name": "DefaultMinRegionArea",
              "anchor": "DefaultMinRegionArea"
            },
            {
              "name": "DefaultMaxEdgeLength",
              "anchor": "DefaultMaxEdgeLength"
            },
            {
              "name": "DefaultMaxSimplificationError",
              "anchor": "DefaultMaxSimplificationError"
            },
            {
              "name": "DefaultMaxVertsPerPoly",
              "anchor": "DefaultMaxVertsPerPoly"
            },
            {
              "name": "DefaultDetailSampleDistance",
              "anchor": "DefaultDetailSampleDistance"
            },
            {
              "name": "DefaultDetailSampleMaxError",
              "anchor": "DefaultDetailSampleMaxError"
            }
          ],
          "decl": "const (\n\t// DefaultCellSize is the default width and depth of one heightfield cell.\n\tDefaultCellSize float32 = 0.3\n\t// DefaultCellHeight is the default height of one heightfield cell.\n\tDefaultCellHeight float32 = 0.2\n\t// DefaultMinRegionArea is the default smallest area of an island of walkable surface that is kept.\n\tDefaultMinRegionArea float32 = 1\n\t// DefaultMaxEdgeLength is the default longest a polygon edge along a wall may be before it is split.\n\tDefaultMaxEdgeLength float32 = 12\n\t// DefaultMaxSimplificationError is the default farthest a simplified wall outline may stray from the walkable area's cell outline.\n\tDefaultMaxSimplificationError float32 = 0.4\n\t// DefaultMaxVertsPerPoly is the default largest number of vertices in one convex polygon.\n\tDefaultMaxVertsPerPoly = 6\n\t// DefaultDetailSampleDistance is the default spacing of the height samples the detail mesh is built from.\n\tDefaultDetailSampleDistance float32 = 1.8\n\t// DefaultDetailSampleMaxError is the default farthest the detail mesh may stray from the sampled height of the surface.\n\tDefaultDetailSampleMaxError float32 = 0.2\n)",
          "doc": "Default bake settings, in world units unless noted, as Recast's sample uses them for a human-sized agent.\n",
          "file": "pkg/navbake3d/config.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "DefaultAgentRadius",
              "anchor": "DefaultAgentRadius"
            },
            {
              "name": "DefaultAgentHeight",
              "anchor": "DefaultAgentHeight"
            },
            {
              "name": "DefaultAgentMaxSlope",
              "anchor": "DefaultAgentMaxSlope"
            },
            {
              "name": "DefaultAgentMaxClimb",
              "anchor": "DefaultAgentMaxClimb"
            }
          ],
          "decl": "const (\n\t// DefaultAgentRadius is the default radius of an agent.\n\tDefaultAgentRadius float32 = 0.6\n\t// DefaultAgentHeight is the default height of an agent.\n\tDefaultAgentHeight float32 = 2\n\t// DefaultAgentMaxSlope is the default steepest walkable slope in degrees.\n\tDefaultAgentMaxSlope float32 = 45\n\t// DefaultAgentMaxClimb is the default highest step an agent climbs.\n\tDefaultAgentMaxClimb float32 = 0.9\n)",
          "doc": "Defaults of an agent type whose fields are zero.\n",
          "file": "pkg/navbake3d/config.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the navigation mesh file schema version this package reads and writes.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "LayerAll",
              "anchor": "LayerAll"
            }
          ],
          "decl": "const LayerAll uint32 = ^uint32(0)",
          "doc": "LayerAll selects every layer.\n",
          "file": "pkg/navbake3d/geometry.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "MaxCells",
              "anchor": "MaxCells"
            }
          ],
          "decl": "const MaxCells = 1 << 24",
          "doc": "MaxCells is the most heightfield cells (columns across times rows deep) one bake allocates; a larger level needs a larger CellSize.\n",
          "file": "pkg/navbake3d/config.go",
          "line": 46
        },
        {
          "idents": [
            {
              "name": "MaxVertsPerPolyLimit",
              "anchor": "MaxVertsPerPolyLimit"
            }
          ],
          "decl": "const MaxVertsPerPolyLimit = 12",
          "doc": "MaxVertsPerPolyLimit is the largest MaxVertsPerPoly a bake accepts.\n",
          "file": "pkg/navbake3d/config.go",
          "line": 43
        },
        {
          "idents": [
            {
              "name": "SchemaURL",
              "anchor": "SchemaURL"
            }
          ],
          "decl": "const SchemaURL = \"https://game.nsgo.dev/schemas/navmesh.v1.json\"",
          "doc": "SchemaURL is where the JSON Schema of version 1 navigation mesh files is published.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 21
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNoGeometry",
              "anchor": "ErrNoGeometry"
            }
          ],
          "decl": "var ErrNoGeometry = errors.New(\"navbake3d: no level geometry on the selected layers\")",
          "doc": "ErrNoGeometry is returned by Bake and BakeMesh when no triangle of the geometry is on a layer the settings select.\n",
          "file": "pkg/navbake3d/bake.go",
          "line": 13
        }
      ],
      "funcs": [
        {
          "name": "BakeTile",
          "anchor": "BakeTile",
          "decl": "func BakeTile(g *Geometry, settings Settings, agent AgentType, coord world3d.ChunkCoord, tileSize float32, origin math3d.Vec3) (*world3d.NavTile, error)",
          "doc": "BakeTile bakes one independent world3d.NavTile for chunk coordinate coord from g's triangles\noverlapping that tile (expanded by an erosion border so wall clearance near tile edges matches\na full-level bake). Resulting walkable triangles are clipped cleanly to the tile's exact XZ\nbounds so neighboring tiles link seamlessly when installed in a world3d.TiledNavMesh.\n\nWhen no selected geometry overlaps the tile, BakeTile returns an empty *world3d.NavTile and a nil error.\n",
          "file": "pkg/navbake3d/bake.go",
          "line": 57
        },
        {
          "name": "ColliderMesh",
          "anchor": "ColliderMesh",
          "decl": "func ColliderMesh(n *scene3d.Node) ([]math3d.Vec3, error)",
          "doc": "ColliderMesh is the NodeMesh that reads a node's *scene3d.MeshCollider.\n",
          "file": "pkg/navbake3d/geometry.go",
          "line": 548
        },
        {
          "name": "DrawDebug",
          "anchor": "DrawDebug",
          "decl": "func DrawDebug(d *core.Drawing, viewProj math3d.Mat4, viewport core.Bounds, m *Mesh, style DebugStyle)",
          "doc": "DrawDebug strokes m's polygon outlines and, unless style.HideDetail is set, its detail triangles onto d, projected by viewProj, a [0, 1] depth projection such as math3d.Perspective or a render3d camera's, into viewport, clipped at the near plane. Zero style fields take DefaultDebugStyle's. In a release build it draws nothing.\n",
          "file": "pkg/navbake3d/debugdraw_draw.go",
          "line": 12
        },
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(f *File) ([]byte, error)",
          "doc": "Encode validates f and writes it as deterministic 2-space YAML that Parse reads back unchanged.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 160
        },
        {
          "name": "GLTFTriangles",
          "anchor": "GLTFTriangles",
          "decl": "func GLTFTriangles(doc *gltf.Document) []math3d.Vec3",
          "doc": "GLTFTriangles returns the triangles AddGLTF would add from doc with an identity world matrix, three vertices per triangle.\n",
          "file": "pkg/navbake3d/geometry.go",
          "line": 556
        },
        {
          "name": "IsModelPath",
          "anchor": "IsModelPath",
          "decl": "func IsModelPath(p string) bool",
          "doc": "IsModelPath reports whether p names a glTF model, a .gltf or .glb file, as a scene object's model does (sceneformat.IsModelPath).\n",
          "file": "pkg/navbake3d/geometry.go",
          "line": 563
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(f *File) error",
          "doc": "Validate checks that f conforms to the version 1 schema: positive settings, distinct valid agent types, finite coordinates, and polygons and triangles whose indices are in range.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 182
        }
      ],
      "types": [
        {
          "name": "AgentType",
          "anchor": "AgentType",
          "decl": "type AgentType struct {\n\t// Name uniquely identifies the agent type, such as \"humanoid\".\n\tName string `yaml:\"name\" schema:\"required,minLength=1\"`\n\t// Radius is how far the mesh keeps from walls and ledges; 0 uses DefaultAgentRadius.\n\tRadius float32 `yaml:\"radius\" schema:\"minimum=0\"`\n\t// Height is the clearance the agent needs; spaces under ceilings lower than it are left out. 0 uses DefaultAgentHeight.\n\tHeight float32 `yaml:\"height\" schema:\"minimum=0\"`\n\t// MaxSlope is the steepest surface the agent walks on, in degrees from horizontal, below 90; 0 uses DefaultAgentMaxSlope.\n\tMaxSlope float32 `yaml:\"maxSlope\" schema:\"minimum=0,exclusiveMaximum=90\"`\n\t// MaxClimb is the highest step, such as a stair's riser, the agent walks up or down; 0 uses DefaultAgentMaxClimb.\n\tMaxClimb float32 `yaml:\"maxClimb\" schema:\"minimum=0\"`\n}",
          "doc": "AgentType is a named kind of agent a navigation mesh is baked for, such as a humanoid or a large creature. A level bakes one mesh per agent type, as Unity's agent types and Godot's per-agent navigation meshes do.\n",
          "file": "pkg/navbake3d/config.go",
          "line": 55,
          "members": [
            {
              "name": "Name",
              "anchor": "AgentType.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the agent type, such as \"humanoid\"."
            },
            {
              "name": "Radius",
              "anchor": "AgentType.Radius",
              "kind": "field",
              "doc": "Radius is how far the mesh keeps from walls and ledges; 0 uses DefaultAgentRadius."
            },
            {
              "name": "Height",
              "anchor": "AgentType.Height",
              "kind": "field",
              "doc": "Height is the clearance the agent needs; spaces under ceilings lower than it are left out. 0 uses DefaultAgentHeight."
            },
            {
              "name": "MaxSlope",
              "anchor": "AgentType.MaxSlope",
              "kind": "field",
              "doc": "MaxSlope is the steepest surface the agent walks on, in degrees from horizontal, below 90; 0 uses DefaultAgentMaxSlope."
            },
            {
              "name": "MaxClimb",
              "anchor": "AgentType.MaxClimb",
              "kind": "field",
              "doc": "MaxClimb is the highest step, such as a stair's riser, the agent walks up or down; 0 uses DefaultAgentMaxClimb."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DebugStyle",
          "anchor": "DebugStyle",
          "decl": "type DebugStyle struct {\n\t// PolygonColor strokes the polygons' outlines; 0 uses DefaultDebugStyle's.\n\tPolygonColor core.Color\n\t// DetailColor strokes the detail triangles' inner edges; 0 uses DefaultDebugStyle's.\n\tDetailColor core.Color\n\t// LineWidth is the stroke width in points; 0 or less uses DefaultDebugStyle's.\n\tLineWidth float32\n\t// HideDetail leaves the detail triangles out, drawing only the polygons.\n\tHideDetail bool\n\t// Lift raises every line by this many world units so it is not hidden in the ground it lies on.\n\tLift float32\n}",
          "doc": "DebugStyle sets how DrawDebug draws a mesh.\n",
          "file": "pkg/navbake3d/debugdraw.go",
          "line": 9,
          "members": [
            {
              "name": "PolygonColor",
              "anchor": "DebugStyle.PolygonColor",
              "kind": "field",
              "doc": "PolygonColor strokes the polygons' outlines; 0 uses DefaultDebugStyle's."
            },
            {
              "name": "DetailColor",
              "anchor": "DebugStyle.DetailColor",
              "kind": "field",
              "doc": "DetailColor strokes the detail triangles' inner edges; 0 uses DefaultDebugStyle's."
            },
            {
              "name": "LineWidth",
              "anchor": "DebugStyle.LineWidth",
              "kind": "field",
              "doc": "LineWidth is the stroke width in points; 0 or less uses DefaultDebugStyle's."
            },
            {
              "name": "HideDetail",
              "anchor": "DebugStyle.HideDetail",
              "kind": "field",
              "doc": "HideDetail leaves the detail triangles out, drawing only the polygons."
            },
            {
              "name": "Lift",
              "anchor": "DebugStyle.Lift",
              "kind": "field",
              "doc": "Lift raises every line by this many world units so it is not hidden in the ground it lies on."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultDebugStyle",
              "anchor": "DefaultDebugStyle",
              "decl": "func DefaultDebugStyle() DebugStyle",
              "doc": "DefaultDebugStyle returns a DebugStyle with high-contrast colors for drawing a mesh over a 3D scene.\n",
              "file": "pkg/navbake3d/debugdraw.go",
              "line": 23
            }
          ],
          "methods": []
        },
        {
          "name": "File",
          "anchor": "File",
          "decl": "type File struct {\n\t// Version is the schema version; it must be FormatVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Settings are the values the meshes were baked with, every field set.\n\tSettings Settings `yaml:\"settings\"`\n\t// Meshes holds one mesh per agent type, in the order the agent types were baked.\n\tMeshes []Mesh `yaml:\"meshes,omitempty\"`\n}",
          "doc": "File is a versioned YAML navigation mesh file, such as levels/level1.navmesh.yaml, that a scene names in its navMesh field: the settings it was baked with and one Mesh per agent type.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 26,
          "members": [
            {
              "name": "Version",
              "anchor": "File.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be FormatVersion (1)."
            },
            {
              "name": "Settings",
              "anchor": "File.Settings",
              "kind": "field",
              "doc": "Settings are the values the meshes were baked with, every field set."
            },
            {
              "name": "Meshes",
              "anchor": "File.Meshes",
              "kind": "field",
              "doc": "Meshes holds one mesh per agent type, in the order the agent types were baked."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Bake",
              "anchor": "Bake",
              "decl": "func Bake(g *Geometry, settings Settings, agents []AgentType) (*File, error)",
              "doc": "Bake bakes one navigation mesh per agent type from g's triangles on the layers settings.LayerMask selects, in the order agents lists them, and returns them as a File ready to Encode. Zero fields of settings and of each agent type take their defaults, and the File records the values used.\n\nThe same geometry, settings and agent types always bake the same File, so encoding it twice writes the same bytes.\n",
              "file": "pkg/navbake3d/bake.go",
              "line": 18
            },
            {
              "name": "LoadFS",
              "anchor": "LoadFS",
              "decl": "func LoadFS(fsys fs.FS, path string) (*File, error)",
              "doc": "LoadFS reads and parses the navigation mesh file at path in fsys, such as the one a scene's navMesh field names from the project root.\n",
              "file": "pkg/navbake3d/format.go",
              "line": 151
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*File, error)",
              "doc": "Parse decodes and validates a YAML navigation mesh file. Unknown fields and trailing YAML documents are refused; errors are *loaderr.Error values with the line, column and field of the problem.\n",
              "file": "pkg/navbake3d/format.go",
              "line": 114
            },
            {
              "name": "ParseWith",
              "anchor": "ParseWith",
              "decl": "func ParseWith(data []byte, file string) (*File, error)",
              "doc": "ParseWith is Parse with the file's name attached to errors.\n",
              "file": "pkg/navbake3d/format.go",
              "line": 119
            }
          ],
          "methods": [
            {
              "name": "Mesh",
              "anchor": "File.Mesh",
              "recv": "*File",
              "decl": "func (f *File) Mesh(agent string) (*Mesh, bool)",
              "doc": "Mesh returns the mesh baked for the agent type called agent.\n",
              "file": "pkg/navbake3d/format.go",
              "line": 281
            }
          ]
        },
        {
          "name": "Geometry",
          "anchor": "Geometry",
          "decl": "type Geometry struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Geometry is the level geometry a bake reads: world-space triangles, each on one or more layers that Settings.LayerMask selects from. Triangles wind counter-clockwise seen from their front, as glTF's and this module's meshes do; a triangle facing up is a floor, and every triangle is solid to the agents whatever way it faces. Triangles are surfaces, as in Recast, so a closed mesh tall enough to stand in is hollow; the collider shapes AddPhysicsWorld and AddGridMap add are filled instead.\n\nThe Add methods read the level from the sources a 3D game builds it from: glTF models, scene3d scenes and sceneformat scene files, world3d terrain heightmaps and GridMaps, and physics3d static colliders.\n",
          "file": "pkg/navbake3d/geometry.go",
          "line": 25,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AddGLTF",
              "anchor": "Geometry.AddGLTF",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddGLTF(doc *gltf.Document, world math3d.Mat4, layer uint32)",
              "doc": "AddGLTF adds the triangles of every mesh in doc's default scene (its first scene when it names none, or every node without a parent when it has no scenes), each at its node's world transform and then at world, on layer. Point and line primitives add nothing; skins and morph targets are left at their bind pose.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 424
            },
            {
              "name": "AddGridMap",
              "anchor": "Geometry.AddGridMap",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddGridMap(gm *world3d.GridMap, layer uint32)",
              "doc": "AddGridMap adds the collider boxes of every occupied cell of gm, on layer, each baked as a solid. A tile without ColliderBoxes adds nothing, so a GridMap's floors and walls need collider boxes to be baked.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 136
            },
            {
              "name": "AddGridMapFile",
              "anchor": "Geometry.AddGridMapFile",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddGridMapFile(fsys fs.FS, name string, layer uint32) error",
              "doc": "AddGridMapFile loads the versioned YAML 3D grid map at name in fsys (world3d.LoadGridMapFS) and adds its occupied cells' collider boxes on layer.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 150
            },
            {
              "name": "AddHeightmap",
              "anchor": "Geometry.AddHeightmap",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddHeightmap(h *world3d.Heightmap, layer uint32)",
              "doc": "AddHeightmap adds the terrain h, triangulated as its own BuildMesh does, on layer.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 114
            },
            {
              "name": "AddMesh",
              "anchor": "Geometry.AddMesh",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddMesh(positions []math3d.Vec3, indices []uint32, world math3d.Mat4, layer uint32)",
              "doc": "AddMesh adds the indexed triangle list positions and indices, transformed by world, on layer. Nil indices take the positions three at a time. A world matrix that mirrors (negative determinant) flips the triangles' winding back, as glTF requires.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 88
            },
            {
              "name": "AddOffMeshLink",
              "anchor": "Geometry.AddOffMeshLink",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddOffMeshLink(link OffMeshLink)",
              "doc": "AddOffMeshLink registers a point-to-point off-mesh connection to be stored on every Mesh baked from g.\nLinks with non-finite coordinates or negative/non-finite Radius or Cost are skipped.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 36
            },
            {
              "name": "AddPhysicsWorld",
              "anchor": "Geometry.AddPhysicsWorld",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddPhysicsWorld(w *physics3d.World, mask uint32)",
              "doc": "AddPhysicsWorld adds the static bodies, triangle meshes, heightfields and voxel colliders of w whose collision layers share a bit with mask. A collider's layer of 0 counts as every layer, as in physics3d. Boxes add their 12 triangles, and spheres and capsules a faceted approximation of their surface, each baked as a solid that fills the space inside it; every solid voxel of a voxel collider whose grid implements physics3d.VoxelBoundsGrid adds a solid box, and a grid that does not report its bounds adds nothing; dynamic and kinematic bodies and triggers are not level geometry and add nothing.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 196
            },
            {
              "name": "AddPrimitive",
              "anchor": "Geometry.AddPrimitive",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddPrimitive(name string, world math3d.Mat4, layer uint32) error",
              "doc": "AddPrimitive adds the built-in 3D primitive named name (one of sceneformat.MeshPrimitives: \"box\", \"plane\", \"sphere\", \"capsule\", or \"cylinder\") transformed by world on layer. Closed primitives are baked as solids; \"plane\" is baked as a surface.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 411
            },
            {
              "name": "AddScene",
              "anchor": "Geometry.AddScene",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddScene(s *scene3d.Scene, mask uint32, mesh NodeMesh) error",
              "doc": "AddScene adds the geometry of every enabled node of s, outside the subtree of a disabled node, whose Layer shares a bit with mask, transformed by the node's world matrix and on the node's Layer. mesh gives each node's triangles; nil reads a *scene3d.MeshCollider. A node mesh returns an error, it is returned with the node's name.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 515
            },
            {
              "name": "AddSceneFile",
              "anchor": "Geometry.AddSceneFile",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddSceneFile(doc *sceneformat.SceneDoc, fsys fs.FS) error",
              "doc": "AddSceneFile adds the static 3D geometry and authored nav_link off-mesh links of a sceneformat scene: it resolves the scenes doc instances and inherits from fsys, builds the scene's 3D node tree, skips screen-space layers and dynamic or kinematic body3d objects (along with their descendants), adds each remaining object's glTF model (respecting ModelNode and ModelMesh), built-in 3D primitive Mesh, and static non-trigger collider3d shapes on scene3d.LayerDefault, and extracts every nav_link component into the geometry's off-mesh links.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 718
            },
            {
              "name": "AddTerrainFile",
              "anchor": "Geometry.AddTerrainFile",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddTerrainFile(fsys fs.FS, name string, layer uint32) error",
              "doc": "AddTerrainFile loads the versioned YAML terrain definition at name in fsys (world3d.LoadTerrainFS) and adds its heightmap on layer.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 123
            },
            {
              "name": "AddTriangle",
              "anchor": "Geometry.AddTriangle",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) AddTriangle(a, b, c math3d.Vec3, layer uint32)",
              "doc": "AddTriangle adds the triangle (a, b, c) on layer, skipping a degenerate one or one with a non-finite coordinate. A layer of 0 counts as every layer.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 68
            },
            {
              "name": "OffMeshLinks",
              "anchor": "Geometry.OffMeshLinks",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) OffMeshLinks() []OffMeshLink",
              "doc": "OffMeshLinks returns a copy of all off-mesh links added to g in insertion order.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 50
            },
            {
              "name": "TriangleCount",
              "anchor": "Geometry.TriangleCount",
              "recv": "*Geometry",
              "decl": "func (g *Geometry) TriangleCount() int",
              "doc": "TriangleCount returns the number of triangles g holds.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 60
            }
          ]
        },
        {
          "name": "Mesh",
          "anchor": "Mesh",
          "decl": "type Mesh struct {\n\t// Agent is the agent type the mesh was baked for, every field set.\n\tAgent AgentType `yaml:\"agent\"`\n\t// Vertices are the polygons' corners in world space, shared between neighbouring polygons.\n\tVertices []Point `yaml:\"vertices,omitempty\"`\n\t// Polygons are the mesh's convex walkable polygons.\n\tPolygons []Polygon `yaml:\"polygons,omitempty\"`\n\t// Links are optional point-to-point off-mesh connections (jumps, drops, ladders, teleports) applied by NavMesh.\n\tLinks []OffMeshLink `yaml:\"links,omitempty\"`\n}",
          "doc": "Mesh is the navigation mesh baked for one agent type: convex polygons over shared vertices, each with triangles that follow the height of the ground under it, plus any point-to-point off-mesh links.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 36,
          "members": [
            {
              "name": "Agent",
              "anchor": "Mesh.Agent",
              "kind": "field",
              "doc": "Agent is the agent type the mesh was baked for, every field set."
            },
            {
              "name": "Vertices",
              "anchor": "Mesh.Vertices",
              "kind": "field",
              "doc": "Vertices are the polygons' corners in world space, shared between neighbouring polygons."
            },
            {
              "name": "Polygons",
              "anchor": "Mesh.Polygons",
              "kind": "field",
              "doc": "Polygons are the mesh's convex walkable polygons."
            },
            {
              "name": "Links",
              "anchor": "Mesh.Links",
              "kind": "field",
              "doc": "Links are optional point-to-point off-mesh connections (jumps, drops, ladders, teleports) applied by NavMesh."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BakeMesh",
              "anchor": "BakeMesh",
              "decl": "func BakeMesh(g *Geometry, settings Settings, agent AgentType) (*Mesh, error)",
              "doc": "BakeMesh bakes the navigation mesh of one agent type, as Bake does for each.\n",
              "file": "pkg/navbake3d/bake.go",
              "line": 39
            }
          ],
          "methods": [
            {
              "name": "DebugLines",
              "anchor": "Mesh.DebugLines",
              "recv": "*Mesh",
              "decl": "func (m *Mesh) DebugLines(polygonsOnly bool) [][2]math3d.Vec3",
              "doc": "DebugLines returns the line segments that show m: first every polygon edge once, in polygon order, then, unless polygonsOnly is set, every edge inside a polygon's detail triangulation once. Edges shared by two polygons appear once.\n",
              "file": "pkg/navbake3d/debugdraw.go",
              "line": 33
            },
            {
              "name": "NavMesh",
              "anchor": "Mesh.NavMesh",
              "recv": "*Mesh",
              "decl": "func (m *Mesh) NavMesh() *world3d.NavMesh",
              "doc": "NavMesh builds the world3d.NavMesh agents path find on from m: each detail triangle becomes one of its walkable polygons, linked to its neighbours across shared edges, so paths follow ramps, stairs and terrain at the baked heights and keep stacked floors apart. Any OffMeshLinks stored in m.Links are registered via AddOffMeshLink. The bake already decided what is walkable, so no triangle is dropped for its slope. m must be valid, as Parse and Bake return it.\n",
              "file": "pkg/navbake3d/format.go",
              "line": 307
            },
            {
              "name": "TiledNavMesh",
              "anchor": "Mesh.TiledNavMesh",
              "recv": "*Mesh",
              "decl": "func (m *Mesh) TiledNavMesh(tileSize float32) *world3d.TiledNavMesh",
              "doc": "TiledNavMesh builds a world3d.TiledNavMesh partitioned into fixed square XZ tiles of size tileSize\nfrom m's detail triangles, ready for runtime tile replacement, dynamic obstacle carving, and chunk streaming.\n",
              "file": "pkg/navbake3d/format.go",
              "line": 340
            },
            {
              "name": "TriangleVertices",
              "anchor": "Mesh.TriangleVertices",
              "recv": "*Mesh",
              "decl": "func (m *Mesh) TriangleVertices(p *Polygon, t Triangle) [3]math3d.Vec3",
              "doc": "TriangleVertices returns the world-space corners of triangle t of polygon p.\n",
              "file": "pkg/navbake3d/format.go",
              "line": 294
            }
          ]
        },
        {
          "name": "NodeMesh",
          "anchor": "NodeMesh",
          "decl": "type NodeMesh func(n *scene3d.Node) ([]math3d.Vec3, error)",
          "doc": "NodeMesh returns the triangles of a scene3d node in its local space, three vertices per triangle, or nil when the node has no geometry to bake.\n",
          "file": "pkg/navbake3d/geometry.go",
          "line": 512,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SceneMeshes",
              "anchor": "SceneMeshes",
              "decl": "func SceneMeshes(fsys fs.FS) NodeMesh",
              "doc": "SceneMeshes returns the NodeMesh for nodes built by sceneformat.BuildNodes3D: an object whose Model names a glTF model in fsys (respecting ModelNode and ModelMesh), by its slash-separated path from the project root, bakes that model's triangles, each model loaded once; an object whose Mesh names a built-in primitive bakes that primitive; objects with a dynamic or kinematic body3d component (and their descendants) are skipped; any other node bakes its *scene3d.MeshCollider.\n",
              "file": "pkg/navbake3d/geometry.go",
              "line": 686
            }
          ],
          "methods": []
        },
        {
          "name": "OffMeshLink",
          "anchor": "OffMeshLink",
          "decl": "type OffMeshLink struct {\n\t// ID is an optional game-defined link identifier.\n\tID int `yaml:\"id,omitempty\"`\n\t// Start is the world-space [x, y, z] entry point of the link.\n\tStart Point `yaml:\"start\" schema:\"required\"`\n\t// End is the world-space [x, y, z] exit point of the link.\n\tEnd Point `yaml:\"end\" schema:\"required\"`\n\t// Radius is the optional endpoint snap and entry tolerance in world units (>= 0).\n\tRadius float32 `yaml:\"radius,omitempty\" schema:\"minimum=0\"`\n\t// Bidirectional allows traversal from End to Start as well as Start to End when true.\n\tBidirectional bool `yaml:\"bidirectional,omitempty\"`\n\t// Cost overrides the A* traversal cost when positive; 0 uses 3D Euclidean distance.\n\tCost float32 `yaml:\"cost,omitempty\" schema:\"minimum=0\"`\n\t// Area is the link's navigation area ID (0 for default).\n\tArea world3d.NavArea `yaml:\"area,omitempty\"`\n\t// Flags holds optional custom link flag bits; world3d.NavLinkOffMesh is always added on load.\n\tFlags uint32 `yaml:\"flags,omitempty\"`\n\t// UserData holds optional game-defined metadata (such as \"jump\", \"ladder\", or \"teleport\").\n\tUserData string `yaml:\"userData,omitempty\"`\n}",
          "doc": "OffMeshLink is a point-to-point off-mesh connection stored in a baked 3D navigation mesh,\nsuch as a jump, drop-down, ladder, or teleporter.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 49,
          "members": [
            {
              "name": "ID",
              "anchor": "OffMeshLink.ID",
              "kind": "field",
              "doc": "ID is an optional game-defined link identifier."
            },
            {
              "name": "Start",
              "anchor": "OffMeshLink.Start",
              "kind": "field",
              "doc": "Start is the world-space [x, y, z] entry point of the link."
            },
            {
              "name": "End",
              "anchor": "OffMeshLink.End",
              "kind": "field",
              "doc": "End is the world-space [x, y, z] exit point of the link."
            },
            {
              "name": "Radius",
              "anchor": "OffMeshLink.Radius",
              "kind": "field",
              "doc": "Radius is the optional endpoint snap and entry tolerance in world units (>= 0)."
            },
            {
              "name": "Bidirectional",
              "anchor": "OffMeshLink.Bidirectional",
              "kind": "field",
              "doc": "Bidirectional allows traversal from End to Start as well as Start to End when true."
            },
            {
              "name": "Cost",
              "anchor": "OffMeshLink.Cost",
              "kind": "field",
              "doc": "Cost overrides the A* traversal cost when positive; 0 uses 3D Euclidean distance."
            },
            {
              "name": "Area",
              "anchor": "OffMeshLink.Area",
              "kind": "field",
              "doc": "Area is the link's navigation area ID (0 for default)."
            },
            {
              "name": "Flags",
              "anchor": "OffMeshLink.Flags",
              "kind": "field",
              "doc": "Flags holds optional custom link flag bits; world3d.NavLinkOffMesh is always added on load."
            },
            {
              "name": "UserData",
              "anchor": "OffMeshLink.UserData",
              "kind": "field",
              "doc": "UserData holds optional game-defined metadata (such as \"jump\", \"ladder\", or \"teleport\")."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Point",
          "anchor": "Point",
          "decl": "type Point [3]float32",
          "doc": "Point is a position in world space, written as a [x, y, z] list.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 81,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Point.MarshalYAML",
              "recv": "Point",
              "decl": "func (p Point) MarshalYAML() (any, error)",
              "doc": "MarshalYAML writes p on one line, as [x, y, z].\n",
              "file": "pkg/navbake3d/format.go",
              "line": 87
            },
            {
              "name": "Vec3",
              "anchor": "Point.Vec3",
              "recv": "Point",
              "decl": "func (p Point) Vec3() math3d.Vec3",
              "doc": "Vec3 returns p as a math3d.Vec3.\n",
              "file": "pkg/navbake3d/format.go",
              "line": 84
            }
          ]
        },
        {
          "name": "Polygon",
          "anchor": "Polygon",
          "decl": "type Polygon struct {\n\t// Vertices index Mesh.Vertices, from 3 to Settings.MaxVertsPerPoly of them, in order around the polygon.\n\tVertices []int `yaml:\"vertices,flow\"`\n\t// Detail holds the extra vertices sampled on the polygon's edges and inside it where the ground is uneven.\n\tDetail []Point `yaml:\"detail,omitempty\"`\n\t// Triangles cover the polygon, winding counter-clockwise seen from above. An index below len(Vertices) names that polygon vertex, and index len(Vertices)+i names Detail[i].\n\tTriangles []Triangle `yaml:\"triangles\"`\n}",
          "doc": "Polygon is one convex walkable polygon of a Mesh with its height detail.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 71,
          "members": [
            {
              "name": "Vertices",
              "anchor": "Polygon.Vertices",
              "kind": "field",
              "doc": "Vertices index Mesh.Vertices, from 3 to Settings.MaxVertsPerPoly of them, in order around the polygon."
            },
            {
              "name": "Detail",
              "anchor": "Polygon.Detail",
              "kind": "field",
              "doc": "Detail holds the extra vertices sampled on the polygon's edges and inside it where the ground is uneven."
            },
            {
              "name": "Triangles",
              "anchor": "Polygon.Triangles",
              "kind": "field",
              "doc": "Triangles cover the polygon, winding counter-clockwise seen from above. An index below len(Vertices) names that polygon vertex, and index len(Vertices)+i names Detail[i]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Settings",
          "anchor": "Settings",
          "decl": "type Settings struct {\n\t// CellSize is the width and depth of one heightfield cell; smaller cells follow the level more closely and take longer to bake. 0 uses DefaultCellSize.\n\tCellSize float32 `yaml:\"cellSize\" schema:\"minimum=0\"`\n\t// CellHeight is the height of one heightfield cell, the precision of heights, clearances and step heights. 0 uses DefaultCellHeight.\n\tCellHeight float32 `yaml:\"cellHeight\" schema:\"minimum=0\"`\n\t// MinRegionArea is the smallest area of a connected island of walkable surface that is kept, which drops specks on tables and ledges. 0 uses DefaultMinRegionArea.\n\tMinRegionArea float32 `yaml:\"minRegionArea\" schema:\"minimum=0\"`\n\t// MaxEdgeLength is the longest a polygon edge along a wall may be before it is split. 0 uses DefaultMaxEdgeLength.\n\tMaxEdgeLength float32 `yaml:\"maxEdgeLength\" schema:\"minimum=0\"`\n\t// MaxSimplificationError is the farthest a simplified wall outline may stray from the walkable area's cell outline. 0 uses DefaultMaxSimplificationError.\n\tMaxSimplificationError float32 `yaml:\"maxSimplificationError\" schema:\"minimum=0\"`\n\t// MaxVertsPerPoly is the largest number of vertices in one convex polygon, from 3 to MaxVertsPerPolyLimit. 0 uses DefaultMaxVertsPerPoly.\n\tMaxVertsPerPoly int `yaml:\"maxVertsPerPoly\" schema:\"minimum=0,maximum=12\"`\n\t// DetailSampleDistance is the spacing of the height samples a polygon's detail triangles follow uneven ground with, at least CellSize. 0 uses DefaultDetailSampleDistance, or CellSize when that is larger.\n\tDetailSampleDistance float32 `yaml:\"detailSampleDistance\" schema:\"minimum=0\"`\n\t// DetailSampleMaxError is how far the detail triangles may stray from the sampled height before a sample is added. 0 uses DefaultDetailSampleMaxError.\n\tDetailSampleMaxError float32 `yaml:\"detailSampleMaxError\" schema:\"minimum=0\"`\n\t// LayerMask selects the geometry baked: a triangle is baked when its layers share a bit with the mask. 0 uses LayerAll.\n\tLayerMask uint32 `yaml:\"layerMask\"`\n}",
          "doc": "Settings are the voxel resolution and polygon building parameters of a bake, shared by every agent type. A zero field uses its default, and a baked File records every value it was baked with.\n",
          "file": "pkg/navbake3d/config.go",
          "line": 86,
          "members": [
            {
              "name": "CellSize",
              "anchor": "Settings.CellSize",
              "kind": "field",
              "doc": "CellSize is the width and depth of one heightfield cell; smaller cells follow the level more closely and take longer to bake. 0 uses DefaultCellSize."
            },
            {
              "name": "CellHeight",
              "anchor": "Settings.CellHeight",
              "kind": "field",
              "doc": "CellHeight is the height of one heightfield cell, the precision of heights, clearances and step heights. 0 uses DefaultCellHeight."
            },
            {
              "name": "MinRegionArea",
              "anchor": "Settings.MinRegionArea",
              "kind": "field",
              "doc": "MinRegionArea is the smallest area of a connected island of walkable surface that is kept, which drops specks on tables and ledges. 0 uses DefaultMinRegionArea."
            },
            {
              "name": "MaxEdgeLength",
              "anchor": "Settings.MaxEdgeLength",
              "kind": "field",
              "doc": "MaxEdgeLength is the longest a polygon edge along a wall may be before it is split. 0 uses DefaultMaxEdgeLength."
            },
            {
              "name": "MaxSimplificationError",
              "anchor": "Settings.MaxSimplificationError",
              "kind": "field",
              "doc": "MaxSimplificationError is the farthest a simplified wall outline may stray from the walkable area's cell outline. 0 uses DefaultMaxSimplificationError."
            },
            {
              "name": "MaxVertsPerPoly",
              "anchor": "Settings.MaxVertsPerPoly",
              "kind": "field",
              "doc": "MaxVertsPerPoly is the largest number of vertices in one convex polygon, from 3 to MaxVertsPerPolyLimit. 0 uses DefaultMaxVertsPerPoly."
            },
            {
              "name": "DetailSampleDistance",
              "anchor": "Settings.DetailSampleDistance",
              "kind": "field",
              "doc": "DetailSampleDistance is the spacing of the height samples a polygon's detail triangles follow uneven ground with, at least CellSize. 0 uses DefaultDetailSampleDistance, or CellSize when that is larger."
            },
            {
              "name": "DetailSampleMaxError",
              "anchor": "Settings.DetailSampleMaxError",
              "kind": "field",
              "doc": "DetailSampleMaxError is how far the detail triangles may stray from the sampled height before a sample is added. 0 uses DefaultDetailSampleMaxError."
            },
            {
              "name": "LayerMask",
              "anchor": "Settings.LayerMask",
              "kind": "field",
              "doc": "LayerMask selects the geometry baked: a triangle is baked when its layers share a bit with the mask. 0 uses LayerAll."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Triangle",
          "anchor": "Triangle",
          "decl": "type Triangle [3]int",
          "doc": "Triangle is three vertex indices of a Polygon's height detail, written as a [a, b, c] list.\n",
          "file": "pkg/navbake3d/format.go",
          "line": 92,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Triangle.MarshalYAML",
              "recv": "Triangle",
              "decl": "func (t Triangle) MarshalYAML() (any, error)",
              "doc": "MarshalYAML writes t on one line, as [a, b, c].\n",
              "file": "pkg/navbake3d/format.go",
              "line": 95
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/net",
      "name": "net",
      "dir": "pkg/net",
      "page": "pkg/net",
      "synopsis": "Package net provides cross-target multiplayer primitives for NSGo games:",
      "doc": "Package net provides cross-target multiplayer primitives for NSGo games:\n  - Transport abstraction with deterministic in-memory loopback, pure-Go RFC 6455\n    WebSocket (native + browser WebAssembly), and native UDP transports.\n  - Server-authoritative state replication with bitmask delta compression,\n    snapshot interpolation, and client-side prediction/reconciliation.\n  - Deterministic lockstep and GGPO-style rollback netcode with periodic\n    checksum verification and desync detection.\n  - A Relay that forwards peer-to-peer sessions between RelayTransports over WebSocket or UDP for players who cannot reach each other directly.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultUnreliableInbox",
              "anchor": "DefaultUnreliableInbox"
            },
            {
              "name": "DefaultReliableInbox",
              "anchor": "DefaultReliableInbox"
            },
            {
              "name": "DefaultReliableInboxWarning",
              "anchor": "DefaultReliableInboxWarning"
            }
          ],
          "decl": "const (\n\t// DefaultUnreliableInbox is the most ChannelUnreliable packets a transport's inbox holds from one peer when InboxLimits.Unreliable is zero.\n\tDefaultUnreliableInbox = 4096\n\t// DefaultReliableInbox is the most ChannelReliableOrdered packets a WebSocketServer's or RelayTransport's inbox holds from one peer when InboxLimits.Reliable is zero.\n\tDefaultReliableInbox = 16384\n\t// DefaultReliableInboxWarning is the ChannelReliableOrdered backlog that raises a warning when InboxLimits.ReliableWarning is zero.\n\tDefaultReliableInboxWarning = 4096\n)",
          "doc": "",
          "file": "pkg/net/transport.go",
          "line": 109
        },
        {
          "idents": [
            {
              "name": "DefaultMaxSnapshotSize",
              "anchor": "DefaultMaxSnapshotSize"
            }
          ],
          "decl": "const (\n\t// DefaultMaxSnapshotSize is the largest snapshot payload a ServerWorld passes to Transport.Send unless SetMaxSnapshotSize changes it. It fits every transport in this package: UDP datagrams (65000 bytes), relay messages (MaxRelayPayload) and WebSocket frames.\n\tDefaultMaxSnapshotSize = 60000\n)",
          "doc": "",
          "file": "pkg/net/replication.go",
          "line": 128
        },
        {
          "idents": [
            {
              "name": "MaxEntitiesPerSnapshot",
              "anchor": "MaxEntitiesPerSnapshot"
            }
          ],
          "decl": "const MaxEntitiesPerSnapshot = 1 << 16",
          "doc": "MaxEntitiesPerSnapshot bounds a full snapshot's entity count. The map is\nallocated before each entity is read, so a corrupt 3.8MB packet claiming a\nmillion entities would reserve hundreds of megabytes before failing (#546).\n",
          "file": "pkg/net/replication.go",
          "line": 1018
        },
        {
          "idents": [
            {
              "name": "MaxJoinStateSize",
              "anchor": "MaxJoinStateSize"
            }
          ],
          "decl": "const MaxJoinStateSize = 16 << 20",
          "doc": "MaxJoinStateSize is the largest snapshot, as returned by SimState.Save, that a host sends a joining peer. AddPeer refuses a peer with ErrPayloadTooLarge while the state is larger, and a join whose state has grown past it by the join tick is turned into a leave at that tick.\n",
          "file": "pkg/net/membership.go",
          "line": 29
        },
        {
          "idents": [
            {
              "name": "MaxRelayPayload",
              "anchor": "MaxRelayPayload"
            }
          ],
          "decl": "const (\n\n\t// MaxRelayPayload is the largest payload RelayTransport.Send accepts: what fits in one UDP datagram after the relay's and the transport's headers.\n\tMaxRelayPayload = 64000\n)",
          "doc": "Relay wire format, version 1. Every relay frame travels as one ChannelUnreliable packet of the inner client or server transport, because reliability is end to end between the two RelayTransports, not per hop:\n\n\tclient to relay: version(1) to(4) body\n\trelay to client: version(1) from(4) body\n\nA frame from the relay itself has from 0 and carries a control message:\n\n\tmembers: version(1) 0(4) relayCtlMembers(1) epoch(4) count(2) peer(4)...\n\nThe epoch counts the session's membership changes. The relay sends the membership again every second with the same epoch, and a client compares epochs as serial numbers, so the counter may wrap.\n\nA body between two peers is one of:\n\n\tunreliable: relayBodyUnreliable(1) seq(4) payload\n\treliable:   relayBodyReliable(1) seq(4) payload\n\tack:        relayBodyAck(1) next(4) mask(8)\n\nAn ack says every reliable seq below next arrived, and bit i of mask says next+1+i arrived too, so the sender retransmits only what is missing.\n",
          "file": "pkg/net/relay.go",
          "line": 29
        },
        {
          "idents": [
            {
              "name": "MaxTokenSize",
              "anchor": "MaxTokenSize"
            }
          ],
          "decl": "const MaxTokenSize = 4096",
          "doc": "MaxTokenSize is the largest credential a client may present in the handshake.\n",
          "file": "pkg/net/session.go",
          "line": 102
        },
        {
          "idents": [
            {
              "name": "ReplicationVersion",
              "anchor": "ReplicationVersion"
            }
          ],
          "decl": "const ReplicationVersion = 2",
          "doc": "ReplicationVersion is the version of the replication wire protocol that ServerWorld and ClientWorld speak. Version 2 added the replication epoch; peers of other versions cannot exchange snapshots and are refused with ErrReplicationVersion.\n",
          "file": "pkg/net/replication.go",
          "line": 79
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNotHost",
              "anchor": "ErrNotHost"
            },
            {
              "name": "ErrHostLeave",
              "anchor": "ErrHostLeave"
            },
            {
              "name": "ErrPeerRejoin",
              "anchor": "ErrPeerRejoin"
            },
            {
              "name": "ErrSessionBacklog",
              "anchor": "ErrSessionBacklog"
            }
          ],
          "decl": "var (\n\t// ErrNotHost is returned by AddPeer and RemovePeer on a peer that is not the match's host: only the host changes who takes part.\n\tErrNotHost = errors.New(\"net: only the match's host changes its peers\")\n\t// ErrHostLeave is returned by RemovePeer for the host itself. The host cannot leave a running match; end the match instead.\n\tErrHostLeave = errors.New(\"net: the host cannot leave the match\")\n\t// ErrPeerRejoin is returned by AddPeer for a peer that has left the match, however long ago: a peer that comes back joins under a new ID, as a relay or server assigns one.\n\tErrPeerRejoin = errors.New(\"net: a peer that left cannot rejoin under the same ID\")\n\t// ErrSessionBacklog is returned once per peer, wrapped with the peer's ID, by the next LockstepSession.SubmitInput or RollbackSession.Step or Poll after more messages wait for that remote peer than a session keeps for a peer the transport cannot reach (4096). Messages to that peer are dropped from then on, so it has missed part of the match and cannot go on in it: the host removes it, or the match ends.\n\tErrSessionBacklog = errors.New(\"net: too many messages wait for an unreachable peer\")\n)",
          "doc": "",
          "file": "pkg/net/membership.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "ErrRejected",
              "anchor": "ErrRejected"
            },
            {
              "name": "ErrDisconnected",
              "anchor": "ErrDisconnected"
            },
            {
              "name": "ErrTokenTooLarge",
              "anchor": "ErrTokenTooLarge"
            }
          ],
          "decl": "var (\n\t// ErrRejected matches (with errors.Is) the *RejectError a client gets when the server refuses its handshake.\n\tErrRejected = errors.New(\"net: connection rejected\")\n\t// ErrDisconnected is returned when sending on a client whose connection dropped, or to a server peer inside its grace period.\n\tErrDisconnected = errors.New(\"net: peer disconnected\")\n\t// ErrTokenTooLarge is returned when a token exceeds MaxTokenSize.\n\tErrTokenTooLarge = errors.New(\"net: token too large\")\n)",
          "doc": "",
          "file": "pkg/net/session.go",
          "line": 104
        },
        {
          "idents": [
            {
              "name": "ErrClosed",
              "anchor": "ErrClosed"
            },
            {
              "name": "ErrUnknownPeer",
              "anchor": "ErrUnknownPeer"
            },
            {
              "name": "ErrInvalidPacket",
              "anchor": "ErrInvalidPacket"
            },
            {
              "name": "ErrPayloadTooLarge",
              "anchor": "ErrPayloadTooLarge"
            },
            {
              "name": "ErrUnsupportedChannel",
              "anchor": "ErrUnsupportedChannel"
            },
            {
              "name": "ErrReceiveFailed",
              "anchor": "ErrReceiveFailed"
            }
          ],
          "decl": "var (\n\t// ErrClosed is returned when operating on a closed transport.\n\tErrClosed = errors.New(\"net: transport closed\")\n\t// ErrUnknownPeer is returned when sending to a peer that is not connected.\n\tErrUnknownPeer = errors.New(\"net: unknown peer\")\n\t// ErrInvalidPacket is returned when a wire frame is malformed or truncated.\n\tErrInvalidPacket = errors.New(\"net: invalid packet\")\n\t// ErrPayloadTooLarge is returned when a payload exceeds transport limits.\n\tErrPayloadTooLarge = errors.New(\"net: payload too large\")\n\t// ErrUnsupportedChannel is returned when a transport cannot provide the delivery guarantees the requested channel asks for.\n\tErrUnsupportedChannel = errors.New(\"net: channel not supported by transport\")\n\t// ErrReceiveFailed is returned, wrapping the socket's error, by a transport whose socket failed so that it can no longer receive.\n\tErrReceiveFailed = errors.New(\"net: receive failed\")\n)",
          "doc": "",
          "file": "pkg/net/transport.go",
          "line": 67
        },
        {
          "idents": [
            {
              "name": "ErrRelayBacklog",
              "anchor": "ErrRelayBacklog"
            }
          ],
          "decl": "var ErrRelayBacklog = errors.New(\"net: relay backlog full\")",
          "doc": "ErrRelayBacklog is returned by RelayTransport.Send when a peer has not acknowledged the last 1024 reliable messages sent to it, so the sender stops instead of buffering without bound.\n",
          "file": "pkg/net/relay.go",
          "line": 60
        },
        {
          "idents": [
            {
              "name": "ErrReplicationVersion",
              "anchor": "ErrReplicationVersion"
            }
          ],
          "decl": "var ErrReplicationVersion = errors.New(\"net: unsupported replication protocol version\")",
          "doc": "ErrReplicationVersion reports a replication message from a peer that speaks another version of the replication wire protocol than ReplicationVersion, such as a client or server built with an older release of this package. ClientWorld.Err and ServerWorld.PeerErr return it wrapped, with both versions.\n",
          "file": "pkg/net/replication.go",
          "line": 82
        },
        {
          "idents": [
            {
              "name": "ErrRollbackWindowExceeded",
              "anchor": "ErrRollbackWindowExceeded"
            }
          ],
          "decl": "var ErrRollbackWindowExceeded = errors.New(\"net: rollback window exceeded\")",
          "doc": "ErrRollbackWindowExceeded is returned when a late remote input arrives for a\ntick older than the retained MaxRollback snapshot window.\n",
          "file": "pkg/net/rollback.go",
          "line": 12
        }
      ],
      "funcs": [
        {
          "name": "ChecksumBytes",
          "anchor": "ChecksumBytes",
          "decl": "func ChecksumBytes(data []byte) uint64",
          "doc": "ChecksumBytes computes a deterministic 64-bit FNV-1a checksum over data.\n",
          "file": "pkg/net/rollback.go",
          "line": 49
        }
      ],
      "types": [
        {
          "name": "Auth",
          "anchor": "Auth",
          "decl": "type Auth struct {\n\t// Verify checks the credential a client presented and the ID the server is about to assign it. A non-nil error rejects the client: it never reaches Recv, Peers or NextEvent, and the error's text is sent back as the reason. Nil accepts every client.\n\t//\n\t// The WebSocket server calls Verify on the client's own goroutine. The UDP server calls it on its receive goroutine, so a slow Verify delays every UDP peer's packets; check a signed token locally rather than calling a remote service there.\n\tVerify func(peer PeerID, token []byte) error\n\t// GracePeriod is how long a dropped peer keeps its ID and session. A client that reconnects within it resumes with the same ID and NextEvent reports PeerResumed; once it passes, NextEvent reports PeerLeft. Zero reports PeerLeft as soon as the connection drops.\n\tGracePeriod time.Duration\n\t// IdleTimeout is how long a peer may stay silent before the server counts it as dropped; 10 seconds when zero, and a value below 3 seconds is raised to 3 seconds. UDP clients ping every second while idle, so a gap of up to 2 seconds is normal. A WebSocket server pings each client every third of IdleTimeout and drops one that sends no frame, not even the pong, for IdleTimeout, so a client whose network vanished without closing the TCP connection does not keep its session forever. The WebSocket timeout runs on the wall clock, not on Now.\n\tIdleTimeout time.Duration\n\t// MaxPeers is the most sessions the server holds at once, counting peers inside their grace period and handshakes waiting on Verify; 1024 when zero. A client past it is rejected with the reason \"server full\", so a flood of handshakes cannot grow the server without bound.\n\tMaxPeers int\n\t// Now is the clock for grace periods and idle timeouts; nil uses time.Now.\n\tNow func() time.Time\n}",
          "doc": "Auth configures the connection handshake that ListenWebSocket and ListenUDPServer run before a peer may send or receive game packets.\n\nThe zero value accepts every client, assigns its ID and treats a dropped connection as a leave. A server reachable from the internet should set Verify: without it anyone may join, up to MaxPeers.\n",
          "file": "pkg/net/session.go",
          "line": 15,
          "members": [
            {
              "name": "Verify",
              "anchor": "Auth.Verify",
              "kind": "field",
              "doc": "Verify checks the credential a client presented and the ID the server is about to assign it. A non-nil error rejects the client: it never reaches Recv, Peers or NextEvent, and the error's text is sent back as the reason. Nil accepts every client.\n\nThe WebSocket server calls Verify on the client's own goroutine. The UDP server calls it on its receive goroutine, so a slow Verify delays every UDP peer's packets; check a signed token locally rather than calling a remote service there."
            },
            {
              "name": "GracePeriod",
              "anchor": "Auth.GracePeriod",
              "kind": "field",
              "doc": "GracePeriod is how long a dropped peer keeps its ID and session. A client that reconnects within it resumes with the same ID and NextEvent reports PeerResumed; once it passes, NextEvent reports PeerLeft. Zero reports PeerLeft as soon as the connection drops."
            },
            {
              "name": "IdleTimeout",
              "anchor": "Auth.IdleTimeout",
              "kind": "field",
              "doc": "IdleTimeout is how long a peer may stay silent before the server counts it as dropped; 10 seconds when zero, and a value below 3 seconds is raised to 3 seconds. UDP clients ping every second while idle, so a gap of up to 2 seconds is normal. A WebSocket server pings each client every third of IdleTimeout and drops one that sends no frame, not even the pong, for IdleTimeout, so a client whose network vanished without closing the TCP connection does not keep its session forever. The WebSocket timeout runs on the wall clock, not on Now."
            },
            {
              "name": "MaxPeers",
              "anchor": "Auth.MaxPeers",
              "kind": "field",
              "doc": "MaxPeers is the most sessions the server holds at once, counting peers inside their grace period and handshakes waiting on Verify; 1024 when zero. A client past it is rejected with the reason \"server full\", so a flood of handshakes cannot grow the server without bound."
            },
            {
              "name": "Now",
              "anchor": "Auth.Now",
              "kind": "field",
              "doc": "Now is the clock for grace periods and idle timeouts; nil uses time.Now."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Channel",
          "anchor": "Channel",
          "decl": "type Channel uint8",
          "doc": "Channel selects delivery semantics for a packet.\n",
          "file": "pkg/net/transport.go",
          "line": 17,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ChannelReliableOrdered",
                  "anchor": "ChannelReliableOrdered"
                },
                {
                  "name": "ChannelUnreliable",
                  "anchor": "ChannelUnreliable"
                }
              ],
              "decl": "const (\n\t// ChannelReliableOrdered guarantees delivery in send order. A transport that cannot provide that guarantee refuses it with ErrUnsupportedChannel rather than silently dropping packets; UDP has no retransmission, so lockstep and rollback need WebSocket, loopback or a RelayTransport, which retransmits end to end over either protocol.\n\tChannelReliableOrdered Channel = 0\n\t// ChannelUnreliable delivers best-effort packets that may be dropped or reordered.\n\tChannelUnreliable Channel = 1\n)",
              "doc": "",
              "file": "pkg/net/transport.go",
              "line": 19
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Channel.String",
              "recv": "Channel",
              "decl": "func (c Channel) String() string",
              "doc": "String returns a human-readable channel name.\n",
              "file": "pkg/net/transport.go",
              "line": 27
            }
          ]
        },
        {
          "name": "ClientWorld",
          "anchor": "ClientWorld",
          "decl": "type ClientWorld struct {\n\n\t// OnSpawn is invoked when a new entity first appears in an authoritative snapshot.\n\tOnSpawn func(EntityState)\n\t// OnDespawn is invoked when an entity disappears from an authoritative snapshot.\n\tOnDespawn func(EntityID)\n\t// contains filtered or unexported fields\n}",
          "doc": "ClientWorld receives authoritative snapshots from a ServerWorld, maintains a timed snapshot ring buffer for smooth interpolation, fires spawn/despawn hooks, and supports client-side prediction with automatic server reconciliation.\n\nA ClientWorld follows the server's replication epoch. A complete full snapshot of a new epoch means the server restarted: the client forgets every snapshot and prediction of the old epoch as Reset does, reporting each entity it knew through OnDespawn, and continues from the new one without the game calling Reset. A delta of a new epoch only makes the client ask for a full snapshot of it. Late snapshots of an epoch the client has left are ignored, unless that epoch sends 32 snapshots in a row with none of the current epoch between them: then it is the live one, and the client follows it again.\n",
          "file": "pkg/net/replication.go",
          "line": 807,
          "members": [
            {
              "name": "OnSpawn",
              "anchor": "ClientWorld.OnSpawn",
              "kind": "field",
              "doc": "OnSpawn is invoked when a new entity first appears in an authoritative snapshot."
            },
            {
              "name": "OnDespawn",
              "anchor": "ClientWorld.OnDespawn",
              "kind": "field",
              "doc": "OnDespawn is invoked when an entity disappears from an authoritative snapshot."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewClientWorld",
              "anchor": "NewClientWorld",
              "decl": "func NewClientWorld(transport Transport, serverID PeerID) *ClientWorld",
              "doc": "NewClientWorld creates a replication client connected to serverID via transport.\n",
              "file": "pkg/net/replication.go",
              "line": 859
            }
          ],
          "methods": [
            {
              "name": "Entity",
              "anchor": "ClientWorld.Entity",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) Entity(id EntityID) (EntityState, bool)",
              "doc": "Entity returns the latest authoritative state of id.\n",
              "file": "pkg/net/replication.go",
              "line": 949
            },
            {
              "name": "Epoch",
              "anchor": "ClientWorld.Epoch",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) Epoch() (uint32, bool)",
              "doc": "Epoch returns the server's replication epoch the client's snapshots belong to, and false before the first snapshot and after Reset.\n",
              "file": "pkg/net/replication.go",
              "line": 875
            },
            {
              "name": "Err",
              "anchor": "ClientWorld.Err",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) Err() error",
              "doc": "Err returns why the server's last replication message could not be used, an error wrapping ErrReplicationVersion when the server speaks another version of the replication protocol, or nil. A game can show it and stop waiting for a world that will never arrive. It clears when a snapshot applies and on Reset.\n",
              "file": "pkg/net/replication.go",
              "line": 880
            },
            {
              "name": "Interpolate",
              "anchor": "ClientWorld.Interpolate",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) Interpolate(renderTick float64) []EntityState",
              "doc": "Interpolate returns a sorted slice of entities interpolated at renderTick\nacross the buffered authoritative snapshots (smoothly lerping X, Y, VX, VY,\nand shortest-arc Rotation).\n\nrenderTick is read relative to the latest snapshot's tick, modulo 2^32, so a render time computed from uint32 ticks keeps working across a tick counter wraparound.\n",
              "file": "pkg/net/replication.go",
              "line": 1370
            },
            {
              "name": "LastReconcileError",
              "anchor": "ClientWorld.LastReconcileError",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) LastReconcileError() float32",
              "doc": "LastReconcileError returns the Euclidean position delta between the predicted\nstate and reconciled state from the most recent reconciliation.\n",
              "file": "pkg/net/replication.go",
              "line": 1330
            },
            {
              "name": "LatestTick",
              "anchor": "ClientWorld.LatestTick",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) LatestTick() (uint32, bool)",
              "doc": "LatestTick returns the highest authoritative snapshot tick received so far.\n",
              "file": "pkg/net/replication.go",
              "line": 870
            },
            {
              "name": "PendingPredictions",
              "anchor": "ClientWorld.PendingPredictions",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) PendingPredictions(id EntityID) int",
              "doc": "PendingPredictions returns the number of unacknowledged predicted inputs buffered for id.\n",
              "file": "pkg/net/replication.go",
              "line": 1316
            },
            {
              "name": "Poll",
              "anchor": "ClientWorld.Poll",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) Poll() int",
              "doc": "Poll drains all pending snapshots from Transport, updates the ring buffer, triggers OnSpawn/OnDespawn callbacks, sends acknowledgments back to the server, and reconciles locally predicted entities. Returns the number of snapshots applied.\n\nA complete full snapshot of a new epoch makes the client follow the server into it, reporting every entity of the old epoch through OnDespawn first; a delta of a new epoch makes it ask the server for a full snapshot. Snapshots of epochs the client has left are ignored, as described on ClientWorld. A message of another version of the replication protocol sets Err, and the next snapshot that applies clears it.\n",
              "file": "pkg/net/replication.go",
              "line": 964
            },
            {
              "name": "Predict",
              "anchor": "ClientWorld.Predict",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) Predict(localEntity EntityID, input any, apply func(*EntityState, any))",
              "doc": "Predict applies a local input immediately to localEntity and buffers it for\nreconciliation when authoritative snapshots arrive.\n",
              "file": "pkg/net/replication.go",
              "line": 1274
            },
            {
              "name": "PredictedState",
              "anchor": "ClientWorld.PredictedState",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) PredictedState(id EntityID) (EntityState, bool)",
              "doc": "PredictedState returns the locally predicted state for id if active,\nfalling back to the latest authoritative state.\n",
              "file": "pkg/net/replication.go",
              "line": 1308
            },
            {
              "name": "Reconciliations",
              "anchor": "ClientWorld.Reconciliations",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) Reconciliations() int",
              "doc": "Reconciliations returns the total number of client-side prediction reconciliations performed.\n",
              "file": "pkg/net/replication.go",
              "line": 1324
            },
            {
              "name": "Reset",
              "anchor": "ClientWorld.Reset",
              "recv": "*ClientWorld",
              "decl": "func (c *ClientWorld) Reset()",
              "doc": "Reset forgets every snapshot, partial snapshot and prediction and the server's epoch, as when the client joins a new match, and reports every entity the client knew through OnDespawn, in EntityID order. A restarted ServerWorld sends a new epoch, which the client follows without a Reset; a server that starts its tick count over in the same epoch, without SetEpoch, needs one, because snapshot ticks are compared in serial-number order and the client would drop every new snapshot as stale until the new ticks pass the old ones. The epochs the client has left stay ignored, as long as they send no more than a late burst. Reconciliations and LastReconcileError keep counting.\n",
              "file": "pkg/net/replication.go",
              "line": 885
            }
          ]
        },
        {
          "name": "ComponentState",
          "anchor": "ComponentState",
          "decl": "type ComponentState struct {\n\tKind     uint16\n\tX        float32\n\tY        float32\n\tVX       float32\n\tVY       float32\n\tRotation float32\n\tFlags    uint32\n\tProps    []byte\n}",
          "doc": "ComponentState holds the replicated transform, velocity, flags, and custom\nproperties of an entity.\n",
          "file": "pkg/net/replication.go",
          "line": 18,
          "members": [
            {
              "name": "Kind",
              "anchor": "ComponentState.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "ComponentState.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ComponentState.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VX",
              "anchor": "ComponentState.VX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VY",
              "anchor": "ComponentState.VY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "ComponentState.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "ComponentState.Flags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Props",
              "anchor": "ComponentState.Props",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "ComponentState.Clone",
              "recv": "ComponentState",
              "decl": "func (c ComponentState) Clone() ComponentState",
              "doc": "Clone returns a deep copy of ComponentState (duplicating Props).\n",
              "file": "pkg/net/replication.go",
              "line": 30
            }
          ]
        },
        {
          "name": "ConnState",
          "anchor": "ConnState",
          "decl": "type ConnState uint8",
          "doc": "ConnState is a client transport's connection state.\n",
          "file": "pkg/net/session.go",
          "line": 72,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ConnConnecting",
                  "anchor": "ConnConnecting"
                },
                {
                  "name": "ConnOpen",
                  "anchor": "ConnOpen"
                },
                {
                  "name": "ConnDisconnected",
                  "anchor": "ConnDisconnected"
                },
                {
                  "name": "ConnClosed",
                  "anchor": "ConnClosed"
                }
              ],
              "decl": "const (\n\t// ConnConnecting is a client whose handshake has not finished.\n\tConnConnecting ConnState = iota\n\t// ConnOpen is a client the server accepted.\n\tConnOpen\n\t// ConnDisconnected is a client whose connection dropped or was rejected; Reconnect may resume it.\n\tConnDisconnected\n\t// ConnClosed is a client closed with Close.\n\tConnClosed\n)",
              "doc": "",
              "file": "pkg/net/session.go",
              "line": 74
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ConnState.String",
              "recv": "ConnState",
              "decl": "func (s ConnState) String() string",
              "doc": "String returns the state's name.\n",
              "file": "pkg/net/session.go",
              "line": 86
            }
          ]
        },
        {
          "name": "DesyncEvent",
          "anchor": "DesyncEvent",
          "decl": "type DesyncEvent struct {\n\tTick           uint32\n\tLocalPeer      PeerID\n\tRemotePeer     PeerID\n\tLocalChecksum  uint64\n\tRemoteChecksum uint64\n}",
          "doc": "DesyncEvent describes a detected state checksum divergence between peers.\n",
          "file": "pkg/net/rollback.go",
          "line": 40,
          "members": [
            {
              "name": "Tick",
              "anchor": "DesyncEvent.Tick",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalPeer",
              "anchor": "DesyncEvent.LocalPeer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemotePeer",
              "anchor": "DesyncEvent.RemotePeer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalChecksum",
              "anchor": "DesyncEvent.LocalChecksum",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RemoteChecksum",
              "anchor": "DesyncEvent.RemoteChecksum",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EntityID",
          "anchor": "EntityID",
          "decl": "type EntityID uint32",
          "doc": "EntityID uniquely identifies a replicated entity in a ServerWorld / ClientWorld.\n",
          "file": "pkg/net/replication.go",
          "line": 14,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EntityState",
          "anchor": "EntityState",
          "decl": "type EntityState struct {\n\tID EntityID\n\tComponentState\n}",
          "doc": "EntityState pairs an EntityID with its replicated ComponentState.\n",
          "file": "pkg/net/replication.go",
          "line": 42,
          "members": [
            {
              "name": "ID",
              "anchor": "EntityState.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ComponentState",
              "anchor": "EntityState.ComponentState",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "EntityState.Clone",
              "recv": "EntityState",
              "decl": "func (e EntityState) Clone() EntityState",
              "doc": "Clone returns a deep copy of EntityState.\n",
              "file": "pkg/net/replication.go",
              "line": 48
            }
          ]
        },
        {
          "name": "InboxLimits",
          "anchor": "InboxLimits",
          "decl": "type InboxLimits struct {\n\t// Unreliable is the most ChannelUnreliable packets the inbox holds from one peer. Zero uses DefaultUnreliableInbox; a negative value removes the cap.\n\tUnreliable int\n\t// Reliable is the most ChannelReliableOrdered packets a WebSocketServer's or RelayTransport's inbox holds from one peer. Zero uses DefaultReliableInbox; a negative value removes the cap. The other transports ignore it.\n\tReliable int\n\t// ReliableWarning is the ChannelReliableOrdered backlog, across all peers, that raises a warning: the warning counts once when the backlog grows past it, and counts again only after the backlog has fallen to half of it, so a queue hovering at the threshold does not raise one warning per packet. Zero uses DefaultReliableInboxWarning; a negative value turns the warning off.\n\tReliableWarning int\n}",
          "doc": "InboxLimits bounds the packets a transport keeps until Recv takes them. Every transport in this package accepts it through SetInboxLimits, and LoopbackConfig and RelayTransportConfig carry it too.\n\nThe unreliable channel is capped per peer: when a ChannelUnreliable packet arrives from a peer that already has Unreliable packets queued, that peer's oldest queued unreliable packet is dropped to make room, so a consumer that falls behind keeps the newest state rather than the stalest, a peer that floods the inbox evicts only its own packets, and InboxStats.UnreliableDropped counts the loss.\n\nThe reliable channel is never trimmed, because dropping a packet would break ChannelReliableOrdered. A transport that receives reliable packets from peers it cannot trust caps them per peer at Reliable instead and refuses the packet that goes past it, counting it in InboxStats.ReliableRefused: WebSocketServer then ends that client's session, as if it had left, so the packets it did deliver stay in order, and RelayTransport leaves the message unacknowledged, so the sending peer resends it once Recv has made room. The other transports receive reliable packets only from their server or from the same process and keep them all. Every transport counts a warning in InboxStats.ReliableWarnings when its whole reliable backlog passes ReliableWarning.\n",
          "file": "pkg/net/transport.go",
          "line": 123,
          "members": [
            {
              "name": "Unreliable",
              "anchor": "InboxLimits.Unreliable",
              "kind": "field",
              "doc": "Unreliable is the most ChannelUnreliable packets the inbox holds from one peer. Zero uses DefaultUnreliableInbox; a negative value removes the cap."
            },
            {
              "name": "Reliable",
              "anchor": "InboxLimits.Reliable",
              "kind": "field",
              "doc": "Reliable is the most ChannelReliableOrdered packets a WebSocketServer's or RelayTransport's inbox holds from one peer. Zero uses DefaultReliableInbox; a negative value removes the cap. The other transports ignore it."
            },
            {
              "name": "ReliableWarning",
              "anchor": "InboxLimits.ReliableWarning",
              "kind": "field",
              "doc": "ReliableWarning is the ChannelReliableOrdered backlog, across all peers, that raises a warning: the warning counts once when the backlog grows past it, and counts again only after the backlog has fallen to half of it, so a queue hovering at the threshold does not raise one warning per packet. Zero uses DefaultReliableInboxWarning; a negative value turns the warning off."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InboxReporter",
          "anchor": "InboxReporter",
          "decl": "type InboxReporter interface {\n\tSetInboxLimits(InboxLimits)\n\tInboxStats() InboxStats\n}",
          "doc": "InboxReporter is implemented by every transport in this package: LoopbackTransport, WebSocketTransport, WebSocketServer, UDPTransport, UDPServer, UDPClient and RelayTransport. SetInboxLimits changes the inbox's limits at any time; lowering the unreliable cap below what a peer has queued drops that peer's oldest unreliable packets at once and counts them, and lowering the reliable cap refuses only the packets that arrive afterwards. InboxStats reads the inbox's counters.\n",
          "file": "pkg/net/transport.go",
          "line": 171,
          "members": [
            {
              "name": "SetInboxLimits",
              "anchor": "InboxReporter.SetInboxLimits",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "InboxStats",
              "anchor": "InboxReporter.InboxStats",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InboxStats",
          "anchor": "InboxStats",
          "decl": "type InboxStats struct {\n\t// Unreliable is the number of ChannelUnreliable packets waiting for Recv.\n\tUnreliable int\n\t// Reliable is the number of ChannelReliableOrdered packets waiting for Recv.\n\tReliable int\n\t// UnreliableDropped counts the unreliable packets dropped because their peer already had InboxLimits.Unreliable packets queued when a newer one arrived.\n\tUnreliableDropped uint64\n\t// ReliableRefused counts the reliable packets a WebSocketServer or RelayTransport refused because their peer already had InboxLimits.Reliable packets queued.\n\tReliableRefused uint64\n\t// ReliableWarnings counts the times the reliable backlog grew past InboxLimits.ReliableWarning: once per crossing, not once per packet.\n\tReliableWarnings uint64\n\t// ReliableBacklog is true from the moment the reliable backlog passes InboxLimits.ReliableWarning until it falls to half of it.\n\tReliableBacklog bool\n}",
          "doc": "InboxStats reports a transport's inbox: what is queued and what the limits did. The counters only grow, so a game or a debug overlay that polls InboxStats every frame reports a warning or a loss when a counter differs from the previous frame's.\n",
          "file": "pkg/net/transport.go",
          "line": 155,
          "members": [
            {
              "name": "Unreliable",
              "anchor": "InboxStats.Unreliable",
              "kind": "field",
              "doc": "Unreliable is the number of ChannelUnreliable packets waiting for Recv."
            },
            {
              "name": "Reliable",
              "anchor": "InboxStats.Reliable",
              "kind": "field",
              "doc": "Reliable is the number of ChannelReliableOrdered packets waiting for Recv."
            },
            {
              "name": "UnreliableDropped",
              "anchor": "InboxStats.UnreliableDropped",
              "kind": "field",
              "doc": "UnreliableDropped counts the unreliable packets dropped because their peer already had InboxLimits.Unreliable packets queued when a newer one arrived."
            },
            {
              "name": "ReliableRefused",
              "anchor": "InboxStats.ReliableRefused",
              "kind": "field",
              "doc": "ReliableRefused counts the reliable packets a WebSocketServer or RelayTransport refused because their peer already had InboxLimits.Reliable packets queued."
            },
            {
              "name": "ReliableWarnings",
              "anchor": "InboxStats.ReliableWarnings",
              "kind": "field",
              "doc": "ReliableWarnings counts the times the reliable backlog grew past InboxLimits.ReliableWarning: once per crossing, not once per packet."
            },
            {
              "name": "ReliableBacklog",
              "anchor": "InboxStats.ReliableBacklog",
              "kind": "field",
              "doc": "ReliableBacklog is true from the moment the reliable backlog passes InboxLimits.ReliableWarning until it falls to half of it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InputFrame",
          "anchor": "InputFrame",
          "decl": "type InputFrame struct {\n\tTick uint32\n\tPeer PeerID\n\tBits uint64\n\tAxes [2]int16\n}",
          "doc": "InputFrame is a deterministic per-tick player input sample.\n",
          "file": "pkg/net/rollback.go",
          "line": 15,
          "members": [
            {
              "name": "Tick",
              "anchor": "InputFrame.Tick",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Peer",
              "anchor": "InputFrame.Peer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bits",
              "anchor": "InputFrame.Bits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Axes",
              "anchor": "InputFrame.Axes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LockstepConfig",
          "anchor": "LockstepConfig",
          "decl": "type LockstepConfig struct {\n\tTransport        Transport\n\tSim              SimState\n\tPeers            []PeerID\n\tChecksumInterval int\n\tOnDesync         func(DesyncEvent)\n\t// Host is the peer that admits and removes peers while the match runs, with AddPeer and RemovePeer. Zero means the lowest ID of Peers, leaving out the local peer when Join is set; a joining session that finds no other peer there, or that names itself, takes the lowest other ID the transport reports on each Poll until its join state arrives. Set it explicitly when joining over a relay, whose peer list may still be empty or include other newcomers. Every peer of a match must name the same host, and the host stays for the whole match.\n\tHost PeerID\n\t// Join starts the session as a peer joining a match already running. It takes no part until the host's join state arrives with the tick it joins at, the peers and the simulation's state, which it loads into Sim; until then Step does nothing and Active reports false. Peers then only serves to find the host when Host is zero.\n\tJoin bool\n}",
          "doc": "LockstepConfig configures a strict deterministic LockstepSession.\n",
          "file": "pkg/net/rollback.go",
          "line": 156,
          "members": [
            {
              "name": "Transport",
              "anchor": "LockstepConfig.Transport",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sim",
              "anchor": "LockstepConfig.Sim",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Peers",
              "anchor": "LockstepConfig.Peers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChecksumInterval",
              "anchor": "LockstepConfig.ChecksumInterval",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnDesync",
              "anchor": "LockstepConfig.OnDesync",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Host",
              "anchor": "LockstepConfig.Host",
              "kind": "field",
              "doc": "Host is the peer that admits and removes peers while the match runs, with AddPeer and RemovePeer. Zero means the lowest ID of Peers, leaving out the local peer when Join is set; a joining session that finds no other peer there, or that names itself, takes the lowest other ID the transport reports on each Poll until its join state arrives. Set it explicitly when joining over a relay, whose peer list may still be empty or include other newcomers. Every peer of a match must name the same host, and the host stays for the whole match."
            },
            {
              "name": "Join",
              "anchor": "LockstepConfig.Join",
              "kind": "field",
              "doc": "Join starts the session as a peer joining a match already running. It takes no part until the host's join state arrives with the tick it joins at, the peers and the simulation's state, which it loads into Sim; until then Step does nothing and Active reports false. Peers then only serves to find the host when Host is zero."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LockstepSession",
          "anchor": "LockstepSession",
          "decl": "type LockstepSession struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "LockstepSession advances a deterministic simulation tick only once every\nparticipating peer's input for that tick has arrived, exchanging periodic\nstate checksums to detect desyncs.\n\nPeers may join and leave while the match runs: the host admits one with AddPeer and removes one with RemovePeer, and every peer applies the change at the same tick.\n",
          "file": "pkg/net/rollback.go",
          "line": 173,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLockstepSession",
              "anchor": "NewLockstepSession",
              "decl": "func NewLockstepSession(cfg LockstepConfig) *LockstepSession",
              "doc": "NewLockstepSession creates a strict lockstep session.\n",
              "file": "pkg/net/rollback.go",
              "line": 190
            }
          ],
          "methods": [
            {
              "name": "Active",
              "anchor": "LockstepSession.Active",
              "recv": "*LockstepSession",
              "decl": "func (s *LockstepSession) Active() bool",
              "doc": "Active reports whether the local peer takes part in the current tick: false while a joining peer waits for its join state, and from the tick the host removed the local peer at.\n",
              "file": "pkg/net/rollback.go",
              "line": 219
            },
            {
              "name": "AddPeer",
              "anchor": "LockstepSession.AddPeer",
              "recv": "*LockstepSession",
              "decl": "func (s *LockstepSession) AddPeer(id PeerID) (uint32, error)",
              "doc": "AddPeer admits a peer to the running match and returns the tick it joins at. Only the host may call it, typically when its transport reports the peer (PeerJoined, or a new member in a RelayTransport's Peers). The tick is the host's next own input tick, so no peer has run it yet; the other peers learn of the change before the host's input for that tick, and inputs before it are not expected from the new peer. Once the host's simulation stands at the start of the join tick, Step sends the new peer the state, which must be no larger than MaxJoinStateSize, the tick and the peers.\n\nAdding a peer that already takes part returns its join tick. It returns ErrNotHost on any other peer, ErrPeerRejoin for a peer that has left, ErrUnknownPeer for ID 0 and ErrPayloadTooLarge when the state is larger than MaxJoinStateSize.\n",
              "file": "pkg/net/rollback.go",
              "line": 255
            },
            {
              "name": "Desyncs",
              "anchor": "LockstepSession.Desyncs",
              "recv": "*LockstepSession",
              "decl": "func (s *LockstepSession) Desyncs() []DesyncEvent",
              "doc": "Desyncs returns a copy of all DesyncEvents observed so far.\n",
              "file": "pkg/net/rollback.go",
              "line": 224
            },
            {
              "name": "Members",
              "anchor": "LockstepSession.Members",
              "recv": "*LockstepSession",
              "decl": "func (s *LockstepSession) Members() []PeerID",
              "doc": "Members returns the sorted IDs of the peers taking part in the current tick; it is empty while a joining peer waits for its join state.\n",
              "file": "pkg/net/rollback.go",
              "line": 214
            },
            {
              "name": "Poll",
              "anchor": "LockstepSession.Poll",
              "recv": "*LockstepSession",
              "decl": "func (s *LockstepSession) Poll()",
              "doc": "Poll drains all pending input, checksum and membership messages from the Transport, first sending again the messages kept for peers the transport could not reach.\n",
              "file": "pkg/net/rollback.go",
              "line": 297
            },
            {
              "name": "RemovePeer",
              "anchor": "LockstepSession.RemovePeer",
              "recv": "*LockstepSession",
              "decl": "func (s *LockstepSession) RemovePeer(id PeerID) (uint32, error)",
              "doc": "RemovePeer removes a peer from the running match and returns the tick from which no peer waits for it. Only the host may call it, typically once its transport reports the peer gone (PeerLeft, or a RelayTransport's Peers no longer listing it). The tick is the host's next own input tick or the peer's join tick, whichever is later. The change carries the inputs the host holds from the peer for the ticks before it and a zero input for each tick the host never received, so every peer runs those ticks alike; a peer still sending when removed may have reached another peer with an input the host never saw, so remove a peer after it has stopped sending.\n\nRemoving a peer that is already leaving, or that left, returns its leave tick. It returns ErrNotHost on any other peer, ErrHostLeave for the host and ErrUnknownPeer for a peer not in the match.\n",
              "file": "pkg/net/rollback.go",
              "line": 273
            },
            {
              "name": "Step",
              "anchor": "LockstepSession.Step",
              "recv": "*LockstepSession",
              "decl": "func (s *LockstepSession) Step() bool",
              "doc": "Step polls incoming packets and advances the simulation by one tick if every\npeer's input for the current tick is present. Returns true when a tick executed.\n",
              "file": "pkg/net/rollback.go",
              "line": 349
            },
            {
              "name": "SubmitInput",
              "anchor": "LockstepSession.SubmitInput",
              "recv": "*LockstepSession",
              "decl": "func (s *LockstepSession) SubmitInput(in InputFrame) error",
              "doc": "SubmitInput records the local peer's input for in.Tick and sends it to every other peer taking part in that tick. An input for a tick already run or more than 256 ticks ahead, or for a tick the local peer takes no part in, is ignored, as is any input once the host has removed the local peer: the host's leave change carries the inputs every peer uses. A send the transport cannot make right now, to a peer that is reconnecting or that a relay has not announced yet, is kept and retried by Poll; once too many wait for one peer, SubmitInput returns ErrSessionBacklog.\n",
              "file": "pkg/net/rollback.go",
              "line": 231
            },
            {
              "name": "Tick",
              "anchor": "LockstepSession.Tick",
              "recv": "*LockstepSession",
              "decl": "func (s *LockstepSession) Tick() uint32",
              "doc": "Tick returns the number of ticks simulated so far (also the next tick to execute). A joining peer's count starts at its join tick.\n",
              "file": "pkg/net/rollback.go",
              "line": 209
            }
          ]
        },
        {
          "name": "LoopbackConfig",
          "anchor": "LoopbackConfig",
          "decl": "type LoopbackConfig struct {\n\t// Latency is the base one-way packet transit delay.\n\tLatency time.Duration\n\t// Jitter adds a uniform random offset in [-Jitter, +Jitter] to Latency (clamped to >= 0).\n\tJitter time.Duration\n\t// LossRate is the drop probability in [0, 1] applied to ChannelUnreliable packets only.\n\t// ChannelReliableOrdered packets are never dropped and always arrive in send order.\n\tLossRate float64\n\t// Seed initializes the deterministic PRNG used for jitter and packet loss.\n\tSeed int64\n\t// Inbox bounds the inbox of each peer AddPeer adds from then on (see InboxLimits); the zero value uses the defaults. SetConfig leaves it unchanged; LoopbackTransport.SetInboxLimits changes one peer's.\n\tInbox InboxLimits\n}",
          "doc": "LoopbackConfig configures deterministic network simulation on a LoopbackHub.\n",
          "file": "pkg/net/loopback.go",
          "line": 11,
          "members": [
            {
              "name": "Latency",
              "anchor": "LoopbackConfig.Latency",
              "kind": "field",
              "doc": "Latency is the base one-way packet transit delay."
            },
            {
              "name": "Jitter",
              "anchor": "LoopbackConfig.Jitter",
              "kind": "field",
              "doc": "Jitter adds a uniform random offset in [-Jitter, +Jitter] to Latency (clamped to >= 0)."
            },
            {
              "name": "LossRate",
              "anchor": "LoopbackConfig.LossRate",
              "kind": "field",
              "doc": "LossRate is the drop probability in [0, 1] applied to ChannelUnreliable packets only.\nChannelReliableOrdered packets are never dropped and always arrive in send order."
            },
            {
              "name": "Seed",
              "anchor": "LoopbackConfig.Seed",
              "kind": "field",
              "doc": "Seed initializes the deterministic PRNG used for jitter and packet loss."
            },
            {
              "name": "Inbox",
              "anchor": "LoopbackConfig.Inbox",
              "kind": "field",
              "doc": "Inbox bounds the inbox of each peer AddPeer adds from then on (see InboxLimits); the zero value uses the defaults. SetConfig leaves it unchanged; LoopbackTransport.SetInboxLimits changes one peer's."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LoopbackHub",
          "anchor": "LoopbackHub",
          "decl": "type LoopbackHub struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "LoopbackHub simulates an in-memory packet network between LoopbackTransport peers\ndriven by a manual virtual clock via Advance.\n",
          "file": "pkg/net/loopback.go",
          "line": 39,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLoopbackHub",
              "anchor": "NewLoopbackHub",
              "decl": "func NewLoopbackHub(cfg LoopbackConfig) *LoopbackHub",
              "doc": "NewLoopbackHub creates a new deterministic in-memory network hub.\n",
              "file": "pkg/net/loopback.go",
              "line": 51
            }
          ],
          "methods": [
            {
              "name": "AddPeer",
              "anchor": "LoopbackHub.AddPeer",
              "recv": "*LoopbackHub",
              "decl": "func (h *LoopbackHub) AddPeer(id PeerID) *LoopbackTransport",
              "doc": "AddPeer registers a peer with the given ID and returns its Transport.\nIf a peer with the same ID already exists, it is replaced.\n",
              "file": "pkg/net/loopback.go",
              "line": 93
            },
            {
              "name": "Advance",
              "anchor": "LoopbackHub.Advance",
              "recv": "*LoopbackHub",
              "decl": "func (h *LoopbackHub) Advance(dt time.Duration)",
              "doc": "Advance moves the virtual clock forward by dt and delivers all in-flight packets\nwhose scheduled arrival time is <= Now().\n",
              "file": "pkg/net/loopback.go",
              "line": 118
            },
            {
              "name": "Config",
              "anchor": "LoopbackHub.Config",
              "recv": "*LoopbackHub",
              "decl": "func (h *LoopbackHub) Config() LoopbackConfig",
              "doc": "Config returns the current network simulation configuration.\n",
              "file": "pkg/net/loopback.go",
              "line": 62
            },
            {
              "name": "InFlight",
              "anchor": "LoopbackHub.InFlight",
              "recv": "*LoopbackHub",
              "decl": "func (h *LoopbackHub) InFlight() int",
              "doc": "InFlight returns the number of packets currently in transit.\n",
              "file": "pkg/net/loopback.go",
              "line": 85
            },
            {
              "name": "Now",
              "anchor": "LoopbackHub.Now",
              "recv": "*LoopbackHub",
              "decl": "func (h *LoopbackHub) Now() time.Duration",
              "doc": "Now returns the hub's current virtual clock time.\n",
              "file": "pkg/net/loopback.go",
              "line": 78
            },
            {
              "name": "RemovePeer",
              "anchor": "LoopbackHub.RemovePeer",
              "recv": "*LoopbackHub",
              "decl": "func (h *LoopbackHub) RemovePeer(id PeerID)",
              "doc": "RemovePeer disconnects a peer from the hub.\n",
              "file": "pkg/net/loopback.go",
              "line": 107
            },
            {
              "name": "SetConfig",
              "anchor": "LoopbackHub.SetConfig",
              "recv": "*LoopbackHub",
              "decl": "func (h *LoopbackHub) SetConfig(cfg LoopbackConfig)",
              "doc": "SetConfig updates Latency, Jitter, and LossRate at runtime without resetting the PRNG or clock.\n",
              "file": "pkg/net/loopback.go",
              "line": 69
            }
          ]
        },
        {
          "name": "LoopbackTransport",
          "anchor": "LoopbackTransport",
          "decl": "type LoopbackTransport struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "LoopbackTransport is an endpoint connected to a LoopbackHub.\n",
          "file": "pkg/net/loopback.go",
          "line": 251,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Close",
              "anchor": "LoopbackTransport.Close",
              "recv": "*LoopbackTransport",
              "decl": "func (t *LoopbackTransport) Close() error",
              "doc": "Close disconnects this endpoint from its LoopbackHub.\n",
              "file": "pkg/net/loopback.go",
              "line": 310
            },
            {
              "name": "InboxStats",
              "anchor": "LoopbackTransport.InboxStats",
              "recv": "*LoopbackTransport",
              "decl": "func (t *LoopbackTransport) InboxStats() InboxStats",
              "doc": "InboxStats reports what the transport's inbox holds and what its limits dropped or warned about.\n",
              "file": "pkg/net/loopback.go",
              "line": 281
            },
            {
              "name": "LocalID",
              "anchor": "LoopbackTransport.LocalID",
              "recv": "*LoopbackTransport",
              "decl": "func (t *LoopbackTransport) LocalID() PeerID",
              "doc": "LocalID returns this endpoint's PeerID.\n",
              "file": "pkg/net/loopback.go",
              "line": 288
            },
            {
              "name": "Peers",
              "anchor": "LoopbackTransport.Peers",
              "recv": "*LoopbackTransport",
              "decl": "func (t *LoopbackTransport) Peers() []PeerID",
              "doc": "Peers returns the sorted list of other connected peers on the hub.\n",
              "file": "pkg/net/loopback.go",
              "line": 293
            },
            {
              "name": "Recv",
              "anchor": "LoopbackTransport.Recv",
              "recv": "*LoopbackTransport",
              "decl": "func (t *LoopbackTransport) Recv() (Packet, bool)",
              "doc": "Recv pops the next delivered packet without blocking.\n",
              "file": "pkg/net/loopback.go",
              "line": 267
            },
            {
              "name": "Send",
              "anchor": "LoopbackTransport.Send",
              "recv": "*LoopbackTransport",
              "decl": "func (t *LoopbackTransport) Send(to PeerID, ch Channel, payload []byte) error",
              "doc": "Send transmits payload to the target peer (or all other peers if to == PeerBroadcast).\n",
              "file": "pkg/net/loopback.go",
              "line": 260
            },
            {
              "name": "SetInboxLimits",
              "anchor": "LoopbackTransport.SetInboxLimits",
              "recv": "*LoopbackTransport",
              "decl": "func (t *LoopbackTransport) SetInboxLimits(l InboxLimits)",
              "doc": "SetInboxLimits bounds the packets the transport keeps until Recv takes them (see InboxLimits).\n",
              "file": "pkg/net/loopback.go",
              "line": 274
            }
          ]
        },
        {
          "name": "Packet",
          "anchor": "Packet",
          "decl": "type Packet struct {\n\tFrom    PeerID\n\tChannel Channel\n\tPayload []byte\n\tSeq     uint32\n}",
          "doc": "Packet is a single datagram received from a remote peer.\n",
          "file": "pkg/net/transport.go",
          "line": 45,
          "members": [
            {
              "name": "From",
              "anchor": "Packet.From",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Channel",
              "anchor": "Packet.Channel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Payload",
              "anchor": "Packet.Payload",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seq",
              "anchor": "Packet.Seq",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PeerEvent",
          "anchor": "PeerEvent",
          "decl": "type PeerEvent struct {\n\tKind PeerEventKind\n\tPeer PeerID\n}",
          "doc": "PeerEvent is one change to a peer's session, reported by a server's NextEvent.\n",
          "file": "pkg/net/session.go",
          "line": 61,
          "members": [
            {
              "name": "Kind",
              "anchor": "PeerEvent.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Peer",
              "anchor": "PeerEvent.Peer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PeerEventKind",
          "anchor": "PeerEventKind",
          "decl": "type PeerEventKind uint8",
          "doc": "PeerEventKind is what happened to a peer's session.\n",
          "file": "pkg/net/session.go",
          "line": 31,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PeerJoined",
                  "anchor": "PeerJoined"
                },
                {
                  "name": "PeerDropped",
                  "anchor": "PeerDropped"
                },
                {
                  "name": "PeerResumed",
                  "anchor": "PeerResumed"
                },
                {
                  "name": "PeerLeft",
                  "anchor": "PeerLeft"
                }
              ],
              "decl": "const (\n\t// PeerJoined reports a client that passed the handshake and received a new ID.\n\tPeerJoined PeerEventKind = iota + 1\n\t// PeerDropped reports a connection that broke without a goodbye; the peer keeps its ID for Auth.GracePeriod.\n\tPeerDropped\n\t// PeerResumed reports a dropped peer that reconnected within the grace period with its old ID.\n\tPeerResumed\n\t// PeerLeft reports a peer that closed its connection, or whose grace period ran out. Its ID is gone.\n\tPeerLeft\n)",
              "doc": "",
              "file": "pkg/net/session.go",
              "line": 33
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "PeerEventKind.String",
              "recv": "PeerEventKind",
              "decl": "func (k PeerEventKind) String() string",
              "doc": "String returns the event kind's name.\n",
              "file": "pkg/net/session.go",
              "line": 45
            }
          ]
        },
        {
          "name": "PeerEvents",
          "anchor": "PeerEvents",
          "decl": "type PeerEvents interface {\n\tNextEvent() (PeerEvent, bool)\n}",
          "doc": "PeerEvents is implemented by the server transports that run the connection handshake. NextEvent pops the next session change without blocking; grace periods and idle timeouts are checked when it is called, so a server polls it every tick alongside Recv.\n",
          "file": "pkg/net/session.go",
          "line": 67,
          "members": [
            {
              "name": "NextEvent",
              "anchor": "PeerEvents.NextEvent",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PeerID",
          "anchor": "PeerID",
          "decl": "type PeerID uint32",
          "doc": "PeerID uniquely identifies a participant in a multiplayer session.\n",
          "file": "pkg/net/transport.go",
          "line": 39,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PeerBroadcast",
                  "anchor": "PeerBroadcast"
                }
              ],
              "decl": "const PeerBroadcast PeerID = 0",
              "doc": "PeerBroadcast targets all connected remote peers when passed to Transport.Send.\n",
              "file": "pkg/net/transport.go",
              "line": 42
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RejectError",
          "anchor": "RejectError",
          "decl": "type RejectError struct {\n\tReason string\n}",
          "doc": "RejectError is the reason a server gave for refusing a client's handshake.\n",
          "file": "pkg/net/session.go",
          "line": 114,
          "members": [
            {
              "name": "Reason",
              "anchor": "RejectError.Reason",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "RejectError.Error",
              "recv": "*RejectError",
              "decl": "func (e *RejectError) Error() string",
              "doc": "Error returns the rejection with its reason.\n",
              "file": "pkg/net/session.go",
              "line": 119
            },
            {
              "name": "Is",
              "anchor": "RejectError.Is",
              "recv": "*RejectError",
              "decl": "func (e *RejectError) Is(target error) bool",
              "doc": "Is reports whether target is ErrRejected.\n",
              "file": "pkg/net/session.go",
              "line": 124
            }
          ]
        },
        {
          "name": "Relay",
          "anchor": "Relay",
          "decl": "type Relay struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Relay forwards packets between the peers of a peer-to-peer session, so lockstep and rollback work for players who cannot reach each other directly: each player connects to the relay with a RelayTransport over WebSocket or UDP, and the relay passes each frame to the member it is addressed to.\n\nThe relay sits on a WebSocketServer or UDPServer, so every client passes that server's connection handshake first; Join then decides which session the client belongs to. A frame addressed outside the sender's session is dropped. The relay never reads the payloads, and reliability is end to end between RelayTransports, so the relay may drop a frame for a member that is reconnecting or too slow without breaking ChannelReliableOrdered.\n",
          "file": "pkg/net/relay_server.go",
          "line": 62,
          "platforms": [
            "linux",
            "macos",
            "windows",
            "android",
            "ios"
          ],
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRelay",
              "anchor": "NewRelay",
              "decl": "func NewRelay(cfg RelayConfig) (*Relay, error)",
              "doc": "NewRelay returns a relay for cfg. It fails when cfg.Join is nil.\n",
              "file": "pkg/net/relay_server.go",
              "line": 92,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ],
          "methods": [
            {
              "name": "Auth",
              "anchor": "Relay.Auth",
              "recv": "*Relay",
              "decl": "func (r *Relay) Auth(base Auth) Auth",
              "doc": "Auth returns base with Verify replaced by the relay's admission: base.Verify, when set, checks the token first, then Join picks the session and the relay refuses a full one. Pass the result to ListenWebSocket, ListenWebSocketTLS or ListenUDPServer, and serve that server with Serve.\n",
              "file": "pkg/net/relay_server.go",
              "line": 115,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Serve",
              "anchor": "Relay.Serve",
              "recv": "*Relay",
              "decl": "func (r *Relay) Serve(ctx context.Context, srv RelayServer) error",
              "doc": "Serve forwards srv's packets until ctx ends, then stops the members' writers and returns ctx's error. srv must have been created with r.Auth. A relay serves one server for its lifetime: Serve may be called again on the same server after it returns, and the clients still connected keep their sessions, but a concurrent Serve or a Serve on another server returns an error. Serve does not close srv.\n",
              "file": "pkg/net/relay_server.go",
              "line": 163,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Stats",
              "anchor": "Relay.Stats",
              "recv": "*Relay",
              "decl": "func (r *Relay) Stats() RelayStats",
              "doc": "Stats returns the relay's current counts.\n",
              "file": "pkg/net/relay_server.go",
              "line": 156,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ]
        },
        {
          "name": "RelayConfig",
          "anchor": "RelayConfig",
          "decl": "type RelayConfig struct {\n\t// Join admits a client to a session: it checks the token the client presented in the connection handshake and returns the name of the session the client joins, or an error whose text is sent back as the rejection reason. Packets are forwarded only between members of the same session. Join is required. It runs where Auth.Verify runs: on the client's goroutine for WebSocket and on the receive goroutine for UDP, so check a signed token locally.\n\tJoin func(peer PeerID, token []byte) (session string, err error)\n\t// MaxSessionPeers is the most members a session holds, counting members inside their grace period; 8 when zero. A client past it is rejected with the reason \"session full\".\n\tMaxSessionPeers int\n\t// QueueSize is how many frames the relay holds for one member that has not been written yet; 256 when zero. Frames past it are dropped, and the senders' RelayTransports resend the reliable ones.\n\tQueueSize int\n}",
          "doc": "RelayConfig configures a Relay.\n",
          "file": "pkg/net/relay_server.go",
          "line": 27,
          "platforms": [
            "linux",
            "macos",
            "windows",
            "android",
            "ios"
          ],
          "members": [
            {
              "name": "Join",
              "anchor": "RelayConfig.Join",
              "kind": "field",
              "doc": "Join admits a client to a session: it checks the token the client presented in the connection handshake and returns the name of the session the client joins, or an error whose text is sent back as the rejection reason. Packets are forwarded only between members of the same session. Join is required. It runs where Auth.Verify runs: on the client's goroutine for WebSocket and on the receive goroutine for UDP, so check a signed token locally."
            },
            {
              "name": "MaxSessionPeers",
              "anchor": "RelayConfig.MaxSessionPeers",
              "kind": "field",
              "doc": "MaxSessionPeers is the most members a session holds, counting members inside their grace period; 8 when zero. A client past it is rejected with the reason \"session full\"."
            },
            {
              "name": "QueueSize",
              "anchor": "RelayConfig.QueueSize",
              "kind": "field",
              "doc": "QueueSize is how many frames the relay holds for one member that has not been written yet; 256 when zero. Frames past it are dropped, and the senders' RelayTransports resend the reliable ones."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RelayServer",
          "anchor": "RelayServer",
          "decl": "type RelayServer interface {\n\tTransport\n\tPeerEvents\n}",
          "doc": "RelayServer is a server transport a Relay serves: WebSocketServer or UDPServer.\n",
          "file": "pkg/net/relay_server.go",
          "line": 49,
          "platforms": [
            "linux",
            "macos",
            "windows",
            "android",
            "ios"
          ],
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RelayStats",
          "anchor": "RelayStats",
          "decl": "type RelayStats struct {\n\t// Sessions is the number of sessions with at least one member.\n\tSessions int\n\t// Peers is the number of members across all sessions, including members inside their grace period.\n\tPeers int\n\t// Forwarded counts frames queued for a member, including the relay's own membership updates.\n\tForwarded uint64\n\t// Dropped counts frames refused: malformed, from a client in no session, addressed outside the sender's session, or past a member's queue.\n\tDropped uint64\n}",
          "doc": "RelayStats counts a relay's sessions and traffic.\n",
          "file": "pkg/net/relay_server.go",
          "line": 37,
          "platforms": [
            "linux",
            "macos",
            "windows",
            "android",
            "ios"
          ],
          "members": [
            {
              "name": "Sessions",
              "anchor": "RelayStats.Sessions",
              "kind": "field",
              "doc": "Sessions is the number of sessions with at least one member."
            },
            {
              "name": "Peers",
              "anchor": "RelayStats.Peers",
              "kind": "field",
              "doc": "Peers is the number of members across all sessions, including members inside their grace period."
            },
            {
              "name": "Forwarded",
              "anchor": "RelayStats.Forwarded",
              "kind": "field",
              "doc": "Forwarded counts frames queued for a member, including the relay's own membership updates."
            },
            {
              "name": "Dropped",
              "anchor": "RelayStats.Dropped",
              "kind": "field",
              "doc": "Dropped counts frames refused: malformed, from a client in no session, addressed outside the sender's session, or past a member's queue."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RelayTransport",
          "anchor": "RelayTransport",
          "decl": "type RelayTransport struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "RelayTransport is a peer-to-peer Transport whose packets travel through a Relay, so peers that cannot reach each other, behind NAT or in a browser, still exchange packets. It wraps a client transport connected to the relay: a WebSocketTransport (native or browser) or a UDPClient.\n\nPeers reports the other members of the relay session the client joined, and Send addresses them by the IDs the relay assigned. ChannelReliableOrdered is reliable and ordered end to end: the transport numbers each peer's messages, the receiver acknowledges them, and lost ones are sent again, so it works over UDP, which drops datagrams, and survives the relay dropping a packet for a peer that is reconnecting. ChannelUnreliable packets are sent once and may be lost.\n\nAcknowledgements and retransmissions happen inside Recv, so a game polls Recv every tick, as LockstepSession and RollbackSession do.\n",
          "file": "pkg/net/relay.go",
          "line": 140,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRelayTransport",
              "anchor": "NewRelayTransport",
              "decl": "func NewRelayTransport(inner Transport, cfg RelayTransportConfig) *RelayTransport",
              "doc": "NewRelayTransport wraps inner, a client transport whose handshake with a Relay has succeeded. Closing the RelayTransport closes inner. To reconnect after a drop, call the inner transport's Reconnect: within the relay's grace period the client keeps its ID and its messages, and unacknowledged reliable ones are sent again.\n",
              "file": "pkg/net/relay.go",
              "line": 182
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "RelayTransport.Close",
              "recv": "*RelayTransport",
              "decl": "func (rt *RelayTransport) Close() error",
              "doc": "Close closes the inner transport.\n",
              "file": "pkg/net/relay.go",
              "line": 299
            },
            {
              "name": "InboxStats",
              "anchor": "RelayTransport.InboxStats",
              "recv": "*RelayTransport",
              "decl": "func (rt *RelayTransport) InboxStats() InboxStats",
              "doc": "InboxStats reports what the transport's inbox holds and what its limits dropped or warned about.\n",
              "file": "pkg/net/relay.go",
              "line": 292
            },
            {
              "name": "LocalID",
              "anchor": "RelayTransport.LocalID",
              "recv": "*RelayTransport",
              "decl": "func (rt *RelayTransport) LocalID() PeerID",
              "doc": "LocalID returns the ID the relay assigned this client.\n",
              "file": "pkg/net/relay.go",
              "line": 205
            },
            {
              "name": "Peers",
              "anchor": "RelayTransport.Peers",
              "recv": "*RelayTransport",
              "decl": "func (rt *RelayTransport) Peers() []PeerID",
              "doc": "Peers returns the sorted IDs of the other members of this client's relay session, including members inside the relay's grace period, as of the last membership update Recv processed.\n",
              "file": "pkg/net/relay.go",
              "line": 210
            },
            {
              "name": "Recv",
              "anchor": "RelayTransport.Recv",
              "recv": "*RelayTransport",
              "decl": "func (rt *RelayTransport) Recv() (Packet, bool)",
              "doc": "Recv pops the next packet from a session member without blocking. Each call first drains the inner transport, acknowledges reliable messages and resends the ones whose acknowledgement is overdue.\n",
              "file": "pkg/net/relay.go",
              "line": 277
            },
            {
              "name": "Send",
              "anchor": "RelayTransport.Send",
              "recv": "*RelayTransport",
              "decl": "func (rt *RelayTransport) Send(to PeerID, ch Channel, payload []byte) error",
              "doc": "Send sends payload to a member of the session, or to every other member when to is PeerBroadcast. It returns ErrUnknownPeer for an ID outside the session, ErrPayloadTooLarge above MaxRelayPayload and ErrRelayBacklog when a peer has too many unacknowledged reliable messages. A reliable message the inner transport cannot send right now, because it is reconnecting, is kept and sent again; an unreliable one returns the inner transport's error.\n",
              "file": "pkg/net/relay.go",
              "line": 228
            },
            {
              "name": "SetInboxLimits",
              "anchor": "RelayTransport.SetInboxLimits",
              "recv": "*RelayTransport",
              "decl": "func (rt *RelayTransport) SetInboxLimits(l InboxLimits)",
              "doc": "SetInboxLimits bounds the packets the transport keeps until Recv takes them (see InboxLimits). A peer whose queued reliable messages reach InboxLimits.Reliable is not acknowledged further, so it resends them once Recv has made room.\n",
              "file": "pkg/net/relay.go",
              "line": 285
            }
          ]
        },
        {
          "name": "RelayTransportConfig",
          "anchor": "RelayTransportConfig",
          "decl": "type RelayTransportConfig struct {\n\t// Now is the clock for retransmission timers; nil uses time.Now.\n\tNow func() time.Time\n\t// Inbox bounds the packets the RelayTransport keeps until Recv takes them (see InboxLimits); the zero value uses the defaults. The inner transport's inbox has its own limits, set on it directly; the relay carries reliable messages as unreliable frames, so a frame the inner inbox drops is sent again.\n\tInbox InboxLimits\n}",
          "doc": "RelayTransportConfig configures a RelayTransport.\n",
          "file": "pkg/net/relay.go",
          "line": 128,
          "members": [
            {
              "name": "Now",
              "anchor": "RelayTransportConfig.Now",
              "kind": "field",
              "doc": "Now is the clock for retransmission timers; nil uses time.Now."
            },
            {
              "name": "Inbox",
              "anchor": "RelayTransportConfig.Inbox",
              "kind": "field",
              "doc": "Inbox bounds the packets the RelayTransport keeps until Recv takes them (see InboxLimits); the zero value uses the defaults. The inner transport's inbox has its own limits, set on it directly; the relay carries reliable messages as unreliable frames, so a frame the inner inbox drops is sent again."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReplicationStats",
          "anchor": "ReplicationStats",
          "decl": "type ReplicationStats struct {\n\tBytesSent          uint64\n\tPacketsSent        uint64\n\tSnapshotsSent      uint64\n\tFullSnapshotsSent  uint64\n\tDeltaSnapshotsSent uint64\n\tAvgBytesPerTick    float64\n}",
          "doc": "ReplicationStats reports cumulative bandwidth and snapshot metrics for ServerWorld.\n",
          "file": "pkg/net/replication.go",
          "line": 203,
          "members": [
            {
              "name": "BytesSent",
              "anchor": "ReplicationStats.BytesSent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PacketsSent",
              "anchor": "ReplicationStats.PacketsSent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SnapshotsSent",
              "anchor": "ReplicationStats.SnapshotsSent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FullSnapshotsSent",
              "anchor": "ReplicationStats.FullSnapshotsSent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaSnapshotsSent",
              "anchor": "ReplicationStats.DeltaSnapshotsSent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AvgBytesPerTick",
              "anchor": "ReplicationStats.AvgBytesPerTick",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RollbackConfig",
          "anchor": "RollbackConfig",
          "decl": "type RollbackConfig struct {\n\tTransport        Transport\n\tSim              SimState\n\tPeers            []PeerID\n\tMaxRollback      int\n\tInputDelay       int\n\tChecksumInterval int\n\tOnDesync         func(DesyncEvent)\n\t// Host is the peer that admits and removes peers while the match runs, with AddPeer and RemovePeer. Zero means the lowest ID of Peers, leaving out the local peer when Join is set; a joining session that finds no other peer there, or that names itself, takes the lowest other ID the transport reports on each Poll until its join state arrives. Set it explicitly when joining over a relay, whose peer list may still be empty or include other newcomers. Every peer of a match must name the same host, and the host stays for the whole match.\n\tHost PeerID\n\t// Join starts the session as a peer joining a match already running. It takes no part until the host's join state arrives with the tick it joins at, the peers and the simulation's state, which it loads into Sim; until then Step only polls and Active reports false. Peers then only serves to find the host when Host is zero.\n\tJoin bool\n}",
          "doc": "RollbackConfig configures a GGPO-style RollbackSession.\n",
          "file": "pkg/net/rollback.go",
          "line": 586,
          "members": [
            {
              "name": "Transport",
              "anchor": "RollbackConfig.Transport",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sim",
              "anchor": "RollbackConfig.Sim",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Peers",
              "anchor": "RollbackConfig.Peers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxRollback",
              "anchor": "RollbackConfig.MaxRollback",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InputDelay",
              "anchor": "RollbackConfig.InputDelay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChecksumInterval",
              "anchor": "RollbackConfig.ChecksumInterval",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnDesync",
              "anchor": "RollbackConfig.OnDesync",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Host",
              "anchor": "RollbackConfig.Host",
              "kind": "field",
              "doc": "Host is the peer that admits and removes peers while the match runs, with AddPeer and RemovePeer. Zero means the lowest ID of Peers, leaving out the local peer when Join is set; a joining session that finds no other peer there, or that names itself, takes the lowest other ID the transport reports on each Poll until its join state arrives. Set it explicitly when joining over a relay, whose peer list may still be empty or include other newcomers. Every peer of a match must name the same host, and the host stays for the whole match."
            },
            {
              "name": "Join",
              "anchor": "RollbackConfig.Join",
              "kind": "field",
              "doc": "Join starts the session as a peer joining a match already running. It takes no part until the host's join state arrives with the tick it joins at, the peers and the simulation's state, which it loads into Sim; until then Step only polls and Active reports false. Peers then only serves to find the host when Host is zero."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RollbackSession",
          "anchor": "RollbackSession",
          "decl": "type RollbackSession struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "RollbackSession runs a GGPO-style optimistic deterministic simulation:\nmissing remote inputs are predicted by repeating the last confirmed input,\npre-step snapshots are kept in a ring window, late divergent inputs trigger\nrollback + deterministic re-simulation, and confirmed ticks exchange periodic\nstate checksums for immediate desync detection.\n\nPeers may join and leave while the match runs: the host admits one with AddPeer and removes one with RemovePeer, and every peer applies the change at the same tick, rolling back when it has already simulated past it.\n",
          "file": "pkg/net/rollback.go",
          "line": 617,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRollbackSession",
              "anchor": "NewRollbackSession",
              "decl": "func NewRollbackSession(cfg RollbackConfig) *RollbackSession",
              "doc": "NewRollbackSession creates a GGPO-style rollback session.\n",
              "file": "pkg/net/rollback.go",
              "line": 643
            }
          ],
          "methods": [
            {
              "name": "Active",
              "anchor": "RollbackSession.Active",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) Active() bool",
              "doc": "Active reports whether the local peer takes part in the current tick: false while a joining peer waits for its join state, and from the tick the host removed the local peer at.\n",
              "file": "pkg/net/rollback.go",
              "line": 722
            },
            {
              "name": "AddPeer",
              "anchor": "RollbackSession.AddPeer",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) AddPeer(id PeerID) (uint32, error)",
              "doc": "AddPeer admits a peer to the running match and returns the tick it joins at. Only the host may call it, typically when its transport reports the peer (PeerJoined, or a new member in a RelayTransport's Peers). The tick is the one the host's next local input applies to (Tick plus InputDelay), so no peer has confirmed it yet; a peer that has already simulated past it rolls back. The new peer's inputs for its first InputDelay ticks are zero on every peer. Once the host has confirmed every tick before the join tick, it sends the new peer the state at the start of that tick, which must be no larger than MaxJoinStateSize, the tick and the peers.\n\nAdding a peer that already takes part returns its join tick. It returns ErrNotHost on any other peer, ErrPeerRejoin for a peer that has left, ErrUnknownPeer for ID 0 and ErrPayloadTooLarge when the state is larger than MaxJoinStateSize.\n",
              "file": "pkg/net/rollback.go",
              "line": 741
            },
            {
              "name": "ConfirmedTick",
              "anchor": "RollbackSession.ConfirmedTick",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) ConfirmedTick() int64",
              "doc": "ConfirmedTick returns the highest tick for which all peers' inputs are confirmed,\nor -1 if no tick is fully confirmed yet.\n",
              "file": "pkg/net/rollback.go",
              "line": 709
            },
            {
              "name": "Desyncs",
              "anchor": "RollbackSession.Desyncs",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) Desyncs() []DesyncEvent",
              "doc": "Desyncs returns a copy of all detected DesyncEvents.\n",
              "file": "pkg/net/rollback.go",
              "line": 732
            },
            {
              "name": "Members",
              "anchor": "RollbackSession.Members",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) Members() []PeerID",
              "doc": "Members returns the sorted IDs of the peers taking part in the current tick; it is empty while a joining peer waits for its join state.\n",
              "file": "pkg/net/rollback.go",
              "line": 717
            },
            {
              "name": "Poll",
              "anchor": "RollbackSession.Poll",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) Poll() error",
              "doc": "Poll drains incoming remote inputs, checksums and membership messages from the Transport, rolling back and re-simulating if any late remote input or membership change diverges from what was previously simulated. It first sends again the messages kept for peers the transport could not reach, and returns ErrSessionBacklog once for a peer that more such messages wait for than a session keeps: that peer misses the messages sent to it from then on.\n",
              "file": "pkg/net/rollback.go",
              "line": 854
            },
            {
              "name": "RemovePeer",
              "anchor": "RollbackSession.RemovePeer",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) RemovePeer(id PeerID) (uint32, error)",
              "doc": "RemovePeer removes a peer from the running match and returns the tick from which no peer waits for or predicts it. Only the host may call it, typically once its transport reports the peer gone (PeerLeft, or a RelayTransport's Peers no longer listing it). The tick is the one the host's next local input applies to, or the peer's join tick, whichever is later. The change carries the inputs the host holds from the peer and a zero input for each unconfirmed tick the host never received, so every peer confirms those ticks alike, rolling back where it predicted otherwise; a peer still sending when removed may have reached another peer with an input the host never saw, so remove a peer after it has stopped sending.\n\nRemoving a peer that is already leaving, or that left, returns its leave tick. It returns ErrNotHost on any other peer, ErrHostLeave for the host, ErrUnknownPeer for a peer not in the match, and ErrRollbackWindowExceeded when the host would have to roll back further than MaxRollback or the change would carry more inputs than fit one message.\n",
              "file": "pkg/net/rollback.go",
              "line": 758
            },
            {
              "name": "Stats",
              "anchor": "RollbackSession.Stats",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) Stats() RollbackStats",
              "doc": "Stats returns a snapshot of the rollback session's metrics.\n",
              "file": "pkg/net/rollback.go",
              "line": 727
            },
            {
              "name": "Step",
              "anchor": "RollbackSession.Step",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) Step(localInput InputFrame) error",
              "doc": "Step submits the local input (applied at currentTick + InputDelay), drains incoming packets (executing any needed rollbacks), simulates the next tick, and exchanges checksums for newly confirmed ticks. While the local peer takes no part (see Active) it only polls. It returns ErrSessionBacklog, after simulating the tick, when a remote peer has become unreachable for too long (see Poll).\n",
              "file": "pkg/net/rollback.go",
              "line": 810
            },
            {
              "name": "Tick",
              "anchor": "RollbackSession.Tick",
              "recv": "*RollbackSession",
              "decl": "func (s *RollbackSession) Tick() uint32",
              "doc": "Tick returns the current simulation tick (number of ticks executed so far). A joining peer's count starts at its join tick.\n",
              "file": "pkg/net/rollback.go",
              "line": 703
            }
          ]
        },
        {
          "name": "RollbackStats",
          "anchor": "RollbackStats",
          "decl": "type RollbackStats struct {\n\tRollbacks         int\n\tMaxRollbackDepth  int\n\tResimulatedFrames int\n\tPredictions       int\n\tMispredictions    int\n\tDesyncs           int\n}",
          "doc": "RollbackStats tracks runtime rollback and prediction metrics.\n",
          "file": "pkg/net/rollback.go",
          "line": 601,
          "members": [
            {
              "name": "Rollbacks",
              "anchor": "RollbackStats.Rollbacks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxRollbackDepth",
              "anchor": "RollbackStats.MaxRollbackDepth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResimulatedFrames",
              "anchor": "RollbackStats.ResimulatedFrames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Predictions",
              "anchor": "RollbackStats.Predictions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mispredictions",
              "anchor": "RollbackStats.Mispredictions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Desyncs",
              "anchor": "RollbackStats.Desyncs",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ServerWorld",
          "anchor": "ServerWorld",
          "decl": "type ServerWorld struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ServerWorld owns authoritative entity state and replicates compact full and bitmask-delta snapshots to connected peers over a Transport.\n\nEvery snapshot carries the server's replication epoch, a number NewServerWorld picks at random, so a ClientWorld notices that a restarted server's snapshots come from a new run and starts over on its own.\n",
          "file": "pkg/net/replication.go",
          "line": 229,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewServerWorld",
              "anchor": "NewServerWorld",
              "decl": "func NewServerWorld(transport Transport) *ServerWorld",
              "doc": "NewServerWorld creates a new authoritative replication world backed by transport, with a random replication epoch. Two runs pick the same epoch with a chance of one in 2^32; SetEpoch takes a number the game chooses instead.\n",
              "file": "pkg/net/replication.go",
              "line": 246
            }
          ],
          "methods": [
            {
              "name": "Despawn",
              "anchor": "ServerWorld.Despawn",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) Despawn(id EntityID) bool",
              "doc": "Despawn removes an entity from the authoritative world. Returns false if id does not exist.\n",
              "file": "pkg/net/replication.go",
              "line": 315
            },
            {
              "name": "Entities",
              "anchor": "ServerWorld.Entities",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) Entities() []EntityState",
              "doc": "Entities returns all active entities sorted by EntityID.\n",
              "file": "pkg/net/replication.go",
              "line": 333
            },
            {
              "name": "Entity",
              "anchor": "ServerWorld.Entity",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) Entity(id EntityID) (EntityState, bool)",
              "doc": "Entity returns a copy of the authoritative state for id.\n",
              "file": "pkg/net/replication.go",
              "line": 324
            },
            {
              "name": "Epoch",
              "anchor": "ServerWorld.Epoch",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) Epoch() uint32",
              "doc": "Epoch returns the replication epoch every snapshot of this world carries.\n",
              "file": "pkg/net/replication.go",
              "line": 268
            },
            {
              "name": "PeerErr",
              "anchor": "ServerWorld.PeerErr",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) PeerErr(peer PeerID) error",
              "doc": "PeerErr returns why the last replication message from peer could not be used, an error wrapping ErrReplicationVersion when the peer speaks another version of the replication protocol, or nil. A server can drop such a peer with a message to update the game. It clears when the peer sends a message of ReplicationVersion, and is forgotten when the peer disconnects.\n",
              "file": "pkg/net/replication.go",
              "line": 286
            },
            {
              "name": "SetEpoch",
              "anchor": "ServerWorld.SetEpoch",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) SetEpoch(epoch uint32)",
              "doc": "SetEpoch replaces the replication epoch, for a server that keeps its own run counter or starts a new match with its tick count back at zero. Clients drop every snapshot and prediction of the old epoch and resync from a full snapshot of the new one, which SetEpoch makes the next Step send to every peer by forgetting the snapshot history and acknowledgments. A client ignores late snapshots of the epochs it has left, so an epoch must not repeat: setting one a client has already left makes that client ignore the server. Setting the current epoch does nothing.\n",
              "file": "pkg/net/replication.go",
              "line": 273
            },
            {
              "name": "SetMaxSnapshotSize",
              "anchor": "ServerWorld.SetMaxSnapshotSize",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) SetMaxSnapshotSize(n int)",
              "doc": "SetMaxSnapshotSize sets the largest payload Step passes to Transport.Send. A full snapshot larger than n is split into parts of at most n bytes, which ClientWorld reassembles before applying, and a delta larger than n is replaced by a full snapshot split the same way. Without the split, a world that outgrew the transport's packet limit could never reach a new peer again (#546). Zero restores DefaultMaxSnapshotSize, and a value below 256 is raised to 256.\n",
              "file": "pkg/net/replication.go",
              "line": 260
            },
            {
              "name": "Spawn",
              "anchor": "ServerWorld.Spawn",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) Spawn(state EntityState) EntityID",
              "doc": "Spawn creates a new entity with the given initial state and returns its assigned EntityID.\n",
              "file": "pkg/net/replication.go",
              "line": 294
            },
            {
              "name": "Stats",
              "anchor": "ServerWorld.Stats",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) Stats() ReplicationStats",
              "doc": "Stats returns cumulative replication bandwidth and snapshot statistics.\n",
              "file": "pkg/net/replication.go",
              "line": 347
            },
            {
              "name": "Step",
              "anchor": "ServerWorld.Step",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) Step(tick uint32) error",
              "doc": "Step processes incoming client acknowledgments, records the world snapshot for tick,\nand transmits either a full snapshot (for new peers) or a bitmask delta snapshot\n(for acknowledged peers) over the Transport.\n",
              "file": "pkg/net/replication.go",
              "line": 358
            },
            {
              "name": "Update",
              "anchor": "ServerWorld.Update",
              "recv": "*ServerWorld",
              "decl": "func (w *ServerWorld) Update(id EntityID, state EntityState) bool",
              "doc": "Update replaces the state of an existing entity. Returns false if id does not exist.\n",
              "file": "pkg/net/replication.go",
              "line": 304
            }
          ]
        },
        {
          "name": "SimState",
          "anchor": "SimState",
          "decl": "type SimState interface {\n\t// Step advances the simulation by one fixed tick using inputs sorted by PeerID.\n\tStep(inputs []InputFrame)\n\t// Save serializes the complete deterministic simulation state.\n\tSave() []byte\n\t// Load restores the complete simulation state from a snapshot returned by Save.\n\tLoad(snapshot []byte) error\n\t// Checksum returns a deterministic 64-bit hash of the current simulation state.\n\tChecksum() uint64\n}",
          "doc": "SimState is the deterministic simulation interface driven by LockstepSession\nand RollbackSession.\n",
          "file": "pkg/net/rollback.go",
          "line": 28,
          "members": [
            {
              "name": "Step",
              "anchor": "SimState.Step",
              "kind": "method",
              "doc": "Step advances the simulation by one fixed tick using inputs sorted by PeerID."
            },
            {
              "name": "Save",
              "anchor": "SimState.Save",
              "kind": "method",
              "doc": "Save serializes the complete deterministic simulation state."
            },
            {
              "name": "Load",
              "anchor": "SimState.Load",
              "kind": "method",
              "doc": "Load restores the complete simulation state from a snapshot returned by Save."
            },
            {
              "name": "Checksum",
              "anchor": "SimState.Checksum",
              "kind": "method",
              "doc": "Checksum returns a deterministic 64-bit hash of the current simulation state."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Transport",
          "anchor": "Transport",
          "decl": "type Transport interface {\n\tSend(to PeerID, ch Channel, payload []byte) error\n\tRecv() (Packet, bool)\n\tLocalID() PeerID\n\tPeers() []PeerID\n\tClose() error\n}",
          "doc": "Transport is the cross-target messaging interface consumed by replication and lockstep/rollback sessions.\n\nRecv is strictly non-blocking so games can drain incoming packets directly inside a fixed-step game.Loop Update callback without stalling a frame.\n\nA transport has a single consumer. Recv hands each packet to exactly one caller, and the consumers in this package (ServerWorld, ClientWorld, LockstepSession, RollbackSession, Relay and RelayTransport) drain every packet waiting on the transport and discard the ones that are not theirs. Two of them reading the same transport therefore steal each other's packets. To run replication and a lockstep or rollback session side by side, give each its own transport, or put a demultiplexer in front that implements Transport for each consumer.\n\nEvery transport in this package bounds its inbox and reports on it through InboxReporter: a peer's unreliable packets past a cap are dropped oldest first, a WebSocketServer ends the session of a client whose reliable packets pass a cap, and a reliable backlog past a threshold is counted as a warning (see InboxLimits).\n",
          "file": "pkg/net/transport.go",
          "line": 59,
          "members": [
            {
              "name": "Send",
              "anchor": "Transport.Send",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Recv",
              "anchor": "Transport.Recv",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "LocalID",
              "anchor": "Transport.LocalID",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Peers",
              "anchor": "Transport.Peers",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Close",
              "anchor": "Transport.Close",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UDPClient",
          "anchor": "UDPClient",
          "decl": "type UDPClient struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "UDPClient is a native UDP Transport connected to a UDPServer. DialUDP runs the connection handshake, after which every datagram is sealed with the session's key. The client pings the server while idle and reports itself disconnected when the server stays silent for 10 seconds; Reconnect resumes the session with the same ID within the server's grace period.\n",
          "file": "pkg/net/udp_session_native.go",
          "line": 461,
          "platforms": [
            "linux",
            "macos",
            "windows",
            "android",
            "ios"
          ],
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DialUDP",
              "anchor": "DialUDP",
              "decl": "func DialUDP(addr string, token []byte) (*UDPClient, error)",
              "doc": "DialUDP connects to the UDPServer at addr, presents token in the connection handshake and returns once the server accepts it. The server assigns the client's ID, which LocalID reports. A refusal returns a *RejectError that matches ErrRejected.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 489,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "UDPClient.Close",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) Close() error",
              "doc": "Close sends the server a goodbye, so it reports PeerLeft at once rather than holding the session for a reconnect, and closes the socket.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 819,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Err",
              "anchor": "UDPClient.Err",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) Err() error",
              "doc": "Err returns why the client is disconnected: a *RejectError, a handshake timeout, or ErrDisconnected wrapping the cause. It is nil while the connection is open.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 798,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "InboxStats",
              "anchor": "UDPClient.InboxStats",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) InboxStats() InboxStats",
              "doc": "InboxStats reports what the client's inbox holds and what its limits dropped or warned about.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 760,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "LocalID",
              "anchor": "UDPClient.LocalID",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) LocalID() PeerID",
              "doc": "LocalID returns the PeerID the server assigned this client.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 774,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Peers",
              "anchor": "UDPClient.Peers",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) Peers() []PeerID",
              "doc": "Peers returns the server's PeerID, or nil while disconnected or closed.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 781,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Reconnect",
              "anchor": "UDPClient.Reconnect",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) Reconnect() error",
              "doc": "Reconnect drops the current socket without a goodbye, opens a new one and resumes the session: within the server's grace period the client keeps its ID, and Resumed reports true. Past it, the server admits the client as a new peer when its token is still valid, and LocalID changes.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 501,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Recv",
              "anchor": "UDPClient.Recv",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) Recv() (Packet, bool)",
              "doc": "Recv pops the next authenticated packet from the server without blocking.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 767,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Resumed",
              "anchor": "UDPClient.Resumed",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) Resumed() bool",
              "doc": "Resumed reports whether the last handshake resumed an existing session, keeping the client's ID.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 805,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Send",
              "anchor": "UDPClient.Send",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) Send(to PeerID, ch Channel, payload []byte) error",
              "doc": "Send seals payload with the session key and sends it to the server in one datagram. It refuses ChannelReliableOrdered with ErrUnsupportedChannel and returns ErrDisconnected while the connection is down.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 721,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "SetInboxLimits",
              "anchor": "UDPClient.SetInboxLimits",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) SetInboxLimits(l InboxLimits)",
              "doc": "SetInboxLimits bounds the packets the client keeps until Recv takes them (see InboxLimits).\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 753,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "State",
              "anchor": "UDPClient.State",
              "recv": "*UDPClient",
              "decl": "func (c *UDPClient) State() ConnState",
              "doc": "State returns the connection state.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 791,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ]
        },
        {
          "name": "UDPServer",
          "anchor": "UDPServer",
          "decl": "type UDPServer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "UDPServer is a native UDP Transport for a server whose clients connect with DialUDP. Each client runs the connection handshake before its packets reach Recv: Auth.Verify checks its token and the server assigns its ID. After that the client is bound to the address it shook hands from and to a per-session key, so a datagram from another address, or without the key, is dropped instead of reaching Recv or moving the peer.\n\nUDP has no connection, so a client that stays silent for Auth.IdleTimeout counts as dropped; DialUDP clients ping every second while idle. Datagrams are authenticated, not encrypted.\n\nThe binding stops attackers who cannot see the traffic. The handshake itself travels in the clear: the hello carries the token, and the welcome carries the session key and resume secret. Anyone who can observe it, on shared Wi-Fi or any hop on the path, can forge datagrams for the session and resume it from their own address, taking it over. Issue UDP tokens that are short-lived and single-use, and use WebSocket over wss:// where an on-path observer is a concern.\n",
          "file": "pkg/net/udp_session_native.go",
          "line": 128,
          "platforms": [
            "linux",
            "macos",
            "windows",
            "android",
            "ios"
          ],
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ListenUDPServer",
              "anchor": "ListenUDPServer",
              "decl": "func ListenUDPServer(addr string, serverID PeerID, auth Auth) (*UDPServer, error)",
              "doc": "ListenUDPServer binds a UDP socket on addr for a server with ID serverID (1 when zero) and starts accepting DialUDP clients under auth.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 142,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ],
          "methods": [
            {
              "name": "Addr",
              "anchor": "UDPServer.Addr",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) Addr() stdnet.Addr",
              "doc": "Addr returns the local bound UDP address.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 166,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Close",
              "anchor": "UDPServer.Close",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) Close() error",
              "doc": "Close closes the UDP socket.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 448,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Err",
              "anchor": "UDPServer.Err",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) Err() error",
              "doc": "Err returns why the server stopped receiving: ErrReceiveFailed wrapping the socket's error. Send returns the same error from then on, and clients time out as their datagrams go unread, so a game should close the server and listen again. It is nil while the server receives, and after Close. Errors about a single datagram, such as an ICMP port unreachable for an earlier send, do not stop it.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 433,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "InboxStats",
              "anchor": "UDPServer.InboxStats",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) InboxStats() InboxStats",
              "doc": "InboxStats reports what the server's inbox holds and what its limits dropped or warned about.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 406,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "LocalID",
              "anchor": "UDPServer.LocalID",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) LocalID() PeerID",
              "doc": "LocalID returns the server's PeerID.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 428,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "NextEvent",
              "anchor": "UDPServer.NextEvent",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) NextEvent() (PeerEvent, bool)",
              "doc": "NextEvent pops the next join, drop, resume or leave without blocking, after dropping clients silent for Auth.IdleTimeout and ending sessions whose grace period has passed.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 420,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Peers",
              "anchor": "UDPServer.Peers",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) Peers() []PeerID",
              "doc": "Peers returns the sorted IDs of connected clients. Clients inside their grace period are left out.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 440,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Recv",
              "anchor": "UDPServer.Recv",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) Recv() (Packet, bool)",
              "doc": "Recv pops the next authenticated packet without blocking.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 413,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Send",
              "anchor": "UDPServer.Send",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) Send(to PeerID, ch Channel, payload []byte) error",
              "doc": "Send seals payload with the client's session key and sends it in one datagram to the client (or all connected clients when to == PeerBroadcast). It refuses ChannelReliableOrdered with ErrUnsupportedChannel, returns ErrDisconnected for a client inside its grace period and ErrUnknownPeer for an ID with no session.\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 346,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "SetInboxLimits",
              "anchor": "UDPServer.SetInboxLimits",
              "recv": "*UDPServer",
              "decl": "func (s *UDPServer) SetInboxLimits(l InboxLimits)",
              "doc": "SetInboxLimits bounds the packets the server keeps until Recv takes them (see InboxLimits).\n",
              "file": "pkg/net/udp_session_native.go",
              "line": 399,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ]
        },
        {
          "name": "UDPTransport",
          "anchor": "UDPTransport",
          "decl": "type UDPTransport struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "UDPTransport is an unreliable/sequenced native UDP Transport between peers that know each other's addresses in advance.\nEach datagram carries a 9-byte header (from PeerID + channel + sequence number)\nso peers can exchange packets directly without a TCP handshake.\n\nBoth sides register each other with AddPeer, and a datagram is accepted only from the address registered for the PeerID it claims, so a spoofed From header can neither add a peer nor move one. A server whose clients are not known in advance uses ListenUDPServer and DialUDP, which authenticate each client and bind it to its address.\n",
          "file": "pkg/net/udp_native.go",
          "line": 26,
          "platforms": [
            "linux",
            "macos",
            "windows",
            "android",
            "ios"
          ],
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ListenUDP",
              "anchor": "ListenUDP",
              "decl": "func ListenUDP(addr string, localID PeerID) (*UDPTransport, error)",
              "doc": "ListenUDP binds a UDP socket on addr for localID and starts receiving datagrams.\n",
              "file": "pkg/net/udp_native.go",
              "line": 39,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ],
          "methods": [
            {
              "name": "AddPeer",
              "anchor": "UDPTransport.AddPeer",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) AddPeer(id PeerID, addr string) error",
              "doc": "AddPeer registers or updates a remote peer's UDP address. Datagrams claiming to be from id are accepted only from this address.\n",
              "file": "pkg/net/udp_native.go",
              "line": 78,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Addr",
              "anchor": "UDPTransport.Addr",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) Addr() stdnet.Addr",
              "doc": "Addr returns the local bound UDP address.\n",
              "file": "pkg/net/udp_native.go",
              "line": 73,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Close",
              "anchor": "UDPTransport.Close",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) Close() error",
              "doc": "Close closes the underlying UDP socket.\n",
              "file": "pkg/net/udp_native.go",
              "line": 251,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Err",
              "anchor": "UDPTransport.Err",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) Err() error",
              "doc": "Err returns why the transport stopped receiving: ErrReceiveFailed wrapping the socket's error. Send returns the same error from then on. It is nil while the transport receives, and after Close. Errors about a single datagram, such as an ICMP port unreachable for an earlier send, do not stop it.\n",
              "file": "pkg/net/udp_native.go",
              "line": 224,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "InboxStats",
              "anchor": "UDPTransport.InboxStats",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) InboxStats() InboxStats",
              "doc": "InboxStats reports what the transport's inbox holds and what its limits dropped or warned about.\n",
              "file": "pkg/net/udp_native.go",
              "line": 210,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "LocalID",
              "anchor": "UDPTransport.LocalID",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) LocalID() PeerID",
              "doc": "LocalID returns this endpoint's PeerID.\n",
              "file": "pkg/net/udp_native.go",
              "line": 231,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Peers",
              "anchor": "UDPTransport.Peers",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) Peers() []PeerID",
              "doc": "Peers returns the sorted list of known remote PeerIDs.\n",
              "file": "pkg/net/udp_native.go",
              "line": 236,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Recv",
              "anchor": "UDPTransport.Recv",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) Recv() (Packet, bool)",
              "doc": "Recv pops the next received UDP packet without blocking.\n",
              "file": "pkg/net/udp_native.go",
              "line": 217,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "RemovePeer",
              "anchor": "UDPTransport.RemovePeer",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) RemovePeer(id PeerID)",
              "doc": "RemovePeer removes a remote peer from the routing table.\n",
              "file": "pkg/net/udp_native.go",
              "line": 93,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Send",
              "anchor": "UDPTransport.Send",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) Send(to PeerID, ch Channel, payload []byte) error",
              "doc": "Send transmits payload in a single UDP datagram to the target peer (or all registered peers when to == PeerBroadcast).\n\nUDP has no acknowledgement or retransmission, so ChannelReliableOrdered is refused with ErrUnsupportedChannel instead of quietly losing packets. Use a WebSocket or loopback transport, or a RelayTransport, for lockstep and rollback sessions.\n",
              "file": "pkg/net/udp_native.go",
              "line": 142,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "SetInboxLimits",
              "anchor": "UDPTransport.SetInboxLimits",
              "recv": "*UDPTransport",
              "decl": "func (u *UDPTransport) SetInboxLimits(l InboxLimits)",
              "doc": "SetInboxLimits bounds the packets the transport keeps until Recv takes them (see InboxLimits).\n",
              "file": "pkg/net/udp_native.go",
              "line": 203,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ]
        },
        {
          "name": "WebSocketServer",
          "anchor": "WebSocketServer",
          "decl": "type WebSocketServer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "WebSocketServer accepts RFC 6455 WebSocket clients and exposes them through the standard Transport interface.\n\nEvery client runs the connection handshake before its packets reach Recv: Auth.Verify checks its token, the server assigns its ID and tells the client, and NextEvent reports joins, drops, resumes and leaves.\n\nThe server pings every client and reports PeerDropped for one that stays silent for Auth.IdleTimeout. Browsers answer pings on their own, so browser clients need no code for it.\n",
          "file": "pkg/net/ws_native.go",
          "line": 723,
          "platforms": [
            "linux",
            "macos",
            "windows",
            "android",
            "ios"
          ],
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ListenWebSocket",
              "anchor": "ListenWebSocket",
              "decl": "func ListenWebSocket(addr string, serverID PeerID, auth Auth) (*WebSocketServer, error)",
              "doc": "ListenWebSocket starts a pure-Go RFC 6455 WebSocket server on addr. serverID is the server's own PeerID (1 when zero); clients get the IDs after it. auth decides who may connect and how long a dropped client keeps its ID.\n",
              "file": "pkg/net/ws_native.go",
              "line": 737,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "ListenWebSocketTLS",
              "anchor": "ListenWebSocketTLS",
              "decl": "func ListenWebSocketTLS(addr string, serverID PeerID, auth Auth, config *tls.Config, allowedOrigins []string) (*WebSocketServer, error)",
              "doc": "ListenWebSocketTLS starts the server with TLS, so a browser on an HTTPS page can connect with wss:// without a reverse proxy. auth is as for ListenWebSocket. allowedOrigins lists the browser Origins allowed to upgrade; empty allows any, \"*\" allows all, and an Origin outside the list is refused before the handshake.\n",
              "file": "pkg/net/ws_native.go",
              "line": 742,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "ListenWebSocketTLSFiles",
              "anchor": "ListenWebSocketTLSFiles",
              "decl": "func ListenWebSocketTLSFiles(addr string, serverID PeerID, auth Auth, certFile, keyFile string, allowedOrigins []string) (*WebSocketServer, error)",
              "doc": "ListenWebSocketTLSFiles is ListenWebSocketTLS with a certificate and key loaded from PEM files.\n",
              "file": "pkg/net/ws_native.go",
              "line": 750,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ],
          "methods": [
            {
              "name": "Addr",
              "anchor": "WebSocketServer.Addr",
              "recv": "*WebSocketServer",
              "decl": "func (s *WebSocketServer) Addr() stdnet.Addr",
              "doc": "Addr returns the listener's network address.\n",
              "file": "pkg/net/ws_native.go",
              "line": 825,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Close",
              "anchor": "WebSocketServer.Close",
              "recv": "*WebSocketServer",
              "decl": "func (s *WebSocketServer) Close() error",
              "doc": "Close stops accepting new clients and closes all active client connections. It sends each client a close frame, waiting at most a second for clients that do not read, all at once rather than one after another.\n",
              "file": "pkg/net/ws_native.go",
              "line": 1183,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "InboxStats",
              "anchor": "WebSocketServer.InboxStats",
              "recv": "*WebSocketServer",
              "decl": "func (s *WebSocketServer) InboxStats() InboxStats",
              "doc": "InboxStats reports what the server's inbox holds and what its limits dropped or warned about.\n",
              "file": "pkg/net/ws_native.go",
              "line": 1148,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "LocalID",
              "anchor": "WebSocketServer.LocalID",
              "recv": "*WebSocketServer",
              "decl": "func (s *WebSocketServer) LocalID() PeerID",
              "doc": "LocalID returns the server's PeerID.\n",
              "file": "pkg/net/ws_native.go",
              "line": 1170,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "NextEvent",
              "anchor": "WebSocketServer.NextEvent",
              "recv": "*WebSocketServer",
              "decl": "func (s *WebSocketServer) NextEvent() (PeerEvent, bool)",
              "doc": "NextEvent pops the next join, drop, resume or leave without blocking, after ending the sessions whose grace period has passed.\n",
              "file": "pkg/net/ws_native.go",
              "line": 1162,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Peers",
              "anchor": "WebSocketServer.Peers",
              "recv": "*WebSocketServer",
              "decl": "func (s *WebSocketServer) Peers() []PeerID",
              "doc": "Peers returns the sorted list of currently connected client PeerIDs. Clients inside their grace period are left out.\n",
              "file": "pkg/net/ws_native.go",
              "line": 1175,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Recv",
              "anchor": "WebSocketServer.Recv",
              "recv": "*WebSocketServer",
              "decl": "func (s *WebSocketServer) Recv() (Packet, bool)",
              "doc": "Recv pops the next received packet from any connected client without blocking.\n",
              "file": "pkg/net/ws_native.go",
              "line": 1155,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "Send",
              "anchor": "WebSocketServer.Send",
              "recv": "*WebSocketServer",
              "decl": "func (s *WebSocketServer) Send(to PeerID, ch Channel, payload []byte) error",
              "doc": "Send transmits payload to a connected client (or all clients when to == PeerBroadcast). It returns ErrDisconnected for a client inside its grace period and ErrUnknownPeer for an ID with no session.\n",
              "file": "pkg/net/ws_native.go",
              "line": 1103,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            },
            {
              "name": "SetInboxLimits",
              "anchor": "WebSocketServer.SetInboxLimits",
              "recv": "*WebSocketServer",
              "decl": "func (s *WebSocketServer) SetInboxLimits(l InboxLimits)",
              "doc": "SetInboxLimits bounds the packets the server keeps until Recv takes them (see InboxLimits). A client whose queued reliable packets would pass InboxLimits.Reliable has its session ended, as if it had left.\n",
              "file": "pkg/net/ws_native.go",
              "line": 1141,
              "platforms": [
                "linux",
                "macos",
                "windows",
                "android",
                "ios"
              ]
            }
          ]
        },
        {
          "name": "WebSocketTransport",
          "anchor": "WebSocketTransport",
          "decl": "type WebSocketTransport struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "WebSocketTransport is a client-side RFC 6455 WebSocket Transport. Binary WebSocket frames carry the 5-byte channel+seq wire header.\n\nThe first message each way is the connection handshake: the client presents its token and the server answers with the ID it assigned, or a reason for refusing. A dropped client keeps its session on the server for Auth.GracePeriod, and Reconnect resumes it with the same ID.\n",
          "file": "pkg/net/ws_native.go",
          "line": 265,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DialWebSocket",
              "anchor": "DialWebSocket",
              "decl": "func DialWebSocket(rawURL string, token []byte) (*WebSocketTransport, error)",
              "doc": "DialWebSocket opens an RFC 6455 WebSocket connection to rawURL (ws:// or wss://), presents token in the connection handshake and returns a Transport ready for non-blocking Send/Recv once the server accepts it. The server assigns the client's ID, which LocalID reports. A refusal returns a *RejectError that matches ErrRejected.\n\nThe client pings the server every 2 seconds and counts the connection as dropped, reporting ConnDisconnected, when no frame arrives for 10 seconds.\n",
              "file": "pkg/net/ws_native.go",
              "line": 316
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "WebSocketTransport.Close",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) Close() error",
              "doc": "Close sends a WebSocket close frame and closes the underlying connection. The server reports PeerLeft at once rather than holding the session for a reconnect.\n",
              "file": "pkg/net/ws_native.go",
              "line": 685
            },
            {
              "name": "Err",
              "anchor": "WebSocketTransport.Err",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) Err() error",
              "doc": "Err returns why the client is disconnected: a *RejectError, or ErrDisconnected wrapping the I/O error. It is nil while the connection is open.\n",
              "file": "pkg/net/ws_native.go",
              "line": 664
            },
            {
              "name": "InboxStats",
              "anchor": "WebSocketTransport.InboxStats",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) InboxStats() InboxStats",
              "doc": "InboxStats reports what the transport's inbox holds and what its limits dropped or warned about.\n",
              "file": "pkg/net/ws_native.go",
              "line": 626
            },
            {
              "name": "LocalID",
              "anchor": "WebSocketTransport.LocalID",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) LocalID() PeerID",
              "doc": "LocalID returns the PeerID the server assigned this client.\n",
              "file": "pkg/net/ws_native.go",
              "line": 640
            },
            {
              "name": "Peers",
              "anchor": "WebSocketTransport.Peers",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) Peers() []PeerID",
              "doc": "Peers returns the connected server's PeerID, or nil while disconnected or closed.\n",
              "file": "pkg/net/ws_native.go",
              "line": 647
            },
            {
              "name": "Reconnect",
              "anchor": "WebSocketTransport.Reconnect",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) Reconnect() error",
              "doc": "Reconnect drops the current connection, if any, without a goodbye, dials the server again and resumes the session: within the server's grace period the client keeps its ID, and Resumed reports true. Past it, the server admits the client as a new peer when its token is still valid, and LocalID changes.\n",
              "file": "pkg/net/ws_native.go",
              "line": 337
            },
            {
              "name": "Recv",
              "anchor": "WebSocketTransport.Recv",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) Recv() (Packet, bool)",
              "doc": "Recv pops the next received packet without blocking.\n",
              "file": "pkg/net/ws_native.go",
              "line": 633
            },
            {
              "name": "Resumed",
              "anchor": "WebSocketTransport.Resumed",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) Resumed() bool",
              "doc": "Resumed reports whether the last handshake resumed an existing session, keeping the client's ID.\n",
              "file": "pkg/net/ws_native.go",
              "line": 671
            },
            {
              "name": "Send",
              "anchor": "WebSocketTransport.Send",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) Send(to PeerID, ch Channel, payload []byte) error",
              "doc": "Send frames payload with the 5-byte channel+seq header and sends it as a masked RFC 6455 binary WebSocket frame to the server. It returns ErrDisconnected while the connection is down.\n",
              "file": "pkg/net/ws_native.go",
              "line": 594
            },
            {
              "name": "SetInboxLimits",
              "anchor": "WebSocketTransport.SetInboxLimits",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) SetInboxLimits(l InboxLimits)",
              "doc": "SetInboxLimits bounds the packets the transport keeps until Recv takes them (see InboxLimits).\n",
              "file": "pkg/net/ws_native.go",
              "line": 619
            },
            {
              "name": "State",
              "anchor": "WebSocketTransport.State",
              "recv": "*WebSocketTransport",
              "decl": "func (wt *WebSocketTransport) State() ConnState",
              "doc": "State returns the connection state.\n",
              "file": "pkg/net/ws_native.go",
              "line": 657
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/particles",
      "name": "particles",
      "dir": "pkg/particles",
      "page": "pkg/particles",
      "synopsis": "Package particles provides a deterministic 2D particle emitter stepped by game.Loop and drawn through sprite.Batch.",
      "doc": "Package particles provides a deterministic 2D particle emitter stepped by game.Loop and drawn through sprite.Batch.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "ParticleQuadVertexStride",
              "anchor": "ParticleQuadVertexStride"
            },
            {
              "name": "ParticleQuadCornerOffset",
              "anchor": "ParticleQuadCornerOffset"
            },
            {
              "name": "ParticleQuadUVOffset",
              "anchor": "ParticleQuadUVOffset"
            },
            {
              "name": "ParticleInstanceStride",
              "anchor": "ParticleInstanceStride"
            },
            {
              "name": "ParticleInstanceCenterOffset",
              "anchor": "ParticleInstanceCenterOffset"
            },
            {
              "name": "ParticleInstanceRightOffset",
              "anchor": "ParticleInstanceRightOffset"
            },
            {
              "name": "ParticleInstanceUpOffset",
              "anchor": "ParticleInstanceUpOffset"
            },
            {
              "name": "ParticleInstanceColorOffset",
              "anchor": "ParticleInstanceColorOffset"
            },
            {
              "name": "ParticleCornerLocation",
              "anchor": "ParticleCornerLocation"
            },
            {
              "name": "ParticleUVLocation",
              "anchor": "ParticleUVLocation"
            },
            {
              "name": "ParticleCenterLocation",
              "anchor": "ParticleCenterLocation"
            },
            {
              "name": "ParticleRightLocation",
              "anchor": "ParticleRightLocation"
            },
            {
              "name": "ParticleUpLocation",
              "anchor": "ParticleUpLocation"
            },
            {
              "name": "ParticleColorLocation",
              "anchor": "ParticleColorLocation"
            }
          ],
          "decl": "const (\n\t// ParticleQuadVertexStride is the byte size of one unit-quad vertex: corner (float32x2) + UV (float32x2).\n\tParticleQuadVertexStride = 16\n\t// ParticleQuadCornerOffset is the byte offset of the float32x2 corner in [-0.5, 0.5]².\n\tParticleQuadCornerOffset = 0\n\t// ParticleQuadUVOffset is the byte offset of the float32x2 texture coordinate in [0, 1]².\n\tParticleQuadUVOffset = 8\n\n\t// ParticleInstanceStride is the byte size of one packed 3D particle instance: center (12), right (12), up (12), RGBA8 color (4).\n\tParticleInstanceStride = 40\n\t// ParticleInstanceCenterOffset is the byte offset of the float32x3 world-space quad center.\n\tParticleInstanceCenterOffset = 0\n\t// ParticleInstanceRightOffset is the byte offset of the float32x3 world-space quad right vector (scaled by width).\n\tParticleInstanceRightOffset = 12\n\t// ParticleInstanceUpOffset is the byte offset of the float32x3 world-space quad up vector (scaled by height).\n\tParticleInstanceUpOffset = 24\n\t// ParticleInstanceColorOffset is the byte offset of the unorm8x4 RGBA particle color.\n\tParticleInstanceColorOffset = 36\n\n\t// Shader @location indices for [ParticleVertexLayouts].\n\tParticleCornerLocation = 0\n\tParticleUVLocation     = 1\n\tParticleCenterLocation = 2\n\tParticleRightLocation  = 3\n\tParticleUpLocation     = 4\n\tParticleColorLocation  = 5\n)",
          "doc": "Interleaved vertex and per-instance layouts for instanced 3D particle drawing on [gpu.View].\n\nSlot 0 holds the shared 4-vertex unit quad ([StepVertex]); slot 1 holds one 40-byte instance per live particle ([StepInstance]) written by [Emitter3D.AppendInstances].\n",
          "file": "pkg/particles/gpu3d.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the current schema version of an emitter definition, written by MarshalConfigYAML and MarshalConfigJSON and required by UnmarshalConfigYAML and UnmarshalConfigJSON.\n",
          "file": "pkg/particles/format.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "ParticleSoftCircleWGSL",
              "anchor": "ParticleSoftCircleWGSL"
            }
          ],
          "decl": "const ParticleSoftCircleWGSL = `struct Camera {\n\tview: mat4x4<f32>,\n\tproj: mat4x4<f32>,\n\tview_proj: mat4x4<f32>,\n\teye: vec4<f32>,\n}\n\n@group(0) @binding(0) var<uniform> camera: Camera;\n\nstruct VertexIn {\n\t@location(0) corner: vec2<f32>,\n\t@location(1) uv: vec2<f32>,\n\t@location(2) center: vec3<f32>,\n\t@location(3) right: vec3<f32>,\n\t@location(4) up: vec3<f32>,\n\t@location(5) color: vec4<f32>,\n}\n\nstruct VertexOut {\n\t@builtin(position) clip: vec4<f32>,\n\t@location(0) uv: vec2<f32>,\n\t@location(1) color: vec4<f32>,\n}\n\n@vertex\nfn vs_main(in: VertexIn) -> VertexOut {\n\tvar out: VertexOut;\n\tlet world_pos = in.center + in.right * in.corner.x + in.up * in.corner.y;\n\tout.clip = camera.view_proj * vec4<f32>(world_pos, 1.0);\n\tout.uv = in.uv;\n\tout.color = in.color;\n\treturn out;\n}\n\n@fragment\nfn fs_main(in: VertexOut) -> @location(0) vec4<f32> {\n\tlet d = in.uv * 2.0 - vec2<f32>(1.0, 1.0);\n\tlet mask = clamp(1.0 - dot(d, d), 0.0, 1.0);\n\treturn vec4<f32>(in.color.rgb, in.color.a * mask * mask);\n}\n`",
          "doc": "ParticleSoftCircleWGSL is a WGSL shader module for soft radial-falloff instanced 3D billboard particles without requiring a texture.\n\nIt binds the standard camera uniform at @group(0) @binding(0). Entry points are \"vs_main\" and \"fs_main\".\n",
          "file": "pkg/particles/gpu3d.go",
          "line": 91
        },
        {
          "idents": [
            {
              "name": "ParticleTexturedWGSL",
              "anchor": "ParticleTexturedWGSL"
            }
          ],
          "decl": "const ParticleTexturedWGSL = `struct Camera {\n\tview: mat4x4<f32>,\n\tproj: mat4x4<f32>,\n\tview_proj: mat4x4<f32>,\n\teye: vec4<f32>,\n}\n\n@group(0) @binding(0) var<uniform> camera: Camera;\n@group(1) @binding(0) var particle_tex: texture_2d<f32>;\n@group(1) @binding(1) var particle_sampler: sampler;\n\nstruct VertexIn {\n\t@location(0) corner: vec2<f32>,\n\t@location(1) uv: vec2<f32>,\n\t@location(2) center: vec3<f32>,\n\t@location(3) right: vec3<f32>,\n\t@location(4) up: vec3<f32>,\n\t@location(5) color: vec4<f32>,\n}\n\nstruct VertexOut {\n\t@builtin(position) clip: vec4<f32>,\n\t@location(0) uv: vec2<f32>,\n\t@location(1) color: vec4<f32>,\n}\n\n@vertex\nfn vs_main(in: VertexIn) -> VertexOut {\n\tvar out: VertexOut;\n\tlet world_pos = in.center + in.right * in.corner.x + in.up * in.corner.y;\n\tout.clip = camera.view_proj * vec4<f32>(world_pos, 1.0);\n\tout.uv = in.uv;\n\tout.color = in.color;\n\treturn out;\n}\n\n@fragment\nfn fs_textured(in: VertexOut) -> @location(0) vec4<f32> {\n\treturn textureSample(particle_tex, particle_sampler, in.uv) * in.color;\n}\n`",
          "doc": "ParticleTexturedWGSL is a WGSL shader module for textured instanced 3D billboard particles.\n\nIt binds the standard camera uniform at @group(0) @binding(0), the particle texture at @group(1) @binding(0), and the sampler at @group(1) @binding(1). Entry points are \"vs_main\" and \"fs_textured\".\n",
          "file": "pkg/particles/gpu3d.go",
          "line": 136
        },
        {
          "idents": [
            {
              "name": "ParticleWGSL",
              "anchor": "ParticleWGSL"
            }
          ],
          "decl": "const ParticleWGSL = `struct Camera {\n\tview: mat4x4<f32>,\n\tproj: mat4x4<f32>,\n\tview_proj: mat4x4<f32>,\n\teye: vec4<f32>,\n}\n\n@group(0) @binding(0) var<uniform> camera: Camera;\n\nstruct VertexIn {\n\t@location(0) corner: vec2<f32>,\n\t@location(1) uv: vec2<f32>,\n\t@location(2) center: vec3<f32>,\n\t@location(3) right: vec3<f32>,\n\t@location(4) up: vec3<f32>,\n\t@location(5) color: vec4<f32>,\n}\n\nstruct VertexOut {\n\t@builtin(position) clip: vec4<f32>,\n\t@location(0) uv: vec2<f32>,\n\t@location(1) color: vec4<f32>,\n}\n\n@vertex\nfn vs_main(in: VertexIn) -> VertexOut {\n\tvar out: VertexOut;\n\tlet world_pos = in.center + in.right * in.corner.x + in.up * in.corner.y;\n\tout.clip = camera.view_proj * vec4<f32>(world_pos, 1.0);\n\tout.uv = in.uv;\n\tout.color = in.color;\n\treturn out;\n}\n\n@fragment\nfn fs_main(in: VertexOut) -> @location(0) vec4<f32> {\n\treturn in.color;\n}\n`",
          "doc": "ParticleWGSL is a WGSL shader module for solid-colored instanced 3D billboard particles.\n\nIts @group(0) @binding(0) camera uniform block matches render3d.CameraWGSL (view, proj, view_proj, eye) byte for byte, so render3d.CameraBuffer binds directly to it. Entry points are \"vs_main\" and \"fs_main\".\n",
          "file": "pkg/particles/gpu3d.go",
          "line": 48
        },
        {
          "idents": [
            {
              "name": "SchemaURL",
              "anchor": "SchemaURL"
            }
          ],
          "decl": "const SchemaURL = \"https://game.nsgo.dev/schemas/particles.v1.json\"",
          "doc": "SchemaURL is where the JSON Schema of version 1 2D particle emitter definitions is published.\n",
          "file": "pkg/particles/format.go",
          "line": 26
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "MarshalConfig3DJSON",
          "anchor": "MarshalConfig3DJSON",
          "decl": "func MarshalConfig3DJSON(cfg Emitter3DConfig) ([]byte, error)",
          "doc": "MarshalConfig3DJSON encodes cfg into the versioned JSON form of the 3D emitter definition (version: 1).\n",
          "file": "pkg/particles/format3d.go",
          "line": 174
        },
        {
          "name": "MarshalConfig3DYAML",
          "anchor": "MarshalConfig3DYAML",
          "decl": "func MarshalConfig3DYAML(cfg Emitter3DConfig) ([]byte, error)",
          "doc": "MarshalConfig3DYAML encodes cfg as a versioned YAML 3D emitter definition (version: 1) with fixed key order and 2-space indentation, so saving the same Emitter3DConfig always yields the same bytes.\n",
          "file": "pkg/particles/format3d.go",
          "line": 105
        },
        {
          "name": "MarshalConfigJSON",
          "anchor": "MarshalConfigJSON",
          "decl": "func MarshalConfigJSON(cfg Config) ([]byte, error)",
          "doc": "MarshalConfigJSON encodes cfg into the versioned JSON form of the emitter definition (version: 1). Files people write use YAML (MarshalConfigYAML, SaveConfigFile); the JSON form is for programs that exchange definitions as JSON.\n",
          "file": "pkg/particles/format.go",
          "line": 423
        },
        {
          "name": "MarshalConfigYAML",
          "anchor": "MarshalConfigYAML",
          "decl": "func MarshalConfigYAML(cfg Config) ([]byte, error)",
          "doc": "MarshalConfigYAML encodes cfg as a versioned YAML emitter definition (version: 1) with fixed key order and 2-space indentation, so saving the same Config always yields the same bytes.\n",
          "file": "pkg/particles/format.go",
          "line": 306
        },
        {
          "name": "NewParticlePipeline",
          "anchor": "NewParticlePipeline",
          "decl": "func NewParticlePipeline(cx *core.Scope, dev *gpu.Device, opts ParticlePipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewParticlePipeline compiles the built-in 3D particle WGSL module and creates a [gpu.Pipeline] configured for [GPUParticles3D.Draw], scoped to cx.\n",
          "file": "pkg/particles/gpu3d.go",
          "line": 239
        },
        {
          "name": "ParticleVertexLayouts",
          "anchor": "ParticleVertexLayouts",
          "decl": "func ParticleVertexLayouts() []gpu.VertexBufferLayout",
          "doc": "ParticleVertexLayouts returns the two vertex buffer layouts (slot 0 = unit quad per-vertex, slot 1 = packed particle per-instance) expected by [ParticleWGSL], [ParticleTexturedWGSL] and [GPUParticles3D.Draw].\n",
          "file": "pkg/particles/gpu3d.go",
          "line": 179
        },
        {
          "name": "SaveConfig3DFile",
          "anchor": "SaveConfig3DFile",
          "decl": "func SaveConfig3DFile(path string, cfg Emitter3DConfig) error",
          "doc": "SaveConfig3DFile writes cfg as a versioned YAML 3D emitter definition file to path.\n",
          "file": "pkg/particles/format3d.go",
          "line": 237
        },
        {
          "name": "SaveConfigFile",
          "anchor": "SaveConfigFile",
          "decl": "func SaveConfigFile(path string, cfg Config) error",
          "doc": "SaveConfigFile encodes cfg as a versioned YAML emitter definition and writes it to path.\n",
          "file": "pkg/particles/format.go",
          "line": 468
        }
      ],
      "types": [
        {
          "name": "BillboardMode3D",
          "anchor": "BillboardMode3D",
          "decl": "type BillboardMode3D uint8",
          "doc": "BillboardMode3D selects how [Emitter3D] orients each particle quad toward the camera when packing GPU instances.\n",
          "file": "pkg/particles/emitter3d.go",
          "line": 79,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BillboardSpherical",
                  "anchor": "BillboardSpherical"
                },
                {
                  "name": "BillboardCylindrical",
                  "anchor": "BillboardCylindrical"
                },
                {
                  "name": "BillboardStretched",
                  "anchor": "BillboardStretched"
                }
              ],
              "decl": "const (\n\t// BillboardSpherical aligns every particle quad with the camera's view plane (right and up axes), applying per-particle roll rotation. This is the zero value and fastest mode.\n\tBillboardSpherical BillboardMode3D = iota\n\t// BillboardCylindrical locks each quad's up axis to [Emitter3D.Axis] (defaulting to +Y) and rotates only around that axis to face the camera.\n\tBillboardCylindrical\n\t// BillboardStretched aligns each quad's height axis with the particle's velocity vector and stretches its length proportionally to speed while facing the camera across the velocity axis.\n\tBillboardStretched\n)",
              "doc": "",
              "file": "pkg/particles/emitter3d.go",
              "line": 81
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "BillboardMode3D.String",
              "recv": "BillboardMode3D",
              "decl": "func (m BillboardMode3D) String() string",
              "doc": "String returns the canonical string name of the billboard mode.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 91
            }
          ]
        },
        {
          "name": "Burst",
          "anchor": "Burst",
          "decl": "type Burst struct {\n\t// Time is the elapsed emitter time when the first burst fires (>= 0).\n\tTime time.Duration\n\t// Count is how many particles to emit on each firing (> 0).\n\tCount int\n\t// Cycles is how many times the burst fires: 0 or 1 means once, and a negative value repeats indefinitely every Interval.\n\tCycles int\n\t// Interval is the delay between repeated firings when Cycles != 1 (must be > 0 to repeat).\n\tInterval time.Duration\n}",
          "doc": "Burst schedules an automatic burst of particles during Emitter.Update.\n",
          "file": "pkg/particles/particles.go",
          "line": 44,
          "members": [
            {
              "name": "Time",
              "anchor": "Burst.Time",
              "kind": "field",
              "doc": "Time is the elapsed emitter time when the first burst fires (>= 0)."
            },
            {
              "name": "Count",
              "anchor": "Burst.Count",
              "kind": "field",
              "doc": "Count is how many particles to emit on each firing (> 0)."
            },
            {
              "name": "Cycles",
              "anchor": "Burst.Cycles",
              "kind": "field",
              "doc": "Cycles is how many times the burst fires: 0 or 1 means once, and a negative value repeats indefinitely every Interval."
            },
            {
              "name": "Interval",
              "anchor": "Burst.Interval",
              "kind": "field",
              "doc": "Interval is the delay between repeated firings when Cycles != 1 (must be > 0 to repeat)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BurstDoc",
          "anchor": "BurstDoc",
          "decl": "type BurstDoc struct {\n\t// Time is the elapsed emitter time when the first burst fires, as a Go duration string such as \"250ms\".\n\tTime time.Duration `yaml:\"time,omitempty\"`\n\t// Count is the number of particles emitted on each firing.\n\tCount int `yaml:\"count,omitempty\" schema:\"minimum=0\"`\n\t// Cycles is how many times the burst fires (0 or 1 means once; negative repeats indefinitely every interval).\n\tCycles int `yaml:\"cycles,omitempty\"`\n\t// Interval is the delay between repeated firings as a Go duration string such as \"1s\".\n\tInterval time.Duration `yaml:\"interval,omitempty\"`\n}",
          "doc": "BurstDoc describes one scheduled particle burst in YAML.\n",
          "file": "pkg/particles/schema.go",
          "line": 90,
          "members": [
            {
              "name": "Time",
              "anchor": "BurstDoc.Time",
              "kind": "field",
              "doc": "Time is the elapsed emitter time when the first burst fires, as a Go duration string such as \"250ms\"."
            },
            {
              "name": "Count",
              "anchor": "BurstDoc.Count",
              "kind": "field",
              "doc": "Count is the number of particles emitted on each firing."
            },
            {
              "name": "Cycles",
              "anchor": "BurstDoc.Cycles",
              "kind": "field",
              "doc": "Cycles is how many times the burst fires (0 or 1 means once; negative repeats indefinitely every interval)."
            },
            {
              "name": "Interval",
              "anchor": "BurstDoc.Interval",
              "kind": "field",
              "doc": "Interval is the delay between repeated firings as a Go duration string such as \"1s\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CircleCollider",
          "anchor": "CircleCollider",
          "decl": "type CircleCollider struct {\n\tX, Y, Radius float32\n}",
          "doc": "CircleCollider resolves particle collisions against a solid circle centered at (X, Y) with Radius.\n",
          "file": "pkg/particles/collide.go",
          "line": 441,
          "members": [
            {
              "name": "X",
              "anchor": "CircleCollider.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "CircleCollider.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "CircleCollider.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ResolveParticle",
              "anchor": "CircleCollider.ResolveParticle",
              "recv": "*CircleCollider",
              "decl": "func (c *CircleCollider) ResolveParticle(prevX, prevY, x, y, radius float32) (hit bool, hitX, hitY, nx, ny float32)",
              "doc": "ResolveParticle implements Collider with zero heap allocations.\n",
              "file": "pkg/particles/collide.go",
              "line": 446
            }
          ]
        },
        {
          "name": "Collider",
          "anchor": "Collider",
          "decl": "type Collider interface {\n\tResolveParticle(prevX, prevY, x, y, radius float32) (hit bool, hitX, hitY, nx, ny float32)\n}",
          "doc": "Collider resolves a particle's movement from (prevX, prevY) to (x, y) with the given radius.\nWhen hit is true, (hitX, hitY) is the resolved particle center position and (nx, ny) is the unit surface normal pointing out of the obstacle.\n",
          "file": "pkg/particles/collide.go",
          "line": 35,
          "members": [
            {
              "name": "ResolveParticle",
              "anchor": "Collider.ResolveParticle",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CollisionConfig",
          "anchor": "CollisionConfig",
          "decl": "type CollisionConfig struct {\n\t// Enabled turns collision checking on during Update when true and Collider is non-nil.\n\tEnabled bool\n\t// Mode controls the particle's response on impact.\n\tMode CollisionMode\n\t// Bounce is the restitution factor applied to the normal velocity component in CollideBounce mode.\n\tBounce float32\n\t// Friction damps tangential velocity on impact in CollideBounce mode, clamped to [0, 1].\n\tFriction float32\n\t// Radius is the particle's collision radius in points (>= 0).\n\tRadius float32\n\t// Collider tests and resolves particle contacts. Not serialized in JSON configs.\n\tCollider Collider\n}",
          "doc": "CollisionConfig configures particle collision detection and response on an Emitter.\n",
          "file": "pkg/particles/collide.go",
          "line": 40,
          "members": [
            {
              "name": "Enabled",
              "anchor": "CollisionConfig.Enabled",
              "kind": "field",
              "doc": "Enabled turns collision checking on during Update when true and Collider is non-nil."
            },
            {
              "name": "Mode",
              "anchor": "CollisionConfig.Mode",
              "kind": "field",
              "doc": "Mode controls the particle's response on impact."
            },
            {
              "name": "Bounce",
              "anchor": "CollisionConfig.Bounce",
              "kind": "field",
              "doc": "Bounce is the restitution factor applied to the normal velocity component in CollideBounce mode."
            },
            {
              "name": "Friction",
              "anchor": "CollisionConfig.Friction",
              "kind": "field",
              "doc": "Friction damps tangential velocity on impact in CollideBounce mode, clamped to [0, 1]."
            },
            {
              "name": "Radius",
              "anchor": "CollisionConfig.Radius",
              "kind": "field",
              "doc": "Radius is the particle's collision radius in points (>= 0)."
            },
            {
              "name": "Collider",
              "anchor": "CollisionConfig.Collider",
              "kind": "field",
              "doc": "Collider tests and resolves particle contacts. Not serialized in JSON configs."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CollisionDoc",
          "anchor": "CollisionDoc",
          "decl": "type CollisionDoc struct {\n\t// Enabled turns particle collision checking on when a runtime Collider is attached.\n\tEnabled bool `yaml:\"enabled,omitempty\"`\n\t// Mode selects the impact response: \"none\", \"stop\", \"bounce\" or \"kill\".\n\tMode string `yaml:\"mode,omitempty\" schema:\"enum=none|stop|bounce|kill\"`\n\t// Bounce is the restitution factor applied to normal velocity in \"bounce\" mode.\n\tBounce float32 `yaml:\"bounce,omitempty\"`\n\t// Friction damps tangential velocity on impact in \"bounce\" mode, clamped to [0, 1].\n\tFriction float32 `yaml:\"friction,omitempty\"`\n\t// Radius is the particle collision radius in points.\n\tRadius float32 `yaml:\"radius,omitempty\"`\n}",
          "doc": "CollisionDoc describes particle collision settings in YAML.\n",
          "file": "pkg/particles/schema.go",
          "line": 118,
          "members": [
            {
              "name": "Enabled",
              "anchor": "CollisionDoc.Enabled",
              "kind": "field",
              "doc": "Enabled turns particle collision checking on when a runtime Collider is attached."
            },
            {
              "name": "Mode",
              "anchor": "CollisionDoc.Mode",
              "kind": "field",
              "doc": "Mode selects the impact response: \"none\", \"stop\", \"bounce\" or \"kill\"."
            },
            {
              "name": "Bounce",
              "anchor": "CollisionDoc.Bounce",
              "kind": "field",
              "doc": "Bounce is the restitution factor applied to normal velocity in \"bounce\" mode."
            },
            {
              "name": "Friction",
              "anchor": "CollisionDoc.Friction",
              "kind": "field",
              "doc": "Friction damps tangential velocity on impact in \"bounce\" mode, clamped to [0, 1]."
            },
            {
              "name": "Radius",
              "anchor": "CollisionDoc.Radius",
              "kind": "field",
              "doc": "Radius is the particle collision radius in points."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CollisionMode",
          "anchor": "CollisionMode",
          "decl": "type CollisionMode uint8",
          "doc": "CollisionMode controls how a particle responds when it hits a Collider.\n",
          "file": "pkg/particles/collide.go",
          "line": 6,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CollideNone",
                  "anchor": "CollideNone"
                },
                {
                  "name": "CollideStop",
                  "anchor": "CollideStop"
                },
                {
                  "name": "CollideBounce",
                  "anchor": "CollideBounce"
                },
                {
                  "name": "CollideKill",
                  "anchor": "CollideKill"
                }
              ],
              "decl": "const (\n\t// CollideNone disables collision response.\n\tCollideNone CollisionMode = iota\n\t// CollideStop halts the particle at the contact point with zero velocity.\n\tCollideStop\n\t// CollideBounce reflects the particle's velocity using Bounce (restitution) and Friction.\n\tCollideBounce\n\t// CollideKill immediately expires the particle upon impact.\n\tCollideKill\n)",
              "doc": "",
              "file": "pkg/particles/collide.go",
              "line": 8
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "CollisionMode.String",
              "recv": "CollisionMode",
              "decl": "func (m CollisionMode) String() string",
              "doc": "String returns the canonical string name of the collision mode.\n",
              "file": "pkg/particles/collide.go",
              "line": 20
            }
          ]
        },
        {
          "name": "ColorCurve",
          "anchor": "ColorCurve",
          "decl": "type ColorCurve []ColorStop",
          "doc": "ColorCurve maps a particle's normalized age in [0, 1] to a core.Color by linear RGBA interpolation between stops ordered by T.\nAn empty curve returns opaque white (0xffffffff).\n",
          "file": "pkg/particles/curve.go",
          "line": 52,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "At",
              "anchor": "ColorCurve.At",
              "recv": "ColorCurve",
              "decl": "func (c ColorCurve) At(t float32) core.Color",
              "doc": "At returns the curve's color at normalized age t, clamped to [0, 1].\n",
              "file": "pkg/particles/curve.go",
              "line": 55
            }
          ]
        },
        {
          "name": "ColorStop",
          "anchor": "ColorStop",
          "decl": "type ColorStop struct {\n\tT     float32\n\tColor core.Color\n}",
          "doc": "ColorStop is one control point on a ColorCurve at normalized particle age T in [0, 1].\n",
          "file": "pkg/particles/curve.go",
          "line": 45,
          "members": [
            {
              "name": "T",
              "anchor": "ColorStop.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "ColorStop.Color",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ColorStopDoc",
          "anchor": "ColorStopDoc",
          "decl": "type ColorStopDoc struct {\n\t// T is the normalized particle age in [0, 1].\n\tT float32 `yaml:\"t\"`\n\t// Color is a quoted hex color string \"#rrggbb\" or \"#rrggbbaa\".\n\tColor string `yaml:\"color\"`\n}",
          "doc": "ColorStopDoc is one control point on a color curve at normalized age t in [0, 1].\n",
          "file": "pkg/particles/schema.go",
          "line": 110,
          "members": [
            {
              "name": "T",
              "anchor": "ColorStopDoc.T",
              "kind": "field",
              "doc": "T is the normalized particle age in [0, 1]."
            },
            {
              "name": "Color",
              "anchor": "ColorStopDoc.Color",
              "kind": "field",
              "doc": "Color is a quoted hex color string \"#rrggbb\" or \"#rrggbbaa\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Config",
          "anchor": "Config",
          "decl": "type Config struct {\n\tX, Y               float32\n\tRotation           float32\n\tSpace              SimulationSpace\n\tShape              Shape\n\tRate               float32\n\tBursts             []Burst\n\tMaxParticles       int\n\tLifetimeMin        time.Duration\n\tLifetimeMax        time.Duration\n\tSpeedMin           float32\n\tSpeedMax           float32\n\tAngleMin           float32\n\tAngleMax           float32\n\tGravityX           float32\n\tGravityY           float32\n\tInitialRotationMin float32\n\tInitialRotationMax float32\n\tRotationSpeedMin   float32\n\tRotationSpeedMax   float32\n\tSizeCurve          FloatCurve\n\tAlphaCurve         FloatCurve\n\tRotationCurve      FloatCurve\n\tColorCurve         ColorCurve\n\tSeed               uint64\n\tZ                  int\n\tFrameNames         []string\n\tCollision          CollisionConfig\n\tTrail              *TrailConfig\n\tSubEmitters        []SubEmitterRule\n}",
          "doc": "Config is a serializable, reloadable snapshot of an Emitter's configuration.\n",
          "file": "pkg/particles/space.go",
          "line": 86,
          "members": [
            {
              "name": "X",
              "anchor": "Config.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Config.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "Config.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Space",
              "anchor": "Config.Space",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "Config.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rate",
              "anchor": "Config.Rate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bursts",
              "anchor": "Config.Bursts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxParticles",
              "anchor": "Config.MaxParticles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LifetimeMin",
              "anchor": "Config.LifetimeMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LifetimeMax",
              "anchor": "Config.LifetimeMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpeedMin",
              "anchor": "Config.SpeedMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpeedMax",
              "anchor": "Config.SpeedMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngleMin",
              "anchor": "Config.AngleMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngleMax",
              "anchor": "Config.AngleMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityX",
              "anchor": "Config.GravityX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityY",
              "anchor": "Config.GravityY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InitialRotationMin",
              "anchor": "Config.InitialRotationMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InitialRotationMax",
              "anchor": "Config.InitialRotationMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotationSpeedMin",
              "anchor": "Config.RotationSpeedMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotationSpeedMax",
              "anchor": "Config.RotationSpeedMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeCurve",
              "anchor": "Config.SizeCurve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlphaCurve",
              "anchor": "Config.AlphaCurve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotationCurve",
              "anchor": "Config.RotationCurve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorCurve",
              "anchor": "Config.ColorCurve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "Config.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Config.Z",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameNames",
              "anchor": "Config.FrameNames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Collision",
              "anchor": "Config.Collision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Trail",
              "anchor": "Config.Trail",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SubEmitters",
              "anchor": "Config.SubEmitters",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadConfigFS",
              "anchor": "LoadConfigFS",
              "decl": "func LoadConfigFS(fsys fs.FS, name string) (Config, error)",
              "doc": "LoadConfigFS reads and decodes a versioned YAML emitter definition file from fsys. Its errors are *loaderr.Error values that name the file.\n",
              "file": "pkg/particles/format.go",
              "line": 477
            },
            {
              "name": "LoadConfigFile",
              "anchor": "LoadConfigFile",
              "decl": "func LoadConfigFile(path string) (Config, error)",
              "doc": "LoadConfigFile reads and decodes a versioned YAML emitter definition file from disk. Its errors are *loaderr.Error values that name path.\n",
              "file": "pkg/particles/format.go",
              "line": 458
            },
            {
              "name": "UnmarshalConfigJSON",
              "anchor": "UnmarshalConfigJSON",
              "decl": "func UnmarshalConfigJSON(data []byte) (Config, error)",
              "doc": "UnmarshalConfigJSON decodes the versioned JSON form of an emitter definition into a Config. Its errors are *loaderr.Error values, as UnmarshalConfigYAML's are.\n",
              "file": "pkg/particles/format.go",
              "line": 432
            },
            {
              "name": "UnmarshalConfigYAML",
              "anchor": "UnmarshalConfigYAML",
              "decl": "func UnmarshalConfigYAML(data []byte) (Config, error)",
              "doc": "UnmarshalConfigYAML decodes a versioned YAML emitter definition into a Config. It refuses unknown fields, a key with no value, a second YAML document, a version other than FormatVersion or one inside a sub-emitter, an integer field written with a fraction, a shape size that does not apply to its kind, durations that are not strings such as \"500ms\", and colors that are not quoted \"#rrggbb\" or \"#rrggbbaa\" strings.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile, as LoadConfigFile does.\n",
              "file": "pkg/particles/format.go",
              "line": 332
            }
          ],
          "methods": []
        },
        {
          "name": "Curve",
          "anchor": "Curve",
          "decl": "type Curve = FloatCurve",
          "doc": "Curve is an alias for FloatCurve.\n",
          "file": "pkg/particles/curve.go",
          "line": 16,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Emitter",
          "anchor": "Emitter",
          "decl": "type Emitter struct {\n\t// Atlas holds the image that Frames reference. Draw skips particle sprites when Atlas is nil.\n\tAtlas *sprite.Atlas\n\t// Frames are the atlas frames particles choose from at spawn time.\n\tFrames []sprite.Frame\n\t// X and Y are the emitter's position in the drawing.\n\tX, Y float32\n\t// Rotation is the emitter's rotation in radians, clockwise on the screen.\n\tRotation float32\n\t// Space controls whether particles simulate in world space (SpaceWorld, default) or emitter-local space (SpaceLocal).\n\tSpace SimulationSpace\n\t// Shape controls where particles spawn relative to X, Y; its zero value is Point.\n\tShape Shape\n\t// Rate is how many particles emit per second during Update; 0 or less disables continuous emission.\n\tRate float32\n\t// Bursts schedules automatic bursts of particles at specific elapsed times during Update.\n\tBursts []Burst\n\t// MaxParticles caps how many particles may be live at once, 256 when 0 or less.\n\tMaxParticles int\n\t// LifetimeMin and LifetimeMax give how long each particle lives; both 0 defaults to one second, and a LifetimeMax below LifetimeMin matches LifetimeMin.\n\tLifetimeMin, LifetimeMax time.Duration\n\t// SpeedMin and SpeedMax give each particle's initial speed in points per second.\n\tSpeedMin, SpeedMax float32\n\t// AngleMin and AngleMax give each particle's initial direction of travel in radians, clockwise from +X.\n\tAngleMin, AngleMax float32\n\t// GravityX and GravityY are constant acceleration applied to live particles, in points per second squared.\n\tGravityX, GravityY float32\n\t// InitialRotationMin and InitialRotationMax give each particle's starting rotation in radians.\n\tInitialRotationMin, InitialRotationMax float32\n\t// RotationSpeedMin and RotationSpeedMax give each particle's angular velocity in radians per second.\n\tRotationSpeedMin, RotationSpeedMax float32\n\t// SizeCurve scales each particle over its normalized life in [0, 1]; empty scales by 1.\n\tSizeCurve FloatCurve\n\t// AlphaCurve fades each particle over its normalized life in [0, 1]; empty keeps opacity at 1.\n\tAlphaCurve FloatCurve\n\t// RotationCurve adds rotation in radians over a particle's normalized life in [0, 1]; empty adds 0.\n\tRotationCurve FloatCurve\n\t// ColorCurve evaluates a color over each particle's normalized life in [0, 1] and stores it on Particle.Color. Draw tints each particle's sprite by the color's RGB, and its alpha channel multiplies AlphaCurve into Particle.Alpha.\n\tColorCurve ColorCurve\n\t// Seed seeds the emitter's PCG PRNG for deterministic emission and motion.\n\tSeed uint64\n\t// Z sets the sprite Z order used when drawing this emitter's particles.\n\tZ int\n\t// Collision configures optional particle collision detection and response against a Collider.\n\tCollision CollisionConfig\n\t// Trail, when non-nil, automatically attaches a 2D ribbon trail to each emitted particle.\n\tTrail *TrailConfig\n\t// SubEmitters configures child bursts triggered on particle birth, death, or collision.\n\tSubEmitters []SubEmitterRule\n\t// contains filtered or unexported fields\n}",
          "doc": "Emitter spawns, updates and draws 2D particles deterministically from a seeded PRNG.\n\nCall Update from a game.Loop's fixed step and Draw from a Canvas's Draw callback. Continuous emission runs whenever Rate > 0; call Burst to emit particles on demand regardless of Rate.\n\nTwo emitters configured with the same fields and Seed and stepped identically produce bit-for-bit identical particles and draw operations.\n",
          "file": "pkg/particles/particles.go",
          "line": 60,
          "members": [
            {
              "name": "Atlas",
              "anchor": "Emitter.Atlas",
              "kind": "field",
              "doc": "Atlas holds the image that Frames reference. Draw skips particle sprites when Atlas is nil."
            },
            {
              "name": "Frames",
              "anchor": "Emitter.Frames",
              "kind": "field",
              "doc": "Frames are the atlas frames particles choose from at spawn time."
            },
            {
              "name": "X",
              "anchor": "Emitter.X",
              "kind": "field",
              "doc": "X and Y are the emitter's position in the drawing."
            },
            {
              "name": "Y",
              "anchor": "Emitter.Y",
              "kind": "field",
              "doc": "X and Y are the emitter's position in the drawing."
            },
            {
              "name": "Rotation",
              "anchor": "Emitter.Rotation",
              "kind": "field",
              "doc": "Rotation is the emitter's rotation in radians, clockwise on the screen."
            },
            {
              "name": "Space",
              "anchor": "Emitter.Space",
              "kind": "field",
              "doc": "Space controls whether particles simulate in world space (SpaceWorld, default) or emitter-local space (SpaceLocal)."
            },
            {
              "name": "Shape",
              "anchor": "Emitter.Shape",
              "kind": "field",
              "doc": "Shape controls where particles spawn relative to X, Y; its zero value is Point."
            },
            {
              "name": "Rate",
              "anchor": "Emitter.Rate",
              "kind": "field",
              "doc": "Rate is how many particles emit per second during Update; 0 or less disables continuous emission."
            },
            {
              "name": "Bursts",
              "anchor": "Emitter.Bursts",
              "kind": "field",
              "doc": "Bursts schedules automatic bursts of particles at specific elapsed times during Update."
            },
            {
              "name": "MaxParticles",
              "anchor": "Emitter.MaxParticles",
              "kind": "field",
              "doc": "MaxParticles caps how many particles may be live at once, 256 when 0 or less."
            },
            {
              "name": "LifetimeMin",
              "anchor": "Emitter.LifetimeMin",
              "kind": "field",
              "doc": "LifetimeMin and LifetimeMax give how long each particle lives; both 0 defaults to one second, and a LifetimeMax below LifetimeMin matches LifetimeMin."
            },
            {
              "name": "LifetimeMax",
              "anchor": "Emitter.LifetimeMax",
              "kind": "field",
              "doc": "LifetimeMin and LifetimeMax give how long each particle lives; both 0 defaults to one second, and a LifetimeMax below LifetimeMin matches LifetimeMin."
            },
            {
              "name": "SpeedMin",
              "anchor": "Emitter.SpeedMin",
              "kind": "field",
              "doc": "SpeedMin and SpeedMax give each particle's initial speed in points per second."
            },
            {
              "name": "SpeedMax",
              "anchor": "Emitter.SpeedMax",
              "kind": "field",
              "doc": "SpeedMin and SpeedMax give each particle's initial speed in points per second."
            },
            {
              "name": "AngleMin",
              "anchor": "Emitter.AngleMin",
              "kind": "field",
              "doc": "AngleMin and AngleMax give each particle's initial direction of travel in radians, clockwise from +X."
            },
            {
              "name": "AngleMax",
              "anchor": "Emitter.AngleMax",
              "kind": "field",
              "doc": "AngleMin and AngleMax give each particle's initial direction of travel in radians, clockwise from +X."
            },
            {
              "name": "GravityX",
              "anchor": "Emitter.GravityX",
              "kind": "field",
              "doc": "GravityX and GravityY are constant acceleration applied to live particles, in points per second squared."
            },
            {
              "name": "GravityY",
              "anchor": "Emitter.GravityY",
              "kind": "field",
              "doc": "GravityX and GravityY are constant acceleration applied to live particles, in points per second squared."
            },
            {
              "name": "InitialRotationMin",
              "anchor": "Emitter.InitialRotationMin",
              "kind": "field",
              "doc": "InitialRotationMin and InitialRotationMax give each particle's starting rotation in radians."
            },
            {
              "name": "InitialRotationMax",
              "anchor": "Emitter.InitialRotationMax",
              "kind": "field",
              "doc": "InitialRotationMin and InitialRotationMax give each particle's starting rotation in radians."
            },
            {
              "name": "RotationSpeedMin",
              "anchor": "Emitter.RotationSpeedMin",
              "kind": "field",
              "doc": "RotationSpeedMin and RotationSpeedMax give each particle's angular velocity in radians per second."
            },
            {
              "name": "RotationSpeedMax",
              "anchor": "Emitter.RotationSpeedMax",
              "kind": "field",
              "doc": "RotationSpeedMin and RotationSpeedMax give each particle's angular velocity in radians per second."
            },
            {
              "name": "SizeCurve",
              "anchor": "Emitter.SizeCurve",
              "kind": "field",
              "doc": "SizeCurve scales each particle over its normalized life in [0, 1]; empty scales by 1."
            },
            {
              "name": "AlphaCurve",
              "anchor": "Emitter.AlphaCurve",
              "kind": "field",
              "doc": "AlphaCurve fades each particle over its normalized life in [0, 1]; empty keeps opacity at 1."
            },
            {
              "name": "RotationCurve",
              "anchor": "Emitter.RotationCurve",
              "kind": "field",
              "doc": "RotationCurve adds rotation in radians over a particle's normalized life in [0, 1]; empty adds 0."
            },
            {
              "name": "ColorCurve",
              "anchor": "Emitter.ColorCurve",
              "kind": "field",
              "doc": "ColorCurve evaluates a color over each particle's normalized life in [0, 1] and stores it on Particle.Color. Draw tints each particle's sprite by the color's RGB, and its alpha channel multiplies AlphaCurve into Particle.Alpha."
            },
            {
              "name": "Seed",
              "anchor": "Emitter.Seed",
              "kind": "field",
              "doc": "Seed seeds the emitter's PCG PRNG for deterministic emission and motion."
            },
            {
              "name": "Z",
              "anchor": "Emitter.Z",
              "kind": "field",
              "doc": "Z sets the sprite Z order used when drawing this emitter's particles."
            },
            {
              "name": "Collision",
              "anchor": "Emitter.Collision",
              "kind": "field",
              "doc": "Collision configures optional particle collision detection and response against a Collider."
            },
            {
              "name": "Trail",
              "anchor": "Emitter.Trail",
              "kind": "field",
              "doc": "Trail, when non-nil, automatically attaches a 2D ribbon trail to each emitted particle."
            },
            {
              "name": "SubEmitters",
              "anchor": "Emitter.SubEmitters",
              "kind": "field",
              "doc": "SubEmitters configures child bursts triggered on particle birth, death, or collision."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewEmitter",
              "anchor": "NewEmitter",
              "decl": "func NewEmitter(cfg Config) *Emitter",
              "doc": "NewEmitter constructs an Emitter initialized from cfg.\n",
              "file": "pkg/particles/space.go",
              "line": 152
            }
          ],
          "methods": [
            {
              "name": "Attach",
              "anchor": "Emitter.Attach",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Attach(posFn func() (float32, float32))",
              "doc": "Attach binds a position callback so the emitter tracks a moving object on every Update.\nCalling Attach immediately syncs X, Y to posFn(). Passing nil detaches.\n",
              "file": "pkg/particles/space.go",
              "line": 202
            },
            {
              "name": "AttachTrail",
              "anchor": "Emitter.AttachTrail",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) AttachTrail(cfg TrailConfig)",
              "doc": "AttachTrail enables automatic per-particle ribbon trails on the emitter using cfg.\n",
              "file": "pkg/particles/trail.go",
              "line": 525
            },
            {
              "name": "AttachTransform",
              "anchor": "Emitter.AttachTransform",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) AttachTransform(fn func() (x, y, rotation float32))",
              "doc": "AttachTransform binds a position and rotation callback so the emitter tracks a moving, rotating object on every Update.\nCalling AttachTransform immediately syncs X, Y, Rotation. Passing nil detaches.\n",
              "file": "pkg/particles/space.go",
              "line": 215
            },
            {
              "name": "Burst",
              "anchor": "Emitter.Burst",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Burst(count int)",
              "doc": "Burst immediately emits up to count particles without waiting for Update or requiring Rate > 0, stopping at MaxParticles.\n",
              "file": "pkg/particles/particles.go",
              "line": 407
            },
            {
              "name": "Children",
              "anchor": "Emitter.Children",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Children() []*Emitter",
              "doc": "Children returns the managed child emitters created for SubEmitters.\n",
              "file": "pkg/particles/space.go",
              "line": 287
            },
            {
              "name": "Clear",
              "anchor": "Emitter.Clear",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Clear()",
              "doc": "Clear removes all live particles, trails, and child sub-emitter particles, and resets the fractional emission accumulator without resetting the PRNG.\n",
              "file": "pkg/particles/particles.go",
              "line": 536
            },
            {
              "name": "Config",
              "anchor": "Emitter.Config",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Config() Config",
              "doc": "Config returns a deep-copied Config reflecting the emitter's current settings.\n",
              "file": "pkg/particles/space.go",
              "line": 159
            },
            {
              "name": "Count",
              "anchor": "Emitter.Count",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Count() int",
              "doc": "Count returns the number of currently live particles in this emitter (excluding child sub-emitters).\n",
              "file": "pkg/particles/particles.go",
              "line": 529
            },
            {
              "name": "Detach",
              "anchor": "Emitter.Detach",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Detach()",
              "doc": "Detach clears any callback bound via Attach or AttachTransform.\n",
              "file": "pkg/particles/space.go",
              "line": 227
            },
            {
              "name": "DetachTrail",
              "anchor": "Emitter.DetachTrail",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) DetachTrail()",
              "doc": "DetachTrail disables automatic per-particle ribbon trails on the emitter.\nExisting particle trails fade out naturally as their points expire.\n",
              "file": "pkg/particles/trail.go",
              "line": 538
            },
            {
              "name": "Draw",
              "anchor": "Emitter.Draw",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Draw(d *core.Drawing)",
              "doc": "Draw draws particle trails, all live particles through a reusable sprite.Batch (oldest first), and any managed child sub-emitters into d.\n",
              "file": "pkg/particles/particles.go",
              "line": 430
            },
            {
              "name": "Follow",
              "anchor": "Emitter.Follow",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Follow(x, y float32)",
              "doc": "Follow moves the emitter smoothly to (x, y), recording the previous position so multi-particle continuous emission interpolates along the motion path.\n",
              "file": "pkg/particles/space.go",
              "line": 233
            },
            {
              "name": "ParticleTrails",
              "anchor": "Emitter.ParticleTrails",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) ParticleTrails() []*Trail",
              "doc": "ParticleTrails returns the currently live particle trails in spawn order.\n",
              "file": "pkg/particles/trail.go",
              "line": 563
            },
            {
              "name": "ParticleWorldPos",
              "anchor": "Emitter.ParticleWorldPos",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) ParticleWorldPos(p Particle) (x, y float32)",
              "doc": "ParticleWorldPos converts a particle's coordinates to world coordinates.\nFor SpaceWorld emitters this returns (p.X, p.Y) unchanged; for SpaceLocal emitters it applies X, Y, and Rotation.\n",
              "file": "pkg/particles/space.go",
              "line": 243
            },
            {
              "name": "Particles",
              "anchor": "Emitter.Particles",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Particles() []Particle",
              "doc": "Particles returns the live particles in spawn order.\nThe returned slice is backed by the emitter's storage and reused on subsequent updates; copy it to retain a snapshot.\n",
              "file": "pkg/particles/particles.go",
              "line": 533
            },
            {
              "name": "ReloadConfig",
              "anchor": "Emitter.ReloadConfig",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) ReloadConfig(cfg Config)",
              "doc": "ReloadConfig applies cfg to a running Emitter without resetting live particles, PRNG state, attachment callbacks, or runtime colliders.\n",
              "file": "pkg/particles/format.go",
              "line": 921
            },
            {
              "name": "Reset",
              "anchor": "Emitter.Reset",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Reset()",
              "doc": "Reset clears all live particles, trails, and child sub-emitters and re-seeds the PRNG from Seed so subsequent updates replay identically.\n",
              "file": "pkg/particles/particles.go",
              "line": 566
            },
            {
              "name": "TotalCount",
              "anchor": "Emitter.TotalCount",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) TotalCount() int",
              "doc": "TotalCount returns the number of live particles in this emitter plus all managed child sub-emitters recursively.\n",
              "file": "pkg/particles/space.go",
              "line": 292
            },
            {
              "name": "TrailCount",
              "anchor": "Emitter.TrailCount",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) TrailCount() int",
              "doc": "TrailCount returns the total number of active and fading particle trails owned by the emitter.\n",
              "file": "pkg/particles/trail.go",
              "line": 552
            },
            {
              "name": "Update",
              "anchor": "Emitter.Update",
              "recv": "*Emitter",
              "decl": "func (e *Emitter) Update(dt time.Duration)",
              "doc": "Update advances live particles by dt, removes expired ones, resolves collisions, updates trails and sub-emitters, and emits new particles at Rate.\nNon-positive dt does nothing.\n",
              "file": "pkg/particles/particles.go",
              "line": 134
            }
          ]
        },
        {
          "name": "Emitter3D",
          "anchor": "Emitter3D",
          "decl": "type Emitter3D struct {\n\t// Position is the emitter's world-space origin.\n\tPosition math3d.Vec3\n\t// Direction is the primary emission axis; zero defaults to +Y (0, 1, 0).\n\tDirection math3d.Vec3\n\t// Up is the reference up axis used to build the emitter's local frame; zero picks a deterministic perpendicular axis.\n\tUp math3d.Vec3\n\t// Rotation is an optional emitter orientation quaternion; zero is treated as identity. In SpaceLocal it rotates all live particles when packing; in SpaceWorld it rotates spawned offsets and velocities.\n\tRotation math3d.Quat\n\t// Space controls whether particles simulate in world coordinates (SpaceWorld, default) or emitter-local coordinates (SpaceLocal).\n\tSpace SimulationSpace\n\t// Shape controls where new particles spawn relative to Position; its zero value is Point3D.\n\tShape Shape3D\n\t// Billboard selects how quads face the camera when AppendInstances packs GPU data.\n\tBillboard BillboardMode3D\n\t// Blend records the preferred GPU blend mode for pipelines built for this emitter.\n\tBlend ParticleBlendMode\n\t// StretchFactor scales velocity elongation in seconds for BillboardStretched (length = size + speed * StretchFactor); <= 0 defaults to 0.05.\n\tStretchFactor float32\n\t// Axis is the locked world up axis for BillboardCylindrical; zero defaults to +Y (0, 1, 0).\n\tAxis math3d.Vec3\n\t// Rate is how many particles emit per second during Step/Update; 0 or less disables continuous emission.\n\tRate float32\n\t// MaxParticles caps how many particles may be live at once, 256 when 0 or less.\n\tMaxParticles int\n\t// LifetimeMin and LifetimeMax give how long each particle lives; both 0 defaults to one second, and a LifetimeMax below LifetimeMin matches LifetimeMin.\n\tLifetimeMin, LifetimeMax time.Duration\n\t// SpeedMin and SpeedMax give each particle's initial speed in world units per second.\n\tSpeedMin, SpeedMax float32\n\t// Spread is the emission cone half-angle in radians around Direction, clamped to [0, pi]. Zero emits straight along Direction; pi emits uniformly in all directions.\n\tSpread float32\n\t// Drag is exponential linear velocity damping in 1/s (>= 0); zero disables drag.\n\tDrag float32\n\t// Gravity is constant acceleration applied to live particles in world units per second squared.\n\tGravity math3d.Vec3\n\t// SizeMin and SizeMax give each particle's base world-space quad size before SizeCurve; both <= 0 defaults to 1.\n\tSizeMin, SizeMax float32\n\t// InitialRotationMin and InitialRotationMax give each particle's starting roll angle in radians.\n\tInitialRotationMin, InitialRotationMax float32\n\t// RotationSpeedMin and RotationSpeedMax give each particle's roll angular velocity in radians per second.\n\tRotationSpeedMin, RotationSpeedMax float32\n\t// SizeCurve scales each particle's base size over its normalized age in [0, 1]; empty scales by 1.\n\tSizeCurve FloatCurve\n\t// AlphaCurve fades each particle over its normalized age in [0, 1]; empty keeps opacity at 1.\n\tAlphaCurve FloatCurve\n\t// RotationCurve adds roll rotation in radians over a particle's normalized age in [0, 1]; empty adds 0.\n\tRotationCurve FloatCurve\n\t// ColorCurve evaluates a color over each particle's normalized age in [0, 1]; empty uses Color (or opaque white when Color is 0).\n\tColorCurve ColorCurve\n\t// Color is the base particle color used when ColorCurve is empty; zero means opaque white (0xffffffff).\n\tColor core.Color\n\t// Seed seeds the emitter's PCG PRNG for deterministic emission and motion.\n\tSeed uint64\n\t// contains filtered or unexported fields\n}",
          "doc": "Emitter3D spawns, updates and packs 3D particles deterministically from a seeded PRNG for instanced GPU rendering.\n\nIt shares the emitter model of 2D [Emitter] (Rate, MaxParticles, LifetimeMin/Max, SpeedMin/Max, curves, SimulationSpace, Seed, Burst, Clear, Reset) and stores live particles in dense structure-of-arrays slices with swap-remove expiration so stepping and packing 10,000 particles allocates zero memory in steady state.\n\nTwo emitters configured with the same fields and Seed and stepped identically produce bit-for-bit identical particles and packed GPU instance bytes.\n",
          "file": "pkg/particles/emitter3d.go",
          "line": 203,
          "members": [
            {
              "name": "Position",
              "anchor": "Emitter3D.Position",
              "kind": "field",
              "doc": "Position is the emitter's world-space origin."
            },
            {
              "name": "Direction",
              "anchor": "Emitter3D.Direction",
              "kind": "field",
              "doc": "Direction is the primary emission axis; zero defaults to +Y (0, 1, 0)."
            },
            {
              "name": "Up",
              "anchor": "Emitter3D.Up",
              "kind": "field",
              "doc": "Up is the reference up axis used to build the emitter's local frame; zero picks a deterministic perpendicular axis."
            },
            {
              "name": "Rotation",
              "anchor": "Emitter3D.Rotation",
              "kind": "field",
              "doc": "Rotation is an optional emitter orientation quaternion; zero is treated as identity. In SpaceLocal it rotates all live particles when packing; in SpaceWorld it rotates spawned offsets and velocities."
            },
            {
              "name": "Space",
              "anchor": "Emitter3D.Space",
              "kind": "field",
              "doc": "Space controls whether particles simulate in world coordinates (SpaceWorld, default) or emitter-local coordinates (SpaceLocal)."
            },
            {
              "name": "Shape",
              "anchor": "Emitter3D.Shape",
              "kind": "field",
              "doc": "Shape controls where new particles spawn relative to Position; its zero value is Point3D."
            },
            {
              "name": "Billboard",
              "anchor": "Emitter3D.Billboard",
              "kind": "field",
              "doc": "Billboard selects how quads face the camera when AppendInstances packs GPU data."
            },
            {
              "name": "Blend",
              "anchor": "Emitter3D.Blend",
              "kind": "field",
              "doc": "Blend records the preferred GPU blend mode for pipelines built for this emitter."
            },
            {
              "name": "StretchFactor",
              "anchor": "Emitter3D.StretchFactor",
              "kind": "field",
              "doc": "StretchFactor scales velocity elongation in seconds for BillboardStretched (length = size + speed * StretchFactor); <= 0 defaults to 0.05."
            },
            {
              "name": "Axis",
              "anchor": "Emitter3D.Axis",
              "kind": "field",
              "doc": "Axis is the locked world up axis for BillboardCylindrical; zero defaults to +Y (0, 1, 0)."
            },
            {
              "name": "Rate",
              "anchor": "Emitter3D.Rate",
              "kind": "field",
              "doc": "Rate is how many particles emit per second during Step/Update; 0 or less disables continuous emission."
            },
            {
              "name": "MaxParticles",
              "anchor": "Emitter3D.MaxParticles",
              "kind": "field",
              "doc": "MaxParticles caps how many particles may be live at once, 256 when 0 or less."
            },
            {
              "name": "LifetimeMin",
              "anchor": "Emitter3D.LifetimeMin",
              "kind": "field",
              "doc": "LifetimeMin and LifetimeMax give how long each particle lives; both 0 defaults to one second, and a LifetimeMax below LifetimeMin matches LifetimeMin."
            },
            {
              "name": "LifetimeMax",
              "anchor": "Emitter3D.LifetimeMax",
              "kind": "field",
              "doc": "LifetimeMin and LifetimeMax give how long each particle lives; both 0 defaults to one second, and a LifetimeMax below LifetimeMin matches LifetimeMin."
            },
            {
              "name": "SpeedMin",
              "anchor": "Emitter3D.SpeedMin",
              "kind": "field",
              "doc": "SpeedMin and SpeedMax give each particle's initial speed in world units per second."
            },
            {
              "name": "SpeedMax",
              "anchor": "Emitter3D.SpeedMax",
              "kind": "field",
              "doc": "SpeedMin and SpeedMax give each particle's initial speed in world units per second."
            },
            {
              "name": "Spread",
              "anchor": "Emitter3D.Spread",
              "kind": "field",
              "doc": "Spread is the emission cone half-angle in radians around Direction, clamped to [0, pi]. Zero emits straight along Direction; pi emits uniformly in all directions."
            },
            {
              "name": "Drag",
              "anchor": "Emitter3D.Drag",
              "kind": "field",
              "doc": "Drag is exponential linear velocity damping in 1/s (>= 0); zero disables drag."
            },
            {
              "name": "Gravity",
              "anchor": "Emitter3D.Gravity",
              "kind": "field",
              "doc": "Gravity is constant acceleration applied to live particles in world units per second squared."
            },
            {
              "name": "SizeMin",
              "anchor": "Emitter3D.SizeMin",
              "kind": "field",
              "doc": "SizeMin and SizeMax give each particle's base world-space quad size before SizeCurve; both <= 0 defaults to 1."
            },
            {
              "name": "SizeMax",
              "anchor": "Emitter3D.SizeMax",
              "kind": "field",
              "doc": "SizeMin and SizeMax give each particle's base world-space quad size before SizeCurve; both <= 0 defaults to 1."
            },
            {
              "name": "InitialRotationMin",
              "anchor": "Emitter3D.InitialRotationMin",
              "kind": "field",
              "doc": "InitialRotationMin and InitialRotationMax give each particle's starting roll angle in radians."
            },
            {
              "name": "InitialRotationMax",
              "anchor": "Emitter3D.InitialRotationMax",
              "kind": "field",
              "doc": "InitialRotationMin and InitialRotationMax give each particle's starting roll angle in radians."
            },
            {
              "name": "RotationSpeedMin",
              "anchor": "Emitter3D.RotationSpeedMin",
              "kind": "field",
              "doc": "RotationSpeedMin and RotationSpeedMax give each particle's roll angular velocity in radians per second."
            },
            {
              "name": "RotationSpeedMax",
              "anchor": "Emitter3D.RotationSpeedMax",
              "kind": "field",
              "doc": "RotationSpeedMin and RotationSpeedMax give each particle's roll angular velocity in radians per second."
            },
            {
              "name": "SizeCurve",
              "anchor": "Emitter3D.SizeCurve",
              "kind": "field",
              "doc": "SizeCurve scales each particle's base size over its normalized age in [0, 1]; empty scales by 1."
            },
            {
              "name": "AlphaCurve",
              "anchor": "Emitter3D.AlphaCurve",
              "kind": "field",
              "doc": "AlphaCurve fades each particle over its normalized age in [0, 1]; empty keeps opacity at 1."
            },
            {
              "name": "RotationCurve",
              "anchor": "Emitter3D.RotationCurve",
              "kind": "field",
              "doc": "RotationCurve adds roll rotation in radians over a particle's normalized age in [0, 1]; empty adds 0."
            },
            {
              "name": "ColorCurve",
              "anchor": "Emitter3D.ColorCurve",
              "kind": "field",
              "doc": "ColorCurve evaluates a color over each particle's normalized age in [0, 1]; empty uses Color (or opaque white when Color is 0)."
            },
            {
              "name": "Color",
              "anchor": "Emitter3D.Color",
              "kind": "field",
              "doc": "Color is the base particle color used when ColorCurve is empty; zero means opaque white (0xffffffff)."
            },
            {
              "name": "Seed",
              "anchor": "Emitter3D.Seed",
              "kind": "field",
              "doc": "Seed seeds the emitter's PCG PRNG for deterministic emission and motion."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewEmitter3D",
              "anchor": "NewEmitter3D",
              "decl": "func NewEmitter3D(cfg Emitter3DConfig) *Emitter3D",
              "doc": "NewEmitter3D constructs an [Emitter3D] initialized from cfg.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 286
            }
          ],
          "methods": [
            {
              "name": "Active",
              "anchor": "Emitter3D.Active",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Active() bool",
              "doc": "Active reports whether the emitter currently has at least one live particle.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 525
            },
            {
              "name": "AppendInstances",
              "anchor": "Emitter3D.AppendInstances",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) AppendInstances(dst []byte, camRight, camUp math3d.Vec3) []byte",
              "doc": "AppendInstances packs all live particles into dst in the little-endian 40-byte [ParticleInstanceStride] GPU layout facing (camRight, camUp) and returns the extended slice.\n\nIf [Emitter3D.SortByDepth] was called since the last mutation, instances are written in back-to-front sorted order. It allocates only when dst lacks capacity for Count() * ParticleInstanceStride more bytes.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 643
            },
            {
              "name": "AppendParticles",
              "anchor": "Emitter3D.AppendParticles",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) AppendParticles(dst []Particle3D) []Particle3D",
              "doc": "AppendParticles appends snapshots of all live particles to dst and returns the extended slice.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 557
            },
            {
              "name": "Burst",
              "anchor": "Emitter3D.Burst",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Burst(count int)",
              "doc": "Burst immediately emits up to count particles without waiting for Step or requiring Rate > 0, stopping at MaxParticles.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 506
            },
            {
              "name": "Clear",
              "anchor": "Emitter3D.Clear",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Clear()",
              "doc": "Clear removes all live particles and resets the fractional emission accumulator without resetting the PRNG.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 576
            },
            {
              "name": "Config",
              "anchor": "Emitter3D.Config",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Config() Emitter3DConfig",
              "doc": "Config returns a deep-copied [Emitter3DConfig] reflecting the emitter's current settings.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 293
            },
            {
              "name": "Count",
              "anchor": "Emitter3D.Count",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Count() int",
              "doc": "Count returns the number of currently live particles.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 522
            },
            {
              "name": "Particle",
              "anchor": "Emitter3D.Particle",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Particle(i int) Particle3D",
              "doc": "Particle returns a snapshot of the live particle at index i (0 <= i < Count()).\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 528
            },
            {
              "name": "ParticleWorldPos",
              "anchor": "Emitter3D.ParticleWorldPos",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) ParticleWorldPos(i int) math3d.Vec3",
              "doc": "ParticleWorldPos returns the world-space position of particle i.\nFor SpaceWorld emitters this returns the stored position directly; for SpaceLocal emitters it applies the emitter's Rotation and Position.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 545
            },
            {
              "name": "Particles",
              "anchor": "Emitter3D.Particles",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Particles() []Particle3D",
              "doc": "Particles returns a slice containing snapshots of all live particles.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 568
            },
            {
              "name": "ReloadConfig",
              "anchor": "Emitter3D.ReloadConfig",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) ReloadConfig(cfg Emitter3DConfig)",
              "doc": "ReloadConfig applies cfg to e without clearing live particles or resetting the PRNG.\nIf the new MaxParticles is smaller than the live particle count, excess particles are dropped.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 331
            },
            {
              "name": "Reset",
              "anchor": "Emitter3D.Reset",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Reset()",
              "doc": "Reset clears all live particles and re-seeds the PRNG from Seed so subsequent steps replay identically.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 583
            },
            {
              "name": "SortByDepth",
              "anchor": "Emitter3D.SortByDepth",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) SortByDepth(camPos, camForward math3d.Vec3)",
              "doc": "SortByDepth orders live particles back-to-front along camForward from camPos so alpha-blended particles pack farthest first in subsequent [Emitter3D.AppendInstances] calls.\n\nIt uses a deterministic, zero-allocation 4-pass radix sort over IEEE-754 depth keys. The sorted order remains active until the next Step, Burst, Clear, or Reset.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 592
            },
            {
              "name": "Step",
              "anchor": "Emitter3D.Step",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Step(dt time.Duration)",
              "doc": "Step advances live particles by dt, removes expired ones via dense swap-remove, evaluates lifetime curves, and emits new particles at Rate.\nNon-positive dt does nothing.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 379
            },
            {
              "name": "Update",
              "anchor": "Emitter3D.Update",
              "recv": "*Emitter3D",
              "decl": "func (e *Emitter3D) Update(dt time.Duration)",
              "doc": "Update advances live particles by dt, expires dead ones, and emits new particles at Rate.\nIt is equivalent to [Emitter3D.Step] and matches 2D [Emitter.Update] for use in game.Loop.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 373
            }
          ]
        },
        {
          "name": "Emitter3DConfig",
          "anchor": "Emitter3DConfig",
          "decl": "type Emitter3DConfig struct {\n\tPosition           math3d.Vec3\n\tDirection          math3d.Vec3\n\tUp                 math3d.Vec3\n\tRotation           math3d.Quat\n\tSpace              SimulationSpace\n\tShape              Shape3D\n\tBillboard          BillboardMode3D\n\tBlend              ParticleBlendMode\n\tStretchFactor      float32\n\tAxis               math3d.Vec3\n\tRate               float32\n\tMaxParticles       int\n\tLifetimeMin        time.Duration\n\tLifetimeMax        time.Duration\n\tSpeedMin           float32\n\tSpeedMax           float32\n\tSpread             float32\n\tDrag               float32\n\tGravity            math3d.Vec3\n\tSizeMin            float32\n\tSizeMax            float32\n\tInitialRotationMin float32\n\tInitialRotationMax float32\n\tRotationSpeedMin   float32\n\tRotationSpeedMax   float32\n\tSizeCurve          FloatCurve\n\tAlphaCurve         FloatCurve\n\tRotationCurve      FloatCurve\n\tColorCurve         ColorCurve\n\tColor              core.Color\n\tSeed               uint64\n}",
          "doc": "Emitter3DConfig is a serializable, reloadable snapshot of an [Emitter3D]'s configuration.\n",
          "file": "pkg/particles/emitter3d.go",
          "line": 147,
          "members": [
            {
              "name": "Position",
              "anchor": "Emitter3DConfig.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Direction",
              "anchor": "Emitter3DConfig.Direction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Up",
              "anchor": "Emitter3DConfig.Up",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "Emitter3DConfig.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Space",
              "anchor": "Emitter3DConfig.Space",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "Emitter3DConfig.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Billboard",
              "anchor": "Emitter3DConfig.Billboard",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blend",
              "anchor": "Emitter3DConfig.Blend",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StretchFactor",
              "anchor": "Emitter3DConfig.StretchFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Axis",
              "anchor": "Emitter3DConfig.Axis",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rate",
              "anchor": "Emitter3DConfig.Rate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxParticles",
              "anchor": "Emitter3DConfig.MaxParticles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LifetimeMin",
              "anchor": "Emitter3DConfig.LifetimeMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LifetimeMax",
              "anchor": "Emitter3DConfig.LifetimeMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpeedMin",
              "anchor": "Emitter3DConfig.SpeedMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpeedMax",
              "anchor": "Emitter3DConfig.SpeedMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spread",
              "anchor": "Emitter3DConfig.Spread",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Drag",
              "anchor": "Emitter3DConfig.Drag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Gravity",
              "anchor": "Emitter3DConfig.Gravity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeMin",
              "anchor": "Emitter3DConfig.SizeMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeMax",
              "anchor": "Emitter3DConfig.SizeMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InitialRotationMin",
              "anchor": "Emitter3DConfig.InitialRotationMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InitialRotationMax",
              "anchor": "Emitter3DConfig.InitialRotationMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotationSpeedMin",
              "anchor": "Emitter3DConfig.RotationSpeedMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotationSpeedMax",
              "anchor": "Emitter3DConfig.RotationSpeedMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SizeCurve",
              "anchor": "Emitter3DConfig.SizeCurve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlphaCurve",
              "anchor": "Emitter3DConfig.AlphaCurve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotationCurve",
              "anchor": "Emitter3DConfig.RotationCurve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorCurve",
              "anchor": "Emitter3DConfig.ColorCurve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "Emitter3DConfig.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "Emitter3DConfig.Seed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadConfig3DFS",
              "anchor": "LoadConfig3DFS",
              "decl": "func LoadConfig3DFS(fsys fs.FS, name string) (Emitter3DConfig, error)",
              "doc": "LoadConfig3DFS reads and decodes a versioned YAML 3D emitter definition file from fsys.\n",
              "file": "pkg/particles/format3d.go",
              "line": 221
            },
            {
              "name": "LoadConfig3DFile",
              "anchor": "LoadConfig3DFile",
              "decl": "func LoadConfig3DFile(path string) (Emitter3DConfig, error)",
              "doc": "LoadConfig3DFile reads and decodes a versioned YAML 3D emitter definition file from disk.\n",
              "file": "pkg/particles/format3d.go",
              "line": 208
            },
            {
              "name": "UnmarshalConfig3DJSON",
              "anchor": "UnmarshalConfig3DJSON",
              "decl": "func UnmarshalConfig3DJSON(data []byte) (Emitter3DConfig, error)",
              "doc": "UnmarshalConfig3DJSON decodes the versioned JSON form of a 3D emitter definition into an [Emitter3DConfig].\n",
              "file": "pkg/particles/format3d.go",
              "line": 183
            },
            {
              "name": "UnmarshalConfig3DYAML",
              "anchor": "UnmarshalConfig3DYAML",
              "decl": "func UnmarshalConfig3DYAML(data []byte) (Emitter3DConfig, error)",
              "doc": "UnmarshalConfig3DYAML decodes a versioned YAML 3D emitter definition into an [Emitter3DConfig].\nIt refuses unknown fields, keys with no value, trailing YAML documents, unsupported versions, fractions in integer fields, shape fields that do not apply to the shape kind, and non-finite numbers.\n",
              "file": "pkg/particles/format3d.go",
              "line": 130
            }
          ],
          "methods": []
        },
        {
          "name": "EmitterDoc",
          "anchor": "EmitterDoc",
          "decl": "type EmitterDoc struct {\n\t// Version is the schema version; it must be FormatVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// EmitterFieldsDoc holds the emitter fields written alongside version at the top level.\n\tEmitterFieldsDoc `yaml:\",inline\"`\n}",
          "doc": "EmitterDoc describes the versioned YAML schema of a 2D particle emitter definition (version: 1) for JSON Schema generation.\n",
          "file": "pkg/particles/schema.go",
          "line": 6,
          "members": [
            {
              "name": "Version",
              "anchor": "EmitterDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be FormatVersion (1)."
            },
            {
              "name": "EmitterFieldsDoc",
              "anchor": "EmitterDoc.EmitterFieldsDoc",
              "kind": "field",
              "doc": "EmitterFieldsDoc holds the emitter fields written alongside version at the top level."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EmitterFieldsDoc",
          "anchor": "EmitterFieldsDoc",
          "decl": "type EmitterFieldsDoc struct {\n\t// X is the emitter's default horizontal position in points.\n\tX float32 `yaml:\"x,omitempty\"`\n\t// Y is the emitter's default vertical position in points.\n\tY float32 `yaml:\"y,omitempty\"`\n\t// Rotation is the emitter's rotation in radians, clockwise on screen.\n\tRotation float32 `yaml:\"rotation,omitempty\"`\n\t// Space controls whether particles simulate in world coordinates (\"world\") or emitter-local coordinates (\"local\").\n\tSpace string `yaml:\"space,omitempty\" schema:\"enum=world|local\"`\n\t// Shape controls where new particles spawn relative to the emitter's origin.\n\tShape *ShapeDoc `yaml:\"shape,omitempty\"`\n\t// Rate is how many particles emit per second during Update; 0 disables continuous emission.\n\tRate float32 `yaml:\"rate,omitempty\"`\n\t// Bursts schedules automatic bursts of particles at specific elapsed times during Update.\n\tBursts []BurstDoc `yaml:\"bursts,omitempty\"`\n\t// MaxParticles caps how many particles may be live at once (defaults to 256 when 0 or omitted).\n\tMaxParticles int `yaml:\"maxParticles,omitempty\"`\n\t// LifetimeMin is the minimum particle lifetime as a Go duration string such as \"300ms\".\n\tLifetimeMin time.Duration `yaml:\"lifetimeMin,omitempty\"`\n\t// LifetimeMax is the maximum particle lifetime as a Go duration string such as \"700ms\".\n\tLifetimeMax time.Duration `yaml:\"lifetimeMax,omitempty\"`\n\t// SpeedMin is the minimum initial particle speed in points per second.\n\tSpeedMin float32 `yaml:\"speedMin,omitempty\"`\n\t// SpeedMax is the maximum initial particle speed in points per second.\n\tSpeedMax float32 `yaml:\"speedMax,omitempty\"`\n\t// AngleMin is the minimum initial direction of travel in radians, clockwise from +X.\n\tAngleMin float32 `yaml:\"angleMin,omitempty\"`\n\t// AngleMax is the maximum initial direction of travel in radians, clockwise from +X.\n\tAngleMax float32 `yaml:\"angleMax,omitempty\"`\n\t// GravityX is constant horizontal acceleration in points per second squared.\n\tGravityX float32 `yaml:\"gravityX,omitempty\"`\n\t// GravityY is constant vertical acceleration in points per second squared.\n\tGravityY float32 `yaml:\"gravityY,omitempty\"`\n\t// InitialRotationMin is the minimum starting particle rotation in radians.\n\tInitialRotationMin float32 `yaml:\"initialRotationMin,omitempty\"`\n\t// InitialRotationMax is the maximum starting particle rotation in radians.\n\tInitialRotationMax float32 `yaml:\"initialRotationMax,omitempty\"`\n\t// RotationSpeedMin is the minimum angular velocity in radians per second.\n\tRotationSpeedMin float32 `yaml:\"rotationSpeedMin,omitempty\"`\n\t// RotationSpeedMax is the maximum angular velocity in radians per second.\n\tRotationSpeedMax float32 `yaml:\"rotationSpeedMax,omitempty\"`\n\t// SizeCurve scales each particle over its normalized lifetime in [0, 1].\n\tSizeCurve []FloatStopDoc `yaml:\"sizeCurve,omitempty\"`\n\t// AlphaCurve fades each particle's opacity over its normalized lifetime in [0, 1].\n\tAlphaCurve []FloatStopDoc `yaml:\"alphaCurve,omitempty\"`\n\t// RotationCurve adds rotation in radians over a particle's normalized lifetime in [0, 1].\n\tRotationCurve []FloatStopDoc `yaml:\"rotationCurve,omitempty\"`\n\t// ColorCurve tints each particle over its normalized lifetime in [0, 1].\n\tColorCurve []ColorStopDoc `yaml:\"colorCurve,omitempty\"`\n\t// Seed seeds the emitter's deterministic PCG PRNG.\n\tSeed uint64 `yaml:\"seed,omitempty\"`\n\t// Z sets the sprite Z draw order of emitted particles.\n\tZ int `yaml:\"z,omitempty\"`\n\t// FrameNames lists the atlas frame names particles pick from at spawn time.\n\tFrameNames []string `yaml:\"frameNames,omitempty\"`\n\t// Collision configures optional particle collision response.\n\tCollision *CollisionDoc `yaml:\"collision,omitempty\"`\n\t// Trail configures optional per-particle 2D ribbon trails.\n\tTrail *TrailDoc `yaml:\"trail,omitempty\"`\n\t// SubEmitters configures child bursts triggered on particle birth, death or collision.\n\tSubEmitters []SubEmitterDoc `yaml:\"subEmitters,omitempty\"`\n}",
          "doc": "EmitterFieldsDoc describes the fields of a 2D particle emitter configuration (used at the top level and inside sub-emitters without version).\n",
          "file": "pkg/particles/schema.go",
          "line": 14,
          "members": [
            {
              "name": "X",
              "anchor": "EmitterFieldsDoc.X",
              "kind": "field",
              "doc": "X is the emitter's default horizontal position in points."
            },
            {
              "name": "Y",
              "anchor": "EmitterFieldsDoc.Y",
              "kind": "field",
              "doc": "Y is the emitter's default vertical position in points."
            },
            {
              "name": "Rotation",
              "anchor": "EmitterFieldsDoc.Rotation",
              "kind": "field",
              "doc": "Rotation is the emitter's rotation in radians, clockwise on screen."
            },
            {
              "name": "Space",
              "anchor": "EmitterFieldsDoc.Space",
              "kind": "field",
              "doc": "Space controls whether particles simulate in world coordinates (\"world\") or emitter-local coordinates (\"local\")."
            },
            {
              "name": "Shape",
              "anchor": "EmitterFieldsDoc.Shape",
              "kind": "field",
              "doc": "Shape controls where new particles spawn relative to the emitter's origin."
            },
            {
              "name": "Rate",
              "anchor": "EmitterFieldsDoc.Rate",
              "kind": "field",
              "doc": "Rate is how many particles emit per second during Update; 0 disables continuous emission."
            },
            {
              "name": "Bursts",
              "anchor": "EmitterFieldsDoc.Bursts",
              "kind": "field",
              "doc": "Bursts schedules automatic bursts of particles at specific elapsed times during Update."
            },
            {
              "name": "MaxParticles",
              "anchor": "EmitterFieldsDoc.MaxParticles",
              "kind": "field",
              "doc": "MaxParticles caps how many particles may be live at once (defaults to 256 when 0 or omitted)."
            },
            {
              "name": "LifetimeMin",
              "anchor": "EmitterFieldsDoc.LifetimeMin",
              "kind": "field",
              "doc": "LifetimeMin is the minimum particle lifetime as a Go duration string such as \"300ms\"."
            },
            {
              "name": "LifetimeMax",
              "anchor": "EmitterFieldsDoc.LifetimeMax",
              "kind": "field",
              "doc": "LifetimeMax is the maximum particle lifetime as a Go duration string such as \"700ms\"."
            },
            {
              "name": "SpeedMin",
              "anchor": "EmitterFieldsDoc.SpeedMin",
              "kind": "field",
              "doc": "SpeedMin is the minimum initial particle speed in points per second."
            },
            {
              "name": "SpeedMax",
              "anchor": "EmitterFieldsDoc.SpeedMax",
              "kind": "field",
              "doc": "SpeedMax is the maximum initial particle speed in points per second."
            },
            {
              "name": "AngleMin",
              "anchor": "EmitterFieldsDoc.AngleMin",
              "kind": "field",
              "doc": "AngleMin is the minimum initial direction of travel in radians, clockwise from +X."
            },
            {
              "name": "AngleMax",
              "anchor": "EmitterFieldsDoc.AngleMax",
              "kind": "field",
              "doc": "AngleMax is the maximum initial direction of travel in radians, clockwise from +X."
            },
            {
              "name": "GravityX",
              "anchor": "EmitterFieldsDoc.GravityX",
              "kind": "field",
              "doc": "GravityX is constant horizontal acceleration in points per second squared."
            },
            {
              "name": "GravityY",
              "anchor": "EmitterFieldsDoc.GravityY",
              "kind": "field",
              "doc": "GravityY is constant vertical acceleration in points per second squared."
            },
            {
              "name": "InitialRotationMin",
              "anchor": "EmitterFieldsDoc.InitialRotationMin",
              "kind": "field",
              "doc": "InitialRotationMin is the minimum starting particle rotation in radians."
            },
            {
              "name": "InitialRotationMax",
              "anchor": "EmitterFieldsDoc.InitialRotationMax",
              "kind": "field",
              "doc": "InitialRotationMax is the maximum starting particle rotation in radians."
            },
            {
              "name": "RotationSpeedMin",
              "anchor": "EmitterFieldsDoc.RotationSpeedMin",
              "kind": "field",
              "doc": "RotationSpeedMin is the minimum angular velocity in radians per second."
            },
            {
              "name": "RotationSpeedMax",
              "anchor": "EmitterFieldsDoc.RotationSpeedMax",
              "kind": "field",
              "doc": "RotationSpeedMax is the maximum angular velocity in radians per second."
            },
            {
              "name": "SizeCurve",
              "anchor": "EmitterFieldsDoc.SizeCurve",
              "kind": "field",
              "doc": "SizeCurve scales each particle over its normalized lifetime in [0, 1]."
            },
            {
              "name": "AlphaCurve",
              "anchor": "EmitterFieldsDoc.AlphaCurve",
              "kind": "field",
              "doc": "AlphaCurve fades each particle's opacity over its normalized lifetime in [0, 1]."
            },
            {
              "name": "RotationCurve",
              "anchor": "EmitterFieldsDoc.RotationCurve",
              "kind": "field",
              "doc": "RotationCurve adds rotation in radians over a particle's normalized lifetime in [0, 1]."
            },
            {
              "name": "ColorCurve",
              "anchor": "EmitterFieldsDoc.ColorCurve",
              "kind": "field",
              "doc": "ColorCurve tints each particle over its normalized lifetime in [0, 1]."
            },
            {
              "name": "Seed",
              "anchor": "EmitterFieldsDoc.Seed",
              "kind": "field",
              "doc": "Seed seeds the emitter's deterministic PCG PRNG."
            },
            {
              "name": "Z",
              "anchor": "EmitterFieldsDoc.Z",
              "kind": "field",
              "doc": "Z sets the sprite Z draw order of emitted particles."
            },
            {
              "name": "FrameNames",
              "anchor": "EmitterFieldsDoc.FrameNames",
              "kind": "field",
              "doc": "FrameNames lists the atlas frame names particles pick from at spawn time."
            },
            {
              "name": "Collision",
              "anchor": "EmitterFieldsDoc.Collision",
              "kind": "field",
              "doc": "Collision configures optional particle collision response."
            },
            {
              "name": "Trail",
              "anchor": "EmitterFieldsDoc.Trail",
              "kind": "field",
              "doc": "Trail configures optional per-particle 2D ribbon trails."
            },
            {
              "name": "SubEmitters",
              "anchor": "EmitterFieldsDoc.SubEmitters",
              "kind": "field",
              "doc": "SubEmitters configures child bursts triggered on particle birth, death or collision."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FloatCurve",
          "anchor": "FloatCurve",
          "decl": "type FloatCurve []FloatStop",
          "doc": "FloatCurve maps a particle's normalized age in [0, 1] to a float32 by linear interpolation between stops ordered by T.\nAn empty curve returns 1 at any age.\n",
          "file": "pkg/particles/curve.go",
          "line": 13,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "At",
              "anchor": "FloatCurve.At",
              "recv": "FloatCurve",
              "decl": "func (c FloatCurve) At(t float32) float32",
              "doc": "At returns the curve's value at normalized age t, clamped to [0, 1].\n",
              "file": "pkg/particles/curve.go",
              "line": 19
            }
          ]
        },
        {
          "name": "FloatStop",
          "anchor": "FloatStop",
          "decl": "type FloatStop struct {\n\tT     float32\n\tValue float32\n}",
          "doc": "FloatStop is one control point on a FloatCurve at normalized particle age T in [0, 1].\n",
          "file": "pkg/particles/curve.go",
          "line": 6,
          "members": [
            {
              "name": "T",
              "anchor": "FloatStop.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "FloatStop.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FloatStopDoc",
          "anchor": "FloatStopDoc",
          "decl": "type FloatStopDoc struct {\n\t// T is the normalized particle age in [0, 1].\n\tT float32 `yaml:\"t\"`\n\t// Value is the curve value at T.\n\tValue float32 `yaml:\"value\"`\n}",
          "doc": "FloatStopDoc is one control point on a float curve at normalized age t in [0, 1].\n",
          "file": "pkg/particles/schema.go",
          "line": 102,
          "members": [
            {
              "name": "T",
              "anchor": "FloatStopDoc.T",
              "kind": "field",
              "doc": "T is the normalized particle age in [0, 1]."
            },
            {
              "name": "Value",
              "anchor": "FloatStopDoc.Value",
              "kind": "field",
              "doc": "Value is the curve value at T."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GPUParticles3D",
          "anchor": "GPUParticles3D",
          "decl": "type GPUParticles3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUParticles3D owns the static unit-quad geometry and dynamic per-instance vertex buffer needed to draw an [Emitter3D] in a single [gpu.RenderPass.DrawIndexedInstanced] call.\n\nIts buffers belong to the [*core.Scope] passed to [NewGPUParticles3D] and are released automatically when that scope is disposed, or earlier via [GPUParticles3D.Close]. Use it on the engine goroutine, like the [gpu.Device] it came from.\n",
          "file": "pkg/particles/gpu3d.go",
          "line": 315,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUParticles3D",
              "anchor": "NewGPUParticles3D",
              "decl": "func NewGPUParticles3D(cx *core.Scope, dev *gpu.Device, opts GPUParticles3DOptions) (*GPUParticles3D, error)",
              "doc": "NewGPUParticles3D creates the static quad vertex/index buffers and an initial instance vertex buffer on dev, scoped to cx.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 329
            }
          ],
          "methods": [
            {
              "name": "ByteSize",
              "anchor": "GPUParticles3D.ByteSize",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) ByteSize() uint64",
              "doc": "ByteSize returns the total GPU memory held by the quad and instance buffers.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 470
            },
            {
              "name": "Capacity",
              "anchor": "GPUParticles3D.Capacity",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) Capacity() int",
              "doc": "Capacity returns the maximum number of particle instances the current GPU buffer holds without growing.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 462
            },
            {
              "name": "Close",
              "anchor": "GPUParticles3D.Close",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) Close() error",
              "doc": "Close releases all GPU buffers now rather than waiting for scope disposal. Safe to call more than once.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 487
            },
            {
              "name": "Count",
              "anchor": "GPUParticles3D.Count",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) Count() uint32",
              "doc": "Count returns the number of particle instances currently uploaded for drawing.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 454
            },
            {
              "name": "Draw",
              "anchor": "GPUParticles3D.Draw",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) Draw(pass *gpu.RenderPass)",
              "doc": "Draw binds the unit quad and instance buffers to pass and records one [gpu.RenderPass.DrawIndexedInstanced] call for all uploaded particles.\nThe pass must already have a pipeline built with [ParticleVertexLayouts] and its bind groups set. When g is invalid or has 0 uploaded particles, Draw records nothing.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 438
            },
            {
              "name": "InstanceBuffer",
              "anchor": "GPUParticles3D.InstanceBuffer",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) InstanceBuffer() *gpu.Buffer",
              "doc": "InstanceBuffer returns the dynamic per-instance vertex buffer (slot 1).\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 484
            },
            {
              "name": "QuadIndexBuffer",
              "anchor": "GPUParticles3D.QuadIndexBuffer",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) QuadIndexBuffer() *gpu.Buffer",
              "doc": "QuadIndexBuffer returns the static unit-quad uint16 index buffer.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 481
            },
            {
              "name": "QuadVertexBuffer",
              "anchor": "GPUParticles3D.QuadVertexBuffer",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) QuadVertexBuffer() *gpu.Buffer",
              "doc": "QuadVertexBuffer returns the static unit-quad vertex buffer (slot 0).\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 478
            },
            {
              "name": "Upload",
              "anchor": "GPUParticles3D.Upload",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) Upload(e *Emitter3D, camRight, camUp math3d.Vec3) error",
              "doc": "Upload packs e's live particles facing (camRight, camUp) into reusable scratch storage and uploads them to the GPU instance buffer.\nIf e has more live particles than the current GPU buffer capacity, the instance buffer grows automatically.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 390
            },
            {
              "name": "UploadBytes",
              "anchor": "GPUParticles3D.UploadBytes",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) UploadBytes(data []byte) error",
              "doc": "UploadBytes uploads pre-packed instance bytes (whose length must be a multiple of [ParticleInstanceStride]) to the GPU instance buffer.\nThis allows packing several emitters into one byte slice and drawing them in a single instanced draw call.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 404
            },
            {
              "name": "Valid",
              "anchor": "GPUParticles3D.Valid",
              "recv": "*GPUParticles3D",
              "decl": "func (g *GPUParticles3D) Valid() bool",
              "doc": "Valid reports whether all underlying GPU buffers are open and belong to a live device.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 449
            }
          ]
        },
        {
          "name": "GPUParticles3DOptions",
          "anchor": "GPUParticles3DOptions",
          "decl": "type GPUParticles3DOptions struct {\n\t// Label names the GPU buffers in capture tools.\n\tLabel string\n\t// Capacity is the initial maximum number of particle instances the GPU buffer holds before growing; defaults to 256 when <= 0.\n\tCapacity int\n\t// Retained keeps the buffers retained across GPU device loss.\n\tRetained bool\n}",
          "doc": "GPUParticles3DOptions configures [NewGPUParticles3D].\n",
          "file": "pkg/particles/gpu3d.go",
          "line": 303,
          "members": [
            {
              "name": "Label",
              "anchor": "GPUParticles3DOptions.Label",
              "kind": "field",
              "doc": "Label names the GPU buffers in capture tools."
            },
            {
              "name": "Capacity",
              "anchor": "GPUParticles3DOptions.Capacity",
              "kind": "field",
              "doc": "Capacity is the initial maximum number of particle instances the GPU buffer holds before growing; defaults to 256 when <= 0."
            },
            {
              "name": "Retained",
              "anchor": "GPUParticles3DOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps the buffers retained across GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HotConfig",
          "anchor": "HotConfig",
          "decl": "type HotConfig struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "HotConfig holds a live, versioned emitter Config and pushes hot-reloaded definitions to bound Emitters.\nIt is composable with file-watching hot-reload hooks via ReloadHook.\n",
          "file": "pkg/particles/format.go",
          "line": 1000,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadHotConfigFile",
              "anchor": "LoadHotConfigFile",
              "decl": "func LoadHotConfigFile(path string) (*HotConfig, error)",
              "doc": "LoadHotConfigFile loads a versioned YAML emitter definition from path and returns a HotConfig bound to that file path.\n",
              "file": "pkg/particles/format.go",
              "line": 1019
            },
            {
              "name": "NewHotConfig",
              "anchor": "NewHotConfig",
              "decl": "func NewHotConfig(initial Config) *HotConfig",
              "doc": "NewHotConfig creates a HotConfig initialized with initial.\n",
              "file": "pkg/particles/format.go",
              "line": 1011
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "HotConfig.Apply",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) Apply(cfg Config)",
              "doc": "Apply updates the stored Config and reloads all bound Emitters immediately.\n",
              "file": "pkg/particles/format.go",
              "line": 1086
            },
            {
              "name": "Bind",
              "anchor": "HotConfig.Bind",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) Bind(e *Emitter)",
              "doc": "Bind registers e to receive config updates whenever Apply, ReloadBytes, ReloadFile, or Flush runs,\nand immediately applies the current config to e.\n",
              "file": "pkg/particles/format.go",
              "line": 1033
            },
            {
              "name": "Config",
              "anchor": "HotConfig.Config",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) Config() Config",
              "doc": "Config returns a copy of the currently active Config.\n",
              "file": "pkg/particles/format.go",
              "line": 1072
            },
            {
              "name": "Flush",
              "anchor": "HotConfig.Flush",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) Flush() bool",
              "doc": "Flush applies any config staged via StageBytes to all bound Emitters and reports whether a reload occurred.\n",
              "file": "pkg/particles/format.go",
              "line": 1152
            },
            {
              "name": "OnReload",
              "anchor": "HotConfig.OnReload",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) OnReload(fn func(Config))",
              "doc": "OnReload sets an optional callback invoked after a config reload succeeds.\n",
              "file": "pkg/particles/format.go",
              "line": 1065
            },
            {
              "name": "ReloadBytes",
              "anchor": "HotConfig.ReloadBytes",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) ReloadBytes(data []byte) error",
              "doc": "ReloadBytes decodes a versioned YAML emitter definition and, if valid, applies the new Config to all bound Emitters. An invalid definition returns an error and leaves the current Config and Emitters unchanged.\n",
              "file": "pkg/particles/format.go",
              "line": 1104
            },
            {
              "name": "ReloadFile",
              "anchor": "HotConfig.ReloadFile",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) ReloadFile(path string) error",
              "doc": "ReloadFile reads a versioned YAML emitter definition from path (or the stored file path if path is empty) and applies it.\n",
              "file": "pkg/particles/format.go",
              "line": 1114
            },
            {
              "name": "ReloadHook",
              "anchor": "HotConfig.ReloadHook",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) ReloadHook() func(path string) error",
              "doc": "ReloadHook returns a file-change callback suitable for plugging into hot-reload watchers (such as tooling/hotreload).\n",
              "file": "pkg/particles/format.go",
              "line": 1133
            },
            {
              "name": "StageBytes",
              "anchor": "HotConfig.StageBytes",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) StageBytes(data []byte) error",
              "doc": "StageBytes decodes a versioned YAML emitter definition from a background watcher thread without touching Emitters yet. Call Flush from the game loop thread to apply the staged config safely.\n",
              "file": "pkg/particles/format.go",
              "line": 1140
            },
            {
              "name": "Unbind",
              "anchor": "HotConfig.Unbind",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) Unbind(e *Emitter)",
              "doc": "Unbind removes e from receiving further hot-reload updates.\n",
              "file": "pkg/particles/format.go",
              "line": 1051
            },
            {
              "name": "Version",
              "anchor": "HotConfig.Version",
              "recv": "*HotConfig",
              "decl": "func (h *HotConfig) Version() uint64",
              "doc": "Version returns the monotonic reload counter (starts at 1 and increments on each successful reload).\n",
              "file": "pkg/particles/format.go",
              "line": 1079
            }
          ]
        },
        {
          "name": "MultiCollider",
          "anchor": "MultiCollider",
          "decl": "type MultiCollider []Collider",
          "doc": "MultiCollider combines multiple Colliders and reports the earliest/first hit.\n",
          "file": "pkg/particles/collide.go",
          "line": 503,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ResolveParticle",
              "anchor": "MultiCollider.ResolveParticle",
              "recv": "MultiCollider",
              "decl": "func (m MultiCollider) ResolveParticle(prevX, prevY, x, y, radius float32) (hit bool, hitX, hitY, nx, ny float32)",
              "doc": "ResolveParticle implements Collider with zero heap allocations.\n",
              "file": "pkg/particles/collide.go",
              "line": 506
            }
          ]
        },
        {
          "name": "Particle",
          "anchor": "Particle",
          "decl": "type Particle struct {\n\t// Frame is the atlas frame this particle draws.\n\tFrame sprite.Frame\n\t// X and Y are the particle's position in the drawing (or emitter-local coordinates when Emitter.Space is SpaceLocal).\n\tX, Y float32\n\t// VX and VY are the particle's velocity in points per second.\n\tVX, VY float32\n\t// Age is how long the particle has lived so far.\n\tAge time.Duration\n\t// Lifetime is how long the particle lives before expiring.\n\tLifetime time.Duration\n\t// Size is the particle's uniform scale evaluated from Emitter.SizeCurve.\n\tSize float32\n\t// Alpha is the particle's opacity in [0, 1], evaluated from Emitter.AlphaCurve and Emitter.ColorCurve.\n\tAlpha float32\n\t// Rotation is the particle's angle in radians, clockwise on the screen.\n\tRotation float32\n\t// Color is the particle's color evaluated from Emitter.ColorCurve.\n\tColor core.Color\n\t// contains filtered or unexported fields\n}",
          "doc": "Particle is the live state of one emitted particle.\n",
          "file": "pkg/particles/particles.go",
          "line": 19,
          "members": [
            {
              "name": "Frame",
              "anchor": "Particle.Frame",
              "kind": "field",
              "doc": "Frame is the atlas frame this particle draws."
            },
            {
              "name": "X",
              "anchor": "Particle.X",
              "kind": "field",
              "doc": "X and Y are the particle's position in the drawing (or emitter-local coordinates when Emitter.Space is SpaceLocal)."
            },
            {
              "name": "Y",
              "anchor": "Particle.Y",
              "kind": "field",
              "doc": "X and Y are the particle's position in the drawing (or emitter-local coordinates when Emitter.Space is SpaceLocal)."
            },
            {
              "name": "VX",
              "anchor": "Particle.VX",
              "kind": "field",
              "doc": "VX and VY are the particle's velocity in points per second."
            },
            {
              "name": "VY",
              "anchor": "Particle.VY",
              "kind": "field",
              "doc": "VX and VY are the particle's velocity in points per second."
            },
            {
              "name": "Age",
              "anchor": "Particle.Age",
              "kind": "field",
              "doc": "Age is how long the particle has lived so far."
            },
            {
              "name": "Lifetime",
              "anchor": "Particle.Lifetime",
              "kind": "field",
              "doc": "Lifetime is how long the particle lives before expiring."
            },
            {
              "name": "Size",
              "anchor": "Particle.Size",
              "kind": "field",
              "doc": "Size is the particle's uniform scale evaluated from Emitter.SizeCurve."
            },
            {
              "name": "Alpha",
              "anchor": "Particle.Alpha",
              "kind": "field",
              "doc": "Alpha is the particle's opacity in [0, 1], evaluated from Emitter.AlphaCurve and Emitter.ColorCurve."
            },
            {
              "name": "Rotation",
              "anchor": "Particle.Rotation",
              "kind": "field",
              "doc": "Rotation is the particle's angle in radians, clockwise on the screen."
            },
            {
              "name": "Color",
              "anchor": "Particle.Color",
              "kind": "field",
              "doc": "Color is the particle's color evaluated from Emitter.ColorCurve."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Particle3D",
          "anchor": "Particle3D",
          "decl": "type Particle3D struct {\n\t// Position is the particle's position in world space (or emitter-local space when Space is SpaceLocal).\n\tPosition math3d.Vec3\n\t// Velocity is the particle's velocity in world units per second.\n\tVelocity math3d.Vec3\n\t// Age is how long the particle has lived so far.\n\tAge time.Duration\n\t// Lifetime is how long the particle lives before expiring.\n\tLifetime time.Duration\n\t// Size is the particle's world-space quad size after applying SizeCurve.\n\tSize float32\n\t// Alpha is the particle's opacity in [0, 1] after applying AlphaCurve and ColorCurve.\n\tAlpha float32\n\t// Rotation is the particle's roll angle in radians.\n\tRotation float32\n\t// Color is the particle's RGB color evaluated from ColorCurve (or Emitter3D.Color when empty) with alpha in the low byte.\n\tColor core.Color\n}",
          "doc": "Particle3D is a read-only snapshot of one live particle in an [Emitter3D].\n",
          "file": "pkg/particles/emitter3d.go",
          "line": 127,
          "members": [
            {
              "name": "Position",
              "anchor": "Particle3D.Position",
              "kind": "field",
              "doc": "Position is the particle's position in world space (or emitter-local space when Space is SpaceLocal)."
            },
            {
              "name": "Velocity",
              "anchor": "Particle3D.Velocity",
              "kind": "field",
              "doc": "Velocity is the particle's velocity in world units per second."
            },
            {
              "name": "Age",
              "anchor": "Particle3D.Age",
              "kind": "field",
              "doc": "Age is how long the particle has lived so far."
            },
            {
              "name": "Lifetime",
              "anchor": "Particle3D.Lifetime",
              "kind": "field",
              "doc": "Lifetime is how long the particle lives before expiring."
            },
            {
              "name": "Size",
              "anchor": "Particle3D.Size",
              "kind": "field",
              "doc": "Size is the particle's world-space quad size after applying SizeCurve."
            },
            {
              "name": "Alpha",
              "anchor": "Particle3D.Alpha",
              "kind": "field",
              "doc": "Alpha is the particle's opacity in [0, 1] after applying AlphaCurve and ColorCurve."
            },
            {
              "name": "Rotation",
              "anchor": "Particle3D.Rotation",
              "kind": "field",
              "doc": "Rotation is the particle's roll angle in radians."
            },
            {
              "name": "Color",
              "anchor": "Particle3D.Color",
              "kind": "field",
              "doc": "Color is the particle's RGB color evaluated from ColorCurve (or Emitter3D.Color when empty) with alpha in the low byte."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ParticleBlendMode",
          "anchor": "ParticleBlendMode",
          "decl": "type ParticleBlendMode uint8",
          "doc": "ParticleBlendMode selects how 3D particles blend into the color target in a GPU pipeline.\n",
          "file": "pkg/particles/emitter3d.go",
          "line": 103,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BlendAlpha",
                  "anchor": "BlendAlpha"
                },
                {
                  "name": "BlendAdditive",
                  "anchor": "BlendAdditive"
                },
                {
                  "name": "BlendPremultiplied",
                  "anchor": "BlendPremultiplied"
                }
              ],
              "decl": "const (\n\t// BlendAlpha uses standard non-premultiplied alpha blending (srcAlpha, 1-srcAlpha). Call [Emitter3D.SortByDepth] before packing for correct transparency order.\n\tBlendAlpha ParticleBlendMode = iota\n\t// BlendAdditive uses additive blending (srcAlpha, 1). Order-independent, so depth sorting is unnecessary for fire, sparks and glow effects.\n\tBlendAdditive\n\t// BlendPremultiplied uses premultiplied alpha blending (1, 1-srcAlpha).\n\tBlendPremultiplied\n)",
              "doc": "",
              "file": "pkg/particles/emitter3d.go",
              "line": 105
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "BlendState",
              "anchor": "ParticleBlendMode.BlendState",
              "recv": "ParticleBlendMode",
              "decl": "func (m ParticleBlendMode) BlendState() *gpu.BlendState",
              "doc": "BlendState returns the [gpu.BlendState] corresponding to m.\n",
              "file": "pkg/particles/gpu3d.go",
              "line": 203
            },
            {
              "name": "String",
              "anchor": "ParticleBlendMode.String",
              "recv": "ParticleBlendMode",
              "decl": "func (m ParticleBlendMode) String() string",
              "doc": "String returns the canonical string name of the blend mode.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 115
            }
          ]
        },
        {
          "name": "ParticlePipelineOptions",
          "anchor": "ParticlePipelineOptions",
          "decl": "type ParticlePipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools.\n\tLabel string\n\t// CameraLayout is the bind group layout for @group(0) (required; matches render3d.CameraBuffer.Layout()).\n\tCameraLayout *gpu.BindGroupLayout\n\t// TextureLayout is an optional bind group layout for @group(1) (texture at binding 0, sampler at binding 1). When non-nil, NewParticlePipeline compiles ParticleTexturedWGSL instead of ParticleWGSL.\n\tTextureLayout *gpu.BindGroupLayout\n\t// ColorFormat is the color target format; FormatUndefined defaults to dev.SurfaceFormat().\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing when not FormatUndefined.\n\tDepthFormat gpu.TextureFormat\n\t// DepthWrite controls whether particles write to the depth buffer; false (the default) is standard for translucent particles.\n\tDepthWrite bool\n\t// Blend selects alpha, additive, or premultiplied blending; the zero value is BlendAlpha.\n\tBlend ParticleBlendMode\n\t// SoftCircle selects [ParticleSoftCircleWGSL] (smooth radial falloff) when TextureLayout is nil.\n\tSoftCircle bool\n\t// SampleCount sets the MSAA sample count (0 or 1 for non-MSAA).\n\tSampleCount int\n\t// Retained opts into automatic pipeline recreation across GPU device loss.\n\tRetained bool\n}",
          "doc": "ParticlePipelineOptions configures [NewParticlePipeline].\n",
          "file": "pkg/particles/gpu3d.go",
          "line": 215,
          "members": [
            {
              "name": "Label",
              "anchor": "ParticlePipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools."
            },
            {
              "name": "CameraLayout",
              "anchor": "ParticlePipelineOptions.CameraLayout",
              "kind": "field",
              "doc": "CameraLayout is the bind group layout for @group(0) (required; matches render3d.CameraBuffer.Layout())."
            },
            {
              "name": "TextureLayout",
              "anchor": "ParticlePipelineOptions.TextureLayout",
              "kind": "field",
              "doc": "TextureLayout is an optional bind group layout for @group(1) (texture at binding 0, sampler at binding 1). When non-nil, NewParticlePipeline compiles ParticleTexturedWGSL instead of ParticleWGSL."
            },
            {
              "name": "ColorFormat",
              "anchor": "ParticlePipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat is the color target format; FormatUndefined defaults to dev.SurfaceFormat()."
            },
            {
              "name": "DepthFormat",
              "anchor": "ParticlePipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing when not FormatUndefined."
            },
            {
              "name": "DepthWrite",
              "anchor": "ParticlePipelineOptions.DepthWrite",
              "kind": "field",
              "doc": "DepthWrite controls whether particles write to the depth buffer; false (the default) is standard for translucent particles."
            },
            {
              "name": "Blend",
              "anchor": "ParticlePipelineOptions.Blend",
              "kind": "field",
              "doc": "Blend selects alpha, additive, or premultiplied blending; the zero value is BlendAlpha."
            },
            {
              "name": "SoftCircle",
              "anchor": "ParticlePipelineOptions.SoftCircle",
              "kind": "field",
              "doc": "SoftCircle selects [ParticleSoftCircleWGSL] (smooth radial falloff) when TextureLayout is nil."
            },
            {
              "name": "SampleCount",
              "anchor": "ParticlePipelineOptions.SampleCount",
              "kind": "field",
              "doc": "SampleCount sets the MSAA sample count (0 or 1 for non-MSAA)."
            },
            {
              "name": "Retained",
              "anchor": "ParticlePipelineOptions.Retained",
              "kind": "field",
              "doc": "Retained opts into automatic pipeline recreation across GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RectCollider",
          "anchor": "RectCollider",
          "decl": "type RectCollider struct {\n\tX, Y, W, H float32\n}",
          "doc": "RectCollider resolves particle collisions against an axis-aligned rectangle [X, X+W] x [Y, Y+H].\n",
          "file": "pkg/particles/collide.go",
          "line": 269,
          "members": [
            {
              "name": "X",
              "anchor": "RectCollider.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "RectCollider.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "RectCollider.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "RectCollider.H",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ResolveParticle",
              "anchor": "RectCollider.ResolveParticle",
              "recv": "*RectCollider",
              "decl": "func (c *RectCollider) ResolveParticle(prevX, prevY, x, y, radius float32) (hit bool, hitX, hitY, nx, ny float32)",
              "doc": "ResolveParticle implements Collider with zero heap allocations.\n",
              "file": "pkg/particles/collide.go",
              "line": 274
            }
          ]
        },
        {
          "name": "Shape",
          "anchor": "Shape",
          "decl": "type Shape struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Shape describes where an Emitter places each new particle relative to its X, Y position.\nIts zero value is Point, which emits at X, Y.\n",
          "file": "pkg/particles/shape.go",
          "line": 19,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Circle",
              "anchor": "Circle",
              "decl": "func Circle(radius float32) Shape",
              "doc": "Circle returns a shape that emits particles uniformly over a disk of radius centered on X, Y.\n",
              "file": "pkg/particles/shape.go",
              "line": 29
            },
            {
              "name": "Point",
              "anchor": "Point",
              "decl": "func Point() Shape",
              "doc": "Point returns a shape that emits particles at the emitter's X, Y position.\n",
              "file": "pkg/particles/shape.go",
              "line": 26
            },
            {
              "name": "Rect",
              "anchor": "Rect",
              "decl": "func Rect(width, height float32) Shape",
              "doc": "Rect returns a shape that emits particles uniformly inside a width by height rectangle centered on X, Y.\n",
              "file": "pkg/particles/shape.go",
              "line": 35
            },
            {
              "name": "Ring",
              "anchor": "Ring",
              "decl": "func Ring(radius float32) Shape",
              "doc": "Ring returns a shape that emits particles uniformly on the circumference of a circle of radius centered on X, Y.\n",
              "file": "pkg/particles/shape.go",
              "line": 32
            }
          ],
          "methods": [
            {
              "name": "Height",
              "anchor": "Shape.Height",
              "recv": "Shape",
              "decl": "func (s Shape) Height() float32",
              "doc": "Height returns the height of a rect shape, or 0 for other kinds.\n",
              "file": "pkg/particles/shape.go",
              "line": 58
            },
            {
              "name": "Kind",
              "anchor": "Shape.Kind",
              "recv": "Shape",
              "decl": "func (s Shape) Kind() string",
              "doc": "Kind returns the canonical name of s: \"point\", \"circle\", \"ring\" or \"rect\".\n",
              "file": "pkg/particles/shape.go",
              "line": 38
            },
            {
              "name": "Radius",
              "anchor": "Shape.Radius",
              "recv": "Shape",
              "decl": "func (s Shape) Radius() float32",
              "doc": "Radius returns the radius of a circle or ring shape, or 0 for other kinds.\n",
              "file": "pkg/particles/shape.go",
              "line": 52
            },
            {
              "name": "Width",
              "anchor": "Shape.Width",
              "recv": "Shape",
              "decl": "func (s Shape) Width() float32",
              "doc": "Width returns the width of a rect shape, or 0 for other kinds.\n",
              "file": "pkg/particles/shape.go",
              "line": 55
            }
          ]
        },
        {
          "name": "Shape3D",
          "anchor": "Shape3D",
          "decl": "type Shape3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Shape3D describes where an [Emitter3D] places each new particle relative to its Position.\nIts zero value is [Point3D], which emits at Position.\n",
          "file": "pkg/particles/emitter3d.go",
          "line": 31,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Box",
              "anchor": "Box",
              "decl": "func Box(width, height, depth float32) Shape3D",
              "doc": "Box returns a 3D shape that emits particles uniformly inside a width × height × depth box centered on Position, aligned with the emitter's basis (width along side, height along Direction, depth along forward).\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 48
            },
            {
              "name": "Cone",
              "anchor": "Cone",
              "decl": "func Cone(radius, angle float32) Shape3D",
              "doc": "Cone returns a 3D shape that emits particles from a disk of radius perpendicular to Direction and directs them outward within a cone of half-angle angle (in radians, clamped to [0, pi/2]).\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 53
            },
            {
              "name": "Hemisphere",
              "anchor": "Hemisphere",
              "decl": "func Hemisphere(radius float32) Shape3D",
              "doc": "Hemisphere returns a 3D shape that emits particles uniformly throughout the upper hemisphere (along the emitter's Direction) of radius centered on Position.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 45
            },
            {
              "name": "Point3D",
              "anchor": "Point3D",
              "decl": "func Point3D() Shape3D",
              "doc": "Point3D returns a 3D shape that emits particles at the emitter's Position.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 39
            },
            {
              "name": "Ring3D",
              "anchor": "Ring3D",
              "decl": "func Ring3D(radius float32) Shape3D",
              "doc": "Ring3D returns a 3D shape that emits particles uniformly on the circumference of a circle of radius in the plane perpendicular to Direction.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 58
            },
            {
              "name": "Sphere",
              "anchor": "Sphere",
              "decl": "func Sphere(radius float32) Shape3D",
              "doc": "Sphere returns a 3D shape that emits particles uniformly throughout a sphere of radius centered on Position.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 42
            }
          ],
          "methods": [
            {
              "name": "String",
              "anchor": "Shape3D.String",
              "recv": "Shape3D",
              "decl": "func (s Shape3D) String() string",
              "doc": "String returns the canonical string name of the 3D shape kind.\n",
              "file": "pkg/particles/emitter3d.go",
              "line": 61
            }
          ]
        },
        {
          "name": "ShapeDoc",
          "anchor": "ShapeDoc",
          "decl": "type ShapeDoc struct {\n\t// Kind selects the shape: \"point\", \"circle\", \"ring\" or \"rect\".\n\tKind string `yaml:\"kind,omitempty\" schema:\"enum=point|circle|ring|rect\"`\n\t// Radius is the radius in points for \"circle\" and \"ring\" shapes.\n\tRadius float32 `yaml:\"radius,omitempty\"`\n\t// Width is the width in points for a \"rect\" shape.\n\tWidth float32 `yaml:\"width,omitempty\"`\n\t// Height is the height in points for a \"rect\" shape.\n\tHeight float32 `yaml:\"height,omitempty\"`\n}",
          "doc": "ShapeDoc describes a 2D emission shape in YAML.\n",
          "file": "pkg/particles/schema.go",
          "line": 78,
          "members": [
            {
              "name": "Kind",
              "anchor": "ShapeDoc.Kind",
              "kind": "field",
              "doc": "Kind selects the shape: \"point\", \"circle\", \"ring\" or \"rect\"."
            },
            {
              "name": "Radius",
              "anchor": "ShapeDoc.Radius",
              "kind": "field",
              "doc": "Radius is the radius in points for \"circle\" and \"ring\" shapes."
            },
            {
              "name": "Width",
              "anchor": "ShapeDoc.Width",
              "kind": "field",
              "doc": "Width is the width in points for a \"rect\" shape."
            },
            {
              "name": "Height",
              "anchor": "ShapeDoc.Height",
              "kind": "field",
              "doc": "Height is the height in points for a \"rect\" shape."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SimulationSpace",
          "anchor": "SimulationSpace",
          "decl": "type SimulationSpace uint8",
          "doc": "SimulationSpace controls whether particles simulate in world coordinates or emitter-local coordinates.\n",
          "file": "pkg/particles/space.go",
          "line": 14,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SpaceWorld",
                  "anchor": "SpaceWorld"
                },
                {
                  "name": "SpaceLocal",
                  "anchor": "SpaceLocal"
                }
              ],
              "decl": "const (\n\t// SpaceWorld simulates particles in world coordinates so they keep their positions when the emitter moves (default).\n\tSpaceWorld SimulationSpace = iota\n\t// SpaceLocal simulates particles in emitter-local coordinates and transforms them by the emitter's current X, Y, and Rotation at Draw time.\n\tSpaceLocal\n)",
              "doc": "",
              "file": "pkg/particles/space.go",
              "line": 16
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "SimulationSpace.String",
              "recv": "SimulationSpace",
              "decl": "func (s SimulationSpace) String() string",
              "doc": "String returns the canonical string name of the simulation space.\n",
              "file": "pkg/particles/space.go",
              "line": 24
            }
          ]
        },
        {
          "name": "SubEmitterDoc",
          "anchor": "SubEmitterDoc",
          "decl": "type SubEmitterDoc struct {\n\t// Trigger selects which parent particle event fires the burst: \"birth\", \"death\" or \"collision\".\n\tTrigger string `yaml:\"trigger,omitempty\" schema:\"enum=birth|death|collision\"`\n\t// BurstCount is how many child particles to emit on each trigger event.\n\tBurstCount int `yaml:\"burstCount,omitempty\"`\n\t// InheritVelocity multiplies parent velocity added to each spawned child particle.\n\tInheritVelocity float32 `yaml:\"inheritVelocity,omitempty\"`\n\t// Config configures the child emitter (without a version key).\n\tConfig *EmitterFieldsDoc `yaml:\"config,omitempty\"`\n}",
          "doc": "SubEmitterDoc describes one child burst rule in YAML.\n",
          "file": "pkg/particles/schema.go",
          "line": 152,
          "members": [
            {
              "name": "Trigger",
              "anchor": "SubEmitterDoc.Trigger",
              "kind": "field",
              "doc": "Trigger selects which parent particle event fires the burst: \"birth\", \"death\" or \"collision\"."
            },
            {
              "name": "BurstCount",
              "anchor": "SubEmitterDoc.BurstCount",
              "kind": "field",
              "doc": "BurstCount is how many child particles to emit on each trigger event."
            },
            {
              "name": "InheritVelocity",
              "anchor": "SubEmitterDoc.InheritVelocity",
              "kind": "field",
              "doc": "InheritVelocity multiplies parent velocity added to each spawned child particle."
            },
            {
              "name": "Config",
              "anchor": "SubEmitterDoc.Config",
              "kind": "field",
              "doc": "Config configures the child emitter (without a version key)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SubEmitterRule",
          "anchor": "SubEmitterRule",
          "decl": "type SubEmitterRule struct {\n\t// Trigger selects when the sub-emitter fires.\n\tTrigger SubEmitterTrigger\n\t// Config configures the child emitter spawned by this rule.\n\tConfig Config\n\t// BurstCount is how many child particles to emit on each trigger event; defaults to 1 when <= 0.\n\tBurstCount int\n\t// InheritVelocity adds InheritVelocity * parentVelocity to each spawned child particle's initial velocity.\n\tInheritVelocity float32\n}",
          "doc": "SubEmitterRule spawns a burst of child particles from a parent particle event.\n",
          "file": "pkg/particles/space.go",
          "line": 58,
          "members": [
            {
              "name": "Trigger",
              "anchor": "SubEmitterRule.Trigger",
              "kind": "field",
              "doc": "Trigger selects when the sub-emitter fires."
            },
            {
              "name": "Config",
              "anchor": "SubEmitterRule.Config",
              "kind": "field",
              "doc": "Config configures the child emitter spawned by this rule."
            },
            {
              "name": "BurstCount",
              "anchor": "SubEmitterRule.BurstCount",
              "kind": "field",
              "doc": "BurstCount is how many child particles to emit on each trigger event; defaults to 1 when <= 0."
            },
            {
              "name": "InheritVelocity",
              "anchor": "SubEmitterRule.InheritVelocity",
              "kind": "field",
              "doc": "InheritVelocity adds InheritVelocity * parentVelocity to each spawned child particle's initial velocity."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SubEmitterTrigger",
          "anchor": "SubEmitterTrigger",
          "decl": "type SubEmitterTrigger uint8",
          "doc": "SubEmitterTrigger specifies which parent particle lifecycle event fires a SubEmitterRule.\n",
          "file": "pkg/particles/space.go",
          "line": 34,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TriggerOnBirth",
                  "anchor": "TriggerOnBirth"
                },
                {
                  "name": "TriggerOnDeath",
                  "anchor": "TriggerOnDeath"
                },
                {
                  "name": "TriggerOnCollision",
                  "anchor": "TriggerOnCollision"
                }
              ],
              "decl": "const (\n\t// TriggerOnBirth fires when a parent particle is spawned.\n\tTriggerOnBirth SubEmitterTrigger = iota\n\t// TriggerOnDeath fires when a parent particle expires (or is killed by CollideKill).\n\tTriggerOnDeath\n\t// TriggerOnCollision fires when a parent particle hits a Collider.\n\tTriggerOnCollision\n)",
              "doc": "",
              "file": "pkg/particles/space.go",
              "line": 36
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "SubEmitterTrigger.String",
              "recv": "SubEmitterTrigger",
              "decl": "func (t SubEmitterTrigger) String() string",
              "doc": "String returns the canonical string name of the sub-emitter trigger.\n",
              "file": "pkg/particles/space.go",
              "line": 46
            }
          ]
        },
        {
          "name": "System",
          "anchor": "System",
          "decl": "type System struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "System manages multiple Emitters (and their sub-emitters and trails) as a single unit stepped by game.Loop.\n",
          "file": "pkg/particles/space.go",
          "line": 363,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSystem",
              "anchor": "NewSystem",
              "decl": "func NewSystem(emitters ...*Emitter) *System",
              "doc": "NewSystem creates a System pre-populated with any provided emitters.\n",
              "file": "pkg/particles/space.go",
              "line": 368
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "System.Add",
              "recv": "*System",
              "decl": "func (s *System) Add(e *Emitter)",
              "doc": "Add registers an emitter with the system.\n",
              "file": "pkg/particles/space.go",
              "line": 377
            },
            {
              "name": "Clear",
              "anchor": "System.Clear",
              "recv": "*System",
              "decl": "func (s *System) Clear()",
              "doc": "Clear clears all live particles from all registered emitters.\n",
              "file": "pkg/particles/space.go",
              "line": 420
            },
            {
              "name": "Draw",
              "anchor": "System.Draw",
              "recv": "*System",
              "decl": "func (s *System) Draw(d *core.Drawing)",
              "doc": "Draw draws all registered emitters into d in registration order.\n",
              "file": "pkg/particles/space.go",
              "line": 404
            },
            {
              "name": "Emitters",
              "anchor": "System.Emitters",
              "recv": "*System",
              "decl": "func (s *System) Emitters() []*Emitter",
              "doc": "Emitters returns the slice of registered emitters.\n",
              "file": "pkg/particles/space.go",
              "line": 434
            },
            {
              "name": "Remove",
              "anchor": "System.Remove",
              "recv": "*System",
              "decl": "func (s *System) Remove(e *Emitter)",
              "doc": "Remove unregisters an emitter from the system.\n",
              "file": "pkg/particles/space.go",
              "line": 385
            },
            {
              "name": "Reset",
              "anchor": "System.Reset",
              "recv": "*System",
              "decl": "func (s *System) Reset()",
              "doc": "Reset resets all registered emitters and their PRNGs.\n",
              "file": "pkg/particles/space.go",
              "line": 427
            },
            {
              "name": "TotalCount",
              "anchor": "System.TotalCount",
              "recv": "*System",
              "decl": "func (s *System) TotalCount() int",
              "doc": "TotalCount returns the total number of live particles across all registered emitters and their sub-emitters.\n",
              "file": "pkg/particles/space.go",
              "line": 411
            },
            {
              "name": "Update",
              "anchor": "System.Update",
              "recv": "*System",
              "decl": "func (s *System) Update(dt time.Duration)",
              "doc": "Update advances all registered emitters by dt.\n",
              "file": "pkg/particles/space.go",
              "line": 397
            }
          ]
        },
        {
          "name": "TileGridCollider",
          "anchor": "TileGridCollider",
          "decl": "type TileGridCollider struct {\n\t// TileSize is the width and height of one tile in points. Non-positive disables collisions.\n\tTileSize float32\n\t// OriginX and OriginY are the world coordinates of tile (0, 0)'s top-left corner.\n\tOriginX float32\n\tOriginY float32\n\t// SolidAt reports whether the tile at (col, row) is solid.\n\tSolidAt func(col, row int) bool\n}",
          "doc": "TileGridCollider resolves particle collisions against a uniform 2D tile grid via a SolidAt lookup callback.\n",
          "file": "pkg/particles/collide.go",
          "line": 56,
          "members": [
            {
              "name": "TileSize",
              "anchor": "TileGridCollider.TileSize",
              "kind": "field",
              "doc": "TileSize is the width and height of one tile in points. Non-positive disables collisions."
            },
            {
              "name": "OriginX",
              "anchor": "TileGridCollider.OriginX",
              "kind": "field",
              "doc": "OriginX and OriginY are the world coordinates of tile (0, 0)'s top-left corner."
            },
            {
              "name": "OriginY",
              "anchor": "TileGridCollider.OriginY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SolidAt",
              "anchor": "TileGridCollider.SolidAt",
              "kind": "field",
              "doc": "SolidAt reports whether the tile at (col, row) is solid."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ResolveParticle",
              "anchor": "TileGridCollider.ResolveParticle",
              "recv": "*TileGridCollider",
              "decl": "func (c *TileGridCollider) ResolveParticle(prevX, prevY, x, y, radius float32) (hit bool, hitX, hitY, nx, ny float32)",
              "doc": "ResolveParticle implements Collider with zero heap allocations.\n",
              "file": "pkg/particles/collide.go",
              "line": 67
            }
          ]
        },
        {
          "name": "Trail",
          "anchor": "Trail",
          "decl": "type Trail struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Trail builds and draws a smooth 2D ribbon from a sequence of sampled positions.\n",
          "file": "pkg/particles/trail.go",
          "line": 88,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTrail",
              "anchor": "NewTrail",
              "decl": "func NewTrail(cfg TrailConfig) *Trail",
              "doc": "NewTrail creates a new Trail with the given configuration.\n",
              "file": "pkg/particles/trail.go",
              "line": 101
            }
          ],
          "methods": [
            {
              "name": "AddPoint",
              "anchor": "Trail.AddPoint",
              "recv": "*Trail",
              "decl": "func (t *Trail) AddPoint(x, y float32)",
              "doc": "AddPoint appends (x, y) to the trail head if it is at least MinDistance from the previous point.\n",
              "file": "pkg/particles/trail.go",
              "line": 146
            },
            {
              "name": "Attach",
              "anchor": "Trail.Attach",
              "recv": "*Trail",
              "decl": "func (t *Trail) Attach(posFn func() (float32, float32))",
              "doc": "Attach binds a position callback sampled automatically on each Update call.\nPassing nil detaches any existing callback.\n",
              "file": "pkg/particles/trail.go",
              "line": 127
            },
            {
              "name": "Clear",
              "anchor": "Trail.Clear",
              "recv": "*Trail",
              "decl": "func (t *Trail) Clear()",
              "doc": "Clear removes all recorded points from the trail.\n",
              "file": "pkg/particles/trail.go",
              "line": 232
            },
            {
              "name": "Config",
              "anchor": "Trail.Config",
              "recv": "*Trail",
              "decl": "func (t *Trail) Config() TrailConfig",
              "doc": "Config returns a copy of the trail's configuration.\n",
              "file": "pkg/particles/trail.go",
              "line": 108
            },
            {
              "name": "Detach",
              "anchor": "Trail.Detach",
              "recv": "*Trail",
              "decl": "func (t *Trail) Detach()",
              "doc": "Detach removes any attached position callback.\n",
              "file": "pkg/particles/trail.go",
              "line": 136
            },
            {
              "name": "Draw",
              "anchor": "Trail.Draw",
              "recv": "*Trail",
              "decl": "func (t *Trail) Draw(d *core.Drawing)",
              "doc": "Draw builds the ribbon strip along perpendicular normals and draws it into d.\nDoes nothing if fewer than 2 points are active.\n",
              "file": "pkg/particles/trail.go",
              "line": 266
            },
            {
              "name": "EvaluateAt",
              "anchor": "Trail.EvaluateAt",
              "recv": "*Trail",
              "decl": "func (t *Trail) EvaluateAt(u float32) (width float32, color core.Color)",
              "doc": "EvaluateAt evaluates the ribbon width and color at normalized parameter u in [0, 1],\nwhere 0 is the newest head and 1 is the oldest tail.\n",
              "file": "pkg/particles/trail.go",
              "line": 250
            },
            {
              "name": "Follow",
              "anchor": "Trail.Follow",
              "recv": "*Trail",
              "decl": "func (t *Trail) Follow(x, y float32)",
              "doc": "Follow records the current position of a tracked object into the trail.\n",
              "file": "pkg/particles/trail.go",
              "line": 141
            },
            {
              "name": "PointCount",
              "anchor": "Trail.PointCount",
              "recv": "*Trail",
              "decl": "func (t *Trail) PointCount() int",
              "doc": "PointCount returns the number of active vertices in the trail.\n",
              "file": "pkg/particles/trail.go",
              "line": 244
            },
            {
              "name": "Points",
              "anchor": "Trail.Points",
              "recv": "*Trail",
              "decl": "func (t *Trail) Points() []TrailPoint",
              "doc": "Points returns the active trail vertices from oldest (tail, index 0) to newest (head, last index).\nThe returned slice is backed by internal storage; copy it to retain a snapshot.\n",
              "file": "pkg/particles/trail.go",
              "line": 239
            },
            {
              "name": "SetConfig",
              "anchor": "Trail.SetConfig",
              "recv": "*Trail",
              "decl": "func (t *Trail) SetConfig(cfg TrailConfig)",
              "doc": "SetConfig updates the trail's configuration without clearing live points.\n",
              "file": "pkg/particles/trail.go",
              "line": 113
            },
            {
              "name": "Update",
              "anchor": "Trail.Update",
              "recv": "*Trail",
              "decl": "func (t *Trail) Update(dt float32)",
              "doc": "Update advances all point ages by dt seconds, removes expired points, and samples any attached callback.\nNon-positive dt does nothing.\n",
              "file": "pkg/particles/trail.go",
              "line": 196
            }
          ]
        },
        {
          "name": "TrailConfig",
          "anchor": "TrailConfig",
          "decl": "type TrailConfig struct {\n\t// MaxPoints caps the number of recorded polyline vertices; defaults to 64 when <= 0.\n\tMaxPoints int\n\t// Lifetime is how long each vertex lives in seconds before expiring; defaults to 0.5 when <= 0.\n\tLifetime float32\n\t// MinDistance is the minimum distance in points from the newest vertex before appending a new vertex.\n\t// Zero or negative records every distinct point (exact duplicates refresh the newest vertex's age).\n\tMinDistance float32\n\t// Width is the base ribbon width in points; defaults to 4 when <= 0.\n\tWidth float32\n\t// WidthCurve scales Width along the trail from head (t=0, newest) to tail (t=1, oldest). Empty keeps 1.\n\tWidthCurve Curve\n\t// ColorGradient evaluates color along the trail from head (t=0, newest) to tail (t=1, oldest).\n\t// When empty, Color is used (defaulting to opaque white when 0).\n\tColorGradient ColorCurve\n\t// Color is the fallback solid color when ColorGradient is empty; defaults to opaque white when 0.\n\tColor core.Color\n\t// Texture is an optional image mapped across each ribbon segment when non-empty.\n\tTexture core.ImageSource\n}",
          "doc": "TrailConfig configures a 2D ribbon trail.\n",
          "file": "pkg/particles/trail.go",
          "line": 16,
          "members": [
            {
              "name": "MaxPoints",
              "anchor": "TrailConfig.MaxPoints",
              "kind": "field",
              "doc": "MaxPoints caps the number of recorded polyline vertices; defaults to 64 when <= 0."
            },
            {
              "name": "Lifetime",
              "anchor": "TrailConfig.Lifetime",
              "kind": "field",
              "doc": "Lifetime is how long each vertex lives in seconds before expiring; defaults to 0.5 when <= 0."
            },
            {
              "name": "MinDistance",
              "anchor": "TrailConfig.MinDistance",
              "kind": "field",
              "doc": "MinDistance is the minimum distance in points from the newest vertex before appending a new vertex.\nZero or negative records every distinct point (exact duplicates refresh the newest vertex's age)."
            },
            {
              "name": "Width",
              "anchor": "TrailConfig.Width",
              "kind": "field",
              "doc": "Width is the base ribbon width in points; defaults to 4 when <= 0."
            },
            {
              "name": "WidthCurve",
              "anchor": "TrailConfig.WidthCurve",
              "kind": "field",
              "doc": "WidthCurve scales Width along the trail from head (t=0, newest) to tail (t=1, oldest). Empty keeps 1."
            },
            {
              "name": "ColorGradient",
              "anchor": "TrailConfig.ColorGradient",
              "kind": "field",
              "doc": "ColorGradient evaluates color along the trail from head (t=0, newest) to tail (t=1, oldest).\nWhen empty, Color is used (defaulting to opaque white when 0)."
            },
            {
              "name": "Color",
              "anchor": "TrailConfig.Color",
              "kind": "field",
              "doc": "Color is the fallback solid color when ColorGradient is empty; defaults to opaque white when 0."
            },
            {
              "name": "Texture",
              "anchor": "TrailConfig.Texture",
              "kind": "field",
              "doc": "Texture is an optional image mapped across each ribbon segment when non-empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TrailDoc",
          "anchor": "TrailDoc",
          "decl": "type TrailDoc struct {\n\t// MaxPoints caps the recorded polyline vertices per trail (defaults to 64 when 0).\n\tMaxPoints int `yaml:\"maxPoints,omitempty\"`\n\t// Lifetime is how long each trail vertex lives in seconds (defaults to 0.5 when 0).\n\tLifetime float32 `yaml:\"lifetime,omitempty\"`\n\t// MinDistance is the minimum spacing in points between consecutive trail vertices.\n\tMinDistance float32 `yaml:\"minDistance,omitempty\"`\n\t// Width is the base ribbon width in points (defaults to 4 when 0).\n\tWidth float32 `yaml:\"width,omitempty\"`\n\t// WidthCurve scales Width from head (t=0) to tail (t=1).\n\tWidthCurve []FloatStopDoc `yaml:\"widthCurve,omitempty\"`\n\t// ColorGradient evaluates color from head (t=0) to tail (t=1).\n\tColorGradient []ColorStopDoc `yaml:\"colorGradient,omitempty\"`\n\t// Color is the fallback solid hex color \"#rrggbb\" or \"#rrggbbaa\" when colorGradient is empty.\n\tColor string `yaml:\"color,omitempty\"`\n\t// TextureURI is an optional image URI mapped across trail segments.\n\tTextureURI string `yaml:\"textureURI,omitempty\"`\n}",
          "doc": "TrailDoc describes per-particle ribbon trail settings in YAML.\n",
          "file": "pkg/particles/schema.go",
          "line": 132,
          "members": [
            {
              "name": "MaxPoints",
              "anchor": "TrailDoc.MaxPoints",
              "kind": "field",
              "doc": "MaxPoints caps the recorded polyline vertices per trail (defaults to 64 when 0)."
            },
            {
              "name": "Lifetime",
              "anchor": "TrailDoc.Lifetime",
              "kind": "field",
              "doc": "Lifetime is how long each trail vertex lives in seconds (defaults to 0.5 when 0)."
            },
            {
              "name": "MinDistance",
              "anchor": "TrailDoc.MinDistance",
              "kind": "field",
              "doc": "MinDistance is the minimum spacing in points between consecutive trail vertices."
            },
            {
              "name": "Width",
              "anchor": "TrailDoc.Width",
              "kind": "field",
              "doc": "Width is the base ribbon width in points (defaults to 4 when 0)."
            },
            {
              "name": "WidthCurve",
              "anchor": "TrailDoc.WidthCurve",
              "kind": "field",
              "doc": "WidthCurve scales Width from head (t=0) to tail (t=1)."
            },
            {
              "name": "ColorGradient",
              "anchor": "TrailDoc.ColorGradient",
              "kind": "field",
              "doc": "ColorGradient evaluates color from head (t=0) to tail (t=1)."
            },
            {
              "name": "Color",
              "anchor": "TrailDoc.Color",
              "kind": "field",
              "doc": "Color is the fallback solid hex color \"#rrggbb\" or \"#rrggbbaa\" when colorGradient is empty."
            },
            {
              "name": "TextureURI",
              "anchor": "TrailDoc.TextureURI",
              "kind": "field",
              "doc": "TextureURI is an optional image URI mapped across trail segments."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TrailManager",
          "anchor": "TrailManager",
          "decl": "type TrailManager struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TrailManager updates and draws a collection of trails (such as moving sprite or projectile ribbons).\n",
          "file": "pkg/particles/trail.go",
          "line": 457,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTrailManager",
              "anchor": "NewTrailManager",
              "decl": "func NewTrailManager() *TrailManager",
              "doc": "NewTrailManager creates an empty TrailManager.\n",
              "file": "pkg/particles/trail.go",
              "line": 462
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "TrailManager.Add",
              "recv": "*TrailManager",
              "decl": "func (m *TrailManager) Add(cfg TrailConfig) *Trail",
              "doc": "Add creates a new Trail with cfg, registers it with the manager, and returns it.\n",
              "file": "pkg/particles/trail.go",
              "line": 467
            },
            {
              "name": "AddTrail",
              "anchor": "TrailManager.AddTrail",
              "recv": "*TrailManager",
              "decl": "func (m *TrailManager) AddTrail(tr *Trail)",
              "doc": "AddTrail registers an existing Trail with the manager.\n",
              "file": "pkg/particles/trail.go",
              "line": 474
            },
            {
              "name": "Clear",
              "anchor": "TrailManager.Clear",
              "recv": "*TrailManager",
              "decl": "func (m *TrailManager) Clear()",
              "doc": "Clear removes all points from all managed trails without unregistering them.\n",
              "file": "pkg/particles/trail.go",
              "line": 508
            },
            {
              "name": "Count",
              "anchor": "TrailManager.Count",
              "recv": "*TrailManager",
              "decl": "func (m *TrailManager) Count() int",
              "doc": "Count returns the number of trails registered with the manager.\n",
              "file": "pkg/particles/trail.go",
              "line": 515
            },
            {
              "name": "Draw",
              "anchor": "TrailManager.Draw",
              "recv": "*TrailManager",
              "decl": "func (m *TrailManager) Draw(d *core.Drawing)",
              "doc": "Draw draws all managed trails into d in registration order.\n",
              "file": "pkg/particles/trail.go",
              "line": 501
            },
            {
              "name": "Remove",
              "anchor": "TrailManager.Remove",
              "recv": "*TrailManager",
              "decl": "func (m *TrailManager) Remove(tr *Trail)",
              "doc": "Remove unregisters tr from the manager.\n",
              "file": "pkg/particles/trail.go",
              "line": 482
            },
            {
              "name": "Trails",
              "anchor": "TrailManager.Trails",
              "recv": "*TrailManager",
              "decl": "func (m *TrailManager) Trails() []*Trail",
              "doc": "Trails returns the slice of managed trails.\n",
              "file": "pkg/particles/trail.go",
              "line": 520
            },
            {
              "name": "Update",
              "anchor": "TrailManager.Update",
              "recv": "*TrailManager",
              "decl": "func (m *TrailManager) Update(dt float32)",
              "doc": "Update advances all managed trails by dt seconds.\n",
              "file": "pkg/particles/trail.go",
              "line": 494
            }
          ]
        },
        {
          "name": "TrailPoint",
          "anchor": "TrailPoint",
          "decl": "type TrailPoint struct {\n\tX, Y   float32\n\tAge    float32\n\tLength float32\n}",
          "doc": "TrailPoint is one recorded vertex along a Trail polyline.\n",
          "file": "pkg/particles/trail.go",
          "line": 77,
          "members": [
            {
              "name": "X",
              "anchor": "TrailPoint.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "TrailPoint.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Age",
              "anchor": "TrailPoint.Age",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Length",
              "anchor": "TrailPoint.Length",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/perf",
      "name": "perf",
      "dir": "pkg/perf",
      "page": "pkg/perf",
      "synopsis": "Package perf provides allocation-free game-loop performance primitives built on NSGo's public core types and the game sprite package:",
      "doc": "Package perf provides allocation-free game-loop performance primitives built\non NSGo's public core types and the game sprite package:\n\n  - Deterministic object pools ([Pool], [Arena], [SlicePool]) that reuse\n    memory across frames without dropping entries during garbage collection.\n  - 2D broad-phase spatial indices ([SpatialHash] and [Quadtree]) for O(k)\n    area queries, point queries, and collision pair generation.\n  - Viewport culling helpers ([Intersects], [SpriteBounds], [CullSprites],\n    [CullBatch], [BatchCuller], and generic [Cull]) to skip off-screen work.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "Cull",
          "anchor": "Cull",
          "decl": "func Cull[T any](view core.Bounds, items []T, boundsOf func(T) core.Bounds, dst []T) []T",
          "doc": "Cull appends every item from items whose bounds (computed by boundsOf)\nintersect view to dst and returns the extended slice. Pass dst[:0] to reuse\nbacking storage with 0 allocations.\n",
          "file": "pkg/perf/cull.go",
          "line": 142
        },
        {
          "name": "CullBatch",
          "anchor": "CullBatch",
          "decl": "func CullBatch(batch *sprite.Batch, view core.Bounds, d *core.Drawing)",
          "doc": "CullBatch draws only the visible sprites from batch whose world-space bounds\nintersect view into d, preserving Z-order without mutating batch.Sprites.\n\nFor zero-allocation repeated draws across frames, use [BatchCuller].\n",
          "file": "pkg/perf/cull.go",
          "line": 109
        },
        {
          "name": "CullSprites",
          "anchor": "CullSprites",
          "decl": "func CullSprites(view core.Bounds, src []*sprite.Sprite, dst []*sprite.Sprite) []*sprite.Sprite",
          "doc": "CullSprites appends every sprite from src that is visible (Alpha > 0 and\nwhose world-space [SpriteBounds] intersect view) to dst and returns the\nextended slice. Pass dst[:0] to reuse backing storage with 0 allocations.\n",
          "file": "pkg/perf/cull.go",
          "line": 90
        },
        {
          "name": "Intersects",
          "anchor": "Intersects",
          "decl": "func Intersects(a, b core.Bounds) bool",
          "doc": "Intersects reports whether rectangles a and b overlap with positive area\nusing half-open [Origin, Origin+Size) semantics consistent with\ncore.Bounds.Contains. Empty or non-finite rectangles never intersect.\n",
          "file": "pkg/perf/cull.go",
          "line": 13
        },
        {
          "name": "SpriteBounds",
          "anchor": "SpriteBounds",
          "decl": "func SpriteBounds(s *sprite.Sprite) core.Bounds",
          "doc": "SpriteBounds computes the exact axis-aligned world-space bounding box of s's\ndrawn pixels, accounting for frame trim offsets, origin, scale, flip, and\nrotation identically to sprite.Batch.Draw.\n\nIt returns a zero core.Bounds when s is nil, has a zero-sized frame, or has\nzero ScaleX or ScaleY.\n",
          "file": "pkg/perf/cull.go",
          "line": 29
        }
      ],
      "types": [
        {
          "name": "Arena",
          "anchor": "Arena",
          "decl": "type Arena[T any] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Arena is a dense, contiguous object pool with stable generational [Handle]s\nand O(1) swap-remove. Active values live contiguously in memory for\ncache-friendly iteration via [Arena.ForEach], [Arena.All], and [Arena.Slice].\n",
          "file": "pkg/perf/pool.go",
          "line": 149,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewArena",
              "anchor": "NewArena",
              "decl": "func NewArena[T any](initialCap int, reset func(*T)) *Arena[T]",
              "doc": "NewArena creates an Arena with initial backing capacity for initialCap items.\nWhen reset is non-nil, it is invoked on removed or reset elements instead of\nzeroing them.\n",
              "file": "pkg/perf/pool.go",
              "line": 160
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Arena.Add",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) Add(v T) Handle",
              "doc": "Add inserts v into the arena and returns its stable handle.\n",
              "file": "pkg/perf/pool.go",
              "line": 174
            },
            {
              "name": "All",
              "anchor": "Arena.All",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) All() iter.Seq2[Handle, *T]",
              "doc": "All returns an iterator over every live (handle, pointer) pair in dense\nmemory order, supporting early termination with break.\n",
              "file": "pkg/perf/pool.go",
              "line": 289
            },
            {
              "name": "Alloc",
              "anchor": "Arena.Alloc",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) Alloc() (Handle, *T)",
              "doc": "Alloc reserves a slot in the arena and returns its handle and a pointer to\nthe newly reserved element for in-place initialization. The pointer is valid\nonly until the next Add, Alloc, Remove, or Reset.\n",
              "file": "pkg/perf/pool.go",
              "line": 183
            },
            {
              "name": "Cap",
              "anchor": "Arena.Cap",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) Cap() int",
              "doc": "Cap returns the current dense slice capacity of the arena.\n",
              "file": "pkg/perf/pool.go",
              "line": 271
            },
            {
              "name": "ForEach",
              "anchor": "Arena.ForEach",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) ForEach(fn func(h Handle, v *T))",
              "doc": "ForEach invokes fn for every live element in dense memory order.\nCallers must not add or remove elements while iterating.\n",
              "file": "pkg/perf/pool.go",
              "line": 280
            },
            {
              "name": "Get",
              "anchor": "Arena.Get",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) Get(h Handle) (*T, bool)",
              "doc": "Get resolves h to a pointer to its live element. It returns (nil, false) if\nh is zero or has been removed. The returned pointer is valid until the next\nmutation of the arena.\n",
              "file": "pkg/perf/pool.go",
              "line": 209
            },
            {
              "name": "Has",
              "anchor": "Arena.Has",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) Has(h Handle) bool",
              "doc": "Has reports whether h currently refers to a live element in the arena.\n",
              "file": "pkg/perf/pool.go",
              "line": 221
            },
            {
              "name": "Len",
              "anchor": "Arena.Len",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) Len() int",
              "doc": "Len returns the number of live elements in the arena.\n",
              "file": "pkg/perf/pool.go",
              "line": 268
            },
            {
              "name": "Remove",
              "anchor": "Arena.Remove",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) Remove(h Handle) bool",
              "doc": "Remove deletes the element referenced by h in O(1) time via swap-remove and\ninvalidates h. It returns false if h is already invalid.\n",
              "file": "pkg/perf/pool.go",
              "line": 231
            },
            {
              "name": "Reset",
              "anchor": "Arena.Reset",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) Reset()",
              "doc": "Reset removes all live elements, invalidating all outstanding handles, while\nretaining all backing capacities for zero-allocation reuse.\n",
              "file": "pkg/perf/pool.go",
              "line": 302
            },
            {
              "name": "Slice",
              "anchor": "Arena.Slice",
              "recv": "*Arena[T]",
              "decl": "func (a *Arena[T]) Slice() []T",
              "doc": "Slice returns the contiguous slice of all live elements in the arena for\ndirect cache-friendly iteration. Callers must not append to or re-slice the\nreturned slice header in place of arena mutations.\n",
              "file": "pkg/perf/pool.go",
              "line": 276
            }
          ]
        },
        {
          "name": "BatchCuller",
          "anchor": "BatchCuller",
          "decl": "type BatchCuller struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "BatchCuller draws only visible sprites from a [sprite.Batch] while reusing\ninternal scratch slices across frames for zero steady-state allocations.\n",
          "file": "pkg/perf/cull.go",
          "line": 119,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "BatchCuller.Draw",
              "recv": "*BatchCuller",
              "decl": "func (c *BatchCuller) Draw(batch *sprite.Batch, view core.Bounds, d *core.Drawing)",
              "doc": "Draw draws every visible sprite in batch that intersects view into d in Z\norder without mutating batch.Sprites.\n",
              "file": "pkg/perf/cull.go",
              "line": 125
            }
          ]
        },
        {
          "name": "Handle",
          "anchor": "Handle",
          "decl": "type Handle struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Handle is a stable generational reference to an element inside an [Arena].\nIts zero value is always invalid.\n",
          "file": "pkg/perf/pool.go",
          "line": 132,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsZero",
              "anchor": "Handle.IsZero",
              "recv": "Handle",
              "decl": "func (h Handle) IsZero() bool",
              "doc": "IsZero reports whether h is the invalid zero handle.\n",
              "file": "pkg/perf/pool.go",
              "line": 138
            }
          ]
        },
        {
          "name": "Pool",
          "anchor": "Pool",
          "decl": "type Pool[T any] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Pool is a deterministic, single-threaded object pool for game-loop entities\nsuch as bullets, enemies, particles, and transient structs.\n\nUnlike sync.Pool, Pool never discards pooled objects on garbage collection:\nonce warmed up, Acquire and Release run in O(1) time with 0 allocations.\nPointers returned by Acquire remain stable across pool growth because memory\nis allocated in fixed chunks.\n",
          "file": "pkg/perf/pool.go",
          "line": 14,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPool",
              "anchor": "NewPool",
              "decl": "func NewPool[T any](initialCap int, reset func(*T)) *Pool[T]",
              "doc": "NewPool creates a Pool pre-populated with initialCap reusable objects.\n\nWhen reset is non-nil, it is called on each object when released or when\nReset is called, allowing callers to clear fields while keeping internal\nslice capacities. When reset is nil, objects are zeroed on release and Reset.\n",
              "file": "pkg/perf/pool.go",
              "line": 27
            }
          ],
          "methods": [
            {
              "name": "Acquire",
              "anchor": "Pool.Acquire",
              "recv": "*Pool[T]",
              "decl": "func (p *Pool[T]) Acquire() *T",
              "doc": "Acquire returns a pointer to a pooled object, allocating a new chunk only\nwhen no free objects remain.\n",
              "file": "pkg/perf/pool.go",
              "line": 37
            },
            {
              "name": "Active",
              "anchor": "Pool.Active",
              "recv": "*Pool[T]",
              "decl": "func (p *Pool[T]) Active() int",
              "doc": "Active returns the number of objects currently checked out via Acquire.\n",
              "file": "pkg/perf/pool.go",
              "line": 74
            },
            {
              "name": "Cap",
              "anchor": "Pool.Cap",
              "recv": "*Pool[T]",
              "decl": "func (p *Pool[T]) Cap() int",
              "doc": "Cap returns the total number of slots managed by the pool.\n",
              "file": "pkg/perf/pool.go",
              "line": 80
            },
            {
              "name": "Free",
              "anchor": "Pool.Free",
              "recv": "*Pool[T]",
              "decl": "func (p *Pool[T]) Free() int",
              "doc": "Free returns the number of objects immediately available without allocation.\n",
              "file": "pkg/perf/pool.go",
              "line": 77
            },
            {
              "name": "Prewarm",
              "anchor": "Pool.Prewarm",
              "recv": "*Pool[T]",
              "decl": "func (p *Pool[T]) Prewarm(n int)",
              "doc": "Prewarm ensures at least n objects are available in the free list so that\nsubsequent Acquire calls do not allocate.\n",
              "file": "pkg/perf/pool.go",
              "line": 84
            },
            {
              "name": "Release",
              "anchor": "Pool.Release",
              "recv": "*Pool[T]",
              "decl": "func (p *Pool[T]) Release(v *T)",
              "doc": "Release resets v and returns it to the free list for future Acquire calls.\nPassing nil is a no-op.\n",
              "file": "pkg/perf/pool.go",
              "line": 54
            },
            {
              "name": "Reset",
              "anchor": "Pool.Reset",
              "recv": "*Pool[T]",
              "decl": "func (p *Pool[T]) Reset()",
              "doc": "Reset reclaims all objects in the pool's chunks back to the free list\nwithout freeing backing memory. Every object is reset via the pool's reset\nhook (or zeroed if nil).\n",
              "file": "pkg/perf/pool.go",
              "line": 93
            }
          ]
        },
        {
          "name": "Quadtree",
          "anchor": "Quadtree",
          "decl": "type Quadtree[ID comparable] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Quadtree is an adaptive 2D spatial index that recursively partitions a world\nrectangle into four quadrants.\n\nEach item is placed in the deepest quadrant that completely contains its\nbounds, so straddling and out-of-world items remain in their parent (or root)\nwithout duplication. Internal nodes are stored in a flat pooled slice so\nClear + Insert + Query runs with 0 allocations in steady state.\n",
          "file": "pkg/perf/quadtree.go",
          "line": 33,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewQuadtree",
              "anchor": "NewQuadtree",
              "decl": "func NewQuadtree[ID comparable](world core.Bounds, maxItems, maxDepth int) *Quadtree[ID]",
              "doc": "NewQuadtree returns a Quadtree covering world. When a leaf exceeds maxItems\nand its depth is below maxDepth, it splits into four equal quadrants.\nNon-positive maxItems or maxDepth default to 8.\n",
              "file": "pkg/perf/quadtree.go",
              "line": 50
            }
          ],
          "methods": [
            {
              "name": "Clear",
              "anchor": "Quadtree.Clear",
              "recv": "*Quadtree[ID]",
              "decl": "func (qt *Quadtree[ID]) Clear()",
              "doc": "Clear removes all items and collapses all subdivisions while keeping pooled\nnode and slice capacities for zero-allocation reuse.\n",
              "file": "pkg/perf/quadtree.go",
              "line": 79
            },
            {
              "name": "Insert",
              "anchor": "Quadtree.Insert",
              "recv": "*Quadtree[ID]",
              "decl": "func (qt *Quadtree[ID]) Insert(id ID, bounds core.Bounds)",
              "doc": "Insert adds id with bounds to the quadtree. If id is already present, its\nbounds are replaced.\n",
              "file": "pkg/perf/quadtree.go",
              "line": 98
            },
            {
              "name": "Len",
              "anchor": "Quadtree.Len",
              "recv": "*Quadtree[ID]",
              "decl": "func (qt *Quadtree[ID]) Len() int",
              "doc": "Len returns the number of items currently stored in the quadtree.\n",
              "file": "pkg/perf/quadtree.go",
              "line": 75
            },
            {
              "name": "Query",
              "anchor": "Quadtree.Query",
              "recv": "*Quadtree[ID]",
              "decl": "func (qt *Quadtree[ID]) Query(area core.Bounds, out []ID) []ID",
              "doc": "Query appends all IDs whose bounds intersect area to out and returns the\nextended slice. Pass out[:0] to reuse a buffer with 0 allocations.\n",
              "file": "pkg/perf/quadtree.go",
              "line": 175
            },
            {
              "name": "QueryPoint",
              "anchor": "Quadtree.QueryPoint",
              "recv": "*Quadtree[ID]",
              "decl": "func (qt *Quadtree[ID]) QueryPoint(p core.Point, out []ID) []ID",
              "doc": "QueryPoint appends all IDs whose bounds contain p to out and returns the\nextended slice.\n",
              "file": "pkg/perf/quadtree.go",
              "line": 184
            },
            {
              "name": "Remove",
              "anchor": "Quadtree.Remove",
              "recv": "*Quadtree[ID]",
              "decl": "func (qt *Quadtree[ID]) Remove(id ID)",
              "doc": "Remove deletes id from the quadtree in O(1) time. Removing an absent id is a\nno-op.\n",
              "file": "pkg/perf/quadtree.go",
              "line": 130
            },
            {
              "name": "Update",
              "anchor": "Quadtree.Update",
              "recv": "*Quadtree[ID]",
              "decl": "func (qt *Quadtree[ID]) Update(id ID, bounds core.Bounds)",
              "doc": "Update changes the bounds associated with id, inserting it if absent. When\nthe updated bounds stay inside the same leaf quadrant, Update runs in O(1).\n",
              "file": "pkg/perf/quadtree.go",
              "line": 156
            }
          ]
        },
        {
          "name": "SlicePool",
          "anchor": "SlicePool",
          "decl": "type SlicePool[T any] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "SlicePool is a deterministic pool of reusable []T scratch slices (for query\nbuffers, draw lists, particle emitters, etc.) that never drops slices on GC.\n",
          "file": "pkg/perf/pool.go",
          "line": 325,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSlicePool",
              "anchor": "NewSlicePool",
              "decl": "func NewSlicePool[T any](maxPooled int) *SlicePool[T]",
              "doc": "NewSlicePool creates a SlicePool that retains up to maxPooled slices.\nWhen maxPooled <= 0, the pool retains all released slices without a cap.\n",
              "file": "pkg/perf/pool.go",
              "line": 332
            }
          ],
          "methods": [
            {
              "name": "Acquire",
              "anchor": "SlicePool.Acquire",
              "recv": "*SlicePool[T]",
              "decl": "func (p *SlicePool[T]) Acquire(minCap int) []T",
              "doc": "Acquire returns a zero-length slice with capacity at least minCap, reusing\nthe tightest-fitting pooled slice when available.\n",
              "file": "pkg/perf/pool.go",
              "line": 342
            },
            {
              "name": "Free",
              "anchor": "SlicePool.Free",
              "recv": "*SlicePool[T]",
              "decl": "func (p *SlicePool[T]) Free() int",
              "doc": "Free returns the number of slices currently stored in the pool.\n",
              "file": "pkg/perf/pool.go",
              "line": 383
            },
            {
              "name": "Release",
              "anchor": "SlicePool.Release",
              "recv": "*SlicePool[T]",
              "decl": "func (p *SlicePool[T]) Release(s []T)",
              "doc": "Release clears s's backing elements (preventing retained pointers) and\nreturns s[:0] to the pool for reuse.\n",
              "file": "pkg/perf/pool.go",
              "line": 371
            },
            {
              "name": "Reset",
              "anchor": "SlicePool.Reset",
              "recv": "*SlicePool[T]",
              "decl": "func (p *SlicePool[T]) Reset()",
              "doc": "Reset drops all pooled slice references from the pool.\n",
              "file": "pkg/perf/pool.go",
              "line": 386
            }
          ]
        },
        {
          "name": "SpatialHash",
          "anchor": "SpatialHash",
          "decl": "type SpatialHash[ID comparable] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "SpatialHash is a uniform 2D grid broad-phase index for fast area queries,\npoint queries, and collision pair generation.\n\nClear retains all bucket slices and map tables so per-frame rebuilds\n(Clear + Insert + Query) run with 0 allocations in steady state. Query and\nQueryPairs iterate cells in deterministic row-major order without iterating\nover Go maps, deduplicating multi-cell entries via generation counters.\n",
          "file": "pkg/perf/spatial.go",
          "line": 36,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSpatialHash",
              "anchor": "NewSpatialHash",
              "decl": "func NewSpatialHash[ID comparable](cellSize float32) *SpatialHash[ID]",
              "doc": "NewSpatialHash returns a SpatialHash with uniform square cells of cellSize\npoints. If cellSize <= 0 or non-finite, it defaults to 64.\n",
              "file": "pkg/perf/spatial.go",
              "line": 54
            }
          ],
          "methods": [
            {
              "name": "CellSize",
              "anchor": "SpatialHash.CellSize",
              "recv": "*SpatialHash[ID]",
              "decl": "func (sh *SpatialHash[ID]) CellSize() float32",
              "doc": "CellSize returns the grid cell width and height in points.\n",
              "file": "pkg/perf/spatial.go",
              "line": 69
            },
            {
              "name": "Clear",
              "anchor": "SpatialHash.Clear",
              "recv": "*SpatialHash[ID]",
              "decl": "func (sh *SpatialHash[ID]) Clear()",
              "doc": "Clear removes all items from the spatial hash while keeping all bucket slice\ncapacities and internal map tables for zero-allocation reuse on subsequent\nframes.\n",
              "file": "pkg/perf/spatial.go",
              "line": 77
            },
            {
              "name": "Insert",
              "anchor": "SpatialHash.Insert",
              "recv": "*SpatialHash[ID]",
              "decl": "func (sh *SpatialHash[ID]) Insert(id ID, bounds core.Bounds)",
              "doc": "Insert adds id with bounds to the spatial hash. If id is already present,\nits bounds are updated in place.\n",
              "file": "pkg/perf/spatial.go",
              "line": 92
            },
            {
              "name": "Len",
              "anchor": "SpatialHash.Len",
              "recv": "*SpatialHash[ID]",
              "decl": "func (sh *SpatialHash[ID]) Len() int",
              "doc": "Len returns the number of items currently stored in the spatial hash.\n",
              "file": "pkg/perf/spatial.go",
              "line": 72
            },
            {
              "name": "Query",
              "anchor": "SpatialHash.Query",
              "recv": "*SpatialHash[ID]",
              "decl": "func (sh *SpatialHash[ID]) Query(area core.Bounds, out []ID) []ID",
              "doc": "Query appends all IDs whose bounds intersect area to out and returns the\nextended slice. Multi-cell entries are reported once in deterministic order.\nPass out[:0] to reuse a buffer across frames with 0 allocations.\n",
              "file": "pkg/perf/spatial.go",
              "line": 173
            },
            {
              "name": "QueryPairs",
              "anchor": "SpatialHash.QueryPairs",
              "recv": "*SpatialHash[ID]",
              "decl": "func (sh *SpatialHash[ID]) QueryPairs(fn func(a, b ID))",
              "doc": "QueryPairs invokes fn once for every unordered pair (a, b) of distinct\nintersecting items in the spatial hash, without duplicates and with zero\nallocations. Callers must not mutate the spatial hash during fn.\n",
              "file": "pkg/perf/spatial.go",
              "line": 227
            },
            {
              "name": "QueryPoint",
              "anchor": "SpatialHash.QueryPoint",
              "recv": "*SpatialHash[ID]",
              "decl": "func (sh *SpatialHash[ID]) QueryPoint(p core.Point, out []ID) []ID",
              "doc": "QueryPoint appends all IDs whose bounds contain p to out and returns the\nextended slice.\n",
              "file": "pkg/perf/spatial.go",
              "line": 205
            },
            {
              "name": "Remove",
              "anchor": "SpatialHash.Remove",
              "recv": "*SpatialHash[ID]",
              "decl": "func (sh *SpatialHash[ID]) Remove(id ID)",
              "doc": "Remove deletes id from the spatial hash. Removing an absent id is a no-op.\n",
              "file": "pkg/perf/spatial.go",
              "line": 127
            },
            {
              "name": "Update",
              "anchor": "SpatialHash.Update",
              "recv": "*SpatialHash[ID]",
              "decl": "func (sh *SpatialHash[ID]) Update(id ID, bounds core.Bounds)",
              "doc": "Update changes the bounds associated with id. If id is not yet in the\nspatial hash, Update inserts it. When the item stays within the same grid\ncells, Update completes in O(1) without touching any buckets.\n",
              "file": "pkg/perf/spatial.go",
              "line": 146
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/physics",
      "name": "physics",
      "dir": "pkg/physics",
      "page": "pkg/physics",
      "synopsis": "",
      "doc": "",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultSleepLinearThreshold",
              "anchor": "DefaultSleepLinearThreshold"
            },
            {
              "name": "DefaultSleepAngularThreshold",
              "anchor": "DefaultSleepAngularThreshold"
            },
            {
              "name": "DefaultTimeToSleep",
              "anchor": "DefaultTimeToSleep"
            }
          ],
          "decl": "const (\n\t// DefaultSleepLinearThreshold is the speed, in pixels per second, below which a rigid body counts as resting.\n\tDefaultSleepLinearThreshold = 2\n\t// DefaultSleepAngularThreshold is the angular speed, in radians per second, below which a rigid body counts as resting (2 degrees per second, as in Box2D).\n\tDefaultSleepAngularThreshold = 2 * math.Pi / 180\n\t// DefaultTimeToSleep is how many seconds every body of an island must rest before the island sleeps.\n\tDefaultTimeToSleep = 0.5\n)",
          "doc": "Sleep defaults for RigidWorld, in NSGo's pixel units.\n",
          "file": "pkg/physics/rigid_island.go",
          "line": 9
        },
        {
          "idents": [
            {
              "name": "DefaultMaxSlides",
              "anchor": "DefaultMaxSlides"
            },
            {
              "name": "DefaultFloorMaxAngle",
              "anchor": "DefaultFloorMaxAngle"
            }
          ],
          "decl": "const (\n\t// DefaultMaxSlides is the default maximum number of slide iterations performed by World.MoveAndSlide.\n\tDefaultMaxSlides = 4\n\t// DefaultFloorMaxAngle is the default maximum angle in radians between a contact normal and the up direction\n\t// for a surface to be classified as a floor (45 degrees, matching DefaultMaxSlopeAngle).\n\tDefaultFloorMaxAngle float32 = DefaultMaxSlopeAngle\n)",
          "doc": "",
          "file": "pkg/physics/slide.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "DefaultSoftSubsteps",
              "anchor": "DefaultSoftSubsteps"
            },
            {
              "name": "DefaultSoftIterations",
              "anchor": "DefaultSoftIterations"
            }
          ],
          "decl": "const (\n\t// DefaultSoftSubsteps is the default number of XPBD substeps per SoftWorld.Step.\n\tDefaultSoftSubsteps = 8\n\t// DefaultSoftIterations is the default number of constraint solver iterations per substep.\n\tDefaultSoftIterations = 6\n)",
          "doc": "",
          "file": "pkg/physics/xpbd.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "DefaultMaxSlopeAngle",
              "anchor": "DefaultMaxSlopeAngle"
            }
          ],
          "decl": "const DefaultMaxSlopeAngle float32 = math.Pi / 4",
          "doc": "DefaultMaxSlopeAngle is the default maximum walkable slope angle (45 degrees in radians).\n",
          "file": "pkg/physics/character.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "DefaultSolverIterations",
              "anchor": "DefaultSolverIterations"
            }
          ],
          "decl": "const DefaultSolverIterations = 10",
          "doc": "DefaultSolverIterations is the default number of sequential impulse iterations per RigidWorld.Step.\n",
          "file": "pkg/physics/rigid.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "DefaultTileFriction",
              "anchor": "DefaultTileFriction"
            }
          ],
          "decl": "const DefaultTileFriction = 0.4",
          "doc": "DefaultTileFriction is the friction RigidWorld gives its Tiles when TileFriction is zero, the same as NewRigidBox gives a body.\n",
          "file": "pkg/physics/rigid_tiles.go",
          "line": 6
        },
        {
          "idents": [
            {
              "name": "MaxPolygonVertices",
              "anchor": "MaxPolygonVertices"
            }
          ],
          "decl": "const MaxPolygonVertices = 8",
          "doc": "MaxPolygonVertices is the most vertices a Polygon holds, as in Box2D.\n",
          "file": "pkg/physics/shape_convex.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "SnapshotVersion",
              "anchor": "SnapshotVersion"
            }
          ],
          "decl": "const SnapshotVersion = 2",
          "doc": "SnapshotVersion is the schema version stored in WorldSnapshot and RigidWorldSnapshot. Version 2 added the kinematic and sensor flags, kinematic targets, Tiles and their settings, the contact and sensor overlap state, tile entries in the contact cache and a grid's origin; Restore still reads version 1 snapshots, which have none of them, and refuses any other version, so a build that only knows version 1 refuses a version 2 snapshot instead of dropping what it cannot read.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 12
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "CanCollide",
          "anchor": "CanCollide",
          "decl": "func CanCollide(a, b *Body) bool",
          "doc": "CanCollide reports whether bodies a and b are allowed to collide based on their Layer and Mask fields.\nZero Layer or Mask values default to LayerAll.\n",
          "file": "pkg/physics/layers.go",
          "line": 44
        },
        {
          "name": "CanCollideRigid",
          "anchor": "CanCollideRigid",
          "decl": "func CanCollideRigid(a, b *RigidBody) bool",
          "doc": "CanCollideRigid reports whether two rigid bodies are allowed to collide based on their Layer and Mask fields.\n",
          "file": "pkg/physics/rigid.go",
          "line": 436
        },
        {
          "name": "DrawBody",
          "anchor": "DrawBody",
          "decl": "func DrawBody(d *core.Drawing, b *Body, style DebugStyle)",
          "doc": "DrawBody draws b's collision shape and, when style.VelocityScale > 0, its velocity vector.\nIt preserves d's drawing state.\n",
          "file": "pkg/physics/debugdraw.go",
          "line": 350
        },
        {
          "name": "DrawContact",
          "anchor": "DrawContact",
          "decl": "func DrawContact(d *core.Drawing, c Contact, style DebugStyle)",
          "doc": "DrawContact draws a contact point marker and a normal arrow from (c.PointX, c.PointY) along\n(c.NormalX, c.NormalY) when c.Hit is true. It preserves d's drawing state.\n",
          "file": "pkg/physics/debugdraw.go",
          "line": 383
        },
        {
          "name": "DrawRaycast",
          "anchor": "DrawRaycast",
          "decl": "func DrawRaycast(d *core.Drawing, from, to core.Point, hits []RaycastHit, style DebugStyle)",
          "doc": "DrawRaycast draws a ray segment from from to to in RayColor along with hit markers and\nsurface normal arrows for each hit in hits. It preserves d's drawing state.\n",
          "file": "pkg/physics/debugdraw.go",
          "line": 613
        },
        {
          "name": "DrawShape",
          "anchor": "DrawShape",
          "decl": "func DrawShape(d *core.Drawing, s Shape, style DebugStyle)",
          "doc": "DrawShape draws s as a wireframe outline in d using style: a rectangle for ShapeBox, a circle with a +X orientation radius tick for ShapeCircle, the outline of a polygon (with rounded corners when it has a Radius) for ShapePolygon, the stadium outline and core segment of a capsule for ShapeCapsule, a line for ShapeSegment and a polyline for ShapeChain. It preserves d's drawing state.\n",
          "file": "pkg/physics/debugdraw.go",
          "line": 227
        },
        {
          "name": "DrawSoftWorld",
          "anchor": "DrawSoftWorld",
          "decl": "func DrawSoftWorld(d *core.Drawing, sw *SoftWorld, style DebugStyle)",
          "doc": "DrawSoftWorld draws XPBD particles, structural distance constraints, area polygons,\nand rigid-body attachments from sw onto d using style. Pinned particles are highlighted\nin ContactColor and free particles in CircleColor. It preserves d's drawing state.\n",
          "file": "pkg/physics/xpbd_debugdraw.go",
          "line": 10
        },
        {
          "name": "DrawTileContacts",
          "anchor": "DrawTileContacts",
          "decl": "func DrawTileContacts(d *core.Drawing, grid TileGrid, contacts []TileContact, style DebugStyle)",
          "doc": "DrawTileContacts draws contact points and surface normal arrows for each TileContact returned\nby MoveAndSlide, using grid's tile dimensions to place each contact on the contacted tile face.\nIt preserves d's drawing state.\n",
          "file": "pkg/physics/debugdraw.go",
          "line": 437
        },
        {
          "name": "DrawTileGrid",
          "anchor": "DrawTileGrid",
          "decl": "func DrawTileGrid(d *core.Drawing, grid TileGrid, visible core.Bounds, style DebugStyle)",
          "doc": "DrawTileGrid draws solid and one-way collision tiles from grid that intersect visible.\nSolid tiles draw as full cell rectangles in SolidTileColor; one-way tiles draw as top-edge\nplatforms with downward end ticks in OneWayTileColor. An empty visible bounds draws nothing.\nIt preserves d's drawing state.\n",
          "file": "pkg/physics/debugdraw.go",
          "line": 463
        },
        {
          "name": "DrawWorld",
          "anchor": "DrawWorld",
          "decl": "func DrawWorld(d *core.Drawing, w *World, visible core.Bounds, contacts []Contact, style DebugStyle)",
          "doc": "DrawWorld draws visible tiles from w.Tiles, every body in w.Bodies and every active contact\nwith its normal arrow. It works directly inside a core.Canvas or debug overlay under any\ncamera transform and preserves d's drawing state.\n",
          "file": "pkg/physics/debugdraw.go",
          "line": 561
        }
      ],
      "types": [
        {
          "name": "AreaConstraint",
          "anchor": "AreaConstraint",
          "decl": "type AreaConstraint struct {\n\tParticles  []int\n\tRestArea   float32\n\tPressure   float32\n\tCompliance float32\n\t// contains filtered or unexported fields\n}",
          "doc": "AreaConstraint preserves (or inflates, via Pressure) the signed area of a closed\npolygon loop of particles. Pressure <= 0 defaults to 1.0.\n",
          "file": "pkg/physics/xpbd.go",
          "line": 98,
          "members": [
            {
              "name": "Particles",
              "anchor": "AreaConstraint.Particles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestArea",
              "anchor": "AreaConstraint.RestArea",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pressure",
              "anchor": "AreaConstraint.Pressure",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "AreaConstraint.Compliance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AreaEffect",
          "anchor": "AreaEffect",
          "decl": "type AreaEffect struct {\n\tGravityX, GravityY float32\n\tLinearDamping      float32\n\tAngularDamping     float32\n\tHasLinearDamping   bool\n\tHasAngularDamping  bool\n\tSubmergedFraction  float32\n\tBuoyancyAccelX     float32\n\tBuoyancyAccelY     float32\n\tFluidLinearDrag    float32\n\tFluidAngularDrag   float32\n\tFluidVelX          float32\n\tFluidVelY          float32\n}",
          "doc": "AreaEffect holds the resolved gravity, damping, and fluid state at a point or\nshape from all overlapping active Triggers.\n",
          "file": "pkg/physics/area.go",
          "line": 114,
          "members": [
            {
              "name": "GravityX",
              "anchor": "AreaEffect.GravityX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityY",
              "anchor": "AreaEffect.GravityY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LinearDamping",
              "anchor": "AreaEffect.LinearDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngularDamping",
              "anchor": "AreaEffect.AngularDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasLinearDamping",
              "anchor": "AreaEffect.HasLinearDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasAngularDamping",
              "anchor": "AreaEffect.HasAngularDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SubmergedFraction",
              "anchor": "AreaEffect.SubmergedFraction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BuoyancyAccelX",
              "anchor": "AreaEffect.BuoyancyAccelX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BuoyancyAccelY",
              "anchor": "AreaEffect.BuoyancyAccelY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FluidLinearDrag",
              "anchor": "AreaEffect.FluidLinearDrag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FluidAngularDrag",
              "anchor": "AreaEffect.FluidAngularDrag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FluidVelX",
              "anchor": "AreaEffect.FluidVelX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FluidVelY",
              "anchor": "AreaEffect.FluidVelY",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AreaOverrideMode",
          "anchor": "AreaOverrideMode",
          "decl": "type AreaOverrideMode uint8",
          "doc": "AreaOverrideMode controls how a Trigger's AreaSettings combines its gravity\nor damping value with overlapping areas and the world or body default.\n",
          "file": "pkg/physics/area.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AreaOverrideNone",
                  "anchor": "AreaOverrideNone"
                },
                {
                  "name": "AreaOverrideCombine",
                  "anchor": "AreaOverrideCombine"
                },
                {
                  "name": "AreaOverrideReplace",
                  "anchor": "AreaOverrideReplace"
                },
                {
                  "name": "AreaOverrideAdd",
                  "anchor": "AreaOverrideAdd"
                }
              ],
              "decl": "const (\n\t// AreaOverrideNone leaves the world or body default unchanged (zero value).\n\tAreaOverrideNone AreaOverrideMode = iota\n\t// AreaOverrideCombine sums this area's value with other equal-priority\n\t// Combine or Add areas (plus any higher-priority Add areas) and replaces\n\t// lower-priority areas and the world/body default.\n\tAreaOverrideCombine\n\t// AreaOverrideReplace replaces lower- and equal-priority areas and the\n\t// world/body default with this area's value. Higher-priority Add areas\n\t// still add on top.\n\tAreaOverrideReplace\n\t// AreaOverrideAdd adds this area's value on top of lower-priority areas\n\t// and the world/body default.\n\tAreaOverrideAdd\n)",
              "doc": "",
              "file": "pkg/physics/area.go",
              "line": 15
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AreaSettings",
          "anchor": "AreaSettings",
          "decl": "type AreaSettings struct {\n\t// Priority orders overlapping areas: higher Priority takes precedence.\n\t// Equal priorities break ties deterministically by trigger slice order.\n\tPriority int\n\n\t// GravityMode controls whether and how this area overrides gravity.\n\tGravityMode AreaOverrideMode\n\t// GravityX and GravityY are the directional gravity acceleration (units/s^2)\n\t// used when PointGravity is false.\n\tGravityX, GravityY float32\n\n\t// PointGravity switches gravity from directional (GravityX, GravityY) to a\n\t// radial field centered at (GravityPointX, GravityPointY).\n\tPointGravity bool\n\t// GravityPointX and GravityPointY are the world-space point-gravity center.\n\tGravityPointX, GravityPointY float32\n\t// GravityStrength is the acceleration magnitude (units/s^2) toward the point\n\t// center (negative values repel).\n\tGravityStrength float32\n\t// GravityFalloff selects distance attenuation for PointGravity.\n\tGravityFalloff GravityFalloff\n\t// GravityUnitDistance is the reference distance for GravityFalloffInverse\n\t// and GravityFalloffInverseSquare (defaults to 1 when <= 0), or the cutoff\n\t// radius for GravityFalloffLinear (defaults to the trigger's outer radius\n\t// when <= 0).\n\tGravityUnitDistance float32\n\n\t// LinearDampingMode controls whether and how LinearDamping overrides a body's damping.\n\tLinearDampingMode AreaOverrideMode\n\t// LinearDamping is the linear damping coefficient (1/s) applied according to LinearDampingMode.\n\tLinearDamping float32\n\n\t// AngularDampingMode controls whether and how AngularDamping overrides a body's damping.\n\tAngularDampingMode AreaOverrideMode\n\t// AngularDamping is the angular damping coefficient (1/s) applied according to AngularDampingMode.\n\tAngularDamping float32\n\n\t// FluidDensity enables Archimedes buoyancy when > 0 (mass per unit area in 2D).\n\t// A body with implicit density Mass/Area settles at submerged fraction\n\t// (Mass / Area) / FluidDensity.\n\tFluidDensity float32\n\t// FluidLinearDrag is the linear fluid drag coefficient (1/s), scaled by the\n\t// submerged fraction of the body's bounds.\n\tFluidLinearDrag float32\n\t// FluidAngularDrag is the angular fluid drag coefficient (1/s), scaled by the\n\t// submerged fraction of the body's bounds.\n\tFluidAngularDrag float32\n\t// FluidVelX and FluidVelY are the fluid flow velocity (units/s) relative to\n\t// which FluidLinearDrag acts.\n\tFluidVelX, FluidVelY float32\n}",
          "doc": "AreaSettings configures gravity, damping, and buoyancy/fluid drag overrides\nfor a 2D Trigger. The zero value has no physical effect.\n",
          "file": "pkg/physics/area.go",
          "line": 50,
          "members": [
            {
              "name": "Priority",
              "anchor": "AreaSettings.Priority",
              "kind": "field",
              "doc": "Priority orders overlapping areas: higher Priority takes precedence.\nEqual priorities break ties deterministically by trigger slice order."
            },
            {
              "name": "GravityMode",
              "anchor": "AreaSettings.GravityMode",
              "kind": "field",
              "doc": "GravityMode controls whether and how this area overrides gravity."
            },
            {
              "name": "GravityX",
              "anchor": "AreaSettings.GravityX",
              "kind": "field",
              "doc": "GravityX and GravityY are the directional gravity acceleration (units/s^2)\nused when PointGravity is false."
            },
            {
              "name": "GravityY",
              "anchor": "AreaSettings.GravityY",
              "kind": "field",
              "doc": "GravityX and GravityY are the directional gravity acceleration (units/s^2)\nused when PointGravity is false."
            },
            {
              "name": "PointGravity",
              "anchor": "AreaSettings.PointGravity",
              "kind": "field",
              "doc": "PointGravity switches gravity from directional (GravityX, GravityY) to a\nradial field centered at (GravityPointX, GravityPointY)."
            },
            {
              "name": "GravityPointX",
              "anchor": "AreaSettings.GravityPointX",
              "kind": "field",
              "doc": "GravityPointX and GravityPointY are the world-space point-gravity center."
            },
            {
              "name": "GravityPointY",
              "anchor": "AreaSettings.GravityPointY",
              "kind": "field",
              "doc": "GravityPointX and GravityPointY are the world-space point-gravity center."
            },
            {
              "name": "GravityStrength",
              "anchor": "AreaSettings.GravityStrength",
              "kind": "field",
              "doc": "GravityStrength is the acceleration magnitude (units/s^2) toward the point\ncenter (negative values repel)."
            },
            {
              "name": "GravityFalloff",
              "anchor": "AreaSettings.GravityFalloff",
              "kind": "field",
              "doc": "GravityFalloff selects distance attenuation for PointGravity."
            },
            {
              "name": "GravityUnitDistance",
              "anchor": "AreaSettings.GravityUnitDistance",
              "kind": "field",
              "doc": "GravityUnitDistance is the reference distance for GravityFalloffInverse\nand GravityFalloffInverseSquare (defaults to 1 when <= 0), or the cutoff\nradius for GravityFalloffLinear (defaults to the trigger's outer radius\nwhen <= 0)."
            },
            {
              "name": "LinearDampingMode",
              "anchor": "AreaSettings.LinearDampingMode",
              "kind": "field",
              "doc": "LinearDampingMode controls whether and how LinearDamping overrides a body's damping."
            },
            {
              "name": "LinearDamping",
              "anchor": "AreaSettings.LinearDamping",
              "kind": "field",
              "doc": "LinearDamping is the linear damping coefficient (1/s) applied according to LinearDampingMode."
            },
            {
              "name": "AngularDampingMode",
              "anchor": "AreaSettings.AngularDampingMode",
              "kind": "field",
              "doc": "AngularDampingMode controls whether and how AngularDamping overrides a body's damping."
            },
            {
              "name": "AngularDamping",
              "anchor": "AreaSettings.AngularDamping",
              "kind": "field",
              "doc": "AngularDamping is the angular damping coefficient (1/s) applied according to AngularDampingMode."
            },
            {
              "name": "FluidDensity",
              "anchor": "AreaSettings.FluidDensity",
              "kind": "field",
              "doc": "FluidDensity enables Archimedes buoyancy when > 0 (mass per unit area in 2D).\nA body with implicit density Mass/Area settles at submerged fraction\n(Mass / Area) / FluidDensity."
            },
            {
              "name": "FluidLinearDrag",
              "anchor": "AreaSettings.FluidLinearDrag",
              "kind": "field",
              "doc": "FluidLinearDrag is the linear fluid drag coefficient (1/s), scaled by the\nsubmerged fraction of the body's bounds."
            },
            {
              "name": "FluidAngularDrag",
              "anchor": "AreaSettings.FluidAngularDrag",
              "kind": "field",
              "doc": "FluidAngularDrag is the angular fluid drag coefficient (1/s), scaled by the\nsubmerged fraction of the body's bounds."
            },
            {
              "name": "FluidVelX",
              "anchor": "AreaSettings.FluidVelX",
              "kind": "field",
              "doc": "FluidVelX and FluidVelY are the fluid flow velocity (units/s) relative to\nwhich FluidLinearDrag acts."
            },
            {
              "name": "FluidVelY",
              "anchor": "AreaSettings.FluidVelY",
              "kind": "field",
              "doc": "FluidVelX and FluidVelY are the fluid flow velocity (units/s) relative to\nwhich FluidLinearDrag acts."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Active",
              "anchor": "AreaSettings.Active",
              "recv": "AreaSettings",
              "decl": "func (a AreaSettings) Active() bool",
              "doc": "Active reports whether a enables any gravity, damping, or fluid effect.\n",
              "file": "pkg/physics/area.go",
              "line": 103
            }
          ]
        },
        {
          "name": "BendingConstraint",
          "anchor": "BendingConstraint",
          "decl": "type BendingConstraint struct {\n\tA, B, C    int\n\tRestAngle  float32\n\tCompliance float32\n\t// contains filtered or unexported fields\n}",
          "doc": "BendingConstraint constrains the signed angle at hinge particle B between\nedges (A - B) and (C - B) toward RestAngle (in radians).\n",
          "file": "pkg/physics/xpbd.go",
          "line": 88,
          "members": [
            {
              "name": "A",
              "anchor": "BendingConstraint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "BendingConstraint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "C",
              "anchor": "BendingConstraint.C",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestAngle",
              "anchor": "BendingConstraint.RestAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "BendingConstraint.Compliance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Body",
          "anchor": "Body",
          "decl": "type Body struct {\n\tID       int\n\tTag      string\n\tShape    Shape\n\tVX, VY   float32\n\tLayer    LayerMask\n\tMask     LayerMask\n\tGrounded bool\n\t// OnCeiling, OnLeftWall and OnRightWall report contacts from the last MoveAndSlide, World.MoveAndSlide or CharacterBody.Move call.\n\tOnCeiling   bool\n\tOnLeftWall  bool\n\tOnRightWall bool\n\t// OneWay marks this body as a one-way platform collider: during World.MoveAndSlide (and CharacterBody.Move when using a World), it blocks movement only from its upward-facing side when the moving body starts outside on that side and does not have OneWayDrop set.\n\tOneWay bool\n\t// OneWayDrop lets the body fall through TileOneWay platforms, OneWay bodies and OneWay moving platforms during movement.\n\tOneWayDrop bool\n\tUserData   any\n}",
          "doc": "Body is a movable physics shape with velocity, collision filtering and tile contact state.\n",
          "file": "pkg/physics/tile.go",
          "line": 123,
          "members": [
            {
              "name": "ID",
              "anchor": "Body.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "Body.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "Body.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VX",
              "anchor": "Body.VX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VY",
              "anchor": "Body.VY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "Body.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "Body.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grounded",
              "anchor": "Body.Grounded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnCeiling",
              "anchor": "Body.OnCeiling",
              "kind": "field",
              "doc": "OnCeiling, OnLeftWall and OnRightWall report contacts from the last MoveAndSlide, World.MoveAndSlide or CharacterBody.Move call."
            },
            {
              "name": "OnLeftWall",
              "anchor": "Body.OnLeftWall",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnRightWall",
              "anchor": "Body.OnRightWall",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OneWay",
              "anchor": "Body.OneWay",
              "kind": "field",
              "doc": "OneWay marks this body as a one-way platform collider: during World.MoveAndSlide (and CharacterBody.Move when using a World), it blocks movement only from its upward-facing side when the moving body starts outside on that side and does not have OneWayDrop set."
            },
            {
              "name": "OneWayDrop",
              "anchor": "Body.OneWayDrop",
              "kind": "field",
              "doc": "OneWayDrop lets the body fall through TileOneWay platforms, OneWay bodies and OneWay moving platforms during movement."
            },
            {
              "name": "UserData",
              "anchor": "Body.UserData",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBoxBody",
              "anchor": "NewBoxBody",
              "decl": "func NewBoxBody(x, y, w, h float32) *Body",
              "doc": "NewBoxBody returns a Body whose Shape is a Box at (x, y) with size (w, h).\n",
              "file": "pkg/physics/tile.go",
              "line": 143
            },
            {
              "name": "NewCircleBody",
              "anchor": "NewCircleBody",
              "decl": "func NewCircleBody(x, y, r float32) *Body",
              "doc": "NewCircleBody returns a Body whose Shape is a Circle centered at (x, y) with radius r.\n",
              "file": "pkg/physics/tile.go",
              "line": 148
            }
          ],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Body.Bounds",
              "recv": "*Body",
              "decl": "func (b *Body) Bounds() Box",
              "doc": "Bounds returns the axis-aligned bounding box of b's shape.\n",
              "file": "pkg/physics/tile.go",
              "line": 153
            },
            {
              "name": "Translate",
              "anchor": "Body.Translate",
              "recv": "*Body",
              "decl": "func (b *Body) Translate(dx, dy float32)",
              "doc": "Translate shifts b's shape by (dx, dy).\n",
              "file": "pkg/physics/tile.go",
              "line": 156
            }
          ]
        },
        {
          "name": "BodySnapshot",
          "anchor": "BodySnapshot",
          "decl": "type BodySnapshot struct {\n\tID          int       `json:\"id\"`\n\tTag         string    `json:\"tag,omitempty\"`\n\tShape       Shape     `json:\"shape\"`\n\tVX          float32   `json:\"vx\"`\n\tVY          float32   `json:\"vy\"`\n\tLayer       LayerMask `json:\"layer\"`\n\tMask        LayerMask `json:\"mask\"`\n\tGrounded    bool      `json:\"grounded,omitempty\"`\n\tOnCeiling   bool      `json:\"onCeiling,omitempty\"`\n\tOnLeftWall  bool      `json:\"onLeftWall,omitempty\"`\n\tOnRightWall bool      `json:\"onRightWall,omitempty\"`\n\tOneWay      bool      `json:\"oneWay,omitempty\"`\n\tOneWayDrop  bool      `json:\"oneWayDrop,omitempty\"`\n}",
          "doc": "BodySnapshot is a JSON-serializable snapshot of one physics.Body.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 18,
          "members": [
            {
              "name": "ID",
              "anchor": "BodySnapshot.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "BodySnapshot.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "BodySnapshot.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VX",
              "anchor": "BodySnapshot.VX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VY",
              "anchor": "BodySnapshot.VY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "BodySnapshot.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "BodySnapshot.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grounded",
              "anchor": "BodySnapshot.Grounded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnCeiling",
              "anchor": "BodySnapshot.OnCeiling",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnLeftWall",
              "anchor": "BodySnapshot.OnLeftWall",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnRightWall",
              "anchor": "BodySnapshot.OnRightWall",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OneWay",
              "anchor": "BodySnapshot.OneWay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OneWayDrop",
              "anchor": "BodySnapshot.OneWayDrop",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Box",
          "anchor": "Box",
          "decl": "type Box struct {\n\tX, Y, W, H float32\n}",
          "doc": "Box is an axis-aligned rectangle whose top-left corner sits at X, Y with width W and height H.\nA box with W <= 0 or H <= 0 is empty and never overlaps anything.\n",
          "file": "pkg/physics/shape.go",
          "line": 7,
          "members": [
            {
              "name": "X",
              "anchor": "Box.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Box.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "Box.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "Box.H",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bottom",
              "anchor": "Box.Bottom",
              "recv": "Box",
              "decl": "func (b Box) Bottom() float32",
              "doc": "Bottom returns the box's bottom edge (Y + H).\n",
              "file": "pkg/physics/shape.go",
              "line": 24
            },
            {
              "name": "Center",
              "anchor": "Box.Center",
              "recv": "Box",
              "decl": "func (b Box) Center() (x, y float32)",
              "doc": "Center returns the midpoint of b.\n",
              "file": "pkg/physics/shape.go",
              "line": 27
            },
            {
              "name": "Contains",
              "anchor": "Box.Contains",
              "recv": "Box",
              "decl": "func (b Box) Contains(x, y float32) bool",
              "doc": "Contains reports whether (x, y) lies inside or on the boundary of b.\n",
              "file": "pkg/physics/shape.go",
              "line": 32
            },
            {
              "name": "Empty",
              "anchor": "Box.Empty",
              "recv": "Box",
              "decl": "func (b Box) Empty() bool",
              "doc": "Empty reports whether b has no positive area.\n",
              "file": "pkg/physics/shape.go",
              "line": 12
            },
            {
              "name": "Left",
              "anchor": "Box.Left",
              "recv": "Box",
              "decl": "func (b Box) Left() float32",
              "doc": "Left returns the box's left edge (X).\n",
              "file": "pkg/physics/shape.go",
              "line": 15
            },
            {
              "name": "Right",
              "anchor": "Box.Right",
              "recv": "Box",
              "decl": "func (b Box) Right() float32",
              "doc": "Right returns the box's right edge (X + W).\n",
              "file": "pkg/physics/shape.go",
              "line": 21
            },
            {
              "name": "Top",
              "anchor": "Box.Top",
              "recv": "Box",
              "decl": "func (b Box) Top() float32",
              "doc": "Top returns the box's top edge (Y).\n",
              "file": "pkg/physics/shape.go",
              "line": 18
            },
            {
              "name": "Translated",
              "anchor": "Box.Translated",
              "recv": "Box",
              "decl": "func (b Box) Translated(dx, dy float32) Box",
              "doc": "Translated returns a copy of b shifted by (dx, dy).\n",
              "file": "pkg/physics/shape.go",
              "line": 37
            }
          ]
        },
        {
          "name": "Capsule",
          "anchor": "Capsule",
          "decl": "type Capsule struct {\n\tX1, Y1, X2, Y2, R float32\n}",
          "doc": "Capsule is a segment from (X1, Y1) to (X2, Y2) swept by radius R: two half circles joined by a rectangle. Its round ends let characters slide over tile seams and step edges without snagging. A capsule with R <= 0 is empty; one with equal endpoints is a circle.\n",
          "file": "pkg/physics/shape_convex.go",
          "line": 177,
          "members": [
            {
              "name": "X1",
              "anchor": "Capsule.X1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y1",
              "anchor": "Capsule.Y1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X2",
              "anchor": "Capsule.X2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y2",
              "anchor": "Capsule.Y2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "R",
              "anchor": "Capsule.R",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Capsule.Bounds",
              "recv": "Capsule",
              "decl": "func (c Capsule) Bounds() Box",
              "doc": "Bounds returns the tightest axis-aligned Box enclosing c, or a zero Box when c is empty.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 190
            },
            {
              "name": "Center",
              "anchor": "Capsule.Center",
              "recv": "Capsule",
              "decl": "func (c Capsule) Center() (x, y float32)",
              "doc": "Center returns the midpoint of c's segment.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 185
            },
            {
              "name": "Contains",
              "anchor": "Capsule.Contains",
              "recv": "Capsule",
              "decl": "func (c Capsule) Contains(x, y float32) bool",
              "doc": "Contains reports whether (x, y) lies inside or on the boundary of c.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 201
            },
            {
              "name": "Empty",
              "anchor": "Capsule.Empty",
              "recv": "Capsule",
              "decl": "func (c Capsule) Empty() bool",
              "doc": "Empty reports whether c has no positive radius.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 182
            },
            {
              "name": "Translated",
              "anchor": "Capsule.Translated",
              "recv": "Capsule",
              "decl": "func (c Capsule) Translated(dx, dy float32) Capsule",
              "doc": "Translated returns a copy of c shifted by (dx, dy).\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 212
            }
          ]
        },
        {
          "name": "Chain",
          "anchor": "Chain",
          "decl": "type Chain struct {\n\tPoints []core.Point\n\tLoop   bool\n}",
          "doc": "Chain is a static polyline through Points, closed back to the first point when Loop is true, for level terrain drawn as lines. Contacts at its interior vertices only use normals the neighbouring segments allow, so a body sliding or rolling along a flat run of segments never catches on the seams between them (Box2D's ghost collisions). Like Segment, it collides on both sides and never with another Chain or a Segment.\n\nAn open chain needs at least 2 points and a loop at least 3; consecutive points must differ.\n",
          "file": "pkg/physics/shape_convex.go",
          "line": 242,
          "members": [
            {
              "name": "Points",
              "anchor": "Chain.Points",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Loop",
              "anchor": "Chain.Loop",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Chain.Bounds",
              "recv": "*Chain",
              "decl": "func (c *Chain) Bounds() Box",
              "doc": "Bounds returns the axis-aligned Box spanning every point of c.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 277
            },
            {
              "name": "Empty",
              "anchor": "Chain.Empty",
              "recv": "*Chain",
              "decl": "func (c *Chain) Empty() bool",
              "doc": "Empty reports whether c is nil or has too few points for one segment (two, or three for a loop).\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 248
            },
            {
              "name": "Segment",
              "anchor": "Chain.Segment",
              "recv": "*Chain",
              "decl": "func (c *Chain) Segment(i int) Segment",
              "doc": "Segment returns segment i of c, from Points[i] to the next point.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 270
            },
            {
              "name": "SegmentCount",
              "anchor": "Chain.SegmentCount",
              "recv": "*Chain",
              "decl": "func (c *Chain) SegmentCount() int",
              "doc": "SegmentCount returns the number of segments in c.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 259
            },
            {
              "name": "Translated",
              "anchor": "Chain.Translated",
              "recv": "*Chain",
              "decl": "func (c *Chain) Translated(dx, dy float32) *Chain",
              "doc": "Translated returns a new Chain with every point of c shifted by (dx, dy).\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 291
            }
          ]
        },
        {
          "name": "CharacterBody",
          "anchor": "CharacterBody",
          "decl": "type CharacterBody struct {\n\tBody *Body\n\t// MaxSlopeAngle is the steepest walkable slope angle in radians.\n\t// Values <= 0 default to DefaultMaxSlopeAngle (45 degrees).\n\tMaxSlopeAngle float32\n\t// SnapDist is the maximum downward distance to snap onto a walkable slope while walking downhill, or onto a tile top when walking off the lower end of a slope.\n\tSnapDist float32\n\t// Grounded reports whether the character is supported by a tile, walkable slope, or platform.\n\tGrounded bool\n\t// GroundNormal is the unit surface normal of the ground supporting the character, or zero when airborne.\n\tGroundNormal core.Point\n\t// Riding is the MovingPlatform currently carrying the character, or nil.\n\tRiding *MovingPlatform\n\t// World is an optional physics World whose GravityX/GravityY and Triggers\n\t// override gravity and damping for this character during Move.\n\tWorld *World\n\t// GravityScale multiplies the effective gravity applied when World is set.\n\t// NewCharacterBody initializes it to 1; on a zero-initialized CharacterBody\n\t// literal it defaults to 1 unless SetGravityScale(0) is called.\n\tGravityScale float32\n\t// contains filtered or unexported fields\n}",
          "doc": "CharacterBody wraps a Body with kinematic platformer movement supporting tiles,\nwalkable and steep slopes, downhill snapping, and moving platforms.\n",
          "file": "pkg/physics/character.go",
          "line": 98,
          "members": [
            {
              "name": "Body",
              "anchor": "CharacterBody.Body",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxSlopeAngle",
              "anchor": "CharacterBody.MaxSlopeAngle",
              "kind": "field",
              "doc": "MaxSlopeAngle is the steepest walkable slope angle in radians.\nValues <= 0 default to DefaultMaxSlopeAngle (45 degrees)."
            },
            {
              "name": "SnapDist",
              "anchor": "CharacterBody.SnapDist",
              "kind": "field",
              "doc": "SnapDist is the maximum downward distance to snap onto a walkable slope while walking downhill, or onto a tile top when walking off the lower end of a slope."
            },
            {
              "name": "Grounded",
              "anchor": "CharacterBody.Grounded",
              "kind": "field",
              "doc": "Grounded reports whether the character is supported by a tile, walkable slope, or platform."
            },
            {
              "name": "GroundNormal",
              "anchor": "CharacterBody.GroundNormal",
              "kind": "field",
              "doc": "GroundNormal is the unit surface normal of the ground supporting the character, or zero when airborne."
            },
            {
              "name": "Riding",
              "anchor": "CharacterBody.Riding",
              "kind": "field",
              "doc": "Riding is the MovingPlatform currently carrying the character, or nil."
            },
            {
              "name": "World",
              "anchor": "CharacterBody.World",
              "kind": "field",
              "doc": "World is an optional physics World whose GravityX/GravityY and Triggers\noverride gravity and damping for this character during Move."
            },
            {
              "name": "GravityScale",
              "anchor": "CharacterBody.GravityScale",
              "kind": "field",
              "doc": "GravityScale multiplies the effective gravity applied when World is set.\nNewCharacterBody initializes it to 1; on a zero-initialized CharacterBody\nliteral it defaults to 1 unless SetGravityScale(0) is called."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCharacterBody",
              "anchor": "NewCharacterBody",
              "decl": "func NewCharacterBody(body *Body) *CharacterBody",
              "doc": "NewCharacterBody returns a CharacterBody wrapping body with DefaultMaxSlopeAngle and a default SnapDist of 8.\n",
              "file": "pkg/physics/character.go",
              "line": 123
            }
          ],
          "methods": [
            {
              "name": "EffectiveGravity",
              "anchor": "CharacterBody.EffectiveGravity",
              "recv": "*CharacterBody",
              "decl": "func (c *CharacterBody) EffectiveGravity() (gx, gy float32)",
              "doc": "EffectiveGravity returns the scaled gravity acceleration acting on c from\nc.World and any overlapping Triggers, or (0, 0) when c.World is nil.\n",
              "file": "pkg/physics/character.go",
              "line": 135
            },
            {
              "name": "EffectiveGravityScale",
              "anchor": "CharacterBody.EffectiveGravityScale",
              "recv": "*CharacterBody",
              "decl": "func (c *CharacterBody) EffectiveGravityScale() float32",
              "doc": "EffectiveGravityScale returns c's active gravity multiplier, defaulting to 1\nwhen unset on a zero-initialized CharacterBody.\n",
              "file": "pkg/physics/area.go",
              "line": 164
            },
            {
              "name": "Move",
              "anchor": "CharacterBody.Move",
              "recv": "*CharacterBody",
              "decl": "func (c *CharacterBody) Move(grid TileGrid, slopes []Slope, platforms []*MovingPlatform, dt time.Duration) MoveResult",
              "doc": "Move advances c by carrying it with any riding MovingPlatform and then moving by (Body.VX*dt, Body.VY*dt),\nresolving solid and one-way tiles, moving platforms, walkable slopes (up to MaxSlopeAngle),\ndownhill slope snapping (up to SnapDist), and blocking steeper slopes.\nWhen c.World is non-nil, Move integrates effective gravity (world gravity combined\nwith overlapping Trigger.Area overrides, scaled by GravityScale) along with area\nlinear damping and fluid linear drag into Body.VX/Body.VY before moving, and also\ncollides against bodies (including OneWay bodies) and static RigidBody colliders in c.World\n(using c.World.Tiles when grid is nil).\n",
              "file": "pkg/physics/character.go",
              "line": 169
            },
            {
              "name": "MoveWorld",
              "anchor": "CharacterBody.MoveWorld",
              "recv": "*CharacterBody",
              "decl": "func (c *CharacterBody) MoveWorld(world *World, slopes []Slope, platforms []*MovingPlatform, dt time.Duration) MoveResult",
              "doc": "MoveWorld advances c against world (its Bodies, Tiles, and static RigidBody colliders in\nworld.RigidWorld) together with slopes and platforms. Area gravity and damping are applied\nonly when c.World is set, so callers such as platformer.Controller that integrate their own\ngravity can pass a World without double-applying gravity.\n",
              "file": "pkg/physics/character.go",
              "line": 183
            },
            {
              "name": "SetGravityScale",
              "anchor": "CharacterBody.SetGravityScale",
              "recv": "*CharacterBody",
              "decl": "func (c *CharacterBody) SetGravityScale(scale float32)",
              "doc": "SetGravityScale sets the per-character gravity multiplier on c, including 0\nfor weightless characters. Non-finite values are ignored.\n",
              "file": "pkg/physics/area.go",
              "line": 154
            }
          ]
        },
        {
          "name": "Circle",
          "anchor": "Circle",
          "decl": "type Circle struct {\n\tX, Y, R float32\n}",
          "doc": "Circle is a disk centered at X, Y with radius R.\nA circle with R <= 0 is empty and never overlaps anything.\n",
          "file": "pkg/physics/shape.go",
          "line": 43,
          "members": [
            {
              "name": "X",
              "anchor": "Circle.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Circle.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "R",
              "anchor": "Circle.R",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Circle.Bounds",
              "recv": "Circle",
              "decl": "func (c Circle) Bounds() Box",
              "doc": "Bounds returns the tightest axis-aligned Box enclosing c.\n",
              "file": "pkg/physics/shape.go",
              "line": 51
            },
            {
              "name": "Contains",
              "anchor": "Circle.Contains",
              "recv": "Circle",
              "decl": "func (c Circle) Contains(x, y float32) bool",
              "doc": "Contains reports whether (x, y) lies inside or on the boundary of c.\n",
              "file": "pkg/physics/shape.go",
              "line": 59
            },
            {
              "name": "Empty",
              "anchor": "Circle.Empty",
              "recv": "Circle",
              "decl": "func (c Circle) Empty() bool",
              "doc": "Empty reports whether c has no positive radius.\n",
              "file": "pkg/physics/shape.go",
              "line": 48
            },
            {
              "name": "Translated",
              "anchor": "Circle.Translated",
              "recv": "Circle",
              "decl": "func (c Circle) Translated(dx, dy float32) Circle",
              "doc": "Translated returns a copy of c shifted by (dx, dy).\n",
              "file": "pkg/physics/shape.go",
              "line": 70
            }
          ]
        },
        {
          "name": "Contact",
          "anchor": "Contact",
          "decl": "type Contact struct {\n\tHit              bool\n\tNormalX, NormalY float32\n\tDepth            float32\n\tPointX, PointY   float32\n}",
          "doc": "Contact describes an overlap between two shapes A and B.\n\nWhen Hit is true, (NormalX, NormalY) is a unit vector pointing from B toward A:\ntranslating A by (NormalX*Depth, NormalY*Depth) separates A from B along the\nminimum translation axis. Shapes that only touch along an edge or point with\nzero penetration report Hit == false.\n",
          "file": "pkg/physics/shape.go",
          "line": 195,
          "members": [
            {
              "name": "Hit",
              "anchor": "Contact.Hit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalX",
              "anchor": "Contact.NormalX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalY",
              "anchor": "Contact.NormalY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "Contact.Depth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PointX",
              "anchor": "Contact.PointX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PointY",
              "anchor": "Contact.PointY",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "TestBoxBox",
              "anchor": "TestBoxBox",
              "decl": "func TestBoxBox(a, b Box) Contact",
              "doc": "TestBoxBox tests whether boxes a and b overlap. The returned Contact normal points from b toward a.\nFor concentric boxes where horizontal and vertical penetration depths are equal, the normal falls back to (0, -1).\n",
              "file": "pkg/physics/shape.go",
              "line": 204
            },
            {
              "name": "TestBoxCircle",
              "anchor": "TestBoxCircle",
              "decl": "func TestBoxCircle(a Box, b Circle) Contact",
              "doc": "TestBoxCircle tests whether box a and circle b overlap. The returned Contact normal points from b toward a.\n",
              "file": "pkg/physics/shape.go",
              "line": 373
            },
            {
              "name": "TestCircleBox",
              "anchor": "TestCircleBox",
              "decl": "func TestCircleBox(a Circle, b Box) Contact",
              "doc": "TestCircleBox tests whether circle a and box b overlap. The returned Contact normal points from b toward a.\n",
              "file": "pkg/physics/shape.go",
              "line": 306
            },
            {
              "name": "TestCircleCircle",
              "anchor": "TestCircleCircle",
              "decl": "func TestCircleCircle(a, b Circle) Contact",
              "doc": "TestCircleCircle tests whether circles a and b overlap. The returned Contact normal points from b toward a.\nConcentric circles use the deterministic fallback normal (0, -1).\n",
              "file": "pkg/physics/shape.go",
              "line": 268
            },
            {
              "name": "TestShapes",
              "anchor": "TestShapes",
              "decl": "func TestShapes(a, b Shape) Contact",
              "doc": "TestShapes tests whether shapes a and b overlap. The returned Contact normal points from b toward a, and translating a by (NormalX*Depth, NormalY*Depth) separates them.\n\nPairs of boxes and circles use TestBoxBox, TestBoxCircle, TestCircleBox and TestCircleCircle. Every pair involving a Polygon, Capsule, Segment or Chain uses the separating axis test on the shapes' cores plus their rounding radii, reporting the contact point between the two surfaces. Segments and chains collide with every shape with area but never with each other; a chain reports its deepest segment contact, using only normals its neighbouring segments allow at interior vertices.\n",
              "file": "pkg/physics/shape.go",
              "line": 390
            }
          ],
          "methods": []
        },
        {
          "name": "ContactEvent",
          "anchor": "ContactEvent",
          "decl": "type ContactEvent struct {\n\tKind         ContactEventKind\n\tBodyA, BodyB *RigidBody\n\tTile         bool\n\tCol, Row     int\n\tTileFlags    TileFlags\n\tPoint        core.Point\n\t// NormalX and NormalY form the unit contact normal from BodyA toward BodyB, or toward the tile.\n\tNormalX, NormalY float32\n\tApproachSpeed    float32\n}",
          "doc": "ContactEvent reports a contact between two bodies of a RigidWorld, or between a body and its Tiles, that began or ended in the last Step. It is the 2D counterpart of physics3d.ContactEvent, which also reports contacts that stay and whose normal points the other way, from BodyB toward BodyA.\n\nBodyA and BodyB are in RigidWorld.Bodies order. A contact with Tiles has Tile set, BodyB nil and the body in BodyA, and the bodies touching any number of tiles count as one contact, so a crate sliding across a tiled floor begins touching it once. Col, Row and TileFlags name the tile the event's point is on.\n\nA ContactBegin event carries the point of the contact that was approaching fastest, the unit normal there pointing from BodyA toward BodyB (or the tile), and ApproachSpeed, how fast in pixels per second the two closed along the normal before the step resolved the contact, which is the impact speed for playing a sound or dealing damage. A ContactEnd event carries the bodies and, for Tiles, the last tile touched, with no point, normal or speed.\n",
          "file": "pkg/physics/rigid_events.go",
          "line": 31,
          "members": [
            {
              "name": "Kind",
              "anchor": "ContactEvent.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyA",
              "anchor": "ContactEvent.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "ContactEvent.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tile",
              "anchor": "ContactEvent.Tile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Col",
              "anchor": "ContactEvent.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "ContactEvent.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileFlags",
              "anchor": "ContactEvent.TileFlags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point",
              "anchor": "ContactEvent.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalX",
              "anchor": "ContactEvent.NormalX",
              "kind": "field",
              "doc": "NormalX and NormalY form the unit contact normal from BodyA toward BodyB, or toward the tile."
            },
            {
              "name": "NormalY",
              "anchor": "ContactEvent.NormalY",
              "kind": "field",
              "doc": "NormalX and NormalY form the unit contact normal from BodyA toward BodyB, or toward the tile."
            },
            {
              "name": "ApproachSpeed",
              "anchor": "ContactEvent.ApproachSpeed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ContactEventKind",
          "anchor": "ContactEventKind",
          "decl": "type ContactEventKind uint8",
          "doc": "ContactEventKind says whether a ContactEvent or SensorEvent reports a touch that began or one that ended.\n",
          "file": "pkg/physics/rigid_events.go",
          "line": 6,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ContactBegin",
                  "anchor": "ContactBegin"
                },
                {
                  "name": "ContactEnd",
                  "anchor": "ContactEnd"
                }
              ],
              "decl": "const (\n\t// ContactBegin reports two bodies, or a body and Tiles, that touch after a Step and did not before it.\n\tContactBegin ContactEventKind = iota\n\t// ContactEnd reports two bodies, or a body and Tiles, that touched before a Step and are now more than 0.25 px apart, or one of which left RigidWorld.Bodies, became a sensor or can no longer collide with the other.\n\tContactEnd\n)",
              "doc": "",
              "file": "pkg/physics/rigid_events.go",
              "line": 8
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ContactEventKind.String",
              "recv": "ContactEventKind",
              "decl": "func (k ContactEventKind) String() string",
              "doc": "String returns \"begin\" or \"end\".\n",
              "file": "pkg/physics/rigid_events.go",
              "line": 16
            }
          ]
        },
        {
          "name": "DebugStyle",
          "anchor": "DebugStyle",
          "decl": "type DebugStyle struct {\n\tBoxColor        core.Color\n\tCircleColor     core.Color\n\tSolidTileColor  core.Color\n\tOneWayTileColor core.Color\n\tContactColor    core.Color\n\tNormalColor     core.Color\n\tRayColor        core.Color\n\tVelocityColor   core.Color\n\t// PolygonColor outlines polygons, CapsuleColor capsules, and SegmentColor segments and chains.\n\tPolygonColor core.Color\n\tCapsuleColor core.Color\n\tSegmentColor core.Color\n\n\tLineWidth     float32\n\tZoom          float32\n\tNormalLength  float32\n\tContactRadius float32\n\t// VelocityScale draws each body's velocity vector scaled by this duration in seconds\n\t// when positive. Leave 0 to omit velocity vectors.\n\tVelocityScale float32\n}",
          "doc": "DebugStyle configures colors and screen-space annotation sizes for physics debug drawing.\nZero fields fall back to DefaultDebugStyle values.\n\nLineWidth, NormalLength and ContactRadius are given in screen points and divided by the\nactive camera zoom (Zoom when positive, otherwise inferred from the drawing's current\ntransform) so outlines, contact markers and normal arrows stay crisp at every zoom.\n",
          "file": "pkg/physics/debugdraw.go",
          "line": 19,
          "members": [
            {
              "name": "BoxColor",
              "anchor": "DebugStyle.BoxColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CircleColor",
              "anchor": "DebugStyle.CircleColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SolidTileColor",
              "anchor": "DebugStyle.SolidTileColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OneWayTileColor",
              "anchor": "DebugStyle.OneWayTileColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ContactColor",
              "anchor": "DebugStyle.ContactColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalColor",
              "anchor": "DebugStyle.NormalColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RayColor",
              "anchor": "DebugStyle.RayColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VelocityColor",
              "anchor": "DebugStyle.VelocityColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PolygonColor",
              "anchor": "DebugStyle.PolygonColor",
              "kind": "field",
              "doc": "PolygonColor outlines polygons, CapsuleColor capsules, and SegmentColor segments and chains."
            },
            {
              "name": "CapsuleColor",
              "anchor": "DebugStyle.CapsuleColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SegmentColor",
              "anchor": "DebugStyle.SegmentColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LineWidth",
              "anchor": "DebugStyle.LineWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zoom",
              "anchor": "DebugStyle.Zoom",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalLength",
              "anchor": "DebugStyle.NormalLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ContactRadius",
              "anchor": "DebugStyle.ContactRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VelocityScale",
              "anchor": "DebugStyle.VelocityScale",
              "kind": "field",
              "doc": "VelocityScale draws each body's velocity vector scaled by this duration in seconds\nwhen positive. Leave 0 to omit velocity vectors."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultDebugStyle",
              "anchor": "DefaultDebugStyle",
              "decl": "func DefaultDebugStyle() DebugStyle",
              "doc": "DefaultDebugStyle returns a high-contrast DebugStyle suitable for drawing over game scenes.\n",
              "file": "pkg/physics/debugdraw.go",
              "line": 43
            }
          ],
          "methods": []
        },
        {
          "name": "DistanceConstraint",
          "anchor": "DistanceConstraint",
          "decl": "type DistanceConstraint struct {\n\tA, B       int\n\tRestLength float32\n\tCompliance float32\n\tMaxOnly    bool\n\t// contains filtered or unexported fields\n}",
          "doc": "DistanceConstraint constrains the Euclidean distance between particles A and B.\nWhen MaxOnly is true, the constraint acts as a unilateral tether that only pulls\nparticles together when their distance exceeds RestLength.\n",
          "file": "pkg/physics/xpbd.go",
          "line": 77,
          "members": [
            {
              "name": "A",
              "anchor": "DistanceConstraint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "DistanceConstraint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestLength",
              "anchor": "DistanceConstraint.RestLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "DistanceConstraint.Compliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxOnly",
              "anchor": "DistanceConstraint.MaxOnly",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DistanceJoint",
          "anchor": "DistanceJoint",
          "decl": "type DistanceJoint struct {\n\tA, B             *RigidBody\n\tAnchorA          core.Point\n\tAnchorB          core.Point\n\tLength           float32\n\tMinLength        float32 // optional minimum distance (active when MinLength > 0 or MaxLength > 0)\n\tMaxLength        float32 // optional maximum distance (active when > 0; slack between MinLength and MaxLength)\n\tMaxOnly          bool    // rope / max-distance mode: slack when distance <= max length, pulls only when stretched\n\tStiffness        float32\n\tCompliance       float32\n\tDamping          float32\n\tBreakForce       float32 // max reaction force before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "DistanceJoint constrains two local anchor points on bodies A and B to stay at a target Length\n(or within [MinLength, MaxLength], or <= Length when MaxOnly is true for rope/tether mode).\nWith default zero Compliance and Stiffness, it acts as a rigid rod; positive Compliance or\nStiffness in (0, 1) softens the constraint.\n",
          "file": "pkg/physics/joints.go",
          "line": 226,
          "members": [
            {
              "name": "A",
              "anchor": "DistanceJoint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "DistanceJoint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorA",
              "anchor": "DistanceJoint.AnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorB",
              "anchor": "DistanceJoint.AnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Length",
              "anchor": "DistanceJoint.Length",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinLength",
              "anchor": "DistanceJoint.MinLength",
              "kind": "field",
              "doc": "optional minimum distance (active when MinLength > 0 or MaxLength > 0)"
            },
            {
              "name": "MaxLength",
              "anchor": "DistanceJoint.MaxLength",
              "kind": "field",
              "doc": "optional maximum distance (active when > 0; slack between MinLength and MaxLength)"
            },
            {
              "name": "MaxOnly",
              "anchor": "DistanceJoint.MaxOnly",
              "kind": "field",
              "doc": "rope / max-distance mode: slack when distance <= max length, pulls only when stretched"
            },
            {
              "name": "Stiffness",
              "anchor": "DistanceJoint.Stiffness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "DistanceJoint.Compliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Damping",
              "anchor": "DistanceJoint.Damping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BreakForce",
              "anchor": "DistanceJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "DistanceJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "DistanceJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDistanceJoint",
              "anchor": "NewDistanceJoint",
              "decl": "func NewDistanceJoint(a, b *RigidBody, anchorA, anchorB core.Point, length float32) *DistanceJoint",
              "doc": "NewDistanceJoint creates a DistanceJoint between local anchors on a and b.\nIf length <= 0 and both bodies are non-nil, Length is initialized to the current distance between the anchors.\n",
              "file": "pkg/physics/joints.go",
              "line": 256
            },
            {
              "name": "NewRopeJoint",
              "anchor": "NewRopeJoint",
              "decl": "func NewRopeJoint(a, b *RigidBody, anchorA, anchorB core.Point, maxLength float32) *DistanceJoint",
              "doc": "NewRopeJoint creates a DistanceJoint configured in rope/max-distance mode (MaxOnly = true),\nallowing the anchors to move closer than maxLength without pushing apart while pulling taut\nwhen distance reaches maxLength. If maxLength <= 0, it initializes to the current anchor distance.\n",
              "file": "pkg/physics/joints.go",
              "line": 278
            }
          ],
          "methods": [
            {
              "name": "Broken",
              "anchor": "DistanceJoint.Broken",
              "recv": "*DistanceJoint",
              "decl": "func (r *DistanceJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics/joints.go",
              "line": 85
            },
            {
              "name": "ReactionForce",
              "anchor": "DistanceJoint.ReactionForce",
              "recv": "*DistanceJoint",
              "decl": "func (r *DistanceJoint) ReactionForce() (fx, fy float32)",
              "doc": "ReactionForce returns the world-space constraint force (fx, fy) applied to\nbody B (or the attached body for MouseJoint) during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 68
            },
            {
              "name": "ReactionTorque",
              "anchor": "DistanceJoint.ReactionTorque",
              "recv": "*DistanceJoint",
              "decl": "func (r *DistanceJoint) ReactionTorque() float32",
              "doc": "ReactionTorque returns the scalar constraint torque (clockwise positive in screen space)\napplied to body B during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 77
            }
          ]
        },
        {
          "name": "GravityFalloff",
          "anchor": "GravityFalloff",
          "decl": "type GravityFalloff uint8",
          "doc": "GravityFalloff controls how point-gravity acceleration varies with distance\nfrom (GravityPointX, GravityPointY).\n",
          "file": "pkg/physics/area.go",
          "line": 33,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GravityFalloffNone",
                  "anchor": "GravityFalloffNone"
                },
                {
                  "name": "GravityFalloffLinear",
                  "anchor": "GravityFalloffLinear"
                },
                {
                  "name": "GravityFalloffInverse",
                  "anchor": "GravityFalloffInverse"
                },
                {
                  "name": "GravityFalloffInverseSquare",
                  "anchor": "GravityFalloffInverseSquare"
                }
              ],
              "decl": "const (\n\t// GravityFalloffNone applies constant GravityStrength regardless of distance (zero value).\n\tGravityFalloffNone GravityFalloff = iota\n\t// GravityFalloffLinear decreases acceleration linearly from GravityStrength at\n\t// distance 0 to 0 at GravityUnitDistance (or the trigger shape's outer radius\n\t// when GravityUnitDistance <= 0).\n\tGravityFalloffLinear\n\t// GravityFalloffInverse scales acceleration as GravityStrength * (unitDist / dist).\n\tGravityFalloffInverse\n\t// GravityFalloffInverseSquare scales acceleration as GravityStrength * (unitDist / dist)^2.\n\tGravityFalloffInverseSquare\n)",
              "doc": "",
              "file": "pkg/physics/area.go",
              "line": 35
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Grid",
          "anchor": "Grid",
          "decl": "type Grid struct {\n\tCols, Rows            int\n\tTileWidth, TileHeight float32\n\t// OriginX and OriginY place cell (0, 0)'s top-left corner in world coordinates.\n\tOriginX, OriginY float32\n\tCells            []TileFlags\n}",
          "doc": "Grid is a row-major TileGrid backed by a flat slice of TileFlags.\n",
          "file": "pkg/physics/tile.go",
          "line": 47,
          "members": [
            {
              "name": "Cols",
              "anchor": "Grid.Cols",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "Grid.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileWidth",
              "anchor": "Grid.TileWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileHeight",
              "anchor": "Grid.TileHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OriginX",
              "anchor": "Grid.OriginX",
              "kind": "field",
              "doc": "OriginX and OriginY place cell (0, 0)'s top-left corner in world coordinates."
            },
            {
              "name": "OriginY",
              "anchor": "Grid.OriginY",
              "kind": "field",
              "doc": "OriginX and OriginY place cell (0, 0)'s top-left corner in world coordinates."
            },
            {
              "name": "Cells",
              "anchor": "Grid.Cells",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGrid",
              "anchor": "NewGrid",
              "decl": "func NewGrid(cols, rows int, tileWidth, tileHeight float32) *Grid",
              "doc": "NewGrid returns a Grid with cols columns and rows rows of tiles sized tileWidth by tileHeight.\n",
              "file": "pkg/physics/tile.go",
              "line": 61
            }
          ],
          "methods": [
            {
              "name": "FillRect",
              "anchor": "Grid.FillRect",
              "recv": "*Grid",
              "decl": "func (g *Grid) FillRect(col, row, w, h int, flags TileFlags)",
              "doc": "FillRect sets flags on all cells in the rectangle [col, col+w) x [row, row+h).\n",
              "file": "pkg/physics/tile.go",
              "line": 114
            },
            {
              "name": "GridOrigin",
              "anchor": "Grid.GridOrigin",
              "recv": "*Grid",
              "decl": "func (g *Grid) GridOrigin() (x, y float32)",
              "doc": "GridOrigin returns the world-space origin of cell (0, 0).\n",
              "file": "pkg/physics/tile.go",
              "line": 56
            },
            {
              "name": "GridSize",
              "anchor": "Grid.GridSize",
              "recv": "*Grid",
              "decl": "func (g *Grid) GridSize() (cols, rows int)",
              "doc": "GridSize returns the grid dimensions in tiles.\n",
              "file": "pkg/physics/tile.go",
              "line": 83
            },
            {
              "name": "Set",
              "anchor": "Grid.Set",
              "recv": "*Grid",
              "decl": "func (g *Grid) Set(col, row int, flags TileFlags)",
              "doc": "Set writes flags to (col, row), ignoring coordinates outside the grid.\n",
              "file": "pkg/physics/tile.go",
              "line": 100
            },
            {
              "name": "TileFlagsAt",
              "anchor": "Grid.TileFlagsAt",
              "recv": "*Grid",
              "decl": "func (g *Grid) TileFlagsAt(col, row int) TileFlags",
              "doc": "TileFlagsAt returns the flags at (col, row), or 0 when out of bounds.\n",
              "file": "pkg/physics/tile.go",
              "line": 88
            },
            {
              "name": "TileSize",
              "anchor": "Grid.TileSize",
              "recv": "*Grid",
              "decl": "func (g *Grid) TileSize() (width, height float32)",
              "doc": "TileSize returns the tile width and height.\n",
              "file": "pkg/physics/tile.go",
              "line": 78
            }
          ]
        },
        {
          "name": "GridSnapshot",
          "anchor": "GridSnapshot",
          "decl": "type GridSnapshot struct {\n\tCols       int         `json:\"cols\"`\n\tRows       int         `json:\"rows\"`\n\tTileWidth  float32     `json:\"tileWidth\"`\n\tTileHeight float32     `json:\"tileHeight\"`\n\tOriginX    float32     `json:\"originX,omitempty\"`\n\tOriginY    float32     `json:\"originY,omitempty\"`\n\tCells      []TileFlags `json:\"cells,omitempty\"`\n}",
          "doc": "GridSnapshot is a JSON-serializable snapshot of a *Grid tile grid.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 53,
          "members": [
            {
              "name": "Cols",
              "anchor": "GridSnapshot.Cols",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "GridSnapshot.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileWidth",
              "anchor": "GridSnapshot.TileWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileHeight",
              "anchor": "GridSnapshot.TileHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OriginX",
              "anchor": "GridSnapshot.OriginX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OriginY",
              "anchor": "GridSnapshot.OriginY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "GridSnapshot.Cells",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Joint",
          "anchor": "Joint",
          "decl": "type Joint interface {\n\t// contains filtered or unexported methods\n}",
          "doc": "Joint constrains the relative motion of one or two RigidBodies inside RigidWorld.Step.\n",
          "file": "pkg/physics/joints.go",
          "line": 11,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "JointBreakEvent",
          "anchor": "JointBreakEvent",
          "decl": "type JointBreakEvent struct {\n\tJoint  Joint\n\tBodyA  *RigidBody\n\tBodyB  *RigidBody\n\tForceX float32\n\tForceY float32\n\tTorque float32\n}",
          "doc": "JointBreakEvent reports a joint that broke during RigidWorld.Step because its\nreaction force or torque exceeded its BreakForce or BreakTorque threshold.\n",
          "file": "pkg/physics/joints.go",
          "line": 31,
          "members": [
            {
              "name": "Joint",
              "anchor": "JointBreakEvent.Joint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyA",
              "anchor": "JointBreakEvent.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "JointBreakEvent.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ForceX",
              "anchor": "JointBreakEvent.ForceX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ForceY",
              "anchor": "JointBreakEvent.ForceY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Torque",
              "anchor": "JointBreakEvent.Torque",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayerMask",
          "anchor": "LayerMask",
          "decl": "type LayerMask uint32",
          "doc": "LayerMask is a 32-bit bitmask identifying collision layers or collision filter masks.\nA zero LayerMask defaults to LayerAll so bodies, triggers and queries with unset\nlayer fields remain compatible with unfiltered collision checks.\n",
          "file": "pkg/physics/layers.go",
          "line": 6,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LayerAll",
                  "anchor": "LayerAll"
                }
              ],
              "decl": "const LayerAll LayerMask = ^LayerMask(0)",
              "doc": "LayerAll matches every collision layer.\n",
              "file": "pkg/physics/layers.go",
              "line": 9
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "LayerBit",
              "anchor": "LayerBit",
              "decl": "func LayerBit(index uint) LayerMask",
              "doc": "LayerBit returns the LayerMask with bit index set, or 0 when index >= 32.\n",
              "file": "pkg/physics/layers.go",
              "line": 12
            }
          ],
          "methods": []
        },
        {
          "name": "MotionMode",
          "anchor": "MotionMode",
          "decl": "type MotionMode uint8",
          "doc": "MotionMode controls how World.MoveAndSlideWith classifies contact normals into floor, wall and ceiling states.\n",
          "file": "pkg/physics/slide.go",
          "line": 30,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "MotionGrounded",
                  "anchor": "MotionGrounded"
                },
                {
                  "name": "MotionFloating",
                  "anchor": "MotionFloating"
                }
              ],
              "decl": "const (\n\t// MotionGrounded classifies contacts against UpDirection and FloorMaxAngle into floor, wall and ceiling\n\t// states (the zero value, for side-view platformers).\n\tMotionGrounded MotionMode = iota\n\t// MotionFloating treats every contact as a wall without floor or ceiling classification (for top-down games).\n\tMotionFloating\n)",
              "doc": "",
              "file": "pkg/physics/slide.go",
              "line": 32
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MouseJoint",
          "anchor": "MouseJoint",
          "decl": "type MouseJoint struct {\n\tBody         *RigidBody\n\tAnchor       core.Point // local anchor point on Body\n\tTarget       core.Point // world-space target point\n\tMaxForce     float32    // maximum pulling force (must be > 0 to apply force)\n\tFrequencyHz  float32    // spring natural frequency in Hz (default 5 in NewMouseJoint)\n\tDampingRatio float32    // damping ratio for FrequencyHz (default 0.7 in NewMouseJoint)\n\tStiffness    float32    // optional direct spring stiffness (used when FrequencyHz <= 0)\n\tDamping      float32    // optional direct damping (used when FrequencyHz <= 0)\n\tBreakForce   float32    // max reaction force before breaking (<= 0 disables)\n\tBreakTorque  float32    // max reaction torque before breaking (<= 0 disables)\n\t// contains filtered or unexported fields\n}",
          "doc": "MouseJoint (target joint) pulls a local Anchor on Body toward a settable world\nTarget point using a damped spring capped at MaxForce.\n",
          "file": "pkg/physics/joints.go",
          "line": 1772,
          "members": [
            {
              "name": "Body",
              "anchor": "MouseJoint.Body",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Anchor",
              "anchor": "MouseJoint.Anchor",
              "kind": "field",
              "doc": "local anchor point on Body"
            },
            {
              "name": "Target",
              "anchor": "MouseJoint.Target",
              "kind": "field",
              "doc": "world-space target point"
            },
            {
              "name": "MaxForce",
              "anchor": "MouseJoint.MaxForce",
              "kind": "field",
              "doc": "maximum pulling force (must be > 0 to apply force)"
            },
            {
              "name": "FrequencyHz",
              "anchor": "MouseJoint.FrequencyHz",
              "kind": "field",
              "doc": "spring natural frequency in Hz (default 5 in NewMouseJoint)"
            },
            {
              "name": "DampingRatio",
              "anchor": "MouseJoint.DampingRatio",
              "kind": "field",
              "doc": "damping ratio for FrequencyHz (default 0.7 in NewMouseJoint)"
            },
            {
              "name": "Stiffness",
              "anchor": "MouseJoint.Stiffness",
              "kind": "field",
              "doc": "optional direct spring stiffness (used when FrequencyHz <= 0)"
            },
            {
              "name": "Damping",
              "anchor": "MouseJoint.Damping",
              "kind": "field",
              "doc": "optional direct damping (used when FrequencyHz <= 0)"
            },
            {
              "name": "BreakForce",
              "anchor": "MouseJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "MouseJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque before breaking (<= 0 disables)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMouseJoint",
              "anchor": "NewMouseJoint",
              "decl": "func NewMouseJoint(body *RigidBody, worldTarget core.Point, maxForce float32) *MouseJoint",
              "doc": "NewMouseJoint creates a MouseJoint grabbing body at worldTarget with a maximum\npulling force maxForce, default FrequencyHz = 5, and DampingRatio = 0.7.\n",
              "file": "pkg/physics/joints.go",
              "line": 1799
            }
          ],
          "methods": [
            {
              "name": "Broken",
              "anchor": "MouseJoint.Broken",
              "recv": "*MouseJoint",
              "decl": "func (r *MouseJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics/joints.go",
              "line": 85
            },
            {
              "name": "ReactionForce",
              "anchor": "MouseJoint.ReactionForce",
              "recv": "*MouseJoint",
              "decl": "func (r *MouseJoint) ReactionForce() (fx, fy float32)",
              "doc": "ReactionForce returns the world-space constraint force (fx, fy) applied to\nbody B (or the attached body for MouseJoint) during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 68
            },
            {
              "name": "ReactionTorque",
              "anchor": "MouseJoint.ReactionTorque",
              "recv": "*MouseJoint",
              "decl": "func (r *MouseJoint) ReactionTorque() float32",
              "doc": "ReactionTorque returns the scalar constraint torque (clockwise positive in screen space)\napplied to body B during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 77
            },
            {
              "name": "SetTarget",
              "anchor": "MouseJoint.SetTarget",
              "recv": "*MouseJoint",
              "decl": "func (j *MouseJoint) SetTarget(target core.Point)",
              "doc": "SetTarget updates the world-space target point that MouseJoint pulls Body.Anchor toward.\n",
              "file": "pkg/physics/joints.go",
              "line": 1814
            }
          ]
        },
        {
          "name": "MoveOptions",
          "anchor": "MoveOptions",
          "decl": "type MoveOptions struct {\n\t// Mode selects MotionGrounded (default) or MotionFloating (top-down, every hit is a wall).\n\tMode MotionMode\n\t// UpX and UpY define the upward direction for floor, wall and ceiling classification in MotionGrounded mode\n\t// (and the pass-through direction for one-way colliders). When both are 0, defaults to (0, -1) (screen up).\n\tUpX, UpY float32\n\t// FloorMaxAngle is the steepest angle in radians between a contact normal and Up that counts as a floor\n\t// (or between a contact normal and -Up that counts as a ceiling). Values <= 0 default to DefaultFloorMaxAngle (45 degrees).\n\tFloorMaxAngle float32\n\t// MaxSlides is the maximum number of slide iterations per call. Values <= 0 default to DefaultMaxSlides (4).\n\tMaxSlides int\n\t// Mask optionally restricts which collider kinds are tested. Zero defaults to QueryAll\n\t// (World.Bodies, static RigidBody colliders, TileSolid and TileOneWay tiles).\n\tMask QueryMask\n\t// RigidBodies supplies optional extra static RigidBody colliders to test in addition to World.RigidWorld. Dynamic, kinematic and sensor rigid bodies are ignored.\n\tRigidBodies []*RigidBody\n\t// Exclude skips the listed Body pointers during movement in addition to the moving body itself.\n\tExclude []*Body\n}",
          "doc": "MoveOptions configures World.MoveAndSlideWith. The zero value uses MotionGrounded with Up (0, -1), FloorMaxAngle DefaultFloorMaxAngle (45 degrees), MaxSlides DefaultMaxSlides (4), and collides against World.Bodies, World.Tiles (solid and one-way), and the static RigidBody colliders in World.RigidWorld that are not sensors.\n",
          "file": "pkg/physics/slide.go",
          "line": 41,
          "members": [
            {
              "name": "Mode",
              "anchor": "MoveOptions.Mode",
              "kind": "field",
              "doc": "Mode selects MotionGrounded (default) or MotionFloating (top-down, every hit is a wall)."
            },
            {
              "name": "UpX",
              "anchor": "MoveOptions.UpX",
              "kind": "field",
              "doc": "UpX and UpY define the upward direction for floor, wall and ceiling classification in MotionGrounded mode\n(and the pass-through direction for one-way colliders). When both are 0, defaults to (0, -1) (screen up)."
            },
            {
              "name": "UpY",
              "anchor": "MoveOptions.UpY",
              "kind": "field",
              "doc": "UpX and UpY define the upward direction for floor, wall and ceiling classification in MotionGrounded mode\n(and the pass-through direction for one-way colliders). When both are 0, defaults to (0, -1) (screen up)."
            },
            {
              "name": "FloorMaxAngle",
              "anchor": "MoveOptions.FloorMaxAngle",
              "kind": "field",
              "doc": "FloorMaxAngle is the steepest angle in radians between a contact normal and Up that counts as a floor\n(or between a contact normal and -Up that counts as a ceiling). Values <= 0 default to DefaultFloorMaxAngle (45 degrees)."
            },
            {
              "name": "MaxSlides",
              "anchor": "MoveOptions.MaxSlides",
              "kind": "field",
              "doc": "MaxSlides is the maximum number of slide iterations per call. Values <= 0 default to DefaultMaxSlides (4)."
            },
            {
              "name": "Mask",
              "anchor": "MoveOptions.Mask",
              "kind": "field",
              "doc": "Mask optionally restricts which collider kinds are tested. Zero defaults to QueryAll\n(World.Bodies, static RigidBody colliders, TileSolid and TileOneWay tiles)."
            },
            {
              "name": "RigidBodies",
              "anchor": "MoveOptions.RigidBodies",
              "kind": "field",
              "doc": "RigidBodies supplies optional extra static RigidBody colliders to test in addition to World.RigidWorld. Dynamic, kinematic and sensor rigid bodies are ignored."
            },
            {
              "name": "Exclude",
              "anchor": "MoveOptions.Exclude",
              "kind": "field",
              "doc": "Exclude skips the listed Body pointers during movement in addition to the moving body itself."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MoveResult",
          "anchor": "MoveResult",
          "decl": "type MoveResult struct {\n\tContacts    []TileContact\n\tCollisions  []SlideCollision\n\tGrounded    bool\n\tOnWall      bool\n\tOnCeiling   bool\n\tOnLeftWall  bool\n\tOnRightWall bool\n}",
          "doc": "MoveResult summarizes the contacts and surface flags from one MoveAndSlide or CharacterBody.Move call.\n",
          "file": "pkg/physics/tile.go",
          "line": 169,
          "members": [
            {
              "name": "Contacts",
              "anchor": "MoveResult.Contacts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Collisions",
              "anchor": "MoveResult.Collisions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grounded",
              "anchor": "MoveResult.Grounded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnWall",
              "anchor": "MoveResult.OnWall",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnCeiling",
              "anchor": "MoveResult.OnCeiling",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnLeftWall",
              "anchor": "MoveResult.OnLeftWall",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnRightWall",
              "anchor": "MoveResult.OnRightWall",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "MoveAndSlide",
              "anchor": "MoveAndSlide",
              "decl": "func MoveAndSlide(b *Body, grid TileGrid, dt time.Duration) MoveResult",
              "doc": "MoveAndSlide advances b by (VX*dt, VY*dt) and resolves axis-aligned collisions against grid, resolving X before Y. It zeroes velocity along blocked axes, updates b's Grounded, OnCeiling, OnLeftWall and OnRightWall flags, and subdivides large displacements so fast bodies do not tunnel through single-tile walls or platforms.\n\nTiles are resolved against the bounding box of b's shape, so a Polygon or Capsule body moves as its bounds do and keeps its shape; the whole shape is translated by the resolved movement.\n",
              "file": "pkg/physics/tile.go",
              "line": 182
            }
          ],
          "methods": []
        },
        {
          "name": "MovingPlatform",
          "anchor": "MovingPlatform",
          "decl": "type MovingPlatform struct {\n\tBody           *Body\n\tDeltaX, DeltaY float32\n\tOneWay         bool\n}",
          "doc": "MovingPlatform is a kinematic platform body with its per-step displacement (DeltaX, DeltaY).\nCallers update the platform's Body position and record its displacement in DeltaX and DeltaY\n(or call Move) before stepping CharacterBody.Move.\n",
          "file": "pkg/physics/character.go",
          "line": 78,
          "members": [
            {
              "name": "Body",
              "anchor": "MovingPlatform.Body",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaX",
              "anchor": "MovingPlatform.DeltaX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeltaY",
              "anchor": "MovingPlatform.DeltaY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OneWay",
              "anchor": "MovingPlatform.OneWay",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Move",
              "anchor": "MovingPlatform.Move",
              "recv": "*MovingPlatform",
              "decl": "func (p *MovingPlatform) Move(dx, dy float32)",
              "doc": "Move records (dx, dy) as the platform's per-step displacement and translates Body accordingly.\n",
              "file": "pkg/physics/character.go",
              "line": 85
            }
          ]
        },
        {
          "name": "OverlapHit",
          "anchor": "OverlapHit",
          "decl": "type OverlapHit struct {\n\t// Body is non-nil when the hit is a body from World.Bodies.\n\tBody *Body\n\t// RigidBody is non-nil when the hit is a body from RigidWorld.Bodies.\n\tRigidBody *RigidBody\n\t// Tile is true when the hit is a tile from World.Tiles or RigidWorld.Tiles at (Col, Row).\n\tTile      bool\n\tCol, Row  int\n\tTileFlags TileFlags\n\t// Contact holds the overlap normal (pointing from the hit toward the query shape), depth and contact point.\n\tContact Contact\n}",
          "doc": "OverlapHit is one body or tile overlapping a query shape.\n",
          "file": "pkg/physics/world.go",
          "line": 31,
          "members": [
            {
              "name": "Body",
              "anchor": "OverlapHit.Body",
              "kind": "field",
              "doc": "Body is non-nil when the hit is a body from World.Bodies."
            },
            {
              "name": "RigidBody",
              "anchor": "OverlapHit.RigidBody",
              "kind": "field",
              "doc": "RigidBody is non-nil when the hit is a body from RigidWorld.Bodies."
            },
            {
              "name": "Tile",
              "anchor": "OverlapHit.Tile",
              "kind": "field",
              "doc": "Tile is true when the hit is a tile from World.Tiles or RigidWorld.Tiles at (Col, Row)."
            },
            {
              "name": "Col",
              "anchor": "OverlapHit.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "OverlapHit.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileFlags",
              "anchor": "OverlapHit.TileFlags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Contact",
              "anchor": "OverlapHit.Contact",
              "kind": "field",
              "doc": "Contact holds the overlap normal (pointing from the hit toward the query shape), depth and contact point."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Particle",
          "anchor": "Particle",
          "decl": "type Particle struct {\n\tX, Y         float32\n\tPrevX, PrevY float32\n\tVX, VY       float32\n\tInvMass      float32\n\tRadius       float32\n\tFriction     float32\n\tRestitution  float32\n\tPinned       bool\n\tLayer        LayerMask\n\tMask         LayerMask\n\t// contains filtered or unexported fields\n}",
          "doc": "Particle is a 2D point mass simulated by SoftWorld using Extended Position-Based Dynamics (XPBD).\n\nCoordinates follow NSGo's screen space (+X right, +Y down). Set Pinned to true or\nInvMass to 0 to fix a particle in place. Zero Layer or Mask values default to LayerAll.\n",
          "file": "pkg/physics/xpbd.go",
          "line": 22,
          "members": [
            {
              "name": "X",
              "anchor": "Particle.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Particle.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PrevX",
              "anchor": "Particle.PrevX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PrevY",
              "anchor": "Particle.PrevY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VX",
              "anchor": "Particle.VX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VY",
              "anchor": "Particle.VY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvMass",
              "anchor": "Particle.InvMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Particle.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "Particle.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "Particle.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pinned",
              "anchor": "Particle.Pinned",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "Particle.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "Particle.Mask",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ApplyForce",
              "anchor": "Particle.ApplyForce",
              "recv": "*Particle",
              "decl": "func (p *Particle) ApplyForce(fx, fy float32)",
              "doc": "ApplyForce accumulates a world-space force applied to p during the next SoftWorld.Step.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 56
            },
            {
              "name": "IsPinned",
              "anchor": "Particle.IsPinned",
              "recv": "*Particle",
              "decl": "func (p *Particle) IsPinned() bool",
              "doc": "IsPinned reports whether p has infinite mass (Pinned is true or InvMass <= 0).\n",
              "file": "pkg/physics/xpbd.go",
              "line": 39
            },
            {
              "name": "SetMass",
              "anchor": "Particle.SetMass",
              "recv": "*Particle",
              "decl": "func (p *Particle) SetMass(mass float32)",
              "doc": "SetMass sets p's inverse mass to 1/mass when mass > 0, or 0 when mass <= 0.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 44
            }
          ]
        },
        {
          "name": "Polygon",
          "anchor": "Polygon",
          "decl": "type Polygon struct {\n\tVertices [MaxPolygonVertices]core.Point\n\tCount    int\n\tRadius   float32\n}",
          "doc": "Polygon is a convex polygon of 3 to MaxPolygonVertices vertices in world coordinates, optionally rounded by Radius: the shape is every point within Radius of the polygon, as Box2D's rounded polygons are. Rounding keeps stacked props and characters from catching on each other's corners.\n\nVertices[:Count] wind with a positive signed area in NSGo's X-right, Y-down space, which is clockwise on screen, and the outward normal of the edge from vertex i to vertex i+1 is (dy, -dx) normalized. Build polygons with NewPolygon or NewBoxPolygon, which compute the convex hull and the winding; a Polygon written by hand must already be convex, wound that way and free of repeated vertices.\n",
          "file": "pkg/physics/shape_convex.go",
          "line": 21,
          "members": [
            {
              "name": "Vertices",
              "anchor": "Polygon.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "Polygon.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Polygon.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBoxPolygon",
              "anchor": "NewBoxPolygon",
              "decl": "func NewBoxPolygon(cx, cy, w, h, angle float32) Polygon",
              "doc": "NewBoxPolygon returns a w by h rectangle centered at (cx, cy) and rotated by angle radians (clockwise on screen), as a Polygon for ramps, wedges and rotated props. Like a Box, a rectangle whose w or h is not positive is empty: NewBoxPolygon then returns the zero Polygon, which reports Empty, as it does when an argument is not finite.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 52
            },
            {
              "name": "NewPolygon",
              "anchor": "NewPolygon",
              "decl": "func NewPolygon(points []core.Point, radius float32) (Polygon, bool)",
              "doc": "NewPolygon returns the convex hull of points rounded by radius. It merges points closer than 1e-4 and drops vertices that lie on an edge. It reports false when the hull has fewer than 3 or more than MaxPolygonVertices vertices, when a coordinate is not finite, or when radius is negative or not finite.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 28
            }
          ],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Polygon.Bounds",
              "recv": "Polygon",
              "decl": "func (p Polygon) Bounds() Box",
              "doc": "Bounds returns the tightest axis-aligned Box enclosing p and its rounding, or a zero Box when p is empty.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 144
            },
            {
              "name": "Contains",
              "anchor": "Polygon.Contains",
              "recv": "Polygon",
              "decl": "func (p Polygon) Contains(x, y float32) bool",
              "doc": "Contains reports whether (x, y) lies inside or on the boundary of p, including its rounding.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 159
            },
            {
              "name": "Empty",
              "anchor": "Polygon.Empty",
              "recv": "Polygon",
              "decl": "func (p Polygon) Empty() bool",
              "doc": "Empty reports whether p holds no valid polygon: fewer than 3 or more than MaxPolygonVertices vertices, or a negative Radius.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 139
            },
            {
              "name": "Translated",
              "anchor": "Polygon.Translated",
              "recv": "Polygon",
              "decl": "func (p Polygon) Translated(dx, dy float32) Polygon",
              "doc": "Translated returns a copy of p shifted by (dx, dy).\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 168
            }
          ]
        },
        {
          "name": "PrismaticJoint",
          "anchor": "PrismaticJoint",
          "decl": "type PrismaticJoint struct {\n\tA, B             *RigidBody\n\tAnchorA          core.Point\n\tAnchorB          core.Point\n\tLocalAxisA       core.Point // unit slide axis in A's local space (defaults to {X: 1, Y: 0})\n\tReferenceAngle   float32    // locked relative angle B.Angle - A.Angle\n\tEnableLimit      bool\n\tLowerTranslation float32\n\tUpperTranslation float32\n\tEnableMotor      bool\n\tMotorSpeed       float32 // target linear speed along slide axis (units/s)\n\tMaxMotorForce    float32 // max linear motor force\n\tBreakForce       float32 // max reaction force before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "PrismaticJoint (slider) constrains body B to translate relative to body A along\nLocalAxisA with locked relative orientation, optional translation limits, a linear\nmotor, and break thresholds.\n",
          "file": "pkg/physics/joints.go",
          "line": 850,
          "members": [
            {
              "name": "A",
              "anchor": "PrismaticJoint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "PrismaticJoint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorA",
              "anchor": "PrismaticJoint.AnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorB",
              "anchor": "PrismaticJoint.AnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAxisA",
              "anchor": "PrismaticJoint.LocalAxisA",
              "kind": "field",
              "doc": "unit slide axis in A's local space (defaults to {X: 1, Y: 0})"
            },
            {
              "name": "ReferenceAngle",
              "anchor": "PrismaticJoint.ReferenceAngle",
              "kind": "field",
              "doc": "locked relative angle B.Angle - A.Angle"
            },
            {
              "name": "EnableLimit",
              "anchor": "PrismaticJoint.EnableLimit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LowerTranslation",
              "anchor": "PrismaticJoint.LowerTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UpperTranslation",
              "anchor": "PrismaticJoint.UpperTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableMotor",
              "anchor": "PrismaticJoint.EnableMotor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorSpeed",
              "anchor": "PrismaticJoint.MotorSpeed",
              "kind": "field",
              "doc": "target linear speed along slide axis (units/s)"
            },
            {
              "name": "MaxMotorForce",
              "anchor": "PrismaticJoint.MaxMotorForce",
              "kind": "field",
              "doc": "max linear motor force"
            },
            {
              "name": "BreakForce",
              "anchor": "PrismaticJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "PrismaticJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "PrismaticJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPrismaticJoint",
              "anchor": "NewPrismaticJoint",
              "decl": "func NewPrismaticJoint(a, b *RigidBody, worldAnchor, worldAxis core.Point) *PrismaticJoint",
              "doc": "NewPrismaticJoint creates a PrismaticJoint sliding along worldAxis through worldAnchor.\nIf worldAxis is zero, LocalAxisA defaults to {X: 1, Y: 0}.\n",
              "file": "pkg/physics/joints.go",
              "line": 885
            }
          ],
          "methods": [
            {
              "name": "Broken",
              "anchor": "PrismaticJoint.Broken",
              "recv": "*PrismaticJoint",
              "decl": "func (r *PrismaticJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics/joints.go",
              "line": 85
            },
            {
              "name": "JointSpeed",
              "anchor": "PrismaticJoint.JointSpeed",
              "recv": "*PrismaticJoint",
              "decl": "func (j *PrismaticJoint) JointSpeed() float32",
              "doc": "JointSpeed returns the current relative linear velocity along the world slide axis.\n",
              "file": "pkg/physics/joints.go",
              "line": 924
            },
            {
              "name": "JointTranslation",
              "anchor": "PrismaticJoint.JointTranslation",
              "recv": "*PrismaticJoint",
              "decl": "func (j *PrismaticJoint) JointTranslation() float32",
              "doc": "JointTranslation returns the current signed displacement of AnchorB relative to\nAnchorA along the world slide axis.\n",
              "file": "pkg/physics/joints.go",
              "line": 911
            },
            {
              "name": "ReactionForce",
              "anchor": "PrismaticJoint.ReactionForce",
              "recv": "*PrismaticJoint",
              "decl": "func (r *PrismaticJoint) ReactionForce() (fx, fy float32)",
              "doc": "ReactionForce returns the world-space constraint force (fx, fy) applied to\nbody B (or the attached body for MouseJoint) during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 68
            },
            {
              "name": "ReactionTorque",
              "anchor": "PrismaticJoint.ReactionTorque",
              "recv": "*PrismaticJoint",
              "decl": "func (r *PrismaticJoint) ReactionTorque() float32",
              "doc": "ReactionTorque returns the scalar constraint torque (clockwise positive in screen space)\napplied to body B during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 77
            }
          ]
        },
        {
          "name": "QueryMask",
          "anchor": "QueryMask",
          "decl": "type QueryMask uint32",
          "doc": "QueryMask selects which targets a query inspects. A zero QueryMask is treated as QueryAll.\n",
          "file": "pkg/physics/world.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "QueryBodies",
                  "anchor": "QueryBodies"
                },
                {
                  "name": "QueryTiles",
                  "anchor": "QueryTiles"
                },
                {
                  "name": "QueryOneWay",
                  "anchor": "QueryOneWay"
                },
                {
                  "name": "QueryAll",
                  "anchor": "QueryAll"
                }
              ],
              "decl": "const (\n\t// QueryBodies includes bodies in World.Bodies.\n\tQueryBodies QueryMask = 1 << iota\n\t// QueryTiles includes solid tiles (TileSolid) in World.Tiles.\n\tQueryTiles\n\t// QueryOneWay includes one-way platform tiles (TileOneWay) in World.Tiles.\n\t// During raycasts, a one-way tile only hits when the ray enters its top edge moving downward.\n\tQueryOneWay\n\t// QueryAll includes bodies, solid tiles and one-way tiles.\n\tQueryAll = QueryBodies | QueryTiles | QueryOneWay\n)",
              "doc": "",
              "file": "pkg/physics/world.go",
              "line": 15
            },
            {
              "idents": [
                {
                  "name": "QuerySensors",
                  "anchor": "QuerySensors"
                }
              ],
              "decl": "const QuerySensors QueryMask = 1 << 3",
              "doc": "QuerySensors includes RigidBody sensors in RigidWorld queries, which QueryBodies and QueryAll leave out. World queries ignore it.\n",
              "file": "pkg/physics/world.go",
              "line": 28
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RaycastHit",
          "anchor": "RaycastHit",
          "decl": "type RaycastHit struct {\n\t// T is the normalized distance along the ray from From (0) to To (1).\n\tT float32\n\t// Point is the world-space intersection point.\n\tPoint core.Point\n\t// NormalX and NormalY form the unit surface normal at Point, or (0, 0) when the ray starts inside a shape. Segments and chains are hit from either side, with the normal facing the ray's start; a ray running along one misses it.\n\tNormalX, NormalY float32\n\t// Body is non-nil when the hit is a body from World.Bodies.\n\tBody *Body\n\t// RigidBody is non-nil when the hit is a body from RigidWorld.Bodies.\n\tRigidBody *RigidBody\n\t// Tile is true when the hit is a tile from World.Tiles or RigidWorld.Tiles at (Col, Row).\n\tTile      bool\n\tCol, Row  int\n\tTileFlags TileFlags\n}",
          "doc": "RaycastHit is one intersection of a ray segment with a body or tile.\n",
          "file": "pkg/physics/world.go",
          "line": 45,
          "members": [
            {
              "name": "T",
              "anchor": "RaycastHit.T",
              "kind": "field",
              "doc": "T is the normalized distance along the ray from From (0) to To (1)."
            },
            {
              "name": "Point",
              "anchor": "RaycastHit.Point",
              "kind": "field",
              "doc": "Point is the world-space intersection point."
            },
            {
              "name": "NormalX",
              "anchor": "RaycastHit.NormalX",
              "kind": "field",
              "doc": "NormalX and NormalY form the unit surface normal at Point, or (0, 0) when the ray starts inside a shape. Segments and chains are hit from either side, with the normal facing the ray's start; a ray running along one misses it."
            },
            {
              "name": "NormalY",
              "anchor": "RaycastHit.NormalY",
              "kind": "field",
              "doc": "NormalX and NormalY form the unit surface normal at Point, or (0, 0) when the ray starts inside a shape. Segments and chains are hit from either side, with the normal facing the ray's start; a ray running along one misses it."
            },
            {
              "name": "Body",
              "anchor": "RaycastHit.Body",
              "kind": "field",
              "doc": "Body is non-nil when the hit is a body from World.Bodies."
            },
            {
              "name": "RigidBody",
              "anchor": "RaycastHit.RigidBody",
              "kind": "field",
              "doc": "RigidBody is non-nil when the hit is a body from RigidWorld.Bodies."
            },
            {
              "name": "Tile",
              "anchor": "RaycastHit.Tile",
              "kind": "field",
              "doc": "Tile is true when the hit is a tile from World.Tiles or RigidWorld.Tiles at (Col, Row)."
            },
            {
              "name": "Col",
              "anchor": "RaycastHit.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "RaycastHit.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileFlags",
              "anchor": "RaycastHit.TileFlags",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RevoluteJoint",
          "anchor": "RevoluteJoint",
          "decl": "type RevoluteJoint struct {\n\tA, B             *RigidBody\n\tAnchorA          core.Point\n\tAnchorB          core.Point\n\tReferenceAngle   float32 // initial relative angle B.Angle - A.Angle\n\tEnableLimit      bool\n\tLowerAngle       float32 // radians\n\tUpperAngle       float32 // radians\n\tEnableMotor      bool\n\tMotorSpeed       float32 // target relative angular velocity (rad/s)\n\tMaxMotorTorque   float32 // maximum motor torque\n\tBreakForce       float32 // max reaction force before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "RevoluteJoint pins a local anchor on A to a local anchor on B so both world anchor points\nremain coincident while allowing relative rotation around the hinge, with optional angular\nlimits, angular motor, and break thresholds.\n",
          "file": "pkg/physics/joints.go",
          "line": 601,
          "members": [
            {
              "name": "A",
              "anchor": "RevoluteJoint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "RevoluteJoint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorA",
              "anchor": "RevoluteJoint.AnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorB",
              "anchor": "RevoluteJoint.AnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReferenceAngle",
              "anchor": "RevoluteJoint.ReferenceAngle",
              "kind": "field",
              "doc": "initial relative angle B.Angle - A.Angle"
            },
            {
              "name": "EnableLimit",
              "anchor": "RevoluteJoint.EnableLimit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LowerAngle",
              "anchor": "RevoluteJoint.LowerAngle",
              "kind": "field",
              "doc": "radians"
            },
            {
              "name": "UpperAngle",
              "anchor": "RevoluteJoint.UpperAngle",
              "kind": "field",
              "doc": "radians"
            },
            {
              "name": "EnableMotor",
              "anchor": "RevoluteJoint.EnableMotor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorSpeed",
              "anchor": "RevoluteJoint.MotorSpeed",
              "kind": "field",
              "doc": "target relative angular velocity (rad/s)"
            },
            {
              "name": "MaxMotorTorque",
              "anchor": "RevoluteJoint.MaxMotorTorque",
              "kind": "field",
              "doc": "maximum motor torque"
            },
            {
              "name": "BreakForce",
              "anchor": "RevoluteJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "RevoluteJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "RevoluteJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRevoluteJoint",
              "anchor": "NewRevoluteJoint",
              "decl": "func NewRevoluteJoint(a, b *RigidBody, worldPivot core.Point) *RevoluteJoint",
              "doc": "NewRevoluteJoint creates a RevoluteJoint pinning a and b together at worldPivot.\n",
              "file": "pkg/physics/joints.go",
              "line": 630
            }
          ],
          "methods": [
            {
              "name": "Broken",
              "anchor": "RevoluteJoint.Broken",
              "recv": "*RevoluteJoint",
              "decl": "func (r *RevoluteJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics/joints.go",
              "line": 85
            },
            {
              "name": "JointAngle",
              "anchor": "RevoluteJoint.JointAngle",
              "recv": "*RevoluteJoint",
              "decl": "func (j *RevoluteJoint) JointAngle() float32",
              "doc": "JointAngle returns the current relative rotation in radians: B.Angle - A.Angle - ReferenceAngle.\n",
              "file": "pkg/physics/joints.go",
              "line": 651
            },
            {
              "name": "JointSpeed",
              "anchor": "RevoluteJoint.JointSpeed",
              "recv": "*RevoluteJoint",
              "decl": "func (j *RevoluteJoint) JointSpeed() float32",
              "doc": "JointSpeed returns the current relative angular velocity in rad/s: B.AngularVel - A.AngularVel.\n",
              "file": "pkg/physics/joints.go",
              "line": 659
            },
            {
              "name": "ReactionForce",
              "anchor": "RevoluteJoint.ReactionForce",
              "recv": "*RevoluteJoint",
              "decl": "func (r *RevoluteJoint) ReactionForce() (fx, fy float32)",
              "doc": "ReactionForce returns the world-space constraint force (fx, fy) applied to\nbody B (or the attached body for MouseJoint) during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 68
            },
            {
              "name": "ReactionTorque",
              "anchor": "RevoluteJoint.ReactionTorque",
              "recv": "*RevoluteJoint",
              "decl": "func (r *RevoluteJoint) ReactionTorque() float32",
              "doc": "ReactionTorque returns the scalar constraint torque (clockwise positive in screen space)\napplied to body B during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 77
            }
          ]
        },
        {
          "name": "RigidAttachment",
          "anchor": "RigidAttachment",
          "decl": "type RigidAttachment struct {\n\tParticle    int\n\tBody        *RigidBody\n\tLocalAnchor core.Point\n\tCompliance  float32\n\t// contains filtered or unexported fields\n}",
          "doc": "RigidAttachment couples particle Particle to RigidBody Body at LocalAnchor.\nWhen Compliance is 0, the attachment acts as a rigid two-way pin; positive\nCompliance makes it elastic while still transferring reaction impulses back to Body.\n",
          "file": "pkg/physics/xpbd.go",
          "line": 118,
          "members": [
            {
              "name": "Particle",
              "anchor": "RigidAttachment.Particle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Body",
              "anchor": "RigidAttachment.Body",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchor",
              "anchor": "RigidAttachment.LocalAnchor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "RigidAttachment.Compliance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RigidBody",
          "anchor": "RigidBody",
          "decl": "type RigidBody struct {\n\tID             int\n\tTag            string\n\tShape          Shape\n\tX, Y           float32\n\tVX, VY         float32\n\tAngle          float32\n\tAngularVel     float32\n\tMass           float32\n\tInvMass        float32\n\tInertia        float32\n\tInvInertia     float32\n\tRestitution    float32\n\tFriction       float32\n\tLinearDamping  float32\n\tAngularDamping float32\n\t// GravityScale multiplies the effective gravity applied to this body during\n\t// RigidWorld.Step. NewRigidBox and NewRigidCircle initialize it to 1; on a\n\t// zero-initialized RigidBody literal it defaults to 1 unless SetGravityScale(0)\n\t// is called or GravityScale is modified after AddBody.\n\tGravityScale float32\n\tStatic       bool\n\t// Kinematic makes the body move only as it is told: by VX, VY and AngularVel, which Step integrates with no gravity, force, damping or area effect, or by SetTargetPose. The solver treats it as having infinite mass, so it pushes and carries the dynamic bodies it touches and nothing it touches moves it; it never collides with static or other kinematic bodies or tiles, and never sleeps. Step zeroes InvMass and InvInertia while it is set and derives them again from Mass and Inertia once it is cleared. Static takes precedence: a body with both set is static. A kinematic body never uses Mass, but NewRigidBox, NewRigidCircle and NewRigidBody make a body static when its mass is not positive, so build it with a positive mass or clear Static after building it with zero.\n\tKinematic bool\n\t// Sensor makes the body detect overlaps instead of colliding: it takes part in no contact, is not hit by continuous collision, and reports a SensorEvent when a body that is not a sensor starts or stops overlapping it. A sensor moves as its kind (static, kinematic or dynamic) says, and never detects another sensor.\n\tSensor bool\n\tLayer  LayerMask\n\tMask   LayerMask\n\t// Bullet sweeps the body against static bodies on every step and stops it at the first surface it reaches, so it never passes into one, except that a surface it already touches at the start of a step and is driven into by no more than half its half thickness is left to the regular contacts. Without it the body is swept only on steps where a point of it moves farther than half its thickness, when it could otherwise pass through a thin wall, and a shallow overlap is left to the regular contacts.\n\tBullet   bool\n\tUserData any\n\t// contains filtered or unexported fields\n}",
          "doc": "RigidBody is a 2D dynamic or static rigid body simulated by RigidWorld.\n\n(X, Y) is the world-space center of mass and Angle is the rotation in radians (increasing clockwise in NSGo's +X right, +Y down screen space). Shape holds the body's geometry in world space and is synchronized with (X, Y) after each simulation step. A Box keeps its axis-aligned extents centered on (X, Y) and a Circle its center, with Angle applied by the solver; a Polygon, Capsule, Segment or Chain is stored rotated by Angle, so World queries and debug drawing see its true pose.\n\nA Polygon or Capsule assigned to Shape, in a struct literal or between steps, keeps its world position: the next Step moves (X, Y) to its Centroid, so the body turns about its center of mass, and replaces an Inertia the body derived itself (left zero, or computed by a constructor or an earlier Step) with the new shape's MomentOfInertia; an Inertia set to any other value is kept. A Segment or Chain is anchored at the current (X, Y).\n\nSegment and Chain shapes have no area, so a body holding one is always static.\n",
          "file": "pkg/physics/rigid.go",
          "line": 24,
          "members": [
            {
              "name": "ID",
              "anchor": "RigidBody.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "RigidBody.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "RigidBody.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "RigidBody.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "RigidBody.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VX",
              "anchor": "RigidBody.VX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VY",
              "anchor": "RigidBody.VY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Angle",
              "anchor": "RigidBody.Angle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngularVel",
              "anchor": "RigidBody.AngularVel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mass",
              "anchor": "RigidBody.Mass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvMass",
              "anchor": "RigidBody.InvMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Inertia",
              "anchor": "RigidBody.Inertia",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvInertia",
              "anchor": "RigidBody.InvInertia",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "RigidBody.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "RigidBody.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LinearDamping",
              "anchor": "RigidBody.LinearDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngularDamping",
              "anchor": "RigidBody.AngularDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityScale",
              "anchor": "RigidBody.GravityScale",
              "kind": "field",
              "doc": "GravityScale multiplies the effective gravity applied to this body during\nRigidWorld.Step. NewRigidBox and NewRigidCircle initialize it to 1; on a\nzero-initialized RigidBody literal it defaults to 1 unless SetGravityScale(0)\nis called or GravityScale is modified after AddBody."
            },
            {
              "name": "Static",
              "anchor": "RigidBody.Static",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kinematic",
              "anchor": "RigidBody.Kinematic",
              "kind": "field",
              "doc": "Kinematic makes the body move only as it is told: by VX, VY and AngularVel, which Step integrates with no gravity, force, damping or area effect, or by SetTargetPose. The solver treats it as having infinite mass, so it pushes and carries the dynamic bodies it touches and nothing it touches moves it; it never collides with static or other kinematic bodies or tiles, and never sleeps. Step zeroes InvMass and InvInertia while it is set and derives them again from Mass and Inertia once it is cleared. Static takes precedence: a body with both set is static. A kinematic body never uses Mass, but NewRigidBox, NewRigidCircle and NewRigidBody make a body static when its mass is not positive, so build it with a positive mass or clear Static after building it with zero."
            },
            {
              "name": "Sensor",
              "anchor": "RigidBody.Sensor",
              "kind": "field",
              "doc": "Sensor makes the body detect overlaps instead of colliding: it takes part in no contact, is not hit by continuous collision, and reports a SensorEvent when a body that is not a sensor starts or stops overlapping it. A sensor moves as its kind (static, kinematic or dynamic) says, and never detects another sensor."
            },
            {
              "name": "Layer",
              "anchor": "RigidBody.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "RigidBody.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bullet",
              "anchor": "RigidBody.Bullet",
              "kind": "field",
              "doc": "Bullet sweeps the body against static bodies on every step and stops it at the first surface it reaches, so it never passes into one, except that a surface it already touches at the start of a step and is driven into by no more than half its half thickness is left to the regular contacts. Without it the body is swept only on steps where a point of it moves farther than half its thickness, when it could otherwise pass through a thin wall, and a shallow overlap is left to the regular contacts."
            },
            {
              "name": "UserData",
              "anchor": "RigidBody.UserData",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRigidBody",
              "anchor": "NewRigidBody",
              "decl": "func NewRigidBody(s Shape, mass float32) *RigidBody",
              "doc": "NewRigidBody returns a RigidBody holding s, a shape in world coordinates, with its center of mass at s's Centroid and its inertia computed from s for mass spread evenly over its area. If mass <= 0, or s is a Segment or Chain, the body is static. A Box or Circle gives the same body as NewRigidBox or NewRigidCircle.\n",
              "file": "pkg/physics/rigid.go",
              "line": 92
            },
            {
              "name": "NewRigidBox",
              "anchor": "NewRigidBox",
              "decl": "func NewRigidBox(x, y, w, h, mass float32) *RigidBody",
              "doc": "NewRigidBox returns a dynamic rectangular RigidBody centered at (x, y) with size (w, h) and mass.\nIf mass <= 0, the body is created as Static.\n",
              "file": "pkg/physics/rigid.go",
              "line": 188
            },
            {
              "name": "NewRigidCircle",
              "anchor": "NewRigidCircle",
              "decl": "func NewRigidCircle(x, y, r, mass float32) *RigidBody",
              "doc": "NewRigidCircle returns a dynamic circular RigidBody centered at (x, y) with radius r and mass.\nIf mass <= 0, the body is created as Static.\n",
              "file": "pkg/physics/rigid.go",
              "line": 219
            },
            {
              "name": "NewStaticRigidBody",
              "anchor": "NewStaticRigidBody",
              "decl": "func NewStaticRigidBody(s Shape) *RigidBody",
              "doc": "NewStaticRigidBody returns a static (infinite-mass) RigidBody holding s, such as level terrain built from a Polygon, Segment or Chain.\n",
              "file": "pkg/physics/rigid.go",
              "line": 118
            },
            {
              "name": "NewStaticRigidBox",
              "anchor": "NewStaticRigidBox",
              "decl": "func NewStaticRigidBox(x, y, w, h float32) *RigidBody",
              "doc": "NewStaticRigidBox returns a static (infinite-mass) rectangular RigidBody centered at (x, y) with size (w, h).\n",
              "file": "pkg/physics/rigid.go",
              "line": 213
            },
            {
              "name": "NewStaticRigidCircle",
              "anchor": "NewStaticRigidCircle",
              "decl": "func NewStaticRigidCircle(x, y, r float32) *RigidBody",
              "doc": "NewStaticRigidCircle returns a static (infinite-mass) circular RigidBody centered at (x, y) with radius r.\n",
              "file": "pkg/physics/rigid.go",
              "line": 244
            }
          ],
          "methods": [
            {
              "name": "ApplyForce",
              "anchor": "RigidBody.ApplyForce",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) ApplyForce(fx, fy float32)",
              "doc": "ApplyForce accumulates a world-space force applied to b's center of mass on the next Step. A static or kinematic body ignores it.\n",
              "file": "pkg/physics/rigid.go",
              "line": 284
            },
            {
              "name": "ApplyImpulse",
              "anchor": "RigidBody.ApplyImpulse",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) ApplyImpulse(ix, iy float32)",
              "doc": "ApplyImpulse immediately changes b's linear velocity by (ix, iy)*InvMass. A static or kinematic body ignores it.\n",
              "file": "pkg/physics/rigid.go",
              "line": 303
            },
            {
              "name": "ApplyImpulseAtPoint",
              "anchor": "RigidBody.ApplyImpulseAtPoint",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) ApplyImpulseAtPoint(ix, iy float32, worldPoint core.Point)",
              "doc": "ApplyImpulseAtPoint immediately applies world-space impulse (ix, iy) at worldPoint, updating both linear and angular velocity. A static or kinematic body ignores it.\n",
              "file": "pkg/physics/rigid.go",
              "line": 314
            },
            {
              "name": "ApplyTorque",
              "anchor": "RigidBody.ApplyTorque",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) ApplyTorque(torque float32)",
              "doc": "ApplyTorque accumulates a torque applied to b on the next Step. A static or kinematic body ignores it.\n",
              "file": "pkg/physics/rigid.go",
              "line": 294
            },
            {
              "name": "EffectiveGravityScale",
              "anchor": "RigidBody.EffectiveGravityScale",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) EffectiveGravityScale() float32",
              "doc": "EffectiveGravityScale returns b's active gravity multiplier.\nFor a zero-initialized RigidBody literal whose GravityScale has not been set,\nthis defaults to 1.\n",
              "file": "pkg/physics/area.go",
              "line": 142
            },
            {
              "name": "LocalToWorld",
              "anchor": "RigidBody.LocalToWorld",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) LocalToWorld(local core.Point) core.Point",
              "doc": "LocalToWorld transforms a local-space point relative to b's center into world coordinates.\n",
              "file": "pkg/physics/rigid.go",
              "line": 249
            },
            {
              "name": "SetGravityScale",
              "anchor": "RigidBody.SetGravityScale",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) SetGravityScale(scale float32)",
              "doc": "SetGravityScale sets the per-body gravity multiplier on b, including 0 for\nweightless bodies. Non-finite values are ignored.\n",
              "file": "pkg/physics/area.go",
              "line": 131
            },
            {
              "name": "SetTargetPose",
              "anchor": "RigidBody.SetTargetPose",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) SetTargetPose(x, y, angle float32)",
              "doc": "SetTargetPose moves a kinematic body to (x, y) at angle over the next Step, the way an animation drives a moving platform. That Step sets VX, VY and AngularVel to the velocity that covers the distance in one step, so the bodies the platform pushes and carries move with it, and ends with the body exactly at the pose. A body given no new target before the following Step stops there, unless its velocity was changed in between. Step ignores a target while the body is not Kinematic, and SetTargetPose ignores a pose that is not finite.\n\nAssigning X, Y and Angle directly also moves a kinematic body, but as a teleport: the bodies it lands in are pushed out without being given its motion.\n",
              "file": "pkg/physics/rigid_kinematic.go",
              "line": 6
            },
            {
              "name": "Sleeping",
              "anchor": "RigidBody.Sleeping",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) Sleeping() bool",
              "doc": "Sleeping reports whether b rests in a sleeping island. RigidWorld neither moves nor solves a sleeping body until something wakes it: Wake, a force, torque or impulse, a change to its pose or velocity, a joint or contact linking it to an awake body, or the removal or movement of a static body it touches.\n",
              "file": "pkg/physics/rigid.go",
              "line": 270
            },
            {
              "name": "Wake",
              "anchor": "RigidBody.Wake",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) Wake()",
              "doc": "Wake makes b take part in the next Step and restarts the time it must rest before it can sleep again. The rest of b's island wakes with it on that step.\n",
              "file": "pkg/physics/rigid.go",
              "line": 275
            },
            {
              "name": "WorldShape",
              "anchor": "RigidBody.WorldShape",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) WorldShape() Shape",
              "doc": "WorldShape returns b's shape at its current pose in world coordinates: a Box or Circle where (X, Y) puts it, a Box turned by a non-zero Angle as a Polygon, and a Polygon, Capsule, Segment or Chain as Step last placed it, or where its current pose puts it if it was moved since.\n",
              "file": "pkg/physics/rigid_query.go",
              "line": 13
            },
            {
              "name": "WorldToLocal",
              "anchor": "RigidBody.WorldToLocal",
              "recv": "*RigidBody",
              "decl": "func (b *RigidBody) WorldToLocal(world core.Point) core.Point",
              "doc": "WorldToLocal transforms a world-space point into b's local coordinate frame.\n",
              "file": "pkg/physics/rigid.go",
              "line": 259
            }
          ]
        },
        {
          "name": "RigidBodySnapshot",
          "anchor": "RigidBodySnapshot",
          "decl": "type RigidBodySnapshot struct {\n\tID              int       `json:\"id\"`\n\tTag             string    `json:\"tag,omitempty\"`\n\tShape           Shape     `json:\"shape\"`\n\tX               float32   `json:\"x\"`\n\tY               float32   `json:\"y\"`\n\tVX              float32   `json:\"vx\"`\n\tVY              float32   `json:\"vy\"`\n\tAngle           float32   `json:\"angle\"`\n\tAngularVel      float32   `json:\"angularVel\"`\n\tMass            float32   `json:\"mass\"`\n\tInvMass         float32   `json:\"invMass\"`\n\tInertia         float32   `json:\"inertia\"`\n\tInvInertia      float32   `json:\"invInertia\"`\n\tRestitution     float32   `json:\"restitution\"`\n\tFriction        float32   `json:\"friction\"`\n\tLinearDamping   float32   `json:\"linearDamping\"`\n\tAngularDamping  float32   `json:\"angularDamping\"`\n\tGravityScale    float32   `json:\"gravityScale\"`\n\tGravityScaleSet bool      `json:\"gravityScaleSet,omitempty\"`\n\tStatic          bool      `json:\"static,omitempty\"`\n\tLayer           LayerMask `json:\"layer\"`\n\tMask            LayerMask `json:\"mask\"`\n\tForceX          float64   `json:\"forceX,omitempty\"`\n\tForceY          float64   `json:\"forceY,omitempty\"`\n\tTorque          float64   `json:\"torque,omitempty\"`\n\t// Local is the body's Polygon, Capsule, Segment or Chain shape relative to (X, Y) at Angle 0, which the solver rotates each step; nil for a Box or Circle.\n\tLocal *Shape `json:\"local,omitempty\"`\n\t// Synced reports that Shape is the world shape last derived from Local at pose (SyncX, SyncY, SyncAngle), so it is not re-derived on the next step.\n\tSynced    bool    `json:\"synced,omitempty\"`\n\tSyncX     float32 `json:\"syncX,omitempty\"`\n\tSyncY     float32 `json:\"syncY,omitempty\"`\n\tSyncAngle float32 `json:\"syncAngle,omitempty\"`\n\t// DerivedInertia is the Inertia the body last derived from its shape.\n\tDerivedInertia float32 `json:\"derivedInertia,omitempty\"`\n\tBullet         bool    `json:\"bullet,omitempty\"`\n\t// Sleeping reports that the body rests in a sleeping island; SleepEnv is the gravity, damping and fluid it fell asleep in.\n\tSleeping bool        `json:\"sleeping,omitempty\"`\n\tSleepEnv *AreaEffect `json:\"sleepEnv,omitempty\"`\n\t// SleepTime is how long, in seconds, the body has moved slower than the sleep thresholds.\n\tSleepTime float64 `json:\"sleepTime,omitempty\"`\n\t// RestValid reports that (RestX, RestY, RestAngle) is the pose the body ended its last step with, which tells the next step whether it was moved by hand.\n\tRestValid bool    `json:\"restValid,omitempty\"`\n\tRestX     float32 `json:\"restX,omitempty\"`\n\tRestY     float32 `json:\"restY,omitempty\"`\n\tRestAngle float32 `json:\"restAngle,omitempty\"`\n\tKinematic bool    `json:\"kinematic,omitempty\"`\n\tSensor    bool    `json:\"sensor,omitempty\"`\n\t// TargetPending reports a pose (TargetX, TargetY, TargetAngle) that SetTargetPose asked the next Step to reach.\n\tTargetPending bool    `json:\"targetPending,omitempty\"`\n\tTargetX       float32 `json:\"targetX,omitempty\"`\n\tTargetY       float32 `json:\"targetY,omitempty\"`\n\tTargetAngle   float32 `json:\"targetAngle,omitempty\"`\n\t// TargetDriven reports that the last Step moved the body to a target with velocity (TargetVX, TargetVY, TargetAngularVel), which the next Step stops unless a new target is set.\n\tTargetDriven     bool    `json:\"targetDriven,omitempty\"`\n\tTargetVX         float32 `json:\"targetVX,omitempty\"`\n\tTargetVY         float32 `json:\"targetVY,omitempty\"`\n\tTargetAngularVel float32 `json:\"targetAngularVel,omitempty\"`\n}",
          "doc": "RigidBodySnapshot captures the complete public and private simulation state of one RigidBody.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 116,
          "members": [
            {
              "name": "ID",
              "anchor": "RigidBodySnapshot.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "RigidBodySnapshot.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "RigidBodySnapshot.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "RigidBodySnapshot.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "RigidBodySnapshot.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VX",
              "anchor": "RigidBodySnapshot.VX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VY",
              "anchor": "RigidBodySnapshot.VY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Angle",
              "anchor": "RigidBodySnapshot.Angle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngularVel",
              "anchor": "RigidBodySnapshot.AngularVel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mass",
              "anchor": "RigidBodySnapshot.Mass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvMass",
              "anchor": "RigidBodySnapshot.InvMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Inertia",
              "anchor": "RigidBodySnapshot.Inertia",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvInertia",
              "anchor": "RigidBodySnapshot.InvInertia",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "RigidBodySnapshot.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "RigidBodySnapshot.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LinearDamping",
              "anchor": "RigidBodySnapshot.LinearDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngularDamping",
              "anchor": "RigidBodySnapshot.AngularDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityScale",
              "anchor": "RigidBodySnapshot.GravityScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityScaleSet",
              "anchor": "RigidBodySnapshot.GravityScaleSet",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Static",
              "anchor": "RigidBodySnapshot.Static",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "RigidBodySnapshot.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "RigidBodySnapshot.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ForceX",
              "anchor": "RigidBodySnapshot.ForceX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ForceY",
              "anchor": "RigidBodySnapshot.ForceY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Torque",
              "anchor": "RigidBodySnapshot.Torque",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Local",
              "anchor": "RigidBodySnapshot.Local",
              "kind": "field",
              "doc": "Local is the body's Polygon, Capsule, Segment or Chain shape relative to (X, Y) at Angle 0, which the solver rotates each step; nil for a Box or Circle."
            },
            {
              "name": "Synced",
              "anchor": "RigidBodySnapshot.Synced",
              "kind": "field",
              "doc": "Synced reports that Shape is the world shape last derived from Local at pose (SyncX, SyncY, SyncAngle), so it is not re-derived on the next step."
            },
            {
              "name": "SyncX",
              "anchor": "RigidBodySnapshot.SyncX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SyncY",
              "anchor": "RigidBodySnapshot.SyncY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SyncAngle",
              "anchor": "RigidBodySnapshot.SyncAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DerivedInertia",
              "anchor": "RigidBodySnapshot.DerivedInertia",
              "kind": "field",
              "doc": "DerivedInertia is the Inertia the body last derived from its shape."
            },
            {
              "name": "Bullet",
              "anchor": "RigidBodySnapshot.Bullet",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sleeping",
              "anchor": "RigidBodySnapshot.Sleeping",
              "kind": "field",
              "doc": "Sleeping reports that the body rests in a sleeping island; SleepEnv is the gravity, damping and fluid it fell asleep in."
            },
            {
              "name": "SleepEnv",
              "anchor": "RigidBodySnapshot.SleepEnv",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SleepTime",
              "anchor": "RigidBodySnapshot.SleepTime",
              "kind": "field",
              "doc": "SleepTime is how long, in seconds, the body has moved slower than the sleep thresholds."
            },
            {
              "name": "RestValid",
              "anchor": "RigidBodySnapshot.RestValid",
              "kind": "field",
              "doc": "RestValid reports that (RestX, RestY, RestAngle) is the pose the body ended its last step with, which tells the next step whether it was moved by hand."
            },
            {
              "name": "RestX",
              "anchor": "RigidBodySnapshot.RestX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestY",
              "anchor": "RigidBodySnapshot.RestY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestAngle",
              "anchor": "RigidBodySnapshot.RestAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kinematic",
              "anchor": "RigidBodySnapshot.Kinematic",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sensor",
              "anchor": "RigidBodySnapshot.Sensor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetPending",
              "anchor": "RigidBodySnapshot.TargetPending",
              "kind": "field",
              "doc": "TargetPending reports a pose (TargetX, TargetY, TargetAngle) that SetTargetPose asked the next Step to reach."
            },
            {
              "name": "TargetX",
              "anchor": "RigidBodySnapshot.TargetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetY",
              "anchor": "RigidBodySnapshot.TargetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetAngle",
              "anchor": "RigidBodySnapshot.TargetAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetDriven",
              "anchor": "RigidBodySnapshot.TargetDriven",
              "kind": "field",
              "doc": "TargetDriven reports that the last Step moved the body to a target with velocity (TargetVX, TargetVY, TargetAngularVel), which the next Step stops unless a new target is set."
            },
            {
              "name": "TargetVX",
              "anchor": "RigidBodySnapshot.TargetVX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetVY",
              "anchor": "RigidBodySnapshot.TargetVY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetAngularVel",
              "anchor": "RigidBodySnapshot.TargetAngularVel",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RigidContactPointSnapshot",
          "anchor": "RigidContactPointSnapshot",
          "decl": "type RigidContactPointSnapshot struct {\n\t// Feature names the pair of shape features in contact.\n\tFeature        uint32  `json:\"feature\"`\n\tNormalImpulse  float64 `json:\"normalImpulse\"`\n\tTangentImpulse float64 `json:\"tangentImpulse\"`\n}",
          "doc": "RigidContactPointSnapshot captures the impulses one contact point ended a step with, which warm-start the next step.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 177,
          "members": [
            {
              "name": "Feature",
              "anchor": "RigidContactPointSnapshot.Feature",
              "kind": "field",
              "doc": "Feature names the pair of shape features in contact."
            },
            {
              "name": "NormalImpulse",
              "anchor": "RigidContactPointSnapshot.NormalImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TangentImpulse",
              "anchor": "RigidContactPointSnapshot.TangentImpulse",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RigidContactSnapshot",
          "anchor": "RigidContactSnapshot",
          "decl": "type RigidContactSnapshot struct {\n\tBodyAIndex int                         `json:\"bodyAIndex\"`\n\tBodyBIndex int                         `json:\"bodyBIndex\"`\n\tTile       bool                        `json:\"tile,omitempty\"`\n\tSub        int                         `json:\"sub,omitempty\"`\n\tPoints     []RigidContactPointSnapshot `json:\"points,omitempty\"`\n}",
          "doc": "RigidContactSnapshot captures one cached contact manifold of a RigidWorld: the pair of bodies, as indices into RigidWorldSnapshot.Bodies, the manifold's index within the pair (the chain segment against a Chain, 0 otherwise) and its points. A contact with the world's Tiles has Tile set, BodyBIndex -1 and the tile's row*cols + col in Sub.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 185,
          "members": [
            {
              "name": "BodyAIndex",
              "anchor": "RigidContactSnapshot.BodyAIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyBIndex",
              "anchor": "RigidContactSnapshot.BodyBIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tile",
              "anchor": "RigidContactSnapshot.Tile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sub",
              "anchor": "RigidContactSnapshot.Sub",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "RigidContactSnapshot.Points",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RigidJointBreakEventSnapshot",
          "anchor": "RigidJointBreakEventSnapshot",
          "decl": "type RigidJointBreakEventSnapshot struct {\n\tJoint      *RigidJointSnapshot `json:\"joint,omitempty\"`\n\tBodyAIndex int                 `json:\"bodyAIndex\"`\n\tBodyBIndex int                 `json:\"bodyBIndex\"`\n\tDetachedA  *RigidBodySnapshot  `json:\"detachedA,omitempty\"`\n\tDetachedB  *RigidBodySnapshot  `json:\"detachedB,omitempty\"`\n\tForceX     float32             `json:\"forceX\"`\n\tForceY     float32             `json:\"forceY\"`\n\tTorque     float32             `json:\"torque\"`\n}",
          "doc": "RigidJointBreakEventSnapshot captures one JointBreakEvent from the most recent RigidWorld.Step.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 306,
          "members": [
            {
              "name": "Joint",
              "anchor": "RigidJointBreakEventSnapshot.Joint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyAIndex",
              "anchor": "RigidJointBreakEventSnapshot.BodyAIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyBIndex",
              "anchor": "RigidJointBreakEventSnapshot.BodyBIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DetachedA",
              "anchor": "RigidJointBreakEventSnapshot.DetachedA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DetachedB",
              "anchor": "RigidJointBreakEventSnapshot.DetachedB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ForceX",
              "anchor": "RigidJointBreakEventSnapshot.ForceX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ForceY",
              "anchor": "RigidJointBreakEventSnapshot.ForceY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Torque",
              "anchor": "RigidJointBreakEventSnapshot.Torque",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RigidJointSnapshot",
          "anchor": "RigidJointSnapshot",
          "decl": "type RigidJointSnapshot struct {\n\tKind             string             `json:\"kind\"` // \"distance\", \"spring\", \"revolute\", \"prismatic\", \"weld\", \"wheel\", \"mouse\"\n\tBodyAIndex       int                `json:\"bodyAIndex\"`\n\tBodyBIndex       int                `json:\"bodyBIndex\"`\n\tDetachedA        *RigidBodySnapshot `json:\"detachedA,omitempty\"`\n\tDetachedB        *RigidBodySnapshot `json:\"detachedB,omitempty\"`\n\tAnchorAX         float32            `json:\"anchorAX\"`\n\tAnchorAY         float32            `json:\"anchorAY\"`\n\tAnchorBX         float32            `json:\"anchorBX\"`\n\tAnchorBY         float32            `json:\"anchorBY\"`\n\tLocalAxisAX      float32            `json:\"localAxisAX,omitempty\"`\n\tLocalAxisAY      float32            `json:\"localAxisAY,omitempty\"`\n\tTargetX          float32            `json:\"targetX,omitempty\"`\n\tTargetY          float32            `json:\"targetY,omitempty\"`\n\tLength           float32            `json:\"length,omitempty\"`\n\tMinLength        float32            `json:\"minLength,omitempty\"`\n\tMaxLength        float32            `json:\"maxLength,omitempty\"`\n\tMaxOnly          bool               `json:\"maxOnly,omitempty\"`\n\tRestLength       float32            `json:\"restLength,omitempty\"`\n\tReferenceAngle   float32            `json:\"referenceAngle,omitempty\"`\n\tEnableLimit      bool               `json:\"enableLimit,omitempty\"`\n\tLowerAngle       float32            `json:\"lowerAngle,omitempty\"`\n\tUpperAngle       float32            `json:\"upperAngle,omitempty\"`\n\tLowerTranslation float32            `json:\"lowerTranslation,omitempty\"`\n\tUpperTranslation float32            `json:\"upperTranslation,omitempty\"`\n\tEnableMotor      bool               `json:\"enableMotor,omitempty\"`\n\tMotorSpeed       float32            `json:\"motorSpeed,omitempty\"`\n\tMaxMotorTorque   float32            `json:\"maxMotorTorque,omitempty\"`\n\tMaxMotorForce    float32            `json:\"maxMotorForce,omitempty\"`\n\tMaxForce         float32            `json:\"maxForce,omitempty\"`\n\tFrequencyHz      float32            `json:\"frequencyHz,omitempty\"`\n\tDampingRatio     float32            `json:\"dampingRatio,omitempty\"`\n\tStiffness        float32            `json:\"stiffness,omitempty\"`\n\tCompliance       float32            `json:\"compliance,omitempty\"`\n\tDamping          float32            `json:\"damping,omitempty\"`\n\tBreakForce       float32            `json:\"breakForce,omitempty\"`\n\tBreakTorque      float32            `json:\"breakTorque,omitempty\"`\n\tCollideConnected bool               `json:\"collideConnected,omitempty\"`\n\tStepImpulseX     float64            `json:\"stepImpulseX,omitempty\"`\n\tStepImpulseY     float64            `json:\"stepImpulseY,omitempty\"`\n\tStepAngImpulse   float64            `json:\"stepAngImpulse,omitempty\"`\n\tLastDt           float64            `json:\"lastDt,omitempty\"`\n\tBroken           bool               `json:\"broken,omitempty\"`\n\tInitialized      bool               `json:\"initialized,omitempty\"`\n\tActive           bool               `json:\"active,omitempty\"`\n\tSoft             bool               `json:\"soft,omitempty\"`\n\tRotLocked        bool               `json:\"rotLocked,omitempty\"`\n\tSpringActive     bool               `json:\"springActive,omitempty\"`\n\tDt               float64            `json:\"dt,omitempty\"`\n\tUX               float64            `json:\"ux,omitempty\"`\n\tUY               float64            `json:\"uy,omitempty\"`\n\tAX               float64            `json:\"ax,omitempty\"`\n\tAY               float64            `json:\"ay,omitempty\"`\n\tPX               float64            `json:\"px,omitempty\"`\n\tPY               float64            `json:\"py,omitempty\"`\n\tRAX              float64            `json:\"rAx,omitempty\"`\n\tRAY              float64            `json:\"rAy,omitempty\"`\n\tRBX              float64            `json:\"rBx,omitempty\"`\n\tRBY              float64            `json:\"rBy,omitempty\"`\n\tS1               float64            `json:\"s1,omitempty\"`\n\tS2               float64            `json:\"s2,omitempty\"`\n\tA1               float64            `json:\"a1,omitempty\"`\n\tA2               float64            `json:\"a2,omitempty\"`\n\tEffMass          float64            `json:\"effMass,omitempty\"`\n\tPerpMass         float64            `json:\"perpMass,omitempty\"`\n\tAxisMass         float64            `json:\"axisMass,omitempty\"`\n\tSpringMass       float64            `json:\"springMass,omitempty\"`\n\tMotorMass        float64            `json:\"motorMass,omitempty\"`\n\tM11              float64            `json:\"m11,omitempty\"`\n\tM12              float64            `json:\"m12,omitempty\"`\n\tM22              float64            `json:\"m22,omitempty\"`\n\tKA               float64            `json:\"kA,omitempty\"`\n\tKB               float64            `json:\"kB,omitempty\"`\n\tKC               float64            `json:\"kC,omitempty\"`\n\tKD               float64            `json:\"kD,omitempty\"`\n\tKE               float64            `json:\"kE,omitempty\"`\n\tKF               float64            `json:\"kF,omitempty\"`\n\tGamma            float64            `json:\"gamma,omitempty\"`\n\tGammaAng         float64            `json:\"gammaAng,omitempty\"`\n\tBias             float64            `json:\"bias,omitempty\"`\n\tBiasX            float64            `json:\"biasX,omitempty\"`\n\tBiasY            float64            `json:\"biasY,omitempty\"`\n\tBiasAng          float64            `json:\"biasAng,omitempty\"`\n\tAccImpulse       float64            `json:\"accImpulse,omitempty\"`\n\tImpulseX         float64            `json:\"impulseX,omitempty\"`\n\tImpulseY         float64            `json:\"impulseY,omitempty\"`\n\tAngImpulse       float64            `json:\"angImpulse,omitempty\"`\n\tSpringImpulse    float64            `json:\"springImpulse,omitempty\"`\n\tMotorImpulse     float64            `json:\"motorImpulse,omitempty\"`\n\tLimitImpulse     float64            `json:\"limitImpulse,omitempty\"`\n\tMode             int                `json:\"mode,omitempty\"`\n\tLimitState       int                `json:\"limitState,omitempty\"`\n\tTargetLen        float64            `json:\"targetLen,omitempty\"`\n}",
          "doc": "RigidJointSnapshot captures the complete public and private solver state of one RigidWorld Joint.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 210,
          "members": [
            {
              "name": "Kind",
              "anchor": "RigidJointSnapshot.Kind",
              "kind": "field",
              "doc": "\"distance\", \"spring\", \"revolute\", \"prismatic\", \"weld\", \"wheel\", \"mouse\""
            },
            {
              "name": "BodyAIndex",
              "anchor": "RigidJointSnapshot.BodyAIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyBIndex",
              "anchor": "RigidJointSnapshot.BodyBIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DetachedA",
              "anchor": "RigidJointSnapshot.DetachedA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DetachedB",
              "anchor": "RigidJointSnapshot.DetachedB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorAX",
              "anchor": "RigidJointSnapshot.AnchorAX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorAY",
              "anchor": "RigidJointSnapshot.AnchorAY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorBX",
              "anchor": "RigidJointSnapshot.AnchorBX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorBY",
              "anchor": "RigidJointSnapshot.AnchorBY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAxisAX",
              "anchor": "RigidJointSnapshot.LocalAxisAX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAxisAY",
              "anchor": "RigidJointSnapshot.LocalAxisAY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetX",
              "anchor": "RigidJointSnapshot.TargetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetY",
              "anchor": "RigidJointSnapshot.TargetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Length",
              "anchor": "RigidJointSnapshot.Length",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinLength",
              "anchor": "RigidJointSnapshot.MinLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxLength",
              "anchor": "RigidJointSnapshot.MaxLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxOnly",
              "anchor": "RigidJointSnapshot.MaxOnly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestLength",
              "anchor": "RigidJointSnapshot.RestLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReferenceAngle",
              "anchor": "RigidJointSnapshot.ReferenceAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableLimit",
              "anchor": "RigidJointSnapshot.EnableLimit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LowerAngle",
              "anchor": "RigidJointSnapshot.LowerAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UpperAngle",
              "anchor": "RigidJointSnapshot.UpperAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LowerTranslation",
              "anchor": "RigidJointSnapshot.LowerTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UpperTranslation",
              "anchor": "RigidJointSnapshot.UpperTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableMotor",
              "anchor": "RigidJointSnapshot.EnableMotor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorSpeed",
              "anchor": "RigidJointSnapshot.MotorSpeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxMotorTorque",
              "anchor": "RigidJointSnapshot.MaxMotorTorque",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxMotorForce",
              "anchor": "RigidJointSnapshot.MaxMotorForce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxForce",
              "anchor": "RigidJointSnapshot.MaxForce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrequencyHz",
              "anchor": "RigidJointSnapshot.FrequencyHz",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DampingRatio",
              "anchor": "RigidJointSnapshot.DampingRatio",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stiffness",
              "anchor": "RigidJointSnapshot.Stiffness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "RigidJointSnapshot.Compliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Damping",
              "anchor": "RigidJointSnapshot.Damping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BreakForce",
              "anchor": "RigidJointSnapshot.BreakForce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BreakTorque",
              "anchor": "RigidJointSnapshot.BreakTorque",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CollideConnected",
              "anchor": "RigidJointSnapshot.CollideConnected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepImpulseX",
              "anchor": "RigidJointSnapshot.StepImpulseX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepImpulseY",
              "anchor": "RigidJointSnapshot.StepImpulseY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepAngImpulse",
              "anchor": "RigidJointSnapshot.StepAngImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastDt",
              "anchor": "RigidJointSnapshot.LastDt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Broken",
              "anchor": "RigidJointSnapshot.Broken",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Initialized",
              "anchor": "RigidJointSnapshot.Initialized",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Active",
              "anchor": "RigidJointSnapshot.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Soft",
              "anchor": "RigidJointSnapshot.Soft",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotLocked",
              "anchor": "RigidJointSnapshot.RotLocked",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpringActive",
              "anchor": "RigidJointSnapshot.SpringActive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dt",
              "anchor": "RigidJointSnapshot.Dt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UX",
              "anchor": "RigidJointSnapshot.UX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UY",
              "anchor": "RigidJointSnapshot.UY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AX",
              "anchor": "RigidJointSnapshot.AX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AY",
              "anchor": "RigidJointSnapshot.AY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PX",
              "anchor": "RigidJointSnapshot.PX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PY",
              "anchor": "RigidJointSnapshot.PY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RAX",
              "anchor": "RigidJointSnapshot.RAX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RAY",
              "anchor": "RigidJointSnapshot.RAY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RBX",
              "anchor": "RigidJointSnapshot.RBX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RBY",
              "anchor": "RigidJointSnapshot.RBY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "S1",
              "anchor": "RigidJointSnapshot.S1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "S2",
              "anchor": "RigidJointSnapshot.S2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "A1",
              "anchor": "RigidJointSnapshot.A1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "A2",
              "anchor": "RigidJointSnapshot.A2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EffMass",
              "anchor": "RigidJointSnapshot.EffMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PerpMass",
              "anchor": "RigidJointSnapshot.PerpMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AxisMass",
              "anchor": "RigidJointSnapshot.AxisMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpringMass",
              "anchor": "RigidJointSnapshot.SpringMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorMass",
              "anchor": "RigidJointSnapshot.MotorMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "M11",
              "anchor": "RigidJointSnapshot.M11",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "M12",
              "anchor": "RigidJointSnapshot.M12",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "M22",
              "anchor": "RigidJointSnapshot.M22",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KA",
              "anchor": "RigidJointSnapshot.KA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KB",
              "anchor": "RigidJointSnapshot.KB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KC",
              "anchor": "RigidJointSnapshot.KC",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KD",
              "anchor": "RigidJointSnapshot.KD",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KE",
              "anchor": "RigidJointSnapshot.KE",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KF",
              "anchor": "RigidJointSnapshot.KF",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Gamma",
              "anchor": "RigidJointSnapshot.Gamma",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GammaAng",
              "anchor": "RigidJointSnapshot.GammaAng",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bias",
              "anchor": "RigidJointSnapshot.Bias",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BiasX",
              "anchor": "RigidJointSnapshot.BiasX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BiasY",
              "anchor": "RigidJointSnapshot.BiasY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BiasAng",
              "anchor": "RigidJointSnapshot.BiasAng",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AccImpulse",
              "anchor": "RigidJointSnapshot.AccImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImpulseX",
              "anchor": "RigidJointSnapshot.ImpulseX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImpulseY",
              "anchor": "RigidJointSnapshot.ImpulseY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngImpulse",
              "anchor": "RigidJointSnapshot.AngImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpringImpulse",
              "anchor": "RigidJointSnapshot.SpringImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorImpulse",
              "anchor": "RigidJointSnapshot.MotorImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LimitImpulse",
              "anchor": "RigidJointSnapshot.LimitImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "RigidJointSnapshot.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LimitState",
              "anchor": "RigidJointSnapshot.LimitState",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetLen",
              "anchor": "RigidJointSnapshot.TargetLen",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RigidSenseSnapshot",
          "anchor": "RigidSenseSnapshot",
          "decl": "type RigidSenseSnapshot struct {\n\tSensorIndex  int `json:\"sensorIndex\"`\n\tVisitorIndex int `json:\"visitorIndex\"`\n}",
          "doc": "RigidSenseSnapshot captures one body overlapping a sensor, both as indices into RigidWorldSnapshot.Bodies.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 204,
          "members": [
            {
              "name": "SensorIndex",
              "anchor": "RigidSenseSnapshot.SensorIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VisitorIndex",
              "anchor": "RigidSenseSnapshot.VisitorIndex",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RigidTouchSnapshot",
          "anchor": "RigidTouchSnapshot",
          "decl": "type RigidTouchSnapshot struct {\n\tBodyAIndex int       `json:\"bodyAIndex\"`\n\tBodyBIndex int       `json:\"bodyBIndex\"`\n\tTile       bool      `json:\"tile,omitempty\"`\n\tCol        int       `json:\"col,omitempty\"`\n\tRow        int       `json:\"row,omitempty\"`\n\tTileFlags  TileFlags `json:\"tileFlags,omitempty\"`\n}",
          "doc": "RigidTouchSnapshot captures one contact a RigidWorld reported begun and not yet ended: two bodies, as indices into RigidWorldSnapshot.Bodies, or a body and the Tiles, with Tile set, BodyBIndex -1 and the last tile touched.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 194,
          "members": [
            {
              "name": "BodyAIndex",
              "anchor": "RigidTouchSnapshot.BodyAIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyBIndex",
              "anchor": "RigidTouchSnapshot.BodyBIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tile",
              "anchor": "RigidTouchSnapshot.Tile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Col",
              "anchor": "RigidTouchSnapshot.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "RigidTouchSnapshot.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileFlags",
              "anchor": "RigidTouchSnapshot.TileFlags",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RigidWorld",
          "anchor": "RigidWorld",
          "decl": "type RigidWorld struct {\n\tBodies           []*RigidBody\n\tJoints           []Joint\n\tTriggers         []*Trigger\n\tGravityX         float32\n\tGravityY         float32\n\tSolverIterations int\n\t// DisableSleep keeps every body awake. Step wakes bodies that were sleeping when it is set.\n\tDisableSleep bool\n\t// SleepLinearThreshold is the speed in pixels per second below which a body counts as resting; zero, a negative value, NaN or an infinity means DefaultSleepLinearThreshold.\n\tSleepLinearThreshold float32\n\t// SleepAngularThreshold is the angular speed in radians per second below which a body counts as resting; zero, a negative value, NaN or an infinity means DefaultSleepAngularThreshold.\n\tSleepAngularThreshold float32\n\t// TimeToSleep is how many seconds every body of an island must rest before the island sleeps; zero, a negative value, NaN or an infinity means DefaultTimeToSleep.\n\tTimeToSleep float32\n\t// OnJointBreak is invoked deterministically for each joint broken during Step, in joint insertion order.\n\tOnJointBreak func(JointBreakEvent)\n\t// OnContact is invoked at the end of Step for each of ContactEvents, in order.\n\tOnContact func(ContactEvent)\n\t// OnSensor is invoked at the end of Step for each of SensorEvents, in order.\n\tOnSensor func(SensorEvent)\n\n\t// Tiles is an optional tile grid whose TileSolid cells collide with the dynamic bodies from every side and whose TileOneWay cells hold them up from above only. A tile's sides that a neighbouring solid tile covers never push a body, so bodies slide and roll across the seams of a tiled floor or wall. Tiles collide by TileLayer and TileMask like a body, and with TileFriction and TileRestitution.\n\tTiles TileGrid\n\t// TileLayer and TileMask filter which bodies collide with Tiles, as a body's Layer and Mask do (zero means LayerAll).\n\tTileLayer LayerMask\n\tTileMask  LayerMask\n\t// TileFriction is the friction of Tiles, combined with a body's as two bodies' are; zero means DefaultTileFriction and a negative value makes tiles frictionless.\n\tTileFriction float32\n\t// TileRestitution is the restitution of Tiles, combined with a body's as two bodies' are.\n\tTileRestitution float32\n\t// contains filtered or unexported fields\n}",
          "doc": "RigidWorld simulates 2D rigid bodies and joints with deterministic symplectic Euler integration, a sort-and-sweep broadphase, warm-started sequential impulse contact resolution with friction, positional slop correction, island sleeping and continuous collision of fast bodies against static ones.\n\nA dynamic body that moves slower than SleepLinearThreshold and turns slower than SleepAngularThreshold for TimeToSleep seconds is ready to sleep, and the island of bodies connected to it by contacts and joints falls asleep together once every body in it is ready. A sleeping body costs no integration or solving; see RigidBody.Sleeping for what wakes it.\n\nStatic, kinematic (RigidBody.Kinematic) and dynamic bodies collide with each other, and dynamic ones with Tiles; sensors (RigidBody.Sensor) only detect overlaps. After each Step, ContactEvents and SensorEvents list the contacts and overlaps that began or ended, and Raycast, RaycastFirst, QueryPoint, QueryOverlap and ShapeCast query the bodies and tiles.\n",
          "file": "pkg/physics/rigid.go",
          "line": 448,
          "members": [
            {
              "name": "Bodies",
              "anchor": "RigidWorld.Bodies",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Joints",
              "anchor": "RigidWorld.Joints",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triggers",
              "anchor": "RigidWorld.Triggers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityX",
              "anchor": "RigidWorld.GravityX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityY",
              "anchor": "RigidWorld.GravityY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SolverIterations",
              "anchor": "RigidWorld.SolverIterations",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DisableSleep",
              "anchor": "RigidWorld.DisableSleep",
              "kind": "field",
              "doc": "DisableSleep keeps every body awake. Step wakes bodies that were sleeping when it is set."
            },
            {
              "name": "SleepLinearThreshold",
              "anchor": "RigidWorld.SleepLinearThreshold",
              "kind": "field",
              "doc": "SleepLinearThreshold is the speed in pixels per second below which a body counts as resting; zero, a negative value, NaN or an infinity means DefaultSleepLinearThreshold."
            },
            {
              "name": "SleepAngularThreshold",
              "anchor": "RigidWorld.SleepAngularThreshold",
              "kind": "field",
              "doc": "SleepAngularThreshold is the angular speed in radians per second below which a body counts as resting; zero, a negative value, NaN or an infinity means DefaultSleepAngularThreshold."
            },
            {
              "name": "TimeToSleep",
              "anchor": "RigidWorld.TimeToSleep",
              "kind": "field",
              "doc": "TimeToSleep is how many seconds every body of an island must rest before the island sleeps; zero, a negative value, NaN or an infinity means DefaultTimeToSleep."
            },
            {
              "name": "OnJointBreak",
              "anchor": "RigidWorld.OnJointBreak",
              "kind": "field",
              "doc": "OnJointBreak is invoked deterministically for each joint broken during Step, in joint insertion order."
            },
            {
              "name": "OnContact",
              "anchor": "RigidWorld.OnContact",
              "kind": "field",
              "doc": "OnContact is invoked at the end of Step for each of ContactEvents, in order."
            },
            {
              "name": "OnSensor",
              "anchor": "RigidWorld.OnSensor",
              "kind": "field",
              "doc": "OnSensor is invoked at the end of Step for each of SensorEvents, in order."
            },
            {
              "name": "Tiles",
              "anchor": "RigidWorld.Tiles",
              "kind": "field",
              "doc": "Tiles is an optional tile grid whose TileSolid cells collide with the dynamic bodies from every side and whose TileOneWay cells hold them up from above only. A tile's sides that a neighbouring solid tile covers never push a body, so bodies slide and roll across the seams of a tiled floor or wall. Tiles collide by TileLayer and TileMask like a body, and with TileFriction and TileRestitution."
            },
            {
              "name": "TileLayer",
              "anchor": "RigidWorld.TileLayer",
              "kind": "field",
              "doc": "TileLayer and TileMask filter which bodies collide with Tiles, as a body's Layer and Mask do (zero means LayerAll)."
            },
            {
              "name": "TileMask",
              "anchor": "RigidWorld.TileMask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileFriction",
              "anchor": "RigidWorld.TileFriction",
              "kind": "field",
              "doc": "TileFriction is the friction of Tiles, combined with a body's as two bodies' are; zero means DefaultTileFriction and a negative value makes tiles frictionless."
            },
            {
              "name": "TileRestitution",
              "anchor": "RigidWorld.TileRestitution",
              "kind": "field",
              "doc": "TileRestitution is the restitution of Tiles, combined with a body's as two bodies' are."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AddBody",
              "anchor": "RigidWorld.AddBody",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) AddBody(bodies ...*RigidBody)",
              "doc": "AddBody appends non-nil rigid bodies to w.Bodies.\n",
              "file": "pkg/physics/rigid.go",
              "line": 512
            },
            {
              "name": "AddJoint",
              "anchor": "RigidWorld.AddJoint",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) AddJoint(joints ...Joint)",
              "doc": "AddJoint appends non-nil joints to w.Joints and wakes any sleeping bodies they connect.\n",
              "file": "pkg/physics/rigid.go",
              "line": 539
            },
            {
              "name": "AddTrigger",
              "anchor": "RigidWorld.AddTrigger",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) AddTrigger(triggers ...*Trigger)",
              "doc": "AddTrigger appends non-nil triggers to w.Triggers so their Area settings\napply to overlapping RigidBodies during Step.\n",
              "file": "pkg/physics/area.go",
              "line": 176
            },
            {
              "name": "AreaEffectAtShape",
              "anchor": "RigidWorld.AreaEffectAtShape",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) AreaEffectAtShape(shape Shape, layer, mask LayerMask) AreaEffect",
              "doc": "AreaEffectAtShape resolves all active Triggers in w overlapping shape (filtered\nby layer and mask) using w.GravityX/GravityY as the base gravity.\n",
              "file": "pkg/physics/area.go",
              "line": 214
            },
            {
              "name": "Checksum",
              "anchor": "RigidWorld.Checksum",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) Checksum() uint64",
              "doc": "Checksum returns a deterministic 64-bit FNV-1a hash of w's complete state,\nincluding private body forces/torques and joint solver state.\n",
              "file": "pkg/physics/snapshot.go",
              "line": 1714
            },
            {
              "name": "ContactEvents",
              "anchor": "RigidWorld.ContactEvents",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) ContactEvents() []ContactEvent",
              "doc": "ContactEvents returns the contacts that began or ended in the most recent Step, in deterministic order: the ContactBegin events in the order the step found the contacts (pairs of bodies in RigidWorld.Bodies order, then each body with Tiles), then the ContactEnd events in the order the previous Step listed those contacts, then, in RigidWorld.Bodies order, a ContactBegin for each fast body continuous collision stopped at a surface it was not touching, which carries the speed it struck at. A contact the step did not find carries over while its bodies may still collide and are both asleep or not dynamic, or are still within 0.25 px of each other; it ends once they are farther apart, a body leaves RigidWorld.Bodies or becomes a sensor, or both become static or kinematic. The slice is reused by the next Step.\n",
              "file": "pkg/physics/rigid_events.go",
              "line": 51
            },
            {
              "name": "GravityAt",
              "anchor": "RigidWorld.GravityAt",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) GravityAt(x, y float32) (gx, gy float32)",
              "doc": "GravityAt returns the effective gravity acceleration at world point (x, y)\nin w, combining w.GravityX/GravityY with any overlapping active Triggers.\n",
              "file": "pkg/physics/area.go",
              "line": 204
            },
            {
              "name": "JointBreakEvents",
              "anchor": "RigidWorld.JointBreakEvents",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) JointBreakEvents() []JointBreakEvent",
              "doc": "JointBreakEvents returns the deterministic slice of JointBreakEvents produced\nby the most recent RigidWorld.Step, in joint insertion order.\n",
              "file": "pkg/physics/rigid.go",
              "line": 504
            },
            {
              "name": "QueryOverlap",
              "anchor": "RigidWorld.QueryOverlap",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) QueryOverlap(shape Shape, mask QueryMask, layerMask LayerMask) []OverlapHit",
              "doc": "QueryOverlap returns the bodies and tiles of w matching mask and layerMask that overlap shape, in deterministic order: bodies in RigidWorld.Bodies order, then tiles in row-major order. Each hit's Contact normal points from the hit toward shape.\n",
              "file": "pkg/physics/rigid_query.go",
              "line": 64
            },
            {
              "name": "QueryPoint",
              "anchor": "RigidWorld.QueryPoint",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) QueryPoint(x, y float32, mask QueryMask, layerMask LayerMask) []*RigidBody",
              "doc": "QueryPoint returns the bodies of w matching mask and layerMask whose shape contains (x, y), in RigidWorld.Bodies order. Tiles are not bodies, so QueryTiles and QueryOneWay select nothing here; read a tile with TileFlagsAt.\n",
              "file": "pkg/physics/rigid_query.go",
              "line": 46
            },
            {
              "name": "Raycast",
              "anchor": "RigidWorld.Raycast",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) Raycast(from, to core.Point, mask QueryMask, layerMask LayerMask) []RaycastHit",
              "doc": "Raycast casts the segment from from to to against the bodies and tiles of w matching mask and layerMask and returns every hit sorted by ascending T in [0, 1]. Equal distances keep bodies, in RigidWorld.Bodies order, before tiles, in the order the ray crosses them. A segment with an end that is not finite hits nothing.\n",
              "file": "pkg/physics/rigid_query.go",
              "line": 85
            },
            {
              "name": "RaycastFirst",
              "anchor": "RigidWorld.RaycastFirst",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) RaycastFirst(from, to core.Point, mask QueryMask, layerMask LayerMask) (RaycastHit, bool)",
              "doc": "RaycastFirst returns the nearest hit along the segment from from to to among the bodies and tiles of w matching mask and layerMask, with its point and surface normal. Of hits at the same distance, the body first in RigidWorld.Bodies wins, and a body wins over a tile. A segment with an end that is not finite hits nothing.\n",
              "file": "pkg/physics/rigid_query.go",
              "line": 115
            },
            {
              "name": "RemoveBody",
              "anchor": "RigidWorld.RemoveBody",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) RemoveBody(b *RigidBody) bool",
              "doc": "RemoveBody deletes the first occurrence of b from w.Bodies, preserving the order of remaining bodies, and wakes any sleeping bodies that touched or were jointed to b.\n",
              "file": "pkg/physics/rigid.go",
              "line": 525
            },
            {
              "name": "RemoveJoint",
              "anchor": "RigidWorld.RemoveJoint",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) RemoveJoint(j Joint) bool",
              "doc": "RemoveJoint deletes the first occurrence of j from w.Joints, preserving the order of remaining joints, and wakes any sleeping bodies it connected.\n",
              "file": "pkg/physics/rigid.go",
              "line": 551
            },
            {
              "name": "RemoveTrigger",
              "anchor": "RigidWorld.RemoveTrigger",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) RemoveTrigger(tr *Trigger) bool",
              "doc": "RemoveTrigger deletes the first occurrence of tr from w.Triggers, preserving\nthe order of remaining triggers.\n",
              "file": "pkg/physics/area.go",
              "line": 189
            },
            {
              "name": "Restore",
              "anchor": "RigidWorld.Restore",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) Restore(snap RigidWorldSnapshot) error",
              "doc": "Restore replaces w's state from snap. Existing *RigidBody, Joint, and\n*Trigger pointers are reused in place when possible so caller handles,\nUserData, and callbacks stay valid across rollback restores.\n",
              "file": "pkg/physics/snapshot.go",
              "line": 1500
            },
            {
              "name": "Save",
              "anchor": "RigidWorld.Save",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) Save() RigidWorldSnapshot",
              "doc": "Save captures a deep, deterministic, JSON-serializable snapshot of w.\n",
              "file": "pkg/physics/snapshot.go",
              "line": 792
            },
            {
              "name": "SensorEvents",
              "anchor": "RigidWorld.SensorEvents",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) SensorEvents() []SensorEvent",
              "doc": "SensorEvents returns the sensor overlaps that began or ended in the most recent Step, tested at the bodies' poses at the end of the step: the ContactBegin events in pair order (by RigidWorld.Bodies index), then the ContactEnd events in the order the previous Step listed those overlaps. The slice is reused by the next Step.\n",
              "file": "pkg/physics/rigid_events.go",
              "line": 59
            },
            {
              "name": "ShapeCast",
              "anchor": "RigidWorld.ShapeCast",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) ShapeCast(shape Shape, dx, dy float32, layerMask LayerMask) (ShapeCastHit, bool)",
              "doc": "ShapeCast sweeps shape by (dx, dy) against the bodies that are not sensors and the tiles of w, bodies matching layerMask, and returns the earliest hit. A zero layerMask defaults to LayerAll. Ties break in RigidWorld.Bodies order, and a body wins over a tile.\n",
              "file": "pkg/physics/shapecast.go",
              "line": 178
            },
            {
              "name": "ShapeCastAll",
              "anchor": "RigidWorld.ShapeCastAll",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) ShapeCastAll(shape Shape, dx, dy float32, layerMask LayerMask) []ShapeCastHit",
              "doc": "ShapeCastAll sweeps shape by (dx, dy) against the bodies that are not sensors and the tiles of w, bodies matching layerMask, and returns all hits sorted by ascending Fraction in [0, 1]. A zero layerMask defaults to LayerAll. Equal fractions keep bodies, in RigidWorld.Bodies order, before tiles, in row-major order.\n",
              "file": "pkg/physics/shapecast.go",
              "line": 183
            },
            {
              "name": "ShapeCastAllWith",
              "anchor": "RigidWorld.ShapeCastAllWith",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) ShapeCastAllWith(shape Shape, dx, dy float32, opts ShapeCastOptions) []ShapeCastHit",
              "doc": "ShapeCastAllWith sweeps shape by (dx, dy) against the bodies and tiles of w matching opts, selected as ShapeCastWith selects them, and returns all hits sorted by ascending Fraction in [0, 1]. Equal fractions keep bodies, in RigidWorld.Bodies order, before tiles, in row-major order.\n",
              "file": "pkg/physics/shapecast.go",
              "line": 225
            },
            {
              "name": "ShapeCastWith",
              "anchor": "RigidWorld.ShapeCastWith",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) ShapeCastWith(shape Shape, dx, dy float32, opts ShapeCastOptions) (ShapeCastHit, bool)",
              "doc": "ShapeCastWith sweeps shape by (dx, dy) against the bodies and tiles of w matching opts and returns the earliest hit. opts.QueryMask selects targets as RigidWorld's other queries do: QueryBodies the bodies that are not sensors, QuerySensors the sensors, and QueryTiles and QueryOneWay the tiles, with zero meaning QueryAll, which leaves sensors out. Ties break in RigidWorld.Bodies order, and a body wins over a tile.\n",
              "file": "pkg/physics/shapecast.go",
              "line": 188
            },
            {
              "name": "Step",
              "anchor": "RigidWorld.Step",
              "recv": "*RigidWorld",
              "decl": "func (w *RigidWorld) Step(dt time.Duration)",
              "doc": "Step advances all bodies and joints in w by dt using symplectic Euler integration, deterministic warm-started sequential impulse solving against other bodies and Tiles, continuous collision for fast bodies and positional slop correction, then puts resting islands to sleep and reports the contacts and sensor overlaps that began or ended (ContactEvents, SensorEvents).\n",
              "file": "pkg/physics/rigid.go",
              "line": 595
            }
          ]
        },
        {
          "name": "RigidWorldSnapshot",
          "anchor": "RigidWorldSnapshot",
          "decl": "type RigidWorldSnapshot struct {\n\tVersion               int                            `json:\"version\"`\n\tGravityX              float32                        `json:\"gravityX\"`\n\tGravityY              float32                        `json:\"gravityY\"`\n\tSolverIterations      int                            `json:\"solverIterations\"`\n\tDisableSleep          bool                           `json:\"disableSleep,omitempty\"`\n\tSleepLinearThreshold  float32                        `json:\"sleepLinearThreshold,omitempty\"`\n\tSleepAngularThreshold float32                        `json:\"sleepAngularThreshold,omitempty\"`\n\tTimeToSleep           float32                        `json:\"timeToSleep,omitempty\"`\n\tBodies                []RigidBodySnapshot            `json:\"bodies,omitempty\"`\n\tJoints                []RigidJointSnapshot           `json:\"joints,omitempty\"`\n\tJointBreakEvents      []RigidJointBreakEventSnapshot `json:\"jointBreakEvents,omitempty\"`\n\tTriggers              []TriggerSnapshot              `json:\"triggers,omitempty\"`\n\t// Contacts is the warm-start cache between bodies of Bodies, and LastDt the length in seconds of the step that filled it.\n\tContacts []RigidContactSnapshot `json:\"contacts,omitempty\"`\n\tLastDt   float64                `json:\"lastDt,omitempty\"`\n\t// Grid is the world's Tiles when they are a *Grid, with the settings they collide with. CustomTiles reports Tiles of another TileGrid type, which Save cannot capture: Restore keeps the caller's Tiles then, and clears them when neither is set, as for a world without Tiles or a version 1 snapshot.\n\tGrid            *GridSnapshot `json:\"grid,omitempty\"`\n\tCustomTiles     bool          `json:\"customTiles,omitempty\"`\n\tTileLayer       LayerMask     `json:\"tileLayer,omitempty\"`\n\tTileMask        LayerMask     `json:\"tileMask,omitempty\"`\n\tTileFriction    float32       `json:\"tileFriction,omitempty\"`\n\tTileRestitution float32       `json:\"tileRestitution,omitempty\"`\n\t// Touching and Sensing are the contacts and sensor overlaps the next Step compares its own with to report ContactEvents and SensorEvents. Entries with a body outside Bodies are not saved, so the end of such a contact is not reported after Restore.\n\tTouching []RigidTouchSnapshot `json:\"touching,omitempty\"`\n\tSensing  []RigidSenseSnapshot `json:\"sensing,omitempty\"`\n}",
          "doc": "RigidWorldSnapshot captures the complete deterministic state of a RigidWorld, including all rigid bodies (and pending forces/torques, sleep state and timers), joints and their private constraint state, joint-break events, the warm-start contact cache, area triggers, gravity, and solver and sleep configuration. It marshals cleanly with encoding/json.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 318,
          "members": [
            {
              "name": "Version",
              "anchor": "RigidWorldSnapshot.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityX",
              "anchor": "RigidWorldSnapshot.GravityX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityY",
              "anchor": "RigidWorldSnapshot.GravityY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SolverIterations",
              "anchor": "RigidWorldSnapshot.SolverIterations",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DisableSleep",
              "anchor": "RigidWorldSnapshot.DisableSleep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SleepLinearThreshold",
              "anchor": "RigidWorldSnapshot.SleepLinearThreshold",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SleepAngularThreshold",
              "anchor": "RigidWorldSnapshot.SleepAngularThreshold",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TimeToSleep",
              "anchor": "RigidWorldSnapshot.TimeToSleep",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bodies",
              "anchor": "RigidWorldSnapshot.Bodies",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Joints",
              "anchor": "RigidWorldSnapshot.Joints",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "JointBreakEvents",
              "anchor": "RigidWorldSnapshot.JointBreakEvents",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triggers",
              "anchor": "RigidWorldSnapshot.Triggers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Contacts",
              "anchor": "RigidWorldSnapshot.Contacts",
              "kind": "field",
              "doc": "Contacts is the warm-start cache between bodies of Bodies, and LastDt the length in seconds of the step that filled it."
            },
            {
              "name": "LastDt",
              "anchor": "RigidWorldSnapshot.LastDt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grid",
              "anchor": "RigidWorldSnapshot.Grid",
              "kind": "field",
              "doc": "Grid is the world's Tiles when they are a *Grid, with the settings they collide with. CustomTiles reports Tiles of another TileGrid type, which Save cannot capture: Restore keeps the caller's Tiles then, and clears them when neither is set, as for a world without Tiles or a version 1 snapshot."
            },
            {
              "name": "CustomTiles",
              "anchor": "RigidWorldSnapshot.CustomTiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayer",
              "anchor": "RigidWorldSnapshot.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileMask",
              "anchor": "RigidWorldSnapshot.TileMask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileFriction",
              "anchor": "RigidWorldSnapshot.TileFriction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileRestitution",
              "anchor": "RigidWorldSnapshot.TileRestitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Touching",
              "anchor": "RigidWorldSnapshot.Touching",
              "kind": "field",
              "doc": "Touching and Sensing are the contacts and sensor overlaps the next Step compares its own with to report ContactEvents and SensorEvents. Entries with a body outside Bodies are not saved, so the end of such a contact is not reported after Restore."
            },
            {
              "name": "Sensing",
              "anchor": "RigidWorldSnapshot.Sensing",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RopeConfig",
          "anchor": "RopeConfig",
          "decl": "type RopeConfig struct {\n\tStartX, StartY    float32\n\tEndX, EndY        float32\n\tSegments          int\n\tTotalMass         float32\n\tParticleRadius    float32\n\tCompliance        float32\n\tEnableBending     bool\n\tBendingCompliance float32\n\tPinStart          bool\n\tPinEnd            bool\n\tLayer             LayerMask\n\tMask              LayerMask\n\tFriction          float32\n}",
          "doc": "RopeConfig configures a 2D rope constructed by SoftWorld.AddRope.\n",
          "file": "pkg/physics/xpbd.go",
          "line": 450,
          "members": [
            {
              "name": "StartX",
              "anchor": "RopeConfig.StartX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartY",
              "anchor": "RopeConfig.StartY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EndX",
              "anchor": "RopeConfig.EndX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EndY",
              "anchor": "RopeConfig.EndY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Segments",
              "anchor": "RopeConfig.Segments",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalMass",
              "anchor": "RopeConfig.TotalMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParticleRadius",
              "anchor": "RopeConfig.ParticleRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "RopeConfig.Compliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableBending",
              "anchor": "RopeConfig.EnableBending",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BendingCompliance",
              "anchor": "RopeConfig.BendingCompliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PinStart",
              "anchor": "RopeConfig.PinStart",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PinEnd",
              "anchor": "RopeConfig.PinEnd",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "RopeConfig.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "RopeConfig.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "RopeConfig.Friction",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Segment",
          "anchor": "Segment",
          "decl": "type Segment struct {\n\tX1, Y1, X2, Y2 float32\n}",
          "doc": "Segment is a line segment from (X1, Y1) to (X2, Y2) with no thickness, for static ledges and walls. It collides with polygons, boxes, circles and capsules on both sides but never with another Segment or a Chain, as in Box2D. A segment of zero length is empty.\n",
          "file": "pkg/physics/shape_convex.go",
          "line": 217,
          "members": [
            {
              "name": "X1",
              "anchor": "Segment.X1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y1",
              "anchor": "Segment.Y1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X2",
              "anchor": "Segment.X2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y2",
              "anchor": "Segment.Y2",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Segment.Bounds",
              "recv": "Segment",
              "decl": "func (s Segment) Bounds() Box",
              "doc": "Bounds returns the axis-aligned Box spanning s; it has zero width or height when s is vertical or horizontal.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 225
            },
            {
              "name": "Empty",
              "anchor": "Segment.Empty",
              "recv": "Segment",
              "decl": "func (s Segment) Empty() bool",
              "doc": "Empty reports whether s has zero length.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 222
            },
            {
              "name": "Translated",
              "anchor": "Segment.Translated",
              "recv": "Segment",
              "decl": "func (s Segment) Translated(dx, dy float32) Segment",
              "doc": "Translated returns a copy of s shifted by (dx, dy).\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 235
            }
          ]
        },
        {
          "name": "SensorEvent",
          "anchor": "SensorEvent",
          "decl": "type SensorEvent struct {\n\tKind    ContactEventKind\n\tSensor  *RigidBody\n\tVisitor *RigidBody\n}",
          "doc": "SensorEvent reports that a body that is not a sensor began or ended overlapping a sensor in the last Step, or left RigidWorld.Bodies while overlapping it.\n",
          "file": "pkg/physics/rigid_events.go",
          "line": 44,
          "members": [
            {
              "name": "Kind",
              "anchor": "SensorEvent.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sensor",
              "anchor": "SensorEvent.Sensor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visitor",
              "anchor": "SensorEvent.Visitor",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Shape",
          "anchor": "Shape",
          "decl": "type Shape struct {\n\tKind    ShapeKind\n\tBox     Box\n\tCircle  Circle\n\tPolygon Polygon\n\tCapsule Capsule\n\tSegment Segment\n\tChain   *Chain\n}",
          "doc": "Shape holds one of Box, Circle, Polygon, Capsule, Segment or Chain, selected by Kind, so bodies, triggers and queries handle every shape uniformly. Shapes are comparable with ==; a chain compares by its pointer.\n",
          "file": "pkg/physics/shape.go",
          "line": 95,
          "members": [
            {
              "name": "Kind",
              "anchor": "Shape.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Box",
              "anchor": "Shape.Box",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Circle",
              "anchor": "Shape.Circle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Polygon",
              "anchor": "Shape.Polygon",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Capsule",
              "anchor": "Shape.Capsule",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Segment",
              "anchor": "Shape.Segment",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Chain",
              "anchor": "Shape.Chain",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BoxShape",
              "anchor": "BoxShape",
              "decl": "func BoxShape(b Box) Shape",
              "doc": "BoxShape returns a Shape wrapping b.\n",
              "file": "pkg/physics/shape.go",
              "line": 106
            },
            {
              "name": "CapsuleShape",
              "anchor": "CapsuleShape",
              "decl": "func CapsuleShape(c Capsule) Shape",
              "doc": "CapsuleShape returns a Shape wrapping c.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 311
            },
            {
              "name": "ChainShape",
              "anchor": "ChainShape",
              "decl": "func ChainShape(points []core.Point, loop bool) Shape",
              "doc": "ChainShape returns a Shape holding a Chain through a copy of points, closed when loop is true.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 317
            },
            {
              "name": "CircleShape",
              "anchor": "CircleShape",
              "decl": "func CircleShape(c Circle) Shape",
              "doc": "CircleShape returns a Shape wrapping c.\n",
              "file": "pkg/physics/shape.go",
              "line": 109
            },
            {
              "name": "PolygonShape",
              "anchor": "PolygonShape",
              "decl": "func PolygonShape(p Polygon) Shape",
              "doc": "PolygonShape returns a Shape wrapping p.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 308
            },
            {
              "name": "SegmentShape",
              "anchor": "SegmentShape",
              "decl": "func SegmentShape(s Segment) Shape",
              "doc": "SegmentShape returns a Shape wrapping s.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 314
            }
          ],
          "methods": [
            {
              "name": "Area",
              "anchor": "Shape.Area",
              "recv": "Shape",
              "decl": "func (s Shape) Area() float32",
              "doc": "Area returns the area of s. Segments and chains have none.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 322
            },
            {
              "name": "Bounds",
              "anchor": "Shape.Bounds",
              "recv": "Shape",
              "decl": "func (s Shape) Bounds() Box",
              "doc": "Bounds returns the axis-aligned Box enclosing s, or a zero Box when s is empty. The bounds of a horizontal or vertical segment or chain have zero height or width.\n",
              "file": "pkg/physics/shape.go",
              "line": 132
            },
            {
              "name": "Centroid",
              "anchor": "Shape.Centroid",
              "recv": "Shape",
              "decl": "func (s Shape) Centroid() (x, y float32)",
              "doc": "Centroid returns the center of mass of s, taken as uniformly dense: the area's centroid for boxes, circles, polygons and capsules, and the midpoint of the line, weighted by length, for segments and chains. It returns (0, 0) when s is empty.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 344
            },
            {
              "name": "Contains",
              "anchor": "Shape.Contains",
              "recv": "Shape",
              "decl": "func (s Shape) Contains(x, y float32) bool",
              "doc": "Contains reports whether (x, y) lies inside or on the boundary of s. Segments and chains have no inside and contain no point.\n",
              "file": "pkg/physics/shape.go",
              "line": 155
            },
            {
              "name": "Empty",
              "anchor": "Shape.Empty",
              "recv": "Shape",
              "decl": "func (s Shape) Empty() bool",
              "doc": "Empty reports whether s holds no usable geometry: a Box or Circle without positive area, a Polygon or Capsule that is empty, a Segment of zero length or a Chain without a segment. Segments and chains have no area but are not empty.\n",
              "file": "pkg/physics/shape.go",
              "line": 112
            },
            {
              "name": "MomentOfInertia",
              "anchor": "Shape.MomentOfInertia",
              "recv": "Shape",
              "decl": "func (s Shape) MomentOfInertia(mass float32) float32",
              "doc": "MomentOfInertia returns the rotational inertia of s about its Centroid for a body of the given mass spread evenly over its area, as RigidBody uses. Segments, chains and empty shapes return 0.\n",
              "file": "pkg/physics/shape_convex.go",
              "line": 387
            },
            {
              "name": "Translated",
              "anchor": "Shape.Translated",
              "recv": "Shape",
              "decl": "func (s Shape) Translated(dx, dy float32) Shape",
              "doc": "Translated returns a copy of s shifted by (dx, dy). A chain is copied into a new Chain.\n",
              "file": "pkg/physics/shape.go",
              "line": 171
            }
          ]
        },
        {
          "name": "ShapeCastHit",
          "anchor": "ShapeCastHit",
          "decl": "type ShapeCastHit struct {\n\t// Fraction is the normalized time of impact in [0, 1] along the displacement.\n\tFraction float32\n\t// Point is the world-space contact point on the struck surface at the time of impact.\n\tPoint core.Point\n\t// NormalX and NormalY form the unit surface normal at Point, pointing from the struck\n\t// target toward the cast shape.\n\tNormalX, NormalY float32\n\t// Body is non-nil when the hit is a body from World.Bodies.\n\tBody *Body\n\t// RigidBody is non-nil when the hit is a body from RigidWorld.Bodies.\n\tRigidBody *RigidBody\n\t// Tile is true when the hit is a tile from World.Tiles at (Col, Row).\n\tTile      bool\n\tCol, Row  int\n\tTileFlags TileFlags\n}",
          "doc": "ShapeCastHit describes one contact encountered when sweeping a Shape along a displacement vector.\n",
          "file": "pkg/physics/shapecast.go",
          "line": 13,
          "members": [
            {
              "name": "Fraction",
              "anchor": "ShapeCastHit.Fraction",
              "kind": "field",
              "doc": "Fraction is the normalized time of impact in [0, 1] along the displacement."
            },
            {
              "name": "Point",
              "anchor": "ShapeCastHit.Point",
              "kind": "field",
              "doc": "Point is the world-space contact point on the struck surface at the time of impact."
            },
            {
              "name": "NormalX",
              "anchor": "ShapeCastHit.NormalX",
              "kind": "field",
              "doc": "NormalX and NormalY form the unit surface normal at Point, pointing from the struck\ntarget toward the cast shape."
            },
            {
              "name": "NormalY",
              "anchor": "ShapeCastHit.NormalY",
              "kind": "field",
              "doc": "NormalX and NormalY form the unit surface normal at Point, pointing from the struck\ntarget toward the cast shape."
            },
            {
              "name": "Body",
              "anchor": "ShapeCastHit.Body",
              "kind": "field",
              "doc": "Body is non-nil when the hit is a body from World.Bodies."
            },
            {
              "name": "RigidBody",
              "anchor": "ShapeCastHit.RigidBody",
              "kind": "field",
              "doc": "RigidBody is non-nil when the hit is a body from RigidWorld.Bodies."
            },
            {
              "name": "Tile",
              "anchor": "ShapeCastHit.Tile",
              "kind": "field",
              "doc": "Tile is true when the hit is a tile from World.Tiles at (Col, Row)."
            },
            {
              "name": "Col",
              "anchor": "ShapeCastHit.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "ShapeCastHit.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileFlags",
              "anchor": "ShapeCastHit.TileFlags",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ShapeCastShape",
              "anchor": "ShapeCastShape",
              "decl": "func ShapeCastShape(moving Shape, dx, dy float32, target Shape) (ShapeCastHit, bool)",
              "doc": "ShapeCastShape sweeps moving by (dx, dy) against stationary target and returns the exact\ntime of impact, contact point, and outward unit normal pointing from target toward moving.\nInitial overlaps report Fraction == 0 with the overlap contact from TestShapes.\n",
              "file": "pkg/physics/shapecast.go",
              "line": 61
            }
          ],
          "methods": []
        },
        {
          "name": "ShapeCastOptions",
          "anchor": "ShapeCastOptions",
          "decl": "type ShapeCastOptions struct {\n\t// QueryMask selects which target kinds (bodies, solid tiles, one-way tiles, and in a RigidWorld sensors) to inspect. Zero defaults to QueryAll, which leaves sensors out.\n\tQueryMask QueryMask\n\t// LayerMask filters bodies by their Layer bitmask. Zero defaults to LayerAll.\n\tLayerMask LayerMask\n\t// IgnoreBody optionally excludes one World body from the cast.\n\tIgnoreBody *Body\n\t// IgnoreRigidBody optionally excludes one RigidWorld body from the cast.\n\tIgnoreRigidBody *RigidBody\n}",
          "doc": "ShapeCastOptions configures filtering for World.ShapeCastWith, World.ShapeCastAllWith,\nRigidWorld.ShapeCastWith, and RigidWorld.ShapeCastAllWith.\n",
          "file": "pkg/physics/shapecast.go",
          "line": 33,
          "members": [
            {
              "name": "QueryMask",
              "anchor": "ShapeCastOptions.QueryMask",
              "kind": "field",
              "doc": "QueryMask selects which target kinds (bodies, solid tiles, one-way tiles, and in a RigidWorld sensors) to inspect. Zero defaults to QueryAll, which leaves sensors out."
            },
            {
              "name": "LayerMask",
              "anchor": "ShapeCastOptions.LayerMask",
              "kind": "field",
              "doc": "LayerMask filters bodies by their Layer bitmask. Zero defaults to LayerAll."
            },
            {
              "name": "IgnoreBody",
              "anchor": "ShapeCastOptions.IgnoreBody",
              "kind": "field",
              "doc": "IgnoreBody optionally excludes one World body from the cast."
            },
            {
              "name": "IgnoreRigidBody",
              "anchor": "ShapeCastOptions.IgnoreRigidBody",
              "kind": "field",
              "doc": "IgnoreRigidBody optionally excludes one RigidWorld body from the cast."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShapeKind",
          "anchor": "ShapeKind",
          "decl": "type ShapeKind uint8",
          "doc": "ShapeKind identifies which geometry a Shape holds.\n",
          "file": "pkg/physics/shape.go",
          "line": 75,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ShapeNone",
                  "anchor": "ShapeNone"
                },
                {
                  "name": "ShapeBox",
                  "anchor": "ShapeBox"
                },
                {
                  "name": "ShapeCircle",
                  "anchor": "ShapeCircle"
                },
                {
                  "name": "ShapePolygon",
                  "anchor": "ShapePolygon"
                },
                {
                  "name": "ShapeCapsule",
                  "anchor": "ShapeCapsule"
                },
                {
                  "name": "ShapeSegment",
                  "anchor": "ShapeSegment"
                },
                {
                  "name": "ShapeChain",
                  "anchor": "ShapeChain"
                }
              ],
              "decl": "const (\n\t// ShapeNone is the empty zero shape.\n\tShapeNone ShapeKind = iota\n\t// ShapeBox holds an axis-aligned Box.\n\tShapeBox\n\t// ShapeCircle holds a Circle.\n\tShapeCircle\n\t// ShapePolygon holds a convex, optionally rounded Polygon.\n\tShapePolygon\n\t// ShapeCapsule holds a Capsule.\n\tShapeCapsule\n\t// ShapeSegment holds a Segment.\n\tShapeSegment\n\t// ShapeChain holds a Chain.\n\tShapeChain\n)",
              "doc": "",
              "file": "pkg/physics/shape.go",
              "line": 77
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShapeMatchConstraint",
          "anchor": "ShapeMatchConstraint",
          "decl": "type ShapeMatchConstraint struct {\n\tParticles   []int\n\tRestOffsets [][2]float32\n\tStiffness   float32\n}",
          "doc": "ShapeMatchConstraint pulls a group of particles toward the closest rigid-body\ntransformation (translation + 2D rotation) of their rest offsets.\n",
          "file": "pkg/physics/xpbd.go",
          "line": 109,
          "members": [
            {
              "name": "Particles",
              "anchor": "ShapeMatchConstraint.Particles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestOffsets",
              "anchor": "ShapeMatchConstraint.RestOffsets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stiffness",
              "anchor": "ShapeMatchConstraint.Stiffness",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SlideCollision",
          "anchor": "SlideCollision",
          "decl": "type SlideCollision struct {\n\t// Body is non-nil when the collision was with a Body in World.Bodies.\n\tBody *Body\n\t// RigidBody is non-nil when the collision was with a static RigidBody collider.\n\tRigidBody *RigidBody\n\t// Tile is true when the collision was with a tile in World.Tiles at (Col, Row).\n\tTile      bool\n\tCol, Row  int\n\tTileFlags TileFlags\n\t// NormalX and NormalY form the unit surface normal pointing from the hit collider toward the moving body.\n\tNormalX, NormalY float32\n\t// Position is the world-space contact point on the colliding surface.\n\tPosition core.Point\n\t// Remainder is the remaining displacement vector at the moment of impact before sliding.\n\tRemainder core.Point\n}",
          "doc": "SlideCollision describes one contact encountered during World.MoveAndSlide or World.MoveAndSlideWith.\n",
          "file": "pkg/physics/slide.go",
          "line": 62,
          "members": [
            {
              "name": "Body",
              "anchor": "SlideCollision.Body",
              "kind": "field",
              "doc": "Body is non-nil when the collision was with a Body in World.Bodies."
            },
            {
              "name": "RigidBody",
              "anchor": "SlideCollision.RigidBody",
              "kind": "field",
              "doc": "RigidBody is non-nil when the collision was with a static RigidBody collider."
            },
            {
              "name": "Tile",
              "anchor": "SlideCollision.Tile",
              "kind": "field",
              "doc": "Tile is true when the collision was with a tile in World.Tiles at (Col, Row)."
            },
            {
              "name": "Col",
              "anchor": "SlideCollision.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "SlideCollision.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileFlags",
              "anchor": "SlideCollision.TileFlags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalX",
              "anchor": "SlideCollision.NormalX",
              "kind": "field",
              "doc": "NormalX and NormalY form the unit surface normal pointing from the hit collider toward the moving body."
            },
            {
              "name": "NormalY",
              "anchor": "SlideCollision.NormalY",
              "kind": "field",
              "doc": "NormalX and NormalY form the unit surface normal pointing from the hit collider toward the moving body."
            },
            {
              "name": "Position",
              "anchor": "SlideCollision.Position",
              "kind": "field",
              "doc": "Position is the world-space contact point on the colliding surface."
            },
            {
              "name": "Remainder",
              "anchor": "SlideCollision.Remainder",
              "kind": "field",
              "doc": "Remainder is the remaining displacement vector at the moment of impact before sliding."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SlideResult",
          "anchor": "SlideResult",
          "decl": "type SlideResult struct {\n\t// Collisions lists each contact encountered during the slide iterations, in order of impact.\n\tCollisions []SlideCollision\n\t// Travel is the net displacement actually moved by the body during the step.\n\tTravel core.Point\n\t// OnFloor reports whether a floor surface was contacted (normal within FloorMaxAngle of Up).\n\tOnFloor bool\n\t// OnWall reports whether a wall surface was contacted.\n\tOnWall bool\n\t// OnCeiling reports whether a ceiling surface was contacted (normal within FloorMaxAngle of -Up).\n\tOnCeiling bool\n\t// OnLeftWall reports whether a wall contact had its normal pointing toward the right side of Up.\n\tOnLeftWall bool\n\t// OnRightWall reports whether a wall contact had its normal pointing toward the left side of Up.\n\tOnRightWall bool\n\t// FloorNormal is the unit normal of the last floor contact, or zero when OnFloor is false.\n\tFloorNormal core.Point\n\t// WallNormal is the unit normal of the last wall contact, or zero when OnWall is false.\n\tWallNormal core.Point\n\t// CeilingNormal is the unit normal of the last ceiling contact, or zero when OnCeiling is false.\n\tCeilingNormal core.Point\n}",
          "doc": "SlideResult summarizes the contacts, displacement and surface state from one World.MoveAndSlide call.\n",
          "file": "pkg/physics/slide.go",
          "line": 80,
          "members": [
            {
              "name": "Collisions",
              "anchor": "SlideResult.Collisions",
              "kind": "field",
              "doc": "Collisions lists each contact encountered during the slide iterations, in order of impact."
            },
            {
              "name": "Travel",
              "anchor": "SlideResult.Travel",
              "kind": "field",
              "doc": "Travel is the net displacement actually moved by the body during the step."
            },
            {
              "name": "OnFloor",
              "anchor": "SlideResult.OnFloor",
              "kind": "field",
              "doc": "OnFloor reports whether a floor surface was contacted (normal within FloorMaxAngle of Up)."
            },
            {
              "name": "OnWall",
              "anchor": "SlideResult.OnWall",
              "kind": "field",
              "doc": "OnWall reports whether a wall surface was contacted."
            },
            {
              "name": "OnCeiling",
              "anchor": "SlideResult.OnCeiling",
              "kind": "field",
              "doc": "OnCeiling reports whether a ceiling surface was contacted (normal within FloorMaxAngle of -Up)."
            },
            {
              "name": "OnLeftWall",
              "anchor": "SlideResult.OnLeftWall",
              "kind": "field",
              "doc": "OnLeftWall reports whether a wall contact had its normal pointing toward the right side of Up."
            },
            {
              "name": "OnRightWall",
              "anchor": "SlideResult.OnRightWall",
              "kind": "field",
              "doc": "OnRightWall reports whether a wall contact had its normal pointing toward the left side of Up."
            },
            {
              "name": "FloorNormal",
              "anchor": "SlideResult.FloorNormal",
              "kind": "field",
              "doc": "FloorNormal is the unit normal of the last floor contact, or zero when OnFloor is false."
            },
            {
              "name": "WallNormal",
              "anchor": "SlideResult.WallNormal",
              "kind": "field",
              "doc": "WallNormal is the unit normal of the last wall contact, or zero when OnWall is false."
            },
            {
              "name": "CeilingNormal",
              "anchor": "SlideResult.CeilingNormal",
              "kind": "field",
              "doc": "CeilingNormal is the unit normal of the last ceiling contact, or zero when OnCeiling is false."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Slope",
          "anchor": "Slope",
          "decl": "type Slope struct {\n\tA, B core.Point\n}",
          "doc": "Slope is a line segment representing a ramp or slanted surface for CharacterBody movement.\nThe walkable side is the upward-facing normal (NormalY <= 0 in screen coordinates).\n",
          "file": "pkg/physics/character.go",
          "line": 16,
          "members": [
            {
              "name": "A",
              "anchor": "Slope.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "Slope.B",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Angle",
              "anchor": "Slope.Angle",
              "recv": "Slope",
              "decl": "func (s Slope) Angle() float32",
              "doc": "Angle returns the slope inclination from horizontal in radians, in [0, math.Pi/2].\n",
              "file": "pkg/physics/character.go",
              "line": 33
            },
            {
              "name": "Normal",
              "anchor": "Slope.Normal",
              "recv": "Slope",
              "decl": "func (s Slope) Normal() core.Point",
              "doc": "Normal returns the upward-facing unit surface normal of s (NormalY <= 0).\n",
              "file": "pkg/physics/character.go",
              "line": 42
            }
          ]
        },
        {
          "name": "SoftBodyConfig",
          "anchor": "SoftBodyConfig",
          "decl": "type SoftBodyConfig struct {\n\tCenterX, CenterY    float32\n\tRadiusX, RadiusY    float32\n\tSegments            int\n\tTotalMass           float32\n\tParticleRadius      float32\n\tEdgeCompliance      float32\n\tEnableBending       bool\n\tBendingCompliance   float32\n\tAreaCompliance      float32\n\tPressure            float32\n\tUseShapeMatching    bool\n\tShapeMatchStiffness float32\n\tLayer               LayerMask\n\tMask                LayerMask\n\tFriction            float32\n\tRestitution         float32\n}",
          "doc": "SoftBodyConfig configures a 2D pressurized and/or shape-matched soft body constructed by SoftWorld.AddSoftBody.\n",
          "file": "pkg/physics/xpbd.go",
          "line": 533,
          "members": [
            {
              "name": "CenterX",
              "anchor": "SoftBodyConfig.CenterX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CenterY",
              "anchor": "SoftBodyConfig.CenterY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RadiusX",
              "anchor": "SoftBodyConfig.RadiusX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RadiusY",
              "anchor": "SoftBodyConfig.RadiusY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Segments",
              "anchor": "SoftBodyConfig.Segments",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalMass",
              "anchor": "SoftBodyConfig.TotalMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParticleRadius",
              "anchor": "SoftBodyConfig.ParticleRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EdgeCompliance",
              "anchor": "SoftBodyConfig.EdgeCompliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableBending",
              "anchor": "SoftBodyConfig.EnableBending",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BendingCompliance",
              "anchor": "SoftBodyConfig.BendingCompliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AreaCompliance",
              "anchor": "SoftBodyConfig.AreaCompliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pressure",
              "anchor": "SoftBodyConfig.Pressure",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UseShapeMatching",
              "anchor": "SoftBodyConfig.UseShapeMatching",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ShapeMatchStiffness",
              "anchor": "SoftBodyConfig.ShapeMatchStiffness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "SoftBodyConfig.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "SoftBodyConfig.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "SoftBodyConfig.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "SoftBodyConfig.Restitution",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SoftWorld",
          "anchor": "SoftWorld",
          "decl": "type SoftWorld struct {\n\tParticles    []Particle\n\tDistances    []DistanceConstraint\n\tBendings     []BendingConstraint\n\tAreas        []AreaConstraint\n\tShapeMatches []ShapeMatchConstraint\n\tAttachments  []RigidAttachment\n\n\t// World provides optional static/kinematic bodies and a TileGrid to collide against.\n\tWorld *World\n\t// RigidWorld provides optional 2D rigid bodies to collide against and couple with.\n\tRigidWorld *RigidWorld\n\t// Tiles provides an optional standalone TileGrid (collided in addition to World.Tiles when distinct).\n\tTiles TileGrid\n\t// TileLayer and TileMask filter particle collisions against tiles (zero defaults to LayerAll).\n\tTileLayer LayerMask\n\tTileMask  LayerMask\n\n\tGravityX   float32\n\tGravityY   float32\n\tDamping    float32\n\tSubsteps   int\n\tIterations int\n\t// contains filtered or unexported fields\n}",
          "doc": "SoftWorld simulates 2D XPBD particles, constraints (distance, bending, area/pressure,\nshape matching), two-way rigid-body attachments, and collisions against World bodies,\nRigidWorld bodies, and TileGrid tiles in deterministic order.\n",
          "file": "pkg/physics/xpbd.go",
          "line": 186,
          "members": [
            {
              "name": "Particles",
              "anchor": "SoftWorld.Particles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Distances",
              "anchor": "SoftWorld.Distances",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bendings",
              "anchor": "SoftWorld.Bendings",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Areas",
              "anchor": "SoftWorld.Areas",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ShapeMatches",
              "anchor": "SoftWorld.ShapeMatches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Attachments",
              "anchor": "SoftWorld.Attachments",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "World",
              "anchor": "SoftWorld.World",
              "kind": "field",
              "doc": "World provides optional static/kinematic bodies and a TileGrid to collide against."
            },
            {
              "name": "RigidWorld",
              "anchor": "SoftWorld.RigidWorld",
              "kind": "field",
              "doc": "RigidWorld provides optional 2D rigid bodies to collide against and couple with."
            },
            {
              "name": "Tiles",
              "anchor": "SoftWorld.Tiles",
              "kind": "field",
              "doc": "Tiles provides an optional standalone TileGrid (collided in addition to World.Tiles when distinct)."
            },
            {
              "name": "TileLayer",
              "anchor": "SoftWorld.TileLayer",
              "kind": "field",
              "doc": "TileLayer and TileMask filter particle collisions against tiles (zero defaults to LayerAll)."
            },
            {
              "name": "TileMask",
              "anchor": "SoftWorld.TileMask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityX",
              "anchor": "SoftWorld.GravityX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityY",
              "anchor": "SoftWorld.GravityY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Damping",
              "anchor": "SoftWorld.Damping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Substeps",
              "anchor": "SoftWorld.Substeps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Iterations",
              "anchor": "SoftWorld.Iterations",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSoftWorld",
              "anchor": "NewSoftWorld",
              "decl": "func NewSoftWorld() *SoftWorld",
              "doc": "NewSoftWorld returns a SoftWorld configured with sensible defaults (8 substeps,\n6 solver iterations, and mild linear damping).\n",
              "file": "pkg/physics/xpbd.go",
              "line": 215
            }
          ],
          "methods": [
            {
              "name": "AddArea",
              "anchor": "SoftWorld.AddArea",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddArea(particles []int, pressure, compliance float32) int",
              "doc": "AddArea adds a closed-polygon area/pressure constraint over particles.\nRestArea is computed from the current particle positions, and pressure <= 0 defaults to 1.0.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 331
            },
            {
              "name": "AddBending",
              "anchor": "SoftWorld.AddBending",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddBending(a, b, c int, compliance float32) int",
              "doc": "AddBending adds a 3-particle angular bending constraint centered at hinge b,\nrecording the current signed angle between (a - b) and (c - b) as RestAngle.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 306
            },
            {
              "name": "AddDistance",
              "anchor": "SoftWorld.AddDistance",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddDistance(a, b int, restLength, compliance float32) int",
              "doc": "AddDistance adds a bilateral distance constraint between particles a and b.\nIf restLength < 0, the current Euclidean distance between a and b is used.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 259
            },
            {
              "name": "AddParticle",
              "anchor": "SoftWorld.AddParticle",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddParticle(p Particle) int",
              "doc": "AddParticle appends p to sw.Particles, initializes its previous position to (p.X, p.Y),\nand returns its index.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 225
            },
            {
              "name": "AddRope",
              "anchor": "SoftWorld.AddRope",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddRope(cfg RopeConfig) []int",
              "doc": "AddRope constructs a chain of Segments+1 particles from (StartX, StartY) to (EndX, EndY)\nconnected by distance constraints (plus unilateral tethers when Compliance == 0 so heavy\nattached loads cannot over-stretch the chain, and optional bending constraints).\n",
              "file": "pkg/physics/xpbd.go",
              "line": 469
            },
            {
              "name": "AddShapeMatch",
              "anchor": "SoftWorld.AddShapeMatch",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddShapeMatch(particles []int, stiffness float32) int",
              "doc": "AddShapeMatch adds a 2D rigid shape-matching constraint over particles, capturing their\ncurrent positions relative to their weighted center of mass as rest offsets.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 353
            },
            {
              "name": "AddSoftBody",
              "anchor": "SoftWorld.AddSoftBody",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddSoftBody(cfg SoftBodyConfig) []int",
              "doc": "AddSoftBody builds a closed 2D soft-body loop around (CenterX, CenterY) with perimeter\ndistance constraints, an AreaConstraint (pressure), and optional ShapeMatchConstraint / bending.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 554
            },
            {
              "name": "AddTether",
              "anchor": "SoftWorld.AddTether",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddTether(a, b int, maxLength, compliance float32) int",
              "doc": "AddTether adds a unilateral maximum-distance constraint between particles a and b\nthat activates only when their separation exceeds maxLength.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 282
            },
            {
              "name": "AttachRigidBody",
              "anchor": "SoftWorld.AttachRigidBody",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AttachRigidBody(particleIdx int, body *RigidBody, localAnchor core.Point, compliance float32) int",
              "doc": "AttachRigidBody couples particleIdx to body at localAnchor with two-way reaction impulses.\nSet compliance to 0 for a rigid pin attachment or > 0 for an elastic attachment.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 399
            },
            {
              "name": "PinParticle",
              "anchor": "SoftWorld.PinParticle",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) PinParticle(idx int)",
              "doc": "PinParticle marks particle idx as pinned (immovable).\n",
              "file": "pkg/physics/xpbd.go",
              "line": 242
            },
            {
              "name": "PolygonArea",
              "anchor": "SoftWorld.PolygonArea",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) PolygonArea(particles []int) float32",
              "doc": "PolygonArea returns the signed shoelace area of the closed polygon formed by particles.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 431
            },
            {
              "name": "RopeLength",
              "anchor": "SoftWorld.RopeLength",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) RopeLength(particles []int) float32",
              "doc": "RopeLength returns the total Euclidean polyline length along the ordered particle indices.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 414
            },
            {
              "name": "Step",
              "anchor": "SoftWorld.Step",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) Step(dt time.Duration)",
              "doc": "Step advances the 2D XPBD particle and constraint simulation by dt deterministically.\nCall this on the fixed game loop after stepping RigidWorld so two-way rigid attachments\nstay synchronized without over-stretching.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 657
            },
            {
              "name": "UnpinParticle",
              "anchor": "SoftWorld.UnpinParticle",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) UnpinParticle(idx int)",
              "doc": "UnpinParticle clears particle idx's Pinned flag.\n",
              "file": "pkg/physics/xpbd.go",
              "line": 251
            }
          ]
        },
        {
          "name": "SpringJoint",
          "anchor": "SpringJoint",
          "decl": "type SpringJoint struct {\n\tA, B             *RigidBody\n\tAnchorA          core.Point\n\tAnchorB          core.Point\n\tRestLength       float32\n\tStiffness        float32\n\tDamping          float32\n\tBreakForce       float32 // max reaction force before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "SpringJoint connects local anchor points on bodies A and B with a damped Hooke's law spring.\n",
          "file": "pkg/physics/joints.go",
          "line": 491,
          "members": [
            {
              "name": "A",
              "anchor": "SpringJoint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "SpringJoint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorA",
              "anchor": "SpringJoint.AnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorB",
              "anchor": "SpringJoint.AnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestLength",
              "anchor": "SpringJoint.RestLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stiffness",
              "anchor": "SpringJoint.Stiffness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Damping",
              "anchor": "SpringJoint.Damping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BreakForce",
              "anchor": "SpringJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "SpringJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "SpringJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSpringJoint",
              "anchor": "NewSpringJoint",
              "decl": "func NewSpringJoint(a, b *RigidBody, anchorA, anchorB core.Point, restLength, stiffness, damping float32) *SpringJoint",
              "doc": "NewSpringJoint creates a SpringJoint between local anchors on a and b.\nIf restLength <= 0 and both bodies are non-nil, RestLength is initialized to the current anchor distance.\n",
              "file": "pkg/physics/joints.go",
              "line": 508
            }
          ],
          "methods": [
            {
              "name": "Broken",
              "anchor": "SpringJoint.Broken",
              "recv": "*SpringJoint",
              "decl": "func (r *SpringJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics/joints.go",
              "line": 85
            },
            {
              "name": "ReactionForce",
              "anchor": "SpringJoint.ReactionForce",
              "recv": "*SpringJoint",
              "decl": "func (r *SpringJoint) ReactionForce() (fx, fy float32)",
              "doc": "ReactionForce returns the world-space constraint force (fx, fy) applied to\nbody B (or the attached body for MouseJoint) during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 68
            },
            {
              "name": "ReactionTorque",
              "anchor": "SpringJoint.ReactionTorque",
              "recv": "*SpringJoint",
              "decl": "func (r *SpringJoint) ReactionTorque() float32",
              "doc": "ReactionTorque returns the scalar constraint torque (clockwise positive in screen space)\napplied to body B during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 77
            }
          ]
        },
        {
          "name": "TileContact",
          "anchor": "TileContact",
          "decl": "type TileContact struct {\n\tCol, Row         int\n\tFlags            TileFlags\n\tNormalX, NormalY float32\n}",
          "doc": "TileContact records one tile hit during MoveAndSlide.\n(NormalX, NormalY) points away from the tile surface into the body.\n",
          "file": "pkg/physics/tile.go",
          "line": 162,
          "members": [
            {
              "name": "Col",
              "anchor": "TileContact.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "TileContact.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "TileContact.Flags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalX",
              "anchor": "TileContact.NormalX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalY",
              "anchor": "TileContact.NormalY",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileFlags",
          "anchor": "TileFlags",
          "decl": "type TileFlags uint32",
          "doc": "TileFlags marks how a tile cell participates in collision resolution and queries.\n",
          "file": "pkg/physics/tile.go",
          "line": 9,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TileSolid",
                  "anchor": "TileSolid"
                },
                {
                  "name": "TileOneWay",
                  "anchor": "TileOneWay"
                }
              ],
              "decl": "const (\n\t// TileSolid blocks movement from all four directions.\n\tTileSolid TileFlags = 1 << 0\n\t// TileOneWay blocks downward movement only when the body starts at or above the tile's top edge, unless Body.OneWayDrop is set.\n\tTileOneWay TileFlags = 1 << 1\n)",
              "doc": "",
              "file": "pkg/physics/tile.go",
              "line": 11
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileGrid",
          "anchor": "TileGrid",
          "decl": "type TileGrid interface {\n\t// TileSize returns the width and height of one tile in world coordinates.\n\tTileSize() (width, height float32)\n\t// GridSize returns the number of columns and rows in the grid.\n\tGridSize() (cols, rows int)\n\t// TileFlagsAt returns the collision flags of the tile at (col, row), or 0 when out of bounds or empty.\n\tTileFlagsAt(col, row int) TileFlags\n}",
          "doc": "TileGrid exposes a regular grid of collision tiles to physics resolution and queries without depending on a specific tilemap type.\n",
          "file": "pkg/physics/tile.go",
          "line": 19,
          "members": [
            {
              "name": "TileSize",
              "anchor": "TileGrid.TileSize",
              "kind": "method",
              "doc": "TileSize returns the width and height of one tile in world coordinates."
            },
            {
              "name": "GridSize",
              "anchor": "TileGrid.GridSize",
              "kind": "method",
              "doc": "GridSize returns the number of columns and rows in the grid."
            },
            {
              "name": "TileFlagsAt",
              "anchor": "TileGrid.TileFlagsAt",
              "kind": "method",
              "doc": "TileFlagsAt returns the collision flags of the tile at (col, row), or 0 when out of bounds or empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileGridOrigin",
          "anchor": "TileGridOrigin",
          "decl": "type TileGridOrigin interface {\n\tGridOrigin() (x, y float32)\n}",
          "doc": "TileGridOrigin is an optional interface a TileGrid may implement to place cell (0, 0)\nat a non-zero world-space origin (x, y) instead of (0, 0).\n\nWhen implemented, cell (col, row) occupies\n[x + col*tileW, x + (col+1)*tileW) × [y + row*tileH, y + (row+1)*tileH),\nand GridSize still gives the valid cell index span [0, cols) × [0, rows).\n",
          "file": "pkg/physics/tile.go",
          "line": 34,
          "members": [
            {
              "name": "GridOrigin",
              "anchor": "TileGridOrigin.GridOrigin",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Trigger",
          "anchor": "Trigger",
          "decl": "type Trigger struct {\n\tID       int\n\tTag      string\n\tShape    Shape\n\tLayer    LayerMask\n\tMask     LayerMask\n\tOnEnter  func(*Body)\n\tOnStay   func(*Body)\n\tOnExit   func(*Body)\n\tArea     AreaSettings\n\tUserData any\n}",
          "doc": "Trigger is a non-solid sensor region that reports bodies entering, staying inside,\nand exiting its Shape across World.StepTriggers calls.\n\nLayer and Mask follow the same rules as Body: zero values default to LayerAll,\nand a body interacts with a trigger when both masks accept the other's layer.\nOn the first step a matching body overlaps Shape, OnEnter is called once.\nOn each subsequent step it continues overlapping, OnStay is called.\nOn the first step it no longer overlaps (or has been removed from World.Bodies),\nOnExit is called once.\n",
          "file": "pkg/physics/trigger.go",
          "line": 12,
          "members": [
            {
              "name": "ID",
              "anchor": "Trigger.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "Trigger.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "Trigger.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "Trigger.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "Trigger.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnEnter",
              "anchor": "Trigger.OnEnter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnStay",
              "anchor": "Trigger.OnStay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnExit",
              "anchor": "Trigger.OnExit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Area",
              "anchor": "Trigger.Area",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserData",
              "anchor": "Trigger.UserData",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TriggerSnapshot",
          "anchor": "TriggerSnapshot",
          "decl": "type TriggerSnapshot struct {\n\tID    int          `json:\"id\"`\n\tTag   string       `json:\"tag,omitempty\"`\n\tShape Shape        `json:\"shape\"`\n\tLayer LayerMask    `json:\"layer\"`\n\tMask  LayerMask    `json:\"mask\"`\n\tArea  AreaSettings `json:\"area\"`\n}",
          "doc": "TriggerSnapshot is a JSON-serializable snapshot of one physics.Trigger (excluding callbacks and UserData).\n",
          "file": "pkg/physics/snapshot.go",
          "line": 35,
          "members": [
            {
              "name": "ID",
              "anchor": "TriggerSnapshot.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "TriggerSnapshot.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "TriggerSnapshot.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "TriggerSnapshot.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "TriggerSnapshot.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Area",
              "anchor": "TriggerSnapshot.Area",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WeldJoint",
          "anchor": "WeldJoint",
          "decl": "type WeldJoint struct {\n\tA, B             *RigidBody\n\tAnchorA          core.Point\n\tAnchorB          core.Point\n\tReferenceAngle   float32 // target relative angle B.Angle - A.Angle\n\tFrequencyHz      float32 // optional spring natural frequency in Hz (> 0 enables soft spring mode)\n\tDampingRatio     float32 // damping ratio for FrequencyHz (0 = undamped, 1 = critically damped)\n\tStiffness        float32 // optional direct spring stiffness (used when FrequencyHz <= 0)\n\tDamping          float32 // optional direct damping (used when FrequencyHz <= 0)\n\tBreakForce       float32 // max reaction force before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "WeldJoint locks two bodies' relative position and angle at a shared anchor point.\nWhen FrequencyHz > 0 (with DampingRatio) or Stiffness > 0 (with Damping), it behaves\nas a soft damped spring holding the relative pose; otherwise it acts as a rigid weld.\n",
          "file": "pkg/physics/joints.go",
          "line": 1206,
          "members": [
            {
              "name": "A",
              "anchor": "WeldJoint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "WeldJoint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorA",
              "anchor": "WeldJoint.AnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorB",
              "anchor": "WeldJoint.AnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReferenceAngle",
              "anchor": "WeldJoint.ReferenceAngle",
              "kind": "field",
              "doc": "target relative angle B.Angle - A.Angle"
            },
            {
              "name": "FrequencyHz",
              "anchor": "WeldJoint.FrequencyHz",
              "kind": "field",
              "doc": "optional spring natural frequency in Hz (> 0 enables soft spring mode)"
            },
            {
              "name": "DampingRatio",
              "anchor": "WeldJoint.DampingRatio",
              "kind": "field",
              "doc": "damping ratio for FrequencyHz (0 = undamped, 1 = critically damped)"
            },
            {
              "name": "Stiffness",
              "anchor": "WeldJoint.Stiffness",
              "kind": "field",
              "doc": "optional direct spring stiffness (used when FrequencyHz <= 0)"
            },
            {
              "name": "Damping",
              "anchor": "WeldJoint.Damping",
              "kind": "field",
              "doc": "optional direct damping (used when FrequencyHz <= 0)"
            },
            {
              "name": "BreakForce",
              "anchor": "WeldJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "WeldJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "WeldJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewWeldJoint",
              "anchor": "NewWeldJoint",
              "decl": "func NewWeldJoint(a, b *RigidBody, worldAnchor core.Point) *WeldJoint",
              "doc": "NewWeldJoint creates a WeldJoint welding a and b together at worldAnchor with\ntheir current relative orientation.\n",
              "file": "pkg/physics/joints.go",
              "line": 1238
            }
          ],
          "methods": [
            {
              "name": "Broken",
              "anchor": "WeldJoint.Broken",
              "recv": "*WeldJoint",
              "decl": "func (r *WeldJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics/joints.go",
              "line": 85
            },
            {
              "name": "ReactionForce",
              "anchor": "WeldJoint.ReactionForce",
              "recv": "*WeldJoint",
              "decl": "func (r *WeldJoint) ReactionForce() (fx, fy float32)",
              "doc": "ReactionForce returns the world-space constraint force (fx, fy) applied to\nbody B (or the attached body for MouseJoint) during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 68
            },
            {
              "name": "ReactionTorque",
              "anchor": "WeldJoint.ReactionTorque",
              "recv": "*WeldJoint",
              "decl": "func (r *WeldJoint) ReactionTorque() float32",
              "doc": "ReactionTorque returns the scalar constraint torque (clockwise positive in screen space)\napplied to body B during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 77
            }
          ]
        },
        {
          "name": "WheelJoint",
          "anchor": "WheelJoint",
          "decl": "type WheelJoint struct {\n\tA, B             *RigidBody\n\tAnchorA          core.Point // suspension mount in A's local space\n\tAnchorB          core.Point // wheel hub in B's local space\n\tLocalAxisA       core.Point // unit suspension axis in A's local space (defaults to {X: 0, Y: 1})\n\tFrequencyHz      float32    // optional suspension natural frequency in Hz (> 0 computes spring from effective mass)\n\tDampingRatio     float32    // damping ratio for FrequencyHz (e.g. 0.7)\n\tStiffness        float32    // direct linear spring stiffness along suspension axis (used when FrequencyHz <= 0)\n\tDamping          float32    // direct linear damping along suspension axis (used when FrequencyHz <= 0)\n\tEnableLimit      bool       // enables suspension travel limits along LocalAxisA\n\tLowerTranslation float32\n\tUpperTranslation float32\n\tEnableMotor      bool\n\tMotorSpeed       float32 // target wheel angular velocity relative to chassis (rad/s)\n\tMaxMotorTorque   float32 // maximum drive motor torque\n\tBreakForce       float32 // max reaction force before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "WheelJoint connects a chassis (A) and a wheel (B) with a 1-DOF suspension axis\n(spring + damping + optional translation limits) and a rotational drive motor.\n",
          "file": "pkg/physics/joints.go",
          "line": 1426,
          "members": [
            {
              "name": "A",
              "anchor": "WheelJoint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "WheelJoint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AnchorA",
              "anchor": "WheelJoint.AnchorA",
              "kind": "field",
              "doc": "suspension mount in A's local space"
            },
            {
              "name": "AnchorB",
              "anchor": "WheelJoint.AnchorB",
              "kind": "field",
              "doc": "wheel hub in B's local space"
            },
            {
              "name": "LocalAxisA",
              "anchor": "WheelJoint.LocalAxisA",
              "kind": "field",
              "doc": "unit suspension axis in A's local space (defaults to {X: 0, Y: 1})"
            },
            {
              "name": "FrequencyHz",
              "anchor": "WheelJoint.FrequencyHz",
              "kind": "field",
              "doc": "optional suspension natural frequency in Hz (> 0 computes spring from effective mass)"
            },
            {
              "name": "DampingRatio",
              "anchor": "WheelJoint.DampingRatio",
              "kind": "field",
              "doc": "damping ratio for FrequencyHz (e.g. 0.7)"
            },
            {
              "name": "Stiffness",
              "anchor": "WheelJoint.Stiffness",
              "kind": "field",
              "doc": "direct linear spring stiffness along suspension axis (used when FrequencyHz <= 0)"
            },
            {
              "name": "Damping",
              "anchor": "WheelJoint.Damping",
              "kind": "field",
              "doc": "direct linear damping along suspension axis (used when FrequencyHz <= 0)"
            },
            {
              "name": "EnableLimit",
              "anchor": "WheelJoint.EnableLimit",
              "kind": "field",
              "doc": "enables suspension travel limits along LocalAxisA"
            },
            {
              "name": "LowerTranslation",
              "anchor": "WheelJoint.LowerTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UpperTranslation",
              "anchor": "WheelJoint.UpperTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableMotor",
              "anchor": "WheelJoint.EnableMotor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorSpeed",
              "anchor": "WheelJoint.MotorSpeed",
              "kind": "field",
              "doc": "target wheel angular velocity relative to chassis (rad/s)"
            },
            {
              "name": "MaxMotorTorque",
              "anchor": "WheelJoint.MaxMotorTorque",
              "kind": "field",
              "doc": "maximum drive motor torque"
            },
            {
              "name": "BreakForce",
              "anchor": "WheelJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "WheelJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "WheelJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewWheelJoint",
              "anchor": "NewWheelJoint",
              "decl": "func NewWheelJoint(a, b *RigidBody, worldAnchor, worldAxis core.Point) *WheelJoint",
              "doc": "NewWheelJoint creates a WheelJoint attaching wheel b to chassis a at worldAnchor\nwith suspension travel along worldAxis. If worldAxis is zero, it defaults to {X: 0, Y: 1}\n(vertical suspension in screen space).\n",
              "file": "pkg/physics/joints.go",
              "line": 1468
            }
          ],
          "methods": [
            {
              "name": "Broken",
              "anchor": "WheelJoint.Broken",
              "recv": "*WheelJoint",
              "decl": "func (r *WheelJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics/joints.go",
              "line": 85
            },
            {
              "name": "JointSpeed",
              "anchor": "WheelJoint.JointSpeed",
              "recv": "*WheelJoint",
              "decl": "func (j *WheelJoint) JointSpeed() float32",
              "doc": "JointSpeed returns the wheel's angular speed relative to the chassis (B.AngularVel - A.AngularVel).\n",
              "file": "pkg/physics/joints.go",
              "line": 1503
            },
            {
              "name": "JointTranslation",
              "anchor": "WheelJoint.JointTranslation",
              "recv": "*WheelJoint",
              "decl": "func (j *WheelJoint) JointTranslation() float32",
              "doc": "JointTranslation returns the current signed wheel displacement along the suspension axis.\n",
              "file": "pkg/physics/joints.go",
              "line": 1490
            },
            {
              "name": "ReactionForce",
              "anchor": "WheelJoint.ReactionForce",
              "recv": "*WheelJoint",
              "decl": "func (r *WheelJoint) ReactionForce() (fx, fy float32)",
              "doc": "ReactionForce returns the world-space constraint force (fx, fy) applied to\nbody B (or the attached body for MouseJoint) during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 68
            },
            {
              "name": "ReactionTorque",
              "anchor": "WheelJoint.ReactionTorque",
              "recv": "*WheelJoint",
              "decl": "func (r *WheelJoint) ReactionTorque() float32",
              "doc": "ReactionTorque returns the scalar constraint torque (clockwise positive in screen space)\napplied to body B during the most recent RigidWorld.Step.\n",
              "file": "pkg/physics/joints.go",
              "line": 77
            }
          ]
        },
        {
          "name": "World",
          "anchor": "World",
          "decl": "type World struct {\n\tBodies   []*Body\n\tTriggers []*Trigger\n\tTiles    TileGrid\n\t// RigidWorld is an optional RigidWorld whose static RigidBody colliders participate in World.MoveAndSlide.\n\tRigidWorld *RigidWorld\n\t// TileLayer and TileMask optionally filter tile collisions during World.MoveAndSlide (zero defaults to LayerAll).\n\tTileLayer LayerMask\n\tTileMask  LayerMask\n\tGravityX  float32\n\tGravityY  float32\n\t// contains filtered or unexported fields\n}",
          "doc": "World holds bodies, triggers, an optional TileGrid and an optional RigidWorld for spatial queries and MoveAndSlide.\n",
          "file": "pkg/physics/world.go",
          "line": 63,
          "members": [
            {
              "name": "Bodies",
              "anchor": "World.Bodies",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triggers",
              "anchor": "World.Triggers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tiles",
              "anchor": "World.Tiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RigidWorld",
              "anchor": "World.RigidWorld",
              "kind": "field",
              "doc": "RigidWorld is an optional RigidWorld whose static RigidBody colliders participate in World.MoveAndSlide."
            },
            {
              "name": "TileLayer",
              "anchor": "World.TileLayer",
              "kind": "field",
              "doc": "TileLayer and TileMask optionally filter tile collisions during World.MoveAndSlide (zero defaults to LayerAll)."
            },
            {
              "name": "TileMask",
              "anchor": "World.TileMask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityX",
              "anchor": "World.GravityX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityY",
              "anchor": "World.GravityY",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "World.Add",
              "recv": "*World",
              "decl": "func (w *World) Add(bodies ...*Body)",
              "doc": "Add appends non-nil bodies to w.Bodies.\n",
              "file": "pkg/physics/world.go",
              "line": 79
            },
            {
              "name": "AddTrigger",
              "anchor": "World.AddTrigger",
              "recv": "*World",
              "decl": "func (w *World) AddTrigger(triggers ...*Trigger)",
              "doc": "AddTrigger appends non-nil triggers to w.Triggers.\n",
              "file": "pkg/physics/trigger.go",
              "line": 31
            },
            {
              "name": "AreaEffectAtShape",
              "anchor": "World.AreaEffectAtShape",
              "recv": "*World",
              "decl": "func (w *World) AreaEffectAtShape(shape Shape, layer, mask LayerMask) AreaEffect",
              "doc": "AreaEffectAtShape resolves all active Triggers in w overlapping shape (filtered\nby layer and mask) using w.GravityX/GravityY as the base gravity.\n",
              "file": "pkg/physics/area.go",
              "line": 233
            },
            {
              "name": "Checksum",
              "anchor": "World.Checksum",
              "recv": "*World",
              "decl": "func (w *World) Checksum() uint64",
              "doc": "Checksum returns a deterministic 64-bit FNV-1a hash of w's complete state,\nincluding private trigger overlap tracking.\n",
              "file": "pkg/physics/snapshot.go",
              "line": 587
            },
            {
              "name": "GravityAt",
              "anchor": "World.GravityAt",
              "recv": "*World",
              "decl": "func (w *World) GravityAt(x, y float32) (gx, gy float32)",
              "doc": "GravityAt returns the effective gravity acceleration at world point (x, y)\nin w, combining w.GravityX/GravityY with any overlapping active Triggers.\n",
              "file": "pkg/physics/area.go",
              "line": 223
            },
            {
              "name": "MoveAndSlide",
              "anchor": "World.MoveAndSlide",
              "recv": "*World",
              "decl": "func (w *World) MoveAndSlide(body *Body, dt time.Duration) SlideResult",
              "doc": "MoveAndSlide sweeps body's shape by (body.VX*dt, body.VY*dt) against static and kinematic bodies in w.Bodies,\nsolid and one-way tiles in w.Tiles, and static RigidBody colliders in w.RigidWorld, filtered by Layer and Mask.\nIt slides along each contact normal for up to DefaultMaxSlides iterations, updates body's position, velocity\nand contact flags (Grounded, OnCeiling, OnLeftWall, OnRightWall), and returns the collisions and surface state.\n",
              "file": "pkg/physics/slide.go",
              "line": 107
            },
            {
              "name": "MoveAndSlideWith",
              "anchor": "World.MoveAndSlideWith",
              "recv": "*World",
              "decl": "func (w *World) MoveAndSlideWith(body *Body, dt time.Duration, opts MoveOptions) SlideResult",
              "doc": "MoveAndSlideWith is like MoveAndSlide with configurable motion mode, up direction, floor angle,\nslide iteration limit, query mask, extra static rigid bodies and exclusions.\n",
              "file": "pkg/physics/slide.go",
              "line": 113
            },
            {
              "name": "QueryOverlap",
              "anchor": "World.QueryOverlap",
              "recv": "*World",
              "decl": "func (w *World) QueryOverlap(shape Shape) []OverlapHit",
              "doc": "QueryOverlap returns all bodies and tiles overlapping shape in deterministic order:\nmatching bodies in World.Bodies order followed by matching tiles in row-major order.\n",
              "file": "pkg/physics/world.go",
              "line": 100
            },
            {
              "name": "QueryOverlapLayer",
              "anchor": "World.QueryOverlapLayer",
              "recv": "*World",
              "decl": "func (w *World) QueryOverlapLayer(shape Shape, mask QueryMask, layerMask LayerMask) []OverlapHit",
              "doc": "QueryOverlapLayer returns all bodies and tiles matching mask and layerMask that overlap shape in deterministic order.\nA zero layerMask defaults to LayerAll; bodies match when their effective Layer shares at least one bit with layerMask.\n",
              "file": "pkg/physics/world.go",
              "line": 111
            },
            {
              "name": "QueryOverlapMask",
              "anchor": "World.QueryOverlapMask",
              "recv": "*World",
              "decl": "func (w *World) QueryOverlapMask(shape Shape, mask QueryMask) []OverlapHit",
              "doc": "QueryOverlapMask returns all bodies and tiles matching mask that overlap shape in deterministic order.\n",
              "file": "pkg/physics/world.go",
              "line": 105
            },
            {
              "name": "QueryPoint",
              "anchor": "World.QueryPoint",
              "recv": "*World",
              "decl": "func (w *World) QueryPoint(x, y float32) []*Body",
              "doc": "QueryPoint returns all bodies in World.Bodies whose shape contains (x, y), in World.Bodies order.\n",
              "file": "pkg/physics/world.go",
              "line": 181
            },
            {
              "name": "QueryPointLayer",
              "anchor": "World.QueryPointLayer",
              "recv": "*World",
              "decl": "func (w *World) QueryPointLayer(x, y float32, layerMask LayerMask) []*Body",
              "doc": "QueryPointLayer returns all bodies in World.Bodies matching layerMask whose shape contains (x, y), in World.Bodies order.\n",
              "file": "pkg/physics/world.go",
              "line": 186
            },
            {
              "name": "Raycast",
              "anchor": "World.Raycast",
              "recv": "*World",
              "decl": "func (w *World) Raycast(from, to core.Point, mask QueryMask) []RaycastHit",
              "doc": "Raycast casts a segment from from to to against targets selected by mask and returns every hit\nsorted by ascending distance T in [0, 1]. Equal distances keep bodies (in World.Bodies order)\nbefore tiles (in traversal order).\n",
              "file": "pkg/physics/world.go",
              "line": 200
            },
            {
              "name": "RaycastFirst",
              "anchor": "World.RaycastFirst",
              "recv": "*World",
              "decl": "func (w *World) RaycastFirst(from, to core.Point, mask QueryMask) (RaycastHit, bool)",
              "doc": "RaycastFirst returns the closest hit along the segment from from to to matching mask.\n",
              "file": "pkg/physics/world.go",
              "line": 239
            },
            {
              "name": "RaycastFirstLayer",
              "anchor": "World.RaycastFirstLayer",
              "recv": "*World",
              "decl": "func (w *World) RaycastFirstLayer(from, to core.Point, mask QueryMask, layerMask LayerMask) (RaycastHit, bool)",
              "doc": "RaycastFirstLayer returns the closest hit along the segment from from to to matching mask and layerMask.\n",
              "file": "pkg/physics/world.go",
              "line": 244
            },
            {
              "name": "RaycastLayer",
              "anchor": "World.RaycastLayer",
              "recv": "*World",
              "decl": "func (w *World) RaycastLayer(from, to core.Point, mask QueryMask, layerMask LayerMask) []RaycastHit",
              "doc": "RaycastLayer casts a segment from from to to against targets selected by mask and layerMask\nand returns every hit sorted by ascending distance T in [0, 1].\n",
              "file": "pkg/physics/world.go",
              "line": 206
            },
            {
              "name": "Remove",
              "anchor": "World.Remove",
              "recv": "*World",
              "decl": "func (w *World) Remove(b *Body) bool",
              "doc": "Remove deletes the first occurrence of b from w.Bodies, preserving the order of remaining bodies.\n",
              "file": "pkg/physics/world.go",
              "line": 88
            },
            {
              "name": "RemoveTrigger",
              "anchor": "World.RemoveTrigger",
              "recv": "*World",
              "decl": "func (w *World) RemoveTrigger(tr *Trigger) bool",
              "doc": "RemoveTrigger deletes the first occurrence of tr from w.Triggers, preserving the order\nof remaining triggers, and clears its tracked overlap state.\n",
              "file": "pkg/physics/trigger.go",
              "line": 41
            },
            {
              "name": "Restore",
              "anchor": "World.Restore",
              "recv": "*World",
              "decl": "func (w *World) Restore(snap WorldSnapshot) error",
              "doc": "Restore replaces w's state from snap. Existing *Body and *Trigger pointers\nare reused in place (matching by non-zero ID first, then by slot index) so\ncaller references, UserData, and Trigger callbacks remain intact.\n",
              "file": "pkg/physics/snapshot.go",
              "line": 476
            },
            {
              "name": "Save",
              "anchor": "World.Save",
              "recv": "*World",
              "decl": "func (w *World) Save() WorldSnapshot",
              "doc": "Save captures a deep, deterministic, JSON-serializable snapshot of w.\n",
              "file": "pkg/physics/snapshot.go",
              "line": 412
            },
            {
              "name": "ShapeCast",
              "anchor": "World.ShapeCast",
              "recv": "*World",
              "decl": "func (w *World) ShapeCast(shape Shape, dx, dy float32, mask QueryMask) (ShapeCastHit, bool)",
              "doc": "ShapeCast sweeps shape by (dx, dy) against targets in w selected by mask and returns the\nearliest hit. Equal fractions break ties deterministically: bodies in World.Bodies order\nbefore tiles in row-major (Row, Col) order.\n",
              "file": "pkg/physics/shapecast.go",
              "line": 71
            },
            {
              "name": "ShapeCastAll",
              "anchor": "World.ShapeCastAll",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastAll(shape Shape, dx, dy float32, mask QueryMask) []ShapeCastHit",
              "doc": "ShapeCastAll sweeps shape by (dx, dy) against targets in w selected by mask and returns\nevery hit sorted by ascending Fraction in [0, 1]. Equal fractions keep bodies (in World.Bodies\norder) before tiles (in row-major Row, Col order).\n",
              "file": "pkg/physics/shapecast.go",
              "line": 78
            },
            {
              "name": "ShapeCastAllLayer",
              "anchor": "World.ShapeCastAllLayer",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastAllLayer(shape Shape, dx, dy float32, mask QueryMask, layerMask LayerMask) []ShapeCastHit",
              "doc": "ShapeCastAllLayer sweeps shape by (dx, dy) against targets in w matching mask and layerMask\nand returns every hit sorted by ascending Fraction in [0, 1]. A zero layerMask defaults to LayerAll.\n",
              "file": "pkg/physics/shapecast.go",
              "line": 90
            },
            {
              "name": "ShapeCastAllWith",
              "anchor": "World.ShapeCastAllWith",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastAllWith(shape Shape, dx, dy float32, opts ShapeCastOptions) []ShapeCastHit",
              "doc": "ShapeCastAllWith sweeps shape by (dx, dy) against targets in w matching opts and returns\nevery hit sorted by ascending Fraction in [0, 1]. Equal fractions keep bodies (in World.Bodies\norder) before tiles (in row-major Row, Col order).\n",
              "file": "pkg/physics/shapecast.go",
              "line": 142
            },
            {
              "name": "ShapeCastLayer",
              "anchor": "World.ShapeCastLayer",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastLayer(shape Shape, dx, dy float32, mask QueryMask, layerMask LayerMask) (ShapeCastHit, bool)",
              "doc": "ShapeCastLayer sweeps shape by (dx, dy) against targets in w matching mask and layerMask\nand returns the earliest hit. A zero layerMask defaults to LayerAll.\n",
              "file": "pkg/physics/shapecast.go",
              "line": 84
            },
            {
              "name": "ShapeCastWith",
              "anchor": "World.ShapeCastWith",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastWith(shape Shape, dx, dy float32, opts ShapeCastOptions) (ShapeCastHit, bool)",
              "doc": "ShapeCastWith sweeps shape by (dx, dy) against targets in w matching opts and returns the\nearliest hit with deterministic tie-breaking.\n",
              "file": "pkg/physics/shapecast.go",
              "line": 96
            },
            {
              "name": "StepTriggers",
              "anchor": "World.StepTriggers",
              "recv": "*World",
              "decl": "func (w *World) StepTriggers()",
              "doc": "StepTriggers evaluates every trigger in w.Triggers against w.Bodies in deterministic order\nand dispatches OnEnter, OnStay, and OnExit callbacks for changed or continuing overlaps.\nRemoving a body from w.Bodies causes OnExit to fire on the next StepTriggers call.\n",
              "file": "pkg/physics/trigger.go",
              "line": 57
            }
          ]
        },
        {
          "name": "WorldSnapshot",
          "anchor": "WorldSnapshot",
          "decl": "type WorldSnapshot struct {\n\tVersion       int                          `json:\"version\"`\n\tGravityX      float32                      `json:\"gravityX\"`\n\tGravityY      float32                      `json:\"gravityY\"`\n\tBodies        []BodySnapshot               `json:\"bodies,omitempty\"`\n\tTriggers      []TriggerSnapshot            `json:\"triggers,omitempty\"`\n\tTriggerActive []WorldTriggerActiveSnapshot `json:\"triggerActive,omitempty\"`\n\tGrid          *GridSnapshot                `json:\"grid,omitempty\"`\n}",
          "doc": "WorldSnapshot captures the complete deterministic state of a physics.World,\nincluding all bodies, triggers, private trigger enter/stay/exit tracking,\ngravity, and any *Grid tilemap. It marshals cleanly with encoding/json.\n",
          "file": "pkg/physics/snapshot.go",
          "line": 105,
          "members": [
            {
              "name": "Version",
              "anchor": "WorldSnapshot.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityX",
              "anchor": "WorldSnapshot.GravityX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityY",
              "anchor": "WorldSnapshot.GravityY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bodies",
              "anchor": "WorldSnapshot.Bodies",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triggers",
              "anchor": "WorldSnapshot.Triggers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriggerActive",
              "anchor": "WorldSnapshot.TriggerActive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grid",
              "anchor": "WorldSnapshot.Grid",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldTriggerActiveSnapshot",
          "anchor": "WorldTriggerActiveSnapshot",
          "decl": "type WorldTriggerActiveSnapshot struct {\n\tTriggerIndex int            `json:\"triggerIndex\"`\n\tBodyIndices  []int          `json:\"bodyIndices,omitempty\"`\n\tDetached     []BodySnapshot `json:\"detached,omitempty\"`\n}",
          "doc": "WorldTriggerActiveSnapshot records the active overlapping bodies tracked for one trigger in World.\nNon-negative BodyIndices index into WorldSnapshot.Bodies; negative values (-1 - k) index Detached[k].\n",
          "file": "pkg/physics/snapshot.go",
          "line": 46,
          "members": [
            {
              "name": "TriggerIndex",
              "anchor": "WorldTriggerActiveSnapshot.TriggerIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyIndices",
              "anchor": "WorldTriggerActiveSnapshot.BodyIndices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Detached",
              "anchor": "WorldTriggerActiveSnapshot.Detached",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/physics3d",
      "name": "physics3d",
      "dir": "pkg/physics3d",
      "page": "pkg/physics3d",
      "synopsis": "Package physics3d provides compact, deterministic 3D collision detection, raycasting, rigid-body dynamics, and a kinematic character controller in pure Go.",
      "doc": "Package physics3d provides compact, deterministic 3D collision detection, raycasting, rigid-body dynamics, and a kinematic character controller in pure Go.\n\n# Architecture\n\nphysics3d is implemented purely with the Go standard library and no cgo or third-party physics engine bindings (Epic #180, option a). Avoiding cgo keeps builds reproducible and portable across every NSGo target — macOS, Windows, Linux, iOS, Android, and WebAssembly — without C/C++ toolchains, per-platform native libraries, or FFI marshaling overhead.\n\nThe simulation trades full articulated meshes for a focused set of primitives (boxes, spheres, capsules, convex hulls built from point clouds or meshes, cylinders, and compound shapes assembled from child colliders with local offsets, rotations, combined parallel-axis inertia tensors, and optional per-child triggers and collision layers), exact overlap and raycast queries, rigid bodies with iterative impulse and positional resolution, and a capsule character controller that handles slopes, stairs, and wall sliding. Pairs that involve a convex hull or a cylinder are tested with GJK and EPA and give the solver up to four contact points over the touching area.\n\n# Coordinate Convention\n\nphysics3d uses a right-handed, Y-up coordinate system: +X is right, +Y is up, and +Z points toward the viewer. Default gravity in NewWorld is (0, -9.81, 0).\n\n# Determinism\n\nStepping a World with fixed durations (such as from game.Loop.Update) runs collision detection, impulse solving, and positional correction in a fixed body and contact order with no map-order iteration or wall-clock input, so identical initial states produce bit-identical trajectories across runs.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultHullVertices",
              "anchor": "DefaultHullVertices"
            },
            {
              "name": "MaxHullVertices",
              "anchor": "MaxHullVertices"
            }
          ],
          "decl": "const (\n\t// DefaultHullVertices is the vertex limit NewConvexHull uses when given a limit of 0 or less.\n\tDefaultHullVertices = 64\n\t// MaxHullVertices is the largest vertex limit NewConvexHull accepts; larger limits are lowered to it.\n\tMaxHullVertices = 256\n)",
          "doc": "",
          "file": "pkg/physics3d/convex.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "DefaultSoftSubsteps",
              "anchor": "DefaultSoftSubsteps"
            },
            {
              "name": "DefaultSoftIterations",
              "anchor": "DefaultSoftIterations"
            }
          ],
          "decl": "const (\n\t// DefaultSoftSubsteps is the default number of XPBD substeps per SoftWorld.Step.\n\tDefaultSoftSubsteps = 8\n\t// DefaultSoftIterations is the default number of constraint solver iterations per substep.\n\tDefaultSoftIterations = 6\n)",
          "doc": "",
          "file": "pkg/physics3d/xpbd.go",
          "line": 8
        },
        {
          "idents": [
            {
              "name": "SnapshotVersion",
              "anchor": "SnapshotVersion"
            }
          ],
          "decl": "const SnapshotVersion = 1",
          "doc": "SnapshotVersion is the schema version stored in WorldSnapshot.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 14
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrDegenerateHull",
              "anchor": "ErrDegenerateHull"
            }
          ],
          "decl": "var ErrDegenerateHull = errors.New(\"physics3d: points do not span a convex volume\")",
          "doc": "ErrDegenerateHull is returned by NewConvexHull and ConvexHullFromMesh when the points do not span a volume: fewer than four of them, all on one plane, line or point, or not finite.\n",
          "file": "pkg/physics3d/convex.go",
          "line": 22
        }
      ],
      "funcs": [
        {
          "name": "BoxEdges",
          "anchor": "BoxEdges",
          "decl": "func BoxEdges(b Box) [12][2]Vec3",
          "doc": "BoxEdges returns the 12 wireframe line segments of b in deterministic order\n(4 on the min-Z face, 4 on the max-Z face, and 4 connecting Z edges).\n",
          "file": "pkg/physics3d/wireframe.go",
          "line": 52
        },
        {
          "name": "CanCollide",
          "anchor": "CanCollide",
          "decl": "func CanCollide(a, b *Body) bool",
          "doc": "CanCollide reports whether bodies a and b are permitted to collide or overlap\nbased on their Layer and Mask bitmasks. Zero Layer or Mask fields default to\nLayerAll for backwards compatibility.\n",
          "file": "pkg/physics3d/layers_triggers.go",
          "line": 41
        },
        {
          "name": "CapsuleEdges",
          "anchor": "CapsuleEdges",
          "decl": "func CapsuleEdges(c Capsule, segments int) [][2]Vec3",
          "doc": "CapsuleEdges returns wireframe line segments for capsule c aligned with its\naxis (B - A): two end-cap rings at A and B, four longitudinal rails, and four\nhemisphere arcs capping both ends. Degenerate capsules (A == B) fall back to\nSphereEdges. Non-positive radii return nil; non-positive segments default to\n24 (minimum 4).\n",
          "file": "pkg/physics3d/wireframe.go",
          "line": 103
        },
        {
          "name": "ConvexHullEdges",
          "anchor": "ConvexHullEdges",
          "decl": "func ConvexHullEdges(h ConvexHull, rot Quat) [][2]Vec3",
          "doc": "ConvexHullEdges returns the world-space wireframe segments of h turned by rot about its Center, one per hull edge in the order of Edges.\n",
          "file": "pkg/physics3d/convex.go",
          "line": 229
        },
        {
          "name": "CylinderEdges",
          "anchor": "CylinderEdges",
          "decl": "func CylinderEdges(c Cylinder, segments int) [][2]Vec3",
          "doc": "CylinderEdges returns wireframe line segments for cylinder c: a ring around each cap and four lines along its side. Non-positive radii and zero-length axes return nil; non-positive segments default to 24 (minimum 4).\n",
          "file": "pkg/physics3d/cylinder.go",
          "line": 161
        },
        {
          "name": "DrawBody",
          "anchor": "DrawBody",
          "decl": "func DrawBody(d *core.Drawing, viewProj Mat4, viewport core.Bounds, b *Body, style DebugStyle)",
          "doc": "DrawBody draws the world-space collider wireframe of b onto d.\n",
          "file": "pkg/physics3d/debugdraw.go",
          "line": 221
        },
        {
          "name": "DrawCharacter",
          "anchor": "DrawCharacter",
          "decl": "func DrawCharacter(d *core.Drawing, viewProj Mat4, viewport core.Bounds, c *CharacterController, style DebugStyle)",
          "doc": "DrawCharacter draws the kinematic capsule wireframe of c onto d, along with\nits ground normal when grounded.\n",
          "file": "pkg/physics3d/debugdraw.go",
          "line": 230
        },
        {
          "name": "DrawContact",
          "anchor": "DrawContact",
          "decl": "func DrawContact(d *core.Drawing, viewProj Mat4, viewport core.Bounds, c Contact, style DebugStyle)",
          "doc": "DrawContact draws a contact point marker and its surface normal arrow onto d.\nNon-hitting contacts are ignored.\n",
          "file": "pkg/physics3d/debugdraw.go",
          "line": 244
        },
        {
          "name": "DrawLine3D",
          "anchor": "DrawLine3D",
          "decl": "func DrawLine3D(d *core.Drawing, viewProj Mat4, viewport core.Bounds, a, b Vec3, col core.Color, lineWidth float32)",
          "doc": "DrawLine3D projects and strokes a 3D line segment [a, b] onto d using viewProj and viewport, clipping cleanly against the camera frustum and near plane. It leaves d's graphics state unchanged.\n\nThe near plane is clip z >= -w, right for a [-1, 1] depth projection such as [Mat4Perspective] or [Mat4Ortho]. Use [DrawLine3DZO] for a [0, 1] projection such as math3d.Perspective or math3d.Ortho.\n",
          "file": "pkg/physics3d/debugdraw.go",
          "line": 133
        },
        {
          "name": "DrawLine3DZO",
          "anchor": "DrawLine3DZO",
          "decl": "func DrawLine3DZO(d *core.Drawing, viewProj Mat4, viewport core.Bounds, a, b Vec3, col core.Color, lineWidth float32)",
          "doc": "DrawLine3DZO is [DrawLine3D] for a [0, 1] depth projection such as math3d.Perspective, math3d.Ortho or a render3d camera: it clips at clip z >= 0, as render3d.ProjectSegment does. DrawLine3D used with a [0, 1] orthographic projection would draw segments behind the camera, because w is 1 there everywhere (#546).\n",
          "file": "pkg/physics3d/debugdraw.go",
          "line": 138
        },
        {
          "name": "DrawRaycast",
          "anchor": "DrawRaycast",
          "decl": "func DrawRaycast(d *core.Drawing, viewProj Mat4, viewport core.Bounds, ray Ray, hit RaycastHit, hitOK bool, style DebugStyle)",
          "doc": "DrawRaycast draws a 3D ray segment onto d. When hitOK is true, the ray is\ndrawn from ray.Origin to hit.Point and the hit point and outward normal are\ndrawn as a contact; otherwise the full ray up to ray.MaxDist is drawn.\n",
          "file": "pkg/physics3d/debugdraw.go",
          "line": 334
        },
        {
          "name": "DrawShape",
          "anchor": "DrawShape",
          "decl": "func DrawShape(d *core.Drawing, viewProj Mat4, viewport core.Bounds, s Shape, style DebugStyle)",
          "doc": "DrawShape draws a 3D wireframe of s projected into viewport onto d.\n",
          "file": "pkg/physics3d/debugdraw.go",
          "line": 193
        },
        {
          "name": "DrawSoftWorld",
          "anchor": "DrawSoftWorld",
          "decl": "func DrawSoftWorld(d *core.Drawing, viewProj Mat4, viewport core.Bounds, sw *SoftWorld, style DebugStyle)",
          "doc": "DrawSoftWorld projects and draws XPBD structural constraint wireframes, rigid\nattachments, and pinned particle markers from sw onto d using viewProj, viewport,\nand style (respecting style.DepthZO). Release builds compile this to a no-op.\n",
          "file": "pkg/physics3d/xpbd_debugdraw.go",
          "line": 14
        },
        {
          "name": "DrawWorld",
          "anchor": "DrawWorld",
          "decl": "func DrawWorld(d *core.Drawing, viewProj Mat4, viewport core.Bounds, w *World, style DebugStyle)",
          "doc": "DrawWorld draws the wireframes of every body in w in deterministic order,\nfollowed by contact markers and normals for any currently overlapping pairs.\n",
          "file": "pkg/physics3d/debugdraw.go",
          "line": 274
        },
        {
          "name": "GenerateCoverPointsFromBodies",
          "anchor": "GenerateCoverPointsFromBodies",
          "decl": "func GenerateCoverPointsFromBodies(bodies []*Body, opts CoverOptions) []ai.CoverPoint",
          "doc": "GenerateCoverPointsFromBodies generates deterministic XZ-plane cover points from the given 3D bodies: axis-aligned or oriented boxes, spheres, vertical capsules, and cylinders standing on an end (their axis within about 25 degrees of vertical). Convex hulls and cylinders lying on their side generate no cover.\n",
          "file": "pkg/physics3d/cover.go",
          "line": 46
        },
        {
          "name": "OrientedBoxEdges",
          "anchor": "OrientedBoxEdges",
          "decl": "func OrientedBoxEdges(b Box, rot Quat) [12][2]Vec3",
          "doc": "OrientedBoxEdges returns the 12 world-space edges of b rotated by rot about its Center.\n",
          "file": "pkg/physics3d/obb.go",
          "line": 237
        },
        {
          "name": "Project",
          "anchor": "Project",
          "decl": "func Project(viewProj Mat4, viewport core.Bounds, p Vec3) (core.Point, float32, bool)",
          "doc": "Project transforms world-space point p by viewProj and maps normalized device coordinates to viewport screen coordinates (X left-to-right in [viewport.Origin.X, viewport.Origin.X+viewport.Size.Width], Y top-down in [viewport.Origin.Y, viewport.Origin.Y+viewport.Size.Height]).\n\nIt returns the screen point, the normalized depth ndcZ, and ok == true when clip w > 0 and ndcZ is within [-1, 1], the depth range of this package's Mat4Perspective and Mat4Ortho. For a [0, 1] depth projection (math3d.Perspective, math3d.Ortho, a render3d camera) the caller must also require ndcZ >= 0: an orthographic [0, 1] camera has w = 1 everywhere, so a point behind it gets ndcZ in [-1, 0) and is still reported ok, as [DebugStyle.DepthZO] does for DrawContact.\n",
          "file": "pkg/physics3d/mat4.go",
          "line": 129
        },
        {
          "name": "SphereEdges",
          "anchor": "SphereEdges",
          "decl": "func SphereEdges(s Sphere, segments int) [][2]Vec3",
          "doc": "SphereEdges returns wireframe line segments for three orthogonal great\ncircles (XY, XZ, and YZ planes) of sphere s. Non-positive radii return nil;\nnon-positive segments default to 24 (minimum 3).\n",
          "file": "pkg/physics3d/wireframe.go",
          "line": 82
        }
      ],
      "types": [
        {
          "name": "ActiveContactSnapshot",
          "anchor": "ActiveContactSnapshot",
          "decl": "type ActiveContactSnapshot struct {\n\tKeyA        int     `json:\"keyA\"`\n\tKeyB        int     `json:\"keyB\"`\n\tKeyChildA   int     `json:\"keyChildA\"`\n\tKeyChildB   int     `json:\"keyChildB\"`\n\tBodyAID     int     `json:\"bodyAID\"`\n\tBodyBID     int     `json:\"bodyBID\"`\n\tChildIndexA int     `json:\"childIndexA\"`\n\tChildIndexB int     `json:\"childIndexB\"`\n\tPoint       Vec3    `json:\"point\"`\n\tNormal      Vec3    `json:\"normal\"`\n\tDepth       float32 `json:\"depth\"`\n\tIsTrigger   bool    `json:\"isTrigger,omitempty\"`\n}",
          "doc": "ActiveContactSnapshot captures one active contact or trigger overlap record.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 100,
          "members": [
            {
              "name": "KeyA",
              "anchor": "ActiveContactSnapshot.KeyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeyB",
              "anchor": "ActiveContactSnapshot.KeyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeyChildA",
              "anchor": "ActiveContactSnapshot.KeyChildA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KeyChildB",
              "anchor": "ActiveContactSnapshot.KeyChildB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyAID",
              "anchor": "ActiveContactSnapshot.BodyAID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyBID",
              "anchor": "ActiveContactSnapshot.BodyBID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildIndexA",
              "anchor": "ActiveContactSnapshot.ChildIndexA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildIndexB",
              "anchor": "ActiveContactSnapshot.ChildIndexB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point",
              "anchor": "ActiveContactSnapshot.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "ActiveContactSnapshot.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "ActiveContactSnapshot.Depth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsTrigger",
              "anchor": "ActiveContactSnapshot.IsTrigger",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "UnmarshalJSON",
              "anchor": "ActiveContactSnapshot.UnmarshalJSON",
              "recv": "*ActiveContactSnapshot",
              "decl": "func (a *ActiveContactSnapshot) UnmarshalJSON(data []byte) error",
              "doc": "UnmarshalJSON defaults child indices to -1 when omitted in pre-compound v1 snapshots.\n",
              "file": "pkg/physics3d/snapshot.go",
              "line": 116
            }
          ]
        },
        {
          "name": "AreaEffect",
          "anchor": "AreaEffect",
          "decl": "type AreaEffect struct {\n\tGravity           Vec3\n\tLinearDamping     float32\n\tAngularDamping    float32\n\tHasLinearDamping  bool\n\tHasAngularDamping bool\n\tSubmergedFraction float32\n\tBuoyancyAccel     Vec3\n\tFluidLinearDrag   float32\n\tFluidAngularDrag  float32\n\tFluidVelocity     Vec3\n}",
          "doc": "AreaEffect holds the resolved gravity, damping, and fluid state at a point or\nshape from all overlapping active trigger bodies.\n",
          "file": "pkg/physics3d/area.go",
          "line": 112,
          "members": [
            {
              "name": "Gravity",
              "anchor": "AreaEffect.Gravity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LinearDamping",
              "anchor": "AreaEffect.LinearDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngularDamping",
              "anchor": "AreaEffect.AngularDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasLinearDamping",
              "anchor": "AreaEffect.HasLinearDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasAngularDamping",
              "anchor": "AreaEffect.HasAngularDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SubmergedFraction",
              "anchor": "AreaEffect.SubmergedFraction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BuoyancyAccel",
              "anchor": "AreaEffect.BuoyancyAccel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FluidLinearDrag",
              "anchor": "AreaEffect.FluidLinearDrag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FluidAngularDrag",
              "anchor": "AreaEffect.FluidAngularDrag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FluidVelocity",
              "anchor": "AreaEffect.FluidVelocity",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AreaOverrideMode",
          "anchor": "AreaOverrideMode",
          "decl": "type AreaOverrideMode uint8",
          "doc": "AreaOverrideMode controls how a trigger Body's AreaSettings combines its\ngravity or damping value with overlapping areas and the world or body default.\n",
          "file": "pkg/physics3d/area.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AreaOverrideNone",
                  "anchor": "AreaOverrideNone"
                },
                {
                  "name": "AreaOverrideCombine",
                  "anchor": "AreaOverrideCombine"
                },
                {
                  "name": "AreaOverrideReplace",
                  "anchor": "AreaOverrideReplace"
                },
                {
                  "name": "AreaOverrideAdd",
                  "anchor": "AreaOverrideAdd"
                }
              ],
              "decl": "const (\n\t// AreaOverrideNone leaves the world or body default unchanged (zero value).\n\tAreaOverrideNone AreaOverrideMode = iota\n\t// AreaOverrideCombine sums this area's value with other equal-priority\n\t// Combine or Add areas (plus any higher-priority Add areas) and replaces\n\t// lower-priority areas and the world/body default.\n\tAreaOverrideCombine\n\t// AreaOverrideReplace replaces lower- and equal-priority areas and the\n\t// world/body default with this area's value. Higher-priority Add areas\n\t// still add on top.\n\tAreaOverrideReplace\n\t// AreaOverrideAdd adds this area's value on top of lower-priority areas\n\t// and the world/body default.\n\tAreaOverrideAdd\n)",
              "doc": "",
              "file": "pkg/physics3d/area.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AreaSettings",
          "anchor": "AreaSettings",
          "decl": "type AreaSettings struct {\n\t// Priority orders overlapping areas: higher Priority takes precedence.\n\t// Equal priorities break ties deterministically by World body insertion order.\n\tPriority int\n\n\t// GravityMode controls whether and how this area overrides gravity.\n\tGravityMode AreaOverrideMode\n\t// Gravity is the directional gravity acceleration (units/s^2) used when\n\t// PointGravity is false.\n\tGravity Vec3\n\n\t// PointGravity switches gravity from directional Gravity to a radial field\n\t// centered at GravityPoint.\n\tPointGravity bool\n\t// GravityPoint is the world-space point-gravity center.\n\tGravityPoint Vec3\n\t// GravityStrength is the acceleration magnitude (units/s^2) toward\n\t// GravityPoint (negative values repel).\n\tGravityStrength float32\n\t// GravityFalloff selects distance attenuation for PointGravity.\n\tGravityFalloff GravityFalloff\n\t// GravityUnitDistance is the reference distance for GravityFalloffInverse\n\t// and GravityFalloffInverseSquare (defaults to 1 when <= 0), or the cutoff\n\t// radius for GravityFalloffLinear (defaults to the trigger's outer radius\n\t// when <= 0).\n\tGravityUnitDistance float32\n\n\t// LinearDampingMode controls whether and how LinearDamping overrides a body's damping.\n\tLinearDampingMode AreaOverrideMode\n\t// LinearDamping is the linear damping coefficient (1/s) applied according to LinearDampingMode.\n\tLinearDamping float32\n\n\t// AngularDampingMode controls whether and how AngularDamping overrides a body's damping.\n\tAngularDampingMode AreaOverrideMode\n\t// AngularDamping is the angular damping coefficient (1/s) applied according to AngularDampingMode.\n\tAngularDamping float32\n\n\t// FluidDensity enables Archimedes buoyancy when > 0 (mass per unit volume, kg/m^3).\n\t// A body with implicit density Mass/Volume settles at submerged fraction\n\t// (Mass / Volume) / FluidDensity.\n\tFluidDensity float32\n\t// FluidLinearDrag is the linear fluid drag coefficient (1/s), scaled by the\n\t// submerged fraction of the body's bounds.\n\tFluidLinearDrag float32\n\t// FluidAngularDrag is the angular fluid drag coefficient (1/s), scaled by the\n\t// submerged fraction of the body's bounds.\n\tFluidAngularDrag float32\n\t// FluidVelocity is the fluid flow velocity (units/s) relative to which\n\t// FluidLinearDrag acts.\n\tFluidVelocity Vec3\n}",
          "doc": "AreaSettings configures gravity, damping, and buoyancy/fluid drag overrides\nfor a 3D trigger Body (IsTrigger == true). The zero value has no physical effect.\n",
          "file": "pkg/physics3d/area.go",
          "line": 48,
          "members": [
            {
              "name": "Priority",
              "anchor": "AreaSettings.Priority",
              "kind": "field",
              "doc": "Priority orders overlapping areas: higher Priority takes precedence.\nEqual priorities break ties deterministically by World body insertion order."
            },
            {
              "name": "GravityMode",
              "anchor": "AreaSettings.GravityMode",
              "kind": "field",
              "doc": "GravityMode controls whether and how this area overrides gravity."
            },
            {
              "name": "Gravity",
              "anchor": "AreaSettings.Gravity",
              "kind": "field",
              "doc": "Gravity is the directional gravity acceleration (units/s^2) used when\nPointGravity is false."
            },
            {
              "name": "PointGravity",
              "anchor": "AreaSettings.PointGravity",
              "kind": "field",
              "doc": "PointGravity switches gravity from directional Gravity to a radial field\ncentered at GravityPoint."
            },
            {
              "name": "GravityPoint",
              "anchor": "AreaSettings.GravityPoint",
              "kind": "field",
              "doc": "GravityPoint is the world-space point-gravity center."
            },
            {
              "name": "GravityStrength",
              "anchor": "AreaSettings.GravityStrength",
              "kind": "field",
              "doc": "GravityStrength is the acceleration magnitude (units/s^2) toward\nGravityPoint (negative values repel)."
            },
            {
              "name": "GravityFalloff",
              "anchor": "AreaSettings.GravityFalloff",
              "kind": "field",
              "doc": "GravityFalloff selects distance attenuation for PointGravity."
            },
            {
              "name": "GravityUnitDistance",
              "anchor": "AreaSettings.GravityUnitDistance",
              "kind": "field",
              "doc": "GravityUnitDistance is the reference distance for GravityFalloffInverse\nand GravityFalloffInverseSquare (defaults to 1 when <= 0), or the cutoff\nradius for GravityFalloffLinear (defaults to the trigger's outer radius\nwhen <= 0)."
            },
            {
              "name": "LinearDampingMode",
              "anchor": "AreaSettings.LinearDampingMode",
              "kind": "field",
              "doc": "LinearDampingMode controls whether and how LinearDamping overrides a body's damping."
            },
            {
              "name": "LinearDamping",
              "anchor": "AreaSettings.LinearDamping",
              "kind": "field",
              "doc": "LinearDamping is the linear damping coefficient (1/s) applied according to LinearDampingMode."
            },
            {
              "name": "AngularDampingMode",
              "anchor": "AreaSettings.AngularDampingMode",
              "kind": "field",
              "doc": "AngularDampingMode controls whether and how AngularDamping overrides a body's damping."
            },
            {
              "name": "AngularDamping",
              "anchor": "AreaSettings.AngularDamping",
              "kind": "field",
              "doc": "AngularDamping is the angular damping coefficient (1/s) applied according to AngularDampingMode."
            },
            {
              "name": "FluidDensity",
              "anchor": "AreaSettings.FluidDensity",
              "kind": "field",
              "doc": "FluidDensity enables Archimedes buoyancy when > 0 (mass per unit volume, kg/m^3).\nA body with implicit density Mass/Volume settles at submerged fraction\n(Mass / Volume) / FluidDensity."
            },
            {
              "name": "FluidLinearDrag",
              "anchor": "AreaSettings.FluidLinearDrag",
              "kind": "field",
              "doc": "FluidLinearDrag is the linear fluid drag coefficient (1/s), scaled by the\nsubmerged fraction of the body's bounds."
            },
            {
              "name": "FluidAngularDrag",
              "anchor": "AreaSettings.FluidAngularDrag",
              "kind": "field",
              "doc": "FluidAngularDrag is the angular fluid drag coefficient (1/s), scaled by the\nsubmerged fraction of the body's bounds."
            },
            {
              "name": "FluidVelocity",
              "anchor": "AreaSettings.FluidVelocity",
              "kind": "field",
              "doc": "FluidVelocity is the fluid flow velocity (units/s) relative to which\nFluidLinearDrag acts."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Active",
              "anchor": "AreaSettings.Active",
              "recv": "AreaSettings",
              "decl": "func (a AreaSettings) Active() bool",
              "doc": "Active reports whether a enables any gravity, damping, or fluid effect.\n",
              "file": "pkg/physics3d/area.go",
              "line": 101
            }
          ]
        },
        {
          "name": "AxisConfig",
          "anchor": "AxisConfig",
          "decl": "type AxisConfig struct {\n\tMode      AxisMode\n\tMin       float32 // lower limit (meters or radians) when Mode == AxisLimited\n\tMax       float32 // upper limit (meters or radians) when Mode == AxisLimited\n\tDrive     DriveMode\n\tStiffness float32 // spring stiffness (N/m for linear, N*m/rad for angular)\n\tDamping   float32 // damping coefficient (N*s/m for linear, N*m*s/rad for angular)\n\tTargetPos float32 // target position (meters) or angle (radians)\n\tTargetVel float32 // target velocity (m/s) or angular velocity (rad/s)\n\tMaxForce  float32 // max drive force (N) or torque (N*m); <= 0 means unlimited\n}",
          "doc": "AxisConfig configures one linear (X, Y, Z) or angular (X, Y, Z) degree of\nfreedom of a SixDOFJoint.\n",
          "file": "pkg/physics3d/joints_6dof.go",
          "line": 508,
          "members": [
            {
              "name": "Mode",
              "anchor": "AxisConfig.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Min",
              "anchor": "AxisConfig.Min",
              "kind": "field",
              "doc": "lower limit (meters or radians) when Mode == AxisLimited"
            },
            {
              "name": "Max",
              "anchor": "AxisConfig.Max",
              "kind": "field",
              "doc": "upper limit (meters or radians) when Mode == AxisLimited"
            },
            {
              "name": "Drive",
              "anchor": "AxisConfig.Drive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stiffness",
              "anchor": "AxisConfig.Stiffness",
              "kind": "field",
              "doc": "spring stiffness (N/m for linear, N*m/rad for angular)"
            },
            {
              "name": "Damping",
              "anchor": "AxisConfig.Damping",
              "kind": "field",
              "doc": "damping coefficient (N*s/m for linear, N*m*s/rad for angular)"
            },
            {
              "name": "TargetPos",
              "anchor": "AxisConfig.TargetPos",
              "kind": "field",
              "doc": "target position (meters) or angle (radians)"
            },
            {
              "name": "TargetVel",
              "anchor": "AxisConfig.TargetVel",
              "kind": "field",
              "doc": "target velocity (m/s) or angular velocity (rad/s)"
            },
            {
              "name": "MaxForce",
              "anchor": "AxisConfig.MaxForce",
              "kind": "field",
              "doc": "max drive force (N) or torque (N*m); <= 0 means unlimited"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AxisMode",
          "anchor": "AxisMode",
          "decl": "type AxisMode int",
          "doc": "AxisMode controls whether one linear or angular degree of freedom on a\nSixDOFJoint is free, locked at 0, or clamped to [Min, Max].\n",
          "file": "pkg/physics3d/joints_6dof.go",
          "line": 481,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AxisFree",
                  "anchor": "AxisFree"
                },
                {
                  "name": "AxisLocked",
                  "anchor": "AxisLocked"
                },
                {
                  "name": "AxisLimited",
                  "anchor": "AxisLimited"
                }
              ],
              "decl": "const (\n\t// AxisFree leaves the axis unconstrained (optional springs and drives still apply).\n\tAxisFree AxisMode = iota\n\t// AxisLocked rigidly locks the axis at 0.\n\tAxisLocked\n\t// AxisLimited clamps the axis to [Min, Max].\n\tAxisLimited\n)",
              "doc": "",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 483
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BallJoint",
          "anchor": "BallJoint",
          "decl": "type BallJoint struct {\n\tBodyA, BodyB     *Body\n\tLocalAnchorA     Vec3\n\tLocalAnchorB     Vec3\n\tConeLimit        float32 // maximum half-angle in radians (> 0 enables cone limit)\n\tLocalAxisA       Vec3    // cone reference axis in A's local space (defaults to +Y)\n\tLocalAxisB       Vec3    // bone/body axis in B's local space (defaults to +Y)\n\tBreakForce       float32 // max reaction force in N before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque in N*m before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "BallJoint is a 3D ball-and-socket point constraint with an optional symmetric\ncone swing limit.\n",
          "file": "pkg/physics3d/joints.go",
          "line": 635,
          "members": [
            {
              "name": "BodyA",
              "anchor": "BallJoint.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "BallJoint.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorA",
              "anchor": "BallJoint.LocalAnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorB",
              "anchor": "BallJoint.LocalAnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConeLimit",
              "anchor": "BallJoint.ConeLimit",
              "kind": "field",
              "doc": "maximum half-angle in radians (> 0 enables cone limit)"
            },
            {
              "name": "LocalAxisA",
              "anchor": "BallJoint.LocalAxisA",
              "kind": "field",
              "doc": "cone reference axis in A's local space (defaults to +Y)"
            },
            {
              "name": "LocalAxisB",
              "anchor": "BallJoint.LocalAxisB",
              "kind": "field",
              "doc": "bone/body axis in B's local space (defaults to +Y)"
            },
            {
              "name": "BreakForce",
              "anchor": "BallJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force in N before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "BallJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque in N*m before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "BallJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBallJoint",
              "anchor": "NewBallJoint",
              "decl": "func NewBallJoint(a, b *Body, localAnchorA, localAnchorB Vec3) *BallJoint",
              "doc": "NewBallJoint creates a BallJoint locking LocalAnchorA on a to LocalAnchorB on b.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 651
            }
          ],
          "methods": [
            {
              "name": "Bodies",
              "anchor": "BallJoint.Bodies",
              "recv": "*BallJoint",
              "decl": "func (j *BallJoint) Bodies() (*Body, *Body)",
              "doc": "Bodies returns the connected bodies.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 669
            },
            {
              "name": "Broken",
              "anchor": "BallJoint.Broken",
              "recv": "*BallJoint",
              "decl": "func (r *BallJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 83
            },
            {
              "name": "Prepare",
              "anchor": "BallJoint.Prepare",
              "recv": "*BallJoint",
              "decl": "func (j *BallJoint) Prepare(dt float32)",
              "doc": "Prepare resets per-step accumulated limit impulses.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 684
            },
            {
              "name": "ReactionForce",
              "anchor": "BallJoint.ReactionForce",
              "recv": "*BallJoint",
              "decl": "func (r *BallJoint) ReactionForce() Vec3",
              "doc": "ReactionForce returns the world-space constraint force (in Newtons) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 66
            },
            {
              "name": "ReactionTorque",
              "anchor": "BallJoint.ReactionTorque",
              "recv": "*BallJoint",
              "decl": "func (r *BallJoint) ReactionTorque() Vec3",
              "doc": "ReactionTorque returns the world-space constraint torque (in N*m) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 75
            },
            {
              "name": "SolvePosition",
              "anchor": "BallJoint.SolvePosition",
              "recv": "*BallJoint",
              "decl": "func (j *BallJoint) SolvePosition(dt float32)",
              "doc": "SolvePosition corrects socket anchor drift and optional cone swing violations.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 737
            },
            {
              "name": "SolveVelocity",
              "anchor": "BallJoint.SolveVelocity",
              "recv": "*BallJoint",
              "decl": "func (j *BallJoint) SolveVelocity(dt float32)",
              "doc": "SolveVelocity solves the 3D socket point constraint and optional cone swing limit.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 690
            }
          ]
        },
        {
          "name": "BendingConstraint",
          "anchor": "BendingConstraint",
          "decl": "type BendingConstraint struct {\n\tA, B, C, D int\n\tRestAngle  float32\n\tCompliance float32\n\t// contains filtered or unexported fields\n}",
          "doc": "BendingConstraint constrains the signed dihedral angle between triangles (A, B, C)\nand (B, A, D) sharing edge (A, B) toward RestAngle (in radians; 0 is coplanar/flat).\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 81,
          "members": [
            {
              "name": "A",
              "anchor": "BendingConstraint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "BendingConstraint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "C",
              "anchor": "BendingConstraint.C",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "D",
              "anchor": "BendingConstraint.D",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestAngle",
              "anchor": "BendingConstraint.RestAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "BendingConstraint.Compliance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Body",
          "anchor": "Body",
          "decl": "type Body struct {\n\t// ID uniquely identifies the body inside its World. AddBody assigns one\n\t// sequentially when ID is 0.\n\tID int\n\t// Tag is an optional user label for identifying bodies in query results.\n\tTag string\n\t// Shape is the body's collision primitive in local coordinates relative to Pos.\n\tShape Shape\n\t// Pos is the body's world-space position.\n\tPos Vec3\n\t// Vel is the body's linear velocity in units per second.\n\tVel Vec3\n\t// Rot is the body's world-space orientation quaternion. A zero quaternion is\n\t// normalized to identity by AddBody and treated as identity by helpers.\n\tRot Quat\n\t// AngVel is the body's angular velocity in radians per second.\n\tAngVel Vec3\n\t// Mass is the body's mass in kilograms. Zero mass marks a static body.\n\tMass float32\n\t// InvMass is 1/Mass for dynamic bodies and 0 for static bodies.\n\tInvMass float32\n\t// InvInertia is the body's scalar inverse rotational inertia fallback.\n\t// AddBody computes both InvInertiaTensor and InvInertia from Shape and Mass\n\t// unless LockRotation is set or an explicit inertia override is provided.\n\tInvInertia float32\n\t// CenterOfMass is the body's center of mass in local coordinates relative to Pos.\n\t// For dynamic compound bodies, AddBody computes it from all solid children\n\t// unless already set or overridden with SetCenterOfMass.\n\tCenterOfMass Vec3\n\t// InvInertiaTensor is the 3x3 symmetric inverse inertia tensor in local\n\t// body space about CenterOfMass. AddBody computes it from Shape and Mass\n\t// (diagonal for axis-aligned boxes, spheres, and axis-aligned capsules or\n\t// cylinders; full symmetric for rotated, offset, convex-hull, and compound\n\t// shapes) unless LockRotation is set or an explicit override is provided via\n\t// InvInertiaTensor, SetInertia, SetInertiaTensor, or scalar InvInertia.\n\tInvInertiaTensor SymMat3\n\t// LockRotation keeps a dynamic body from rotating: InvInertia becomes 0\n\t// and angular impulses are ignored, which InvInertia == 0 alone could not\n\t// express while 0 also meant \"compute a default\" (#546).\n\tLockRotation bool\n\t// Restitution is the bounciness in [0, 1]. Overridden when Material is non-nil.\n\tRestitution float32\n\t// Friction is the Coulomb friction coefficient (>= 0). Overridden when Material is non-nil.\n\tFriction float32\n\t// LinearDamping reduces velocity smoothly over time (1 / (1 + LinearDamping*dt)). Overridden when Material is non-nil.\n\tLinearDamping float32\n\t// AngularDamping reduces angular velocity smoothly over time (1 / (1 + AngularDamping*dt)). Overridden when Material is non-nil.\n\tAngularDamping float32\n\t// Material optionally overrides Friction, Restitution, LinearDamping, and\n\t// AngularDamping with a shared PhysicsMaterial.\n\tMaterial *PhysicsMaterial\n\t// GravityScale multiplies the effective gravity applied to this body during\n\t// World.Step. NewDynamicBody initializes it to 1; on a zero-initialized Body\n\t// literal it defaults to 1 unless SetGravityScale(0) is called or GravityScale\n\t// is modified after AddBody.\n\tGravityScale float32\n\t// Static marks an immovable body with infinite mass (InvMass == 0).\n\tStatic bool\n\t// Kinematic marks a body driven directly by user/animation code (infinite\n\t// mass to the solver and unaffected by gravity, while retaining Mass/InvMass\n\t// so it can transition cleanly to dynamic simulation).\n\tKinematic bool\n\t// Sleeping marks a dynamic body currently at rest; the solver skips\n\t// integrating it until woken by Wake, ApplyImpulse, or an active collision.\n\tSleeping bool\n\t// Layer is the collision layer bitmask this body belongs to (0 defaults to LayerAll).\n\tLayer LayerMask\n\t// Mask is the collision layer bitmask this body collides with (0 defaults to LayerAll).\n\tMask LayerMask\n\t// IsTrigger marks a sensor volume that emits trigger ContactEvents without\n\t// applying impulse or positional resolution.\n\tIsTrigger bool\n\t// Area configures optional gravity, damping, and buoyancy/fluid drag overrides\n\t// applied to overlapping dynamic bodies when IsTrigger is true.\n\tArea AreaSettings\n\t// contains filtered or unexported fields\n}",
          "doc": "Body is a rigid body, kinematic body, static collider, or trigger volume in a World.\n",
          "file": "pkg/physics3d/world.go",
          "line": 37,
          "members": [
            {
              "name": "ID",
              "anchor": "Body.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the body inside its World. AddBody assigns one\nsequentially when ID is 0."
            },
            {
              "name": "Tag",
              "anchor": "Body.Tag",
              "kind": "field",
              "doc": "Tag is an optional user label for identifying bodies in query results."
            },
            {
              "name": "Shape",
              "anchor": "Body.Shape",
              "kind": "field",
              "doc": "Shape is the body's collision primitive in local coordinates relative to Pos."
            },
            {
              "name": "Pos",
              "anchor": "Body.Pos",
              "kind": "field",
              "doc": "Pos is the body's world-space position."
            },
            {
              "name": "Vel",
              "anchor": "Body.Vel",
              "kind": "field",
              "doc": "Vel is the body's linear velocity in units per second."
            },
            {
              "name": "Rot",
              "anchor": "Body.Rot",
              "kind": "field",
              "doc": "Rot is the body's world-space orientation quaternion. A zero quaternion is\nnormalized to identity by AddBody and treated as identity by helpers."
            },
            {
              "name": "AngVel",
              "anchor": "Body.AngVel",
              "kind": "field",
              "doc": "AngVel is the body's angular velocity in radians per second."
            },
            {
              "name": "Mass",
              "anchor": "Body.Mass",
              "kind": "field",
              "doc": "Mass is the body's mass in kilograms. Zero mass marks a static body."
            },
            {
              "name": "InvMass",
              "anchor": "Body.InvMass",
              "kind": "field",
              "doc": "InvMass is 1/Mass for dynamic bodies and 0 for static bodies."
            },
            {
              "name": "InvInertia",
              "anchor": "Body.InvInertia",
              "kind": "field",
              "doc": "InvInertia is the body's scalar inverse rotational inertia fallback.\nAddBody computes both InvInertiaTensor and InvInertia from Shape and Mass\nunless LockRotation is set or an explicit inertia override is provided."
            },
            {
              "name": "CenterOfMass",
              "anchor": "Body.CenterOfMass",
              "kind": "field",
              "doc": "CenterOfMass is the body's center of mass in local coordinates relative to Pos.\nFor dynamic compound bodies, AddBody computes it from all solid children\nunless already set or overridden with SetCenterOfMass."
            },
            {
              "name": "InvInertiaTensor",
              "anchor": "Body.InvInertiaTensor",
              "kind": "field",
              "doc": "InvInertiaTensor is the 3x3 symmetric inverse inertia tensor in local\nbody space about CenterOfMass. AddBody computes it from Shape and Mass\n(diagonal for axis-aligned boxes, spheres, and axis-aligned capsules or\ncylinders; full symmetric for rotated, offset, convex-hull, and compound\nshapes) unless LockRotation is set or an explicit override is provided via\nInvInertiaTensor, SetInertia, SetInertiaTensor, or scalar InvInertia."
            },
            {
              "name": "LockRotation",
              "anchor": "Body.LockRotation",
              "kind": "field",
              "doc": "LockRotation keeps a dynamic body from rotating: InvInertia becomes 0\nand angular impulses are ignored, which InvInertia == 0 alone could not\nexpress while 0 also meant \"compute a default\" (#546)."
            },
            {
              "name": "Restitution",
              "anchor": "Body.Restitution",
              "kind": "field",
              "doc": "Restitution is the bounciness in [0, 1]. Overridden when Material is non-nil."
            },
            {
              "name": "Friction",
              "anchor": "Body.Friction",
              "kind": "field",
              "doc": "Friction is the Coulomb friction coefficient (>= 0). Overridden when Material is non-nil."
            },
            {
              "name": "LinearDamping",
              "anchor": "Body.LinearDamping",
              "kind": "field",
              "doc": "LinearDamping reduces velocity smoothly over time (1 / (1 + LinearDamping*dt)). Overridden when Material is non-nil."
            },
            {
              "name": "AngularDamping",
              "anchor": "Body.AngularDamping",
              "kind": "field",
              "doc": "AngularDamping reduces angular velocity smoothly over time (1 / (1 + AngularDamping*dt)). Overridden when Material is non-nil."
            },
            {
              "name": "Material",
              "anchor": "Body.Material",
              "kind": "field",
              "doc": "Material optionally overrides Friction, Restitution, LinearDamping, and\nAngularDamping with a shared PhysicsMaterial."
            },
            {
              "name": "GravityScale",
              "anchor": "Body.GravityScale",
              "kind": "field",
              "doc": "GravityScale multiplies the effective gravity applied to this body during\nWorld.Step. NewDynamicBody initializes it to 1; on a zero-initialized Body\nliteral it defaults to 1 unless SetGravityScale(0) is called or GravityScale\nis modified after AddBody."
            },
            {
              "name": "Static",
              "anchor": "Body.Static",
              "kind": "field",
              "doc": "Static marks an immovable body with infinite mass (InvMass == 0)."
            },
            {
              "name": "Kinematic",
              "anchor": "Body.Kinematic",
              "kind": "field",
              "doc": "Kinematic marks a body driven directly by user/animation code (infinite\nmass to the solver and unaffected by gravity, while retaining Mass/InvMass\nso it can transition cleanly to dynamic simulation)."
            },
            {
              "name": "Sleeping",
              "anchor": "Body.Sleeping",
              "kind": "field",
              "doc": "Sleeping marks a dynamic body currently at rest; the solver skips\nintegrating it until woken by Wake, ApplyImpulse, or an active collision."
            },
            {
              "name": "Layer",
              "anchor": "Body.Layer",
              "kind": "field",
              "doc": "Layer is the collision layer bitmask this body belongs to (0 defaults to LayerAll)."
            },
            {
              "name": "Mask",
              "anchor": "Body.Mask",
              "kind": "field",
              "doc": "Mask is the collision layer bitmask this body collides with (0 defaults to LayerAll)."
            },
            {
              "name": "IsTrigger",
              "anchor": "Body.IsTrigger",
              "kind": "field",
              "doc": "IsTrigger marks a sensor volume that emits trigger ContactEvents without\napplying impulse or positional resolution."
            },
            {
              "name": "Area",
              "anchor": "Body.Area",
              "kind": "field",
              "doc": "Area configures optional gravity, damping, and buoyancy/fluid drag overrides\napplied to overlapping dynamic bodies when IsTrigger is true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDynamicBody",
              "anchor": "NewDynamicBody",
              "decl": "func NewDynamicBody(shape Shape, pos Vec3, mass float32) Body",
              "doc": "NewDynamicBody returns a dynamic Body placed at pos with the given mass and\ndefault friction (0.5), linear damping (0.01), and angular damping (0.05).\nFor a ShapeCompound with mass <= 0, if solid children specify Mass or Density,\ntheir combined mass is used. Otherwise mass <= 0 returns a static body.\n",
              "file": "pkg/physics3d/world.go",
              "line": 141
            },
            {
              "name": "NewStaticBody",
              "anchor": "NewStaticBody",
              "decl": "func NewStaticBody(shape Shape, pos Vec3) Body",
              "doc": "NewStaticBody returns a static Body placed at pos with default friction.\n",
              "file": "pkg/physics3d/world.go",
              "line": 127
            }
          ],
          "methods": [
            {
              "name": "ApplyAngularImpulse",
              "anchor": "Body.ApplyAngularImpulse",
              "recv": "*Body",
              "decl": "func (b *Body) ApplyAngularImpulse(impulse Vec3)",
              "doc": "ApplyAngularImpulse adds the angular velocity delta produced by impulse to a\ndynamic body (using InvInertiaTensor when set, otherwise scalar InvInertia)\nand wakes it.\n",
              "file": "pkg/physics3d/world.go",
              "line": 241
            },
            {
              "name": "ApplyImpulse",
              "anchor": "Body.ApplyImpulse",
              "recv": "*Body",
              "decl": "func (b *Body) ApplyImpulse(impulse Vec3)",
              "doc": "ApplyImpulse adds impulse / Mass to a dynamic body's velocity and wakes it.\n",
              "file": "pkg/physics3d/world.go",
              "line": 230
            },
            {
              "name": "ApplyImpulseAtPoint",
              "anchor": "Body.ApplyImpulseAtPoint",
              "recv": "*Body",
              "decl": "func (b *Body) ApplyImpulseAtPoint(impulse, worldPoint Vec3)",
              "doc": "ApplyImpulseAtPoint applies linear impulse at worldPoint, imparting both\nlinear velocity and torque about WorldCenterOfMass, and wakes b.\n",
              "file": "pkg/physics3d/world.go",
              "line": 251
            },
            {
              "name": "ApplyMaterial",
              "anchor": "Body.ApplyMaterial",
              "recv": "*Body",
              "decl": "func (b *Body) ApplyMaterial(m PhysicsMaterial)",
              "doc": "ApplyMaterial copies m's surface and damping properties onto b, clamping them\nto valid ranges, and clears b.Material so the copied values take effect directly.\n",
              "file": "pkg/physics3d/material.go",
              "line": 19
            },
            {
              "name": "EffectiveGravityScale",
              "anchor": "Body.EffectiveGravityScale",
              "recv": "*Body",
              "decl": "func (b *Body) EffectiveGravityScale() float32",
              "doc": "EffectiveGravityScale returns b's active gravity multiplier.\nFor a zero-initialized Body literal whose GravityScale has not been set,\nthis defaults to 1.\n",
              "file": "pkg/physics3d/area.go",
              "line": 138
            },
            {
              "name": "RecomputeMassProperties",
              "anchor": "Body.RecomputeMassProperties",
              "recv": "*Body",
              "decl": "func (b *Body) RecomputeMassProperties()",
              "doc": "RecomputeMassProperties recomputes Mass, InvMass, CenterOfMass, InvInertia,\nand InvInertiaTensor from b.Shape for a dynamic body. For compound bodies,\nsolid children determine the combined center of mass and parallel-axis inertia\ntensor; trigger children are ignored.\n",
              "file": "pkg/physics3d/world.go",
              "line": 185
            },
            {
              "name": "SetCenterOfMass",
              "anchor": "Body.SetCenterOfMass",
              "recv": "*Body",
              "decl": "func (b *Body) SetCenterOfMass(com Vec3)",
              "doc": "SetCenterOfMass overrides b's local center of mass (relative to b.Pos).\nFor dynamic bodies without an explicit inertia override, SetCenterOfMass\nrecomputes InvInertiaTensor about the new center of mass via the parallel-axis\ntheorem. Calling SetCenterOfMass(Vec3{}) on a compound body pins its center\nof mass to the local origin even when AddBody would otherwise derive it from\nchild shapes.\n",
              "file": "pkg/physics3d/inertia.go",
              "line": 196
            },
            {
              "name": "SetGravityScale",
              "anchor": "Body.SetGravityScale",
              "recv": "*Body",
              "decl": "func (b *Body) SetGravityScale(scale float32)",
              "doc": "SetGravityScale sets the per-body gravity multiplier on b, including 0 for\nweightless bodies. Non-finite values are ignored.\n",
              "file": "pkg/physics3d/area.go",
              "line": 127
            },
            {
              "name": "SetInertia",
              "anchor": "Body.SetInertia",
              "recv": "*Body",
              "decl": "func (b *Body) SetInertia(diag Vec3)",
              "doc": "SetInertia overrides b's body-space diagonal inertia tensor (Ix, Iy, Iz) about\nCenterOfMass. Each positive finite component sets the inverse inertia along\nthat local axis to 1/I; non-positive, non-finite, or overflowing components\nlock rotation about that local axis (inverse inertia 0).\n",
              "file": "pkg/physics3d/inertia.go",
              "line": 221
            },
            {
              "name": "SetInertiaTensor",
              "anchor": "Body.SetInertiaTensor",
              "recv": "*Body",
              "decl": "func (b *Body) SetInertiaTensor(inertia SymMat3)",
              "doc": "SetInertiaTensor overrides b's body-space 3x3 symmetric inertia tensor about\nCenterOfMass. Full inversion requires a symmetric positive-definite tensor;\nif inertia is singular or not positive-definite, positive finite diagonal\nentries are inverted per axis.\n",
              "file": "pkg/physics3d/inertia.go",
              "line": 242
            },
            {
              "name": "Wake",
              "anchor": "Body.Wake",
              "recv": "*Body",
              "decl": "func (b *Body) Wake()",
              "doc": "Wake clears b's sleeping state so it participates in subsequent steps.\n",
              "file": "pkg/physics3d/world.go",
              "line": 224
            },
            {
              "name": "WorldCenterOfMass",
              "anchor": "Body.WorldCenterOfMass",
              "recv": "*Body",
              "decl": "func (b *Body) WorldCenterOfMass() Vec3",
              "doc": "WorldCenterOfMass returns b's center of mass in world coordinates.\nFor bodies with zero local CenterOfMass, this equals b.Pos.\n",
              "file": "pkg/physics3d/world.go",
              "line": 171
            },
            {
              "name": "WorldInvInertiaTensor",
              "anchor": "Body.WorldInvInertiaTensor",
              "recv": "*Body",
              "decl": "func (b *Body) WorldInvInertiaTensor() SymMat3",
              "doc": "WorldInvInertiaTensor returns b's world-space 3x3 inverse inertia tensor\nR * InvInertiaTensor * R^T, or the zero matrix when b is nil, static,\nkinematic, or has LockRotation set. When InvInertiaTensor is zero and scalar\nInvInertia > 0, it returns an isotropic diagonal tensor.\n",
              "file": "pkg/physics3d/inertia.go",
              "line": 269
            },
            {
              "name": "WorldShape",
              "anchor": "Body.WorldShape",
              "recv": "*Body",
              "decl": "func (b *Body) WorldShape() Shape",
              "doc": "WorldShape returns the body's collision shape transformed by Pos and Rot.\n",
              "file": "pkg/physics3d/world.go",
              "line": 165
            }
          ]
        },
        {
          "name": "BodySnapshot",
          "anchor": "BodySnapshot",
          "decl": "type BodySnapshot struct {\n\tID                 int              `json:\"id\"`\n\tTag                string           `json:\"tag,omitempty\"`\n\tShape              Shape            `json:\"shape\"`\n\tPos                Vec3             `json:\"pos\"`\n\tVel                Vec3             `json:\"vel\"`\n\tRot                Quat             `json:\"rot\"`\n\tAngVel             Vec3             `json:\"angVel\"`\n\tMass               float32          `json:\"mass\"`\n\tInvMass            float32          `json:\"invMass\"`\n\tInvInertia         float32          `json:\"invInertia\"`\n\tCenterOfMass       Vec3             `json:\"centerOfMass\"`\n\tInvInertiaTensor   SymMat3          `json:\"invInertiaTensor\"`\n\tCustomCenterOfMass bool             `json:\"customCenterOfMass,omitempty\"`\n\tCustomInertia      bool             `json:\"customInertia,omitempty\"`\n\tLockRotation       bool             `json:\"lockRotation,omitempty\"`\n\tRestitution        float32          `json:\"restitution\"`\n\tFriction           float32          `json:\"friction\"`\n\tLinearDamping      float32          `json:\"linearDamping\"`\n\tAngularDamping     float32          `json:\"angularDamping\"`\n\tMaterial           *PhysicsMaterial `json:\"material,omitempty\"`\n\tGravityScale       float32          `json:\"gravityScale\"`\n\tGravityScaleSet    bool             `json:\"gravityScaleSet,omitempty\"`\n\tStatic             bool             `json:\"static,omitempty\"`\n\tKinematic          bool             `json:\"kinematic,omitempty\"`\n\tSleeping           bool             `json:\"sleeping,omitempty\"`\n\tLayer              LayerMask        `json:\"layer\"`\n\tMask               LayerMask        `json:\"mask\"`\n\tIsTrigger          bool             `json:\"isTrigger,omitempty\"`\n\tArea               AreaSettings     `json:\"area\"`\n\n\tSleepTimer     float32 `json:\"sleepTimer,omitempty\"`\n\tResidualDepth  float32 `json:\"residualDepth,omitempty\"`\n\tLastPos        Vec3    `json:\"lastPos\"`\n\tLastRot        Quat    `json:\"lastRot\"`\n\tHavePose       bool    `json:\"havePose,omitempty\"`\n\tRestingOnVoxel bool    `json:\"restingOnVoxel,omitempty\"`\n}",
          "doc": "BodySnapshot captures the complete public and private simulation state of a physics3d.Body.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 17,
          "members": [
            {
              "name": "ID",
              "anchor": "BodySnapshot.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "BodySnapshot.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "BodySnapshot.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pos",
              "anchor": "BodySnapshot.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vel",
              "anchor": "BodySnapshot.Vel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rot",
              "anchor": "BodySnapshot.Rot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngVel",
              "anchor": "BodySnapshot.AngVel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mass",
              "anchor": "BodySnapshot.Mass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvMass",
              "anchor": "BodySnapshot.InvMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvInertia",
              "anchor": "BodySnapshot.InvInertia",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CenterOfMass",
              "anchor": "BodySnapshot.CenterOfMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvInertiaTensor",
              "anchor": "BodySnapshot.InvInertiaTensor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CustomCenterOfMass",
              "anchor": "BodySnapshot.CustomCenterOfMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CustomInertia",
              "anchor": "BodySnapshot.CustomInertia",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LockRotation",
              "anchor": "BodySnapshot.LockRotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "BodySnapshot.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "BodySnapshot.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LinearDamping",
              "anchor": "BodySnapshot.LinearDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngularDamping",
              "anchor": "BodySnapshot.AngularDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Material",
              "anchor": "BodySnapshot.Material",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityScale",
              "anchor": "BodySnapshot.GravityScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GravityScaleSet",
              "anchor": "BodySnapshot.GravityScaleSet",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Static",
              "anchor": "BodySnapshot.Static",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kinematic",
              "anchor": "BodySnapshot.Kinematic",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sleeping",
              "anchor": "BodySnapshot.Sleeping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "BodySnapshot.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "BodySnapshot.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsTrigger",
              "anchor": "BodySnapshot.IsTrigger",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Area",
              "anchor": "BodySnapshot.Area",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SleepTimer",
              "anchor": "BodySnapshot.SleepTimer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ResidualDepth",
              "anchor": "BodySnapshot.ResidualDepth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastPos",
              "anchor": "BodySnapshot.LastPos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastRot",
              "anchor": "BodySnapshot.LastRot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HavePose",
              "anchor": "BodySnapshot.HavePose",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestingOnVoxel",
              "anchor": "BodySnapshot.RestingOnVoxel",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Box",
          "anchor": "Box",
          "decl": "type Box struct {\n\tCenter      Vec3\n\tHalfExtents Vec3\n}",
          "doc": "Box is an axis-aligned bounding box defined by its center and half-extents.\n",
          "file": "pkg/physics3d/shape.go",
          "line": 4,
          "members": [
            {
              "name": "Center",
              "anchor": "Box.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HalfExtents",
              "anchor": "Box.HalfExtents",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BoxFromMinMax",
              "anchor": "BoxFromMinMax",
              "decl": "func BoxFromMinMax(min, max Vec3) Box",
              "doc": "BoxFromMinMax returns the axis-aligned Box spanning [min, max].\n",
              "file": "pkg/physics3d/shape.go",
              "line": 10
            },
            {
              "name": "MergeBoxes",
              "anchor": "MergeBoxes",
              "decl": "func MergeBoxes(boxes []Box, eps float32) []Box",
              "doc": "MergeBoxes greedily merges adjacent axis-aligned boxes along X, then Z, then\nY whenever their perpendicular faces align within eps (defaults to 1e-4 when\n<= 0). Degenerate boxes with non-positive extent on any axis are dropped.\n\nThe point-set union of the returned boxes equals the union of the valid input\nboxes, and the result order is deterministic regardless of input slice order.\n",
              "file": "pkg/physics3d/box_merge.go",
              "line": 21
            }
          ],
          "methods": [
            {
              "name": "Max",
              "anchor": "Box.Max",
              "recv": "Box",
              "decl": "func (b Box) Max() Vec3",
              "doc": "Max returns the maximum corner of b.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 23
            },
            {
              "name": "Min",
              "anchor": "Box.Min",
              "recv": "Box",
              "decl": "func (b Box) Min() Vec3",
              "doc": "Min returns the minimum corner of b.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 18
            },
            {
              "name": "Translated",
              "anchor": "Box.Translated",
              "recv": "Box",
              "decl": "func (b Box) Translated(offset Vec3) Box",
              "doc": "Translated returns a copy of b shifted by offset.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 28
            }
          ]
        },
        {
          "name": "CachedImpulseSnapshot",
          "anchor": "CachedImpulseSnapshot",
          "decl": "type CachedImpulseSnapshot struct {\n\tBodyAID        int                   `json:\"bodyAID\"`\n\tBodyBID        int                   `json:\"bodyBID\"`\n\tChildA         int                   `json:\"childA\"`\n\tChildB         int                   `json:\"childB\"`\n\tNormal         Vec3                  `json:\"normal\"`\n\tNormalImpulse  float32               `json:\"normalImpulse,omitempty\"`\n\tTangentImpulse Vec3                  `json:\"tangentImpulse\"`\n\tPoints         []CachedPointSnapshot `json:\"points,omitempty\"`\n}",
          "doc": "CachedImpulseSnapshot captures one warm-start contact manifold cache entry.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 72,
          "members": [
            {
              "name": "BodyAID",
              "anchor": "CachedImpulseSnapshot.BodyAID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyBID",
              "anchor": "CachedImpulseSnapshot.BodyBID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildA",
              "anchor": "CachedImpulseSnapshot.ChildA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildB",
              "anchor": "CachedImpulseSnapshot.ChildB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "CachedImpulseSnapshot.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalImpulse",
              "anchor": "CachedImpulseSnapshot.NormalImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TangentImpulse",
              "anchor": "CachedImpulseSnapshot.TangentImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "CachedImpulseSnapshot.Points",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "UnmarshalJSON",
              "anchor": "CachedImpulseSnapshot.UnmarshalJSON",
              "recv": "*CachedImpulseSnapshot",
              "decl": "func (c *CachedImpulseSnapshot) UnmarshalJSON(data []byte) error",
              "doc": "UnmarshalJSON defaults ChildA and ChildB to -1 when omitted in pre-compound v1 snapshots.\n",
              "file": "pkg/physics3d/snapshot.go",
              "line": 84
            }
          ]
        },
        {
          "name": "CachedPointSnapshot",
          "anchor": "CachedPointSnapshot",
          "decl": "type CachedPointSnapshot struct {\n\tLocalA         Vec3    `json:\"localA\"`\n\tLocalB         Vec3    `json:\"localB\"`\n\tFeatureID      uint32  `json:\"featureID,omitempty\"`\n\tNormalImpulse  float32 `json:\"normalImpulse\"`\n\tTangentImpulse Vec3    `json:\"tangentImpulse\"`\n}",
          "doc": "CachedPointSnapshot captures one warm-start contact point inside a manifold.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 63,
          "members": [
            {
              "name": "LocalA",
              "anchor": "CachedPointSnapshot.LocalA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalB",
              "anchor": "CachedPointSnapshot.LocalB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FeatureID",
              "anchor": "CachedPointSnapshot.FeatureID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalImpulse",
              "anchor": "CachedPointSnapshot.NormalImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TangentImpulse",
              "anchor": "CachedPointSnapshot.TangentImpulse",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Capsule",
          "anchor": "Capsule",
          "decl": "type Capsule struct {\n\tA, B   Vec3\n\tRadius float32\n}",
          "doc": "Capsule is a line segment from A to B swept by Radius.\n",
          "file": "pkg/physics3d/shape.go",
          "line": 44,
          "members": [
            {
              "name": "A",
              "anchor": "Capsule.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "Capsule.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Capsule.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "VerticalCapsule",
              "anchor": "VerticalCapsule",
              "decl": "func VerticalCapsule(center Vec3, radius, height float32) Capsule",
              "doc": "VerticalCapsule returns a Y-aligned capsule centered at center with the given\nradius and total height. If height is less than 2*radius, the capsule\ndegenerates to a sphere of the given radius at center.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 52
            }
          ],
          "methods": [
            {
              "name": "Translated",
              "anchor": "Capsule.Translated",
              "recv": "Capsule",
              "decl": "func (c Capsule) Translated(offset Vec3) Capsule",
              "doc": "Translated returns a copy of c shifted by offset.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 65
            }
          ]
        },
        {
          "name": "CharacterController",
          "anchor": "CharacterController",
          "decl": "type CharacterController struct {\n\t// Pos is the world-space position of the bottom of the capsule (feet).\n\tPos Vec3\n\t// Radius is the capsule radius.\n\tRadius float32\n\t// Height is the total height of the capsule (clamped to at least 2*Radius).\n\tHeight float32\n\t// StepHeight is the maximum vertical step height climbed automatically.\n\tStepHeight float32\n\t// MaxSlopeAngle is the steepest walkable floor angle from horizontal, in\n\t// radians. Values <= 0 default to 45 degrees (pi/4).\n\tMaxSlopeAngle float32\n\t// Vel is the controller's velocity in units per second.\n\tVel Vec3\n\t// Yaw is the character's facing angle in radians around the +Y axis.\n\t// When ApplyPlatformYaw is true, Move adds GroundYawDelta to Yaw while\n\t// carried by a rotating ground body.\n\tYaw float32\n\t// ApplyPlatformYaw controls whether Move adds a rotating ground body's\n\t// per-step yaw delta to Yaw. NewCharacterController initializes it to true.\n\t// Position carry around a rotating ground body always applies regardless of\n\t// this setting.\n\tApplyPlatformYaw bool\n\t// PlatformOnLeave controls how the controller inherits GroundVelocity when\n\t// jumping or walking off a moving ground body.\n\tPlatformOnLeave PlatformOnLeave\n\t// Grounded reports whether the controller ended the last Move on walkable ground.\n\tGrounded bool\n\t// GroundNormal is the outward surface normal of the ground when Grounded is true.\n\tGroundNormal Vec3\n\t// GroundBody is the Body supporting the character when Grounded is true, or\n\t// nil when airborne or standing on a static collider without a Body\n\t// (TriMeshCollider, HeightfieldCollider, or VoxelCollider).\n\tGroundBody *Body\n\t// GroundVelocity is the world-space velocity of GroundBody at the contact\n\t// point during the last Move, or zero when airborne or on static geometry.\n\tGroundVelocity Vec3\n\t// GroundYawDelta is the yaw rotation in radians around +Y imparted by the\n\t// ground body during the last Move.\n\tGroundYawDelta float32\n\t// OnWall reports whether a non-walkable wall or steep slope was contacted.\n\tOnWall bool\n\t// OnCeiling reports whether a ceiling surface was contacted.\n\tOnCeiling bool\n\t// Crushed reports whether the capsule remained squeezed between opposing\n\t// surfaces with no valid depenetration during the last Move.\n\tCrushed bool\n\t// IgnoreBodyID optionally ignores a body with this ID during movement queries.\n\tIgnoreBodyID int\n\t// Mask filters which body and static collider layers block the character\n\t// (0 defaults to LayerAll).\n\tMask LayerMask\n\t// PushForce is the horizontal force in newtons the character applies to a dynamic body it walks into, so crates and barrels give way instead of acting as walls. 0 leaves dynamic bodies blocking the character like static ones.\n\t//\n\t// The controller is not a body in the World, so dynamic bodies do not collide with it on their own; to let them, add a kinematic body that follows Pos and set IgnoreBodyID to its ID (#546).\n\tPushForce float32\n\t// GravityScale multiplies the effective gravity applied during Move.\n\t// NewCharacterController initializes it to 1; on a zero-initialized\n\t// CharacterController literal it defaults to 1 unless SetGravityScale(0) is called.\n\tGravityScale float32\n\t// contains filtered or unexported fields\n}",
          "doc": "CharacterController is a kinematic capsule collider that moves through a\nWorld with walkable slope sliding, automatic stair stepping, headroom checks,\ntangential wall sliding, moving-platform carry, and kinematic push/crush\nresolution.\n\nPos is the world-space position of the bottom of the capsule (the character's\nfeet).\n",
          "file": "pkg/physics3d/character.go",
          "line": 47,
          "members": [
            {
              "name": "Pos",
              "anchor": "CharacterController.Pos",
              "kind": "field",
              "doc": "Pos is the world-space position of the bottom of the capsule (feet)."
            },
            {
              "name": "Radius",
              "anchor": "CharacterController.Radius",
              "kind": "field",
              "doc": "Radius is the capsule radius."
            },
            {
              "name": "Height",
              "anchor": "CharacterController.Height",
              "kind": "field",
              "doc": "Height is the total height of the capsule (clamped to at least 2*Radius)."
            },
            {
              "name": "StepHeight",
              "anchor": "CharacterController.StepHeight",
              "kind": "field",
              "doc": "StepHeight is the maximum vertical step height climbed automatically."
            },
            {
              "name": "MaxSlopeAngle",
              "anchor": "CharacterController.MaxSlopeAngle",
              "kind": "field",
              "doc": "MaxSlopeAngle is the steepest walkable floor angle from horizontal, in\nradians. Values <= 0 default to 45 degrees (pi/4)."
            },
            {
              "name": "Vel",
              "anchor": "CharacterController.Vel",
              "kind": "field",
              "doc": "Vel is the controller's velocity in units per second."
            },
            {
              "name": "Yaw",
              "anchor": "CharacterController.Yaw",
              "kind": "field",
              "doc": "Yaw is the character's facing angle in radians around the +Y axis.\nWhen ApplyPlatformYaw is true, Move adds GroundYawDelta to Yaw while\ncarried by a rotating ground body."
            },
            {
              "name": "ApplyPlatformYaw",
              "anchor": "CharacterController.ApplyPlatformYaw",
              "kind": "field",
              "doc": "ApplyPlatformYaw controls whether Move adds a rotating ground body's\nper-step yaw delta to Yaw. NewCharacterController initializes it to true.\nPosition carry around a rotating ground body always applies regardless of\nthis setting."
            },
            {
              "name": "PlatformOnLeave",
              "anchor": "CharacterController.PlatformOnLeave",
              "kind": "field",
              "doc": "PlatformOnLeave controls how the controller inherits GroundVelocity when\njumping or walking off a moving ground body."
            },
            {
              "name": "Grounded",
              "anchor": "CharacterController.Grounded",
              "kind": "field",
              "doc": "Grounded reports whether the controller ended the last Move on walkable ground."
            },
            {
              "name": "GroundNormal",
              "anchor": "CharacterController.GroundNormal",
              "kind": "field",
              "doc": "GroundNormal is the outward surface normal of the ground when Grounded is true."
            },
            {
              "name": "GroundBody",
              "anchor": "CharacterController.GroundBody",
              "kind": "field",
              "doc": "GroundBody is the Body supporting the character when Grounded is true, or\nnil when airborne or standing on a static collider without a Body\n(TriMeshCollider, HeightfieldCollider, or VoxelCollider)."
            },
            {
              "name": "GroundVelocity",
              "anchor": "CharacterController.GroundVelocity",
              "kind": "field",
              "doc": "GroundVelocity is the world-space velocity of GroundBody at the contact\npoint during the last Move, or zero when airborne or on static geometry."
            },
            {
              "name": "GroundYawDelta",
              "anchor": "CharacterController.GroundYawDelta",
              "kind": "field",
              "doc": "GroundYawDelta is the yaw rotation in radians around +Y imparted by the\nground body during the last Move."
            },
            {
              "name": "OnWall",
              "anchor": "CharacterController.OnWall",
              "kind": "field",
              "doc": "OnWall reports whether a non-walkable wall or steep slope was contacted."
            },
            {
              "name": "OnCeiling",
              "anchor": "CharacterController.OnCeiling",
              "kind": "field",
              "doc": "OnCeiling reports whether a ceiling surface was contacted."
            },
            {
              "name": "Crushed",
              "anchor": "CharacterController.Crushed",
              "kind": "field",
              "doc": "Crushed reports whether the capsule remained squeezed between opposing\nsurfaces with no valid depenetration during the last Move."
            },
            {
              "name": "IgnoreBodyID",
              "anchor": "CharacterController.IgnoreBodyID",
              "kind": "field",
              "doc": "IgnoreBodyID optionally ignores a body with this ID during movement queries."
            },
            {
              "name": "Mask",
              "anchor": "CharacterController.Mask",
              "kind": "field",
              "doc": "Mask filters which body and static collider layers block the character\n(0 defaults to LayerAll)."
            },
            {
              "name": "PushForce",
              "anchor": "CharacterController.PushForce",
              "kind": "field",
              "doc": "PushForce is the horizontal force in newtons the character applies to a dynamic body it walks into, so crates and barrels give way instead of acting as walls. 0 leaves dynamic bodies blocking the character like static ones.\n\nThe controller is not a body in the World, so dynamic bodies do not collide with it on their own; to let them, add a kinematic body that follows Pos and set IgnoreBodyID to its ID (#546)."
            },
            {
              "name": "GravityScale",
              "anchor": "CharacterController.GravityScale",
              "kind": "field",
              "doc": "GravityScale multiplies the effective gravity applied during Move.\nNewCharacterController initializes it to 1; on a zero-initialized\nCharacterController literal it defaults to 1 unless SetGravityScale(0) is called."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCharacterController",
              "anchor": "NewCharacterController",
              "decl": "func NewCharacterController(pos Vec3, radius, height float32) *CharacterController",
              "doc": "NewCharacterController returns a CharacterController at pos with the given\ncapsule radius and height, a default StepHeight of 0.35, a 45-degree\nMaxSlopeAngle, and ApplyPlatformYaw enabled.\n",
              "file": "pkg/physics3d/character.go",
              "line": 150
            }
          ],
          "methods": [
            {
              "name": "Capsule",
              "anchor": "CharacterController.Capsule",
              "recv": "*CharacterController",
              "decl": "func (c *CharacterController) Capsule() Capsule",
              "doc": "Capsule returns the controller's world-space capsule at Pos.\n",
              "file": "pkg/physics3d/character.go",
              "line": 177
            },
            {
              "name": "EffectiveGravity",
              "anchor": "CharacterController.EffectiveGravity",
              "recv": "*CharacterController",
              "decl": "func (c *CharacterController) EffectiveGravity(world *World) Vec3",
              "doc": "EffectiveGravity returns the scaled gravity acceleration acting on c in world,\ncombining world.Gravity with any overlapping active trigger areas.\n",
              "file": "pkg/physics3d/character.go",
              "line": 168
            },
            {
              "name": "EffectiveGravityScale",
              "anchor": "CharacterController.EffectiveGravityScale",
              "recv": "*CharacterController",
              "decl": "func (c *CharacterController) EffectiveGravityScale() float32",
              "doc": "EffectiveGravityScale returns c's active gravity multiplier, defaulting to 1\nwhen unset on a zero-initialized CharacterController.\n",
              "file": "pkg/physics3d/area.go",
              "line": 160
            },
            {
              "name": "Move",
              "anchor": "CharacterController.Move",
              "recv": "*CharacterController",
              "decl": "func (c *CharacterController) Move(world *World, wishMove Vec3, dt time.Duration) MoveResult",
              "doc": "Move advances the character through world for dt.\n\nwishMove is the desired velocity in units per second: X and Z drive\nhorizontal movement, while a non-zero Y sets Vel.Y directly (such as for a\njump) and Y == 0 lets world.Gravity govern vertical motion.\n",
              "file": "pkg/physics3d/character.go",
              "line": 225
            },
            {
              "name": "SetGravityScale",
              "anchor": "CharacterController.SetGravityScale",
              "recv": "*CharacterController",
              "decl": "func (c *CharacterController) SetGravityScale(scale float32)",
              "doc": "SetGravityScale sets the per-character gravity multiplier on c, including 0\nfor weightless characters. Non-finite values are ignored.\n",
              "file": "pkg/physics3d/area.go",
              "line": 150
            },
            {
              "name": "Shape",
              "anchor": "CharacterController.Shape",
              "recv": "*CharacterController",
              "decl": "func (c *CharacterController) Shape() Shape",
              "doc": "Shape returns the controller's world-space Shape at Pos.\n",
              "file": "pkg/physics3d/character.go",
              "line": 182
            }
          ]
        },
        {
          "name": "ClothConfig",
          "anchor": "ClothConfig",
          "decl": "type ClothConfig struct {\n\tOrigin            Vec3\n\tAxisU             Vec3    // direction along columns; zero defaults to +X\n\tAxisV             Vec3    // direction along rows; zero defaults to +Z\n\tWidth, Height     float32 // physical extent along AxisU and AxisV\n\tCols, Rows        int     // number of quads (>= 1); creates (Cols+1)*(Rows+1) particles\n\tTotalMass         float32 // <= 0 defaults to 1.0\n\tParticleRadius    float32 // <= 0 defaults to 0.04\n\tStretchCompliance float32 // structural and shear compliance\n\tBendCompliance    float32 // dihedral bending compliance (0 defaults to 0.01 unless DisableBending)\n\tDisableBending    bool\n\tPinTopLeft        bool // pin (col=0, row=0)\n\tPinTopRight       bool // pin (col=Cols, row=0)\n\tPinBottomLeft     bool // pin (col=0, row=Rows)\n\tPinBottomRight    bool // pin (col=Cols, row=Rows)\n\tLayer             LayerMask\n\tMask              LayerMask\n\tFriction          float32\n}",
          "doc": "ClothConfig configures a rectangular 3D cloth grid constructed by SoftWorld.AddCloth.\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 525,
          "members": [
            {
              "name": "Origin",
              "anchor": "ClothConfig.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AxisU",
              "anchor": "ClothConfig.AxisU",
              "kind": "field",
              "doc": "direction along columns; zero defaults to +X"
            },
            {
              "name": "AxisV",
              "anchor": "ClothConfig.AxisV",
              "kind": "field",
              "doc": "direction along rows; zero defaults to +Z"
            },
            {
              "name": "Width",
              "anchor": "ClothConfig.Width",
              "kind": "field",
              "doc": "physical extent along AxisU and AxisV"
            },
            {
              "name": "Height",
              "anchor": "ClothConfig.Height",
              "kind": "field",
              "doc": "physical extent along AxisU and AxisV"
            },
            {
              "name": "Cols",
              "anchor": "ClothConfig.Cols",
              "kind": "field",
              "doc": "number of quads (>= 1); creates (Cols+1)*(Rows+1) particles"
            },
            {
              "name": "Rows",
              "anchor": "ClothConfig.Rows",
              "kind": "field",
              "doc": "number of quads (>= 1); creates (Cols+1)*(Rows+1) particles"
            },
            {
              "name": "TotalMass",
              "anchor": "ClothConfig.TotalMass",
              "kind": "field",
              "doc": "<= 0 defaults to 1.0"
            },
            {
              "name": "ParticleRadius",
              "anchor": "ClothConfig.ParticleRadius",
              "kind": "field",
              "doc": "<= 0 defaults to 0.04"
            },
            {
              "name": "StretchCompliance",
              "anchor": "ClothConfig.StretchCompliance",
              "kind": "field",
              "doc": "structural and shear compliance"
            },
            {
              "name": "BendCompliance",
              "anchor": "ClothConfig.BendCompliance",
              "kind": "field",
              "doc": "dihedral bending compliance (0 defaults to 0.01 unless DisableBending)"
            },
            {
              "name": "DisableBending",
              "anchor": "ClothConfig.DisableBending",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PinTopLeft",
              "anchor": "ClothConfig.PinTopLeft",
              "kind": "field",
              "doc": "pin (col=0, row=0)"
            },
            {
              "name": "PinTopRight",
              "anchor": "ClothConfig.PinTopRight",
              "kind": "field",
              "doc": "pin (col=Cols, row=0)"
            },
            {
              "name": "PinBottomLeft",
              "anchor": "ClothConfig.PinBottomLeft",
              "kind": "field",
              "doc": "pin (col=0, row=Rows)"
            },
            {
              "name": "PinBottomRight",
              "anchor": "ClothConfig.PinBottomRight",
              "kind": "field",
              "doc": "pin (col=Cols, row=Rows)"
            },
            {
              "name": "Layer",
              "anchor": "ClothConfig.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "ClothConfig.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "ClothConfig.Friction",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ClothGrid",
          "anchor": "ClothGrid",
          "decl": "type ClothGrid struct {\n\tParticles []int\n\tCols      int\n\tRows      int\n}",
          "doc": "ClothGrid holds the particle layout created by SoftWorld.AddCloth.\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 546,
          "members": [
            {
              "name": "Particles",
              "anchor": "ClothGrid.Particles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cols",
              "anchor": "ClothGrid.Cols",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "ClothGrid.Rows",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Index",
              "anchor": "ClothGrid.Index",
              "recv": "ClothGrid",
              "decl": "func (g ClothGrid) Index(col, row int) int",
              "doc": "Index returns the particle index in SoftWorld.Particles at grid vertex (col, row),\nor -1 when out of range.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 554
            }
          ]
        },
        {
          "name": "CompoundChild",
          "anchor": "CompoundChild",
          "decl": "type CompoundChild struct {\n\t// Shape is the child collider primitive (Box, Sphere, Capsule, ConvexHull,\n\t// Cylinder, or nested ShapeCompound).\n\tShape Shape `json:\"shape\"`\n\t// Offset is the child's local translation relative to the compound origin.\n\tOffset Vec3 `json:\"offset\"`\n\t// Rot is the child's local orientation quaternion. A zero quaternion is\n\t// treated as identity.\n\tRot Quat `json:\"rot\"`\n\t// Mass is an optional explicit mass in kilograms for this child.\n\t// When Mass <= 0 and Density > 0, mass is computed as Density * volume(Shape).\n\t// Trigger children do not contribute to body mass, center of mass, or inertia.\n\tMass float32 `json:\"mass,omitempty\"`\n\t// Density is an optional mass per unit volume (kg/m^3) used when Mass <= 0.\n\tDensity float32 `json:\"density,omitempty\"`\n\t// Trigger marks this child as a sensor volume that emits trigger ContactEvents\n\t// without applying collision impulses or contributing to body mass/inertia.\n\tTrigger bool `json:\"trigger,omitempty\"`\n\t// Layer is an optional collision layer bitmask for this child.\n\t// Zero inherits the parent Body.Layer (which defaults to LayerAll when zero).\n\tLayer LayerMask `json:\"layer,omitempty\"`\n\t// Mask is an optional collision mask bitmask for this child.\n\t// Zero inherits the parent Body.Mask (which defaults to LayerAll when zero).\n\tMask LayerMask `json:\"mask,omitempty\"`\n}",
          "doc": "CompoundChild is one child collider inside a compound Shape, positioned in\nthe parent's local coordinate frame by Offset and Rot.\n",
          "file": "pkg/physics3d/compound.go",
          "line": 7,
          "members": [
            {
              "name": "Shape",
              "anchor": "CompoundChild.Shape",
              "kind": "field",
              "doc": "Shape is the child collider primitive (Box, Sphere, Capsule, ConvexHull,\nCylinder, or nested ShapeCompound)."
            },
            {
              "name": "Offset",
              "anchor": "CompoundChild.Offset",
              "kind": "field",
              "doc": "Offset is the child's local translation relative to the compound origin."
            },
            {
              "name": "Rot",
              "anchor": "CompoundChild.Rot",
              "kind": "field",
              "doc": "Rot is the child's local orientation quaternion. A zero quaternion is\ntreated as identity."
            },
            {
              "name": "Mass",
              "anchor": "CompoundChild.Mass",
              "kind": "field",
              "doc": "Mass is an optional explicit mass in kilograms for this child.\nWhen Mass <= 0 and Density > 0, mass is computed as Density * volume(Shape).\nTrigger children do not contribute to body mass, center of mass, or inertia."
            },
            {
              "name": "Density",
              "anchor": "CompoundChild.Density",
              "kind": "field",
              "doc": "Density is an optional mass per unit volume (kg/m^3) used when Mass <= 0."
            },
            {
              "name": "Trigger",
              "anchor": "CompoundChild.Trigger",
              "kind": "field",
              "doc": "Trigger marks this child as a sensor volume that emits trigger ContactEvents\nwithout applying collision impulses or contributing to body mass/inertia."
            },
            {
              "name": "Layer",
              "anchor": "CompoundChild.Layer",
              "kind": "field",
              "doc": "Layer is an optional collision layer bitmask for this child.\nZero inherits the parent Body.Layer (which defaults to LayerAll when zero)."
            },
            {
              "name": "Mask",
              "anchor": "CompoundChild.Mask",
              "kind": "field",
              "doc": "Mask is an optional collision mask bitmask for this child.\nZero inherits the parent Body.Mask (which defaults to LayerAll when zero)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveLayer",
              "anchor": "CompoundChild.EffectiveLayer",
              "recv": "CompoundChild",
              "decl": "func (c CompoundChild) EffectiveLayer(parentLayer LayerMask) LayerMask",
              "doc": "EffectiveLayer returns c's collision layer, inheriting parentLayer when c.Layer\nis zero (and defaulting to LayerAll when both are zero).\n",
              "file": "pkg/physics3d/compound.go",
              "line": 76
            },
            {
              "name": "EffectiveMask",
              "anchor": "CompoundChild.EffectiveMask",
              "recv": "CompoundChild",
              "decl": "func (c CompoundChild) EffectiveMask(parentMask LayerMask) LayerMask",
              "doc": "EffectiveMask returns c's collision mask, inheriting parentMask when c.Mask is\nzero (and defaulting to LayerAll when both are zero).\n",
              "file": "pkg/physics3d/compound.go",
              "line": 85
            },
            {
              "name": "LocalShape",
              "anchor": "CompoundChild.LocalShape",
              "recv": "CompoundChild",
              "decl": "func (c CompoundChild) LocalShape() Shape",
              "doc": "LocalShape returns c.Shape transformed into the parent's local frame by\nc.Offset and c.Rot.\n",
              "file": "pkg/physics3d/compound.go",
              "line": 49
            },
            {
              "name": "WorldShape",
              "anchor": "CompoundChild.WorldShape",
              "recv": "CompoundChild",
              "decl": "func (c CompoundChild) WorldShape(parentPos Vec3, parentRot Quat) Shape",
              "doc": "WorldShape returns c.Shape transformed into world space by applying c's local\nOffset and Rot first and then the parent's pos and rot.\n",
              "file": "pkg/physics3d/compound.go",
              "line": 58
            }
          ]
        },
        {
          "name": "CompoundMassProperties",
          "anchor": "CompoundMassProperties",
          "decl": "type CompoundMassProperties struct {\n\t// Mass is the total mass of all solid children in kilograms.\n\tMass float32\n\t// CenterOfMass is the combined center of mass in the compound's local frame.\n\tCenterOfMass Vec3\n\t// Inertia is the 3x3 symmetric inertia tensor about CenterOfMass in local space.\n\tInertia SymMat3\n\t// InvInertia is the inverse of Inertia in local space.\n\tInvInertia SymMat3\n\t// ScalarInvI is the isotropic mean inverse inertia 3 / (Ixx + Iyy + Izz).\n\tScalarInvI float32\n}",
          "doc": "CompoundMassProperties holds the combined mass, local center of mass, and\nlocal inertia tensor (about CenterOfMass) computed from a compound shape's\nsolid children using the parallel-axis theorem.\n",
          "file": "pkg/physics3d/compound.go",
          "line": 246,
          "members": [
            {
              "name": "Mass",
              "anchor": "CompoundMassProperties.Mass",
              "kind": "field",
              "doc": "Mass is the total mass of all solid children in kilograms."
            },
            {
              "name": "CenterOfMass",
              "anchor": "CompoundMassProperties.CenterOfMass",
              "kind": "field",
              "doc": "CenterOfMass is the combined center of mass in the compound's local frame."
            },
            {
              "name": "Inertia",
              "anchor": "CompoundMassProperties.Inertia",
              "kind": "field",
              "doc": "Inertia is the 3x3 symmetric inertia tensor about CenterOfMass in local space."
            },
            {
              "name": "InvInertia",
              "anchor": "CompoundMassProperties.InvInertia",
              "kind": "field",
              "doc": "InvInertia is the inverse of Inertia in local space."
            },
            {
              "name": "ScalarInvI",
              "anchor": "CompoundMassProperties.ScalarInvI",
              "kind": "field",
              "doc": "ScalarInvI is the isotropic mean inverse inertia 3 / (Ixx + Iyy + Izz)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ComputeCompoundMassProperties",
              "anchor": "ComputeCompoundMassProperties",
              "decl": "func ComputeCompoundMassProperties(children []CompoundChild, totalMass float32) CompoundMassProperties",
              "doc": "ComputeCompoundMassProperties computes the combined mass, local center of\nmass, and 3x3 symmetric inertia tensor (using the parallel-axis theorem) from\nall non-trigger children.\n\nWhen totalMass > 0, the returned Mass matches totalMass (distributing mass\nacross unspecified children by volume or scaling explicit child masses to\npreserve relative ratios). When totalMass <= 0, Mass is the sum of explicit\nchild masses and densities (0 if no child specifies Mass or Density).\n",
              "file": "pkg/physics3d/compound.go",
              "line": 435
            }
          ],
          "methods": []
        },
        {
          "name": "Contact",
          "anchor": "Contact",
          "decl": "type Contact struct {\n\tHit    bool\n\tNormal Vec3\n\tDepth  float32\n\tPoint  Vec3\n}",
          "doc": "Contact describes an overlap between two shapes A and B.\n\nWhen Hit is true, Normal is a unit vector pointing from B toward A (the\ndirection to translate A by Depth to separate it from B), Depth is the\npositive penetration depth, and Point is a representative contact point in\nworld space.\n",
          "file": "pkg/physics3d/shape.go",
          "line": 266,
          "members": [
            {
              "name": "Hit",
              "anchor": "Contact.Hit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "Contact.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "Contact.Depth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point",
              "anchor": "Contact.Point",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "TestBoxBox",
              "anchor": "TestBoxBox",
              "decl": "func TestBoxBox(a, b Box) Contact",
              "doc": "TestBoxBox tests two axis-aligned boxes for overlap.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 334
            },
            {
              "name": "TestBoxCapsule",
              "anchor": "TestBoxCapsule",
              "decl": "func TestBoxCapsule(a Box, b Capsule) Contact",
              "doc": "TestBoxCapsule tests an axis-aligned box a against a capsule b.\nThe returned Contact normal points from b toward a. When the capsule's segment passes through the box, the normal and depth come from the separating axis theorem over the box faces and the edges crossed with the segment, so moving a by Normal*Depth separates the whole capsule rather than one sphere on it.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 582
            },
            {
              "name": "TestBoxSphere",
              "anchor": "TestBoxSphere",
              "decl": "func TestBoxSphere(a Box, b Sphere) Contact",
              "doc": "TestBoxSphere tests an axis-aligned box a against a sphere b.\nThe returned Contact normal points from b toward a.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 467
            },
            {
              "name": "TestBoxTriangle",
              "anchor": "TestBoxTriangle",
              "decl": "func TestBoxTriangle(b Box, tri Triangle) Contact",
              "doc": "TestBoxTriangle tests axis-aligned box b against triangle tri using the\n13-axis Separating Axis Theorem. The returned Contact normal points from tri\ntoward b.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 282
            },
            {
              "name": "TestCapsuleCapsule",
              "anchor": "TestCapsuleCapsule",
              "decl": "func TestCapsuleCapsule(a, b Capsule) Contact",
              "doc": "TestCapsuleCapsule tests two capsules for overlap. When the two segments cross, the normal is perpendicular to both of them rather than an arbitrary axis.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 422
            },
            {
              "name": "TestCapsuleTriangle",
              "anchor": "TestCapsuleTriangle",
              "decl": "func TestCapsuleTriangle(cap Capsule, tri Triangle) Contact",
              "doc": "TestCapsuleTriangle tests capsule cap against triangle tri. The returned\nContact normal points from tri toward cap.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 187
            },
            {
              "name": "TestOrientedBoxBox",
              "anchor": "TestOrientedBoxBox",
              "decl": "func TestOrientedBoxBox(a Box, rotA Quat, b Box, rotB Quat) Contact",
              "doc": "TestOrientedBoxBox tests two boxes, each rotated by its rotation about its own Center, with the separating axis theorem over the 15 face and edge axes. The returned Contact normal points from b toward a; Point is the average of the corners of either box that lie inside the other, so a box resting flat on another gets a point under its center and a tilted one gets its penetrating corner.\n",
              "file": "pkg/physics3d/obb.go",
              "line": 107
            },
            {
              "name": "TestShapeTriangle",
              "anchor": "TestShapeTriangle",
              "decl": "func TestShapeTriangle(s Shape, tri Triangle) Contact",
              "doc": "TestShapeTriangle tests any Shape against a Triangle. The returned Contact\nnormal points from tri toward s.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 363
            },
            {
              "name": "TestShapes",
              "anchor": "TestShapes",
              "decl": "func TestShapes(a, b Shape) Contact",
              "doc": "TestShapes tests two shapes for overlap. The returned Contact normal points from b toward a. Boxes oriented by Shape.Rot are tested exactly: two boxes with the separating axis theorem, and a box against a sphere or capsule in the box's own frame. Any pair with a convex hull or a cylinder is tested with GJK and EPA, and its Point is the middle of the area where the two shapes touch.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 282
            },
            {
              "name": "TestSphereCapsule",
              "anchor": "TestSphereCapsule",
              "decl": "func TestSphereCapsule(a Sphere, b Capsule) Contact",
              "doc": "TestSphereCapsule tests a sphere a against a capsule b.\nThe returned Contact normal points from b toward a. A sphere centered on the capsule's segment is pushed out perpendicular to the segment.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 569
            },
            {
              "name": "TestSphereSphere",
              "anchor": "TestSphereSphere",
              "decl": "func TestSphereSphere(a, b Sphere) Contact",
              "doc": "TestSphereSphere tests two spheres for overlap.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 391
            },
            {
              "name": "TestSphereTriangle",
              "anchor": "TestSphereTriangle",
              "decl": "func TestSphereTriangle(s Sphere, tri Triangle) Contact",
              "doc": "TestSphereTriangle tests sphere s against triangle tri. The returned Contact\nnormal points from tri toward s.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 146
            }
          ],
          "methods": []
        },
        {
          "name": "ContactEvent",
          "anchor": "ContactEvent",
          "decl": "type ContactEvent struct {\n\tKind        ContactEventKind\n\tBodyA       *Body\n\tBodyB       *Body\n\tChildIndexA int\n\tChildIndexB int\n\tPoint       Vec3\n\tNormal      Vec3\n\tDepth       float32\n\tIsTrigger   bool\n}",
          "doc": "ContactEvent describes a deterministic contact or trigger transition between\nBodyA and BodyB (canonicalized so BodyA.ID <= BodyB.ID).\n\nNormal points from BodyB toward BodyA (matching TestShapes(BodyA, BodyB)).\nChildIndexA and ChildIndexB report the zero-based compound child indices on\nBodyA and BodyB, or -1 for non-compound bodies.\n",
          "file": "pkg/physics3d/layers_triggers.go",
          "line": 67,
          "members": [
            {
              "name": "Kind",
              "anchor": "ContactEvent.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyA",
              "anchor": "ContactEvent.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "ContactEvent.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildIndexA",
              "anchor": "ContactEvent.ChildIndexA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildIndexB",
              "anchor": "ContactEvent.ChildIndexB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point",
              "anchor": "ContactEvent.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "ContactEvent.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "ContactEvent.Depth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsTrigger",
              "anchor": "ContactEvent.IsTrigger",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ContactEventKind",
          "anchor": "ContactEventKind",
          "decl": "type ContactEventKind int",
          "doc": "ContactEventKind identifies the lifecycle transition of a contact or trigger pair.\n",
          "file": "pkg/physics3d/layers_triggers.go",
          "line": 49,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ContactEnter",
                  "anchor": "ContactEnter"
                },
                {
                  "name": "ContactStay",
                  "anchor": "ContactStay"
                },
                {
                  "name": "ContactExit",
                  "anchor": "ContactExit"
                }
              ],
              "decl": "const (\n\t// ContactEnter fires once on the first step two bodies begin overlapping.\n\tContactEnter ContactEventKind = iota\n\t// ContactStay fires on each subsequent step the two bodies remain overlapping.\n\tContactStay\n\t// ContactExit fires once when two previously overlapping bodies separate or\n\t// either body is removed from the World.\n\tContactExit\n)",
              "doc": "",
              "file": "pkg/physics3d/layers_triggers.go",
              "line": 51
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ContactEventSnapshot",
          "anchor": "ContactEventSnapshot",
          "decl": "type ContactEventSnapshot struct {\n\tKind        ContactEventKind `json:\"kind\"`\n\tBodyAID     int              `json:\"bodyAID\"`\n\tBodyBID     int              `json:\"bodyBID\"`\n\tChildIndexA int              `json:\"childIndexA\"`\n\tChildIndexB int              `json:\"childIndexB\"`\n\tPoint       Vec3             `json:\"point\"`\n\tNormal      Vec3             `json:\"normal\"`\n\tDepth       float32          `json:\"depth\"`\n\tIsTrigger   bool             `json:\"isTrigger,omitempty\"`\n}",
          "doc": "ContactEventSnapshot captures one ContactEvent produced by the last Step.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 132,
          "members": [
            {
              "name": "Kind",
              "anchor": "ContactEventSnapshot.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyAID",
              "anchor": "ContactEventSnapshot.BodyAID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyBID",
              "anchor": "ContactEventSnapshot.BodyBID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildIndexA",
              "anchor": "ContactEventSnapshot.ChildIndexA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildIndexB",
              "anchor": "ContactEventSnapshot.ChildIndexB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point",
              "anchor": "ContactEventSnapshot.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "ContactEventSnapshot.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "ContactEventSnapshot.Depth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsTrigger",
              "anchor": "ContactEventSnapshot.IsTrigger",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "UnmarshalJSON",
              "anchor": "ContactEventSnapshot.UnmarshalJSON",
              "recv": "*ContactEventSnapshot",
              "decl": "func (e *ContactEventSnapshot) UnmarshalJSON(data []byte) error",
              "doc": "UnmarshalJSON defaults ChildIndexA and ChildIndexB to -1 when omitted in pre-compound v1 snapshots.\n",
              "file": "pkg/physics3d/snapshot.go",
              "line": 145
            }
          ]
        },
        {
          "name": "ConvexHull",
          "anchor": "ConvexHull",
          "decl": "type ConvexHull struct {\n\t// Center is where the hull's local origin sits.\n\tCenter Vec3\n\t// contains filtered or unexported fields\n}",
          "doc": "ConvexHull is a convex polyhedron for collision. Build one with NewConvexHull or ConvexHullFromMesh; the zero value is empty and collides with nothing.\n\nThe hull's vertices are fixed when it is built and are relative to Center, which Translated and Shape.Transformed move. A Shape that wraps a hull may also set Rot, which turns the hull about Center, as it does for a Box.\n",
          "file": "pkg/physics3d/convex.go",
          "line": 27,
          "members": [
            {
              "name": "Center",
              "anchor": "ConvexHull.Center",
              "kind": "field",
              "doc": "Center is where the hull's local origin sits."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ConvexHullFromMesh",
              "anchor": "ConvexHullFromMesh",
              "decl": "func ConvexHullFromMesh(positions []math3d.Vec3, indices []uint32, maxVertices int) (ConvexHull, error)",
              "doc": "ConvexHullFromMesh returns the convex hull of a triangle mesh's vertices, such as a glTF primitive's Positions and Indices or a render3d.Mesh's. When indices is not empty only the vertices it references are used; otherwise every position is. maxVertices is as for NewConvexHull.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 79
            },
            {
              "name": "NewConvexHull",
              "anchor": "NewConvexHull",
              "decl": "func NewConvexHull(points []Vec3, maxVertices int) (ConvexHull, error)",
              "doc": "NewConvexHull returns the convex hull of points, keeping at most maxVertices of them as its vertices (DefaultHullVertices when maxVertices <= 0, and never more than MaxHullVertices). A limit of 1 to 3 is raised to 4, the fewest vertices a hull with volume has.\n\nThe hull is built by quickhull, which adds the point furthest outside the hull so far until none is left or the limit is reached. When the limit stops it early, the hull is the hull of the points kept: it lies inside the full hull and keeps its most prominent corners. Points within a small tolerance of a face are dropped, and coplanar triangles are merged into polygon faces. The result depends only on the points and their order, never on map order or the platform's scheduling, so the same input always gives the same hull.\n\nIt returns ErrDegenerateHull when the points do not span a volume.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 59
            }
          ],
          "methods": [
            {
              "name": "Centroid",
              "anchor": "ConvexHull.Centroid",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) Centroid() Vec3",
              "doc": "Centroid returns h's center of mass for uniform density, Center plus the centroid of its vertices' volume.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 168
            },
            {
              "name": "Edges",
              "anchor": "ConvexHull.Edges",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) Edges() [][2]int",
              "doc": "Edges returns a copy of h's edges, each a pair of indices into Vertices with the smaller first, in a fixed order.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 152
            },
            {
              "name": "FaceNormals",
              "anchor": "ConvexHull.FaceNormals",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) FaceNormals() []Vec3",
              "doc": "FaceNormals returns the outward unit normal of each face, in the order of Faces.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 140
            },
            {
              "name": "Faces",
              "anchor": "ConvexHull.Faces",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) Faces() [][]int",
              "doc": "Faces returns a copy of h's faces, each a list of indices into Vertices in counter-clockwise order seen from outside the hull.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 128
            },
            {
              "name": "InertiaTensor",
              "anchor": "ConvexHull.InertiaTensor",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) InertiaTensor(mass float32) [3]Vec3",
              "doc": "InertiaTensor returns the inertia tensor of h with the given mass and uniform density, about its centroid, in its local axes, as rows.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 176
            },
            {
              "name": "IsEmpty",
              "anchor": "ConvexHull.IsEmpty",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) IsEmpty() bool",
              "doc": "IsEmpty reports whether h has no geometry, as the zero ConvexHull has.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 105
            },
            {
              "name": "MarshalJSON",
              "anchor": "ConvexHull.MarshalJSON",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) MarshalJSON() ([]byte, error)",
              "doc": "MarshalJSON encodes h with its full geometry, so that WorldSnapshot round-trips bodies with convex hull shapes losslessly.\n",
              "file": "pkg/physics3d/convex_json.go",
              "line": 37
            },
            {
              "name": "NumVertices",
              "anchor": "ConvexHull.NumVertices",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) NumVertices() int",
              "doc": "NumVertices returns how many vertices h has.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 108
            },
            {
              "name": "Recentered",
              "anchor": "ConvexHull.Recentered",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) Recentered() ConvexHull",
              "doc": "Recentered returns h with its vertices moved so that its centroid is at the local origin and Center moved by the same amount, so it covers the same space. A body built from a recentered hull at the hull's position rotates about its center of mass.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 195
            },
            {
              "name": "Translated",
              "anchor": "ConvexHull.Translated",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) Translated(offset Vec3) ConvexHull",
              "doc": "Translated returns a copy of h shifted by offset.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 189
            },
            {
              "name": "UnmarshalJSON",
              "anchor": "ConvexHull.UnmarshalJSON",
              "recv": "*ConvexHull",
              "decl": "func (h *ConvexHull) UnmarshalJSON(data []byte) error",
              "doc": "UnmarshalJSON decodes a hull written by MarshalJSON. It refuses unknown fields and geometry whose indices are out of range or whose numbers are not finite.\n",
              "file": "pkg/physics3d/convex_json.go",
              "line": 65
            },
            {
              "name": "Vertices",
              "anchor": "ConvexHull.Vertices",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) Vertices() []Vec3",
              "doc": "Vertices returns a copy of h's vertices relative to Center.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 116
            },
            {
              "name": "Volume",
              "anchor": "ConvexHull.Volume",
              "recv": "ConvexHull",
              "decl": "func (h ConvexHull) Volume() float32",
              "doc": "Volume returns h's volume.\n",
              "file": "pkg/physics3d/convex.go",
              "line": 160
            }
          ]
        },
        {
          "name": "CoverOptions",
          "anchor": "CoverOptions",
          "decl": "type CoverOptions struct {\n\t// Spacing is the horizontal distance between cover samples along each collider face (defaults to 1.0 when <= 0).\n\tSpacing float32\n\t// Standoff offsets each cover point outward from the collider face into open space (defaults to 0.5 when <= 0).\n\tStandoff float32\n\t// EdgeInset is the margin from face corners (defaults to Spacing * 0.5 when <= 0).\n\tEdgeInset float32\n\t// MinEdgeLength skips horizontal faces shorter than this length (<= 0 allows any positive face).\n\tMinEdgeLength float32\n\t// HalfCoverMinHeight is the minimum obstacle vertical height for CoverHalf (defaults to 0.7 when <= 0).\n\t// Shorter obstacles (such as floor slabs) do not generate cover.\n\tHalfCoverMinHeight float32\n\t// FullCoverMinHeight is the minimum obstacle vertical height for CoverFull (defaults to 1.6 when <= 0).\n\tFullCoverMinHeight float32\n\t// LayerMask filters bodies considered as cover obstacles (0 defaults to LayerAll).\n\tLayerMask LayerMask\n\t// IncludeDynamic includes non-static bodies when true; by default only static level geometry generates cover.\n\tIncludeDynamic bool\n\t// StartID is the first CoverPoint.ID assigned (defaults to 1 when 0).\n\tStartID uint64\n}",
          "doc": "CoverOptions configures 3D collider-edge cover point generation projected onto the XZ ground plane.\n\nGenerated ai.CoverPoint values store (X, Z) in Pos, the obstacle's floor Y in Elevation,\nand the horizontal XZ unit direction into the obstacle in Facing.\n",
          "file": "pkg/physics3d/cover.go",
          "line": 14,
          "members": [
            {
              "name": "Spacing",
              "anchor": "CoverOptions.Spacing",
              "kind": "field",
              "doc": "Spacing is the horizontal distance between cover samples along each collider face (defaults to 1.0 when <= 0)."
            },
            {
              "name": "Standoff",
              "anchor": "CoverOptions.Standoff",
              "kind": "field",
              "doc": "Standoff offsets each cover point outward from the collider face into open space (defaults to 0.5 when <= 0)."
            },
            {
              "name": "EdgeInset",
              "anchor": "CoverOptions.EdgeInset",
              "kind": "field",
              "doc": "EdgeInset is the margin from face corners (defaults to Spacing * 0.5 when <= 0)."
            },
            {
              "name": "MinEdgeLength",
              "anchor": "CoverOptions.MinEdgeLength",
              "kind": "field",
              "doc": "MinEdgeLength skips horizontal faces shorter than this length (<= 0 allows any positive face)."
            },
            {
              "name": "HalfCoverMinHeight",
              "anchor": "CoverOptions.HalfCoverMinHeight",
              "kind": "field",
              "doc": "HalfCoverMinHeight is the minimum obstacle vertical height for CoverHalf (defaults to 0.7 when <= 0).\nShorter obstacles (such as floor slabs) do not generate cover."
            },
            {
              "name": "FullCoverMinHeight",
              "anchor": "CoverOptions.FullCoverMinHeight",
              "kind": "field",
              "doc": "FullCoverMinHeight is the minimum obstacle vertical height for CoverFull (defaults to 1.6 when <= 0)."
            },
            {
              "name": "LayerMask",
              "anchor": "CoverOptions.LayerMask",
              "kind": "field",
              "doc": "LayerMask filters bodies considered as cover obstacles (0 defaults to LayerAll)."
            },
            {
              "name": "IncludeDynamic",
              "anchor": "CoverOptions.IncludeDynamic",
              "kind": "field",
              "doc": "IncludeDynamic includes non-static bodies when true; by default only static level geometry generates cover."
            },
            {
              "name": "StartID",
              "anchor": "CoverOptions.StartID",
              "kind": "field",
              "doc": "StartID is the first CoverPoint.ID assigned (defaults to 1 when 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Cylinder",
          "anchor": "Cylinder",
          "decl": "type Cylinder struct {\n\tA, B   Vec3\n\tRadius float32\n}",
          "doc": "Cylinder is a solid round cylinder whose axis runs from the center of its A cap to the center of its B cap, with flat caps of the given Radius (#808). A cylinder whose A and B coincide or whose Radius is not positive has no volume: collisions, raycasts and areas ignore it.\n",
          "file": "pkg/physics3d/cylinder.go",
          "line": 6,
          "members": [
            {
              "name": "A",
              "anchor": "Cylinder.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "Cylinder.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Cylinder.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "VerticalCylinder",
              "anchor": "VerticalCylinder",
              "decl": "func VerticalCylinder(center Vec3, radius, height float32) Cylinder",
              "doc": "VerticalCylinder returns a Y-aligned cylinder centered at center with the given radius and total height, such as a barrel standing on its end.\n",
              "file": "pkg/physics3d/cylinder.go",
              "line": 12
            }
          ],
          "methods": [
            {
              "name": "Center",
              "anchor": "Cylinder.Center",
              "recv": "Cylinder",
              "decl": "func (c Cylinder) Center() Vec3",
              "doc": "Center returns the midpoint of c's axis.\n",
              "file": "pkg/physics3d/cylinder.go",
              "line": 27
            },
            {
              "name": "Height",
              "anchor": "Cylinder.Height",
              "recv": "Cylinder",
              "decl": "func (c Cylinder) Height() float32",
              "doc": "Height returns the length of c's axis.\n",
              "file": "pkg/physics3d/cylinder.go",
              "line": 32
            },
            {
              "name": "Translated",
              "anchor": "Cylinder.Translated",
              "recv": "Cylinder",
              "decl": "func (c Cylinder) Translated(offset Vec3) Cylinder",
              "doc": "Translated returns a copy of c shifted by offset.\n",
              "file": "pkg/physics3d/cylinder.go",
              "line": 22
            }
          ]
        },
        {
          "name": "DebugStyle",
          "anchor": "DebugStyle",
          "decl": "type DebugStyle struct {\n\tBoxColor     core.Color\n\tSphereColor  core.Color\n\tCapsuleColor core.Color\n\t// HullColor draws convex hulls.\n\tHullColor core.Color\n\t// CylinderColor draws cylinders.\n\tCylinderColor  core.Color\n\tContactColor   core.Color\n\tNormalColor    core.Color\n\tRayColor       core.Color\n\tLineWidth      float32\n\tSphereSegments int\n\tNormalLength   float32\n\t// DepthZO clips at the near plane of a [0, 1] depth projection (clip z >= 0), such as math3d.Perspective, math3d.Ortho and the render3d cameras, as render3d.ProjectSegment does. By default lines clip at clip z >= -w, the near plane of this package's [-1, 1] Mat4Perspective and Mat4Ortho; with a [0, 1] orthographic projection, where w is 1 everywhere, that keeps geometry behind the camera (#546).\n\tDepthZO bool\n}",
          "doc": "DebugStyle configures the colors, stroke width, and tessellation used by\nphysics3d debug drawing functions. Zero-valued fields fall back to\nDefaultDebugStyle().\n",
          "file": "pkg/physics3d/wireframe.go",
          "line": 14,
          "members": [
            {
              "name": "BoxColor",
              "anchor": "DebugStyle.BoxColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SphereColor",
              "anchor": "DebugStyle.SphereColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CapsuleColor",
              "anchor": "DebugStyle.CapsuleColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HullColor",
              "anchor": "DebugStyle.HullColor",
              "kind": "field",
              "doc": "HullColor draws convex hulls."
            },
            {
              "name": "CylinderColor",
              "anchor": "DebugStyle.CylinderColor",
              "kind": "field",
              "doc": "CylinderColor draws cylinders."
            },
            {
              "name": "ContactColor",
              "anchor": "DebugStyle.ContactColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalColor",
              "anchor": "DebugStyle.NormalColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RayColor",
              "anchor": "DebugStyle.RayColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LineWidth",
              "anchor": "DebugStyle.LineWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SphereSegments",
              "anchor": "DebugStyle.SphereSegments",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalLength",
              "anchor": "DebugStyle.NormalLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DepthZO",
              "anchor": "DebugStyle.DepthZO",
              "kind": "field",
              "doc": "DepthZO clips at the near plane of a [0, 1] depth projection (clip z >= 0), such as math3d.Perspective, math3d.Ortho and the render3d cameras, as render3d.ProjectSegment does. By default lines clip at clip z >= -w, the near plane of this package's [-1, 1] Mat4Perspective and Mat4Ortho; with a [0, 1] orthographic projection, where w is 1 everywhere, that keeps geometry behind the camera (#546)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultDebugStyle",
              "anchor": "DefaultDebugStyle",
              "decl": "func DefaultDebugStyle() DebugStyle",
              "doc": "DefaultDebugStyle returns a high-contrast DebugStyle suitable for overlaying\n3D collider wireframes on a game scene.\n",
              "file": "pkg/physics3d/wireframe.go",
              "line": 34
            }
          ],
          "methods": []
        },
        {
          "name": "DistanceConstraint",
          "anchor": "DistanceConstraint",
          "decl": "type DistanceConstraint struct {\n\tA, B       int\n\tRestLength float32\n\tCompliance float32\n\tMaxOnly    bool\n\t// contains filtered or unexported fields\n}",
          "doc": "DistanceConstraint constrains the Euclidean distance between particles A and B.\nWhen MaxOnly is true, the constraint acts as a unilateral tether that only pulls\nparticles together when their separation exceeds RestLength.\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 70,
          "members": [
            {
              "name": "A",
              "anchor": "DistanceConstraint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "DistanceConstraint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestLength",
              "anchor": "DistanceConstraint.RestLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "DistanceConstraint.Compliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxOnly",
              "anchor": "DistanceConstraint.MaxOnly",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DistanceJoint",
          "anchor": "DistanceJoint",
          "decl": "type DistanceJoint struct {\n\tBodyA, BodyB     *Body\n\tLocalAnchorA     Vec3\n\tLocalAnchorB     Vec3\n\tMinDistance      float32\n\tMaxDistance      float32\n\tStiffness        float32 // 0 = rigid constraint; > 0 = soft spring stiffness\n\tDamping          float32 // >= 0 damping coefficient\n\tBreakForce       float32 // max reaction force in N before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque in N*m before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "DistanceJoint constrains the distance between anchor points on BodyA and BodyB within [MinDistance, MaxDistance] with optional spring stiffness and damping.\n\nThe joint is slack while the distance is inside the range: Stiffness and Damping soften the limits rather than pull toward a rest length. For a spring with a rest length L, set MinDistance and MaxDistance both to L; for a soft rope, set MinDistance to 0.\n",
          "file": "pkg/physics3d/joints.go",
          "line": 418,
          "members": [
            {
              "name": "BodyA",
              "anchor": "DistanceJoint.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "DistanceJoint.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorA",
              "anchor": "DistanceJoint.LocalAnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorB",
              "anchor": "DistanceJoint.LocalAnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinDistance",
              "anchor": "DistanceJoint.MinDistance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxDistance",
              "anchor": "DistanceJoint.MaxDistance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stiffness",
              "anchor": "DistanceJoint.Stiffness",
              "kind": "field",
              "doc": "0 = rigid constraint; > 0 = soft spring stiffness"
            },
            {
              "name": "Damping",
              "anchor": "DistanceJoint.Damping",
              "kind": "field",
              "doc": ">= 0 damping coefficient"
            },
            {
              "name": "BreakForce",
              "anchor": "DistanceJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force in N before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "DistanceJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque in N*m before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "DistanceJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDistanceJoint",
              "anchor": "NewDistanceJoint",
              "decl": "func NewDistanceJoint(a, b *Body, localAnchorA, localAnchorB Vec3, minDist, maxDist float32) *DistanceJoint",
              "doc": "NewDistanceJoint creates a DistanceJoint between a and b. If maxDist < minDist,\nmaxDist is set equal to minDist (a fixed-length rod).\n",
              "file": "pkg/physics3d/joints.go",
              "line": 440
            }
          ],
          "methods": [
            {
              "name": "Bodies",
              "anchor": "DistanceJoint.Bodies",
              "recv": "*DistanceJoint",
              "decl": "func (j *DistanceJoint) Bodies() (*Body, *Body)",
              "doc": "Bodies returns the connected bodies.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 464
            },
            {
              "name": "Broken",
              "anchor": "DistanceJoint.Broken",
              "recv": "*DistanceJoint",
              "decl": "func (r *DistanceJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 83
            },
            {
              "name": "Prepare",
              "anchor": "DistanceJoint.Prepare",
              "recv": "*DistanceJoint",
              "decl": "func (j *DistanceJoint) Prepare(dt float32)",
              "doc": "Prepare computes the active distance mode and spring ERP/CFM parameters for dt.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 479
            },
            {
              "name": "ReactionForce",
              "anchor": "DistanceJoint.ReactionForce",
              "recv": "*DistanceJoint",
              "decl": "func (r *DistanceJoint) ReactionForce() Vec3",
              "doc": "ReactionForce returns the world-space constraint force (in Newtons) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 66
            },
            {
              "name": "ReactionTorque",
              "anchor": "DistanceJoint.ReactionTorque",
              "recv": "*DistanceJoint",
              "decl": "func (r *DistanceJoint) ReactionTorque() Vec3",
              "doc": "ReactionTorque returns the world-space constraint torque (in N*m) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 75
            },
            {
              "name": "SolvePosition",
              "anchor": "DistanceJoint.SolvePosition",
              "recv": "*DistanceJoint",
              "decl": "func (j *DistanceJoint) SolvePosition(dt float32)",
              "doc": "SolvePosition corrects distance drift for rigid (Stiffness <= 0) DistanceJoints.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 587
            },
            {
              "name": "SolveVelocity",
              "anchor": "DistanceJoint.SolveVelocity",
              "recv": "*DistanceJoint",
              "decl": "func (j *DistanceJoint) SolveVelocity(dt float32)",
              "doc": "SolveVelocity applies one velocity iteration along the anchor axis.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 521
            }
          ]
        },
        {
          "name": "DriveMode",
          "anchor": "DriveMode",
          "decl": "type DriveMode int",
          "doc": "DriveMode selects how a SixDOFJoint axis drive operates.\n",
          "file": "pkg/physics3d/joints_6dof.go",
          "line": 493,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DriveNone",
                  "anchor": "DriveNone"
                },
                {
                  "name": "DrivePosition",
                  "anchor": "DrivePosition"
                },
                {
                  "name": "DriveVelocity",
                  "anchor": "DriveVelocity"
                }
              ],
              "decl": "const (\n\t// DriveNone disables explicit motor driving (Stiffness > 0 or Damping > 0\n\t// still acts as a passive spring-damper toward TargetPos).\n\tDriveNone DriveMode = iota\n\t// DrivePosition drives the axis toward TargetPos using Stiffness and Damping\n\t// (or a direct velocity servo when both are 0), clamped by MaxForce when > 0.\n\tDrivePosition\n\t// DriveVelocity drives the axis toward TargetVel, clamped by MaxForce when > 0.\n\tDriveVelocity\n)",
              "doc": "",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 495
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FixedJoint",
          "anchor": "FixedJoint",
          "decl": "type FixedJoint struct {\n\tBodyA, BodyB     *Body\n\tLocalAnchorA     Vec3\n\tLocalAnchorB     Vec3\n\tRefRelRot        Quat\n\tBreakForce       float32 // max reaction force in N before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque in N*m before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "FixedJoint rigidly locks both relative position and relative orientation\nbetween BodyA and BodyB.\n",
          "file": "pkg/physics3d/joints.go",
          "line": 1337,
          "members": [
            {
              "name": "BodyA",
              "anchor": "FixedJoint.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "FixedJoint.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorA",
              "anchor": "FixedJoint.LocalAnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorB",
              "anchor": "FixedJoint.LocalAnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefRelRot",
              "anchor": "FixedJoint.RefRelRot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BreakForce",
              "anchor": "FixedJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force in N before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "FixedJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque in N*m before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "FixedJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFixedJoint",
              "anchor": "NewFixedJoint",
              "decl": "func NewFixedJoint(a, b *Body, localAnchorA, localAnchorB Vec3) *FixedJoint",
              "doc": "NewFixedJoint creates a FixedJoint locking a and b at their current relative\norientation and specified local anchor points.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1352
            }
          ],
          "methods": [
            {
              "name": "Bodies",
              "anchor": "FixedJoint.Bodies",
              "recv": "*FixedJoint",
              "decl": "func (j *FixedJoint) Bodies() (*Body, *Body)",
              "doc": "Bodies returns the connected bodies.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1370
            },
            {
              "name": "Broken",
              "anchor": "FixedJoint.Broken",
              "recv": "*FixedJoint",
              "decl": "func (r *FixedJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 83
            },
            {
              "name": "Prepare",
              "anchor": "FixedJoint.Prepare",
              "recv": "*FixedJoint",
              "decl": "func (j *FixedJoint) Prepare(dt float32)",
              "doc": "Prepare captures the reference relative orientation if not already set.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1388
            },
            {
              "name": "ReactionForce",
              "anchor": "FixedJoint.ReactionForce",
              "recv": "*FixedJoint",
              "decl": "func (r *FixedJoint) ReactionForce() Vec3",
              "doc": "ReactionForce returns the world-space constraint force (in Newtons) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 66
            },
            {
              "name": "ReactionTorque",
              "anchor": "FixedJoint.ReactionTorque",
              "recv": "*FixedJoint",
              "decl": "func (r *FixedJoint) ReactionTorque() Vec3",
              "doc": "ReactionTorque returns the world-space constraint torque (in N*m) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 75
            },
            {
              "name": "SolvePosition",
              "anchor": "FixedJoint.SolvePosition",
              "recv": "*FixedJoint",
              "decl": "func (j *FixedJoint) SolvePosition(dt float32)",
              "doc": "SolvePosition corrects linear and angular drift from the locked relative pose.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1401
            },
            {
              "name": "SolveVelocity",
              "anchor": "FixedJoint.SolveVelocity",
              "recv": "*FixedJoint",
              "decl": "func (j *FixedJoint) SolveVelocity(dt float32)",
              "doc": "SolveVelocity solves the 6-DOF linear and angular lock.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1394
            }
          ]
        },
        {
          "name": "GLTFColliderOptions",
          "anchor": "GLTFColliderOptions",
          "decl": "type GLTFColliderOptions struct {\n\t// UseScene selects doc.Scenes[Scene] when true. When false, the document's\n\t// default scene (doc.Scene, falling back to scene 0 or all nodes) is used.\n\tUseScene bool\n\t// Scene is the scene index inspected when UseScene is true.\n\tScene int\n\n\t// IncludeUnmarked builds static TriMeshColliders for ordinary mesh nodes\n\t// that carry neither a collider name suffix nor extras.collider metadata.\n\t// When false (default), only annotated collider nodes produce colliders.\n\tIncludeUnmarked bool\n\n\t// Friction is the default Coulomb friction coefficient for generated\n\t// colliders when not overridden by extras.collider (<= 0 defaults to 0.5).\n\tFriction float32\n\t// Restitution is the default bounciness in [0, 1] when not overridden.\n\tRestitution float32\n\t// Layer is the default collision layer mask when not overridden (0 -> LayerAll).\n\tLayer LayerMask\n\t// Mask is the default collision filter mask when not overridden (0 -> LayerAll).\n\tMask LayerMask\n\t// TagPrefix is optionally prepended to generated collider tags.\n\tTagPrefix string\n}",
          "doc": "GLTFColliderOptions configures how colliders are built from a glTF document.\n",
          "file": "pkg/physics3d/gltf_colliders.go",
          "line": 188,
          "members": [
            {
              "name": "UseScene",
              "anchor": "GLTFColliderOptions.UseScene",
              "kind": "field",
              "doc": "UseScene selects doc.Scenes[Scene] when true. When false, the document's\ndefault scene (doc.Scene, falling back to scene 0 or all nodes) is used."
            },
            {
              "name": "Scene",
              "anchor": "GLTFColliderOptions.Scene",
              "kind": "field",
              "doc": "Scene is the scene index inspected when UseScene is true."
            },
            {
              "name": "IncludeUnmarked",
              "anchor": "GLTFColliderOptions.IncludeUnmarked",
              "kind": "field",
              "doc": "IncludeUnmarked builds static TriMeshColliders for ordinary mesh nodes\nthat carry neither a collider name suffix nor extras.collider metadata.\nWhen false (default), only annotated collider nodes produce colliders."
            },
            {
              "name": "Friction",
              "anchor": "GLTFColliderOptions.Friction",
              "kind": "field",
              "doc": "Friction is the default Coulomb friction coefficient for generated\ncolliders when not overridden by extras.collider (<= 0 defaults to 0.5)."
            },
            {
              "name": "Restitution",
              "anchor": "GLTFColliderOptions.Restitution",
              "kind": "field",
              "doc": "Restitution is the default bounciness in [0, 1] when not overridden."
            },
            {
              "name": "Layer",
              "anchor": "GLTFColliderOptions.Layer",
              "kind": "field",
              "doc": "Layer is the default collision layer mask when not overridden (0 -> LayerAll)."
            },
            {
              "name": "Mask",
              "anchor": "GLTFColliderOptions.Mask",
              "kind": "field",
              "doc": "Mask is the default collision filter mask when not overridden (0 -> LayerAll)."
            },
            {
              "name": "TagPrefix",
              "anchor": "GLTFColliderOptions.TagPrefix",
              "kind": "field",
              "doc": "TagPrefix is optionally prepended to generated collider tags."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GLTFColliders",
          "anchor": "GLTFColliders",
          "decl": "type GLTFColliders struct {\n\tBodies    []*Body\n\tTriMeshes []*TriMeshCollider\n}",
          "doc": "GLTFColliders holds the static primitive bodies and triangle-mesh colliders\nextracted from a glTF document.\n",
          "file": "pkg/physics3d/gltf_colliders.go",
          "line": 215,
          "members": [
            {
              "name": "Bodies",
              "anchor": "GLTFColliders.Bodies",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriMeshes",
              "anchor": "GLTFColliders.TriMeshes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildGLTFColliders",
              "anchor": "BuildGLTFColliders",
              "decl": "func BuildGLTFColliders(doc *gltf.Document, opts GLTFColliderOptions) (*GLTFColliders, error)",
              "doc": "BuildGLTFColliders extracts static collider bodies and TriMeshColliders from\ndoc according to glTF collider naming conventions (-col, -colonly, -boxcol,\n-boxcolonly, -spherecol, -spherecolonly, -capsulecol, -capsulecolonly,\n-convcol, -convcolonly) and node extras.collider metadata.\n\nNode transforms are read from Node.WorldMatrix (computed automatically by\ngltf.Load / gltf.LoadFS and refreshed by doc.ComputeWorldMatrices).\n",
              "file": "pkg/physics3d/gltf_colliders.go",
              "line": 490
            }
          ],
          "methods": [
            {
              "name": "AddToWorld",
              "anchor": "GLTFColliders.AddToWorld",
              "recv": "*GLTFColliders",
              "decl": "func (c *GLTFColliders) AddToWorld(w *World)",
              "doc": "AddToWorld registers every body and triangle-mesh collider in c into w,\nupdating c.Bodies to reference the stored *Body pointers returned by w.AddBody.\n",
              "file": "pkg/physics3d/gltf_colliders.go",
              "line": 222
            },
            {
              "name": "RemoveFromWorld",
              "anchor": "GLTFColliders.RemoveFromWorld",
              "recv": "*GLTFColliders",
              "decl": "func (c *GLTFColliders) RemoveFromWorld(w *World)",
              "doc": "RemoveFromWorld removes every registered body and triangle-mesh collider in c from w.\n",
              "file": "pkg/physics3d/gltf_colliders.go",
              "line": 241
            }
          ]
        },
        {
          "name": "GravityFalloff",
          "anchor": "GravityFalloff",
          "decl": "type GravityFalloff uint8",
          "doc": "GravityFalloff controls how point-gravity acceleration varies with distance\nfrom GravityPoint.\n",
          "file": "pkg/physics3d/area.go",
          "line": 31,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GravityFalloffNone",
                  "anchor": "GravityFalloffNone"
                },
                {
                  "name": "GravityFalloffLinear",
                  "anchor": "GravityFalloffLinear"
                },
                {
                  "name": "GravityFalloffInverse",
                  "anchor": "GravityFalloffInverse"
                },
                {
                  "name": "GravityFalloffInverseSquare",
                  "anchor": "GravityFalloffInverseSquare"
                }
              ],
              "decl": "const (\n\t// GravityFalloffNone applies constant GravityStrength regardless of distance (zero value).\n\tGravityFalloffNone GravityFalloff = iota\n\t// GravityFalloffLinear decreases acceleration linearly from GravityStrength at\n\t// distance 0 to 0 at GravityUnitDistance (or the trigger shape's outer radius\n\t// when GravityUnitDistance <= 0).\n\tGravityFalloffLinear\n\t// GravityFalloffInverse scales acceleration as GravityStrength * (unitDist / dist).\n\tGravityFalloffInverse\n\t// GravityFalloffInverseSquare scales acceleration as GravityStrength * (unitDist / dist)^2.\n\tGravityFalloffInverseSquare\n)",
              "doc": "",
              "file": "pkg/physics3d/area.go",
              "line": 33
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HeightfieldCollider",
          "anchor": "HeightfieldCollider",
          "decl": "type HeightfieldCollider struct {\n\tID          int\n\tTag         string\n\tLayer       LayerMask\n\tMask        LayerMask\n\tFriction    float32\n\tRestitution float32\n\tCols        int\n\tRows        int\n\tCellSize    float32\n\tOrigin      Vec3\n\tHeights     []float32\n\tBounds      Box\n}",
          "doc": "HeightfieldCollider is a static terrain heightfield collider on a regular XZ\ngrid with exact barycentric surface interpolation, DDA raycasting, and\nsphere/capsule/box collision.\n\nVertex (cx, cz) sits at world position:\n\n\t(Origin.X + cx*CellSize, Origin.Y + Heights[cz*Cols + cx], Origin.Z + cz*CellSize)\n",
          "file": "pkg/physics3d/mesh_heightfield.go",
          "line": 715,
          "members": [
            {
              "name": "ID",
              "anchor": "HeightfieldCollider.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "HeightfieldCollider.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "HeightfieldCollider.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "HeightfieldCollider.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "HeightfieldCollider.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "HeightfieldCollider.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cols",
              "anchor": "HeightfieldCollider.Cols",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "HeightfieldCollider.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CellSize",
              "anchor": "HeightfieldCollider.CellSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Origin",
              "anchor": "HeightfieldCollider.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Heights",
              "anchor": "HeightfieldCollider.Heights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "HeightfieldCollider.Bounds",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHeightfieldCollider",
              "anchor": "NewHeightfieldCollider",
              "decl": "func NewHeightfieldCollider(cols, rows int, cellSize float32, origin Vec3, heights []float32) *HeightfieldCollider",
              "doc": "NewHeightfieldCollider constructs a HeightfieldCollider matching world3d.Heightmap\ngrid conventions (row-major heights[cz*cols + cx]).\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 732
            },
            {
              "name": "NewHeightfieldFromImage",
              "anchor": "NewHeightfieldFromImage",
              "decl": "func NewHeightfieldFromImage(img image.Image, opts HeightfieldImageOptions) (*HeightfieldCollider, error)",
              "doc": "NewHeightfieldFromImage builds a static HeightfieldCollider from any standard\nGo image.Image (grayscale 8-bit, 16-bit Gray16, RGBA, NRGBA, RGBA64, etc.).\n",
              "file": "pkg/physics3d/heightfield_image.go",
              "line": 73
            }
          ],
          "methods": [
            {
              "name": "CollectContacts",
              "anchor": "HeightfieldCollider.CollectContacts",
              "recv": "*HeightfieldCollider",
              "decl": "func (hf *HeightfieldCollider) CollectContacts(s Shape, dst []Contact) []Contact",
              "doc": "CollectContacts appends all overlapping heightfield triangle contacts for s to dst.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 1164
            },
            {
              "name": "HeightAt",
              "anchor": "HeightfieldCollider.HeightAt",
              "recv": "*HeightfieldCollider",
              "decl": "func (hf *HeightfieldCollider) HeightAt(x, z float32) (float32, bool)",
              "doc": "HeightAt returns the exact barycentric terrain elevation at world (x, z) and\nwhether (x, z) lies within the heightfield's XZ footprint.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 790
            },
            {
              "name": "NormalAt",
              "anchor": "HeightfieldCollider.NormalAt",
              "recv": "*HeightfieldCollider",
              "decl": "func (hf *HeightfieldCollider) NormalAt(x, z float32) Vec3",
              "doc": "NormalAt returns the outward unit surface normal of the terrain at world (x, z).\nCoordinates outside the footprint are clamped to the nearest boundary cell.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 830
            },
            {
              "name": "QueryTriangles",
              "anchor": "HeightfieldCollider.QueryTriangles",
              "recv": "*HeightfieldCollider",
              "decl": "func (hf *HeightfieldCollider) QueryTriangles(bounds Box, visit func(tri Triangle))",
              "doc": "QueryTriangles visits every terrain triangle overlapping the XZ footprint of bounds.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 973
            },
            {
              "name": "Raycast",
              "anchor": "HeightfieldCollider.Raycast",
              "recv": "*HeightfieldCollider",
              "decl": "func (hf *HeightfieldCollider) Raycast(ray Ray) (RaycastHit, bool)",
              "doc": "Raycast intersects ray with the heightfield using clipped 2D DDA grid\ntraversal over only the cells crossed by the ray.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 858
            },
            {
              "name": "ShapeCast",
              "anchor": "HeightfieldCollider.ShapeCast",
              "recv": "*HeightfieldCollider",
              "decl": "func (hf *HeightfieldCollider) ShapeCast(shape Shape, delta Vec3) (RaycastHit, bool)",
              "doc": "ShapeCast sweeps shape along displacement delta against hf and returns the earliest hit.\n",
              "file": "pkg/physics3d/shapecast.go",
              "line": 475
            },
            {
              "name": "TestShape",
              "anchor": "HeightfieldCollider.TestShape",
              "recv": "*HeightfieldCollider",
              "decl": "func (hf *HeightfieldCollider) TestShape(s Shape) Contact",
              "doc": "TestShape returns the deepest Contact between s and hf (normal pointing from\nterrain upward toward s).\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 1147
            }
          ]
        },
        {
          "name": "HeightfieldImageOptions",
          "anchor": "HeightfieldImageOptions",
          "decl": "type HeightfieldImageOptions struct {\n\t// CellSize sets the horizontal spacing between adjacent grid vertices in\n\t// world units. If WorldWidth > 0, CellSize is derived as\n\t// WorldWidth / float32(cols-1) instead. Defaults to 1.0 when both are <= 0.\n\tCellSize float32\n\t// WorldWidth optionally sets the total X span of the heightfield in world\n\t// units (overriding CellSize).\n\tWorldWidth float32\n\t// WorldDepth optionally sets the total Z span of the heightfield in world\n\t// units. When WorldDepth > 0 and Rows == 0, Rows is derived from\n\t// round(WorldDepth/CellSize)+1 (at least 2) so the terrain spans WorldDepth\n\t// using HeightfieldCollider's square CellSize.\n\tWorldDepth float32\n\t// Cols and Rows optionally resample the image to a target vertex grid\n\t// resolution (0 keeps the image's width/height; when set, must be >= 2).\n\tCols int\n\tRows int\n\t// Bilinear enables bilinear filtering when sampling the image at fractional\n\t// pixel coordinates (used when Cols/Rows differ from the source image\n\t// dimensions). When false, nearest-neighbor sampling is used.\n\tBilinear bool\n\t// MinHeight and MaxHeight map normalized pixel values [0, 1] linearly to\n\t// [MinHeight, MaxHeight]. When both are 0, MaxHeight defaults to 1.0.\n\tMinHeight float32\n\tMaxHeight float32\n\t// Origin is the world-space position of vertex (0, 0) at height 0.\n\tOrigin Vec3\n\t// Channel selects how pixel colors map to normalized height (defaults to\n\t// HeightmapLuminance).\n\tChannel HeightmapChannel\n\t// FlipZ reverses the image Y -> world Z row order when true.\n\tFlipZ bool\n\t// Tag, Friction, Restitution, Layer, and Mask populate the corresponding\n\t// HeightfieldCollider fields. Friction <= 0 defaults to 0.5.\n\tTag         string\n\tFriction    float32\n\tRestitution float32\n\tLayer       LayerMask\n\tMask        LayerMask\n}",
          "doc": "HeightfieldImageOptions configures NewHeightfieldFromImage.\n",
          "file": "pkg/physics3d/heightfield_image.go",
          "line": 30,
          "members": [
            {
              "name": "CellSize",
              "anchor": "HeightfieldImageOptions.CellSize",
              "kind": "field",
              "doc": "CellSize sets the horizontal spacing between adjacent grid vertices in\nworld units. If WorldWidth > 0, CellSize is derived as\nWorldWidth / float32(cols-1) instead. Defaults to 1.0 when both are <= 0."
            },
            {
              "name": "WorldWidth",
              "anchor": "HeightfieldImageOptions.WorldWidth",
              "kind": "field",
              "doc": "WorldWidth optionally sets the total X span of the heightfield in world\nunits (overriding CellSize)."
            },
            {
              "name": "WorldDepth",
              "anchor": "HeightfieldImageOptions.WorldDepth",
              "kind": "field",
              "doc": "WorldDepth optionally sets the total Z span of the heightfield in world\nunits. When WorldDepth > 0 and Rows == 0, Rows is derived from\nround(WorldDepth/CellSize)+1 (at least 2) so the terrain spans WorldDepth\nusing HeightfieldCollider's square CellSize."
            },
            {
              "name": "Cols",
              "anchor": "HeightfieldImageOptions.Cols",
              "kind": "field",
              "doc": "Cols and Rows optionally resample the image to a target vertex grid\nresolution (0 keeps the image's width/height; when set, must be >= 2)."
            },
            {
              "name": "Rows",
              "anchor": "HeightfieldImageOptions.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bilinear",
              "anchor": "HeightfieldImageOptions.Bilinear",
              "kind": "field",
              "doc": "Bilinear enables bilinear filtering when sampling the image at fractional\npixel coordinates (used when Cols/Rows differ from the source image\ndimensions). When false, nearest-neighbor sampling is used."
            },
            {
              "name": "MinHeight",
              "anchor": "HeightfieldImageOptions.MinHeight",
              "kind": "field",
              "doc": "MinHeight and MaxHeight map normalized pixel values [0, 1] linearly to\n[MinHeight, MaxHeight]. When both are 0, MaxHeight defaults to 1.0."
            },
            {
              "name": "MaxHeight",
              "anchor": "HeightfieldImageOptions.MaxHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Origin",
              "anchor": "HeightfieldImageOptions.Origin",
              "kind": "field",
              "doc": "Origin is the world-space position of vertex (0, 0) at height 0."
            },
            {
              "name": "Channel",
              "anchor": "HeightfieldImageOptions.Channel",
              "kind": "field",
              "doc": "Channel selects how pixel colors map to normalized height (defaults to\nHeightmapLuminance)."
            },
            {
              "name": "FlipZ",
              "anchor": "HeightfieldImageOptions.FlipZ",
              "kind": "field",
              "doc": "FlipZ reverses the image Y -> world Z row order when true."
            },
            {
              "name": "Tag",
              "anchor": "HeightfieldImageOptions.Tag",
              "kind": "field",
              "doc": "Tag, Friction, Restitution, Layer, and Mask populate the corresponding\nHeightfieldCollider fields. Friction <= 0 defaults to 0.5."
            },
            {
              "name": "Friction",
              "anchor": "HeightfieldImageOptions.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "HeightfieldImageOptions.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "HeightfieldImageOptions.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "HeightfieldImageOptions.Mask",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HeightfieldSnapshot",
          "anchor": "HeightfieldSnapshot",
          "decl": "type HeightfieldSnapshot struct {\n\tID          int       `json:\"id\"`\n\tTag         string    `json:\"tag,omitempty\"`\n\tLayer       LayerMask `json:\"layer\"`\n\tMask        LayerMask `json:\"mask\"`\n\tFriction    float32   `json:\"friction\"`\n\tRestitution float32   `json:\"restitution\"`\n\tCols        int       `json:\"cols\"`\n\tRows        int       `json:\"rows\"`\n\tCellSize    float32   `json:\"cellSize\"`\n\tOrigin      Vec3      `json:\"origin\"`\n\tHeights     []float32 `json:\"heights,omitempty\"`\n}",
          "doc": "HeightfieldSnapshot captures a static HeightfieldCollider.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 284,
          "members": [
            {
              "name": "ID",
              "anchor": "HeightfieldSnapshot.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "HeightfieldSnapshot.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "HeightfieldSnapshot.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "HeightfieldSnapshot.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "HeightfieldSnapshot.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "HeightfieldSnapshot.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cols",
              "anchor": "HeightfieldSnapshot.Cols",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "HeightfieldSnapshot.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CellSize",
              "anchor": "HeightfieldSnapshot.CellSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Origin",
              "anchor": "HeightfieldSnapshot.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Heights",
              "anchor": "HeightfieldSnapshot.Heights",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HeightmapChannel",
          "anchor": "HeightmapChannel",
          "decl": "type HeightmapChannel int",
          "doc": "HeightmapChannel selects which color channel of an image.Image supplies\nnormalized height samples in [0, 1] for NewHeightfieldFromImage.\n",
          "file": "pkg/physics3d/heightfield_image.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "HeightmapLuminance",
                  "anchor": "HeightmapLuminance"
                },
                {
                  "name": "HeightmapRed",
                  "anchor": "HeightmapRed"
                },
                {
                  "name": "HeightmapGreen",
                  "anchor": "HeightmapGreen"
                },
                {
                  "name": "HeightmapBlue",
                  "anchor": "HeightmapBlue"
                },
                {
                  "name": "HeightmapAlpha",
                  "anchor": "HeightmapAlpha"
                }
              ],
              "decl": "const (\n\t// HeightmapLuminance converts each pixel to 16-bit luminance (matching\n\t// color.Gray16Model and preserving exact 16-bit grayscale values).\n\tHeightmapLuminance HeightmapChannel = iota\n\t// HeightmapRed reads the red channel.\n\tHeightmapRed\n\t// HeightmapGreen reads the green channel.\n\tHeightmapGreen\n\t// HeightmapBlue reads the blue channel.\n\tHeightmapBlue\n\t// HeightmapAlpha reads the alpha channel.\n\tHeightmapAlpha\n)",
              "doc": "",
              "file": "pkg/physics3d/heightfield_image.go",
              "line": 15
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HingeJoint",
          "anchor": "HingeJoint",
          "decl": "type HingeJoint struct {\n\tBodyA, BodyB     *Body\n\tLocalAnchorA     Vec3\n\tLocalAnchorB     Vec3\n\tLocalAxisA       Vec3 // hinge axis in A's local space (defaults to +Y)\n\tLocalAxisB       Vec3 // hinge axis in B's local space (defaults to LocalAxisA)\n\tEnableLimits     bool\n\tMinAngle         float32 // radians\n\tMaxAngle         float32 // radians\n\tMotorTargetVel   float32 // desired angular velocity around hinge axis (rad/s)\n\tMotorMaxTorque   float32 // max motor torque (N*m); motor active when > 0\n\tDriveTargetAngle float32 // target angle in radians for spring/position drive\n\tDriveStiffness   float32 // spring stiffness in N*m/rad (> 0 enables position spring)\n\tDriveDamping     float32 // angular damping in N*m*s/rad (>= 0)\n\tDriveMaxTorque   float32 // max drive torque in N*m (<= 0 means unlimited)\n\tBreakForce       float32 // max reaction force in N before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque in N*m before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "HingeJoint constrains two bodies to rotate around a single shared axis at an\nanchor point, with optional angular limits, velocity motor, spring/position\ndrive, and break thresholds.\n",
          "file": "pkg/physics3d/joints.go",
          "line": 768,
          "members": [
            {
              "name": "BodyA",
              "anchor": "HingeJoint.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "HingeJoint.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorA",
              "anchor": "HingeJoint.LocalAnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorB",
              "anchor": "HingeJoint.LocalAnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAxisA",
              "anchor": "HingeJoint.LocalAxisA",
              "kind": "field",
              "doc": "hinge axis in A's local space (defaults to +Y)"
            },
            {
              "name": "LocalAxisB",
              "anchor": "HingeJoint.LocalAxisB",
              "kind": "field",
              "doc": "hinge axis in B's local space (defaults to LocalAxisA)"
            },
            {
              "name": "EnableLimits",
              "anchor": "HingeJoint.EnableLimits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinAngle",
              "anchor": "HingeJoint.MinAngle",
              "kind": "field",
              "doc": "radians"
            },
            {
              "name": "MaxAngle",
              "anchor": "HingeJoint.MaxAngle",
              "kind": "field",
              "doc": "radians"
            },
            {
              "name": "MotorTargetVel",
              "anchor": "HingeJoint.MotorTargetVel",
              "kind": "field",
              "doc": "desired angular velocity around hinge axis (rad/s)"
            },
            {
              "name": "MotorMaxTorque",
              "anchor": "HingeJoint.MotorMaxTorque",
              "kind": "field",
              "doc": "max motor torque (N*m); motor active when > 0"
            },
            {
              "name": "DriveTargetAngle",
              "anchor": "HingeJoint.DriveTargetAngle",
              "kind": "field",
              "doc": "target angle in radians for spring/position drive"
            },
            {
              "name": "DriveStiffness",
              "anchor": "HingeJoint.DriveStiffness",
              "kind": "field",
              "doc": "spring stiffness in N*m/rad (> 0 enables position spring)"
            },
            {
              "name": "DriveDamping",
              "anchor": "HingeJoint.DriveDamping",
              "kind": "field",
              "doc": "angular damping in N*m*s/rad (>= 0)"
            },
            {
              "name": "DriveMaxTorque",
              "anchor": "HingeJoint.DriveMaxTorque",
              "kind": "field",
              "doc": "max drive torque in N*m (<= 0 means unlimited)"
            },
            {
              "name": "BreakForce",
              "anchor": "HingeJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force in N before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "HingeJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque in N*m before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "HingeJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHingeJoint",
              "anchor": "NewHingeJoint",
              "decl": "func NewHingeJoint(a, b *Body, localAnchorA, localAnchorB, localAxis Vec3) *HingeJoint",
              "doc": "NewHingeJoint creates a HingeJoint between a and b around localAxis.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 803
            }
          ],
          "methods": [
            {
              "name": "Angle",
              "anchor": "HingeJoint.Angle",
              "recv": "*HingeJoint",
              "decl": "func (j *HingeJoint) Angle() float32",
              "doc": "Angle returns the signed hinge rotation in radians around the hinge axis from the initial relative orientation.\n\nThe angle is tracked across steps, so a hinge that keeps turning reports 3*pi/2 rather than -pi/2 and limits beyond ±pi, such as a valve with MaxAngle 4*pi, work. It assumes the hinge turns less than pi per step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 863
            },
            {
              "name": "Bodies",
              "anchor": "HingeJoint.Bodies",
              "recv": "*HingeJoint",
              "decl": "func (j *HingeJoint) Bodies() (*Body, *Body)",
              "doc": "Bodies returns the connected bodies.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 827
            },
            {
              "name": "Broken",
              "anchor": "HingeJoint.Broken",
              "recv": "*HingeJoint",
              "decl": "func (r *HingeJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 83
            },
            {
              "name": "Prepare",
              "anchor": "HingeJoint.Prepare",
              "recv": "*HingeJoint",
              "decl": "func (j *HingeJoint) Prepare(dt float32)",
              "doc": "Prepare initializes the reference frame, wakes motorized or spring-driven bodies, and checks limits.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 896
            },
            {
              "name": "ReactionForce",
              "anchor": "HingeJoint.ReactionForce",
              "recv": "*HingeJoint",
              "decl": "func (r *HingeJoint) ReactionForce() Vec3",
              "doc": "ReactionForce returns the world-space constraint force (in Newtons) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 66
            },
            {
              "name": "ReactionTorque",
              "anchor": "HingeJoint.ReactionTorque",
              "recv": "*HingeJoint",
              "decl": "func (r *HingeJoint) ReactionTorque() Vec3",
              "doc": "ReactionTorque returns the world-space constraint torque (in N*m) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 75
            },
            {
              "name": "SolvePosition",
              "anchor": "HingeJoint.SolvePosition",
              "recv": "*HingeJoint",
              "decl": "func (j *HingeJoint) SolvePosition(dt float32)",
              "doc": "SolvePosition corrects hinge anchor, axis alignment, and angular limit violations.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1024
            },
            {
              "name": "SolveVelocity",
              "anchor": "HingeJoint.SolveVelocity",
              "recv": "*HingeJoint",
              "decl": "func (j *HingeJoint) SolveVelocity(dt float32)",
              "doc": "SolveVelocity solves the hinge anchor, axis alignment, motor, spring/position drive, and angular limits.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 937
            }
          ]
        },
        {
          "name": "Joint3D",
          "anchor": "Joint3D",
          "decl": "type Joint3D interface {\n\t// Bodies returns the pair of bodies connected by the joint.\n\tBodies() (*Body, *Body)\n\t// Prepare updates per-step cached values before velocity iterations.\n\tPrepare(dt float32)\n\t// SolveVelocity applies one sequential-impulse velocity iteration.\n\tSolveVelocity(dt float32)\n\t// SolvePosition applies one non-linear Gauss-Seidel positional and angular\n\t// correction iteration.\n\tSolvePosition(dt float32)\n}",
          "doc": "Joint3D constrains the relative motion of one or two bodies inside a World.\nEither body may be nil to anchor the constraint directly to the world frame.\n",
          "file": "pkg/physics3d/joints.go",
          "line": 11,
          "members": [
            {
              "name": "Bodies",
              "anchor": "Joint3D.Bodies",
              "kind": "method",
              "doc": "Bodies returns the pair of bodies connected by the joint."
            },
            {
              "name": "Prepare",
              "anchor": "Joint3D.Prepare",
              "kind": "method",
              "doc": "Prepare updates per-step cached values before velocity iterations."
            },
            {
              "name": "SolveVelocity",
              "anchor": "Joint3D.SolveVelocity",
              "kind": "method",
              "doc": "SolveVelocity applies one sequential-impulse velocity iteration."
            },
            {
              "name": "SolvePosition",
              "anchor": "Joint3D.SolvePosition",
              "kind": "method",
              "doc": "SolvePosition applies one non-linear Gauss-Seidel positional and angular\ncorrection iteration."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "JointBreakEvent",
          "anchor": "JointBreakEvent",
          "decl": "type JointBreakEvent struct {\n\tJoint  Joint3D\n\tBodyA  *Body\n\tBodyB  *Body\n\tForce  Vec3\n\tTorque Vec3\n}",
          "doc": "JointBreakEvent reports a joint that broke during World.Step because its\nreaction force or torque exceeded its BreakForce or BreakTorque threshold.\n",
          "file": "pkg/physics3d/joints.go",
          "line": 33,
          "members": [
            {
              "name": "Joint",
              "anchor": "JointBreakEvent.Joint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyA",
              "anchor": "JointBreakEvent.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "JointBreakEvent.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Force",
              "anchor": "JointBreakEvent.Force",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Torque",
              "anchor": "JointBreakEvent.Torque",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "JointBreakEventSnapshot",
          "anchor": "JointBreakEventSnapshot",
          "decl": "type JointBreakEventSnapshot struct {\n\tJoint   *JointSnapshot `json:\"joint,omitempty\"`\n\tBodyAID int            `json:\"bodyAID\"`\n\tBodyBID int            `json:\"bodyBID\"`\n\tForce   Vec3           `json:\"force\"`\n\tTorque  Vec3           `json:\"torque\"`\n}",
          "doc": "JointBreakEventSnapshot captures one JointBreakEvent from the last Step.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 264,
          "members": [
            {
              "name": "Joint",
              "anchor": "JointBreakEventSnapshot.Joint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyAID",
              "anchor": "JointBreakEventSnapshot.BodyAID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyBID",
              "anchor": "JointBreakEventSnapshot.BodyBID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Force",
              "anchor": "JointBreakEventSnapshot.Force",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Torque",
              "anchor": "JointBreakEventSnapshot.Torque",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "JointReactionSnapshot",
          "anchor": "JointReactionSnapshot",
          "decl": "type JointReactionSnapshot struct {\n\tStepLinearImpulse  Vec3    `json:\"stepLinearImpulse\"`\n\tStepAngularImpulse Vec3    `json:\"stepAngularImpulse\"`\n\tLastDt             float32 `json:\"lastDt,omitempty\"`\n\tBroken             bool    `json:\"broken,omitempty\"`\n}",
          "doc": "JointReactionSnapshot captures the per-step reaction accumulator shared by built-in joints.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 161,
          "members": [
            {
              "name": "StepLinearImpulse",
              "anchor": "JointReactionSnapshot.StepLinearImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StepAngularImpulse",
              "anchor": "JointReactionSnapshot.StepAngularImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastDt",
              "anchor": "JointReactionSnapshot.LastDt",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Broken",
              "anchor": "JointReactionSnapshot.Broken",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "JointSnapshot",
          "anchor": "JointSnapshot",
          "decl": "type JointSnapshot struct {\n\tKind             string                `json:\"kind\"` // \"distance\", \"ball\", \"hinge\", \"slider\", \"fixed\", \"swingtwist\", \"sixdof\"\n\tBodyAID          int                   `json:\"bodyAID\"`\n\tBodyBID          int                   `json:\"bodyBID\"`\n\tLocalAnchorA     Vec3                  `json:\"localAnchorA\"`\n\tLocalAnchorB     Vec3                  `json:\"localAnchorB\"`\n\tBreakForce       float32               `json:\"breakForce,omitempty\"`\n\tBreakTorque      float32               `json:\"breakTorque,omitempty\"`\n\tCollideConnected bool                  `json:\"collideConnected,omitempty\"`\n\tReaction         JointReactionSnapshot `json:\"reaction\"`\n\n\t// DistanceJoint fields\n\tMinDistance float32 `json:\"minDistance,omitempty\"`\n\tMaxDistance float32 `json:\"maxDistance,omitempty\"`\n\tStiffness   float32 `json:\"stiffness,omitempty\"`\n\tDamping     float32 `json:\"damping,omitempty\"`\n\tAccImpulse  float32 `json:\"accImpulse,omitempty\"`\n\tMode        int     `json:\"mode,omitempty\"`\n\tTargetDist  float32 `json:\"targetDist,omitempty\"`\n\tGamma       float32 `json:\"gamma,omitempty\"`\n\tBias        float32 `json:\"bias,omitempty\"`\n\n\t// BallJoint / HingeJoint / SliderJoint fields\n\tConeLimit        float32 `json:\"coneLimit,omitempty\"`\n\tLocalAxisA       Vec3    `json:\"localAxisA\"`\n\tLocalAxisB       Vec3    `json:\"localAxisB\"`\n\tEnableLimits     bool    `json:\"enableLimits,omitempty\"`\n\tMinAngle         float32 `json:\"minAngle,omitempty\"`\n\tMaxAngle         float32 `json:\"maxAngle,omitempty\"`\n\tMinTranslation   float32 `json:\"minTranslation,omitempty\"`\n\tMaxTranslation   float32 `json:\"maxTranslation,omitempty\"`\n\tMotorTargetVel   float32 `json:\"motorTargetVel,omitempty\"`\n\tMotorMaxTorque   float32 `json:\"motorMaxTorque,omitempty\"`\n\tMotorMaxForce    float32 `json:\"motorMaxForce,omitempty\"`\n\tDriveTargetAngle float32 `json:\"driveTargetAngle,omitempty\"`\n\tDriveTargetPos   float32 `json:\"driveTargetPos,omitempty\"`\n\tDriveStiffness   float32 `json:\"driveStiffness,omitempty\"`\n\tDriveDamping     float32 `json:\"driveDamping,omitempty\"`\n\tDriveMaxTorque   float32 `json:\"driveMaxTorque,omitempty\"`\n\tDriveMaxForce    float32 `json:\"driveMaxForce,omitempty\"`\n\n\t// Shared private reference/impulse state\n\tRefInitialized bool    `json:\"refInitialized,omitempty\"`\n\tRefPerpA       Vec3    `json:\"refPerpA\"`\n\tRefPerpB       Vec3    `json:\"refPerpB\"`\n\tRefRelRot      Quat    `json:\"refRelRot\"`\n\tMotorImpulse   float32 `json:\"motorImpulse,omitempty\"`\n\tDriveImpulse   float32 `json:\"driveImpulse,omitempty\"`\n\tDriveGamma     float32 `json:\"driveGamma,omitempty\"`\n\tDriveBias      float32 `json:\"driveBias,omitempty\"`\n\tDriveActive    bool    `json:\"driveActive,omitempty\"`\n\tLimitImpulse   float32 `json:\"limitImpulse,omitempty\"`\n\tLimitState     int     `json:\"limitState,omitempty\"`\n\tAngle          float32 `json:\"angle,omitempty\"`\n\tSwingImpulse   float32 `json:\"swingImpulse,omitempty\"`\n\n\t// SwingTwistJoint fields\n\tTwistAxisA        Vec3    `json:\"twistAxisA\"`\n\tTwistAxisB        Vec3    `json:\"twistAxisB\"`\n\tPlaneAxisA        Vec3    `json:\"planeAxisA\"`\n\tPlaneAxisB        Vec3    `json:\"planeAxisB\"`\n\tEnableSwingLimits bool    `json:\"enableSwingLimits,omitempty\"`\n\tSwingMin1         float32 `json:\"swingMin1,omitempty\"`\n\tSwingMax1         float32 `json:\"swingMax1,omitempty\"`\n\tSwingMin2         float32 `json:\"swingMin2,omitempty\"`\n\tSwingMax2         float32 `json:\"swingMax2,omitempty\"`\n\tEnableTwistLimits bool    `json:\"enableTwistLimits,omitempty\"`\n\tMinTwist          float32 `json:\"minTwist,omitempty\"`\n\tMaxTwist          float32 `json:\"maxTwist,omitempty\"`\n\tTwistImpulse      float32 `json:\"twistImpulse,omitempty\"`\n\tTwistLimitState   int     `json:\"twistLimitState,omitempty\"`\n\n\t// SixDOFJoint fields\n\tLocalFrameA     Quat                       `json:\"localFrameA\"`\n\tLocalFrameB     Quat                       `json:\"localFrameB\"`\n\tLinear          [3]AxisConfig              `json:\"linear\"`\n\tAngular         [3]AxisConfig              `json:\"angular\"`\n\tLinState        [3]SixDOFAxisStateSnapshot `json:\"linState\"`\n\tAngState        [3]SixDOFAxisStateSnapshot `json:\"angState\"`\n\tSingleAxisAngle float32                    `json:\"singleAxisAngle,omitempty\"`\n\tSingleAxisIdx   int                        `json:\"singleAxisIdx,omitempty\"`\n}",
          "doc": "JointSnapshot captures the complete public and private solver state of any built-in Joint3D.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 180,
          "members": [
            {
              "name": "Kind",
              "anchor": "JointSnapshot.Kind",
              "kind": "field",
              "doc": "\"distance\", \"ball\", \"hinge\", \"slider\", \"fixed\", \"swingtwist\", \"sixdof\""
            },
            {
              "name": "BodyAID",
              "anchor": "JointSnapshot.BodyAID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyBID",
              "anchor": "JointSnapshot.BodyBID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorA",
              "anchor": "JointSnapshot.LocalAnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorB",
              "anchor": "JointSnapshot.LocalAnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BreakForce",
              "anchor": "JointSnapshot.BreakForce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BreakTorque",
              "anchor": "JointSnapshot.BreakTorque",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CollideConnected",
              "anchor": "JointSnapshot.CollideConnected",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Reaction",
              "anchor": "JointSnapshot.Reaction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinDistance",
              "anchor": "JointSnapshot.MinDistance",
              "kind": "field",
              "doc": "DistanceJoint fields"
            },
            {
              "name": "MaxDistance",
              "anchor": "JointSnapshot.MaxDistance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stiffness",
              "anchor": "JointSnapshot.Stiffness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Damping",
              "anchor": "JointSnapshot.Damping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AccImpulse",
              "anchor": "JointSnapshot.AccImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "JointSnapshot.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetDist",
              "anchor": "JointSnapshot.TargetDist",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Gamma",
              "anchor": "JointSnapshot.Gamma",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bias",
              "anchor": "JointSnapshot.Bias",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ConeLimit",
              "anchor": "JointSnapshot.ConeLimit",
              "kind": "field",
              "doc": "BallJoint / HingeJoint / SliderJoint fields"
            },
            {
              "name": "LocalAxisA",
              "anchor": "JointSnapshot.LocalAxisA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAxisB",
              "anchor": "JointSnapshot.LocalAxisB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableLimits",
              "anchor": "JointSnapshot.EnableLimits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinAngle",
              "anchor": "JointSnapshot.MinAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxAngle",
              "anchor": "JointSnapshot.MaxAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinTranslation",
              "anchor": "JointSnapshot.MinTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxTranslation",
              "anchor": "JointSnapshot.MaxTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorTargetVel",
              "anchor": "JointSnapshot.MotorTargetVel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorMaxTorque",
              "anchor": "JointSnapshot.MotorMaxTorque",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorMaxForce",
              "anchor": "JointSnapshot.MotorMaxForce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveTargetAngle",
              "anchor": "JointSnapshot.DriveTargetAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveTargetPos",
              "anchor": "JointSnapshot.DriveTargetPos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveStiffness",
              "anchor": "JointSnapshot.DriveStiffness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveDamping",
              "anchor": "JointSnapshot.DriveDamping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveMaxTorque",
              "anchor": "JointSnapshot.DriveMaxTorque",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveMaxForce",
              "anchor": "JointSnapshot.DriveMaxForce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefInitialized",
              "anchor": "JointSnapshot.RefInitialized",
              "kind": "field",
              "doc": "Shared private reference/impulse state"
            },
            {
              "name": "RefPerpA",
              "anchor": "JointSnapshot.RefPerpA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefPerpB",
              "anchor": "JointSnapshot.RefPerpB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RefRelRot",
              "anchor": "JointSnapshot.RefRelRot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorImpulse",
              "anchor": "JointSnapshot.MotorImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveImpulse",
              "anchor": "JointSnapshot.DriveImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveGamma",
              "anchor": "JointSnapshot.DriveGamma",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveBias",
              "anchor": "JointSnapshot.DriveBias",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveActive",
              "anchor": "JointSnapshot.DriveActive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LimitImpulse",
              "anchor": "JointSnapshot.LimitImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LimitState",
              "anchor": "JointSnapshot.LimitState",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Angle",
              "anchor": "JointSnapshot.Angle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SwingImpulse",
              "anchor": "JointSnapshot.SwingImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TwistAxisA",
              "anchor": "JointSnapshot.TwistAxisA",
              "kind": "field",
              "doc": "SwingTwistJoint fields"
            },
            {
              "name": "TwistAxisB",
              "anchor": "JointSnapshot.TwistAxisB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlaneAxisA",
              "anchor": "JointSnapshot.PlaneAxisA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlaneAxisB",
              "anchor": "JointSnapshot.PlaneAxisB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableSwingLimits",
              "anchor": "JointSnapshot.EnableSwingLimits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SwingMin1",
              "anchor": "JointSnapshot.SwingMin1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SwingMax1",
              "anchor": "JointSnapshot.SwingMax1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SwingMin2",
              "anchor": "JointSnapshot.SwingMin2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SwingMax2",
              "anchor": "JointSnapshot.SwingMax2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableTwistLimits",
              "anchor": "JointSnapshot.EnableTwistLimits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinTwist",
              "anchor": "JointSnapshot.MinTwist",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxTwist",
              "anchor": "JointSnapshot.MaxTwist",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TwistImpulse",
              "anchor": "JointSnapshot.TwistImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TwistLimitState",
              "anchor": "JointSnapshot.TwistLimitState",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalFrameA",
              "anchor": "JointSnapshot.LocalFrameA",
              "kind": "field",
              "doc": "SixDOFJoint fields"
            },
            {
              "name": "LocalFrameB",
              "anchor": "JointSnapshot.LocalFrameB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Linear",
              "anchor": "JointSnapshot.Linear",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Angular",
              "anchor": "JointSnapshot.Angular",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LinState",
              "anchor": "JointSnapshot.LinState",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AngState",
              "anchor": "JointSnapshot.AngState",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SingleAxisAngle",
              "anchor": "JointSnapshot.SingleAxisAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SingleAxisIdx",
              "anchor": "JointSnapshot.SingleAxisIdx",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayerMask",
          "anchor": "LayerMask",
          "decl": "type LayerMask uint32",
          "doc": "LayerMask is a 32-bit collision layer bitmask.\n",
          "file": "pkg/physics3d/layers_triggers.go",
          "line": 9,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LayerAll",
                  "anchor": "LayerAll"
                }
              ],
              "decl": "const LayerAll LayerMask = ^LayerMask(0)",
              "doc": "LayerAll matches every collision layer.\n",
              "file": "pkg/physics3d/layers_triggers.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "LayerBit",
              "anchor": "LayerBit",
              "decl": "func LayerBit(i uint) LayerMask",
              "doc": "LayerBit returns a LayerMask with only bit i set (0 <= i < 32).\nValues >= 32 return 0.\n",
              "file": "pkg/physics3d/layers_triggers.go",
              "line": 16
            }
          ],
          "methods": []
        },
        {
          "name": "Mat4",
          "anchor": "Mat4",
          "decl": "type Mat4 [16]float32",
          "doc": "Mat4 is a 4x4 matrix stored in column-major order, matching OpenGL, WebGPU,\nand glTF conventions. Element (row, col) is stored at index col*4 + row, so\nthe translation column occupies indices 12, 13, and 14.\n",
          "file": "pkg/physics3d/mat4.go",
          "line": 12,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Mat4Identity",
              "anchor": "Mat4Identity",
              "decl": "func Mat4Identity() Mat4",
              "doc": "Mat4Identity returns the 4x4 identity matrix.\n",
              "file": "pkg/physics3d/mat4.go",
              "line": 15
            },
            {
              "name": "Mat4LookAt",
              "anchor": "Mat4LookAt",
              "decl": "func Mat4LookAt(eye, target, up Vec3) Mat4",
              "doc": "Mat4LookAt returns a right-handed view matrix placing the camera at eye,\nlooking toward target, with world up direction up.\n",
              "file": "pkg/physics3d/mat4.go",
              "line": 80
            },
            {
              "name": "Mat4Mul",
              "anchor": "Mat4Mul",
              "decl": "func Mat4Mul(a, b Mat4) Mat4",
              "doc": "Mat4Mul returns the matrix product a * b (column-major).\n",
              "file": "pkg/physics3d/mat4.go",
              "line": 25
            },
            {
              "name": "Mat4Ortho",
              "anchor": "Mat4Ortho",
              "decl": "func Mat4Ortho(left, right, bottom, top, near, far float32) Mat4",
              "doc": "Mat4Ortho returns a right-handed orthographic projection matrix mapping\n[left, right] x [bottom, top] x [-near, -far] to normalized device\ncoordinates [-1, 1]^3. Degenerate planes return Mat4Identity().\n",
              "file": "pkg/physics3d/mat4.go",
              "line": 63
            },
            {
              "name": "Mat4Perspective",
              "anchor": "Mat4Perspective",
              "decl": "func Mat4Perspective(fovYRad, aspect, near, far float32) Mat4",
              "doc": "Mat4Perspective returns a right-handed perspective projection matrix mapping\nview-space Z in [-near, -far] to normalized device coordinates Z in [-1, 1].\nfovYRad is the vertical field of view in radians, aspect is width/height, and\nnear and far are positive distances to the clipping planes (0 < near < far).\nDegenerate parameters return Mat4Identity().\n",
              "file": "pkg/physics3d/mat4.go",
              "line": 42
            }
          ],
          "methods": []
        },
        {
          "name": "MoveResult",
          "anchor": "MoveResult",
          "decl": "type MoveResult struct {\n\tPos            Vec3\n\tGrounded       bool\n\tGroundNormal   Vec3\n\tGroundBody     *Body\n\tGroundVelocity Vec3\n\tGroundYawDelta float32\n\tOnWall         bool\n\tOnCeiling      bool\n\tSteppedUp      bool\n\tCrushed        bool\n}",
          "doc": "MoveResult summarizes the outcome of a CharacterController.Move call.\n",
          "file": "pkg/physics3d/character.go",
          "line": 207,
          "members": [
            {
              "name": "Pos",
              "anchor": "MoveResult.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grounded",
              "anchor": "MoveResult.Grounded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GroundNormal",
              "anchor": "MoveResult.GroundNormal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GroundBody",
              "anchor": "MoveResult.GroundBody",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GroundVelocity",
              "anchor": "MoveResult.GroundVelocity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GroundYawDelta",
              "anchor": "MoveResult.GroundYawDelta",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnWall",
              "anchor": "MoveResult.OnWall",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnCeiling",
              "anchor": "MoveResult.OnCeiling",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SteppedUp",
              "anchor": "MoveResult.SteppedUp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Crushed",
              "anchor": "MoveResult.Crushed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "OverlapHit",
          "anchor": "OverlapHit",
          "decl": "type OverlapHit struct {\n\tBody        *Body\n\tChildIndex  int\n\tTriMesh     *TriMeshCollider\n\tHeightfield *HeightfieldCollider\n\tVoxel       *VoxelCollider\n\tContact     Contact\n}",
          "doc": "OverlapHit reports a body or static collider overlapped by World.QueryOverlap\nor World.OverlapLayer. Contact.Normal points from the collider toward the query shape.\n",
          "file": "pkg/physics3d/world.go",
          "line": 312,
          "members": [
            {
              "name": "Body",
              "anchor": "OverlapHit.Body",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChildIndex",
              "anchor": "OverlapHit.ChildIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriMesh",
              "anchor": "OverlapHit.TriMesh",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Heightfield",
              "anchor": "OverlapHit.Heightfield",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Voxel",
              "anchor": "OverlapHit.Voxel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Contact",
              "anchor": "OverlapHit.Contact",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PairKeySnapshot",
          "anchor": "PairKeySnapshot",
          "decl": "type PairKeySnapshot struct {\n\tA int `json:\"a\"`\n\tB int `json:\"b\"`\n}",
          "doc": "PairKeySnapshot is a JSON-serializable body ID pair.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 57,
          "members": [
            {
              "name": "A",
              "anchor": "PairKeySnapshot.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "PairKeySnapshot.B",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Particle",
          "anchor": "Particle",
          "decl": "type Particle struct {\n\tPos         Vec3\n\tPrevPos     Vec3\n\tVel         Vec3\n\tInvMass     float32\n\tRadius      float32\n\tFriction    float32\n\tRestitution float32\n\tPinned      bool\n\tLayer       LayerMask\n\tMask        LayerMask\n\t// contains filtered or unexported fields\n}",
          "doc": "Particle is a 3D point mass simulated by SoftWorld using Extended Position-Based Dynamics (XPBD).\nSet Pinned to true or InvMass to 0 to fix a particle in place. Zero Layer or Mask values\ndefault to LayerAll.\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 18,
          "members": [
            {
              "name": "Pos",
              "anchor": "Particle.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PrevPos",
              "anchor": "Particle.PrevPos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vel",
              "anchor": "Particle.Vel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvMass",
              "anchor": "Particle.InvMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Particle.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "Particle.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "Particle.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pinned",
              "anchor": "Particle.Pinned",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "Particle.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "Particle.Mask",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ApplyForce",
              "anchor": "Particle.ApplyForce",
              "recv": "*Particle",
              "decl": "func (p *Particle) ApplyForce(f Vec3)",
              "doc": "ApplyForce accumulates a world-space force applied to p during the next SoftWorld.Step.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 51
            },
            {
              "name": "IsPinned",
              "anchor": "Particle.IsPinned",
              "recv": "*Particle",
              "decl": "func (p *Particle) IsPinned() bool",
              "doc": "IsPinned reports whether p has infinite mass (Pinned is true or InvMass <= 0).\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 34
            },
            {
              "name": "SetMass",
              "anchor": "Particle.SetMass",
              "recv": "*Particle",
              "decl": "func (p *Particle) SetMass(mass float32)",
              "doc": "SetMass sets p's inverse mass to 1/mass when mass > 0, or 0 when mass <= 0.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 39
            }
          ]
        },
        {
          "name": "PhysicsMaterial",
          "anchor": "PhysicsMaterial",
          "decl": "type PhysicsMaterial struct {\n\t// Friction is the Coulomb friction coefficient (>= 0).\n\tFriction float32 `json:\"friction\"`\n\t// Restitution is the bounciness in [0, 1].\n\tRestitution float32 `json:\"restitution\"`\n\t// LinearDamping reduces linear velocity smoothly over time (>= 0).\n\tLinearDamping float32 `json:\"linearDamping\"`\n\t// AngularDamping reduces angular velocity smoothly over time (>= 0).\n\tAngularDamping float32 `json:\"angularDamping\"`\n}",
          "doc": "PhysicsMaterial holds surface and damping properties for 3D physics bodies.\nAssign a *PhysicsMaterial to Body.Material to share properties across bodies,\nor copy it onto one body with Body.ApplyMaterial.\n",
          "file": "pkg/physics3d/material.go",
          "line": 6,
          "members": [
            {
              "name": "Friction",
              "anchor": "PhysicsMaterial.Friction",
              "kind": "field",
              "doc": "Friction is the Coulomb friction coefficient (>= 0)."
            },
            {
              "name": "Restitution",
              "anchor": "PhysicsMaterial.Restitution",
              "kind": "field",
              "doc": "Restitution is the bounciness in [0, 1]."
            },
            {
              "name": "LinearDamping",
              "anchor": "PhysicsMaterial.LinearDamping",
              "kind": "field",
              "doc": "LinearDamping reduces linear velocity smoothly over time (>= 0)."
            },
            {
              "name": "AngularDamping",
              "anchor": "PhysicsMaterial.AngularDamping",
              "kind": "field",
              "doc": "AngularDamping reduces angular velocity smoothly over time (>= 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlatformOnLeave",
          "anchor": "PlatformOnLeave",
          "decl": "type PlatformOnLeave int",
          "doc": "PlatformOnLeave controls how a CharacterController inherits the moving\nground body's velocity when leaving it (by jumping or walking off).\n",
          "file": "pkg/physics3d/character.go",
          "line": 25,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PlatformLeaveAddVelocity",
                  "anchor": "PlatformLeaveAddVelocity"
                },
                {
                  "name": "PlatformLeaveAddUpwardVelocity",
                  "anchor": "PlatformLeaveAddUpwardVelocity"
                },
                {
                  "name": "PlatformLeaveDoNothing",
                  "anchor": "PlatformLeaveDoNothing"
                }
              ],
              "decl": "const (\n\t// PlatformLeaveAddVelocity adds the full ground velocity at the contact\n\t// point to the character's velocity when leaving a moving ground body.\n\t// This is the default zero value.\n\tPlatformLeaveAddVelocity PlatformOnLeave = iota\n\t// PlatformLeaveAddUpwardVelocity adds the ground velocity when leaving a\n\t// moving ground body, clamping any downward (negative Y) component to zero\n\t// so jumping or stepping off a descending platform is not pulled downward.\n\tPlatformLeaveAddUpwardVelocity\n\t// PlatformLeaveDoNothing drops the platform's velocity upon leaving.\n\tPlatformLeaveDoNothing\n)",
              "doc": "",
              "file": "pkg/physics3d/character.go",
              "line": 27
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Quat",
          "anchor": "Quat",
          "decl": "type Quat struct {\n\tX, Y, Z, W float32\n}",
          "doc": "Quat is a unit quaternion representing a 3D rotation (X, Y, Z imaginary; W real).\nThe zero value Quat{} is treated as the identity rotation by Body and Quat helpers.\n",
          "file": "pkg/physics3d/vec3.go",
          "line": 127,
          "members": [
            {
              "name": "X",
              "anchor": "Quat.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Quat.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Quat.Z",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "Quat.W",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "IntegrateQuat",
              "anchor": "IntegrateQuat",
              "decl": "func IntegrateQuat(q Quat, angVel Vec3, dt float32) Quat",
              "doc": "IntegrateQuat integrates world-space angular velocity angVel over dt seconds\nonto q using the exact exponential map.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 292
            },
            {
              "name": "QuatFromAxisAngle",
              "anchor": "QuatFromAxisAngle",
              "decl": "func QuatFromAxisAngle(axis Vec3, angle float32) Quat",
              "doc": "QuatFromAxisAngle returns the unit quaternion representing a right-handed\nrotation of angle radians around axis. If axis is zero, QuatIdentity is returned.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 138
            },
            {
              "name": "QuatFromTo",
              "anchor": "QuatFromTo",
              "decl": "func QuatFromTo(from, to Vec3) Quat",
              "doc": "QuatFromTo returns the shortest-arc unit quaternion rotating direction from to to.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 151
            },
            {
              "name": "QuatIdentity",
              "anchor": "QuatIdentity",
              "decl": "func QuatIdentity() Quat",
              "doc": "QuatIdentity returns the identity rotation quaternion.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 132
            }
          ],
          "methods": [
            {
              "name": "AngleTo",
              "anchor": "Quat.AngleTo",
              "recv": "Quat",
              "decl": "func (q Quat) AngleTo(b Quat) float32",
              "doc": "AngleTo returns the shortest angular distance in radians between q and b in [0, pi].\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 283
            },
            {
              "name": "Conjugate",
              "anchor": "Quat.Conjugate",
              "recv": "Quat",
              "decl": "func (q Quat) Conjugate() Quat",
              "doc": "Conjugate returns the quaternion conjugate (inverse for unit quaternions).\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 197
            },
            {
              "name": "Dot",
              "anchor": "Quat.Dot",
              "recv": "Quat",
              "decl": "func (q Quat) Dot(b Quat) float32",
              "doc": "Dot returns the 4D dot product of q and b.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 205
            },
            {
              "name": "IsIdentity",
              "anchor": "Quat.IsIdentity",
              "recv": "Quat",
              "decl": "func (q Quat) IsIdentity() bool",
              "doc": "IsIdentity reports whether q represents no rotation (including the zero Quat{}).\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 175
            },
            {
              "name": "LenSq",
              "anchor": "Quat.LenSq",
              "recv": "Quat",
              "decl": "func (q Quat) LenSq() float32",
              "doc": "LenSq returns the squared quaternion norm.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 170
            },
            {
              "name": "Mul",
              "anchor": "Quat.Mul",
              "recv": "Quat",
              "decl": "func (q Quat) Mul(b Quat) Quat",
              "doc": "Mul returns the Hamilton product q * b (applying b then q).\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 210
            },
            {
              "name": "Norm",
              "anchor": "Quat.Norm",
              "recv": "Quat",
              "decl": "func (q Quat) Norm() Quat",
              "doc": "Norm returns the normalized unit quaternion, or QuatIdentity if q is zero.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 180
            },
            {
              "name": "RotateVec",
              "anchor": "Quat.RotateVec",
              "recv": "Quat",
              "decl": "func (q Quat) RotateVec(v Vec3) Vec3",
              "doc": "RotateVec rotates v by the unit quaternion q.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 226
            },
            {
              "name": "Slerp",
              "anchor": "Quat.Slerp",
              "recv": "Quat",
              "decl": "func (q Quat) Slerp(b Quat, t float32) Quat",
              "doc": "Slerp performs shortest-arc spherical linear interpolation from q to b by t in [0, 1].\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 236
            },
            {
              "name": "ToAxisAngle",
              "anchor": "Quat.ToAxisAngle",
              "recv": "Quat",
              "decl": "func (q Quat) ToAxisAngle() (Vec3, float32)",
              "doc": "ToAxisAngle decomposes q into a unit axis and an angle in [0, pi].\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 267
            }
          ]
        },
        {
          "name": "Ragdoll",
          "anchor": "Ragdoll",
          "decl": "type Ragdoll struct {\n\tWorld       *World\n\tSkeleton    []SkeletonJoint\n\tBodies      []*Body\n\tJoints      []Joint3D\n\tMode        RagdollMode\n\tBlendWeight float32 // [0, 1]: 0 = animated pose, 1 = full physics (used in RagdollBlended)\n\t// contains filtered or unexported fields\n}",
          "doc": "Ragdoll manages the rigid bodies and joint constraints generated from a\nskeletal hierarchy, supporting kinematic animation following, dynamic ragdoll\nsimulation, and smooth animation-to-ragdoll blending.\n",
          "file": "pkg/physics3d/ragdoll.go",
          "line": 50,
          "members": [
            {
              "name": "World",
              "anchor": "Ragdoll.World",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Skeleton",
              "anchor": "Ragdoll.Skeleton",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bodies",
              "anchor": "Ragdoll.Bodies",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Joints",
              "anchor": "Ragdoll.Joints",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "Ragdoll.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlendWeight",
              "anchor": "Ragdoll.BlendWeight",
              "kind": "field",
              "doc": "[0, 1]: 0 = animated pose, 1 = full physics (used in RagdollBlended)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildRagdoll",
              "anchor": "BuildRagdoll",
              "decl": "func BuildRagdoll(world *World, joints []SkeletonJoint, rootPos Vec3, rootRot Quat) *Ragdoll",
              "doc": "BuildRagdoll spawns per-bone capsule/box bodies and connecting SwingTwistJoint /\nHingeJoint constraints in world matching the skeleton hierarchy rooted at\n(rootPos, rootRot).\n\nThe returned Ragdoll starts in RagdollDynamic mode with BlendWeight = 1.\n",
              "file": "pkg/physics3d/ragdoll.go",
              "line": 69
            }
          ],
          "methods": [
            {
              "name": "Destroy",
              "anchor": "Ragdoll.Destroy",
              "recv": "*Ragdoll",
              "decl": "func (r *Ragdoll) Destroy()",
              "doc": "Destroy removes all ragdoll joints and bone bodies from r.World.\n",
              "file": "pkg/physics3d/ragdoll.go",
              "line": 416
            },
            {
              "name": "SetMode",
              "anchor": "Ragdoll.SetMode",
              "recv": "*Ragdoll",
              "decl": "func (r *Ragdoll) SetMode(mode RagdollMode)",
              "doc": "SetMode switches the ragdoll between RagdollKinematic, RagdollDynamic, and\nRagdollBlended modes.\n",
              "file": "pkg/physics3d/ragdoll.go",
              "line": 300
            },
            {
              "name": "SyncFromPose",
              "anchor": "Ragdoll.SyncFromPose",
              "recv": "*Ragdoll",
              "decl": "func (r *Ragdoll) SyncFromPose(worldPositions []Vec3, worldRotations []Quat)",
              "doc": "SyncFromPose updates bone bodies from an animated world-space pose.\n\nIn RagdollKinematic mode, bones snap directly to the animated pose.\nIn RagdollBlended mode, bones smoothly blend between the animated pose and\ntheir simulated physics pose according to BlendWeight in [0, 1]\n(0 = pure animation, 1 = pure physics).\nIn RagdollDynamic mode, the animated pose is recorded without overriding\nphysics bodies.\n",
              "file": "pkg/physics3d/ragdoll.go",
              "line": 333
            },
            {
              "name": "WritePose",
              "anchor": "Ragdoll.WritePose",
              "recv": "*Ragdoll",
              "decl": "func (r *Ragdoll) WritePose() ([]Vec3, []Quat)",
              "doc": "WritePose reads back the current world-space joint positions and rotations\nfrom the ragdoll's bodies for driving skinned-mesh rendering.\n",
              "file": "pkg/physics3d/ragdoll.go",
              "line": 387
            }
          ]
        },
        {
          "name": "RagdollMode",
          "anchor": "RagdollMode",
          "decl": "type RagdollMode int",
          "doc": "RagdollMode controls how a Ragdoll's bodies respond to animation vs physics.\n",
          "file": "pkg/physics3d/ragdoll.go",
          "line": 9,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RagdollKinematic",
                  "anchor": "RagdollKinematic"
                },
                {
                  "name": "RagdollDynamic",
                  "anchor": "RagdollDynamic"
                },
                {
                  "name": "RagdollBlended",
                  "anchor": "RagdollBlended"
                }
              ],
              "decl": "const (\n\t// RagdollKinematic drives every bone body directly from SyncFromPose,\n\t// bypassing gravity and physics impulses while remaining collidable.\n\tRagdollKinematic RagdollMode = iota\n\t// RagdollDynamic simulates all bone bodies under full rigid-body dynamics\n\t// and skeleton joint constraints.\n\tRagdollDynamic\n\t// RagdollBlended blends between the animated pose provided to SyncFromPose\n\t// and the physics simulation using BlendWeight in [0, 1]\n\t// (0 = pure animation, 1 = pure physics).\n\tRagdollBlended\n)",
              "doc": "",
              "file": "pkg/physics3d/ragdoll.go",
              "line": 11
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Ray",
          "anchor": "Ray",
          "decl": "type Ray struct {\n\tOrigin  Vec3\n\tDir     Vec3\n\tMaxDist float32\n}",
          "doc": "Ray is a directed ray starting at Origin, pointing along Dir, up to MaxDist\nunits long. Dir need not be unit length; raycast functions normalize it.\nRays with zero Dir or non-positive MaxDist report no hits.\n",
          "file": "pkg/physics3d/raycast.go",
          "line": 6,
          "members": [
            {
              "name": "Origin",
              "anchor": "Ray.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dir",
              "anchor": "Ray.Dir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxDist",
              "anchor": "Ray.MaxDist",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RaycastHit",
          "anchor": "RaycastHit",
          "decl": "type RaycastHit struct {\n\t// Body is the hit body for World raycasts, or nil for standalone shape,\n\t// triangle-mesh, or heightfield hits.\n\tBody *Body\n\t// ChildIndex is the zero-based index of the struck child when Body or the\n\t// tested Shape is a ShapeCompound, or -1 for non-compound shapes and static\n\t// colliders.\n\tChildIndex int\n\t// TriMesh is the hit triangle-mesh collider when the ray struck a static mesh.\n\tTriMesh *TriMeshCollider\n\t// Heightfield is the hit heightfield collider when the ray struck terrain.\n\tHeightfield *HeightfieldCollider\n\t// Voxel is the hit voxel collider when the ray struck voxel terrain.\n\tVoxel *VoxelCollider\n\t// T is the normalized hit fraction in [0, 1] along the ray's MaxDist\n\t// (or along the segment from -> to for World.Raycast).\n\tT float32\n\t// Distance is the Euclidean distance from the ray origin to Point.\n\tDistance float32\n\t// Point is the world-space intersection point.\n\tPoint Vec3\n\t// Normal is the outward unit surface normal at Point. A ray that starts inside a box, sphere, capsule, convex hull or cylinder hits at T 0 with Point at the origin and Normal facing back along the ray (-Dir), since no surface was crossed.\n\tNormal Vec3\n}",
          "doc": "RaycastHit describes where a ray intersects a shape, body, or static collider.\n",
          "file": "pkg/physics3d/raycast.go",
          "line": 13,
          "members": [
            {
              "name": "Body",
              "anchor": "RaycastHit.Body",
              "kind": "field",
              "doc": "Body is the hit body for World raycasts, or nil for standalone shape,\ntriangle-mesh, or heightfield hits."
            },
            {
              "name": "ChildIndex",
              "anchor": "RaycastHit.ChildIndex",
              "kind": "field",
              "doc": "ChildIndex is the zero-based index of the struck child when Body or the\ntested Shape is a ShapeCompound, or -1 for non-compound shapes and static\ncolliders."
            },
            {
              "name": "TriMesh",
              "anchor": "RaycastHit.TriMesh",
              "kind": "field",
              "doc": "TriMesh is the hit triangle-mesh collider when the ray struck a static mesh."
            },
            {
              "name": "Heightfield",
              "anchor": "RaycastHit.Heightfield",
              "kind": "field",
              "doc": "Heightfield is the hit heightfield collider when the ray struck terrain."
            },
            {
              "name": "Voxel",
              "anchor": "RaycastHit.Voxel",
              "kind": "field",
              "doc": "Voxel is the hit voxel collider when the ray struck voxel terrain."
            },
            {
              "name": "T",
              "anchor": "RaycastHit.T",
              "kind": "field",
              "doc": "T is the normalized hit fraction in [0, 1] along the ray's MaxDist\n(or along the segment from -> to for World.Raycast)."
            },
            {
              "name": "Distance",
              "anchor": "RaycastHit.Distance",
              "kind": "field",
              "doc": "Distance is the Euclidean distance from the ray origin to Point."
            },
            {
              "name": "Point",
              "anchor": "RaycastHit.Point",
              "kind": "field",
              "doc": "Point is the world-space intersection point."
            },
            {
              "name": "Normal",
              "anchor": "RaycastHit.Normal",
              "kind": "field",
              "doc": "Normal is the outward unit surface normal at Point. A ray that starts inside a box, sphere, capsule, convex hull or cylinder hits at T 0 with Point at the origin and Normal facing back along the ray (-Dir), since no surface was crossed."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "RaycastBox",
              "anchor": "RaycastBox",
              "decl": "func RaycastBox(ray Ray, b Box) (RaycastHit, bool)",
              "doc": "RaycastBox tests ray against an axis-aligned box b.\n",
              "file": "pkg/physics3d/raycast.go",
              "line": 69
            },
            {
              "name": "RaycastCapsule",
              "anchor": "RaycastCapsule",
              "decl": "func RaycastCapsule(ray Ray, c Capsule) (RaycastHit, bool)",
              "doc": "RaycastCapsule tests ray against a capsule c.\n",
              "file": "pkg/physics3d/raycast.go",
              "line": 179
            },
            {
              "name": "RaycastConvexHull",
              "anchor": "RaycastConvexHull",
              "decl": "func RaycastConvexHull(ray Ray, h ConvexHull, rot Quat) (RaycastHit, bool)",
              "doc": "RaycastConvexHull tests ray against hull h turned by rot about its Center. A ray that starts inside h hits at T 0 with Normal facing back along the ray, as for the other shapes.\n",
              "file": "pkg/physics3d/cylinder.go",
              "line": 132
            },
            {
              "name": "RaycastCylinder",
              "anchor": "RaycastCylinder",
              "decl": "func RaycastCylinder(ray Ray, c Cylinder) (RaycastHit, bool)",
              "doc": "RaycastCylinder tests ray against cylinder c, its side and both caps. A ray that starts inside c hits at T 0 with Normal facing back along the ray, as for the other shapes.\n",
              "file": "pkg/physics3d/cylinder.go",
              "line": 58
            },
            {
              "name": "RaycastShape",
              "anchor": "RaycastShape",
              "decl": "func RaycastShape(ray Ray, s Shape) (RaycastHit, bool)",
              "doc": "RaycastShape tests ray against s.\n",
              "file": "pkg/physics3d/raycast.go",
              "line": 39
            },
            {
              "name": "RaycastSphere",
              "anchor": "RaycastSphere",
              "decl": "func RaycastSphere(ray Ray, s Sphere) (RaycastHit, bool)",
              "doc": "RaycastSphere tests ray against a sphere s.\n",
              "file": "pkg/physics3d/raycast.go",
              "line": 128
            },
            {
              "name": "RaycastTriangle",
              "anchor": "RaycastTriangle",
              "decl": "func RaycastTriangle(ray Ray, tri Triangle) (RaycastHit, bool)",
              "doc": "RaycastTriangle tests ray against triangle tri using the Möller–Trumbore\nalgorithm. It handles both front- and back-facing hits and orients the\nreturned Normal to oppose the ray direction.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 43
            },
            {
              "name": "ShapeCastShape",
              "anchor": "ShapeCastShape",
              "decl": "func ShapeCastShape(moving Shape, delta Vec3, target Shape) (RaycastHit, bool)",
              "doc": "ShapeCastShape sweeps moving along displacement delta against stationary target and returns\nthe exact time of impact, contact point, and outward unit normal pointing from target toward\nmoving. Initial overlaps report T == 0 and Distance == 0 with the overlap contact from TestShapes.\n",
              "file": "pkg/physics3d/shapecast.go",
              "line": 80
            }
          ],
          "methods": []
        },
        {
          "name": "RigidAttachment",
          "anchor": "RigidAttachment",
          "decl": "type RigidAttachment struct {\n\tParticle    int\n\tBody        *Body\n\tLocalAnchor Vec3\n\tCompliance  float32\n\t// contains filtered or unexported fields\n}",
          "doc": "RigidAttachment couples particle Particle to rigid Body at LocalAnchor.\nCompliance == 0 acts as a rigid two-way attachment; positive Compliance acts as\na compliant elastic attachment while still transferring reaction impulses to Body.\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 101,
          "members": [
            {
              "name": "Particle",
              "anchor": "RigidAttachment.Particle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Body",
              "anchor": "RigidAttachment.Body",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchor",
              "anchor": "RigidAttachment.LocalAnchor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "RigidAttachment.Compliance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RopeConfig",
          "anchor": "RopeConfig",
          "decl": "type RopeConfig struct {\n\tStart, End     Vec3\n\tSegments       int\n\tTotalMass      float32\n\tParticleRadius float32\n\tCompliance     float32\n\tPinStart       bool\n\tPinEnd         bool\n\tLayer          LayerMask\n\tMask           LayerMask\n\tFriction       float32\n}",
          "doc": "RopeConfig configures a 3D rope constructed by SoftWorld.AddRope.\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 455,
          "members": [
            {
              "name": "Start",
              "anchor": "RopeConfig.Start",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "End",
              "anchor": "RopeConfig.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Segments",
              "anchor": "RopeConfig.Segments",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalMass",
              "anchor": "RopeConfig.TotalMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParticleRadius",
              "anchor": "RopeConfig.ParticleRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "RopeConfig.Compliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PinStart",
              "anchor": "RopeConfig.PinStart",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PinEnd",
              "anchor": "RopeConfig.PinEnd",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "RopeConfig.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "RopeConfig.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "RopeConfig.Friction",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Shape",
          "anchor": "Shape",
          "decl": "type Shape struct {\n\tKind    ShapeKind\n\tBox     Box\n\tSphere  Sphere\n\tCapsule Capsule\n\t// Hull is the convex hull of a ShapeConvexHull shape.\n\tHull ConvexHull\n\t// Cylinder is the cylinder of a ShapeCylinder shape.\n\tCylinder Cylinder\n\t// Rot orients a Box or a ConvexHull about its Center, making the box an oriented box. The zero value and identity leave them unrotated; spheres, capsules and cylinders ignore it.\n\tRot Quat\n\t// Children holds the child colliders when Kind == ShapeCompound.\n\tChildren []CompoundChild `json:\"Children,omitempty\"`\n}",
          "doc": "Shape is a tagged wrapper holding one 3D collision primitive or a compound\nassembly of child shapes.\n",
          "file": "pkg/physics3d/shape.go",
          "line": 89,
          "members": [
            {
              "name": "Kind",
              "anchor": "Shape.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Box",
              "anchor": "Shape.Box",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sphere",
              "anchor": "Shape.Sphere",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Capsule",
              "anchor": "Shape.Capsule",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hull",
              "anchor": "Shape.Hull",
              "kind": "field",
              "doc": "Hull is the convex hull of a ShapeConvexHull shape."
            },
            {
              "name": "Cylinder",
              "anchor": "Shape.Cylinder",
              "kind": "field",
              "doc": "Cylinder is the cylinder of a ShapeCylinder shape."
            },
            {
              "name": "Rot",
              "anchor": "Shape.Rot",
              "kind": "field",
              "doc": "Rot orients a Box or a ConvexHull about its Center, making the box an oriented box. The zero value and identity leave them unrotated; spheres, capsules and cylinders ignore it."
            },
            {
              "name": "Children",
              "anchor": "Shape.Children",
              "kind": "field",
              "doc": "Children holds the child colliders when Kind == ShapeCompound."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BoxShape",
              "anchor": "BoxShape",
              "decl": "func BoxShape(b Box) Shape",
              "doc": "BoxShape wraps b in a Shape.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 105
            },
            {
              "name": "CapsuleShape",
              "anchor": "CapsuleShape",
              "decl": "func CapsuleShape(c Capsule) Shape",
              "doc": "CapsuleShape wraps c in a Shape.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 115
            },
            {
              "name": "CompoundShape",
              "anchor": "CompoundShape",
              "decl": "func CompoundShape(children ...CompoundChild) Shape",
              "doc": "CompoundShape wraps children in a tagged Shape of kind ShapeCompound,\ncopying the slice so later mutations to the caller's slice do not alias.\n",
              "file": "pkg/physics3d/compound.go",
              "line": 35
            },
            {
              "name": "ConvexHullShape",
              "anchor": "ConvexHullShape",
              "decl": "func ConvexHullShape(h ConvexHull) Shape",
              "doc": "ConvexHullShape wraps h in a Shape.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 120
            },
            {
              "name": "CylinderShape",
              "anchor": "CylinderShape",
              "decl": "func CylinderShape(c Cylinder) Shape",
              "doc": "CylinderShape wraps c in a Shape.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 125
            },
            {
              "name": "SphereShape",
              "anchor": "SphereShape",
              "decl": "func SphereShape(s Sphere) Shape",
              "doc": "SphereShape wraps s in a Shape.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 110
            }
          ],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Shape.Bounds",
              "recv": "Shape",
              "decl": "func (s Shape) Bounds() Box",
              "doc": "Bounds returns a tight axis-aligned bounding Box enclosing s.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 219
            },
            {
              "name": "Transformed",
              "anchor": "Shape.Transformed",
              "recv": "Shape",
              "decl": "func (s Shape) Transformed(pos Vec3, rot Quat) Shape",
              "doc": "Transformed returns a copy of s rotated by rot around the local origin and translated by pos. For identity rotations, it is identical to Translated(pos). A Box or ConvexHull keeps its geometry and gains the rotation in Shape.Rot, so the result is exact rather than the AABB enclosing it; Bounds returns that AABB.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 160
            },
            {
              "name": "Translated",
              "anchor": "Shape.Translated",
              "recv": "Shape",
              "decl": "func (s Shape) Translated(offset Vec3) Shape",
              "doc": "Translated returns a copy of s shifted by offset.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 130
            }
          ]
        },
        {
          "name": "ShapeCastOptions",
          "anchor": "ShapeCastOptions",
          "decl": "type ShapeCastOptions struct {\n\t// LayerMask filters bodies and static colliders by their Layer bitmask.\n\t// Zero defaults to LayerAll.\n\tLayerMask LayerMask\n\t// IgnoreBody optionally excludes one body from the cast.\n\tIgnoreBody *Body\n\t// IgnoreBodyID optionally excludes the body with this ID (matching CharacterController.IgnoreBodyID).\n\tIgnoreBodyID int\n\t// IgnoreTriggers excludes bodies with IsTrigger == true when set.\n\tIgnoreTriggers bool\n}",
          "doc": "ShapeCastOptions configures filtering for World.ShapeCastWith and World.ShapeCastAllWith.\n",
          "file": "pkg/physics3d/shapecast.go",
          "line": 11,
          "members": [
            {
              "name": "LayerMask",
              "anchor": "ShapeCastOptions.LayerMask",
              "kind": "field",
              "doc": "LayerMask filters bodies and static colliders by their Layer bitmask.\nZero defaults to LayerAll."
            },
            {
              "name": "IgnoreBody",
              "anchor": "ShapeCastOptions.IgnoreBody",
              "kind": "field",
              "doc": "IgnoreBody optionally excludes one body from the cast."
            },
            {
              "name": "IgnoreBodyID",
              "anchor": "ShapeCastOptions.IgnoreBodyID",
              "kind": "field",
              "doc": "IgnoreBodyID optionally excludes the body with this ID (matching CharacterController.IgnoreBodyID)."
            },
            {
              "name": "IgnoreTriggers",
              "anchor": "ShapeCastOptions.IgnoreTriggers",
              "kind": "field",
              "doc": "IgnoreTriggers excludes bodies with IsTrigger == true when set."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShapeKind",
          "anchor": "ShapeKind",
          "decl": "type ShapeKind int",
          "doc": "ShapeKind identifies the active primitive inside a Shape.\n",
          "file": "pkg/physics3d/shape.go",
          "line": 70,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ShapeBox",
                  "anchor": "ShapeBox"
                },
                {
                  "name": "ShapeSphere",
                  "anchor": "ShapeSphere"
                },
                {
                  "name": "ShapeCapsule",
                  "anchor": "ShapeCapsule"
                },
                {
                  "name": "ShapeConvexHull",
                  "anchor": "ShapeConvexHull"
                },
                {
                  "name": "ShapeCylinder",
                  "anchor": "ShapeCylinder"
                },
                {
                  "name": "ShapeCompound",
                  "anchor": "ShapeCompound"
                }
              ],
              "decl": "const (\n\t// ShapeBox selects Shape.Box.\n\tShapeBox ShapeKind = iota\n\t// ShapeSphere selects Shape.Sphere.\n\tShapeSphere\n\t// ShapeCapsule selects Shape.Capsule.\n\tShapeCapsule\n\t// ShapeConvexHull selects Shape.Hull.\n\tShapeConvexHull\n\t// ShapeCylinder selects Shape.Cylinder.\n\tShapeCylinder\n\t// ShapeCompound selects Shape.Children.\n\tShapeCompound\n)",
              "doc": "",
              "file": "pkg/physics3d/shape.go",
              "line": 72
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SixDOFAxisStateSnapshot",
          "anchor": "SixDOFAxisStateSnapshot",
          "decl": "type SixDOFAxisStateSnapshot struct {\n\tLimitState   int     `json:\"limitState,omitempty\"`\n\tLimitImpulse float32 `json:\"limitImpulse,omitempty\"`\n\tDriveImpulse float32 `json:\"driveImpulse,omitempty\"`\n\tDriveGamma   float32 `json:\"driveGamma,omitempty\"`\n\tDriveBias    float32 `json:\"driveBias,omitempty\"`\n\tDriveMode    int     `json:\"driveMode,omitempty\"`\n\tDriveVel     float32 `json:\"driveVel,omitempty\"`\n}",
          "doc": "SixDOFAxisStateSnapshot captures private per-axis solver state of a SixDOFJoint.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 169,
          "members": [
            {
              "name": "LimitState",
              "anchor": "SixDOFAxisStateSnapshot.LimitState",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LimitImpulse",
              "anchor": "SixDOFAxisStateSnapshot.LimitImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveImpulse",
              "anchor": "SixDOFAxisStateSnapshot.DriveImpulse",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveGamma",
              "anchor": "SixDOFAxisStateSnapshot.DriveGamma",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveBias",
              "anchor": "SixDOFAxisStateSnapshot.DriveBias",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveMode",
              "anchor": "SixDOFAxisStateSnapshot.DriveMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DriveVel",
              "anchor": "SixDOFAxisStateSnapshot.DriveVel",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SixDOFJoint",
          "anchor": "SixDOFJoint",
          "decl": "type SixDOFJoint struct {\n\tBodyA, BodyB *Body\n\tLocalAnchorA Vec3\n\tLocalAnchorB Vec3\n\t// LocalFrameA and LocalFrameB orient the constraint's (X, Y, Z) frame in A's\n\t// and B's local spaces. Zero quaternions default to identity for A and\n\t// world-aligned with A on initialization for B.\n\tLocalFrameA Quat\n\tLocalFrameB Quat\n\n\tLinear  [3]AxisConfig // linear X, Y, Z (indices 0, 1, 2)\n\tAngular [3]AxisConfig // angular X, Y, Z (indices 0, 1, 2)\n\n\tBreakForce       float32 // max reaction force in N before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque in N*m before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "SixDOFJoint is a generic 6-degree-of-freedom constraint between BodyA and BodyB\nwith independent linear (X, Y, Z) and angular (X, Y, Z) axis modes, limits,\nspring stiffness/damping, velocity or position drives, reaction readouts, and\noptional break thresholds.\n",
          "file": "pkg/physics3d/joints_6dof.go",
          "line": 534,
          "members": [
            {
              "name": "BodyA",
              "anchor": "SixDOFJoint.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "SixDOFJoint.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorA",
              "anchor": "SixDOFJoint.LocalAnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorB",
              "anchor": "SixDOFJoint.LocalAnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalFrameA",
              "anchor": "SixDOFJoint.LocalFrameA",
              "kind": "field",
              "doc": "LocalFrameA and LocalFrameB orient the constraint's (X, Y, Z) frame in A's\nand B's local spaces. Zero quaternions default to identity for A and\nworld-aligned with A on initialization for B."
            },
            {
              "name": "LocalFrameB",
              "anchor": "SixDOFJoint.LocalFrameB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Linear",
              "anchor": "SixDOFJoint.Linear",
              "kind": "field",
              "doc": "linear X, Y, Z (indices 0, 1, 2)"
            },
            {
              "name": "Angular",
              "anchor": "SixDOFJoint.Angular",
              "kind": "field",
              "doc": "angular X, Y, Z (indices 0, 1, 2)"
            },
            {
              "name": "BreakForce",
              "anchor": "SixDOFJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force in N before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "SixDOFJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque in N*m before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "SixDOFJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSixDOFJoint",
              "anchor": "NewSixDOFJoint",
              "decl": "func NewSixDOFJoint(a, b *Body, localAnchorA, localAnchorB Vec3) *SixDOFJoint",
              "doc": "NewSixDOFJoint creates a SixDOFJoint between a and b at the specified local\nanchor points, aligning LocalFrameB to match LocalFrameA (identity) in world\nspace so all six relative coordinates start at zero. All axes default to AxisFree.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 562
            }
          ],
          "methods": [
            {
              "name": "AngularPosition",
              "anchor": "SixDOFJoint.AngularPosition",
              "recv": "*SixDOFJoint",
              "decl": "func (j *SixDOFJoint) AngularPosition() Vec3",
              "doc": "AngularPosition returns the current relative rotation (X, Y, Z) in radians\nin the constraint frame. When exactly one angular axis is unlocked, its\ncomponent is tracked continuously past ±pi.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 678
            },
            {
              "name": "Bodies",
              "anchor": "SixDOFJoint.Bodies",
              "recv": "*SixDOFJoint",
              "decl": "func (j *SixDOFJoint) Bodies() (*Body, *Body)",
              "doc": "Bodies returns the connected bodies.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 582
            },
            {
              "name": "Broken",
              "anchor": "SixDOFJoint.Broken",
              "recv": "*SixDOFJoint",
              "decl": "func (r *SixDOFJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 83
            },
            {
              "name": "LinearPosition",
              "anchor": "SixDOFJoint.LinearPosition",
              "recv": "*SixDOFJoint",
              "decl": "func (j *SixDOFJoint) LinearPosition() Vec3",
              "doc": "LinearPosition returns the current relative anchor displacement along the\nconstraint frame's (X, Y, Z) axes in meters.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 663
            },
            {
              "name": "Prepare",
              "anchor": "SixDOFJoint.Prepare",
              "recv": "*SixDOFJoint",
              "decl": "func (j *SixDOFJoint) Prepare(dt float32)",
              "doc": "Prepare initializes the constraint frames, wakes driven bodies, and caches\nper-axis spring, drive, and limit states for dt.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 822
            },
            {
              "name": "ReactionForce",
              "anchor": "SixDOFJoint.ReactionForce",
              "recv": "*SixDOFJoint",
              "decl": "func (r *SixDOFJoint) ReactionForce() Vec3",
              "doc": "ReactionForce returns the world-space constraint force (in Newtons) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 66
            },
            {
              "name": "ReactionTorque",
              "anchor": "SixDOFJoint.ReactionTorque",
              "recv": "*SixDOFJoint",
              "decl": "func (r *SixDOFJoint) ReactionTorque() Vec3",
              "doc": "ReactionTorque returns the world-space constraint torque (in N*m) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 75
            },
            {
              "name": "SolvePosition",
              "anchor": "SixDOFJoint.SolvePosition",
              "recv": "*SixDOFJoint",
              "decl": "func (j *SixDOFJoint) SolvePosition(dt float32)",
              "doc": "SolvePosition corrects locked and limited linear and angular drift.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 996
            },
            {
              "name": "SolveVelocity",
              "anchor": "SixDOFJoint.SolveVelocity",
              "recv": "*SixDOFJoint",
              "decl": "func (j *SixDOFJoint) SolveVelocity(dt float32)",
              "doc": "SolveVelocity solves all 6 linear and angular constraint, spring, drive, and limit rows.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 860
            }
          ]
        },
        {
          "name": "SkeletonJoint",
          "anchor": "SkeletonJoint",
          "decl": "type SkeletonJoint struct {\n\tName       string\n\tParent     int     // parent joint index, or < 0 for root\n\tLocalPos   Vec3    // joint offset in parent space\n\tLocalRot   Quat    // joint orientation in parent space (zero => identity)\n\tRadius     float32 // capsule radius (defaults to 0.08 when <= 0)\n\tLength     float32 // bone length (defaults to 0.25 when <= 0)\n\tMass       float32 // bone mass in kg (defaults to 1.0 when <= 0)\n\tSwingLimit float32 // optional symmetric cone/hinge swing limit in radians (> 0 enables)\n\tHingeAxis  Vec3    // optional explicit hinge axis (non-zero selects HingeJoint)\n\t// Optional asymmetric swing limits in radians for SwingTwistJoint.\n\t// When any of these four fields is non-zero, they override symmetric SwingLimit\n\t// on their respective axis (or all four when both axes are specified).\n\tSwingMin1  float32\n\tSwingMax1  float32\n\tSwingMin2  float32\n\tSwingMax2  float32\n\tTwistLimit float32 // optional symmetric twist half-angle in radians (> 0 sets [-TwistLimit, +TwistLimit])\n\tMinTwist   float32 // optional asymmetric lower twist limit in radians\n\tMaxTwist   float32 // optional asymmetric upper twist limit in radians\n}",
          "doc": "SkeletonJoint describes one bone in a skeletal hierarchy used by BuildRagdoll.\n",
          "file": "pkg/physics3d/ragdoll.go",
          "line": 25,
          "members": [
            {
              "name": "Name",
              "anchor": "SkeletonJoint.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Parent",
              "anchor": "SkeletonJoint.Parent",
              "kind": "field",
              "doc": "parent joint index, or < 0 for root"
            },
            {
              "name": "LocalPos",
              "anchor": "SkeletonJoint.LocalPos",
              "kind": "field",
              "doc": "joint offset in parent space"
            },
            {
              "name": "LocalRot",
              "anchor": "SkeletonJoint.LocalRot",
              "kind": "field",
              "doc": "joint orientation in parent space (zero => identity)"
            },
            {
              "name": "Radius",
              "anchor": "SkeletonJoint.Radius",
              "kind": "field",
              "doc": "capsule radius (defaults to 0.08 when <= 0)"
            },
            {
              "name": "Length",
              "anchor": "SkeletonJoint.Length",
              "kind": "field",
              "doc": "bone length (defaults to 0.25 when <= 0)"
            },
            {
              "name": "Mass",
              "anchor": "SkeletonJoint.Mass",
              "kind": "field",
              "doc": "bone mass in kg (defaults to 1.0 when <= 0)"
            },
            {
              "name": "SwingLimit",
              "anchor": "SkeletonJoint.SwingLimit",
              "kind": "field",
              "doc": "optional symmetric cone/hinge swing limit in radians (> 0 enables)"
            },
            {
              "name": "HingeAxis",
              "anchor": "SkeletonJoint.HingeAxis",
              "kind": "field",
              "doc": "optional explicit hinge axis (non-zero selects HingeJoint)"
            },
            {
              "name": "SwingMin1",
              "anchor": "SkeletonJoint.SwingMin1",
              "kind": "field",
              "doc": "Optional asymmetric swing limits in radians for SwingTwistJoint.\nWhen any of these four fields is non-zero, they override symmetric SwingLimit\non their respective axis (or all four when both axes are specified)."
            },
            {
              "name": "SwingMax1",
              "anchor": "SkeletonJoint.SwingMax1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SwingMin2",
              "anchor": "SkeletonJoint.SwingMin2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SwingMax2",
              "anchor": "SkeletonJoint.SwingMax2",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TwistLimit",
              "anchor": "SkeletonJoint.TwistLimit",
              "kind": "field",
              "doc": "optional symmetric twist half-angle in radians (> 0 sets [-TwistLimit, +TwistLimit])"
            },
            {
              "name": "MinTwist",
              "anchor": "SkeletonJoint.MinTwist",
              "kind": "field",
              "doc": "optional asymmetric lower twist limit in radians"
            },
            {
              "name": "MaxTwist",
              "anchor": "SkeletonJoint.MaxTwist",
              "kind": "field",
              "doc": "optional asymmetric upper twist limit in radians"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SliderJoint",
          "anchor": "SliderJoint",
          "decl": "type SliderJoint struct {\n\tBodyA, BodyB     *Body\n\tLocalAnchorA     Vec3\n\tLocalAnchorB     Vec3\n\tLocalAxisA       Vec3 // slide axis in A's local space (defaults to +X)\n\tEnableLimits     bool\n\tMinTranslation   float32\n\tMaxTranslation   float32\n\tMotorTargetVel   float32 // desired linear speed along slide axis (units/s)\n\tMotorMaxForce    float32 // max linear motor force (N); active when > 0\n\tDriveTargetPos   float32 // target translation along slide axis for spring/position drive\n\tDriveStiffness   float32 // linear spring stiffness in N/m (> 0 enables position spring)\n\tDriveDamping     float32 // linear damping in N*s/m (>= 0)\n\tDriveMaxForce    float32 // max drive force in N (<= 0 means unlimited)\n\tBreakForce       float32 // max reaction force in N before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque in N*m before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "SliderJoint constrains two bodies to translate along a single shared axis\nwithout relative rotation, with optional linear limits, velocity motor,\nspring/position drive, and break thresholds.\n",
          "file": "pkg/physics3d/joints.go",
          "line": 1062,
          "members": [
            {
              "name": "BodyA",
              "anchor": "SliderJoint.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "SliderJoint.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorA",
              "anchor": "SliderJoint.LocalAnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorB",
              "anchor": "SliderJoint.LocalAnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAxisA",
              "anchor": "SliderJoint.LocalAxisA",
              "kind": "field",
              "doc": "slide axis in A's local space (defaults to +X)"
            },
            {
              "name": "EnableLimits",
              "anchor": "SliderJoint.EnableLimits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinTranslation",
              "anchor": "SliderJoint.MinTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxTranslation",
              "anchor": "SliderJoint.MaxTranslation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MotorTargetVel",
              "anchor": "SliderJoint.MotorTargetVel",
              "kind": "field",
              "doc": "desired linear speed along slide axis (units/s)"
            },
            {
              "name": "MotorMaxForce",
              "anchor": "SliderJoint.MotorMaxForce",
              "kind": "field",
              "doc": "max linear motor force (N); active when > 0"
            },
            {
              "name": "DriveTargetPos",
              "anchor": "SliderJoint.DriveTargetPos",
              "kind": "field",
              "doc": "target translation along slide axis for spring/position drive"
            },
            {
              "name": "DriveStiffness",
              "anchor": "SliderJoint.DriveStiffness",
              "kind": "field",
              "doc": "linear spring stiffness in N/m (> 0 enables position spring)"
            },
            {
              "name": "DriveDamping",
              "anchor": "SliderJoint.DriveDamping",
              "kind": "field",
              "doc": "linear damping in N*s/m (>= 0)"
            },
            {
              "name": "DriveMaxForce",
              "anchor": "SliderJoint.DriveMaxForce",
              "kind": "field",
              "doc": "max drive force in N (<= 0 means unlimited)"
            },
            {
              "name": "BreakForce",
              "anchor": "SliderJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force in N before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "SliderJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque in N*m before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "SliderJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSliderJoint",
              "anchor": "NewSliderJoint",
              "decl": "func NewSliderJoint(a, b *Body, localAnchorA, localAnchorB, localAxis Vec3) *SliderJoint",
              "doc": "NewSliderJoint creates a SliderJoint sliding along localAxis.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1093
            }
          ],
          "methods": [
            {
              "name": "Bodies",
              "anchor": "SliderJoint.Bodies",
              "recv": "*SliderJoint",
              "decl": "func (j *SliderJoint) Bodies() (*Body, *Body)",
              "doc": "Bodies returns the connected bodies.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1116
            },
            {
              "name": "Broken",
              "anchor": "SliderJoint.Broken",
              "recv": "*SliderJoint",
              "decl": "func (r *SliderJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 83
            },
            {
              "name": "Prepare",
              "anchor": "SliderJoint.Prepare",
              "recv": "*SliderJoint",
              "decl": "func (j *SliderJoint) Prepare(dt float32)",
              "doc": "Prepare initializes the reference rotation, wakes motorized or spring-driven bodies, and checks linear limits.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1147
            },
            {
              "name": "ReactionForce",
              "anchor": "SliderJoint.ReactionForce",
              "recv": "*SliderJoint",
              "decl": "func (r *SliderJoint) ReactionForce() Vec3",
              "doc": "ReactionForce returns the world-space constraint force (in Newtons) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 66
            },
            {
              "name": "ReactionTorque",
              "anchor": "SliderJoint.ReactionTorque",
              "recv": "*SliderJoint",
              "decl": "func (r *SliderJoint) ReactionTorque() Vec3",
              "doc": "ReactionTorque returns the world-space constraint torque (in N*m) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 75
            },
            {
              "name": "SolvePosition",
              "anchor": "SliderJoint.SolvePosition",
              "recv": "*SliderJoint",
              "decl": "func (j *SliderJoint) SolvePosition(dt float32)",
              "doc": "SolvePosition corrects orientation, perpendicular drift, and linear limit violations.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1293
            },
            {
              "name": "SolveVelocity",
              "anchor": "SliderJoint.SolveVelocity",
              "recv": "*SliderJoint",
              "decl": "func (j *SliderJoint) SolveVelocity(dt float32)",
              "doc": "SolveVelocity solves orientation lock, perpendicular linear lock, linear motor, spring/position drive, and limits.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1187
            },
            {
              "name": "Translation",
              "anchor": "SliderJoint.Translation",
              "recv": "*SliderJoint",
              "decl": "func (j *SliderJoint) Translation() float32",
              "doc": "Translation returns the current signed displacement of BodyB's anchor\nrelative to BodyA's anchor along the world slide axis.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 1138
            }
          ]
        },
        {
          "name": "SoftBoxConfig",
          "anchor": "SoftBoxConfig",
          "decl": "type SoftBoxConfig struct {\n\tCenter           Vec3\n\tHalfExtents      Vec3\n\tTotalMass        float32\n\tParticleRadius   float32\n\tEdgeCompliance   float32\n\tVolumeCompliance float32\n\tLayer            LayerMask\n\tMask             LayerMask\n\tFriction         float32\n\tRestitution      float32\n}",
          "doc": "SoftBoxConfig configures an 8-vertex, 5-tetrahedron 3D soft box constructed by SoftWorld.AddSoftBox.\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 692,
          "members": [
            {
              "name": "Center",
              "anchor": "SoftBoxConfig.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HalfExtents",
              "anchor": "SoftBoxConfig.HalfExtents",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalMass",
              "anchor": "SoftBoxConfig.TotalMass",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParticleRadius",
              "anchor": "SoftBoxConfig.ParticleRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EdgeCompliance",
              "anchor": "SoftBoxConfig.EdgeCompliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VolumeCompliance",
              "anchor": "SoftBoxConfig.VolumeCompliance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "SoftBoxConfig.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "SoftBoxConfig.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "SoftBoxConfig.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "SoftBoxConfig.Restitution",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SoftWorld",
          "anchor": "SoftWorld",
          "decl": "type SoftWorld struct {\n\tParticles   []Particle\n\tDistances   []DistanceConstraint\n\tBendings    []BendingConstraint\n\tVolumes     []VolumeConstraint\n\tAttachments []RigidAttachment\n\n\t// World provides optional 3D bodies, triangle meshes, and heightfields to collide against.\n\tWorld *World\n\t// Gravity is the constant acceleration applied to unpinned particles. NewSoftWorld sets (0, -9.81, 0).\n\tGravity Vec3\n\t// Wind is an optional constant external acceleration applied to unpinned particles.\n\tWind Vec3\n\t// Damping is linear velocity damping per second (e.g. 0.02).\n\tDamping    float32\n\tSubsteps   int\n\tIterations int\n\t// contains filtered or unexported fields\n}",
          "doc": "SoftWorld simulates 3D XPBD particles, constraints (distance, dihedral bending,\ntetrahedral volume), two-way rigid-body attachments, and collisions against World\nbodies, triangle meshes, and heightfields in deterministic order.\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 243,
          "members": [
            {
              "name": "Particles",
              "anchor": "SoftWorld.Particles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Distances",
              "anchor": "SoftWorld.Distances",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bendings",
              "anchor": "SoftWorld.Bendings",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Volumes",
              "anchor": "SoftWorld.Volumes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Attachments",
              "anchor": "SoftWorld.Attachments",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "World",
              "anchor": "SoftWorld.World",
              "kind": "field",
              "doc": "World provides optional 3D bodies, triangle meshes, and heightfields to collide against."
            },
            {
              "name": "Gravity",
              "anchor": "SoftWorld.Gravity",
              "kind": "field",
              "doc": "Gravity is the constant acceleration applied to unpinned particles. NewSoftWorld sets (0, -9.81, 0)."
            },
            {
              "name": "Wind",
              "anchor": "SoftWorld.Wind",
              "kind": "field",
              "doc": "Wind is an optional constant external acceleration applied to unpinned particles."
            },
            {
              "name": "Damping",
              "anchor": "SoftWorld.Damping",
              "kind": "field",
              "doc": "Damping is linear velocity damping per second (e.g. 0.02)."
            },
            {
              "name": "Substeps",
              "anchor": "SoftWorld.Substeps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Iterations",
              "anchor": "SoftWorld.Iterations",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSoftWorld",
              "anchor": "NewSoftWorld",
              "decl": "func NewSoftWorld() *SoftWorld",
              "doc": "NewSoftWorld returns a SoftWorld with standard Y-up gravity (0, -9.81, 0),\n8 substeps, 6 solver iterations, and mild linear damping.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 266
            }
          ],
          "methods": [
            {
              "name": "AddBending",
              "anchor": "SoftWorld.AddBending",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddBending(a, b, c, d int, compliance float32) int",
              "doc": "AddBending adds a dihedral bending constraint across shared edge (a, b) between\ntriangles (a, b, c) and (b, a, d), capturing the current dihedral angle as RestAngle.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 353
            },
            {
              "name": "AddCloth",
              "anchor": "SoftWorld.AddCloth",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddCloth(cfg ClothConfig) ClothGrid",
              "doc": "AddCloth builds a triangulated (Cols+1) x (Rows+1) cloth mesh with structural, shear,\nand dihedral bending constraints.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 567
            },
            {
              "name": "AddDistance",
              "anchor": "SoftWorld.AddDistance",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddDistance(a, b int, restLength, compliance float32) int",
              "doc": "AddDistance adds a bilateral distance constraint between particles a and b.\nIf restLength < 0, the current Euclidean distance between a and b is used.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 308
            },
            {
              "name": "AddParticle",
              "anchor": "SoftWorld.AddParticle",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddParticle(p Particle) int",
              "doc": "AddParticle appends p to sw.Particles, initializes PrevPos to p.Pos, and returns its index.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 276
            },
            {
              "name": "AddRope",
              "anchor": "SoftWorld.AddRope",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddRope(cfg RopeConfig) []int",
              "doc": "AddRope constructs a 3D chain of Segments+1 particles from Start to End with distance\nconstraints (plus unilateral tethers when Compliance == 0 so heavy attached bodies\ncannot over-stretch the rope).\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 471
            },
            {
              "name": "AddSoftBox",
              "anchor": "SoftWorld.AddSoftBox",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddSoftBox(cfg SoftBoxConfig) []int",
              "doc": "AddSoftBox constructs a deformable 3D box made of 8 corner particles, 18 distance\nconstraints (12 outer edges + 6 face diagonals), and 5 tetrahedral volume constraints.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 707
            },
            {
              "name": "AddTether",
              "anchor": "SoftWorld.AddTether",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddTether(a, b int, maxLength, compliance float32) int",
              "doc": "AddTether adds a unilateral maximum-distance constraint between particles a and b\nthat activates only when their separation exceeds maxLength.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 330
            },
            {
              "name": "AddVolume",
              "anchor": "SoftWorld.AddVolume",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AddVolume(a, b, c, d int, compliance float32) int",
              "doc": "AddVolume adds a tetrahedral volume preservation constraint for particles (a, b, c, d),\ncapturing their current signed volume as RestVolume.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 382
            },
            {
              "name": "AttachBody",
              "anchor": "SoftWorld.AttachBody",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) AttachBody(particleIdx int, body *Body, localAnchor Vec3, compliance float32) int",
              "doc": "AttachBody couples particleIdx to body at localAnchor with two-way reaction impulses.\nSet compliance to 0 for a rigid pin attachment or > 0 for an elastic attachment.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 409
            },
            {
              "name": "Edges",
              "anchor": "SoftWorld.Edges",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) Edges() [][2]Vec3",
              "doc": "Edges returns wireframe segments for all structural (non-MaxOnly) distance constraints in sw.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 440
            },
            {
              "name": "PinParticle",
              "anchor": "SoftWorld.PinParticle",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) PinParticle(idx int)",
              "doc": "PinParticle marks particle idx as pinned (immovable).\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 292
            },
            {
              "name": "RopeLength",
              "anchor": "SoftWorld.RopeLength",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) RopeLength(particles []int) float32",
              "doc": "RopeLength returns the total Euclidean polyline length along the ordered particle indices.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 424
            },
            {
              "name": "Step",
              "anchor": "SoftWorld.Step",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) Step(dt time.Duration)",
              "doc": "Step advances the 3D XPBD particle and constraint simulation by dt deterministically.\nCall this on the fixed game loop after World.Step(dt) so two-way rigid attachments stay\nsynchronized without over-stretching.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 814
            },
            {
              "name": "UnpinParticle",
              "anchor": "SoftWorld.UnpinParticle",
              "recv": "*SoftWorld",
              "decl": "func (sw *SoftWorld) UnpinParticle(idx int)",
              "doc": "UnpinParticle clears particle idx's Pinned flag.\n",
              "file": "pkg/physics3d/xpbd.go",
              "line": 300
            }
          ]
        },
        {
          "name": "Sphere",
          "anchor": "Sphere",
          "decl": "type Sphere struct {\n\tCenter Vec3\n\tRadius float32\n}",
          "doc": "Sphere is a ball defined by its center and radius.\n",
          "file": "pkg/physics3d/shape.go",
          "line": 33,
          "members": [
            {
              "name": "Center",
              "anchor": "Sphere.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Sphere.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Translated",
              "anchor": "Sphere.Translated",
              "recv": "Sphere",
              "decl": "func (s Sphere) Translated(offset Vec3) Sphere",
              "doc": "Translated returns a copy of s shifted by offset.\n",
              "file": "pkg/physics3d/shape.go",
              "line": 39
            }
          ]
        },
        {
          "name": "SweepHit",
          "anchor": "SweepHit",
          "decl": "type SweepHit struct {\n\t// T is the normalized hit fraction in [0, 1] along the sweep displacement.\n\tT float32\n\t// Distance is the Euclidean distance traveled along the sweep before contact.\n\tDistance float32\n\t// Point is the world-space contact point on the struck surface.\n\tPoint Vec3\n\t// Normal is the outward unit surface normal pointing toward the swept shape.\n\tNormal Vec3\n\t// Depth is the penetration depth when the shape starts already overlapping (T == 0).\n\tDepth float32\n\t// Voxel is the struck VoxelCollider.\n\tVoxel *VoxelCollider\n\t// BlockX, BlockY, BlockZ identify the integer voxel coordinate struck.\n\tBlockX, BlockY, BlockZ int\n}",
          "doc": "SweepHit describes the first contact encountered when sweeping a Shape along\na displacement vector against a VoxelCollider.\n",
          "file": "pkg/physics3d/voxel.go",
          "line": 42,
          "members": [
            {
              "name": "T",
              "anchor": "SweepHit.T",
              "kind": "field",
              "doc": "T is the normalized hit fraction in [0, 1] along the sweep displacement."
            },
            {
              "name": "Distance",
              "anchor": "SweepHit.Distance",
              "kind": "field",
              "doc": "Distance is the Euclidean distance traveled along the sweep before contact."
            },
            {
              "name": "Point",
              "anchor": "SweepHit.Point",
              "kind": "field",
              "doc": "Point is the world-space contact point on the struck surface."
            },
            {
              "name": "Normal",
              "anchor": "SweepHit.Normal",
              "kind": "field",
              "doc": "Normal is the outward unit surface normal pointing toward the swept shape."
            },
            {
              "name": "Depth",
              "anchor": "SweepHit.Depth",
              "kind": "field",
              "doc": "Depth is the penetration depth when the shape starts already overlapping (T == 0)."
            },
            {
              "name": "Voxel",
              "anchor": "SweepHit.Voxel",
              "kind": "field",
              "doc": "Voxel is the struck VoxelCollider."
            },
            {
              "name": "BlockX",
              "anchor": "SweepHit.BlockX",
              "kind": "field",
              "doc": "BlockX, BlockY, BlockZ identify the integer voxel coordinate struck."
            },
            {
              "name": "BlockY",
              "anchor": "SweepHit.BlockY",
              "kind": "field",
              "doc": "BlockX, BlockY, BlockZ identify the integer voxel coordinate struck."
            },
            {
              "name": "BlockZ",
              "anchor": "SweepHit.BlockZ",
              "kind": "field",
              "doc": "BlockX, BlockY, BlockZ identify the integer voxel coordinate struck."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SwingTwistJoint",
          "anchor": "SwingTwistJoint",
          "decl": "type SwingTwistJoint struct {\n\tBodyA, BodyB *Body\n\tLocalAnchorA Vec3\n\tLocalAnchorB Vec3\n\tTwistAxisA   Vec3 // bone/twist axis in A's local space (defaults to +Y)\n\tTwistAxisB   Vec3 // bone/twist axis in B's local space (defaults to world-aligned TwistAxisA)\n\tPlaneAxisA   Vec3 // reference axis perpendicular to TwistAxisA (auto-completed if zero)\n\tPlaneAxisB   Vec3 // reference axis perpendicular to TwistAxisB (auto-aligned if zero)\n\n\tEnableSwingLimits bool\n\tSwingMin1         float32 // negative/lower swing limit around PlaneAxisA in radians\n\tSwingMax1         float32 // positive/upper swing limit around PlaneAxisA in radians\n\tSwingMin2         float32 // negative/lower swing limit around Plane2A in radians\n\tSwingMax2         float32 // positive/upper swing limit around Plane2A in radians\n\n\tEnableTwistLimits bool\n\tMinTwist          float32 // lower twist limit in radians (in [-pi, pi])\n\tMaxTwist          float32 // upper twist limit in radians (in [-pi, pi])\n\n\tBreakForce       float32 // max reaction force in N before breaking (<= 0 disables)\n\tBreakTorque      float32 // max reaction torque in N*m before breaking (<= 0 disables)\n\tCollideConnected bool\n\t// contains filtered or unexported fields\n}",
          "doc": "SwingTwistJoint is a 3D ball-and-socket constraint with an asymmetric\nfour-quadrant elliptic swing cone and an independent twist range [MinTwist, MaxTwist].\n\nEach body carries an orthonormal frame (TwistAxis, PlaneAxis, TwistAxis x PlaneAxis).\nSwing1 rotates around PlaneAxisA (clamped to [SwingMin1, SwingMax1]),\nSwing2 rotates around TwistAxisA x PlaneAxisA (clamped to [SwingMin2, SwingMax2]),\nand Twist rotates around TwistAxisB (clamped to [MinTwist, MaxTwist]).\n",
          "file": "pkg/physics3d/joints_6dof.go",
          "line": 57,
          "members": [
            {
              "name": "BodyA",
              "anchor": "SwingTwistJoint.BodyA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyB",
              "anchor": "SwingTwistJoint.BodyB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorA",
              "anchor": "SwingTwistJoint.LocalAnchorA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalAnchorB",
              "anchor": "SwingTwistJoint.LocalAnchorB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TwistAxisA",
              "anchor": "SwingTwistJoint.TwistAxisA",
              "kind": "field",
              "doc": "bone/twist axis in A's local space (defaults to +Y)"
            },
            {
              "name": "TwistAxisB",
              "anchor": "SwingTwistJoint.TwistAxisB",
              "kind": "field",
              "doc": "bone/twist axis in B's local space (defaults to world-aligned TwistAxisA)"
            },
            {
              "name": "PlaneAxisA",
              "anchor": "SwingTwistJoint.PlaneAxisA",
              "kind": "field",
              "doc": "reference axis perpendicular to TwistAxisA (auto-completed if zero)"
            },
            {
              "name": "PlaneAxisB",
              "anchor": "SwingTwistJoint.PlaneAxisB",
              "kind": "field",
              "doc": "reference axis perpendicular to TwistAxisB (auto-aligned if zero)"
            },
            {
              "name": "EnableSwingLimits",
              "anchor": "SwingTwistJoint.EnableSwingLimits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SwingMin1",
              "anchor": "SwingTwistJoint.SwingMin1",
              "kind": "field",
              "doc": "negative/lower swing limit around PlaneAxisA in radians"
            },
            {
              "name": "SwingMax1",
              "anchor": "SwingTwistJoint.SwingMax1",
              "kind": "field",
              "doc": "positive/upper swing limit around PlaneAxisA in radians"
            },
            {
              "name": "SwingMin2",
              "anchor": "SwingTwistJoint.SwingMin2",
              "kind": "field",
              "doc": "negative/lower swing limit around Plane2A in radians"
            },
            {
              "name": "SwingMax2",
              "anchor": "SwingTwistJoint.SwingMax2",
              "kind": "field",
              "doc": "positive/upper swing limit around Plane2A in radians"
            },
            {
              "name": "EnableTwistLimits",
              "anchor": "SwingTwistJoint.EnableTwistLimits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinTwist",
              "anchor": "SwingTwistJoint.MinTwist",
              "kind": "field",
              "doc": "lower twist limit in radians (in [-pi, pi])"
            },
            {
              "name": "MaxTwist",
              "anchor": "SwingTwistJoint.MaxTwist",
              "kind": "field",
              "doc": "upper twist limit in radians (in [-pi, pi])"
            },
            {
              "name": "BreakForce",
              "anchor": "SwingTwistJoint.BreakForce",
              "kind": "field",
              "doc": "max reaction force in N before breaking (<= 0 disables)"
            },
            {
              "name": "BreakTorque",
              "anchor": "SwingTwistJoint.BreakTorque",
              "kind": "field",
              "doc": "max reaction torque in N*m before breaking (<= 0 disables)"
            },
            {
              "name": "CollideConnected",
              "anchor": "SwingTwistJoint.CollideConnected",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSwingTwistJoint",
              "anchor": "NewSwingTwistJoint",
              "decl": "func NewSwingTwistJoint(a, b *Body, localAnchorA, localAnchorB, twistAxis Vec3) *SwingTwistJoint",
              "doc": "NewSwingTwistJoint creates a SwingTwistJoint locking LocalAnchorA on a to\nLocalAnchorB on b with twistAxis specified in a's local space (defaulting to +Y).\nTwistAxisB and PlaneAxisB are aligned to match A's frame in world space so the\ninitial swing and twist angles start at zero.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 91
            }
          ],
          "methods": [
            {
              "name": "Bodies",
              "anchor": "SwingTwistJoint.Bodies",
              "recv": "*SwingTwistJoint",
              "decl": "func (j *SwingTwistJoint) Bodies() (*Body, *Body)",
              "doc": "Bodies returns the connected bodies.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 116
            },
            {
              "name": "Broken",
              "anchor": "SwingTwistJoint.Broken",
              "recv": "*SwingTwistJoint",
              "decl": "func (r *SwingTwistJoint) Broken() bool",
              "doc": "Broken reports whether the joint has exceeded its break threshold and been removed.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 83
            },
            {
              "name": "Prepare",
              "anchor": "SwingTwistJoint.Prepare",
              "recv": "*SwingTwistJoint",
              "decl": "func (j *SwingTwistJoint) Prepare(dt float32)",
              "doc": "Prepare resets per-step impulses and evaluates active twist limit states.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 325
            },
            {
              "name": "ReactionForce",
              "anchor": "SwingTwistJoint.ReactionForce",
              "recv": "*SwingTwistJoint",
              "decl": "func (r *SwingTwistJoint) ReactionForce() Vec3",
              "doc": "ReactionForce returns the world-space constraint force (in Newtons) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 66
            },
            {
              "name": "ReactionTorque",
              "anchor": "SwingTwistJoint.ReactionTorque",
              "recv": "*SwingTwistJoint",
              "decl": "func (r *SwingTwistJoint) ReactionTorque() Vec3",
              "doc": "ReactionTorque returns the world-space constraint torque (in N*m) applied to\nBodyB during the most recent World.Step.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 75
            },
            {
              "name": "SolvePosition",
              "anchor": "SwingTwistJoint.SolvePosition",
              "recv": "*SwingTwistJoint",
              "decl": "func (j *SwingTwistJoint) SolvePosition(dt float32)",
              "doc": "SolvePosition corrects socket anchor drift, asymmetric swing violations, and twist violations.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 443
            },
            {
              "name": "SolveVelocity",
              "anchor": "SwingTwistJoint.SolveVelocity",
              "recv": "*SwingTwistJoint",
              "decl": "func (j *SwingTwistJoint) SolveVelocity(dt float32)",
              "doc": "SolveVelocity solves the 3D socket anchor, asymmetric swing cone, and twist limits.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 345
            },
            {
              "name": "SwingAngles",
              "anchor": "SwingTwistJoint.SwingAngles",
              "recv": "*SwingTwistJoint",
              "decl": "func (j *SwingTwistJoint) SwingAngles() (swing1, swing2 float32)",
              "doc": "SwingAngles returns the current decomposed swing angles (swing1, swing2) in\nradians around PlaneAxisA and TwistAxisA x PlaneAxisA.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 227
            },
            {
              "name": "TwistAngle",
              "anchor": "SwingTwistJoint.TwistAngle",
              "recv": "*SwingTwistJoint",
              "decl": "func (j *SwingTwistJoint) TwistAngle() float32",
              "doc": "TwistAngle returns the current decomposed twist angle in radians in [-pi, pi]\naround the joint's twist axis.\n",
              "file": "pkg/physics3d/joints_6dof.go",
              "line": 234
            }
          ]
        },
        {
          "name": "SymMat3",
          "anchor": "SymMat3",
          "decl": "type SymMat3 struct {\n\tXX, YY, ZZ float32\n\tXY, XZ, YZ float32\n}",
          "doc": "SymMat3 is a symmetric 3x3 matrix stored by its six unique entries:\n\n\t[ XX  XY  XZ ]\n\t[ XY  YY  YZ ]\n\t[ XZ  YZ  ZZ ]\n\nAll arithmetic avoids fused multiply-add contraction for cross-architecture\ndeterminism.\n",
          "file": "pkg/physics3d/compound.go",
          "line": 141,
          "members": [
            {
              "name": "XX",
              "anchor": "SymMat3.XX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YY",
              "anchor": "SymMat3.YY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ZZ",
              "anchor": "SymMat3.ZZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "XY",
              "anchor": "SymMat3.XY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "XZ",
              "anchor": "SymMat3.XZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YZ",
              "anchor": "SymMat3.YZ",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DiagSymMat3",
              "anchor": "DiagSymMat3",
              "decl": "func DiagSymMat3(diag Vec3) SymMat3",
              "doc": "DiagSymMat3 returns a diagonal symmetric 3x3 matrix with entries diag.X, diag.Y, diag.Z.\n",
              "file": "pkg/physics3d/inertia.go",
              "line": 6
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "SymMat3.Add",
              "recv": "SymMat3",
              "decl": "func (m SymMat3) Add(b SymMat3) SymMat3",
              "doc": "Add returns the component-wise sum m + b.\n",
              "file": "pkg/physics3d/compound.go",
              "line": 152
            },
            {
              "name": "Inverse",
              "anchor": "SymMat3.Inverse",
              "recv": "SymMat3",
              "decl": "func (m SymMat3) Inverse() (SymMat3, bool)",
              "doc": "Inverse returns the inverse of m computed in float64 without FMA contraction,\nor (SymMat3{}, false) if m is singular or non-finite.\n",
              "file": "pkg/physics3d/compound.go",
              "line": 208
            },
            {
              "name": "IsZero",
              "anchor": "SymMat3.IsZero",
              "recv": "SymMat3",
              "decl": "func (m SymMat3) IsZero() bool",
              "doc": "IsZero reports whether all entries of m are zero.\n",
              "file": "pkg/physics3d/compound.go",
              "line": 147
            },
            {
              "name": "MulVec",
              "anchor": "SymMat3.MulVec",
              "recv": "SymMat3",
              "decl": "func (m SymMat3) MulVec(v Vec3) Vec3",
              "doc": "MulVec returns m * v without FMA contraction.\n",
              "file": "pkg/physics3d/compound.go",
              "line": 164
            },
            {
              "name": "QuadForm",
              "anchor": "SymMat3.QuadForm",
              "recv": "SymMat3",
              "decl": "func (m SymMat3) QuadForm(v Vec3) float32",
              "doc": "QuadForm returns v^T * m * v.\n",
              "file": "pkg/physics3d/compound.go",
              "line": 173
            },
            {
              "name": "Rotated",
              "anchor": "SymMat3.Rotated",
              "recv": "SymMat3",
              "decl": "func (m SymMat3) Rotated(q Quat) SymMat3",
              "doc": "Rotated returns R * m * R^T where R is the 3x3 rotation matrix of unit\nquaternion q, computed without FMA contraction.\n",
              "file": "pkg/physics3d/compound.go",
              "line": 179
            },
            {
              "name": "Solve",
              "anchor": "SymMat3.Solve",
              "recv": "SymMat3",
              "decl": "func (m SymMat3) Solve(rhs Vec3) Vec3",
              "doc": "Solve solves the symmetric linear system m * x = rhs in float64 without FMA\ncontraction, returning the zero vector when m is singular or non-finite.\n",
              "file": "pkg/physics3d/inertia.go",
              "line": 12
            }
          ]
        },
        {
          "name": "TriMeshCollider",
          "anchor": "TriMeshCollider",
          "decl": "type TriMeshCollider struct {\n\tID          int\n\tTag         string\n\tLayer       LayerMask\n\tMask        LayerMask\n\tFriction    float32\n\tRestitution float32\n\tTriangles   []Triangle\n\tBounds      Box\n\t// contains filtered or unexported fields\n}",
          "doc": "TriMeshCollider is a static triangle-mesh collider accelerated by a pure-Go\nAABB Bounding Volume Hierarchy (BVH).\n",
          "file": "pkg/physics3d/mesh_heightfield.go",
          "line": 454,
          "members": [
            {
              "name": "ID",
              "anchor": "TriMeshCollider.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "TriMeshCollider.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "TriMeshCollider.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "TriMeshCollider.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "TriMeshCollider.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "TriMeshCollider.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triangles",
              "anchor": "TriMeshCollider.Triangles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "TriMeshCollider.Bounds",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTriMeshCollider",
              "anchor": "NewTriMeshCollider",
              "decl": "func NewTriMeshCollider(vertices []Vec3, indices []uint32) *TriMeshCollider",
              "doc": "NewTriMeshCollider builds a TriMeshCollider and its AABB BVH from indexed\ntriangle soup (directly compatible with glTF mesh positions and indices).\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 470
            },
            {
              "name": "NewTriMeshFromGLTFMesh",
              "anchor": "NewTriMeshFromGLTFMesh",
              "decl": "func NewTriMeshFromGLTFMesh(mesh gltf.Mesh, worldTransform math3d.Mat4) *TriMeshCollider",
              "doc": "NewTriMeshFromGLTFMesh builds a single static TriMeshCollider combining all\ntriangle primitives of mesh, transformed by worldTransform (an all-zero\nmatrix is treated as identity).\n",
              "file": "pkg/physics3d/gltf_colliders.go",
              "line": 144
            },
            {
              "name": "NewTriMeshFromGLTFNode",
              "anchor": "NewTriMeshFromGLTFNode",
              "decl": "func NewTriMeshFromGLTFNode(doc *gltf.Document, nodeIndex int) *TriMeshCollider",
              "doc": "NewTriMeshFromGLTFNode builds a static TriMeshCollider from doc.Nodes[nodeIndex]\nusing the node's full WorldMatrix transform. Returns nil if doc is nil,\nnodeIndex is out of range, or the node references no valid mesh.\n",
              "file": "pkg/physics3d/gltf_colliders.go",
              "line": 158
            },
            {
              "name": "NewTriMeshFromGLTFPrimitive",
              "anchor": "NewTriMeshFromGLTFPrimitive",
              "decl": "func NewTriMeshFromGLTFPrimitive(prim gltf.Primitive, worldTransform math3d.Mat4) *TriMeshCollider",
              "doc": "NewTriMeshFromGLTFPrimitive builds a static TriMeshCollider from a single\nglTF primitive (indexed or non-indexed, supporting Triangles, TriangleStrip,\nand TriangleFan modes), transforming vertices by worldTransform (an all-zero\nmatrix is treated as identity).\n",
              "file": "pkg/physics3d/gltf_colliders.go",
              "line": 134
            }
          ],
          "methods": [
            {
              "name": "CollectContacts",
              "anchor": "TriMeshCollider.CollectContacts",
              "recv": "*TriMeshCollider",
              "decl": "func (tm *TriMeshCollider) CollectContacts(s Shape, dst []Contact) []Contact",
              "doc": "CollectContacts appends all overlapping triangle contacts for s to dst.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 695
            },
            {
              "name": "QueryTriangles",
              "anchor": "TriMeshCollider.QueryTriangles",
              "recv": "*TriMeshCollider",
              "decl": "func (tm *TriMeshCollider) QueryTriangles(bounds Box, visit func(tri Triangle))",
              "doc": "QueryTriangles visits every triangle in tm whose leaf BVH node overlaps bounds.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 652
            },
            {
              "name": "Raycast",
              "anchor": "TriMeshCollider.Raycast",
              "recv": "*TriMeshCollider",
              "decl": "func (tm *TriMeshCollider) Raycast(ray Ray) (RaycastHit, bool)",
              "doc": "Raycast traverses the BVH to find the closest intersection between ray and tm.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 593
            },
            {
              "name": "ShapeCast",
              "anchor": "TriMeshCollider.ShapeCast",
              "recv": "*TriMeshCollider",
              "decl": "func (tm *TriMeshCollider) ShapeCast(shape Shape, delta Vec3) (RaycastHit, bool)",
              "doc": "ShapeCast sweeps shape along displacement delta against tm using its BVH and returns\nthe earliest hit.\n",
              "file": "pkg/physics3d/shapecast.go",
              "line": 373
            },
            {
              "name": "TestShape",
              "anchor": "TriMeshCollider.TestShape",
              "recv": "*TriMeshCollider",
              "decl": "func (tm *TriMeshCollider) TestShape(s Shape) Contact",
              "doc": "TestShape returns the deepest Contact between s and tm (normal pointing from\ntm toward s).\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 678
            }
          ]
        },
        {
          "name": "TriMeshSnapshot",
          "anchor": "TriMeshSnapshot",
          "decl": "type TriMeshSnapshot struct {\n\tID          int        `json:\"id\"`\n\tTag         string     `json:\"tag,omitempty\"`\n\tLayer       LayerMask  `json:\"layer\"`\n\tMask        LayerMask  `json:\"mask\"`\n\tFriction    float32    `json:\"friction\"`\n\tRestitution float32    `json:\"restitution\"`\n\tTriangles   []Triangle `json:\"triangles,omitempty\"`\n}",
          "doc": "TriMeshSnapshot captures a static TriMeshCollider.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 273,
          "members": [
            {
              "name": "ID",
              "anchor": "TriMeshSnapshot.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "TriMeshSnapshot.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "TriMeshSnapshot.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "TriMeshSnapshot.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "TriMeshSnapshot.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "TriMeshSnapshot.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triangles",
              "anchor": "TriMeshSnapshot.Triangles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Triangle",
          "anchor": "Triangle",
          "decl": "type Triangle struct {\n\tA, B, C Vec3\n}",
          "doc": "Triangle is a 3D triangle defined by vertices A, B, C (counter-clockwise\nwinding defines the outward Normal).\n",
          "file": "pkg/physics3d/mesh_heightfield.go",
          "line": 11,
          "members": [
            {
              "name": "A",
              "anchor": "Triangle.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "Triangle.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "C",
              "anchor": "Triangle.C",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Triangle.Bounds",
              "recv": "Triangle",
              "decl": "func (t Triangle) Bounds() Box",
              "doc": "Bounds returns the tight axis-aligned bounding Box enclosing t.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 26
            },
            {
              "name": "Centroid",
              "anchor": "Triangle.Centroid",
              "recv": "Triangle",
              "decl": "func (t Triangle) Centroid() Vec3",
              "doc": "Centroid returns the geometric center of t.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 21
            },
            {
              "name": "Normal",
              "anchor": "Triangle.Normal",
              "recv": "Triangle",
              "decl": "func (t Triangle) Normal() Vec3",
              "doc": "Normal returns the unit surface normal of t using counter-clockwise winding.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 16
            }
          ]
        },
        {
          "name": "Vec3",
          "anchor": "Vec3",
          "decl": "type Vec3 struct {\n\tX, Y, Z float32\n}",
          "doc": "Vec3 is a 3D vector in a right-handed, Y-up coordinate system.\n",
          "file": "pkg/physics3d/vec3.go",
          "line": 10,
          "members": [
            {
              "name": "X",
              "anchor": "Vec3.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Vec3.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Vec3.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "Vec3.Add",
              "recv": "Vec3",
              "decl": "func (v Vec3) Add(b Vec3) Vec3",
              "doc": "Add returns v + b.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 15
            },
            {
              "name": "Cross",
              "anchor": "Vec3.Cross",
              "recv": "Vec3",
              "decl": "func (v Vec3) Cross(b Vec3) Vec3",
              "doc": "Cross returns the right-handed cross product v x b.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 40
            },
            {
              "name": "Dist",
              "anchor": "Vec3.Dist",
              "recv": "Vec3",
              "decl": "func (v Vec3) Dist(b Vec3) float32",
              "doc": "Dist returns the Euclidean distance between v and b.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 75
            },
            {
              "name": "DistSq",
              "anchor": "Vec3.DistSq",
              "recv": "Vec3",
              "decl": "func (v Vec3) DistSq(b Vec3) float32",
              "doc": "DistSq returns the squared Euclidean distance between v and b.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 70
            },
            {
              "name": "Dot",
              "anchor": "Vec3.Dot",
              "recv": "Vec3",
              "decl": "func (v Vec3) Dot(b Vec3) float32",
              "doc": "Dot returns the dot product of v and b.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 35
            },
            {
              "name": "Len",
              "anchor": "Vec3.Len",
              "recv": "Vec3",
              "decl": "func (v Vec3) Len() float32",
              "doc": "Len returns the Euclidean length of v.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 54
            },
            {
              "name": "LenSq",
              "anchor": "Vec3.LenSq",
              "recv": "Vec3",
              "decl": "func (v Vec3) LenSq() float32",
              "doc": "LenSq returns the squared Euclidean length of v.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 49
            },
            {
              "name": "Neg",
              "anchor": "Vec3.Neg",
              "recv": "Vec3",
              "decl": "func (v Vec3) Neg() Vec3",
              "doc": "Neg returns -v.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 30
            },
            {
              "name": "Norm",
              "anchor": "Vec3.Norm",
              "recv": "Vec3",
              "decl": "func (v Vec3) Norm() Vec3",
              "doc": "Norm returns the unit vector in the direction of v, or the zero vector when\nv has zero length.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 60
            },
            {
              "name": "Scale",
              "anchor": "Vec3.Scale",
              "recv": "Vec3",
              "decl": "func (v Vec3) Scale(s float32) Vec3",
              "doc": "Scale returns v multiplied by s.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 25
            },
            {
              "name": "Sub",
              "anchor": "Vec3.Sub",
              "recv": "Vec3",
              "decl": "func (v Vec3) Sub(b Vec3) Vec3",
              "doc": "Sub returns v - b.\n",
              "file": "pkg/physics3d/vec3.go",
              "line": 20
            }
          ]
        },
        {
          "name": "VolumeConstraint",
          "anchor": "VolumeConstraint",
          "decl": "type VolumeConstraint struct {\n\tA, B, C, D int\n\tRestVolume float32\n\tCompliance float32\n\t// contains filtered or unexported fields\n}",
          "doc": "VolumeConstraint preserves the signed volume of tetrahedron (A, B, C, D).\n",
          "file": "pkg/physics3d/xpbd.go",
          "line": 90,
          "members": [
            {
              "name": "A",
              "anchor": "VolumeConstraint.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "VolumeConstraint.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "C",
              "anchor": "VolumeConstraint.C",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "D",
              "anchor": "VolumeConstraint.D",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RestVolume",
              "anchor": "VolumeConstraint.RestVolume",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Compliance",
              "anchor": "VolumeConstraint.Compliance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "VoxelBoundsGrid",
          "anchor": "VoxelBoundsGrid",
          "decl": "type VoxelBoundsGrid interface {\n\tVoxelGrid\n\t// VoxelBounds returns the inclusive world-space AABB enclosing all solid\n\t// voxels in the grid's local coordinates (before adding VoxelCollider.Origin),\n\t// and false when no solid voxels exist.\n\tVoxelBounds() (min, max Vec3, ok bool)\n}",
          "doc": "VoxelBoundsGrid is an optional interface a VoxelGrid may implement so\nVoxelCollider.Raycast can reject rays outside the populated world in O(1)\nand clip long rays to the active voxel region.\n",
          "file": "pkg/physics3d/voxel.go",
          "line": 21,
          "members": [
            {
              "name": "VoxelBounds",
              "anchor": "VoxelBoundsGrid.VoxelBounds",
              "kind": "method",
              "doc": "VoxelBounds returns the inclusive world-space AABB enclosing all solid\nvoxels in the grid's local coordinates (before adding VoxelCollider.Origin),\nand false when no solid voxels exist."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "VoxelCollider",
          "anchor": "VoxelCollider",
          "decl": "type VoxelCollider struct {\n\tID          int\n\tTag         string\n\tLayer       LayerMask\n\tMask        LayerMask\n\tFriction    float32\n\tRestitution float32\n\tOrigin      Vec3\n\tGrid        VoxelGrid\n\t// contains filtered or unexported fields\n}",
          "doc": "VoxelCollider collides bodies, characters, rays, overlaps, and shape sweeps\ndirectly against a VoxelGrid without building a triangle mesh. Edits to the\nunderlying VoxelGrid take effect immediately with zero rebuild.\n",
          "file": "pkg/physics3d/voxel.go",
          "line": 62,
          "members": [
            {
              "name": "ID",
              "anchor": "VoxelCollider.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "VoxelCollider.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "VoxelCollider.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "VoxelCollider.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "VoxelCollider.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "VoxelCollider.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Origin",
              "anchor": "VoxelCollider.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grid",
              "anchor": "VoxelCollider.Grid",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewVoxelCollider",
              "anchor": "NewVoxelCollider",
              "decl": "func NewVoxelCollider(grid VoxelGrid) *VoxelCollider",
              "doc": "NewVoxelCollider constructs a VoxelCollider backed by grid with default\nfriction (0.5).\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 78
            }
          ],
          "methods": [
            {
              "name": "CollectContacts",
              "anchor": "VoxelCollider.CollectContacts",
              "recv": "*VoxelCollider",
              "decl": "func (vc *VoxelCollider) CollectContacts(s Shape, dst []Contact) []Contact",
              "doc": "CollectContacts appends all overlapping exposed solid-voxel contacts for s\nto dst in deterministic (y, z, x) order.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 539
            },
            {
              "name": "NotifyBlockChanged",
              "anchor": "VoxelCollider.NotifyBlockChanged",
              "recv": "*VoxelCollider",
              "decl": "func (vc *VoxelCollider) NotifyBlockChanged(x, y, z int)",
              "doc": "NotifyBlockChanged wakes sleeping dynamic bodies near voxel (x, y, z) in\nevery World to which vc is attached. VoxelGrid implementations that also\nimplement VoxelEditNotifier invoke this automatically on block edits.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 109
            },
            {
              "name": "NotifyReset",
              "anchor": "VoxelCollider.NotifyReset",
              "recv": "*VoxelCollider",
              "decl": "func (vc *VoxelCollider) NotifyReset()",
              "doc": "NotifyReset wakes all dynamic bodies in every World to which vc is attached.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 130
            },
            {
              "name": "QueryBlocks",
              "anchor": "VoxelCollider.QueryBlocks",
              "recv": "*VoxelCollider",
              "decl": "func (vc *VoxelCollider) QueryBlocks(bounds Box, visit func(x, y, z int, blockBox Box))",
              "doc": "QueryBlocks visits every solid voxel overlapping bounds in deterministic\nascending (y, z, x) order, passing its integer coordinate and world-space Box.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 191
            },
            {
              "name": "Raycast",
              "anchor": "VoxelCollider.Raycast",
              "recv": "*VoxelCollider",
              "decl": "func (vc *VoxelCollider) Raycast(ray Ray) (RaycastHit, bool)",
              "doc": "Raycast intersects ray directly with solid blocks in vc using 3D DDA\n(Amanatides & Woo) without building a triangle mesh.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 548
            },
            {
              "name": "Sweep",
              "anchor": "VoxelCollider.Sweep",
              "recv": "*VoxelCollider",
              "decl": "func (vc *VoxelCollider) Sweep(shape Shape, delta Vec3) (SweepHit, bool)",
              "doc": "Sweep translates shape along delta against solid blocks in vc and returns\nthe earliest opposing contact. Axis-aligned boxes use an exact analytical\nswept-AABB slab test with internal-face filtering; spheres, capsules, and\noriented boxes use sub-stepped narrowphase with binary-search TOI refinement.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 683
            },
            {
              "name": "TestShape",
              "anchor": "VoxelCollider.TestShape",
              "recv": "*VoxelCollider",
              "decl": "func (vc *VoxelCollider) TestShape(s Shape) Contact",
              "doc": "TestShape returns the deepest Contact between s and solid blocks in vc\n(normal pointing from the voxel terrain toward s).\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 527
            }
          ]
        },
        {
          "name": "VoxelColliderSnapshot",
          "anchor": "VoxelColliderSnapshot",
          "decl": "type VoxelColliderSnapshot struct {\n\tID          int       `json:\"id\"`\n\tTag         string    `json:\"tag,omitempty\"`\n\tLayer       LayerMask `json:\"layer\"`\n\tMask        LayerMask `json:\"mask\"`\n\tFriction    float32   `json:\"friction\"`\n\tRestitution float32   `json:\"restitution\"`\n\tOrigin      Vec3      `json:\"origin\"`\n}",
          "doc": "VoxelColliderSnapshot captures the metadata of a VoxelCollider (its backing\nVoxelGrid interface is matched by ID on Restore).\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 300,
          "members": [
            {
              "name": "ID",
              "anchor": "VoxelColliderSnapshot.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "VoxelColliderSnapshot.Tag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "VoxelColliderSnapshot.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mask",
              "anchor": "VoxelColliderSnapshot.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Friction",
              "anchor": "VoxelColliderSnapshot.Friction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Restitution",
              "anchor": "VoxelColliderSnapshot.Restitution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Origin",
              "anchor": "VoxelColliderSnapshot.Origin",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "VoxelEditNotifier",
          "anchor": "VoxelEditNotifier",
          "decl": "type VoxelEditNotifier interface {\n\tVoxelGrid\n\t// WatchVoxelEdits registers callbacks invoked whenever a voxel changes\n\t// solidity (onBlock) or the grid is reset (onReset). Calling the returned\n\t// cancel function unregisters the callbacks.\n\tWatchVoxelEdits(onBlock func(x, y, z int), onReset func()) (cancel func())\n}",
          "doc": "VoxelEditNotifier is an optional interface a VoxelGrid may implement so\nVoxelCollider automatically wakes sleeping dynamic bodies in attached Worlds\nwhenever a block changes solidity or the grid is cleared.\n",
          "file": "pkg/physics3d/voxel.go",
          "line": 32,
          "members": [
            {
              "name": "WatchVoxelEdits",
              "anchor": "VoxelEditNotifier.WatchVoxelEdits",
              "kind": "method",
              "doc": "WatchVoxelEdits registers callbacks invoked whenever a voxel changes\nsolidity (onBlock) or the grid is reset (onReset). Calling the returned\ncancel function unregisters the callbacks."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "VoxelGrid",
          "anchor": "VoxelGrid",
          "decl": "type VoxelGrid interface {\n\t// VoxelSize returns the positive world-space edge length of one voxel.\n\tVoxelSize() float32\n\t// IsSolid reports whether the voxel at integer coordinate (x, y, z) is solid.\n\tIsSolid(x, y, z int) bool\n}",
          "doc": "VoxelGrid supplies direct solid-block occupancy queries for a VoxelCollider.\nVoxel (x, y, z) occupies the world-space cube from\nOrigin + (x, y, z)*VoxelSize to Origin + (x+1, y+1, z+1)*VoxelSize.\n",
          "file": "pkg/physics3d/voxel.go",
          "line": 11,
          "members": [
            {
              "name": "VoxelSize",
              "anchor": "VoxelGrid.VoxelSize",
              "kind": "method",
              "doc": "VoxelSize returns the positive world-space edge length of one voxel."
            },
            {
              "name": "IsSolid",
              "anchor": "VoxelGrid.IsSolid",
              "kind": "method",
              "doc": "IsSolid reports whether the voxel at integer coordinate (x, y, z) is solid."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "World",
          "anchor": "World",
          "decl": "type World struct {\n\t// Gravity is the constant acceleration applied to dynamic bodies each step.\n\t// NewWorld initializes it to (0, -9.81, 0).\n\tGravity Vec3\n\t// SolverIterations is the number of velocity and positional solver passes\n\t// per Step; values <= 0 default to 8.\n\tSolverIterations int\n\t// OnContact is invoked deterministically for non-trigger ContactEvents\n\t// (ContactEnter, ContactStay, ContactExit).\n\tOnContact func(ContactEvent)\n\t// OnTrigger is invoked deterministically for trigger ContactEvents\n\t// (ContactEnter, ContactStay, ContactExit).\n\tOnTrigger func(ContactEvent)\n\t// OnJointBreak is invoked deterministically for each joint broken during\n\t// World.Step in joint insertion order.\n\tOnJointBreak func(JointBreakEvent)\n\t// contains filtered or unexported fields\n}",
          "doc": "World holds static, kinematic, and dynamic bodies, static triangle meshes,\nheightfields, voxel colliders, and 3D joints, stepping them forward deterministically.\n",
          "file": "pkg/physics3d/world.go",
          "line": 374,
          "members": [
            {
              "name": "Gravity",
              "anchor": "World.Gravity",
              "kind": "field",
              "doc": "Gravity is the constant acceleration applied to dynamic bodies each step.\nNewWorld initializes it to (0, -9.81, 0)."
            },
            {
              "name": "SolverIterations",
              "anchor": "World.SolverIterations",
              "kind": "field",
              "doc": "SolverIterations is the number of velocity and positional solver passes\nper Step; values <= 0 default to 8."
            },
            {
              "name": "OnContact",
              "anchor": "World.OnContact",
              "kind": "field",
              "doc": "OnContact is invoked deterministically for non-trigger ContactEvents\n(ContactEnter, ContactStay, ContactExit)."
            },
            {
              "name": "OnTrigger",
              "anchor": "World.OnTrigger",
              "kind": "field",
              "doc": "OnTrigger is invoked deterministically for trigger ContactEvents\n(ContactEnter, ContactStay, ContactExit)."
            },
            {
              "name": "OnJointBreak",
              "anchor": "World.OnJointBreak",
              "kind": "field",
              "doc": "OnJointBreak is invoked deterministically for each joint broken during\nWorld.Step in joint insertion order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewWorld",
              "anchor": "NewWorld",
              "decl": "func NewWorld() *World",
              "doc": "NewWorld returns a World with standard Y-up gravity (0, -9.81, 0) and 8\nsolver iterations.\n",
              "file": "pkg/physics3d/world.go",
              "line": 420
            }
          ],
          "methods": [
            {
              "name": "AddBody",
              "anchor": "World.AddBody",
              "recv": "*World",
              "decl": "func (w *World) AddBody(b Body) *Body",
              "doc": "AddBody copies b into w, normalizes its ID, reassigning an explicit ID that is already taken,, orientation, mass, and inertia\nfields, and returns a pointer to the stored body.\n",
              "file": "pkg/physics3d/world.go",
              "line": 431
            },
            {
              "name": "AddGLTFColliders",
              "anchor": "World.AddGLTFColliders",
              "recv": "*World",
              "decl": "func (w *World) AddGLTFColliders(doc *gltf.Document, opts GLTFColliderOptions) (*GLTFColliders, error)",
              "doc": "AddGLTFColliders builds static colliders from doc and adds them to w.\n",
              "file": "pkg/physics3d/gltf_colliders.go",
              "line": 599
            },
            {
              "name": "AddHeightfield",
              "anchor": "World.AddHeightfield",
              "recv": "*World",
              "decl": "func (w *World) AddHeightfield(hf *HeightfieldCollider) *HeightfieldCollider",
              "doc": "AddHeightfield registers a static HeightfieldCollider in w and returns it.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 1222
            },
            {
              "name": "AddJoint",
              "anchor": "World.AddJoint",
              "recv": "*World",
              "decl": "func (w *World) AddJoint(j Joint3D) Joint3D",
              "doc": "AddJoint registers j in w so it is solved during World.Step and returns j.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 132
            },
            {
              "name": "AddTriMesh",
              "anchor": "World.AddTriMesh",
              "recv": "*World",
              "decl": "func (w *World) AddTriMesh(tm *TriMeshCollider) *TriMeshCollider",
              "doc": "AddTriMesh registers a static TriMeshCollider in w and returns it.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 1178
            },
            {
              "name": "AddVoxelCollider",
              "anchor": "World.AddVoxelCollider",
              "recv": "*World",
              "decl": "func (w *World) AddVoxelCollider(vc *VoxelCollider) *VoxelCollider",
              "doc": "AddVoxelCollider registers a static VoxelCollider in w and returns it.\nIf vc.Grid implements VoxelEditNotifier, edits to the grid automatically\nwake sleeping bodies near changed blocks.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 952
            },
            {
              "name": "AllowCollision",
              "anchor": "World.AllowCollision",
              "recv": "*World",
              "decl": "func (w *World) AllowCollision(a, b *Body)",
              "doc": "AllowCollision re-enables collision and trigger detection between bodies a and b\nif previously disabled with IgnoreCollision.\n",
              "file": "pkg/physics3d/layers_triggers.go",
              "line": 486
            },
            {
              "name": "AreaEffectAtShape",
              "anchor": "World.AreaEffectAtShape",
              "recv": "*World",
              "decl": "func (w *World) AreaEffectAtShape(shape Shape, layer, mask LayerMask) AreaEffect",
              "doc": "AreaEffectAtShape resolves all active trigger areas in w overlapping shape\n(filtered by layer and mask) using w.Gravity as the base gravity.\n",
              "file": "pkg/physics3d/area.go",
              "line": 191
            },
            {
              "name": "Bodies",
              "anchor": "World.Bodies",
              "recv": "*World",
              "decl": "func (w *World) Bodies() []*Body",
              "doc": "Bodies returns the bodies currently in w in deterministic insertion order.\n",
              "file": "pkg/physics3d/world.go",
              "line": 602
            },
            {
              "name": "Checksum",
              "anchor": "World.Checksum",
              "recv": "*World",
              "decl": "func (w *World) Checksum() uint64",
              "doc": "Checksum returns a deterministic 64-bit FNV-1a hash of w's complete state,\nincluding private solver caches, sleep timers, previous poses, active\ncontacts, joints, and colliders.\n",
              "file": "pkg/physics3d/snapshot.go",
              "line": 1365
            },
            {
              "name": "ContactEvents",
              "anchor": "World.ContactEvents",
              "recv": "*World",
              "decl": "func (w *World) ContactEvents() []ContactEvent",
              "doc": "ContactEvents returns the deterministic slice of ContactEvents produced by\nthe most recent World.Step (and any subsequent RemoveBody exit events).\n",
              "file": "pkg/physics3d/layers_triggers.go",
              "line": 468
            },
            {
              "name": "GenerateCoverPoints",
              "anchor": "World.GenerateCoverPoints",
              "recv": "*World",
              "decl": "func (w *World) GenerateCoverPoints(opts CoverOptions) []ai.CoverPoint",
              "doc": "GenerateCoverPoints generates deterministic XZ-plane cover points along the vertical faces of\nmatching colliders in w, discarding points that overlap any other matching collider.\n",
              "file": "pkg/physics3d/cover.go",
              "line": 38
            },
            {
              "name": "GravityAt",
              "anchor": "World.GravityAt",
              "recv": "*World",
              "decl": "func (w *World) GravityAt(p Vec3) Vec3",
              "doc": "GravityAt returns the effective gravity acceleration at world point p in w,\ncombining w.Gravity with any overlapping active trigger areas.\n",
              "file": "pkg/physics3d/area.go",
              "line": 172
            },
            {
              "name": "Heightfields",
              "anchor": "World.Heightfields",
              "recv": "*World",
              "decl": "func (w *World) Heightfields() []*HeightfieldCollider",
              "doc": "Heightfields returns all static HeightfieldColliders registered in w.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 1261
            },
            {
              "name": "IgnoreCollision",
              "anchor": "World.IgnoreCollision",
              "recv": "*World",
              "decl": "func (w *World) IgnoreCollision(a, b *Body)",
              "doc": "IgnoreCollision disables collision and trigger detection between bodies a and b.\n",
              "file": "pkg/physics3d/layers_triggers.go",
              "line": 473
            },
            {
              "name": "JointBreakEvents",
              "anchor": "World.JointBreakEvents",
              "recv": "*World",
              "decl": "func (w *World) JointBreakEvents() []JointBreakEvent",
              "doc": "JointBreakEvents returns the deterministic slice of JointBreakEvents produced\nby the most recent World.Step, in joint insertion order.\n",
              "file": "pkg/physics3d/world.go",
              "line": 1569
            },
            {
              "name": "Joints",
              "anchor": "World.Joints",
              "recv": "*World",
              "decl": "func (w *World) Joints() []Joint3D",
              "doc": "Joints returns all joints currently registered in w in insertion order.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 160
            },
            {
              "name": "OverlapLayer",
              "anchor": "World.OverlapLayer",
              "recv": "*World",
              "decl": "func (w *World) OverlapLayer(shape Shape, mask LayerMask) []OverlapHit",
              "doc": "OverlapLayer returns every body, triangle mesh, heightfield, and voxel\ncollider in w whose Layer matches mask and overlaps shape, in deterministic\ninsertion order. Each hit's Contact.Normal points from the collider toward shape.\nFor compound bodies, every overlapping child matching mask is reported in\nascending child-index order with its zero-based ChildIndex.\n",
              "file": "pkg/physics3d/layers_triggers.go",
              "line": 350
            },
            {
              "name": "QueryOverlap",
              "anchor": "World.QueryOverlap",
              "recv": "*World",
              "decl": "func (w *World) QueryOverlap(shape Shape) []OverlapHit",
              "doc": "QueryOverlap returns every body and static collider in w overlapping shape,\nin deterministic insertion order. Each hit's Contact.Normal points from the\ncollider toward shape.\n",
              "file": "pkg/physics3d/world.go",
              "line": 633
            },
            {
              "name": "Raycast",
              "anchor": "World.Raycast",
              "recv": "*World",
              "decl": "func (w *World) Raycast(from, to Vec3) []RaycastHit",
              "doc": "Raycast casts a segment from from to to against all bodies and static\ncolliders in w and returns all hits sorted by ascending T in [0, 1].\n",
              "file": "pkg/physics3d/world.go",
              "line": 620
            },
            {
              "name": "RaycastFirst",
              "anchor": "World.RaycastFirst",
              "recv": "*World",
              "decl": "func (w *World) RaycastFirst(from, to Vec3) (RaycastHit, bool)",
              "doc": "RaycastFirst casts a segment from from to to against all bodies and static\ncolliders in w and returns the closest hit, if any.\n",
              "file": "pkg/physics3d/world.go",
              "line": 626
            },
            {
              "name": "RaycastFirstLayer",
              "anchor": "World.RaycastFirstLayer",
              "recv": "*World",
              "decl": "func (w *World) RaycastFirstLayer(from, to Vec3, mask LayerMask) (RaycastHit, bool)",
              "doc": "RaycastFirstLayer casts a segment from from to to against all bodies, triangle\nmeshes, heightfields, and voxel colliders whose Layer matches mask, returning\nthe closest hit. For compound bodies, ChildIndex reports the struck child.\n",
              "file": "pkg/physics3d/layers_triggers.go",
              "line": 244
            },
            {
              "name": "RaycastLayer",
              "anchor": "World.RaycastLayer",
              "recv": "*World",
              "decl": "func (w *World) RaycastLayer(from, to Vec3, mask LayerMask) []RaycastHit",
              "doc": "RaycastLayer casts a segment from from to to against all bodies, triangle\nmeshes, heightfields, and voxel colliders whose Layer matches mask, returning\nhits sorted by ascending T in [0, 1] with deterministic tie-breaking.\nFor compound bodies, every child matching mask is tested and reported with\nits zero-based ChildIndex.\n",
              "file": "pkg/physics3d/layers_triggers.go",
              "line": 163
            },
            {
              "name": "RemoveBody",
              "anchor": "World.RemoveBody",
              "recv": "*World",
              "decl": "func (w *World) RemoveBody(id int) bool",
              "doc": "RemoveBody removes the body with the given ID, preserving deterministic order\nof the remaining bodies, emitting ContactExit events for any active overlaps,\nremoving joints attached to the body, and waking dynamic bodies so supported\nstacks react.\n",
              "file": "pkg/physics3d/world.go",
              "line": 569
            },
            {
              "name": "RemoveHeightfield",
              "anchor": "World.RemoveHeightfield",
              "recv": "*World",
              "decl": "func (w *World) RemoveHeightfield(id int) bool",
              "doc": "RemoveHeightfield removes the heightfield collider with the given ID from w.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 1248
            },
            {
              "name": "RemoveJoint",
              "anchor": "World.RemoveJoint",
              "recv": "*World",
              "decl": "func (w *World) RemoveJoint(j Joint3D) bool",
              "doc": "RemoveJoint removes j from w.\n",
              "file": "pkg/physics3d/joints.go",
              "line": 148
            },
            {
              "name": "RemoveTriMesh",
              "anchor": "World.RemoveTriMesh",
              "recv": "*World",
              "decl": "func (w *World) RemoveTriMesh(id int) bool",
              "doc": "RemoveTriMesh removes the triangle-mesh collider with the given ID from w.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 1204
            },
            {
              "name": "RemoveVoxelCollider",
              "anchor": "World.RemoveVoxelCollider",
              "recv": "*World",
              "decl": "func (w *World) RemoveVoxelCollider(id int) bool",
              "doc": "RemoveVoxelCollider removes the VoxelCollider with the given ID from w and\nwakes dynamic bodies so supported objects react.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 978
            },
            {
              "name": "Restore",
              "anchor": "World.Restore",
              "recv": "*World",
              "decl": "func (w *World) Restore(snap WorldSnapshot) error",
              "doc": "Restore replaces w's state from snap. Existing *Body, Joint3D, and collider\npointers are reused in place by ID/slot when possible so external handles\n(such as vehicle chassis pointers) and World callbacks stay valid across\nrollback restores.\n",
              "file": "pkg/physics3d/snapshot.go",
              "line": 1089
            },
            {
              "name": "Save",
              "anchor": "World.Save",
              "recv": "*World",
              "decl": "func (w *World) Save() WorldSnapshot",
              "doc": "Save captures a deep, deterministic, JSON-serializable snapshot of w,\nincluding all private solver state (warm-start impulse cache, sleep timers,\nprevious poses, active contact/trigger pairs, joint state, and colliders).\n",
              "file": "pkg/physics3d/snapshot.go",
              "line": 881
            },
            {
              "name": "ShapeCast",
              "anchor": "World.ShapeCast",
              "recv": "*World",
              "decl": "func (w *World) ShapeCast(shape Shape, origin Vec3, rot Quat, delta Vec3) (RaycastHit, bool)",
              "doc": "ShapeCast sweeps shape placed at (origin, rot) along displacement delta against all bodies,\ntriangle meshes, heightfields, and voxel colliders in w, returning the earliest hit.\nTies break deterministically in the same order as RaycastFirst (Body, TriMesh, Heightfield,\nVoxel, then ascending ID).\n",
              "file": "pkg/physics3d/shapecast.go",
              "line": 27
            },
            {
              "name": "ShapeCastAll",
              "anchor": "World.ShapeCastAll",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastAll(shape Shape, origin Vec3, rot Quat, delta Vec3) []RaycastHit",
              "doc": "ShapeCastAll sweeps shape placed at (origin, rot) along displacement delta against all bodies,\ntriangle meshes, heightfields, and voxel colliders in w, returning all hits (at most one\nearliest hit per body or collider, or per matching child of a compound body with its\nzero-based ChildIndex) sorted by ascending T with deterministic tie-breaking.\n",
              "file": "pkg/physics3d/shapecast.go",
              "line": 35
            },
            {
              "name": "ShapeCastAllLayer",
              "anchor": "World.ShapeCastAllLayer",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastAllLayer(shape Shape, origin Vec3, rot Quat, delta Vec3, mask LayerMask, ignore *Body) []RaycastHit",
              "doc": "ShapeCastAllLayer sweeps shape placed at (origin, rot) along displacement delta against bodies\nand static colliders whose Layer matches mask, optionally ignoring ignore, and returns all\nhits sorted by ascending T with deterministic tie-breaking. Passing mask == 0 returns nil.\n",
              "file": "pkg/physics3d/shapecast.go",
              "line": 52
            },
            {
              "name": "ShapeCastAllWith",
              "anchor": "World.ShapeCastAllWith",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastAllWith(shape Shape, origin Vec3, rot Quat, delta Vec3, opts ShapeCastOptions) []RaycastHit",
              "doc": "ShapeCastAllWith sweeps shape placed at (origin, rot) along displacement delta with filtering\nconfigured by opts, returning all hits sorted by ascending T. A zero opts.LayerMask defaults to LayerAll.\n",
              "file": "pkg/physics3d/shapecast.go",
              "line": 70
            },
            {
              "name": "ShapeCastLayer",
              "anchor": "World.ShapeCastLayer",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastLayer(shape Shape, origin Vec3, rot Quat, delta Vec3, mask LayerMask, ignore *Body) (RaycastHit, bool)",
              "doc": "ShapeCastLayer sweeps shape placed at (origin, rot) along displacement delta against bodies\nand static colliders whose Layer matches mask, optionally ignoring ignore, and returns the\nearliest hit. Passing mask == 0 matches no colliders (matching RaycastFirstLayer).\n",
              "file": "pkg/physics3d/shapecast.go",
              "line": 42
            },
            {
              "name": "ShapeCastWith",
              "anchor": "World.ShapeCastWith",
              "recv": "*World",
              "decl": "func (w *World) ShapeCastWith(shape Shape, origin Vec3, rot Quat, delta Vec3, opts ShapeCastOptions) (RaycastHit, bool)",
              "doc": "ShapeCastWith sweeps shape placed at (origin, rot) along displacement delta with filtering\nconfigured by opts, returning the earliest hit. A zero opts.LayerMask defaults to LayerAll.\n",
              "file": "pkg/physics3d/shapecast.go",
              "line": 61
            },
            {
              "name": "Step",
              "anchor": "World.Step",
              "recv": "*World",
              "decl": "func (w *World) Step(dt time.Duration)",
              "doc": "Step advances the rigid-body simulation by dt using symplectic Euler\nintegration, deterministic collision detection, warm-started iterative\nimpulse resolution with Coulomb friction, 3D joint solving, positional\ncorrection, and deterministic contact/trigger event dispatch.\n",
              "file": "pkg/physics3d/world.go",
              "line": 641
            },
            {
              "name": "SyncBroadphase",
              "anchor": "World.SyncBroadphase",
              "recv": "*World",
              "decl": "func (w *World) SyncBroadphase()",
              "doc": "SyncBroadphase refreshes the broadphase acceleration structure for any bodies\nwhose Pos, Rot, Shape, Static, or IsTrigger fields were mutated directly\nsince the last World.Step. AddBody, RemoveBody, AddTriMesh, RemoveTriMesh,\nAddHeightfield, RemoveHeightfield, Restore, and Step maintain the broadphase\nautomatically.\n",
              "file": "pkg/physics3d/world.go",
              "line": 611
            },
            {
              "name": "TriMeshes",
              "anchor": "World.TriMeshes",
              "recv": "*World",
              "decl": "func (w *World) TriMeshes() []*TriMeshCollider",
              "doc": "TriMeshes returns all static TriMeshColliders registered in w.\n",
              "file": "pkg/physics3d/mesh_heightfield.go",
              "line": 1217
            },
            {
              "name": "VoxelColliders",
              "anchor": "World.VoxelColliders",
              "recv": "*World",
              "decl": "func (w *World) VoxelColliders() []*VoxelCollider",
              "doc": "VoxelColliders returns all static VoxelColliders registered in w.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 991
            },
            {
              "name": "WakeInBox",
              "anchor": "World.WakeInBox",
              "recv": "*World",
              "decl": "func (w *World) WakeInBox(bounds Box)",
              "doc": "WakeInBox wakes every sleeping dynamic body whose world bounds overlap\nbounds, and transitively wakes any sleeping dynamic bodies currently resting\non them via active contacts.\n",
              "file": "pkg/physics3d/voxel.go",
              "line": 998
            }
          ]
        },
        {
          "name": "WorldSnapshot",
          "anchor": "WorldSnapshot",
          "decl": "type WorldSnapshot struct {\n\tVersion          int                       `json:\"version\"`\n\tGravity          Vec3                      `json:\"gravity\"`\n\tSolverIterations int                       `json:\"solverIterations\"`\n\tNextID           int                       `json:\"nextID\"`\n\tNextColliderID   int                       `json:\"nextColliderID\"`\n\tBodies           []BodySnapshot            `json:\"bodies,omitempty\"`\n\tWarmStartCache   []CachedImpulseSnapshot   `json:\"warmStartCache,omitempty\"`\n\tActiveContacts   []ActiveContactSnapshot   `json:\"activeContacts,omitempty\"`\n\tContactEvents    []ContactEventSnapshot    `json:\"contactEvents,omitempty\"`\n\tJointBreakEvents []JointBreakEventSnapshot `json:\"jointBreakEvents,omitempty\"`\n\tIgnoredPairs     []PairKeySnapshot         `json:\"ignoredPairs,omitempty\"`\n\tJoints           []JointSnapshot           `json:\"joints,omitempty\"`\n\tTriMeshes        []TriMeshSnapshot         `json:\"triMeshes,omitempty\"`\n\tHeightfields     []HeightfieldSnapshot     `json:\"heightfields,omitempty\"`\n\tVoxels           []VoxelColliderSnapshot   `json:\"voxels,omitempty\"`\n}",
          "doc": "WorldSnapshot captures the complete deterministic state of a physics3d.World,\nincluding all bodies, sleep timers, previous poses, warm-start contact cache,\nactive contacts, contact/joint-break events, ignored pairs, joints and their\nprivate solver state, and static colliders. It marshals cleanly with encoding/json.\n",
          "file": "pkg/physics3d/snapshot.go",
          "line": 314,
          "members": [
            {
              "name": "Version",
              "anchor": "WorldSnapshot.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Gravity",
              "anchor": "WorldSnapshot.Gravity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SolverIterations",
              "anchor": "WorldSnapshot.SolverIterations",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NextID",
              "anchor": "WorldSnapshot.NextID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NextColliderID",
              "anchor": "WorldSnapshot.NextColliderID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bodies",
              "anchor": "WorldSnapshot.Bodies",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WarmStartCache",
              "anchor": "WorldSnapshot.WarmStartCache",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveContacts",
              "anchor": "WorldSnapshot.ActiveContacts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ContactEvents",
              "anchor": "WorldSnapshot.ContactEvents",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "JointBreakEvents",
              "anchor": "WorldSnapshot.JointBreakEvents",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IgnoredPairs",
              "anchor": "WorldSnapshot.IgnoredPairs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Joints",
              "anchor": "WorldSnapshot.Joints",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriMeshes",
              "anchor": "WorldSnapshot.TriMeshes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Heightfields",
              "anchor": "WorldSnapshot.Heightfields",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Voxels",
              "anchor": "WorldSnapshot.Voxels",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx",
      "name": "pixelfx",
      "dir": "pkg/pixelfx",
      "page": "pkg/pixelfx",
      "synopsis": "Package pixelfx is a Go port of pixelfx (https://github.com/patch-gg/pixelfx), a library of pixel art effects and animations, each a small procedural program: fire, explosions, magic, weather, UI, pickups, transitions, critters, and character moves acted out with wind-up, hit-stop and recovery.",
      "doc": "Package pixelfx is a Go port of pixelfx (https://github.com/patch-gg/pixelfx), a library of pixel art effects and animations, each a small procedural program: fire, explosions, magic, weather, UI, pickups, transitions, critters, and character moves acted out with wind-up, hit-stop and recovery. A game built on NSGo can play, recolor and mirror them at run time and export them as sprite sheets, with no JavaScript.\n\nThis package is pixelfx's core: the Frame an effect draws into (opaque color plus additive light, put together by Composite), the Painter it draws with (dots, lines, discs, rings, glows, sprites, pixel text, placed, mirrored and rotated for it), seeded randomness and noise (Rng, Hash, Noise), closed-form particles for loops (Cycle, Stream) and simulated ones (Particles, Bits, Lights, Blazes), and the acting system: a 3D skeleton drawn to pixels (Rig, Pose), its acts (Act, Perform) and chains of effects played as one move (Chain).\n\nEffects live in one subpackage per category, such as pixelfx/fire, which registers its effects as \"<category>/<name>\" when imported, so a game links only the categories it imports. Play one with NewPlayer, draw it each frame into a Frame, and show the frame with Image and View, or render it to a sprite sheet with Render and Frames.Sheet, which sprite.LoadAtlas reads; the game pixelfx command does that from the command line.\n\nThe port follows pixelfx at commit 5294518ce7c72e48b6100a744596e0acf57f2826 with the same math in float64, in the same order, so it draws the same pixels: every category's tests compare its effects with pixelfx's own frames. The code is under pixelfx's MIT license (LICENSE, NOTICE.md).\n",
      "consts": [
        {
          "idents": [
            {
              "name": "Gravity",
              "anchor": "Gravity"
            }
          ],
          "decl": "const Gravity = 950",
          "doc": "Gravity is the simulation's gravity, in px/s².\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "SkinNone",
              "anchor": "SkinNone"
            }
          ],
          "decl": "const SkinNone = \"none\"",
          "doc": "SkinNone, as a Hit's Skin, clears the target's skin.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 56
        },
        {
          "idents": [
            {
              "name": "Tau",
              "anchor": "Tau"
            }
          ],
          "decl": "const Tau = math.Pi * 2",
          "doc": "Tau is a full turn in radians.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 10
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "White",
              "anchor": "White"
            },
            {
              "name": "Black",
              "anchor": "Black"
            },
            {
              "name": "Ink",
              "anchor": "Ink"
            },
            {
              "name": "Patch",
              "anchor": "Patch"
            }
          ],
          "decl": "var (\n\tWhite = Hex(\"#ffffff\")\n\tBlack = Hex(\"#000000\")\n\tInk   = Hex(\"#0b0a10\")\n\tPatch = Hex(\"#f53cd1\")\n)",
          "doc": "Colors pixelfx's effects share.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 160
        },
        {
          "idents": [
            {
              "name": "Backdrops",
              "anchor": "Backdrops"
            }
          ],
          "decl": "var Backdrops = []string{\"dark\", \"ground\", \"sky\", \"light\", \"black\"}",
          "doc": "Backdrops are the kinds Backdrop draws.\n",
          "file": "pkg/pixelfx/scene.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "DummyPal",
              "anchor": "DummyPal"
            }
          ],
          "decl": "var DummyPal = palette(map[rune]string{\n\t'k': \"#0e0c14\", 'A': \"#e4e6ec\", 'B': \"#b6b9c3\", 'C': \"#868995\", 'D': \"#5c5e6a\", 'E': \"#6e707c\", 'F': \"#4b4d58\", 'G': \"#34353f\", 'J': \"#2a2b33\", 'm': \"#f53cd1\",\n})",
          "doc": "DummyPal holds the dummy's colors: a neutral shell that lets any effect's colors do the talking, near and far limbs, dark bands at the joints, a small mark.\n",
          "file": "pkg/pixelfx/actor.go",
          "line": 44
        },
        {
          "idents": [
            {
              "name": "Ease",
              "anchor": "Ease"
            }
          ],
          "decl": "var Ease = struct {\n\tLinear, InQuad, OutQuad, InOutQuad, InCubic, OutCubic, InOutCubic, InQuart, OutQuart, InExpo, OutExpo, InSine, OutSine, InOutSine, InBack, OutBack, OutElastic, OutBounce func(t float64) float64\n}{\n\tLinear:  func(t float64) float64 { return t },\n\tInQuad:  func(t float64) float64 { return t * t },\n\tOutQuad: func(t float64) float64 { return 1 - (1-t)*(1-t) },\n\tInOutQuad: func(t float64) float64 {\n\t\tif t < 0.5 {\n\t\t\treturn 2 * t * t\n\t\t}\n\t\treturn 1 - math.Pow(-2*t+2, 2)/2\n\t},\n\tInCubic:  func(t float64) float64 { return t * t * t },\n\tOutCubic: func(t float64) float64 { return 1 - math.Pow(1-t, 3) },\n\tInOutCubic: func(t float64) float64 {\n\t\tif t < 0.5 {\n\t\t\treturn 4 * t * t * t\n\t\t}\n\t\treturn 1 - math.Pow(-2*t+2, 3)/2\n\t},\n\tInQuart:  func(t float64) float64 { return t * t * t * t },\n\tOutQuart: func(t float64) float64 { return 1 - math.Pow(1-t, 4) },\n\tInExpo: func(t float64) float64 {\n\t\tif t <= 0 {\n\t\t\treturn 0\n\t\t}\n\t\treturn math.Pow(2, 10*t-10)\n\t},\n\tOutExpo: func(t float64) float64 {\n\t\tif t >= 1 {\n\t\t\treturn 1\n\t\t}\n\t\treturn 1 - math.Pow(2, -10*t)\n\t},\n\tInSine:    func(t float64) float64 { return 1 - math.Cos((t*math.Pi)/2) },\n\tOutSine:   func(t float64) float64 { return math.Sin((t * math.Pi) / 2) },\n\tInOutSine: func(t float64) float64 { return -(math.Cos(math.Pi*t) - 1) / 2 },\n\tInBack:    func(t float64) float64 { return InBack(t, 1.70158) },\n\tOutBack:   func(t float64) float64 { return OutBack(t, 1.70158) },\n\tOutElastic: func(t float64) float64 {\n\t\tif t <= 0 {\n\t\t\treturn 0\n\t\t}\n\t\tif t >= 1 {\n\t\t\treturn 1\n\t\t}\n\t\treturn math.Pow(2, -10*t)*math.Sin((t*10-0.75)*((2*pi)/3)) + 1\n\t},\n\tOutBounce: func(t float64) float64 {\n\t\tconst n, d = 7.5625, 2.75\n\t\tif t < 1/d {\n\t\t\treturn n * t * t\n\t\t}\n\t\tif t < 2/d {\n\t\t\tt -= 1.5 / d\n\t\t\treturn n*t*t + 0.75\n\t\t}\n\t\tif t < 2.5/d {\n\t\t\tt -= 2.25 / d\n\t\t\treturn n*t*t + 0.9375\n\t\t}\n\t\tt -= 2.625 / d\n\t\treturn n*t*t + 0.984375\n\t},\n}",
          "doc": "Easing curves: input 0..1, output 0..1 (back and elastic overshoot).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 154
        },
        {
          "idents": [
            {
              "name": "FireRamp",
              "anchor": "FireRamp"
            }
          ],
          "decl": "var FireRamp = Ramp(\"#ffffff\", \"#fff3a6\", \"#ffe26b\", \"#ffc23d\", \"#ff8a2a\", \"#f2561d\", \"#c9281f\", \"#8a1f17\", \"#4a1712\")",
          "doc": "FireRamp runs from white-hot to smouldering, the ramp a Fire particle walks down.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "Fonts",
              "anchor": "Fonts"
            }
          ],
          "decl": "var Fonts = map[string]*Font{\n\t\"mini\": {H: 5, Space: 2, Gap: 1, Glyphs: buildFont(miniGlyphs, 5)},\n\t\"big\":  {H: 7, Space: 3, Gap: 1, Glyphs: buildFont(bigGlyphs, 7)},\n}",
          "doc": "Fonts are pixelfx's two in-code pixel fonts, \"mini\" (3x5) and \"big\" (5x7).\n",
          "file": "pkg/pixelfx/font.go",
          "line": 89
        },
        {
          "idents": [
            {
              "name": "Hero",
              "anchor": "Hero"
            }
          ],
          "decl": "var Hero = []string{\n\t\"....kkkkk...\",\n\t\"..kkhhhhhk..\",\n\t\".khhhhhhhhk.\",\n\t\".khhhhhhhhhk\",\n\t\".khhssssshhk\",\n\t\".khsessesshk\",\n\t\".khsessesshk\",\n\t\"..ksssssssk.\",\n\t\"...kkSSSkk..\",\n\t\"..kttttttk..\",\n\t\".kttTttTttk.\",\n\t\".ksttTTttsk.\",\n\t\".kstttttttk.\",\n\t\"..kbbbbbbk..\",\n\t\"..kppkkppk..\",\n\t\"..kppk.kppk.\",\n\t\"..kppk.kppk.\",\n\t\"..koook.kook\",\n\t\"..kkkkk.kkkk\",\n}",
          "doc": "Hero is the stock character at 12 x 19 px.\n",
          "file": "pkg/pixelfx/actor.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "Hero2",
              "anchor": "Hero2"
            }
          ],
          "decl": "var Hero2 = []string{\n\t\"...........kkk..........\",\n\t\"..........kAABk.........\",\n\t\".........kAAABJk........\",\n\t\".........kABBJJk........\",\n\t\".........kBBBJCDk.......\",\n\t\".........kBCJDDDk.......\",\n\t\".........kkJJJDk........\",\n\t\".......kkkkABBJCkk......\",\n\t\"......kAABCJBCCCkDk.....\",\n\t\"......kABBCJCCCmDkDk....\",\n\t\"......kBBCDDJCDDDkDk....\",\n\t\"......kABCDJDDDDDkk.....\",\n\t\".....kAABDkDDDDJkk......\",\n\t\".....kABCDkDDJJGkk......\",\n\t\".....kABCkJJJGGGkk......\",\n\t\"....kJJCDkFFFGGGk.......\",\n\t\"....kAJJDkJJJGGGk.......\",\n\t\"....kJCJJkABBJGGk.......\",\n\t\".....kJCCkBBCDJJJk......\",\n\t\".....kCCCJBBCDJJDk......\",\n\t\".....kCCCDJCCDkJDDk.....\",\n\t\"......kCDDJBCDkDDDk.....\",\n\t\".......kDJJJCDkDDDkk....\",\n\t\".......kJBCJCDkDDDkk....\",\n\t\".......kBDJBCDkCDDkk....\",\n\t\"........kJJBCDkCDDk.....\",\n\t\"........kBBBCDkCCDDk....\",\n\t\"........kBBBCDkCCDDk....\",\n\t\".........kBBCDkJDDDk....\",\n\t\"........kBJJJJkCJJJk....\",\n\t\"........kBBCCDkCCDDk....\",\n\t\"........kBBCDDkCDDk.....\",\n\t\"........kBBCDkCCDDk.....\",\n\t\"........kBCCDkCCDDk.....\",\n\t\"........kBCDDkCDDDk.....\",\n\t\".......kJBCJkkkDJkkkk...\",\n\t\".......kAJJAAAAkCCCCCk..\",\n\t\"........kkkkkkkkkkkkk...\",\n}",
          "doc": "Hero2 is the same character at twice the size (24 x 38), standing easy: the rest pose of the rig, baked.\n",
          "file": "pkg/pixelfx/actor.go",
          "line": 49
        },
        {
          "idents": [
            {
              "name": "HeroPal",
              "anchor": "HeroPal"
            }
          ],
          "decl": "var HeroPal = palette(map[rune]string{\n\t'k': \"#17121f\", 'h': \"#7a4128\", 's': \"#f3c49d\", 'S': \"#c98b6c\", 'e': \"#17121f\",\n\t't': \"#5f6f94\", 'T': \"#46536f\", 'b': \"#8a5a32\", 'p': \"#38334a\", 'o': \"#6a4030\",\n\t'H': \"#a35d34\", 'w': \"#ffffff\", 'm': \"#a3564a\", 'g': \"#e8c060\", 'L': \"#7f90b6\", 'O': \"#8f5a3f\", 'P': \"#4b4560\",\n\t'c': \"#f53cd1\", 'C': \"#ff8fe6\", 'D': \"#a31f8a\",\n})",
          "doc": "HeroPal holds Hero's colors, and those of the larger character's extra detail and scarf.\n",
          "file": "pkg/pixelfx/actor.go",
          "line": 36
        },
        {
          "idents": [
            {
              "name": "Pal",
              "anchor": "Pal"
            }
          ],
          "decl": "var Pal = map[string][]string{\n\t\"fire\":     {\"#1f0b10\", \"#4a1118\", \"#8c1d1c\", \"#cc3a1a\", \"#f2701f\", \"#ffae35\", \"#ffe27a\", \"#fff8d6\"},\n\t\"ember\":    {\"#1a0a0e\", \"#3d1012\", \"#701a14\", \"#a8301a\", \"#e0561e\", \"#ff8a2a\", \"#ffc46a\"},\n\t\"lava\":     {\"#14060a\", \"#380a10\", \"#6e1210\", \"#ac2410\", \"#e8501a\", \"#ff8c2a\", \"#ffd25a\"},\n\t\"smoke\":    {\"#0e0c12\", \"#1d1a22\", \"#2e2a35\", \"#433e4b\", \"#5c5664\", \"#7b7484\", \"#a39cab\"},\n\t\"dust\":     {\"#1c1610\", \"#33281c\", \"#4f3f2c\", \"#6e5a40\", \"#927a58\", \"#b89f78\", \"#dcc8a2\"},\n\t\"ice\":      {\"#0c1430\", \"#162c5c\", \"#1f4f94\", \"#2f7fcc\", \"#58b4ec\", \"#9bdcff\", \"#d8f4ff\", \"#ffffff\"},\n\t\"water\":    {\"#081830\", \"#0e2e5a\", \"#14508c\", \"#1c76bc\", \"#36a2e0\", \"#78ccf4\", \"#c4ecff\", \"#ffffff\"},\n\t\"electric\": {\"#0a0f2e\", \"#172a78\", \"#2550d0\", \"#3f8cff\", \"#7cc8ff\", \"#c8f0ff\", \"#ffffff\"},\n\t\"volt\":     {\"#24160a\", \"#5e3a0c\", \"#a8680f\", \"#e8a218\", \"#ffd23c\", \"#fff08a\", \"#ffffff\"},\n\t\"poison\":   {\"#0d1a0c\", \"#173a14\", \"#265e18\", \"#3f8a1e\", \"#6cb82a\", \"#a8e04a\", \"#e0ff8a\"},\n\t\"holy\":     {\"#2a1c08\", \"#5a3e10\", \"#9a6c18\", \"#d8a428\", \"#ffd84a\", \"#fff09a\", \"#fffbe6\", \"#ffffff\"},\n\t\"heal\":     {\"#08201a\", \"#0f3f2c\", \"#17663e\", \"#24924e\", \"#3ec466\", \"#7ee88a\", \"#c8ffc4\", \"#ffffff\"},\n\t\"arcane\":   {\"#140a26\", \"#2b1252\", \"#481c88\", \"#6b2cc0\", \"#9a48ec\", \"#c684ff\", \"#ecc8ff\", \"#ffffff\"},\n\t\"shadow\":   {\"#050308\", \"#0f0a18\", \"#1c1230\", \"#2c1a4a\", \"#432468\", \"#5e3290\", \"#8048b8\", \"#a970e0\"},\n\t\"blood\":    {\"#14040a\", \"#3a0a14\", \"#6a101c\", \"#a01824\", \"#d42a30\", \"#ff5a50\", \"#ff9a8a\"},\n\t\"earth\":    {\"#140e0a\", \"#2a1e14\", \"#47321e\", \"#69492a\", \"#8e6638\", \"#b88a52\", \"#dcb47c\"},\n\t\"stone\":    {\"#0e0e12\", \"#1c1c24\", \"#2c2c38\", \"#42424f\", \"#5c5c6b\", \"#7d7d8c\", \"#a4a4b2\", \"#d0d0da\"},\n\t\"gold\":     {\"#1e1206\", \"#4a2c08\", \"#86520c\", \"#c48412\", \"#f0b424\", \"#ffe066\", \"#fff6c4\", \"#ffffff\"},\n\t\"leaf\":     {\"#0c1a0e\", \"#163418\", \"#225224\", \"#357530\", \"#4f9a3a\", \"#7cc048\", \"#b4e070\", \"#e4ffb0\"},\n\t\"wood\":     {\"#160c06\", \"#2e1a0c\", \"#4a2c14\", \"#6a421e\", \"#8e5c2c\", \"#b47c40\", \"#d8a464\"},\n\t\"metal\":    {\"#0c0e14\", \"#1c2230\", \"#2e3648\", \"#4a5468\", \"#6e7a90\", \"#9aa6ba\", \"#d0d8e6\", \"#ffffff\"},\n\t\"bone\":     {\"#1a1814\", \"#3a352c\", \"#5e5648\", \"#8a806c\", \"#b8ad96\", \"#e4dcc8\", \"#fffaf0\"},\n\t\"neon\":     {\"#1a0516\", \"#3d0a33\", \"#701560\", \"#b0228f\", \"#f53cd1\", \"#ff86e6\", \"#ffd2f6\", \"#ffffff\"},\n\t\"cyber\":    {\"#041418\", \"#08303a\", \"#0c5260\", \"#108088\", \"#18b4b0\", \"#4ce8d8\", \"#b4fff0\", \"#ffffff\"},\n\t\"matrix\":   {\"#020a04\", \"#05200c\", \"#0a3c16\", \"#106624\", \"#1a9a34\", \"#3cd650\", \"#a4ffa8\", \"#e8ffe8\"},\n\t\"candy\":    {\"#ff4a5a\", \"#ff9a2a\", \"#ffe03c\", \"#5ad84a\", \"#3cc8ff\", \"#7a6cff\", \"#f53cd1\"},\n\t\"night\":    {\"#07060d\", \"#0c0a18\", \"#131026\", \"#1b1734\", \"#241f44\", \"#2f2956\"},\n}",
          "doc": "Pal holds pixelfx's hue-shifted ramps as hex colors, dark to bright: shadows lean cool or deep, highlights lean warm or white. Effects take a palette option, so any of these (or your own) can recolor them.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 120
        },
        {
          "idents": [
            {
              "name": "Ramps",
              "anchor": "Ramps"
            }
          ],
          "decl": "var Ramps = func() map[string][]uint32 {\n\tout := make(map[string][]uint32, len(Pal))\n\tfor k, v := range Pal {\n\t\tout[k] = Ramp(v...)\n\t}\n\treturn out\n}()",
          "doc": "Ramps holds the ramps of Pal as colors.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 151
        },
        {
          "idents": [
            {
              "name": "Ready",
              "anchor": "Ready"
            }
          ],
          "decl": "var Ready = Pose{}.With(Crouch.Is(3), FX.Is(11), FY.Is(-21), BX.Is(9), BY.Is(-21), FFX.Is(7), FBX.Is(-7))",
          "doc": "Ready is the stance acts start from. A pose only says what differs from standing easy (Stand), in screen terms, px from the feet, y negative up; Pose says what each key does.\n",
          "file": "pkg/pixelfx/actor.go",
          "line": 180
        },
        {
          "idents": [
            {
              "name": "Skins",
              "anchor": "Skins"
            }
          ],
          "decl": "var Skins = map[string]Skin{\n\t\"flash\":  {tpWhite, 1},\n\t\"char\":   {Hex(\"#1a0c0e\"), 0.72},\n\t\"ice\":    {Hex(\"#a8e8ff\"), 0.72},\n\t\"shadow\": {Hex(\"#3a1a70\"), 0.5},\n\t\"holy\":   {Hex(\"#fff4c0\"), 0.5},\n\t\"red\":    {Hex(\"#ff2040\"), 0.45},\n\t\"shock\":  {Hex(\"#8fd6ff\"), 0.6},\n\t\"poison\": {Hex(\"#58c43a\"), 0.5},\n}",
          "doc": "Skins are the looks a hit can leave on the target, by name; \"flash\" is the white flash every hit gives.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 308
        },
        {
          "idents": [
            {
              "name": "SmokeRamp",
              "anchor": "SmokeRamp"
            }
          ],
          "decl": "var SmokeRamp = Ramp(\"#7b6f72\", \"#5d5660\", \"#433d48\", \"#2b2630\", \"#1a171e\")",
          "doc": "SmokeRamp runs from fresh smoke to thin, the ramp a Smoke particle walks down.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "Stand",
              "anchor": "Stand"
            }
          ],
          "decl": "var Stand = Pose{}.With(Lean.Is(0), Crouch.Is(0), Yaw.Is(0), FX.Is(-3), FY.Is(-15), BX.Is(5), BY.Is(-15), FFX.Is(-2), FFY.Is(-4), FBX.Is(3), FBY.Is(-4))",
          "doc": "Stand is standing easy, in screen terms: hands and feet are where they should end up, y negative is up.\n",
          "file": "pkg/pixelfx/pose.go",
          "line": 174
        },
        {
          "idents": [
            {
              "name": "Weapons",
              "anchor": "Weapons"
            }
          ],
          "decl": "var Weapons = map[string]*Weapon{\n\t\"sword\": {Two: -4.4, HasTwo: true, Draw: func(T *Hand, q Pose, _ [3]float64) {\n\t\tend := -2.6\n\t\tif q.on(Two) {\n\t\t\tend = -6.5\n\t\t}\n\t\thaft(T, end, 2.2, steel[\"grip\"], steel[\"gripD\"], 0.8)\n\t\tfor k := -1.4; k <= 1.4; k += 0.4 {\n\t\t\tT.Put(end-0.4, k, steel[\"gold\"], 0)\n\t\t}\n\t\tfor k := -4.6; k <= 4.6; k += 0.4 {\n\t\t\tT.Put(2.6, k, pick2(math.Abs(k) > 3.8, steel[\"goldD\"], steel[\"gold\"]), 0)\n\t\t\tT.Put(3, k, steel[\"goldD\"], 0)\n\t\t}\n\t\tblade(T, 3.2, 25, 2.2)\n\t}},\n\t\"greatsword\": {Two: -4.8, HasTwo: true, Draw: func(T *Hand, _ Pose, _ [3]float64) {\n\t\thaft(T, -7.2, 2.2, steel[\"grip\"], steel[\"gripD\"], 0.8)\n\t\tfor k := -1.8; k <= 1.8; k += 0.4 {\n\t\t\tT.Put(-7.6, k, steel[\"gold\"], 0)\n\t\t}\n\t\tfor k := -6.6; k <= 6.6; k += 0.4 {\n\t\t\tT.Put(2.6, k, pick2(math.Abs(k) > 5.6, steel[\"goldD\"], steel[\"gold\"]), 0)\n\t\t\tT.Put(3, k, steel[\"goldD\"], 0)\n\t\t}\n\t\tblade(T, 3.2, 31, 3)\n\t\tfor i := 4.0; i <= 28; i += 0.4 {\n\t\t\tT.Put(i, 0, steel[\"b\"], 0)\n\t\t}\n\t}},\n\t\"dagger\": {Draw: func(T *Hand, _ Pose, _ [3]float64) {\n\t\thaft(T, -2.4, 1.8, steel[\"grip\"], steel[\"gripD\"], 0.8)\n\t\tfor k := -2.6; k <= 2.6; k += 0.4 {\n\t\t\tT.Put(2.2, k, steel[\"goldD\"], 0)\n\t\t}\n\t\tblade(T, 2.6, 10, 1.3)\n\t}},\n\t\"spear\": {Two: -12, HasTwo: true, Draw: func(T *Hand, _ Pose, _ [3]float64) {\n\t\thaft(T, -18, 36, steel[\"wood\"], steel[\"woodD\"], 0.5)\n\t\tblade(T, 36, 11, 2)\n\t\tfor k := -2.4; k <= 2.4; k += 0.4 {\n\t\t\tT.Put(36, k, steel[\"goldD\"], 0)\n\t\t}\n\t}},\n\t\"hammer\": {Two: -7, HasTwo: true, Draw: func(T *Hand, _ Pose, _ [3]float64) {\n\t\tfor _, lift := range [3]float64{-0.8, 0, 0.8} {\n\t\t\tfor i := -10.0; i <= 18; i += 0.4 {\n\t\t\t\tfor k := -0.8; k <= 0.81; k += 0.4 {\n\t\t\t\t\tT.Put(i, k, pick2(k > 0.1, steel[\"woodD\"], steel[\"wood\"]), lift)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor i := 18.0; i <= 28; i += 0.4 {\n\t\t\tfor k := -9.0; k <= 9; k += 0.4 {\n\t\t\t\tvar face uint32\n\t\t\t\tswitch {\n\t\t\t\tcase math.Abs(k) > 7.4:\n\t\t\t\t\tface = pick2(k < 0, steel[\"a\"], steel[\"d\"])\n\t\t\t\tcase i < 20:\n\t\t\t\t\tface = steel[\"hi\"]\n\t\t\t\tcase i > 26.4:\n\t\t\t\t\tface = steel[\"d\"]\n\t\t\t\tcase math.Abs(k) < 2:\n\t\t\t\t\tface = steel[\"gold\"]\n\t\t\t\tdefault:\n\t\t\t\t\tface = steel[\"b\"]\n\t\t\t\t}\n\t\t\t\tT.Put(i, k, face, 4.5)\n\t\t\t\tT.Put(i, k, face, -4.5)\n\t\t\t\tif i < 18.4 || i > 27.6 || math.Abs(k) > 8.6 {\n\t\t\t\t\tfor l := -4.0; l <= 4; l += 0.4 {\n\t\t\t\t\t\tvar c uint32\n\t\t\t\t\t\tswitch {\n\t\t\t\t\t\tcase k < 0:\n\t\t\t\t\t\t\tc = steel[\"a\"]\n\t\t\t\t\t\tcase i > 27.6:\n\t\t\t\t\t\t\tc = steel[\"d\"]\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tc = steel[\"b\"]\n\t\t\t\t\t\t}\n\t\t\t\t\t\tT.Put(i, k, c, l)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}},\n\t\"scythe\": {Two: -11, HasTwo: true, Draw: func(T *Hand, _ Pose, _ [3]float64) {\n\t\thaft(T, -16, 31, steel[\"dark\"], steel[\"darkD\"], 0.5)\n\t\tfor j := 0.0; j <= 28; j += 0.4 {\n\t\t\tu := j / 28\n\t\t\tw, b := 3.2*(1-u)+0.3, 31.5-u*u*12\n\t\t\tfor k := -w; k <= w; k += 0.4 {\n\t\t\t\tvar c uint32\n\t\t\t\tswitch {\n\t\t\t\tcase k > w*0.3:\n\t\t\t\t\tc = steel[\"hi\"]\n\t\t\t\tcase k < -w*0.4:\n\t\t\t\t\tc = steel[\"d\"]\n\t\t\t\tdefault:\n\t\t\t\t\tc = steel[\"b\"]\n\t\t\t\t}\n\t\t\t\tT.Put(b+k, j+0.8, c, 0)\n\t\t\t}\n\t\t}\n\t}},\n\t\"claw\": {Draw: func(T *Hand, _ Pose, _ [3]float64) {\n\t\tfor _, q0 := range [3]float64{-2.4, 0, 2.4} {\n\t\t\tfor i := 2.0; i <= 9.5; i += 0.4 {\n\t\t\t\tu := (i - 2) / 7.5\n\t\t\t\tk := q0 + u*u*1.8\n\t\t\t\tT.Put(i, k, pick2(u > 0.55, steel[\"hi\"], steel[\"a\"]), 0)\n\t\t\t\tif u < 0.6 {\n\t\t\t\t\tT.Put(i, k+0.8, steel[\"d\"], 0)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}},\n\t\"bow\": {Across: true, Draw: func(T *Hand, q Pose, off [3]float64) {\n\t\tfor u := -1.0; u <= 1.001; u += 0.025 {\n\t\t\tk, i := u*17, 6*(1-u*u)-1\n\t\t\tT.Put(i, k, pick2(math.Abs(u) > 0.85, steel[\"goldD\"], steel[\"wood\"]), 0)\n\t\t\tT.Put(i+0.8, k, steel[\"woodD\"], 0)\n\t\t}\n\t\ttipA, tipB := vec(T.At(-1, -17)), vec(T.At(-1, 17))\n\t\tmid := vec(T.At(-1, 0))\n\t\tif q.on(Pull) {\n\t\t\tmid = vec(off)\n\t\t}\n\t\tT.line(tipA, mid, steel[\"a\"])\n\t\tT.line(tipB, mid, steel[\"a\"])\n\t\tif q.on(Nocked) {\n\t\t\tT.line(mid, vec(T.At(13, 0)), steel[\"wood\"])\n\t\t\tfor i := 9.0; i <= 13; i += 0.4 {\n\t\t\t\tfor k := -(13 - i) * 0.45; k <= (13-i)*0.45; k += 0.4 {\n\t\t\t\t\tT.Put(i, k, steel[\"hi\"], 0)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}},\n\t\"pistol\": {Across: true, Draw: func(T *Hand, _ Pose, _ [3]float64) {\n\t\tfor i := -1.0; i <= 9.5; i += 0.4 {\n\t\t\tfor k := -4.2; k <= -2.4; k += 0.4 {\n\t\t\t\tvar c uint32\n\t\t\t\tswitch {\n\t\t\t\tcase k < -3.6:\n\t\t\t\t\tc = steel[\"a\"]\n\t\t\t\tcase k > -2.9:\n\t\t\t\t\tc = steel[\"d\"]\n\t\t\t\tdefault:\n\t\t\t\t\tc = steel[\"b\"]\n\t\t\t\t}\n\t\t\t\tT.Put(i, k, c, 0)\n\t\t\t}\n\t\t}\n\t\tfor i := -1.2; i <= 1.2; i += 0.4 {\n\t\t\tfor k := -2.4; k <= 2.4; k += 0.4 {\n\t\t\t\tT.Put(i, k, steel[\"gripD\"], 0)\n\t\t\t}\n\t\t}\n\t\tT.Put(9, -4.6, steel[\"hi\"], 0)\n\t}},\n\t\"launcher\": {Two: -9, HasTwo: true, Draw: func(T *Hand, _ Pose, _ [3]float64) {\n\t\tfor i := -14.0; i <= 22; i += 0.4 {\n\t\t\tfor k := -6.0; k <= -1; k += 0.4 {\n\t\t\t\tvar c uint32\n\t\t\t\tswitch {\n\t\t\t\tcase k < -4.8:\n\t\t\t\t\tc = steel[\"oliveA\"]\n\t\t\t\tcase k > -2.2:\n\t\t\t\t\tc = steel[\"oliveD\"]\n\t\t\t\tcase math.Abs(i-3) < 1.4:\n\t\t\t\t\tc = steel[\"gold\"]\n\t\t\t\tdefault:\n\t\t\t\t\tc = steel[\"olive\"]\n\t\t\t\t}\n\t\t\t\tT.Put(i, k, c, 0)\n\t\t\t}\n\t\t}\n\t\tfor k := -6.8; k <= -0.2; k += 0.4 {\n\t\t\tT.Put(22.4, k, steel[\"b\"], 0)\n\t\t\tT.Put(-14.4, k, steel[\"d\"], 0)\n\t\t}\n\t}},\n\t\"handle\": {Draw: func(T *Hand, _ Pose, _ [3]float64) {\n\t\thaft(T, -2.6, 6, steel[\"grip\"], steel[\"gripD\"], 0.8)\n\t\tfor k := -1.6; k <= 1.6; k += 0.4 {\n\t\t\tT.Put(-3, k, steel[\"gold\"], 0)\n\t\t\tT.Put(6.4, k, steel[\"gold\"], 0)\n\t\t}\n\t}},\n}",
          "doc": "Weapons are what the character can hold, by name: the fist is at 0 along each.\n",
          "file": "pkg/pixelfx/rig.go",
          "line": 612
        }
      ],
      "funcs": [
        {
          "name": "ActFrameSize",
          "anchor": "ActFrameSize",
          "decl": "func ActFrameSize(e *Effect, rig *Rig) (w, h int, x, y float64)",
          "doc": "ActFrameSize returns the size of the frames EachActFrame renders and where the feet sit in them, with the act's bounds sampled by rig.\n",
          "file": "pkg/pixelfx/sheet.go",
          "line": 55
        },
        {
          "name": "ActSpan",
          "anchor": "ActSpan",
          "decl": "func ActSpan(e *Effect) (from, to float64)",
          "doc": "ActSpan returns when an act's poses begin and end, in effect time; a loop ends when it's told to (to is +Inf).\n",
          "file": "pkg/pixelfx/act.go",
          "line": 512
        },
        {
          "name": "AngleTo",
          "anchor": "AngleTo",
          "decl": "func AngleTo(x0, y0, x1, y1 float64) float64",
          "doc": "AngleTo returns the angle from (x0, y0) to (x1, y1) in radians.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 70
        },
        {
          "name": "At",
          "anchor": "At",
          "decl": "func At(r []uint32, t float64) uint32",
          "doc": "At returns the ramp step for t in 0..1, no blending: pixel art picks a color, it doesn't fade between two.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 108
        },
        {
          "name": "Backdrop",
          "anchor": "Backdrop",
          "decl": "func Backdrop(kind string, w, h, groundY int) []uint32",
          "doc": "Backdrop returns a backdrop as w x h colors. kind is \"dark\", \"ground\" (a stone floor from groundY down), \"sky\" (a night gradient with stars), \"light\" or \"black\"; any other kind is \"dark\".\n",
          "file": "pkg/pixelfx/scene.go",
          "line": 20
        },
        {
          "name": "Band",
          "anchor": "Band",
          "decl": "func Band(p *Painter, cx, cy, r, sy, th, k float64, ramp []uint32, keep func(ang float64) bool, hot bool)",
          "doc": "Band draws a ring on a tilted plane (sy squashes it: 0.16 lies on the floor, 1 stands up), th thick inward, at alpha k, colored by depth through the band with ramp (dark to bright; white at the outer edge when hot). keep(angle) picks which part to draw, so the far half can go behind things and the near half in front: func(g) bool { return math.Sin(g) < 0 } is the far half; nil draws all of it.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 761
        },
        {
          "name": "Blend",
          "anchor": "Blend",
          "decl": "func Blend(r []uint32, t float64) uint32",
          "doc": "Blend returns the color blended along a ramp at t (for light, where smooth is right).\n",
          "file": "pkg/pixelfx/color.go",
          "line": 113
        },
        {
          "name": "Blue",
          "anchor": "Blue",
          "decl": "func Blue(c uint32) uint32",
          "doc": "Blue returns c's blue channel.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 26
        },
        {
          "name": "Bolt",
          "anchor": "Bolt",
          "decl": "func Bolt(r *Rng, x0, y0, x1, y1, jag float64, depth int) [][2]float64",
          "doc": "Bolt returns a jagged lightning path from (x0, y0) to (x1, y1) by midpoint displacement, depth times over. jag is how far a midpoint may move sideways, as a share of the segment's length (pixelfx's defaults are 0.22 and 5).\n",
          "file": "pkg/pixelfx/shapes.go",
          "line": 10
        },
        {
          "name": "Bump",
          "anchor": "Bump",
          "decl": "func Bump(t, t0, t1 float64) float64",
          "doc": "Bump returns 0 → 1 → 0 over the window [t0, t1] (a sine bump).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 56
        },
        {
          "name": "Burst",
          "anchor": "Burst",
          "decl": "func Burst(n int, seed float64, fn func(r *Rng, i int))",
          "doc": "Burst calls fn for n one-shot particles, each with a repeatable generator (the same numbers every frame).\n",
          "file": "pkg/pixelfx/particles.go",
          "line": 28
        },
        {
          "name": "Chain",
          "anchor": "Chain",
          "decl": "func Chain(cues []Cue) func(o *Options) Instance",
          "doc": "Chain returns an effect's New for a list of cues.\n",
          "file": "pkg/pixelfx/chain.go",
          "line": 28
        },
        {
          "name": "Clamp",
          "anchor": "Clamp",
          "decl": "func Clamp(x float64) float64",
          "doc": "Clamp returns x held to [0, 1].\n",
          "file": "pkg/pixelfx/math.go",
          "line": 13
        },
        {
          "name": "ClampTo",
          "anchor": "ClampTo",
          "decl": "func ClampTo(x, a, b float64) float64",
          "doc": "ClampTo returns x held to [a, b].\n",
          "file": "pkg/pixelfx/math.go",
          "line": 16
        },
        {
          "name": "Composite",
          "anchor": "Composite",
          "decl": "func Composite(f *Frame, out []byte, bg []uint32, lightK float64) []byte",
          "doc": "Composite writes the frame's color over a background, plus its light scaled by lightK (1 is as drawn), into out as RGBA bytes, w * h * 4 of them, and returns it; a nil or short out is replaced by a new slice. bg is nil for transparency, one color for a flat background, or w * h colors. Over transparency, light becomes color with alpha (its brightest channel), which reads as additive over dark backgrounds. The bytes are straight (not premultiplied) alpha, as PNG stores them.\n",
          "file": "pkg/pixelfx/frame.go",
          "line": 38
        },
        {
          "name": "Crystal",
          "anchor": "Crystal",
          "decl": "func Crystal(p *Painter, x, base, h, w, lean float64, ramp []uint32, a float64, white bool, glint float64)",
          "doc": "Crystal draws a faceted crystal spike standing on (x, base), h tall, w wide at its base, leaning lean px at the tip, shaded in ramp (dark to bright, 6+ steps): a lit ridge, a bright left face, a darker right face, a dark rim. a is its alpha, white flashes it white, and glint (0..1 up its height, or -1 for none) sweeps a highlight.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 799
        },
        {
          "name": "Cycle",
          "anchor": "Cycle",
          "decl": "func Cycle(t, period float64, count int, seed float64, life func(g *Rng) float64, fn func(age, life float64, r *Rng, i int))",
          "doc": "Cycle runs particles that repeat every period seconds, for loops with no seam. Particle i is born at its own phase in the period and lives life(g) seconds (g is its own generator, already used once for its phase). For every live copy, fn(age, life, r, i) is called; r is a fresh generator for particle i, the same each period.\n",
          "file": "pkg/pixelfx/particles.go",
          "line": 40
        },
        {
          "name": "Dist",
          "anchor": "Dist",
          "decl": "func Dist(x0, y0, x1, y1 float64) float64",
          "doc": "Dist returns the distance between (x0, y0) and (x1, y1).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 67
        },
        {
          "name": "DrawActor",
          "anchor": "DrawActor",
          "decl": "func DrawActor(p *Painter, actor *Actor, a float64)",
          "doc": "DrawActor draws the stock actor with its feet at the painter's origin, at alpha a (dithered); nil draws the 12 x 19 one.\n",
          "file": "pkg/pixelfx/actor.go",
          "line": 165
        },
        {
          "name": "DrawScaled",
          "anchor": "DrawScaled",
          "decl": "func DrawScaled(d *core.Drawing, src core.ImageSource, x, y, scale float32)",
          "doc": "DrawScaled draws src at (x, y) scaled by scale with smoothing off, so pixel art stays crisp; src must say its Size.\n",
          "file": "pkg/pixelfx/view.go",
          "line": 43
        },
        {
          "name": "EachActFrame",
          "anchor": "EachActFrame",
          "decl": "func EachActFrame(e *Effect, o Options, fps int, fn func(i int, t, shakeX, shakeY float64, f *Frame))",
          "doc": "EachActFrame renders e acted out, the character and the target with it, the way pixelfx's act tool does: in a frame sized by ActFrameSize, at fps (60 when 0), from the first pose until the act is done or after 8 seconds (two loops for a loop), then 0.3 seconds more for a one-shot. fn gets each frame's index, the performance's time and shake, and the frame, which it must not keep.\n",
          "file": "pkg/pixelfx/sheet.go",
          "line": 61
        },
        {
          "name": "EachFrame",
          "anchor": "EachFrame",
          "decl": "func EachFrame(e *Effect, o Options, fps int, fn func(i int, f *Frame))",
          "doc": "EachFrame renders every frame of e the way pixelfx renders a sprite sheet, calling fn with each frame's index and the frame: e is placed at its meta's origin with o's flip, angle, light, actor and values, played at fps (its meta's when 0) for round(duration * fps) frames, one more for a one-shot so its last frame is its end, stepping 1/fps between them, with light eased out over the last 8 pixels of each edge unless it fills the screen. fn must not keep the frame, which is reused.\n",
          "file": "pkg/pixelfx/sheet.go",
          "line": 21
        },
        {
          "name": "EdgeFade",
          "anchor": "EdgeFade",
          "decl": "func EdgeFade(f *Frame, e int)",
          "doc": "EdgeFade eases the frame's light out over the last e pixels of each edge, in place, leaving color alone: a glow cut off by the canvas edge shows as a box once a frame sits in a game. pixelfx's sprite sheets fade 8 pixels.\n",
          "file": "pkg/pixelfx/frame.go",
          "line": 97
        },
        {
          "name": "Fbm",
          "anchor": "Fbm",
          "decl": "func Fbm(x, y, seed float64, octaves int) float64",
          "doc": "Fbm returns fractal 2D noise in about [-1, 1], octaves layers of Noise2 (pixelfx's default is 3).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 334
        },
        {
          "name": "Fit",
          "anchor": "Fit",
          "decl": "func Fit(r []uint32, n int) []uint32",
          "doc": "Fit resamples ramp r to exactly n steps, keeping its ends (the darkest and brightest stay put), so an effect can index steps by number whatever length of palette a caller passes. It returns r itself when it already has n steps, and nil when r is empty, since there is nothing to resample.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 92
        },
        {
          "name": "Fixed",
          "anchor": "Fixed",
          "decl": "func Fixed(life float64) func(g *Rng) float64",
          "doc": "Fixed returns a particle life that is always life seconds, for Cycle and Stream.\n",
          "file": "pkg/pixelfx/particles.go",
          "line": 35
        },
        {
          "name": "Flare",
          "anchor": "Flare",
          "decl": "func Flare(p *Painter, x, y, L, k float64, ramp []uint32)",
          "doc": "Flare draws an 8-ray flare: long rays on the axes, shorter between, fading out along their length. ramp runs dark to bright.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 729
        },
        {
          "name": "Fly",
          "anchor": "Fly",
          "decl": "func Fly(x, y, vx, vy, t, g, drag float64) (float64, float64)",
          "doc": "Fly returns where a particle is after t seconds, launched from (x, y) at (vx, vy) px/s, under gravity g (px/s², positive is down) and linear drag (1/s).\n",
          "file": "pkg/pixelfx/particles.go",
          "line": 10
        },
        {
          "name": "FlyV",
          "anchor": "FlyV",
          "decl": "func FlyV(vx, vy, t, g, drag float64) (float64, float64)",
          "doc": "FlyV returns a flying particle's velocity at t, for streaks that point along the motion.\n",
          "file": "pkg/pixelfx/particles.go",
          "line": 19
        },
        {
          "name": "Forks",
          "anchor": "Forks",
          "decl": "func Forks(r *Rng, path [][2]float64, o ForkOpts) [][][2]float64",
          "doc": "Forks returns branches off a bolt path, each a bolt of depth 3.\n",
          "file": "pkg/pixelfx/shapes.go",
          "line": 38
        },
        {
          "name": "Fract",
          "anchor": "Fract",
          "decl": "func Fract(x float64) float64",
          "doc": "Fract returns the fractional part of x, x - floor(x).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 41
        },
        {
          "name": "Green",
          "anchor": "Green",
          "decl": "func Green(c uint32) uint32",
          "doc": "Green returns c's green channel.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 23
        },
        {
          "name": "Hash",
          "anchor": "Hash",
          "decl": "func Hash(ns ...float64) uint32",
          "doc": "Hash returns a 32-bit integer hash of any number of integers; each is converted as JavaScript's n | 0 converts it.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 243
        },
        {
          "name": "Hex",
          "anchor": "Hex",
          "decl": "func Hex(h string) uint32",
          "doc": "Hex reads a color as ParseHex does (\"#rgb\", \"#rrggbb\", or \"#rrggbbaa\" with its alpha ignored) and panics on anything else: use it for colors written in code.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 52
        },
        {
          "name": "Hypot",
          "anchor": "Hypot",
          "decl": "func Hypot(x, y float64) float64",
          "doc": "Hypot returns sqrt(x*x + y*y) the way JavaScript's Math.hypot computes it, scaled by the larger value and summed with Kahan compensation, so a port gets the same last bit.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 73
        },
        {
          "name": "Hypot3",
          "anchor": "Hypot3",
          "decl": "func Hypot3(x, y, z float64) float64",
          "doc": "Hypot3 returns sqrt(x*x + y*y + z*z) the way JavaScript's Math.hypot computes it.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 76
        },
        {
          "name": "IDs",
          "anchor": "IDs",
          "decl": "func IDs() []string",
          "doc": "IDs returns the ids of every registered effect, sorted.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 384
        },
        {
          "name": "InBack",
          "anchor": "InBack",
          "decl": "func InBack(t, s float64) float64",
          "doc": "InBack is the back-in easing with overshoot s (1.70158 in Ease.InBack).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 221
        },
        {
          "name": "InvLerp",
          "anchor": "InvLerp",
          "decl": "func InvLerp(a, b, x float64) float64",
          "doc": "InvLerp returns how far x is from a to b, 0 when a and b are equal.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 30
        },
        {
          "name": "IsScreen",
          "anchor": "IsScreen",
          "decl": "func IsScreen(m *Meta) bool",
          "doc": "IsScreen reports whether an effect fills the screen (transitions, weather, impact frames): 16:9 and at least 320 wide. Its frames keep their light to the edge.\n",
          "file": "pkg/pixelfx/sheet.go",
          "line": 13
        },
        {
          "name": "Lerp",
          "anchor": "Lerp",
          "decl": "func Lerp(a, b, t float64) float64",
          "doc": "Lerp returns the point t of the way from a to b.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 27
        },
        {
          "name": "LoopNoise",
          "anchor": "LoopNoise",
          "decl": "func LoopNoise(phase, radius, seed float64) float64",
          "doc": "LoopNoise returns noise that loops: the same value at phase 0 and phase 1, for seamless loops (pixelfx's default radius is 1).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 376
        },
        {
          "name": "Luma",
          "anchor": "Luma",
          "decl": "func Luma(c uint32) float64",
          "doc": "Luma returns c's perceived brightness, 0..1.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 78
        },
        {
          "name": "Mix",
          "anchor": "Mix",
          "decl": "func Mix(a, b uint32, t float64) uint32",
          "doc": "Mix returns the linear mix of a and b, t (held to 0..1) of the way to b.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 66
        },
        {
          "name": "Ngon",
          "anchor": "Ngon",
          "decl": "func Ngon(cx, cy, r float64, n int, rot float64) [][2]float64",
          "doc": "Ngon returns the corners of a regular polygon with n sides, turned by rot.\n",
          "file": "pkg/pixelfx/shapes.go",
          "line": 69
        },
        {
          "name": "Noise",
          "anchor": "Noise",
          "decl": "func Noise(x, seed float64) float64",
          "doc": "Noise returns smooth 1D value noise in [-1, 1].\n",
          "file": "pkg/pixelfx/math.go",
          "line": 317
        },
        {
          "name": "Noise2",
          "anchor": "Noise2",
          "decl": "func Noise2(x, y, seed float64) float64",
          "doc": "Noise2 returns smooth 2D value noise in [-1, 1].\n",
          "file": "pkg/pixelfx/math.go",
          "line": 325
        },
        {
          "name": "OutBack",
          "anchor": "OutBack",
          "decl": "func OutBack(t, s float64) float64",
          "doc": "OutBack is the back-out easing with overshoot s (1.70158 in Ease.OutBack).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 232
        },
        {
          "name": "ParseHex",
          "anchor": "ParseHex",
          "decl": "func ParseHex(h string) (uint32, error)",
          "doc": "ParseHex reads \"#rgb\", \"#rrggbb\" or \"#rrggbbaa\" as an opaque color: the alpha of \"#rrggbbaa\" must be hex digits but is ignored, since every color here is opaque.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 29
        },
        {
          "name": "Pick",
          "anchor": "Pick",
          "decl": "func Pick[T any](r *Rng, list []T) T",
          "doc": "Pick returns one of list, chosen by r.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 309
        },
        {
          "name": "PingPong",
          "anchor": "PingPong",
          "decl": "func PingPong(x float64) float64",
          "doc": "PingPong returns x bounced between 0 and 1.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 64
        },
        {
          "name": "RGB",
          "anchor": "RGB",
          "decl": "func RGB(r, g, b float64) uint32",
          "doc": "RGB returns the opaque color (r, g, b); each channel is converted as JavaScript's x & 255 converts it, so fractions truncate.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 15
        },
        {
          "name": "Ramp",
          "anchor": "Ramp",
          "decl": "func Ramp(list ...string) []uint32",
          "doc": "Ramp returns a list of hex colors (dark to bright) as colors, panicking on a malformed one as Hex does.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 83
        },
        {
          "name": "Rand",
          "anchor": "Rand",
          "decl": "func Rand(ns ...float64) float64",
          "doc": "Rand returns a deterministic random number in [0, 1) from integers (seed, particle index, which value...).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 255
        },
        {
          "name": "RasterText",
          "anchor": "RasterText",
          "decl": "func RasterText(str, font string, plot func(x, y int))",
          "doc": "RasterText calls plot(x, y) for every inked pixel of str set in font (\"mini\" or \"big\"), with the top-left of the text at (0, 0).\n",
          "file": "pkg/pixelfx/font.go",
          "line": 138
        },
        {
          "name": "Red",
          "anchor": "Red",
          "decl": "func Red(c uint32) uint32",
          "doc": "Red returns c's red channel.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 20
        },
        {
          "name": "Register",
          "anchor": "Register",
          "decl": "func Register(id string, e *Effect)",
          "doc": "Register adds e to the registry as id, \"<category>/<name>\" such as \"fire/torch\", and sets e.ID. A category package registers its effects when it is imported. It panics when id is malformed or taken.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 361
        },
        {
          "name": "Remap",
          "anchor": "Remap",
          "decl": "func Remap(x, a0, a1, b0, b1 float64) float64",
          "doc": "Remap maps x from [a0, a1] to [b0, b1].\n",
          "file": "pkg/pixelfx/math.go",
          "line": 38
        },
        {
          "name": "Round",
          "anchor": "Round",
          "decl": "func Round(x float64) float64",
          "doc": "Round rounds x half up, as JavaScript's Math.round does: Round(-2.5) is -2.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 111
        },
        {
          "name": "Scale",
          "anchor": "Scale",
          "decl": "func Scale(c uint32, k float64) uint32",
          "doc": "Scale multiplies c's brightness by k.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 73
        },
        {
          "name": "Seg",
          "anchor": "Seg",
          "decl": "func Seg(t, t0, t1 float64) float64",
          "doc": "Seg returns the progress 0..1 of t through the window [t0, t1]: 0 before it, 1 after it.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 47
        },
        {
          "name": "Shortfall",
          "anchor": "Shortfall",
          "decl": "func Shortfall(pose Pose) float64",
          "doc": "Shortfall returns how far short of where the pose wants them the hands fall, in px: arms don't stretch.\n",
          "file": "pkg/pixelfx/rig.go",
          "line": 1065
        },
        {
          "name": "Sign",
          "anchor": "Sign",
          "decl": "func Sign(x float64) float64",
          "doc": "Sign returns -1, 0 or 1 by the sign of x, as JavaScript's Math.sign does.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 124
        },
        {
          "name": "Smooth",
          "anchor": "Smooth",
          "decl": "func Smooth(e0, e1, x float64) float64",
          "doc": "Smooth returns the Hermite smoothstep of x between e0 and e1.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 50
        },
        {
          "name": "Sparkle",
          "anchor": "Sparkle",
          "decl": "func Sparkle(p *Painter, x, y, arm float64, c, tip uint32, k float64)",
          "doc": "Sparkle draws a star glint: arms of length arm in color c with tips in tip, a white heart, light of strength k (pixelfx's defaults are tip c and k 0.6).\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 699
        },
        {
          "name": "Star",
          "anchor": "Star",
          "decl": "func Star(cx, cy, r0, r1 float64, n int, rot float64) [][2]float64",
          "doc": "Star returns the points of a star with n points between radii r1 (tips) and r0 (inner corners), turned by rot (pixelfx's defaults are 5 and -π/2).\n",
          "file": "pkg/pixelfx/shapes.go",
          "line": 55
        },
        {
          "name": "Stream",
          "anchor": "Stream",
          "decl": "func Stream(t, t0, t1, rate, seed float64, life func(g *Rng) float64, fn func(age, life float64, r *Rng, i int))",
          "doc": "Stream runs particles born at a steady rate (per second) between t0 and t1, an emitter that stops: fn(age, life, r, i) for every particle alive at t.\n",
          "file": "pkg/pixelfx/particles.go",
          "line": 53
        },
        {
          "name": "TextWidth",
          "anchor": "TextWidth",
          "decl": "func TextWidth(str, font string) int",
          "doc": "TextWidth returns the width in font pixels of str set in font (\"mini\" or \"big\"), before scaling.\n",
          "file": "pkg/pixelfx/font.go",
          "line": 103
        },
        {
          "name": "TileFbm",
          "anchor": "TileFbm",
          "decl": "func TileFbm(x, y, px, py, seed float64, octaves int) float64",
          "doc": "TileFbm returns fractal TileNoise: every octave keeps the repeat, so scrolled fields still loop.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 364
        },
        {
          "name": "TileNoise",
          "anchor": "TileNoise",
          "decl": "func TileNoise(x, y, px, py, seed float64) float64",
          "doc": "TileNoise returns 2D value noise whose lattice repeats every px cells in x and py cells in y (0: no repeat). Scroll it by exactly py cells over a loop and the loop has no seam: TileNoise(x, y+phase*py, 0, py, seed).\n",
          "file": "pkg/pixelfx/math.go",
          "line": 347
        },
        {
          "name": "ToHex",
          "anchor": "ToHex",
          "decl": "func ToHex(c uint32) string",
          "doc": "ToHex returns c as \"#rrggbb\", leaving out its alpha.\n",
          "file": "pkg/pixelfx/color.go",
          "line": 61
        },
        {
          "name": "ToInt32",
          "anchor": "ToInt32",
          "decl": "func ToInt32(x float64) int32",
          "doc": "ToInt32 converts x to a 32-bit integer the way JavaScript's x | 0 does: truncated toward zero and wrapped modulo 2^32, with NaN and infinities giving 0.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 135
        },
        {
          "name": "ToUint32",
          "anchor": "ToUint32",
          "decl": "func ToUint32(x float64) uint32",
          "doc": "ToUint32 converts x to an unsigned 32-bit integer the way JavaScript's x >>> 0 does.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 151
        },
        {
          "name": "Trail",
          "anchor": "Trail",
          "decl": "func Trail(pos func(t float64) [2]float64, t float64, n int, dt float64) [][2]float64",
          "doc": "Trail returns pos(t - i*dt) for i = 0..n-1, held at time 0: a moving thing's trail, newest first.\n",
          "file": "pkg/pixelfx/shapes.go",
          "line": 78
        },
        {
          "name": "Wrap",
          "anchor": "Wrap",
          "decl": "func Wrap(x, m float64) float64",
          "doc": "Wrap returns x modulo m, always on the sign of m.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 44
        }
      ],
      "types": [
        {
          "name": "Act",
          "anchor": "Act",
          "decl": "type Act struct {\n\tPoses   []Key\n\tHits    []Hit\n\tDust    []DustKick\n\tTargets []float64\n\tOnBody  bool\n\tFollow  Opt\n\tGhost   string\n}",
          "doc": "Act is how a character performs an effect: Poses over time, Hits, Dust, straw Targets at x along the floor (pixelfx's default is 66), OnBody when the effect paints the standing body so each body pixel must carry it into the pose, Follow how much the body's lean and crouch carry what the effect drew on it (1 when unsaid), and Ghost the color of its after-images (\"\" for the effect's own palette).\n",
          "file": "pkg/pixelfx/act.go",
          "line": 67,
          "members": [
            {
              "name": "Poses",
              "anchor": "Act.Poses",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hits",
              "anchor": "Act.Hits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dust",
              "anchor": "Act.Dust",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Targets",
              "anchor": "Act.Targets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnBody",
              "anchor": "Act.OnBody",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Follow",
              "anchor": "Act.Follow",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ghost",
              "anchor": "Act.Ghost",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Actor",
          "anchor": "Actor",
          "decl": "type Actor struct {\n\tMask   *Mask\n\tPixels []uint32\n\tX, Y   float64\n\tW, H   int\n\tK      int\n\tHead   [2]float64\n\tChest  [2]float64\n\tEyes   [][2]float64\n}",
          "doc": "Actor is a character an effect wraps, hits or sits behind, in local space with its feet at (0, 0): its Mask and its own Pixels (W x H, top-left at X, Y), its scale K, the top of its Head, its Chest, and, at scale 2, its Eyes (in the mask).\n",
          "file": "pkg/pixelfx/actor.go",
          "line": 138,
          "members": [
            {
              "name": "Mask",
              "anchor": "Actor.Mask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pixels",
              "anchor": "Actor.Pixels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "Actor.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Actor.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "Actor.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "Actor.H",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "K",
              "anchor": "Actor.K",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Head",
              "anchor": "Actor.Head",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Chest",
              "anchor": "Actor.Chest",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Eyes",
              "anchor": "Actor.Eyes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "StockActor",
              "anchor": "StockActor",
              "decl": "func StockActor(k int) *Actor",
              "doc": "StockActor returns the stock actor at scale k: 1 is 12 x 19 px, 2 is 24 x 38 px (any other k is 1). Each call returns a copy of its mask and pixels, so the caller may change them.\n",
              "file": "pkg/pixelfx/actor.go",
              "line": 150
            }
          ],
          "methods": []
        },
        {
          "name": "Align",
          "anchor": "Align",
          "decl": "type Align uint8",
          "doc": "Align is where text sits on its x.\n",
          "file": "pkg/pixelfx/painter.go",
          "line": 747,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AlignLeft",
                  "anchor": "AlignLeft"
                },
                {
                  "name": "AlignCenter",
                  "anchor": "AlignCenter"
                },
                {
                  "name": "AlignRight",
                  "anchor": "AlignRight"
                }
              ],
              "decl": "const (\n\t// AlignLeft starts the text at x.\n\tAlignLeft Align = iota\n\t// AlignCenter centers the text on x.\n\tAlignCenter\n\t// AlignRight ends the text at x.\n\tAlignRight\n)",
              "doc": "",
              "file": "pkg/pixelfx/painter.go",
              "line": 749
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Bit",
          "anchor": "Bit",
          "decl": "type Bit struct {\n\tKind            BitKind\n\tX, Y, VX, VY    float64\n\tA, VA, S        float64\n\tC               uint32\n\tRamp            []uint32\n\tG, Drag, Bounce float64\n\tLife, Max       float64\n\tRest            bool\n\tPts             []float64\n\tPVY             float64\n\tDusted          bool\n\tData            any\n}",
          "doc": "Bit is one piece of debris. S is its size, A and VA its angle and spin, C its color, Ramp a chunk's shading (dark to bright), G its gravity scale, Drag, Bounce and Life (seconds). Pts, PVY, Dusted and Data are left to the effect, for its own bookkeeping.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 523,
          "members": [
            {
              "name": "Kind",
              "anchor": "Bit.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "Bit.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Bit.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VX",
              "anchor": "Bit.VX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VY",
              "anchor": "Bit.VY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "A",
              "anchor": "Bit.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VA",
              "anchor": "Bit.VA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "S",
              "anchor": "Bit.S",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "C",
              "anchor": "Bit.C",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ramp",
              "anchor": "Bit.Ramp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "G",
              "anchor": "Bit.G",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Drag",
              "anchor": "Bit.Drag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounce",
              "anchor": "Bit.Bounce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Life",
              "anchor": "Bit.Life",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "Bit.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rest",
              "anchor": "Bit.Rest",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pts",
              "anchor": "Bit.Pts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PVY",
              "anchor": "Bit.PVY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dusted",
              "anchor": "Bit.Dusted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "Bit.Data",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BitKind",
          "anchor": "BitKind",
          "decl": "type BitKind int",
          "doc": "BitKind is a kind of debris.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 510,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Shard",
                  "anchor": "Shard"
                },
                {
                  "name": "Chunk",
                  "anchor": "Chunk"
                },
                {
                  "name": "Drip",
                  "anchor": "Drip"
                }
              ],
              "decl": "const (\n\tShard BitKind = iota\n\tChunk\n\tDrip\n)",
              "doc": "The debris kinds.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 513
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Bits",
          "anchor": "Bits",
          "decl": "type Bits struct {\n\tList   []Bit\n\tGround func(x float64) float64\n}",
          "doc": "Bits is rigid debris that tumbles, bounces and settles.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 539,
          "members": [
            {
              "name": "List",
              "anchor": "Bits.List",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ground",
              "anchor": "Bits.Ground",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBits",
              "anchor": "NewBits",
              "decl": "func NewBits(ground func(x float64) float64) *Bits",
              "doc": "NewBits returns no debris yet over ground (none when nil).\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 545
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Bits.Add",
              "recv": "*Bits",
              "decl": "func (bs *Bits) Add(b Bit)",
              "doc": "Add adds a piece of debris. Fields left zero take pixelfx's defaults: S 1, C White, G 1 and Life 1 (Kind is Shard, and the rest start at 0).\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 553
            },
            {
              "name": "Count",
              "anchor": "Bits.Count",
              "recv": "*Bits",
              "decl": "func (bs *Bits) Count() int",
              "doc": "Count returns how many pieces there are.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 571
            },
            {
              "name": "Draw",
              "anchor": "Bits.Draw",
              "recv": "*Bits",
              "decl": "func (bs *Bits) Draw(p *Painter)",
              "doc": "Draw draws every piece.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 611
            },
            {
              "name": "Update",
              "anchor": "Bits.Update",
              "recv": "*Bits",
              "decl": "func (bs *Bits) Update(dt float64)",
              "doc": "Update moves every piece on by dt seconds.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 574
            }
          ]
        },
        {
          "name": "Blaze",
          "anchor": "Blaze",
          "decl": "type Blaze struct {\n\tX, Y, Life, Max, Acc, Power float64\n}",
          "doc": "Blaze is a little fire burning where something landed.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 438,
          "members": [
            {
              "name": "X",
              "anchor": "Blaze.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Blaze.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Life",
              "anchor": "Blaze.Life",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "Blaze.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Acc",
              "anchor": "Blaze.Acc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Power",
              "anchor": "Blaze.Power",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Blazes",
          "anchor": "Blazes",
          "decl": "type Blazes struct {\n\tPS   *Particles\n\tList []Blaze\n}",
          "doc": "Blazes are little fires burning where something landed: Add feeds Fire puffs (and the odd ember) into a particle system, fading over its life; DrawBack adds a hot pixel and a glow at its foot.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 443,
          "members": [
            {
              "name": "PS",
              "anchor": "Blazes.PS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "List",
              "anchor": "Blazes.List",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBlazes",
              "anchor": "NewBlazes",
              "decl": "func NewBlazes(ps *Particles) *Blazes",
              "doc": "NewBlazes returns blazes feeding ps.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 449
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Blazes.Add",
              "recv": "*Blazes",
              "decl": "func (bs *Blazes) Add(x, y, life, power float64)",
              "doc": "Add starts a blaze at (x, y) burning life seconds at power.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 452
            },
            {
              "name": "Count",
              "anchor": "Blazes.Count",
              "recv": "*Blazes",
              "decl": "func (bs *Blazes) Count() int",
              "doc": "Count returns how many blazes are burning.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 457
            },
            {
              "name": "DrawBack",
              "anchor": "Blazes.DrawBack",
              "recv": "*Blazes",
              "decl": "func (bs *Blazes) DrawBack(p *Painter)",
              "doc": "DrawBack draws each blaze's hot foot and its glow.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 494
            },
            {
              "name": "Update",
              "anchor": "Blazes.Update",
              "recv": "*Blazes",
              "decl": "func (bs *Blazes) Update(dt float64)",
              "doc": "Update burns every blaze on by dt seconds.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 460
            }
          ]
        },
        {
          "name": "Bounds",
          "anchor": "Bounds",
          "decl": "type Bounds struct {\n\tX0, Y0, X1, Y1 float64\n}",
          "doc": "Bounds is a box in local space: X0, Y0 its top-left and X1, Y1 its bottom-right.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 1150,
          "members": [
            {
              "name": "X0",
              "anchor": "Bounds.X0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y0",
              "anchor": "Bounds.Y0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X1",
              "anchor": "Bounds.X1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y1",
              "anchor": "Bounds.Y1",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ActBounds",
              "anchor": "ActBounds",
              "decl": "func ActBounds(e *Effect, rig *Rig) Bounds",
              "doc": "ActBounds returns the box an act needs in local space, so nothing gets cut off, sampled over its poses with rig (a new one when nil); pass the same rig to Perform.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 1155
            }
          ],
          "methods": []
        },
        {
          "name": "Cue",
          "anchor": "Cue",
          "decl": "type Cue struct {\n\tFX       *Effect\n\tT, Until float64\n\tX, Y     float64\n\tXFn, YFn func(t float64) float64\n\tFlip     bool\n\tOptions  map[string]Value\n}",
          "doc": "Cue is one effect in a chain: FX starts at T (seconds into the move) and is cut off at Until (never when 0), at (X, Y) in local space, or at XFn(t), YFn(t) of the move's time when they are set, mirrored when Flip, with Options laid over the effect's own (its seed is the move's seed plus the cue's index).\n",
          "file": "pkg/pixelfx/chain.go",
          "line": 10,
          "members": [
            {
              "name": "FX",
              "anchor": "Cue.FX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "T",
              "anchor": "Cue.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Until",
              "anchor": "Cue.Until",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "Cue.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Cue.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "XFn",
              "anchor": "Cue.XFn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YFn",
              "anchor": "Cue.YFn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flip",
              "anchor": "Cue.Flip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Options",
              "anchor": "Cue.Options",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DustKick",
          "anchor": "DustKick",
          "decl": "type DustKick struct {\n\tT, X float64\n\tN    int\n\tDir  float64\n\tC    uint32\n}",
          "doc": "DustKick is dust kicked up at T: N specks (6 when 0) at X along the floor, flying Dir (-1 left, 1 right, 0 either way at random), in color C (pixelfx's dust colors when 0).\n",
          "file": "pkg/pixelfx/act.go",
          "line": 59,
          "members": [
            {
              "name": "T",
              "anchor": "DustKick.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "DustKick.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "N",
              "anchor": "DustKick.N",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dir",
              "anchor": "DustKick.Dir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "C",
              "anchor": "DustKick.C",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Effect",
          "anchor": "Effect",
          "decl": "type Effect struct {\n\tID         string\n\tMeta       Meta\n\tNew        func(o *Options) Instance\n\tAct        *Act\n\tActorAlpha func(t float64, o *Options) float64\n}",
          "doc": "Effect is one pixelfx effect: its ID (\"<category>/<name>\", set by Register), its Meta, New, which starts playing it with resolved options, and, for one a character acts out, its Act and ActorAlpha, how visible it wants the stand-in character at time t (fully when nil).\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 339,
          "members": [
            {
              "name": "ID",
              "anchor": "Effect.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Meta",
              "anchor": "Effect.Meta",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "New",
              "anchor": "Effect.New",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Act",
              "anchor": "Effect.Act",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActorAlpha",
              "anchor": "Effect.ActorAlpha",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Lookup",
              "anchor": "Lookup",
              "decl": "func Lookup(id string) (*Effect, bool)",
              "doc": "Lookup returns the effect registered as id.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 376
            }
          ],
          "methods": []
        },
        {
          "name": "Flag",
          "anchor": "Flag",
          "decl": "type Flag int",
          "doc": "Flag is a set of particle flags.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 53,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Smokes",
                  "anchor": "Smokes"
                },
                {
                  "name": "Big",
                  "anchor": "Big"
                },
                {
                  "name": "Back",
                  "anchor": "Back"
                }
              ],
              "decl": "const (\n\t// Smokes makes a Fire puff leave smoke when it dies.\n\tSmokes Flag = 1\n\t// Big makes smoke bigger and slower.\n\tBig Flag = 2\n\t// Back draws the particle behind a character.\n\tBack Flag = 4\n)",
              "doc": "The particle flags.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 56
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Font",
          "anchor": "Font",
          "decl": "type Font struct {\n\tH, Space, Gap int\n\tGlyphs        map[rune]Glyph\n}",
          "doc": "Font is a pixel font: H rows tall, Space wide for a character it lacks, Gap between characters.\n",
          "file": "pkg/pixelfx/font.go",
          "line": 64,
          "members": [
            {
              "name": "H",
              "anchor": "Font.H",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Space",
              "anchor": "Font.Space",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Gap",
              "anchor": "Font.Gap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Glyphs",
              "anchor": "Font.Glyphs",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ForkOpts",
          "anchor": "ForkOpts",
          "decl": "type ForkOpts struct {\n\tCount            int\n\tLen, Jag, Spread float64\n}",
          "doc": "ForkOpts are how Forks branches off a path: Count branches, each up to Len px long, with their own Jag and Spread (pixelfx's defaults are 3, 20, 0.3 and 0.9).\n",
          "file": "pkg/pixelfx/shapes.go",
          "line": 32,
          "members": [
            {
              "name": "Count",
              "anchor": "ForkOpts.Count",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Len",
              "anchor": "ForkOpts.Len",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Jag",
              "anchor": "ForkOpts.Jag",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spread",
              "anchor": "ForkOpts.Spread",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Frame",
          "anchor": "Frame",
          "decl": "type Frame struct {\n\tW, H   int\n\tOX, OY int\n\tColor  []uint32\n\tLight  []uint32\n\t// contains filtered or unexported fields\n}",
          "doc": "Frame is W x H pixels whose top-left sits at (OX, OY) in world space. Color holds opaque (or, from Painter.Blend, translucent) pixels and Light additive glow, both as colors; Composite puts them together. A frame is the same shape as Sprite Fusion's VFX frames.\n",
          "file": "pkg/pixelfx/frame.go",
          "line": 8,
          "members": [
            {
              "name": "W",
              "anchor": "Frame.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "Frame.H",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OX",
              "anchor": "Frame.OX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OY",
              "anchor": "Frame.OY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "Frame.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Light",
              "anchor": "Frame.Light",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFrame",
              "anchor": "NewFrame",
              "decl": "func NewFrame(w, h, ox, oy int) *Frame",
              "doc": "NewFrame returns a clear w x h frame with its top-left at (ox, oy).\n",
              "file": "pkg/pixelfx/frame.go",
              "line": 18
            }
          ],
          "methods": [
            {
              "name": "Clear",
              "anchor": "Frame.Clear",
              "recv": "*Frame",
              "decl": "func (f *Frame) Clear() *Frame",
              "doc": "Clear empties the frame's color and light.\n",
              "file": "pkg/pixelfx/frame.go",
              "line": 23
            },
            {
              "name": "Painter",
              "anchor": "Frame.Painter",
              "recv": "*Frame",
              "decl": "func (f *Frame) Painter() *Painter",
              "doc": "Painter returns the frame's painter, reset: one per frame, reused, as pixelfx's painterFor gives it.\n",
              "file": "pkg/pixelfx/frame.go",
              "line": 30
            }
          ]
        },
        {
          "name": "Frames",
          "anchor": "Frames",
          "decl": "type Frames struct {\n\tEffect *Effect\n\tW, H   int\n\tFPS    int\n\t// Pivot is where the effect's origin (or, acted out, the character's feet) sits in each frame.\n\tPivot [2]float64\n\t// Acted is true when the frames show the effect acted out.\n\tActed  bool\n\tPixels [][]byte\n}",
          "doc": "Frames are an effect rendered to RGBA pixels (straight alpha, W x H x 4 bytes each), ready for a sprite sheet.\n",
          "file": "pkg/pixelfx/sheet.go",
          "line": 99,
          "members": [
            {
              "name": "Effect",
              "anchor": "Frames.Effect",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "Frames.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "Frames.H",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FPS",
              "anchor": "Frames.FPS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pivot",
              "anchor": "Frames.Pivot",
              "kind": "field",
              "doc": "Pivot is where the effect's origin (or, acted out, the character's feet) sits in each frame."
            },
            {
              "name": "Acted",
              "anchor": "Frames.Acted",
              "kind": "field",
              "doc": "Acted is true when the frames show the effect acted out."
            },
            {
              "name": "Pixels",
              "anchor": "Frames.Pixels",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Render",
              "anchor": "Render",
              "decl": "func Render(e *Effect, o Options, fps int) *Frames",
              "doc": "Render renders every frame of e as EachFrame does.\n",
              "file": "pkg/pixelfx/sheet.go",
              "line": 111
            },
            {
              "name": "RenderAct",
              "anchor": "RenderAct",
              "decl": "func RenderAct(e *Effect, o Options, fps int) *Frames",
              "doc": "RenderAct renders e acted out as EachActFrame does, without the shake.\n",
              "file": "pkg/pixelfx/sheet.go",
              "line": 123
            }
          ],
          "methods": [
            {
              "name": "Sheet",
              "anchor": "Frames.Sheet",
              "recv": "*Frames",
              "decl": "func (fr *Frames) Sheet(name, image string) (*image.NRGBA, []byte, error)",
              "doc": "Sheet lays the frames out in a grid, as pixelfx's sheets do (about square, row by row), and returns the image and its Aseprite JSON, which sprite.LoadAtlas reads: frames named \"<name> <i>\" with their duration (1000 / fps ms, rounded) and their pivot at the effect's origin, one tag called name that plays them once for a one-shot or loops a loop, and pixelfx's meta (id, fps, loop, frame size, pivot, columns, and an act's timing). image is the file name the JSON gives the image.\n",
              "file": "pkg/pixelfx/sheet.go",
              "line": 202
            },
            {
              "name": "SheetPNG",
              "anchor": "Frames.SheetPNG",
              "recv": "*Frames",
              "decl": "func (fr *Frames) SheetPNG(name, image string) (pngData, jsonData []byte, err error)",
              "doc": "SheetPNG returns the sheet's image encoded as PNG with its JSON, as Sheet lays them out.\n",
              "file": "pkg/pixelfx/sheet.go",
              "line": 257
            }
          ]
        },
        {
          "name": "Funcs",
          "anchor": "Funcs",
          "decl": "type Funcs struct {\n\tUpdateFunc   func(dt float64)\n\tDrawBackFunc func(p *Painter, t float64)\n\tDrawFunc     func(p *Painter, t float64)\n}",
          "doc": "Funcs is an Instance made of functions; a nil one does nothing.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 311,
          "members": [
            {
              "name": "UpdateFunc",
              "anchor": "Funcs.UpdateFunc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawBackFunc",
              "anchor": "Funcs.DrawBackFunc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawFunc",
              "anchor": "Funcs.DrawFunc",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "Funcs.Draw",
              "recv": "*Funcs",
              "decl": "func (f *Funcs) Draw(p *Painter, t float64)",
              "doc": "Draw implements Instance.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 332
            },
            {
              "name": "DrawBack",
              "anchor": "Funcs.DrawBack",
              "recv": "*Funcs",
              "decl": "func (f *Funcs) DrawBack(p *Painter, t float64)",
              "doc": "DrawBack implements Instance.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 325
            },
            {
              "name": "Update",
              "anchor": "Funcs.Update",
              "recv": "*Funcs",
              "decl": "func (f *Funcs) Update(dt float64)",
              "doc": "Update implements Instance.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 318
            }
          ]
        },
        {
          "name": "Glyph",
          "anchor": "Glyph",
          "decl": "type Glyph struct {\n\tW    int\n\tRows [][]bool\n}",
          "doc": "Glyph is one character of a pixel font: W columns, and the rows of its inked pixels.\n",
          "file": "pkg/pixelfx/font.go",
          "line": 58,
          "members": [
            {
              "name": "W",
              "anchor": "Glyph.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "Glyph.Rows",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Hand",
          "anchor": "Hand",
          "decl": "type Hand struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Hand draws a held weapon along its handle from the fist: Put(i, k, c, lift) plots color c i px along the handle, k px across it and lift px off its plane, and At(i, k) returns that point.\n",
          "file": "pkg/pixelfx/rig.go",
          "line": 506,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "At",
              "anchor": "Hand.At",
              "recv": "*Hand",
              "decl": "func (T *Hand) At(i, k float64) [3]float64",
              "doc": "At returns the point i px along the handle and k px across it.\n",
              "file": "pkg/pixelfx/rig.go",
              "line": 530
            },
            {
              "name": "Put",
              "anchor": "Hand.Put",
              "recv": "*Hand",
              "decl": "func (T *Hand) Put(i, k float64, c uint32, lift float64)",
              "doc": "Put plots color c i px along the handle from the fist, k px across it and lift px out of its plane.\n",
              "file": "pkg/pixelfx/rig.go",
              "line": 513
            }
          ]
        },
        {
          "name": "Hit",
          "anchor": "Hit",
          "decl": "type Hit struct {\n\tT        float64\n\tStop     float64\n\tShake    float64\n\tAmp      Opt\n\tNoTarget bool\n\tAt       Opt\n\tPush     Opt\n\tStraw    Opt\n\tFlash    Opt\n\tY        Opt\n\tSkin     string\n\tShiver   float64\n}",
          "doc": "Hit is a moment of contact: at T, freeze for Stop seconds, shake Shake seconds by Amp px (2 when unsaid), and unless NoTarget, hit the targets (only target At when it is said): Push sways it (1.2 when unsaid), Straw pieces of straw fly (8), Flash flashes it white that long (0.05), Y is where on it they fly from (-26), Skin leaves a look on it (a name in Skins, SkinNone to clear it, \"\" to keep it) and Shiver shivers it that long.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 40,
          "members": [
            {
              "name": "T",
              "anchor": "Hit.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stop",
              "anchor": "Hit.Stop",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shake",
              "anchor": "Hit.Shake",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Amp",
              "anchor": "Hit.Amp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NoTarget",
              "anchor": "Hit.NoTarget",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "At",
              "anchor": "Hit.At",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Push",
              "anchor": "Hit.Push",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Straw",
              "anchor": "Hit.Straw",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flash",
              "anchor": "Hit.Flash",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Hit.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Skin",
              "anchor": "Hit.Skin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shiver",
              "anchor": "Hit.Shiver",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ShiftHits",
              "anchor": "ShiftHits",
              "decl": "func ShiftHits(hits []Hit, dt float64) []Hit",
              "doc": "ShiftHits reuses an act's hits in a longer move, later by dt.\n",
              "file": "pkg/pixelfx/chain.go",
              "line": 102
            }
          ],
          "methods": []
        },
        {
          "name": "Image",
          "anchor": "Image",
          "decl": "type Image struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Image holds a frame's picture as an NSGo image source: Set composites a frame over transparency into its pixels, premultiplied as core.ImageSource.Pixels wants them, and steps its version, so a core.Image, a canvas or a shader shows each new frame in place. The zero Image is ready to use.\n",
          "file": "pkg/pixelfx/view.go",
          "line": 10,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Set",
              "anchor": "Image.Set",
              "recv": "*Image",
              "decl": "func (im *Image) Set(f *Frame) core.ImageSource",
              "doc": "Set composites f into the image and returns its source.\n",
              "file": "pkg/pixelfx/view.go",
              "line": 17
            },
            {
              "name": "Source",
              "anchor": "Image.Source",
              "recv": "*Image",
              "decl": "func (im *Image) Source() core.ImageSource",
              "doc": "Source returns the image's source as last Set, the zero source before then.\n",
              "file": "pkg/pixelfx/view.go",
              "line": 34
            }
          ]
        },
        {
          "name": "Instance",
          "anchor": "Instance",
          "decl": "type Instance interface {\n\tUpdate(dt float64)\n\tDrawBack(p *Painter, t float64)\n\tDraw(p *Painter, t float64)\n}",
          "doc": "Instance is an effect being played: Update moves it on by dt seconds, DrawBack draws what goes behind a character and Draw what goes in front, both at the effect's own time t. Effects that are pure functions of t leave Update empty.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 304,
          "members": [
            {
              "name": "Update",
              "anchor": "Instance.Update",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "DrawBack",
              "anchor": "Instance.DrawBack",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Draw",
              "anchor": "Instance.Draw",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Key",
          "anchor": "Key",
          "decl": "type Key struct {\n\tT    float64\n\tPose Pose\n\tHow  string\n}",
          "doc": "Key is one key of an act's poses: at T seconds (effect time; negative is the wind-up before the effect starts) the character is in Pose, which How it arrives at: \"\" smoothly, \"out\" fast then settling, \"in\" slowly then fast, \"line\" evenly, \"snap\" holding the last pose and jumping on the key.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 33,
          "members": [
            {
              "name": "T",
              "anchor": "Key.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pose",
              "anchor": "Key.Pose",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "How",
              "anchor": "Key.How",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ShiftKeys",
              "anchor": "ShiftKeys",
              "decl": "func ShiftKeys(keys []Key, dt, dx float64, over Pose) []Key",
              "doc": "ShiftKeys reuses an act's keys in a longer move: later by dt, moved along by dx, with over laid over each pose.\n",
              "file": "pkg/pixelfx/chain.go",
              "line": 92
            }
          ],
          "methods": []
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind int",
          "doc": "Kind is a simulated particle's kind.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 34,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Spark",
                  "anchor": "Spark"
                },
                {
                  "name": "Mote",
                  "anchor": "Mote"
                },
                {
                  "name": "Streak",
                  "anchor": "Streak"
                },
                {
                  "name": "Flake",
                  "anchor": "Flake"
                },
                {
                  "name": "Vapour",
                  "anchor": "Vapour"
                },
                {
                  "name": "Dust",
                  "anchor": "Dust"
                },
                {
                  "name": "StarKind",
                  "anchor": "StarKind"
                },
                {
                  "name": "Ember",
                  "anchor": "Ember"
                },
                {
                  "name": "Smoke",
                  "anchor": "Smoke"
                },
                {
                  "name": "Fire",
                  "anchor": "Fire"
                },
                {
                  "name": "Brand",
                  "anchor": "Brand"
                },
                {
                  "name": "Grit",
                  "anchor": "Grit"
                }
              ],
              "decl": "const (\n\tSpark Kind = iota\n\tMote\n\tStreak\n\tFlake\n\tVapour\n\tDust\n\tStarKind\n\tEmber\n\tSmoke\n\tFire\n\tBrand\n\tGrit\n)",
              "doc": "The particle kinds.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 37
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Layer",
          "anchor": "Layer",
          "decl": "type Layer uint8",
          "doc": "Layer is which of an effect's layers is being drawn.\n",
          "file": "pkg/pixelfx/painter.go",
          "line": 20,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LayerBoth",
                  "anchor": "LayerBoth"
                },
                {
                  "name": "LayerBack",
                  "anchor": "LayerBack"
                },
                {
                  "name": "LayerFront",
                  "anchor": "LayerFront"
                }
              ],
              "decl": "const (\n\t// LayerBoth draws both layers, back then front.\n\tLayerBoth Layer = iota\n\t// LayerBack is what goes behind a character.\n\tLayerBack\n\t// LayerFront is what goes in front of a character.\n\tLayerFront\n)",
              "doc": "",
              "file": "pkg/pixelfx/painter.go",
              "line": 22
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LightSpot",
          "anchor": "LightSpot",
          "decl": "type LightSpot struct {\n\tX, Y, R   float64\n\tColor     uint32\n\tK         float64\n\tLife, Max float64\n}",
          "doc": "LightSpot is one light that flares and dies.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 663,
          "members": [
            {
              "name": "X",
              "anchor": "LightSpot.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "LightSpot.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "R",
              "anchor": "LightSpot.R",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "LightSpot.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "K",
              "anchor": "LightSpot.K",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Life",
              "anchor": "LightSpot.Life",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "LightSpot.Max",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Lights",
          "anchor": "Lights",
          "decl": "type Lights struct {\n\tList []LightSpot\n}",
          "doc": "Lights are lights that flare and die.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 671,
          "members": [
            {
              "name": "List",
              "anchor": "Lights.List",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "Lights.Add",
              "recv": "*Lights",
              "decl": "func (ls *Lights) Add(x, y, r float64, color uint32, k, life float64)",
              "doc": "Add adds a light at (x, y) of radius r and color, strength k, lasting life seconds.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 676
            },
            {
              "name": "Draw",
              "anchor": "Lights.Draw",
              "recv": "*Lights",
              "decl": "func (ls *Lights) Draw(p *Painter)",
              "doc": "Draw draws every light.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 691
            },
            {
              "name": "Update",
              "anchor": "Lights.Update",
              "recv": "*Lights",
              "decl": "func (ls *Lights) Update(dt float64)",
              "doc": "Update ages every light by dt seconds.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 681
            }
          ]
        },
        {
          "name": "Mask",
          "anchor": "Mask",
          "decl": "type Mask struct {\n\tW, H int\n\tData []uint8\n}",
          "doc": "Mask is a w x h stencil: a pixel is in it where Data is not 0.\n",
          "file": "pkg/pixelfx/painter.go",
          "line": 828,
          "members": [
            {
              "name": "W",
              "anchor": "Mask.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "Mask.H",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "Mask.Data",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Meta",
          "anchor": "Meta",
          "decl": "type Meta struct {\n\tName     string\n\tDesc     string\n\tTags     []string\n\tSize     [2]int\n\tOrigin   [2]int\n\tDuration float64\n\tLoop     bool\n\tFPS      int\n\tBG       string\n\tActor    int\n\tOptions  []Option\n}",
          "doc": "Meta is what an effect says about itself: its Name and Desc, Tags, its frame Size and the Origin in it that its local (0, 0) sits at, its Duration in seconds, whether it Loops, the FPS its sheets play at, the backdrop it previews on (BG: \"dark\", \"ground\", \"sky\", \"light\" or \"black\"), the stock Actor it is drawn on (0 none, 1 the 12 x 19 one, 2 the 24 x 38 one), and its Options with their defaults, in order.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 15,
          "members": [
            {
              "name": "Name",
              "anchor": "Meta.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Desc",
              "anchor": "Meta.Desc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "Meta.Tags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Size",
              "anchor": "Meta.Size",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Origin",
              "anchor": "Meta.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "Meta.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Loop",
              "anchor": "Meta.Loop",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FPS",
              "anchor": "Meta.FPS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BG",
              "anchor": "Meta.BG",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actor",
              "anchor": "Meta.Actor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Options",
              "anchor": "Meta.Options",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Default",
              "anchor": "Meta.Default",
              "recv": "*Meta",
              "decl": "func (m *Meta) Default(name string) (Value, bool)",
              "doc": "Default returns the default of the option called name and whether the effect has it.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 36
            }
          ]
        },
        {
          "name": "Opt",
          "anchor": "Opt",
          "decl": "type Opt struct {\n\tV   float64\n\tSet bool\n}",
          "doc": "Opt is a number that may be left unsaid, so it takes a default: the zero Opt is unsaid.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 16,
          "members": [
            {
              "name": "V",
              "anchor": "Opt.V",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Set",
              "anchor": "Opt.Set",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Val",
              "anchor": "Val",
              "decl": "func Val(x float64) Opt",
              "doc": "Val returns the Opt that says x.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 22
            }
          ],
          "methods": [
            {
              "name": "Or",
              "anchor": "Opt.Or",
              "recv": "Opt",
              "decl": "func (o Opt) Or(def float64) float64",
              "doc": "Or returns o's number, or def when it is unsaid.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 25
            }
          ]
        },
        {
          "name": "Option",
          "anchor": "Option",
          "decl": "type Option struct {\n\tName    string\n\tDefault Value\n}",
          "doc": "Option is one of an effect's options and its default.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 30,
          "members": [
            {
              "name": "Name",
              "anchor": "Option.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Default",
              "anchor": "Option.Default",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\tX, Y   float64\n\tFlip   bool\n\tAngle  float64\n\tLight  float64\n\tActor  *Actor\n\tValues map[string]Value\n}",
          "doc": "Options are how an effect is played: X and Y place its origin in frame space, Flip mirrors it, Angle turns it (radians), Light scales its glow (0 is read as 1; below 0 draws no light), Actor is the character it wraps (the stock one its meta names when nil), and Values are its own options by name, such as \"seed\" and \"palette\", over the defaults its meta gives.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 198,
          "members": [
            {
              "name": "X",
              "anchor": "Options.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Options.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flip",
              "anchor": "Options.Flip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Angle",
              "anchor": "Options.Angle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Light",
              "anchor": "Options.Light",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actor",
              "anchor": "Options.Actor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Values",
              "anchor": "Options.Values",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bool",
              "anchor": "Options.Bool",
              "recv": "*Options",
              "decl": "func (o *Options) Bool(name string) bool",
              "doc": "Bool returns the option called name as a bool: true when it is on (or a number that is not 0).\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 234
            },
            {
              "name": "Color",
              "anchor": "Options.Color",
              "recv": "*Options",
              "decl": "func (o *Options) Color(name string) uint32",
              "doc": "Color returns the color option called name, 0 when it is not a color.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 240
            },
            {
              "name": "Num",
              "anchor": "Options.Num",
              "recv": "*Options",
              "decl": "func (o *Options) Num(name string) float64",
              "doc": "Num returns the number option called name, 0 when it is not a number.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 225
            },
            {
              "name": "Numbers",
              "anchor": "Options.Numbers",
              "recv": "*Options",
              "decl": "func (o *Options) Numbers(name string) []float64",
              "doc": "Numbers returns the list-of-numbers option called name. Don't change what it returns.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 261
            },
            {
              "name": "Palette",
              "anchor": "Options.Palette",
              "recv": "*Options",
              "decl": "func (o *Options) Palette() []uint32",
              "doc": "Palette returns the palette option.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 267
            },
            {
              "name": "Ramp",
              "anchor": "Options.Ramp",
              "recv": "*Options",
              "decl": "func (o *Options) Ramp(name string) []uint32",
              "doc": "Ramp returns the ramp option called name, nil when it is not a ramp. Don't change the colors it returns.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 249
            },
            {
              "name": "Seed",
              "anchor": "Options.Seed",
              "recv": "*Options",
              "decl": "func (o *Options) Seed() float64",
              "doc": "Seed returns the seed option.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 264
            },
            {
              "name": "Set",
              "anchor": "Options.Set",
              "recv": "Options",
              "decl": "func (o Options) Set(name string, v Value) Options",
              "doc": "Set returns o with the option called name set to v. Set checks nothing: when the effect is played, a value of a kind its meta does not take for that option, or an empty ramp, is ignored and the default kept, and a name its meta does not give is passed on as it is. Check a value against Meta.Default first to report a mistake.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 208
            },
            {
              "name": "Text",
              "anchor": "Options.Text",
              "recv": "*Options",
              "decl": "func (o *Options) Text(name string) string",
              "doc": "Text returns the text option called name.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 258
            },
            {
              "name": "Value",
              "anchor": "Options.Value",
              "recv": "*Options",
              "decl": "func (o *Options) Value(name string) (Value, bool)",
              "doc": "Value returns the value of the option called name and whether it is set.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 219
            }
          ]
        },
        {
          "name": "Out",
          "anchor": "Out",
          "decl": "type Out struct {\n\tC uint32\n\tA float64\n\tL uint32\n\tK float64\n}",
          "doc": "Out is what a Shade function sets for its pixel: C its color, A its alpha (0..1, faded by ordered dither), L the color of light it adds (C when 0) and K how much.\n",
          "file": "pkg/pixelfx/painter.go",
          "line": 32,
          "members": [
            {
              "name": "C",
              "anchor": "Out.C",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "A",
              "anchor": "Out.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "L",
              "anchor": "Out.L",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "K",
              "anchor": "Out.K",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Painter",
          "anchor": "Painter",
          "decl": "type Painter struct {\n\t// Frame is the frame the painter draws into.\n\tFrame *Frame\n\t// W, H, OX and OY are the frame's size and top-left, and C and L its color and light buffers.\n\tW, H, OX, OY int\n\tC, L         []uint32\n\t// TX and TY are where the effect's origin sits in frame space, FX is -1 when it is mirrored (else 1), and CS and SN are the cosine and sine of its angle.\n\tTX, TY, FX, CS, SN float64\n\t// Fade scales every alpha and light (1 while an effect plays, falling to 0 as a stopped loop fades out), and LightK scales light (an effect's light option).\n\tFade, LightK float64\n\t// Layer is the layer being drawn.\n\tLayer Layer\n\t// contains filtered or unexported fields\n}",
          "doc": "Painter draws into a frame's two buffers: Color (opaque pixels, faded with ordered dither, never blended) and Light (additive glow, composited on top). Effects draw in local coordinates around their origin; the painter places, mirrors and rotates them, so an effect never needs to know where it is.\n\nEvery shape comes in two forms: one with a color c and alpha a, and one whose name ends in Fn taking a function of the shape's own coordinates that returns both, as pixelfx lets a color or an alpha be a function.\n",
          "file": "pkg/pixelfx/painter.go",
          "line": 42,
          "members": [
            {
              "name": "Frame",
              "anchor": "Painter.Frame",
              "kind": "field",
              "doc": "Frame is the frame the painter draws into."
            },
            {
              "name": "W",
              "anchor": "Painter.W",
              "kind": "field",
              "doc": "W, H, OX and OY are the frame's size and top-left, and C and L its color and light buffers."
            },
            {
              "name": "H",
              "anchor": "Painter.H",
              "kind": "field",
              "doc": "W, H, OX and OY are the frame's size and top-left, and C and L its color and light buffers."
            },
            {
              "name": "OX",
              "anchor": "Painter.OX",
              "kind": "field",
              "doc": "W, H, OX and OY are the frame's size and top-left, and C and L its color and light buffers."
            },
            {
              "name": "OY",
              "anchor": "Painter.OY",
              "kind": "field",
              "doc": "W, H, OX and OY are the frame's size and top-left, and C and L its color and light buffers."
            },
            {
              "name": "C",
              "anchor": "Painter.C",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "L",
              "anchor": "Painter.L",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TX",
              "anchor": "Painter.TX",
              "kind": "field",
              "doc": "TX and TY are where the effect's origin sits in frame space, FX is -1 when it is mirrored (else 1), and CS and SN are the cosine and sine of its angle."
            },
            {
              "name": "TY",
              "anchor": "Painter.TY",
              "kind": "field",
              "doc": "TX and TY are where the effect's origin sits in frame space, FX is -1 when it is mirrored (else 1), and CS and SN are the cosine and sine of its angle."
            },
            {
              "name": "FX",
              "anchor": "Painter.FX",
              "kind": "field",
              "doc": "TX and TY are where the effect's origin sits in frame space, FX is -1 when it is mirrored (else 1), and CS and SN are the cosine and sine of its angle."
            },
            {
              "name": "CS",
              "anchor": "Painter.CS",
              "kind": "field",
              "doc": "TX and TY are where the effect's origin sits in frame space, FX is -1 when it is mirrored (else 1), and CS and SN are the cosine and sine of its angle."
            },
            {
              "name": "SN",
              "anchor": "Painter.SN",
              "kind": "field",
              "doc": "TX and TY are where the effect's origin sits in frame space, FX is -1 when it is mirrored (else 1), and CS and SN are the cosine and sine of its angle."
            },
            {
              "name": "Fade",
              "anchor": "Painter.Fade",
              "kind": "field",
              "doc": "Fade scales every alpha and light (1 while an effect plays, falling to 0 as a stopped loop fades out), and LightK scales light (an effect's light option)."
            },
            {
              "name": "LightK",
              "anchor": "Painter.LightK",
              "kind": "field",
              "doc": "Fade scales every alpha and light (1 while an effect plays, falling to 0 as a stopped loop fades out), and LightK scales light (an effect's light option)."
            },
            {
              "name": "Layer",
              "anchor": "Painter.Layer",
              "kind": "field",
              "doc": "Layer is the layer being drawn."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "Painter.Add",
              "recv": "*Painter",
              "decl": "func (p *Painter) Add(sx, sy int, c uint32, k float64)",
              "doc": "Add adds k of color c's light to the frame pixel (sx, sy).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 146
            },
            {
              "name": "Arc",
              "anchor": "Painter.Arc",
              "recv": "*Painter",
              "decl": "func (p *Painter) Arc(cx, cy, r, w, a0, a1 float64, c uint32, a float64)",
              "doc": "Arc draws the band of a ring from angle a0 to a1 (radians, a1 > a0), radius r - w to r: the slash and smear shape.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 517
            },
            {
              "name": "ArcFn",
              "anchor": "Painter.ArcFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) ArcFn(cx, cy, r, w, a0, a1 float64, fn func(u, v float64) (uint32, float64))",
              "doc": "ArcFn draws the band Arc draws, its color and alpha fn(u, v): u 0 at a0 to 1 at a1, v 0 at the inner edge to 1 at the outer.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 522
            },
            {
              "name": "ArcTaperFn",
              "anchor": "Painter.ArcTaperFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) ArcTaperFn(cx, cy, r float64, w func(u float64) float64, a0, a1 float64, fn func(u, v float64) (uint32, float64))",
              "doc": "ArcTaperFn draws the band Arc draws with its width a function of u, for a crescent that tapers at both ends, colored by fn as ArcFn colors it.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 527
            },
            {
              "name": "Beam",
              "anchor": "Painter.Beam",
              "recv": "*Painter",
              "decl": "func (p *Painter) Beam(x0, y0, x1, y1, width float64, c uint32, a float64)",
              "doc": "Beam draws a thick segment with round ends.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 386
            },
            {
              "name": "BeamFn",
              "anchor": "Painter.BeamFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) BeamFn(x0, y0, x1, y1, width float64, fn func(u, v float64) (uint32, float64))",
              "doc": "BeamFn draws a thick segment with round ends whose color and alpha are fn(u, v): u along it, v across it (0 at the center, 1 at the edge).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 391
            },
            {
              "name": "Blend",
              "anchor": "Painter.Blend",
              "recv": "*Painter",
              "decl": "func (p *Painter) Blend(x, y float64, c uint32, a float64)",
              "doc": "Blend draws a translucent pixel at the local point (x, y).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 191
            },
            {
              "name": "BlendPx",
              "anchor": "Painter.BlendPx",
              "recv": "*Painter",
              "decl": "func (p *Painter) BlendPx(sx, sy int, c uint32, a float64)",
              "doc": "BlendPx blends color c over what's at the frame pixel (sx, sy) at alpha a (0..1), keeping the result's own alpha: soft smoke, vapour and mist. Use Dot for hard pixel fades and Blend for translucent volumes.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 167
            },
            {
              "name": "CellX",
              "anchor": "Painter.CellX",
              "recv": "*Painter",
              "decl": "func (p *Painter) CellX(x, y float64) int",
              "doc": "CellX returns the frame x of the local pixel cell holding (x, y): mirrors and rotations land on whole cells.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 120
            },
            {
              "name": "CellY",
              "anchor": "Painter.CellY",
              "recv": "*Painter",
              "decl": "func (p *Painter) CellY(x, y float64) int",
              "doc": "CellY returns the frame y of the local pixel cell holding (x, y).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 125
            },
            {
              "name": "Circle",
              "anchor": "Painter.Circle",
              "recv": "*Painter",
              "decl": "func (p *Painter) Circle(cx, cy, r float64, c uint32, a float64)",
              "doc": "Circle draws a filled disc.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 418
            },
            {
              "name": "CircleFn",
              "anchor": "Painter.CircleFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) CircleFn(cx, cy, r float64, fn func(d, ang float64) (uint32, float64))",
              "doc": "CircleFn draws a filled disc whose color and alpha are fn(d, angle): d 0 at the center to 1 at the rim.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 427
            },
            {
              "name": "Clipped",
              "anchor": "Painter.Clipped",
              "recv": "*Painter",
              "decl": "func (p *Painter) Clipped(x0, y0, x1, y1 float64) *Painter",
              "doc": "Clipped returns a copy of p drawing into the same frame that drops any pixel whose frame center falls outside [x0, x1) x [y0, y1) in local space.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 70
            },
            {
              "name": "Disc",
              "anchor": "Painter.Disc",
              "recv": "*Painter",
              "decl": "func (p *Painter) Disc(cx, cy, r float64, c uint32, a float64)",
              "doc": "Disc draws a translucent disc: puffs of smoke, vapour, dust.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 196
            },
            {
              "name": "DiscFn",
              "anchor": "Painter.DiscFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) DiscFn(cx, cy, r float64, fn func(d, ang float64) (uint32, float64))",
              "doc": "DiscFn draws a translucent disc whose color and alpha are fn(d, angle): d 0 at the center to 1 at the rim.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 205
            },
            {
              "name": "Dot",
              "anchor": "Painter.Dot",
              "recv": "*Painter",
              "decl": "func (p *Painter) Dot(x, y float64, c uint32, a float64)",
              "doc": "Dot draws one pixel at alpha a (0..1), faded by ordered dither; nothing at all when a is 0 or less.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 243
            },
            {
              "name": "Each",
              "anchor": "Painter.Each",
              "recv": "*Painter",
              "decl": "func (p *Painter) Each(x0, y0, x1, y1 float64, fn func(lx, ly float64, sx, sy int))",
              "doc": "Each visits every frame pixel whose center falls in the local box [x0, x1] x [y0, y1], with that center in local space: fn(lx, ly, sx, sy). It is the basis of every filled shape, so shapes mirror and rotate exactly.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 255
            },
            {
              "name": "Ellipse",
              "anchor": "Painter.Ellipse",
              "recv": "*Painter",
              "decl": "func (p *Painter) Ellipse(cx, cy, rx, ry float64, c uint32, a float64)",
              "doc": "Ellipse draws a filled ellipse with radii rx and ry; nothing when either is 0 or less.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 453
            },
            {
              "name": "EllipseFn",
              "anchor": "Painter.EllipseFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) EllipseFn(cx, cy, rx, ry float64, fn func(d, ang float64) (uint32, float64))",
              "doc": "EllipseFn draws a filled ellipse whose color and alpha are fn(d, angle): d 0 at the center to 1 at the rim.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 458
            },
            {
              "name": "FromX",
              "anchor": "Painter.FromX",
              "recv": "*Painter",
              "decl": "func (p *Painter) FromX(sx, sy float64) float64",
              "doc": "FromX returns the local x of the frame point (sx, sy).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 108
            },
            {
              "name": "FromY",
              "anchor": "Painter.FromY",
              "recv": "*Painter",
              "decl": "func (p *Painter) FromY(sx, sy float64) float64",
              "doc": "FromY returns the local y of the frame point (sx, sy).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 114
            },
            {
              "name": "Get",
              "anchor": "Painter.Get",
              "recv": "*Painter",
              "decl": "func (p *Painter) Get(x, y float64) uint32",
              "doc": "Get reads back the color under the local point (x, y), 0 if empty.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 231
            },
            {
              "name": "Glow",
              "anchor": "Painter.Glow",
              "recv": "*Painter",
              "decl": "func (p *Painter) Glow(x, y, r float64, c uint32, k float64)",
              "doc": "Glow adds a radial glow to the light buffer: k at the center, falling to 0 at radius r.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 633
            },
            {
              "name": "GlowLine",
              "anchor": "Painter.GlowLine",
              "recv": "*Painter",
              "decl": "func (p *Painter) GlowLine(x0, y0, x1, y1, r float64, c uint32, k float64)",
              "doc": "GlowLine adds a glow around a segment (a soft beam of light), k on the segment falling to 0 at distance r.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 654
            },
            {
              "name": "GlowRing",
              "anchor": "Painter.GlowRing",
              "recv": "*Painter",
              "decl": "func (p *Painter) GlowRing(x, y, R, r float64, c uint32, k float64)",
              "doc": "GlowRing adds a glow hugging a circle of radius R (a shockwave's light), falling off over width r.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 682
            },
            {
              "name": "Light",
              "anchor": "Painter.Light",
              "recv": "*Painter",
              "decl": "func (p *Painter) Light(x, y float64, c uint32, k float64)",
              "doc": "Light adds k of color c's light to one pixel.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 250
            },
            {
              "name": "Line",
              "anchor": "Painter.Line",
              "recv": "*Painter",
              "decl": "func (p *Painter) Line(x0, y0, x1, y1 float64, c uint32, a float64)",
              "doc": "Line draws a 1 px line.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 315
            },
            {
              "name": "LineFn",
              "anchor": "Painter.LineFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) LineFn(x0, y0, x1, y1 float64, fn func(u float64) (uint32, float64))",
              "doc": "LineFn draws a 1 px line whose color and alpha are fn(u): u 0 at the start to 1 at the end.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 320
            },
            {
              "name": "Mask",
              "anchor": "Painter.Mask",
              "recv": "*Painter",
              "decl": "func (p *Painter) Mask(m *Mask, x, y float64, c uint32, a float64)",
              "doc": "Mask fills a mask with its top-left at (x, y).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 838
            },
            {
              "name": "MaskFn",
              "anchor": "Painter.MaskFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) MaskFn(m *Mask, x, y float64, fn func(mx, my int) (uint32, float64))",
              "doc": "MaskFn fills a mask with its top-left at (x, y), each pixel's color and alpha fn(mx, my).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 849
            },
            {
              "name": "Measure",
              "anchor": "Painter.Measure",
              "recv": "*Painter",
              "decl": "func (p *Painter) Measure(str string, o TextOpts) (w, h float64)",
              "doc": "Measure returns the size of text in pixels: its width and height.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 822
            },
            {
              "name": "Outline",
              "anchor": "Painter.Outline",
              "recv": "*Painter",
              "decl": "func (p *Painter) Outline(m *Mask, x, y float64, c uint32, a float64)",
              "doc": "Outline draws the 1 px outline just outside a mask.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 861
            },
            {
              "name": "OutlineFn",
              "anchor": "Painter.OutlineFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) OutlineFn(m *Mask, x, y float64, fn func(mx, my int) (uint32, float64))",
              "doc": "OutlineFn draws the 1 px outline just outside a mask, each pixel's color and alpha fn(mx, my) (which may be -1 or the mask's size, just outside it).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 866
            },
            {
              "name": "Place",
              "anchor": "Painter.Place",
              "recv": "*Painter",
              "decl": "func (p *Painter) Place(x, y float64, flip bool, angle float64) *Painter",
              "doc": "Place puts the effect's origin at (x, y) in frame space, mirrored if flip, rotated by angle (radians).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 91
            },
            {
              "name": "Poly",
              "anchor": "Painter.Poly",
              "recv": "*Painter",
              "decl": "func (p *Painter) Poly(pts [][2]float64, c uint32, a float64)",
              "doc": "Poly draws a filled polygon from points (even-odd rule).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 582
            },
            {
              "name": "PolyFn",
              "anchor": "Painter.PolyFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) PolyFn(pts [][2]float64, fn func(x, y float64) (uint32, float64))",
              "doc": "PolyFn draws a filled polygon whose color and alpha are fn(x, y) of the local point.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 585
            },
            {
              "name": "Polyline",
              "anchor": "Painter.Polyline",
              "recv": "*Painter",
              "decl": "func (p *Painter) Polyline(pts [][2]float64, c uint32, a float64)",
              "doc": "Polyline draws lines through a list of points.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 372
            },
            {
              "name": "PolylineFn",
              "anchor": "Painter.PolylineFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) PolylineFn(pts [][2]float64, fn func(u float64) (uint32, float64))",
              "doc": "PolylineFn draws lines through a list of points, each colored by fn as LineFn colors it.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 379
            },
            {
              "name": "Put",
              "anchor": "Painter.Put",
              "recv": "*Painter",
              "decl": "func (p *Painter) Put(sx, sy int, c uint32, a float64)",
              "doc": "Put writes color c at the frame pixel (sx, sy) at alpha a (0..1, faded by ordered dither). Color 0 means \"nothing\": it never erases what's there.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 130
            },
            {
              "name": "Px",
              "anchor": "Painter.Px",
              "recv": "*Painter",
              "decl": "func (p *Painter) Px(x, y float64, c uint32)",
              "doc": "Px draws one opaque pixel.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 240
            },
            {
              "name": "Rect",
              "anchor": "Painter.Rect",
              "recv": "*Painter",
              "decl": "func (p *Painter) Rect(x, y, w, h float64, c uint32, a float64)",
              "doc": "Rect draws a filled rectangle.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 562
            },
            {
              "name": "Reset",
              "anchor": "Painter.Reset",
              "recv": "*Painter",
              "decl": "func (p *Painter) Reset() *Painter",
              "doc": "Reset re-reads the frame and clears placement, fade, light strength and clip.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 60
            },
            {
              "name": "Ring",
              "anchor": "Painter.Ring",
              "recv": "*Painter",
              "decl": "func (p *Painter) Ring(cx, cy, r, w float64, c uint32, a float64)",
              "doc": "Ring draws a ring from radius r - w to r.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 482
            },
            {
              "name": "RingFn",
              "anchor": "Painter.RingFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) RingFn(cx, cy, r, w float64, fn func(v, ang float64) (uint32, float64))",
              "doc": "RingFn draws a ring from radius r - w to r whose color and alpha are fn(v, angle): v 0 at the inner edge to 1 at the outer.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 487
            },
            {
              "name": "Shade",
              "anchor": "Painter.Shade",
              "recv": "*Painter",
              "decl": "func (p *Painter) Shade(x0, y0, x1, y1 float64, fn func(x, y float64, o *Out) uint32)",
              "doc": "Shade runs a pixel shader over a local box: fn(x, y, out) returns a color, or sets out.C, out.A, out.L and out.K (Out says what each is). Returning 0 with out.C left 0 leaves the pixel alone.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 293
            },
            {
              "name": "Sprite",
              "anchor": "Painter.Sprite",
              "recv": "*Painter",
              "decl": "func (p *Painter) Sprite(rows []string, pal map[rune]uint32, x, y, a float64, o SpriteOpts)",
              "doc": "Sprite draws a little sprite from strings, rows like \"..##..\" and \".#oo#.\", whose top-left is at (x, y) and whose alpha is a: pal maps characters to colors, and \".\" and \" \" are empty, as is a character pal leaves out.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 707
            },
            {
              "name": "Text",
              "anchor": "Painter.Text",
              "recv": "*Painter",
              "decl": "func (p *Painter) Text(str string, x, y float64, c uint32, a float64, o TextOpts)",
              "doc": "Text draws pixel text in color c at alpha a; (x, y) is the top of the text, at its left, center or right by o.Align.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 782
            },
            {
              "name": "TextFn",
              "anchor": "Painter.TextFn",
              "recv": "*Painter",
              "decl": "func (p *Painter) TextFn(str string, x, y float64, fn func(gx, gy int) uint32, a float64, o TextOpts)",
              "doc": "TextFn draws pixel text as Text does, each font pixel colored fn(gx, gy) by its place in the unscaled text.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 787
            },
            {
              "name": "ToX",
              "anchor": "Painter.ToX",
              "recv": "*Painter",
              "decl": "func (p *Painter) ToX(x, y float64) float64",
              "doc": "ToX returns the frame x of the local point (x, y).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 102
            },
            {
              "name": "ToY",
              "anchor": "Painter.ToY",
              "recv": "*Painter",
              "decl": "func (p *Painter) ToY(x, y float64) float64",
              "doc": "ToY returns the frame y of the local point (x, y).\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 105
            },
            {
              "name": "Tri",
              "anchor": "Painter.Tri",
              "recv": "*Painter",
              "decl": "func (p *Painter) Tri(x0, y0, x1, y1, x2, y2 float64, c uint32, a float64)",
              "doc": "Tri draws a filled triangle.\n",
              "file": "pkg/pixelfx/painter.go",
              "line": 628
            }
          ]
        },
        {
          "name": "Particle",
          "anchor": "Particle",
          "decl": "type Particle struct {\n\tK            Kind\n\tX, Y, VX, VY float64\n\tLife, Max    float64\n\tCol          uint32\n\tSize, Seed   float64\n\tDelay        float64\n\tFlag         Flag\n}",
          "doc": "Particle is one simulated particle.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 68,
          "members": [
            {
              "name": "K",
              "anchor": "Particle.K",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "Particle.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Particle.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VX",
              "anchor": "Particle.VX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VY",
              "anchor": "Particle.VY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Life",
              "anchor": "Particle.Life",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Max",
              "anchor": "Particle.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Col",
              "anchor": "Particle.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Size",
              "anchor": "Particle.Size",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "Particle.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Delay",
              "anchor": "Particle.Delay",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flag",
              "anchor": "Particle.Flag",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Particles",
          "anchor": "Particles",
          "decl": "type Particles struct {\n\tR      *Rng\n\tList   []Particle\n\tT      float64\n\tGround func(x float64) float64\n\tSparks []uint32\n\tHaze   uint32\n\tOnLand func(x, y float64)\n}",
          "doc": "Particles is a particle system: Spawn adds a particle, Update moves them all on, and Draw draws them.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 89,
          "members": [
            {
              "name": "R",
              "anchor": "Particles.R",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "List",
              "anchor": "Particles.List",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "T",
              "anchor": "Particles.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ground",
              "anchor": "Particles.Ground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sparks",
              "anchor": "Particles.Sparks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Haze",
              "anchor": "Particles.Haze",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnLand",
              "anchor": "Particles.OnLand",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewParticles",
              "anchor": "NewParticles",
              "decl": "func NewParticles(o SimOpts) *Particles",
              "doc": "NewParticles returns an empty particle system.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 102
            }
          ],
          "methods": [
            {
              "name": "Count",
              "anchor": "Particles.Count",
              "recv": "*Particles",
              "decl": "func (ps *Particles) Count() int",
              "doc": "Count returns how many particles there are.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 126
            },
            {
              "name": "Draw",
              "anchor": "Particles.Draw",
              "recv": "*Particles",
              "decl": "func (ps *Particles) Draw(p *Painter, layer Layer)",
              "doc": "Draw draws the particles: LayerBack the soft kinds (vapour, dust, smoke) and those flagged Back, LayerFront the rest, LayerBoth all of them.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 266
            },
            {
              "name": "Spawn",
              "anchor": "Particles.Spawn",
              "recv": "*Particles",
              "decl": "func (ps *Particles) Spawn(k Kind, x, y, vx, vy, life float64, col uint32, size, delay float64, flag Flag)",
              "doc": "Spawn adds a particle of kind k at (x, y) moving (vx, vy) that lives life seconds, colored col (0 lets Fire and Smoke use their own ramps; pixelfx's default is White), size big (pixelfx's default is 1), appearing after delay seconds, with flag's bits.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 121
            },
            {
              "name": "Update",
              "anchor": "Particles.Update",
              "recv": "*Particles",
              "decl": "func (ps *Particles) Update(dt float64)",
              "doc": "Update moves every particle on by dt seconds.\n",
              "file": "pkg/pixelfx/sim.go",
              "line": 131
            }
          ]
        },
        {
          "name": "Performance",
          "anchor": "Performance",
          "decl": "type Performance struct {\n\t// FX is the effect being performed.\n\tFX *Player\n\t// Targets are the straw targets.\n\tTargets []*Target\n\t// OnHit, when set, is called on every hit as it lands.\n\tOnHit func(h Hit)\n\t// contains filtered or unexported fields\n}",
          "doc": "Performance is an effect performed: the character, the effect, the target and the freeze, drawn together. Its time runs from the first pose (before the effect's own t = 0) to the last; Update holds everything still during a freeze. Without an act, the effect just plays with the character standing by.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 544,
          "members": [
            {
              "name": "FX",
              "anchor": "Performance.FX",
              "kind": "field",
              "doc": "FX is the effect being performed."
            },
            {
              "name": "Targets",
              "anchor": "Performance.Targets",
              "kind": "field",
              "doc": "Targets are the straw targets."
            },
            {
              "name": "OnHit",
              "anchor": "Performance.OnHit",
              "kind": "field",
              "doc": "OnHit, when set, is called on every hit as it lands."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Perform",
              "anchor": "Perform",
              "decl": "func Perform(e *Effect, o Options, rig *Rig) *Performance",
              "doc": "Perform starts e performed with o (X and Y place the feet), its character drawn by rig (a new one when nil). Give it the Rig that ActBounds used to size the frame, as pixelfx shares one between them.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 576
            }
          ],
          "methods": [
            {
              "name": "Done",
              "anchor": "Performance.Done",
              "recv": "*Performance",
              "decl": "func (pf *Performance) Done() bool",
              "doc": "Done reports whether the performance is over: a one-shot when its last pose is, a loop once stopped and faded.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 779
            },
            {
              "name": "Draw",
              "anchor": "Performance.Draw",
              "recv": "*Performance",
              "decl": "func (pf *Performance) Draw(frame *Frame, body, targets bool)",
              "doc": "Draw paints the performance into frame: the effect, the character and the targets together. body false leaves the character out, targets false the targets.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 787
            },
            {
              "name": "Frozen",
              "anchor": "Performance.Frozen",
              "recv": "*Performance",
              "decl": "func (pf *Performance) Frozen() bool",
              "doc": "Frozen reports whether a hit has everything frozen right now.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 634
            },
            {
              "name": "Pose",
              "anchor": "Performance.Pose",
              "recv": "*Performance",
              "decl": "func (pf *Performance) Pose() Pose",
              "doc": "Pose returns the pose the character is in right now.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 637
            },
            {
              "name": "Shake",
              "anchor": "Performance.Shake",
              "recv": "*Performance",
              "decl": "func (pf *Performance) Shake() (x, y float64)",
              "doc": "Shake returns how far the whole picture is thrown right now, in px.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 640
            },
            {
              "name": "Stop",
              "anchor": "Performance.Stop",
              "recv": "*Performance",
              "decl": "func (pf *Performance) Stop()",
              "doc": "Stop lets a loop end: it fades out and Done goes true.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 773
            },
            {
              "name": "T",
              "anchor": "Performance.T",
              "recv": "*Performance",
              "decl": "func (pf *Performance) T() float64",
              "doc": "T returns the performance's time: effect time, negative during the wind-up.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 631
            },
            {
              "name": "Update",
              "anchor": "Performance.Update",
              "recv": "*Performance",
              "decl": "func (pf *Performance) Update(dt float64)",
              "doc": "Update moves the performance on by dt seconds; a negative, NaN or infinite dt does nothing.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 665
            }
          ]
        },
        {
          "name": "Player",
          "anchor": "Player",
          "decl": "type Player struct {\n\t// Effect is what is playing.\n\tEffect *Effect\n\t// Options are its resolved options; changing X, Y or Flip moves it.\n\tOptions *Options\n\t// contains filtered or unexported fields\n}",
          "doc": "Player is a live instance of an effect: pixelfx's createFx.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 399,
          "members": [
            {
              "name": "Effect",
              "anchor": "Player.Effect",
              "kind": "field",
              "doc": "Effect is what is playing."
            },
            {
              "name": "Options",
              "anchor": "Player.Options",
              "kind": "field",
              "doc": "Options are its resolved options; changing X, Y or Flip moves it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPlayer",
              "anchor": "NewPlayer",
              "decl": "func NewPlayer(e *Effect, o Options) *Player",
              "doc": "NewPlayer starts playing e with o, over the defaults its meta gives: see Options.Set for which values it takes.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 410
            }
          ],
          "methods": [
            {
              "name": "Done",
              "anchor": "Player.Done",
              "recv": "*Player",
              "decl": "func (f *Player) Done() bool",
              "doc": "Done reports whether it has ended.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 467
            },
            {
              "name": "Draw",
              "anchor": "Player.Draw",
              "recv": "*Player",
              "decl": "func (f *Player) Draw(frame *Frame, layer Layer)",
              "doc": "Draw draws it into frame: LayerBack what goes behind a character, LayerFront what goes in front, LayerBoth both.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 431
            },
            {
              "name": "Stop",
              "anchor": "Player.Stop",
              "recv": "*Player",
              "decl": "func (f *Player) Stop()",
              "doc": "Stop lets it end: a loop fades out, a one-shot is cut short.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 460
            },
            {
              "name": "T",
              "anchor": "Player.T",
              "recv": "*Player",
              "decl": "func (f *Player) T() float64",
              "doc": "T returns how long it has played, in seconds.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 416
            },
            {
              "name": "Update",
              "anchor": "Player.Update",
              "recv": "*Player",
              "decl": "func (f *Player) Update(dt float64)",
              "doc": "Update moves it on by dt seconds. Simulations step at 120 Hz or finer whatever the caller's frame rate, so they look the same everywhere. A negative, NaN or infinite dt does nothing. Every 1/120 s of dt costs a step, so a caller resuming after a long pause should clamp dt first.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 419
            }
          ]
        },
        {
          "name": "Pose",
          "anchor": "Pose",
          "decl": "type Pose struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Pose is what a character is doing: the keys it sets, and what the near and far hands hold. The zero Pose sets nothing, which is standing easy.\n",
          "file": "pkg/pixelfx/pose.go",
          "line": 96,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LerpPose",
              "anchor": "LerpPose",
              "decl": "func LerpPose(a, b Pose, u float64) Pose",
              "doc": "LerpPose returns the pose u of the way from a to b: numbers move, everything else changes at the later key.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 80
            },
            {
              "name": "PoseAt",
              "anchor": "PoseAt",
              "decl": "func PoseAt(track []Key, t float64) Pose",
              "doc": "PoseAt returns the pose at time t on a track of keys. Limbs move in whole 12 fps steps counted from each key, so they read as held drawings; the feet's place over the floor (X, Y) stays smooth.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 117
            }
          ],
          "methods": [
            {
              "name": "Get",
              "anchor": "Pose.Get",
              "recv": "Pose",
              "decl": "func (p Pose) Get(k PoseKey) (float64, bool)",
              "doc": "Get returns k's value in p and whether p says it.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 125
            },
            {
              "name": "Has",
              "anchor": "Pose.Has",
              "recv": "Pose",
              "decl": "func (p Pose) Has(k PoseKey) bool",
              "doc": "Has reports whether p says k.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 122
            },
            {
              "name": "Hold",
              "anchor": "Pose.Hold",
              "recv": "Pose",
              "decl": "func (p Pose) Hold(weapon string) Pose",
              "doc": "Hold returns p with the near hand holding weapon (one of Weapons' names; \"\" holds nothing).\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 139
            },
            {
              "name": "HoldOff",
              "anchor": "Pose.HoldOff",
              "recv": "Pose",
              "decl": "func (p Pose) HoldOff(weapon string) Pose",
              "doc": "HoldOff returns p with the far hand holding weapon (\"\" holds nothing).\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 145
            },
            {
              "name": "MarshalJSON",
              "anchor": "Pose.MarshalJSON",
              "recv": "Pose",
              "decl": "func (p Pose) MarshalJSON() ([]byte, error)",
              "doc": "MarshalJSON writes the pose as pixelfx writes one: an object of the keys it says, by their pixelfx names (switches as true or false), and weapon and offWeapon when it holds something.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 1128
            },
            {
              "name": "Merge",
              "anchor": "Pose.Merge",
              "recv": "Pose",
              "decl": "func (p Pose) Merge(q Pose) Pose",
              "doc": "Merge returns p with everything q says laid over it, as pixelfx's { ...p, ...q }.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 157
            },
            {
              "name": "OffWeapon",
              "anchor": "Pose.OffWeapon",
              "recv": "Pose",
              "decl": "func (p Pose) OffWeapon() string",
              "doc": "OffWeapon returns what the far hand holds, \"\" for nothing.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 154
            },
            {
              "name": "Or",
              "anchor": "Pose.Or",
              "recv": "Pose",
              "decl": "func (p Pose) Or(k PoseKey, def float64) float64",
              "doc": "Or returns k's value in p, or def when p doesn't say it.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 128
            },
            {
              "name": "Weapon",
              "anchor": "Pose.Weapon",
              "recv": "Pose",
              "decl": "func (p Pose) Weapon() string",
              "doc": "Weapon returns what the near hand holds, \"\" for nothing.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 151
            },
            {
              "name": "With",
              "anchor": "Pose.With",
              "recv": "Pose",
              "decl": "func (p Pose) With(vs ...PoseValue) Pose",
              "doc": "With returns p with each of vs set.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 104
            },
            {
              "name": "Without",
              "anchor": "Pose.Without",
              "recv": "Pose",
              "decl": "func (p Pose) Without(ks ...PoseKey) Pose",
              "doc": "Without returns p with each of ks left unsaid.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 113
            }
          ]
        },
        {
          "name": "PoseKey",
          "anchor": "PoseKey",
          "decl": "type PoseKey uint8",
          "doc": "PoseKey is one thing a pose can say. A pose only says what differs from standing easy (Stand), in screen terms, px from the feet, y negative up. Give the hands and feet; the skeleton works out the rest.\n\nHow the body works. He faces right, three-quarters towards us, so his near shoulder is on the left of the chest on screen and his far shoulder on the right: for arms raised or open to us, the near hand goes left (FX < 0) and the far hand right (BX > 0). A hand driving forward closes the chest and brings its shoulder round; a hand drawn back opens him up. Bones have fixed lengths: an arm reaches about 15 px from its shoulder (shoulders are near y = -29), a leg 17 px. Arms don't stretch, so step the body in rather than ask too much.\n\nHow to hold things. Keep a little bend in the elbow. The blade lags the hand on a swing, so the wrist breaks and it whips. Long weapons rest in one hand with the butt on the floor and take the second hand to swing. Everything is in depth, so a weapon can swing round the front of him: turn the body (Yaw) and the weapon goes with it.\n",
          "file": "pkg/pixelfx/pose.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Lean",
                  "anchor": "Lean"
                },
                {
                  "name": "Crouch",
                  "anchor": "Crouch"
                },
                {
                  "name": "Yaw",
                  "anchor": "Yaw"
                },
                {
                  "name": "FX",
                  "anchor": "FX"
                },
                {
                  "name": "FY",
                  "anchor": "FY"
                },
                {
                  "name": "BX",
                  "anchor": "BX"
                },
                {
                  "name": "BY",
                  "anchor": "BY"
                },
                {
                  "name": "FFX",
                  "anchor": "FFX"
                },
                {
                  "name": "FFY",
                  "anchor": "FFY"
                },
                {
                  "name": "FBX",
                  "anchor": "FBX"
                },
                {
                  "name": "FBY",
                  "anchor": "FBY"
                },
                {
                  "name": "X",
                  "anchor": "X"
                },
                {
                  "name": "Y",
                  "anchor": "Y"
                },
                {
                  "name": "HX",
                  "anchor": "HX"
                },
                {
                  "name": "HY",
                  "anchor": "HY"
                },
                {
                  "name": "WL",
                  "anchor": "WL"
                },
                {
                  "name": "WZ",
                  "anchor": "WZ"
                },
                {
                  "name": "SA",
                  "anchor": "SA"
                },
                {
                  "name": "SB",
                  "anchor": "SB"
                },
                {
                  "name": "FZ",
                  "anchor": "FZ"
                },
                {
                  "name": "BZ",
                  "anchor": "BZ"
                },
                {
                  "name": "FZZ",
                  "anchor": "FZZ"
                },
                {
                  "name": "BZZ",
                  "anchor": "BZZ"
                },
                {
                  "name": "Turn",
                  "anchor": "Turn"
                },
                {
                  "name": "Twist",
                  "anchor": "Twist"
                },
                {
                  "name": "Face",
                  "anchor": "Face"
                },
                {
                  "name": "Ghost",
                  "anchor": "Ghost"
                },
                {
                  "name": "Two",
                  "anchor": "Two"
                },
                {
                  "name": "ArmsFront",
                  "anchor": "ArmsFront"
                },
                {
                  "name": "Pull",
                  "anchor": "Pull"
                },
                {
                  "name": "Nocked",
                  "anchor": "Nocked"
                },
                {
                  "name": "ToeF",
                  "anchor": "ToeF"
                },
                {
                  "name": "ToeB",
                  "anchor": "ToeB"
                }
              ],
              "decl": "const (\n\t// Lean bends the spine forward (+) or back (-).\n\tLean PoseKey = iota\n\t// Crouch lowers the hips.\n\tCrouch\n\t// Yaw turns the whole body about its feet (0 faces right, π faces left, in between towards us; a spin is really a spin).\n\tYaw\n\t// FX and FY place the near (right) hand.\n\tFX\n\tFY\n\t// BX and BY place the far (left) hand.\n\tBX\n\tBY\n\t// FFX and FFY place the near foot.\n\tFFX\n\tFFY\n\t// FBX and FBY place the far foot.\n\tFBX\n\tFBY\n\t// X and Y are where the feet are, from the effect's origin.\n\tX\n\tY\n\t// HX rolls the head and HY nods it.\n\tHX\n\tHY\n\t// WL foreshortens the weapon towards the viewer: its length on screen, 1 is full; WZ -1 turns it away instead.\n\tWL\n\tWZ\n\t// SA is the angle on screen of what the near hand holds (radians, 0 points forward), SB that of what the far hand holds.\n\tSA\n\tSB\n\t// FZ and BZ are the hands' depth, FZZ and BZZ the feet's.\n\tFZ\n\tBZ\n\tFZZ\n\tBZZ\n\t// Turn is how far the chest faces us, in radians (it follows the hands if you leave it out); Twist is extra chest turn.\n\tTurn\n\tTwist\n\t// Face -1 turns him round to face left.\n\tFace\n\t// Ghost leaves after-images.\n\tGhost\n\t// Two puts both hands on the weapon.\n\tTwo\n\t// ArmsFront brings the far hand round in front of the chest.\n\tArmsFront\n\t// Pull draws a bow to the far hand, and Nocked puts an arrow on the string.\n\tPull\n\tNocked\n\t// ToeF and ToeB put the near and far foot up on the toes.\n\tToeF\n\tToeB\n)",
              "doc": "The pose keys. Numbers move smoothly between keys of an act; the switches (Two, ArmsFront, Pull, Nocked, ToeF, ToeB) are on when not 0 and change at the later key.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Is",
              "anchor": "PoseKey.Is",
              "recv": "PoseKey",
              "decl": "func (k PoseKey) Is(v float64) PoseValue",
              "doc": "Is returns k set to v.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 90
            },
            {
              "name": "On",
              "anchor": "PoseKey.On",
              "recv": "PoseKey",
              "decl": "func (k PoseKey) On() PoseValue",
              "doc": "On returns the switch k turned on.\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 93
            },
            {
              "name": "String",
              "anchor": "PoseKey.String",
              "recv": "PoseKey",
              "decl": "func (k PoseKey) String() string",
              "doc": "String returns the key's name in pixelfx, such as \"fx\".\n",
              "file": "pkg/pixelfx/pose.go",
              "line": 73
            }
          ]
        },
        {
          "name": "PoseValue",
          "anchor": "PoseValue",
          "decl": "type PoseValue struct {\n\tKey   PoseKey\n\tValue float64\n}",
          "doc": "PoseValue is a key with its value, for Pose.With.\n",
          "file": "pkg/pixelfx/pose.go",
          "line": 84,
          "members": [
            {
              "name": "Key",
              "anchor": "PoseValue.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "PoseValue.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Posed",
          "anchor": "Posed",
          "decl": "type Posed struct {\n\tN              int\n\tXs, Ys         []int16\n\tColor          []uint32\n\tSrc            []int16\n\tInk            []uint8\n\tX0, Y0, X1, Y1 int\n\tZ              float64\n}",
          "doc": "Posed is a pose drawn down to pixels, in local space with the feet at (0, 0): pixel i is at (Xs[i], Ys[i]) in Color, came from pixel Src[i] of the standing 24 x 38 character (-1 for none), and is ink (outline) when Ink[i] is 1. X0, Y0, X1 and Y1 bound it, and Z is the body's mean depth.\n",
          "file": "pkg/pixelfx/rig.go",
          "line": 806,
          "members": [
            {
              "name": "N",
              "anchor": "Posed.N",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Xs",
              "anchor": "Posed.Xs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ys",
              "anchor": "Posed.Ys",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "Posed.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Src",
              "anchor": "Posed.Src",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ink",
              "anchor": "Posed.Ink",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X0",
              "anchor": "Posed.X0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y0",
              "anchor": "Posed.Y0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X1",
              "anchor": "Posed.X1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y1",
              "anchor": "Posed.Y1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Posed.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PosedPart",
          "anchor": "PosedPart",
          "decl": "type PosedPart struct {\n\tName   string\n\tPart   int\n\tN      int\n\tXs, Ys []int16\n\tColor  []uint32\n\tCX, CY float64\n\tZ      float64\n}",
          "doc": "PosedPart is one part of a figure taken apart: its name and number, its pixels as Posed holds them, and where its middle is (CX, CY) and its mean depth Z.\n",
          "file": "pkg/pixelfx/rig.go",
          "line": 1105,
          "members": [
            {
              "name": "Name",
              "anchor": "PosedPart.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Part",
              "anchor": "PosedPart.Part",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "N",
              "anchor": "PosedPart.N",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Xs",
              "anchor": "PosedPart.Xs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ys",
              "anchor": "PosedPart.Ys",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "PosedPart.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CX",
              "anchor": "PosedPart.CX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CY",
              "anchor": "PosedPart.CY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "PosedPart.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PosedParts",
              "anchor": "PosedParts",
              "decl": "func PosedParts(pose Pose) []PosedPart",
              "doc": "PosedParts returns the figure taken apart: each part drawn alone, with its own outline, and where its middle is. For exploded views.\n",
              "file": "pkg/pixelfx/rig.go",
              "line": 1116
            }
          ],
          "methods": []
        },
        {
          "name": "Rig",
          "anchor": "Rig",
          "decl": "type Rig struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Rig draws poses down to pixels and keeps the ones it drew, keyed as pixelfx keys them: every key rounded to a pixel (angles to a twentieth of a radian), so poses that round alike share the first one's pixels. An Act and ActBounds take one, so an effect acted out draws what pixelfx draws for it in a fresh process. The zero Rig is ready to use; a Rig is not safe for concurrent use.\n",
          "file": "pkg/pixelfx/rig.go",
          "line": 1041,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRig",
              "anchor": "NewRig",
              "decl": "func NewRig() *Rig",
              "doc": "NewRig returns a Rig with nothing drawn yet.\n",
              "file": "pkg/pixelfx/rig.go",
              "line": 1046
            }
          ],
          "methods": [
            {
              "name": "Posed",
              "anchor": "Rig.Posed",
              "recv": "*Rig",
              "decl": "func (g *Rig) Posed(pose Pose) *Posed",
              "doc": "Posed returns the pixels of a pose, in local space with the feet at (0, 0).\n",
              "file": "pkg/pixelfx/rig.go",
              "line": 1049
            }
          ]
        },
        {
          "name": "Rng",
          "anchor": "Rng",
          "decl": "type Rng struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Rng is a seeded random generator (mulberry32), the same sequence as pixelfx's for the same seed.\n",
          "file": "pkg/pixelfx/math.go",
          "line": 258,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRng",
              "anchor": "NewRng",
              "decl": "func NewRng(seed float64) *Rng",
              "doc": "NewRng returns a generator seeded with seed, converted as JavaScript's seed >>> 0; a seed of 0 is read as 1.\n",
              "file": "pkg/pixelfx/math.go",
              "line": 263
            },
            {
              "name": "RngOf",
              "anchor": "RngOf",
              "decl": "func RngOf(ns ...float64) *Rng",
              "doc": "RngOf returns a generator for one particle: RngOf(seed, i) gives the same numbers every frame.\n",
              "file": "pkg/pixelfx/math.go",
              "line": 314
            }
          ],
          "methods": [
            {
              "name": "Chance",
              "anchor": "Rng.Chance",
              "recv": "*Rng",
              "decl": "func (r *Rng) Chance(p float64) bool",
              "doc": "Chance reports true with probability p.\n",
              "file": "pkg/pixelfx/math.go",
              "line": 293
            },
            {
              "name": "Gauss",
              "anchor": "Rng.Gauss",
              "recv": "*Rng",
              "decl": "func (r *Rng) Gauss() float64",
              "doc": "Gauss returns a roughly normal number, mean 0, standard deviation 1.\n",
              "file": "pkg/pixelfx/math.go",
              "line": 304
            },
            {
              "name": "Int",
              "anchor": "Rng.Int",
              "recv": "*Rng",
              "decl": "func (r *Rng) Int(a, b float64) float64",
              "doc": "Int returns a whole number from a to b, both included.\n",
              "file": "pkg/pixelfx/math.go",
              "line": 290
            },
            {
              "name": "Next",
              "anchor": "Rng.Next",
              "recv": "*Rng",
              "decl": "func (r *Rng) Next() float64",
              "doc": "Next returns the next number in [0, 1).\n",
              "file": "pkg/pixelfx/math.go",
              "line": 278
            },
            {
              "name": "Range",
              "anchor": "Rng.Range",
              "recv": "*Rng",
              "decl": "func (r *Rng) Range(a, b float64) float64",
              "doc": "Range returns a number in [a, b).\n",
              "file": "pkg/pixelfx/math.go",
              "line": 287
            },
            {
              "name": "Seed",
              "anchor": "Rng.Seed",
              "recv": "*Rng",
              "decl": "func (r *Rng) Seed(seed float64)",
              "doc": "Seed restarts r from seed, as NewRng does.\n",
              "file": "pkg/pixelfx/math.go",
              "line": 270
            },
            {
              "name": "Sign",
              "anchor": "Rng.Sign",
              "recv": "*Rng",
              "decl": "func (r *Rng) Sign() float64",
              "doc": "Sign returns -1 or 1 with even odds.\n",
              "file": "pkg/pixelfx/math.go",
              "line": 296
            }
          ]
        },
        {
          "name": "SimOpts",
          "anchor": "SimOpts",
          "decl": "type SimOpts struct {\n\tRng    *Rng\n\tSeed   float64\n\tGround func(x float64) float64\n\tSparks []uint32\n\tHaze   uint32\n\tOnLand func(x, y float64)\n}",
          "doc": "SimOpts configure a Particles system: Rng is the generator it draws from (one seeded with Seed when nil), Ground the floor y under local x (sparks bounce on it; none when nil), Sparks the head-to-tail colors of a Spark (pixelfx's hot ramp when nil), Haze the color vapour glows with (none when 0), and OnLand what is called when a Brand hits the floor.\n",
          "file": "pkg/pixelfx/sim.go",
          "line": 79,
          "members": [
            {
              "name": "Rng",
              "anchor": "SimOpts.Rng",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "SimOpts.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ground",
              "anchor": "SimOpts.Ground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sparks",
              "anchor": "SimOpts.Sparks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Haze",
              "anchor": "SimOpts.Haze",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnLand",
              "anchor": "SimOpts.OnLand",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Skeleton",
          "anchor": "Skeleton",
          "decl": "type Skeleton struct {\n\tJoints  map[string][3]float64\n\tBones   [][2]string\n\tHandles []string\n}",
          "doc": "Skeleton is the skeleton of a pose, in the same local space as Rig.Posed: x right, y down, feet at (0, 0), z toward the viewer, the whole figure turned by its yaw. Joints are by name, Bones join two joints, and Handles are what a pose moves (hands and feet); everything else is solved from them.\n",
          "file": "pkg/pixelfx/rig.go",
          "line": 1077,
          "members": [
            {
              "name": "Joints",
              "anchor": "Skeleton.Joints",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bones",
              "anchor": "Skeleton.Bones",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Handles",
              "anchor": "Skeleton.Handles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SkeletonOf",
              "anchor": "SkeletonOf",
              "decl": "func SkeletonOf(pose Pose) Skeleton",
              "doc": "SkeletonOf returns the skeleton of a pose.\n",
              "file": "pkg/pixelfx/rig.go",
              "line": 1084
            }
          ],
          "methods": []
        },
        {
          "name": "Skin",
          "anchor": "Skin",
          "decl": "type Skin struct {\n\tColor  uint32\n\tAmount float64\n}",
          "doc": "Skin is what a hit can leave on the target: a color, and how much of it.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 302,
          "members": [
            {
              "name": "Color",
              "anchor": "Skin.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Amount",
              "anchor": "Skin.Amount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SpriteOpts",
          "anchor": "SpriteOpts",
          "decl": "type SpriteOpts struct {\n\tScale       float64\n\tFlip, FlipY bool\n\tTint        uint32\n}",
          "doc": "SpriteOpts are how Sprite draws: Scale (0 is 1), Flip (mirror left-right), FlipY (upside down) and Tint (draw every pixel in one color; 0 draws each in its own).\n",
          "file": "pkg/pixelfx/painter.go",
          "line": 700,
          "members": [
            {
              "name": "Scale",
              "anchor": "SpriteOpts.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flip",
              "anchor": "SpriteOpts.Flip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FlipY",
              "anchor": "SpriteOpts.FlipY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tint",
              "anchor": "SpriteOpts.Tint",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Target",
          "anchor": "Target",
          "decl": "type Target struct {\n\tX float64\n\t// contains filtered or unexported fields\n}",
          "doc": "Target is a straw target on a spring: it sways, flashes, takes a skin, shivers and sheds straw. X is the floor under it, in local space.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 325,
          "members": [
            {
              "name": "X",
              "anchor": "Target.X",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTarget",
              "anchor": "NewTarget",
              "decl": "func NewTarget(x, seed float64) *Target",
              "doc": "NewTarget returns a target standing at x, its straw seeded with seed.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 334
            }
          ],
          "methods": [
            {
              "name": "Draw",
              "anchor": "Target.Draw",
              "recv": "*Target",
              "decl": "func (g *Target) Draw(C []uint32, W, H int, x, y float64, flip bool)",
              "doc": "Draw draws the target into a w x h color buffer, its floor at (x, y), mirrored when flip.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 400
            },
            {
              "name": "DrawStraw",
              "anchor": "Target.DrawStraw",
              "recv": "*Target",
              "decl": "func (g *Target) DrawStraw(C []uint32, W, H int, x, y float64, flip bool)",
              "doc": "DrawStraw draws the straw the target has shed.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 439
            },
            {
              "name": "Hit",
              "anchor": "Target.Hit",
              "recv": "*Target",
              "decl": "func (g *Target) Hit(h Hit)",
              "doc": "Hit hits the target as h says.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 337
            },
            {
              "name": "Step",
              "anchor": "Target.Step",
              "recv": "*Target",
              "decl": "func (g *Target) Step(dt float64)",
              "doc": "Step moves the target on by dt seconds.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 367
            }
          ]
        },
        {
          "name": "TextOpts",
          "anchor": "TextOpts",
          "decl": "type TextOpts struct {\n\tFont    string\n\tScale   float64\n\tAlign   Align\n\tOutline uint32\n\tShadow  uint32\n}",
          "doc": "TextOpts are how Text draws: Font (\"mini\", 3x5, when empty, or \"big\", 5x7), Scale (0 is 1), Align, and an Outline and a Shadow color (0 for none).\n",
          "file": "pkg/pixelfx/painter.go",
          "line": 759,
          "members": [
            {
              "name": "Font",
              "anchor": "TextOpts.Font",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "TextOpts.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Align",
              "anchor": "TextOpts.Align",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Outline",
              "anchor": "TextOpts.Outline",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shadow",
              "anchor": "TextOpts.Shadow",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TimedHit",
          "anchor": "TimedHit",
          "decl": "type TimedHit struct {\n\tT      float64 `json:\"t\"`\n\tFreeze float64 `json:\"freeze\"`\n\tShake  float64 `json:\"shake\"`\n\tAmp    float64 `json:\"amp\"`\n\tPush   float64 `json:\"push\"`\n\tSkin   string  `json:\"skin,omitempty\"`\n\tAt     *int    `json:\"at,omitempty\"`\n}",
          "doc": "TimedHit is one hit of a Timing: when, how long to freeze and shake and by how much, how hard it pushes the target, the skin it leaves and which target it hits (all when unsaid).\n",
          "file": "pkg/pixelfx/act.go",
          "line": 1074,
          "members": [
            {
              "name": "T",
              "anchor": "TimedHit.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Freeze",
              "anchor": "TimedHit.Freeze",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shake",
              "anchor": "TimedHit.Shake",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Amp",
              "anchor": "TimedHit.Amp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Push",
              "anchor": "TimedHit.Push",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Skin",
              "anchor": "TimedHit.Skin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "At",
              "anchor": "TimedHit.At",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TimedPose",
          "anchor": "TimedPose",
          "decl": "type TimedPose struct {\n\tT    float64 `json:\"t\"`\n\tHow  string  `json:\"how\"`\n\tPose Pose    `json:\"pose\"`\n}",
          "doc": "TimedPose is one key of a Timing: when, how the pose arrives, and the pose.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 1085,
          "members": [
            {
              "name": "T",
              "anchor": "TimedPose.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "How",
              "anchor": "TimedPose.How",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pose",
              "anchor": "TimedPose.Pose",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Timing",
          "anchor": "Timing",
          "decl": "type Timing struct {\n\tWindup   float64     `json:\"windup\"`\n\tRecovery float64     `json:\"recovery\"`\n\tOnBody   bool        `json:\"onBody\"`\n\tTargets  []float64   `json:\"targets\"`\n\tHits     []TimedHit  `json:\"hits\"`\n\tPoses    []TimedPose `json:\"poses\"`\n}",
          "doc": "Timing is an act as plain data, for a game with its own character: how long the wind-up and recovery are, when to freeze and shake, what a target should do, and the poses themselves. Times are in the effect's own seconds: start the effect at 0.\n",
          "file": "pkg/pixelfx/act.go",
          "line": 1064,
          "members": [
            {
              "name": "Windup",
              "anchor": "Timing.Windup",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Recovery",
              "anchor": "Timing.Recovery",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnBody",
              "anchor": "Timing.OnBody",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Targets",
              "anchor": "Timing.Targets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hits",
              "anchor": "Timing.Hits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Poses",
              "anchor": "Timing.Poses",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ActTiming",
              "anchor": "ActTiming",
              "decl": "func ActTiming(e *Effect) *Timing",
              "doc": "ActTiming returns e's act as plain data, nil when it has none.\n",
              "file": "pkg/pixelfx/act.go",
              "line": 1092
            }
          ],
          "methods": []
        },
        {
          "name": "Value",
          "anchor": "Value",
          "decl": "type Value struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Value is an option's value: a number, a bool, a color, a ramp of colors, text or a list of numbers.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 74,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Bool",
              "anchor": "Bool",
              "decl": "func Bool(b bool) Value",
              "doc": "Bool returns a bool value.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 86
            },
            {
              "name": "Color",
              "anchor": "Color",
              "decl": "func Color(hex string) Value",
              "doc": "Color returns a color value from \"#rgb\", \"#rrggbb\" or \"#rrggbbaa\" (alpha ignored), panicking on anything else as Hex does.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 95
            },
            {
              "name": "ColorOf",
              "anchor": "ColorOf",
              "decl": "func ColorOf(c uint32) Value",
              "doc": "ColorOf returns a color value.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 98
            },
            {
              "name": "Num",
              "anchor": "Num",
              "decl": "func Num(x float64) Value",
              "doc": "Num returns a number value.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 83
            },
            {
              "name": "Nums",
              "anchor": "Nums",
              "decl": "func Nums(xs ...float64) Value",
              "doc": "Nums returns a list-of-numbers value.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 110
            },
            {
              "name": "Palette",
              "anchor": "Palette",
              "decl": "func Palette(hex ...string) Value",
              "doc": "Palette returns a ramp value from hex colors (dark to bright), panicking on a malformed one as Hex does.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 101
            },
            {
              "name": "ParseValue",
              "anchor": "ParseValue",
              "decl": "func ParseValue(kind ValueKind, s string) (Value, error)",
              "doc": "ParseValue reads s as a value of kind, as Value.String writes it: a number must be the whole of s (surrounding space aside), a color is #rgb, #rrggbb or #rrggbbaa (whose alpha is ignored), and a ramp's colors and a list's numbers are separated by commas.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 148
            },
            {
              "name": "RampOf",
              "anchor": "RampOf",
              "decl": "func RampOf(colors []uint32) Value",
              "doc": "RampOf returns a ramp value of colors.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 104
            },
            {
              "name": "Text",
              "anchor": "Text",
              "decl": "func Text(s string) Value",
              "doc": "Text returns a text value.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 107
            }
          ],
          "methods": [
            {
              "name": "Kind",
              "anchor": "Value.Kind",
              "recv": "Value",
              "decl": "func (v Value) Kind() ValueKind",
              "doc": "Kind returns what v holds.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 113
            },
            {
              "name": "String",
              "anchor": "Value.String",
              "recv": "Value",
              "decl": "func (v Value) String() string",
              "doc": "String writes v as the game pixelfx command reads it: a number, true or false, #rrggbb, a comma-separated list of colors or numbers, or the text itself.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 116
            }
          ]
        },
        {
          "name": "ValueKind",
          "anchor": "ValueKind",
          "decl": "type ValueKind uint8",
          "doc": "ValueKind is what an option holds.\n",
          "file": "pkg/pixelfx/fx.go",
          "line": 46,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindNone",
                  "anchor": "KindNone"
                },
                {
                  "name": "KindNumber",
                  "anchor": "KindNumber"
                },
                {
                  "name": "KindBool",
                  "anchor": "KindBool"
                },
                {
                  "name": "KindColor",
                  "anchor": "KindColor"
                },
                {
                  "name": "KindRamp",
                  "anchor": "KindRamp"
                },
                {
                  "name": "KindText",
                  "anchor": "KindText"
                },
                {
                  "name": "KindNumbers",
                  "anchor": "KindNumbers"
                }
              ],
              "decl": "const (\n\t// KindNone is no value.\n\tKindNone ValueKind = iota\n\t// KindNumber is a number, such as a seed, a size or a speed.\n\tKindNumber\n\t// KindBool is on or off.\n\tKindBool\n\t// KindColor is one color.\n\tKindColor\n\t// KindRamp is a list of colors, dark to bright: a palette.\n\tKindRamp\n\t// KindText is a string, such as the words a UI effect shows.\n\tKindText\n\t// KindNumbers is a list of numbers.\n\tKindNumbers\n)",
              "doc": "",
              "file": "pkg/pixelfx/fx.go",
              "line": 48
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ValueKind.String",
              "recv": "ValueKind",
              "decl": "func (k ValueKind) String() string",
              "doc": "String names the kind as the game pixelfx command and its errors do.\n",
              "file": "pkg/pixelfx/fx.go",
              "line": 66
            }
          ]
        },
        {
          "name": "View",
          "anchor": "View",
          "decl": "type View struct {\n\tSource func() core.ImageSource\n\tScale  float32\n\t// Class is Tailwind CSS classes and Style the style, as core.Canvas's.\n\tClass string\n\tStyle core.Style\n\t// Label names what the view shows for assistive technology.\n\tLabel string\n}",
          "doc": "View is a canvas that draws an effect's frames scaled up without smoothing: Source returns the picture to show (an Image's, usually), read again whenever a signal it reads changes, and Scale is how many points each pixel takes (1 when 0): any scale works, and a whole number keeps every pixel the same size.\n",
          "file": "pkg/pixelfx/view.go",
          "line": 49,
          "members": [
            {
              "name": "Source",
              "anchor": "View.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "View.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Class",
              "anchor": "View.Class",
              "kind": "field",
              "doc": "Class is Tailwind CSS classes and Style the style, as core.Canvas's."
            },
            {
              "name": "Style",
              "anchor": "View.Style",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "View.Label",
              "kind": "field",
              "doc": "Label names what the view shows for assistive technology."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Render",
              "anchor": "View.Render",
              "recv": "View",
              "decl": "func (v View) Render(*core.Scope) core.Node",
              "doc": "Render implements core.Node.\n",
              "file": "pkg/pixelfx/view.go",
              "line": 60
            }
          ]
        },
        {
          "name": "Weapon",
          "anchor": "Weapon",
          "decl": "type Weapon struct {\n\tTwo    float64\n\tHasTwo bool\n\tAcross bool\n\tDraw   func(T *Hand, q Pose, off [3]float64)\n}",
          "doc": "Weapon is something the character can hold: Two is where the other hand goes on it when both do (none when HasTwo is false), Across lays the handle across the weapon's length, and Draw draws it with the pose and the far hand's place.\n",
          "file": "pkg/pixelfx/rig.go",
          "line": 550,
          "members": [
            {
              "name": "Two",
              "anchor": "Weapon.Two",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasTwo",
              "anchor": "Weapon.HasTwo",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Across",
              "anchor": "Weapon.Across",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Draw",
              "anchor": "Weapon.Draw",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/arcane",
      "name": "arcane",
      "dir": "pkg/pixelfx/arcane",
      "page": "pkg/pixelfx/arcane",
      "synopsis": "Package arcane is pixelfx's arcane category: arcane beam, arcane missiles, arcane orb, blink in, blink out, magic circle cast, mana burst, portal, rune circle, spell charge, star fall and time stop, each a pixelfx.Effect registered as \"arcane/<name>\" when the package is imported.",
      "doc": "Package arcane is pixelfx's arcane category: arcane beam, arcane missiles, arcane orb, blink in, blink out, magic circle cast, mana burst, portal, rune circle, spell charge, star fall and time stop, each a pixelfx.Effect registered as \"arcane/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "ArcaneBeam",
              "anchor": "ArcaneBeam"
            }
          ],
          "decl": "var ArcaneBeam = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Arcane beam\",\n\t\tDesc:     \"A beam fires right from the hand: a white core, strands twisting round it, pulses running down it, a flaring source and an end that sprays sparks.\",\n\t\tTags:     []string{\"arcane\", \"beam\", \"laser\", \"ray\", \"magic\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{264, 100},\n\t\tOrigin:   [2]int{26, 84},\n\t\tDuration: beamD,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(10)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{186},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.62, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t\t{T: -0.3, Pose: beamPull},\n\t\t\t{T: -0.04, Pose: beamPull.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(-4))},\n\t\t\t{T: 0, Pose: beamAim.With(pixelfx.Crouch.Is(3)), How: \"snap\"},\n\t\t\t{T: 0.3, Pose: beamAim},\n\t\t\t{T: 0.6, Pose: beamAim.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(3))},\n\t\t\t{T: 0.9, Pose: beamAim},\n\t\t\t{T: 1.2, Pose: beamAim.With(pixelfx.Crouch.Is(3))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.1, Push: pixelfx.Val(0.5), Straw: pixelfx.Val(3), Flash: pixelfx.Val(0.02), Y: pixelfx.Val(-24)},\n\t\t\t{T: 0.7, Push: pixelfx.Val(0.5), Straw: pixelfx.Val(3), Flash: pixelfx.Val(0.02), Y: pixelfx.Val(-24)},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 0, X: -10, N: 5, Dir: -1}},\n\t},\n\tNew: func(o *pixelfx.Options) pixelfx.Instance {\n\t\treturn &pixelfx.Funcs{DrawFunc: func(p *pixelfx.Painter, t float64) { drawArcaneBeam(p, t, o) }}\n\t},\n}",
          "doc": "ArcaneBeam fires a beam right from the hand: a white core, strands twisting round it, pulses running down it, a flaring source and an end that sprays sparks. It is registered as \"arcane/arcane-beam\".\n",
          "file": "pkg/pixelfx/arcane/arcane_beam.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "ArcaneMissiles",
              "anchor": "ArcaneMissiles"
            }
          ],
          "decl": "var ArcaneMissiles = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Arcane missiles\",\n\t\tDesc:     \"A volley of violet bolts fans out of the hand, curls round on twisting ribbons and pops on the target one after another.\",\n\t\tTags:     []string{\"arcane\", \"missile\", \"projectile\", \"homing\", \"volley\", \"magic\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{240, 116},\n\t\tOrigin:   [2]int{26, 88},\n\t\tDuration: 1.75,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{152},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.52, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t\t{T: -0.24, Pose: missGather},\n\t\t\t{T: 0, Pose: missGather.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 0.05, Pose: missKick, How: \"snap\"},\n\t\t\t{T: 0.1, Pose: missOpen, How: \"snap\"},\n\t\t\t{T: 0.15, Pose: missKick, How: \"snap\"},\n\t\t\t{T: 0.2, Pose: missOpen, How: \"snap\"},\n\t\t\t{T: 0.25, Pose: missKick, How: \"snap\"},\n\t\t\t{T: 0.29, Pose: missOpen, How: \"snap\"},\n\t\t\t{T: 0.33, Pose: missKick, How: \"snap\"},\n\t\t\t{T: 0.38, Pose: missOpen, How: \"snap\"},\n\t\t\t{T: 0.43, Pose: missKick, How: \"snap\"},\n\t\t\t{T: 0.48, Pose: missOpen, How: \"snap\"},\n\t\t\t{T: 1.2, Pose: missOpen.With(pixelfx.Crouch.Is(3))},\n\t\t\t{T: 1.7, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\tmissHit(0.77),\n\t\t\tmissHit(0.85),\n\t\t\tmissHit(0.95),\n\t\t\tmissHit(1.08),\n\t\t\t{T: 1.2, Stop: 0.07, Shake: 0.14, Amp: pixelfx.Val(1), Push: pixelfx.Val(1.4), Straw: pixelfx.Val(9), Y: pixelfx.Val(-24)},\n\t\t},\n\t},\n\tNew: newArcaneMissiles,\n}",
          "doc": "ArcaneMissiles fans a volley of violet bolts out of the hand; they curl round on twisting ribbons and pop on the target one after another. It is registered as \"arcane/arcane-missiles\".\n",
          "file": "pkg/pixelfx/arcane/arcane_missiles.go",
          "line": 34
        },
        {
          "idents": [
            {
              "name": "ArcaneOrb",
              "anchor": "ArcaneOrb"
            }
          ],
          "decl": "var ArcaneOrb = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Arcane orb\",\n\t\tDesc:     \"A floating orb of smoky violet glass with a swirl turning round a white-hot heart, two tilted rings of light orbiting behind and in front.\",\n\t\tTags:     []string{\"arcane\", \"orb\", \"sphere\", \"magic\", \"floating\", \"loop\"},\n\t\tSize:     [2]int{136, 112},\n\t\tOrigin:   [2]int{68, 104},\n\t\tDuration: orbD,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: func(o *pixelfx.Options) pixelfx.Instance {\n\t\treturn &pixelfx.Funcs{\n\t\t\tDrawBackFunc: func(p *pixelfx.Painter, t float64) { drawBackArcaneOrb(p, t, o) },\n\t\t\tDrawFunc:     func(p *pixelfx.Painter, t float64) { drawArcaneOrb(p, t, o) },\n\t\t}\n\t},\n}",
          "doc": "ArcaneOrb floats an orb of smoky violet glass with a swirl turning round a white-hot heart, two tilted rings of light orbiting behind and in front. It is registered as \"arcane/arcane-orb\".\n",
          "file": "pkg/pixelfx/arcane/arcane_orb.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "BlinkIn",
              "anchor": "BlinkIn"
            }
          ],
          "decl": "var BlinkIn = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Blink in\",\n\t\tDesc:     \"Glittering bits spiral in to a point of light that opens into a line, then into a white silhouette that cools into the caster.\",\n\t\tTags:     []string{\"arcane\", \"blink\", \"teleport\", \"appear\", \"movement\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{136, 96},\n\t\tOrigin:   [2]int{68, 80},\n\t\tDuration: 1.4,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(12)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: blinkInLanded},\n\t\t\t{T: 0.48, Pose: blinkInLanded},\n\t\t\t{T: 0.56, Pose: blinkInLanded.With(pixelfx.Crouch.Is(6)), How: \"snap\"},\n\t\t\t{T: 0.95, Pose: pixelfx.Ready},\n\t\t\t{T: 1.4, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.48, Stop: 0.03, Shake: 0.1, Amp: pixelfx.Val(1)}},\n\t\tDust: []pixelfx.DustKick{{T: 0.48, X: 0, N: 7}},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif t < blinkInArrive {\n\t\t\treturn 0\n\t\t}\n\t\treturn 1\n\t},\n\tNew: newBlinkIn,\n}",
          "doc": "BlinkIn spirals glittering bits in to a point of light that opens into a line, then into a white silhouette that cools into the caster. The stand-in character appears once the silhouette has opened. It is registered as \"arcane/blink-in\".\n",
          "file": "pkg/pixelfx/arcane/blink_in.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "BlinkOut",
              "anchor": "BlinkOut"
            }
          ],
          "decl": "var BlinkOut = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Blink out\",\n\t\tDesc:     \"The caster crackles with gathering light, flashes white, squeezes into a line of light that collapses and pops away in sparks.\",\n\t\tTags:     []string{\"arcane\", \"blink\", \"teleport\", \"vanish\", \"movement\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{136, 96},\n\t\tOrigin:   [2]int{68, 80},\n\t\tDuration: 1.6,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(11)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.36, Pose: pixelfx.Ready},\n\t\t\t{T: -0.1, Pose: blinkOutIn},\n\t\t\t{T: 0.2, Pose: blinkOutIn.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 0.32, Pose: blinkOutIn.With(pixelfx.Crouch.Is(0)), How: \"snap\"},\n\t\t\t{T: 1.6, Pose: blinkOutIn.With(pixelfx.Crouch.Is(0))},\n\t\t},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif t < blinkOutOut {\n\t\t\treturn 1\n\t\t}\n\t\treturn 0\n\t},\n\tNew: newBlinkOut,\n}",
          "doc": "BlinkOut makes the caster crackle with gathering light, flash white and squeeze into a line of light that collapses and pops away in sparks. The stand-in character is hidden from the flash on, when the effect draws it itself. It is registered as \"arcane/blink-out\".\n",
          "file": "pkg/pixelfx/arcane/blink_out.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "MagicCircleCast",
              "anchor": "MagicCircleCast"
            }
          ],
          "decl": "var MagicCircleCast = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Magic circle cast\",\n\t\tDesc:     \"A circle draws itself on the floor, runes ignite one by one, it flashes, and a column of light fires up and breaks apart into glints.\",\n\t\tTags:     []string{\"arcane\", \"magic\", \"circle\", \"rune\", \"cast\", \"column\", \"summon\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{200, 220},\n\t\tOrigin:   [2]int{100, 192},\n\t\tDuration: mcEnd,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newMagicCircleCast,\n}",
          "doc": "MagicCircleCast draws a circle on the floor, lights its runes one by one, flashes, and fires a column of light that breaks apart into glints. It is registered as \"arcane/magic-circle-cast\".\n",
          "file": "pkg/pixelfx/arcane/magic_circle_cast.go",
          "line": 37
        },
        {
          "idents": [
            {
              "name": "ManaBurst",
              "anchor": "ManaBurst"
            }
          ],
          "decl": "var ManaBurst = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Mana burst\",\n\t\tDesc:     \"Energy rushes into a point and blows out in a white flash and rings, flinging glowing runes that flare and pop into sparks one after another.\",\n\t\tTags:     []string{\"arcane\", \"burst\", \"mana\", \"rune\", \"nova\", \"magic\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{208, 150},\n\t\tOrigin:   [2]int{104, 124},\n\t\tDuration: 1.8,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newManaBurst,\n}",
          "doc": "ManaBurst rushes energy into a point that blows out in a white flash and rings, flinging glowing runes that flare and pop into sparks one after another. It is registered as \"arcane/mana-burst\".\n",
          "file": "pkg/pixelfx/arcane/mana_burst.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "Portal",
              "anchor": "Portal"
            }
          ],
          "decl": "var Portal = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Portal\",\n\t\tDesc:     \"An upright rift: fibrous spiral arms wind down into the dark, a lit rim wobbles, motes and streaks are pulled in, the floor glows.\",\n\t\tTags:     []string{\"arcane\", \"portal\", \"rift\", \"teleport\", \"magic\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{152, 116},\n\t\tOrigin:   [2]int{76, 106},\n\t\tDuration: portalD,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"width\", Default: pixelfx.Num(17)},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(29)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: func(o *pixelfx.Options) pixelfx.Instance {\n\t\treturn &pixelfx.Funcs{\n\t\t\tDrawBackFunc: func(p *pixelfx.Painter, t float64) { portalFloor(p, portalSetup(t, o)) },\n\t\t\tDrawFunc:     func(p *pixelfx.Painter, t float64) { drawPortal(p, t, o) },\n\t\t}\n\t},\n}",
          "doc": "Portal opens an upright rift: fibrous spiral arms wind down into the dark, a lit rim wobbles, motes and streaks are pulled in, the floor glows. Its width and height options are the rift's half width and half height. It is registered as \"arcane/portal\".\n",
          "file": "pkg/pixelfx/arcane/portal.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "RuneCircle",
              "anchor": "RuneCircle"
            }
          ],
          "decl": "var RuneCircle = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Rune circle\",\n\t\tDesc:     \"A rune circle turns on the floor in perspective: a carousel of runes lit by chasing light, a turning square, ticks, motes rising off it.\",\n\t\tTags:     []string{\"arcane\", \"rune\", \"circle\", \"magic\", \"aura\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{136, 100},\n\t\tOrigin:   [2]int{68, 80},\n\t\tDuration: rcD,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: func(o *pixelfx.Options) pixelfx.Instance {\n\t\treturn &pixelfx.Funcs{\n\t\t\tDrawBackFunc: func(p *pixelfx.Painter, t float64) { drawBackRuneCircle(p, t, o) },\n\t\t\tDrawFunc:     func(p *pixelfx.Painter, t float64) { drawRuneCircle(p, t, o) },\n\t\t}\n\t},\n}",
          "doc": "RuneCircle turns a rune circle on the floor in perspective: a carousel of runes lit by chasing light, a turning square, ticks, motes rising off it. It is registered as \"arcane/rune-circle\".\n",
          "file": "pkg/pixelfx/arcane/rune_circle.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "SpellCharge",
              "anchor": "SpellCharge"
            }
          ],
          "decl": "var SpellCharge = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Spell charge\",\n\t\tDesc:     \"Energy gathers in the caster's hand: streaks and motes spiral in, rings collapse into a swelling orb that crackles with arcs, ready to fire.\",\n\t\tTags:     []string{\"arcane\", \"charge\", \"spell\", \"orb\", \"cast\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{120, 86},\n\t\tOrigin:   [2]int{44, 80},\n\t\tDuration: chargeD,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.46, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t\t{T: -0.12, Pose: chargeHold.With(pixelfx.Crouch.Is(3))},\n\t\t\t{T: 0, Pose: chargeHold},\n\t\t\t{T: 0.4, Pose: chargeHold.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 0.8, Pose: chargeHold.With(pixelfx.Lean.Is(3))},\n\t\t\t{T: 1.2, Pose: chargeHold.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 1.6, Pose: chargeHold},\n\t\t},\n\t},\n\tNew: func(o *pixelfx.Options) pixelfx.Instance {\n\t\treturn &pixelfx.Funcs{DrawFunc: func(p *pixelfx.Painter, t float64) { drawSpellCharge(p, t, o) }}\n\t},\n}",
          "doc": "SpellCharge gathers energy in the caster's hand: streaks and motes spiral in, rings collapse into a swelling orb that crackles with arcs, ready to fire. It is registered as \"arcane/spell-charge\".\n",
          "file": "pkg/pixelfx/arcane/spell_charge.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "StarFall",
              "anchor": "StarFall"
            }
          ],
          "decl": "var StarFall = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Star fall\",\n\t\tDesc:     \"Stars streak down on long trails across an area, each landing with a white flash, a ring across the floor and a kick of sparks.\",\n\t\tTags:     []string{\"arcane\", \"star\", \"meteor\", \"rain\", \"aoe\", \"magic\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{232, 172},\n\t\tOrigin:   [2]int{124, 150},\n\t\tDuration: 2.5,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(13)},\n\t\t},\n\t},\n\tNew: newStarFall,\n}",
          "doc": "StarFall streaks stars down on long trails across an area, each landing with a white flash, a ring across the floor and a kick of sparks. It is registered as \"arcane/star-fall\".\n",
          "file": "pkg/pixelfx/arcane/star_fall.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "TimeStop",
              "anchor": "TimeStop"
            }
          ],
          "decl": "var TimeStop = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Time stop\",\n\t\tDesc:     \"A clock face springs open, ticks slower and slower, freezes drained of colour, cracks, then shatters into falling shards.\",\n\t\tTags:     []string{\"arcane\", \"time\", \"clock\", \"freeze\", \"stop\", \"shatter\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{196, 136},\n\t\tOrigin:   [2]int{98, 118},\n\t\tDuration: 3.6,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: arcanePalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(14)},\n\t\t},\n\t},\n\tNew: newTimeStop,\n}",
          "doc": "TimeStop springs a clock face open; it ticks slower and slower, freezes drained of colour, cracks, then shatters into falling shards. It is registered as \"arcane/time-stop\".\n",
          "file": "pkg/pixelfx/arcane/time_stop.go",
          "line": 27
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/critters",
      "name": "critters",
      "dir": "pkg/pixelfx/critters",
      "page": "pkg/pixelfx/critters",
      "synopsis": "Package critters is pixelfx's critters category: bat, bird, butterfly, eyeball, fish school, flying skull, frog, ghost, jellyfish, slime, snake and wisp, each a pixelfx.Effect registered as \"critters/<name>\" when the package is imported.",
      "doc": "Package critters is pixelfx's critters category: bat, bird, butterfly, eyeball, fish school, flying skull, frog, ghost, jellyfish, slime, snake and wisp, each a pixelfx.Effect registered as \"critters/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Bat",
              "anchor": "Bat"
            }
          ],
          "decl": "var Bat = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Bat\",\n\t\tDesc:     \"A bat flaps in four snappy wing frames along a figure-eight, its body lifting on each downbeat, moonlight on its wing bones, red eyes glowing and glinting.\",\n\t\tTags:     []string{\"critter\", \"bat\", \"night\", \"flying\", \"spooky\", \"loop\"},\n\t\tSize:     [2]int{112, 80},\n\t\tOrigin:   [2]int{56, 40},\n\t\tDuration: 2.4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0c0912\", \"#1f1629\", \"#382645\", \"#5b3f66\", \"#866089\", \"#b88fb0\", \"#e8cfe0\")},\n\t\t\t{Name: \"eyes\", Default: pixelfx.Palette(\"#8a1020\", \"#ff3b30\", \"#ffb04a\", \"#fff0c0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newBat,\n}",
          "doc": "Bat is a bat flapping in four snappy wing frames along a figure-eight, its body lifting on each downbeat, moonlight on its wing bones, red eyes glowing and glinting. It is registered as \"critters/bat\".\n",
          "file": "pkg/pixelfx/critters/bat.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Bird",
              "anchor": "Bird"
            }
          ],
          "decl": "var Bird = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Bird\",\n\t\tDesc:     \"A songbird flies in place: bursts of wingbeats that lift its body on each downstroke, a glide on spread wings, its tail fanning, a loose feather drifting away.\",\n\t\tTags:     []string{\"critter\", \"bird\", \"flying\", \"animal\", \"loop\"},\n\t\tSize:     [2]int{112, 80},\n\t\tOrigin:   [2]int{56, 40},\n\t\tDuration: 2.4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0a0e1e\", \"#18244a\", \"#24407a\", \"#3466aa\", \"#5a94d4\", \"#9cc8f0\", \"#eaf6ff\")},\n\t\t\t{Name: \"breast\", Default: pixelfx.Palette(\"#4a1a0e\", \"#a8441c\", \"#e8783a\", \"#ffb070\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newBird,\n}",
          "doc": "Bird is a songbird flying in place: bursts of wingbeats that lift its body on each downstroke, a glide on spread wings, its tail fanning, a loose feather drifting away. It is registered as \"critters/bird\".\n",
          "file": "pkg/pixelfx/critters/bird.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Butterfly",
              "anchor": "Butterfly"
            }
          ],
          "decl": "var Butterfly = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Butterfly\",\n\t\tDesc:     \"An iridescent butterfly wanders a loop in bursts of quick wingbeats and open-winged glides, its veined, spotted wings shedding a twinkling trail of glowing dust.\",\n\t\tTags:     []string{\"critter\", \"butterfly\", \"insect\", \"flying\", \"magic\", \"glow\", \"loop\"},\n\t\tSize:     [2]int{128, 88},\n\t\tOrigin:   [2]int{64, 44},\n\t\tDuration: 3.2,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0b0f24\", \"#16224f\", \"#1f3f8a\", \"#2f74c8\", \"#4fb4f0\", \"#a0e6ff\", \"#ffffff\")},\n\t\t\t{Name: \"spots\", Default: pixelfx.Palette(\"#3a1a08\", \"#c8641a\", \"#ffb43c\", \"#fff0b0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newButterfly,\n}",
          "doc": "Butterfly is an iridescent butterfly wandering a loop in bursts of quick wingbeats and open-winged glides, its veined, spotted wings shedding a twinkling trail of glowing dust. It is registered as \"critters/butterfly\".\n",
          "file": "pkg/pixelfx/critters/butterfly.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Eyeball",
              "anchor": "Eyeball"
            }
          ],
          "decl": "var Eyeball = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Eyeball\",\n\t\tDesc:     \"A bloodshot eyeball floats in its fleshy lids: its glowing iris snaps from one look to the next, it blinks, and its nerve sways behind it as it bobs.\",\n\t\tTags:     []string{\"critter\", \"eyeball\", \"eye\", \"monster\", \"spooky\", \"float\", \"loop\"},\n\t\tSize:     [2]int{96, 108},\n\t\tOrigin:   [2]int{48, 100},\n\t\tDuration: 3.2,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1420\", \"#6a3040\", \"#b07078\", \"#dcbcb4\", \"#f4e9de\", \"#ffffff\")},\n\t\t\t{Name: \"flesh\", Default: pixelfx.Palette(\"#1e0c16\", \"#4a1a2c\", \"#7c2c40\", \"#b04a58\", \"#e07a80\")},\n\t\t\t{Name: \"iris\", Default: pixelfx.Palette(\"#0c2a14\", \"#1f6a2a\", \"#3fae3a\", \"#9be05a\", \"#e8ffb0\")},\n\t\t\t{Name: \"hover\", Default: pixelfx.Num(48)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newEyeball,\n}",
          "doc": "Eyeball is a bloodshot eyeball floating in its fleshy lids: its glowing iris snaps from one look to the next, it blinks, and its nerve sways behind it as it bobs. It is registered as \"critters/eyeball\".\n",
          "file": "pkg/pixelfx/critters/eyeball.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "FishSchool",
              "anchor": "FishSchool"
            }
          ],
          "decl": "var FishSchool = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Fish school\",\n\t\tDesc:     \"A school of fish holds station in two depth rows: bodies wag into swinging tails, one darts ahead now and then, bubbles rise and caustic light ripples over them.\",\n\t\tTags:     []string{\"critter\", \"fish\", \"school\", \"sea\", \"underwater\", \"swim\", \"loop\"},\n\t\tSize:     [2]int{136, 80},\n\t\tOrigin:   [2]int{68, 40},\n\t\tDuration: 4.8,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0a1a2a\", \"#123552\", \"#1d5a7e\", \"#2f8aa8\", \"#62bccc\", \"#bfe8e6\", \"#f4fff8\")},\n\t\t\t{Name: \"stripe\", Default: pixelfx.Palette(\"#5a1e14\", \"#d8582a\", \"#ffa04a\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newFishSchool,\n}",
          "doc": "FishSchool is a school of fish holding station in two depth rows: bodies wag into swinging tails, one darts ahead now and then, bubbles rise and caustic light ripples over them. It is registered as \"critters/fish-school\".\n",
          "file": "pkg/pixelfx/critters/fish_school.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "FlyingSkull",
              "anchor": "FlyingSkull"
            }
          ],
          "decl": "var FlyingSkull = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Flying skull\",\n\t\tDesc:     \"A cracked bone skull bobs in the air, jaw chattering, eyes burning, a fire roaring off its crown that sheds flame puffs, embers and smoke and throws warm light.\",\n\t\tTags:     []string{\"critter\", \"skull\", \"undead\", \"fire\", \"flying\", \"monster\", \"loop\"},\n\t\tSize:     [2]int{96, 132},\n\t\tOrigin:   [2]int{48, 120},\n\t\tDuration: 2.4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"bone\", Default: pixelfx.Palette(\"#1a1114\", \"#3e2b2a\", \"#6b5144\", \"#9e8467\", \"#cdb892\", \"#efe2bf\", \"#fffaea\")},\n\t\t\t{Name: \"hover\", Default: pixelfx.Num(40)},\n\t\t\t{Name: \"floor\", Default: pixelfx.Bool(true)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newFlyingSkull,\n}",
          "doc": "FlyingSkull is a cracked bone skull bobbing in the air, jaw chattering, eyes burning, a fire roaring off its crown that sheds flame puffs, embers and smoke and throws warm light. It is registered as \"critters/flying-skull\".\n",
          "file": "pkg/pixelfx/critters/flying_skull.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "Frog",
              "anchor": "Frog"
            }
          ],
          "decl": "var Frog = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Frog\",\n\t\tDesc:     \"A frog puffs its throat, blinks, crouches and leaps to snap a buzzing fly out of the air, then lands with a squash and a puff of dust, gulps and settles.\",\n\t\tTags:     []string{\"critter\", \"frog\", \"animal\", \"hop\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{112, 88},\n\t\tOrigin:   [2]int{56, 80},\n\t\tDuration: 2.6,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0a160c\", \"#173a18\", \"#256024\", \"#3a8a2e\", \"#62b440\", \"#a8e070\", \"#e8ffc0\")},\n\t\t\t{Name: \"belly\", Default: pixelfx.Palette(\"#5e5a24\", \"#bdb45a\", \"#efe9a8\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newFrog,\n}",
          "doc": "Frog is a frog puffing its throat, blinking, crouching and leaping to snap a buzzing fly out of the air, then landing with a squash and a puff of dust, gulping and settling. It is registered as \"critters/frog\".\n",
          "file": "pkg/pixelfx/critters/frog.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Ghost",
              "anchor": "Ghost"
            }
          ],
          "decl": "var Ghost = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ghost\",\n\t\tDesc:     \"A sheet ghost bobs over the floor: its scalloped hem ripples and trails its drift, little arms flutter, it glances about and blinks, motes trickle off its hem.\",\n\t\tTags:     []string{\"critter\", \"ghost\", \"spirit\", \"undead\", \"spooky\", \"float\", \"loop\"},\n\t\tSize:     [2]int{96, 100},\n\t\tOrigin:   [2]int{48, 90},\n\t\tDuration: 2.4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#10142a\", \"#232c52\", \"#3e4f86\", \"#6b84bb\", \"#a3b8e2\", \"#d8e4ff\", \"#ffffff\")},\n\t\t\t{Name: \"hover\", Default: pixelfx.Num(14)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newGhost,\n}",
          "doc": "Ghost is a sheet ghost bobbing over the floor: its scalloped hem ripples and trails its drift, little arms flutter, it glances about and blinks, motes trickle off its hem. It is registered as \"critters/ghost\".\n",
          "file": "pkg/pixelfx/critters/ghost.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Jellyfish",
              "anchor": "Jellyfish"
            }
          ],
          "decl": "var Jellyfish = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Jellyfish\",\n\t\tDesc:     \"A see-through jellyfish pulses: its bell squeezes to shove it up and relaxes as it sinks, frilled arms and long tentacles trailing, a glow inside, bubbles drifting by.\",\n\t\tTags:     []string{\"critter\", \"jellyfish\", \"sea\", \"underwater\", \"glow\", \"swim\", \"loop\"},\n\t\tSize:     [2]int{96, 120},\n\t\tOrigin:   [2]int{48, 38},\n\t\tDuration: 3.2,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#140b2b\", \"#2a1650\", \"#4b2386\", \"#7a3cb8\", \"#b066e0\", \"#e09cf5\", \"#ffd6ff\", \"#ffffff\")},\n\t\t\t{Name: \"glow\", Default: pixelfx.Palette(\"#0b3550\", \"#1f7fa8\", \"#4fd2e8\", \"#b8fbff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newJellyfish,\n}",
          "doc": "Jellyfish is a see-through jellyfish pulsing: its bell squeezes to shove it up and relaxes as it sinks, frilled arms and long tentacles trailing, a glow inside, bubbles drifting by. It is registered as \"critters/jellyfish\".\n",
          "file": "pkg/pixelfx/critters/jellyfish.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Slime",
              "anchor": "Slime"
            }
          ],
          "decl": "var Slime = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Slime\",\n\t\tDesc:     \"A glossy slime hops in place: it squashes to wind up, stretches into the jump, rounds out in the air, splats down flinging droplets that creep back, then wobbles and blinks.\",\n\t\tTags:     []string{\"critter\", \"slime\", \"monster\", \"hop\", \"goo\", \"loop\"},\n\t\tSize:     [2]int{112, 88},\n\t\tOrigin:   [2]int{56, 72},\n\t\tDuration: 1.8,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#061412\", \"#0b2f2b\", \"#12594a\", \"#1f8f4f\", \"#47c752\", \"#a6f06a\", \"#f0ffd2\")},\n\t\t\t{Name: \"hop\", Default: pixelfx.Num(24)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newSlime,\n}",
          "doc": "Slime is a glossy slime hopping in place: it squashes to wind up, stretches into the jump, rounds out in the air, splats down flinging droplets that creep back, then wobbles and blinks. It is registered as \"critters/slime\".\n",
          "file": "pkg/pixelfx/critters/slime.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Snake",
              "anchor": "Snake"
            }
          ],
          "decl": "var Snake = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Snake\",\n\t\tDesc:     \"A snake slithers along the floor, head raised: humps rise and roll back down its patterned body to the tail, dust puffs where it touches down, its forked tongue flicks.\",\n\t\tTags:     []string{\"critter\", \"snake\", \"reptile\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{136, 56},\n\t\tOrigin:   [2]int{68, 48},\n\t\tDuration: 2.4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#081410\", \"#123a1e\", \"#1d5e2a\", \"#2f8a36\", \"#5cb848\", \"#a8e070\", \"#e8ffc0\")},\n\t\t\t{Name: \"belly\", Default: pixelfx.Palette(\"#4a3a14\", \"#b08a34\", \"#f0d878\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newSnake,\n}",
          "doc": "Snake is a snake slithering along the floor, head raised: humps rise and roll back down its patterned body to the tail, dust puffs where it touches down, its forked tongue flicks. It is registered as \"critters/snake\".\n",
          "file": "pkg/pixelfx/critters/snake.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Wisp",
              "anchor": "Wisp"
            }
          ],
          "decl": "var Wisp = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Wisp\",\n\t\tDesc:     \"A will-o'-the-wisp loops a figure-eight over the floor: a little soul-flame with a face, its flame tail licking up and streaming behind, shedding puffs and sparks.\",\n\t\tTags:     []string{\"critter\", \"wisp\", \"spirit\", \"flame\", \"magic\", \"flying\", \"loop\"},\n\t\tSize:     [2]int{128, 104},\n\t\tOrigin:   [2]int{64, 96},\n\t\tDuration: 3.2,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0a1f2e\", \"#0f3d52\", \"#14707e\", \"#1fa8a8\", \"#4fe0c8\", \"#a8fff0\", \"#ffffff\")},\n\t\t\t{Name: \"hover\", Default: pixelfx.Num(36)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newWisp,\n}",
          "doc": "Wisp is a will-o'-the-wisp looping a figure-eight over the floor: a little soul-flame with a face, its flame tail licking up and streaming behind, shedding puffs and sparks. It is registered as \"critters/wisp\".\n",
          "file": "pkg/pixelfx/critters/wisp.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/explosions",
      "name": "explosions",
      "dir": "pkg/pixelfx/explosions",
      "page": "pkg/pixelfx/explosions",
      "synopsis": "Package explosions is pixelfx's explosions category: barrel explosion, big explosion, cartoon POW, dirt explosion, firework burst, firework rocket, grenade, implosion, nuke, plasma explosion, small explosion and smoke bomb, each a pixelfx.Effect registered as \"explosions/<name>\" when the package is imported.",
      "doc": "Package explosions is pixelfx's explosions category: barrel explosion, big explosion, cartoon POW, dirt explosion, firework burst, firework rocket, grenade, implosion, nuke, plasma explosion, small explosion and smoke bomb, each a pixelfx.Effect registered as \"explosions/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "BarrelExplosion",
              "anchor": "BarrelExplosion"
            }
          ],
          "decl": "var BarrelExplosion = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Barrel explosion\",\n\t\tDesc:     \"An explosive barrel shudders, its lid bulging and spitting flame, then blows: a fireball column, staves and the lid flying, burning fuel splashed over the floor.\",\n\t\tTags:     []string{\"explosion\", \"barrel\", \"fire\", \"smoke\", \"debris\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{barrelW, barrelH},\n\t\tOrigin:   [2]int{barrelOX, barrelOY},\n\t\tDuration: barrelDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"barrel\", Default: pixelfx.Palette(\"#1c0a0e\", \"#4a1218\", \"#7c1a1e\", \"#b02a26\", \"#d8483a\", \"#f08a70\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newBarrelExplosion,\n}",
          "doc": "BarrelExplosion is an explosive barrel that shudders, its lid bulging and spitting flame, then blows: a fireball column, staves and the lid flying, burning fuel splashed over the floor. It is registered as \"explosions/barrel-explosion\".\n",
          "file": "pkg/pixelfx/explosions/barrel_explosion.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "BigExplosion",
              "anchor": "BigExplosion"
            }
          ],
          "decl": "var BigExplosion = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Big explosion\",\n\t\tDesc:     \"A huge ground blast in three beats: a white dome, a rolling fireball that climbs into a mushrooming smoke column, heavy rocks, and fires left burning.\",\n\t\tTags:     []string{\"explosion\", \"fire\", \"smoke\", \"debris\", \"mushroom\", \"big\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{bigW, bigH},\n\t\tOrigin:   [2]int{bigOX, bigOY},\n\t\tDuration: bigDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(11)},\n\t\t},\n\t},\n\tNew: newBigExplosion,\n}",
          "doc": "BigExplosion is a huge ground blast in three beats: a white dome, a rolling fireball that climbs into a mushrooming smoke column, heavy rocks, and fires left burning. It is registered as \"explosions/big-explosion\".\n",
          "file": "pkg/pixelfx/explosions/big_explosion.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "CartoonPow",
              "anchor": "CartoonPow"
            }
          ],
          "decl": "var CartoonPow = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Cartoon POW\",\n\t\tDesc:     \"A comic-book hit: a jagged two-tone burst star slams in with a shake and boiling edges, POW! drops in letter by letter, action lines fly, then it all snaps away.\",\n\t\tTags:     []string{\"cartoon\", \"comic\", \"pow\", \"hit\", \"impact\", \"text\", \"one-shot\"},\n\t\tSize:     [2]int{powW, powH},\n\t\tOrigin:   [2]int{powOX, powOY},\n\t\tDuration: 1.05,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0e14\", \"#6e1a12\", \"#c8361a\", \"#f47a24\", \"#ffc23c\", \"#fff07a\", \"#ffffff\")},\n\t\t\t{Name: \"text\", Default: pixelfx.Text(\"POW!\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newCartoonPow,\n}",
          "doc": "CartoonPow is a comic-book hit: a jagged two-tone burst star slams in with a shake and boiling edges, the word (POW! by default) drops in letter by letter, action lines fly, then it all snaps away. It is registered as \"explosions/cartoon-pow\".\n",
          "file": "pkg/pixelfx/explosions/cartoon_pow.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "DirtExplosion",
              "anchor": "DirtExplosion"
            }
          ],
          "decl": "var DirtExplosion = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Dirt explosion\",\n\t\tDesc:     \"A buried charge goes off: a flash under the floor, a V of dirt clods and grit thrown high, a brown dust plume that billows and settles, and a crater left behind.\",\n\t\tTags:     []string{\"explosion\", \"dirt\", \"earth\", \"dust\", \"debris\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{dirtW, dirtH},\n\t\tOrigin:   [2]int{dirtOX, dirtOY},\n\t\tDuration: dirtDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1c1610\", \"#33281c\", \"#4f3f2c\", \"#6e5a40\", \"#927a58\", \"#b89f78\", \"#dcc8a2\")},\n\t\t\t{Name: \"fire\", Default: pixelfx.Palette(\"#4a1712\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newDirtExplosion,\n}",
          "doc": "DirtExplosion is a buried charge going off: a flash under the floor, a V of dirt clods and grit thrown high, a brown dust plume that billows and settles, and a crater left behind. It is registered as \"explosions/dirt-explosion\".\n",
          "file": "pkg/pixelfx/explosions/dirt_explosion.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "FireworkBurst",
              "anchor": "FireworkBurst"
            }
          ],
          "decl": "var FireworkBurst = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Firework burst\",\n\t\tDesc:     \"A shell climbs, slows and bursts into a sphere of coloured trailing stars round a gold core; they droop, crackle into white pops and fade, leaving glitter.\",\n\t\tTags:     []string{\"firework\", \"celebration\", \"sparkle\", \"sky\", \"burst\", \"one-shot\"},\n\t\tSize:     [2]int{240, 248},\n\t\tOrigin:   [2]int{120, 100},\n\t\tDuration: 3.6,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#3d0a33\", \"#701560\", \"#b0228f\", \"#f53cd1\", \"#ff86e6\", \"#ffd2f6\", \"#ffffff\")},\n\t\t\t{Name: \"core\", Default: pixelfx.Palette(\"#4a2c08\", \"#86520c\", \"#c48412\", \"#f0b424\", \"#ffe066\", \"#fff6c4\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newFireworkBurst,\n}",
          "doc": "FireworkBurst is a shell that climbs, slows and bursts into a sphere of coloured trailing stars round a gold core; they droop, crackle into white pops and fade, leaving glitter. It is registered as \"explosions/firework-burst\".\n",
          "file": "pkg/pixelfx/explosions/firework_burst.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "FireworkRocket",
              "anchor": "FireworkRocket"
            }
          ],
          "decl": "var FireworkRocket = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Firework rocket\",\n\t\tDesc:     \"A rocket fizzes off the ground on a sparkling gold trail, coasts, and bursts into a palm: heavy gold fronds arc out, droop on glittering trails and crackle at the tips.\",\n\t\tTags:     []string{\"firework\", \"rocket\", \"celebration\", \"sparkle\", \"sky\", \"one-shot\"},\n\t\tSize:     [2]int{rocketW, rocketH},\n\t\tOrigin:   [2]int{rocketOX, rocketOY},\n\t\tDuration: 3.8,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1406\", \"#6a3a0c\", \"#b8701a\", \"#f0a830\", \"#ffd860\", \"#fff2b0\", \"#ffffff\")},\n\t\t\t{Name: \"tips\", Default: pixelfx.Palette(\"#0c2a3a\", \"#1a5a78\", \"#36a2c8\", \"#7cd8f0\", \"#c8f4ff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(12)},\n\t\t},\n\t},\n\tNew: newFireworkRocket,\n}",
          "doc": "FireworkRocket is a rocket that fizzes off the ground on a sparkling gold trail, coasts, and bursts into a palm: heavy gold fronds arc out, droop on glittering trails and crackle at the tips. It is registered as \"explosions/firework-rocket\".\n",
          "file": "pkg/pixelfx/explosions/firework_rocket.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "Grenade",
              "anchor": "Grenade"
            }
          ],
          "decl": "var Grenade = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Grenade\",\n\t\tDesc:     \"A grenade is lobbed in, bounces, rolls to a stop with its fuse fizzing, shudders, then blows: a white flash, shrapnel streaks, sparks, a small fireball and a scorch.\",\n\t\tTags:     []string{\"explosion\", \"grenade\", \"shrapnel\", \"fire\", \"smoke\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{grenadeW, grenadeH},\n\t\tOrigin:   [2]int{grenadeOX, grenadeOY},\n\t\tDuration: grenadeDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"body\", Default: pixelfx.Palette(\"#141a10\", \"#2c3a1e\", \"#4a5c30\", \"#6e8446\", \"#9ab06a\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newGrenade,\n}",
          "doc": "Grenade is a grenade lobbed in that bounces, rolls to a stop with its fuse fizzing, shudders, then blows: a white flash, shrapnel streaks, sparks, a small fireball and a scorch. It is registered as \"explosions/grenade\".\n",
          "file": "pkg/pixelfx/explosions/grenade.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "Implosion",
              "anchor": "Implosion"
            }
          ],
          "decl": "var Implosion = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Implosion\",\n\t\tDesc:     \"Everything is sucked in: streaks and grit rush inward, rings contract and a dark sphere collapses onto a crushed white point; a beat of stillness, then a sharp pop.\",\n\t\tTags:     []string{\"implosion\", \"energy\", \"magic\", \"collapse\", \"pop\", \"one-shot\"},\n\t\tSize:     [2]int{implW, implH},\n\t\tOrigin:   [2]int{implOX, implOY},\n\t\tDuration: 1.65,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0a0614\", \"#1c1236\", \"#3a2470\", \"#6a44c0\", \"#a080f0\", \"#d8c8ff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newImplosion,\n}",
          "doc": "Implosion sucks everything in: streaks and grit rush inward, rings contract and a dark sphere collapses onto a crushed white point; a beat of stillness, then a sharp pop. It is registered as \"explosions/implosion\".\n",
          "file": "pkg/pixelfx/explosions/implosion.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Nuke",
              "anchor": "Nuke"
            }
          ],
          "decl": "var Nuke = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Nuke\",\n\t\tDesc:     \"A blinding white frame, then a fireball lifts on a thin stem into a wide rolling cap that glows from inside; a white skirt flashes and a dust surge sweeps the floor.\",\n\t\tTags:     []string{\"explosion\", \"nuke\", \"mushroom\", \"cloud\", \"big\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{nukeW, nukeH},\n\t\tOrigin:   [2]int{nukeOX, nukeOY},\n\t\tDuration: 9,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"dust\", Default: pixelfx.Color(\"#8a7466\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newNuke,\n}",
          "doc": "Nuke is a blinding white frame, then a fireball that lifts on a thin stem into a wide rolling cap glowing from inside; a white skirt flashes and a dust surge sweeps the floor. It is registered as \"explosions/nuke\".\n",
          "file": "pkg/pixelfx/explosions/nuke.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "PlasmaExplosion",
              "anchor": "PlasmaExplosion"
            }
          ],
          "decl": "var PlasmaExplosion = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Plasma explosion\",\n\t\tDesc:     \"A blue-violet energy blast with no smoke: a white flash, a ball of plasma swelling into a thinning shell, shock rings in and out of depth, lightning arcs crackling off it.\",\n\t\tTags:     []string{\"explosion\", \"plasma\", \"energy\", \"electric\", \"magic\", \"sci-fi\", \"one-shot\"},\n\t\tSize:     [2]int{plasmaW, plasmaH},\n\t\tOrigin:   [2]int{plasmaOX, plasmaOY},\n\t\tDuration: 1.7,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0a0828\", \"#1a1c6e\", \"#2c3cc0\", \"#4a7cf0\", \"#7cc0ff\", \"#c8ecff\", \"#ffffff\")},\n\t\t\t{Name: \"accent\", Default: pixelfx.Palette(\"#1c0a30\", \"#4a1a8c\", \"#8a3ce0\", \"#c48cff\", \"#f0d8ff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tNew: newPlasmaExplosion,\n}",
          "doc": "PlasmaExplosion is a blue-violet energy blast with no smoke: a white flash, a ball of plasma swelling into a thinning shell, shock rings in and out of depth, lightning arcs crackling off it. It is registered as \"explosions/plasma-explosion\".\n",
          "file": "pkg/pixelfx/explosions/plasma_explosion.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "SmallExplosion",
              "anchor": "SmallExplosion"
            }
          ],
          "decl": "var SmallExplosion = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Explosion\",\n\t\tDesc:     \"A ground blast: a white flash and shock rings, fire that cools into a rolling smoke column, sparks, burning brands that land and keep burning, tumbling rocks and a glowing scorch.\",\n\t\tTags:     []string{\"explosion\", \"fire\", \"smoke\", \"debris\", \"impact\", \"one-shot\"},\n\t\tSize:     [2]int{300, 240},\n\t\tOrigin:   [2]int{150, 196},\n\t\tDuration: smallDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"size\", Default: pixelfx.Num(1)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tNew: newSmallExplosion,\n}",
          "doc": "SmallExplosion is a ground blast: a white flash and shock rings, fire that cools into a rolling smoke column, sparks, burning brands that land and keep burning, tumbling rocks and a glowing scorch. It is registered as \"explosions/small-explosion\".\n",
          "file": "pkg/pixelfx/explosions/small_explosion.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "SmokeBomb",
              "anchor": "SmokeBomb"
            }
          ],
          "decl": "var SmokeBomb = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Smoke bomb\",\n\t\tDesc:     \"A round canister clinks down, fuse sparking, and pops: thick grey-violet smoke gushes out, rolls along the floor, billows into a cloud that hides all, then thins to wisps.\",\n\t\tTags:     []string{\"smoke\", \"smoke-bomb\", \"ninja\", \"vanish\", \"escape\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{smokeW, smokeH},\n\t\tOrigin:   [2]int{smokeOX, smokeOY},\n\t\tDuration: smokeDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0e0b14\", \"#1e1828\", \"#30283e\", \"#463c58\", \"#62567a\", \"#867a9e\", \"#aea4c4\")},\n\t\t\t{Name: \"canister\", Default: pixelfx.Palette(\"#16121e\", \"#2a2434\", \"#443c52\", \"#686078\", \"#9c94ac\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newSmokeBomb,\n}",
          "doc": "SmokeBomb is a round canister that clinks down, fuse sparking, and pops: thick grey-violet smoke gushes out, rolls along the floor, billows into a cloud that hides all, then thins to wisps. It is registered as \"explosions/smoke-bomb\".\n",
          "file": "pkg/pixelfx/explosions/smoke_bomb.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/fire",
      "name": "fire",
      "dir": "pkg/pixelfx/fire",
      "page": "pkg/pixelfx/fire",
      "synopsis": "Package fire is pixelfx's fire category: brazier, campfire, candle, fire breath, fire ring, fire tornado, fireball, flame pillar, flamethrower, meteor, spirit flame and torch, each a pixelfx.Effect registered as \"fire/<name>\" when the package is imported.",
      "doc": "Package fire is pixelfx's fire category: brazier, campfire, candle, fire breath, fire ring, fire tornado, fireball, flame pillar, flamethrower, meteor, spirit flame and torch, each a pixelfx.Effect registered as \"fire/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Brazier",
              "anchor": "Brazier"
            }
          ],
          "decl": "var Brazier = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Brazier\",\n\t\tDesc:     \"An iron bowl on a tripod heaped with glowing coals and a big roaring fire, sparks and embers streaming up off it, light on the iron and the floor.\",\n\t\tTags:     []string{\"fire\", \"brazier\", \"prop\", \"light\", \"sparks\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{112, 148},\n\t\tOrigin:   [2]int{56, 136},\n\t\tDuration: brazierDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"iron\", Default: pixelfx.Palette(\"#0b0910\", \"#1c1924\", \"#302c3a\", \"#4c4658\", \"#78708a\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newBrazier,\n}",
          "doc": "Brazier is an iron bowl on a tripod heaped with glowing coals and a big roaring fire, sparks and embers streaming up off it, light on the iron and the floor. It is registered as \"fire/brazier\".\n",
          "file": "pkg/pixelfx/fire/brazier.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Campfire",
              "anchor": "Campfire"
            }
          ],
          "decl": "var Campfire = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Campfire\",\n\t\tDesc:     \"Crossed logs on a bed of coals and a lively fire: tongues that lick and leap, popping sparks, embers drifting up, smoke curling off, a warm pool of light.\",\n\t\tTags:     []string{\"fire\", \"campfire\", \"prop\", \"light\", \"smoke\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{128, 128},\n\t\tOrigin:   [2]int{64, 112},\n\t\tDuration: campfireDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"wood\", Default: pixelfx.Palette(\"#0e080a\", \"#24130f\", \"#3b2216\", \"#5a3520\", \"#8a5a34\", \"#b9884f\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(22)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newCampfire,\n}",
          "doc": "Campfire is crossed logs on a bed of coals and a lively fire: tongues that lick and leap, popping sparks, embers drifting up, smoke curling off, a warm pool of light. It is registered as \"fire/campfire\".\n",
          "file": "pkg/pixelfx/fire/campfire.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Candle",
              "anchor": "Candle"
            }
          ],
          "decl": "var Candle = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Candle\",\n\t\tDesc:     \"A wax candle in a brass dish: a calm flame with a blue root that sways and stretches, a halo of light, motes drifting in it, a bead of wax running down a drip.\",\n\t\tTags:     []string{\"fire\", \"candle\", \"prop\", \"light\", \"calm\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{56, 76},\n\t\tOrigin:   [2]int{28, 64},\n\t\tDuration: candleDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"root\", Default: pixelfx.Palette(\"#1b2a8a\", \"#3a62e0\", \"#7fb4ff\")},\n\t\t\t{Name: \"wax\", Default: pixelfx.Palette(\"#2e201e\", \"#5e4436\", \"#8e6e58\", \"#b8957a\", \"#d8b896\", \"#f0dcc0\")},\n\t\t\t{Name: \"brass\", Default: pixelfx.Palette(\"#2a1a10\", \"#6a4a1e\", \"#b4862e\", \"#e8c060\", \"#fff0b0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newCandle,\n}",
          "doc": "Candle is a wax candle in a brass dish: a calm flame with a blue root that sways and stretches, a halo of light, motes drifting in it, a bead of wax running down a drip. It is registered as \"fire/candle\".\n",
          "file": "pkg/pixelfx/fire/candle.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "FireBreath",
              "anchor": "FireBreath"
            }
          ],
          "decl": "var FireBreath = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Fire breath\",\n\t\tDesc:     \"A roaring cone of fire streaming right from the mouth: white-hot at the lips, billowing out and cooling to red and smoke at its edges, sparks thrown out ahead.\",\n\t\tTags:     []string{\"fire\", \"breath\", \"dragon\", \"stream\", \"cone\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{160, 116},\n\t\tOrigin:   [2]int{12, 72},\n\t\tDuration: breathDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"spread\", Default: pixelfx.Num(0.24)},\n\t\t\t{Name: \"speed\", Default: pixelfx.Num(320)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newFireBreath,\n}",
          "doc": "FireBreath is a roaring cone of fire streaming right from the mouth: white-hot at the lips, billowing out and cooling to red and smoke at its edges, sparks thrown out ahead. It is registered as \"fire/fire-breath\".\n",
          "file": "pkg/pixelfx/fire/fire_breath.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "FireRing",
              "anchor": "FireRing"
            }
          ],
          "decl": "var FireRing = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Fire ring\",\n\t\tDesc:     \"A white flash at the feet, then flames race outward along the floor in a ring, flaring as the front passes and burning down behind it over a smouldering scorch.\",\n\t\tTags:     []string{\"fire\", \"ring\", \"nova\", \"aoe\", \"spell\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{224, 128},\n\t\tOrigin:   [2]int{112, 92},\n\t\tDuration: ringDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"reach\", Default: pixelfx.Num(92)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{70},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.32, Pose: pixelfx.Ready},\n\t\t\t{T: 0.02, Pose: ringHigh},\n\t\t\t{T: 0.27, Pose: ringHigh.With(pixelfx.Y.Is(-1))},\n\t\t\t{T: 0.32, Pose: ringSlam, How: \"snap\"},\n\t\t\t{T: 0.85, Pose: ringSlam.With(pixelfx.Crouch.Is(7))},\n\t\t\t{T: 1.5, Pose: ringEase},\n\t\t\t{T: 2.4, Pose: pixelfx.Ready},\n\t\t\t{T: 3.9, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.32, Stop: 0.1, Shake: 0.28, Amp: pixelfx.Val(3), NoTarget: true},\n\t\t\t{T: 0.6, Push: pixelfx.Val(1.2), Straw: pixelfx.Val(10), Y: pixelfx.Val(-8), Skin: \"char\"},\n\t\t\t{T: 3.5, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 0.32, X: 10, N: 6, Dir: 1}, {T: 0.32, X: -10, N: 6, Dir: -1}},\n\t},\n\tNew: newFireRing,\n}",
          "doc": "FireRing is a white flash at the feet, then flames race outward along the floor in a ring, flaring as the front passes and burning down behind it over a smouldering scorch. A character acts it out, slamming its hands down. It is registered as \"fire/fire-ring\".\n",
          "file": "pkg/pixelfx/fire/fire_ring.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "FireTornado",
              "anchor": "FireTornado"
            }
          ],
          "decl": "var FireTornado = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Fire tornado\",\n\t\tDesc:     \"A spinning funnel of fire: spiral bands turning round it, licks flung off its sides, a ring of flame whirling at its foot, embers orbiting it in and out of view.\",\n\t\tTags:     []string{\"fire\", \"tornado\", \"vortex\", \"spell\", \"aoe\", \"loop\"},\n\t\tSize:     [2]int{120, 152},\n\t\tOrigin:   [2]int{60, 136},\n\t\tDuration: tornadoDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(80)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newFireTornado,\n}",
          "doc": "FireTornado is a spinning funnel of fire: spiral bands turning round it, licks flung off its sides, a ring of flame whirling at its foot, embers orbiting it in and out of view. It is registered as \"fire/fire-tornado\".\n",
          "file": "pkg/pixelfx/fire/fire_tornado.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Fireball",
              "anchor": "Fireball"
            }
          ],
          "decl": "var Fireball = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Fireball\",\n\t\tDesc:     \"A fireball flying right: a churning white-hot head with a corona of flame, a long torn tail of flame puffs cooling into smoke, embers shed behind.\",\n\t\tTags:     []string{\"fire\", \"fireball\", \"projectile\", \"magic\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{136, 56},\n\t\tOrigin:   [2]int{112, 28},\n\t\tDuration: fireballDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"radius\", Default: pixelfx.Num(5)},\n\t\t\t{Name: \"speed\", Default: pixelfx.Num(120)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newFireball,\n}",
          "doc": "Fireball is a fireball flying right: a churning white-hot head with a corona of flame, a long torn tail of flame puffs cooling into smoke, embers shed behind. It is registered as \"fire/fireball\".\n",
          "file": "pkg/pixelfx/fire/fireball.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "FlamePillar",
              "anchor": "FlamePillar"
            }
          ],
          "decl": "var FlamePillar = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Flame pillar\",\n\t\tDesc:     \"The floor cracks and glows, a column of fire erupts white-hot and roars, spewing embers and shedding flame, then collapses into rolling smoke.\",\n\t\tTags:     []string{\"fire\", \"pillar\", \"eruption\", \"spell\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{184, 256},\n\t\tOrigin:   [2]int{92, 232},\n\t\tDuration: pillarDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(140)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newFlamePillar,\n}",
          "doc": "FlamePillar is the floor cracking and glowing, then a column of fire erupting white-hot and roaring, spewing embers and shedding flame, then collapsing into rolling smoke. It is registered as \"fire/flame-pillar\".\n",
          "file": "pkg/pixelfx/fire/flame_pillar.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Flamethrower",
              "anchor": "Flamethrower"
            }
          ],
          "decl": "var Flamethrower = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Flamethrower\",\n\t\tDesc:     \"A pressurised jet shooting right: a blue pilot at the nozzle, a tight stream with surges racing down it, a sputter, burning drops falling off, a tip that curls up into smoke.\",\n\t\tTags:     []string{\"fire\", \"flamethrower\", \"stream\", \"weapon\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{184, 104},\n\t\tOrigin:   [2]int{30, 60},\n\t\tDuration: throwerDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"pilot\", Default: pixelfx.Palette(\"#1b2a8a\", \"#3a62e0\", \"#a8d4ff\")},\n\t\t\t{Name: \"reach\", Default: pixelfx.Num(112)},\n\t\t\t{Name: \"speed\", Default: pixelfx.Num(280)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newFlamethrower,\n}",
          "doc": "Flamethrower is a pressurised jet shooting right: a blue pilot at the nozzle, a tight stream with surges racing down it, a sputter, burning drops falling off, a tip that curls up into smoke. It is registered as \"fire/flamethrower\".\n",
          "file": "pkg/pixelfx/fire/flamethrower.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "Meteor",
              "anchor": "Meteor"
            }
          ],
          "decl": "var Meteor = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Meteor\",\n\t\tDesc:     \"A burning rock streaks in from the upper left in a comet of fire and smashes into the floor: a white flash, a fireball, rocks and brands thrown, a glowing crater that cools.\",\n\t\tTags:     []string{\"fire\", \"meteor\", \"impact\", \"explosion\", \"spell\", \"debris\", \"one-shot\"},\n\t\tSize:     [2]int{272, 232},\n\t\tOrigin:   [2]int{150, 208},\n\t\tDuration: meteorDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"rock\", Default: pixelfx.Palette(\"#120e16\", \"#2a2230\", \"#463a4a\", \"#6a5a66\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newMeteor,\n}",
          "doc": "Meteor is a burning rock streaking in from the upper left in a comet of fire and smashing into the floor: a white flash, a fireball, rocks and brands thrown, a glowing crater that cools. It is registered as \"fire/meteor\".\n",
          "file": "pkg/pixelfx/fire/meteor.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "SpiritFlame",
              "anchor": "SpiritFlame"
            }
          ],
          "decl": "var SpiritFlame = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Spirit flame\",\n\t\tDesc:     \"A cold blue-teal ghost fire floating in the air: a bright rim round a hollow dark heart, a wave climbing its wispy tail, curls breaking off, cold sparks rising.\",\n\t\tTags:     []string{\"fire\", \"spirit\", \"ghost\", \"magic\", \"cold\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{80, 124},\n\t\tOrigin:   [2]int{40, 94},\n\t\tDuration: spiritDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#040a16\", \"#08203a\", \"#0b3a52\", \"#0f5e6e\", \"#16908e\", \"#2cc4b4\", \"#7ef0dc\", \"#c8fff2\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tNew: newSpiritFlame,\n}",
          "doc": "SpiritFlame is a cold blue-teal ghost fire floating in the air: a bright rim round a hollow dark heart, a wave climbing its wispy tail, curls breaking off, cold sparks rising. It is registered as \"fire/spirit-flame\".\n",
          "file": "pkg/pixelfx/fire/spirit_flame.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Torch",
              "anchor": "Torch"
            }
          ],
          "decl": "var Torch = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Torch\",\n\t\tDesc:     \"A wall torch on an iron bracket: a licking flame leaping off a pitch-soaked wrap, licks and puffs torn off its tips, smoke, embers, a flickering light on the wall.\",\n\t\tTags:     []string{\"fire\", \"torch\", \"prop\", \"light\", \"wall\", \"dungeon\", \"loop\"},\n\t\tSize:     [2]int{72, 120},\n\t\tOrigin:   [2]int{36, 94},\n\t\tDuration: torchDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"wood\", Default: pixelfx.Palette(\"#0e080a\", \"#24130f\", \"#3b2216\", \"#5a3520\", \"#8a5a34\", \"#b9884f\")},\n\t\t\t{Name: \"iron\", Default: pixelfx.Palette(\"#0d0b12\", \"#1e1b26\", \"#363242\", \"#5b5566\", \"#8a8396\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newTorch,\n}",
          "doc": "Torch is a wall torch on an iron bracket: a licking flame leaping off a pitch-soaked wrap, licks and puffs torn off its tips, smoke, embers, a flickering light on the wall. It is registered as \"fire/torch\".\n",
          "file": "pkg/pixelfx/fire/torch.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/holy",
      "name": "holy",
      "dir": "pkg/pixelfx/holy",
      "page": "pkg/pixelfx/holy",
      "synopsis": "Package holy is pixelfx's holy category: blessings, divine shields, feather bursts, halos, heals and healing rings, holy pillars, resurrections, smites and sunbursts, each a pixelfx.Effect registered as \"holy/<name>\" when the package is imported.",
      "doc": "Package holy is pixelfx's holy category: blessings, divine shields, feather bursts, halos, heals and healing rings, holy pillars, resurrections, smites and sunbursts, each a pixelfx.Effect registered as \"holy/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Blessing",
              "anchor": "Blessing"
            }
          ],
          "decl": "var Blessing = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Blessing\",\n\t\tDesc:     \"A soft cone of light rests on the character from above; sparkles drift down through it, twinkling, and wink out where they land on the head and shoulders.\",\n\t\tTags:     []string{\"holy\", \"blessing\", \"buff\", \"light\", \"sparkle\", \"character\", \"loop\"},\n\t\tSize:     [2]int{80, 128},\n\t\tOrigin:   [2]int{40, 108},\n\t\tDuration: blessingT,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: goldPalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: blessingOpen},\n\t\t\t{T: 0.75, Pose: blessingOpen.With(pixelfx.FY.Is(-33), pixelfx.BY.Is(-33))},\n\t\t\t{T: 1.5, Pose: blessingOpen.With(pixelfx.Crouch.Is(-1), pixelfx.FY.Is(-35), pixelfx.BY.Is(-35))},\n\t\t\t{T: 2.25, Pose: blessingOpen.With(pixelfx.FY.Is(-33), pixelfx.BY.Is(-33))},\n\t\t\t{T: 3, Pose: blessingOpen},\n\t\t},\n\t},\n\tNew: newBlessing,\n}",
          "doc": "Blessing is a soft cone of light resting on the character from above; sparkles drift down through it, twinkling, and wink out where they land on the head and shoulders. It is registered as \"holy/blessing\".\n",
          "file": "pkg/pixelfx/holy/blessing.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "DivineShield",
              "anchor": "DivineShield"
            }
          ],
          "decl": "var DivineShield = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Divine shield\",\n\t\tDesc:     \"A bubble of gold light round the character: a bright rim and a thin gold film, meridians turning like a slow globe, a sheen sweeping across and sparkles winking on it.\",\n\t\tTags:     []string{\"holy\", \"shield\", \"bubble\", \"barrier\", \"buff\", \"character\", \"loop\"},\n\t\tSize:     [2]int{88, 84},\n\t\tOrigin:   [2]int{44, 68},\n\t\tDuration: shieldT,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: goldPalette()},\n\t\t\t{Name: \"radius\", Default: pixelfx.Num(29)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: shieldBrace},\n\t\t\t{T: 0.6, Pose: shieldBrace.With(pixelfx.Crouch.Is(4))},\n\t\t\t{T: 1.2, Pose: shieldBrace.With(pixelfx.FY.Is(-35), pixelfx.Crouch.Is(3))},\n\t\t\t{T: 1.8, Pose: shieldBrace.With(pixelfx.Crouch.Is(4))},\n\t\t\t{T: 2.4, Pose: shieldBrace},\n\t\t},\n\t},\n\tNew: newDivineShield,\n}",
          "doc": "DivineShield is a bubble of gold light round the character: a bright rim and a thin gold film, meridians turning like a slow globe, a sheen sweeping across and sparkles winking on it. It is registered as \"holy/divine-shield\".\n",
          "file": "pkg/pixelfx/holy/divine_shield.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "FeatherBurst",
              "anchor": "FeatherBurst"
            }
          ],
          "decl": "var FeatherBurst = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Feather burst\",\n\t\tDesc:     \"A white puff pops and throws feathers that brake hard, then rock from side to side as they sink and fade, with down drifting after them.\",\n\t\tTags:     []string{\"holy\", \"feather\", \"burst\", \"poof\", \"angel\", \"bird\", \"one-shot\"},\n\t\tSize:     [2]int{160, 160},\n\t\tOrigin:   [2]int{80, 60},\n\t\tDuration: 3,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a4560\", \"#7a7494\", \"#aaa5c2\", \"#d6d3e6\", \"#f4f3fa\", \"#ffffff\")},\n\t\t\t{Name: \"glow\", Default: pixelfx.Color(\"#fff0c0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newFeatherBurst,\n}",
          "doc": "FeatherBurst is a white puff that pops and throws feathers that brake hard, then rock from side to side as they sink and fade, with down drifting after them. It is registered as \"holy/feather-burst\".\n",
          "file": "pkg/pixelfx/holy/feather_burst.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Halo",
              "anchor": "Halo"
            }
          ],
          "decl": "var Halo = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Halo\",\n\t\tDesc:     \"A ring of gold light floats over the head with a glint running round it; fine dust sifts down from it and the head catches its light.\",\n\t\tTags:     []string{\"holy\", \"halo\", \"saint\", \"buff\", \"glow\", \"character\", \"loop\"},\n\t\tSize:     [2]int{56, 80},\n\t\tOrigin:   [2]int{28, 70},\n\t\tDuration: haloT,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: goldPalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: haloPray},\n\t\t\t{T: 0.5, Pose: haloPray.With(pixelfx.Crouch.Is(1))},\n\t\t\t{T: 1, Pose: haloPray.With(pixelfx.Crouch.Is(1), pixelfx.HY.Is(2))},\n\t\t\t{T: 1.5, Pose: haloPray.With(pixelfx.Crouch.Is(1))},\n\t\t\t{T: 2, Pose: haloPray},\n\t\t},\n\t},\n\tNew: newHalo,\n}",
          "doc": "Halo is a ring of gold light floating over the head with a glint running round it; fine dust sifts down from it and the head catches its light. It is registered as \"holy/halo\".\n",
          "file": "pkg/pixelfx/holy/halo.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Heal",
              "anchor": "Heal"
            }
          ],
          "decl": "var Heal = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Heal\",\n\t\tDesc:     \"Petals of light bloom under the feet, a hoop of light rises up the body restoring its colour and leaving sparkles, and motes spiral up and pop into tiny hearts.\",\n\t\tTags:     []string{\"holy\", \"heal\", \"restore\", \"buff\", \"petals\", \"hearts\", \"character\", \"one-shot\"},\n\t\tSize:     [2]int{80, 104},\n\t\tOrigin:   [2]int{40, 92},\n\t\tDuration: 1.9,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#3d2027\", \"#7d3f35\", \"#c97a4a\", \"#f2b46a\", \"#ffd994\", \"#fff0cf\", \"#fffaf2\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.3, Pose: healHurt},\n\t\t\t{T: 0.16, Pose: healHurt.With(pixelfx.Crouch.Is(6))},\n\t\t\t{T: 0.5, Pose: healHurt.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(1), pixelfx.HY.Is(0))},\n\t\t\t{T: 0.78, Pose: healUp},\n\t\t\t{T: 1.2, Pose: healUp.With(pixelfx.Crouch.Is(0), pixelfx.FY.Is(-30), pixelfx.BY.Is(-30), pixelfx.HY.Is(0))},\n\t\t\t{T: 1.9, Pose: pixelfx.Ready},\n\t\t},\n\t},\n\tNew: newHeal,\n}",
          "doc": "Heal is petals of light blooming under the feet, a hoop of light rising up the body restoring its colour and leaving sparkles, and motes spiralling up to pop into tiny hearts. It is registered as \"holy/heal\".\n",
          "file": "pkg/pixelfx/holy/heal.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "HealAoe",
              "anchor": "HealAoe"
            }
          ],
          "decl": "var HealAoe = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Healing ring\",\n\t\tDesc:     \"A seed of green light sinks into the floor and a soft ring rolls out from it; the floor glows where it passes and plus signs sprout and float up.\",\n\t\tTags:     []string{\"holy\", \"heal\", \"aoe\", \"ring\", \"plus\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{256, 136},\n\t\tOrigin:   [2]int{128, 104},\n\t\tDuration: 2.9,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: greenPalette()},\n\t\t\t{Name: \"reach\", Default: pixelfx.Num(104)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newHealAoe,\n}",
          "doc": "HealAoe is a healing ring: a seed of green light sinks into the floor and a soft ring rolls out from it; the floor glows where it passes and plus signs sprout and float up. It is registered as \"holy/heal-aoe\".\n",
          "file": "pkg/pixelfx/holy/heal_aoe.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "HolyPillar",
              "anchor": "HolyPillar"
            }
          ],
          "decl": "var HolyPillar = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Holy pillar\",\n\t\tDesc:     \"Light breaks through from above: a sun opens at the top and a fan of shafts converges on the mark, pulsing, while a sigil burns on the floor; then the fan folds shut.\",\n\t\tTags:     []string{\"holy\", \"pillar\", \"light\", \"rays\", \"aoe\", \"sigil\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{192, 232},\n\t\tOrigin:   [2]int{96, 204},\n\t\tDuration: 3.5,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: goldPalette()},\n\t\t\t{Name: \"shafts\", Default: pixelfx.Num(7)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newHolyPillar,\n}",
          "doc": "HolyPillar is light breaking through from above: a sun opens at the top and a fan of shafts converges on the mark, pulsing, while a sigil burns on the floor; then the fan folds shut. It is registered as \"holy/holy-pillar\".\n",
          "file": "pkg/pixelfx/holy/holy_pillar.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Resurrection",
              "anchor": "Resurrection"
            }
          ],
          "decl": "var Resurrection = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Resurrection\",\n\t\tDesc:     \"Light pours down on the fallen and life climbs back up the body; wings of light unfold, a halo forms, one great wingbeat, then the wings scatter into feathers.\",\n\t\tTags:     []string{\"holy\", \"revive\", \"resurrect\", \"wings\", \"halo\", \"light\", \"character\", \"one-shot\"},\n\t\tSize:     [2]int{192, 160},\n\t\tOrigin:   [2]int{96, 140},\n\t\tDuration: 4.8,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: goldPalette()},\n\t\t\t{Name: \"ash\", Default: ashPalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tFollow: pixelfx.Val(0.6),\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: resDown},\n\t\t\t{T: 0.5, Pose: resDown},\n\t\t\t{T: 0.85, Pose: resDown.With(pixelfx.Crouch.Is(6), pixelfx.Lean.Is(4), pixelfx.HY.Is(1))},\n\t\t\t{T: 1.15, Pose: resKneel},\n\t\t\t{T: 1.5, Pose: resRisen.With(pixelfx.Y.Is(-2))},\n\t\t\t{T: 1.95, Pose: resRisen.With(pixelfx.Y.Is(-3))},\n\t\t\t{T: 2.1, Pose: resRisen.With(pixelfx.Y.Is(-2), pixelfx.Crouch.Is(1), pixelfx.FY.Is(-37), pixelfx.BY.Is(-37))},\n\t\t\t{T: 2.3, Pose: resRisen.With(pixelfx.Y.Is(-9), pixelfx.FX.Is(-15), pixelfx.FY.Is(-38), pixelfx.BX.Is(16), pixelfx.BY.Is(-38))},\n\t\t\t{T: 2.95, Pose: resRisen.With(pixelfx.Y.Is(-6))},\n\t\t\t{T: 3.8, Pose: resKneel.With(pixelfx.Y.Is(0))},\n\t\t\t{T: 4.3, Pose: pixelfx.Ready},\n\t\t\t{T: 4.8, Pose: pixelfx.Ready},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 3.8, X: 0, N: 5}},\n\t},\n\tNew: newResurrection,\n}",
          "doc": "Resurrection is light pouring down on the fallen while life climbs back up the body; wings of light unfold, a halo forms, one great wingbeat, then the wings scatter into feathers. It is registered as \"holy/resurrection\".\n",
          "file": "pkg/pixelfx/holy/resurrection.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "Smite",
              "anchor": "Smite"
            }
          ],
          "decl": "var Smite = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Smite\",\n\t\tDesc:     \"A glint marks the spot, then a bolt of light drops like a hammer: a white flash, a shockwave over the floor, stone chips flying and cracks that glow and cool.\",\n\t\tTags:     []string{\"holy\", \"smite\", \"strike\", \"impact\", \"light\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{224, 176},\n\t\tOrigin:   [2]int{112, 148},\n\t\tDuration: 2.8,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: goldPalette()},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#5a5066\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newSmite,\n}",
          "doc": "Smite is a glint marking the spot, then a bolt of light dropping like a hammer: a white flash, a shockwave over the floor, stone chips flying and cracks that glow and cool. It is registered as \"holy/smite\".\n",
          "file": "pkg/pixelfx/holy/smite.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Sunburst",
              "anchor": "Sunburst"
            }
          ],
          "decl": "var Sunburst = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Sunburst\",\n\t\tDesc:     \"A white-hot core in a gold corona; long and short rays turn slowly round it, breathing, with glints running out along them that wink at the tips.\",\n\t\tTags:     []string{\"holy\", \"sun\", \"radiant\", \"rays\", \"light\", \"glow\", \"loop\"},\n\t\tSize:     [2]int{128, 128},\n\t\tOrigin:   [2]int{64, 64},\n\t\tDuration: sunburstT,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: goldPalette()},\n\t\t\t{Name: \"rays\", Default: pixelfx.Num(8)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newSunburst,\n}",
          "doc": "Sunburst is a white-hot core in a gold corona; long and short rays turn slowly round it, breathing, with glints running out along them that wink at the tips. It is registered as \"holy/sunburst\".\n",
          "file": "pkg/pixelfx/holy/sunburst.go",
          "line": 12
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/ice",
      "name": "ice",
      "dir": "pkg/pixelfx/ice",
      "page": "pkg/pixelfx/ice",
      "synopsis": "Package ice is pixelfx's ice category: blizzard vortex, freeze, frost breath, frost nova, ice crystal, ice lance, ice shatter, ice spikes, icicle fall and snowflake burst, each a pixelfx.Effect registered as \"ice/<name>\" when the package is imported.",
      "doc": "Package ice is pixelfx's ice category: blizzard vortex, freeze, frost breath, frost nova, ice crystal, ice lance, ice shatter, ice spikes, icicle fall and snowflake burst, each a pixelfx.Effect registered as \"ice/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "BlizzardVortex",
              "anchor": "BlizzardVortex"
            }
          ],
          "decl": "var BlizzardVortex = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Blizzard vortex\",\n\t\tDesc:     \"A swirling snow tornado: wind bands spin up a leaning funnel, flakes and ice crystals orbit in front and behind, snow boils at its foot and cold light fills its throat.\",\n\t\tTags:     []string{\"ice\", \"snow\", \"blizzard\", \"tornado\", \"vortex\", \"wind\", \"loop\"},\n\t\tSize:     [2]int{128, 116},\n\t\tOrigin:   [2]int{64, 102},\n\t\tDuration: vortexDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(80)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(17)},\n\t\t},\n\t},\n\tNew: newBlizzardVortex,\n}",
          "doc": "BlizzardVortex is a swirling snow tornado: wind bands spin up a leaning funnel, flakes and ice crystals orbit in front and behind, snow boils at its foot and cold light fills its throat. It is registered as \"ice/blizzard-vortex\".\n",
          "file": "pkg/pixelfx/ice/blizzard_vortex.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Freeze",
              "anchor": "Freeze"
            }
          ],
          "decl": "var Freeze = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Freeze\",\n\t\tDesc:     \"Frost races in and climbs the character, turning it to ice; a faceted block crystallizes round it pane by pane, glints, cracks and bursts, and the character thaws free.\",\n\t\tTags:     []string{\"ice\", \"freeze\", \"frozen\", \"status\", \"crowd-control\", \"one-shot\"},\n\t\tSize:     [2]int{176, 128},\n\t\tOrigin:   [2]int{88, 108},\n\t\tDuration: freezeDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.2, Pose: pixelfx.Ready},\n\t\t\t{T: 0.05, Pose: pixelfx.Ready},\n\t\t\t{T: 0.16, Pose: freezeFear, How: \"snap\"},\n\t\t\t{T: 0.3, Pose: freezeFear.With(pixelfx.Lean.Is(-1), pixelfx.FX.Is(-10), pixelfx.FY.Is(-34))},\n\t\t\t{T: 0.45, Pose: freezeFear.With(pixelfx.Lean.Is(-3), pixelfx.BX.Is(11), pixelfx.BY.Is(-34), pixelfx.FX.Is(-7), pixelfx.FY.Is(-29))},\n\t\t\t{T: 0.62, Pose: freezeFear},\n\t\t\t{T: 2.52, Pose: freezeFear},\n\t\t\t{T: 2.54, Pose: freezeFree, How: \"snap\"},\n\t\t\t{T: 2.9, Pose: freezeFree.With(pixelfx.Crouch.Is(4))},\n\t\t\t{T: 3.1, Pose: freezeFree.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(1))},\n\t\t\t{T: 3.3, Pose: freezeFree.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(-1))},\n\t\t\t{T: 4, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.62, Stop: 0.03, Shake: 0.08, Amp: pixelfx.Val(1)},\n\t\t\t{T: 2.52, Stop: 0.05, Shake: 0.2, Amp: pixelfx.Val(2)},\n\t\t},\n\t},\n\tNew: newFreeze,\n}",
          "doc": "Freeze races frost in and up the character, turning it to ice; a faceted block crystallizes round it pane by pane, glints, cracks and bursts, and the character thaws free. It is registered as \"ice/freeze\".\n",
          "file": "pkg/pixelfx/ice/freeze.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "FrostBreath",
              "anchor": "FrostBreath"
            }
          ],
          "decl": "var FrostBreath = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Frost breath\",\n\t\tDesc:     \"A cone of icy wind blowing right: frost puffs billow out, swell and sink, wind streaks race through, ice crystals tumble and glint off a white-hot mouth.\",\n\t\tTags:     []string{\"ice\", \"breath\", \"frost\", \"cone\", \"wind\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{184, 104},\n\t\tOrigin:   [2]int{12, 50},\n\t\tDuration: breathDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"spread\", Default: pixelfx.Num(0.21)},\n\t\t\t{Name: \"power\", Default: pixelfx.Num(1)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(11)},\n\t\t},\n\t},\n\tNew: newFrostBreath,\n}",
          "doc": "FrostBreath is a cone of icy wind blowing right: frost puffs billow out, swell and sink, wind streaks race through, ice crystals tumble and glint off a white-hot mouth. It is registered as \"ice/frost-breath\".\n",
          "file": "pkg/pixelfx/ice/frost_breath.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "FrostNova",
              "anchor": "FrostNova"
            }
          ],
          "decl": "var FrostNova = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Frost nova\",\n\t\tDesc:     \"Frost spirals into a spinning snowflake, then a wave blooms three rings of ice crystals round the caster; snow drifts, frost creeps, and the ice melts back into the floor.\",\n\t\tTags:     []string{\"ice\", \"nova\", \"aoe\", \"frost\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{288, 192},\n\t\tOrigin:   [2]int{144, 150},\n\t\tDuration: novaDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"reach\", Default: pixelfx.Num(104)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{76},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.34, Pose: pixelfx.Ready},\n\t\t\t{T: -0.04, Pose: novaHigh.With(pixelfx.Crouch.Is(2), pixelfx.FY.Is(-36), pixelfx.BY.Is(-36))},\n\t\t\t{T: 0.36, Pose: novaHigh},\n\t\t\t{T: 0.42, Pose: novaSlam, How: \"snap\"},\n\t\t\t{T: 0.9, Pose: novaSlam.With(pixelfx.Crouch.Is(7))},\n\t\t\t{T: 1.9, Pose: novaSlam.With(pixelfx.Crouch.Is(6))},\n\t\t\t{T: 2.6, Pose: novaEase},\n\t\t\t{T: 3.4, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.42, Stop: 0.1, Shake: 0.26, Amp: pixelfx.Val(2), NoTarget: true},\n\t\t\t{T: 0.66, Push: pixelfx.Val(0.9), Straw: pixelfx.Val(6), Y: pixelfx.Val(-10), Skin: \"ice\", Shiver: 1.7},\n\t\t\t{T: 2.9, Push: pixelfx.Val(0.2), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 0.42, X: 10, N: 5, Dir: 1, C: novaDust}, {T: 0.42, X: -10, N: 5, Dir: -1, C: novaDust}},\n\t},\n\tNew: newFrostNova,\n}",
          "doc": "FrostNova spirals frost into a spinning snowflake, then a wave blooms three rings of ice crystals round the caster; snow drifts, frost creeps, and the ice melts back into the floor. It is registered as \"ice/frost-nova\".\n",
          "file": "pkg/pixelfx/ice/frost_nova.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "IceCrystal",
              "anchor": "IceCrystal"
            }
          ],
          "decl": "var IceCrystal = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ice crystal\",\n\t\tDesc:     \"A floating ice crystal turning slowly in its own cold light: its facets brighten and darken as they turn, glints flash on them, frost motes circle it.\",\n\t\tTags:     []string{\"ice\", \"crystal\", \"gem\", \"pickup\", \"float\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{96, 100},\n\t\tOrigin:   [2]int{48, 92},\n\t\tDuration: crystalDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(34)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(21)},\n\t\t},\n\t},\n\tNew: newIceCrystal,\n}",
          "doc": "IceCrystal is a floating ice crystal turning slowly in its own cold light: its facets brighten and darken as they turn, glints flash on them, frost motes circle it. It is registered as \"ice/ice-crystal\".\n",
          "file": "pkg/pixelfx/ice/ice_crystal.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "IceLance",
              "anchor": "IceLance"
            }
          ],
          "decl": "var IceLance = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ice lance\",\n\t\tDesc:     \"A faceted ice spear flying right: a light pulse runs through its core, rings of cold air shear off the tip, frost peels off into a wake and crystals shed behind it.\",\n\t\tTags:     []string{\"ice\", \"lance\", \"spear\", \"projectile\", \"directional\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{176, 64},\n\t\tOrigin:   [2]int{146, 32},\n\t\tDuration: lanceDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"length\", Default: pixelfx.Num(40)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(13)},\n\t\t},\n\t},\n\tNew: newIceLance,\n}",
          "doc": "IceLance is a faceted ice spear flying right: a light pulse runs through its core, rings of cold air shear off the tip, frost peels off into a wake and crystals shed behind it. It is registered as \"ice/ice-lance\".\n",
          "file": "pkg/pixelfx/ice/ice_lance.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "IceShatter",
              "anchor": "IceShatter"
            }
          ],
          "decl": "var IceShatter = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ice shatter\",\n\t\tDesc:     \"A block of ice takes a hit from the left: it jolts, cracks race over its faces, it flashes white and bursts into chunks that tumble, bounce and skid off in a roll of ice dust.\",\n\t\tTags:     []string{\"ice\", \"shatter\", \"break\", \"destroy\", \"impact\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{224, 112},\n\t\tOrigin:   [2]int{68, 90},\n\t\tDuration: shatterDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newIceShatter,\n}",
          "doc": "IceShatter is a block of ice taking a hit from the left: it jolts, cracks race over its faces, it flashes white and bursts into chunks that tumble, bounce and skid off in a roll of ice dust. It is registered as \"ice/ice-shatter\".\n",
          "file": "pkg/pixelfx/ice/ice_shatter.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "IceSpikes",
              "anchor": "IceSpikes"
            }
          ],
          "decl": "var IceSpikes = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ice spikes\",\n\t\tDesc:     \"A frost line races along the floor and clusters of jagged ice blades burst up behind it in a rising wave, glint, flash white together and shatter into toppling shards.\",\n\t\tTags:     []string{\"ice\", \"spikes\", \"ground\", \"wave\", \"directional\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{264, 112},\n\t\tOrigin:   [2]int{24, 96},\n\t\tDuration: spikesDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"reach\", Default: pixelfx.Num(172)},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(56)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newIceSpikes,\n}",
          "doc": "IceSpikes is a frost line racing along the floor while clusters of jagged ice blades burst up behind it in a rising wave, glint, flash white together and shatter into toppling shards. It is registered as \"ice/ice-spikes\".\n",
          "file": "pkg/pixelfx/ice/ice_spikes.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "IcicleFall",
              "anchor": "IcicleFall"
            }
          ],
          "decl": "var IcicleFall = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Icicle fall\",\n\t\tDesc:     \"An icicle drips and trembles, snaps off its frosted root, drops, stabs the floor and bursts into skidding shards, splinters and rolling frost.\",\n\t\tTags:     []string{\"ice\", \"icicle\", \"fall\", \"trap\", \"shatter\", \"one-shot\"},\n\t\tSize:     [2]int{152, 120},\n\t\tOrigin:   [2]int{76, 100},\n\t\tDuration: icicleDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newIcicleFall,\n}",
          "doc": "IcicleFall is an icicle that drips and trembles, snaps off its frosted root, drops, stabs the floor and bursts into skidding shards, splinters and rolling frost. It is registered as \"ice/icicle-fall\".\n",
          "file": "pkg/pixelfx/ice/icicle_fall.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "SnowflakeBurst",
              "anchor": "SnowflakeBurst"
            }
          ],
          "decl": "var SnowflakeBurst = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Snowflake burst\",\n\t\tDesc:     \"A cold pop: frost gathers and flashes white in a ring, then crisp six-armed snowflakes spin out, slow, twinkle and drift down to settle and melt.\",\n\t\tTags:     []string{\"ice\", \"snow\", \"snowflake\", \"burst\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{140, 120},\n\t\tOrigin:   [2]int{70, 106},\n\t\tDuration: burstDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(icePalette...)},\n\t\t\t{Name: \"count\", Default: pixelfx.Num(9)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newSnowflakeBurst,\n}",
          "doc": "SnowflakeBurst is a cold pop: frost gathers and flashes white in a ring, then crisp six-armed snowflakes spin out, slow, twinkle and drift down to settle and melt. It is registered as \"ice/snowflake-burst\".\n",
          "file": "pkg/pixelfx/ice/snowflake_burst.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/impacts",
      "name": "impacts",
      "dir": "pkg/pixelfx/impacts",
      "page": "pkg/pixelfx/impacts",
      "synopsis": "Package impacts is pixelfx's impacts category: blunt hits, bullet impacts, critical hits, ground slams, heavy landings, hit flashes, hit sparks, anime impact frames, parries, ricochets and shield blocks, each a pixelfx.Effect registered as \"impacts/<name>\" when the package is imported.",
      "doc": "Package impacts is pixelfx's impacts category: blunt hits, bullet impacts, critical hits, ground slams, heavy landings, hit flashes, hit sparks, anime impact frames, parries, ricochets and shield blocks, each a pixelfx.Effect registered as \"impacts/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "BluntHit",
              "anchor": "BluntHit"
            }
          ],
          "decl": "var BluntHit = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Blunt hit\",\n\t\tDesc:     \"A heavy, soft thud: a white-hot lumpy blob cools to cream in a warm pool of light, inked wedges jab out and snap back, a squashed ring of dust puffs swells and drifts, clods drop.\",\n\t\tTags:     []string{\"impact\", \"hit\", \"blunt\", \"punch\", \"club\", \"thump\", \"dust\", \"comic\", \"one-shot\"},\n\t\tSize:     [2]int{128, 88},\n\t\tOrigin:   [2]int{64, 72},\n\t\tDuration: 0.9,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1d1620\", \"#4a3a3c\", \"#7d6a66\", \"#b09c90\", \"#dccab4\", \"#f6ead2\", \"#ffffff\")},\n\t\t\t{Name: \"warm\", Default: pixelfx.Color(\"#ffc98a\")},\n\t\t\t{Name: \"dust\", Default: pixelfx.Color(\"#b7a8a6\")},\n\t\t\t{Name: \"clod\", Default: pixelfx.Color(\"#6e5a5a\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(22)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newBluntHit,\n}",
          "doc": "BluntHit is a heavy, soft thud: a white-hot lumpy blob cools to cream in a warm pool of light, inked wedges jab out and snap back, a squashed ring of dust puffs swells and drifts, clods drop. It is registered as \"impacts/blunt-hit\".\n",
          "file": "pkg/pixelfx/impacts/blunt_hit.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "BulletImpact",
              "anchor": "BulletImpact"
            }
          ],
          "decl": "var BulletImpact = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Bullet impact\",\n\t\tDesc:     \"A bullet hits a wall on the right: a hot half-star, sparks sprayed back in a cone, a puff of grit, chips that fall and bounce, a pock mark cooling to soot.\",\n\t\tTags:     []string{\"impact\", \"bullet\", \"gun\", \"wall\", \"sparks\", \"debris\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{152, 100},\n\t\tOrigin:   [2]int{116, 84},\n\t\tDuration: bulletDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#5b5079\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(24)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newBulletImpact,\n}",
          "doc": "BulletImpact is a bullet hitting a wall on the right: a hot half-star, sparks sprayed back in a cone, a puff of grit, chips that fall and bounce, a pock mark cooling to soot. It is registered as \"impacts/bullet-impact\".\n",
          "file": "pkg/pixelfx/impacts/bullet_impact.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "CritHit",
              "anchor": "CritHit"
            }
          ],
          "decl": "var CritHit = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Critical hit\",\n\t\tDesc:     \"A critical hit: a jagged starburst slams in white and overshoots, a ring breaks into flying arcs, sparks streak off, shards tumble to the floor under a big flare.\",\n\t\tTags:     []string{\"impact\", \"hit\", \"crit\", \"critical\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{216, 136},\n\t\tOrigin:   [2]int{84, 106},\n\t\tDuration: 0.9,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a0510\", \"#5c0a1c\", \"#a3142a\", \"#e0302c\", \"#ff7a2a\", \"#ffc23d\", \"#fff09a\", \"#ffffff\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(26)},\n\t\t\t{Name: \"aim\", Default: pixelfx.Num(0.12)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newCritHit,\n}",
          "doc": "CritHit is a critical hit: a jagged starburst slams in white and overshoots, a ring breaks into flying arcs, sparks streak off, shards tumble to the floor under a big flare. It is registered as \"impacts/crit-hit\".\n",
          "file": "pkg/pixelfx/impacts/crit_hit.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "GroundSlam",
              "anchor": "GroundSlam"
            }
          ],
          "decl": "var GroundSlam = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ground slam\",\n\t\tDesc:     \"Something lands hard: the floor flashes and cracks, two crescent shock waves race out along it, a dust wave and a tall dust cloud rise, rocks erupt, bounce and settle.\",\n\t\tTags:     []string{\"impact\", \"ground\", \"slam\", \"shockwave\", \"quake\", \"rocks\", \"dust\", \"one-shot\"},\n\t\tSize:     [2]int{288, 208},\n\t\tOrigin:   [2]int{144, 164},\n\t\tDuration: slamDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1712\", \"#5e2c1c\", \"#a4502a\", \"#e8893a\", \"#ffc764\", \"#fff0b4\", \"#ffffff\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"reach\", Default: pixelfx.Num(104)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newGroundSlam,\n}",
          "doc": "GroundSlam is something landing hard: the floor flashes and cracks, two crescent shock waves race out along it, a dust wave and a tall dust cloud rise, rocks erupt, bounce and settle. It is registered as \"impacts/ground-slam\".\n",
          "file": "pkg/pixelfx/impacts/ground_slam.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "HeavyLanding",
              "anchor": "HeavyLanding"
            }
          ],
          "decl": "var HeavyLanding = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Heavy landing\",\n\t\tDesc:     \"A character lands hard: the floor dents and cracks under their feet, two rings of dust roll out along the floor one after the other, and pebbles hop away.\",\n\t\tTags:     []string{\"impact\", \"landing\", \"ground\", \"stomp\", \"dust\", \"rocks\", \"actor\", \"one-shot\"},\n\t\tSize:     [2]int{176, 80},\n\t\tOrigin:   [2]int{88, 60},\n\t\tDuration: landingDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1c1a24\", \"#2f2a3a\", \"#4a4258\", \"#6b6280\", \"#9088a4\", \"#bdb6cc\", \"#e6e1ee\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(14)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.26, Pose: landingFall},\n\t\t\t{T: -0.01, Pose: landingFall.With(pixelfx.Y.Is(-6)), How: \"in\"},\n\t\t\t{T: 0, Pose: landingHero, How: \"snap\"},\n\t\t\t{T: 0.55, Pose: landingHero.With(pixelfx.Crouch.Is(7))},\n\t\t\t{T: 0.95, Pose: landingHero.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(3), pixelfx.FX.Is(13), pixelfx.FY.Is(-15), pixelfx.BX.Is(-5), pixelfx.BY.Is(-20))},\n\t\t\t{T: 1.3, Pose: pixelfx.Ready},\n\t\t\t{T: 1.6, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.005, Stop: 0.13, Shake: 0.32, Amp: pixelfx.Val(3)}},\n\t},\n\tNew: newHeavyLanding,\n}",
          "doc": "HeavyLanding is a character landing hard: the floor dents and cracks under their feet, two rings of dust roll out along the floor one after the other, and pebbles hop away. It is registered as \"impacts/heavy-landing\".\n",
          "file": "pkg/pixelfx/impacts/heavy_landing.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "HitFlash",
              "anchor": "HitFlash"
            }
          ],
          "decl": "var HitFlash = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Hit flash\",\n\t\tDesc:     \"The character takes damage: a white frame, then their own colors flushed red and blinking white, cooling off, while comic hit lines jab in at them.\",\n\t\tTags:     []string{\"impact\", \"hit\", \"damage\", \"hurt\", \"flash\", \"blink\", \"actor\", \"comic\", \"one-shot\"},\n\t\tSize:     [2]int{80, 64},\n\t\tOrigin:   [2]int{40, 54},\n\t\tDuration: 0.5,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#14040a\", \"#3a0a14\", \"#6a101c\", \"#a01824\", \"#d42a30\", \"#ff5a50\", \"#ff9a8a\")},\n\t\t\t{Name: \"lines\", Default: pixelfx.Num(7)},\n\t\t\t{Name: \"side\", Default: pixelfx.Num(1)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(17)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.26, Pose: pixelfx.Ready.With(pixelfx.X.Is(0))},\n\t\t\t{T: 0, Pose: hitFlashBlown, How: \"snap\"},\n\t\t\t{T: 0.16, Pose: hitFlashBlown.With(pixelfx.X.Is(-8), pixelfx.Crouch.Is(5))},\n\t\t\t{T: 0.42, Pose: hitFlashBlown.With(pixelfx.X.Is(-8), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(-2), pixelfx.FX.Is(9), pixelfx.FY.Is(-22), pixelfx.BX.Is(6), pixelfx.BY.Is(-20), pixelfx.FFY.Is(-4))},\n\t\t\t{T: 0.86, Pose: pixelfx.Ready.With(pixelfx.X.Is(0))},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0, Stop: 0.07, Shake: 0.14, Amp: pixelfx.Val(2)}},\n\t},\n\tNew: newHitFlash,\n}",
          "doc": "HitFlash is the character taking damage: a white frame, then their own colors flushed red and blinking white, cooling off, while comic hit lines jab in at them. It is registered as \"impacts/hit-flash\".\n",
          "file": "pkg/pixelfx/impacts/hit_flash.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "HitSpark",
              "anchor": "HitSpark"
            }
          ],
          "decl": "var HitSpark = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Hit spark\",\n\t\tDesc:     \"The everyday hit: a sharp, lopsided cross flare with one long ray along the blow round a white diamond core, then a cone of sparks and hot chips that fall and bounce.\",\n\t\tTags:     []string{\"impact\", \"hit\", \"spark\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{136, 80},\n\t\tOrigin:   [2]int{44, 64},\n\t\tDuration: 0.5,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(20)},\n\t\t\t{Name: \"aim\", Default: pixelfx.Num(0.1)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newHitSpark,\n}",
          "doc": "HitSpark is the everyday hit: a sharp, lopsided cross flare with one long ray along the blow round a white diamond core, then a cone of sparks and hot chips that fall and bounce. It is registered as \"impacts/hit-spark\".\n",
          "file": "pkg/pixelfx/impacts/hit_spark.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ImpactFrame",
              "anchor": "ImpactFrame"
            }
          ],
          "decl": "var ImpactFrame = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Impact frame\",\n\t\tDesc:     \"An anime impact: two frames of white with black burst lines rushing at the hit, two frames inverted, then the lines pull out past the edges and vanish.\",\n\t\tTags:     []string{\"impact\", \"hit\", \"anime\", \"manga\", \"flash\", \"speed-lines\", \"screen\", \"one-shot\"},\n\t\tSize:     [2]int{impactW, impactH},\n\t\tOrigin:   [2]int{impactOX, impactOY},\n\t\tDuration: 0.3,\n\t\tFPS:      30,\n\t\tBG:       \"black\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#000000\", \"#ffffff\")},\n\t\t\t{Name: \"lines\", Default: pixelfx.Num(64)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(19)},\n\t\t},\n\t},\n\tNew: newImpactFrame,\n}",
          "doc": "ImpactFrame is an anime impact: two frames of white with black burst lines rushing at the hit, two frames inverted, then the lines pull out past the edges and vanish. It is registered as \"impacts/impact-frame\".\n",
          "file": "pkg/pixelfx/impacts/impact_frame.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Parry",
              "anchor": "Parry"
            }
          ],
          "decl": "var Parry = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Parry\",\n\t\tDesc:     \"Two blades clash: their edges flash in an X, a white four-point star rings out, a ring breaks into arcs and a fan of gold sparks sprays up and rains down.\",\n\t\tTags:     []string{\"impact\", \"parry\", \"block\", \"clash\", \"sword\", \"metal\", \"sparks\", \"one-shot\"},\n\t\tSize:     [2]int{200, 112},\n\t\tOrigin:   [2]int{100, 96},\n\t\tDuration: 1,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1a08\", \"#6a4410\", \"#b07a1a\", \"#e8b030\", \"#ffe066\", \"#fff6c4\", \"#ffffff\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(30)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(11)},\n\t\t},\n\t},\n\tNew: newParry,\n}",
          "doc": "Parry is two blades clashing: their edges flash in an X, a white four-point star rings out, a ring breaks into arcs and a fan of gold sparks sprays up and rains down. It is registered as \"impacts/parry\".\n",
          "file": "pkg/pixelfx/impacts/parry.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Ricochet",
              "anchor": "Ricochet"
            }
          ],
          "decl": "var Ricochet = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ricochet\",\n\t\tDesc:     \"A tracer streaks down onto the floor, glances off with a white-hot star and skips away at an angle, leaving a glowing skid while sparks skitter along the ground.\",\n\t\tTags:     []string{\"impact\", \"ricochet\", \"bullet\", \"tracer\", \"sparks\", \"ground\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{232, 84},\n\t\tOrigin:   [2]int{64, 60},\n\t\tDuration: ricochetDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#5b5079\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newRicochet,\n}",
          "doc": "Ricochet is a tracer streaking down onto the floor, glancing off with a white-hot star and skipping away at an angle, leaving a glowing skid while sparks skitter along the ground. It is registered as \"impacts/ricochet\".\n",
          "file": "pkg/pixelfx/impacts/ricochet.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ShieldBlock",
              "anchor": "ShieldBlock"
            }
          ],
          "decl": "var ShieldBlock = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Shield block\",\n\t\tDesc:     \"A blow is caught on a half-dome of energy in front of the character: its diamond lattice flashes, a ripple runs over it, sparks glance off, then it blinks out cell by cell.\",\n\t\tTags:     []string{\"impact\", \"block\", \"shield\", \"barrier\", \"energy\", \"ripple\", \"actor\", \"one-shot\"},\n\t\tSize:     [2]int{148, 104},\n\t\tOrigin:   [2]int{40, 88},\n\t\tDuration: 1.1,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#151a3d\", \"#212f6b\", \"#2c58aa\", \"#3a8bd8\", \"#62c8f4\", \"#a6ecff\", \"#dcfbff\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(12)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.36, Pose: pixelfx.Ready},\n\t\t\t{T: -0.1, Pose: shieldBrace},\n\t\t\t{T: 0, Pose: shieldBrace.With(pixelfx.X.Is(-3), pixelfx.Crouch.Is(6), pixelfx.Lean.Is(-2), pixelfx.FX.Is(10), pixelfx.FY.Is(-26)), How: \"snap\"},\n\t\t\t{T: 0.18, Pose: shieldBrace.With(pixelfx.X.Is(-4), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(0))},\n\t\t\t{T: 0.65, Pose: shieldBrace.With(pixelfx.X.Is(-3))},\n\t\t\t{T: 1.1, Pose: pixelfx.Ready.With(pixelfx.X.Is(0))},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.005, Stop: 0.09, Shake: 0.2, Amp: pixelfx.Val(2)}},\n\t\tDust: []pixelfx.DustKick{{T: 0.01, X: -10, N: 6, Dir: -1}},\n\t},\n\tNew: newShieldBlock,\n}",
          "doc": "ShieldBlock is a blow caught on a half-dome of energy in front of the character: its diamond lattice flashes, a ripple runs over it, sparks glance off, then it blinks out cell by cell. It is registered as \"impacts/shield-block\".\n",
          "file": "pkg/pixelfx/impacts/shield_block.go",
          "line": 16
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/lightning",
      "name": "lightning",
      "dir": "pkg/pixelfx/lightning",
      "page": "pkg/pixelfx/lightning",
      "synopsis": "Package lightning is pixelfx's lightning category: ball lightning, chain lightning, charge up, electrified, lightning strike, plasma ball, spark arc, storm cloud, tesla coil, thunderclap and zap hit, each a pixelfx.Effect registered as \"lightning/<name>\" when the package is imported.",
      "doc": "Package lightning is pixelfx's lightning category: ball lightning, chain lightning, charge up, electrified, lightning strike, plasma ball, spark arc, storm cloud, tesla coil, thunderclap and zap hit, each a pixelfx.Effect registered as \"lightning/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "BallLightning",
              "anchor": "BallLightning"
            }
          ],
          "decl": "var BallLightning = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ball lightning\",\n\t\tDesc:     \"A crackling ball of plasma drifts on a wandering loop, spitting arcs off its skin and leaving a wake of fading motes, and zaps the floor when it dips low.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"plasma\", \"orb\", \"wisp\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{136, 104},\n\t\tOrigin:   [2]int{68, 92},\n\t\tDuration: 4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions:  append(voltOptions(), pixelfx.Option{Name: \"seed\", Default: pixelfx.Num(9)}),\n\t},\n\tNew: newBallLightning,\n}",
          "doc": "BallLightning is a crackling ball of plasma on a wandering loop, spitting arcs off its skin and shedding fading motes, that zaps the floor when it dips low. It is registered as \"lightning/ball-lightning\".\n",
          "file": "pkg/pixelfx/lightning/ball_lightning.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ChainLightning",
              "anchor": "ChainLightning"
            }
          ],
          "decl": "var ChainLightning = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Chain lightning\",\n\t\tDesc:     \"A bolt leaps from the caster's hand through three targets in turn; each flashes, sparks and grounds itself to the floor while the arcs between them flicker, then the chain snaps.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"chain\", \"spell\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{248, 104},\n\t\tOrigin:   [2]int{40, 82},\n\t\tDuration: 1.8,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  append(voltOptions(), pixelfx.Option{Name: \"seed\", Default: pixelfx.Num(3)}),\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{58, 104, 150},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.46, Pose: pixelfx.Ready.With(pixelfx.X.Is(-6))},\n\t\t\t{T: -0.22, Pose: clBack},\n\t\t\t{T: 0, Pose: clBack.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 0.04, Pose: clAim, How: \"snap\"},\n\t\t\t{T: 0.7, Pose: clAim.With(pixelfx.Crouch.Is(3))},\n\t\t\t{T: 1.35, Pose: clAim.With(pixelfx.Crouch.Is(3), pixelfx.FY.Is(-18))},\n\t\t\t{T: 1.8, Pose: pixelfx.Ready.With(pixelfx.X.Is(-6))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\tclZap(0, 0.05, 0.03),\n\t\t\tclZap(1, 0.14, 0.03),\n\t\t\tfunc() pixelfx.Hit { h := clZap(2, 0.23, 0.07); h.Shake, h.Amp = 0.14, pixelfx.Val(1); return h }(),\n\t\t\t{T: 1.35, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t},\n\tNew: newChainLightning,\n}",
          "doc": "ChainLightning is a bolt leaping from the caster's hand through three targets in turn; each flashes, sparks and grounds itself to the floor while the arcs between them flicker, then the chain snaps. It is registered as \"lightning/chain-lightning\".\n",
          "file": "pkg/pixelfx/lightning/chain_lightning.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "ChargeUp",
              "anchor": "ChargeUp"
            }
          ],
          "decl": "var ChargeUp = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Charge up\",\n\t\tDesc:     \"Sparks streak and arcs whip in to a crackling core at the caster's hand that swells and pulses faster, then it flashes and bursts: bolts every way, a ring, a spray of sparks.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"charge\", \"spell\", \"power-up\", \"actor\", \"one-shot\"},\n\t\tSize:     [2]int{272, 184},\n\t\tOrigin:   [2]int{124, 148},\n\t\tDuration: 2.7,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: append(voltOptions(),\n\t\t\tpixelfx.Option{Name: \"charge\", Default: pixelfx.Num(1.6)},\n\t\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t),\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tFollow: pixelfx.Val(0),\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.36, Pose: pixelfx.Ready},\n\t\t\t{T: 0, Pose: cuHold},\n\t\t\t{T: 0.8, Pose: cuHold.With(pixelfx.Crouch.Is(4))},\n\t\t\t{T: 1.4, Pose: cuHold.With(pixelfx.Crouch.Is(6), pixelfx.Lean.Is(0))},\n\t\t\t{T: 1.59, Pose: cuHold.With(pixelfx.Crouch.Is(7), pixelfx.Lean.Is(0))},\n\t\t\t{T: 1.6, Pose: cuBurst, How: \"snap\"},\n\t\t\t{T: 1.95, Pose: cuBurst.With(pixelfx.Y.Is(0), pixelfx.Crouch.Is(2), pixelfx.FY.Is(-30), pixelfx.BY.Is(-30), pixelfx.FFY.Is(-4), pixelfx.FBY.Is(-4))},\n\t\t\t{T: 2.7, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 1.6, Stop: 0.14, Shake: 0.3, Amp: pixelfx.Val(3)}},\n\t\tDust: []pixelfx.DustKick{{T: 1.6, X: 10, N: 6, Dir: 1}, {T: 1.6, X: -10, N: 6, Dir: -1}},\n\t},\n\tNew: newChargeUp,\n}",
          "doc": "ChargeUp is sparks streaking and arcs whipping in to a crackling core at the caster's hand that swells and pulses faster, then flashes and bursts: bolts every way, a ring, a spray of sparks. It is registered as \"lightning/charge-up\".\n",
          "file": "pkg/pixelfx/lightning/charge_up.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "Electrified",
              "anchor": "Electrified"
            }
          ],
          "decl": "var Electrified = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Electrified\",\n\t\tDesc:     \"Current runs through a character: arcs crawl over and leap across the body, sparks spit off, the body flares to an electric silhouette on each jolt, and the feet ground out.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"status\", \"shock\", \"stun\", \"actor\", \"loop\"},\n\t\tSize:     [2]int{108, 92},\n\t\tOrigin:   [2]int{54, 76},\n\t\tDuration: 2,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  append(voltOptions(), pixelfx.Option{Name: \"seed\", Default: pixelfx.Num(5)}),\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: elTense},\n\t\t\t{T: 0.1, Pose: elJoltA, How: \"snap\"},\n\t\t\t{T: 0.17, Pose: elJoltB, How: \"snap\"},\n\t\t\t{T: 0.3, Pose: elTense, How: \"snap\"},\n\t\t\t{T: 0.733, Pose: elTense},\n\t\t\t{T: 0.733, Pose: elJoltB, How: \"snap\"},\n\t\t\t{T: 0.8, Pose: elJoltA, How: \"snap\"},\n\t\t\t{T: 0.93, Pose: elTense, How: \"snap\"},\n\t\t\t{T: 1.367, Pose: elTense},\n\t\t\t{T: 1.367, Pose: elJoltA, How: \"snap\"},\n\t\t\t{T: 1.45, Pose: elJoltB, How: \"snap\"},\n\t\t\t{T: 1.58, Pose: elTense, How: \"snap\"},\n\t\t\t{T: 2, Pose: elTense},\n\t\t},\n\t},\n\tNew: newElectrified,\n}",
          "doc": "Electrified is current running through a character: arcs crawl over and leap across the body, sparks spit off, the body flares to an electric silhouette on each jolt, and the feet ground out. It is registered as \"lightning/electrified\".\n",
          "file": "pkg/pixelfx/lightning/electrified.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "LightningStrike",
              "anchor": "LightningStrike"
            }
          ],
          "decl": "var LightningStrike = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Lightning strike\",\n\t\tDesc:     \"A targeted strike: a sigil charges on the floor, the scene darkens, a thick bolt slams into it, arcs race out along the cracks it splits, the channel crumbles to a scorch.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"strike\", \"spell\", \"target\", \"impact\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{240, 264},\n\t\tOrigin:   [2]int{120, 228},\n\t\tDuration: 3,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions:  append(voltOptions(), pixelfx.Option{Name: \"seed\", Default: pixelfx.Num(5)}),\n\t},\n\tNew: newLightningStrike,\n}",
          "doc": "LightningStrike is a targeted strike: a sigil charges on the floor, the scene darkens, a thick bolt slams into it, arcs race out along the cracks it splits, and the channel crumbles to a scorch. It is registered as \"lightning/lightning-strike\".\n",
          "file": "pkg/pixelfx/lightning/lightning_strike.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "PlasmaBall",
              "anchor": "PlasmaBall"
            }
          ],
          "decl": "var PlasmaBall = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Plasma ball\",\n\t\tDesc:     \"A glass globe on a dark pedestal: wandering plasma tendrils reach from the core to the glass and fan out in bright feet where they touch it, lighting the stand and floor.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"plasma\", \"lamp\", \"prop\", \"loop\"},\n\t\tSize:     [2]int{112, 104},\n\t\tOrigin:   [2]int{56, 96},\n\t\tDuration: 3,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0828\", \"#3b0f5e\", \"#6a1d9c\", \"#a03ad6\", \"#d46cf2\", \"#f2a8ff\", \"#ffe2ff\", \"#ffffff\")},\n\t\t\t{Name: \"tendrils\", Default: pixelfx.Num(9)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newPlasmaBall,\n}",
          "doc": "PlasmaBall is a glass globe on a dark pedestal whose wandering plasma tendrils reach from the core to the glass and fan out where they touch it, lighting the stand and floor. It is registered as \"lightning/plasma-ball\".\n",
          "file": "pkg/pixelfx/lightning/plasma_ball.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "SparkArc",
              "anchor": "SparkArc"
            }
          ],
          "decl": "var SparkArc = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Spark arc\",\n\t\tDesc:     \"A climbing arc between two rods: it strikes white at their narrow foot, climbs on rising heat as it stretches and bows, sputters and snaps at the top, then strikes again.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"arc\", \"jacobs-ladder\", \"machine\", \"prop\", \"loop\"},\n\t\tSize:     [2]int{124, 120},\n\t\tOrigin:   [2]int{62, 108},\n\t\tDuration: 2,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions:  append(voltOptions(), pixelfx.Option{Name: \"seed\", Default: pixelfx.Num(2)}),\n\t},\n\tNew: newSparkArc,\n}",
          "doc": "SparkArc is a climbing arc between two rods: it strikes white at their narrow foot, climbs on rising heat as it stretches and bows, sputters and snaps at the top, then strikes again. It is registered as \"lightning/spark-arc\".\n",
          "file": "pkg/pixelfx/lightning/spark_arc.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "StormCloud",
              "anchor": "StormCloud"
            }
          ],
          "decl": "var StormCloud = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Storm cloud\",\n\t\tDesc:     \"A storm cloud boils overhead, billows lit from inside by flickering discharges, ragged scud under its flat dark base; rain slants down and once a loop a bolt cracks to the floor.\",\n\t\tTags:     []string{\"lightning\", \"storm\", \"weather\", \"cloud\", \"rain\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{168, 176},\n\t\tOrigin:   [2]int{84, 164},\n\t\tDuration: 3,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: append(voltOptions(),\n\t\t\tpixelfx.Option{Name: \"cloud\", Default: pixelfx.Palette(\"#09070f\", \"#120f1e\", \"#1b182e\", \"#252640\", \"#323758\", \"#464d78\", \"#646b9c\")},\n\t\t\tpixelfx.Option{Name: \"rain\", Default: pixelfx.Palette(\"#2b3250\", \"#46527a\", \"#6d7cab\", \"#a5b5e0\")},\n\t\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t),\n\t},\n\tNew: newStormCloud,\n}",
          "doc": "StormCloud is a storm cloud boiling overhead, its billows lit from inside by flickering discharges, ragged scud under its flat dark base, slanting rain, and once a loop a bolt cracking to the floor. It is registered as \"lightning/storm-cloud\".\n",
          "file": "pkg/pixelfx/lightning/storm_cloud.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "TeslaCoil",
              "anchor": "TeslaCoil"
            }
          ],
          "decl": "var TeslaCoil = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Tesla coil\",\n\t\tDesc:     \"A copper coil under a steel torus throws branching arcs that lash out in volleys and now and then strike the floor in a spray of sparks, lighting the metal and the ground.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"tesla\", \"machine\", \"prop\", \"loop\"},\n\t\tSize:     [2]int{224, 136},\n\t\tOrigin:   [2]int{112, 120},\n\t\tDuration: 2.4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: append(voltOptions(),\n\t\t\tpixelfx.Option{Name: \"copper\", Default: pixelfx.Palette(\"#2a120c\", \"#5a2814\", \"#8e4a1e\", \"#c4772f\", \"#eaa65a\", \"#ffd9a0\")},\n\t\t\tpixelfx.Option{Name: \"steel\", Default: pixelfx.Palette(\"#0f121c\", \"#1f2433\", \"#353d52\", \"#556078\", \"#7f8ba3\", \"#b8c3d6\", \"#f2f6ff\")},\n\t\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t),\n\t},\n\tNew: newTeslaCoil,\n}",
          "doc": "TeslaCoil is a copper coil under a steel torus throwing branching arcs that lash out in volleys and now and then strike the floor in a spray of sparks, lighting the metal and the ground. It is registered as \"lightning/tesla-coil\".\n",
          "file": "pkg/pixelfx/lightning/tesla_coil.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "Thunderclap",
              "anchor": "Thunderclap"
            }
          ],
          "decl": "var Thunderclap = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Thunderclap\",\n\t\tDesc:     \"A thunderclap round the caster: a white flash, forked bolts burst out and stab the floor, a heavy shock ring tears across the ground raising dust and grit, sparks streak away.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"nova\", \"aoe\", \"spell\", \"shockwave\", \"one-shot\"},\n\t\tSize:     [2]int{288, 156},\n\t\tOrigin:   [2]int{144, 124},\n\t\tDuration: 1.9,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: append(voltOptions(),\n\t\t\tpixelfx.Option{Name: \"reach\", Default: pixelfx.Num(104)},\n\t\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t),\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody:  true,\n\t\tFollow:  pixelfx.Val(0),\n\t\tTargets: []float64{104},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.46, Pose: pixelfx.Ready},\n\t\t\t{T: -0.18, Pose: thWide},\n\t\t\t{T: 0.08, Pose: thWide.With(pixelfx.Crouch.Is(6))},\n\t\t\t{T: 0.12, Pose: thClap, How: \"snap\"},\n\t\t\t{T: 0.55, Pose: thClap.With(pixelfx.Y.Is(0), pixelfx.FFY.Is(-4), pixelfx.FBY.Is(-4), pixelfx.Crouch.Is(1))},\n\t\t\t{T: 1.05, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(3), pixelfx.FX.Is(-10), pixelfx.FY.Is(-28), pixelfx.BX.Is(11), pixelfx.BY.Is(-28), pixelfx.FFX.Is(-4), pixelfx.FBX.Is(5))},\n\t\t\t{T: 1.7, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.12, Stop: 0.13, Shake: 0.3, Amp: pixelfx.Val(3), NoTarget: true},\n\t\t\t{T: 0.42, Push: pixelfx.Val(2), Straw: pixelfx.Val(14), Y: pixelfx.Val(-8), Skin: \"shock\", Shiver: 0.5},\n\t\t\t{T: 1.2, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t},\n\tNew: newThunderclap,\n}",
          "doc": "Thunderclap is a thunderclap round the caster: a white flash, forked bolts bursting out and stabbing the floor, a heavy shock ring tearing across the ground raising dust and grit, sparks streaking away. It is registered as \"lightning/thunderclap\".\n",
          "file": "pkg/pixelfx/lightning/thunderclap.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ZapHit",
              "anchor": "ZapHit"
            }
          ],
          "decl": "var ZapHit = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Zap hit\",\n\t\tDesc:     \"A contact zap: an arc snaps in from the left, the hit point overloads into a knot of tiny crackling zigzags, a fern of burn marks glows outward, sparks jink away, ozone puffs.\",\n\t\tTags:     []string{\"lightning\", \"electric\", \"hit\", \"impact\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{144, 112},\n\t\tOrigin:   [2]int{76, 56},\n\t\tDuration: 0.9,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(volt...)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newZapHit,\n}",
          "doc": "ZapHit is a contact zap: an arc snaps in from the left, the hit point overloads into a knot of tiny crackling zigzags, a fern of burn marks glows outward, sparks jink away and ozone puffs. It is registered as \"lightning/zap-hit\".\n",
          "file": "pkg/pixelfx/lightning/zap_hit.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/melee",
      "name": "melee",
      "dir": "pkg/pixelfx/melee",
      "page": "pkg/pixelfx/melee",
      "synopsis": "Package melee is pixelfx's melee category: claw swipe, dagger flurry, double slash, hammer smash, heavy cleave, scythe reap, spear sweep, spin slash, sword slash, thrust, uppercut and whip crack, each a pixelfx.Effect a character acts out (pixelfx.Perform), registered as \"melee/<name>\" when the package is imported.",
      "doc": "Package melee is pixelfx's melee category: claw swipe, dagger flurry, double slash, hammer smash, heavy cleave, scythe reap, spear sweep, spin slash, sword slash, thrust, uppercut and whip crack, each a pixelfx.Effect a character acts out (pixelfx.Perform), registered as \"melee/<name>\" when the package is imported. Their size options (sword-slash's and spin-slash's radius, thrust's reach, whip-crack's length) are kept between 1 and 416 px, where pixelfx takes any number and a negative one crashes or hangs it.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "ClawSwipe",
              "anchor": "ClawSwipe"
            }
          ],
          "decl": "var ClawSwipe = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Claw swipe\",\n\t\tDesc:     \"Three claw marks rake down one after another, white-hot, cooling through orange to red, then close up from both ends and leave a dotted scar, with hot flecks and drips.\",\n\t\tTags:     []string{\"melee\", \"claw\", \"swipe\", \"beast\", \"scratch\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{128, 96},\n\t\tOrigin:   [2]int{36, 84},\n\t\tDuration: 0.9,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a0808\", \"#5c0f12\", \"#a51d1d\", \"#e2401f\", \"#ff8a2a\", \"#ffd166\", \"#fff3c4\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3c4\", \"#ffd166\", \"#ff8a2a\", \"#c42a1a\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{58},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.46, Pose: clawReady.With(pixelfx.X.Is(-6))},\n\t\t\t{T: -0.2, Pose: clawHigh},\n\t\t\t{T: -0.05, Pose: clawHigh.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 0, Pose: clawReady.With(pixelfx.X.Is(0), pixelfx.Crouch.Is(3), pixelfx.Lean.Is(4), pixelfx.FX.Is(19), pixelfx.FY.Is(-36), pixelfx.SA.Is(-0.9), pixelfx.BX.Is(-7), pixelfx.BY.Is(-24), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.05, Pose: clawReady.With(pixelfx.X.Is(2), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(6), pixelfx.FX.Is(23), pixelfx.FY.Is(-24), pixelfx.SA.Is(0.5), pixelfx.BX.Is(-7), pixelfx.BY.Is(-24), pixelfx.FFX.Is(13), pixelfx.FBX.Is(-10), pixelfx.ToeB.On()), How: \"snap\"},\n\t\t\t{T: 0.1, Pose: clawReady.With(pixelfx.X.Is(3), pixelfx.Crouch.Is(7), pixelfx.Lean.Is(7), pixelfx.FX.Is(22), pixelfx.FY.Is(-12), pixelfx.SA.Is(1.2), pixelfx.BX.Is(-7), pixelfx.BY.Is(-24), pixelfx.FFX.Is(13), pixelfx.FBX.Is(-10), pixelfx.ToeB.On()), How: \"snap\"},\n\t\t\t{T: 0.42, Pose: clawReady.With(pixelfx.X.Is(3), pixelfx.Crouch.Is(6), pixelfx.Lean.Is(5), pixelfx.FX.Is(21), pixelfx.FY.Is(-13), pixelfx.SA.Is(1.1), pixelfx.BX.Is(-6), pixelfx.BY.Is(-22), pixelfx.FFX.Is(13), pixelfx.FBX.Is(-10))},\n\t\t\t{T: 0.9, Pose: clawReady.With(pixelfx.X.Is(-6))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.04, Stop: 0.03, Push: pixelfx.Val(0.9), Straw: pixelfx.Val(5), Y: pixelfx.Val(-30), Flash: pixelfx.Val(0.03)},\n\t\t\t{T: 0.08, Stop: 0.03, Push: pixelfx.Val(0.9), Straw: pixelfx.Val(5), Y: pixelfx.Val(-26), Flash: pixelfx.Val(0.03)},\n\t\t\t{T: 0.12, Stop: 0.08, Shake: 0.14, Amp: pixelfx.Val(2), Push: pixelfx.Val(1.4), Straw: pixelfx.Val(9), Y: pixelfx.Val(-18)},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 0.1, X: 12, N: 6, Dir: 1}},\n\t},\n\tNew: newClawSwipe,\n}",
          "doc": "ClawSwipe is three claw marks that rake down one after another, white-hot, cooling through orange to red, then close up from both ends and leave a dotted scar, with hot flecks and drips. It is registered as \"melee/claw-swipe\".\n",
          "file": "pkg/pixelfx/melee/claw_swipe.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "DaggerFlurry",
              "anchor": "DaggerFlurry"
            }
          ],
          "decl": "var DaggerFlurry = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Dagger flurry\",\n\t\tDesc:     \"A flurry of small quick crescents at every angle in front of the fighter, each with a flick of sparks, finished by one big cut that glints and bursts.\",\n\t\tTags:     []string{\"melee\", \"slash\", \"dagger\", \"combo\", \"flurry\", \"fast\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{148, 104},\n\t\tOrigin:   [2]int{36, 86},\n\t\tDuration: 0.95,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1b1630\", \"#3a2f63\", \"#6150a3\", \"#9480d8\", \"#c7b8f5\", \"#efe9ff\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#ffffff\", \"#efe9ff\", \"#c7b8f5\", \"#9480d8\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(12)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{60},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.4, Pose: daggerBase.With(pixelfx.X.Is(-4))},\n\t\t\t{T: -0.14, Pose: daggerBase.With(pixelfx.X.Is(-6), pixelfx.Lean.Is(-2), pixelfx.Crouch.Is(5), pixelfx.FX.Is(2), pixelfx.FY.Is(-22), pixelfx.SA.Is(-1.2), pixelfx.BX.Is(2), pixelfx.BY.Is(-26), pixelfx.SB.Is(-1.5))},\n\t\t\t{T: -0.03, Pose: daggerBase.With(pixelfx.X.Is(-6), pixelfx.Lean.Is(-3), pixelfx.Crouch.Is(6), pixelfx.FX.Is(1), pixelfx.FY.Is(-21), pixelfx.SA.Is(-1.2), pixelfx.BX.Is(1), pixelfx.BY.Is(-25), pixelfx.SB.Is(-1.5))},\n\t\t\t{T: 0, Pose: daggerNear(20, -31, -0.5, pixelfx.X.Is(2), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.055, Pose: daggerFar(21, -23, 0.5, pixelfx.X.Is(3)), How: \"snap\"},\n\t\t\t{T: 0.11, Pose: daggerNear(18, -36, -1, pixelfx.X.Is(4)), How: \"snap\"},\n\t\t\t{T: 0.165, Pose: daggerFar(22, -31, -0.6, pixelfx.X.Is(5)), How: \"snap\"},\n\t\t\t{T: 0.22, Pose: daggerNear(20, -22, 0.2, pixelfx.X.Is(5)), How: \"snap\"},\n\t\t\t{T: 0.275, Pose: daggerFar(21, -27, 0.05, pixelfx.X.Is(6)), How: \"snap\"},\n\t\t\t{T: 0.33, Pose: daggerBase.With(pixelfx.X.Is(4), pixelfx.Lean.Is(-3), pixelfx.Crouch.Is(5), pixelfx.FX.Is(-1), pixelfx.FY.Is(-33), pixelfx.SA.Is(-2.5), pixelfx.BX.Is(2), pixelfx.BY.Is(-23), pixelfx.SB.Is(-1.2)), How: \"snap\"},\n\t\t\t{T: 0.37, Pose: daggerBase.With(pixelfx.X.Is(7), pixelfx.Lean.Is(2), pixelfx.Crouch.Is(4), pixelfx.FX.Is(16), pixelfx.FY.Is(-34), pixelfx.SA.Is(-1), pixelfx.BX.Is(-7), pixelfx.BY.Is(-24), pixelfx.SB.Is(-2.4), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.43, Pose: daggerBase.With(pixelfx.X.Is(9), pixelfx.Lean.Is(6), pixelfx.Crouch.Is(6), pixelfx.FX.Is(22), pixelfx.FY.Is(-23), pixelfx.SA.Is(0.15), pixelfx.BX.Is(-9), pixelfx.BY.Is(-24), pixelfx.SB.Is(-2.6), pixelfx.FFX.Is(13), pixelfx.FBX.Is(-10), pixelfx.ToeB.On()), How: \"snap\"},\n\t\t\t{T: 0.68, Pose: daggerBase.With(pixelfx.X.Is(9), pixelfx.Lean.Is(5), pixelfx.Crouch.Is(5), pixelfx.FX.Is(21), pixelfx.FY.Is(-22), pixelfx.SA.Is(0.2), pixelfx.BX.Is(-8), pixelfx.BY.Is(-24), pixelfx.SB.Is(-2.6))},\n\t\t\t{T: 1.05, Pose: daggerBase.With(pixelfx.X.Is(-4))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.05, Stop: 0.015, Push: pixelfx.Val(0.5), Straw: pixelfx.Val(3), Flash: pixelfx.Val(0.02)},\n\t\t\t{T: 0.105, Stop: 0.015, Push: pixelfx.Val(-0.3), Straw: pixelfx.Val(3), Flash: pixelfx.Val(0.02)},\n\t\t\t{T: 0.16, Stop: 0.015, Push: pixelfx.Val(0.5), Straw: pixelfx.Val(3), Flash: pixelfx.Val(0.02)},\n\t\t\t{T: 0.215, Stop: 0.015, Push: pixelfx.Val(-0.3), Straw: pixelfx.Val(3), Flash: pixelfx.Val(0.02)},\n\t\t\t{T: 0.27, Stop: 0.015, Push: pixelfx.Val(0.5), Straw: pixelfx.Val(3), Flash: pixelfx.Val(0.02)},\n\t\t\t{T: 0.325, Stop: 0.015, Push: pixelfx.Val(-0.3), Straw: pixelfx.Val(3), Flash: pixelfx.Val(0.02)},\n\t\t\t{T: 0.42, Stop: 0.12, Shake: 0.18, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.6), Straw: pixelfx.Val(16)},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 0.43, X: 20, N: 7, Dir: 1}, {T: 0, X: -6, N: 3, Dir: -1}},\n\t},\n\tNew: newDaggerFlurry,\n}",
          "doc": "DaggerFlurry is a flurry of small quick crescents at every angle in front of the fighter, each with a flick of sparks, finished by one big cut that glints and bursts. It is registered as \"melee/dagger-flurry\".\n",
          "file": "pkg/pixelfx/melee/dagger_flurry.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "DoubleSlash",
              "anchor": "DoubleSlash"
            }
          ],
          "decl": "var DoubleSlash = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Double slash\",\n\t\tDesc:     \"A down cut, then an up cut that crosses it: the moment the X closes both strokes flash white, the crossing bursts with light and sparks, and a dotted X lingers.\",\n\t\tTags:     []string{\"melee\", \"slash\", \"combo\", \"sword\", \"cross\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{164, 108},\n\t\tOrigin:   [2]int{44, 92},\n\t\tDuration: 0.8,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a0a22\", \"#5e1238\", \"#a01f4e\", \"#e0386a\", \"#ff86a6\", \"#ffd2dd\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{62},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.42, Pose: doubleStance.With(pixelfx.X.Is(-7))},\n\t\t\t{T: -0.18, Pose: doubleHigh},\n\t\t\t{T: -0.04, Pose: doubleHigh.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 0, Pose: doubleStance.With(pixelfx.X.Is(0), pixelfx.Crouch.Is(2), pixelfx.Lean.Is(3), pixelfx.FX.Is(16), pixelfx.FY.Is(-37), pixelfx.SA.Is(-1.45), pixelfx.BX.Is(-7), pixelfx.BY.Is(-24), pixelfx.FFX.Is(11), pixelfx.FBX.Is(-9), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.06, Pose: doubleLow, How: \"snap\"},\n\t\t\t{T: 0.14, Pose: doubleLow.With(pixelfx.X.Is(4), pixelfx.Crouch.Is(6), pixelfx.Lean.Is(5), pixelfx.FX.Is(20), pixelfx.FY.Is(-17), pixelfx.SA.Is(0.85), pixelfx.Ghost.Is(1))},\n\t\t\t{T: 0.17, Pose: doubleLow.With(pixelfx.X.Is(5), pixelfx.Crouch.Is(3), pixelfx.Lean.Is(5), pixelfx.FX.Is(22), pixelfx.FY.Is(-28), pixelfx.SA.Is(0.1), pixelfx.BY.Is(-18), pixelfx.ToeB.On(), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.21, Pose: doubleLow.With(pixelfx.X.Is(6), pixelfx.Crouch.Is(1), pixelfx.Lean.Is(6), pixelfx.FX.Is(19), pixelfx.FY.Is(-37), pixelfx.SA.Is(-0.95), pixelfx.BY.Is(-18), pixelfx.FFX.Is(13), pixelfx.FBY.Is(-6)), How: \"snap\"},\n\t\t\t{T: 0.5, Pose: doubleLow.With(pixelfx.X.Is(6), pixelfx.Crouch.Is(3), pixelfx.Lean.Is(3), pixelfx.FX.Is(18), pixelfx.FY.Is(-36), pixelfx.SA.Is(-1.05), pixelfx.BY.Is(-19), pixelfx.FFX.Is(12))},\n\t\t\t{T: 0.92, Pose: doubleStance.With(pixelfx.X.Is(-7))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.06, Stop: 0.05, Shake: 0.08, Amp: pixelfx.Val(1), Push: pixelfx.Val(1.4), Straw: pixelfx.Val(8)},\n\t\t\t{T: 0.16, Stop: 0.14, Shake: 0.2, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.8), Straw: pixelfx.Val(18), Y: pixelfx.Val(-28)},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 0.06, X: 16, N: 5, Dir: 1}, {T: 0.17, X: -8, N: 4, Dir: -1}},\n\t},\n\tNew: newDoubleSlash,\n}",
          "doc": "DoubleSlash is a down cut, then an up cut that crosses it: the moment the X closes both strokes flash white, the crossing bursts with light and sparks, and a dotted X lingers. It is registered as \"melee/double-slash\".\n",
          "file": "pkg/pixelfx/melee/double_slash.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "HammerSmash",
              "anchor": "HammerSmash"
            }
          ],
          "decl": "var HammerSmash = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Hammer smash\",\n\t\tDesc:     \"A hammer drops in front in a wedge of motion: a white slam with rays, a dome of force, a dent with cracks, rocks thrown up that bounce and settle, and dust.\",\n\t\tTags:     []string{\"melee\", \"smash\", \"hammer\", \"heavy\", \"ground\", \"shockwave\", \"debris\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{208, 112},\n\t\tOrigin:   [2]int{80, 92},\n\t\tDuration: 2.0,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#141834\", \"#242c5c\", \"#38479a\", \"#5a72d0\", \"#8fa8f0\", \"#c4d4ff\", \"#eef3ff\", \"#ffffff\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{66},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.72, Pose: hammerRest.With(pixelfx.X.Is(-3))},\n\t\t\t{T: -0.44, Pose: hammerRest.With(pixelfx.X.Is(-3), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(-1), pixelfx.FX.Is(16), pixelfx.FY.Is(-28), pixelfx.SA.Is(-0.9))},\n\t\t\t{T: -0.2, Pose: hammerTop},\n\t\t\t{T: -0.03, Pose: hammerTop.With(pixelfx.Y.Is(-2))},\n\t\t\t{T: 0.06, Pose: hammerRest.With(pixelfx.X.Is(0), pixelfx.Y.Is(-3), pixelfx.Crouch.Is(-1), pixelfx.Lean.Is(2), pixelfx.FX.Is(13), pixelfx.FY.Is(-41), pixelfx.SA.Is(-1.2), pixelfx.FFX.Is(11), pixelfx.FFY.Is(-8), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.11, Pose: hammerRest.With(pixelfx.X.Is(0), pixelfx.Y.Is(-1), pixelfx.Crouch.Is(3), pixelfx.Lean.Is(5), pixelfx.FX.Is(19), pixelfx.FY.Is(-30), pixelfx.SA.Is(-0.15), pixelfx.FFX.Is(13), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.15, Pose: hammerSlam, How: \"snap\"},\n\t\t\t{T: 0.62, Pose: hammerSlam.With(pixelfx.Crouch.Is(6), pixelfx.Lean.Is(5))},\n\t\t\t{T: 1.02, Pose: hammerRest.With(pixelfx.X.Is(-2), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(2), pixelfx.FX.Is(14), pixelfx.FY.Is(-24), pixelfx.SA.Is(0.3))},\n\t\t\t{T: 1.4, Pose: hammerRest.With(pixelfx.X.Is(-3))},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.15, Stop: 0.2, Shake: 0.34, Amp: pixelfx.Val(3), Push: pixelfx.Val(3), Straw: pixelfx.Val(26), Y: pixelfx.Val(-8)}},\n\t\tDust: []pixelfx.DustKick{{T: 0.15, X: 10, N: 8}, {T: 0.15, X: -12, N: 5, Dir: -1}},\n\t},\n\tNew: newHammerSmash,\n}",
          "doc": "HammerSmash is a hammer that drops in front in a wedge of motion: a white slam with rays, a dome of force, a dent with cracks, rocks thrown up that bounce and settle, and dust. It is registered as \"melee/hammer-smash\".\n",
          "file": "pkg/pixelfx/melee/hammer_smash.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "HeavyCleave",
              "anchor": "HeavyCleave"
            }
          ],
          "decl": "var HeavyCleave = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Heavy cleave\",\n\t\tDesc:     \"A glint over the head, then a thick ember arc accelerates over the top into the floor: a white slam, glowing cracks, dust rolling both ways, grit and rising embers.\",\n\t\tTags:     []string{\"melee\", \"slash\", \"cleave\", \"axe\", \"heavy\", \"ground\", \"fire\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{208, 116},\n\t\tOrigin:   [2]int{68, 96},\n\t\tDuration: 1.9,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a0c10\", \"#5c1414\", \"#a3241a\", \"#e0481c\", \"#ff8a2a\", \"#ffc23d\", \"#fff0a0\", \"#ffffff\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{66},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.42, Pose: cleaveRest.With(pixelfx.X.Is(-4))},\n\t\t\t{T: -0.3, Pose: cleaveRest.With(pixelfx.X.Is(-3), pixelfx.Crouch.Is(4), pixelfx.FX.Is(13), pixelfx.FY.Is(-29), pixelfx.SA.Is(-1.3))},\n\t\t\t{T: -0.12, Pose: cleaveOver.With(pixelfx.Crouch.Is(4))},\n\t\t\t{T: 0.2, Pose: cleaveOver.With(pixelfx.Crouch.Is(3))},\n\t\t\t{T: 0.27, Pose: cleaveRest.With(pixelfx.X.Is(-1), pixelfx.Y.Is(-2), pixelfx.Crouch.Is(0), pixelfx.Lean.Is(2), pixelfx.FX.Is(11), pixelfx.FY.Is(-42), pixelfx.SA.Is(-1.45), pixelfx.FFX.Is(10), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.31, Pose: cleaveRest.With(pixelfx.X.Is(0), pixelfx.Y.Is(-1), pixelfx.Crouch.Is(3), pixelfx.Lean.Is(4), pixelfx.FX.Is(18), pixelfx.FY.Is(-33), pixelfx.SA.Is(-0.45), pixelfx.FFX.Is(12), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.335, Pose: cleaveFloor, How: \"snap\"},\n\t\t\t{T: 0.85, Pose: cleaveFloor.With(pixelfx.Crouch.Is(6), pixelfx.Lean.Is(5))},\n\t\t\t{T: 1.3, Pose: cleaveRest.With(pixelfx.X.Is(-2), pixelfx.Crouch.Is(4), pixelfx.Lean.Is(2), pixelfx.FX.Is(15), pixelfx.FY.Is(-23), pixelfx.SA.Is(0.1))},\n\t\t\t{T: 1.7, Pose: cleaveRest.With(pixelfx.X.Is(-4))},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.335, Stop: 0.2, Shake: 0.34, Amp: pixelfx.Val(3), Push: pixelfx.Val(3.2), Straw: pixelfx.Val(28), Y: pixelfx.Val(-8)}},\n\t\tDust: []pixelfx.DustKick{{T: 0.335, X: 18, N: 8, Dir: 1}, {T: 0.335, X: -12, N: 5, Dir: -1}},\n\t},\n\tNew: newHeavyCleave,\n}",
          "doc": "HeavyCleave is a glint over the head, then a thick ember arc that accelerates over the top into the floor: a white slam, glowing cracks, dust rolling both ways, grit and rising embers. It is registered as \"melee/heavy-cleave\".\n",
          "file": "pkg/pixelfx/melee/heavy_cleave.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "ScytheReap",
              "anchor": "ScytheReap"
            }
          ],
          "decl": "var ScytheReap = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Scythe reap\",\n\t\tDesc:     \"A slow, huge dark crescent reaps round the front with a pale ghostly edge; it hangs, then tears away from the tail into curling wisps and cold vapour.\",\n\t\tTags:     []string{\"melee\", \"scythe\", \"reap\", \"dark\", \"ghost\", \"death\", \"slash\", \"combat\", \"one-shot\"},\n\t\tSize:     [2]int{184, 116},\n\t\tOrigin:   [2]int{84, 98},\n\t\tDuration: 2.1,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#07040c\", \"#140a22\", \"#24113a\", \"#3b1d58\", \"#5a3a82\", \"#7fd6c0\", \"#d8fff2\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(13)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{66},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.56, Pose: scytheRest},\n\t\t\t{T: -0.26, Pose: scytheOut},\n\t\t\t{T: 0.08, Pose: scytheOut.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 0.2, Pose: scytheOut.With(pixelfx.Yaw.Is(0.8), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(3), pixelfx.FX.Is(16), pixelfx.FY.Is(-23), pixelfx.SA.Is(0.1), pixelfx.Ghost.Is(1))},\n\t\t\t{T: 0.3, Pose: scytheOut.With(pixelfx.X.Is(1), pixelfx.Yaw.Is(1.9), pixelfx.Crouch.Is(6), pixelfx.Lean.Is(3), pixelfx.FX.Is(15), pixelfx.FY.Is(-23), pixelfx.SA.Is(0.2), pixelfx.Ghost.Is(1))},\n\t\t\t{T: 0.42, Pose: scytheEnd},\n\t\t\t{T: 0.92, Pose: scytheEnd.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 1.3, Pose: scytheRest.With(pixelfx.X.Is(1), pixelfx.Yaw.Is(1.4), pixelfx.Crouch.Is(4))},\n\t\t\t{T: 1.7, Pose: scytheRest},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.14, Stop: 0.12, Shake: 0.16, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.4), Straw: pixelfx.Val(20), Skin: \"shadow\"}},\n\t\tDust: []pixelfx.DustKick{{T: 0.3, X: 2, N: 6}},\n\t},\n\tNew: newScytheReap,\n}",
          "doc": "ScytheReap is a slow, huge dark crescent that reaps round the front with a pale ghostly edge; it hangs, then tears away from the tail into curling wisps and cold vapour. It is registered as \"melee/scythe-reap\".\n",
          "file": "pkg/pixelfx/melee/scythe_reap.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "SpearSweep",
              "anchor": "SpearSweep"
            }
          ],
          "decl": "var SpearSweep = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Spear sweep\",\n\t\tDesc:     \"A wide low sweep at shin height: a long flat crescent swings from behind the legs round the front, and the wind of it kicks a wake of dust and grit along the floor.\",\n\t\tTags:     []string{\"melee\", \"sweep\", \"spear\", \"polearm\", \"low\", \"aoe\", \"ground\", \"dust\", \"combat\", \"one-shot\"},\n\t\tSize:     [2]int{216, 84},\n\t\tOrigin:   [2]int{104, 70},\n\t\tDuration: 1.5,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0f2a2a\", \"#18504a\", \"#22806e\", \"#3fb894\", \"#8fe6c0\", \"#dcfff0\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(10)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{62},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.56, Pose: spearRest},\n\t\t\t{T: -0.34, Pose: spearRest.With(pixelfx.Two.On(), pixelfx.Crouch.Is(4), pixelfx.FX.Is(14), pixelfx.FY.Is(-22), pixelfx.SA.Is(-0.7))},\n\t\t\t{T: -0.14, Pose: spearCock},\n\t\t\t{T: -0.02, Pose: spearCock.With(pixelfx.Crouch.Is(7), pixelfx.Yaw.Is(2.7))},\n\t\t\t{T: 0.045, Pose: spearOut.With(pixelfx.X.Is(1), pixelfx.Yaw.Is(1.3), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.09, Pose: spearOut.With(pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.14, Pose: spearOut, How: \"snap\"},\n\t\t\t{T: 0.62, Pose: spearOut.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(5))},\n\t\t\t{T: 1.12, Pose: spearRest.With(pixelfx.Two.On(), pixelfx.Crouch.Is(4), pixelfx.SA.Is(-0.7), pixelfx.FX.Is(14), pixelfx.FY.Is(-22))},\n\t\t\t{T: 1.5, Pose: spearRest},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.1, Stop: 0.12, Shake: 0.18, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.6), Straw: pixelfx.Val(18), Y: pixelfx.Val(-12)}},\n\t\tDust: []pixelfx.DustKick{{T: 0.09, X: 14, N: 6, Dir: 1}, {T: 0.09, X: -10, N: 5, Dir: -1}},\n\t},\n\tNew: newSpearSweep,\n}",
          "doc": "SpearSweep is a wide low sweep at shin height: a long flat crescent swings from behind the legs round the front, and the wind of it kicks a wake of dust and grit along the floor. It is registered as \"melee/spear-sweep\".\n",
          "file": "pkg/pixelfx/melee/spear_sweep.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "SpinSlash",
              "anchor": "SpinSlash"
            }
          ],
          "decl": "var SpinSlash = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Spin slash\",\n\t\tDesc:     \"The blade whirls once round the waist on a tilted plane, behind the body and back in front; the closed ring flares white, dissolves into a dotted trace and throws sparks.\",\n\t\tTags:     []string{\"melee\", \"slash\", \"spin\", \"sword\", \"aoe\", \"combat\", \"one-shot\"},\n\t\tSize:     [2]int{208, 104},\n\t\tOrigin:   [2]int{104, 84},\n\t\tDuration: 0.8,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#16224a\", \"#1f4a86\", \"#2a7fc0\", \"#48b8ec\", \"#9fe2ff\", \"#e2f7ff\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"radius\", Default: pixelfx.Num(46)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{60},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.46, Pose: spinStance},\n\t\t\t{T: -0.2, Pose: spinWound},\n\t\t\t{T: -0.02, Pose: spinWound.With(pixelfx.Crouch.Is(7), pixelfx.Yaw.Is(1.3))},\n\t\t\t{T: 0, Pose: spinWide.With(pixelfx.SA.Is(-0.1), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.05, Pose: spinWide.With(pixelfx.Yaw.Is(-1.57), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.09, Pose: spinWide.With(pixelfx.Yaw.Is(-3.14), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.13, Pose: spinWide.With(pixelfx.Yaw.Is(-4.71), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.17, Pose: spinWide, How: \"snap\"},\n\t\t\t{T: 0.56, Pose: spinWide.With(pixelfx.Crouch.Is(4), pixelfx.Lean.Is(2))},\n\t\t\t{T: 0.92, Pose: spinStance},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.17, Stop: 0.12, Shake: 0.16, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.4), Straw: pixelfx.Val(16)}},\n\t\tDust: []pixelfx.DustKick{{T: 0, X: 0, N: 6}, {T: 0.17, X: 12, N: 6, Dir: 1}},\n\t},\n\tNew: newSpinSlash,\n}",
          "doc": "SpinSlash is a blade that whirls once round the waist on a tilted plane, behind the body and back in front; the closed ring flares white, dissolves into a dotted trace and throws sparks. It is registered as \"melee/spin-slash\".\n",
          "file": "pkg/pixelfx/melee/spin_slash.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "SwordSlash",
              "anchor": "SwordSlash"
            }
          ],
          "decl": "var SwordSlash = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Sword slash\",\n\t\tDesc:     \"A tilted crescent whips round in two frames, cools from white to deep blue as it trails off, glints at the tip and throws sparks.\",\n\t\tTags:     []string{\"melee\", \"slash\", \"sword\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{136, 104},\n\t\tOrigin:   [2]int{44, 92},\n\t\tDuration: 0.75,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#212f6b\", \"#2c58aa\", \"#3a8bd8\", \"#62c8f4\", \"#b8c9e8\", \"#e8f1ff\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"radius\", Default: pixelfx.Num(42)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{58},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.55, Pose: swordGuard.With(pixelfx.X.Is(-8))},\n\t\t\t{T: -0.3, Pose: swordWind},\n\t\t\t{T: -0.08, Pose: swordWind.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(-5))},\n\t\t\t{T: 0, Pose: swordCut, How: \"snap\"},\n\t\t\t{T: 0.06, Pose: swordDown, How: \"snap\"},\n\t\t\t{T: 0.3, Pose: swordDown.With(pixelfx.X.Is(3), pixelfx.Crouch.Is(6))},\n\t\t\t{T: 0.58, Pose: swordGuard.With(pixelfx.X.Is(1), pixelfx.Crouch.Is(3), pixelfx.FX.Is(15), pixelfx.FY.Is(-21), pixelfx.SA.Is(0.1), pixelfx.BX.Is(-5), pixelfx.BY.Is(-21), pixelfx.FFX.Is(9), pixelfx.FBX.Is(-7))},\n\t\t\t{T: 0.86, Pose: swordGuard.With(pixelfx.X.Is(-8))},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.06, Stop: 0.14, Shake: 0.18, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.8), Straw: pixelfx.Val(18)}},\n\t\tDust: []pixelfx.DustKick{{T: 0.06, X: 16, N: 7, Dir: 1}, {T: 0.06, X: -11, N: 4, Dir: -1}},\n\t},\n\tNew: newSwordSlash,\n}",
          "doc": "SwordSlash is a tilted crescent that whips round in two frames, cools from white to deep blue as it trails off, glints at the tip and throws sparks, acted out as a sword cut. It is registered as \"melee/sword-slash\".\n",
          "file": "pkg/pixelfx/melee/sword_slash.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "Thrust",
              "anchor": "Thrust"
            }
          ],
          "decl": "var Thrust = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Thrust\",\n\t\tDesc:     \"A piercing stab: a bundle of streaks shoots out from the hand to a point, a long four-point star flares at the tip with a pierce ring, sparks and speed lines.\",\n\t\tTags:     []string{\"melee\", \"thrust\", \"stab\", \"spear\", \"rapier\", \"pierce\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{196, 76},\n\t\tOrigin:   [2]int{34, 62},\n\t\tDuration: 0.75,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1608\", \"#6b3c10\", \"#b8701a\", \"#f0b42e\", \"#ffe27a\", \"#fff6cf\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"reach\", Default: pixelfx.Num(66)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{80},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.46, Pose: thrustStance},\n\t\t\t{T: -0.24, Pose: thrustBack},\n\t\t\t{T: -0.05, Pose: thrustBack.With(pixelfx.Crouch.Is(6), pixelfx.FX.Is(-5))},\n\t\t\t{T: 0, Pose: thrustLunge.With(pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.07, Pose: thrustLunge, How: \"snap\"},\n\t\t\t{T: 0.3, Pose: thrustLunge.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(5))},\n\t\t\t{T: 0.7, Pose: thrustStance},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.07, Stop: 0.12, Shake: 0.14, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.8), Straw: pixelfx.Val(16), Y: pixelfx.Val(-26)}},\n\t\tDust: []pixelfx.DustKick{{T: 0, X: -24, N: 6, Dir: -1}, {T: 0.07, X: 1, N: 6, Dir: 1}},\n\t},\n\tNew: newThrust,\n}",
          "doc": "Thrust is a piercing stab: a bundle of streaks shoots out from the hand to a point, a long four-point star flares at the tip with a pierce ring, sparks and speed lines. It is registered as \"melee/thrust\".\n",
          "file": "pkg/pixelfx/melee/thrust.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "Uppercut",
              "anchor": "Uppercut"
            }
          ],
          "decl": "var Uppercut = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Uppercut\",\n\t\tDesc:     \"A crescent rises from the floor past the face, and at the top a comic impact star bursts: bold outline, hot core, burst lines, twinkles and sparks.\",\n\t\tTags:     []string{\"melee\", \"uppercut\", \"punch\", \"rising\", \"launcher\", \"comic\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{132, 128},\n\t\tOrigin:   [2]int{48, 110},\n\t\tDuration: 0.85,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#3a1408\", \"#7a2a10\", \"#c4501a\", \"#f08a2a\", \"#ffc94a\", \"#fff2a8\", \"#ffffff\")},\n\t\t\t{Name: \"outline\", Default: pixelfx.Color(\"#2a0a08\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(11)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{44},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.42, Pose: uppercutFists},\n\t\t\t{T: -0.16, Pose: uppercutCoil},\n\t\t\t{T: 0, Pose: uppercutCoil.With(pixelfx.Crouch.Is(8))},\n\t\t\t{T: 0.03, Pose: uppercutFists.With(pixelfx.Y.Is(-4), pixelfx.Crouch.Is(1), pixelfx.Lean.Is(4), pixelfx.FX.Is(18), pixelfx.FY.Is(-27), pixelfx.BX.Is(-5), pixelfx.BY.Is(-23), pixelfx.FFX.Is(9), pixelfx.FBX.Is(-7), pixelfx.ToeB.On(), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.076, Pose: uppercutTop, How: \"snap\"},\n\n\t\t\t{T: 0.3, Pose: uppercutTop.With(pixelfx.Y.Is(-13)).Without(pixelfx.Ghost)},\n\t\t\t{T: 0.56, Pose: uppercutTop.With(pixelfx.Y.Is(0), pixelfx.Crouch.Is(2), pixelfx.FX.Is(13), pixelfx.FY.Is(-31), pixelfx.FFX.Is(7), pixelfx.FFY.Is(-6), pixelfx.FBX.Is(-5), pixelfx.FBY.Is(-5)).Without(pixelfx.Ghost), How: \"in\"},\n\t\t\t{T: 0.6, Pose: uppercutFists.With(pixelfx.Y.Is(0), pixelfx.Crouch.Is(7), pixelfx.Lean.Is(3), pixelfx.FX.Is(12), pixelfx.FY.Is(-14), pixelfx.BX.Is(-6), pixelfx.BY.Is(-16), pixelfx.FFX.Is(10), pixelfx.FBX.Is(-9)), How: \"snap\"},\n\t\t\t{T: 0.98, Pose: uppercutFists},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.076, Stop: 0.13, Shake: 0.18, Amp: pixelfx.Val(2), Push: pixelfx.Val(-2.6), Straw: pixelfx.Val(18), Y: pixelfx.Val(-34)}},\n\t\tDust: []pixelfx.DustKick{{T: 0.03, X: 8, N: 6}, {T: 0.6, X: 0, N: 6}},\n\t},\n\tNew: newUppercut,\n}",
          "doc": "Uppercut is a crescent that rises from the floor past the face, and at the top a comic impact star bursts: bold outline, hot core, burst lines, twinkles and sparks. It is registered as \"melee/uppercut\".\n",
          "file": "pkg/pixelfx/melee/uppercut.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "WhipCrack",
              "anchor": "WhipCrack"
            }
          ],
          "decl": "var WhipCrack = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Whip crack\",\n\t\tDesc:     \"A whip rolls out to the right as a loop running down its length, faster and faster, until the tip flips over and cracks: a white pop, a ring of air, sparks and a puff of smoke.\",\n\t\tTags:     []string{\"melee\", \"whip\", \"crack\", \"lash\", \"combat\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{192, 80},\n\t\tOrigin:   [2]int{30, 68},\n\t\tDuration: 0.85,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1a10\", \"#5c3a1e\", \"#9c6a34\", \"#d8a45a\", \"#ffd890\", \"#fff4d6\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"length\", Default: pixelfx.Num(76)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{94},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.46, Pose: whipStance},\n\t\t\t{T: -0.22, Pose: whipCock},\n\t\t\t{T: 0.02, Pose: whipCock.With(pixelfx.Lean.Is(-4))},\n\t\t\t{T: 0.06, Pose: whipCrack.With(pixelfx.FX.Is(15), pixelfx.FY.Is(-34), pixelfx.SA.Is(-0.7), pixelfx.Lean.Is(2), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.12, Pose: whipCrack, How: \"snap\"},\n\t\t\t{T: 0.21, Pose: whipCrack},\n\t\t\t{T: 0.26, Pose: whipCrack.With(pixelfx.FX.Is(15), pixelfx.FY.Is(-27), pixelfx.SA.Is(-0.3), pixelfx.Lean.Is(2), pixelfx.Crouch.Is(3)), How: \"snap\"},\n\t\t\t{T: 0.44, Pose: whipCrack.With(pixelfx.FX.Is(17), pixelfx.FY.Is(-22), pixelfx.SA.Is(0.1), pixelfx.Lean.Is(3), pixelfx.Crouch.Is(3))},\n\t\t\t{T: 0.92, Pose: whipStance},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.21, Stop: 0.1, Shake: 0.14, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.4), Straw: pixelfx.Val(14), Y: pixelfx.Val(-28)}},\n\t\tDust: []pixelfx.DustKick{{T: 0.06, X: 2, N: 4, Dir: 1}},\n\t},\n\tNew: newWhipCrack,\n}",
          "doc": "WhipCrack is a whip that rolls out to the right as a loop running down its length, faster and faster, until the tip flips over and cracks: a white pop, a ring of air, sparks and a puff of smoke. It is registered as \"melee/whip-crack\".\n",
          "file": "pkg/pixelfx/melee/whip_crack.go",
          "line": 20
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/moves",
      "name": "moves",
      "dir": "pkg/pixelfx/moves",
      "page": "pkg/pixelfx/moves",
      "synopsis": "Package moves is pixelfx's moves category: whole attacks, wind-up to recovery, chained from the effects of the other categories and acted out by a character (pixelfx.Perform), each a pixelfx.Effect registered as \"moves/<name>\" when the package is imported.",
      "doc": "Package moves is pixelfx's moves category: whole attacks, wind-up to recovery, chained from the effects of the other categories and acted out by a character (pixelfx.Perform), each a pixelfx.Effect registered as \"moves/<name>\" when the package is imported.\n\nIt holds the arrow shot, dash strike, earth stomp, fireball throw, ground pound, holy smite, ice lance throw, lightning call, meteor call, pistol shots, rocket launcher and sword combo.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "ArrowShot",
              "anchor": "ArrowShot"
            }
          ],
          "decl": "var ArrowShot = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Arrow shot\",\n\t\tDesc:     \"He raises the bow, draws to his cheek, holds his breath and looses: the string snaps forward, the arrow crosses the floor and thuds home.\",\n\t\tTags:     []string{\"move\", \"bow\", \"arrow\", \"projectile\", \"ranged\", \"one-shot\"},\n\t\tSize:     [2]int{300, 74},\n\t\tOrigin:   [2]int{38, 66},\n\t\tDuration: 1.9,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{arrowTX},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.44, Pose: arrowRest},\n\t\t\t{T: -0.14, Pose: arrowAim},\n\t\t\t{T: 0.16, Pose: arrowDrawn},\n\t\t\t{T: arrowLoose, Pose: arrowDrawn.With(pixelfx.Crouch.Is(4))},\n\t\t\t{T: arrowLoose + 0.002, Pose: arrowLoosed, How: \"snap\"},\n\t\t\t{T: 1.1, Pose: arrowLoosed.With(pixelfx.BX.Is(-6), pixelfx.BY.Is(-25))},\n\t\t\t{T: 1.6, Pose: arrowRest},\n\t\t\t{T: 1.9, Pose: arrowRest},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: arrowHit, Stop: 0.07, Shake: 0.12, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.2), Straw: pixelfx.Val(14), Y: pixelfx.Val(-28)},\n\t\t},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{\n\t\t{FX: projectiles.Arrow, T: arrowLoose, Until: arrowHit, XFn: func(t float64) float64 { return 30 + (t-arrowLoose)*arrowSpeed }, Y: -28},\n\t\t{FX: impacts.HitSpark, T: arrowHit, X: arrowTX - 10, Options: map[string]pixelfx.Value{\"height\": pixelfx.Num(30)}},\n\t}),\n}",
          "doc": "ArrowShot is a move: he raises the bow, draws to his cheek, holds his breath and looses; the string snaps forward, the arrow crosses the floor and thuds home. It chains projectiles.Arrow and impacts.HitSpark, and is registered as \"moves/arrow-shot\".\n",
          "file": "pkg/pixelfx/moves/arrow_shot.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "DashStrike",
              "anchor": "DashStrike"
            }
          ],
          "decl": "var DashStrike = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Dash strike\",\n\t\tDesc:     \"A crouch, then he's across the floor in a blur of after-images and already cutting: a critical hit, a beat, and he hops back to where he started.\",\n\t\tTags:     []string{\"move\", \"melee\", \"sword\", \"dash\", \"crit\", \"one-shot\"},\n\t\tSize:     [2]int{372, 156},\n\t\tOrigin:   [2]int{66, 136},\n\t\tDuration: 2.3,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{dashTX},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.5, Pose: dashGuard.With(pixelfx.X.Is(0))},\n\t\t\t{T: -0.16, Pose: dashLow.With(pixelfx.X.Is(-2))},\n\t\t\t{T: -0.01, Pose: dashLow.With(pixelfx.X.Is(-3), pixelfx.Crouch.Is(6))},\n\t\t\t{T: 0, Pose: dashLow.With(pixelfx.X.Is(8), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.14, Pose: dashLow.With(pixelfx.X.Is(dashAt-6), pixelfx.Ghost.Is(1)), How: \"line\"},\n\t\t\t{T: 0.145, Pose: dashCock, How: \"snap\"},\n\t\t\t{T: dashCut, Pose: dashCutP, How: \"snap\"},\n\t\t\t{T: dashHit, Pose: dashDown, How: \"snap\"},\n\t\t\t{T: 0.75, Pose: dashDown.With(pixelfx.Crouch.Is(4), pixelfx.Lean.Is(4))},\n\t\t\t{T: 1.25, Pose: dashGuard.With(pixelfx.X.Is(dashAt + 2))},\n\t\t\t{T: 1.32, Pose: dashGuard.With(pixelfx.X.Is(dashAt+2), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(-2)), How: \"snap\"},\n\t\t\t{T: 1.4, Pose: dashHop.With(pixelfx.X.Is(dashAt - 28)), How: \"snap\"},\n\t\t\t{T: 1.6, Pose: dashHop.With(pixelfx.X.Is(22), pixelfx.Y.Is(-18)), How: \"line\"},\n\t\t\t{T: 1.74, Pose: dashGuard.With(pixelfx.X.Is(0), pixelfx.Y.Is(0), pixelfx.Crouch.Is(5)), How: \"line\"},\n\t\t\t{T: 2.2, Pose: dashGuard.With(pixelfx.X.Is(0))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: dashHit, Stop: 0.17, Shake: 0.26, Amp: pixelfx.Val(3), Push: pixelfx.Val(3.4), Straw: pixelfx.Val(32)},\n\t\t},\n\t\tDust: []pixelfx.DustKick{\n\t\t\t{T: 0, X: 0, N: 8, Dir: -1},\n\t\t\t{T: 0.14, X: dashAt - 6, N: 7},\n\t\t\t{T: 1.74, X: 0, N: 6},\n\t\t},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{\n\t\t{FX: melee.SwordSlash, T: dashCut, X: dashAt},\n\t\t{FX: impacts.CritHit, T: dashHit, X: dashTX - 10, Options: map[string]pixelfx.Value{\"height\": pixelfx.Num(28)}},\n\t}),\n}",
          "doc": "DashStrike is a move: a crouch, then he's across the floor in a blur of after-images and already cutting; a critical hit, a beat, and he hops back to where he started. It chains melee.SwordSlash and impacts.CritHit, and is registered as \"moves/dash-strike\".\n",
          "file": "pkg/pixelfx/moves/dash_strike.go",
          "line": 32
        },
        {
          "idents": [
            {
              "name": "EarthStomp",
              "anchor": "EarthStomp"
            }
          ],
          "decl": "var EarthStomp = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Earth stomp\",\n\t\tDesc:     \"A knee comes up, the boot slams down, the floor heaves under the target and a stone spike rams up through it.\",\n\t\tTags:     []string{\"move\", \"earth\", \"spell\", \"stomp\", \"one-shot\"},\n\t\tSize:     [2]int{290, 142},\n\t\tOrigin:   [2]int{50, 128},\n\t\tDuration: stompT + 3.4,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{stompTarget},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.5, Pose: pixelfx.Ready},\n\t\t\t{T: -0.14, Pose: stompKnee},\n\t\t\t{T: stompT - 0.005, Pose: stompKnee.With(pixelfx.FFY.Is(-17))},\n\t\t\t{T: stompT, Pose: stompSlam, How: \"snap\"},\n\t\t\t{T: stompRam + 0.5, Pose: stompSlam.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: stompRam + 1.1, Pose: pixelfx.Ready},\n\t\t\t{T: stompT + 3.4, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: stompT, Stop: 0.1, Shake: 0.2, Amp: pixelfx.Val(3), NoTarget: true},\n\t\t\t{T: stompRam, Stop: 0.14, Shake: 0.28, Amp: pixelfx.Val(3), Push: pixelfx.Val(-3.2), Straw: pixelfx.Val(30), Y: pixelfx.Val(-10)},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: stompT, X: 11, N: 9}},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{{FX: nature.EarthSpike, T: stompT, X: stompTarget}}),\n}",
          "doc": "EarthStomp is a move: a knee comes up, the boot slams down, the floor heaves under the target and a stone spike rams up through it. It chains nature.EarthSpike and is registered as \"moves/earth-stomp\".\n",
          "file": "pkg/pixelfx/moves/earth_stomp.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "FireballThrow",
              "anchor": "FireballThrow"
            }
          ],
          "decl": "var FireballThrow = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Fireball throw\",\n\t\tDesc:     \"He gathers fire in his hand, leans back and hurls it: the ball flies, the target takes it in a blast and comes out charred.\",\n\t\tTags:     []string{\"move\", \"fire\", \"spell\", \"projectile\", \"explosion\", \"one-shot\"},\n\t\tSize:     [2]int{356, 244},\n\t\tOrigin:   [2]int{64, 198},\n\t\tDuration: fireballHit + 5.4,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{fireballTX},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.42, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t\t{T: 0.08, Pose: fireballHold},\n\t\t\t{T: 0.5, Pose: fireballHold},\n\t\t\t{T: fireballThrow - 0.03, Pose: fireballHold.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(-2), pixelfx.FX.Is(17), pixelfx.BX.Is(5), pixelfx.BY.Is(-20))},\n\t\t\t{T: fireballThrow, Pose: fireballThrown, How: \"snap\"},\n\t\t\t{T: fireballHit - 0.02, Pose: fireballThrown.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(4))},\n\t\t\t{T: fireballHit, Pose: fireballFlinch, How: \"snap\"},\n\t\t\t{T: fireballHit + 0.7, Pose: fireballFlinch.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(-2))},\n\t\t\t{T: fireballHit + 1.4, Pose: pixelfx.Ready.With(pixelfx.X.Is(4))},\n\t\t\t{T: fireballHit + 2.1, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t\t{T: fireballHit + 5.4, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: fireballHit, Stop: 0.18, Shake: 0.38, Amp: pixelfx.Val(3), Push: pixelfx.Val(3.4), Straw: pixelfx.Val(34), Skin: \"char\"},\n\t\t\t{T: fireballHit + 4.8, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: fireballThrow, X: 13, N: 7, Dir: 1}},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{\n\t\t{FX: arcane.SpellCharge, T: 0.08, Until: fireballThrow, Options: map[string]pixelfx.Value{\"palette\": pixelfx.RampOf(pixelfx.Ramps[\"fire\"])}},\n\t\t{FX: fire.Fireball, T: fireballThrow, Until: fireballHit, XFn: func(t float64) float64 { return 28 + (t-fireballThrow)*fireballSpeed }, Y: -22},\n\t\t{FX: explosions.SmallExplosion, T: fireballHit, X: fireballTX},\n\t}),\n}",
          "doc": "FireballThrow is a move: he gathers fire in his hand, leans back and hurls it; the ball flies, the target takes it in a blast and comes out charred. It chains arcane.SpellCharge, fire.Fireball and explosions.SmallExplosion, and is registered as \"moves/fireball-throw\".\n",
          "file": "pkg/pixelfx/moves/fireball_throw.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "GroundPound",
              "anchor": "GroundPound"
            }
          ],
          "decl": "var GroundPound = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ground pound\",\n\t\tDesc:     \"He coils, leaps out of frame height, hangs, and comes down like a rock: the floor cracks, shock waves race out and throw the target about as they pass.\",\n\t\tTags:     []string{\"move\", \"impact\", \"jump\", \"landing\", \"shockwave\", \"one-shot\"},\n\t\tSize:     [2]int{304, 204},\n\t\tOrigin:   [2]int{152, 168},\n\t\tDuration: land + 3.2,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{poundTarget},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.5, Pose: pixelfx.Ready},\n\t\t\t{T: -0.16, Pose: poundCoil},\n\t\t\t{T: 0, Pose: poundCoil.With(pixelfx.Crouch.Is(7))},\n\t\t\t{T: 0.03, Pose: poundAir.With(pixelfx.Y.Is(-10), pixelfx.Ghost.Is(1)), How: \"snap\"},\n\t\t\t{T: 0.26, Pose: poundTop.With(pixelfx.Y.Is(-60)), How: \"out\"},\n\t\t\t{T: 0.42, Pose: poundTop},\n\t\t\t{T: land - 0.005, Pose: poundDown.With(pixelfx.Y.Is(-4)), How: \"in\"},\n\t\t\t{T: land, Pose: poundHero, How: \"snap\"},\n\t\t\t{T: land + 0.8, Pose: poundHero.With(pixelfx.Crouch.Is(6))},\n\t\t\t{T: land + 1.3, Pose: poundHero.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(3), pixelfx.FX.Is(13), pixelfx.FY.Is(-15), pixelfx.BX.Is(-5), pixelfx.BY.Is(-20))},\n\t\t\t{T: land + 1.8, Pose: pixelfx.Ready},\n\t\t\t{T: land + 3.2, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: land, Stop: 0.2, Shake: 0.5, Amp: pixelfx.Val(4), NoTarget: true},\n\t\t\t{T: land + 0.14, Stop: 0.04, Push: pixelfx.Val(3), Straw: pixelfx.Val(26), Y: pixelfx.Val(-8)},\n\t\t\t{T: land + 0.44, Push: pixelfx.Val(-1.6), Straw: pixelfx.Val(8), Y: pixelfx.Val(-8), Flash: pixelfx.Val(0)},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 0.03, X: 0, N: 8}},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{{FX: impacts.GroundSlam, T: land}}),\n}",
          "doc": "GroundPound is a move: he coils, leaps out of frame height, hangs, and comes down like a rock; the floor cracks, shock waves race out and throw the target about as they pass. It chains impacts.GroundSlam and is registered as \"moves/ground-pound\".\n",
          "file": "pkg/pixelfx/moves/ground_pound.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "HolySmite",
              "anchor": "HolySmite"
            }
          ],
          "decl": "var HolySmite = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Holy smite\",\n\t\tDesc:     \"Both hands go up and a glint marks the target; he brings them down and a bolt of light drops like a hammer, leaving the target blanched.\",\n\t\tTags:     []string{\"move\", \"holy\", \"spell\", \"strike\", \"one-shot\"},\n\t\tSize:     [2]int{252, 182},\n\t\tOrigin:   [2]int{42, 151},\n\t\tDuration: 2.8,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{smiteTX},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.42, Pose: pixelfx.Ready},\n\t\t\t{T: -0.04, Pose: smiteUp},\n\t\t\t{T: smiteBolt - 0.01, Pose: smiteUp.With(pixelfx.Y.Is(-1))},\n\t\t\t{T: smiteBolt, Pose: smiteDown, How: \"snap\"},\n\t\t\t{T: 1.1, Pose: smiteDown.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(3))},\n\t\t\t{T: 1.7, Pose: pixelfx.Ready},\n\t\t\t{T: 2.8, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: smiteBolt, Stop: 0.14, Shake: 0.32, Amp: pixelfx.Val(3), Push: pixelfx.Val(2.8), Straw: pixelfx.Val(24), Skin: \"holy\", Y: pixelfx.Val(-30)},\n\t\t\t{T: 2.3, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: smiteBolt, X: 14, N: 6, Dir: 1}},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{{FX: holy.Smite, T: 0, X: smiteTX}}),\n}",
          "doc": "HolySmite is a move: both hands go up and a glint marks the target; he brings them down and a bolt of light drops like a hammer, leaving the target blanched. It chains holy.Smite and is registered as \"moves/holy-smite\".\n",
          "file": "pkg/pixelfx/moves/holy_smite.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "IceLanceThrow",
              "anchor": "IceLanceThrow"
            }
          ],
          "decl": "var IceLanceThrow = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ice lance throw\",\n\t\tDesc:     \"Frost gathers into a spear in his hand, he throws it like a javelin, and the target ices over in a burst of snowflakes and shivers.\",\n\t\tTags:     []string{\"move\", \"ice\", \"spell\", \"projectile\", \"one-shot\"},\n\t\tSize:     [2]int{310, 136},\n\t\tOrigin:   [2]int{86, 134},\n\t\tDuration: iceHit + 3.2,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{iceTX},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.4, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t\t{T: 0.06, Pose: iceHold},\n\t\t\t{T: iceThrow - 0.2, Pose: iceHold},\n\t\t\t{T: iceThrow - 0.03, Pose: iceHold.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(-2), pixelfx.FX.Is(17), pixelfx.BX.Is(5), pixelfx.BY.Is(-20))},\n\t\t\t{T: iceThrow, Pose: iceThrown, How: \"snap\"},\n\t\t\t{T: iceHit + 0.3, Pose: iceThrown.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(4))},\n\t\t\t{T: iceHit + 0.9, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t\t{T: iceHit + 3.2, Pose: pixelfx.Ready.With(pixelfx.X.Is(-3))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: iceHit, Stop: 0.13, Shake: 0.2, Amp: pixelfx.Val(2), Push: pixelfx.Val(2.4), Straw: pixelfx.Val(12), Skin: \"ice\", Shiver: 1.4, Y: pixelfx.Val(-26)},\n\t\t\t{T: 2.75, Push: pixelfx.Val(0.3), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: iceThrow, X: 13, N: 6, Dir: 1, C: pixelfx.Hex(\"#d8f2ff\")}},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{\n\t\t{FX: arcane.SpellCharge, T: 0.06, Until: iceThrow, Options: map[string]pixelfx.Value{\"palette\": pixelfx.RampOf(pixelfx.Ramps[\"ice\"])}},\n\t\t{FX: ice.IceLance, T: iceThrow, Until: iceHit, XFn: func(t float64) float64 { return 34 + (t-iceThrow)*iceSpeed }, Y: -24},\n\t\t{FX: ice.SnowflakeBurst, T: iceHit, X: iceTX, Y: -26},\n\t}),\n}",
          "doc": "IceLanceThrow is a move: frost gathers into a spear in his hand, he throws it like a javelin, and the target ices over in a burst of snowflakes and shivers. It chains arcane.SpellCharge, ice.IceLance and ice.SnowflakeBurst, and is registered as \"moves/ice-lance-throw\".\n",
          "file": "pkg/pixelfx/moves/ice_lance_throw.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "LightningCall",
              "anchor": "LightningCall"
            }
          ],
          "decl": "var LightningCall = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Lightning call\",\n\t\tDesc:     \"An arm goes up, a sigil lights under the target, and on the downswing a thick bolt comes down on it; the target jolts through the aftershocks.\",\n\t\tTags:     []string{\"move\", \"lightning\", \"spell\", \"strike\", \"one-shot\"},\n\t\tSize:     [2]int{290, 266},\n\t\tOrigin:   [2]int{42, 231},\n\t\tDuration: 3,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{lightningTX},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: pixelfx.Ready},\n\t\t\t{T: 0.26, Pose: lightningUp},\n\t\t\t{T: lightningBolt - 0.04, Pose: lightningUp.With(pixelfx.Y.Is(-1), pixelfx.Crouch.Is(-1))},\n\t\t\t{T: lightningBolt, Pose: lightningDown, How: \"snap\"},\n\t\t\t{T: 1.4, Pose: lightningDown.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(4))},\n\t\t\t{T: 2, Pose: pixelfx.Ready},\n\t\t\t{T: 3, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: lightningBolt, Stop: 0.14, Shake: 0.32, Amp: pixelfx.Val(3), Push: pixelfx.Val(2.8), Straw: pixelfx.Val(24), Skin: \"shock\", Shiver: 1.2},\n\t\t\t{T: 1.04, Stop: 0.03, Push: pixelfx.Val(1.2), Straw: pixelfx.Val(8)},\n\t\t\t{T: 1.26, Stop: 0.03, Push: pixelfx.Val(-1), Straw: pixelfx.Val(6)},\n\t\t\t{T: 2.5, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: lightningBolt, X: 14, N: 6, Dir: 1}},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{{FX: lightning.LightningStrike, T: 0, X: lightningTX}}),\n}",
          "doc": "LightningCall is a move: an arm goes up, a sigil lights under the target, and on the downswing a thick bolt comes down on it; the target jolts through the aftershocks. It chains lightning.LightningStrike and is registered as \"moves/lightning-call\".\n",
          "file": "pkg/pixelfx/moves/lightning_call.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "MeteorCall",
              "anchor": "MeteorCall"
            }
          ],
          "decl": "var MeteorCall = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Meteor call\",\n\t\tDesc:     \"A long chant: a circle draws itself round him, it flares, he points, and a burning rock comes down on the target and flattens the scene.\",\n\t\tTags:     []string{\"move\", \"fire\", \"spell\", \"meteor\", \"ultimate\", \"one-shot\"},\n\t\tSize:     [2]int{380, 240},\n\t\tOrigin:   [2]int{92, 212},\n\t\tDuration: meteorHit - 0.62 + 5,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{meteorTX},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.34, Pose: pixelfx.Ready},\n\t\t\t{T: 0, Pose: meteorChant},\n\t\t\t{T: 0.75, Pose: meteorChant.With(pixelfx.Crouch.Is(2))},\n\t\t\t{T: 1.4, Pose: meteorUp},\n\t\t\t{T: meteorBolt - 0.02, Pose: meteorUp.With(pixelfx.Y.Is(-1))},\n\t\t\t{T: meteorBolt, Pose: meteorPoint, How: \"snap\"},\n\t\t\t{T: meteorHit - 0.02, Pose: meteorPoint.With(pixelfx.Crouch.Is(3))},\n\t\t\t{T: meteorHit, Pose: meteorFlinch, How: \"snap\"},\n\t\t\t{T: meteorHit + 0.9, Pose: meteorFlinch.With(pixelfx.Crouch.Is(3), pixelfx.Lean.Is(-2))},\n\t\t\t{T: meteorHit + 1.7, Pose: pixelfx.Ready.With(pixelfx.X.Is(0))},\n\t\t\t{T: meteorHit + 4.3, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: meteorBolt, Stop: 0.06, Shake: 0.16, Amp: pixelfx.Val(2), NoTarget: true},\n\t\t\t{T: meteorHit, Stop: 0.22, Shake: 0.55, Amp: pixelfx.Val(4), Push: pixelfx.Val(3.8), Straw: pixelfx.Val(44), Skin: \"char\"},\n\t\t\t{T: meteorHit + 3.9, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{\n\t\t{FX: arcane.MagicCircleCast, T: 0},\n\t\t{FX: fire.Meteor, T: meteorHit - 0.62, X: meteorTX},\n\t}),\n}",
          "doc": "MeteorCall is a move: a long chant; a circle draws itself round him, it flares, he points, and a burning rock comes down on the target and flattens the scene. It chains arcane.MagicCircleCast and fire.Meteor, and is registered as \"moves/meteor-call\".\n",
          "file": "pkg/pixelfx/moves/meteor_call.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "PistolShots",
              "anchor": "PistolShots"
            }
          ],
          "decl": "var PistolShots = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Pistol shots\",\n\t\tDesc:     \"Three aimed shots: the gun kicks up each time and settles, tracers cross the floor, and the target staggers under each hit.\",\n\t\tTags:     []string{\"move\", \"gun\", \"pistol\", \"projectile\", \"ranged\", \"one-shot\"},\n\t\tSize:     [2]int{378, 76},\n\t\tOrigin:   [2]int{111, 72},\n\t\tDuration: 2.6,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{pistolTX},\n\t\tPoses:   pistolPoses(),\n\t\tHits:    pistolHits(),\n\t},\n\tNew: pixelfx.Chain(pistolCues()),\n}",
          "doc": "PistolShots is a move: three aimed shots; the gun kicks up each time and settles, tracers cross the floor, and the target staggers under each hit. It chains projectiles.MuzzlePistol, projectiles.BulletTracer and impacts.HitSpark, and is registered as \"moves/pistol-shots\".\n",
          "file": "pkg/pixelfx/moves/pistol_shots.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "RocketLauncher",
              "anchor": "RocketLauncher"
            }
          ],
          "decl": "var RocketLauncher = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Rocket launcher\",\n\t\tDesc:     \"He drops to one knee, shoulders the tube and fires: the kick shoves him back along the floor, the rocket crawls out on its jet and the target goes up.\",\n\t\tTags:     []string{\"move\", \"gun\", \"rocket\", \"projectile\", \"explosion\", \"one-shot\"},\n\t\tSize:     [2]int{480, 244},\n\t\tOrigin:   [2]int{178, 198},\n\t\tDuration: rocketHit + 5.4,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{rocketTX},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.52, Pose: rocketRest},\n\t\t\t{T: -0.18, Pose: rocketKneel},\n\t\t\t{T: rocketFire - 0.001, Pose: rocketKneel.With(pixelfx.Crouch.Is(7))},\n\t\t\t{T: rocketFire, Pose: rocketKicked, How: \"snap\"},\n\t\t\t{T: rocketFire + 0.36, Pose: rocketKneel.With(pixelfx.X.Is(-6))},\n\t\t\t{T: rocketHit + 0.9, Pose: rocketKneel.With(pixelfx.X.Is(-6), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(1))},\n\t\t\t{T: rocketHit + 1.5, Pose: rocketRest.With(pixelfx.X.Is(-3))},\n\t\t\t{T: rocketHit + 2.2, Pose: rocketRest.With(pixelfx.X.Is(0))},\n\t\t\t{T: rocketHit + 5.4, Pose: rocketRest},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: rocketFire, Stop: 0.06, Shake: 0.22, Amp: pixelfx.Val(2), NoTarget: true},\n\t\t\t{T: rocketHit, Stop: 0.2, Shake: 0.45, Amp: pixelfx.Val(4), Push: pixelfx.Val(3.8), Straw: pixelfx.Val(44), Skin: \"char\"},\n\t\t\t{T: rocketHit + 4.8, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: rocketFire, X: -16, N: 10, Dir: -1}},\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{\n\t\t{FX: projectiles.MuzzleShotgun, T: rocketFire, X: rocketMX, Options: map[string]pixelfx.Value{\"height\": pixelfx.Num(-rocketMY)}},\n\t\t{FX: projectiles.Rocket, T: rocketFire, Until: rocketHit, XFn: rocketX, Y: rocketMY},\n\t\t{FX: explosions.SmallExplosion, T: rocketHit, X: rocketTX},\n\t}),\n}",
          "doc": "RocketLauncher is a move: he drops to one knee, shoulders the tube and fires; the kick shoves him back along the floor, the rocket crawls out on its jet and the target goes up. It chains projectiles.MuzzleShotgun, projectiles.Rocket and explosions.SmallExplosion, and is registered as \"moves/rocket-launcher\".\n",
          "file": "pkg/pixelfx/moves/rocket_launcher.go",
          "line": 33
        },
        {
          "idents": [
            {
              "name": "SwordCombo",
              "anchor": "SwordCombo"
            }
          ],
          "decl": "var SwordCombo = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Sword combo\",\n\t\tDesc:     \"Three strokes walking forward: a slash, a crossing double cut, and a two-handed cleave into the floor that throws the target about.\",\n\t\tTags:     []string{\"move\", \"melee\", \"sword\", \"combo\", \"one-shot\"},\n\t\tSize:     [2]int{264, 150},\n\t\tOrigin:   [2]int{72, 130},\n\t\tDuration: comboFinish + 1.6,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions:  []pixelfx.Option{{Name: \"seed\", Default: pixelfx.Num(1)}},\n\t},\n\tAct: &pixelfx.Act{\n\t\tTargets: []float64{118},\n\t\tPoses:   comboPoses(),\n\t\tHits:    comboHits(),\n\t\tDust:    comboDust(),\n\t},\n\tNew: pixelfx.Chain([]pixelfx.Cue{\n\t\t{FX: melee.SwordSlash, T: comboA},\n\t\t{FX: melee.DoubleSlash, T: comboB, X: comboStep},\n\t\t{FX: melee.HeavyCleave, T: comboC, X: comboStep * 2},\n\t}),\n}",
          "doc": "SwordCombo is a move: three strokes walking forward; a slash, a crossing double cut, and a two-handed cleave into the floor that throws the target about. It chains melee.SwordSlash, melee.DoubleSlash and melee.HeavyCleave, and is registered as \"moves/sword-combo\".\n",
          "file": "pkg/pixelfx/moves/sword_combo.go",
          "line": 23
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/nature",
      "name": "nature",
      "dir": "pkg/pixelfx/nature",
      "page": "pkg/pixelfx/nature",
      "synopsis": "Package nature is pixelfx's nature category: acid splashes, boulders, earth spikes, healing blooms, leaf storms, poison clouds, quakes, root snares, spore bursts, thorns, tornadoes, toxic puddles and vine whips, each a pixelfx.Effect registered as \"nature/<name>\" when the package is imported.",
      "doc": "Package nature is pixelfx's nature category: acid splashes, boulders, earth spikes, healing blooms, leaf storms, poison clouds, quakes, root snares, spore bursts, thorns, tornadoes, toxic puddles and vine whips, each a pixelfx.Effect registered as \"nature/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "AcidSplash",
              "anchor": "AcidSplash"
            }
          ],
          "decl": "var AcidSplash = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Acid splash\",\n\t\tDesc:     \"A gob of acid bursts into a crown and spatters; it eats a glowing, smoking pit into the floor and boils down into it, spitting bright beads, pale steam curling off.\",\n\t\tTags:     []string{\"nature\", \"acid\", \"poison\", \"splash\", \"liquid\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{184, 116},\n\t\tOrigin:   [2]int{92, 100},\n\t\tDuration: acidSplashDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0e140a\", \"#1c3010\", \"#2c5214\", \"#457e18\", \"#6aae1c\", \"#a0dc2a\", \"#dcff6a\", \"#f8ffd0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newAcidSplash,\n}",
          "doc": "AcidSplash is a gob of acid bursting into a crown and eating a smoking pit into the floor. It is registered as \"nature/acid-splash\".\n",
          "file": "pkg/pixelfx/nature/acid_splash.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Boulder",
              "anchor": "Boulder"
            }
          ],
          "decl": "var Boulder = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Boulder\",\n\t\tDesc:     \"A spinning boulder arcs right shedding dust and pebbles, smashes into the floor in a white flash and bursts into tumbling chunks, gravel and rolling dust.\",\n\t\tTags:     []string{\"nature\", \"earth\", \"rock\", \"projectile\", \"impact\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{264, 120},\n\t\tOrigin:   [2]int{40, 104},\n\t\tDuration: boulderDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#100e12\", \"#1e1a22\", \"#302a36\", \"#463e4c\", \"#5e5464\", \"#7c7080\", \"#a0949e\", \"#cec4c8\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"size\", Default: pixelfx.Num(11)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(11)},\n\t\t},\n\t},\n\tNew: newBoulder,\n}",
          "doc": "Boulder is a spinning boulder that arcs right, smashes into the floor in a white flash and bursts into tumbling chunks, gravel and rolling dust. It is registered as \"nature/boulder\".\n",
          "file": "pkg/pixelfx/nature/boulder.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "EarthSpike",
              "anchor": "EarthSpike"
            }
          ],
          "decl": "var EarthSpike = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Earth spike\",\n\t\tDesc:     \"The floor cracks with light and heaves, a faceted stone spike rams up with two side shards in a burst of chips, grit and dust; rubble rains, then it splits and crumbles.\",\n\t\tTags:     []string{\"nature\", \"earth\", \"stone\", \"spike\", \"ground\", \"attack\", \"one-shot\"},\n\t\tSize:     [2]int{272, 150},\n\t\tOrigin:   [2]int{136, 132},\n\t\tDuration: earthSpikeDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#120c0c\", \"#251917\", \"#3b2a24\", \"#553d31\", \"#715440\", \"#8f6e52\", \"#b8966e\", \"#e6d0a8\")},\n\t\t\t{Name: \"glow\", Default: pixelfx.Palette(\"#4a1a0c\", \"#a8401a\", \"#ff8a2a\", \"#ffd27a\", \"#fff4d0\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(62)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newEarthSpike,\n}",
          "doc": "EarthSpike is a faceted stone spike that erupts from a cracking, glowing floor with two side shards, then splits and crumbles into rubble. It is registered as \"nature/earth-spike\".\n",
          "file": "pkg/pixelfx/nature/earth_spike.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "HealingBloom",
              "anchor": "HealingBloom"
            }
          ],
          "decl": "var HealingBloom = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Healing bloom\",\n\t\tDesc:     \"A sprout pushes up and unfurls, a bud swells and opens round a glowing golden heart in a flare of healing light; its petals lift away one by one as motes.\",\n\t\tTags:     []string{\"nature\", \"heal\", \"flower\", \"plant\", \"buff\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{124, 120},\n\t\tOrigin:   [2]int{62, 108},\n\t\tDuration: bloomDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0c1a10\", \"#173a1a\", \"#24582a\", \"#357a34\", \"#52a03e\", \"#86c84e\", \"#c4ec7a\", \"#f4ffd0\")},\n\t\t\t{Name: \"petal\", Default: pixelfx.Palette(\"#4a1a3a\", \"#a8406e\", \"#ec8ab0\", \"#ffd8e8\")},\n\t\t\t{Name: \"heart\", Default: pixelfx.Palette(\"#a8641a\", \"#f0b42e\", \"#ffe680\", \"#fffbe0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newHealingBloom,\n}",
          "doc": "HealingBloom is a sprout that pushes up and opens into a glowing golden flower in a flare of healing light, then lifts away as petals and motes. It is registered as \"nature/healing-bloom\".\n",
          "file": "pkg/pixelfx/nature/healing_bloom.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "LeafStorm",
              "anchor": "LeafStorm"
            }
          ],
          "decl": "var LeafStorm = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Leaf storm\",\n\t\tDesc:     \"Leaves tumble up a rising spiral round the character, passing behind and in front, turning and flipping, wrapped in bright bands of wind; litter swirls at their feet.\",\n\t\tTags:     []string{\"nature\", \"wind\", \"leaves\", \"buff\", \"aura\", \"actor\", \"loop\"},\n\t\tSize:     [2]int{112, 104},\n\t\tOrigin:   [2]int{56, 92},\n\t\tDuration: leafStormDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a2420\", \"#2e4038\", \"#4a6656\", \"#7a9a84\", \"#b4d0b8\", \"#eef8e8\")},\n\t\t\t{Name: \"leaves\", Default: pixelfx.Palette(\"#123818\", \"#2f7a2a\", \"#6cb83a\", \"#c8f070\", \"#4a2a08\", \"#a8701c\", \"#e8b42e\", \"#fff09a\", \"#3a1010\", \"#9a2e1c\", \"#e0642a\", \"#ffb070\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: leafStormUp},\n\t\t\t{T: 0.6, Pose: leafStormUp.With(pixelfx.Lean.Is(2), pixelfx.FY.Is(-40), pixelfx.BY.Is(-33))},\n\t\t\t{T: 1.2, Pose: leafStormUp.With(pixelfx.Crouch.Is(-1))},\n\t\t\t{T: 1.8, Pose: leafStormUp.With(pixelfx.Lean.Is(-2), pixelfx.FY.Is(-33), pixelfx.BY.Is(-40))},\n\t\t\t{T: 2.4, Pose: leafStormUp},\n\t\t},\n\t},\n\tNew: newLeafStorm,\n}",
          "doc": "LeafStorm is a rising spiral of tumbling leaves and wind bands around a character, with swirling litter at their feet. It is registered as \"nature/leaf-storm\".\n",
          "file": "pkg/pixelfx/nature/leaf_storm.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "PoisonCloud",
              "anchor": "PoisonCloud"
            }
          ],
          "decl": "var PoisonCloud = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Poison cloud\",\n\t\tDesc:     \"A miasma hugging the floor: ragged sheets of gas lit yellow-green from within, fading to violet, creep out in tongues that curl over at their tips; plumes twist up as ribbons.\",\n\t\tTags:     []string{\"nature\", \"poison\", \"gas\", \"cloud\", \"miasma\", \"toxic\", \"area\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{256, 100},\n\t\tOrigin:   [2]int{128, 86},\n\t\tDuration: poisonCloudDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0e0816\", \"#24123a\", \"#3e2056\", \"#5a3a62\", \"#6a6a3a\", \"#96aa30\", \"#cce040\", \"#f4ffa0\")},\n\t\t\t{Name: \"spread\", Default: pixelfx.Num(1)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newPoisonCloud,\n}",
          "doc": "PoisonCloud is a miasma hugging the floor: ragged sheets of gas lit yellow-green from within, fading to violet, with curling tongues and twisting ribbon plumes. It is registered as \"nature/poison-cloud\".\n",
          "file": "pkg/pixelfx/nature/poison_cloud.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Quake",
              "anchor": "Quake"
            }
          ],
          "decl": "var Quake = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Quake\",\n\t\tDesc:     \"The ground jolts three times: a rift tears out along the floor glowing deep inside, slabs of floor heave up and drop back askew, pebbles hop and dust bursts out of the split.\",\n\t\tTags:     []string{\"nature\", \"earth\", \"quake\", \"rift\", \"aoe\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{288, 104},\n\t\tOrigin:   [2]int{144, 88},\n\t\tDuration: quakeDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0e0c14\", \"#1a1724\", \"#211d2d\", \"#2b2639\", \"#3a3450\", \"#4a4263\", \"#6a6088\", \"#8e86a8\")},\n\t\t\t{Name: \"glow\", Default: pixelfx.Palette(\"#4a1a0c\", \"#a8401a\", \"#ff8a2a\", \"#ffd27a\", \"#fff4d0\")},\n\t\t\t{Name: \"reach\", Default: pixelfx.Num(118)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(12)},\n\t\t},\n\t},\n\tNew: newQuake,\n}",
          "doc": "Quake is three ground jolts that tear a glowing rift along the floor, heave up slabs and shower pebbles and dust. It is registered as \"nature/quake\".\n",
          "file": "pkg/pixelfx/nature/quake.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "RootSnare",
              "anchor": "RootSnare"
            }
          ],
          "decl": "var RootSnare = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Root snare\",\n\t\tDesc:     \"The floor cracks and roots burst up round the character, spiralling round its legs; they cinch tight with a snap, hold, then crack and crumble into bark and dust.\",\n\t\tTags:     []string{\"nature\", \"roots\", \"plant\", \"snare\", \"root\", \"status\", \"actor\", \"one-shot\"},\n\t\tSize:     [2]int{128, 96},\n\t\tOrigin:   [2]int{64, 78},\n\t\tDuration: rootSnareDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#140c08\", \"#2a1a10\", \"#46301e\", \"#64462a\", \"#86623a\", \"#a8824e\", \"#ccaa70\", \"#ecd6a0\")},\n\t\t\t{Name: \"glow\", Default: pixelfx.Palette(\"#123818\", \"#2f7a2a\", \"#6cb83a\", \"#c8f070\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.24, Pose: pixelfx.Ready.With(pixelfx.FFX.Is(-2), pixelfx.FBX.Is(3))},\n\t\t\t{T: 0.3, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(0.9), pixelfx.Lean.Is(-1), pixelfx.Crouch.Is(2), pixelfx.FX.Is(-10), pixelfx.FY.Is(-24), pixelfx.BX.Is(11), pixelfx.BY.Is(-24), pixelfx.FFX.Is(-2), pixelfx.FBX.Is(3))},\n\t\t\t{T: 0.62, Pose: rootSnareGrab, How: \"snap\"},\n\t\t\t{T: 0.86, Pose: rootSnareGrab.With(pixelfx.Lean.Is(-3), pixelfx.FY.Is(-37), pixelfx.BY.Is(-27))},\n\t\t\t{T: 1.1, Pose: rootSnareGrab.With(pixelfx.Lean.Is(3), pixelfx.FY.Is(-27), pixelfx.BY.Is(-37))},\n\t\t\t{T: 1.34, Pose: rootSnareGrab.With(pixelfx.Lean.Is(-3), pixelfx.FY.Is(-37), pixelfx.BY.Is(-27))},\n\t\t\t{T: 1.58, Pose: rootSnareGrab.With(pixelfx.Lean.Is(3), pixelfx.FY.Is(-27), pixelfx.BY.Is(-37))},\n\t\t\t{T: 1.75, Pose: rootSnareGrab.With(pixelfx.Crouch.Is(6))},\n\t\t\t{T: 1.8, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1.1), pixelfx.Crouch.Is(-1), pixelfx.Y.Is(-3), pixelfx.FX.Is(-14), pixelfx.FY.Is(-36), pixelfx.BX.Is(15), pixelfx.BY.Is(-36), pixelfx.FFX.Is(-3), pixelfx.FFY.Is(-6), pixelfx.FBX.Is(4), pixelfx.FBY.Is(-6)), How: \"snap\"},\n\t\t\t{T: 2.05, Pose: pixelfx.Ready.With(pixelfx.Y.Is(0), pixelfx.Crouch.Is(5))},\n\t\t\t{T: 2.7, Pose: pixelfx.Ready.With(pixelfx.FFX.Is(-2), pixelfx.FBX.Is(3))},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.62, Stop: 0.05, Shake: 0.1, Amp: pixelfx.Val(1)},\n\t\t\t{T: 1.75, Stop: 0.04, Shake: 0.14, Amp: pixelfx.Val(2)},\n\t\t},\n\t},\n\tNew: newRootSnare,\n}",
          "doc": "RootSnare is roots that burst from a cracking floor, spiral round a character's legs, cinch tight, hold, then crumble into bark and dust. It is registered as \"nature/root-snare\".\n",
          "file": "pkg/pixelfx/nature/root_snare.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "SporeBurst",
              "anchor": "SporeBurst"
            }
          ],
          "decl": "var SporeBurst = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Spore burst\",\n\t\tDesc:     \"A toadstool pushes up, swells and trembles as its gills glow, then squashes and puffs a lumpy cloud of glowing spores that billows up and drifts down twinkling.\",\n\t\tTags:     []string{\"nature\", \"mushroom\", \"spores\", \"poison\", \"cloud\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{212, 132},\n\t\tOrigin:   [2]int{106, 118},\n\t\tDuration: sporeBurstDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#06141c\", \"#0c2a34\", \"#11484e\", \"#17706a\", \"#22a08a\", \"#4cd0a8\", \"#a8f4d0\", \"#f0fff6\")},\n\t\t\t{Name: \"cap\", Default: pixelfx.Palette(\"#1a0c1e\", \"#3a1438\", \"#62204e\", \"#8e3462\", \"#bc5276\", \"#e88a96\")},\n\t\t\t{Name: \"stem\", Default: pixelfx.Palette(\"#2a2230\", \"#5a4e5e\", \"#9a8e98\", \"#d8ccd0\", \"#f6eeee\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newSporeBurst,\n}",
          "doc": "SporeBurst is a toadstool that swells, trembles as its gills glow, then squashes and puffs a lumpy cloud of glowing spores. It is registered as \"nature/spore-burst\".\n",
          "file": "pkg/pixelfx/nature/spore_burst.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Thorns",
              "anchor": "Thorns"
            }
          ],
          "decl": "var Thorns = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Thorns\",\n\t\tDesc:     \"A seam races along the floor and hooked thorns punch up out of it one after another, each bigger than the last, in bursts of dirt and green light; they hold, then sink.\",\n\t\tTags:     []string{\"nature\", \"thorns\", \"plant\", \"spikes\", \"ground\", \"attack\", \"one-shot\"},\n\t\tSize:     [2]int{232, 92},\n\t\tOrigin:   [2]int{48, 78},\n\t\tDuration: thornsDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#160c0e\", \"#2e1418\", \"#4e2224\", \"#743a30\", \"#9a5a3e\", \"#c08458\", \"#e2b484\", \"#fbe8c8\")},\n\t\t\t{Name: \"glow\", Default: pixelfx.Palette(\"#123818\", \"#2f7a2a\", \"#6cb83a\", \"#c8f070\")},\n\t\t\t{Name: \"soil\", Default: pixelfx.Palette(\"#120c0c\", \"#251917\", \"#3b2a24\", \"#553d31\", \"#715440\", \"#8f6e52\", \"#b8966e\", \"#e6d0a8\")},\n\t\t\t{Name: \"count\", Default: pixelfx.Num(6)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newThorns,\n}",
          "doc": "Thorns is a wave of hooked thorns that punch up one after another from a glowing floor seam, hold, and sink back down. It is registered as \"nature/thorns\".\n",
          "file": "pkg/pixelfx/nature/thorns.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Tornado",
              "anchor": "Tornado"
            }
          ],
          "decl": "var Tornado = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Tornado\",\n\t\tDesc:     \"A snaking funnel of spinning wind bands under a flared, churning top that flickers with lightning; leaves and debris whirl round it front and back, dust boils at its foot.\",\n\t\tTags:     []string{\"nature\", \"wind\", \"tornado\", \"storm\", \"hazard\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{196, 168},\n\t\tOrigin:   [2]int{98, 152},\n\t\tDuration: tornadoDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#141221\", \"#231f33\", \"#36314a\", \"#4d4762\", \"#68617d\", \"#8a839e\", \"#b3adc4\", \"#e2def0\")},\n\t\t\t{Name: \"dust\", Default: pixelfx.Palette(\"#2a2018\", \"#4e3e2e\", \"#76624a\", \"#a08a6a\", \"#cbb894\")},\n\t\t\t{Name: \"leaves\", Default: pixelfx.Palette(\"#4a200c\", \"#a8541c\", \"#e8962e\", \"#ffd27a\", \"#123818\", \"#2f7a2a\", \"#6cb83a\", \"#c8f070\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(112)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newTornado,\n}",
          "doc": "Tornado is a snaking funnel of spinning wind bands under a churning cloud crown flickering with lightning, whirling leaves, debris and boiling floor dust. It is registered as \"nature/tornado\".\n",
          "file": "pkg/pixelfx/nature/tornado.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "ToxicPuddle",
              "anchor": "ToxicPuddle"
            }
          ],
          "decl": "var ToxicPuddle = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Toxic puddle\",\n\t\tDesc:     \"Black tar lit from inside by chartreuse veins and a glowing rim, an oily sheen drifting on it; glossy bubbles dome, stretch and pop, vapour curls up in fraying ribbons.\",\n\t\tTags:     []string{\"nature\", \"poison\", \"toxic\", \"sludge\", \"tar\", \"puddle\", \"hazard\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{176, 100},\n\t\tOrigin:   [2]int{88, 86},\n\t\tDuration: toxicPuddleDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#06070a\", \"#0c100c\", \"#141a10\", \"#1e2814\", \"#2e3c18\", \"#5a7a1c\", \"#a6d42a\", \"#ecff86\")},\n\t\t\t{Name: \"sheen\", Default: pixelfx.Palette(\"#2a1648\", \"#5a2e8e\", \"#1e7a86\", \"#6adccc\")},\n\t\t\t{Name: \"width\", Default: pixelfx.Num(42)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newToxicPuddle,\n}",
          "doc": "ToxicPuddle is black tar lit from inside by chartreuse veins and a glowing rim, with an oily sheen, glossy popping bubbles and curling vapour ribbons. It is registered as \"nature/toxic-puddle\".\n",
          "file": "pkg/pixelfx/nature/toxic_puddle.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "VineWhip",
              "anchor": "VineWhip"
            }
          ],
          "decl": "var VineWhip = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Vine whip\",\n\t\tDesc:     \"A thorny vine bursts from the floor, rears back coiled, then lashes out right in a whip crack that sprays sap and tears off leaves, before sliding back into the ground.\",\n\t\tTags:     []string{\"nature\", \"vine\", \"plant\", \"whip\", \"melee\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{216, 128},\n\t\tOrigin:   [2]int{60, 114},\n\t\tDuration: vineWhipDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0c1a10\", \"#173a1a\", \"#24582a\", \"#357a34\", \"#52a03e\", \"#86c84e\", \"#c4ec7a\", \"#f4ffd0\")},\n\t\t\t{Name: \"thorn\", Default: pixelfx.Palette(\"#2a1410\", \"#5e2a1a\", \"#a04c2e\", \"#e89a6a\")},\n\t\t\t{Name: \"soil\", Default: pixelfx.Palette(\"#120c0c\", \"#251917\", \"#3b2a24\", \"#553d31\", \"#715440\", \"#8f6e52\", \"#b8966e\", \"#e6d0a8\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newVineWhip,\n}",
          "doc": "VineWhip is a thorny vine that bursts from the floor, rears back coiled, lashes out right with a whip crack that sprays sap and tears off leaves, then slides back into the ground. It is registered as \"nature/vine-whip\".\n",
          "file": "pkg/pixelfx/nature/vine_whip.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/pickups",
      "name": "pickups",
      "dir": "pkg/pixelfx/pickups",
      "page": "pkg/pixelfx/pickups",
      "synopsis": "Package pickups is pixelfx's pickups category: coins, gems, crystals, hearts, keys, potions, power stars, XP orbs, loot beams, collect bursts and treasure chests, each a pixelfx.Effect registered as \"pickups/<name>\" when the package is imported.",
      "doc": "Package pickups is pixelfx's pickups category: coins, gems, crystals, hearts, keys, potions, power stars, XP orbs, loot beams, collect bursts and treasure chests, each a pixelfx.Effect registered as \"pickups/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "ChestOpen",
              "anchor": "ChestOpen"
            }
          ],
          "decl": "var ChestOpen = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Chest open\",\n\t\tDesc:     \"A banded chest rattles with gold light leaking from its seam, the lid kicks open, rays fan up, and coins and gems arc out, bounce, glint and get collected.\",\n\t\tTags:     []string{\"pickup\", \"chest\", \"treasure\", \"loot\", \"reward\", \"gold\", \"one-shot\"},\n\t\tSize:     [2]int{176, 112},\n\t\tOrigin:   [2]int{88, 96},\n\t\tDuration: 4.6,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1e1206\", \"#4a2c08\", \"#86520c\", \"#c48412\", \"#f0b424\", \"#ffe066\", \"#fff6c4\", \"#ffffff\")},\n\t\t\t{Name: \"wood\", Default: pixelfx.Palette(\"#110a10\", \"#24131a\", \"#3a1f1f\", \"#552d24\", \"#73402c\", \"#925737\", \"#b07246\")},\n\t\t\t{Name: \"coins\", Default: pixelfx.Num(12)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newChestOpen,\n}",
          "doc": "ChestOpen is a banded chest that rattles with gold light leaking from its seam, kicks its lid open, fans rays up, and launches coins and gems that arc out, bounce, glint and get collected. It is registered as \"pickups/chest-open\".\n",
          "file": "pkg/pixelfx/pickups/chest_open.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "CoinSpin",
              "anchor": "CoinSpin"
            }
          ],
          "decl": "var CoinSpin = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Coin spin\",\n\t\tDesc:     \"A thick gold coin turning on its edge: an embossed star face, a reeded rim showing as it goes edge-on, a flash sweeping the face, bobbing over its shadow.\",\n\t\tTags:     []string{\"pickup\", \"coin\", \"gold\", \"money\", \"loop\"},\n\t\tSize:     [2]int{56, 56},\n\t\tOrigin:   [2]int{28, 48},\n\t\tDuration: coinSpinDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1e1206\", \"#4a2c08\", \"#86520c\", \"#c48412\", \"#f0b424\", \"#ffe066\", \"#fff6c4\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newCoinSpin,\n}",
          "doc": "CoinSpin is a thick gold coin turning on its edge: an embossed star face, a reeded rim showing as it goes edge-on, a flash sweeping the face, bobbing over its shadow. It is registered as \"pickups/coin-spin\".\n",
          "file": "pkg/pixelfx/pickups/coin_spin.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "CollectBurst",
              "anchor": "CollectBurst"
            }
          ],
          "decl": "var CollectBurst = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Collect burst\",\n\t\tDesc:     \"The moment of pickup: a white flash and a cross of light, a thin ring snapping out ahead of a softer one, twinkles thrown wide on curving paths that brake, hang and wink out.\",\n\t\tTags:     []string{\"pickup\", \"collect\", \"burst\", \"sparkle\", \"reward\", \"one-shot\"},\n\t\tSize:     [2]int{112, 108},\n\t\tOrigin:   [2]int{56, 94},\n\t\tDuration: 1.35,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0516\", \"#3d0a33\", \"#701560\", \"#b0228f\", \"#f53cd1\", \"#ff86e6\", \"#ffd2f6\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newCollectBurst,\n}",
          "doc": "CollectBurst is the moment of pickup: a white flash and a cross of light, a thin ring snapping out ahead of a softer one, twinkles thrown wide on curving paths that brake, hang and wink out. It is registered as \"pickups/collect-burst\".\n",
          "file": "pkg/pixelfx/pickups/collect_burst.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "CrystalShard",
              "anchor": "CrystalShard"
            }
          ],
          "decl": "var CrystalShard = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Crystal shard\",\n\t\tDesc:     \"A broken amber shard hovers and sways: chipped uneven faces, its top sheared off, light pulsing up through glowing cracks and flaring out of the break; splinters orbit it.\",\n\t\tTags:     []string{\"pickup\", \"crystal\", \"shard\", \"relic\", \"broken\", \"loop\"},\n\t\tSize:     [2]int{64, 76},\n\t\tOrigin:   [2]int{32, 68},\n\t\tDuration: crystalShardDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0a04\", \"#3e1606\", \"#702a08\", \"#a8480c\", \"#e07818\", \"#ffa838\", \"#ffd890\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newCrystalShard,\n}",
          "doc": "CrystalShard is a broken amber shard hovering and swaying with glowing cracks, a flaring break and orbiting splinters. It is registered as \"pickups/crystal-shard\".\n",
          "file": "pkg/pixelfx/pickups/crystal_shard.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "GemSpin",
              "anchor": "GemSpin"
            }
          ],
          "decl": "var GemSpin = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Gem spin\",\n\t\tDesc:     \"A brilliant-cut ruby turning on its axis: real facets catch the light in turn, flashes roll over the crown, refracted light slides across the floor, sparkles wink round it.\",\n\t\tTags:     []string{\"pickup\", \"gem\", \"jewel\", \"treasure\", \"ruby\", \"loop\"},\n\t\tSize:     [2]int{64, 64},\n\t\tOrigin:   [2]int{32, 56},\n\t\tDuration: gemSpinDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#16040e\", \"#3e0a1e\", \"#760e2e\", \"#b8163c\", \"#ec3250\", \"#ff7482\", \"#ffc4c8\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newGemSpin,\n}",
          "doc": "GemSpin is a brilliant-cut ruby turning on its axis: real facets catch the light in turn, flashes roll over the crown, refracted light slides across the floor, sparkles wink round it. It is registered as \"pickups/gem-spin\".\n",
          "file": "pkg/pixelfx/pickups/gem_spin.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "HeartPickup",
              "anchor": "HeartPickup"
            }
          ],
          "decl": "var HeartPickup = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Heart pickup\",\n\t\tDesc:     \"A plump glossy heart hovering over its shadow beats lub-dub: a big squash and stretch, a smaller echo, light and a thin ring pulsing out, tiny hearts drifting off.\",\n\t\tTags:     []string{\"pickup\", \"heart\", \"health\", \"life\", \"loop\"},\n\t\tSize:     [2]int{56, 60},\n\t\tOrigin:   [2]int{28, 52},\n\t\tDuration: heartPickupDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0408\", \"#4a0a14\", \"#8a1222\", \"#d02436\", \"#ff4a56\", \"#ff8a8e\", \"#ffd0cc\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newHeartPickup,\n}",
          "doc": "HeartPickup is a plump glossy heart hovering over its shadow that beats lub-dub: a big squash and stretch, a smaller echo, light and a thin ring pulsing out, tiny hearts drifting off. It is registered as \"pickups/heart-pickup\".\n",
          "file": "pkg/pixelfx/pickups/heart_pickup.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "KeyGlint",
              "anchor": "KeyGlint"
            }
          ],
          "decl": "var KeyGlint = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Key glint\",\n\t\tDesc:     \"An ornate silver key hovering and rocking; a glint runs from its bow down the shaft to the teeth and bursts off the tip as falling sparks.\",\n\t\tTags:     []string{\"pickup\", \"key\", \"unlock\", \"item\", \"loop\"},\n\t\tSize:     [2]int{72, 60},\n\t\tOrigin:   [2]int{36, 54},\n\t\tDuration: keyGlintDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0e1018\", \"#222838\", \"#3c4660\", \"#5e6d8e\", \"#8c9cbc\", \"#bccae2\", \"#e6eeff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tNew: newKeyGlint,\n}",
          "doc": "KeyGlint is an ornate silver key hovering and rocking; a glint runs from its bow down the shaft to the teeth and bursts off the tip as falling sparks. It is registered as \"pickups/key-glint\".\n",
          "file": "pkg/pixelfx/pickups/key_glint.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "LootBeam",
              "anchor": "LootBeam"
            }
          ],
          "decl": "var LootBeam = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Loot beam\",\n\t\tDesc:     \"A dropped sword in a tall pillar of rarity light: a white core thinning to the sky, rings pulsing across the floor, motes streaming up, a glint racing up the shaft.\",\n\t\tTags:     []string{\"pickup\", \"loot\", \"beam\", \"rarity\", \"drop\", \"item\", \"loop\"},\n\t\tSize:     [2]int{96, 176},\n\t\tOrigin:   [2]int{48, 162},\n\t\tDuration: lootBeamDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#140a24\", \"#2c1250\", \"#4b1d86\", \"#7330c0\", \"#a050f0\", \"#c890ff\", \"#ecd4ff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newLootBeam,\n}",
          "doc": "LootBeam is a dropped sword in a tall pillar of rarity light: a white core thinning to the sky, rings pulsing across the floor, motes streaming up, a glint racing up the shaft. It is registered as \"pickups/loot-beam\".\n",
          "file": "pkg/pixelfx/pickups/loot_beam.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Potion",
              "anchor": "Potion"
            }
          ],
          "decl": "var Potion = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Potion\",\n\t\tDesc:     \"A round glass flask of glowing brew rocks in the air: the brew sloshes behind the rock, bubbles rise and pop, light glows through the glass, wisps curl off the cork.\",\n\t\tTags:     []string{\"pickup\", \"potion\", \"flask\", \"brew\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{56, 72},\n\t\tOrigin:   [2]int{28, 64},\n\t\tDuration: potionDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0516\", \"#3d0a33\", \"#701560\", \"#b0228f\", \"#f53cd1\", \"#ff86e6\", \"#ffd2f6\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newPotion,\n}",
          "doc": "Potion is a round glass flask of glowing brew rocking in the air: the brew sloshes behind the rock, bubbles rise and pop, light glows through the glass, wisps curl off the cork. It is registered as \"pickups/potion\".\n",
          "file": "pkg/pixelfx/pickups/potion.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "PowerStar",
              "anchor": "PowerStar"
            }
          ],
          "decl": "var PowerStar = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Power star\",\n\t\tDesc:     \"A fat bevelled star rocks side to side and swells on each beat, rays of light turning slowly behind it, sparks spinning off its points.\",\n\t\tTags:     []string{\"pickup\", \"star\", \"power-up\", \"invincible\", \"bonus\", \"loop\"},\n\t\tSize:     [2]int{88, 84},\n\t\tOrigin:   [2]int{44, 76},\n\t\tDuration: powerStarDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1604\", \"#5e3208\", \"#a05c0c\", \"#e09414\", \"#ffc626\", \"#ffe866\", \"#fff8c4\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newPowerStar,\n}",
          "doc": "PowerStar is a fat bevelled star rocking side to side and swelling on each beat, rays of light turning slowly behind it, sparks spinning off its points. It is registered as \"pickups/power-star\".\n",
          "file": "pkg/pixelfx/pickups/power_star.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "XPOrb",
              "anchor": "XPOrb"
            }
          ],
          "decl": "var XPOrb = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"XP orb\",\n\t\tDesc:     \"A small glowing orb races a figure-eight, a comet tail tapering behind it along its path, flecks shed from the tail winking out, its light following it over the floor.\",\n\t\tTags:     []string{\"pickup\", \"xp\", \"orb\", \"experience\", \"energy\", \"loop\"},\n\t\tSize:     [2]int{72, 56},\n\t\tOrigin:   [2]int{36, 48},\n\t\tDuration: xpOrbDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0c1806\", \"#1e3a0a\", \"#36620e\", \"#5c9614\", \"#8cd024\", \"#c4f060\", \"#effcc0\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newXPOrb,\n}",
          "doc": "XPOrb is a small glowing orb racing a figure-eight, a comet tail tapering behind it along its path, flecks shed from the tail winking out, its light following it over the floor. It is registered as \"pickups/xp-orb\".\n",
          "file": "pkg/pixelfx/pickups/xp_orb.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/projectiles",
      "name": "projectiles",
      "dir": "pkg/pixelfx/projectiles",
      "page": "pkg/pixelfx/projectiles",
      "synopsis": "Package projectiles is pixelfx's projectiles category: arrows, tracers, cannon shots, energy discs, signal flares, homing missiles, laser bolts, magic missiles, muzzle flashes, plasma shots and rockets, each a pixelfx.Effect registered as \"projectiles/<name>\" when the package is imported.",
      "doc": "Package projectiles is pixelfx's projectiles category: arrows, tracers, cannon shots, energy discs, signal flares, homing missiles, laser bolts, magic missiles, muzzle flashes, plasma shots and rockets, each a pixelfx.Effect registered as \"projectiles/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Arrow",
              "anchor": "Arrow"
            }
          ],
          "decl": "var Arrow = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Arrow\",\n\t\tDesc:     \"An arrow in flight: a steel broadhead catching the light, a wooden shaft, fletching fluttering in the wind, streaks of air peeling off its head and swirling off its feathers.\",\n\t\tTags:     []string{\"projectile\", \"arrow\", \"bow\", \"medieval\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{112, 32},\n\t\tOrigin:   [2]int{92, 16},\n\t\tDuration: arrowDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#7a1f2c\", \"#b8323c\", \"#e8e2d6\", \"#ffffff\")},\n\t\t\t{Name: \"wood\", Default: pixelfx.Palette(\"#3a2414\", \"#6e4422\", \"#a8723c\", \"#d8a868\")},\n\t\t\t{Name: \"steel\", Default: pixelfx.Palette(\"#2e3648\", \"#5a6680\", \"#9aa6ba\", \"#dfe7f2\")},\n\t\t\t{Name: \"wind\", Default: pixelfx.Color(\"#b8c8e8\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newArrow,\n}",
          "doc": "Arrow is an arrow in flight: a steel broadhead catching the light, a wooden shaft, fletching fluttering in the wind, streaks of air peeling off its head and swirling off its feathers. It is registered as \"projectiles/arrow\".\n",
          "file": "pkg/pixelfx/projectiles/arrow.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "BulletTracer",
              "anchor": "BulletTracer"
            }
          ],
          "decl": "var BulletTracer = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Bullet tracer\",\n\t\tDesc:     \"A white-hot slug tearing along, its tracer burning behind it in a long streak that sputters and cools from white through gold to red, shedding sparks and a thread of smoke.\",\n\t\tTags:     []string{\"projectile\", \"bullet\", \"tracer\", \"gun\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{200, 40},\n\t\tOrigin:   [2]int{184, 18},\n\t\tDuration: bulletTracerDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Palette(\"#2e2a36\", \"#46404f\", \"#625b6b\", \"#817a8a\", \"#a39caa\")},\n\t\t\t{Name: \"length\", Default: pixelfx.Num(120)},\n\t\t\t{Name: \"speed\", Default: pixelfx.Num(520)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newBulletTracer,\n}",
          "doc": "BulletTracer is a white-hot slug tearing along, its tracer burning behind it in a long streak that sputters and cools from white through gold to red, shedding sparks and a thread of smoke. It is registered as \"projectiles/bullet-tracer\".\n",
          "file": "pkg/pixelfx/projectiles/bullet_tracer.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Cannonball",
              "anchor": "Cannonball"
            }
          ],
          "decl": "var Cannonball = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Cannon shot\",\n\t\tDesc:     \"A cannon fires from a muzzle `height` px above the floor (the origin): a white flash, a tongue of flame, the ball arcing off trailing smoke, a big gunsmoke cloud rolling out.\",\n\t\tTags:     []string{\"projectile\", \"cannon\", \"cannonball\", \"smoke\", \"flash\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{208, 116},\n\t\tOrigin:   [2]int{48, 102},\n\t\tDuration: 3.8,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Palette(\"#3a3542\", \"#55505e\", \"#736d7c\", \"#938d9b\", \"#b3adba\", \"#d2cdd6\", \"#ece8ee\")},\n\t\t\t{Name: \"iron\", Default: pixelfx.Palette(\"#141218\", \"#2c2a34\", \"#4c4a58\", \"#8a8898\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(12)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newCannonball,\n}",
          "doc": "Cannonball is a cannon shot fired from a muzzle height px above the floor (the origin): a white flash, a tongue of flame, the ball arcing off trailing smoke, a big gunsmoke cloud rolling out. It is registered as \"projectiles/cannonball\".\n",
          "file": "pkg/pixelfx/projectiles/cannonball.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "EnergyDisc",
              "anchor": "EnergyDisc"
            }
          ],
          "decl": "var EnergyDisc = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Energy disc\",\n\t\tDesc:     \"A sawblade of crackling energy spinning flat out as it flies: hooked teeth bright on their leading edges, a white hub, spiral arms churning, sparks flung off the teeth.\",\n\t\tTags:     []string{\"projectile\", \"disc\", \"saw\", \"energy\", \"sci-fi\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{120, 52},\n\t\tOrigin:   [2]int{92, 26},\n\t\tDuration: energyDiscDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0a0f2e\", \"#172a78\", \"#2550d0\", \"#3f8cff\", \"#7cc8ff\", \"#c8f0ff\", \"#ffffff\")},\n\t\t\t{Name: \"size\", Default: pixelfx.Num(9)},\n\t\t\t{Name: \"teeth\", Default: pixelfx.Num(8)},\n\t\t\t{Name: \"speed\", Default: pixelfx.Num(220)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newEnergyDisc,\n}",
          "doc": "EnergyDisc is a sawblade of crackling energy spinning flat out as it flies: hooked teeth bright on their leading edges, a white hub, spiral arms churning, sparks flung off the teeth. It is registered as \"projectiles/energy-disc\".\n",
          "file": "pkg/pixelfx/projectiles/energy_disc.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Flare",
              "anchor": "Flare"
            }
          ],
          "decl": "var Flare = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Signal flare\",\n\t\tDesc:     \"A signal flare streaks up off the ground trailing sparks and smoke, bursts, and hangs as a pulsing red star that drips sparks under its own red-lit smoke, then gutters out.\",\n\t\tTags:     []string{\"projectile\", \"flare\", \"signal\", \"fire\", \"smoke\", \"light\", \"one-shot\"},\n\t\tSize:     [2]int{152, 232},\n\t\tOrigin:   [2]int{76, 226},\n\t\tDuration: 5,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a0610\", \"#5c0d1c\", \"#9a1428\", \"#d8243a\", \"#ff4d5e\", \"#ff8a94\", \"#ffd0d4\", \"#ffffff\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Palette(\"#1e1a26\", \"#2e2938\", \"#433d4d\", \"#5b5466\", \"#77707f\", \"#958e9c\", \"#b3acb9\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(150)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newFlare,\n}",
          "doc": "Flare is a signal flare that streaks up off the ground trailing sparks and smoke, bursts, and hangs as a pulsing red star that drips sparks under its own red-lit smoke, then gutters out. It is registered as \"projectiles/flare\".\n",
          "file": "pkg/pixelfx/projectiles/flare.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "HomingMissile",
              "anchor": "HomingMissile"
            }
          ],
          "decl": "var HomingMissile = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Homing missile\",\n\t\tDesc:     \"A missile kicks off, arcs up, rolls over and dives onto its target (the origin), its smoke trail left hanging in the air, and hits in a fiery blast of flame, sparks and rocks.\",\n\t\tTags:     []string{\"projectile\", \"missile\", \"rocket\", \"homing\", \"smoke\", \"explosion\", \"one-shot\"},\n\t\tSize:     [2]int{248, 140},\n\t\tOrigin:   [2]int{160, 120},\n\t\tDuration: homingMissileDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"metal\", Default: pixelfx.Palette(\"#25243a\", \"#3e4058\", \"#61667f\", \"#8e97b0\", \"#c4cce0\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Palette(\"#26222e\", \"#3b3644\", \"#544e5e\", \"#6f6979\", \"#8c8596\", \"#aca5b5\", \"#cbc4d2\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Color(\"#4a3f69\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newHomingMissile,\n}",
          "doc": "HomingMissile is a missile that kicks off, arcs up, rolls over and dives onto its target (the origin), its smoke trail left hanging in the air, and hits in a fiery blast of flame, sparks and rocks. It is registered as \"projectiles/homing-missile\".\n",
          "file": "pkg/pixelfx/projectiles/homing_missile.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "LaserBolt",
              "anchor": "LaserBolt"
            }
          ],
          "decl": "var LaserBolt = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Laser bolt\",\n\t\tDesc:     \"A red laser bolt: a white-hot core in a rounded head, red bands tapering back, pulses racing down it, a tail that shimmers apart into wavering dashes.\",\n\t\tTags:     []string{\"projectile\", \"laser\", \"energy\", \"sci-fi\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{128, 32},\n\t\tOrigin:   [2]int{108, 16},\n\t\tDuration: laserBoltDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a0610\", \"#5c0d1c\", \"#9a1428\", \"#d8243a\", \"#ff4d5e\", \"#ff8a94\", \"#ffd0d4\", \"#ffffff\")},\n\t\t\t{Name: \"length\", Default: pixelfx.Num(40)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newLaserBolt,\n}",
          "doc": "LaserBolt is a red laser bolt: a white-hot core in a rounded head, red bands tapering back, pulses racing down it, a tail that shimmers apart into wavering dashes. It is registered as \"projectiles/laser-bolt\".\n",
          "file": "pkg/pixelfx/projectiles/laser_bolt.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "MagicMissile",
              "anchor": "MagicMissile"
            }
          ],
          "decl": "var MagicMissile = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Magic missile\",\n\t\tDesc:     \"Motes gather into an arcane orb at a hand `height` px above the floor (the origin); it weaves to its target trailing a twisting ribbon and bursts into a star of light.\",\n\t\tTags:     []string{\"projectile\", \"magic\", \"arcane\", \"missile\", \"spell\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{208, 112},\n\t\tOrigin:   [2]int{24, 104},\n\t\tDuration: 1.9,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#140a26\", \"#2b1252\", \"#481c88\", \"#6b2cc0\", \"#9a48ec\", \"#c684ff\", \"#ecc8ff\", \"#ffffff\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(26)},\n\t\t\t{Name: \"reach\", Default: pixelfx.Num(112)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newMagicMissile,\n}",
          "doc": "MagicMissile gathers motes into an arcane orb at a hand height px above the floor (the origin); it weaves to its target trailing a twisting ribbon and bursts into a star of light. It is registered as \"projectiles/magic-missile\".\n",
          "file": "pkg/pixelfx/projectiles/magic_missile.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "MuzzlePistol",
              "anchor": "MuzzlePistol"
            }
          ],
          "decl": "var MuzzlePistol = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Pistol shot\",\n\t\tDesc:     \"One pistol shot from a muzzle `height` px above the floor (the origin): a spiky white-cored flash, sparks, a curl of smoke hooking up and back, a casing that bounces and settles.\",\n\t\tTags:     []string{\"projectile\", \"muzzle\", \"gun\", \"pistol\", \"flash\", \"smoke\", \"casing\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{96, 72},\n\t\tOrigin:   [2]int{44, 66},\n\t\tDuration: muzzlePistolDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"brass\", Default: pixelfx.Palette(\"#4a2e10\", \"#8c5c1c\", \"#d9a441\", \"#ffe39a\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Palette(\"#26222e\", \"#3b3644\", \"#544e5e\", \"#6f6979\", \"#8c8596\", \"#aca5b5\", \"#cbc4d2\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(26)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newMuzzlePistol,\n}",
          "doc": "MuzzlePistol is one pistol shot from a muzzle height px above the floor (the origin): a spiky white-cored flash, sparks, a curl of smoke hooking up and back, a casing that bounces and settles. It is registered as \"projectiles/muzzle-pistol\".\n",
          "file": "pkg/pixelfx/projectiles/muzzle_pistol.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "MuzzleSMG",
              "anchor": "MuzzleSMG"
            }
          ],
          "decl": "var MuzzleSMG = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"SMG burst\",\n\t\tDesc:     \"Sustained fire at twelve rounds a second: each shot a different spiky flash with a white core, sparks, smoke wisps piling up and drifting, brass casings bouncing on the floor.\",\n\t\tTags:     []string{\"projectile\", \"muzzle\", \"gun\", \"automatic\", \"flash\", \"smoke\", \"casing\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{112, 72},\n\t\tOrigin:   [2]int{56, 66},\n\t\tDuration: muzzleSMGDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"brass\", Default: pixelfx.Palette(\"#4a2e10\", \"#8c5c1c\", \"#d9a441\", \"#ffe39a\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Palette(\"#26222e\", \"#3b3644\", \"#544e5e\", \"#6f6979\", \"#8c8596\", \"#aca5b5\", \"#cbc4d2\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(26)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newMuzzleSMG,\n}",
          "doc": "MuzzleSMG is sustained fire at twelve rounds a second: each shot a different spiky flash with a white core, sparks, smoke wisps piling up and drifting, brass casings bouncing on the floor. It is registered as \"projectiles/muzzle-smg\".\n",
          "file": "pkg/pixelfx/projectiles/muzzle_smg.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "MuzzleShotgun",
              "anchor": "MuzzleShotgun"
            }
          ],
          "decl": "var MuzzleShotgun = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Shotgun blast\",\n\t\tDesc:     \"A shotgun blast from a muzzle `height` px above the floor (the origin): a wide ragged fan of flame, pellet streaks, a heavy rolling smoke cloud, a red shell kicked out on the pump.\",\n\t\tTags:     []string{\"projectile\", \"muzzle\", \"gun\", \"shotgun\", \"flash\", \"smoke\", \"casing\", \"directional\", \"one-shot\"},\n\t\tSize:     [2]int{160, 88},\n\t\tOrigin:   [2]int{44, 82},\n\t\tDuration: muzzleShotgunDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Palette(\"#221e2a\", \"#36313f\", \"#4e4858\", \"#6a6474\", \"#888192\", \"#a8a1b1\", \"#c8c1cf\")},\n\t\t\t{Name: \"shell\", Default: pixelfx.Palette(\"#4a0f14\", \"#9a1e22\", \"#d8423a\", \"#8c5c1c\", \"#e9b54a\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(26)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newMuzzleShotgun,\n}",
          "doc": "MuzzleShotgun is a shotgun blast from a muzzle height px above the floor (the origin): a wide ragged fan of flame, pellet streaks, a heavy rolling smoke cloud, a red shell kicked out on the pump. It is registered as \"projectiles/muzzle-shotgun\".\n",
          "file": "pkg/pixelfx/projectiles/muzzle_shotgun.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "PlasmaShot",
              "anchor": "PlasmaShot"
            }
          ],
          "decl": "var PlasmaShot = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Plasma shot\",\n\t\tDesc:     \"A glowing plasma blob: hot knots churning in its core, a corona crackling over its skin, its tail necking into droplets that tear off, cool and wink out behind.\",\n\t\tTags:     []string{\"projectile\", \"plasma\", \"energy\", \"sci-fi\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{144, 60},\n\t\tOrigin:   [2]int{108, 30},\n\t\tDuration: plasmaShotDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#061a1c\", \"#0b3b34\", \"#0f6a4a\", \"#18a05a\", \"#3fd46a\", \"#8cf57e\", \"#d6ffc4\", \"#ffffff\")},\n\t\t\t{Name: \"size\", Default: pixelfx.Num(6)},\n\t\t\t{Name: \"speed\", Default: pixelfx.Num(200)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newPlasmaShot,\n}",
          "doc": "PlasmaShot is a glowing plasma blob: hot knots churning in its core, a corona crackling over its skin, its tail necking into droplets that tear off, cool and wink out behind. It is registered as \"projectiles/plasma-shot\".\n",
          "file": "pkg/pixelfx/projectiles/plasma_shot.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Rocket",
              "anchor": "Rocket"
            }
          ],
          "decl": "var Rocket = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Rocket\",\n\t\tDesc:     \"A steel rocket roars along: a flickering jet with shock diamonds and a white-hot nozzle, a thick billowing smoke trail lit by the flame, sparks shed behind.\",\n\t\tTags:     []string{\"projectile\", \"rocket\", \"missile\", \"smoke\", \"fire\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{288, 76},\n\t\tOrigin:   [2]int{252, 42},\n\t\tDuration: rocketDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"metal\", Default: pixelfx.Palette(\"#0f0d16\", \"#25243a\", \"#3e4058\", \"#61667f\", \"#8e97b0\", \"#c4cce0\", \"#f2f6ff\")},\n\t\t\t{Name: \"paint\", Default: pixelfx.Palette(\"#3a0d14\", \"#7c1a22\", \"#bd2f2c\", \"#ec5a45\", \"#ff9b7e\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Palette(\"#26222e\", \"#3d3846\", \"#5a5463\", \"#7e7887\", \"#a7a1ad\", \"#d0cad2\", \"#f1ecee\")},\n\t\t\t{Name: \"speed\", Default: pixelfx.Num(120)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newRocket,\n}",
          "doc": "Rocket is a steel rocket roaring along: a flickering jet with shock diamonds and a white-hot nozzle, a thick billowing smoke trail lit by the flame, sparks shed behind. It is registered as \"projectiles/rocket\".\n",
          "file": "pkg/pixelfx/projectiles/rocket.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/scifi",
      "name": "scifi",
      "dir": "pkg/pixelfx/scifi",
      "page": "pkg/pixelfx/scifi",
      "synopsis": "Package scifi is pixelfx's sci-fi category: EMP blasts, energy cores, force fields, glitches, holograms, jetpacks, laser grids, scanners, teleporter pads, tractor beams and warp beams, each a pixelfx.Effect registered as \"scifi/<name>\" when the package is imported.",
      "doc": "Package scifi is pixelfx's sci-fi category: EMP blasts, energy cores, force fields, glitches, holograms, jetpacks, laser grids, scanners, teleporter pads, tractor beams and warp beams, each a pixelfx.Effect registered as \"scifi/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "EmpBlast",
              "anchor": "EmpBlast"
            }
          ],
          "decl": "var EmpBlast = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"EMP blast\",\n\t\tDesc:     \"A disc charge ticks, pops white, and a bubble of rolling scanlines swells out with arcs crawling its skin; it strobes, tears and shorts out into falling dead pixels.\",\n\t\tTags:     []string{\"scifi\", \"emp\", \"pulse\", \"shockwave\", \"electric\", \"grenade\", \"glitch\", \"one-shot\"},\n\t\tSize:     [2]int{152, 116},\n\t\tOrigin:   [2]int{76, 84},\n\t\tDuration: empDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0d0820\", \"#1c1658\", \"#2d2aa0\", \"#3f55e8\", \"#5a8eff\", \"#9cc4ff\", \"#dceaff\", \"#ffffff\")},\n\t\t\t{Name: \"fringe\", Default: pixelfx.Color(\"#ff5ad8\")},\n\t\t\t{Name: \"radius\", Default: pixelfx.Num(56)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(33)},\n\t\t},\n\t},\n\tNew: newEmpBlast,\n}",
          "doc": "EmpBlast is a disc charge that ticks, pops white, and swells into a bubble of rolling scanlines with arcs crawling its skin before strobing, tearing and shorting out into falling dead pixels. It is registered as \"scifi/emp-blast\".\n",
          "file": "pkg/pixelfx/scifi/emp_blast.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "EnergyCore",
              "anchor": "EnergyCore"
            }
          ],
          "decl": "var EnergyCore = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Energy core\",\n\t\tDesc:     \"A plasma core beating in a steel cage: it swells and throws a shock ring on each beat, two tilted rings orbit it, and arcs jump to the bars and spark.\",\n\t\tTags:     []string{\"scifi\", \"reactor\", \"core\", \"power\", \"plasma\", \"machine\", \"prop\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{112, 100},\n\t\tOrigin:   [2]int{56, 88},\n\t\tDuration: energyDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0516\", \"#3d0a33\", \"#701560\", \"#b0228f\", \"#f53cd1\", \"#ff86e6\", \"#ffd2f6\", \"#ffffff\")},\n\t\t\t{Name: \"metal\", Default: pixelfx.Palette(\"#0e0d14\", \"#1e1c27\", \"#312e3e\", \"#4b4759\", \"#6f6a82\", \"#9d98b0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(35)},\n\t\t},\n\t},\n\tNew: newEnergyCore,\n}",
          "doc": "EnergyCore is a plasma core beating in a steel cage: it swells and throws a shock ring on each beat, two tilted rings orbit it, and arcs jump to the bars and spark. It is registered as \"scifi/energy-core\".\n",
          "file": "pkg/pixelfx/scifi/energy_core.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ForceField",
              "anchor": "ForceField"
            }
          ],
          "decl": "var ForceField = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Force field\",\n\t\tDesc:     \"A glassy dome of hex plates over the hero: plates glint, tracers from the right slam into it, a ripple and cracks of light race across, sparks glance off.\",\n\t\tTags:     []string{\"scifi\", \"shield\", \"barrier\", \"dome\", \"hex\", \"hit\", \"defense\", \"loop\"},\n\t\tSize:     [2]int{184, 104},\n\t\tOrigin:   [2]int{76, 84},\n\t\tDuration: ffDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0b1030\", \"#152a63\", \"#1d4f9e\", \"#2582d2\", \"#36b9ee\", \"#8ae8ff\", \"#d4fbff\", \"#ffffff\")},\n\t\t\t{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\t\t{Name: \"radius\", Default: pixelfx.Num(44)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: ffHold},\n\t\t\t{T: 0.42, Pose: ffHold},\n\t\t\t{T: 0.42, Pose: ffHit, How: \"snap\"},\n\t\t\t{T: 0.7, Pose: ffHold.With(pixelfx.X.Is(-1))},\n\t\t\t{T: 1.1, Pose: ffHold},\n\t\t\t{T: 1.5, Pose: ffHold},\n\t\t\t{T: 1.5, Pose: ffHit.With(pixelfx.Crouch.Is(4), pixelfx.Lean.Is(-2)), How: \"snap\"},\n\t\t\t{T: 1.75, Pose: ffHold},\n\t\t\t{T: 2.4, Pose: ffHold},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.42, Stop: 0.07, Shake: 0.16, Amp: pixelfx.Val(2)},\n\t\t\t{T: 1.5, Stop: 0.03, Shake: 0.08, Amp: pixelfx.Val(1)},\n\t\t},\n\t},\n\tNew: newForceField,\n}",
          "doc": "ForceField is a glassy dome of hex plates over the hero: plates glint, tracers from the right slam into it, a ripple and cracks of light race across, and sparks glance off. It is registered as \"scifi/force-field\".\n",
          "file": "pkg/pixelfx/scifi/force_field.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "Glitch",
              "anchor": "Glitch"
            }
          ],
          "decl": "var Glitch = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Glitch\",\n\t\tDesc:     \"The hero's signal breaks up in bursts: an RGB split, slices torn sideways, rows smeared out, junk blocks and dead pixels, then snaps back clean.\",\n\t\tTags:     []string{\"scifi\", \"glitch\", \"digital\", \"corrupt\", \"hologram\", \"status\", \"loop\"},\n\t\tSize:     [2]int{88, 64},\n\t\tOrigin:   [2]int{44, 54},\n\t\tDuration: glitchDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#14101f\", \"#3b1f5c\", \"#ff2e63\", \"#ff7aa8\", \"#2ef2ff\", \"#b4fbff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: glitchFine},\n\t\t\t{T: 0.3, Pose: glitchTwitchA, How: \"snap\"},\n\t\t\t{T: 0.37, Pose: glitchTwitchB, How: \"snap\"},\n\t\t\t{T: 0.44, Pose: glitchTwitchA, How: \"snap\"},\n\t\t\t{T: 0.53, Pose: glitchFine, How: \"snap\"},\n\t\t\t{T: 1.1, Pose: glitchTwitchB, How: \"snap\"},\n\t\t\t{T: 1.23, Pose: glitchFine, How: \"snap\"},\n\t\t\t{T: 1.7, Pose: glitchTwitchA, How: \"snap\"},\n\t\t\t{T: 1.8, Pose: glitchTwitchB.With(pixelfx.Crouch.Is(3)), How: \"snap\"},\n\t\t\t{T: 1.9, Pose: glitchTwitchA, How: \"snap\"},\n\t\t\t{T: 2, Pose: glitchTwitchB, How: \"snap\"},\n\t\t\t{T: 2.07, Pose: glitchFine, How: \"snap\"},\n\t\t\t{T: 2.4, Pose: glitchFine},\n\t\t},\n\t},\n\n\tActorAlpha: func(float64, *pixelfx.Options) float64 { return 0 },\n\tNew:        newGlitch,\n}",
          "doc": "Glitch breaks up the hero's signal in bursts: an RGB split, slices torn sideways, rows smeared out, junk blocks and dead pixels, then snaps back clean. It is registered as \"scifi/glitch\".\n",
          "file": "pkg/pixelfx/scifi/glitch.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "Hologram",
              "anchor": "Hologram"
            }
          ],
          "decl": "var Hologram = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Hologram\",\n\t\tDesc:     \"A floor projector throws a cone of light holding a turning wireframe model: scanlines roll through it, a data ring circles it, and it flickers, tears and jitters.\",\n\t\tTags:     []string{\"scifi\", \"hologram\", \"projector\", \"wireframe\", \"display\", \"glitch\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{112, 104},\n\t\tOrigin:   [2]int{56, 92},\n\t\tDuration: holoDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#050c1e\", \"#0a1f48\", \"#123b80\", \"#1d64b8\", \"#2e98e8\", \"#6cd0ff\", \"#c8f0ff\", \"#ffffff\")},\n\t\t\t{Name: \"metal\", Default: pixelfx.Palette(\"#0e0d14\", \"#1e1c27\", \"#312e3e\", \"#4b4759\", \"#6f6a82\", \"#9d98b0\")},\n\t\t\t{Name: \"split\", Default: pixelfx.Color(\"#ff4fd8\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(21)},\n\t\t},\n\t},\n\tNew: newHologram,\n}",
          "doc": "Hologram is a floor projector throwing a cone of light holding a turning wireframe model: scanlines roll through it, a data ring circles it, and it flickers, tears and jitters. It is registered as \"scifi/hologram\".\n",
          "file": "pkg/pixelfx/scifi/hologram.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Jetpack",
              "anchor": "Jetpack"
            }
          ],
          "decl": "var Jetpack = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Jetpack\",\n\t\tDesc:     \"Twin thrusters fire straight down: white-hot cores with shock diamonds inside ragged flames, puffs that cool into smoke billowing below, lit by the fire.\",\n\t\tTags:     []string{\"scifi\", \"jetpack\", \"thrust\", \"rocket\", \"fire\", \"smoke\", \"flight\", \"loop\"},\n\t\tSize:     [2]int{96, 116},\n\t\tOrigin:   [2]int{48, 30},\n\t\tDuration: jetDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a0e12\", \"#5c1818\", \"#a02818\", \"#e0501a\", \"#ff8a2a\", \"#ffc23d\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"metal\", Default: pixelfx.Palette(\"#0e0d14\", \"#1e1c27\", \"#312e3e\", \"#4b4759\", \"#6f6a82\", \"#9d98b0\")},\n\t\t\t{Name: \"length\", Default: pixelfx.Num(26)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(30)},\n\t\t},\n\t},\n\tNew: newJetpack,\n}",
          "doc": "Jetpack is twin thrusters firing straight down: white-hot cores with shock diamonds inside ragged flames, puffs that cool into smoke billowing below, lit by the fire. It is registered as \"scifi/jetpack\".\n",
          "file": "pkg/pixelfx/scifi/jetpack.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "LaserGrid",
              "anchor": "LaserGrid"
            }
          ],
          "decl": "var LaserGrid = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Laser grid\",\n\t\tDesc:     \"Security lasers between two steel posts: red beams slide and scissor across, dust and haze light up only where they cut through, and the floor sweepers scorch and spark.\",\n\t\tTags:     []string{\"scifi\", \"laser\", \"security\", \"trap\", \"hazard\", \"beam\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{128, 84},\n\t\tOrigin:   [2]int{64, 76},\n\t\tDuration: laserDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0408\", \"#4a0a12\", \"#8a1020\", \"#d01c2a\", \"#ff4a4a\", \"#ff9a90\", \"#ffe4e0\", \"#ffffff\")},\n\t\t\t{Name: \"metal\", Default: pixelfx.Palette(\"#0e0d14\", \"#1e1c27\", \"#312e3e\", \"#4b4759\", \"#6f6a82\", \"#9d98b0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(31)},\n\t\t},\n\t},\n\tNew: newLaserGrid,\n}",
          "doc": "LaserGrid is security lasers between two steel posts: red beams slide and scissor across, dust and haze light up only where they cut through, and the floor sweepers scorch and spark. It is registered as \"scifi/laser-grid\".\n",
          "file": "pkg/pixelfx/scifi/laser_grid.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Scanner",
              "anchor": "Scanner"
            }
          ],
          "decl": "var Scanner = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Scanner\",\n\t\tDesc:     \"Brackets snap onto the hero, a scan line sweeps head to toe leaving a cooling outline, and a readout counts up to OK before it all lets go.\",\n\t\tTags:     []string{\"scifi\", \"scan\", \"target\", \"hud\", \"tech\", \"status\", \"ui\", \"loop\"},\n\t\tSize:     [2]int{112, 78},\n\t\tOrigin:   [2]int{42, 58},\n\t\tDuration: scanDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#03140a\", \"#06301a\", \"#0c5a2c\", \"#16893e\", \"#2cc256\", \"#7cf08c\", \"#d0ffd4\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(22)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: pixelfx.Pose{}},\n\t\t\t{T: 0.3, Pose: scanStiff, How: \"snap\"},\n\t\t\t{T: 1.75, Pose: scanStiff},\n\t\t\t{T: 1.85, Pose: scanOK, How: \"snap\"},\n\t\t\t{T: 2.5, Pose: scanOK},\n\t\t\t{T: 2.8, Pose: pixelfx.Pose{}},\n\t\t\t{T: 3.2, Pose: pixelfx.Pose{}},\n\t\t},\n\t},\n\tNew: newScanner,\n}",
          "doc": "Scanner snaps brackets onto the hero, sweeps a scan line head to toe leaving a cooling outline, and counts a readout up to OK before letting go. It is registered as \"scifi/scanner\".\n",
          "file": "pkg/pixelfx/scifi/scanner.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "TeleporterPad",
              "anchor": "TeleporterPad"
            }
          ],
          "decl": "var TeleporterPad = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Teleporter pad\",\n\t\tDesc:     \"A steel pad glows on the floor, its rings rippling outward; a soft column of light rises off it and rings of light lift away, sparkles drifting up through them.\",\n\t\tTags:     []string{\"scifi\", \"teleporter\", \"pad\", \"portal\", \"beam\", \"spawn\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{96, 104},\n\t\tOrigin:   [2]int{48, 92},\n\t\tDuration: tpDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#120a26\", \"#26145a\", \"#3c2296\", \"#5a3ad2\", \"#7f66f0\", \"#b4a2ff\", \"#e6deff\", \"#ffffff\")},\n\t\t\t{Name: \"metal\", Default: pixelfx.Palette(\"#0e0d14\", \"#1e1c27\", \"#312e3e\", \"#4b4759\", \"#6f6a82\", \"#9d98b0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(26)},\n\t\t},\n\t},\n\tNew: newTeleporterPad,\n}",
          "doc": "TeleporterPad is a steel pad glowing on the floor, its rings rippling outward, with a soft column of light rising off it, rings of light lifting away and sparkles drifting up through them. It is registered as \"scifi/teleporter-pad\".\n",
          "file": "pkg/pixelfx/scifi/teleporter_pad.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "TractorBeam",
              "anchor": "TractorBeam"
            }
          ],
          "decl": "var TractorBeam = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Tractor beam\",\n\t\tDesc:     \"A hovering pod projects a cone of light to the floor; rocks tear loose in puffs of dust and spiral up spinning into the lens while rings of light climb the beam.\",\n\t\tTags:     []string{\"scifi\", \"beam\", \"tractor\", \"lift\", \"abduct\", \"debris\", \"ground\", \"loop\"},\n\t\tSize:     [2]int{120, 132},\n\t\tOrigin:   [2]int{60, 114},\n\t\tDuration: tbDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#06161a\", \"#0b2e33\", \"#11505a\", \"#1a7f84\", \"#2bb5a8\", \"#7ef0c8\", \"#d6fff0\", \"#ffffff\")},\n\t\t\t{Name: \"hull\", Default: pixelfx.Palette(\"#0d0f17\", \"#1c2030\", \"#2e3448\", \"#4a5470\", \"#7a86a8\", \"#b8c4e0\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Palette(\"#1a1622\", \"#2e2838\", \"#4a4258\", \"#6d6480\", \"#9a90aa\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newTractorBeam,\n}",
          "doc": "TractorBeam is a hovering pod projecting a cone of light to the floor: rocks tear loose in puffs of dust and spiral up spinning into the lens while rings of light climb the beam. It is registered as \"scifi/tractor-beam\".\n",
          "file": "pkg/pixelfx/scifi/tractor_beam.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "WarpIn",
              "anchor": "WarpIn"
            }
          ],
          "decl": "var WarpIn = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Warp in\",\n\t\tDesc:     \"A beam slams down, rings run down it and a scanline paints the hero in from head to toe, white-hot pixels cooling to their own colors; the beam pinches shut in sparks.\",\n\t\tTags:     []string{\"scifi\", \"teleport\", \"warp\", \"beam\", \"spawn\", \"arrive\", \"one-shot\"},\n\t\tSize:     [2]int{192, 168},\n\t\tOrigin:   [2]int{96, 128},\n\t\tDuration: warpInDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0b1030\", \"#152a63\", \"#1d4f9e\", \"#2582d2\", \"#36b9ee\", \"#8ae8ff\", \"#d4fbff\", \"#ffffff\")},\n\t\t\t{Name: \"width\", Default: pixelfx.Num(15)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tFollow: pixelfx.Val(0),\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: warpInPose},\n\t\t\t{T: 1.82, Pose: warpInPose},\n\t\t\t{T: 2.05, Pose: pixelfx.Pose{}.With(pixelfx.Crouch.Is(3), pixelfx.FX.Is(8), pixelfx.FY.Is(-19), pixelfx.BX.Is(8), pixelfx.BY.Is(-18), pixelfx.FFX.Is(4), pixelfx.FBX.Is(-3))},\n\t\t\t{T: 2.5, Pose: pixelfx.Ready},\n\t\t\t{T: 3, Pose: pixelfx.Ready},\n\t\t},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif t >= warpInDone {\n\t\t\treturn 1\n\t\t}\n\t\treturn 0\n\t},\n\tNew: newWarpIn,\n}",
          "doc": "WarpIn slams a beam down, sends rings down it, and paints the hero in from head to toe as white-hot pixels cool to their own colors before the beam pinches shut in sparks. It is registered as \"scifi/warp-in\".\n",
          "file": "pkg/pixelfx/scifi/warp_in.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "WarpOut",
              "anchor": "WarpOut"
            }
          ],
          "decl": "var WarpOut = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Warp out\",\n\t\tDesc:     \"The hero's outline flickers on, they flash white and break into light from the head down, streaming up a beam that lifts off the floor and pinches shut.\",\n\t\tTags:     []string{\"scifi\", \"teleport\", \"warp\", \"beam\", \"despawn\", \"leave\", \"one-shot\"},\n\t\tSize:     [2]int{128, 168},\n\t\tOrigin:   [2]int{64, 128},\n\t\tDuration: warpOutDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0b1030\", \"#152a63\", \"#1d4f9e\", \"#2582d2\", \"#36b9ee\", \"#8ae8ff\", \"#d4fbff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tFollow: pixelfx.Val(0),\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.3, Pose: pixelfx.Ready},\n\t\t\t{T: 0.1, Pose: warpOutSet},\n\t\t\t{T: 0.42, Pose: warpOutRaised, How: \"snap\"},\n\t\t\t{T: 2.6, Pose: warpOutRaised},\n\t\t},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif t < warpOutFlash {\n\t\t\treturn 1\n\t\t}\n\t\treturn 0\n\t},\n\tNew: newWarpOut,\n}",
          "doc": "WarpOut flickers the hero's outline on, flashes them white and breaks them into light from the head down, streaming up a beam that lifts off the floor and pinches shut. It is registered as \"scifi/warp-out\".\n",
          "file": "pkg/pixelfx/scifi/warp_out.go",
          "line": 20
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/shadow",
      "name": "shadow",
      "dir": "pkg/pixelfx/shadow",
      "page": "pkg/pixelfx/shadow",
      "synopsis": "Package shadow is pixelfx's shadow category: black holes, curses, dark explosions, eclipses, grasping hands, hex sigils, life steal, necro skulls, shadow flames, shadow tendrils, soul drain and void orbs, each a pixelfx.Effect registered as \"shadow/<name>\" when the package is imported.",
      "doc": "Package shadow is pixelfx's shadow category: black holes, curses, dark explosions, eclipses, grasping hands, hex sigils, life steal, necro skulls, shadow flames, shadow tendrils, soul drain and void orbs, each a pixelfx.Effect registered as \"shadow/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "BlackHole",
              "anchor": "BlackHole"
            }
          ],
          "decl": "var BlackHole = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Black hole\",\n\t\tDesc:     \"A tilted disk of banded rings turns round a black hole, its far side bent up over the top and under the bottom; debris spirals in, stretches and is swallowed.\",\n\t\tTags:     []string{\"shadow\", \"black-hole\", \"void\", \"space\", \"gravity\", \"dark\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{184, 132},\n\t\tOrigin:   [2]int{92, 124},\n\t\tDuration: 4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"rock\", Default: pixelfx.Palette(\"#120d1c\", \"#2e2440\", \"#544468\", \"#857399\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newBlackHole,\n}",
          "doc": "BlackHole is a tilted disk of banded rings turning round a black hole, its far side bent up over the top and under the bottom; debris spirals in, stretches and is swallowed. It is registered as \"shadow/black-hole\".\n",
          "file": "pkg/pixelfx/shadow/black_hole.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Curse",
              "anchor": "Curse"
            }
          ],
          "decl": "var Curse = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Curse\",\n\t\tDesc:     \"Wisps gather over the head, a skull stamps down with a flash, its eyes burn as the curse floods the body violet, then it cracks and crumbles.\",\n\t\tTags:     []string{\"shadow\", \"curse\", \"debuff\", \"skull\", \"status\", \"dark\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{112, 124},\n\t\tOrigin:   [2]int{56, 108},\n\t\tDuration: 3.4,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"bone\", Default: pixelfx.Palette(\"#170f26\", \"#4a3a6e\", \"#7f6ea6\", \"#b3a4d4\", \"#e2d8f6\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.2, Pose: pixelfx.Ready},\n\t\t\t{T: 0.3, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(0.9), pixelfx.HY.Is(-1), pixelfx.FX.Is(-9), pixelfx.FY.Is(-19), pixelfx.BX.Is(10), pixelfx.BY.Is(-19), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},\n\t\t\t{T: 0.55, Pose: curseCower, How: \"snap\"},\n\t\t\t{T: 0.8, Pose: curseCower.With(pixelfx.Crouch.Is(7))},\n\t\t\t{T: 1.2, Pose: curseCower.With(pixelfx.Crouch.Is(6), pixelfx.Lean.Is(3))},\n\t\t\t{T: 1.72, Pose: curseCower.With(pixelfx.Crouch.Is(7), pixelfx.Lean.Is(2))},\n\t\t\t{T: 2.1, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(4), pixelfx.Lean.Is(3), pixelfx.HY.Is(2), pixelfx.FX.Is(-8), pixelfx.FY.Is(-15), pixelfx.BX.Is(9), pixelfx.BY.Is(-15), pixelfx.FFX.Is(-4), pixelfx.FBX.Is(5))},\n\t\t\t{T: 2.9, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(3), pixelfx.Lean.Is(1), pixelfx.FX.Is(-8), pixelfx.FY.Is(-16), pixelfx.BX.Is(9), pixelfx.BY.Is(-16), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},\n\t\t\t{T: 3.4, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.55, Stop: 0.09, Shake: 0.2, Amp: pixelfx.Val(2)},\n\t\t},\n\t},\n\tNew: newCurse,\n}",
          "doc": "Curse gathers wisps over the head, stamps a skull down with a flash, burns its eyes as the curse floods the body violet, then cracks and crumbles. It is registered as \"shadow/curse\".\n",
          "file": "pkg/pixelfx/shadow/curse.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "DarkExplosion",
              "anchor": "DarkExplosion"
            }
          ],
          "decl": "var DarkExplosion = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Dark explosion\",\n\t\tDesc:     \"Motes swirl into a pulsing core, a black star cuts across a violet-white flash, and a black sphere burns at the rim, throws lit shards and smoke, then collapses.\",\n\t\tTags:     []string{\"shadow\", \"explosion\", \"void\", \"dark\", \"magic\", \"impact\", \"one-shot\"},\n\t\tSize:     [2]int{280, 248},\n\t\tOrigin:   [2]int{140, 206},\n\t\tDuration: 3.8,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newDarkExplosion,\n}",
          "doc": "DarkExplosion swirls motes into a pulsing core, cuts a black star across a violet-white flash, and burns a black sphere at the rim that throws lit shards and smoke before collapsing. It is registered as \"shadow/dark-explosion\".\n",
          "file": "pkg/pixelfx/shadow/dark_explosion.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "Eclipse",
              "anchor": "Eclipse"
            }
          ],
          "decl": "var Eclipse = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Eclipse\",\n\t\tDesc:     \"A black moon over the sun: a breathing pearl corona with long streamers, a thin white rim, and one diamond bead blazing on its edge.\",\n\t\tTags:     []string{\"shadow\", \"eclipse\", \"moon\", \"sun\", \"corona\", \"sky\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{160, 144},\n\t\tOrigin:   [2]int{80, 72},\n\t\tDuration: 4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"pearl\", Default: pixelfx.Palette(\"#5a4f8a\", \"#a99be0\", \"#e6defa\", \"#fffaf2\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newEclipse,\n}",
          "doc": "Eclipse is a black moon over the sun: a breathing pearl corona with long streamers, a thin white rim, and one diamond bead blazing on its edge. It is registered as \"shadow/eclipse\".\n",
          "file": "pkg/pixelfx/shadow/eclipse.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "GraspingHands",
              "anchor": "GraspingHands"
            }
          ],
          "decl": "var GraspingHands = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Grasping hands\",\n\t\tDesc:     \"Shadow arms burst up out of a dark pool with a splash, clench their hands into claws, strain, and are dragged back under, fingers clawing at the air.\",\n\t\tTags:     []string{\"shadow\", \"hands\", \"arms\", \"grab\", \"ground\", \"dark\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{200, 116},\n\t\tOrigin:   [2]int{100, 100},\n\t\tDuration: 3.1,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newGraspingHands,\n}",
          "doc": "GraspingHands bursts shadow arms up out of a dark pool with a splash, clenches their hands into claws, strains, and drags them back under. It is registered as \"shadow/grasping-hands\".\n",
          "file": "pkg/pixelfx/shadow/grasping_hands.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "HexSigil",
              "anchor": "HexSigil"
            }
          ],
          "decl": "var HexSigil = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Hex sigil\",\n\t\tDesc:     \"A burning pen traces a cursed sigil in the air, its glyphs pop in one by one, then it flares white and crumbles into falling embers.\",\n\t\tTags:     []string{\"shadow\", \"hex\", \"sigil\", \"rune\", \"curse\", \"magic\", \"circle\", \"one-shot\"},\n\t\tSize:     [2]int{168, 128},\n\t\tOrigin:   [2]int{84, 112},\n\t\tDuration: 4.2,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tNew: newHexSigil,\n}",
          "doc": "HexSigil traces a cursed sigil in the air with a burning pen, pops its glyphs in one by one, then flares white and crumbles into falling embers. It is registered as \"shadow/hex-sigil\".\n",
          "file": "pkg/pixelfx/shadow/hex_sigil.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "LifeSteal",
              "anchor": "LifeSteal"
            }
          ],
          "decl": "var LifeSteal = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Life steal\",\n\t\tDesc:     \"A target on the right is struck and bleeds red orbs; they hang a moment, then whip home as comet streaks and flood the caster crimson.\",\n\t\tTags:     []string{\"shadow\", \"life-steal\", \"drain\", \"blood\", \"heal\", \"directional\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{184, 100},\n\t\tOrigin:   [2]int{36, 92},\n\t\tDuration: 2.2,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#14040a\", \"#3a0a14\", \"#6a101c\", \"#a01824\", \"#d42a30\", \"#ff5a50\", \"#ff9a8a\", \"#ffe6de\")},\n\t\t\t{Name: \"dark\", Default: pixelfx.Color(\"#2a1040\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(11)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody:  true,\n\t\tFollow:  pixelfx.Val(0),\n\t\tTargets: []float64{104},\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.46, Pose: pixelfx.Ready},\n\t\t\t{T: -0.2, Pose: pixelfx.Ready.With(pixelfx.Crouch.Is(4), pixelfx.Lean.Is(-2), pixelfx.FX.Is(3), pixelfx.FY.Is(-27), pixelfx.BX.Is(8), pixelfx.BY.Is(-20))},\n\t\t\t{T: 0, Pose: lsGrasp, How: \"snap\"},\n\t\t\t{T: 0.4, Pose: lsGrasp},\n\t\t\t{T: 0.7, Pose: lsGrasp.With(pixelfx.FX.Is(13), pixelfx.FY.Is(-26), pixelfx.Lean.Is(1))},\n\t\t\t{T: 0.8, Pose: lsFed.With(pixelfx.Crouch.Is(2)), How: \"snap\"},\n\t\t\t{T: 1.22, Pose: lsFed},\n\t\t\t{T: 1.7, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(2), pixelfx.FX.Is(-11), pixelfx.FY.Is(-26), pixelfx.BX.Is(12), pixelfx.BY.Is(-26), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},\n\t\t\t{T: 2.2, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.01, Stop: 0.07, Shake: 0.12, Amp: pixelfx.Val(1), Push: pixelfx.Val(1.6), Straw: pixelfx.Val(12), Skin: \"red\", Y: pixelfx.Val(-24)},\n\t\t\t{T: 1.6, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},\n\t\t},\n\t},\n\tNew: newLifeSteal,\n}",
          "doc": "LifeSteal strikes a target on the right so it bleeds red orbs, hangs a moment, then whips them home as comet streaks to flood the caster crimson. It is registered as \"shadow/life-steal\".\n",
          "file": "pkg/pixelfx/shadow/life_steal.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "NecroSkulls",
              "anchor": "NecroSkulls"
            }
          ],
          "decl": "var NecroSkulls = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Necro skulls\",\n\t\tDesc:     \"Spectral skulls circle a cold green flame on a tilted orbit, passing behind and before it, eyes lit, trailing curls of ghost smoke.\",\n\t\tTags:     []string{\"shadow\", \"necromancy\", \"skull\", \"orbit\", \"ghost\", \"spectral\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{136, 116},\n\t\tOrigin:   [2]int{68, 108},\n\t\tDuration: 3,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#040e10\", \"#0a2228\", \"#0f3d44\", \"#16615f\", \"#23907f\", \"#45c4a0\", \"#9af0c8\", \"#e8fff4\")},\n\t\t\t{Name: \"bone\", Default: pixelfx.Palette(\"#0c1a1c\", \"#2c4a4a\", \"#5c847c\", \"#a6cdb8\", \"#e4fff0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newNecroSkulls,\n}",
          "doc": "NecroSkulls orbits spectral skulls around a cold green flame on a tilted path, passing behind and before it, eyes lit, trailing curls of ghost smoke. It is registered as \"shadow/necro-skulls\".\n",
          "file": "pkg/pixelfx/shadow/necro_skulls.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ShadowFlames",
              "anchor": "ShadowFlames"
            }
          ],
          "decl": "var ShadowFlames = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Shadow flames\",\n\t\tDesc:     \"Inside-out fire on the floor: a black heart wrapped in violet flame with pale skin and tips, shedding embers and dark smoke.\",\n\t\tTags:     []string{\"shadow\", \"fire\", \"flame\", \"ground\", \"dark\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{104, 112},\n\t\tOrigin:   [2]int{52, 102},\n\t\tDuration: 2.4,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(12)},\n\t\t},\n\t},\n\tNew: newShadowFlames,\n}",
          "doc": "ShadowFlames burns inside-out fire on the floor: a black heart wrapped in violet flame with pale skin and tips, shedding embers and dark smoke. It is registered as \"shadow/shadow-flames\".\n",
          "file": "pkg/pixelfx/shadow/shadow_flames.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "ShadowTendrils",
              "anchor": "ShadowTendrils"
            }
          ],
          "decl": "var ShadowTendrils = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Shadow tendrils\",\n\t\tDesc:     \"A dark pool opens on the floor; tentacles with lit rims and hooked tips lash up out of it with a splash, writhe, and sink back as it closes.\",\n\t\tTags:     []string{\"shadow\", \"tentacle\", \"tendril\", \"ground\", \"dark\", \"magic\", \"one-shot\"},\n\t\tSize:     [2]int{208, 130},\n\t\tOrigin:   [2]int{104, 106},\n\t\tDuration: 3.2,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newShadowTendrils,\n}",
          "doc": "ShadowTendrils opens a dark pool on the floor; tentacles with lit rims and hooked tips lash up out of it with a splash, writhe, and sink back as it closes. It is registered as \"shadow/shadow-tendrils\".\n",
          "file": "pkg/pixelfx/shadow/shadow_tendrils.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "SoulDrain",
              "anchor": "SoulDrain"
            }
          ],
          "decl": "var SoulDrain = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Soul drain\",\n\t\tDesc:     \"Pale souls are torn loose on the right and dragged down a funnel of streaks into a black crystal vessel, which flares violet as each one lands.\",\n\t\tTags:     []string{\"shadow\", \"soul\", \"drain\", \"necromancy\", \"funnel\", \"directional\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{208, 120},\n\t\tOrigin:   [2]int{40, 110},\n\t\tDuration: 3.2,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"soul\", Default: pixelfx.Palette(\"#2c3f66\", \"#7d9fd0\", \"#cfe6ff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newSoulDrain,\n}",
          "doc": "SoulDrain tears pale souls loose on the right and drags them down a funnel of streaks into a black crystal vessel, which flares violet as each one lands. It is registered as \"shadow/soul-drain\".\n",
          "file": "pkg/pixelfx/shadow/soul_drain.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "VoidOrb",
              "anchor": "VoidOrb"
            }
          ],
          "decl": "var VoidOrb = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Void orb\",\n\t\tDesc:     \"A black orb hangs in the air, a pale rim crawling round it; a dark vortex winds into it, motes and streaks are pulled in, and light bends round its edge.\",\n\t\tTags:     []string{\"shadow\", \"void\", \"orb\", \"vortex\", \"dark\", \"magic\", \"loop\"},\n\t\tSize:     [2]int{168, 160},\n\t\tOrigin:   [2]int{84, 150},\n\t\tDuration: 3.2,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: voidPalette()},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newVoidOrb,\n}",
          "doc": "VoidOrb hangs a black orb in the air with a pale rim crawling round it; a dark vortex winds into it, motes and streaks are pulled in, and light bends round its edge. It is registered as \"shadow/void-orb\".\n",
          "file": "pkg/pixelfx/shadow/void_orb.go",
          "line": 13
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/spawn",
      "name": "spawn",
      "dir": "pkg/pixelfx/spawn",
      "page": "pkg/pixelfx/spawn",
      "synopsis": "Package spawn is pixelfx's spawn and death category: coin drops, disintegration, dissolve burn, egg hatching, cartoon poofs, respawn beams, ice shatter deaths, rising souls, spawn portals and summoning rises, each a pixelfx.Effect registered as \"spawn/<name>\" when the package is imported.",
      "doc": "Package spawn is pixelfx's spawn and death category: coin drops, disintegration, dissolve burn, egg hatching, cartoon poofs, respawn beams, ice shatter deaths, rising souls, spawn portals and summoning rises, each a pixelfx.Effect registered as \"spawn/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "CoinDrop",
              "anchor": "CoinDrop"
            }
          ],
          "decl": "var CoinDrop = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Coin drop\",\n\t\tDesc:     \"An enemy goes up in a soft poof and gold coins spin out of it, bounce with a glint on each hit, settle on the floor, twinkle, and wink out one by one.\",\n\t\tTags:     []string{\"spawn\", \"death\", \"loot\", \"coins\", \"gold\", \"drop\", \"pickup\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{160, 88},\n\t\tOrigin:   [2]int{80, 78},\n\t\tDuration: 3,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1606\", \"#5c3208\", \"#9a5a0c\", \"#d48c14\", \"#f5b82a\", \"#ffe066\", \"#fff6c4\", \"#ffffff\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Palette(\"#3a3450\", \"#6c6688\", \"#a8a2c0\", \"#dcd8ea\")},\n\t\t\t{Name: \"coins\", Default: pixelfx.Num(7)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(23)},\n\t\t},\n\t},\n\tNew: newCoinDrop,\n}",
          "doc": "CoinDrop is an enemy going up in a soft poof while gold coins spin out of it, bounce with a glint on each hit, settle on the floor, twinkle, and wink out one by one. It is registered as \"spawn/coin-drop\".\n",
          "file": "pkg/pixelfx/spawn/coin_drop.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Disintegrate",
              "anchor": "Disintegrate"
            }
          ],
          "decl": "var Disintegrate = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Disintegrate\",\n\t\tDesc:     \"The character crackles with light, flashes white, then peels away from the head down: each pixel flares white-hot and streams off on the wind as a cooling mote of light.\",\n\t\tTags:     []string{\"spawn\", \"death\", \"disintegrate\", \"dissolve\", \"pixels\", \"energy\", \"light\", \"one-shot\"},\n\t\tSize:     [2]int{176, 100},\n\t\tOrigin:   [2]int{48, 86},\n\t\tDuration: 3.4,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#120a26\", \"#2a1658\", \"#3d2f9c\", \"#3f68d4\", \"#3fa8ec\", \"#86e0ff\", \"#d6f8ff\", \"#ffffff\")},\n\t\t\t{Name: \"accent\", Default: pixelfx.Palette(\"#7a3ae4\", \"#b682ff\", \"#ecd2ff\")},\n\t\t\t{Name: \"wind\", Default: pixelfx.Num(1)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.2, Pose: pixelfx.Ready},\n\t\t\t{T: 0.05, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(3), pixelfx.FX.Is(-9), pixelfx.FY.Is(-16), pixelfx.BX.Is(10), pixelfx.BY.Is(-16), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},\n\t\t\t{T: 0.3, Pose: disintegrateAgony},\n\t\t\t{T: 3.4, Pose: disintegrateAgony},\n\t\t},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif t < disintegrateFlash-0.1 {\n\t\t\treturn 1\n\t\t}\n\t\treturn 0\n\t},\n\tNew: newDisintegrate,\n}",
          "doc": "Disintegrate crackles the character with light, flashes white, then peels it away from the head down: each pixel flares white-hot and streams off on the wind as a cooling mote of light. It is registered as \"spawn/disintegrate\".\n",
          "file": "pkg/pixelfx/spawn/disintegrate.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "DissolveBurn",
              "anchor": "DissolveBurn"
            }
          ],
          "decl": "var DissolveBurn = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Dissolve burn\",\n\t\tDesc:     \"An ember seam lights at the feet and climbs the body: above it the body scorches and smoulders, at it flames lick up, below it there's only falling ash, embers and smoke.\",\n\t\tTags:     []string{\"spawn\", \"death\", \"burn\", \"fire\", \"ash\", \"dissolve\", \"embers\", \"one-shot\"},\n\t\tSize:     [2]int{96, 112},\n\t\tOrigin:   [2]int{48, 100},\n\t\tDuration: dissolveDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a0e08\", \"#5a1a0c\", \"#a8320f\", \"#e8601a\", \"#ff9a2e\", \"#ffd25a\", \"#fff3c0\", \"#ffffff\")},\n\t\t\t{Name: \"ash\", Default: pixelfx.Palette(\"#2a2428\", \"#4a4248\", \"#6e6670\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(16)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.16, Pose: pixelfx.Ready},\n\t\t\t{T: 0.4, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(2), pixelfx.FX.Is(-9), pixelfx.FY.Is(-22), pixelfx.BX.Is(10), pixelfx.BY.Is(-22), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},\n\t\t\t{T: 0.8, Pose: dissolveWrithe},\n\t\t\t{T: 1.2, Pose: dissolveWrithe.With(pixelfx.Lean.Is(2), pixelfx.FY.Is(-26), pixelfx.BY.Is(-36))},\n\t\t\t{T: 1.6, Pose: dissolveWrithe.With(pixelfx.Lean.Is(-2), pixelfx.FY.Is(-36), pixelfx.BY.Is(-26))},\n\t\t\t{T: 2.1, Pose: dissolveWrithe.With(pixelfx.Crouch.Is(5), pixelfx.Lean.Is(2), pixelfx.FX.Is(-8), pixelfx.FY.Is(-38), pixelfx.BX.Is(9), pixelfx.BY.Is(-38))},\n\t\t\t{T: 3.6, Pose: dissolveWrithe.With(pixelfx.Crouch.Is(6), pixelfx.Lean.Is(2), pixelfx.FX.Is(-8), pixelfx.FY.Is(-36), pixelfx.BX.Is(9), pixelfx.BY.Is(-36))},\n\t\t},\n\t},\n\tActorAlpha: func(float64, *pixelfx.Options) float64 { return 0 },\n\tNew:        newDissolveBurn,\n}",
          "doc": "DissolveBurn lights an ember seam at the feet and climbs the body: above it the body scorches and smoulders, at it flames lick up, below it there's only falling ash, embers and smoke. It is registered as \"spawn/dissolve-burn\".\n",
          "file": "pkg/pixelfx/spawn/dissolve_burn.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "EggHatch",
              "anchor": "EggHatch"
            }
          ],
          "decl": "var EggHatch = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Egg hatch\",\n\t\tDesc:     \"A speckled egg rocks three times, each rock cracking it further with warm light leaking out, then pops: light pours out of the opening and lit shell halves tumble away.\",\n\t\tTags:     []string{\"spawn\", \"egg\", \"hatch\", \"birth\", \"crack\", \"shell\", \"light\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{120, 96},\n\t\tOrigin:   [2]int{60, 84},\n\t\tDuration: eggDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1e1826\", \"#4a3e52\", \"#857684\", \"#c4b4ac\", \"#ece0d2\", \"#fffaf0\")},\n\t\t\t{Name: \"glow\", Default: pixelfx.Palette(\"#ff8a2a\", \"#ffd25a\", \"#fff3c0\")},\n\t\t\t{Name: \"speckle\", Default: pixelfx.Color(\"#9a6a52\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(31)},\n\t\t},\n\t},\n\tNew: newEggHatch,\n}",
          "doc": "EggHatch is a speckled egg rocking three times, each rock cracking it further with warm light leaking out, then popping: light pours out of the opening and lit shell halves tumble away. It is registered as \"spawn/egg-hatch\".\n",
          "file": "pkg/pixelfx/spawn/egg_hatch.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Poof",
              "anchor": "Poof"
            }
          ],
          "decl": "var Poof = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Poof\",\n\t\tDesc:     \"A cartoon death poof: a white pop, a ring of soft round smoke balls bursting out between speed lines, little stars spinning off, and the cloud lifting and thinning away.\",\n\t\tTags:     []string{\"spawn\", \"death\", \"despawn\", \"smoke\", \"poof\", \"cartoon\", \"one-shot\"},\n\t\tSize:     [2]int{112, 92},\n\t\tOrigin:   [2]int{56, 80},\n\t\tDuration: 1.6,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a2440\", \"#5e5878\", \"#9a94b4\", \"#cdc8e0\", \"#f2f0fa\", \"#ffffff\")},\n\t\t\t{Name: \"stars\", Default: pixelfx.Palette(\"#ffd84a\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(21)},\n\t\t},\n\t},\n\tNew: newPoof,\n}",
          "doc": "Poof is a cartoon death poof: a white pop, a ring of soft round smoke balls bursting out between speed lines, little stars spinning off, and the cloud lifting and thinning away. It is registered as \"spawn/poof\".\n",
          "file": "pkg/pixelfx/spawn/poof.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "RespawnBeam",
              "anchor": "RespawnBeam"
            }
          ],
          "decl": "var RespawnBeam = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Respawn beam\",\n\t\tDesc:     \"A guide line drops, a pillar of light slams onto the spot, and a scan bar climbs from the feet writing the character back in row by row, white-hot lines cooling to its colors.\",\n\t\tTags:     []string{\"spawn\", \"respawn\", \"beam\", \"teleport\", \"scanline\", \"light\", \"one-shot\"},\n\t\tSize:     [2]int{128, 150},\n\t\tOrigin:   [2]int{64, 136},\n\t\tDuration: 2.5,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#061e1b\", \"#0c3e36\", \"#136a5a\", \"#1f9c80\", \"#45d1a8\", \"#a8f5d8\", \"#ffffff\")},\n\t\t\t{Name: \"width\", Default: pixelfx.Num(15)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(12)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tFollow: pixelfx.Val(0),\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: respawnSet},\n\t\t\t{T: 1.4, Pose: respawnSet},\n\t\t\t{T: 1.72, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1.15), pixelfx.Crouch.Is(-1), pixelfx.FX.Is(-13), pixelfx.FY.Is(-36), pixelfx.BX.Is(14), pixelfx.BY.Is(-36), pixelfx.HY.Is(-1), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},\n\t\t\t{T: 2.1, Pose: pixelfx.Ready},\n\t\t\t{T: 2.5, Pose: pixelfx.Ready},\n\t\t},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif t < respawnDone+0.04 {\n\t\t\treturn 0\n\t\t}\n\t\treturn 1\n\t},\n\tNew: newRespawnBeam,\n}",
          "doc": "RespawnBeam drops a guide line, slams a pillar of light onto the spot, and climbs a scan bar from the feet writing the character back in row by row, white-hot lines cooling to its colors. It is registered as \"spawn/respawn-beam\".\n",
          "file": "pkg/pixelfx/spawn/respawn_beam.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "ShatterDeath",
              "anchor": "ShatterDeath"
            }
          ],
          "decl": "var ShatterDeath = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Shatter death\",\n\t\tDesc:     \"Frost races up the body and seals it in faceted ice, a glint sweeps it, cracks spread from the chest, then it bursts into its own facets that tumble, bounce and melt.\",\n\t\tTags:     []string{\"spawn\", \"death\", \"ice\", \"freeze\", \"shatter\", \"shards\", \"one-shot\"},\n\t\tSize:     [2]int{172, 96},\n\t\tOrigin:   [2]int{84, 84},\n\t\tDuration: shatterDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0e1636\", \"#1a2f66\", \"#2557a3\", \"#3488d6\", \"#5fc0f0\", \"#a2e6ff\", \"#dcf8ff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(14)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.2, Pose: pixelfx.Ready},\n\t\t\t{T: 0.08, Pose: shatterFear, How: \"snap\"},\n\t\t\t{T: 0.3, Pose: shatterFear.With(pixelfx.Lean.Is(-3), pixelfx.FY.Is(-34))},\n\t\t\t{T: 0.5, Pose: shatterFear},\n\t\t\t{T: 3.3, Pose: shatterFear},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 0.5, Stop: 0.02, Shake: 0.06, Amp: pixelfx.Val(1)},\n\t\t\t{T: 1.4, Stop: 0.09, Shake: 0.26, Amp: pixelfx.Val(3)},\n\t\t},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif t < shatterBurst {\n\t\t\treturn 1\n\t\t}\n\t\treturn 0\n\t},\n\tNew: newShatterDeath,\n}",
          "doc": "ShatterDeath races frost up the body and seals it in faceted ice, sweeps a glint across it, spreads cracks from the chest, then bursts it into its own facets that tumble, bounce and melt. It is registered as \"spawn/shatter-death\".\n",
          "file": "pkg/pixelfx/spawn/shatter_death.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "SoulRise",
              "anchor": "SoulRise"
            }
          ],
          "decl": "var SoulRise = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Soul rise\",\n\t\tDesc:     \"The body's outline flares and dims, then a pale glowing copy of it lifts out, stretching as its legs melt into a rippling wisp, shedding motes until it thins into light.\",\n\t\tTags:     []string{\"spawn\", \"death\", \"soul\", \"ghost\", \"spirit\", \"rise\", \"light\", \"one-shot\"},\n\t\tSize:     [2]int{96, 140},\n\t\tOrigin:   [2]int{48, 126},\n\t\tDuration: soulDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#101a33\", \"#1f3563\", \"#35609e\", \"#5c96d4\", \"#94c8f0\", \"#d2f0ff\", \"#ffffff\")},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(50)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(27)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tFollow: pixelfx.Val(0),\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.2, Pose: pixelfx.Ready},\n\t\t\t{T: 0.3, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(1), pixelfx.Crouch.Is(2), pixelfx.HY.Is(-1), pixelfx.FX.Is(-10), pixelfx.FY.Is(-24), pixelfx.BX.Is(11), pixelfx.BY.Is(-24), pixelfx.FFX.Is(-3), pixelfx.FBX.Is(4))},\n\t\t\t{T: 0.7, Pose: pixelfx.Pose{}.With(pixelfx.Turn.Is(0.7), pixelfx.Crouch.Is(4), pixelfx.Lean.Is(3), pixelfx.HY.Is(1), pixelfx.FX.Is(2), pixelfx.FY.Is(-14), pixelfx.BX.Is(8), pixelfx.BY.Is(-14), pixelfx.FFX.Is(4), pixelfx.FBX.Is(-3))},\n\t\t\t{T: 1.1, Pose: soulSlump},\n\t\t\t{T: 2.7, Pose: soulSlump},\n\t\t\t{T: 3.2, Pose: soulSlump.With(pixelfx.Crouch.Is(7))},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 1.1, X: 0, N: 5}},\n\t},\n\tActorAlpha: func(float64, *pixelfx.Options) float64 { return 1 },\n\tNew:        newSoulRise,\n}",
          "doc": "SoulRise flares and dims the body's outline, then lifts a pale glowing copy of it out, stretching as its legs melt into a rippling wisp, shedding motes until it thins into light. It is registered as \"spawn/soul-rise\".\n",
          "file": "pkg/pixelfx/spawn/soul_rise.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "SpawnPortal",
              "anchor": "SpawnPortal"
            }
          ],
          "decl": "var SpawnPortal = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Spawn portal\",\n\t\tDesc:     \"A rift tears open on the floor and swirls, belches violet smoke and sparks, spits a fountain of wisps up out of itself, then twists shut with a pop.\",\n\t\tTags:     []string{\"spawn\", \"portal\", \"summon\", \"rift\", \"arcane\", \"smoke\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{208, 150},\n\t\tOrigin:   [2]int{104, 122},\n\t\tDuration: 3.8,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#12081f\", \"#2a0f4d\", \"#481b8c\", \"#7330d0\", \"#a35cff\", \"#cf9bff\", \"#f1dcff\", \"#ffffff\")},\n\t\t\t{Name: \"width\", Default: pixelfx.Num(28)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newSpawnPortal,\n}",
          "doc": "SpawnPortal tears a rift open on the floor and swirls, belches violet smoke and sparks, spits a fountain of wisps up out of itself, then twists shut with a pop. It is registered as \"spawn/spawn-portal\".\n",
          "file": "pkg/pixelfx/spawn/spawn_portal.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "SummonRise",
              "anchor": "SummonRise"
            }
          ],
          "decl": "var SummonRise = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Summon rise\",\n\t\tDesc:     \"A rune circle burns into the floor, the ground bursts, and a horned brute heaves up out of it through dust and rubble, lit from below, until its eyes flare.\",\n\t\tTags:     []string{\"spawn\", \"summon\", \"demon\", \"rise\", \"runes\", \"dust\", \"rubble\", \"ground\", \"one-shot\"},\n\t\tSize:     [2]int{176, 116},\n\t\tOrigin:   [2]int{88, 94},\n\t\tDuration: summonDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0608\", \"#3d0c0c\", \"#7a1a10\", \"#c0381a\", \"#f06a1e\", \"#ffae3a\", \"#ffe08a\", \"#ffffff\")},\n\t\t\t{Name: \"body\", Default: pixelfx.Palette(\"#060409\", \"#0e0913\", \"#170f1e\", \"#211628\", \"#2d2036\")},\n\t\t\t{Name: \"horn\", Default: pixelfx.Palette(\"#0c080c\", \"#201820\", \"#352a32\", \"#4e3f48\", \"#6e5c64\")},\n\t\t\t{Name: \"stone\", Default: pixelfx.Palette(\"#1a1424\", \"#2b2639\", \"#4a4263\", \"#6c6488\", \"#9a91b4\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newSummonRise,\n}",
          "doc": "SummonRise burns a rune circle into the floor, bursts the ground, and heaves a horned brute up out of it through dust and rubble, lit from below, until its eyes flare. It is registered as \"spawn/summon-rise\".\n",
          "file": "pkg/pixelfx/spawn/summon_rise.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/status",
      "name": "status",
      "dir": "pkg/pixelfx/status",
      "page": "pkg/pixelfx/status",
      "synopsis": "Package status is pixelfx's status category: bleeding, burning, charmed, confused, cursed, frozen, haste, petrified, poisoned, rage, sleep, slowed and stunned, each a pixelfx.Effect registered as \"status/<name>\" when the package is imported.",
      "doc": "Package status is pixelfx's status category: bleeding, burning, charmed, confused, cursed, frozen, haste, petrified, poisoned, rage, sleep, slowed and stunned, each a pixelfx.Effect registered as \"status/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Bleeding",
              "anchor": "Bleeding"
            }
          ],
          "decl": "var Bleeding = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Bleeding\",\n\t\tDesc:     \"Bleeding out: beads swell at three wounds, run, let go and fall to spatter into a glossy pool that ripples; each heartbeat spurts a little and flashes the body red.\",\n\t\tTags:     []string{\"status\", \"bleed\", \"blood\", \"dot\", \"debuff\", \"wound\", \"loop\"},\n\t\tSize:     [2]int{60, 56},\n\t\tOrigin:   [2]int{30, 46},\n\t\tDuration: bleedingDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#350711\", \"#5e0c1b\", \"#931327\", \"#c71e33\", \"#f2384a\", \"#ff8a7a\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: bleedingBeatP},\n\t\t\t{T: 0.18, Pose: bleedingClutch},\n\t\t\t{T: 1.2, Pose: bleedingClutch},\n\t\t\t{T: 1.2, Pose: bleedingBeatP, How: \"snap\"},\n\t\t\t{T: 1.38, Pose: bleedingClutch},\n\t\t\t{T: 2.4, Pose: bleedingClutch},\n\t\t\t{T: 2.4, Pose: bleedingBeatP, How: \"snap\"},\n\t\t},\n\t},\n\tNew: newBleeding,\n}",
          "doc": "Bleeding is bleeding out: beads swell at three wounds, run, let go and fall to spatter into a glossy pool that ripples; each heartbeat spurts a little and flashes the body red. It is registered as \"status/bleeding\".\n",
          "file": "pkg/pixelfx/status/bleeding.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "Burning",
              "anchor": "Burning"
            }
          ],
          "decl": "var Burning = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Burning\",\n\t\tDesc:     \"Burning over time: small flames lick from four hot spots, trailing sparks and thin smoke; every 0.6 s they flare, the body flashes white then orange, scorch marks spread.\",\n\t\tTags:     []string{\"status\", \"fire\", \"burn\", \"dot\", \"debuff\", \"loop\"},\n\t\tSize:     [2]int{72, 80},\n\t\tOrigin:   [2]int{36, 70},\n\t\tDuration: burningDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\t\t{Name: \"char\", Default: pixelfx.Palette(\"#120c0a\", \"#2a1a14\", \"#4a2c1c\")},\n\t\t\t{Name: \"smoke\", Default: pixelfx.Color(\"#5b5566\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: burningA},\n\t\t\t{T: 0.15, Pose: burningB, How: \"snap\"},\n\t\t\t{T: 0.3, Pose: burningA, How: \"snap\"},\n\t\t\t{T: 0.45, Pose: burningB, How: \"snap\"},\n\t\t\t{T: 0.6, Pose: burningA, How: \"snap\"},\n\t\t\t{T: 0.75, Pose: burningB, How: \"snap\"},\n\t\t\t{T: 0.9, Pose: burningA, How: \"snap\"},\n\t\t\t{T: 1.05, Pose: burningB, How: \"snap\"},\n\t\t\t{T: 1.2, Pose: burningA, How: \"snap\"},\n\t\t},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif burningSince(t) < 0.034 {\n\t\t\treturn 0\n\t\t}\n\t\treturn 1\n\t},\n\tNew: newBurning,\n}",
          "doc": "Burning is burning over time: small flames lick from four hot spots, trailing sparks and thin smoke; every 0.6 s they flare, the body flashes white then orange, scorch marks spread. It is registered as \"status/burning\".\n",
          "file": "pkg/pixelfx/status/burning.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "Charmed",
              "anchor": "Charmed"
            }
          ],
          "decl": "var Charmed = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Charmed\",\n\t\tDesc:     \"Smitten: a big heart beats over the head, throwing a ring and a flush of light with every beat, little hearts float up, the eyes go pink and the cheeks blush.\",\n\t\tTags:     []string{\"status\", \"charm\", \"love\", \"hearts\", \"debuff\", \"loop\"},\n\t\tSize:     [2]int{60, 76},\n\t\tOrigin:   [2]int{30, 68},\n\t\tDuration: charmedDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#3a0a1e\", \"#7a1238\", \"#c4245a\", \"#f04e86\", \"#ff8ab0\", \"#ffc8da\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: charmedSwoon.With(pixelfx.Lean.Is(-2))},\n\t\t\t{T: 0.6, Pose: charmedSwoon.With(pixelfx.Lean.Is(0), pixelfx.Crouch.Is(1))},\n\t\t\t{T: 1.2, Pose: charmedSwoon.With(pixelfx.Lean.Is(2))},\n\t\t\t{T: 1.8, Pose: charmedSwoon.With(pixelfx.Lean.Is(0), pixelfx.Crouch.Is(1))},\n\t\t\t{T: 2.4, Pose: charmedSwoon.With(pixelfx.Lean.Is(-2))},\n\t\t},\n\t},\n\tNew: newCharmed,\n}",
          "doc": "Charmed is smitten: a big heart beats over the head, throwing a ring and a flush of light with every beat, little hearts float up, the eyes go pink and the cheeks blush. It is registered as \"status/charmed\".\n",
          "file": "pkg/pixelfx/status/charmed.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "Confused",
              "anchor": "Confused"
            }
          ],
          "decl": "var Confused = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Confused\",\n\t\tDesc:     \"Head in a spin: a glowing spiral whirls over the head, question marks pop up round it and bob, the eyes dart left and right.\",\n\t\tTags:     []string{\"status\", \"confused\", \"confusion\", \"dizzy\", \"debuff\", \"loop\"},\n\t\tSize:     [2]int{60, 78},\n\t\tOrigin:   [2]int{30, 70},\n\t\tDuration: confusedDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1e0f2e\", \"#4b2070\", \"#8a3ab0\", \"#c66ae0\", \"#f0a8ff\", \"#ffffff\")},\n\t\t\t{Name: \"marks\", Default: pixelfx.Palette(\"#2a1608\", \"#b0701a\", \"#ffd84a\", \"#fff4b8\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: confusedShrug.With(pixelfx.X.Is(0), pixelfx.Lean.Is(-2))},\n\t\t\t{T: 0.6, Pose: confusedShrug.With(pixelfx.X.Is(1), pixelfx.Lean.Is(1), pixelfx.Crouch.Is(1), pixelfx.FY.Is(-23), pixelfx.BY.Is(-29), pixelfx.FBX.Is(5), pixelfx.FBY.Is(-6))},\n\t\t\t{T: 1.2, Pose: confusedShrug.With(pixelfx.X.Is(2), pixelfx.Lean.Is(2))},\n\t\t\t{T: 1.8, Pose: confusedShrug.With(pixelfx.X.Is(1), pixelfx.Lean.Is(-1), pixelfx.Crouch.Is(1), pixelfx.FY.Is(-29), pixelfx.BY.Is(-23), pixelfx.FFX.Is(-4), pixelfx.FFY.Is(-6))},\n\t\t\t{T: 2.4, Pose: confusedShrug.With(pixelfx.X.Is(0), pixelfx.Lean.Is(-2))},\n\t\t},\n\t},\n\tNew: newConfused,\n}",
          "doc": "Confused is head in a spin: a glowing spiral whirls over the head, question marks pop up round it and bob, the eyes dart left and right. It is registered as \"status/confused\".\n",
          "file": "pkg/pixelfx/status/confused.go",
          "line": 33
        },
        {
          "idents": [
            {
              "name": "Cursed",
              "anchor": "Cursed"
            }
          ],
          "decl": "var Cursed = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Cursed\",\n\t\tDesc:     \"Hexed: violet smoke rises off the body in winding trails, a dark stain creeps up from the feet with a glowing edge, the eyes burn, a skull glitches in overhead.\",\n\t\tTags:     []string{\"status\", \"curse\", \"hex\", \"dark\", \"debuff\", \"shadow\", \"loop\"},\n\t\tSize:     [2]int{64, 84},\n\t\tOrigin:   [2]int{32, 76},\n\t\tDuration: cursedDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0c0612\", \"#1f0f2e\", \"#3a1a55\", \"#5e2a85\", \"#8a3fc0\", \"#b86ef0\", \"#e0b0ff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: cursedHunch},\n\t\t\t{T: 0.6, Pose: cursedHunch.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 1.2, Pose: cursedHunch.With(pixelfx.Lean.Is(2))},\n\t\t\t{T: 1.8, Pose: cursedHunch.With(pixelfx.Crouch.Is(5))},\n\t\t\t{T: 2.4, Pose: cursedHunch},\n\t\t},\n\t},\n\tNew: newCursed,\n}",
          "doc": "Cursed is hexed: violet smoke rises off the body in winding trails, a dark stain creeps up from the feet with a glowing edge, the eyes burn, a skull glitches in overhead. It is registered as \"status/cursed\".\n",
          "file": "pkg/pixelfx/status/cursed.go",
          "line": 45
        },
        {
          "idents": [
            {
              "name": "Frozen",
              "anchor": "Frozen"
            }
          ],
          "decl": "var Frozen = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Frozen\",\n\t\tDesc:     \"Chilled to the bone: frost ferns creep over the body, icicles hang from chin and hands and drip, breath steams, snow settles, a shiver every second, frost spreads underfoot.\",\n\t\tTags:     []string{\"status\", \"ice\", \"freeze\", \"frozen\", \"cold\", \"chill\", \"debuff\", \"loop\"},\n\t\tSize:     [2]int{72, 64},\n\t\tOrigin:   [2]int{36, 54},\n\t\tDuration: frozenDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#151a3d\", \"#212f6b\", \"#2c58aa\", \"#3a8bd8\", \"#62c8f4\", \"#a6ecff\", \"#dcfbff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: frozenStiff.With(pixelfx.Crouch.Is(2))},\n\t\t\t{T: 0.22, Pose: frozenStiff},\n\t\t\t{T: 1, Pose: frozenStiff},\n\t\t\t{T: 1, Pose: frozenStiff.With(pixelfx.Crouch.Is(2)), How: \"snap\"},\n\t\t\t{T: 1.22, Pose: frozenStiff},\n\t\t\t{T: 2, Pose: frozenStiff.With(pixelfx.Crouch.Is(2))},\n\t\t},\n\t},\n\tActorAlpha: func(float64, *pixelfx.Options) float64 { return 0 },\n\tNew:        newFrozen,\n}",
          "doc": "Frozen is chilled to the bone: frost ferns creep over the body, icicles hang from chin and hands and drip, breath steams, snow settles, a shiver every second, frost spreads underfoot. It is registered as \"status/frozen\".\n",
          "file": "pkg/pixelfx/status/frozen.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "Haste",
              "anchor": "Haste"
            }
          ],
          "decl": "var Haste = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Haste\",\n\t\tDesc:     \"Sped up: striped after-images stream out behind, speed lines whip past, dust kicks off the heels and the leading edge catches the wind. Faces right.\",\n\t\tTags:     []string{\"status\", \"haste\", \"speed\", \"fast\", \"buff\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{100, 56},\n\t\tOrigin:   [2]int{64, 48},\n\t\tDuration: hasteDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4c25ab\", \"#773ae4\", \"#5b6cff\", \"#5eb0ff\", \"#a3dcff\", \"#ccf6ff\", \"#ffffff\")},\n\t\t\t{Name: \"dust\", Default: pixelfx.Color(\"#8a8090\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tFollow: pixelfx.Val(0),\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: hasteR1},\n\t\t\t{T: 0.1, Pose: hasteR2, How: \"snap\"},\n\t\t\t{T: 0.2, Pose: hasteR3, How: \"snap\"},\n\t\t\t{T: 0.3, Pose: hasteR4, How: \"snap\"},\n\t\t\t{T: 0.4, Pose: hasteR1, How: \"snap\"},\n\t\t\t{T: 0.5, Pose: hasteR2, How: \"snap\"},\n\t\t\t{T: 0.6, Pose: hasteR3, How: \"snap\"},\n\t\t\t{T: 0.7, Pose: hasteR4, How: \"snap\"},\n\t\t\t{T: 0.8, Pose: hasteR1, How: \"snap\"},\n\t\t\t{T: 0.9, Pose: hasteR2, How: \"snap\"},\n\t\t\t{T: 1, Pose: hasteR3, How: \"snap\"},\n\t\t\t{T: 1.1, Pose: hasteR4, How: \"snap\"},\n\t\t\t{T: 1.2, Pose: hasteR1, How: \"snap\"},\n\t\t},\n\t},\n\tNew: newHaste,\n}",
          "doc": "Haste is sped up: striped after-images stream out behind, speed lines whip past, dust kicks off the heels and the leading edge catches the wind. Faces right. It is registered as \"status/haste\".\n",
          "file": "pkg/pixelfx/status/haste.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "Petrified",
              "anchor": "Petrified"
            }
          ],
          "decl": "var Petrified = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Petrified\",\n\t\tDesc:     \"Turned to stone: grey creeps up from the feet behind a crackling edge that spits grit, the statue holds, cracks run through it, and it bursts into tumbling chunks and dust.\",\n\t\tTags:     []string{\"status\", \"stone\", \"petrify\", \"petrified\", \"debuff\", \"death\", \"one-shot\"},\n\t\tSize:     [2]int{120, 74},\n\t\tOrigin:   [2]int{60, 64},\n\t\tDuration: petrifiedDuration,\n\t\tLoop:     false,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#16141c\", \"#2a2733\", \"#433f4d\", \"#5f5a6a\", \"#7d7889\", \"#a29dab\", \"#cdc8d2\", \"#f0edf3\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.16, Pose: pixelfx.Ready},\n\t\t\t{T: 0.08, Pose: petrifiedShock, How: \"snap\"},\n\t\t\t{T: 0.5, Pose: petrifiedReach},\n\t\t\t{T: 0.95, Pose: petrifiedReach},\n\t\t\t{T: 3.8, Pose: petrifiedReach},\n\t\t},\n\t\tHits: []pixelfx.Hit{\n\t\t\t{T: 2.2, Stop: 0.08, Shake: 0.24, Amp: pixelfx.Val(2)},\n\t\t},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif t < petrifiedCreep {\n\t\t\treturn 1\n\t\t}\n\t\treturn 0\n\t},\n\tNew: newPetrified,\n}",
          "doc": "Petrified is turned to stone: grey creeps up from the feet behind a crackling edge that spits grit, the statue holds, cracks run through it, and it bursts into tumbling chunks and dust. It is registered as \"status/petrified\".\n",
          "file": "pkg/pixelfx/status/petrified.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "Poisoned",
              "anchor": "Poisoned"
            }
          ],
          "decl": "var Poisoned = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Poisoned\",\n\t\tDesc:     \"Sick to the bone: green rolls up the body in waves, dark veins creep from a wound, toxic sweat drips and hisses; every 0.8 s it wobbles, blisters pop and a ring pulses out.\",\n\t\tTags:     []string{\"status\", \"poison\", \"toxic\", \"dot\", \"debuff\", \"sick\", \"loop\"},\n\t\tSize:     [2]int{72, 64},\n\t\tOrigin:   [2]int{36, 54},\n\t\tDuration: poisonedDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0e1d14\", \"#173320\", \"#23552e\", \"#318232\", \"#55b92f\", \"#8eea3f\", \"#cfff63\", \"#f6ffc2\")},\n\t\t\t{Name: \"veins\", Default: pixelfx.Color(\"#2c1a3a\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: poisonedSick.With(pixelfx.X.Is(-1), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(5))},\n\t\t\t{T: 0.2, Pose: poisonedSick.With(pixelfx.X.Is(0))},\n\t\t\t{T: 0.5, Pose: poisonedSick.With(pixelfx.X.Is(1))},\n\t\t\t{T: 0.8, Pose: poisonedSick.With(pixelfx.X.Is(1), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(5))},\n\t\t\t{T: 1, Pose: poisonedSick.With(pixelfx.X.Is(0))},\n\t\t\t{T: 1.3, Pose: poisonedSick.With(pixelfx.X.Is(-1))},\n\t\t\t{T: 1.6, Pose: poisonedSick.With(pixelfx.X.Is(-1), pixelfx.Crouch.Is(5), pixelfx.Lean.Is(5))},\n\t\t},\n\t},\n\tActorAlpha: func(float64, *pixelfx.Options) float64 { return 0 },\n\tNew:        newPoisoned,\n}",
          "doc": "Poisoned is sick to the bone: green rolls up the body in waves, dark veins creep from a wound, toxic sweat drips and hisses; every 0.8 s it wobbles, blisters pop and a ring pulses out. It is registered as \"status/poisoned\".\n",
          "file": "pkg/pixelfx/status/poisoned.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "Rage",
              "anchor": "Rage"
            }
          ],
          "decl": "var Rage = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Rage\",\n\t\tDesc:     \"Seething: the body judders on every heartbeat, an anger mark throbs at the temple, eyes burn, steam jets off the head, stress lines flash out and the floor cracks hot underfoot.\",\n\t\tTags:     []string{\"status\", \"rage\", \"berserk\", \"anger\", \"buff\", \"loop\"},\n\t\tSize:     [2]int{80, 80},\n\t\tOrigin:   [2]int{40, 70},\n\t\tDuration: rageDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0208\", \"#4a0612\", \"#8a0c1c\", \"#c81828\", \"#ff3040\", \"#ff7a7a\", \"#ffc8c8\", \"#ffffff\")},\n\t\t\t{Name: \"heat\", Default: pixelfx.Palette(\"#5a0a0a\", \"#c8281a\", \"#ff7a2a\", \"#ffd27a\")},\n\t\t\t{Name: \"steam\", Default: pixelfx.Color(\"#f2e8ee\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: rageSeethe},\n\t\t\t{T: 0.05, Pose: rageThud, How: \"snap\"},\n\t\t\t{T: 0.17, Pose: rageSeethe, How: \"snap\"},\n\t\t\t{T: 0.29, Pose: rageThud.With(pixelfx.Crouch.Is(5)), How: \"snap\"},\n\t\t\t{T: 0.4, Pose: rageSeethe, How: \"snap\"},\n\t\t\t{T: 1.2, Pose: rageSeethe},\n\t\t},\n\t},\n\tActorAlpha: func(t float64, _ *pixelfx.Options) float64 {\n\t\tif rageShaking(t) {\n\t\t\treturn 0\n\t\t}\n\t\treturn 1\n\t},\n\tNew: newRage,\n}",
          "doc": "Rage is seething: the body judders on every heartbeat, an anger mark throbs at the temple, eyes burn, steam jets off the head, stress lines flash out and the floor cracks hot underfoot. It is registered as \"status/rage\".\n",
          "file": "pkg/pixelfx/status/rage.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "Sleep",
              "anchor": "Sleep"
            }
          ],
          "decl": "var Sleep = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Sleep\",\n\t\tDesc:     \"Fast asleep: eyes shut, soft outlined Zs float up off the head one after another, swaying and growing as they rise, dream motes drift, a slow breathing glow.\",\n\t\tTags:     []string{\"status\", \"sleep\", \"zzz\", \"rest\", \"debuff\", \"loop\"},\n\t\tSize:     [2]int{60, 82},\n\t\tOrigin:   [2]int{26, 74},\n\t\tDuration: sleepDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a1636\", \"#3c3a7a\", \"#6f78c8\", \"#a9b8f0\", \"#dfe6ff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: sleepNod},\n\t\t\t{T: 1.2, Pose: sleepNod.With(pixelfx.Crouch.Is(2), pixelfx.Lean.Is(2), pixelfx.HY.Is(3))},\n\t\t\t{T: 2.4, Pose: sleepNod},\n\t\t},\n\t},\n\tNew: newSleep,\n}",
          "doc": "Sleep is fast asleep: eyes shut, soft outlined Zs float up off the head one after another, swaying and growing as they rise, dream motes drift, a slow breathing glow. It is registered as \"status/sleep\".\n",
          "file": "pkg/pixelfx/status/sleep.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "Slowed",
              "anchor": "Slowed"
            }
          ],
          "decl": "var Slowed = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Slowed\",\n\t\tDesc:     \"Dragged through time: a glassy clock dial behind the head ticks round in heavy steps, flashing with each, while drops sink in slow motion and spread slow rings.\",\n\t\tTags:     []string{\"status\", \"slow\", \"time\", \"clock\", \"debuff\", \"loop\"},\n\t\tSize:     [2]int{64, 76},\n\t\tOrigin:   [2]int{32, 68},\n\t\tDuration: slowedDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#081a24\", \"#0e3446\", \"#165a6e\", \"#2a8a9a\", \"#52bcc4\", \"#9ee6e0\", \"#e2fff8\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: slowedS1},\n\t\t\t{T: 1.2, Pose: slowedS2},\n\t\t\t{T: 2.4, Pose: slowedS1},\n\t\t},\n\t},\n\tNew: newSlowed,\n}",
          "doc": "Slowed is dragged through time: a glassy clock dial behind the head ticks round in heavy steps, flashing with each, while drops sink in slow motion and spread slow rings. It is registered as \"status/slowed\".\n",
          "file": "pkg/pixelfx/status/slowed.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "Stunned",
              "anchor": "Stunned"
            }
          ],
          "decl": "var Stunned = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Stunned\",\n\t\tDesc:     \"Seeing stars: three spinning stars and two little birds circle the head on a tilted ring, ducking behind it and sweeping round in front, trailing glitter.\",\n\t\tTags:     []string{\"status\", \"stun\", \"dizzy\", \"daze\", \"stars\", \"birds\", \"debuff\", \"loop\"},\n\t\tSize:     [2]int{60, 64},\n\t\tOrigin:   [2]int{30, 56},\n\t\tDuration: stunnedDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#3a1e0c\", \"#8a4a12\", \"#d88a1c\", \"#f5c030\", \"#ffe36e\", \"#fff6c8\", \"#ffffff\")},\n\t\t\t{Name: \"birds\", Default: pixelfx.Palette(\"#1a1422\", \"#6a7fae\", \"#b8c8e8\", \"#f4f8ff\")},\n\t\t\t{Name: \"beak\", Default: pixelfx.Color(\"#ffae35\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: 0, Pose: stunnedDaze.With(pixelfx.X.Is(-1), pixelfx.Lean.Is(-3), pixelfx.HX.Is(-1))},\n\t\t\t{T: 0.5, Pose: stunnedDaze.With(pixelfx.X.Is(0), pixelfx.Lean.Is(0), pixelfx.Crouch.Is(2), pixelfx.HY.Is(1), pixelfx.FFX.Is(-2))},\n\t\t\t{T: 1, Pose: stunnedDaze.With(pixelfx.X.Is(1), pixelfx.Lean.Is(3), pixelfx.HX.Is(1))},\n\t\t\t{T: 1.5, Pose: stunnedDaze.With(pixelfx.X.Is(0), pixelfx.Lean.Is(0), pixelfx.Crouch.Is(2), pixelfx.HY.Is(1), pixelfx.FBX.Is(3))},\n\t\t\t{T: 2, Pose: stunnedDaze.With(pixelfx.X.Is(-1), pixelfx.Lean.Is(-3), pixelfx.HX.Is(-1))},\n\t\t},\n\t},\n\tNew: newStunned,\n}",
          "doc": "Stunned is seeing stars: three spinning stars and two little birds circle the head on a tilted ring, ducking behind it and sweeping round in front, trailing glitter. It is registered as \"status/stunned\".\n",
          "file": "pkg/pixelfx/status/stunned.go",
          "line": 65
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/transitions",
      "name": "transitions",
      "dir": "pkg/pixelfx/transitions",
      "page": "pkg/pixelfx/transitions",
      "synopsis": "Package transitions is pixelfx's transitions category: full-screen 320 x 180 wipes, irises, dissolves, blinds, CRT switch, glitch, burn and glass shatter effects, each a pixelfx.Effect registered as \"transitions/<name>\" when the package is imported.",
      "doc": "Package transitions is pixelfx's transitions category: full-screen 320 x 180 wipes, irises, dissolves, blinds, CRT switch, glitch, burn and glass shatter effects, each a pixelfx.Effect registered as \"transitions/<name>\" when the package is imported.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "W",
              "anchor": "W"
            },
            {
              "name": "H",
              "anchor": "H"
            }
          ],
          "decl": "const (\n\t// W is the screen width in pixels.\n\tW = 320\n\t// H is the screen height in pixels.\n\tH = 180\n)",
          "doc": "",
          "file": "pkg/pixelfx/transitions/lib.go",
          "line": 17
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "Blinds",
              "anchor": "Blinds"
            }
          ],
          "decl": "var Blinds = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"Blinds\",\n\t\t\"Slats catch the light edge-on, then tilt shut top to bottom, lit rims glinting as warm light squeezes through the closing gaps with dust in it; then they tilt open and fade.\",\n\t\t[]string{\"blinds\", \"slats\", \"light\", \"wipe\"},\n\t\t2.0,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.Palette(\"#1a120c\", \"#33241a\", \"#5a4030\", \"#8a6848\", \"#c09a6a\", \"#e8cc98\", \"#fff0cc\", \"#ffffff\")},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(1)},\n\t),\n\tNew: newBlinds,\n}",
          "doc": "Blinds is a venetian-blinds screen transition: slats tilt shut top to bottom with warm light and dust squeezing through the closing gaps, then tilt open and fade. It is registered as \"transitions/blinds\".\n",
          "file": "pkg/pixelfx/transitions/blinds.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "BurnAway",
              "anchor": "BurnAway"
            }
          ],
          "decl": "var BurnAway = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"Burn away\",\n\t\t\"The screen burns in from its edges behind a ragged ember line of licking flames, embers and smoke; then the black smoulders and burns open from the middle.\",\n\t\t[]string{\"burn\", \"fire\", \"embers\", \"smoke\", \"wipe\"},\n\t\t3,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.Palette(\"#4a1712\", \"#8a1f17\", \"#c9281f\", \"#f2561d\", \"#ff8a2a\", \"#ffc23d\", \"#ffe26b\", \"#fff3a6\", \"#ffffff\")},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(3)},\n\t),\n\tNew: newBurnAway,\n}",
          "doc": "BurnAway is a fire screen transition: the screen burns in from its edges behind a ragged ember line of licking flames, embers and smoke, then smoulders and burns open from the middle. It is registered as \"transitions/burn-away\".\n",
          "file": "pkg/pixelfx/transitions/burn_away.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "CRTOff",
              "anchor": "CRTOff"
            }
          ],
          "decl": "var CRTOff = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"CRT off\",\n\t\t\"The picture squeezes into a white-hot glowing line, the line into a dot that lingers as a fading afterglow; then it switches back on, dot to line to picture, with a warm-up glow.\",\n\t\t[]string{\"crt\", \"tv\", \"retro\", \"switch\", \"wipe\"},\n\t\t2.0,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.Palette(\"#060a14\", \"#0e1a33\", \"#1a3360\", \"#2a5a9a\", \"#4a8fd0\", \"#8cc4f0\", \"#d4ecff\", \"#ffffff\")},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(1)},\n\t),\n\tNew: newCRTOff,\n}",
          "doc": "CRTOff is a retro CRT power-off/on screen transition: the picture squeezes into a glowing line and lingering dot, then switches back on with a warm-up glow. It is registered as \"transitions/crt-off\".\n",
          "file": "pkg/pixelfx/transitions/crt_off.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "DiamondWipe",
              "anchor": "DiamondWipe"
            }
          ],
          "decl": "var DiamondWipe = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"Diamond wipe\",\n\t\t\"A wave of faceted diamonds swells across the screen, rims bright and ridges lit, cooling to black as they lock; then they rise as gems again and shrink away with glints.\",\n\t\t[]string{\"diamond\", \"lattice\", \"geometric\", \"wipe\"},\n\t\t2.0,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.RampOf(pixelfx.Ramps[\"arcane\"])},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(1)},\n\t),\n\tNew: newDiamondWipe,\n}",
          "doc": "DiamondWipe is a faceted-diamond lattice screen transition: a slanted wave of diamonds swells across the screen, cools to black as they lock, then rises and shrinks away with glints. It is registered as \"transitions/diamond-wipe\".\n",
          "file": "pkg/pixelfx/transitions/diamond_wipe.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "GlitchWipe",
              "anchor": "GlitchWipe"
            }
          ],
          "decl": "var GlitchWipe = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"Glitch wipe\",\n\t\t\"Torn bands of black stutter across the screen, freezing and jerking back, their ragged edges split into magenta and cyan ghosts spitting data slivers; then they tear on through.\",\n\t\t[]string{\"glitch\", \"digital\", \"rgb\", \"bands\", \"wipe\"},\n\t\t1.8,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.RampOf(pixelfx.Ramps[\"cyber\"])},\n\t\tpixelfx.Option{Name: \"split\", Default: pixelfx.Color(\"#ff2d6f\")},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(1)},\n\t),\n\tNew: newGlitchWipe,\n}",
          "doc": "GlitchWipe is a digital glitch screen transition: torn bands of black stutter across the screen with RGB ghosts, data slivers and corrupted blocks, then tear on through. It is registered as \"transitions/glitch-wipe\".\n",
          "file": "pkg/pixelfx/transitions/glitch_wipe.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Iris",
              "anchor": "Iris"
            }
          ],
          "decl": "var Iris = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"Iris\",\n\t\t\"A lit iris closes onto a warm spotlight where dust drifts, holds as its rim twinkles, snaps shut into a glint, then pops open from a flash with a white-hot rim throwing sparks.\",\n\t\t[]string{\"iris\", \"circle\", \"spotlight\", \"wipe\"},\n\t\t2.2,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.Palette(\"#1c140c\", \"#3b2a18\", \"#6e5233\", \"#a8875a\", \"#d9bd8a\", \"#f3e2bd\", \"#fff7e8\", \"#ffffff\")},\n\t\tpixelfx.Option{Name: \"focus\", Default: pixelfx.Nums(160, 100)},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(1)},\n\t),\n\tNew: newIris,\n}",
          "doc": "Iris is a circular iris screen transition: a lit iris closes onto a warm spotlight where dust drifts, snaps shut into a glint, then pops open from a flash with sparks. It is registered as \"transitions/iris\".\n",
          "file": "pkg/pixelfx/transitions/iris.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "PixelDissolve",
              "anchor": "PixelDissolve"
            }
          ],
          "decl": "var PixelDissolve = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"Pixel dissolve\",\n\t\t\"Clumps of blocks wink in, each drawn in a white outline that fills black and cools, with glints; then they wink out, outlines collapsing, the last small ones sparkling away.\",\n\t\t[]string{\"dissolve\", \"pixel\", \"blocks\", \"glint\"},\n\t\t2.2,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.RampOf(pixelfx.Ramps[\"neon\"])},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(1)},\n\t),\n\tNew: newPixelDissolve,\n}",
          "doc": "PixelDissolve is a blocky pixel-dissolve screen transition: clumps of blocks wink in with cooling neon outlines and glints, then collapse and sparkle away. It is registered as \"transitions/pixel-dissolve\".\n",
          "file": "pkg/pixelfx/transitions/pixel_dissolve.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "ShatterWipe",
              "anchor": "ShatterWipe"
            }
          ],
          "decl": "var ShatterWipe = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"Shatter wipe\",\n\t\t\"A dark glass pane drops over the screen and bounces; cracks race out from an impact with a flash, then it bursts into tumbling glass shards with lit edges that fall away.\",\n\t\t[]string{\"shatter\", \"glass\", \"break\", \"shards\", \"wipe\"},\n\t\t2.8,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.Palette(\"#0c1430\", \"#162c5c\", \"#1f4f94\", \"#2f7fcc\", \"#58b4ec\", \"#9bdcff\", \"#d8f4ff\", \"#ffffff\")},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(2)},\n\t),\n\tNew: newShatterWipe,\n}",
          "doc": "ShatterWipe is a glass-shatter screen transition: a dark glass pane drops and bounces, cracks race out from an impact flash, then it bursts into tumbling glass shards that fall away. It is registered as \"transitions/shatter-wipe\".\n",
          "file": "pkg/pixelfx/transitions/shatter_wipe.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "SlashWipe",
              "anchor": "SlashWipe"
            }
          ],
          "decl": "var SlashWipe = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"Slash wipe\",\n\t\t\"A white-hot blade edge slices across the screen, light ahead of it and sparks spraying back over the cover; a second cut flashes through and the cover splits apart.\",\n\t\t[]string{\"slash\", \"blade\", \"cut\", \"sparks\", \"wipe\"},\n\t\t1.7,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.Palette(\"#151a3d\", \"#212f6b\", \"#2c58aa\", \"#3a8bd8\", \"#62c8f4\", \"#b8c9e8\", \"#e8f1ff\", \"#ffffff\")},\n\t\tpixelfx.Option{Name: \"sparks\", Default: pixelfx.Palette(\"#fff3a6\", \"#ffe26b\", \"#ff8a2a\", \"#f2561d\")},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(2)},\n\t),\n\tNew: newSlashWipe,\n}",
          "doc": "SlashWipe is a blade-cut screen transition: a white-hot edge slices across the screen spraying sparks, then a second diagonal cut flashes through and the cover splits apart. It is registered as \"transitions/slash-wipe\".\n",
          "file": "pkg/pixelfx/transitions/slash_wipe.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "StarIris",
              "anchor": "StarIris"
            }
          ],
          "decl": "var StarIris = &pixelfx.Effect{\n\tMeta: screenMeta(\n\t\t\"Star iris\",\n\t\t\"A five-point star iris spins shut on the middle of the screen, its gold rim lit and its tips twinkling and shedding motes; it closes on a glint and spins open again from a flash.\",\n\t\t[]string{\"iris\", \"star\", \"gold\", \"wipe\"},\n\t\t2.2,\n\t\tpixelfx.Option{Name: \"palette\", Default: pixelfx.RampOf(pixelfx.Ramps[\"gold\"])},\n\t\tpixelfx.Option{Name: \"focus\", Default: pixelfx.Nums(160, 96)},\n\t\tpixelfx.Option{Name: \"seed\", Default: pixelfx.Num(1)},\n\t),\n\tNew: newStarIris,\n}",
          "doc": "StarIris is a spinning five-point star iris screen transition: a gold-rimmed star spins shut onto the middle of the screen shedding motes, closes on a glint, and spins open again from a flash. It is registered as \"transitions/star-iris\".\n",
          "file": "pkg/pixelfx/transitions/star_iris.go",
          "line": 15
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/ui",
      "name": "ui",
      "dir": "pkg/pixelfx/ui",
      "page": "pkg/pixelfx/ui",
      "synopsis": "Package ui is pixelfx's UI category: damage and crit numbers, combo counters, countdowns, coin counters, health bars, hearts, alerts, achievements, level-up banners and confetti, each a pixelfx.Effect registered as \"ui/<name>\" when the package is imported.",
      "doc": "Package ui is pixelfx's UI category: damage and crit numbers, combo counters, countdowns, coin counters, health bars, hearts, alerts, achievements, level-up banners and confetti, each a pixelfx.Effect registered as \"ui/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Achievement",
              "anchor": "Achievement"
            }
          ],
          "decl": "var Achievement = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Achievement\",\n\t\tDesc:     \"A toast slides in on speed lines and settles; a gold medal pops onto it in a burst of sparkles, a shine sweeps the whole toast, then it slides away.\",\n\t\tTags:     []string{\"ui\", \"achievement\", \"toast\", \"medal\", \"reward\", \"text\", \"one-shot\"},\n\t\tSize:     [2]int{220, 72},\n\t\tOrigin:   [2]int{110, 36},\n\t\tDuration: achDuration,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1405\", \"#5c3008\", \"#9a5a0e\", \"#d48e18\", \"#f5b92c\", \"#ffde5e\", \"#fff4bc\", \"#ffffff\")},\n\t\t\t{Name: \"ribbon\", Default: pixelfx.Palette(\"#0c1430\", \"#1f3a7a\", \"#2f66c4\", \"#5aa0f0\", \"#a6d4ff\")},\n\t\t\t{Name: \"title\", Default: pixelfx.Text(\"ACHIEVEMENT\")},\n\t\t\t{Name: \"text\", Default: pixelfx.Text(\"UNLOCKED\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newAchievement,\n}",
          "doc": "Achievement is a toast that slides in on speed lines and settles while a gold medal pops onto it in a burst of sparkles, a shine sweeps the whole toast, then it slides away. It is registered as \"ui/achievement\".\n",
          "file": "pkg/pixelfx/ui/achievement.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "CoinCollect",
              "anchor": "CoinCollect"
            }
          ],
          "decl": "var CoinCollect = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Coin collect\",\n\t\tDesc:     \"A coin bursts into a fountain of spinning coins that hang, then zip one by one into a HUD counter that pops and ticks up, glints and folds away.\",\n\t\tTags:     []string{\"ui\", \"coins\", \"pickup\", \"reward\", \"hud\", \"counter\", \"one-shot\"},\n\t\tSize:     [2]int{176, 116},\n\t\tOrigin:   [2]int{60, 102},\n\t\tDuration: coinDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1405\", \"#5c3008\", \"#9a5a0e\", \"#d48e18\", \"#f5b92c\", \"#ffde5e\", \"#fff4bc\", \"#ffffff\")},\n\t\t\t{Name: \"count\", Default: pixelfx.Num(10)},\n\t\t\t{Name: \"from\", Default: pixelfx.Num(12)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newCoinCollect,\n}",
          "doc": "CoinCollect bursts a coin into a fountain of spinning coins that hang, then zip one by one into a HUD counter that pops and ticks up, glints and folds away. It is registered as \"ui/coin-collect\".\n",
          "file": "pkg/pixelfx/ui/coin_collect.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ComboCounter",
              "anchor": "ComboCounter"
            }
          ],
          "decl": "var ComboCounter = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Combo counter\",\n\t\tDesc:     \"x5 COMBO rockets in on streaming speed lines, smearing, and slams to a stop: a white flash, a ring, sparks; it pulses while a timer bar drains, then whooshes out.\",\n\t\tTags:     []string{\"ui\", \"combo\", \"counter\", \"combat\", \"text\", \"one-shot\"},\n\t\tSize:     [2]int{208, 100},\n\t\tOrigin:   [2]int{104, 50},\n\t\tDuration: comboDuration,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0516\", \"#3d0a33\", \"#701560\", \"#b0228f\", \"#f53cd1\", \"#ff86e6\", \"#ffd2f6\", \"#ffffff\")},\n\t\t\t{Name: \"count\", Default: pixelfx.Num(5)},\n\t\t\t{Name: \"label\", Default: pixelfx.Text(\"COMBO\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newComboCounter,\n}",
          "doc": "ComboCounter rockets \"x5 COMBO\" in on streaming speed lines, slams to a stop with a flash, ring and sparks, pulses while a timer bar drains, then whooshes out. It is registered as \"ui/combo-counter\".\n",
          "file": "pkg/pixelfx/ui/combo_counter.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "Confetti",
              "anchor": "Confetti"
            }
          ],
          "decl": "var Confetti = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Confetti\",\n\t\tDesc:     \"Two party poppers bang one after the other: paper bits and curly streamers burst out, stall, then tumble and flutter down, flipping, and settle on the floor.\",\n\t\tTags:     []string{\"ui\", \"celebration\", \"confetti\", \"party\", \"reward\", \"one-shot\"},\n\t\tSize:     [2]int{200, 140},\n\t\tOrigin:   [2]int{100, 126},\n\t\tDuration: confettiDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#ff4a5a\", \"#ff9a2a\", \"#ffe03c\", \"#5ad84a\", \"#3cc8ff\", \"#7a6cff\", \"#f53cd1\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(11)},\n\t\t},\n\t},\n\tNew: newConfetti,\n}",
          "doc": "Confetti fires two party poppers one after the other so paper bits and curly streamers burst out, stall, tumble and flutter down, flipping, and settle on the floor. It is registered as \"ui/confetti\".\n",
          "file": "pkg/pixelfx/ui/confetti.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Countdown",
              "anchor": "Countdown"
            }
          ],
          "decl": "var Countdown = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Countdown\",\n\t\tDesc:     \"3, 2, 1 slam into a timer ring that drains like a burning fuse, throwing sparks; then GO! bursts out as the ring blows into a shockwave with rays.\",\n\t\tTags:     []string{\"ui\", \"countdown\", \"start\", \"timer\", \"text\", \"one-shot\"},\n\t\tSize:     [2]int{152, 136},\n\t\tOrigin:   [2]int{76, 68},\n\t\tDuration: cdDuration,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0a1030\", \"#142a66\", \"#1f4fae\", \"#2f86e6\", \"#5cc4ff\", \"#a8e8ff\", \"#e6fbff\", \"#ffffff\")},\n\t\t\t{Name: \"go\", Default: pixelfx.Palette(\"#0b2410\", \"#16501c\", \"#22882a\", \"#3cc23a\", \"#7ee84c\", \"#c4ff8a\", \"#f0ffd6\", \"#ffffff\")},\n\t\t\t{Name: \"from\", Default: pixelfx.Num(3)},\n\t\t\t{Name: \"word\", Default: pixelfx.Text(\"GO!\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newCountdown,\n}",
          "doc": "Countdown slams 3, 2, 1 into a burning-fuse timer ring that throws sparks, then bursts into GO! with a shockwave and rays. It is registered as \"ui/countdown\".\n",
          "file": "pkg/pixelfx/ui/countdown.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "CritNumber",
              "anchor": "CritNumber"
            }
          ],
          "decl": "var CritNumber = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Crit number\",\n\t\tDesc:     \"CRIT 128! slams in huge and white over a jagged starburst with a hard shake and speed lines, cools to fire, holds with a shine, then pops into sparks.\",\n\t\tTags:     []string{\"ui\", \"critical\", \"damage\", \"number\", \"combat\", \"text\", \"one-shot\"},\n\t\tSize:     [2]int{152, 120},\n\t\tOrigin:   [2]int{76, 60},\n\t\tDuration: critDuration,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a0710\", \"#5e0f16\", \"#a3191c\", \"#e0401c\", \"#ff7b22\", \"#ffb93b\", \"#ffe68a\", \"#ffffff\")},\n\t\t\t{Name: \"text\", Default: pixelfx.Text(\"128!\")},\n\t\t\t{Name: \"label\", Default: pixelfx.Text(\"CRIT\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newCritNumber,\n}",
          "doc": "CritNumber slams \"CRIT 128!\" in huge and white over a jagged starburst with a hard shake and speed lines, cools to fire, holds with a shine, then pops into sparks. It is registered as \"ui/crit-number\".\n",
          "file": "pkg/pixelfx/ui/crit_number.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "DamageNumber",
              "anchor": "DamageNumber"
            }
          ],
          "decl": "var DamageNumber = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Damage number\",\n\t\tDesc:     \"A red -27 punches out of a hit spark, white for a frame, arcs up, lands with a squash and a little hop, then fades as it lifts away.\",\n\t\tTags:     []string{\"ui\", \"damage\", \"number\", \"combat\", \"text\", \"hit\", \"one-shot\"},\n\t\tSize:     [2]int{76, 68},\n\t\tOrigin:   [2]int{30, 52},\n\t\tDuration: dmgDuration,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0508\", \"#4a0b12\", \"#8c1420\", \"#d42a2e\", \"#ff5a4a\", \"#ff9a86\", \"#ffd8cc\", \"#ffffff\")},\n\t\t\t{Name: \"text\", Default: pixelfx.Text(\"-27\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newDamageNumber,\n}",
          "doc": "DamageNumber punches a red \"-27\" out of a hit spark, arcs up, lands with a squash and a hop, then fades as it lifts away. It is registered as \"ui/damage-number\".\n",
          "file": "pkg/pixelfx/ui/damage_number.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Exclamation",
              "anchor": "Exclamation"
            }
          ],
          "decl": "var Exclamation = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Exclamation\",\n\t\tDesc:     \"A bold ! springs up off the hero's head, stretching as it shoots up and squashing as it lands; surprise ticks flick out, it wobbles, then pops away.\",\n\t\tTags:     []string{\"ui\", \"alert\", \"surprise\", \"emote\", \"character\", \"one-shot\"},\n\t\tSize:     [2]int{84, 104},\n\t\tOrigin:   [2]int{42, 92},\n\t\tDuration: exclDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1405\", \"#6a2e06\", \"#b85a0a\", \"#f08c14\", \"#ffc23a\", \"#ffe580\", \"#fff6c8\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.08, Pose: pixelfx.Ready},\n\t\t\t{T: 0, Pose: exclStartled, How: \"snap\"},\n\t\t\t{T: 0.14, Pose: exclStartled.With(pixelfx.Y.Is(0), pixelfx.Crouch.Is(4), pixelfx.FFY.Is(-4), pixelfx.FBY.Is(-4), pixelfx.FY.Is(-26), pixelfx.BY.Is(-26)), How: \"in\"},\n\t\t\t{T: 0.3, Pose: exclHold},\n\t\t\t{T: 1.1, Pose: exclHold},\n\t\t\t{T: 1.4, Pose: pixelfx.Ready},\n\t\t},\n\t\tDust: []pixelfx.DustKick{{T: 0.14, X: 0, N: 4}},\n\t},\n\tNew: newExclamation,\n}",
          "doc": "Exclamation springs a bold \"!\" up off the hero's head, stretching as it shoots up and squashing as it lands, with surprise ticks and a wobble before popping away. It is registered as \"ui/exclamation\".\n",
          "file": "pkg/pixelfx/ui/exclamation.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "HealthBarHit",
              "anchor": "HealthBarHit"
            }
          ],
          "decl": "var HealthBarHit = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Health bar hit\",\n\t\tDesc:     \"A segmented health bar takes a hit: it jolts and dips, the lost chunk flashes white and sheds chips, holds, then drains away behind a sparking edge.\",\n\t\tTags:     []string{\"ui\", \"health\", \"hud\", \"damage\", \"bar\", \"one-shot\"},\n\t\tSize:     [2]int{160, 64},\n\t\tOrigin:   [2]int{80, 30},\n\t\tDuration: hbDuration,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0508\", \"#4a0b12\", \"#8c1420\", \"#d42a2e\", \"#ff5a4a\", \"#ff9a86\", \"#ffd8cc\", \"#ffffff\")},\n\t\t\t{Name: \"from\", Default: pixelfx.Num(0.8)},\n\t\t\t{Name: \"to\", Default: pixelfx.Num(0.45)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newHealthBarHit,\n}",
          "doc": "HealthBarHit shows a segmented health bar taking a hit: it jolts and dips, the lost chunk flashes white and sheds chips, holds, then drains away behind a sparking edge. It is registered as \"ui/health-bar-hit\".\n",
          "file": "pkg/pixelfx/ui/health_bar_hit.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "HeartLost",
              "anchor": "HeartLost"
            }
          ],
          "decl": "var HeartLost = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Heart lost\",\n\t\tDesc:     \"A HUD heart is hit: it flashes white and jolts, a crack runs down it, it splits into two halves that tumble away, leaving an empty socket that fades.\",\n\t\tTags:     []string{\"ui\", \"health\", \"heart\", \"hud\", \"damage\", \"one-shot\"},\n\t\tSize:     [2]int{96, 88},\n\t\tOrigin:   [2]int{48, 34},\n\t\tDuration: hlDuration,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a0508\", \"#4a0b12\", \"#8c1420\", \"#d42a2e\", \"#ff5a4a\", \"#ff9a86\", \"#ffd8cc\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newHeartLost,\n}",
          "doc": "HeartLost shows a HUD heart taking a hit, flashing white, cracking down the middle and splitting into two tumbling halves over a fading empty socket. It is registered as \"ui/heart-lost\".\n",
          "file": "pkg/pixelfx/ui/heart_lost.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "LevelUp",
              "anchor": "LevelUp"
            }
          ],
          "decl": "var LevelUp = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Level up\",\n\t\tDesc:     \"Gold gathers at the feet and bursts up as a pillar of light round the hero; rings climb it, LEVEL UP! drops in letter by letter, a shine sweeps it, sparkles twinkle.\",\n\t\tTags:     []string{\"ui\", \"level\", \"reward\", \"text\", \"light\", \"one-shot\"},\n\t\tSize:     [2]int{176, 138},\n\t\tOrigin:   [2]int{88, 114},\n\t\tDuration: luDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tActor:    2,\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1405\", \"#5c3008\", \"#9a5a0e\", \"#d48e18\", \"#f5b92c\", \"#ffde5e\", \"#fff4bc\", \"#ffffff\")},\n\t\t\t{Name: \"text\", Default: pixelfx.Text(\"LEVEL UP!\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tAct: &pixelfx.Act{\n\t\tOnBody: true,\n\t\tFollow: pixelfx.Val(0),\n\t\tPoses: []pixelfx.Key{\n\t\t\t{T: -0.3, Pose: pixelfx.Ready},\n\t\t\t{T: 0.28, Pose: luCoil},\n\t\t\t{T: 0.3, Pose: luLeap, How: \"snap\"},\n\t\t\t{T: 0.46, Pose: luLeap.With(pixelfx.Y.Is(-19))},\n\t\t\t{T: 0.72, Pose: luLeap.With(pixelfx.Y.Is(0), pixelfx.FFY.Is(-4), pixelfx.FBY.Is(-4)), How: \"in\"},\n\t\t\t{T: 0.74, Pose: luCoil.With(pixelfx.Crouch.Is(5)), How: \"snap\"},\n\t\t\t{T: 0.95, Pose: luPump, How: \"out\"},\n\t\t\t{T: 1.2, Pose: luPump.With(pixelfx.Crouch.Is(1), pixelfx.FY.Is(-43))},\n\t\t\t{T: 1.45, Pose: luPump},\n\t\t\t{T: 2.3, Pose: luPump.With(pixelfx.FY.Is(-41))},\n\t\t\t{T: 2.8, Pose: pixelfx.Ready},\n\t\t\t{T: 3.2, Pose: pixelfx.Ready},\n\t\t},\n\t\tHits: []pixelfx.Hit{{T: 0.28, Stop: 0.05, Shake: 0.14, Amp: pixelfx.Val(2)}},\n\t\tDust: []pixelfx.DustKick{{T: 0.3, X: 0, N: 7}, {T: 0.74, X: 0, N: 6}},\n\t},\n\tNew: newLevelUp,\n}",
          "doc": "LevelUp gathers gold at the hero's feet and bursts up as a pillar of light while rings climb it, LEVEL UP! drops in letter by letter, a shine sweeps it and sparkles twinkle. It is registered as \"ui/level-up\".\n",
          "file": "pkg/pixelfx/ui/level_up.go",
          "line": 33
        },
        {
          "idents": [
            {
              "name": "QuestComplete",
              "anchor": "QuestComplete"
            }
          ],
          "decl": "var QuestComplete = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Quest complete\",\n\t\tDesc:     \"A stitched ribbon unrolls from the middle, QUEST COMPLETE types on letter by letter, a gold seal stamps down and ticks, stars pop; then it all rolls away.\",\n\t\tTags:     []string{\"ui\", \"quest\", \"banner\", \"reward\", \"text\", \"one-shot\"},\n\t\tSize:     [2]int{204, 92},\n\t\tOrigin:   [2]int{102, 46},\n\t\tDuration: qcDuration,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a1405\", \"#5c3008\", \"#9a5a0e\", \"#d48e18\", \"#f5b92c\", \"#ffde5e\", \"#fff4bc\", \"#ffffff\")},\n\t\t\t{Name: \"ribbon\", Default: pixelfx.Palette(\"#1e0608\", \"#45101a\", \"#7a1a26\", \"#ad2632\", \"#d8433f\", \"#f27a5e\", \"#ffb79a\")},\n\t\t\t{Name: \"text\", Default: pixelfx.Text(\"QUEST COMPLETE\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newQuestComplete,\n}",
          "doc": "QuestComplete unrolls a stitched ribbon from the middle, types QUEST COMPLETE on letter by letter, stamps down a gold seal that ticks, pops stars, then rolls away. It is registered as \"ui/quest-complete\".\n",
          "file": "pkg/pixelfx/ui/quest_complete.go",
          "line": 12
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/water",
      "name": "water",
      "dir": "pkg/pixelfx/water",
      "page": "pkg/pixelfx/water",
      "synopsis": "Package water is pixelfx's water category: bubbles, drips, fountains, geysers, rain splashes, ripples, splashes, water jets, water orbs, waterfalls, crashing waves and whirlpools, each a pixelfx.Effect registered as \"water/<name>\" when the package is imported.",
      "doc": "Package water is pixelfx's water category: bubbles, drips, fountains, geysers, rain splashes, ripples, splashes, water jets, water orbs, waterfalls, crashing waves and whirlpools, each a pixelfx.Effect registered as \"water/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Bubbles",
              "anchor": "Bubbles"
            }
          ],
          "decl": "var Bubbles = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Bubbles\",\n\t\tDesc:     \"Bubbles stream up from a vent of pebbles, wobbling and swelling as they rise, flare as they cross shafts of light from the surface, then dome up and pop there.\",\n\t\tTags:     []string{\"water\", \"bubbles\", \"underwater\", \"vent\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{104, 112},\n\t\tOrigin:   [2]int{52, 104},\n\t\tDuration: bubblesDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newBubbles,\n}",
          "doc": "Bubbles streams bubbles up from a vent of pebbles, wobbling and swelling as they rise, flaring as they cross shafts of light from the surface, then doming up and popping there. It is registered as \"water/bubbles\".\n",
          "file": "pkg/pixelfx/water/bubbles.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Drip",
              "anchor": "Drip"
            }
          ],
          "decl": "var Drip = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Drip\",\n\t\tDesc:     \"A bead swells under a wet stone tip and catches the light, pinches off, falls stretched by its speed and plinks into a puddle with a crown, a ring and a tiny rebound.\",\n\t\tTags:     []string{\"water\", \"drip\", \"drop\", \"puddle\", \"cave\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{72, 88},\n\t\tOrigin:   [2]int{36, 78},\n\t\tDuration: dripDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(62)},\n\t\t\t{Name: \"source\", Default: pixelfx.Bool(true)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(1)},\n\t\t},\n\t},\n\tNew: newDrip,\n}",
          "doc": "Drip is a bead swelling under a wet stone tip, pinching off, falling stretched by its speed and plinking into a puddle with a crown, a ring and a tiny rebound. It is registered as \"water/drip\".\n",
          "file": "pkg/pixelfx/water/drip.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Fountain",
              "anchor": "Fountain"
            }
          ],
          "decl": "var Fountain = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Fountain\",\n\t\tDesc:     \"A stone basin; a jet rises from its spout and blooms into glassy arcs that break into beads, fall back and plink into the water with rings.\",\n\t\tTags:     []string{\"water\", \"fountain\", \"jet\", \"basin\", \"prop\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{120, 104},\n\t\tOrigin:   [2]int{60, 96},\n\t\tDuration: fountainDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newFountain,\n}",
          "doc": "Fountain is a stone basin whose jet rises from its spout and blooms into glassy arcs that break into beads, fall back and plink into the water with rings. It is registered as \"water/fountain\".\n",
          "file": "pkg/pixelfx/water/fountain.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Geyser",
              "anchor": "Geyser"
            }
          ],
          "decl": "var Geyser = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Geyser\",\n\t\tDesc:     \"A pool heaves and burbles faster and faster, then blasts a white column of water skyward with a churning foam head; it rains back down in drops and steam, slumps and sputters out.\",\n\t\tTags:     []string{\"water\", \"geyser\", \"eruption\", \"steam\", \"column\", \"nature\", \"one-shot\"},\n\t\tSize:     [2]int{184, 168},\n\t\tOrigin:   [2]int{92, 146},\n\t\tDuration: 5,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(100)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newGeyser,\n}",
          "doc": "Geyser is a pool that heaves and burbles faster and faster, then blasts a white column of water skyward with a churning foam head; it rains back down in drops and steam, slumps and sputters out. It is registered as \"water/geyser\".\n",
          "file": "pkg/pixelfx/water/geyser.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "RainSplash",
              "anchor": "RainSplash"
            }
          ],
          "decl": "var RainSplash = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Rain splash\",\n\t\tDesc:     \"A low close-up on one puddle in the rain: big drops land in crowns that throw beads and a rebound jet, rings spread and interfere, a lamp's reflection wobbles on the water.\",\n\t\tTags:     []string{\"water\", \"rain\", \"splash\", \"puddle\", \"close-up\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{176, 80},\n\t\tOrigin:   [2]int{88, 50},\n\t\tDuration: rainSplashDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newRainSplash,\n}",
          "doc": "RainSplash is a low close-up on one puddle in the rain: big drops land in crowns that throw beads and a rebound jet, rings spread and interfere, a lamp's reflection wobbles on the water. It is registered as \"water/rain-splash\".\n",
          "file": "pkg/pixelfx/water/rain_splash.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Ripples",
              "anchor": "Ripples"
            }
          ],
          "decl": "var Ripples = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Ripples\",\n\t\tDesc:     \"A drop plinks on still dark water and rings spread out across it at a low angle: the swell of each ring catches the light, crests glint, and they fade into the calm.\",\n\t\tTags:     []string{\"water\", \"ripples\", \"rings\", \"surface\", \"pond\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{136, 52},\n\t\tOrigin:   [2]int{68, 30},\n\t\tDuration: ripplesDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newRipplesEffect,\n}",
          "doc": "Ripples drops plinks on still dark water and spreads rings across it at a low angle: the swell of each ring catches the light, crests glint, and they fade into the calm. It is registered as \"water/ripples\".\n",
          "file": "pkg/pixelfx/water/ripples.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "Splash",
              "anchor": "Splash"
            }
          ],
          "decl": "var Splash = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Splash\",\n\t\tDesc:     \"A stone drops into still water: a white hit, a crown that tears into droplets arcing out to plink down with rings, a jet that bounces back, foam and drifting mist.\",\n\t\tTags:     []string{\"water\", \"splash\", \"impact\", \"drop\", \"liquid\", \"one-shot\"},\n\t\tSize:     [2]int{176, 100},\n\t\tOrigin:   [2]int{88, 78},\n\t\tDuration: 2.5,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"stone\", Default: pixelfx.Bool(true)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newSplash,\n}",
          "doc": "Splash drops a stone into still water: a white hit, a crown that tears into droplets arcing out to plink down with rings, a jet that bounces back, foam and drifting mist. It is registered as \"water/splash\".\n",
          "file": "pkg/pixelfx/water/splash.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "WaterJet",
              "anchor": "WaterJet"
            }
          ],
          "decl": "var WaterJet = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Water jet\",\n\t\tDesc:     \"A pressurised stream blasts right: a tight glassy rod with surges running down it that swells, roughens, bends under its weight and breaks into chunks, spray and mist.\",\n\t\tTags:     []string{\"water\", \"jet\", \"stream\", \"hose\", \"spray\", \"directional\", \"loop\"},\n\t\tSize:     [2]int{188, 80},\n\t\tOrigin:   [2]int{14, 32},\n\t\tDuration: waterJetDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"length\", Default: pixelfx.Num(118)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newWaterJet,\n}",
          "doc": "WaterJet blasts a pressurised stream right: a tight glassy rod with surges running down it that swells, roughens, bends under its weight and breaks into chunks, spray and mist. It is registered as \"water/water-jet\".\n",
          "file": "pkg/pixelfx/water/water_jet.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "WaterOrb",
              "anchor": "WaterOrb"
            }
          ],
          "decl": "var WaterOrb = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Water orb\",\n\t\tDesc:     \"A sphere of water floats and wobbles: a current circles inside it, the floor shows upside down through it, it shines, light gathers on the floor under it, and drips fall and plink.\",\n\t\tTags:     []string{\"water\", \"orb\", \"sphere\", \"magic\", \"float\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{100, 108},\n\t\tOrigin:   [2]int{50, 100},\n\t\tDuration: waterOrbDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"radius\", Default: pixelfx.Num(19)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newWaterOrb,\n}",
          "doc": "WaterOrb is a floating, wobbling sphere of water: a current circles inside it, light gathers on the floor under it, and drips fall and plink. It is registered as \"water/water-orb\".\n",
          "file": "pkg/pixelfx/water/water_orb.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Waterfall",
              "anchor": "Waterfall"
            }
          ],
          "decl": "var Waterfall = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Waterfall\",\n\t\tDesc:     \"A river pours from a notch in a rock outcrop: a white curl, a deep sheet that splits into strands, churning foam, spray, drifting mist and rings on a dark pool.\",\n\t\tTags:     []string{\"water\", \"waterfall\", \"cascade\", \"foam\", \"mist\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{144, 136},\n\t\tOrigin:   [2]int{72, 118},\n\t\tDuration: waterfallDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"height\", Default: pixelfx.Num(92)},\n\t\t\t{Name: \"width\", Default: pixelfx.Num(13)},\n\t\t\t{Name: \"ledge\", Default: pixelfx.Bool(true)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newWaterfall,\n}",
          "doc": "Waterfall pours a river from a notch in a rock outcrop: a white curl, a deep sheet that splits into strands, churning foam, spray, drifting mist and rings on a dark pool. It is registered as \"water/waterfall\".\n",
          "file": "pkg/pixelfx/water/waterfall.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "WaveCrash",
              "anchor": "WaveCrash"
            }
          ],
          "decl": "var WaveCrash = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Wave crash\",\n\t\tDesc:     \"A swell rolls in and steepens, its lip throws forward and curls over a dark barrel, then crashes into a burst of white foam and spray that surges on and fades to lace.\",\n\t\tTags:     []string{\"water\", \"wave\", \"crash\", \"surf\", \"foam\", \"spray\", \"one-shot\"},\n\t\tSize:     [2]int{224, 104},\n\t\tOrigin:   [2]int{112, 86},\n\t\tDuration: waveCrashDuration,\n\t\tFPS:      30,\n\t\tBG:       \"ground\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newWaveCrash,\n}",
          "doc": "WaveCrash rolls in a swell that steepens, throws its lip forward over a dark barrel, then crashes into a burst of white foam and spray that surges on and fades to lace. It is registered as \"water/wave-crash\".\n",
          "file": "pkg/pixelfx/water/wave_crash.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Whirlpool",
              "anchor": "Whirlpool"
            }
          ],
          "decl": "var Whirlpool = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Whirlpool\",\n\t\tDesc:     \"Seen from above, dark water winds into a vortex: foam arms spiral in, darkening as they're drawn down into a deep eye with a lit far rim, flecks of foam circling in after them.\",\n\t\tTags:     []string{\"water\", \"whirlpool\", \"vortex\", \"maelstrom\", \"swirl\", \"top-down\", \"loop\"},\n\t\tSize:     [2]int{128, 84},\n\t\tOrigin:   [2]int{64, 42},\n\t\tDuration: whirlpoolDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"dark\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: waterPal},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newWhirlpool,\n}",
          "doc": "Whirlpool winds dark water into a top-down vortex: foam arms spiral in, darkening as they are drawn down into a deep eye with a lit far rim, flecks of foam circling in after them. It is registered as \"water/whirlpool\".\n",
          "file": "pkg/pixelfx/water/whirlpool.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/pixelfx/weather",
      "name": "weather",
      "dir": "pkg/pixelfx/weather",
      "page": "pkg/pixelfx/weather",
      "synopsis": "Package weather is pixelfx's weather category: aurora, blizzard, cherry blossoms, clouds, falling leaves, fireflies, fog, god rays, rain, shooting stars, snow and storm, each a pixelfx.Effect registered as \"weather/<name>\" when the package is imported.",
      "doc": "Package weather is pixelfx's weather category: aurora, blizzard, cherry blossoms, clouds, falling leaves, fireflies, fog, god rays, rain, shooting stars, snow and storm, each a pixelfx.Effect registered as \"weather/<name>\" when the package is imported.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "Aurora",
              "anchor": "Aurora"
            }
          ],
          "decl": "var Aurora = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Aurora\",\n\t\tDesc:     \"Rippling curtains of green-to-violet light over a starfield: folding hems burn bright, rays shimmer up into violet, and the whole sky slowly breathes.\",\n\t\tTags:     []string{\"weather\", \"aurora\", \"northern lights\", \"sky\", \"night\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 180},\n\t\tDuration: auroraDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#081a1e\", \"#0d3a36\", \"#13664e\", \"#1fa06a\", \"#3fd88e\", \"#9af7bf\", \"#e6fff0\")},\n\t\t\t{Name: \"upper\", Default: pixelfx.Palette(\"#120b2a\", \"#26164f\", \"#41208a\", \"#6a34c0\", \"#9c62e8\", \"#d2b4ff\", \"#f6eeff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newAurora,\n}",
          "doc": "Aurora is rippling curtains of green-to-violet light over a starfield: folding hems burn bright, rays shimmer up into violet, and the whole sky slowly breathes. It is registered as \"weather/aurora\".\n",
          "file": "pkg/pixelfx/weather/aurora.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Blizzard",
              "anchor": "Blizzard"
            }
          ],
          "decl": "var Blizzard = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Blizzard\",\n\t\tDesc:     \"Snow driven almost flat by a gale: streaks at three depths race past, gusts throw translucent sheets of snow across the sky and spindrift streams off the drifts.\",\n\t\tTags:     []string{\"weather\", \"blizzard\", \"snow\", \"wind\", \"storm\", \"winter\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 170},\n\t\tDuration: blizzardDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0d111f\", \"#182035\", \"#27324d\", \"#3e4d6e\", \"#64779c\", \"#9cb0d0\", \"#d8e4f6\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(9)},\n\t\t},\n\t},\n\tNew: newBlizzard,\n}",
          "doc": "Blizzard is snow driven almost flat by a gale: streaks at three depths race past, gusts throw translucent sheets of snow across the sky and spindrift streams off the drifts. It is registered as \"weather/blizzard\".\n",
          "file": "pkg/pixelfx/weather/blizzard.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "CherryBlossoms",
              "anchor": "CherryBlossoms"
            }
          ],
          "decl": "var CherryBlossoms = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Cherry blossoms\",\n\t\tDesc:     \"Pink petals flutter down on a spring breeze, tumbling in little spirals and flashing as they catch the light, with a few whole blossoms spinning among them.\",\n\t\tTags:     []string{\"weather\", \"cherry blossom\", \"sakura\", \"petals\", \"spring\", \"wind\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 170},\n\t\tDuration: cherryDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1832\", \"#8e3460\", \"#d26a94\", \"#f2a2c0\", \"#ffd2e2\", \"#fff4f8\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(12)},\n\t\t},\n\t},\n\tNew: newCherryBlossoms,\n}",
          "doc": "CherryBlossoms is pink petals fluttering down on a spring breeze, tumbling in little spirals and flashing as they catch the light, with a few whole blossoms spinning among them. It is registered as \"weather/cherry-blossoms\".\n",
          "file": "pkg/pixelfx/weather/cherry_blossoms.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Clouds",
              "anchor": "Clouds"
            }
          ],
          "decl": "var Clouds = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Clouds\",\n\t\tDesc:     \"Layers of clouds drift past a bright moon at night: silver-lit tops, dark bellies, edges that flare where they cross the moon, forming and thinning as they go.\",\n\t\tTags:     []string{\"weather\", \"clouds\", \"moon\", \"night\", \"sky\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 180},\n\t\tDuration: cloudsDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0c0c18\", \"#16172a\", \"#232540\", \"#363a5a\", \"#545a80\", \"#8088ae\", \"#bcc4e2\", \"#f2f4ff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(7)},\n\t\t},\n\t},\n\tNew: newClouds,\n}",
          "doc": "Clouds is layers of clouds drifting past a bright moon at night: silver-lit tops, dark bellies, edges that flare where they cross the moon, forming and thinning as they go. It is registered as \"weather/clouds\".\n",
          "file": "pkg/pixelfx/weather/clouds.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "FallingLeaves",
              "anchor": "FallingLeaves"
            }
          ],
          "decl": "var FallingLeaves = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Falling leaves\",\n\t\tDesc:     \"Autumn leaves swing down through the air, tilting and flipping to show their pale backs, ride a gust, land flat in the litter and fade.\",\n\t\tTags:     []string{\"weather\", \"leaves\", \"autumn\", \"fall\", \"wind\", \"nature\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 170},\n\t\tDuration: leavesDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#4a1d0c\", \"#8a3a14\", \"#c8621e\", \"#f0982e\", \"#ffcf72\", \"#fff0c4\")},\n\t\t\t{Name: \"reds\", Default: pixelfx.Palette(\"#40101a\", \"#7c1c22\", \"#b8302a\", \"#e85a3c\", \"#ff9a72\", \"#ffd8c4\")},\n\t\t\t{Name: \"golds\", Default: pixelfx.Palette(\"#3e300c\", \"#7a5c14\", \"#b8901e\", \"#e8c23a\", \"#fff09a\", \"#fffbe0\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(8)},\n\t\t},\n\t},\n\tNew: newFallingLeaves,\n}",
          "doc": "FallingLeaves is autumn leaves swinging down through the air, tilting and flipping to show their pale backs, riding a gust, landing flat in the litter and fading. It is registered as \"weather/falling-leaves\".\n",
          "file": "pkg/pixelfx/weather/falling_leaves.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Fireflies",
              "anchor": "Fireflies"
            }
          ],
          "decl": "var Fireflies = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Fireflies\",\n\t\tDesc:     \"Fireflies wander over a meadow at night, each glowing up and fading on its own rhythm, trailing light and lighting the grass tips beneath them.\",\n\t\tTags:     []string{\"weather\", \"fireflies\", \"night\", \"glow\", \"meadow\", \"nature\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 170},\n\t\tDuration: firefliesDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#2a3a10\", \"#5a7a1a\", \"#9ad02a\", \"#d6ff5a\", \"#f4ffb8\", \"#ffffff\")},\n\t\t\t{Name: \"grass\", Default: pixelfx.Palette(\"#070f0b\", \"#0c1a12\", \"#13281a\", \"#1d3a24\", \"#2b5232\", \"#3f6e40\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(2)},\n\t\t},\n\t},\n\tNew: newFireflies,\n}",
          "doc": "Fireflies is fireflies wandering over a meadow at night, each glowing up and fading on its own rhythm, trailing light and lighting the grass tips beneath them. It is registered as \"weather/fireflies\".\n",
          "file": "pkg/pixelfx/weather/fireflies.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Fog",
              "anchor": "Fog"
            }
          ],
          "decl": "var Fog = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Fog\",\n\t\tDesc:     \"Slow banks of moonlit fog at three depths drift past each other, crests catching the light, while thin streaks of mist slide by in front.\",\n\t\tTags:     []string{\"weather\", \"fog\", \"mist\", \"haze\", \"night\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 170},\n\t\tDuration: fogDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#14121e\", \"#24213a\", \"#363250\", \"#4f4a6c\", \"#6d688b\", \"#918cab\", \"#bdb8d4\", \"#ece8f6\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newFog,\n}",
          "doc": "Fog is slow banks of moonlit fog at three depths drifting past each other, crests catching the light, while thin streaks of mist slide by in front. It is registered as \"weather/fog\".\n",
          "file": "pkg/pixelfx/weather/fog.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "GodRays",
              "anchor": "GodRays"
            }
          ],
          "decl": "var GodRays = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"God rays\",\n\t\tDesc:     \"Shafts of light slant down from high on the left, breathing and swaying, pooling on the floor, as drifting dust motes light up whenever they cross a beam.\",\n\t\tTags:     []string{\"weather\", \"god rays\", \"light\", \"sunbeam\", \"dust\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 170},\n\t\tDuration: godRaysDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#1a1208\", \"#3a2810\", \"#7a5a24\", \"#c89a44\", \"#f2d27a\", \"#fff2c4\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(3)},\n\t\t},\n\t},\n\tNew: newGodRays,\n}",
          "doc": "GodRays is shafts of light slanting down from high on the left, breathing and swaying, pooling on the floor, as drifting dust motes light up whenever they cross a beam. It is registered as \"weather/god-rays\".\n",
          "file": "pkg/pixelfx/weather/god_rays.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Rain",
              "anchor": "Rain"
            }
          ],
          "decl": "var Rain = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Rain\",\n\t\tDesc:     \"Slanted rain at four depths: far drops fade into the dark, near ones glint and splash, drops ring the puddles and a low mist drifts over the wet floor.\",\n\t\tTags:     []string{\"weather\", \"rain\", \"storm\", \"water\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 170},\n\t\tDuration: rainDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0e1322\", \"#1a2440\", \"#283a5e\", \"#3a5482\", \"#5674a8\", \"#84a6d6\", \"#c0dcf8\", \"#f2f8ff\")},\n\t\t\t{Name: \"density\", Default: pixelfx.Num(1)},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newRain,\n}",
          "doc": "Rain is slanted rain at four depths: far drops fade into the dark, near ones glint and splash, drops ring the puddles and a low mist drifts over the wet floor. It is registered as \"weather/rain\".\n",
          "file": "pkg/pixelfx/weather/rain.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ShootingStars",
              "anchor": "ShootingStars"
            }
          ],
          "decl": "var ShootingStars = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Shooting stars\",\n\t\tDesc:     \"Meteors burn across a starry sky, white heads trailing gold and rose; the big ones flare and break up, and each leaves a glowing train that twists and fades.\",\n\t\tTags:     []string{\"weather\", \"meteor\", \"shooting star\", \"night\", \"sky\", \"stars\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 180},\n\t\tDuration: shootingStarsDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#3a1e5a\", \"#7a3a8a\", \"#e0607a\", \"#ffa86a\", \"#ffe6a8\", \"#ffffff\")},\n\t\t\t{Name: \"sky\", Default: pixelfx.Palette(\"#141428\", \"#2a2a4a\", \"#4c4c7c\", \"#8e8ec4\", \"#dcdcff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(4)},\n\t\t},\n\t},\n\tNew: newShootingStars,\n}",
          "doc": "ShootingStars is meteors burning across a starry sky, white heads trailing gold and rose; the big ones flare and break up, and each leaves a glowing train that twists and fades. It is registered as \"weather/shooting-stars\".\n",
          "file": "pkg/pixelfx/weather/shooting_stars.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Snow",
              "anchor": "Snow"
            }
          ],
          "decl": "var Snow = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Snow\",\n\t\tDesc:     \"Snow at three depths in a gusty breeze: far specks, drifting flakes, big near crystals that spin and glow; they settle on a sparkling drift and melt away.\",\n\t\tTags:     []string{\"weather\", \"snow\", \"winter\", \"cold\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 170},\n\t\tDuration: snowDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#0c1020\", \"#161d36\", \"#24304f\", \"#3a4a72\", \"#5f74a3\", \"#93abd6\", \"#cfe0fa\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(6)},\n\t\t},\n\t},\n\tNew: newSnow,\n}",
          "doc": "Snow is snow at three depths in a gusty breeze: far specks, drifting flakes, big near crystals that spin and glow; they settle on a sparkling drift and melt away. It is registered as \"weather/snow\".\n",
          "file": "pkg/pixelfx/weather/snow.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "Storm",
              "anchor": "Storm"
            }
          ],
          "decl": "var Storm = &pixelfx.Effect{\n\tMeta: pixelfx.Meta{\n\t\tName:     \"Storm\",\n\t\tDesc:     \"Driving rain at two depths under a churning cloud deck; a forked bolt strikes in a double flash that lights the sky and the rain, then sheet lightning glows in the clouds.\",\n\t\tTags:     []string{\"weather\", \"storm\", \"rain\", \"lightning\", \"thunder\", \"ambient\", \"loop\"},\n\t\tSize:     [2]int{320, 180},\n\t\tOrigin:   [2]int{160, 170},\n\t\tDuration: stormDuration,\n\t\tLoop:     true,\n\t\tFPS:      30,\n\t\tBG:       \"sky\",\n\t\tOptions: []pixelfx.Option{\n\t\t\t{Name: \"palette\", Default: pixelfx.Palette(\"#09080f\", \"#121120\", \"#1b1a30\", \"#262541\", \"#363a5c\", \"#4f5d8c\", \"#7790c6\", \"#c2d6ff\")},\n\t\t\t{Name: \"bolt\", Default: pixelfx.Palette(\"#2a1a6e\", \"#4835c2\", \"#6a6cff\", \"#78b8ff\", \"#c6ebff\", \"#ffffff\")},\n\t\t\t{Name: \"seed\", Default: pixelfx.Num(5)},\n\t\t},\n\t},\n\tNew: newStorm,\n}",
          "doc": "Storm is driving rain at two depths under a churning cloud deck; a forked bolt strikes in a double flash that lights the sky and the rain, then sheet lightning glows in the clouds. It is registered as \"weather/storm\".\n",
          "file": "pkg/pixelfx/weather/storm.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/placeholder",
      "name": "placeholder",
      "dir": "pkg/placeholder",
      "page": "pkg/placeholder",
      "synopsis": "Package placeholder is a small asset pack for prototypes, tutorials and the examples, dedicated to the public domain under CC0 1.0 (License): sprite sheets, a tileset with a Tiled tileset and a sample level, a pixel font, sound effects and a music loop, and three glTF models.",
      "doc": "Package placeholder is a small asset pack for prototypes, tutorials and the examples, dedicated to the public domain under CC0 1.0 (License): sprite sheets, a tileset with a Tiled tileset and a sample level, a pixel font, sound effects and a music loop, and three glTF models.\n\nEvery file was drawn, synthesized or modeled in Go for this repository by the generator under internal/gen, which writes the same bytes on every run, and the package embeds them and FS returns them. Each image and sound has the import settings sidecar game assets reads (package importsettings): a sprite sheet's slices it into 16 by 16 frames, the tileset's and the font page's keep their pixels sharp, and a sound's sets its loudness and, for the music, its loop. CREDITS.md in FS() lists every file with its license, so a game that ships the pack's files can ship its credits too.\n\nSheet, Font, Level, Model and Sound load the pack's assets ready for packages sprite, text, tilemap, gltf and NSGo's audio. A game that copies the files into its own project instead builds them with game assets like any other art.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "License",
              "anchor": "License"
            }
          ],
          "decl": "const License = \"CC0-1.0\"",
          "doc": "License is the SPDX identifier of the license of every file in the pack: Creative Commons Zero v1.0 Universal, a dedication to the public domain.\n",
          "file": "pkg/placeholder/placeholder.go",
          "line": 21
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "FS",
          "anchor": "FS",
          "decl": "func FS() fs.FS",
          "doc": "FS returns the pack's files, read-only, by their slash-separated paths, such as \"sprites/player.png\": the sprite sheets with their JSON and import settings sidecars under sprites/, the tileset, its Tiled tileset and a sample level under tiles/, the bitmap font under fonts/, the sounds under sounds/, the models under models/, and CREDITS.md, which lists every file with its license.\n",
          "file": "pkg/placeholder/placeholder.go",
          "line": 30
        },
        {
          "name": "Font",
          "anchor": "Font",
          "decl": "func Font() (*text.Font, error)",
          "doc": "Font loads the pack's proportional pixel font, fonts/pixel.fnt and its page fonts/pixel.png: printable ASCII, 7 pixels tall above the baseline with descenders below it, lines 10 pixels apart.\n",
          "file": "pkg/placeholder/placeholder.go",
          "line": 61
        },
        {
          "name": "Image",
          "anchor": "Image",
          "decl": "func Image(file string) (core.ImageSource, error)",
          "doc": "Image returns the PNG image at the slash-separated path file in the pack as an image source of its PNG data, sized in points as it is in pixels.\n",
          "file": "pkg/placeholder/placeholder.go",
          "line": 125
        },
        {
          "name": "Level",
          "anchor": "Level",
          "decl": "func Level() (*tilemap.Tilemap, error)",
          "doc": "Level loads the sample level tiles/level.tmj: 40 by 15 tiles of 16 pixels on the tileset tiles/tileset.tsj, with a \"decor\" and a \"ground\" tile layer and an \"objects\" layer of points whose types are spawn, coin, gem, slime and bat, and an exit rectangle. The tileset's tiles carry the properties solid, oneWay, ladder, hazard and water, so the map's tile flags mark solid and one-way tiles, and water, lava and the torch are animated.\n",
          "file": "pkg/placeholder/placeholder.go",
          "line": 79
        },
        {
          "name": "Model",
          "anchor": "Model",
          "decl": "func Model(file string) (*gltf.Document, error)",
          "doc": "Model loads the glTF model models/<file>: \"crate.glb\", a 1 m cube; \"robot_arm.gltf\", a two-bone arm, skinned, with a \"Wave\" animation; or \"gem.glb\", a gem 1 m tall. Each stands on the origin, +Y up and -Z forward.\n",
          "file": "pkg/placeholder/placeholder.go",
          "line": 100
        },
        {
          "name": "Sheet",
          "anchor": "Sheet",
          "decl": "func Sheet(name string) (*sprite.Atlas, error)",
          "doc": "Sheet loads the sprite sheet sprites/<name>.png with its frames and animations from sprites/<name>.json: \"player\", \"slime\", \"bat\", \"coin\", \"items\", \"effects\" or \"ui\". Frame i is named <name>_<i>, and each animation is named after its Aseprite tag, such as \"run\" in the player's sheet or \"heart\" in the items'.\n",
          "file": "pkg/placeholder/placeholder.go",
          "line": 43
        },
        {
          "name": "Sound",
          "anchor": "Sound",
          "decl": "func Sound(name string) (core.AudioSource, error)",
          "doc": "Sound returns the WAV file sounds/<name>.wav as an audio source: the effects \"jump\", \"coin\", \"hit\", \"explosion\", \"shoot\", \"powerup\", \"click\" and \"select\", or \"music_loop\", four bars that loop without a seam.\n",
          "file": "pkg/placeholder/placeholder.go",
          "line": 116
        }
      ],
      "types": []
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/platformer",
      "name": "platformer",
      "dir": "pkg/platformer",
      "page": "pkg/platformer",
      "synopsis": "Package platformer provides a platformer character controller on top of physics.CharacterBody: coyote time, jump buffering, variable jump height, wall slides and wall jumps, each with its own tunable timing.",
      "doc": "Package platformer provides a platformer character controller on top of physics.CharacterBody: coyote time, jump buffering, variable jump height, wall slides and wall jumps, each with its own tunable timing.\n\nA Controller wraps a CharacterBody and is stepped once per fixed game.Loop step with that step's Input. It reads the contacts the body's previous Move reported (Grounded, OnLeftWall, OnRightWall), sets the body's velocity and moves it with CharacterBody.Move (or CharacterBody.MoveWorld via StepWorld to collide against a physics.World's bodies, tiles and static rigid bodies alongside slopes and moving platforms). Coordinates follow package physics: X increases to the right and Y increases downward.\n\nTimings are measured in step time. An event (being on the ground, pressing jump, touching a wall, wall jumping) opens a window that stays open on later steps while less than its duration has passed since the event's step, so the same Config plays alike at any fixed rate and a test can count the steps a window lasts. Each step is allowed 1ns of slack because game.Loop's dt is truncated to whole nanoseconds, so 100ms at 60 Hz is 6 steps, not 7.\n\nConfig holds the tunables and is a versioned YAML document read with ParseConfig and written with EncodeConfig: unknown fields are refused, durations are Go duration strings such as \"100ms\", and encoding is deterministic: EncodeConfig writes a canonical form, every field in a fixed order, and parsing and encoding that form again gives the same bytes.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the controller config schema version this package reads and writes.\n",
          "file": "pkg/platformer/config.go",
          "line": 15
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "EncodeConfig",
          "anchor": "EncodeConfig",
          "decl": "func EncodeConfig(c Config) ([]byte, error)",
          "doc": "EncodeConfig validates c and writes it as 2-space YAML with every field in a fixed order, so ParseConfig reads back the same Config and encoding that again gives the same bytes.\n",
          "file": "pkg/platformer/config.go",
          "line": 157
        }
      ],
      "types": [
        {
          "name": "Config",
          "anchor": "Config",
          "decl": "type Config struct {\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\"`\n\n\t// CoyoteTime is how long after the body was last on the ground a jump still leaves from the ground. Zero allows a ground jump only while grounded.\n\tCoyoteTime time.Duration `yaml:\"coyote_time\"`\n\t// JumpBuffer is how long a jump press waits for the body to be able to jump. Zero honors a press only on the step it happens.\n\tJumpBuffer time.Duration `yaml:\"jump_buffer\"`\n\t// JumpSpeed is the upward speed a ground jump starts with.\n\tJumpSpeed float32 `yaml:\"jump_speed\"`\n\t// JumpCut multiplies the upward speed once when the jump button is let go during a jump, in [0, 1]; 1 turns variable jump height off and 0 stops the rise at once.\n\tJumpCut float32 `yaml:\"jump_cut\"`\n\t// JumpCutMinSpeed is the upward speed a release must exceed to be cut, so a release near the top of a jump changes nothing.\n\tJumpCutMinSpeed float32 `yaml:\"jump_cut_min_speed\"`\n\t// Gravity is the downward acceleration applied every step.\n\tGravity float32 `yaml:\"gravity\"`\n\t// MaxFallSpeed caps the downward speed; zero leaves it uncapped.\n\tMaxFallSpeed float32 `yaml:\"max_fall_speed\"`\n\n\t// RunSpeed is the horizontal speed full input reaches. Zero leaves horizontal velocity to the game, apart from wall jumps.\n\tRunSpeed float32 `yaml:\"run_speed\"`\n\t// GroundAccel is the horizontal acceleration toward the input's speed on the ground; zero reaches it at once.\n\tGroundAccel float32 `yaml:\"ground_accel\"`\n\t// GroundDecel is the horizontal deceleration on the ground without input; zero stops at once.\n\tGroundDecel float32 `yaml:\"ground_decel\"`\n\t// AirAccel is the horizontal acceleration toward the input's speed in the air; zero reaches it at once.\n\tAirAccel float32 `yaml:\"air_accel\"`\n\n\t// WallSlideSpeed caps the downward speed while the body falls against a wall it is pushing into; zero turns wall sliding off.\n\tWallSlideSpeed float32 `yaml:\"wall_slide_speed\"`\n\t// WallCoyoteTime is how long after the body last touched a wall in the air a jump still leaves from that wall.\n\tWallCoyoteTime time.Duration `yaml:\"wall_coyote_time\"`\n\t// WallJumpSpeedX is the horizontal speed a wall jump starts with, away from the wall.\n\tWallJumpSpeedX float32 `yaml:\"wall_jump_speed_x\"`\n\t// WallJumpSpeedY is the upward speed a wall jump starts with; zero turns wall jumps off.\n\tWallJumpSpeedY float32 `yaml:\"wall_jump_speed_y\"`\n\t// WallJumpLock is how long horizontal input is ignored after a wall jump, so holding toward the wall does not cancel the push away from it.\n\tWallJumpLock time.Duration `yaml:\"wall_jump_lock\"`\n}",
          "doc": "Config holds a Controller's tunables. Speeds are in points per second and accelerations in points per second squared, with Y increasing downward as in package physics; every value is non-negative, and the controller applies the sign. Durations are Go duration strings in YAML, such as \"100ms\".\n",
          "file": "pkg/platformer/config.go",
          "line": 18,
          "members": [
            {
              "name": "Version",
              "anchor": "Config.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "CoyoteTime",
              "anchor": "Config.CoyoteTime",
              "kind": "field",
              "doc": "CoyoteTime is how long after the body was last on the ground a jump still leaves from the ground. Zero allows a ground jump only while grounded."
            },
            {
              "name": "JumpBuffer",
              "anchor": "Config.JumpBuffer",
              "kind": "field",
              "doc": "JumpBuffer is how long a jump press waits for the body to be able to jump. Zero honors a press only on the step it happens."
            },
            {
              "name": "JumpSpeed",
              "anchor": "Config.JumpSpeed",
              "kind": "field",
              "doc": "JumpSpeed is the upward speed a ground jump starts with."
            },
            {
              "name": "JumpCut",
              "anchor": "Config.JumpCut",
              "kind": "field",
              "doc": "JumpCut multiplies the upward speed once when the jump button is let go during a jump, in [0, 1]; 1 turns variable jump height off and 0 stops the rise at once."
            },
            {
              "name": "JumpCutMinSpeed",
              "anchor": "Config.JumpCutMinSpeed",
              "kind": "field",
              "doc": "JumpCutMinSpeed is the upward speed a release must exceed to be cut, so a release near the top of a jump changes nothing."
            },
            {
              "name": "Gravity",
              "anchor": "Config.Gravity",
              "kind": "field",
              "doc": "Gravity is the downward acceleration applied every step."
            },
            {
              "name": "MaxFallSpeed",
              "anchor": "Config.MaxFallSpeed",
              "kind": "field",
              "doc": "MaxFallSpeed caps the downward speed; zero leaves it uncapped."
            },
            {
              "name": "RunSpeed",
              "anchor": "Config.RunSpeed",
              "kind": "field",
              "doc": "RunSpeed is the horizontal speed full input reaches. Zero leaves horizontal velocity to the game, apart from wall jumps."
            },
            {
              "name": "GroundAccel",
              "anchor": "Config.GroundAccel",
              "kind": "field",
              "doc": "GroundAccel is the horizontal acceleration toward the input's speed on the ground; zero reaches it at once."
            },
            {
              "name": "GroundDecel",
              "anchor": "Config.GroundDecel",
              "kind": "field",
              "doc": "GroundDecel is the horizontal deceleration on the ground without input; zero stops at once."
            },
            {
              "name": "AirAccel",
              "anchor": "Config.AirAccel",
              "kind": "field",
              "doc": "AirAccel is the horizontal acceleration toward the input's speed in the air; zero reaches it at once."
            },
            {
              "name": "WallSlideSpeed",
              "anchor": "Config.WallSlideSpeed",
              "kind": "field",
              "doc": "WallSlideSpeed caps the downward speed while the body falls against a wall it is pushing into; zero turns wall sliding off."
            },
            {
              "name": "WallCoyoteTime",
              "anchor": "Config.WallCoyoteTime",
              "kind": "field",
              "doc": "WallCoyoteTime is how long after the body last touched a wall in the air a jump still leaves from that wall."
            },
            {
              "name": "WallJumpSpeedX",
              "anchor": "Config.WallJumpSpeedX",
              "kind": "field",
              "doc": "WallJumpSpeedX is the horizontal speed a wall jump starts with, away from the wall."
            },
            {
              "name": "WallJumpSpeedY",
              "anchor": "Config.WallJumpSpeedY",
              "kind": "field",
              "doc": "WallJumpSpeedY is the upward speed a wall jump starts with; zero turns wall jumps off."
            },
            {
              "name": "WallJumpLock",
              "anchor": "Config.WallJumpLock",
              "kind": "field",
              "doc": "WallJumpLock is how long horizontal input is ignored after a wall jump, so holding toward the wall does not cancel the push away from it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultConfig",
              "anchor": "DefaultConfig",
              "decl": "func DefaultConfig() Config",
              "doc": "DefaultConfig returns a Config tuned for a 16-point tile platformer: 100 ms of coyote time and jump buffer, a cut-short jump, wall slides and wall jumps.\n",
              "file": "pkg/platformer/config.go",
              "line": 59
            },
            {
              "name": "ParseConfig",
              "anchor": "ParseConfig",
              "decl": "func ParseConfig(data []byte) (Config, error)",
              "doc": "ParseConfig decodes and validates a YAML controller config. Unknown fields, a missing or unsupported version, and trailing YAML documents are refused.\n",
              "file": "pkg/platformer/config.go",
              "line": 133
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "Config.Validate",
              "recv": "Config",
              "decl": "func (c Config) Validate() error",
              "doc": "Validate reports whether c is a version 1 config with finite, non-negative values and JumpCut in [0, 1].\n",
              "file": "pkg/platformer/config.go",
              "line": 82
            }
          ]
        },
        {
          "name": "Controller",
          "anchor": "Controller",
          "decl": "type Controller struct {\n\t// Body is the character the controller moves.\n\tBody *physics.CharacterBody\n\t// contains filtered or unexported fields\n}",
          "doc": "Controller drives a physics.CharacterBody as a platformer character with coyote time, jump buffering, variable jump height, wall slides and wall jumps. Call Step once per fixed game.Loop step; it reads the contacts the body's previous Move left on its Body, sets the velocity from the input and the Config, and then moves the body.\n\nEvery timing is measured in step time: an event on a step opens a window that stays open on later steps while less than its duration has passed since that step, so at a fixed dt a duration D covers ceil(D/dt) steps counting the event's own step, and a zero duration covers only that step. Each step is allowed 1ns of slack for game.Loop's dt being truncated to whole nanoseconds, so at 60 Hz a 100ms window covers 6 steps.\n\nA rising controller jump is cut only while the body's VY is the one the previous Step left; a VY the game sets in between, such as a spring, ends the jump and is never cut. A body that is rising in the air cannot use coyote time either, so a jump press does not replace such a launch with a ground jump.\n",
          "file": "pkg/platformer/controller.go",
          "line": 89,
          "members": [
            {
              "name": "Body",
              "anchor": "Controller.Body",
              "kind": "field",
              "doc": "Body is the character the controller moves."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewController",
              "anchor": "NewController",
              "decl": "func NewController(body *physics.CharacterBody, cfg Config) (*Controller, error)",
              "doc": "NewController returns a Controller moving body with cfg, or an error from cfg.Validate.\n",
              "file": "pkg/platformer/controller.go",
              "line": 105
            }
          ],
          "methods": [
            {
              "name": "Config",
              "anchor": "Controller.Config",
              "recv": "*Controller",
              "decl": "func (c *Controller) Config() Config",
              "doc": "Config returns the controller's tunables.\n",
              "file": "pkg/platformer/controller.go",
              "line": 113
            },
            {
              "name": "Reset",
              "anchor": "Controller.Reset",
              "recv": "*Controller",
              "decl": "func (c *Controller) Reset()",
              "doc": "Reset forgets every timer and the jump in progress, such as after a respawn; it leaves the body as it is.\n",
              "file": "pkg/platformer/controller.go",
              "line": 125
            },
            {
              "name": "SetConfig",
              "anchor": "Controller.SetConfig",
              "recv": "*Controller",
              "decl": "func (c *Controller) SetConfig(cfg Config) error",
              "doc": "SetConfig replaces the controller's tunables after checking them with Validate; running timers keep their elapsed time and are measured against the new durations from the next step.\n",
              "file": "pkg/platformer/controller.go",
              "line": 116
            },
            {
              "name": "Step",
              "anchor": "Controller.Step",
              "recv": "*Controller",
              "decl": "func (c *Controller) Step(in Input, grid physics.TileGrid, slopes []physics.Slope, platforms []*physics.MovingPlatform, dt time.Duration) StepResult",
              "doc": "Step runs one fixed step of dt: it advances the timers, applies horizontal input, starts a buffered ground or wall jump when one is allowed, cuts a rising jump whose button is up, applies gravity with the wall-slide and fall caps, and moves the body against grid, slopes and platforms with CharacterBody.Move. A nil controller or body, or dt <= 0, does nothing.\n",
              "file": "pkg/platformer/controller.go",
              "line": 133
            },
            {
              "name": "StepWorld",
              "anchor": "Controller.StepWorld",
              "recv": "*Controller",
              "decl": "func (c *Controller) StepWorld(in Input, world *physics.World, slopes []physics.Slope, platforms []*physics.MovingPlatform, dt time.Duration) StepResult",
              "doc": "StepWorld runs one fixed step of dt like Step, moving the body against world (its Bodies, Tiles and static RigidBody colliders in world.RigidWorld) together with slopes and platforms via CharacterBody.MoveWorld.\n",
              "file": "pkg/platformer/controller.go",
              "line": 140
            }
          ]
        },
        {
          "name": "Input",
          "anchor": "Input",
          "decl": "type Input struct {\n\t// Move is the horizontal axis in [-1, 1], negative to the left; values outside are clamped and NaN reads as 0.\n\tMove float32\n\t// JumpPressed reports that the jump button went down during this step.\n\tJumpPressed bool\n\t// JumpHeld reports that the jump button is down at the end of this step.\n\tJumpHeld bool\n}",
          "doc": "Input is one fixed step's player input.\n",
          "file": "pkg/platformer/controller.go",
          "line": 11,
          "members": [
            {
              "name": "Move",
              "anchor": "Input.Move",
              "kind": "field",
              "doc": "Move is the horizontal axis in [-1, 1], negative to the left; values outside are clamped and NaN reads as 0."
            },
            {
              "name": "JumpPressed",
              "anchor": "Input.JumpPressed",
              "kind": "field",
              "doc": "JumpPressed reports that the jump button went down during this step."
            },
            {
              "name": "JumpHeld",
              "anchor": "Input.JumpHeld",
              "kind": "field",
              "doc": "JumpHeld reports that the jump button is down at the end of this step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "JumpKind",
          "anchor": "JumpKind",
          "decl": "type JumpKind uint8",
          "doc": "JumpKind says which jump a step started.\n",
          "file": "pkg/platformer/controller.go",
          "line": 21,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "JumpNone",
                  "anchor": "JumpNone"
                },
                {
                  "name": "JumpGround",
                  "anchor": "JumpGround"
                },
                {
                  "name": "JumpWall",
                  "anchor": "JumpWall"
                }
              ],
              "decl": "const (\n\t// JumpNone means the step started no jump.\n\tJumpNone JumpKind = iota\n\t// JumpGround means the step jumped from the ground, or within CoyoteTime of leaving it.\n\tJumpGround\n\t// JumpWall means the step jumped off a wall, or within WallCoyoteTime of leaving it.\n\tJumpWall\n)",
              "doc": "",
              "file": "pkg/platformer/controller.go",
              "line": 23
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "JumpKind.String",
              "recv": "JumpKind",
              "decl": "func (k JumpKind) String() string",
              "doc": "String returns \"none\", \"ground\" or \"wall\".\n",
              "file": "pkg/platformer/controller.go",
              "line": 33
            }
          ]
        },
        {
          "name": "StepResult",
          "anchor": "StepResult",
          "decl": "type StepResult struct {\n\t// Move is the result of the step's CharacterBody.Move.\n\tMove physics.MoveResult\n\t// Jump is the jump the step started, if any.\n\tJump JumpKind\n\t// JumpCut reports that the step cut a rising jump short because the button was let go.\n\tJumpCut bool\n\t// WallSliding reports that the step capped the fall at WallSlideSpeed.\n\tWallSliding bool\n\t// InputLocked reports that the step ignored horizontal input because a wall jump happened less than WallJumpLock earlier.\n\tInputLocked bool\n\t// WallSide is -1 for a wall on the left, 1 for one on the right and 0 for none: the wall the body touches or can still wall jump from at the start of the step.\n\tWallSide int\n}",
          "doc": "StepResult reports what one Controller.Step did.\n",
          "file": "pkg/platformer/controller.go",
          "line": 45,
          "members": [
            {
              "name": "Move",
              "anchor": "StepResult.Move",
              "kind": "field",
              "doc": "Move is the result of the step's CharacterBody.Move."
            },
            {
              "name": "Jump",
              "anchor": "StepResult.Jump",
              "kind": "field",
              "doc": "Jump is the jump the step started, if any."
            },
            {
              "name": "JumpCut",
              "anchor": "StepResult.JumpCut",
              "kind": "field",
              "doc": "JumpCut reports that the step cut a rising jump short because the button was let go."
            },
            {
              "name": "WallSliding",
              "anchor": "StepResult.WallSliding",
              "kind": "field",
              "doc": "WallSliding reports that the step capped the fall at WallSlideSpeed."
            },
            {
              "name": "InputLocked",
              "anchor": "StepResult.InputLocked",
              "kind": "field",
              "doc": "InputLocked reports that the step ignored horizontal input because a wall jump happened less than WallJumpLock earlier."
            },
            {
              "name": "WallSide",
              "anchor": "StepResult.WallSide",
              "kind": "field",
              "doc": "WallSide is -1 for a wall on the left, 1 for one on the right and 0 for none: the wall the body touches or can still wall jump from at the start of the step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/playtest",
      "name": "playtest",
      "dir": "pkg/playtest",
      "page": "pkg/playtest",
      "synopsis": "Package playtest defines playtest.yaml (bots, seeded headless runs, metrics and goals), a metrics collection API for games, a deterministic headless playtest runner with replay recordings and YAML reports, and built-in bot profiles (platformer-runner, topdown-explorer, shooter, puzzle-solver, and card-ai).",
      "doc": "Package playtest defines playtest.yaml (bots, seeded headless runs, metrics and goals), a metrics collection API for games, a deterministic headless playtest runner with replay recordings and YAML reports, and built-in bot profiles (platformer-runner, topdown-explorer, shooter, puzzle-solver, and card-ai).\n\nA game reports positioned events (such as deaths, tile visits and pickups), counters, timers, series bars, matchup matrices and perf readouts through a *Collector during each seeded run. Run drives the game headless for every configured seed through a replay.Recorder so any run can be watched or replayed as a deterministic regression test, evaluates every configured metric against its goal (from brief.yaml, game.yaml or playtest.yaml), and produces a deterministic YAML Report with heat-map position data, bar series and win-rate matrices.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MeasureEvent",
              "anchor": "MeasureEvent"
            },
            {
              "name": "MeasureCounter",
              "anchor": "MeasureCounter"
            },
            {
              "name": "MeasureTimer",
              "anchor": "MeasureTimer"
            },
            {
              "name": "MeasureOutcome",
              "anchor": "MeasureOutcome"
            },
            {
              "name": "MeasureRatio",
              "anchor": "MeasureRatio"
            },
            {
              "name": "MeasurePerf",
              "anchor": "MeasurePerf"
            }
          ],
          "decl": "const (\n\tMeasureEvent   = \"event\"\n\tMeasureCounter = \"counter\"\n\tMeasureTimer   = \"timer\"\n\tMeasureOutcome = \"outcome\"\n\tMeasureRatio   = \"ratio\"\n\tMeasurePerf    = \"perf\"\n)",
          "doc": "Measure kinds supported by Measure.Kind.\n",
          "file": "pkg/playtest/config.go",
          "line": 36
        },
        {
          "idents": [
            {
              "name": "AggCount",
              "anchor": "AggCount"
            },
            {
              "name": "AggSum",
              "anchor": "AggSum"
            },
            {
              "name": "AggMean",
              "anchor": "AggMean"
            },
            {
              "name": "AggMedian",
              "anchor": "AggMedian"
            },
            {
              "name": "AggMin",
              "anchor": "AggMin"
            },
            {
              "name": "AggMax",
              "anchor": "AggMax"
            },
            {
              "name": "AggP95",
              "anchor": "AggP95"
            },
            {
              "name": "AggP99",
              "anchor": "AggP99"
            },
            {
              "name": "AggRate",
              "anchor": "AggRate"
            }
          ],
          "decl": "const (\n\tAggCount  = \"count\"\n\tAggSum    = \"sum\"\n\tAggMean   = \"mean\"\n\tAggMedian = \"median\"\n\tAggMin    = \"min\"\n\tAggMax    = \"max\"\n\tAggP95    = \"p95\"\n\tAggP99    = \"p99\"\n\tAggRate   = \"rate\"\n)",
          "doc": "Aggregation modes supported by Measure.Aggregate.\n",
          "file": "pkg/playtest/config.go",
          "line": 46
        },
        {
          "idents": [
            {
              "name": "StatusMet",
              "anchor": "StatusMet"
            },
            {
              "name": "StatusMissed",
              "anchor": "StatusMissed"
            },
            {
              "name": "StatusInfo",
              "anchor": "StatusInfo"
            }
          ],
          "decl": "const (\n\tStatusMet    = \"met\"\n\tStatusMissed = \"missed\"\n\tStatusInfo   = \"info\"\n)",
          "doc": "Goal evaluation statuses reported in MetricReport.Status.\n",
          "file": "pkg/playtest/config.go",
          "line": 59
        },
        {
          "idents": [
            {
              "name": "EnvConfig",
              "anchor": "EnvConfig"
            },
            {
              "name": "EnvOut",
              "anchor": "EnvOut"
            },
            {
              "name": "EnvRecordings",
              "anchor": "EnvRecordings"
            },
            {
              "name": "EnvCount",
              "anchor": "EnvCount"
            },
            {
              "name": "EnvSeeds",
              "anchor": "EnvSeeds"
            },
            {
              "name": "EnvNoFail",
              "anchor": "EnvNoFail"
            }
          ],
          "decl": "const (\n\t// EnvConfig overrides the path to playtest.yaml loaded by RunTest.\n\tEnvConfig = \"NSGO_PLAYTEST_CONFIG\"\n\t// EnvOut tells RunTest where to write the YAML playtest report.\n\tEnvOut = \"NSGO_PLAYTEST_OUT\"\n\t// EnvRecordings tells RunTest which directory to write per-run .replay.yaml recordings into.\n\tEnvRecordings = \"NSGO_PLAYTEST_RECORDINGS\"\n\t// EnvCount, when set to a positive integer, overrides runs.count in playtest.yaml.\n\tEnvCount = \"NSGO_PLAYTEST_COUNT\"\n\t// EnvSeeds, when set to a comma-separated list of uint64 seeds, overrides runs.seeds in playtest.yaml.\n\tEnvSeeds = \"NSGO_PLAYTEST_SEEDS\"\n\t// EnvNoFail, when set to \"1\", lets RunTest write its report without failing testing.TB on missed goals, so the caller (such as go tool game playtest) can inspect and report missed goals directly.\n\tEnvNoFail = \"NSGO_PLAYTEST_NO_FAIL\"\n)",
          "doc": "Environment variables passed by `go tool game playtest` and `game_playtest` to a game's playtest tests.\n",
          "file": "pkg/playtest/harness.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "OutcomeRunning",
              "anchor": "OutcomeRunning"
            },
            {
              "name": "OutcomeFinished",
              "anchor": "OutcomeFinished"
            },
            {
              "name": "OutcomeFailed",
              "anchor": "OutcomeFailed"
            },
            {
              "name": "OutcomeTimeout",
              "anchor": "OutcomeTimeout"
            }
          ],
          "decl": "const (\n\tOutcomeRunning  = \"running\"\n\tOutcomeFinished = \"finished\"\n\tOutcomeFailed   = \"failed\"\n\tOutcomeTimeout  = \"timeout\"\n)",
          "doc": "Run outcome values reported by Collector and RunReport.Outcome.\n",
          "file": "pkg/playtest/metrics.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "FlagProblem",
              "anchor": "FlagProblem"
            },
            {
              "name": "FlagWarning",
              "anchor": "FlagWarning"
            }
          ],
          "decl": "const (\n\tFlagProblem = \"problem\"\n\tFlagWarning = \"warning\"\n)",
          "doc": "Series entry flag values reported in SeriesEntry.Flag.\n",
          "file": "pkg/playtest/metrics.go",
          "line": 56
        },
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the playtest.yaml schema version this package reads and writes.\n",
          "file": "pkg/playtest/config.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "FileName",
              "anchor": "FileName"
            }
          ],
          "decl": "const FileName = \"playtest.yaml\"",
          "doc": "FileName is the default playtest configuration file name at a project's root.\n",
          "file": "pkg/playtest/config.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ProfileCardAI",
              "anchor": "ProfileCardAI"
            }
          ],
          "decl": "const ProfileCardAI = \"card-ai\"",
          "doc": "ProfileCardAI is the built-in greedy 1-turn-lookahead card AI bot profile for cards2d templates.\n",
          "file": "pkg/playtest/card_ai.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ProfilePlatformerRunner",
              "anchor": "ProfilePlatformerRunner"
            }
          ],
          "decl": "const ProfilePlatformerRunner = \"platformer-runner\"",
          "doc": "ProfilePlatformerRunner is the built-in greedy side-scrolling platformer bot profile.\n",
          "file": "pkg/playtest/platformer_runner.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ProfilePuzzleSolver",
              "anchor": "ProfilePuzzleSolver"
            }
          ],
          "decl": "const ProfilePuzzleSolver = \"puzzle-solver\"",
          "doc": "ProfilePuzzleSolver is the built-in puzzle solver and human-like player bot profile for puzzle2d templates.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ProfileShooter",
              "anchor": "ProfileShooter"
            }
          ],
          "decl": "const ProfileShooter = \"shooter\"",
          "doc": "ProfileShooter is the built-in shoot-'em-up bot profile for shmup2d templates.\n",
          "file": "pkg/playtest/shooter.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ProfileTopDownExplorer",
              "anchor": "ProfileTopDownExplorer"
            }
          ],
          "decl": "const ProfileTopDownExplorer = \"topdown-explorer\"",
          "doc": "ProfileTopDownExplorer is the built-in top-down exploration bot profile for RPG and adventure templates (rpg2d).\n",
          "file": "pkg/playtest/topdown_explorer.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "ReportFileName",
              "anchor": "ReportFileName"
            }
          ],
          "decl": "const ReportFileName = \"playtest.report.yaml\"",
          "doc": "ReportFileName is the default playtest report file name written by go tool game playtest.\n",
          "file": "pkg/playtest/report.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "ReportVersion",
              "anchor": "ReportVersion"
            }
          ],
          "decl": "const ReportVersion = 1",
          "doc": "ReportVersion is the schema version EncodeReport writes and ParseReport accepts.\n",
          "file": "pkg/playtest/report.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "SchemaComment",
              "anchor": "SchemaComment"
            }
          ],
          "decl": "const SchemaComment = \"# yaml-language-server: $schema=\" + SchemaURL",
          "doc": "SchemaComment is the yaml-language-server header line EncodeConfig writes at the top of playtest.yaml.\n",
          "file": "pkg/playtest/config.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "SchemaURL",
              "anchor": "SchemaURL"
            }
          ],
          "decl": "const SchemaURL = \"https://game.nsgo.dev/schemas/playtest.v1.json\"",
          "doc": "SchemaURL is where the JSON Schema of version 1 playtest files (playtest.yaml) is published.\n",
          "file": "pkg/playtest/config.go",
          "line": 25
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "ApplyBriefTargets",
          "anchor": "ApplyBriefTargets",
          "decl": "func ApplyBriefTargets(cfg *Config, b *project.Brief) int",
          "doc": "ApplyBriefTargets fills or refreshes Goals on cfg.Metrics from b's feel and difficulty targets\nmatching cfg.Scope.Scene. Only metrics with a nil Goal or a Goal whose Source is \"brief.yaml\"\nare updated, leaving explicit playtest.yaml or game.yaml goals untouched. It returns the number\nof metrics updated.\n",
          "file": "pkg/playtest/brief.go",
          "line": 54
        },
        {
          "name": "BotProfiles",
          "anchor": "BotProfiles",
          "decl": "func BotProfiles() []string",
          "doc": "BotProfiles returns the sorted names of all registered bot profiles.\n",
          "file": "pkg/playtest/bot.go",
          "line": 68
        },
        {
          "name": "EncodeConfig",
          "anchor": "EncodeConfig",
          "decl": "func EncodeConfig(c *Config) ([]byte, error)",
          "doc": "EncodeConfig validates c and writes it as canonical, deterministic 2-space YAML prefixed with SchemaComment.\n",
          "file": "pkg/playtest/config.go",
          "line": 524
        },
        {
          "name": "EncodeReport",
          "anchor": "EncodeReport",
          "decl": "func EncodeReport(r *Report) ([]byte, error)",
          "doc": "EncodeReport validates r and writes it as canonical, deterministic 2-space YAML.\n",
          "file": "pkg/playtest/report.go",
          "line": 497
        },
        {
          "name": "Float64",
          "anchor": "Float64",
          "decl": "func Float64(v float64) *float64",
          "doc": "Float64 returns a pointer to v, useful for building Goal bounds in Go code.\n",
          "file": "pkg/playtest/config.go",
          "line": 655
        },
        {
          "name": "LoadBriefTargets",
          "anchor": "LoadBriefTargets",
          "decl": "func LoadBriefTargets(projectDir, scene string) (map[string]*Goal, error)",
          "doc": "LoadBriefTargets reads brief.yaml at the root of projectDir and returns its playtest Goals for scene.\nWhen brief.yaml does not exist, it returns (nil, nil).\n",
          "file": "pkg/playtest/brief.go",
          "line": 79
        },
        {
          "name": "RecordShooterHit",
          "anchor": "RecordShooterHit",
          "decl": "func RecordShooterHit(metrics *Collector, waveLabel string, x, y float64)",
          "doc": "RecordShooterHit records a ship hit at (x, y) during waveLabel on both the \"hit\" event stream and the \"hits_per_wave\" series.\n",
          "file": "pkg/playtest/shooter.go",
          "line": 390
        },
        {
          "name": "RecordShooterPowerUp",
          "anchor": "RecordShooterPowerUp",
          "decl": "func RecordShooterPowerUp(metrics *Collector, collected bool, x, y float64, kind string)",
          "doc": "RecordShooterPowerUp records a spawned or collected power-up so power-ups taken % is tracked accurately.\n",
          "file": "pkg/playtest/shooter.go",
          "line": 403
        },
        {
          "name": "RecordShooterWave",
          "anchor": "RecordShooterWave",
          "decl": "func RecordShooterWave(metrics *Collector, waveLabel string, targetMaxHits *float64)",
          "doc": "RecordShooterWave registers waveLabel (such as \"wave 1\") on the \"hits_per_wave\" series with 0 initial hits so waves with zero hits still appear in the report.\n",
          "file": "pkg/playtest/shooter.go",
          "line": 381
        },
        {
          "name": "RegisterBot",
          "anchor": "RegisterBot",
          "decl": "func RegisterBot(name string, factory BotFactory)",
          "doc": "RegisterBot registers a named bot profile factory so playtest.yaml files can select it by bot.profile.\nIt panics if name is empty or factory is nil.\n",
          "file": "pkg/playtest/bot.go",
          "line": 44
        },
        {
          "name": "SaveConfigFile",
          "anchor": "SaveConfigFile",
          "decl": "func SaveConfigFile(path string, c *Config) error",
          "doc": "SaveConfigFile validates, encodes and writes c to path.\n",
          "file": "pkg/playtest/config.go",
          "line": 560
        },
        {
          "name": "SaveReportFile",
          "anchor": "SaveReportFile",
          "decl": "func SaveReportFile(path string, r *Report) error",
          "doc": "SaveReportFile validates, encodes and writes r to path.\n",
          "file": "pkg/playtest/report.go",
          "line": 530
        },
        {
          "name": "TargetsFromBrief",
          "anchor": "TargetsFromBrief",
          "decl": "func TargetsFromBrief(b *project.Brief, scene string) map[string]*Goal",
          "doc": "TargetsFromBrief returns a map of metric name to *Goal read from b's feel and difficulty targets\nfor scene (empty scene includes every target in b, with later scene-specific entries taking precedence).\n",
          "file": "pkg/playtest/brief.go",
          "line": 35
        },
        {
          "name": "ValidateMetric",
          "anchor": "ValidateMetric",
          "decl": "func ValidateMetric(m Metric) error",
          "doc": "ValidateMetric checks that m is a valid Metric definition, as used by Config.Validate and playtest_define.\n",
          "file": "pkg/playtest/config.go",
          "line": 361
        },
        {
          "name": "ValidateReport",
          "anchor": "ValidateReport",
          "decl": "func ValidateReport(r *Report) error",
          "doc": "ValidateReport checks that r uses ReportVersion and has consistent, finite fields.\n",
          "file": "pkg/playtest/report.go",
          "line": 234
        }
      ],
      "types": [
        {
          "name": "Bot",
          "anchor": "Bot",
          "decl": "type Bot interface {\n\t// Decide returns the inputs to hold for the given zero-based simulation step.\n\tDecide(step int, dt time.Duration, obs any, rng *random.Stream) InputState\n}",
          "doc": "Bot decides one fixed step of player inputs from the game's observation and a deterministic random stream.\n",
          "file": "pkg/playtest/bot.go",
          "line": 24,
          "members": [
            {
              "name": "Decide",
              "anchor": "Bot.Decide",
              "kind": "method",
              "doc": "Decide returns the inputs to hold for the given zero-based simulation step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBot",
              "anchor": "NewBot",
              "decl": "func NewBot(cfg BotConfig) (Bot, error)",
              "doc": "NewBot instantiates the Bot named by cfg.Profile from the registered bot profiles.\n",
              "file": "pkg/playtest/bot.go",
              "line": 57
            },
            {
              "name": "NewCardAI",
              "anchor": "NewCardAI",
              "decl": "func NewCardAI(cfg BotConfig) (Bot, error)",
              "doc": "NewCardAI constructs a CardAI from a playtest BotConfig.\n\nSupported optional Bot.Params:\n  - \"matchesPerPair\" (number, default 20): matches played per unordered deck pair, alternating first player.\n  - \"maxTurns\" (number, default 60): maximum turns per match before declaring a draw.\n  - \"maxActionsPerTurn\" (number, default 4): greedy lookahead action horizon within a single player's turn.\n  - \"msPerNode\" (number, default 0.02): deterministic millisecond cost per evaluated state node for think-time reporting.\n  - \"flagWinRateAbove\" (number, default 60): win-rate percentage threshold flagged in the deck-pair matrix.\n",
              "file": "pkg/playtest/card_ai.go",
              "line": 101
            },
            {
              "name": "NewPlatformerRunner",
              "anchor": "NewPlatformerRunner",
              "decl": "func NewPlatformerRunner(cfg BotConfig) (Bot, error)",
              "doc": "NewPlatformerRunner constructs a PlatformerRunner from a playtest Bot configuration.\n\nSupported optional Bot.Params:\n  - \"leftAction\" (string, default \"left\")\n  - \"rightAction\" (string, default \"right\")\n  - \"jumpAction\" (string, default \"jump\")\n  - \"moveAxis\" (string, default \"move_x\")\n  - \"jumpHoldMs\" (number, default 220): base jump hold duration in milliseconds.\n  - \"jumpHoldJitterMs\" (number, default 40): +/- jitter applied to jump hold duration.\n",
              "file": "pkg/playtest/platformer_runner.go",
              "line": 76
            },
            {
              "name": "NewPuzzleSolver",
              "anchor": "NewPuzzleSolver",
              "decl": "func NewPuzzleSolver(cfg BotConfig) (Bot, error)",
              "doc": "NewPuzzleSolver constructs a PuzzleSolver from a playtest BotConfig.\n\nSupported optional Bot.Params:\n  - \"stateLimit\" (number, default 2000000): maximum distinct states BFS may explore per level.\n  - \"undoAfterBadMoves\" (number, default 3): consecutive bad moves before the human-like player undoes.\n  - \"mode\" (string, default \"human\"): \"human\" (human-like player with undo) or \"solver\" (BFS shortest solution).\n  - \"mistakeRate\" (number in [0, 1], default 0.35): seeded exploration rate for non-optimal moves in human mode.\n  - \"maxHumanMoves\" (number, default 200): step cap per level in pack evaluations.\n  - \"upAction\" (string, default \"up\")\n  - \"downAction\" (string, default \"down\")\n  - \"leftAction\" (string, default \"left\")\n  - \"rightAction\" (string, default \"right\")\n  - \"undoAction\" (string, default \"undo\")\n",
              "file": "pkg/playtest/puzzle_solver.go",
              "line": 238
            },
            {
              "name": "NewShooterBot",
              "anchor": "NewShooterBot",
              "decl": "func NewShooterBot(cfg BotConfig) (Bot, error)",
              "doc": "NewShooterBot constructs a ShooterBot from a playtest BotConfig.\n\nIf both ReactionMin and ReactionMax are 0, ShooterBot defaults to a fixed 180ms reaction time.\n\nSupported optional Bot.Params:\n  - \"powerUpRange\" (number, default 80): distance in points within which the bot steers toward a power-up.\n  - \"dangerRange\" (number, default 36): clearance distance in points for dodging incoming bullets.\n  - \"lookaheadMs\" (number, default 400): straight-line bullet prediction horizon in milliseconds.\n  - \"useBomb\" (bool, default false): whether to trigger a bomb on an unavoidable hit.\n  - \"fireAction\" (string, default \"fire\")\n  - \"focusAction\" (string, default \"focus\")\n  - \"bombAction\" (string, default \"bomb\")\n  - \"moveXAxis\" (string, default \"moveX\")\n  - \"moveYAxis\" (string, default \"moveY\")\n",
              "file": "pkg/playtest/shooter.go",
              "line": 107
            },
            {
              "name": "NewTopDownExplorer",
              "anchor": "NewTopDownExplorer",
              "decl": "func NewTopDownExplorer(cfg BotConfig) (Bot, error)",
              "doc": "NewTopDownExplorer constructs a TopDownExplorer from a playtest BotConfig.\n\nSupported optional Bot.Params:\n  - \"visionRadius\" (number, default 3): tile radius marked seen around the player.\n  - \"talkToNPCs\" (bool, default true): whether to seek and talk to each NPC once.\n  - \"openChests\" (bool, default true): whether to seek and open each chest once.\n  - \"upAction\" (string, default \"up\")\n  - \"downAction\" (string, default \"down\")\n  - \"leftAction\" (string, default \"left\")\n  - \"rightAction\" (string, default \"right\")\n  - \"confirmAction\" (string, default \"confirm\")\n  - \"moveXAxis\" (string, default \"moveX\")\n  - \"moveYAxis\" (string, default \"moveY\")\n",
              "file": "pkg/playtest/topdown_explorer.go",
              "line": 135
            }
          ],
          "methods": []
        },
        {
          "name": "BotActionSource",
          "anchor": "BotActionSource",
          "decl": "type BotActionSource struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "BotActionSource adapts a Bot and an observation callback into a replay.ActionSource.\nWrapping a BotActionSource in replay.NewRecorder lets the game step through replay.ActionSource unchanged while every bot decision is recorded into a deterministic replay.Recording.\n",
          "file": "pkg/playtest/bot.go",
          "line": 78,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBotActionSource",
              "anchor": "NewBotActionSource",
              "decl": "func NewBotActionSource(bot Bot, observe func() any, rng *random.Stream, dt time.Duration) *BotActionSource",
              "doc": "NewBotActionSource returns an ActionSource driven by bot with deterministic stream rng and fixed step duration dt.\n",
              "file": "pkg/playtest/bot.go",
              "line": 91
            }
          ],
          "methods": [
            {
              "name": "Axis",
              "anchor": "BotActionSource.Axis",
              "recv": "*BotActionSource",
              "decl": "func (b *BotActionSource) Axis(name string) float64",
              "doc": "Axis returns the value of axis name on the current step, falling back to 1 when action name is pressed, matching input.Actions and replay.Player.\n",
              "file": "pkg/playtest/bot.go",
              "line": 153
            },
            {
              "name": "JustPressed",
              "anchor": "BotActionSource.JustPressed",
              "recv": "*BotActionSource",
              "decl": "func (b *BotActionSource) JustPressed(name string) bool",
              "doc": "JustPressed reports whether action name transitioned from released to pressed on the current step.\n",
              "file": "pkg/playtest/bot.go",
              "line": 143
            },
            {
              "name": "JustReleased",
              "anchor": "BotActionSource.JustReleased",
              "recv": "*BotActionSource",
              "decl": "func (b *BotActionSource) JustReleased(name string) bool",
              "doc": "JustReleased reports whether action name transitioned from pressed to released on the current step.\n",
              "file": "pkg/playtest/bot.go",
              "line": 148
            },
            {
              "name": "Pressed",
              "anchor": "BotActionSource.Pressed",
              "recv": "*BotActionSource",
              "decl": "func (b *BotActionSource) Pressed(name string) bool",
              "doc": "Pressed reports whether action name is pressed on the current step.\n",
              "file": "pkg/playtest/bot.go",
              "line": 138
            },
            {
              "name": "Step",
              "anchor": "BotActionSource.Step",
              "recv": "*BotActionSource",
              "decl": "func (b *BotActionSource) Step()",
              "doc": "Step queries the bot for the current step's InputState and updates the action and axis snapshots.\n",
              "file": "pkg/playtest/bot.go",
              "line": 107
            },
            {
              "name": "StepIndex",
              "anchor": "BotActionSource.StepIndex",
              "recv": "*BotActionSource",
              "decl": "func (b *BotActionSource) StepIndex() int",
              "doc": "StepIndex returns how many steps have been evaluated.\n",
              "file": "pkg/playtest/bot.go",
              "line": 164
            }
          ]
        },
        {
          "name": "BotChannels",
          "anchor": "BotChannels",
          "decl": "type BotChannels interface {\n\tChannels() (actions, axes []string)\n}",
          "doc": "BotChannels is optionally implemented by a Bot to declare the default action and axis names recorded into each run's replay.Recording.\n",
          "file": "pkg/playtest/bot.go",
          "line": 30,
          "members": [
            {
              "name": "Channels",
              "anchor": "BotChannels.Channels",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BotConfig",
          "anchor": "BotConfig",
          "decl": "type BotConfig struct {\n\t// Profile names the bot profile, such as \"platformer-runner\", \"topdown-explorer\", \"shooter\", \"puzzle-solver\" or \"card-ai\".\n\tProfile string `yaml:\"profile\" schema:\"required,minLength=1\"`\n\t// Strategy is an optional one-line summary of the bot's behavior for reports.\n\tStrategy string `yaml:\"strategy,omitempty\"`\n\t// ReactionMin is the minimum human reaction jitter duration, such as \"120ms\".\n\tReactionMin time.Duration `yaml:\"reactionMin,omitempty\"`\n\t// ReactionMax is the maximum human reaction jitter duration, such as \"220ms\".\n\tReactionMax time.Duration `yaml:\"reactionMax,omitempty\"`\n\t// Params holds optional profile-specific scalar parameters (booleans, finite numbers or strings).\n\tParams map[string]any `yaml:\"params,omitempty\"`\n}",
          "doc": "BotConfig configures the bot profile and parameters driving input during playtest runs.\n",
          "file": "pkg/playtest/config.go",
          "line": 112,
          "members": [
            {
              "name": "Profile",
              "anchor": "BotConfig.Profile",
              "kind": "field",
              "doc": "Profile names the bot profile, such as \"platformer-runner\", \"topdown-explorer\", \"shooter\", \"puzzle-solver\" or \"card-ai\"."
            },
            {
              "name": "Strategy",
              "anchor": "BotConfig.Strategy",
              "kind": "field",
              "doc": "Strategy is an optional one-line summary of the bot's behavior for reports."
            },
            {
              "name": "ReactionMin",
              "anchor": "BotConfig.ReactionMin",
              "kind": "field",
              "doc": "ReactionMin is the minimum human reaction jitter duration, such as \"120ms\"."
            },
            {
              "name": "ReactionMax",
              "anchor": "BotConfig.ReactionMax",
              "kind": "field",
              "doc": "ReactionMax is the maximum human reaction jitter duration, such as \"220ms\"."
            },
            {
              "name": "Params",
              "anchor": "BotConfig.Params",
              "kind": "field",
              "doc": "Params holds optional profile-specific scalar parameters (booleans, finite numbers or strings)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BotFactory",
          "anchor": "BotFactory",
          "decl": "type BotFactory func(cfg BotConfig) (Bot, error)",
          "doc": "BotFactory creates a fresh Bot instance for one seeded run from the playtest BotConfig.\n",
          "file": "pkg/playtest/bot.go",
          "line": 35,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CardAI",
          "anchor": "CardAI",
          "decl": "type CardAI struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CardAI is the built-in \"card-ai\" bot: a greedy player that looks one turn ahead (our turn plus the opponent's best greedy reply) with deterministic tie-breaking and deterministic think-time accounting.\n",
          "file": "pkg/playtest/card_ai.go",
          "line": 83,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Channels",
              "anchor": "CardAI.Channels",
              "recv": "*CardAI",
              "decl": "func (b *CardAI) Channels() (actions, axes []string)",
              "doc": "Channels declares the default action and axis names that card-ai drives.\n",
              "file": "pkg/playtest/card_ai.go",
              "line": 150
            },
            {
              "name": "ChooseAction",
              "anchor": "CardAI.ChooseAction",
              "recv": "*CardAI",
              "decl": "func (b *CardAI) ChooseAction(state CardGameState, rng *random.Stream) CardDecision",
              "doc": "ChooseAction picks the highest-scoring legal action for state.ActivePlayer() using greedy 1-turn lookahead (completing our turn greedily, then simulating the opponent's best greedy reply turn).\n",
              "file": "pkg/playtest/card_ai.go",
              "line": 160
            },
            {
              "name": "Decide",
              "anchor": "CardAI.Decide",
              "recv": "*CardAI",
              "decl": "func (b *CardAI) Decide(_ int, _ time.Duration, rawObs any, rng *random.Stream) InputState",
              "doc": "Decide evaluates a CardObservation and encodes the chosen action index into InputState for replay recording.\n",
              "file": "pkg/playtest/card_ai.go",
              "line": 310
            },
            {
              "name": "LastDecision",
              "anchor": "CardAI.LastDecision",
              "recv": "*CardAI",
              "decl": "func (b *CardAI) LastDecision() CardDecision",
              "doc": "LastDecision returns the most recent CardDecision produced by ChooseAction or Decide.\n",
              "file": "pkg/playtest/card_ai.go",
              "line": 155
            }
          ]
        },
        {
          "name": "CardAction",
          "anchor": "CardAction",
          "decl": "type CardAction struct {\n\t// ID uniquely names this action within the current state (such as \"play:kindle\" or \"end_turn\").\n\tID string\n\t// Action is the optional replay input action name (such as \"play\", \"discard\", \"draw\" or \"end_turn\").\n\tAction string\n\t// Index is an optional hand or target slot index.\n\tIndex int\n}",
          "doc": "CardAction identifies one legal action a CardGameState can perform.\n",
          "file": "pkg/playtest/card_ai.go",
          "line": 34,
          "members": [
            {
              "name": "ID",
              "anchor": "CardAction.ID",
              "kind": "field",
              "doc": "ID uniquely names this action within the current state (such as \"play:kindle\" or \"end_turn\")."
            },
            {
              "name": "Action",
              "anchor": "CardAction.Action",
              "kind": "field",
              "doc": "Action is the optional replay input action name (such as \"play\", \"discard\", \"draw\" or \"end_turn\")."
            },
            {
              "name": "Index",
              "anchor": "CardAction.Index",
              "kind": "field",
              "doc": "Index is an optional hand or target slot index."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CardDecision",
          "anchor": "CardDecision",
          "decl": "type CardDecision struct {\n\t// Action is the chosen CardAction.\n\tAction CardAction\n\t// ActionIndex is the 0-based index of Action in State.LegalActions().\n\tActionIndex int\n\t// Score is the 1-turn-lookahead evaluation score for the active player.\n\tScore float64\n\t// NodesEvaluated is the deterministic count of state transitions evaluated during this decision.\n\tNodesEvaluated int\n\t// ThinkMs is the deterministic think-time estimate in milliseconds (NodesEvaluated * msPerNode).\n\tThinkMs float64\n}",
          "doc": "CardDecision is the result of one greedy 1-turn-lookahead evaluation by CardAI.\n",
          "file": "pkg/playtest/card_ai.go",
          "line": 66,
          "members": [
            {
              "name": "Action",
              "anchor": "CardDecision.Action",
              "kind": "field",
              "doc": "Action is the chosen CardAction."
            },
            {
              "name": "ActionIndex",
              "anchor": "CardDecision.ActionIndex",
              "kind": "field",
              "doc": "ActionIndex is the 0-based index of Action in State.LegalActions()."
            },
            {
              "name": "Score",
              "anchor": "CardDecision.Score",
              "kind": "field",
              "doc": "Score is the 1-turn-lookahead evaluation score for the active player."
            },
            {
              "name": "NodesEvaluated",
              "anchor": "CardDecision.NodesEvaluated",
              "kind": "field",
              "doc": "NodesEvaluated is the deterministic count of state transitions evaluated during this decision."
            },
            {
              "name": "ThinkMs",
              "anchor": "CardDecision.ThinkMs",
              "kind": "field",
              "doc": "ThinkMs is the deterministic think-time estimate in milliseconds (NodesEvaluated * msPerNode)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CardGameState",
          "anchor": "CardGameState",
          "decl": "type CardGameState interface {\n\t// ActivePlayer returns the seat index (0 or 1) whose decision is next.\n\tActivePlayer() int\n\t// Winner returns the winning seat index (0 or 1) and true when the match is over, (-1, true) for a draw, or (-1, false) while still playing.\n\tWinner() (player int, done bool)\n\t// Turn returns the current 1-based turn count.\n\tTurn() int\n\t// LegalActions returns the legal actions available to ActivePlayer in deterministic order.\n\tLegalActions() []CardAction\n\t// Apply returns the next immutable or cloned state resulting from taking action.\n\tApply(action CardAction) CardGameState\n\t// Evaluate scores the state from player's perspective (higher is better for player).\n\tEvaluate(player int) float64\n}",
          "doc": "CardGameState is a deterministic card game state evaluated by the greedy 1-turn-lookahead CardAI.\n",
          "file": "pkg/playtest/card_ai.go",
          "line": 44,
          "members": [
            {
              "name": "ActivePlayer",
              "anchor": "CardGameState.ActivePlayer",
              "kind": "method",
              "doc": "ActivePlayer returns the seat index (0 or 1) whose decision is next."
            },
            {
              "name": "Winner",
              "anchor": "CardGameState.Winner",
              "kind": "method",
              "doc": "Winner returns the winning seat index (0 or 1) and true when the match is over, (-1, true) for a draw, or (-1, false) while still playing."
            },
            {
              "name": "Turn",
              "anchor": "CardGameState.Turn",
              "kind": "method",
              "doc": "Turn returns the current 1-based turn count."
            },
            {
              "name": "LegalActions",
              "anchor": "CardGameState.LegalActions",
              "kind": "method",
              "doc": "LegalActions returns the legal actions available to ActivePlayer in deterministic order."
            },
            {
              "name": "Apply",
              "anchor": "CardGameState.Apply",
              "kind": "method",
              "doc": "Apply returns the next immutable or cloned state resulting from taking action."
            },
            {
              "name": "Evaluate",
              "anchor": "CardGameState.Evaluate",
              "kind": "method",
              "doc": "Evaluate scores the state from player's perspective (higher is better for player)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CardMatchFactory",
          "anchor": "CardMatchFactory",
          "decl": "type CardMatchFactory func(deckA, deckB string, firstPlayer int, seed uint64) (CardGameState, error)",
          "doc": "CardMatchFactory constructs a fresh deterministic match between deckA (seat 0) and deckB (seat 1), where firstPlayer (0 or 1) takes the first turn, seeded by seed.\n",
          "file": "pkg/playtest/card_ai.go",
          "line": 80,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CardMatchResult",
          "anchor": "CardMatchResult",
          "decl": "type CardMatchResult struct {\n\tDeckA         string\n\tDeckB         string\n\tFirstPlayer   int\n\tWinner        int\n\tTurns         int\n\tDecisions     int\n\tMedianThinkMs float64\n\tP99ThinkMs    float64\n}",
          "doc": "CardMatchResult holds the outcome of one AI-vs-AI card match.\n",
          "file": "pkg/playtest/card_ai.go",
          "line": 344,
          "members": [
            {
              "name": "DeckA",
              "anchor": "CardMatchResult.DeckA",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DeckB",
              "anchor": "CardMatchResult.DeckB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FirstPlayer",
              "anchor": "CardMatchResult.FirstPlayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Winner",
              "anchor": "CardMatchResult.Winner",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Turns",
              "anchor": "CardMatchResult.Turns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Decisions",
              "anchor": "CardMatchResult.Decisions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MedianThinkMs",
              "anchor": "CardMatchResult.MedianThinkMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "P99ThinkMs",
              "anchor": "CardMatchResult.P99ThinkMs",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CardObservation",
          "anchor": "CardObservation",
          "decl": "type CardObservation struct {\n\t// State is the current card game state awaiting ActivePlayer's decision.\n\tState CardGameState\n}",
          "doc": "CardObservation is the per-step observation supplied to CardAI during playtest.Run.\n",
          "file": "pkg/playtest/card_ai.go",
          "line": 60,
          "members": [
            {
              "name": "State",
              "anchor": "CardObservation.State",
              "kind": "field",
              "doc": "State is the current card game state awaiting ActivePlayer's decision."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CardTournamentReport",
          "anchor": "CardTournamentReport",
          "decl": "type CardTournamentReport struct {\n\tDecks              []string\n\tMatchesPlayed      int\n\tFirstPlayerWins    int\n\tFirstPlayerWinRate float64\n\tMedianMatchTurns   float64\n\tMinMatchTurns      int\n\tMaxMatchTurns      int\n\tMostLopsidedRate   float64\n\tMostLopsidedWinner string\n\tMostLopsidedLoser  string\n\tMedianThinkMs      float64\n\tP99ThinkMs         float64\n\tWinRateMatrix      MatrixChart\n\tMatches            []CardMatchResult\n}",
          "doc": "CardTournamentReport summarizes a complete round-robin deck-pair tournament between two greedy 1-turn-lookahead CardAIs.\n",
          "file": "pkg/playtest/card_ai.go",
          "line": 356,
          "members": [
            {
              "name": "Decks",
              "anchor": "CardTournamentReport.Decks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MatchesPlayed",
              "anchor": "CardTournamentReport.MatchesPlayed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FirstPlayerWins",
              "anchor": "CardTournamentReport.FirstPlayerWins",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FirstPlayerWinRate",
              "anchor": "CardTournamentReport.FirstPlayerWinRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MedianMatchTurns",
              "anchor": "CardTournamentReport.MedianMatchTurns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinMatchTurns",
              "anchor": "CardTournamentReport.MinMatchTurns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxMatchTurns",
              "anchor": "CardTournamentReport.MaxMatchTurns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MostLopsidedRate",
              "anchor": "CardTournamentReport.MostLopsidedRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MostLopsidedWinner",
              "anchor": "CardTournamentReport.MostLopsidedWinner",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MostLopsidedLoser",
              "anchor": "CardTournamentReport.MostLopsidedLoser",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MedianThinkMs",
              "anchor": "CardTournamentReport.MedianThinkMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "P99ThinkMs",
              "anchor": "CardTournamentReport.P99ThinkMs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WinRateMatrix",
              "anchor": "CardTournamentReport.WinRateMatrix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Matches",
              "anchor": "CardTournamentReport.Matches",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "RunCardTournament",
              "anchor": "RunCardTournament",
              "decl": "func RunCardTournament(decks []string, factory CardMatchFactory, cfg BotConfig, seed uint64) (*CardTournamentReport, error)",
              "doc": "RunCardTournament runs every unordered pair of decks matchesPerPair times (from cfg.Params[\"matchesPerPair\"]), alternating who goes first, using two greedy 1-turn-lookahead CardAI players seeded deterministically from seed.\n",
              "file": "pkg/playtest/card_ai.go",
              "line": 391
            }
          ],
          "methods": []
        },
        {
          "name": "Collector",
          "anchor": "Collector",
          "decl": "type Collector struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Collector is the small Go API a game calls during a playtest run to report positioned events, counters, timers, series, matchup matrices, outcome and perf readouts.\n\nEvery method on Collector is safe to call on a nil receiver, so game code can call it unconditionally in both playtest runs and live play without guarding every call site.\n",
          "file": "pkg/playtest/metrics.go",
          "line": 94,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCollector",
              "anchor": "NewCollector",
              "decl": "func NewCollector(rate int) *Collector",
              "doc": "NewCollector returns a fresh Collector for a run stepping at rate steps per second (60 when rate <= 0).\n",
              "file": "pkg/playtest/metrics.go",
              "line": 111
            }
          ],
          "methods": [
            {
              "name": "AddSeries",
              "anchor": "Collector.AddSeries",
              "recv": "*Collector",
              "decl": "func (c *Collector) AddSeries(name, bucket string, delta float64)",
              "doc": "AddSeries adds delta to bucket in the named series for this run, creating the bucket in deterministic insertion order if needed.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 360
            },
            {
              "name": "ConfigureMatrix",
              "anchor": "Collector.ConfigureMatrix",
              "recv": "*Collector",
              "decl": "func (c *Collector) ConfigureMatrix(name, label, unit string, flagAbove *float64, labels []string)",
              "doc": "ConfigureMatrix sets display metadata, flagging threshold and ordered row/column labels for a named win-rate matrix.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 418
            },
            {
              "name": "ConfigureSeries",
              "anchor": "Collector.ConfigureSeries",
              "recv": "*Collector",
              "decl": "func (c *Collector) ConfigureSeries(name, label, unit, aggregate string, targetMax *float64)",
              "doc": "ConfigureSeries sets display metadata and aggregation rules for a named bar/level series (such as \"hits_per_wave\" or \"shortest_solution\").\n",
              "file": "pkg/playtest/metrics.go",
              "line": 339
            },
            {
              "name": "Count",
              "anchor": "Collector.Count",
              "recv": "*Collector",
              "decl": "func (c *Collector) Count(name string, delta float64)",
              "doc": "Count adds delta to the named counter. Non-finite deltas are ignored.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 173
            },
            {
              "name": "Counter",
              "anchor": "Collector.Counter",
              "recv": "*Collector",
              "decl": "func (c *Collector) Counter(name string) float64",
              "doc": "Counter returns the current value of the named counter, or 0 if unset.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 200
            },
            {
              "name": "Done",
              "anchor": "Collector.Done",
              "recv": "*Collector",
              "decl": "func (c *Collector) Done() bool",
              "doc": "Done reports whether the run has ended via Finish, Fail or timeout.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 282
            },
            {
              "name": "Elapsed",
              "anchor": "Collector.Elapsed",
              "recv": "*Collector",
              "decl": "func (c *Collector) Elapsed() time.Duration",
              "doc": "Elapsed returns the deterministic simulated time corresponding to the current step.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 146
            },
            {
              "name": "Event",
              "anchor": "Collector.Event",
              "recv": "*Collector",
              "decl": "func (c *Collector) Event(kind string, x, y float64, tag ...string)",
              "doc": "Event records a positioned event (such as \"death\" or \"pickup\") at world coordinates (x, y) on the current simulation step, with an optional tag.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 154
            },
            {
              "name": "Events",
              "anchor": "Collector.Events",
              "recv": "*Collector",
              "decl": "func (c *Collector) Events() []Event",
              "doc": "Events returns a copy of all positioned events recorded so far.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 306
            },
            {
              "name": "Fail",
              "anchor": "Collector.Fail",
              "recv": "*Collector",
              "decl": "func (c *Collector) Fail(reason string)",
              "doc": "Fail marks the run as failed with an optional human-readable reason (such as \"out of lives\").\n",
              "file": "pkg/playtest/metrics.go",
              "line": 273
            },
            {
              "name": "Finish",
              "anchor": "Collector.Finish",
              "recv": "*Collector",
              "decl": "func (c *Collector) Finish()",
              "doc": "Finish marks the run as finished (cleared / won). Calling Finish or Fail stops further stepping in Run.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 265
            },
            {
              "name": "FlagSeries",
              "anchor": "Collector.FlagSeries",
              "recv": "*Collector",
              "decl": "func (c *Collector) FlagSeries(name, bucket, flag, note string)",
              "doc": "FlagSeries annotates a series bucket with an optional flag (FlagProblem or FlagWarning) and note.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 380
            },
            {
              "name": "Inc",
              "anchor": "Collector.Inc",
              "recv": "*Collector",
              "decl": "func (c *Collector) Inc(name string)",
              "doc": "Inc increments the named counter by 1.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 184
            },
            {
              "name": "Outcome",
              "anchor": "Collector.Outcome",
              "recv": "*Collector",
              "decl": "func (c *Collector) Outcome() string",
              "doc": "Outcome returns the run's current outcome (\"running\", \"finished\", \"failed\" or \"timeout\").\n",
              "file": "pkg/playtest/metrics.go",
              "line": 290
            },
            {
              "name": "Perf",
              "anchor": "Collector.Perf",
              "recv": "*Collector",
              "decl": "func (c *Collector) Perf() *PerfSummary",
              "doc": "Perf returns a copy of the recorded PerfSummary, or nil when none was recorded.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 475
            },
            {
              "name": "Rate",
              "anchor": "Collector.Rate",
              "recv": "*Collector",
              "decl": "func (c *Collector) Rate() int",
              "doc": "Rate returns the fixed step rate in steps per second.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 138
            },
            {
              "name": "Reason",
              "anchor": "Collector.Reason",
              "recv": "*Collector",
              "decl": "func (c *Collector) Reason() string",
              "doc": "Reason returns the optional failure reason passed to Fail.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 298
            },
            {
              "name": "RecordMatchup",
              "anchor": "Collector.RecordMatchup",
              "recv": "*Collector",
              "decl": "func (c *Collector) RecordMatchup(name, row, col string, wins, total float64)",
              "doc": "RecordMatchup adds wins out of total matches for row vs col in the named matrix.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 439
            },
            {
              "name": "RecordPerf",
              "anchor": "Collector.RecordPerf",
              "recv": "*Collector",
              "decl": "func (c *Collector) RecordPerf(stats *debug.FrameStats, gc *debug.GCMonitor)",
              "doc": "RecordPerf captures frame timing and allocation telemetry from debug.FrameStats and debug.GCMonitor, matching the calculations of game_perf_readout.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 454
            },
            {
              "name": "RecordTimer",
              "anchor": "Collector.RecordTimer",
              "recv": "*Collector",
              "decl": "func (c *Collector) RecordTimer(name string, d time.Duration)",
              "doc": "RecordTimer directly records a simulated duration sample for timer name. Negative durations are clamped to 0.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 242
            },
            {
              "name": "SetCounter",
              "anchor": "Collector.SetCounter",
              "recv": "*Collector",
              "decl": "func (c *Collector) SetCounter(name string, value float64)",
              "doc": "SetCounter sets the named counter to value. Non-finite values are ignored.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 189
            },
            {
              "name": "SetPerf",
              "anchor": "Collector.SetPerf",
              "recv": "*Collector",
              "decl": "func (c *Collector) SetPerf(summary PerfSummary)",
              "doc": "SetPerf stores an explicit PerfSummary on the collector.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 466
            },
            {
              "name": "SetSeries",
              "anchor": "Collector.SetSeries",
              "recv": "*Collector",
              "decl": "func (c *Collector) SetSeries(name, bucket string, value float64)",
              "doc": "SetSeries sets bucket in the named series to value for this run, creating the bucket in deterministic insertion order if needed.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 370
            },
            {
              "name": "SetStep",
              "anchor": "Collector.SetStep",
              "recv": "*Collector",
              "decl": "func (c *Collector) SetStep(step int)",
              "doc": "SetStep updates the collector's current zero-based simulation step. Run calls this before each step.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 122
            },
            {
              "name": "StartTimer",
              "anchor": "Collector.StartTimer",
              "recv": "*Collector",
              "decl": "func (c *Collector) StartTimer(name string)",
              "doc": "StartTimer starts a deterministic simulated-time timer under name at the current step.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 208
            },
            {
              "name": "Step",
              "anchor": "Collector.Step",
              "recv": "*Collector",
              "decl": "func (c *Collector) Step() int",
              "doc": "Step returns the collector's current zero-based simulation step.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 130
            },
            {
              "name": "StopTimer",
              "anchor": "Collector.StopTimer",
              "recv": "*Collector",
              "decl": "func (c *Collector) StopTimer(name string) time.Duration",
              "doc": "StopTimer stops the named timer, records its elapsed simulated seconds, and returns the elapsed duration.\nCalling StopTimer on a timer that was not started returns 0 without recording a sample.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 220
            },
            {
              "name": "Timer",
              "anchor": "Collector.Timer",
              "recv": "*Collector",
              "decl": "func (c *Collector) Timer(name string) (float64, bool)",
              "doc": "Timer returns the recorded duration in seconds for timer name and whether it was recorded.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 256
            }
          ]
        },
        {
          "name": "Config",
          "anchor": "Config",
          "decl": "type Config struct {\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Scope identifies the project and scene this playtest exercises.\n\tScope Scope `yaml:\"scope\" schema:\"required\"`\n\t// Runs configures the batch of headless seeded runs.\n\tRuns Runs `yaml:\"runs\" schema:\"required\"`\n\t// Bot selects the bot profile and configures its behavior parameters.\n\tBot BotConfig `yaml:\"bot\" schema:\"required\"`\n\t// Metrics declares each measured metric, how it is aggregated, and its optional goal.\n\tMetrics []Metric `yaml:\"metrics,omitempty\"`\n}",
          "doc": "Config is the root of a versioned playtest.yaml document describing the scope, seeded runs, bot profile and measured metrics with goals.\n",
          "file": "pkg/playtest/config.go",
          "line": 72,
          "members": [
            {
              "name": "Version",
              "anchor": "Config.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "Scope",
              "anchor": "Config.Scope",
              "kind": "field",
              "doc": "Scope identifies the project and scene this playtest exercises."
            },
            {
              "name": "Runs",
              "anchor": "Config.Runs",
              "kind": "field",
              "doc": "Runs configures the batch of headless seeded runs."
            },
            {
              "name": "Bot",
              "anchor": "Config.Bot",
              "kind": "field",
              "doc": "Bot selects the bot profile and configures its behavior parameters."
            },
            {
              "name": "Metrics",
              "anchor": "Config.Metrics",
              "kind": "field",
              "doc": "Metrics declares each measured metric, how it is aggregated, and its optional goal."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadConfigFile",
              "anchor": "LoadConfigFile",
              "decl": "func LoadConfigFile(path string) (*Config, error)",
              "doc": "LoadConfigFile reads, decodes and validates a playtest.yaml file from disk.\n",
              "file": "pkg/playtest/config.go",
              "line": 547
            },
            {
              "name": "ParseConfig",
              "anchor": "ParseConfig",
              "decl": "func ParseConfig(data []byte) (*Config, error)",
              "doc": "ParseConfig decodes and validates a playtest.yaml document, refusing unknown fields, missing or unsupported versions, duplicate keys and trailing YAML documents.\n",
              "file": "pkg/playtest/config.go",
              "line": 467
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Config.Clone",
              "recv": "*Config",
              "decl": "func (c *Config) Clone() *Config",
              "doc": "Clone returns an independent deep copy of c, or nil when c is nil.\n",
              "file": "pkg/playtest/config.go",
              "line": 572
            },
            {
              "name": "Validate",
              "anchor": "Config.Validate",
              "recv": "*Config",
              "decl": "func (c *Config) Validate() error",
              "doc": "Validate checks that c uses CurrentVersion and that its scope, runs, bot and metrics are valid.\n",
              "file": "pkg/playtest/config.go",
              "line": 313
            }
          ]
        },
        {
          "name": "Event",
          "anchor": "Event",
          "decl": "type Event struct {\n\t// Kind names the event, such as \"death\" or \"pickup\".\n\tKind string `yaml:\"kind\"`\n\t// Step is the zero-based fixed simulation step on which the event happened.\n\tStep int `yaml:\"step\"`\n\t// TimeSeconds is the simulated elapsed time in seconds (Step / Rate).\n\tTimeSeconds float64 `yaml:\"timeSeconds\"`\n\t// X and Y are the world coordinates where the event occurred.\n\tX float64 `yaml:\"x\"`\n\tY float64 `yaml:\"y\"`\n\t// Tag is an optional label identifying the cause or entity, such as \"slime_pit\" or \"coin_03\".\n\tTag string `yaml:\"tag,omitempty\"`\n}",
          "doc": "Event is one positioned, step-stamped occurrence reported by the game during a playtest run (such as a death or pickup).\n",
          "file": "pkg/playtest/metrics.go",
          "line": 19,
          "members": [
            {
              "name": "Kind",
              "anchor": "Event.Kind",
              "kind": "field",
              "doc": "Kind names the event, such as \"death\" or \"pickup\"."
            },
            {
              "name": "Step",
              "anchor": "Event.Step",
              "kind": "field",
              "doc": "Step is the zero-based fixed simulation step on which the event happened."
            },
            {
              "name": "TimeSeconds",
              "anchor": "Event.TimeSeconds",
              "kind": "field",
              "doc": "TimeSeconds is the simulated elapsed time in seconds (Step / Rate)."
            },
            {
              "name": "X",
              "anchor": "Event.X",
              "kind": "field",
              "doc": "X and Y are the world coordinates where the event occurred."
            },
            {
              "name": "Y",
              "anchor": "Event.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "Event.Tag",
              "kind": "field",
              "doc": "Tag is an optional label identifying the cause or entity, such as \"slime_pit\" or \"coin_03\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ExplorerChest",
          "anchor": "ExplorerChest",
          "decl": "type ExplorerChest struct {\n\t// ID uniquely identifies the chest or item across the world.\n\tID string\n\t// Cell is the tile where the chest sits.\n\tCell GridCell\n\t// Opened reports whether the chest has already been opened or picked up.\n\tOpened bool\n\t// Solid reports whether the chest blocks movement and must be opened by facing it and pressing confirm.\n\t// When false, the explorer walks directly onto Cell (and presses confirm if needed).\n\tSolid bool\n}",
          "doc": "ExplorerChest describes one chest or collectible interaction on a top-down map.\n",
          "file": "pkg/playtest/topdown_explorer.go",
          "line": 39,
          "members": [
            {
              "name": "ID",
              "anchor": "ExplorerChest.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the chest or item across the world."
            },
            {
              "name": "Cell",
              "anchor": "ExplorerChest.Cell",
              "kind": "field",
              "doc": "Cell is the tile where the chest sits."
            },
            {
              "name": "Opened",
              "anchor": "ExplorerChest.Opened",
              "kind": "field",
              "doc": "Opened reports whether the chest has already been opened or picked up."
            },
            {
              "name": "Solid",
              "anchor": "ExplorerChest.Solid",
              "kind": "field",
              "doc": "Solid reports whether the chest blocks movement and must be opened by facing it and pressing confirm.\nWhen false, the explorer walks directly onto Cell (and presses confirm if needed)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ExplorerNPC",
          "anchor": "ExplorerNPC",
          "decl": "type ExplorerNPC struct {\n\t// ID uniquely identifies the NPC across the world.\n\tID string\n\t// Cell is the tile where the NPC stands.\n\tCell GridCell\n\t// Talked reports whether the player has already spoken to this NPC.\n\tTalked bool\n}",
          "doc": "ExplorerNPC describes one NPC on a top-down map that the explorer can talk to once.\n",
          "file": "pkg/playtest/topdown_explorer.go",
          "line": 29,
          "members": [
            {
              "name": "ID",
              "anchor": "ExplorerNPC.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the NPC across the world."
            },
            {
              "name": "Cell",
              "anchor": "ExplorerNPC.Cell",
              "kind": "field",
              "doc": "Cell is the tile where the NPC stands."
            },
            {
              "name": "Talked",
              "anchor": "ExplorerNPC.Talked",
              "kind": "field",
              "doc": "Talked reports whether the player has already spoken to this NPC."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ExplorerObservation",
          "anchor": "ExplorerObservation",
          "decl": "type ExplorerObservation struct {\n\t// MapID identifies the current map so seen tiles are tracked per map.\n\tMapID string\n\t// Width and Height are the current map's dimensions in tiles.\n\tWidth, Height int\n\t// Walkable reports whether tile (x, y) can be walked onto. When nil, every in-bounds tile is treated as walkable.\n\tWalkable func(x, y int) bool\n\t// Player is the player's current tile coordinate.\n\tPlayer GridCell\n\t// Facing is the player's current facing direction (\"up\", \"down\", \"left\", \"right\", or \"\").\n\tFacing string\n\t// Moving reports whether the player is currently mid-step between tiles.\n\tMoving bool\n\t// InDialogue reports whether a dialogue or prompt box is open and expects confirm to advance.\n\tInDialogue bool\n\t// InBattle reports whether a turn-based battle is active and expects confirm to advance.\n\tInBattle bool\n\t// VisionRadius is the radius in tiles around Player marked as seen on each step (defaults to bot visionRadius when <= 0).\n\tVisionRadius int\n\t// NPCs lists NPCs on the current map.\n\tNPCs []ExplorerNPC\n\t// Chests lists chests or pickups on the current map.\n\tChests []ExplorerChest\n\t// Exits lists walkable exit tiles leading to other maps, used once all reachable targets on the current map have been visited.\n\tExits []GridCell\n}",
          "doc": "ExplorerObservation is the per-step world view a top-down simulation supplies to the \"topdown-explorer\" bot.\n",
          "file": "pkg/playtest/topdown_explorer.go",
          "line": 52,
          "members": [
            {
              "name": "MapID",
              "anchor": "ExplorerObservation.MapID",
              "kind": "field",
              "doc": "MapID identifies the current map so seen tiles are tracked per map."
            },
            {
              "name": "Width",
              "anchor": "ExplorerObservation.Width",
              "kind": "field",
              "doc": "Width and Height are the current map's dimensions in tiles."
            },
            {
              "name": "Height",
              "anchor": "ExplorerObservation.Height",
              "kind": "field",
              "doc": "Width and Height are the current map's dimensions in tiles."
            },
            {
              "name": "Walkable",
              "anchor": "ExplorerObservation.Walkable",
              "kind": "field",
              "doc": "Walkable reports whether tile (x, y) can be walked onto. When nil, every in-bounds tile is treated as walkable."
            },
            {
              "name": "Player",
              "anchor": "ExplorerObservation.Player",
              "kind": "field",
              "doc": "Player is the player's current tile coordinate."
            },
            {
              "name": "Facing",
              "anchor": "ExplorerObservation.Facing",
              "kind": "field",
              "doc": "Facing is the player's current facing direction (\"up\", \"down\", \"left\", \"right\", or \"\")."
            },
            {
              "name": "Moving",
              "anchor": "ExplorerObservation.Moving",
              "kind": "field",
              "doc": "Moving reports whether the player is currently mid-step between tiles."
            },
            {
              "name": "InDialogue",
              "anchor": "ExplorerObservation.InDialogue",
              "kind": "field",
              "doc": "InDialogue reports whether a dialogue or prompt box is open and expects confirm to advance."
            },
            {
              "name": "InBattle",
              "anchor": "ExplorerObservation.InBattle",
              "kind": "field",
              "doc": "InBattle reports whether a turn-based battle is active and expects confirm to advance."
            },
            {
              "name": "VisionRadius",
              "anchor": "ExplorerObservation.VisionRadius",
              "kind": "field",
              "doc": "VisionRadius is the radius in tiles around Player marked as seen on each step (defaults to bot visionRadius when <= 0)."
            },
            {
              "name": "NPCs",
              "anchor": "ExplorerObservation.NPCs",
              "kind": "field",
              "doc": "NPCs lists NPCs on the current map."
            },
            {
              "name": "Chests",
              "anchor": "ExplorerObservation.Chests",
              "kind": "field",
              "doc": "Chests lists chests or pickups on the current map."
            },
            {
              "name": "Exits",
              "anchor": "ExplorerObservation.Exits",
              "kind": "field",
              "doc": "Exits lists walkable exit tiles leading to other maps, used once all reachable targets on the current map have been visited."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Goal",
          "anchor": "Goal",
          "decl": "type Goal struct {\n\t// Summary is an optional human-readable description of the goal, such as \"most first-timers clear floor 1\".\n\tSummary string `yaml:\"summary,omitempty\"`\n\t// Source names the file this goal comes from, such as \"brief.yaml\", \"game.yaml\" or \"playtest.yaml\".\n\tSource string `yaml:\"source\" schema:\"required,minLength=1\"`\n\t// Min is the inclusive lower bound (value >= Min).\n\tMin *float64 `yaml:\"min,omitempty\"`\n\t// Max is the inclusive upper bound (value <= Max).\n\tMax *float64 `yaml:\"max,omitempty\"`\n\t// Equal requires value == Equal.\n\tEqual *float64 `yaml:\"equal,omitempty\"`\n}",
          "doc": "Goal defines the target range or threshold for a Metric and the file the goal comes from.\n",
          "file": "pkg/playtest/config.go",
          "line": 154,
          "members": [
            {
              "name": "Summary",
              "anchor": "Goal.Summary",
              "kind": "field",
              "doc": "Summary is an optional human-readable description of the goal, such as \"most first-timers clear floor 1\"."
            },
            {
              "name": "Source",
              "anchor": "Goal.Source",
              "kind": "field",
              "doc": "Source names the file this goal comes from, such as \"brief.yaml\", \"game.yaml\" or \"playtest.yaml\"."
            },
            {
              "name": "Min",
              "anchor": "Goal.Min",
              "kind": "field",
              "doc": "Min is the inclusive lower bound (value >= Min)."
            },
            {
              "name": "Max",
              "anchor": "Goal.Max",
              "kind": "field",
              "doc": "Max is the inclusive upper bound (value <= Max)."
            },
            {
              "name": "Equal",
              "anchor": "Goal.Equal",
              "kind": "field",
              "doc": "Equal requires value == Equal."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "GoalFromBriefTarget",
              "anchor": "GoalFromBriefTarget",
              "decl": "func GoalFromBriefTarget(t project.BriefPlaytestTarget) *Goal",
              "doc": "GoalFromBriefTarget converts a structured playtest target from brief.yaml into a playtest Goal\nwhose Source is project.BriefFileName (\"brief.yaml\").\n",
              "file": "pkg/playtest/brief.go",
              "line": 13
            }
          ],
          "methods": [
            {
              "name": "Describe",
              "anchor": "Goal.Describe",
              "recv": "*Goal",
              "decl": "func (g *Goal) Describe(unit string) string",
              "doc": "Describe returns a concise human-readable description of g's threshold or range.\n",
              "file": "pkg/playtest/config.go",
              "line": 278
            },
            {
              "name": "Evaluate",
              "anchor": "Goal.Evaluate",
              "recv": "*Goal",
              "decl": "func (g *Goal) Evaluate(value float64) string",
              "doc": "Evaluate checks whether value satisfies g and returns StatusMet, StatusMissed, or StatusInfo (when g is nil).\n",
              "file": "pkg/playtest/config.go",
              "line": 254
            }
          ]
        },
        {
          "name": "GridCell",
          "anchor": "GridCell",
          "decl": "type GridCell struct {\n\tX, Y int\n}",
          "doc": "GridCell is a tile coordinate (column, row) in a top-down tile map.\n",
          "file": "pkg/playtest/topdown_explorer.go",
          "line": 24,
          "members": [
            {
              "name": "X",
              "anchor": "GridCell.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "GridCell.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HeatMap",
          "anchor": "HeatMap",
          "decl": "type HeatMap struct {\n\t// Metric is the metric name this heat map corresponds to.\n\tMetric string `yaml:\"metric\"`\n\t// Event is the event kind recorded in Points (such as \"death\").\n\tEvent string `yaml:\"event\"`\n\t// Points lists every recorded position in deterministic run-then-step order.\n\tPoints []HeatPoint `yaml:\"points,omitempty\"`\n}",
          "doc": "HeatMap holds world-space positioned samples for one event metric across all runs.\n",
          "file": "pkg/playtest/report.go",
          "line": 122,
          "members": [
            {
              "name": "Metric",
              "anchor": "HeatMap.Metric",
              "kind": "field",
              "doc": "Metric is the metric name this heat map corresponds to."
            },
            {
              "name": "Event",
              "anchor": "HeatMap.Event",
              "kind": "field",
              "doc": "Event is the event kind recorded in Points (such as \"death\")."
            },
            {
              "name": "Points",
              "anchor": "HeatMap.Points",
              "kind": "field",
              "doc": "Points lists every recorded position in deterministic run-then-step order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HeatPoint",
          "anchor": "HeatPoint",
          "decl": "type HeatPoint struct {\n\t// Seed is the run seed that produced this event.\n\tSeed uint64 `yaml:\"seed\"`\n\t// Step is the zero-based simulation step when the event happened.\n\tStep int `yaml:\"step\"`\n\t// X and Y are the world coordinates of the event.\n\tX float64 `yaml:\"x\"`\n\tY float64 `yaml:\"y\"`\n\t// Tag is the optional event tag.\n\tTag string `yaml:\"tag,omitempty\"`\n}",
          "doc": "HeatPoint is one world-space event sample in a HeatMap.\n",
          "file": "pkg/playtest/report.go",
          "line": 132,
          "members": [
            {
              "name": "Seed",
              "anchor": "HeatPoint.Seed",
              "kind": "field",
              "doc": "Seed is the run seed that produced this event."
            },
            {
              "name": "Step",
              "anchor": "HeatPoint.Step",
              "kind": "field",
              "doc": "Step is the zero-based simulation step when the event happened."
            },
            {
              "name": "X",
              "anchor": "HeatPoint.X",
              "kind": "field",
              "doc": "X and Y are the world coordinates of the event."
            },
            {
              "name": "Y",
              "anchor": "HeatPoint.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tag",
              "anchor": "HeatPoint.Tag",
              "kind": "field",
              "doc": "Tag is the optional event tag."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "InputState",
          "anchor": "InputState",
          "decl": "type InputState struct {\n\t// Actions maps named actions (such as \"left\", \"right\", \"jump\") to whether they are held on this step.\n\tActions map[string]bool\n\t// Axes maps named axes (such as \"move_x\") to their value on this step.\n\tAxes map[string]float64\n}",
          "doc": "InputState holds the action presses and axis values a Bot chooses for one fixed simulation step.\n",
          "file": "pkg/playtest/bot.go",
          "line": 16,
          "members": [
            {
              "name": "Actions",
              "anchor": "InputState.Actions",
              "kind": "field",
              "doc": "Actions maps named actions (such as \"left\", \"right\", \"jump\") to whether they are held on this step."
            },
            {
              "name": "Axes",
              "anchor": "InputState.Axes",
              "kind": "field",
              "doc": "Axes maps named axes (such as \"move_x\") to their value on this step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MatrixChart",
          "anchor": "MatrixChart",
          "decl": "type MatrixChart struct {\n\t// Name uniquely identifies the matrix (such as \"deck_win_rates\").\n\tName string `yaml:\"name\"`\n\t// Label is an optional display title (such as \"Win rate by deck pair\").\n\tLabel string `yaml:\"label,omitempty\"`\n\t// Unit is an optional display unit for cells (such as \"%\").\n\tUnit string `yaml:\"unit,omitempty\"`\n\t// FlagAbove, when non-nil, flags cells whose value exceeds this threshold (such as 60 for >60% win rate).\n\tFlagAbove *float64 `yaml:\"flagAbove,omitempty\"`\n\t// Labels lists the row and column names in order (such as deck names).\n\tLabels []string `yaml:\"labels\"`\n\t// Cells holds the len(Labels) x len(Labels) grid; nil entries represent diagonal or unplayed pairs.\n\tCells [][]*float64 `yaml:\"cells\"`\n}",
          "doc": "MatrixChart holds a labeled row-vs-column numeric matrix (such as deck-pair win rates in percent).\n",
          "file": "pkg/playtest/report.go",
          "line": 85,
          "members": [
            {
              "name": "Name",
              "anchor": "MatrixChart.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the matrix (such as \"deck_win_rates\")."
            },
            {
              "name": "Label",
              "anchor": "MatrixChart.Label",
              "kind": "field",
              "doc": "Label is an optional display title (such as \"Win rate by deck pair\")."
            },
            {
              "name": "Unit",
              "anchor": "MatrixChart.Unit",
              "kind": "field",
              "doc": "Unit is an optional display unit for cells (such as \"%\")."
            },
            {
              "name": "FlagAbove",
              "anchor": "MatrixChart.FlagAbove",
              "kind": "field",
              "doc": "FlagAbove, when non-nil, flags cells whose value exceeds this threshold (such as 60 for >60% win rate)."
            },
            {
              "name": "Labels",
              "anchor": "MatrixChart.Labels",
              "kind": "field",
              "doc": "Labels lists the row and column names in order (such as deck names)."
            },
            {
              "name": "Cells",
              "anchor": "MatrixChart.Cells",
              "kind": "field",
              "doc": "Cells holds the len(Labels) x len(Labels) grid; nil entries represent diagonal or unplayed pairs."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Measure",
          "anchor": "Measure",
          "decl": "type Measure struct {\n\t// Kind selects the telemetry source: \"event\", \"counter\", \"timer\", \"outcome\", \"ratio\" or \"perf\".\n\tKind string `yaml:\"kind\" schema:\"required,enum=event|counter|timer|outcome|ratio|perf\"`\n\t// Key names the event kind, counter name, timer name, outcome name or perf field to read.\n\tKey string `yaml:\"key\" schema:\"required,minLength=1\"`\n\t// DenomKey names the denominator counter for \"ratio\" metrics (required when Kind is \"ratio\").\n\tDenomKey string `yaml:\"denomKey,omitempty\"`\n\t// Aggregate chooses how per-run values combine: \"count\", \"sum\", \"mean\", \"median\", \"min\", \"max\", \"p95\", \"p99\" or \"rate\".\n\tAggregate string `yaml:\"aggregate,omitempty\" schema:\"enum=count|sum|mean|median|min|max|p95|p99|rate\"`\n\t// HeatMap records positioned event coordinates for this metric in the report's heatMaps section.\n\tHeatMap bool `yaml:\"heatMap,omitempty\"`\n}",
          "doc": "Measure specifies which telemetry signal a Metric reads and how per-run values combine.\n",
          "file": "pkg/playtest/config.go",
          "line": 140,
          "members": [
            {
              "name": "Kind",
              "anchor": "Measure.Kind",
              "kind": "field",
              "doc": "Kind selects the telemetry source: \"event\", \"counter\", \"timer\", \"outcome\", \"ratio\" or \"perf\"."
            },
            {
              "name": "Key",
              "anchor": "Measure.Key",
              "kind": "field",
              "doc": "Key names the event kind, counter name, timer name, outcome name or perf field to read."
            },
            {
              "name": "DenomKey",
              "anchor": "Measure.DenomKey",
              "kind": "field",
              "doc": "DenomKey names the denominator counter for \"ratio\" metrics (required when Kind is \"ratio\")."
            },
            {
              "name": "Aggregate",
              "anchor": "Measure.Aggregate",
              "kind": "field",
              "doc": "Aggregate chooses how per-run values combine: \"count\", \"sum\", \"mean\", \"median\", \"min\", \"max\", \"p95\", \"p99\" or \"rate\"."
            },
            {
              "name": "HeatMap",
              "anchor": "Measure.HeatMap",
              "kind": "field",
              "doc": "HeatMap records positioned event coordinates for this metric in the report's heatMaps section."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveAggregate",
              "anchor": "Measure.EffectiveAggregate",
              "recv": "Measure",
              "decl": "func (m Measure) EffectiveAggregate() string",
              "doc": "EffectiveAggregate returns m.Aggregate when set, or the default aggregate for m.Kind.\n",
              "file": "pkg/playtest/config.go",
              "line": 237
            }
          ]
        },
        {
          "name": "Metric",
          "anchor": "Metric",
          "decl": "type Metric struct {\n\t// Name uniquely identifies the metric, such as \"finished\", \"median_time\" or \"frame_time\".\n\tName string `yaml:\"name\" schema:\"required,minLength=1\"`\n\t// Label is an optional human-readable display name, such as \"Finished\".\n\tLabel string `yaml:\"label,omitempty\"`\n\t// Unit is an optional display unit, such as \"s\", \"ms\", \"%\" or \"runs\".\n\tUnit string `yaml:\"unit,omitempty\"`\n\t// Measure specifies how per-run telemetry is read and aggregated across runs.\n\tMeasure Measure `yaml:\"measure\" schema:\"required\"`\n\t// Goal is the optional target threshold or range this metric is checked against.\n\tGoal *Goal `yaml:\"goal,omitempty\"`\n}",
          "doc": "Metric defines one measured playtest metric, how it is computed across runs, and its optional goal.\n",
          "file": "pkg/playtest/config.go",
          "line": 126,
          "members": [
            {
              "name": "Name",
              "anchor": "Metric.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the metric, such as \"finished\", \"median_time\" or \"frame_time\"."
            },
            {
              "name": "Label",
              "anchor": "Metric.Label",
              "kind": "field",
              "doc": "Label is an optional human-readable display name, such as \"Finished\"."
            },
            {
              "name": "Unit",
              "anchor": "Metric.Unit",
              "kind": "field",
              "doc": "Unit is an optional display unit, such as \"s\", \"ms\", \"%\" or \"runs\"."
            },
            {
              "name": "Measure",
              "anchor": "Metric.Measure",
              "kind": "field",
              "doc": "Measure specifies how per-run telemetry is read and aggregated across runs."
            },
            {
              "name": "Goal",
              "anchor": "Metric.Goal",
              "kind": "field",
              "doc": "Goal is the optional target threshold or range this metric is checked against."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MetricReport",
          "anchor": "MetricReport",
          "decl": "type MetricReport struct {\n\t// Name uniquely identifies the metric.\n\tName string `yaml:\"name\"`\n\t// Label is the human-readable display label, if set.\n\tLabel string `yaml:\"label,omitempty\"`\n\t// Unit is the display unit, if set.\n\tUnit string `yaml:\"unit,omitempty\"`\n\t// Aggregate is the aggregation applied across runs (such as \"count\", \"sum\", \"median\", \"mean\").\n\tAggregate string `yaml:\"aggregate\"`\n\t// Value is the evaluated aggregate value.\n\tValue float64 `yaml:\"value\"`\n\t// Min and Max are the minimum and maximum per-run values contributing to Value.\n\tMin float64 `yaml:\"min,omitempty\"`\n\tMax float64 `yaml:\"max,omitempty\"`\n\t// Goal is the target range or threshold checked against Value, if any.\n\tGoal *Goal `yaml:\"goal,omitempty\"`\n\t// Status is \"met\", \"missed\", or \"info\" (when Goal is nil).\n\tStatus string `yaml:\"status\"`\n}",
          "doc": "MetricReport holds the evaluated aggregate value and goal status for one Metric.\n",
          "file": "pkg/playtest/report.go",
          "line": 101,
          "members": [
            {
              "name": "Name",
              "anchor": "MetricReport.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the metric."
            },
            {
              "name": "Label",
              "anchor": "MetricReport.Label",
              "kind": "field",
              "doc": "Label is the human-readable display label, if set."
            },
            {
              "name": "Unit",
              "anchor": "MetricReport.Unit",
              "kind": "field",
              "doc": "Unit is the display unit, if set."
            },
            {
              "name": "Aggregate",
              "anchor": "MetricReport.Aggregate",
              "kind": "field",
              "doc": "Aggregate is the aggregation applied across runs (such as \"count\", \"sum\", \"median\", \"mean\")."
            },
            {
              "name": "Value",
              "anchor": "MetricReport.Value",
              "kind": "field",
              "doc": "Value is the evaluated aggregate value."
            },
            {
              "name": "Min",
              "anchor": "MetricReport.Min",
              "kind": "field",
              "doc": "Min and Max are the minimum and maximum per-run values contributing to Value."
            },
            {
              "name": "Max",
              "anchor": "MetricReport.Max",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Goal",
              "anchor": "MetricReport.Goal",
              "kind": "field",
              "doc": "Goal is the target range or threshold checked against Value, if any."
            },
            {
              "name": "Status",
              "anchor": "MetricReport.Status",
              "kind": "field",
              "doc": "Status is \"met\", \"missed\", or \"info\" (when Goal is nil)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PerfSummary",
          "anchor": "PerfSummary",
          "decl": "type PerfSummary struct {\n\t// SampleCount is the number of frames sampled.\n\tSampleCount int `yaml:\"sampleCount,omitempty\"`\n\t// FrameMs is the mean total frame duration in milliseconds.\n\tFrameMs float64 `yaml:\"frameMs,omitempty\"`\n\t// UpdateMs is the mean fixed-update duration in milliseconds.\n\tUpdateMs float64 `yaml:\"updateMs,omitempty\"`\n\t// DrawMs is the mean draw duration in milliseconds.\n\tDrawMs float64 `yaml:\"drawMs,omitempty\"`\n\t// P50FrameMs is the 50th percentile frame duration in milliseconds.\n\tP50FrameMs float64 `yaml:\"p50FrameMs,omitempty\"`\n\t// P95FrameMs is the 95th percentile frame duration in milliseconds.\n\tP95FrameMs float64 `yaml:\"p95FrameMs,omitempty\"`\n\t// P99FrameMs is the 99th percentile frame duration in milliseconds.\n\tP99FrameMs float64 `yaml:\"p99FrameMs,omitempty\"`\n\t// MaxFrameMs is the peak frame duration in milliseconds.\n\tMaxFrameMs float64 `yaml:\"maxFrameMs,omitempty\"`\n\t// AllocsPerFrame is the mean heap allocations per frame.\n\tAllocsPerFrame float64 `yaml:\"allocsPerFrame,omitempty\"`\n}",
          "doc": "PerfSummary holds frame timing and allocation telemetry captured from the perf readout (debug.FrameStats and debug.GCMonitor).\n",
          "file": "pkg/playtest/metrics.go",
          "line": 34,
          "members": [
            {
              "name": "SampleCount",
              "anchor": "PerfSummary.SampleCount",
              "kind": "field",
              "doc": "SampleCount is the number of frames sampled."
            },
            {
              "name": "FrameMs",
              "anchor": "PerfSummary.FrameMs",
              "kind": "field",
              "doc": "FrameMs is the mean total frame duration in milliseconds."
            },
            {
              "name": "UpdateMs",
              "anchor": "PerfSummary.UpdateMs",
              "kind": "field",
              "doc": "UpdateMs is the mean fixed-update duration in milliseconds."
            },
            {
              "name": "DrawMs",
              "anchor": "PerfSummary.DrawMs",
              "kind": "field",
              "doc": "DrawMs is the mean draw duration in milliseconds."
            },
            {
              "name": "P50FrameMs",
              "anchor": "PerfSummary.P50FrameMs",
              "kind": "field",
              "doc": "P50FrameMs is the 50th percentile frame duration in milliseconds."
            },
            {
              "name": "P95FrameMs",
              "anchor": "PerfSummary.P95FrameMs",
              "kind": "field",
              "doc": "P95FrameMs is the 95th percentile frame duration in milliseconds."
            },
            {
              "name": "P99FrameMs",
              "anchor": "PerfSummary.P99FrameMs",
              "kind": "field",
              "doc": "P99FrameMs is the 99th percentile frame duration in milliseconds."
            },
            {
              "name": "MaxFrameMs",
              "anchor": "PerfSummary.MaxFrameMs",
              "kind": "field",
              "doc": "MaxFrameMs is the peak frame duration in milliseconds."
            },
            {
              "name": "AllocsPerFrame",
              "anchor": "PerfSummary.AllocsPerFrame",
              "kind": "field",
              "doc": "AllocsPerFrame is the mean heap allocations per frame."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PerfFromStats",
              "anchor": "PerfFromStats",
              "decl": "func PerfFromStats(stats *debug.FrameStats, gc *debug.GCMonitor) (PerfSummary, bool)",
              "doc": "PerfFromStats builds a PerfSummary from debug.FrameStats and debug.GCMonitor using the same averaging and percentile definitions as game/mcp's game_perf_readout.\nIt returns false when neither stats nor gc holds any samples.\n",
              "file": "pkg/playtest/metrics.go",
              "line": 485
            }
          ],
          "methods": []
        },
        {
          "name": "PlatformerObservation",
          "anchor": "PlatformerObservation",
          "decl": "type PlatformerObservation struct {\n\t// PlayerX and PlayerY are the player's current world position (box center).\n\tPlayerX, PlayerY float64\n\t// PlayerVX and PlayerVY are the player's current velocity in points per second.\n\tPlayerVX, PlayerVY float64\n\t// Grounded reports whether the player is currently standing on ground.\n\tGrounded bool\n\t// OnWall is -1 when touching a wall on the left, 1 on the right, and 0 otherwise.\n\tOnWall int\n\t// ExitX and ExitY are the target exit or goal world coordinates.\n\tExitX, ExitY float64\n\t// GapAhead reports a drop-off or missing floor tile immediately ahead in the travel direction.\n\tGapAhead bool\n\t// WallAhead reports a solid wall or step immediately ahead in the travel direction.\n\tWallAhead bool\n\t// HazardAhead reports a hazard (such as spikes or a patrolling enemy) immediately ahead.\n\tHazardAhead bool\n\t// HazardDistance is the horizontal distance to the nearest hazard ahead, when known.\n\tHazardDistance float64\n\t// LedgeAbove reports a reachable higher platform or ledge ahead and above the player.\n\tLedgeAbove bool\n}",
          "doc": "PlatformerObservation is the per-step world view a platformer simulation supplies to the \"platformer-runner\" bot.\n",
          "file": "pkg/playtest/platformer_runner.go",
          "line": 20,
          "members": [
            {
              "name": "PlayerX",
              "anchor": "PlatformerObservation.PlayerX",
              "kind": "field",
              "doc": "PlayerX and PlayerY are the player's current world position (box center)."
            },
            {
              "name": "PlayerY",
              "anchor": "PlatformerObservation.PlayerY",
              "kind": "field",
              "doc": "PlayerX and PlayerY are the player's current world position (box center)."
            },
            {
              "name": "PlayerVX",
              "anchor": "PlatformerObservation.PlayerVX",
              "kind": "field",
              "doc": "PlayerVX and PlayerVY are the player's current velocity in points per second."
            },
            {
              "name": "PlayerVY",
              "anchor": "PlatformerObservation.PlayerVY",
              "kind": "field",
              "doc": "PlayerVX and PlayerVY are the player's current velocity in points per second."
            },
            {
              "name": "Grounded",
              "anchor": "PlatformerObservation.Grounded",
              "kind": "field",
              "doc": "Grounded reports whether the player is currently standing on ground."
            },
            {
              "name": "OnWall",
              "anchor": "PlatformerObservation.OnWall",
              "kind": "field",
              "doc": "OnWall is -1 when touching a wall on the left, 1 on the right, and 0 otherwise."
            },
            {
              "name": "ExitX",
              "anchor": "PlatformerObservation.ExitX",
              "kind": "field",
              "doc": "ExitX and ExitY are the target exit or goal world coordinates."
            },
            {
              "name": "ExitY",
              "anchor": "PlatformerObservation.ExitY",
              "kind": "field",
              "doc": "ExitX and ExitY are the target exit or goal world coordinates."
            },
            {
              "name": "GapAhead",
              "anchor": "PlatformerObservation.GapAhead",
              "kind": "field",
              "doc": "GapAhead reports a drop-off or missing floor tile immediately ahead in the travel direction."
            },
            {
              "name": "WallAhead",
              "anchor": "PlatformerObservation.WallAhead",
              "kind": "field",
              "doc": "WallAhead reports a solid wall or step immediately ahead in the travel direction."
            },
            {
              "name": "HazardAhead",
              "anchor": "PlatformerObservation.HazardAhead",
              "kind": "field",
              "doc": "HazardAhead reports a hazard (such as spikes or a patrolling enemy) immediately ahead."
            },
            {
              "name": "HazardDistance",
              "anchor": "PlatformerObservation.HazardDistance",
              "kind": "field",
              "doc": "HazardDistance is the horizontal distance to the nearest hazard ahead, when known."
            },
            {
              "name": "LedgeAbove",
              "anchor": "PlatformerObservation.LedgeAbove",
              "kind": "field",
              "doc": "LedgeAbove reports a reachable higher platform or ledge ahead and above the player."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ObservePlatformerGrid",
              "anchor": "ObservePlatformerGrid",
              "decl": "func ObservePlatformerGrid(grid physics.TileGrid, playerBox physics.Box, vx, vy float32, grounded bool, onWall int, exitX, exitY float32, hazards []physics.Box, lookahead float32) PlatformerObservation",
              "doc": "ObservePlatformerGrid builds a PlatformerObservation by probing a physics.TileGrid and optional hazard boxes ahead of playerBox toward (exitX, exitY).\nLookahead distances default to sensible values relative to the grid's tile width when lookahead <= 0.\n",
              "file": "pkg/playtest/platformer_runner.go",
              "line": 245
            }
          ],
          "methods": []
        },
        {
          "name": "PlatformerRunner",
          "anchor": "PlatformerRunner",
          "decl": "type PlatformerRunner struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PlatformerRunner is the built-in \"platformer-runner\" bot: a greedy runner toward ExitX that jumps at ledges, gaps and hazards with deterministic human reaction jitter.\n",
          "file": "pkg/playtest/platformer_runner.go",
          "line": 44,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Channels",
              "anchor": "PlatformerRunner.Channels",
              "recv": "*PlatformerRunner",
              "decl": "func (b *PlatformerRunner) Channels() (actions, axes []string)",
              "doc": "Channels declares the default action and axis names that platformer-runner drives.\n",
              "file": "pkg/playtest/platformer_runner.go",
              "line": 145
            },
            {
              "name": "Decide",
              "anchor": "PlatformerRunner.Decide",
              "recv": "*PlatformerRunner",
              "decl": "func (b *PlatformerRunner) Decide(_ int, dt time.Duration, rawObs any, rng *random.Stream) InputState",
              "doc": "Decide picks the next horizontal movement and jump inputs for a platformer step.\n",
              "file": "pkg/playtest/platformer_runner.go",
              "line": 150
            }
          ]
        },
        {
          "name": "PuzzleHumanResult",
          "anchor": "PuzzleHumanResult",
          "decl": "type PuzzleHumanResult struct {\n\t// Solved reports whether the human-like player solved the level.\n\tSolved bool\n\t// Moves is the net number of moves in the winning state (or final move count if unsolved).\n\tMoves int\n\t// MovesOverPar is Moves - Par when Solved is true.\n\tMovesOverPar int\n\t// Undos is how many undo actions the human-like player performed after bad-move streaks or dead states.\n\tUndos int\n\t// Actions is the sequence of move and undo action names emitted.\n\tActions []string\n}",
          "doc": "PuzzleHumanResult summarizes one deterministic human-like playthrough of a puzzle level.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 170,
          "members": [
            {
              "name": "Solved",
              "anchor": "PuzzleHumanResult.Solved",
              "kind": "field",
              "doc": "Solved reports whether the human-like player solved the level."
            },
            {
              "name": "Moves",
              "anchor": "PuzzleHumanResult.Moves",
              "kind": "field",
              "doc": "Moves is the net number of moves in the winning state (or final move count if unsolved)."
            },
            {
              "name": "MovesOverPar",
              "anchor": "PuzzleHumanResult.MovesOverPar",
              "kind": "field",
              "doc": "MovesOverPar is Moves - Par when Solved is true."
            },
            {
              "name": "Undos",
              "anchor": "PuzzleHumanResult.Undos",
              "kind": "field",
              "doc": "Undos is how many undo actions the human-like player performed after bad-move streaks or dead states."
            },
            {
              "name": "Actions",
              "anchor": "PuzzleHumanResult.Actions",
              "kind": "field",
              "doc": "Actions is the sequence of move and undo action names emitted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PuzzleLevel",
          "anchor": "PuzzleLevel",
          "decl": "type PuzzleLevel struct {\n\t// ID uniquely names the level (such as \"level_01\" or \"first-light\").\n\tID string\n\t// Name is an optional display title.\n\tName string\n\t// Par is the target move count (such as the 3-star threshold).\n\tPar int\n\t// IntendedMoves is the designer's intended solution length; defaults to Par when <= 0.\n\tIntendedMoves int\n\t// Start is the initial PuzzleState of the level.\n\tStart PuzzleState\n}",
          "doc": "PuzzleLevel describes one level in a puzzle pack evaluated by EvaluatePuzzlePack or NewPuzzlePackSim.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 55,
          "members": [
            {
              "name": "ID",
              "anchor": "PuzzleLevel.ID",
              "kind": "field",
              "doc": "ID uniquely names the level (such as \"level_01\" or \"first-light\")."
            },
            {
              "name": "Name",
              "anchor": "PuzzleLevel.Name",
              "kind": "field",
              "doc": "Name is an optional display title."
            },
            {
              "name": "Par",
              "anchor": "PuzzleLevel.Par",
              "kind": "field",
              "doc": "Par is the target move count (such as the 3-star threshold)."
            },
            {
              "name": "IntendedMoves",
              "anchor": "PuzzleLevel.IntendedMoves",
              "kind": "field",
              "doc": "IntendedMoves is the designer's intended solution length; defaults to Par when <= 0."
            },
            {
              "name": "Start",
              "anchor": "PuzzleLevel.Start",
              "kind": "field",
              "doc": "Start is the initial PuzzleState of the level."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveIntendedMoves",
              "anchor": "PuzzleLevel.EffectiveIntendedMoves",
              "recv": "PuzzleLevel",
              "decl": "func (l PuzzleLevel) EffectiveIntendedMoves() int",
              "doc": "EffectiveIntendedMoves returns l.IntendedMoves when positive, falling back to l.Par.\n",
              "file": "pkg/playtest/puzzle_solver.go",
              "line": 69
            }
          ]
        },
        {
          "name": "PuzzleLevelReport",
          "anchor": "PuzzleLevelReport",
          "decl": "type PuzzleLevelReport struct {\n\tID                  string\n\tName                string\n\tPar                 int\n\tIntendedMoves       int\n\tSolve               PuzzleSolveResult\n\tHuman               PuzzleHumanResult\n\tShorterThanIntended bool\n\tDifficultyDip       bool\n}",
          "doc": "PuzzleLevelReport holds the BFS solver and human-like playtest findings for one level in a pack.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 624,
          "members": [
            {
              "name": "ID",
              "anchor": "PuzzleLevelReport.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "PuzzleLevelReport.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Par",
              "anchor": "PuzzleLevelReport.Par",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IntendedMoves",
              "anchor": "PuzzleLevelReport.IntendedMoves",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Solve",
              "anchor": "PuzzleLevelReport.Solve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Human",
              "anchor": "PuzzleLevelReport.Human",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ShorterThanIntended",
              "anchor": "PuzzleLevelReport.ShorterThanIntended",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DifficultyDip",
              "anchor": "PuzzleLevelReport.DifficultyDip",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PuzzleMove",
          "anchor": "PuzzleMove",
          "decl": "type PuzzleMove string",
          "doc": "PuzzleMove names one discrete puzzle move (such as \"up\", \"down\", \"left\" or \"right\").\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 33,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PuzzleObservation",
          "anchor": "PuzzleObservation",
          "decl": "type PuzzleObservation struct {\n\t// LevelID identifies the current level so per-level plans reset cleanly when advancing levels.\n\tLevelID string\n\t// State is the current puzzle state.\n\tState PuzzleState\n\t// CanUndo reports whether the puzzle simulation supports undoing the last move.\n\tCanUndo bool\n\t// ParMoves is the level's par move count.\n\tParMoves int\n\t// IntendedMoves is the designer's intended solution move count.\n\tIntendedMoves int\n}",
          "doc": "PuzzleObservation is the per-step world view a puzzle simulation supplies to the \"puzzle-solver\" bot.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 156,
          "members": [
            {
              "name": "LevelID",
              "anchor": "PuzzleObservation.LevelID",
              "kind": "field",
              "doc": "LevelID identifies the current level so per-level plans reset cleanly when advancing levels."
            },
            {
              "name": "State",
              "anchor": "PuzzleObservation.State",
              "kind": "field",
              "doc": "State is the current puzzle state."
            },
            {
              "name": "CanUndo",
              "anchor": "PuzzleObservation.CanUndo",
              "kind": "field",
              "doc": "CanUndo reports whether the puzzle simulation supports undoing the last move."
            },
            {
              "name": "ParMoves",
              "anchor": "PuzzleObservation.ParMoves",
              "kind": "field",
              "doc": "ParMoves is the level's par move count."
            },
            {
              "name": "IntendedMoves",
              "anchor": "PuzzleObservation.IntendedMoves",
              "kind": "field",
              "doc": "IntendedMoves is the designer's intended solution move count."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PuzzlePackReport",
          "anchor": "PuzzlePackReport",
          "decl": "type PuzzlePackReport struct {\n\tLevels             []PuzzleLevelReport\n\tSolvableCount      int\n\tTotalLevels        int\n\tDifficultyDips     int\n\tShorterSolutions   int\n\tMedianMovesOverPar float64\n}",
          "doc": "PuzzlePackReport summarizes BFS solvability, difficulty ordering, unintended shorter solutions and human-like moves over par across a puzzle pack.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 636,
          "members": [
            {
              "name": "Levels",
              "anchor": "PuzzlePackReport.Levels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SolvableCount",
              "anchor": "PuzzlePackReport.SolvableCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalLevels",
              "anchor": "PuzzlePackReport.TotalLevels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DifficultyDips",
              "anchor": "PuzzlePackReport.DifficultyDips",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ShorterSolutions",
              "anchor": "PuzzlePackReport.ShorterSolutions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MedianMovesOverPar",
              "anchor": "PuzzlePackReport.MedianMovesOverPar",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "EvaluatePuzzlePack",
              "anchor": "EvaluatePuzzlePack",
              "decl": "func EvaluatePuzzlePack(levels []PuzzleLevel, cfg BotConfig, seed uint64) (*PuzzlePackReport, error)",
              "doc": "EvaluatePuzzlePack runs the BFS shortest-solution solver (bounded by stateLimit) and the human-like undo player across levels using deterministic seed.\n",
              "file": "pkg/playtest/puzzle_solver.go",
              "line": 646
            }
          ],
          "methods": []
        },
        {
          "name": "PuzzleScorer",
          "anchor": "PuzzleScorer",
          "decl": "type PuzzleScorer interface {\n\tProgressScore() float64\n}",
          "doc": "PuzzleScorer is optionally implemented by a PuzzleState to provide a progress heuristic (higher is closer to solved) for the human-like puzzle player.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 50,
          "members": [
            {
              "name": "ProgressScore",
              "anchor": "PuzzleScorer.ProgressScore",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PuzzleSolveResult",
          "anchor": "PuzzleSolveResult",
          "decl": "type PuzzleSolveResult struct {\n\t// Solved reports whether a solution was found within the state limit.\n\tSolved bool\n\t// Solution is the shortest sequence of moves from the start state to a solved state.\n\tSolution []PuzzleMove\n\t// Moves is len(Solution) when Solved is true, or 0 otherwise.\n\tMoves int\n\t// StatesExplored is the number of distinct states visited by BFS.\n\tStatesExplored int\n\t// HitStateLimit reports whether BFS terminated because it reached maxStates.\n\tHitStateLimit bool\n}",
          "doc": "PuzzleSolveResult is the outcome of a breadth-first shortest-solution search on one PuzzleState.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 77,
          "members": [
            {
              "name": "Solved",
              "anchor": "PuzzleSolveResult.Solved",
              "kind": "field",
              "doc": "Solved reports whether a solution was found within the state limit."
            },
            {
              "name": "Solution",
              "anchor": "PuzzleSolveResult.Solution",
              "kind": "field",
              "doc": "Solution is the shortest sequence of moves from the start state to a solved state."
            },
            {
              "name": "Moves",
              "anchor": "PuzzleSolveResult.Moves",
              "kind": "field",
              "doc": "Moves is len(Solution) when Solved is true, or 0 otherwise."
            },
            {
              "name": "StatesExplored",
              "anchor": "PuzzleSolveResult.StatesExplored",
              "kind": "field",
              "doc": "StatesExplored is the number of distinct states visited by BFS."
            },
            {
              "name": "HitStateLimit",
              "anchor": "PuzzleSolveResult.HitStateLimit",
              "kind": "field",
              "doc": "HitStateLimit reports whether BFS terminated because it reached maxStates."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SolvePuzzleBFS",
              "anchor": "SolvePuzzleBFS",
              "decl": "func SolvePuzzleBFS(start PuzzleState, maxStates int) PuzzleSolveResult",
              "doc": "SolvePuzzleBFS runs a deterministic breadth-first search from start to find the shortest sequence of moves reaching a Solved state, stopping if maxStates distinct states are visited.\nWhen maxStates <= 0, it defaults to 2,000,000 states.\n",
              "file": "pkg/playtest/puzzle_solver.go",
              "line": 92
            }
          ],
          "methods": []
        },
        {
          "name": "PuzzleSolver",
          "anchor": "PuzzleSolver",
          "decl": "type PuzzleSolver struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PuzzleSolver is the built-in \"puzzle-solver\" bot: in \"solver\" mode it plays the BFS shortest solution, and in \"human\" mode it plays like a human who explores, makes occasional mistakes, and undoes after three bad moves.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 193,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Channels",
              "anchor": "PuzzleSolver.Channels",
              "recv": "*PuzzleSolver",
              "decl": "func (b *PuzzleSolver) Channels() (actions, axes []string)",
              "doc": "Channels declares the default action names that puzzle-solver drives.\n",
              "file": "pkg/playtest/puzzle_solver.go",
              "line": 311
            },
            {
              "name": "Decide",
              "anchor": "PuzzleSolver.Decide",
              "recv": "*PuzzleSolver",
              "decl": "func (b *PuzzleSolver) Decide(_ int, _ time.Duration, rawObs any, rng *random.Stream) InputState",
              "doc": "Decide chooses the next move or undo action for one puzzle simulation step.\n",
              "file": "pkg/playtest/puzzle_solver.go",
              "line": 330
            }
          ]
        },
        {
          "name": "PuzzleState",
          "anchor": "PuzzleState",
          "decl": "type PuzzleState interface {\n\t// Key returns a unique canonical string identifying this state for visited-state deduplication.\n\tKey() string\n\t// Solved reports whether the puzzle's win condition is satisfied.\n\tSolved() bool\n\t// Dead reports whether this state is an unrecoverable loss (such as falling into a void).\n\tDead() bool\n\t// Moves returns the legal moves from this state in deterministic order.\n\tMoves() []PuzzleMove\n\t// Apply returns the next state after taking move, and whether the move changed the state.\n\tApply(move PuzzleMove) (PuzzleState, bool)\n}",
          "doc": "PuzzleState is a discrete puzzle state explored by SolvePuzzleBFS and PuzzleSolver.\n",
          "file": "pkg/playtest/puzzle_solver.go",
          "line": 36,
          "members": [
            {
              "name": "Key",
              "anchor": "PuzzleState.Key",
              "kind": "method",
              "doc": "Key returns a unique canonical string identifying this state for visited-state deduplication."
            },
            {
              "name": "Solved",
              "anchor": "PuzzleState.Solved",
              "kind": "method",
              "doc": "Solved reports whether the puzzle's win condition is satisfied."
            },
            {
              "name": "Dead",
              "anchor": "PuzzleState.Dead",
              "kind": "method",
              "doc": "Dead reports whether this state is an unrecoverable loss (such as falling into a void)."
            },
            {
              "name": "Moves",
              "anchor": "PuzzleState.Moves",
              "kind": "method",
              "doc": "Moves returns the legal moves from this state in deterministic order."
            },
            {
              "name": "Apply",
              "anchor": "PuzzleState.Apply",
              "kind": "method",
              "doc": "Apply returns the next state after taking move, and whether the move changed the state."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Report",
          "anchor": "Report",
          "decl": "type Report struct {\n\t// Version is the report schema version; it must equal ReportVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Scope identifies the project and scene that were playtested.\n\tScope Scope `yaml:\"scope\"`\n\t// Bot records the bot profile and parameters used for the runs.\n\tBot BotConfig `yaml:\"bot\"`\n\t// Rate is the fixed simulation step rate in steps per second.\n\tRate int `yaml:\"rate\"`\n\t// Speed is the configured speed multiplier.\n\tSpeed float64 `yaml:\"speed,omitempty\"`\n\t// SeedCount is the number of seeded runs included in Runs.\n\tSeedCount int `yaml:\"seedCount\"`\n\t// Passed reports whether every metric with a Goal met its goal.\n\tPassed bool `yaml:\"passed\"`\n\t// Metrics holds the aggregated value and goal check for every metric in the playtest config.\n\tMetrics []MetricReport `yaml:\"metrics,omitempty\"`\n\t// HeatMaps holds world-space position data collected from positioned events for heat maps.\n\tHeatMaps []HeatMap `yaml:\"heatMaps,omitempty\"`\n\t// Series holds labeled bar or per-level numeric series (such as hits per wave or shortest solution per level).\n\tSeries []SeriesChart `yaml:\"series,omitempty\"`\n\t// Matrices holds labeled row-vs-column numeric matrices (such as deck-pair win rates in percent).\n\tMatrices []MatrixChart `yaml:\"matrices,omitempty\"`\n\t// Runs holds per-seed outcomes, durations, counters, timers, positioned events, perf readouts and recording paths.\n\tRuns []RunReport `yaml:\"runs\"`\n}",
          "doc": "Report is the deterministic YAML report written after running a playtest batch.\n",
          "file": "pkg/playtest/report.go",
          "line": 29,
          "members": [
            {
              "name": "Version",
              "anchor": "Report.Version",
              "kind": "field",
              "doc": "Version is the report schema version; it must equal ReportVersion (1)."
            },
            {
              "name": "Scope",
              "anchor": "Report.Scope",
              "kind": "field",
              "doc": "Scope identifies the project and scene that were playtested."
            },
            {
              "name": "Bot",
              "anchor": "Report.Bot",
              "kind": "field",
              "doc": "Bot records the bot profile and parameters used for the runs."
            },
            {
              "name": "Rate",
              "anchor": "Report.Rate",
              "kind": "field",
              "doc": "Rate is the fixed simulation step rate in steps per second."
            },
            {
              "name": "Speed",
              "anchor": "Report.Speed",
              "kind": "field",
              "doc": "Speed is the configured speed multiplier."
            },
            {
              "name": "SeedCount",
              "anchor": "Report.SeedCount",
              "kind": "field",
              "doc": "SeedCount is the number of seeded runs included in Runs."
            },
            {
              "name": "Passed",
              "anchor": "Report.Passed",
              "kind": "field",
              "doc": "Passed reports whether every metric with a Goal met its goal."
            },
            {
              "name": "Metrics",
              "anchor": "Report.Metrics",
              "kind": "field",
              "doc": "Metrics holds the aggregated value and goal check for every metric in the playtest config."
            },
            {
              "name": "HeatMaps",
              "anchor": "Report.HeatMaps",
              "kind": "field",
              "doc": "HeatMaps holds world-space position data collected from positioned events for heat maps."
            },
            {
              "name": "Series",
              "anchor": "Report.Series",
              "kind": "field",
              "doc": "Series holds labeled bar or per-level numeric series (such as hits per wave or shortest solution per level)."
            },
            {
              "name": "Matrices",
              "anchor": "Report.Matrices",
              "kind": "field",
              "doc": "Matrices holds labeled row-vs-column numeric matrices (such as deck-pair win rates in percent)."
            },
            {
              "name": "Runs",
              "anchor": "Report.Runs",
              "kind": "field",
              "doc": "Runs holds per-seed outcomes, durations, counters, timers, positioned events, perf readouts and recording paths."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadReportFile",
              "anchor": "LoadReportFile",
              "decl": "func LoadReportFile(path string) (*Report, error)",
              "doc": "LoadReportFile reads, decodes and validates a YAML playtest report from disk.\n",
              "file": "pkg/playtest/report.go",
              "line": 517
            },
            {
              "name": "ParseReport",
              "anchor": "ParseReport",
              "decl": "func ParseReport(data []byte) (*Report, error)",
              "doc": "ParseReport decodes and validates a YAML playtest report, refusing unknown fields, missing or unsupported versions and trailing YAML documents.\n",
              "file": "pkg/playtest/report.go",
              "line": 410
            }
          ],
          "methods": [
            {
              "name": "MissedMetrics",
              "anchor": "Report.MissedMetrics",
              "recv": "*Report",
              "decl": "func (r *Report) MissedMetrics() []MetricReport",
              "doc": "MissedMetrics returns every MetricReport whose Status is StatusMissed.\n",
              "file": "pkg/playtest/report.go",
              "line": 171
            },
            {
              "name": "Summary",
              "anchor": "Report.Summary",
              "recv": "*Report",
              "decl": "func (r *Report) Summary() string",
              "doc": "Summary formats a concise, deterministic human-readable report summary listing every metric's value, goal, source file and MET/MISSED status.\n",
              "file": "pkg/playtest/report.go",
              "line": 185
            }
          ]
        },
        {
          "name": "RunOptions",
          "anchor": "RunOptions",
          "decl": "type RunOptions struct {\n\t// Bot overrides the bot factory resolved from cfg.Bot.Profile when non-nil.\n\tBot BotFactory\n\t// Actions overrides the watched action names recorded into each run's replay.Recording.\n\t// When empty, Run uses BotChannels.Channels if the bot implements it.\n\tActions []string\n\t// Axes overrides the watched axis names recorded into each run's replay.Recording.\n\t// When empty, Run uses BotChannels.Channels if the bot implements it.\n\tAxes []string\n\t// RecordingsDir, when non-empty, writes each run's replay.Recording as <RecordingsDir>/run_<NNN>_seed_<seed>.replay.yaml and records the relative/slash path in RunReport.Recording.\n\tRecordingsDir string\n\t// MeasurePerf, when true and the simulation provides no perf readout of its own, measures each Step call with debug.FrameStats.\n\t// Off by default so repeated headless runs produce byte-identical reports.\n\tMeasurePerf bool\n}",
          "doc": "RunOptions configures Run.\n",
          "file": "pkg/playtest/runner.go",
          "line": 38,
          "members": [
            {
              "name": "Bot",
              "anchor": "RunOptions.Bot",
              "kind": "field",
              "doc": "Bot overrides the bot factory resolved from cfg.Bot.Profile when non-nil."
            },
            {
              "name": "Actions",
              "anchor": "RunOptions.Actions",
              "kind": "field",
              "doc": "Actions overrides the watched action names recorded into each run's replay.Recording.\nWhen empty, Run uses BotChannels.Channels if the bot implements it."
            },
            {
              "name": "Axes",
              "anchor": "RunOptions.Axes",
              "kind": "field",
              "doc": "Axes overrides the watched axis names recorded into each run's replay.Recording.\nWhen empty, Run uses BotChannels.Channels if the bot implements it."
            },
            {
              "name": "RecordingsDir",
              "anchor": "RunOptions.RecordingsDir",
              "kind": "field",
              "doc": "RecordingsDir, when non-empty, writes each run's replay.Recording as <RecordingsDir>/run_<NNN>_seed_<seed>.replay.yaml and records the relative/slash path in RunReport.Recording."
            },
            {
              "name": "MeasurePerf",
              "anchor": "RunOptions.MeasurePerf",
              "kind": "field",
              "doc": "MeasurePerf, when true and the simulation provides no perf readout of its own, measures each Step call with debug.FrameStats.\nOff by default so repeated headless runs produce byte-identical reports."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RunReport",
          "anchor": "RunReport",
          "decl": "type RunReport struct {\n\t// Index is the 1-based run number within the batch.\n\tIndex int `yaml:\"index\"`\n\t// Seed is the deterministic random seed for this run.\n\tSeed uint64 `yaml:\"seed\"`\n\t// Outcome is \"finished\", \"failed\", or \"timeout\".\n\tOutcome string `yaml:\"outcome\"`\n\t// Reason is the optional failure reason when Outcome is \"failed\".\n\tReason string `yaml:\"reason,omitempty\"`\n\t// Steps is the number of fixed simulation steps executed.\n\tSteps int `yaml:\"steps\"`\n\t// DurationSeconds is the simulated run duration in seconds (Steps / Rate).\n\tDurationSeconds float64 `yaml:\"durationSeconds\"`\n\t// Recording is the slash-separated path to this run's saved .replay.yaml recording, when saved.\n\tRecording string `yaml:\"recording,omitempty\"`\n\t// Counters holds the final values of all counters reported during this run.\n\tCounters map[string]float64 `yaml:\"counters,omitempty\"`\n\t// Timers holds the recorded simulated durations in seconds of all timers reported during this run.\n\tTimers map[string]float64 `yaml:\"timers,omitempty\"`\n\t// Events holds all positioned events reported during this run.\n\tEvents []Event `yaml:\"events,omitempty\"`\n\t// Perf holds the perf readout captured for this run, when available.\n\tPerf *PerfSummary `yaml:\"perf,omitempty\"`\n}",
          "doc": "RunReport holds the deterministic results of one seeded playtest run.\n",
          "file": "pkg/playtest/report.go",
          "line": 145,
          "members": [
            {
              "name": "Index",
              "anchor": "RunReport.Index",
              "kind": "field",
              "doc": "Index is the 1-based run number within the batch."
            },
            {
              "name": "Seed",
              "anchor": "RunReport.Seed",
              "kind": "field",
              "doc": "Seed is the deterministic random seed for this run."
            },
            {
              "name": "Outcome",
              "anchor": "RunReport.Outcome",
              "kind": "field",
              "doc": "Outcome is \"finished\", \"failed\", or \"timeout\"."
            },
            {
              "name": "Reason",
              "anchor": "RunReport.Reason",
              "kind": "field",
              "doc": "Reason is the optional failure reason when Outcome is \"failed\"."
            },
            {
              "name": "Steps",
              "anchor": "RunReport.Steps",
              "kind": "field",
              "doc": "Steps is the number of fixed simulation steps executed."
            },
            {
              "name": "DurationSeconds",
              "anchor": "RunReport.DurationSeconds",
              "kind": "field",
              "doc": "DurationSeconds is the simulated run duration in seconds (Steps / Rate)."
            },
            {
              "name": "Recording",
              "anchor": "RunReport.Recording",
              "kind": "field",
              "doc": "Recording is the slash-separated path to this run's saved .replay.yaml recording, when saved."
            },
            {
              "name": "Counters",
              "anchor": "RunReport.Counters",
              "kind": "field",
              "doc": "Counters holds the final values of all counters reported during this run."
            },
            {
              "name": "Timers",
              "anchor": "RunReport.Timers",
              "kind": "field",
              "doc": "Timers holds the recorded simulated durations in seconds of all timers reported during this run."
            },
            {
              "name": "Events",
              "anchor": "RunReport.Events",
              "kind": "field",
              "doc": "Events holds all positioned events reported during this run."
            },
            {
              "name": "Perf",
              "anchor": "RunReport.Perf",
              "kind": "field",
              "doc": "Perf holds the perf readout captured for this run, when available."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RunResult",
          "anchor": "RunResult",
          "decl": "type RunResult struct {\n\t// Report is the deterministic YAML-serializable playtest report.\n\tReport *Report\n\t// Recordings holds one replay.Recording per entry in Report.Runs, in the same order.\n\tRecordings []*replay.Recording\n}",
          "doc": "RunResult holds the evaluated Report and the in-memory replay.Recording of every seeded run.\n",
          "file": "pkg/playtest/runner.go",
          "line": 55,
          "members": [
            {
              "name": "Report",
              "anchor": "RunResult.Report",
              "kind": "field",
              "doc": "Report is the deterministic YAML-serializable playtest report."
            },
            {
              "name": "Recordings",
              "anchor": "RunResult.Recordings",
              "kind": "field",
              "doc": "Recordings holds one replay.Recording per entry in Report.Runs, in the same order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Run",
              "anchor": "Run",
              "decl": "func Run(cfg *Config, makeSim SimFactory, opts RunOptions) (*RunResult, error)",
              "doc": "Run executes every seeded run configured by cfg against makeSim, records each run as a replay.Recording, evaluates every metric and goal, and returns the Report and recordings.\n",
              "file": "pkg/playtest/runner.go",
              "line": 63
            },
            {
              "name": "RunTest",
              "anchor": "RunTest",
              "decl": "func RunTest(t testing.TB, defaultConfigPath string, makeSim SimFactory, opts ...RunOptions) *RunResult",
              "doc": "RunTest loads playtest.yaml, runs the playtest against makeSim, writes the report and recordings when requested via environment variables (as `go tool game playtest` sets them), and fails t when any metric goal is missed (unless NSGO_PLAYTEST_NO_FAIL=1).\n",
              "file": "pkg/playtest/harness.go",
              "line": 28
            }
          ],
          "methods": []
        },
        {
          "name": "Runs",
          "anchor": "Runs",
          "decl": "type Runs struct {\n\t// Count is the number of seeded runs to execute; when 0 and Seeds is non-empty, it defaults to len(Seeds).\n\tCount int `yaml:\"count,omitempty\" schema:\"minimum=0\"`\n\t// Seeds lists explicit per-run random seeds; when fewer than Count, additional seeds are derived sequentially from SeedStart.\n\tSeeds []uint64 `yaml:\"seeds,omitempty\"`\n\t// SeedStart is the starting seed used when generating sequential seeds (defaults to 1 when 0).\n\tSeedStart uint64 `yaml:\"seedStart,omitempty\"`\n\t// Rate is the fixed simulation step rate in steps per second (defaults to 60 when 0).\n\tRate int `yaml:\"rate,omitempty\" schema:\"minimum=0\"`\n\t// Speed is the simulation speed multiplier metadata, such as 1 or 8 for 8x speed (defaults to 1 when 0).\n\tSpeed float64 `yaml:\"speed,omitempty\" schema:\"minimum=0\"`\n\t// MaxDuration is the simulated time limit per run before timing out, such as \"60s\" (defaults to 60s when 0).\n\tMaxDuration time.Duration `yaml:\"maxDuration,omitempty\"`\n}",
          "doc": "Runs configures how many seeded runs execute, their seeds, fixed step rate, speed and simulated time limit.\n",
          "file": "pkg/playtest/config.go",
          "line": 96,
          "members": [
            {
              "name": "Count",
              "anchor": "Runs.Count",
              "kind": "field",
              "doc": "Count is the number of seeded runs to execute; when 0 and Seeds is non-empty, it defaults to len(Seeds)."
            },
            {
              "name": "Seeds",
              "anchor": "Runs.Seeds",
              "kind": "field",
              "doc": "Seeds lists explicit per-run random seeds; when fewer than Count, additional seeds are derived sequentially from SeedStart."
            },
            {
              "name": "SeedStart",
              "anchor": "Runs.SeedStart",
              "kind": "field",
              "doc": "SeedStart is the starting seed used when generating sequential seeds (defaults to 1 when 0)."
            },
            {
              "name": "Rate",
              "anchor": "Runs.Rate",
              "kind": "field",
              "doc": "Rate is the fixed simulation step rate in steps per second (defaults to 60 when 0)."
            },
            {
              "name": "Speed",
              "anchor": "Runs.Speed",
              "kind": "field",
              "doc": "Speed is the simulation speed multiplier metadata, such as 1 or 8 for 8x speed (defaults to 1 when 0)."
            },
            {
              "name": "MaxDuration",
              "anchor": "Runs.MaxDuration",
              "kind": "field",
              "doc": "MaxDuration is the simulated time limit per run before timing out, such as \"60s\" (defaults to 60s when 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveMaxDuration",
              "anchor": "Runs.EffectiveMaxDuration",
              "recv": "Runs",
              "decl": "func (r Runs) EffectiveMaxDuration() time.Duration",
              "doc": "EffectiveMaxDuration returns the per-run simulated time limit, defaulting to 60s when unset.\n",
              "file": "pkg/playtest/config.go",
              "line": 184
            },
            {
              "name": "EffectiveRate",
              "anchor": "Runs.EffectiveRate",
              "recv": "Runs",
              "decl": "func (r Runs) EffectiveRate() int",
              "doc": "EffectiveRate returns the fixed step rate in steps per second, defaulting to 60 when unset.\n",
              "file": "pkg/playtest/config.go",
              "line": 168
            },
            {
              "name": "EffectiveSpeed",
              "anchor": "Runs.EffectiveSpeed",
              "recv": "Runs",
              "decl": "func (r Runs) EffectiveSpeed() float64",
              "doc": "EffectiveSpeed returns the speed multiplier, defaulting to 1 when unset.\n",
              "file": "pkg/playtest/config.go",
              "line": 176
            },
            {
              "name": "MaxSteps",
              "anchor": "Runs.MaxSteps",
              "recv": "Runs",
              "decl": "func (r Runs) MaxSteps() int",
              "doc": "MaxSteps returns the number of fixed steps corresponding to EffectiveMaxDuration at EffectiveRate.\n",
              "file": "pkg/playtest/config.go",
              "line": 192
            },
            {
              "name": "ResolveSeeds",
              "anchor": "Runs.ResolveSeeds",
              "recv": "Runs",
              "decl": "func (r Runs) ResolveSeeds() []uint64",
              "doc": "ResolveSeeds returns the deterministic list of per-run seeds configured by r.\n",
              "file": "pkg/playtest/config.go",
              "line": 204
            }
          ]
        },
        {
          "name": "Scope",
          "anchor": "Scope",
          "decl": "type Scope struct {\n\t// Project is the project name or relative path to the project root.\n\tProject string `yaml:\"project,omitempty\"`\n\t// Scene names the scene or level the playtest exercises, such as \"level_01\".\n\tScene string `yaml:\"scene\" schema:\"required,minLength=1\"`\n\t// Template names the template the playtest originated from, such as \"platformer2d\".\n\tTemplate string `yaml:\"template,omitempty\"`\n}",
          "doc": "Scope identifies the project, scene and optional template a playtest targets.\n",
          "file": "pkg/playtest/config.go",
          "line": 86,
          "members": [
            {
              "name": "Project",
              "anchor": "Scope.Project",
              "kind": "field",
              "doc": "Project is the project name or relative path to the project root."
            },
            {
              "name": "Scene",
              "anchor": "Scope.Scene",
              "kind": "field",
              "doc": "Scene names the scene or level the playtest exercises, such as \"level_01\"."
            },
            {
              "name": "Template",
              "anchor": "Scope.Template",
              "kind": "field",
              "doc": "Template names the template the playtest originated from, such as \"platformer2d\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SeriesChart",
          "anchor": "SeriesChart",
          "decl": "type SeriesChart struct {\n\t// Name uniquely identifies the series (such as \"hits_per_wave\" or \"shortest_solution\").\n\tName string `yaml:\"name\"`\n\t// Label is an optional display title (such as \"Hits taken per wave\").\n\tLabel string `yaml:\"label,omitempty\"`\n\t// Unit is an optional value unit (such as \"hits\" or \"moves\").\n\tUnit string `yaml:\"unit,omitempty\"`\n\t// Aggregate is how per-run bucket values were combined (such as \"median\", \"mean\", \"sum\", \"min\" or \"max\").\n\tAggregate string `yaml:\"aggregate,omitempty\"`\n\t// TargetMax, when non-nil, is an upper target line for bars; entries above it are flagged.\n\tTargetMax *float64 `yaml:\"targetMax,omitempty\"`\n\t// Entries lists each labeled bar in deterministic display order.\n\tEntries []SeriesEntry `yaml:\"entries,omitempty\"`\n}",
          "doc": "SeriesChart holds labeled numeric bars or per-bucket aggregates across runs (such as hits per wave or shortest solution moves per level).\n",
          "file": "pkg/playtest/report.go",
          "line": 57,
          "members": [
            {
              "name": "Name",
              "anchor": "SeriesChart.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the series (such as \"hits_per_wave\" or \"shortest_solution\")."
            },
            {
              "name": "Label",
              "anchor": "SeriesChart.Label",
              "kind": "field",
              "doc": "Label is an optional display title (such as \"Hits taken per wave\")."
            },
            {
              "name": "Unit",
              "anchor": "SeriesChart.Unit",
              "kind": "field",
              "doc": "Unit is an optional value unit (such as \"hits\" or \"moves\")."
            },
            {
              "name": "Aggregate",
              "anchor": "SeriesChart.Aggregate",
              "kind": "field",
              "doc": "Aggregate is how per-run bucket values were combined (such as \"median\", \"mean\", \"sum\", \"min\" or \"max\")."
            },
            {
              "name": "TargetMax",
              "anchor": "SeriesChart.TargetMax",
              "kind": "field",
              "doc": "TargetMax, when non-nil, is an upper target line for bars; entries above it are flagged."
            },
            {
              "name": "Entries",
              "anchor": "SeriesChart.Entries",
              "kind": "field",
              "doc": "Entries lists each labeled bar in deterministic display order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SeriesEntry",
          "anchor": "SeriesEntry",
          "decl": "type SeriesEntry struct {\n\t// Label identifies the bucket (such as \"wave 1\" or \"level_07\").\n\tLabel string `yaml:\"label\"`\n\t// Value is the aggregated value for this bucket.\n\tValue float64 `yaml:\"value\"`\n\t// Flag optionally marks a standout bar: \"problem\" or \"warning\".\n\tFlag string `yaml:\"flag,omitempty\"`\n\t// Note is an optional short annotation for this entry.\n\tNote string `yaml:\"note,omitempty\"`\n}",
          "doc": "SeriesEntry is one labeled value in a SeriesChart.\n",
          "file": "pkg/playtest/report.go",
          "line": 73,
          "members": [
            {
              "name": "Label",
              "anchor": "SeriesEntry.Label",
              "kind": "field",
              "doc": "Label identifies the bucket (such as \"wave 1\" or \"level_07\")."
            },
            {
              "name": "Value",
              "anchor": "SeriesEntry.Value",
              "kind": "field",
              "doc": "Value is the aggregated value for this bucket."
            },
            {
              "name": "Flag",
              "anchor": "SeriesEntry.Flag",
              "kind": "field",
              "doc": "Flag optionally marks a standout bar: \"problem\" or \"warning\"."
            },
            {
              "name": "Note",
              "anchor": "SeriesEntry.Note",
              "kind": "field",
              "doc": "Note is an optional short annotation for this entry."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShooterBot",
          "anchor": "ShooterBot",
          "decl": "type ShooterBot struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ShooterBot is the built-in \"shooter\" bot: it fires constantly, dodges incoming bullets with a fixed (or bounded) reaction time delay, and collects power-ups within a configurable radius.\n",
          "file": "pkg/playtest/shooter.go",
          "line": 71,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Channels",
              "anchor": "ShooterBot.Channels",
              "recv": "*ShooterBot",
              "decl": "func (b *ShooterBot) Channels() (actions, axes []string)",
              "doc": "Channels declares the default action and axis names that shooter drives.\n",
              "file": "pkg/playtest/shooter.go",
              "line": 183
            },
            {
              "name": "Decide",
              "anchor": "ShooterBot.Decide",
              "recv": "*ShooterBot",
              "decl": "func (b *ShooterBot) Decide(_ int, dt time.Duration, rawObs any, rng *random.Stream) InputState",
              "doc": "Decide picks ship movement, firing, focus and optional bomb inputs for one step using a reaction-delayed perception buffer.\n",
              "file": "pkg/playtest/shooter.go",
              "line": 188
            }
          ]
        },
        {
          "name": "ShooterBullet",
          "anchor": "ShooterBullet",
          "decl": "type ShooterBullet struct {\n\tX, Y   float64\n\tVX, VY float64\n\tRadius float64\n}",
          "doc": "ShooterBullet describes one active enemy projectile on the playfield.\n",
          "file": "pkg/playtest/shooter.go",
          "line": 22,
          "members": [
            {
              "name": "X",
              "anchor": "ShooterBullet.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ShooterBullet.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VX",
              "anchor": "ShooterBullet.VX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VY",
              "anchor": "ShooterBullet.VY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "ShooterBullet.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShooterObservation",
          "anchor": "ShooterObservation",
          "decl": "type ShooterObservation struct {\n\t// PlayfieldWidth and PlayfieldHeight are the stage dimensions in game points.\n\tPlayfieldWidth, PlayfieldHeight float64\n\t// ShipX, ShipY and ShipRadius are the player ship's coordinates and hit radius.\n\tShipX, ShipY, ShipRadius float64\n\t// ShipAlive reports whether the player ship is alive.\n\tShipAlive bool\n\t// Invulnerable reports whether the ship is currently invulnerable.\n\tInvulnerable bool\n\t// Bombs is the number of bombs currently available.\n\tBombs int\n\t// Wave is the 1-based current wave index (0 if not in a wave).\n\tWave int\n\t// Bullets lists active enemy projectiles.\n\tBullets []ShooterBullet\n\t// Enemies lists active on-screen enemies and bosses.\n\tEnemies []ShooterTarget\n\t// PowerUps lists active power-ups drifting on the playfield.\n\tPowerUps []ShooterPowerUp\n}",
          "doc": "ShooterObservation is the per-step world view a shoot-'em-up simulation supplies to the \"shooter\" bot.\n",
          "file": "pkg/playtest/shooter.go",
          "line": 43,
          "members": [
            {
              "name": "PlayfieldWidth",
              "anchor": "ShooterObservation.PlayfieldWidth",
              "kind": "field",
              "doc": "PlayfieldWidth and PlayfieldHeight are the stage dimensions in game points."
            },
            {
              "name": "PlayfieldHeight",
              "anchor": "ShooterObservation.PlayfieldHeight",
              "kind": "field",
              "doc": "PlayfieldWidth and PlayfieldHeight are the stage dimensions in game points."
            },
            {
              "name": "ShipX",
              "anchor": "ShooterObservation.ShipX",
              "kind": "field",
              "doc": "ShipX, ShipY and ShipRadius are the player ship's coordinates and hit radius."
            },
            {
              "name": "ShipY",
              "anchor": "ShooterObservation.ShipY",
              "kind": "field",
              "doc": "ShipX, ShipY and ShipRadius are the player ship's coordinates and hit radius."
            },
            {
              "name": "ShipRadius",
              "anchor": "ShooterObservation.ShipRadius",
              "kind": "field",
              "doc": "ShipX, ShipY and ShipRadius are the player ship's coordinates and hit radius."
            },
            {
              "name": "ShipAlive",
              "anchor": "ShooterObservation.ShipAlive",
              "kind": "field",
              "doc": "ShipAlive reports whether the player ship is alive."
            },
            {
              "name": "Invulnerable",
              "anchor": "ShooterObservation.Invulnerable",
              "kind": "field",
              "doc": "Invulnerable reports whether the ship is currently invulnerable."
            },
            {
              "name": "Bombs",
              "anchor": "ShooterObservation.Bombs",
              "kind": "field",
              "doc": "Bombs is the number of bombs currently available."
            },
            {
              "name": "Wave",
              "anchor": "ShooterObservation.Wave",
              "kind": "field",
              "doc": "Wave is the 1-based current wave index (0 if not in a wave)."
            },
            {
              "name": "Bullets",
              "anchor": "ShooterObservation.Bullets",
              "kind": "field",
              "doc": "Bullets lists active enemy projectiles."
            },
            {
              "name": "Enemies",
              "anchor": "ShooterObservation.Enemies",
              "kind": "field",
              "doc": "Enemies lists active on-screen enemies and bosses."
            },
            {
              "name": "PowerUps",
              "anchor": "ShooterObservation.PowerUps",
              "kind": "field",
              "doc": "PowerUps lists active power-ups drifting on the playfield."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShooterPowerUp",
          "anchor": "ShooterPowerUp",
          "decl": "type ShooterPowerUp struct {\n\tID   string\n\tKind string\n\tX, Y float64\n}",
          "doc": "ShooterPowerUp describes one collectible power-up drifting on the playfield.\n",
          "file": "pkg/playtest/shooter.go",
          "line": 36,
          "members": [
            {
              "name": "ID",
              "anchor": "ShooterPowerUp.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ShooterPowerUp.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "ShooterPowerUp.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ShooterPowerUp.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShooterTarget",
          "anchor": "ShooterTarget",
          "decl": "type ShooterTarget struct {\n\tX, Y   float64\n\tRadius float64\n\tIsBoss bool\n}",
          "doc": "ShooterTarget describes one active enemy or boss on the playfield.\n",
          "file": "pkg/playtest/shooter.go",
          "line": 29,
          "members": [
            {
              "name": "X",
              "anchor": "ShooterTarget.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ShooterTarget.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "ShooterTarget.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsBoss",
              "anchor": "ShooterTarget.IsBoss",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Sim",
          "anchor": "Sim",
          "decl": "type Sim struct {\n\t// Step advances the simulation by one fixed step of dt.\n\t// Like game.Loop.Update and statedump.Sim.Step, Step must call the provided replay.ActionSource's Step method once per step, or Run returns an error.\n\tStep func(dt time.Duration)\n\t// Observe returns the current state observation for the Bot before each step (such as a PlatformerObservation).\n\tObserve func() any\n\t// FrameStats is an optional debug.FrameStats whose perf readout is captured at the end of the run.\n\tFrameStats *debug.FrameStats\n\t// GC is an optional debug.GCMonitor whose allocation readout is captured at the end of the run.\n\tGC *debug.GCMonitor\n\t// Perf is an optional callback returning a PerfSummary at the end of the run; when non-nil it overrides FrameStats and GC.\n\tPerf func() *PerfSummary\n}",
          "doc": "Sim is one seeded headless simulation driven by Run.\n",
          "file": "pkg/playtest/runner.go",
          "line": 18,
          "members": [
            {
              "name": "Step",
              "anchor": "Sim.Step",
              "kind": "field",
              "doc": "Step advances the simulation by one fixed step of dt.\nLike game.Loop.Update and statedump.Sim.Step, Step must call the provided replay.ActionSource's Step method once per step, or Run returns an error."
            },
            {
              "name": "Observe",
              "anchor": "Sim.Observe",
              "kind": "field",
              "doc": "Observe returns the current state observation for the Bot before each step (such as a PlatformerObservation)."
            },
            {
              "name": "FrameStats",
              "anchor": "Sim.FrameStats",
              "kind": "field",
              "doc": "FrameStats is an optional debug.FrameStats whose perf readout is captured at the end of the run."
            },
            {
              "name": "GC",
              "anchor": "Sim.GC",
              "kind": "field",
              "doc": "GC is an optional debug.GCMonitor whose allocation readout is captured at the end of the run."
            },
            {
              "name": "Perf",
              "anchor": "Sim.Perf",
              "kind": "field",
              "doc": "Perf is an optional callback returning a PerfSummary at the end of the run; when non-nil it overrides FrameStats and GC."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SimFactory",
          "anchor": "SimFactory",
          "decl": "type SimFactory func(seed uint64, src replay.ActionSource, metrics *Collector) (Sim, error)",
          "doc": "SimFactory creates a fresh deterministic simulation for one seeded run.\nsrc is a *replay.Recorder wrapping the run's bot; calling src.Step() once per fixed step records every input transition into that run's replay.Recording.\nmetrics is the per-run *Collector where the game reports positioned events, counters, timers and outcome.\n",
          "file": "pkg/playtest/runner.go",
          "line": 35,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCardTournamentSim",
              "anchor": "NewCardTournamentSim",
              "decl": "func NewCardTournamentSim(decks []string, factory CardMatchFactory, botCfg BotConfig) SimFactory",
              "doc": "NewCardTournamentSim returns a SimFactory that executes a round-robin deck-pair tournament inside playtest.Run, recording every AI decision through replay.Recorder and reporting first-player win rate, match length, most lopsided pair, think time, and the win-rate matrix on metrics.\n",
              "file": "pkg/playtest/card_ai.go",
              "line": 557
            },
            {
              "name": "NewPuzzlePackSim",
              "anchor": "NewPuzzlePackSim",
              "decl": "func NewPuzzlePackSim(levels []PuzzleLevel, botCfg BotConfig) SimFactory",
              "doc": "NewPuzzlePackSim returns a SimFactory that runs the \"puzzle-solver\" bot through playtest.Run across every level in levels, recording replay inputs, BFS shortest solutions, difficulty dips, shorter-than-intended solutions, and human-like moves over par on metrics.\n",
              "file": "pkg/playtest/puzzle_solver.go",
              "line": 798
            }
          ],
          "methods": []
        },
        {
          "name": "TopDownExplorer",
          "anchor": "TopDownExplorer",
          "decl": "type TopDownExplorer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TopDownExplorer is the built-in \"topdown-explorer\" bot: it walks to the nearest unseen tile, talks to every NPC once, opens every chest once, and stops when the run finishes or reaches runs.maxDuration (configured at 8x speed).\n",
          "file": "pkg/playtest/topdown_explorer.go",
          "line": 94,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Channels",
              "anchor": "TopDownExplorer.Channels",
              "recv": "*TopDownExplorer",
              "decl": "func (b *TopDownExplorer) Channels() (actions, axes []string)",
              "doc": "Channels declares the default action and axis names that topdown-explorer drives.\n",
              "file": "pkg/playtest/topdown_explorer.go",
              "line": 202
            },
            {
              "name": "Decide",
              "anchor": "TopDownExplorer.Decide",
              "recv": "*TopDownExplorer",
              "decl": "func (b *TopDownExplorer) Decide(_ int, dt time.Duration, rawObs any, rng *random.Stream) InputState",
              "doc": "Decide picks the next directional movement or confirm interaction for one top-down exploration step.\n",
              "file": "pkg/playtest/topdown_explorer.go",
              "line": 220
            },
            {
              "name": "SeenCount",
              "anchor": "TopDownExplorer.SeenCount",
              "recv": "*TopDownExplorer",
              "decl": "func (b *TopDownExplorer) SeenCount(mapID string) int",
              "doc": "SeenCount returns how many unique walkable tiles the explorer has seen on mapID.\n",
              "file": "pkg/playtest/topdown_explorer.go",
              "line": 207
            },
            {
              "name": "TileDuration",
              "anchor": "TopDownExplorer.TileDuration",
              "recv": "*TopDownExplorer",
              "decl": "func (b *TopDownExplorer) TileDuration(mapID string, cell GridCell) time.Duration",
              "doc": "TileDuration returns the total simulated time spent on cell in mapID.\n",
              "file": "pkg/playtest/topdown_explorer.go",
              "line": 212
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/presence",
      "name": "presence",
      "dir": "pkg/presence",
      "page": "pkg/presence",
      "synopsis": "Package presence reports what the player is doing (level, game mode, party size, timestamps, artwork, and custom localization tokens) to Steam and Discord friend lists through a single provider-neutral API.",
      "doc": "Package presence reports what the player is doing (level, game mode, party\nsize, timestamps, artwork, and custom localization tokens) to Steam and Discord\nfriend lists through a single provider-neutral API.\n\n# Architecture\n\nA game builds an [Activity] describing the player's current state and passes\nit to a [Manager] configured with one or more [Provider] implementations:\n\n  - [Discord] speaks Discord's local IPC v1 protocol directly over Unix domain\n    sockets on macOS and Linux or named pipes on Windows, in pure Go with no\n    cgo.\n  - [Steam] calls Steamworks' flat C rich presence API\n    (ISteamFriends::SetRichPresence and ClearRichPresence) by dynamically\n    loading the Steamworks shared library through purego on desktop targets,\n    with no hand-written C.\n\nOn platforms without desktop IPC or Steamworks (web, iOS, Android) or when\nDiscord or Steam is not running, the providers return [ErrUnavailable]. A\n[Manager] fans updates out to every configured provider, deduplicates\nunchanged states, optionally throttles rapid updates via [ManagerConfig.MinInterval],\nand degrades gracefully when one provider is unavailable while another\nsucceeds.\n\n# Changing levels\n\nGames typically set their mode, party, and artwork once with [Manager.Update]\nand update the current level as the player progresses with [Manager.SetLevel]:\n\n\tmgr := presence.NewManager(\n\t\tpresence.ManagerConfig{},\n\t\tpresence.NewSteam(presence.SteamConfig{}),\n\t\tdiscordProvider,\n\t)\n\tdefer mgr.Close()\n\n\t_ = mgr.Update(ctx, presence.Activity{\n\t\tMode:      \"Campaign\",\n\t\tLevel:     \"Forest 1-2\",\n\t\tPartyID:   \"squad-42\",\n\t\tPartySize: 2,\n\t\tPartyMax:  4,\n\t})\n\t_ = mgr.SetLevel(ctx, \"Cavern 2-1\")\n\nBoth [Discord] and [Steam] accept injectable transports ([DiscordConfig.Dial]\nand [SteamConfig.Driver]) so tests can verify the exact wire frames and\nSteamworks key-value mutations deterministically without running Discord or\nSteam.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "SteamMaxKeys",
              "anchor": "SteamMaxKeys"
            },
            {
              "name": "SteamMaxKeyLength",
              "anchor": "SteamMaxKeyLength"
            },
            {
              "name": "SteamMaxValueLength",
              "anchor": "SteamMaxValueLength"
            }
          ],
          "decl": "const (\n\t// SteamMaxKeys is the maximum number of simultaneous rich presence keys\n\t// Steamworks allows for the local user (k_cchMaxRichPresenceKeys).\n\tSteamMaxKeys = 30\n\t// SteamMaxKeyLength is the maximum UTF-8 byte length of a Steam rich\n\t// presence key (excluding the NUL terminator).\n\tSteamMaxKeyLength = 63\n\t// SteamMaxValueLength is the maximum UTF-8 byte length of a Steam rich\n\t// presence value (excluding the NUL terminator).\n\tSteamMaxValueLength = 255\n)",
          "doc": "Steam rich presence limits from Steamworks' isteamfriends.h.\nSteamworks defines k_cchMaxRichPresenceKeyLength = 64 and\nk_cchMaxRichPresenceValueLength = 256 including the trailing NUL byte.\n",
          "file": "pkg/presence/steam.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "DefaultMinInterval",
              "anchor": "DefaultMinInterval"
            }
          ],
          "decl": "const DefaultMinInterval = 4 * time.Second",
          "doc": "DefaultMinInterval is the recommended minimum interval between presence\nupdates when throttling rapid state transitions for desktop clients such as\nDiscord (which rate-limits SET_ACTIVITY bursts).\n",
          "file": "pkg/presence/presence.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "DiscordMaxTextLength",
              "anchor": "DiscordMaxTextLength"
            }
          ],
          "decl": "const DiscordMaxTextLength = 128",
          "doc": "DiscordMaxTextLength is the maximum UTF-8 byte length Discord accepts for\nrich presence text fields such as details, state, and asset hover text.\n",
          "file": "pkg/presence/discord.go",
          "line": 19
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrUnavailable",
              "anchor": "ErrUnavailable"
            },
            {
              "name": "ErrClosed",
              "anchor": "ErrClosed"
            },
            {
              "name": "ErrInvalidConfig",
              "anchor": "ErrInvalidConfig"
            }
          ],
          "decl": "var (\n\t// ErrUnavailable reports that a rich presence platform or local daemon is\n\t// not running, its shared library is absent, or the current target platform\n\t// does not support the provider.\n\tErrUnavailable = errors.New(\"presence: provider unavailable\")\n\n\t// ErrClosed reports that a Provider or Manager has already been closed.\n\tErrClosed = errors.New(\"presence: closed\")\n\n\t// ErrInvalidConfig reports that a provider configuration is missing a\n\t// required field or contains an invalid setting.\n\tErrInvalidConfig = errors.New(\"presence: invalid configuration\")\n)",
          "doc": "",
          "file": "pkg/presence/presence.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "ErrSteamKeyInvalid",
              "anchor": "ErrSteamKeyInvalid"
            },
            {
              "name": "ErrSteamTooManyKeys",
              "anchor": "ErrSteamTooManyKeys"
            }
          ],
          "decl": "var (\n\t// ErrSteamKeyInvalid reports a Steam rich presence key that is empty,\n\t// contains a NUL byte, or exceeds SteamMaxKeyLength bytes.\n\tErrSteamKeyInvalid = errors.New(\"presence: invalid steam rich presence key\")\n\n\t// ErrSteamTooManyKeys reports an Activity that maps to more than\n\t// SteamMaxKeys Steam rich presence keys.\n\tErrSteamTooManyKeys = errors.New(\"presence: too many steam rich presence keys\")\n)",
          "doc": "",
          "file": "pkg/presence/steam.go",
          "line": 28
        }
      ],
      "funcs": [],
      "types": [
        {
          "name": "Activity",
          "anchor": "Activity",
          "decl": "type Activity struct {\n\t// Level names the current level, stage, map, or area (for example \"Forest 1-2\").\n\tLevel string\n\t// Mode names the current game mode (for example \"Campaign\", \"Co-op\", or \"Ranked\").\n\tMode string\n\t// Details is the primary summary line shown in presence UIs. When empty,\n\t// providers derive it from Mode and Level.\n\tDetails string\n\t// Status is the secondary state line shown in presence UIs (Discord's\n\t// \"state\" field and Steam's \"status\" key). When empty, providers derive a\n\t// readable string from Level and Mode.\n\tStatus string\n\n\t// PartyID identifies the player's current party or lobby. Maps to Discord's\n\t// party.id and Steam's \"steam_player_group\" key.\n\tPartyID string\n\t// PartySize is the current number of players in the party (0 if solo).\n\t// Maps to Discord's party.size[0] and Steam's \"steam_player_group_size\" key.\n\tPartySize int\n\t// PartyMax is the maximum capacity of the party (0 if unspecified).\n\t// Maps to Discord's party.size[1].\n\tPartyMax int\n\n\t// StartTime marks when the current activity began (shown as elapsed time on\n\t// Discord).\n\tStartTime time.Time\n\t// EndTime marks when the current activity ends (shown as remaining time on\n\t// Discord).\n\tEndTime time.Time\n\n\t// LargeImage is the Discord artwork asset key or URL for the large icon.\n\tLargeImage string\n\t// LargeText is the hover tooltip for LargeImage.\n\tLargeText string\n\t// SmallImage is the Discord artwork asset key or URL for the small badge icon.\n\tSmallImage string\n\t// SmallText is the hover tooltip for SmallImage.\n\tSmallText string\n\n\t// JoinSecret is an opaque session join token. Maps to Discord's\n\t// secrets.join and Steam's \"connect\" key when Custom[\"connect\"] is unset.\n\tJoinSecret string\n\n\t// Custom holds additional provider-specific key-value pairs, primarily for\n\t// Steam rich presence localization tokens such as \"steam_display\",\n\t// \"connect\", \"steam_player_group\", \"steam_player_group_size\", or custom\n\t// token parameters.\n\tCustom map[string]string\n}",
          "doc": "Activity describes what the player is currently doing in the game.\n\nAll fields are optional. Providers translate the populated fields into their\nnative representation: Discord's SET_ACTIVITY payload and Steam's\nISteamFriends rich presence key-value table.\n",
          "file": "pkg/presence/presence.go",
          "line": 38,
          "members": [
            {
              "name": "Level",
              "anchor": "Activity.Level",
              "kind": "field",
              "doc": "Level names the current level, stage, map, or area (for example \"Forest 1-2\")."
            },
            {
              "name": "Mode",
              "anchor": "Activity.Mode",
              "kind": "field",
              "doc": "Mode names the current game mode (for example \"Campaign\", \"Co-op\", or \"Ranked\")."
            },
            {
              "name": "Details",
              "anchor": "Activity.Details",
              "kind": "field",
              "doc": "Details is the primary summary line shown in presence UIs. When empty,\nproviders derive it from Mode and Level."
            },
            {
              "name": "Status",
              "anchor": "Activity.Status",
              "kind": "field",
              "doc": "Status is the secondary state line shown in presence UIs (Discord's\n\"state\" field and Steam's \"status\" key). When empty, providers derive a\nreadable string from Level and Mode."
            },
            {
              "name": "PartyID",
              "anchor": "Activity.PartyID",
              "kind": "field",
              "doc": "PartyID identifies the player's current party or lobby. Maps to Discord's\nparty.id and Steam's \"steam_player_group\" key."
            },
            {
              "name": "PartySize",
              "anchor": "Activity.PartySize",
              "kind": "field",
              "doc": "PartySize is the current number of players in the party (0 if solo).\nMaps to Discord's party.size[0] and Steam's \"steam_player_group_size\" key."
            },
            {
              "name": "PartyMax",
              "anchor": "Activity.PartyMax",
              "kind": "field",
              "doc": "PartyMax is the maximum capacity of the party (0 if unspecified).\nMaps to Discord's party.size[1]."
            },
            {
              "name": "StartTime",
              "anchor": "Activity.StartTime",
              "kind": "field",
              "doc": "StartTime marks when the current activity began (shown as elapsed time on\nDiscord)."
            },
            {
              "name": "EndTime",
              "anchor": "Activity.EndTime",
              "kind": "field",
              "doc": "EndTime marks when the current activity ends (shown as remaining time on\nDiscord)."
            },
            {
              "name": "LargeImage",
              "anchor": "Activity.LargeImage",
              "kind": "field",
              "doc": "LargeImage is the Discord artwork asset key or URL for the large icon."
            },
            {
              "name": "LargeText",
              "anchor": "Activity.LargeText",
              "kind": "field",
              "doc": "LargeText is the hover tooltip for LargeImage."
            },
            {
              "name": "SmallImage",
              "anchor": "Activity.SmallImage",
              "kind": "field",
              "doc": "SmallImage is the Discord artwork asset key or URL for the small badge icon."
            },
            {
              "name": "SmallText",
              "anchor": "Activity.SmallText",
              "kind": "field",
              "doc": "SmallText is the hover tooltip for SmallImage."
            },
            {
              "name": "JoinSecret",
              "anchor": "Activity.JoinSecret",
              "kind": "field",
              "doc": "JoinSecret is an opaque session join token. Maps to Discord's\nsecrets.join and Steam's \"connect\" key when Custom[\"connect\"] is unset."
            },
            {
              "name": "Custom",
              "anchor": "Activity.Custom",
              "kind": "field",
              "doc": "Custom holds additional provider-specific key-value pairs, primarily for\nSteam rich presence localization tokens such as \"steam_display\",\n\"connect\", \"steam_player_group\", \"steam_player_group_size\", or custom\ntoken parameters."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Activity.Clone",
              "recv": "Activity",
              "decl": "func (a Activity) Clone() Activity",
              "doc": "Clone returns a copy of a with an independent Custom map so later mutations\ndo not alias stored state.\n",
              "file": "pkg/presence/presence.go",
              "line": 90
            },
            {
              "name": "Equal",
              "anchor": "Activity.Equal",
              "recv": "Activity",
              "decl": "func (a Activity) Equal(b Activity) bool",
              "doc": "Equal reports whether a and b represent the same rich presence state.\n",
              "file": "pkg/presence/presence.go",
              "line": 98
            },
            {
              "name": "Summary",
              "anchor": "Activity.Summary",
              "recv": "Activity",
              "decl": "func (a Activity) Summary() string",
              "doc": "Summary returns a single human-readable status string derived from a, using\nStatus if set, otherwise Details, otherwise combining Mode and Level.\n",
              "file": "pkg/presence/presence.go",
              "line": 118
            }
          ]
        },
        {
          "name": "Discord",
          "anchor": "Discord",
          "decl": "type Discord struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Discord publishes rich presence updates to a locally running Discord desktop\nclient using Discord's local IPC v1 protocol in pure Go (no cgo).\n\nConnections are established lazily on the first Set or Clear call (or eagerly\nvia [Discord.Connect]). If Discord is not running or the current target has\nno desktop IPC transport, Set and Clear return [ErrUnavailable]. If an active\nIPC connection drops mid-session, Discord automatically attempts a single\nreconnect and handshake before returning an error.\n\nAll methods on Discord are safe for concurrent use.\n",
          "file": "pkg/presence/discord.go",
          "line": 58,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDiscord",
              "anchor": "NewDiscord",
              "decl": "func NewDiscord(cfg DiscordConfig) (*Discord, error)",
              "doc": "NewDiscord constructs a Discord rich presence provider. It returns\n[ErrInvalidConfig] if cfg.ClientID is empty or whitespace.\n",
              "file": "pkg/presence/discord.go",
              "line": 71
            }
          ],
          "methods": [
            {
              "name": "Clear",
              "anchor": "Discord.Clear",
              "recv": "*Discord",
              "decl": "func (d *Discord) Clear(ctx context.Context) error",
              "doc": "Clear removes the current Discord rich presence by sending SET_ACTIVITY with\nactivity set to null.\n",
              "file": "pkg/presence/discord.go",
              "line": 127
            },
            {
              "name": "Close",
              "anchor": "Discord.Close",
              "recv": "*Discord",
              "decl": "func (d *Discord) Close() error",
              "doc": "Close closes the Discord IPC connection and marks the provider closed.\n",
              "file": "pkg/presence/discord.go",
              "line": 138
            },
            {
              "name": "Connect",
              "anchor": "Discord.Connect",
              "recv": "*Discord",
              "decl": "func (d *Discord) Connect(ctx context.Context) error",
              "doc": "Connect eagerly opens the local Discord IPC connection and performs the v1\nhandshake if not already connected.\n",
              "file": "pkg/presence/discord.go",
              "line": 96
            },
            {
              "name": "Name",
              "anchor": "Discord.Name",
              "recv": "*Discord",
              "decl": "func (d *Discord) Name() string",
              "doc": "Name returns \"discord\".\n",
              "file": "pkg/presence/discord.go",
              "line": 92
            },
            {
              "name": "Set",
              "anchor": "Discord.Set",
              "recv": "*Discord",
              "decl": "func (d *Discord) Set(ctx context.Context, activity Activity) error",
              "doc": "Set publishes activity to the local Discord client via SET_ACTIVITY.\n",
              "file": "pkg/presence/discord.go",
              "line": 113
            }
          ]
        },
        {
          "name": "DiscordConfig",
          "anchor": "DiscordConfig",
          "decl": "type DiscordConfig struct {\n\t// ClientID is the Discord Application ID from the Discord Developer Portal.\n\t// Required.\n\tClientID string\n\n\t// PID is the process ID reported in SET_ACTIVITY commands. When zero or\n\t// negative, os.Getpid() is used.\n\tPID int\n\n\t// Dial opens the local Discord IPC transport. When nil, the platform\n\t// default is used (Unix domain sockets discord-ipc-0..9 on macOS and Linux,\n\t// named pipes \\\\.\\pipe\\discord-ipc-0..9 on Windows, and ErrUnavailable on\n\t// mobile and web targets).\n\tDial func(ctx context.Context) (io.ReadWriteCloser, error)\n}",
          "doc": "DiscordConfig configures a [Discord] local IPC rich presence provider.\n",
          "file": "pkg/presence/discord.go",
          "line": 32,
          "members": [
            {
              "name": "ClientID",
              "anchor": "DiscordConfig.ClientID",
              "kind": "field",
              "doc": "ClientID is the Discord Application ID from the Discord Developer Portal.\nRequired."
            },
            {
              "name": "PID",
              "anchor": "DiscordConfig.PID",
              "kind": "field",
              "doc": "PID is the process ID reported in SET_ACTIVITY commands. When zero or\nnegative, os.Getpid() is used."
            },
            {
              "name": "Dial",
              "anchor": "DiscordConfig.Dial",
              "kind": "field",
              "doc": "Dial opens the local Discord IPC transport. When nil, the platform\ndefault is used (Unix domain sockets discord-ipc-0..9 on macOS and Linux,\nnamed pipes \\\\.\\pipe\\discord-ipc-0..9 on Windows, and ErrUnavailable on\nmobile and web targets)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Manager",
          "anchor": "Manager",
          "decl": "type Manager struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Manager fans rich presence updates out to one or more [Provider] backends\n(for example Steam and Discord simultaneously), deduplicates unchanged\nactivities, optionally throttles bursts via [ManagerConfig.MinInterval], and\ndegrades gracefully when a platform daemon is unavailable.\n\nAll methods on Manager are safe for concurrent use.\n",
          "file": "pkg/presence/presence.go",
          "line": 197,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewManager",
              "anchor": "NewManager",
              "decl": "func NewManager(cfg ManagerConfig, providers ...Provider) *Manager",
              "doc": "NewManager constructs a Manager that fans out updates to providers. Nil\nentries in providers are ignored.\n",
              "file": "pkg/presence/presence.go",
              "line": 224
            }
          ],
          "methods": [
            {
              "name": "Activity",
              "anchor": "Manager.Activity",
              "recv": "*Manager",
              "decl": "func (m *Manager) Activity() (Activity, bool)",
              "doc": "Activity returns a copy of the latest desired activity and whether rich\npresence is currently active.\n",
              "file": "pkg/presence/presence.go",
              "line": 486
            },
            {
              "name": "Clear",
              "anchor": "Manager.Clear",
              "recv": "*Manager",
              "decl": "func (m *Manager) Clear(ctx context.Context) error",
              "doc": "Clear removes active rich presence on all configured providers and cancels\nany pending throttled update.\n",
              "file": "pkg/presence/presence.go",
              "line": 364
            },
            {
              "name": "Close",
              "anchor": "Manager.Close",
              "recv": "*Manager",
              "decl": "func (m *Manager) Close() error",
              "doc": "Close closes every configured provider and marks the Manager as closed.\nSubsequent calls to Close are no-ops and return nil.\n",
              "file": "pkg/presence/presence.go",
              "line": 505
            },
            {
              "name": "Flush",
              "anchor": "Manager.Flush",
              "recv": "*Manager",
              "decl": "func (m *Manager) Flush(ctx context.Context) error",
              "doc": "Flush immediately pushes any pending coalesced update regardless of\n[ManagerConfig.MinInterval].\n",
              "file": "pkg/presence/presence.go",
              "line": 447
            },
            {
              "name": "Pending",
              "anchor": "Manager.Pending",
              "recv": "*Manager",
              "decl": "func (m *Manager) Pending() bool",
              "doc": "Pending reports whether a rate-limited update is currently waiting to be\npushed by [Manager.Poll] or [Manager.Flush].\n",
              "file": "pkg/presence/presence.go",
              "line": 497
            },
            {
              "name": "Poll",
              "anchor": "Manager.Poll",
              "recv": "*Manager",
              "decl": "func (m *Manager) Poll(ctx context.Context) error",
              "doc": "Poll pushes a coalesced pending update if [ManagerConfig.MinInterval] has\nelapsed since the previous push. Games using MinInterval can call Poll from\ntheir update loop or periodic tick.\n",
              "file": "pkg/presence/presence.go",
              "line": 404
            },
            {
              "name": "SetLevel",
              "anchor": "Manager.SetLevel",
              "recv": "*Manager",
              "decl": "func (m *Manager) SetLevel(ctx context.Context, level string) error",
              "doc": "SetLevel updates the Level field of the current activity while preserving its\nother fields (such as Mode, party, assets, timestamps, and Custom keys), then\npushes the update to all configured providers.\n",
              "file": "pkg/presence/presence.go",
              "line": 316
            },
            {
              "name": "SetMode",
              "anchor": "Manager.SetMode",
              "recv": "*Manager",
              "decl": "func (m *Manager) SetMode(ctx context.Context, mode string) error",
              "doc": "SetMode updates the Mode field of the current activity while preserving its\nother fields, then pushes the update to all configured providers.\n",
              "file": "pkg/presence/presence.go",
              "line": 331
            },
            {
              "name": "SetParty",
              "anchor": "Manager.SetParty",
              "recv": "*Manager",
              "decl": "func (m *Manager) SetParty(ctx context.Context, id string, size, max int) error",
              "doc": "SetParty updates the PartyID, PartySize, and PartyMax fields of the current\nactivity while preserving its other fields, then pushes the update to all\nconfigured providers.\n",
              "file": "pkg/presence/presence.go",
              "line": 347
            },
            {
              "name": "Update",
              "anchor": "Manager.Update",
              "recv": "*Manager",
              "decl": "func (m *Manager) Update(ctx context.Context, activity Activity) error",
              "doc": "Update publishes activity to all configured providers.\n\nIf activity equals the last applied state (and no earlier update is pending),\nUpdate is a no-op and returns nil. When [ManagerConfig.MinInterval] is\npositive and has not yet elapsed since the previous push, Update coalesces\nactivity as pending and returns nil; call [Manager.Poll] once the interval\nelapses or [Manager.Flush] to push immediately.\n\nIf at least one provider succeeds and the remaining providers return\n[ErrUnavailable], Update returns nil so a missing optional client (such as\nDiscord not running) does not fail the update. If all providers return\n[ErrUnavailable], Update returns [ErrUnavailable]. Any non-unavailable\nprovider errors are joined and returned while still updating all other\nproviders.\n",
              "file": "pkg/presence/presence.go",
              "line": 261
            }
          ]
        },
        {
          "name": "ManagerConfig",
          "anchor": "ManagerConfig",
          "decl": "type ManagerConfig struct {\n\t// MinInterval enforces a minimum duration between consecutive provider\n\t// pushes. When zero, every distinct update is pushed immediately. When\n\t// positive, updates arriving within MinInterval of the last push are\n\t// coalesced and kept pending until Poll is called after MinInterval elapses\n\t// or Flush is called.\n\tMinInterval time.Duration\n\n\t// Now returns the current time for MinInterval throttling. When nil,\n\t// time.Now is used.\n\tNow func() time.Time\n\n\t// OnError, if non-nil, is called whenever an individual provider returns an\n\t// error during Update, SetLevel, Clear, Poll, or Flush (including\n\t// ErrUnavailable). It is invoked without holding the Manager's internal\n\t// lock.\n\tOnError func(provider string, err error)\n}",
          "doc": "ManagerConfig configures a [Manager].\n",
          "file": "pkg/presence/presence.go",
          "line": 172,
          "members": [
            {
              "name": "MinInterval",
              "anchor": "ManagerConfig.MinInterval",
              "kind": "field",
              "doc": "MinInterval enforces a minimum duration between consecutive provider\npushes. When zero, every distinct update is pushed immediately. When\npositive, updates arriving within MinInterval of the last push are\ncoalesced and kept pending until Poll is called after MinInterval elapses\nor Flush is called."
            },
            {
              "name": "Now",
              "anchor": "ManagerConfig.Now",
              "kind": "field",
              "doc": "Now returns the current time for MinInterval throttling. When nil,\ntime.Now is used."
            },
            {
              "name": "OnError",
              "anchor": "ManagerConfig.OnError",
              "kind": "field",
              "doc": "OnError, if non-nil, is called whenever an individual provider returns an\nerror during Update, SetLevel, Clear, Poll, or Flush (including\nErrUnavailable). It is invoked without holding the Manager's internal\nlock."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Provider",
          "anchor": "Provider",
          "decl": "type Provider interface {\n\t// Set publishes activity to the platform.\n\tSet(ctx context.Context, activity Activity) error\n\t// Clear removes any active rich presence from the platform.\n\tClear(ctx context.Context) error\n\t// Close releases platform resources held by the provider.\n\tClose() error\n}",
          "doc": "Provider publishes rich presence state to a single platform (such as Steam or\nDiscord).\n",
          "file": "pkg/presence/presence.go",
          "line": 151,
          "members": [
            {
              "name": "Set",
              "anchor": "Provider.Set",
              "kind": "method",
              "doc": "Set publishes activity to the platform."
            },
            {
              "name": "Clear",
              "anchor": "Provider.Clear",
              "kind": "method",
              "doc": "Clear removes any active rich presence from the platform."
            },
            {
              "name": "Close",
              "anchor": "Provider.Close",
              "kind": "method",
              "doc": "Close releases platform resources held by the provider."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Steam",
          "anchor": "Steam",
          "decl": "type Steam struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Steam publishes rich presence updates through Steamworks'\nISteamFriends::SetRichPresence and ClearRichPresence flat C API using purego\n(no cgo or hand-written C).\n\nSteam maps an [Activity] into Steam rich presence keys:\n  - \"status\": derived from Activity.Summary() (Status, Details, Mode - Level, Level, or Mode)\n  - \"level\": Activity.Level when non-empty (usable by Steam localization tokens as %level%)\n  - \"mode\": Activity.Mode when non-empty (usable by Steam localization tokens as %mode%)\n  - \"steam_player_group\": Activity.PartyID when non-empty\n  - \"steam_player_group_size\": strconv.Itoa(Activity.PartySize) when PartySize > 0\n  - \"connect\": Activity.JoinSecret when non-empty\n  - \"steam_display\": SteamConfig.DisplayToken when configured and presence is non-empty\n  - Activity.Custom entries override or add keys; setting a key to \"\" omits it.\n\nRemoved keys from a previous Set call are deleted via SetRichPresence(key, \"\")\nwithout clearing unchanged keys, avoiding friend-list flicker.\n\nAll methods on Steam are safe for concurrent use.\n",
          "file": "pkg/presence/steam.go",
          "line": 107,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSteam",
              "anchor": "NewSteam",
              "decl": "func NewSteam(cfg SteamConfig) *Steam",
              "doc": "NewSteam constructs a Steam rich presence provider. If cfg.Driver is nil,\nSteam loads the Steamworks shared library lazily on the first Set or Clear\ncall so games can construct Steam unconditionally on every target.\n",
              "file": "pkg/presence/steam.go",
              "line": 118
            }
          ],
          "methods": [
            {
              "name": "Clear",
              "anchor": "Steam.Clear",
              "recv": "*Steam",
              "decl": "func (s *Steam) Clear(ctx context.Context) error",
              "doc": "Clear clears all Steam rich presence keys for the local user.\n",
              "file": "pkg/presence/steam.go",
              "line": 194
            },
            {
              "name": "Close",
              "anchor": "Steam.Close",
              "recv": "*Steam",
              "decl": "func (s *Steam) Close() error",
              "doc": "Close releases the underlying SteamDriver (if opened) and marks the provider\nclosed.\n",
              "file": "pkg/presence/steam.go",
              "line": 219
            },
            {
              "name": "Name",
              "anchor": "Steam.Name",
              "recv": "*Steam",
              "decl": "func (s *Steam) Name() string",
              "doc": "Name returns \"steam\".\n",
              "file": "pkg/presence/steam.go",
              "line": 126
            },
            {
              "name": "Set",
              "anchor": "Steam.Set",
              "recv": "*Steam",
              "decl": "func (s *Steam) Set(ctx context.Context, activity Activity) error",
              "doc": "Set publishes activity to Steam's ISteamFriends rich presence table.\n",
              "file": "pkg/presence/steam.go",
              "line": 129
            }
          ]
        },
        {
          "name": "SteamConfig",
          "anchor": "SteamConfig",
          "decl": "type SteamConfig struct {\n\t// LibraryPath overrides the shared library path loaded on desktop targets\n\t// (for example a custom path to libsteam_api.dylib, libsteam_api.so, or\n\t// steam_api64.dll). When empty, standard library names beside the game\n\t// executable and on the system loader path are tried.\n\tLibraryPath string\n\n\t// DisplayToken sets the default \"steam_display\" localization token (for\n\t// example \"#Status_InLevel\") when Activity.Custom[\"steam_display\"] is not\n\t// set and the activity produces at least one rich presence key.\n\tDisplayToken string\n\n\t// AutoInit, when true, calls SteamAPI_Init if ISteamFriends is not yet\n\t// initialized when opening the Steamworks library, and calls\n\t// SteamAPI_Shutdown on Close if Steam initialized it. Leave false when the\n\t// game initializes Steamworks elsewhere.\n\tAutoInit bool\n\n\t// Driver overrides dynamic purego loading with a custom or mock\n\t// SteamDriver.\n\tDriver SteamDriver\n}",
          "doc": "SteamConfig configures a [Steam] rich presence provider.\n",
          "file": "pkg/presence/steam.go",
          "line": 66,
          "members": [
            {
              "name": "LibraryPath",
              "anchor": "SteamConfig.LibraryPath",
              "kind": "field",
              "doc": "LibraryPath overrides the shared library path loaded on desktop targets\n(for example a custom path to libsteam_api.dylib, libsteam_api.so, or\nsteam_api64.dll). When empty, standard library names beside the game\nexecutable and on the system loader path are tried."
            },
            {
              "name": "DisplayToken",
              "anchor": "SteamConfig.DisplayToken",
              "kind": "field",
              "doc": "DisplayToken sets the default \"steam_display\" localization token (for\nexample \"#Status_InLevel\") when Activity.Custom[\"steam_display\"] is not\nset and the activity produces at least one rich presence key."
            },
            {
              "name": "AutoInit",
              "anchor": "SteamConfig.AutoInit",
              "kind": "field",
              "doc": "AutoInit, when true, calls SteamAPI_Init if ISteamFriends is not yet\ninitialized when opening the Steamworks library, and calls\nSteamAPI_Shutdown on Close if Steam initialized it. Leave false when the\ngame initializes Steamworks elsewhere."
            },
            {
              "name": "Driver",
              "anchor": "SteamConfig.Driver",
              "kind": "field",
              "doc": "Driver overrides dynamic purego loading with a custom or mock\nSteamDriver."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SteamDriver",
          "anchor": "SteamDriver",
          "decl": "type SteamDriver interface {\n\t// SetRichPresence corresponds to ISteamFriends::SetRichPresence(key, value).\n\t// Passing an empty value deletes the key.\n\tSetRichPresence(key, value string) bool\n\t// ClearRichPresence corresponds to ISteamFriends::ClearRichPresence().\n\tClearRichPresence()\n\t// Close releases any dynamic library handles owned by the driver.\n\tClose() error\n}",
          "doc": "SteamDriver is the low-level binding to Steamworks ISteamFriends rich\npresence functions.\n\nBy default, [NewSteam] dynamically loads the Steamworks shared library via\npurego on desktop platforms (macOS, Linux, and Windows) and returns\n[ErrUnavailable] on mobile/web targets or when the library or Steam client is\nabsent. Tests and custom integrations can inject a SteamDriver through\n[SteamConfig.Driver].\n",
          "file": "pkg/presence/steam.go",
          "line": 55,
          "members": [
            {
              "name": "SetRichPresence",
              "anchor": "SteamDriver.SetRichPresence",
              "kind": "method",
              "doc": "SetRichPresence corresponds to ISteamFriends::SetRichPresence(key, value).\nPassing an empty value deletes the key."
            },
            {
              "name": "ClearRichPresence",
              "anchor": "SteamDriver.ClearRichPresence",
              "kind": "method",
              "doc": "ClearRichPresence corresponds to ISteamFriends::ClearRichPresence()."
            },
            {
              "name": "Close",
              "anchor": "SteamDriver.Close",
              "kind": "method",
              "doc": "Close releases any dynamic library handles owned by the driver."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/procgen",
      "name": "procgen",
      "dir": "pkg/procgen",
      "page": "pkg/procgen",
      "synopsis": "Package procgen generates seeded, deterministic 2D levels on a tile grid: BSP rooms joined by corridors, cellular-automata caves, wave function collapse over a YAML rule set, and hand-made room templates placed on a dungeon layout graph.",
      "doc": "Package procgen generates seeded, deterministic 2D levels on a tile grid: BSP rooms joined by corridors, cellular-automata caves, wave function collapse over a YAML rule set, and hand-made room templates placed on a dungeon layout graph.\n\nEvery generator draws all of its randomness from a random.Stream, so the same seed and configuration produce the same Grid, cell for cell, on every operating system and architecture. BSP, Cave and GenerateRooms always leave their walkable cells as one 4-connected region, and so does WFC unless WFCConfig.AllowDisconnected is set or its rules have no walkable tile; Regions and Connected check this, and a game can run the same check on a level it edits afterwards.\n\nA Grid holds one uint32 value per cell. BSP, Cave and GenerateRooms write Wall and Floor (room templates may also use custom tile values); WFC writes indexes into its Rules' tiles. Paint copies a Grid into a tilemap.Tilemap layer through a value-to-GID function, and GridFromTilemap reads a tilemap layer back into a Grid.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "Wall",
              "anchor": "Wall"
            },
            {
              "name": "Floor",
              "anchor": "Floor"
            }
          ],
          "decl": "const (\n\t// Wall is a solid cell. It is also the value of every cell of a new Grid.\n\tWall uint32 = 0\n\t// Floor is a walkable cell.\n\tFloor uint32 = 1\n)",
          "doc": "Cell values written by BSP and Cave.\n",
          "file": "pkg/procgen/grid.go",
          "line": 10
        },
        {
          "idents": [
            {
              "name": "MaxCells",
              "anchor": "MaxCells"
            }
          ],
          "decl": "const MaxCells = 1 << 24",
          "doc": "MaxCells is the largest Width*Height any generator accepts. It keeps cell counts within int on 32-bit targets and cell indexes within int32, and bounds a level's memory.\n",
          "file": "pkg/procgen/bsp.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "MaxSide",
              "anchor": "MaxSide"
            }
          ],
          "decl": "const MaxSide = 1 << 16",
          "doc": "MaxSide is the largest Width or Height any generator accepts.\n",
          "file": "pkg/procgen/bsp.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "MaxWFCCells",
              "anchor": "MaxWFCCells"
            }
          ],
          "decl": "const MaxWFCCells = 1 << 12",
          "doc": "MaxWFCCells is the largest Width*Height WFC accepts, 64 by 64. Each collapse rescans the grid and, with the connectivity constraint, searches the walkable area again, so one attempt costs roughly the square of the cell count: a 32 by 24 level takes tens of milliseconds, 64 by 64 about a second, and 128 by 128 would take more than ten. Build a larger map from smaller WFC pieces, or use BSP or Cave for it.\n",
          "file": "pkg/procgen/wfc.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "RoomTemplatesVersion",
              "anchor": "RoomTemplatesVersion"
            }
          ],
          "decl": "const RoomTemplatesVersion = 1",
          "doc": "RoomTemplatesVersion is the room template set schema version this package reads and writes.\n",
          "file": "pkg/procgen/room_templates.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "RulesVersion",
              "anchor": "RulesVersion"
            }
          ],
          "decl": "const RulesVersion = 1",
          "doc": "RulesVersion is the WFC rule file schema version this package reads and writes.\n",
          "file": "pkg/procgen/rules.go",
          "line": 14
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrInvalidConfig",
              "anchor": "ErrInvalidConfig"
            }
          ],
          "decl": "var ErrInvalidConfig = errors.New(\"procgen: invalid config\")",
          "doc": "ErrInvalidConfig is wrapped by every error a generator returns for a configuration it cannot use.\n",
          "file": "pkg/procgen/bsp.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "ErrNoFloor",
              "anchor": "ErrNoFloor"
            }
          ],
          "decl": "var ErrNoFloor = errors.New(\"procgen: generated level has no floor\")",
          "doc": "ErrNoFloor is returned when a generator ends with no walkable cell, for example a cave whose noise smoothed into solid rock. Retrying with another seed usually succeeds.\n",
          "file": "pkg/procgen/cave.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "ErrNoLayout",
              "anchor": "ErrNoLayout"
            }
          ],
          "decl": "var ErrNoLayout = errors.New(\"procgen: room placement found no valid layout\")",
          "doc": "ErrNoLayout is returned when room placement exhausts its attempts without finding a non-overlapping, connected layout that satisfies the graph and templates.\n",
          "file": "pkg/procgen/dungeon_rooms.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "ErrNoSolution",
              "anchor": "ErrNoSolution"
            }
          ],
          "decl": "var ErrNoSolution = errors.New(\"procgen: wave function collapse found no solution\")",
          "doc": "ErrNoSolution is returned when WFC exhausts its attempts without a level that satisfies the rules and, unless disabled, the connectivity constraint.\n",
          "file": "pkg/procgen/wfc.go",
          "line": 12
        }
      ],
      "funcs": [
        {
          "name": "EncodeRoomTemplates",
          "anchor": "EncodeRoomTemplates",
          "decl": "func EncodeRoomTemplates(rt *RoomTemplates) ([]byte, error)",
          "doc": "EncodeRoomTemplates validates rt and writes it as deterministic 2-space YAML with fields in fixed order, so ParseRoomTemplates followed by EncodeRoomTemplates reproduces the exact bytes.\n",
          "file": "pkg/procgen/room_templates.go",
          "line": 274
        },
        {
          "name": "EncodeRules",
          "anchor": "EncodeRules",
          "decl": "func EncodeRules(r *Rules) ([]byte, error)",
          "doc": "EncodeRules validates r and writes it as 2-space YAML with fields in a fixed order and tiles and neighbors in their given order, so ParseRules followed by EncodeRules reproduces a file EncodeRules wrote.\n",
          "file": "pkg/procgen/rules.go",
          "line": 87
        },
        {
          "name": "IsFloor",
          "anchor": "IsFloor",
          "decl": "func IsFloor(v uint32) bool",
          "doc": "IsFloor reports whether v is Floor. It is the passable function for grids made by BSP and Cave.\n",
          "file": "pkg/procgen/grid.go",
          "line": 113
        }
      ],
      "types": [
        {
          "name": "BSPConfig",
          "anchor": "BSPConfig",
          "decl": "type BSPConfig struct {\n\t// Width and Height are the level's size in cells. The outermost ring of cells is always Wall, so both must be at least MinLeaf+2 and at most MaxSide, and Width*Height at most MaxCells.\n\tWidth, Height int\n\t// MinLeaf is the smallest side of a partition, in cells; a partition is split while one of its sides is at least twice MinLeaf. The default is 10, and it must be at least MinRoom+2*Padding.\n\tMinLeaf int\n\t// MinRoom is the smallest side of a room, in cells. The default is 4.\n\tMinRoom int\n\t// MaxRoom caps a room's side, in cells; 0 leaves rooms as large as their partition allows. When set it must be at least MinRoom.\n\tMaxRoom int\n\t// Padding is the number of Wall cells kept between a room and the edges of its partition. The default and minimum is 1, which keeps neighbouring rooms from merging.\n\tPadding int\n\t// Loops adds this many extra corridors between randomly chosen rooms on top of the spanning corridors, so the level has cycles. The default is 0.\n\tLoops int\n}",
          "doc": "BSPConfig configures BSP. Zero fields take the defaults given on each field.\n",
          "file": "pkg/procgen/bsp.go",
          "line": 25,
          "members": [
            {
              "name": "Width",
              "anchor": "BSPConfig.Width",
              "kind": "field",
              "doc": "Width and Height are the level's size in cells. The outermost ring of cells is always Wall, so both must be at least MinLeaf+2 and at most MaxSide, and Width*Height at most MaxCells."
            },
            {
              "name": "Height",
              "anchor": "BSPConfig.Height",
              "kind": "field",
              "doc": "Width and Height are the level's size in cells. The outermost ring of cells is always Wall, so both must be at least MinLeaf+2 and at most MaxSide, and Width*Height at most MaxCells."
            },
            {
              "name": "MinLeaf",
              "anchor": "BSPConfig.MinLeaf",
              "kind": "field",
              "doc": "MinLeaf is the smallest side of a partition, in cells; a partition is split while one of its sides is at least twice MinLeaf. The default is 10, and it must be at least MinRoom+2*Padding."
            },
            {
              "name": "MinRoom",
              "anchor": "BSPConfig.MinRoom",
              "kind": "field",
              "doc": "MinRoom is the smallest side of a room, in cells. The default is 4."
            },
            {
              "name": "MaxRoom",
              "anchor": "BSPConfig.MaxRoom",
              "kind": "field",
              "doc": "MaxRoom caps a room's side, in cells; 0 leaves rooms as large as their partition allows. When set it must be at least MinRoom."
            },
            {
              "name": "Padding",
              "anchor": "BSPConfig.Padding",
              "kind": "field",
              "doc": "Padding is the number of Wall cells kept between a room and the edges of its partition. The default and minimum is 1, which keeps neighbouring rooms from merging."
            },
            {
              "name": "Loops",
              "anchor": "BSPConfig.Loops",
              "kind": "field",
              "doc": "Loops adds this many extra corridors between randomly chosen rooms on top of the spanning corridors, so the level has cycles. The default is 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CaveConfig",
          "anchor": "CaveConfig",
          "decl": "type CaveConfig struct {\n\t// Width and Height are the level's size in cells, from 3 to MaxSide each, with Width*Height at most MaxCells. The outermost ring of cells is always Wall.\n\tWidth, Height int\n\t// WallChance is the probability, in (0, 1), that an inner cell starts as Wall. The default is 0.45.\n\tWallChance float64\n\t// Steps is the number of smoothing passes. Zero takes the default of 5, so a cave always gets at least one pass.\n\tSteps int\n\t// WallAt turns a cell into Wall when at least this many of its 8 neighbours are Wall, cells outside the grid counting as Wall. It must be in [1, 8]. The default is 5.\n\tWallAt int\n\t// FloorAt turns a cell into Floor when at most this many of its 8 neighbours are Wall; a cell between FloorAt and WallAt keeps its value. It must be in [0, WallAt). When WallAt is 0 and FloorAt is 0, both take their defaults, 5 and 3; once WallAt is set, FloorAt is used as given, so 0 means only cells with no Wall neighbour become Floor.\n\tFloorAt int\n\t// MinRegion fills with Wall every separate cave region of fewer cells than this before regions are joined. The largest region is always kept. The default is 0, which keeps every region.\n\tMinRegion int\n\t// Join connects every remaining region to the largest with the shortest tunnel through rock. When false, every region but the largest is filled with Wall instead.\n\tJoin bool\n}",
          "doc": "CaveConfig configures Cave. Zero fields take the defaults given on each field.\n",
          "file": "pkg/procgen/cave.go",
          "line": 15,
          "members": [
            {
              "name": "Width",
              "anchor": "CaveConfig.Width",
              "kind": "field",
              "doc": "Width and Height are the level's size in cells, from 3 to MaxSide each, with Width*Height at most MaxCells. The outermost ring of cells is always Wall."
            },
            {
              "name": "Height",
              "anchor": "CaveConfig.Height",
              "kind": "field",
              "doc": "Width and Height are the level's size in cells, from 3 to MaxSide each, with Width*Height at most MaxCells. The outermost ring of cells is always Wall."
            },
            {
              "name": "WallChance",
              "anchor": "CaveConfig.WallChance",
              "kind": "field",
              "doc": "WallChance is the probability, in (0, 1), that an inner cell starts as Wall. The default is 0.45."
            },
            {
              "name": "Steps",
              "anchor": "CaveConfig.Steps",
              "kind": "field",
              "doc": "Steps is the number of smoothing passes. Zero takes the default of 5, so a cave always gets at least one pass."
            },
            {
              "name": "WallAt",
              "anchor": "CaveConfig.WallAt",
              "kind": "field",
              "doc": "WallAt turns a cell into Wall when at least this many of its 8 neighbours are Wall, cells outside the grid counting as Wall. It must be in [1, 8]. The default is 5."
            },
            {
              "name": "FloorAt",
              "anchor": "CaveConfig.FloorAt",
              "kind": "field",
              "doc": "FloorAt turns a cell into Floor when at most this many of its 8 neighbours are Wall; a cell between FloorAt and WallAt keeps its value. It must be in [0, WallAt). When WallAt is 0 and FloorAt is 0, both take their defaults, 5 and 3; once WallAt is set, FloorAt is used as given, so 0 means only cells with no Wall neighbour become Floor."
            },
            {
              "name": "MinRegion",
              "anchor": "CaveConfig.MinRegion",
              "kind": "field",
              "doc": "MinRegion fills with Wall every separate cave region of fewer cells than this before regions are joined. The largest region is always kept. The default is 0, which keeps every region."
            },
            {
              "name": "Join",
              "anchor": "CaveConfig.Join",
              "kind": "field",
              "doc": "Join connects every remaining region to the largest with the shortest tunnel through rock. When false, every region but the largest is filled with Wall instead."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Corridor",
          "anchor": "Corridor",
          "decl": "type Corridor struct {\n\t// From and To index the rooms the corridor joins in Dungeon.Rooms.\n\tFrom, To int\n\t// Path lists the corridor's cells in order from the center of room From to the center of room To.\n\tPath []Point\n}",
          "doc": "Corridor is a passage BSP carved between two rooms.\n",
          "file": "pkg/procgen/bsp.go",
          "line": 78,
          "members": [
            {
              "name": "From",
              "anchor": "Corridor.From",
              "kind": "field",
              "doc": "From and To index the rooms the corridor joins in Dungeon.Rooms."
            },
            {
              "name": "To",
              "anchor": "Corridor.To",
              "kind": "field",
              "doc": "From and To index the rooms the corridor joins in Dungeon.Rooms."
            },
            {
              "name": "Path",
              "anchor": "Corridor.Path",
              "kind": "field",
              "doc": "Path lists the corridor's cells in order from the center of room From to the center of room To."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DoorSocket",
          "anchor": "DoorSocket",
          "decl": "type DoorSocket struct {\n\t// Side is north, south, east or west.\n\tSide Side `yaml:\"side\"`\n\t// Offset is the 0-based cell position along Side from its left (north/south) or top (east/west) edge.\n\tOffset int `yaml:\"offset\"`\n\t// Width is the opening's span in cells along Side; 0 defaults to 1.\n\tWidth int `yaml:\"width,omitempty\"`\n\t// Channel optionally restricts matching to sockets with the same Channel.\n\tChannel string `yaml:\"channel,omitempty\"`\n}",
          "doc": "DoorSocket is an opening on one side of a room template where another room can attach.\n",
          "file": "pkg/procgen/room_templates.go",
          "line": 88,
          "members": [
            {
              "name": "Side",
              "anchor": "DoorSocket.Side",
              "kind": "field",
              "doc": "Side is north, south, east or west."
            },
            {
              "name": "Offset",
              "anchor": "DoorSocket.Offset",
              "kind": "field",
              "doc": "Offset is the 0-based cell position along Side from its left (north/south) or top (east/west) edge."
            },
            {
              "name": "Width",
              "anchor": "DoorSocket.Width",
              "kind": "field",
              "doc": "Width is the opening's span in cells along Side; 0 defaults to 1."
            },
            {
              "name": "Channel",
              "anchor": "DoorSocket.Channel",
              "kind": "field",
              "doc": "Channel optionally restricts matching to sockets with the same Channel."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Cells",
              "anchor": "DoorSocket.Cells",
              "recv": "DoorSocket",
              "decl": "func (d DoorSocket) Cells(w, h int) []Point",
              "doc": "Cells returns the room-local cell coordinates covered by d on a w-by-h room.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 113
            },
            {
              "name": "Matches",
              "anchor": "DoorSocket.Matches",
              "recv": "DoorSocket",
              "decl": "func (d DoorSocket) Matches(other DoorSocket) bool",
              "doc": "Matches reports whether d can connect to other on an opposing room edge.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 108
            },
            {
              "name": "Span",
              "anchor": "DoorSocket.Span",
              "recv": "DoorSocket",
              "decl": "func (d DoorSocket) Span() int",
              "doc": "Span returns the socket's width in cells, treating 0 as 1.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 100
            }
          ]
        },
        {
          "name": "Dungeon",
          "anchor": "Dungeon",
          "decl": "type Dungeon struct {\n\t// Grid holds Wall and Floor cells.\n\tGrid *Grid\n\t// Rooms lists every room in the order of the partition tree's leaves, left or top child first.\n\tRooms []Rect\n\t// Corridors lists the spanning corridors, innermost partitions first, followed by the extra Loops corridors.\n\tCorridors []Corridor\n}",
          "doc": "Dungeon is the result of BSP.\n",
          "file": "pkg/procgen/bsp.go",
          "line": 86,
          "members": [
            {
              "name": "Grid",
              "anchor": "Dungeon.Grid",
              "kind": "field",
              "doc": "Grid holds Wall and Floor cells."
            },
            {
              "name": "Rooms",
              "anchor": "Dungeon.Rooms",
              "kind": "field",
              "doc": "Rooms lists every room in the order of the partition tree's leaves, left or top child first."
            },
            {
              "name": "Corridors",
              "anchor": "Dungeon.Corridors",
              "kind": "field",
              "doc": "Corridors lists the spanning corridors, innermost partitions first, followed by the extra Loops corridors."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BSP",
              "anchor": "BSP",
              "decl": "func BSP(s *random.Stream, cfg BSPConfig) (*Dungeon, error)",
              "doc": "BSP partitions a level with binary space partitioning, places one room in each leaf partition and joins sibling partitions with L-shaped corridors, so every Floor cell is reachable from every other.\n\nAll randomness comes from s, so the same stream state and cfg produce the same Dungeon. It returns an error wrapping ErrInvalidConfig when cfg cannot be satisfied.\n",
              "file": "pkg/procgen/bsp.go",
              "line": 104
            }
          ],
          "methods": []
        },
        {
          "name": "GraphConfig",
          "anchor": "GraphConfig",
          "decl": "type GraphConfig struct {\n\t// CriticalPath is the number of rooms on the main path from Start to Goal, inclusive.\n\t// The default is 5; when set it must be at least 2.\n\tCriticalPath int\n\t// Branches is the number of side rooms attached off the critical path and earlier branches.\n\t// Additional key rooms may be added if a lock tier has no available branch room. The default is 0.\n\tBranches int\n\t// BranchMaxDepth limits how far a branch chain may extend from the critical path.\n\t// The default is 2; when Branches > 0 it must be at least 1.\n\tBranchMaxDepth int\n\t// Loops is the desired number of extra cycle edges added within the same lock tier.\n\t// Edges are chosen between nodes of opposite spanning-tree parity so cycles have even length\n\t// and can be embedded on an orthogonal room grid. The default is 0.\n\tLoops int\n\t// Locks is the number of lock/key pairs placed along the critical path.\n\t// Each key is placed in a tier strictly before its lock so it is always reachable without passing the lock.\n\t// The default is 0; it must be at most CriticalPath - 1.\n\tLocks int\n\t// MaxDegree caps how many passages may connect to a single room.\n\t// The default is 4 (matching the four cardinal sides of a 2D room).\n\tMaxDegree int\n}",
          "doc": "GraphConfig configures GenerateGraph. Zero fields take the defaults given on each field.\n",
          "file": "pkg/procgen/dungeon_graph.go",
          "line": 80,
          "members": [
            {
              "name": "CriticalPath",
              "anchor": "GraphConfig.CriticalPath",
              "kind": "field",
              "doc": "CriticalPath is the number of rooms on the main path from Start to Goal, inclusive.\nThe default is 5; when set it must be at least 2."
            },
            {
              "name": "Branches",
              "anchor": "GraphConfig.Branches",
              "kind": "field",
              "doc": "Branches is the number of side rooms attached off the critical path and earlier branches.\nAdditional key rooms may be added if a lock tier has no available branch room. The default is 0."
            },
            {
              "name": "BranchMaxDepth",
              "anchor": "GraphConfig.BranchMaxDepth",
              "kind": "field",
              "doc": "BranchMaxDepth limits how far a branch chain may extend from the critical path.\nThe default is 2; when Branches > 0 it must be at least 1."
            },
            {
              "name": "Loops",
              "anchor": "GraphConfig.Loops",
              "kind": "field",
              "doc": "Loops is the desired number of extra cycle edges added within the same lock tier.\nEdges are chosen between nodes of opposite spanning-tree parity so cycles have even length\nand can be embedded on an orthogonal room grid. The default is 0."
            },
            {
              "name": "Locks",
              "anchor": "GraphConfig.Locks",
              "kind": "field",
              "doc": "Locks is the number of lock/key pairs placed along the critical path.\nEach key is placed in a tier strictly before its lock so it is always reachable without passing the lock.\nThe default is 0; it must be at most CriticalPath - 1."
            },
            {
              "name": "MaxDegree",
              "anchor": "GraphConfig.MaxDegree",
              "kind": "field",
              "doc": "MaxDegree caps how many passages may connect to a single room.\nThe default is 4 (matching the four cardinal sides of a 2D room)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GraphEdge",
          "anchor": "GraphEdge",
          "decl": "type GraphEdge struct {\n\t// From and To are node IDs in LayoutGraph.Nodes.\n\tFrom int\n\tTo   int\n\t// LockID is non-empty when this passage is locked and requires the key with matching KeyID.\n\tLockID string\n\t// Loop is true when this edge adds a cycle beyond the spanning tree.\n\tLoop bool\n}",
          "doc": "GraphEdge is an undirected passage between two rooms in a LayoutGraph.\n",
          "file": "pkg/procgen/dungeon_graph.go",
          "line": 43,
          "members": [
            {
              "name": "From",
              "anchor": "GraphEdge.From",
              "kind": "field",
              "doc": "From and To are node IDs in LayoutGraph.Nodes."
            },
            {
              "name": "To",
              "anchor": "GraphEdge.To",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LockID",
              "anchor": "GraphEdge.LockID",
              "kind": "field",
              "doc": "LockID is non-empty when this passage is locked and requires the key with matching KeyID."
            },
            {
              "name": "Loop",
              "anchor": "GraphEdge.Loop",
              "kind": "field",
              "doc": "Loop is true when this edge adds a cycle beyond the spanning tree."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GraphNode",
          "anchor": "GraphNode",
          "decl": "type GraphNode struct {\n\t// ID is the node's 0-based index in LayoutGraph.Nodes.\n\tID int\n\t// Role is start, goal, critical, branch or key.\n\tRole RoomRole\n\t// Depth is the shortest-path edge count from Start.\n\tDepth int\n\t// Tier is the lock-progression zone (0 is reachable without any keys, k requires keys 1..k).\n\tTier int\n\t// Tag is the preferred room template tag for this node (such as \"start\", \"goal\" or \"key\").\n\tTag string\n\t// KeyID is non-empty when this room holds the key for locked edges with the matching LockID.\n\tKeyID string\n}",
          "doc": "GraphNode is one room in a LayoutGraph.\n",
          "file": "pkg/procgen/dungeon_graph.go",
          "line": 27,
          "members": [
            {
              "name": "ID",
              "anchor": "GraphNode.ID",
              "kind": "field",
              "doc": "ID is the node's 0-based index in LayoutGraph.Nodes."
            },
            {
              "name": "Role",
              "anchor": "GraphNode.Role",
              "kind": "field",
              "doc": "Role is start, goal, critical, branch or key."
            },
            {
              "name": "Depth",
              "anchor": "GraphNode.Depth",
              "kind": "field",
              "doc": "Depth is the shortest-path edge count from Start."
            },
            {
              "name": "Tier",
              "anchor": "GraphNode.Tier",
              "kind": "field",
              "doc": "Tier is the lock-progression zone (0 is reachable without any keys, k requires keys 1..k)."
            },
            {
              "name": "Tag",
              "anchor": "GraphNode.Tag",
              "kind": "field",
              "doc": "Tag is the preferred room template tag for this node (such as \"start\", \"goal\" or \"key\")."
            },
            {
              "name": "KeyID",
              "anchor": "GraphNode.KeyID",
              "kind": "field",
              "doc": "KeyID is non-empty when this room holds the key for locked edges with the matching LockID."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Grid",
          "anchor": "Grid",
          "decl": "type Grid struct {\n\tWidth  int\n\tHeight int\n\tCells  []uint32\n}",
          "doc": "Grid is a Width by Height block of cell values stored row by row in Cells, so the cell at (x, y) is Cells[y*Width+x].\n",
          "file": "pkg/procgen/grid.go",
          "line": 38,
          "members": [
            {
              "name": "Width",
              "anchor": "Grid.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Grid.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "Grid.Cells",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Cave",
              "anchor": "Cave",
              "decl": "func Cave(s *random.Stream, cfg CaveConfig) (*Grid, error)",
              "doc": "Cave grows a cave with a cellular automaton: inner cells start as Wall with probability WallChance, Steps smoothing passes apply the WallAt and FloorAt rule, and the resulting regions are then reduced to one connected cave, either by keeping only the largest or, with Join, by tunnelling every region into it.\n\nAll randomness comes from s, so the same stream state and cfg produce the same Grid. It returns an error wrapping ErrInvalidConfig for an unusable cfg, and ErrNoFloor when smoothing leaves no Floor cell.\n",
              "file": "pkg/procgen/cave.go",
              "line": 72
            },
            {
              "name": "GridFromTilemap",
              "anchor": "GridFromTilemap",
              "decl": "func GridFromTilemap(m *tilemap.Tilemap, layer int, passable func(gid uint32) bool) *Grid",
              "doc": "GridFromTilemap converts one layer of a tilemap (such as one loaded from a Tiled .tmj file with tilemap.LoadTiled) into a Grid of Wall and Floor cells. A cell is marked Floor when passable returns true for its GID (or when GID == 0 if passable is nil).\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 427
            },
            {
              "name": "NewGrid",
              "anchor": "NewGrid",
              "decl": "func NewGrid(width, height int) *Grid",
              "doc": "NewGrid returns a width by height Grid with every cell set to Wall. Negative sizes are treated as 0.\n",
              "file": "pkg/procgen/grid.go",
              "line": 45
            },
            {
              "name": "WFC",
              "anchor": "WFC",
              "decl": "func WFC(s *random.Stream, cfg WFCConfig) (*Grid, error)",
              "doc": "WFC fills a Width by Height grid with the simple tiled model of wave function collapse: each step collapses a cell with the fewest remaining tiles, chosen at random among ties, to one tile picked by weight, then propagates the adjacency rules to its neighbours. A contradiction restarts the solve.\n\nUnless cfg.AllowDisconnected is set, a path constraint keeps the walkable tiles connected while the wave collapses: cells that can no longer reach the walkable cells lose their walkable tiles, and a cell whose removal would split the walkable cells loses its non-walkable tiles.\n\nEach Grid cell holds the index of its tile in cfg.Rules.Tiles. All randomness comes from s, so the same stream state and cfg produce the same Grid. It returns an error wrapping ErrInvalidConfig for an unusable cfg and ErrNoSolution when every attempt fails.\n",
              "file": "pkg/procgen/wfc.go",
              "line": 152
            }
          ],
          "methods": [
            {
              "name": "At",
              "anchor": "Grid.At",
              "recv": "*Grid",
              "decl": "func (g *Grid) At(x, y int) uint32",
              "doc": "At returns the value at (x, y), or Wall when (x, y) lies outside g.\n",
              "file": "pkg/procgen/grid.go",
              "line": 57
            },
            {
              "name": "Clone",
              "anchor": "Grid.Clone",
              "recv": "*Grid",
              "decl": "func (g *Grid) Clone() *Grid",
              "doc": "Clone returns a deep copy of g.\n",
              "file": "pkg/procgen/grid.go",
              "line": 84
            },
            {
              "name": "Connected",
              "anchor": "Grid.Connected",
              "recv": "*Grid",
              "decl": "func (g *Grid) Connected(passable func(v uint32) bool) bool",
              "doc": "Connected reports whether the cells that satisfy passable form at most one 4-connected region. A grid with no passable cell is connected.\n",
              "file": "pkg/procgen/grid.go",
              "line": 144
            },
            {
              "name": "Count",
              "anchor": "Grid.Count",
              "recv": "*Grid",
              "decl": "func (g *Grid) Count(passable func(v uint32) bool) int",
              "doc": "Count returns how many cells satisfy passable.\n",
              "file": "pkg/procgen/grid.go",
              "line": 102
            },
            {
              "name": "Equal",
              "anchor": "Grid.Equal",
              "recv": "*Grid",
              "decl": "func (g *Grid) Equal(o *Grid) bool",
              "doc": "Equal reports whether g and o have the same size and cell values.\n",
              "file": "pkg/procgen/grid.go",
              "line": 89
            },
            {
              "name": "Fill",
              "anchor": "Grid.Fill",
              "recv": "*Grid",
              "decl": "func (g *Grid) Fill(r Rect, v uint32)",
              "doc": "Fill writes v across r clipped to g.\n",
              "file": "pkg/procgen/grid.go",
              "line": 72
            },
            {
              "name": "In",
              "anchor": "Grid.In",
              "recv": "*Grid",
              "decl": "func (g *Grid) In(x, y int) bool",
              "doc": "In reports whether (x, y) lies inside g.\n",
              "file": "pkg/procgen/grid.go",
              "line": 52
            },
            {
              "name": "Paint",
              "anchor": "Grid.Paint",
              "recv": "*Grid",
              "decl": "func (g *Grid) Paint(m *tilemap.Tilemap, layer, col, row int, gid func(v uint32) uint32)",
              "doc": "Paint writes every cell of g into layer of m with its top left at (col, row), mapping each value to a tile GID with gid. Cells that fall outside the layer are skipped, and the layer's static cache is invalidated as tilemap.Tilemap.SetTile does.\n",
              "file": "pkg/procgen/grid.go",
              "line": 201
            },
            {
              "name": "Regions",
              "anchor": "Grid.Regions",
              "recv": "*Grid",
              "decl": "func (g *Grid) Regions(passable func(v uint32) bool) [][]Point",
              "doc": "Regions returns the 4-connected regions of cells that satisfy passable, largest first; regions of equal size keep the order of their first cell in row-major order, and the cells of each region are listed in row-major order.\n",
              "file": "pkg/procgen/grid.go",
              "line": 116
            },
            {
              "name": "Set",
              "anchor": "Grid.Set",
              "recv": "*Grid",
              "decl": "func (g *Grid) Set(x, y int, v uint32)",
              "doc": "Set writes v at (x, y); calls outside g are ignored.\n",
              "file": "pkg/procgen/grid.go",
              "line": 65
            },
            {
              "name": "String",
              "anchor": "Grid.String",
              "recv": "*Grid",
              "decl": "func (g *Grid) String() string",
              "doc": "String draws g as text, one line per row: '.' for Floor, '#' for Wall and, for any other value v, the letter 'a'+v-2 up to 'z' and '?' beyond. It is meant for tests and debugging.\n",
              "file": "pkg/procgen/grid.go",
              "line": 210
            }
          ]
        },
        {
          "name": "LayoutGraph",
          "anchor": "LayoutGraph",
          "decl": "type LayoutGraph struct {\n\t// Start is the entrance node ID (always 0).\n\tStart int\n\t// Goal is the exit/boss node ID.\n\tGoal int\n\t// CriticalPath lists the node IDs along the main route from Start to Goal.\n\tCriticalPath []int\n\t// Nodes holds every room node indexed by GraphNode.ID.\n\tNodes []GraphNode\n\t// Edges holds every undirected passage between rooms.\n\tEdges []GraphEdge\n\t// Locks lists every lock/key pair in progression order.\n\tLocks []LockKey\n}",
          "doc": "LayoutGraph is the abstract room-and-passage topology of a dungeon.\n",
          "file": "pkg/procgen/dungeon_graph.go",
          "line": 64,
          "members": [
            {
              "name": "Start",
              "anchor": "LayoutGraph.Start",
              "kind": "field",
              "doc": "Start is the entrance node ID (always 0)."
            },
            {
              "name": "Goal",
              "anchor": "LayoutGraph.Goal",
              "kind": "field",
              "doc": "Goal is the exit/boss node ID."
            },
            {
              "name": "CriticalPath",
              "anchor": "LayoutGraph.CriticalPath",
              "kind": "field",
              "doc": "CriticalPath lists the node IDs along the main route from Start to Goal."
            },
            {
              "name": "Nodes",
              "anchor": "LayoutGraph.Nodes",
              "kind": "field",
              "doc": "Nodes holds every room node indexed by GraphNode.ID."
            },
            {
              "name": "Edges",
              "anchor": "LayoutGraph.Edges",
              "kind": "field",
              "doc": "Edges holds every undirected passage between rooms."
            },
            {
              "name": "Locks",
              "anchor": "LayoutGraph.Locks",
              "kind": "field",
              "doc": "Locks lists every lock/key pair in progression order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "GenerateGraph",
              "anchor": "GenerateGraph",
              "decl": "func GenerateGraph(s *random.Stream, cfg GraphConfig) (*LayoutGraph, error)",
              "doc": "GenerateGraph builds a deterministic dungeon LayoutGraph from s with a critical path from Start to Goal, optional side branches, lock/key progression pairs and same-tier cycles.\n\nEvery lock's key is placed in a progression tier strictly preceding its lock, and loop edges only connect rooms within the same tier, so every key is reachable from Start without passing its lock and no loop bypasses a lock.\n",
              "file": "pkg/procgen/dungeon_graph.go",
              "line": 141
            }
          ],
          "methods": [
            {
              "name": "Neighbors",
              "anchor": "LayoutGraph.Neighbors",
              "recv": "*LayoutGraph",
              "decl": "func (g *LayoutGraph) Neighbors(nodeID int) []int",
              "doc": "Neighbors returns the IDs of all nodes directly connected to nodeID by an edge in g, in edge order.\n",
              "file": "pkg/procgen/dungeon_graph.go",
              "line": 420
            },
            {
              "name": "VerifyLocks",
              "anchor": "LayoutGraph.VerifyLocks",
              "recv": "*LayoutGraph",
              "decl": "func (g *LayoutGraph) VerifyLocks() error",
              "doc": "VerifyLocks checks that g's lock/key structure is sound: every lock has a valid key node, progressive traversal from Start collects every key without ever crossing a lock whose key has not yet been collected, every lock's key is reachable without crossing that lock, and Goal is reachable once keys are collected.\n",
              "file": "pkg/procgen/dungeon_graph.go",
              "line": 437
            }
          ]
        },
        {
          "name": "LockKey",
          "anchor": "LockKey",
          "decl": "type LockKey struct {\n\t// ID matches GraphNode.KeyID and GraphEdge.LockID.\n\tID string\n\t// KeyNode is the ID of the node holding this key.\n\tKeyNode int\n\t// EdgeIndex is the index into LayoutGraph.Edges of the locked passage.\n\tEdgeIndex int\n}",
          "doc": "LockKey records a lock/key pair in progression order.\n",
          "file": "pkg/procgen/dungeon_graph.go",
          "line": 54,
          "members": [
            {
              "name": "ID",
              "anchor": "LockKey.ID",
              "kind": "field",
              "doc": "ID matches GraphNode.KeyID and GraphEdge.LockID."
            },
            {
              "name": "KeyNode",
              "anchor": "LockKey.KeyNode",
              "kind": "field",
              "doc": "KeyNode is the ID of the node holding this key."
            },
            {
              "name": "EdgeIndex",
              "anchor": "LockKey.EdgeIndex",
              "kind": "field",
              "doc": "EdgeIndex is the index into LayoutGraph.Edges of the locked passage."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Neighbor",
          "anchor": "Neighbor",
          "decl": "type Neighbor struct {\n\t// Left is the tile on the left of a horizontal pair.\n\tLeft string `yaml:\"left,omitempty\"`\n\t// Right is the tile on the right of a horizontal pair.\n\tRight string `yaml:\"right,omitempty\"`\n\t// Up is the tile on top of a vertical pair.\n\tUp string `yaml:\"up,omitempty\"`\n\t// Down is the tile below in a vertical pair.\n\tDown string `yaml:\"down,omitempty\"`\n}",
          "doc": "Neighbor allows one ordered pair of adjacent tiles: either Left and Right for a horizontal pair or Up and Down for a vertical pair, never both.\n",
          "file": "pkg/procgen/rules.go",
          "line": 51,
          "members": [
            {
              "name": "Left",
              "anchor": "Neighbor.Left",
              "kind": "field",
              "doc": "Left is the tile on the left of a horizontal pair."
            },
            {
              "name": "Right",
              "anchor": "Neighbor.Right",
              "kind": "field",
              "doc": "Right is the tile on the right of a horizontal pair."
            },
            {
              "name": "Up",
              "anchor": "Neighbor.Up",
              "kind": "field",
              "doc": "Up is the tile on top of a vertical pair."
            },
            {
              "name": "Down",
              "anchor": "Neighbor.Down",
              "kind": "field",
              "doc": "Down is the tile below in a vertical pair."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlaceConfig",
          "anchor": "PlaceConfig",
          "decl": "type PlaceConfig struct {\n\t// Mode selects PlacementStitch (default) or PlacementGrid.\n\tMode PlacementMode\n\t// GridCols and GridRows set the coarse grid size in PlacementGrid mode.\n\t// When both are 0, a square grid large enough for the graph is chosen automatically.\n\tGridCols int\n\tGridRows int\n\t// Attempts is the deterministic retry budget before returning ErrNoLayout. The default is 50.\n\tAttempts int\n\t// Padding adds this many Wall cells around the stitched bounding box in Grid. The default is 0.\n\tPadding int\n\t// ResolveGrid optionally loads the tile Grid for a RoomTemplate with Source set.\n\t// When nil, Source-only templates stamp a default walled floor footprint of Width by Height.\n\tResolveGrid func(t *RoomTemplate) (*Grid, error)\n\t// Passable defines which cell values count as walkable for connectivity verification.\n\t// When nil, IsFloor is used (or non-Wall when a template uses custom tile letters 'a'..'z').\n\tPassable func(v uint32) bool\n}",
          "doc": "PlaceConfig configures PlaceRooms. Zero fields take the defaults given on each field.\n",
          "file": "pkg/procgen/dungeon_rooms.go",
          "line": 76,
          "members": [
            {
              "name": "Mode",
              "anchor": "PlaceConfig.Mode",
              "kind": "field",
              "doc": "Mode selects PlacementStitch (default) or PlacementGrid."
            },
            {
              "name": "GridCols",
              "anchor": "PlaceConfig.GridCols",
              "kind": "field",
              "doc": "GridCols and GridRows set the coarse grid size in PlacementGrid mode.\nWhen both are 0, a square grid large enough for the graph is chosen automatically."
            },
            {
              "name": "GridRows",
              "anchor": "PlaceConfig.GridRows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Attempts",
              "anchor": "PlaceConfig.Attempts",
              "kind": "field",
              "doc": "Attempts is the deterministic retry budget before returning ErrNoLayout. The default is 50."
            },
            {
              "name": "Padding",
              "anchor": "PlaceConfig.Padding",
              "kind": "field",
              "doc": "Padding adds this many Wall cells around the stitched bounding box in Grid. The default is 0."
            },
            {
              "name": "ResolveGrid",
              "anchor": "PlaceConfig.ResolveGrid",
              "kind": "field",
              "doc": "ResolveGrid optionally loads the tile Grid for a RoomTemplate with Source set.\nWhen nil, Source-only templates stamp a default walled floor footprint of Width by Height."
            },
            {
              "name": "Passable",
              "anchor": "PlaceConfig.Passable",
              "kind": "field",
              "doc": "Passable defines which cell values count as walkable for connectivity verification.\nWhen nil, IsFloor is used (or non-Wall when a template uses custom tile letters 'a'..'z')."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlacedDoor",
          "anchor": "PlacedDoor",
          "decl": "type PlacedDoor struct {\n\t// FromRoom and ToRoom are NodeIDs of the connected rooms.\n\tFromRoom int\n\tToRoom   int\n\t// FromSide is the side of FromRoom where the doorway opens; ToSide is its opposite on ToRoom.\n\tFromSide Side\n\tToSide   Side\n\t// Cells lists the doorway's Grid cells across both rooms' shared boundary.\n\tCells []Point\n\t// LockID is non-empty when this doorway is locked.\n\tLockID string\n\t// Channel is the matched DoorSocket.Channel.\n\tChannel string\n}",
          "doc": "PlacedDoor is one stitched connection between two PlacedRooms.\n",
          "file": "pkg/procgen/dungeon_rooms.go",
          "line": 48,
          "members": [
            {
              "name": "FromRoom",
              "anchor": "PlacedDoor.FromRoom",
              "kind": "field",
              "doc": "FromRoom and ToRoom are NodeIDs of the connected rooms."
            },
            {
              "name": "ToRoom",
              "anchor": "PlacedDoor.ToRoom",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FromSide",
              "anchor": "PlacedDoor.FromSide",
              "kind": "field",
              "doc": "FromSide is the side of FromRoom where the doorway opens; ToSide is its opposite on ToRoom."
            },
            {
              "name": "ToSide",
              "anchor": "PlacedDoor.ToSide",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cells",
              "anchor": "PlacedDoor.Cells",
              "kind": "field",
              "doc": "Cells lists the doorway's Grid cells across both rooms' shared boundary."
            },
            {
              "name": "LockID",
              "anchor": "PlacedDoor.LockID",
              "kind": "field",
              "doc": "LockID is non-empty when this doorway is locked."
            },
            {
              "name": "Channel",
              "anchor": "PlacedDoor.Channel",
              "kind": "field",
              "doc": "Channel is the matched DoorSocket.Channel."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlacedRoom",
          "anchor": "PlacedRoom",
          "decl": "type PlacedRoom struct {\n\t// NodeID is the room's node ID in RoomLevel.Graph.\n\tNodeID int\n\t// TemplateID is the ID of the RoomTemplate chosen for this room.\n\tTemplateID string\n\t// Source is the RoomTemplate.Source path (.tmj or scene) when the template references an external file.\n\tSource string\n\t// Bounds is the room's cell rectangle inside RoomLevel.Grid.\n\tBounds Rect\n\t// GridSlot is the room's coarse (col, row) slot in PlacementGrid mode; zero in PlacementStitch mode.\n\tGridSlot Point\n\t// Rotation is the clockwise rotation applied to the template in degrees (0, 90, 180 or 270).\n\tRotation int\n\t// Tags is a copy of the chosen template's tags.\n\tTags []string\n\t// Role is the graph node's role (start, goal, critical, branch or key).\n\tRole RoomRole\n\t// KeyID is non-empty when this room holds the key for the matching locked door.\n\tKeyID string\n}",
          "doc": "PlacedRoom is one room template instantiated in a RoomLevel.\n",
          "file": "pkg/procgen/dungeon_rooms.go",
          "line": 26,
          "members": [
            {
              "name": "NodeID",
              "anchor": "PlacedRoom.NodeID",
              "kind": "field",
              "doc": "NodeID is the room's node ID in RoomLevel.Graph."
            },
            {
              "name": "TemplateID",
              "anchor": "PlacedRoom.TemplateID",
              "kind": "field",
              "doc": "TemplateID is the ID of the RoomTemplate chosen for this room."
            },
            {
              "name": "Source",
              "anchor": "PlacedRoom.Source",
              "kind": "field",
              "doc": "Source is the RoomTemplate.Source path (.tmj or scene) when the template references an external file."
            },
            {
              "name": "Bounds",
              "anchor": "PlacedRoom.Bounds",
              "kind": "field",
              "doc": "Bounds is the room's cell rectangle inside RoomLevel.Grid."
            },
            {
              "name": "GridSlot",
              "anchor": "PlacedRoom.GridSlot",
              "kind": "field",
              "doc": "GridSlot is the room's coarse (col, row) slot in PlacementGrid mode; zero in PlacementStitch mode."
            },
            {
              "name": "Rotation",
              "anchor": "PlacedRoom.Rotation",
              "kind": "field",
              "doc": "Rotation is the clockwise rotation applied to the template in degrees (0, 90, 180 or 270)."
            },
            {
              "name": "Tags",
              "anchor": "PlacedRoom.Tags",
              "kind": "field",
              "doc": "Tags is a copy of the chosen template's tags."
            },
            {
              "name": "Role",
              "anchor": "PlacedRoom.Role",
              "kind": "field",
              "doc": "Role is the graph node's role (start, goal, critical, branch or key)."
            },
            {
              "name": "KeyID",
              "anchor": "PlacedRoom.KeyID",
              "kind": "field",
              "doc": "KeyID is non-empty when this room holds the key for the matching locked door."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlacementMode",
          "anchor": "PlacementMode",
          "decl": "type PlacementMode string",
          "doc": "PlacementMode selects how rooms are arranged in 2D space.\n",
          "file": "pkg/procgen/dungeon_rooms.go",
          "line": 16,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PlacementStitch",
                  "anchor": "PlacementStitch"
                },
                {
                  "name": "PlacementGrid",
                  "anchor": "PlacementGrid"
                }
              ],
              "decl": "const (\n\t// PlacementStitch places variable-sized room templates by aligning matching door sockets without overlap.\n\tPlacementStitch PlacementMode = \"stitch\"\n\t// PlacementGrid places uniform-sized room templates on a Spelunky-style coarse grid of room slots.\n\tPlacementGrid PlacementMode = \"grid\"\n)",
              "doc": "",
              "file": "pkg/procgen/dungeon_rooms.go",
              "line": 18
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Point",
          "anchor": "Point",
          "decl": "type Point struct {\n\tX, Y int\n}",
          "doc": "Point is a cell position: X is the column and Y the row, both from 0 at the top left.\n",
          "file": "pkg/procgen/grid.go",
          "line": 18,
          "members": [
            {
              "name": "X",
              "anchor": "Point.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Point.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Rect",
          "anchor": "Rect",
          "decl": "type Rect struct {\n\tX, Y, W, H int\n}",
          "doc": "Rect is an axis-aligned block of cells covering columns [X, X+W) and rows [Y, Y+H).\n",
          "file": "pkg/procgen/grid.go",
          "line": 23,
          "members": [
            {
              "name": "X",
              "anchor": "Rect.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Rect.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "W",
              "anchor": "Rect.W",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "H",
              "anchor": "Rect.H",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Center",
              "anchor": "Rect.Center",
              "recv": "Rect",
              "decl": "func (r Rect) Center() Point",
              "doc": "Center returns the cell at the middle of r, rounded toward its top left.\n",
              "file": "pkg/procgen/grid.go",
              "line": 28
            },
            {
              "name": "Contains",
              "anchor": "Rect.Contains",
              "recv": "Rect",
              "decl": "func (r Rect) Contains(p Point) bool",
              "doc": "Contains reports whether p lies inside r.\n",
              "file": "pkg/procgen/grid.go",
              "line": 33
            }
          ]
        },
        {
          "name": "RoomLevel",
          "anchor": "RoomLevel",
          "decl": "type RoomLevel struct {\n\t// Grid holds the stamped level tiles; Connected(passable) always holds.\n\tGrid *Grid\n\t// Rooms lists each placed room, indexed by NodeID.\n\tRooms []PlacedRoom\n\t// Doors lists every stitched doorway corresponding to Graph.Edges.\n\tDoors []PlacedDoor\n\t// Graph is the dungeon layout graph realized by Rooms and Doors.\n\tGraph *LayoutGraph\n}",
          "doc": "RoomLevel is the result of GenerateRooms or PlaceRooms.\n",
          "file": "pkg/procgen/dungeon_rooms.go",
          "line": 64,
          "members": [
            {
              "name": "Grid",
              "anchor": "RoomLevel.Grid",
              "kind": "field",
              "doc": "Grid holds the stamped level tiles; Connected(passable) always holds."
            },
            {
              "name": "Rooms",
              "anchor": "RoomLevel.Rooms",
              "kind": "field",
              "doc": "Rooms lists each placed room, indexed by NodeID."
            },
            {
              "name": "Doors",
              "anchor": "RoomLevel.Doors",
              "kind": "field",
              "doc": "Doors lists every stitched doorway corresponding to Graph.Edges."
            },
            {
              "name": "Graph",
              "anchor": "RoomLevel.Graph",
              "kind": "field",
              "doc": "Graph is the dungeon layout graph realized by Rooms and Doors."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "GenerateRooms",
              "anchor": "GenerateRooms",
              "decl": "func GenerateRooms(s *random.Stream, cfg RoomsConfig) (*RoomLevel, error)",
              "doc": "GenerateRooms generates a dungeon layout graph and places hand-made room templates onto a Grid, retrying deterministically from s up to cfg.Attempts times.\n\nIn PlacementStitch mode, rooms of arbitrary sizes are stitched by matching door sockets without overlap and same-tier loops are closed where aligned sockets meet. In PlacementGrid mode (Spelunky-style), uniform-sized rooms are laid out on a coarse grid of room slots so critical path, branches, lock/key tiers and loops align naturally.\n",
              "file": "pkg/procgen/dungeon_rooms.go",
              "line": 268
            },
            {
              "name": "PlaceRooms",
              "anchor": "PlaceRooms",
              "decl": "func PlaceRooms(s *random.Stream, graph *LayoutGraph, templates *RoomTemplates, cfg PlaceConfig) (*RoomLevel, error)",
              "doc": "PlaceRooms places an existing LayoutGraph using templates according to cfg, retrying deterministically from s up to cfg.Attempts times.\n",
              "file": "pkg/procgen/dungeon_rooms.go",
              "line": 355
            }
          ],
          "methods": []
        },
        {
          "name": "RoomRole",
          "anchor": "RoomRole",
          "decl": "type RoomRole string",
          "doc": "RoomRole identifies a node's structural role in a dungeon LayoutGraph.\n",
          "file": "pkg/procgen/dungeon_graph.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RoleStart",
                  "anchor": "RoleStart"
                },
                {
                  "name": "RoleGoal",
                  "anchor": "RoleGoal"
                },
                {
                  "name": "RoleCritical",
                  "anchor": "RoleCritical"
                },
                {
                  "name": "RoleBranch",
                  "anchor": "RoleBranch"
                },
                {
                  "name": "RoleKey",
                  "anchor": "RoleKey"
                }
              ],
              "decl": "const (\n\t// RoleStart is the entrance room where the player begins.\n\tRoleStart RoomRole = \"start\"\n\t// RoleGoal is the exit or boss room at the end of the critical path.\n\tRoleGoal RoomRole = \"goal\"\n\t// RoleCritical is an interior room along the critical path from Start to Goal.\n\tRoleCritical RoomRole = \"critical\"\n\t// RoleBranch is an optional side room off the critical path.\n\tRoleBranch RoomRole = \"branch\"\n\t// RoleKey is a room holding a key that unlocks a locked passage later in the dungeon.\n\tRoleKey RoomRole = \"key\"\n)",
              "doc": "",
              "file": "pkg/procgen/dungeon_graph.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RoomTemplate",
          "anchor": "RoomTemplate",
          "decl": "type RoomTemplate struct {\n\t// ID uniquely identifies the template within its RoomTemplates set.\n\tID string `yaml:\"id\"`\n\t// Weight is the template's relative selection frequency; 0 defaults to 1. Negative, NaN and infinite values are refused.\n\tWeight float64 `yaml:\"weight,omitempty\"`\n\t// Tags classify the room for graph roles or game logic (such as \"start\", \"goal\", \"key\", \"combat\", \"shop\").\n\tTags []string `yaml:\"tags,omitempty\"`\n\t// Width and Height are the room's dimensions in cells. Required when Source is set; optional when Tiles is set (and must match Tiles if provided).\n\tWidth  int `yaml:\"width,omitempty\"`\n\tHeight int `yaml:\"height,omitempty\"`\n\t// Source names an external .tmj tilemap or scene file that holds this room's tiles/entities. Mutually exclusive with Tiles.\n\tSource string `yaml:\"source,omitempty\"`\n\t// AllowRotate permits the placer to rotate this template in 90-degree increments.\n\tAllowRotate bool `yaml:\"allowRotate,omitempty\"`\n\t// Doors lists the room's door sockets.\n\tDoors []DoorSocket `yaml:\"doors\"`\n\t// Tiles holds an inline ASCII tile grid, one string per row: '#' is Wall, '.' is Floor, and 'a'..'z' map to values 2..27. Mutually exclusive with Source.\n\tTiles []string `yaml:\"tiles,omitempty\"`\n}",
          "doc": "RoomTemplate describes one hand-made room: either an inline tile grid or a reference to an external .tmj or scene file, together with door sockets, tags and relative weight.\n",
          "file": "pkg/procgen/room_templates.go",
          "line": 146,
          "members": [
            {
              "name": "ID",
              "anchor": "RoomTemplate.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the template within its RoomTemplates set."
            },
            {
              "name": "Weight",
              "anchor": "RoomTemplate.Weight",
              "kind": "field",
              "doc": "Weight is the template's relative selection frequency; 0 defaults to 1. Negative, NaN and infinite values are refused."
            },
            {
              "name": "Tags",
              "anchor": "RoomTemplate.Tags",
              "kind": "field",
              "doc": "Tags classify the room for graph roles or game logic (such as \"start\", \"goal\", \"key\", \"combat\", \"shop\")."
            },
            {
              "name": "Width",
              "anchor": "RoomTemplate.Width",
              "kind": "field",
              "doc": "Width and Height are the room's dimensions in cells. Required when Source is set; optional when Tiles is set (and must match Tiles if provided)."
            },
            {
              "name": "Height",
              "anchor": "RoomTemplate.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "RoomTemplate.Source",
              "kind": "field",
              "doc": "Source names an external .tmj tilemap or scene file that holds this room's tiles/entities. Mutually exclusive with Tiles."
            },
            {
              "name": "AllowRotate",
              "anchor": "RoomTemplate.AllowRotate",
              "kind": "field",
              "doc": "AllowRotate permits the placer to rotate this template in 90-degree increments."
            },
            {
              "name": "Doors",
              "anchor": "RoomTemplate.Doors",
              "kind": "field",
              "doc": "Doors lists the room's door sockets."
            },
            {
              "name": "Tiles",
              "anchor": "RoomTemplate.Tiles",
              "kind": "field",
              "doc": "Tiles holds an inline ASCII tile grid, one string per row: '#' is Wall, '.' is Floor, and 'a'..'z' map to values 2..27. Mutually exclusive with Source."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveWeight",
              "anchor": "RoomTemplate.EffectiveWeight",
              "recv": "*RoomTemplate",
              "decl": "func (t *RoomTemplate) EffectiveWeight() float64",
              "doc": "EffectiveWeight returns t.Weight, or 1 when Weight is 0.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 167
            },
            {
              "name": "HasTag",
              "anchor": "RoomTemplate.HasTag",
              "recv": "*RoomTemplate",
              "decl": "func (t *RoomTemplate) HasTag(tag string) bool",
              "doc": "HasTag reports whether t carries tag.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 183
            },
            {
              "name": "Size",
              "anchor": "RoomTemplate.Size",
              "recv": "*RoomTemplate",
              "decl": "func (t *RoomTemplate) Size() (w, h int)",
              "doc": "Size returns the template's width and height in cells.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 175
            },
            {
              "name": "ToGrid",
              "anchor": "RoomTemplate.ToGrid",
              "recv": "*RoomTemplate",
              "decl": "func (t *RoomTemplate) ToGrid() (*Grid, error)",
              "doc": "ToGrid decodes t's inline Tiles into a Grid, or synthesizes a walled floor footprint for a Source-only template.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 193
            }
          ]
        },
        {
          "name": "RoomTemplates",
          "anchor": "RoomTemplates",
          "decl": "type RoomTemplates struct {\n\t// Version is the schema version; it must equal RoomTemplatesVersion.\n\tVersion int `yaml:\"version\"`\n\t// Rooms lists the room templates in deterministic order.\n\tRooms []RoomTemplate `yaml:\"rooms\"`\n}",
          "doc": "RoomTemplates is a versioned YAML collection of hand-made room templates for dungeon generation.\n",
          "file": "pkg/procgen/room_templates.go",
          "line": 138,
          "members": [
            {
              "name": "Version",
              "anchor": "RoomTemplates.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal RoomTemplatesVersion."
            },
            {
              "name": "Rooms",
              "anchor": "RoomTemplates.Rooms",
              "kind": "field",
              "doc": "Rooms lists the room templates in deterministic order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseRoomTemplates",
              "anchor": "ParseRoomTemplates",
              "decl": "func ParseRoomTemplates(data []byte) (*RoomTemplates, error)",
              "doc": "ParseRoomTemplates decodes and validates a YAML room template set. Unknown fields and trailing YAML documents are rejected.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 250
            }
          ],
          "methods": [
            {
              "name": "ByID",
              "anchor": "RoomTemplates.ByID",
              "recv": "*RoomTemplates",
              "decl": "func (rt *RoomTemplates) ByID(id string) *RoomTemplate",
              "doc": "ByID returns the template with the given ID, or nil if not found.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 237
            },
            {
              "name": "Validate",
              "anchor": "RoomTemplates.Validate",
              "recv": "*RoomTemplates",
              "decl": "func (rt *RoomTemplates) Validate() error",
              "doc": "Validate checks rt against the version 1 schema: version, non-empty rooms, unique IDs, valid finite non-negative weights whose sum is finite, valid dimensions, mutually exclusive Tiles or Source, non-overlapping in-bounds door sockets, and valid inline tile characters.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 295
            }
          ]
        },
        {
          "name": "RoomsConfig",
          "anchor": "RoomsConfig",
          "decl": "type RoomsConfig struct {\n\t// Templates is the room template set to draw from. It must be valid.\n\tTemplates *RoomTemplates\n\t// Graph configures the layout graph (critical path, branches, loops, locks).\n\tGraph GraphConfig\n\t// Mode selects PlacementStitch (default) or PlacementGrid.\n\tMode PlacementMode\n\t// GridCols and GridRows set the coarse grid size in PlacementGrid mode.\n\t// When both are 0, a grid large enough for the graph is chosen automatically.\n\tGridCols int\n\tGridRows int\n\t// Attempts is the deterministic retry budget before returning ErrNoLayout. The default is 50.\n\tAttempts int\n\t// Padding adds this many Wall cells around the stitched bounding box in Grid. The default is 0.\n\tPadding int\n\t// ResolveGrid optionally loads the tile Grid for a RoomTemplate with Source set.\n\tResolveGrid func(t *RoomTemplate) (*Grid, error)\n\t// Passable defines which cell values count as walkable for connectivity verification.\n\tPassable func(v uint32) bool\n}",
          "doc": "RoomsConfig configures GenerateRooms. Zero fields take the defaults given on each field.\n",
          "file": "pkg/procgen/dungeon_rooms.go",
          "line": 96,
          "members": [
            {
              "name": "Templates",
              "anchor": "RoomsConfig.Templates",
              "kind": "field",
              "doc": "Templates is the room template set to draw from. It must be valid."
            },
            {
              "name": "Graph",
              "anchor": "RoomsConfig.Graph",
              "kind": "field",
              "doc": "Graph configures the layout graph (critical path, branches, loops, locks)."
            },
            {
              "name": "Mode",
              "anchor": "RoomsConfig.Mode",
              "kind": "field",
              "doc": "Mode selects PlacementStitch (default) or PlacementGrid."
            },
            {
              "name": "GridCols",
              "anchor": "RoomsConfig.GridCols",
              "kind": "field",
              "doc": "GridCols and GridRows set the coarse grid size in PlacementGrid mode.\nWhen both are 0, a grid large enough for the graph is chosen automatically."
            },
            {
              "name": "GridRows",
              "anchor": "RoomsConfig.GridRows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Attempts",
              "anchor": "RoomsConfig.Attempts",
              "kind": "field",
              "doc": "Attempts is the deterministic retry budget before returning ErrNoLayout. The default is 50."
            },
            {
              "name": "Padding",
              "anchor": "RoomsConfig.Padding",
              "kind": "field",
              "doc": "Padding adds this many Wall cells around the stitched bounding box in Grid. The default is 0."
            },
            {
              "name": "ResolveGrid",
              "anchor": "RoomsConfig.ResolveGrid",
              "kind": "field",
              "doc": "ResolveGrid optionally loads the tile Grid for a RoomTemplate with Source set."
            },
            {
              "name": "Passable",
              "anchor": "RoomsConfig.Passable",
              "kind": "field",
              "doc": "Passable defines which cell values count as walkable for connectivity verification."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Rules",
          "anchor": "Rules",
          "decl": "type Rules struct {\n\t// Version is the schema version; it must equal RulesVersion.\n\tVersion int `yaml:\"version\"`\n\t// Tiles lists the tiles. WFC writes a tile's index in this list into each Grid cell.\n\tTiles []TileRule `yaml:\"tiles\"`\n\t// Neighbors lists the allowed adjacent pairs.\n\tNeighbors []Neighbor `yaml:\"neighbors\"`\n}",
          "doc": "Rules is a wave function collapse rule set: the tiles a level may use and which tiles may sit next to each other. It is written by hand as a YAML file, for example:\n\n\tversion: 1\n\ttiles:\n\t  - name: floor\n\t    weight: 4\n\t    walkable: true\n\t  - name: wall\n\t    weight: 1\n\tneighbors:\n\t  - {left: floor, right: floor}\n\t  - {left: floor, right: wall}\n\t  - {up: floor, down: floor}\n\nEach neighbor entry allows one ordered pair: Left directly left of Right, or Up directly above Down. A pair that is not listed is forbidden, so a symmetric rule lists both orders.\n",
          "file": "pkg/procgen/rules.go",
          "line": 31,
          "members": [
            {
              "name": "Version",
              "anchor": "Rules.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal RulesVersion."
            },
            {
              "name": "Tiles",
              "anchor": "Rules.Tiles",
              "kind": "field",
              "doc": "Tiles lists the tiles. WFC writes a tile's index in this list into each Grid cell."
            },
            {
              "name": "Neighbors",
              "anchor": "Rules.Neighbors",
              "kind": "field",
              "doc": "Neighbors lists the allowed adjacent pairs."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseRules",
              "anchor": "ParseRules",
              "decl": "func ParseRules(data []byte) (*Rules, error)",
              "doc": "ParseRules decodes and validates a YAML rule set. Unknown fields and trailing YAML documents are rejected.\n",
              "file": "pkg/procgen/rules.go",
              "line": 63
            }
          ],
          "methods": [
            {
              "name": "Index",
              "anchor": "Rules.Index",
              "recv": "*Rules",
              "decl": "func (r *Rules) Index(name string) int",
              "doc": "Index returns the index of the tile named name, or -1 when r has no such tile.\n",
              "file": "pkg/procgen/rules.go",
              "line": 163
            },
            {
              "name": "Validate",
              "anchor": "Rules.Validate",
              "recv": "*Rules",
              "decl": "func (r *Rules) Validate() error",
              "doc": "Validate checks r against the version 1 schema: the version, at least one tile, unique non-empty names, positive finite weights whose sum is finite, and neighbor entries that name known tiles as exactly one horizontal or vertical pair, each listed once.\n",
              "file": "pkg/procgen/rules.go",
              "line": 105
            },
            {
              "name": "Walkable",
              "anchor": "Rules.Walkable",
              "recv": "*Rules",
              "decl": "func (r *Rules) Walkable(v uint32) bool",
              "doc": "Walkable reports whether the tile at index v is walkable. It is the passable function for grids made by WFC with r; indexes outside r are not walkable.\n",
              "file": "pkg/procgen/rules.go",
              "line": 158
            }
          ]
        },
        {
          "name": "Side",
          "anchor": "Side",
          "decl": "type Side string",
          "doc": "Side is one of the four cardinal edges of a room template.\n",
          "file": "pkg/procgen/room_templates.go",
          "line": 18,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SideNorth",
                  "anchor": "SideNorth"
                },
                {
                  "name": "SideSouth",
                  "anchor": "SideSouth"
                },
                {
                  "name": "SideEast",
                  "anchor": "SideEast"
                },
                {
                  "name": "SideWest",
                  "anchor": "SideWest"
                }
              ],
              "decl": "const (\n\t// SideNorth is the top edge (y = 0) of a room.\n\tSideNorth Side = \"north\"\n\t// SideSouth is the bottom edge (y = Height-1) of a room.\n\tSideSouth Side = \"south\"\n\t// SideEast is the right edge (x = Width-1) of a room.\n\tSideEast Side = \"east\"\n\t// SideWest is the left edge (x = 0) of a room.\n\tSideWest Side = \"west\"\n)",
              "doc": "",
              "file": "pkg/procgen/room_templates.go",
              "line": 20
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Delta",
              "anchor": "Side.Delta",
              "recv": "Side",
              "decl": "func (s Side) Delta() Point",
              "doc": "Delta returns the unit cell step pointing outward from s.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 58
            },
            {
              "name": "Opposite",
              "anchor": "Side.Opposite",
              "recv": "Side",
              "decl": "func (s Side) Opposite() Side",
              "doc": "Opposite returns the cardinal side facing s, or empty for an invalid side.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 43
            },
            {
              "name": "RotateCW",
              "anchor": "Side.RotateCW",
              "recv": "Side",
              "decl": "func (s Side) RotateCW() Side",
              "doc": "RotateCW returns s rotated clockwise by 90 degrees.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 73
            },
            {
              "name": "Valid",
              "anchor": "Side.Valid",
              "recv": "Side",
              "decl": "func (s Side) Valid() bool",
              "doc": "Valid reports whether s is one of SideNorth, SideSouth, SideEast or SideWest.\n",
              "file": "pkg/procgen/room_templates.go",
              "line": 34
            }
          ]
        },
        {
          "name": "TileRule",
          "anchor": "TileRule",
          "decl": "type TileRule struct {\n\t// Name identifies the tile in Neighbors; it must be non-empty and unique.\n\tName string `yaml:\"name\"`\n\t// Weight is the tile's relative frequency when a cell collapses; it must be positive and finite.\n\tWeight float64 `yaml:\"weight\"`\n\t// Walkable marks the tile as passable for the connectivity check.\n\tWalkable bool `yaml:\"walkable,omitempty\"`\n}",
          "doc": "TileRule is one tile of a Rules set.\n",
          "file": "pkg/procgen/rules.go",
          "line": 41,
          "members": [
            {
              "name": "Name",
              "anchor": "TileRule.Name",
              "kind": "field",
              "doc": "Name identifies the tile in Neighbors; it must be non-empty and unique."
            },
            {
              "name": "Weight",
              "anchor": "TileRule.Weight",
              "kind": "field",
              "doc": "Weight is the tile's relative frequency when a cell collapses; it must be positive and finite."
            },
            {
              "name": "Walkable",
              "anchor": "TileRule.Walkable",
              "kind": "field",
              "doc": "Walkable marks the tile as passable for the connectivity check."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WFCConfig",
          "anchor": "WFCConfig",
          "decl": "type WFCConfig struct {\n\t// Width and Height are the level's size in cells, from 1 to MaxSide each, with Width*Height at most MaxWFCCells.\n\tWidth, Height int\n\t// Rules is the tile set and its adjacency rules. It must be valid.\n\tRules *Rules\n\t// Attempts is how many times WFC restarts after a contradiction before returning ErrNoSolution. The default is 20.\n\tAttempts int\n\t// AllowDisconnected turns off the connectivity constraint, so walkable tiles may form several regions or none. By default, whenever Rules has a walkable tile, every level WFC returns has at least one walkable cell and all of its walkable cells form one 4-connected region.\n\tAllowDisconnected bool\n}",
          "doc": "WFCConfig configures WFC. Zero fields take the defaults given on each field.\n",
          "file": "pkg/procgen/wfc.go",
          "line": 18,
          "members": [
            {
              "name": "Width",
              "anchor": "WFCConfig.Width",
              "kind": "field",
              "doc": "Width and Height are the level's size in cells, from 1 to MaxSide each, with Width*Height at most MaxWFCCells."
            },
            {
              "name": "Height",
              "anchor": "WFCConfig.Height",
              "kind": "field",
              "doc": "Width and Height are the level's size in cells, from 1 to MaxSide each, with Width*Height at most MaxWFCCells."
            },
            {
              "name": "Rules",
              "anchor": "WFCConfig.Rules",
              "kind": "field",
              "doc": "Rules is the tile set and its adjacency rules. It must be valid."
            },
            {
              "name": "Attempts",
              "anchor": "WFCConfig.Attempts",
              "kind": "field",
              "doc": "Attempts is how many times WFC restarts after a contradiction before returning ErrNoSolution. The default is 20."
            },
            {
              "name": "AllowDisconnected",
              "anchor": "WFCConfig.AllowDisconnected",
              "kind": "field",
              "doc": "AllowDisconnected turns off the connectivity constraint, so walkable tiles may form several regions or none. By default, whenever Rules has a walkable tile, every level WFC returns has at least one walkable cell and all of its walkable cells form one 4-connected region."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/project",
      "name": "project",
      "dir": "pkg/project",
      "page": "pkg/project",
      "synopsis": "Package project reads, validates, writes and applies game.yaml, the one project file at the root of a game that holds its settings.",
      "doc": "Package project reads, validates, writes and applies game.yaml, the one project file at the root of a game that holds its settings.\n\n# The Project File\n\nA game.yaml names the game (name, id, appVersion) and holds its window and virtual resolution (window, display), its input map (input), its audio buses (audio), the scenes and resources it loads at startup (autoload), its export presets per platform (export), the editor plugins the scene editor turns on for it (editor) and the asset pipeline targets game assets builds (assets). Parse decodes a version 1 file into a File and runs Validate, refusing unknown fields, unsupported versions, duplicate names and out-of-range values. Encode validates a File and writes deterministic 2-space YAML in a fixed key order that Parse reads back unchanged, so a load and save never alters a file Encode wrote.\n\n# The Runtime\n\nA game embeds its game.yaml and reads it with Parse (or MustParse for a file that is part of the program). File.WindowSize, File.WindowConstraints and File.Appearance feed nsgo.Run's options, File.Viewport is the screen.Viewport of the virtual resolution, File.BindInput binds the input map into an input.Actions, File.ConfigureMixer gives a sound.Mixer each bus's default volume and DSP chain, and File.LoadAutoloads reads the autoloaded scenes (as sceneformat documents) and resources from an fs.FS.\n\n# The Tools\n\ngame.yaml owns the fields NSGo's own nsgo.yaml repeats: the app's name, id and version, its appearance and its build output and targets. SyncNSGo writes them into an nsgo.yaml, keeping its other keys and comments, and CheckNSGo reports where an nsgo.yaml disagrees. The gameproject command runs these on a project directory, and the editor opens and saves game.yaml (editor.Editor.OpenProject, EditProject and SaveProject). PathRefs lists every path game.yaml holds to a file or folder of the project with the YAML node that writes it, and File.EachPath visits the same paths in a parsed File, so that package refs can check and rewrite them when a file moves.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FieldAutoloadScene",
              "anchor": "FieldAutoloadScene"
            },
            {
              "name": "FieldAutoloadResource",
              "anchor": "FieldAutoloadResource"
            },
            {
              "name": "FieldAssetsCache",
              "anchor": "FieldAssetsCache"
            },
            {
              "name": "FieldAtlasIn",
              "anchor": "FieldAtlasIn"
            },
            {
              "name": "FieldAtlasOut",
              "anchor": "FieldAtlasOut"
            },
            {
              "name": "FieldTextureIn",
              "anchor": "FieldTextureIn"
            },
            {
              "name": "FieldTextureOut",
              "anchor": "FieldTextureOut"
            },
            {
              "name": "FieldAudioIn",
              "anchor": "FieldAudioIn"
            },
            {
              "name": "FieldAudioOut",
              "anchor": "FieldAudioOut"
            },
            {
              "name": "FieldFontIn",
              "anchor": "FieldFontIn"
            },
            {
              "name": "FieldFontOut",
              "anchor": "FieldFontOut"
            },
            {
              "name": "FieldModelIn",
              "anchor": "FieldModelIn"
            },
            {
              "name": "FieldModelOut",
              "anchor": "FieldModelOut"
            },
            {
              "name": "FieldManifestIn",
              "anchor": "FieldManifestIn"
            },
            {
              "name": "FieldManifestOut",
              "anchor": "FieldManifestOut"
            }
          ],
          "decl": "const (\n\tFieldAutoloadScene    = \"autoload scene\"\n\tFieldAutoloadResource = \"autoload resource\"\n\tFieldAssetsCache      = \"assets cache\"\n\tFieldAtlasIn          = \"assets atlas in\"\n\tFieldAtlasOut         = \"assets atlas out\"\n\tFieldTextureIn        = \"assets texture in\"\n\tFieldTextureOut       = \"assets texture out\"\n\tFieldAudioIn          = \"assets audio in\"\n\tFieldAudioOut         = \"assets audio out\"\n\tFieldFontIn           = \"assets font in\"\n\tFieldFontOut          = \"assets font out\"\n\tFieldModelIn          = \"assets model in\"\n\tFieldModelOut         = \"assets model out\"\n\tFieldManifestIn       = \"assets manifest in\"\n\tFieldManifestOut      = \"assets manifest out\"\n)",
          "doc": "The fields of a project file that hold a path to a file or folder of the project, in PathRef.Field and in messages.\n",
          "file": "pkg/project/paths.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "KindTouchRegion",
              "anchor": "KindTouchRegion"
            },
            {
              "name": "KindMouseButton",
              "anchor": "KindMouseButton"
            },
            {
              "name": "KindMouseRegion",
              "anchor": "KindMouseRegion"
            },
            {
              "name": "KindKey",
              "anchor": "KindKey"
            },
            {
              "name": "KindKeyCode",
              "anchor": "KindKeyCode"
            },
            {
              "name": "KindGamepadButton",
              "anchor": "KindGamepadButton"
            }
          ],
          "decl": "const (\n\t// KindTouchRegion is a touch inside Region (input.TouchRegion).\n\tKindTouchRegion = \"touchRegion\"\n\t// KindMouseButton is Button held anywhere on the view (input.MouseButton).\n\tKindMouseButton = \"mouseButton\"\n\t// KindMouseRegion is Button held inside Region (input.MouseRegion).\n\tKindMouseRegion = \"mouseRegion\"\n\t// KindKey is Key held on a keyboard, following the active keyboard layout (input.Key).\n\tKindKey = \"key\"\n\t// KindKeyCode is Code held at a physical keyboard position, independent of layout (input.KeyCode).\n\tKindKeyCode = \"keyCode\"\n\t// KindGamepadButton is Button held on a connected game controller (input.GamepadButton).\n\tKindGamepadButton = \"gamepadButton\"\n)",
          "doc": "Binding kinds name the input.Input constructors.\n",
          "file": "pkg/project/project.go",
          "line": 123
        },
        {
          "idents": [
            {
              "name": "PackAsset",
              "anchor": "PackAsset"
            },
            {
              "name": "PackPlugin",
              "anchor": "PackPlugin"
            },
            {
              "name": "PackTemplate",
              "anchor": "PackTemplate"
            }
          ],
          "decl": "const (\n\t// PackAsset is a pack of assets, such as images, atlases, sounds and data files.\n\tPackAsset = \"asset\"\n\t// PackPlugin is a pack that turns on editor plugins, with any files they read.\n\tPackPlugin = \"plugin\"\n\t// PackTemplate is a pack of scenes and prefabs a game starts from or builds on.\n\tPackTemplate = \"template\"\n)",
          "doc": "Pack kinds name what a library pack holds.\n",
          "file": "pkg/project/project.go",
          "line": 408
        },
        {
          "idents": [
            {
              "name": "BriefFileName",
              "anchor": "BriefFileName"
            }
          ],
          "decl": "const BriefFileName = \"brief.yaml\"",
          "doc": "BriefFileName is the game brief file name at a project's root.\n",
          "file": "pkg/project/brief.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "BriefSchemaComment",
              "anchor": "BriefSchemaComment"
            }
          ],
          "decl": "const BriefSchemaComment = \"# yaml-language-server: $schema=\" + BriefSchemaURL",
          "doc": "BriefSchemaComment is the first line EncodeBrief writes: a YAML comment pointing a YAML language server at BriefSchemaURL.\n",
          "file": "pkg/project/brief.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "BriefSchemaURL",
              "anchor": "BriefSchemaURL"
            }
          ],
          "decl": "const BriefSchemaURL = \"https://game.nsgo.dev/schemas/brief.v1.json\"",
          "doc": "BriefSchemaURL is where the JSON Schema of version 1 game brief files (brief.yaml) is published.\n",
          "file": "pkg/project/brief.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "BriefVersion",
              "anchor": "BriefVersion"
            }
          ],
          "decl": "const BriefVersion = 1",
          "doc": "BriefVersion is the brief.yaml schema version this package reads and writes.\n",
          "file": "pkg/project/brief.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the project file schema version this package reads and writes.\n",
          "file": "pkg/project/project.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "DefaultAssetsCache",
              "anchor": "DefaultAssetsCache"
            }
          ],
          "decl": "const DefaultAssetsCache = \".game/assets-cache.yaml\"",
          "doc": "DefaultAssetsCache is where game assets keeps its build cache, relative to the project root, when Assets.Cache is empty. Its directory starts with a dot, so the manifest's scan of an assets directory never lists it.\n",
          "file": "pkg/project/assets.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "DefaultFontChars",
              "anchor": "DefaultFontChars"
            }
          ],
          "decl": "const DefaultFontChars = \" !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\"",
          "doc": "DefaultFontChars are the characters a font target bakes when neither it nor its font's import settings list them: printable ASCII, from the space to the tilde.\n",
          "file": "pkg/project/assets.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "DefaultFontSize",
              "anchor": "DefaultFontSize"
            }
          ],
          "decl": "const DefaultFontSize = 32",
          "doc": "DefaultFontSize is the size in pixels a font target bakes its glyphs at when neither it nor its font's import settings set one.\n",
          "file": "pkg/project/assets.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "DefaultNavAgent",
              "anchor": "DefaultNavAgent"
            }
          ],
          "decl": "const DefaultNavAgent = \"default\"",
          "doc": "DefaultNavAgent names the agent type game navmesh bakes for when game.yaml declares none.\n",
          "file": "pkg/project/project.go",
          "line": 366
        },
        {
          "idents": [
            {
              "name": "FileName",
              "anchor": "FileName"
            }
          ],
          "decl": "const FileName = \"game.yaml\"",
          "doc": "FileName is the project file's name at a game's root.\n",
          "file": "pkg/project/project.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "MaxFontSize",
              "anchor": "MaxFontSize"
            }
          ],
          "decl": "const MaxFontSize = 2048",
          "doc": "MaxFontSize is the largest size in pixels a font target or a font's import settings may set: the width and height of a font's page, which each glyph must fit on.\n",
          "file": "pkg/project/assets.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "MaxNavVertsPerPoly",
              "anchor": "MaxNavVertsPerPoly"
            }
          ],
          "decl": "const MaxNavVertsPerPoly = 12",
          "doc": "MaxNavVertsPerPoly is the largest Navigation.MaxVertsPerPoly.\n",
          "file": "pkg/project/project.go",
          "line": 369
        },
        {
          "idents": [
            {
              "name": "NSGoFileName",
              "anchor": "NSGoFileName"
            }
          ],
          "decl": "const NSGoFileName = \"nsgo.yaml\"",
          "doc": "NSGoFileName is NSGo's own project file, beside game.yaml.\n",
          "file": "pkg/project/nsgo.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "SchemaURL",
              "anchor": "SchemaURL"
            }
          ],
          "decl": "const SchemaURL = \"https://game.nsgo.dev/schemas/game.v1.json\"",
          "doc": "SchemaURL is where the JSON Schema of version 1 project files (game.yaml) is published.\n",
          "file": "pkg/project/project.go",
          "line": 28
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "AudioFormats",
              "anchor": "AudioFormats"
            }
          ],
          "decl": "var AudioFormats = []string{\"wav\", \"aac\", \"mp3\"}",
          "doc": "AudioFormats are the formats an audio target may name, as game audio's -format flag spells them.\n",
          "file": "pkg/project/assets.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "BindingKinds",
              "anchor": "BindingKinds"
            }
          ],
          "decl": "var BindingKinds = []string{KindTouchRegion, KindMouseButton, KindMouseRegion, KindKey, KindKeyCode, KindGamepadButton}",
          "doc": "BindingKinds lists every binding kind a game.yaml action may declare, in display order.\n",
          "file": "pkg/project/project.go",
          "line": 139
        },
        {
          "idents": [
            {
              "name": "BriefSections",
              "anchor": "BriefSections"
            }
          ],
          "decl": "var BriefSections = []BriefSection{\n\tBriefSectionPitch,\n\tBriefSectionGenre,\n\tBriefSectionPlatforms,\n\tBriefSectionArtDirection,\n\tBriefSectionFeel,\n\tBriefSectionToneAndAudio,\n}",
          "doc": "BriefSections lists every section checked by Brief.MissingSections in canonical display order.\n",
          "file": "pkg/project/brief.go",
          "line": 46
        },
        {
          "idents": [
            {
              "name": "GamepadAxes",
              "anchor": "GamepadAxes"
            }
          ],
          "decl": "var GamepadAxes = []string{\"leftX\", \"leftY\", \"rightX\", \"rightY\"}",
          "doc": "GamepadAxes lists the W3C Standard Gamepad stick axis names accepted by GamepadAxis.Axis.\n",
          "file": "pkg/project/project.go",
          "line": 157
        },
        {
          "idents": [
            {
              "name": "GamepadButtons",
              "anchor": "GamepadButtons"
            }
          ],
          "decl": "var GamepadButtons = []string{\n\t\"south\", \"east\", \"west\", \"north\",\n\t\"leftShoulder\", \"rightShoulder\", \"leftTrigger\", \"rightTrigger\",\n\t\"back\", \"start\", \"leftStick\", \"rightStick\",\n\t\"dpadUp\", \"dpadDown\", \"dpadLeft\", \"dpadRight\",\n\t\"home\",\n}",
          "doc": "GamepadButtons lists the W3C Standard Gamepad button names accepted by KindGamepadButton.\n",
          "file": "pkg/project/project.go",
          "line": 145
        },
        {
          "idents": [
            {
              "name": "MotionAxes",
              "anchor": "MotionAxes"
            }
          ],
          "decl": "var MotionAxes = []string{\"tiltX\", \"tiltY\", \"tiltZ\", \"gyroX\", \"gyroY\", \"gyroZ\"}",
          "doc": "MotionAxes lists the device motion sensor axis names accepted by MotionAxis.Axis.\n",
          "file": "pkg/project/project.go",
          "line": 154
        },
        {
          "idents": [
            {
              "name": "MouseButtons",
              "anchor": "MouseButtons"
            }
          ],
          "decl": "var MouseButtons = []string{\"left\", \"right\", \"middle\", \"back\", \"forward\"}",
          "doc": "MouseButtons lists the mouse button names accepted by KindMouseButton and KindMouseRegion.\n",
          "file": "pkg/project/project.go",
          "line": 142
        },
        {
          "idents": [
            {
              "name": "PackKinds",
              "anchor": "PackKinds"
            }
          ],
          "decl": "var PackKinds = []string{PackAsset, PackPlugin, PackTemplate}",
          "doc": "PackKinds are the kinds a Pack may have, in the order the tools list them.\n",
          "file": "pkg/project/project.go",
          "line": 418
        },
        {
          "idents": [
            {
              "name": "Platforms",
              "anchor": "Platforms"
            }
          ],
          "decl": "var Platforms = []string{\"macos\", \"windows\", \"linux\", \"ios\", \"tvos\", \"watchos\", \"android\", \"harmonyos\", \"web\", \"miniprogram\"}",
          "doc": "Platforms are the export preset platforms, each a name nsgo build -target accepts.\n",
          "file": "pkg/project/nsgo.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "TextureFormats",
              "anchor": "TextureFormats"
            }
          ],
          "decl": "var TextureFormats = []string{\"rgba8\", \"bc1\", \"bc3\", \"etc2\"}",
          "doc": "TextureFormats are the KTX2 formats a texture target may name, as game tex's -format flag spells them.\n",
          "file": "pkg/project/assets.go",
          "line": 19
        }
      ],
      "funcs": [
        {
          "name": "AtlasNamed",
          "anchor": "AtlasNamed",
          "decl": "func AtlasNamed(p, name string) bool",
          "doc": "AtlasNamed reports whether name names the atlas JSON file at p, a slash-separated path from the project root, as NearestAtlases matches it before choosing the nearest: p without its extension is name, cleaned and taken from the project root, or p's base name without its extension is name.\n",
          "file": "pkg/project/resolver.go",
          "line": 407
        },
        {
          "name": "Bool",
          "anchor": "Bool",
          "decl": "func Bool(v bool) *bool",
          "doc": "Bool returns a pointer to v for optional fields such as Window.Resizable.\n",
          "file": "pkg/project/project.go",
          "line": 462
        },
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(f *File) ([]byte, error)",
          "doc": "Encode validates f and serializes it as deterministic 2-space YAML that Parse reads back unchanged.\n",
          "file": "pkg/project/project.go",
          "line": 513
        },
        {
          "name": "EncodeBrief",
          "anchor": "EncodeBrief",
          "decl": "func EncodeBrief(b *Brief) ([]byte, error)",
          "doc": "EncodeBrief validates b and writes it as deterministic 2-space YAML prefixed with BriefSchemaComment.\nA file EncodeBrief wrote loads and saves back unchanged byte for byte.\n",
          "file": "pkg/project/brief.go",
          "line": 508
        },
        {
          "name": "Float32",
          "anchor": "Float32",
          "decl": "func Float32(v float32) *float32",
          "doc": "Float32 returns a pointer to v for optional fields such as Bus.Volume and Audio.Master.\n",
          "file": "pkg/project/project.go",
          "line": 465
        },
        {
          "name": "Float64",
          "anchor": "Float64",
          "decl": "func Float64(v float64) *float64",
          "doc": "Float64 returns a pointer to v for optional numeric bounds such as BriefPlaytestTarget.Min, Max, and Equal.\n",
          "file": "pkg/project/brief.go",
          "line": 121
        },
        {
          "name": "HasScheme",
          "anchor": "HasScheme",
          "decl": "func HasScheme(ref string) bool",
          "doc": "HasScheme reports whether ref starts with a URI scheme of two or more letters, such as asset: or https:, which ResolveRef refuses as a path.\n",
          "file": "pkg/project/resolver.go",
          "line": 368
        },
        {
          "name": "IsAtlasJSON",
          "anchor": "IsAtlasJSON",
          "decl": "func IsAtlasJSON(data []byte) bool",
          "doc": "IsAtlasJSON reports whether data is a JSON object with top-level frames (an object or an array) and meta (an object), as TexturePacker and Aseprite export an atlas: the test Resolver and `game check` both tell a project's atlas JSON files from its other JSON files by.\n",
          "file": "pkg/project/resolver.go",
          "line": 287
        },
        {
          "name": "IsSHA256",
          "anchor": "IsSHA256",
          "decl": "func IsSHA256(s string) bool",
          "doc": "IsSHA256 reports whether s is a SHA-256 digest written as 64 lower-case hexadecimal digits.\n",
          "file": "pkg/project/project.go",
          "line": 1252
        },
        {
          "name": "NearestAtlases",
          "anchor": "NearestAtlases",
          "decl": "func NearestAtlases(atlases []string, from, name string) []string",
          "doc": "NearestAtlases returns which of atlases, the slash-separated paths of a project's atlas JSON files from its root, a scene in the directory from (a path from the root, \".\" for the root itself) names name, as `game check` and Resolver find them: the files whose path without its extension is name, or whose base name without its extension is name, keeping only those nearest from, counting the directories up from from and down to the file. It returns them sorted; more than one means name is ambiguous there, and none that it names no atlas.\n",
          "file": "pkg/project/resolver.go",
          "line": 384
        },
        {
          "name": "ResolveRef",
          "anchor": "ResolveRef",
          "decl": "func ResolveRef(dir, ref string) (string, error)",
          "doc": "ResolveRef joins ref, a slash-separated path written in a file of a project, to dir, the slash-separated directory from the project root it is relative to, and returns the path from the project root, or an error saying why ref cannot name a file there: it refuses a path with backslashes, an absolute path or one starting with a Windows drive letter such as C:, a URI with a scheme of two or more letters (HasScheme), and a path that leads outside the root. `game check` (package assetcheck) reads the paths files write with it, and Resolver reads an atlas's meta.image with it, so the two accept the same images.\n",
          "file": "pkg/project/resolver.go",
          "line": 346
        },
        {
          "name": "SaveBrief",
          "anchor": "SaveBrief",
          "decl": "func SaveBrief(path string, b *Brief) error",
          "doc": "SaveBrief validates, encodes, and writes b to path in canonical YAML form.\n",
          "file": "pkg/project/brief.go",
          "line": 583
        },
        {
          "name": "SkipDir",
          "anchor": "SkipDir",
          "decl": "func SkipDir(name string) bool",
          "doc": "SkipDir reports whether a walk of a project's files skips the directory called name, as the go command skips it: a name starting with \".\" or \"_\", or testdata. Resolver and `game check` both skip them.\n",
          "file": "pkg/project/resolver.go",
          "line": 266
        },
        {
          "name": "TargetsOf",
          "anchor": "TargetsOf",
          "decl": "func TargetsOf(platform string) []string",
          "doc": "TargetsOf returns the NSGo build targets a preset for platform may list.\n",
          "file": "pkg/project/nsgo.go",
          "line": 39
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(f *File) error",
          "doc": "Validate checks that f conforms to the version 1 schema.\n",
          "file": "pkg/project/project.go",
          "line": 638
        },
        {
          "name": "ValidateBrief",
          "anchor": "ValidateBrief",
          "decl": "func ValidateBrief(b *Brief) error",
          "doc": "ValidateBrief checks b against the version 1 brief.yaml schema.\n",
          "file": "pkg/project/brief.go",
          "line": 290
        },
        {
          "name": "ValidateFontChars",
          "anchor": "ValidateFontChars",
          "decl": "func ValidateFontChars(chars string) error",
          "doc": "ValidateFontChars checks the characters of a font target or a font's import settings: valid UTF-8 without control characters, line breaks included. The space is allowed.\n",
          "file": "pkg/project/assets.go",
          "line": 147
        },
        {
          "name": "ValidateFontSize",
          "anchor": "ValidateFontSize",
          "decl": "func ValidateFontSize(size int) error",
          "doc": "ValidateFontSize checks the size of a font target or a font's import settings: 0, which keeps the default, up to MaxFontSize.\n",
          "file": "pkg/project/assets.go",
          "line": 139
        },
        {
          "name": "ValidateModelScale",
          "anchor": "ValidateModelScale",
          "decl": "func ValidateModelScale(scale float64) error",
          "doc": "ValidateModelScale checks the scale of a model target or a model's import settings: a finite number that is not negative, 0 meaning the default.\n",
          "file": "pkg/project/assets.go",
          "line": 158
        },
        {
          "name": "ValidatePackName",
          "anchor": "ValidatePackName",
          "decl": "func ValidatePackName(name string) error",
          "doc": "ValidatePackName reports whether name can name a library pack: 1 to 64 lower-case ASCII letters, digits and '-', starting with a letter or digit, so that it is also a directory name on every platform.\n",
          "file": "pkg/project/project.go",
          "line": 1231
        },
        {
          "name": "ValidatePackVersion",
          "anchor": "ValidatePackVersion",
          "decl": "func ValidatePackVersion(v string) error",
          "doc": "ValidatePackVersion reports whether v can be a pack's version: 1 to 64 characters with no spaces or control characters, such as 1.2.0.\n",
          "file": "pkg/project/project.go",
          "line": 1244
        }
      ],
      "types": [
        {
          "name": "Action",
          "anchor": "Action",
          "decl": "type Action struct {\n\t// Name uniquely identifies the action.\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Bindings are the inputs that press the action; an action without any is declared for code to bind, such as one an axis reads.\n\tBindings []Binding `yaml:\"bindings,omitempty\"`\n}",
          "doc": "Action is one named action and the physical inputs that trigger it.\n",
          "file": "pkg/project/project.go",
          "line": 115,
          "members": [
            {
              "name": "Name",
              "anchor": "Action.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the action."
            },
            {
              "name": "Bindings",
              "anchor": "Action.Bindings",
              "kind": "field",
              "doc": "Bindings are the inputs that press the action; an action without any is declared for code to bind, such as one an axis reads."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Assets",
          "anchor": "Assets",
          "decl": "type Assets struct {\n\t// Cache is the build cache's path; empty is DefaultAssetsCache.\n\tCache string `yaml:\"cache,omitempty\"`\n\t// Atlases are the sprite atlases to pack, each from one folder of PNG images.\n\tAtlases []AtlasTarget `yaml:\"atlases,omitempty\"`\n\t// Textures are the images to encode into KTX2 containers.\n\tTextures []TextureTarget `yaml:\"textures,omitempty\"`\n\t// Audio are the WAV files to normalize, resample and convert.\n\tAudio []AudioTarget `yaml:\"audio,omitempty\"`\n\t// Fonts are the TrueType and OpenType fonts to bake into bitmap fonts.\n\tFonts []FontTarget `yaml:\"fonts,omitempty\"`\n\t// Models are the glTF models to pack into single GLB files.\n\tModels []ModelTarget `yaml:\"models,omitempty\"`\n\t// Manifest, when set, is the typed Go asset manifest generated after every other target is built.\n\tManifest *ManifestTarget `yaml:\"manifest,omitempty\"`\n}",
          "doc": "Assets declares the targets game assets builds: the sprite atlases to pack, the textures to encode, the audio to convert, the fonts to bake, the models to pack and the asset manifest to generate. Paths in it are slash-separated and relative to the project root, and may not leave it.\n",
          "file": "pkg/project/assets.go",
          "line": 34,
          "members": [
            {
              "name": "Cache",
              "anchor": "Assets.Cache",
              "kind": "field",
              "doc": "Cache is the build cache's path; empty is DefaultAssetsCache."
            },
            {
              "name": "Atlases",
              "anchor": "Assets.Atlases",
              "kind": "field",
              "doc": "Atlases are the sprite atlases to pack, each from one folder of PNG images."
            },
            {
              "name": "Textures",
              "anchor": "Assets.Textures",
              "kind": "field",
              "doc": "Textures are the images to encode into KTX2 containers."
            },
            {
              "name": "Audio",
              "anchor": "Assets.Audio",
              "kind": "field",
              "doc": "Audio are the WAV files to normalize, resample and convert."
            },
            {
              "name": "Fonts",
              "anchor": "Assets.Fonts",
              "kind": "field",
              "doc": "Fonts are the TrueType and OpenType fonts to bake into bitmap fonts."
            },
            {
              "name": "Models",
              "anchor": "Assets.Models",
              "kind": "field",
              "doc": "Models are the glTF models to pack into single GLB files."
            },
            {
              "name": "Manifest",
              "anchor": "Assets.Manifest",
              "kind": "field",
              "doc": "Manifest, when set, is the typed Go asset manifest generated after every other target is built."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CachePath",
              "anchor": "Assets.CachePath",
              "recv": "*Assets",
              "decl": "func (a *Assets) CachePath() string",
              "doc": "CachePath returns the build cache's slash-separated path relative to the project root: Cache, or DefaultAssetsCache when a is nil or Cache is empty.\n",
              "file": "pkg/project/assets.go",
              "line": 182
            },
            {
              "name": "IsOutput",
              "anchor": "Assets.IsOutput",
              "recv": "*Assets",
              "decl": "func (a *Assets) IsOutput(p string) bool",
              "doc": "IsOutput reports whether a target of a writes the file at the slash-separated path p, relative to the project root: the cache, a texture, an audio output, a font's .fnt file or one of its pages (name.png or name-N.png beside it), a model, the manifest, or a page of an atlas (name.png, name.json, name-N.png or name-N.json in its out folder). Such a file is built from the targets' inputs rather than authored, so it is not an asset of its own. A nil a writes nothing.\n",
              "file": "pkg/project/assets.go",
              "line": 190
            },
            {
              "name": "Validate",
              "anchor": "Assets.Validate",
              "recv": "*Assets",
              "decl": "func (a *Assets) Validate() error",
              "doc": "Validate checks the assets section as Validate checks the whole file: paths that are relative, slash-separated and stay inside the project, settings in range, known formats, no two targets writing the same file, no file written over game.yaml or over a target's input, no atlas or font page or other PNG written where an atlas reads its images, and no cache where the manifest lists assets.\n",
              "file": "pkg/project/assets.go",
              "line": 231
            }
          ]
        },
        {
          "name": "AtlasTarget",
          "anchor": "AtlasTarget",
          "decl": "type AtlasTarget struct {\n\t// Name is the base name of the atlas's page files, such as \"ui\" for ui.png and ui.json.\n\tName string `yaml:\"name\"`\n\t// In is the folder of PNG images, searched recursively.\n\tIn string `yaml:\"in\"`\n\t// Out is the folder the pages are written to.\n\tOut string `yaml:\"out\"`\n\t// Padding is the transparent gap between frames in pixels; nil is 1.\n\tPadding *int `yaml:\"padding,omitempty\"`\n\t// Extrude is how many edge pixels are repeated around each frame.\n\tExtrude int `yaml:\"extrude,omitempty\"`\n\t// MaxWidth bounds a page's width in pixels; 0 is 2048.\n\tMaxWidth int `yaml:\"maxWidth,omitempty\"`\n\t// MaxHeight bounds a page's height in pixels; 0 is 2048.\n\tMaxHeight int `yaml:\"maxHeight,omitempty\"`\n\t// Scale is written to the pages' meta.scale; 0 is 1.\n\tScale int `yaml:\"scale,omitempty\"`\n\t// Trim removes transparent borders around each image; nil is true.\n\tTrim *bool `yaml:\"trim,omitempty\"`\n}",
          "doc": "AtlasTarget is one sprite atlas packed from a folder of PNG images, as game pack packs it.\n",
          "file": "pkg/project/assets.go",
          "line": 52,
          "members": [
            {
              "name": "Name",
              "anchor": "AtlasTarget.Name",
              "kind": "field",
              "doc": "Name is the base name of the atlas's page files, such as \"ui\" for ui.png and ui.json."
            },
            {
              "name": "In",
              "anchor": "AtlasTarget.In",
              "kind": "field",
              "doc": "In is the folder of PNG images, searched recursively."
            },
            {
              "name": "Out",
              "anchor": "AtlasTarget.Out",
              "kind": "field",
              "doc": "Out is the folder the pages are written to."
            },
            {
              "name": "Padding",
              "anchor": "AtlasTarget.Padding",
              "kind": "field",
              "doc": "Padding is the transparent gap between frames in pixels; nil is 1."
            },
            {
              "name": "Extrude",
              "anchor": "AtlasTarget.Extrude",
              "kind": "field",
              "doc": "Extrude is how many edge pixels are repeated around each frame."
            },
            {
              "name": "MaxWidth",
              "anchor": "AtlasTarget.MaxWidth",
              "kind": "field",
              "doc": "MaxWidth bounds a page's width in pixels; 0 is 2048."
            },
            {
              "name": "MaxHeight",
              "anchor": "AtlasTarget.MaxHeight",
              "kind": "field",
              "doc": "MaxHeight bounds a page's height in pixels; 0 is 2048."
            },
            {
              "name": "Scale",
              "anchor": "AtlasTarget.Scale",
              "kind": "field",
              "doc": "Scale is written to the pages' meta.scale; 0 is 1."
            },
            {
              "name": "Trim",
              "anchor": "AtlasTarget.Trim",
              "kind": "field",
              "doc": "Trim removes transparent borders around each image; nil is true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Audio",
          "anchor": "Audio",
          "decl": "type Audio struct {\n\t// Master is the default master volume in [0, 1]; nil leaves it at 1.\n\tMaster *float32 `yaml:\"master,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Buses are the mixer groups in declaration order.\n\tBuses []Bus `yaml:\"buses,omitempty\"`\n}",
          "doc": "Audio is the master volume and the buses (sound.Mixer groups) a game plays through.\n",
          "file": "pkg/project/project.go",
          "line": 238,
          "members": [
            {
              "name": "Master",
              "anchor": "Audio.Master",
              "kind": "field",
              "doc": "Master is the default master volume in [0, 1]; nil leaves it at 1."
            },
            {
              "name": "Buses",
              "anchor": "Audio.Buses",
              "kind": "field",
              "doc": "Buses are the mixer groups in declaration order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AudioTarget",
          "anchor": "AudioTarget",
          "decl": "type AudioTarget struct {\n\t// In is the source WAV file.\n\tIn string `yaml:\"in\"`\n\t// Out is the file written.\n\tOut string `yaml:\"out\"`\n\t// Format is one of AudioFormats; empty is wav. aac and mp3 need an external encoder, as game audio describes.\n\tFormat string `yaml:\"format,omitempty\"`\n\t// Rate is the sample rate in Hz; 0 keeps the input's.\n\tRate int `yaml:\"rate,omitempty\"`\n\t// Channels is 1 for mono or 2 for stereo; 0 keeps the input's.\n\tChannels int `yaml:\"channels,omitempty\"`\n\t// PeakDB normalizes the peak to this level in dBFS; it may not be set with RMSDB.\n\tPeakDB *float64 `yaml:\"peakDB,omitempty\"`\n\t// RMSDB normalizes the loudness to this level in dBFS with soft clipping; it may not be set with PeakDB.\n\tRMSDB *float64 `yaml:\"rmsDB,omitempty\"`\n\t// Bitrate is the AAC or MP3 bitrate in kbps; 0 is 128.\n\tBitrate int `yaml:\"bitrate,omitempty\"`\n}",
          "doc": "AudioTarget is one WAV file normalized, resampled and converted, as game audio converts it.\n",
          "file": "pkg/project/assets.go",
          "line": 88,
          "members": [
            {
              "name": "In",
              "anchor": "AudioTarget.In",
              "kind": "field",
              "doc": "In is the source WAV file."
            },
            {
              "name": "Out",
              "anchor": "AudioTarget.Out",
              "kind": "field",
              "doc": "Out is the file written."
            },
            {
              "name": "Format",
              "anchor": "AudioTarget.Format",
              "kind": "field",
              "doc": "Format is one of AudioFormats; empty is wav. aac and mp3 need an external encoder, as game audio describes."
            },
            {
              "name": "Rate",
              "anchor": "AudioTarget.Rate",
              "kind": "field",
              "doc": "Rate is the sample rate in Hz; 0 keeps the input's."
            },
            {
              "name": "Channels",
              "anchor": "AudioTarget.Channels",
              "kind": "field",
              "doc": "Channels is 1 for mono or 2 for stereo; 0 keeps the input's."
            },
            {
              "name": "PeakDB",
              "anchor": "AudioTarget.PeakDB",
              "kind": "field",
              "doc": "PeakDB normalizes the peak to this level in dBFS; it may not be set with RMSDB."
            },
            {
              "name": "RMSDB",
              "anchor": "AudioTarget.RMSDB",
              "kind": "field",
              "doc": "RMSDB normalizes the loudness to this level in dBFS with soft clipping; it may not be set with PeakDB."
            },
            {
              "name": "Bitrate",
              "anchor": "AudioTarget.Bitrate",
              "kind": "field",
              "doc": "Bitrate is the AAC or MP3 bitrate in kbps; 0 is 128."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Autoload",
          "anchor": "Autoload",
          "decl": "type Autoload struct {\n\t// MainScene names the scene in Scenes the game starts in; empty leaves the choice to the game.\n\tMainScene string `yaml:\"mainScene,omitempty\"`\n\t// Scenes are sceneformat YAML documents, loaded and validated at startup.\n\tScenes []Entry `yaml:\"scenes,omitempty\"`\n\t// Resources are other files loaded as bytes at startup, such as data tables.\n\tResources []Entry `yaml:\"resources,omitempty\"`\n}",
          "doc": "Autoload lists the scenes and resources a game loads at startup.\n",
          "file": "pkg/project/project.go",
          "line": 314,
          "members": [
            {
              "name": "MainScene",
              "anchor": "Autoload.MainScene",
              "kind": "field",
              "doc": "MainScene names the scene in Scenes the game starts in; empty leaves the choice to the game."
            },
            {
              "name": "Scenes",
              "anchor": "Autoload.Scenes",
              "kind": "field",
              "doc": "Scenes are sceneformat YAML documents, loaded and validated at startup."
            },
            {
              "name": "Resources",
              "anchor": "Autoload.Resources",
              "kind": "field",
              "doc": "Resources are other files loaded as bytes at startup, such as data tables."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Axis",
          "anchor": "Axis",
          "decl": "type Axis struct {\n\t// Name uniquely identifies the axis.\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Negative names a declared action that drives the axis toward -1; at least one of Negative and Positive is required.\n\tNegative string `yaml:\"negative,omitempty\"`\n\t// Positive names a declared action that drives the axis toward +1; at least one of Negative and Positive is required.\n\tPositive string `yaml:\"positive,omitempty\"`\n}",
          "doc": "Axis is a named axis over two actions, as input.Actions.BindAxis binds it.\n",
          "file": "pkg/project/project.go",
          "line": 194,
          "members": [
            {
              "name": "Name",
              "anchor": "Axis.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the axis."
            },
            {
              "name": "Negative",
              "anchor": "Axis.Negative",
              "kind": "field",
              "doc": "Negative names a declared action that drives the axis toward -1; at least one of Negative and Positive is required."
            },
            {
              "name": "Positive",
              "anchor": "Axis.Positive",
              "kind": "field",
              "doc": "Positive names a declared action that drives the axis toward +1; at least one of Negative and Positive is required."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Binding",
          "anchor": "Binding",
          "decl": "type Binding struct {\n\t// Kind is KindTouchRegion, KindMouseButton, KindMouseRegion, KindKey, KindKeyCode or KindGamepadButton.\n\tKind string `yaml:\"kind\" schema:\"required,enum=touchRegion|mouseButton|mouseRegion|key|keyCode|gamepadButton\"`\n\t// Button is a mouse button (\"left\", \"right\", \"middle\", \"back\" or \"forward\") for KindMouseButton and KindMouseRegion, or a standard gamepad button (one of GamepadButtons) for KindGamepadButton; refused by other kinds.\n\tButton string `yaml:\"button,omitempty\"`\n\t// Key is the keyboard key name (such as \"a\", \"space\", \"left\", \"enter\" or \"shift\") for KindKey, matched case-insensitively as input.Key does; refused by other kinds.\n\tKey string `yaml:\"key,omitempty\"`\n\t// Code is the physical keyboard position (such as \"KeyW\", \"ArrowLeft\", \"Space\" or \"ShiftLeft\") for KindKeyCode, as input.KeyCode reads it; refused by other kinds.\n\tCode string `yaml:\"code,omitempty\"`\n\t// Region is the rectangle in virtual coordinates (or view coordinates without a Display) that KindTouchRegion and KindMouseRegion test; refused by other kinds.\n\tRegion *Rect `yaml:\"region,omitempty,flow\"`\n}",
          "doc": "Binding is one physical input bound to an action.\n",
          "file": "pkg/project/project.go",
          "line": 160,
          "members": [
            {
              "name": "Kind",
              "anchor": "Binding.Kind",
              "kind": "field",
              "doc": "Kind is KindTouchRegion, KindMouseButton, KindMouseRegion, KindKey, KindKeyCode or KindGamepadButton."
            },
            {
              "name": "Button",
              "anchor": "Binding.Button",
              "kind": "field",
              "doc": "Button is a mouse button (\"left\", \"right\", \"middle\", \"back\" or \"forward\") for KindMouseButton and KindMouseRegion, or a standard gamepad button (one of GamepadButtons) for KindGamepadButton; refused by other kinds."
            },
            {
              "name": "Key",
              "anchor": "Binding.Key",
              "kind": "field",
              "doc": "Key is the keyboard key name (such as \"a\", \"space\", \"left\", \"enter\" or \"shift\") for KindKey, matched case-insensitively as input.Key does; refused by other kinds."
            },
            {
              "name": "Code",
              "anchor": "Binding.Code",
              "kind": "field",
              "doc": "Code is the physical keyboard position (such as \"KeyW\", \"ArrowLeft\", \"Space\" or \"ShiftLeft\") for KindKeyCode, as input.KeyCode reads it; refused by other kinds."
            },
            {
              "name": "Region",
              "anchor": "Binding.Region",
              "kind": "field",
              "doc": "Region is the rectangle in virtual coordinates (or view coordinates without a Display) that KindTouchRegion and KindMouseRegion test; refused by other kinds."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Input",
              "anchor": "Binding.Input",
              "recv": "Binding",
              "decl": "func (b Binding) Input() input.Input",
              "doc": "Input returns b as an input.Input; a Binding Validate refused returns the zero Input, which is never active.\n",
              "file": "pkg/project/runtime.go",
              "line": 114
            }
          ]
        },
        {
          "name": "Bitcrush",
          "anchor": "Bitcrush",
          "decl": "type Bitcrush struct {\n\t// Bits is the quantized bit depth in [1, 15].\n\tBits int `yaml:\"bits\" schema:\"required,minimum=1,maximum=15\"`\n\t// Downsample holds each sample for this many frames; 0 and 1 keep every frame.\n\tDownsample int `yaml:\"downsample,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "Bitcrush is a lo-fi quantizer (sound.Bitcrush): Bits in [1, 15] and Downsample 0 or more, where 0 and 1 keep every frame.\n",
          "file": "pkg/project/project.go",
          "line": 306,
          "members": [
            {
              "name": "Bits",
              "anchor": "Bitcrush.Bits",
              "kind": "field",
              "doc": "Bits is the quantized bit depth in [1, 15]."
            },
            {
              "name": "Downsample",
              "anchor": "Bitcrush.Downsample",
              "kind": "field",
              "doc": "Downsample holds each sample for this many frames; 0 and 1 keep every frame."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Brief",
          "anchor": "Brief",
          "decl": "type Brief struct {\n\t// Version is the schema version; it must equal BriefVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Pitch describes what the game is meant to be in a sentence or two.\n\tPitch string `yaml:\"pitch,omitempty\"`\n\t// Genre lists the game's primary genre labels, such as \"2D platformer\" and \"action\".\n\tGenre []string `yaml:\"genre,omitempty,flow\"`\n\t// Tags lists optional extra keywords or sub-genre tags describing the game.\n\tTags []string `yaml:\"tags,omitempty,flow\"`\n\t// Platforms lists the target platforms and control styles, such as \"desktop\", \"phones, touch\", and \"web\".\n\tPlatforms []string `yaml:\"platforms,omitempty,flow\"`\n\t// ArtDirection describes visual style, resolution, palette, and silhouette rules.\n\tArtDirection string `yaml:\"artDirection,omitempty\"`\n\t// Art holds structured visual direction notes and pinned reference images read by the agent before every request.\n\tArt *BriefArt `yaml:\"art,omitempty\"`\n\t// ToneAndAudio describes mood, music, and sound direction.\n\tToneAndAudio string `yaml:\"toneAndAudio,omitempty\"`\n\t// Feel describes game feel, difficulty pacing, and structured playtest targets.\n\tFeel *BriefFeel `yaml:\"feel,omitempty\"`\n}",
          "doc": "Brief is the root of a versioned brief.yaml file at a game project's root.\nThe agent reads it before every request and checks its work against it, and playtests can read structured targets from Feel.Targets.\n",
          "file": "pkg/project/brief.go",
          "line": 57,
          "members": [
            {
              "name": "Version",
              "anchor": "Brief.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal BriefVersion (1)."
            },
            {
              "name": "Pitch",
              "anchor": "Brief.Pitch",
              "kind": "field",
              "doc": "Pitch describes what the game is meant to be in a sentence or two."
            },
            {
              "name": "Genre",
              "anchor": "Brief.Genre",
              "kind": "field",
              "doc": "Genre lists the game's primary genre labels, such as \"2D platformer\" and \"action\"."
            },
            {
              "name": "Tags",
              "anchor": "Brief.Tags",
              "kind": "field",
              "doc": "Tags lists optional extra keywords or sub-genre tags describing the game."
            },
            {
              "name": "Platforms",
              "anchor": "Brief.Platforms",
              "kind": "field",
              "doc": "Platforms lists the target platforms and control styles, such as \"desktop\", \"phones, touch\", and \"web\"."
            },
            {
              "name": "ArtDirection",
              "anchor": "Brief.ArtDirection",
              "kind": "field",
              "doc": "ArtDirection describes visual style, resolution, palette, and silhouette rules."
            },
            {
              "name": "Art",
              "anchor": "Brief.Art",
              "kind": "field",
              "doc": "Art holds structured visual direction notes and pinned reference images read by the agent before every request."
            },
            {
              "name": "ToneAndAudio",
              "anchor": "Brief.ToneAndAudio",
              "kind": "field",
              "doc": "ToneAndAudio describes mood, music, and sound direction."
            },
            {
              "name": "Feel",
              "anchor": "Brief.Feel",
              "kind": "field",
              "doc": "Feel describes game feel, difficulty pacing, and structured playtest targets."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadBrief",
              "anchor": "LoadBrief",
              "decl": "func LoadBrief(path string) (*Brief, error)",
              "doc": "LoadBrief reads and parses brief.yaml from path.\n",
              "file": "pkg/project/brief.go",
              "line": 565
            },
            {
              "name": "ParseBrief",
              "anchor": "ParseBrief",
              "decl": "func ParseBrief(data []byte) (*Brief, error)",
              "doc": "ParseBrief decodes and validates a versioned brief.yaml document.\nUnknown fields, trailing YAML documents, duplicate keys, YAML anchors/aliases/merge keys,\nmissing or unsupported versions, and invalid playtest target bounds are refused with *loaderr.Error line info.\n",
              "file": "pkg/project/brief.go",
              "line": 132
            },
            {
              "name": "ReadBriefFS",
              "anchor": "ReadBriefFS",
              "decl": "func ReadBriefFS(fsys fs.FS) (*Brief, error)",
              "doc": "ReadBriefFS reads and parses BriefFileName at the root of fsys.\n",
              "file": "pkg/project/brief.go",
              "line": 547
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Brief.Clone",
              "recv": "*Brief",
              "decl": "func (b *Brief) Clone() *Brief",
              "doc": "Clone returns a deep copy of b, or nil when b is nil.\n",
              "file": "pkg/project/brief.go",
              "line": 598
            },
            {
              "name": "MissingSections",
              "anchor": "Brief.MissingSections",
              "recv": "*Brief",
              "decl": "func (b *Brief) MissingSections() []BriefSection",
              "doc": "MissingSections returns the brief sections that are currently empty, in canonical BriefSections order.\n",
              "file": "pkg/project/brief.go",
              "line": 632
            },
            {
              "name": "TargetsForScene",
              "anchor": "Brief.TargetsForScene",
              "recv": "*Brief",
              "decl": "func (b *Brief) TargetsForScene(scene string) []BriefPlaytestTarget",
              "doc": "TargetsForScene returns the playtest targets defined in b that apply to scene.\nTargets with an empty Scene apply to every scene; when both a global target and a scene-specific\ntarget exist for the same metric, the scene-specific target takes precedence.\nWhen scene is empty, all targets are returned in declaration order.\n",
              "file": "pkg/project/brief.go",
              "line": 662
            }
          ]
        },
        {
          "name": "BriefArt",
          "anchor": "BriefArt",
          "decl": "type BriefArt struct {\n\t// Direction optionally describes visual direction inline under art.direction.\n\tDirection string `yaml:\"direction,omitempty\"`\n\t// References lists pinned project-relative reference images included with every agent request.\n\tReferences []BriefArtReference `yaml:\"references,omitempty\"`\n}",
          "doc": "BriefArt holds structured art direction notes and pinned project-relative reference images.\n",
          "file": "pkg/project/brief.go",
          "line": 79,
          "members": [
            {
              "name": "Direction",
              "anchor": "BriefArt.Direction",
              "kind": "field",
              "doc": "Direction optionally describes visual direction inline under art.direction."
            },
            {
              "name": "References",
              "anchor": "BriefArt.References",
              "kind": "field",
              "doc": "References lists pinned project-relative reference images included with every agent request."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BriefArtReference",
          "anchor": "BriefArtReference",
          "decl": "type BriefArtReference struct {\n\t// Path is the project-relative slash path to the reference image (for example \"art/reference/spikes_ref.png\").\n\tPath string `yaml:\"path\" schema:\"required,minLength=1\"`\n\t// Note is an optional short description of what the reference illustrates.\n\tNote string `yaml:\"note,omitempty\"`\n}",
          "doc": "BriefArtReference names one pinned reference image listed under art.references in brief.yaml.\n",
          "file": "pkg/project/brief.go",
          "line": 87,
          "members": [
            {
              "name": "Path",
              "anchor": "BriefArtReference.Path",
              "kind": "field",
              "doc": "Path is the project-relative slash path to the reference image (for example \"art/reference/spikes_ref.png\")."
            },
            {
              "name": "Note",
              "anchor": "BriefArtReference.Note",
              "kind": "field",
              "doc": "Note is an optional short description of what the reference illustrates."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BriefFeel",
          "anchor": "BriefFeel",
          "decl": "type BriefFeel struct {\n\t// Summary describes target game feel, controls responsiveness, and difficulty pacing in plain language.\n\tSummary string `yaml:\"summary,omitempty\"`\n\t// Targets lists structured playtest targets readable by playtest runners and the editor.\n\tTargets []BriefPlaytestTarget `yaml:\"targets,omitempty\"`\n}",
          "doc": "BriefFeel describes game feel, difficulty expectations, and machine-readable playtest targets.\n",
          "file": "pkg/project/brief.go",
          "line": 95,
          "members": [
            {
              "name": "Summary",
              "anchor": "BriefFeel.Summary",
              "kind": "field",
              "doc": "Summary describes target game feel, controls responsiveness, and difficulty pacing in plain language."
            },
            {
              "name": "Targets",
              "anchor": "BriefFeel.Targets",
              "kind": "field",
              "doc": "Targets lists structured playtest targets readable by playtest runners and the editor."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BriefPlaytestTarget",
          "anchor": "BriefPlaytestTarget",
          "decl": "type BriefPlaytestTarget struct {\n\t// Metric is the playtest metric name this target constrains, such as \"median_time\", \"deaths\", or \"finished\".\n\tMetric string `yaml:\"metric\" schema:\"required,minLength=1\"`\n\t// Scene optionally restricts this target to a specific scene or level name, such as \"floor_01\".\n\tScene string `yaml:\"scene,omitempty\"`\n\t// Summary is an optional human-readable description of the target, such as \"2–4 deaths on floor 3\".\n\tSummary string `yaml:\"summary,omitempty\"`\n\t// Unit is an optional display unit, such as \"s\", \"ms\", or \"%\".\n\tUnit string `yaml:\"unit,omitempty\"`\n\t// Min is the inclusive lower bound (value >= Min).\n\tMin *float64 `yaml:\"min,omitempty\"`\n\t// Max is the inclusive upper bound (value <= Max).\n\tMax *float64 `yaml:\"max,omitempty\"`\n\t// Equal requires value == Equal.\n\tEqual *float64 `yaml:\"equal,omitempty\"`\n}",
          "doc": "BriefPlaytestTarget declares one measurable playtest target in brief.yaml's feel and difficulty section.\n",
          "file": "pkg/project/brief.go",
          "line": 103,
          "members": [
            {
              "name": "Metric",
              "anchor": "BriefPlaytestTarget.Metric",
              "kind": "field",
              "doc": "Metric is the playtest metric name this target constrains, such as \"median_time\", \"deaths\", or \"finished\"."
            },
            {
              "name": "Scene",
              "anchor": "BriefPlaytestTarget.Scene",
              "kind": "field",
              "doc": "Scene optionally restricts this target to a specific scene or level name, such as \"floor_01\"."
            },
            {
              "name": "Summary",
              "anchor": "BriefPlaytestTarget.Summary",
              "kind": "field",
              "doc": "Summary is an optional human-readable description of the target, such as \"2–4 deaths on floor 3\"."
            },
            {
              "name": "Unit",
              "anchor": "BriefPlaytestTarget.Unit",
              "kind": "field",
              "doc": "Unit is an optional display unit, such as \"s\", \"ms\", or \"%\"."
            },
            {
              "name": "Min",
              "anchor": "BriefPlaytestTarget.Min",
              "kind": "field",
              "doc": "Min is the inclusive lower bound (value >= Min)."
            },
            {
              "name": "Max",
              "anchor": "BriefPlaytestTarget.Max",
              "kind": "field",
              "doc": "Max is the inclusive upper bound (value <= Max)."
            },
            {
              "name": "Equal",
              "anchor": "BriefPlaytestTarget.Equal",
              "kind": "field",
              "doc": "Equal requires value == Equal."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BriefSection",
          "anchor": "BriefSection",
          "decl": "type BriefSection string",
          "doc": "BriefSection identifies a top-level section of brief.yaml checked for completeness (\"gaps\").\n",
          "file": "pkg/project/brief.go",
          "line": 34,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BriefSectionPitch",
                  "anchor": "BriefSectionPitch"
                },
                {
                  "name": "BriefSectionGenre",
                  "anchor": "BriefSectionGenre"
                },
                {
                  "name": "BriefSectionPlatforms",
                  "anchor": "BriefSectionPlatforms"
                },
                {
                  "name": "BriefSectionArtDirection",
                  "anchor": "BriefSectionArtDirection"
                },
                {
                  "name": "BriefSectionFeel",
                  "anchor": "BriefSectionFeel"
                },
                {
                  "name": "BriefSectionToneAndAudio",
                  "anchor": "BriefSectionToneAndAudio"
                }
              ],
              "decl": "const (\n\tBriefSectionPitch        BriefSection = \"pitch\"\n\tBriefSectionGenre        BriefSection = \"genre\"\n\tBriefSectionPlatforms    BriefSection = \"platforms\"\n\tBriefSectionArtDirection BriefSection = \"artDirection\"\n\tBriefSectionFeel         BriefSection = \"feel\"\n\tBriefSectionToneAndAudio BriefSection = \"toneAndAudio\"\n)",
              "doc": "",
              "file": "pkg/project/brief.go",
              "line": 36
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Budgets",
          "anchor": "Budgets",
          "decl": "type Budgets struct {\n\t// QualityProfile names the quality preset frameTimeP95Ms is measured at (for example \"low\", \"medium\", or \"high\"); empty defaults to \"low\".\n\tQualityProfile string `yaml:\"qualityProfile,omitempty\"`\n\t// DownloadSizeMB is the maximum acceptable release download size in megabytes; 0 leaves it unset.\n\tDownloadSizeMB float64 `yaml:\"downloadSizeMB,omitempty\" schema:\"minimum=0\"`\n\t// FrameTimeP95Ms is the maximum acceptable 95th-percentile frame time in milliseconds; 0 leaves it unset.\n\tFrameTimeP95Ms float64 `yaml:\"frameTimeP95Ms,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "Budgets holds release size and performance thresholds checked against each built package.\n",
          "file": "pkg/project/project.go",
          "line": 342,
          "members": [
            {
              "name": "QualityProfile",
              "anchor": "Budgets.QualityProfile",
              "kind": "field",
              "doc": "QualityProfile names the quality preset frameTimeP95Ms is measured at (for example \"low\", \"medium\", or \"high\"); empty defaults to \"low\"."
            },
            {
              "name": "DownloadSizeMB",
              "anchor": "Budgets.DownloadSizeMB",
              "kind": "field",
              "doc": "DownloadSizeMB is the maximum acceptable release download size in megabytes; 0 leaves it unset."
            },
            {
              "name": "FrameTimeP95Ms",
              "anchor": "Budgets.FrameTimeP95Ms",
              "kind": "field",
              "doc": "FrameTimeP95Ms is the maximum acceptable 95th-percentile frame time in milliseconds; 0 leaves it unset."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Bus",
          "anchor": "Bus",
          "decl": "type Bus struct {\n\t// Name is the mixer group, such as \"music\" or \"sfx\".\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Volume is the default volume in [0, 1] until the player sets one; nil leaves it at 1.\n\tVolume *float32 `yaml:\"volume,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Effects is the bus's DSP chain, applied in order.\n\tEffects []Effect `yaml:\"effects,omitempty\"`\n}",
          "doc": "Bus is one sound.Mixer group: its default volume and its DSP effect chain.\n",
          "file": "pkg/project/project.go",
          "line": 246,
          "members": [
            {
              "name": "Name",
              "anchor": "Bus.Name",
              "kind": "field",
              "doc": "Name is the mixer group, such as \"music\" or \"sfx\"."
            },
            {
              "name": "Volume",
              "anchor": "Bus.Volume",
              "kind": "field",
              "doc": "Volume is the default volume in [0, 1] until the player sets one; nil leaves it at 1."
            },
            {
              "name": "Effects",
              "anchor": "Bus.Effects",
              "kind": "field",
              "doc": "Effects is the bus's DSP chain, applied in order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Chain",
              "anchor": "Bus.Chain",
              "recv": "Bus",
              "decl": "func (b Bus) Chain() sound.EffectChain",
              "doc": "Chain returns the bus's effects as a sound.EffectChain, nil without any.\n",
              "file": "pkg/project/runtime.go",
              "line": 276
            }
          ]
        },
        {
          "name": "Delay",
          "anchor": "Delay",
          "decl": "type Delay struct {\n\t// Time is the echo spacing, such as 250ms; it must be positive.\n\tTime time.Duration `yaml:\"time\" schema:\"required\"`\n\t// Feedback is the feedback gain in [0, 0.99].\n\tFeedback float64 `yaml:\"feedback,omitempty\" schema:\"minimum=0,maximum=0.99\"`\n\t// Wet is the wet mix level in [0, 1].\n\tWet float64 `yaml:\"wet,omitempty\" schema:\"minimum=0,maximum=1\"`\n}",
          "doc": "Delay is a feedback delay line (sound.Delay).\n",
          "file": "pkg/project/project.go",
          "line": 280,
          "members": [
            {
              "name": "Time",
              "anchor": "Delay.Time",
              "kind": "field",
              "doc": "Time is the echo spacing, such as 250ms; it must be positive."
            },
            {
              "name": "Feedback",
              "anchor": "Delay.Feedback",
              "kind": "field",
              "doc": "Feedback is the feedback gain in [0, 0.99]."
            },
            {
              "name": "Wet",
              "anchor": "Delay.Wet",
              "kind": "field",
              "doc": "Wet is the wet mix level in [0, 1]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Display",
          "anchor": "Display",
          "decl": "type Display struct {\n\t// Width is the virtual canvas width in game points; it must be positive.\n\tWidth float32 `yaml:\"width\" schema:\"required,exclusiveMinimum=0\"`\n\t// Height is the virtual canvas height in game points; it must be positive.\n\tHeight float32 `yaml:\"height\" schema:\"required,exclusiveMinimum=0\"`\n\t// Mode is how the canvas fits a window of another aspect ratio: \"fit\" (the default when empty), \"fill\", \"stretch\" or \"expand\", as screen.Mode names them.\n\tMode string `yaml:\"mode,omitempty\" schema:\"enum=fit|fill|stretch|expand\"`\n\t// IntegerScale scales by whole multiples only, as screen.Viewport.IntegerScale does.\n\tIntegerScale bool `yaml:\"integerScale,omitempty\"`\n\t// PixelSnap aligns the canvas to whole points, as screen.Viewport.PixelSnap does.\n\tPixelSnap bool `yaml:\"pixelSnap,omitempty\"`\n\t// BarColor is the CSS color of letterbox and pillarbox bars, parsed with core.ParseColor; empty is opaque black.\n\tBarColor string `yaml:\"barColor,omitempty\"`\n}",
          "doc": "Display is the virtual resolution a screen.Viewport maps onto the window.\n",
          "file": "pkg/project/project.go",
          "line": 87,
          "members": [
            {
              "name": "Width",
              "anchor": "Display.Width",
              "kind": "field",
              "doc": "Width is the virtual canvas width in game points; it must be positive."
            },
            {
              "name": "Height",
              "anchor": "Display.Height",
              "kind": "field",
              "doc": "Height is the virtual canvas height in game points; it must be positive."
            },
            {
              "name": "Mode",
              "anchor": "Display.Mode",
              "kind": "field",
              "doc": "Mode is how the canvas fits a window of another aspect ratio: \"fit\" (the default when empty), \"fill\", \"stretch\" or \"expand\", as screen.Mode names them."
            },
            {
              "name": "IntegerScale",
              "anchor": "Display.IntegerScale",
              "kind": "field",
              "doc": "IntegerScale scales by whole multiples only, as screen.Viewport.IntegerScale does."
            },
            {
              "name": "PixelSnap",
              "anchor": "Display.PixelSnap",
              "kind": "field",
              "doc": "PixelSnap aligns the canvas to whole points, as screen.Viewport.PixelSnap does."
            },
            {
              "name": "BarColor",
              "anchor": "Display.BarColor",
              "kind": "field",
              "doc": "BarColor is the CSS color of letterbox and pillarbox bars, parsed with core.ParseColor; empty is opaque black."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Editor",
          "anchor": "Editor",
          "decl": "type Editor struct {\n\t// Plugins names the editor plugins the scene editor turns on for this project, in the order their panels and tools appear. A plugin is Go code built into the editor binary (editor.Plugin), so this list only turns plugins on; each name is unique and has no spaces or control characters.\n\tPlugins []string `yaml:\"plugins,omitempty,flow\"`\n}",
          "doc": "Editor is the scene editor's settings for one project.\n",
          "file": "pkg/project/project.go",
          "line": 360,
          "members": [
            {
              "name": "Plugins",
              "anchor": "Editor.Plugins",
              "kind": "field",
              "doc": "Plugins names the editor plugins the scene editor turns on for this project, in the order their panels and tools appear. A plugin is Go code built into the editor binary (editor.Plugin), so this list only turns plugins on; each name is unique and has no spaces or control characters."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Effect",
          "anchor": "Effect",
          "decl": "type Effect struct {\n\t// LowPass is a biquad low-pass filter.\n\tLowPass *Filter `yaml:\"lowPass,omitempty,flow\"`\n\t// HighPass is a biquad high-pass filter.\n\tHighPass *Filter `yaml:\"highPass,omitempty,flow\"`\n\t// Delay is a feedback delay line.\n\tDelay *Delay `yaml:\"delay,omitempty,flow\"`\n\t// Reverb is a Freeverb-style reverb.\n\tReverb *Reverb `yaml:\"reverb,omitempty,flow\"`\n\t// Gain scales every sample by a non-negative factor.\n\tGain *Gain `yaml:\"gain,omitempty,flow\"`\n\t// Bitcrush quantizes bit depth and sample rate.\n\tBitcrush *Bitcrush `yaml:\"bitcrush,omitempty,flow\"`\n}",
          "doc": "Effect is one DSP effect on a bus; exactly one field must be set.\n",
          "file": "pkg/project/project.go",
          "line": 256,
          "members": [
            {
              "name": "LowPass",
              "anchor": "Effect.LowPass",
              "kind": "field",
              "doc": "LowPass is a biquad low-pass filter."
            },
            {
              "name": "HighPass",
              "anchor": "Effect.HighPass",
              "kind": "field",
              "doc": "HighPass is a biquad high-pass filter."
            },
            {
              "name": "Delay",
              "anchor": "Effect.Delay",
              "kind": "field",
              "doc": "Delay is a feedback delay line."
            },
            {
              "name": "Reverb",
              "anchor": "Effect.Reverb",
              "kind": "field",
              "doc": "Reverb is a Freeverb-style reverb."
            },
            {
              "name": "Gain",
              "anchor": "Effect.Gain",
              "kind": "field",
              "doc": "Gain scales every sample by a non-negative factor."
            },
            {
              "name": "Bitcrush",
              "anchor": "Effect.Bitcrush",
              "kind": "field",
              "doc": "Bitcrush quantizes bit depth and sample rate."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "BusEffect",
              "anchor": "Effect.BusEffect",
              "recv": "Effect",
              "decl": "func (e Effect) BusEffect() sound.BusEffect",
              "doc": "BusEffect returns e as a sound.BusEffect, nil when no field is set.\n",
              "file": "pkg/project/runtime.go",
              "line": 290
            }
          ]
        },
        {
          "name": "Entry",
          "anchor": "Entry",
          "decl": "type Entry struct {\n\t// Name uniquely identifies the entry within its list.\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Path is the file's slash-separated path relative to the project root, as fs.ValidPath accepts it.\n\tPath string `yaml:\"path\" schema:\"required\"`\n}",
          "doc": "Entry is one autoloaded file.\n",
          "file": "pkg/project/project.go",
          "line": 324,
          "members": [
            {
              "name": "Name",
              "anchor": "Entry.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the entry within its list."
            },
            {
              "name": "Path",
              "anchor": "Entry.Path",
              "kind": "field",
              "doc": "Path is the file's slash-separated path relative to the project root, as fs.ValidPath accepts it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Export",
          "anchor": "Export",
          "decl": "type Export struct {\n\t// Output is the directory builds are written to; empty is NSGo's default (dist).\n\tOutput string `yaml:\"output,omitempty\"`\n\t// Budgets are optional release thresholds checked before and after each build (download size and frame time p95 at a quality profile).\n\tBudgets *Budgets `yaml:\"budgets,omitempty\"`\n\t// Presets are the platforms the game exports to, in build order.\n\tPresets []Preset `yaml:\"presets,omitempty\"`\n}",
          "doc": "Export holds the build output directory, optional release budgets, and one export preset per platform.\n",
          "file": "pkg/project/project.go",
          "line": 332,
          "members": [
            {
              "name": "Output",
              "anchor": "Export.Output",
              "kind": "field",
              "doc": "Output is the directory builds are written to; empty is NSGo's default (dist)."
            },
            {
              "name": "Budgets",
              "anchor": "Export.Budgets",
              "kind": "field",
              "doc": "Budgets are optional release thresholds checked before and after each build (download size and frame time p95 at a quality profile)."
            },
            {
              "name": "Presets",
              "anchor": "Export.Presets",
              "kind": "field",
              "doc": "Presets are the platforms the game exports to, in build order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "File",
          "anchor": "File",
          "decl": "type File struct {\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Name is the game's display name, which nsgo.yaml's name follows.\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// ID is the game's reverse-DNS application identifier, such as dev.nsgo.caverun, which nsgo.yaml's id follows.\n\tID string `yaml:\"id\" schema:\"required\"`\n\t// AppVersion is the game's release version, such as 0.1.0, which nsgo.yaml's version follows.\n\tAppVersion string `yaml:\"appVersion\" schema:\"required\"`\n\t// Window is the main window's size, limits, title and appearance.\n\tWindow Window `yaml:\"window\" schema:\"required\"`\n\t// Display is the virtual resolution the game draws at; nil draws at the window's own size.\n\tDisplay *Display `yaml:\"display,omitempty\"`\n\t// Input is the input map bound into an input.Actions; nil binds nothing.\n\tInput *Input `yaml:\"input,omitempty\"`\n\t// Audio holds the master volume and the audio buses a sound.Mixer is configured with; nil configures nothing.\n\tAudio *Audio `yaml:\"audio,omitempty\"`\n\t// Physics holds the default 2D and 3D gravity, solver iterations and named collision layers shared by scenes; nil uses each engine's defaults.\n\tPhysics *Physics `yaml:\"physics,omitempty\"`\n\t// Autoload lists the scenes and resources loaded at startup; nil loads nothing.\n\tAutoload *Autoload `yaml:\"autoload,omitempty\"`\n\t// Export holds the build output directory and the export presets per platform, which nsgo.yaml's build section follows; nil leaves nsgo.yaml without them.\n\tExport *Export `yaml:\"export,omitempty\"`\n\t// Editor holds the scene editor's settings for this project; nil uses its defaults.\n\tEditor *Editor `yaml:\"editor,omitempty\"`\n\t// Assets declares the atlases, textures, audio, fonts, models and asset manifest game assets builds; nil declares none.\n\tAssets *Assets `yaml:\"assets,omitempty\"`\n\t// Navigation holds the settings and agent types game navmesh bakes a scene's navigation meshes with (see the navbake3d package); nil bakes one agent type called DefaultNavAgent with the default settings.\n\tNavigation *Navigation `yaml:\"navigation,omitempty\"`\n\t// Packs records the library packs installed into the project, in the order they were first installed: the files each wrote and the autoload entries and editor plugins each added, so that a later install of the pack can update it and a removal can undo it (see the tooling/library package). nil records none.\n\tPacks []Pack `yaml:\"packs,omitempty\"`\n}",
          "doc": "File is the root of a versioned game.yaml project file.\n",
          "file": "pkg/project/project.go",
          "line": 31,
          "members": [
            {
              "name": "Version",
              "anchor": "File.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "Name",
              "anchor": "File.Name",
              "kind": "field",
              "doc": "Name is the game's display name, which nsgo.yaml's name follows."
            },
            {
              "name": "ID",
              "anchor": "File.ID",
              "kind": "field",
              "doc": "ID is the game's reverse-DNS application identifier, such as dev.nsgo.caverun, which nsgo.yaml's id follows."
            },
            {
              "name": "AppVersion",
              "anchor": "File.AppVersion",
              "kind": "field",
              "doc": "AppVersion is the game's release version, such as 0.1.0, which nsgo.yaml's version follows."
            },
            {
              "name": "Window",
              "anchor": "File.Window",
              "kind": "field",
              "doc": "Window is the main window's size, limits, title and appearance."
            },
            {
              "name": "Display",
              "anchor": "File.Display",
              "kind": "field",
              "doc": "Display is the virtual resolution the game draws at; nil draws at the window's own size."
            },
            {
              "name": "Input",
              "anchor": "File.Input",
              "kind": "field",
              "doc": "Input is the input map bound into an input.Actions; nil binds nothing."
            },
            {
              "name": "Audio",
              "anchor": "File.Audio",
              "kind": "field",
              "doc": "Audio holds the master volume and the audio buses a sound.Mixer is configured with; nil configures nothing."
            },
            {
              "name": "Physics",
              "anchor": "File.Physics",
              "kind": "field",
              "doc": "Physics holds the default 2D and 3D gravity, solver iterations and named collision layers shared by scenes; nil uses each engine's defaults."
            },
            {
              "name": "Autoload",
              "anchor": "File.Autoload",
              "kind": "field",
              "doc": "Autoload lists the scenes and resources loaded at startup; nil loads nothing."
            },
            {
              "name": "Export",
              "anchor": "File.Export",
              "kind": "field",
              "doc": "Export holds the build output directory and the export presets per platform, which nsgo.yaml's build section follows; nil leaves nsgo.yaml without them."
            },
            {
              "name": "Editor",
              "anchor": "File.Editor",
              "kind": "field",
              "doc": "Editor holds the scene editor's settings for this project; nil uses its defaults."
            },
            {
              "name": "Assets",
              "anchor": "File.Assets",
              "kind": "field",
              "doc": "Assets declares the atlases, textures, audio, fonts, models and asset manifest game assets builds; nil declares none."
            },
            {
              "name": "Navigation",
              "anchor": "File.Navigation",
              "kind": "field",
              "doc": "Navigation holds the settings and agent types game navmesh bakes a scene's navigation meshes with (see the navbake3d package); nil bakes one agent type called DefaultNavAgent with the default settings."
            },
            {
              "name": "Packs",
              "anchor": "File.Packs",
              "kind": "field",
              "doc": "Packs records the library packs installed into the project, in the order they were first installed: the files each wrote and the autoload entries and editor plugins each added, so that a later install of the pack can update it and a removal can undo it (see the tooling/library package). nil records none."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Check",
              "anchor": "Check",
              "decl": "func Check(fsys fs.FS) (*File, error)",
              "doc": "Check reads the project at the root of fsys and reports every problem a person should fix before running or building it, joined with errors.Join: a game.yaml that fails Parse, an nsgo.yaml beside it that disagrees with it (CheckNSGo), an autoloaded scene or resource that is missing or, for a scene, invalid (LoadAutoloads), and a file an installed pack wrote (File.Packs) that is missing. It returns the parsed file whenever game.yaml parses, so a caller can go on with it after reporting the rest. A project without an nsgo.yaml has nothing to disagree with.\n",
              "file": "pkg/project/check.go",
              "line": 10
            },
            {
              "name": "MustParse",
              "anchor": "MustParse",
              "decl": "func MustParse(data []byte) *File",
              "doc": "MustParse is Parse for a project file that is part of the program, such as an embedded game.yaml: it panics on an invalid file.\n",
              "file": "pkg/project/project.go",
              "line": 495
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*File, error)",
              "doc": "Parse decodes a YAML project file and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/project/project.go",
              "line": 468
            },
            {
              "name": "ReadFS",
              "anchor": "ReadFS",
              "decl": "func ReadFS(fsys fs.FS) (*File, error)",
              "doc": "ReadFS reads and parses FileName at the root of fsys.\n",
              "file": "pkg/project/project.go",
              "line": 504
            }
          ],
          "methods": [
            {
              "name": "Appearance",
              "anchor": "File.Appearance",
              "recv": "*File",
              "decl": "func (f *File) Appearance() core.Appearance",
              "doc": "Appearance returns the appearance the app starts in, as nsgo.Appearance takes it: core.AppearanceSystem when Window.Appearance is empty.\n",
              "file": "pkg/project/runtime.go",
              "line": 41
            },
            {
              "name": "BindInput",
              "anchor": "File.BindInput",
              "recv": "*File",
              "decl": "func (f *File) BindInput(a *input.Actions)",
              "doc": "BindInput binds every action with bindings, axis, motion axis and gamepad axis of the input map into a, replacing a's bindings of the same names and leaving others, such as ones the game binds in code, as they are.\n",
              "file": "pkg/project/runtime.go",
              "line": 77
            },
            {
              "name": "BuildTargets",
              "anchor": "File.BuildTargets",
              "recv": "*File",
              "decl": "func (f *File) BuildTargets() []string",
              "doc": "BuildTargets returns the NSGo build targets of every export preset in order: each preset's Targets, or its platform name when it lists none. It returns nil without export presets.\n",
              "file": "pkg/project/nsgo.go",
              "line": 50
            },
            {
              "name": "CheckNSGo",
              "anchor": "File.CheckNSGo",
              "recv": "*File",
              "decl": "func (f *File) CheckNSGo(nsgoYAML []byte) error",
              "doc": "CheckNSGo reports the fields of nsgoYAML, an nsgo.yaml's contents, that disagree with f: name, id, version, appearance, build.output and build.targets, which game.yaml owns. It returns nil when they all agree.\n",
              "file": "pkg/project/nsgo.go",
              "line": 100
            },
            {
              "name": "Clone",
              "anchor": "File.Clone",
              "recv": "*File",
              "decl": "func (f *File) Clone() *File",
              "doc": "Clone returns a deep copy of f, which Validate accepts exactly when it accepts f.\n",
              "file": "pkg/project/project.go",
              "line": 531
            },
            {
              "name": "ConfigureMixer",
              "anchor": "File.ConfigureMixer",
              "recv": "*File",
              "decl": "func (f *File) ConfigureMixer(m *sound.Mixer)",
              "doc": "ConfigureMixer gives m the default master volume and each bus's default volume and DSP chain. Volumes the player kept in storage win over the defaults. A bus without effects leaves the chain the game set in code, as BindInput leaves the bindings of an action without any.\n",
              "file": "pkg/project/runtime.go",
              "line": 258
            },
            {
              "name": "ConfigurePhysics3DWorld",
              "anchor": "File.ConfigurePhysics3DWorld",
              "recv": "*File",
              "decl": "func (f *File) ConfigurePhysics3DWorld(w *physics3d.World)",
              "doc": "ConfigurePhysics3DWorld applies the project's 3D gravity and solver iterations to w.\n",
              "file": "pkg/project/physics.go",
              "line": 301
            },
            {
              "name": "ConfigurePhysicsWorld",
              "anchor": "File.ConfigurePhysicsWorld",
              "recv": "*File",
              "decl": "func (f *File) ConfigurePhysicsWorld(w *physics.World)",
              "doc": "ConfigurePhysicsWorld applies the project's 2D gravity to w when Physics.Gravity2D is set.\n",
              "file": "pkg/project/physics.go",
              "line": 245
            },
            {
              "name": "ConfigureRigidWorld",
              "anchor": "File.ConfigureRigidWorld",
              "recv": "*File",
              "decl": "func (f *File) ConfigureRigidWorld(w *physics.RigidWorld)",
              "doc": "ConfigureRigidWorld applies the project's 2D gravity and solver iterations to w.\n",
              "file": "pkg/project/physics.go",
              "line": 256
            },
            {
              "name": "EachPath",
              "anchor": "File.EachPath",
              "recv": "*File",
              "decl": "func (f *File) EachPath(visit func(field string, path *string))",
              "doc": "EachPath calls visit with every non-empty path f holds to a file or folder of the project, as PathRefs lists them, so that visit can read or change it in place, as a tool that moves a file does.\n",
              "file": "pkg/project/paths.go",
              "line": 96
            },
            {
              "name": "FindPack",
              "anchor": "File.FindPack",
              "recv": "*File",
              "decl": "func (f *File) FindPack(name string) *Pack",
              "doc": "FindPack returns the installed pack called name, or nil.\n",
              "file": "pkg/project/project.go",
              "line": 452
            },
            {
              "name": "LDtkOptions",
              "anchor": "File.LDtkOptions",
              "recv": "*File",
              "decl": "func (f *File) LDtkOptions(resolveImage func(relPath string) core.ImageSource) tilemap.LDtkOptions",
              "doc": "LDtkOptions builds a tilemap.LDtkOptions using f's physics.ldtkIntGrid rules and resolveImage.\n",
              "file": "pkg/project/physics.go",
              "line": 293
            },
            {
              "name": "LoadAutoloads",
              "anchor": "File.LoadAutoloads",
              "recv": "*File",
              "decl": "func (f *File) LoadAutoloads(fsys fs.FS) (*Loaded, error)",
              "doc": "LoadAutoloads reads every autoloaded scene and resource from fsys, the project root, parsing and validating the scenes. It fails on the first file that is missing or, for a scene, invalid.\n",
              "file": "pkg/project/runtime.go",
              "line": 328
            },
            {
              "name": "PhysicsLayerTable",
              "anchor": "File.PhysicsLayerTable",
              "recv": "*File",
              "decl": "func (f *File) PhysicsLayerTable() *sceneformat.PhysicsLayerTable",
              "doc": "PhysicsLayerTable returns the project's named collision layer table, or nil when File.Physics is nil.\n",
              "file": "pkg/project/physics.go",
              "line": 214
            },
            {
              "name": "PhysicsSettings",
              "anchor": "File.PhysicsSettings",
              "recv": "*File",
              "decl": "func (f *File) PhysicsSettings() *sceneformat.PhysicsSettings",
              "doc": "PhysicsSettings converts File.Physics into a *sceneformat.PhysicsSettings for sceneformat.BuildPhysics.\nIt returns nil when f or f.Physics is nil.\n",
              "file": "pkg/project/physics.go",
              "line": 223
            },
            {
              "name": "Preset",
              "anchor": "File.Preset",
              "recv": "*File",
              "decl": "func (f *File) Preset(platform string) (Preset, bool)",
              "doc": "Preset returns the export preset for platform.\n",
              "file": "pkg/project/nsgo.go",
              "line": 66
            },
            {
              "name": "Region",
              "anchor": "File.Region",
              "recv": "*File",
              "decl": "func (f *File) Region(action string) (core.Bounds, bool)",
              "doc": "Region returns the first region bound to action, as a game draws its on-screen control there, and false when the action has no region binding.\n",
              "file": "pkg/project/runtime.go",
              "line": 148
            },
            {
              "name": "SyncNSGo",
              "anchor": "File.SyncNSGo",
              "recv": "*File",
              "decl": "func (f *File) SyncNSGo(nsgoYAML []byte) ([]byte, error)",
              "doc": "SyncNSGo returns nsgoYAML, an nsgo.yaml's contents (empty for a new one), with the fields game.yaml owns set from f: name, id, version, appearance, build.output and build.targets. Fields f leaves empty are removed; every other key and comment is kept.\n",
              "file": "pkg/project/nsgo.go",
              "line": 130
            },
            {
              "name": "Title",
              "anchor": "File.Title",
              "recv": "*File",
              "decl": "func (f *File) Title() string",
              "doc": "Title returns the window's title: Window.Title, or Name when it is empty.\n",
              "file": "pkg/project/runtime.go",
              "line": 16
            },
            {
              "name": "Viewport",
              "anchor": "File.Viewport",
              "recv": "*File",
              "decl": "func (f *File) Viewport() (screen.Viewport, bool)",
              "doc": "Viewport returns the screen.Viewport of the virtual resolution, and false without a Display.\n",
              "file": "pkg/project/runtime.go",
              "line": 53
            },
            {
              "name": "WindowConstraints",
              "anchor": "File.WindowConstraints",
              "recv": "*File",
              "decl": "func (f *File) WindowConstraints() core.WindowConstraints",
              "doc": "WindowConstraints returns the main window's size limits and whether the user may resize it, as nsgo.WindowConstraints takes them.\n",
              "file": "pkg/project/runtime.go",
              "line": 29
            },
            {
              "name": "WindowSize",
              "anchor": "File.WindowSize",
              "recv": "*File",
              "decl": "func (f *File) WindowSize() (width, height core.Points)",
              "doc": "WindowSize returns the main window's starting content size, as nsgo.WindowSize takes it: nsgo.WindowSize(f.WindowSize()).\n",
              "file": "pkg/project/runtime.go",
              "line": 24
            }
          ]
        },
        {
          "name": "Filter",
          "anchor": "Filter",
          "decl": "type Filter struct {\n\t// CutoffHz is the cutoff frequency in hertz; it must be positive.\n\tCutoffHz float64 `yaml:\"cutoffHz\" schema:\"required,exclusiveMinimum=0\"`\n\t// Q is the filter's quality factor; 0 is Butterworth.\n\tQ float64 `yaml:\"q,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "Filter is a biquad low-pass or high-pass filter (sound.LowPass, sound.HighPass).\n",
          "file": "pkg/project/project.go",
          "line": 272,
          "members": [
            {
              "name": "CutoffHz",
              "anchor": "Filter.CutoffHz",
              "kind": "field",
              "doc": "CutoffHz is the cutoff frequency in hertz; it must be positive."
            },
            {
              "name": "Q",
              "anchor": "Filter.Q",
              "kind": "field",
              "doc": "Q is the filter's quality factor; 0 is Butterworth."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FontTarget",
          "anchor": "FontTarget",
          "decl": "type FontTarget struct {\n\t// In is the .ttf or .otf font file.\n\tIn string `yaml:\"in\"`\n\t// Out is the .fnt file written; the pages are written beside it.\n\tOut string `yaml:\"out\"`\n\t// Size is the font size in pixels the glyphs are drawn at; 0 is DefaultFontSize.\n\tSize int `yaml:\"size,omitempty\"`\n\t// Chars are the characters baked, each once, in any order; empty is DefaultFontChars. A character the font has no glyph for is left out.\n\tChars string `yaml:\"chars,omitempty\"`\n\t// Padding is the transparent gap around each glyph on the pages in pixels; nil is 1.\n\tPadding *int `yaml:\"padding,omitempty\"`\n}",
          "doc": "FontTarget is one TrueType or OpenType font baked into an AngelCode BMFont, which text.LoadBMFont reads: a text .fnt file and the PNG pages its glyphs are packed on, named after it, such as hud.png beside hud.fnt, or hud-0.png, hud-1.png and so on when the glyphs need several pages.\n",
          "file": "pkg/project/assets.go",
          "line": 108,
          "members": [
            {
              "name": "In",
              "anchor": "FontTarget.In",
              "kind": "field",
              "doc": "In is the .ttf or .otf font file."
            },
            {
              "name": "Out",
              "anchor": "FontTarget.Out",
              "kind": "field",
              "doc": "Out is the .fnt file written; the pages are written beside it."
            },
            {
              "name": "Size",
              "anchor": "FontTarget.Size",
              "kind": "field",
              "doc": "Size is the font size in pixels the glyphs are drawn at; 0 is DefaultFontSize."
            },
            {
              "name": "Chars",
              "anchor": "FontTarget.Chars",
              "kind": "field",
              "doc": "Chars are the characters baked, each once, in any order; empty is DefaultFontChars. A character the font has no glyph for is left out."
            },
            {
              "name": "Padding",
              "anchor": "FontTarget.Padding",
              "kind": "field",
              "doc": "Padding is the transparent gap around each glyph on the pages in pixels; nil is 1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "FontPages",
              "anchor": "FontTarget.FontPages",
              "recv": "FontTarget",
              "decl": "func (t FontTarget) FontPages() (dir, name string)",
              "doc": "FontPages returns the slash-separated folder a font target writes its pages to and the name they are named after: Out's folder and its base name without the .fnt extension.\n",
              "file": "pkg/project/assets.go",
              "line": 134
            }
          ]
        },
        {
          "name": "Gain",
          "anchor": "Gain",
          "decl": "type Gain struct {\n\t// Factor is the non-negative linear gain multiplier.\n\tFactor float64 `yaml:\"factor\" schema:\"required,minimum=0\"`\n}",
          "doc": "Gain scales every sample by Factor (sound.Gain), which must be finite and non-negative.\n",
          "file": "pkg/project/project.go",
          "line": 300,
          "members": [
            {
              "name": "Factor",
              "anchor": "Gain.Factor",
              "kind": "field",
              "doc": "Factor is the non-negative linear gain multiplier."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GamepadAxis",
          "anchor": "GamepadAxis",
          "decl": "type GamepadAxis struct {\n\t// Name uniquely identifies the gamepad axis.\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Axis is \"leftX\", \"leftY\", \"rightX\" or \"rightY\".\n\tAxis string `yaml:\"axis\" schema:\"required,enum=leftX|leftY|rightX|rightY\"`\n\t// DeadZone is the stick deflection below which the axis reads 0, strictly less than 1; 0 uses input.DefaultGamepadDeadZone and a negative value turns the dead zone off.\n\tDeadZone float64 `yaml:\"deadZone,omitempty\" schema:\"exclusiveMaximum=1\"`\n\t// Axial applies DeadZone to this axis alone instead of radially over both axes of the stick.\n\tAxial bool `yaml:\"axial,omitempty\"`\n\t// Sensitivity multiplies the dead-zoned reading before clamping to [-1, 1]; 0 uses 1.\n\tSensitivity float64 `yaml:\"sensitivity,omitempty\" schema:\"minimum=0\"`\n\t// Invert negates the resulting axis value.\n\tInvert bool `yaml:\"invert,omitempty\"`\n}",
          "doc": "GamepadAxis is a named axis read from a connected game controller's analog stick, as input.Actions.BindGamepadAxis binds it.\n",
          "file": "pkg/project/project.go",
          "line": 222,
          "members": [
            {
              "name": "Name",
              "anchor": "GamepadAxis.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the gamepad axis."
            },
            {
              "name": "Axis",
              "anchor": "GamepadAxis.Axis",
              "kind": "field",
              "doc": "Axis is \"leftX\", \"leftY\", \"rightX\" or \"rightY\"."
            },
            {
              "name": "DeadZone",
              "anchor": "GamepadAxis.DeadZone",
              "kind": "field",
              "doc": "DeadZone is the stick deflection below which the axis reads 0, strictly less than 1; 0 uses input.DefaultGamepadDeadZone and a negative value turns the dead zone off."
            },
            {
              "name": "Axial",
              "anchor": "GamepadAxis.Axial",
              "kind": "field",
              "doc": "Axial applies DeadZone to this axis alone instead of radially over both axes of the stick."
            },
            {
              "name": "Sensitivity",
              "anchor": "GamepadAxis.Sensitivity",
              "kind": "field",
              "doc": "Sensitivity multiplies the dead-zoned reading before clamping to [-1, 1]; 0 uses 1."
            },
            {
              "name": "Invert",
              "anchor": "GamepadAxis.Invert",
              "kind": "field",
              "doc": "Invert negates the resulting axis value."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Input",
          "anchor": "Input",
          "decl": "type Input struct {\n\t// Actions are the named actions in the order they are declared.\n\tActions []Action `yaml:\"actions,omitempty\"`\n\t// Axes are the named axes, each reading -1 for its negative action and +1 for its positive one.\n\tAxes []Axis `yaml:\"axes,omitempty\"`\n\t// MotionAxes are the named axes read from the device's tilt and gyroscope.\n\tMotionAxes []MotionAxis `yaml:\"motionAxes,omitempty\"`\n\t// GamepadAxes are the named axes read from a connected game controller's analog sticks.\n\tGamepadAxes []GamepadAxis `yaml:\"gamepadAxes,omitempty\"`\n}",
          "doc": "Input is a game's input map: named actions with their physical bindings, axes over pairs of actions, device motion axes and game controller stick axes.\n",
          "file": "pkg/project/project.go",
          "line": 103,
          "members": [
            {
              "name": "Actions",
              "anchor": "Input.Actions",
              "kind": "field",
              "doc": "Actions are the named actions in the order they are declared."
            },
            {
              "name": "Axes",
              "anchor": "Input.Axes",
              "kind": "field",
              "doc": "Axes are the named axes, each reading -1 for its negative action and +1 for its positive one."
            },
            {
              "name": "MotionAxes",
              "anchor": "Input.MotionAxes",
              "kind": "field",
              "doc": "MotionAxes are the named axes read from the device's tilt and gyroscope."
            },
            {
              "name": "GamepadAxes",
              "anchor": "Input.GamepadAxes",
              "kind": "field",
              "doc": "GamepadAxes are the named axes read from a connected game controller's analog sticks."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LDtkIntGridRule",
          "anchor": "LDtkIntGridRule",
          "decl": "type LDtkIntGridRule struct {\n\t// Name matches an LDtk IntGrid value identifier or IntGrid value group identifier (case-insensitive).\n\tName string `yaml:\"name,omitempty\"`\n\t// Value matches a positive numeric LDtk IntGrid value (1, 2, ...).\n\tValue int `yaml:\"value,omitempty\" schema:\"minimum=0\"`\n\t// Solid sets tilemap.TileSolid on matching IntGrid cells.\n\tSolid bool `yaml:\"solid,omitempty\"`\n\t// OneWay sets tilemap.TileOneWay on matching IntGrid cells.\n\tOneWay bool `yaml:\"oneWay,omitempty\"`\n\t// Flags sets additional game-defined tilemap.TileFlags bits on matching IntGrid cells alongside Solid and OneWay.\n\tFlags uint32 `yaml:\"flags,omitempty\"`\n}",
          "doc": "LDtkIntGridRule maps one LDtk IntGrid value (by identifier/group name or positive numeric value) to tile collision flags.\nExactly one of Name or Value must be set; leaving Solid, OneWay, and Flags all unset explicitly maps matching cells to 0 (non-colliding).\n",
          "file": "pkg/project/physics.go",
          "line": 33,
          "members": [
            {
              "name": "Name",
              "anchor": "LDtkIntGridRule.Name",
              "kind": "field",
              "doc": "Name matches an LDtk IntGrid value identifier or IntGrid value group identifier (case-insensitive)."
            },
            {
              "name": "Value",
              "anchor": "LDtkIntGridRule.Value",
              "kind": "field",
              "doc": "Value matches a positive numeric LDtk IntGrid value (1, 2, ...)."
            },
            {
              "name": "Solid",
              "anchor": "LDtkIntGridRule.Solid",
              "kind": "field",
              "doc": "Solid sets tilemap.TileSolid on matching IntGrid cells."
            },
            {
              "name": "OneWay",
              "anchor": "LDtkIntGridRule.OneWay",
              "kind": "field",
              "doc": "OneWay sets tilemap.TileOneWay on matching IntGrid cells."
            },
            {
              "name": "Flags",
              "anchor": "LDtkIntGridRule.Flags",
              "kind": "field",
              "doc": "Flags sets additional game-defined tilemap.TileFlags bits on matching IntGrid cells alongside Solid and OneWay."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "TileFlags",
              "anchor": "LDtkIntGridRule.TileFlags",
              "recv": "LDtkIntGridRule",
              "decl": "func (r LDtkIntGridRule) TileFlags() tilemap.TileFlags",
              "doc": "TileFlags returns the combined tilemap.TileFlags produced by r.\n",
              "file": "pkg/project/physics.go",
              "line": 47
            }
          ]
        },
        {
          "name": "Loaded",
          "anchor": "Loaded",
          "decl": "type Loaded struct {\n\t// MainScene is the name of the scene the game starts in, empty when the project names none.\n\tMainScene string\n\t// Scenes are the parsed and validated autoloaded scenes by name.\n\tScenes map[string]*sceneformat.SceneDoc\n\t// Resources are the autoloaded resources' bytes by name.\n\tResources map[string][]byte\n}",
          "doc": "Loaded holds the autoloaded scenes and resources of a project.\n",
          "file": "pkg/project/runtime.go",
          "line": 310,
          "members": [
            {
              "name": "MainScene",
              "anchor": "Loaded.MainScene",
              "kind": "field",
              "doc": "MainScene is the name of the scene the game starts in, empty when the project names none."
            },
            {
              "name": "Scenes",
              "anchor": "Loaded.Scenes",
              "kind": "field",
              "doc": "Scenes are the parsed and validated autoloaded scenes by name."
            },
            {
              "name": "Resources",
              "anchor": "Loaded.Resources",
              "kind": "field",
              "doc": "Resources are the autoloaded resources' bytes by name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Main",
              "anchor": "Loaded.Main",
              "recv": "*Loaded",
              "decl": "func (l *Loaded) Main() *sceneformat.SceneDoc",
              "doc": "Main returns the main scene, nil when the project names none.\n",
              "file": "pkg/project/runtime.go",
              "line": 320
            }
          ]
        },
        {
          "name": "ManifestTarget",
          "anchor": "ManifestTarget",
          "decl": "type ManifestTarget struct {\n\t// In is the assets folder scanned.\n\tIn string `yaml:\"in\"`\n\t// Out is the .go file written.\n\tOut string `yaml:\"out\"`\n\t// Package is the generated file's package name; empty is \"assets\".\n\tPackage string `yaml:\"package,omitempty\"`\n\t// Prefix is prepended to each asset's path to form its URI; empty is \"asset:\".\n\tPrefix string `yaml:\"prefix,omitempty\"`\n\t// Embed emits //go:embed directives instead of URI references.\n\tEmbed bool `yaml:\"embed,omitempty\"`\n\t// EmbedDir is prepended to the //go:embed patterns.\n\tEmbedDir string `yaml:\"embedDir,omitempty\"`\n}",
          "doc": "ManifestTarget is the typed Go asset manifest generated from a folder of assets, as game manifest generates it.\n",
          "file": "pkg/project/assets.go",
          "line": 166,
          "members": [
            {
              "name": "In",
              "anchor": "ManifestTarget.In",
              "kind": "field",
              "doc": "In is the assets folder scanned."
            },
            {
              "name": "Out",
              "anchor": "ManifestTarget.Out",
              "kind": "field",
              "doc": "Out is the .go file written."
            },
            {
              "name": "Package",
              "anchor": "ManifestTarget.Package",
              "kind": "field",
              "doc": "Package is the generated file's package name; empty is \"assets\"."
            },
            {
              "name": "Prefix",
              "anchor": "ManifestTarget.Prefix",
              "kind": "field",
              "doc": "Prefix is prepended to each asset's path to form its URI; empty is \"asset:\"."
            },
            {
              "name": "Embed",
              "anchor": "ManifestTarget.Embed",
              "kind": "field",
              "doc": "Embed emits //go:embed directives instead of URI references."
            },
            {
              "name": "EmbedDir",
              "anchor": "ManifestTarget.EmbedDir",
              "kind": "field",
              "doc": "EmbedDir is prepended to the //go:embed patterns."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ModelTarget",
          "anchor": "ModelTarget",
          "decl": "type ModelTarget struct {\n\t// In is the .gltf or .glb file; the buffers and images it references by relative path are read beside it.\n\tIn string `yaml:\"in\"`\n\t// Out is the .glb file written.\n\tOut string `yaml:\"out\"`\n\t// Scale multiplies the size of every scene of the model, such as 0.01 for a model exported in centimeters; 0 is 1.\n\tScale float64 `yaml:\"scale,omitempty\"`\n\t// Animations keeps the model's animations when true and leaves them out when false; nil is true.\n\tAnimations *bool `yaml:\"animations,omitempty\"`\n}",
          "doc": "ModelTarget is one glTF model packed into a single binary glTF (.glb) file: its buffers merged into the file's binary chunk and the images it references by file embedded, so the game loads one file.\n",
          "file": "pkg/project/assets.go",
          "line": 122,
          "members": [
            {
              "name": "In",
              "anchor": "ModelTarget.In",
              "kind": "field",
              "doc": "In is the .gltf or .glb file; the buffers and images it references by relative path are read beside it."
            },
            {
              "name": "Out",
              "anchor": "ModelTarget.Out",
              "kind": "field",
              "doc": "Out is the .glb file written."
            },
            {
              "name": "Scale",
              "anchor": "ModelTarget.Scale",
              "kind": "field",
              "doc": "Scale multiplies the size of every scene of the model, such as 0.01 for a model exported in centimeters; 0 is 1."
            },
            {
              "name": "Animations",
              "anchor": "ModelTarget.Animations",
              "kind": "field",
              "doc": "Animations keeps the model's animations when true and leaves them out when false; nil is true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MotionAxis",
          "anchor": "MotionAxis",
          "decl": "type MotionAxis struct {\n\t// Name uniquely identifies the motion axis.\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Axis is \"tiltX\", \"tiltY\", \"tiltZ\", \"gyroX\", \"gyroY\" or \"gyroZ\".\n\tAxis string `yaml:\"axis\" schema:\"required,enum=tiltX|tiltY|tiltZ|gyroX|gyroY|gyroZ\"`\n\t// DeadZone is the sensor dead zone in [0, 1); 0 takes input.MotionAxisOptions' default.\n\tDeadZone float64 `yaml:\"deadZone,omitempty\" schema:\"minimum=0,exclusiveMaximum=1\"`\n\t// Sensitivity scales the reading; 0 takes input.MotionAxisOptions' default.\n\tSensitivity float64 `yaml:\"sensitivity,omitempty\" schema:\"minimum=0\"`\n\t// MaxRange is the full-deflection sensor range; 0 takes input.MotionAxisOptions' default.\n\tMaxRange float64 `yaml:\"maxRange,omitempty\" schema:\"minimum=0\"`\n\t// Smoothing is the low-pass smoothing factor in [0, 1); 0 disables smoothing.\n\tSmoothing float64 `yaml:\"smoothing,omitempty\" schema:\"minimum=0,exclusiveMaximum=1\"`\n\t// Invert negates the resulting axis value.\n\tInvert bool `yaml:\"invert,omitempty\"`\n}",
          "doc": "MotionAxis is a named axis read from a device motion sensor, as input.Actions.BindMotionAxis binds it.\n",
          "file": "pkg/project/project.go",
          "line": 204,
          "members": [
            {
              "name": "Name",
              "anchor": "MotionAxis.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the motion axis."
            },
            {
              "name": "Axis",
              "anchor": "MotionAxis.Axis",
              "kind": "field",
              "doc": "Axis is \"tiltX\", \"tiltY\", \"tiltZ\", \"gyroX\", \"gyroY\" or \"gyroZ\"."
            },
            {
              "name": "DeadZone",
              "anchor": "MotionAxis.DeadZone",
              "kind": "field",
              "doc": "DeadZone is the sensor dead zone in [0, 1); 0 takes input.MotionAxisOptions' default."
            },
            {
              "name": "Sensitivity",
              "anchor": "MotionAxis.Sensitivity",
              "kind": "field",
              "doc": "Sensitivity scales the reading; 0 takes input.MotionAxisOptions' default."
            },
            {
              "name": "MaxRange",
              "anchor": "MotionAxis.MaxRange",
              "kind": "field",
              "doc": "MaxRange is the full-deflection sensor range; 0 takes input.MotionAxisOptions' default."
            },
            {
              "name": "Smoothing",
              "anchor": "MotionAxis.Smoothing",
              "kind": "field",
              "doc": "Smoothing is the low-pass smoothing factor in [0, 1); 0 disables smoothing."
            },
            {
              "name": "Invert",
              "anchor": "MotionAxis.Invert",
              "kind": "field",
              "doc": "Invert negates the resulting axis value."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavAgent",
          "anchor": "NavAgent",
          "decl": "type NavAgent struct {\n\t// Name uniquely identifies the agent type, such as \"humanoid\".\n\tName string `yaml:\"name\"`\n\t// Radius is how far the mesh keeps from walls and ledges.\n\tRadius float32 `yaml:\"radius,omitempty\"`\n\t// Height is the clearance the agent needs.\n\tHeight float32 `yaml:\"height,omitempty\"`\n\t// MaxSlope is the steepest walkable slope in degrees, below 90.\n\tMaxSlope float32 `yaml:\"maxSlope,omitempty\"`\n\t// MaxClimb is the highest step the agent climbs.\n\tMaxClimb float32 `yaml:\"maxClimb,omitempty\"`\n}",
          "doc": "NavAgent is one agent type navigation meshes are baked for, as navbake3d.AgentType defines it; each size 0 or omitted takes navbake3d's default.\n",
          "file": "pkg/project/project.go",
          "line": 394,
          "members": [
            {
              "name": "Name",
              "anchor": "NavAgent.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the agent type, such as \"humanoid\"."
            },
            {
              "name": "Radius",
              "anchor": "NavAgent.Radius",
              "kind": "field",
              "doc": "Radius is how far the mesh keeps from walls and ledges."
            },
            {
              "name": "Height",
              "anchor": "NavAgent.Height",
              "kind": "field",
              "doc": "Height is the clearance the agent needs."
            },
            {
              "name": "MaxSlope",
              "anchor": "NavAgent.MaxSlope",
              "kind": "field",
              "doc": "MaxSlope is the steepest walkable slope in degrees, below 90."
            },
            {
              "name": "MaxClimb",
              "anchor": "NavAgent.MaxClimb",
              "kind": "field",
              "doc": "MaxClimb is the highest step the agent climbs."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Navigation",
          "anchor": "Navigation",
          "decl": "type Navigation struct {\n\t// CellSize is the width and depth of one cell of the voxel grid the level is baked on, in world units.\n\tCellSize float32 `yaml:\"cellSize,omitempty\"`\n\t// CellHeight is the height of one cell, the precision of heights, clearances and steps.\n\tCellHeight float32 `yaml:\"cellHeight,omitempty\"`\n\t// MinRegionArea is the smallest area of an island of walkable surface that is kept.\n\tMinRegionArea float32 `yaml:\"minRegionArea,omitempty\"`\n\t// MaxEdgeLength is the longest a polygon edge along a wall may be.\n\tMaxEdgeLength float32 `yaml:\"maxEdgeLength,omitempty\"`\n\t// MaxSimplificationError is the farthest a simplified outline may stray from the walkable area.\n\tMaxSimplificationError float32 `yaml:\"maxSimplificationError,omitempty\"`\n\t// MaxVertsPerPoly is the largest number of vertices in one polygon, from 3 to MaxNavVertsPerPoly.\n\tMaxVertsPerPoly int `yaml:\"maxVertsPerPoly,omitempty\"`\n\t// DetailSampleDistance is the spacing of the height samples polygons follow uneven ground with, at least CellSize.\n\tDetailSampleDistance float32 `yaml:\"detailSampleDistance,omitempty\"`\n\t// DetailSampleMaxError is how far the polygons' triangles may stray from the sampled height.\n\tDetailSampleMaxError float32 `yaml:\"detailSampleMaxError,omitempty\"`\n\t// Agents are the agent types a scene gets a navigation mesh each for, in the order the baked file lists them; empty bakes one called DefaultNavAgent.\n\tAgents []NavAgent `yaml:\"agents,omitempty\"`\n}",
          "doc": "Navigation is the navigation mesh bake settings of a project, as navbake3d.Settings defines them: each field 0 or omitted takes navbake3d's default. The scene's own layers are all baked.\n",
          "file": "pkg/project/project.go",
          "line": 372,
          "members": [
            {
              "name": "CellSize",
              "anchor": "Navigation.CellSize",
              "kind": "field",
              "doc": "CellSize is the width and depth of one cell of the voxel grid the level is baked on, in world units."
            },
            {
              "name": "CellHeight",
              "anchor": "Navigation.CellHeight",
              "kind": "field",
              "doc": "CellHeight is the height of one cell, the precision of heights, clearances and steps."
            },
            {
              "name": "MinRegionArea",
              "anchor": "Navigation.MinRegionArea",
              "kind": "field",
              "doc": "MinRegionArea is the smallest area of an island of walkable surface that is kept."
            },
            {
              "name": "MaxEdgeLength",
              "anchor": "Navigation.MaxEdgeLength",
              "kind": "field",
              "doc": "MaxEdgeLength is the longest a polygon edge along a wall may be."
            },
            {
              "name": "MaxSimplificationError",
              "anchor": "Navigation.MaxSimplificationError",
              "kind": "field",
              "doc": "MaxSimplificationError is the farthest a simplified outline may stray from the walkable area."
            },
            {
              "name": "MaxVertsPerPoly",
              "anchor": "Navigation.MaxVertsPerPoly",
              "kind": "field",
              "doc": "MaxVertsPerPoly is the largest number of vertices in one polygon, from 3 to MaxNavVertsPerPoly."
            },
            {
              "name": "DetailSampleDistance",
              "anchor": "Navigation.DetailSampleDistance",
              "kind": "field",
              "doc": "DetailSampleDistance is the spacing of the height samples polygons follow uneven ground with, at least CellSize."
            },
            {
              "name": "DetailSampleMaxError",
              "anchor": "Navigation.DetailSampleMaxError",
              "kind": "field",
              "doc": "DetailSampleMaxError is how far the polygons' triangles may stray from the sampled height."
            },
            {
              "name": "Agents",
              "anchor": "Navigation.Agents",
              "kind": "field",
              "doc": "Agents are the agent types a scene gets a navigation mesh each for, in the order the baked file lists them; empty bakes one called DefaultNavAgent."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Pack",
          "anchor": "Pack",
          "decl": "type Pack struct {\n\t// Name identifies the pack in its library: lower-case ASCII letters, digits and '-', starting with a letter or digit.\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Kind is one of PackKinds.\n\tKind string `yaml:\"kind\" schema:\"required,enum=asset|plugin|template\"`\n\t// PackVersion is the version of the pack that was installed, such as 1.2.0.\n\tPackVersion string `yaml:\"packVersion\" schema:\"required\"`\n\t// SHA256 is the pack's digest, 64 lower-case hexadecimal digits, which tells one release of the pack from another whatever its version says.\n\tSHA256 string `yaml:\"sha256\" schema:\"required\"`\n\t// Dir is the slash-separated directory inside the project the pack's files were written to.\n\tDir string `yaml:\"dir\" schema:\"required\"`\n\t// Files are the slash-separated paths of the pack's files relative to Dir, sorted and unique.\n\tFiles []string `yaml:\"files,omitempty\"`\n\t// Scenes names the autoload scenes the install added.\n\tScenes []string `yaml:\"scenes,omitempty,flow\"`\n\t// Resources names the autoload resources the install added.\n\tResources []string `yaml:\"resources,omitempty,flow\"`\n\t// Plugins names the editor plugins the install turned on.\n\tPlugins []string `yaml:\"plugins,omitempty,flow\"`\n}",
          "doc": "Pack is one library pack installed into the project. Its files are Dir joined with each of Files, and Scenes, Resources and Plugins name the autoload entries and editor plugins the install added, which must still be in the file; an entry or plugin the project held before the install is not the pack's and is not listed.\n",
          "file": "pkg/project/project.go",
          "line": 421,
          "members": [
            {
              "name": "Name",
              "anchor": "Pack.Name",
              "kind": "field",
              "doc": "Name identifies the pack in its library: lower-case ASCII letters, digits and '-', starting with a letter or digit."
            },
            {
              "name": "Kind",
              "anchor": "Pack.Kind",
              "kind": "field",
              "doc": "Kind is one of PackKinds."
            },
            {
              "name": "PackVersion",
              "anchor": "Pack.PackVersion",
              "kind": "field",
              "doc": "PackVersion is the version of the pack that was installed, such as 1.2.0."
            },
            {
              "name": "SHA256",
              "anchor": "Pack.SHA256",
              "kind": "field",
              "doc": "SHA256 is the pack's digest, 64 lower-case hexadecimal digits, which tells one release of the pack from another whatever its version says."
            },
            {
              "name": "Dir",
              "anchor": "Pack.Dir",
              "kind": "field",
              "doc": "Dir is the slash-separated directory inside the project the pack's files were written to."
            },
            {
              "name": "Files",
              "anchor": "Pack.Files",
              "kind": "field",
              "doc": "Files are the slash-separated paths of the pack's files relative to Dir, sorted and unique."
            },
            {
              "name": "Scenes",
              "anchor": "Pack.Scenes",
              "kind": "field",
              "doc": "Scenes names the autoload scenes the install added."
            },
            {
              "name": "Resources",
              "anchor": "Pack.Resources",
              "kind": "field",
              "doc": "Resources names the autoload resources the install added."
            },
            {
              "name": "Plugins",
              "anchor": "Pack.Plugins",
              "kind": "field",
              "doc": "Plugins names the editor plugins the install turned on."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Paths",
              "anchor": "Pack.Paths",
              "recv": "*Pack",
              "decl": "func (p *Pack) Paths() []string",
              "doc": "Paths returns the slash-separated paths of p's files from the project root, in the order of Files.\n",
              "file": "pkg/project/project.go",
              "line": 443
            }
          ]
        },
        {
          "name": "PathRef",
          "anchor": "PathRef",
          "decl": "type PathRef struct {\n\t// Field says what the path is, one of the Field constants, such as FieldAtlasIn.\n\tField string\n\t// Node is the YAML scalar that writes the path in the document PathRefs parsed: its Value is the path, and its Line and Column say where it is written.\n\tNode *yaml.Node\n\t// Dir reports whether the path names a folder rather than a file.\n\tDir bool\n\t// Output reports whether the path need not exist before game assets runs: what a tool writes, such as an asset target's out, and the manifest's in, the folder the other targets usually write into.\n\tOutput bool\n}",
          "doc": "PathRef is one path a project file holds to a file or folder of the project, slash-separated and relative to the project root.\n",
          "file": "pkg/project/paths.go",
          "line": 30,
          "members": [
            {
              "name": "Field",
              "anchor": "PathRef.Field",
              "kind": "field",
              "doc": "Field says what the path is, one of the Field constants, such as FieldAtlasIn."
            },
            {
              "name": "Node",
              "anchor": "PathRef.Node",
              "kind": "field",
              "doc": "Node is the YAML scalar that writes the path in the document PathRefs parsed: its Value is the path, and its Line and Column say where it is written."
            },
            {
              "name": "Dir",
              "anchor": "PathRef.Dir",
              "kind": "field",
              "doc": "Dir reports whether the path names a folder rather than a file."
            },
            {
              "name": "Output",
              "anchor": "PathRef.Output",
              "kind": "field",
              "doc": "Output reports whether the path need not exist before game assets runs: what a tool writes, such as an asset target's out, and the manifest's in, the folder the other targets usually write into."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PathRefs",
              "anchor": "PathRefs",
              "decl": "func PathRefs(data []byte) ([]PathRef, error)",
              "doc": "PathRefs parses data as a project file, refusing what Parse refuses, and returns every path it holds to a file or folder of the project with the YAML node that writes it, in the order EachPath visits them, so that a tool can check each path or rewrite it in place.\n",
              "file": "pkg/project/paths.go",
              "line": 103
            }
          ],
          "methods": []
        },
        {
          "name": "Physics",
          "anchor": "Physics",
          "decl": "type Physics struct {\n\t// Gravity2D is the 2D gravity acceleration in points per second squared (for example {y: 980} in +Y-down screen space); nil leaves 2D gravity at (0, 0).\n\tGravity2D *Vec2 `yaml:\"gravity2D,omitempty,flow\"`\n\t// Gravity3D is the 3D gravity acceleration in units per second squared (for example {y: -9.81} in Y-up 3D space); nil leaves 3D gravity at physics3d's default (0, -9.81, 0).\n\tGravity3D *Vec3 `yaml:\"gravity3D,omitempty,flow\"`\n\t// SolverIterations2D is the number of sequential-impulse iterations per 2D rigid step; 0 uses physics.DefaultSolverIterations.\n\tSolverIterations2D int `yaml:\"solverIterations2D,omitempty\" schema:\"minimum=0\"`\n\t// SolverIterations3D is the number of solver iterations per 3D physics step; 0 uses physics3d's default.\n\tSolverIterations3D int `yaml:\"solverIterations3D,omitempty\" schema:\"minimum=0\"`\n\t// Layers maps human-readable collision layer names (such as \"player\", \"walls\", and \"coins\") to bit indices in [0, 31], in declaration order.\n\tLayers []PhysicsLayer `yaml:\"layers,omitempty\"`\n\t// LDtkIntGrid maps LDtk IntGrid value identifiers, group identifiers, or numeric values to tilemap.TileFlags when loading .ldtk projects.\n\tLDtkIntGrid []LDtkIntGridRule `yaml:\"ldtkIntGrid,omitempty\"`\n}",
          "doc": "Physics holds the project's default 2D and 3D gravity, solver iterations, named collision layers, and LDtk IntGrid collision flag mappings shared by scenes.\n",
          "file": "pkg/project/physics.go",
          "line": 16,
          "members": [
            {
              "name": "Gravity2D",
              "anchor": "Physics.Gravity2D",
              "kind": "field",
              "doc": "Gravity2D is the 2D gravity acceleration in points per second squared (for example {y: 980} in +Y-down screen space); nil leaves 2D gravity at (0, 0)."
            },
            {
              "name": "Gravity3D",
              "anchor": "Physics.Gravity3D",
              "kind": "field",
              "doc": "Gravity3D is the 3D gravity acceleration in units per second squared (for example {y: -9.81} in Y-up 3D space); nil leaves 3D gravity at physics3d's default (0, -9.81, 0)."
            },
            {
              "name": "SolverIterations2D",
              "anchor": "Physics.SolverIterations2D",
              "kind": "field",
              "doc": "SolverIterations2D is the number of sequential-impulse iterations per 2D rigid step; 0 uses physics.DefaultSolverIterations."
            },
            {
              "name": "SolverIterations3D",
              "anchor": "Physics.SolverIterations3D",
              "kind": "field",
              "doc": "SolverIterations3D is the number of solver iterations per 3D physics step; 0 uses physics3d's default."
            },
            {
              "name": "Layers",
              "anchor": "Physics.Layers",
              "kind": "field",
              "doc": "Layers maps human-readable collision layer names (such as \"player\", \"walls\", and \"coins\") to bit indices in [0, 31], in declaration order."
            },
            {
              "name": "LDtkIntGrid",
              "anchor": "Physics.LDtkIntGrid",
              "kind": "field",
              "doc": "LDtkIntGrid maps LDtk IntGrid value identifiers, group identifiers, or numeric values to tilemap.TileFlags when loading .ldtk projects."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "LDtkOptions",
              "anchor": "Physics.LDtkOptions",
              "recv": "*Physics",
              "decl": "func (p *Physics) LDtkOptions(resolveImage func(relPath string) core.ImageSource) tilemap.LDtkOptions",
              "doc": "LDtkOptions builds a tilemap.LDtkOptions using p's LDtkIntGrid rules and resolveImage.\n",
              "file": "pkg/project/physics.go",
              "line": 270
            },
            {
              "name": "LayerBit",
              "anchor": "Physics.LayerBit",
              "recv": "*Physics",
              "decl": "func (p *Physics) LayerBit(name string) (uint, bool)",
              "doc": "LayerBit returns the bit index in [0, 31] assigned to name, and false when p is nil or name is not declared.\n",
              "file": "pkg/project/physics.go",
              "line": 175
            },
            {
              "name": "LayerMask2D",
              "anchor": "Physics.LayerMask2D",
              "recv": "*Physics",
              "decl": "func (p *Physics) LayerMask2D(names ...string) (physics.LayerMask, error)",
              "doc": "LayerMask2D resolves layer names into a 2D physics.LayerMask.\n",
              "file": "pkg/project/physics.go",
              "line": 204
            },
            {
              "name": "LayerMask3D",
              "anchor": "Physics.LayerMask3D",
              "recv": "*Physics",
              "decl": "func (p *Physics) LayerMask3D(names ...string) (physics3d.LayerMask, error)",
              "doc": "LayerMask3D resolves layer names into a 3D physics3d.LayerMask.\n",
              "file": "pkg/project/physics.go",
              "line": 209
            },
            {
              "name": "LayerTable",
              "anchor": "Physics.LayerTable",
              "recv": "*Physics",
              "decl": "func (p *Physics) LayerTable() *sceneformat.PhysicsLayerTable",
              "doc": "LayerTable returns p's declared layers as a *sceneformat.PhysicsLayerTable, or nil when p is nil.\n",
              "file": "pkg/project/physics.go",
              "line": 188
            }
          ]
        },
        {
          "name": "PhysicsLayer",
          "anchor": "PhysicsLayer",
          "decl": "type PhysicsLayer struct {\n\t// Name uniquely identifies the collision layer, such as \"player\", \"walls\", or \"coins\".\n\tName string `yaml:\"name\" schema:\"required\"`\n\t// Bit is the collision bit index in [0, 31], matching LayerBit(Bit).\n\tBit int `yaml:\"bit\" schema:\"minimum=0,maximum=31\"`\n}",
          "doc": "PhysicsLayer assigns a human-readable collision layer name to a bit index in [0, 31].\n",
          "file": "pkg/project/physics.go",
          "line": 78,
          "members": [
            {
              "name": "Name",
              "anchor": "PhysicsLayer.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the collision layer, such as \"player\", \"walls\", or \"coins\"."
            },
            {
              "name": "Bit",
              "anchor": "PhysicsLayer.Bit",
              "kind": "field",
              "doc": "Bit is the collision bit index in [0, 31], matching LayerBit(Bit)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Preset",
          "anchor": "Preset",
          "decl": "type Preset struct {\n\t// Platform is one of Platforms, such as \"web\" or \"macos\".\n\tPlatform string `yaml:\"platform\" schema:\"required,enum=macos|windows|linux|ios|tvos|watchos|android|harmonyos|web|miniprogram\"`\n\t// Targets are the NSGo build targets of the platform to build, such as macos_arm64; empty builds the platform name itself, which NSGo expands to its default targets.\n\tTargets []string `yaml:\"targets,omitempty,flow\"`\n}",
          "doc": "Preset is the export preset of one platform.\n",
          "file": "pkg/project/project.go",
          "line": 352,
          "members": [
            {
              "name": "Platform",
              "anchor": "Preset.Platform",
              "kind": "field",
              "doc": "Platform is one of Platforms, such as \"web\" or \"macos\"."
            },
            {
              "name": "Targets",
              "anchor": "Preset.Targets",
              "kind": "field",
              "doc": "Targets are the NSGo build targets of the platform to build, such as macos_arm64; empty builds the platform name itself, which NSGo expands to its default targets."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Rect",
          "anchor": "Rect",
          "decl": "type Rect struct {\n\t// X is the horizontal origin in virtual points.\n\tX float32 `yaml:\"x,omitempty\"`\n\t// Y is the vertical origin in virtual points.\n\tY float32 `yaml:\"y,omitempty\"`\n\t// Width is the rectangle's width in virtual points; it must be positive.\n\tWidth float32 `yaml:\"width\" schema:\"required,exclusiveMinimum=0\"`\n\t// Height is the rectangle's height in virtual points; it must be positive.\n\tHeight float32 `yaml:\"height\" schema:\"required,exclusiveMinimum=0\"`\n}",
          "doc": "Rect is an axis-aligned rectangle with a positive size.\n",
          "file": "pkg/project/project.go",
          "line": 174,
          "members": [
            {
              "name": "X",
              "anchor": "Rect.X",
              "kind": "field",
              "doc": "X is the horizontal origin in virtual points."
            },
            {
              "name": "Y",
              "anchor": "Rect.Y",
              "kind": "field",
              "doc": "Y is the vertical origin in virtual points."
            },
            {
              "name": "Width",
              "anchor": "Rect.Width",
              "kind": "field",
              "doc": "Width is the rectangle's width in virtual points; it must be positive."
            },
            {
              "name": "Height",
              "anchor": "Rect.Height",
              "kind": "field",
              "doc": "Height is the rectangle's height in virtual points; it must be positive."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Rect.Bounds",
              "recv": "Rect",
              "decl": "func (r Rect) Bounds() core.Bounds",
              "doc": "Bounds returns r as core.Bounds.\n",
              "file": "pkg/project/project.go",
              "line": 186
            }
          ]
        },
        {
          "name": "Resolver",
          "anchor": "Resolver",
          "decl": "type Resolver struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Resolver loads a project's assets from its files, as the scene editor and the game read them: the sprite atlases, scene files, materials, physics materials, YAML tilesets and Tiled and LDtk maps a scene names. It is a sceneformat.AssetResolver that also implements sceneformat.SceneResolver, sceneformat.MaterialResolver, sceneformat.PhysicsMaterialResolver and sceneformat.FileResolver, and it lists the project's atlases (AtlasNames) for the editor's asset browser.\n\nA scene names an atlas the way `game check` (package assetcheck) finds it: the name is the path of an atlas JSON file without its .json extension, either from the project root or as the file's base name, and when several atlases match, the one nearest the scene wins (NearestAtlases). An atlas JSON is a JSON file with top-level frames and meta objects, as TexturePacker and Aseprite export them; its meta.image is read from the project relative to the JSON file, so the atlas draws the project's own image. Scene files, materials, tilesets and tilemap sources are paths from the project root.\n\nThe walk for atlases skips the directories the go command skips (names starting with \".\" or \"_\", and testdata) and the directories of other projects, those holding a game.yaml, nsgo.yaml or go.mod of their own. A Resolver lists the atlases and parses each one once, then serves them until Refresh; scene files and the files ReadFile reads are read again on every request, so a scene saved since is seen at once. A Resolver is safe for use by multiple goroutines.\n",
          "file": "pkg/project/resolver.go",
          "line": 26,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewResolver",
              "anchor": "NewResolver",
              "decl": "func NewResolver(fsys fs.FS) *Resolver",
              "doc": "NewResolver returns a Resolver over fsys, the project's files with paths from its root, such as os.DirFS of the directory holding game.yaml. It finds atlases nearest the project root; ForScene returns one that finds them nearest a scene.\n",
              "file": "pkg/project/resolver.go",
              "line": 58
            }
          ],
          "methods": [
            {
              "name": "Atlas",
              "anchor": "Resolver.Atlas",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) Atlas(name string) (*sprite.Atlas, error)",
              "doc": "Atlas returns the atlas name names, found as Resolver describes. It fails when no atlas matches, when several match at the same distance (name it by its path from the project root instead), and when the matching file or its image does not load.\n",
              "file": "pkg/project/resolver.go",
              "line": 87
            },
            {
              "name": "AtlasNames",
              "anchor": "Resolver.AtlasNames",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) AtlasNames() []string",
              "doc": "AtlasNames returns the names a scene can give the project's atlases, sorted: each atlas's base name when that name finds it from r's scene, as Atlas would, and otherwise its path from the project root without .json. It lists an atlas that does not load too; Atlas reports why. It lets a Resolver serve as the editor's editor.AtlasLister, and returns nil when the project's files cannot be listed.\n",
              "file": "pkg/project/resolver.go",
              "line": 106
            },
            {
              "name": "ForScene",
              "anchor": "Resolver.ForScene",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) ForScene(scenePath string) *Resolver",
              "doc": "ForScene returns a Resolver over the same files and caches as r that finds atlases nearest the scene file at scenePath, a slash-separated path from the project root such as \"scenes/level.scene.yaml\", as `game check` finds a scene's atlases. An empty or invalid scenePath finds them nearest the project root.\n",
              "file": "pkg/project/resolver.go",
              "line": 67
            },
            {
              "name": "LDtkOptions",
              "anchor": "Resolver.LDtkOptions",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) LDtkOptions() tilemap.LDtkOptions",
              "doc": "LDtkOptions returns the tilemap.LDtkOptions derived from game.yaml's physics.ldtkIntGrid section, if present,\nimplementing sceneformat.LDtkOptionsResolver so scenes referencing .ldtk sources map IntGrid values from project settings.\n",
              "file": "pkg/project/resolver.go",
              "line": 218
            },
            {
              "name": "Library",
              "anchor": "Resolver.Library",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) Library() *resource.Library",
              "doc": "Library returns the resource.Library that loads the project's materials and physics materials, so callers such as the scene editor can reload edited material files in place (resource.Library.Reload) until Refresh replaces it.\n",
              "file": "pkg/project/resolver.go",
              "line": 197
            },
            {
              "name": "Material",
              "anchor": "Resolver.Material",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) Material(p string) (*resource.Material, error)",
              "doc": "Material loads the material file at p, a slash-separated path from the project root, through a resource.Library shared by every Resolver over the project, so every scene that names one file gets the same value until Refresh.\n",
              "file": "pkg/project/resolver.go",
              "line": 187
            },
            {
              "name": "PhysicsMaterial",
              "anchor": "Resolver.PhysicsMaterial",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) PhysicsMaterial(p string) (*resource.PhysicsMaterial, error)",
              "doc": "PhysicsMaterial loads the physics material file at p, a .physics.yaml that a body2d or body3d component names by its path from the project root, through the same resource.Library as Material, so sceneformat.BuildPhysics, which the editor's Play runs, finds the project's physics materials.\n",
              "file": "pkg/project/resolver.go",
              "line": 192
            },
            {
              "name": "ReadFile",
              "anchor": "Resolver.ReadFile",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) ReadFile(p string) ([]byte, error)",
              "doc": "ReadFile reads the file at p, a slash-separated path from the project root, so that sceneformat.Build reads through it the YAML tilesets layered tilemaps name and the Tiled and LDtk maps tilemap sources name, with the tilesets those refer to, and the editor's tile palette lists their tiles, as sceneformat.FSAssets does. Their images are left as URIs, as FSAssets leaves them.\n",
              "file": "pkg/project/resolver.go",
              "line": 212
            },
            {
              "name": "Refresh",
              "anchor": "Resolver.Refresh",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) Refresh()",
              "doc": "Refresh forgets the atlases, materials and physics materials r has listed and loaded, so the next request reads the project's files again: call it after the project's atlases or material files change on disk. It is shared with every Resolver ForScene returned. Until then every scene that names one material file gets the same value.\n",
              "file": "pkg/project/resolver.go",
              "line": 76
            },
            {
              "name": "Scene",
              "anchor": "Resolver.Scene",
              "recv": "*Resolver",
              "decl": "func (r *Resolver) Scene(p string) (*sceneformat.SceneDoc, error)",
              "doc": "Scene reads and parses the scene file at p, a slash-separated path from the project root, as sceneformat.FSScenes does, and names each atlas it names, by its sprites, its overrides' sprites and its inline tilemaps' tilesets, by the atlas's path from the project root without .json when the name finds one atlas nearest p. sceneformat.Build looks up every atlas of a scene and of the scenes it instances or inherits through one resolver, which finds them nearest the open scene, so without this an instanced scene in another directory would draw the atlas nearest the scene instancing it, not the one `game check` finds nearest the instanced file. A name that finds no atlas, or several, is left as it is, for Atlas to report.\n",
              "file": "pkg/project/resolver.go",
              "line": 128
            }
          ]
        },
        {
          "name": "Reverb",
          "anchor": "Reverb",
          "decl": "type Reverb struct {\n\t// RoomSize controls reverb decay size in [0, 1].\n\tRoomSize float64 `yaml:\"roomSize,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Damping controls high-frequency attenuation in [0, 1].\n\tDamping float64 `yaml:\"damping,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Wet is the wet mix level in [0, 1].\n\tWet float64 `yaml:\"wet,omitempty\" schema:\"minimum=0,maximum=1\"`\n}",
          "doc": "Reverb is a Freeverb-style reverb (sound.Reverb); each field is in [0, 1].\n",
          "file": "pkg/project/project.go",
          "line": 290,
          "members": [
            {
              "name": "RoomSize",
              "anchor": "Reverb.RoomSize",
              "kind": "field",
              "doc": "RoomSize controls reverb decay size in [0, 1]."
            },
            {
              "name": "Damping",
              "anchor": "Reverb.Damping",
              "kind": "field",
              "doc": "Damping controls high-frequency attenuation in [0, 1]."
            },
            {
              "name": "Wet",
              "anchor": "Reverb.Wet",
              "kind": "field",
              "doc": "Wet is the wet mix level in [0, 1]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TextureTarget",
          "anchor": "TextureTarget",
          "decl": "type TextureTarget struct {\n\t// In is the source image.\n\tIn string `yaml:\"in\"`\n\t// Out is the .ktx2 file written.\n\tOut string `yaml:\"out\"`\n\t// Format is one of TextureFormats; empty is rgba8.\n\tFormat string `yaml:\"format,omitempty\"`\n\t// Mipmaps writes the whole mipmap chain down to 1x1.\n\tMipmaps bool `yaml:\"mipmaps,omitempty\"`\n\t// SRGB marks the texture sRGB and filters its mipmaps in linear light.\n\tSRGB bool `yaml:\"srgb,omitempty\"`\n}",
          "doc": "TextureTarget is one PNG or JPEG image encoded into a KTX2 container, as game tex encodes it.\n",
          "file": "pkg/project/assets.go",
          "line": 74,
          "members": [
            {
              "name": "In",
              "anchor": "TextureTarget.In",
              "kind": "field",
              "doc": "In is the source image."
            },
            {
              "name": "Out",
              "anchor": "TextureTarget.Out",
              "kind": "field",
              "doc": "Out is the .ktx2 file written."
            },
            {
              "name": "Format",
              "anchor": "TextureTarget.Format",
              "kind": "field",
              "doc": "Format is one of TextureFormats; empty is rgba8."
            },
            {
              "name": "Mipmaps",
              "anchor": "TextureTarget.Mipmaps",
              "kind": "field",
              "doc": "Mipmaps writes the whole mipmap chain down to 1x1."
            },
            {
              "name": "SRGB",
              "anchor": "TextureTarget.SRGB",
              "kind": "field",
              "doc": "SRGB marks the texture sRGB and filters its mipmaps in linear light."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Vec2",
          "anchor": "Vec2",
          "decl": "type Vec2 struct {\n\t// X is the horizontal component.\n\tX float32 `yaml:\"x,omitempty\"`\n\t// Y is the vertical component.\n\tY float32 `yaml:\"y,omitempty\"`\n}",
          "doc": "Vec2 is a two-dimensional vector in game.yaml, such as 2D gravity.\n",
          "file": "pkg/project/physics.go",
          "line": 60,
          "members": [
            {
              "name": "X",
              "anchor": "Vec2.X",
              "kind": "field",
              "doc": "X is the horizontal component."
            },
            {
              "name": "Y",
              "anchor": "Vec2.Y",
              "kind": "field",
              "doc": "Y is the vertical component."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Vec3",
          "anchor": "Vec3",
          "decl": "type Vec3 struct {\n\t// X is the X-axis component.\n\tX float32 `yaml:\"x,omitempty\"`\n\t// Y is the Y-axis component.\n\tY float32 `yaml:\"y,omitempty\"`\n\t// Z is the Z-axis component.\n\tZ float32 `yaml:\"z,omitempty\"`\n}",
          "doc": "Vec3 is a three-dimensional vector in game.yaml, such as 3D gravity.\n",
          "file": "pkg/project/physics.go",
          "line": 68,
          "members": [
            {
              "name": "X",
              "anchor": "Vec3.X",
              "kind": "field",
              "doc": "X is the X-axis component."
            },
            {
              "name": "Y",
              "anchor": "Vec3.Y",
              "kind": "field",
              "doc": "Y is the Y-axis component."
            },
            {
              "name": "Z",
              "anchor": "Vec3.Z",
              "kind": "field",
              "doc": "Z is the Z-axis component."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Window",
          "anchor": "Window",
          "decl": "type Window struct {\n\t// Title is the window's title; empty uses File.Name.\n\tTitle string `yaml:\"title,omitempty\"`\n\t// Width is the window's starting content width in points; it must be positive.\n\tWidth float32 `yaml:\"width\" schema:\"required,exclusiveMinimum=0\"`\n\t// Height is the window's starting content height in points; it must be positive.\n\tHeight float32 `yaml:\"height\" schema:\"required,exclusiveMinimum=0\"`\n\t// MinWidth is the smallest content width the user may resize the window to; 0 is no limit.\n\tMinWidth float32 `yaml:\"minWidth,omitempty\" schema:\"minimum=0\"`\n\t// MinHeight is the smallest content height the user may resize the window to; 0 is no limit.\n\tMinHeight float32 `yaml:\"minHeight,omitempty\" schema:\"minimum=0\"`\n\t// MaxWidth is the largest content width the user may resize the window to; 0 is no limit.\n\tMaxWidth float32 `yaml:\"maxWidth,omitempty\" schema:\"minimum=0\"`\n\t// MaxHeight is the largest content height the user may resize the window to; 0 is no limit.\n\tMaxHeight float32 `yaml:\"maxHeight,omitempty\" schema:\"minimum=0\"`\n\t// Resizable says whether the user may resize the window; nil defaults to true.\n\tResizable *bool `yaml:\"resizable,omitempty\"`\n\t// Appearance starts the app \"light\" or \"dark\" whatever the system's; empty follows the system. nsgo.yaml's appearance follows it.\n\tAppearance string `yaml:\"appearance,omitempty\" schema:\"enum=light|dark\"`\n}",
          "doc": "Window is the main window's content size in points, its size limits, its title and its appearance.\n",
          "file": "pkg/project/project.go",
          "line": 65,
          "members": [
            {
              "name": "Title",
              "anchor": "Window.Title",
              "kind": "field",
              "doc": "Title is the window's title; empty uses File.Name."
            },
            {
              "name": "Width",
              "anchor": "Window.Width",
              "kind": "field",
              "doc": "Width is the window's starting content width in points; it must be positive."
            },
            {
              "name": "Height",
              "anchor": "Window.Height",
              "kind": "field",
              "doc": "Height is the window's starting content height in points; it must be positive."
            },
            {
              "name": "MinWidth",
              "anchor": "Window.MinWidth",
              "kind": "field",
              "doc": "MinWidth is the smallest content width the user may resize the window to; 0 is no limit."
            },
            {
              "name": "MinHeight",
              "anchor": "Window.MinHeight",
              "kind": "field",
              "doc": "MinHeight is the smallest content height the user may resize the window to; 0 is no limit."
            },
            {
              "name": "MaxWidth",
              "anchor": "Window.MaxWidth",
              "kind": "field",
              "doc": "MaxWidth is the largest content width the user may resize the window to; 0 is no limit."
            },
            {
              "name": "MaxHeight",
              "anchor": "Window.MaxHeight",
              "kind": "field",
              "doc": "MaxHeight is the largest content height the user may resize the window to; 0 is no limit."
            },
            {
              "name": "Resizable",
              "anchor": "Window.Resizable",
              "kind": "field",
              "doc": "Resizable says whether the user may resize the window; nil defaults to true."
            },
            {
              "name": "Appearance",
              "anchor": "Window.Appearance",
              "kind": "field",
              "doc": "Appearance starts the app \"light\" or \"dark\" whatever the system's; empty follows the system. nsgo.yaml's appearance follows it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/quality",
      "name": "quality",
      "dir": "pkg/quality",
      "page": "pkg/quality",
      "synopsis": "Package quality picks a game's low, medium or high quality preset (resolution scale, particle budget, effects and shadows) from the device it runs on and the frame times it measures, and lets the player override the choice in settings.",
      "doc": "Package quality picks a game's low, medium or high quality preset (resolution scale, particle budget, effects and shadows) from the device it runs on and the frame times it measures, and lets the player override the choice in settings.\n\nA Config, written in YAML, holds the three presets, rules that place known device models, and how frame times move the level. A Selector starts at the level the Config gives the Device, steps down when frames run slower than the target and up when they keep well inside it, and holds whatever level the player picks instead of \"auto\".\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultTargetFPS",
              "anchor": "DefaultTargetFPS"
            },
            {
              "name": "DefaultWindowFrames",
              "anchor": "DefaultWindowFrames"
            },
            {
              "name": "DefaultUpgradeWindows",
              "anchor": "DefaultUpgradeWindows"
            }
          ],
          "decl": "const (\n\t// DefaultTargetFPS is the frame rate the Selector holds when Adapt.TargetFPS is 0.\n\tDefaultTargetFPS = 30\n\t// DefaultWindowFrames is how many frames the Selector judges at a time when Adapt.WindowFrames is 0.\n\tDefaultWindowFrames = 90\n\t// DefaultUpgradeWindows is how many fast windows in a row the Selector waits for before stepping up when Adapt.UpgradeWindows is 0.\n\tDefaultUpgradeWindows = 4\n)",
          "doc": "Defaults that apply when a Config's Adapt leaves a field at 0.\n",
          "file": "pkg/quality/config.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the schema version of the quality YAML file, the one ParseConfig accepts and EncodeConfig writes.\n",
          "file": "pkg/quality/config.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "SettingAuto",
              "anchor": "SettingAuto"
            }
          ],
          "decl": "const SettingAuto = \"auto\"",
          "doc": "SettingAuto is the setting that lets the Selector choose the level from the device and its frame times.\n",
          "file": "pkg/quality/quality.go",
          "line": 82
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "EncodeConfig",
          "anchor": "EncodeConfig",
          "decl": "func EncodeConfig(c Config) ([]byte, error)",
          "doc": "EncodeConfig validates c and writes it as deterministic 2-space YAML in field order, so a file read by ParseConfig and written back is unchanged.\n",
          "file": "pkg/quality/config.go",
          "line": 215
        },
        {
          "name": "NormalizeSetting",
          "anchor": "NormalizeSetting",
          "decl": "func NormalizeSetting(s string) (string, error)",
          "doc": "NormalizeSetting returns the canonical form of a player's quality setting: \"auto\" for s empty or \"auto\", or the name of the level s names, ignoring case and surrounding space. It returns an error for anything else.\n",
          "file": "pkg/quality/quality.go",
          "line": 85
        }
      ],
      "types": [
        {
          "name": "Adapt",
          "anchor": "Adapt",
          "decl": "type Adapt struct {\n\t// Off keeps the starting level for the whole run, ignoring frame times.\n\tOff bool `yaml:\"off,omitempty\"`\n\t// TargetFPS is the frame rate to hold, in [3, 240]; below 3 fps a slow frame would be longer than the half second past which the Selector ignores frames, so it could never step down. DefaultTargetFPS when 0. More than a quarter of a window's frames running slower steps the level down.\n\tTargetFPS int `yaml:\"target_fps,omitempty\"`\n\t// WindowFrames is how many frames the Selector judges at a time, in [10, 3600]; DefaultWindowFrames when 0.\n\tWindowFrames int `yaml:\"window_frames,omitempty\"`\n\t// UpgradeWindows is how many windows in a row must run with nine in ten frames inside 60% of the target frame time before the level steps up, in [1, 100]; DefaultUpgradeWindows when 0.\n\tUpgradeWindows int `yaml:\"upgrade_windows,omitempty\"`\n}",
          "doc": "Adapt controls how the Selector moves the level from measured frame times. Zero fields take the defaults.\n",
          "file": "pkg/quality/config.go",
          "line": 86,
          "members": [
            {
              "name": "Off",
              "anchor": "Adapt.Off",
              "kind": "field",
              "doc": "Off keeps the starting level for the whole run, ignoring frame times."
            },
            {
              "name": "TargetFPS",
              "anchor": "Adapt.TargetFPS",
              "kind": "field",
              "doc": "TargetFPS is the frame rate to hold, in [3, 240]; below 3 fps a slow frame would be longer than the half second past which the Selector ignores frames, so it could never step down. DefaultTargetFPS when 0. More than a quarter of a window's frames running slower steps the level down."
            },
            {
              "name": "WindowFrames",
              "anchor": "Adapt.WindowFrames",
              "kind": "field",
              "doc": "WindowFrames is how many frames the Selector judges at a time, in [10, 3600]; DefaultWindowFrames when 0."
            },
            {
              "name": "UpgradeWindows",
              "anchor": "Adapt.UpgradeWindows",
              "kind": "field",
              "doc": "UpgradeWindows is how many windows in a row must run with nine in ten frames inside 60% of the target frame time before the level steps up, in [1, 100]; DefaultUpgradeWindows when 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Config",
          "anchor": "Config",
          "decl": "type Config struct {\n\t// Version is the schema version; it must be FormatVersion.\n\tVersion int `yaml:\"version\"`\n\t// Presets holds the preset for each level.\n\tPresets Presets `yaml:\"presets\"`\n\t// Devices places device models at a starting level ahead of Classify's heuristic; the first rule that matches wins.\n\tDevices []DeviceRule `yaml:\"devices,omitempty\"`\n\t// Adapt controls how measured frame times move the level while the setting is auto.\n\tAdapt Adapt `yaml:\"adapt,omitempty\"`\n}",
          "doc": "Config is a game's quality configuration: its presets, the device rules that place known models, and how measured frame times move the level. It is written in YAML (see ParseConfig) and validated by Validate.\n",
          "file": "pkg/quality/config.go",
          "line": 31,
          "members": [
            {
              "name": "Version",
              "anchor": "Config.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be FormatVersion."
            },
            {
              "name": "Presets",
              "anchor": "Config.Presets",
              "kind": "field",
              "doc": "Presets holds the preset for each level."
            },
            {
              "name": "Devices",
              "anchor": "Config.Devices",
              "kind": "field",
              "doc": "Devices places device models at a starting level ahead of Classify's heuristic; the first rule that matches wins."
            },
            {
              "name": "Adapt",
              "anchor": "Config.Adapt",
              "kind": "field",
              "doc": "Adapt controls how measured frame times move the level while the setting is auto."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultConfig",
              "anchor": "DefaultConfig",
              "decl": "func DefaultConfig() Config",
              "doc": "DefaultConfig returns the built-in configuration: DefaultPreset for each level, no device rules and the default adaptation.\n",
              "file": "pkg/quality/config.go",
              "line": 119
            },
            {
              "name": "ParseConfig",
              "anchor": "ParseConfig",
              "decl": "func ParseConfig(data []byte) (Config, error)",
              "doc": "ParseConfig decodes a quality YAML document and validates it. Unknown fields, a missing or other version, and trailing documents are refused.\n",
              "file": "pkg/quality/config.go",
              "line": 191
            }
          ],
          "methods": [
            {
              "name": "StartLevel",
              "anchor": "Config.StartLevel",
              "recv": "Config",
              "decl": "func (c Config) StartLevel(d Device) Level",
              "doc": "StartLevel returns the level a device starts at: the level of the first device rule that matches it, else Classify's.\n",
              "file": "pkg/quality/config.go",
              "line": 127
            },
            {
              "name": "Validate",
              "anchor": "Config.Validate",
              "recv": "Config",
              "decl": "func (c Config) Validate() error",
              "doc": "Validate reports the first way c breaks the schema: a version other than FormatVersion, a preset scale outside (0, 1], a device rule with no model, an unknown OS or level or the same model and OS twice, or an adapt field out of range.\n",
              "file": "pkg/quality/config.go",
              "line": 139
            }
          ]
        },
        {
          "name": "Device",
          "anchor": "Device",
          "decl": "type Device struct {\n\t// OS is the operating system, such as core.OSAndroid; empty when unknown.\n\tOS core.OS\n\t// Idiom is the kind of device, such as core.IdiomPhone.\n\tIdiom core.Idiom\n\t// Model is the hardware model as core.Env.DeviceModel reports it, such as \"iPhone15,2\" or \"Google Pixel 8\"; empty when unknown.\n\tModel string\n\t// OSVersion is the operating system's version; on Android its Major is the API level.\n\tOSVersion core.OSVersion\n\t// CPUs is how many logical CPUs the process can use; 0 when unknown.\n\tCPUs int\n}",
          "doc": "Device describes the hardware a game runs on, as far as Classify needs it.\n",
          "file": "pkg/quality/device.go",
          "line": 12,
          "members": [
            {
              "name": "OS",
              "anchor": "Device.OS",
              "kind": "field",
              "doc": "OS is the operating system, such as core.OSAndroid; empty when unknown."
            },
            {
              "name": "Idiom",
              "anchor": "Device.Idiom",
              "kind": "field",
              "doc": "Idiom is the kind of device, such as core.IdiomPhone."
            },
            {
              "name": "Model",
              "anchor": "Device.Model",
              "kind": "field",
              "doc": "Model is the hardware model as core.Env.DeviceModel reports it, such as \"iPhone15,2\" or \"Google Pixel 8\"; empty when unknown."
            },
            {
              "name": "OSVersion",
              "anchor": "Device.OSVersion",
              "kind": "field",
              "doc": "OSVersion is the operating system's version; on Android its Major is the API level."
            },
            {
              "name": "CPUs",
              "anchor": "Device.CPUs",
              "kind": "field",
              "doc": "CPUs is how many logical CPUs the process can use; 0 when unknown."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DeviceFromEnv",
              "anchor": "DeviceFromEnv",
              "decl": "func DeviceFromEnv(env *core.Env) Device",
              "doc": "DeviceFromEnv returns the Device env describes, with CPUs from runtime.NumCPU.\n",
              "file": "pkg/quality/device.go",
              "line": 26
            }
          ],
          "methods": []
        },
        {
          "name": "DeviceRule",
          "anchor": "DeviceRule",
          "decl": "type DeviceRule struct {\n\t// Model is the start of core.Env.DeviceModel to match, such as \"Google Pixel 8\" or \"iPhone12,\".\n\tModel string `yaml:\"model\"`\n\t// OS limits the rule to one operating system, such as \"android\" or \"ios\"; empty matches any.\n\tOS core.OS `yaml:\"os,omitempty\"`\n\t// Level is the level matching devices start at.\n\tLevel Level `yaml:\"level\"`\n}",
          "doc": "DeviceRule starts devices whose model begins with Model, ignoring case, at Level, optionally only on one OS.\n",
          "file": "pkg/quality/config.go",
          "line": 65,
          "members": [
            {
              "name": "Model",
              "anchor": "DeviceRule.Model",
              "kind": "field",
              "doc": "Model is the start of core.Env.DeviceModel to match, such as \"Google Pixel 8\" or \"iPhone12,\"."
            },
            {
              "name": "OS",
              "anchor": "DeviceRule.OS",
              "kind": "field",
              "doc": "OS limits the rule to one operating system, such as \"android\" or \"ios\"; empty matches any."
            },
            {
              "name": "Level",
              "anchor": "DeviceRule.Level",
              "kind": "field",
              "doc": "Level is the level matching devices start at."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Matches",
              "anchor": "DeviceRule.Matches",
              "recv": "DeviceRule",
              "decl": "func (r DeviceRule) Matches(d Device) bool",
              "doc": "Matches reports whether d's model starts with r.Model, ignoring case, on r.OS when it is set.\n",
              "file": "pkg/quality/config.go",
              "line": 75
            }
          ]
        },
        {
          "name": "Level",
          "anchor": "Level",
          "decl": "type Level uint8",
          "doc": "Level is a quality tier, from Low to High.\n",
          "file": "pkg/quality/quality.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Low",
                  "anchor": "Low"
                },
                {
                  "name": "Medium",
                  "anchor": "Medium"
                },
                {
                  "name": "High",
                  "anchor": "High"
                }
              ],
              "decl": "const (\n\t// Low is the tier for low-end phones and anything that cannot hold its frame rate higher.\n\tLow Level = iota\n\t// Medium is the tier for mid-range devices and for hardware the Selector cannot place.\n\tMedium\n\t// High is the tier for capable desktops, recent phones and tablets.\n\tHigh\n)",
              "doc": "",
              "file": "pkg/quality/quality.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "Classify",
              "anchor": "Classify",
              "decl": "func Classify(d Device) Level",
              "doc": "Classify returns the level a device starts at when no device rule places it.\n\nAndroid starts Low, since NSGo reports neither its memory nor its GPU and core counts do not tell a budget phone from a flagship; measured frame times step it up. iPhones start High from the iPhone 13 (model iPhone14,x) on, Medium from the iPhone 11 (iPhone12,x) and Low before; iPads High from model iPad13,x on, Medium from iPad11,x and Low before. Desktops start High with 8 or more CPUs, Medium with 4 to 7 and Low with fewer. TVs and watches start Low, and the web and anything unknown start Medium.\n",
              "file": "pkg/quality/device.go",
              "line": 39
            },
            {
              "name": "Levels",
              "anchor": "Levels",
              "decl": "func Levels() []Level",
              "doc": "Levels returns every level from Low to High.\n",
              "file": "pkg/quality/quality.go",
              "line": 30
            },
            {
              "name": "ParseLevel",
              "anchor": "ParseLevel",
              "decl": "func ParseLevel(s string) (Level, error)",
              "doc": "ParseLevel returns the level named s (\"low\", \"medium\" or \"high\"), ignoring case and surrounding space.\n",
              "file": "pkg/quality/quality.go",
              "line": 50
            }
          ],
          "methods": [
            {
              "name": "MarshalText",
              "anchor": "Level.MarshalText",
              "recv": "Level",
              "decl": "func (l Level) MarshalText() ([]byte, error)",
              "doc": "MarshalText returns the level's name, so YAML and JSON write it as \"low\", \"medium\" or \"high\".\n",
              "file": "pkg/quality/quality.go",
              "line": 64
            },
            {
              "name": "String",
              "anchor": "Level.String",
              "recv": "Level",
              "decl": "func (l Level) String() string",
              "doc": "String returns the level's name: \"low\", \"medium\" or \"high\".\n",
              "file": "pkg/quality/quality.go",
              "line": 33
            },
            {
              "name": "UnmarshalText",
              "anchor": "Level.UnmarshalText",
              "recv": "*Level",
              "decl": "func (l *Level) UnmarshalText(text []byte) error",
              "doc": "UnmarshalText reads a level's name as ParseLevel does.\n",
              "file": "pkg/quality/quality.go",
              "line": 72
            },
            {
              "name": "Valid",
              "anchor": "Level.Valid",
              "recv": "Level",
              "decl": "func (l Level) Valid() bool",
              "doc": "Valid reports whether l is Low, Medium or High.\n",
              "file": "pkg/quality/quality.go",
              "line": 47
            }
          ]
        },
        {
          "name": "Preset",
          "anchor": "Preset",
          "decl": "type Preset struct {\n\t// ResolutionScale scales the resolution of buffers the game renders or rasterizes itself, such as render3d.OcclusionBuffer and procedurally drawn images, in (0, 1]. Read it through Scale and ScaleSize. It does not lower the resolution of a core.Canvas itself: NSGo v0.3.0 draws a canvas at the display's full pixel density and has no setting to render it smaller and upscale it. Nothing in this module applies it for the game; the game sizes its own buffers with it.\n\tResolutionScale float32 `yaml:\"resolution_scale\"`\n\t// ParticleScale scales particle budgets and burst counts, in (0, 1]. Read it through Particles.\n\tParticleScale float32 `yaml:\"particle_scale\"`\n\t// Effects turns on effects that only decorate the frame, such as screen flashes, parallax backdrops, post effects and trails.\n\tEffects bool `yaml:\"effects\"`\n\t// Shadows turns on shadow casting, such as lights2d's occluder clipping (lights2d.Scene.DisableShadows is its inverse).\n\tShadows bool `yaml:\"shadows\"`\n}",
          "doc": "Preset is what one quality level turns on and how far it scales the game's costs.\n",
          "file": "pkg/quality/quality.go",
          "line": 98,
          "members": [
            {
              "name": "ResolutionScale",
              "anchor": "Preset.ResolutionScale",
              "kind": "field",
              "doc": "ResolutionScale scales the resolution of buffers the game renders or rasterizes itself, such as render3d.OcclusionBuffer and procedurally drawn images, in (0, 1]. Read it through Scale and ScaleSize. It does not lower the resolution of a core.Canvas itself: NSGo v0.3.0 draws a canvas at the display's full pixel density and has no setting to render it smaller and upscale it. Nothing in this module applies it for the game; the game sizes its own buffers with it."
            },
            {
              "name": "ParticleScale",
              "anchor": "Preset.ParticleScale",
              "kind": "field",
              "doc": "ParticleScale scales particle budgets and burst counts, in (0, 1]. Read it through Particles."
            },
            {
              "name": "Effects",
              "anchor": "Preset.Effects",
              "kind": "field",
              "doc": "Effects turns on effects that only decorate the frame, such as screen flashes, parallax backdrops, post effects and trails."
            },
            {
              "name": "Shadows",
              "anchor": "Preset.Shadows",
              "kind": "field",
              "doc": "Shadows turns on shadow casting, such as lights2d's occluder clipping (lights2d.Scene.DisableShadows is its inverse)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultPreset",
              "anchor": "DefaultPreset",
              "decl": "func DefaultPreset(l Level) Preset",
              "doc": "DefaultPreset returns the built-in preset for l: Low renders at half resolution with a quarter of the particles and no effects or shadows, Medium at three quarters with 60% of the particles and effects, and High at full resolution with everything on. It returns the Medium preset for an invalid level.\n",
              "file": "pkg/quality/quality.go",
              "line": 110
            }
          ],
          "methods": [
            {
              "name": "Particles",
              "anchor": "Preset.Particles",
              "recv": "Preset",
              "decl": "func (p Preset) Particles(n int) int",
              "doc": "Particles returns n scaled by ParticleScale and rounded, at least 1 when n is positive, so it can set a particles.Emitter's MaxParticles (where 0 means the default of 256) or a Burst's count. It returns n unchanged when ParticleScale is not a valid scale, and 0 when n is not positive.\n",
              "file": "pkg/quality/quality.go",
              "line": 133
            },
            {
              "name": "Scale",
              "anchor": "Preset.Scale",
              "recv": "Preset",
              "decl": "func (p Preset) Scale(n int) int",
              "doc": "Scale returns n, a pixel count, scaled by ResolutionScale and rounded, at least 1 when n is positive. It returns n unchanged when ResolutionScale is not a valid scale, and 0 when n is not positive.\n",
              "file": "pkg/quality/quality.go",
              "line": 136
            },
            {
              "name": "ScaleSize",
              "anchor": "Preset.ScaleSize",
              "recv": "Preset",
              "decl": "func (p Preset) ScaleSize(size core.Size) core.Size",
              "doc": "ScaleSize returns size scaled by ResolutionScale, or size unchanged when ResolutionScale is not a valid scale.\n",
              "file": "pkg/quality/quality.go",
              "line": 139
            },
            {
              "name": "Validate",
              "anchor": "Preset.Validate",
              "recv": "Preset",
              "decl": "func (p Preset) Validate() error",
              "doc": "Validate reports an error when a scale is not finite or lies outside (0, 1].\n",
              "file": "pkg/quality/quality.go",
              "line": 122
            }
          ]
        },
        {
          "name": "Presets",
          "anchor": "Presets",
          "decl": "type Presets struct {\n\t// Low is the preset for Low.\n\tLow Preset `yaml:\"low\"`\n\t// Medium is the preset for Medium.\n\tMedium Preset `yaml:\"medium\"`\n\t// High is the preset for High.\n\tHigh Preset `yaml:\"high\"`\n}",
          "doc": "Presets holds one Preset per level.\n",
          "file": "pkg/quality/config.go",
          "line": 43,
          "members": [
            {
              "name": "Low",
              "anchor": "Presets.Low",
              "kind": "field",
              "doc": "Low is the preset for Low."
            },
            {
              "name": "Medium",
              "anchor": "Presets.Medium",
              "kind": "field",
              "doc": "Medium is the preset for Medium."
            },
            {
              "name": "High",
              "anchor": "Presets.High",
              "kind": "field",
              "doc": "High is the preset for High."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "For",
              "anchor": "Presets.For",
              "recv": "Presets",
              "decl": "func (p Presets) For(l Level) Preset",
              "doc": "For returns the preset for l, or Medium's for an invalid level.\n",
              "file": "pkg/quality/config.go",
              "line": 53
            }
          ]
        },
        {
          "name": "Selector",
          "anchor": "Selector",
          "decl": "type Selector struct {\n\t// OnChange, when set, is called with the new level and its preset whenever the level changes, from Observe or SetSetting.\n\tOnChange func(Level, Preset)\n\t// contains filtered or unexported fields\n}",
          "doc": "Selector chooses the quality level a game runs at: the level its Config gives the Device to start, moved by measured frame times while the setting is auto, or the level the player sets.\n\nFeed it each frame's length with Observe, for example from game.Loop.FrameTime. While auto, it judges frames a window at a time: when more than a quarter of a window's frames run slower than the target frame rate it steps down a level, and after Adapt.UpgradeWindows windows in a row with nine in ten frames inside 60% of the target frame time it steps up one. It never steps back up to a level it stepped down from, so it settles rather than swinging between two levels.\n\nA Selector is not safe for concurrent use; use it from the scope that runs the loop.\n",
          "file": "pkg/quality/selector.go",
          "line": 18,
          "members": [
            {
              "name": "OnChange",
              "anchor": "Selector.OnChange",
              "kind": "field",
              "doc": "OnChange, when set, is called with the new level and its preset whenever the level changes, from Observe or SetSetting."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSelector",
              "anchor": "NewSelector",
              "decl": "func NewSelector(cfg Config, d Device) (*Selector, error)",
              "doc": "NewSelector returns a Selector for d that starts at cfg.StartLevel(d) with the setting auto. It returns an error when cfg is not valid.\n",
              "file": "pkg/quality/selector.go",
              "line": 36
            }
          ],
          "methods": [
            {
              "name": "Auto",
              "anchor": "Selector.Auto",
              "recv": "*Selector",
              "decl": "func (s *Selector) Auto() bool",
              "doc": "Auto reports whether the setting is auto, so frame times move the level.\n",
              "file": "pkg/quality/selector.go",
              "line": 66
            },
            {
              "name": "Level",
              "anchor": "Selector.Level",
              "recv": "*Selector",
              "decl": "func (s *Selector) Level() Level",
              "doc": "Level returns the current level.\n",
              "file": "pkg/quality/selector.go",
              "line": 57
            },
            {
              "name": "Observe",
              "anchor": "Selector.Observe",
              "recv": "*Selector",
              "decl": "func (s *Selector) Observe(dt time.Duration) bool",
              "doc": "Observe records one frame's length and reports whether it changed the level. It does nothing while the setting holds a fixed level or Config.Adapt.Off is set, and ignores lengths that are not positive or longer than half a second.\n",
              "file": "pkg/quality/selector.go",
              "line": 95
            },
            {
              "name": "Preset",
              "anchor": "Selector.Preset",
              "recv": "*Selector",
              "decl": "func (s *Selector) Preset() Preset",
              "doc": "Preset returns the current level's preset.\n",
              "file": "pkg/quality/selector.go",
              "line": 60
            },
            {
              "name": "SetSetting",
              "anchor": "Selector.SetSetting",
              "recv": "*Selector",
              "decl": "func (s *Selector) SetSetting(setting string) error",
              "doc": "SetSetting applies a player's setting as NormalizeSetting reads it: \"auto\" (or empty) returns to the starting level and lets frame times move it again, and a level's name holds that level. It returns an error, changing nothing, for anything else.\n",
              "file": "pkg/quality/selector.go",
              "line": 77
            },
            {
              "name": "Setting",
              "anchor": "Selector.Setting",
              "recv": "*Selector",
              "decl": "func (s *Selector) Setting() string",
              "doc": "Setting returns the setting to store in the player's settings: \"auto\" or the fixed level's name.\n",
              "file": "pkg/quality/selector.go",
              "line": 69
            },
            {
              "name": "StartLevel",
              "anchor": "Selector.StartLevel",
              "recv": "*Selector",
              "decl": "func (s *Selector) StartLevel() Level",
              "doc": "StartLevel returns the level the device started at, the one auto returns to.\n",
              "file": "pkg/quality/selector.go",
              "line": 63
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/quest",
      "name": "quest",
      "dir": "pkg/quest",
      "page": "pkg/quest",
      "synopsis": "Package quest runs quests with objectives (collect, reach, defeat, talk), quest states and rewards, defined in a versioned YAML Book and advanced by game events.",
      "doc": "Package quest runs quests with objectives (collect, reach, defeat, talk), quest states and rewards, defined in a versioned YAML Book and advanced by game events.\n\nA Book is the text file a designer writes: each Quest lists its objectives, the quests it requires, whether its objectives run in order, and the rewards it grants. Parse refuses unknown fields and checks references and prerequisite cycles; Encode writes deterministic YAML that parses back to the same Book.\n\nA Log tracks one player's progress through a Book. Events (Collected, Reached, Defeated, Talked, or a plain Event) advance the objectives of active quests whose kind and target match; Attach wires a Log to a flow.Bus so those events can be published from anywhere in a game, and every change is reported as an Update. Snapshot and Restore turn a Log's progress into a JSON-friendly value that round-trips through save.Store.\n\nNothing in quest reads the wall clock, spawns goroutines or keeps package-level state, so a Log stays deterministic under nsgotest and replays.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the quest book schema version this package reads and writes.\n",
          "file": "pkg/quest/format.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "SnapshotVersion",
              "anchor": "SnapshotVersion"
            }
          ],
          "decl": "const SnapshotVersion = 1",
          "doc": "SnapshotVersion is the Snapshot schema version this package writes and reads.\n",
          "file": "pkg/quest/snapshot.go",
          "line": 10
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrUnknownQuest",
              "anchor": "ErrUnknownQuest"
            },
            {
              "name": "ErrUnknownObjective",
              "anchor": "ErrUnknownObjective"
            },
            {
              "name": "ErrNotStartable",
              "anchor": "ErrNotStartable"
            },
            {
              "name": "ErrNotActive",
              "anchor": "ErrNotActive"
            }
          ],
          "decl": "var (\n\t// ErrUnknownQuest reports a quest ID the Log's book does not define.\n\tErrUnknownQuest = errors.New(\"quest: unknown quest\")\n\t// ErrUnknownObjective reports an objective ID the quest does not define.\n\tErrUnknownObjective = errors.New(\"quest: unknown objective\")\n\t// ErrNotStartable reports that a quest cannot start: its prerequisites are incomplete, it is already active, or it completed and is not repeatable.\n\tErrNotStartable = errors.New(\"quest: quest cannot start\")\n\t// ErrNotActive reports an operation that needs an active quest (or an active objective) on one that is not.\n\tErrNotActive = errors.New(\"quest: quest is not active\")\n)",
          "doc": "",
          "file": "pkg/quest/log.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "ErrInvalidBook",
              "anchor": "ErrInvalidBook"
            }
          ],
          "decl": "var ErrInvalidBook = errors.New(\"quest: invalid book\")",
          "doc": "ErrInvalidBook reports that a quest book breaks the schema: a wrong version, a missing or duplicate ID, an unknown objective kind or reference, a negative count, or a prerequisite cycle.\n",
          "file": "pkg/quest/format.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ErrInvalidSnapshot",
              "anchor": "ErrInvalidSnapshot"
            }
          ],
          "decl": "var ErrInvalidSnapshot = errors.New(\"quest: invalid snapshot\")",
          "doc": "ErrInvalidSnapshot reports a Snapshot that Restore refuses: a wrong version, an unknown or duplicate quest or objective, progress outside an objective's range, or a combination of states and progress that a Log cannot reach.\n",
          "file": "pkg/quest/snapshot.go",
          "line": 13
        }
      ],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(b *Book) ([]byte, error)",
          "doc": "Encode validates b and writes it in canonical form: deterministic YAML with 2-space indentation, fields in declaration order, `requires` in flow style and everything else in block style, empty lists and zero values omitted, and no generated values. Parse(Encode(b)) equals b for a book from Parse, and Encode(Parse(f)) gives back f byte for byte when f is already canonical. A file that is not canonical comes back in canonical form, and YAML comments are not kept.\n",
          "file": "pkg/quest/format.go",
          "line": 183
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(b *Book) error",
          "doc": "Validate checks b against the schema: the version, unique non-empty IDs, known objective kinds with targets, non-negative counts and amounts, prerequisites that name other quests in the book, and no prerequisite cycles. Errors wrap ErrInvalidBook.\n",
          "file": "pkg/quest/format.go",
          "line": 201
        }
      ],
      "types": [
        {
          "name": "Book",
          "anchor": "Book",
          "decl": "type Book struct {\n\t// Version is the schema version; it must equal FormatVersion.\n\tVersion int `yaml:\"version\"`\n\t// Quests lists the book's quests; Log reports them in this order.\n\tQuests []Quest `yaml:\"quests,omitempty\"`\n}",
          "doc": "Book is the root of a versioned YAML quest file.\n",
          "file": "pkg/quest/format.go",
          "line": 44,
          "members": [
            {
              "name": "Version",
              "anchor": "Book.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal FormatVersion."
            },
            {
              "name": "Quests",
              "anchor": "Book.Quests",
              "kind": "field",
              "doc": "Quests lists the book's quests; Log reports them in this order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadFS",
              "anchor": "LoadFS",
              "decl": "func LoadFS(fsys fs.FS, name string) (*Book, error)",
              "doc": "LoadFS reads and parses the quest book at name in fsys.\n",
              "file": "pkg/quest/format.go",
              "line": 170
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Book, error)",
              "doc": "Parse decodes a YAML quest book and validates it. Unknown fields and trailing YAML documents are refused. An empty list, such as `requires: []`, decodes the same as an omitted one (nil), so a parsed book equals Parse(Encode(book)).\n",
              "file": "pkg/quest/format.go",
              "line": 129
            }
          ],
          "methods": [
            {
              "name": "Quest",
              "anchor": "Book.Quest",
              "recv": "*Book",
              "decl": "func (b *Book) Quest(id string) *Quest",
              "doc": "Quest returns the quest with the given ID, or nil when b has none.\n",
              "file": "pkg/quest/format.go",
              "line": 116
            }
          ]
        },
        {
          "name": "Collected",
          "anchor": "Collected",
          "decl": "type Collected struct {\n\tItem   string\n\tAmount int\n}",
          "doc": "Collected reports that the player picked up Amount of Item (below 1 counts as 1). It advances collect objectives whose target is Item.\n",
          "file": "pkg/quest/events.go",
          "line": 13,
          "members": [
            {
              "name": "Item",
              "anchor": "Collected.Item",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Amount",
              "anchor": "Collected.Amount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Event",
              "anchor": "Collected.Event",
              "recv": "Collected",
              "decl": "func (c Collected) Event() Event",
              "doc": "Event returns c as an Event.\n",
              "file": "pkg/quest/events.go",
              "line": 19
            }
          ]
        },
        {
          "name": "Defeated",
          "anchor": "Defeated",
          "decl": "type Defeated struct {\n\tEnemy  string\n\tAmount int\n}",
          "doc": "Defeated reports that the player defeated Amount of Enemy (below 1 counts as 1). It advances defeat objectives whose target is Enemy.\n",
          "file": "pkg/quest/events.go",
          "line": 30,
          "members": [
            {
              "name": "Enemy",
              "anchor": "Defeated.Enemy",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Amount",
              "anchor": "Defeated.Amount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Event",
              "anchor": "Defeated.Event",
              "recv": "Defeated",
              "decl": "func (d Defeated) Event() Event",
              "doc": "Event returns d as an Event.\n",
              "file": "pkg/quest/events.go",
              "line": 36
            }
          ]
        },
        {
          "name": "Event",
          "anchor": "Event",
          "decl": "type Event struct {\n\tKind   Kind\n\tTarget string\n\tAmount int\n}",
          "doc": "Event is a game event an objective can count: Kind and Target must match the objective's, and Amount below 1 counts as 1. Collected, Reached, Defeated and Talked are typed shorthands for it.\n",
          "file": "pkg/quest/events.go",
          "line": 6,
          "members": [
            {
              "name": "Kind",
              "anchor": "Event.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "Event.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Amount",
              "anchor": "Event.Amount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind string",
          "doc": "Kind is what an objective asks the player to do.\n",
          "file": "pkg/quest/format.go",
          "line": 21,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindCollect",
                  "anchor": "KindCollect"
                },
                {
                  "name": "KindReach",
                  "anchor": "KindReach"
                },
                {
                  "name": "KindDefeat",
                  "anchor": "KindDefeat"
                },
                {
                  "name": "KindTalk",
                  "anchor": "KindTalk"
                }
              ],
              "decl": "const (\n\t// KindCollect counts items picked up, matched by item ID (Collected events).\n\tKindCollect Kind = \"collect\"\n\t// KindReach completes when the player arrives at a place, matched by place ID (Reached events).\n\tKindReach Kind = \"reach\"\n\t// KindDefeat counts enemies defeated, matched by enemy ID (Defeated events).\n\tKindDefeat Kind = \"defeat\"\n\t// KindTalk completes when the player talks to a character, matched by character ID (Talked events).\n\tKindTalk Kind = \"talk\"\n)",
              "doc": "",
              "file": "pkg/quest/format.go",
              "line": 23
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "Kind.Valid",
              "recv": "Kind",
              "decl": "func (k Kind) Valid() bool",
              "doc": "Valid reports whether k is one of KindCollect, KindReach, KindDefeat or KindTalk.\n",
              "file": "pkg/quest/format.go",
              "line": 35
            }
          ]
        },
        {
          "name": "Log",
          "anchor": "Log",
          "decl": "type Log struct {\n\t// OnUpdate, when set, receives every Update in the order the changes happened.\n\tOnUpdate func(Update)\n\t// contains filtered or unexported fields\n}",
          "doc": "Log tracks one player's progress through a Book. Create it with NewLog.\n\nA Log is not safe for concurrent use; drive it from the game loop. Its methods may be called from OnUpdate and bus handlers: updates raised by such nested calls are delivered after the current ones, in order.\n",
          "file": "pkg/quest/log.go",
          "line": 165,
          "members": [
            {
              "name": "OnUpdate",
              "anchor": "Log.OnUpdate",
              "kind": "field",
              "doc": "OnUpdate, when set, receives every Update in the order the changes happened."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLog",
              "anchor": "NewLog",
              "decl": "func NewLog(book *Book) (*Log, error)",
              "doc": "NewLog validates book and returns a Log with every quest Inactive. The Log keeps its own copy of book, so later changes to book do not affect it.\n",
              "file": "pkg/quest/log.go",
              "line": 182
            }
          ],
          "methods": [
            {
              "name": "Abandon",
              "anchor": "Log.Abandon",
              "recv": "*Log",
              "decl": "func (l *Log) Abandon(id string) error",
              "doc": "Abandon marks an active quest Abandoned and drops its progress. An abandoned quest stays abandoned, through StartReady and through a save, until Start begins it again.\n",
              "file": "pkg/quest/log.go",
              "line": 317
            },
            {
              "name": "Attach",
              "anchor": "Log.Attach",
              "recv": "*Log",
              "decl": "func (l *Log) Attach(bus *flow.Bus) (detach func())",
              "doc": "Attach subscribes l to Event, Collected, Reached, Defeated and Talked events published on bus, and publishes every Update on bus as well as delivering it to OnUpdate. Attaching again replaces the previous bus. The returned function detaches l and is idempotent.\n",
              "file": "pkg/quest/events.go",
              "line": 47
            },
            {
              "name": "Book",
              "anchor": "Log.Book",
              "recv": "*Log",
              "decl": "func (l *Log) Book() *Book",
              "doc": "Book returns a copy of the book the Log runs.\n",
              "file": "pkg/quest/log.go",
              "line": 216
            },
            {
              "name": "CanStart",
              "anchor": "Log.CanStart",
              "recv": "*Log",
              "decl": "func (l *Log) CanStart(id string) bool",
              "doc": "CanStart reports whether Start(id) would succeed.\n",
              "file": "pkg/quest/log.go",
              "line": 242
            },
            {
              "name": "Fail",
              "anchor": "Log.Fail",
              "recv": "*Log",
              "decl": "func (l *Log) Fail(id string) error",
              "doc": "Fail marks an active quest Failed, keeping its progress for display until it starts again.\n",
              "file": "pkg/quest/log.go",
              "line": 305
            },
            {
              "name": "Handle",
              "anchor": "Log.Handle",
              "recv": "*Log",
              "decl": "func (l *Log) Handle(e Event) bool",
              "doc": "Handle advances every active objective whose kind and target match e by e.Amount (below 1 counts as 1), completing objectives and quests that reach their counts, and reports whether anything changed. In an ordered quest, an event that completes one objective does not also count toward the next.\n",
              "file": "pkg/quest/log.go",
              "line": 394
            },
            {
              "name": "Objective",
              "anchor": "Log.Objective",
              "recv": "*Log",
              "decl": "func (l *Log) Objective(questID, objectiveID string) (status ObjectiveStatus, ok bool)",
              "doc": "Objective returns the status of one objective; ok is false when the quest or objective is unknown.\n",
              "file": "pkg/quest/log.go",
              "line": 365
            },
            {
              "name": "Objectives",
              "anchor": "Log.Objectives",
              "recv": "*Log",
              "decl": "func (l *Log) Objectives(id string) []ObjectiveStatus",
              "doc": "Objectives returns the status of each of the quest's objectives in definition order, or nil for an unknown ID.\n",
              "file": "pkg/quest/log.go",
              "line": 342
            },
            {
              "name": "Quests",
              "anchor": "Log.Quests",
              "recv": "*Log",
              "decl": "func (l *Log) Quests(s State) []string",
              "doc": "Quests returns the IDs of the quests in state s, in book order.\n",
              "file": "pkg/quest/log.go",
              "line": 231
            },
            {
              "name": "Restore",
              "anchor": "Log.Restore",
              "recv": "*Log",
              "decl": "func (l *Log) Restore(s Snapshot) error",
              "doc": "Restore replaces l's progress with s, which must come from a Log running the same book. It checks s first and leaves l unchanged when s is invalid (errors wrap ErrInvalidSnapshot). Restore delivers no updates and starts no quests; call StartReady afterwards if the book has auto-start quests.\n\nBesides IDs and ranges, Restore refuses progress a Log cannot reach: a recorded quest whose prerequisite is unrecorded, or is not Completed when it is not Repeatable (a completed prerequisite stays completed unless it repeats); an abandoned quest with progress; progress on an objective of an ordered quest while an earlier required objective is incomplete; and an active quest whose required objectives are all complete.\n\nThe zero Snapshot (version 0 and no quests) means no progress: Restore resets every quest to Inactive. That is what a save slot written before the game tracked quests decodes to.\n\nA snapshot written before a content change that removes a quest or objective, lowers a count, adds a prerequisite, or turns objectives optional so an active quest would already be complete is refused; migrate it with a save.Migration.\n",
              "file": "pkg/quest/snapshot.go",
              "line": 63
            },
            {
              "name": "SetProgress",
              "anchor": "Log.SetProgress",
              "recv": "*Log",
              "decl": "func (l *Log) SetProgress(questID, objectiveID string, n int) error",
              "doc": "SetProgress sets an active objective's progress to n, clamped to [0, Required], completing it and its quest when n reaches the count. Use it to mirror a value the game already tracks, such as how many of an item the inventory holds. It fails with ErrNotActive when the quest is not active or the objective is locked or already completed.\n",
              "file": "pkg/quest/log.go",
              "line": 421
            },
            {
              "name": "Snapshot",
              "anchor": "Log.Snapshot",
              "recv": "*Log",
              "decl": "func (l *Log) Snapshot() Snapshot",
              "doc": "Snapshot returns l's progress. It shares no memory with l.\n",
              "file": "pkg/quest/snapshot.go",
              "line": 34
            },
            {
              "name": "Start",
              "anchor": "Log.Start",
              "recv": "*Log",
              "decl": "func (l *Log) Start(id string) error",
              "doc": "Start makes the quest active with no progress. It fails with ErrNotStartable while a prerequisite is incomplete, while the quest is active, or after it completed unless it is Repeatable; a failed or abandoned quest can start again.\n",
              "file": "pkg/quest/log.go",
              "line": 266
            },
            {
              "name": "StartReady",
              "anchor": "Log.StartReady",
              "recv": "*Log",
              "decl": "func (l *Log) StartReady() int",
              "doc": "StartReady starts every AutoStart quest that is Inactive (never started, so not Failed or Abandoned) and whose prerequisites are complete, in book order, and returns how many started. A Log calls it after every quest completion; call it yourself once after NewLog or Restore so quests with no prerequisites begin.\n",
              "file": "pkg/quest/log.go",
              "line": 287
            },
            {
              "name": "State",
              "anchor": "Log.State",
              "recv": "*Log",
              "decl": "func (l *Log) State(id string) State",
              "doc": "State returns the quest's state; an unknown ID reports Inactive.\n",
              "file": "pkg/quest/log.go",
              "line": 222
            }
          ]
        },
        {
          "name": "Objective",
          "anchor": "Objective",
          "decl": "type Objective struct {\n\t// ID uniquely identifies the objective within its quest and in saves.\n\tID string `yaml:\"id\"`\n\t// Kind is what the objective asks for.\n\tKind Kind `yaml:\"kind\"`\n\t// Target is the item, place, enemy or character ID that events must name to advance the objective.\n\tTarget string `yaml:\"target\"`\n\t// Count is how many matching events (or how much collected) complete the objective; 0 means 1.\n\tCount int `yaml:\"count,omitempty\"`\n\t// Optional objectives never block the quest's completion or, in an ordered quest, later objectives.\n\tOptional bool `yaml:\"optional,omitempty\"`\n\t// Text is the objective's journal line or a localization key; the package does not interpret it.\n\tText string `yaml:\"text,omitempty\"`\n}",
          "doc": "Objective is one goal of a quest.\n",
          "file": "pkg/quest/format.go",
          "line": 74,
          "members": [
            {
              "name": "ID",
              "anchor": "Objective.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the objective within its quest and in saves."
            },
            {
              "name": "Kind",
              "anchor": "Objective.Kind",
              "kind": "field",
              "doc": "Kind is what the objective asks for."
            },
            {
              "name": "Target",
              "anchor": "Objective.Target",
              "kind": "field",
              "doc": "Target is the item, place, enemy or character ID that events must name to advance the objective."
            },
            {
              "name": "Count",
              "anchor": "Objective.Count",
              "kind": "field",
              "doc": "Count is how many matching events (or how much collected) complete the objective; 0 means 1."
            },
            {
              "name": "Optional",
              "anchor": "Objective.Optional",
              "kind": "field",
              "doc": "Optional objectives never block the quest's completion or, in an ordered quest, later objectives."
            },
            {
              "name": "Text",
              "anchor": "Objective.Text",
              "kind": "field",
              "doc": "Text is the objective's journal line or a localization key; the package does not interpret it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Required",
              "anchor": "Objective.Required",
              "recv": "Objective",
              "decl": "func (o Objective) Required() int",
              "doc": "Required returns how many units complete o: Count, or 1 when Count is 0.\n",
              "file": "pkg/quest/format.go",
              "line": 90
            }
          ]
        },
        {
          "name": "ObjectiveState",
          "anchor": "ObjectiveState",
          "decl": "type ObjectiveState uint8",
          "doc": "ObjectiveState is where an objective stands within its quest.\n",
          "file": "pkg/quest/log.go",
          "line": 68,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ObjectiveLocked",
                  "anchor": "ObjectiveLocked"
                },
                {
                  "name": "ObjectiveActive",
                  "anchor": "ObjectiveActive"
                },
                {
                  "name": "ObjectiveDone",
                  "anchor": "ObjectiveDone"
                }
              ],
              "decl": "const (\n\t// ObjectiveLocked objectives ignore events: their quest is not active, or in an ordered quest an earlier required objective is incomplete.\n\tObjectiveLocked ObjectiveState = iota\n\t// ObjectiveActive objectives accept matching events.\n\tObjectiveActive\n\t// ObjectiveDone objectives reached their required count.\n\tObjectiveDone\n)",
              "doc": "",
              "file": "pkg/quest/log.go",
              "line": 70
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ObjectiveState.String",
              "recv": "ObjectiveState",
              "decl": "func (s ObjectiveState) String() string",
              "doc": "String returns the objective state's lowercase name, such as \"locked\".\n",
              "file": "pkg/quest/log.go",
              "line": 82
            }
          ]
        },
        {
          "name": "ObjectiveStatus",
          "anchor": "ObjectiveStatus",
          "decl": "type ObjectiveStatus struct {\n\t// ID, Kind, Target, Optional and Text repeat the objective's definition.\n\tID       string\n\tKind     Kind\n\tTarget   string\n\tOptional bool\n\tText     string\n\t// Progress is how many units have been counted, from 0 to Required.\n\tProgress int\n\t// Required is how many units complete the objective.\n\tRequired int\n\t// State is whether the objective is locked, active or done.\n\tState ObjectiveState\n}",
          "doc": "ObjectiveStatus is a read-only view of one objective's progress.\n",
          "file": "pkg/quest/log.go",
          "line": 90,
          "members": [
            {
              "name": "ID",
              "anchor": "ObjectiveStatus.ID",
              "kind": "field",
              "doc": "ID, Kind, Target, Optional and Text repeat the objective's definition."
            },
            {
              "name": "Kind",
              "anchor": "ObjectiveStatus.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Target",
              "anchor": "ObjectiveStatus.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Optional",
              "anchor": "ObjectiveStatus.Optional",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "ObjectiveStatus.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Progress",
              "anchor": "ObjectiveStatus.Progress",
              "kind": "field",
              "doc": "Progress is how many units have been counted, from 0 to Required."
            },
            {
              "name": "Required",
              "anchor": "ObjectiveStatus.Required",
              "kind": "field",
              "doc": "Required is how many units complete the objective."
            },
            {
              "name": "State",
              "anchor": "ObjectiveStatus.State",
              "kind": "field",
              "doc": "State is whether the objective is locked, active or done."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Quest",
          "anchor": "Quest",
          "decl": "type Quest struct {\n\t// ID uniquely identifies the quest within the book and in saves.\n\tID string `yaml:\"id\"`\n\t// Title is the quest's display name or a localization key; the package does not interpret it.\n\tTitle string `yaml:\"title,omitempty\"`\n\t// Description is the quest's journal text or a localization key; the package does not interpret it.\n\tDescription string `yaml:\"description,omitempty\"`\n\t// Requires lists the IDs of quests that must be completed before this one can start.\n\tRequires []string `yaml:\"requires,omitempty,flow\"`\n\t// AutoStart starts the quest as soon as its prerequisites are complete, on Log.StartReady and after every quest completion.\n\tAutoStart bool `yaml:\"autoStart,omitempty\"`\n\t// Repeatable lets Log.Start begin the quest again after it completed.\n\tRepeatable bool `yaml:\"repeatable,omitempty\"`\n\t// Ordered makes objectives advance one at a time in list order: an objective accepts events only once every required objective before it is complete.\n\tOrdered bool `yaml:\"ordered,omitempty\"`\n\t// Objectives are the quest's goals; the quest completes when every non-optional one is complete. At least one is required.\n\tObjectives []Objective `yaml:\"objectives\"`\n\t// Rewards are reported in the QuestCompleted update for the game to grant.\n\tRewards []Reward `yaml:\"rewards,omitempty\"`\n}",
          "doc": "Quest is one quest: its objectives, prerequisites and rewards.\n",
          "file": "pkg/quest/format.go",
          "line": 52,
          "members": [
            {
              "name": "ID",
              "anchor": "Quest.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the quest within the book and in saves."
            },
            {
              "name": "Title",
              "anchor": "Quest.Title",
              "kind": "field",
              "doc": "Title is the quest's display name or a localization key; the package does not interpret it."
            },
            {
              "name": "Description",
              "anchor": "Quest.Description",
              "kind": "field",
              "doc": "Description is the quest's journal text or a localization key; the package does not interpret it."
            },
            {
              "name": "Requires",
              "anchor": "Quest.Requires",
              "kind": "field",
              "doc": "Requires lists the IDs of quests that must be completed before this one can start."
            },
            {
              "name": "AutoStart",
              "anchor": "Quest.AutoStart",
              "kind": "field",
              "doc": "AutoStart starts the quest as soon as its prerequisites are complete, on Log.StartReady and after every quest completion."
            },
            {
              "name": "Repeatable",
              "anchor": "Quest.Repeatable",
              "kind": "field",
              "doc": "Repeatable lets Log.Start begin the quest again after it completed."
            },
            {
              "name": "Ordered",
              "anchor": "Quest.Ordered",
              "kind": "field",
              "doc": "Ordered makes objectives advance one at a time in list order: an objective accepts events only once every required objective before it is complete."
            },
            {
              "name": "Objectives",
              "anchor": "Quest.Objectives",
              "kind": "field",
              "doc": "Objectives are the quest's goals; the quest completes when every non-optional one is complete. At least one is required."
            },
            {
              "name": "Rewards",
              "anchor": "Quest.Rewards",
              "kind": "field",
              "doc": "Rewards are reported in the QuestCompleted update for the game to grant."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "QuestRecord",
          "anchor": "QuestRecord",
          "decl": "type QuestRecord struct {\n\t// ID is the quest's ID.\n\tID string `json:\"id\" yaml:\"id\"`\n\t// State is Active, Completed, Failed or Abandoned.\n\tState State `json:\"state\" yaml:\"state\"`\n\t// Progress maps objective IDs to their progress; objectives with no progress are left out.\n\tProgress map[string]int `json:\"progress,omitempty\" yaml:\"progress,omitempty\"`\n}",
          "doc": "QuestRecord is one quest's state and objective progress in a Snapshot.\n",
          "file": "pkg/quest/snapshot.go",
          "line": 24,
          "members": [
            {
              "name": "ID",
              "anchor": "QuestRecord.ID",
              "kind": "field",
              "doc": "ID is the quest's ID."
            },
            {
              "name": "State",
              "anchor": "QuestRecord.State",
              "kind": "field",
              "doc": "State is Active, Completed, Failed or Abandoned."
            },
            {
              "name": "Progress",
              "anchor": "QuestRecord.Progress",
              "kind": "field",
              "doc": "Progress maps objective IDs to their progress; objectives with no progress are left out."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Reached",
          "anchor": "Reached",
          "decl": "type Reached struct {\n\tPlace string\n}",
          "doc": "Reached reports that the player arrived at Place. It advances reach objectives whose target is Place.\n",
          "file": "pkg/quest/events.go",
          "line": 22,
          "members": [
            {
              "name": "Place",
              "anchor": "Reached.Place",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Event",
              "anchor": "Reached.Event",
              "recv": "Reached",
              "decl": "func (r Reached) Event() Event",
              "doc": "Event returns r as an Event.\n",
              "file": "pkg/quest/events.go",
              "line": 27
            }
          ]
        },
        {
          "name": "Reward",
          "anchor": "Reward",
          "decl": "type Reward struct {\n\t// Kind optionally groups rewards for the game, such as \"item\", \"xp\" or \"gold\"; the package does not interpret it.\n\tKind string `yaml:\"kind,omitempty\"`\n\t// ID names the rewarded thing.\n\tID string `yaml:\"id\"`\n\t// Amount is how many are granted; 0 means 1.\n\tAmount int `yaml:\"amount,omitempty\"`\n}",
          "doc": "Reward is something a completed quest grants. The package reports rewards and never grants them, so they can name inventory items, stats, currency or anything else a game defines.\n",
          "file": "pkg/quest/format.go",
          "line": 98,
          "members": [
            {
              "name": "Kind",
              "anchor": "Reward.Kind",
              "kind": "field",
              "doc": "Kind optionally groups rewards for the game, such as \"item\", \"xp\" or \"gold\"; the package does not interpret it."
            },
            {
              "name": "ID",
              "anchor": "Reward.ID",
              "kind": "field",
              "doc": "ID names the rewarded thing."
            },
            {
              "name": "Amount",
              "anchor": "Reward.Amount",
              "kind": "field",
              "doc": "Amount is how many are granted; 0 means 1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Quantity",
              "anchor": "Reward.Quantity",
              "recv": "Reward",
              "decl": "func (r Reward) Quantity() int",
              "doc": "Quantity returns how many r grants: Amount, or 1 when Amount is 0.\n",
              "file": "pkg/quest/format.go",
              "line": 108
            }
          ]
        },
        {
          "name": "Snapshot",
          "anchor": "Snapshot",
          "decl": "type Snapshot struct {\n\t// Version is SnapshotVersion.\n\tVersion int `json:\"version\" yaml:\"version\"`\n\t// Quests holds every quest that is not Inactive, in book order.\n\tQuests []QuestRecord `json:\"quests,omitempty\" yaml:\"quests,omitempty\"`\n}",
          "doc": "Snapshot is a Log's progress as plain data that encodes to stable JSON or YAML, for storing in a save slot with save.Store.\n",
          "file": "pkg/quest/snapshot.go",
          "line": 16,
          "members": [
            {
              "name": "Version",
              "anchor": "Snapshot.Version",
              "kind": "field",
              "doc": "Version is SnapshotVersion."
            },
            {
              "name": "Quests",
              "anchor": "Snapshot.Quests",
              "kind": "field",
              "doc": "Quests holds every quest that is not Inactive, in book order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "State",
          "anchor": "State",
          "decl": "type State uint8",
          "doc": "State is where a quest stands in a Log.\n",
          "file": "pkg/quest/log.go",
          "line": 23,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Inactive",
                  "anchor": "Inactive"
                },
                {
                  "name": "Active",
                  "anchor": "Active"
                },
                {
                  "name": "Completed",
                  "anchor": "Completed"
                },
                {
                  "name": "Failed",
                  "anchor": "Failed"
                },
                {
                  "name": "Abandoned",
                  "anchor": "Abandoned"
                }
              ],
              "decl": "const (\n\t// Inactive quests have not started.\n\tInactive State = iota\n\t// Active quests accept events for their objectives.\n\tActive\n\t// Completed quests finished every required objective.\n\tCompleted\n\t// Failed quests were failed by the game with Log.Fail; Start can retry them.\n\tFailed\n\t// Abandoned quests were dropped by the player with Log.Abandon. Auto-start never restarts them; Start can.\n\tAbandoned\n)",
              "doc": "",
              "file": "pkg/quest/log.go",
              "line": 25
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalText",
              "anchor": "State.MarshalText",
              "recv": "State",
              "decl": "func (s State) MarshalText() ([]byte, error)",
              "doc": "MarshalText encodes s as its name, so saves read \"active\" rather than a number.\n",
              "file": "pkg/quest/log.go",
              "line": 49
            },
            {
              "name": "String",
              "anchor": "State.String",
              "recv": "State",
              "decl": "func (s State) String() string",
              "doc": "String returns the state's lowercase name, such as \"active\".\n",
              "file": "pkg/quest/log.go",
              "line": 41
            },
            {
              "name": "UnmarshalText",
              "anchor": "State.UnmarshalText",
              "recv": "*State",
              "decl": "func (s *State) UnmarshalText(text []byte) error",
              "doc": "UnmarshalText decodes a state name written by MarshalText.\n",
              "file": "pkg/quest/log.go",
              "line": 57
            }
          ]
        },
        {
          "name": "Talked",
          "anchor": "Talked",
          "decl": "type Talked struct {\n\tCharacter string\n}",
          "doc": "Talked reports that the player talked to Character. It advances talk objectives whose target is Character.\n",
          "file": "pkg/quest/events.go",
          "line": 39,
          "members": [
            {
              "name": "Character",
              "anchor": "Talked.Character",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Event",
              "anchor": "Talked.Event",
              "recv": "Talked",
              "decl": "func (t Talked) Event() Event",
              "doc": "Event returns t as an Event.\n",
              "file": "pkg/quest/events.go",
              "line": 44
            }
          ]
        },
        {
          "name": "Update",
          "anchor": "Update",
          "decl": "type Update struct {\n\t// Kind says what changed.\n\tKind UpdateKind\n\t// Quest is the quest's ID.\n\tQuest string\n\t// Objective is the objective's ID for ObjectiveProgressed and ObjectiveCompleted, and empty otherwise.\n\tObjective string\n\t// Progress and Required are the objective's progress after the change, for ObjectiveProgressed and ObjectiveCompleted.\n\tProgress int\n\tRequired int\n\t// Rewards is a copy of the quest's rewards for QuestCompleted, and nil otherwise.\n\tRewards []Reward\n}",
          "doc": "Update reports one change in a Log. A Log delivers updates to OnUpdate and, while attached, publishes them on its flow.Bus.\n",
          "file": "pkg/quest/log.go",
          "line": 134,
          "members": [
            {
              "name": "Kind",
              "anchor": "Update.Kind",
              "kind": "field",
              "doc": "Kind says what changed."
            },
            {
              "name": "Quest",
              "anchor": "Update.Quest",
              "kind": "field",
              "doc": "Quest is the quest's ID."
            },
            {
              "name": "Objective",
              "anchor": "Update.Objective",
              "kind": "field",
              "doc": "Objective is the objective's ID for ObjectiveProgressed and ObjectiveCompleted, and empty otherwise."
            },
            {
              "name": "Progress",
              "anchor": "Update.Progress",
              "kind": "field",
              "doc": "Progress and Required are the objective's progress after the change, for ObjectiveProgressed and ObjectiveCompleted."
            },
            {
              "name": "Required",
              "anchor": "Update.Required",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rewards",
              "anchor": "Update.Rewards",
              "kind": "field",
              "doc": "Rewards is a copy of the quest's rewards for QuestCompleted, and nil otherwise."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UpdateKind",
          "anchor": "UpdateKind",
          "decl": "type UpdateKind uint8",
          "doc": "UpdateKind says what changed in an Update.\n",
          "file": "pkg/quest/log.go",
          "line": 106,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "QuestStarted",
                  "anchor": "QuestStarted"
                },
                {
                  "name": "ObjectiveProgressed",
                  "anchor": "ObjectiveProgressed"
                },
                {
                  "name": "ObjectiveCompleted",
                  "anchor": "ObjectiveCompleted"
                },
                {
                  "name": "QuestCompleted",
                  "anchor": "QuestCompleted"
                },
                {
                  "name": "QuestFailed",
                  "anchor": "QuestFailed"
                },
                {
                  "name": "QuestAbandoned",
                  "anchor": "QuestAbandoned"
                }
              ],
              "decl": "const (\n\t// QuestStarted reports that a quest became active, from Start or an auto-start.\n\tQuestStarted UpdateKind = iota + 1\n\t// ObjectiveProgressed reports that an objective's progress changed.\n\tObjectiveProgressed\n\t// ObjectiveCompleted reports that an objective reached its required count.\n\tObjectiveCompleted\n\t// QuestCompleted reports that a quest completed; Update.Rewards holds what the game should grant.\n\tQuestCompleted\n\t// QuestFailed reports that a quest failed through Log.Fail.\n\tQuestFailed\n\t// QuestAbandoned reports that an active quest became Abandoned through Log.Abandon.\n\tQuestAbandoned\n)",
              "doc": "",
              "file": "pkg/quest/log.go",
              "line": 108
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "UpdateKind.String",
              "recv": "UpdateKind",
              "decl": "func (k UpdateKind) String() string",
              "doc": "String returns the update kind's name, such as \"questCompleted\".\n",
              "file": "pkg/quest/log.go",
              "line": 126
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/random",
      "name": "random",
      "dir": "pkg/random",
      "page": "pkg/random",
      "synopsis": "Package random provides deterministic, cross-platform pseudo-random streams, procedural noise generators, and helpers for verifying simulation determinism.",
      "doc": "Package random provides deterministic, cross-platform pseudo-random streams, procedural noise generators, and helpers for verifying simulation determinism.\n\nEach Stream implements Xoshiro256** seeded through SplitMix64 with fixed, specification-stable arithmetic, so a given seed produces the exact same sequence of bits, integers and floats on every Go version, operating system and architecture.\n\nNoise provides deterministic 2D and 3D value and simplex noise, multi-octave fractals (FBM, ridged, billow, domain warping), and zero-allocation 2D grid-fill helpers using pure integer hashing and explicit IEEE-754 float64 arithmetic for bit-identical procedural generation across arm64, x86_64 and WebAssembly.\n\nA game derives independent child streams by name with Fork or keeps them together in Streams, snapshots and restores generator state for saves and replays with State and SetState, and tests simulation repeatability with CompareRuns, CheckSteps and AssertDeterministic.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "AssertDeterministic",
          "anchor": "AssertDeterministic",
          "decl": "func AssertDeterministic[S any](t testing.TB, runs int, run func() S)",
          "doc": "AssertDeterministic runs run runs times from scratch and fails t with both\ndiverging states if any run produces a different result from the first.\n",
          "file": "pkg/random/determinism.go",
          "line": 46
        },
        {
          "name": "AssertDeterministicSteps",
          "anchor": "AssertDeterministicSteps",
          "decl": "func AssertDeterministicSteps[S any](t testing.TB, steps int, makeSim func() func(step int) S, equal func(a, b S) bool)",
          "doc": "AssertDeterministicSteps fails t if independent runs of makeSim diverge on\nany of the first steps steps, reporting the first divergent step and both states.\n",
          "file": "pkg/random/determinism.go",
          "line": 113
        },
        {
          "name": "CheckSteps",
          "anchor": "CheckSteps",
          "decl": "func CheckSteps[S any](steps int, makeSim func() func(step int) S, equal func(a, b S) bool) (firstDivergentStep int, a, b S, ok bool)",
          "doc": "CheckSteps creates a fresh simulation with makeSim and runs it for steps steps\nmultiple times, returning the earliest 0-based step where two runs diverge\nalong with both states. If equal is nil, reflect.DeepEqual is used.\n\nWhen all runs match on every step (or steps <= 0), CheckSteps returns\n(-1, zero, zero, true).\n",
          "file": "pkg/random/determinism.go",
          "line": 59
        },
        {
          "name": "CheckStepsRuns",
          "anchor": "CheckStepsRuns",
          "decl": "func CheckStepsRuns[S any](runs, steps int, makeSim func() func(step int) S, equal func(a, b S) bool) (firstDivergentStep int, a, b S, ok bool)",
          "doc": "CheckStepsRuns is like CheckSteps but executes runs independent runs from\nscratch (at least 2).\n",
          "file": "pkg/random/determinism.go",
          "line": 65
        },
        {
          "name": "Pick",
          "anchor": "Pick",
          "decl": "func Pick[T any](s *Stream, items []T) T",
          "doc": "Pick returns a uniformly chosen element of items.\nIt panics if items is empty.\n",
          "file": "pkg/random/stream.go",
          "line": 278
        },
        {
          "name": "Shuffle",
          "anchor": "Shuffle",
          "decl": "func Shuffle[T any](s *Stream, items []T)",
          "doc": "Shuffle randomly permutes items in place using the Fisher-Yates algorithm.\n",
          "file": "pkg/random/stream.go",
          "line": 286
        }
      ],
      "types": [
        {
          "name": "FractalConfig",
          "anchor": "FractalConfig",
          "decl": "type FractalConfig struct {\n\t// Octaves is the number of noise layers to combine (default 4).\n\tOctaves int\n\t// Frequency is the starting coordinate scale (default 1).\n\tFrequency float64\n\t// Lacunarity multiplies frequency on each subsequent octave (default 2).\n\tLacunarity float64\n\t// Persistence multiplies amplitude on each subsequent octave (default 0.5).\n\tPersistence float64\n\t// Gain controls ridged multifractal weight feedback (default 2) and acts as\n\t// an amplitude-decay fallback for FBM/Billow when Persistence <= 0.\n\tGain float64\n}",
          "doc": "FractalConfig configures multi-octave fractal noise evaluation.\nZero or negative values fall back to sensible defaults:\nOctaves=4, Frequency=1, Lacunarity=2, Persistence=0.5 (or Gain when set for\nFBM/Billow), and Gain=2 for Ridged multifractal weighting.\n",
          "file": "pkg/random/noise.go",
          "line": 66,
          "members": [
            {
              "name": "Octaves",
              "anchor": "FractalConfig.Octaves",
              "kind": "field",
              "doc": "Octaves is the number of noise layers to combine (default 4)."
            },
            {
              "name": "Frequency",
              "anchor": "FractalConfig.Frequency",
              "kind": "field",
              "doc": "Frequency is the starting coordinate scale (default 1)."
            },
            {
              "name": "Lacunarity",
              "anchor": "FractalConfig.Lacunarity",
              "kind": "field",
              "doc": "Lacunarity multiplies frequency on each subsequent octave (default 2)."
            },
            {
              "name": "Persistence",
              "anchor": "FractalConfig.Persistence",
              "kind": "field",
              "doc": "Persistence multiplies amplitude on each subsequent octave (default 0.5)."
            },
            {
              "name": "Gain",
              "anchor": "FractalConfig.Gain",
              "kind": "field",
              "doc": "Gain controls ridged multifractal weight feedback (default 2) and acts as\nan amplitude-decay fallback for FBM/Billow when Persistence <= 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultFractalConfig",
              "anchor": "DefaultFractalConfig",
              "decl": "func DefaultFractalConfig() FractalConfig",
              "doc": "DefaultFractalConfig returns a FractalConfig populated with standard defaults\nsuitable for terrain, clouds, and procedural textures.\n",
              "file": "pkg/random/noise.go",
              "line": 82
            }
          ],
          "methods": []
        },
        {
          "name": "Mismatch",
          "anchor": "Mismatch",
          "decl": "type Mismatch[S any] struct {\n\t// Run is the 0-based index of the run that diverged from run 0.\n\tRun int\n\t// First is the result produced by run 0.\n\tFirst S\n\t// Other is the result produced by the diverging run.\n\tOther S\n}",
          "doc": "Mismatch describes the first run whose result differed from the baseline run.\n",
          "file": "pkg/random/determinism.go",
          "line": 11,
          "members": [
            {
              "name": "Run",
              "anchor": "Mismatch.Run",
              "kind": "field",
              "doc": "Run is the 0-based index of the run that diverged from run 0."
            },
            {
              "name": "First",
              "anchor": "Mismatch.First",
              "kind": "field",
              "doc": "First is the result produced by run 0."
            },
            {
              "name": "Other",
              "anchor": "Mismatch.Other",
              "kind": "field",
              "doc": "Other is the result produced by the diverging run."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CompareRuns",
              "anchor": "CompareRuns",
              "decl": "func CompareRuns[S any](runs int, run func() S, equal func(a, b S) bool) (Mismatch[S], bool)",
              "doc": "CompareRuns executes run runs times from scratch and checks that every run\nequals the first. If equal is nil, reflect.DeepEqual is used. If runs < 2,\nCompareRuns runs twice.\n\nIt returns a zero Mismatch and true when all runs agree, or the first mismatch\nand false when a run diverges.\n",
              "file": "pkg/random/determinism.go",
              "line": 26
            }
          ],
          "methods": []
        },
        {
          "name": "Noise",
          "anchor": "Noise",
          "decl": "type Noise struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Noise is a deterministic, cross-platform procedural noise generator seeded\nthrough SplitMix64.\n\nAll lookups use pure integer hashing and explicit IEEE-754 float64 arithmetic\n(without runtime transcendental functions or fused multiply-add contraction),\nproducing bit-identical outputs across arm64, x86_64 and WebAssembly.\n\nConstruct a Noise instance with NewNoise. Once constructed, Noise is\nimmutable and safe for concurrent use by multiple goroutines.\n",
          "file": "pkg/random/noise.go",
          "line": 101,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNoise",
              "anchor": "NewNoise",
              "decl": "func NewNoise(seed uint64) *Noise",
              "doc": "NewNoise returns a deterministic Noise generator seeded with seed.\n",
              "file": "pkg/random/noise.go",
              "line": 109
            }
          ],
          "methods": [
            {
              "name": "Billow2D",
              "anchor": "Noise.Billow2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) Billow2D(x, y float64, cfg FractalConfig) float64",
              "doc": "Billow2D evaluates normalized 2D billow fractal noise using Simplex2D,\nproducing soft cloud-like lobes in [-1, 1].\n",
              "file": "pkg/random/noise.go",
              "line": 420
            },
            {
              "name": "DomainWarp2D",
              "anchor": "Noise.DomainWarp2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) DomainWarp2D(x, y, strength float64, cfg FractalConfig) (wx, wy float64)",
              "doc": "DomainWarp2D displaces (x, y) by two decorrelated 2D FBM fields scaled by\nstrength, returning the warped coordinates (wx, wy). Passing (wx, wy) to\nanother noise method (or chaining multiple DomainWarp2D calls) creates\norganic swirls, marble and distorted terrain features.\n",
              "file": "pkg/random/noise.go",
              "line": 438
            },
            {
              "name": "FBM2D",
              "anchor": "Noise.FBM2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) FBM2D(x, y float64, cfg FractalConfig) float64",
              "doc": "FBM2D evaluates normalized 2D fractal Brownian motion using Simplex2D,\nreturning a value in [-1, 1].\n",
              "file": "pkg/random/noise.go",
              "line": 340
            },
            {
              "name": "FBM3D",
              "anchor": "Noise.FBM3D",
              "recv": "*Noise",
              "decl": "func (n *Noise) FBM3D(x, y, z float64, cfg FractalConfig) float64",
              "doc": "FBM3D evaluates normalized 3D fractal Brownian motion using Simplex3D,\nreturning a value in [-1, 1].\n",
              "file": "pkg/random/noise.go",
              "line": 355
            },
            {
              "name": "FillFBM2D",
              "anchor": "Noise.FillFBM2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) FillFBM2D(dst []float64, width, height int, originX, originY, stepX, stepY float64, cfg FractalConfig)",
              "doc": "FillFBM2D populates dst in row-major order with 2D FBM simplex noise samples\nat (originX+gx*stepX, originY+gy*stepY) without heap allocations.\n",
              "file": "pkg/random/noise.go",
              "line": 524
            },
            {
              "name": "FillGrid2D",
              "anchor": "Noise.FillGrid2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) FillGrid2D(dst []float64, width, height int, originX, originY, stepX, stepY float64, sample func(x, y float64) float64)",
              "doc": "FillGrid2D populates dst in row-major order (dst[gy*width+gx]) with samples\nproduced by sample at coordinates (originX+gx*stepX, originY+gy*stepY).\n\nIt performs zero heap allocations. If width <= 0 or height <= 0, FillGrid2D\nis a no-op. It panics if sample is nil or len(dst) < width*height.\n",
              "file": "pkg/random/noise.go",
              "line": 467
            },
            {
              "name": "FillSimplex2D",
              "anchor": "Noise.FillSimplex2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) FillSimplex2D(dst []float64, width, height int, originX, originY, stepX, stepY float64)",
              "doc": "FillSimplex2D populates dst in row-major order with 2D simplex noise samples\nat (originX+gx*stepX, originY+gy*stepY) without heap allocations.\n",
              "file": "pkg/random/noise.go",
              "line": 506
            },
            {
              "name": "FillValue2D",
              "anchor": "Noise.FillValue2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) FillValue2D(dst []float64, width, height int, originX, originY, stepX, stepY float64)",
              "doc": "FillValue2D populates dst in row-major order with 2D value noise samples at\n(originX+gx*stepX, originY+gy*stepY) without heap allocations.\n",
              "file": "pkg/random/noise.go",
              "line": 488
            },
            {
              "name": "Fork",
              "anchor": "Noise.Fork",
              "recv": "*Noise",
              "decl": "func (n *Noise) Fork(purpose string) *Noise",
              "doc": "Fork derives an independent, deterministic child Noise generator for purpose\n(such as \"elevation\", \"moisture\" or \"caves\") from n's seed.\n",
              "file": "pkg/random/noise.go",
              "line": 146
            },
            {
              "name": "Ridged2D",
              "anchor": "Noise.Ridged2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) Ridged2D(x, y float64, cfg FractalConfig) float64",
              "doc": "Ridged2D evaluates normalized 2D ridged multifractal noise using Simplex2D,\nreturning a value in [0, 1] with sharp ridge crests near 1 and valleys near 0.\n",
              "file": "pkg/random/noise.go",
              "line": 370
            },
            {
              "name": "Ridged3D",
              "anchor": "Noise.Ridged3D",
              "recv": "*Noise",
              "decl": "func (n *Noise) Ridged3D(x, y, z float64, cfg FractalConfig) float64",
              "doc": "Ridged3D evaluates normalized 3D ridged multifractal noise using Simplex3D,\nreturning a value in [0, 1] with sharp ridge crests near 1 and valleys near 0.\n",
              "file": "pkg/random/noise.go",
              "line": 395
            },
            {
              "name": "Seed",
              "anchor": "Noise.Seed",
              "recv": "*Noise",
              "decl": "func (n *Noise) Seed() uint64",
              "doc": "Seed returns the seed that initialized n.\n",
              "file": "pkg/random/noise.go",
              "line": 140
            },
            {
              "name": "Simplex2D",
              "anchor": "Noise.Simplex2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) Simplex2D(x, y float64) float64",
              "doc": "Simplex2D evaluates 2D simplex gradient noise at (x, y), returning a value in [-1, 1].\n",
              "file": "pkg/random/noise.go",
              "line": 201
            },
            {
              "name": "Simplex3D",
              "anchor": "Noise.Simplex3D",
              "recv": "*Noise",
              "decl": "func (n *Noise) Simplex3D(x, y, z float64) float64",
              "doc": "Simplex3D evaluates 3D simplex gradient noise at (x, y, z), returning a value in [-1, 1].\n",
              "file": "pkg/random/noise.go",
              "line": 252
            },
            {
              "name": "Value2D",
              "anchor": "Noise.Value2D",
              "recv": "*Noise",
              "decl": "func (n *Noise) Value2D(x, y float64) float64",
              "doc": "Value2D evaluates smooth 2D lattice value noise at (x, y), returning a value in [-1, 1].\n",
              "file": "pkg/random/noise.go",
              "line": 151
            },
            {
              "name": "Value3D",
              "anchor": "Noise.Value3D",
              "recv": "*Noise",
              "decl": "func (n *Noise) Value3D(x, y, z float64) float64",
              "doc": "Value3D evaluates smooth 3D lattice value noise at (x, y, z), returning a value in [-1, 1].\n",
              "file": "pkg/random/noise.go",
              "line": 170
            }
          ]
        },
        {
          "name": "State",
          "anchor": "State",
          "decl": "type State struct {\n\t// Seed is the seed that initialized the stream.\n\tSeed uint64 `json:\"seed\"`\n\t// S is the internal 256-bit Xoshiro256** generator state.\n\tS [4]uint64 `json:\"s\"`\n}",
          "doc": "State is a JSON-marshalable snapshot of a Stream, suitable for save files and replays.\n",
          "file": "pkg/random/stream.go",
          "line": 53,
          "members": [
            {
              "name": "Seed",
              "anchor": "State.Seed",
              "kind": "field",
              "doc": "Seed is the seed that initialized the stream."
            },
            {
              "name": "S",
              "anchor": "State.S",
              "kind": "field",
              "doc": "S is the internal 256-bit Xoshiro256** generator state."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Stream",
          "anchor": "Stream",
          "decl": "type Stream struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Stream is a deterministic pseudo-random number generator backed by Xoshiro256**\nseeded through SplitMix64.\n\nIts output is identical across Go versions, operating systems and architectures.\nIts zero value behaves as New(0). A Stream is not safe for concurrent use by\nmultiple goroutines; fork a separate stream for each independent consumer.\n",
          "file": "pkg/random/stream.go",
          "line": 66,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(seed uint64) *Stream",
              "doc": "New returns a new Stream seeded with seed.\n",
              "file": "pkg/random/stream.go",
              "line": 72
            }
          ],
          "methods": [
            {
              "name": "Bool",
              "anchor": "Stream.Bool",
              "recv": "*Stream",
              "decl": "func (s *Stream) Bool() bool",
              "doc": "Bool returns a uniformly distributed boolean.\n",
              "file": "pkg/random/stream.go",
              "line": 230
            },
            {
              "name": "Chance",
              "anchor": "Stream.Chance",
              "recv": "*Stream",
              "decl": "func (s *Stream) Chance(p float64) bool",
              "doc": "Chance reports whether an event with probability p in [0, 1] occurs.\nIt returns false when p <= 0 or p is NaN, and true when p >= 1.\n",
              "file": "pkg/random/stream.go",
              "line": 236
            },
            {
              "name": "Float32",
              "anchor": "Stream.Float32",
              "recv": "*Stream",
              "decl": "func (s *Stream) Float32() float32",
              "doc": "Float32 returns a uniformly distributed float32 in [0, 1) with 24 bits of precision.\n",
              "file": "pkg/random/stream.go",
              "line": 193
            },
            {
              "name": "Float64",
              "anchor": "Stream.Float64",
              "recv": "*Stream",
              "decl": "func (s *Stream) Float64() float64",
              "doc": "Float64 returns a uniformly distributed float64 in [0, 1) with 53 bits of precision.\n",
              "file": "pkg/random/stream.go",
              "line": 188
            },
            {
              "name": "Fork",
              "anchor": "Stream.Fork",
              "recv": "*Stream",
              "decl": "func (s *Stream) Fork(purpose string) *Stream",
              "doc": "Fork derives an independent, deterministic child stream for purpose\n(such as \"loot\", \"particles\", \"ai\" or \"level-1\") from s's seed.\n\nFork does not advance s or perturb sibling streams, so forking names in any\norder always produces the same child streams.\n",
              "file": "pkg/random/stream.go",
              "line": 100
            },
            {
              "name": "IntRange",
              "anchor": "Stream.IntRange",
              "recv": "*Stream",
              "decl": "func (s *Stream) IntRange(min, max int) int",
              "doc": "IntRange returns a uniformly distributed integer in [min, max], inclusive.\nIt returns min when min == max and panics if min > max.\n",
              "file": "pkg/random/stream.go",
              "line": 173
            },
            {
              "name": "Intn",
              "anchor": "Stream.Intn",
              "recv": "*Stream",
              "decl": "func (s *Stream) Intn(n int) int",
              "doc": "Intn returns a uniformly distributed integer in [0, n).\nIt panics if n <= 0.\n",
              "file": "pkg/random/stream.go",
              "line": 164
            },
            {
              "name": "Range",
              "anchor": "Stream.Range",
              "recv": "*Stream",
              "decl": "func (s *Stream) Range(min, max float64) float64",
              "doc": "Range returns a uniformly distributed float64 in [min, max).\nIt returns min when min == max and panics if min > max or either bound is NaN.\n",
              "file": "pkg/random/stream.go",
              "line": 199
            },
            {
              "name": "Range32",
              "anchor": "Stream.Range32",
              "recv": "*Stream",
              "decl": "func (s *Stream) Range32(min, max float32) float32",
              "doc": "Range32 returns a uniformly distributed float32 in [min, max).\nIt returns min when min == max and panics if min > max or either bound is NaN.\n",
              "file": "pkg/random/stream.go",
              "line": 215
            },
            {
              "name": "Reset",
              "anchor": "Stream.Reset",
              "recv": "*Stream",
              "decl": "func (s *Stream) Reset()",
              "doc": "Reset rewinds s to the beginning of its seed's sequence.\n",
              "file": "pkg/random/stream.go",
              "line": 91
            },
            {
              "name": "Seed",
              "anchor": "Stream.Seed",
              "recv": "*Stream",
              "decl": "func (s *Stream) Seed() uint64",
              "doc": "Seed returns the seed that initialized s.\n",
              "file": "pkg/random/stream.go",
              "line": 80
            },
            {
              "name": "SetSeed",
              "anchor": "Stream.SetSeed",
              "recv": "*Stream",
              "decl": "func (s *Stream) SetSeed(seed uint64)",
              "doc": "SetSeed re-seeds s with seed and rewinds it to the beginning of seed's sequence.\n",
              "file": "pkg/random/stream.go",
              "line": 85
            },
            {
              "name": "SetState",
              "anchor": "Stream.SetState",
              "recv": "*Stream",
              "decl": "func (s *Stream) SetState(st State)",
              "doc": "SetState restores s from a snapshot returned by State.\nIf st.S is all zero, the generator state is re-derived from st.Seed.\n",
              "file": "pkg/random/stream.go",
              "line": 115
            },
            {
              "name": "State",
              "anchor": "Stream.State",
              "recv": "*Stream",
              "decl": "func (s *Stream) State() State",
              "doc": "State returns a snapshot of s that can be serialized and passed to SetState\nto resume the exact same future sequence.\n",
              "file": "pkg/random/stream.go",
              "line": 106
            },
            {
              "name": "Uint32",
              "anchor": "Stream.Uint32",
              "recv": "*Stream",
              "decl": "func (s *Stream) Uint32() uint32",
              "doc": "Uint32 returns a uniformly distributed pseudo-random uint32 taken from the\nupper 32 bits of Uint64.\n",
              "file": "pkg/random/stream.go",
              "line": 144
            },
            {
              "name": "Uint64",
              "anchor": "Stream.Uint64",
              "recv": "*Stream",
              "decl": "func (s *Stream) Uint64() uint64",
              "doc": "Uint64 returns a uniformly distributed pseudo-random uint64.\n",
              "file": "pkg/random/stream.go",
              "line": 125
            },
            {
              "name": "WeightedIndex",
              "anchor": "Stream.WeightedIndex",
              "recv": "*Stream",
              "decl": "func (s *Stream) WeightedIndex(weights []float64) int",
              "doc": "WeightedIndex returns an index into weights chosen with probability proportional\nto its weight. It returns -1 when weights is empty or every weight is 0, and\nnever returns an index whose weight is 0.\n\nIt panics if any weight is negative, NaN or infinite, or if the sum overflows.\n",
              "file": "pkg/random/stream.go",
              "line": 245
            }
          ]
        },
        {
          "name": "Streams",
          "anchor": "Streams",
          "decl": "type Streams struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Streams manages named child streams derived from a single master seed.\n\nEach name always resolves to the same independent stream regardless of the\norder in which streams are requested or advanced.\n",
          "file": "pkg/random/stream.go",
          "line": 297,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewStreams",
              "anchor": "NewStreams",
              "decl": "func NewStreams(masterSeed uint64) *Streams",
              "doc": "NewStreams returns a Streams manager rooted at masterSeed.\n",
              "file": "pkg/random/stream.go",
              "line": 303
            }
          ],
          "methods": [
            {
              "name": "Reset",
              "anchor": "Streams.Reset",
              "recv": "*Streams",
              "decl": "func (m *Streams) Reset()",
              "doc": "Reset rewinds the root stream and every stream already obtained from m back\nto its initial state.\n",
              "file": "pkg/random/stream.go",
              "line": 337
            },
            {
              "name": "Restore",
              "anchor": "Streams.Restore",
              "recv": "*Streams",
              "decl": "func (m *Streams) Restore(states map[string]State)",
              "doc": "Restore restores m's streams from a snapshot returned by States.\nStreams present in states are created if not yet requested; existing streams\nmissing from states are reset to their initial state.\n",
              "file": "pkg/random/stream.go",
              "line": 356
            },
            {
              "name": "Seed",
              "anchor": "Streams.Seed",
              "recv": "*Streams",
              "decl": "func (m *Streams) Seed() uint64",
              "doc": "Seed returns the master seed.\n",
              "file": "pkg/random/stream.go",
              "line": 311
            },
            {
              "name": "SetSeed",
              "anchor": "Streams.SetSeed",
              "recv": "*Streams",
              "decl": "func (m *Streams) SetSeed(masterSeed uint64)",
              "doc": "SetSeed re-seeds m with masterSeed and re-derives every named stream already\nobtained from m so existing references draw from the new master seed.\n",
              "file": "pkg/random/stream.go",
              "line": 317
            },
            {
              "name": "States",
              "anchor": "Streams.States",
              "recv": "*Streams",
              "decl": "func (m *Streams) States() map[string]State",
              "doc": "States returns a JSON-marshalable snapshot of every stream currently held by m.\n",
              "file": "pkg/random/stream.go",
              "line": 345
            },
            {
              "name": "Stream",
              "anchor": "Streams.Stream",
              "recv": "*Streams",
              "decl": "func (m *Streams) Stream(name string) *Stream",
              "doc": "Stream returns the named child stream, creating it on first use by forking\nfrom the master seed.\n",
              "file": "pkg/random/stream.go",
              "line": 326
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/refs",
      "name": "refs",
      "dir": "pkg/refs",
      "page": "pkg/refs",
      "synopsis": "Package refs keeps the references between a game project's files working when files are renamed or moved: it finds every reference, rewrites the ones a move breaks, and finds a file again after it was moved without the tools.",
      "doc": "Package refs keeps the references between a game project's files working when files are renamed or moved: it finds every reference, rewrites the ones a move breaks, and finds a file again after it was moved without the tools.\n\n# References\n\nScan reads a project and lists every reference one of its files makes to another, with the file, line and column that holds it:\n\n  - game.yaml (project.FileName): every path project.PathRefs lists, the autoloaded scenes and resources and the assets section's inputs, outputs and cache, some of which name folders (Ref.Dir) or what game assets writes (Ref.Output), which need not exist; a game.yaml that project.Parse refuses is a Problem, and none of its paths are read;\n  - scenes (sceneformat), the files named *.scene.yaml or *.scene.yml and every other YAML file a reference names as a scene: the scene a scene inherits, the navigation mesh file a scene names (navMesh, which game navmesh writes and so need not exist, Ref.Output), the scene an object instances, path-valued prefab references (FieldPrefab, while bare prefab names stay resolver names), an object's material, model and gridMap and an override's prefab, material, model and gridMap, and a tilemap's source and the YAML tileset a layered tilemap names (tilesetFile);\n  - prefabs, the files named *.prefab.yaml or *.prefab.yml (KindPrefab): the prefab they inherit (FieldInherits), scene/prefab/material/model/gridMap/particle/animator/skeletal references, and nested layers if scene-shaped;\n  - data tables (KindDataTable), YAML files whose row sequences hold path references to project files (FieldDataTable);\n  - YAML tilesets (tilemap.TilesetDoc), the files named *.tileset.yaml or *.tileset.yml: the grid image their tiles are cut from;\n  - 3D grid maps (world3d), the files named *.gridmap.yaml or *.gridmap.yml and every other YAML file a scene names in gridMap: the glTF mesh library named in meshLibrary;\n  - cutscenes (cutscene), the files named *.cutscene.yaml or *.cutscene.yml: the scene a timeline cutscene plays against, a video cutscene's project-relative source path, and the audio source paths on sound and music tracks;\n  - screens (gameui), the files named *.screen.yaml or *.screen.yml: each node's sprite path (FieldScreenSprite) and localization textKey (FieldTextKey in Project.TextKeys);\n  - localization string tables (l10n), versioned YAML string tables holding locale and strings/plurals maps: each message key definition (FieldStringKey and FieldPluralKey in Project.TextKeys);\n  - resource files (resource), YAML files whose header has a resource type: a material's texture;\n  - Tiled maps (.tmj) and tilesets (.tsj, and .json files a map names as its external tileset): external tilesets, tileset and tile images and image layers;\n  - sprite atlases, JSON files with top-level frames and meta objects: the page image in meta.image;\n  - LDtk projects (.ldtk): tileset images, level backgrounds and levels saved in separate files;\n  - glTF models in JSON form (.gltf): buffers and images kept in separate files rather than in data URIs or a .glb.\n\nA path in game.yaml, a scene, a YAML tileset or a resource file is relative to the project root, the nearest directory above the file that holds game.yaml, nsgo.yaml or go.mod, or the scanned directory when none does. A path in a Tiled, LDtk or glTF file is relative to that file's directory, as those tools write it. Atlas, tileset and prefab names in scenes are names an AssetResolver looks up, not paths, and are not references to a file; nor is an object's mesh, which names a built-in primitive, or the node or mesh of its model, which name parts inside the model file. The shader and texture paths of a hot-reloaded shader material (hotreload.MaterialDef) are not read either: they are relative to the asset directory a game gives its reloaders at run time, not to the project root.\n\n# Stable IDs and the Index\n\nEvery scene and resource file carries a stable ID in its header, a uid field (sceneformat.SceneDoc.UID, resource.Header.UID) that a tool writes once with resource.NewUID and that never changes, so it travels with the file through any rename or move. An empty or null uid is read as none, as the loaders read it. A uid is unique within one project root; separate projects, such as two games made from one template, may share one. The project index, IndexFileName at the project root, records where each file was the last time a tool looked: each scene and resource file's path with its uid, and each other file a reference names, such as an image or a Tiled map, with the SHA-256 of its contents. It is a YAML file the tools keep (Index), written in a fixed order so that it changes only when files do, and it belongs in version control with the files it describes.\n\nWhen a reference names a file that is gone, Project.Moved looks the old path up in the index and finds the file again: the scene or resource file that now holds the same uid, or the one file elsewhere in the project with the same extension and contents that the index does not list. game check reports the broken reference with its file and line and where the file went.\n\n# Moving Files\n\nPlanMove plans the move of a file or directory and the rewrite of every reference to what it moves, the moved files' own relative references included, and PlanIndex plans what game index does: point every broken reference whose file Moved finds at the file's new path, give every scene and resource file without a uid a new one, give a copied file that shares its original's uid a new one, and bring each index up to date. A Plan only describes the changes, so a caller can show them first; Plan.Apply makes them in a directory on disk. A reference is rewritten in place, keeping the rest of its file byte for byte, comments and formatting included, and a uid is added as one line after the file's version, so a move shows in review as the lines it changes. The game mv and game index commands and the editor's MoveFile, which its file browser calls and Undo takes back, run these.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FieldAutoloadScene",
              "anchor": "FieldAutoloadScene"
            },
            {
              "name": "FieldAutoloadResource",
              "anchor": "FieldAutoloadResource"
            },
            {
              "name": "FieldInherits",
              "anchor": "FieldInherits"
            },
            {
              "name": "FieldNavMesh",
              "anchor": "FieldNavMesh"
            },
            {
              "name": "FieldScene",
              "anchor": "FieldScene"
            },
            {
              "name": "FieldPrefab",
              "anchor": "FieldPrefab"
            },
            {
              "name": "FieldDataTable",
              "anchor": "FieldDataTable"
            },
            {
              "name": "FieldMaterial",
              "anchor": "FieldMaterial"
            },
            {
              "name": "FieldModel",
              "anchor": "FieldModel"
            },
            {
              "name": "FieldGridMap",
              "anchor": "FieldGridMap"
            },
            {
              "name": "FieldMeshLibrary",
              "anchor": "FieldMeshLibrary"
            },
            {
              "name": "FieldStates",
              "anchor": "FieldStates"
            },
            {
              "name": "FieldClip",
              "anchor": "FieldClip"
            },
            {
              "name": "FieldParticles",
              "anchor": "FieldParticles"
            },
            {
              "name": "FieldSkyHDR",
              "anchor": "FieldSkyHDR"
            },
            {
              "name": "FieldReflectionProbe",
              "anchor": "FieldReflectionProbe"
            },
            {
              "name": "FieldLightProbeGrid",
              "anchor": "FieldLightProbeGrid"
            },
            {
              "name": "FieldTilemapSource",
              "anchor": "FieldTilemapSource"
            },
            {
              "name": "FieldTilesetFile",
              "anchor": "FieldTilesetFile"
            },
            {
              "name": "FieldTexture",
              "anchor": "FieldTexture"
            },
            {
              "name": "FieldExternalTileset",
              "anchor": "FieldExternalTileset"
            },
            {
              "name": "FieldTilesetImage",
              "anchor": "FieldTilesetImage"
            },
            {
              "name": "FieldTileImage",
              "anchor": "FieldTileImage"
            },
            {
              "name": "FieldImageLayer",
              "anchor": "FieldImageLayer"
            },
            {
              "name": "FieldLevelBackground",
              "anchor": "FieldLevelBackground"
            },
            {
              "name": "FieldExternalLevel",
              "anchor": "FieldExternalLevel"
            },
            {
              "name": "FieldAtlasImage",
              "anchor": "FieldAtlasImage"
            },
            {
              "name": "FieldModelBuffer",
              "anchor": "FieldModelBuffer"
            },
            {
              "name": "FieldModelImage",
              "anchor": "FieldModelImage"
            },
            {
              "name": "FieldCutsceneSource",
              "anchor": "FieldCutsceneSource"
            },
            {
              "name": "FieldCutsceneAudio",
              "anchor": "FieldCutsceneAudio"
            },
            {
              "name": "FieldSkeletalRig",
              "anchor": "FieldSkeletalRig"
            },
            {
              "name": "FieldScreenSprite",
              "anchor": "FieldScreenSprite"
            },
            {
              "name": "FieldTextKey",
              "anchor": "FieldTextKey"
            },
            {
              "name": "FieldStringKey",
              "anchor": "FieldStringKey"
            },
            {
              "name": "FieldPluralKey",
              "anchor": "FieldPluralKey"
            },
            {
              "name": "FieldTerrainHeightmap",
              "anchor": "FieldTerrainHeightmap"
            },
            {
              "name": "FieldTerrainSplatMap",
              "anchor": "FieldTerrainSplatMap"
            },
            {
              "name": "FieldTerrainWeightMap",
              "anchor": "FieldTerrainWeightMap"
            },
            {
              "name": "FieldTerrainTexture",
              "anchor": "FieldTerrainTexture"
            },
            {
              "name": "FieldTerrainMesh",
              "anchor": "FieldTerrainMesh"
            },
            {
              "name": "FieldTerrainDensity",
              "anchor": "FieldTerrainDensity"
            }
          ],
          "decl": "const (\n\tFieldAutoloadScene    = project.FieldAutoloadScene\n\tFieldAutoloadResource = project.FieldAutoloadResource\n\tFieldInherits         = \"inherits\"\n\tFieldNavMesh          = \"navigation mesh\"\n\tFieldScene            = \"scene\"\n\tFieldPrefab           = \"prefab\"\n\tFieldDataTable        = \"data table\"\n\tFieldMaterial         = \"material\"\n\tFieldModel            = \"model\"\n\tFieldGridMap          = \"grid map\"\n\tFieldMeshLibrary      = \"mesh library\"\n\tFieldStates           = \"states\"\n\tFieldClip             = \"clip\"\n\tFieldParticles        = \"particles\"\n\tFieldSkyHDR           = \"sky hdr\"\n\tFieldReflectionProbe  = \"reflection probe cubemap\"\n\tFieldLightProbeGrid   = \"light probe grid\"\n\tFieldTilemapSource    = \"tilemap source\"\n\tFieldTilesetFile      = \"tileset file\"\n\tFieldTexture          = \"texture\"\n\tFieldExternalTileset  = \"external tileset\"\n\tFieldTilesetImage     = \"tileset image\"\n\tFieldTileImage        = \"tile image\"\n\tFieldImageLayer       = \"image layer\"\n\tFieldLevelBackground  = \"level background\"\n\tFieldExternalLevel    = \"external level\"\n\tFieldAtlasImage       = \"atlas image\"\n\tFieldModelBuffer      = \"model buffer\"\n\tFieldModelImage       = \"model image\"\n\tFieldCutsceneSource   = \"cutscene source\"\n\tFieldCutsceneAudio    = \"cutscene audio\"\n\t// FieldSkeletalRig is a .skel.yaml rig path referenced by an object's \"skeletal\" component.\n\tFieldSkeletalRig = \"skeletal rig\"\n\t// FieldScreenSprite is a sprite image or atlas path referenced by a *.screen.yaml node.\n\tFieldScreenSprite = \"sprite\"\n\t// FieldTextKey is a localization text key referenced by a *.screen.yaml node.\n\tFieldTextKey = \"text key\"\n\t// FieldStringKey is a localization string entry key in a YAML string table.\n\tFieldStringKey = \"string key\"\n\t// FieldPluralKey is a localization plural entry key in a YAML string table.\n\tFieldPluralKey        = \"plural key\"\n\tFieldTerrainHeightmap = \"terrain heightmap\"\n\tFieldTerrainSplatMap  = \"terrain splat map\"\n\tFieldTerrainWeightMap = \"terrain weight map\"\n\tFieldTerrainTexture   = \"terrain texture\"\n\tFieldTerrainMesh      = \"terrain foliage mesh\"\n\tFieldTerrainDensity   = \"terrain density map\"\n)",
          "doc": "Fields name what a reference is, in Ref.Field and in messages. A reference in game.yaml has the Field project.PathRefs gives it, such as project.FieldAtlasIn; the two autoload ones are repeated here.\n",
          "file": "pkg/refs/scan.go",
          "line": 63
        },
        {
          "idents": [
            {
              "name": "IndexFileName",
              "anchor": "IndexFileName"
            }
          ],
          "decl": "const IndexFileName = \"game.index.yaml\"",
          "doc": "IndexFileName is the project index's name at a project's root, beside game.yaml.\n",
          "file": "pkg/refs/index.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "IndexVersion",
              "anchor": "IndexVersion"
            }
          ],
          "decl": "const IndexVersion = 1",
          "doc": "IndexVersion is the index schema version this package reads and writes.\n",
          "file": "pkg/refs/index.go",
          "line": 21
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "EncodeIndex",
          "anchor": "EncodeIndex",
          "decl": "func EncodeIndex(ix *Index) ([]byte, error)",
          "doc": "EncodeIndex validates ix and writes it as deterministic 2-space YAML after a one-line comment saying what the file is, which ParseIndex reads back unchanged.\n",
          "file": "pkg/refs/index.go",
          "line": 69
        },
        {
          "name": "IsAssetPath",
          "anchor": "IsAssetPath",
          "decl": "func IsAssetPath(p string) bool",
          "doc": "IsAssetPath reports whether p, a slash-separated project path, names a game\nasset file (image/sprite, tileset, audio, font, or 3D model) rather than a\nscene, script, project manifest, or import/source sidecar.\n",
          "file": "pkg/refs/assets.go",
          "line": 12
        },
        {
          "name": "RelPath",
          "anchor": "RelPath",
          "decl": "func RelPath(dir, target string) string",
          "doc": "RelPath returns how a file in dir, or at the project root dir, writes the path of target: target relative to dir, with \"..\" for each directory up, both slash-separated paths in the same file system.\n",
          "file": "pkg/refs/scan.go",
          "line": 1165
        }
      ],
      "types": [
        {
          "name": "File",
          "anchor": "File",
          "decl": "type File struct {\n\t// Path is the file's slash-separated path.\n\tPath string\n\t// Kind is what the file was read as.\n\tKind FileKind\n\t// UID is the stable ID in the header of a scene or resource file, or \"\".\n\tUID string\n\t// Root is the project root the file's root-relative paths start from, \".\" for the scanned directory itself.\n\tRoot string\n\t// contains filtered or unexported fields\n}",
          "doc": "File is one file Scan read references or a uid from.\n",
          "file": "pkg/refs/scan.go",
          "line": 154,
          "members": [
            {
              "name": "Path",
              "anchor": "File.Path",
              "kind": "field",
              "doc": "Path is the file's slash-separated path."
            },
            {
              "name": "Kind",
              "anchor": "File.Kind",
              "kind": "field",
              "doc": "Kind is what the file was read as."
            },
            {
              "name": "UID",
              "anchor": "File.UID",
              "kind": "field",
              "doc": "UID is the stable ID in the header of a scene or resource file, or \"\"."
            },
            {
              "name": "Root",
              "anchor": "File.Root",
              "kind": "field",
              "doc": "Root is the project root the file's root-relative paths start from, \".\" for the scanned directory itself."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FileKind",
          "anchor": "FileKind",
          "decl": "type FileKind string",
          "doc": "FileKind is what Scan read a file as.\n",
          "file": "pkg/refs/scan.go",
          "line": 25,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindProject",
                  "anchor": "KindProject"
                },
                {
                  "name": "KindScene",
                  "anchor": "KindScene"
                },
                {
                  "name": "KindPrefab",
                  "anchor": "KindPrefab"
                },
                {
                  "name": "KindDataTable",
                  "anchor": "KindDataTable"
                },
                {
                  "name": "KindScreen",
                  "anchor": "KindScreen"
                },
                {
                  "name": "KindStringTable",
                  "anchor": "KindStringTable"
                },
                {
                  "name": "KindResource",
                  "anchor": "KindResource"
                },
                {
                  "name": "KindTiled",
                  "anchor": "KindTiled"
                },
                {
                  "name": "KindLDtk",
                  "anchor": "KindLDtk"
                },
                {
                  "name": "KindTileset",
                  "anchor": "KindTileset"
                },
                {
                  "name": "KindTerrain",
                  "anchor": "KindTerrain"
                },
                {
                  "name": "KindAtlas",
                  "anchor": "KindAtlas"
                },
                {
                  "name": "KindGLTF",
                  "anchor": "KindGLTF"
                },
                {
                  "name": "KindCutscene",
                  "anchor": "KindCutscene"
                },
                {
                  "name": "KindGridMap",
                  "anchor": "KindGridMap"
                },
                {
                  "name": "KindStates",
                  "anchor": "KindStates"
                }
              ],
              "decl": "const (\n\t// KindProject is a game.yaml project file.\n\tKindProject FileKind = \"project\"\n\t// KindScene is a sceneformat scene document.\n\tKindScene FileKind = \"scene\"\n\t// KindPrefab is a prefab YAML document (*.prefab.yaml or *.prefab.yml).\n\tKindPrefab FileKind = \"prefab\"\n\t// KindDataTable is a YAML data table whose rows reference project files.\n\tKindDataTable FileKind = \"data_table\"\n\t// KindScreen is a gameui *.screen.yaml HUD or menu screen document.\n\tKindScreen FileKind = \"screen\"\n\t// KindStringTable is a versioned YAML localization string table (l10n.StringTable).\n\tKindStringTable FileKind = \"string_table\"\n\t// KindResource is a resource file.\n\tKindResource FileKind = \"resource\"\n\t// KindTiled is a Tiled map (.tmj) or tileset (.tsj).\n\tKindTiled FileKind = \"tiled\"\n\t// KindLDtk is an LDtk project (.ldtk).\n\tKindLDtk FileKind = \"ldtk\"\n\t// KindTileset is a YAML tileset (*.tileset.yaml, tilemap.TilesetDoc).\n\tKindTileset FileKind = \"tileset\"\n\t// KindTerrain is a YAML 3D terrain definition (*.terrain.yaml, world3d.TerrainDoc).\n\tKindTerrain FileKind = \"terrain\"\n\t// KindAtlas is a sprite atlas: a JSON file with top-level frames and meta objects, as TexturePacker and Aseprite write it.\n\tKindAtlas FileKind = \"atlas\"\n\t// KindGLTF is a glTF 2.0 model in JSON form (.gltf), whose buffers and images may be separate files.\n\tKindGLTF FileKind = \"gltf\"\n\t// KindCutscene is a cutscene file (*.cutscene.yaml or *.cutscene.yml).\n\tKindCutscene FileKind = \"cutscene\"\n\t// KindGridMap is a world3d GridMap YAML file (*.gridmap.yaml or *.gridmap.yml), which references a glTF mesh library.\n\tKindGridMap FileKind = \"gridmap\"\n\t// KindStates is a *.states.yaml sprite animation state machine file.\n\tKindStates FileKind = \"states\"\n)",
              "doc": "",
              "file": "pkg/refs/scan.go",
              "line": 27
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Index",
          "anchor": "Index",
          "decl": "type Index struct {\n\t// Version is the schema version; it must equal IndexVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Files are the indexed files in path order.\n\tFiles []IndexEntry `yaml:\"files,omitempty\"`\n}",
          "doc": "Index is the project index: where each file a reference may name was the last time a tool looked. Its files are sorted by path, and each has either a UID or a SHA256.\n",
          "file": "pkg/refs/index.go",
          "line": 27,
          "members": [
            {
              "name": "Version",
              "anchor": "Index.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal IndexVersion (1)."
            },
            {
              "name": "Files",
              "anchor": "Index.Files",
              "kind": "field",
              "doc": "Files are the indexed files in path order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseIndex",
              "anchor": "ParseIndex",
              "decl": "func ParseIndex(data []byte) (*Index, error)",
              "doc": "ParseIndex decodes a YAML project index and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/refs/index.go",
              "line": 45
            }
          ],
          "methods": [
            {
              "name": "Lookup",
              "anchor": "Index.Lookup",
              "recv": "*Index",
              "decl": "func (ix *Index) Lookup(path string) (IndexEntry, bool)",
              "doc": "Lookup returns the entry for path, a slash-separated path from the project root.\n",
              "file": "pkg/refs/index.go",
              "line": 126
            },
            {
              "name": "Validate",
              "anchor": "Index.Validate",
              "recv": "*Index",
              "decl": "func (ix *Index) Validate() error",
              "doc": "Validate checks that ix conforms to the version 1 schema: valid relative paths in strictly increasing order, and for each exactly one of a valid UID and a SHA-256 of 64 lower-case hexadecimal digits, with no UID used twice.\n",
              "file": "pkg/refs/index.go",
              "line": 88
            }
          ]
        },
        {
          "name": "IndexEntry",
          "anchor": "IndexEntry",
          "decl": "type IndexEntry struct {\n\t// Path is the file's slash-separated path from the project root.\n\tPath string `yaml:\"path\"`\n\t// UID is the stable ID in the header of a scene or resource file.\n\tUID string `yaml:\"uid,omitempty\"`\n\t// SHA256 is the lower-case hexadecimal SHA-256 of the contents of any other file, such as an image.\n\tSHA256 string `yaml:\"sha256,omitempty\"`\n}",
          "doc": "IndexEntry is one indexed file.\n",
          "file": "pkg/refs/index.go",
          "line": 35,
          "members": [
            {
              "name": "Path",
              "anchor": "IndexEntry.Path",
              "kind": "field",
              "doc": "Path is the file's slash-separated path from the project root."
            },
            {
              "name": "UID",
              "anchor": "IndexEntry.UID",
              "kind": "field",
              "doc": "UID is the stable ID in the header of a scene or resource file."
            },
            {
              "name": "SHA256",
              "anchor": "IndexEntry.SHA256",
              "kind": "field",
              "doc": "SHA256 is the lower-case hexadecimal SHA-256 of the contents of any other file, such as an image."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "IndexOptions",
          "anchor": "IndexOptions",
          "decl": "type IndexOptions struct {\n\t// Rand is where new uids come from (resource.NewUID); nil is crypto/rand.\n\tRand io.Reader\n}",
          "doc": "IndexOptions configures PlanIndex.\n",
          "file": "pkg/refs/plan.go",
          "line": 485,
          "members": [
            {
              "name": "Rand",
              "anchor": "IndexOptions.Rand",
              "kind": "field",
              "doc": "Rand is where new uids come from (resource.NewUID); nil is crypto/rand."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Move",
          "anchor": "Move",
          "decl": "type Move struct {\n\tFrom, To string\n}",
          "doc": "Move moves the file or directory From to To, both slash-separated paths in the project.\n",
          "file": "pkg/refs/plan.go",
          "line": 37,
          "members": [
            {
              "name": "From",
              "anchor": "Move.From",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "To",
              "anchor": "Move.To",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Plan",
          "anchor": "Plan",
          "decl": "type Plan struct {\n\t// Moves are the files and directories to move, in order.\n\tMoves []Move\n\t// Writes are the files to write after the moves, at their paths after the moves, in path order.\n\tWrites []Write\n\t// Updated are the references the writes change, as they were before the plan.\n\tUpdated []Ref\n\t// UpdatedTextKeys are the localization text key references and definitions the writes change, as they were before the plan.\n\tUpdatedTextKeys []TextKeyRef\n\t// Assigned are the scene, screen and resource files the writes give a new uid, at their paths after the moves.\n\tAssigned []string\n}",
          "doc": "Plan is a set of changes to a project's files that keeps its references working: files to move, then files to write. A Plan only describes them; Apply makes them.\n",
          "file": "pkg/refs/plan.go",
          "line": 23,
          "members": [
            {
              "name": "Moves",
              "anchor": "Plan.Moves",
              "kind": "field",
              "doc": "Moves are the files and directories to move, in order."
            },
            {
              "name": "Writes",
              "anchor": "Plan.Writes",
              "kind": "field",
              "doc": "Writes are the files to write after the moves, at their paths after the moves, in path order."
            },
            {
              "name": "Updated",
              "anchor": "Plan.Updated",
              "kind": "field",
              "doc": "Updated are the references the writes change, as they were before the plan."
            },
            {
              "name": "UpdatedTextKeys",
              "anchor": "Plan.UpdatedTextKeys",
              "kind": "field",
              "doc": "UpdatedTextKeys are the localization text key references and definitions the writes change, as they were before the plan."
            },
            {
              "name": "Assigned",
              "anchor": "Plan.Assigned",
              "kind": "field",
              "doc": "Assigned are the scene, screen and resource files the writes give a new uid, at their paths after the moves."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PlanIndex",
              "anchor": "PlanIndex",
              "decl": "func PlanIndex(fsys fs.FS, opts IndexOptions) (*Plan, error)",
              "doc": "PlanIndex plans what game index does to the project in fsys: rewrite every reference to a file that is gone and that Project.Moved finds, give each scene and resource file without a uid a new one, give a new uid to each file sharing its uid with the file the index lists for it (or, when the index lists neither, with the first in path order), and bring the index at every project root up to date. A file that holds a uid that is not valid is refused, since its uid cannot be kept.\n",
              "file": "pkg/refs/plan.go",
              "line": 491
            },
            {
              "name": "PlanMove",
              "anchor": "PlanMove",
              "decl": "func PlanMove(fsys fs.FS, from, to string) (*Plan, error)",
              "doc": "PlanMove plans moving the file or directory from to to, both slash-separated paths in fsys such as os.DirFS of a game's directory, and rewriting every reference Scan finds to what it moves: references from other files, and the references a moved Tiled or LDtk file makes relative to itself. It also brings the project index at the root up to date. It refuses a move that would leave a reference it cannot rewrite: one out of the project root, one written in a way it cannot rewrite in place, or one in a file that should name from but does not parse. It refuses to move game.yaml, an index, or a directory holding a project root of its own.\n",
              "file": "pkg/refs/plan.go",
              "line": 403
            },
            {
              "name": "PlanRenameTextKey",
              "anchor": "PlanRenameTextKey",
              "decl": "func PlanRenameTextKey(fsys fs.FS, from, to string) (*Plan, error)",
              "doc": "PlanRenameTextKey plans renaming the localization text key from to to across every *.screen.yaml file (textKey fields) and YAML localization string table (strings and plurals keys) in fsys.\nIt rewrites each occurrence in place, preserving comments and formatting, and refuses empty keys, no-op renames, unknown keys, or a target key that already exists in a string table holding from.\n",
              "file": "pkg/refs/plan.go",
              "line": 586
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Plan.Apply",
              "recv": "*Plan",
              "decl": "func (pl *Plan) Apply(dir string) error",
              "doc": "Apply makes the plan's changes in dir, the directory the plan's paths are relative to, which must be the one the planning function scanned: each move, creating the directories it moves into, and then each write, through a temporary file renamed over the old one so a failed write never leaves a file half written. It works inside an os.Root, so no path leads outside dir. A move comes first so that when Apply stops part way, the project index still lists the moved files where they were, and game index finds them and finishes the rewrite.\n",
              "file": "pkg/refs/plan.go",
              "line": 51
            },
            {
              "name": "Empty",
              "anchor": "Plan.Empty",
              "recv": "*Plan",
              "decl": "func (pl *Plan) Empty() bool",
              "doc": "Empty reports whether the plan changes nothing.\n",
              "file": "pkg/refs/plan.go",
              "line": 48
            }
          ]
        },
        {
          "name": "Problem",
          "anchor": "Problem",
          "decl": "type Problem struct {\n\t// File is the slash-separated path of the file at fault.\n\tFile string\n\t// Line is the 1-based line that holds the problem, or 0 when it is about the whole file.\n\tLine int\n\t// Message says what is wrong.\n\tMessage string\n}",
          "doc": "Problem is one thing wrong that Scan found or Project.Check reports.\n",
          "file": "pkg/refs/scan.go",
          "line": 171,
          "members": [
            {
              "name": "File",
              "anchor": "Problem.File",
              "kind": "field",
              "doc": "File is the slash-separated path of the file at fault."
            },
            {
              "name": "Line",
              "anchor": "Problem.Line",
              "kind": "field",
              "doc": "Line is the 1-based line that holds the problem, or 0 when it is about the whole file."
            },
            {
              "name": "Message",
              "anchor": "Problem.Message",
              "kind": "field",
              "doc": "Message says what is wrong."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Problem.String",
              "recv": "Problem",
              "decl": "func (p Problem) String() string",
              "doc": "String formats p as \"file:line: message\", or \"file: message\" without a line.\n",
              "file": "pkg/refs/scan.go",
              "line": 181
            }
          ]
        },
        {
          "name": "Project",
          "anchor": "Project",
          "decl": "type Project struct {\n\t// Files are the files read, in path order.\n\tFiles []*File\n\t// Refs are the references found, in file order and then in the order each file writes them.\n\tRefs []Ref\n\t// TextKeys are the localization text key references and definitions found in *.screen.yaml files and YAML string tables, in file order and then document order.\n\tTextKeys []TextKeyRef\n\t// Problems are what makes the references unsafe to follow or rewrite: a game.yaml or an index that does not parse, and a uid two files of one project share. A reference to a file that is gone is not one of them; Check reports those.\n\tProblems []Problem\n\t// contains filtered or unexported fields\n}",
          "doc": "Project is what Scan found in a directory.\n",
          "file": "pkg/refs/scan.go",
          "line": 189,
          "members": [
            {
              "name": "Files",
              "anchor": "Project.Files",
              "kind": "field",
              "doc": "Files are the files read, in path order."
            },
            {
              "name": "Refs",
              "anchor": "Project.Refs",
              "kind": "field",
              "doc": "Refs are the references found, in file order and then in the order each file writes them."
            },
            {
              "name": "TextKeys",
              "anchor": "Project.TextKeys",
              "kind": "field",
              "doc": "TextKeys are the localization text key references and definitions found in *.screen.yaml files and YAML string tables, in file order and then document order."
            },
            {
              "name": "Problems",
              "anchor": "Project.Problems",
              "kind": "field",
              "doc": "Problems are what makes the references unsafe to follow or rewrite: a game.yaml or an index that does not parse, and a uid two files of one project share. A reference to a file that is gone is not one of them; Check reports those."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Scan",
              "anchor": "Scan",
              "decl": "func Scan(fsys fs.FS) (*Project, error)",
              "doc": "Scan walks fsys, such as os.DirFS of a game's directory, and reads every file the package comment lists for its references, uids and project indexes. Directories whose names start with \".\" or \"_\", and those named testdata, are skipped, as the go command skips them. A file that does not parse is skipped; game check reports it. Scan returns an error only when fsys's root cannot be read.\n",
              "file": "pkg/refs/scan.go",
              "line": 224
            }
          ],
          "methods": [
            {
              "name": "Check",
              "anchor": "Project.Check",
              "recv": "*Project",
              "decl": "func (p *Project) Check() []Problem",
              "doc": "Check returns the problems Scan found and every reference to a file that is not there, at the file and line that holds the reference, saying where the file went when Moved finds it. Problems are sorted by file, then line, then message.\n",
              "file": "pkg/refs/scan.go",
              "line": 1281
            },
            {
              "name": "Exists",
              "anchor": "Project.Exists",
              "recv": "*Project",
              "decl": "func (p *Project) Exists(name string) bool",
              "doc": "Exists reports whether the scanned directory held a file at name when Scan walked it.\n",
              "file": "pkg/refs/scan.go",
              "line": 356
            },
            {
              "name": "Found",
              "anchor": "Project.Found",
              "recv": "*Project",
              "decl": "func (p *Project) Found(r Ref) bool",
              "doc": "Found reports whether r names something that was there when Scan walked the directory: a file, or a folder when r.Dir is set.\n",
              "file": "pkg/refs/scan.go",
              "line": 1300
            },
            {
              "name": "Index",
              "anchor": "Project.Index",
              "recv": "*Project",
              "decl": "func (p *Project) Index(root string) *Index",
              "doc": "Index returns the parsed index at the project root root, or nil when it has none or it does not parse.\n",
              "file": "pkg/refs/scan.go",
              "line": 378
            },
            {
              "name": "MissingAssets",
              "anchor": "Project.MissingAssets",
              "recv": "*Project",
              "decl": "func (p *Project) MissingAssets() []string",
              "doc": "MissingAssets returns the sorted, deduplicated slash-separated paths of asset\nfiles (IsAssetPath) referenced by non-output file references in p that do not\nexist on disk.\n",
              "file": "pkg/refs/assets.go",
              "line": 74
            },
            {
              "name": "Moved",
              "anchor": "Project.Moved",
              "recv": "*Project",
              "decl": "func (p *Project) Moved(target string) (string, bool)",
              "doc": "Moved returns where the file at target, a path the scan found no file at, is now, as the project index at its root says: the scene or resource file holding the uid the index lists for target, or else the only file in the project with target's extension and the contents the index lists for it that the index does not list itself. It returns false when the index does not list target or the file cannot be found again.\n",
              "file": "pkg/refs/scan.go",
              "line": 1193
            },
            {
              "name": "MovedHint",
              "anchor": "Project.MovedHint",
              "recv": "*Project",
              "decl": "func (p *Project) MovedHint(r Ref) string",
              "doc": "MovedHint returns what to tell a person about r when its target is gone and Moved finds it, such as `it moved to \"materials/rock.material.yaml\"; run game index to update the reference`, or \"\" when Moved does not find it.\n",
              "file": "pkg/refs/scan.go",
              "line": 1308
            },
            {
              "name": "Paths",
              "anchor": "Project.Paths",
              "recv": "*Project",
              "decl": "func (p *Project) Paths() []string",
              "doc": "Paths returns every file path Scan found in the directory, in sorted path order.\n",
              "file": "pkg/refs/assets.go",
              "line": 37
            },
            {
              "name": "Root",
              "anchor": "Project.Root",
              "recv": "*Project",
              "decl": "func (p *Project) Root(name string) string",
              "doc": "Root returns the project root of the file at name: the nearest directory above it that holds game.yaml, nsgo.yaml or go.mod, or \".\" when none does.\n",
              "file": "pkg/refs/scan.go",
              "line": 359
            },
            {
              "name": "TextKeyUsages",
              "anchor": "Project.TextKeyUsages",
              "recv": "*Project",
              "decl": "func (p *Project) TextKeyUsages(key string) []TextKeyRef",
              "doc": "TextKeyUsages returns every occurrence of key in the scanned project across screen files and string tables, in file and line order.\n",
              "file": "pkg/refs/scan.go",
              "line": 931
            },
            {
              "name": "UnreferencedAssets",
              "anchor": "Project.UnreferencedAssets",
              "recv": "*Project",
              "decl": "func (p *Project) UnreferencedAssets() []string",
              "doc": "UnreferencedAssets returns the sorted slash-separated paths of asset files\n(IsAssetPath) present in p that are neither generated output targets\n(Ref.Output) nor referenced by any file in p (UsedBy).\n",
              "file": "pkg/refs/assets.go",
              "line": 97
            },
            {
              "name": "UsedBy",
              "anchor": "Project.UsedBy",
              "recv": "*Project",
              "decl": "func (p *Project) UsedBy(target string) []Ref",
              "doc": "UsedBy returns every non-output reference in p that targets target, in the\norder Scan recorded them. A directory reference (Ref.Dir) matches every file\ninside that directory.\n",
              "file": "pkg/refs/assets.go",
              "line": 54
            }
          ]
        },
        {
          "name": "Ref",
          "anchor": "Ref",
          "decl": "type Ref struct {\n\t// File is the slash-separated path of the file that holds the reference.\n\tFile string\n\t// Line and Column are where its value is written in File, both counting from 1 and Column in characters.\n\tLine, Column int\n\t// Field says what the reference is, one of the Field constants, such as FieldMaterial, or in game.yaml one of package project's.\n\tField string\n\t// Value is the path as File writes it.\n\tValue string\n\t// Target is the slash-separated path of the file Value names, or \"\" when Value cannot name a file in the scanned directory: an absolute path, a URI, a path with backslashes or one leading outside it.\n\tTarget string\n\t// FromFile reports whether Value is relative to File's directory, as Tiled and LDtk write paths, rather than to the project root.\n\tFromFile bool\n\t// Dir reports whether Value names a folder rather than a file, as an assets target's in may in game.yaml.\n\tDir bool\n\t// Output reports whether Value names what a tool writes, such as an assets target's out in game.yaml, which need not exist yet.\n\tOutput bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Ref is one reference from a file to another.\n",
          "file": "pkg/refs/scan.go",
          "line": 130,
          "members": [
            {
              "name": "File",
              "anchor": "Ref.File",
              "kind": "field",
              "doc": "File is the slash-separated path of the file that holds the reference."
            },
            {
              "name": "Line",
              "anchor": "Ref.Line",
              "kind": "field",
              "doc": "Line and Column are where its value is written in File, both counting from 1 and Column in characters."
            },
            {
              "name": "Column",
              "anchor": "Ref.Column",
              "kind": "field",
              "doc": "Line and Column are where its value is written in File, both counting from 1 and Column in characters."
            },
            {
              "name": "Field",
              "anchor": "Ref.Field",
              "kind": "field",
              "doc": "Field says what the reference is, one of the Field constants, such as FieldMaterial, or in game.yaml one of package project's."
            },
            {
              "name": "Value",
              "anchor": "Ref.Value",
              "kind": "field",
              "doc": "Value is the path as File writes it."
            },
            {
              "name": "Target",
              "anchor": "Ref.Target",
              "kind": "field",
              "doc": "Target is the slash-separated path of the file Value names, or \"\" when Value cannot name a file in the scanned directory: an absolute path, a URI, a path with backslashes or one leading outside it."
            },
            {
              "name": "FromFile",
              "anchor": "Ref.FromFile",
              "kind": "field",
              "doc": "FromFile reports whether Value is relative to File's directory, as Tiled and LDtk write paths, rather than to the project root."
            },
            {
              "name": "Dir",
              "anchor": "Ref.Dir",
              "kind": "field",
              "doc": "Dir reports whether Value names a folder rather than a file, as an assets target's in may in game.yaml."
            },
            {
              "name": "Output",
              "anchor": "Ref.Output",
              "kind": "field",
              "doc": "Output reports whether Value names what a tool writes, such as an assets target's out in game.yaml, which need not exist yet."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TextKeyRef",
          "anchor": "TextKeyRef",
          "decl": "type TextKeyRef struct {\n\t// File is the slash-separated path of the file that holds the key.\n\tFile string\n\t// Line and Column are where the key is written in File (both 1-based).\n\tLine, Column int\n\t// Field says what the occurrence is: FieldTextKey, FieldStringKey, or FieldPluralKey.\n\tField string\n\t// Key is the localization key string (for example \"hud.hint.lever\").\n\tKey string\n\t// NodeID is the screen node ID when the occurrence is in a screen file, or empty in a string table.\n\tNodeID string\n\t// contains filtered or unexported fields\n}",
          "doc": "TextKeyRef is one occurrence of a localization text key in a project file: either a screen node's textKey reference or a string table's key definition.\n",
          "file": "pkg/refs/scan.go",
          "line": 114,
          "members": [
            {
              "name": "File",
              "anchor": "TextKeyRef.File",
              "kind": "field",
              "doc": "File is the slash-separated path of the file that holds the key."
            },
            {
              "name": "Line",
              "anchor": "TextKeyRef.Line",
              "kind": "field",
              "doc": "Line and Column are where the key is written in File (both 1-based)."
            },
            {
              "name": "Column",
              "anchor": "TextKeyRef.Column",
              "kind": "field",
              "doc": "Line and Column are where the key is written in File (both 1-based)."
            },
            {
              "name": "Field",
              "anchor": "TextKeyRef.Field",
              "kind": "field",
              "doc": "Field says what the occurrence is: FieldTextKey, FieldStringKey, or FieldPluralKey."
            },
            {
              "name": "Key",
              "anchor": "TextKeyRef.Key",
              "kind": "field",
              "doc": "Key is the localization key string (for example \"hud.hint.lever\")."
            },
            {
              "name": "NodeID",
              "anchor": "TextKeyRef.NodeID",
              "kind": "field",
              "doc": "NodeID is the screen node ID when the occurrence is in a screen file, or empty in a string table."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Write",
          "anchor": "Write",
          "decl": "type Write struct {\n\tPath string\n\tData []byte\n}",
          "doc": "Write replaces the contents of the file at Path, or creates it, with Data.\n",
          "file": "pkg/refs/plan.go",
          "line": 42,
          "members": [
            {
              "name": "Path",
              "anchor": "Write.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "Write.Data",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/render3d",
      "name": "render3d",
      "dir": "pkg/render3d",
      "page": "pkg/render3d",
      "synopsis": "Package render3d provides the GPU-agnostic pure-Go 3D render-queue pipeline and developer tools for NSGo 3D games.",
      "doc": "Package render3d provides the GPU-agnostic pure-Go 3D render-queue pipeline\nand developer tools for NSGo 3D games.\n\n# Render Pipeline (#244–#248)\n\n[Queue.Build] executes the complete CPU-side frame preparation stage with\nzero steady-state allocations:\n\n  - Frustum culling (#244): extracts six view-frustum planes via\n    [math3d.FrustumFromMat4] (or [math3d.FrustumFromMat4NO] when\n    [Queue.FrustumNO] is set) and discards items whose world AABB lies\n    outside the view volume.\n  - Software occlusion culling (#380): [OcclusionBuffer] rasterizes static\n    [Occluder] volumes conservatively into a low-resolution CPU depth buffer,\n    builds a max-Z Hi-Z mip pyramid, and performs O(1) zero-false-negative\n    AABB visibility queries integrated into [Queue.BuildWithOcclusion].\n  - Levels of detail (#247): selects the active [LODLevel] per visible item\n    from camera distance and projected screen-height ratio with configurable\n    hysteresis ([SelectLOD]) to eliminate boundary popping.\n  - Opaque sorting & batching (#245): orders opaque and alpha-masked draws\n    by (PipelineID, MaterialID, MeshID, Blend, front-to-back distance) to\n    minimize pipeline/material state switches and early-Z overdraw.\n  - Instancing (#246): merges consecutive opaque draws sharing the same\n    (PipelineID, MaterialID, MeshID, Blend) into [InstanceBatch] entries\n    holding contiguous [math3d.Mat4] transform slices.\n  - Transparency (#248): separates [BlendAlphaBlend] draws and sorts them\n    strictly back-to-front by distance from the camera.\n\n# Developer Tools (#286–#289)\n\n  - Debug drawing & performance (#286): [DebugDraw] records 3D wireframe\n    primitives (lines, AABBs, spheres, rays, axes, grids, frustums) and\n    projects them with near-plane clipping into [*core.Drawing];\n    [FrameProfiler] tracks rolling frame-time and draw-call metrics.\n  - Gizmos & wireframes (#287): [Gizmo] generates 3D translate/rotate/scale\n    handles, performs ray-based axis picking, computes constrained drag\n    deltas with optional snapping, and renders into [*core.Drawing] via\n    [DrawGizmo].\n  - Render statistics (#288) & mobile GPU budgets (#289): [RenderStats]\n    captures exact per-frame culling, batching, geometry, state-switch, and\n    memory totals; [CheckBudget] validates frames against [MobileBudget],\n    [DesktopBudget], or custom [Budget] limits.\n\n# Mesh Buffers (#112)\n\n[Mesh] holds triangle geometry (positions, optional normals and UVs, optional indices) on the CPU. [UploadMesh] validates it and uploads it into the vertex and index buffers of NSGo's GPU view ([gpu.Device], nsgo-dev/nsgo#1059) as a [GPUMesh], whose buffers belong to a [core.Scope]. Every mesh shares one interleaved vertex layout, [MeshVertexLayout], so one pipeline draws any of them, and [GPUMesh.Draw] binds the buffers and issues the draw inside a [gpu.RenderPass]. The index width is chosen per mesh (uint16 below 0xFFFF vertices, otherwise uint32), which every GPU view backend accepts, WebGL 2 included.\n\n# Textures and Samplers (#114)\n\n[UploadTexture] converts any [image.Image] into a straight-alpha RGBA8 [PixelBuffer] ([PixelBufferFromImage]) and uploads it as a scope-owned [GPUTexture] on [gpu.Device]; [UploadTexturePixels] uploads raw RGBA8, RG8, or R8 pixel buffers directly with optional row padding. Setting [TextureUpload.SRGB] uses [gpu.FormatRGBA8UnormSRGB] for color maps while keeping linear formats for data maps; setting [TextureUpload.Mipmaps] builds a CPU area-weighted box mipmap chain (in linear light when sRGB) and uploads every level via [gpu.Device.WriteTextureMip], so mipmapping works on every GPU backend and survives device loss when Retained is set. [NewGPUSampler] validates filtering, wrapping, LOD bounds, and WebGPU anisotropy constraints from [SamplerOptions] (with presets such as [SamplerLinearRepeat] and [SamplerNearestClamp]); [TextureBindingLayout] and [BindTexture] bind a texture and sampler to a shader group.\n\n# Budgeted Async Uploads (#387)\n\n[Uploader] streams large assets without frame hitches: [Uploader.QueueMesh], [Uploader.QueueTexture], [Uploader.QueueTexturePixels], [Uploader.QueueRawBuffer] and [Uploader.QueueRawTexture] run the caller's decode function and the CPU packing (mesh validation and interleaving, image conversion, mip generation) on background workers, and [Uploader.Step], called once per frame on the engine goroutine, writes the results to the [gpu.Device] in chunks without exceeding a per-frame byte budget. Streamed meshes and textures are the same [GPUMesh] and [GPUTexture] that [UploadMesh] and [UploadTexture] return, uploads run in [UploadPriority] order, and each [UploadHandle] reports progress and can cancel its upload.\n\n# Effects (#281)\n\n  - Billboards: [Billboard] builds a quad facing a [CameraBasis] in view-plane, view-point or axis-locked mode, [BillboardQuad.DrawItem] feeds it to transparent sorting, and [BillboardRenderer] fills billboards back to front into [*core.Drawing] with near-plane clipping.\n  - Ribbon trails: [Trail] records world positions and builds a triangle strip whose edges run along tangent × toCamera, so the ribbon faces the viewer at every angle, with width and color from the particles package's curves.\n\n# GPU Submission Integration\n\n[CameraBuffer] (#115) keeps a [scene3d.Camera]'s view, projection and eye point in a uniform buffer on an NSGo gpu.Device and binds it at [CameraGroup], with [CameraWGSL] declaring the matching block for 3D shaders.\n\n[GPULightBuffer] (#116) keeps a scene's [LightRig] (ambient fill, up to [MaxDirectionalLights] directional lights, up to [MaxPointLights] point lights with glTF KHR_lights_punctual smooth range windowing, and up to [MaxSpotLights] [SpotLight] cones with glTF KHR_lights_punctual inner and outer cone falloff, #252) in a uniform buffer bound at [LightGroup], with [LightWGSL] providing the matching block and glTF 2.0 metallic-roughness Cook-Torrance GGX PBR shading functions, [LitPBRWGSL] and [NewLitPBRPipeline] offering a complete lit PBR shader pipeline, and [EvaluatePBR] / [ShadePoint] providing the matching CPU reference evaluator.\n\n[GPUFogBuffer] (#254) keeps a [Fog] (linear, exponential or exponential-squared distance fog, analytical exponential height fog, or both) in a uniform buffer. [NewLitPBRFogPipeline] draws [LitPBRWGSL]'s lighting with fog with the buffer at [FogGroup], and [NewMaterialPipeline] does the same for materials when [MaterialPipelineOptions].FogLayout is set, with the buffer at [MaterialFogGroup]. [FogWGSL] holds the shader functions for custom shaders, and [Fog.Apply] with [FogCameraPos] is the matching CPU reference.\n\n[SpotShadowMap] and [PointShadowMap] (#255) shadow the first spot light and the first point light of a [LightRig]: a perspective depth map for the spot cone and a 3x2 depth atlas holding the six cube faces of the point light, updated from the rig's [SpotLight] and [PointLight]. [NewLitPBRSpotShadowPipeline] and [NewLitPBRPointShadowPipeline] draw [LitPBRWGSL]'s lighting with the map bound at [LocalShadowGroup]; [SpotShadowWGSL] and [PointShadowWGSL] (or [SpotShadowWGSLForGroup] and [PointShadowWGSLForGroup] at another group) add the shadow to custom shaders, and [EvaluateSpotShadow], [EvaluatePointShadow] and [ShadePointVisibility] are the matching CPU references.\n\n[SkyboxPipeline] (#253) draws a [GPUCubemap] as a background behind opaque geometry (including linear float16 HDR environments built with [HDRCubemap], [CubemapFromHDR], and [UploadCubemapHDR]), and [GPUIBLBuffer] holds an environment's [IrradianceSH] diffuse irradiance and [PrefilterEnvironment] / [PrefilterEnvironmentHDR] specular cubemap for image-based lighting. [NewLitPBRIBLPipeline] adds that lighting to [LitPBRWGSL]'s with the buffer at [IBLGroup], [NewMaterialIBLPipeline] pairs textured glTF [GPUMaterial]s with IBL at [MaterialIBLGroup], [IBLWGSL] holds the shader functions for custom shaders, and [EvaluateIBL] / [EvaluateIBLHDR] / [EvaluateMaterialIBL] are the matching CPU references.\n\nThe CPU culling, LOD, sorting, instancing, gizmo, debug, statistics, and budget pipeline stays deterministic, pure Go, and independent of the GPU view, so it runs the same in headless tests and servers; the camera, light, mesh, texture, and sampler helpers are the parts that talk to [gpu.Device].\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultClusterTilesX",
              "anchor": "DefaultClusterTilesX"
            },
            {
              "name": "DefaultClusterTilesY",
              "anchor": "DefaultClusterTilesY"
            },
            {
              "name": "DefaultClusterSlicesZ",
              "anchor": "DefaultClusterSlicesZ"
            },
            {
              "name": "DefaultClusterMaxLights",
              "anchor": "DefaultClusterMaxLights"
            },
            {
              "name": "DefaultMaxLightsPerCluster",
              "anchor": "DefaultMaxLightsPerCluster"
            },
            {
              "name": "DefaultFallbackMaxLights",
              "anchor": "DefaultFallbackMaxLights"
            },
            {
              "name": "MaxClusterSlicesZ",
              "anchor": "MaxClusterSlicesZ"
            },
            {
              "name": "MaxFallbackLights",
              "anchor": "MaxFallbackLights"
            },
            {
              "name": "MaxClusterLights",
              "anchor": "MaxClusterLights"
            },
            {
              "name": "MaxClusterIndexEntries",
              "anchor": "MaxClusterIndexEntries"
            },
            {
              "name": "ClusterLightGPUSize",
              "anchor": "ClusterLightGPUSize"
            },
            {
              "name": "ClusterParamsUniformSize",
              "anchor": "ClusterParamsUniformSize"
            },
            {
              "name": "ClusterCellGPUSize",
              "anchor": "ClusterCellGPUSize"
            },
            {
              "name": "ClusteredFallbackUniformSize",
              "anchor": "ClusteredFallbackUniformSize"
            },
            {
              "name": "ClusterRangeCutoff",
              "anchor": "ClusterRangeCutoff"
            }
          ],
          "decl": "const (\n\t// DefaultClusterTilesX is the default number of horizontal screen-space tiles.\n\tDefaultClusterTilesX = 16\n\t// DefaultClusterTilesY is the default number of vertical screen-space tiles.\n\tDefaultClusterTilesY = 9\n\t// DefaultClusterSlicesZ is the default number of logarithmic view-space depth slices.\n\tDefaultClusterSlicesZ = 24\n\t// DefaultClusterMaxLights is the default storage-buffer light capacity in clustered mode.\n\tDefaultClusterMaxLights = 512\n\t// DefaultMaxLightsPerCluster is the default maximum number of lights recorded per cluster cell.\n\tDefaultMaxLightsPerCluster = 64\n\t// DefaultFallbackMaxLights is the default uniform-buffer light cap for mobile / WebGL 2 / GLES 3.0 fallback.\n\tDefaultFallbackMaxLights = 16\n\n\t// MaxClusterSlicesZ is the maximum depth slice count supported by the uniform split-depth table (65 slice boundaries packed into 17 vec4<f32> entries).\n\tMaxClusterSlicesZ = 64\n\t// MaxFallbackLights is the uniform-buffer array capacity of [ClusteredFallbackWGSL].\n\tMaxFallbackLights = 16\n\n\t// MaxClusterLights is the largest [ClusterConfig.MaxLights] accepted.\n\tMaxClusterLights = 1 << 16\n\t// MaxClusterIndexEntries bounds TilesX * TilesY * SlicesZ * MaxLightsPerCluster, the number of light-index slots [ClusterGrid] preallocates (64 MiB of uint32 indices).\n\tMaxClusterIndexEntries = 1 << 24\n\n\t// ClusterLightGPUSize is the byte size of one GPU light record (4 vec4<f32>, 16-byte aligned in both std140 and std430).\n\tClusterLightGPUSize = 64\n\t// ClusterParamsUniformSize is the byte size of the clustered-path ClusterParams uniform block at [LightGroup] binding 1: grid_info (16) + viewport_depth (16) + 17*vec4 slice_depths (272) = 304 bytes.\n\tClusterParamsUniformSize = 304\n\t// ClusterCellGPUSize is the byte size of one cluster cell offset/count entry (vec4<u32>, 16-byte aligned across all backends).\n\tClusterCellGPUSize = 16\n\t// ClusteredFallbackUniformSize is the byte size of the fallback uniform block at [LightGroup] binding 1: info (16) + 16*ClusterLightGPUSize (1024) = 1040 bytes.\n\tClusteredFallbackUniformSize = 16 + MaxFallbackLights*ClusterLightGPUSize\n\n\t// ClusterRangeCutoff is the radiance below which [ClusterLightFromPoint] and [ClusterLightFromSpot] treat a light with Range 0 (unbounded, the glTF default) as finished: the derived range is sqrt(Intensity * max(Color) / ClusterRangeCutoff).\n\tClusterRangeCutoff = 1.0 / 256\n)",
          "doc": "Defaults and buffer layout constants for clustered forward lighting.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "MaxCascades",
              "anchor": "MaxCascades"
            },
            {
              "name": "CSMGroup",
              "anchor": "CSMGroup"
            },
            {
              "name": "CSMUniformSize",
              "anchor": "CSMUniformSize"
            },
            {
              "name": "DefaultCSMCascadeCount",
              "anchor": "DefaultCSMCascadeCount"
            },
            {
              "name": "DefaultCSMResolution",
              "anchor": "DefaultCSMResolution"
            },
            {
              "name": "DefaultCSMSplitLambda",
              "anchor": "DefaultCSMSplitLambda"
            },
            {
              "name": "DefaultCSMDepthBias",
              "anchor": "DefaultCSMDepthBias"
            },
            {
              "name": "DefaultCSMNormalBias",
              "anchor": "DefaultCSMNormalBias"
            },
            {
              "name": "DefaultCSMCascadeBlendRange",
              "anchor": "DefaultCSMCascadeBlendRange"
            },
            {
              "name": "DefaultCSMCasterPadding",
              "anchor": "DefaultCSMCasterPadding"
            },
            {
              "name": "DefaultCSMMaxCasters",
              "anchor": "DefaultCSMMaxCasters"
            }
          ],
          "decl": "const (\n\t// MaxCascades is the maximum number of shadow cascades supported by [CascadedShadowMap], [CSMFrame], and [CSMWGSL].\n\tMaxCascades = 4\n\n\t// CSMGroup is the bind group index [CSMWGSL] and [LitPBRCSMWGSL] use for the cascaded shadow map (uniform buffer at binding 0, depth atlas at binding 1, comparison sampler at binding 2). It is [ShadowGroup] (3), after [CameraGroup], [LightGroup] and [PBRDrawGroup], so a lit PBR pipeline takes the cascaded shadow map instead of the single directional shadow map, fog, IBL or skinning. Custom shaders that need group 3 for something else place the bindings elsewhere with [CSMWGSLForGroup].\n\tCSMGroup = ShadowGroup\n\n\t// CSMUniformSize is the byte size of the CSMUniforms block encoded by [CSMFrame.EncodeUniforms] and declared by [CSMWGSL]: four mat4x4<f32> matrices (256 bytes) plus ten vec4<f32> vectors (160 bytes).\n\tCSMUniformSize = 4*64 + 10*16\n\n\t// DefaultCSMCascadeCount is the default number of cascades used when [CSMConfig.CascadeCount] is zero.\n\tDefaultCSMCascadeCount = 4\n\n\t// DefaultCSMResolution is the default per-cascade shadow-map resolution in texels used when [CSMConfig.Resolution] is zero.\n\tDefaultCSMResolution = 1024\n\n\t// DefaultCSMSplitLambda is the practical split blend factor returned by [DefaultCSMConfig], blending 75% logarithmic and 25% uniform splits.\n\tDefaultCSMSplitLambda float32 = 0.75\n\n\t// DefaultCSMDepthBias is the constant receiver depth bias returned by [DefaultCSMConfig].\n\tDefaultCSMDepthBias float32 = 0.0015\n\n\t// DefaultCSMNormalBias is the world-space normal offset bias (for cascade 0, scaled proportionally to texel size for farther cascades) returned by [DefaultCSMConfig].\n\tDefaultCSMNormalBias float32 = 0.02\n\n\t// DefaultCSMCascadeBlendRange is the fractional cascade transition zone ([0, 0.5] of each cascade's depth span) returned by [DefaultCSMConfig].\n\tDefaultCSMCascadeBlendRange float32 = 0.1\n\n\t// DefaultCSMCasterPadding is the distance in world units pulled back toward the light source when fitting cascade orthographic near planes, so off-frustum casters behind the camera still cast shadows into view.\n\tDefaultCSMCasterPadding float32 = 25.0\n\n\t// DefaultCSMMaxCasters is the default per-frame dynamic caster transform capacity allocated by [NewCascadedShadowMap] when [CSMConfig.MaxCasters] is 0.\n\tDefaultCSMMaxCasters = 256\n)",
          "doc": "",
          "file": "pkg/render3d/csm.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "DefaultDynamicResolutionTargetFrameTime",
              "anchor": "DefaultDynamicResolutionTargetFrameTime"
            },
            {
              "name": "DefaultDynamicResolutionMinScale",
              "anchor": "DefaultDynamicResolutionMinScale"
            },
            {
              "name": "DefaultDynamicResolutionMaxScale",
              "anchor": "DefaultDynamicResolutionMaxScale"
            },
            {
              "name": "DefaultDynamicResolutionDeadband",
              "anchor": "DefaultDynamicResolutionDeadband"
            },
            {
              "name": "DefaultDynamicResolutionSmoothingAlpha",
              "anchor": "DefaultDynamicResolutionSmoothingAlpha"
            },
            {
              "name": "DefaultDynamicResolutionStepDown",
              "anchor": "DefaultDynamicResolutionStepDown"
            },
            {
              "name": "DefaultDynamicResolutionStepUp",
              "anchor": "DefaultDynamicResolutionStepUp"
            },
            {
              "name": "DefaultDynamicResolutionCooldownDown",
              "anchor": "DefaultDynamicResolutionCooldownDown"
            },
            {
              "name": "DefaultDynamicResolutionCooldownUp",
              "anchor": "DefaultDynamicResolutionCooldownUp"
            },
            {
              "name": "DefaultDynamicResolutionHitchLimit",
              "anchor": "DefaultDynamicResolutionHitchLimit"
            },
            {
              "name": "DefaultDynamicResolutionAlignment",
              "anchor": "DefaultDynamicResolutionAlignment"
            },
            {
              "name": "DefaultDynamicResolutionSharpness",
              "anchor": "DefaultDynamicResolutionSharpness"
            }
          ],
          "decl": "const (\n\t// DefaultDynamicResolutionTargetFrameTime is the 60 FPS frame budget (~16.67ms).\n\tDefaultDynamicResolutionTargetFrameTime = time.Second / 60\n\t// DefaultDynamicResolutionMinScale is the default lower bound on linear scale (50% per axis, 25% pixels).\n\tDefaultDynamicResolutionMinScale float32 = 0.5\n\t// DefaultDynamicResolutionMaxScale is the default upper bound on linear scale (100% native).\n\tDefaultDynamicResolutionMaxScale float32 = 1.0\n\t// DefaultDynamicResolutionDeadband is the ±5% hysteresis deadband around TargetFrameTime.\n\tDefaultDynamicResolutionDeadband float32 = 0.05\n\t// DefaultDynamicResolutionSmoothingAlpha is the EMA smoothing factor for GPU frame times.\n\tDefaultDynamicResolutionSmoothingAlpha float32 = 0.25\n\t// DefaultDynamicResolutionStepDown is the maximum per-step scale drop under GPU overload.\n\tDefaultDynamicResolutionStepDown float32 = 0.12\n\t// DefaultDynamicResolutionStepUp is the maximum per-step scale recovery under GPU headroom.\n\tDefaultDynamicResolutionStepUp float32 = 0.04\n\t// DefaultDynamicResolutionCooldownDown is the minimum frame gap between consecutive scale-down steps.\n\tDefaultDynamicResolutionCooldownDown = 2\n\t// DefaultDynamicResolutionCooldownUp is the minimum consecutive headroom frames before stepping up.\n\tDefaultDynamicResolutionCooldownUp = 12\n\t// DefaultDynamicResolutionHitchLimit discards GPU frame times above 250ms as hitches.\n\tDefaultDynamicResolutionHitchLimit = 250 * time.Millisecond\n\t// DefaultDynamicResolutionAlignment rounds scaled dimensions to even pixel counts.\n\tDefaultDynamicResolutionAlignment = 2\n\t// DefaultDynamicResolutionSharpness is the default CAS sharpening strength for DynamicResolutionSharpen.\n\tDefaultDynamicResolutionSharpness float32 = 0.25\n)",
          "doc": "Default values applied by [DefaultDynamicResolutionConfig] and when a zero\nfield is supplied to [NewDynamicResolutionScaler].\n",
          "file": "pkg/render3d/dynres.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "FogGroup",
              "anchor": "FogGroup"
            },
            {
              "name": "MaterialFogGroup",
              "anchor": "MaterialFogGroup"
            },
            {
              "name": "FogUniformSize",
              "anchor": "FogUniformSize"
            }
          ],
          "decl": "const (\n\t// FogGroup is the bind group index [LitPBRFogWGSL] and [FogBindingWGSL] reserve for the fog uniform block, after [CameraGroup], [LightGroup] and [PBRDrawGroup]. [GPUFogBuffer.Bind] binds at this slot.\n\tFogGroup = 3\n\t// MaterialFogGroup is the bind group index [MaterialFogWGSL] and [MaterialFogBindingWGSL] reserve for the fog uniform block, after [CameraGroup] and [MaterialGroup]. Bind [GPUFogBuffer.BindGroup] here when drawing with a fogged [NewMaterialPipeline].\n\tMaterialFogGroup = 2\n\n\t// FogUniformSize is the byte size of [FogUniforms] as written by [AppendFogUniforms] and declared by [FogWGSL] (three vec4<f32> blocks).\n\tFogUniformSize = 48\n)",
          "doc": "Bind group slots and byte size for GPU fog uniforms.\n",
          "file": "pkg/render3d/fog.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "LightGroup",
              "anchor": "LightGroup"
            },
            {
              "name": "PBRDrawGroup",
              "anchor": "PBRDrawGroup"
            },
            {
              "name": "MaxDirectionalLights",
              "anchor": "MaxDirectionalLights"
            },
            {
              "name": "MaxPointLights",
              "anchor": "MaxPointLights"
            },
            {
              "name": "LightUniformSize",
              "anchor": "LightUniformSize"
            },
            {
              "name": "PBRDrawUniformSize",
              "anchor": "PBRDrawUniformSize"
            }
          ],
          "decl": "const (\n\t// LightGroup is the bind group index the 3D shaders in this repository reserve for scene lights:\n\t// [GPULightBuffer.BindGroup] goes in this slot of lit 3D pipelines' Layouts, and [LightWGSL] declares it there.\n\tLightGroup = 1\n\n\t// PBRDrawGroup is the bind group index [LitPBRWGSL] reserves for the per-draw transform and\n\t// [PBRMaterial] uniform block ([PBRDrawBuffer.BindGroup]).\n\tPBRDrawGroup = 2\n\n\t// MaxDirectionalLights is the maximum number of directional lights a [LightRig] encodes into the GPU uniform block.\n\tMaxDirectionalLights = 4\n\n\t// MaxPointLights is the maximum number of point lights a [LightRig] encodes into the GPU uniform block.\n\tMaxPointLights = 16\n\n\t// LightUniformSize is the byte size of the light uniform block that [LightRig.AppendUniformData] and [LightUniforms.Encode] write and [LightWGSL] declares: ambient (16) + counts (16) + MaxDirectionalLights*32 + MaxPointLights*32 + [MaxSpotLights]*48 = 1056 bytes.\n\tLightUniformSize = 16 + 16 + MaxDirectionalLights*32 + MaxPointLights*32 + MaxSpotLights*48\n\n\t// PBRDrawUniformSize is the byte size of the per-draw PBR uniform block that [PBRDrawUniform.Encode]\n\t// writes and [LitPBRWGSL] declares: model (64) + normal_matrix (64) + base_color (16) +\n\t// pbr_params (16) + emissive (16) = 176 bytes.\n\tPBRDrawUniformSize = 64 + 64 + 16 + 16 + 16\n)",
          "doc": "",
          "file": "pkg/render3d/light.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "LightmapVertexStride",
              "anchor": "LightmapVertexStride"
            },
            {
              "name": "LightmapPositionOffset",
              "anchor": "LightmapPositionOffset"
            },
            {
              "name": "LightmapNormalOffset",
              "anchor": "LightmapNormalOffset"
            },
            {
              "name": "LightmapUV0Offset",
              "anchor": "LightmapUV0Offset"
            },
            {
              "name": "LightmapUV1Offset",
              "anchor": "LightmapUV1Offset"
            },
            {
              "name": "LightmapPositionLocation",
              "anchor": "LightmapPositionLocation"
            },
            {
              "name": "LightmapNormalLocation",
              "anchor": "LightmapNormalLocation"
            },
            {
              "name": "LightmapUV0Location",
              "anchor": "LightmapUV0Location"
            },
            {
              "name": "LightmapUV1Location",
              "anchor": "LightmapUV1Location"
            }
          ],
          "decl": "const (\n\t// LightmapVertexStride is the byte size of one interleaved lightmapped vertex: position (12 bytes), normal (12 bytes), UV0 (8 bytes), UV1 (8 bytes).\n\tLightmapVertexStride = 40\n\n\t// LightmapPositionOffset is the byte offset of the float32x3 position inside a vertex.\n\tLightmapPositionOffset = 0\n\t// LightmapNormalOffset is the byte offset of the float32x3 normal inside a vertex.\n\tLightmapNormalOffset = 12\n\t// LightmapUV0Offset is the byte offset of the float32x2 primary (albedo) UV inside a vertex.\n\tLightmapUV0Offset = 24\n\t// LightmapUV1Offset is the byte offset of the float32x2 secondary (lightmap) UV inside a vertex.\n\tLightmapUV1Offset = 32\n\n\t// LightmapPositionLocation is the shader @location of the position attribute.\n\tLightmapPositionLocation = 0\n\t// LightmapNormalLocation is the shader @location of the normal attribute.\n\tLightmapNormalLocation = 1\n\t// LightmapUV0Location is the shader @location of the primary (albedo) UV attribute.\n\tLightmapUV0Location = 2\n\t// LightmapUV1Location is the shader @location of the secondary (lightmap) UV attribute.\n\tLightmapUV1Location = 3\n)",
          "doc": "Interleaved vertex layout written by [LightmapMesh.AppendVertexData] and described by [LightmapVertexLayout]. Every lightmapped mesh uses this 40-byte layout so one pipeline draws any [GPULightmapMesh] with distinct UV0 (albedo) and UV1 (baked lightmap) channels.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "LightmapDrawGroup",
              "anchor": "LightmapDrawGroup"
            },
            {
              "name": "LightmapTextureGroup",
              "anchor": "LightmapTextureGroup"
            },
            {
              "name": "LightmapDrawUniformSize",
              "anchor": "LightmapDrawUniformSize"
            },
            {
              "name": "LightmapDrawUniformStride",
              "anchor": "LightmapDrawUniformStride"
            },
            {
              "name": "DefaultRGBMMaxRange",
              "anchor": "DefaultRGBMMaxRange"
            }
          ],
          "decl": "const (\n\t// LightmapDrawGroup is the bind group slot carrying the per-draw dynamic uniform buffer.\n\tLightmapDrawGroup = 1\n\t// LightmapTextureGroup is the bind group slot carrying the base color and lightmap textures and samplers.\n\tLightmapTextureGroup = 2\n\n\t// LightmapDrawUniformSize is the byte size of the WGSL LightmapDraw uniform struct (224 bytes): model and normal matrices followed by six vec4 parameters.\n\tLightmapDrawUniformSize = 2*64 + 6*16\n\t// LightmapDrawUniformStride is the byte stride between per-draw uniform slots (256 bytes, matching WebGPU's minimum dynamic uniform buffer offset alignment).\n\tLightmapDrawUniformStride = 256\n\n\t// DefaultRGBMMaxRange is the default HDR multiplier for [LightmapRGBM] lightmaps.\n\tDefaultRGBMMaxRange float32 = 8.0\n)",
          "doc": "Bind group slots and uniform layout constants for [LightmapRenderer] and [LightmapWGSL].\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 41
        },
        {
          "idents": [
            {
              "name": "LocalShadowGroup",
              "anchor": "LocalShadowGroup"
            },
            {
              "name": "PointShadowFaceCount",
              "anchor": "PointShadowFaceCount"
            },
            {
              "name": "PointShadowAtlasCols",
              "anchor": "PointShadowAtlasCols"
            },
            {
              "name": "PointShadowAtlasRows",
              "anchor": "PointShadowAtlasRows"
            },
            {
              "name": "SpotShadowUniformSize",
              "anchor": "SpotShadowUniformSize"
            },
            {
              "name": "PointShadowUniformSize",
              "anchor": "PointShadowUniformSize"
            },
            {
              "name": "DefaultLocalShadowNear",
              "anchor": "DefaultLocalShadowNear"
            },
            {
              "name": "DefaultLocalShadowFar",
              "anchor": "DefaultLocalShadowFar"
            },
            {
              "name": "DefaultLocalShadowMaxCasters",
              "anchor": "DefaultLocalShadowMaxCasters"
            },
            {
              "name": "MaxLocalShadowCasters",
              "anchor": "MaxLocalShadowCasters"
            },
            {
              "name": "MaxSpotShadowConeAngle",
              "anchor": "MaxSpotShadowConeAngle"
            }
          ],
          "decl": "const (\n\t// LocalShadowGroup is the bind group index [SpotShadowWGSL], [PointShadowWGSL], [LitPBRSpotShadowWGSL] and [LitPBRPointShadowWGSL] reserve for a spot or point shadow map (uniform buffer at binding 0, depth texture at binding 1, comparison sampler at binding 2). It is [ShadowGroup], the group after [CameraGroup] (0), [LightGroup] (1) and [PBRDrawGroup] (2), so a lit PBR pipeline takes one shadow map, fog, IBL or skin palette there. Custom shaders that need group 3 for something else, or that combine a spot and a point shadow, place the bindings elsewhere with [SpotShadowWGSLForGroup] and [PointShadowWGSLForGroup].\n\tLocalShadowGroup = ShadowGroup\n\n\t// PointShadowFaceCount is the number of cube faces rendered for a point light.\n\tPointShadowFaceCount = 6\n\t// PointShadowAtlasCols is the horizontal tile count of the 3x2 point shadow atlas.\n\tPointShadowAtlasCols = 3\n\t// PointShadowAtlasRows is the vertical tile count of the 3x2 point shadow atlas.\n\tPointShadowAtlasRows = 2\n\n\t// SpotShadowUniformSize is the byte size of [SpotShadowUniform.Encode] and the WGSL SpotShadow block: one mat4x4<f32> and one vec4<f32> (80 bytes).\n\tSpotShadowUniformSize = 64 + 16\n\n\t// PointShadowUniformSize is the byte size of [PointShadowUniform.Encode] and the WGSL PointShadow block: three vec4<f32> (48 bytes).\n\tPointShadowUniformSize = 3 * 16\n\n\t// DefaultLocalShadowNear is the default near plane distance of spot and point shadow projections.\n\tDefaultLocalShadowNear float32 = 0.1\n\t// DefaultLocalShadowFar is the default far plane distance used for a light whose Range is 0 (unbounded inverse-square falloff). Lit surfaces farther than this from the light are left unshadowed.\n\tDefaultLocalShadowFar float32 = 50\n\n\t// DefaultLocalShadowMaxCasters is the default number of caster draws per spot shadow pass, and per cube face of a point shadow, when MaxCasters is zero.\n\tDefaultLocalShadowMaxCasters uint32 = 256\n\t// MaxLocalShadowCasters is the largest MaxCasters [SpotShadowConfig.Validate] and [PointShadowConfig.Validate] accept. Each caster takes a 256-byte uniform slot, so a spot shadow at this limit holds a 1 MiB caster buffer and a point shadow six times that.\n\tMaxLocalShadowCasters uint32 = 4096\n\n\t// MaxSpotShadowConeAngle is the widest spot light OuterConeAngle (in radians, just under 90 degrees) a [SpotShadowMap] can project: its perspective field of view is twice the cone angle. Use a [PointShadowMap] for wider cones.\n\tMaxSpotShadowConeAngle float32 = math.Pi/2 - 0.01\n)",
          "doc": "Spot and point light shadow constants and defaults (#255).\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "MaterialUniformBinding",
              "anchor": "MaterialUniformBinding"
            },
            {
              "name": "MaterialBaseColorTextureBinding",
              "anchor": "MaterialBaseColorTextureBinding"
            },
            {
              "name": "MaterialBaseColorSamplerBinding",
              "anchor": "MaterialBaseColorSamplerBinding"
            },
            {
              "name": "MaterialMetallicRoughnessTextureBinding",
              "anchor": "MaterialMetallicRoughnessTextureBinding"
            },
            {
              "name": "MaterialMetallicRoughnessSamplerBinding",
              "anchor": "MaterialMetallicRoughnessSamplerBinding"
            },
            {
              "name": "MaterialNormalTextureBinding",
              "anchor": "MaterialNormalTextureBinding"
            },
            {
              "name": "MaterialNormalSamplerBinding",
              "anchor": "MaterialNormalSamplerBinding"
            },
            {
              "name": "MaterialOcclusionTextureBinding",
              "anchor": "MaterialOcclusionTextureBinding"
            },
            {
              "name": "MaterialOcclusionSamplerBinding",
              "anchor": "MaterialOcclusionSamplerBinding"
            },
            {
              "name": "MaterialEmissiveTextureBinding",
              "anchor": "MaterialEmissiveTextureBinding"
            },
            {
              "name": "MaterialEmissiveSamplerBinding",
              "anchor": "MaterialEmissiveSamplerBinding"
            }
          ],
          "decl": "const (\n\tMaterialUniformBinding                  uint32 = 0\n\tMaterialBaseColorTextureBinding         uint32 = 1\n\tMaterialBaseColorSamplerBinding         uint32 = 2\n\tMaterialMetallicRoughnessTextureBinding uint32 = 3\n\tMaterialMetallicRoughnessSamplerBinding uint32 = 4\n\tMaterialNormalTextureBinding            uint32 = 5\n\tMaterialNormalSamplerBinding            uint32 = 6\n\tMaterialOcclusionTextureBinding         uint32 = 7\n\tMaterialOcclusionSamplerBinding         uint32 = 8\n\tMaterialEmissiveTextureBinding          uint32 = 9\n\tMaterialEmissiveSamplerBinding          uint32 = 10\n)",
          "doc": "Binding indices inside [MaterialGroup] declared by [MaterialBindGroupLayout] and [MaterialBindingsWGSL].\n",
          "file": "pkg/render3d/material.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "ExtendedMaterialClearcoatTextureBinding",
              "anchor": "ExtendedMaterialClearcoatTextureBinding"
            },
            {
              "name": "ExtendedMaterialClearcoatSamplerBinding",
              "anchor": "ExtendedMaterialClearcoatSamplerBinding"
            },
            {
              "name": "ExtendedMaterialClearcoatRoughnessTextureBinding",
              "anchor": "ExtendedMaterialClearcoatRoughnessTextureBinding"
            },
            {
              "name": "ExtendedMaterialClearcoatRoughnessSamplerBinding",
              "anchor": "ExtendedMaterialClearcoatRoughnessSamplerBinding"
            },
            {
              "name": "ExtendedMaterialClearcoatNormalTextureBinding",
              "anchor": "ExtendedMaterialClearcoatNormalTextureBinding"
            },
            {
              "name": "ExtendedMaterialClearcoatNormalSamplerBinding",
              "anchor": "ExtendedMaterialClearcoatNormalSamplerBinding"
            },
            {
              "name": "ExtendedMaterialTransmissionTextureBinding",
              "anchor": "ExtendedMaterialTransmissionTextureBinding"
            },
            {
              "name": "ExtendedMaterialTransmissionSamplerBinding",
              "anchor": "ExtendedMaterialTransmissionSamplerBinding"
            }
          ],
          "decl": "const (\n\tExtendedMaterialClearcoatTextureBinding          uint32 = 11\n\tExtendedMaterialClearcoatSamplerBinding          uint32 = 12\n\tExtendedMaterialClearcoatRoughnessTextureBinding uint32 = 13\n\tExtendedMaterialClearcoatRoughnessSamplerBinding uint32 = 14\n\tExtendedMaterialClearcoatNormalTextureBinding    uint32 = 15\n\tExtendedMaterialClearcoatNormalSamplerBinding    uint32 = 16\n\tExtendedMaterialTransmissionTextureBinding       uint32 = 17\n\tExtendedMaterialTransmissionSamplerBinding       uint32 = 18\n)",
          "doc": "Binding indices inside [MaterialGroup] (group 1) added by [ExtendedMaterialBindGroupLayout] after the base bindings 0..10 of [MaterialBindGroupLayout].\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ExtendedLightGroup",
              "anchor": "ExtendedLightGroup"
            },
            {
              "name": "TransmissionBackgroundGroup",
              "anchor": "TransmissionBackgroundGroup"
            },
            {
              "name": "MaterialTransmissionBackgroundGroup",
              "anchor": "MaterialTransmissionBackgroundGroup"
            },
            {
              "name": "TransmissionBackgroundUniformSize",
              "anchor": "TransmissionBackgroundUniformSize"
            }
          ],
          "decl": "const (\n\t// ExtendedLightGroup is the bind group slot [NewExtendedMaterialPipeline] assigns to [GPULightBuffer] when [ExtendedMaterialPipelineOptions].LightLayout is set, after [CameraGroup] (0) and [MaterialGroup] (1).\n\tExtendedLightGroup = 2\n\n\t// TransmissionBackgroundGroup is the bind group slot [NewExtendedMaterialPipeline] assigns to [TransmissionBackground] when paired with [ExtendedMaterialPipelineOptions].LightLayout (groups 0..3: Camera, Material, Light, TransmissionBackground).\n\tTransmissionBackgroundGroup = 3\n\n\t// MaterialTransmissionBackgroundGroup is the bind group slot [NewExtendedMaterialPipeline] assigns to [TransmissionBackground] when [ExtendedMaterialPipelineOptions].LightLayout is nil (groups 0..2: Camera, Material, TransmissionBackground), mirroring [MaterialFogGroup].\n\tMaterialTransmissionBackgroundGroup = 2\n\n\t// TransmissionBackgroundUniformSize is the byte size of TransmissionBackgroundParams in [TransmissionBackgroundWGSL] (two vec4<f32> vectors = 32 bytes).\n\tTransmissionBackgroundUniformSize = 32\n)",
          "doc": "Bind group slots and uniform size for extended PBR pipelines ([NewExtendedMaterialPipeline]) and per-frame transmission background passes ([TransmissionBackground]).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "MeshVertexStride",
              "anchor": "MeshVertexStride"
            },
            {
              "name": "MeshPositionOffset",
              "anchor": "MeshPositionOffset"
            },
            {
              "name": "MeshNormalOffset",
              "anchor": "MeshNormalOffset"
            },
            {
              "name": "MeshUVOffset",
              "anchor": "MeshUVOffset"
            },
            {
              "name": "MeshPositionLocation",
              "anchor": "MeshPositionLocation"
            },
            {
              "name": "MeshNormalLocation",
              "anchor": "MeshNormalLocation"
            },
            {
              "name": "MeshUVLocation",
              "anchor": "MeshUVLocation"
            }
          ],
          "decl": "const (\n\t// MeshVertexStride is the byte size of one interleaved vertex: position (12 bytes), normal (12 bytes) and UV (8 bytes).\n\tMeshVertexStride = 32\n\n\t// MeshPositionOffset is the byte offset of the float32x3 position inside a vertex.\n\tMeshPositionOffset = 0\n\t// MeshNormalOffset is the byte offset of the float32x3 normal inside a vertex.\n\tMeshNormalOffset = 12\n\t// MeshUVOffset is the byte offset of the float32x2 texture coordinate inside a vertex.\n\tMeshUVOffset = 24\n\n\t// MeshPositionLocation is the shader @location of the position attribute.\n\tMeshPositionLocation = 0\n\t// MeshNormalLocation is the shader @location of the normal attribute.\n\tMeshNormalLocation = 1\n\t// MeshUVLocation is the shader @location of the texture coordinate attribute.\n\tMeshUVLocation = 2\n)",
          "doc": "Interleaved vertex layout written by [Mesh.AppendVertexData] and described by [MeshVertexLayout]. Every mesh uses the same layout, so one pipeline draws any [GPUMesh]; a missing normal or UV is written as zeros.\n",
          "file": "pkg/render3d/mesh.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "DefaultOcclusionWidth",
              "anchor": "DefaultOcclusionWidth"
            },
            {
              "name": "DefaultOcclusionHeight",
              "anchor": "DefaultOcclusionHeight"
            }
          ],
          "decl": "const (\n\t// DefaultOcclusionWidth is the default horizontal resolution of an\n\t// [OcclusionBuffer] when a non-positive width is passed to [NewOcclusionBuffer].\n\tDefaultOcclusionWidth = 128\n\t// DefaultOcclusionHeight is the default vertical resolution of an\n\t// [OcclusionBuffer] when a non-positive height is passed to [NewOcclusionBuffer].\n\tDefaultOcclusionHeight = 72\n)",
          "doc": "",
          "file": "pkg/render3d/occlusion.go",
          "line": 10
        },
        {
          "idents": [
            {
              "name": "PBRLightmapMaterialGroup",
              "anchor": "PBRLightmapMaterialGroup"
            },
            {
              "name": "PBRLightmapGroup",
              "anchor": "PBRLightmapGroup"
            },
            {
              "name": "PBRLightmapUniformBinding",
              "anchor": "PBRLightmapUniformBinding"
            },
            {
              "name": "PBRLightmapTextureBinding",
              "anchor": "PBRLightmapTextureBinding"
            },
            {
              "name": "PBRLightmapSamplerBinding",
              "anchor": "PBRLightmapSamplerBinding"
            },
            {
              "name": "PBRLightmapUniformSize",
              "anchor": "PBRLightmapUniformSize"
            }
          ],
          "decl": "const (\n\t// PBRLightmapMaterialGroup is the bind group index [PBRLightmapWGSL] reserves for a [GPUMaterial] (material uniform buffer plus base color, metallic-roughness, normal, occlusion, and emissive texture/sampler pairs) alongside [CameraGroup] (group 0) and [LightGroup] (group 1). It occupies group 2, matching [PBRDrawGroup] in [LitPBRWGSL].\n\tPBRLightmapMaterialGroup = 2\n\n\t// PBRLightmapGroup is the bind group index [PBRLightmapWGSL] and [PBRLightmapBindingsWGSL] reserve for [GPUPBRLightmap] (per-draw transform, atlas UV transform, lightmap encoding parameters, and baked lightmap texture/sampler), parallel to [FogGroup] and [IBLGroup] at group 3.\n\tPBRLightmapGroup = 3\n\n\t// PBRLightmapUniformBinding is the @binding index of the uniform block inside [PBRLightmapGroup].\n\tPBRLightmapUniformBinding uint32 = 0\n\t// PBRLightmapTextureBinding is the @binding index of the 2D baked lightmap texture inside [PBRLightmapGroup].\n\tPBRLightmapTextureBinding uint32 = 1\n\t// PBRLightmapSamplerBinding is the @binding index of the baked lightmap sampler inside [PBRLightmapGroup].\n\tPBRLightmapSamplerBinding uint32 = 2\n\n\t// PBRLightmapUniformSize is the byte size of struct PBRLightmapUniform in [PBRLightmapBindingsWGSL]: model (64) + normal_matrix (64) + uv_transform (16) + lm_params (16) + ambient_fallback (16) = 176 bytes.\n\tPBRLightmapUniformSize = 2*64 + 3*16\n)",
          "doc": "Bind group slots, binding indices, and uniform byte size for the baked-lightmap PBR pipeline ([PBRLightmapWGSL], [NewPBRLightmapPipeline], and [GPUPBRLightmap]).\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "LightProbeGridVersion",
              "anchor": "LightProbeGridVersion"
            },
            {
              "name": "LightProbeGridSchemaURL",
              "anchor": "LightProbeGridSchemaURL"
            },
            {
              "name": "LightProbeGridSchemaComment",
              "anchor": "LightProbeGridSchemaComment"
            },
            {
              "name": "MaxLightProbeGridProbes",
              "anchor": "MaxLightProbeGridProbes"
            }
          ],
          "decl": "const (\n\t// LightProbeGridVersion is the baked light probe grid YAML schema version this package reads and writes.\n\tLightProbeGridVersion = 1\n\n\t// LightProbeGridSchemaURL is where the JSON Schema of version 1 baked light probe grid YAML files is published.\n\tLightProbeGridSchemaURL = \"https://game.nsgo.dev/schemas/lightprobes.v1.json\"\n\n\t// LightProbeGridSchemaComment is the first line [EncodeLightProbeGrid] writes so YAML editors and AI tools validate and complete baked light probe files.\n\tLightProbeGridSchemaComment = \"# yaml-language-server: $schema=\" + LightProbeGridSchemaURL\n\n\t// MaxLightProbeGridProbes caps the total probe count (nx * ny * nz) accepted when decoding a baked [LightProbeGridDoc].\n\tMaxLightProbeGridProbes = 65536\n)",
          "doc": "",
          "file": "pkg/render3d/probe_io.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ProbeCubeFaceCount",
              "anchor": "ProbeCubeFaceCount"
            },
            {
              "name": "ProbeIBLUniformSize",
              "anchor": "ProbeIBLUniformSize"
            }
          ],
          "decl": "const (\n\t// ProbeCubeFaceCount is the six canonical faces of a cubemap (+X, -X, +Y, -Y, +Z, -Z).\n\tProbeCubeFaceCount = 6\n\n\t// ProbeIBLUniformSize is the byte size of the ProbeIBLUniform block written by [ProbeIBLUniform.Encode] and declared by [ProbeIBLWGSL]: nine vec4<f32> L2 spherical harmonic irradiance coefficients followed by six probe geometry/weight vec4<f32>s and one global parameter vec4<f32> (256 bytes).\n\tProbeIBLUniformSize = 9*16 + 7*16\n)",
          "doc": "",
          "file": "pkg/render3d/probes.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ShadowGroup",
              "anchor": "ShadowGroup"
            },
            {
              "name": "ShadowUniformSize",
              "anchor": "ShadowUniformSize"
            },
            {
              "name": "ShadowCasterUniformSize",
              "anchor": "ShadowCasterUniformSize"
            },
            {
              "name": "DefaultShadowResolution",
              "anchor": "DefaultShadowResolution"
            },
            {
              "name": "MinShadowResolution",
              "anchor": "MinShadowResolution"
            },
            {
              "name": "MaxShadowResolution",
              "anchor": "MaxShadowResolution"
            },
            {
              "name": "DefaultShadowMaxCasters",
              "anchor": "DefaultShadowMaxCasters"
            },
            {
              "name": "DefaultShadowDepthBias",
              "anchor": "DefaultShadowDepthBias"
            },
            {
              "name": "DefaultShadowNormalBias",
              "anchor": "DefaultShadowNormalBias"
            },
            {
              "name": "DefaultShadowStrength",
              "anchor": "DefaultShadowStrength"
            }
          ],
          "decl": "const (\n\t// ShadowGroup is the bind group index [ShadowWGSL] and [LitPBRShadowWGSL] reserve for directional shadow data (uniform buffer at binding 0, depth texture at binding 1, comparison sampler at binding 2). It is the last of the four bind groups every NSGo backend offers, after [CameraGroup] (0), [LightGroup] (1) and [PBRDrawGroup] (2), so it is the same slot [FogGroup], [IBLGroup] and [LitPBRSkinGroup] use and a lit PBR pipeline takes only one of them. Custom shaders that need group 3 for something else can place the shadow bindings elsewhere with [ShadowWGSLForGroup].\n\tShadowGroup = 3\n\n\t// ShadowUniformSize is the byte size of the [ShadowUniforms] block written by [AppendShadowUniforms] and declared by [ShadowWGSL]: one mat4x4<f32> plus two vec4<f32> vectors (96 bytes).\n\tShadowUniformSize = 64 + 16 + 16\n\n\t// ShadowCasterUniformSize is the byte size of one caster's light-space MVP matrix in [ShadowDepthWGSL].\n\tShadowCasterUniformSize = 64\n\n\t// DefaultShadowResolution is the default width and height in texels of a [DirectionalShadowMap].\n\tDefaultShadowResolution uint32 = 1024\n\t// MinShadowResolution is the smallest shadow map resolution accepted by [DirectionalShadowConfig.Validate] and [ShadowMapOptions.Validate].\n\tMinShadowResolution uint32 = 16\n\t// MaxShadowResolution is the largest shadow map resolution accepted by [DirectionalShadowConfig.Validate] and [ShadowMapOptions.Validate].\n\tMaxShadowResolution uint32 = 8192\n\n\t// DefaultShadowMaxCasters is the default number of caster draws supported per shadow pass when [ShadowMapOptions.MaxCasters] is zero.\n\tDefaultShadowMaxCasters uint32 = 256\n\n\t// DefaultShadowDepthBias is the default receiver-side clip-space depth bias applied in [ShadowWGSL] and [EvaluateDirectionalShadow].\n\tDefaultShadowDepthBias float32 = 0.0015\n\t// DefaultShadowNormalBias is the default world-space surface-normal offset applied before light-space projection to suppress shadow acne on sloped surfaces.\n\tDefaultShadowNormalBias float32 = 0.02\n\t// DefaultShadowStrength is the default shadow intensity in [0, 1] (1 = full occlusion of direct directional light).\n\tDefaultShadowStrength float32 = 1.0\n)",
          "doc": "Directional shadow mapping constants and defaults (#117).\n",
          "file": "pkg/render3d/shadow.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "MaxSkinJoints",
              "anchor": "MaxSkinJoints"
            },
            {
              "name": "SkinUniformSize",
              "anchor": "SkinUniformSize"
            },
            {
              "name": "SkinGroup",
              "anchor": "SkinGroup"
            },
            {
              "name": "LitPBRSkinGroup",
              "anchor": "LitPBRSkinGroup"
            },
            {
              "name": "MaterialSkinGroup",
              "anchor": "MaterialSkinGroup"
            },
            {
              "name": "SkinnedVertexStride",
              "anchor": "SkinnedVertexStride"
            },
            {
              "name": "SkinnedPositionOffset",
              "anchor": "SkinnedPositionOffset"
            },
            {
              "name": "SkinnedNormalOffset",
              "anchor": "SkinnedNormalOffset"
            },
            {
              "name": "SkinnedUVOffset",
              "anchor": "SkinnedUVOffset"
            },
            {
              "name": "SkinnedJointsOffset",
              "anchor": "SkinnedJointsOffset"
            },
            {
              "name": "SkinnedWeightsOffset",
              "anchor": "SkinnedWeightsOffset"
            },
            {
              "name": "SkinnedPositionLocation",
              "anchor": "SkinnedPositionLocation"
            },
            {
              "name": "SkinnedNormalLocation",
              "anchor": "SkinnedNormalLocation"
            },
            {
              "name": "SkinnedUVLocation",
              "anchor": "SkinnedUVLocation"
            },
            {
              "name": "SkinnedJointsLocation",
              "anchor": "SkinnedJointsLocation"
            },
            {
              "name": "SkinnedWeightsLocation",
              "anchor": "SkinnedWeightsLocation"
            }
          ],
          "decl": "const (\n\t// MaxSkinJoints is the maximum number of joint matrices stored in one [GPUSkinPalette] uniform buffer. 128 mat4x4<f32> entries occupy 8192 bytes ([SkinUniformSize]), staying comfortably below WebGL 2 and OpenGL ES 3.0's 16 KiB minimum MAX_UNIFORM_BLOCK_SIZE while covering full character rigs.\n\tMaxSkinJoints = 128\n\n\t// SkinUniformSize is the byte size of the skin uniform block that [AppendJointMatrices] writes and [SkinWGSL] declares: MaxSkinJoints * 64 = 8192 bytes.\n\tSkinUniformSize = MaxSkinJoints * 64\n\n\t// SkinGroup is the bind group index of the joint palette ([GPUSkinPalette.BindGroup]) in [SkinWGSL] and the unlit [NewSkinnedMeshPipeline], which binds only [CameraGroup] and the palette. Lit and material pipelines keep group 1 for lights and materials, so they bind the palette at [LitPBRSkinGroup] or [MaterialSkinGroup] instead.\n\tSkinGroup = 1\n\n\t// LitPBRSkinGroup is the bind group index of the joint palette in [LitPBRSkinnedWGSL] ([LitPBRPipelineOptions].SkinLayout), after [CameraGroup], [LightGroup] and [PBRDrawGroup]. It is the slot [FogGroup] and [IBLGroup] use, the last of the four bind groups WebGPU and WebGL 2 guarantee, so a skinned lit PBR draw has neither fog nor IBL.\n\tLitPBRSkinGroup = 3\n\n\t// MaterialSkinGroup is the bind group index of the joint palette in [MaterialSkinnedWGSL] ([MaterialPipelineOptions].SkinLayout), after [CameraGroup] and [MaterialGroup]. It is the slot [MaterialFogGroup] uses, so a skinned material draw has no fog.\n\tMaterialSkinGroup = 2\n\n\t// SkinnedVertexStride is the byte size of one interleaved skinned vertex: position (12 bytes), normal (12 bytes), UV (8 bytes), four joint indices (16 bytes), and four normalized weights (16 bytes).\n\tSkinnedVertexStride = 64\n\n\t// SkinnedPositionOffset is the byte offset of the float32x3 position inside a skinned vertex.\n\tSkinnedPositionOffset = 0\n\t// SkinnedNormalOffset is the byte offset of the float32x3 normal inside a skinned vertex.\n\tSkinnedNormalOffset = 12\n\t// SkinnedUVOffset is the byte offset of the float32x2 texture coordinate inside a skinned vertex.\n\tSkinnedUVOffset = 24\n\t// SkinnedJointsOffset is the byte offset of the uint32x4 joint indices inside a skinned vertex.\n\tSkinnedJointsOffset = 32\n\t// SkinnedWeightsOffset is the byte offset of the float32x4 joint weights inside a skinned vertex.\n\tSkinnedWeightsOffset = 48\n\n\t// SkinnedPositionLocation is the shader @location of the position attribute.\n\tSkinnedPositionLocation = MeshPositionLocation\n\t// SkinnedNormalLocation is the shader @location of the normal attribute.\n\tSkinnedNormalLocation = MeshNormalLocation\n\t// SkinnedUVLocation is the shader @location of the texture coordinate attribute.\n\tSkinnedUVLocation = MeshUVLocation\n\t// SkinnedJointsLocation is the shader @location of the uint32x4 joint indices attribute.\n\tSkinnedJointsLocation = 3\n\t// SkinnedWeightsLocation is the shader @location of the float32x4 joint weights attribute.\n\tSkinnedWeightsLocation = 4\n)",
          "doc": "Portable GPU skinning limits, uniform layout, bind group slots, and interleaved vertex layout.\n",
          "file": "pkg/render3d/skin.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "SkyboxUniformSize",
              "anchor": "SkyboxUniformSize"
            },
            {
              "name": "IBLGroup",
              "anchor": "IBLGroup"
            },
            {
              "name": "IBLUniformSize",
              "anchor": "IBLUniformSize"
            }
          ],
          "decl": "const (\n\t// SkyboxUniformSize is the byte size of the skybox uniform block written by [SkyboxUniform.Encode] and declared by [SkyboxWGSL].\n\tSkyboxUniformSize = 64 + 16\n\n\t// IBLGroup is the bind group index [IBLWGSL] and [LitPBRIBLWGSL] declare for image-based lighting ([GPUIBLBuffer.BindGroup]), after [CameraGroup], [LightGroup] and [PBRDrawGroup]. [FogGroup] uses the same index, so a lit pipeline has either IBL or fog. Use [IBLWGSLForGroup] when a custom shader binds the [GPUIBLBuffer] at another group.\n\tIBLGroup = 3\n\n\t// IBLUniformSize is the byte size of the IBL uniform block written by [IBLUniform.Encode] and declared by [IBLWGSL]: nine vec4<f32> L2 spherical harmonic irradiance coefficients followed by intensity, max_lod, and two padding floats.\n\tIBLUniformSize = 9*16 + 16\n)",
          "doc": "",
          "file": "pkg/render3d/skybox.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "TerrainMaterialGroup",
              "anchor": "TerrainMaterialGroup"
            },
            {
              "name": "MaxTerrainLayers",
              "anchor": "MaxTerrainLayers"
            },
            {
              "name": "TerrainMaterialUniformSize",
              "anchor": "TerrainMaterialUniformSize"
            },
            {
              "name": "TerrainUniformBinding",
              "anchor": "TerrainUniformBinding"
            },
            {
              "name": "TerrainSplat0TextureBinding",
              "anchor": "TerrainSplat0TextureBinding"
            },
            {
              "name": "TerrainSplat1TextureBinding",
              "anchor": "TerrainSplat1TextureBinding"
            },
            {
              "name": "TerrainSplatSamplerBinding",
              "anchor": "TerrainSplatSamplerBinding"
            },
            {
              "name": "TerrainAlbedoArrayBinding",
              "anchor": "TerrainAlbedoArrayBinding"
            },
            {
              "name": "TerrainNormalArrayBinding",
              "anchor": "TerrainNormalArrayBinding"
            },
            {
              "name": "TerrainMRHeightArrayBinding",
              "anchor": "TerrainMRHeightArrayBinding"
            },
            {
              "name": "TerrainLayerSamplerBinding",
              "anchor": "TerrainLayerSamplerBinding"
            }
          ],
          "decl": "const (\n\t// TerrainMaterialGroup is the bind group index reserved for [GPUTerrainMaterial]\n\t// alongside [CameraGroup] (group 0) and [LightGroup] (group 1). It occupies\n\t// group 2 (matching [PBRDrawGroup]), leaving group 3 free for [ShadowGroup],\n\t// [CSMGroup], or [FogGroup].\n\tTerrainMaterialGroup = PBRDrawGroup\n\n\t// MaxTerrainLayers is the maximum number of PBR material layers blended by a\n\t// [TerrainMaterial] (4 RGBA channels per splat map × up to 2 splat maps).\n\tMaxTerrainLayers = 8\n\n\t// TerrainMaterialUniformSize is the byte size of struct TerrainMaterialUniforms\n\t// in [TerrainMaterialBindingsWGSL]: model (64) + normal_matrix (64) + params (16)\n\t// + triplanar_params (16) + 8 × TerrainLayerUniform (8 × 48 = 384) = 544 bytes.\n\tTerrainMaterialUniformSize = 64 + 64 + 16 + 16 + MaxTerrainLayers*48\n\n\t// Binding indices inside [TerrainMaterialGroup] declared by\n\t// [TerrainMaterialBindGroupLayout] and [TerrainMaterialBindingsWGSL].\n\tTerrainUniformBinding       uint32 = 0\n\tTerrainSplat0TextureBinding uint32 = 1\n\tTerrainSplat1TextureBinding uint32 = 2\n\tTerrainSplatSamplerBinding  uint32 = 3\n\tTerrainAlbedoArrayBinding   uint32 = 4\n\tTerrainNormalArrayBinding   uint32 = 5\n\tTerrainMRHeightArrayBinding uint32 = 6\n\tTerrainLayerSamplerBinding  uint32 = 7\n)",
          "doc": "Bind group slot, binding indices, limits, and uniform byte size for splat-map\nmulti-layer PBR terrain materials ([TerrainMaterial], [GPUTerrainMaterial],\n[TerrainMaterialWGSL], and [NewTerrainMaterialPipeline]).\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "DefaultTerrainRoughness",
              "anchor": "DefaultTerrainRoughness"
            },
            {
              "name": "DefaultTerrainTriplanarSlope",
              "anchor": "DefaultTerrainTriplanarSlope"
            },
            {
              "name": "DefaultTerrainTriplanarBlend",
              "anchor": "DefaultTerrainTriplanarBlend"
            },
            {
              "name": "DefaultTerrainTriplanarSharp",
              "anchor": "DefaultTerrainTriplanarSharp"
            },
            {
              "name": "DefaultTerrainTriplanarScale",
              "anchor": "DefaultTerrainTriplanarScale"
            }
          ],
          "decl": "const (\n\tDefaultTerrainRoughness      float32 = 0.85\n\tDefaultTerrainTriplanarSlope float32 = 0.70\n\tDefaultTerrainTriplanarBlend float32 = 0.15\n\tDefaultTerrainTriplanarSharp float32 = 4.0\n\tDefaultTerrainTriplanarScale float32 = 0.25\n)",
          "doc": "Default terrain layer and triplanar constants.\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 47
        },
        {
          "idents": [
            {
              "name": "ToneMapGroup",
              "anchor": "ToneMapGroup"
            },
            {
              "name": "ToneMapUniformSize",
              "anchor": "ToneMapUniformSize"
            }
          ],
          "decl": "const (\n\t// ToneMapGroup is the @group index that [ToneMapWGSL] binds the HDR texture, sampler, and uniform parameters at.\n\tToneMapGroup = 0\n\n\t// ToneMapUniformSize is the byte size of the uniform block written by [AppendToneMapUniforms] and declared by [ToneMapWGSL]: twelve little-endian float32 values (exposure, inv_gamma, operator_id, padding, then the source region's uv_scale, uv_min and uv_max as vec2 pairs, and two padding floats).\n\tToneMapUniformSize = 48\n)",
          "doc": "Tone mapping uniform layout and bind-group constants (#250).\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "ToonMaterialGroup",
              "anchor": "ToonMaterialGroup"
            },
            {
              "name": "ToonSceneGroup",
              "anchor": "ToonSceneGroup"
            },
            {
              "name": "ToonUniformSize",
              "anchor": "ToonUniformSize"
            },
            {
              "name": "ToonSceneUniformSize",
              "anchor": "ToonSceneUniformSize"
            },
            {
              "name": "DefaultToonBands",
              "anchor": "DefaultToonBands"
            },
            {
              "name": "MinToonBands",
              "anchor": "MinToonBands"
            },
            {
              "name": "MaxToonBands",
              "anchor": "MaxToonBands"
            },
            {
              "name": "DefaultToonSpecularPower",
              "anchor": "DefaultToonSpecularPower"
            },
            {
              "name": "MaxToonDrawsPerFrame",
              "anchor": "MaxToonDrawsPerFrame"
            }
          ],
          "decl": "const (\n\t// ToonMaterialGroup is the bind group index [ToonWGSL] and [ToonOutlineWGSL] reserve for [GPUToonMaterial] (uniform + base and ramp textures/samplers), alongside [CameraGroup] at group 0. It is the same slot as [MaterialGroup], where the other material pipelines bind their material.\n\tToonMaterialGroup = 1\n\t// ToonSceneGroup is the bind group index [ToonWGSL] and [ToonOutlineWGSL] reserve for the per-draw transform and the key light ([ToonSceneUniform]). Toon shading bands the light of one key light, so it takes that light from a [ToonLight] in this per-draw block rather than binding a whole [LightRig] at [LightGroup].\n\tToonSceneGroup = 2\n\n\t// ToonUniformSize is the little-endian byte size of the material uniform block [ToonMaterial.AppendUniformData] writes and [ToonWGSL] declares (7 vec4<f32> = 112 bytes).\n\tToonUniformSize = 7 * 16\n\t// ToonSceneUniformSize is the little-endian byte size of the per-draw scene uniform block [ToonSceneUniform.AppendUniformData] writes and [ToonWGSL] declares (2 mat4x4<f32> + 3 vec4<f32> = 176 bytes).\n\tToonSceneUniformSize = 2*64 + 3*16\n\n\t// DefaultToonBands is the discrete diffuse band count used when [ToonMaterial.Bands] is zero.\n\tDefaultToonBands = 3\n\t// MinToonBands is the smallest explicit diffuse band count [ToonMaterial.Validate] accepts.\n\tMinToonBands = 2\n\t// MaxToonBands is the largest diffuse band count [ToonMaterial.Validate] accepts.\n\tMaxToonBands = 8\n\n\t// DefaultToonSpecularPower is the Blinn-Phong exponent used when [ToonMaterial.SpecularPower] is zero.\n\tDefaultToonSpecularPower = 32\n\n\t// MaxToonDrawsPerFrame is the most draws [ToonRenderer.Draw] accepts between two calls of [ToonRenderer.Begin] (or two frames), which bounds the scene uniform buffer when a caller that submits with [gpu.Device.Submit] directly forgets to call Begin.\n\tMaxToonDrawsPerFrame = 1 << 16\n)",
          "doc": "Bind group slots, uniform sizes, and defaults for cel/toon shading (#262).\n",
          "file": "pkg/render3d/toon.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ColoredVertexStride",
              "anchor": "ColoredVertexStride"
            },
            {
              "name": "ColoredPositionOffset",
              "anchor": "ColoredPositionOffset"
            },
            {
              "name": "ColoredNormalOffset",
              "anchor": "ColoredNormalOffset"
            },
            {
              "name": "ColoredUVOffset",
              "anchor": "ColoredUVOffset"
            },
            {
              "name": "ColoredColorOffset",
              "anchor": "ColoredColorOffset"
            },
            {
              "name": "ColoredPositionLocation",
              "anchor": "ColoredPositionLocation"
            },
            {
              "name": "ColoredNormalLocation",
              "anchor": "ColoredNormalLocation"
            },
            {
              "name": "ColoredUVLocation",
              "anchor": "ColoredUVLocation"
            },
            {
              "name": "ColoredColorLocation",
              "anchor": "ColoredColorLocation"
            }
          ],
          "decl": "const (\n\t// ColoredVertexStride is the byte size of one interleaved colored vertex: position (12), normal (12), UV (8), and linear RGBA color (16).\n\tColoredVertexStride = 48\n\n\t// ColoredPositionOffset is the byte offset of the float32x3 position inside a colored vertex.\n\tColoredPositionOffset = MeshPositionOffset\n\t// ColoredNormalOffset is the byte offset of the float32x3 normal inside a colored vertex.\n\tColoredNormalOffset = MeshNormalOffset\n\t// ColoredUVOffset is the byte offset of the float32x2 texture coordinate inside a colored vertex.\n\tColoredUVOffset = MeshUVOffset\n\t// ColoredColorOffset is the byte offset of the float32x4 linear RGBA vertex color inside a colored vertex.\n\tColoredColorOffset = 32\n\n\t// ColoredPositionLocation is the shader @location of the position attribute.\n\tColoredPositionLocation = MeshPositionLocation\n\t// ColoredNormalLocation is the shader @location of the normal attribute.\n\tColoredNormalLocation = MeshNormalLocation\n\t// ColoredUVLocation is the shader @location of the texture coordinate attribute.\n\tColoredUVLocation = MeshUVLocation\n\t// ColoredColorLocation is the shader @location of the linear RGBA vertex color attribute (glTF COLOR_0).\n\tColoredColorLocation = 3\n)",
          "doc": "Interleaved vertex layout written by [ColoredMesh.AppendVertexData] and described by [ColoredVertexLayout]. Locations 0..2 match [MeshVertexLayout] identically, extended with linear RGBA vertex color at @location(3). Missing normals and UVs are written as zeros; missing vertex colors are written as linear white (1, 1, 1, 1).\n",
          "file": "pkg/render3d/unlit.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "DefaultUploadBytesPerFrame",
              "anchor": "DefaultUploadBytesPerFrame"
            },
            {
              "name": "DefaultUploadChunkBytes",
              "anchor": "DefaultUploadChunkBytes"
            }
          ],
          "decl": "const (\n\t// DefaultUploadBytesPerFrame is the default per-frame GPU upload budget (4 MiB) used by [NewUploader] when [UploaderOptions.BytesPerFrame] is <= 0.\n\tDefaultUploadBytesPerFrame = 4 * mib\n\n\t// DefaultUploadChunkBytes is the default per-write chunk size (256 KiB) used to split large buffers and textures smoothly across frames.\n\tDefaultUploadChunkBytes = 256 * 1024\n)",
          "doc": "",
          "file": "pkg/render3d/uploader.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "CSMDepthWGSL",
              "anchor": "CSMDepthWGSL"
            }
          ],
          "decl": "const CSMDepthWGSL = `struct CSMCascadeUniform {\n\tlight_view_proj: mat4x4<f32>,\n}\n\nstruct CSMModelUniform {\n\tworld: mat4x4<f32>,\n}\n\n@group(0) @binding(0) var<uniform> csm_cascade: CSMCascadeUniform;\n@group(1) @binding(0) var<uniform> csm_model: CSMModelUniform;\n\nstruct CSMDepthIn {\n\t@location(0) pos: vec3<f32>,\n\t@location(1) normal: vec3<f32>,\n\t@location(2) uv: vec2<f32>,\n}\n\n@vertex\nfn vs_csm_depth(in: CSMDepthIn) -> @builtin(position) vec4<f32> {\n\tlet world_pos = csm_model.world * vec4<f32>(in.pos, 1.0);\n\treturn csm_cascade.light_view_proj * world_pos;\n}\n`",
          "doc": "CSMDepthWGSL is the depth-only vertex shader used by [CascadedShadowMap] to rasterize shadow casters into a cascade tile of the 2D depth atlas.\n\nBind groups:\n  - @group(0) @binding(0): CSMCascadeUniform (light_view_proj: mat4x4<f32>)\n  - @group(1) @binding(0): CSMModelUniform (world: mat4x4<f32>)\n\nVertex buffer 0 matches [MeshVertexLayout].\n",
          "file": "pkg/render3d/csm.go",
          "line": 644
        },
        {
          "idents": [
            {
              "name": "CSMWGSL",
              "anchor": "CSMWGSL"
            }
          ],
          "decl": "const CSMWGSL = csmStructWGSL + `\n@group(3) @binding(0) var<uniform> csm: CSMUniforms;\n@group(3) @binding(1) var csm_shadow_map: texture_depth_2d;\n@group(3) @binding(2) var csm_shadow_sampler: sampler_comparison;\n` + csmSampleFnWGSL",
          "doc": "CSMWGSL declares the cascaded shadow map uniform block, 2D depth atlas and comparison sampler at [CSMGroup] (@group(3)), and portable helpers for sampling them with optional 3x3 PCF, smooth inter-cascade blending, a fade toward [CSMConfig.MaxShadowDistance] and optional debug cascade tinting. It equals CSMWGSLForGroup(CSMGroup).\n\nThe helpers read the camera's view matrix, so prepend [CameraWGSL] first. sample_csm_shadow(world_pos, world_normal) returns the visibility in [0, 1] of the light the cascades were fitted to, like sample_directional_shadow in [ShadowWGSL]: pass it as the shadow_vis of shade_pbr_shadowed in [LightWGSL] to shadow the [LightRig]'s first directional light. csm_shadow_factor(world_pos, unit_normal, view_depth) takes the view depth directly, and csm_debug_tint(world_pos) returns the per-cascade color multiplier [CSMConfig.DebugCascades] enables (white when it is off). [LitPBRCSMWGSL] is the ready-made PBR shader built on it.\n\nIt uses only algebraic WGSL operations and textureSampleCompareLevel (no exp, exp2, log2 or texture_depth_2d_array), so it runs identically on Metal, Direct3D 11, OpenGL 3.3, WebGPU, WebGL 2, OpenGL ES 3.0 and the software GPU renderer.\n",
          "file": "pkg/render3d/csm.go",
          "line": 839
        },
        {
          "idents": [
            {
              "name": "CameraGroup",
              "anchor": "CameraGroup"
            }
          ],
          "decl": "const CameraGroup = 0",
          "doc": "CameraGroup is the bind group index the 3D shaders in this repository reserve for the camera: [CameraBuffer.BindGroup] goes in this slot of every 3D pipeline's layouts, and [CameraWGSL] declares it there.\n",
          "file": "pkg/render3d/camera.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "CameraUniformSize",
              "anchor": "CameraUniformSize"
            }
          ],
          "decl": "const CameraUniformSize = 3*64 + 16",
          "doc": "CameraUniformSize is the byte size of the camera uniform block that [CameraUniform.Encode] writes and [CameraWGSL] declares.\n",
          "file": "pkg/render3d/camera.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "CameraWGSL",
              "anchor": "CameraWGSL"
            }
          ],
          "decl": "const CameraWGSL = `struct Camera {\n\tview: mat4x4<f32>,\n\tproj: mat4x4<f32>,\n\tview_proj: mat4x4<f32>,\n\teye: vec4<f32>,\n}\n\n@group(0) @binding(0) var<uniform> camera: Camera;\n`",
          "doc": "CameraWGSL declares the camera uniform block at @group(0) @binding(0) as the variable camera. Prepend it to a WGSL module whose vertex stage places points with camera.view_proj; the block's layout matches [CameraUniform.Encode] byte for byte.\n\nThe eye field is the homogeneous eye point from [scene3d.Camera.Eye], so normalize(camera.eye.xyz - p * camera.eye.w) is the unit vector from a world point p toward the viewer under both perspective and orthographic cameras.\n",
          "file": "pkg/render3d/camera.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "ClusteredBindingsWGSL",
              "anchor": "ClusteredBindingsWGSL"
            }
          ],
          "decl": "const ClusteredBindingsWGSL = LightWGSL + clusteredStorageWGSL",
          "doc": "ClusteredBindingsWGSL is [LightWGSL] (the [LightRig] block at [LightGroup] binding 0 and its PBR helpers) plus the clustered forward bindings at bindings 1 to 4 of the same group and this helper:\n\n  - shade_pbr_clustered(world_pos, normal, view_dir, base_color, metallic, roughness, frag_pos) -> vec3<f32>\n\nIt returns shade_pbr for the rig plus every local light binned into the cluster that holds the fragment, each shaded with pbr_brdf, point_light_attenuation and spot_cone_attenuation, so it matches [ShadeClusteredGridPoint]. frag_pos is the fragment's @builtin(position). Prepend [CameraWGSL], which supplies camera.view for the depth slice, and pair it with a [ClusteredLightSystem] in clustered mode; [ClusteredFallbackBindingsWGSL] declares the same helper for the fallback path.\n\nDepth slicing is a 6-step binary search over the uniform split-depth table rather than log2 and exp, because NSGo v0.3.0's software GPU VM has no log, log2, exp or exp2 builtin and silently evaluates them to zero (internal/driver/gpu_software.go, evalCall) (nsgo-dev/nsgo#2334).\n",
          "file": "pkg/render3d/clustered.go",
          "line": 999
        },
        {
          "idents": [
            {
              "name": "ClusteredFallbackBindingsWGSL",
              "anchor": "ClusteredFallbackBindingsWGSL"
            }
          ],
          "decl": "const ClusteredFallbackBindingsWGSL = LightWGSL + clusteredFallbackWGSL",
          "doc": "ClusteredFallbackBindingsWGSL is [LightWGSL] plus the fallback uniform block at [LightGroup] binding 1 and shade_pbr_clustered with the same signature as in [ClusteredBindingsWGSL], using no storage buffers or compute, for WebGL 2 and OpenGL ES 3.0 targets. frag_pos is ignored: every uploaded light is evaluated for every fragment.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 1002
        },
        {
          "idents": [
            {
              "name": "ClusteredFallbackWGSL",
              "anchor": "ClusteredFallbackWGSL"
            }
          ],
          "decl": "const ClusteredFallbackWGSL = litPBRPreludeWGSL + clusteredFallbackWGSL + clusteredLitFragmentWGSL",
          "doc": "ClusteredFallbackWGSL is [ClusteredLitWGSL] built on [ClusteredFallbackBindingsWGSL], for devices without storage buffers or compute.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 1145
        },
        {
          "idents": [
            {
              "name": "ClusteredLitWGSL",
              "anchor": "ClusteredLitWGSL"
            }
          ],
          "decl": "const ClusteredLitWGSL = litPBRPreludeWGSL + clusteredStorageWGSL + clusteredLitFragmentWGSL",
          "doc": "ClusteredLitWGSL is [LitPBRWGSL] with clustered local lights: the same metallic-roughness module on [CameraWGSL], [MeshVertexLayout] and a per-draw [PBRDrawUniform] at [PBRDrawGroup], whose fragment stage shades with shade_pbr_clustered from [ClusteredBindingsWGSL] and writes sRGB. [NewClusteredLitPBRPipeline] creates a pipeline from it.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 1142
        },
        {
          "idents": [
            {
              "name": "CustomMaterialGroup",
              "anchor": "CustomMaterialGroup"
            }
          ],
          "decl": "const CustomMaterialGroup = MaterialGroup",
          "doc": "CustomMaterialGroup is the bind group slot (@group(1)) that holds a custom material's uniform buffer and texture/sampler bindings alongside [CameraGroup] (@group(0)). It is [MaterialGroup], the slot every material in this package binds at.\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "CustomMaterialUniformBinding",
              "anchor": "CustomMaterialUniformBinding"
            }
          ],
          "decl": "const CustomMaterialUniformBinding = 0",
          "doc": "CustomMaterialUniformBinding is the @binding index inside [CustomMaterialGroup] used for the generated MaterialParams uniform struct when a custom material declares at least one non-texture parameter.\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "DefaultMaterialIOR",
              "anchor": "DefaultMaterialIOR"
            }
          ],
          "decl": "const DefaultMaterialIOR float32 = 1.5",
          "doc": "DefaultMaterialIOR is the glTF 2.0 default dielectric index of refraction (1.5, corresponding to F0 = 0.04).\n",
          "file": "pkg/render3d/material.go",
          "line": 40
        },
        {
          "idents": [
            {
              "name": "ExtendedMaterialBindingsWGSL",
              "anchor": "ExtendedMaterialBindingsWGSL"
            }
          ],
          "decl": "const ExtendedMaterialBindingsWGSL = `struct ExtendedMaterialUniforms {\n\tbase_color_factor: vec4<f32>,\n\temissive_factor: vec4<f32>,\n\tparams: vec4<f32>,\n\tflags: vec4<f32>,\n\text_params: vec4<f32>,\n\text_flags: vec4<f32>,\n}\n\n@group(1) @binding(0) var<uniform> material: ExtendedMaterialUniforms;\n@group(1) @binding(1) var base_color_tex: texture_2d<f32>;\n@group(1) @binding(2) var base_color_samp: sampler;\n@group(1) @binding(3) var metallic_roughness_tex: texture_2d<f32>;\n@group(1) @binding(4) var metallic_roughness_samp: sampler;\n@group(1) @binding(5) var normal_tex: texture_2d<f32>;\n@group(1) @binding(6) var normal_samp: sampler;\n@group(1) @binding(7) var occlusion_tex: texture_2d<f32>;\n@group(1) @binding(8) var occlusion_samp: sampler;\n@group(1) @binding(9) var emissive_tex: texture_2d<f32>;\n@group(1) @binding(10) var emissive_samp: sampler;\n@group(1) @binding(11) var clearcoat_tex: texture_2d<f32>;\n@group(1) @binding(12) var clearcoat_samp: sampler;\n@group(1) @binding(13) var clearcoat_roughness_tex: texture_2d<f32>;\n@group(1) @binding(14) var clearcoat_roughness_samp: sampler;\n@group(1) @binding(15) var clearcoat_normal_tex: texture_2d<f32>;\n@group(1) @binding(16) var clearcoat_normal_samp: sampler;\n@group(1) @binding(17) var transmission_tex: texture_2d<f32>;\n@group(1) @binding(18) var transmission_samp: sampler;\n\nfn ext_pow5(x: f32) -> f32 {\n\tlet c = clamp(x, 0.0, 1.0);\n\tlet c2 = c * c;\n\treturn c2 * c2 * c;\n}\n\nfn ext_dielectric_f0(ior: f32) -> f32 {\n\tif (ior <= 0.0) {\n\t\treturn 0.04;\n\t}\n\tlet r = (ior - 1.0) / (ior + 1.0);\n\treturn r * r;\n}\n\n// ext_perturb_normal builds the same API-independent Cramer's-rule cotangent frame as material_perturb_normal (with deterministic orthonormal fallback when screen-space derivatives or UVs are degenerate) and is shared by both base and clearcoat normal maps.\nfn ext_perturb_normal(\n\tgeom_n: vec3<f32>,\n\tdp1: vec3<f32>,\n\tdp2: vec3<f32>,\n\tduv1: vec2<f32>,\n\tduv2: vec2<f32>,\n\tnormal_sample: vec3<f32>,\n\tnormal_scale: f32,\n) -> vec3<f32> {\n\tvar up_ref = vec3<f32>(0.0, 1.0, 0.0);\n\tif (geom_n.y > 0.99) {\n\t\tup_ref = vec3<f32>(0.0, 0.0, -1.0);\n\t} else if (geom_n.y < -0.99) {\n\t\tup_ref = vec3<f32>(0.0, 0.0, 1.0);\n\t}\n\tvar t_vec = normalize(cross(up_ref, geom_n));\n\tvar b_vec = cross(geom_n, t_vec);\n\n\tlet det = duv1.x * duv2.y - duv1.y * duv2.x;\n\tif (abs(det) > 1e-10) {\n\t\tlet inv_det = 1.0 / det;\n\t\tlet t_raw = (dp1 * duv2.y - dp2 * duv1.y) * inv_det;\n\t\tlet b_dv = (dp2 * duv1.x - dp1 * duv2.x) * inv_det;\n\t\tlet t_ortho = t_raw - geom_n * dot(geom_n, t_raw);\n\t\tlet b_raw = -b_dv;\n\t\tlet b_ortho = b_raw - geom_n * dot(geom_n, b_raw);\n\t\tif (dot(t_ortho, t_ortho) > 1e-10 && dot(b_ortho, b_ortho) > 1e-10) {\n\t\t\tt_vec = normalize(t_ortho);\n\t\t\tb_vec = normalize(b_ortho);\n\t\t}\n\t}\n\n\tlet n_unpacked = normal_sample * 2.0 - vec3<f32>(1.0, 1.0, 1.0);\n\tlet n_ts = normalize(vec3<f32>(n_unpacked.x * normal_scale, n_unpacked.y * normal_scale, n_unpacked.z));\n\treturn normalize(t_vec * n_ts.x + b_vec * n_ts.y + geom_n * n_ts.z);\n}\n\nfn ext_pbr_direct(\n\tn: vec3<f32>,\n\tv: vec3<f32>,\n\tl: vec3<f32>,\n\tlight_color: vec3<f32>,\n\tbase_color: vec3<f32>,\n\tmetallic: f32,\n\troughness: f32,\n\tf0_dielectric: f32,\n\ttransmission: f32,\n) -> vec3<f32> {\n\tlet ndl = max(dot(n, l), 0.0);\n\tif (ndl <= 0.0) {\n\t\treturn vec3<f32>(0.0, 0.0, 0.0);\n\t}\n\tlet ndv = max(dot(n, v), 1e-4);\n\tlet h_raw = v + l;\n\tlet h_len2 = dot(h_raw, h_raw);\n\tlet f0 = mix(vec3<f32>(f0_dielectric, f0_dielectric, f0_dielectric), base_color, metallic);\n\tlet pi = 3.14159265359;\n\tif (h_len2 <= 1e-8) {\n\t\tlet diff_only = (vec3<f32>(1.0, 1.0, 1.0) - f0) * ((1.0 - metallic) * (1.0 - transmission) / pi) * base_color;\n\t\treturn diff_only * light_color * ndl;\n\t}\n\tlet h = h_raw / sqrt(h_len2);\n\tlet ndh = max(dot(n, h), 0.0);\n\tlet vdh = max(dot(v, h), 0.0);\n\n\tlet alpha = roughness * roughness;\n\tlet alpha2 = alpha * alpha;\n\tlet denom = ndh * ndh * (alpha2 - 1.0) + 1.0;\n\tlet d_term = alpha2 / max(pi * denom * denom, 1e-7);\n\n\tlet ggx_v = ndl * sqrt(ndv * ndv * (1.0 - alpha2) + alpha2);\n\tlet ggx_l = ndv * sqrt(ndl * ndl * (1.0 - alpha2) + alpha2);\n\tlet vis = 0.5 / max(ggx_v + ggx_l, 1e-5);\n\n\tlet f_term = f0 + (vec3<f32>(1.0, 1.0, 1.0) - f0) * ext_pow5(1.0 - vdh);\n\tlet spec = f_term * (d_term * vis);\n\tlet diff = (vec3<f32>(1.0, 1.0, 1.0) - f_term) * ((1.0 - metallic) * (1.0 - transmission) / pi) * base_color;\n\treturn (diff + spec) * light_color * ndl;\n}\n\nfn ext_clearcoat_direct(\n\tnc: vec3<f32>,\n\tv: vec3<f32>,\n\tl: vec3<f32>,\n\tlight_color: vec3<f32>,\n\tcc_roughness: f32,\n) -> vec3<f32> {\n\tlet ndl = max(dot(nc, l), 0.0);\n\tif (ndl <= 0.0) {\n\t\treturn vec3<f32>(0.0, 0.0, 0.0);\n\t}\n\tlet ndv = max(dot(nc, v), 1e-4);\n\tlet h_raw = v + l;\n\tlet h_len2 = dot(h_raw, h_raw);\n\tif (h_len2 <= 1e-8) {\n\t\treturn vec3<f32>(0.0, 0.0, 0.0);\n\t}\n\tlet h = h_raw / sqrt(h_len2);\n\tlet ndh = max(dot(nc, h), 0.0);\n\tlet vdh = max(dot(v, h), 0.0);\n\n\tlet alpha = cc_roughness * cc_roughness;\n\tlet alpha2 = alpha * alpha;\n\tlet pi = 3.14159265359;\n\tlet denom = ndh * ndh * (alpha2 - 1.0) + 1.0;\n\tlet d_term = alpha2 / max(pi * denom * denom, 1e-7);\n\n\tlet ggx_v = ndl * sqrt(ndv * ndv * (1.0 - alpha2) + alpha2);\n\tlet ggx_l = ndv * sqrt(ndl * ndl * (1.0 - alpha2) + alpha2);\n\tlet vis = 0.5 / max(ggx_v + ggx_l, 1e-5);\n\n\tlet f_term = 0.04 + (1.0 - 0.04) * ext_pow5(1.0 - vdh);\n\treturn light_color * (f_term * d_term * vis * ndl);\n}\n\nfn ext_pbr_ambient(\n\tn: vec3<f32>,\n\tv: vec3<f32>,\n\tsky_color: vec3<f32>,\n\tground_color: vec3<f32>,\n\tbase_color: vec3<f32>,\n\tmetallic: f32,\n\troughness: f32,\n\tocclusion: f32,\n\tf0_dielectric: f32,\n\ttransmission: f32,\n) -> vec3<f32> {\n\tlet ndv = max(dot(n, v), 1e-4);\n\tlet f0 = mix(vec3<f32>(f0_dielectric, f0_dielectric, f0_dielectric), base_color, metallic);\n\tlet f_max = max(vec3<f32>(1.0 - roughness, 1.0 - roughness, 1.0 - roughness), f0);\n\tlet f_amb = f0 + (f_max - f0) * ext_pow5(1.0 - ndv);\n\n\tlet sky_t = clamp(n.y * 0.5 + 0.5, 0.0, 1.0);\n\tlet amb_env = mix(ground_color, sky_color, sky_t);\n\tlet amb_diff = (vec3<f32>(1.0, 1.0, 1.0) - f_amb) * ((1.0 - metallic) * (1.0 - transmission)) * base_color * amb_env;\n\n\tlet refl = reflect(-v, n);\n\tlet refl_t = clamp(refl.y * 0.5 + 0.5, 0.0, 1.0);\n\tlet refl_env = mix(ground_color, sky_color, mix(refl_t, 0.5, roughness * roughness));\n\tlet amb_spec = refl_env * f_amb * (1.0 - 0.5 * roughness);\n\n\treturn (amb_diff + amb_spec) * occlusion;\n}\n\nfn ext_clearcoat_ambient(\n\tnc: vec3<f32>,\n\tv: vec3<f32>,\n\tsky_color: vec3<f32>,\n\tground_color: vec3<f32>,\n\tcc_roughness: f32,\n\tocclusion: f32,\n) -> vec3<f32> {\n\tlet ndv = max(dot(nc, v), 1e-4);\n\tlet f0 = 0.04;\n\tlet f_max = max(1.0 - cc_roughness, f0);\n\tlet f_amb = f0 + (f_max - f0) * ext_pow5(1.0 - ndv);\n\n\tlet refl = reflect(-v, nc);\n\tlet refl_t = clamp(refl.y * 0.5 + 0.5, 0.0, 1.0);\n\tlet refl_env = mix(ground_color, sky_color, mix(refl_t, 0.5, cc_roughness * cc_roughness));\n\treturn refl_env * (f_amb * (1.0 - 0.5 * cc_roughness) * occlusion);\n}\n\nfn ext_transmission_term(\n\tn: vec3<f32>,\n\tv: vec3<f32>,\n\tbase_color: vec3<f32>,\n\tmetallic: f32,\n\tf0_dielectric: f32,\n\ttransmission: f32,\n\tbg_linear: vec3<f32>,\n) -> vec3<f32> {\n\tif (transmission <= 0.0) {\n\t\treturn vec3<f32>(0.0, 0.0, 0.0);\n\t}\n\tlet ndv = max(dot(n, v), 1e-4);\n\tlet f0 = mix(vec3<f32>(f0_dielectric, f0_dielectric, f0_dielectric), base_color, metallic);\n\tlet f_view = f0 + (vec3<f32>(1.0, 1.0, 1.0) - f0) * ext_pow5(1.0 - ndv);\n\treturn (vec3<f32>(1.0, 1.0, 1.0) - f_view) * ((1.0 - metallic) * transmission) * base_color * bg_linear;\n}\n\nfn ext_tonemap_srgb(linear_rgb: vec3<f32>) -> vec3<f32> {\n\tlet c = max(linear_rgb, vec3<f32>(0.0, 0.0, 0.0));\n\tlet mapped = c / (c + vec3<f32>(1.0, 1.0, 1.0));\n\treturn pow(clamp(mapped, vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 1.0, 1.0)), vec3<f32>(1.0 / 2.2, 1.0 / 2.2, 1.0 / 2.2));\n}\n`",
          "doc": "ExtendedMaterialBindingsWGSL declares [MaterialGroup] (group 1) bindings 0..18 for [GPUExtendedMaterial] together with portable glTF 2.0 metallic-roughness + KHR_materials_clearcoat + KHR_materials_transmission shading helpers and the UV-aligned Cramer cotangent-frame normal perturbation helper (reused for both base and clearcoat normal maps).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 890
        },
        {
          "idents": [
            {
              "name": "ExtendedMaterialUniformSize",
              "anchor": "ExtendedMaterialUniformSize"
            }
          ],
          "decl": "const ExtendedMaterialUniformSize = 96",
          "doc": "ExtendedMaterialUniformSize is the byte size of the 16-byte-aligned uniform block [ExtendedMaterialUniforms.AppendUniformData] and [ExtendedMaterialUniforms.Encode] write, matching struct ExtendedMaterialUniforms in [ExtendedMaterialBindingsWGSL] (64 bytes of [MaterialUniforms] plus 32 bytes of clearcoat, transmission, and IOR parameters).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ExtendedMaterialWGSL",
              "anchor": "ExtendedMaterialWGSL"
            }
          ],
          "decl": "const ExtendedMaterialWGSL = CameraWGSL + ExtendedMaterialBindingsWGSL + materialVertexStageWGSL + extFragmentPreludeWGSL + extNoBGWGSL + extDefaultLightingBodyWGSL + `\tlet srgb_rgb = ext_tonemap_srgb(linear_rgb);\n` + materialStagesTailWGSL",
          "doc": "ExtendedMaterialWGSL is the default-light extended PBR shader compiled by [NewExtendedMaterialPipeline] when neither LightLayout nor TransmissionLayout is set (groups 0: Camera, 1: ExtendedMaterial).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 1267
        },
        {
          "idents": [
            {
              "name": "FXAAUniformSize",
              "anchor": "FXAAUniformSize"
            }
          ],
          "decl": "const FXAAUniformSize = 16",
          "doc": "FXAAUniformSize is the byte size of the FXAAParams uniform block declared by [FXAAWGSL] (one vec4<f32> = 16 bytes: subpixel quality, edge threshold, edge threshold minimum, and padding). The source's texel size is not part of it: the shader reads it with textureDimensions, so one pass can filter sources of different sizes in the same frame.\n",
          "file": "pkg/render3d/aa.go",
          "line": 390
        },
        {
          "idents": [
            {
              "name": "FXAAWGSL",
              "anchor": "FXAAWGSL"
            }
          ],
          "decl": "const FXAAWGSL = `struct FXAAParams {\n\tparams: vec4<f32>,\n}\n\n@group(0) @binding(0) var<uniform> fxaa_params: FXAAParams;\n@group(0) @binding(1) var fxaa_tex: texture_2d<f32>;\n@group(0) @binding(2) var fxaa_sampler: sampler;\n\nstruct FXAAVertexOut {\n\t@builtin(position) clip: vec4<f32>,\n\t@location(0) uv: vec2<f32>,\n}\n\n@vertex\nfn vs_main(@builtin(vertex_index) vid: u32) -> FXAAVertexOut {\n\tvar out: FXAAVertexOut;\n\tlet x = select(-1.0, 3.0, vid == 1u);\n\tlet y = select(-1.0, 3.0, vid == 2u);\n\tout.clip = vec4<f32>(x, y, 0.0, 1.0);\n\tout.uv = vec2<f32>(x * 0.5 + 0.5, 0.5 - y * 0.5);\n\treturn out;\n}\n\nfn fxaa_luma(rgb: vec3<f32>) -> f32 {\n\treturn dot(rgb, vec3<f32>(0.299, 0.587, 0.114));\n}\n\nfn fxaa_step(i: i32) -> f32 {\n\tif (i < 4) {\n\t\treturn 1.0;\n\t}\n\tif (i == 4) {\n\t\treturn 1.5;\n\t}\n\tif (i < 9) {\n\t\treturn 2.0;\n\t}\n\tif (i == 9) {\n\t\treturn 4.0;\n\t}\n\treturn 8.0;\n}\n\n@fragment\nfn fs_main(in: FXAAVertexOut) -> @location(0) vec4<f32> {\n\tlet dims = textureDimensions(fxaa_tex);\n\tlet inv = vec2<f32>(1.0 / f32(dims.x), 1.0 / f32(dims.y));\n\tlet subpixQuality = fxaa_params.params.x;\n\tlet edgeThreshold = fxaa_params.params.y;\n\tlet edgeThresholdMin = fxaa_params.params.z;\n\n\tlet uv = in.uv;\n\tlet center = textureSampleLevel(fxaa_tex, fxaa_sampler, uv, 0.0);\n\tlet lumaM = fxaa_luma(center.rgb);\n\tlet lumaN = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv + vec2<f32>(0.0, -inv.y), 0.0).rgb);\n\tlet lumaS = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv + vec2<f32>(0.0, inv.y), 0.0).rgb);\n\tlet lumaW = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv + vec2<f32>(-inv.x, 0.0), 0.0).rgb);\n\tlet lumaE = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv + vec2<f32>(inv.x, 0.0), 0.0).rgb);\n\n\tlet lumaMin = min(lumaM, min(min(lumaN, lumaS), min(lumaW, lumaE)));\n\tlet lumaMax = max(lumaM, max(max(lumaN, lumaS), max(lumaW, lumaE)));\n\tlet lumaRange = lumaMax - lumaMin;\n\tif (lumaRange < max(edgeThresholdMin, lumaMax * edgeThreshold)) {\n\t\treturn center;\n\t}\n\n\tlet lumaNW = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv + vec2<f32>(-inv.x, -inv.y), 0.0).rgb);\n\tlet lumaNE = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv + vec2<f32>(inv.x, -inv.y), 0.0).rgb);\n\tlet lumaSW = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv + vec2<f32>(-inv.x, inv.y), 0.0).rgb);\n\tlet lumaSE = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv + vec2<f32>(inv.x, inv.y), 0.0).rgb);\n\n\tlet lumaDownUp = lumaN + lumaS;\n\tlet lumaLeftRight = lumaW + lumaE;\n\tlet lumaLeftCorners = lumaNW + lumaSW;\n\tlet lumaRightCorners = lumaNE + lumaSE;\n\tlet lumaTopCorners = lumaNW + lumaNE;\n\tlet lumaBottomCorners = lumaSW + lumaSE;\n\n\tlet lumaAvg = (2.0 * (lumaDownUp + lumaLeftRight) + (lumaLeftCorners + lumaRightCorners)) * (1.0 / 12.0);\n\tlet subpix1 = clamp(abs(lumaAvg - lumaM) / lumaRange, 0.0, 1.0);\n\tlet subpix2 = (-2.0 * subpix1 + 3.0) * subpix1 * subpix1;\n\tlet subpixOffset = subpix2 * subpix2 * subpixQuality;\n\n\tlet edgeHorz = abs(-2.0 * lumaW + lumaLeftCorners) +\n\t\t2.0 * abs(-2.0 * lumaM + lumaDownUp) +\n\t\tabs(-2.0 * lumaE + lumaRightCorners);\n\tlet edgeVert = abs(-2.0 * lumaN + lumaTopCorners) +\n\t\t2.0 * abs(-2.0 * lumaM + lumaLeftRight) +\n\t\tabs(-2.0 * lumaS + lumaBottomCorners);\n\tlet isHorizontal = edgeHorz >= edgeVert;\n\n\tlet luma1 = select(lumaW, lumaN, isHorizontal);\n\tlet luma2 = select(lumaE, lumaS, isHorizontal);\n\tlet grad1 = abs(luma1 - lumaM);\n\tlet grad2 = abs(luma2 - lumaM);\n\tlet is1Steepest = grad1 >= grad2;\n\tlet gradScaled = 0.25 * max(grad1, grad2);\n\n\tvar stepLength = select(inv.x, inv.y, isHorizontal);\n\tvar lumaLocalAvg = 0.5 * (luma2 + lumaM);\n\tif (is1Steepest) {\n\t\tstepLength = -stepLength;\n\t\tlumaLocalAvg = 0.5 * (luma1 + lumaM);\n\t}\n\n\tvar currentUv = uv;\n\tif (isHorizontal) {\n\t\tcurrentUv.y = currentUv.y + stepLength * 0.5;\n\t} else {\n\t\tcurrentUv.x = currentUv.x + stepLength * 0.5;\n\t}\n\n\tlet offset = select(vec2<f32>(0.0, inv.y), vec2<f32>(inv.x, 0.0), isHorizontal);\n\tvar uv1 = currentUv - offset;\n\tvar uv2 = currentUv + offset;\n\n\tvar lumaEnd1 = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv1, 0.0).rgb) - lumaLocalAvg;\n\tvar lumaEnd2 = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv2, 0.0).rgb) - lumaLocalAvg;\n\tvar reached1 = abs(lumaEnd1) >= gradScaled;\n\tvar reached2 = abs(lumaEnd2) >= gradScaled;\n\n\tfor (var i: i32 = 1; i < 11; i = i + 1) {\n\t\tif (reached1 && reached2) {\n\t\t\tbreak;\n\t\t}\n\t\tlet step = fxaa_step(i);\n\t\tif (!reached1) {\n\t\t\tuv1 = uv1 - offset * step;\n\t\t\tlumaEnd1 = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv1, 0.0).rgb) - lumaLocalAvg;\n\t\t\treached1 = abs(lumaEnd1) >= gradScaled;\n\t\t}\n\t\tif (!reached2) {\n\t\t\tuv2 = uv2 + offset * step;\n\t\t\tlumaEnd2 = fxaa_luma(textureSampleLevel(fxaa_tex, fxaa_sampler, uv2, 0.0).rgb) - lumaLocalAvg;\n\t\t\treached2 = abs(lumaEnd2) >= gradScaled;\n\t\t}\n\t}\n\n\tlet dist1 = select(uv.y - uv1.y, uv.x - uv1.x, isHorizontal);\n\tlet dist2 = select(uv2.y - uv.y, uv2.x - uv.x, isHorizontal);\n\tlet isDir1 = dist1 < dist2;\n\tlet distFinal = min(dist1, dist2);\n\tlet edgeThickness = dist1 + dist2;\n\n\tlet lumaCenterSmaller = lumaM < lumaLocalAvg;\n\tlet endLuma = select(lumaEnd2, lumaEnd1, isDir1);\n\tlet endSmaller = endLuma < 0.0;\n\t// Spelled out instead of endSmaller != lumaCenterSmaller: NSGo v0.3.0's software VM compares bool operands as equal (cmpVal in internal/driver/gpu_software.go ignores irVal.b) (nsgo-dev/nsgo#2335).\n\tlet correctVariation = (endSmaller && !lumaCenterSmaller) || (!endSmaller && lumaCenterSmaller);\n\n\tvar pixelOffset = 0.0;\n\tif (correctVariation && edgeThickness > 0.0) {\n\t\tpixelOffset = max(-distFinal / edgeThickness + 0.5, 0.0);\n\t}\n\tlet finalOffset = max(pixelOffset, subpixOffset);\n\n\tvar finalUv = uv;\n\tif (isHorizontal) {\n\t\tfinalUv.y = finalUv.y + finalOffset * stepLength;\n\t} else {\n\t\tfinalUv.x = finalUv.x + finalOffset * stepLength;\n\t}\n\tlet finalRgb = textureSampleLevel(fxaa_tex, fxaa_sampler, finalUv, 0.0).rgb;\n\treturn vec4<f32>(finalRgb, center.a);\n}\n`",
          "doc": "FXAAWGSL is a portable FXAA 3.11 full-screen post-processing WGSL shader module compiled by [NewFXAAPass].\n\nIt draws a single bufferless full-screen triangle via @builtin(vertex_index) (Draw(3, 0)), uses only textureSampleLevel(..., 0.0) so non-uniform early exits and edge-search loops remain valid on every GPU backend (Metal, Direct3D 11, OpenGL 3.3, WebGPU, WebGL 2, OpenGL ES 3.0, and the software device), and matches [ApplyFXAA] on the CPU for a non-sRGB, gamma-encoded source (see [FXAAPass]).\n\nBind group 0 layout:\n  - @binding(0): uniform FXAAParams (16 bytes: params = (subpixel, edgeThreshold, edgeThresholdMin, 0)); the texel size comes from textureDimensions(fxaa_tex)\n  - @binding(1): texture_2d<f32> source color texture (single-sampled)\n  - @binding(2): sampler (FilterLinear, AddressClampToEdge)\n",
          "file": "pkg/render3d/aa.go",
          "line": 463
        },
        {
          "idents": [
            {
              "name": "FogBindingWGSL",
              "anchor": "FogBindingWGSL"
            }
          ],
          "decl": "const FogBindingWGSL = `@group(3) @binding(0) var<uniform> fog: Fog;\n`",
          "doc": "FogBindingWGSL declares the Fog uniform binding at @group(3) @binding(0) as the variable fog, matching [FogGroup] and [GPUFogBuffer]. Prepend [FogWGSL] first.\n",
          "file": "pkg/render3d/fog.go",
          "line": 108
        },
        {
          "idents": [
            {
              "name": "FogCameraWGSL",
              "anchor": "FogCameraWGSL"
            }
          ],
          "decl": "const FogCameraWGSL = `fn fog_camera_pos(world_pos: vec3<f32>) -> vec3<f32> {\n\tif camera.eye.w > 0.5 {\n\t\treturn camera.eye.xyz;\n\t}\n\tlet view_pos = camera.view * vec4<f32>(world_pos, 1.0);\n\treturn world_pos + camera.eye.xyz * max(-view_pos.z, 0.0);\n}\n`",
          "doc": "FogCameraWGSL declares fog_camera_pos(world_pos) -> vec3<f32>, the point a fogged view ray starts from, read from the camera block [CameraWGSL] declares (prepend that first). It matches [FogCameraPos]:\n  - a perspective camera (camera.eye.w = 1) returns the eye position, so fog grows with the distance from the eye;\n  - an orthographic camera (camera.eye.w = 0) returns world_pos moved back along camera.eye.xyz (the direction toward the viewer) by its view depth, which is the point on the camera's plane the parallel ray starts from, so fog grows with the distance from that plane.\n",
          "file": "pkg/render3d/fog.go",
          "line": 118
        },
        {
          "idents": [
            {
              "name": "FogWGSL",
              "anchor": "FogWGSL"
            }
          ],
          "decl": "const FogWGSL = `struct Fog {\n\tcolor_opacity: vec4<f32>,\n\tdistance_params: vec4<f32>,\n\theight_params: vec4<f32>,\n}\n\n// pow with base e instead of exp: NSGo v0.3.0's software GPU VM evaluates exp, exp2, log, log2 and atan as 0 (internal/driver/gpu_software.go evalCall has no case for them) (nsgo-dev/nsgo#2334). Switch back to exp once NSGo handles it.\nfn fog_exp(x: f32) -> f32 {\n\treturn pow(2.718281828, x);\n}\n\nfn fog_factor(cam_pos: vec3<f32>, world_pos: vec3<f32>, fog: Fog) -> f32 {\n\tlet d = length(world_pos - cam_pos);\n\tvar f_dist: f32 = 0.0;\n\tlet mode = fog.distance_params.x;\n\tif mode > 0.5 && mode < 1.5 {\n\t\tlet start = fog.distance_params.y;\n\t\tlet end = fog.distance_params.z;\n\t\tif end <= start {\n\t\t\tif d >= start {\n\t\t\t\tf_dist = 1.0;\n\t\t\t}\n\t\t} else {\n\t\t\tf_dist = clamp((d - start) / (end - start), 0.0, 1.0);\n\t\t}\n\t} else if mode >= 1.5 && mode < 2.5 {\n\t\tlet density = max(fog.distance_params.w, 0.0);\n\t\tif density > 0.0 {\n\t\t\tlet x = max(d * density, 0.0);\n\t\t\tf_dist = clamp(1.0 - fog_exp(-min(x, 80.0)), 0.0, 1.0);\n\t\t}\n\t} else if mode >= 2.5 {\n\t\tlet density = max(fog.distance_params.w, 0.0);\n\t\tif density > 0.0 {\n\t\t\tlet x = max(d * density, 0.0);\n\t\t\tf_dist = clamp(1.0 - fog_exp(-min(x * x, 80.0)), 0.0, 1.0);\n\t\t}\n\t}\n\n\tvar f_height: f32 = 0.0;\n\tif fog.height_params.x > 0.5 {\n\t\tlet h_base = fog.height_params.y;\n\t\tlet h_falloff = max(fog.height_params.z, 0.0);\n\t\tlet h_density = max(fog.height_params.w, 0.0);\n\t\tif d > 0.0 && h_density > 0.0 {\n\t\t\tlet h0 = cam_pos.y - h_base;\n\t\t\tlet h1 = world_pos.y - h_base;\n\t\t\tlet h_min = min(h0, h1);\n\t\t\tlet delta = abs(h1 - h0);\n\t\t\tlet u = h_falloff * delta;\n\t\t\tvar integral: f32 = 1.0;\n\t\t\tif u < 0.05 {\n\t\t\t\tlet u2 = u * u;\n\t\t\t\tintegral = 1.0 - 0.5 * u + u2 / 6.0 - (u2 * u) / 24.0;\n\t\t\t} else {\n\t\t\t\tintegral = (1.0 - fog_exp(-min(u, 80.0))) / u;\n\t\t\t}\n\t\t\tlet exp_arg = clamp(-h_falloff * h_min, -80.0, 40.0);\n\t\t\tlet tau = max(h_density * d * fog_exp(exp_arg) * integral, 0.0);\n\t\t\tf_height = clamp(1.0 - fog_exp(-min(tau, 80.0)), 0.0, 1.0);\n\t\t}\n\t}\n\n\tlet combined = 1.0 - (1.0 - f_dist) * (1.0 - f_height);\n\treturn clamp(combined, 0.0, clamp(fog.color_opacity.w, 0.0, 1.0));\n}\n\nfn apply_fog(color: vec3<f32>, cam_pos: vec3<f32>, world_pos: vec3<f32>, fog: Fog) -> vec3<f32> {\n\tlet f = fog_factor(cam_pos, world_pos, fog);\n\treturn mix(color, fog.color_opacity.xyz, vec3<f32>(f));\n}\n`",
          "doc": "FogWGSL declares the portable WGSL Fog uniform struct and its evaluation helpers:\n  - fog_factor(cam_pos, world_pos, fog) -> f32\n  - apply_fog(color, cam_pos, world_pos, fog) -> vec3<f32>\n\nIt intentionally declares no @group/@binding variable so any shader can embed Fog in its own uniform layout or prepend [FogBindingWGSL] (or [MaterialFogBindingWGSL]) to bind [GPUFogBuffer].\nIts struct layout matches [AppendFogUniforms] byte for byte, and its formulas match [Fog.Factor] and [Fog.Apply].\n",
          "file": "pkg/render3d/fog.go",
          "line": 34
        },
        {
          "idents": [
            {
              "name": "IBLWGSL",
              "anchor": "IBLWGSL"
            }
          ],
          "decl": "const IBLWGSL = iblWGSLDecl3 + iblWGSLFuncs",
          "doc": "IBLWGSL declares the IBL uniform block, prefiltered environment cubemap, and sampler at [IBLGroup] (@group(3)), together with evaluate_irradiance_sh, env_brdf_approx, fresnel_schlick_roughness, and evaluate_ibl. Prepend it to a PBR fragment shader whose pipeline binds [GPUIBLBuffer.BindGroup] at [IBLGroup]; [LitPBRIBLWGSL] does this for the repository's lit PBR shader.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 143
        },
        {
          "idents": [
            {
              "name": "KTX2FilterKey",
              "anchor": "KTX2FilterKey"
            }
          ],
          "decl": "const KTX2FilterKey = \"game.filter\"",
          "doc": "KTX2FilterKey is the key of a KTX2 file's key/value data that holds the sampling filter the image's import settings ask for, \"linear\" or \"nearest\", as game assets and game tex write it from the filter of the image's sidecar.\n",
          "file": "pkg/render3d/ktx2.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "LightWGSL",
              "anchor": "LightWGSL"
            }
          ],
          "decl": "const LightWGSL = `struct DirectionalLightUniform {\n\tto_light: vec4<f32>,\n\tcolor: vec4<f32>,\n}\n\nstruct PointLightUniform {\n\tposition_range: vec4<f32>,\n\tcolor: vec4<f32>,\n}\n\nstruct SpotLightUniform {\n\tposition_range: vec4<f32>,\n\tdirection_scale: vec4<f32>,\n\tcolor_offset: vec4<f32>,\n}\n\nstruct LightRigUniform {\n\tambient: vec4<f32>,\n\tcounts: vec4<u32>,\n\tdirectional: array<DirectionalLightUniform, 4>,\n\tpoint: array<PointLightUniform, 16>,\n\tspot: array<SpotLightUniform, 8>,\n}\n\n@group(1) @binding(0) var<uniform> lights: LightRigUniform;\n\nfn point_light_attenuation(dist_sq: f32, light_range: f32) -> f32 {\n\tlet inv_d2 = 1.0 / max(dist_sq, 1e-4);\n\tif (light_range > 0.0) {\n\t\tlet ratio = sqrt(max(dist_sq, 0.0)) / light_range;\n\t\tlet ratio2 = ratio * ratio;\n\t\tlet window = clamp(1.0 - ratio2 * ratio2, 0.0, 1.0);\n\t\treturn inv_d2 * window * window;\n\t}\n\treturn inv_d2;\n}\n\nfn spot_cone_attenuation(spot_dir: vec3<f32>, l: vec3<f32>, angle_scale: f32, angle_offset: f32) -> f32 {\n\tlet t = clamp(dot(spot_dir, -l) * angle_scale + angle_offset, 0.0, 1.0);\n\treturn t * t;\n}\n\nfn pbr_brdf(n: vec3<f32>, v: vec3<f32>, l: vec3<f32>, base_color: vec3<f32>, metallic: f32, roughness: f32) -> vec3<f32> {\n\tlet ndotl = dot(n, l);\n\tlet ndotv_raw = dot(n, v);\n\tif (ndotl <= 0.0 || ndotv_raw <= 0.0) {\n\t\treturn vec3<f32>(0.0, 0.0, 0.0);\n\t}\n\tlet ndotv = max(ndotv_raw, 1e-4);\n\tlet m = clamp(metallic, 0.0, 1.0);\n\tlet r = clamp(roughness, 0.045, 1.0);\n\tlet a = r * r;\n\tlet a2 = a * a;\n\tlet pi = 3.14159265;\n\tlet f0 = mix(vec3<f32>(0.04, 0.04, 0.04), base_color, m);\n\tlet h_raw = v + l;\n\tlet h_len2 = dot(h_raw, h_raw);\n\tif (h_len2 <= 1e-8) {\n\t\treturn (vec3<f32>(1.0, 1.0, 1.0) - f0) * (1.0 - m) * base_color / pi;\n\t}\n\tlet h = h_raw / sqrt(h_len2);\n\tlet ndoth = max(dot(n, h), 0.0);\n\tlet vdoth = max(dot(v, h), 0.0);\n\n\tlet denom = ndoth * ndoth * (a2 - 1.0) + 1.0;\n\tlet d = a2 / (pi * denom * denom);\n\n\tlet gv = ndotl * sqrt(ndotv * ndotv * (1.0 - a2) + a2);\n\tlet gl = ndotv * sqrt(ndotl * ndotl * (1.0 - a2) + a2);\n\tlet vis = 0.5 / max(gv + gl, 1e-6);\n\n\tlet t = clamp(1.0 - vdoth, 0.0, 1.0);\n\tlet t2 = t * t;\n\tlet f = f0 + (vec3<f32>(1.0, 1.0, 1.0) - f0) * (t2 * t2 * t);\n\n\tlet spec = d * vis * f;\n\tlet diff = (vec3<f32>(1.0, 1.0, 1.0) - f) * (1.0 - m) * base_color / pi;\n\treturn diff + spec;\n}\n\nfn shade_pbr_visibility(world_pos: vec3<f32>, normal: vec3<f32>, view_dir: vec3<f32>, base_color: vec3<f32>, metallic: f32, roughness: f32, shadow_vis: f32, point0_vis: f32, spot0_vis: f32) -> vec3<f32> {\n\tlet n = normalize(normal);\n\tlet v = normalize(view_dir);\n\tvar lo = lights.ambient.xyz * base_color;\n\tlet dir_count = lights.counts.x;\n\tfor (var di: u32 = 0u; di < 4u; di = di + 1u) {\n\t\tif (di >= dir_count) {\n\t\t\tbreak;\n\t\t}\n\t\tlet dl = lights.directional[di];\n\t\tlet l = dl.to_light.xyz;\n\t\tlet ndotl = max(dot(n, l), 0.0);\n\t\tvar vis = 1.0;\n\t\tif (di == 0u) {\n\t\t\tvis = shadow_vis;\n\t\t}\n\t\tif (ndotl > 0.0) {\n\t\t\tlo = lo + pbr_brdf(n, v, l, base_color, metallic, roughness) * dl.color.xyz * (ndotl * vis);\n\t\t}\n\t}\n\tlet pt_count = lights.counts.y;\n\tfor (var pi_idx: u32 = 0u; pi_idx < 16u; pi_idx = pi_idx + 1u) {\n\t\tif (pi_idx >= pt_count) {\n\t\t\tbreak;\n\t\t}\n\t\tlet pl = lights.point[pi_idx];\n\t\tlet to_light = pl.position_range.xyz - world_pos;\n\t\tlet dist_sq = dot(to_light, to_light);\n\t\tlet atten = point_light_attenuation(dist_sq, pl.position_range.w);\n\t\tif (atten > 0.0 && dist_sq > 1e-12) {\n\t\t\tlet l = to_light / sqrt(dist_sq);\n\t\t\tlet ndotl = max(dot(n, l), 0.0);\n\t\t\tvar pvis = 1.0;\n\t\t\tif (pi_idx == 0u) {\n\t\t\t\tpvis = point0_vis;\n\t\t\t}\n\t\t\tif (ndotl > 0.0) {\n\t\t\t\tlo = lo + pbr_brdf(n, v, l, base_color, metallic, roughness) * (pl.color.xyz * atten * ndotl * pvis);\n\t\t\t}\n\t\t}\n\t}\n\tlet spot_count = lights.counts.z;\n\tfor (var si: u32 = 0u; si < 8u; si = si + 1u) {\n\t\tif (si >= spot_count) {\n\t\t\tbreak;\n\t\t}\n\t\tlet sl = lights.spot[si];\n\t\tlet to_light = sl.position_range.xyz - world_pos;\n\t\tlet dist_sq = dot(to_light, to_light);\n\t\tif (dist_sq > 1e-12) {\n\t\t\tlet l = to_light / sqrt(dist_sq);\n\t\t\tlet atten = point_light_attenuation(dist_sq, sl.position_range.w) * spot_cone_attenuation(sl.direction_scale.xyz, l, sl.direction_scale.w, sl.color_offset.w);\n\t\t\tlet ndotl = max(dot(n, l), 0.0);\n\t\t\tvar svis = 1.0;\n\t\t\tif (si == 0u) {\n\t\t\t\tsvis = spot0_vis;\n\t\t\t}\n\t\t\tif (atten > 0.0 && ndotl > 0.0) {\n\t\t\t\tlo = lo + pbr_brdf(n, v, l, base_color, metallic, roughness) * (sl.color_offset.xyz * atten * ndotl * svis);\n\t\t\t}\n\t\t}\n\t}\n\treturn lo;\n}\n\nfn shade_pbr_shadowed(world_pos: vec3<f32>, normal: vec3<f32>, view_dir: vec3<f32>, base_color: vec3<f32>, metallic: f32, roughness: f32, shadow_vis: f32) -> vec3<f32> {\n\treturn shade_pbr_visibility(world_pos, normal, view_dir, base_color, metallic, roughness, shadow_vis, 1.0, 1.0);\n}\n\nfn shade_pbr(world_pos: vec3<f32>, normal: vec3<f32>, view_dir: vec3<f32>, base_color: vec3<f32>, metallic: f32, roughness: f32) -> vec3<f32> {\n\treturn shade_pbr_shadowed(world_pos, normal, view_dir, base_color, metallic, roughness, 1.0);\n}\n` + linearToSRGBWGSL",
          "doc": "LightWGSL declares the scene lighting uniform block at @group(1) @binding(0) as the variable lights,\nalong with portable glTF 2.0 metallic-roughness PBR shading helpers:\n\n  - point_light_attenuation(dist_sq, light_range) -> f32\n  - spot_cone_attenuation(spot_dir, l, angle_scale, angle_offset) -> f32\n  - pbr_brdf(n, v, l, base_color, metallic, roughness) -> vec3<f32>\n  - shade_pbr(world_pos, normal, view_dir, base_color, metallic, roughness) -> vec3<f32>\n  - shade_pbr_shadowed(world_pos, normal, view_dir, base_color, metallic, roughness, shadow_vis) -> vec3<f32>\n  - shade_pbr_visibility(world_pos, normal, view_dir, base_color, metallic, roughness, directional0_vis, point0_vis, spot0_vis) -> vec3<f32>\n  - linear_to_srgb_channel(c) -> f32\n  - linear_to_srgb(rgb) -> vec3<f32>\n\nPrepend [CameraWGSL] and LightWGSL to any 3D shader that reads scene lights; the block's layout\nmatches [LightUniforms.Encode] and [LightRig.AppendUniformData] byte for byte, and the shading math\nmatches [EvaluatePBR], [ShadePoint], [ShadePointShadowed], [ShadePointVisibility], [PointLightAttenuation], [SpotConeAttenuation], and [LinearToSRGB].\n",
          "file": "pkg/render3d/light.go",
          "line": 67
        },
        {
          "idents": [
            {
              "name": "LightmapWGSL",
              "anchor": "LightmapWGSL"
            }
          ],
          "decl": "const LightmapWGSL = lightmapBodyWGSL + `\n\treturn vec4<f32>(linear_to_srgb(lit), albedo.a);\n}\n`",
          "doc": "LightmapWGSL is the WGSL shader module compiled by [NewLightmapRenderer] for a non-sRGB color target. It encodes the linear result with linear_to_srgb before writing, as [LitPBRWGSL] does, so lightmapped and PBR-lit draws in one pass match; for an sRGB target the renderer compiles a variant that leaves the encode to the hardware. It uses only pow and algebraic math (no exp/exp2/log2) so it executes identically across hardware GPU backends and NSGo's software GPU VM (nsgo-dev/nsgo#2334).\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 832
        },
        {
          "idents": [
            {
              "name": "LitPBRCSMWGSL",
              "anchor": "LitPBRCSMWGSL"
            }
          ],
          "decl": "const LitPBRCSMWGSL = litPBRPreludeWGSL + CSMWGSL + litPBRCSMFragmentHeadWGSL + `\treturn vec4<f32>(linear_to_srgb(lit), pbr_draw.base_color.a);\n}\n`",
          "doc": "LitPBRCSMWGSL is [LitPBRWGSL] with cascaded directional shadows: the same vertex stage, bind groups [CameraGroup], [LightGroup] and [PBRDrawGroup], and lighting, plus [CSMWGSL] at [CSMGroup]. The fragment stage multiplies the first directional light of the [LightRig] (lights.directional[0]) by sample_csm_shadow and the lit color by csm_debug_tint before encoding to sRGB; every other light, the ambient term and emission are unshadowed. [ShadePointShadowed] with [EvaluateCSMShadow] as the visibility, times [CSMFrame.DebugTint], is its CPU reference. Fit the cascades with that light's Direction. Use [NewLitPBRCSMPipeline] or [LitPBRPipelineOptions].CSMLayout to create a pipeline from it.\n",
          "file": "pkg/render3d/csm.go",
          "line": 855
        },
        {
          "idents": [
            {
              "name": "LitPBRColoredWGSL",
              "anchor": "LitPBRColoredWGSL"
            }
          ],
          "decl": "const LitPBRColoredWGSL = litPBRColoredPreludeWGSL + litPBRColoredFragmentHeadWGSL + `\treturn vec4<f32>(linear_to_srgb(lit), (pbr_draw.base_color.a * in.color.a));\n}\n`",
          "doc": "LitPBRColoredWGSL is [LitPBRWGSL] taking [ColoredVertexLayout] vertices (@location(3) linear RGBA\nvertex color for glTF COLOR_0) and multiplying pbr_draw.base_color (both RGB and alpha) by\nin.color in linear space before PBR shading. [NewLitPBRPipelineWithOptions] compiles it (or the\ncorresponding fog, IBL, shadow, spot-shadow, point-shadow, CSM, or linear-output variant) when\n[LitPBRPipelineOptions].VertexColors is set.\n",
          "file": "pkg/render3d/light.go",
          "line": 254
        },
        {
          "idents": [
            {
              "name": "LitPBRFogWGSL",
              "anchor": "LitPBRFogWGSL"
            }
          ],
          "decl": "const LitPBRFogWGSL = litPBRPreludeWGSL + FogWGSL + FogBindingWGSL + FogCameraWGSL + litPBRFragmentHeadWGSL + `\tlet fogged = apply_fog(lit, fog_camera_pos(in.world_pos), in.world_pos, fog);\n\treturn vec4<f32>(linear_to_srgb(fogged), pbr_draw.base_color.a);\n}\n`",
          "doc": "LitPBRFogWGSL is [LitPBRWGSL] with distance and height fog: the same vertex stage, bind groups [CameraGroup], [LightGroup] and [PBRDrawGroup], and lighting, plus a [GPUFogBuffer] at [FogGroup]. The fragment stage blends the lit linear color toward the fog color with [FogWGSL]'s apply_fog from [FogCameraWGSL]'s ray origin before encoding to sRGB. Use [NewLitPBRFogPipeline] to create a pipeline from it.\n",
          "file": "pkg/render3d/fog.go",
          "line": 128
        },
        {
          "idents": [
            {
              "name": "LitPBRIBLWGSL",
              "anchor": "LitPBRIBLWGSL"
            }
          ],
          "decl": "const LitPBRIBLWGSL = litPBRPreludeWGSL + \"\\n\" + IBLWGSL + litPBRFragmentHeadWGSL + `\tlet ibl_lit = lit + evaluate_ibl(in.world_normal, view_dir, pbr_draw.base_color.rgb, pbr_draw.pbr_params.x, pbr_draw.pbr_params.y, 1.0);\n\treturn vec4<f32>(linear_to_srgb(ibl_lit), pbr_draw.base_color.a);\n}\n`",
          "doc": "LitPBRIBLWGSL is [LitPBRWGSL] with image-based lighting: the same vertex stage, bind groups [CameraGroup], [LightGroup] and [PBRDrawGroup], and direct lighting, plus a [GPUIBLBuffer] at [IBLGroup]. The fragment stage adds [IBLWGSL]'s evaluate_ibl (diffuse spherical harmonic irradiance and prefiltered specular, with ambient occlusion 1) to the directly lit color before encoding to sRGB, so [ShadePoint] plus [EvaluateIBL] reproduces it on the CPU. Set the [LightRig]'s ambient light to zero when the environment provides the ambient term. Use [NewLitPBRIBLPipeline] to create a pipeline from it.\n\nIBL and fog both use bind group 3 ([IBLGroup] and [FogGroup]), the last of the four groups every backend guarantees, so this module has no fog.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1435
        },
        {
          "idents": [
            {
              "name": "LitPBRPointShadowWGSL",
              "anchor": "LitPBRPointShadowWGSL"
            }
          ],
          "decl": "const LitPBRPointShadowWGSL = litPBRPreludeWGSL + PointShadowWGSL + litPBRPointShadowFragmentHeadWGSL + `\treturn vec4<f32>(linear_to_srgb(lit), pbr_draw.base_color.a);\n}\n`",
          "doc": "LitPBRPointShadowWGSL is [LitPBRWGSL] with a point light shadow: the same vertex stage, bind groups and lighting, plus [PointShadowWGSL] at [LocalShadowGroup]. The fragment stage multiplies the first point light of the [LightRig] (lights.point[0]) by sample_point_shadow; every other light, the ambient term and emission are unshadowed. [ShadePointVisibility] with Point0 set is its CPU reference. Use [NewLitPBRPointShadowPipeline] or [LitPBRPipelineOptions].PointShadowLayout to create a pipeline from it.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 283
        },
        {
          "idents": [
            {
              "name": "LitPBRProbeIBLWGSL",
              "anchor": "LitPBRProbeIBLWGSL"
            }
          ],
          "decl": "const LitPBRProbeIBLWGSL = litPBRPreludeWGSL + \"\\n\" + ProbeIBLWGSL + litPBRFragmentHeadWGSL + `\tlet ibl_lit = lit + evaluate_probe_ibl(in.world_pos, in.world_normal, view_dir, pbr_draw.base_color.rgb, pbr_draw.pbr_params.x, pbr_draw.pbr_params.y, 1.0);\n\treturn vec4<f32>(linear_to_srgb(ibl_lit), pbr_draw.base_color.a);\n}\n`",
          "doc": "LitPBRProbeIBLWGSL is [LitPBRWGSL] extended with local reflection probes and interpolated light-probe irradiance at [IBLGroup] (group 3). It keeps the exact vertex stage (including the inverse-transpose normal matrix), [LightRig] direct lighting, emissive term, and IEC 61966-2-1 sRGB output encode of [LitPBRWGSL] and [LitPBRIBLWGSL], adding evaluate_probe_ibl before linear_to_srgb so [ShadePoint] plus [EvaluateProbeIBL] reproduces it on the CPU.\n\nSet the [LightRig]'s ambient light to zero when probes or the sky supply the ambient term. Use [NewLitPBRProbeIBLPipeline] or [NewLitPBRProbeIBLPipelineWithOptions] to build a pipeline from it.\n",
          "file": "pkg/render3d/probes.go",
          "line": 160
        },
        {
          "idents": [
            {
              "name": "LitPBRShadowWGSL",
              "anchor": "LitPBRShadowWGSL"
            }
          ],
          "decl": "const LitPBRShadowWGSL = litPBRPreludeWGSL + ShadowWGSL + litPBRShadowFragmentHeadWGSL + `\treturn vec4<f32>(linear_to_srgb(lit), pbr_draw.base_color.a);\n}\n`",
          "doc": "LitPBRShadowWGSL is [LitPBRWGSL] with a directional shadow: the same vertex stage, bind groups [CameraGroup], [LightGroup] and [PBRDrawGroup], and lighting, plus [ShadowWGSL] at [ShadowGroup]. The fragment stage multiplies the first directional light of the [LightRig] (lights.directional[0]) by sample_directional_shadow before encoding to sRGB; every other light, the ambient term and emission are unshadowed. [ShadePointShadowed] is its CPU reference. Use [NewLitPBRShadowPipeline] or [LitPBRPipelineOptions].ShadowLayout to create a pipeline from it.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 1057
        },
        {
          "idents": [
            {
              "name": "LitPBRSkinnedWGSL",
              "anchor": "LitPBRSkinnedWGSL"
            }
          ],
          "decl": "const LitPBRSkinnedWGSL = litPBRSkinnedPreludeWGSL + litPBRFragmentHeadWGSL + `\treturn vec4<f32>(linear_to_srgb(lit), pbr_draw.base_color.a);\n}\n`",
          "doc": "LitPBRSkinnedWGSL is [LitPBRWGSL] for [GPUSkinnedMesh] vertices ([SkinnedVertexLayout]): it binds the joint palette at [LitPBRSkinGroup] (group 3) and shades with the scene lights at [LightGroup] and the per-draw [PBRDrawUniform] at [PBRDrawGroup]. [NewLitPBRPipelineWithOptions] compiles it when [LitPBRPipelineOptions].SkinLayout is set.\n",
          "file": "pkg/render3d/skin.go",
          "line": 161
        },
        {
          "idents": [
            {
              "name": "LitPBRSpotShadowWGSL",
              "anchor": "LitPBRSpotShadowWGSL"
            }
          ],
          "decl": "const LitPBRSpotShadowWGSL = litPBRPreludeWGSL + SpotShadowWGSL + litPBRSpotShadowFragmentHeadWGSL + `\treturn vec4<f32>(linear_to_srgb(lit), pbr_draw.base_color.a);\n}\n`",
          "doc": "LitPBRSpotShadowWGSL is [LitPBRWGSL] with a spot light shadow: the same vertex stage (per-draw model and normal matrices from [PBRDrawUniform]), bind groups [CameraGroup], [LightGroup] and [PBRDrawGroup], and lighting, plus [SpotShadowWGSL] at [LocalShadowGroup]. The fragment stage multiplies the first spot light of the [LightRig] (lights.spot[0]) by sample_spot_shadow; every other light, the ambient term and emission are unshadowed. [ShadePointVisibility] with Spot0 set is its CPU reference. Use [NewLitPBRSpotShadowPipeline] or [LitPBRPipelineOptions].SpotShadowLayout to create a pipeline from it.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 255
        },
        {
          "idents": [
            {
              "name": "LitPBRWGSL",
              "anchor": "LitPBRWGSL"
            }
          ],
          "decl": "const LitPBRWGSL = litPBRPreludeWGSL + litPBRFragmentHeadWGSL + `\treturn vec4<f32>(linear_to_srgb(lit), pbr_draw.base_color.a);\n}\n`",
          "doc": "LitPBRWGSL is a complete, portable metallic-roughness PBR WGSL module built on [CameraWGSL],\n[LightWGSL], [MeshVertexLayout], and a per-draw [PBRDrawUniform] at [PBRDrawGroup]. Entry points\nare vs_main and fs_main; use [NewLitPBRPipeline] to create a pipeline from it. [LitPBRFogWGSL] is\nthe same module with fog, and [LitPBRColoredWGSL] is the [ColoredVertexLayout] variant with glTF\nCOLOR_0 vertex colors.\n",
          "file": "pkg/render3d/light.go",
          "line": 245
        },
        {
          "idents": [
            {
              "name": "MaterialBindingsWGSL",
              "anchor": "MaterialBindingsWGSL"
            }
          ],
          "decl": "const MaterialBindingsWGSL = `struct MaterialUniforms {\n\tbase_color_factor: vec4<f32>,\n\temissive_factor: vec4<f32>,\n\tparams: vec4<f32>,\n\tflags: vec4<f32>,\n}\n\n@group(1) @binding(0) var<uniform> material: MaterialUniforms;\n@group(1) @binding(1) var base_color_tex: texture_2d<f32>;\n@group(1) @binding(2) var base_color_samp: sampler;\n@group(1) @binding(3) var metallic_roughness_tex: texture_2d<f32>;\n@group(1) @binding(4) var metallic_roughness_samp: sampler;\n@group(1) @binding(5) var normal_tex: texture_2d<f32>;\n@group(1) @binding(6) var normal_samp: sampler;\n@group(1) @binding(7) var occlusion_tex: texture_2d<f32>;\n@group(1) @binding(8) var occlusion_samp: sampler;\n@group(1) @binding(9) var emissive_tex: texture_2d<f32>;\n@group(1) @binding(10) var emissive_samp: sampler;\n\nfn pbr_pow5(x: f32) -> f32 {\n\tlet c = clamp(x, 0.0, 1.0);\n\tlet c2 = c * c;\n\treturn c2 * c2 * c;\n}\n\n// material_perturb_normal builds an API-independent tangent frame from precomputed screen-space derivatives (Cramer's rule on dp1/dp2/duv1/duv2) and falls back to a deterministic orthonormal frame from geom_n when derivatives or UVs are degenerate (such as meshes without UVs or software rendering).\nfn material_perturb_normal(\n\tgeom_n: vec3<f32>,\n\tdp1: vec3<f32>,\n\tdp2: vec3<f32>,\n\tduv1: vec2<f32>,\n\tduv2: vec2<f32>,\n\tnormal_sample: vec3<f32>,\n\tnormal_scale: f32,\n) -> vec3<f32> {\n\tvar up_ref = vec3<f32>(0.0, 1.0, 0.0);\n\tif (geom_n.y > 0.99) {\n\t\tup_ref = vec3<f32>(0.0, 0.0, -1.0);\n\t} else if (geom_n.y < -0.99) {\n\t\tup_ref = vec3<f32>(0.0, 0.0, 1.0);\n\t}\n\tvar t_vec = normalize(cross(up_ref, geom_n));\n\tvar b_vec = cross(geom_n, t_vec);\n\n\tlet det = duv1.x * duv2.y - duv1.y * duv2.x;\n\tif (abs(det) > 1e-10) {\n\t\tlet inv_det = 1.0 / det;\n\t\tlet t_raw = (dp1 * duv2.y - dp2 * duv1.y) * inv_det;\n\t\tlet b_dv = (dp2 * duv1.x - dp1 * duv2.x) * inv_det;\n\t\tlet t_ortho = t_raw - geom_n * dot(geom_n, t_raw);\n\t\tlet b_raw = -b_dv;\n\t\tlet b_ortho = b_raw - geom_n * dot(geom_n, b_raw);\n\t\tif (dot(t_ortho, t_ortho) > 1e-10 && dot(b_ortho, b_ortho) > 1e-10) {\n\t\t\tt_vec = normalize(t_ortho);\n\t\t\tb_vec = normalize(b_ortho);\n\t\t}\n\t}\n\n\tlet n_unpacked = normal_sample * 2.0 - vec3<f32>(1.0, 1.0, 1.0);\n\tlet n_ts = normalize(vec3<f32>(n_unpacked.x * normal_scale, n_unpacked.y * normal_scale, n_unpacked.z));\n\treturn normalize(t_vec * n_ts.x + b_vec * n_ts.y + geom_n * n_ts.z);\n}\n\n// pbr_metallic_roughness_direct evaluates glTF 2.0 metallic-roughness Cook-Torrance GGX (Trowbridge-Reitz D, height-correlated Smith-GGX Visibility, Schlick Fresnel, energy-conserving Lambertian diffuse) for one directional light.\nfn pbr_metallic_roughness_direct(\n\tn: vec3<f32>,\n\tv: vec3<f32>,\n\tl: vec3<f32>,\n\tlight_color: vec3<f32>,\n\tbase_color: vec3<f32>,\n\tmetallic: f32,\n\troughness: f32,\n) -> vec3<f32> {\n\tlet ndl = max(dot(n, l), 0.0);\n\tif (ndl <= 0.0) {\n\t\treturn vec3<f32>(0.0, 0.0, 0.0);\n\t}\n\tlet ndv = max(dot(n, v), 1e-4);\n\tlet h = normalize(v + l);\n\tlet ndh = max(dot(n, h), 0.0);\n\tlet vdh = max(dot(v, h), 0.0);\n\n\tlet alpha = roughness * roughness;\n\tlet alpha2 = alpha * alpha;\n\tlet f0 = mix(vec3<f32>(0.04, 0.04, 0.04), base_color, metallic);\n\n\tlet pi = 3.14159265359;\n\tlet denom = ndh * ndh * (alpha2 - 1.0) + 1.0;\n\tlet d_term = alpha2 / max(pi * denom * denom, 1e-7);\n\n\tlet ggx_v = ndl * sqrt(ndv * ndv * (1.0 - alpha2) + alpha2);\n\tlet ggx_l = ndv * sqrt(ndl * ndl * (1.0 - alpha2) + alpha2);\n\tlet vis = 0.5 / max(ggx_v + ggx_l, 1e-5);\n\n\tlet f_term = f0 + (vec3<f32>(1.0, 1.0, 1.0) - f0) * pbr_pow5(1.0 - vdh);\n\tlet spec = f_term * (d_term * vis);\n\tlet diff = (vec3<f32>(1.0, 1.0, 1.0) - f_term) * (1.0 - metallic) * base_color * (1.0 / pi);\n\treturn (diff + spec) * light_color * ndl;\n}\n\n// pbr_metallic_roughness_ambient evaluates an analytic hemisphere diffuse + roughness-filtered specular ambient contribution scaled by ambient occlusion.\nfn pbr_metallic_roughness_ambient(\n\tn: vec3<f32>,\n\tv: vec3<f32>,\n\tsky_color: vec3<f32>,\n\tground_color: vec3<f32>,\n\tbase_color: vec3<f32>,\n\tmetallic: f32,\n\troughness: f32,\n\tocclusion: f32,\n) -> vec3<f32> {\n\tlet ndv = max(dot(n, v), 1e-4);\n\tlet f0 = mix(vec3<f32>(0.04, 0.04, 0.04), base_color, metallic);\n\tlet f_max = max(vec3<f32>(1.0 - roughness, 1.0 - roughness, 1.0 - roughness), f0);\n\tlet f_amb = f0 + (f_max - f0) * pbr_pow5(1.0 - ndv);\n\n\tlet sky_t = clamp(n.y * 0.5 + 0.5, 0.0, 1.0);\n\tlet amb_env = mix(ground_color, sky_color, sky_t);\n\tlet amb_diff = (vec3<f32>(1.0, 1.0, 1.0) - f_amb) * (1.0 - metallic) * base_color * amb_env;\n\n\tlet refl = reflect(-v, n);\n\tlet refl_t = clamp(refl.y * 0.5 + 0.5, 0.0, 1.0);\n\tlet refl_env = mix(ground_color, sky_color, mix(refl_t, 0.5, roughness * roughness));\n\tlet amb_spec = refl_env * f_amb * (1.0 - 0.5 * roughness);\n\n\treturn (amb_diff + amb_spec) * occlusion;\n}\n\nfn material_tonemap_srgb(linear_rgb: vec3<f32>) -> vec3<f32> {\n\tlet c = max(linear_rgb, vec3<f32>(0.0, 0.0, 0.0));\n\tlet mapped = c / (c + vec3<f32>(1.0, 1.0, 1.0));\n\treturn pow(clamp(mapped, vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 1.0, 1.0)), vec3<f32>(1.0 / 2.2, 1.0 / 2.2, 1.0 / 2.2));\n}\n`",
          "doc": "MaterialBindingsWGSL declares [MaterialGroup] (group 1) uniform/texture/sampler bindings together with portable glTF 2.0 metallic-roughness Cook-Torrance GGX shading and cotangent-frame normal-mapping helpers. Prepend [CameraWGSL] and MaterialBindingsWGSL to build custom lighting shaders that share [GPUMaterial].\n",
          "file": "pkg/render3d/material.go",
          "line": 913
        },
        {
          "idents": [
            {
              "name": "MaterialColoredWGSL",
              "anchor": "MaterialColoredWGSL"
            }
          ],
          "decl": "const MaterialColoredWGSL = CameraWGSL + MaterialBindingsWGSL + materialColoredStagesHeadWGSL + `\tlet srgb_rgb = material_tonemap_srgb(linear_rgb);\n` + materialStagesTailWGSL",
          "doc": "MaterialColoredWGSL is [MaterialWGSL] taking [ColoredVertexLayout] vertices (@location(3) linear RGBA color for glTF COLOR_0) and multiplying base_color (base_color_factor * base_sample) by in.color in linear space (both RGB and alpha) before alpha-mask discard and PBR shading. [NewMaterialPipeline] compiles it when [MaterialPipelineOptions].VertexColors is set.\n",
          "file": "pkg/render3d/material.go",
          "line": 1057
        },
        {
          "idents": [
            {
              "name": "MaterialFogBindingWGSL",
              "anchor": "MaterialFogBindingWGSL"
            }
          ],
          "decl": "const MaterialFogBindingWGSL = `@group(2) @binding(0) var<uniform> fog: Fog;\n`",
          "doc": "MaterialFogBindingWGSL declares the Fog uniform binding at @group(2) @binding(0) as the variable fog, matching [MaterialFogGroup] and [GPUFogBuffer]. Prepend [FogWGSL] first.\n",
          "file": "pkg/render3d/fog.go",
          "line": 112
        },
        {
          "idents": [
            {
              "name": "MaterialFogWGSL",
              "anchor": "MaterialFogWGSL"
            }
          ],
          "decl": "const MaterialFogWGSL = CameraWGSL + MaterialBindingsWGSL + FogWGSL + MaterialFogBindingWGSL + FogCameraWGSL + materialStagesHeadWGSL + `\tlet srgb_rgb = material_tonemap_srgb(apply_fog(linear_rgb, fog_camera_pos(in.world_pos), in.world_pos, fog));\n` + materialStagesTailWGSL",
          "doc": "MaterialFogWGSL is [MaterialWGSL] with distance and height fog: the same vertex stage, bind groups [CameraGroup] and [MaterialGroup], and shading, plus a [GPUFogBuffer] at [MaterialFogGroup]. The fragment stage blends the linear radiance toward the fog color with [FogWGSL]'s apply_fog from [FogCameraWGSL]'s ray origin, then tone-maps and encodes it as [MaterialWGSL] does, so the fog color is tone-mapped with the scene. [NewMaterialPipeline] compiles it when [MaterialPipelineOptions].FogLayout is set.\n",
          "file": "pkg/render3d/fog.go",
          "line": 134
        },
        {
          "idents": [
            {
              "name": "MaterialGroup",
              "anchor": "MaterialGroup"
            }
          ],
          "decl": "const MaterialGroup = 1",
          "doc": "MaterialGroup is the bind group index reserved for metallic-roughness materials alongside [CameraGroup] (group 0). [GPUMaterial.Bind] binds at this slot, and [MaterialBindingsWGSL] / [MaterialWGSL] declare every material binding there.\n",
          "file": "pkg/render3d/material.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "MaterialIBLGroup",
              "anchor": "MaterialIBLGroup"
            }
          ],
          "decl": "const MaterialIBLGroup = 2",
          "doc": "MaterialIBLGroup is the bind group index [MaterialIBLWGSL] and [MaterialIBLLinearWGSL] reserve for image-based lighting ([GPUIBLBuffer.BindGroup]), after [CameraGroup] (group 0) and [MaterialGroup] (group 1).\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "MaterialIBLLinearWGSL",
              "anchor": "MaterialIBLLinearWGSL"
            }
          ],
          "decl": "const MaterialIBLLinearWGSL = CameraWGSL + MaterialBindingsWGSL + \"\\n\" + materialIBLDeclWGSL + materialVertexStageWGSL + materialIBLFragmentHeadWGSL + `\tlet srgb_rgb = linear_rgb;\n` + materialStagesTailWGSL",
          "doc": "MaterialIBLLinearWGSL is [MaterialIBLWGSL] writing unclamped linear HDR radiance without tone mapping or gamma encoding, compiled by [NewMaterialIBLPipeline] when [MaterialIBLPipelineOptions].LinearOutput is set for rendering into an [HDRTarget] resolved by [ToneMapPass].\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 121
        },
        {
          "idents": [
            {
              "name": "MaterialIBLWGSL",
              "anchor": "MaterialIBLWGSL"
            }
          ],
          "decl": "const MaterialIBLWGSL = CameraWGSL + MaterialBindingsWGSL + \"\\n\" + materialIBLDeclWGSL + materialVertexStageWGSL + materialIBLFragmentHeadWGSL + `\tlet srgb_rgb = material_tonemap_srgb(linear_rgb);\n` + materialStagesTailWGSL",
          "doc": "MaterialIBLWGSL is the textured glTF 2.0 metallic-roughness PBR shader driven by image-based lighting: [CameraWGSL] at [CameraGroup] (group 0), [MaterialBindingsWGSL] at [MaterialGroup] (group 1), and a [GPUIBLBuffer] at [MaterialIBLGroup] (group 2). It evaluates all five glTF maps (base color, metallic-roughness, tangent-space normal, occlusion, emissive), alpha masking/blending, double-sided normal flipping, and split-sum IBL (L2 SH diffuse irradiance + GGX prefiltered specular), followed by Reinhard tone mapping and gamma 2.2 encoding. Use [NewMaterialIBLPipeline] to create a pipeline from it.\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 117
        },
        {
          "idents": [
            {
              "name": "MaterialSkinnedWGSL",
              "anchor": "MaterialSkinnedWGSL"
            }
          ],
          "decl": "const MaterialSkinnedWGSL = materialSkinnedHeadWGSL + `\tlet srgb_rgb = material_tonemap_srgb(linear_rgb);\n` + materialStagesTailWGSL",
          "doc": "MaterialSkinnedWGSL is [MaterialWGSL] for [GPUSkinnedMesh] vertices ([SkinnedVertexLayout]): it binds the joint palette at [MaterialSkinGroup] (group 2) next to a [GPUMaterial] at [MaterialGroup], so a skinned glTF character draws with its textures. [NewMaterialPipeline] compiles it when [MaterialPipelineOptions].SkinLayout is set.\n",
          "file": "pkg/render3d/skin.go",
          "line": 185
        },
        {
          "idents": [
            {
              "name": "MaterialUniformSize",
              "anchor": "MaterialUniformSize"
            }
          ],
          "decl": "const MaterialUniformSize = 64",
          "doc": "MaterialUniformSize is the byte size of the 16-byte-aligned uniform block [MaterialUniforms.AppendUniformData] and [MaterialUniforms.Encode] write, matching struct MaterialUniforms in [MaterialBindingsWGSL].\n",
          "file": "pkg/render3d/material.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "MaterialWGSL",
              "anchor": "MaterialWGSL"
            }
          ],
          "decl": "const MaterialWGSL = CameraWGSL + MaterialBindingsWGSL + materialStagesHeadWGSL + `\tlet srgb_rgb = material_tonemap_srgb(linear_rgb);\n` + materialStagesTailWGSL",
          "doc": "MaterialWGSL is the complete portable WGSL shader module compiled by [NewMaterialPipeline], combining [CameraWGSL] at [CameraGroup] (group 0), [MaterialBindingsWGSL] at [MaterialGroup] (group 1), [MeshVertexLayout] inputs, tangent-space normal mapping, glTF 2.0 metallic-roughness Cook-Torrance GGX shading under [DefaultMaterialLight], alpha masking/blending, and double-sided normal flipping.\n",
          "file": "pkg/render3d/material.go",
          "line": 1049
        },
        {
          "idents": [
            {
              "name": "MaxSpotLights",
              "anchor": "MaxSpotLights"
            }
          ],
          "decl": "const (\n\t// MaxSpotLights is the maximum number of spot lights a [LightRig] encodes into the GPU uniform block.\n\tMaxSpotLights = 8\n)",
          "doc": "",
          "file": "pkg/render3d/spotlight.go",
          "line": 10
        },
        {
          "idents": [
            {
              "name": "PBRLightmapBindingsWGSL",
              "anchor": "PBRLightmapBindingsWGSL"
            }
          ],
          "decl": "const PBRLightmapBindingsWGSL = pbrLightmapUniformStructWGSL + `@group(3) @binding(0) var<uniform> pbr_lm: PBRLightmapUniform;\n@group(3) @binding(1) var pbr_lightmap_tex: texture_2d<f32>;\n@group(3) @binding(2) var pbr_lightmap_samp: sampler;\n\n` + pbrLightmapDecodeWGSL",
          "doc": "PBRLightmapBindingsWGSL declares the [PBRLightmapGroup] (@group(3)) uniform buffer, lightmap texture, and lightmap sampler together with pbr_decode_lightmap and shade_pbr_direct. Prepend [CameraWGSL], [LightWGSL], and [MaterialBindingsWGSLForGroup](2) before it.\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 138
        },
        {
          "idents": [
            {
              "name": "PointShadowWGSL",
              "anchor": "PointShadowWGSL"
            }
          ],
          "decl": "const PointShadowWGSL = pointShadowStructWGSL + `\n@group(3) @binding(0) var<uniform> point_shadow: PointShadow;\n@group(3) @binding(1) var point_shadow_map: texture_depth_2d;\n@group(3) @binding(2) var point_shadow_sampler: sampler_comparison;\n` + pointShadowSampleFnWGSL",
          "doc": "PointShadowWGSL declares the point shadow uniform block, 3x2 depth atlas and comparison sampler at [LocalShadowGroup] (@group(3)) and the portable sample_point_shadow(world_pos, world_normal) helper returning the point light's visibility in [0, 1]. It equals PointShadowWGSLForGroup(LocalShadowGroup). All six cube faces live in one texture_depth_2d atlas with per-tile UV clamping, so sampling and 3x3 PCF work on every NSGo backend without depth cube maps. [LitPBRPointShadowWGSL] is the ready-made PBR shader built on it.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 239
        },
        {
          "idents": [
            {
              "name": "ProbeIBLWGSL",
              "anchor": "ProbeIBLWGSL"
            }
          ],
          "decl": "const ProbeIBLWGSL = probeIBLWGSLDecl3 + probeIBLWGSLFuncs",
          "doc": "ProbeIBLWGSL declares the reflection-probe and light-probe IBL uniform block, two local reflection cubemaps, sky cubemap, and trilinear sampler at [IBLGroup] (@group(3)), together with box_project_dir, evaluate_probe_irradiance_sh, sample_probe_specular, and evaluate_probe_ibl.\n\nPrepend it to a PBR fragment shader whose pipeline binds [GPUProbeIBLBuffer.BindGroup] at [IBLGroup]; [LitPBRProbeIBLWGSL] does this for [LitPBRWGSL]. Use [ProbeIBLWGSLForGroup] when a custom shader places the bindings at another group.\n",
          "file": "pkg/render3d/probes.go",
          "line": 144
        },
        {
          "idents": [
            {
              "name": "ShadowDepthWGSL",
              "anchor": "ShadowDepthWGSL"
            }
          ],
          "decl": "const ShadowDepthWGSL = `struct ShadowCasterUniform {\n\tlight_mvp: mat4x4<f32>,\n}\n\n@group(0) @binding(0) var<uniform> shadow_caster: ShadowCasterUniform;\n\nstruct ShadowVertexIn {\n\t@location(0) pos: vec3<f32>,\n}\n\n@vertex\nfn vs_shadow(in: ShadowVertexIn) -> @builtin(position) vec4<f32> {\n\treturn shadow_caster.light_mvp * vec4<f32>(in.pos, 1.0);\n}\n`",
          "doc": "ShadowDepthWGSL is the depth-only caster vertex shader used by [DirectionalShadowMap]. It transforms [MeshVertexLayout] position attributes (@location(0)) by shadow_caster.light_mvp at @group(0) @binding(0). Entry point: \"vs_shadow\".\n",
          "file": "pkg/render3d/shadow.go",
          "line": 398
        },
        {
          "idents": [
            {
              "name": "ShadowWGSL",
              "anchor": "ShadowWGSL"
            }
          ],
          "decl": "const ShadowWGSL = shadowStructWGSL + `\n@group(3) @binding(0) var<uniform> shadow: ShadowUniforms;\n@group(3) @binding(1) var shadow_map: texture_depth_2d;\n@group(3) @binding(2) var shadow_sampler: sampler_comparison;\n` + shadowSampleFnWGSL",
          "doc": "ShadowWGSL declares the directional shadow uniform block, depth map and comparison sampler at [ShadowGroup] (@group(3)), and the portable sample_directional_shadow(world_pos, world_normal) helper returning directional light visibility in [0, 1]. It equals ShadowWGSLForGroup(ShadowGroup). Prepend [CameraWGSL] and ShadowWGSL to a custom 3D lit shader to add directional shadows without compute shaders or backend-specific intrinsics; [LitPBRShadowWGSL] is the ready-made PBR shader built on it.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 469
        },
        {
          "idents": [
            {
              "name": "SkinWGSL",
              "anchor": "SkinWGSL"
            }
          ],
          "decl": "const SkinWGSL = skinPaletteStructWGSL + \"@group(1) @binding(0) var<uniform> skin: SkinPalette;\\n\" + skinFunctionsWGSL",
          "doc": "SkinWGSL declares the portable joint palette uniform block at @group(1) @binding(0) ([SkinGroup]) and linear blend skinning helpers matching CPU [SkinVertex]. Prepend [CameraWGSL] and SkinWGSL to a custom skinned vertex shader that binds nothing else at group 1, or use [SkinnedMeshWGSL] via [NewSkinnedMeshPipeline]. To draw a skinned mesh with lights or a material, use [LitPBRPipelineOptions].SkinLayout or [MaterialPipelineOptions].SkinLayout, which declare the same helpers at [LitPBRSkinGroup] and [MaterialSkinGroup].\n\nBlending is evaluated per influence as sum_i (skin.joints[j_i] * v) * w_i rather than summing scaled 4x4 matrices first, which is both fewer scalar operations on GPU hardware and exact across every NSGo backend (Metal, D3D11, OpenGL 3.3, WebGPU, WebGL 2, OpenGL ES 3.0, and the software rasterizer).\n",
          "file": "pkg/render3d/skin.go",
          "line": 66
        },
        {
          "idents": [
            {
              "name": "SkinnedMeshWGSL",
              "anchor": "SkinnedMeshWGSL"
            }
          ],
          "decl": "const SkinnedMeshWGSL = CameraWGSL + \"\\n\" + SkinWGSL + skinnedVertexInWGSL + `\nstruct SkinnedVertexOut {\n\t@builtin(position) clip: vec4<f32>,\n\t@location(0) world: vec3<f32>,\n\t@location(1) normal: vec3<f32>,\n\t@location(2) uv: vec2<f32>,\n}\n\n@vertex\nfn vs_main(in: SkinnedVertexIn) -> SkinnedVertexOut {\n\tvar out: SkinnedVertexOut;\n\tlet world_pos = skin_position(in.pos, in.joints, in.weights);\n\tlet world_nrm = skin_normal(in.normal, in.joints, in.weights);\n\tout.clip = camera.view_proj * vec4<f32>(world_pos, 1.0);\n\tout.world = world_pos;\n\tout.normal = world_nrm;\n\tout.uv = in.uv;\n\treturn out;\n}\n\n@fragment\nfn fs_main(in: SkinnedVertexOut) -> @location(0) vec4<f32> {\n\tvar n = vec3<f32>(0.0, 1.0, 0.0);\n\tif (dot(in.normal, in.normal) > 1e-12) {\n\t\tn = normalize(in.normal);\n\t}\n\tlet v = normalize(camera.eye.xyz - in.world * camera.eye.w);\n\tlet ndotl = max(dot(n, v), 0.0);\n\tlet shade = 0.25 + 0.75 * ndotl;\n\tlet base = vec3<f32>(0.55 + 0.25 * n.x, 0.55 + 0.25 * n.y, 0.6 + 0.25 * n.z);\n\treturn vec4<f32>(base * shade, 1.0);\n}\n`",
          "doc": "SkinnedMeshWGSL is the default ready-to-use WGSL module compiled by [NewSkinnedMeshPipeline]. It binds [CameraBuffer] at [CameraGroup] (group 0) and [GPUSkinPalette] at [SkinGroup] (group 1), skins positions and normals with [SkinWGSL], and applies view-aligned shading with normal-based coloring. It has no lights or materials; use [LitPBRSkinnedWGSL] or [MaterialSkinnedWGSL] for those.\n",
          "file": "pkg/render3d/skin.go",
          "line": 112
        },
        {
          "idents": [
            {
              "name": "SkyboxToneMapWGSL",
              "anchor": "SkyboxToneMapWGSL"
            }
          ],
          "decl": "const SkyboxToneMapWGSL = `struct SkyboxParams {\n\tinv_view_proj: mat4x4<f32>,\n\texposure: f32,\n\tlod: f32,\n\t_pad0: f32,\n\t_pad1: f32,\n}\n\n@group(0) @binding(0) var<uniform> skybox: SkyboxParams;\n@group(0) @binding(1) var skybox_tex: texture_cube<f32>;\n@group(0) @binding(2) var skybox_sampler: sampler;\n\nstruct SkyboxVertexOut {\n\t@builtin(position) pos: vec4<f32>,\n\t@location(0) dir: vec3<f32>,\n}\n\n@vertex\nfn vs_skybox(@builtin(vertex_index) vid: u32) -> SkyboxVertexOut {\n\tvar ndc = vec2<f32>(-1.0, -1.0);\n\tif (vid == 1u) {\n\t\tndc = vec2<f32>(3.0, -1.0);\n\t} else if (vid == 2u) {\n\t\tndc = vec2<f32>(-1.0, 3.0);\n\t}\n\tlet world = skybox.inv_view_proj * vec4<f32>(ndc, 1.0, 1.0);\n\tvar out: SkyboxVertexOut;\n\tout.pos = vec4<f32>(ndc, 1.0, 1.0);\n\tout.dir = world.xyz;\n\treturn out;\n}\n\n@fragment\nfn fs_skybox(in: SkyboxVertexOut) -> @location(0) vec4<f32> {\n\tlet dir = normalize(in.dir);\n\tlet sampled = textureSampleLevel(skybox_tex, skybox_sampler, dir, skybox.lod);\n\tlet c = max(sampled.rgb * skybox.exposure, vec3<f32>(0.0, 0.0, 0.0));\n\tlet mapped = c / (c + vec3<f32>(1.0, 1.0, 1.0));\n\tlet srgb = pow(clamp(mapped, vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 1.0, 1.0)), vec3<f32>(1.0 / 2.2, 1.0 / 2.2, 1.0 / 2.2));\n\treturn vec4<f32>(srgb, 1.0);\n}\n`",
          "doc": "SkyboxToneMapWGSL is [SkyboxWGSL] with Reinhard tone mapping and gamma 2.2 encoding applied after exposure, matching [MaterialWGSL] and [MaterialIBLWGSL] so an HDR [GPUCubemap] draws consistently directly to an LDR render target. [NewSkyboxPipeline] compiles it when [SkyboxPipelineDesc].ToneMap is true.\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "SkyboxWGSL",
              "anchor": "SkyboxWGSL"
            }
          ],
          "decl": "const SkyboxWGSL = `struct SkyboxParams {\n\tinv_view_proj: mat4x4<f32>,\n\texposure: f32,\n\tlod: f32,\n\t_pad0: f32,\n\t_pad1: f32,\n}\n\n@group(0) @binding(0) var<uniform> skybox: SkyboxParams;\n@group(0) @binding(1) var skybox_tex: texture_cube<f32>;\n@group(0) @binding(2) var skybox_sampler: sampler;\n\nstruct SkyboxVertexOut {\n\t@builtin(position) pos: vec4<f32>,\n\t@location(0) dir: vec3<f32>,\n}\n\n@vertex\nfn vs_skybox(@builtin(vertex_index) vid: u32) -> SkyboxVertexOut {\n\tvar ndc = vec2<f32>(-1.0, -1.0);\n\tif (vid == 1u) {\n\t\tndc = vec2<f32>(3.0, -1.0);\n\t} else if (vid == 2u) {\n\t\tndc = vec2<f32>(-1.0, 3.0);\n\t}\n\tlet world = skybox.inv_view_proj * vec4<f32>(ndc, 1.0, 1.0);\n\tvar out: SkyboxVertexOut;\n\tout.pos = vec4<f32>(ndc, 1.0, 1.0);\n\tout.dir = world.xyz;\n\treturn out;\n}\n\n@fragment\nfn fs_skybox(in: SkyboxVertexOut) -> @location(0) vec4<f32> {\n\tlet dir = normalize(in.dir);\n\tlet sampled = textureSampleLevel(skybox_tex, skybox_sampler, dir, skybox.lod);\n\treturn vec4<f32>(sampled.rgb * skybox.exposure, 1.0);\n}\n`",
          "doc": "SkyboxWGSL renders a cubemap as an infinitely distant background using a single fullscreen triangle driven by @builtin(vertex_index) (zero vertex buffers). It emits depth z = 1.0, the far plane, so a pipeline with [gpu.CompareLessEqual] and DepthWrite disabled draws the skybox after opaque geometry without shading occluded pixels: it passes only where the depth buffer still holds its clear value of 1.0, and paints over no geometry nearer than the far plane.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 35
        },
        {
          "idents": [
            {
              "name": "SpotShadowWGSL",
              "anchor": "SpotShadowWGSL"
            }
          ],
          "decl": "const SpotShadowWGSL = spotShadowStructWGSL + `\n@group(3) @binding(0) var<uniform> spot_shadow: SpotShadow;\n@group(3) @binding(1) var spot_shadow_map: texture_depth_2d;\n@group(3) @binding(2) var spot_shadow_sampler: sampler_comparison;\n` + spotShadowSampleFnWGSL",
          "doc": "SpotShadowWGSL declares the spot shadow uniform block, depth map and comparison sampler at [LocalShadowGroup] (@group(3)) and the portable sample_spot_shadow(world_pos, world_normal) helper returning the spot light's visibility in [0, 1]. It equals SpotShadowWGSLForGroup(LocalShadowGroup). [LitPBRSpotShadowWGSL] is the ready-made PBR shader built on it; a custom lit shader multiplies its spot light's contribution by the helper's result, for example through shade_pbr_visibility in [LightWGSL]. It uses only textureSampleCompareLevel, so it runs on every NSGo backend, the WebGL 2 / GLES 3 profile and the software renderer included.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 145
        },
        {
          "idents": [
            {
              "name": "TerrainMaterialBindingsWGSL",
              "anchor": "TerrainMaterialBindingsWGSL"
            }
          ],
          "decl": "const TerrainMaterialBindingsWGSL = `struct TerrainLayerUniform {\n\tcolor_metallic: vec4<f32>,\n\tpbr_params: vec4<f32>,\n\tuv_params: vec4<f32>,\n}\n\nstruct TerrainMaterialUniforms {\n\tmodel: mat4x4<f32>,\n\tnormal_matrix: mat4x4<f32>,\n\tparams: vec4<f32>,\n\ttriplanar_params: vec4<f32>,\n\tlayers: array<TerrainLayerUniform, 8>,\n}\n\n@group(2) @binding(0) var<uniform> terrain: TerrainMaterialUniforms;\n@group(2) @binding(1) var terrain_splat0_tex: texture_2d<f32>;\n@group(2) @binding(2) var terrain_splat1_tex: texture_2d<f32>;\n@group(2) @binding(3) var terrain_splat_samp: sampler;\n@group(2) @binding(4) var terrain_albedo_arr: texture_2d_array<f32>;\n@group(2) @binding(5) var terrain_normal_arr: texture_2d_array<f32>;\n@group(2) @binding(6) var terrain_mrh_arr: texture_2d_array<f32>;\n@group(2) @binding(7) var terrain_layer_samp: sampler;\n\nfn terrain_splat_weight(s0: vec4<f32>, s1: vec4<f32>, idx: u32) -> f32 {\n\tif (idx == 0u) {\n\t\treturn s0.x;\n\t}\n\tif (idx == 1u) {\n\t\treturn s0.y;\n\t}\n\tif (idx == 2u) {\n\t\treturn s0.z;\n\t}\n\tif (idx == 3u) {\n\t\treturn s0.w;\n\t}\n\tif (idx == 4u) {\n\t\treturn s1.x;\n\t}\n\tif (idx == 5u) {\n\t\treturn s1.y;\n\t}\n\tif (idx == 6u) {\n\t\treturn s1.z;\n\t}\n\treturn s1.w;\n}\n\nfn terrain_set_channel(v: vec4<f32>, ch: u32, val: f32) -> vec4<f32> {\n\tif (ch == 0u) {\n\t\treturn vec4<f32>(val, v.y, v.z, v.w);\n\t}\n\tif (ch == 1u) {\n\t\treturn vec4<f32>(v.x, val, v.z, v.w);\n\t}\n\tif (ch == 2u) {\n\t\treturn vec4<f32>(v.x, v.y, val, v.w);\n\t}\n\treturn vec4<f32>(v.x, v.y, v.z, val);\n}\n\nfn terrain_triplanar_factor(geom_n: vec3<f32>, enabled: f32, threshold: f32, blend_w: f32) -> f32 {\n\tif (enabled <= 0.5) {\n\t\treturn 0.0;\n\t}\n\tlet up = clamp(abs(geom_n.y), 0.0, 1.0);\n\tlet half_b = max(blend_w, 0.001) * 0.5;\n\tlet lo = clamp(threshold - half_b, 0.0, 1.0);\n\tlet hi = clamp(threshold + half_b, lo + 0.001, 1.0);\n\tlet t = clamp((hi - up) / (hi - lo), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nfn terrain_triplanar_weights(geom_n: vec3<f32>, sharpness: f32) -> vec3<f32> {\n\tlet an = max(abs(geom_n), vec3<f32>(0.0001, 0.0001, 0.0001));\n\tlet sh = max(sharpness, 0.5);\n\tlet pw = pow(an, vec3<f32>(sh, sh, sh));\n\tlet sum = max(pw.x + pw.y + pw.z, 1e-6);\n\treturn pw / sum;\n}\n\nfn terrain_perturb_normal(\n\tgeom_n: vec3<f32>,\n\tdp1: vec3<f32>,\n\tdp2: vec3<f32>,\n\tduv1: vec2<f32>,\n\tduv2: vec2<f32>,\n\tnormal_sample: vec3<f32>,\n\tnormal_scale: f32,\n) -> vec3<f32> {\n\tvar up_ref = vec3<f32>(0.0, 1.0, 0.0);\n\tif (geom_n.y > 0.99) {\n\t\tup_ref = vec3<f32>(0.0, 0.0, -1.0);\n\t} else if (geom_n.y < -0.99) {\n\t\tup_ref = vec3<f32>(0.0, 0.0, 1.0);\n\t}\n\tvar t_vec = normalize(cross(up_ref, geom_n));\n\tvar b_vec = cross(geom_n, t_vec);\n\n\tlet det = duv1.x * duv2.y - duv1.y * duv2.x;\n\tif (abs(det) > 1e-10) {\n\t\tlet inv_det = 1.0 / det;\n\t\tlet t_raw = (dp1 * duv2.y - dp2 * duv1.y) * inv_det;\n\t\tlet b_dv = (dp2 * duv1.x - dp1 * duv2.x) * inv_det;\n\t\tlet t_ortho = t_raw - geom_n * dot(geom_n, t_raw);\n\t\tlet b_raw = -b_dv;\n\t\tlet b_ortho = b_raw - geom_n * dot(geom_n, b_raw);\n\t\tif (dot(t_ortho, t_ortho) > 1e-10 && dot(b_ortho, b_ortho) > 1e-10) {\n\t\t\tt_vec = normalize(t_ortho);\n\t\t\tb_vec = normalize(b_ortho);\n\t\t}\n\t}\n\n\tlet n_unpacked = normal_sample * 2.0 - vec3<f32>(1.0, 1.0, 1.0);\n\tlet n_ts = normalize(vec3<f32>(n_unpacked.x * normal_scale, n_unpacked.y * normal_scale, n_unpacked.z));\n\treturn normalize(t_vec * n_ts.x + b_vec * n_ts.y + geom_n * n_ts.z);\n}\n\nfn terrain_triplanar_normal(\n\tgeom_n: vec3<f32>,\n\tnx_sample: vec3<f32>,\n\tny_sample: vec3<f32>,\n\tnz_sample: vec3<f32>,\n\tnormal_scale: f32,\n\ttw: vec3<f32>,\n) -> vec3<f32> {\n\tlet ux = nx_sample * 2.0 - vec3<f32>(1.0, 1.0, 1.0);\n\tlet uy = ny_sample * 2.0 - vec3<f32>(1.0, 1.0, 1.0);\n\tlet uz = nz_sample * 2.0 - vec3<f32>(1.0, 1.0, 1.0);\n\n\tlet n_x = normalize(vec3<f32>(ux.x * normal_scale, ux.y * normal_scale, ux.z));\n\tlet n_y = normalize(vec3<f32>(uy.x * normal_scale, uy.y * normal_scale, uy.z));\n\tlet n_z = normalize(vec3<f32>(uz.x * normal_scale, uz.y * normal_scale, uz.z));\n\n\t// Whiteout-style per-axis world normal blending: preserves geom_n exactly on flat maps.\n\tlet wx = normalize(vec3<f32>(geom_n.x * n_x.z, geom_n.y + n_x.y, geom_n.z + n_x.x));\n\tlet wy = normalize(vec3<f32>(geom_n.x + n_y.x, geom_n.y * n_y.z, geom_n.z - n_y.y));\n\tlet wz = normalize(vec3<f32>(geom_n.x + n_z.x, geom_n.y + n_z.y, geom_n.z * n_z.z));\n\treturn normalize(wx * tw.x + wy * tw.y + wz * tw.z);\n}\n`",
          "doc": "TerrainMaterialBindingsWGSL declares the [TerrainMaterialGroup] (@group(2))\nuniform buffer, splat maps, 2D texture arrays, samplers, and portable helper\nfunctions (with every helper declared before its callers for MSL/WGSL\ncompatibility).\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1020
        },
        {
          "idents": [
            {
              "name": "TerrainMaterialCSMWGSL",
              "anchor": "TerrainMaterialCSMWGSL"
            }
          ],
          "decl": "const TerrainMaterialCSMWGSL = terrainPreludeWGSL + CSMWGSL + terrainFragmentBlendWGSL + `\tlet view_depth = csm_view_depth(in.world_pos);\n\tlet shadow_vis = csm_shadow_factor(in.world_pos, geom_n, view_depth);\n\tlet lit = shade_pbr_shadowed(in.world_pos, n, view_dir, blend_albedo, blend_metallic, blend_roughness, shadow_vis) * csm_debug_tint(in.world_pos);\n\treturn vec4<f32>(linear_to_srgb(lit), 1.0);\n}\n`",
          "doc": "TerrainMaterialCSMWGSL is [TerrainMaterialWGSL] with cascaded directional\nshadows via [CSMWGSL] at [CSMGroup] (group 3).\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1405
        },
        {
          "idents": [
            {
              "name": "TerrainMaterialFogWGSL",
              "anchor": "TerrainMaterialFogWGSL"
            }
          ],
          "decl": "const TerrainMaterialFogWGSL = terrainPreludeWGSL + FogWGSL + FogBindingWGSL + FogCameraWGSL + terrainFragmentBlendWGSL + `\tlet lit = shade_pbr(in.world_pos, n, view_dir, blend_albedo, blend_metallic, blend_roughness);\n\tlet fogged = apply_fog(lit, fog_camera_pos(in.world_pos), in.world_pos, fog);\n\treturn vec4<f32>(linear_to_srgb(fogged), 1.0);\n}\n`",
          "doc": "TerrainMaterialFogWGSL is [TerrainMaterialWGSL] with distance and height fog\nvia [FogWGSL] at [FogGroup] (group 3).\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1421
        },
        {
          "idents": [
            {
              "name": "TerrainMaterialShadowWGSL",
              "anchor": "TerrainMaterialShadowWGSL"
            }
          ],
          "decl": "const TerrainMaterialShadowWGSL = terrainPreludeWGSL + ShadowWGSL + terrainFragmentBlendWGSL + `\tlet shadow_vis = sample_directional_shadow(in.world_pos, geom_n);\n\tlet lit = shade_pbr_shadowed(in.world_pos, n, view_dir, blend_albedo, blend_metallic, blend_roughness, shadow_vis);\n\treturn vec4<f32>(linear_to_srgb(lit), 1.0);\n}\n`",
          "doc": "TerrainMaterialShadowWGSL is [TerrainMaterialWGSL] with directional shadow\nmapping via [ShadowWGSL] at [ShadowGroup] (group 3).\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1391
        },
        {
          "idents": [
            {
              "name": "TerrainMaterialWGSL",
              "anchor": "TerrainMaterialWGSL"
            }
          ],
          "decl": "const TerrainMaterialWGSL = terrainPreludeWGSL + terrainFragmentBlendWGSL + `\tlet lit = shade_pbr(in.world_pos, n, view_dir, blend_albedo, blend_metallic, blend_roughness);\n\treturn vec4<f32>(linear_to_srgb(lit), 1.0);\n}\n`",
          "doc": "TerrainMaterialWGSL is the complete portable WGSL shader module for lit\nsplat-map multi-layer PBR terrain combining [CameraWGSL] (group 0),\n[LightWGSL] (group 1), and [TerrainMaterialBindingsWGSL] (group 2).\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1379
        },
        {
          "idents": [
            {
              "name": "ToneMapWGSL",
              "anchor": "ToneMapWGSL"
            }
          ],
          "decl": "const ToneMapWGSL = `struct ToneMapParams {\n\texposure: f32,\n\tinv_gamma: f32,\n\toperator_id: f32,\n\t_pad: f32,\n\tuv_scale: vec2<f32>,\n\tuv_min: vec2<f32>,\n\tuv_max: vec2<f32>,\n\t_pad2: vec2<f32>,\n}\n\n@group(0) @binding(0) var hdr_tex: texture_2d<f32>;\n@group(0) @binding(1) var hdr_samp: sampler;\n@group(0) @binding(2) var<uniform> params: ToneMapParams;\n\nstruct VertexOut {\n\t@builtin(position) pos: vec4<f32>,\n\t@location(0) uv: vec2<f32>,\n}\n\n@vertex\nfn vs_main(@builtin(vertex_index) vid: u32) -> VertexOut {\n\tvar out: VertexOut;\n\tvar x: f32 = -1.0;\n\tvar y: f32 = -1.0;\n\tif (vid == 1u) {\n\t\tx = 3.0;\n\t} else if (vid == 2u) {\n\t\ty = 3.0;\n\t}\n\tout.pos = vec4<f32>(x, y, 0.0, 1.0);\n\tout.uv = vec2<f32>((x + 1.0) * 0.5, (1.0 - y) * 0.5);\n\treturn out;\n}\n\nfn safe_pow_scalar(x: f32, p: f32) -> f32 {\n\tif (x <= 0.0) {\n\t\treturn 0.0;\n\t}\n\treturn pow(x, p);\n}\n\nfn linear_to_srgb_scalar(x: f32) -> f32 {\n\tlet c = clamp(x, 0.0, 1.0);\n\tif (c <= 0.0031308) {\n\t\treturn c * 12.92;\n\t}\n\treturn 1.055 * pow(c, 0.41666667) - 0.055;\n}\n\nfn tonemap_reinhard(c: vec3<f32>) -> vec3<f32> {\n\treturn c / (vec3<f32>(1.0, 1.0, 1.0) + c);\n}\n\nfn tonemap_aces(c: vec3<f32>) -> vec3<f32> {\n\tlet num = c * (2.51 * c + vec3<f32>(0.03, 0.03, 0.03));\n\tlet den = c * (2.43 * c + vec3<f32>(0.59, 0.59, 0.59)) + vec3<f32>(0.14, 0.14, 0.14);\n\treturn clamp(num / den, vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 1.0, 1.0));\n}\n\nfn tonemap_neutral(color: vec3<f32>) -> vec3<f32> {\n\tlet start_compression = 0.76;\n\tlet desaturation = 0.15;\n\tlet x = min(color.x, min(color.y, color.z));\n\tvar offset: f32 = 0.04;\n\tif (x < 0.08) {\n\t\toffset = x - 6.25 * x * x;\n\t}\n\tvar c = color - vec3<f32>(offset, offset, offset);\n\tlet peak = max(c.x, max(c.y, c.z));\n\tif (peak < start_compression) {\n\t\treturn clamp(c, vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 1.0, 1.0));\n\t}\n\tlet d = 1.0 - start_compression;\n\tlet new_peak = 1.0 - (d * d) / (peak + d - start_compression);\n\tc = c * (new_peak / peak);\n\tlet g = 1.0 - 1.0 / (desaturation * (peak - new_peak) + 1.0);\n\treturn clamp(mix(c, vec3<f32>(new_peak, new_peak, new_peak), vec3<f32>(g, g, g)), vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 1.0, 1.0));\n}\n\n// fast_log2_agx computes log2 over AgX's input range with power-of-two range reduction and an atanh series, because NSGo v0.3.0's software GPU has no case for the log2, exp2, log and exp builtins and silently returns 0 for them (nsgo-dev/nsgo#2334).\nfn fast_log2_agx(v: f32) -> f32 {\n\tvar m = clamp(v, 0.0001757761, 16.291573);\n\tvar e: f32 = 0.0;\n\tif (m >= 16.0) {\n\t\tm = m * 0.0625;\n\t\te = e + 4.0;\n\t}\n\tif (m >= 4.0) {\n\t\tm = m * 0.25;\n\t\te = e + 2.0;\n\t}\n\tif (m >= 2.0) {\n\t\tm = m * 0.5;\n\t\te = e + 1.0;\n\t}\n\tif (m < 0.00390625) {\n\t\tm = m * 256.0;\n\t\te = e - 8.0;\n\t}\n\tif (m < 0.0625) {\n\t\tm = m * 16.0;\n\t\te = e - 4.0;\n\t}\n\tif (m < 0.25) {\n\t\tm = m * 4.0;\n\t\te = e - 2.0;\n\t}\n\tif (m < 0.5) {\n\t\tm = m * 2.0;\n\t\te = e - 1.0;\n\t}\n\tif (m < 1.0) {\n\t\tm = m * 2.0;\n\t\te = e - 1.0;\n\t}\n\tif (m >= 1.41421356) {\n\t\tm = m * 0.5;\n\t\te = e + 1.0;\n\t}\n\tlet t = (m - 1.0) / (m + 1.0);\n\tlet t2 = t * t;\n\tlet poly = 1.0 + t2 * (0.33333334 + t2 * (0.2 + t2 * 0.14285715));\n\treturn e + 2.88539008 * t * poly;\n}\n\nfn agx_curve(x: vec3<f32>) -> vec3<f32> {\n\tlet x2 = x * x;\n\tlet x4 = x2 * x2;\n\treturn 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- vec3<f32>(0.00232, 0.00232, 0.00232);\n}\n\nfn tonemap_agx(c: vec3<f32>) -> vec3<f32> {\n\tlet inset = vec3<f32>(\n\t\t0.84247906 * c.x + 0.07843360 * c.y + 0.07922375 * c.z,\n\t\t0.04232824 * c.x + 0.87846864 * c.y + 0.07916613 * c.z,\n\t\t0.04237565 * c.x + 0.07843360 * c.y + 0.87914297 * c.z,\n\t);\n\tlet min_ev = -12.47393;\n\tlet inv_range = 0.06060606;\n\tlet lx = clamp((fast_log2_agx(inset.x) - min_ev) * inv_range, 0.0, 1.0);\n\tlet ly = clamp((fast_log2_agx(inset.y) - min_ev) * inv_range, 0.0, 1.0);\n\tlet lz = clamp((fast_log2_agx(inset.z) - min_ev) * inv_range, 0.0, 1.0);\n\tlet curved = agx_curve(vec3<f32>(lx, ly, lz));\n\tlet outset = vec3<f32>(\n\t\t1.19687901 * curved.x - 0.09802088 * curved.y - 0.09902974 * curved.z,\n\t\t-0.05289685 * curved.x + 1.15190313 * curved.y - 0.09896118 * curved.z,\n\t\t-0.05297164 * curved.x - 0.09804345 * curved.y + 1.15107367 * curved.z,\n\t);\n\tlet clamped = clamp(outset, vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 1.0, 1.0));\n\treturn vec3<f32>(\n\t\tsafe_pow_scalar(clamped.x, 2.2),\n\t\tsafe_pow_scalar(clamped.y, 2.2),\n\t\tsafe_pow_scalar(clamped.z, 2.2),\n\t);\n}\n\n// sanitize_hdr maps NaN and non-positive values to 0 and clamps the rest to the largest finite half float, so overflowed RGBA16Float highlights (+Inf) and extreme exposures never reach the operators as Inf or NaN. It tests NaN with a strict comparison, which is false for NaN under IEEE 754, instead of relying on how max and min treat NaN; NSGo v0.3.0's software VM also treats NaN as equal to every value, so >= and <= would let it through there (nsgo-dev/nsgo#2335).\nfn sanitize_hdr(x: f32) -> f32 {\n\tif (x > 0.0) {\n\t\treturn min(x, 65504.0);\n\t}\n\treturn 0.0;\n}\n\n@fragment\nfn fs_main(in: VertexOut) -> @location(0) vec4<f32> {\n\tlet src = textureSample(hdr_tex, hdr_samp, clamp(in.uv * params.uv_scale, params.uv_min, params.uv_max));\n\tlet raw = src.xyz * params.exposure;\n\tlet exposed = vec3<f32>(sanitize_hdr(raw.x), sanitize_hdr(raw.y), sanitize_hdr(raw.z));\n\tvar mapped: vec3<f32>;\n\tif (params.operator_id < 0.5) {\n\t\tmapped = clamp(exposed, vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 1.0, 1.0));\n\t} else if (params.operator_id < 1.5) {\n\t\tmapped = tonemap_reinhard(exposed);\n\t} else if (params.operator_id < 2.5) {\n\t\tmapped = tonemap_aces(exposed);\n\t} else if (params.operator_id < 3.5) {\n\t\tmapped = tonemap_neutral(exposed);\n\t} else {\n\t\tmapped = tonemap_agx(exposed);\n\t}\n\tif (params.inv_gamma < 0.0) {\n\t\treturn vec4<f32>(mapped, src.w);\n\t}\n\tvar display: vec3<f32>;\n\tif (params.inv_gamma > 0.0) {\n\t\tdisplay = vec3<f32>(\n\t\t\tsafe_pow_scalar(clamp(mapped.x, 0.0, 1.0), params.inv_gamma),\n\t\t\tsafe_pow_scalar(clamp(mapped.y, 0.0, 1.0), params.inv_gamma),\n\t\t\tsafe_pow_scalar(clamp(mapped.z, 0.0, 1.0), params.inv_gamma),\n\t\t);\n\t} else {\n\t\tdisplay = vec3<f32>(\n\t\t\tlinear_to_srgb_scalar(mapped.x),\n\t\t\tlinear_to_srgb_scalar(mapped.y),\n\t\t\tlinear_to_srgb_scalar(mapped.z),\n\t\t);\n\t}\n\treturn vec4<f32>(display, src.w);\n}\n`",
          "doc": "ToneMapWGSL is the full-screen triangle WGSL shader used by [ToneMapPass].\n\nIt binds the HDR source texture at @group(0) @binding(0), its sampler at @group(0) @binding(1), and the [ToneMapUniformSize]-byte uniform block written by [AppendToneMapUniforms] at @group(0) @binding(2).\n\nEntry points: vs_main (vertexless full-screen triangle via @builtin(vertex_index), drawn with pass.Draw(3, 0)) and fs_main (exposure, operator dispatch across None/Reinhard/ACES/Neutral/AgX, and exact sRGB or power-law gamma encoding).\n\nAll math uses only operations supported across WebGPU, Metal, D3D11, OpenGL 3.3, WebGL 2, OpenGL ES 3.0, and NSGo's software GPU VM (no exp or log2 builtins) (nsgo-dev/nsgo#2334).\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 369
        },
        {
          "idents": [
            {
              "name": "ToonOutlineWGSL",
              "anchor": "ToonOutlineWGSL"
            }
          ],
          "decl": "const ToonOutlineWGSL = CameraWGSL + `\nstruct ToonMaterialUniform {\n\tbase_color: vec4<f32>,\n\tshadow_bands: vec4<f32>,\n\tspec_color_pow: vec4<f32>,\n\tthresholds: vec4<f32>,\n\trim_outline: vec4<f32>,\n\toutline_color: vec4<f32>,\n\tflags: vec4<f32>,\n}\n\nstruct ToonSceneUniform {\n\tmodel: mat4x4<f32>,\n\tnormal_mat: mat4x4<f32>,\n\tto_light: vec4<f32>,\n\tlight_color: vec4<f32>,\n\tambient_color: vec4<f32>,\n}\n\n@group(1) @binding(0) var<uniform> material: ToonMaterialUniform;\n@group(2) @binding(0) var<uniform> scene: ToonSceneUniform;\n\nstruct ToonOutlineIn {\n\t@location(0) pos: vec3<f32>,\n\t@location(1) normal: vec3<f32>,\n\t@location(2) uv: vec2<f32>,\n}\n\nstruct ToonOutlineOut {\n\t@builtin(position) clip: vec4<f32>,\n\t@location(0) color: vec4<f32>,\n}\n\n@vertex\nfn vs_outline(in: ToonOutlineIn) -> ToonOutlineOut {\n\tvar out: ToonOutlineOut;\n\tlet world_pos = (scene.model * vec4<f32>(in.pos, 1.0)).xyz;\n\tlet raw_n = (scene.normal_mat * vec4<f32>(in.normal, 0.0)).xyz;\n\tlet n_len = length(raw_n);\n\tvar world_n = vec3<f32>(0.0, 0.0, 0.0);\n\tif (n_len > 0.00001) {\n\t\tworld_n = raw_n / n_len;\n\t}\n\tlet width = material.rim_outline.w;\n\tif (material.flags.y > 0.5) {\n\t\tlet base_clip = camera.view_proj * vec4<f32>(world_pos, 1.0);\n\t\tlet clip_n = (camera.view_proj * vec4<f32>(world_n, 0.0)).xy;\n\t\t// The projection's width-to-height ratio. NDC x spans the viewport's width and y its height, so the offset is made isotropic in pixels by measuring it in units of NDC y.\n\t\tvar aspect = 1.0;\n\t\tif (abs(camera.proj[0][0]) > 0.00001) {\n\t\t\taspect = abs(camera.proj[1][1] / camera.proj[0][0]);\n\t\t}\n\t\tlet screen_n = vec2<f32>(clip_n.x * aspect, clip_n.y);\n\t\tlet sn_len = length(screen_n);\n\t\tvar offset = vec2<f32>(0.0, 0.0);\n\t\tif (sn_len > 0.00001) {\n\t\t\tlet dir = screen_n / sn_len;\n\t\t\toffset = vec2<f32>(dir.x / aspect, dir.y) * (width * base_clip.w);\n\t\t}\n\t\tout.clip = vec4<f32>(base_clip.xy + offset, base_clip.z, base_clip.w);\n\t} else {\n\t\tlet extruded = world_pos + world_n * width;\n\t\tout.clip = camera.view_proj * vec4<f32>(extruded, 1.0);\n\t}\n\tout.color = material.outline_color;\n\treturn out;\n}\n\n@fragment\nfn fs_outline(in: ToonOutlineOut) -> @location(0) vec4<f32> {\n\treturn in.color;\n}\n`",
          "doc": "ToonOutlineWGSL is the inverted-hull outline WGSL shader paired with [ToonWGSL] (#262). Built into a pipeline with [gpu.CullFront] via [NewToonOutlinePipeline], it extrudes each vertex outward along its world-space normal (or projected clip-space normal when [ToonMaterial.OutlineClipSpace] is set) by [ToonMaterial.OutlineWidth] and shades back faces with [ToonMaterial.OutlineColor]. It shares the exact bind group layouts of [ToonWGSL] so the same camera, material, and scene bind groups draw both passes.\n",
          "file": "pkg/render3d/toon.go",
          "line": 194
        },
        {
          "idents": [
            {
              "name": "ToonWGSL",
              "anchor": "ToonWGSL"
            }
          ],
          "decl": "const ToonWGSL = CameraWGSL + `\nstruct ToonMaterialUniform {\n\tbase_color: vec4<f32>,\n\tshadow_bands: vec4<f32>,\n\tspec_color_pow: vec4<f32>,\n\tthresholds: vec4<f32>,\n\trim_outline: vec4<f32>,\n\toutline_color: vec4<f32>,\n\tflags: vec4<f32>,\n}\n\nstruct ToonSceneUniform {\n\tmodel: mat4x4<f32>,\n\tnormal_mat: mat4x4<f32>,\n\tto_light: vec4<f32>,\n\tlight_color: vec4<f32>,\n\tambient_color: vec4<f32>,\n}\n\n@group(1) @binding(0) var<uniform> material: ToonMaterialUniform;\n@group(1) @binding(1) var base_tex: texture_2d<f32>;\n@group(1) @binding(2) var base_samp: sampler;\n@group(1) @binding(3) var ramp_tex: texture_2d<f32>;\n@group(1) @binding(4) var ramp_samp: sampler;\n\n@group(2) @binding(0) var<uniform> scene: ToonSceneUniform;\n\nstruct ToonVertexIn {\n\t@location(0) pos: vec3<f32>,\n\t@location(1) normal: vec3<f32>,\n\t@location(2) uv: vec2<f32>,\n}\n\nstruct ToonVertexOut {\n\t@builtin(position) clip: vec4<f32>,\n\t@location(0) world_pos: vec3<f32>,\n\t@location(1) world_normal: vec3<f32>,\n\t@location(2) uv: vec2<f32>,\n}\n\nfn toon_smoothstep(edge0: f32, edge1: f32, x: f32) -> f32 {\n\tlet denom = max(edge1 - edge0, 0.00001);\n\tlet t = clamp((x - edge0) / denom, 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nfn toon_quantize_band(ndl: f32, bands: f32, smoothness: f32) -> f32 {\n\tlet c = clamp(ndl, 0.0, 1.0);\n\tlet n = max(bands, 2.0);\n\tlet x = c * n;\n\tif (smoothness <= 0.00001) {\n\t\tlet idx = min(floor(x), n - 1.0);\n\t\treturn idx / (n - 1.0);\n\t}\n\tlet w = min(smoothness, 0.5);\n\tlet k = clamp(floor(x + 0.5), 1.0, n - 1.0);\n\tlet t = toon_smoothstep(k - w, k + w, x);\n\treturn (k - 1.0 + t) / (n - 1.0);\n}\n\n@vertex\nfn vs_main(in: ToonVertexIn) -> ToonVertexOut {\n\tvar out: ToonVertexOut;\n\tlet world = scene.model * vec4<f32>(in.pos, 1.0);\n\tout.clip = camera.view_proj * world;\n\tout.world_pos = world.xyz;\n\tout.world_normal = (scene.normal_mat * vec4<f32>(in.normal, 0.0)).xyz;\n\tout.uv = in.uv;\n\treturn out;\n}\n\n@fragment\nfn fs_main(in: ToonVertexOut) -> @location(0) vec4<f32> {\n\tlet texel = textureSample(base_tex, base_samp, in.uv);\n\tlet albedo = material.base_color * texel;\n\n\tlet n_len = length(in.world_normal);\n\tvar n = vec3<f32>(0.0, 1.0, 0.0);\n\tif (n_len > 0.00001) {\n\t\tn = in.world_normal / n_len;\n\t}\n\n\tlet l_len = length(scene.to_light.xyz);\n\tvar l = vec3<f32>(0.0, 1.0, 0.0);\n\tif (l_len > 0.00001) {\n\t\tl = scene.to_light.xyz / l_len;\n\t}\n\n\tlet to_eye = camera.eye.xyz - in.world_pos * camera.eye.w;\n\tlet v_len = length(to_eye);\n\tvar v = vec3<f32>(0.0, 0.0, 1.0);\n\tif (v_len > 0.00001) {\n\t\tv = to_eye / v_len;\n\t}\n\n\tlet ndl = clamp(dot(n, l), 0.0, 1.0);\n\tlet ramp_sample = textureSample(ramp_tex, ramp_samp, vec2<f32>(ndl, 0.5));\n\tvar diffuse_tint: vec3<f32>;\n\tif (material.flags.x > 0.5) {\n\t\tdiffuse_tint = ramp_sample.rgb;\n\t} else {\n\t\tlet band = toon_quantize_band(ndl, material.shadow_bands.w, material.thresholds.x);\n\t\tdiffuse_tint = mix(material.shadow_bands.xyz, vec3<f32>(1.0, 1.0, 1.0), band);\n\t}\n\n\tlet lit_diffuse = albedo.rgb * (diffuse_tint * scene.light_color.xyz + scene.ambient_color.xyz);\n\n\tvar spec_factor: f32 = 0.0;\n\tif (ndl > 0.0) {\n\t\tlet half_sum = l + v;\n\t\tlet half_len = length(half_sum);\n\t\tif (half_len > 0.00001) {\n\t\t\tlet h = half_sum / half_len;\n\t\t\tlet ndh = max(dot(n, h), 0.0);\n\t\t\tif (ndh > 0.0) {\n\t\t\t\tlet spec_raw = pow(ndh, material.spec_color_pow.w);\n\t\t\t\tlet spec_thresh = material.thresholds.y;\n\t\t\t\tlet spec_smooth = material.thresholds.z;\n\t\t\t\tif (spec_smooth <= 0.00001) {\n\t\t\t\t\tif (spec_raw >= spec_thresh) {\n\t\t\t\t\t\tspec_factor = 1.0;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tspec_factor = toon_smoothstep(spec_thresh - spec_smooth, spec_thresh + spec_smooth, spec_raw);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tlet lit_spec = material.spec_color_pow.xyz * scene.light_color.xyz * spec_factor;\n\n\tlet ndv = clamp(dot(n, v), 0.0, 1.0);\n\tlet fresnel = 1.0 - ndv;\n\tlet rim_thresh = material.thresholds.w;\n\tlet rim_smooth = material.flags.z;\n\tvar rim_factor: f32 = 0.0;\n\tif (rim_smooth <= 0.00001) {\n\t\tif (fresnel >= rim_thresh) {\n\t\t\trim_factor = 1.0;\n\t\t}\n\t} else {\n\t\trim_factor = toon_smoothstep(rim_thresh - rim_smooth, rim_thresh + rim_smooth, fresnel);\n\t}\n\tlet lit_rim = material.rim_outline.xyz * rim_factor;\n\n\tlet rgb = clamp(lit_diffuse + lit_spec + lit_rim, vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 1.0, 1.0));\n\treturn vec4<f32>(rgb, albedo.a);\n}\n`",
          "doc": "ToonWGSL is the portable cel/toon shading WGSL shader (#262). It uses [CameraWGSL] at @group(0), [GPUToonMaterial] at @group(1), and [ToonSceneUniform] at @group(2), with [MeshVertexLayout] on vertex buffer 0. It uses only standard vertex/fragment stages and arithmetic/pow builtins so it runs identically on WebGPU, Metal, Vulkan, Direct3D 11, OpenGL 3.3, OpenGL ES 3.0, WebGL 2, and NSGo's software renderer.\n",
          "file": "pkg/render3d/toon.go",
          "line": 44
        },
        {
          "idents": [
            {
              "name": "TransmissionBackgroundWGSL",
              "anchor": "TransmissionBackgroundWGSL"
            }
          ],
          "decl": "const TransmissionBackgroundWGSL = `struct TransmissionBackgroundParams {\n\tuv_scale_min: vec4<f32>,\n\tuv_max_flags: vec4<f32>,\n}\n\n@group(3) @binding(0) var<uniform> transmission_bg: TransmissionBackgroundParams;\n@group(3) @binding(1) var transmission_bg_tex: texture_2d<f32>;\n@group(3) @binding(2) var transmission_bg_samp: sampler;\n\nfn ext_srgb_to_linear_ch(c: f32) -> f32 {\n\tlet x = clamp(c, 0.0, 1.0);\n\tif (x <= 0.04045) {\n\t\treturn x / 12.92;\n\t}\n\treturn pow((x + 0.055) / 1.055, 2.4);\n}\n\nfn ext_decode_bg(rgb: vec3<f32>) -> vec3<f32> {\n\tif (transmission_bg.uv_max_flags.z > 0.5) {\n\t\treturn vec3<f32>(\n\t\t\text_srgb_to_linear_ch(rgb.x),\n\t\t\text_srgb_to_linear_ch(rgb.y),\n\t\t\text_srgb_to_linear_ch(rgb.z),\n\t\t);\n\t}\n\treturn rgb;\n}\n\nfn ext_sample_transmission_bg(frag_xy: vec2<f32>, roughness: f32) -> vec3<f32> {\n\tlet dims = textureDimensions(transmission_bg_tex);\n\tlet bg_dims = vec2<f32>(max(f32(dims.x), 1.0), max(f32(dims.y), 1.0));\n\tlet uv_min = transmission_bg.uv_scale_min.zw;\n\tlet uv_max = transmission_bg.uv_max_flags.xy;\n\tlet base_uv = clamp((frag_xy / bg_dims) * transmission_bg.uv_scale_min.xy, uv_min, uv_max);\n\tlet c0 = ext_decode_bg(textureSampleLevel(transmission_bg_tex, transmission_bg_samp, base_uv, 0.0).rgb);\n\tif (roughness <= 0.08) {\n\t\treturn c0;\n\t}\n\tlet r2 = roughness * roughness;\n\tlet step_uv = (vec2<f32>(1.0, 1.0) / bg_dims) * (r2 * 3.0);\n\tlet c1 = ext_decode_bg(textureSampleLevel(transmission_bg_tex, transmission_bg_samp, clamp(base_uv + vec2<f32>( step_uv.x, 0.0), uv_min, uv_max), 0.0).rgb);\n\tlet c2 = ext_decode_bg(textureSampleLevel(transmission_bg_tex, transmission_bg_samp, clamp(base_uv + vec2<f32>(-step_uv.x, 0.0), uv_min, uv_max), 0.0).rgb);\n\tlet c3 = ext_decode_bg(textureSampleLevel(transmission_bg_tex, transmission_bg_samp, clamp(base_uv + vec2<f32>(0.0,  step_uv.y), uv_min, uv_max), 0.0).rgb);\n\tlet c4 = ext_decode_bg(textureSampleLevel(transmission_bg_tex, transmission_bg_samp, clamp(base_uv + vec2<f32>(0.0, -step_uv.y), uv_min, uv_max), 0.0).rgb);\n\treturn (c0 * 2.0 + c1 + c2 + c3 + c4) * (1.0 / 6.0);\n}\n`",
          "doc": "TransmissionBackgroundWGSL declares the per-frame transmission background bindings at [TransmissionBackgroundGroup] (group 3) and the helper ext_sample_transmission_bg(frag_xy, roughness) -> vec3<f32>. Use [TransmissionBackgroundWGSLForGroup] to place it at another bind group (such as [MaterialTransmissionBackgroundGroup] = 2).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 836
        },
        {
          "idents": [
            {
              "name": "UnlitUniformSize",
              "anchor": "UnlitUniformSize"
            }
          ],
          "decl": "const UnlitUniformSize = 32",
          "doc": "UnlitUniformSize is the byte size of the unlit material uniform block written by [AppendUnlitUniforms] and declared by [UnlitWGSL]:\n  - base_color_factor: vec4<f32> (16 bytes, offset 0)\n  - params: vec4<f32> (16 bytes, offset 16) holding (alpha_cutoff, alpha_mode, use_vertex_color, 0)\n",
          "file": "pkg/render3d/unlit.go",
          "line": 44
        },
        {
          "idents": [
            {
              "name": "UnlitWGSL",
              "anchor": "UnlitWGSL"
            }
          ],
          "decl": "const UnlitWGSL = CameraWGSL + `\nstruct UnlitUniforms {\n\tbase_color_factor: vec4<f32>,\n\tparams: vec4<f32>,\n}\n\n@group(1) @binding(0) var<uniform> unlit_mat: UnlitUniforms;\n@group(1) @binding(1) var unlit_tex: texture_2d<f32>;\n@group(1) @binding(2) var unlit_samp: sampler;\n\nstruct UnlitVertexIn {\n\t@location(0) pos: vec3<f32>,\n\t@location(1) normal: vec3<f32>,\n\t@location(2) uv: vec2<f32>,\n\t@location(3) color: vec4<f32>,\n}\n\nstruct UnlitVertexOut {\n\t@builtin(position) clip: vec4<f32>,\n\t@location(0) uv: vec2<f32>,\n\t@location(1) color: vec4<f32>,\n}\n\n@vertex\nfn vs_main(in: UnlitVertexIn) -> UnlitVertexOut {\n\tvar out: UnlitVertexOut;\n\tout.clip = camera.view_proj * vec4<f32>(in.pos, 1.0);\n\tout.uv = in.uv;\n\tout.color = in.color;\n\treturn out;\n}\n\nfn unlit_linear_to_srgb_ch(c: f32) -> f32 {\n\tlet v = clamp(c, 0.0, 1.0);\n\tif v <= 0.0031308 {\n\t\treturn v * 12.92;\n\t}\n\treturn 1.055 * pow(v, 1.0 / 2.4) - 0.055;\n}\n\nfn unlit_linear_to_srgb(rgb: vec3<f32>) -> vec3<f32> {\n\treturn vec3<f32>(\n\t\tunlit_linear_to_srgb_ch(rgb.x),\n\t\tunlit_linear_to_srgb_ch(rgb.y),\n\t\tunlit_linear_to_srgb_ch(rgb.z),\n\t);\n}\n\n@fragment\nfn fs_main(in: UnlitVertexOut) -> @location(0) vec4<f32> {\n\tlet texel = textureSample(unlit_tex, unlit_samp, in.uv);\n\tvar vcol = vec4<f32>(1.0, 1.0, 1.0, 1.0);\n\tif unlit_mat.params.z > 0.5 {\n\t\tvcol = in.color;\n\t}\n\tlet base = unlit_mat.base_color_factor * texel * vcol;\n\tvar out_alpha = 1.0;\n\tif unlit_mat.params.y > 0.5 && unlit_mat.params.y < 1.5 {\n\t\tif base.a < unlit_mat.params.x {\n\t\t\tdiscard;\n\t\t}\n\t\tout_alpha = 1.0;\n\t} else if unlit_mat.params.y >= 1.5 {\n\t\tout_alpha = clamp(base.a, 0.0, 1.0);\n\t}\n\treturn vec4<f32>(unlit_linear_to_srgb(base.rgb), out_alpha);\n}\n\n@fragment\nfn fs_linear(in: UnlitVertexOut) -> @location(0) vec4<f32> {\n\tlet texel = textureSample(unlit_tex, unlit_samp, in.uv);\n\tvar vcol = vec4<f32>(1.0, 1.0, 1.0, 1.0);\n\tif unlit_mat.params.z > 0.5 {\n\t\tvcol = in.color;\n\t}\n\tlet base = unlit_mat.base_color_factor * texel * vcol;\n\tvar out_alpha = 1.0;\n\tif unlit_mat.params.y > 0.5 && unlit_mat.params.y < 1.5 {\n\t\tif base.a < unlit_mat.params.x {\n\t\t\tdiscard;\n\t\t}\n\t\tout_alpha = 1.0;\n\t} else if unlit_mat.params.y >= 1.5 {\n\t\tout_alpha = clamp(base.a, 0.0, 1.0);\n\t}\n\treturn vec4<f32>(base.rgb, out_alpha);\n}\n`",
          "doc": "UnlitWGSL is the built-in WGSL shader module for glTF KHR_materials_unlit surfaces with linear RGBA vertex colors (COLOR_0).\n\nBind groups:\n  - @group(0) @binding(0): [CameraWGSL] camera uniform block ([CameraBuffer])\n  - @group(1) @binding(0..2): UnlitUniforms, base-color texture, and sampler ([MaterialDefaults.UnlitLayout] at [MaterialGroup])\n\nVertex inputs match [ColoredVertexLayout] (@location(0) pos, @location(1) normal, @location(2) uv, @location(3) color).\n\nEntry points:\n  - \"vs_main\": transforms positions by camera.view_proj and forwards UV and linear vertex color\n  - \"fs_main\": evaluates baseColorFactor * baseColorTexture * vertexColor, applies alpha-mask discard and alpha mode, and encodes linear RGB to sRGB (for non-sRGB targets such as FormatRGBA8Unorm)\n  - \"fs_linear\": evaluates the same unlit color and outputs linear RGBA directly (for sRGB targets, where the GPU encodes linear -> sRGB on write, and for [UnlitPipelineOptions].LinearOutput)\n",
          "file": "pkg/render3d/unlit.go",
          "line": 821
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrInvalidClusterConfig",
              "anchor": "ErrInvalidClusterConfig"
            },
            {
              "name": "ErrInvalidClusterLight",
              "anchor": "ErrInvalidClusterLight"
            }
          ],
          "decl": "var (\n\t// ErrInvalidClusterConfig is wrapped by every error [ClusterConfig.Validate], [NewClusterGrid], and [NewClusteredLightSystem] return for malformed cluster settings.\n\tErrInvalidClusterConfig = errors.New(\"render3d: invalid cluster config\")\n\t// ErrInvalidClusterLight is wrapped by every error [ClusterLight.Validate] returns for malformed light data.\n\tErrInvalidClusterLight = errors.New(\"render3d: invalid cluster light\")\n)",
          "doc": "Sentinel errors returned for invalid clustered lighting configuration or light data.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 58
        },
        {
          "idents": [
            {
              "name": "ErrUploaderClosed",
              "anchor": "ErrUploaderClosed"
            },
            {
              "name": "ErrUploadCanceled",
              "anchor": "ErrUploadCanceled"
            },
            {
              "name": "ErrUploadQueueFull",
              "anchor": "ErrUploadQueueFull"
            }
          ],
          "decl": "var (\n\t// ErrUploaderClosed is returned when queueing on a closed [Uploader] or when an unfinished upload is aborted because the uploader or its scope closed.\n\tErrUploaderClosed = errors.New(\"render3d: uploader closed\")\n\n\t// ErrUploadCanceled is wrapped by errors returned when an upload is canceled via [UploadHandle.Cancel] or its caller context.\n\tErrUploadCanceled = errors.New(\"render3d: upload canceled\")\n\n\t// ErrUploadQueueFull is returned when queueing an upload would exceed [UploaderOptions.MaxPending].\n\tErrUploadQueueFull = errors.New(\"render3d: upload queue full\")\n)",
          "doc": "",
          "file": "pkg/render3d/uploader.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "ErrInvalidCSM",
              "anchor": "ErrInvalidCSM"
            }
          ],
          "decl": "var ErrInvalidCSM = errors.New(\"render3d: invalid cascaded shadow map\")",
          "doc": "ErrInvalidCSM is wrapped by every validation or invalid-argument error returned by the cascaded shadow map API.\n",
          "file": "pkg/render3d/csm.go",
          "line": 51
        },
        {
          "idents": [
            {
              "name": "ErrInvalidCubemap",
              "anchor": "ErrInvalidCubemap"
            }
          ],
          "decl": "var ErrInvalidCubemap = errors.New(\"render3d: invalid cubemap\")",
          "doc": "ErrInvalidCubemap is wrapped by every error returned for malformed cubemap inputs, invalid prefilter parameters, or invalid BRDF LUT dimensions.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ErrInvalidCustomMaterial",
              "anchor": "ErrInvalidCustomMaterial"
            }
          ],
          "decl": "var ErrInvalidCustomMaterial = errors.New(\"render3d: invalid custom material\")",
          "doc": "ErrInvalidCustomMaterial is wrapped by every error returned when validating, compiling, or updating a [CustomMaterial]. Those errors also match [ErrInvalidMaterial].\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 30
        },
        {
          "idents": [
            {
              "name": "ErrInvalidDynamicResolution",
              "anchor": "ErrInvalidDynamicResolution"
            }
          ],
          "decl": "var ErrInvalidDynamicResolution = errors.New(\"render3d: invalid dynamic resolution config\")",
          "doc": "ErrInvalidDynamicResolution is wrapped by every error returned when\nvalidating [DynamicResolutionConfig] or configuring\n[DynamicResolutionScaler] and [DynamicResolutionTarget].\n",
          "file": "pkg/render3d/dynres.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ErrInvalidFog",
              "anchor": "ErrInvalidFog"
            }
          ],
          "decl": "var ErrInvalidFog = errors.New(\"render3d: invalid fog\")",
          "doc": "ErrInvalidFog is wrapped by every error [Fog.Validate], [NewGPUFogBuffer] and [GPUFogBuffer.Update] return for malformed parameters.\n",
          "file": "pkg/render3d/fog.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "ErrInvalidHDRTarget",
              "anchor": "ErrInvalidHDRTarget"
            }
          ],
          "decl": "var ErrInvalidHDRTarget = errors.New(\"render3d: invalid HDR target\")",
          "doc": "ErrInvalidHDRTarget is wrapped by errors returned when an [HDRTargetDesc] has invalid dimensions or parameters.\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "ErrInvalidIBL",
              "anchor": "ErrInvalidIBL"
            }
          ],
          "decl": "var ErrInvalidIBL = errors.New(\"render3d: invalid image-based lighting\")",
          "doc": "ErrInvalidIBL is wrapped by every error [IBLUniform.Validate], [NewGPUIBLBuffer] and [GPUIBLBuffer.Update] return for malformed image-based lighting parameters.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "ErrInvalidLight",
              "anchor": "ErrInvalidLight"
            }
          ],
          "decl": "var ErrInvalidLight = errors.New(\"render3d: invalid light\")",
          "doc": "ErrInvalidLight is wrapped by every error light validation or upload returns for malformed light definitions.\n",
          "file": "pkg/render3d/light.go",
          "line": 50
        },
        {
          "idents": [
            {
              "name": "ErrInvalidLightmap",
              "anchor": "ErrInvalidLightmap"
            }
          ],
          "decl": "var ErrInvalidLightmap = errors.New(\"render3d: invalid lightmap\")",
          "doc": "ErrInvalidLightmap is wrapped by errors returned when lightmap encoding, material parameters, UV transforms, or renderer descriptors are invalid.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 57
        },
        {
          "idents": [
            {
              "name": "ErrInvalidLocalShadow",
              "anchor": "ErrInvalidLocalShadow"
            }
          ],
          "decl": "var ErrInvalidLocalShadow = errors.New(\"render3d: invalid local shadow\")",
          "doc": "ErrInvalidLocalShadow is wrapped by every validation error returned for spot or point light shadow maps and their configurations.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ErrInvalidMaterial",
              "anchor": "ErrInvalidMaterial"
            }
          ],
          "decl": "var ErrInvalidMaterial = errors.New(\"render3d: invalid material\")",
          "doc": "ErrInvalidMaterial is wrapped by every error [Material.Validate], [NewGPUMaterial], [GPUMaterial.Update], and [NewMaterialPipeline] return for malformed material parameters or invalid texture/sampler handles.\n",
          "file": "pkg/render3d/material.go",
          "line": 43
        },
        {
          "idents": [
            {
              "name": "ErrInvalidMesh",
              "anchor": "ErrInvalidMesh"
            }
          ],
          "decl": "var ErrInvalidMesh = errors.New(\"render3d: invalid mesh\")",
          "doc": "ErrInvalidMesh is wrapped by every error [Mesh.Validate] and [UploadMesh] return for malformed geometry.\n",
          "file": "pkg/render3d/mesh.go",
          "line": 38
        },
        {
          "idents": [
            {
              "name": "ErrInvalidPostProcess",
              "anchor": "ErrInvalidPostProcess"
            }
          ],
          "decl": "var ErrInvalidPostProcess = errors.New(\"render3d: invalid post-processing configuration\")",
          "doc": "ErrInvalidPostProcess is wrapped by every validation error returned by 3D post-processing configurations and constructors ([BloomConfig.Validate], [SSAOConfig.Validate], [DepthOfFieldConfig.Validate], [NewBloomPass], [NewSSAOPass], [NewDepthOfFieldPass], and [NewPostStack3D]).\n",
          "file": "pkg/render3d/post3d.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "ErrInvalidProbe",
              "anchor": "ErrInvalidProbe"
            }
          ],
          "decl": "var ErrInvalidProbe = errors.New(\"render3d: invalid probe\")",
          "doc": "ErrInvalidProbe is wrapped by errors returned when reflection or light probe geometry, grid dimensions, bake options, or probe IBL uniforms are malformed.\n",
          "file": "pkg/render3d/probes.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "ErrInvalidRenderTexture",
              "anchor": "ErrInvalidRenderTexture"
            }
          ],
          "decl": "var ErrInvalidRenderTexture = errors.New(\"render3d: invalid render texture\")",
          "doc": "ErrInvalidRenderTexture is wrapped by errors returned by [RenderTextureDesc.Validate], [NewRenderTexture], [RenderTexture.Resize], and [ViewportRenderer] when an offscreen render texture descriptor or handle is invalid.\n",
          "file": "pkg/render3d/viewport.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "ErrInvalidSampler",
              "anchor": "ErrInvalidSampler"
            }
          ],
          "decl": "var ErrInvalidSampler = errors.New(\"render3d: invalid sampler\")",
          "doc": "ErrInvalidSampler is wrapped by every error [SamplerOptions.Validate], [NewGPUSampler] and [BindTexture] return for malformed sampler settings or an invalid sampler handle.\n",
          "file": "pkg/render3d/texture.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "ErrInvalidShadow",
              "anchor": "ErrInvalidShadow"
            }
          ],
          "decl": "var ErrInvalidShadow = errors.New(\"render3d: invalid directional shadow\")",
          "doc": "ErrInvalidShadow is wrapped by validation errors returned by [DirectionalShadowConfig], [ShadowMapOptions], [NewDirectionalShadowMap], and [ShadowDepthGridFromBytes].\n",
          "file": "pkg/render3d/shadow.go",
          "line": 44
        },
        {
          "idents": [
            {
              "name": "ErrInvalidSkin",
              "anchor": "ErrInvalidSkin"
            }
          ],
          "decl": "var ErrInvalidSkin = errors.New(\"render3d: invalid skin\")",
          "doc": "ErrInvalidSkin is wrapped by errors returned for malformed skinning attributes, out-of-range joint indices, invalid glTF skin definitions, or oversized joint palettes.\n",
          "file": "pkg/render3d/skin.go",
          "line": 61
        },
        {
          "idents": [
            {
              "name": "ErrInvalidTerrainMaterial",
              "anchor": "ErrInvalidTerrainMaterial"
            }
          ],
          "decl": "var ErrInvalidTerrainMaterial = errors.New(\"render3d: invalid terrain material\")",
          "doc": "ErrInvalidTerrainMaterial is wrapped by validation and construction errors\nreturned by [TerrainMaterial], [NewGPUTerrainMaterial], and\n[NewTerrainMaterialPipeline].\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 58
        },
        {
          "idents": [
            {
              "name": "ErrInvalidTexture",
              "anchor": "ErrInvalidTexture"
            }
          ],
          "decl": "var ErrInvalidTexture = errors.New(\"render3d: invalid texture\")",
          "doc": "ErrInvalidTexture is wrapped by every error [PixelBuffer.Validate], [PixelBufferFromImage], [UploadTexture], [UploadTexturePixels], [GPUTexture.UpdateImage], [GPUTexture.UpdatePixels] and [BindTexture] return for malformed texture data or an invalid texture handle.\n",
          "file": "pkg/render3d/texture.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "ErrInvalidToonMaterial",
              "anchor": "ErrInvalidToonMaterial"
            }
          ],
          "decl": "var ErrInvalidToonMaterial = errors.New(\"render3d: invalid toon material\")",
          "doc": "ErrInvalidToonMaterial is wrapped by every error [ToonMaterial.Validate], [NewGPUToonMaterial], and [GPUToonMaterial.Update] return for malformed material parameters. Light errors wrap [ErrInvalidLight].\n",
          "file": "pkg/render3d/toon.go",
          "line": 41
        },
        {
          "idents": [
            {
              "name": "ErrInvalidUnlitMaterial",
              "anchor": "ErrInvalidUnlitMaterial"
            }
          ],
          "decl": "var ErrInvalidUnlitMaterial = errors.New(\"render3d: invalid unlit material\")",
          "doc": "ErrInvalidUnlitMaterial is wrapped by every error returned when validating, converting, creating, or updating an unlit material or unlit pipeline.\n",
          "file": "pkg/render3d/unlit.go",
          "line": 47
        },
        {
          "idents": [
            {
              "name": "ErrInvalidViewport",
              "anchor": "ErrInvalidViewport"
            }
          ],
          "decl": "var ErrInvalidViewport = errors.New(\"render3d: invalid viewport\")",
          "doc": "ErrInvalidViewport is wrapped by errors returned by [ViewportRect.Validate] and [ViewportRenderer] when a viewport rectangle, surface size, or camera view is invalid.\n",
          "file": "pkg/render3d/viewport.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ExtendedMaterialLitTransmissionWGSL",
              "anchor": "ExtendedMaterialLitTransmissionWGSL"
            }
          ],
          "decl": "var ExtendedMaterialLitTransmissionWGSL = CameraWGSL + ExtendedMaterialBindingsWGSL + LightWGSLForGroup(ExtendedLightGroup) + TransmissionBackgroundWGSL + materialVertexStageWGSL + extFragmentPreludeWGSL + extWithBGWGSL + extRigLightingBodyWGSL + `\tlet srgb_rgb = linear_to_srgb(linear_rgb);\n` + materialStagesTailWGSL",
          "doc": "ExtendedMaterialLitTransmissionWGSL is the full [LightRig]-lit extended PBR shader with per-frame [TransmissionBackground] at [TransmissionBackgroundGroup] (groups 0: Camera, 1: ExtendedMaterial, 2: LightRig, 3: TransmissionBackground).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 1288
        },
        {
          "idents": [
            {
              "name": "ExtendedMaterialLitWGSL",
              "anchor": "ExtendedMaterialLitWGSL"
            }
          ],
          "decl": "var ExtendedMaterialLitWGSL = CameraWGSL + ExtendedMaterialBindingsWGSL + LightWGSLForGroup(ExtendedLightGroup) + materialVertexStageWGSL + extFragmentPreludeWGSL + extNoBGWGSL + extRigLightingBodyWGSL + `\tlet srgb_rgb = linear_to_srgb(linear_rgb);\n` + materialStagesTailWGSL",
          "doc": "ExtendedMaterialLitWGSL is the [LightRig]-lit extended PBR shader compiled by [NewExtendedMaterialPipeline] when LightLayout is set (groups 0: Camera, 1: ExtendedMaterial, 2: LightRig).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 1281
        },
        {
          "idents": [
            {
              "name": "ExtendedMaterialTransmissionWGSL",
              "anchor": "ExtendedMaterialTransmissionWGSL"
            }
          ],
          "decl": "var ExtendedMaterialTransmissionWGSL = CameraWGSL + ExtendedMaterialBindingsWGSL + TransmissionBackgroundWGSLForGroup(MaterialTransmissionBackgroundGroup) + materialVertexStageWGSL + extFragmentPreludeWGSL + extWithBGWGSL + extDefaultLightingBodyWGSL + `\tlet srgb_rgb = ext_tonemap_srgb(linear_rgb);\n` + materialStagesTailWGSL",
          "doc": "ExtendedMaterialTransmissionWGSL is the default-light extended PBR shader with a per-frame [TransmissionBackground] at [MaterialTransmissionBackgroundGroup] (group 2).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 1274
        }
      ],
      "funcs": [
        {
          "name": "AppendFogUniforms",
          "anchor": "AppendFogUniforms",
          "decl": "func AppendFogUniforms(dst []byte, u FogUniforms) []byte",
          "doc": "AppendFogUniforms appends u to dst in the little-endian layout [FogWGSL] declares ([FogUniformSize] bytes) and returns the extended slice. It allocates only when dst lacks capacity for [FogUniformSize] more bytes.\n",
          "file": "pkg/render3d/fog.go",
          "line": 420
        },
        {
          "name": "AppendJointMatrices",
          "anchor": "AppendJointMatrices",
          "decl": "func AppendJointMatrices(dst []byte, joints []math3d.Mat4) ([]byte, error)",
          "doc": "AppendJointMatrices encodes joints into dst as the fixed [SkinUniformSize] (8192-byte) little-endian uniform block declared by [SkinWGSL], padding slots [len(joints), MaxSkinJoints) with identity matrices. It returns an error wrapping [ErrInvalidSkin] when len(joints) > [MaxSkinJoints] or any matrix entry is non-finite. It performs zero heap allocations when cap(dst)-len(dst) is at least [SkinUniformSize].\n",
          "file": "pkg/render3d/skin.go",
          "line": 685
        },
        {
          "name": "AppendShadowUniforms",
          "anchor": "AppendShadowUniforms",
          "decl": "func AppendShadowUniforms(dst []byte, u ShadowUniforms) []byte",
          "doc": "AppendShadowUniforms appends u to dst in the little-endian layout declared by [ShadowWGSL] ([ShadowUniformSize] bytes) and returns the extended slice. It allocates only when dst lacks capacity for [ShadowUniformSize] more bytes.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 319
        },
        {
          "name": "AppendToneMapUniforms",
          "anchor": "AppendToneMapUniforms",
          "decl": "func AppendToneMapUniforms(dst []byte, opts ToneMapOptions) []byte",
          "doc": "AppendToneMapUniforms appends the [ToneMapUniformSize] little-endian bytes matching [ToneMapWGSL]'s uniform struct, sampling the whole source texture, to dst and returns the extended slice. It allocates nothing when cap(dst)-len(dst) >= [ToneMapUniformSize].\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 327
        },
        {
          "name": "AppendUnlitUniforms",
          "anchor": "AppendUnlitUniforms",
          "decl": "func AppendUnlitUniforms(dst []byte, m UnlitMaterial) []byte",
          "doc": "AppendUnlitUniforms appends the 32-byte little-endian uniform block matching [UnlitWGSL]'s UnlitUniforms struct to dst and returns the extended slice. It allocates zero bytes when cap(dst)-len(dst) >= [UnlitUniformSize].\n",
          "file": "pkg/render3d/unlit.go",
          "line": 451
        },
        {
          "name": "ApplyFXAA",
          "anchor": "ApplyFXAA",
          "decl": "func ApplyFXAA(src *image.RGBA, opts FXAAOptions) *image.RGBA",
          "doc": "ApplyFXAA executes the CPU reference implementation of [FXAAWGSL] (FXAA 3.11 Quality) on src and returns a newly allocated anti-aliased [*image.RGBA] with the same bounds. Flat regions below the contrast threshold copy their source pixels unchanged; diagonal edges are smoothed along the detected edge span using bilinear clamp-to-edge sampling identical to the GPU pass.\n",
          "file": "pkg/render3d/aa.go",
          "line": 985
        },
        {
          "name": "ApplyToneMap",
          "anchor": "ApplyToneMap",
          "decl": "func ApplyToneMap(rgb math3d.Vec3, opts ToneMapOptions) math3d.Vec3",
          "doc": "ApplyToneMap evaluates the CPU reference tone-mapping and display-encoding pipeline matching [ToneMapWGSL]:\n 1. Scale linear HDR rgb by normalized Exposure and clamp it to [0, 65504], mapping NaN to 0 (sanitize_hdr in the shader).\n 2. Apply opts.Operator (None, Reinhard, ACES, Khronos PBR Neutral, or AgX).\n 3. Unless opts.LinearOutput is true, encode to display space using exact sRGB (Gamma <= 0) or power-law pow(c, 1/Gamma) (Gamma > 0).\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 118
        },
        {
          "name": "BakeReflectionProbe",
          "anchor": "BakeReflectionProbe",
          "decl": "func BakeReflectionProbe(cx *core.Scope, dev *gpu.Device, probe *ReflectionProbe, opts ProbeBakeOptions, sample func(origin, dir math3d.Vec3) [3]float32) error",
          "doc": "BakeReflectionProbe bakes probe on request using sample(origin, dir), prefilters roughness mips with [PrefilterEnvironment] (unless opts.SkipPrefilter is set), uploads the resulting [GPUCubemap] to dev, closes any previous probe.GPUCubemap to prevent leaks, and marks probe Baked = true and Dirty = false.\n",
          "file": "pkg/render3d/probes.go",
          "line": 801
        },
        {
          "name": "BakeReflectionProbeGPU",
          "anchor": "BakeReflectionProbeGPU",
          "decl": "func BakeReflectionProbeGPU(\n\tcx *core.Scope,\n\tdev *gpu.Device,\n\tprobe *ReflectionProbe,\n\topts ProbeBakeOptions,\n\trenderFace func(pass *gpu.RenderPass, face gpu.CubeFace, cam CameraUniform),\n\tonDone func(error),\n)",
          "doc": "BakeReflectionProbeGPU asynchronously bakes probe on request by rendering all six cubemap faces on dev into temporary offscreen render targets via renderFace, queueing [gpu.Device.ReadTexture] for each face, flipping rows to canonical cubemap orientation, prefiltering roughness mips with [PrefilterEnvironment] (unless opts.SkipPrefilter is set), uploading the [GPUCubemap], closing any previous probe.GPUCubemap, and invoking onDone on the engine goroutine once all six readbacks complete.\n\nTemporary offscreen render targets use [gpu.FormatRGBA8Unorm] (when opts.SRGB is false) or [gpu.FormatRGBA8UnormSRGB] (when opts.SRGB is true) paired with [gpu.FormatDepth24Plus]. They are closed automatically once all six readbacks finish. Because [gpu.Device.ReadTexture] is asynchronous inside a live [gpu.View], callers must wait for onDone rather than assuming probe.GPUCubemap is populated immediately upon return.\n",
          "file": "pkg/render3d/probes.go",
          "line": 816
        },
        {
          "name": "BindTexture",
          "anchor": "BindTexture",
          "decl": "func BindTexture(cx *core.Scope, dev *gpu.Device, layout *gpu.BindGroupLayout, tex *GPUTexture, samp *GPUSampler) (*gpu.BindGroup, error)",
          "doc": "BindTexture creates a bind group matching [TextureBindingLayout], binding tex at binding 0 and samp at binding 1. When both tex and samp were created with Retained set, NSGo automatically restores the bind group after a device loss.\n",
          "file": "pkg/render3d/texture.go",
          "line": 544
        },
        {
          "name": "BoxProjectDirection",
          "anchor": "BoxProjectDirection",
          "decl": "func BoxProjectDirection(worldPos, reflDir, probePos, boxMin, boxMax math3d.Vec3) math3d.Vec3",
          "doc": "BoxProjectDirection computes the parallax-corrected cubemap lookup direction for a reflection ray originating at worldPos along reflDir inside the box [boxMin, boxMax] around probePos. Non-finite inputs never produce NaN.\n",
          "file": "pkg/render3d/probes.go",
          "line": 487
        },
        {
          "name": "CSMWGSLForGroup",
          "anchor": "CSMWGSLForGroup",
          "decl": "func CSMWGSLForGroup(group uint32) string",
          "doc": "CSMWGSLForGroup returns [CSMWGSL] with its bindings placed at @group(group) instead of [CSMGroup], for custom shaders whose group 3 already holds something else.\n",
          "file": "pkg/render3d/csm.go",
          "line": 846
        },
        {
          "name": "ClampSampleCount",
          "anchor": "ClampSampleCount",
          "decl": "func ClampSampleCount(dev *gpu.Device, requested int) int",
          "doc": "ClampSampleCount returns a sample count accepted by dev for requested: 1 when requested <= 1 or dev is nil or lacks Features.MSAA4x, and 4 when requested >= 2 and dev supports Features.MSAA4x. This matches WebGPU and NSGo's portable 1x/4x sample-count set so the returned value is always valid for [gpu.TextureDesc.SampleCount], [gpu.RenderTargetDesc.SampleCount], and [gpu.PipelineDesc.SampleCount].\n",
          "file": "pkg/render3d/aa.go",
          "line": 67
        },
        {
          "name": "ColoredVertexLayout",
          "anchor": "ColoredVertexLayout",
          "decl": "func ColoredVertexLayout() gpu.VertexBufferLayout",
          "doc": "ColoredVertexLayout returns the vertex buffer layout of every [GPUColoredMesh] for [gpu.PipelineDesc].VertexBuffers: one per-vertex buffer of [ColoredVertexStride] bytes with position at location 0, normal at location 1, UV at location 2, and linear RGBA color at location 3. Each call returns a fresh Attributes slice.\n",
          "file": "pkg/render3d/unlit.go",
          "line": 154
        },
        {
          "name": "CompileCheck",
          "anchor": "CompileCheck",
          "decl": "func CompileCheck(source string, lang ShaderLanguage, params []ShaderParamDesc) error",
          "doc": "CompileCheck validates source, lang, and params, generates portable WGSL, compiles it via [gpu.CompileWGSL], and verifies cross-backend pipeline lowering (MSL, HLSL, GLSL 3.30, GLSL ES 3.00 / WebGL 2, and WGSL) using an in-memory pipeline cache on a headless software device.\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 357
        },
        {
          "name": "CompileCheckDesc",
          "anchor": "CompileCheckDesc",
          "decl": "func CompileCheckDesc(desc CustomShaderDesc) error",
          "doc": "CompileCheckDesc validates desc and verifies full shader and cross-backend pipeline compilation without requiring an active [gpu.View]. It checks DrawLayout as [PBRDrawBuffer]'s layout (one uniform buffer at binding 0); with ExtraLayout set it compiles the shader but skips the pipeline check, because that layout's bindings belong to the caller's device.\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 367
        },
        {
          "name": "ComputeCSMSplits",
          "anchor": "ComputeCSMSplits",
          "decl": "func ComputeCSMSplits(near, far float32, count int, lambda float32) []float32",
          "doc": "ComputeCSMSplits computes count+1 view-space split depths [d_0, ..., d_count] spanning [near, far] using the practical split scheme (Zhang et al., 2006):\n\n\td_i = lambda * near * (far/near)^(i/count) + (1 - lambda) * (near + (far - near) * i / count)\n\nlambda=0 produces uniform splits; lambda=1 produces logarithmic splits. Returns nil when count <= 0, near <= 0, far <= near, or either bound is non-finite. Non-finite lambda falls back to [DefaultCSMSplitLambda]; out-of-range finite lambda is clamped to [0, 1].\n",
          "file": "pkg/render3d/csm.go",
          "line": 200
        },
        {
          "name": "CubeDirectionToFaceUV",
          "anchor": "CubeDirectionToFaceUV",
          "decl": "func CubeDirectionToFaceUV(dir math3d.Vec3) (face gpu.CubeFace, u, v float32)",
          "doc": "CubeDirectionToFaceUV maps a 3D direction to its cubemap face index ([gpu.CubeFacePosX]..[gpu.CubeFaceNegZ]) and face-local [0, 1] coordinates, matching the NSGo GPU cubemap sampler convention.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 198
        },
        {
          "name": "CubeFaceDirection",
          "anchor": "CubeFaceDirection",
          "decl": "func CubeFaceDirection(face gpu.CubeFace, u, v float32) math3d.Vec3",
          "doc": "CubeFaceDirection returns the unit 3D direction corresponding to face-local coordinates (u, v) in [0, 1] on face ([gpu.CubeFacePosX]..[gpu.CubeFaceNegZ]) under the canonical WebGPU / Metal / Direct3D / OpenGL cubemap conventions.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 169
        },
        {
          "name": "CustomShaderWGSL",
          "anchor": "CustomShaderWGSL",
          "decl": "func CustomShaderWGSL(desc CustomShaderDesc) (string, error)",
          "doc": "CustomShaderWGSL validates desc and returns the portable WGSL source that [NewCustomMaterial] compiles (translating Kage surface shaders or prepending auto-generated @group(1) declarations for WGSL).\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 348
        },
        {
          "name": "DecodeDepth32Float",
          "anchor": "DecodeDepth32Float",
          "decl": "func DecodeDepth32Float(raw []byte) []float32",
          "doc": "DecodeDepth32Float decodes tightly packed little-endian float32 depth texels returned by [gpu.Device.ReadTexture] on a [gpu.FormatDepth32Float] texture.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 1251
        },
        {
          "name": "DecodeLightmapSample",
          "anchor": "DecodeLightmapSample",
          "decl": "func DecodeLightmapSample(sample [4]float32, encoding LightmapEncoding, rgbmMaxRange float32, hardwareSRGB bool) math3d.Vec3",
          "doc": "DecodeLightmapSample decodes a sampled RGBA lightmap texel into linear HDR RGB irradiance using the exact same rules as [LightmapWGSL] and [PBRLightmapWGSL]. Set hardwareSRGB true when encoding is [LightmapSRGB] and the GPU texture format already decoded sRGB on sample.\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 840
        },
        {
          "name": "DecodeRGBD",
          "anchor": "DecodeRGBD",
          "decl": "func DecodeRGBD(rgba [4]uint8) math3d.Vec3",
          "doc": "DecodeRGBD unpacks an 8-bit RGBD texel back to linear HDR RGB irradiance.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 628
        },
        {
          "name": "DecodeRGBM",
          "anchor": "DecodeRGBM",
          "decl": "func DecodeRGBM(rgba [4]uint8, maxRange float32) math3d.Vec3",
          "doc": "DecodeRGBM unpacks an 8-bit RGBM texel back to linear HDR RGB irradiance using maxRange (defaults to [DefaultRGBMMaxRange] when <= 0).\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 557
        },
        {
          "name": "DeviceSupportsClusteredLighting",
          "anchor": "DeviceSupportsClusteredLighting",
          "decl": "func DeviceSupportsClusteredLighting(dev *gpu.Device) bool",
          "doc": "DeviceSupportsClusteredLighting reports whether dev exposes the fragment storage-buffer capability and binding size needed for the clustered forward shading path. Because cluster assignment runs on the CPU, compute shaders are not required (so Apple Metal devices exposing StorageBuffers without Compute use the full clustered path). Devices without storage buffers (such as WebGL 2, OpenGL ES 3.0, Linux GtkGLArea, or headless tests under nsgotest.NoGPUCompute) fall back to the uniform-buffer path automatically.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 983
        },
        {
          "name": "DrawGizmo",
          "anchor": "DrawGizmo",
          "decl": "func DrawGizmo(d *core.Drawing, viewProj math3d.Mat4, viewport core.Bounds, origin math3d.Vec3, scale float32, mode GizmoMode, activeAxis GizmoAxis)",
          "doc": "DrawGizmo projects and draws a 3D gizmo into d using default [Gizmo] settings,\nclipping segments against the near plane and highlighting activeAxis on top.\n",
          "file": "pkg/render3d/gizmo.go",
          "line": 593
        },
        {
          "name": "EncodeCubemapHDR",
          "anchor": "EncodeCubemapHDR",
          "decl": "func EncodeCubemapHDR(w io.Writer, cm *HDRCubemap) error",
          "doc": "EncodeCubemapHDR writes cm's base mip level (six canonical faces +X, -X, +Y, -Y, +Z, -Z) as a\ndeterministic Radiance RGBE (.hdr) horizontal 6x1 cubemap strip of width 6*cm.Size and height cm.Size.\n[DecodeCubemapHDR] reads the strip back without resampling loss while preserving HDR radiance above 1.0.\n",
          "file": "pkg/render3d/probe_io.go",
          "line": 32
        },
        {
          "name": "EncodeHDR",
          "anchor": "EncodeHDR",
          "decl": "func EncodeHDR(w io.Writer, img *HDRImage) error",
          "doc": "EncodeHDR writes img in Radiance RGBE (.hdr) format (using adaptive RLE for widths in [8, 32767] and uncompressed scanlines otherwise). Invalid images return an error wrapping [ErrInvalidCubemap].\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 468
        },
        {
          "name": "EncodeLightProbeGrid",
          "anchor": "EncodeLightProbeGrid",
          "decl": "func EncodeLightProbeGrid(d *LightProbeGridDoc) ([]byte, error)",
          "doc": "EncodeLightProbeGrid validates d and serializes it as deterministic 2-space YAML starting with\n[LightProbeGridSchemaComment]. A round trip through [ParseLightProbeGrid] and EncodeLightProbeGrid\nproduces identical bytes.\n",
          "file": "pkg/render3d/probe_io.go",
          "line": 297
        },
        {
          "name": "EncodeRGBD",
          "anchor": "EncodeRGBD",
          "decl": "func EncodeRGBD(rgb math3d.Vec3) [4]uint8",
          "doc": "EncodeRGBD packs a linear HDR RGB irradiance value into 8-bit RGBD bytes. LDR values (max channel <= 1) store D = 255 with full 8-bit precision; HDR values > 1 store D = floor(255 / maxChannel) and decode via rgb / max(d, 1/255).\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 598
        },
        {
          "name": "EncodeRGBDImage",
          "anchor": "EncodeRGBDImage",
          "decl": "func EncodeRGBDImage(hdr []math3d.Vec3, width, height int) (*image.NRGBA, error)",
          "doc": "EncodeRGBDImage encodes a row-major slice of width*height linear HDR RGB irradiance pixels into a straight-alpha [*image.NRGBA] suitable for upload with [UploadTexture] (SRGB: false) and [LightmapRGBD].\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 642
        },
        {
          "name": "EncodeRGBM",
          "anchor": "EncodeRGBM",
          "decl": "func EncodeRGBM(rgb math3d.Vec3, maxRange float32) [4]uint8",
          "doc": "EncodeRGBM packs a linear HDR RGB irradiance value into 8-bit RGBM bytes using maxRange (defaults to [DefaultRGBMMaxRange] when <= 0). Decoding is linearRGB = (rgb / 255) * ((a / 255) * maxRange).\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 526
        },
        {
          "name": "EncodeRGBMImage",
          "anchor": "EncodeRGBMImage",
          "decl": "func EncodeRGBMImage(hdr []math3d.Vec3, width, height int, maxRange float32) (*image.NRGBA, error)",
          "doc": "EncodeRGBMImage encodes a row-major slice of width*height linear HDR RGB irradiance pixels into a straight-alpha [*image.NRGBA] suitable for upload with [UploadTexture] (SRGB: false) and [LightmapRGBM].\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 570
        },
        {
          "name": "EnvBRDFApprox",
          "anchor": "EnvBRDFApprox",
          "decl": "func EnvBRDFApprox(f0 [3]float32, roughness, nDotV float32) [3]float32",
          "doc": "EnvBRDFApprox evaluates the Karis (2014) analytical split-sum GGX BRDF approximation, matching [IBLWGSL]'s env_brdf_approx.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1141
        },
        {
          "name": "EvaluateCSMShadow",
          "anchor": "EvaluateCSMShadow",
          "decl": "func EvaluateCSMShadow(frame CSMFrame, atlas CSMDepthAtlas, worldPos, worldNormal math3d.Vec3, viewDepth float32) float32",
          "doc": "EvaluateCSMShadow is the pure-Go CPU reference matching csm_shadow_factor in [CSMWGSL]. It returns the shadow visibility factor in [0, 1] (0 = fully in shadow, 1 = fully lit) for a world-space surface point, unit world normal, and positive camera view-space depth.\n",
          "file": "pkg/render3d/csm.go",
          "line": 992
        },
        {
          "name": "EvaluateDirectionalShadow",
          "anchor": "EvaluateDirectionalShadow",
          "decl": "func EvaluateDirectionalShadow(worldPos, worldNormal math3d.Vec3, u ShadowUniforms, grid ShadowDepthGrid) float32",
          "doc": "EvaluateDirectionalShadow is the pure-Go CPU reference matching sample_directional_shadow in [ShadowWGSL] for the uniforms [AppendShadowUniforms] encodes from u (including its handling of non-finite values and unknown filters). It returns directional light visibility in [0, 1]: 1.0 when unoccluded, outside the light frustum, or when u.Strength <= 0, and (1 - u.Strength) when fully occluded.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 1118
        },
        {
          "name": "EvaluateIBL",
          "anchor": "EvaluateIBL",
          "decl": "func EvaluateIBL(\n\tsh IrradianceSH,\n\tprefilter *Cubemap,\n\tintensity float32,\n\tnormal, viewDir math3d.Vec3,\n\tbaseColor [3]float32,\n\tmetallic, roughness, ao float32,\n) [3]float32",
          "doc": "EvaluateIBL evaluates the exact CPU reference for [IBLWGSL]'s evaluate_ibl function: L2 spherical harmonic diffuse irradiance combined with split-sum GGX prefiltered specular reflection using [EnvBRDFApprox]. A NaN or infinite metallic, roughness, ao or intensity counts as 0, and a negative intensity as 0, so the result stays finite.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1159
        },
        {
          "name": "EvaluateIBLHDR",
          "anchor": "EvaluateIBLHDR",
          "decl": "func EvaluateIBLHDR(\n\tsh IrradianceSH,\n\tprefilter *HDRCubemap,\n\tintensity float32,\n\tnormal, viewDir math3d.Vec3,\n\tbaseColor [3]float32,\n\tmetallic, roughness, ao float32,\n) [3]float32",
          "doc": "EvaluateIBLHDR evaluates the exact CPU reference for [IBLWGSL]'s evaluate_ibl function using an unclamped linear [*HDRCubemap] prefiltered specular environment.\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 1084
        },
        {
          "name": "EvaluateLightAttenuation",
          "anchor": "EvaluateLightAttenuation",
          "decl": "func EvaluateLightAttenuation(light ClusterLight, worldPos math3d.Vec3) (dirToLight math3d.Vec3, attenuation float32)",
          "doc": "EvaluateLightAttenuation returns the unit direction from worldPos toward light and the light's attenuation times its Intensity: [PointLightAttenuation] with Range, times [SpotConeAttenuation] for a [ClusterLightSpot]. It returns zeros for a light with no power or an invalid record, and when worldPos coincides with the light.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 907
        },
        {
          "name": "EvaluatePBR",
          "anchor": "EvaluatePBR",
          "decl": "func EvaluatePBR(n, v, l math3d.Vec3, mat PBRMaterial) math3d.Vec3",
          "doc": "EvaluatePBR evaluates the glTF 2.0 metallic-roughness Cook-Torrance GGX BRDF (diffuse + specular,\nbefore multiplying by light radiance and NdotL) for unit surface normal n, unit view direction v\ntoward the eye, and unit light direction l toward the light.\n\nIt uses dielectric F0 = 0.04, Schlick Fresnel, Trowbridge-Reitz GGX normal distribution,\nheight-correlated Smith-GGX visibility, and energy-conserving Lambertian diffuse, matching\npbr_brdf in [LightWGSL].\n",
          "file": "pkg/render3d/light.go",
          "line": 1212
        },
        {
          "name": "EvaluatePointShadow",
          "anchor": "EvaluatePointShadow",
          "decl": "func EvaluatePointShadow(u PointShadowUniform, atlasDepth []float32, faceRes uint32, worldPos, worldNormal math3d.Vec3) float32",
          "doc": "EvaluatePointShadow is the CPU reference of sample_point_shadow in [PointShadowWGSL]: the point light's visibility in [0, 1] at worldPos against a row-major (3*faceRes) x (2*faceRes) Depth32Float atlas buffer, such as [DecodeDepth32Float] of the [PointShadowMap.DepthTexture] readback.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 1343
        },
        {
          "name": "EvaluateProbeIBL",
          "anchor": "EvaluateProbeIBL",
          "decl": "func EvaluateProbeIBL(\n\tsh IrradianceSH,\n\tblend ProbeBlendResult,\n\tskyPrefilter *Cubemap,\n\tintensity float32,\n\tworldPos, normal, viewDir math3d.Vec3,\n\tbaseColor [3]float32,\n\tmetallic, roughness, ao float32,\n) [3]float32",
          "doc": "EvaluateProbeIBL evaluates the exact CPU reference for evaluate_probe_ibl in [ProbeIBLWGSL]: L2 spherical harmonic diffuse irradiance combined with parallax-corrected, blended specular reflections across up to two local reflection probes and an optional global sky cubemap.\n\nAdd the result to [ShadePoint] and apply [LinearToSRGB] to reproduce [LitPBRProbeIBLWGSL] pixel-for-pixel. Unbaked, dirty, disabled, or nil-cubemap probes and a nil skyPrefilter all contribute black (0, 0, 0), matching [GPUProbeIBLBuffer] identically. Non-finite metallic, roughness, ao, or intensity values count as 0.\n",
          "file": "pkg/render3d/probes.go",
          "line": 1245
        },
        {
          "name": "EvaluateSpotShadow",
          "anchor": "EvaluateSpotShadow",
          "decl": "func EvaluateSpotShadow(u SpotShadowUniform, depth []float32, res uint32, worldPos, worldNormal math3d.Vec3) float32",
          "doc": "EvaluateSpotShadow is the CPU reference of sample_spot_shadow in [SpotShadowWGSL]: the spot light's visibility in [0, 1] at worldPos against a row-major res x res Depth32Float buffer, such as [DecodeDepth32Float] of the [SpotShadowMap.DepthTexture] readback.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 1261
        },
        {
          "name": "EvaluateTerrainTriplanarFactor",
          "anchor": "EvaluateTerrainTriplanarFactor",
          "decl": "func EvaluateTerrainTriplanarFactor(geomN math3d.Vec3, tp TerrainTriplanar) float32",
          "doc": "EvaluateTerrainTriplanarFactor computes the slope-driven triplanar blend\nfactor in [0, 1] matching terrain_triplanar_factor in [TerrainMaterialBindingsWGSL].\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1496
        },
        {
          "name": "EvaluateTerrainTriplanarWeights",
          "anchor": "EvaluateTerrainTriplanarWeights",
          "decl": "func EvaluateTerrainTriplanarWeights(geomN math3d.Vec3, sharpness float32) math3d.Vec3",
          "doc": "EvaluateTerrainTriplanarWeights computes the normalized X/Y/Z axis blend\nweights matching terrain_triplanar_weights in [TerrainMaterialBindingsWGSL].\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1516
        },
        {
          "name": "EvaluateToon",
          "anchor": "EvaluateToon",
          "decl": "func EvaluateToon(mat ToonMaterial, in ToonEvalInput) [4]float32",
          "doc": "EvaluateToon is the pure-Go CPU reference implementation of [ToonWGSL] for deterministic unit testing and golden-render parity checks. It returns linear RGBA with RGB clamped to [0, 1].\n",
          "file": "pkg/render3d/toon.go",
          "line": 610
        },
        {
          "name": "ExposureFromEV",
          "anchor": "ExposureFromEV",
          "decl": "func ExposureFromEV(ev float32) float32",
          "doc": "ExposureFromEV converts photographic exposure compensation in stops (EV) to a linear exposure multiplier 2^ev (0 -> 1.0, +1 -> 2.0, -1 -> 0.5). NaN returns 1.0, and ev is clamped to [-126, 126] (including the infinities), so the result is always finite and positive; set [ToneMapOptions].Exposure to 0 for black.\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 101
        },
        {
          "name": "ExtendedMaterialBindGroupLayout",
          "anchor": "ExtendedMaterialBindGroupLayout",
          "decl": "func ExtendedMaterialBindGroupLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "ExtendedMaterialBindGroupLayout creates the [MaterialGroup] bind group layout shared by every [GPUExtendedMaterial]: the uniform buffer at binding 0, the five base metallic-roughness texture/sampler pairs at bindings 1..10, and four extension texture/sampler pairs (clearcoat, clearcoat roughness, clearcoat normal, transmission) at bindings 11..18.\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 114
        },
        {
          "name": "FilterNodesByLayer",
          "anchor": "FilterNodesByLayer",
          "decl": "func FilterNodesByLayer(src []*scene3d.Node, mask uint32, dst []*scene3d.Node) []*scene3d.Node",
          "doc": "FilterNodesByLayer appends every non-nil node in src whose Layer intersects mask to dst and returns the extended slice. It tests the layer only: hidden or disabled nodes (Visible or Enabled false on the node or an ancestor) are included, so skip them yourself as the scene3d decal path does. A zero mask matches nothing, unlike a zero [CameraView.LayerMask]; pass [ViewportContext.LayerMask]. Pass dst[:0] with preallocated capacity for zero steady-state allocations per camera view.\n",
          "file": "pkg/render3d/viewport.go",
          "line": 636
        },
        {
          "name": "FogCameraPos",
          "anchor": "FogCameraPos",
          "decl": "func FogCameraPos(cam CameraUniform, worldPos math3d.Vec3) math3d.Vec3",
          "doc": "FogCameraPos returns the point the view ray toward worldPos starts from under cam, matching fog_camera_pos in [FogCameraWGSL]: cam's eye for a perspective camera, and for an orthographic camera the point on the camera's plane that worldPos projects from. Pass it as camPos to [Fog.Factor] or [Fog.Apply] to reproduce on the CPU the fog the fogged pipelines draw.\n",
          "file": "pkg/render3d/fog.go",
          "line": 148
        },
        {
          "name": "GenerateBRDFLUT",
          "anchor": "GenerateBRDFLUT",
          "decl": "func GenerateBRDFLUT(size int) (*image.RGBA, error)",
          "doc": "GenerateBRDFLUT generates a square 2D split-sum GGX BRDF integration lookup table (NoV along X in [0, 1], roughness along Y in [0, 1]), storing the Fresnel scale in R and bias in G using 128 Hammersley samples per texel.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1111
        },
        {
          "name": "GenerateBRDFLUTWithSamples",
          "anchor": "GenerateBRDFLUTWithSamples",
          "decl": "func GenerateBRDFLUTWithSamples(size, sampleCount int) (*image.RGBA, error)",
          "doc": "GenerateBRDFLUTWithSamples generates a 2D split-sum GGX BRDF integration lookup table with an explicit Hammersley sample count per texel.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1116
        },
        {
          "name": "HalfToFloat32",
          "anchor": "HalfToFloat32",
          "decl": "func HalfToFloat32(h uint16) float32",
          "doc": "HalfToFloat32 converts an IEEE 754 binary16 half-float bit pattern into a float32.\n",
          "file": "pkg/render3d/probe_io.go",
          "line": 96
        },
        {
          "name": "IBLWGSLForGroup",
          "anchor": "IBLWGSLForGroup",
          "decl": "func IBLWGSLForGroup(group uint32) string",
          "doc": "IBLWGSLForGroup returns the same WGSL declarations and helper functions as [IBLWGSL] with the uniform, cubemap, and sampler placed at the given @group index.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 146
        },
        {
          "name": "LayerMatches",
          "anchor": "LayerMatches",
          "decl": "func LayerMatches(objectLayer, cameraMask uint32) bool",
          "doc": "LayerMatches reports whether an object's layer bitmask intersects a camera's layer mask, using the same bitmask convention as [scene3d.Node.Layer].\n",
          "file": "pkg/render3d/viewport.go",
          "line": 612
        },
        {
          "name": "LightWGSLForGroup",
          "anchor": "LightWGSLForGroup",
          "decl": "func LightWGSLForGroup(group uint32) string",
          "doc": "LightWGSLForGroup returns [LightWGSL] with the lights binding placed at @group(group) instead of [LightGroup], for custom shaders whose group 1 already holds something else, such as a [CustomMaterial] with its ExtraLayout at group 3.\n",
          "file": "pkg/render3d/light.go",
          "line": 45
        },
        {
          "name": "LightmapVertexLayout",
          "anchor": "LightmapVertexLayout",
          "decl": "func LightmapVertexLayout() gpu.VertexBufferLayout",
          "doc": "LightmapVertexLayout returns the vertex buffer layout for [GPULightmapMesh]: one 40-byte per-vertex buffer with position at location 0, normal at 1, UV0 at 2, and UV1 at 3. Each call returns a fresh Attributes slice.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 333
        },
        {
          "name": "LinearToSRGB",
          "anchor": "LinearToSRGB",
          "decl": "func LinearToSRGB(rgb math3d.Vec3) math3d.Vec3",
          "doc": "LinearToSRGB converts a linear RGB triple (clamped to [0, 1] per channel) to sRGB, matching\nlinear_to_srgb in [LightWGSL].\n",
          "file": "pkg/render3d/light.go",
          "line": 1481
        },
        {
          "name": "LinearToSRGBChannel",
          "anchor": "LinearToSRGBChannel",
          "decl": "func LinearToSRGBChannel(c float32) float32",
          "doc": "LinearToSRGBChannel converts a single linear light channel in [0, 1] (clamped) to sRGB using the\nIEC 61966-2-1 transfer function, matching linear_to_srgb_channel in [LightWGSL].\n",
          "file": "pkg/render3d/light.go",
          "line": 1471
        },
        {
          "name": "LoadKTX2",
          "anchor": "LoadKTX2",
          "decl": "func LoadKTX2(cx *core.Scope, dev *gpu.Device, data []byte, opts KTX2Upload) (*GPUTexture, SamplerOptions, error)",
          "doc": "LoadKTX2 uploads the 2D texture in data, a KTX2 file such as game assets and game tex write or a Basis Universal UASTC or BasisLZ/ETC1S file, to dev, scoped to cx, and returns it with the sampler to draw it with: opts.Sampler with its filters set from the file's [KTX2FilterKey], as [KTX2Sampler] sets them, so an image's import settings decide whether it is drawn sharp or smooth.\n\nEvery mip level the file holds is uploaded, in its sRGB or linear format, after undoing the file's BasisLZ, Zstandard or ZLIB supercompression. A block-compressed level (BC1, BC3, BC7, ETC2 RGB8 or RGBA8, or ASTC 4x4) is uploaded compressed when dev supports its format ([gpu.Device.SupportsCompressedFormat]) and otherwise decoded to RGBA8 on the CPU, so the texture loads on every backend. A UASTC or BasisLZ/ETC1S level is transcoded to the best block format dev supports, in the order BC7, BC1 for an opaque texture, BC3, ETC2 (linear only) and ASTC 4x4, and decoded to RGBA8 when dev supports none of them or the base level's width or height is not a multiple of 4. Transcoding decodes each level and encodes it again on the calling goroutine, which costs time at load for a large texture.\n\nA file that is not a valid 2D KTX2 texture in one of those formats, or whose filter is unknown, returns an error wrapping [ErrInvalidTexture] before anything is created; a device error is returned as the [gpu.Error] NSGo reports.\n",
          "file": "pkg/render3d/ktx2.go",
          "line": 31
        },
        {
          "name": "MaterialBindGroupLayout",
          "anchor": "MaterialBindGroupLayout",
          "decl": "func MaterialBindGroupLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "MaterialBindGroupLayout creates the uniform [MaterialGroup] bind group layout shared by every [GPUMaterial]: one fragment uniform buffer at binding 0 followed by five sampled 2D texture/sampler pairs (base color, metallic-roughness, normal, occlusion, emissive) at bindings 1..10.\n",
          "file": "pkg/render3d/material.go",
          "line": 370
        },
        {
          "name": "MaterialBindingsWGSLForGroup",
          "anchor": "MaterialBindingsWGSLForGroup",
          "decl": "func MaterialBindingsWGSLForGroup(group uint32) string",
          "doc": "MaterialBindingsWGSLForGroup returns [MaterialBindingsWGSL] with every @group(1) binding moved to @group(group), for pipelines whose group 1 already holds another bind group such as [LightGroup].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 37
        },
        {
          "name": "MeshVertexLayout",
          "anchor": "MeshVertexLayout",
          "decl": "func MeshVertexLayout() gpu.VertexBufferLayout",
          "doc": "MeshVertexLayout returns the vertex buffer layout of every [GPUMesh] for [gpu.PipelineDesc].VertexBuffers: one per-vertex buffer of [MeshVertexStride] bytes with the position at [MeshPositionLocation], the normal at [MeshNormalLocation] and the UV at [MeshUVLocation]. Each call returns a fresh Attributes slice.\n",
          "file": "pkg/render3d/mesh.go",
          "line": 179
        },
        {
          "name": "NewClusteredLitPBRPipeline",
          "anchor": "NewClusteredLitPBRPipeline",
          "decl": "func NewClusteredLitPBRPipeline(cx *core.Scope, dev *gpu.Device, camLayout *gpu.BindGroupLayout, sys *ClusteredLightSystem, drawLayout *gpu.BindGroupLayout, depthFormat gpu.TextureFormat) (*gpu.Pipeline, error)",
          "doc": "NewClusteredLitPBRPipeline compiles sys's ready-made shader ([ClusteredLitWGSL] or [ClusteredFallbackWGSL]) and creates the same back-face-culled pipeline as [NewLitPBRPipeline], with sys's layout at [LightGroup] in place of a [GPULightBuffer]'s. Pass depthFormat = [gpu.FormatUndefined] when rendering without a depth attachment.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 1148
        },
        {
          "name": "NewExtendedMaterialPipeline",
          "anchor": "NewExtendedMaterialPipeline",
          "decl": "func NewExtendedMaterialPipeline(cx *core.Scope, dev *gpu.Device, camLayout, matLayout *gpu.BindGroupLayout, opts ExtendedMaterialPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewExtendedMaterialPipeline compiles the extended PBR shader variant matching opts and creates a render pipeline taking [MeshVertexLayout] at vertex slot 0, camLayout at [CameraGroup] (0), and matLayout ([ExtendedMaterialDefaults.Layout]) at [MaterialGroup] (1), with optional [GPULightBuffer] at [ExtendedLightGroup] (2) and/or [TransmissionBackground] at group 2 or [TransmissionBackgroundGroup] (3).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 739
        },
        {
          "name": "NewLitPBRCSMPipeline",
          "anchor": "NewLitPBRCSMPipeline",
          "decl": "func NewLitPBRCSMPipeline(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout, csmLayout *gpu.BindGroupLayout, depthFormat gpu.TextureFormat) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRCSMPipeline compiles [LitPBRCSMWGSL] and creates a pipeline configured like [NewLitPBRPipeline] with csmLayout ([CascadedShadowMap.Layout]) added at [CSMGroup].\n",
          "file": "pkg/render3d/csm.go",
          "line": 882
        },
        {
          "name": "NewLitPBRFogPipeline",
          "anchor": "NewLitPBRFogPipeline",
          "decl": "func NewLitPBRFogPipeline(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout, fogLayout *gpu.BindGroupLayout, depthFormat gpu.TextureFormat) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRFogPipeline compiles [LitPBRFogWGSL] and creates a pipeline configured like [NewLitPBRPipeline] with fogLayout ([GPUFogBuffer.Layout]) added at [FogGroup].\n",
          "file": "pkg/render3d/fog.go",
          "line": 157
        },
        {
          "name": "NewLitPBRIBLPipeline",
          "anchor": "NewLitPBRIBLPipeline",
          "decl": "func NewLitPBRIBLPipeline(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout, iblLayout *gpu.BindGroupLayout, depthFormat gpu.TextureFormat) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRIBLPipeline compiles [LitPBRIBLWGSL] and creates a pipeline configured like [NewLitPBRPipeline] with iblLayout ([GPUIBLBuffer.Layout]) added at [IBLGroup].\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1447
        },
        {
          "name": "NewLitPBRPipeline",
          "anchor": "NewLitPBRPipeline",
          "decl": "func NewLitPBRPipeline(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout *gpu.BindGroupLayout, depthFormat gpu.TextureFormat) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRPipeline compiles [LitPBRWGSL] and creates a back-face-culled triangle-list pipeline configured\nfor [MeshVertexLayout] with bind groups [CameraGroup], [LightGroup], and [PBRDrawGroup].\nPass depthFormat = [gpu.FormatUndefined] when rendering without a depth attachment.\n",
          "file": "pkg/render3d/light.go",
          "line": 1023
        },
        {
          "name": "NewLitPBRPipelineWithOptions",
          "anchor": "NewLitPBRPipelineWithOptions",
          "decl": "func NewLitPBRPipelineWithOptions(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout *gpu.BindGroupLayout, opts LitPBRPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRPipelineWithOptions creates a lit PBR pipeline like [NewLitPBRPipeline], [NewLitPBRFogPipeline], [NewLitPBRIBLPipeline], [NewLitPBRShadowPipeline], [NewLitPBRSpotShadowPipeline], [NewLitPBRPointShadowPipeline] or [NewLitPBRCSMPipeline], with a configurable color format, with [LitPBRPipelineOptions].VertexColors linear vertex colors, with [LitPBRPipelineOptions].LinearOutput linear HDR output for an [HDRTarget], and with [LitPBRPipelineOptions].SkinLayout GPU skinning.\n",
          "file": "pkg/render3d/light.go",
          "line": 1068
        },
        {
          "name": "NewLitPBRPointShadowPipeline",
          "anchor": "NewLitPBRPointShadowPipeline",
          "decl": "func NewLitPBRPointShadowPipeline(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout, pointLayout *gpu.BindGroupLayout, depthFormat gpu.TextureFormat) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRPointShadowPipeline compiles [LitPBRPointShadowWGSL] and creates a pipeline configured like [NewLitPBRPipeline] with pointLayout ([PointShadowMap.Layout]) added at [LocalShadowGroup].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 322
        },
        {
          "name": "NewLitPBRProbeIBLPipeline",
          "anchor": "NewLitPBRProbeIBLPipeline",
          "decl": "func NewLitPBRProbeIBLPipeline(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout, probeIBLLayout *gpu.BindGroupLayout, depthFormat gpu.TextureFormat) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRProbeIBLPipeline compiles [LitPBRProbeIBLWGSL] and creates a back-face-culled lit PBR pipeline configured like [NewLitPBRIBLPipeline] with probeIBLLayout ([GPUProbeIBLBuffer.Layout] or [ProbeIBLBindGroupLayout]) at [IBLGroup] (group 3).\n",
          "file": "pkg/render3d/probes.go",
          "line": 1734
        },
        {
          "name": "NewLitPBRProbeIBLPipelineWithOptions",
          "anchor": "NewLitPBRProbeIBLPipelineWithOptions",
          "decl": "func NewLitPBRProbeIBLPipelineWithOptions(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout, probeIBLLayout *gpu.BindGroupLayout, opts ProbeIBLPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRProbeIBLPipelineWithOptions compiles [LitPBRProbeIBLWGSL] (or its linear HDR variant when opts.LinearOutput is set) and creates a lit PBR pipeline with probeIBLLayout at [IBLGroup] (group 3).\n",
          "file": "pkg/render3d/probes.go",
          "line": 1741
        },
        {
          "name": "NewLitPBRShadowPipeline",
          "anchor": "NewLitPBRShadowPipeline",
          "decl": "func NewLitPBRShadowPipeline(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout, shadowLayout *gpu.BindGroupLayout, depthFormat gpu.TextureFormat) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRShadowPipeline compiles [LitPBRShadowWGSL] and creates a pipeline configured like [NewLitPBRPipeline] with shadowLayout ([DirectionalShadowMap.Layout]) added at [ShadowGroup].\n",
          "file": "pkg/render3d/shadow.go",
          "line": 1084
        },
        {
          "name": "NewLitPBRSpotShadowPipeline",
          "anchor": "NewLitPBRSpotShadowPipeline",
          "decl": "func NewLitPBRSpotShadowPipeline(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, drawLayout, spotLayout *gpu.BindGroupLayout, depthFormat gpu.TextureFormat) (*gpu.Pipeline, error)",
          "doc": "NewLitPBRSpotShadowPipeline compiles [LitPBRSpotShadowWGSL] and creates a pipeline configured like [NewLitPBRPipeline] with spotLayout ([SpotShadowMap.Layout]) added at [LocalShadowGroup].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 311
        },
        {
          "name": "NewMaterialIBLPipeline",
          "anchor": "NewMaterialIBLPipeline",
          "decl": "func NewMaterialIBLPipeline(cx *core.Scope, dev *gpu.Device, camLayout, matLayout, iblLayout *gpu.BindGroupLayout, opts MaterialIBLPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewMaterialIBLPipeline compiles [MaterialIBLWGSL] (or [MaterialIBLLinearWGSL] when opts.LinearOutput is true) and builds a render pipeline using [MeshVertexLayout] at vertex slot 0, camLayout at [CameraGroup] (group 0), matLayout at [MaterialGroup] (group 1), and iblLayout ([GPUIBLBuffer.Layout]) at [MaterialIBLGroup] (group 2).\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 145
        },
        {
          "name": "NewMaterialPipeline",
          "anchor": "NewMaterialPipeline",
          "decl": "func NewMaterialPipeline(cx *core.Scope, dev *gpu.Device, camLayout, matLayout *gpu.BindGroupLayout, opts MaterialPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewMaterialPipeline compiles [MaterialWGSL] and builds a render pipeline using [MeshVertexLayout] at vertex slot 0, camLayout at [CameraGroup] (group 0), and matLayout at [MaterialGroup] (group 1). With [MaterialPipelineOptions].VertexColors set it compiles [MaterialColoredWGSL] and takes [ColoredVertexLayout] vertices; with [MaterialPipelineOptions].FogLayout set it compiles [MaterialFogWGSL] (or its colored variant when VertexColors is also set) and adds the fog layout at [MaterialFogGroup] (group 2); with [MaterialPipelineOptions].SkinLayout set it compiles [MaterialSkinnedWGSL], takes [SkinnedVertexLayout] vertices and adds the skin layout at [MaterialSkinGroup] (group 2).\n",
          "file": "pkg/render3d/material.go",
          "line": 805
        },
        {
          "name": "NewPBRLightmapPipeline",
          "anchor": "NewPBRLightmapPipeline",
          "decl": "func NewPBRLightmapPipeline(\n\tcx *core.Scope,\n\tdev *gpu.Device,\n\tcamLayout, lightLayout, matLayout, lmLayout *gpu.BindGroupLayout,\n\topts PBRLightmapPipelineOptions,\n) (*gpu.Pipeline, error)",
          "doc": "NewPBRLightmapPipeline compiles [PBRLightmapWGSL] (or [PBRLightmapLinearWGSL] when LinearOutput is true or ColorFormat is sRGB) and creates a render pipeline taking [LightmapVertexLayout] vertices at slot 0 with:\n  - camLayout at [CameraGroup] (group 0)\n  - lightLayout ([GPULightBuffer.Layout]) at [LightGroup] (group 1)\n  - matLayout ([MaterialDefaults.Layout]) at [PBRLightmapMaterialGroup] (group 2)\n  - lmLayout ([PBRLightmapBindGroupLayout] / [GPUPBRLightmap.Layout] / [GLTFPBRLightmapSet.Layout]) at [PBRLightmapGroup] (group 3)\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 705
        },
        {
          "name": "NewSkinnedMeshPipeline",
          "anchor": "NewSkinnedMeshPipeline",
          "decl": "func NewSkinnedMeshPipeline(cx *core.Scope, dev *gpu.Device, camLayout, skinLayout *gpu.BindGroupLayout, opts SkinnedMeshPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewSkinnedMeshPipeline compiles [SkinnedMeshWGSL] and creates a render pipeline using [SkinnedVertexLayout], camLayout at [CameraGroup] (group 0), and skinLayout at [SkinGroup] (group 1).\n",
          "file": "pkg/render3d/skin.go",
          "line": 922
        },
        {
          "name": "NewTerrainMaterialPipeline",
          "anchor": "NewTerrainMaterialPipeline",
          "decl": "func NewTerrainMaterialPipeline(cx *core.Scope, dev *gpu.Device, camLayout, lightLayout, terrainLayout *gpu.BindGroupLayout, opts TerrainPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewTerrainMaterialPipeline compiles the portable WGSL terrain shader matching\nopts and builds a render pipeline using [MeshVertexLayout] at vertex slot 0,\ncamLayout at [CameraGroup] (group 0), lightLayout at [LightGroup] (group 1),\nterrainLayout at [TerrainMaterialGroup] (group 2), and an optional shadow,\nCSM, or fog layout at group 3.\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 907
        },
        {
          "name": "NewToonOutlinePipeline",
          "anchor": "NewToonOutlinePipeline",
          "decl": "func NewToonOutlinePipeline(cx *core.Scope, dev *gpu.Device, opts ToonPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewToonOutlinePipeline compiles [ToonOutlineWGSL] and creates the inverted-hull outline render pipeline ([gpu.CullFront]) on dev, scoped to cx.\n",
          "file": "pkg/render3d/toon.go",
          "line": 1116
        },
        {
          "name": "NewToonPipeline",
          "anchor": "NewToonPipeline",
          "decl": "func NewToonPipeline(cx *core.Scope, dev *gpu.Device, opts ToonPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewToonPipeline compiles [ToonWGSL] and creates the main cel-shaded render pipeline on dev, scoped to cx.\n",
          "file": "pkg/render3d/toon.go",
          "line": 1075
        },
        {
          "name": "NewUnlitPipeline",
          "anchor": "NewUnlitPipeline",
          "decl": "func NewUnlitPipeline(cx *core.Scope, dev *gpu.Device, camLayout, matLayout *gpu.BindGroupLayout, opts UnlitPipelineOptions) (*gpu.Pipeline, error)",
          "doc": "NewUnlitPipeline compiles [UnlitWGSL] and builds a render pipeline using [ColoredVertexLayout] at vertex slot 0, camLayout at [CameraGroup] (group 0), and matLayout ([MaterialDefaults.UnlitLayout]) at [MaterialGroup] (group 1).\n",
          "file": "pkg/render3d/unlit.go",
          "line": 933
        },
        {
          "name": "NormalizeSkinWeights",
          "anchor": "NormalizeSkinWeights",
          "decl": "func NormalizeSkinWeights(w math3d.Vec4) math3d.Vec4",
          "doc": "NormalizeSkinWeights normalizes non-negative joint weights so their sum equals 1. The weights are divided by their largest component before summing, so large finite weights such as 4 x 3e38 normalize to (0.25, 0.25, 0.25, 0.25) instead of overflowing. If a weight is not finite or the sum is zero or negative, it falls back to (1, 0, 0, 0) so vertices stay rigidly attached to their first joint instead of collapsing to the origin.\n",
          "file": "pkg/render3d/skin.go",
          "line": 206
        },
        {
          "name": "OrderCameraViews",
          "anchor": "OrderCameraViews",
          "decl": "func OrderCameraViews(views []CameraView, dst []int) []int",
          "doc": "OrderCameraViews appends the indices of active (non-disabled) views from views to dst in deterministic execution order: offscreen views (Target != nil) first, then main-surface views (Target == nil), each ordered stably by ascending Priority. Passing dst[:0] with capacity len(views) allocates nothing.\n",
          "file": "pkg/render3d/viewport.go",
          "line": 702
        },
        {
          "name": "PBRLightmapBindGroupLayout",
          "anchor": "PBRLightmapBindGroupLayout",
          "decl": "func PBRLightmapBindGroupLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "PBRLightmapBindGroupLayout creates the [PBRLightmapGroup] (@group(3)) bind group layout shared by every [GPUPBRLightmap]: a vertex+fragment uniform buffer at binding 0, a sampled 2D lightmap texture at binding 1, and a sampler at binding 2.\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 401
        },
        {
          "name": "PBRLightmapBindingsWGSLForGroup",
          "anchor": "PBRLightmapBindingsWGSLForGroup",
          "decl": "func PBRLightmapBindingsWGSLForGroup(group uint32) string",
          "doc": "PBRLightmapBindingsWGSLForGroup returns [PBRLightmapBindingsWGSL] with the lightmap uniform, texture, and sampler placed at @group(group).\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 145
        },
        {
          "name": "PBRLightmapLinearWGSL",
          "anchor": "PBRLightmapLinearWGSL",
          "decl": "func PBRLightmapLinearWGSL() string",
          "doc": "PBRLightmapLinearWGSL returns the linear-output variant of [PBRLightmapWGSL] that skips linear_to_srgb, compiled by [NewPBRLightmapPipeline] when [PBRLightmapPipelineOptions].LinearOutput is set or when ColorFormat is an sRGB target.\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 257
        },
        {
          "name": "PBRLightmapWGSL",
          "anchor": "PBRLightmapWGSL",
          "decl": "func PBRLightmapWGSL() string",
          "doc": "PBRLightmapWGSL returns the complete portable WGSL shader module compiled by [NewPBRLightmapPipeline] for non-sRGB color targets. It combines:\n  - [CameraWGSL] at [CameraGroup] (group 0)\n  - [LightWGSL] at [LightGroup] (group 1) for dynamic directional, point, and spot lights\n  - [MaterialBindingsWGSL] shifted to [PBRLightmapMaterialGroup] (group 2) for [GPUMaterial] base color, metallic-roughness, normal, occlusion, and emissive maps on UV0\n  - [PBRLightmapBindingsWGSL] at [PBRLightmapGroup] (group 3) for the per-object transform and baked lightmap on UV1 * UVScale + UVOffset\n  - [LightmapVertexLayout] (40 bytes: position, normal, UV0, UV1)\n\nThe decoded lightmap replaces the ambient / indirect diffuse term as (1 - metallic) * baseColor * decodedLightmap * intensity * occlusion while the [LightRig] dynamic lights supply the Cook-Torrance GGX direct term plus emissive, encoded with linear_to_srgb matching [LitPBRWGSL] and [LightmapWGSL].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 250
        },
        {
          "name": "PointLightAttenuation",
          "anchor": "PointLightAttenuation",
          "decl": "func PointLightAttenuation(distSq, lightRange float32) float32",
          "doc": "PointLightAttenuation computes the glTF KHR_lights_punctual inverse-square distance attenuation with\nsmooth range windowing:\n\n\tmax(min(1 - (d / lightRange)^4, 1), 0)^2 / max(distSq, 1e-4)\n\nWhen lightRange <= 0, pure clamped inverse-square attenuation 1 / max(distSq, 1e-4) is returned.\nThis matches point_light_attenuation in [LightWGSL].\n",
          "file": "pkg/render3d/light.go",
          "line": 1191
        },
        {
          "name": "PointShadowSelectFace",
          "anchor": "PointShadowSelectFace",
          "decl": "func PointShadowSelectFace(v math3d.Vec3) (face gpu.CubeFace, localU, localV, axisDist float32)",
          "doc": "PointShadowSelectFace projects light-to-fragment vector v onto the dominant cube face (0..5) and returns the face index, face-local UV in [0, 1]^2, and positive major-axis distance matching [PointShadowWGSL].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 1305
        },
        {
          "name": "PointShadowWGSLForGroup",
          "anchor": "PointShadowWGSLForGroup",
          "decl": "func PointShadowWGSLForGroup(group uint32) string",
          "doc": "PointShadowWGSLForGroup returns [PointShadowWGSL] with its bindings placed at @group(group) instead of [LocalShadowGroup].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 246
        },
        {
          "name": "PreferredHDRFormat",
          "anchor": "PreferredHDRFormat",
          "decl": "func PreferredHDRFormat(dev *gpu.Device) gpu.TextureFormat",
          "doc": "PreferredHDRFormat returns [gpu.FormatRGBA16Float] when dev supports it, and falls back to [gpu.FormatRGBA8Unorm] otherwise.\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 588
        },
        {
          "name": "ProbeFaceViewProj",
          "anchor": "ProbeFaceViewProj",
          "decl": "func ProbeFaceViewProj(pos math3d.Vec3, face gpu.CubeFace, near, far float32) (view, proj math3d.Mat4)",
          "doc": "ProbeFaceViewProj builds the right-handed 90-degree FOV view and [0, 1]-depth projection matrices for rendering one cubemap face from pos. The orientations preserve counter-clockwise triangle winding so backface culling works unchanged; when reading back a render target (top-down rows) to upload into a cubemap face, flip the rows vertically ([BakeReflectionProbeGPU] handles this automatically).\n",
          "file": "pkg/render3d/probes.go",
          "line": 295
        },
        {
          "name": "ProbeIBLBindGroupLayout",
          "anchor": "ProbeIBLBindGroupLayout",
          "decl": "func ProbeIBLBindGroupLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "ProbeIBLBindGroupLayout creates the [IBLGroup] bind group layout shared by [GPUProbeIBLBuffer] and [LitPBRProbeIBLWGSL]: binding 0 uniform buffer, bindings 1..3 cube textures (probe0, probe1, sky), and binding 4 trilinear sampler.\n",
          "file": "pkg/render3d/probes.go",
          "line": 1444
        },
        {
          "name": "ProbeIBLWGSLForGroup",
          "anchor": "ProbeIBLWGSLForGroup",
          "decl": "func ProbeIBLWGSLForGroup(group uint32) string",
          "doc": "ProbeIBLWGSLForGroup returns the same WGSL declarations and helper functions as [ProbeIBLWGSL] with the uniform, cubemaps, and sampler placed at the given @group index.\n",
          "file": "pkg/render3d/probes.go",
          "line": 147
        },
        {
          "name": "ProjectScreenRatio",
          "anchor": "ProjectScreenRatio",
          "decl": "func ProjectScreenRatio(bounds math3d.AABB, viewProj math3d.Mat4) float32",
          "doc": "ProjectScreenRatio estimates the fraction of viewport height [0, 1] covered\nby the bounding sphere of bounds under viewProj. It returns 0 if bounds is\nempty or lies behind the camera.\n",
          "file": "pkg/render3d/lod.go",
          "line": 104
        },
        {
          "name": "ProjectSegment",
          "anchor": "ProjectSegment",
          "decl": "func ProjectSegment(a, b math3d.Vec3, viewProj math3d.Mat4, viewport core.Bounds) (ax, ay, bx, by float32, visible bool)",
          "doc": "ProjectSegment projects the 3D world-space line segment (a, b) through viewProj into 2D screen coordinates within viewport, clipping against the near plane so segments crossing behind the camera never invert across the screen.\n\nThe near plane is clip z >= 0, which is right for the [0, 1] depth projections this package uses by default, [math3d.Perspective] and [math3d.Ortho]. Use [ProjectSegmentNO] for an OpenGL-style [-1, 1] projection such as [math3d.PerspectiveNO] or [math3d.OrthoNO]; this one would hide the near half of its depth range.\n",
          "file": "pkg/render3d/debug.go",
          "line": 15
        },
        {
          "name": "ProjectSegmentNO",
          "anchor": "ProjectSegmentNO",
          "decl": "func ProjectSegmentNO(a, b math3d.Vec3, viewProj math3d.Mat4, viewport core.Bounds) (ax, ay, bx, by float32, visible bool)",
          "doc": "ProjectSegmentNO is [ProjectSegment] for an OpenGL-style [-1, 1] depth projection such as [math3d.PerspectiveNO] or [math3d.OrthoNO]: it clips at clip z >= -w. Used with a [0, 1] orthographic projection it would keep geometry behind the camera, because w is 1 there everywhere (#546).\n",
          "file": "pkg/render3d/debug.go",
          "line": 20
        },
        {
          "name": "ReadCSMDepthAtlasAsync",
          "anchor": "ReadCSMDepthAtlasAsync",
          "decl": "func ReadCSMDepthAtlasAsync(dev *gpu.Device, csm *CascadedShadowMap, fn func(CSMDepthAtlas, error))",
          "doc": "ReadCSMDepthAtlasAsync asynchronously reads back c's [gpu.FormatDepth32Float] shadow atlas into a CPU [CSMDepthAtlas] and invokes fn on the engine goroutine (matching [gpu.Device.ReadTexture]).\n",
          "file": "pkg/render3d/csm.go",
          "line": 1593
        },
        {
          "name": "SRGBToLinear",
          "anchor": "SRGBToLinear",
          "decl": "func SRGBToLinear(rgb math3d.Vec3) math3d.Vec3",
          "doc": "SRGBToLinear decodes an sRGB triple (clamped to [0, 1] per channel) to linear RGB; it is the inverse of [LinearToSRGB].\n",
          "file": "pkg/render3d/light.go",
          "line": 1499
        },
        {
          "name": "SRGBToLinearChannel",
          "anchor": "SRGBToLinearChannel",
          "decl": "func SRGBToLinearChannel(c float32) float32",
          "doc": "SRGBToLinearChannel decodes a single sRGB-encoded channel in [0, 1] (clamped, NaN to 0) to linear light using the IEC 61966-2-1 transfer function; it is the inverse of [LinearToSRGBChannel].\n",
          "file": "pkg/render3d/light.go",
          "line": 1490
        },
        {
          "name": "SelectLOD",
          "anchor": "SelectLOD",
          "decl": "func SelectLOD(levels []LODLevel, dist float32, screenRatio float32, hysteresis float32, prevIndex int) int",
          "doc": "SelectLOD chooses the index of the appropriate [LODLevel] from levels\n(ordered finest to coarsest) given camera distance dist and projected\nscreen-height ratio screenRatio.\n\nThreshold checks are skipped for any negative metric (dist < 0 disables\nMaxDistance checks; screenRatio < 0 disables MinScreenRatio checks) or when\na level leaves that threshold <= 0.\n\nWhen 0 <= prevIndex < len(levels) and hysteresis > 0 (clamped to [0, 0.5]),\ntransitions away from prevIndex require crossing the boundary by a relative\ndeadband of hysteresis:\n  - Degrading to a coarser LOD requires exceeding MaxDistance*(1+h) or\n    falling below MinScreenRatio*(1-h).\n  - Upgrading to a finer LOD requires entering MaxDistance*(1-h) and\n    MinScreenRatio*(1+h).\n\nSelectLOD returns -1 when levels is empty.\n",
          "file": "pkg/render3d/lod.go",
          "line": 37
        },
        {
          "name": "ShadeClusteredGridPoint",
          "anchor": "ShadeClusteredGridPoint",
          "decl": "func ShadeClusteredGridPoint(worldPos, normal, viewDir math3d.Vec3, mat PBRMaterial, rig LightRig, grid *ClusterGrid, view, proj math3d.Mat4, viewportW, viewportH float32) math3d.Vec3",
          "doc": "ShadeClusteredGridPoint is [ShadeClusteredPoint] restricted to the lights grid assigned, on its last [ClusterGrid.AssignLights], to the cluster that holds worldPos in a viewportW x viewportH viewport, looked up exactly as shade_pbr_clustered in [ClusteredBindingsWGSL] looks it up.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 939
        },
        {
          "name": "ShadeClusteredPoint",
          "anchor": "ShadeClusteredPoint",
          "decl": "func ShadeClusteredPoint(worldPos, normal, viewDir math3d.Vec3, mat PBRMaterial, rig LightRig, lights []ClusterLight) math3d.Vec3",
          "doc": "ShadeClusteredPoint is [ShadePoint] for rig plus every light in lights, shaded with the same Cook-Torrance BRDF ([EvaluatePBR]). It is the brute-force reference for shade_pbr_clustered in [ClusteredBindingsWGSL] and [ClusteredFallbackBindingsWGSL] when no light is culled or truncated; call [LinearToSRGB] on the result to compare it with what [ClusteredLitWGSL] writes.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 926
        },
        {
          "name": "ShadePoint",
          "anchor": "ShadePoint",
          "decl": "func ShadePoint(worldPos, normal, viewDir math3d.Vec3, mat PBRMaterial, rig LightRig) math3d.Vec3",
          "doc": "ShadePoint evaluates total outgoing linear RGB radiance at worldPos with surface normal and view direction viewDir (from surface toward the eye) under rig (ambient, directional, point, and spot lights) and mat, matching shade_pbr + emissive in [LitPBRWGSL].\n\nnormal and viewDir do not need to be unit length; if either is degenerate, only ambient and emissive\nterms contribute. Call [LinearToSRGB] on the returned linear color to encode sRGB display output.\n",
          "file": "pkg/render3d/light.go",
          "line": 1302
        },
        {
          "name": "ShadePointShadowed",
          "anchor": "ShadePointShadowed",
          "decl": "func ShadePointShadowed(worldPos, normal, viewDir math3d.Vec3, mat PBRMaterial, rig LightRig, shadowVisibility float32) math3d.Vec3",
          "doc": "ShadePointShadowed is [ShadePoint] with the first directional light (rig.Directional[0]) scaled by shadowVisibility, matching shade_pbr_shadowed in [LightWGSL] and the lighting of [LitPBRShadowWGSL]. Pass [EvaluateDirectionalShadow]'s result as shadowVisibility to reproduce a shadowed pixel on the CPU; 1 gives exactly [ShadePoint].\n",
          "file": "pkg/render3d/light.go",
          "line": 1348
        },
        {
          "name": "ShadePointVisibility",
          "anchor": "ShadePointVisibility",
          "decl": "func ShadePointVisibility(worldPos, normal, viewDir math3d.Vec3, mat PBRMaterial, rig LightRig, vis LightVisibility) math3d.Vec3",
          "doc": "ShadePointVisibility is [ShadePoint] with rig.Directional[0], rig.Point[0] and rig.Spot[0] scaled by the matching fields of vis, matching shade_pbr_visibility in [LightWGSL] and the lighting of [LitPBRShadowWGSL], [LitPBRSpotShadowWGSL] and [LitPBRPointShadowWGSL]. Pass [EvaluateSpotShadow] or [EvaluatePointShadow] results to reproduce a pixel those shaders draw.\n",
          "file": "pkg/render3d/light.go",
          "line": 1360
        },
        {
          "name": "ShadePointWithBackground",
          "anchor": "ShadePointWithBackground",
          "decl": "func ShadePointWithBackground(worldPos, normal, viewDir math3d.Vec3, mat PBRMaterial, rig LightRig, background math3d.Vec3) math3d.Vec3",
          "doc": "ShadePointWithBackground evaluates [ShadePoint] and composites optical transmission from a linear RGB opaque scene background color behind the surface when mat.Transmission > 0, matching [ExtendedMaterialLitTransmissionWGSL] when clearcoat and base normals coincide.\n",
          "file": "pkg/render3d/light.go",
          "line": 1307
        },
        {
          "name": "ShadowBindingLayout",
          "anchor": "ShadowBindingLayout",
          "decl": "func ShadowBindingLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "ShadowBindingLayout creates the bind group layout declared by [ShadowWGSL]: binding 0 = vertex/fragment uniform buffer ([ShadowUniforms]), binding 1 = fragment depth texture (texture_depth_2d), binding 2 = fragment comparison sampler (sampler_comparison). Place it at [ShadowGroup] (2) in a pipeline's Layouts (or at whichever group [ShadowWGSLForGroup] uses).\n",
          "file": "pkg/render3d/shadow.go",
          "line": 788
        },
        {
          "name": "ShadowWGSLForGroup",
          "anchor": "ShadowWGSLForGroup",
          "decl": "func ShadowWGSLForGroup(group uint32) string",
          "doc": "ShadowWGSLForGroup returns [ShadowWGSL] with its shadow bindings placed at @group(group) instead of [ShadowGroup], for custom shaders whose group 3 already holds something else.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 476
        },
        {
          "name": "SkinJointMatrices",
          "anchor": "SkinJointMatrices",
          "decl": "func SkinJointMatrices(doc *gltf.Document, skinIndex int, dst []math3d.Mat4) ([]math3d.Mat4, error)",
          "doc": "SkinJointMatrices computes glTF 2.0 world-space joint skinning matrices for doc.Skins[skinIndex] as jointNode.WorldMatrix * InverseBindMatrices[i] (with identity when InverseBindMatrices is omitted). Per glTF 2.0 section 3.7.3.2, only joint transforms apply to a skinned mesh and the mesh node's own transform is ignored. Call [gltf.Document.ComputeWorldMatrices] before calling SkinJointMatrices after modifying node transforms or applying an animation with [gltf.Animation.Apply]. anim3d's Player keeps its own world matrices instead of writing doc.Nodes[].WorldMatrix, and its SkinMatricesForNode returns mesh-local matrices (inverse(meshWorld) * jointWorld * inverseBind); upload those with [GPUSkinPalette.UpdateWithTransform] and the mesh node's world matrix, or draw them through [LitPBRPipelineOptions].SkinLayout with that matrix as the model.\n\nResults are appended to dst[:0]; when cap(dst) >= len(skin.Joints), this function performs zero heap allocations.\n",
          "file": "pkg/render3d/skin.go",
          "line": 638
        },
        {
          "name": "SkinJointMatricesWithTransform",
          "anchor": "SkinJointMatricesWithTransform",
          "decl": "func SkinJointMatricesWithTransform(doc *gltf.Document, skinIndex int, worldTransform math3d.Mat4, dst []math3d.Mat4) ([]math3d.Mat4, error)",
          "doc": "SkinJointMatricesWithTransform is like [SkinJointMatrices] but pre-multiplies each joint matrix by worldTransform so the skinned character can be placed anywhere in the scene. It performs zero heap allocations when cap(dst) >= len(skin.Joints).\n",
          "file": "pkg/render3d/skin.go",
          "line": 643
        },
        {
          "name": "SkinVertex",
          "anchor": "SkinVertex",
          "decl": "func SkinVertex(pos, normal math3d.Vec3, joints [4]uint16, weights math3d.Vec4, matrices []math3d.Mat4) (skinnedPos, skinnedNormal math3d.Vec3)",
          "doc": "SkinVertex evaluates linear blend skinning on the CPU, matching [SkinWGSL]'s skin_position and skin_normal helpers. Weights are normalized via [NormalizeSkinWeights]; any joint index at or beyond len(matrices) evaluates as the identity matrix, matching how [GPUSkinPalette] pads unused slots.\n",
          "file": "pkg/render3d/skin.go",
          "line": 605
        },
        {
          "name": "SkinnedBounds",
          "anchor": "SkinnedBounds",
          "decl": "func SkinnedBounds(bind math3d.AABB, joints []math3d.Mat4) math3d.AABB",
          "doc": "SkinnedBounds returns a conservative axis-aligned box around a skinned mesh drawn with joints: the union of bind (the mesh's [SkinnedMesh.Bounds] or [GPUSkinnedMesh.Bounds]) transformed by every joint matrix. Each skinned vertex is a weighted average of the vertex under its joints' matrices, so it lies inside that union for any pose. With an empty joints slice it returns bind unchanged, matching how [GPUSkinPalette] pads unused slots with identity matrices. It does not allocate.\n",
          "file": "pkg/render3d/skin.go",
          "line": 368
        },
        {
          "name": "SkinnedVertexLayout",
          "anchor": "SkinnedVertexLayout",
          "decl": "func SkinnedVertexLayout() gpu.VertexBufferLayout",
          "doc": "SkinnedVertexLayout returns the vertex buffer layout of every [GPUSkinnedMesh] for [gpu.PipelineDesc].VertexBuffers: one per-vertex buffer of [SkinnedVertexStride] (64) bytes with position (@location(0)), normal (@location(1)), UV (@location(2)), joint indices (@location(3), uint32x4), and normalized weights (@location(4), float32x4). Each call returns a fresh Attributes slice.\n",
          "file": "pkg/render3d/skin.go",
          "line": 441
        },
        {
          "name": "SpotConeAttenuation",
          "anchor": "SpotConeAttenuation",
          "decl": "func SpotConeAttenuation(spotDir, toLight math3d.Vec3, angleScale, angleOffset float32) float32",
          "doc": "SpotConeAttenuation returns the glTF KHR_lights_punctual angular falloff of a spot light in [0, 1]: t = clamp(dot(spotDir, -toLight) * angleScale + angleOffset, 0, 1), squared. spotDir is the light's unit cone direction, toLight is the unit vector from the surface toward the light, and angleScale and angleOffset come from [SpotLight.ConeScaleOffset]. It is 1 inside the inner cone and 0 outside the outer cone or behind the light, and it matches spot_cone_attenuation in [LightWGSL].\n",
          "file": "pkg/render3d/spotlight.go",
          "line": 69
        },
        {
          "name": "SpotShadowViewProj",
          "anchor": "SpotShadowViewProj",
          "decl": "func SpotShadowViewProj(light SpotLight, near, far float32) math3d.Mat4",
          "doc": "SpotShadowViewProj returns the [0, 1]-depth perspective view-projection matrix a [SpotShadowMap] renders light with: looking from light.Position along light.Direction with a square field of view of 2 * light.OuterConeAngle, from near to far.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 457
        },
        {
          "name": "SpotShadowWGSLForGroup",
          "anchor": "SpotShadowWGSLForGroup",
          "decl": "func SpotShadowWGSLForGroup(group uint32) string",
          "doc": "SpotShadowWGSLForGroup returns [SpotShadowWGSL] with its bindings placed at @group(group) instead of [LocalShadowGroup].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 152
        },
        {
          "name": "SupportsHDR",
          "anchor": "SupportsHDR",
          "decl": "func SupportsHDR(dev *gpu.Device) bool",
          "doc": "SupportsHDR reports whether dev supports rendering to and sampling from [gpu.FormatRGBA16Float] textures.\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 583
        },
        {
          "name": "TerrainMaterialBindGroupLayout",
          "anchor": "TerrainMaterialBindGroupLayout",
          "decl": "func TerrainMaterialBindGroupLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "TerrainMaterialBindGroupLayout creates the [TerrainMaterialGroup] (group 2)\nbind group layout shared by every [GPUTerrainMaterial]:\n  - binding 0: vertex/fragment uniform buffer ([TerrainMaterialUniforms])\n  - binding 1: splat0 texture_2d<f32> (layers 0..3 RGBA weights)\n  - binding 2: splat1 texture_2d<f32> (layers 4..7 RGBA weights)\n  - binding 3: splat sampler (linear clamp-to-edge)\n  - binding 4: albedo texture_2d_array<f32> (sRGB RGBA8)\n  - binding 5: normal texture_2d_array<f32> (linear RGBA8)\n  - binding 6: metallic-roughness-height texture_2d_array<f32> (R=height, G=roughness, B=metallic)\n  - binding 7: layer sampler (linear repeat)\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 361
        },
        {
          "name": "TextureBindingLayout",
          "anchor": "TextureBindingLayout",
          "decl": "func TextureBindingLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "TextureBindingLayout creates a bind group layout with a fragment-visible sampled 2D texture at binding 0 and its sampler at binding 1. Place it at whichever group slot your pipeline reserves for textures (for example group 1 alongside [CameraGroup] at group 0).\n",
          "file": "pkg/render3d/texture.go",
          "line": 530
        },
        {
          "name": "ToonMaterialBindingLayout",
          "anchor": "ToonMaterialBindingLayout",
          "decl": "func ToonMaterialBindingLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "ToonMaterialBindingLayout creates the @group(1) bind group layout for [GPUToonMaterial]: binding 0 uniform buffer (vertex + fragment), binding 1 base color texture, binding 2 base sampler, binding 3 cel ramp texture, binding 4 ramp sampler (bindings 1..4 fragment-visible).\n",
          "file": "pkg/render3d/toon.go",
          "line": 782
        },
        {
          "name": "ToonQuantizeBand",
          "anchor": "ToonQuantizeBand",
          "decl": "func ToonQuantizeBand(ndl float32, bands int, smoothness float32) float32",
          "doc": "ToonQuantizeBand evaluates the discrete cel-shading band factor in [0, 1] for ndl = N·L, matching [ToonWGSL]'s toon_quantize_band function. Bands < [MinToonBands] default to [DefaultToonBands]. Smoothness 0 produces hard steps; values in (0, 0.5] anti-alias each band boundary smoothly.\n",
          "file": "pkg/render3d/toon.go",
          "line": 566
        },
        {
          "name": "ToonSceneBindingLayout",
          "anchor": "ToonSceneBindingLayout",
          "decl": "func ToonSceneBindingLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "ToonSceneBindingLayout creates the @group(2) bind group layout for a single [ToonSceneUniform] buffer (non-dynamic offset). For multi-object drawing within one render pass, see [ToonSceneDynamicBindingLayout] and [ToonRenderer].\n",
          "file": "pkg/render3d/toon.go",
          "line": 799
        },
        {
          "name": "ToonSceneDynamicBindingLayout",
          "anchor": "ToonSceneDynamicBindingLayout",
          "decl": "func ToonSceneDynamicBindingLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "ToonSceneDynamicBindingLayout creates the @group(2) bind group layout with a dynamic uniform offset, allowing one uniform buffer to supply distinct [ToonSceneUniform] transforms for many draws in the same render pass.\n",
          "file": "pkg/render3d/toon.go",
          "line": 804
        },
        {
          "name": "TransmissionBackgroundWGSLForGroup",
          "anchor": "TransmissionBackgroundWGSLForGroup",
          "decl": "func TransmissionBackgroundWGSLForGroup(group uint32) string",
          "doc": "TransmissionBackgroundWGSLForGroup returns [TransmissionBackgroundWGSL] with its bindings placed at @group(group) instead of [TransmissionBackgroundGroup] (3).\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 885
        },
        {
          "name": "UnlitMaterialBindGroupLayout",
          "anchor": "UnlitMaterialBindGroupLayout",
          "decl": "func UnlitMaterialBindGroupLayout(cx *core.Scope, dev *gpu.Device) (*gpu.BindGroupLayout, error)",
          "doc": "UnlitMaterialBindGroupLayout creates the [gpu.BindGroupLayout] expected at [MaterialGroup] (@group(1)) by [UnlitWGSL]. [NewMaterialDefaults] creates one per device and shares it through [MaterialDefaults.UnlitLayout]; call this only to build a custom pipeline layout.\n  - binding 0: uniform buffer ([UnlitUniformSize] bytes, vertex & fragment visible)\n  - binding 1: sampled 2D base-color texture (fragment visible)\n  - binding 2: sampler (fragment visible)\n",
          "file": "pkg/render3d/unlit.go",
          "line": 512
        },
        {
          "name": "ValidateLightProbeGridDoc",
          "anchor": "ValidateLightProbeGridDoc",
          "decl": "func ValidateLightProbeGridDoc(d *LightProbeGridDoc) error",
          "doc": "ValidateLightProbeGridDoc validates d against the version 1 baked light probe grid schema.\nEvery error wraps [ErrInvalidProbe].\n",
          "file": "pkg/render3d/probe_io.go",
          "line": 232
        }
      ],
      "types": [
        {
          "name": "AAMode",
          "anchor": "AAMode",
          "decl": "type AAMode uint8",
          "doc": "AAMode selects the anti-aliasing strategy for a 3D render pass (#249).\n",
          "file": "pkg/render3d/aa.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AANone",
                  "anchor": "AANone"
                },
                {
                  "name": "AAFXAA",
                  "anchor": "AAFXAA"
                },
                {
                  "name": "AAMSAA2x",
                  "anchor": "AAMSAA2x"
                },
                {
                  "name": "AAMSAA4x",
                  "anchor": "AAMSAA4x"
                }
              ],
              "decl": "const (\n\t// AANone disables anti-aliasing (single-sampled, no post-processing).\n\tAANone AAMode = iota\n\t// AAFXAA applies a full-screen FXAA 3.11 post-processing pass over a single-sampled color texture, suitable for deferred pipelines, post-FX chains, or devices without hardware MSAA.\n\tAAFXAA\n\t// AAMSAA2x requests 2x hardware multisample anti-aliasing. Because WebGPU and NSGo's portable GPU API expose 1x and 4x sample counts (guarded by Features.MSAA4x), [ClampSampleCount] promotes 2x to 4x when MSAA4x is supported and falls back to 1x otherwise.\n\tAAMSAA2x\n\t// AAMSAA4x requests 4x hardware multisample anti-aliasing, resolving to 4x when the device supports Features.MSAA4x and falling back to 1x otherwise.\n\tAAMSAA4x\n)",
              "doc": "",
              "file": "pkg/render3d/aa.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsMSAA",
              "anchor": "AAMode.IsMSAA",
              "recv": "AAMode",
              "decl": "func (m AAMode) IsMSAA() bool",
              "doc": "IsMSAA reports whether m requests hardware multisampling.\n",
              "file": "pkg/render3d/aa.go",
              "line": 57
            },
            {
              "name": "SampleCount",
              "anchor": "AAMode.SampleCount",
              "recv": "AAMode",
              "decl": "func (m AAMode) SampleCount() int",
              "doc": "SampleCount returns the requested hardware sample count for m (1 for AANone and AAFXAA, 2 for AAMSAA2x, 4 for AAMSAA4x). Pass it through [ClampSampleCount] before creating a GPU render target or pipeline.\n",
              "file": "pkg/render3d/aa.go",
              "line": 45
            },
            {
              "name": "String",
              "anchor": "AAMode.String",
              "recv": "AAMode",
              "decl": "func (m AAMode) String() string",
              "doc": "String returns a stable lowercase identifier for m (\"none\", \"fxaa\", \"msaa2x\", \"msaa4x\", or \"unknown\").\n",
              "file": "pkg/render3d/aa.go",
              "line": 29
            },
            {
              "name": "UsesFXAA",
              "anchor": "AAMode.UsesFXAA",
              "recv": "AAMode",
              "decl": "func (m AAMode) UsesFXAA() bool",
              "doc": "UsesFXAA reports whether m requests the FXAA post-processing pass.\n",
              "file": "pkg/render3d/aa.go",
              "line": 62
            }
          ]
        },
        {
          "name": "AlphaMode",
          "anchor": "AlphaMode",
          "decl": "type AlphaMode uint8",
          "doc": "AlphaMode controls how a [Material]'s alpha channel is interpreted during rendering, matching the glTF 2.0 specification.\n",
          "file": "pkg/render3d/material.go",
          "line": 46,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AlphaOpaque",
                  "anchor": "AlphaOpaque"
                },
                {
                  "name": "AlphaMask",
                  "anchor": "AlphaMask"
                },
                {
                  "name": "AlphaBlend",
                  "anchor": "AlphaBlend"
                }
              ],
              "decl": "const (\n\t// AlphaOpaque ignores alpha and outputs an opaque surface (alpha = 1.0) with depth writes enabled.\n\tAlphaOpaque AlphaMode = iota\n\t// AlphaMask discards fragments whose effective base-color alpha is less than [Material.AlphaCutoff], outputting alpha = 1.0 for surviving fragments with depth writes enabled.\n\tAlphaMask\n\t// AlphaBlend composites fragments over the color target using straight alpha blending ([gpu.BlendAlpha]) with depth writes disabled.\n\tAlphaBlend\n)",
              "doc": "",
              "file": "pkg/render3d/material.go",
              "line": 48
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "AlphaModeFromGLTF",
              "anchor": "AlphaModeFromGLTF",
              "decl": "func AlphaModeFromGLTF(mode gltf.AlphaMode) (AlphaMode, error)",
              "doc": "AlphaModeFromGLTF maps a glTF 2.0 alpha mode string (\"\", \"OPAQUE\", \"MASK\", or \"BLEND\") to [AlphaMode]. Unknown values return an error wrapping [ErrInvalidMaterial].\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 14
            }
          ],
          "methods": [
            {
              "name": "BlendMode",
              "anchor": "AlphaMode.BlendMode",
              "recv": "AlphaMode",
              "decl": "func (m AlphaMode) BlendMode() BlendMode",
              "doc": "BlendMode converts m into the corresponding render-queue [BlendMode] for [DrawItem.Blend].\n",
              "file": "pkg/render3d/material.go",
              "line": 72
            },
            {
              "name": "String",
              "anchor": "AlphaMode.String",
              "recv": "AlphaMode",
              "decl": "func (m AlphaMode) String() string",
              "doc": "String returns the canonical lowercase name of m.\n",
              "file": "pkg/render3d/material.go",
              "line": 58
            }
          ]
        },
        {
          "name": "AmbientLight",
          "anchor": "AmbientLight",
          "decl": "type AmbientLight struct {\n\tColor     math3d.Vec3\n\tIntensity float32\n}",
          "doc": "AmbientLight is a uniform isotropic fill light applied across surfaces in linear RGB space.\n",
          "file": "pkg/render3d/light.go",
          "line": 434,
          "members": [
            {
              "name": "Color",
              "anchor": "AmbientLight.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Intensity",
              "anchor": "AmbientLight.Intensity",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Validate",
              "anchor": "AmbientLight.Validate",
              "recv": "AmbientLight",
              "decl": "func (l AmbientLight) Validate() error",
              "doc": "Validate reports whether l has finite non-negative color channels and intensity. Every error wraps\n[ErrInvalidLight].\n",
              "file": "pkg/render3d/light.go",
              "line": 441
            }
          ]
        },
        {
          "name": "Billboard",
          "anchor": "Billboard",
          "decl": "type Billboard struct {\n\t// Center is the world-space point the quad's Pivot is placed at.\n\tCenter math3d.Vec3\n\t// Width and Height are the quad's size in world units. A quad with a non-positive or non-finite size is not built.\n\tWidth, Height float32\n\t// Pivot is the point of the quad placed at Center, in quad units where (0, 0) is the middle and ±0.5 are the edges; (0, -0.5) stands the quad on its bottom edge.\n\tPivot math3d.Vec2\n\t// Rotation rolls the quad counter-clockwise as seen by the viewer, in radians, about its normal. Axial billboards ignore it so they stay aligned with their axis.\n\tRotation float32\n\t// Mode selects how the quad turns toward the camera; the zero value is [BillboardViewPlane].\n\tMode BillboardMode\n\t// Axis is the world-space axis an axial billboard rotates about and points its up edge along; a zero or non-finite axis means +Y.\n\tAxis math3d.Vec3\n\t// Color fills the quad on the [*core.Drawing] path, and its alpha fades a textured quad; zero means opaque white.\n\tColor core.Color\n\t// Texture is an optional image mapped across the quad on the [*core.Drawing] path, with its top-left at the quad's top-left corner.\n\tTexture core.ImageSource\n}",
          "doc": "Billboard is a camera-facing quad in world space (#281).\n",
          "file": "pkg/render3d/billboard.go",
          "line": 95,
          "members": [
            {
              "name": "Center",
              "anchor": "Billboard.Center",
              "kind": "field",
              "doc": "Center is the world-space point the quad's Pivot is placed at."
            },
            {
              "name": "Width",
              "anchor": "Billboard.Width",
              "kind": "field",
              "doc": "Width and Height are the quad's size in world units. A quad with a non-positive or non-finite size is not built."
            },
            {
              "name": "Height",
              "anchor": "Billboard.Height",
              "kind": "field",
              "doc": "Width and Height are the quad's size in world units. A quad with a non-positive or non-finite size is not built."
            },
            {
              "name": "Pivot",
              "anchor": "Billboard.Pivot",
              "kind": "field",
              "doc": "Pivot is the point of the quad placed at Center, in quad units where (0, 0) is the middle and ±0.5 are the edges; (0, -0.5) stands the quad on its bottom edge."
            },
            {
              "name": "Rotation",
              "anchor": "Billboard.Rotation",
              "kind": "field",
              "doc": "Rotation rolls the quad counter-clockwise as seen by the viewer, in radians, about its normal. Axial billboards ignore it so they stay aligned with their axis."
            },
            {
              "name": "Mode",
              "anchor": "Billboard.Mode",
              "kind": "field",
              "doc": "Mode selects how the quad turns toward the camera; the zero value is [BillboardViewPlane]."
            },
            {
              "name": "Axis",
              "anchor": "Billboard.Axis",
              "kind": "field",
              "doc": "Axis is the world-space axis an axial billboard rotates about and points its up edge along; a zero or non-finite axis means +Y."
            },
            {
              "name": "Color",
              "anchor": "Billboard.Color",
              "kind": "field",
              "doc": "Color fills the quad on the [*core.Drawing] path, and its alpha fades a textured quad; zero means opaque white."
            },
            {
              "name": "Texture",
              "anchor": "Billboard.Texture",
              "kind": "field",
              "doc": "Texture is an optional image mapped across the quad on the [*core.Drawing] path, with its top-left at the quad's top-left corner."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Quad",
              "anchor": "Billboard.Quad",
              "recv": "Billboard",
              "decl": "func (b Billboard) Quad(cam CameraBasis) (BillboardQuad, bool)",
              "doc": "Quad builds the billboard's geometry facing cam. It reports false when the billboard's size or center is non-finite, its size is not positive, or a corner overflows to a non-finite position.\n",
              "file": "pkg/render3d/billboard.go",
              "line": 129
            }
          ]
        },
        {
          "name": "BillboardMode",
          "anchor": "BillboardMode",
          "decl": "type BillboardMode uint8",
          "doc": "BillboardMode selects how a [Billboard] turns toward the camera.\n",
          "file": "pkg/render3d/billboard.go",
          "line": 69,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BillboardViewPlane",
                  "anchor": "BillboardViewPlane"
                },
                {
                  "name": "BillboardViewPoint",
                  "anchor": "BillboardViewPoint"
                },
                {
                  "name": "BillboardAxial",
                  "anchor": "BillboardAxial"
                }
              ],
              "decl": "const (\n\t// BillboardViewPlane lies in the camera's view plane, using the camera's right and up axes. Every quad is parallel to the screen and never shears, which suits particles, sprites and impostors.\n\tBillboardViewPlane BillboardMode = iota\n\t// BillboardViewPoint turns its normal straight at the camera's position, keeping the camera's up as the roll reference. Large quads near the screen edge stay undistorted, at the cost of neighbouring quads no longer being parallel.\n\tBillboardViewPoint\n\t// BillboardAxial rotates only about [Billboard.Axis] (cylindrical billboarding), for trees, grass, flames and beams that must stay upright. Its normal is the direction to the camera with the axis component removed, so a camera looking straight along the axis sees the quad edge-on.\n\tBillboardAxial\n)",
              "doc": "",
              "file": "pkg/render3d/billboard.go",
              "line": 71
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "BillboardMode.String",
              "recv": "BillboardMode",
              "decl": "func (m BillboardMode) String() string",
              "doc": "String returns a human-readable billboard mode name.\n",
              "file": "pkg/render3d/billboard.go",
              "line": 81
            }
          ]
        },
        {
          "name": "BillboardQuad",
          "anchor": "BillboardQuad",
          "decl": "type BillboardQuad struct {\n\t// Corners are the quad's world-space corners in the order above.\n\tCorners [4]math3d.Vec3\n\t// Center is the quad's geometric middle, which differs from Billboard.Center when Pivot is not zero.\n\tCenter math3d.Vec3\n\t// Right, Up and Normal are the quad's unit axes; Normal points toward the camera.\n\tRight, Up, Normal math3d.Vec3\n\t// Width and Height are the quad's size in world units.\n\tWidth, Height float32\n}",
          "doc": "BillboardQuad is the world-space geometry of a [Billboard] facing a camera.\n\nCorners run counter-clockwise as seen by the viewer: bottom-left, bottom-right, top-right, top-left, with texture coordinates (0, 1), (1, 1), (1, 0) and (0, 0). Right × Up == Normal, so a back-face-culling pipeline keeps the quad.\n",
          "file": "pkg/render3d/billboard.go",
          "line": 117,
          "members": [
            {
              "name": "Corners",
              "anchor": "BillboardQuad.Corners",
              "kind": "field",
              "doc": "Corners are the quad's world-space corners in the order above."
            },
            {
              "name": "Center",
              "anchor": "BillboardQuad.Center",
              "kind": "field",
              "doc": "Center is the quad's geometric middle, which differs from Billboard.Center when Pivot is not zero."
            },
            {
              "name": "Right",
              "anchor": "BillboardQuad.Right",
              "kind": "field",
              "doc": "Right, Up and Normal are the quad's unit axes; Normal points toward the camera."
            },
            {
              "name": "Up",
              "anchor": "BillboardQuad.Up",
              "kind": "field",
              "doc": "Right, Up and Normal are the quad's unit axes; Normal points toward the camera."
            },
            {
              "name": "Normal",
              "anchor": "BillboardQuad.Normal",
              "kind": "field",
              "doc": "Right, Up and Normal are the quad's unit axes; Normal points toward the camera."
            },
            {
              "name": "Width",
              "anchor": "BillboardQuad.Width",
              "kind": "field",
              "doc": "Width and Height are the quad's size in world units."
            },
            {
              "name": "Height",
              "anchor": "BillboardQuad.Height",
              "kind": "field",
              "doc": "Width and Height are the quad's size in world units."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "BillboardQuad.Bounds",
              "recv": "BillboardQuad",
              "decl": "func (q BillboardQuad) Bounds() math3d.AABB",
              "doc": "Bounds returns the world-space AABB of q's corners.\n",
              "file": "pkg/render3d/billboard.go",
              "line": 218
            },
            {
              "name": "DrawItem",
              "anchor": "BillboardQuad.DrawItem",
              "recv": "BillboardQuad",
              "decl": "func (q BillboardQuad) DrawItem(template DrawItem) DrawItem",
              "doc": "DrawItem returns template with Transform, WorldBounds, Triangles and Vertices taken from q, so the quad can be sorted by [Queue.Build]. A zero template Blend is replaced by [BlendAlphaBlend], since billboards are usually translucent.\n",
              "file": "pkg/render3d/billboard.go",
              "line": 227
            },
            {
              "name": "Transform",
              "anchor": "BillboardQuad.Transform",
              "recv": "BillboardQuad",
              "decl": "func (q BillboardQuad) Transform() math3d.Mat4",
              "doc": "Transform returns the matrix that maps the unit quad [-0.5, 0.5]² in its XY plane onto q, with +Z along q.Normal, for instancing a shared quad mesh.\n",
              "file": "pkg/render3d/billboard.go",
              "line": 211
            }
          ]
        },
        {
          "name": "BillboardRenderer",
          "anchor": "BillboardRenderer",
          "decl": "type BillboardRenderer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "BillboardRenderer draws billboards into a [*core.Drawing] back to front, reusing its scratch storage across frames. Its zero value is ready to use.\n",
          "file": "pkg/render3d/billboard.go",
          "line": 245,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "BillboardRenderer.Draw",
              "recv": "*BillboardRenderer",
              "decl": "func (r *BillboardRenderer) Draw(d *core.Drawing, items []Billboard, cam CameraBasis, viewProj math3d.Mat4, viewport core.Bounds) int",
              "doc": "Draw builds every billboard facing cam, sorts them back to front by view depth (keeping slice order on ties), clips each against the near plane and fills it into d through viewProj and viewport. It returns the number of quads drawn.\n\nA textured quad is mapped with an affine transform, which is exact under an orthographic projection and a close approximation for quads that are small on screen under perspective; a textured quad that crosses the near plane is skipped.\n",
              "file": "pkg/render3d/billboard.go",
              "line": 253
            }
          ]
        },
        {
          "name": "BlendMode",
          "anchor": "BlendMode",
          "decl": "type BlendMode uint8",
          "doc": "BlendMode controls how a [DrawItem] is partitioned and sorted in the render\nqueue (#245, #248).\n",
          "file": "pkg/render3d/queue.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "BlendOpaque",
                  "anchor": "BlendOpaque"
                },
                {
                  "name": "BlendAlphaMask",
                  "anchor": "BlendAlphaMask"
                },
                {
                  "name": "BlendAlphaBlend",
                  "anchor": "BlendAlphaBlend"
                }
              ],
              "decl": "const (\n\t// BlendOpaque renders fully opaque geometry with depth writes enabled,\n\t// sorted by pipeline/material/mesh and front-to-back depth.\n\tBlendOpaque BlendMode = iota\n\t// BlendAlphaMask renders alpha-tested cutout geometry in the opaque pass\n\t// (separate batch key from BlendOpaque).\n\tBlendAlphaMask\n\t// BlendAlphaBlend renders translucent geometry strictly back-to-front by\n\t// distance from the camera.\n\tBlendAlphaBlend\n)",
              "doc": "",
              "file": "pkg/render3d/queue.go",
              "line": 15
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "BlendMode.String",
              "recv": "BlendMode",
              "decl": "func (b BlendMode) String() string",
              "doc": "String returns a human-readable blend mode name.\n",
              "file": "pkg/render3d/queue.go",
              "line": 28
            }
          ]
        },
        {
          "name": "BloomConfig",
          "anchor": "BloomConfig",
          "decl": "type BloomConfig struct {\n\t// Threshold is the minimum max-channel brightness that contributes to bloom (>= 0). Values above 1.0 target HDR emissive pixels in floating-point color targets.\n\tThreshold float32\n\t// SoftKnee controls the smooth transition width around Threshold in [0, 1]. 0 produces a hard cutoff; 0.5 produces a gradual shoulder.\n\tSoftKnee float32\n\t// Intensity scales the blurred glow added onto the scene color (>= 0). 0 leaves the scene unchanged.\n\tIntensity float32\n\t// Radius scales the separable Gaussian blur tap stride in texels (>= 0).\n\tRadius float32\n\t// BlurPasses is the number of horizontal+vertical separable Gaussian iterations in [1, 8]. 0 defaults to 2.\n\tBlurPasses int\n\t// HalfRes runs bright extraction and Gaussian blur at half resolution (max(1, w/2) x max(1, h/2)) for wider soft halos at a quarter of the pixel cost.\n\tHalfRes bool\n}",
          "doc": "BloomConfig tunes the 3D bloom post-processing pass.\n",
          "file": "pkg/render3d/post3d.go",
          "line": 663,
          "members": [
            {
              "name": "Threshold",
              "anchor": "BloomConfig.Threshold",
              "kind": "field",
              "doc": "Threshold is the minimum max-channel brightness that contributes to bloom (>= 0). Values above 1.0 target HDR emissive pixels in floating-point color targets."
            },
            {
              "name": "SoftKnee",
              "anchor": "BloomConfig.SoftKnee",
              "kind": "field",
              "doc": "SoftKnee controls the smooth transition width around Threshold in [0, 1]. 0 produces a hard cutoff; 0.5 produces a gradual shoulder."
            },
            {
              "name": "Intensity",
              "anchor": "BloomConfig.Intensity",
              "kind": "field",
              "doc": "Intensity scales the blurred glow added onto the scene color (>= 0). 0 leaves the scene unchanged."
            },
            {
              "name": "Radius",
              "anchor": "BloomConfig.Radius",
              "kind": "field",
              "doc": "Radius scales the separable Gaussian blur tap stride in texels (>= 0)."
            },
            {
              "name": "BlurPasses",
              "anchor": "BloomConfig.BlurPasses",
              "kind": "field",
              "doc": "BlurPasses is the number of horizontal+vertical separable Gaussian iterations in [1, 8]. 0 defaults to 2."
            },
            {
              "name": "HalfRes",
              "anchor": "BloomConfig.HalfRes",
              "kind": "field",
              "doc": "HalfRes runs bright extraction and Gaussian blur at half resolution (max(1, w/2) x max(1, h/2)) for wider soft halos at a quarter of the pixel cost."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultBloomConfig",
              "anchor": "DefaultBloomConfig",
              "decl": "func DefaultBloomConfig() BloomConfig",
              "doc": "DefaultBloomConfig returns balanced defaults for 3D bloom.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 679
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "BloomConfig.Validate",
              "recv": "BloomConfig",
              "decl": "func (c BloomConfig) Validate() error",
              "doc": "Validate checks that every field of c is finite and within its valid range. Every error wraps [ErrInvalidPostProcess].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 691
            }
          ]
        },
        {
          "name": "BloomPass",
          "anchor": "BloomPass",
          "decl": "type BloomPass struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "BloomPass executes bright-pixel extraction, separable 9-tap Gaussian blur across offscreen ping-pong render targets, and additive composition onto a destination target or swapchain.\n",
          "file": "pkg/render3d/post3d.go",
          "line": 729,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBloomPass",
              "anchor": "NewBloomPass",
              "decl": "func NewBloomPass(cx *core.Scope, dev *gpu.Device, opts BloomPassOptions) (*BloomPass, error)",
              "doc": "NewBloomPass creates a scope-owned [BloomPass] on dev.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 771
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "BloomPass.Apply",
              "recv": "*BloomPass",
              "decl": "func (p *BloomPass) Apply(dev *gpu.Device, rec RenderPassRecorder, srcColor, dstColor *gpu.Texture) error",
              "doc": "Apply runs bright extraction, separable blur, and additive composite from srcColor into dstColor. A nil dstColor writes to the swapchain in OutputFormat, and a texture dstColor must be in ColorFormat or OutputFormat. Every texture must have the pass size and dstColor cannot also be an input; otherwise Apply returns an error wrapping [ErrInvalidPostProcess].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1096
            },
            {
              "name": "Close",
              "anchor": "BloomPass.Close",
              "recv": "*BloomPass",
              "decl": "func (p *BloomPass) Close() error",
              "doc": "Close releases all GPU resources owned by p. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1214
            },
            {
              "name": "Config",
              "anchor": "BloomPass.Config",
              "recv": "*BloomPass",
              "decl": "func (p *BloomPass) Config() BloomConfig",
              "doc": "Config returns the pass's current normalized [BloomConfig].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1000
            },
            {
              "name": "Height",
              "anchor": "BloomPass.Height",
              "recv": "*BloomPass",
              "decl": "func (p *BloomPass) Height() uint32",
              "doc": "Height returns the configured scene height in pixels.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1028
            },
            {
              "name": "Resize",
              "anchor": "BloomPass.Resize",
              "recv": "*BloomPass",
              "decl": "func (p *BloomPass) Resize(dev *gpu.Device, width, height uint32) error",
              "doc": "Resize recreates the pass's offscreen blur render targets for a new scene size.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1064
            },
            {
              "name": "SetConfig",
              "anchor": "BloomPass.SetConfig",
              "recv": "*BloomPass",
              "decl": "func (p *BloomPass) SetConfig(cfg BloomConfig) error",
              "doc": "SetConfig validates and updates the bloom parameters. Changing [BloomConfig.HalfRes] takes effect on the next [BloomPass.Resize] or [BloomPass.Apply].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1008
            },
            {
              "name": "Valid",
              "anchor": "BloomPass.Valid",
              "recv": "*BloomPass",
              "decl": "func (p *BloomPass) Valid() bool",
              "doc": "Valid reports whether the pass is open and its GPU resources are live.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1036
            },
            {
              "name": "Width",
              "anchor": "BloomPass.Width",
              "recv": "*BloomPass",
              "decl": "func (p *BloomPass) Width() uint32",
              "doc": "Width returns the configured scene width in pixels.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1020
            }
          ]
        },
        {
          "name": "BloomPassOptions",
          "anchor": "BloomPassOptions",
          "decl": "type BloomPassOptions struct {\n\tLabel        string\n\tWidth        uint32\n\tHeight       uint32\n\tColorFormat  gpu.TextureFormat // internal blur target format: RGBA16Float (the default), RGBA8Unorm, RGBA8UnormSRGB, BGRA8Unorm or BGRA8UnormSRGB\n\tOutputFormat gpu.TextureFormat // destination format; defaults to dev.SurfaceFormat() or FormatRGBA8Unorm\n\tRetained     bool\n\tConfig       BloomConfig\n}",
          "doc": "BloomPassOptions configures [NewBloomPass].\n",
          "file": "pkg/render3d/post3d.go",
          "line": 718,
          "members": [
            {
              "name": "Label",
              "anchor": "BloomPassOptions.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "BloomPassOptions.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "BloomPassOptions.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorFormat",
              "anchor": "BloomPassOptions.ColorFormat",
              "kind": "field",
              "doc": "internal blur target format: RGBA16Float (the default), RGBA8Unorm, RGBA8UnormSRGB, BGRA8Unorm or BGRA8UnormSRGB"
            },
            {
              "name": "OutputFormat",
              "anchor": "BloomPassOptions.OutputFormat",
              "kind": "field",
              "doc": "destination format; defaults to dev.SurfaceFormat() or FormatRGBA8Unorm"
            },
            {
              "name": "Retained",
              "anchor": "BloomPassOptions.Retained",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Config",
              "anchor": "BloomPassOptions.Config",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Budget",
          "anchor": "Budget",
          "decl": "type Budget struct {\n\tMaxDrawCalls        int\n\tMaxTriangles        uint64\n\tMaxVertices         uint64\n\tMaxMaterialSwitches int\n\tMaxPipelineSwitches int\n\tMaxTextureBytes     uint64\n\tMaxBufferBytes      uint64\n}",
          "doc": "Budget defines upper limits on per-frame draw submission and GPU memory\nconsumption (#289). Any field set to 0 disables checking for that metric.\n",
          "file": "pkg/render3d/stats.go",
          "line": 68,
          "members": [
            {
              "name": "MaxDrawCalls",
              "anchor": "Budget.MaxDrawCalls",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxTriangles",
              "anchor": "Budget.MaxTriangles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxVertices",
              "anchor": "Budget.MaxVertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxMaterialSwitches",
              "anchor": "Budget.MaxMaterialSwitches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxPipelineSwitches",
              "anchor": "Budget.MaxPipelineSwitches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxTextureBytes",
              "anchor": "Budget.MaxTextureBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxBufferBytes",
              "anchor": "Budget.MaxBufferBytes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DesktopBudget",
              "anchor": "DesktopBudget",
              "decl": "func DesktopBudget() Budget",
              "doc": "DesktopBudget returns a desktop GPU budget preset suitable for mid-range\ndiscrete and integrated GPUs.\n",
              "file": "pkg/render3d/stats.go",
              "line": 100
            },
            {
              "name": "MobileBudget",
              "anchor": "MobileBudget",
              "decl": "func MobileBudget() Budget",
              "doc": "MobileBudget returns a conservative 60 fps mobile GPU budget preset\n(<= 150 draw calls, <= 150k triangles, <= 300k vertices, <= 60 material\nswitches, <= 32 pipeline switches, <= 128 MiB textures, <= 64 MiB buffers).\n",
              "file": "pkg/render3d/stats.go",
              "line": 86
            }
          ],
          "methods": []
        },
        {
          "name": "BudgetViolation",
          "anchor": "BudgetViolation",
          "decl": "type BudgetViolation struct {\n\tMetric string\n\tActual uint64\n\tLimit  uint64\n}",
          "doc": "BudgetViolation reports a single [Budget] threshold exceeded by [RenderStats].\n",
          "file": "pkg/render3d/stats.go",
          "line": 113,
          "members": [
            {
              "name": "Metric",
              "anchor": "BudgetViolation.Metric",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Actual",
              "anchor": "BudgetViolation.Actual",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Limit",
              "anchor": "BudgetViolation.Limit",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CheckBudget",
              "anchor": "CheckBudget",
              "decl": "func CheckBudget(stats RenderStats, b Budget) []BudgetViolation",
              "doc": "CheckBudget compares stats against every non-zero limit in b and returns all\nviolations in deterministic order. It returns nil when stats stays within b.\n",
              "file": "pkg/render3d/stats.go",
              "line": 126
            }
          ],
          "methods": [
            {
              "name": "String",
              "anchor": "BudgetViolation.String",
              "recv": "BudgetViolation",
              "decl": "func (v BudgetViolation) String() string",
              "doc": "String formats v as a human-readable budget overrun message.\n",
              "file": "pkg/render3d/stats.go",
              "line": 120
            }
          ]
        },
        {
          "name": "CSMCascade",
          "anchor": "CSMCascade",
          "decl": "type CSMCascade struct {\n\t// Near and Far are positive view-space distances covered by this cascade.\n\tNear float32\n\tFar  float32\n\t// LightView transforms world space into light view space (origin at world 0).\n\tLightView math3d.Mat4\n\t// LightProj is the orthographic projection mapping light view space into [0, 1] NDC depth.\n\tLightProj math3d.Mat4\n\t// LightViewProj is LightProj * LightView.\n\tLightViewProj math3d.Mat4\n\t// AtlasRect is the normalized UV sub-rectangle (u0, v0, uScale, vScale) of this cascade's tile inside the 2D depth atlas.\n\tAtlasRect math3d.Vec4\n\t// Viewport is [x, y, width, height] in atlas pixels for SetViewport/SetScissor.\n\tViewport [4]float32\n\t// TexelSize is the world-space width of one shadow-map texel.\n\tTexelSize float32\n\t// Center and Radius describe the cascade sub-frustum's bounding sphere in world space.\n\tCenter math3d.Vec3\n\tRadius float32\n}",
          "doc": "CSMCascade holds the fitted light-space projection, depth bounds, atlas tile placement, and bounding sphere of a single shadow cascade.\n",
          "file": "pkg/render3d/csm.go",
          "line": 235,
          "members": [
            {
              "name": "Near",
              "anchor": "CSMCascade.Near",
              "kind": "field",
              "doc": "Near and Far are positive view-space distances covered by this cascade."
            },
            {
              "name": "Far",
              "anchor": "CSMCascade.Far",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LightView",
              "anchor": "CSMCascade.LightView",
              "kind": "field",
              "doc": "LightView transforms world space into light view space (origin at world 0)."
            },
            {
              "name": "LightProj",
              "anchor": "CSMCascade.LightProj",
              "kind": "field",
              "doc": "LightProj is the orthographic projection mapping light view space into [0, 1] NDC depth."
            },
            {
              "name": "LightViewProj",
              "anchor": "CSMCascade.LightViewProj",
              "kind": "field",
              "doc": "LightViewProj is LightProj * LightView."
            },
            {
              "name": "AtlasRect",
              "anchor": "CSMCascade.AtlasRect",
              "kind": "field",
              "doc": "AtlasRect is the normalized UV sub-rectangle (u0, v0, uScale, vScale) of this cascade's tile inside the 2D depth atlas."
            },
            {
              "name": "Viewport",
              "anchor": "CSMCascade.Viewport",
              "kind": "field",
              "doc": "Viewport is [x, y, width, height] in atlas pixels for SetViewport/SetScissor."
            },
            {
              "name": "TexelSize",
              "anchor": "CSMCascade.TexelSize",
              "kind": "field",
              "doc": "TexelSize is the world-space width of one shadow-map texel."
            },
            {
              "name": "Center",
              "anchor": "CSMCascade.Center",
              "kind": "field",
              "doc": "Center and Radius describe the cascade sub-frustum's bounding sphere in world space."
            },
            {
              "name": "Radius",
              "anchor": "CSMCascade.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CSMConfig",
          "anchor": "CSMConfig",
          "decl": "type CSMConfig struct {\n\t// Label names GPU resources in capture tools.\n\tLabel string\n\t// CascadeCount is the number of cascades in [1, MaxCascades]. Zero defaults to 4.\n\tCascadeCount int\n\t// Resolution is the width and height in texels of each cascade tile in the 2D depth atlas. Zero defaults to 1024.\n\tResolution int\n\t// SplitLambda blends uniform (0.0) and logarithmic (1.0) cascade split distances using the practical split scheme. Must lie in [0, 1].\n\tSplitLambda float32\n\t// MaxShadowDistance caps the farthest view-space depth covered by shadows. When zero, the camera's far clip plane is used.\n\tMaxShadowDistance float32\n\t// DepthBias subtracts a small constant (modulated by surface slope) from receiver light-space depth to prevent shadow acne. Must be >= 0.\n\tDepthBias float32\n\t// NormalBias offsets receiver world positions along their surface normal (scaled by each cascade's texel size relative to cascade 0) before projecting into light space. Must be >= 0.\n\tNormalBias float32\n\t// CascadeBlendRange is the fraction in [0, 0.5] of each cascade's depth interval used to smoothly cross-fade into the next cascade (and fade out shadows smoothly approaching MaxShadowDistance). Zero disables blending.\n\tCascadeBlendRange float32\n\t// TexelSnap fits each cascade with a rotation-invariant bounding sphere and snaps its light-space projection origin to whole shadow-map texel increments, eliminating shadow-edge swimming as the camera moves.\n\tTexelSnap bool\n\t// Filter selects hard 1-tap shadows ([ShadowFilterHard]) or 3x3 PCF ([ShadowFilterPCF3x3]).\n\tFilter ShadowFilter\n\t// CasterPadding extends each cascade's orthographic near plane backward along -lightDir by this many world units so tall or off-frustum casters behind the camera still cast shadows into view. Must be >= 0.\n\tCasterPadding float32\n\t// DebugCascades tints lit surfaces by active cascade (0=red, 1=green, 2=blue, 3=yellow) in [LitPBRCSMWGSL] for inspecting cascade boundaries; [CSMFrame.DebugTint] is its CPU reference.\n\tDebugCascades bool\n\t// MaxCasters is the number of distinct non-identity caster model matrices [CascadedShadowMap.DrawCaster] can hold between two [CascadedShadowMap.Update] calls. A model drawn into several cascades takes one slot. Zero defaults to [DefaultCSMMaxCasters] (256).\n\tMaxCasters int\n\t// Retained opts every GPU buffer, depth atlas, sampler, and pipeline owned by [CascadedShadowMap] into automatic recreation across GPU device loss.\n\tRetained bool\n}",
          "doc": "CSMConfig configures [FitCascades] and [NewCascadedShadowMap].\n\nUse [DefaultCSMConfig] for balanced outdoor defaults (4 cascades, 1024x1024 per cascade, lambda 0.75, texel snapping enabled, 3x3 PCF, 10% cascade blend). Zero values for CascadeCount, Resolution, and MaxCasters fall back to [DefaultCSMCascadeCount], [DefaultCSMResolution], and [DefaultCSMMaxCasters].\n",
          "file": "pkg/render3d/csm.go",
          "line": 56,
          "members": [
            {
              "name": "Label",
              "anchor": "CSMConfig.Label",
              "kind": "field",
              "doc": "Label names GPU resources in capture tools."
            },
            {
              "name": "CascadeCount",
              "anchor": "CSMConfig.CascadeCount",
              "kind": "field",
              "doc": "CascadeCount is the number of cascades in [1, MaxCascades]. Zero defaults to 4."
            },
            {
              "name": "Resolution",
              "anchor": "CSMConfig.Resolution",
              "kind": "field",
              "doc": "Resolution is the width and height in texels of each cascade tile in the 2D depth atlas. Zero defaults to 1024."
            },
            {
              "name": "SplitLambda",
              "anchor": "CSMConfig.SplitLambda",
              "kind": "field",
              "doc": "SplitLambda blends uniform (0.0) and logarithmic (1.0) cascade split distances using the practical split scheme. Must lie in [0, 1]."
            },
            {
              "name": "MaxShadowDistance",
              "anchor": "CSMConfig.MaxShadowDistance",
              "kind": "field",
              "doc": "MaxShadowDistance caps the farthest view-space depth covered by shadows. When zero, the camera's far clip plane is used."
            },
            {
              "name": "DepthBias",
              "anchor": "CSMConfig.DepthBias",
              "kind": "field",
              "doc": "DepthBias subtracts a small constant (modulated by surface slope) from receiver light-space depth to prevent shadow acne. Must be >= 0."
            },
            {
              "name": "NormalBias",
              "anchor": "CSMConfig.NormalBias",
              "kind": "field",
              "doc": "NormalBias offsets receiver world positions along their surface normal (scaled by each cascade's texel size relative to cascade 0) before projecting into light space. Must be >= 0."
            },
            {
              "name": "CascadeBlendRange",
              "anchor": "CSMConfig.CascadeBlendRange",
              "kind": "field",
              "doc": "CascadeBlendRange is the fraction in [0, 0.5] of each cascade's depth interval used to smoothly cross-fade into the next cascade (and fade out shadows smoothly approaching MaxShadowDistance). Zero disables blending."
            },
            {
              "name": "TexelSnap",
              "anchor": "CSMConfig.TexelSnap",
              "kind": "field",
              "doc": "TexelSnap fits each cascade with a rotation-invariant bounding sphere and snaps its light-space projection origin to whole shadow-map texel increments, eliminating shadow-edge swimming as the camera moves."
            },
            {
              "name": "Filter",
              "anchor": "CSMConfig.Filter",
              "kind": "field",
              "doc": "Filter selects hard 1-tap shadows ([ShadowFilterHard]) or 3x3 PCF ([ShadowFilterPCF3x3])."
            },
            {
              "name": "CasterPadding",
              "anchor": "CSMConfig.CasterPadding",
              "kind": "field",
              "doc": "CasterPadding extends each cascade's orthographic near plane backward along -lightDir by this many world units so tall or off-frustum casters behind the camera still cast shadows into view. Must be >= 0."
            },
            {
              "name": "DebugCascades",
              "anchor": "CSMConfig.DebugCascades",
              "kind": "field",
              "doc": "DebugCascades tints lit surfaces by active cascade (0=red, 1=green, 2=blue, 3=yellow) in [LitPBRCSMWGSL] for inspecting cascade boundaries; [CSMFrame.DebugTint] is its CPU reference."
            },
            {
              "name": "MaxCasters",
              "anchor": "CSMConfig.MaxCasters",
              "kind": "field",
              "doc": "MaxCasters is the number of distinct non-identity caster model matrices [CascadedShadowMap.DrawCaster] can hold between two [CascadedShadowMap.Update] calls. A model drawn into several cascades takes one slot. Zero defaults to [DefaultCSMMaxCasters] (256)."
            },
            {
              "name": "Retained",
              "anchor": "CSMConfig.Retained",
              "kind": "field",
              "doc": "Retained opts every GPU buffer, depth atlas, sampler, and pipeline owned by [CascadedShadowMap] into automatic recreation across GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultCSMConfig",
              "anchor": "DefaultCSMConfig",
              "decl": "func DefaultCSMConfig() CSMConfig",
              "doc": "DefaultCSMConfig returns balanced defaults for cascaded directional shadows.\n",
              "file": "pkg/render3d/csm.go",
              "line": 88
            }
          ],
          "methods": [
            {
              "name": "AtlasSize",
              "anchor": "CSMConfig.AtlasSize",
              "recv": "CSMConfig",
              "decl": "func (c CSMConfig) AtlasSize() (width, height uint32)",
              "doc": "AtlasSize returns the pixel dimensions (width, height) of the 2D depth atlas that packs c's cascades: 1x1 for 1 cascade, 2x1 for 2 cascades, and 2x2 for 3 or 4 cascades.\n",
              "file": "pkg/render3d/csm.go",
              "line": 189
            },
            {
              "name": "Validate",
              "anchor": "CSMConfig.Validate",
              "recv": "CSMConfig",
              "decl": "func (c CSMConfig) Validate() error",
              "doc": "Validate checks every field of c and returns an error wrapping [ErrInvalidCSM] if any value is out of range or non-finite.\n",
              "file": "pkg/render3d/csm.go",
              "line": 104
            }
          ]
        },
        {
          "name": "CSMDepthAtlas",
          "anchor": "CSMDepthAtlas",
          "decl": "type CSMDepthAtlas struct {\n\tWidth  int\n\tHeight int\n\tDepth  []float32\n}",
          "doc": "CSMDepthAtlas holds a CPU copy of a 2D float32 shadow depth atlas (row-major, top-left origin, depth values in [0, 1]) for pure-Go reference evaluation via [EvaluateCSMShadow].\n",
          "file": "pkg/render3d/csm.go",
          "line": 893,
          "members": [
            {
              "name": "Width",
              "anchor": "CSMDepthAtlas.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "CSMDepthAtlas.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "CSMDepthAtlas.Depth",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ReadCSMDepthAtlas",
              "anchor": "ReadCSMDepthAtlas",
              "decl": "func ReadCSMDepthAtlas(dev *gpu.Device, csm *CascadedShadowMap) (CSMDepthAtlas, error)",
              "doc": "ReadCSMDepthAtlas reads back c's [gpu.FormatDepth32Float] shadow atlas synchronously (for [gpu.SoftwareRenderer] tests where [gpu.Device.ReadTexture] completes immediately). Inside a [gpu.View], use [ReadCSMDepthAtlasAsync].\n",
              "file": "pkg/render3d/csm.go",
              "line": 1630
            }
          ],
          "methods": []
        },
        {
          "name": "CSMFrame",
          "anchor": "CSMFrame",
          "decl": "type CSMFrame struct {\n\tCascadeCount      int\n\tCascades          [MaxCascades]CSMCascade\n\tSplits            [MaxCascades + 1]float32\n\tLightDir          math3d.Vec3\n\tMaxShadowDistance float32\n\tAtlasWidth        uint32\n\tAtlasHeight       uint32\n\tConfig            CSMConfig\n}",
          "doc": "CSMFrame holds the complete per-frame cascade solution computed by [FitCascades] or [FitCascadesFromCamera], ready to upload to a [CascadedShadowMap] via [CascadedShadowMap.Update] or evaluate on the CPU with [EvaluateCSMShadow] and [CSMFrame.DebugTint].\n",
          "file": "pkg/render3d/csm.go",
          "line": 257,
          "members": [
            {
              "name": "CascadeCount",
              "anchor": "CSMFrame.CascadeCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cascades",
              "anchor": "CSMFrame.Cascades",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Splits",
              "anchor": "CSMFrame.Splits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LightDir",
              "anchor": "CSMFrame.LightDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxShadowDistance",
              "anchor": "CSMFrame.MaxShadowDistance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AtlasWidth",
              "anchor": "CSMFrame.AtlasWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AtlasHeight",
              "anchor": "CSMFrame.AtlasHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Config",
              "anchor": "CSMFrame.Config",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FitCascades",
              "anchor": "FitCascades",
              "decl": "func FitCascades(camView, camProj math3d.Mat4, near, far float32, lightDir math3d.Vec3, cfg CSMConfig) CSMFrame",
              "doc": "FitCascades fits directional shadow cascades to the camera frustum defined by camView, camProj (using [0, 1] NDC depth as produced by [math3d.Perspective] and [math3d.Ortho]), and positive view-space clip distances [near, far].\n\nlightDir is the world-space direction light rays travel (from the directional light toward the scene, e.g. {0.3, -1, -0.4}). It is normalized internally; a zero or non-finite vector falls back to (0, -1, 0).\n\nWhen cfg.TexelSnap is true, each cascade uses a rotation-invariant bounding sphere quantized to 1/16 world unit and snaps its light-space projection origin to whole shadow-map texel steps, preventing shadow-edge swimming under camera motion. FitCascades performs zero heap allocations.\n",
              "file": "pkg/render3d/csm.go",
              "line": 273
            },
            {
              "name": "FitCascadesFromCamera",
              "anchor": "FitCascadesFromCamera",
              "decl": "func FitCascadesFromCamera(cam *scene3d.Camera, lightDir math3d.Vec3, cfg CSMConfig) CSMFrame",
              "doc": "FitCascadesFromCamera fits cascades to a [scene3d.Camera] with the same near and far planes its [scene3d.Camera.ProjMatrix] uses (the defaults [scene3d.Projection.Matrix] fills in for zero or out-of-range fields included). Shadows cover view depths from max(near, 0.1) to the far plane or [CSMConfig.MaxShadowDistance], so an orthographic camera whose near plane is at or behind it (Near <= 0) is shadowed from 0.1 on. When cam is nil, a default perspective camera at the origin looking down -Z is used. lightDir is the world-space direction light rays travel; with [LitPBRCSMWGSL] pass the Direction of the [LightRig]'s first directional light, the one the cascades shadow.\n",
              "file": "pkg/render3d/csm.go",
              "line": 471
            }
          ],
          "methods": [
            {
              "name": "DebugTint",
              "anchor": "CSMFrame.DebugTint",
              "recv": "*CSMFrame",
              "decl": "func (f *CSMFrame) DebugTint(viewDepth float32) math3d.Vec3",
              "doc": "DebugTint returns the color multiplier csm_debug_tint in [CSMWGSL] applies at a positive camera view depth: white (1, 1, 1) when [CSMConfig.DebugCascades] is off or viewDepth is outside the shadowed range, otherwise the active cascade's tint (0 red, 1 green, 2 blue, 3 yellow) mixed 55% into white.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1017
            },
            {
              "name": "EncodeUniforms",
              "anchor": "CSMFrame.EncodeUniforms",
              "recv": "*CSMFrame",
              "decl": "func (f *CSMFrame) EncodeUniforms(dst []byte) []byte",
              "doc": "EncodeUniforms writes f into dst as the little-endian [CSMUniformSize]-byte uniform block matching [CSMWGSL]'s CSMUniforms struct and returns dst[:CSMUniformSize]. It panics if len(dst) < [CSMUniformSize]. It makes zero heap allocations.\n",
              "file": "pkg/render3d/csm.go",
              "line": 546
            },
            {
              "name": "SelectCascade",
              "anchor": "CSMFrame.SelectCascade",
              "recv": "*CSMFrame",
              "decl": "func (f *CSMFrame) SelectCascade(viewDepth float32) (index int, nextIndex int, blend float32)",
              "doc": "SelectCascade returns the primary cascade index for a positive camera view-space depth, along with the next cascade index (or -1 if none / fading out past the final cascade) and blend factor in [0, 1].\n\nWhen viewDepth <= 0 or viewDepth >= f.MaxShadowDistance (or f.CascadeCount <= 0), SelectCascade returns (-1, -1, 0).\n",
              "file": "pkg/render3d/csm.go",
              "line": 513
            }
          ]
        },
        {
          "name": "CameraBasis",
          "anchor": "CameraBasis",
          "decl": "type CameraBasis struct {\n\t// Pos is the camera's world-space position.\n\tPos math3d.Vec3\n\t// Right is the camera's unit world-space right axis (+X in view space).\n\tRight math3d.Vec3\n\t// Up is the camera's unit world-space up axis (+Y in view space).\n\tUp math3d.Vec3\n\t// Forward is the camera's unit world-space viewing direction (-Z in view space).\n\tForward math3d.Vec3\n\t// Orthographic makes every point see the camera along -Forward instead of along the line to Pos.\n\tOrthographic bool\n}",
          "doc": "CameraBasis is a camera's world-space position and unit axes, the input that billboards and trails turn toward (#281).\n\nBuild one from a view and projection matrix with [NewCameraBasis], or fill it from a scene3d camera as CameraBasis{Pos: cam.Pos, Right: cam.Right(), Up: cam.Up(), Forward: cam.Forward(), Orthographic: cam.Projection.Kind == scene3d.ProjectionOrthographic}.\n",
          "file": "pkg/render3d/billboard.go",
          "line": 18,
          "members": [
            {
              "name": "Pos",
              "anchor": "CameraBasis.Pos",
              "kind": "field",
              "doc": "Pos is the camera's world-space position."
            },
            {
              "name": "Right",
              "anchor": "CameraBasis.Right",
              "kind": "field",
              "doc": "Right is the camera's unit world-space right axis (+X in view space)."
            },
            {
              "name": "Up",
              "anchor": "CameraBasis.Up",
              "kind": "field",
              "doc": "Up is the camera's unit world-space up axis (+Y in view space)."
            },
            {
              "name": "Forward",
              "anchor": "CameraBasis.Forward",
              "kind": "field",
              "doc": "Forward is the camera's unit world-space viewing direction (-Z in view space)."
            },
            {
              "name": "Orthographic",
              "anchor": "CameraBasis.Orthographic",
              "kind": "field",
              "doc": "Orthographic makes every point see the camera along -Forward instead of along the line to Pos."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCameraBasis",
              "anchor": "NewCameraBasis",
              "decl": "func NewCameraBasis(view, proj math3d.Mat4) (CameraBasis, bool)",
              "doc": "NewCameraBasis derives a CameraBasis from a right-handed view matrix and its projection matrix. It reports false when view is singular or yields a non-finite or degenerate basis. A projection whose bottom row is (0, 0, 0, w != 0) marks the basis orthographic.\n",
              "file": "pkg/render3d/billboard.go",
              "line": 32
            }
          ],
          "methods": [
            {
              "name": "ToCamera",
              "anchor": "CameraBasis.ToCamera",
              "recv": "CameraBasis",
              "decl": "func (c CameraBasis) ToCamera(p math3d.Vec3) math3d.Vec3",
              "doc": "ToCamera returns the unit direction from p toward the viewer: -Forward for an orthographic basis, or when p coincides with Pos, and the normalized line from p to Pos otherwise.\n",
              "file": "pkg/render3d/billboard.go",
              "line": 54
            }
          ]
        },
        {
          "name": "CameraBuffer",
          "anchor": "CameraBuffer",
          "decl": "type CameraBuffer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CameraBuffer holds one camera's uniform buffer on a GPU device together with the bind group layout and bind group that expose it to vertex and fragment shaders at [CameraGroup].\n\nCreate it once when the device is ready, call Write with the frame's camera before recording draws, and bind BindGroup at CameraGroup; pipelines list Layout at that index of their PipelineDesc.Layouts. Its resources belong to the scope it was created with and are released with it, or earlier by Close.\n",
          "file": "pkg/render3d/camera.go",
          "line": 79,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCameraBuffer",
              "anchor": "NewCameraBuffer",
              "decl": "func NewCameraBuffer(cx *core.Scope, dev *gpu.Device) (*CameraBuffer, error)",
              "doc": "NewCameraBuffer creates a camera uniform buffer, its bind group layout and its bind group on dev, owned by cx (nil for resources the caller closes itself, as in headless tests).\n",
              "file": "pkg/render3d/camera.go",
              "line": 88
            }
          ],
          "methods": [
            {
              "name": "BindGroup",
              "anchor": "CameraBuffer.BindGroup",
              "recv": "*CameraBuffer",
              "decl": "func (b *CameraBuffer) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group a render pass sets at [CameraGroup].\n",
              "file": "pkg/render3d/camera.go",
              "line": 139
            },
            {
              "name": "Buffer",
              "anchor": "CameraBuffer.Buffer",
              "recv": "*CameraBuffer",
              "decl": "func (b *CameraBuffer) Buffer() *gpu.Buffer",
              "doc": "Buffer returns the underlying uniform buffer.\n",
              "file": "pkg/render3d/camera.go",
              "line": 133
            },
            {
              "name": "Close",
              "anchor": "CameraBuffer.Close",
              "recv": "*CameraBuffer",
              "decl": "func (b *CameraBuffer) Close() error",
              "doc": "Close releases the bind group, layout and buffer now rather than with the owning scope. It returns the first error and is safe to call more than once.\n",
              "file": "pkg/render3d/camera.go",
              "line": 142
            },
            {
              "name": "Layout",
              "anchor": "CameraBuffer.Layout",
              "recv": "*CameraBuffer",
              "decl": "func (b *CameraBuffer) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout a pipeline lists at [CameraGroup].\n",
              "file": "pkg/render3d/camera.go",
              "line": 136
            },
            {
              "name": "Write",
              "anchor": "CameraBuffer.Write",
              "recv": "*CameraBuffer",
              "decl": "func (b *CameraBuffer) Write(u CameraUniform)",
              "doc": "Write uploads u to the buffer; draws recorded after it read the new values. It encodes into storage the CameraBuffer owns, so the only copy made is the one gpu.Device.WriteBuffer takes of the bytes it queues.\n",
              "file": "pkg/render3d/camera.go",
              "line": 123
            },
            {
              "name": "WriteCamera",
              "anchor": "CameraBuffer.WriteCamera",
              "recv": "*CameraBuffer",
              "decl": "func (b *CameraBuffer) WriteCamera(cam *scene3d.Camera)",
              "doc": "WriteCamera uploads cam's current pose and projection; it is Write(NewCameraUniform(cam)).\n",
              "file": "pkg/render3d/camera.go",
              "line": 128
            }
          ]
        },
        {
          "name": "CameraUniform",
          "anchor": "CameraUniform",
          "decl": "type CameraUniform struct {\n\tView     math3d.Mat4\n\tProj     math3d.Mat4\n\tViewProj math3d.Mat4\n\t// Eye is (position, 1) for a perspective camera and (direction toward the viewer, 0) for an orthographic one; see [scene3d.Camera.Eye].\n\tEye math3d.Vec4\n}",
          "doc": "CameraUniform is the per-view camera data a 3D shader reads: the view, projection and combined matrices in math3d's column-major layout with [0, 1] clip depth, and the homogeneous eye point.\n",
          "file": "pkg/render3d/camera.go",
          "line": 33,
          "members": [
            {
              "name": "View",
              "anchor": "CameraUniform.View",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Proj",
              "anchor": "CameraUniform.Proj",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewProj",
              "anchor": "CameraUniform.ViewProj",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Eye",
              "anchor": "CameraUniform.Eye",
              "kind": "field",
              "doc": "Eye is (position, 1) for a perspective camera and (direction toward the viewer, 0) for an orthographic one; see [scene3d.Camera.Eye]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCameraUniform",
              "anchor": "NewCameraUniform",
              "decl": "func NewCameraUniform(cam *scene3d.Camera) CameraUniform",
              "doc": "NewCameraUniform returns the uniform data for cam's current pose and projection.\n",
              "file": "pkg/render3d/camera.go",
              "line": 42
            },
            {
              "name": "ProbeFaceCamera",
              "anchor": "ProbeFaceCamera",
              "decl": "func ProbeFaceCamera(pos math3d.Vec3, face gpu.CubeFace, near, far float32) CameraUniform",
              "doc": "ProbeFaceCamera returns a [CameraUniform] configured to render one cubemap face from pos with a 90-degree field of view.\n",
              "file": "pkg/render3d/probes.go",
              "line": 332
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "CameraUniform.Encode",
              "recv": "*CameraUniform",
              "decl": "func (u *CameraUniform) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst as the little-endian float32 block [CameraWGSL] declares and returns dst[:CameraUniformSize]. It panics if len(dst) is less than CameraUniformSize, whatever dst's capacity.\n",
              "file": "pkg/render3d/camera.go",
              "line": 54
            }
          ]
        },
        {
          "name": "CameraView",
          "anchor": "CameraView",
          "decl": "type CameraView struct {\n\t// Name is an optional label used in GPU pass labels and diagnostics.\n\tName string\n\t// Camera supplies the viewpoint and projection. Required for active views.\n\tCamera *scene3d.Camera\n\t// Target directs this camera into an offscreen [RenderTexture]. Offscreen views always execute before main-surface views (Target == nil) so their textures are ready to sample as material textures in the same frame.\n\tTarget *RenderTexture\n\t// Viewport selects the normalized sub-rectangle of Target (or the main surface) to render into. The zero value covers the entire target.\n\tViewport ViewportRect\n\t// LayerMask selects which [scene3d.Node.Layer] bits this camera sees. Zero defaults to [scene3d.LayerAll] via [CameraView.EffectiveLayerMask] so struct literals render all layers unless restricted; to render nothing, set Disabled. This differs from [FilterLayeredItems], [FilterNodesByLayer] and [scene3d.Decal.LayerMask], where a zero mask matches nothing, so filter with [ViewportContext.LayerMask], which is already the effective mask.\n\tLayerMask uint32\n\t// Priority orders views ascending within the offscreen phase and within the main-surface phase; ties preserve input slice order.\n\tPriority int\n\t// ClearColor sets the clear color when this view opens a clearing pass. Only the view that opens a pass clears: a view that shares the pass of the view before it (consecutive viewports on one target, such as split-screen players) or continues it with ResetDepth keeps the color already there, so give such views distinct backgrounds by drawing a full-viewport quad first. On the main surface, zero falls back to [SurfaceDesc.ClearColor], so an explicit transparent black clear is not expressible there while SurfaceDesc.ClearColor is set.\n\tClearColor core.Color\n\t// ClearDepth sets the depth clear value for a pass this view opens, or for the depth clear ResetDepth requests. Zero defaults to 1.0 (on the main surface, to [SurfaceDesc.ClearDepth] first), so a reversed-Z clear to 0 is not expressible.\n\tClearDepth float32\n\t// LoadColor controls whether the first pass targeting this view's target in a frame clears color ([gpu.LoadClear], the zero default) or preserves existing contents ([gpu.LoadLoad]). A later view that returns to an offscreen target after views on another target always loads color and depth, so what the earlier views drew is kept; set ResetDepth on it to clear depth instead.\n\tLoadColor gpu.LoadOp\n\t// ResetDepth forces a continuation pass with preserved color ([gpu.LoadLoad]) and a fresh depth clear ([gpu.LoadClear]) when this view shares a target with a preceding view (for example, an overlapping picture-in-picture 3D minimap drawn over a full-screen 3D view). Leave false for non-overlapping split-screen viewports so they share a single GPU render pass.\n\tResetDepth bool\n\t// PreserveAspect keeps Camera.Projection.Aspect unchanged instead of adjusting a per-view copy of the camera to match the resolved viewport's pixel aspect ratio.\n\tPreserveAspect bool\n\t// Disabled skips this view when true.\n\tDisabled bool\n}",
          "doc": "CameraView describes one camera pass rendered by [ViewportRenderer]: either an offscreen render-to-texture pass (Target != nil) or a viewport on the main surface (Target == nil).\n",
          "file": "pkg/render3d/viewport.go",
          "line": 649,
          "members": [
            {
              "name": "Name",
              "anchor": "CameraView.Name",
              "kind": "field",
              "doc": "Name is an optional label used in GPU pass labels and diagnostics."
            },
            {
              "name": "Camera",
              "anchor": "CameraView.Camera",
              "kind": "field",
              "doc": "Camera supplies the viewpoint and projection. Required for active views."
            },
            {
              "name": "Target",
              "anchor": "CameraView.Target",
              "kind": "field",
              "doc": "Target directs this camera into an offscreen [RenderTexture]. Offscreen views always execute before main-surface views (Target == nil) so their textures are ready to sample as material textures in the same frame."
            },
            {
              "name": "Viewport",
              "anchor": "CameraView.Viewport",
              "kind": "field",
              "doc": "Viewport selects the normalized sub-rectangle of Target (or the main surface) to render into. The zero value covers the entire target."
            },
            {
              "name": "LayerMask",
              "anchor": "CameraView.LayerMask",
              "kind": "field",
              "doc": "LayerMask selects which [scene3d.Node.Layer] bits this camera sees. Zero defaults to [scene3d.LayerAll] via [CameraView.EffectiveLayerMask] so struct literals render all layers unless restricted; to render nothing, set Disabled. This differs from [FilterLayeredItems], [FilterNodesByLayer] and [scene3d.Decal.LayerMask], where a zero mask matches nothing, so filter with [ViewportContext.LayerMask], which is already the effective mask."
            },
            {
              "name": "Priority",
              "anchor": "CameraView.Priority",
              "kind": "field",
              "doc": "Priority orders views ascending within the offscreen phase and within the main-surface phase; ties preserve input slice order."
            },
            {
              "name": "ClearColor",
              "anchor": "CameraView.ClearColor",
              "kind": "field",
              "doc": "ClearColor sets the clear color when this view opens a clearing pass. Only the view that opens a pass clears: a view that shares the pass of the view before it (consecutive viewports on one target, such as split-screen players) or continues it with ResetDepth keeps the color already there, so give such views distinct backgrounds by drawing a full-viewport quad first. On the main surface, zero falls back to [SurfaceDesc.ClearColor], so an explicit transparent black clear is not expressible there while SurfaceDesc.ClearColor is set."
            },
            {
              "name": "ClearDepth",
              "anchor": "CameraView.ClearDepth",
              "kind": "field",
              "doc": "ClearDepth sets the depth clear value for a pass this view opens, or for the depth clear ResetDepth requests. Zero defaults to 1.0 (on the main surface, to [SurfaceDesc.ClearDepth] first), so a reversed-Z clear to 0 is not expressible."
            },
            {
              "name": "LoadColor",
              "anchor": "CameraView.LoadColor",
              "kind": "field",
              "doc": "LoadColor controls whether the first pass targeting this view's target in a frame clears color ([gpu.LoadClear], the zero default) or preserves existing contents ([gpu.LoadLoad]). A later view that returns to an offscreen target after views on another target always loads color and depth, so what the earlier views drew is kept; set ResetDepth on it to clear depth instead."
            },
            {
              "name": "ResetDepth",
              "anchor": "CameraView.ResetDepth",
              "kind": "field",
              "doc": "ResetDepth forces a continuation pass with preserved color ([gpu.LoadLoad]) and a fresh depth clear ([gpu.LoadClear]) when this view shares a target with a preceding view (for example, an overlapping picture-in-picture 3D minimap drawn over a full-screen 3D view). Leave false for non-overlapping split-screen viewports so they share a single GPU render pass."
            },
            {
              "name": "PreserveAspect",
              "anchor": "CameraView.PreserveAspect",
              "kind": "field",
              "doc": "PreserveAspect keeps Camera.Projection.Aspect unchanged instead of adjusting a per-view copy of the camera to match the resolved viewport's pixel aspect ratio."
            },
            {
              "name": "Disabled",
              "anchor": "CameraView.Disabled",
              "kind": "field",
              "doc": "Disabled skips this view when true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCameraView",
              "anchor": "NewCameraView",
              "decl": "func NewCameraView(cam *scene3d.Camera) CameraView",
              "doc": "NewCameraView returns a [CameraView] targeting the full main surface with [scene3d.LayerAll] and ClearDepth 1.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 677
            }
          ],
          "methods": [
            {
              "name": "EffectiveLayerMask",
              "anchor": "CameraView.EffectiveLayerMask",
              "recv": "CameraView",
              "decl": "func (v CameraView) EffectiveLayerMask() uint32",
              "doc": "EffectiveLayerMask returns v.LayerMask, defaulting zero to [scene3d.LayerAll].\n",
              "file": "pkg/render3d/viewport.go",
              "line": 687
            }
          ]
        },
        {
          "name": "CascadedShadowMap",
          "anchor": "CascadedShadowMap",
          "decl": "type CascadedShadowMap struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CascadedShadowMap owns the portable 2D [gpu.FormatDepth32Float] depth atlas, comparison sampler, uniform buffers, bind groups, and depth-only caster pipeline for directional cascaded shadow maps on an NSGo [gpu.Device].\n\nTypical per-frame usage:\n\n\tframe := render3d.FitCascadesFromCamera(cam, rig.Directional[0].Direction, csm.Config())\n\t_ = csm.Update(dev, frame)\n\tfor i := range csm.CascadeCount() {\n\t\tif pass := csm.BeginCascadePass(enc, i); pass != nil {\n\t\t\tcsm.DrawCaster(pass, mesh, modelMat)\n\t\t\tpass.End()\n\t\t}\n\t}\n\t// Then in the main lit pass, with a pipeline from NewLitPBRCSMPipeline:\n\tmainPass.SetBindGroup(render3d.CSMGroup, csm.BindGroup())\n",
          "file": "pkg/render3d/csm.go",
          "line": 1062,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCascadedShadowMap",
              "anchor": "NewCascadedShadowMap",
              "decl": "func NewCascadedShadowMap(cx *core.Scope, dev *gpu.Device, cfg CSMConfig) (*CascadedShadowMap, error)",
              "doc": "NewCascadedShadowMap validates cfg and allocates the 2D depth atlas, comparison sampler, uniform buffers, bind groups, and depth-only caster pipeline on dev, scoped to cx.\n\nInvalid configuration returns an error wrapping [ErrInvalidCSM] before any GPU resource is created. A nil or lost device returns [gpu.ErrDeviceLost].\n",
              "file": "pkg/render3d/csm.go",
              "line": 1097
            }
          ],
          "methods": [
            {
              "name": "AtlasHeight",
              "anchor": "CascadedShadowMap.AtlasHeight",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) AtlasHeight() uint32",
              "doc": "AtlasHeight returns the depth atlas height in texels.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1444
            },
            {
              "name": "AtlasWidth",
              "anchor": "CascadedShadowMap.AtlasWidth",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) AtlasWidth() uint32",
              "doc": "AtlasWidth returns the depth atlas width in texels.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1436
            },
            {
              "name": "BeginCascadePass",
              "anchor": "CascadedShadowMap.BeginCascadePass",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) BeginCascadePass(enc RenderPassStarter, cascadeIdx int) *gpu.RenderPass",
              "doc": "BeginCascadePass starts a depth-only render pass targeting cascadeIdx's tile in the 2D depth atlas, sets the tile viewport and scissor rectangle, binds the depth-only caster pipeline, and binds cascadeIdx's light view-projection at group 0.\n\nThe first cascade pass after [CascadedShadowMap.Update], whichever cascade it is, clears the whole depth atlas to 1.0 (a clear is not limited by the scissor); every later pass keeps the tiles already drawn with [gpu.LoadLoad]. Render every cascade after each Update, in any order. Returns nil when c, enc, or cascadeIdx is invalid.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1346
            },
            {
              "name": "BindGroup",
              "anchor": "CascadedShadowMap.BindGroup",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group a lit render pass sets at [CSMGroup].\n",
              "file": "pkg/render3d/csm.go",
              "line": 1484
            },
            {
              "name": "ByteSize",
              "anchor": "CascadedShadowMap.ByteSize",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by c's depth atlas and uniform buffers, for [RenderStats] and [Budget] accounting.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1516
            },
            {
              "name": "CascadeBindGroup",
              "anchor": "CascadedShadowMap.CascadeBindGroup",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) CascadeBindGroup(idx int) *gpu.BindGroup",
              "doc": "CascadeBindGroup returns the group-0 bind group holding cascade idx's light_view_proj uniform buffer, or nil if idx is out of range.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1500
            },
            {
              "name": "CascadeCount",
              "anchor": "CascadedShadowMap.CascadeCount",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) CascadeCount() int",
              "doc": "CascadeCount returns the number of cascades of the frame last passed to [CascadedShadowMap.Update], which [CascadedShadowMap.BeginCascadePass] accepts; it always equals [CSMConfig.CascadeCount] of [CascadedShadowMap.Config].\n",
              "file": "pkg/render3d/csm.go",
              "line": 1428
            },
            {
              "name": "CasterModelLayout",
              "anchor": "CascadedShadowMap.CasterModelLayout",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) CasterModelLayout() *gpu.BindGroupLayout",
              "doc": "CasterModelLayout returns the group-1 bind group layout expected by [CascadedShadowMap.DepthPipeline] and [CascadedShadowMap.DrawCasterGroup].\n",
              "file": "pkg/render3d/csm.go",
              "line": 1508
            },
            {
              "name": "Close",
              "anchor": "CascadedShadowMap.Close",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) Close() error",
              "doc": "Close releases every GPU resource owned by c now rather than waiting for its owning scope. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1562
            },
            {
              "name": "Config",
              "anchor": "CascadedShadowMap.Config",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) Config() CSMConfig",
              "doc": "Config returns the normalized [CSMConfig] used to create c.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1412
            },
            {
              "name": "DepthPipeline",
              "anchor": "CascadedShadowMap.DepthPipeline",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) DepthPipeline() *gpu.Pipeline",
              "doc": "DepthPipeline returns the depth-only caster pipeline used by [BeginCascadePass].\n",
              "file": "pkg/render3d/csm.go",
              "line": 1492
            },
            {
              "name": "DepthTexture",
              "anchor": "CascadedShadowMap.DepthTexture",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) DepthTexture() *gpu.Texture",
              "doc": "DepthTexture returns the underlying 2D [gpu.FormatDepth32Float] atlas texture.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1452
            },
            {
              "name": "DrawCaster",
              "anchor": "CascadedShadowMap.DrawCaster",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) DrawCaster(pass *gpu.RenderPass, mesh *GPUMesh, model math3d.Mat4) bool",
              "doc": "DrawCaster renders mesh as a shadow caster inside a pass opened by [CascadedShadowMap.BeginCascadePass], transforming its vertices by model, and reports whether it drew.\n\nA zero or identity model uses a pre-filled identity slot. Every other model takes one slot of the caster transform buffer the first time it is drawn after [CascadedShadowMap.Update]; drawing the same model again, for example into the next cascade, reuses that slot, so [CSMConfig.MaxCasters] counts distinct models per frame, not draws. Once every slot is taken, DrawCaster draws nothing and returns false rather than overwrite a transform an earlier draw of the same command buffer still reads; raise MaxCasters, or bind caller-owned transforms with [CascadedShadowMap.DrawCasterGroup].\n",
              "file": "pkg/render3d/csm.go",
              "line": 1375
            },
            {
              "name": "DrawCasterGroup",
              "anchor": "CascadedShadowMap.DrawCasterGroup",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) DrawCasterGroup(pass *gpu.RenderPass, mesh *GPUMesh, modelGroup *gpu.BindGroup, dynamicOffsets ...uint32)",
              "doc": "DrawCasterGroup renders mesh inside a pass opened by [CascadedShadowMap.BeginCascadePass] using a caller-owned model bind group matching [CascadedShadowMap.CasterModelLayout] at group 1.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1403
            },
            {
              "name": "Frame",
              "anchor": "CascadedShadowMap.Frame",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) Frame() CSMFrame",
              "doc": "Frame returns the most recently uploaded [CSMFrame].\n",
              "file": "pkg/render3d/csm.go",
              "line": 1420
            },
            {
              "name": "Layout",
              "anchor": "CascadedShadowMap.Layout",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout a lit pipeline places at [CSMGroup].\n",
              "file": "pkg/render3d/csm.go",
              "line": 1476
            },
            {
              "name": "Sampler",
              "anchor": "CascadedShadowMap.Sampler",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) Sampler() *gpu.Sampler",
              "doc": "Sampler returns the comparison sampler bound with the depth atlas.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1460
            },
            {
              "name": "UniformBuffer",
              "anchor": "CascadedShadowMap.UniformBuffer",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) UniformBuffer() *gpu.Buffer",
              "doc": "UniformBuffer returns the [CSMUniformSize]-byte uniform buffer.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1468
            },
            {
              "name": "Update",
              "anchor": "CascadedShadowMap.Update",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) Update(dev *gpu.Device, frame CSMFrame) error",
              "doc": "Update uploads frame's cascade matrices, split distances, atlas rects and shading parameters onto dev with zero heap allocations, and frees every caster slot [CascadedShadowMap.DrawCaster] took since the last Update. Call it once per frame before [CascadedShadowMap.BeginCascadePass].\n\nframe must be fitted with c's cascade count, resolution and filter ([CascadedShadowMap.Config]), because its atlas tiles, viewports, texel size and filter mode index c's atlas and sampler; any other frame returns an error wrapping [ErrInvalidCSM] and leaves c unchanged. The other [CSMConfig] fields (splits, biases, blend range, padding, debug tint) may change from frame to frame.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1313
            },
            {
              "name": "Valid",
              "anchor": "CascadedShadowMap.Valid",
              "recv": "*CascadedShadowMap",
              "decl": "func (c *CascadedShadowMap) Valid() bool",
              "doc": "Valid reports whether every GPU resource owned by c is open and belongs to a live device.\n",
              "file": "pkg/render3d/csm.go",
              "line": 1539
            }
          ]
        },
        {
          "name": "ClusterConfig",
          "anchor": "ClusterConfig",
          "decl": "type ClusterConfig struct {\n\t// TilesX is the number of screen-space horizontal tiles (default 16).\n\tTilesX int\n\t// TilesY is the number of screen-space vertical tiles (default 9).\n\tTilesY int\n\t// SlicesZ is the number of logarithmic view-space depth slices (default 24, max 64).\n\tSlicesZ int\n\t// MaxLights is the maximum number of visible local lights stored in clustered mode (default 512).\n\tMaxLights int\n\t// MaxLightsPerCluster caps how many lights can be assigned to one cluster cell (default 64).\n\tMaxLightsPerCluster int\n\t// FallbackMaxLights caps how many prioritized lights are uploaded in uniform-buffer fallback mode (default 16, max 16).\n\tFallbackMaxLights int\n\t// ForceFallback forces the uniform-buffer fallback path even on devices that support storage buffers and compute.\n\tForceFallback bool\n\t// Retained keeps CPU copies of GPU buffers so NSGo recreates them after a device loss.\n\tRetained bool\n\t// Label prefixes GPU resource debug labels.\n\tLabel string\n}",
          "doc": "ClusterConfig configures the 3D frustum-cluster grid and its mobile uniform-buffer fallback. Zero fields use defaults from [DefaultClusterConfig].\n",
          "file": "pkg/render3d/clustered.go",
          "line": 235,
          "members": [
            {
              "name": "TilesX",
              "anchor": "ClusterConfig.TilesX",
              "kind": "field",
              "doc": "TilesX is the number of screen-space horizontal tiles (default 16)."
            },
            {
              "name": "TilesY",
              "anchor": "ClusterConfig.TilesY",
              "kind": "field",
              "doc": "TilesY is the number of screen-space vertical tiles (default 9)."
            },
            {
              "name": "SlicesZ",
              "anchor": "ClusterConfig.SlicesZ",
              "kind": "field",
              "doc": "SlicesZ is the number of logarithmic view-space depth slices (default 24, max 64)."
            },
            {
              "name": "MaxLights",
              "anchor": "ClusterConfig.MaxLights",
              "kind": "field",
              "doc": "MaxLights is the maximum number of visible local lights stored in clustered mode (default 512)."
            },
            {
              "name": "MaxLightsPerCluster",
              "anchor": "ClusterConfig.MaxLightsPerCluster",
              "kind": "field",
              "doc": "MaxLightsPerCluster caps how many lights can be assigned to one cluster cell (default 64)."
            },
            {
              "name": "FallbackMaxLights",
              "anchor": "ClusterConfig.FallbackMaxLights",
              "kind": "field",
              "doc": "FallbackMaxLights caps how many prioritized lights are uploaded in uniform-buffer fallback mode (default 16, max 16)."
            },
            {
              "name": "ForceFallback",
              "anchor": "ClusterConfig.ForceFallback",
              "kind": "field",
              "doc": "ForceFallback forces the uniform-buffer fallback path even on devices that support storage buffers and compute."
            },
            {
              "name": "Retained",
              "anchor": "ClusterConfig.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU copies of GPU buffers so NSGo recreates them after a device loss."
            },
            {
              "name": "Label",
              "anchor": "ClusterConfig.Label",
              "kind": "field",
              "doc": "Label prefixes GPU resource debug labels."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultClusterConfig",
              "anchor": "DefaultClusterConfig",
              "decl": "func DefaultClusterConfig() ClusterConfig",
              "doc": "DefaultClusterConfig returns the standard 16x9x24 frustum-cluster grid supporting 512 lights (64 per cluster) and a 16-light mobile/WebGL 2 fallback.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 257
            }
          ],
          "methods": [
            {
              "name": "ClusterCount",
              "anchor": "ClusterConfig.ClusterCount",
              "recv": "ClusterConfig",
              "decl": "func (c ClusterConfig) ClusterCount() int",
              "doc": "ClusterCount returns the total number of 3D frustum clusters (TilesX * TilesY * SlicesZ) after applying defaults.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 319
            },
            {
              "name": "Validate",
              "anchor": "ClusterConfig.Validate",
              "recv": "ClusterConfig",
              "decl": "func (c ClusterConfig) Validate() error",
              "doc": "Validate checks that every field (after applying defaults to zero fields) is within supported limits. Every error wraps [ErrInvalidClusterConfig].\n",
              "file": "pkg/render3d/clustered.go",
              "line": 291
            }
          ]
        },
        {
          "name": "ClusterGrid",
          "anchor": "ClusterGrid",
          "decl": "type ClusterGrid struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ClusterGrid builds a 3D view-space frustum cluster grid and assigns local point and spot lights to intersecting cells with zero steady-state allocations.\n\nCluster AABBs are cached by (proj, near, far) so camera rotation/translation frames reuse the frustum cells without recomputing them.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 346,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewClusterGrid",
              "anchor": "NewClusterGrid",
              "decl": "func NewClusterGrid(cfg ClusterConfig) (*ClusterGrid, error)",
              "doc": "NewClusterGrid validates cfg and allocates reusable storage for frustum clusters and light assignment.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 368
            }
          ],
          "methods": [
            {
              "name": "ActiveLights",
              "anchor": "ClusterGrid.ActiveLights",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) ActiveLights() []ClusterLight",
              "doc": "ActiveLights returns the frustum-visible lights packed by the most recent [ClusterGrid.AssignLights] call (indices in [ClusterGrid.LightIndices] reference this slice).\n",
              "file": "pkg/render3d/clustered.go",
              "line": 410
            },
            {
              "name": "AssignLights",
              "anchor": "ClusterGrid.AssignLights",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) AssignLights(view, proj math3d.Mat4, near, far float32, lights []ClusterLight) ClusterStats",
              "doc": "AssignLights transforms lights into view space, culls lights outside the camera frustum, tests each visible light against its candidate frustum clusters (sphere-vs-AABB for all lights plus exact cone-vs-AABB rejection for spot lights), and packs compact offset/count and index arrays.\n\nLights that fail [ClusterLight.Validate] or have no power are skipped and counted in CulledLights; [ClusteredLightSystem.Update] validates first and reports them as errors. Once MaxLights lights are visible, further lights are dropped in input order (TruncatedLights), and once a cell holds MaxLightsPerCluster lights it drops the rest in input order (TruncatedClusters), so put the most important lights first when a scene can exceed either cap. Steady-state calls perform zero heap allocations.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 541
            },
            {
              "name": "BuildFrustum",
              "anchor": "ClusterGrid.BuildFrustum",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) BuildFrustum(proj math3d.Mat4, near, far float32) bool",
              "doc": "BuildFrustum computes view-space depth slice boundaries and per-cluster view-space AABBs for (proj, near, far), caching the result until any of those inputs change.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 454
            },
            {
              "name": "ClusterAABB",
              "anchor": "ClusterGrid.ClusterAABB",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) ClusterAABB(tileX, tileY, sliceZ int) math3d.AABB",
              "doc": "ClusterAABB returns the cached view-space AABB of cluster (tileX, tileY, sliceZ).\n",
              "file": "pkg/render3d/clustered.go",
              "line": 396
            },
            {
              "name": "ClusterCount",
              "anchor": "ClusterGrid.ClusterCount",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) ClusterCount() int",
              "doc": "ClusterCount returns the total number of frustum cells (TilesX * TilesY * SlicesZ).\n",
              "file": "pkg/render3d/clustered.go",
              "line": 390
            },
            {
              "name": "ClusterIndex",
              "anchor": "ClusterGrid.ClusterIndex",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) ClusterIndex(tileX, tileY, sliceZ int) int",
              "doc": "ClusterIndex returns the flat linear index for cluster coordinates (tileX, tileY, sliceZ).\n",
              "file": "pkg/render3d/clustered.go",
              "line": 405
            },
            {
              "name": "ClusterLightIndices",
              "anchor": "ClusterGrid.ClusterLightIndices",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) ClusterLightIndices(tileX, tileY, sliceZ int) []uint32",
              "doc": "ClusterLightIndices returns the light indices assigned to cluster (tileX, tileY, sliceZ) on the last [ClusterGrid.AssignLights] call.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 419
            },
            {
              "name": "Config",
              "anchor": "ClusterGrid.Config",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) Config() ClusterConfig",
              "doc": "Config returns the normalized [ClusterConfig] of g.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 387
            },
            {
              "name": "LastStats",
              "anchor": "ClusterGrid.LastStats",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) LastStats() ClusterStats",
              "doc": "LastStats returns the [ClusterStats] from the most recent [ClusterGrid.AssignLights] call.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 433
            },
            {
              "name": "LightIndices",
              "anchor": "ClusterGrid.LightIndices",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) LightIndices() []uint32",
              "doc": "LightIndices returns the flat packed light-index list referenced by [ClusterGrid.Offsets].\n",
              "file": "pkg/render3d/clustered.go",
              "line": 416
            },
            {
              "name": "Offsets",
              "anchor": "ClusterGrid.Offsets",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) Offsets() []ClusterOffsetCount",
              "doc": "Offsets returns the per-cluster offset/count table packed by the most recent [ClusterGrid.AssignLights] call.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 413
            },
            {
              "name": "SliceDepths",
              "anchor": "ClusterGrid.SliceDepths",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) SliceDepths() []float32",
              "doc": "SliceDepths returns the positive view-space depth boundaries [near .. far] of length SlicesZ+1 computed on the most recent [ClusterGrid.AssignLights] or [ClusterGrid.BuildFrustum].\n",
              "file": "pkg/render3d/clustered.go",
              "line": 393
            },
            {
              "name": "SliceForDepth",
              "anchor": "ClusterGrid.SliceForDepth",
              "recv": "*ClusterGrid",
              "decl": "func (g *ClusterGrid) SliceForDepth(viewZ float32) int",
              "doc": "SliceForDepth maps a positive view-space depth viewZ to its depth slice index in [0, SlicesZ-1] using the exact same binary search over [ClusterGrid.SliceDepths] as the GPU fragment shader.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 436
            }
          ]
        },
        {
          "name": "ClusterLight",
          "anchor": "ClusterLight",
          "decl": "type ClusterLight struct {\n\tKind      ClusterLightKind\n\tPosition  math3d.Vec3\n\tRange     float32\n\tColor     math3d.Vec3\n\tIntensity float32\n\t// Direction is the world-space emission axis for [ClusterLightSpot]. Normalized automatically; zero defaults to (0, -1, 0).\n\tDirection math3d.Vec3\n\t// InnerConeCos and OuterConeCos are cos(innerHalfAngle) and cos(outerHalfAngle) for [ClusterLightSpot] with 1 >= InnerConeCos >= OuterConeCos >= -1.\n\tInnerConeCos float32\n\tOuterConeCos float32\n}",
          "doc": "ClusterLight is the record [ClusterGrid] bins and [ClusteredLightSystem] uploads for one local point or spot light in world space. Build it from a [PointLight] or [SpotLight] with [ClusterLightFromPoint] or [ClusterLightFromSpot], or directly with [NewPointClusterLight] and [NewSpotClusterLight].\n\nDistance falloff is [PointLightAttenuation] with Range, and spot lights also multiply by [SpotConeAttenuation], so a light shades exactly as the [PointLight] or [SpotLight] it came from. Unlike those, Range must be positive: clustering needs a bounding sphere, so a light with Range 0 (unbounded) is refused by [ClusterLight.Validate] and [ClusteredLightSystem.Update]; the converters derive a range for it from [ClusterRangeCutoff].\n",
          "file": "pkg/render3d/clustered.go",
          "line": 78,
          "members": [
            {
              "name": "Kind",
              "anchor": "ClusterLight.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Position",
              "anchor": "ClusterLight.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Range",
              "anchor": "ClusterLight.Range",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "ClusterLight.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Intensity",
              "anchor": "ClusterLight.Intensity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Direction",
              "anchor": "ClusterLight.Direction",
              "kind": "field",
              "doc": "Direction is the world-space emission axis for [ClusterLightSpot]. Normalized automatically; zero defaults to (0, -1, 0)."
            },
            {
              "name": "InnerConeCos",
              "anchor": "ClusterLight.InnerConeCos",
              "kind": "field",
              "doc": "InnerConeCos and OuterConeCos are cos(innerHalfAngle) and cos(outerHalfAngle) for [ClusterLightSpot] with 1 >= InnerConeCos >= OuterConeCos >= -1."
            },
            {
              "name": "OuterConeCos",
              "anchor": "ClusterLight.OuterConeCos",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ClusterLightFromPoint",
              "anchor": "ClusterLightFromPoint",
              "decl": "func ClusterLightFromPoint(l PointLight) (ClusterLight, error)",
              "doc": "ClusterLightFromPoint validates l and converts it to a [ClusterLightPoint]. When l.Range is 0 (unbounded), the range is derived as sqrt(Intensity * max(Color) / [ClusterRangeCutoff]), where the light's unwindowed radiance falls to the cutoff; the windowed falloff then reaches exactly zero there instead of trailing off forever. Errors wrap [ErrInvalidLight].\n",
              "file": "pkg/render3d/clustered.go",
              "line": 92
            },
            {
              "name": "ClusterLightFromSpot",
              "anchor": "ClusterLightFromSpot",
              "decl": "func ClusterLightFromSpot(l SpotLight) (ClusterLight, error)",
              "doc": "ClusterLightFromSpot validates l and converts it to a [ClusterLightSpot] with the same cone, deriving a range for Range 0 as [ClusterLightFromPoint] does. Errors wrap [ErrInvalidLight].\n",
              "file": "pkg/render3d/clustered.go",
              "line": 100
            },
            {
              "name": "NewPointClusterLight",
              "anchor": "NewPointClusterLight",
              "decl": "func NewPointClusterLight(pos, color math3d.Vec3, intensity, lightRange float32) ClusterLight",
              "doc": "NewPointClusterLight returns a [ClusterLightPoint] with finite range and linear RGB color.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 127
            },
            {
              "name": "NewSpotClusterLight",
              "anchor": "NewSpotClusterLight",
              "decl": "func NewSpotClusterLight(pos, dir, color math3d.Vec3, intensity, lightRange, innerConeRad, outerConeRad float32) ClusterLight",
              "doc": "NewSpotClusterLight returns a [ClusterLightSpot] aiming along dir with inner and outer cone half-angles in radians (clamped so 0 <= inner <= outer <= pi).\n",
              "file": "pkg/render3d/clustered.go",
              "line": 138
            },
            {
              "name": "SelectFallbackLights",
              "anchor": "SelectFallbackLights",
              "decl": "func SelectFallbackLights(dst []ClusterLight, view, proj math3d.Mat4, lights []ClusterLight, maxLights int) []ClusterLight",
              "doc": "SelectFallbackLights chooses up to maxLights local lights for the uniform-buffer fallback path (mobile, WebGL 2, OpenGL ES 3.0) and appends them to dst[:0].\n\nLights whose bounding sphere lies outside the view frustum of proj * view, or that fail [ClusterLight.Validate] or have no power, are dropped first, so off-screen lights never take a slot from visible ones. The rest are ranked deterministically by luminous power, range, and distance to the camera, breaking ties by input order. This allocates a scratch slice per call; [ClusteredLightSystem.Update] reuses one.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 840
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "ClusterLight.Validate",
              "recv": "ClusterLight",
              "decl": "func (l ClusterLight) Validate() error",
              "doc": "Validate checks that l has finite parameters, a known kind, positive Range, non-negative Color and Intensity, and valid cone cosines for spot lights. Every error wraps [ErrInvalidClusterLight].\n",
              "file": "pkg/render3d/clustered.go",
              "line": 166
            }
          ]
        },
        {
          "name": "ClusterLightKind",
          "anchor": "ClusterLightKind",
          "decl": "type ClusterLightKind uint32",
          "doc": "ClusterLightKind selects the emission geometry of a [ClusterLight].\n",
          "file": "pkg/render3d/clustered.go",
          "line": 66,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ClusterLightPoint",
                  "anchor": "ClusterLightPoint"
                },
                {
                  "name": "ClusterLightSpot",
                  "anchor": "ClusterLightSpot"
                }
              ],
              "decl": "const (\n\t// ClusterLightPoint radiates isotropically within Range.\n\tClusterLightPoint ClusterLightKind = 0\n\t// ClusterLightSpot radiates within a cone around Direction with smooth inner-to-outer angular attenuation.\n\tClusterLightSpot ClusterLightKind = 1\n)",
              "doc": "",
              "file": "pkg/render3d/clustered.go",
              "line": 68
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ClusterOffsetCount",
          "anchor": "ClusterOffsetCount",
          "decl": "type ClusterOffsetCount struct {\n\tOffset uint32\n\tCount  uint32\n}",
          "doc": "ClusterOffsetCount identifies the contiguous slice of [ClusterGrid.LightIndices] assigned to one cluster cell: indices[Offset : Offset+Count].\n",
          "file": "pkg/render3d/clustered.go",
          "line": 325,
          "members": [
            {
              "name": "Offset",
              "anchor": "ClusterOffsetCount.Offset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Count",
              "anchor": "ClusterOffsetCount.Count",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ClusterStats",
          "anchor": "ClusterStats",
          "decl": "type ClusterStats struct {\n\tInputLights        int\n\tVisibleLights      int\n\tCulledLights       int\n\tActiveClusters     int\n\tTotalAssignments   int\n\tMaxClusterLights   int\n\tAvgLightsPerActive float32\n\tTruncatedClusters  int\n\tTruncatedLights    int\n}",
          "doc": "ClusterStats reports per-frame light culling and cluster packing metrics.\n",
          "file": "pkg/render3d/clustered.go",
          "line": 331,
          "members": [
            {
              "name": "InputLights",
              "anchor": "ClusterStats.InputLights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VisibleLights",
              "anchor": "ClusterStats.VisibleLights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CulledLights",
              "anchor": "ClusterStats.CulledLights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveClusters",
              "anchor": "ClusterStats.ActiveClusters",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalAssignments",
              "anchor": "ClusterStats.TotalAssignments",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxClusterLights",
              "anchor": "ClusterStats.MaxClusterLights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AvgLightsPerActive",
              "anchor": "ClusterStats.AvgLightsPerActive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TruncatedClusters",
              "anchor": "ClusterStats.TruncatedClusters",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TruncatedLights",
              "anchor": "ClusterStats.TruncatedLights",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ClusteredLightSystem",
          "anchor": "ClusteredLightSystem",
          "decl": "type ClusteredLightSystem struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ClusteredLightSystem owns the whole [LightGroup] bind group for clustered forward shading: the [LightRig] uniform [LightWGSL] reads at binding 0 (ambient, directional, and the rig's own point and spot lights) and the local-light buffers at bindings 1 to 4. On devices without storage buffers or compute (WebGL 2, OpenGL ES 3.0, nsgotest.NoGPUCompute) it falls back to one uniform buffer at binding 1 holding the [ClusterConfig.FallbackMaxLights] most important visible lights.\n\nCreate it once the device is ready, call [ClusteredLightSystem.Update] or [ClusteredLightSystem.UpdateCamera] each frame, and draw with [NewClusteredLitPBRPipeline] or a custom shader that prepends [CameraWGSL] and [ClusteredLightSystem.BindingsWGSL], binding the system with [ClusteredLightSystem.Bind] in place of a [GPULightBuffer].\n",
          "file": "pkg/render3d/clustered.go",
          "line": 1165,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewClusteredLightSystem",
              "anchor": "NewClusteredLightSystem",
              "decl": "func NewClusteredLightSystem(cx *core.Scope, dev *gpu.Device, cfg ClusterConfig) (*ClusteredLightSystem, error)",
              "doc": "NewClusteredLightSystem validates cfg, inspects dev's GPU capabilities, and allocates either the storage-buffer clustered lighting path or the uniform-buffer fallback path scoped to cx. In clustered mode it returns an error wrapping [ErrInvalidClusterConfig] when the light or index storage buffer cfg needs exceeds dev's MaxStorageBufferBindingSize.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1192
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "ClusteredLightSystem.Bind",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) Bind(pass *gpu.RenderPass)",
              "doc": "Bind sets s's bind group at [LightGroup] on pass, like [GPULightBuffer.Bind]. It records nothing when s is not [ClusteredLightSystem.Valid].\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1409
            },
            {
              "name": "BindGroup",
              "anchor": "ClusteredLightSystem.BindGroup",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group a render pass sets at [LightGroup].\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1344
            },
            {
              "name": "BindingsWGSL",
              "anchor": "ClusteredLightSystem.BindingsWGSL",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) BindingsWGSL() string",
              "doc": "BindingsWGSL returns the [LightGroup] declarations and shade_pbr_clustered helper matching s's active path ([ClusteredBindingsWGSL] or [ClusteredFallbackBindingsWGSL]).\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1360
            },
            {
              "name": "ByteSize",
              "anchor": "ClusteredLightSystem.ByteSize",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) ByteSize() uint64",
              "doc": "ByteSize returns the total GPU buffer memory owned by s, for [RenderStats] and [Budget] accounting.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1384
            },
            {
              "name": "Close",
              "anchor": "ClusteredLightSystem.Close",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) Close() error",
              "doc": "Close releases all GPU resources owned by s now instead of when their scope is disposed. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1511
            },
            {
              "name": "Config",
              "anchor": "ClusteredLightSystem.Config",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) Config() ClusterConfig",
              "doc": "Config returns the normalized [ClusterConfig] used to construct s.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1320
            },
            {
              "name": "FallbackLights",
              "anchor": "ClusteredLightSystem.FallbackLights",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) FallbackLights() []ClusterLight",
              "doc": "FallbackLights returns the prioritized lights uploaded on the most recent update in fallback mode (nil in clustered mode).\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1368
            },
            {
              "name": "Grid",
              "anchor": "ClusteredLightSystem.Grid",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) Grid() *ClusterGrid",
              "doc": "Grid returns the underlying [ClusterGrid] in clustered mode, or nil in fallback mode.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1328
            },
            {
              "name": "IsClustered",
              "anchor": "ClusteredLightSystem.IsClustered",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) IsClustered() bool",
              "doc": "IsClustered reports whether s is running the storage-buffer clustered forward shading path.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1314
            },
            {
              "name": "IsFallback",
              "anchor": "ClusteredLightSystem.IsFallback",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) IsFallback() bool",
              "doc": "IsFallback reports whether s is running the uniform-buffer mobile / WebGL 2 / GLES 3.0 fallback path.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1317
            },
            {
              "name": "LastStats",
              "anchor": "ClusteredLightSystem.LastStats",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) LastStats() ClusterStats",
              "doc": "LastStats returns the [ClusterStats] from the most recent [ClusteredLightSystem.Update] or [ClusteredLightSystem.UpdateCamera] call.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1376
            },
            {
              "name": "Layout",
              "anchor": "ClusteredLightSystem.Layout",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout a pipeline lists at [LightGroup].\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1336
            },
            {
              "name": "Update",
              "anchor": "ClusteredLightSystem.Update",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) Update(dev *gpu.Device, view, proj math3d.Mat4, near, far, viewportW, viewportH float32, rig LightRig, lights []ClusterLight) (ClusterStats, error)",
              "doc": "Update validates rig and lights, assigns lights for the frame, and uploads the rig and the resulting light buffers to dev. viewportW and viewportH are the size of the rendered area the fragment shader's @builtin(position) covers, starting at its origin: under a [DynamicResolutionTarget] pass [DynamicResolutionTarget.ScaledSize], not the native size.\n\nIt returns an error wrapping [ErrInvalidLight] for a malformed rig, or [ErrInvalidClusterLight] for a light that fails [ClusterLight.Validate] (including Range 0; see [ClusterLightFromPoint]), and uploads nothing in that case. Lights with zero intensity or color are culled.\n\nIn clustered mode, lights are binned into view-space frustum clusters via [ClusterGrid.AssignLights]. In fallback mode, the top [ClusterConfig.FallbackMaxLights] visible lights are selected as [SelectFallbackLights] does; CulledLights counts lights outside the frustum or without power and TruncatedLights those dropped by the cap. Steady-state calls allocate nothing beyond the copies gpu.Device.WriteBuffer queues.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1421
            },
            {
              "name": "UpdateCamera",
              "anchor": "ClusteredLightSystem.UpdateCamera",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) UpdateCamera(dev *gpu.Device, cam *scene3d.Camera, viewportW, viewportH float32, rig LightRig, lights []ClusterLight) (ClusterStats, error)",
              "doc": "UpdateCamera is [ClusteredLightSystem.Update] with view, projection, near, and far taken from cam.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1493
            },
            {
              "name": "Valid",
              "anchor": "ClusteredLightSystem.Valid",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) Valid() bool",
              "doc": "Valid reports whether s's GPU resources are open and belong to a live device.\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1398
            },
            {
              "name": "WGSL",
              "anchor": "ClusteredLightSystem.WGSL",
              "recv": "*ClusteredLightSystem",
              "decl": "func (s *ClusteredLightSystem) WGSL() string",
              "doc": "WGSL returns the ready-made shader matching s's active path ([ClusteredLitWGSL] or [ClusteredFallbackWGSL]).\n",
              "file": "pkg/render3d/clustered.go",
              "line": 1352
            }
          ]
        },
        {
          "name": "ColoredMesh",
          "anchor": "ColoredMesh",
          "decl": "type ColoredMesh struct {\n\tPositions []math3d.Vec3\n\tNormals   []math3d.Vec3\n\tUVs       []math3d.Vec2\n\tColors    []math3d.Vec4\n\tIndices   []uint32\n}",
          "doc": "ColoredMesh is indexed or non-indexed triangle-list geometry with optional linear RGBA vertex colors (glTF COLOR_0), ready to upload to a [gpu.Device] via [UploadColoredMesh].\n\nPositions is required. Normals, UVs, and Colors are optional: each must be empty or have one entry per position. When Colors is empty, [ColoredMesh.AppendVertexData] fills every vertex with linear opaque white (1, 1, 1, 1) so meshes with and without vertex colors share one [ColoredVertexLayout] and pipeline.\n",
          "file": "pkg/render3d/unlit.go",
          "line": 52,
          "members": [
            {
              "name": "Positions",
              "anchor": "ColoredMesh.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "ColoredMesh.Normals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UVs",
              "anchor": "ColoredMesh.UVs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Colors",
              "anchor": "ColoredMesh.Colors",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "ColoredMesh.Indices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ColoredMeshFromGLTF",
              "anchor": "ColoredMeshFromGLTF",
              "decl": "func ColoredMeshFromGLTF(doc *gltf.Document, meshIndex, primIndex int) (ColoredMesh, error)",
              "doc": "ColoredMeshFromGLTF extracts a triangle-list [ColoredMesh] from doc.Meshes[meshIndex].Primitives[primIndex], including decoded linear RGB/RGBA vertex colors from COLOR_0 (where glTF VEC3 colors have alpha 1.0) and optional KHR_texture_transform UVs when the primitive's material specifies a baseColorTexture transform or UV set.\n\nReturns an error wrapping [ErrInvalidMesh] if doc is nil, either index is out of range, the primitive topology is not [gltf.ModeTriangles], or the resulting mesh fails validation.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 170
            }
          ],
          "methods": [
            {
              "name": "AppendIndexData",
              "anchor": "ColoredMesh.AppendIndexData",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) AppendIndexData(dst []byte) []byte",
              "doc": "AppendIndexData appends m's indices to dst at [ColoredMesh.IndexFormat] width, little-endian and zero-padded to [ColoredMesh.IndexDataSize]. It allocates only when dst lacks capacity. Call [ColoredMesh.Validate] first.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 149
            },
            {
              "name": "AppendVertexData",
              "anchor": "ColoredMesh.AppendVertexData",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) AppendVertexData(dst []byte) []byte",
              "doc": "AppendVertexData appends m's vertices to dst in the little-endian interleaved layout of [ColoredVertexLayout] and returns the extended slice. Missing normals and UVs are written as zeros; missing vertex colors are written as linear white (1, 1, 1, 1). It allocates only when dst lacks capacity for [ColoredMesh.VertexDataSize] more bytes. Call [ColoredMesh.Validate] first.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 109
            },
            {
              "name": "Bounds",
              "anchor": "ColoredMesh.Bounds",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) Bounds() math3d.AABB",
              "doc": "Bounds returns the axis-aligned box around m's positions, or [math3d.AABBEmpty] when m has none.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 100
            },
            {
              "name": "HasVertexColors",
              "anchor": "ColoredMesh.HasVertexColors",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) HasVertexColors() bool",
              "doc": "HasVertexColors reports whether m carries explicit per-vertex colors.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 71
            },
            {
              "name": "IndexDataSize",
              "anchor": "ColoredMesh.IndexDataSize",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) IndexDataSize() int",
              "doc": "IndexDataSize returns the byte length [ColoredMesh.AppendIndexData] appends, zero-padded to a multiple of four bytes.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 106
            },
            {
              "name": "IndexFormat",
              "anchor": "ColoredMesh.IndexFormat",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns [gpu.IndexUint16] when every vertex fits below 0xFFFF (kept free for WebGL 2 primitive restart), otherwise [gpu.IndexUint32].\n",
              "file": "pkg/render3d/unlit.go",
              "line": 97
            },
            {
              "name": "Indexed",
              "anchor": "ColoredMesh.Indexed",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) Indexed() bool",
              "doc": "Indexed reports whether m has an index list.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 94
            },
            {
              "name": "Mesh",
              "anchor": "ColoredMesh.Mesh",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) Mesh() Mesh",
              "doc": "Mesh returns the base [Mesh] geometry (positions, normals, UVs, and indices) without vertex colors.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 61
            },
            {
              "name": "Validate",
              "anchor": "ColoredMesh.Validate",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) Validate() error",
              "doc": "Validate reports whether m can be uploaded: all [Mesh.Validate] rules plus Colors empty or matching len(Positions) with finite components. Every error wraps [ErrInvalidMesh].\n",
              "file": "pkg/render3d/unlit.go",
              "line": 74
            },
            {
              "name": "VertexCount",
              "anchor": "ColoredMesh.VertexCount",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) VertexCount() int",
              "doc": "VertexCount returns the number of vertices, len(m.Positions).\n",
              "file": "pkg/render3d/unlit.go",
              "line": 91
            },
            {
              "name": "VertexDataSize",
              "anchor": "ColoredMesh.VertexDataSize",
              "recv": "ColoredMesh",
              "decl": "func (m ColoredMesh) VertexDataSize() int",
              "doc": "VertexDataSize returns the byte length [ColoredMesh.AppendVertexData] appends.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 103
            }
          ]
        },
        {
          "name": "Cubemap",
          "anchor": "Cubemap",
          "decl": "type Cubemap struct {\n\tFaces [6]*image.RGBA\n\tMips  [][6]*image.RGBA\n\tSRGB  bool\n}",
          "doc": "Cubemap holds a 6-face square cubemap on the CPU in canonical WebGPU / Metal / Direct3D / OpenGL order ([gpu.CubeFacePosX]..[gpu.CubeFaceNegZ]), ready to upload with [UploadCubemap] or process into IBL data with [ComputeIrradianceSH] and [PrefilterEnvironment].\n\nFaces holds mip level 0: six non-nil square RGBA images of equal dimensions. Mips optionally holds additional precomputed mip levels starting at level 1 (so Mips[0] is mip level 1 of edge max(Size>>1, 1)), such as GGX-prefiltered specular environment levels. When SRGB is true, texel RGB channels are sRGB-encoded and CPU integration decodes to linear before filtering.\n\nTexels are 8 bits per channel, so a Cubemap holds a low dynamic range environment: radiance above 1 is clamped, here and in the faces [PrefilterEnvironment] and [IrradianceSH.ToCubemap] write, which flattens bright sun or sky highlights in image-based lighting. Use [HDRCubemap] and [UploadCubemapHDR] when the environment needs radiance above 1.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 242,
          "members": [
            {
              "name": "Faces",
              "anchor": "Cubemap.Faces",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mips",
              "anchor": "Cubemap.Mips",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SRGB",
              "anchor": "Cubemap.SRGB",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BakeReflectionProbeCPU",
              "anchor": "BakeReflectionProbeCPU",
              "decl": "func BakeReflectionProbeCPU(probe *ReflectionProbe, size int, srgb bool, sample func(origin, dir math3d.Vec3) [3]float32) (*Cubemap, error)",
              "doc": "BakeReflectionProbeCPU samples a 6-face [Cubemap] of resolution size x size from probe.Position using sample(origin, dir), which returns linear RGB radiance in [0, 1]. When srgb is true, texels are sRGB-encoded and Cubemap.SRGB is set.\n",
              "file": "pkg/render3d/probes.go",
              "line": 734
            },
            {
              "name": "CubemapFromEquirectangular",
              "anchor": "CubemapFromEquirectangular",
              "decl": "func CubemapFromEquirectangular(img image.Image, faceSize int, srgb bool) (*Cubemap, error)",
              "doc": "CubemapFromEquirectangular projects a latitude-longitude (equirectangular) panorama into a 6-face cubemap of resolution faceSize x faceSize per face using seamless horizontal wrapping and bilinear filtering.\n\nLongitude u = 0.5 + atan2(z, x) / (2*pi) maps +X to u = 0.5 and +Z to u = 0.75; latitude v = acos(y) / pi maps +Y (zenith) to the top row (v = 0) and -Y (nadir) to the bottom row (v = 1). Texels are copied unchanged, and srgb marks them as sRGB-encoded, as in [CubemapFromImages]: pass true for a typical PNG or JPEG panorama.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 391
            },
            {
              "name": "CubemapFromImages",
              "anchor": "CubemapFromImages",
              "decl": "func CubemapFromImages(faces [6]image.Image, srgb bool) (*Cubemap, error)",
              "doc": "CubemapFromImages copies six square [image.Image] faces (+X, -X, +Y, -Y, +Z, -Z) into a normalized [Cubemap]. Every face must be non-nil, square, and of identical resolution.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 363
            },
            {
              "name": "GradientSkyCubemap",
              "anchor": "GradientSkyCubemap",
              "decl": "func GradientSkyCubemap(zenith, horizon, ground [3]float32, faceSize int) (*Cubemap, error)",
              "doc": "GradientSkyCubemap builds a procedural 3-band sky cubemap interpolating smoothly from horizon to zenith across the upper hemisphere (y >= 0) and from horizon to ground across the lower hemisphere (y < 0). Colors are linear RGB values; they must be finite and non-negative, and the RGBA8 faces clamp them to [0, 1].\n",
              "file": "pkg/render3d/skybox.go",
              "line": 431
            },
            {
              "name": "PrefilterEnvironment",
              "anchor": "PrefilterEnvironment",
              "decl": "func PrefilterEnvironment(env *Cubemap, opts PrefilterOptions) (*Cubemap, error)",
              "doc": "PrefilterEnvironment builds a split-sum GGX prefiltered specular cubemap mip chain from env (Karis 2013). Mip level 0 corresponds to roughness 0 (mirror reflection) and mip level MipLevels-1 corresponds to roughness 1. The process is deterministic (Hammersley quasi-Monte-Carlo) and uses filtered source mip lookups to suppress fireflies.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1039
            }
          ],
          "methods": [
            {
              "name": "MipLevels",
              "anchor": "Cubemap.MipLevels",
              "recv": "*Cubemap",
              "decl": "func (c *Cubemap) MipLevels() int",
              "doc": "MipLevels returns the total number of mip levels stored in c (1 when Mips is empty), or 0 if c has no base face.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 303
            },
            {
              "name": "Sample",
              "anchor": "Cubemap.Sample",
              "recv": "*Cubemap",
              "decl": "func (c *Cubemap) Sample(dir math3d.Vec3) [3]float32",
              "doc": "Sample bilinearly samples mip level 0 of c in direction dir and returns linear RGB values.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 325
            },
            {
              "name": "SampleLOD",
              "anchor": "Cubemap.SampleLOD",
              "recv": "*Cubemap",
              "decl": "func (c *Cubemap) SampleLOD(dir math3d.Vec3, lod float32) [3]float32",
              "doc": "SampleLOD trilinearly samples c at mip level lod (clamped to [0, MipLevels-1]) in direction dir and returns linear RGB values.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 334
            },
            {
              "name": "Size",
              "anchor": "Cubemap.Size",
              "recv": "*Cubemap",
              "decl": "func (c *Cubemap) Size() int",
              "doc": "Size returns the edge length in texels of mip level 0, or 0 if invalid.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 295
            },
            {
              "name": "Validate",
              "anchor": "Cubemap.Validate",
              "recv": "*Cubemap",
              "decl": "func (c *Cubemap) Validate() error",
              "doc": "Validate checks that c is non-nil, every base face is non-nil and square with matching positive dimensions, and every optional mip level has the exact expected dimensions down to 1x1. Every error wraps [ErrInvalidCubemap].\n",
              "file": "pkg/render3d/skybox.go",
              "line": 249
            }
          ]
        },
        {
          "name": "CubemapUpload",
          "anchor": "CubemapUpload",
          "decl": "type CubemapUpload struct {\n\t// Label names the GPU texture and sampler in GPU capture tools.\n\tLabel string\n\t// Format overrides the GPU texture format. When [gpu.FormatUndefined], [gpu.FormatRGBA8UnormSRGB] is selected when cm.SRGB is true and [gpu.FormatRGBA8Unorm] otherwise.\n\tFormat gpu.TextureFormat\n\t// GenerateMips builds a full 2x2 box-filtered mip chain on the CPU before uploading when cm only carries mip level 0. Ignored when cm already has precomputed Mips (such as from [PrefilterEnvironment]).\n\tGenerateMips bool\n\t// Retained keeps CPU shadow copies of the texture and sampler so NSGo recreates them automatically after a device loss.\n\tRetained bool\n}",
          "doc": "CubemapUpload configures [UploadCubemap].\n",
          "file": "pkg/render3d/skybox.go",
          "line": 470,
          "members": [
            {
              "name": "Label",
              "anchor": "CubemapUpload.Label",
              "kind": "field",
              "doc": "Label names the GPU texture and sampler in GPU capture tools."
            },
            {
              "name": "Format",
              "anchor": "CubemapUpload.Format",
              "kind": "field",
              "doc": "Format overrides the GPU texture format. When [gpu.FormatUndefined], [gpu.FormatRGBA8UnormSRGB] is selected when cm.SRGB is true and [gpu.FormatRGBA8Unorm] otherwise."
            },
            {
              "name": "GenerateMips",
              "anchor": "CubemapUpload.GenerateMips",
              "kind": "field",
              "doc": "GenerateMips builds a full 2x2 box-filtered mip chain on the CPU before uploading when cm only carries mip level 0. Ignored when cm already has precomputed Mips (such as from [PrefilterEnvironment])."
            },
            {
              "name": "Retained",
              "anchor": "CubemapUpload.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU shadow copies of the texture and sampler so NSGo recreates them automatically after a device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CustomMaterial",
          "anchor": "CustomMaterial",
          "decl": "type CustomMaterial struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CustomMaterial is a compiled WGSL or Kage 3D material with declared, strongly-typed uniform and texture parameters on an NSGo [gpu.Device].\n\nIts uniform buffer, fallback 1x1 textures, default sampler, bind group, and pipeline belong to the [core.Scope] passed to [NewCustomMaterial] and are released automatically on scope disposal or earlier via [CustomMaterial.Close]. Call [CustomMaterial.Sync] (or [CustomMaterial.Update]) before drawing whenever parameters have been modified, then bind with [CustomMaterial.Bind] or draw directly with [CustomMaterial.Draw].\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 441,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCustomMaterial",
              "anchor": "NewCustomMaterial",
              "decl": "func NewCustomMaterial(cx *core.Scope, dev *gpu.Device, desc CustomShaderDesc) (*CustomMaterial, error)",
              "doc": "NewCustomMaterial validates desc, compiles the WGSL or Kage shader, computes the std140 uniform layout, allocates GPU resources scoped to cx, and builds the render pipeline on dev.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 480
            }
          ],
          "methods": [
            {
              "name": "ApplyMap",
              "anchor": "CustomMaterial.ApplyMap",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) ApplyMap(values map[string]any) error",
              "doc": "ApplyMap validates and applies a batch of named parameters atomically (in deterministic sorted key order). If any key is unknown or has an incompatible type or out-of-range value, no parameter is mutated and an error wrapping [ErrInvalidCustomMaterial] is returned.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 827
            },
            {
              "name": "Bind",
              "anchor": "CustomMaterial.Bind",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Bind(pass *gpu.RenderPass)",
              "doc": "Bind sets the material's pipeline and, when it has one, binds its @group(1) bind group on pass. The caller binds group 0 (the camera) and, when the material was created with DrawLayout or ExtraLayout, groups 2 and 3. It records nothing when the material is invalid.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1065
            },
            {
              "name": "BindGroup",
              "anchor": "CustomMaterial.BindGroup",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the material's @group(1) [gpu.BindGroup], or nil when the material declares no parameters and has no DrawLayout.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1155
            },
            {
              "name": "ByteSize",
              "anchor": "CustomMaterial.ByteSize",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory the material owns, in bytes: its uniform buffer plus its 1x1 fallback textures, for [RenderStats] and [Budget] accounting. Textures bound with [CustomMaterial.SetTexture] belong to the caller and are not counted.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1185
            },
            {
              "name": "Close",
              "anchor": "CustomMaterial.Close",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Close() error",
              "doc": "Close releases every GPU resource owned by the material now rather than waiting for its owning scope to dispose. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1197
            },
            {
              "name": "Dirty",
              "anchor": "CustomMaterial.Dirty",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Dirty() bool",
              "doc": "Dirty reports whether parameter updates are waiting for [CustomMaterial.Sync].\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1163
            },
            {
              "name": "Draw",
              "anchor": "CustomMaterial.Draw",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Draw(pass *gpu.RenderPass, mesh *GPUMesh)",
              "doc": "Draw binds the material on pass and draws mesh. It records nothing if either the material or mesh is invalid.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1076
            },
            {
              "name": "Layout",
              "anchor": "CustomMaterial.Layout",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the material's @group(1) [gpu.BindGroupLayout], or nil when the material declares no parameters and has no DrawLayout.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1147
            },
            {
              "name": "ParamBinding",
              "anchor": "CustomMaterial.ParamBinding",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) ParamBinding(name string) (texBinding, samplerBinding uint32, ok bool)",
              "doc": "ParamBinding returns the @group(1) texture and sampler binding numbers for the [ParamTexture] parameter named name.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1094
            },
            {
              "name": "ParamOffset",
              "anchor": "CustomMaterial.ParamOffset",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) ParamOffset(name string) (int, bool)",
              "doc": "ParamOffset returns the std140 byte offset of the uniform parameter named name, or (0, false) if absent or not a uniform parameter.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1085
            },
            {
              "name": "Params",
              "anchor": "CustomMaterial.Params",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Params() []ShaderParamDesc",
              "doc": "Params returns a copy of the material's declared parameters.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1107
            },
            {
              "name": "Pipeline",
              "anchor": "CustomMaterial.Pipeline",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Pipeline() *gpu.Pipeline",
              "doc": "Pipeline returns the material's compiled [gpu.Pipeline], or nil.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1139
            },
            {
              "name": "SetBool",
              "anchor": "CustomMaterial.SetBool",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) SetBool(name string, v bool) error",
              "doc": "SetBool sets a declared [ParamBool] parameter (encoded as u32 1 or 0).\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 771
            },
            {
              "name": "SetColor",
              "anchor": "CustomMaterial.SetColor",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) SetColor(name string, c core.Color) error",
              "doc": "SetColor sets a declared [ParamColor] parameter from an sRGB [core.Color], normalized into [0, 1] RGBA float32 components.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 740
            },
            {
              "name": "SetFloat",
              "anchor": "CustomMaterial.SetFloat",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) SetFloat(name string, v float32) error",
              "doc": "SetFloat sets a declared [ParamFloat] parameter.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 666
            },
            {
              "name": "SetInt",
              "anchor": "CustomMaterial.SetInt",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) SetInt(name string, v int32) error",
              "doc": "SetInt sets a declared [ParamInt] parameter.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 754
            },
            {
              "name": "SetTexture",
              "anchor": "CustomMaterial.SetTexture",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) SetTexture(name string, tex *GPUTexture, samp *GPUSampler) error",
              "doc": "SetTexture binds tex and samp to a declared [ParamTexture] parameter. Passing a nil tex resets the slot to its 1x1 fallback texture; passing a nil samp uses the material's default linear-repeat sampler. Call [CustomMaterial.Sync] before drawing to upload the updated bind group.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 788
            },
            {
              "name": "SetVec2",
              "anchor": "CustomMaterial.SetVec2",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) SetVec2(name string, v math3d.Vec2) error",
              "doc": "SetVec2 sets a declared [ParamVec2] parameter.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 683
            },
            {
              "name": "SetVec3",
              "anchor": "CustomMaterial.SetVec3",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) SetVec3(name string, v math3d.Vec3) error",
              "doc": "SetVec3 sets a declared [ParamVec3] parameter.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 697
            },
            {
              "name": "SetVec4",
              "anchor": "CustomMaterial.SetVec4",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) SetVec4(name string, v math3d.Vec4) error",
              "doc": "SetVec4 sets a declared [ParamVec4] or [ParamColor] parameter.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 712
            },
            {
              "name": "Sync",
              "anchor": "CustomMaterial.Sync",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Sync(dev *gpu.Device) error",
              "doc": "Sync uploads dirty uniform bytes to the GPU uniform buffer and, when texture bindings changed, switches to the @group(1) bind group for the new textures and samplers. The material keeps bind groups for its 8 most recently bound combinations, so alternating between a few textures (a flipbook, a ping-pong render target) creates no new GPU objects once each combination has been bound. When nothing is dirty it returns nil with zero allocations.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 980
            },
            {
              "name": "UniformBytes",
              "anchor": "CustomMaterial.UniformBytes",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) UniformBytes() []byte",
              "doc": "UniformBytes returns a copy of the current CPU-side std140 uniform buffer.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1123
            },
            {
              "name": "UniformSize",
              "anchor": "CustomMaterial.UniformSize",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) UniformSize() int",
              "doc": "UniformSize returns the byte size of the material's std140 uniform buffer (a multiple of 16, or 0 when the material declares no uniform parameters).\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1115
            },
            {
              "name": "Update",
              "anchor": "CustomMaterial.Update",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Update(dev *gpu.Device) error",
              "doc": "Update is an alias for [CustomMaterial.Sync].\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1060
            },
            {
              "name": "Valid",
              "anchor": "CustomMaterial.Valid",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) Valid() bool",
              "doc": "Valid reports whether the material's GPU pipeline, uniform buffer, and bind group are open and belong to a live device.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1171
            },
            {
              "name": "WGSL",
              "anchor": "CustomMaterial.WGSL",
              "recv": "*CustomMaterial",
              "decl": "func (m *CustomMaterial) WGSL() string",
              "doc": "WGSL returns the final portable WGSL source compiled for this material.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 1131
            }
          ]
        },
        {
          "name": "CustomMaterialError",
          "anchor": "CustomMaterialError",
          "decl": "type CustomMaterialError struct {\n\tMaterial string\n\tParam    string\n\tLine     int\n\tColumn   int\n\tMessage  string\n\tErr      error\n}",
          "doc": "CustomMaterialError reports a validation, shader-compilation, or parameter update error for a [CustomMaterial]. It always matches [ErrInvalidCustomMaterial] and [ErrInvalidMaterial] via errors.Is and unwraps to Err when an underlying error is present.\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 33,
          "members": [
            {
              "name": "Material",
              "anchor": "CustomMaterialError.Material",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Param",
              "anchor": "CustomMaterialError.Param",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "CustomMaterialError.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Column",
              "anchor": "CustomMaterialError.Column",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Message",
              "anchor": "CustomMaterialError.Message",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Err",
              "anchor": "CustomMaterialError.Err",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "CustomMaterialError.Error",
              "recv": "*CustomMaterialError",
              "decl": "func (e *CustomMaterialError) Error() string",
              "doc": "Error formats the custom material diagnostic with optional material name, parameter name, and 1-based shader source line/column.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 43
            },
            {
              "name": "Is",
              "anchor": "CustomMaterialError.Is",
              "recv": "*CustomMaterialError",
              "decl": "func (e *CustomMaterialError) Is(target error) bool",
              "doc": "Is reports that every CustomMaterialError matches [ErrInvalidCustomMaterial] and [ErrInvalidMaterial].\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 74
            },
            {
              "name": "Unwrap",
              "anchor": "CustomMaterialError.Unwrap",
              "recv": "*CustomMaterialError",
              "decl": "func (e *CustomMaterialError) Unwrap() error",
              "doc": "Unwrap returns the underlying error, if any.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 71
            }
          ]
        },
        {
          "name": "CustomParamLayout",
          "anchor": "CustomParamLayout",
          "decl": "type CustomParamLayout struct {\n\tName           string\n\tKind           ShaderParamKind\n\tOffset         int    // byte offset in uniform buffer (0 for ParamTexture)\n\tAlign          int    // std140 alignment in bytes (0 for ParamTexture)\n\tSize           int    // byte size in uniform buffer (0 for ParamTexture)\n\tTextureBinding uint32 // @binding index in CustomMaterialGroup (ParamTexture only)\n\tSamplerBinding uint32 // @binding index in CustomMaterialGroup (ParamTexture only)\n}",
          "doc": "CustomParamLayout records the computed GPU location of one declared parameter.\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 204,
          "members": [
            {
              "name": "Name",
              "anchor": "CustomParamLayout.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "CustomParamLayout.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Offset",
              "anchor": "CustomParamLayout.Offset",
              "kind": "field",
              "doc": "byte offset in uniform buffer (0 for ParamTexture)"
            },
            {
              "name": "Align",
              "anchor": "CustomParamLayout.Align",
              "kind": "field",
              "doc": "std140 alignment in bytes (0 for ParamTexture)"
            },
            {
              "name": "Size",
              "anchor": "CustomParamLayout.Size",
              "kind": "field",
              "doc": "byte size in uniform buffer (0 for ParamTexture)"
            },
            {
              "name": "TextureBinding",
              "anchor": "CustomParamLayout.TextureBinding",
              "kind": "field",
              "doc": "@binding index in CustomMaterialGroup (ParamTexture only)"
            },
            {
              "name": "SamplerBinding",
              "anchor": "CustomParamLayout.SamplerBinding",
              "kind": "field",
              "doc": "@binding index in CustomMaterialGroup (ParamTexture only)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CustomShaderDesc",
          "anchor": "CustomShaderDesc",
          "decl": "type CustomShaderDesc struct {\n\tLabel         string\n\tLanguage      ShaderLanguage\n\tSource        string\n\tVertexEntry   string // defaults to \"vs_main\"\n\tFragmentEntry string // defaults to \"fs_main\" (or \"Surface\" / \"Fragment\" for ShaderKage)\n\tParams        []ShaderParamDesc\n\n\t// CameraLayout optionally supplies the @group(0) bind group layout (such as CameraBuffer.Layout()). When it is set and Source declares nothing in @group(0), [CameraWGSL] is prepended, with or without ManualBindings. When it is nil, a source that declares @group(0) gets a layout with one uniform buffer at binding 0, the layout [CameraBuffer] uses; any other group 0 binding is refused.\n\tCameraLayout *gpu.BindGroupLayout\n\n\t// DrawLayout, when set, is placed at [PBRDrawGroup] (group 2) so the shader can read a per-draw transform: pass [PBRDrawBuffer.Layout], and bind [PBRDrawBuffer.BindGroup] at [PBRDrawGroup] before each draw. A ShaderKage shader then declares the [PBRDrawUniform] block as pbr_draw and transforms positions by its model matrix and normals by its normal matrix, so Surface's normal and worldPos are in world space. A ShaderWGSL source declares the block itself, as [LitPBRWGSL] does. Without DrawLayout, the Kage vertex stage passes positions and normals through unchanged, so worldPos and normal are in object space and the mesh draws where its vertices are.\n\tDrawLayout *gpu.BindGroupLayout\n\n\t// ExtraLayout, when set, is placed at group 3 for bindings the shader declares itself and the caller binds before drawing, such as a [GPULightBuffer] declared with [LightWGSLForGroup](3) (group 1, where [LightWGSL] puts lights, holds the material) or a [DirectionalShadowMap] declared with [ShadowWGSL]. It requires DrawLayout, since group 2 then needs a layout too.\n\tExtraLayout *gpu.BindGroupLayout\n\n\t// ManualBindings disables automatic generation of the @group(1) MaterialParams uniform struct and texture/sampler declarations for ShaderWGSL when the shader source declares them explicitly. It does not affect the [CameraWGSL] preamble.\n\tManualBindings bool\n\n\t// Pipeline render state.\n\tBlend        *gpu.BlendState   // nil defaults to gpu.BlendOpaque()\n\tCull         gpu.CullMode      // zero value is gpu.CullNone\n\tFrontFace    gpu.FrontFace     // zero value is gpu.FrontCCW\n\tDepthWrite   *bool             // nil defaults to true when DepthFormat != gpu.FormatUndefined\n\tDepthCompare gpu.CompareFunc   // zero value defaults to gpu.CompareLess\n\tColorFormat  gpu.TextureFormat // zero value defaults to dev.SurfaceFormat()\n\tDepthFormat  gpu.TextureFormat // FormatUndefined disables depth testing\n\tSampleCount  int               // 0 defaults to 1\n\tRetained     bool              // opt in to automatic restoration across device loss\n}",
          "doc": "CustomShaderDesc configures a [CustomMaterial] compiled on a [gpu.Device].\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 315,
          "members": [
            {
              "name": "Label",
              "anchor": "CustomShaderDesc.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Language",
              "anchor": "CustomShaderDesc.Language",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "CustomShaderDesc.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VertexEntry",
              "anchor": "CustomShaderDesc.VertexEntry",
              "kind": "field",
              "doc": "defaults to \"vs_main\""
            },
            {
              "name": "FragmentEntry",
              "anchor": "CustomShaderDesc.FragmentEntry",
              "kind": "field",
              "doc": "defaults to \"fs_main\" (or \"Surface\" / \"Fragment\" for ShaderKage)"
            },
            {
              "name": "Params",
              "anchor": "CustomShaderDesc.Params",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CameraLayout",
              "anchor": "CustomShaderDesc.CameraLayout",
              "kind": "field",
              "doc": "CameraLayout optionally supplies the @group(0) bind group layout (such as CameraBuffer.Layout()). When it is set and Source declares nothing in @group(0), [CameraWGSL] is prepended, with or without ManualBindings. When it is nil, a source that declares @group(0) gets a layout with one uniform buffer at binding 0, the layout [CameraBuffer] uses; any other group 0 binding is refused."
            },
            {
              "name": "DrawLayout",
              "anchor": "CustomShaderDesc.DrawLayout",
              "kind": "field",
              "doc": "DrawLayout, when set, is placed at [PBRDrawGroup] (group 2) so the shader can read a per-draw transform: pass [PBRDrawBuffer.Layout], and bind [PBRDrawBuffer.BindGroup] at [PBRDrawGroup] before each draw. A ShaderKage shader then declares the [PBRDrawUniform] block as pbr_draw and transforms positions by its model matrix and normals by its normal matrix, so Surface's normal and worldPos are in world space. A ShaderWGSL source declares the block itself, as [LitPBRWGSL] does. Without DrawLayout, the Kage vertex stage passes positions and normals through unchanged, so worldPos and normal are in object space and the mesh draws where its vertices are."
            },
            {
              "name": "ExtraLayout",
              "anchor": "CustomShaderDesc.ExtraLayout",
              "kind": "field",
              "doc": "ExtraLayout, when set, is placed at group 3 for bindings the shader declares itself and the caller binds before drawing, such as a [GPULightBuffer] declared with [LightWGSLForGroup](3) (group 1, where [LightWGSL] puts lights, holds the material) or a [DirectionalShadowMap] declared with [ShadowWGSL]. It requires DrawLayout, since group 2 then needs a layout too."
            },
            {
              "name": "ManualBindings",
              "anchor": "CustomShaderDesc.ManualBindings",
              "kind": "field",
              "doc": "ManualBindings disables automatic generation of the @group(1) MaterialParams uniform struct and texture/sampler declarations for ShaderWGSL when the shader source declares them explicitly. It does not affect the [CameraWGSL] preamble."
            },
            {
              "name": "Blend",
              "anchor": "CustomShaderDesc.Blend",
              "kind": "field",
              "doc": "Pipeline render state.\nnil defaults to gpu.BlendOpaque()"
            },
            {
              "name": "Cull",
              "anchor": "CustomShaderDesc.Cull",
              "kind": "field",
              "doc": "zero value is gpu.CullNone"
            },
            {
              "name": "FrontFace",
              "anchor": "CustomShaderDesc.FrontFace",
              "kind": "field",
              "doc": "zero value is gpu.FrontCCW"
            },
            {
              "name": "DepthWrite",
              "anchor": "CustomShaderDesc.DepthWrite",
              "kind": "field",
              "doc": "nil defaults to true when DepthFormat != gpu.FormatUndefined"
            },
            {
              "name": "DepthCompare",
              "anchor": "CustomShaderDesc.DepthCompare",
              "kind": "field",
              "doc": "zero value defaults to gpu.CompareLess"
            },
            {
              "name": "ColorFormat",
              "anchor": "CustomShaderDesc.ColorFormat",
              "kind": "field",
              "doc": "zero value defaults to dev.SurfaceFormat()"
            },
            {
              "name": "DepthFormat",
              "anchor": "CustomShaderDesc.DepthFormat",
              "kind": "field",
              "doc": "FormatUndefined disables depth testing"
            },
            {
              "name": "SampleCount",
              "anchor": "CustomShaderDesc.SampleCount",
              "kind": "field",
              "doc": "0 defaults to 1"
            },
            {
              "name": "Retained",
              "anchor": "CustomShaderDesc.Retained",
              "kind": "field",
              "doc": "opt in to automatic restoration across device loss"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CustomUniformLayout",
          "anchor": "CustomUniformLayout",
          "decl": "type CustomUniformLayout struct {\n\tParams      []CustomParamLayout\n\tOffsets     map[string]int\n\tUniformSize int // total uniform buffer size in bytes (multiple of 16, or 0 if no uniform params)\n\tHasUniforms bool\n\tTextureNum  int\n}",
          "doc": "CustomUniformLayout holds the deterministic std140 uniform layout and texture/sampler binding indices computed for a list of [ShaderParamDesc].\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 215,
          "members": [
            {
              "name": "Params",
              "anchor": "CustomUniformLayout.Params",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Offsets",
              "anchor": "CustomUniformLayout.Offsets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UniformSize",
              "anchor": "CustomUniformLayout.UniformSize",
              "kind": "field",
              "doc": "total uniform buffer size in bytes (multiple of 16, or 0 if no uniform params)"
            },
            {
              "name": "HasUniforms",
              "anchor": "CustomUniformLayout.HasUniforms",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextureNum",
              "anchor": "CustomUniformLayout.TextureNum",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ComputeUniformLayout",
              "anchor": "ComputeUniformLayout",
              "decl": "func ComputeUniformLayout(params []ShaderParamDesc) (CustomUniformLayout, error)",
              "doc": "ComputeUniformLayout validates params and computes their deterministic WGSL/std140 uniform offsets and @group(1) texture/sampler bindings in declared order.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 224
            }
          ],
          "methods": []
        },
        {
          "name": "DebugDraw",
          "anchor": "DebugDraw",
          "decl": "type DebugDraw struct {\n\t// DefaultWidth is the stroke width in points used when a line has Width <= 0\n\t// (defaults to 1.5 when zero).\n\tDefaultWidth float32\n\t// DepthNO clips at the near plane of an OpenGL-style [-1, 1] depth projection, as [ProjectSegmentNO] does. By default lines clip for [0, 1] depth, matching [math3d.Perspective] and [math3d.Ortho].\n\tDepthNO bool\n\t// contains filtered or unexported fields\n}",
          "doc": "DebugDraw collects 3D wireframe debug primitives (lines, boxes, spheres,\nrays, coordinate axes, grids, and camera frustums) and projects them into\n[*core.Drawing] (#286). Its backing slice is reused across frames via [DebugDraw.Clear].\n",
          "file": "pkg/render3d/debug.go",
          "line": 83,
          "members": [
            {
              "name": "DefaultWidth",
              "anchor": "DebugDraw.DefaultWidth",
              "kind": "field",
              "doc": "DefaultWidth is the stroke width in points used when a line has Width <= 0\n(defaults to 1.5 when zero)."
            },
            {
              "name": "DepthNO",
              "anchor": "DebugDraw.DepthNO",
              "kind": "field",
              "doc": "DepthNO clips at the near plane of an OpenGL-style [-1, 1] depth projection, as [ProjectSegmentNO] does. By default lines clip for [0, 1] depth, matching [math3d.Perspective] and [math3d.Ortho]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AABB",
              "anchor": "DebugDraw.AABB",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) AABB(box math3d.AABB, color core.Color)",
              "doc": "AABB appends the 12 wireframe edges of box. Empty boxes emit no lines.\n",
              "file": "pkg/render3d/debug.go",
              "line": 124
            },
            {
              "name": "Axes",
              "anchor": "DebugDraw.Axes",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) Axes(origin math3d.Vec3, length float32)",
              "doc": "Axes appends RGB right-handed X/Y/Z coordinate axes at origin.\n",
              "file": "pkg/render3d/debug.go",
              "line": 196
            },
            {
              "name": "Clear",
              "anchor": "DebugDraw.Clear",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) Clear()",
              "doc": "Clear resets the recorded debug lines while retaining slice capacity.\n",
              "file": "pkg/render3d/debug.go",
              "line": 94
            },
            {
              "name": "Flush",
              "anchor": "DebugDraw.Flush",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) Flush(d *core.Drawing, viewProj math3d.Mat4, viewport core.Bounds)",
              "doc": "Flush projects all recorded 3D debug lines through viewProj into d, batching\nconsecutive segments that share the same color and stroke width.\n",
              "file": "pkg/render3d/debug.go",
              "line": 250
            },
            {
              "name": "Frustum",
              "anchor": "DebugDraw.Frustum",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) Frustum(invViewProj math3d.Mat4, color core.Color)",
              "doc": "Frustum appends the 12 wireframe edges of a camera frustum given its inverse\nview-projection matrix (assuming WebGPU/Metal [0, 1] NDC depth).\n",
              "file": "pkg/render3d/debug.go",
              "line": 229
            },
            {
              "name": "Grid",
              "anchor": "DebugDraw.Grid",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) Grid(center math3d.Vec3, halfExtent float32, divisions int, color core.Color)",
              "doc": "Grid appends an XZ reference grid centered at center spanning\n[-halfExtent, +halfExtent] with divisions cells per side.\n",
              "file": "pkg/render3d/debug.go",
              "line": 207
            },
            {
              "name": "Line",
              "anchor": "DebugDraw.Line",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) Line(a, b math3d.Vec3, color core.Color)",
              "doc": "Line appends a 3D line segment from a to b in color.\n",
              "file": "pkg/render3d/debug.go",
              "line": 111
            },
            {
              "name": "LineWidth",
              "anchor": "DebugDraw.LineWidth",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) LineWidth(a, b math3d.Vec3, color core.Color, width float32)",
              "doc": "LineWidth appends a 3D line segment with an explicit stroke width in points.\n",
              "file": "pkg/render3d/debug.go",
              "line": 116
            },
            {
              "name": "Lines",
              "anchor": "DebugDraw.Lines",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) Lines() []DebugLine",
              "doc": "Lines returns the currently queued 3D wireframe segments.\n",
              "file": "pkg/render3d/debug.go",
              "line": 99
            },
            {
              "name": "Ray",
              "anchor": "DebugDraw.Ray",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) Ray(ray math3d.Ray, length float32, color core.Color)",
              "doc": "Ray appends a line segment along ray of length length.\n",
              "file": "pkg/render3d/debug.go",
              "line": 187
            },
            {
              "name": "Sphere",
              "anchor": "DebugDraw.Sphere",
              "recv": "*DebugDraw",
              "decl": "func (dd *DebugDraw) Sphere(center math3d.Vec3, radius float32, color core.Color, segments int)",
              "doc": "Sphere appends three orthogonal great circles (XY, XZ, YZ) centered at\ncenter with radius. Segments defaults to 24 when <= 0.\n",
              "file": "pkg/render3d/debug.go",
              "line": 151
            }
          ]
        },
        {
          "name": "DebugLine",
          "anchor": "DebugLine",
          "decl": "type DebugLine struct {\n\tA, B  math3d.Vec3\n\tColor core.Color\n\tWidth float32\n}",
          "doc": "DebugLine is a single 3D wireframe segment queued in [DebugDraw].\n",
          "file": "pkg/render3d/debug.go",
          "line": 74,
          "members": [
            {
              "name": "A",
              "anchor": "DebugLine.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "DebugLine.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "DebugLine.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "DebugLine.Width",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DepthOfFieldConfig",
          "anchor": "DepthOfFieldConfig",
          "decl": "type DepthOfFieldConfig struct {\n\t// FocusDistance is the view-space distance from the camera that renders sharpest (> 0). Default: 5.0.\n\tFocusDistance float32\n\t// FocusRange is the half-width around FocusDistance over which the Circle of Confusion ramps from 0 (in focus) to 1 (maximum blur). Must be > 0. Default: 2.0.\n\tFocusRange float32\n\t// MaxBlurRadius is the maximum bokeh disc radius in pixels at CoC = 1 (>= 0). 0 leaves the scene unchanged. Default: 6.0.\n\tMaxBlurRadius float32\n\t// Near and Far are the camera clip planes used to linearize [0, 1] depth values: Near < Far, and Near > 0 for a perspective projection. They must match the projection that wrote the depth buffer; [DepthOfFieldConfigFromCamera] and [PostStack3D.SetCamera] read them from the camera's projection matrix.\n\tNear float32\n\tFar  float32\n\t// Orthographic selects linear orthographic depth reconstruction instead of perspective.\n\tOrthographic bool\n}",
          "doc": "DepthOfFieldConfig tunes depth-aware disc bokeh Depth of Field.\n",
          "file": "pkg/render3d/post3d.go",
          "line": 1934,
          "members": [
            {
              "name": "FocusDistance",
              "anchor": "DepthOfFieldConfig.FocusDistance",
              "kind": "field",
              "doc": "FocusDistance is the view-space distance from the camera that renders sharpest (> 0). Default: 5.0."
            },
            {
              "name": "FocusRange",
              "anchor": "DepthOfFieldConfig.FocusRange",
              "kind": "field",
              "doc": "FocusRange is the half-width around FocusDistance over which the Circle of Confusion ramps from 0 (in focus) to 1 (maximum blur). Must be > 0. Default: 2.0."
            },
            {
              "name": "MaxBlurRadius",
              "anchor": "DepthOfFieldConfig.MaxBlurRadius",
              "kind": "field",
              "doc": "MaxBlurRadius is the maximum bokeh disc radius in pixels at CoC = 1 (>= 0). 0 leaves the scene unchanged. Default: 6.0."
            },
            {
              "name": "Near",
              "anchor": "DepthOfFieldConfig.Near",
              "kind": "field",
              "doc": "Near and Far are the camera clip planes used to linearize [0, 1] depth values: Near < Far, and Near > 0 for a perspective projection. They must match the projection that wrote the depth buffer; [DepthOfFieldConfigFromCamera] and [PostStack3D.SetCamera] read them from the camera's projection matrix."
            },
            {
              "name": "Far",
              "anchor": "DepthOfFieldConfig.Far",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Orthographic",
              "anchor": "DepthOfFieldConfig.Orthographic",
              "kind": "field",
              "doc": "Orthographic selects linear orthographic depth reconstruction instead of perspective."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultDepthOfFieldConfig",
              "anchor": "DefaultDepthOfFieldConfig",
              "decl": "func DefaultDepthOfFieldConfig() DepthOfFieldConfig",
              "doc": "DefaultDepthOfFieldConfig returns balanced defaults for 3D Depth of Field.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1949
            },
            {
              "name": "DepthOfFieldConfigFromCamera",
              "anchor": "DepthOfFieldConfigFromCamera",
              "decl": "func DepthOfFieldConfigFromCamera(cam *scene3d.Camera, focusDistance, focusRange, maxBlurRadius float32) DepthOfFieldConfig",
              "doc": "DepthOfFieldConfigFromCamera initializes a [DepthOfFieldConfig] with the clip planes and projection kind of cam's projection matrix, so a projection whose fields [scene3d.Projection.Matrix] fills in with defaults still linearizes depth correctly.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1960
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "DepthOfFieldConfig.Validate",
              "recv": "DepthOfFieldConfig",
              "decl": "func (c DepthOfFieldConfig) Validate() error",
              "doc": "Validate checks that every field of c is finite and within its valid range. Every error wraps [ErrInvalidPostProcess].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1972
            }
          ]
        },
        {
          "name": "DepthOfFieldPass",
          "anchor": "DepthOfFieldPass",
          "decl": "type DepthOfFieldPass struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DepthOfFieldPass computes per-pixel signed Circle of Confusion from depth and gathers a depth-aware disc bokeh blur that keeps in-focus silhouettes sharp.\n",
          "file": "pkg/render3d/post3d.go",
          "line": 2032,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDepthOfFieldPass",
              "anchor": "NewDepthOfFieldPass",
              "decl": "func NewDepthOfFieldPass(cx *core.Scope, dev *gpu.Device, opts DepthOfFieldPassOptions) (*DepthOfFieldPass, error)",
              "doc": "NewDepthOfFieldPass creates a scope-owned [DepthOfFieldPass] on dev.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2067
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "DepthOfFieldPass.Apply",
              "recv": "*DepthOfFieldPass",
              "decl": "func (p *DepthOfFieldPass) Apply(dev *gpu.Device, rec RenderPassRecorder, srcColor, depthTex, dstColor *gpu.Texture) error",
              "doc": "Apply runs the CoC prepass and depth-aware disc bokeh gather from srcColor and depthTex into dstColor. A nil dstColor writes to the swapchain in OutputFormat, and a texture dstColor must be in ColorFormat or OutputFormat. Every texture must have the pass size and dstColor cannot also be an input; otherwise Apply returns an error wrapping [ErrInvalidPostProcess].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2325
            },
            {
              "name": "Close",
              "anchor": "DepthOfFieldPass.Close",
              "recv": "*DepthOfFieldPass",
              "decl": "func (p *DepthOfFieldPass) Close() error",
              "doc": "Close releases all GPU resources owned by p. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2433
            },
            {
              "name": "Config",
              "anchor": "DepthOfFieldPass.Config",
              "recv": "*DepthOfFieldPass",
              "decl": "func (p *DepthOfFieldPass) Config() DepthOfFieldConfig",
              "doc": "Config returns the pass's current [DepthOfFieldConfig].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2246
            },
            {
              "name": "Height",
              "anchor": "DepthOfFieldPass.Height",
              "recv": "*DepthOfFieldPass",
              "decl": "func (p *DepthOfFieldPass) Height() uint32",
              "doc": "Height returns the configured target height in pixels.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2274
            },
            {
              "name": "Resize",
              "anchor": "DepthOfFieldPass.Resize",
              "recv": "*DepthOfFieldPass",
              "decl": "func (p *DepthOfFieldPass) Resize(dev *gpu.Device, width, height uint32) error",
              "doc": "Resize recreates the pass's offscreen CoC target for a new viewport size.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2307
            },
            {
              "name": "SetConfig",
              "anchor": "DepthOfFieldPass.SetConfig",
              "recv": "*DepthOfFieldPass",
              "decl": "func (p *DepthOfFieldPass) SetConfig(cfg DepthOfFieldConfig) error",
              "doc": "SetConfig validates and updates the Depth of Field parameters.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2254
            },
            {
              "name": "Valid",
              "anchor": "DepthOfFieldPass.Valid",
              "recv": "*DepthOfFieldPass",
              "decl": "func (p *DepthOfFieldPass) Valid() bool",
              "doc": "Valid reports whether the pass is open and its GPU resources are live.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2282
            },
            {
              "name": "Width",
              "anchor": "DepthOfFieldPass.Width",
              "recv": "*DepthOfFieldPass",
              "decl": "func (p *DepthOfFieldPass) Width() uint32",
              "doc": "Width returns the configured target width in pixels.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2266
            }
          ]
        },
        {
          "name": "DepthOfFieldPassOptions",
          "anchor": "DepthOfFieldPassOptions",
          "decl": "type DepthOfFieldPassOptions struct {\n\tLabel        string\n\tWidth        uint32\n\tHeight       uint32\n\tColorFormat  gpu.TextureFormat // intermediate color/CoC format: RGBA16Float (the default), RGBA8Unorm, RGBA8UnormSRGB, BGRA8Unorm or BGRA8UnormSRGB\n\tOutputFormat gpu.TextureFormat // destination format; defaults to dev.SurfaceFormat() or FormatRGBA8Unorm\n\tRetained     bool\n\tConfig       DepthOfFieldConfig\n}",
          "doc": "DepthOfFieldPassOptions configures [NewDepthOfFieldPass].\n",
          "file": "pkg/render3d/post3d.go",
          "line": 2021,
          "members": [
            {
              "name": "Label",
              "anchor": "DepthOfFieldPassOptions.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "DepthOfFieldPassOptions.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "DepthOfFieldPassOptions.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorFormat",
              "anchor": "DepthOfFieldPassOptions.ColorFormat",
              "kind": "field",
              "doc": "intermediate color/CoC format: RGBA16Float (the default), RGBA8Unorm, RGBA8UnormSRGB, BGRA8Unorm or BGRA8UnormSRGB"
            },
            {
              "name": "OutputFormat",
              "anchor": "DepthOfFieldPassOptions.OutputFormat",
              "kind": "field",
              "doc": "destination format; defaults to dev.SurfaceFormat() or FormatRGBA8Unorm"
            },
            {
              "name": "Retained",
              "anchor": "DepthOfFieldPassOptions.Retained",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Config",
              "anchor": "DepthOfFieldPassOptions.Config",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DirectionalLight",
          "anchor": "DirectionalLight",
          "decl": "type DirectionalLight struct {\n\tDirection math3d.Vec3\n\tColor     math3d.Vec3\n\tIntensity float32\n}",
          "doc": "DirectionalLight is an infinitely distant light source whose parallel rays travel along Direction.\n\nDirection is the world-space travel direction of light rays (for example, (0, -1, 0) shines straight\ndown onto a horizontal +Y surface); it does not need to be unit length and is normalized when shaded\nor packed for the GPU. Color is linear RGB tint (non-negative finite channels), and Intensity scales\nColor to produce linear illuminance.\n",
          "file": "pkg/render3d/light.go",
          "line": 380,
          "members": [
            {
              "name": "Direction",
              "anchor": "DirectionalLight.Direction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "DirectionalLight.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Intensity",
              "anchor": "DirectionalLight.Intensity",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Validate",
              "anchor": "DirectionalLight.Validate",
              "recv": "DirectionalLight",
              "decl": "func (l DirectionalLight) Validate() error",
              "doc": "Validate reports whether l has a finite non-zero direction, finite non-negative color channels,\nand a finite non-negative intensity. Every error wraps [ErrInvalidLight].\n",
              "file": "pkg/render3d/light.go",
              "line": 388
            }
          ]
        },
        {
          "name": "DirectionalShadowConfig",
          "anchor": "DirectionalShadowConfig",
          "decl": "type DirectionalShadowConfig struct {\n\t// Direction is the world-space direction light rays travel (from the sun toward the scene). It need not be unit length, but must be finite and non-zero. With [LitPBRShadowWGSL] set it to the Direction of the [LightRig]'s first directional light, the one the shadow attenuates.\n\tDirection math3d.Vec3\n\t// Target is the world-space center of the orthographic shadow volume used by [DirectionalShadowConfig.LightViewProj] (ignored by [DirectionalShadowConfig.FitBounds]).\n\tTarget math3d.Vec3\n\t// OrthoSize is the full width and height (in world units) of the square orthographic frustum used by [DirectionalShadowConfig.LightViewProj]. When zero, defaults to 20.\n\tOrthoSize float32\n\t// DepthRange is the full depth of the orthographic volume of [DirectionalShadowConfig.LightViewProj] along Direction, centred on Target: points DepthRange/2 toward the light from Target map to depth 0 and points DepthRange/2 past it map to depth 1, so casters and receivers must lie within that slab. Zero defaults to max(OrthoSize*2, 100). [DirectionalShadowConfig.FitBounds] ignores it and derives the depth range from the bounds.\n\tDepthRange float32\n\t// Resolution is the shadow map width and height in texels used to compute TexelSize and texel snapping. Zero defaults to [DefaultShadowResolution] (1024).\n\tResolution uint32\n\t// DepthBias is the receiver-side depth bias in [0, 1] clip depth units (non-negative).\n\tDepthBias float32\n\t// NormalBias is the world-space offset applied along the receiver's surface normal before projecting into light space (non-negative).\n\tNormalBias float32\n\t// PCFKernel selects [ShadowFilterHard] (1-tap) or [ShadowFilterPCF3x3] (9-tap 3x3 PCF).\n\tPCFKernel ShadowFilter\n\t// Strength scales shadow darkness in [0, 1] (0 disables shadows; 1 fully occludes the directional light in shadow).\n\tStrength float32\n\t// TexelSnap keeps the shadow map's texel grid fixed in world space so shadow edges do not shimmer as the framing moves: the light-space XY center snaps to whole shadow-map texels, and [DirectionalShadowConfig.FitBounds] sizes the frustum from the bounds' bounding sphere, rounded up to a coarse step, instead of their exact light-space extent, so the texel size stays constant while the bounds move or the light turns.\n\tTexelSnap bool\n\t// CasterPadding extends the near plane of [DirectionalShadowConfig.FitBounds] backward toward the light (in world units, non-negative) so occluders slightly behind the fitted bounds still cast shadows.\n\tCasterPadding float32\n}",
          "doc": "DirectionalShadowConfig holds the mathematical and shading parameters for a directional light's orthographic shadow frustum.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 87,
          "members": [
            {
              "name": "Direction",
              "anchor": "DirectionalShadowConfig.Direction",
              "kind": "field",
              "doc": "Direction is the world-space direction light rays travel (from the sun toward the scene). It need not be unit length, but must be finite and non-zero. With [LitPBRShadowWGSL] set it to the Direction of the [LightRig]'s first directional light, the one the shadow attenuates."
            },
            {
              "name": "Target",
              "anchor": "DirectionalShadowConfig.Target",
              "kind": "field",
              "doc": "Target is the world-space center of the orthographic shadow volume used by [DirectionalShadowConfig.LightViewProj] (ignored by [DirectionalShadowConfig.FitBounds])."
            },
            {
              "name": "OrthoSize",
              "anchor": "DirectionalShadowConfig.OrthoSize",
              "kind": "field",
              "doc": "OrthoSize is the full width and height (in world units) of the square orthographic frustum used by [DirectionalShadowConfig.LightViewProj]. When zero, defaults to 20."
            },
            {
              "name": "DepthRange",
              "anchor": "DirectionalShadowConfig.DepthRange",
              "kind": "field",
              "doc": "DepthRange is the full depth of the orthographic volume of [DirectionalShadowConfig.LightViewProj] along Direction, centred on Target: points DepthRange/2 toward the light from Target map to depth 0 and points DepthRange/2 past it map to depth 1, so casters and receivers must lie within that slab. Zero defaults to max(OrthoSize*2, 100). [DirectionalShadowConfig.FitBounds] ignores it and derives the depth range from the bounds."
            },
            {
              "name": "Resolution",
              "anchor": "DirectionalShadowConfig.Resolution",
              "kind": "field",
              "doc": "Resolution is the shadow map width and height in texels used to compute TexelSize and texel snapping. Zero defaults to [DefaultShadowResolution] (1024)."
            },
            {
              "name": "DepthBias",
              "anchor": "DirectionalShadowConfig.DepthBias",
              "kind": "field",
              "doc": "DepthBias is the receiver-side depth bias in [0, 1] clip depth units (non-negative)."
            },
            {
              "name": "NormalBias",
              "anchor": "DirectionalShadowConfig.NormalBias",
              "kind": "field",
              "doc": "NormalBias is the world-space offset applied along the receiver's surface normal before projecting into light space (non-negative)."
            },
            {
              "name": "PCFKernel",
              "anchor": "DirectionalShadowConfig.PCFKernel",
              "kind": "field",
              "doc": "PCFKernel selects [ShadowFilterHard] (1-tap) or [ShadowFilterPCF3x3] (9-tap 3x3 PCF)."
            },
            {
              "name": "Strength",
              "anchor": "DirectionalShadowConfig.Strength",
              "kind": "field",
              "doc": "Strength scales shadow darkness in [0, 1] (0 disables shadows; 1 fully occludes the directional light in shadow)."
            },
            {
              "name": "TexelSnap",
              "anchor": "DirectionalShadowConfig.TexelSnap",
              "kind": "field",
              "doc": "TexelSnap keeps the shadow map's texel grid fixed in world space so shadow edges do not shimmer as the framing moves: the light-space XY center snaps to whole shadow-map texels, and [DirectionalShadowConfig.FitBounds] sizes the frustum from the bounds' bounding sphere, rounded up to a coarse step, instead of their exact light-space extent, so the texel size stays constant while the bounds move or the light turns."
            },
            {
              "name": "CasterPadding",
              "anchor": "DirectionalShadowConfig.CasterPadding",
              "kind": "field",
              "doc": "CasterPadding extends the near plane of [DirectionalShadowConfig.FitBounds] backward toward the light (in world units, non-negative) so occluders slightly behind the fitted bounds still cast shadows."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultDirectionalShadowConfig",
              "anchor": "DefaultDirectionalShadowConfig",
              "decl": "func DefaultDirectionalShadowConfig() DirectionalShadowConfig",
              "doc": "DefaultDirectionalShadowConfig returns a ready-to-use directional shadow configuration with 1024x1024 3x3 PCF shadows, texel snapping, and balanced depth/normal bias.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 113
            }
          ],
          "methods": [
            {
              "name": "FitBounds",
              "anchor": "DirectionalShadowConfig.FitBounds",
              "recv": "DirectionalShadowConfig",
              "decl": "func (c DirectionalShadowConfig) FitBounds(lightDir math3d.Vec3, sceneBounds math3d.AABB) (math3d.Mat4, error)",
              "doc": "FitBounds computes an orthographic light-space view-projection matrix (with [0, 1] NDC depth) framing sceneBounds along lightDir (falling back to c.Direction when lightDir is zero).\n\nWithout c.TexelSnap the frustum hugs the bounds' light-space extent, which gives the most shadow-map texels per world unit but changes the texel size whenever the bounds or the light move. With c.TexelSnap the frustum width is the diameter of the bounds' bounding sphere plus a margin, rounded up to a multiple of a sixteenth of the next power of two: that width does not change as the light turns and changes only in coarse steps as the bounds grow or shrink, and the light-space XY center then snaps to whole texels, so between two fits with the same width every static world point moves by a whole number of texels and shadow edges do not shimmer. Every corner of sceneBounds stays inside [0, 1]^2 either way.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 219
            },
            {
              "name": "LightViewProj",
              "anchor": "DirectionalShadowConfig.LightViewProj",
              "recv": "DirectionalShadowConfig",
              "decl": "func (c DirectionalShadowConfig) LightViewProj() (math3d.Mat4, error)",
              "doc": "LightViewProj computes the orthographic light-space view-projection matrix (with [0, 1] NDC depth) centered on c.Target, c.OrthoSize wide and high and c.DepthRange deep, with c.Target at depth 0.5. When c.TexelSnap is true, the light-space XY center is snapped to exact texel increments of c.Resolution to eliminate shadow swimming.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 185
            },
            {
              "name": "Uniforms",
              "anchor": "DirectionalShadowConfig.Uniforms",
              "recv": "DirectionalShadowConfig",
              "decl": "func (c DirectionalShadowConfig) Uniforms(lightViewProj math3d.Mat4) ShadowUniforms",
              "doc": "Uniforms packages c and lightViewProj into a [ShadowUniforms] ready to upload with [AppendShadowUniforms] or [DirectionalShadowMap.WriteUniforms].\n",
              "file": "pkg/render3d/shadow.go",
              "line": 272
            },
            {
              "name": "UniformsForBounds",
              "anchor": "DirectionalShadowConfig.UniformsForBounds",
              "recv": "DirectionalShadowConfig",
              "decl": "func (c DirectionalShadowConfig) UniformsForBounds(sceneBounds math3d.AABB) (ShadowUniforms, error)",
              "doc": "UniformsForBounds fits c to sceneBounds via [DirectionalShadowConfig.FitBounds] and returns the resulting [ShadowUniforms].\n",
              "file": "pkg/render3d/shadow.go",
              "line": 292
            },
            {
              "name": "Validate",
              "anchor": "DirectionalShadowConfig.Validate",
              "recv": "DirectionalShadowConfig",
              "decl": "func (c DirectionalShadowConfig) Validate() error",
              "doc": "Validate checks that every field of c is finite and within valid ranges. Every error wraps [ErrInvalidShadow].\n",
              "file": "pkg/render3d/shadow.go",
              "line": 134
            }
          ]
        },
        {
          "name": "DirectionalShadowMap",
          "anchor": "DirectionalShadowMap",
          "decl": "type DirectionalShadowMap struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DirectionalShadowMap manages an offscreen depth-only shadow map [*gpu.RenderTarget], a depth-only caster pipeline ([ShadowDepthWGSL]), a dynamic-offset caster transform buffer, the directional [ShadowUniforms] buffer, and both nearest (hard) and linear (PCF) comparison samplers/bind groups.\n\nCreate it once when the GPU device is ready (with Retained: true to survive device loss automatically), call [DirectionalShadowMap.Update] or [DirectionalShadowMap.UpdateBounds] each frame, record casters between [DirectionalShadowMap.BeginShadowPass] and pass.End(), and bind [DirectionalShadowMap.BindGroup] at [ShadowGroup] during the main lit render pass. Its resources belong to the [*core.Scope] passed to [NewDirectionalShadowMap] and are released when that scope is disposed or when [DirectionalShadowMap.Close] is called.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 555,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDirectionalShadowMap",
              "anchor": "NewDirectionalShadowMap",
              "decl": "func NewDirectionalShadowMap(cx *core.Scope, dev *gpu.Device, opts ShadowMapOptions) (*DirectionalShadowMap, error)",
              "doc": "NewDirectionalShadowMap validates opts and allocates all GPU resources for directional shadow mapping on dev, scoped to cx. Invalid options return an error wrapping [ErrInvalidShadow] before creating any GPU object; a nil or lost device returns [gpu.ErrDeviceLost].\n",
              "file": "pkg/render3d/shadow.go",
              "line": 581
            }
          ],
          "methods": [
            {
              "name": "BeginShadowPass",
              "anchor": "DirectionalShadowMap.BeginShadowPass",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) BeginShadowPass(dev *gpu.Device, target ShadowPassTarget) *gpu.RenderPass",
              "doc": "BeginShadowPass resets the per-pass caster slot cursor, opens a depth-only render pass clearing the shadow map depth to 1.0, and binds the shadow depth pipeline. Pass the live [*gpu.Device] and either a [*gpu.Encoder] or [*gpu.Frame] as target. Returns nil when s, dev, or target is nil or s is invalid (after [DirectionalShadowMap.Close], or while the device is lost for a map that is not Retained), so check the result before drawing casters and calling End.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 967
            },
            {
              "name": "BindGroup",
              "anchor": "DirectionalShadowMap.BindGroup",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group for sampling the shadow map at [ShadowGroup], automatically selecting the nearest comparison sampler for [ShadowFilterHard] and the linear comparison sampler for [ShadowFilterPCF3x3].\n",
              "file": "pkg/render3d/shadow.go",
              "line": 859
            },
            {
              "name": "ByteSize",
              "anchor": "DirectionalShadowMap.ByteSize",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by the shadow map depth texture (4 bytes per texel for Depth32Float) and uniform buffers, for [RenderStats] and [Budget] accounting.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 878
            },
            {
              "name": "Close",
              "anchor": "DirectionalShadowMap.Close",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) Close() error",
              "doc": "Close releases all GPU resources owned by s now rather than waiting for its scope to be disposed. Safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 1009
            },
            {
              "name": "DepthPipeline",
              "anchor": "DirectionalShadowMap.DepthPipeline",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) DepthPipeline() *gpu.Pipeline",
              "doc": "DepthPipeline returns the depth-only shadow caster [*gpu.Pipeline], or nil for a nil receiver.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 835
            },
            {
              "name": "DepthTexture",
              "anchor": "DirectionalShadowMap.DepthTexture",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) DepthTexture() *gpu.Texture",
              "doc": "DepthTexture returns the depth [*gpu.Texture] of the shadow map, or nil for a nil receiver.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 827
            },
            {
              "name": "DrawCaster",
              "anchor": "DirectionalShadowMap.DrawCaster",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) DrawCaster(pass *gpu.RenderPass, mesh *GPUMesh, model math3d.Mat4) bool",
              "doc": "DrawCaster records one shadow-casting [GPUMesh] with world transform model inside the shadow pass started by [DirectionalShadowMap.BeginShadowPass]. Each call writes lightViewProj * model into its own dynamic-offset uniform slot so multiple casters can be drawn in one pass without overwriting earlier draws. Returns false if any argument is invalid or [DirectionalShadowMap.MaxCasters] slots have been exhausted.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 990
            },
            {
              "name": "Layout",
              "anchor": "DirectionalShadowMap.Layout",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout for sampling the shadow map (to place at [ShadowGroup] in lit pipelines), or nil for a nil receiver.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 851
            },
            {
              "name": "MaxCasters",
              "anchor": "DirectionalShadowMap.MaxCasters",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) MaxCasters() uint32",
              "doc": "MaxCasters returns the maximum number of [DirectionalShadowMap.DrawCaster] calls supported per shadow pass, or zero for a nil receiver.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 811
            },
            {
              "name": "RenderTarget",
              "anchor": "DirectionalShadowMap.RenderTarget",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) RenderTarget() *gpu.RenderTarget",
              "doc": "RenderTarget returns the underlying depth-only [*gpu.RenderTarget], or nil for a nil receiver.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 819
            },
            {
              "name": "Resolution",
              "anchor": "DirectionalShadowMap.Resolution",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) Resolution() uint32",
              "doc": "Resolution returns the shadow map width and height in texels, or zero for a nil receiver.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 803
            },
            {
              "name": "UniformBuffer",
              "anchor": "DirectionalShadowMap.UniformBuffer",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) UniformBuffer() *gpu.Buffer",
              "doc": "UniformBuffer returns the [*gpu.Buffer] holding [ShadowUniforms], or nil for a nil receiver.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 843
            },
            {
              "name": "Uniforms",
              "anchor": "DirectionalShadowMap.Uniforms",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) Uniforms() ShadowUniforms",
              "doc": "Uniforms returns the most recently written [ShadowUniforms].\n",
              "file": "pkg/render3d/shadow.go",
              "line": 870
            },
            {
              "name": "Update",
              "anchor": "DirectionalShadowMap.Update",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) Update(dev *gpu.Device, cfg DirectionalShadowConfig) (ShadowUniforms, error)",
              "doc": "Update computes the orthographic light matrix from cfg (using s.Resolution() if cfg.Resolution is zero), uploads the resulting [ShadowUniforms] on dev, and returns them.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 925
            },
            {
              "name": "UpdateBounds",
              "anchor": "DirectionalShadowMap.UpdateBounds",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) UpdateBounds(dev *gpu.Device, cfg DirectionalShadowConfig, sceneBounds math3d.AABB) (ShadowUniforms, error)",
              "doc": "UpdateBounds fits the orthographic light frustum to sceneBounds via [DirectionalShadowConfig.FitBounds] (using s.Resolution() if cfg.Resolution is zero), uploads the resulting [ShadowUniforms] on dev, and returns them.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 946
            },
            {
              "name": "Valid",
              "anchor": "DirectionalShadowMap.Valid",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) Valid() bool",
              "doc": "Valid reports whether all GPU resources owned by s are open and belong to a live device.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 896
            },
            {
              "name": "WriteUniforms",
              "anchor": "DirectionalShadowMap.WriteUniforms",
              "recv": "*DirectionalShadowMap",
              "decl": "func (s *DirectionalShadowMap) WriteUniforms(dev *gpu.Device, u ShadowUniforms)",
              "doc": "WriteUniforms encodes u into the shadow uniform buffer on dev without heap allocation and selects the matching hard or PCF comparison sampler bind group. Values the shader cannot use are made safe first: a NaN or infinite matrix or Strength disables the shadow, non-finite biases become 0, a missing TexelSize becomes 1/[DirectionalShadowMap.Resolution], and an unknown PCFKernel falls back to [ShadowFilterHard]. [DirectionalShadowMap.Uniforms] returns the values as written.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 910
            }
          ]
        },
        {
          "name": "DrawItem",
          "anchor": "DrawItem",
          "decl": "type DrawItem struct {\n\tID          uint64\n\tMeshID      uint32\n\tMaterialID  uint32\n\tPipelineID  uint32\n\tBlend       BlendMode\n\tTransform   math3d.Mat4\n\tWorldBounds math3d.AABB\n\tTriangles   uint32\n\tVertices    uint32\n\tLODs        []LODLevel // optional; ordered from finest (index 0) to coarsest\n}",
          "doc": "DrawItem describes a single renderable 3D object submitted to [Queue.Build].\n",
          "file": "pkg/render3d/queue.go",
          "line": 42,
          "members": [
            {
              "name": "ID",
              "anchor": "DrawItem.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MeshID",
              "anchor": "DrawItem.MeshID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaterialID",
              "anchor": "DrawItem.MaterialID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PipelineID",
              "anchor": "DrawItem.PipelineID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blend",
              "anchor": "DrawItem.Blend",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transform",
              "anchor": "DrawItem.Transform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldBounds",
              "anchor": "DrawItem.WorldBounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triangles",
              "anchor": "DrawItem.Triangles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vertices",
              "anchor": "DrawItem.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LODs",
              "anchor": "DrawItem.LODs",
              "kind": "field",
              "doc": "optional; ordered from finest (index 0) to coarsest"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FilterLayeredItems",
              "anchor": "FilterLayeredItems",
              "decl": "func FilterLayeredItems(src []LayeredDrawItem, mask uint32, dst []DrawItem) []DrawItem",
              "doc": "FilterLayeredItems appends every item in src whose Layer intersects mask to dst and returns the extended slice. A zero mask matches nothing, unlike a zero [CameraView.LayerMask]; pass [ViewportContext.LayerMask]. Pass dst[:0] with preallocated capacity for zero steady-state allocations per camera view.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 623
            }
          ],
          "methods": []
        },
        {
          "name": "DynamicResolutionConfig",
          "anchor": "DynamicResolutionConfig",
          "decl": "type DynamicResolutionConfig struct {\n\t// TargetFrameTime is the GPU frame-time budget the scaler aims to hold.\n\t// Zero defaults to DefaultDynamicResolutionTargetFrameTime (~16.67ms, 60 FPS).\n\tTargetFrameTime time.Duration\n\t// MinScale is the lowest linear resolution scale in (0, 1].\n\t// Zero defaults to DefaultDynamicResolutionMinScale (0.5).\n\tMinScale float32\n\t// MaxScale is the highest linear resolution scale in [MinScale, 1].\n\t// Zero defaults to DefaultDynamicResolutionMaxScale (1.0).\n\tMaxScale float32\n\t// InitialScale optionally sets the starting scale in [MinScale, MaxScale].\n\t// Zero defaults to MaxScale.\n\tInitialScale float32\n\t// Deadband is the fractional hysteresis tolerance in [0, 0.5) around\n\t// TargetFrameTime inside which scale holds steady. Overload triggers above\n\t// TargetFrameTime*(1+Deadband); headroom triggers below TargetFrameTime*(1-Deadband).\n\t// Zero defaults to DefaultDynamicResolutionDeadband (0.05).\n\tDeadband float32\n\t// SmoothingAlpha is the exponential moving average weight in (0, 1] for\n\t// incoming GPU frame-time samples. Zero defaults to DefaultDynamicResolutionSmoothingAlpha (0.25).\n\tSmoothingAlpha float32\n\t// StepDown is the maximum linear scale reduction per adjustment step in (0, 1].\n\t// Zero defaults to DefaultDynamicResolutionStepDown (0.12).\n\tStepDown float32\n\t// StepUp is the maximum linear scale increase per adjustment step in (0, 1].\n\t// Zero defaults to DefaultDynamicResolutionStepUp (0.04).\n\tStepUp float32\n\t// CooldownDown is the minimum number of frames between consecutive\n\t// scale-down steps. Zero defaults to DefaultDynamicResolutionCooldownDown (2);\n\t// set 1 to permit stepping down on every consecutive overloaded frame.\n\tCooldownDown int\n\t// CooldownUp is the minimum number of consecutive headroom frames (and frames\n\t// since the last scale change) required before stepping up. Zero defaults to\n\t// DefaultDynamicResolutionCooldownUp (12); set 1 for immediate recovery.\n\tCooldownUp int\n\t// HitchLimit discards GPU frame-time outliers longer than HitchLimit as\n\t// loading or resume hitches. Zero defaults to DefaultDynamicResolutionHitchLimit (250ms);\n\t// a negative duration disables hitch filtering.\n\tHitchLimit time.Duration\n\t// Alignment rounds scaled widths and heights to a multiple of Alignment\n\t// (clamped to [1, native]) whenever scale < 1. Zero defaults to\n\t// DefaultDynamicResolutionAlignment (2); 1 disables alignment rounding.\n\tAlignment int\n\t// Filter selects the upscaling filter used by [DynamicResolutionTarget].\n\tFilter DynamicResolutionFilter\n\t// Sharpness controls contrast-adaptive sharpening strength in [0, 1] when\n\t// Filter is DynamicResolutionSharpen. Zero defaults to DefaultDynamicResolutionSharpness (0.25).\n\tSharpness float32\n}",
          "doc": "DynamicResolutionConfig configures [DynamicResolutionScaler] and\n[DynamicResolutionTarget]. Zero-valued numeric fields take defaults from\n[DefaultDynamicResolutionConfig].\n",
          "file": "pkg/render3d/dynres.go",
          "line": 95,
          "members": [
            {
              "name": "TargetFrameTime",
              "anchor": "DynamicResolutionConfig.TargetFrameTime",
              "kind": "field",
              "doc": "TargetFrameTime is the GPU frame-time budget the scaler aims to hold.\nZero defaults to DefaultDynamicResolutionTargetFrameTime (~16.67ms, 60 FPS)."
            },
            {
              "name": "MinScale",
              "anchor": "DynamicResolutionConfig.MinScale",
              "kind": "field",
              "doc": "MinScale is the lowest linear resolution scale in (0, 1].\nZero defaults to DefaultDynamicResolutionMinScale (0.5)."
            },
            {
              "name": "MaxScale",
              "anchor": "DynamicResolutionConfig.MaxScale",
              "kind": "field",
              "doc": "MaxScale is the highest linear resolution scale in [MinScale, 1].\nZero defaults to DefaultDynamicResolutionMaxScale (1.0)."
            },
            {
              "name": "InitialScale",
              "anchor": "DynamicResolutionConfig.InitialScale",
              "kind": "field",
              "doc": "InitialScale optionally sets the starting scale in [MinScale, MaxScale].\nZero defaults to MaxScale."
            },
            {
              "name": "Deadband",
              "anchor": "DynamicResolutionConfig.Deadband",
              "kind": "field",
              "doc": "Deadband is the fractional hysteresis tolerance in [0, 0.5) around\nTargetFrameTime inside which scale holds steady. Overload triggers above\nTargetFrameTime*(1+Deadband); headroom triggers below TargetFrameTime*(1-Deadband).\nZero defaults to DefaultDynamicResolutionDeadband (0.05)."
            },
            {
              "name": "SmoothingAlpha",
              "anchor": "DynamicResolutionConfig.SmoothingAlpha",
              "kind": "field",
              "doc": "SmoothingAlpha is the exponential moving average weight in (0, 1] for\nincoming GPU frame-time samples. Zero defaults to DefaultDynamicResolutionSmoothingAlpha (0.25)."
            },
            {
              "name": "StepDown",
              "anchor": "DynamicResolutionConfig.StepDown",
              "kind": "field",
              "doc": "StepDown is the maximum linear scale reduction per adjustment step in (0, 1].\nZero defaults to DefaultDynamicResolutionStepDown (0.12)."
            },
            {
              "name": "StepUp",
              "anchor": "DynamicResolutionConfig.StepUp",
              "kind": "field",
              "doc": "StepUp is the maximum linear scale increase per adjustment step in (0, 1].\nZero defaults to DefaultDynamicResolutionStepUp (0.04)."
            },
            {
              "name": "CooldownDown",
              "anchor": "DynamicResolutionConfig.CooldownDown",
              "kind": "field",
              "doc": "CooldownDown is the minimum number of frames between consecutive\nscale-down steps. Zero defaults to DefaultDynamicResolutionCooldownDown (2);\nset 1 to permit stepping down on every consecutive overloaded frame."
            },
            {
              "name": "CooldownUp",
              "anchor": "DynamicResolutionConfig.CooldownUp",
              "kind": "field",
              "doc": "CooldownUp is the minimum number of consecutive headroom frames (and frames\nsince the last scale change) required before stepping up. Zero defaults to\nDefaultDynamicResolutionCooldownUp (12); set 1 for immediate recovery."
            },
            {
              "name": "HitchLimit",
              "anchor": "DynamicResolutionConfig.HitchLimit",
              "kind": "field",
              "doc": "HitchLimit discards GPU frame-time outliers longer than HitchLimit as\nloading or resume hitches. Zero defaults to DefaultDynamicResolutionHitchLimit (250ms);\na negative duration disables hitch filtering."
            },
            {
              "name": "Alignment",
              "anchor": "DynamicResolutionConfig.Alignment",
              "kind": "field",
              "doc": "Alignment rounds scaled widths and heights to a multiple of Alignment\n(clamped to [1, native]) whenever scale < 1. Zero defaults to\nDefaultDynamicResolutionAlignment (2); 1 disables alignment rounding."
            },
            {
              "name": "Filter",
              "anchor": "DynamicResolutionConfig.Filter",
              "kind": "field",
              "doc": "Filter selects the upscaling filter used by [DynamicResolutionTarget]."
            },
            {
              "name": "Sharpness",
              "anchor": "DynamicResolutionConfig.Sharpness",
              "kind": "field",
              "doc": "Sharpness controls contrast-adaptive sharpening strength in [0, 1] when\nFilter is DynamicResolutionSharpen. Zero defaults to DefaultDynamicResolutionSharpness (0.25)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultDynamicResolutionConfig",
              "anchor": "DefaultDynamicResolutionConfig",
              "decl": "func DefaultDynamicResolutionConfig() DynamicResolutionConfig",
              "doc": "DefaultDynamicResolutionConfig returns the default 60 FPS dynamic resolution\nconfiguration (scale in [0.5, 1.0], ±5% deadband, fast scale-down, smooth\nscale-up, even pixel alignment, bilinear upscaling).\n",
              "file": "pkg/render3d/dynres.go",
              "line": 148
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "DynamicResolutionConfig.Validate",
              "recv": "DynamicResolutionConfig",
              "decl": "func (c DynamicResolutionConfig) Validate() error",
              "doc": "Validate checks c after applying zero-value defaults. Every error wraps\n[ErrInvalidDynamicResolution].\n",
              "file": "pkg/render3d/dynres.go",
              "line": 213
            }
          ]
        },
        {
          "name": "DynamicResolutionFilter",
          "anchor": "DynamicResolutionFilter",
          "decl": "type DynamicResolutionFilter uint8",
          "doc": "DynamicResolutionFilter selects how [DynamicResolutionTarget] resamples the\nscaled 3D render target when upscaling onto the native output surface.\n",
          "file": "pkg/render3d/dynres.go",
          "line": 58,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DynamicResolutionBilinear",
                  "anchor": "DynamicResolutionBilinear"
                },
                {
                  "name": "DynamicResolutionNearest",
                  "anchor": "DynamicResolutionNearest"
                },
                {
                  "name": "DynamicResolutionSharpen",
                  "anchor": "DynamicResolutionSharpen"
                }
              ],
              "decl": "const (\n\t// DynamicResolutionBilinear uses hardware bilinear filtering clamped to the\n\t// active scaled sub-viewport so out-of-viewport texels never bleed inward.\n\tDynamicResolutionBilinear DynamicResolutionFilter = iota\n\t// DynamicResolutionNearest uses nearest-neighbor point sampling for crisp\n\t// pixel-art or retro 3D presentation.\n\tDynamicResolutionNearest\n\t// DynamicResolutionSharpen applies bilinear upscaling followed by a\n\t// contrast-adaptive 5-tap sharpening pass clamped to the local\n\t// neighborhood min/max to restore detail without ringing halos.\n\tDynamicResolutionSharpen\n)",
              "doc": "",
              "file": "pkg/render3d/dynres.go",
              "line": 60
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "DynamicResolutionFilter.String",
              "recv": "DynamicResolutionFilter",
              "decl": "func (f DynamicResolutionFilter) String() string",
              "doc": "String returns the filter name: \"bilinear\", \"nearest\", or \"sharpen\".\n",
              "file": "pkg/render3d/dynres.go",
              "line": 74
            },
            {
              "name": "Valid",
              "anchor": "DynamicResolutionFilter.Valid",
              "recv": "DynamicResolutionFilter",
              "decl": "func (f DynamicResolutionFilter) Valid() bool",
              "doc": "Valid reports whether f is a recognized filter mode.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 88
            }
          ]
        },
        {
          "name": "DynamicResolutionScaler",
          "anchor": "DynamicResolutionScaler",
          "decl": "type DynamicResolutionScaler struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DynamicResolutionScaler adapts a linear 3D render resolution scale in\n[MinScale, MaxScale] to hold a GPU frame-time target (#383).\n\nBecause fill-rate cost grows quadratically with linear scale (area = scale²),\nthe controller scales proportionally toward scale * sqrt(target / smoothed)\nwith a symmetric hysteresis deadband around TargetFrameTime, fast response on\noverload (CooldownDown, StepDown), and conservative recovery under sustained\nheadroom (CooldownUp, StepUp).\n\nDynamicResolutionScaler is pure Go, deterministic, and independent of the GPU\ndevice so it can be driven from GPU pass timings, frame timers, or unit tests.\nIt is not safe for concurrent use; call it from the render/loop goroutine.\n",
          "file": "pkg/render3d/dynres.go",
          "line": 320,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDynamicResolutionScaler",
              "anchor": "NewDynamicResolutionScaler",
              "decl": "func NewDynamicResolutionScaler(cfg DynamicResolutionConfig) (*DynamicResolutionScaler, error)",
              "doc": "NewDynamicResolutionScaler creates a scaler from cfg (applying defaults for\nzero fields). It returns an error wrapping [ErrInvalidDynamicResolution] if\ncfg is invalid.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 339
            }
          ],
          "methods": [
            {
              "name": "ClearFixedScale",
              "anchor": "DynamicResolutionScaler.ClearFixedScale",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) ClearFixedScale()",
              "doc": "ClearFixedScale removes any pinned scale set by [SetFixedScale] and resumes\nautomatic adaptation.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 395
            },
            {
              "name": "Config",
              "anchor": "DynamicResolutionScaler.Config",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) Config() DynamicResolutionConfig",
              "doc": "Config returns the normalized configuration in use by s.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 353
            },
            {
              "name": "Enabled",
              "anchor": "DynamicResolutionScaler.Enabled",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) Enabled() bool",
              "doc": "Enabled reports whether dynamic resolution scaling is currently active.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 361
            },
            {
              "name": "RecordFrameTime",
              "anchor": "DynamicResolutionScaler.RecordFrameTime",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) RecordFrameTime(gpuFrameTime time.Duration) float32",
              "doc": "RecordFrameTime updates the smoothed GPU frame time with gpuFrameTime and\nadapts Scale() to hold TargetFrameTime, returning the resulting Scale().\n\nNon-positive durations are ignored. Durations exceeding HitchLimit (when\nHitchLimit > 0) are counted as ignored hitches and do not disturb the EMA or\nresolution scale. When disabled or pinned via SetFixedScale, the current\nScale() is returned without modifying adaptive scale.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 532
            },
            {
              "name": "RecordPassTimings",
              "anchor": "DynamicResolutionScaler.RecordPassTimings",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) RecordPassTimings(timings []gpu.PassTiming, labels ...string) float32",
              "doc": "RecordPassTimings sums GPU pass durations from timings (for example from\n[gpu.Device.LastPassTimings] or [gpu.Frame.PassTimings]) and feeds the total\ninto [RecordFrameTime]. When labels are provided, only passes whose Label\nmatches one of labels are summed; when no labels are provided, all positive\npass durations are summed.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 628
            },
            {
              "name": "Reset",
              "anchor": "DynamicResolutionScaler.Reset",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) Reset()",
              "doc": "Reset restores the adaptive scale to InitialScale and clears smoothed timing,\ncooldowns, and counters. Enabled and fixed-scale overrides are preserved.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 473
            },
            {
              "name": "Scale",
              "anchor": "DynamicResolutionScaler.Scale",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) Scale() float32",
              "doc": "Scale returns the active linear resolution scale in (0, 1].\nIt returns 1.0 when s is nil or disabled, the pinned value when a fixed scale\nis set, or the adaptive scale otherwise.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 431
            },
            {
              "name": "ScaledSize",
              "anchor": "DynamicResolutionScaler.ScaledSize",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) ScaledSize(nativeW, nativeH int) (w, h int)",
              "doc": "ScaledSize returns the scaled 3D pixel dimensions for a native output target\nof size (nativeW, nativeH) using the current [Scale] and configured\nalignment. Returns (0, 0) when either native dimension is non-positive.\nWhen Scale() >= 1, (nativeW, nativeH) is returned unchanged.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 493
            },
            {
              "name": "SetEnabled",
              "anchor": "DynamicResolutionScaler.SetEnabled",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) SetEnabled(enabled bool)",
              "doc": "SetEnabled enables or disables dynamic resolution scaling. When disabled,\nScale returns 1.0 (native resolution) and RecordFrameTime makes no scale\nadjustments.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 371
            },
            {
              "name": "SetFixedScale",
              "anchor": "DynamicResolutionScaler.SetFixedScale",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) SetFixedScale(scale float32)",
              "doc": "SetFixedScale pins the reported scale to a fixed value while dynamic scaling\nis enabled, disabling automatic frame-time adjustments. Passing a value <= 0\nclears the override and resumes automatic adaptation. Positive values are\nclamped to [MinScale, MaxScale].\n",
              "file": "pkg/render3d/dynres.go",
              "line": 382
            },
            {
              "name": "SetScaleBounds",
              "anchor": "DynamicResolutionScaler.SetScaleBounds",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) SetScaleBounds(minScale, maxScale float32) error",
              "doc": "SetScaleBounds updates MinScale and MaxScale at runtime (for example, when a\nquality.Selector switches presets and caps MaxScale to Preset.ResolutionScale).\nExisting scale and fixedScale values are clamped into the new bounds.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 405
            },
            {
              "name": "SmoothedFrameTime",
              "anchor": "DynamicResolutionScaler.SmoothedFrameTime",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) SmoothedFrameTime() time.Duration",
              "doc": "SmoothedFrameTime returns the current exponential moving average of recorded\nGPU frame times, or 0 before any valid sample has been recorded.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 443
            },
            {
              "name": "Stats",
              "anchor": "DynamicResolutionScaler.Stats",
              "recv": "*DynamicResolutionScaler",
              "decl": "func (s *DynamicResolutionScaler) Stats() DynamicResolutionStats",
              "doc": "Stats returns a point-in-time snapshot of s's scale, timings, and counters.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 451
            }
          ]
        },
        {
          "name": "DynamicResolutionStats",
          "anchor": "DynamicResolutionStats",
          "decl": "type DynamicResolutionStats struct {\n\tScale             float32\n\tMinScale          float32\n\tMaxScale          float32\n\tEnabled           bool\n\tFixed             bool\n\tLastFrameTime     time.Duration\n\tSmoothedFrameTime time.Duration\n\tTargetFrameTime   time.Duration\n\tFramesRecorded    uint64\n\tHitchesIgnored    uint64\n\tScaleDowns        uint64\n\tScaleUps          uint64\n}",
          "doc": "DynamicResolutionStats captures a snapshot of a [DynamicResolutionScaler]'s\ncurrent scale, frame-time metrics, and adjustment counters.\n",
          "file": "pkg/render3d/dynres.go",
          "line": 293,
          "members": [
            {
              "name": "Scale",
              "anchor": "DynamicResolutionStats.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinScale",
              "anchor": "DynamicResolutionStats.MinScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxScale",
              "anchor": "DynamicResolutionStats.MaxScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Enabled",
              "anchor": "DynamicResolutionStats.Enabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fixed",
              "anchor": "DynamicResolutionStats.Fixed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LastFrameTime",
              "anchor": "DynamicResolutionStats.LastFrameTime",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SmoothedFrameTime",
              "anchor": "DynamicResolutionStats.SmoothedFrameTime",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TargetFrameTime",
              "anchor": "DynamicResolutionStats.TargetFrameTime",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FramesRecorded",
              "anchor": "DynamicResolutionStats.FramesRecorded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HitchesIgnored",
              "anchor": "DynamicResolutionStats.HitchesIgnored",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleDowns",
              "anchor": "DynamicResolutionStats.ScaleDowns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleUps",
              "anchor": "DynamicResolutionStats.ScaleUps",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DynamicResolutionTarget",
          "anchor": "DynamicResolutionTarget",
          "decl": "type DynamicResolutionTarget struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DynamicResolutionTarget manages an offscreen 3D render target and a\nfull-screen upscale pass so the 3D scene renders at an adaptive resolution\nscale while the native swapchain and 2D HUD overlays (such as scene.Overlay3D\nor a follow-up native GPU HUD pass) stay at crisp 1:1 native resolution (#383).\n\nTo avoid GPU texture reallocation churn as the resolution scale fluctuates\nframe to frame, the offscreen RenderTarget is allocated at native capacity\nand 3D rendering is restricted via SetViewport and SetScissor to the active\nscaled sub-rectangle [0, 0, scaledW, scaledH]. The upscale pass maps that\nsub-rectangle across the full native viewport with half-texel UV clamping so\nunused padding texels never bleed into the image.\n",
          "file": "pkg/render3d/dynres.go",
          "line": 783,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDynamicResolutionTarget",
              "anchor": "NewDynamicResolutionTarget",
              "decl": "func NewDynamicResolutionTarget(cx *core.Scope, dev *gpu.Device, opts DynamicResolutionTargetOptions) (*DynamicResolutionTarget, error)",
              "doc": "NewDynamicResolutionTarget creates the upscale pipelines, static quad buffer,\nand samplers on dev owned by cx (nil for caller-closed resources). The\noffscreen render target itself is allocated lazily on the first [Begin3D] or\n[EnsureCapacity] call once native dimensions are known.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 822
            }
          ],
          "methods": [
            {
              "name": "AllocatedSize",
              "anchor": "DynamicResolutionTarget.AllocatedSize",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) AllocatedSize() (w, h int)",
              "doc": "AllocatedSize returns the backing offscreen render target's pixel capacity.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1147
            },
            {
              "name": "Begin3D",
              "anchor": "DynamicResolutionTarget.Begin3D",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) Begin3D(rec RenderPassRecorder, nativeW, nativeH int, clearColor core.Color) (*gpu.RenderPass, error)",
              "doc": "Begin3D ensures offscreen capacity for (nativeW, nativeH), begins a render\npass targeting the offscreen color (and optional depth) buffer cleared to\nclearColor, and configures SetViewport and SetScissor to the current scaled\nsub-rectangle [0, 0, scaledW, scaledH].\n\nDraw your 3D scene into the returned [*gpu.RenderPass] and call pass.End(),\nthen call [Upscale] (or [UpscaleIntoPass]) to present the scaled 3D image at\nnative resolution before drawing native-resolution HUD overlays.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1286
            },
            {
              "name": "ByteSize",
              "anchor": "DynamicResolutionTarget.ByteSize",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) ByteSize() uint64",
              "doc": "ByteSize estimates the resident GPU memory (in bytes) of the offscreen color\nand depth attachments for [RenderStats.TextureBytes] and [Budget] checks.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1174
            },
            {
              "name": "Close",
              "anchor": "DynamicResolutionTarget.Close",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) Close() error",
              "doc": "Close releases all GPU resources owned by t now rather than waiting for its\nowning scope. It is safe to call more than once and returns the first error.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1476
            },
            {
              "name": "ColorFormat",
              "anchor": "DynamicResolutionTarget.ColorFormat",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) ColorFormat() gpu.TextureFormat",
              "doc": "ColorFormat returns the offscreen 3D color attachment format.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1095
            },
            {
              "name": "ColorTexture",
              "anchor": "DynamicResolutionTarget.ColorTexture",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) ColorTexture() *gpu.Texture",
              "doc": "ColorTexture returns the offscreen 3D color attachment texture, or nil before\nallocation.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1130
            },
            {
              "name": "DepthFormat",
              "anchor": "DynamicResolutionTarget.DepthFormat",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) DepthFormat() gpu.TextureFormat",
              "doc": "DepthFormat returns the offscreen 3D depth attachment format, or\n[gpu.FormatUndefined] when depth is disabled.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1104
            },
            {
              "name": "DepthTexture",
              "anchor": "DynamicResolutionTarget.DepthTexture",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) DepthTexture() *gpu.Texture",
              "doc": "DepthTexture returns the offscreen 3D depth attachment texture, or nil when\ndepth is disabled or before allocation.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1139
            },
            {
              "name": "EnsureCapacity",
              "anchor": "DynamicResolutionTarget.EnsureCapacity",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) EnsureCapacity(nativeW, nativeH int) error",
              "doc": "EnsureCapacity guarantees the backing offscreen render target can cover a\nnative resolution of (nativeW, nativeH). The backing target grows on demand\nand shrinks only when native dimensions drop below half of the allocated\ncapacity, avoiding texture reallocations when scale changes frame to frame.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1203
            },
            {
              "name": "Filter",
              "anchor": "DynamicResolutionTarget.Filter",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) Filter() DynamicResolutionFilter",
              "doc": "Filter returns the active upscale sampling mode.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1061
            },
            {
              "name": "NativeSize",
              "anchor": "DynamicResolutionTarget.NativeSize",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) NativeSize() (w, h int)",
              "doc": "NativeSize returns the native output dimensions from the most recent\n[Begin3D] call.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1165
            },
            {
              "name": "OutputFormat",
              "anchor": "DynamicResolutionTarget.OutputFormat",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) OutputFormat() gpu.TextureFormat",
              "doc": "OutputFormat returns the native color format targeted by [Upscale].\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1112
            },
            {
              "name": "RecordFrameTime",
              "anchor": "DynamicResolutionTarget.RecordFrameTime",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) RecordFrameTime(gpuFrameTime time.Duration) float32",
              "doc": "RecordFrameTime forwards gpuFrameTime to the target's scaler and returns the\nupdated linear resolution scale.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1040
            },
            {
              "name": "RecordPassTimings",
              "anchor": "DynamicResolutionTarget.RecordPassTimings",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) RecordPassTimings(timings []gpu.PassTiming, labels ...string) float32",
              "doc": "RecordPassTimings forwards GPU pass timings to the target's scaler. When no\nlabels are supplied and t was configured with a non-empty TimingLabel, that\nTimingLabel is matched automatically.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1050
            },
            {
              "name": "RenderTarget",
              "anchor": "DynamicResolutionTarget.RenderTarget",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) RenderTarget() *gpu.RenderTarget",
              "doc": "RenderTarget returns the underlying offscreen [*gpu.RenderTarget], or nil\nbefore the first [Begin3D] or [EnsureCapacity] call.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1121
            },
            {
              "name": "Scale",
              "anchor": "DynamicResolutionTarget.Scale",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) Scale() float32",
              "doc": "Scale returns the current linear resolution scale from the target's scaler.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1031
            },
            {
              "name": "ScaledSize",
              "anchor": "DynamicResolutionTarget.ScaledSize",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) ScaledSize() (w, h int)",
              "doc": "ScaledSize returns the active scaled 3D viewport dimensions from the most\nrecent [Begin3D] call.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1156
            },
            {
              "name": "Scaler",
              "anchor": "DynamicResolutionTarget.Scaler",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) Scaler() *DynamicResolutionScaler",
              "doc": "Scaler returns the [DynamicResolutionScaler] controlling t.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1023
            },
            {
              "name": "SetFilter",
              "anchor": "DynamicResolutionTarget.SetFilter",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) SetFilter(f DynamicResolutionFilter)",
              "doc": "SetFilter changes the upscale sampling mode without reallocating GPU resources.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1069
            },
            {
              "name": "SetSharpness",
              "anchor": "DynamicResolutionTarget.SetSharpness",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) SetSharpness(s float32)",
              "doc": "SetSharpness updates the sharpening strength in [0, 1] for\n[DynamicResolutionSharpen]. Non-finite inputs are ignored.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1087
            },
            {
              "name": "Sharpness",
              "anchor": "DynamicResolutionTarget.Sharpness",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) Sharpness() float32",
              "doc": "Sharpness returns the contrast-adaptive sharpening strength used when Filter\nis [DynamicResolutionSharpen].\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1078
            },
            {
              "name": "Upscale",
              "anchor": "DynamicResolutionTarget.Upscale",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) Upscale(rec RenderPassRecorder, dst *gpu.Texture, nativeW, nativeH int) error",
              "doc": "Upscale opens a native-resolution color render pass targeting dst (or the\nview's swapchain drawable when dst is nil), draws the full-screen upscale\npass from the active scaled 3D sub-viewport to (nativeW, nativeH), and ends\nthe pass.\n\nTo composite a native-resolution HUD on top without losing pixel sharpness:\n  - Mount [github.com/nsgo-dev/game/pkg/scene.Overlay3D] above the\n    [gpu.View], which draws 2D HUD layers in a native-resolution core.Canvas, OR\n  - Record a follow-up native GPU HUD render pass with gpu.LoadLoad on dst, OR\n  - Call [UpscaleIntoPass] inside a single native render pass and draw GPU HUD\n    elements directly afterward in the same pass.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1339
            },
            {
              "name": "UpscaleIntoPass",
              "anchor": "DynamicResolutionTarget.UpscaleIntoPass",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) UpscaleIntoPass(pass *gpu.RenderPass, nativeW, nativeH int) error",
              "doc": "UpscaleIntoPass records the full-screen upscale draw directly into an active\ncolor-only [*gpu.RenderPass] targeting a native (nativeW, nativeH) surface,\nsetting the viewport and scissor to the full native rectangle. This lets a\ncaller draw native-resolution GPU HUD elements in the same render pass right\nafter the upscaled 3D scene.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1364
            },
            {
              "name": "Valid",
              "anchor": "DynamicResolutionTarget.Valid",
              "recv": "*DynamicResolutionTarget",
              "decl": "func (t *DynamicResolutionTarget) Valid() bool",
              "doc": "Valid reports whether t has not been closed and its core GPU pipelines and\nbuffers are still live on its device.\n",
              "file": "pkg/render3d/dynres.go",
              "line": 1188
            }
          ]
        },
        {
          "name": "DynamicResolutionTargetOptions",
          "anchor": "DynamicResolutionTargetOptions",
          "decl": "type DynamicResolutionTargetOptions struct {\n\t// Label prefixes GPU resource labels for capture tools. Defaults to \"render3d.dynres\".\n\tLabel string\n\t// ColorFormat is the offscreen 3D color attachment format.\n\t// Defaults to gpu.FormatRGBA8Unorm when FormatUndefined.\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat is the offscreen 3D depth attachment format.\n\t// Defaults to gpu.FormatDepth24Plus when FormatUndefined unless DisableDepth is true.\n\tDepthFormat gpu.TextureFormat\n\t// DisableDepth creates a color-only offscreen target with no depth attachment.\n\tDisableDepth bool\n\t// OutputFormat is the color format of the native target passed to Upscale.\n\t// Defaults to dev.SurfaceFormat() (or gpu.FormatRGBA8Unorm when undefined).\n\tOutputFormat gpu.TextureFormat\n\t// TimingLabel optionally sets RenderPassDesc.TimingLabel on Begin3D passes so\n\t// GPU pass timings can be matched in RecordPassTimings.\n\tTimingLabel string\n\t// Config configures the internal scaler when Scaler is nil.\n\tConfig DynamicResolutionConfig\n\t// Scaler optionally supplies an external [DynamicResolutionScaler] to share\n\t// or control directly. When nil, a new scaler is constructed from Config.\n\tScaler *DynamicResolutionScaler\n}",
          "doc": "DynamicResolutionTargetOptions configures [NewDynamicResolutionTarget].\n",
          "file": "pkg/render3d/dynres.go",
          "line": 656,
          "members": [
            {
              "name": "Label",
              "anchor": "DynamicResolutionTargetOptions.Label",
              "kind": "field",
              "doc": "Label prefixes GPU resource labels for capture tools. Defaults to \"render3d.dynres\"."
            },
            {
              "name": "ColorFormat",
              "anchor": "DynamicResolutionTargetOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat is the offscreen 3D color attachment format.\nDefaults to gpu.FormatRGBA8Unorm when FormatUndefined."
            },
            {
              "name": "DepthFormat",
              "anchor": "DynamicResolutionTargetOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat is the offscreen 3D depth attachment format.\nDefaults to gpu.FormatDepth24Plus when FormatUndefined unless DisableDepth is true."
            },
            {
              "name": "DisableDepth",
              "anchor": "DynamicResolutionTargetOptions.DisableDepth",
              "kind": "field",
              "doc": "DisableDepth creates a color-only offscreen target with no depth attachment."
            },
            {
              "name": "OutputFormat",
              "anchor": "DynamicResolutionTargetOptions.OutputFormat",
              "kind": "field",
              "doc": "OutputFormat is the color format of the native target passed to Upscale.\nDefaults to dev.SurfaceFormat() (or gpu.FormatRGBA8Unorm when undefined)."
            },
            {
              "name": "TimingLabel",
              "anchor": "DynamicResolutionTargetOptions.TimingLabel",
              "kind": "field",
              "doc": "TimingLabel optionally sets RenderPassDesc.TimingLabel on Begin3D passes so\nGPU pass timings can be matched in RecordPassTimings."
            },
            {
              "name": "Config",
              "anchor": "DynamicResolutionTargetOptions.Config",
              "kind": "field",
              "doc": "Config configures the internal scaler when Scaler is nil."
            },
            {
              "name": "Scaler",
              "anchor": "DynamicResolutionTargetOptions.Scaler",
              "kind": "field",
              "doc": "Scaler optionally supplies an external [DynamicResolutionScaler] to share\nor control directly. When nil, a new scaler is constructed from Config."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ExtendedMaterialDefaults",
          "anchor": "ExtendedMaterialDefaults",
          "decl": "type ExtendedMaterialDefaults struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ExtendedMaterialDefaults owns the extended [MaterialGroup] bind group layout (19 entries) and the shared 1x1 fallback textures and default linear-repeat sampler used by [NewGPUExtendedMaterial], while keeping plain [MaterialDefaults] unchanged for ordinary [GPUMaterial] pipelines.\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 145,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewExtendedMaterialDefaults",
              "anchor": "NewExtendedMaterialDefaults",
              "decl": "func NewExtendedMaterialDefaults(cx *core.Scope, dev *gpu.Device, opts MaterialDefaultsOptions) (*ExtendedMaterialDefaults, error)",
              "doc": "NewExtendedMaterialDefaults allocates an [ExtendedMaterialDefaults] on dev owned by cx, sharing the 1x1 fallback textures (white sRGB, white linear, flat normal, black) and linear-repeat sampler of [MaterialDefaults] alongside [ExtendedMaterialBindGroupLayout].\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 151
            }
          ],
          "methods": [
            {
              "name": "Base",
              "anchor": "ExtendedMaterialDefaults.Base",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) Base() *MaterialDefaults",
              "doc": "Base returns the underlying lean [MaterialDefaults] for ordinary [GPUMaterial] and [GPUUnlitMaterial] instances.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 179
            },
            {
              "name": "Black",
              "anchor": "ExtendedMaterialDefaults.Black",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) Black() *GPUTexture",
              "doc": "Black returns the shared 1x1 sRGB black fallback texture.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 196
            },
            {
              "name": "ByteSize",
              "anchor": "ExtendedMaterialDefaults.ByteSize",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) ByteSize() uint64",
              "doc": "ByteSize returns the GPU texture memory held by the fallback textures.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 202
            },
            {
              "name": "Close",
              "anchor": "ExtendedMaterialDefaults.Close",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) Close() error",
              "doc": "Close releases the extended layout and underlying fallback resources. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 217
            },
            {
              "name": "FlatNormal",
              "anchor": "ExtendedMaterialDefaults.FlatNormal",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) FlatNormal() *GPUTexture",
              "doc": "FlatNormal returns the shared 1x1 linear flat tangent-space normal fallback texture.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 193
            },
            {
              "name": "Layout",
              "anchor": "ExtendedMaterialDefaults.Layout",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the extended [MaterialGroup] bind group layout for [NewExtendedMaterialPipeline].\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 171
            },
            {
              "name": "Sampler",
              "anchor": "ExtendedMaterialDefaults.Sampler",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) Sampler() *GPUSampler",
              "doc": "Sampler returns the shared default linear-repeat sampler.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 199
            },
            {
              "name": "Valid",
              "anchor": "ExtendedMaterialDefaults.Valid",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) Valid() bool",
              "doc": "Valid reports whether the extended layout and shared fallback textures/sampler are open on a live device.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 205
            },
            {
              "name": "WhiteLinear",
              "anchor": "ExtendedMaterialDefaults.WhiteLinear",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) WhiteLinear() *GPUTexture",
              "doc": "WhiteLinear returns the shared 1x1 linear white fallback texture.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 190
            },
            {
              "name": "WhiteSRGB",
              "anchor": "ExtendedMaterialDefaults.WhiteSRGB",
              "recv": "*ExtendedMaterialDefaults",
              "decl": "func (d *ExtendedMaterialDefaults) WhiteSRGB() *GPUTexture",
              "doc": "WhiteSRGB returns the shared 1x1 sRGB white fallback texture.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 187
            }
          ]
        },
        {
          "name": "ExtendedMaterialPipelineOptions",
          "anchor": "ExtendedMaterialPipelineOptions",
          "decl": "type ExtendedMaterialPipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools.\n\tLabel string\n\t// ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat().\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing (and depth writes for opaque/alpha-mask modes) when non-zero.\n\tDepthFormat gpu.TextureFormat\n\t// AlphaMode selects blending and depth-write state, matching [MaterialPipelineOptions].AlphaMode.\n\tAlphaMode AlphaMode\n\t// DoubleSided disables backface culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack]).\n\tDoubleSided bool\n\t// LightLayout, when set, binds a [GPULightBuffer] at [ExtendedLightGroup] (group 2) so extended materials are shaded by the scene's [LightRig] (ambient + directional + point + spot lights) with full clearcoat and transmission evaluation. When nil, the built-in [DefaultMaterialLight] is used.\n\tLightLayout *gpu.BindGroupLayout\n\t// TransmissionLayout, when set, binds [TransmissionBackground] at [TransmissionBackgroundGroup] (group 3 when LightLayout is set) or [MaterialTransmissionBackgroundGroup] (group 2 when LightLayout is nil) so transmissive surfaces sample the opaque scene color pass.\n\tTransmissionLayout *gpu.BindGroupLayout\n\t// LinearOutput skips tone mapping and sRGB encoding and writes unclamped linear radiance for an [HDRTarget] resolved by [ToneMapPass] (and optional [BloomPass] for HDR emissives).\n\tLinearOutput bool\n}",
          "doc": "ExtendedMaterialPipelineOptions configures [NewExtendedMaterialPipeline].\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 719,
          "members": [
            {
              "name": "Label",
              "anchor": "ExtendedMaterialPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools."
            },
            {
              "name": "ColorFormat",
              "anchor": "ExtendedMaterialPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat()."
            },
            {
              "name": "DepthFormat",
              "anchor": "ExtendedMaterialPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing (and depth writes for opaque/alpha-mask modes) when non-zero."
            },
            {
              "name": "AlphaMode",
              "anchor": "ExtendedMaterialPipelineOptions.AlphaMode",
              "kind": "field",
              "doc": "AlphaMode selects blending and depth-write state, matching [MaterialPipelineOptions].AlphaMode."
            },
            {
              "name": "DoubleSided",
              "anchor": "ExtendedMaterialPipelineOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables backface culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack])."
            },
            {
              "name": "LightLayout",
              "anchor": "ExtendedMaterialPipelineOptions.LightLayout",
              "kind": "field",
              "doc": "LightLayout, when set, binds a [GPULightBuffer] at [ExtendedLightGroup] (group 2) so extended materials are shaded by the scene's [LightRig] (ambient + directional + point + spot lights) with full clearcoat and transmission evaluation. When nil, the built-in [DefaultMaterialLight] is used."
            },
            {
              "name": "TransmissionLayout",
              "anchor": "ExtendedMaterialPipelineOptions.TransmissionLayout",
              "kind": "field",
              "doc": "TransmissionLayout, when set, binds [TransmissionBackground] at [TransmissionBackgroundGroup] (group 3 when LightLayout is set) or [MaterialTransmissionBackgroundGroup] (group 2 when LightLayout is nil) so transmissive surfaces sample the opaque scene color pass."
            },
            {
              "name": "LinearOutput",
              "anchor": "ExtendedMaterialPipelineOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput skips tone mapping and sRGB encoding and writes unclamped linear radiance for an [HDRTarget] resolved by [ToneMapPass] (and optional [BloomPass] for HDR emissives)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ExtendedMaterialUniforms",
          "anchor": "ExtendedMaterialUniforms",
          "decl": "type ExtendedMaterialUniforms struct {\n\tMaterialUniforms\n\tClearcoatFactor          float32\n\tClearcoatRoughnessFactor float32\n\tClearcoatNormalScale     float32\n\tTransmissionFactor       float32\n\tIOR                      float32\n\tHasClearcoatNormalMap    bool\n\tHasClearcoatMap          bool\n\tHasTransmissionMap       bool\n}",
          "doc": "ExtendedMaterialUniforms holds the 96-byte uniform payload encoded for struct ExtendedMaterialUniforms in [ExtendedMaterialBindingsWGSL].\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 45,
          "members": [
            {
              "name": "MaterialUniforms",
              "anchor": "ExtendedMaterialUniforms.MaterialUniforms",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatFactor",
              "anchor": "ExtendedMaterialUniforms.ClearcoatFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatRoughnessFactor",
              "anchor": "ExtendedMaterialUniforms.ClearcoatRoughnessFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatNormalScale",
              "anchor": "ExtendedMaterialUniforms.ClearcoatNormalScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TransmissionFactor",
              "anchor": "ExtendedMaterialUniforms.TransmissionFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IOR",
              "anchor": "ExtendedMaterialUniforms.IOR",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasClearcoatNormalMap",
              "anchor": "ExtendedMaterialUniforms.HasClearcoatNormalMap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasClearcoatMap",
              "anchor": "ExtendedMaterialUniforms.HasClearcoatMap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasTransmissionMap",
              "anchor": "ExtendedMaterialUniforms.HasTransmissionMap",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AppendUniformData",
              "anchor": "ExtendedMaterialUniforms.AppendUniformData",
              "recv": "ExtendedMaterialUniforms",
              "decl": "func (u ExtendedMaterialUniforms) AppendUniformData(dst []byte) []byte",
              "doc": "AppendUniformData appends u's 96-byte little-endian uniform block to dst and returns the extended slice. It allocates only when dst lacks capacity for [ExtendedMaterialUniformSize] additional bytes.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 73
            },
            {
              "name": "Encode",
              "anchor": "ExtendedMaterialUniforms.Encode",
              "recv": "*ExtendedMaterialUniforms",
              "decl": "func (u *ExtendedMaterialUniforms) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst[:ExtendedMaterialUniformSize] in the 16-byte-aligned little-endian layout declared by [ExtendedMaterialBindingsWGSL]. It panics if len(dst) < ExtendedMaterialUniformSize.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 81
            }
          ]
        },
        {
          "name": "FXAAOptions",
          "anchor": "FXAAOptions",
          "decl": "type FXAAOptions struct {\n\t// SubpixelQuality controls sub-pixel aliasing removal in [0, 1]. Zero uses the FXAA 3.11 default (0.75) unless DisableSubpixel is true. Negative or non-finite values clamp to 0; values above 1 clamp to 1.\n\tSubpixelQuality float32\n\t// DisableSubpixel forces SubpixelQuality to 0 (edge-only smoothing) even when SubpixelQuality is zero.\n\tDisableSubpixel bool\n\t// EdgeThreshold is the minimum relative local luma contrast required to process a pixel as an edge, in (0, 1]. Non-positive or non-finite values default to 0.166; values above 1 clamp to 1.\n\tEdgeThreshold float32\n\t// EdgeThresholdMin skips very dark regions whose local luma range falls below this absolute floor, in (0, 1]. Non-positive or non-finite values default to 0.0833; values above 1 clamp to 1.\n\tEdgeThresholdMin float32\n}",
          "doc": "FXAAOptions configures FXAA 3.11 edge detection and sub-pixel anti-aliasing. Zero values fall back to [DefaultFXAAOptions] (SubpixelQuality 0.75, EdgeThreshold 0.166, EdgeThresholdMin 0.0833).\n",
          "file": "pkg/render3d/aa.go",
          "line": 399,
          "members": [
            {
              "name": "SubpixelQuality",
              "anchor": "FXAAOptions.SubpixelQuality",
              "kind": "field",
              "doc": "SubpixelQuality controls sub-pixel aliasing removal in [0, 1]. Zero uses the FXAA 3.11 default (0.75) unless DisableSubpixel is true. Negative or non-finite values clamp to 0; values above 1 clamp to 1."
            },
            {
              "name": "DisableSubpixel",
              "anchor": "FXAAOptions.DisableSubpixel",
              "kind": "field",
              "doc": "DisableSubpixel forces SubpixelQuality to 0 (edge-only smoothing) even when SubpixelQuality is zero."
            },
            {
              "name": "EdgeThreshold",
              "anchor": "FXAAOptions.EdgeThreshold",
              "kind": "field",
              "doc": "EdgeThreshold is the minimum relative local luma contrast required to process a pixel as an edge, in (0, 1]. Non-positive or non-finite values default to 0.166; values above 1 clamp to 1."
            },
            {
              "name": "EdgeThresholdMin",
              "anchor": "FXAAOptions.EdgeThresholdMin",
              "kind": "field",
              "doc": "EdgeThresholdMin skips very dark regions whose local luma range falls below this absolute floor, in (0, 1]. Non-positive or non-finite values default to 0.0833; values above 1 clamp to 1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultFXAAOptions",
              "anchor": "DefaultFXAAOptions",
              "decl": "func DefaultFXAAOptions() FXAAOptions",
              "doc": "DefaultFXAAOptions returns the standard FXAA 3.11 quality defaults (SubpixelQuality: 0.75, EdgeThreshold: 0.166, EdgeThresholdMin: 0.0833).\n",
              "file": "pkg/render3d/aa.go",
              "line": 411
            }
          ],
          "methods": [
            {
              "name": "Sanitize",
              "anchor": "FXAAOptions.Sanitize",
              "recv": "FXAAOptions",
              "decl": "func (o FXAAOptions) Sanitize() FXAAOptions",
              "doc": "Sanitize returns a copy of o with zero, out-of-range, and non-finite fields resolved to valid FXAA 3.11 parameters.\n",
              "file": "pkg/render3d/aa.go",
              "line": 420
            }
          ]
        },
        {
          "name": "FXAAPass",
          "anchor": "FXAAPass",
          "decl": "type FXAAPass struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "FXAAPass owns the compiled pipeline, sampler, uniform buffer, and cached bind groups for full-screen FXAA 3.11 post-processing on a [gpu.Device] (#249).\n\nCreate it once in OnReady and call [FXAAPass.Draw] (inside an open single-sampled render pass) or [FXAAPass.Encode] (to open and close the render pass automatically) with any single-sampled color texture (such as an offscreen render target or [MSAATarget.OutputTexture]). The pass keeps one bind group per source texture, so it can filter several sources of different sizes in the same frame, and steady-state draws of sources it has seen do not allocate.\n\nFXAA's thresholds are tuned for gamma-encoded luma and [ApplyFXAA] works on stored bytes, so give the pass a non-sRGB source holding gamma-encoded (for example tone-mapped LDR) color and a target of the same kind: an sRGB source is sampled as linear values and no longer matches ApplyFXAA, and a gamma-encoded source drawn into an sRGB target is encoded twice.\n\nThe options are one uniform block, and buffer writes are applied before the submission's commands, so every draw one pass records into a submission uses the options set at its last draw. To filter several views with different options in one frame, create one FXAAPass per option set.\n",
          "file": "pkg/render3d/aa.go",
          "line": 649,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFXAAPass",
              "anchor": "NewFXAAPass",
              "decl": "func NewFXAAPass(cx *core.Scope, dev *gpu.Device, desc FXAAPassDesc) (*FXAAPass, error)",
              "doc": "NewFXAAPass compiles [FXAAWGSL] and creates the sampler, uniform buffer, bind group layout, and full-screen pipeline on dev, scoped to cx.\n",
              "file": "pkg/render3d/aa.go",
              "line": 675
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "FXAAPass.Close",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) Close() error",
              "doc": "Close releases the pass's GPU resources immediately instead of waiting for scope disposal. It is safe to call more than once or on a nil pass.\n",
              "file": "pkg/render3d/aa.go",
              "line": 955
            },
            {
              "name": "Draw",
              "anchor": "FXAAPass.Draw",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) Draw(pass *gpu.RenderPass, src *gpu.Texture) error",
              "doc": "Draw binds the FXAA pipeline and source texture on pass and issues a bufferless full-screen triangle draw (Draw(3, 0)). The caller owns the render pass, which must target a single-sampled attachment matching [FXAAPass.TargetFormat].\n",
              "file": "pkg/render3d/aa.go",
              "line": 916
            },
            {
              "name": "Encode",
              "anchor": "FXAAPass.Encode",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) Encode(enc *gpu.Encoder, src, dst *gpu.Texture) error",
              "doc": "Encode opens a single-attachment render pass on enc targeting dst (or the view's swapchain when dst == nil), draws FXAA from src, and ends the pass.\n",
              "file": "pkg/render3d/aa.go",
              "line": 931
            },
            {
              "name": "Layout",
              "anchor": "FXAAPass.Layout",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout at group 0 (uniform, texture, sampler).\n",
              "file": "pkg/render3d/aa.go",
              "line": 798
            },
            {
              "name": "Options",
              "anchor": "FXAAPass.Options",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) Options() FXAAOptions",
              "doc": "Options returns the current sanitized FXAA 3.11 options.\n",
              "file": "pkg/render3d/aa.go",
              "line": 782
            },
            {
              "name": "Pipeline",
              "anchor": "FXAAPass.Pipeline",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) Pipeline() *gpu.Pipeline",
              "doc": "Pipeline returns the underlying full-screen FXAA pipeline.\n",
              "file": "pkg/render3d/aa.go",
              "line": 790
            },
            {
              "name": "Retained",
              "anchor": "FXAAPass.Retained",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) Retained() bool",
              "doc": "Retained reports whether the pass was created with device-loss retention.\n",
              "file": "pkg/render3d/aa.go",
              "line": 822
            },
            {
              "name": "Sampler",
              "anchor": "FXAAPass.Sampler",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) Sampler() *gpu.Sampler",
              "doc": "Sampler returns the linear clamp-to-edge sampler used by the pass.\n",
              "file": "pkg/render3d/aa.go",
              "line": 806
            },
            {
              "name": "SetDevice",
              "anchor": "FXAAPass.SetDevice",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) SetDevice(dev *gpu.Device)",
              "doc": "SetDevice updates the device pointer after NSGo restores a lost device onto a fresh [*gpu.Device] for a retained pass.\n",
              "file": "pkg/render3d/aa.go",
              "line": 765
            },
            {
              "name": "SetOptions",
              "anchor": "FXAAPass.SetOptions",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) SetOptions(opts FXAAOptions)",
              "doc": "SetOptions updates the FXAA 3.11 parameters used by subsequent draws.\n",
              "file": "pkg/render3d/aa.go",
              "line": 774
            },
            {
              "name": "TargetFormat",
              "anchor": "FXAAPass.TargetFormat",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) TargetFormat() gpu.TextureFormat",
              "doc": "TargetFormat returns the color format the pipeline was built for.\n",
              "file": "pkg/render3d/aa.go",
              "line": 814
            },
            {
              "name": "Valid",
              "anchor": "FXAAPass.Valid",
              "recv": "*FXAAPass",
              "decl": "func (p *FXAAPass) Valid() bool",
              "doc": "Valid reports whether the pass's GPU resources are open and belong to a live device.\n",
              "file": "pkg/render3d/aa.go",
              "line": 830
            }
          ]
        },
        {
          "name": "FXAAPassDesc",
          "anchor": "FXAAPassDesc",
          "decl": "type FXAAPassDesc struct {\n\t// Label names the pass's GPU resources in capture tools.\n\tLabel string\n\t// TargetFormat is the color format of the render pass into which [FXAAPass] draws. FormatUndefined defaults to dev.SurfaceFormat() (or FormatRGBA8Unorm), which is an sRGB format on some platforms; see [FXAAPass] for the color space the pass expects.\n\tTargetFormat gpu.TextureFormat\n\t// Options configures FXAA 3.11 edge detection and sub-pixel blending. Zero uses [DefaultFXAAOptions].\n\tOptions FXAAOptions\n\t// Retained opts the pass's GPU resources into automatic recreation after a device loss.\n\tRetained bool\n}",
          "doc": "FXAAPassDesc configures [NewFXAAPass].\n",
          "file": "pkg/render3d/aa.go",
          "line": 631,
          "members": [
            {
              "name": "Label",
              "anchor": "FXAAPassDesc.Label",
              "kind": "field",
              "doc": "Label names the pass's GPU resources in capture tools."
            },
            {
              "name": "TargetFormat",
              "anchor": "FXAAPassDesc.TargetFormat",
              "kind": "field",
              "doc": "TargetFormat is the color format of the render pass into which [FXAAPass] draws. FormatUndefined defaults to dev.SurfaceFormat() (or FormatRGBA8Unorm), which is an sRGB format on some platforms; see [FXAAPass] for the color space the pass expects."
            },
            {
              "name": "Options",
              "anchor": "FXAAPassDesc.Options",
              "kind": "field",
              "doc": "Options configures FXAA 3.11 edge detection and sub-pixel blending. Zero uses [DefaultFXAAOptions]."
            },
            {
              "name": "Retained",
              "anchor": "FXAAPassDesc.Retained",
              "kind": "field",
              "doc": "Retained opts the pass's GPU resources into automatic recreation after a device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Fog",
          "anchor": "Fog",
          "decl": "type Fog struct {\n\tMode       FogMode\n\tColor      math3d.Vec3\n\tStart      float32\n\tEnd        float32\n\tDensity    float32\n\tMaxOpacity float32\n\n\tHeightEnabled bool\n\tHeightBase    float32\n\tHeightFalloff float32\n\tHeightDensity float32\n}",
          "doc": "Fog configures distance fog, analytical exponential height fog along the view ray, or both combined.\n\nColor is in linear RGB. MaxOpacity caps the combined fog blend factor in (0, 1]; a zero value defaults to 1.0 so struct literals that omit MaxOpacity apply full fog.\n\nWhen both distance fog and height fog are enabled, their transmittances multiply:\n\n\tfactor = clamp(1 - (1 - f_dist) * (1 - f_height), 0, MaxOpacity)\n\nHeight fog models exponential vertical extinction σ(y) = HeightDensity * exp(-HeightFalloff * (y - HeightBase)) analytically integrated along the segment from camPos to worldPos, so it is smooth at grazing angles and symmetric between endpoints.\n",
          "file": "pkg/render3d/fog.go",
          "line": 208,
          "members": [
            {
              "name": "Mode",
              "anchor": "Fog.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "Fog.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Start",
              "anchor": "Fog.Start",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "End",
              "anchor": "Fog.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Density",
              "anchor": "Fog.Density",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxOpacity",
              "anchor": "Fog.MaxOpacity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeightEnabled",
              "anchor": "Fog.HeightEnabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeightBase",
              "anchor": "Fog.HeightBase",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeightFalloff",
              "anchor": "Fog.HeightFalloff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeightDensity",
              "anchor": "Fog.HeightDensity",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Fog.Apply",
              "recv": "Fog",
              "decl": "func (f Fog) Apply(color, camPos, worldPos math3d.Vec3) math3d.Vec3",
              "doc": "Apply blends linear RGB color toward f.Color using [Fog.Factor](camPos, worldPos), matching apply_fog in [FogWGSL]. camPos follows the rule [Fog.Factor] states.\n",
              "file": "pkg/render3d/fog.go",
              "line": 304
            },
            {
              "name": "Factor",
              "anchor": "Fog.Factor",
              "recv": "Fog",
              "decl": "func (f Fog) Factor(camPos, worldPos math3d.Vec3) float32",
              "doc": "Factor evaluates the CPU reference fog blend factor in [0, MaxOpacity] along the view ray from camPos to worldPos, matching fog_factor in [FogWGSL]. Non-finite coordinates return 0.\n\ncamPos is where the ray starts: the eye for a perspective camera, and for an orthographic camera the point on the camera's plane that worldPos projects from, not the camera's position. [FogCameraPos] computes it from a [CameraUniform] the way the fogged pipelines do.\n",
              "file": "pkg/render3d/fog.go",
              "line": 299
            },
            {
              "name": "Sanitized",
              "anchor": "Fog.Sanitized",
              "recv": "Fog",
              "decl": "func (f Fog) Sanitized() Fog",
              "doc": "Sanitized returns a copy of f with non-finite values replaced by safe defaults, negative magnitudes clamped to 0, unrecognized modes mapped to [FogOff], MaxOpacity defaulted to 1.0 when <= 0 and clamped to 1.0 when > 1, and linear End raised to at least Start.\n",
              "file": "pkg/render3d/fog.go",
              "line": 258
            },
            {
              "name": "Uniforms",
              "anchor": "Fog.Uniforms",
              "recv": "Fog",
              "decl": "func (f Fog) Uniforms() FogUniforms",
              "doc": "Uniforms packs a sanitized copy of f into the GPU uniform layout declared by [FogWGSL].\n",
              "file": "pkg/render3d/fog.go",
              "line": 406
            },
            {
              "name": "Validate",
              "anchor": "Fog.Validate",
              "recv": "Fog",
              "decl": "func (f Fog) Validate() error",
              "doc": "Validate checks that every field of f is finite and in range: recognized [FogMode], non-negative linear RGB color, non-negative Start/End/Density/HeightFalloff/HeightDensity, MaxOpacity in [0, 1] (0 means default 1.0), and End > Start when Mode is [FogLinear]. Every error wraps [ErrInvalidFog].\n",
              "file": "pkg/render3d/fog.go",
              "line": 223
            }
          ]
        },
        {
          "name": "FogBufferOptions",
          "anchor": "FogBufferOptions",
          "decl": "type FogBufferOptions struct {\n\t// Label names the buffer and bind group in GPU capture tools.\n\tLabel string\n\t// Retained keeps a CPU shadow copy so NSGo recreates the buffer, layout, and bind group with their latest data after a device loss.\n\tRetained bool\n}",
          "doc": "FogBufferOptions configures [NewGPUFogBuffer].\n",
          "file": "pkg/render3d/fog.go",
          "line": 442,
          "members": [
            {
              "name": "Label",
              "anchor": "FogBufferOptions.Label",
              "kind": "field",
              "doc": "Label names the buffer and bind group in GPU capture tools."
            },
            {
              "name": "Retained",
              "anchor": "FogBufferOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps a CPU shadow copy so NSGo recreates the buffer, layout, and bind group with their latest data after a device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FogMode",
          "anchor": "FogMode",
          "decl": "type FogMode uint8",
          "doc": "FogMode selects how distance fog attenuates visibility with camera distance.\n",
          "file": "pkg/render3d/fog.go",
          "line": 170,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FogOff",
                  "anchor": "FogOff"
                },
                {
                  "name": "FogLinear",
                  "anchor": "FogLinear"
                },
                {
                  "name": "FogExp",
                  "anchor": "FogExp"
                },
                {
                  "name": "FogExp2",
                  "anchor": "FogExp2"
                }
              ],
              "decl": "const (\n\t// FogOff disables distance fog attenuation. Analytical height fog may still apply when [Fog.HeightEnabled] is true.\n\tFogOff FogMode = iota\n\t// FogLinear ramps distance fog linearly from 0 at [Fog.Start] to 1 at [Fog.End].\n\tFogLinear\n\t// FogExp applies exponential distance fog: 1 - exp(-distance * Density).\n\tFogExp\n\t// FogExp2 applies exponential-squared distance fog: 1 - exp(-(distance * Density)^2).\n\tFogExp2\n)",
              "doc": "",
              "file": "pkg/render3d/fog.go",
              "line": 172
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "FogMode.String",
              "recv": "FogMode",
              "decl": "func (m FogMode) String() string",
              "doc": "String returns the mode's lowercase name (\"off\", \"linear\", \"exp\", \"exp2\") or \"unknown\" for out-of-range values.\n",
              "file": "pkg/render3d/fog.go",
              "line": 184
            }
          ]
        },
        {
          "name": "FogUniforms",
          "anchor": "FogUniforms",
          "decl": "type FogUniforms struct {\n\t// ColorOpacity holds linear RGB fog color in [0..2] and clamped MaxOpacity in [3].\n\tColorOpacity [4]float32\n\t// DistanceParams holds mode (0=off, 1=linear, 2=exp, 3=exp2) in [0], Start in [1], End in [2], and Density in [3].\n\tDistanceParams [4]float32\n\t// HeightParams holds enabled (0 or 1) in [0], HeightBase in [1], HeightFalloff in [2], and HeightDensity in [3].\n\tHeightParams [4]float32\n}",
          "doc": "FogUniforms is the std140/WGSL-aligned uniform block declared by [FogWGSL] (three vec4<f32> vectors, [FogUniformSize] bytes).\n",
          "file": "pkg/render3d/fog.go",
          "line": 396,
          "members": [
            {
              "name": "ColorOpacity",
              "anchor": "FogUniforms.ColorOpacity",
              "kind": "field",
              "doc": "ColorOpacity holds linear RGB fog color in [0..2] and clamped MaxOpacity in [3]."
            },
            {
              "name": "DistanceParams",
              "anchor": "FogUniforms.DistanceParams",
              "kind": "field",
              "doc": "DistanceParams holds mode (0=off, 1=linear, 2=exp, 3=exp2) in [0], Start in [1], End in [2], and Density in [3]."
            },
            {
              "name": "HeightParams",
              "anchor": "FogUniforms.HeightParams",
              "kind": "field",
              "doc": "HeightParams holds enabled (0 or 1) in [0], HeightBase in [1], HeightFalloff in [2], and HeightDensity in [3]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Encode",
              "anchor": "FogUniforms.Encode",
              "recv": "FogUniforms",
              "decl": "func (u FogUniforms) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst[:FogUniformSize] as little-endian float32s and returns dst[:FogUniformSize]. It panics if len(dst) < FogUniformSize.\n",
              "file": "pkg/render3d/fog.go",
              "line": 431
            }
          ]
        },
        {
          "name": "FrameProfiler",
          "anchor": "FrameProfiler",
          "decl": "type FrameProfiler struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "FrameProfiler maintains a fixed-capacity ring buffer of recent [FrameSample]s\nfor 3D performance overlays and regression checks (#286).\n",
          "file": "pkg/render3d/debug.go",
          "line": 299,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFrameProfiler",
              "anchor": "NewFrameProfiler",
              "decl": "func NewFrameProfiler(capacity int) *FrameProfiler",
              "doc": "NewFrameProfiler creates a FrameProfiler retaining up to capacity recent\nframes (defaulting to 120 when capacity <= 0).\n",
              "file": "pkg/render3d/debug.go",
              "line": 308
            }
          ],
          "methods": [
            {
              "name": "AverageFrameTime",
              "anchor": "FrameProfiler.AverageFrameTime",
              "recv": "*FrameProfiler",
              "decl": "func (p *FrameProfiler) AverageFrameTime() time.Duration",
              "doc": "AverageFrameTime returns the arithmetic mean frame duration in the window.\n",
              "file": "pkg/render3d/debug.go",
              "line": 344
            },
            {
              "name": "Count",
              "anchor": "FrameProfiler.Count",
              "recv": "*FrameProfiler",
              "decl": "func (p *FrameProfiler) Count() int",
              "doc": "Count returns the number of recorded frames currently in the window.\n",
              "file": "pkg/render3d/debug.go",
              "line": 341
            },
            {
              "name": "FPS",
              "anchor": "FrameProfiler.FPS",
              "recv": "*FrameProfiler",
              "decl": "func (p *FrameProfiler) FPS() float64",
              "doc": "FPS returns the average frames per second across the window, or 0 if empty.\n",
              "file": "pkg/render3d/debug.go",
              "line": 373
            },
            {
              "name": "P95FrameTime",
              "anchor": "FrameProfiler.P95FrameTime",
              "recv": "*FrameProfiler",
              "decl": "func (p *FrameProfiler) P95FrameTime() time.Duration",
              "doc": "P95FrameTime returns the 95th-percentile frame duration in the window.\n",
              "file": "pkg/render3d/debug.go",
              "line": 356
            },
            {
              "name": "PeakDrawCalls",
              "anchor": "FrameProfiler.PeakDrawCalls",
              "recv": "*FrameProfiler",
              "decl": "func (p *FrameProfiler) PeakDrawCalls() int",
              "doc": "PeakDrawCalls returns the highest draw call count recorded in the window.\n",
              "file": "pkg/render3d/debug.go",
              "line": 382
            },
            {
              "name": "PeakTriangles",
              "anchor": "FrameProfiler.PeakTriangles",
              "recv": "*FrameProfiler",
              "decl": "func (p *FrameProfiler) PeakTriangles() uint64",
              "doc": "PeakTriangles returns the highest triangle count recorded in the window.\n",
              "file": "pkg/render3d/debug.go",
              "line": 393
            },
            {
              "name": "Record",
              "anchor": "FrameProfiler.Record",
              "recv": "*FrameProfiler",
              "decl": "func (p *FrameProfiler) Record(frameTime time.Duration, stats RenderStats)",
              "doc": "Record stores one frame's duration and [RenderStats] without allocating.\n",
              "file": "pkg/render3d/debug.go",
              "line": 319
            },
            {
              "name": "Reset",
              "anchor": "FrameProfiler.Reset",
              "recv": "*FrameProfiler",
              "decl": "func (p *FrameProfiler) Reset()",
              "doc": "Reset clears all recorded samples while retaining buffer capacity.\n",
              "file": "pkg/render3d/debug.go",
              "line": 335
            }
          ]
        },
        {
          "name": "FrameSample",
          "anchor": "FrameSample",
          "decl": "type FrameSample struct {\n\tFrameTime time.Duration\n\tDrawCalls int\n\tTriangles uint64\n}",
          "doc": "FrameSample records timing and render telemetry for a single frame (#286).\n",
          "file": "pkg/render3d/debug.go",
          "line": 291,
          "members": [
            {
              "name": "FrameTime",
              "anchor": "FrameSample.FrameTime",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DrawCalls",
              "anchor": "FrameSample.DrawCalls",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triangles",
              "anchor": "FrameSample.Triangles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GLTFMaterialInfo",
          "anchor": "GLTFMaterialInfo",
          "decl": "type GLTFMaterialInfo struct {\n\tName               string\n\tMaterial           Material\n\tGPU                *GPUMaterial\n\tExtendedGPU        *GPUExtendedMaterial\n\tUnlit              bool\n\tBaseColor          GLTFTextureSlot\n\tMetallicRoughness  GLTFTextureSlot\n\tNormal             GLTFTextureSlot\n\tOcclusion          GLTFTextureSlot\n\tEmissive           GLTFTextureSlot\n\tClearcoat          GLTFTextureSlot\n\tClearcoatRoughness GLTFTextureSlot\n\tClearcoatNormal    GLTFTextureSlot\n\tTransmission       GLTFTextureSlot\n}",
          "doc": "GLTFMaterialInfo holds the mapped CPU [Material], uploaded [GPUMaterial] (from [UploadGLTFMaterials]) or [GPUExtendedMaterial] (from [UploadGLTFExtendedMaterials]), and glTF-specific metadata (material name, KHR_materials_unlit flag, and per-slot UV/transform info) for one entry in [GLTFMaterialSet].\n",
          "file": "pkg/render3d/gltf_material.go",
          "line": 146,
          "members": [
            {
              "name": "Name",
              "anchor": "GLTFMaterialInfo.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Material",
              "anchor": "GLTFMaterialInfo.Material",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GPU",
              "anchor": "GLTFMaterialInfo.GPU",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ExtendedGPU",
              "anchor": "GLTFMaterialInfo.ExtendedGPU",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Unlit",
              "anchor": "GLTFMaterialInfo.Unlit",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColor",
              "anchor": "GLTFMaterialInfo.BaseColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicRoughness",
              "anchor": "GLTFMaterialInfo.MetallicRoughness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "GLTFMaterialInfo.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Occlusion",
              "anchor": "GLTFMaterialInfo.Occlusion",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Emissive",
              "anchor": "GLTFMaterialInfo.Emissive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clearcoat",
              "anchor": "GLTFMaterialInfo.Clearcoat",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatRoughness",
              "anchor": "GLTFMaterialInfo.ClearcoatRoughness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatNormal",
              "anchor": "GLTFMaterialInfo.ClearcoatNormal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transmission",
              "anchor": "GLTFMaterialInfo.Transmission",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Unsupported",
              "anchor": "GLTFMaterialInfo.Unsupported",
              "recv": "GLTFMaterialInfo",
              "decl": "func (i GLTFMaterialInfo) Unsupported() []string",
              "doc": "Unsupported lists what [MaterialWGSL] does not draw as the glTF material specifies: \"KHR_materials_unlit\" when the material is unlit (the shader always applies metallic-roughness lighting), and \"<slot> UVs\" for each texture slot whose [GLTFTextureSlot.NeedsUVBake] is true. It returns nil when the shader draws the material as written.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 176
            }
          ]
        },
        {
          "name": "GLTFMaterialSet",
          "anchor": "GLTFMaterialSet",
          "decl": "type GLTFMaterialSet struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GLTFMaterialSet owns every [GPUTexture], [GPUSampler], and [GPUMaterial] (or [GPUExtendedMaterial]) uploaded from a [*gltf.Document] by [UploadGLTFMaterials] or [UploadGLTFExtendedMaterials].\n\nReferenced glTF images are decoded once per image index and uploaded once per unique (imageIndex, sRGB) key: color slots (baseColorTexture, emissiveTexture) upload as sRGB ([gpu.FormatRGBA8UnormSRGB]) while data slots (metallicRoughnessTexture, normalTexture, occlusionTexture, clearcoatTexture, clearcoatRoughnessTexture, clearcoatNormalTexture, transmissionTexture) upload as linear ([gpu.FormatRGBA8Unorm]). Packed textures shared across linear slots (such as occlusion + metallic-roughness) or across multiple materials are uploaded only once. Samplers are deduplicated by glTF sampler index, and every texture without a sampler shares one sampler built from the glTF 2.0 default (repeat wrapping, automatic filtering).\n",
          "file": "pkg/render3d/gltf_material.go",
          "line": 211,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "UploadGLTFExtendedMaterials",
              "anchor": "UploadGLTFExtendedMaterials",
              "decl": "func UploadGLTFExtendedMaterials(cx *core.Scope, dev *gpu.Device, defaults *ExtendedMaterialDefaults, doc *gltf.Document, opts GLTFMaterialUpload) (*GLTFMaterialSet, error)",
              "doc": "UploadGLTFExtendedMaterials decodes and uploads all textures, samplers, and extended PBR materials (base metallic-roughness plus KHR_materials_emissive_strength, KHR_materials_clearcoat, KHR_materials_transmission, and KHR_materials_ior) referenced by doc onto dev, owned by cx.\n\nExtension maps (clearcoatTexture, clearcoatRoughnessTexture, clearcoatNormalTexture, transmissionTexture) are uploaded as linear ([gpu.FormatRGBA8Unorm]) and deduplicated with the base linear slots by (imageIndex, sRGB). Access the uploaded materials via [GLTFMaterialSet.ExtendedMaterial], [GLTFMaterialSet.ExtendedMaterialForPrimitive], [GLTFMaterialSet.ExtendedMaterialForVariant], and [GLTFMaterialSet.DefaultExtendedMaterial].\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 241
            },
            {
              "name": "UploadGLTFMaterials",
              "anchor": "UploadGLTFMaterials",
              "decl": "func UploadGLTFMaterials(cx *core.Scope, dev *gpu.Device, defaults *MaterialDefaults, doc *gltf.Document, opts GLTFMaterialUpload) (*GLTFMaterialSet, error)",
              "doc": "UploadGLTFMaterials decodes and uploads all textures, samplers, and PBR metallic-roughness materials referenced by doc onto dev, owned by cx.\n\nOmitted texture slots, and textures without an image source, fall back to defaults. A glTF 2.0 default material is always created and returned by [GLTFMaterialSet.DefaultMaterial] (and by [GLTFMaterialSet.Material](-1)) for primitives with Material == -1.\n\nIf any material, sampler, or image fails validation, decoding, or GPU upload, every GPU resource allocated during the call is closed before returning the error.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 228
            }
          ],
          "methods": [
            {
              "name": "ByteSize",
              "anchor": "GLTFMaterialSet.ByteSize",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) ByteSize() uint64",
              "doc": "ByteSize returns the total GPU memory held by all uploaded textures and material uniform buffers in s (excluding shared [MaterialDefaults] / [ExtendedMaterialDefaults]).\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 807
            },
            {
              "name": "Close",
              "anchor": "GLTFMaterialSet.Close",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) Close() error",
              "doc": "Close releases every [GPUMaterial], [GPUExtendedMaterial], [GPUSampler], and [GPUTexture] owned by s immediately instead of waiting for scope disposal. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 866
            },
            {
              "name": "DefaultExtendedMaterial",
              "anchor": "GLTFMaterialSet.DefaultExtendedMaterial",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) DefaultExtendedMaterial() *GPUExtendedMaterial",
              "doc": "DefaultExtendedMaterial returns the uploaded glTF 2.0 default [GPUExtendedMaterial] created by [UploadGLTFExtendedMaterials] for primitives with Material == -1, or nil for a nil receiver or a plain [UploadGLTFMaterials] set.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 683
            },
            {
              "name": "DefaultMaterial",
              "anchor": "GLTFMaterialSet.DefaultMaterial",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) DefaultMaterial() *GPUMaterial",
              "doc": "DefaultMaterial returns the uploaded glTF 2.0 default [GPUMaterial] used when a primitive has Material == -1, or nil for a nil receiver or a set created by [UploadGLTFExtendedMaterials].\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 675
            },
            {
              "name": "ExtendedMaterial",
              "anchor": "GLTFMaterialSet.ExtendedMaterial",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) ExtendedMaterial(index int) *GPUExtendedMaterial",
              "doc": "ExtendedMaterial returns the uploaded [*GPUExtendedMaterial] for glTF material index, or [GLTFMaterialSet.DefaultExtendedMaterial] when index == -1. Out-of-range indices, nil receivers, and plain [UploadGLTFMaterials] sets return nil.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 705
            },
            {
              "name": "ExtendedMaterialForPrimitive",
              "anchor": "GLTFMaterialSet.ExtendedMaterialForPrimitive",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) ExtendedMaterialForPrimitive(prim gltf.Primitive, variantIndex int) *GPUExtendedMaterial",
              "doc": "ExtendedMaterialForPrimitive resolves the active extended material for prim under the KHR_materials_variants variantIndex (falling back to prim.Material and then [GLTFMaterialSet.DefaultExtendedMaterial] when -1).\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 735
            },
            {
              "name": "ExtendedMaterialForVariant",
              "anchor": "GLTFMaterialSet.ExtendedMaterialForVariant",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) ExtendedMaterialForVariant(prim gltf.Primitive, variantName string) *GPUExtendedMaterial",
              "doc": "ExtendedMaterialForVariant resolves the active extended material for prim under the named KHR_materials_variants variant (falling back to prim.Material and then [GLTFMaterialSet.DefaultExtendedMaterial] when -1).\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 751
            },
            {
              "name": "Info",
              "anchor": "GLTFMaterialSet.Info",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) Info(index int) (GLTFMaterialInfo, bool)",
              "doc": "Info returns the full [GLTFMaterialInfo] for glTF material index.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 719
            },
            {
              "name": "InfoForPrimitive",
              "anchor": "GLTFMaterialSet.InfoForPrimitive",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) InfoForPrimitive(prim gltf.Primitive, variantIndex int) (GLTFMaterialInfo, bool)",
              "doc": "InfoForPrimitive returns the [GLTFMaterialInfo] for prim under variantIndex, returning false when the resolved material index is -1 (default material) or out of range.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 759
            },
            {
              "name": "InfoForVariant",
              "anchor": "GLTFMaterialSet.InfoForVariant",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) InfoForVariant(prim gltf.Primitive, variantName string) (GLTFMaterialInfo, bool)",
              "doc": "InfoForVariant returns the [GLTFMaterialInfo] for prim under variantName, returning false when the resolved material index is -1 (default material) or out of range.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 767
            },
            {
              "name": "Len",
              "anchor": "GLTFMaterialSet.Len",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) Len() int",
              "doc": "Len returns the number of glTF materials uploaded from the document (excluding the built-in glTF default material returned by [GLTFMaterialSet.DefaultMaterial]).\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 667
            },
            {
              "name": "Material",
              "anchor": "GLTFMaterialSet.Material",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) Material(index int) *GPUMaterial",
              "doc": "Material returns the uploaded [*GPUMaterial] for glTF material index, or [GLTFMaterialSet.DefaultMaterial] when index == -1 (the glTF sentinel for an unassigned material). Out-of-range indices and nil receivers return nil.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 691
            },
            {
              "name": "MaterialForPrimitive",
              "anchor": "GLTFMaterialSet.MaterialForPrimitive",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) MaterialForPrimitive(prim gltf.Primitive, variantIndex int) *GPUMaterial",
              "doc": "MaterialForPrimitive resolves the active material for prim under the KHR_materials_variants variantIndex (falling back to prim.Material and then [GLTFMaterialSet.DefaultMaterial] when -1).\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 727
            },
            {
              "name": "MaterialForVariant",
              "anchor": "GLTFMaterialSet.MaterialForVariant",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) MaterialForVariant(prim gltf.Primitive, variantName string) *GPUMaterial",
              "doc": "MaterialForVariant resolves the active material for prim under the named KHR_materials_variants variant (falling back to prim.Material and then [GLTFMaterialSet.DefaultMaterial] when -1).\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 743
            },
            {
              "name": "Sampler",
              "anchor": "GLTFMaterialSet.Sampler",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) Sampler(samplerIndex int) *GPUSampler",
              "doc": "Sampler returns the deduplicated [*GPUSampler] created for glTF samplerIndex, or nil if that sampler was not referenced by any uploaded material.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 783
            },
            {
              "name": "SamplerCount",
              "anchor": "GLTFMaterialSet.SamplerCount",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) SamplerCount() int",
              "doc": "SamplerCount returns the number of unique GPU samplers created for the document, counting the shared glTF default sampler when a texture without a sampler is referenced.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 799
            },
            {
              "name": "Texture",
              "anchor": "GLTFMaterialSet.Texture",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) Texture(imageIndex int, srgb bool) *GPUTexture",
              "doc": "Texture returns the deduplicated [*GPUTexture] uploaded for glTF imageIndex in the requested sRGB/linear color space, or nil if that pair was not uploaded.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 775
            },
            {
              "name": "TextureCount",
              "anchor": "GLTFMaterialSet.TextureCount",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) TextureCount() int",
              "doc": "TextureCount returns the number of unique GPU textures uploaded for the document.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 791
            },
            {
              "name": "Valid",
              "anchor": "GLTFMaterialSet.Valid",
              "recv": "*GLTFMaterialSet",
              "decl": "func (s *GLTFMaterialSet) Valid() bool",
              "doc": "Valid reports whether every material, texture, and sampler owned by s is currently open on a live GPU device.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 829
            }
          ]
        },
        {
          "name": "GLTFMaterialUpload",
          "anchor": "GLTFMaterialUpload",
          "decl": "type GLTFMaterialUpload struct {\n\t// Label prefixes debug labels on uploaded textures, samplers, and GPU materials.\n\tLabel string\n\t// Mipmaps forces CPU mipmap generation on every uploaded glTF texture when true (unless DisableMipmaps is also set). When false, mipmaps are generated for any texture sampled with a mipmapped or unspecified glTF minFilter.\n\tMipmaps bool\n\t// DisableMipmaps disables mipmap generation even when glTF samplers request mipmaps.\n\tDisableMipmaps bool\n\t// MaxMipLevels caps generated mipmap chains when mipmaps are enabled; 0 builds the full chain.\n\tMaxMipLevels uint32\n\t// MaxAnisotropy sets anisotropic filtering on all-linear glTF samplers, including the glTF default sampler used by textures that name none (0 or 1 disables it). Samplers that use nearest min, mag, or mipmap filtering keep MaxAnisotropy = 1 to satisfy WebGPU validation rules.\n\tMaxAnisotropy uint16\n\t// Retained keeps CPU shadow copies of every uploaded texture, sampler, and material uniform buffer so the returned [GLTFMaterialSet] recovers automatically after a GPU device loss. Pair with [MaterialDefaultsOptions.Retained] on defaults.\n\tRetained bool\n}",
          "doc": "GLTFMaterialUpload configures [UploadGLTFMaterials].\n",
          "file": "pkg/render3d/gltf_material.go",
          "line": 109,
          "members": [
            {
              "name": "Label",
              "anchor": "GLTFMaterialUpload.Label",
              "kind": "field",
              "doc": "Label prefixes debug labels on uploaded textures, samplers, and GPU materials."
            },
            {
              "name": "Mipmaps",
              "anchor": "GLTFMaterialUpload.Mipmaps",
              "kind": "field",
              "doc": "Mipmaps forces CPU mipmap generation on every uploaded glTF texture when true (unless DisableMipmaps is also set). When false, mipmaps are generated for any texture sampled with a mipmapped or unspecified glTF minFilter."
            },
            {
              "name": "DisableMipmaps",
              "anchor": "GLTFMaterialUpload.DisableMipmaps",
              "kind": "field",
              "doc": "DisableMipmaps disables mipmap generation even when glTF samplers request mipmaps."
            },
            {
              "name": "MaxMipLevels",
              "anchor": "GLTFMaterialUpload.MaxMipLevels",
              "kind": "field",
              "doc": "MaxMipLevels caps generated mipmap chains when mipmaps are enabled; 0 builds the full chain."
            },
            {
              "name": "MaxAnisotropy",
              "anchor": "GLTFMaterialUpload.MaxAnisotropy",
              "kind": "field",
              "doc": "MaxAnisotropy sets anisotropic filtering on all-linear glTF samplers, including the glTF default sampler used by textures that name none (0 or 1 disables it). Samplers that use nearest min, mag, or mipmap filtering keep MaxAnisotropy = 1 to satisfy WebGPU validation rules."
            },
            {
              "name": "Retained",
              "anchor": "GLTFMaterialUpload.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU shadow copies of every uploaded texture, sampler, and material uniform buffer so the returned [GLTFMaterialSet] recovers automatically after a GPU device loss. Pair with [MaterialDefaultsOptions.Retained] on defaults."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GLTFPBRLightmapInfo",
          "anchor": "GLTFPBRLightmapInfo",
          "decl": "type GLTFPBRLightmapInfo struct {\n\tHasLightmap  bool\n\tRef          *gltf.LightmapRef\n\tEncoding     LightmapEncoding\n\tTextureIndex int\n\tImageIndex   int\n\tSamplerIndex int\n\tTexture      *GPUTexture\n\tSampler      *GPUSampler\n\tConfig       PBRLightmap\n\tGPU          *GPUPBRLightmap\n}",
          "doc": "GLTFPBRLightmapInfo holds the extracted glTF [gltf.LightmapRef], decoded [LightmapEncoding], uploaded GPU texture/sampler, and bound [GPUPBRLightmap] for one material entry in [GLTFPBRLightmapSet].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 1037,
          "members": [
            {
              "name": "HasLightmap",
              "anchor": "GLTFPBRLightmapInfo.HasLightmap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ref",
              "anchor": "GLTFPBRLightmapInfo.Ref",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Encoding",
              "anchor": "GLTFPBRLightmapInfo.Encoding",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextureIndex",
              "anchor": "GLTFPBRLightmapInfo.TextureIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageIndex",
              "anchor": "GLTFPBRLightmapInfo.ImageIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SamplerIndex",
              "anchor": "GLTFPBRLightmapInfo.SamplerIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Texture",
              "anchor": "GLTFPBRLightmapInfo.Texture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sampler",
              "anchor": "GLTFPBRLightmapInfo.Sampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Config",
              "anchor": "GLTFPBRLightmapInfo.Config",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GPU",
              "anchor": "GLTFPBRLightmapInfo.GPU",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GLTFPBRLightmapSet",
          "anchor": "GLTFPBRLightmapSet",
          "decl": "type GLTFPBRLightmapSet struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GLTFPBRLightmapSet owns every lightmap [GPUTexture], [GPUSampler], and [GPUPBRLightmap] uploaded from a [*gltf.Document] by [UploadGLTFPBRLightmaps]. Pair it with [GLTFMaterialSet] from [UploadGLTFMaterials] to draw glTF assets with both their metallic-roughness maps and their baked lightmaps in one [NewPBRLightmapPipeline].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 1051,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "UploadGLTFPBRLightmaps",
              "anchor": "UploadGLTFPBRLightmaps",
              "decl": "func UploadGLTFPBRLightmaps(cx *core.Scope, dev *gpu.Device, doc *gltf.Document, opts GLTFPBRLightmapUpload) (*GLTFPBRLightmapSet, error)",
              "doc": "UploadGLTFPBRLightmaps inspects every material in doc via [gltf.Document.MaterialLightmap] (MOZ_lightmap, EXT_lightmap, extras.lightmap), deduplicates and uploads referenced lightmap images and samplers onto dev, and builds one [GPUPBRLightmap] per material (plus a default unlightmapped binding for primitives with Material == -1) sharing a single [PBRLightmapGroup] layout.\n\nIf any material, lightmap extension, sampler, or image fails validation, decoding, or GPU upload, every GPU resource allocated during the call is closed before returning the error.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1068
            }
          ],
          "methods": [
            {
              "name": "ByteSize",
              "anchor": "GLTFPBRLightmapSet.ByteSize",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) ByteSize() uint64",
              "doc": "ByteSize returns the total GPU memory held by all uploaded lightmap textures, fallback texture, and uniform buffers in s.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1460
            },
            {
              "name": "Close",
              "anchor": "GLTFPBRLightmapSet.Close",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) Close() error",
              "doc": "Close releases every GPU resource owned by s immediately instead of waiting for scope disposal. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1504
            },
            {
              "name": "DefaultLightmap",
              "anchor": "GLTFPBRLightmapSet.DefaultLightmap",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) DefaultLightmap() *GPUPBRLightmap",
              "doc": "DefaultLightmap returns the fallback unlightmapped [*GPUPBRLightmap] used for primitives with Material == -1.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1372
            },
            {
              "name": "Info",
              "anchor": "GLTFPBRLightmapSet.Info",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) Info(index int) (GLTFPBRLightmapInfo, bool)",
              "doc": "Info returns the full [GLTFPBRLightmapInfo] for glTF material index.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1394
            },
            {
              "name": "Layout",
              "anchor": "GLTFPBRLightmapSet.Layout",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the shared [PBRLightmapGroup] bind group layout to pass to [NewPBRLightmapPipeline].\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1356
            },
            {
              "name": "Len",
              "anchor": "GLTFPBRLightmapSet.Len",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) Len() int",
              "doc": "Len returns the number of document materials tracked by s (excluding [GLTFPBRLightmapSet.DefaultLightmap]).\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1364
            },
            {
              "name": "Lightmap",
              "anchor": "GLTFPBRLightmapSet.Lightmap",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) Lightmap(index int) *GPUPBRLightmap",
              "doc": "Lightmap returns the [*GPUPBRLightmap] for glTF material index, or [GLTFPBRLightmapSet.DefaultLightmap] when index == -1. Out-of-range indices and nil receivers return nil.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1380
            },
            {
              "name": "LightmapForPrimitive",
              "anchor": "GLTFPBRLightmapSet.LightmapForPrimitive",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) LightmapForPrimitive(prim gltf.Primitive, variantIndex int) *GPUPBRLightmap",
              "doc": "LightmapForPrimitive resolves the active [*GPUPBRLightmap] for prim under the KHR_materials_variants variantIndex.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1402
            },
            {
              "name": "LightmapForVariant",
              "anchor": "GLTFPBRLightmapSet.LightmapForVariant",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) LightmapForVariant(prim gltf.Primitive, variantName string) *GPUPBRLightmap",
              "doc": "LightmapForVariant resolves the active [*GPUPBRLightmap] for prim under the named KHR_materials_variants variant.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1410
            },
            {
              "name": "NewInstance",
              "anchor": "GLTFPBRLightmapSet.NewInstance",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) NewInstance(cx *core.Scope, dev *gpu.Device, materialIndex int, model math3d.Mat4, opts PBRLightmapOptions) (*GPUPBRLightmap, error)",
              "doc": "NewInstance creates an independent [*GPUPBRLightmap] for materialIndex with its own Model matrix while reusing s's shared bind group layout, lightmap texture, and sampler. Useful when multiple scene nodes share one glTF material at different world transforms.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1418
            },
            {
              "name": "SamplerCount",
              "anchor": "GLTFPBRLightmapSet.SamplerCount",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) SamplerCount() int",
              "doc": "SamplerCount returns the number of deduplicated glTF lightmap samplers uploaded from the document (excluding the internal clamp default sampler).\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1452
            },
            {
              "name": "TextureCount",
              "anchor": "GLTFPBRLightmapSet.TextureCount",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) TextureCount() int",
              "doc": "TextureCount returns the number of unique baked lightmap textures uploaded from the document (excluding the internal 1x1 fallback).\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1444
            },
            {
              "name": "Valid",
              "anchor": "GLTFPBRLightmapSet.Valid",
              "recv": "*GLTFPBRLightmapSet",
              "decl": "func (s *GLTFPBRLightmapSet) Valid() bool",
              "doc": "Valid reports whether every layout, texture, sampler, and lightmap binding owned by s is open on a live device.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 1481
            }
          ]
        },
        {
          "name": "GLTFPBRLightmapUpload",
          "anchor": "GLTFPBRLightmapUpload",
          "decl": "type GLTFPBRLightmapUpload struct {\n\t// Label prefixes debug labels on uploaded lightmap textures, samplers, buffers, and bind groups.\n\tLabel string\n\t// SharedLayout reuses an existing [PBRLightmapGroup] bind group layout instead of creating one.\n\tSharedLayout *gpu.BindGroupLayout\n\t// DefaultEncoding selects the [LightmapEncoding] used when a glTF material's lightmap metadata omits an explicit encoding string (defaults to [LightmapLinear]).\n\tDefaultEncoding LightmapEncoding\n\t// DisableMipmaps disables mipmap generation on linear and sRGB lightmaps even when glTF samplers request mipmaps. Packed HDR formats ([LightmapRGBM], [LightmapRGBD]) never generate CPU box mipmaps because linear averaging corrupts shared-exponent channels.\n\tDisableMipmaps bool\n\t// MaxMipLevels caps generated mipmap chains when mipmaps are enabled; 0 builds the full chain.\n\tMaxMipLevels uint32\n\t// Retained keeps CPU shadow copies of every uploaded lightmap texture, sampler, and uniform buffer so the returned [GLTFPBRLightmapSet] recovers automatically after a GPU device loss.\n\tRetained bool\n}",
          "doc": "GLTFPBRLightmapUpload configures [UploadGLTFPBRLightmaps].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 1021,
          "members": [
            {
              "name": "Label",
              "anchor": "GLTFPBRLightmapUpload.Label",
              "kind": "field",
              "doc": "Label prefixes debug labels on uploaded lightmap textures, samplers, buffers, and bind groups."
            },
            {
              "name": "SharedLayout",
              "anchor": "GLTFPBRLightmapUpload.SharedLayout",
              "kind": "field",
              "doc": "SharedLayout reuses an existing [PBRLightmapGroup] bind group layout instead of creating one."
            },
            {
              "name": "DefaultEncoding",
              "anchor": "GLTFPBRLightmapUpload.DefaultEncoding",
              "kind": "field",
              "doc": "DefaultEncoding selects the [LightmapEncoding] used when a glTF material's lightmap metadata omits an explicit encoding string (defaults to [LightmapLinear])."
            },
            {
              "name": "DisableMipmaps",
              "anchor": "GLTFPBRLightmapUpload.DisableMipmaps",
              "kind": "field",
              "doc": "DisableMipmaps disables mipmap generation on linear and sRGB lightmaps even when glTF samplers request mipmaps. Packed HDR formats ([LightmapRGBM], [LightmapRGBD]) never generate CPU box mipmaps because linear averaging corrupts shared-exponent channels."
            },
            {
              "name": "MaxMipLevels",
              "anchor": "GLTFPBRLightmapUpload.MaxMipLevels",
              "kind": "field",
              "doc": "MaxMipLevels caps generated mipmap chains when mipmaps are enabled; 0 builds the full chain."
            },
            {
              "name": "Retained",
              "anchor": "GLTFPBRLightmapUpload.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU shadow copies of every uploaded lightmap texture, sampler, and uniform buffer so the returned [GLTFPBRLightmapSet] recovers automatically after a GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GLTFTextureSlot",
          "anchor": "GLTFTextureSlot",
          "decl": "type GLTFTextureSlot struct {\n\tPresent      bool\n\tTextureIndex int\n\tImageIndex   int\n\tSamplerIndex int\n\tTexCoord     int\n\tTransform    *gltf.TextureTransform\n\tSRGB         bool\n\tTexture      *GPUTexture\n\tSampler      *GPUSampler\n}",
          "doc": "GLTFTextureSlot records the mapped GPU handles and glTF UV metadata for one texture slot on an uploaded glTF material.\n",
          "file": "pkg/render3d/gltf_material.go",
          "line": 125,
          "members": [
            {
              "name": "Present",
              "anchor": "GLTFTextureSlot.Present",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextureIndex",
              "anchor": "GLTFTextureSlot.TextureIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageIndex",
              "anchor": "GLTFTextureSlot.ImageIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SamplerIndex",
              "anchor": "GLTFTextureSlot.SamplerIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TexCoord",
              "anchor": "GLTFTextureSlot.TexCoord",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transform",
              "anchor": "GLTFTextureSlot.Transform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SRGB",
              "anchor": "GLTFTextureSlot.SRGB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Texture",
              "anchor": "GLTFTextureSlot.Texture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sampler",
              "anchor": "GLTFTextureSlot.Sampler",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveTexCoord",
              "anchor": "GLTFTextureSlot.EffectiveTexCoord",
              "recv": "GLTFTextureSlot",
              "decl": "func (s GLTFTextureSlot) EffectiveTexCoord() int",
              "doc": "EffectiveTexCoord returns Transform.TexCoord when KHR_texture_transform overrides the UV channel, otherwise TexCoord.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 138
            },
            {
              "name": "NeedsUVBake",
              "anchor": "GLTFTextureSlot.NeedsUVBake",
              "recv": "GLTFTextureSlot",
              "decl": "func (s GLTFTextureSlot) NeedsUVBake() bool",
              "doc": "NeedsUVBake reports whether [MaterialWGSL] samples this slot differently from the asset. The shader reads every texture with the mesh's first UV set (TEXCOORD_0) and no transform, so a present slot whose [GLTFTextureSlot.EffectiveTexCoord] is not 0 or whose KHR_texture_transform is not the identity draws with the wrong UVs unless the mesh's UVs are baked for it (for example with [gltf.Document.TransformTexCoords]) or a custom shader applies them.\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 164
            }
          ]
        },
        {
          "name": "GPUColoredMesh",
          "anchor": "GPUColoredMesh",
          "decl": "type GPUColoredMesh struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUColoredMesh is a [ColoredMesh] uploaded to a GPU device's vertex and optional index buffers using [ColoredVertexLayout]. Its buffers belong to the scope passed to [UploadColoredMesh] and are released when that scope is disposed or when [GPUColoredMesh.Close] is called.\n",
          "file": "pkg/render3d/unlit.go",
          "line": 213,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "UploadColoredMesh",
              "anchor": "UploadColoredMesh",
              "decl": "func UploadColoredMesh(cx *core.Scope, dev *gpu.Device, m ColoredMesh, opts MeshUpload) (*GPUColoredMesh, error)",
              "doc": "UploadColoredMesh validates m and creates its vertex buffer and, when m is indexed, its index buffer on dev, scoped to cx. A malformed mesh returns an error wrapping [ErrInvalidMesh] before anything is created; a nil or lost device returns [gpu.ErrDeviceLost].\n",
              "file": "pkg/render3d/unlit.go",
              "line": 224
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUColoredMesh.Bind",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) Bind(pass *gpu.RenderPass)",
              "doc": "Bind binds the vertex buffer to slot 0 and, when indexed, the index buffer to pass. It records nothing when the mesh is not [GPUColoredMesh.Valid].\n",
              "file": "pkg/render3d/unlit.go",
              "line": 351
            },
            {
              "name": "Bounds",
              "anchor": "GPUColoredMesh.Bounds",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) Bounds() math3d.AABB",
              "doc": "Bounds returns the object-space box around the mesh's positions, computed at upload.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 318
            },
            {
              "name": "ByteSize",
              "anchor": "GPUColoredMesh.ByteSize",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by the mesh's buffers for [RenderStats] and [Budget] accounting. It is zero for a nil mesh.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 331
            },
            {
              "name": "Close",
              "anchor": "GPUColoredMesh.Close",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) Close() error",
              "doc": "Close releases the mesh's buffers now rather than when their scope is disposed. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 375
            },
            {
              "name": "Draw",
              "anchor": "GPUColoredMesh.Draw",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) Draw(pass *gpu.RenderPass)",
              "doc": "Draw binds the mesh to pass and draws all of its triangles once. It records nothing when the mesh is not [GPUColoredMesh.Valid].\n",
              "file": "pkg/render3d/unlit.go",
              "line": 362
            },
            {
              "name": "HasVertexColors",
              "anchor": "GPUColoredMesh.HasVertexColors",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) HasVertexColors() bool",
              "doc": "HasVertexColors reports whether the uploaded [ColoredMesh] provided explicit vertex colors (as opposed to default white).\n",
              "file": "pkg/render3d/unlit.go",
              "line": 326
            },
            {
              "name": "IndexBuffer",
              "anchor": "GPUColoredMesh.IndexBuffer",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) IndexBuffer() *gpu.Buffer",
              "doc": "IndexBuffer returns the index buffer, or nil for a nil or non-indexed mesh.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 272
            },
            {
              "name": "IndexCount",
              "anchor": "GPUColoredMesh.IndexCount",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) IndexCount() uint32",
              "doc": "IndexCount returns the number of indices, or zero for a non-indexed mesh.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 299
            },
            {
              "name": "IndexFormat",
              "anchor": "GPUColoredMesh.IndexFormat",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns the width of the index buffer's entries.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 280
            },
            {
              "name": "Indexed",
              "anchor": "GPUColoredMesh.Indexed",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) Indexed() bool",
              "doc": "Indexed reports whether the mesh draws through an index buffer.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 288
            },
            {
              "name": "Triangles",
              "anchor": "GPUColoredMesh.Triangles",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) Triangles() uint32",
              "doc": "Triangles returns the number of triangles one draw of the mesh rasterizes.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 307
            },
            {
              "name": "Valid",
              "anchor": "GPUColoredMesh.Valid",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) Valid() bool",
              "doc": "Valid reports whether the mesh's buffers are open and belong to a live device.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 343
            },
            {
              "name": "VertexBuffer",
              "anchor": "GPUColoredMesh.VertexBuffer",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) VertexBuffer() *gpu.Buffer",
              "doc": "VertexBuffer returns the interleaved vertex buffer laid out as [ColoredVertexLayout] describes, or nil for a nil receiver.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 264
            },
            {
              "name": "VertexCount",
              "anchor": "GPUColoredMesh.VertexCount",
              "recv": "*GPUColoredMesh",
              "decl": "func (g *GPUColoredMesh) VertexCount() uint32",
              "doc": "VertexCount returns the number of vertices in the vertex buffer.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 291
            }
          ]
        },
        {
          "name": "GPUCubemap",
          "anchor": "GPUCubemap",
          "decl": "type GPUCubemap struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUCubemap is a 6-face cubemap texture and its trilinear clamp-to-edge sampler uploaded to an NSGo [gpu.Device]. Its resources belong to the [core.Scope] passed to [UploadCubemap] and are released when that scope is disposed or when [GPUCubemap.Close] is called.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 482,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "UploadCubemap",
              "anchor": "UploadCubemap",
              "decl": "func UploadCubemap(cx *core.Scope, dev *gpu.Device, cm *Cubemap, opts CubemapUpload) (*GPUCubemap, error)",
              "doc": "UploadCubemap validates cm and uploads all six faces and their mip chain to dev, scoped to cx. A malformed cubemap returns an error wrapping [ErrInvalidCubemap] before creating any GPU resources.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 491
            },
            {
              "name": "UploadCubemapHDR",
              "anchor": "UploadCubemapHDR",
              "decl": "func UploadCubemapHDR(cx *core.Scope, dev *gpu.Device, cm *HDRCubemap, opts CubemapUpload) (*GPUCubemap, error)",
              "doc": "UploadCubemapHDR validates cm and uploads all six faces and their mip chain to dev as a linear floating-point [GPUCubemap], scoped to cx.\n\nWhen opts.Format is [gpu.FormatUndefined], [gpu.FormatRGBA16Float] is used whenever dev supports it (preserving HDR radiance up to 65504.0 per channel), falling back to [gpu.FormatRGBA8Unorm] only on devices that lack half-float texture support. Explicit opts.Format may select [gpu.FormatRGBA16Float], [gpu.FormatRGBA32Float] (when supported by dev), or [gpu.FormatRGBA8Unorm]. When opts.GenerateMips is true and cm has no precomputed Mips, a linear-light 2x2 box-filtered mip chain is built on the CPU before uploading.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 1139
            }
          ],
          "methods": [
            {
              "name": "ByteSize",
              "anchor": "GPUCubemap.ByteSize",
              "recv": "*GPUCubemap",
              "decl": "func (g *GPUCubemap) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory occupied by all six faces and all mip levels.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 632
            },
            {
              "name": "Close",
              "anchor": "GPUCubemap.Close",
              "recv": "*GPUCubemap",
              "decl": "func (g *GPUCubemap) Close() error",
              "doc": "Close releases the sampler and texture immediately. Safe to call more than once.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 650
            },
            {
              "name": "Format",
              "anchor": "GPUCubemap.Format",
              "recv": "*GPUCubemap",
              "decl": "func (g *GPUCubemap) Format() gpu.TextureFormat",
              "doc": "Format returns the GPU texture format.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 624
            },
            {
              "name": "MaxLOD",
              "anchor": "GPUCubemap.MaxLOD",
              "recv": "*GPUCubemap",
              "decl": "func (g *GPUCubemap) MaxLOD() float32",
              "doc": "MaxLOD returns float32(MipLevels - 1), the maximum valid LOD index for textureSampleLevel.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 616
            },
            {
              "name": "MipLevels",
              "anchor": "GPUCubemap.MipLevels",
              "recv": "*GPUCubemap",
              "decl": "func (g *GPUCubemap) MipLevels() uint32",
              "doc": "MipLevels returns the number of uploaded mip levels.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 608
            },
            {
              "name": "Sampler",
              "anchor": "GPUCubemap.Sampler",
              "recv": "*GPUCubemap",
              "decl": "func (g *GPUCubemap) Sampler() *gpu.Sampler",
              "doc": "Sampler returns the trilinear clamp-to-edge sampler created for the cubemap.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 592
            },
            {
              "name": "Size",
              "anchor": "GPUCubemap.Size",
              "recv": "*GPUCubemap",
              "decl": "func (g *GPUCubemap) Size() uint32",
              "doc": "Size returns the base mip edge length in texels.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 600
            },
            {
              "name": "Texture",
              "anchor": "GPUCubemap.Texture",
              "recv": "*GPUCubemap",
              "decl": "func (g *GPUCubemap) Texture() *gpu.Texture",
              "doc": "Texture returns the underlying [gpu.DimCube] texture.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 584
            },
            {
              "name": "Valid",
              "anchor": "GPUCubemap.Valid",
              "recv": "*GPUCubemap",
              "decl": "func (g *GPUCubemap) Valid() bool",
              "doc": "Valid reports whether both the texture and sampler are open and belong to a live device.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 645
            }
          ]
        },
        {
          "name": "GPUDirectionalLight",
          "anchor": "GPUDirectionalLight",
          "decl": "type GPUDirectionalLight struct {\n\t// ToLight holds the unit vector pointing from the surface toward the light (-normalize(Direction)) in xyz.\n\tToLight math3d.Vec4\n\t// Color holds premultiplied linear radiance (Color * Intensity) in rgb and Intensity in w.\n\tColor math3d.Vec4\n}",
          "doc": "GPUDirectionalLight is the 32-byte GPU uniform representation of one [DirectionalLight].\n",
          "file": "pkg/render3d/light.go",
          "line": 506,
          "members": [
            {
              "name": "ToLight",
              "anchor": "GPUDirectionalLight.ToLight",
              "kind": "field",
              "doc": "ToLight holds the unit vector pointing from the surface toward the light (-normalize(Direction)) in xyz."
            },
            {
              "name": "Color",
              "anchor": "GPUDirectionalLight.Color",
              "kind": "field",
              "doc": "Color holds premultiplied linear radiance (Color * Intensity) in rgb and Intensity in w."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GPUExtendedMaterial",
          "anchor": "GPUExtendedMaterial",
          "decl": "type GPUExtendedMaterial struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUExtendedMaterial is a scope-owned extended PBR material bound at [MaterialGroup] (group 1) supporting base metallic-roughness maps plus KHR_materials_emissive_strength (folded into EmissiveFactor), KHR_materials_clearcoat (factor, roughness, normal map), and KHR_materials_transmission (factor, map, IOR).\n\nLike [GPUMaterial], GPUExtendedMaterial does not cache a [*gpu.Device] pointer so retained materials remain updatable via [GPUExtendedMaterial.Update] after a device loss and restore. The opaque scene background texture for transmission is NOT baked into GPUExtendedMaterial; bind [TransmissionBackground] once per frame/pass instead.\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 234,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUExtendedMaterial",
              "anchor": "NewGPUExtendedMaterial",
              "decl": "func NewGPUExtendedMaterial(cx *core.Scope, dev *gpu.Device, defaults *ExtendedMaterialDefaults, m Material, opts MaterialUpload) (*GPUExtendedMaterial, error)",
              "doc": "NewGPUExtendedMaterial validates m and creates its 96-byte uniform buffer and extended [MaterialGroup] bind group on dev, owned by cx. Omitted textures and samplers fall back to defaults.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 242
            }
          ],
          "methods": [
            {
              "name": "AlphaMode",
              "anchor": "GPUExtendedMaterial.AlphaMode",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) AlphaMode() AlphaMode",
              "doc": "AlphaMode returns g's current [AlphaMode].\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 387
            },
            {
              "name": "Bind",
              "anchor": "GPUExtendedMaterial.Bind",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) Bind(pass *gpu.RenderPass)",
              "doc": "Bind sets g's bind group at [MaterialGroup] (group 1) on pass.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 355
            },
            {
              "name": "BindGroup",
              "anchor": "GPUExtendedMaterial.BindGroup",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the underlying [gpu.BindGroup], or nil for a nil receiver.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 363
            },
            {
              "name": "ByteSize",
              "anchor": "GPUExtendedMaterial.ByteSize",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) ByteSize() uint64",
              "doc": "ByteSize returns the GPU buffer memory owned by g's uniform buffer.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 410
            },
            {
              "name": "Close",
              "anchor": "GPUExtendedMaterial.Close",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) Close() error",
              "doc": "Close releases g's bind group and uniform buffer. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 423
            },
            {
              "name": "DoubleSided",
              "anchor": "GPUExtendedMaterial.DoubleSided",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) DoubleSided() bool",
              "doc": "DoubleSided reports whether g renders both front and back faces.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 395
            },
            {
              "name": "HasClearcoat",
              "anchor": "GPUExtendedMaterial.HasClearcoat",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) HasClearcoat() bool",
              "doc": "HasClearcoat reports whether g has a non-zero clearcoat factor.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 400
            },
            {
              "name": "HasTransmission",
              "anchor": "GPUExtendedMaterial.HasTransmission",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) HasTransmission() bool",
              "doc": "HasTransmission reports whether g has a non-zero transmission factor.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 405
            },
            {
              "name": "Material",
              "anchor": "GPUExtendedMaterial.Material",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) Material() Material",
              "doc": "Material returns the latest [Material] parameters uploaded to g.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 379
            },
            {
              "name": "UniformBuffer",
              "anchor": "GPUExtendedMaterial.UniformBuffer",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) UniformBuffer() *gpu.Buffer",
              "doc": "UniformBuffer returns the underlying uniform [*gpu.Buffer], or nil for a nil receiver.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 371
            },
            {
              "name": "Update",
              "anchor": "GPUExtendedMaterial.Update",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) Update(dev *gpu.Device, m Material) error",
              "doc": "Update validates m and writes its updated 96-byte uniform parameters into g's uniform buffer in place without rebuilding the bind group.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 335
            },
            {
              "name": "Valid",
              "anchor": "GPUExtendedMaterial.Valid",
              "recv": "*GPUExtendedMaterial",
              "decl": "func (g *GPUExtendedMaterial) Valid() bool",
              "doc": "Valid reports whether g's uniform buffer and bind group are open on a live device.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 418
            }
          ]
        },
        {
          "name": "GPUFogBuffer",
          "anchor": "GPUFogBuffer",
          "decl": "type GPUFogBuffer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUFogBuffer holds a [Fog] uniform buffer, its bind group layout, and its bind group on an NSGo [gpu.Device], scoped to the [core.Scope] passed to [NewGPUFogBuffer].\n\nBind it at [FogGroup] for [NewLitPBRFogPipeline] and [FogBindingWGSL] ([GPUFogBuffer.Bind]), at [MaterialFogGroup] for a fogged [NewMaterialPipeline], or at any group a custom shader that embeds [FogWGSL] chooses.\n",
          "file": "pkg/render3d/fog.go",
          "line": 452,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUFogBuffer",
              "anchor": "NewGPUFogBuffer",
              "decl": "func NewGPUFogBuffer(cx *core.Scope, dev *gpu.Device, fog Fog, opts FogBufferOptions) (*GPUFogBuffer, error)",
              "doc": "NewGPUFogBuffer validates fog and creates its uniform buffer, bind group layout, and bind group on dev, owned by cx (nil for resources closed manually). An invalid fog returns an error wrapping [ErrInvalidFog] before creating any GPU resource.\n",
              "file": "pkg/render3d/fog.go",
              "line": 461
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUFogBuffer.Bind",
              "recv": "*GPUFogBuffer",
              "decl": "func (b *GPUFogBuffer) Bind(pass *gpu.RenderPass)",
              "doc": "Bind sets b's bind group at [FogGroup] on pass. It records nothing when b is not [GPUFogBuffer.Valid].\n",
              "file": "pkg/render3d/fog.go",
              "line": 551
            },
            {
              "name": "BindGroup",
              "anchor": "GPUFogBuffer.BindGroup",
              "recv": "*GPUFogBuffer",
              "decl": "func (b *GPUFogBuffer) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group to pass to [gpu.RenderPass.SetBindGroup].\n",
              "file": "pkg/render3d/fog.go",
              "line": 543
            },
            {
              "name": "Buffer",
              "anchor": "GPUFogBuffer.Buffer",
              "recv": "*GPUFogBuffer",
              "decl": "func (b *GPUFogBuffer) Buffer() *gpu.Buffer",
              "doc": "Buffer returns the underlying uniform buffer, or nil when b is nil.\n",
              "file": "pkg/render3d/fog.go",
              "line": 527
            },
            {
              "name": "ByteSize",
              "anchor": "GPUFogBuffer.ByteSize",
              "recv": "*GPUFogBuffer",
              "decl": "func (b *GPUFogBuffer) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by the fog uniform buffer (for [RenderStats] and [Budget] accounting), or zero for a nil buffer.\n",
              "file": "pkg/render3d/fog.go",
              "line": 559
            },
            {
              "name": "Close",
              "anchor": "GPUFogBuffer.Close",
              "recv": "*GPUFogBuffer",
              "decl": "func (b *GPUFogBuffer) Close() error",
              "doc": "Close releases the bind group, layout, and buffer now instead of waiting for their owning scope. It is safe to call on nil or more than once.\n",
              "file": "pkg/render3d/fog.go",
              "line": 572
            },
            {
              "name": "Layout",
              "anchor": "GPUFogBuffer.Layout",
              "recv": "*GPUFogBuffer",
              "decl": "func (b *GPUFogBuffer) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout for pipelines that bind b.\n",
              "file": "pkg/render3d/fog.go",
              "line": 535
            },
            {
              "name": "Update",
              "anchor": "GPUFogBuffer.Update",
              "recv": "*GPUFogBuffer",
              "decl": "func (b *GPUFogBuffer) Update(dev *gpu.Device, fog Fog) error",
              "doc": "Update validates fog and writes its packed uniforms to the GPU buffer without allocating into scratch storage. Pass the active [gpu.Device] (for example frame.Device()) so a retained buffer continues accepting updates after a device loss and restore; passing nil reuses the last device.\n",
              "file": "pkg/render3d/fog.go",
              "line": 508
            },
            {
              "name": "Valid",
              "anchor": "GPUFogBuffer.Valid",
              "recv": "*GPUFogBuffer",
              "decl": "func (b *GPUFogBuffer) Valid() bool",
              "doc": "Valid reports whether the buffer, layout, and bind group are open on a live device.\n",
              "file": "pkg/render3d/fog.go",
              "line": 567
            }
          ]
        },
        {
          "name": "GPUIBLBuffer",
          "anchor": "GPUIBLBuffer",
          "decl": "type GPUIBLBuffer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUIBLBuffer holds the uniform buffer, bind group layout, and bind group that expose diffuse L2 spherical harmonic irradiance and a prefiltered specular cubemap to shaders that prepend [IBLWGSL] (or [IBLWGSLForGroup]).\n\nCreate it once when the device is ready, call [GPUIBLBuffer.Update] when the environment or intensity changes, and bind it at [IBLGroup] for [NewLitPBRIBLPipeline] ([GPUIBLBuffer.Bind]) or at the group a custom shader chose with [IBLWGSLForGroup]. Its resources belong to the scope passed to [NewGPUIBLBuffer] and are released with it, or earlier by Close.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1285,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUIBLBuffer",
              "anchor": "NewGPUIBLBuffer",
              "decl": "func NewGPUIBLBuffer(cx *core.Scope, dev *gpu.Device, prefilter *GPUCubemap, initial IBLUniform, opts IBLBufferOptions) (*GPUIBLBuffer, error)",
              "doc": "NewGPUIBLBuffer validates initial and creates the IBL uniform buffer, bind group layout, and bind group on dev, owned by cx (nil for resources closed manually), binding the uniform at binding 0, prefilter's cubemap at binding 1, and its sampler at binding 2. An invalid uniform returns an error wrapping [ErrInvalidIBL], and a nil or closed prefilter one wrapping [ErrInvalidCubemap], before any GPU resource is created.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1294
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUIBLBuffer.Bind",
              "recv": "*GPUIBLBuffer",
              "decl": "func (b *GPUIBLBuffer) Bind(pass *gpu.RenderPass)",
              "doc": "Bind sets b's bind group at [IBLGroup] on pass. It records nothing when b is not [GPUIBLBuffer.Valid].\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1394
            },
            {
              "name": "BindGroup",
              "anchor": "GPUIBLBuffer.BindGroup",
              "recv": "*GPUIBLBuffer",
              "decl": "func (b *GPUIBLBuffer) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group a render pass sets at [IBLGroup] (or the group chosen with [IBLWGSLForGroup]).\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1386
            },
            {
              "name": "Buffer",
              "anchor": "GPUIBLBuffer.Buffer",
              "recv": "*GPUIBLBuffer",
              "decl": "func (b *GPUIBLBuffer) Buffer() *gpu.Buffer",
              "doc": "Buffer returns the underlying uniform buffer, or nil when b is nil.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1370
            },
            {
              "name": "ByteSize",
              "anchor": "GPUIBLBuffer.ByteSize",
              "recv": "*GPUIBLBuffer",
              "decl": "func (b *GPUIBLBuffer) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by the IBL uniform buffer (for [RenderStats] and [Budget] accounting), or zero for a nil buffer. The prefiltered cubemap is counted by its own [GPUCubemap.ByteSize].\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1402
            },
            {
              "name": "Close",
              "anchor": "GPUIBLBuffer.Close",
              "recv": "*GPUIBLBuffer",
              "decl": "func (b *GPUIBLBuffer) Close() error",
              "doc": "Close releases the bind group, layout, and uniform buffer now instead of waiting for their owning scope. It is safe to call on nil or more than once.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1415
            },
            {
              "name": "Layout",
              "anchor": "GPUIBLBuffer.Layout",
              "recv": "*GPUIBLBuffer",
              "decl": "func (b *GPUIBLBuffer) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout a pipeline lists at [IBLGroup] (or the group chosen with [IBLWGSLForGroup]).\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1378
            },
            {
              "name": "Update",
              "anchor": "GPUIBLBuffer.Update",
              "recv": "*GPUIBLBuffer",
              "decl": "func (b *GPUIBLBuffer) Update(dev *gpu.Device, u IBLUniform) error",
              "doc": "Update validates u and writes it to the uniform buffer; the only copy made is the one gpu.Device.WriteBuffer takes of the bytes it queues. Pass the active [gpu.Device] (for example frame.Device()) so a retained buffer keeps accepting updates after a device loss and restore; passing nil reuses the last device.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1352
            },
            {
              "name": "Valid",
              "anchor": "GPUIBLBuffer.Valid",
              "recv": "*GPUIBLBuffer",
              "decl": "func (b *GPUIBLBuffer) Valid() bool",
              "doc": "Valid reports whether the uniform buffer, layout, and bind group are open and belong to a live device.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1410
            }
          ]
        },
        {
          "name": "GPULightBuffer",
          "anchor": "GPULightBuffer",
          "decl": "type GPULightBuffer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPULightBuffer holds a scene's [LightRig] uniform buffer on a GPU device together with the bind group\nlayout and bind group that expose it to shaders at [LightGroup].\n\nCreate it once when the device is ready, call [GPULightBuffer.Update] whenever the scene lights change,\nand bind [GPULightBuffer.BindGroup] at [LightGroup] (or call [GPULightBuffer.Bind]). Pipelines list\n[GPULightBuffer.Layout] at [LightGroup] in their PipelineDesc.Layouts. Its resources belong to the\nscope passed to [NewLightBuffer] and are released with it, or earlier by Close.\n",
          "file": "pkg/render3d/light.go",
          "line": 661,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLightBuffer",
              "anchor": "NewLightBuffer",
              "decl": "func NewLightBuffer(cx *core.Scope, dev *gpu.Device, initial LightRig, opts LightBufferOptions) (*GPULightBuffer, error)",
              "doc": "NewLightBuffer validates initial and creates a light uniform buffer, bind group layout, and bind group\non dev, scoped to cx (nil for resources closed manually). A malformed rig returns an error wrapping\n[ErrInvalidLight] before any GPU resource is created.\n",
              "file": "pkg/render3d/light.go",
              "line": 672
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPULightBuffer.Bind",
              "recv": "*GPULightBuffer",
              "decl": "func (b *GPULightBuffer) Bind(pass *gpu.RenderPass)",
              "doc": "Bind sets the light bind group at [LightGroup] on pass when b is valid.\n",
              "file": "pkg/render3d/light.go",
              "line": 780
            },
            {
              "name": "BindGroup",
              "anchor": "GPULightBuffer.BindGroup",
              "recv": "*GPULightBuffer",
              "decl": "func (b *GPULightBuffer) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group a render pass sets at [LightGroup].\n",
              "file": "pkg/render3d/light.go",
              "line": 772
            },
            {
              "name": "Buffer",
              "anchor": "GPULightBuffer.Buffer",
              "recv": "*GPULightBuffer",
              "decl": "func (b *GPULightBuffer) Buffer() *gpu.Buffer",
              "doc": "Buffer returns the underlying uniform buffer.\n",
              "file": "pkg/render3d/light.go",
              "line": 756
            },
            {
              "name": "ByteSize",
              "anchor": "GPULightBuffer.ByteSize",
              "recv": "*GPULightBuffer",
              "decl": "func (b *GPULightBuffer) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by the light uniform buffer, or zero for a nil buffer.\n",
              "file": "pkg/render3d/light.go",
              "line": 788
            },
            {
              "name": "Close",
              "anchor": "GPULightBuffer.Close",
              "recv": "*GPULightBuffer",
              "decl": "func (b *GPULightBuffer) Close() error",
              "doc": "Close releases the bind group, layout, and uniform buffer now rather than with the owning scope.\nIt is nil-safe and safe to call more than once.\n",
              "file": "pkg/render3d/light.go",
              "line": 797
            },
            {
              "name": "Layout",
              "anchor": "GPULightBuffer.Layout",
              "recv": "*GPULightBuffer",
              "decl": "func (b *GPULightBuffer) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout a pipeline lists at [LightGroup].\n",
              "file": "pkg/render3d/light.go",
              "line": 764
            },
            {
              "name": "Update",
              "anchor": "GPULightBuffer.Update",
              "recv": "*GPULightBuffer",
              "decl": "func (b *GPULightBuffer) Update(dev *gpu.Device, rig LightRig) error",
              "doc": "Update validates rig and uploads it into the uniform buffer without allocating into Go heap memory\nbeyond the copy gpu.Device.WriteBuffer queues. Pass the current *gpu.Device (such as frame.Device())\nso updates continue working after a retained device-loss recovery, or pass nil to reuse the device\nfrom creation or the previous Update.\n",
              "file": "pkg/render3d/light.go",
              "line": 729
            },
            {
              "name": "Valid",
              "anchor": "GPULightBuffer.Valid",
              "recv": "*GPULightBuffer",
              "decl": "func (b *GPULightBuffer) Valid() bool",
              "doc": "Valid reports whether the buffer, bind group layout, and bind group are all open and live.\n",
              "file": "pkg/render3d/light.go",
              "line": 751
            }
          ]
        },
        {
          "name": "GPULightmapMesh",
          "anchor": "GPULightmapMesh",
          "decl": "type GPULightmapMesh struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPULightmapMesh is a [LightmapMesh] uploaded to GPU vertex and optional index buffers using [LightmapVertexLayout].\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 347,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "UploadLightmapMesh",
              "anchor": "UploadLightmapMesh",
              "decl": "func UploadLightmapMesh(cx *core.Scope, dev *gpu.Device, m LightmapMesh, opts MeshUpload) (*GPULightmapMesh, error)",
              "doc": "UploadLightmapMesh validates m and uploads its 40-byte interleaved vertex buffer (position, normal, UV0, UV1) and optional index buffer onto dev, scoped to cx. When m.UV1 is empty, UV0 is copied into the UV1 attribute slot and [GPULightmapMesh.UsedUV0Fallback] reports true.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 358
            },
            {
              "name": "UploadLightmapVertices",
              "anchor": "UploadLightmapVertices",
              "decl": "func UploadLightmapVertices(cx *core.Scope, dev *gpu.Device, vertices []LightmapVertex, indices []uint32, opts MeshUpload) (*GPULightmapMesh, error)",
              "doc": "UploadLightmapVertices uploads interleaved [LightmapVertex] data and optional triangle indices as a [GPULightmapMesh].\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 398
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPULightmapMesh.Bind",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) Bind(pass *gpu.RenderPass)",
              "doc": "Bind binds g's vertex buffer to slot 0 and optional index buffer to pass.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 490
            },
            {
              "name": "Bounds",
              "anchor": "GPULightmapMesh.Bounds",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) Bounds() math3d.AABB",
              "doc": "Bounds returns the object-space bounding box of g.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 457
            },
            {
              "name": "ByteSize",
              "anchor": "GPULightmapMesh.ByteSize",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) ByteSize() uint64",
              "doc": "ByteSize returns the GPU buffer bytes held by g.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 470
            },
            {
              "name": "Close",
              "anchor": "GPULightmapMesh.Close",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) Close() error",
              "doc": "Close releases g's GPU buffers. It is safe to call more than once.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 514
            },
            {
              "name": "Draw",
              "anchor": "GPULightmapMesh.Draw",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) Draw(pass *gpu.RenderPass)",
              "doc": "Draw binds g to pass and draws all of its triangles once.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 501
            },
            {
              "name": "IndexBuffer",
              "anchor": "GPULightmapMesh.IndexBuffer",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) IndexBuffer() *gpu.Buffer",
              "doc": "IndexBuffer returns the index buffer, or nil for a non-indexed mesh.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 411
            },
            {
              "name": "IndexCount",
              "anchor": "GPULightmapMesh.IndexCount",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) IndexCount() uint32",
              "doc": "IndexCount returns the number of uploaded indices, or zero when non-indexed.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 438
            },
            {
              "name": "IndexFormat",
              "anchor": "GPULightmapMesh.IndexFormat",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns the index element width.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 419
            },
            {
              "name": "Indexed",
              "anchor": "GPULightmapMesh.Indexed",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) Indexed() bool",
              "doc": "Indexed reports whether g draws through an index buffer.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 427
            },
            {
              "name": "Triangles",
              "anchor": "GPULightmapMesh.Triangles",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) Triangles() uint32",
              "doc": "Triangles returns the triangle count rasterized by one draw of g.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 446
            },
            {
              "name": "UsedUV0Fallback",
              "anchor": "GPULightmapMesh.UsedUV0Fallback",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) UsedUV0Fallback() bool",
              "doc": "UsedUV0Fallback reports whether g was uploaded without dedicated UV1 coordinates and therefore reused UV0 in the lightmap UV slot.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 465
            },
            {
              "name": "Valid",
              "anchor": "GPULightmapMesh.Valid",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) Valid() bool",
              "doc": "Valid reports whether g's buffers are open and belong to a live device.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 482
            },
            {
              "name": "VertexBuffer",
              "anchor": "GPULightmapMesh.VertexBuffer",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) VertexBuffer() *gpu.Buffer",
              "doc": "VertexBuffer returns the interleaved 40-byte vertex buffer.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 403
            },
            {
              "name": "VertexCount",
              "anchor": "GPULightmapMesh.VertexCount",
              "recv": "*GPULightmapMesh",
              "decl": "func (g *GPULightmapMesh) VertexCount() uint32",
              "doc": "VertexCount returns the number of uploaded vertices.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 430
            }
          ]
        },
        {
          "name": "GPUMaterial",
          "anchor": "GPUMaterial",
          "decl": "type GPUMaterial struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUMaterial is a scope-owned metallic-roughness material bound to [MaterialGroup]: one uniform buffer storing [MaterialUniforms] plus one [gpu.BindGroup] wiring the uniform buffer and all five texture/sampler slots (using [MaterialDefaults] for omitted maps).\n\nLike [GPUTexture], GPUMaterial does not cache a [*gpu.Device] pointer so retained materials remain updatable through [GPUMaterial.Update] after a device loss and restore.\n",
          "file": "pkg/render3d/material.go",
          "line": 594,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUMaterial",
              "anchor": "NewGPUMaterial",
              "decl": "func NewGPUMaterial(cx *core.Scope, dev *gpu.Device, defaults *MaterialDefaults, m Material, opts MaterialUpload) (*GPUMaterial, error)",
              "doc": "NewGPUMaterial validates m and creates its uniform buffer and [MaterialGroup] bind group on dev, owned by cx. Omitted textures and samplers fall back to defaults. Invalid parameters or handles return an error wrapping [ErrInvalidMaterial] before any GPU object is created.\n",
              "file": "pkg/render3d/material.go",
              "line": 602
            }
          ],
          "methods": [
            {
              "name": "AlphaMode",
              "anchor": "GPUMaterial.AlphaMode",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) AlphaMode() AlphaMode",
              "doc": "AlphaMode returns g's current [AlphaMode].\n",
              "file": "pkg/render3d/material.go",
              "line": 742
            },
            {
              "name": "Bind",
              "anchor": "GPUMaterial.Bind",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) Bind(pass *gpu.RenderPass)",
              "doc": "Bind sets g's bind group at [MaterialGroup] (group 1) on pass. It records nothing when g is not [GPUMaterial.Valid], matching [GPUMesh.Bind].\n",
              "file": "pkg/render3d/material.go",
              "line": 710
            },
            {
              "name": "BindGroup",
              "anchor": "GPUMaterial.BindGroup",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the underlying [gpu.BindGroup], or nil for a nil receiver.\n",
              "file": "pkg/render3d/material.go",
              "line": 718
            },
            {
              "name": "ByteSize",
              "anchor": "GPUMaterial.ByteSize",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) ByteSize() uint64",
              "doc": "ByteSize returns the GPU buffer memory owned by g's uniform buffer (for [RenderStats] and [Budget] accounting). Bound textures are accounted for separately through [GPUTexture.ByteSize].\n",
              "file": "pkg/render3d/material.go",
              "line": 755
            },
            {
              "name": "Close",
              "anchor": "GPUMaterial.Close",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) Close() error",
              "doc": "Close releases g's bind group and uniform buffer now instead of waiting for scope disposal. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/material.go",
              "line": 768
            },
            {
              "name": "DoubleSided",
              "anchor": "GPUMaterial.DoubleSided",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) DoubleSided() bool",
              "doc": "DoubleSided reports whether g renders both front and back faces.\n",
              "file": "pkg/render3d/material.go",
              "line": 750
            },
            {
              "name": "Material",
              "anchor": "GPUMaterial.Material",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) Material() Material",
              "doc": "Material returns the latest [Material] parameters uploaded to g, or the zero value for a nil receiver.\n",
              "file": "pkg/render3d/material.go",
              "line": 734
            },
            {
              "name": "UniformBuffer",
              "anchor": "GPUMaterial.UniformBuffer",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) UniformBuffer() *gpu.Buffer",
              "doc": "UniformBuffer returns the underlying uniform [*gpu.Buffer], or nil for a nil receiver.\n",
              "file": "pkg/render3d/material.go",
              "line": 726
            },
            {
              "name": "Update",
              "anchor": "GPUMaterial.Update",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) Update(dev *gpu.Device, m Material) error",
              "doc": "Update validates m and writes its updated uniform parameters into g's uniform buffer without reallocating the bind group.\n\nTexture and sampler pointers must match those g was created with (to rebind textures or samplers, create a new [GPUMaterial]). Pass the active [*gpu.Device] so retained materials continue updating cleanly after a device loss and restore.\n",
              "file": "pkg/render3d/material.go",
              "line": 677
            },
            {
              "name": "Valid",
              "anchor": "GPUMaterial.Valid",
              "recv": "*GPUMaterial",
              "decl": "func (g *GPUMaterial) Valid() bool",
              "doc": "Valid reports whether g's uniform buffer and bind group are open on a live device.\n",
              "file": "pkg/render3d/material.go",
              "line": 763
            }
          ]
        },
        {
          "name": "GPUMesh",
          "anchor": "GPUMesh",
          "decl": "type GPUMesh struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUMesh is a [Mesh] uploaded to a GPU view's vertex and, when indexed, index buffers. Its buffers belong to the scope passed to [UploadMesh] and are released when that scope is disposed or when [GPUMesh.Close] is called. Use it from the engine goroutine, like the [gpu.Device] it came from.\n",
          "file": "pkg/render3d/mesh.go",
          "line": 200,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "UploadMesh",
              "anchor": "UploadMesh",
              "decl": "func UploadMesh(cx *core.Scope, dev *gpu.Device, m Mesh, opts MeshUpload) (*GPUMesh, error)",
              "doc": "UploadMesh validates m and creates its vertex buffer and, when m is indexed, its index buffer on dev, scoped to cx. A malformed mesh returns an error wrapping [ErrInvalidMesh] before anything is created; a device error (such as [gpu.ErrDeviceLost] or a buffer size over [gpu.Limits].MaxBufferSize) is returned as the [gpu.Error] NSGo reports, with no buffer left behind.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 210
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUMesh.Bind",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) Bind(pass *gpu.RenderPass)",
              "doc": "Bind binds the vertex buffer to slot 0 and, for an indexed mesh, the index buffer to pass, so a caller can issue its own draw (for example an instanced one) after setting a pipeline built with [MeshVertexLayout]. It binds nothing when the mesh is not [GPUMesh.Valid] (nil, closed, its scope disposed, or not retained across a device loss), so check Valid before issuing a draw of your own.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 305
            },
            {
              "name": "Bounds",
              "anchor": "GPUMesh.Bounds",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) Bounds() math3d.AABB",
              "doc": "Bounds returns the object-space box around the mesh's positions, as [Mesh.Bounds] computed it at upload.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 282
            },
            {
              "name": "ByteSize",
              "anchor": "GPUMesh.ByteSize",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory the mesh's buffers hold, for [RenderStats] and [Budget] accounting. It is zero for a nil mesh.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 285
            },
            {
              "name": "Close",
              "anchor": "GPUMesh.Close",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) Close() error",
              "doc": "Close releases the mesh's buffers now instead of when their scope is disposed. It is safe to call more than once.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 329
            },
            {
              "name": "Draw",
              "anchor": "GPUMesh.Draw",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) Draw(pass *gpu.RenderPass)",
              "doc": "Draw binds the mesh to pass and draws all of its triangles once. The pass must already have a pipeline whose vertex buffer 0 is [MeshVertexLayout] and whose bind groups are set. When the mesh is not [GPUMesh.Valid] it records nothing, so it never draws with buffers an earlier mesh left bound: NSGo skips binding an invalid buffer but still records the draw (nsgo-dev/nsgo#2253).\n",
              "file": "pkg/render3d/mesh.go",
              "line": 316
            },
            {
              "name": "IndexBuffer",
              "anchor": "GPUMesh.IndexBuffer",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) IndexBuffer() *gpu.Buffer",
              "doc": "IndexBuffer returns the index buffer, or nil for a non-indexed mesh.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 259
            },
            {
              "name": "IndexCount",
              "anchor": "GPUMesh.IndexCount",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) IndexCount() uint32",
              "doc": "IndexCount returns the number of indices, or zero for a non-indexed mesh.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 271
            },
            {
              "name": "IndexFormat",
              "anchor": "GPUMesh.IndexFormat",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns the width of the index buffer's entries.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 262
            },
            {
              "name": "Indexed",
              "anchor": "GPUMesh.Indexed",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) Indexed() bool",
              "doc": "Indexed reports whether the mesh draws through an index buffer.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 265
            },
            {
              "name": "Triangles",
              "anchor": "GPUMesh.Triangles",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) Triangles() uint32",
              "doc": "Triangles returns the number of triangles one draw of the mesh rasterizes.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 274
            },
            {
              "name": "Valid",
              "anchor": "GPUMesh.Valid",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) Valid() bool",
              "doc": "Valid reports whether the mesh's buffers are open and belong to a live device, so it can be drawn.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 297
            },
            {
              "name": "VertexBuffer",
              "anchor": "GPUMesh.VertexBuffer",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) VertexBuffer() *gpu.Buffer",
              "doc": "VertexBuffer returns the interleaved vertex buffer, laid out as [MeshVertexLayout] describes.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 256
            },
            {
              "name": "VertexCount",
              "anchor": "GPUMesh.VertexCount",
              "recv": "*GPUMesh",
              "decl": "func (g *GPUMesh) VertexCount() uint32",
              "doc": "VertexCount returns the number of vertices in the vertex buffer.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 268
            }
          ]
        },
        {
          "name": "GPUMorphMesh",
          "anchor": "GPUMorphMesh",
          "decl": "type GPUMorphMesh struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUMorphMesh is a [GPUMesh] whose vertex buffer is updated from a base mesh\nand morph target deltas whenever its weights change.\n\nIt writes blended positions and renormalized normals into the same interleaved\n32-byte [MeshVertexLayout] buffer that [GPUMesh] uses, so any pipeline built\nfor [GPUMesh] draws a GPUMorphMesh without shader changes across every NSGo\nGPU backend (including WebGL 2 and OpenGL ES 3.0 without compute shaders).\n\nCall [GPUMorphMesh.SetWeights] when animation or gameplay updates morph\nweights, then [GPUMorphMesh.Update] on the engine goroutine before recording\ndraws; Update is a no-op when weights have not changed. Use it from the\nengine goroutine, like the [gpu.Device] it came from.\n",
          "file": "pkg/render3d/morph.go",
          "line": 85,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "UploadMorphMesh",
              "anchor": "UploadMorphMesh",
              "decl": "func UploadMorphMesh(cx *core.Scope, dev *gpu.Device, m MorphMesh, opts MeshUpload) (*GPUMorphMesh, error)",
              "doc": "UploadMorphMesh validates m, blends its initial weights, and uploads its\nvertex buffer and optional index buffer onto dev, scoped to cx.\n\nA malformed mesh returns an error wrapping [ErrInvalidMesh] before any GPU\nresource is created; a device error is returned as reported by NSGo with no\nbuffer left behind. Setting [MeshUpload.Retained] preserves the latest\nuploaded morphed vertex bytes across GPU device loss.\n",
              "file": "pkg/render3d/morph.go",
              "line": 107
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUMorphMesh.Bind",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Bind(pass *gpu.RenderPass)",
              "doc": "Bind binds the vertex buffer to slot 0 and, for an indexed mesh, the index buffer to pass.\n",
              "file": "pkg/render3d/morph.go",
              "line": 330
            },
            {
              "name": "Bounds",
              "anchor": "GPUMorphMesh.Bounds",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Bounds() math3d.AABB",
              "doc": "Bounds returns the object-space bounding box of the mesh for its current\nmorph weights.\n",
              "file": "pkg/render3d/morph.go",
              "line": 308
            },
            {
              "name": "ByteSize",
              "anchor": "GPUMorphMesh.ByteSize",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory the mesh's buffers hold, for [RenderStats] and [Budget] accounting.\n",
              "file": "pkg/render3d/morph.go",
              "line": 317
            },
            {
              "name": "Close",
              "anchor": "GPUMorphMesh.Close",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Close() error",
              "doc": "Close releases the mesh's GPU buffers now instead of when their scope is disposed. It is safe to call more than once.\n",
              "file": "pkg/render3d/morph.go",
              "line": 346
            },
            {
              "name": "Dirty",
              "anchor": "GPUMorphMesh.Dirty",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Dirty() bool",
              "doc": "Dirty reports whether m has weight changes that have not yet been uploaded to\nthe GPU vertex buffer via [GPUMorphMesh.Update].\n",
              "file": "pkg/render3d/morph.go",
              "line": 220
            },
            {
              "name": "Draw",
              "anchor": "GPUMorphMesh.Draw",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Draw(pass *gpu.RenderPass)",
              "doc": "Draw binds the mesh to pass and draws all of its triangles once.\n",
              "file": "pkg/render3d/morph.go",
              "line": 338
            },
            {
              "name": "IndexBuffer",
              "anchor": "GPUMorphMesh.IndexBuffer",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) IndexBuffer() *gpu.Buffer",
              "doc": "IndexBuffer returns the index buffer, or nil for a non-indexed mesh.\n",
              "file": "pkg/render3d/morph.go",
              "line": 262
            },
            {
              "name": "IndexCount",
              "anchor": "GPUMorphMesh.IndexCount",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) IndexCount() uint32",
              "doc": "IndexCount returns the number of indices, or zero for a non-indexed mesh.\n",
              "file": "pkg/render3d/morph.go",
              "line": 291
            },
            {
              "name": "IndexFormat",
              "anchor": "GPUMorphMesh.IndexFormat",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns the width of the index buffer's entries.\n",
              "file": "pkg/render3d/morph.go",
              "line": 270
            },
            {
              "name": "Indexed",
              "anchor": "GPUMorphMesh.Indexed",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Indexed() bool",
              "doc": "Indexed reports whether the mesh draws through an index buffer.\n",
              "file": "pkg/render3d/morph.go",
              "line": 278
            },
            {
              "name": "Mesh",
              "anchor": "GPUMorphMesh.Mesh",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Mesh() *GPUMesh",
              "doc": "Mesh returns the underlying [GPUMesh], or nil if m is nil.\n",
              "file": "pkg/render3d/morph.go",
              "line": 246
            },
            {
              "name": "SetWeights",
              "anchor": "GPUMorphMesh.SetWeights",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) SetWeights(weights []float32) error",
              "doc": "SetWeights updates the active morph target weights and marks the mesh dirty\nwhen any weight changes. Passing fewer weights than [GPUMorphMesh.TargetCount]\n(including nil) sets the remaining trailing weights to 0; passing more weights\nthan targets, any non-finite weight, or calling on a nil receiver returns an\nerror wrapping [ErrInvalidMesh] without modifying the current weights.\n",
              "file": "pkg/render3d/morph.go",
              "line": 161
            },
            {
              "name": "TargetCount",
              "anchor": "GPUMorphMesh.TargetCount",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) TargetCount() int",
              "doc": "TargetCount returns the number of morph targets on m, or 0 for a nil mesh.\n",
              "file": "pkg/render3d/morph.go",
              "line": 202
            },
            {
              "name": "Triangles",
              "anchor": "GPUMorphMesh.Triangles",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Triangles() uint32",
              "doc": "Triangles returns the number of triangles one draw of the mesh rasterizes.\n",
              "file": "pkg/render3d/morph.go",
              "line": 299
            },
            {
              "name": "Update",
              "anchor": "GPUMorphMesh.Update",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Update(dev *gpu.Device) bool",
              "doc": "Update blends any pending weight changes on the CPU and writes the updated\ninterleaved vertex buffer onto dev, returning true when a GPU upload took\nplace. It returns false without touching the GPU when weights have not\nchanged or when dev or m is invalid; if the device is temporarily lost, m\nremains dirty so the next Update after restore uploads the pending weights.\n",
              "file": "pkg/render3d/morph.go",
              "line": 229
            },
            {
              "name": "Valid",
              "anchor": "GPUMorphMesh.Valid",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Valid() bool",
              "doc": "Valid reports whether the mesh's GPU buffers are open and belong to a live device.\n",
              "file": "pkg/render3d/morph.go",
              "line": 325
            },
            {
              "name": "VertexBuffer",
              "anchor": "GPUMorphMesh.VertexBuffer",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) VertexBuffer() *gpu.Buffer",
              "doc": "VertexBuffer returns the morphed interleaved vertex buffer, laid out as [MeshVertexLayout] describes.\n",
              "file": "pkg/render3d/morph.go",
              "line": 254
            },
            {
              "name": "VertexCount",
              "anchor": "GPUMorphMesh.VertexCount",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) VertexCount() uint32",
              "doc": "VertexCount returns the number of vertices in the vertex buffer.\n",
              "file": "pkg/render3d/morph.go",
              "line": 283
            },
            {
              "name": "Weights",
              "anchor": "GPUMorphMesh.Weights",
              "recv": "*GPUMorphMesh",
              "decl": "func (m *GPUMorphMesh) Weights(dst []float32) []float32",
              "doc": "Weights copies m's active morph weights into dst[:0] and returns the slice,\nreusing dst's backing array when it has enough capacity.\n",
              "file": "pkg/render3d/morph.go",
              "line": 211
            }
          ]
        },
        {
          "name": "GPUPBRLightmap",
          "anchor": "GPUPBRLightmap",
          "decl": "type GPUPBRLightmap struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUPBRLightmap holds a scope-owned [PBRLightmap] uniform buffer and [PBRLightmapGroup] bind group wiring the per-object transform, atlas UV transform, lightmap encoding parameters, and baked lightmap texture/sampler.\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 430,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUPBRLightmap",
              "anchor": "NewGPUPBRLightmap",
              "decl": "func NewGPUPBRLightmap(cx *core.Scope, dev *gpu.Device, lm PBRLightmap, opts PBRLightmapOptions) (*GPUPBRLightmap, error)",
              "doc": "NewGPUPBRLightmap validates lm and creates its uniform buffer, optional bind group layout, and [PBRLightmapGroup] bind group on dev, owned by cx. When lm.Lightmap or lm.LightmapSampler is nil, FallbackTexture / FallbackSampler from opts is used or a retained-aware 1x1 linear fallback texture / linear-clamp sampler is created and owned by the returned handle.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 443
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUPBRLightmap.Bind",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) Bind(pass *gpu.RenderPass)",
              "doc": "Bind binds g at [PBRLightmapGroup] (group 3) on pass. It records nothing when g is not valid.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 585
            },
            {
              "name": "BindAt",
              "anchor": "GPUPBRLightmap.BindAt",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) BindAt(pass *gpu.RenderPass, group uint32)",
              "doc": "BindAt binds g at the specified bind group slot on pass. It records nothing when g is not valid.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 590
            },
            {
              "name": "BindGroup",
              "anchor": "GPUPBRLightmap.BindGroup",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the underlying [*gpu.BindGroup], or nil for a nil receiver.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 598
            },
            {
              "name": "ByteSize",
              "anchor": "GPUPBRLightmap.ByteSize",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by g's uniform buffer and any owned fallback texture.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 630
            },
            {
              "name": "Close",
              "anchor": "GPUPBRLightmap.Close",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) Close() error",
              "doc": "Close releases g's bind group, uniform buffer, and any owned fallback resources. It is nil-safe and safe to call more than once.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 659
            },
            {
              "name": "Config",
              "anchor": "GPUPBRLightmap.Config",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) Config() PBRLightmap",
              "doc": "Config returns the latest [PBRLightmap] parameters uploaded to g.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 622
            },
            {
              "name": "Layout",
              "anchor": "GPUPBRLightmap.Layout",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the [PBRLightmapGroup] [*gpu.BindGroupLayout], or nil for a nil receiver.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 606
            },
            {
              "name": "SetModel",
              "anchor": "GPUPBRLightmap.SetModel",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) SetModel(dev *gpu.Device, model math3d.Mat4) error",
              "doc": "SetModel updates only the object-to-world Model matrix (and derived normal matrix) of g.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 575
            },
            {
              "name": "UniformBuffer",
              "anchor": "GPUPBRLightmap.UniformBuffer",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) UniformBuffer() *gpu.Buffer",
              "doc": "UniformBuffer returns the underlying uniform [*gpu.Buffer], or nil for a nil receiver.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 614
            },
            {
              "name": "Update",
              "anchor": "GPUPBRLightmap.Update",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) Update(dev *gpu.Device, lm PBRLightmap) error",
              "doc": "Update validates lm and writes its updated uniform parameters (model matrix, UV transform, encoding, intensity, RGBM range, ambient fallback) into g's uniform buffer without reallocating the bind group. Lightmap and LightmapSampler pointers must match those g was created with. Pass the active [*gpu.Device] (or nil to reuse the stored device) so retained handles continue updating cleanly after a device loss and restore.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 550
            },
            {
              "name": "Valid",
              "anchor": "GPUPBRLightmap.Valid",
              "recv": "*GPUPBRLightmap",
              "decl": "func (g *GPUPBRLightmap) Valid() bool",
              "doc": "Valid reports whether g's uniform buffer, layout, and bind group are open on a live device.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 645
            }
          ]
        },
        {
          "name": "GPUPointLight",
          "anchor": "GPUPointLight",
          "decl": "type GPUPointLight struct {\n\t// PositionRange holds world-space Position in xyz and Range in w (0 for unbounded falloff).\n\tPositionRange math3d.Vec4\n\t// Color holds premultiplied linear radiant intensity (Color * Intensity) in rgb and Intensity in w.\n\tColor math3d.Vec4\n}",
          "doc": "GPUPointLight is the 32-byte GPU uniform representation of one [PointLight].\n",
          "file": "pkg/render3d/light.go",
          "line": 514,
          "members": [
            {
              "name": "PositionRange",
              "anchor": "GPUPointLight.PositionRange",
              "kind": "field",
              "doc": "PositionRange holds world-space Position in xyz and Range in w (0 for unbounded falloff)."
            },
            {
              "name": "Color",
              "anchor": "GPUPointLight.Color",
              "kind": "field",
              "doc": "Color holds premultiplied linear radiant intensity (Color * Intensity) in rgb and Intensity in w."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GPUProbeIBLBuffer",
          "anchor": "GPUProbeIBLBuffer",
          "decl": "type GPUProbeIBLBuffer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUProbeIBLBuffer holds a per-object [ProbeIBLUniform] buffer, 1x1 black fallback cubemap, and [IBLGroup] bind group wiring two local reflection probe cubemaps and a sky cubemap into [ProbeIBLWGSL] / [LitPBRProbeIBLWGSL].\n\nAny omitted, unbaked, dirty, or nil cubemap slot is bound to the 1x1 black (0, 0, 0, 255) fallback cubemap (never white), guaranteeing exact CPU/GPU parity with [EvaluateProbeIBL]. Calling [GPUProbeIBLBuffer.Update] writes only the uniform buffer without recreating the bind group whenever the three bound cubemap textures are unchanged.\n",
          "file": "pkg/render3d/probes.go",
          "line": 1473,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUProbeIBLBuffer",
              "anchor": "NewGPUProbeIBLBuffer",
              "decl": "func NewGPUProbeIBLBuffer(cx *core.Scope, dev *gpu.Device, opts ProbeIBLBufferOptions) (*GPUProbeIBLBuffer, error)",
              "doc": "NewGPUProbeIBLBuffer allocates a [GPUProbeIBLBuffer] on dev, owned by cx (nil for manual Close), initially bound to a zero uniform and the 1x1 black fallback cubemap across all three cube slots.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1504
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUProbeIBLBuffer.Bind",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) Bind(pass *gpu.RenderPass)",
              "doc": "Bind sets b's bind group at [IBLGroup] (group 3) on pass. Records nothing when b is not valid.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1649
            },
            {
              "name": "BindGroup",
              "anchor": "GPUProbeIBLBuffer.BindGroup",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the current [gpu.BindGroup] for [IBLGroup], or nil for a nil receiver.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1673
            },
            {
              "name": "Buffer",
              "anchor": "GPUProbeIBLBuffer.Buffer",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) Buffer() *gpu.Buffer",
              "doc": "Buffer returns the underlying uniform buffer, or nil for a nil receiver.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1657
            },
            {
              "name": "ByteSize",
              "anchor": "GPUProbeIBLBuffer.ByteSize",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by b's uniform buffer and 1x1 black fallback cubemap.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1681
            },
            {
              "name": "Close",
              "anchor": "GPUProbeIBLBuffer.Close",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) Close() error",
              "doc": "Close releases the bind group, fallback cubemap, owned layout (when not shared), and uniform buffer. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1701
            },
            {
              "name": "Layout",
              "anchor": "GPUProbeIBLBuffer.Layout",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the [IBLGroup] bind group layout for pipelines using [ProbeIBLWGSL] or [LitPBRProbeIBLWGSL].\n",
              "file": "pkg/render3d/probes.go",
              "line": 1665
            },
            {
              "name": "Update",
              "anchor": "GPUProbeIBLBuffer.Update",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) Update(dev *gpu.Device, u ProbeIBLUniform, probe0, probe1, sky *GPUCubemap) error",
              "doc": "Update validates u, writes it to the uniform buffer, and updates the bound cubemaps when any of probe0, probe1, or sky changes. Any nil or invalid cubemap binds the 1x1 black fallback cubemap so GPU sampling returns (0, 0, 0). Pass the active [*gpu.Device] (or nil to reuse the last device).\n",
              "file": "pkg/render3d/probes.go",
              "line": 1599
            },
            {
              "name": "UpdateBlend",
              "anchor": "GPUProbeIBLBuffer.UpdateBlend",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) UpdateBlend(dev *gpu.Device, sh IrradianceSH, blend ProbeBlendResult, sky *GPUCubemap, intensity float32) error",
              "doc": "UpdateBlend builds a [ProbeIBLUniform] from sh, blend, sky, and intensity and uploads it to b, binding blend's ready primary and secondary probe cubemaps (or the black fallback when nil/unbaked/dirty) and sky.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1629
            },
            {
              "name": "UpdateForPoint",
              "anchor": "GPUProbeIBLBuffer.UpdateForPoint",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) UpdateForPoint(\n\tdev *gpu.Device,\n\tworldPos math3d.Vec3,\n\treflectionProbes *ReflectionProbeSet,\n\tlightProbes *LightProbeVolume,\n\tsky *GPUCubemap,\n\tintensity float32,\n) error",
              "doc": "UpdateForPoint selects reflection probes from reflectionProbes and samples diffuse [IrradianceSH] from lightProbes at worldPos, then updates b with the blended probe IBL state.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1635
            },
            {
              "name": "Valid",
              "anchor": "GPUProbeIBLBuffer.Valid",
              "recv": "*GPUProbeIBLBuffer",
              "decl": "func (b *GPUProbeIBLBuffer) Valid() bool",
              "doc": "Valid reports whether the uniform buffer, layout, fallback cubemap, and bind group are open on a live device.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1696
            }
          ]
        },
        {
          "name": "GPUSampler",
          "anchor": "GPUSampler",
          "decl": "type GPUSampler struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUSampler is a sampler allocated on an NSGo [gpu.Device]. Its underlying [gpu.Sampler] belongs to the [core.Scope] passed to [NewGPUSampler] and is released when that scope is disposed or when [GPUSampler.Close] is called.\n",
          "file": "pkg/render3d/texture.go",
          "line": 470,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUSampler",
              "anchor": "NewGPUSampler",
              "decl": "func NewGPUSampler(cx *core.Scope, dev *gpu.Device, opts SamplerOptions) (*GPUSampler, error)",
              "doc": "NewGPUSampler validates opts and creates a [GPUSampler] on dev, scoped to cx. Invalid options return an error wrapping [ErrInvalidSampler] before anything is created; a nil or lost device returns [gpu.ErrDeviceLost].\n",
              "file": "pkg/render3d/texture.go",
              "line": 476
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "GPUSampler.Close",
              "recv": "*GPUSampler",
              "decl": "func (s *GPUSampler) Close() error",
              "doc": "Close releases the underlying [gpu.Sampler] now rather than when its scope is disposed. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/texture.go",
              "line": 522
            },
            {
              "name": "Options",
              "anchor": "GPUSampler.Options",
              "recv": "*GPUSampler",
              "decl": "func (s *GPUSampler) Options() SamplerOptions",
              "doc": "Options returns the normalized [SamplerOptions] used to create s, or the zero value for a nil receiver.\n",
              "file": "pkg/render3d/texture.go",
              "line": 509
            },
            {
              "name": "Sampler",
              "anchor": "GPUSampler.Sampler",
              "recv": "*GPUSampler",
              "decl": "func (s *GPUSampler) Sampler() *gpu.Sampler",
              "doc": "Sampler returns the underlying [gpu.Sampler], or nil for a nil receiver.\n",
              "file": "pkg/render3d/texture.go",
              "line": 501
            },
            {
              "name": "Valid",
              "anchor": "GPUSampler.Valid",
              "recv": "*GPUSampler",
              "decl": "func (s *GPUSampler) Valid() bool",
              "doc": "Valid reports whether the sampler is open and belongs to a live device.\n",
              "file": "pkg/render3d/texture.go",
              "line": 517
            }
          ]
        },
        {
          "name": "GPUSkinPalette",
          "anchor": "GPUSkinPalette",
          "decl": "type GPUSkinPalette struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUSkinPalette holds up to [MaxSkinJoints] joint matrices in a portable uniform buffer ([SkinUniformSize] = 8192 bytes, fitting WebGL 2 and OpenGL ES 3.0's 16 KiB uniform block limit) together with the bind group layout and bind group exposed at [SkinGroup].\n\nCreate it once on device readiness, call [GPUSkinPalette.Update] or [GPUSkinPalette.UpdateFromGLTF] when joint poses change, and bind [GPUSkinPalette.BindGroup] at the pipeline's skin group ([SkinGroup], [LitPBRSkinGroup] or [MaterialSkinGroup]). Resources belong to the scope passed to [NewGPUSkinPalette] and are released on scope disposal or Close.\n",
          "file": "pkg/render3d/skin.go",
          "line": 726,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUSkinPalette",
              "anchor": "NewGPUSkinPalette",
              "decl": "func NewGPUSkinPalette(cx *core.Scope, dev *gpu.Device, opts SkinPaletteOptions) (*GPUSkinPalette, error)",
              "doc": "NewGPUSkinPalette creates a [GPUSkinPalette] initialized to identity matrices for all [MaxSkinJoints] slots on dev, owned by cx.\n",
              "file": "pkg/render3d/skin.go",
              "line": 737
            }
          ],
          "methods": [
            {
              "name": "BindGroup",
              "anchor": "GPUSkinPalette.BindGroup",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group a render pass sets at [SkinGroup].\n",
              "file": "pkg/render3d/skin.go",
              "line": 859
            },
            {
              "name": "Buffer",
              "anchor": "GPUSkinPalette.Buffer",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) Buffer() *gpu.Buffer",
              "doc": "Buffer returns the underlying uniform buffer ([SkinUniformSize] bytes).\n",
              "file": "pkg/render3d/skin.go",
              "line": 843
            },
            {
              "name": "ByteSize",
              "anchor": "GPUSkinPalette.ByteSize",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by the uniform buffer, or 0 for a nil palette.\n",
              "file": "pkg/render3d/skin.go",
              "line": 875
            },
            {
              "name": "Close",
              "anchor": "GPUSkinPalette.Close",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) Close() error",
              "doc": "Close releases the bind group, layout, and uniform buffer immediately. Safe to call more than once.\n",
              "file": "pkg/render3d/skin.go",
              "line": 888
            },
            {
              "name": "JointCount",
              "anchor": "GPUSkinPalette.JointCount",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) JointCount() int",
              "doc": "JointCount returns the number of active joints uploaded by the last Update.\n",
              "file": "pkg/render3d/skin.go",
              "line": 867
            },
            {
              "name": "Layout",
              "anchor": "GPUSkinPalette.Layout",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout a pipeline lists at [SkinGroup].\n",
              "file": "pkg/render3d/skin.go",
              "line": 851
            },
            {
              "name": "Update",
              "anchor": "GPUSkinPalette.Update",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) Update(dev *gpu.Device, joints []math3d.Mat4) error",
              "doc": "Update validates and uploads joints into the palette's uniform buffer, filling remaining slots up to [MaxSkinJoints] with identity matrices. If dev is nil, the device passed to [NewGPUSkinPalette] is used. It encodes into internal storage without heap allocations.\n",
              "file": "pkg/render3d/skin.go",
              "line": 790
            },
            {
              "name": "UpdateFromGLTF",
              "anchor": "GPUSkinPalette.UpdateFromGLTF",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) UpdateFromGLTF(dev *gpu.Device, doc *gltf.Document, skinIndex int) error",
              "doc": "UpdateFromGLTF computes joint matrices for doc.Skins[skinIndex] into internal scratch storage and uploads them with [GPUSkinPalette.Update], with zero steady-state heap allocations. Call [gltf.Document.ComputeWorldMatrices] first whenever node transforms or animations change.\n",
              "file": "pkg/render3d/skin.go",
              "line": 826
            },
            {
              "name": "UpdateFromGLTFWithTransform",
              "anchor": "GPUSkinPalette.UpdateFromGLTFWithTransform",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) UpdateFromGLTFWithTransform(dev *gpu.Device, doc *gltf.Document, skinIndex int, worldTransform math3d.Mat4) error",
              "doc": "UpdateFromGLTFWithTransform computes joint matrices for doc.Skins[skinIndex] pre-multiplied by worldTransform and uploads them into the palette.\n",
              "file": "pkg/render3d/skin.go",
              "line": 831
            },
            {
              "name": "UpdateWithTransform",
              "anchor": "GPUSkinPalette.UpdateWithTransform",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) UpdateWithTransform(dev *gpu.Device, worldTransform math3d.Mat4, joints []math3d.Mat4) error",
              "doc": "UpdateWithTransform uploads worldTransform * joints[i] for every joint, like [GPUSkinPalette.Update]. Use it for mesh-local joint matrices, such as anim3d's Player.SkinMatricesForNode (inverse(meshWorld) * jointWorld * inverseBind), with the mesh node's world matrix (Player.WorldTransform), so pipelines without a model matrix ([NewSkinnedMeshPipeline], [MaterialPipelineOptions].SkinLayout) draw the mesh where its node is. It reuses internal storage and does not modify joints.\n",
              "file": "pkg/render3d/skin.go",
              "line": 811
            },
            {
              "name": "Valid",
              "anchor": "GPUSkinPalette.Valid",
              "recv": "*GPUSkinPalette",
              "decl": "func (p *GPUSkinPalette) Valid() bool",
              "doc": "Valid reports whether the palette's GPU resources are open and live.\n",
              "file": "pkg/render3d/skin.go",
              "line": 883
            }
          ]
        },
        {
          "name": "GPUSkinnedMesh",
          "anchor": "GPUSkinnedMesh",
          "decl": "type GPUSkinnedMesh struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUSkinnedMesh is a [SkinnedMesh] uploaded to GPU vertex and optional index buffers scoped to the [*core.Scope] passed to [UploadSkinnedMesh].\n",
          "file": "pkg/render3d/skin.go",
          "line": 456,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "UploadSkinnedMesh",
              "anchor": "UploadSkinnedMesh",
              "decl": "func UploadSkinnedMesh(cx *core.Scope, dev *gpu.Device, m SkinnedMesh, opts MeshUpload) (*GPUSkinnedMesh, error)",
              "doc": "UploadSkinnedMesh validates m and uploads its interleaved skinned vertex buffer and optional index buffer to dev, owned by cx. Set opts.Retained to keep a CPU copy so NSGo recreates the buffers automatically after a device loss.\n",
              "file": "pkg/render3d/skin.go",
              "line": 467
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUSkinnedMesh.Bind",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) Bind(pass *gpu.RenderPass)",
              "doc": "Bind binds the vertex buffer to slot 0 and, for an indexed mesh, the index buffer to pass. It binds nothing when the mesh is not [GPUSkinnedMesh.Valid].\n",
              "file": "pkg/render3d/skin.go",
              "line": 569
            },
            {
              "name": "Bounds",
              "anchor": "GPUSkinnedMesh.Bounds",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) Bounds() math3d.AABB",
              "doc": "Bounds returns the unskinned box [SkinnedMesh.Bounds] computed at upload. Pass it to [SkinnedBounds] with the frame's joint matrices to get a box around the drawn mesh for culling.\n",
              "file": "pkg/render3d/skin.go",
              "line": 546
            },
            {
              "name": "ByteSize",
              "anchor": "GPUSkinnedMesh.ByteSize",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by the mesh's buffers, or 0 for a nil mesh.\n",
              "file": "pkg/render3d/skin.go",
              "line": 549
            },
            {
              "name": "Close",
              "anchor": "GPUSkinnedMesh.Close",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) Close() error",
              "doc": "Close releases the mesh's GPU buffers immediately. It is safe to call more than once.\n",
              "file": "pkg/render3d/skin.go",
              "line": 593
            },
            {
              "name": "Draw",
              "anchor": "GPUSkinnedMesh.Draw",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) Draw(pass *gpu.RenderPass)",
              "doc": "Draw binds the skinned mesh to pass and issues one draw call. The pass must already have a pipeline whose vertex buffer 0 is [SkinnedVertexLayout] and a [GPUSkinPalette] bound at the pipeline's skin group ([SkinGroup], [LitPBRSkinGroup] or [MaterialSkinGroup]). When the mesh is not valid it records nothing.\n",
              "file": "pkg/render3d/skin.go",
              "line": 580
            },
            {
              "name": "IndexBuffer",
              "anchor": "GPUSkinnedMesh.IndexBuffer",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) IndexBuffer() *gpu.Buffer",
              "doc": "IndexBuffer returns the index buffer, or nil for a non-indexed skinned mesh.\n",
              "file": "pkg/render3d/skin.go",
              "line": 520
            },
            {
              "name": "IndexCount",
              "anchor": "GPUSkinnedMesh.IndexCount",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) IndexCount() uint32",
              "doc": "IndexCount returns the number of indices, or zero for a non-indexed mesh.\n",
              "file": "pkg/render3d/skin.go",
              "line": 532
            },
            {
              "name": "IndexFormat",
              "anchor": "GPUSkinnedMesh.IndexFormat",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns the width of the index buffer's entries.\n",
              "file": "pkg/render3d/skin.go",
              "line": 523
            },
            {
              "name": "Indexed",
              "anchor": "GPUSkinnedMesh.Indexed",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) Indexed() bool",
              "doc": "Indexed reports whether the skinned mesh draws through an index buffer.\n",
              "file": "pkg/render3d/skin.go",
              "line": 526
            },
            {
              "name": "JointCount",
              "anchor": "GPUSkinnedMesh.JointCount",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) JointCount() int",
              "doc": "JointCount returns the joint count recorded on the source [SkinnedMesh] (0 if unspecified).\n",
              "file": "pkg/render3d/skin.go",
              "line": 535
            },
            {
              "name": "Triangles",
              "anchor": "GPUSkinnedMesh.Triangles",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) Triangles() uint32",
              "doc": "Triangles returns the number of triangles one draw of the mesh rasterizes.\n",
              "file": "pkg/render3d/skin.go",
              "line": 538
            },
            {
              "name": "Valid",
              "anchor": "GPUSkinnedMesh.Valid",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) Valid() bool",
              "doc": "Valid reports whether the skinned mesh's buffers are open and belong to a live device.\n",
              "file": "pkg/render3d/skin.go",
              "line": 561
            },
            {
              "name": "VertexBuffer",
              "anchor": "GPUSkinnedMesh.VertexBuffer",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) VertexBuffer() *gpu.Buffer",
              "doc": "VertexBuffer returns the interleaved skinned vertex buffer described by [SkinnedVertexLayout].\n",
              "file": "pkg/render3d/skin.go",
              "line": 517
            },
            {
              "name": "VertexCount",
              "anchor": "GPUSkinnedMesh.VertexCount",
              "recv": "*GPUSkinnedMesh",
              "decl": "func (g *GPUSkinnedMesh) VertexCount() uint32",
              "doc": "VertexCount returns the number of vertices in the vertex buffer.\n",
              "file": "pkg/render3d/skin.go",
              "line": 529
            }
          ]
        },
        {
          "name": "GPUSpotLight",
          "anchor": "GPUSpotLight",
          "decl": "type GPUSpotLight struct {\n\t// PositionRange holds world-space Position in xyz and Range in w (0 for unbounded falloff).\n\tPositionRange math3d.Vec4\n\t// DirectionScale holds the unit cone direction in xyz and the angular scale from [SpotLight.ConeScaleOffset] in w.\n\tDirectionScale math3d.Vec4\n\t// ColorOffset holds premultiplied linear radiant intensity (Color * Intensity) in rgb and the angular offset from [SpotLight.ConeScaleOffset] in w.\n\tColorOffset math3d.Vec4\n}",
          "doc": "GPUSpotLight is the 48-byte GPU uniform representation of one [SpotLight].\n",
          "file": "pkg/render3d/light.go",
          "line": 522,
          "members": [
            {
              "name": "PositionRange",
              "anchor": "GPUSpotLight.PositionRange",
              "kind": "field",
              "doc": "PositionRange holds world-space Position in xyz and Range in w (0 for unbounded falloff)."
            },
            {
              "name": "DirectionScale",
              "anchor": "GPUSpotLight.DirectionScale",
              "kind": "field",
              "doc": "DirectionScale holds the unit cone direction in xyz and the angular scale from [SpotLight.ConeScaleOffset] in w."
            },
            {
              "name": "ColorOffset",
              "anchor": "GPUSpotLight.ColorOffset",
              "kind": "field",
              "doc": "ColorOffset holds premultiplied linear radiant intensity (Color * Intensity) in rgb and the angular offset from [SpotLight.ConeScaleOffset] in w."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GPUTerrainMaterial",
          "anchor": "GPUTerrainMaterial",
          "decl": "type GPUTerrainMaterial struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUTerrainMaterial owns the uniform buffer, splat textures, 2D texture arrays,\nsamplers, bind group layout, and bind group for rendering a splat-blended\nmulti-layer PBR terrain at [TerrainMaterialGroup] (group 2).\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 393,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUTerrainMaterial",
              "anchor": "NewGPUTerrainMaterial",
              "decl": "func NewGPUTerrainMaterial(cx *core.Scope, dev *gpu.Device, m TerrainMaterial, opts TerrainMaterialUpload) (*GPUTerrainMaterial, error)",
              "doc": "NewGPUTerrainMaterial validates m and uploads its uniform buffer, splat map\ntextures, per-layer 2D texture arrays (albedo, normal, and packed\nheight/roughness/metallic), samplers, and [TerrainMaterialGroup] bind group\nonto dev, owned by cx.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 540
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUTerrainMaterial.Bind",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) Bind(pass *gpu.RenderPass)",
              "doc": "Bind binds g's bind group at [TerrainMaterialGroup] (group 2) on pass.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 767
            },
            {
              "name": "BindGroup",
              "anchor": "GPUTerrainMaterial.BindGroup",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns g's [gpu.BindGroup], or nil for a nil receiver.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 783
            },
            {
              "name": "ByteSize",
              "anchor": "GPUTerrainMaterial.ByteSize",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) ByteSize() uint64",
              "doc": "ByteSize returns the approximate GPU memory owned by g (uniform buffer,\nsplat maps, and all 3 layer texture arrays including mip chains).\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 808
            },
            {
              "name": "Close",
              "anchor": "GPUTerrainMaterial.Close",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) Close() error",
              "doc": "Close releases every GPU resource owned by g now rather than waiting for\nscope disposal. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 844
            },
            {
              "name": "LayerCount",
              "anchor": "GPUTerrainMaterial.LayerCount",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) LayerCount() int",
              "doc": "LayerCount returns the number of material layers uploaded into g.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 799
            },
            {
              "name": "Layout",
              "anchor": "GPUTerrainMaterial.Layout",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns g's [TerrainMaterialGroup] bind group layout, or nil for a nil receiver.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 775
            },
            {
              "name": "UniformBuffer",
              "anchor": "GPUTerrainMaterial.UniformBuffer",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) UniformBuffer() *gpu.Buffer",
              "doc": "UniformBuffer returns g's uniform [*gpu.Buffer], or nil for a nil receiver.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 791
            },
            {
              "name": "UpdateSplatMaps",
              "anchor": "GPUTerrainMaterial.UpdateSplatMaps",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) UpdateSplatMaps(dev *gpu.Device, splat0, splat1 image.Image) error",
              "doc": "UpdateSplatMaps uploads new RGBA splat map image data into g's splat textures\nin place (e.g., after interactive terrain painting). Non-nil images must\nmatch the dimensions of the existing splat texture.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 744
            },
            {
              "name": "UpdateUniforms",
              "anchor": "GPUTerrainMaterial.UpdateUniforms",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) UpdateUniforms(dev *gpu.Device, m TerrainMaterial) error",
              "doc": "UpdateUniforms validates m and updates g's uniform buffer in place (model\ntransform, height blend contrast, triplanar parameters, and per-layer scalar\nfactors / UV scales) without reallocating textures or bind groups. The layer\ncount must match the count g was created with.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 722
            },
            {
              "name": "Valid",
              "anchor": "GPUTerrainMaterial.Valid",
              "recv": "*GPUTerrainMaterial",
              "decl": "func (g *GPUTerrainMaterial) Valid() bool",
              "doc": "Valid reports whether every GPU resource owned by g is open on a live device.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 830
            }
          ]
        },
        {
          "name": "GPUTexture",
          "anchor": "GPUTexture",
          "decl": "type GPUTexture struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUTexture is a 2D texture uploaded to an NSGo [gpu.Device]. Its underlying [gpu.Texture] belongs to the [core.Scope] passed at upload and is released when that scope is disposed or when [GPUTexture.Close] is called. Use it from the engine goroutine, like the [gpu.Device] it came from.\n",
          "file": "pkg/render3d/texture.go",
          "line": 161,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "UploadLightmapRGBA16F",
              "anchor": "UploadLightmapRGBA16F",
              "decl": "func UploadLightmapRGBA16F(cx *core.Scope, dev *gpu.Device, hdr []math3d.Vec3, width, height int, opts TextureUpload) (*GPUTexture, error)",
              "doc": "UploadLightmapRGBA16F packs linear HDR RGB irradiance pixels into an IEEE-754 float16 RGBA16F texture ([gpu.FormatRGBA16Float]) and uploads it to dev, scoped to cx, for use with [LightmapLinear].\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 677
            },
            {
              "name": "UploadTexture",
              "anchor": "UploadTexture",
              "decl": "func UploadTexture(cx *core.Scope, dev *gpu.Device, img image.Image, opts TextureUpload) (*GPUTexture, error)",
              "doc": "UploadTexture converts img to straight-alpha RGBA8 and uploads it to dev, scoped to cx. An invalid image returns an error wrapping [ErrInvalidTexture] before anything is created; a device error (such as [gpu.ErrDeviceLost] or dimensions over [gpu.Limits].MaxTextureDimension2D) is returned as the [gpu.Error] NSGo reports.\n",
              "file": "pkg/render3d/texture.go",
              "line": 170
            },
            {
              "name": "UploadTexturePixels",
              "anchor": "UploadTexturePixels",
              "decl": "func UploadTexturePixels(cx *core.Scope, dev *gpu.Device, buf PixelBuffer, opts TextureUpload) (*GPUTexture, error)",
              "doc": "UploadTexturePixels validates buf and uploads it to dev as a sampled 2D texture, scoped to cx. When opts.Mipmaps is true, every level of the mipmap chain is generated on the CPU (in linear light for sRGB textures) and uploaded with [gpu.Device.WriteTextureMip].\n",
              "file": "pkg/render3d/texture.go",
              "line": 179
            }
          ],
          "methods": [
            {
              "name": "ByteSize",
              "anchor": "GPUTexture.ByteSize",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) ByteSize() uint64",
              "doc": "ByteSize returns the total GPU memory across all uploaded mipmap levels, for [RenderStats] and [Budget] accounting. It is zero for a nil texture.\n",
              "file": "pkg/render3d/texture.go",
              "line": 301
            },
            {
              "name": "Close",
              "anchor": "GPUTexture.Close",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) Close() error",
              "doc": "Close releases the underlying [gpu.Texture] now rather than when its scope is disposed. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/texture.go",
              "line": 319
            },
            {
              "name": "Format",
              "anchor": "GPUTexture.Format",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) Format() gpu.TextureFormat",
              "doc": "Format returns the GPU texture format, or [gpu.FormatUndefined] for a nil receiver.\n",
              "file": "pkg/render3d/texture.go",
              "line": 288
            },
            {
              "name": "Height",
              "anchor": "GPUTexture.Height",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) Height() uint32",
              "doc": "Height returns the base level height in texels, or zero for a nil receiver.\n",
              "file": "pkg/render3d/texture.go",
              "line": 272
            },
            {
              "name": "MipLevels",
              "anchor": "GPUTexture.MipLevels",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) MipLevels() uint32",
              "doc": "MipLevels returns the number of mipmap levels uploaded (1 without mipmaps), or zero for a nil receiver.\n",
              "file": "pkg/render3d/texture.go",
              "line": 280
            },
            {
              "name": "SRGB",
              "anchor": "GPUTexture.SRGB",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) SRGB() bool",
              "doc": "SRGB reports whether the texture decodes sRGB RGB channels to linear light on sample.\n",
              "file": "pkg/render3d/texture.go",
              "line": 296
            },
            {
              "name": "Texture",
              "anchor": "GPUTexture.Texture",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) Texture() *gpu.Texture",
              "doc": "Texture returns the underlying [gpu.Texture], or nil for a nil receiver.\n",
              "file": "pkg/render3d/texture.go",
              "line": 256
            },
            {
              "name": "UpdateImage",
              "anchor": "GPUTexture.UpdateImage",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) UpdateImage(dev *gpu.Device, img image.Image) error",
              "doc": "UpdateImage replaces t's pixels from img (and regenerates its mip chain when t has more than one mip level). img must have the same dimensions as t, and t must have an RGBA8 format.\n",
              "file": "pkg/render3d/texture.go",
              "line": 226
            },
            {
              "name": "UpdatePixels",
              "anchor": "GPUTexture.UpdatePixels",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) UpdatePixels(dev *gpu.Device, buf PixelBuffer) error",
              "doc": "UpdatePixels replaces t's pixels from buf (and regenerates its mip chain when t has more than one mip level). buf must match t's dimensions and pixel format (passing [gpu.FormatUndefined] or [gpu.FormatRGBA8Unorm] is accepted for both linear and sRGB RGBA8 textures).\n",
              "file": "pkg/render3d/texture.go",
              "line": 235
            },
            {
              "name": "Valid",
              "anchor": "GPUTexture.Valid",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) Valid() bool",
              "doc": "Valid reports whether the texture is open and belongs to a live device.\n",
              "file": "pkg/render3d/texture.go",
              "line": 314
            },
            {
              "name": "Width",
              "anchor": "GPUTexture.Width",
              "recv": "*GPUTexture",
              "decl": "func (t *GPUTexture) Width() uint32",
              "doc": "Width returns the base level width in texels, or zero for a nil receiver.\n",
              "file": "pkg/render3d/texture.go",
              "line": 264
            }
          ]
        },
        {
          "name": "GPUToonMaterial",
          "anchor": "GPUToonMaterial",
          "decl": "type GPUToonMaterial struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUToonMaterial holds a [ToonMaterial]'s uniform buffer and its bind group for @group([ToonMaterialGroup]). Omitted textures and samplers come from a shared [MaterialDefaults]. Resources belong to the [core.Scope] passed to [NewGPUToonMaterial] and are released when that scope is disposed or when [GPUToonMaterial.Close] is called.\n",
          "file": "pkg/render3d/toon.go",
          "line": 838,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUToonMaterial",
              "anchor": "NewGPUToonMaterial",
              "decl": "func NewGPUToonMaterial(cx *core.Scope, dev *gpu.Device, defaults *MaterialDefaults, mat ToonMaterial, opts ToonMaterialOptions) (*GPUToonMaterial, error)",
              "doc": "NewGPUToonMaterial validates mat and allocates its uniform buffer and @group(1) bind group on dev, scoped to cx, binding defaults' 1x1 white textures and sampler for omitted textures and samplers, as [NewGPUMaterial] does. Create one [MaterialDefaults] per device and share it. Invalid parameters or defaults return an error wrapping [ErrInvalidToonMaterial] before touching the device.\n",
              "file": "pkg/render3d/toon.go",
              "line": 849
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUToonMaterial.Bind",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) Bind(pass *gpu.RenderPass)",
              "doc": "Bind binds the material's bind group at [ToonMaterialGroup] (group 1) on pass. It does nothing when m is not [GPUToonMaterial.Valid].\n",
              "file": "pkg/render3d/toon.go",
              "line": 968
            },
            {
              "name": "BindAt",
              "anchor": "GPUToonMaterial.BindAt",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) BindAt(pass *gpu.RenderPass, group uint32)",
              "doc": "BindAt binds the material's bind group at the specified group index on pass. It does nothing when m is not [GPUToonMaterial.Valid].\n",
              "file": "pkg/render3d/toon.go",
              "line": 973
            },
            {
              "name": "BindGroup",
              "anchor": "GPUToonMaterial.BindGroup",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the underlying [gpu.BindGroup], or nil for a nil receiver.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1002
            },
            {
              "name": "ByteSize",
              "anchor": "GPUToonMaterial.ByteSize",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) ByteSize() uint64",
              "doc": "ByteSize returns the GPU buffer memory owned by m (excluding shared defaults and caller-owned textures).\n",
              "file": "pkg/render3d/toon.go",
              "line": 1010
            },
            {
              "name": "Close",
              "anchor": "GPUToonMaterial.Close",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) Close() error",
              "doc": "Close releases all GPU resources owned by m (never closing the shared defaults, caller-owned textures and samplers, or shared layouts). It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1032
            },
            {
              "name": "HasOutline",
              "anchor": "GPUToonMaterial.HasOutline",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) HasOutline() bool",
              "doc": "HasOutline reports whether m's current material enables the inverted-hull outline pass.\n",
              "file": "pkg/render3d/toon.go",
              "line": 989
            },
            {
              "name": "Layout",
              "anchor": "GPUToonMaterial.Layout",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout for @group([ToonMaterialGroup]).\n",
              "file": "pkg/render3d/toon.go",
              "line": 994
            },
            {
              "name": "Material",
              "anchor": "GPUToonMaterial.Material",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) Material() ToonMaterial",
              "doc": "Material returns the latest [ToonMaterial] uploaded to m.\n",
              "file": "pkg/render3d/toon.go",
              "line": 981
            },
            {
              "name": "Update",
              "anchor": "GPUToonMaterial.Update",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) Update(dev *gpu.Device, mat ToonMaterial) error",
              "doc": "Update validates mat and uploads its updated uniform parameters into m's uniform buffer on dev without allocating. It takes dev explicitly so a retained material remains updatable after a GPU device loss and restore. Texture and sampler handles bound in the bind group cannot be changed in-place; create a new [GPUToonMaterial] to swap textures or samplers.\n",
              "file": "pkg/render3d/toon.go",
              "line": 945
            },
            {
              "name": "Valid",
              "anchor": "GPUToonMaterial.Valid",
              "recv": "*GPUToonMaterial",
              "decl": "func (m *GPUToonMaterial) Valid() bool",
              "doc": "Valid reports whether m's GPU resources are open and belong to a live device.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1018
            }
          ]
        },
        {
          "name": "GPUUnlitMaterial",
          "anchor": "GPUUnlitMaterial",
          "decl": "type GPUUnlitMaterial struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUUnlitMaterial holds the GPU uniform buffer and [MaterialGroup] bind group for an [UnlitMaterial]. A nil base color texture or sampler binds the shared fallbacks of the [MaterialDefaults] it was created with.\n\nIts resources belong to the [core.Scope] passed at creation and are released when that scope is disposed or when [GPUUnlitMaterial.Close] is called. It does not cache a [*gpu.Device] pointer, so a retained material remains updatable via [GPUUnlitMaterial.Update] after a device loss and restore.\n",
          "file": "pkg/render3d/unlit.go",
          "line": 529,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUUnlitMaterial",
              "anchor": "NewGPUUnlitMaterial",
              "decl": "func NewGPUUnlitMaterial(cx *core.Scope, dev *gpu.Device, defaults *MaterialDefaults, m UnlitMaterial, opts MaterialUpload) (*GPUUnlitMaterial, error)",
              "doc": "NewGPUUnlitMaterial validates m, uploads its uniform block, and creates a bind group on [MaterialDefaults.UnlitLayout], owned by cx. A nil BaseColorTexture or BaseColorSampler binds [MaterialDefaults.WhiteSRGB] or [MaterialDefaults.Sampler]. Invalid parameters or handles return an error wrapping [ErrInvalidUnlitMaterial] before any GPU object is created.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 543
            },
            {
              "name": "UploadGLTFUnlitMaterial",
              "anchor": "UploadGLTFUnlitMaterial",
              "decl": "func UploadGLTFUnlitMaterial(cx *core.Scope, dev *gpu.Device, defaults *MaterialDefaults, doc *gltf.Document, matIndex int, opts GLTFMaterialUpload) (*GPUUnlitMaterial, error)",
              "doc": "UploadGLTFUnlitMaterial extracts a KHR_materials_unlit material from doc.Materials[matIndex], decodes and uploads its baseColorTexture as an sRGB [GPUTexture] with a sampler converted by [SamplerOptionsFromGLTF] (the glTF default sampler when the texture names none), and creates a scope-owned [GPUUnlitMaterial]. Without a baseColorTexture the material binds the fallbacks of defaults.\n\nopts applies as in [UploadGLTFMaterials]: Label prefixes the debug labels, Mipmaps forces mipmaps, DisableMipmaps turns them off, mipmaps are otherwise generated when the sampler's minFilter is mipmapped or unset, and MaxMipLevels, MaxAnisotropy and Retained carry over. The decoded texture and created sampler are owned by the returned material and closed with it.\n\nA baseColorTexture whose image comes only from an extension (such as KHR_texture_basisu or EXT_texture_webp, which glTF expresses as a texture without a source) returns an error wrapping [ErrInvalidUnlitMaterial] instead of silently drawing white.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 624
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "GPUUnlitMaterial.Bind",
              "recv": "*GPUUnlitMaterial",
              "decl": "func (m *GPUUnlitMaterial) Bind(pass *gpu.RenderPass)",
              "doc": "Bind binds m's bind group at [MaterialGroup] (group 1) on pass. It records nothing when m is not [GPUUnlitMaterial.Valid].\n",
              "file": "pkg/render3d/unlit.go",
              "line": 776
            },
            {
              "name": "BindAt",
              "anchor": "GPUUnlitMaterial.BindAt",
              "recv": "*GPUUnlitMaterial",
              "decl": "func (m *GPUUnlitMaterial) BindAt(pass *gpu.RenderPass, group uint32)",
              "doc": "BindAt binds m's bind group at group on pass. It records nothing when m is not [GPUUnlitMaterial.Valid].\n",
              "file": "pkg/render3d/unlit.go",
              "line": 781
            },
            {
              "name": "BindGroup",
              "anchor": "GPUUnlitMaterial.BindGroup",
              "recv": "*GPUUnlitMaterial",
              "decl": "func (m *GPUUnlitMaterial) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the underlying bind group, or nil for a nil receiver.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 745
            },
            {
              "name": "ByteSize",
              "anchor": "GPUUnlitMaterial.ByteSize",
              "recv": "*GPUUnlitMaterial",
              "decl": "func (m *GPUUnlitMaterial) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by m's uniform buffer and the glTF-decoded texture it owns (the shared [MaterialDefaults] are counted there). It is zero for a nil receiver.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 753
            },
            {
              "name": "Close",
              "anchor": "GPUUnlitMaterial.Close",
              "recv": "*GPUUnlitMaterial",
              "decl": "func (m *GPUUnlitMaterial) Close() error",
              "doc": "Close releases the material's bind group, uniform buffer, and any glTF-decoded texture and sampler it owns (leaving caller-supplied textures and samplers and the shared [MaterialDefaults] untouched). Safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 789
            },
            {
              "name": "Material",
              "anchor": "GPUUnlitMaterial.Material",
              "recv": "*GPUUnlitMaterial",
              "decl": "func (m *GPUUnlitMaterial) Material() UnlitMaterial",
              "doc": "Material returns a copy of the current [UnlitMaterial] settings stored in m, or the zero value for a nil receiver.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 729
            },
            {
              "name": "UniformBuffer",
              "anchor": "GPUUnlitMaterial.UniformBuffer",
              "recv": "*GPUUnlitMaterial",
              "decl": "func (m *GPUUnlitMaterial) UniformBuffer() *gpu.Buffer",
              "doc": "UniformBuffer returns the underlying material uniform buffer, or nil for a nil receiver.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 737
            },
            {
              "name": "Update",
              "anchor": "GPUUnlitMaterial.Update",
              "recv": "*GPUUnlitMaterial",
              "decl": "func (m *GPUUnlitMaterial) Update(dev *gpu.Device, mat UnlitMaterial) error",
              "doc": "Update writes updated uniform parameters (BaseColorFactor, AlphaMode, AlphaCutoff, DoubleSided, UseVertexColor) to the GPU uniform buffer with zero allocations.\n\nTexture and sampler bindings are immutable per [GPUUnlitMaterial]: pass either the same handles bound at creation or nil (to keep the existing bindings). Passing a different texture or sampler handle returns an error wrapping [ErrInvalidUnlitMaterial].\n",
              "file": "pkg/render3d/unlit.go",
              "line": 702
            },
            {
              "name": "Valid",
              "anchor": "GPUUnlitMaterial.Valid",
              "recv": "*GPUUnlitMaterial",
              "decl": "func (m *GPUUnlitMaterial) Valid() bool",
              "doc": "Valid reports whether the material's uniform buffer, bind group, and bound texture and sampler are open and belong to a live device.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 768
            }
          ]
        },
        {
          "name": "Gizmo",
          "anchor": "Gizmo",
          "decl": "type Gizmo struct {\n\t// RingSegments controls rotation ring tessellation (default 32).\n\tRingSegments int\n\t// PickThreshold is the ray-hit tolerance as a fraction of scale (default 0.12).\n\tPickThreshold float32\n\t// LineWidth is the stroke width in points for inactive axes (default 2.0).\n\tLineWidth float32\n\t// ActiveLineWidth is the stroke width in points for the active axis (default 3.5).\n\tActiveLineWidth float32\n\t// DepthNO clips at the near plane of an OpenGL-style [-1, 1] depth projection, as [ProjectSegmentNO] does. By default handles clip for [0, 1] depth, matching [math3d.Perspective] and [math3d.Ortho].\n\tDepthNO bool\n}",
          "doc": "Gizmo generates 3D translate/rotate/scale wireframe handles, performs ray\npicking against axes and rings, computes constrained drag deltas with\noptional snapping, and renders into [*core.Drawing] (#287).\n\nThe zero value is ready to use with sensible defaults.\n",
          "file": "pkg/render3d/gizmo.go",
          "line": 57,
          "members": [
            {
              "name": "RingSegments",
              "anchor": "Gizmo.RingSegments",
              "kind": "field",
              "doc": "RingSegments controls rotation ring tessellation (default 32)."
            },
            {
              "name": "PickThreshold",
              "anchor": "Gizmo.PickThreshold",
              "kind": "field",
              "doc": "PickThreshold is the ray-hit tolerance as a fraction of scale (default 0.12)."
            },
            {
              "name": "LineWidth",
              "anchor": "Gizmo.LineWidth",
              "kind": "field",
              "doc": "LineWidth is the stroke width in points for inactive axes (default 2.0)."
            },
            {
              "name": "ActiveLineWidth",
              "anchor": "Gizmo.ActiveLineWidth",
              "kind": "field",
              "doc": "ActiveLineWidth is the stroke width in points for the active axis (default 3.5)."
            },
            {
              "name": "DepthNO",
              "anchor": "Gizmo.DepthNO",
              "kind": "field",
              "doc": "DepthNO clips at the near plane of an OpenGL-style [-1, 1] depth projection, as [ProjectSegmentNO] does. By default handles clip for [0, 1] depth, matching [math3d.Perspective] and [math3d.Ortho]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AppendSegments",
              "anchor": "Gizmo.AppendSegments",
              "recv": "Gizmo",
              "decl": "func (g Gizmo) AppendSegments(dst []GizmoSegment, origin math3d.Vec3, scale float32, mode GizmoMode) []GizmoSegment",
              "doc": "AppendSegments appends the segments [Gizmo.Segments] would return to dst and returns the extended slice, allocating nothing when dst has room.\n",
              "file": "pkg/render3d/gizmo.go",
              "line": 105
            },
            {
              "name": "DragRotate",
              "anchor": "Gizmo.DragRotate",
              "recv": "Gizmo",
              "decl": "func (g Gizmo) DragRotate(origin math3d.Vec3, axis GizmoAxis, startRay, currentRay math3d.Ray, snap float32) float32",
              "doc": "DragRotate computes the signed right-handed rotation angle in radians around\naxis (AxisX, AxisY, or AxisZ) from startRay to currentRay relative to origin.\nWhen snap > 0, the angle is rounded to the nearest multiple of snap radians.\n",
              "file": "pkg/render3d/gizmo.go",
              "line": 501
            },
            {
              "name": "DragRotateQuat",
              "anchor": "Gizmo.DragRotateQuat",
              "recv": "Gizmo",
              "decl": "func (g Gizmo) DragRotateQuat(origin math3d.Vec3, axis GizmoAxis, startRay, currentRay math3d.Ray, snap float32) math3d.Quat",
              "doc": "DragRotateQuat is a convenience wrapper around [Gizmo.DragRotate] returning\nthe rotation delta as a unit [math3d.Quat].\n",
              "file": "pkg/render3d/gizmo.go",
              "line": 535
            },
            {
              "name": "DragScale",
              "anchor": "Gizmo.DragScale",
              "recv": "Gizmo",
              "decl": "func (g Gizmo) DragScale(origin math3d.Vec3, axis GizmoAxis, startRay, currentRay math3d.Ray, snap float32) math3d.Vec3",
              "doc": "DragScale computes the constrained additive 3D scale delta along axis from\nstartRay to currentRay relative to origin (zero when the rays match; apply\nas startScale.Add(delta)).\n\nFor single axes (AxisX/AxisY/AxisZ) and planes (AxisXY/AxisXZ/AxisYZ), only\nthe active components vary. For AxisAll, all three components receive the\nsame uniform delta. When snap > 0, active components are rounded to the\nnearest multiple of snap.\n",
              "file": "pkg/render3d/gizmo.go",
              "line": 551
            },
            {
              "name": "DragTranslate",
              "anchor": "Gizmo.DragTranslate",
              "recv": "Gizmo",
              "decl": "func (g Gizmo) DragTranslate(origin math3d.Vec3, axis GizmoAxis, startRay, currentRay math3d.Ray, snap float32) math3d.Vec3",
              "doc": "DragTranslate computes the exact constrained 3D world-space translation delta\nalong axis from startRay to currentRay relative to origin.\nWhen snap > 0, each active delta component is rounded to the nearest multiple\nof snap.\n",
              "file": "pkg/render3d/gizmo.go",
              "line": 444
            },
            {
              "name": "DrawGizmo",
              "anchor": "Gizmo.DrawGizmo",
              "recv": "Gizmo",
              "decl": "func (g Gizmo) DrawGizmo(d *core.Drawing, viewProj math3d.Mat4, viewport core.Bounds, origin math3d.Vec3, scale float32, mode GizmoMode, activeAxis GizmoAxis)",
              "doc": "DrawGizmo projects and draws g's 3D wireframe handles into d with near-plane\nclipping, drawing activeAxis segments highlighted and thicker on top.\n",
              "file": "pkg/render3d/gizmo.go",
              "line": 599
            },
            {
              "name": "PickAxis",
              "anchor": "Gizmo.PickAxis",
              "recv": "Gizmo",
              "decl": "func (g Gizmo) PickAxis(ray math3d.Ray, origin math3d.Vec3, scale float32, mode GizmoMode) (GizmoAxis, float32)",
              "doc": "PickAxis tests ray against the gizmo handles at origin with size scale in\nmode and returns the picked [GizmoAxis] and the hit ray parameter t >= 0.\nIf no handle lies within the pick threshold, it returns (AxisNone, 0).\n",
              "file": "pkg/render3d/gizmo.go",
              "line": 262
            },
            {
              "name": "Segments",
              "anchor": "Gizmo.Segments",
              "recv": "Gizmo",
              "decl": "func (g Gizmo) Segments(origin math3d.Vec3, scale float32, mode GizmoMode) []GizmoSegment",
              "doc": "Segments generates the 3D wireframe line segments for a gizmo at origin\nscaled by scale in mode. It allocates a new slice; use [Gizmo.AppendSegments] to reuse one.\n",
              "file": "pkg/render3d/gizmo.go",
              "line": 100
            }
          ]
        },
        {
          "name": "GizmoAxis",
          "anchor": "GizmoAxis",
          "decl": "type GizmoAxis uint8",
          "doc": "GizmoAxis identifies a picked or active handle on a [Gizmo] (#287).\n",
          "file": "pkg/render3d/gizmo.go",
          "line": 20,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AxisNone",
                  "anchor": "AxisNone"
                },
                {
                  "name": "AxisX",
                  "anchor": "AxisX"
                },
                {
                  "name": "AxisY",
                  "anchor": "AxisY"
                },
                {
                  "name": "AxisZ",
                  "anchor": "AxisZ"
                },
                {
                  "name": "AxisXY",
                  "anchor": "AxisXY"
                },
                {
                  "name": "AxisXZ",
                  "anchor": "AxisXZ"
                },
                {
                  "name": "AxisYZ",
                  "anchor": "AxisYZ"
                },
                {
                  "name": "AxisAll",
                  "anchor": "AxisAll"
                }
              ],
              "decl": "const (\n\tAxisNone GizmoAxis = iota\n\tAxisX\n\tAxisY\n\tAxisZ\n\tAxisXY\n\tAxisXZ\n\tAxisYZ\n\tAxisAll\n)",
              "doc": "",
              "file": "pkg/render3d/gizmo.go",
              "line": 22
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GizmoMode",
          "anchor": "GizmoMode",
          "decl": "type GizmoMode uint8",
          "doc": "GizmoMode selects the transformation tool represented by a [Gizmo] (#287).\n",
          "file": "pkg/render3d/gizmo.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GizmoTranslate",
                  "anchor": "GizmoTranslate"
                },
                {
                  "name": "GizmoRotate",
                  "anchor": "GizmoRotate"
                },
                {
                  "name": "GizmoScale",
                  "anchor": "GizmoScale"
                }
              ],
              "decl": "const (\n\tGizmoTranslate GizmoMode = iota\n\tGizmoRotate\n\tGizmoScale\n)",
              "doc": "",
              "file": "pkg/render3d/gizmo.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GizmoSegment",
          "anchor": "GizmoSegment",
          "decl": "type GizmoSegment struct {\n\tA, B  math3d.Vec3\n\tAxis  GizmoAxis\n\tColor core.Color\n}",
          "doc": "GizmoSegment is one colored 3D wireframe edge belonging to a [GizmoAxis].\n",
          "file": "pkg/render3d/gizmo.go",
          "line": 46,
          "members": [
            {
              "name": "A",
              "anchor": "GizmoSegment.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "GizmoSegment.B",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Axis",
              "anchor": "GizmoSegment.Axis",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "GizmoSegment.Color",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HDRCubemap",
          "anchor": "HDRCubemap",
          "decl": "type HDRCubemap struct {\n\tSize  int\n\tFaces [6][][3]float32\n\tMips  [][6][][3]float32\n}",
          "doc": "HDRCubemap holds a 6-face square linear floating-point cubemap on the CPU in canonical WebGPU / Metal / Direct3D / OpenGL order ([gpu.CubeFacePosX]..[gpu.CubeFaceNegZ]), preserving high dynamic range radiance above 1.0 without clamping.\n\nFaces holds mip level 0: six slices of Size*Size linear RGB radiance triples in row-major order. Mips optionally holds precomputed mip levels starting at level 1 (such as GGX-prefiltered HDR specular levels from [PrefilterEnvironmentHDR]). Upload to the GPU with [UploadCubemapHDR] (preferring [gpu.FormatRGBA16Float]).\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 705,
          "members": [
            {
              "name": "Size",
              "anchor": "HDRCubemap.Size",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Faces",
              "anchor": "HDRCubemap.Faces",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mips",
              "anchor": "HDRCubemap.Mips",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CubemapFromHDR",
              "anchor": "CubemapFromHDR",
              "decl": "func CubemapFromHDR(r io.Reader, faceSize int) (*HDRCubemap, error)",
              "doc": "CubemapFromHDR decodes a Radiance .hdr (RGBE) equirectangular panorama from r and projects it into a 6-face linear float32 [HDRCubemap] of resolution faceSize x faceSize per face.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 947
            },
            {
              "name": "CubemapFromHDREquirectangular",
              "anchor": "CubemapFromHDREquirectangular",
              "decl": "func CubemapFromHDREquirectangular(img *HDRImage, faceSize int) (*HDRCubemap, error)",
              "doc": "CubemapFromHDREquirectangular projects a linear floating-point latitude-longitude (equirectangular) [HDRImage] into a 6-face [HDRCubemap] of resolution faceSize x faceSize per face using seamless horizontal wrapping and bilinear filtering in linear light, preserving HDR radiance above 1.0.\n\nLongitude u = 0.5 + atan2(z, x) / (2*pi) maps +X to u = 0.5 and +Z to u = 0.75; latitude v = acos(y) / pi maps +Y (zenith) to the top row (v = 0) and -Y (nadir) to the bottom row (v = 1).\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 916
            },
            {
              "name": "CubemapFromHDRImage",
              "anchor": "CubemapFromHDRImage",
              "decl": "func CubemapFromHDRImage(img *HDRImage) (*HDRCubemap, error)",
              "doc": "CubemapFromHDRImage converts a decoded Radiance [*HDRImage] into a 6-face linear [*HDRCubemap].\nWhen img is a 6x1 horizontal cubemap strip (img.Width == 6*img.Height, as written by [EncodeCubemapHDR]),\nits six faces (+X, -X, +Y, -Y, +Z, -Z) are extracted directly with zero resampling. Otherwise img is\ntreated as an equirectangular panorama and projected via [CubemapFromHDREquirectangular].\n",
              "file": "pkg/render3d/probe_io.go",
              "line": 60
            },
            {
              "name": "DecodeCubemapHDR",
              "anchor": "DecodeCubemapHDR",
              "decl": "func DecodeCubemapHDR(r io.Reader) (*HDRCubemap, error)",
              "doc": "DecodeCubemapHDR decodes a Radiance .hdr (RGBE) cubemap strip (as written by [EncodeCubemapHDR])\nor equirectangular panorama from r into a 6-face linear float32 [*HDRCubemap].\n",
              "file": "pkg/render3d/probe_io.go",
              "line": 87
            },
            {
              "name": "GradientSkyHDRCubemap",
              "anchor": "GradientSkyHDRCubemap",
              "decl": "func GradientSkyHDRCubemap(zenith, horizon, ground [3]float32, faceSize int) (*HDRCubemap, error)",
              "doc": "GradientSkyHDRCubemap builds a procedural 3-band linear HDR sky cubemap interpolating smoothly from horizon to zenith across the upper hemisphere (y >= 0) and from horizon to ground across the lower hemisphere (y < 0). Unlike [GradientSkyCubemap], linear RGB values above 1.0 are preserved without clamping.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 877
            },
            {
              "name": "HDRCubemapFromCubemap",
              "anchor": "HDRCubemapFromCubemap",
              "decl": "func HDRCubemapFromCubemap(cm *Cubemap) (*HDRCubemap, error)",
              "doc": "HDRCubemapFromCubemap promotes an LDR RGBA8 [*Cubemap] (decoding sRGB when cm.SRGB is true) into a linear float32 [*HDRCubemap], preserving any precomputed mip levels.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 842
            },
            {
              "name": "NewHDRCubemap",
              "anchor": "NewHDRCubemap",
              "decl": "func NewHDRCubemap(size int) (*HDRCubemap, error)",
              "doc": "NewHDRCubemap allocates a zeroed linear float32 [HDRCubemap] with face edge length size.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 712
            },
            {
              "name": "PrefilterEnvironmentHDR",
              "anchor": "PrefilterEnvironmentHDR",
              "decl": "func PrefilterEnvironmentHDR(env *HDRCubemap, opts PrefilterOptions) (*HDRCubemap, error)",
              "doc": "PrefilterEnvironmentHDR builds a split-sum GGX prefiltered specular [HDRCubemap] mip chain from env (Karis 2013), preserving high dynamic range radiance above 1.0 across all roughness levels. Mip level 0 corresponds to roughness 0 (mirror reflection) and mip level MipLevels-1 corresponds to roughness 1.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 1013
            }
          ],
          "methods": [
            {
              "name": "At",
              "anchor": "HDRCubemap.At",
              "recv": "*HDRCubemap",
              "decl": "func (c *HDRCubemap) At(face gpu.CubeFace, x, y int) [3]float32",
              "doc": "At returns the linear RGB radiance at mip 0 texel (x, y) on face, or zero when out of bounds.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 776
            },
            {
              "name": "MipLevels",
              "anchor": "HDRCubemap.MipLevels",
              "recv": "*HDRCubemap",
              "decl": "func (c *HDRCubemap) MipLevels() int",
              "doc": "MipLevels returns the total number of mip levels stored in c (1 when Mips is empty), or 0 if invalid.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 768
            },
            {
              "name": "Sample",
              "anchor": "HDRCubemap.Sample",
              "recv": "*HDRCubemap",
              "decl": "func (c *HDRCubemap) Sample(dir math3d.Vec3) [3]float32",
              "doc": "Sample bilinearly samples mip level 0 of c in direction dir and returns unclamped linear RGB radiance.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 801
            },
            {
              "name": "SampleLOD",
              "anchor": "HDRCubemap.SampleLOD",
              "recv": "*HDRCubemap",
              "decl": "func (c *HDRCubemap) SampleLOD(dir math3d.Vec3, lod float32) [3]float32",
              "doc": "SampleLOD trilinearly samples c at mip level lod (clamped to [0, MipLevels-1]) in direction dir and returns unclamped linear RGB radiance.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 810
            },
            {
              "name": "Set",
              "anchor": "HDRCubemap.Set",
              "recv": "*HDRCubemap",
              "decl": "func (c *HDRCubemap) Set(face gpu.CubeFace, x, y int, rgb [3]float32)",
              "doc": "Set writes the linear RGB radiance at mip 0 texel (x, y) on face when in bounds.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 784
            },
            {
              "name": "Validate",
              "anchor": "HDRCubemap.Validate",
              "recv": "*HDRCubemap",
              "decl": "func (c *HDRCubemap) Validate() error",
              "doc": "Validate checks that c is non-nil, Size is positive, every base face has Size*Size finite non-negative linear RGB texels, and every optional mip level has the exact expected dimensions down to 1x1. Every error wraps [ErrInvalidCubemap].\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 725
            }
          ]
        },
        {
          "name": "HDRImage",
          "anchor": "HDRImage",
          "decl": "type HDRImage struct {\n\tWidth  int\n\tHeight int\n\tRGB    [][3]float32\n}",
          "doc": "HDRImage holds a 2D linear floating-point RGB image (such as a decoded Radiance .hdr equirectangular environment map) in row-major order, top row first.\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 303,
          "members": [
            {
              "name": "Width",
              "anchor": "HDRImage.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "HDRImage.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RGB",
              "anchor": "HDRImage.RGB",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DecodeHDR",
              "anchor": "DecodeHDR",
              "decl": "func DecodeHDR(r io.Reader) (*HDRImage, error)",
              "doc": "DecodeHDR decodes a Radiance RGBE (.hdr / .pic) image stream into linear floating-point RGB radiance values. It supports standard adaptive RLE, old-style RLE, and uncompressed scanlines, as well as the standard Radiance EXPOSURE header and +/-Y +/-X scanline orientations. Malformed streams return an error wrapping [ErrInvalidCubemap].\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 357
            },
            {
              "name": "NewHDRImage",
              "anchor": "NewHDRImage",
              "decl": "func NewHDRImage(width, height int) (*HDRImage, error)",
              "doc": "NewHDRImage allocates a zeroed linear RGB HDRImage of dimensions width x height. Non-positive dimensions return an error wrapping [ErrInvalidCubemap].\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 310
            }
          ],
          "methods": [
            {
              "name": "At",
              "anchor": "HDRImage.At",
              "recv": "*HDRImage",
              "decl": "func (img *HDRImage) At(x, y int) [3]float32",
              "doc": "At returns the linear RGB radiance at (x, y), or zero when out of bounds.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 341
            },
            {
              "name": "Set",
              "anchor": "HDRImage.Set",
              "recv": "*HDRImage",
              "decl": "func (img *HDRImage) Set(x, y int, rgb [3]float32)",
              "doc": "Set writes the linear RGB radiance at (x, y) when in bounds.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 349
            },
            {
              "name": "Validate",
              "anchor": "HDRImage.Validate",
              "recv": "*HDRImage",
              "decl": "func (img *HDRImage) Validate() error",
              "doc": "Validate checks that img is non-nil, has positive dimensions matching len(RGB), and contains only finite non-negative linear radiance values. Every error wraps [ErrInvalidCubemap].\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 322
            }
          ]
        },
        {
          "name": "HDRTarget",
          "anchor": "HDRTarget",
          "decl": "type HDRTarget struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "HDRTarget owns an offscreen linear floating-point [gpu.RenderTarget] ([gpu.FormatRGBA16Float] with automatic fallback to [gpu.FormatRGBA8Unorm] on devices without half-float support) for rendering 3D scenes before tone mapping (#250).\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 613,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHDRTarget",
              "anchor": "NewHDRTarget",
              "decl": "func NewHDRTarget(cx *core.Scope, dev *gpu.Device, desc HDRTargetDesc) (*HDRTarget, error)",
              "doc": "NewHDRTarget allocates an [HDRTarget] on dev scoped to cx (nil for resources the caller closes manually, as in headless tests).\n\nIt prefers [gpu.FormatRGBA16Float] when [SupportsHDR](dev) is true and gracefully falls back to [gpu.FormatRGBA8Unorm] otherwise unless desc.DisableFallback is set.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 626
            }
          ],
          "methods": [
            {
              "name": "ByteSize",
              "anchor": "HDRTarget.ByteSize",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) ByteSize() uint64",
              "doc": "ByteSize returns the estimated GPU memory in bytes held by the target's color, resolve, and depth attachments, for [RenderStats] and [Budget] accounting.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 794
            },
            {
              "name": "Close",
              "anchor": "HDRTarget.Close",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) Close() error",
              "doc": "Close releases the target's GPU attachments. It is safe to call on nil or more than once.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 872
            },
            {
              "name": "ColorAttachment",
              "anchor": "HDRTarget.ColorAttachment",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) ColorAttachment(clearColor core.Color) gpu.ColorAttachment",
              "doc": "ColorAttachment returns a [gpu.ColorAttachment] configured to clear and draw into t (automatically wiring ResolveTarget when multisampled).\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 811
            },
            {
              "name": "ColorAttachmentTexture",
              "anchor": "HDRTarget.ColorAttachmentTexture",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) ColorAttachmentTexture() *gpu.Texture",
              "doc": "ColorAttachmentTexture returns the color texture rendered into by the 3D scene pass (multisampled when SampleCount > 1).\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 728
            },
            {
              "name": "ColorTexture",
              "anchor": "HDRTarget.ColorTexture",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) ColorTexture() *gpu.Texture",
              "doc": "ColorTexture returns the resolved texture suitable for sampling in [ToneMapPass]: the MSAA resolve texture when multisampled, otherwise the color attachment texture.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 717
            },
            {
              "name": "DepthFormat",
              "anchor": "HDRTarget.DepthFormat",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) DepthFormat() gpu.TextureFormat",
              "doc": "DepthFormat returns the depth/stencil format, or [gpu.FormatUndefined] if none.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 752
            },
            {
              "name": "DepthTexture",
              "anchor": "HDRTarget.DepthTexture",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) DepthTexture() *gpu.Texture",
              "doc": "DepthTexture returns the optional depth/stencil texture, or nil when created without a DepthFormat.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 736
            },
            {
              "name": "Format",
              "anchor": "HDRTarget.Format",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) Format() gpu.TextureFormat",
              "doc": "Format returns the actual color format allocated ([gpu.FormatRGBA16Float] on HDR-capable devices, or [gpu.FormatRGBA8Unorm] when fallen back).\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 744
            },
            {
              "name": "Height",
              "anchor": "HDRTarget.Height",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) Height() uint32",
              "doc": "Height returns the target height in physical pixels.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 776
            },
            {
              "name": "IsHDR",
              "anchor": "HDRTarget.IsHDR",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) IsHDR() bool",
              "doc": "IsHDR reports whether the target uses a floating-point color format capable of storing linear values above 1.0 without clamping.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 784
            },
            {
              "name": "RenderPassDesc",
              "anchor": "HDRTarget.RenderPassDesc",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) RenderPassDesc(clearColor core.Color, clearDepth float32) gpu.RenderPassDesc",
              "doc": "RenderPassDesc returns a [gpu.RenderPassDesc] targeting t's color attachment and, when present, its depth attachment.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 825
            },
            {
              "name": "RenderTarget",
              "anchor": "HDRTarget.RenderTarget",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) RenderTarget() *gpu.RenderTarget",
              "doc": "RenderTarget returns the underlying [*gpu.RenderTarget].\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 709
            },
            {
              "name": "Resize",
              "anchor": "HDRTarget.Resize",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) Resize(dev *gpu.Device, width, height uint32) error",
              "doc": "Resize recreates t's attachments at width x height when the dimensions differ or the existing target is no longer valid. Pass dev (for example frame.Device()) after a device restore, or nil to reuse the original device.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 845
            },
            {
              "name": "SampleCount",
              "anchor": "HDRTarget.SampleCount",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) SampleCount() int",
              "doc": "SampleCount returns the effective MSAA sample count (1 or 4).\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 760
            },
            {
              "name": "Valid",
              "anchor": "HDRTarget.Valid",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) Valid() bool",
              "doc": "Valid reports whether the target's GPU textures are open and belong to a live device.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 789
            },
            {
              "name": "Width",
              "anchor": "HDRTarget.Width",
              "recv": "*HDRTarget",
              "decl": "func (t *HDRTarget) Width() uint32",
              "doc": "Width returns the target width in physical pixels.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 768
            }
          ]
        },
        {
          "name": "HDRTargetDesc",
          "anchor": "HDRTargetDesc",
          "decl": "type HDRTargetDesc struct {\n\t// Label names the offscreen textures in GPU capture tools.\n\tLabel string\n\t// Width and Height are the target dimensions in physical pixels. Both must be positive.\n\tWidth  uint32\n\tHeight uint32\n\t// DepthFormat optionally creates a matching depth/stencil attachment (for example [gpu.FormatDepth24Plus]). Leave [gpu.FormatUndefined] for a color-only HDR target.\n\tDepthFormat gpu.TextureFormat\n\t// SampleCount enables MSAA when > 1 (for example 4). If the device does not report [gpu.Features].MSAA4x, it falls back to 1.\n\tSampleCount int\n\t// DisableFallback prevents falling back to [gpu.FormatRGBA8Unorm] when [gpu.FormatRGBA16Float] is unsupported, returning [gpu.ErrUnsupported].\n\tDisableFallback bool\n\t// Retained opts into automatic recreation after a GPU device loss (see [gpu.RenderTargetDesc].Retained).\n\tRetained bool\n}",
          "doc": "HDRTargetDesc configures [NewHDRTarget].\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 596,
          "members": [
            {
              "name": "Label",
              "anchor": "HDRTargetDesc.Label",
              "kind": "field",
              "doc": "Label names the offscreen textures in GPU capture tools."
            },
            {
              "name": "Width",
              "anchor": "HDRTargetDesc.Width",
              "kind": "field",
              "doc": "Width and Height are the target dimensions in physical pixels. Both must be positive."
            },
            {
              "name": "Height",
              "anchor": "HDRTargetDesc.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DepthFormat",
              "anchor": "HDRTargetDesc.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat optionally creates a matching depth/stencil attachment (for example [gpu.FormatDepth24Plus]). Leave [gpu.FormatUndefined] for a color-only HDR target."
            },
            {
              "name": "SampleCount",
              "anchor": "HDRTargetDesc.SampleCount",
              "kind": "field",
              "doc": "SampleCount enables MSAA when > 1 (for example 4). If the device does not report [gpu.Features].MSAA4x, it falls back to 1."
            },
            {
              "name": "DisableFallback",
              "anchor": "HDRTargetDesc.DisableFallback",
              "kind": "field",
              "doc": "DisableFallback prevents falling back to [gpu.FormatRGBA8Unorm] when [gpu.FormatRGBA16Float] is unsupported, returning [gpu.ErrUnsupported]."
            },
            {
              "name": "Retained",
              "anchor": "HDRTargetDesc.Retained",
              "kind": "field",
              "doc": "Retained opts into automatic recreation after a GPU device loss (see [gpu.RenderTargetDesc].Retained)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "IBLBufferOptions",
          "anchor": "IBLBufferOptions",
          "decl": "type IBLBufferOptions struct {\n\t// Label names the buffer, bind group layout, and bind group in GPU capture tools.\n\tLabel string\n\t// Retained keeps a CPU shadow copy so NSGo recreates the uniform buffer, layout, and bind group with their latest data after a device loss. The prefiltered cubemap must be retained too.\n\tRetained bool\n}",
          "doc": "IBLBufferOptions configures [NewGPUIBLBuffer].\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1275,
          "members": [
            {
              "name": "Label",
              "anchor": "IBLBufferOptions.Label",
              "kind": "field",
              "doc": "Label names the buffer, bind group layout, and bind group in GPU capture tools."
            },
            {
              "name": "Retained",
              "anchor": "IBLBufferOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps a CPU shadow copy so NSGo recreates the uniform buffer, layout, and bind group with their latest data after a device loss. The prefiltered cubemap must be retained too."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "IBLUniform",
          "anchor": "IBLUniform",
          "decl": "type IBLUniform struct {\n\tSH        IrradianceSH\n\tIntensity float32\n\tMaxLOD    float32\n}",
          "doc": "IBLUniform holds the diffuse L2 spherical harmonic irradiance coefficients and specular prefilter parameters bound by [GPUIBLBuffer] and read by [IBLWGSL].\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1213,
          "members": [
            {
              "name": "SH",
              "anchor": "IBLUniform.SH",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Intensity",
              "anchor": "IBLUniform.Intensity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxLOD",
              "anchor": "IBLUniform.MaxLOD",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewIBLUniform",
              "anchor": "NewIBLUniform",
              "decl": "func NewIBLUniform(sh IrradianceSH, prefilter *GPUCubemap, intensity float32) IBLUniform",
              "doc": "NewIBLUniform populates an [IBLUniform] from sh, prefilter's maximum mip LOD, and intensity.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1220
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "IBLUniform.Encode",
              "recv": "*IBLUniform",
              "decl": "func (u *IBLUniform) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst as the little-endian [IBLUniformSize]-byte block matching [IBLWGSL] and returns dst[:IBLUniformSize]. It panics if len(dst) < IBLUniformSize.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1251
            },
            {
              "name": "Validate",
              "anchor": "IBLUniform.Validate",
              "recv": "IBLUniform",
              "decl": "func (u IBLUniform) Validate() error",
              "doc": "Validate reports whether every spherical harmonic coefficient is finite and Intensity and MaxLOD are finite and non-negative. Every error wraps [ErrInvalidIBL].\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1233
            }
          ]
        },
        {
          "name": "InstanceBatch",
          "anchor": "InstanceBatch",
          "decl": "type InstanceBatch struct {\n\tPipelineID uint32\n\tMaterialID uint32\n\tMeshID     uint32\n\tBlend      BlendMode\n\tTransforms []math3d.Mat4\n\tTriangles  uint32 // per-instance triangle count\n\tVertices   uint32 // per-instance vertex count\n}",
          "doc": "InstanceBatch groups consecutive opaque/alpha-mask draws sharing an identical\n(PipelineID, MaterialID, MeshID, Blend) state key so a GPU backend can submit\nthem in a single instanced draw call (#246).\n",
          "file": "pkg/render3d/queue.go",
          "line": 76,
          "members": [
            {
              "name": "PipelineID",
              "anchor": "InstanceBatch.PipelineID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaterialID",
              "anchor": "InstanceBatch.MaterialID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MeshID",
              "anchor": "InstanceBatch.MeshID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blend",
              "anchor": "InstanceBatch.Blend",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transforms",
              "anchor": "InstanceBatch.Transforms",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triangles",
              "anchor": "InstanceBatch.Triangles",
              "kind": "field",
              "doc": "per-instance triangle count"
            },
            {
              "name": "Vertices",
              "anchor": "InstanceBatch.Vertices",
              "kind": "field",
              "doc": "per-instance vertex count"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "IrradianceSH",
          "anchor": "IrradianceSH",
          "decl": "type IrradianceSH struct {\n\tCoeff [9][3]float32\n}",
          "doc": "IrradianceSH stores the 9 pre-convolved L2 real spherical harmonic RGB coefficients representing diffuse cosine-weighted irradiance E(n) = integral L(w) * max(n·w, 0) dw (Ramamoorthi & Hanrahan 2001).\n\nFor a uniform environment with linear radiance C, [IrradianceSH.Evaluate] returns pi * C at every normal; Lambertian diffuse shading multiplies by albedo / pi.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 908,
          "members": [
            {
              "name": "Coeff",
              "anchor": "IrradianceSH.Coeff",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ComputeIrradianceSH",
              "anchor": "ComputeIrradianceSH",
              "decl": "func ComputeIrradianceSH(env *Cubemap) (IrradianceSH, error)",
              "doc": "ComputeIrradianceSH projects env's base mip level onto L2 spherical harmonics using exact per-texel cubemap solid angles (which sum to exactly 4*pi across all six faces) and applies the Lambertian cosine-lobe convolution weights (pi, 2*pi/3, pi/4).\n",
              "file": "pkg/render3d/skybox.go",
              "line": 913
            },
            {
              "name": "ComputeIrradianceSHFromFunc",
              "anchor": "ComputeIrradianceSHFromFunc",
              "decl": "func ComputeIrradianceSHFromFunc(size int, sample func(dir math3d.Vec3) [3]float32) (IrradianceSH, error)",
              "doc": "ComputeIrradianceSHFromFunc integrates linear RGB radiance returned by sample(dir) over a size x size cubemap using exact per-texel solid angles and cosine-lobe convolution weights, matching [ComputeIrradianceSH] without clamping radiance to 8-bit LDR.\n",
              "file": "pkg/render3d/probes.go",
              "line": 238
            },
            {
              "name": "ComputeIrradianceSHHDR",
              "anchor": "ComputeIrradianceSHHDR",
              "decl": "func ComputeIrradianceSHHDR(env *HDRCubemap) (IrradianceSH, error)",
              "doc": "ComputeIrradianceSHHDR projects env's base mip level onto L2 spherical harmonics using exact analytical per-texel cubemap solid angles (summing to 4*pi across all six faces) and applies the Lambertian cosine-lobe convolution weights (pi, 2*pi/3, pi/4), preserving HDR radiance above 1.0.\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 959
            },
            {
              "name": "ProjectDirectionIrradianceSH",
              "anchor": "ProjectDirectionIrradianceSH",
              "decl": "func ProjectDirectionIrradianceSH(dir math3d.Vec3, radiance [3]float32) IrradianceSH",
              "doc": "ProjectDirectionIrradianceSH projects a directional radiance sample along dir onto the cosine-convolved L2 spherical harmonic basis used by [IrradianceSH]. Scale each sample by its solid angle dOmega and sum with [IrradianceSH.Add] to integrate an arbitrary directional environment.\n",
              "file": "pkg/render3d/probes.go",
              "line": 208
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "IrradianceSH.Add",
              "recv": "IrradianceSH",
              "decl": "func (sh IrradianceSH) Add(other IrradianceSH) IrradianceSH",
              "doc": "Add returns the component-wise sum sh + other.\n",
              "file": "pkg/render3d/probes.go",
              "line": 174
            },
            {
              "name": "Evaluate",
              "anchor": "IrradianceSH.Evaluate",
              "recv": "IrradianceSH",
              "decl": "func (sh IrradianceSH) Evaluate(normal math3d.Vec3) [3]float32",
              "doc": "Evaluate evaluates the diffuse irradiance E(normal) from sh, matching [IBLWGSL]'s evaluate_irradiance_sh. Negative values from high-contrast ringing are clamped to zero.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 968
            },
            {
              "name": "Lerp",
              "anchor": "IrradianceSH.Lerp",
              "recv": "IrradianceSH",
              "decl": "func (sh IrradianceSH) Lerp(other IrradianceSH, t float32) IrradianceSH",
              "doc": "Lerp linearly interpolates between sh (t = 0) and other (t = 1).\n",
              "file": "pkg/render3d/probes.go",
              "line": 196
            },
            {
              "name": "Scale",
              "anchor": "IrradianceSH.Scale",
              "recv": "IrradianceSH",
              "decl": "func (sh IrradianceSH) Scale(k float32) IrradianceSH",
              "doc": "Scale returns sh multiplied by scalar k.\n",
              "file": "pkg/render3d/probes.go",
              "line": 185
            },
            {
              "name": "ToCubemap",
              "anchor": "IrradianceSH.ToCubemap",
              "recv": "IrradianceSH",
              "decl": "func (sh IrradianceSH) ToCubemap(faceSize int) (*Cubemap, error)",
              "doc": "ToCubemap renders sh into a low-resolution diffuse radiance cubemap storing E(n) / pi per texel (so a uniform [0, 1] environment maps back into [0, 1] without clipping).\n",
              "file": "pkg/render3d/skybox.go",
              "line": 1001
            }
          ]
        },
        {
          "name": "KTX2Upload",
          "anchor": "KTX2Upload",
          "decl": "type KTX2Upload struct {\n\t// Label names the texture in GPU capture tools.\n\tLabel string\n\t// Retained keeps a CPU copy of every mip level so NSGo recreates the texture after a device loss (see [gpu.TextureDesc].Retained).\n\tRetained bool\n\t// Sampler is the sampler the texture is drawn with before the file's filter is applied: its wrapping, LOD bounds and label are kept, and its filters are kept when the file names none.\n\tSampler SamplerOptions\n\t// ForceRGBA8 uploads every level decoded to RGBA8 even when dev supports the file's block format or one a UASTC or ETC1S file could be transcoded to.\n\tForceRGBA8 bool\n}",
          "doc": "KTX2Upload configures [LoadKTX2].\n",
          "file": "pkg/render3d/ktx2.go",
          "line": 15,
          "members": [
            {
              "name": "Label",
              "anchor": "KTX2Upload.Label",
              "kind": "field",
              "doc": "Label names the texture in GPU capture tools."
            },
            {
              "name": "Retained",
              "anchor": "KTX2Upload.Retained",
              "kind": "field",
              "doc": "Retained keeps a CPU copy of every mip level so NSGo recreates the texture after a device loss (see [gpu.TextureDesc].Retained)."
            },
            {
              "name": "Sampler",
              "anchor": "KTX2Upload.Sampler",
              "kind": "field",
              "doc": "Sampler is the sampler the texture is drawn with before the file's filter is applied: its wrapping, LOD bounds and label are kept, and its filters are kept when the file names none."
            },
            {
              "name": "ForceRGBA8",
              "anchor": "KTX2Upload.ForceRGBA8",
              "kind": "field",
              "doc": "ForceRGBA8 uploads every level decoded to RGBA8 even when dev supports the file's block format or one a UASTC or ETC1S file could be transcoded to."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LODLevel",
          "anchor": "LODLevel",
          "decl": "type LODLevel struct {\n\tMeshID         uint32\n\tMaxDistance    float32\n\tMinScreenRatio float32\n\tTriangles      uint32\n\tVertices       uint32\n}",
          "doc": "LODLevel describes one mesh detail level for a [DrawItem], ordered from\nfinest (index 0) to coarsest (last index).\n\nA level is eligible when its active thresholds are satisfied:\n  - If MaxDistance > 0, camera distance must be <= MaxDistance.\n  - If MinScreenRatio > 0, projected screen-height ratio must be >= MinScreenRatio.\n  - Leaving both zero marks an unbounded coarsest fallback level.\n",
          "file": "pkg/render3d/lod.go",
          "line": 12,
          "members": [
            {
              "name": "MeshID",
              "anchor": "LODLevel.MeshID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxDistance",
              "anchor": "LODLevel.MaxDistance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinScreenRatio",
              "anchor": "LODLevel.MinScreenRatio",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triangles",
              "anchor": "LODLevel.Triangles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vertices",
              "anchor": "LODLevel.Vertices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayeredDrawItem",
          "anchor": "LayeredDrawItem",
          "decl": "type LayeredDrawItem struct {\n\tItem  DrawItem\n\tLayer uint32\n}",
          "doc": "LayeredDrawItem pairs a [DrawItem] with a 32-bit layer bitmask matching [scene3d.Node.Layer] for per-camera layer filtering before [Queue.Build].\n",
          "file": "pkg/render3d/viewport.go",
          "line": 617,
          "members": [
            {
              "name": "Item",
              "anchor": "LayeredDrawItem.Item",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "LayeredDrawItem.Layer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LightBufferOptions",
          "anchor": "LightBufferOptions",
          "decl": "type LightBufferOptions struct {\n\t// Label names the buffer, bind group layout and bind group in GPU capture tools.\n\tLabel string\n\t// Retained keeps a CPU copy of the uniform buffer so NSGo automatically recreates the buffer,\n\t// its bind group layout, and its bind group after a device loss (see [gpu.BufferDesc].Retained).\n\tRetained bool\n}",
          "doc": "LightBufferOptions configures [NewLightBuffer].\n",
          "file": "pkg/render3d/light.go",
          "line": 646,
          "members": [
            {
              "name": "Label",
              "anchor": "LightBufferOptions.Label",
              "kind": "field",
              "doc": "Label names the buffer, bind group layout and bind group in GPU capture tools."
            },
            {
              "name": "Retained",
              "anchor": "LightBufferOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps a CPU copy of the uniform buffer so NSGo automatically recreates the buffer,\nits bind group layout, and its bind group after a device loss (see [gpu.BufferDesc].Retained)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LightProbe",
          "anchor": "LightProbe",
          "decl": "type LightProbe struct {\n\tID       string\n\tPosition math3d.Vec3\n\tRadius   float32 // optional influence radius; <= 0 means unbounded inverse-distance blending\n\tSH       IrradianceSH\n\tDirty    bool\n\tBaked    bool\n}",
          "doc": "LightProbe stores baked L2 diffuse spherical harmonic irradiance ([IrradianceSH]) at a world-space sample point for shading dynamic objects.\n",
          "file": "pkg/render3d/probes.go",
          "line": 956,
          "members": [
            {
              "name": "ID",
              "anchor": "LightProbe.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Position",
              "anchor": "LightProbe.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "LightProbe.Radius",
              "kind": "field",
              "doc": "optional influence radius; <= 0 means unbounded inverse-distance blending"
            },
            {
              "name": "SH",
              "anchor": "LightProbe.SH",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dirty",
              "anchor": "LightProbe.Dirty",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Baked",
              "anchor": "LightProbe.Baked",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Validate",
              "anchor": "LightProbe.Validate",
              "recv": "LightProbe",
              "decl": "func (p LightProbe) Validate() error",
              "doc": "Validate checks that p's position, radius, and SH coefficients are finite and non-negative where required. Every error wraps [ErrInvalidProbe].\n",
              "file": "pkg/render3d/probes.go",
              "line": 966
            }
          ]
        },
        {
          "name": "LightProbeGrid",
          "anchor": "LightProbeGrid",
          "decl": "type LightProbeGrid struct {\n\tBounds math3d.AABB\n\tCounts [3]int         // probe counts along X, Y, Z (each >= 1)\n\tProbes []IrradianceSH // flattened (iz*ny + iy)*nx + ix\n}",
          "doc": "LightProbeGrid is a regular 3D axis-aligned lattice of L2 [IrradianceSH] light probes interpolated trilinearly at runtime.\n\nLight probe bakes are runtime-only data generated on load or on request rather than persisted in text scene files.\n",
          "file": "pkg/render3d/probes.go",
          "line": 986,
          "members": [
            {
              "name": "Bounds",
              "anchor": "LightProbeGrid.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Counts",
              "anchor": "LightProbeGrid.Counts",
              "kind": "field",
              "doc": "probe counts along X, Y, Z (each >= 1)"
            },
            {
              "name": "Probes",
              "anchor": "LightProbeGrid.Probes",
              "kind": "field",
              "doc": "flattened (iz*ny + iy)*nx + ix"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadLightProbeGridFS",
              "anchor": "LoadLightProbeGridFS",
              "decl": "func LoadLightProbeGridFS(fsys fs.FS, name string) (*LightProbeGrid, error)",
              "doc": "LoadLightProbeGridFS reads, parses, and converts a baked light probe grid YAML file from fsys into\na runtime [*LightProbeGrid].\n",
              "file": "pkg/render3d/probe_io.go",
              "line": 317
            },
            {
              "name": "NewLightProbeGrid",
              "anchor": "NewLightProbeGrid",
              "decl": "func NewLightProbeGrid(bounds math3d.AABB, nx, ny, nz int) (*LightProbeGrid, error)",
              "doc": "NewLightProbeGrid allocates a zeroed nx x ny x nz [LightProbeGrid] covering bounds.\n",
              "file": "pkg/render3d/probes.go",
              "line": 993
            }
          ],
          "methods": [
            {
              "name": "At",
              "anchor": "LightProbeGrid.At",
              "recv": "*LightProbeGrid",
              "decl": "func (g *LightProbeGrid) At(ix, iy, iz int) IrradianceSH",
              "doc": "At returns the [IrradianceSH] coefficients stored at grid cell (ix, iy, iz), clamping coordinates into range. Returns a zero [IrradianceSH] without panicking when g is nil, has non-positive Counts, or has fewer entries in Probes than Counts requires.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1086
            },
            {
              "name": "Bake",
              "anchor": "LightProbeGrid.Bake",
              "recv": "*LightProbeGrid",
              "decl": "func (g *LightProbeGrid) Bake(size int, sample func(pos, dir math3d.Vec3) [3]float32) error",
              "doc": "Bake populates every probe in g by integrating sample(probePos, dir) over a cubemap of resolution size x size per probe via [ComputeIrradianceSHFromFunc].\n",
              "file": "pkg/render3d/probes.go",
              "line": 1097
            },
            {
              "name": "ProbePosition",
              "anchor": "LightProbeGrid.ProbePosition",
              "recv": "*LightProbeGrid",
              "decl": "func (g *LightProbeGrid) ProbePosition(ix, iy, iz int) math3d.Vec3",
              "doc": "ProbePosition returns the world position of grid probe (ix, iy, iz), or the zero vector if g is nil.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1056
            },
            {
              "name": "Sample",
              "anchor": "LightProbeGrid.Sample",
              "recv": "*LightProbeGrid",
              "decl": "func (g *LightProbeGrid) Sample(worldPos math3d.Vec3) IrradianceSH",
              "doc": "Sample trilinearly interpolates [IrradianceSH] coefficients at worldPos, clamping positions outside Bounds to the boundary cell. Returns a zero [IrradianceSH] without panicking when g has invalid storage or worldPos is non-finite.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1125
            },
            {
              "name": "Set",
              "anchor": "LightProbeGrid.Set",
              "recv": "*LightProbeGrid",
              "decl": "func (g *LightProbeGrid) Set(ix, iy, iz int, sh IrradianceSH)",
              "doc": "Set writes sh to grid cell (ix, iy, iz). Out-of-range coordinates or a grid whose Probes slice is smaller than Counts are ignored safely without panicking.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1075
            },
            {
              "name": "Validate",
              "anchor": "LightProbeGrid.Validate",
              "recv": "*LightProbeGrid",
              "decl": "func (g *LightProbeGrid) Validate() error",
              "doc": "Validate checks that g has finite non-empty bounds, positive counts, and len(Probes) == Counts[0]*Counts[1]*Counts[2]. Every error wraps [ErrInvalidProbe].\n",
              "file": "pkg/render3d/probes.go",
              "line": 1034
            }
          ]
        },
        {
          "name": "LightProbeGridDoc",
          "anchor": "LightProbeGridDoc",
          "decl": "type LightProbeGridDoc struct {\n\t// Version is the schema version; it must be [LightProbeGridVersion] (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// BoundsMin is the minimum [x, y, z] corner of the grid's world-space AABB.\n\tBoundsMin ProbeVec3 `yaml:\"boundsMin\" schema:\"required\"`\n\t// BoundsMax is the maximum [x, y, z] corner of the grid's world-space AABB.\n\tBoundsMax ProbeVec3 `yaml:\"boundsMax\" schema:\"required\"`\n\t// Counts holds the [nx, ny, nz] probe counts along the X, Y, and Z axes (each >= 1).\n\tCounts ProbeCounts `yaml:\"counts\" schema:\"required\"`\n\t// Probes holds the nx*ny*nz baked irradiance probes in (iz*ny + iy)*nx + ix order.\n\tProbes []LightProbeSHDoc `yaml:\"probes\" schema:\"required\"`\n}",
          "doc": "LightProbeGridDoc is the versioned YAML document storing a baked [LightProbeGrid]: its world-space\naxis-aligned bounds, [nx, ny, nz] lattice counts, and nx*ny*nz per-probe L2 spherical harmonic\nirradiance entries in (iz*ny + iy)*nx + ix order.\n",
          "file": "pkg/render3d/probe_io.go",
          "line": 148,
          "members": [
            {
              "name": "Version",
              "anchor": "LightProbeGridDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be [LightProbeGridVersion] (1)."
            },
            {
              "name": "BoundsMin",
              "anchor": "LightProbeGridDoc.BoundsMin",
              "kind": "field",
              "doc": "BoundsMin is the minimum [x, y, z] corner of the grid's world-space AABB."
            },
            {
              "name": "BoundsMax",
              "anchor": "LightProbeGridDoc.BoundsMax",
              "kind": "field",
              "doc": "BoundsMax is the maximum [x, y, z] corner of the grid's world-space AABB."
            },
            {
              "name": "Counts",
              "anchor": "LightProbeGridDoc.Counts",
              "kind": "field",
              "doc": "Counts holds the [nx, ny, nz] probe counts along the X, Y, and Z axes (each >= 1)."
            },
            {
              "name": "Probes",
              "anchor": "LightProbeGridDoc.Probes",
              "kind": "field",
              "doc": "Probes holds the nx*ny*nz baked irradiance probes in (iz*ny + iy)*nx + ix order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LightProbeGridToDoc",
              "anchor": "LightProbeGridToDoc",
              "decl": "func LightProbeGridToDoc(g *LightProbeGrid) (*LightProbeGridDoc, error)",
              "doc": "LightProbeGridToDoc converts a validated [*LightProbeGrid] into a versioned [*LightProbeGridDoc]\nready to serialize with [EncodeLightProbeGrid].\n",
              "file": "pkg/render3d/probe_io.go",
              "line": 179
            },
            {
              "name": "ParseLightProbeGrid",
              "anchor": "ParseLightProbeGrid",
              "decl": "func ParseLightProbeGrid(data []byte) (*LightProbeGridDoc, error)",
              "doc": "ParseLightProbeGrid strictly decodes and validates a versioned baked light probe grid YAML file,\nrefusing unknown fields, trailing documents, invalid versions, and non-finite coefficients.\n",
              "file": "pkg/render3d/probe_io.go",
              "line": 271
            }
          ],
          "methods": [
            {
              "name": "ToGrid",
              "anchor": "LightProbeGridDoc.ToGrid",
              "recv": "*LightProbeGridDoc",
              "decl": "func (d *LightProbeGridDoc) ToGrid() (*LightProbeGrid, error)",
              "doc": "ToGrid converts a validated [LightProbeGridDoc] into a runtime [*LightProbeGrid].\n",
              "file": "pkg/render3d/probe_io.go",
              "line": 208
            }
          ]
        },
        {
          "name": "LightProbeSHDoc",
          "anchor": "LightProbeSHDoc",
          "decl": "type LightProbeSHDoc struct {\n\t// SH holds the 9 cosine-convolved L2 spherical harmonic RGB coefficients matching [IrradianceSH.Coeff].\n\tSH [9]ProbeVec3 `yaml:\"sh\" schema:\"required\"`\n}",
          "doc": "LightProbeSHDoc stores the 9 RGB L2 spherical harmonic irradiance coefficients of one baked light probe.\n",
          "file": "pkg/render3d/probe_io.go",
          "line": 140,
          "members": [
            {
              "name": "SH",
              "anchor": "LightProbeSHDoc.SH",
              "kind": "field",
              "doc": "SH holds the 9 cosine-convolved L2 spherical harmonic RGB coefficients matching [IrradianceSH.Coeff]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LightProbeVolume",
          "anchor": "LightProbeVolume",
          "decl": "type LightProbeVolume struct {\n\tGrid       *LightProbeGrid\n\tProbes     []LightProbe\n\tFallbackSH IrradianceSH\n}",
          "doc": "LightProbeVolume combines an optional regular [LightProbeGrid] and/or scattered [LightProbe] points (plus an optional FallbackSH) so dynamic objects pick up smoothly interpolated baked indirect lighting anywhere in a scene.\n\nLight probe volumes are runtime-only data generated on load or on request rather than persisted in text scene files.\n",
          "file": "pkg/render3d/probes.go",
          "line": 1165,
          "members": [
            {
              "name": "Grid",
              "anchor": "LightProbeVolume.Grid",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probes",
              "anchor": "LightProbeVolume.Probes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FallbackSH",
              "anchor": "LightProbeVolume.FallbackSH",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "LightProbeVolume.Add",
              "recv": "*LightProbeVolume",
              "decl": "func (v *LightProbeVolume) Add(probes ...LightProbe)",
              "doc": "Add appends scattered probes to the volume.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1172
            },
            {
              "name": "SampleLightProbes",
              "anchor": "LightProbeVolume.SampleLightProbes",
              "recv": "*LightProbeVolume",
              "decl": "func (v *LightProbeVolume) SampleLightProbes(worldPos math3d.Vec3) IrradianceSH",
              "doc": "SampleLightProbes returns the interpolated [IrradianceSH] lighting at worldPos. Regular grid probes use trilinear interpolation; scattered probes use smooth inverse-distance weighting (respecting per-probe Radius when positive) and blend seamlessly into Grid or FallbackSH outside finite probe radii. Non-finite worldPos safely returns FallbackSH.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1177
            }
          ]
        },
        {
          "name": "LightRig",
          "anchor": "LightRig",
          "decl": "type LightRig struct {\n\tAmbient     AmbientLight\n\tDirectional []DirectionalLight\n\tPoint       []PointLight\n\tSpot        []SpotLight\n}",
          "doc": "LightRig holds the active lights for a 3D scene: an ambient fill, up to [MaxDirectionalLights] directional lights, up to [MaxPointLights] point lights, and up to [MaxSpotLights] spot lights, all shaded together by one pass.\n",
          "file": "pkg/render3d/light.go",
          "line": 452,
          "members": [
            {
              "name": "Ambient",
              "anchor": "LightRig.Ambient",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Directional",
              "anchor": "LightRig.Directional",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point",
              "anchor": "LightRig.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spot",
              "anchor": "LightRig.Spot",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AppendUniformData",
              "anchor": "LightRig.AppendUniformData",
              "recv": "LightRig",
              "decl": "func (r LightRig) AppendUniformData(dst []byte) []byte",
              "doc": "AppendUniformData appends r's lights to dst in the little-endian std140/WGSL layout of [LightWGSL]\nand returns the extended slice. It allocates only when dst lacks capacity for [LightUniformSize]\nmore bytes. Call [LightRig.Validate] first: lights beyond [MaxDirectionalLights], [MaxPointLights] or [MaxSpotLights] are omitted, and a directional or spot light with a degenerate direction writes zero radiance.\n",
              "file": "pkg/render3d/light.go",
              "line": 497
            },
            {
              "name": "UniformDataSize",
              "anchor": "LightRig.UniformDataSize",
              "recv": "LightRig",
              "decl": "func (r LightRig) UniformDataSize() int",
              "doc": "UniformDataSize returns the byte length [LightRig.AppendUniformData] appends ([LightUniformSize]).\n",
              "file": "pkg/render3d/light.go",
              "line": 492
            },
            {
              "name": "Validate",
              "anchor": "LightRig.Validate",
              "recv": "LightRig",
              "decl": "func (r LightRig) Validate() error",
              "doc": "Validate checks ambient, directional, point, and spot lights and enforces [MaxDirectionalLights], [MaxPointLights], and [MaxSpotLights]. Every error wraps [ErrInvalidLight].\n",
              "file": "pkg/render3d/light.go",
              "line": 460
            }
          ]
        },
        {
          "name": "LightUniforms",
          "anchor": "LightUniforms",
          "decl": "type LightUniforms struct {\n\t// Ambient holds premultiplied linear ambient radiance (Color * Intensity) in rgb and Intensity in w.\n\tAmbient          math3d.Vec4\n\tDirectionalCount uint32\n\tPointCount       uint32\n\tSpotCount        uint32\n\tDirectional      [MaxDirectionalLights]GPUDirectionalLight\n\tPoint            [MaxPointLights]GPUPointLight\n\tSpot             [MaxSpotLights]GPUSpotLight\n}",
          "doc": "LightUniforms is the fixed-size, 16-byte-aligned GPU uniform payload matching [LightWGSL].\n",
          "file": "pkg/render3d/light.go",
          "line": 532,
          "members": [
            {
              "name": "Ambient",
              "anchor": "LightUniforms.Ambient",
              "kind": "field",
              "doc": "Ambient holds premultiplied linear ambient radiance (Color * Intensity) in rgb and Intensity in w."
            },
            {
              "name": "DirectionalCount",
              "anchor": "LightUniforms.DirectionalCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PointCount",
              "anchor": "LightUniforms.PointCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpotCount",
              "anchor": "LightUniforms.SpotCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Directional",
              "anchor": "LightUniforms.Directional",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point",
              "anchor": "LightUniforms.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spot",
              "anchor": "LightUniforms.Spot",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLightUniforms",
              "anchor": "NewLightUniforms",
              "decl": "func NewLightUniforms(rig LightRig) (LightUniforms, error)",
              "doc": "NewLightUniforms validates rig and packs it into a GPU-ready [LightUniforms].\n",
              "file": "pkg/render3d/light.go",
              "line": 544
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "LightUniforms.Encode",
              "recv": "*LightUniforms",
              "decl": "func (u *LightUniforms) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst as the little-endian std140/WGSL block [LightWGSL] declares and returns\ndst[:LightUniformSize] without allocating. It panics if len(dst) < LightUniformSize, whatever dst's\ncapacity.\n",
              "file": "pkg/render3d/light.go",
              "line": 615
            }
          ]
        },
        {
          "name": "LightVisibility",
          "anchor": "LightVisibility",
          "decl": "type LightVisibility struct {\n\tDirectional0 float32\n\tPoint0       float32\n\tSpot0        float32\n}",
          "doc": "LightVisibility holds the shadow visibility in [0, 1] of the [LightRig] lights a shadow map can cover: the first directional light ([DirectionalShadowMap]), the first point light ([PointShadowMap]) and the first spot light ([SpotShadowMap]). 1 leaves a light unshadowed and 0 removes its contribution; the ambient term and every other light are never shadowed.\n",
          "file": "pkg/render3d/light.go",
          "line": 1353,
          "members": [
            {
              "name": "Directional0",
              "anchor": "LightVisibility.Directional0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point0",
              "anchor": "LightVisibility.Point0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spot0",
              "anchor": "LightVisibility.Spot0",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LightmapEncoding",
          "anchor": "LightmapEncoding",
          "decl": "type LightmapEncoding uint8",
          "doc": "LightmapEncoding identifies how a baked lightmap texture encodes linear irradiance values.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 60,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LightmapLinear",
                  "anchor": "LightmapLinear"
                },
                {
                  "name": "LightmapSRGB",
                  "anchor": "LightmapSRGB"
                },
                {
                  "name": "LightmapRGBM",
                  "anchor": "LightmapRGBM"
                },
                {
                  "name": "LightmapRGBD",
                  "anchor": "LightmapRGBD"
                }
              ],
              "decl": "const (\n\t// LightmapLinear indicates the lightmap texture stores linear irradiance directly (for example in FormatRGBA16Float HDR or linear FormatRGBA8Unorm).\n\tLightmapLinear LightmapEncoding = iota\n\t// LightmapSRGB indicates the lightmap texture stores sRGB-encoded LDR irradiance. When uploaded as FormatRGBA8Unorm, the shader decodes sRGB to linear; when uploaded as FormatRGBA8UnormSRGB, hardware sampling already decodes to linear and the shader avoids double-decoding.\n\tLightmapSRGB\n\t// LightmapRGBM indicates an 8-bit linear RGBA8Unorm texture packed with a shared multiplier in alpha: linearRGB = rgb * (a * RGBMMaxRange). This allows HDR baked lightmaps in standard 8-bit PNGs across mobile and WebGL 2 backends without float textures.\n\tLightmapRGBM\n\t// LightmapRGBD indicates an 8-bit linear RGBA8Unorm texture packed with a shared divisor in alpha: linearRGB = rgb / max(a, 1/255), preserving full 8-bit precision for LDR values <= 1 while representing HDR highlights.\n\tLightmapRGBD\n)",
              "doc": "",
              "file": "pkg/render3d/lightmap.go",
              "line": 62
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ParseLightmapEncoding",
              "anchor": "ParseLightmapEncoding",
              "decl": "func ParseLightmapEncoding(s string) (LightmapEncoding, error)",
              "doc": "ParseLightmapEncoding converts an encoding string (\"\", \"linear\", \"srgb\", \"rgbm\", \"rgbd\"), ignoring case and surrounding white space, into a [LightmapEncoding]. An empty string resolves to [LightmapLinear], so the Encoding of a [gltf.LightmapRef] can be passed straight through.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 95
            }
          ],
          "methods": [
            {
              "name": "String",
              "anchor": "LightmapEncoding.String",
              "recv": "LightmapEncoding",
              "decl": "func (e LightmapEncoding) String() string",
              "doc": "String returns a human-readable name for e.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 74
            },
            {
              "name": "Valid",
              "anchor": "LightmapEncoding.Valid",
              "recv": "LightmapEncoding",
              "decl": "func (e LightmapEncoding) Valid() bool",
              "doc": "Valid reports whether e is a recognized [LightmapEncoding].\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 90
            }
          ]
        },
        {
          "name": "LightmapMaterial",
          "anchor": "LightmapMaterial",
          "decl": "type LightmapMaterial struct {\n\t// BaseColor is a linear RGBA multiplier on BaseColorTexture. An all-zero value defaults to opaque white {1, 1, 1, 1}.\n\tBaseColor [4]float32\n\t// BaseColorTexture is an optional albedo texture sampled at UV0. When nil, a 1x1 white texture is bound.\n\tBaseColorTexture *GPUTexture\n\t// BaseColorSampler is an optional sampler for BaseColorTexture (defaults to linear repeat).\n\tBaseColorSampler *GPUSampler\n\t// Lightmap is the baked irradiance texture sampled at UV1*UVScale+UVOffset. When nil, AmbientFallback provides the baked irradiance term.\n\tLightmap *GPUTexture\n\t// LightmapSampler is an optional sampler for Lightmap (defaults to linear clamp-to-edge).\n\tLightmapSampler *GPUSampler\n\t// Encoding specifies how Lightmap texels are decoded to linear irradiance.\n\tEncoding LightmapEncoding\n\t// Intensity scales decoded lightmap irradiance. Zero means zero (no baked light); [DefaultLightmapMaterial] sets 1. It does not scale AmbientFallback.\n\tIntensity float32\n\t// RGBMMaxRange sets the HDR peak scale for [LightmapRGBM]. Zero defaults to [DefaultRGBMMaxRange] (8.0).\n\tRGBMMaxRange float32\n\t// UVScale scales UV1 before sampling Lightmap (defaults to {1, 1} when {0, 0}).\n\tUVScale [2]float32\n\t// UVOffset offsets scaled UV1 before sampling Lightmap, allowing multiple objects to share a single baked lightmap atlas.\n\tUVOffset [2]float32\n\t// AmbientFallback is linear RGB irradiance used when Lightmap is nil.\n\tAmbientFallback [3]float32\n\t// DirectLight is an optional dynamic directional light whose Lambertian N·L diffuse term is added to the baked irradiance, so baked indirect lighting combines with a dynamic sun or key light. It uses the same [DirectionalLight] as a [LightRig]: Direction is the direction the light travels, so a light from a scene's rig can be passed as is. Nil disables direct lighting.\n\tDirectLight *DirectionalLight\n}",
          "doc": "LightmapMaterial configures albedo, baked lightmap sampling, encoding, atlas UV sub-rectangle transform, fallback ambient irradiance, and optional additive direct light for [LightmapRenderer.Draw].\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 732,
          "members": [
            {
              "name": "BaseColor",
              "anchor": "LightmapMaterial.BaseColor",
              "kind": "field",
              "doc": "BaseColor is a linear RGBA multiplier on BaseColorTexture. An all-zero value defaults to opaque white {1, 1, 1, 1}."
            },
            {
              "name": "BaseColorTexture",
              "anchor": "LightmapMaterial.BaseColorTexture",
              "kind": "field",
              "doc": "BaseColorTexture is an optional albedo texture sampled at UV0. When nil, a 1x1 white texture is bound."
            },
            {
              "name": "BaseColorSampler",
              "anchor": "LightmapMaterial.BaseColorSampler",
              "kind": "field",
              "doc": "BaseColorSampler is an optional sampler for BaseColorTexture (defaults to linear repeat)."
            },
            {
              "name": "Lightmap",
              "anchor": "LightmapMaterial.Lightmap",
              "kind": "field",
              "doc": "Lightmap is the baked irradiance texture sampled at UV1*UVScale+UVOffset. When nil, AmbientFallback provides the baked irradiance term."
            },
            {
              "name": "LightmapSampler",
              "anchor": "LightmapMaterial.LightmapSampler",
              "kind": "field",
              "doc": "LightmapSampler is an optional sampler for Lightmap (defaults to linear clamp-to-edge)."
            },
            {
              "name": "Encoding",
              "anchor": "LightmapMaterial.Encoding",
              "kind": "field",
              "doc": "Encoding specifies how Lightmap texels are decoded to linear irradiance."
            },
            {
              "name": "Intensity",
              "anchor": "LightmapMaterial.Intensity",
              "kind": "field",
              "doc": "Intensity scales decoded lightmap irradiance. Zero means zero (no baked light); [DefaultLightmapMaterial] sets 1. It does not scale AmbientFallback."
            },
            {
              "name": "RGBMMaxRange",
              "anchor": "LightmapMaterial.RGBMMaxRange",
              "kind": "field",
              "doc": "RGBMMaxRange sets the HDR peak scale for [LightmapRGBM]. Zero defaults to [DefaultRGBMMaxRange] (8.0)."
            },
            {
              "name": "UVScale",
              "anchor": "LightmapMaterial.UVScale",
              "kind": "field",
              "doc": "UVScale scales UV1 before sampling Lightmap (defaults to {1, 1} when {0, 0})."
            },
            {
              "name": "UVOffset",
              "anchor": "LightmapMaterial.UVOffset",
              "kind": "field",
              "doc": "UVOffset offsets scaled UV1 before sampling Lightmap, allowing multiple objects to share a single baked lightmap atlas."
            },
            {
              "name": "AmbientFallback",
              "anchor": "LightmapMaterial.AmbientFallback",
              "kind": "field",
              "doc": "AmbientFallback is linear RGB irradiance used when Lightmap is nil."
            },
            {
              "name": "DirectLight",
              "anchor": "LightmapMaterial.DirectLight",
              "kind": "field",
              "doc": "DirectLight is an optional dynamic directional light whose Lambertian N·L diffuse term is added to the baked irradiance, so baked indirect lighting combines with a dynamic sun or key light. It uses the same [DirectionalLight] as a [LightRig]: Direction is the direction the light travels, so a light from a scene's rig can be passed as is. Nil disables direct lighting."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultLightmapMaterial",
              "anchor": "DefaultLightmapMaterial",
              "decl": "func DefaultLightmapMaterial() LightmapMaterial",
              "doc": "DefaultLightmapMaterial returns a [LightmapMaterial] with opaque white base color, [LightmapLinear] encoding, unit intensity, default RGBM range, and identity atlas UV scale/offset.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 760
            }
          ],
          "methods": [
            {
              "name": "SetUVTransform",
              "anchor": "LightmapMaterial.SetUVTransform",
              "recv": "*LightmapMaterial",
              "decl": "func (m *LightmapMaterial) SetUVTransform(t UVTransform)",
              "doc": "SetUVTransform assigns t.Scale and t.Offset onto m.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 771
            },
            {
              "name": "UVTransform",
              "anchor": "LightmapMaterial.UVTransform",
              "recv": "LightmapMaterial",
              "decl": "func (m LightmapMaterial) UVTransform() UVTransform",
              "doc": "UVTransform returns m's atlas lightmap [UVTransform].\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 778
            },
            {
              "name": "Validate",
              "anchor": "LightmapMaterial.Validate",
              "recv": "LightmapMaterial",
              "decl": "func (m LightmapMaterial) Validate() error",
              "doc": "Validate checks that m's numeric fields, encoding, and non-nil GPU handles are valid. Every error wraps [ErrInvalidLightmap].\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 783
            }
          ]
        },
        {
          "name": "LightmapMesh",
          "anchor": "LightmapMesh",
          "decl": "type LightmapMesh struct {\n\tPositions []math3d.Vec3\n\tNormals   []math3d.Vec3\n\tUV0       []math3d.Vec2\n\tUV1       []math3d.Vec2\n\tIndices   []uint32\n}",
          "doc": "LightmapMesh is triangle-list geometry carrying two UV sets: UV0 for tiled material maps (matching glTF TEXCOORD_0) and UV1 for baked lightmaps (matching glTF TEXCOORD_1).\n\nPositions is required. Normals, UV0, and UV1 are optional: each is either empty or holds one entry per position. When UV1 is empty, [UploadLightmapMesh] and [LightmapMesh.AppendVertexData] fall back cleanly to UV0 (or zeros if UV0 is also empty). A glTF primitive's Positions, Normals, TexCoords0, TexCoords1, and Indices fields map directly onto LightmapMesh.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 160,
          "members": [
            {
              "name": "Positions",
              "anchor": "LightmapMesh.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "LightmapMesh.Normals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UV0",
              "anchor": "LightmapMesh.UV0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UV1",
              "anchor": "LightmapMesh.UV1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "LightmapMesh.Indices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LightmapMeshFromAttributes",
              "anchor": "LightmapMeshFromAttributes",
              "decl": "func LightmapMeshFromAttributes(positions, normals []math3d.Vec3, uv0, uv1 []math3d.Vec2, indices []uint32) LightmapMesh",
              "doc": "LightmapMeshFromAttributes constructs a [LightmapMesh] from separate attribute slices (such as a glTF primitive's Positions, Normals, TexCoords0, TexCoords1, and Indices). When uv1 is empty, UV1 falls back cleanly to uv0 during upload.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 169
            },
            {
              "name": "LightmapMeshFromGLTF",
              "anchor": "LightmapMeshFromGLTF",
              "decl": "func LightmapMeshFromGLTF(doc *gltf.Document, prim gltf.Primitive) (LightmapMesh, error)",
              "doc": "LightmapMeshFromGLTF builds a 40-byte dual-UV [LightmapMesh] from a glTF primitive, extracting the material's lightmap UV channel (TEXCOORD_1 or explicit texCoord from MOZ_lightmap / EXT_lightmap / extras.lightmap, falling back cleanly to TEXCOORD_0 when TEXCOORD_1 is absent).\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 991
            },
            {
              "name": "LightmapMeshFromVertices",
              "anchor": "LightmapMeshFromVertices",
              "decl": "func LightmapMeshFromVertices(vertices []LightmapVertex, indices []uint32) LightmapMesh",
              "doc": "LightmapMeshFromVertices converts interleaved [LightmapVertex] values and optional indices into a [LightmapMesh].\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 180
            }
          ],
          "methods": [
            {
              "name": "AppendIndexData",
              "anchor": "LightmapMesh.AppendIndexData",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) AppendIndexData(dst []byte) []byte",
              "doc": "AppendIndexData appends m's indices to dst at [LightmapMesh.IndexFormat] width, little-endian and zero-padded to a 4-byte multiple.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 327
            },
            {
              "name": "AppendVertexData",
              "anchor": "LightmapMesh.AppendVertexData",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) AppendVertexData(dst []byte) []byte",
              "doc": "AppendVertexData appends m's vertices to dst in the little-endian 40-byte interleaved layout of [LightmapVertexLayout] and returns the extended slice. Missing normals are written as zeros; missing UV1 falls back cleanly to UV0 (or zeros if UV0 is also absent). Call [LightmapMesh.Validate] first.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 291
            },
            {
              "name": "Bounds",
              "anchor": "LightmapMesh.Bounds",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) Bounds() math3d.AABB",
              "doc": "Bounds returns the object-space AABB enclosing m.Positions.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 241
            },
            {
              "name": "HasUV1",
              "anchor": "LightmapMesh.HasUV1",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) HasUV1() bool",
              "doc": "HasUV1 reports whether m provides a dedicated secondary UV1 channel rather than falling back to UV0.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 222
            },
            {
              "name": "IndexDataSize",
              "anchor": "LightmapMesh.IndexDataSize",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) IndexDataSize() int",
              "doc": "IndexDataSize returns the byte length [LightmapMesh.AppendIndexData] appends, padded to a multiple of four bytes as WebGPU requires.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 253
            },
            {
              "name": "IndexFormat",
              "anchor": "LightmapMesh.IndexFormat",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns [gpu.IndexUint16] while all vertex indices fit below 0xFFFF (WebGL 2 primitive restart), otherwise [gpu.IndexUint32].\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 233
            },
            {
              "name": "Indexed",
              "anchor": "LightmapMesh.Indexed",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) Indexed() bool",
              "doc": "Indexed reports whether m has an index list.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 230
            },
            {
              "name": "Validate",
              "anchor": "LightmapMesh.Validate",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) Validate() error",
              "doc": "Validate reports whether m can be uploaded: at least one whole triangle, optional attributes empty or matching len(Positions) with finite values, and every index in range. Every error wraps [ErrInvalidMesh].\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 199
            },
            {
              "name": "VertexCount",
              "anchor": "LightmapMesh.VertexCount",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) VertexCount() int",
              "doc": "VertexCount returns the number of vertices, len(m.Positions).\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 227
            },
            {
              "name": "VertexDataSize",
              "anchor": "LightmapMesh.VertexDataSize",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) VertexDataSize() int",
              "doc": "VertexDataSize returns the byte length [LightmapMesh.AppendVertexData] appends.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 250
            },
            {
              "name": "Vertices",
              "anchor": "LightmapMesh.Vertices",
              "recv": "LightmapMesh",
              "decl": "func (m LightmapMesh) Vertices() []LightmapVertex",
              "doc": "Vertices materializes m as a slice of interleaved [LightmapVertex] values, falling back from empty UV1 to UV0.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 262
            }
          ]
        },
        {
          "name": "LightmapRenderer",
          "anchor": "LightmapRenderer",
          "decl": "type LightmapRenderer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "LightmapRenderer draws [GPULightmapMesh] geometry shaded with baked lightmaps (sampling albedo at UV0 and baked irradiance at UV1 * UVScale + UVOffset), supporting linear/HDR RGBA16F, sRGB LDR, RGBM, and RGBD lightmaps as well as optional additive dynamic directional lighting.\n\nIt is a standalone path: the shading is albedo times (baked irradiance plus one Lambertian [DirectionalLight]), with no metallic-roughness, normal, occlusion or emissive maps and no [LightRig]. Feeding lightmaps into the PBR material path as its indirect term is tracked in https://github.com/nsgo-dev/game/issues/752.\n\nCall [LightmapRenderer.BeginFrame] at the start of each frame to reuse the dynamic uniform buffer without steady-state allocations.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 975,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLightmapRenderer",
              "anchor": "NewLightmapRenderer",
              "decl": "func NewLightmapRenderer(cx *core.Scope, dev *gpu.Device, camLayout *gpu.BindGroupLayout, opts LightmapRendererOptions) (*LightmapRenderer, error)",
              "doc": "NewLightmapRenderer compiles [LightmapWGSL] and creates the pipeline, fallback 1x1 white texture, default samplers, and dynamic per-draw uniform ring buffer on dev, owned by cx.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 1001
            }
          ],
          "methods": [
            {
              "name": "BeginFrame",
              "anchor": "LightmapRenderer.BeginFrame",
              "recv": "*LightmapRenderer",
              "decl": "func (r *LightmapRenderer) BeginFrame()",
              "doc": "BeginFrame resets the per-frame dynamic uniform ring offset, releases any older uniform buffers retired when the ring grew in a previous frame, and drops cached texture bind groups whose textures or samplers have since been closed, so streaming or hot-reloading lightmaps does not grow the cache.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 1199
            },
            {
              "name": "Close",
              "anchor": "LightmapRenderer.Close",
              "recv": "*LightmapRenderer",
              "decl": "func (r *LightmapRenderer) Close() error",
              "doc": "Close releases all GPU resources created by r. It is safe to call more than once.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 1325
            },
            {
              "name": "Draw",
              "anchor": "LightmapRenderer.Draw",
              "recv": "*LightmapRenderer",
              "decl": "func (r *LightmapRenderer) Draw(pass *gpu.RenderPass, cam *CameraBuffer, mesh *GPULightmapMesh, model math3d.Mat4, mat LightmapMaterial) error",
              "doc": "Draw encodes the model transform and mat into a dynamic uniform slot, binds camera, per-draw uniforms, and albedo/lightmap textures on pass, and draws mesh. Multiple objects with different transforms, materials, or shared atlas UV sub-rectangles may be drawn within the same render pass.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 1234
            },
            {
              "name": "Pipeline",
              "anchor": "LightmapRenderer.Pipeline",
              "recv": "*LightmapRenderer",
              "decl": "func (r *LightmapRenderer) Pipeline() *gpu.Pipeline",
              "doc": "Pipeline returns the compiled lightmap [gpu.Pipeline].\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 1221
            },
            {
              "name": "Valid",
              "anchor": "LightmapRenderer.Valid",
              "recv": "*LightmapRenderer",
              "decl": "func (r *LightmapRenderer) Valid() bool",
              "doc": "Valid reports whether r is open and its GPU resources belong to a live device.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 1229
            }
          ]
        },
        {
          "name": "LightmapRendererOptions",
          "anchor": "LightmapRendererOptions",
          "decl": "type LightmapRendererOptions struct {\n\t// ColorFormat overrides the color target format (defaults to dev.SurfaceFormat(), or [gpu.FormatRGBA8Unorm] if undefined).\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat overrides the depth target format when DisableDepth is false (defaults to [gpu.FormatDepth24Plus]).\n\tDepthFormat gpu.TextureFormat\n\t// DisableDepth creates the pipeline without a depth-stencil attachment.\n\tDisableDepth bool\n\t// DoubleSided disables back-face culling (uses [gpu.CullNone]).\n\tDoubleSided bool\n\t// Retained keeps internal GPU resources across device loss.\n\tRetained bool\n\t// InitialCapacity sets the initial per-frame dynamic uniform slot count (defaults to 64).\n\tInitialCapacity int\n\t// Label prefixes GPU resource debug labels.\n\tLabel string\n}",
          "doc": "LightmapRendererOptions configures [NewLightmapRenderer]. The zero value enables depth testing ([gpu.FormatDepth24Plus]), back-face culling ([gpu.CullBack] with [gpu.FrontCCW]), and targets the device surface format.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 946,
          "members": [
            {
              "name": "ColorFormat",
              "anchor": "LightmapRendererOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat overrides the color target format (defaults to dev.SurfaceFormat(), or [gpu.FormatRGBA8Unorm] if undefined)."
            },
            {
              "name": "DepthFormat",
              "anchor": "LightmapRendererOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat overrides the depth target format when DisableDepth is false (defaults to [gpu.FormatDepth24Plus])."
            },
            {
              "name": "DisableDepth",
              "anchor": "LightmapRendererOptions.DisableDepth",
              "kind": "field",
              "doc": "DisableDepth creates the pipeline without a depth-stencil attachment."
            },
            {
              "name": "DoubleSided",
              "anchor": "LightmapRendererOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables back-face culling (uses [gpu.CullNone])."
            },
            {
              "name": "Retained",
              "anchor": "LightmapRendererOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps internal GPU resources across device loss."
            },
            {
              "name": "InitialCapacity",
              "anchor": "LightmapRendererOptions.InitialCapacity",
              "kind": "field",
              "doc": "InitialCapacity sets the initial per-frame dynamic uniform slot count (defaults to 64)."
            },
            {
              "name": "Label",
              "anchor": "LightmapRendererOptions.Label",
              "kind": "field",
              "doc": "Label prefixes GPU resource debug labels."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LightmapVertex",
          "anchor": "LightmapVertex",
          "decl": "type LightmapVertex struct {\n\tPosition [3]float32\n\tNormal   [3]float32\n\tUV0      [2]float32\n\tUV1      [2]float32\n}",
          "doc": "LightmapVertex is one interleaved vertex for lightmapped 3D geometry carrying both primary (albedo) UV0 and secondary (baked lightmap) UV1 coordinates.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 150,
          "members": [
            {
              "name": "Position",
              "anchor": "LightmapVertex.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "LightmapVertex.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UV0",
              "anchor": "LightmapVertex.UV0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UV1",
              "anchor": "LightmapVertex.UV1",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LitPBRPipelineOptions",
          "anchor": "LitPBRPipelineOptions",
          "decl": "type LitPBRPipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools; empty picks render3d.lit_pbr, lit_pbr_fog, lit_pbr_ibl, lit_pbr_shadow, lit_pbr_spot_shadow or lit_pbr_point_shadow with a .linear suffix for LinearOutput.\n\tLabel string\n\t// ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat(). Use [HDRTarget.Format] when drawing into an [HDRTarget].\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing and writes when not [gpu.FormatUndefined].\n\tDepthFormat gpu.TextureFormat\n\t// FogLayout, when set, compiles [LitPBRFogWGSL] with this layout ([GPUFogBuffer.Layout]) at [FogGroup], as [NewLitPBRFogPipeline] does.\n\tFogLayout *gpu.BindGroupLayout\n\t// IBLLayout, when set, compiles [LitPBRIBLWGSL] with this layout ([GPUIBLBuffer.Layout]) at [IBLGroup], as [NewLitPBRIBLPipeline] does. Fog and IBL share bind group 3, so setting both is an error.\n\tIBLLayout *gpu.BindGroupLayout\n\t// SkinLayout, when set, compiles [LitPBRSkinnedWGSL] with this layout ([GPUSkinPalette.Layout]) at [LitPBRSkinGroup] and takes [SkinnedVertexLayout] vertices, so a [GPUSkinnedMesh] is drawn with scene lights. The vertex stage skins each vertex with the palette and then applies the per-draw model and normal matrices: use an identity model with [SkinJointMatrices] (world-space joints), or the mesh node's world matrix with mesh-local joints such as anim3d's Player.SkinMatricesForNode. Fog, IBL and skinning all use bind group 3, so SkinLayout cannot be combined with FogLayout or IBLLayout.\n\tSkinLayout *gpu.BindGroupLayout\n\t// ShadowLayout, when set, compiles [LitPBRShadowWGSL] with this layout ([DirectionalShadowMap.Layout]) at [ShadowGroup], as [NewLitPBRShadowPipeline] does, so the first directional light is attenuated by the shadow map. The shadow uses bind group 3 like fog, IBL and skinning, so ShadowLayout cannot be combined with FogLayout, IBLLayout or SkinLayout.\n\tShadowLayout *gpu.BindGroupLayout\n\t// SpotShadowLayout, when set, compiles [LitPBRSpotShadowWGSL] with this layout ([SpotShadowMap.Layout]) at [LocalShadowGroup], as [NewLitPBRSpotShadowPipeline] does, so the first spot light of the [LightRig] is attenuated by the spot shadow map. It uses bind group 3 like the directional shadow, fog, IBL and skinning, so it cannot be combined with any of them.\n\tSpotShadowLayout *gpu.BindGroupLayout\n\t// PointShadowLayout, when set, compiles [LitPBRPointShadowWGSL] with this layout ([PointShadowMap.Layout]) at [LocalShadowGroup], as [NewLitPBRPointShadowPipeline] does, so the first point light of the [LightRig] is attenuated by the point shadow atlas. It uses bind group 3 like the directional shadow, fog, IBL and skinning, so it cannot be combined with any of them.\n\tPointShadowLayout *gpu.BindGroupLayout\n\t// CSMLayout, when set, compiles [LitPBRCSMWGSL] with this layout ([CascadedShadowMap.Layout]) at [CSMGroup], as [NewLitPBRCSMPipeline] does, so the first directional light of the [LightRig] is attenuated by the cascaded shadow map. It uses bind group 3 like the single directional shadow, spot and point shadows, fog, IBL and skinning, so it cannot be combined with any of them.\n\tCSMLayout *gpu.BindGroupLayout\n\t// VertexColors selects [ColoredVertexLayout] (stride 48 bytes, @location(3) linear RGBA color for glTF COLOR_0) and multiplies pbr_draw.base_color (both RGB and alpha) by the linear vertex color before shading (and before IBL evaluation when IBLLayout is set), so a [GPUColoredMesh] can be drawn with scene lights. Cannot be combined with SkinLayout because [SkinnedVertexLayout] has no vertex color attribute.\n\tVertexColors bool\n\t// LinearOutput skips the final linear-to-sRGB encoding and its clamp to [0, 1] and writes the lit linear radiance ([ShadePoint], plus [EvaluateIBL] or [Fog.Apply] when enabled), for drawing into an [HDRTarget] that a [ToneMapPass] then resolves to the display.\n\tLinearOutput bool\n}",
          "doc": "LitPBRPipelineOptions configures [NewLitPBRPipelineWithOptions].\n",
          "file": "pkg/render3d/light.go",
          "line": 1040,
          "members": [
            {
              "name": "Label",
              "anchor": "LitPBRPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools; empty picks render3d.lit_pbr, lit_pbr_fog, lit_pbr_ibl, lit_pbr_shadow, lit_pbr_spot_shadow or lit_pbr_point_shadow with a .linear suffix for LinearOutput."
            },
            {
              "name": "ColorFormat",
              "anchor": "LitPBRPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat(). Use [HDRTarget.Format] when drawing into an [HDRTarget]."
            },
            {
              "name": "DepthFormat",
              "anchor": "LitPBRPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing and writes when not [gpu.FormatUndefined]."
            },
            {
              "name": "FogLayout",
              "anchor": "LitPBRPipelineOptions.FogLayout",
              "kind": "field",
              "doc": "FogLayout, when set, compiles [LitPBRFogWGSL] with this layout ([GPUFogBuffer.Layout]) at [FogGroup], as [NewLitPBRFogPipeline] does."
            },
            {
              "name": "IBLLayout",
              "anchor": "LitPBRPipelineOptions.IBLLayout",
              "kind": "field",
              "doc": "IBLLayout, when set, compiles [LitPBRIBLWGSL] with this layout ([GPUIBLBuffer.Layout]) at [IBLGroup], as [NewLitPBRIBLPipeline] does. Fog and IBL share bind group 3, so setting both is an error."
            },
            {
              "name": "SkinLayout",
              "anchor": "LitPBRPipelineOptions.SkinLayout",
              "kind": "field",
              "doc": "SkinLayout, when set, compiles [LitPBRSkinnedWGSL] with this layout ([GPUSkinPalette.Layout]) at [LitPBRSkinGroup] and takes [SkinnedVertexLayout] vertices, so a [GPUSkinnedMesh] is drawn with scene lights. The vertex stage skins each vertex with the palette and then applies the per-draw model and normal matrices: use an identity model with [SkinJointMatrices] (world-space joints), or the mesh node's world matrix with mesh-local joints such as anim3d's Player.SkinMatricesForNode. Fog, IBL and skinning all use bind group 3, so SkinLayout cannot be combined with FogLayout or IBLLayout."
            },
            {
              "name": "ShadowLayout",
              "anchor": "LitPBRPipelineOptions.ShadowLayout",
              "kind": "field",
              "doc": "ShadowLayout, when set, compiles [LitPBRShadowWGSL] with this layout ([DirectionalShadowMap.Layout]) at [ShadowGroup], as [NewLitPBRShadowPipeline] does, so the first directional light is attenuated by the shadow map. The shadow uses bind group 3 like fog, IBL and skinning, so ShadowLayout cannot be combined with FogLayout, IBLLayout or SkinLayout."
            },
            {
              "name": "SpotShadowLayout",
              "anchor": "LitPBRPipelineOptions.SpotShadowLayout",
              "kind": "field",
              "doc": "SpotShadowLayout, when set, compiles [LitPBRSpotShadowWGSL] with this layout ([SpotShadowMap.Layout]) at [LocalShadowGroup], as [NewLitPBRSpotShadowPipeline] does, so the first spot light of the [LightRig] is attenuated by the spot shadow map. It uses bind group 3 like the directional shadow, fog, IBL and skinning, so it cannot be combined with any of them."
            },
            {
              "name": "PointShadowLayout",
              "anchor": "LitPBRPipelineOptions.PointShadowLayout",
              "kind": "field",
              "doc": "PointShadowLayout, when set, compiles [LitPBRPointShadowWGSL] with this layout ([PointShadowMap.Layout]) at [LocalShadowGroup], as [NewLitPBRPointShadowPipeline] does, so the first point light of the [LightRig] is attenuated by the point shadow atlas. It uses bind group 3 like the directional shadow, fog, IBL and skinning, so it cannot be combined with any of them."
            },
            {
              "name": "CSMLayout",
              "anchor": "LitPBRPipelineOptions.CSMLayout",
              "kind": "field",
              "doc": "CSMLayout, when set, compiles [LitPBRCSMWGSL] with this layout ([CascadedShadowMap.Layout]) at [CSMGroup], as [NewLitPBRCSMPipeline] does, so the first directional light of the [LightRig] is attenuated by the cascaded shadow map. It uses bind group 3 like the single directional shadow, spot and point shadows, fog, IBL and skinning, so it cannot be combined with any of them."
            },
            {
              "name": "VertexColors",
              "anchor": "LitPBRPipelineOptions.VertexColors",
              "kind": "field",
              "doc": "VertexColors selects [ColoredVertexLayout] (stride 48 bytes, @location(3) linear RGBA color for glTF COLOR_0) and multiplies pbr_draw.base_color (both RGB and alpha) by the linear vertex color before shading (and before IBL evaluation when IBLLayout is set), so a [GPUColoredMesh] can be drawn with scene lights. Cannot be combined with SkinLayout because [SkinnedVertexLayout] has no vertex color attribute."
            },
            {
              "name": "LinearOutput",
              "anchor": "LitPBRPipelineOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput skips the final linear-to-sRGB encoding and its clamp to [0, 1] and writes the lit linear radiance ([ShadePoint], plus [EvaluateIBL] or [Fog.Apply] when enabled), for drawing into an [HDRTarget] that a [ToneMapPass] then resolves to the display."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LocalShadowFilter",
          "anchor": "LocalShadowFilter",
          "decl": "type LocalShadowFilter uint8",
          "doc": "LocalShadowFilter selects how a local shadow map samples its depth texture.\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 58,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LocalShadowFilterHard",
                  "anchor": "LocalShadowFilterHard"
                },
                {
                  "name": "LocalShadowFilterPCF3x3",
                  "anchor": "LocalShadowFilterPCF3x3"
                }
              ],
              "decl": "const (\n\t// LocalShadowFilterHard performs a single nearest-neighbor depth comparison tap.\n\tLocalShadowFilterHard LocalShadowFilter = iota\n\t// LocalShadowFilterPCF3x3 performs a 3x3 percentage-closer filter using linear comparison taps clamped inside the shadow map or cube face tile.\n\tLocalShadowFilterPCF3x3\n)",
              "doc": "",
              "file": "pkg/render3d/local_shadows.go",
              "line": 60
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "LocalShadowFilter.String",
              "recv": "LocalShadowFilter",
              "decl": "func (f LocalShadowFilter) String() string",
              "doc": "String returns the canonical filter name.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 68
            }
          ]
        },
        {
          "name": "MSAATarget",
          "anchor": "MSAATarget",
          "decl": "type MSAATarget struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MSAATarget manages an offscreen 3D color (and optional depth) render target with automatic MSAA resolve and resize support (#249).\n\nWhen created with SampleCount > 1 on a device supporting Features.MSAA4x, the color attachment is multisampled and [MSAATarget.ColorAttachment] binds the single-sampled resolve texture as ResolveTarget (with StoreDiscard on the transient multisample buffer). When SampleCount clamps to 1, ColorAttachment targets the single-sampled color texture directly with StoreStore. In both cases, [MSAATarget.OutputTexture] returns the single-sampled texture ready for sampling in subsequent passes (such as [FXAAPass] or tone mapping) or CPU readback.\n",
          "file": "pkg/render3d/aa.go",
          "line": 99,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMSAATarget",
              "anchor": "NewMSAATarget",
              "decl": "func NewMSAATarget(cx *core.Scope, dev *gpu.Device, desc MSAATargetDesc) (*MSAATarget, error)",
              "doc": "NewMSAATarget allocates an [MSAATarget] on dev scoped to cx. It clamps desc.SampleCount via [ClampSampleCount] so callers do not need separate error-handling paths for devices without MSAA4x.\n",
              "file": "pkg/render3d/aa.go",
              "line": 116
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "MSAATarget.Close",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) Close() error",
              "doc": "Close releases the underlying GPU textures immediately instead of waiting for scope disposal. It is safe to call more than once or on a nil target.\n",
              "file": "pkg/render3d/aa.go",
              "line": 380
            },
            {
              "name": "ColorAttachment",
              "anchor": "MSAATarget.ColorAttachment",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) ColorAttachment(clearColor core.Color) (gpu.ColorAttachment, error)",
              "doc": "ColorAttachment returns a [gpu.ColorAttachment] configured to clear the target to clearColor and, when multisampled, automatically resolve into the single-sampled resolve texture at pass end (discarding the transient multisampled backing store). For a single-sampled target it stores directly into the color texture.\n\nIt returns an error when the target is nil, closed, or its device is lost, instead of an attachment with a nil Texture, which NSGo would draw into the view's swapchain.\n",
              "file": "pkg/render3d/aa.go",
              "line": 217
            },
            {
              "name": "ColorFormat",
              "anchor": "MSAATarget.ColorFormat",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) ColorFormat() gpu.TextureFormat",
              "doc": "ColorFormat returns the resolved color attachment format.\n",
              "file": "pkg/render3d/aa.go",
              "line": 351
            },
            {
              "name": "ColorTexture",
              "anchor": "MSAATarget.ColorTexture",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) ColorTexture() *gpu.Texture",
              "doc": "ColorTexture returns the primary color attachment texture (multisampled when SampleCount > 1), or nil if closed.\n",
              "file": "pkg/render3d/aa.go",
              "line": 295
            },
            {
              "name": "DepthFormat",
              "anchor": "MSAATarget.DepthFormat",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) DepthFormat() gpu.TextureFormat",
              "doc": "DepthFormat returns the configured depth/stencil format (FormatUndefined if none).\n",
              "file": "pkg/render3d/aa.go",
              "line": 359
            },
            {
              "name": "DepthStencilAttachment",
              "anchor": "MSAATarget.DepthStencilAttachment",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) DepthStencilAttachment(clearDepth float32) *gpu.DepthStencilAttachment",
              "doc": "DepthStencilAttachment returns a [gpu.DepthStencilAttachment] clearing the target's depth buffer to clearDepth (and its stencil to 0 when the depth format has a stencil aspect), or nil when no depth format was configured or the target is closed. The depth and stencil are discarded at the end of the pass unless [MSAATargetDesc.KeepDepth] is set.\n",
              "file": "pkg/render3d/aa.go",
              "line": 239
            },
            {
              "name": "DepthTexture",
              "anchor": "MSAATarget.DepthTexture",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) DepthTexture() *gpu.Texture",
              "doc": "DepthTexture returns the depth/stencil texture, or nil when none was configured or the target is closed. Its contents survive a pass only when [MSAATargetDesc.KeepDepth] is set.\n",
              "file": "pkg/render3d/aa.go",
              "line": 311
            },
            {
              "name": "Height",
              "anchor": "MSAATarget.Height",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) Height() uint32",
              "doc": "Height returns the target's height in physical pixels.\n",
              "file": "pkg/render3d/aa.go",
              "line": 343
            },
            {
              "name": "OutputTexture",
              "anchor": "MSAATarget.OutputTexture",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) OutputTexture() *gpu.Texture",
              "doc": "OutputTexture returns the single-sampled color texture holding the resolved render output: Resolve when multisampled, Color when single-sampled, or nil if the target is nil or closed.\n",
              "file": "pkg/render3d/aa.go",
              "line": 284
            },
            {
              "name": "RenderPassDesc",
              "anchor": "MSAATarget.RenderPassDesc",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) RenderPassDesc(clearColor core.Color, clearDepth float32) (gpu.RenderPassDesc, error)",
              "doc": "RenderPassDesc builds a [gpu.RenderPassDesc] targeting t with [MSAATarget.ColorAttachment] and (if present) [MSAATarget.DepthStencilAttachment]. Like ColorAttachment, it returns an error for a nil, closed, or lost target.\n",
              "file": "pkg/render3d/aa.go",
              "line": 261
            },
            {
              "name": "RenderTarget",
              "anchor": "MSAATarget.RenderTarget",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) RenderTarget() *gpu.RenderTarget",
              "doc": "RenderTarget returns the underlying [*gpu.RenderTarget], or nil if closed.\n",
              "file": "pkg/render3d/aa.go",
              "line": 319
            },
            {
              "name": "Resize",
              "anchor": "MSAATarget.Resize",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) Resize(width, height uint32) error",
              "doc": "Resize reallocates the underlying textures to width x height. If the target is already valid at that exact size and its sample count, clamped against the current device, is unchanged, Resize is a zero-allocation no-op. If allocation fails, the existing textures remain intact and the error is returned.\n",
              "file": "pkg/render3d/aa.go",
              "line": 178
            },
            {
              "name": "ResolveTexture",
              "anchor": "MSAATarget.ResolveTexture",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) ResolveTexture() *gpu.Texture",
              "doc": "ResolveTexture returns the single-sampled resolve texture, or nil when the target is single-sampled or closed.\n",
              "file": "pkg/render3d/aa.go",
              "line": 303
            },
            {
              "name": "Retained",
              "anchor": "MSAATarget.Retained",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) Retained() bool",
              "doc": "Retained reports whether the target's textures were created with automatic recreation across device loss enabled.\n",
              "file": "pkg/render3d/aa.go",
              "line": 367
            },
            {
              "name": "SampleCount",
              "anchor": "MSAATarget.SampleCount",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) SampleCount() int",
              "doc": "SampleCount returns the effective (clamped) MSAA sample count (1 or 4), or 0 for a nil target.\n",
              "file": "pkg/render3d/aa.go",
              "line": 327
            },
            {
              "name": "SetDevice",
              "anchor": "MSAATarget.SetDevice",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) SetDevice(dev *gpu.Device)",
              "doc": "SetDevice updates the device used by future [MSAATarget.Resize] calls after NSGo restores a lost device onto a new [*gpu.Device] for a retained target.\n\nThe sample count is clamped against the new device on the next Resize, which reallocates the textures even at the same size when the clamped count changes (for example 4x on a device without Features.MSAA4x becomes 1x, and a target created at 1x on such a device becomes 4x on one that has it). Compare [MSAATarget.SampleCount] before and after, and rebuild pipelines created with the old count.\n",
              "file": "pkg/render3d/aa.go",
              "line": 170
            },
            {
              "name": "Valid",
              "anchor": "MSAATarget.Valid",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) Valid() bool",
              "doc": "Valid reports whether the target's underlying GPU textures are open and belong to a live device.\n",
              "file": "pkg/render3d/aa.go",
              "line": 375
            },
            {
              "name": "Width",
              "anchor": "MSAATarget.Width",
              "recv": "*MSAATarget",
              "decl": "func (t *MSAATarget) Width() uint32",
              "doc": "Width returns the target's width in physical pixels.\n",
              "file": "pkg/render3d/aa.go",
              "line": 335
            }
          ]
        },
        {
          "name": "MSAATargetDesc",
          "anchor": "MSAATargetDesc",
          "decl": "type MSAATargetDesc struct {\n\t// Label names the underlying GPU textures in capture tools.\n\tLabel string\n\t// Width and Height are the initial dimensions in physical pixels (both > 0).\n\tWidth  uint32\n\tHeight uint32\n\t// ColorFormat is the color attachment format. FormatUndefined defaults to dev.SurfaceFormat(), or FormatRGBA8Unorm if that is undefined.\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat is an optional depth/stencil format (e.g. FormatDepth24Plus); FormatUndefined disables the depth attachment.\n\tDepthFormat gpu.TextureFormat\n\t// SampleCount is the requested MSAA sample count (e.g. AAMSAA4x.SampleCount()). It is clamped to a device-supported count via [ClampSampleCount].\n\tSampleCount int\n\t// KeepDepth stores the depth (and stencil) attachment at the end of each pass so later passes can read [MSAATarget.DepthTexture]. By default the depth buffer is transient: it is cleared at the start of the pass and discarded at the end. A kept depth texture of a 4x target is multisampled.\n\tKeepDepth bool\n\t// Retained opts the color, resolve, and depth textures into automatic recreation by NSGo after a device loss.\n\tRetained bool\n}",
          "doc": "MSAATargetDesc configures [NewMSAATarget].\n",
          "file": "pkg/render3d/aa.go",
          "line": 78,
          "members": [
            {
              "name": "Label",
              "anchor": "MSAATargetDesc.Label",
              "kind": "field",
              "doc": "Label names the underlying GPU textures in capture tools."
            },
            {
              "name": "Width",
              "anchor": "MSAATargetDesc.Width",
              "kind": "field",
              "doc": "Width and Height are the initial dimensions in physical pixels (both > 0)."
            },
            {
              "name": "Height",
              "anchor": "MSAATargetDesc.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorFormat",
              "anchor": "MSAATargetDesc.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat is the color attachment format. FormatUndefined defaults to dev.SurfaceFormat(), or FormatRGBA8Unorm if that is undefined."
            },
            {
              "name": "DepthFormat",
              "anchor": "MSAATargetDesc.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat is an optional depth/stencil format (e.g. FormatDepth24Plus); FormatUndefined disables the depth attachment."
            },
            {
              "name": "SampleCount",
              "anchor": "MSAATargetDesc.SampleCount",
              "kind": "field",
              "doc": "SampleCount is the requested MSAA sample count (e.g. AAMSAA4x.SampleCount()). It is clamped to a device-supported count via [ClampSampleCount]."
            },
            {
              "name": "KeepDepth",
              "anchor": "MSAATargetDesc.KeepDepth",
              "kind": "field",
              "doc": "KeepDepth stores the depth (and stencil) attachment at the end of each pass so later passes can read [MSAATarget.DepthTexture]. By default the depth buffer is transient: it is cleared at the start of the pass and discarded at the end. A kept depth texture of a 4x target is multisampled."
            },
            {
              "name": "Retained",
              "anchor": "MSAATargetDesc.Retained",
              "kind": "field",
              "doc": "Retained opts the color, resolve, and depth textures into automatic recreation by NSGo after a device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Material",
          "anchor": "Material",
          "decl": "type Material struct {\n\tBaseColorFactor  [4]float32\n\tBaseColorTexture *GPUTexture\n\tBaseColorSampler *GPUSampler\n\n\tMetallicFactor           float32\n\tRoughnessFactor          float32\n\tMetallicRoughnessTexture *GPUTexture\n\tMetallicRoughnessSampler *GPUSampler\n\n\tNormalTexture *GPUTexture\n\tNormalSampler *GPUSampler\n\tNormalScale   float32\n\n\tOcclusionTexture  *GPUTexture\n\tOcclusionSampler  *GPUSampler\n\tOcclusionStrength float32\n\n\tEmissiveFactor  [3]float32\n\tEmissiveTexture *GPUTexture\n\tEmissiveSampler *GPUSampler\n\n\tClearcoatFactor           float32\n\tClearcoatRoughnessFactor  float32\n\tClearcoatTexture          *GPUTexture\n\tClearcoatSampler          *GPUSampler\n\tClearcoatRoughnessTexture *GPUTexture\n\tClearcoatRoughnessSampler *GPUSampler\n\tClearcoatNormalTexture    *GPUTexture\n\tClearcoatNormalSampler    *GPUSampler\n\tClearcoatNormalScale      float32\n\n\tTransmissionFactor  float32\n\tTransmissionTexture *GPUTexture\n\tTransmissionSampler *GPUSampler\n\tIOR                 float32\n\n\tAlphaMode   AlphaMode\n\tAlphaCutoff float32\n\tDoubleSided bool\n}",
          "doc": "Material describes a glTF 2.0 metallic-roughness PBR surface ready to bind on a [gpu.Device] through [NewGPUMaterial] or evaluate on the CPU through [EvaluateMaterial].\n\nStart from [DefaultMaterial] for glTF 2.0 specification defaults (white base color, metallic 1, roughness 1, normal scale 1, occlusion strength 1, alpha cutoff 0.5). Any omitted texture or sampler falls back to the 1x1 neutral defaults in [MaterialDefaults] so every material shares one bind group layout ([MaterialGroup]) with zero pipeline permutations.\n\nTexture channel conventions match glTF 2.0:\n  - BaseColorTexture: sRGB RGBA8 color + linear alpha, multiplied by BaseColorFactor (linear RGBA).\n  - MetallicRoughnessTexture: linear RGBA8 where G = roughness and B = metallic, multiplied by RoughnessFactor and MetallicFactor.\n  - NormalTexture: linear RGBA8 tangent-space normal map (+X right/+U, +Y up/-V, +Z outward), with XY scaled by NormalScale (a negative scale flips both, as glTF 2.0 allows).\n  - OcclusionTexture: linear R (or RGBA8) ambient occlusion factor blended by OcclusionStrength.\n  - EmissiveTexture: sRGB RGBA8 self-emission multiplied by EmissiveFactor (linear RGB).\n",
          "file": "pkg/render3d/material.go",
          "line": 97,
          "members": [
            {
              "name": "BaseColorFactor",
              "anchor": "Material.BaseColorFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColorTexture",
              "anchor": "Material.BaseColorTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColorSampler",
              "anchor": "Material.BaseColorSampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicFactor",
              "anchor": "Material.MetallicFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RoughnessFactor",
              "anchor": "Material.RoughnessFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicRoughnessTexture",
              "anchor": "Material.MetallicRoughnessTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicRoughnessSampler",
              "anchor": "Material.MetallicRoughnessSampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalTexture",
              "anchor": "Material.NormalTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalSampler",
              "anchor": "Material.NormalSampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalScale",
              "anchor": "Material.NormalScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OcclusionTexture",
              "anchor": "Material.OcclusionTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OcclusionSampler",
              "anchor": "Material.OcclusionSampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OcclusionStrength",
              "anchor": "Material.OcclusionStrength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EmissiveFactor",
              "anchor": "Material.EmissiveFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EmissiveTexture",
              "anchor": "Material.EmissiveTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EmissiveSampler",
              "anchor": "Material.EmissiveSampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatFactor",
              "anchor": "Material.ClearcoatFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatRoughnessFactor",
              "anchor": "Material.ClearcoatRoughnessFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatTexture",
              "anchor": "Material.ClearcoatTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatSampler",
              "anchor": "Material.ClearcoatSampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatRoughnessTexture",
              "anchor": "Material.ClearcoatRoughnessTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatRoughnessSampler",
              "anchor": "Material.ClearcoatRoughnessSampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatNormalTexture",
              "anchor": "Material.ClearcoatNormalTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatNormalSampler",
              "anchor": "Material.ClearcoatNormalSampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatNormalScale",
              "anchor": "Material.ClearcoatNormalScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TransmissionFactor",
              "anchor": "Material.TransmissionFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TransmissionTexture",
              "anchor": "Material.TransmissionTexture",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TransmissionSampler",
              "anchor": "Material.TransmissionSampler",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IOR",
              "anchor": "Material.IOR",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlphaMode",
              "anchor": "Material.AlphaMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlphaCutoff",
              "anchor": "Material.AlphaCutoff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DoubleSided",
              "anchor": "Material.DoubleSided",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultMaterial",
              "anchor": "DefaultMaterial",
              "decl": "func DefaultMaterial() Material",
              "doc": "DefaultMaterial returns a [Material] populated with glTF 2.0 default factors: linear white base color [1, 1, 1, 1], metallic 1.0, roughness 1.0, normal scale 1.0, occlusion strength 1.0, emissive [0, 0, 0], clearcoat normal scale 1.0, IOR 1.5, [AlphaOpaque], and alpha cutoff 0.5.\n",
              "file": "pkg/render3d/material.go",
              "line": 143
            }
          ],
          "methods": [
            {
              "name": "AppendUniformData",
              "anchor": "Material.AppendUniformData",
              "recv": "Material",
              "decl": "func (m Material) AppendUniformData(dst []byte) []byte",
              "doc": "AppendUniformData appends m's 64-byte little-endian uniform block to dst without allocating when dst has at least [MaterialUniformSize] bytes of spare capacity.\n",
              "file": "pkg/render3d/material.go",
              "line": 319
            },
            {
              "name": "EffectiveIOR",
              "anchor": "Material.EffectiveIOR",
              "recv": "Material",
              "decl": "func (m Material) EffectiveIOR() float32",
              "doc": "EffectiveIOR returns m.IOR, defaulting to [DefaultMaterialIOR] (1.5) when m.IOR is zero.\n",
              "file": "pkg/render3d/material.go",
              "line": 158
            },
            {
              "name": "ExtendedUniforms",
              "anchor": "Material.ExtendedUniforms",
              "recv": "Material",
              "decl": "func (m Material) ExtendedUniforms() ExtendedMaterialUniforms",
              "doc": "ExtendedUniforms packs m's scalar parameters and texture-presence flags (including KHR_materials_clearcoat, KHR_materials_transmission, and IOR) into [ExtendedMaterialUniforms].\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 58
            },
            {
              "name": "Uniforms",
              "anchor": "Material.Uniforms",
              "recv": "Material",
              "decl": "func (m Material) Uniforms() MaterialUniforms",
              "doc": "Uniforms packs m's scalar parameters and texture-presence flags into [MaterialUniforms].\n",
              "file": "pkg/render3d/material.go",
              "line": 302
            },
            {
              "name": "UsesExtensions",
              "anchor": "Material.UsesExtensions",
              "recv": "Material",
              "decl": "func (m Material) UsesExtensions() bool",
              "doc": "UsesExtensions reports whether m sets any KHR_materials_clearcoat, KHR_materials_transmission, or non-default IOR parameters that require [GPUExtendedMaterial] / [NewExtendedMaterialPipeline].\n",
              "file": "pkg/render3d/material.go",
              "line": 166
            },
            {
              "name": "Validate",
              "anchor": "Material.Validate",
              "recv": "Material",
              "decl": "func (m Material) Validate() error",
              "doc": "Validate checks that every numeric factor is finite and within its valid glTF 2.0 range, that AlphaMode is recognized, and that every non-nil GPU texture or sampler handle is currently [GPUTexture.Valid] / [GPUSampler.Valid]. Every error wraps [ErrInvalidMaterial].\n",
              "file": "pkg/render3d/material.go",
              "line": 185
            }
          ]
        },
        {
          "name": "MaterialDefaults",
          "anchor": "MaterialDefaults",
          "decl": "type MaterialDefaults struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MaterialDefaults owns the shared 1x1 fallback textures, default linear-repeat sampler, and [MaterialGroup] bind group layouts used by [NewGPUMaterial] and [NewGPUUnlitMaterial] whenever a material omits optional maps or samplers. Create one per [gpu.Device] and share it across all materials on that device.\n",
          "file": "pkg/render3d/material.go",
          "line": 401,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMaterialDefaults",
              "anchor": "NewMaterialDefaults",
              "decl": "func NewMaterialDefaults(cx *core.Scope, dev *gpu.Device, opts MaterialDefaultsOptions) (*MaterialDefaults, error)",
              "doc": "NewMaterialDefaults allocates the shared [MaterialGroup] layouts (metallic-roughness and unlit), default linear-repeat sampler, and four 1x1 fallback textures on dev, owned by cx:\n  - WhiteSRGB: (255, 255, 255, 255) RGBA8 sRGB for missing base color maps.\n  - WhiteLinear: (255, 255, 255, 255) RGBA8 unorm for missing metallic-roughness and occlusion maps.\n  - FlatNormal: (128, 128, 255, 255) RGBA8 unorm for missing tangent-space normal maps.\n  - Black: (0, 0, 0, 255) RGBA8 sRGB for missing emissive maps.\n",
              "file": "pkg/render3d/material.go",
              "line": 416
            }
          ],
          "methods": [
            {
              "name": "Black",
              "anchor": "MaterialDefaults.Black",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) Black() *GPUTexture",
              "doc": "Black returns the 1x1 sRGB black fallback texture (0, 0, 0, 255).\n",
              "file": "pkg/render3d/material.go",
              "line": 519
            },
            {
              "name": "ByteSize",
              "anchor": "MaterialDefaults.ByteSize",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) ByteSize() uint64",
              "doc": "ByteSize returns the total GPU memory held by the four 1x1 fallback textures.\n",
              "file": "pkg/render3d/material.go",
              "line": 535
            },
            {
              "name": "Close",
              "anchor": "MaterialDefaults.Close",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) Close() error",
              "doc": "Close releases the fallback textures, sampler, and bind group layouts now rather than waiting for scope disposal. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/material.go",
              "line": 554
            },
            {
              "name": "FlatNormal",
              "anchor": "MaterialDefaults.FlatNormal",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) FlatNormal() *GPUTexture",
              "doc": "FlatNormal returns the 1x1 linear tangent-space flat normal fallback texture (128, 128, 255, 255).\n",
              "file": "pkg/render3d/material.go",
              "line": 511
            },
            {
              "name": "Layout",
              "anchor": "MaterialDefaults.Layout",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the [MaterialGroup] bind group layout shared by every material created with d.\n",
              "file": "pkg/render3d/material.go",
              "line": 477
            },
            {
              "name": "Sampler",
              "anchor": "MaterialDefaults.Sampler",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) Sampler() *GPUSampler",
              "doc": "Sampler returns the default linear-repeat sampler used when a material slot omits a sampler.\n",
              "file": "pkg/render3d/material.go",
              "line": 527
            },
            {
              "name": "UnlitLayout",
              "anchor": "MaterialDefaults.UnlitLayout",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) UnlitLayout() *gpu.BindGroupLayout",
              "doc": "UnlitLayout returns the [MaterialGroup] bind group layout shared by every [GPUUnlitMaterial] created with d, for [NewUnlitPipeline].\n\n[MaterialDefaults.Valid] does not cover it: NSGo restores a bind group layout after a device loss only when a restored bind group uses it, so this layout comes back only while a retained [GPUUnlitMaterial] exists (nsgo-dev/nsgo#2338). Check its Valid method before building an unlit pipeline after a restore.\n",
              "file": "pkg/render3d/material.go",
              "line": 487
            },
            {
              "name": "Valid",
              "anchor": "MaterialDefaults.Valid",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) Valid() bool",
              "doc": "Valid reports whether all fallback resources and the metallic-roughness bind group layout are open on a live device.\n",
              "file": "pkg/render3d/material.go",
              "line": 543
            },
            {
              "name": "WhiteLinear",
              "anchor": "MaterialDefaults.WhiteLinear",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) WhiteLinear() *GPUTexture",
              "doc": "WhiteLinear returns the 1x1 linear white fallback texture (255, 255, 255, 255).\n",
              "file": "pkg/render3d/material.go",
              "line": 503
            },
            {
              "name": "WhiteSRGB",
              "anchor": "MaterialDefaults.WhiteSRGB",
              "recv": "*MaterialDefaults",
              "decl": "func (d *MaterialDefaults) WhiteSRGB() *GPUTexture",
              "doc": "WhiteSRGB returns the 1x1 sRGB white fallback texture (255, 255, 255, 255).\n",
              "file": "pkg/render3d/material.go",
              "line": 495
            }
          ]
        },
        {
          "name": "MaterialDefaultsOptions",
          "anchor": "MaterialDefaultsOptions",
          "decl": "type MaterialDefaultsOptions struct {\n\t// Label prefixes the debug labels of the fallback textures, sampler, and bind group layout.\n\tLabel string\n\t// Retained keeps CPU shadow copies of the fallback textures and sampler so retained [GPUMaterial] instances recover automatically after a GPU device loss.\n\tRetained bool\n}",
          "doc": "MaterialDefaultsOptions configures [NewMaterialDefaults].\n",
          "file": "pkg/render3d/material.go",
          "line": 393,
          "members": [
            {
              "name": "Label",
              "anchor": "MaterialDefaultsOptions.Label",
              "kind": "field",
              "doc": "Label prefixes the debug labels of the fallback textures, sampler, and bind group layout."
            },
            {
              "name": "Retained",
              "anchor": "MaterialDefaultsOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU shadow copies of the fallback textures and sampler so retained [GPUMaterial] instances recover automatically after a GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MaterialEvalInput",
          "anchor": "MaterialEvalInput",
          "decl": "type MaterialEvalInput struct {\n\tMaterial Material\n\n\tBaseColorSample             [4]float32\n\tHasBaseColorSample          bool\n\tVertexColor                 [4]float32 // linear RGBA vertex color (glTF COLOR_0); defaults to [1, 1, 1, 1] when HasVertexColor is false\n\tHasVertexColor              bool\n\tMetallicSample              float32 // glTF metallic-roughness texture B channel\n\tRoughnessSample             float32 // glTF metallic-roughness texture G channel\n\tHasMetallicRoughnessSample  bool\n\tNormalSample                [3]float32 // UNORM [0, 1] tangent-space normal sample\n\tHasNormalSample             bool\n\tOcclusionSample             float32 // glTF occlusion texture R channel\n\tHasOcclusionSample          bool\n\tEmissiveSample              [3]float32 // linear RGB emissive texture sample\n\tHasEmissiveSample           bool\n\tClearcoatSample             float32 // glTF clearcoatTexture R channel\n\tHasClearcoatSample          bool\n\tClearcoatRoughnessSample    float32 // glTF clearcoatRoughnessTexture G channel\n\tHasClearcoatRoughnessSample bool\n\tClearcoatNormalSample       [3]float32 // UNORM [0, 1] tangent-space clearcoat normal sample\n\tHasClearcoatNormalSample    bool\n\tTransmissionSample          float32 // glTF transmissionTexture R channel\n\tHasTransmissionSample       bool\n\tBackgroundColor             [3]float32 // linear RGB opaque scene background sampled behind a transmissive surface\n\n\tNormal      math3d.Vec3   // geometric world-space normal\n\tTangent     math3d.Vec3   // optional world-space tangent (+U); derived from Normal when zero\n\tBitangent   math3d.Vec3   // optional world-space bitangent (+Y normal map / -V); derived from Normal x Tangent when zero\n\tViewDir     math3d.Vec3   // vector from surface toward camera\n\tFrontFacing bool          // true for front-facing fragments; flips Normal when false and Material.DoubleSided is true\n\tLight       MaterialLight // zero value uses [DefaultMaterialLight]\n}",
          "doc": "MaterialEvalInput provides per-fragment inputs to [EvaluateMaterial], the pure-Go CPU reference evaluator matching [MaterialWGSL].\n",
          "file": "pkg/render3d/material.go",
          "line": 1222,
          "members": [
            {
              "name": "Material",
              "anchor": "MaterialEvalInput.Material",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColorSample",
              "anchor": "MaterialEvalInput.BaseColorSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasBaseColorSample",
              "anchor": "MaterialEvalInput.HasBaseColorSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VertexColor",
              "anchor": "MaterialEvalInput.VertexColor",
              "kind": "field",
              "doc": "linear RGBA vertex color (glTF COLOR_0); defaults to [1, 1, 1, 1] when HasVertexColor is false"
            },
            {
              "name": "HasVertexColor",
              "anchor": "MaterialEvalInput.HasVertexColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicSample",
              "anchor": "MaterialEvalInput.MetallicSample",
              "kind": "field",
              "doc": "glTF metallic-roughness texture B channel"
            },
            {
              "name": "RoughnessSample",
              "anchor": "MaterialEvalInput.RoughnessSample",
              "kind": "field",
              "doc": "glTF metallic-roughness texture G channel"
            },
            {
              "name": "HasMetallicRoughnessSample",
              "anchor": "MaterialEvalInput.HasMetallicRoughnessSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalSample",
              "anchor": "MaterialEvalInput.NormalSample",
              "kind": "field",
              "doc": "UNORM [0, 1] tangent-space normal sample"
            },
            {
              "name": "HasNormalSample",
              "anchor": "MaterialEvalInput.HasNormalSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OcclusionSample",
              "anchor": "MaterialEvalInput.OcclusionSample",
              "kind": "field",
              "doc": "glTF occlusion texture R channel"
            },
            {
              "name": "HasOcclusionSample",
              "anchor": "MaterialEvalInput.HasOcclusionSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EmissiveSample",
              "anchor": "MaterialEvalInput.EmissiveSample",
              "kind": "field",
              "doc": "linear RGB emissive texture sample"
            },
            {
              "name": "HasEmissiveSample",
              "anchor": "MaterialEvalInput.HasEmissiveSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatSample",
              "anchor": "MaterialEvalInput.ClearcoatSample",
              "kind": "field",
              "doc": "glTF clearcoatTexture R channel"
            },
            {
              "name": "HasClearcoatSample",
              "anchor": "MaterialEvalInput.HasClearcoatSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatRoughnessSample",
              "anchor": "MaterialEvalInput.ClearcoatRoughnessSample",
              "kind": "field",
              "doc": "glTF clearcoatRoughnessTexture G channel"
            },
            {
              "name": "HasClearcoatRoughnessSample",
              "anchor": "MaterialEvalInput.HasClearcoatRoughnessSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearcoatNormalSample",
              "anchor": "MaterialEvalInput.ClearcoatNormalSample",
              "kind": "field",
              "doc": "UNORM [0, 1] tangent-space clearcoat normal sample"
            },
            {
              "name": "HasClearcoatNormalSample",
              "anchor": "MaterialEvalInput.HasClearcoatNormalSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TransmissionSample",
              "anchor": "MaterialEvalInput.TransmissionSample",
              "kind": "field",
              "doc": "glTF transmissionTexture R channel"
            },
            {
              "name": "HasTransmissionSample",
              "anchor": "MaterialEvalInput.HasTransmissionSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BackgroundColor",
              "anchor": "MaterialEvalInput.BackgroundColor",
              "kind": "field",
              "doc": "linear RGB opaque scene background sampled behind a transmissive surface"
            },
            {
              "name": "Normal",
              "anchor": "MaterialEvalInput.Normal",
              "kind": "field",
              "doc": "geometric world-space normal"
            },
            {
              "name": "Tangent",
              "anchor": "MaterialEvalInput.Tangent",
              "kind": "field",
              "doc": "optional world-space tangent (+U); derived from Normal when zero"
            },
            {
              "name": "Bitangent",
              "anchor": "MaterialEvalInput.Bitangent",
              "kind": "field",
              "doc": "optional world-space bitangent (+Y normal map / -V); derived from Normal x Tangent when zero"
            },
            {
              "name": "ViewDir",
              "anchor": "MaterialEvalInput.ViewDir",
              "kind": "field",
              "doc": "vector from surface toward camera"
            },
            {
              "name": "FrontFacing",
              "anchor": "MaterialEvalInput.FrontFacing",
              "kind": "field",
              "doc": "true for front-facing fragments; flips Normal when false and Material.DoubleSided is true"
            },
            {
              "name": "Light",
              "anchor": "MaterialEvalInput.Light",
              "kind": "field",
              "doc": "zero value uses [DefaultMaterialLight]"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MaterialEvalResult",
          "anchor": "MaterialEvalResult",
          "decl": "type MaterialEvalResult struct {\n\tLinear    math3d.Vec4 // linear RGBA radiance before tone mapping and sRGB encoding\n\tSRGB      math3d.Vec4 // Reinhard tone-mapped and sRGB-encoded RGBA matching [MaterialWGSL]\n\tNormal    math3d.Vec3 // final world-space shading normal after normal mapping\n\tMetallic  float32     // effective clamped metallic in [0, 1]\n\tRoughness float32     // effective clamped roughness in [0.045, 1]\n\tDiscarded bool        // true when AlphaMode == AlphaMask and effective alpha < AlphaCutoff\n}",
          "doc": "MaterialEvalResult holds the CPU reference shading output produced by [EvaluateMaterial].\n",
          "file": "pkg/render3d/material.go",
          "line": 1257,
          "members": [
            {
              "name": "Linear",
              "anchor": "MaterialEvalResult.Linear",
              "kind": "field",
              "doc": "linear RGBA radiance before tone mapping and sRGB encoding"
            },
            {
              "name": "SRGB",
              "anchor": "MaterialEvalResult.SRGB",
              "kind": "field",
              "doc": "Reinhard tone-mapped and sRGB-encoded RGBA matching [MaterialWGSL]"
            },
            {
              "name": "Normal",
              "anchor": "MaterialEvalResult.Normal",
              "kind": "field",
              "doc": "final world-space shading normal after normal mapping"
            },
            {
              "name": "Metallic",
              "anchor": "MaterialEvalResult.Metallic",
              "kind": "field",
              "doc": "effective clamped metallic in [0, 1]"
            },
            {
              "name": "Roughness",
              "anchor": "MaterialEvalResult.Roughness",
              "kind": "field",
              "doc": "effective clamped roughness in [0.045, 1]"
            },
            {
              "name": "Discarded",
              "anchor": "MaterialEvalResult.Discarded",
              "kind": "field",
              "doc": "true when AlphaMode == AlphaMask and effective alpha < AlphaCutoff"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "EvaluateMaterial",
              "anchor": "EvaluateMaterial",
              "decl": "func EvaluateMaterial(in MaterialEvalInput) MaterialEvalResult",
              "doc": "EvaluateMaterial evaluates the glTF 2.0 metallic-roughness Cook-Torrance GGX shading model on the CPU, matching [MaterialWGSL] (and [MaterialColoredWGSL] when [MaterialEvalInput].HasVertexColor is set) so tests and tools can verify GPU renders against an exact pure-Go reference.\n",
              "file": "pkg/render3d/material.go",
              "line": 1267
            },
            {
              "name": "EvaluateMaterialIBL",
              "anchor": "EvaluateMaterialIBL",
              "decl": "func EvaluateMaterialIBL(in MaterialEvalInput, sh IrradianceSH, prefilter *HDRCubemap, intensity float32) MaterialEvalResult",
              "doc": "EvaluateMaterialIBL evaluates the exact pure-Go CPU reference matching [MaterialIBLWGSL] (and [MaterialIBLLinearWGSL] via [MaterialEvalResult].Linear): glTF 2.0 metallic-roughness texture factors, tangent-space normal perturbation, occlusion, emissive, and split-sum HDR image-based lighting via [EvaluateIBLHDR].\n",
              "file": "pkg/render3d/ibl_hdr.go",
              "line": 215
            }
          ],
          "methods": []
        },
        {
          "name": "MaterialIBLPipelineOptions",
          "anchor": "MaterialIBLPipelineOptions",
          "decl": "type MaterialIBLPipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools.\n\tLabel string\n\t// ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat(). Use [HDRTarget.Format] with LinearOutput: true when rendering into an [HDRTarget].\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing (and depth writes for opaque/alpha-mask modes) when non-zero.\n\tDepthFormat gpu.TextureFormat\n\t// AlphaMode selects blending and depth-write state: AlphaOpaque and AlphaMask write depth without color blending; AlphaBlend uses straight alpha blending ([gpu.BlendAlpha]) with depth writes disabled.\n\tAlphaMode AlphaMode\n\t// DoubleSided disables backface culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack]).\n\tDoubleSided bool\n\t// SampleCount sets the MSAA sample count (0 or 1 for non-MSAA, 4 for 4x MSAA).\n\tSampleCount int\n\t// LinearOutput compiles [MaterialIBLLinearWGSL] instead of [MaterialIBLWGSL], emitting unclamped linear HDR radiance for an [HDRTarget] resolved by [ToneMapPass].\n\tLinearOutput bool\n\t// Retained opts the pipeline into automatic recreation after a GPU device loss.\n\tRetained bool\n}",
          "doc": "MaterialIBLPipelineOptions configures [NewMaterialIBLPipeline].\n",
          "file": "pkg/render3d/ibl_hdr.go",
          "line": 125,
          "members": [
            {
              "name": "Label",
              "anchor": "MaterialIBLPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools."
            },
            {
              "name": "ColorFormat",
              "anchor": "MaterialIBLPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat(). Use [HDRTarget.Format] with LinearOutput: true when rendering into an [HDRTarget]."
            },
            {
              "name": "DepthFormat",
              "anchor": "MaterialIBLPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing (and depth writes for opaque/alpha-mask modes) when non-zero."
            },
            {
              "name": "AlphaMode",
              "anchor": "MaterialIBLPipelineOptions.AlphaMode",
              "kind": "field",
              "doc": "AlphaMode selects blending and depth-write state: AlphaOpaque and AlphaMask write depth without color blending; AlphaBlend uses straight alpha blending ([gpu.BlendAlpha]) with depth writes disabled."
            },
            {
              "name": "DoubleSided",
              "anchor": "MaterialIBLPipelineOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables backface culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack])."
            },
            {
              "name": "SampleCount",
              "anchor": "MaterialIBLPipelineOptions.SampleCount",
              "kind": "field",
              "doc": "SampleCount sets the MSAA sample count (0 or 1 for non-MSAA, 4 for 4x MSAA)."
            },
            {
              "name": "LinearOutput",
              "anchor": "MaterialIBLPipelineOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput compiles [MaterialIBLLinearWGSL] instead of [MaterialIBLWGSL], emitting unclamped linear HDR radiance for an [HDRTarget] resolved by [ToneMapPass]."
            },
            {
              "name": "Retained",
              "anchor": "MaterialIBLPipelineOptions.Retained",
              "kind": "field",
              "doc": "Retained opts the pipeline into automatic recreation after a GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MaterialLight",
          "anchor": "MaterialLight",
          "decl": "type MaterialLight struct {\n\tDirection   math3d.Vec3\n\tColor       math3d.Vec3\n\tSkyColor    math3d.Vec3\n\tGroundColor math3d.Vec3\n}",
          "doc": "MaterialLight defines the directional key light and hemisphere ambient environment shared by [MaterialWGSL] and [EvaluateMaterial].\n",
          "file": "pkg/render3d/material.go",
          "line": 1204,
          "members": [
            {
              "name": "Direction",
              "anchor": "MaterialLight.Direction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "MaterialLight.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SkyColor",
              "anchor": "MaterialLight.SkyColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GroundColor",
              "anchor": "MaterialLight.GroundColor",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultMaterialLight",
              "anchor": "DefaultMaterialLight",
              "decl": "func DefaultMaterialLight() MaterialLight",
              "doc": "DefaultMaterialLight returns the directional key light and hemisphere ambient colors built into [MaterialWGSL].\n",
              "file": "pkg/render3d/material.go",
              "line": 1212
            }
          ],
          "methods": []
        },
        {
          "name": "MaterialPipelineOptions",
          "anchor": "MaterialPipelineOptions",
          "decl": "type MaterialPipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools.\n\tLabel string\n\t// ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat().\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing (and depth writes for opaque/alpha-mask modes) when non-zero.\n\tDepthFormat gpu.TextureFormat\n\t// AlphaMode selects blending and depth-write state: AlphaOpaque and AlphaMask write depth without color blending; AlphaBlend uses straight alpha blending ([gpu.BlendAlpha]) with depth writes disabled.\n\tAlphaMode AlphaMode\n\t// DoubleSided disables backface culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack]).\n\tDoubleSided bool\n\t// FogLayout, when set, compiles [MaterialFogWGSL] instead of [MaterialWGSL] and lists this layout ([GPUFogBuffer.Layout]) at [MaterialFogGroup]; bind [GPUFogBuffer.BindGroup] there when drawing.\n\tFogLayout *gpu.BindGroupLayout\n\t// SkinLayout, when set, compiles [MaterialSkinnedWGSL] with this layout ([GPUSkinPalette.Layout]) at [MaterialSkinGroup] and takes [SkinnedVertexLayout] vertices, so a [GPUSkinnedMesh] is drawn with a textured [GPUMaterial]. Material shaders have no model matrix, so the palette must hold world-space joints: [SkinJointMatrices], or mesh-local joints uploaded with [GPUSkinPalette.UpdateWithTransform]. Fog and skinning both use bind group 2, so SkinLayout cannot be combined with FogLayout.\n\tSkinLayout *gpu.BindGroupLayout\n\t// VertexColors selects [ColoredVertexLayout] (stride 48 bytes, @location(3) linear RGBA color for glTF COLOR_0) and compiles [MaterialColoredWGSL] (or its fog / linear-output variant) so a [GPUColoredMesh] can be drawn with metallic-roughness materials. The fragment shader multiplies base_color (base_color_factor * base_sample) by the linear vertex color (RGB and alpha, per glTF 2.0 §3.7.2.1) before AlphaMask cutoff and PBR shading. Cannot be combined with SkinLayout because [SkinnedVertexLayout] has no vertex color attribute.\n\tVertexColors bool\n\t// LinearOutput skips the shader's built-in Reinhard tone mapping and gamma encoding and writes the unclamped linear radiance ([MaterialEvalResult].Linear), for drawing into an [HDRTarget] that a [ToneMapPass] then resolves to the display. Set ColorFormat to [HDRTarget.Format] with it.\n\tLinearOutput bool\n}",
          "doc": "MaterialPipelineOptions configures [NewMaterialPipeline].\n",
          "file": "pkg/render3d/material.go",
          "line": 783,
          "members": [
            {
              "name": "Label",
              "anchor": "MaterialPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools."
            },
            {
              "name": "ColorFormat",
              "anchor": "MaterialPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat()."
            },
            {
              "name": "DepthFormat",
              "anchor": "MaterialPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing (and depth writes for opaque/alpha-mask modes) when non-zero."
            },
            {
              "name": "AlphaMode",
              "anchor": "MaterialPipelineOptions.AlphaMode",
              "kind": "field",
              "doc": "AlphaMode selects blending and depth-write state: AlphaOpaque and AlphaMask write depth without color blending; AlphaBlend uses straight alpha blending ([gpu.BlendAlpha]) with depth writes disabled."
            },
            {
              "name": "DoubleSided",
              "anchor": "MaterialPipelineOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables backface culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack])."
            },
            {
              "name": "FogLayout",
              "anchor": "MaterialPipelineOptions.FogLayout",
              "kind": "field",
              "doc": "FogLayout, when set, compiles [MaterialFogWGSL] instead of [MaterialWGSL] and lists this layout ([GPUFogBuffer.Layout]) at [MaterialFogGroup]; bind [GPUFogBuffer.BindGroup] there when drawing."
            },
            {
              "name": "SkinLayout",
              "anchor": "MaterialPipelineOptions.SkinLayout",
              "kind": "field",
              "doc": "SkinLayout, when set, compiles [MaterialSkinnedWGSL] with this layout ([GPUSkinPalette.Layout]) at [MaterialSkinGroup] and takes [SkinnedVertexLayout] vertices, so a [GPUSkinnedMesh] is drawn with a textured [GPUMaterial]. Material shaders have no model matrix, so the palette must hold world-space joints: [SkinJointMatrices], or mesh-local joints uploaded with [GPUSkinPalette.UpdateWithTransform]. Fog and skinning both use bind group 2, so SkinLayout cannot be combined with FogLayout."
            },
            {
              "name": "VertexColors",
              "anchor": "MaterialPipelineOptions.VertexColors",
              "kind": "field",
              "doc": "VertexColors selects [ColoredVertexLayout] (stride 48 bytes, @location(3) linear RGBA color for glTF COLOR_0) and compiles [MaterialColoredWGSL] (or its fog / linear-output variant) so a [GPUColoredMesh] can be drawn with metallic-roughness materials. The fragment shader multiplies base_color (base_color_factor * base_sample) by the linear vertex color (RGB and alpha, per glTF 2.0 §3.7.2.1) before AlphaMask cutoff and PBR shading. Cannot be combined with SkinLayout because [SkinnedVertexLayout] has no vertex color attribute."
            },
            {
              "name": "LinearOutput",
              "anchor": "MaterialPipelineOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput skips the shader's built-in Reinhard tone mapping and gamma encoding and writes the unclamped linear radiance ([MaterialEvalResult].Linear), for drawing into an [HDRTarget] that a [ToneMapPass] then resolves to the display. Set ColorFormat to [HDRTarget.Format] with it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MaterialUniforms",
          "anchor": "MaterialUniforms",
          "decl": "type MaterialUniforms struct {\n\tBaseColorFactor   [4]float32\n\tEmissiveFactor    [3]float32\n\tNormalScale       float32\n\tMetallicFactor    float32\n\tRoughnessFactor   float32\n\tOcclusionStrength float32\n\tAlphaCutoff       float32\n\tAlphaMode         AlphaMode\n\tDoubleSided       bool\n\tHasNormalMap      bool\n\tHasEmissiveMap    bool\n}",
          "doc": "MaterialUniforms holds the 64-byte uniform payload encoded for struct MaterialUniforms in [MaterialBindingsWGSL].\n",
          "file": "pkg/render3d/material.go",
          "line": 287,
          "members": [
            {
              "name": "BaseColorFactor",
              "anchor": "MaterialUniforms.BaseColorFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EmissiveFactor",
              "anchor": "MaterialUniforms.EmissiveFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalScale",
              "anchor": "MaterialUniforms.NormalScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicFactor",
              "anchor": "MaterialUniforms.MetallicFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RoughnessFactor",
              "anchor": "MaterialUniforms.RoughnessFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OcclusionStrength",
              "anchor": "MaterialUniforms.OcclusionStrength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlphaCutoff",
              "anchor": "MaterialUniforms.AlphaCutoff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlphaMode",
              "anchor": "MaterialUniforms.AlphaMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DoubleSided",
              "anchor": "MaterialUniforms.DoubleSided",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasNormalMap",
              "anchor": "MaterialUniforms.HasNormalMap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasEmissiveMap",
              "anchor": "MaterialUniforms.HasEmissiveMap",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AppendUniformData",
              "anchor": "MaterialUniforms.AppendUniformData",
              "recv": "MaterialUniforms",
              "decl": "func (u MaterialUniforms) AppendUniformData(dst []byte) []byte",
              "doc": "AppendUniformData appends u's 64-byte little-endian uniform block to dst and returns the extended slice. It allocates only when dst lacks capacity for [MaterialUniformSize] additional bytes.\n",
              "file": "pkg/render3d/material.go",
              "line": 324
            },
            {
              "name": "Encode",
              "anchor": "MaterialUniforms.Encode",
              "recv": "*MaterialUniforms",
              "decl": "func (u *MaterialUniforms) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst[:MaterialUniformSize] in the 16-byte-aligned little-endian layout declared by [MaterialBindingsWGSL]. It panics if len(dst) < MaterialUniformSize.\n",
              "file": "pkg/render3d/material.go",
              "line": 332
            }
          ]
        },
        {
          "name": "MaterialUpload",
          "anchor": "MaterialUpload",
          "decl": "type MaterialUpload struct {\n\t// Label names the uniform buffer and bind group in GPU capture tools.\n\tLabel string\n\t// Retained keeps a CPU shadow copy of the uniform buffer so NSGo restores it (and its bind group, when the defaults and any bound textures/samplers are also retained) across a GPU device loss.\n\tRetained bool\n}",
          "doc": "MaterialUpload configures [NewGPUMaterial].\n",
          "file": "pkg/render3d/material.go",
          "line": 584,
          "members": [
            {
              "name": "Label",
              "anchor": "MaterialUpload.Label",
              "kind": "field",
              "doc": "Label names the uniform buffer and bind group in GPU capture tools."
            },
            {
              "name": "Retained",
              "anchor": "MaterialUpload.Retained",
              "kind": "field",
              "doc": "Retained keeps a CPU shadow copy of the uniform buffer so NSGo restores it (and its bind group, when the defaults and any bound textures/samplers are also retained) across a GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Mesh",
          "anchor": "Mesh",
          "decl": "type Mesh struct {\n\tPositions []math3d.Vec3\n\tNormals   []math3d.Vec3\n\tUVs       []math3d.Vec2\n\tIndices   []uint32\n}",
          "doc": "Mesh is indexed or non-indexed triangle-list geometry kept on the CPU, ready to upload to the GPU view's buffers with [UploadMesh].\n\nPositions is required. Normals and UVs are optional: each is either empty or holds one entry per position. Indices is optional: when empty, every three consecutive positions form a triangle; otherwise every three indices do, and each index must be less than len(Positions). Triangles are counter-clockwise when front-facing, matching glTF and [math3d]. A glTF triangle primitive maps directly: Positions, Normals, TexCoords0 and Indices of [github.com/nsgo-dev/game/pkg/gltf.Primitive] have these types.\n",
          "file": "pkg/render3d/mesh.go",
          "line": 43,
          "members": [
            {
              "name": "Positions",
              "anchor": "Mesh.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "Mesh.Normals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UVs",
              "anchor": "Mesh.UVs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "Mesh.Indices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "MeshFromTerrainMesh",
              "anchor": "MeshFromTerrainMesh",
              "decl": "func MeshFromTerrainMesh(tm world3d.TerrainMesh) Mesh",
              "doc": "MeshFromTerrainMesh converts a CPU [world3d.TerrainMesh] into a [Mesh] ready\nfor [UploadMesh] and rendering with [GPUTerrainMaterial].\n",
              "file": "pkg/render3d/terrain_loader.go",
              "line": 19
            },
            {
              "name": "SmoothOutlineNormals",
              "anchor": "SmoothOutlineNormals",
              "decl": "func SmoothOutlineNormals(m Mesh) (Mesh, error)",
              "doc": "SmoothOutlineNormals returns a copy of m whose normals are averaged across vertices at the same position, so that the inverted-hull outline of a hard-edged mesh such as a box or a low-poly prop stays closed at its corners instead of splitting apart. Two vertices share a position when every coordinate rounds to the same multiple of 1e-5; positions that differ by less than that but round apart are kept separate, so split vertices should carry identical positions, as exporters write them. Each triangle adds the normal of each of its corners weighted by the corner's angle: the vertex normal when m has normals, the face normal otherwise. Triangulation therefore does not change the result, and every face meeting at a position counts by the angle it spans there. Positions, UVs, and Indices are copied without mutating m. It returns an error wrapping [ErrInvalidMesh] when m fails [Mesh.Validate] or a coordinate's magnitude exceeds 1e12.\n",
              "file": "pkg/render3d/toon.go",
              "line": 693
            }
          ],
          "methods": [
            {
              "name": "AppendIndexData",
              "anchor": "Mesh.AppendIndexData",
              "recv": "Mesh",
              "decl": "func (m Mesh) AppendIndexData(dst []byte) []byte",
              "doc": "AppendIndexData appends m's indices to dst at [Mesh.IndexFormat] width, little-endian and zero-padded to [Mesh.IndexDataSize], and returns the extended slice. It appends nothing for a non-indexed mesh and allocates only when dst lacks capacity. It does not validate m: call [Mesh.Validate] first, because for a mesh that fails it the bytes written are unspecified (an out-of-range index is truncated to the index width, for example).\n",
              "file": "pkg/render3d/mesh.go",
              "line": 161
            },
            {
              "name": "AppendVertexData",
              "anchor": "Mesh.AppendVertexData",
              "recv": "Mesh",
              "decl": "func (m Mesh) AppendVertexData(dst []byte) []byte",
              "doc": "AppendVertexData appends m's vertices to dst in the little-endian interleaved layout of [MeshVertexLayout] and returns the extended slice. Missing normals and UVs are written as zeros. It allocates only when dst lacks capacity for [Mesh.VertexDataSize] more bytes. It does not validate m: call [Mesh.Validate] first, because for a mesh that fails it the bytes written are unspecified (normals or UVs whose count does not match the positions, for example, are written as zeros).\n",
              "file": "pkg/render3d/mesh.go",
              "line": 136
            },
            {
              "name": "Bounds",
              "anchor": "Mesh.Bounds",
              "recv": "Mesh",
              "decl": "func (m Mesh) Bounds() math3d.AABB",
              "doc": "Bounds returns the axis-aligned box around m's positions, or [math3d.AABBEmpty] when m has none.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 115
            },
            {
              "name": "IndexDataSize",
              "anchor": "Mesh.IndexDataSize",
              "recv": "Mesh",
              "decl": "func (m Mesh) IndexDataSize() int",
              "doc": "IndexDataSize returns the byte length [Mesh.AppendIndexData] appends: the indices at [Mesh.IndexFormat] width, padded with zeros to a multiple of four bytes as WebGPU requires for buffer sizes. It is zero for a non-indexed mesh.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 127
            },
            {
              "name": "IndexFormat",
              "anchor": "Mesh.IndexFormat",
              "recv": "Mesh",
              "decl": "func (m Mesh) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns the index width [Mesh.AppendIndexData] writes: [gpu.IndexUint16] when every vertex fits below 0xFFFF (kept free because WebGL 2 always restarts primitives on it), otherwise [gpu.IndexUint32].\n",
              "file": "pkg/render3d/mesh.go",
              "line": 107
            },
            {
              "name": "Indexed",
              "anchor": "Mesh.Indexed",
              "recv": "Mesh",
              "decl": "func (m Mesh) Indexed() bool",
              "doc": "Indexed reports whether m has an index list.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 104
            },
            {
              "name": "Validate",
              "anchor": "Mesh.Validate",
              "recv": "Mesh",
              "decl": "func (m Mesh) Validate() error",
              "doc": "Validate reports whether m can be uploaded: at least one triangle, normals and UVs that are empty or match the position count, finite attribute values, an index count (or, without indices, a vertex count) that is a multiple of three, and every index in range. Every error wraps [ErrInvalidMesh].\n",
              "file": "pkg/render3d/mesh.go",
              "line": 51
            },
            {
              "name": "VertexCount",
              "anchor": "Mesh.VertexCount",
              "recv": "Mesh",
              "decl": "func (m Mesh) VertexCount() int",
              "doc": "VertexCount returns the number of vertices, len(m.Positions).\n",
              "file": "pkg/render3d/mesh.go",
              "line": 101
            },
            {
              "name": "VertexDataSize",
              "anchor": "Mesh.VertexDataSize",
              "recv": "Mesh",
              "decl": "func (m Mesh) VertexDataSize() int",
              "doc": "VertexDataSize returns the byte length [Mesh.AppendVertexData] appends.\n",
              "file": "pkg/render3d/mesh.go",
              "line": 124
            }
          ]
        },
        {
          "name": "MeshUpload",
          "anchor": "MeshUpload",
          "decl": "type MeshUpload struct {\n\t// Label names the buffers in GPU capture tools; the vertex buffer gets the suffix \" vertices\" and the index buffer \" indices\".\n\tLabel string\n\t// Retained keeps a CPU copy of the buffers so NSGo recreates them after a device loss (see [gpu.BufferDesc].Retained). Leave it false when the game re-uploads its meshes from OnReady instead.\n\tRetained bool\n}",
          "doc": "MeshUpload configures [UploadMesh].\n",
          "file": "pkg/render3d/mesh.go",
          "line": 192,
          "members": [
            {
              "name": "Label",
              "anchor": "MeshUpload.Label",
              "kind": "field",
              "doc": "Label names the buffers in GPU capture tools; the vertex buffer gets the suffix \" vertices\" and the index buffer \" indices\"."
            },
            {
              "name": "Retained",
              "anchor": "MeshUpload.Retained",
              "kind": "field",
              "doc": "Retained keeps a CPU copy of the buffers so NSGo recreates them after a device loss (see [gpu.BufferDesc].Retained). Leave it false when the game re-uploads its meshes from OnReady instead."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MetallicRoughnessMaterial",
          "anchor": "MetallicRoughnessMaterial",
          "decl": "type MetallicRoughnessMaterial = Material",
          "doc": "MetallicRoughnessMaterial is an explicit alias for [Material] naming the glTF 2.0 metallic-roughness workflow.\n",
          "file": "pkg/render3d/material.go",
          "line": 140,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MorphMesh",
          "anchor": "MorphMesh",
          "decl": "type MorphMesh struct {\n\tBase    Mesh\n\tTargets []MorphTarget\n\tWeights []float32\n}",
          "doc": "MorphMesh pairs a base [Mesh] with zero or more [MorphTarget] displacement\ndeltas and optional initial Weights, ready to upload with [UploadMorphMesh].\n\nEach target's Positions and Normals must be empty or match len(Base.Positions)\nwith finite values. When Weights is non-empty, its length must match\nlen(Targets) and every weight must be finite.\n",
          "file": "pkg/render3d/morph.go",
          "line": 27,
          "members": [
            {
              "name": "Base",
              "anchor": "MorphMesh.Base",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Targets",
              "anchor": "MorphMesh.Targets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weights",
              "anchor": "MorphMesh.Weights",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Validate",
              "anchor": "MorphMesh.Validate",
              "recv": "MorphMesh",
              "decl": "func (m MorphMesh) Validate() error",
              "doc": "Validate reports whether m can be uploaded: a valid base [Mesh], morph target\ndelta slices that are empty or match the base vertex count with finite values,\nand initial weights that are either empty or match the target count with\nfinite values. Every error wraps [ErrInvalidMesh].\n",
              "file": "pkg/render3d/morph.go",
              "line": 37
            }
          ]
        },
        {
          "name": "MorphTarget",
          "anchor": "MorphTarget",
          "decl": "type MorphTarget struct {\n\tPositions []math3d.Vec3\n\tNormals   []math3d.Vec3\n}",
          "doc": "MorphTarget holds per-vertex displacement deltas for a single morph target.\nPositions and Normals are optional: each is either empty or holds one delta\nper base vertex. A [github.com/nsgo-dev/game/pkg/gltf.MorphTarget]\nmaps directly to these fields.\n",
          "file": "pkg/render3d/morph.go",
          "line": 16,
          "members": [
            {
              "name": "Positions",
              "anchor": "MorphTarget.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "MorphTarget.Normals",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Occluder",
          "anchor": "Occluder",
          "decl": "type Occluder struct {\n\tVertices    []math3d.Vec3\n\tIndices     []uint32\n\tBounds      math3d.AABB\n\tTransform   math3d.Mat4\n\tDoubleSided bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Occluder holds static opaque triangle geometry rasterized into an\n[OcclusionBuffer] to cull hidden objects behind walls, floors, and buildings\n(#380).\n",
          "file": "pkg/render3d/occlusion.go",
          "line": 25,
          "members": [
            {
              "name": "Vertices",
              "anchor": "Occluder.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "Occluder.Indices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "Occluder.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transform",
              "anchor": "Occluder.Transform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DoubleSided",
              "anchor": "Occluder.DoubleSided",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBoxOccluder",
              "anchor": "NewBoxOccluder",
              "decl": "func NewBoxOccluder(bounds math3d.AABB, transform math3d.Mat4) Occluder",
              "doc": "NewBoxOccluder builds a closed solid box [Occluder] from local-space bounds\nand a world transform. All six faces use outward CCW winding so back faces\nare skipped automatically.\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 43
            },
            {
              "name": "NewQuadOccluder",
              "anchor": "NewQuadOccluder",
              "decl": "func NewQuadOccluder(a, b, c, d math3d.Vec3, doubleSided bool) Occluder",
              "doc": "NewQuadOccluder builds a planar quad [Occluder] in world space from four CCW\ncorners (a, b, c, d).\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 94
            },
            {
              "name": "OccluderFromMesh",
              "anchor": "OccluderFromMesh",
              "decl": "func OccluderFromMesh(vertices []math3d.Vec3, indices []uint32, transform math3d.Mat4) Occluder",
              "doc": "OccluderFromMesh derives a conservative [Occluder] directly from a static\ntriangle mesh and its world transform. Degenerate or out-of-range triangles\nare discarded, non-indexed triangle soups (len(indices) == 0) are accepted,\nand coplanar shared edges are detected so flat walls rasterize without\ninternal diagonal cracks while boundary and silhouette edges stay strictly\ninner-conservative.\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 149
            }
          ],
          "methods": []
        },
        {
          "name": "OcclusionBuffer",
          "anchor": "OcclusionBuffer",
          "decl": "type OcclusionBuffer struct {\n\t// DepthNO selects OpenGL [-1, 1] NDC depth clipping (clip.Z >= -clip.W)\n\t// when true. By default (false), WebGPU/Metal [0, 1] NDC depth\n\t// (clip.Z >= 0) is used, matching [math3d.Perspective] and [Queue.FrustumNO].\n\tDepthNO bool\n\t// DepthBias is a small conservative depth margin added to Hi-Z max depth\n\t// during [OcclusionBuffer.TestAABB] to guard against floating-point edge\n\t// popping. Defaults to 1e-4 when <= 0.\n\tDepthBias float32\n\t// contains filtered or unexported fields\n}",
          "doc": "OcclusionBuffer is a conservative CPU software depth buffer and max-Z\nhierarchical-Z (Hi-Z) pyramid for zero-false-negative volume occlusion\nculling (#380).\n\nTypical per-frame usage (0 heap allocations in steady state):\n\n\tocc.Clear()\n\tocc.Rasterize(viewProj, walls...)\n\tocc.BuildPyramid()\n\tplan := queue.BuildWithOcclusion(viewProj, camPos, items, occ)\n",
          "file": "pkg/render3d/occlusion.go",
          "line": 265,
          "members": [
            {
              "name": "DepthNO",
              "anchor": "OcclusionBuffer.DepthNO",
              "kind": "field",
              "doc": "DepthNO selects OpenGL [-1, 1] NDC depth clipping (clip.Z >= -clip.W)\nwhen true. By default (false), WebGPU/Metal [0, 1] NDC depth\n(clip.Z >= 0) is used, matching [math3d.Perspective] and [Queue.FrustumNO]."
            },
            {
              "name": "DepthBias",
              "anchor": "OcclusionBuffer.DepthBias",
              "kind": "field",
              "doc": "DepthBias is a small conservative depth margin added to Hi-Z max depth\nduring [OcclusionBuffer.TestAABB] to guard against floating-point edge\npopping. Defaults to 1e-4 when <= 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewOcclusionBuffer",
              "anchor": "NewOcclusionBuffer",
              "decl": "func NewOcclusionBuffer(width, height int) *OcclusionBuffer",
              "doc": "NewOcclusionBuffer allocates a reusable [OcclusionBuffer] of size\nwidth x height. Non-positive dimensions default to [DefaultOcclusionWidth] x\n[DefaultOcclusionHeight] (128x72).\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 296
            }
          ],
          "methods": [
            {
              "name": "BuildPyramid",
              "anchor": "OcclusionBuffer.BuildPyramid",
              "recv": "*OcclusionBuffer",
              "decl": "func (b *OcclusionBuffer) BuildPyramid()",
              "doc": "BuildPyramid constructs the conservative max-Z hierarchical-Z (Hi-Z) mip\npyramid from the rasterized depth buffer. Level 0 applies a separable 3x3\nmax erosion over the guard-banded depth buffer so partial pixel silhouettes\nand skewed quad corners never falsely occlude visible objects, and each\ncoarser mip cell stores the maximum depth of its 2x2 children.\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 773
            },
            {
              "name": "Clear",
              "anchor": "OcclusionBuffer.Clear",
              "recv": "*OcclusionBuffer",
              "decl": "func (b *OcclusionBuffer) Clear()",
              "doc": "Clear resets the depth buffer to far (1.0) without allocating.\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 386
            },
            {
              "name": "DepthAt",
              "anchor": "OcclusionBuffer.DepthAt",
              "recv": "*OcclusionBuffer",
              "decl": "func (b *OcclusionBuffer) DepthAt(x, y int) float32",
              "doc": "DepthAt returns the conservative level-0 depth value at pixel (x, y), or 1.0\nif out of range or if no geometry has been rasterized since [Clear].\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 375
            },
            {
              "name": "Height",
              "anchor": "OcclusionBuffer.Height",
              "recv": "*OcclusionBuffer",
              "decl": "func (b *OcclusionBuffer) Height() int",
              "doc": "Height returns the vertical resolution of the occlusion buffer.\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 368
            },
            {
              "name": "Levels",
              "anchor": "OcclusionBuffer.Levels",
              "recv": "*OcclusionBuffer",
              "decl": "func (b *OcclusionBuffer) Levels() int",
              "doc": "Levels returns the number of mip levels in the Hi-Z pyramid.\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 371
            },
            {
              "name": "Rasterize",
              "anchor": "OcclusionBuffer.Rasterize",
              "recv": "*OcclusionBuffer",
              "decl": "func (b *OcclusionBuffer) Rasterize(viewProj math3d.Mat4, occluders ...Occluder)",
              "doc": "Rasterize projects, near-plane clips, and conservatively rasterizes one or\nmore [Occluder] meshes into the depth buffer. Call [OcclusionBuffer.BuildPyramid]\nafter rasterizing all occluders for the frame.\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 403
            },
            {
              "name": "TestAABB",
              "anchor": "OcclusionBuffer.TestAABB",
              "recv": "*OcclusionBuffer",
              "decl": "func (b *OcclusionBuffer) TestAABB(bounds math3d.AABB, viewProj math3d.Mat4) bool",
              "doc": "TestAABB reports whether bounds is potentially visible against the Hi-Z\npyramid. It returns false ONLY when the projected AABB is strictly occluded\nbehind the depth buffer (or completely outside the view frustum), guaranteeing\nzero false negatives (no popping).\n\nIf any corner of bounds crosses the near plane (camera inside or straddling\nthe AABB), TestAABB always returns true.\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 851
            },
            {
              "name": "Width",
              "anchor": "OcclusionBuffer.Width",
              "recv": "*OcclusionBuffer",
              "decl": "func (b *OcclusionBuffer) Width() int",
              "doc": "Width returns the horizontal resolution of the occlusion buffer.\n",
              "file": "pkg/render3d/occlusion.go",
              "line": 365
            }
          ]
        },
        {
          "name": "PBRDrawBuffer",
          "anchor": "PBRDrawBuffer",
          "decl": "type PBRDrawBuffer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PBRDrawBuffer holds a [PBRDrawUniform] buffer and bind group bound at [PBRDrawGroup] for [LitPBRWGSL].\n",
          "file": "pkg/render3d/light.go",
          "line": 910,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPBRDrawBuffer",
              "anchor": "NewPBRDrawBuffer",
              "decl": "func NewPBRDrawBuffer(cx *core.Scope, dev *gpu.Device, sharedLayout *gpu.BindGroupLayout, initial PBRDrawUniform, retained bool) (*PBRDrawBuffer, error)",
              "doc": "NewPBRDrawBuffer creates a per-draw PBR uniform buffer, bind group layout (or reuses sharedLayout if\nnon-nil), and bind group on dev, scoped to cx.\n",
              "file": "pkg/render3d/light.go",
              "line": 921
            }
          ],
          "methods": [
            {
              "name": "BindGroup",
              "anchor": "PBRDrawBuffer.BindGroup",
              "recv": "*PBRDrawBuffer",
              "decl": "func (b *PBRDrawBuffer) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group to bind at [PBRDrawGroup].\n",
              "file": "pkg/render3d/light.go",
              "line": 994
            },
            {
              "name": "Close",
              "anchor": "PBRDrawBuffer.Close",
              "recv": "*PBRDrawBuffer",
              "decl": "func (b *PBRDrawBuffer) Close() error",
              "doc": "Close releases the draw buffer's bind group, uniform buffer, and owned bind group layout (if created\nwithout a shared layout). It is nil-safe and safe to call more than once.\n",
              "file": "pkg/render3d/light.go",
              "line": 1003
            },
            {
              "name": "Layout",
              "anchor": "PBRDrawBuffer.Layout",
              "recv": "*PBRDrawBuffer",
              "decl": "func (b *PBRDrawBuffer) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout for [PBRDrawGroup].\n",
              "file": "pkg/render3d/light.go",
              "line": 991
            },
            {
              "name": "Valid",
              "anchor": "PBRDrawBuffer.Valid",
              "recv": "*PBRDrawBuffer",
              "decl": "func (b *PBRDrawBuffer) Valid() bool",
              "doc": "Valid reports whether the draw buffer and bind group are live.\n",
              "file": "pkg/render3d/light.go",
              "line": 997
            },
            {
              "name": "Write",
              "anchor": "PBRDrawBuffer.Write",
              "recv": "*PBRDrawBuffer",
              "decl": "func (b *PBRDrawBuffer) Write(dev *gpu.Device, u PBRDrawUniform)",
              "doc": "Write uploads u into the draw uniform buffer. Pass the current *gpu.Device or nil to reuse the stored one.\n",
              "file": "pkg/render3d/light.go",
              "line": 974
            }
          ]
        },
        {
          "name": "PBRDrawUniform",
          "anchor": "PBRDrawUniform",
          "decl": "type PBRDrawUniform struct {\n\tModel        math3d.Mat4\n\tNormalMatrix math3d.Mat4\n\tBaseColor    math3d.Vec4\n\tPBRParams    math3d.Vec4\n\tEmissive     math3d.Vec4\n}",
          "doc": "PBRDrawUniform holds the per-draw world transform, normal matrix, and [PBRMaterial] matching [LitPBRWGSL].\n",
          "file": "pkg/render3d/light.go",
          "line": 856,
          "members": [
            {
              "name": "Model",
              "anchor": "PBRDrawUniform.Model",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalMatrix",
              "anchor": "PBRDrawUniform.NormalMatrix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColor",
              "anchor": "PBRDrawUniform.BaseColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PBRParams",
              "anchor": "PBRDrawUniform.PBRParams",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Emissive",
              "anchor": "PBRDrawUniform.Emissive",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPBRDrawUniform",
              "anchor": "NewPBRDrawUniform",
              "decl": "func NewPBRDrawUniform(model math3d.Mat4, mat PBRMaterial) PBRDrawUniform",
              "doc": "NewPBRDrawUniform constructs a [PBRDrawUniform] from an object-to-world model matrix and a [PBRMaterial],\nderiving the normal matrix via [math3d.NormalMatrix] (falling back to identity if model is singular).\n",
              "file": "pkg/render3d/light.go",
              "line": 866
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "PBRDrawUniform.Encode",
              "recv": "*PBRDrawUniform",
              "decl": "func (u *PBRDrawUniform) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst as the little-endian block [LitPBRWGSL] declares and returns\ndst[:PBRDrawUniformSize] without allocating. It panics if len(dst) < PBRDrawUniformSize.\n",
              "file": "pkg/render3d/light.go",
              "line": 891
            }
          ]
        },
        {
          "name": "PBRLightmap",
          "anchor": "PBRLightmap",
          "decl": "type PBRLightmap struct {\n\t// Model transforms vertices from object space to world space; the zero matrix defaults to identity.\n\tModel math3d.Mat4\n\t// Lightmap is the baked irradiance texture sampled at UV1*UVTransform.Scale + UVTransform.Offset. When nil, a 1x1 fallback texture is bound and indirect irradiance falls back to AmbientFallback (if non-zero or UseAmbientFallback is true) or the scene [LightRig]'s ambient light.\n\tLightmap *GPUTexture\n\t// LightmapSampler is an optional sampler for Lightmap; nil defaults to linear clamp-to-edge.\n\tLightmapSampler *GPUSampler\n\t// Encoding specifies how Lightmap texels are decoded to linear irradiance.\n\tEncoding LightmapEncoding\n\t// Intensity scales decoded lightmap irradiance. Zero means zero (no baked light); [DefaultPBRLightmap] sets 1.\n\tIntensity float32\n\t// RGBMMaxRange sets the HDR peak scale for [LightmapRGBM]. Zero defaults to [DefaultRGBMMaxRange] (8.0).\n\tRGBMMaxRange float32\n\t// UVTransform maps UV1 into a shared baked lightmap atlas (uv1 * Scale + Offset). Zero Scale defaults to {1, 1}.\n\tUVTransform UVTransform\n\t// AmbientFallback overrides the scene [LightRig]'s ambient irradiance when Lightmap is nil (used whenever non-zero or UseAmbientFallback is true).\n\tAmbientFallback [3]float32\n\t// UseAmbientFallback forces AmbientFallback (even when zero) instead of the [LightRig]'s ambient when Lightmap is nil.\n\tUseAmbientFallback bool\n}",
          "doc": "PBRLightmap configures per-object transform, baked lightmap texture/sampler, encoding, intensity, RGBM range, shared-atlas UV transform, and fallback ambient irradiance for [NewGPUPBRLightmap] and [GPUPBRLightmap.Update].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 264,
          "members": [
            {
              "name": "Model",
              "anchor": "PBRLightmap.Model",
              "kind": "field",
              "doc": "Model transforms vertices from object space to world space; the zero matrix defaults to identity."
            },
            {
              "name": "Lightmap",
              "anchor": "PBRLightmap.Lightmap",
              "kind": "field",
              "doc": "Lightmap is the baked irradiance texture sampled at UV1*UVTransform.Scale + UVTransform.Offset. When nil, a 1x1 fallback texture is bound and indirect irradiance falls back to AmbientFallback (if non-zero or UseAmbientFallback is true) or the scene [LightRig]'s ambient light."
            },
            {
              "name": "LightmapSampler",
              "anchor": "PBRLightmap.LightmapSampler",
              "kind": "field",
              "doc": "LightmapSampler is an optional sampler for Lightmap; nil defaults to linear clamp-to-edge."
            },
            {
              "name": "Encoding",
              "anchor": "PBRLightmap.Encoding",
              "kind": "field",
              "doc": "Encoding specifies how Lightmap texels are decoded to linear irradiance."
            },
            {
              "name": "Intensity",
              "anchor": "PBRLightmap.Intensity",
              "kind": "field",
              "doc": "Intensity scales decoded lightmap irradiance. Zero means zero (no baked light); [DefaultPBRLightmap] sets 1."
            },
            {
              "name": "RGBMMaxRange",
              "anchor": "PBRLightmap.RGBMMaxRange",
              "kind": "field",
              "doc": "RGBMMaxRange sets the HDR peak scale for [LightmapRGBM]. Zero defaults to [DefaultRGBMMaxRange] (8.0)."
            },
            {
              "name": "UVTransform",
              "anchor": "PBRLightmap.UVTransform",
              "kind": "field",
              "doc": "UVTransform maps UV1 into a shared baked lightmap atlas (uv1 * Scale + Offset). Zero Scale defaults to {1, 1}."
            },
            {
              "name": "AmbientFallback",
              "anchor": "PBRLightmap.AmbientFallback",
              "kind": "field",
              "doc": "AmbientFallback overrides the scene [LightRig]'s ambient irradiance when Lightmap is nil (used whenever non-zero or UseAmbientFallback is true)."
            },
            {
              "name": "UseAmbientFallback",
              "anchor": "PBRLightmap.UseAmbientFallback",
              "kind": "field",
              "doc": "UseAmbientFallback forces AmbientFallback (even when zero) instead of the [LightRig]'s ambient when Lightmap is nil."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultPBRLightmap",
              "anchor": "DefaultPBRLightmap",
              "decl": "func DefaultPBRLightmap() PBRLightmap",
              "doc": "DefaultPBRLightmap returns a [PBRLightmap] with an identity model matrix, [LightmapLinear] encoding, unit intensity, default RGBM range, and identity atlas UV transform.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 286
            }
          ],
          "methods": [
            {
              "name": "EncodeUniform",
              "anchor": "PBRLightmap.EncodeUniform",
              "recv": "PBRLightmap",
              "decl": "func (m PBRLightmap) EncodeUniform(dst []byte) []byte",
              "doc": "EncodeUniform writes m's [PBRLightmapUniformSize]-byte little-endian uniform block into dst, matching struct PBRLightmapUniform in [PBRLightmapBindingsWGSL], and returns dst[:PBRLightmapUniformSize]. It panics if len(dst) < PBRLightmapUniformSize.\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 335
            },
            {
              "name": "Validate",
              "anchor": "PBRLightmap.Validate",
              "recv": "PBRLightmap",
              "decl": "func (m PBRLightmap) Validate() error",
              "doc": "Validate checks that every numeric field, encoding, UV transform, and non-nil GPU handle on m is valid. Every error wraps [ErrInvalidLightmap].\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 297
            }
          ]
        },
        {
          "name": "PBRLightmapEvalInput",
          "anchor": "PBRLightmapEvalInput",
          "decl": "type PBRLightmapEvalInput struct {\n\tMaterial Material\n\n\tBaseColorSample            [4]float32\n\tHasBaseColorSample         bool\n\tMetallicSample             float32 // glTF metallic-roughness texture B channel\n\tRoughnessSample            float32 // glTF metallic-roughness texture G channel\n\tHasMetallicRoughnessSample bool\n\tNormalSample               [3]float32 // UNORM [0, 1] tangent-space normal sample\n\tHasNormalSample            bool\n\tOcclusionSample            float32 // glTF occlusion texture R channel\n\tHasOcclusionSample         bool\n\tEmissiveSample             [3]float32 // linear RGB emissive texture sample\n\tHasEmissiveSample          bool\n\n\t// Lightmap inputs. When HasLightmap is true, LightmapSample is decoded using Encoding, RGBMMaxRange, and Intensity and replaces Rig.Ambient.\n\tHasLightmap        bool\n\tLightmapSample     [4]float32\n\tLightmapSRGB       bool // true when the lightmap texture was uploaded as FormatRGBA8UnormSRGB (hardware already decoded sRGB)\n\tEncoding           LightmapEncoding\n\tIntensity          float32\n\tRGBMMaxRange       float32\n\tAmbientFallback    [3]float32\n\tUseAmbientFallback bool\n\n\tWorldPos    math3d.Vec3\n\tNormal      math3d.Vec3 // geometric world-space normal\n\tTangent     math3d.Vec3 // optional world-space tangent (+U); derived from Normal when zero\n\tBitangent   math3d.Vec3 // optional world-space bitangent (+Y normal map / -V); derived from Normal x Tangent when zero\n\tViewDir     math3d.Vec3 // vector from surface toward camera\n\tFrontFacing bool        // true for front-facing fragments; flips Normal when false and Material.DoubleSided is true\n\tRig         LightRig\n}",
          "doc": "PBRLightmapEvalInput provides per-fragment inputs to [EvaluatePBRLightmap], the pure-Go CPU reference evaluator matching [PBRLightmapWGSL].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 792,
          "members": [
            {
              "name": "Material",
              "anchor": "PBRLightmapEvalInput.Material",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColorSample",
              "anchor": "PBRLightmapEvalInput.BaseColorSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasBaseColorSample",
              "anchor": "PBRLightmapEvalInput.HasBaseColorSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicSample",
              "anchor": "PBRLightmapEvalInput.MetallicSample",
              "kind": "field",
              "doc": "glTF metallic-roughness texture B channel"
            },
            {
              "name": "RoughnessSample",
              "anchor": "PBRLightmapEvalInput.RoughnessSample",
              "kind": "field",
              "doc": "glTF metallic-roughness texture G channel"
            },
            {
              "name": "HasMetallicRoughnessSample",
              "anchor": "PBRLightmapEvalInput.HasMetallicRoughnessSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalSample",
              "anchor": "PBRLightmapEvalInput.NormalSample",
              "kind": "field",
              "doc": "UNORM [0, 1] tangent-space normal sample"
            },
            {
              "name": "HasNormalSample",
              "anchor": "PBRLightmapEvalInput.HasNormalSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OcclusionSample",
              "anchor": "PBRLightmapEvalInput.OcclusionSample",
              "kind": "field",
              "doc": "glTF occlusion texture R channel"
            },
            {
              "name": "HasOcclusionSample",
              "anchor": "PBRLightmapEvalInput.HasOcclusionSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EmissiveSample",
              "anchor": "PBRLightmapEvalInput.EmissiveSample",
              "kind": "field",
              "doc": "linear RGB emissive texture sample"
            },
            {
              "name": "HasEmissiveSample",
              "anchor": "PBRLightmapEvalInput.HasEmissiveSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasLightmap",
              "anchor": "PBRLightmapEvalInput.HasLightmap",
              "kind": "field",
              "doc": "Lightmap inputs. When HasLightmap is true, LightmapSample is decoded using Encoding, RGBMMaxRange, and Intensity and replaces Rig.Ambient."
            },
            {
              "name": "LightmapSample",
              "anchor": "PBRLightmapEvalInput.LightmapSample",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LightmapSRGB",
              "anchor": "PBRLightmapEvalInput.LightmapSRGB",
              "kind": "field",
              "doc": "true when the lightmap texture was uploaded as FormatRGBA8UnormSRGB (hardware already decoded sRGB)"
            },
            {
              "name": "Encoding",
              "anchor": "PBRLightmapEvalInput.Encoding",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Intensity",
              "anchor": "PBRLightmapEvalInput.Intensity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RGBMMaxRange",
              "anchor": "PBRLightmapEvalInput.RGBMMaxRange",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AmbientFallback",
              "anchor": "PBRLightmapEvalInput.AmbientFallback",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UseAmbientFallback",
              "anchor": "PBRLightmapEvalInput.UseAmbientFallback",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldPos",
              "anchor": "PBRLightmapEvalInput.WorldPos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "PBRLightmapEvalInput.Normal",
              "kind": "field",
              "doc": "geometric world-space normal"
            },
            {
              "name": "Tangent",
              "anchor": "PBRLightmapEvalInput.Tangent",
              "kind": "field",
              "doc": "optional world-space tangent (+U); derived from Normal when zero"
            },
            {
              "name": "Bitangent",
              "anchor": "PBRLightmapEvalInput.Bitangent",
              "kind": "field",
              "doc": "optional world-space bitangent (+Y normal map / -V); derived from Normal x Tangent when zero"
            },
            {
              "name": "ViewDir",
              "anchor": "PBRLightmapEvalInput.ViewDir",
              "kind": "field",
              "doc": "vector from surface toward camera"
            },
            {
              "name": "FrontFacing",
              "anchor": "PBRLightmapEvalInput.FrontFacing",
              "kind": "field",
              "doc": "true for front-facing fragments; flips Normal when false and Material.DoubleSided is true"
            },
            {
              "name": "Rig",
              "anchor": "PBRLightmapEvalInput.Rig",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PBRLightmapEvalResult",
          "anchor": "PBRLightmapEvalResult",
          "decl": "type PBRLightmapEvalResult struct {\n\tLinear    math3d.Vec4 // unclamped linear RGBA radiance matching [PBRLightmapLinearWGSL]\n\tSRGB      math3d.Vec4 // IEC 61966-2-1 sRGB-encoded RGBA matching [PBRLightmapWGSL]\n\tIndirect  math3d.Vec3 // baked lightmap (or ambient fallback) diffuse contribution\n\tDirect    math3d.Vec3 // dynamic [LightRig] Cook-Torrance GGX direct contribution\n\tEmissive  math3d.Vec3 // emissive contribution\n\tNormal    math3d.Vec3 // final world-space shading normal after normal mapping\n\tMetallic  float32     // effective clamped metallic in [0, 1]\n\tRoughness float32     // effective clamped roughness in [0.045, 1]\n\tDiscarded bool        // true when AlphaMode == AlphaMask and effective alpha < AlphaCutoff\n}",
          "doc": "PBRLightmapEvalResult holds the CPU reference shading output produced by [EvaluatePBRLightmap].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 827,
          "members": [
            {
              "name": "Linear",
              "anchor": "PBRLightmapEvalResult.Linear",
              "kind": "field",
              "doc": "unclamped linear RGBA radiance matching [PBRLightmapLinearWGSL]"
            },
            {
              "name": "SRGB",
              "anchor": "PBRLightmapEvalResult.SRGB",
              "kind": "field",
              "doc": "IEC 61966-2-1 sRGB-encoded RGBA matching [PBRLightmapWGSL]"
            },
            {
              "name": "Indirect",
              "anchor": "PBRLightmapEvalResult.Indirect",
              "kind": "field",
              "doc": "baked lightmap (or ambient fallback) diffuse contribution"
            },
            {
              "name": "Direct",
              "anchor": "PBRLightmapEvalResult.Direct",
              "kind": "field",
              "doc": "dynamic [LightRig] Cook-Torrance GGX direct contribution"
            },
            {
              "name": "Emissive",
              "anchor": "PBRLightmapEvalResult.Emissive",
              "kind": "field",
              "doc": "emissive contribution"
            },
            {
              "name": "Normal",
              "anchor": "PBRLightmapEvalResult.Normal",
              "kind": "field",
              "doc": "final world-space shading normal after normal mapping"
            },
            {
              "name": "Metallic",
              "anchor": "PBRLightmapEvalResult.Metallic",
              "kind": "field",
              "doc": "effective clamped metallic in [0, 1]"
            },
            {
              "name": "Roughness",
              "anchor": "PBRLightmapEvalResult.Roughness",
              "kind": "field",
              "doc": "effective clamped roughness in [0.045, 1]"
            },
            {
              "name": "Discarded",
              "anchor": "PBRLightmapEvalResult.Discarded",
              "kind": "field",
              "doc": "true when AlphaMode == AlphaMask and effective alpha < AlphaCutoff"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "EvaluatePBRLightmap",
              "anchor": "EvaluatePBRLightmap",
              "decl": "func EvaluatePBRLightmap(in PBRLightmapEvalInput) PBRLightmapEvalResult",
              "doc": "EvaluatePBRLightmap evaluates the lightmapped glTF 2.0 metallic-roughness PBR shading model on the CPU, matching [PBRLightmapWGSL] and [PBRLightmapLinearWGSL].\n",
              "file": "pkg/render3d/pbr_lightmap.go",
              "line": 880
            }
          ],
          "methods": []
        },
        {
          "name": "PBRLightmapOptions",
          "anchor": "PBRLightmapOptions",
          "decl": "type PBRLightmapOptions struct {\n\t// Label names the uniform buffer, bind group layout, and bind group in GPU capture tools.\n\tLabel string\n\t// SharedLayout reuses an existing [PBRLightmapGroup] bind group layout (from [PBRLightmapBindGroupLayout], another [GPUPBRLightmap.Layout], or [GLTFPBRLightmapSet.Layout]) instead of creating one per object.\n\tSharedLayout *gpu.BindGroupLayout\n\t// FallbackTexture is an optional 1x1 linear texture bound when [PBRLightmap.Lightmap] is nil so callers sharing one fallback do not allocate a new 1x1 texture per instance.\n\tFallbackTexture *GPUTexture\n\t// FallbackSampler is an optional clamp-to-edge sampler bound when [PBRLightmap.LightmapSampler] is nil.\n\tFallbackSampler *GPUSampler\n\t// Retained keeps CPU shadow copies of the uniform buffer and any owned fallback texture/sampler so NSGo restores them across a GPU device loss.\n\tRetained bool\n}",
          "doc": "PBRLightmapOptions configures [NewGPUPBRLightmap].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 416,
          "members": [
            {
              "name": "Label",
              "anchor": "PBRLightmapOptions.Label",
              "kind": "field",
              "doc": "Label names the uniform buffer, bind group layout, and bind group in GPU capture tools."
            },
            {
              "name": "SharedLayout",
              "anchor": "PBRLightmapOptions.SharedLayout",
              "kind": "field",
              "doc": "SharedLayout reuses an existing [PBRLightmapGroup] bind group layout (from [PBRLightmapBindGroupLayout], another [GPUPBRLightmap.Layout], or [GLTFPBRLightmapSet.Layout]) instead of creating one per object."
            },
            {
              "name": "FallbackTexture",
              "anchor": "PBRLightmapOptions.FallbackTexture",
              "kind": "field",
              "doc": "FallbackTexture is an optional 1x1 linear texture bound when [PBRLightmap.Lightmap] is nil so callers sharing one fallback do not allocate a new 1x1 texture per instance."
            },
            {
              "name": "FallbackSampler",
              "anchor": "PBRLightmapOptions.FallbackSampler",
              "kind": "field",
              "doc": "FallbackSampler is an optional clamp-to-edge sampler bound when [PBRLightmap.LightmapSampler] is nil."
            },
            {
              "name": "Retained",
              "anchor": "PBRLightmapOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU shadow copies of the uniform buffer and any owned fallback texture/sampler so NSGo restores them across a GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PBRLightmapPipelineOptions",
          "anchor": "PBRLightmapPipelineOptions",
          "decl": "type PBRLightmapPipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools.\n\tLabel string\n\t// ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat() (or [gpu.FormatRGBA8Unorm] if undefined).\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing (and depth writes for opaque and alpha-mask modes) when non-zero.\n\tDepthFormat gpu.TextureFormat\n\t// AlphaMode selects blending and depth-write state: [AlphaOpaque] and [AlphaMask] write depth without color blending; [AlphaBlend] uses straight alpha blending ([gpu.BlendAlpha]) with depth writes disabled.\n\tAlphaMode AlphaMode\n\t// DoubleSided disables back-face culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack]).\n\tDoubleSided bool\n\t// LinearOutput skips the shader's final linear_to_srgb encode and writes unclamped linear radiance, for drawing into an [HDRTarget] resolved by [ToneMapPass]. When ColorFormat is an sRGB format, linear output is selected automatically so the hardware does not encode twice.\n\tLinearOutput bool\n\t// Retained keeps the compiled pipeline across a GPU device loss.\n\tRetained bool\n}",
          "doc": "PBRLightmapPipelineOptions configures [NewPBRLightmapPipeline].\n",
          "file": "pkg/render3d/pbr_lightmap.go",
          "line": 683,
          "members": [
            {
              "name": "Label",
              "anchor": "PBRLightmapPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools."
            },
            {
              "name": "ColorFormat",
              "anchor": "PBRLightmapPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat() (or [gpu.FormatRGBA8Unorm] if undefined)."
            },
            {
              "name": "DepthFormat",
              "anchor": "PBRLightmapPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing (and depth writes for opaque and alpha-mask modes) when non-zero."
            },
            {
              "name": "AlphaMode",
              "anchor": "PBRLightmapPipelineOptions.AlphaMode",
              "kind": "field",
              "doc": "AlphaMode selects blending and depth-write state: [AlphaOpaque] and [AlphaMask] write depth without color blending; [AlphaBlend] uses straight alpha blending ([gpu.BlendAlpha]) with depth writes disabled."
            },
            {
              "name": "DoubleSided",
              "anchor": "PBRLightmapPipelineOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables back-face culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack])."
            },
            {
              "name": "LinearOutput",
              "anchor": "PBRLightmapPipelineOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput skips the shader's final linear_to_srgb encode and writes unclamped linear radiance, for drawing into an [HDRTarget] resolved by [ToneMapPass]. When ColorFormat is an sRGB format, linear output is selected automatically so the hardware does not encode twice."
            },
            {
              "name": "Retained",
              "anchor": "PBRLightmapPipelineOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps the compiled pipeline across a GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PBRMaterial",
          "anchor": "PBRMaterial",
          "decl": "type PBRMaterial struct {\n\t// BaseColor is linear RGB albedo (dielectric diffuse reflectance or metallic F0 specular tint).\n\tBaseColor math3d.Vec3\n\t// Alpha is surface opacity in (0, 1]; zero defaults to 1 (opaque) in [NewPBRDrawUniform].\n\tAlpha float32\n\t// Metallic blends between dielectric (0) and conductor (1), clamped to [0, 1].\n\tMetallic float32\n\t// Roughness is perceptual roughness in [0, 1] (0 = smooth, 1 = fully rough). Internally clamped\n\t// to >= 0.045 before squaring to alpha = roughness^2 to prevent GGX singularities.\n\tRoughness float32\n\t// Emissive is optional linear RGB self-emission added after direct and ambient lighting.\n\tEmissive math3d.Vec3\n\t// Clearcoat is the KHR_materials_clearcoat coating intensity in [0, 1] (0 disables clearcoat).\n\tClearcoat float32\n\t// ClearcoatRoughness is the perceptual roughness of the clearcoat layer in [0, 1].\n\tClearcoatRoughness float32\n\t// Transmission is the KHR_materials_transmission optical transmission factor in [0, 1] (0 disables transmission).\n\tTransmission float32\n\t// IOR is the dielectric index of refraction (>= 1.0); zero defaults to 1.5 (F0 = 0.04).\n\tIOR float32\n}",
          "doc": "PBRMaterial holds glTF 2.0 metallic-roughness surface parameters in linear RGB space.\n",
          "file": "pkg/render3d/light.go",
          "line": 815,
          "members": [
            {
              "name": "BaseColor",
              "anchor": "PBRMaterial.BaseColor",
              "kind": "field",
              "doc": "BaseColor is linear RGB albedo (dielectric diffuse reflectance or metallic F0 specular tint)."
            },
            {
              "name": "Alpha",
              "anchor": "PBRMaterial.Alpha",
              "kind": "field",
              "doc": "Alpha is surface opacity in (0, 1]; zero defaults to 1 (opaque) in [NewPBRDrawUniform]."
            },
            {
              "name": "Metallic",
              "anchor": "PBRMaterial.Metallic",
              "kind": "field",
              "doc": "Metallic blends between dielectric (0) and conductor (1), clamped to [0, 1]."
            },
            {
              "name": "Roughness",
              "anchor": "PBRMaterial.Roughness",
              "kind": "field",
              "doc": "Roughness is perceptual roughness in [0, 1] (0 = smooth, 1 = fully rough). Internally clamped\nto >= 0.045 before squaring to alpha = roughness^2 to prevent GGX singularities."
            },
            {
              "name": "Emissive",
              "anchor": "PBRMaterial.Emissive",
              "kind": "field",
              "doc": "Emissive is optional linear RGB self-emission added after direct and ambient lighting."
            },
            {
              "name": "Clearcoat",
              "anchor": "PBRMaterial.Clearcoat",
              "kind": "field",
              "doc": "Clearcoat is the KHR_materials_clearcoat coating intensity in [0, 1] (0 disables clearcoat)."
            },
            {
              "name": "ClearcoatRoughness",
              "anchor": "PBRMaterial.ClearcoatRoughness",
              "kind": "field",
              "doc": "ClearcoatRoughness is the perceptual roughness of the clearcoat layer in [0, 1]."
            },
            {
              "name": "Transmission",
              "anchor": "PBRMaterial.Transmission",
              "kind": "field",
              "doc": "Transmission is the KHR_materials_transmission optical transmission factor in [0, 1] (0 disables transmission)."
            },
            {
              "name": "IOR",
              "anchor": "PBRMaterial.IOR",
              "kind": "field",
              "doc": "IOR is the dielectric index of refraction (>= 1.0); zero defaults to 1.5 (F0 = 0.04)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "WithVertexColor",
              "anchor": "PBRMaterial.WithVertexColor",
              "recv": "PBRMaterial",
              "decl": "func (m PBRMaterial) WithVertexColor(c math3d.Vec4) PBRMaterial",
              "doc": "WithVertexColor returns a copy of m with BaseColor multiplied by c.XYZ and Alpha multiplied by\nc.W (treating a zero Alpha on m as 1, matching [NewPBRDrawUniform]), so passing the result to\n[EvaluatePBR], [ShadePoint], [ShadePointShadowed], [ShadePointVisibility], or [EvaluateIBL]\nreproduces a [LitPBRPipelineOptions].VertexColors fragment on the CPU.\n",
              "file": "pkg/render3d/light.go",
              "line": 841
            }
          ]
        },
        {
          "name": "PixelBuffer",
          "anchor": "PixelBuffer",
          "decl": "type PixelBuffer struct {\n\tWidth  int\n\tHeight int\n\tStride int\n\tFormat gpu.TextureFormat\n\tPixels []byte\n}",
          "doc": "PixelBuffer holds uncompressed 2D pixel data on the CPU, ready to upload to a GPU view with [UploadTexturePixels].\n\nWidth and Height must be positive. Format is one of [gpu.FormatRGBA8Unorm], [gpu.FormatRGBA8UnormSRGB], [gpu.FormatRG8Unorm], [gpu.FormatR8Unorm], or [gpu.FormatUndefined] (which selects RGBA8 linear or sRGB per [TextureUpload.SRGB]). Stride is the byte distance between consecutive rows; when zero, rows are assumed tightly packed (Width * BytesPerPixel).\n",
          "file": "pkg/render3d/texture.go",
          "line": 36,
          "members": [
            {
              "name": "Width",
              "anchor": "PixelBuffer.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "PixelBuffer.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stride",
              "anchor": "PixelBuffer.Stride",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Format",
              "anchor": "PixelBuffer.Format",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pixels",
              "anchor": "PixelBuffer.Pixels",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PixelBufferFromImage",
              "anchor": "PixelBufferFromImage",
              "decl": "func PixelBufferFromImage(img image.Image) (PixelBuffer, error)",
              "doc": "PixelBufferFromImage converts any [image.Image] (including sub-images with a non-zero Bounds().Min) into a tightly packed straight-alpha RGBA8 [PixelBuffer]. When img is already an [*image.NRGBA], its channel bytes are copied verbatim even for pixels with zero alpha, preserving packed data maps. Every error wraps [ErrInvalidTexture].\n",
              "file": "pkg/render3d/texture.go",
              "line": 110
            }
          ],
          "methods": [
            {
              "name": "BytesPerPixel",
              "anchor": "PixelBuffer.BytesPerPixel",
              "recv": "PixelBuffer",
              "decl": "func (b PixelBuffer) BytesPerPixel() int",
              "doc": "BytesPerPixel returns the byte width of one pixel for b.Format, or zero for an unsupported format. [gpu.FormatUndefined] defaults to 4 (RGBA8).\n",
              "file": "pkg/render3d/texture.go",
              "line": 45
            },
            {
              "name": "TightSize",
              "anchor": "PixelBuffer.TightSize",
              "recv": "PixelBuffer",
              "decl": "func (b PixelBuffer) TightSize() int",
              "doc": "TightSize returns the byte length of tightly packed rows for b (Width * Height * BytesPerPixel), or zero when b has non-positive dimensions or an unsupported format.\n",
              "file": "pkg/render3d/texture.go",
              "line": 63
            },
            {
              "name": "Validate",
              "anchor": "PixelBuffer.Validate",
              "recv": "PixelBuffer",
              "decl": "func (b PixelBuffer) Validate() error",
              "doc": "Validate reports whether b describes a valid uncompressed 2D pixel buffer: positive dimensions within uint32 range, a supported 8-bit format, a non-negative stride at least one row wide, and enough bytes in Pixels for every row. Every error wraps [ErrInvalidTexture].\n",
              "file": "pkg/render3d/texture.go",
              "line": 72
            }
          ]
        },
        {
          "name": "PixelViewport",
          "anchor": "PixelViewport",
          "decl": "type PixelViewport struct {\n\tX        int32\n\tY        int32\n\tWidth    int32\n\tHeight   int32\n\tMinDepth float32\n\tMaxDepth float32\n}",
          "doc": "PixelViewport is a resolved, target-clamped pixel rectangle ready to apply to a [gpu.RenderPass] with [PixelViewport.Apply].\n",
          "file": "pkg/render3d/viewport.go",
          "line": 526,
          "members": [
            {
              "name": "X",
              "anchor": "PixelViewport.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "PixelViewport.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "PixelViewport.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "PixelViewport.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinDepth",
              "anchor": "PixelViewport.MinDepth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxDepth",
              "anchor": "PixelViewport.MaxDepth",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "PixelViewport.Apply",
              "recv": "PixelViewport",
              "decl": "func (p PixelViewport) Apply(pass *gpu.RenderPass)",
              "doc": "Apply sets both the rasterizer viewport and the matching pixel scissor rect on pass so draws stay strictly inside p with zero bleed across split seams.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 581
            },
            {
              "name": "Aspect",
              "anchor": "PixelViewport.Aspect",
              "recv": "PixelViewport",
              "decl": "func (p PixelViewport) Aspect() float32",
              "doc": "Aspect returns Width / Height, or zero when Width or Height is non-positive.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 573
            },
            {
              "name": "Bounds",
              "anchor": "PixelViewport.Bounds",
              "recv": "PixelViewport",
              "decl": "func (p PixelViewport) Bounds(pixelsPerPoint float32) core.Bounds",
              "doc": "Bounds converts p from physical pixels to a [core.Bounds] in logical points for 2D overlay helpers such as [DebugDraw.Flush], [Gizmo.DrawGizmo], and [BillboardRenderer.Draw], which draw into a [*core.Drawing] measured in points. pixelsPerPoint is the surface's content scale: its width in pixels (frame.Size) divided by the view's width in points. A non-positive or non-finite pixelsPerPoint is treated as 1.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 590
            }
          ]
        },
        {
          "name": "PointLight",
          "anchor": "PointLight",
          "decl": "type PointLight struct {\n\tPosition  math3d.Vec3\n\tColor     math3d.Vec3\n\tIntensity float32\n\tRange     float32\n}",
          "doc": "PointLight is an omnidirectional punctual emitter at Position with inverse-square falloff and an\noptional glTF KHR_lights_punctual smooth cutoff Range.\n\nColor is linear RGB tint (non-negative finite channels) and Intensity scales Color to produce linear\nradiant intensity. When Range > 0, attenuation is windowed by max(min(1 - (d/Range)^4, 1), 0)^2 / d^2\nso contribution smoothly reaches zero at Range; when Range == 0, pure inverse-square falloff 1 / d^2\nis used.\n",
          "file": "pkg/render3d/light.go",
          "line": 408,
          "members": [
            {
              "name": "Position",
              "anchor": "PointLight.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "PointLight.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Intensity",
              "anchor": "PointLight.Intensity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Range",
              "anchor": "PointLight.Range",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Validate",
              "anchor": "PointLight.Validate",
              "recv": "PointLight",
              "decl": "func (l PointLight) Validate() error",
              "doc": "Validate reports whether l has a finite position, finite non-negative color channels, and finite\nnon-negative intensity and range. Every error wraps [ErrInvalidLight].\n",
              "file": "pkg/render3d/light.go",
              "line": 417
            }
          ]
        },
        {
          "name": "PointShadowConfig",
          "anchor": "PointShadowConfig",
          "decl": "type PointShadowConfig struct {\n\t// FaceResolution is the width and height of one cube face tile in texels. The 3x2 depth atlas has size (3 * FaceResolution) x (2 * FaceResolution). Zero defaults to 512.\n\tFaceResolution uint32\n\t// Near is the near plane distance of the six face projections. Zero defaults to [DefaultLocalShadowNear].\n\tNear float32\n\t// Far is the far plane distance used when the point light's Range is 0; a light with a Range uses that instead. Zero defaults to [DefaultLocalShadowFar].\n\tFar float32\n\t// DepthBias subtracts a constant NDC [0, 1] bias during depth comparison.\n\tDepthBias float32\n\t// NormalBias offsets the shaded world position along its surface normal before selecting the cube face and comparing depth.\n\tNormalBias float32\n\t// Filter selects hard single-tap or 3x3 PCF comparison sampling.\n\tFilter LocalShadowFilter\n\t// CullMode sets face culling for the shadow caster passes (default gpu.CullNone).\n\tCullMode gpu.CullMode\n\t// MaxCasters is the maximum number of [PointShadowMap.DrawCaster] calls per cube face pass, at most [MaxLocalShadowCasters]. Each face has its own slots, so faces can be recorded in any order or skipped. Zero defaults to [DefaultLocalShadowMaxCasters].\n\tMaxCasters uint32\n\t// Label names GPU resources in capture tools.\n\tLabel string\n\t// Retained keeps resources across GPU device loss and restore.\n\tRetained bool\n}",
          "doc": "PointShadowConfig configures an omnidirectional 3x2 depth-atlas [PointShadowMap].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 509,
          "members": [
            {
              "name": "FaceResolution",
              "anchor": "PointShadowConfig.FaceResolution",
              "kind": "field",
              "doc": "FaceResolution is the width and height of one cube face tile in texels. The 3x2 depth atlas has size (3 * FaceResolution) x (2 * FaceResolution). Zero defaults to 512."
            },
            {
              "name": "Near",
              "anchor": "PointShadowConfig.Near",
              "kind": "field",
              "doc": "Near is the near plane distance of the six face projections. Zero defaults to [DefaultLocalShadowNear]."
            },
            {
              "name": "Far",
              "anchor": "PointShadowConfig.Far",
              "kind": "field",
              "doc": "Far is the far plane distance used when the point light's Range is 0; a light with a Range uses that instead. Zero defaults to [DefaultLocalShadowFar]."
            },
            {
              "name": "DepthBias",
              "anchor": "PointShadowConfig.DepthBias",
              "kind": "field",
              "doc": "DepthBias subtracts a constant NDC [0, 1] bias during depth comparison."
            },
            {
              "name": "NormalBias",
              "anchor": "PointShadowConfig.NormalBias",
              "kind": "field",
              "doc": "NormalBias offsets the shaded world position along its surface normal before selecting the cube face and comparing depth."
            },
            {
              "name": "Filter",
              "anchor": "PointShadowConfig.Filter",
              "kind": "field",
              "doc": "Filter selects hard single-tap or 3x3 PCF comparison sampling."
            },
            {
              "name": "CullMode",
              "anchor": "PointShadowConfig.CullMode",
              "kind": "field",
              "doc": "CullMode sets face culling for the shadow caster passes (default gpu.CullNone)."
            },
            {
              "name": "MaxCasters",
              "anchor": "PointShadowConfig.MaxCasters",
              "kind": "field",
              "doc": "MaxCasters is the maximum number of [PointShadowMap.DrawCaster] calls per cube face pass, at most [MaxLocalShadowCasters]. Each face has its own slots, so faces can be recorded in any order or skipped. Zero defaults to [DefaultLocalShadowMaxCasters]."
            },
            {
              "name": "Label",
              "anchor": "PointShadowConfig.Label",
              "kind": "field",
              "doc": "Label names GPU resources in capture tools."
            },
            {
              "name": "Retained",
              "anchor": "PointShadowConfig.Retained",
              "kind": "field",
              "doc": "Retained keeps resources across GPU device loss and restore."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultPointShadowConfig",
              "anchor": "DefaultPointShadowConfig",
              "decl": "func DefaultPointShadowConfig() PointShadowConfig",
              "doc": "DefaultPointShadowConfig returns a ready-to-use 512x512-per-face PCF 3x3 point shadow configuration.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 533
            }
          ],
          "methods": [
            {
              "name": "AtlasSize",
              "anchor": "PointShadowConfig.AtlasSize",
              "recv": "PointShadowConfig",
              "decl": "func (c PointShadowConfig) AtlasSize() (width, height uint32)",
              "doc": "AtlasSize returns the width and height in texels of the 3x2 2D depth atlas.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 564
            },
            {
              "name": "Normalized",
              "anchor": "PointShadowConfig.Normalized",
              "recv": "PointShadowConfig",
              "decl": "func (c PointShadowConfig) Normalized() PointShadowConfig",
              "doc": "Normalized returns a copy of c with zero FaceResolution, Near, Far and MaxCasters filled with defaults.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 547
            },
            {
              "name": "Validate",
              "anchor": "PointShadowConfig.Validate",
              "recv": "PointShadowConfig",
              "decl": "func (c PointShadowConfig) Validate() error",
              "doc": "Validate checks that c's resolution, planes, biases, filter, cull mode and caster count are valid. Every error wraps [ErrInvalidLocalShadow].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 570
            }
          ]
        },
        {
          "name": "PointShadowMap",
          "anchor": "PointShadowMap",
          "decl": "type PointShadowMap struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PointShadowMap manages an omnidirectional shadow for the first point light of a [LightRig]: the six 90-degree cube faces packed into one 3x2 Depth32Float atlas, its caster pipeline and its sampling bind group.\n\nCall [PointShadowMap.Update] with the rig's point light, record casters for each face to refresh between [PointShadowMap.BeginFacePass] and pass.End(), and bind [PointShadowMap.BindGroup] at [LocalShadowGroup] when drawing with [NewLitPBRPointShadowPipeline].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 1021,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPointShadowMap",
              "anchor": "NewPointShadowMap",
              "decl": "func NewPointShadowMap(cx *core.Scope, dev *gpu.Device, cfg PointShadowConfig) (*PointShadowMap, error)",
              "doc": "NewPointShadowMap creates a 3x2 Depth32Float atlas point shadow map and its GPU resources scoped to cx. Invalid configuration, an atlas above the device's MaxTextureDimension2D, or a caster buffer above its MaxBufferSize returns an error wrapping [ErrInvalidLocalShadow]; device errors are returned as [gpu.Error].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1037
            }
          ],
          "methods": [
            {
              "name": "AtlasHeight",
              "anchor": "PointShadowMap.AtlasHeight",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) AtlasHeight() uint32",
              "doc": "AtlasHeight returns the full height of the 3x2 depth atlas (2 * FaceResolution).\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1132
            },
            {
              "name": "AtlasWidth",
              "anchor": "PointShadowMap.AtlasWidth",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) AtlasWidth() uint32",
              "doc": "AtlasWidth returns the full width of the 3x2 depth atlas (3 * FaceResolution).\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1124
            },
            {
              "name": "BeginFacePass",
              "anchor": "PointShadowMap.BeginFacePass",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) BeginFacePass(dev *gpu.Device, target ShadowPassTarget, face gpu.CubeFace) *gpu.RenderPass",
              "doc": "BeginFacePass begins a depth-only render pass on target (a [*gpu.Encoder] or [*gpu.Frame]) for cube face (0..5) of the 3x2 depth atlas, resets that face's caster slots, binds the depth pipeline, and locks viewport and scissor to the face's tile so geometry cannot bleed into neighboring faces.\n\nFace 0 clears the whole atlas to 1.0 and faces 1..5 keep what is already there ([gpu.LoadLoad]). Refreshing only some faces in a frame (for example skipping faces whose casters did not move) therefore works as long as face 0 is either refreshed together with every other face or not refreshed at all. Each face has its own [PointShadowMap.MaxCasters] slots, so faces may be recorded in any order; record each face at most once per submission. It returns nil when p, dev or target is nil, p is invalid, or face is out of range.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1196
            },
            {
              "name": "BindGroup",
              "anchor": "PointShadowMap.BindGroup",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group to set at [LocalShadowGroup], or at the group passed to [PointShadowWGSLForGroup], during the lit render pass.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1172
            },
            {
              "name": "ByteSize",
              "anchor": "PointShadowMap.ByteSize",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by the 3x2 depth atlas and uniform buffers.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1180
            },
            {
              "name": "Close",
              "anchor": "PointShadowMap.Close",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) Close() error",
              "doc": "Close releases all GPU resources owned by p. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1242
            },
            {
              "name": "Config",
              "anchor": "PointShadowMap.Config",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) Config() PointShadowConfig",
              "doc": "Config returns the normalized [PointShadowConfig].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1108
            },
            {
              "name": "DepthTexture",
              "anchor": "PointShadowMap.DepthTexture",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) DepthTexture() *gpu.Texture",
              "doc": "DepthTexture returns the underlying Depth32Float 3x2 atlas [gpu.Texture].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1148
            },
            {
              "name": "DrawCaster",
              "anchor": "PointShadowMap.DrawCaster",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) DrawCaster(pass *gpu.RenderPass, mesh *GPUMesh, model math3d.Mat4) bool",
              "doc": "DrawCaster records a shadow caster draw for mesh transformed by model into the face pass most recently started by [PointShadowMap.BeginFacePass]. It returns false and draws nothing when an argument is invalid, [PointShadowMap.Update] has not been called yet, or [PointShadowMap.MaxCasters] casters were already drawn into this face.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1227
            },
            {
              "name": "FaceViewProj",
              "anchor": "PointShadowMap.FaceViewProj",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) FaceViewProj(face gpu.CubeFace) math3d.Mat4",
              "doc": "FaceViewProj returns the view-projection matrix of cube face (0..5) from the last [PointShadowMap.Update]. It returns identity for a nil receiver or an out-of-range face.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1089
            },
            {
              "name": "FaceViewport",
              "anchor": "PointShadowMap.FaceViewport",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) FaceViewport(face gpu.CubeFace) (x, y, width, height uint32)",
              "doc": "FaceViewport returns the pixel rectangle (x, y, width, height) inside the 3x2 depth atlas assigned to cube face (0..5).\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1097
            },
            {
              "name": "Layout",
              "anchor": "PointShadowMap.Layout",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout for sampling this point shadow map (binding 0: PointShadow uniform, binding 1: texture_depth_2d, binding 2: sampler_comparison).\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1164
            },
            {
              "name": "MaxCasters",
              "anchor": "PointShadowMap.MaxCasters",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) MaxCasters() uint32",
              "doc": "MaxCasters returns the number of [PointShadowMap.DrawCaster] calls one face pass accepts.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1116
            },
            {
              "name": "RenderTarget",
              "anchor": "PointShadowMap.RenderTarget",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) RenderTarget() *gpu.RenderTarget",
              "doc": "RenderTarget returns the underlying depth-only 3x2 atlas [gpu.RenderTarget].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1140
            },
            {
              "name": "Sampler",
              "anchor": "PointShadowMap.Sampler",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) Sampler() *gpu.Sampler",
              "doc": "Sampler returns the comparison [gpu.Sampler] bound in [PointShadowMap.BindGroup].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1156
            },
            {
              "name": "Uniforms",
              "anchor": "PointShadowMap.Uniforms",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) Uniforms() PointShadowUniform",
              "doc": "Uniforms returns the last point shadow uniform data written via [PointShadowMap.Update].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1081
            },
            {
              "name": "Update",
              "anchor": "PointShadowMap.Update",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) Update(dev *gpu.Device, light PointLight) error",
              "doc": "Update computes the six cube-face projections for the [LightRig] point light light (see [NewPointShadowUniform]) and writes the uniform buffer on dev without heap allocations.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1060
            },
            {
              "name": "Valid",
              "anchor": "PointShadowMap.Valid",
              "recv": "*PointShadowMap",
              "decl": "func (p *PointShadowMap) Valid() bool",
              "doc": "Valid reports whether all underlying GPU resources are open and live.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1189
            }
          ]
        },
        {
          "name": "PointShadowUniform",
          "anchor": "PointShadowUniform",
          "decl": "type PointShadowUniform struct {\n\tPosition          math3d.Vec3\n\tNear              float32\n\tFar               float32\n\tDepthBias         float32\n\tNormalBias        float32\n\tInvFaceResolution float32\n\t// FilterMode is 0 for [LocalShadowFilterHard] and 1 for [LocalShadowFilterPCF3x3].\n\tFilterMode float32\n}",
          "doc": "PointShadowUniform is the packed uniform data matching the WGSL PointShadow block declared by [PointShadowWGSL].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 582,
          "members": [
            {
              "name": "Position",
              "anchor": "PointShadowUniform.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Near",
              "anchor": "PointShadowUniform.Near",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Far",
              "anchor": "PointShadowUniform.Far",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DepthBias",
              "anchor": "PointShadowUniform.DepthBias",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalBias",
              "anchor": "PointShadowUniform.NormalBias",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvFaceResolution",
              "anchor": "PointShadowUniform.InvFaceResolution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FilterMode",
              "anchor": "PointShadowUniform.FilterMode",
              "kind": "field",
              "doc": "FilterMode is 0 for [LocalShadowFilterHard] and 1 for [LocalShadowFilterPCF3x3]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPointShadowUniform",
              "anchor": "NewPointShadowUniform",
              "decl": "func NewPointShadowUniform(light PointLight, cfg PointShadowConfig) (PointShadowUniform, error)",
              "doc": "NewPointShadowUniform computes the shadow uniform data for the [LightRig] point light light under cfg. The far plane is light.Range, or cfg.Far when Range is 0. It returns an error wrapping [ErrInvalidLight] when light is invalid, and one wrapping [ErrInvalidLocalShadow] when cfg is invalid or the far plane is not beyond the near plane.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 594
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "PointShadowUniform.Encode",
              "recv": "*PointShadowUniform",
              "decl": "func (u *PointShadowUniform) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst in the little-endian layout declared by [PointShadowWGSL] and returns dst[:PointShadowUniformSize]. It allocates nothing and panics if len(dst) < PointShadowUniformSize.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 641
            },
            {
              "name": "FaceViewProj",
              "anchor": "PointShadowUniform.FaceViewProj",
              "recv": "PointShadowUniform",
              "decl": "func (u PointShadowUniform) FaceViewProj(face gpu.CubeFace) math3d.Mat4",
              "doc": "FaceViewProj returns the 90-degree [0, 1]-depth perspective view-projection matrix of cube face (0..5) that [PointShadowMap] renders with. Out-of-range faces clamp to [gpu.CubeFacePosX].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 631
            }
          ]
        },
        {
          "name": "PostStack3D",
          "anchor": "PostStack3D",
          "decl": "type PostStack3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PostStack3D composes SSAO, Depth of Field, and Bloom over an offscreen 3D color+depth render target, routing enabled passes cleanly through ping-pong offscreen targets and writing the final result to the swapchain or a chosen destination texture.\n\nExecution order is fixed to SSAO -> Depth of Field -> Bloom so ambient occlusion darkens crevices before bokeh blurring and highlights bloom after optical blur. All passes use portable WGSL compatible with both full and compute-free (WebGL 2 / OpenGL ES 3.0) NSGo GPU profiles.\n",
          "file": "pkg/render3d/post3d.go",
          "line": 2484,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPostStack3D",
              "anchor": "NewPostStack3D",
              "decl": "func NewPostStack3D(cx *core.Scope, dev *gpu.Device, opts PostStack3DOptions) (*PostStack3D, error)",
              "doc": "NewPostStack3D creates a scope-owned composable 3D post-processing stack on dev.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2519
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "PostStack3D.Apply",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) Apply(dev *gpu.Device, rec RenderPassRecorder, srcColor, depthTex, dstColor *gpu.Texture) error",
              "doc": "Apply executes all enabled passes in order (SSAO -> Depth of Field -> Bloom) on caller-provided srcColor and depthTex textures, writing the final result into dstColor. A nil dstColor writes to the swapchain in OutputFormat; a texture must have the stack size and either ColorFormat or OutputFormat. srcColor and depthTex must have the stack size too, and dstColor cannot be one of them; a mismatch returns an error wrapping [ErrInvalidPostProcess]. If depthTex is nil, depth-dependent passes (SSAO and Depth of Field) are skipped; if no pass runs, srcColor is blitted to dstColor.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2966
            },
            {
              "name": "ApplyScene",
              "anchor": "PostStack3D.ApplyScene",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) ApplyScene(dev *gpu.Device, rec RenderPassRecorder, dstColor *gpu.Texture) error",
              "doc": "ApplyScene executes all enabled passes on [PostStack3D.SceneTarget]'s color and depth attachments, writing the result into dstColor as [PostStack3D.Apply] does.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2955
            },
            {
              "name": "BeginScenePass",
              "anchor": "PostStack3D.BeginScenePass",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) BeginScenePass(rec RenderPassRecorder, clearColor core.Color) *gpu.RenderPass",
              "doc": "BeginScenePass begins a render pass targeting [PostStack3D.SceneTarget], clearing color to clearColor and depth to 1.0 and storing both attachments for post-processing.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2736
            },
            {
              "name": "Bloom",
              "anchor": "PostStack3D.Bloom",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) Bloom() *BloomPass",
              "doc": "Bloom returns the underlying [BloomPass].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2774
            },
            {
              "name": "Close",
              "anchor": "PostStack3D.Close",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) Close() error",
              "doc": "Close releases all GPU resources owned by s and its passes. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 3072
            },
            {
              "name": "ColorFormat",
              "anchor": "PostStack3D.ColorFormat",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) ColorFormat() gpu.TextureFormat",
              "doc": "ColorFormat returns the offscreen scene and intermediate color target format.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2865
            },
            {
              "name": "DepthFormat",
              "anchor": "PostStack3D.DepthFormat",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) DepthFormat() gpu.TextureFormat",
              "doc": "DepthFormat returns the offscreen scene depth target format.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2873
            },
            {
              "name": "DepthOfField",
              "anchor": "PostStack3D.DepthOfField",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) DepthOfField() *DepthOfFieldPass",
              "doc": "DepthOfField returns the underlying [DepthOfFieldPass].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2766
            },
            {
              "name": "Height",
              "anchor": "PostStack3D.Height",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) Height() uint32",
              "doc": "Height returns the stack's offscreen target height in pixels.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2857
            },
            {
              "name": "OutputFormat",
              "anchor": "PostStack3D.OutputFormat",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) OutputFormat() gpu.TextureFormat",
              "doc": "OutputFormat returns the final destination format (swapchain or dstColor).\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2881
            },
            {
              "name": "Resize",
              "anchor": "PostStack3D.Resize",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) Resize(dev *gpu.Device, width, height uint32) error",
              "doc": "Resize recreates the stack's scene, ping-pong, and per-pass offscreen targets.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2925
            },
            {
              "name": "SSAO",
              "anchor": "PostStack3D.SSAO",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) SSAO() *SSAOPass",
              "doc": "SSAO returns the underlying [SSAOPass].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2758
            },
            {
              "name": "SceneTarget",
              "anchor": "PostStack3D.SceneTarget",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) SceneTarget() *gpu.RenderTarget",
              "doc": "SceneTarget returns the stack-managed offscreen 3D color+depth [gpu.RenderTarget].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2728
            },
            {
              "name": "SetBloom",
              "anchor": "PostStack3D.SetBloom",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) SetBloom(enabled bool, cfg BloomConfig) error",
              "doc": "SetBloom enables or disables Bloom and updates its configuration. A zero cfg keeps the current configuration, so SetBloom(false, BloomConfig{}) only turns the stage off.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2810
            },
            {
              "name": "SetCamera",
              "anchor": "PostStack3D.SetCamera",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) SetCamera(cam *scene3d.Camera) error",
              "doc": "SetCamera refreshes the projection SSAO reconstructs view-space positions with and the clip planes Depth of Field linearizes depth with from cam's projection matrix, keeping every other setting. Call it whenever the camera's projection changes, such as after a resize changes its aspect ratio or a zoom changes its field of view.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2824
            },
            {
              "name": "SetDepthOfField",
              "anchor": "PostStack3D.SetDepthOfField",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) SetDepthOfField(enabled bool, cfg DepthOfFieldConfig) error",
              "doc": "SetDepthOfField enables or disables Depth of Field and updates its configuration. A zero cfg keeps the current configuration, so SetDepthOfField(false, DepthOfFieldConfig{}) only turns the stage off.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2796
            },
            {
              "name": "SetSSAO",
              "anchor": "PostStack3D.SetSSAO",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) SetSSAO(enabled bool, cfg SSAOConfig) error",
              "doc": "SetSSAO enables or disables SSAO and updates its configuration. A zero cfg keeps the current configuration, so SetSSAO(false, SSAOConfig{}) only turns the stage off.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2782
            },
            {
              "name": "Valid",
              "anchor": "PostStack3D.Valid",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) Valid() bool",
              "doc": "Valid reports whether the stack and every internal pass and target are live.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2889
            },
            {
              "name": "Width",
              "anchor": "PostStack3D.Width",
              "recv": "*PostStack3D",
              "decl": "func (s *PostStack3D) Width() uint32",
              "doc": "Width returns the stack's offscreen target width in pixels.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 2849
            }
          ]
        },
        {
          "name": "PostStack3DOptions",
          "anchor": "PostStack3DOptions",
          "decl": "type PostStack3DOptions struct {\n\tLabel string\n\t// Width and Height of the offscreen 3D scene and post-processing targets (must be > 0).\n\tWidth  uint32\n\tHeight uint32\n\t// ColorFormat is the scene and intermediate ping-pong color format: [gpu.FormatRGBA16Float] (the default, preserving HDR highlights for Bloom), [gpu.FormatRGBA8Unorm], [gpu.FormatRGBA8UnormSRGB], [gpu.FormatBGRA8Unorm] or [gpu.FormatBGRA8UnormSRGB]. Any other format returns an error wrapping [ErrInvalidPostProcess].\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat is the scene render target's depth format. Defaults to [gpu.FormatDepth32Float] when zero.\n\tDepthFormat gpu.TextureFormat\n\t// OutputFormat is the swapchain format the final stage writes when dstColor is nil. A non-nil dstColor may be in OutputFormat or ColorFormat. Defaults to dev.SurfaceFormat() (or [gpu.FormatRGBA8Unorm]) when zero.\n\tOutputFormat gpu.TextureFormat\n\t// Retained opts offscreen targets, buffers, and samplers into automatic recreation after device loss.\n\tRetained bool\n\n\t// EnableSSAO enables the SSAO pass (stage 1). When false and SSAO is zero, DefaultSSAOConfig is prepared for later enabling.\n\tEnableSSAO bool\n\tSSAO       SSAOConfig\n\t// EnableDoF enables the Depth of Field pass (stage 2).\n\tEnableDoF bool\n\tDoF       DepthOfFieldConfig\n\t// EnableBloom enables the Bloom pass (stage 3).\n\tEnableBloom bool\n\tBloom       BloomConfig\n}",
          "doc": "PostStack3DOptions configures [NewPostStack3D].\n",
          "file": "pkg/render3d/post3d.go",
          "line": 2456,
          "members": [
            {
              "name": "Label",
              "anchor": "PostStack3DOptions.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "PostStack3DOptions.Width",
              "kind": "field",
              "doc": "Width and Height of the offscreen 3D scene and post-processing targets (must be > 0)."
            },
            {
              "name": "Height",
              "anchor": "PostStack3DOptions.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorFormat",
              "anchor": "PostStack3DOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat is the scene and intermediate ping-pong color format: [gpu.FormatRGBA16Float] (the default, preserving HDR highlights for Bloom), [gpu.FormatRGBA8Unorm], [gpu.FormatRGBA8UnormSRGB], [gpu.FormatBGRA8Unorm] or [gpu.FormatBGRA8UnormSRGB]. Any other format returns an error wrapping [ErrInvalidPostProcess]."
            },
            {
              "name": "DepthFormat",
              "anchor": "PostStack3DOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat is the scene render target's depth format. Defaults to [gpu.FormatDepth32Float] when zero."
            },
            {
              "name": "OutputFormat",
              "anchor": "PostStack3DOptions.OutputFormat",
              "kind": "field",
              "doc": "OutputFormat is the swapchain format the final stage writes when dstColor is nil. A non-nil dstColor may be in OutputFormat or ColorFormat. Defaults to dev.SurfaceFormat() (or [gpu.FormatRGBA8Unorm]) when zero."
            },
            {
              "name": "Retained",
              "anchor": "PostStack3DOptions.Retained",
              "kind": "field",
              "doc": "Retained opts offscreen targets, buffers, and samplers into automatic recreation after device loss."
            },
            {
              "name": "EnableSSAO",
              "anchor": "PostStack3DOptions.EnableSSAO",
              "kind": "field",
              "doc": "EnableSSAO enables the SSAO pass (stage 1). When false and SSAO is zero, DefaultSSAOConfig is prepared for later enabling."
            },
            {
              "name": "SSAO",
              "anchor": "PostStack3DOptions.SSAO",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableDoF",
              "anchor": "PostStack3DOptions.EnableDoF",
              "kind": "field",
              "doc": "EnableDoF enables the Depth of Field pass (stage 2)."
            },
            {
              "name": "DoF",
              "anchor": "PostStack3DOptions.DoF",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "EnableBloom",
              "anchor": "PostStack3DOptions.EnableBloom",
              "kind": "field",
              "doc": "EnableBloom enables the Bloom pass (stage 3)."
            },
            {
              "name": "Bloom",
              "anchor": "PostStack3DOptions.Bloom",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PrefilterOptions",
          "anchor": "PrefilterOptions",
          "decl": "type PrefilterOptions struct {\n\t// BaseSize is the resolution of mip level 0 (roughness = 0). Defaults to env.Size() when <= 0.\n\tBaseSize int\n\t// MipLevels is the number of roughness mip levels to generate, spanning roughness 0.0 (mip 0) through 1.0 (mip MipLevels-1). Defaults to min(MaxMipLevels(BaseSize, BaseSize), 5) when <= 0.\n\tMipLevels int\n\t// SampleCount is the number of Hammersley GGX importance samples per texel on roughness > 0 levels. Defaults to 64 when <= 0.\n\tSampleCount int\n}",
          "doc": "PrefilterOptions configures [PrefilterEnvironment].\n",
          "file": "pkg/render3d/skybox.go",
          "line": 1029,
          "members": [
            {
              "name": "BaseSize",
              "anchor": "PrefilterOptions.BaseSize",
              "kind": "field",
              "doc": "BaseSize is the resolution of mip level 0 (roughness = 0). Defaults to env.Size() when <= 0."
            },
            {
              "name": "MipLevels",
              "anchor": "PrefilterOptions.MipLevels",
              "kind": "field",
              "doc": "MipLevels is the number of roughness mip levels to generate, spanning roughness 0.0 (mip 0) through 1.0 (mip MipLevels-1). Defaults to min(MaxMipLevels(BaseSize, BaseSize), 5) when <= 0."
            },
            {
              "name": "SampleCount",
              "anchor": "PrefilterOptions.SampleCount",
              "kind": "field",
              "doc": "SampleCount is the number of Hammersley GGX importance samples per texel on roughness > 0 levels. Defaults to 64 when <= 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProbeBakeOptions",
          "anchor": "ProbeBakeOptions",
          "decl": "type ProbeBakeOptions struct {\n\t// Size is the face edge length in texels (must be positive).\n\tSize int\n\t// Near and Far set the 90-degree cubemap face projection clip planes for [BakeReflectionProbeGPU]. Non-positive Near defaults to 0.05; Far <= Near defaults to Near + 100.\n\tNear float32\n\tFar  float32\n\t// ClearColor is the background clear color for each face pass in [BakeReflectionProbeGPU].\n\tClearColor core.Color\n\t// SRGB marks the baked cubemap as sRGB-encoded: [BakeReflectionProbeGPU] renders into [gpu.FormatRGBA8UnormSRGB] targets and [UploadCubemap] uploads [gpu.FormatRGBA8UnormSRGB] so sampling decodes to linear light. When false, linear [gpu.FormatRGBA8Unorm] is used.\n\tSRGB bool\n\t// Prefilter configures GGX specular roughness mip prefiltering via [PrefilterEnvironment]. Zero fields use [PrefilterEnvironment]'s defaults unless SkipPrefilter is true.\n\tPrefilter PrefilterOptions\n\t// SkipPrefilter skips GGX prefiltering and uploads the captured mip-0 cubemap directly (with box mip generation controlled by Upload.GenerateMips).\n\tSkipPrefilter bool\n\t// Upload configures [UploadCubemap] for the final [GPUCubemap] (Label, Format, GenerateMips, Retained).\n\tUpload CubemapUpload\n}",
          "doc": "ProbeBakeOptions configures [BakeReflectionProbe] and [BakeReflectionProbeGPU].\n\nReflection probe bakes are runtime-only data generated on load or on request rather than persisted in text scene files.\n\nFor [BakeReflectionProbeGPU], each temporary offscreen face render target uses [gpu.FormatRGBA8Unorm] when SRGB is false or [gpu.FormatRGBA8UnormSRGB] when SRGB is true (unless Upload.Format explicitly selects one of those two formats), paired with [gpu.FormatDepth24Plus] for depth. Match the color format of any pipeline drawn inside renderFace (for example, [gpu.FormatRGBA8Unorm] for sRGB-encoding shaders such as [LitPBRWGSL], or [gpu.FormatRGBA8UnormSRGB] for linear-output shaders).\n",
          "file": "pkg/render3d/probes.go",
          "line": 699,
          "members": [
            {
              "name": "Size",
              "anchor": "ProbeBakeOptions.Size",
              "kind": "field",
              "doc": "Size is the face edge length in texels (must be positive)."
            },
            {
              "name": "Near",
              "anchor": "ProbeBakeOptions.Near",
              "kind": "field",
              "doc": "Near and Far set the 90-degree cubemap face projection clip planes for [BakeReflectionProbeGPU]. Non-positive Near defaults to 0.05; Far <= Near defaults to Near + 100."
            },
            {
              "name": "Far",
              "anchor": "ProbeBakeOptions.Far",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ClearColor",
              "anchor": "ProbeBakeOptions.ClearColor",
              "kind": "field",
              "doc": "ClearColor is the background clear color for each face pass in [BakeReflectionProbeGPU]."
            },
            {
              "name": "SRGB",
              "anchor": "ProbeBakeOptions.SRGB",
              "kind": "field",
              "doc": "SRGB marks the baked cubemap as sRGB-encoded: [BakeReflectionProbeGPU] renders into [gpu.FormatRGBA8UnormSRGB] targets and [UploadCubemap] uploads [gpu.FormatRGBA8UnormSRGB] so sampling decodes to linear light. When false, linear [gpu.FormatRGBA8Unorm] is used."
            },
            {
              "name": "Prefilter",
              "anchor": "ProbeBakeOptions.Prefilter",
              "kind": "field",
              "doc": "Prefilter configures GGX specular roughness mip prefiltering via [PrefilterEnvironment]. Zero fields use [PrefilterEnvironment]'s defaults unless SkipPrefilter is true."
            },
            {
              "name": "SkipPrefilter",
              "anchor": "ProbeBakeOptions.SkipPrefilter",
              "kind": "field",
              "doc": "SkipPrefilter skips GGX prefiltering and uploads the captured mip-0 cubemap directly (with box mip generation controlled by Upload.GenerateMips)."
            },
            {
              "name": "Upload",
              "anchor": "ProbeBakeOptions.Upload",
              "kind": "field",
              "doc": "Upload configures [UploadCubemap] for the final [GPUCubemap] (Label, Format, GenerateMips, Retained)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProbeBlendResult",
          "anchor": "ProbeBlendResult",
          "decl": "type ProbeBlendResult struct {\n\tPrimary   *ReflectionProbe\n\tSecondary *ReflectionProbe\n\tWeight0   float32\n\tWeight1   float32\n\tSkyWeight float32\n}",
          "doc": "ProbeBlendResult holds up to two active local reflection probes selected for a world position together with normalized blend weights (Weight0 + Weight1 + SkyWeight == 1).\n",
          "file": "pkg/render3d/probes.go",
          "line": 522,
          "members": [
            {
              "name": "Primary",
              "anchor": "ProbeBlendResult.Primary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Secondary",
              "anchor": "ProbeBlendResult.Secondary",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight0",
              "anchor": "ProbeBlendResult.Weight0",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weight1",
              "anchor": "ProbeBlendResult.Weight1",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SkyWeight",
              "anchor": "ProbeBlendResult.SkyWeight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EvaluateSpecular",
              "anchor": "ProbeBlendResult.EvaluateSpecular",
              "recv": "ProbeBlendResult",
              "decl": "func (r ProbeBlendResult) EvaluateSpecular(worldPos, reflDir math3d.Vec3, roughness float32, skyPrefilter *Cubemap) [3]float32",
              "doc": "EvaluateSpecular evaluates the blended specular prefiltered environment color on the CPU at worldPos along reflDir for roughness in [0, 1], matching sample_probe_specular in [ProbeIBLWGSL]. Unbaked, dirty, disabled, or nil-cubemap probes and a nil skyPrefilter all contribute black (0, 0, 0), matching the GPU fallback cubemap identically.\n",
              "file": "pkg/render3d/probes.go",
              "line": 531
            }
          ]
        },
        {
          "name": "ProbeCounts",
          "anchor": "ProbeCounts",
          "decl": "type ProbeCounts [3]int",
          "doc": "ProbeCounts is the [nx, ny, nz] probe lattice count serialized in flow style in baked light probe YAML files.\n",
          "file": "pkg/render3d/probe_io.go",
          "line": 132,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "ProbeCounts.MarshalYAML",
              "recv": "ProbeCounts",
              "decl": "func (c ProbeCounts) MarshalYAML() (any, error)",
              "doc": "MarshalYAML encodes c in compact single-line flow style [nx, ny, nz].\n",
              "file": "pkg/render3d/probe_io.go",
              "line": 135
            }
          ]
        },
        {
          "name": "ProbeIBLBufferOptions",
          "anchor": "ProbeIBLBufferOptions",
          "decl": "type ProbeIBLBufferOptions struct {\n\t// Label names the uniform buffer, fallback black cubemap, bind group layout, and bind group in GPU capture tools.\n\tLabel string\n\t// Layout optionally reuses a shared [ProbeIBLBindGroupLayout] across multiple per-object [GPUProbeIBLBuffer] instances so they share one pipeline. When nil, the buffer creates and owns its own layout.\n\tLayout *gpu.BindGroupLayout\n\t// Retained keeps CPU shadow copies of the uniform buffer and black fallback cubemap so NSGo recreates them across a GPU device loss.\n\tRetained bool\n}",
          "doc": "ProbeIBLBufferOptions configures [NewGPUProbeIBLBuffer].\n",
          "file": "pkg/render3d/probes.go",
          "line": 1461,
          "members": [
            {
              "name": "Label",
              "anchor": "ProbeIBLBufferOptions.Label",
              "kind": "field",
              "doc": "Label names the uniform buffer, fallback black cubemap, bind group layout, and bind group in GPU capture tools."
            },
            {
              "name": "Layout",
              "anchor": "ProbeIBLBufferOptions.Layout",
              "kind": "field",
              "doc": "Layout optionally reuses a shared [ProbeIBLBindGroupLayout] across multiple per-object [GPUProbeIBLBuffer] instances so they share one pipeline. When nil, the buffer creates and owns its own layout."
            },
            {
              "name": "Retained",
              "anchor": "ProbeIBLBufferOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU shadow copies of the uniform buffer and black fallback cubemap so NSGo recreates them across a GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProbeIBLPipelineOptions",
          "anchor": "ProbeIBLPipelineOptions",
          "decl": "type ProbeIBLPipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools; empty picks render3d.lit_pbr_probe_ibl (with .linear for LinearOutput).\n\tLabel string\n\t// ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat().\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing and writes when not [gpu.FormatUndefined].\n\tDepthFormat gpu.TextureFormat\n\t// LinearOutput writes unclamped linear radiance without sRGB encoding for drawing into an [HDRTarget] resolved by [ToneMapPass].\n\tLinearOutput bool\n}",
          "doc": "ProbeIBLPipelineOptions configures [NewLitPBRProbeIBLPipelineWithOptions].\n",
          "file": "pkg/render3d/probes.go",
          "line": 1722,
          "members": [
            {
              "name": "Label",
              "anchor": "ProbeIBLPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools; empty picks render3d.lit_pbr_probe_ibl (with .linear for LinearOutput)."
            },
            {
              "name": "ColorFormat",
              "anchor": "ProbeIBLPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat()."
            },
            {
              "name": "DepthFormat",
              "anchor": "ProbeIBLPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing and writes when not [gpu.FormatUndefined]."
            },
            {
              "name": "LinearOutput",
              "anchor": "ProbeIBLPipelineOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput writes unclamped linear radiance without sRGB encoding for drawing into an [HDRTarget] resolved by [ToneMapPass]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProbeIBLUniform",
          "anchor": "ProbeIBLUniform",
          "decl": "type ProbeIBLUniform struct {\n\tSH IrradianceSH\n\n\tProbe0Pos           math3d.Vec3\n\tProbe0BoxMin        math3d.Vec3\n\tProbe0BoxMax        math3d.Vec3\n\tProbe0Weight        float32\n\tProbe0MaxLOD        float32\n\tProbe0BoxProjection bool\n\n\tProbe1Pos           math3d.Vec3\n\tProbe1BoxMin        math3d.Vec3\n\tProbe1BoxMax        math3d.Vec3\n\tProbe1Weight        float32\n\tProbe1MaxLOD        float32\n\tProbe1BoxProjection bool\n\n\tIntensity float32\n\tSkyWeight float32\n\tSkyMaxLOD float32\n}",
          "doc": "ProbeIBLUniform holds the per-object diffuse L2 spherical harmonic irradiance and blended reflection-probe parameters bound by [GPUProbeIBLBuffer] at [IBLGroup] and read by [ProbeIBLWGSL].\n",
          "file": "pkg/render3d/probes.go",
          "line": 1300,
          "members": [
            {
              "name": "SH",
              "anchor": "ProbeIBLUniform.SH",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe0Pos",
              "anchor": "ProbeIBLUniform.Probe0Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe0BoxMin",
              "anchor": "ProbeIBLUniform.Probe0BoxMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe0BoxMax",
              "anchor": "ProbeIBLUniform.Probe0BoxMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe0Weight",
              "anchor": "ProbeIBLUniform.Probe0Weight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe0MaxLOD",
              "anchor": "ProbeIBLUniform.Probe0MaxLOD",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe0BoxProjection",
              "anchor": "ProbeIBLUniform.Probe0BoxProjection",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe1Pos",
              "anchor": "ProbeIBLUniform.Probe1Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe1BoxMin",
              "anchor": "ProbeIBLUniform.Probe1BoxMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe1BoxMax",
              "anchor": "ProbeIBLUniform.Probe1BoxMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe1Weight",
              "anchor": "ProbeIBLUniform.Probe1Weight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe1MaxLOD",
              "anchor": "ProbeIBLUniform.Probe1MaxLOD",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probe1BoxProjection",
              "anchor": "ProbeIBLUniform.Probe1BoxProjection",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Intensity",
              "anchor": "ProbeIBLUniform.Intensity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SkyWeight",
              "anchor": "ProbeIBLUniform.SkyWeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SkyMaxLOD",
              "anchor": "ProbeIBLUniform.SkyMaxLOD",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewProbeIBLUniform",
              "anchor": "NewProbeIBLUniform",
              "decl": "func NewProbeIBLUniform(sh IrradianceSH, blend ProbeBlendResult, sky *GPUCubemap, intensity float32) ProbeIBLUniform",
              "doc": "NewProbeIBLUniform builds a [ProbeIBLUniform] from interpolated light-probe irradiance sh, reflection probe blend result blend, optional sky prefiltered cubemap sky, and overall IBL intensity.\n\nUnbaked, dirty, disabled, or invalid-GPUCubemap probes receive zero weight, and a nil or invalid sky receives zero SkyWeight and SkyMaxLOD, matching [EvaluateProbeIBL] identically.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1325
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "ProbeIBLUniform.Encode",
              "recv": "*ProbeIBLUniform",
              "decl": "func (u *ProbeIBLUniform) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst as the little-endian [ProbeIBLUniformSize]-byte block declared by [ProbeIBLWGSL] and returns dst[:ProbeIBLUniformSize] without allocating. It panics if len(dst) < ProbeIBLUniformSize.\n",
              "file": "pkg/render3d/probes.go",
              "line": 1388
            },
            {
              "name": "Validate",
              "anchor": "ProbeIBLUniform.Validate",
              "recv": "ProbeIBLUniform",
              "decl": "func (u ProbeIBLUniform) Validate() error",
              "doc": "Validate checks that every spherical harmonic coefficient, probe coordinate, weight, LOD, and intensity is finite and non-negative where required. Every error wraps [ErrInvalidProbe].\n",
              "file": "pkg/render3d/probes.go",
              "line": 1354
            }
          ]
        },
        {
          "name": "ProbeVec3",
          "anchor": "ProbeVec3",
          "decl": "type ProbeVec3 [3]float32",
          "doc": "ProbeVec3 is a 3-component float32 vector serialized in flow style as [x, y, z] in baked light probe YAML files.\n",
          "file": "pkg/render3d/probe_io.go",
          "line": 124,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "ProbeVec3.MarshalYAML",
              "recv": "ProbeVec3",
              "decl": "func (v ProbeVec3) MarshalYAML() (any, error)",
              "doc": "MarshalYAML encodes v in compact single-line flow style [x, y, z], normalizing -0 to 0.\n",
              "file": "pkg/render3d/probe_io.go",
              "line": 127
            }
          ]
        },
        {
          "name": "Queue",
          "anchor": "Queue",
          "decl": "type Queue struct {\n\t// LODHysteresis is the relative deadband [0, 0.5] used by [SelectLOD] when\n\t// DrawItem.ID != 0 to prevent LOD popping near distance/screen thresholds.\n\tLODHysteresis float32\n\t// FrustumNO is kept for source compatibility and ignored: [Queue.Build]\n\t// always extracts the [-1, 1] form, which is conservative for both depth\n\t// conventions. A [0, 1] extraction of an OpenGL [-1, 1] matrix, such as\n\t// [math3d.OrthoNO] or [math3d.PerspectiveNO], puts the near plane halfway\n\t// into the view and culls visible geometry; the [-1, 1] form only admits\n\t// a thin slab in front of a [0, 1] projection's near plane, which the\n\t// depth test still discards.\n\tFrustumNO bool\n\t// DisableInstancing emits one InstanceBatch per opaque draw when true.\n\tDisableInstancing bool\n\t// Occluder is an optional software depth-buffer / Hi-Z occlusion buffer\n\t// (#380). When non-nil, [Queue.Build] skips frustum-visible items whose\n\t// WorldBounds fail [OcclusionBuffer.TestAABB] and records them in\n\t// [RenderStats.Occluded].\n\tOccluder *OcclusionBuffer\n\t// TextureBytes and BufferBytes are optional resident GPU memory totals\n\t// copied into RenderPlan.Stats for budget checking.\n\tTextureBytes uint64\n\tBufferBytes  uint64\n\t// contains filtered or unexported fields\n}",
          "doc": "Queue performs frustum culling, LOD selection, opaque sorting, instanced\nbatching, back-to-front transparency sorting, and statistics accumulation\nusing reusable internal storage (0 allocs/op in steady state).\n",
          "file": "pkg/render3d/queue.go",
          "line": 100,
          "members": [
            {
              "name": "LODHysteresis",
              "anchor": "Queue.LODHysteresis",
              "kind": "field",
              "doc": "LODHysteresis is the relative deadband [0, 0.5] used by [SelectLOD] when\nDrawItem.ID != 0 to prevent LOD popping near distance/screen thresholds."
            },
            {
              "name": "FrustumNO",
              "anchor": "Queue.FrustumNO",
              "kind": "field",
              "doc": "FrustumNO is kept for source compatibility and ignored: [Queue.Build]\nalways extracts the [-1, 1] form, which is conservative for both depth\nconventions. A [0, 1] extraction of an OpenGL [-1, 1] matrix, such as\n[math3d.OrthoNO] or [math3d.PerspectiveNO], puts the near plane halfway\ninto the view and culls visible geometry; the [-1, 1] form only admits\na thin slab in front of a [0, 1] projection's near plane, which the\ndepth test still discards."
            },
            {
              "name": "DisableInstancing",
              "anchor": "Queue.DisableInstancing",
              "kind": "field",
              "doc": "DisableInstancing emits one InstanceBatch per opaque draw when true."
            },
            {
              "name": "Occluder",
              "anchor": "Queue.Occluder",
              "kind": "field",
              "doc": "Occluder is an optional software depth-buffer / Hi-Z occlusion buffer\n(#380). When non-nil, [Queue.Build] skips frustum-visible items whose\nWorldBounds fail [OcclusionBuffer.TestAABB] and records them in\n[RenderStats.Occluded]."
            },
            {
              "name": "TextureBytes",
              "anchor": "Queue.TextureBytes",
              "kind": "field",
              "doc": "TextureBytes and BufferBytes are optional resident GPU memory totals\ncopied into RenderPlan.Stats for budget checking."
            },
            {
              "name": "BufferBytes",
              "anchor": "Queue.BufferBytes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Build",
              "anchor": "Queue.Build",
              "recv": "*Queue",
              "decl": "func (q *Queue) Build(viewProj math3d.Mat4, camPos math3d.Vec3, items []DrawItem) RenderPlan",
              "doc": "Build culls items against the frustum of viewProj (and against [Queue.Occluder]\nwhen non-nil), selects active LODs, sorts opaque and transparent queues,\nbuilds instanced batches, and computes exact [RenderStats].\n",
              "file": "pkg/render3d/queue.go",
              "line": 140
            },
            {
              "name": "BuildWithOcclusion",
              "anchor": "Queue.BuildWithOcclusion",
              "recv": "*Queue",
              "decl": "func (q *Queue) BuildWithOcclusion(viewProj math3d.Mat4, camPos math3d.Vec3, items []DrawItem, occluder *OcclusionBuffer) RenderPlan",
              "doc": "BuildWithOcclusion performs the same culling, LOD selection, sorting, and\nbatching pipeline as [Queue.Build] using the provided [OcclusionBuffer]\n(which may be nil to disable occlusion culling). Items that pass frustum\nculling but fail [OcclusionBuffer.TestAABB] are skipped and counted in both\n[RenderStats.Occluded] and [RenderStats.CulledItems].\n",
              "file": "pkg/render3d/queue.go",
              "line": 149
            },
            {
              "name": "ResetLODHistory",
              "anchor": "Queue.ResetLODHistory",
              "recv": "*Queue",
              "decl": "func (q *Queue) ResetLODHistory()",
              "doc": "ResetLODHistory clears cached per-ID LOD indices used for hysteresis.\n",
              "file": "pkg/render3d/queue.go",
              "line": 133
            }
          ]
        },
        {
          "name": "RawBufferUpload",
          "anchor": "RawBufferUpload",
          "decl": "type RawBufferUpload struct {\n\tLabel    string\n\tUsage    gpu.BufferUsage // gpu.UsageCopyDst is always added\n\tData     []byte\n\tRetained bool\n}",
          "doc": "RawBufferUpload describes a raw GPU buffer payload returned by the decode callback of [Uploader.QueueRawBuffer].\n",
          "file": "pkg/render3d/uploader.go",
          "line": 104,
          "members": [
            {
              "name": "Label",
              "anchor": "RawBufferUpload.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Usage",
              "anchor": "RawBufferUpload.Usage",
              "kind": "field",
              "doc": "gpu.UsageCopyDst is always added"
            },
            {
              "name": "Data",
              "anchor": "RawBufferUpload.Data",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Retained",
              "anchor": "RawBufferUpload.Retained",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RawTextureUpload",
          "anchor": "RawTextureUpload",
          "decl": "type RawTextureUpload struct {\n\tDesc gpu.TextureDesc // Usage defaults to TextureSampled | TextureCopyDst; TextureCopyDst is always added\n\tMips []TextureMipData\n}",
          "doc": "RawTextureUpload describes a GPU texture and pre-encoded mip payloads returned by the decode callback of [Uploader.QueueRawTexture].\n",
          "file": "pkg/render3d/uploader.go",
          "line": 120,
          "members": [
            {
              "name": "Desc",
              "anchor": "RawTextureUpload.Desc",
              "kind": "field",
              "doc": "Usage defaults to TextureSampled | TextureCopyDst; TextureCopyDst is always added"
            },
            {
              "name": "Mips",
              "anchor": "RawTextureUpload.Mips",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReflectionProbe",
          "anchor": "ReflectionProbe",
          "decl": "type ReflectionProbe struct {\n\tID            string\n\tPosition      math3d.Vec3\n\tBoxMin        math3d.Vec3\n\tBoxMax        math3d.Vec3\n\tBlendDistance float32 // inward fade width from the box boundary; 0 = sharp box boundary\n\tPriority      int     // higher priority takes precedence when probes overlap\n\tBoxProjection bool    // apply parallax-corrected ray-AABB projection\n\tIntensity     float32 // reflection multiplier; 0 defaults to 1.0 (use Disabled to turn off)\n\tCubemap       *Cubemap\n\tPrefiltered   *Cubemap\n\tGPUCubemap    *GPUCubemap\n\tDirty         bool // needs re-bake on request; dirty probes are skipped during selection\n\tBaked         bool // cubemap has been baked or populated; unbaked probes are skipped during selection\n\tDisabled      bool // exclude probe from selection without removing it\n}",
          "doc": "ReflectionProbe describes a local cubemap reflection volume with optional parallax-corrected box projection and smooth edge fade.\n\nReflection probe bakes (Cubemap, Prefiltered, and GPUCubemap) are runtime-only data generated on load or on request rather than persisted in text scene files. Call [ReflectionProbe.Close] when releasing a probe whose GPUCubemap is manually scoped; re-baking via [BakeReflectionProbe] or [BakeReflectionProbeGPU] automatically closes the previous GPUCubemap before replacing it.\n",
          "file": "pkg/render3d/probes.go",
          "line": 347,
          "members": [
            {
              "name": "ID",
              "anchor": "ReflectionProbe.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Position",
              "anchor": "ReflectionProbe.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BoxMin",
              "anchor": "ReflectionProbe.BoxMin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BoxMax",
              "anchor": "ReflectionProbe.BoxMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BlendDistance",
              "anchor": "ReflectionProbe.BlendDistance",
              "kind": "field",
              "doc": "inward fade width from the box boundary; 0 = sharp box boundary"
            },
            {
              "name": "Priority",
              "anchor": "ReflectionProbe.Priority",
              "kind": "field",
              "doc": "higher priority takes precedence when probes overlap"
            },
            {
              "name": "BoxProjection",
              "anchor": "ReflectionProbe.BoxProjection",
              "kind": "field",
              "doc": "apply parallax-corrected ray-AABB projection"
            },
            {
              "name": "Intensity",
              "anchor": "ReflectionProbe.Intensity",
              "kind": "field",
              "doc": "reflection multiplier; 0 defaults to 1.0 (use Disabled to turn off)"
            },
            {
              "name": "Cubemap",
              "anchor": "ReflectionProbe.Cubemap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Prefiltered",
              "anchor": "ReflectionProbe.Prefiltered",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GPUCubemap",
              "anchor": "ReflectionProbe.GPUCubemap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dirty",
              "anchor": "ReflectionProbe.Dirty",
              "kind": "field",
              "doc": "needs re-bake on request; dirty probes are skipped during selection"
            },
            {
              "name": "Baked",
              "anchor": "ReflectionProbe.Baked",
              "kind": "field",
              "doc": "cubemap has been baked or populated; unbaked probes are skipped during selection"
            },
            {
              "name": "Disabled",
              "anchor": "ReflectionProbe.Disabled",
              "kind": "field",
              "doc": "exclude probe from selection without removing it"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "BoxVolume",
              "anchor": "ReflectionProbe.BoxVolume",
              "recv": "*ReflectionProbe",
              "decl": "func (p *ReflectionProbe) BoxVolume() float32",
              "doc": "BoxVolume returns the volume of p's influence AABB, or 0 for a nil, inverted, or non-finite box.\n",
              "file": "pkg/render3d/probes.go",
              "line": 421
            },
            {
              "name": "Close",
              "anchor": "ReflectionProbe.Close",
              "recv": "*ReflectionProbe",
              "decl": "func (p *ReflectionProbe) Close() error",
              "doc": "Close releases p's GPUCubemap if present and marks p unbaked. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/probes.go",
              "line": 473
            },
            {
              "name": "EffectiveIntensity",
              "anchor": "ReflectionProbe.EffectiveIntensity",
              "recv": "*ReflectionProbe",
              "decl": "func (p *ReflectionProbe) EffectiveIntensity() float32",
              "doc": "EffectiveIntensity returns the reflection multiplier for p, treating a zero Intensity as 1.0 and returning 0 when p is nil, disabled, negative, or non-finite.\n",
              "file": "pkg/render3d/probes.go",
              "line": 410
            },
            {
              "name": "Influence",
              "anchor": "ReflectionProbe.Influence",
              "recv": "*ReflectionProbe",
              "decl": "func (p *ReflectionProbe) Influence(worldPos math3d.Vec3) float32",
              "doc": "Influence returns the smooth influence weight in [0, 1] of p at worldPos. Points outside [BoxMin, BoxMax] or with non-finite coordinates return 0 (never NaN). Points farther than BlendDistance inside every face return 1; points within BlendDistance of a face fade with cubic smoothstep.\n",
              "file": "pkg/render3d/probes.go",
              "line": 439
            },
            {
              "name": "Ready",
              "anchor": "ReflectionProbe.Ready",
              "recv": "*ReflectionProbe",
              "decl": "func (p *ReflectionProbe) Ready() bool",
              "doc": "Ready reports whether p is enabled, baked, and clean (not Dirty).\n",
              "file": "pkg/render3d/probes.go",
              "line": 388
            },
            {
              "name": "Validate",
              "anchor": "ReflectionProbe.Validate",
              "recv": "*ReflectionProbe",
              "decl": "func (p *ReflectionProbe) Validate() error",
              "doc": "Validate checks that p's position, bounding box, blend distance, and intensity are finite and well-formed. Every error wraps [ErrInvalidProbe].\n",
              "file": "pkg/render3d/probes.go",
              "line": 365
            }
          ]
        },
        {
          "name": "ReflectionProbeSet",
          "anchor": "ReflectionProbeSet",
          "decl": "type ReflectionProbeSet struct {\n\tProbes []*ReflectionProbe\n}",
          "doc": "ReflectionProbeSet manages a collection of local [ReflectionProbe] volumes and selects up to two overlapping ready probes to blend over the global sky environment.\n",
          "file": "pkg/render3d/probes.go",
          "line": 573,
          "members": [
            {
              "name": "Probes",
              "anchor": "ReflectionProbeSet.Probes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "ReflectionProbeSet.Add",
              "recv": "*ReflectionProbeSet",
              "decl": "func (s *ReflectionProbeSet) Add(probes ...*ReflectionProbe)",
              "doc": "Add appends probes to the set.\n",
              "file": "pkg/render3d/probes.go",
              "line": 578
            },
            {
              "name": "Close",
              "anchor": "ReflectionProbeSet.Close",
              "recv": "*ReflectionProbeSet",
              "decl": "func (s *ReflectionProbeSet) Close() error",
              "doc": "Close closes every probe's GPUCubemap in the set. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/probes.go",
              "line": 679
            },
            {
              "name": "DirtyProbes",
              "anchor": "ReflectionProbeSet.DirtyProbes",
              "recv": "*ReflectionProbeSet",
              "decl": "func (s *ReflectionProbeSet) DirtyProbes() []*ReflectionProbe",
              "doc": "DirtyProbes returns every enabled probe currently marked Dirty or not yet Baked.\n",
              "file": "pkg/render3d/probes.go",
              "line": 583
            },
            {
              "name": "SelectReflectionProbes",
              "anchor": "ReflectionProbeSet.SelectReflectionProbes",
              "recv": "*ReflectionProbeSet",
              "decl": "func (s *ReflectionProbeSet) SelectReflectionProbes(worldPos math3d.Vec3) ProbeBlendResult",
              "doc": "SelectReflectionProbes selects up to two active baked, non-dirty reflection probes affecting worldPos and computes smooth normalized blend weights (Weight0, Weight1, SkyWeight) summing to 1. Unbaked, dirty, and disabled probes are skipped so objects fall back smoothly to ready probes or the global sky.\n",
              "file": "pkg/render3d/probes.go",
              "line": 600
            }
          ]
        },
        {
          "name": "RenderPassRecorder",
          "anchor": "RenderPassRecorder",
          "decl": "type RenderPassRecorder interface {\n\tBeginRenderPass(desc gpu.RenderPassDesc) *gpu.RenderPass\n}",
          "doc": "RenderPassRecorder is satisfied by both [*gpu.Encoder] and [*gpu.Frame],\nallowing [DynamicResolutionTarget] to drive standalone software renderers as\nwell as live [gpu.View] frame callbacks.\n",
          "file": "pkg/render3d/dynres.go",
          "line": 651,
          "members": [
            {
              "name": "BeginRenderPass",
              "anchor": "RenderPassRecorder.BeginRenderPass",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RenderPassStarter",
          "anchor": "RenderPassStarter",
          "decl": "type RenderPassStarter interface {\n\tBeginRenderPass(desc gpu.RenderPassDesc) *gpu.RenderPass\n}",
          "doc": "RenderPassStarter is satisfied by both [*gpu.Encoder] and [*gpu.Frame], allowing [CascadedShadowMap.BeginCascadePass] to record depth passes both on a standalone [gpu.SoftwareRenderer] encoder and inside [gpu.ViewProps.OnFrame].\n",
          "file": "pkg/render3d/csm.go",
          "line": 1044,
          "members": [
            {
              "name": "BeginRenderPass",
              "anchor": "RenderPassStarter.BeginRenderPass",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RenderPlan",
          "anchor": "RenderPlan",
          "decl": "type RenderPlan struct {\n\tOpaque      []ResolvedDraw\n\tBatches     []InstanceBatch\n\tTransparent []ResolvedDraw\n\tStats       RenderStats\n}",
          "doc": "RenderPlan is the deterministic CPU draw plan produced by [Queue.Build].\n\nIts slices alias internal buffers owned by [Queue] to keep steady-state frame\nbuilds allocation-free; they remain valid until the next call to [Queue.Build].\n",
          "file": "pkg/render3d/queue.go",
          "line": 90,
          "members": [
            {
              "name": "Opaque",
              "anchor": "RenderPlan.Opaque",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Batches",
              "anchor": "RenderPlan.Batches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transparent",
              "anchor": "RenderPlan.Transparent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Stats",
              "anchor": "RenderPlan.Stats",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RenderStats",
          "anchor": "RenderStats",
          "decl": "type RenderStats struct {\n\tTotalItems       int\n\tCulledItems      int\n\tOccluded         int\n\tVisibleItems     int\n\tOpaqueDraws      int\n\tTransparentDraws int\n\tInstancedBatches int\n\tTotalDrawCalls   int\n\tTriangles        uint64\n\tVertices         uint64\n\tMaterialSwitches int\n\tPipelineSwitches int\n\tTextureBytes     uint64\n\tBufferBytes      uint64\n}",
          "doc": "RenderStats captures per-frame culling, batching, state-switch, geometry,\nand GPU memory telemetry for a [RenderPlan] (#288).\n",
          "file": "pkg/render3d/stats.go",
          "line": 7,
          "members": [
            {
              "name": "TotalItems",
              "anchor": "RenderStats.TotalItems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CulledItems",
              "anchor": "RenderStats.CulledItems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Occluded",
              "anchor": "RenderStats.Occluded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VisibleItems",
              "anchor": "RenderStats.VisibleItems",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OpaqueDraws",
              "anchor": "RenderStats.OpaqueDraws",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TransparentDraws",
              "anchor": "RenderStats.TransparentDraws",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InstancedBatches",
              "anchor": "RenderStats.InstancedBatches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalDrawCalls",
              "anchor": "RenderStats.TotalDrawCalls",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Triangles",
              "anchor": "RenderStats.Triangles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vertices",
              "anchor": "RenderStats.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaterialSwitches",
              "anchor": "RenderStats.MaterialSwitches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PipelineSwitches",
              "anchor": "RenderStats.PipelineSwitches",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextureBytes",
              "anchor": "RenderStats.TextureBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BufferBytes",
              "anchor": "RenderStats.BufferBytes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "RenderStats.Add",
              "recv": "RenderStats",
              "decl": "func (s RenderStats) Add(other RenderStats) RenderStats",
              "doc": "Add combines s and other, useful when aggregating multiple render passes\n(for example shadow pass + main pass).\n",
              "file": "pkg/render3d/stats.go",
              "line": 26
            },
            {
              "name": "Summary",
              "anchor": "RenderStats.Summary",
              "recv": "RenderStats",
              "decl": "func (s RenderStats) Summary() string",
              "doc": "Summary returns a concise human-readable diagnostic line for overlays or logs.\n",
              "file": "pkg/render3d/stats.go",
              "line": 48
            }
          ]
        },
        {
          "name": "RenderTexture",
          "anchor": "RenderTexture",
          "decl": "type RenderTexture struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "RenderTexture is a scope-owned offscreen GPU render target whose color output is directly sampleable as a material texture via [RenderTexture.GPUTexture] and [BindTexture].\n\nIts underlying [*gpu.RenderTarget] belongs to the [*core.Scope] passed to [NewRenderTexture] and is released when that scope is disposed or earlier via [RenderTexture.Close]. Use it from the engine goroutine, like the [gpu.Device] it came from.\n",
          "file": "pkg/render3d/viewport.go",
          "line": 72,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRenderTexture",
              "anchor": "NewRenderTexture",
              "decl": "func NewRenderTexture(cx *core.Scope, dev *gpu.Device, desc RenderTextureDesc) (*RenderTexture, error)",
              "doc": "NewRenderTexture validates desc and allocates an offscreen [RenderTexture] on dev, scoped to cx (nil for headless tests closed explicitly). Invalid descriptors return an error wrapping [ErrInvalidRenderTexture] before creating any GPU resource; a nil or lost device returns [gpu.ErrDeviceLost].\n",
              "file": "pkg/render3d/viewport.go",
              "line": 89
            }
          ],
          "methods": [
            {
              "name": "Aspect",
              "anchor": "RenderTexture.Aspect",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) Aspect() float32",
              "doc": "Aspect returns Width / Height, or zero when either dimension is zero.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 224
            },
            {
              "name": "BeginFramePass",
              "anchor": "RenderTexture.BeginFramePass",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) BeginFramePass(frame *gpu.Frame, clearColor core.Color) *gpu.RenderPass",
              "doc": "BeginFramePass begins a [gpu.RenderPass] on frame targeting rt, clearing color to clearColor and depth (when present) to 1. It returns nil if frame is nil or rt is not valid.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 377
            },
            {
              "name": "BeginPass",
              "anchor": "RenderTexture.BeginPass",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) BeginPass(enc *gpu.Encoder, clearColor core.Color) *gpu.RenderPass",
              "doc": "BeginPass begins a [gpu.RenderPass] on enc targeting rt, clearing color to clearColor and depth (when present) to 1. It returns nil if enc is nil or rt is not valid.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 369
            },
            {
              "name": "ByteSize",
              "anchor": "RenderTexture.ByteSize",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) ByteSize() uint64",
              "doc": "ByteSize returns the approximate GPU memory occupied by rt's attachments (color, MSAA resolve when present, and optional depth), for [RenderStats] and [Budget] accounting. It is zero for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 264
            },
            {
              "name": "Close",
              "anchor": "RenderTexture.Close",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) Close() error",
              "doc": "Close releases rt's underlying GPU attachments immediately rather than waiting for its owning scope to dispose. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 385
            },
            {
              "name": "ColorFormat",
              "anchor": "RenderTexture.ColorFormat",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) ColorFormat() gpu.TextureFormat",
              "doc": "ColorFormat returns the resolved color attachment format, or [gpu.FormatUndefined] for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 232
            },
            {
              "name": "ColorTexture",
              "anchor": "RenderTexture.ColorTexture",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) ColorTexture() *gpu.Texture",
              "doc": "ColorTexture returns the renderable color attachment [*gpu.Texture], or nil for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 182
            },
            {
              "name": "DepthFormat",
              "anchor": "RenderTexture.DepthFormat",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) DepthFormat() gpu.TextureFormat",
              "doc": "DepthFormat returns the depth/stencil attachment format, or [gpu.FormatUndefined] if created without a depth attachment or for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 240
            },
            {
              "name": "DepthTexture",
              "anchor": "RenderTexture.DepthTexture",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) DepthTexture() *gpu.Texture",
              "doc": "DepthTexture returns the optional depth/stencil attachment [*gpu.Texture], or nil when created without a depth format or for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 190
            },
            {
              "name": "GPUTexture",
              "anchor": "RenderTexture.GPUTexture",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) GPUTexture() *GPUTexture",
              "doc": "GPUTexture returns a [*GPUTexture] view of rt's sampleable color output so it can be passed directly to [BindTexture] or any material texture slot.\n\nThe returned handle is owned by rt; do not close it independently. After a [RenderTexture.Resize] that returns resized == true, re-fetch GPUTexture and recreate any bind groups built from the previous handle.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 200
            },
            {
              "name": "Generation",
              "anchor": "RenderTexture.Generation",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) Generation() uint64",
              "doc": "Generation returns a monotonic counter starting at 1 that increments whenever [RenderTexture.Resize] replaces the underlying GPU textures, letting callers detect when cached [BindTexture] bind groups must be rebuilt.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 256
            },
            {
              "name": "Height",
              "anchor": "RenderTexture.Height",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) Height() uint32",
              "doc": "Height returns the render texture height in pixels, or zero for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 216
            },
            {
              "name": "PassDesc",
              "anchor": "RenderTexture.PassDesc",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) PassDesc(label string, clearColor core.Color, clearDepth float32) gpu.RenderPassDesc",
              "doc": "PassDesc builds a [gpu.RenderPassDesc] targeting rt's color (and optional resolve and depth/stencil) attachments, clearing color to clearColor and depth to clearDepth.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 335
            },
            {
              "name": "Resize",
              "anchor": "RenderTexture.Resize",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) Resize(dev *gpu.Device, width, height uint32) (bool, error)",
              "doc": "Resize reallocates rt's offscreen attachments to width x height on dev, preserving format, sample count, label, retained flag, and owning scope.\n\nWhen rt is already valid at width x height, Resize is a no-op and returns (false, nil). If allocation of the replacement target fails, the previous target remains intact. On success, the previous target is closed, Generation increments, and (true, nil) is returned so callers know to rebind any [BindTexture] bind groups referencing the prior texture.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 291
            },
            {
              "name": "SampleCount",
              "anchor": "RenderTexture.SampleCount",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) SampleCount() int",
              "doc": "SampleCount returns the active MSAA sample count (1 or 4), or zero for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 248
            },
            {
              "name": "Target",
              "anchor": "RenderTexture.Target",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) Target() *gpu.RenderTarget",
              "doc": "Target returns the underlying [*gpu.RenderTarget], or nil for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 166
            },
            {
              "name": "Texture",
              "anchor": "RenderTexture.Texture",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) Texture() *gpu.Texture",
              "doc": "Texture returns the single-sampled [*gpu.Texture] suitable for shader sampling (the MSAA resolve texture when SampleCount > 1, otherwise the color texture), or nil for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 174
            },
            {
              "name": "Valid",
              "anchor": "RenderTexture.Valid",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) Valid() bool",
              "doc": "Valid reports whether rt is open and its underlying GPU attachments belong to a live device.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 284
            },
            {
              "name": "Width",
              "anchor": "RenderTexture.Width",
              "recv": "*RenderTexture",
              "decl": "func (rt *RenderTexture) Width() uint32",
              "doc": "Width returns the render texture width in pixels, or zero for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 208
            }
          ]
        },
        {
          "name": "RenderTextureDesc",
          "anchor": "RenderTextureDesc",
          "decl": "type RenderTextureDesc struct {\n\t// Label names the offscreen target's GPU attachments in capture tools.\n\tLabel string\n\t// Width and Height are the texture dimensions in pixels; both must be positive.\n\tWidth  uint32\n\tHeight uint32\n\t// ColorFormat selects the color attachment format. Zero ([gpu.FormatUndefined]) defaults to [gpu.FormatRGBA8Unorm]. Depth/stencil formats are rejected.\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat optionally allocates a matching depth (or depth/stencil) attachment for 3D depth testing, such as [gpu.FormatDepth24Plus]. Leave zero ([gpu.FormatUndefined]) for a color-only render texture.\n\tDepthFormat gpu.TextureFormat\n\t// SampleCount sets MSAA sample count: 0 or 1 for single-sampled, or 4 for 4x MSAA with an automatic single-sampled resolve texture exposed via [RenderTexture.Texture] and [RenderTexture.GPUTexture].\n\tSampleCount int\n\t// Retained opts into automatic attachment recreation by NSGo after a GPU device loss so the RenderTexture and any [BindTexture] bind group built from [RenderTexture.GPUTexture] (with a retained sampler) stay valid.\n\tRetained bool\n}",
          "doc": "RenderTextureDesc configures an offscreen render-to-texture target created by [NewRenderTexture] (for mirrors, minimaps, portals, security cameras, or post-processing).\n",
          "file": "pkg/render3d/viewport.go",
          "line": 22,
          "members": [
            {
              "name": "Label",
              "anchor": "RenderTextureDesc.Label",
              "kind": "field",
              "doc": "Label names the offscreen target's GPU attachments in capture tools."
            },
            {
              "name": "Width",
              "anchor": "RenderTextureDesc.Width",
              "kind": "field",
              "doc": "Width and Height are the texture dimensions in pixels; both must be positive."
            },
            {
              "name": "Height",
              "anchor": "RenderTextureDesc.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorFormat",
              "anchor": "RenderTextureDesc.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat selects the color attachment format. Zero ([gpu.FormatUndefined]) defaults to [gpu.FormatRGBA8Unorm]. Depth/stencil formats are rejected."
            },
            {
              "name": "DepthFormat",
              "anchor": "RenderTextureDesc.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat optionally allocates a matching depth (or depth/stencil) attachment for 3D depth testing, such as [gpu.FormatDepth24Plus]. Leave zero ([gpu.FormatUndefined]) for a color-only render texture."
            },
            {
              "name": "SampleCount",
              "anchor": "RenderTextureDesc.SampleCount",
              "kind": "field",
              "doc": "SampleCount sets MSAA sample count: 0 or 1 for single-sampled, or 4 for 4x MSAA with an automatic single-sampled resolve texture exposed via [RenderTexture.Texture] and [RenderTexture.GPUTexture]."
            },
            {
              "name": "Retained",
              "anchor": "RenderTextureDesc.Retained",
              "kind": "field",
              "doc": "Retained opts into automatic attachment recreation by NSGo after a GPU device loss so the RenderTexture and any [BindTexture] bind group built from [RenderTexture.GPUTexture] (with a retained sampler) stay valid."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Validate",
              "anchor": "RenderTextureDesc.Validate",
              "recv": "RenderTextureDesc",
              "decl": "func (d RenderTextureDesc) Validate() error",
              "doc": "Validate checks that d specifies positive dimensions, a valid color format, an optional depth/stencil format, and a supported MSAA sample count (0, 1, or 4). Every error wraps [ErrInvalidRenderTexture].\n",
              "file": "pkg/render3d/viewport.go",
              "line": 39
            }
          ]
        },
        {
          "name": "ResolvedDraw",
          "anchor": "ResolvedDraw",
          "decl": "type ResolvedDraw struct {\n\tID         uint64\n\tMeshID     uint32\n\tMaterialID uint32\n\tPipelineID uint32\n\tBlend      BlendMode\n\tLODIndex   int // selected index into DrawItem.LODs, or -1 if LODs is empty\n\tTransform  math3d.Mat4\n\tDistanceSq float32\n\t// SortDepth is the center's clip-space depth after perspective divide:\n\t// larger is farther. Ordering by it keeps transparent draws correct\n\t// off-axis and under rotation, where Euclidean distance misorders (#546).\n\tSortDepth float32\n\tTriangles uint32\n\tVertices  uint32\n}",
          "doc": "ResolvedDraw is a visible draw item after frustum culling and LOD selection.\n",
          "file": "pkg/render3d/queue.go",
          "line": 56,
          "members": [
            {
              "name": "ID",
              "anchor": "ResolvedDraw.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MeshID",
              "anchor": "ResolvedDraw.MeshID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaterialID",
              "anchor": "ResolvedDraw.MaterialID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PipelineID",
              "anchor": "ResolvedDraw.PipelineID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Blend",
              "anchor": "ResolvedDraw.Blend",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LODIndex",
              "anchor": "ResolvedDraw.LODIndex",
              "kind": "field",
              "doc": "selected index into DrawItem.LODs, or -1 if LODs is empty"
            },
            {
              "name": "Transform",
              "anchor": "ResolvedDraw.Transform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DistanceSq",
              "anchor": "ResolvedDraw.DistanceSq",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SortDepth",
              "anchor": "ResolvedDraw.SortDepth",
              "kind": "field",
              "doc": "SortDepth is the center's clip-space depth after perspective divide:\nlarger is farther. Ordering by it keeps transparent draws correct\noff-axis and under rotation, where Euclidean distance misorders (#546)."
            },
            {
              "name": "Triangles",
              "anchor": "ResolvedDraw.Triangles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vertices",
              "anchor": "ResolvedDraw.Vertices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SSAOConfig",
          "anchor": "SSAOConfig",
          "decl": "type SSAOConfig struct {\n\t// Radius is the view-space sampling hemisphere radius in world units (> 0). Default: 0.6.\n\tRadius float32\n\t// Bias offsets depth comparisons in view-space units to suppress self-occlusion acne (>= 0). Default: 0.025.\n\tBias float32\n\t// Intensity scales the occlusion darkening strength in [0, 4]. 0 leaves the scene unchanged. Default: 1.2.\n\tIntensity float32\n\t// Power raises ambient visibility (ao^Power) to tune crevice contrast (> 0). Default: 1.5.\n\tPower float32\n\t// SampleCount is the number of deterministic hemisphere kernel samples in [4, 16]. 0 defaults to 12.\n\tSampleCount int\n\t// BlurRadius is the depth-aware bilateral blur half-width in texels in [0, 4]. 0 disables blur.\n\tBlurRadius int\n\t// DepthThreshold is the view-space depth tolerance for bilateral blur edge preservation (> 0). Default: 0.2.\n\tDepthThreshold float32\n\t// Near and Far are fallback perspective clip planes used only when ProjMatrix is zero; the fallback projection also assumes a 60-degree vertical field of view and the pass's aspect ratio, so set ProjMatrix whenever the camera differs from that.\n\tNear float32\n\tFar  float32\n\t// ProjMatrix is the camera's [0, 1] NDC depth projection matrix (e.g. cam.ProjMatrix()). It is captured when the config is set, so refresh it with [SSAOPass.SetConfig] or [PostStack3D.SetCamera] whenever the projection changes, such as after a resize changes the camera's aspect ratio.\n\tProjMatrix math3d.Mat4\n\t// InvProjMatrix optionally supplies ProjMatrix.Inverse(); when zero, it is computed from ProjMatrix.\n\tInvProjMatrix math3d.Mat4\n}",
          "doc": "SSAOConfig tunes screen-space ambient occlusion from a 3D depth buffer.\n",
          "file": "pkg/render3d/post3d.go",
          "line": 1236,
          "members": [
            {
              "name": "Radius",
              "anchor": "SSAOConfig.Radius",
              "kind": "field",
              "doc": "Radius is the view-space sampling hemisphere radius in world units (> 0). Default: 0.6."
            },
            {
              "name": "Bias",
              "anchor": "SSAOConfig.Bias",
              "kind": "field",
              "doc": "Bias offsets depth comparisons in view-space units to suppress self-occlusion acne (>= 0). Default: 0.025."
            },
            {
              "name": "Intensity",
              "anchor": "SSAOConfig.Intensity",
              "kind": "field",
              "doc": "Intensity scales the occlusion darkening strength in [0, 4]. 0 leaves the scene unchanged. Default: 1.2."
            },
            {
              "name": "Power",
              "anchor": "SSAOConfig.Power",
              "kind": "field",
              "doc": "Power raises ambient visibility (ao^Power) to tune crevice contrast (> 0). Default: 1.5."
            },
            {
              "name": "SampleCount",
              "anchor": "SSAOConfig.SampleCount",
              "kind": "field",
              "doc": "SampleCount is the number of deterministic hemisphere kernel samples in [4, 16]. 0 defaults to 12."
            },
            {
              "name": "BlurRadius",
              "anchor": "SSAOConfig.BlurRadius",
              "kind": "field",
              "doc": "BlurRadius is the depth-aware bilateral blur half-width in texels in [0, 4]. 0 disables blur."
            },
            {
              "name": "DepthThreshold",
              "anchor": "SSAOConfig.DepthThreshold",
              "kind": "field",
              "doc": "DepthThreshold is the view-space depth tolerance for bilateral blur edge preservation (> 0). Default: 0.2."
            },
            {
              "name": "Near",
              "anchor": "SSAOConfig.Near",
              "kind": "field",
              "doc": "Near and Far are fallback perspective clip planes used only when ProjMatrix is zero; the fallback projection also assumes a 60-degree vertical field of view and the pass's aspect ratio, so set ProjMatrix whenever the camera differs from that."
            },
            {
              "name": "Far",
              "anchor": "SSAOConfig.Far",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ProjMatrix",
              "anchor": "SSAOConfig.ProjMatrix",
              "kind": "field",
              "doc": "ProjMatrix is the camera's [0, 1] NDC depth projection matrix (e.g. cam.ProjMatrix()). It is captured when the config is set, so refresh it with [SSAOPass.SetConfig] or [PostStack3D.SetCamera] whenever the projection changes, such as after a resize changes the camera's aspect ratio."
            },
            {
              "name": "InvProjMatrix",
              "anchor": "SSAOConfig.InvProjMatrix",
              "kind": "field",
              "doc": "InvProjMatrix optionally supplies ProjMatrix.Inverse(); when zero, it is computed from ProjMatrix."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultSSAOConfig",
              "anchor": "DefaultSSAOConfig",
              "decl": "func DefaultSSAOConfig() SSAOConfig",
              "doc": "DefaultSSAOConfig returns balanced defaults for 3D SSAO.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1261
            },
            {
              "name": "SSAOConfigFromCamera",
              "anchor": "SSAOConfigFromCamera",
              "decl": "func SSAOConfigFromCamera(cam *scene3d.Camera) SSAOConfig",
              "doc": "SSAOConfigFromCamera initializes an [SSAOConfig] using cam's projection matrix and the clip planes that matrix uses, combined with [DefaultSSAOConfig] quality settings.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1276
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "SSAOConfig.Validate",
              "recv": "SSAOConfig",
              "decl": "func (c SSAOConfig) Validate() error",
              "doc": "Validate checks that every field of c is finite and within its valid range. Every error wraps [ErrInvalidPostProcess].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1300
            }
          ]
        },
        {
          "name": "SSAOPass",
          "anchor": "SSAOPass",
          "decl": "type SSAOPass struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "SSAOPass computes screen-space ambient occlusion from a 3D depth texture, optionally filters it with a depth-aware bilateral blur, and multiplies the resulting occlusion factor into a scene color texture.\n",
          "file": "pkg/render3d/post3d.go",
          "line": 1418,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSSAOPass",
              "anchor": "NewSSAOPass",
              "decl": "func NewSSAOPass(cx *core.Scope, dev *gpu.Device, opts SSAOPassOptions) (*SSAOPass, error)",
              "doc": "NewSSAOPass creates a scope-owned [SSAOPass] on dev.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1459
            }
          ],
          "methods": [
            {
              "name": "AOTexture",
              "anchor": "SSAOPass.AOTexture",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) AOTexture() *gpu.Texture",
              "doc": "AOTexture returns the most recently computed ambient occlusion texture (blurred when BlurRadius > 0, raw otherwise).\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1709
            },
            {
              "name": "Apply",
              "anchor": "SSAOPass.Apply",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) Apply(dev *gpu.Device, rec RenderPassRecorder, srcColor, depthTex, dstColor *gpu.Texture) error",
              "doc": "Apply computes SSAO from depthTex and multiplies it onto srcColor, writing to dstColor. A nil dstColor writes to the swapchain in OutputFormat, and a texture dstColor must be in ColorFormat or OutputFormat. Every texture must have the pass size and dstColor cannot also be an input; otherwise Apply returns an error wrapping [ErrInvalidPostProcess].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1857
            },
            {
              "name": "Close",
              "anchor": "SSAOPass.Close",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) Close() error",
              "doc": "Close releases all GPU resources owned by p. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1909
            },
            {
              "name": "ComputeAO",
              "anchor": "SSAOPass.ComputeAO",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) ComputeAO(dev *gpu.Device, rec RenderPassRecorder, depthTex *gpu.Texture) (*gpu.Texture, error)",
              "doc": "ComputeAO evaluates the SSAO hemisphere pass (and optional bilateral blur) from depthTex and returns the resulting AO texture for inspection or custom compositing.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1760
            },
            {
              "name": "Config",
              "anchor": "SSAOPass.Config",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) Config() SSAOConfig",
              "doc": "Config returns the pass's current normalized [SSAOConfig].\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1673
            },
            {
              "name": "Height",
              "anchor": "SSAOPass.Height",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) Height() uint32",
              "doc": "Height returns the configured target height in pixels.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1701
            },
            {
              "name": "Resize",
              "anchor": "SSAOPass.Resize",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) Resize(dev *gpu.Device, width, height uint32) error",
              "doc": "Resize recreates the pass's offscreen AO targets for a new viewport size.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1742
            },
            {
              "name": "SetConfig",
              "anchor": "SSAOPass.SetConfig",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) SetConfig(cfg SSAOConfig) error",
              "doc": "SetConfig validates and updates the SSAO parameters.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1681
            },
            {
              "name": "Valid",
              "anchor": "SSAOPass.Valid",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) Valid() bool",
              "doc": "Valid reports whether the pass is open and its GPU resources are live.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1717
            },
            {
              "name": "Width",
              "anchor": "SSAOPass.Width",
              "recv": "*SSAOPass",
              "decl": "func (p *SSAOPass) Width() uint32",
              "doc": "Width returns the configured target width in pixels.\n",
              "file": "pkg/render3d/post3d.go",
              "line": 1693
            }
          ]
        },
        {
          "name": "SSAOPassOptions",
          "anchor": "SSAOPassOptions",
          "decl": "type SSAOPassOptions struct {\n\tLabel        string\n\tWidth        uint32\n\tHeight       uint32\n\tColorFormat  gpu.TextureFormat // intermediate color format: RGBA16Float (the default), RGBA8Unorm, RGBA8UnormSRGB, BGRA8Unorm or BGRA8UnormSRGB\n\tOutputFormat gpu.TextureFormat // destination format; defaults to dev.SurfaceFormat() or FormatRGBA8Unorm\n\tRetained     bool\n\tConfig       SSAOConfig\n}",
          "doc": "SSAOPassOptions configures [NewSSAOPass].\n",
          "file": "pkg/render3d/post3d.go",
          "line": 1407,
          "members": [
            {
              "name": "Label",
              "anchor": "SSAOPassOptions.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "SSAOPassOptions.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "SSAOPassOptions.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorFormat",
              "anchor": "SSAOPassOptions.ColorFormat",
              "kind": "field",
              "doc": "intermediate color format: RGBA16Float (the default), RGBA8Unorm, RGBA8UnormSRGB, BGRA8Unorm or BGRA8UnormSRGB"
            },
            {
              "name": "OutputFormat",
              "anchor": "SSAOPassOptions.OutputFormat",
              "kind": "field",
              "doc": "destination format; defaults to dev.SurfaceFormat() or FormatRGBA8Unorm"
            },
            {
              "name": "Retained",
              "anchor": "SSAOPassOptions.Retained",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Config",
              "anchor": "SSAOPassOptions.Config",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SamplerOptions",
          "anchor": "SamplerOptions",
          "decl": "type SamplerOptions struct {\n\tLabel         string\n\tMinFilter     gpu.FilterMode\n\tMagFilter     gpu.FilterMode\n\tMipmapFilter  gpu.FilterMode\n\tAddressU      gpu.AddressMode\n\tAddressV      gpu.AddressMode\n\tAddressW      gpu.AddressMode\n\tMinLOD        float32\n\tMaxLOD        float32 // 0 defaults to 32 (unbounded)\n\tMaxAnisotropy uint16  // 0 or 1 disables anisotropic filtering; >1 requires linear min, mag and mipmap filters (WebGPU rule)\n\tRetained      bool\n}",
          "doc": "SamplerOptions configures texture filtering and coordinate wrapping for [NewGPUSampler].\n\nIts zero value uses nearest filtering and clamp-to-edge wrapping (matching [gpu.SamplerDesc]). Use [SamplerLinearRepeat], [SamplerLinearClamp], [SamplerLinearMirror], [SamplerNearestRepeat] or [SamplerNearestClamp] for common presets.\n",
          "file": "pkg/render3d/texture.go",
          "line": 329,
          "members": [
            {
              "name": "Label",
              "anchor": "SamplerOptions.Label",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinFilter",
              "anchor": "SamplerOptions.MinFilter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MagFilter",
              "anchor": "SamplerOptions.MagFilter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MipmapFilter",
              "anchor": "SamplerOptions.MipmapFilter",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AddressU",
              "anchor": "SamplerOptions.AddressU",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AddressV",
              "anchor": "SamplerOptions.AddressV",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AddressW",
              "anchor": "SamplerOptions.AddressW",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinLOD",
              "anchor": "SamplerOptions.MinLOD",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxLOD",
              "anchor": "SamplerOptions.MaxLOD",
              "kind": "field",
              "doc": "0 defaults to 32 (unbounded)"
            },
            {
              "name": "MaxAnisotropy",
              "anchor": "SamplerOptions.MaxAnisotropy",
              "kind": "field",
              "doc": "0 or 1 disables anisotropic filtering; >1 requires linear min, mag and mipmap filters (WebGPU rule)"
            },
            {
              "name": "Retained",
              "anchor": "SamplerOptions.Retained",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "KTX2Sampler",
              "anchor": "KTX2Sampler",
              "decl": "func KTX2Sampler(data []byte, base SamplerOptions) (SamplerOptions, error)",
              "doc": "KTX2Sampler returns base with its filters set from the [KTX2FilterKey] of the KTX2 file in data: \"nearest\" sets the min, mag and mipmap filters to [gpu.FilterNearest] and turns anisotropic filtering off, which keeps pixel art sharp, and \"linear\" sets them to [gpu.FilterLinear]. A file without the key returns base unchanged. A file whose key/value data cannot be read, or whose filter is neither, returns an error wrapping [ErrInvalidTexture].\n",
              "file": "pkg/render3d/ktx2.go",
              "line": 78
            },
            {
              "name": "SamplerLinearClamp",
              "anchor": "SamplerLinearClamp",
              "decl": "func SamplerLinearClamp() SamplerOptions",
              "doc": "SamplerLinearClamp returns trilinear filtering with clamp-to-edge wrapping, suited to non-repeating textures and UI/decals.\n",
              "file": "pkg/render3d/texture.go",
              "line": 356
            },
            {
              "name": "SamplerLinearMirror",
              "anchor": "SamplerLinearMirror",
              "decl": "func SamplerLinearMirror() SamplerOptions",
              "doc": "SamplerLinearMirror returns trilinear filtering with mirrored-repeat wrapping on U/V/W.\n",
              "file": "pkg/render3d/texture.go",
              "line": 368
            },
            {
              "name": "SamplerLinearRepeat",
              "anchor": "SamplerLinearRepeat",
              "decl": "func SamplerLinearRepeat() SamplerOptions",
              "doc": "SamplerLinearRepeat returns trilinear filtering with repeating U/V/W coordinates, suited to tiled 3D surfaces.\n",
              "file": "pkg/render3d/texture.go",
              "line": 344
            },
            {
              "name": "SamplerNearestClamp",
              "anchor": "SamplerNearestClamp",
              "decl": "func SamplerNearestClamp() SamplerOptions",
              "doc": "SamplerNearestClamp returns nearest-neighbor filtering with clamp-to-edge wrapping, suited to crisp pixel-art sprites and lookup tables.\n",
              "file": "pkg/render3d/texture.go",
              "line": 392
            },
            {
              "name": "SamplerNearestRepeat",
              "anchor": "SamplerNearestRepeat",
              "decl": "func SamplerNearestRepeat() SamplerOptions",
              "doc": "SamplerNearestRepeat returns nearest-neighbor filtering with repeating U/V/W coordinates, suited to tiled pixel-art surfaces.\n",
              "file": "pkg/render3d/texture.go",
              "line": 380
            },
            {
              "name": "SamplerOptionsFromGLTF",
              "anchor": "SamplerOptionsFromGLTF",
              "decl": "func SamplerOptionsFromGLTF(s gltf.Sampler) (opts SamplerOptions, wantMipmaps bool, err error)",
              "doc": "SamplerOptionsFromGLTF converts a glTF 2.0 [gltf.Sampler] into [SamplerOptions] and reports whether the sampler uses mipmapped minification filtering.\n\nPer the glTF 2.0 specification, omitted wrap modes (0) default to [gpu.AddressRepeat], and omitted filter modes (0) default to linear filtering with linear mipmap filtering (wantMipmaps = true). Unknown filter or wrap constants return an error wrapping [ErrInvalidSampler].\n",
              "file": "pkg/render3d/gltf_material.go",
              "line": 30
            }
          ],
          "methods": [
            {
              "name": "Desc",
              "anchor": "SamplerOptions.Desc",
              "recv": "SamplerOptions",
              "decl": "func (o SamplerOptions) Desc() gpu.SamplerDesc",
              "doc": "Desc converts o into a [gpu.SamplerDesc], applying defaults (MaxLOD 0 -> 32, MaxAnisotropy 0 -> 1).\n",
              "file": "pkg/render3d/texture.go",
              "line": 445
            },
            {
              "name": "Validate",
              "anchor": "SamplerOptions.Validate",
              "recv": "SamplerOptions",
              "decl": "func (o SamplerOptions) Validate() error",
              "doc": "Validate checks that every filter mode, address mode, LOD bound and anisotropy setting is valid across all NSGo GPU backends (including WebGPU's requirement that MaxAnisotropy > 1 uses linear min, mag and mipmap filtering). Every error wraps [ErrInvalidSampler].\n",
              "file": "pkg/render3d/texture.go",
              "line": 404
            }
          ]
        },
        {
          "name": "ShaderLanguage",
          "anchor": "ShaderLanguage",
          "decl": "type ShaderLanguage uint8",
          "doc": "ShaderLanguage identifies the source language of a [CustomShaderDesc].\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 79,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ShaderWGSL",
                  "anchor": "ShaderWGSL"
                },
                {
                  "name": "ShaderKage",
                  "anchor": "ShaderKage"
                }
              ],
              "decl": "const (\n\t// ShaderWGSL compiles WGSL vertex and fragment stages directly, with optional auto-generated @group(1) MaterialParams and texture bindings.\n\tShaderWGSL ShaderLanguage = iota\n\t// ShaderKage translates a Kage surface shader (declared package-level var uniforms plus func Surface(...) vec4 or func Fragment(...) vec4) into portable WGSL targeting every NSGo GPU backend.\n\tShaderKage\n)",
              "doc": "",
              "file": "pkg/render3d/custom_material.go",
              "line": 81
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ShaderLanguage.String",
              "recv": "ShaderLanguage",
              "decl": "func (l ShaderLanguage) String() string",
              "doc": "String returns the canonical lowercase name of l.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 89
            },
            {
              "name": "Valid",
              "anchor": "ShaderLanguage.Valid",
              "recv": "ShaderLanguage",
              "decl": "func (l ShaderLanguage) Valid() bool",
              "doc": "Valid reports whether l is a recognized shader language.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 101
            }
          ]
        },
        {
          "name": "ShaderParamDesc",
          "anchor": "ShaderParamDesc",
          "decl": "type ShaderParamDesc struct {\n\tName    string\n\tKind    ShaderParamKind\n\tDefault any      // optional; nil uses zero (or opaque white for ParamColor and 1x1 white fallback for ParamTexture)\n\tMin     *float64 // optional lower bound for numeric parameters (ParamFloat, ParamVec2..4, ParamInt)\n\tMax     *float64 // optional upper bound for numeric parameters (ParamFloat, ParamVec2..4, ParamInt)\n}",
          "doc": "ShaderParamDesc declares one typed parameter of a [CustomMaterial].\n\nUniform parameters are packed in declared order into a std140 uniform struct at @group(1) @binding(0). Each [ParamTexture] parameter allocates a consecutive (texture_2d<f32>, sampler) pair at @group(1) named <Name> and <Name>_sampler.\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 195,
          "members": [
            {
              "name": "Name",
              "anchor": "ShaderParamDesc.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ShaderParamDesc.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Default",
              "anchor": "ShaderParamDesc.Default",
              "kind": "field",
              "doc": "optional; nil uses zero (or opaque white for ParamColor and 1x1 white fallback for ParamTexture)"
            },
            {
              "name": "Min",
              "anchor": "ShaderParamDesc.Min",
              "kind": "field",
              "doc": "optional lower bound for numeric parameters (ParamFloat, ParamVec2..4, ParamInt)"
            },
            {
              "name": "Max",
              "anchor": "ShaderParamDesc.Max",
              "kind": "field",
              "doc": "optional upper bound for numeric parameters (ParamFloat, ParamVec2..4, ParamInt)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShaderParamKind",
          "anchor": "ShaderParamKind",
          "decl": "type ShaderParamKind uint8",
          "doc": "ShaderParamKind identifies the type of a declared custom material parameter.\n",
          "file": "pkg/render3d/custom_material.go",
          "line": 106,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ParamFloat",
                  "anchor": "ParamFloat"
                },
                {
                  "name": "ParamVec2",
                  "anchor": "ParamVec2"
                },
                {
                  "name": "ParamVec3",
                  "anchor": "ParamVec3"
                },
                {
                  "name": "ParamVec4",
                  "anchor": "ParamVec4"
                },
                {
                  "name": "ParamColor",
                  "anchor": "ParamColor"
                },
                {
                  "name": "ParamInt",
                  "anchor": "ParamInt"
                },
                {
                  "name": "ParamBool",
                  "anchor": "ParamBool"
                },
                {
                  "name": "ParamTexture",
                  "anchor": "ParamTexture"
                }
              ],
              "decl": "const (\n\tParamFloat ShaderParamKind\n\tParamVec2\n\tParamVec3\n\tParamVec4\n\tParamColor\n\tParamInt\n\tParamBool\n\tParamTexture\n)",
              "doc": "",
              "file": "pkg/render3d/custom_material.go",
              "line": 108
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsUniform",
              "anchor": "ShaderParamKind.IsUniform",
              "recv": "ShaderParamKind",
              "decl": "func (k ShaderParamKind) IsUniform() bool",
              "doc": "IsUniform reports whether k is stored in the std140 uniform buffer rather than bound as a separate texture/sampler pair.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 150
            },
            {
              "name": "String",
              "anchor": "ShaderParamKind.String",
              "recv": "ShaderParamKind",
              "decl": "func (k ShaderParamKind) String() string",
              "doc": "String returns the canonical name of k.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 121
            },
            {
              "name": "UniformLayout",
              "anchor": "ShaderParamKind.UniformLayout",
              "recv": "ShaderParamKind",
              "decl": "func (k ShaderParamKind) UniformLayout() (align, size int)",
              "doc": "UniformLayout returns the WGSL/std140 alignment and byte size of k inside a uniform struct, or (0, 0) for non-uniform kinds such as [ParamTexture]. A [ParamVec3] is 12 bytes, but [ComputeUniformLayout] refuses a 4-byte parameter right after one, so the 4 bytes that follow it stay padding on every backend.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 177
            },
            {
              "name": "Valid",
              "anchor": "ShaderParamKind.Valid",
              "recv": "ShaderParamKind",
              "decl": "func (k ShaderParamKind) Valid() bool",
              "doc": "Valid reports whether k is a supported parameter kind.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 145
            },
            {
              "name": "WGSLType",
              "anchor": "ShaderParamKind.WGSLType",
              "recv": "ShaderParamKind",
              "decl": "func (k ShaderParamKind) WGSLType() string",
              "doc": "WGSLType returns the portable WGSL type emitted for k in MaterialParams or texture bindings. ParamBool uses u32 (0 or 1) because WGSL uniform buffers forbid host-unshareable bool fields.\n",
              "file": "pkg/render3d/custom_material.go",
              "line": 155
            }
          ]
        },
        {
          "name": "ShadowDepthGrid",
          "anchor": "ShadowDepthGrid",
          "decl": "type ShadowDepthGrid struct {\n\tWidth  int\n\tHeight int\n\tDepths []float32\n}",
          "doc": "ShadowDepthGrid is a CPU-readable row-major [0, 1] depth map (top-to-bottom, index y*Width + x) matching the layout returned by [gpu.Device.ReadTexture] on a [gpu.FormatDepth32Float] shadow map.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 1095,
          "members": [
            {
              "name": "Width",
              "anchor": "ShadowDepthGrid.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "ShadowDepthGrid.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depths",
              "anchor": "ShadowDepthGrid.Depths",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ShadowDepthGridFromBytes",
              "anchor": "ShadowDepthGridFromBytes",
              "decl": "func ShadowDepthGridFromBytes(width, height int, raw []byte) (ShadowDepthGrid, error)",
              "doc": "ShadowDepthGridFromBytes decodes raw little-endian float32 depth readback bytes into a [ShadowDepthGrid]. Every error wraps [ErrInvalidShadow].\n",
              "file": "pkg/render3d/shadow.go",
              "line": 1102
            }
          ],
          "methods": []
        },
        {
          "name": "ShadowFilter",
          "anchor": "ShadowFilter",
          "decl": "type ShadowFilter uint8",
          "doc": "ShadowFilter selects the shadow-map sampling kernel.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 47,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ShadowFilterHard",
                  "anchor": "ShadowFilterHard"
                },
                {
                  "name": "ShadowFilterPCF3x3",
                  "anchor": "ShadowFilterPCF3x3"
                }
              ],
              "decl": "const (\n\t// ShadowFilterHard evaluates a single nearest-neighbor depth comparison tap (crisp texel-aligned shadow edges).\n\tShadowFilterHard ShadowFilter = iota\n\t// ShadowFilterPCF3x3 averages a 3x3 grid of 9 percentage-closer comparison taps (using a linear comparison sampler for 2x2 hardware bilinear PCF per tap) for smooth penumbra transitions.\n\tShadowFilterPCF3x3\n)",
              "doc": "",
              "file": "pkg/render3d/shadow.go",
              "line": 49
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ShadowFilter.String",
              "recv": "ShadowFilter",
              "decl": "func (f ShadowFilter) String() string",
              "doc": "String returns a human-readable name for f.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 57
            }
          ]
        },
        {
          "name": "ShadowMapOptions",
          "anchor": "ShadowMapOptions",
          "decl": "type ShadowMapOptions struct {\n\t// Label prefixes GPU resources in capture tools.\n\tLabel string\n\t// Resolution is the shadow map width and height in texels (power of two in [MinShadowResolution, MaxShadowResolution]). Zero defaults to [DefaultShadowResolution] (1024).\n\tResolution uint32\n\t// PCFKernel selects the initial filtering mode ([ShadowFilterHard] or [ShadowFilterPCF3x3]); it can also be switched dynamically per frame via [DirectionalShadowMap.WriteUniforms].\n\tPCFKernel ShadowFilter\n\t// DepthBias is the hardware rasterizer constant depth bias applied during the shadow depth pass.\n\tDepthBias int32\n\t// DepthBiasSlopeScale is the hardware rasterizer slope-scaled depth bias applied during the shadow depth pass.\n\tDepthBiasSlopeScale float32\n\t// CullMode selects face culling during the shadow depth pass (gpu.CullNone, gpu.CullBack, or gpu.CullFront).\n\tCullMode gpu.CullMode\n\t// MaxCasters is the maximum number of [DirectionalShadowMap.DrawCaster] calls per shadow pass. Zero defaults to [DefaultShadowMaxCasters] (256).\n\tMaxCasters uint32\n\t// Retained keeps the offscreen shadow render target, uniform buffers, samplers, bind groups, and depth pipeline alive across GPU device loss.\n\tRetained bool\n}",
          "doc": "ShadowMapOptions configures [NewDirectionalShadowMap].\n",
          "file": "pkg/render3d/shadow.go",
          "line": 485,
          "members": [
            {
              "name": "Label",
              "anchor": "ShadowMapOptions.Label",
              "kind": "field",
              "doc": "Label prefixes GPU resources in capture tools."
            },
            {
              "name": "Resolution",
              "anchor": "ShadowMapOptions.Resolution",
              "kind": "field",
              "doc": "Resolution is the shadow map width and height in texels (power of two in [MinShadowResolution, MaxShadowResolution]). Zero defaults to [DefaultShadowResolution] (1024)."
            },
            {
              "name": "PCFKernel",
              "anchor": "ShadowMapOptions.PCFKernel",
              "kind": "field",
              "doc": "PCFKernel selects the initial filtering mode ([ShadowFilterHard] or [ShadowFilterPCF3x3]); it can also be switched dynamically per frame via [DirectionalShadowMap.WriteUniforms]."
            },
            {
              "name": "DepthBias",
              "anchor": "ShadowMapOptions.DepthBias",
              "kind": "field",
              "doc": "DepthBias is the hardware rasterizer constant depth bias applied during the shadow depth pass."
            },
            {
              "name": "DepthBiasSlopeScale",
              "anchor": "ShadowMapOptions.DepthBiasSlopeScale",
              "kind": "field",
              "doc": "DepthBiasSlopeScale is the hardware rasterizer slope-scaled depth bias applied during the shadow depth pass."
            },
            {
              "name": "CullMode",
              "anchor": "ShadowMapOptions.CullMode",
              "kind": "field",
              "doc": "CullMode selects face culling during the shadow depth pass (gpu.CullNone, gpu.CullBack, or gpu.CullFront)."
            },
            {
              "name": "MaxCasters",
              "anchor": "ShadowMapOptions.MaxCasters",
              "kind": "field",
              "doc": "MaxCasters is the maximum number of [DirectionalShadowMap.DrawCaster] calls per shadow pass. Zero defaults to [DefaultShadowMaxCasters] (256)."
            },
            {
              "name": "Retained",
              "anchor": "ShadowMapOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps the offscreen shadow render target, uniform buffers, samplers, bind groups, and depth pipeline alive across GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultShadowMapOptions",
              "anchor": "DefaultShadowMapOptions",
              "decl": "func DefaultShadowMapOptions() ShadowMapOptions",
              "doc": "DefaultShadowMapOptions returns recommended options for [NewDirectionalShadowMap]: 1024x1024 depth map, 3x3 PCF filtering, hardware depth bias (2, 2.0), back-face culling, and 256 caster slots.\n",
              "file": "pkg/render3d/shadow.go",
              "line": 505
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "ShadowMapOptions.Validate",
              "recv": "ShadowMapOptions",
              "decl": "func (o ShadowMapOptions) Validate() error",
              "doc": "Validate checks that every field of o is valid across all NSGo GPU backends. Every error wraps [ErrInvalidShadow].\n",
              "file": "pkg/render3d/shadow.go",
              "line": 531
            }
          ]
        },
        {
          "name": "ShadowPassTarget",
          "anchor": "ShadowPassTarget",
          "decl": "type ShadowPassTarget interface {\n\tBeginRenderPass(desc gpu.RenderPassDesc) *gpu.RenderPass\n}",
          "doc": "ShadowPassTarget is implemented by both [*gpu.Encoder] and [*gpu.Frame], allowing [DirectionalShadowMap.BeginShadowPass] to record a shadow depth pass on either headless encoders or live gpu.View frames.\n",
          "file": "pkg/render3d/shadow.go",
          "line": 548,
          "members": [
            {
              "name": "BeginRenderPass",
              "anchor": "ShadowPassTarget.BeginRenderPass",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShadowUniforms",
          "anchor": "ShadowUniforms",
          "decl": "type ShadowUniforms struct {\n\t// LightViewProj transforms world-space points into light clip space with [0, 1] depth.\n\tLightViewProj math3d.Mat4\n\t// LightDirection is the unit direction light rays travel (from the light toward the scene). Encoded into the WGSL uniform as to_light = -LightDirection so shaders compute dot(N, shadow.to_light.xyz) directly.\n\tLightDirection math3d.Vec3\n\t// Strength scales shadow darkness in [0, 1].\n\tStrength float32\n\t// DepthBias is the receiver clip-space depth bias.\n\tDepthBias float32\n\t// NormalBias is the world-space normal offset applied before projecting into light space.\n\tNormalBias float32\n\t// TexelSize is 1 / resolution in UV units, used for 3x3 PCF tap offsets.\n\tTexelSize float32\n\t// PCFKernel selects [ShadowFilterHard] or [ShadowFilterPCF3x3].\n\tPCFKernel ShadowFilter\n}",
          "doc": "ShadowUniforms is the per-frame directional shadow uniform block matching [ShadowWGSL] byte for byte ([ShadowUniformSize] = 96 bytes).\n",
          "file": "pkg/render3d/shadow.go",
          "line": 301,
          "members": [
            {
              "name": "LightViewProj",
              "anchor": "ShadowUniforms.LightViewProj",
              "kind": "field",
              "doc": "LightViewProj transforms world-space points into light clip space with [0, 1] depth."
            },
            {
              "name": "LightDirection",
              "anchor": "ShadowUniforms.LightDirection",
              "kind": "field",
              "doc": "LightDirection is the unit direction light rays travel (from the light toward the scene). Encoded into the WGSL uniform as to_light = -LightDirection so shaders compute dot(N, shadow.to_light.xyz) directly."
            },
            {
              "name": "Strength",
              "anchor": "ShadowUniforms.Strength",
              "kind": "field",
              "doc": "Strength scales shadow darkness in [0, 1]."
            },
            {
              "name": "DepthBias",
              "anchor": "ShadowUniforms.DepthBias",
              "kind": "field",
              "doc": "DepthBias is the receiver clip-space depth bias."
            },
            {
              "name": "NormalBias",
              "anchor": "ShadowUniforms.NormalBias",
              "kind": "field",
              "doc": "NormalBias is the world-space normal offset applied before projecting into light space."
            },
            {
              "name": "TexelSize",
              "anchor": "ShadowUniforms.TexelSize",
              "kind": "field",
              "doc": "TexelSize is 1 / resolution in UV units, used for 3x3 PCF tap offsets."
            },
            {
              "name": "PCFKernel",
              "anchor": "ShadowUniforms.PCFKernel",
              "kind": "field",
              "doc": "PCFKernel selects [ShadowFilterHard] or [ShadowFilterPCF3x3]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Encode",
              "anchor": "ShadowUniforms.Encode",
              "recv": "ShadowUniforms",
              "decl": "func (u ShadowUniforms) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst as the little-endian [ShadowUniformSize]-byte block declared by [ShadowWGSL] and returns dst[:ShadowUniformSize]. It panics if len(dst) is less than [ShadowUniformSize].\n",
              "file": "pkg/render3d/shadow.go",
              "line": 327
            }
          ]
        },
        {
          "name": "SkinPaletteOptions",
          "anchor": "SkinPaletteOptions",
          "decl": "type SkinPaletteOptions struct {\n\t// Label names the uniform buffer, bind group layout, and bind group in GPU capture tools.\n\tLabel string\n\t// Retained keeps a CPU shadow copy of the palette uniform buffer so NSGo restores it with the latest joint matrices after a device loss.\n\tRetained bool\n}",
          "doc": "SkinPaletteOptions configures [NewGPUSkinPalette].\n",
          "file": "pkg/render3d/skin.go",
          "line": 716,
          "members": [
            {
              "name": "Label",
              "anchor": "SkinPaletteOptions.Label",
              "kind": "field",
              "doc": "Label names the uniform buffer, bind group layout, and bind group in GPU capture tools."
            },
            {
              "name": "Retained",
              "anchor": "SkinPaletteOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps a CPU shadow copy of the palette uniform buffer so NSGo restores it with the latest joint matrices after a device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SkinnedMesh",
          "anchor": "SkinnedMesh",
          "decl": "type SkinnedMesh struct {\n\tPositions  []math3d.Vec3\n\tNormals    []math3d.Vec3\n\tUVs        []math3d.Vec2\n\tJoints     [][4]uint16\n\tWeights    []math3d.Vec4\n\tIndices    []uint32\n\tJointCount int\n}",
          "doc": "SkinnedMesh is indexed or non-indexed triangle-list geometry with up to four joint influences per vertex, ready to upload with [UploadSkinnedMesh].\n\nPositions, Joints, and Weights are required and must have equal length. Normals and UVs are optional (empty or one entry per position). Indices is optional (empty for non-indexed triangle lists). JointCount optionally records the skin's joint count; when > 0, [SkinnedMesh.Validate] enforces that every joint index is strictly less than JointCount (and JointCount <= [MaxSkinJoints]). When JointCount == 0, every joint index must be strictly less than [MaxSkinJoints].\n",
          "file": "pkg/render3d/skin.go",
          "line": 195,
          "members": [
            {
              "name": "Positions",
              "anchor": "SkinnedMesh.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "SkinnedMesh.Normals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UVs",
              "anchor": "SkinnedMesh.UVs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Joints",
              "anchor": "SkinnedMesh.Joints",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Weights",
              "anchor": "SkinnedMesh.Weights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "SkinnedMesh.Indices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "JointCount",
              "anchor": "SkinnedMesh.JointCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "SkinnedMeshFromGLTF",
              "anchor": "SkinnedMeshFromGLTF",
              "decl": "func SkinnedMeshFromGLTF(prim gltf.Primitive, skin gltf.Skin) (SkinnedMesh, error)",
              "doc": "SkinnedMeshFromGLTF extracts and validates a [SkinnedMesh] from a glTF 2.0 triangle primitive and its associated skin, normalizing vertex weights so their four components sum to 1. Geometry errors wrap [ErrInvalidMesh] and skinning errors wrap [ErrInvalidSkin].\n",
              "file": "pkg/render3d/skin.go",
              "line": 224
            },
            {
              "name": "SkinnedMeshesFromGLTFNode",
              "anchor": "SkinnedMeshesFromGLTFNode",
              "decl": "func SkinnedMeshesFromGLTFNode(doc *gltf.Document, nodeIndex int) ([]SkinnedMesh, error)",
              "doc": "SkinnedMeshesFromGLTFNode extracts every triangle primitive of doc's skinned mesh node at nodeIndex against its referenced skin.\n",
              "file": "pkg/render3d/skin.go",
              "line": 261
            }
          ],
          "methods": [
            {
              "name": "AppendIndexData",
              "anchor": "SkinnedMesh.AppendIndexData",
              "recv": "SkinnedMesh",
              "decl": "func (m SkinnedMesh) AppendIndexData(dst []byte) []byte",
              "doc": "AppendIndexData appends m's indices to dst at [SkinnedMesh.IndexFormat] width, little-endian and zero-padded to a 4-byte multiple, allocating only when dst lacks capacity.\n",
              "file": "pkg/render3d/skin.go",
              "line": 436
            },
            {
              "name": "AppendVertexData",
              "anchor": "SkinnedMesh.AppendVertexData",
              "recv": "SkinnedMesh",
              "decl": "func (m SkinnedMesh) AppendVertexData(dst []byte) []byte",
              "doc": "AppendVertexData appends m's skinned vertices to dst in the little-endian interleaved layout of [SkinnedVertexLayout] and returns the extended slice. Missing normals and UVs are written as zeros; joint weights are normalized via [NormalizeSkinWeights] so every vertex sums to 1. It allocates only when dst lacks capacity for [SkinnedMesh.VertexDataSize] more bytes. Call [SkinnedMesh.Validate] before encoding untrusted data.\n",
              "file": "pkg/render3d/skin.go",
              "line": 392
            },
            {
              "name": "Bounds",
              "anchor": "SkinnedMesh.Bounds",
              "recv": "SkinnedMesh",
              "decl": "func (m SkinnedMesh) Bounds() math3d.AABB",
              "doc": "Bounds returns the axis-aligned box around the unskinned m.Positions in the mesh's own space, or [math3d.AABBEmpty] when m has none. It is not where the mesh is drawn: the skinned pipelines place vertices with the joint matrices, which move, rotate and animate them, so cull and frame a skinned mesh with [SkinnedBounds] instead.\n",
              "file": "pkg/render3d/skin.go",
              "line": 359
            },
            {
              "name": "IndexDataSize",
              "anchor": "SkinnedMesh.IndexDataSize",
              "recv": "SkinnedMesh",
              "decl": "func (m SkinnedMesh) IndexDataSize() int",
              "doc": "IndexDataSize returns the 4-byte-padded byte length [SkinnedMesh.AppendIndexData] appends, or zero for a non-indexed mesh.\n",
              "file": "pkg/render3d/skin.go",
              "line": 383
            },
            {
              "name": "IndexFormat",
              "anchor": "SkinnedMesh.IndexFormat",
              "recv": "SkinnedMesh",
              "decl": "func (m SkinnedMesh) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns [gpu.IndexUint16] when every vertex fits below 0xFFFF (avoiding WebGL 2's fixed primitive restart index), otherwise [gpu.IndexUint32].\n",
              "file": "pkg/render3d/skin.go",
              "line": 351
            },
            {
              "name": "Indexed",
              "anchor": "SkinnedMesh.Indexed",
              "recv": "SkinnedMesh",
              "decl": "func (m SkinnedMesh) Indexed() bool",
              "doc": "Indexed reports whether m has an index list.\n",
              "file": "pkg/render3d/skin.go",
              "line": 348
            },
            {
              "name": "Validate",
              "anchor": "SkinnedMesh.Validate",
              "recv": "SkinnedMesh",
              "decl": "func (m SkinnedMesh) Validate() error",
              "doc": "Validate checks both the triangle geometry (wrapping [ErrInvalidMesh]) and the skinning attributes (wrapping [ErrInvalidSkin]): matching Joints and Weights counts, JointCount in [0, MaxSkinJoints], finite non-negative weights, and every joint index strictly below JointCount (or [MaxSkinJoints] when JointCount == 0).\n",
              "file": "pkg/render3d/skin.go",
              "line": 292
            },
            {
              "name": "VertexCount",
              "anchor": "SkinnedMesh.VertexCount",
              "recv": "SkinnedMesh",
              "decl": "func (m SkinnedMesh) VertexCount() int",
              "doc": "VertexCount returns the number of vertices, len(m.Positions).\n",
              "file": "pkg/render3d/skin.go",
              "line": 345
            },
            {
              "name": "VertexDataSize",
              "anchor": "SkinnedMesh.VertexDataSize",
              "recv": "SkinnedMesh",
              "decl": "func (m SkinnedMesh) VertexDataSize() int",
              "doc": "VertexDataSize returns the byte length [SkinnedMesh.AppendVertexData] appends.\n",
              "file": "pkg/render3d/skin.go",
              "line": 380
            }
          ]
        },
        {
          "name": "SkinnedMeshPipelineOptions",
          "anchor": "SkinnedMeshPipelineOptions",
          "decl": "type SkinnedMeshPipelineOptions struct {\n\t// Label names the render pipeline in GPU capture tools.\n\tLabel string\n\t// ColorFormat overrides the color attachment format; when FormatUndefined, dev.SurfaceFormat() is used.\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing and depth writes when not FormatUndefined.\n\tDepthFormat gpu.TextureFormat\n\t// DoubleSided disables back-face culling when true; by default CCW front faces are kept and back faces are culled.\n\tDoubleSided bool\n\t// SampleCount sets the MSAA sample count (0 defaults to 1).\n\tSampleCount int\n\t// Retained keeps the pipeline descriptor so NSGo recreates it after device loss.\n\tRetained bool\n}",
          "doc": "SkinnedMeshPipelineOptions configures [NewSkinnedMeshPipeline].\n",
          "file": "pkg/render3d/skin.go",
          "line": 906,
          "members": [
            {
              "name": "Label",
              "anchor": "SkinnedMeshPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the render pipeline in GPU capture tools."
            },
            {
              "name": "ColorFormat",
              "anchor": "SkinnedMeshPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat overrides the color attachment format; when FormatUndefined, dev.SurfaceFormat() is used."
            },
            {
              "name": "DepthFormat",
              "anchor": "SkinnedMeshPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing and depth writes when not FormatUndefined."
            },
            {
              "name": "DoubleSided",
              "anchor": "SkinnedMeshPipelineOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables back-face culling when true; by default CCW front faces are kept and back faces are culled."
            },
            {
              "name": "SampleCount",
              "anchor": "SkinnedMeshPipelineOptions.SampleCount",
              "kind": "field",
              "doc": "SampleCount sets the MSAA sample count (0 defaults to 1)."
            },
            {
              "name": "Retained",
              "anchor": "SkinnedMeshPipelineOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps the pipeline descriptor so NSGo recreates it after device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SkyboxPipeline",
          "anchor": "SkyboxPipeline",
          "decl": "type SkyboxPipeline struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "SkyboxPipeline renders any [GPUCubemap] as a fullscreen background skybox without a vertex buffer. Create it once in OnReady, bind a cubemap with [SkyboxPipeline.BindCubemap], update the view each frame with [SkyboxPipeline.WriteCamera] or [SkyboxPipeline.Write], and record the draw with [SkyboxPipeline.Draw].\n",
          "file": "pkg/render3d/skybox.go",
          "line": 733,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSkyboxPipeline",
              "anchor": "NewSkyboxPipeline",
              "decl": "func NewSkyboxPipeline(cx *core.Scope, dev *gpu.Device, desc SkyboxPipelineDesc) (*SkyboxPipeline, error)",
              "doc": "NewSkyboxPipeline compiles [SkyboxWGSL] and creates the skybox render pipeline, bind group layout, and uniform buffer on dev, scoped to cx.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 742
            }
          ],
          "methods": [
            {
              "name": "BindCubemap",
              "anchor": "SkyboxPipeline.BindCubemap",
              "recv": "*SkyboxPipeline",
              "decl": "func (s *SkyboxPipeline) BindCubemap(cx *core.Scope, cube *GPUCubemap) (*gpu.BindGroup, error)",
              "doc": "BindCubemap creates a [gpu.BindGroup] pairing the pipeline's uniform buffer with cube's texture and sampler. When both the pipeline and cube were created with Retained: true, NSGo restores this bind group automatically after a device loss.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 818
            },
            {
              "name": "Close",
              "anchor": "SkyboxPipeline.Close",
              "recv": "*SkyboxPipeline",
              "decl": "func (s *SkyboxPipeline) Close() error",
              "doc": "Close releases the pipeline, layout, and uniform buffer. Safe to call more than once.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 888
            },
            {
              "name": "Draw",
              "anchor": "SkyboxPipeline.Draw",
              "recv": "*SkyboxPipeline",
              "decl": "func (s *SkyboxPipeline) Draw(pass *gpu.RenderPass, group *gpu.BindGroup)",
              "doc": "Draw binds the skybox pipeline and cubemap bind group and issues the single fullscreen-triangle draw (3 vertices, no vertex buffer). It records nothing if either the pipeline or group is invalid.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 857
            },
            {
              "name": "Layout",
              "anchor": "SkyboxPipeline.Layout",
              "recv": "*SkyboxPipeline",
              "decl": "func (s *SkyboxPipeline) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the skybox [gpu.BindGroupLayout].\n",
              "file": "pkg/render3d/skybox.go",
              "line": 875
            },
            {
              "name": "Pipeline",
              "anchor": "SkyboxPipeline.Pipeline",
              "recv": "*SkyboxPipeline",
              "decl": "func (s *SkyboxPipeline) Pipeline() *gpu.Pipeline",
              "doc": "Pipeline returns the underlying [gpu.Pipeline].\n",
              "file": "pkg/render3d/skybox.go",
              "line": 867
            },
            {
              "name": "SetDevice",
              "anchor": "SkyboxPipeline.SetDevice",
              "recv": "*SkyboxPipeline",
              "decl": "func (s *SkyboxPipeline) SetDevice(dev *gpu.Device)",
              "doc": "SetDevice updates the device handle used by [SkyboxPipeline.Write] and [SkyboxPipeline.BindCubemap] after a retained pipeline is restored on a new device in OnReady.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 837
            },
            {
              "name": "Valid",
              "anchor": "SkyboxPipeline.Valid",
              "recv": "*SkyboxPipeline",
              "decl": "func (s *SkyboxPipeline) Valid() bool",
              "doc": "Valid reports whether the pipeline, layout, and uniform buffer are open and belong to a live device.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 883
            },
            {
              "name": "Write",
              "anchor": "SkyboxPipeline.Write",
              "recv": "*SkyboxPipeline",
              "decl": "func (s *SkyboxPipeline) Write(u SkyboxUniform)",
              "doc": "Write uploads u to the skybox uniform buffer. It encodes into storage the SkyboxPipeline owns, so the only copy made is the one gpu.Device.WriteBuffer takes of the bytes it queues.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 844
            },
            {
              "name": "WriteCamera",
              "anchor": "SkyboxPipeline.WriteCamera",
              "recv": "*SkyboxPipeline",
              "decl": "func (s *SkyboxPipeline) WriteCamera(cam *scene3d.Camera)",
              "doc": "WriteCamera uploads cam's rotation and projection to the skybox uniform buffer with Exposure = 1 and LOD = 0.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 852
            }
          ]
        },
        {
          "name": "SkyboxPipelineDesc",
          "anchor": "SkyboxPipelineDesc",
          "decl": "type SkyboxPipelineDesc struct {\n\t// Label names the GPU pipeline, uniform buffer, and layout in capture tools.\n\tLabel string\n\t// ColorFormat is the render target color format; defaults to dev.SurfaceFormat() when [gpu.FormatUndefined].\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat is the depth attachment format (for example [gpu.FormatDepth24Plus]). Leave [gpu.FormatUndefined] for color-only passes. When set, the pipeline uses [gpu.CompareLessEqual] with DepthWrite disabled and [SkyboxWGSL] emits depth 1.0, so the skybox drawn after opaque geometry stays behind everything nearer than the far plane.\n\tDepthFormat gpu.TextureFormat\n\t// SampleCount is the MSAA sample count (0 or 1 for non-MSAA, 4 for 4x MSAA).\n\tSampleCount int\n\t// ToneMap compiles [SkyboxToneMapWGSL] instead of [SkyboxWGSL], applying Reinhard tone mapping and gamma 2.2 encoding after [SkyboxUniform].Exposure so an HDR [GPUCubemap] can draw directly to an LDR surface alongside [MaterialWGSL] or [MaterialIBLWGSL]. Leave false when rendering into an [HDRTarget] resolved by [ToneMapPass] or when drawing an already display-encoded LDR cubemap.\n\tToneMap bool\n\t// Retained opts the pipeline and uniform buffer into automatic recreation after a GPU device loss.\n\tRetained bool\n}",
          "doc": "SkyboxPipelineDesc configures [NewSkyboxPipeline].\n",
          "file": "pkg/render3d/skybox.go",
          "line": 717,
          "members": [
            {
              "name": "Label",
              "anchor": "SkyboxPipelineDesc.Label",
              "kind": "field",
              "doc": "Label names the GPU pipeline, uniform buffer, and layout in capture tools."
            },
            {
              "name": "ColorFormat",
              "anchor": "SkyboxPipelineDesc.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat is the render target color format; defaults to dev.SurfaceFormat() when [gpu.FormatUndefined]."
            },
            {
              "name": "DepthFormat",
              "anchor": "SkyboxPipelineDesc.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat is the depth attachment format (for example [gpu.FormatDepth24Plus]). Leave [gpu.FormatUndefined] for color-only passes. When set, the pipeline uses [gpu.CompareLessEqual] with DepthWrite disabled and [SkyboxWGSL] emits depth 1.0, so the skybox drawn after opaque geometry stays behind everything nearer than the far plane."
            },
            {
              "name": "SampleCount",
              "anchor": "SkyboxPipelineDesc.SampleCount",
              "kind": "field",
              "doc": "SampleCount is the MSAA sample count (0 or 1 for non-MSAA, 4 for 4x MSAA)."
            },
            {
              "name": "ToneMap",
              "anchor": "SkyboxPipelineDesc.ToneMap",
              "kind": "field",
              "doc": "ToneMap compiles [SkyboxToneMapWGSL] instead of [SkyboxWGSL], applying Reinhard tone mapping and gamma 2.2 encoding after [SkyboxUniform].Exposure so an HDR [GPUCubemap] can draw directly to an LDR surface alongside [MaterialWGSL] or [MaterialIBLWGSL]. Leave false when rendering into an [HDRTarget] resolved by [ToneMapPass] or when drawing an already display-encoded LDR cubemap."
            },
            {
              "name": "Retained",
              "anchor": "SkyboxPipelineDesc.Retained",
              "kind": "field",
              "doc": "Retained opts the pipeline and uniform buffer into automatic recreation after a GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SkyboxUniform",
          "anchor": "SkyboxUniform",
          "decl": "type SkyboxUniform struct {\n\tInvViewProj math3d.Mat4\n\tExposure    float32\n\tLOD         float32\n}",
          "doc": "SkyboxUniform is the per-frame data [SkyboxWGSL] reads: the inverse of Proj * ViewRotation (camera view with translation stripped) plus exposure and mip LOD.\n",
          "file": "pkg/render3d/skybox.go",
          "line": 665,
          "members": [
            {
              "name": "InvViewProj",
              "anchor": "SkyboxUniform.InvViewProj",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Exposure",
              "anchor": "SkyboxUniform.Exposure",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LOD",
              "anchor": "SkyboxUniform.LOD",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSkyboxUniform",
              "anchor": "NewSkyboxUniform",
              "decl": "func NewSkyboxUniform(cam *scene3d.Camera) SkyboxUniform",
              "doc": "NewSkyboxUniform builds a [SkyboxUniform] from cam's current rotation and projection with Exposure = 1 and LOD = 0. Camera translation is removed so the skybox stays infinitely far away as the viewer moves.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 672
            },
            {
              "name": "NewSkyboxUniformFromMatrices",
              "anchor": "NewSkyboxUniformFromMatrices",
              "decl": "func NewSkyboxUniformFromMatrices(view, proj math3d.Mat4) SkyboxUniform",
              "doc": "NewSkyboxUniformFromMatrices builds a [SkyboxUniform] from raw view and projection matrices with translation stripped from view, Exposure = 1, and LOD = 0.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 680
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "SkyboxUniform.Encode",
              "recv": "*SkyboxUniform",
              "decl": "func (u *SkyboxUniform) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst as the little-endian [SkyboxUniformSize]-byte block declared by [SkyboxWGSL] and returns dst[:SkyboxUniformSize]. It panics if len(dst) < SkyboxUniformSize.\n",
              "file": "pkg/render3d/skybox.go",
              "line": 696
            }
          ]
        },
        {
          "name": "SpotLight",
          "anchor": "SpotLight",
          "decl": "type SpotLight struct {\n\tPosition       math3d.Vec3\n\tDirection      math3d.Vec3\n\tColor          math3d.Vec3\n\tIntensity      float32\n\tRange          float32\n\tInnerConeAngle float32\n\tOuterConeAngle float32\n}",
          "doc": "SpotLight is a punctual cone-shaped emitter at Position shining along Direction, following glTF KHR_lights_punctual.\n\nDirection is the world-space direction the cone points in (the light travels along it); it does not need to be unit length and is normalized when shaded or packed for the GPU. Color is linear RGB tint (non-negative finite channels) and Intensity scales Color to produce linear radiant intensity. Range windows the distance falloff exactly as it does for a [PointLight] (0 for pure inverse-square falloff). InnerConeAngle and OuterConeAngle are half-angles in radians from Direction with 0 <= InnerConeAngle < OuterConeAngle <= pi/2: surfaces inside the inner cone receive the full intensity, which then falls off smoothly to zero at the outer cone (see [SpotConeAttenuation]).\n",
          "file": "pkg/render3d/spotlight.go",
          "line": 24,
          "members": [
            {
              "name": "Position",
              "anchor": "SpotLight.Position",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Direction",
              "anchor": "SpotLight.Direction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "SpotLight.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Intensity",
              "anchor": "SpotLight.Intensity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Range",
              "anchor": "SpotLight.Range",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InnerConeAngle",
              "anchor": "SpotLight.InnerConeAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OuterConeAngle",
              "anchor": "SpotLight.OuterConeAngle",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Attenuation",
              "anchor": "SpotLight.Attenuation",
              "recv": "SpotLight",
              "decl": "func (l SpotLight) Attenuation(worldPos math3d.Vec3) float32",
              "doc": "Attenuation returns the combined distance and cone attenuation l applies at worldPos: [PointLightAttenuation] with l.Range times [SpotConeAttenuation]. It is 0 for a degenerate direction or when worldPos coincides with the light, and multiplying it by Color * Intensity gives the incident radiance [ShadePoint] uses for l.\n",
              "file": "pkg/render3d/spotlight.go",
              "line": 75
            },
            {
              "name": "ConeScaleOffset",
              "anchor": "SpotLight.ConeScaleOffset",
              "recv": "SpotLight",
              "decl": "func (l SpotLight) ConeScaleOffset() (angleScale, angleOffset float32)",
              "doc": "ConeScaleOffset returns the angular attenuation terms glTF KHR_lights_punctual precomputes per light: angleScale = 1 / max(cos(InnerConeAngle) - cos(OuterConeAngle), 0.001) and angleOffset = -cos(OuterConeAngle) * angleScale. [SpotConeAttenuation] takes them, and the GPU light block stores them next to each spot light.\n",
              "file": "pkg/render3d/spotlight.go",
              "line": 61
            },
            {
              "name": "Validate",
              "anchor": "SpotLight.Validate",
              "recv": "SpotLight",
              "decl": "func (l SpotLight) Validate() error",
              "doc": "Validate reports whether l has a finite position, a finite non-zero direction, finite non-negative color channels, intensity and range, and cone half-angles with 0 <= InnerConeAngle < OuterConeAngle <= pi/2, the bounds glTF KHR_lights_punctual sets. Every error wraps [ErrInvalidLight].\n",
              "file": "pkg/render3d/spotlight.go",
              "line": 35
            }
          ]
        },
        {
          "name": "SpotShadowConfig",
          "anchor": "SpotShadowConfig",
          "decl": "type SpotShadowConfig struct {\n\t// Resolution is the width and height of the square depth shadow map in texels. Zero defaults to 1024.\n\tResolution uint32\n\t// Near is the near plane distance of the shadow projection. Zero defaults to [DefaultLocalShadowNear].\n\tNear float32\n\t// Far is the far plane distance used when the spot light's Range is 0; a light with a Range uses that instead. Zero defaults to [DefaultLocalShadowFar].\n\tFar float32\n\t// DepthBias subtracts a constant NDC [0, 1] bias during depth comparison to avoid shadow acne. [DefaultSpotShadowConfig] sets 0.0015; zero disables it.\n\tDepthBias float32\n\t// NormalBias offsets the shaded world position along its surface normal before projecting into light space.\n\tNormalBias float32\n\t// Filter selects hard single-tap or 3x3 PCF comparison sampling.\n\tFilter LocalShadowFilter\n\t// CullMode sets face culling for the shadow caster pass (default gpu.CullNone).\n\tCullMode gpu.CullMode\n\t// MaxCasters is the maximum number of [SpotShadowMap.DrawCaster] calls per shadow pass, at most [MaxLocalShadowCasters]. Zero defaults to [DefaultLocalShadowMaxCasters].\n\tMaxCasters uint32\n\t// Label names GPU resources in capture tools.\n\tLabel string\n\t// Retained keeps resources across GPU device loss and restore.\n\tRetained bool\n}",
          "doc": "SpotShadowConfig configures a perspective 2D [SpotShadowMap].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 382,
          "members": [
            {
              "name": "Resolution",
              "anchor": "SpotShadowConfig.Resolution",
              "kind": "field",
              "doc": "Resolution is the width and height of the square depth shadow map in texels. Zero defaults to 1024."
            },
            {
              "name": "Near",
              "anchor": "SpotShadowConfig.Near",
              "kind": "field",
              "doc": "Near is the near plane distance of the shadow projection. Zero defaults to [DefaultLocalShadowNear]."
            },
            {
              "name": "Far",
              "anchor": "SpotShadowConfig.Far",
              "kind": "field",
              "doc": "Far is the far plane distance used when the spot light's Range is 0; a light with a Range uses that instead. Zero defaults to [DefaultLocalShadowFar]."
            },
            {
              "name": "DepthBias",
              "anchor": "SpotShadowConfig.DepthBias",
              "kind": "field",
              "doc": "DepthBias subtracts a constant NDC [0, 1] bias during depth comparison to avoid shadow acne. [DefaultSpotShadowConfig] sets 0.0015; zero disables it."
            },
            {
              "name": "NormalBias",
              "anchor": "SpotShadowConfig.NormalBias",
              "kind": "field",
              "doc": "NormalBias offsets the shaded world position along its surface normal before projecting into light space."
            },
            {
              "name": "Filter",
              "anchor": "SpotShadowConfig.Filter",
              "kind": "field",
              "doc": "Filter selects hard single-tap or 3x3 PCF comparison sampling."
            },
            {
              "name": "CullMode",
              "anchor": "SpotShadowConfig.CullMode",
              "kind": "field",
              "doc": "CullMode sets face culling for the shadow caster pass (default gpu.CullNone)."
            },
            {
              "name": "MaxCasters",
              "anchor": "SpotShadowConfig.MaxCasters",
              "kind": "field",
              "doc": "MaxCasters is the maximum number of [SpotShadowMap.DrawCaster] calls per shadow pass, at most [MaxLocalShadowCasters]. Zero defaults to [DefaultLocalShadowMaxCasters]."
            },
            {
              "name": "Label",
              "anchor": "SpotShadowConfig.Label",
              "kind": "field",
              "doc": "Label names GPU resources in capture tools."
            },
            {
              "name": "Retained",
              "anchor": "SpotShadowConfig.Retained",
              "kind": "field",
              "doc": "Retained keeps resources across GPU device loss and restore."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultSpotShadowConfig",
              "anchor": "DefaultSpotShadowConfig",
              "decl": "func DefaultSpotShadowConfig() SpotShadowConfig",
              "doc": "DefaultSpotShadowConfig returns a ready-to-use 1024x1024 PCF 3x3 spot shadow configuration.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 406
            }
          ],
          "methods": [
            {
              "name": "Normalized",
              "anchor": "SpotShadowConfig.Normalized",
              "recv": "SpotShadowConfig",
              "decl": "func (c SpotShadowConfig) Normalized() SpotShadowConfig",
              "doc": "Normalized returns a copy of c with zero Resolution, Near, Far and MaxCasters filled with defaults.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 420
            },
            {
              "name": "Validate",
              "anchor": "SpotShadowConfig.Validate",
              "recv": "SpotShadowConfig",
              "decl": "func (c SpotShadowConfig) Validate() error",
              "doc": "Validate checks that c's planes, biases, filter, cull mode and caster count are valid. Every error wraps [ErrInvalidLocalShadow].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 437
            }
          ]
        },
        {
          "name": "SpotShadowMap",
          "anchor": "SpotShadowMap",
          "decl": "type SpotShadowMap struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "SpotShadowMap manages a depth-only perspective 2D shadow map, its depth caster pipeline and its sampling bind group for the first spot light of a [LightRig].\n\nCreate it once when the GPU device is ready (Retained: true survives device loss), call [SpotShadowMap.Update] with the rig's spot light, record casters between [SpotShadowMap.BeginShadowPass] and pass.End(), and bind [SpotShadowMap.BindGroup] at [LocalShadowGroup] when drawing with [NewLitPBRSpotShadowPipeline]. Its resources belong to the [*core.Scope] passed to [NewSpotShadowMap].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 841,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSpotShadowMap",
              "anchor": "NewSpotShadowMap",
              "decl": "func NewSpotShadowMap(cx *core.Scope, dev *gpu.Device, cfg SpotShadowConfig) (*SpotShadowMap, error)",
              "doc": "NewSpotShadowMap creates a depth-only perspective spot shadow map and its GPU resources scoped to cx. Invalid configuration, a resolution above the device's MaxTextureDimension2D, or a caster buffer above its MaxBufferSize returns an error wrapping [ErrInvalidLocalShadow]; device errors are returned as [gpu.Error].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 853
            }
          ],
          "methods": [
            {
              "name": "BeginShadowPass",
              "anchor": "SpotShadowMap.BeginShadowPass",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) BeginShadowPass(dev *gpu.Device, target ShadowPassTarget) *gpu.RenderPass",
              "doc": "BeginShadowPass resets the caster slot cursor, begins a depth-only render pass on target (a [*gpu.Encoder] or [*gpu.Frame]) clearing the spot shadow map to 1.0, sets the full viewport and scissor, and binds the depth pipeline. Record at most one shadow pass per submission. It returns nil when s, dev or target is nil or s is invalid, so check the result before drawing casters and calling End.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 971
            },
            {
              "name": "BindGroup",
              "anchor": "SpotShadowMap.BindGroup",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the bind group to set at [LocalShadowGroup], or at the group passed to [SpotShadowWGSLForGroup], during the lit render pass.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 949
            },
            {
              "name": "ByteSize",
              "anchor": "SpotShadowMap.ByteSize",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) ByteSize() uint64",
              "doc": "ByteSize returns the GPU memory held by the depth texture and uniform buffers.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 957
            },
            {
              "name": "Close",
              "anchor": "SpotShadowMap.Close",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) Close() error",
              "doc": "Close releases all GPU resources owned by s. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 1010
            },
            {
              "name": "Config",
              "anchor": "SpotShadowMap.Config",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) Config() SpotShadowConfig",
              "doc": "Config returns the normalized [SpotShadowConfig].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 901
            },
            {
              "name": "DepthTexture",
              "anchor": "SpotShadowMap.DepthTexture",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) DepthTexture() *gpu.Texture",
              "doc": "DepthTexture returns the underlying Depth32Float [gpu.Texture].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 925
            },
            {
              "name": "DrawCaster",
              "anchor": "SpotShadowMap.DrawCaster",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) DrawCaster(pass *gpu.RenderPass, mesh *GPUMesh, model math3d.Mat4) bool",
              "doc": "DrawCaster records a shadow caster draw for mesh transformed by model inside the pass started by [SpotShadowMap.BeginShadowPass]. Each call uses its own 256-byte dynamic-offset uniform slot, so casters drawn in one pass never overwrite each other's transforms. It returns false and draws nothing when an argument is invalid, [SpotShadowMap.Update] has not been called yet, or [SpotShadowMap.MaxCasters] casters were already drawn in this pass.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 997
            },
            {
              "name": "Layout",
              "anchor": "SpotShadowMap.Layout",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout for sampling this spot shadow map (binding 0: SpotShadow uniform, binding 1: texture_depth_2d, binding 2: sampler_comparison).\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 941
            },
            {
              "name": "MaxCasters",
              "anchor": "SpotShadowMap.MaxCasters",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) MaxCasters() uint32",
              "doc": "MaxCasters returns the number of [SpotShadowMap.DrawCaster] calls one shadow pass accepts.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 909
            },
            {
              "name": "RenderTarget",
              "anchor": "SpotShadowMap.RenderTarget",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) RenderTarget() *gpu.RenderTarget",
              "doc": "RenderTarget returns the underlying depth-only [gpu.RenderTarget].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 917
            },
            {
              "name": "Sampler",
              "anchor": "SpotShadowMap.Sampler",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) Sampler() *gpu.Sampler",
              "doc": "Sampler returns the comparison [gpu.Sampler] bound in [SpotShadowMap.BindGroup].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 933
            },
            {
              "name": "Uniforms",
              "anchor": "SpotShadowMap.Uniforms",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) Uniforms() SpotShadowUniform",
              "doc": "Uniforms returns the last spot shadow uniform data written via [SpotShadowMap.Update].\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 893
            },
            {
              "name": "Update",
              "anchor": "SpotShadowMap.Update",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) Update(dev *gpu.Device, light SpotLight) error",
              "doc": "Update computes the shadow projection for the [LightRig] spot light light (see [NewSpotShadowUniform]) and writes the uniform buffer on dev without heap allocations.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 875
            },
            {
              "name": "Valid",
              "anchor": "SpotShadowMap.Valid",
              "recv": "*SpotShadowMap",
              "decl": "func (s *SpotShadowMap) Valid() bool",
              "doc": "Valid reports whether all underlying GPU resources are open and live.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 966
            }
          ]
        },
        {
          "name": "SpotShadowUniform",
          "anchor": "SpotShadowUniform",
          "decl": "type SpotShadowUniform struct {\n\t// ViewProj is the spot light's [0, 1]-depth perspective view-projection matrix.\n\tViewProj      math3d.Mat4\n\tDepthBias     float32\n\tNormalBias    float32\n\tInvResolution float32\n\t// FilterMode is 0 for [LocalShadowFilterHard] and 1 for [LocalShadowFilterPCF3x3].\n\tFilterMode float32\n}",
          "doc": "SpotShadowUniform is the packed uniform data matching the WGSL SpotShadow block declared by [SpotShadowWGSL].\n",
          "file": "pkg/render3d/local_shadows.go",
          "line": 446,
          "members": [
            {
              "name": "ViewProj",
              "anchor": "SpotShadowUniform.ViewProj",
              "kind": "field",
              "doc": "ViewProj is the spot light's [0, 1]-depth perspective view-projection matrix."
            },
            {
              "name": "DepthBias",
              "anchor": "SpotShadowUniform.DepthBias",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalBias",
              "anchor": "SpotShadowUniform.NormalBias",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "InvResolution",
              "anchor": "SpotShadowUniform.InvResolution",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FilterMode",
              "anchor": "SpotShadowUniform.FilterMode",
              "kind": "field",
              "doc": "FilterMode is 0 for [LocalShadowFilterHard] and 1 for [LocalShadowFilterPCF3x3]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSpotShadowUniform",
              "anchor": "NewSpotShadowUniform",
              "decl": "func NewSpotShadowUniform(light SpotLight, cfg SpotShadowConfig) (SpotShadowUniform, error)",
              "doc": "NewSpotShadowUniform computes the shadow uniform data for the [LightRig] spot light light under cfg. The projection's far plane is light.Range, or cfg.Far when Range is 0. It returns an error wrapping [ErrInvalidLight] when light is invalid, and one wrapping [ErrInvalidLocalShadow] when cfg is invalid, the cone is wider than [MaxSpotShadowConeAngle], or the far plane is not beyond the near plane.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 471
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "SpotShadowUniform.Encode",
              "recv": "*SpotShadowUniform",
              "decl": "func (u *SpotShadowUniform) Encode(dst []byte) []byte",
              "doc": "Encode writes u into dst in the little-endian layout declared by [SpotShadowWGSL] and returns dst[:SpotShadowUniformSize]. It allocates nothing and panics if len(dst) < SpotShadowUniformSize.\n",
              "file": "pkg/render3d/local_shadows.go",
              "line": 496
            }
          ]
        },
        {
          "name": "SurfaceDesc",
          "anchor": "SurfaceDesc",
          "decl": "type SurfaceDesc struct {\n\t// Width and Height in pixels. In [ViewportRenderer.RenderFrame], leaving either non-positive fills both from frame.Size().\n\tWidth  int\n\tHeight int\n\t// HasDepth attaches the surface's depth buffer when true (set true when gpu.ViewProps.DepthFormat or gpu.NewSoftwareRenderer's depth format is set).\n\tHasDepth bool\n\t// ClearColor is the fallback clear color for the main surface when the first main-surface view has a zero ClearColor.\n\tClearColor core.Color\n\t// ClearDepth is the fallback depth clear value for the main surface (0 defaults to 1).\n\tClearDepth float32\n}",
          "doc": "SurfaceDesc describes the main on-screen render surface passed to [ViewportRenderer.RenderEncoder] or [ViewportRenderer.RenderFrame].\n",
          "file": "pkg/render3d/viewport.go",
          "line": 725,
          "members": [
            {
              "name": "Width",
              "anchor": "SurfaceDesc.Width",
              "kind": "field",
              "doc": "Width and Height in pixels. In [ViewportRenderer.RenderFrame], leaving either non-positive fills both from frame.Size()."
            },
            {
              "name": "Height",
              "anchor": "SurfaceDesc.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasDepth",
              "anchor": "SurfaceDesc.HasDepth",
              "kind": "field",
              "doc": "HasDepth attaches the surface's depth buffer when true (set true when gpu.ViewProps.DepthFormat or gpu.NewSoftwareRenderer's depth format is set)."
            },
            {
              "name": "ClearColor",
              "anchor": "SurfaceDesc.ClearColor",
              "kind": "field",
              "doc": "ClearColor is the fallback clear color for the main surface when the first main-surface view has a zero ClearColor."
            },
            {
              "name": "ClearDepth",
              "anchor": "SurfaceDesc.ClearDepth",
              "kind": "field",
              "doc": "ClearDepth is the fallback depth clear value for the main surface (0 defaults to 1)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainEvalInput",
          "anchor": "TerrainEvalInput",
          "decl": "type TerrainEvalInput struct {\n\tMaterial TerrainMaterial\n\t// Splat0 holds the RGBA weights from SplatMap0 (layers 0..3).\n\tSplat0 [4]float32\n\t// Splat1 holds the RGBA weights from SplatMap1 (layers 4..7).\n\tSplat1 [4]float32\n\t// Samples holds optional per-layer planar samples (indexed by layer index).\n\tSamples []TerrainEvalLayerSample\n\t// TriplanarX, TriplanarY, TriplanarZ hold optional per-layer samples along the X, Y, Z projection planes when Triplanar.Enabled is true.\n\tTriplanarX []TerrainEvalLayerSample\n\tTriplanarY []TerrainEvalLayerSample\n\tTriplanarZ []TerrainEvalLayerSample\n\t// WorldPos is the fragment world-space position.\n\tWorldPos math3d.Vec3\n\t// Normal is the geometric world-space normal.\n\tNormal math3d.Vec3\n\t// Tangent and Bitangent optionally supply the planar tangent frame; derived from Normal when zero.\n\tTangent   math3d.Vec3\n\tBitangent math3d.Vec3\n\t// ViewDir points from WorldPos toward the camera.\n\tViewDir math3d.Vec3\n\t// Rig is the scene [LightRig].\n\tRig LightRig\n\t// ShadowVisibility attenuates directional light 0 in [0, 1] (0 defaults to 1 unless UseShadowVisibility is true).\n\tShadowVisibility    float32\n\tUseShadowVisibility bool\n}",
          "doc": "TerrainEvalInput provides per-fragment inputs to [EvaluateTerrainMaterial],\nmatching [TerrainMaterialWGSL] and [TerrainMaterialShadowWGSL].\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1454,
          "members": [
            {
              "name": "Material",
              "anchor": "TerrainEvalInput.Material",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Splat0",
              "anchor": "TerrainEvalInput.Splat0",
              "kind": "field",
              "doc": "Splat0 holds the RGBA weights from SplatMap0 (layers 0..3)."
            },
            {
              "name": "Splat1",
              "anchor": "TerrainEvalInput.Splat1",
              "kind": "field",
              "doc": "Splat1 holds the RGBA weights from SplatMap1 (layers 4..7)."
            },
            {
              "name": "Samples",
              "anchor": "TerrainEvalInput.Samples",
              "kind": "field",
              "doc": "Samples holds optional per-layer planar samples (indexed by layer index)."
            },
            {
              "name": "TriplanarX",
              "anchor": "TerrainEvalInput.TriplanarX",
              "kind": "field",
              "doc": "TriplanarX, TriplanarY, TriplanarZ hold optional per-layer samples along the X, Y, Z projection planes when Triplanar.Enabled is true."
            },
            {
              "name": "TriplanarY",
              "anchor": "TerrainEvalInput.TriplanarY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriplanarZ",
              "anchor": "TerrainEvalInput.TriplanarZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldPos",
              "anchor": "TerrainEvalInput.WorldPos",
              "kind": "field",
              "doc": "WorldPos is the fragment world-space position."
            },
            {
              "name": "Normal",
              "anchor": "TerrainEvalInput.Normal",
              "kind": "field",
              "doc": "Normal is the geometric world-space normal."
            },
            {
              "name": "Tangent",
              "anchor": "TerrainEvalInput.Tangent",
              "kind": "field",
              "doc": "Tangent and Bitangent optionally supply the planar tangent frame; derived from Normal when zero."
            },
            {
              "name": "Bitangent",
              "anchor": "TerrainEvalInput.Bitangent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ViewDir",
              "anchor": "TerrainEvalInput.ViewDir",
              "kind": "field",
              "doc": "ViewDir points from WorldPos toward the camera."
            },
            {
              "name": "Rig",
              "anchor": "TerrainEvalInput.Rig",
              "kind": "field",
              "doc": "Rig is the scene [LightRig]."
            },
            {
              "name": "ShadowVisibility",
              "anchor": "TerrainEvalInput.ShadowVisibility",
              "kind": "field",
              "doc": "ShadowVisibility attenuates directional light 0 in [0, 1] (0 defaults to 1 unless UseShadowVisibility is true)."
            },
            {
              "name": "UseShadowVisibility",
              "anchor": "TerrainEvalInput.UseShadowVisibility",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainEvalLayerSample",
          "anchor": "TerrainEvalLayerSample",
          "decl": "type TerrainEvalLayerSample struct {\n\t// AlbedoLinear is the linear RGB base-color sample (defaults to [1, 1, 1] when HasAlbedo is false).\n\tAlbedoLinear [3]float32\n\tHasAlbedo    bool\n\t// MetallicSample is the metallic-roughness texture B channel (defaults to 1 when HasMetallicRoughness is false).\n\tMetallicSample float32\n\t// RoughnessSample is the metallic-roughness texture G channel (defaults to 1 when HasMetallicRoughness is false).\n\tRoughnessSample      float32\n\tHasMetallicRoughness bool\n\t// NormalSample is the UNORM [0, 1] tangent-space normal sample (defaults to [0.5, 0.5, 1] when HasNormal is false).\n\tNormalSample [3]float32\n\tHasNormal    bool\n\t// HeightSample is the normalized [0, 1] height-map sample (defaults to 0.5 when HasHeight is false).\n\tHeightSample float32\n\tHasHeight    bool\n}",
          "doc": "TerrainEvalLayerSample holds per-layer sampled texel values for the pure-Go\nCPU reference evaluator [EvaluateTerrainMaterial].\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1435,
          "members": [
            {
              "name": "AlbedoLinear",
              "anchor": "TerrainEvalLayerSample.AlbedoLinear",
              "kind": "field",
              "doc": "AlbedoLinear is the linear RGB base-color sample (defaults to [1, 1, 1] when HasAlbedo is false)."
            },
            {
              "name": "HasAlbedo",
              "anchor": "TerrainEvalLayerSample.HasAlbedo",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicSample",
              "anchor": "TerrainEvalLayerSample.MetallicSample",
              "kind": "field",
              "doc": "MetallicSample is the metallic-roughness texture B channel (defaults to 1 when HasMetallicRoughness is false)."
            },
            {
              "name": "RoughnessSample",
              "anchor": "TerrainEvalLayerSample.RoughnessSample",
              "kind": "field",
              "doc": "RoughnessSample is the metallic-roughness texture G channel (defaults to 1 when HasMetallicRoughness is false)."
            },
            {
              "name": "HasMetallicRoughness",
              "anchor": "TerrainEvalLayerSample.HasMetallicRoughness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalSample",
              "anchor": "TerrainEvalLayerSample.NormalSample",
              "kind": "field",
              "doc": "NormalSample is the UNORM [0, 1] tangent-space normal sample (defaults to [0.5, 0.5, 1] when HasNormal is false)."
            },
            {
              "name": "HasNormal",
              "anchor": "TerrainEvalLayerSample.HasNormal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeightSample",
              "anchor": "TerrainEvalLayerSample.HeightSample",
              "kind": "field",
              "doc": "HeightSample is the normalized [0, 1] height-map sample (defaults to 0.5 when HasHeight is false)."
            },
            {
              "name": "HasHeight",
              "anchor": "TerrainEvalLayerSample.HasHeight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainEvalResult",
          "anchor": "TerrainEvalResult",
          "decl": "type TerrainEvalResult struct {\n\tWeights         [MaxTerrainLayers]float32\n\tTriplanarFactor float32\n\tBaseColor       math3d.Vec3\n\tNormal          math3d.Vec3\n\tMetallic        float32\n\tRoughness       float32\n\tLinear          math3d.Vec3\n\tSRGB            math3d.Vec3\n}",
          "doc": "TerrainEvalResult holds the CPU reference output from [EvaluateTerrainMaterial].\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 1483,
          "members": [
            {
              "name": "Weights",
              "anchor": "TerrainEvalResult.Weights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriplanarFactor",
              "anchor": "TerrainEvalResult.TriplanarFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColor",
              "anchor": "TerrainEvalResult.BaseColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "TerrainEvalResult.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Metallic",
              "anchor": "TerrainEvalResult.Metallic",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Roughness",
              "anchor": "TerrainEvalResult.Roughness",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Linear",
              "anchor": "TerrainEvalResult.Linear",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SRGB",
              "anchor": "TerrainEvalResult.SRGB",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "EvaluateTerrainMaterial",
              "anchor": "EvaluateTerrainMaterial",
              "decl": "func EvaluateTerrainMaterial(in TerrainEvalInput) TerrainEvalResult",
              "doc": "EvaluateTerrainMaterial is the pure-Go CPU reference matching\n[TerrainMaterialWGSL] and [TerrainMaterialShadowWGSL] so tests can verify\nGPU renders against an exact analytical reference.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 1578
            }
          ],
          "methods": []
        },
        {
          "name": "TerrainLayer",
          "anchor": "TerrainLayer",
          "decl": "type TerrainLayer struct {\n\tName                   string\n\tBaseColorFactor        [3]float32\n\tAlbedoImage            image.Image\n\tNormalImage            image.Image\n\tMetallicRoughnessImage image.Image\n\tHeightImage            image.Image\n\tRoughnessFactor        float32\n\tMetallicFactor         float32\n\tNormalScale            float32\n\tUVScale                math3d.Vec2\n\tHeightBias             float32\n}",
          "doc": "TerrainLayer describes one PBR surface layer inside a [TerrainMaterial].\n\nTexture channel conventions match glTF 2.0 plus an optional grayscale height\nmap:\n  - AlbedoImage: sRGB color texture multiplied by BaseColorFactor (defaults to solid white).\n  - NormalImage: linear tangent-space normal map (+X right/+U, +Y up/-V, +Z out; defaults to flat (128,128,255)).\n  - MetallicRoughnessImage: linear texture where G = roughness and B = metallic (defaults to white).\n  - HeightImage: linear grayscale height map used for height-based blending (defaults to 0.5).\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 68,
          "members": [
            {
              "name": "Name",
              "anchor": "TerrainLayer.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseColorFactor",
              "anchor": "TerrainLayer.BaseColorFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AlbedoImage",
              "anchor": "TerrainLayer.AlbedoImage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalImage",
              "anchor": "TerrainLayer.NormalImage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicRoughnessImage",
              "anchor": "TerrainLayer.MetallicRoughnessImage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeightImage",
              "anchor": "TerrainLayer.HeightImage",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RoughnessFactor",
              "anchor": "TerrainLayer.RoughnessFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MetallicFactor",
              "anchor": "TerrainLayer.MetallicFactor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalScale",
              "anchor": "TerrainLayer.NormalScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UVScale",
              "anchor": "TerrainLayer.UVScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeightBias",
              "anchor": "TerrainLayer.HeightBias",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultTerrainLayer",
              "anchor": "DefaultTerrainLayer",
              "decl": "func DefaultTerrainLayer(name string) TerrainLayer",
              "doc": "DefaultTerrainLayer returns a [TerrainLayer] initialized with natural\ndielectric outdoor terrain defaults: white linear tint, roughness 0.85,\nmetallic 0, normal scale 1, UV scale (1, 1), and height bias 0.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 85
            }
          ],
          "methods": []
        },
        {
          "name": "TerrainMaterial",
          "anchor": "TerrainMaterial",
          "decl": "type TerrainMaterial struct {\n\t// Model transforms terrain vertices into world space; the zero matrix defaults to identity.\n\tModel math3d.Mat4\n\t// Layers defines 1 to 8 PBR terrain material layers in splat-channel order:\n\t// layers 0..3 read SplatMap0 (R, G, B, A); layers 4..7 read SplatMap1 (R, G, B, A).\n\tLayers []TerrainLayer\n\t// SplatMap0 provides RGBA weights for layers 0..3. When nil, defaults to 1x1 (255, 0, 0, 0).\n\tSplatMap0 image.Image\n\t// SplatMap1 provides RGBA weights for layers 4..7. Required when len(Layers) > 4 unless nil defaults to 1x1 (0, 0, 0, 0).\n\tSplatMap1 image.Image\n\t// HeightBlendContrast controls height-based layer blending in [0, 1]: 0 uses\n\t// linear splat blending; higher values produce sharper transitions driven by\n\t// each layer's HeightImage and HeightBias.\n\tHeightBlendContrast float32\n\t// Triplanar configures slope-driven triplanar projection on steep terrain faces.\n\tTriplanar TerrainTriplanar\n\t// LayerTextureSize optionally sets the square texel width and height of the\n\t// GPU 2D texture arrays backing the layer maps. When 0, the size is inferred\n\t// from the first non-nil layer image (or 1 when all layers are solid colors).\n\t// Any layer image with different dimensions is bilinearly resampled to match.\n\tLayerTextureSize int\n}",
          "doc": "TerrainMaterial describes a splat-map-driven multi-layer PBR terrain surface\nsupporting up to 8 layers, optional height-based layer blending, and optional\ntriplanar projection on steep slopes.\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 156,
          "members": [
            {
              "name": "Model",
              "anchor": "TerrainMaterial.Model",
              "kind": "field",
              "doc": "Model transforms terrain vertices into world space; the zero matrix defaults to identity."
            },
            {
              "name": "Layers",
              "anchor": "TerrainMaterial.Layers",
              "kind": "field",
              "doc": "Layers defines 1 to 8 PBR terrain material layers in splat-channel order:\nlayers 0..3 read SplatMap0 (R, G, B, A); layers 4..7 read SplatMap1 (R, G, B, A)."
            },
            {
              "name": "SplatMap0",
              "anchor": "TerrainMaterial.SplatMap0",
              "kind": "field",
              "doc": "SplatMap0 provides RGBA weights for layers 0..3. When nil, defaults to 1x1 (255, 0, 0, 0)."
            },
            {
              "name": "SplatMap1",
              "anchor": "TerrainMaterial.SplatMap1",
              "kind": "field",
              "doc": "SplatMap1 provides RGBA weights for layers 4..7. Required when len(Layers) > 4 unless nil defaults to 1x1 (0, 0, 0, 0)."
            },
            {
              "name": "HeightBlendContrast",
              "anchor": "TerrainMaterial.HeightBlendContrast",
              "kind": "field",
              "doc": "HeightBlendContrast controls height-based layer blending in [0, 1]: 0 uses\nlinear splat blending; higher values produce sharper transitions driven by\neach layer's HeightImage and HeightBias."
            },
            {
              "name": "Triplanar",
              "anchor": "TerrainMaterial.Triplanar",
              "kind": "field",
              "doc": "Triplanar configures slope-driven triplanar projection on steep terrain faces."
            },
            {
              "name": "LayerTextureSize",
              "anchor": "TerrainMaterial.LayerTextureSize",
              "kind": "field",
              "doc": "LayerTextureSize optionally sets the square texel width and height of the\nGPU 2D texture arrays backing the layer maps. When 0, the size is inferred\nfrom the first non-nil layer image (or 1 when all layers are solid colors).\nAny layer image with different dimensions is bilinearly resampled to match."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "TerrainMaterialFromDoc",
              "anchor": "TerrainMaterialFromDoc",
              "decl": "func TerrainMaterialFromDoc(fsys fs.FS, doc *world3d.TerrainDoc) (TerrainMaterial, error)",
              "doc": "TerrainMaterialFromDoc loads a [TerrainMaterial] from doc and fsys, decoding\neither packed RGBA splat maps (doc.SplatMaps) or per-layer grayscale weight\nmaps (layers[i].WeightMap packed via [world3d.PackLayerWeightMaps]), optional\nmaterial resource files (layers[i].Material), and per-layer PBR textures.\n\nThe returned material is validated and ready for [NewGPUTerrainMaterial] or\n[EvaluateTerrainMaterial], blending layers identically to [world3d.Heightmap.LayerAt].\n",
              "file": "pkg/render3d/terrain_loader.go",
              "line": 35
            }
          ],
          "methods": [
            {
              "name": "AppendUniformData",
              "anchor": "TerrainMaterial.AppendUniformData",
              "recv": "TerrainMaterial",
              "decl": "func (m TerrainMaterial) AppendUniformData(dst []byte) []byte",
              "doc": "AppendUniformData appends m's 544-byte uniform block to dst without\nallocating when dst has sufficient spare capacity.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 344
            },
            {
              "name": "EncodeUniforms",
              "anchor": "TerrainMaterial.EncodeUniforms",
              "recv": "TerrainMaterial",
              "decl": "func (m TerrainMaterial) EncodeUniforms(dst []byte) []byte",
              "doc": "EncodeUniforms encodes m's uniform block into dst[:TerrainMaterialUniformSize]\nin the exact 16-byte-aligned layout declared by [TerrainMaterialBindingsWGSL].\nIt panics if len(dst) < TerrainMaterialUniformSize.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 277
            },
            {
              "name": "Validate",
              "anchor": "TerrainMaterial.Validate",
              "recv": "TerrainMaterial",
              "decl": "func (m TerrainMaterial) Validate() error",
              "doc": "Validate checks that every field of m is finite and within valid ranges.\nEvery error wraps [ErrInvalidTerrainMaterial].\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 181
            }
          ]
        },
        {
          "name": "TerrainMaterialUpload",
          "anchor": "TerrainMaterialUpload",
          "decl": "type TerrainMaterialUpload struct {\n\t// Label prefixes GPU resource debug labels.\n\tLabel string\n\t// Mipmaps generates CPU mip chains for the layer texture arrays.\n\tMipmaps bool\n\t// Retained keeps CPU shadow copies of every GPU buffer, texture, sampler, and bind group so NSGo restores them across device loss.\n\tRetained bool\n}",
          "doc": "TerrainMaterialUpload configures [NewGPUTerrainMaterial].\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 381,
          "members": [
            {
              "name": "Label",
              "anchor": "TerrainMaterialUpload.Label",
              "kind": "field",
              "doc": "Label prefixes GPU resource debug labels."
            },
            {
              "name": "Mipmaps",
              "anchor": "TerrainMaterialUpload.Mipmaps",
              "kind": "field",
              "doc": "Mipmaps generates CPU mip chains for the layer texture arrays."
            },
            {
              "name": "Retained",
              "anchor": "TerrainMaterialUpload.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU shadow copies of every GPU buffer, texture, sampler, and bind group so NSGo restores them across device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainPipelineOptions",
          "anchor": "TerrainPipelineOptions",
          "decl": "type TerrainPipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools.\n\tLabel string\n\t// ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat().\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing and depth writes when non-zero.\n\tDepthFormat gpu.TextureFormat\n\t// DoubleSided disables back-face culling when true.\n\tDoubleSided bool\n\t// ShadowLayout, when set, compiles [TerrainMaterialShadowWGSL] with a [DirectionalShadowMap] at [ShadowGroup] (group 3).\n\tShadowLayout *gpu.BindGroupLayout\n\t// CSMLayout, when set, compiles [TerrainMaterialCSMWGSL] with a [CascadedShadowMap] at [CSMGroup] (group 3).\n\tCSMLayout *gpu.BindGroupLayout\n\t// FogLayout, when set, compiles [TerrainMaterialFogWGSL] with a [GPUFogBuffer] at [FogGroup] (group 3).\n\tFogLayout *gpu.BindGroupLayout\n\t// LinearOutput skips sRGB encoding and writes linear radiance directly, for drawing into an [HDRTarget] resolved by [ToneMapPass].\n\tLinearOutput bool\n}",
          "doc": "TerrainPipelineOptions configures [NewTerrainMaterialPipeline].\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 883,
          "members": [
            {
              "name": "Label",
              "anchor": "TerrainPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools."
            },
            {
              "name": "ColorFormat",
              "anchor": "TerrainPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat()."
            },
            {
              "name": "DepthFormat",
              "anchor": "TerrainPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing and depth writes when non-zero."
            },
            {
              "name": "DoubleSided",
              "anchor": "TerrainPipelineOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables back-face culling when true."
            },
            {
              "name": "ShadowLayout",
              "anchor": "TerrainPipelineOptions.ShadowLayout",
              "kind": "field",
              "doc": "ShadowLayout, when set, compiles [TerrainMaterialShadowWGSL] with a [DirectionalShadowMap] at [ShadowGroup] (group 3)."
            },
            {
              "name": "CSMLayout",
              "anchor": "TerrainPipelineOptions.CSMLayout",
              "kind": "field",
              "doc": "CSMLayout, when set, compiles [TerrainMaterialCSMWGSL] with a [CascadedShadowMap] at [CSMGroup] (group 3)."
            },
            {
              "name": "FogLayout",
              "anchor": "TerrainPipelineOptions.FogLayout",
              "kind": "field",
              "doc": "FogLayout, when set, compiles [TerrainMaterialFogWGSL] with a [GPUFogBuffer] at [FogGroup] (group 3)."
            },
            {
              "name": "LinearOutput",
              "anchor": "TerrainPipelineOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput skips sRGB encoding and writes linear radiance directly, for drawing into an [HDRTarget] resolved by [ToneMapPass]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainTriplanar",
          "anchor": "TerrainTriplanar",
          "decl": "type TerrainTriplanar struct {\n\t// Enabled activates triplanar projection when abs(world_normal.y) drops below SlopeThreshold.\n\tEnabled bool\n\t// SlopeThreshold is the world normal Y threshold in [0, 1] below which triplanar mapping blends in (0 defaults to 0.70, ~45°).\n\tSlopeThreshold float32\n\t// SlopeBlend is the transition width in [0, 1] over which planar UVs cross-fade into triplanar UVs (0 defaults to 0.15).\n\tSlopeBlend float32\n\t// Sharpness controls triplanar axis blend sharpness (> 0; 0 defaults to 4.0).\n\tSharpness float32\n\t// Scale is the world-space repeat rate before per-layer UVScale (> 0; 0 defaults to 0.25).\n\tScale float32\n}",
          "doc": "TerrainTriplanar configures slope-driven triplanar projection on steep\nterrain faces to eliminate UV stretching on cliffs.\n",
          "file": "pkg/render3d/terrain_material.go",
          "line": 111,
          "members": [
            {
              "name": "Enabled",
              "anchor": "TerrainTriplanar.Enabled",
              "kind": "field",
              "doc": "Enabled activates triplanar projection when abs(world_normal.y) drops below SlopeThreshold."
            },
            {
              "name": "SlopeThreshold",
              "anchor": "TerrainTriplanar.SlopeThreshold",
              "kind": "field",
              "doc": "SlopeThreshold is the world normal Y threshold in [0, 1] below which triplanar mapping blends in (0 defaults to 0.70, ~45°)."
            },
            {
              "name": "SlopeBlend",
              "anchor": "TerrainTriplanar.SlopeBlend",
              "kind": "field",
              "doc": "SlopeBlend is the transition width in [0, 1] over which planar UVs cross-fade into triplanar UVs (0 defaults to 0.15)."
            },
            {
              "name": "Sharpness",
              "anchor": "TerrainTriplanar.Sharpness",
              "kind": "field",
              "doc": "Sharpness controls triplanar axis blend sharpness (> 0; 0 defaults to 4.0)."
            },
            {
              "name": "Scale",
              "anchor": "TerrainTriplanar.Scale",
              "kind": "field",
              "doc": "Scale is the world-space repeat rate before per-layer UVScale (> 0; 0 defaults to 0.25)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultTerrainTriplanar",
              "anchor": "DefaultTerrainTriplanar",
              "decl": "func DefaultTerrainTriplanar() TerrainTriplanar",
              "doc": "DefaultTerrainTriplanar returns recommended triplanar projection settings for\ncliffs steeper than ~45°.\n",
              "file": "pkg/render3d/terrain_material.go",
              "line": 126
            }
          ],
          "methods": []
        },
        {
          "name": "TextureMipData",
          "anchor": "TextureMipData",
          "decl": "type TextureMipData struct {\n\tMipLevel    uint32\n\tArrayLayer  uint32\n\tData        []byte\n\tBytesPerRow uint32 // 0 means tightly packed for the mip width and format\n}",
          "doc": "TextureMipData is one mip level (and optional array layer / cubemap face) of texel or compressed block bytes for [RawTextureUpload].\n",
          "file": "pkg/render3d/uploader.go",
          "line": 112,
          "members": [
            {
              "name": "MipLevel",
              "anchor": "TextureMipData.MipLevel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ArrayLayer",
              "anchor": "TextureMipData.ArrayLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "TextureMipData.Data",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BytesPerRow",
              "anchor": "TextureMipData.BytesPerRow",
              "kind": "field",
              "doc": "0 means tightly packed for the mip width and format"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TextureUpload",
          "anchor": "TextureUpload",
          "decl": "type TextureUpload struct {\n\t// Label names the texture in GPU capture tools.\n\tLabel string\n\t// SRGB stores RGBA8 channels in [gpu.FormatRGBA8UnormSRGB] so the GPU decodes RGB to linear light when sampling. Set it for color textures (base color / albedo, emissive); leave it false for data textures (normal, metallic-roughness, occlusion).\n\tSRGB bool\n\t// Mipmaps builds a CPU mipmap chain (box-filtered in linear light when SRGB is true) and uploads every level, so mipmapping works on every GPU backend including those without GPU mipmap generation.\n\tMipmaps bool\n\t// MaxMipLevels caps the mipmap chain when Mipmaps is true; zero generates the full chain down to 1x1.\n\tMaxMipLevels uint32\n\t// Retained keeps a CPU copy of the texture and its uploaded mip levels so NSGo recreates them after a device loss (see [gpu.TextureDesc].Retained).\n\tRetained bool\n}",
          "doc": "TextureUpload configures [UploadTexture] and [UploadTexturePixels].\n",
          "file": "pkg/render3d/texture.go",
          "line": 147,
          "members": [
            {
              "name": "Label",
              "anchor": "TextureUpload.Label",
              "kind": "field",
              "doc": "Label names the texture in GPU capture tools."
            },
            {
              "name": "SRGB",
              "anchor": "TextureUpload.SRGB",
              "kind": "field",
              "doc": "SRGB stores RGBA8 channels in [gpu.FormatRGBA8UnormSRGB] so the GPU decodes RGB to linear light when sampling. Set it for color textures (base color / albedo, emissive); leave it false for data textures (normal, metallic-roughness, occlusion)."
            },
            {
              "name": "Mipmaps",
              "anchor": "TextureUpload.Mipmaps",
              "kind": "field",
              "doc": "Mipmaps builds a CPU mipmap chain (box-filtered in linear light when SRGB is true) and uploads every level, so mipmapping works on every GPU backend including those without GPU mipmap generation."
            },
            {
              "name": "MaxMipLevels",
              "anchor": "TextureUpload.MaxMipLevels",
              "kind": "field",
              "doc": "MaxMipLevels caps the mipmap chain when Mipmaps is true; zero generates the full chain down to 1x1."
            },
            {
              "name": "Retained",
              "anchor": "TextureUpload.Retained",
              "kind": "field",
              "doc": "Retained keeps a CPU copy of the texture and its uploaded mip levels so NSGo recreates them after a device loss (see [gpu.TextureDesc].Retained)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToneMapOperator",
          "anchor": "ToneMapOperator",
          "decl": "type ToneMapOperator uint8",
          "doc": "ToneMapOperator selects the HDR-to-LDR tone mapping curve applied by [ApplyToneMap] and [ToneMapPass] (#250).\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 28,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ToneMapNone",
                  "anchor": "ToneMapNone"
                },
                {
                  "name": "ToneMapReinhard",
                  "anchor": "ToneMapReinhard"
                },
                {
                  "name": "ToneMapACES",
                  "anchor": "ToneMapACES"
                },
                {
                  "name": "ToneMapNeutral",
                  "anchor": "ToneMapNeutral"
                },
                {
                  "name": "ToneMapAgX",
                  "anchor": "ToneMapAgX"
                }
              ],
              "decl": "const (\n\t// ToneMapNone applies exposure only and clamps linear RGB to [0, 1] with no highlight roll-off.\n\tToneMapNone ToneMapOperator = iota\n\t// ToneMapReinhard applies per-channel Reinhard compression: c / (1 + c).\n\tToneMapReinhard\n\t// ToneMapACES applies Krzysztof Narkowicz's fitted ACES filmic curve: (c*(2.51*c + 0.03)) / (c*(2.43*c + 0.59) + 0.14).\n\tToneMapACES\n\t// ToneMapNeutral applies the Khronos PBR Neutral tone mapper, preserving mid-tone hues and smoothly desaturating bright highlights toward white.\n\tToneMapNeutral\n\t// ToneMapAgX applies Troy Sobotka's AgX default look (inset matrix, log2 range mapping, 6th-order polynomial sigmoid, outset matrix, and display linearization), avoiding hue skew in bright saturated highlights.\n\tToneMapAgX\n)",
              "doc": "",
              "file": "pkg/render3d/tonemap.go",
              "line": 30
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ToneMapOperator.String",
              "recv": "ToneMapOperator",
              "decl": "func (op ToneMapOperator) String() string",
              "doc": "String returns the lower-case name of op, or \"unknown\" for out-of-range values.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 49
            },
            {
              "name": "Valid",
              "anchor": "ToneMapOperator.Valid",
              "recv": "ToneMapOperator",
              "decl": "func (op ToneMapOperator) Valid() bool",
              "doc": "Valid reports whether op is a known tone mapping operator.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 44
            }
          ]
        },
        {
          "name": "ToneMapOptions",
          "anchor": "ToneMapOptions",
          "decl": "type ToneMapOptions struct {\n\t// Operator selects the tone mapping curve. The zero value is [ToneMapNone]; use [DefaultToneMapOptions] for the recommended [ToneMapACES] preset.\n\tOperator ToneMapOperator\n\t// Exposure is the linear exposure multiplier applied before tone mapping. Zero renders black, so a fade to black can interpolate it down to 0; negative, NaN and infinite values are treated as 1.0 (0 EV). Compute it from photographic stops with [ExposureFromEV], and start from [DefaultToneMapOptions] so the zero value of this field does not leave the image black.\n\tExposure float32\n\t// Gamma selects the display transfer function when LinearOutput is false: zero (or non-positive / non-finite) applies the exact IEC 61966-2-1 linear-to-sRGB OETF; a positive finite value (for example 2.2) applies power-law encoding pow(c, 1/Gamma).\n\tGamma float32\n\t// LinearOutput skips display OETF encoding and emits tone-mapped linear RGB in [0, 1]. [ToneMapPass] automatically enables linear output when its target format is sRGB (TargetFormat.IsSRGB()) so GPU hardware encodes linear-to-sRGB exactly once without double gamma.\n\tLinearOutput bool\n}",
          "doc": "ToneMapOptions configures exposure, tone mapping, and display gamma encoding for [ApplyToneMap], [AppendToneMapUniforms], and [ToneMapPass] (#250).\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 67,
          "members": [
            {
              "name": "Operator",
              "anchor": "ToneMapOptions.Operator",
              "kind": "field",
              "doc": "Operator selects the tone mapping curve. The zero value is [ToneMapNone]; use [DefaultToneMapOptions] for the recommended [ToneMapACES] preset."
            },
            {
              "name": "Exposure",
              "anchor": "ToneMapOptions.Exposure",
              "kind": "field",
              "doc": "Exposure is the linear exposure multiplier applied before tone mapping. Zero renders black, so a fade to black can interpolate it down to 0; negative, NaN and infinite values are treated as 1.0 (0 EV). Compute it from photographic stops with [ExposureFromEV], and start from [DefaultToneMapOptions] so the zero value of this field does not leave the image black."
            },
            {
              "name": "Gamma",
              "anchor": "ToneMapOptions.Gamma",
              "kind": "field",
              "doc": "Gamma selects the display transfer function when LinearOutput is false: zero (or non-positive / non-finite) applies the exact IEC 61966-2-1 linear-to-sRGB OETF; a positive finite value (for example 2.2) applies power-law encoding pow(c, 1/Gamma)."
            },
            {
              "name": "LinearOutput",
              "anchor": "ToneMapOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput skips display OETF encoding and emits tone-mapped linear RGB in [0, 1]. [ToneMapPass] automatically enables linear output when its target format is sRGB (TargetFormat.IsSRGB()) so GPU hardware encodes linear-to-sRGB exactly once without double gamma."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultToneMapOptions",
              "anchor": "DefaultToneMapOptions",
              "decl": "func DefaultToneMapOptions() ToneMapOptions",
              "doc": "DefaultToneMapOptions returns the recommended HDR tone-mapping defaults: [ToneMapACES], exposure 1.0 (0 EV), and exact sRGB encoding (Gamma 0).\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 79
            }
          ],
          "methods": [
            {
              "name": "Normalized",
              "anchor": "ToneMapOptions.Normalized",
              "recv": "ToneMapOptions",
              "decl": "func (o ToneMapOptions) Normalized() ToneMapOptions",
              "doc": "Normalized returns a copy of o with invalid fields canonicalized identically for CPU and GPU evaluation: a negative, NaN or infinite Exposure becomes 1.0 (zero stays black), a non-positive or non-finite Gamma becomes 0 (exact sRGB), and unknown Operator values become [ToneMapNone].\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 87
            }
          ]
        },
        {
          "name": "ToneMapPass",
          "anchor": "ToneMapPass",
          "decl": "type ToneMapPass struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ToneMapPass draws a full-screen triangle that samples a linear HDR texture, applies exposure and a configurable [ToneMapOperator], and encodes to sRGB or power-law gamma for display (#250).\n\nA pass holds one uniform block, and NSGo applies [gpu.Device.WriteBuffer] ahead of the commands of the submission it belongs to, so every draw one ToneMapPass records into a submission uses the options of its last [ToneMapPass.Draw]. To tone-map several views with different options in one frame (split screen, a picture-in-picture camera, a photo-mode preview), create one ToneMapPass per view.\n\n[AppendToneMapUniforms] encodes the options without allocating, and the pass reuses its bind group while the source texture stays the same; each draw still uploads the [ToneMapUniformSize]-byte block with WriteBuffer, which copies it. When created with Retained: true (along with a retained [HDRTarget]), the pass's GPU resources survive a device loss as [ToneMapPassDesc].Retained describes.\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 898,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewToneMapPass",
              "anchor": "NewToneMapPass",
              "decl": "func NewToneMapPass(cx *core.Scope, dev *gpu.Device, desc ToneMapPassDesc) (*ToneMapPass, error)",
              "doc": "NewToneMapPass compiles [ToneMapWGSL] (cached process-wide) and creates the uniform buffer, sampler, bind group layout, and render pipeline on dev scoped to cx (nil for manual closing in headless tests).\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 916
            }
          ],
          "methods": [
            {
              "name": "BindGroupFor",
              "anchor": "ToneMapPass.BindGroupFor",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) BindGroupFor(dev *gpu.Device, src *gpu.Texture) (*gpu.BindGroup, error)",
              "doc": "BindGroupFor returns a bind group pairing src with the pass's sampler and uniform buffer, caching it for steady-state reuse when src has not changed.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1102
            },
            {
              "name": "Close",
              "anchor": "ToneMapPass.Close",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) Close() error",
              "doc": "Close releases the pass's GPU resources. It is safe to call on nil or more than once.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1190
            },
            {
              "name": "Draw",
              "anchor": "ToneMapPass.Draw",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) Draw(pass *gpu.RenderPass, dev *gpu.Device, src *gpu.Texture, opts ToneMapOptions) error",
              "doc": "Draw uploads opts, binds src (reusing the cached bind group in steady state), and records the full-screen tone-mapping triangle into pass. The options apply to every draw of this pass in the same submission (see [ToneMapPass]).\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1139
            },
            {
              "name": "DrawDynamicResolution",
              "anchor": "ToneMapPass.DrawDynamicResolution",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) DrawDynamicResolution(pass *gpu.RenderPass, dev *gpu.Device, src *DynamicResolutionTarget, opts ToneMapOptions) error",
              "doc": "DrawDynamicResolution tone-maps the active scaled sub-viewport of a [DynamicResolutionTarget] (created with an HDR ColorFormat such as [PreferredHDRFormat]) over the whole of pass, upscaling it with the pass's sampler in the same draw. Call it after [DynamicResolutionTarget.Begin3D]'s pass ends, in place of [DynamicResolutionTarget.Upscale]; the upscaler's sharpen filter is not applied. Like the upscaler, it clamps the sampled coordinates half a texel inside the scaled region so the target's unused texels never bleed in.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1167
            },
            {
              "name": "DrawTarget",
              "anchor": "ToneMapPass.DrawTarget",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) DrawTarget(pass *gpu.RenderPass, dev *gpu.Device, src *HDRTarget, opts ToneMapOptions) error",
              "doc": "DrawTarget is [ToneMapPass.Draw] for an [*HDRTarget], sampling src.ColorTexture().\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1159
            },
            {
              "name": "Layout",
              "anchor": "ToneMapPass.Layout",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout at [ToneMapGroup].\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1030
            },
            {
              "name": "Pipeline",
              "anchor": "ToneMapPass.Pipeline",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) Pipeline() *gpu.Pipeline",
              "doc": "Pipeline returns the pass's tone-mapping render pipeline.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1022
            },
            {
              "name": "Sampler",
              "anchor": "ToneMapPass.Sampler",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) Sampler() *gpu.Sampler",
              "doc": "Sampler returns the sampler bound for reading the HDR texture.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1038
            },
            {
              "name": "SetDevice",
              "anchor": "ToneMapPass.SetDevice",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) SetDevice(dev *gpu.Device)",
              "doc": "SetDevice updates the device reference used when a nil device is passed to [ToneMapPass.Write], [ToneMapPass.BindGroupFor], or [ToneMapPass.Draw] (for example from OnReady after a retained device restoration).\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1067
            },
            {
              "name": "TargetFormat",
              "anchor": "ToneMapPass.TargetFormat",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) TargetFormat() gpu.TextureFormat",
              "doc": "TargetFormat returns the color format the pass renders into.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1054
            },
            {
              "name": "UniformBuffer",
              "anchor": "ToneMapPass.UniformBuffer",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) UniformBuffer() *gpu.Buffer",
              "doc": "UniformBuffer returns the [ToneMapUniformSize]-byte uniform buffer.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1046
            },
            {
              "name": "Valid",
              "anchor": "ToneMapPass.Valid",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) Valid() bool",
              "doc": "Valid reports whether the pass's GPU resources are open and live.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1062
            },
            {
              "name": "Write",
              "anchor": "ToneMapPass.Write",
              "recv": "*ToneMapPass",
              "decl": "func (p *ToneMapPass) Write(dev *gpu.Device, opts ToneMapOptions)",
              "doc": "Write uploads opts to the pass's uniform buffer without allocating into the caller's heap (encodes into internal scratch storage). Pass dev (such as frame.Device()) after a device restore, or nil to use the pass's stored device.\n",
              "file": "pkg/render3d/tonemap.go",
              "line": 1083
            }
          ]
        },
        {
          "name": "ToneMapPassDesc",
          "anchor": "ToneMapPassDesc",
          "decl": "type ToneMapPassDesc struct {\n\t// Label names the pass's pipeline, sampler, uniform buffer, and bind group in GPU capture tools.\n\tLabel string\n\t// TargetFormat is the color format of the render pass that [ToneMapPass] draws into. [gpu.FormatUndefined] defaults to dev.SurfaceFormat(). When TargetFormat.IsSRGB() is true, [ToneMapPass] automatically outputs linear tone-mapped RGB so the hardware sRGB target encodes linear-to-sRGB once without double gamma.\n\tTargetFormat gpu.TextureFormat\n\t// DepthFormat optionally matches a render pass with a depth attachment; depth testing and depth writes stay disabled.\n\tDepthFormat gpu.TextureFormat\n\t// NearestFilter selects [gpu.FilterNearest] instead of [gpu.FilterLinear] when sampling the HDR source texture.\n\tNearestFilter bool\n\t// Retained opts the uniform buffer, sampler, bind group layout and pipeline into automatic recreation after a GPU device loss. Bind groups have no retained form; the pass rebuilds its cached one on the next draw once the old one is no longer valid.\n\tRetained bool\n}",
          "doc": "ToneMapPassDesc configures [NewToneMapPass].\n",
          "file": "pkg/render3d/tonemap.go",
          "line": 880,
          "members": [
            {
              "name": "Label",
              "anchor": "ToneMapPassDesc.Label",
              "kind": "field",
              "doc": "Label names the pass's pipeline, sampler, uniform buffer, and bind group in GPU capture tools."
            },
            {
              "name": "TargetFormat",
              "anchor": "ToneMapPassDesc.TargetFormat",
              "kind": "field",
              "doc": "TargetFormat is the color format of the render pass that [ToneMapPass] draws into. [gpu.FormatUndefined] defaults to dev.SurfaceFormat(). When TargetFormat.IsSRGB() is true, [ToneMapPass] automatically outputs linear tone-mapped RGB so the hardware sRGB target encodes linear-to-sRGB once without double gamma."
            },
            {
              "name": "DepthFormat",
              "anchor": "ToneMapPassDesc.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat optionally matches a render pass with a depth attachment; depth testing and depth writes stay disabled."
            },
            {
              "name": "NearestFilter",
              "anchor": "ToneMapPassDesc.NearestFilter",
              "kind": "field",
              "doc": "NearestFilter selects [gpu.FilterNearest] instead of [gpu.FilterLinear] when sampling the HDR source texture."
            },
            {
              "name": "Retained",
              "anchor": "ToneMapPassDesc.Retained",
              "kind": "field",
              "doc": "Retained opts the uniform buffer, sampler, bind group layout and pipeline into automatic recreation after a GPU device loss. Bind groups have no retained form; the pass rebuilds its cached one on the next draw once the old one is no longer valid."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToonDraw",
          "anchor": "ToonDraw",
          "decl": "type ToonDraw struct {\n\t// Mesh is the main surface geometry drawn in the cel-shaded pass (and in the outline pass when OutlineMesh is nil).\n\tMesh *GPUMesh\n\t// OutlineMesh is an optional mesh (for example built with [SmoothOutlineNormals]) drawn in the inverted-hull outline pass. When nil, Mesh is used.\n\tOutlineMesh *GPUMesh\n\t// Material supplies the cel-shading and outline parameters.\n\tMaterial *GPUToonMaterial\n\t// Transform is the object's world-space model matrix. A zero matrix is treated as [math3d.Mat4Identity].\n\tTransform math3d.Mat4\n}",
          "doc": "ToonDraw describes one cel-shaded object submitted to [ToonRenderer.Draw].\n",
          "file": "pkg/render3d/toon.go",
          "line": 1169,
          "members": [
            {
              "name": "Mesh",
              "anchor": "ToonDraw.Mesh",
              "kind": "field",
              "doc": "Mesh is the main surface geometry drawn in the cel-shaded pass (and in the outline pass when OutlineMesh is nil)."
            },
            {
              "name": "OutlineMesh",
              "anchor": "ToonDraw.OutlineMesh",
              "kind": "field",
              "doc": "OutlineMesh is an optional mesh (for example built with [SmoothOutlineNormals]) drawn in the inverted-hull outline pass. When nil, Mesh is used."
            },
            {
              "name": "Material",
              "anchor": "ToonDraw.Material",
              "kind": "field",
              "doc": "Material supplies the cel-shading and outline parameters."
            },
            {
              "name": "Transform",
              "anchor": "ToonDraw.Transform",
              "kind": "field",
              "doc": "Transform is the object's world-space model matrix. A zero matrix is treated as [math3d.Mat4Identity]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToonEvalInput",
          "anchor": "ToonEvalInput",
          "decl": "type ToonEvalInput struct {\n\tNormal math3d.Vec3\n\t// ToLight points from the surface toward the key light, like [ToonSceneUniform.ToLight].\n\tToLight      math3d.Vec3\n\tViewDir      math3d.Vec3\n\tLightColor   math3d.Vec3\n\tAmbientColor math3d.Vec3\n\t// BaseSample is an optional linear RGBA sample from BaseColorTexture. Nil means opaque white {1, 1, 1, 1}.\n\tBaseSample *[4]float32\n\t// RampSample is an optional linear RGB sample from RampTexture. When non-nil, it replaces analytical band quantization.\n\tRampSample *[3]float32\n}",
          "doc": "ToonEvalInput supplies the surface normal, the directions toward the key light and the viewer, the light radiance, and optional texture samples for [EvaluateToon].\n",
          "file": "pkg/render3d/toon.go",
          "line": 596,
          "members": [
            {
              "name": "Normal",
              "anchor": "ToonEvalInput.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToLight",
              "anchor": "ToonEvalInput.ToLight",
              "kind": "field",
              "doc": "ToLight points from the surface toward the key light, like [ToonSceneUniform.ToLight]."
            },
            {
              "name": "ViewDir",
              "anchor": "ToonEvalInput.ViewDir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LightColor",
              "anchor": "ToonEvalInput.LightColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AmbientColor",
              "anchor": "ToonEvalInput.AmbientColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BaseSample",
              "anchor": "ToonEvalInput.BaseSample",
              "kind": "field",
              "doc": "BaseSample is an optional linear RGBA sample from BaseColorTexture. Nil means opaque white {1, 1, 1, 1}."
            },
            {
              "name": "RampSample",
              "anchor": "ToonEvalInput.RampSample",
              "kind": "field",
              "doc": "RampSample is an optional linear RGB sample from RampTexture. When non-nil, it replaces analytical band quantization."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToonLight",
          "anchor": "ToonLight",
          "decl": "type ToonLight struct {\n\tKey     DirectionalLight\n\tAmbient AmbientLight\n}",
          "doc": "ToonLight is the light a toon-shaded draw receives: one directional key light, whose N·L is quantized into bands, plus an ambient fill added to every band. Both use the same types and conventions as a [LightRig]: Key.Direction is the direction the light's rays travel, and an Intensity of 0 turns a light off.\n",
          "file": "pkg/render3d/toon.go",
          "line": 463,
          "members": [
            {
              "name": "Key",
              "anchor": "ToonLight.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Ambient",
              "anchor": "ToonLight.Ambient",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultToonLight",
              "anchor": "DefaultToonLight",
              "decl": "func DefaultToonLight() ToonLight",
              "doc": "DefaultToonLight returns a white key light shining down from the upper front right with a dim cool ambient fill.\n",
              "file": "pkg/render3d/toon.go",
              "line": 469
            },
            {
              "name": "ToonLightFromRig",
              "anchor": "ToonLightFromRig",
              "decl": "func ToonLightFromRig(rig LightRig) (ToonLight, error)",
              "doc": "ToonLightFromRig returns the toon light for a scene lit by rig: its first directional light as the key light and its ambient fill. Point lights and further directional lights are not used. It returns an error wrapping [ErrInvalidLight] when rig is invalid or has no directional light.\n",
              "file": "pkg/render3d/toon.go",
              "line": 481
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "ToonLight.Validate",
              "recv": "ToonLight",
              "decl": "func (l ToonLight) Validate() error",
              "doc": "Validate reports whether the key light has a finite non-zero direction and both lights have finite non-negative colors and intensities. Every error wraps [ErrInvalidLight].\n",
              "file": "pkg/render3d/toon.go",
              "line": 492
            }
          ]
        },
        {
          "name": "ToonMaterial",
          "anchor": "ToonMaterial",
          "decl": "type ToonMaterial struct {\n\t// BaseColorFactor is the linear RGBA base surface color multiplier, as in [Material]. Its alpha is written to the output alpha, which only a pipeline built with [NewToonPipeline] and a [ToonPipelineOptions.Blend] blends with: [ToonRenderer] draws opaque.\n\tBaseColorFactor [4]float32\n\t// BaseColorTexture is an optional 2D albedo texture multiplied with BaseColorFactor. When nil, [MaterialDefaults.WhiteSRGB] is bound.\n\tBaseColorTexture *GPUTexture\n\t// BaseColorSampler is the sampler for BaseColorTexture. When nil, [MaterialDefaults.Sampler] (linear repeat) is bound.\n\tBaseColorSampler *GPUSampler\n\n\t// ShadowColor is the linear RGB tint applied to the darkest diffuse band.\n\tShadowColor [3]float32\n\t// Bands is the number of discrete diffuse cel-shading bands in [MinToonBands, MaxToonBands] (2..8). Zero defaults to [DefaultToonBands] (3). Ignored when RampTexture is set.\n\tBands int\n\t// BandSmoothness controls transition softness between diffuse bands in [0, 0.5]. Zero produces crisp hard cel steps; small positive values anti-alias band boundaries.\n\tBandSmoothness float32\n\n\t// RampTexture is an optional 1D horizontal cel-ramp texture (height >= 1) sampled at u = clamp(N·L, 0, 1). When non-nil, its RGB value replaces analytical band quantization.\n\tRampTexture *GPUTexture\n\t// RampSampler is the sampler for RampTexture. When nil and RampTexture is set, the material creates a linear-clamp sampler so the ramp's ends do not wrap into each other.\n\tRampSampler *GPUSampler\n\n\t// SpecularColor is the linear RGB color of the stepped cel specular highlight. Zero disables specular highlights.\n\tSpecularColor [3]float32\n\t// SpecularPower is the Blinn-Phong shininess exponent. Zero defaults to [DefaultToonSpecularPower] (32).\n\tSpecularPower float32\n\t// SpecularThreshold is the step cutoff in [0, 1] applied to pow(N·H, SpecularPower).\n\tSpecularThreshold float32\n\t// SpecularSmoothness controls specular edge softness in [0, 0.5]. Zero gives a hard cel highlight edge.\n\tSpecularSmoothness float32\n\n\t// RimColor is the linear RGB color of the Fresnel rim highlight. Zero disables rim highlights.\n\tRimColor [3]float32\n\t// RimThreshold is the Fresnel cutoff in [0, 1] applied to (1 - N·V); higher values produce a thinner silhouette rim.\n\tRimThreshold float32\n\t// RimSmoothness controls rim edge softness in [0, 0.5]. Zero gives a crisp rim step.\n\tRimSmoothness float32\n\n\t// OutlineColor is the linear RGBA color of the inverted-hull outline pass. An alpha of 0 turns the outline off; other alpha values only blend in a pipeline built with [NewToonOutlinePipeline] and a [ToonPipelineOptions.Blend], since [ToonRenderer] draws opaque.\n\tOutlineColor [4]float32\n\t// OutlineWidth is the normal-extrusion distance of the inverted-hull outline pass: in world units, or with OutlineClipSpace in NDC y units, so the outline is OutlineWidth × viewport height / 2 pixels thick. Zero disables the outline pass.\n\tOutlineWidth float32\n\t// OutlineClipSpace extrudes outline vertices along their projected normal on screen instead of in world space, giving the same thickness in pixels at every distance and in every direction. It reads the aspect ratio from the camera's projection, which must match the viewport's.\n\tOutlineClipSpace bool\n}",
          "doc": "ToonMaterial defines cel/toon shading parameters: banded diffuse lighting (or a 1D ramp texture), hard stepped specular highlights, Fresnel rim lighting, and inverted-hull outline styling (#262).\n",
          "file": "pkg/render3d/toon.go",
          "line": 269,
          "members": [
            {
              "name": "BaseColorFactor",
              "anchor": "ToonMaterial.BaseColorFactor",
              "kind": "field",
              "doc": "BaseColorFactor is the linear RGBA base surface color multiplier, as in [Material]. Its alpha is written to the output alpha, which only a pipeline built with [NewToonPipeline] and a [ToonPipelineOptions.Blend] blends with: [ToonRenderer] draws opaque."
            },
            {
              "name": "BaseColorTexture",
              "anchor": "ToonMaterial.BaseColorTexture",
              "kind": "field",
              "doc": "BaseColorTexture is an optional 2D albedo texture multiplied with BaseColorFactor. When nil, [MaterialDefaults.WhiteSRGB] is bound."
            },
            {
              "name": "BaseColorSampler",
              "anchor": "ToonMaterial.BaseColorSampler",
              "kind": "field",
              "doc": "BaseColorSampler is the sampler for BaseColorTexture. When nil, [MaterialDefaults.Sampler] (linear repeat) is bound."
            },
            {
              "name": "ShadowColor",
              "anchor": "ToonMaterial.ShadowColor",
              "kind": "field",
              "doc": "ShadowColor is the linear RGB tint applied to the darkest diffuse band."
            },
            {
              "name": "Bands",
              "anchor": "ToonMaterial.Bands",
              "kind": "field",
              "doc": "Bands is the number of discrete diffuse cel-shading bands in [MinToonBands, MaxToonBands] (2..8). Zero defaults to [DefaultToonBands] (3). Ignored when RampTexture is set."
            },
            {
              "name": "BandSmoothness",
              "anchor": "ToonMaterial.BandSmoothness",
              "kind": "field",
              "doc": "BandSmoothness controls transition softness between diffuse bands in [0, 0.5]. Zero produces crisp hard cel steps; small positive values anti-alias band boundaries."
            },
            {
              "name": "RampTexture",
              "anchor": "ToonMaterial.RampTexture",
              "kind": "field",
              "doc": "RampTexture is an optional 1D horizontal cel-ramp texture (height >= 1) sampled at u = clamp(N·L, 0, 1). When non-nil, its RGB value replaces analytical band quantization."
            },
            {
              "name": "RampSampler",
              "anchor": "ToonMaterial.RampSampler",
              "kind": "field",
              "doc": "RampSampler is the sampler for RampTexture. When nil and RampTexture is set, the material creates a linear-clamp sampler so the ramp's ends do not wrap into each other."
            },
            {
              "name": "SpecularColor",
              "anchor": "ToonMaterial.SpecularColor",
              "kind": "field",
              "doc": "SpecularColor is the linear RGB color of the stepped cel specular highlight. Zero disables specular highlights."
            },
            {
              "name": "SpecularPower",
              "anchor": "ToonMaterial.SpecularPower",
              "kind": "field",
              "doc": "SpecularPower is the Blinn-Phong shininess exponent. Zero defaults to [DefaultToonSpecularPower] (32)."
            },
            {
              "name": "SpecularThreshold",
              "anchor": "ToonMaterial.SpecularThreshold",
              "kind": "field",
              "doc": "SpecularThreshold is the step cutoff in [0, 1] applied to pow(N·H, SpecularPower)."
            },
            {
              "name": "SpecularSmoothness",
              "anchor": "ToonMaterial.SpecularSmoothness",
              "kind": "field",
              "doc": "SpecularSmoothness controls specular edge softness in [0, 0.5]. Zero gives a hard cel highlight edge."
            },
            {
              "name": "RimColor",
              "anchor": "ToonMaterial.RimColor",
              "kind": "field",
              "doc": "RimColor is the linear RGB color of the Fresnel rim highlight. Zero disables rim highlights."
            },
            {
              "name": "RimThreshold",
              "anchor": "ToonMaterial.RimThreshold",
              "kind": "field",
              "doc": "RimThreshold is the Fresnel cutoff in [0, 1] applied to (1 - N·V); higher values produce a thinner silhouette rim."
            },
            {
              "name": "RimSmoothness",
              "anchor": "ToonMaterial.RimSmoothness",
              "kind": "field",
              "doc": "RimSmoothness controls rim edge softness in [0, 0.5]. Zero gives a crisp rim step."
            },
            {
              "name": "OutlineColor",
              "anchor": "ToonMaterial.OutlineColor",
              "kind": "field",
              "doc": "OutlineColor is the linear RGBA color of the inverted-hull outline pass. An alpha of 0 turns the outline off; other alpha values only blend in a pipeline built with [NewToonOutlinePipeline] and a [ToonPipelineOptions.Blend], since [ToonRenderer] draws opaque."
            },
            {
              "name": "OutlineWidth",
              "anchor": "ToonMaterial.OutlineWidth",
              "kind": "field",
              "doc": "OutlineWidth is the normal-extrusion distance of the inverted-hull outline pass: in world units, or with OutlineClipSpace in NDC y units, so the outline is OutlineWidth × viewport height / 2 pixels thick. Zero disables the outline pass."
            },
            {
              "name": "OutlineClipSpace",
              "anchor": "ToonMaterial.OutlineClipSpace",
              "kind": "field",
              "doc": "OutlineClipSpace extrudes outline vertices along their projected normal on screen instead of in world space, giving the same thickness in pixels at every distance and in every direction. It reads the aspect ratio from the camera's projection, which must match the viewport's."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultToonMaterial",
              "anchor": "DefaultToonMaterial",
              "decl": "func DefaultToonMaterial() ToonMaterial",
              "doc": "DefaultToonMaterial returns a ready-to-use cel-shaded material with 3 crisp bands, a cool shadow tint, subtle specular and rim highlights, and a dark silhouette outline.\n",
              "file": "pkg/render3d/toon.go",
              "line": 314
            }
          ],
          "methods": [
            {
              "name": "AppendUniformData",
              "anchor": "ToonMaterial.AppendUniformData",
              "recv": "ToonMaterial",
              "decl": "func (m ToonMaterial) AppendUniformData(dst []byte) []byte",
              "doc": "AppendUniformData appends m's [ToonUniformSize]-byte little-endian uniform block matching [ToonWGSL] and [ToonOutlineWGSL] to dst and returns the extended slice. It allocates only when dst lacks capacity for [ToonUniformSize] more bytes.\n",
              "file": "pkg/render3d/toon.go",
              "line": 426
            },
            {
              "name": "EffectiveBands",
              "anchor": "ToonMaterial.EffectiveBands",
              "recv": "ToonMaterial",
              "decl": "func (m ToonMaterial) EffectiveBands() int",
              "doc": "EffectiveBands returns m.Bands, or [DefaultToonBands] when m.Bands is zero.\n",
              "file": "pkg/render3d/toon.go",
              "line": 333
            },
            {
              "name": "EffectiveSpecularPower",
              "anchor": "ToonMaterial.EffectiveSpecularPower",
              "recv": "ToonMaterial",
              "decl": "func (m ToonMaterial) EffectiveSpecularPower() float32",
              "doc": "EffectiveSpecularPower returns m.SpecularPower, or [DefaultToonSpecularPower] when m.SpecularPower is zero.\n",
              "file": "pkg/render3d/toon.go",
              "line": 341
            },
            {
              "name": "HasOutline",
              "anchor": "ToonMaterial.HasOutline",
              "recv": "ToonMaterial",
              "decl": "func (m ToonMaterial) HasOutline() bool",
              "doc": "HasOutline reports whether m draws an inverted-hull outline (positive width and non-zero outline alpha).\n",
              "file": "pkg/render3d/toon.go",
              "line": 349
            },
            {
              "name": "Validate",
              "anchor": "ToonMaterial.Validate",
              "recv": "ToonMaterial",
              "decl": "func (m ToonMaterial) Validate() error",
              "doc": "Validate checks every scalar, color, band count, threshold, and optional GPU handle on m. Every error wraps [ErrInvalidToonMaterial].\n",
              "file": "pkg/render3d/toon.go",
              "line": 354
            }
          ]
        },
        {
          "name": "ToonMaterialOptions",
          "anchor": "ToonMaterialOptions",
          "decl": "type ToonMaterialOptions struct {\n\t// Label prefixes GPU resource labels in capture tools.\n\tLabel string\n\t// Layout is an optional shared layout from [ToonMaterialBindingLayout] or [ToonRenderer.MaterialLayout]. When nil, the material creates and owns its own layout.\n\tLayout *gpu.BindGroupLayout\n\t// Retained keeps a CPU shadow copy of the uniform buffer (and of the ramp sampler the material creates) so NSGo restores them after a device loss. The [MaterialDefaults] and any caller-supplied textures and samplers must be retained too for the bind group to come back.\n\tRetained bool\n}",
          "doc": "ToonMaterialOptions configures [NewGPUToonMaterial].\n",
          "file": "pkg/render3d/toon.go",
          "line": 828,
          "members": [
            {
              "name": "Label",
              "anchor": "ToonMaterialOptions.Label",
              "kind": "field",
              "doc": "Label prefixes GPU resource labels in capture tools."
            },
            {
              "name": "Layout",
              "anchor": "ToonMaterialOptions.Layout",
              "kind": "field",
              "doc": "Layout is an optional shared layout from [ToonMaterialBindingLayout] or [ToonRenderer.MaterialLayout]. When nil, the material creates and owns its own layout."
            },
            {
              "name": "Retained",
              "anchor": "ToonMaterialOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps a CPU shadow copy of the uniform buffer (and of the ramp sampler the material creates) so NSGo restores them after a device loss. The [MaterialDefaults] and any caller-supplied textures and samplers must be retained too for the bind group to come back."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToonPipelineOptions",
          "anchor": "ToonPipelineOptions",
          "decl": "type ToonPipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools.\n\tLabel string\n\t// CameraLayout is the @group(0) bind group layout (from [CameraBuffer.Layout]).\n\tCameraLayout *gpu.BindGroupLayout\n\t// MaterialLayout is the @group(1) bind group layout (from [ToonMaterialBindingLayout] or [GPUToonMaterial.Layout]).\n\tMaterialLayout *gpu.BindGroupLayout\n\t// SceneLayout is the @group(2) bind group layout (from [ToonSceneBindingLayout] or [ToonSceneDynamicBindingLayout]).\n\tSceneLayout *gpu.BindGroupLayout\n\t// ColorFormat is the color attachment format; zero defaults to dev.SurfaceFormat().\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat is the depth attachment format (e.g. [gpu.FormatDepth24Plus]), or [gpu.FormatUndefined] for no depth buffer.\n\tDepthFormat gpu.TextureFormat\n\t// DoubleSided disables back-face culling (uses [gpu.CullNone] instead of [gpu.CullBack]) on the main cel-shaded pass. Ignored by [NewToonOutlinePipeline], which always uses [gpu.CullFront].\n\tDoubleSided bool\n\t// Blend sets an optional color blend state on the main cel-shaded pass (nil means opaque).\n\tBlend *gpu.BlendState\n\t// Retained opts the pipeline into automatic recreation after a GPU device loss.\n\tRetained bool\n}",
          "doc": "ToonPipelineOptions configures [NewToonPipeline] and [NewToonOutlinePipeline].\n",
          "file": "pkg/render3d/toon.go",
          "line": 1053,
          "members": [
            {
              "name": "Label",
              "anchor": "ToonPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools."
            },
            {
              "name": "CameraLayout",
              "anchor": "ToonPipelineOptions.CameraLayout",
              "kind": "field",
              "doc": "CameraLayout is the @group(0) bind group layout (from [CameraBuffer.Layout])."
            },
            {
              "name": "MaterialLayout",
              "anchor": "ToonPipelineOptions.MaterialLayout",
              "kind": "field",
              "doc": "MaterialLayout is the @group(1) bind group layout (from [ToonMaterialBindingLayout] or [GPUToonMaterial.Layout])."
            },
            {
              "name": "SceneLayout",
              "anchor": "ToonPipelineOptions.SceneLayout",
              "kind": "field",
              "doc": "SceneLayout is the @group(2) bind group layout (from [ToonSceneBindingLayout] or [ToonSceneDynamicBindingLayout])."
            },
            {
              "name": "ColorFormat",
              "anchor": "ToonPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat is the color attachment format; zero defaults to dev.SurfaceFormat()."
            },
            {
              "name": "DepthFormat",
              "anchor": "ToonPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat is the depth attachment format (e.g. [gpu.FormatDepth24Plus]), or [gpu.FormatUndefined] for no depth buffer."
            },
            {
              "name": "DoubleSided",
              "anchor": "ToonPipelineOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables back-face culling (uses [gpu.CullNone] instead of [gpu.CullBack]) on the main cel-shaded pass. Ignored by [NewToonOutlinePipeline], which always uses [gpu.CullFront]."
            },
            {
              "name": "Blend",
              "anchor": "ToonPipelineOptions.Blend",
              "kind": "field",
              "doc": "Blend sets an optional color blend state on the main cel-shaded pass (nil means opaque)."
            },
            {
              "name": "Retained",
              "anchor": "ToonPipelineOptions.Retained",
              "kind": "field",
              "doc": "Retained opts the pipeline into automatic recreation after a GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToonRenderer",
          "anchor": "ToonRenderer",
          "decl": "type ToonRenderer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ToonRenderer manages both the inverted-hull outline pipeline and main cel-shaded pipeline together with a dynamic-offset per-draw scene uniform buffer, drawing outlines first and cel-shaded surfaces second in a single render pass (#262). Both pipelines draw opaque, with depth writes; for blended toon surfaces build pipelines with [NewToonPipeline] and [NewToonOutlinePipeline] and a [ToonPipelineOptions.Blend].\n",
          "file": "pkg/render3d/toon.go",
          "line": 1199,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewToonRenderer",
              "anchor": "NewToonRenderer",
              "decl": "func NewToonRenderer(cx *core.Scope, dev *gpu.Device, opts ToonRendererOptions) (*ToonRenderer, error)",
              "doc": "NewToonRenderer creates the shared material/scene layouts, both toon and outline pipelines, and the dynamic scene uniform buffer on dev, scoped to cx.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1230
            }
          ],
          "methods": [
            {
              "name": "Begin",
              "anchor": "ToonRenderer.Begin",
              "recv": "*ToonRenderer",
              "decl": "func (r *ToonRenderer) Begin()",
              "doc": "Begin starts a new frame: the next Draw reuses the scene uniform slots from the start of the buffer, and scene buffers that a Draw outgrew during the previous frame are released. Call it once per frame, after the previous frame's submission and before its first Draw, when submitting with [gpu.Device.Submit] directly. Inside a [gpu.Frame] (for example a [gpu.View] OnFrame callback) Draw rewinds on its own when [gpu.Device.FrameIndex] advances, so calling Begin there is optional.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1351
            },
            {
              "name": "Close",
              "anchor": "ToonRenderer.Close",
              "recv": "*ToonRenderer",
              "decl": "func (r *ToonRenderer) Close() error",
              "doc": "Close releases all GPU resources owned by r. It is safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1458
            },
            {
              "name": "Draw",
              "anchor": "ToonRenderer.Draw",
              "recv": "*ToonRenderer",
              "decl": "func (r *ToonRenderer) Draw(dev *gpu.Device, pass *gpu.RenderPass, camGroup *gpu.BindGroup, light ToonLight, draws ...ToonDraw) error",
              "doc": "Draw writes per-draw transform/light uniforms and records the inverted-hull outline pass followed by the main cel-shaded pass into pass. Draws with invalid meshes or materials are skipped. Draw may run any number of times between two submissions, into one pass or several: each call writes its uniforms to slots no earlier call of the frame uses (see [ToonRenderer.Begin]). It returns a [gpu.Error] when r, dev, pass, or camGroup is nil, closed, or lost, an error wrapping [ErrInvalidLight] when light is invalid, and the error from growing the uniform buffer.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1366
            },
            {
              "name": "MaterialLayout",
              "anchor": "ToonRenderer.MaterialLayout",
              "recv": "*ToonRenderer",
              "decl": "func (r *ToonRenderer) MaterialLayout() *gpu.BindGroupLayout",
              "doc": "MaterialLayout returns the @group([ToonMaterialGroup]) layout to pass in [ToonMaterialOptions.Layout] when creating [GPUToonMaterial] instances for this renderer.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1302
            },
            {
              "name": "NewMaterial",
              "anchor": "ToonRenderer.NewMaterial",
              "recv": "*ToonRenderer",
              "decl": "func (r *ToonRenderer) NewMaterial(cx *core.Scope, dev *gpu.Device, defaults *MaterialDefaults, mat ToonMaterial, label string) (*GPUToonMaterial, error)",
              "doc": "NewMaterial is a convenience wrapper around [NewGPUToonMaterial] that binds mat to r's [ToonRenderer.MaterialLayout] and inherits r's Retained setting.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1310
            },
            {
              "name": "OutlinePipeline",
              "anchor": "ToonRenderer.OutlinePipeline",
              "recv": "*ToonRenderer",
              "decl": "func (r *ToonRenderer) OutlinePipeline() *gpu.Pipeline",
              "doc": "OutlinePipeline returns the inverted-hull outline pipeline.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1330
            },
            {
              "name": "ToonPipeline",
              "anchor": "ToonRenderer.ToonPipeline",
              "recv": "*ToonRenderer",
              "decl": "func (r *ToonRenderer) ToonPipeline() *gpu.Pipeline",
              "doc": "ToonPipeline returns the main cel-shaded pipeline.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1322
            },
            {
              "name": "Valid",
              "anchor": "ToonRenderer.Valid",
              "recv": "*ToonRenderer",
              "decl": "func (r *ToonRenderer) Valid() bool",
              "doc": "Valid reports whether all GPU resources owned by r are open and belong to a live device.\n",
              "file": "pkg/render3d/toon.go",
              "line": 1338
            }
          ]
        },
        {
          "name": "ToonRendererOptions",
          "anchor": "ToonRendererOptions",
          "decl": "type ToonRendererOptions struct {\n\t// Label prefixes GPU resource labels in capture tools.\n\tLabel string\n\t// CameraLayout is the @group(0) layout from [CameraBuffer.Layout] (required).\n\tCameraLayout *gpu.BindGroupLayout\n\t// ColorFormat is the color attachment format; zero defaults to dev.SurfaceFormat().\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat is the depth attachment format (e.g. [gpu.FormatDepth24Plus]), or [gpu.FormatUndefined] without depth.\n\tDepthFormat gpu.TextureFormat\n\t// DoubleSided disables back-face culling on the main cel-shaded pass.\n\tDoubleSided bool\n\t// InitialCapacity is the starting number of per-draw transform slots in the dynamic scene uniform buffer (defaults to 32). The buffer grows when the draws of one frame need more slots.\n\tInitialCapacity int\n\t// Retained opts owned pipelines, layouts, and uniform buffers into automatic restoration across GPU device loss.\n\tRetained bool\n}",
          "doc": "ToonRendererOptions configures [NewToonRenderer].\n",
          "file": "pkg/render3d/toon.go",
          "line": 1181,
          "members": [
            {
              "name": "Label",
              "anchor": "ToonRendererOptions.Label",
              "kind": "field",
              "doc": "Label prefixes GPU resource labels in capture tools."
            },
            {
              "name": "CameraLayout",
              "anchor": "ToonRendererOptions.CameraLayout",
              "kind": "field",
              "doc": "CameraLayout is the @group(0) layout from [CameraBuffer.Layout] (required)."
            },
            {
              "name": "ColorFormat",
              "anchor": "ToonRendererOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat is the color attachment format; zero defaults to dev.SurfaceFormat()."
            },
            {
              "name": "DepthFormat",
              "anchor": "ToonRendererOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat is the depth attachment format (e.g. [gpu.FormatDepth24Plus]), or [gpu.FormatUndefined] without depth."
            },
            {
              "name": "DoubleSided",
              "anchor": "ToonRendererOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables back-face culling on the main cel-shaded pass."
            },
            {
              "name": "InitialCapacity",
              "anchor": "ToonRendererOptions.InitialCapacity",
              "kind": "field",
              "doc": "InitialCapacity is the starting number of per-draw transform slots in the dynamic scene uniform buffer (defaults to 32). The buffer grows when the draws of one frame need more slots."
            },
            {
              "name": "Retained",
              "anchor": "ToonRendererOptions.Retained",
              "kind": "field",
              "doc": "Retained opts owned pipelines, layouts, and uniform buffers into automatic restoration across GPU device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ToonSceneUniform",
          "anchor": "ToonSceneUniform",
          "decl": "type ToonSceneUniform struct {\n\tModel        math3d.Mat4\n\tNormalMatrix math3d.Mat4\n\t// ToLight is the unit vector from a surface toward the key light (the opposite of [DirectionalLight.Direction]).\n\tToLight math3d.Vec3\n\t// LightColor is the key light's linear radiance (Color × Intensity).\n\tLightColor math3d.Vec3\n\t// AmbientColor is the ambient fill's linear radiance (Color × Intensity).\n\tAmbientColor math3d.Vec3\n}",
          "doc": "ToonSceneUniform holds the per-draw model matrix, inverse-transpose normal matrix, and key and ambient light packed for @group(2) in [ToonWGSL] and [ToonOutlineWGSL].\n",
          "file": "pkg/render3d/toon.go",
          "line": 513,
          "members": [
            {
              "name": "Model",
              "anchor": "ToonSceneUniform.Model",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NormalMatrix",
              "anchor": "ToonSceneUniform.NormalMatrix",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToLight",
              "anchor": "ToonSceneUniform.ToLight",
              "kind": "field",
              "doc": "ToLight is the unit vector from a surface toward the key light (the opposite of [DirectionalLight.Direction])."
            },
            {
              "name": "LightColor",
              "anchor": "ToonSceneUniform.LightColor",
              "kind": "field",
              "doc": "LightColor is the key light's linear radiance (Color × Intensity)."
            },
            {
              "name": "AmbientColor",
              "anchor": "ToonSceneUniform.AmbientColor",
              "kind": "field",
              "doc": "AmbientColor is the ambient fill's linear radiance (Color × Intensity)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewToonSceneUniform",
              "anchor": "NewToonSceneUniform",
              "decl": "func NewToonSceneUniform(model math3d.Mat4, light ToonLight) ToonSceneUniform",
              "doc": "NewToonSceneUniform builds a [ToonSceneUniform] from a world transform (zero value means identity) and a [ToonLight].\n",
              "file": "pkg/render3d/toon.go",
              "line": 525
            }
          ],
          "methods": [
            {
              "name": "AppendUniformData",
              "anchor": "ToonSceneUniform.AppendUniformData",
              "recv": "ToonSceneUniform",
              "decl": "func (u ToonSceneUniform) AppendUniformData(dst []byte) []byte",
              "doc": "AppendUniformData appends u's [ToonSceneUniformSize]-byte little-endian uniform block matching [ToonWGSL] and [ToonOutlineWGSL] to dst. It allocates only when dst lacks capacity for [ToonSceneUniformSize] more bytes.\n",
              "file": "pkg/render3d/toon.go",
              "line": 540
            }
          ]
        },
        {
          "name": "Trail",
          "anchor": "Trail",
          "decl": "type Trail struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Trail records a moving object's world positions and builds a camera-facing ribbon through them (#281).\n\nEach point's ribbon edge runs along side = tangent × toCamera, so the strip's surface turns about its own centerline to face the viewer at every angle, like a 3D laser, sword swing or projectile streak.\n",
          "file": "pkg/render3d/trail.go",
          "line": 99,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTrail",
              "anchor": "NewTrail",
              "decl": "func NewTrail(cfg TrailConfig) *Trail",
              "doc": "NewTrail creates an empty Trail with cfg.\n",
              "file": "pkg/render3d/trail.go",
              "line": 107
            }
          ],
          "methods": [
            {
              "name": "AddPoint",
              "anchor": "Trail.AddPoint",
              "recv": "*Trail",
              "decl": "func (t *Trail) AddPoint(p math3d.Vec3)",
              "doc": "AddPoint appends p as the newest point when it is at least MinDistance from the previous one. Non-finite points are ignored.\n",
              "file": "pkg/render3d/trail.go",
              "line": 127
            },
            {
              "name": "Bounds",
              "anchor": "Trail.Bounds",
              "recv": "*Trail",
              "decl": "func (t *Trail) Bounds() math3d.AABB",
              "doc": "Bounds returns a world-space AABB that contains the ribbon for any camera, or an empty box when fewer than 2 points are live.\n",
              "file": "pkg/render3d/trail.go",
              "line": 231
            },
            {
              "name": "Build",
              "anchor": "Trail.Build",
              "recv": "*Trail",
              "decl": "func (t *Trail) Build(cam CameraBasis) []TrailVertex",
              "doc": "Build returns the ribbon facing cam as a triangle strip: two vertices per point from tail to head, left edge first. It returns nil when fewer than 2 points are live. The slice aliases internal storage until the next Build.\n",
              "file": "pkg/render3d/trail.go",
              "line": 260
            },
            {
              "name": "Clear",
              "anchor": "Trail.Clear",
              "recv": "*Trail",
              "decl": "func (t *Trail) Clear()",
              "doc": "Clear removes every recorded point.\n",
              "file": "pkg/render3d/trail.go",
              "line": 194
            },
            {
              "name": "Config",
              "anchor": "Trail.Config",
              "recv": "*Trail",
              "decl": "func (t *Trail) Config() TrailConfig",
              "doc": "Config returns a copy of the trail's configuration.\n",
              "file": "pkg/render3d/trail.go",
              "line": 114
            },
            {
              "name": "Draw",
              "anchor": "Trail.Draw",
              "recv": "*Trail",
              "decl": "func (t *Trail) Draw(d *core.Drawing, cam CameraBasis, viewProj math3d.Mat4, viewport core.Bounds) int",
              "doc": "Draw builds the ribbon facing cam and fills it into d through viewProj and viewport, clipping each segment against the near plane. It returns the number of segments drawn.\n",
              "file": "pkg/render3d/trail.go",
              "line": 327
            },
            {
              "name": "DrawItem",
              "anchor": "Trail.DrawItem",
              "recv": "*Trail",
              "decl": "func (t *Trail) DrawItem(template DrawItem) DrawItem",
              "doc": "DrawItem returns template with an identity Transform and WorldBounds, Triangles and Vertices taken from the trail, so it can be sorted by [Queue.Build]. A zero template Blend is replaced by [BlendAlphaBlend].\n",
              "file": "pkg/render3d/trail.go",
              "line": 245
            },
            {
              "name": "EvaluateAt",
              "anchor": "Trail.EvaluateAt",
              "recv": "*Trail",
              "decl": "func (t *Trail) EvaluateAt(u float32) (width float32, color core.Color)",
              "doc": "EvaluateAt returns the ribbon width and color at u in [0, 1], where 0 is the head and 1 the tail.\n",
              "file": "pkg/render3d/trail.go",
              "line": 209
            },
            {
              "name": "PointCount",
              "anchor": "Trail.PointCount",
              "recv": "*Trail",
              "decl": "func (t *Trail) PointCount() int",
              "doc": "PointCount returns the number of live points.\n",
              "file": "pkg/render3d/trail.go",
              "line": 204
            },
            {
              "name": "Points",
              "anchor": "Trail.Points",
              "recv": "*Trail",
              "decl": "func (t *Trail) Points() []TrailPoint",
              "doc": "Points returns the live points from oldest (index 0) to newest. The slice aliases internal storage until the next mutation.\n",
              "file": "pkg/render3d/trail.go",
              "line": 199
            },
            {
              "name": "SetConfig",
              "anchor": "Trail.SetConfig",
              "recv": "*Trail",
              "decl": "func (t *Trail) SetConfig(cfg TrailConfig)",
              "doc": "SetConfig replaces the configuration, keeping live points and dropping the oldest ones beyond the new MaxPoints.\n",
              "file": "pkg/render3d/trail.go",
              "line": 119
            },
            {
              "name": "Update",
              "anchor": "Trail.Update",
              "recv": "*Trail",
              "decl": "func (t *Trail) Update(dt time.Duration)",
              "doc": "Update ages every point by dt and removes the expired ones. Non-positive dt does nothing.\n",
              "file": "pkg/render3d/trail.go",
              "line": 160
            }
          ]
        },
        {
          "name": "TrailConfig",
          "anchor": "TrailConfig",
          "decl": "type TrailConfig struct {\n\t// MaxPoints caps the number of recorded points; defaults to 64 when <= 0.\n\tMaxPoints int\n\t// Lifetime is how long each point lives before it expires; defaults to 500ms when <= 0.\n\tLifetime time.Duration\n\t// MinDistance is the minimum world distance from the newest point before a new point is appended. Zero or negative records every distinct point; an exact duplicate refreshes the newest point's age.\n\tMinDistance float32\n\t// Width is the ribbon's base width in world units; defaults to 0.25 when <= 0.\n\tWidth float32\n\t// WidthCurve scales Width along the trail from head (u=0, newest) to tail (u=1, oldest). Empty keeps 1.\n\tWidthCurve particles.Curve\n\t// ColorGradient evaluates color along the trail from head (u=0) to tail (u=1). When empty, Color is used.\n\tColorGradient particles.ColorCurve\n\t// Color is the solid color used when ColorGradient is empty; zero means opaque white.\n\tColor core.Color\n}",
          "doc": "TrailConfig configures a 3D ribbon [Trail] (#281). It mirrors the MaxPoints, Lifetime, MinDistance, Width, WidthCurve, ColorGradient and Color options of [particles.TrailConfig] in world units and durations; it has no Texture, and [Trail] has no Attach, Detach or Follow, so feed it positions with [Trail.AddPoint].\n",
          "file": "pkg/render3d/trail.go",
          "line": 18,
          "members": [
            {
              "name": "MaxPoints",
              "anchor": "TrailConfig.MaxPoints",
              "kind": "field",
              "doc": "MaxPoints caps the number of recorded points; defaults to 64 when <= 0."
            },
            {
              "name": "Lifetime",
              "anchor": "TrailConfig.Lifetime",
              "kind": "field",
              "doc": "Lifetime is how long each point lives before it expires; defaults to 500ms when <= 0."
            },
            {
              "name": "MinDistance",
              "anchor": "TrailConfig.MinDistance",
              "kind": "field",
              "doc": "MinDistance is the minimum world distance from the newest point before a new point is appended. Zero or negative records every distinct point; an exact duplicate refreshes the newest point's age."
            },
            {
              "name": "Width",
              "anchor": "TrailConfig.Width",
              "kind": "field",
              "doc": "Width is the ribbon's base width in world units; defaults to 0.25 when <= 0."
            },
            {
              "name": "WidthCurve",
              "anchor": "TrailConfig.WidthCurve",
              "kind": "field",
              "doc": "WidthCurve scales Width along the trail from head (u=0, newest) to tail (u=1, oldest). Empty keeps 1."
            },
            {
              "name": "ColorGradient",
              "anchor": "TrailConfig.ColorGradient",
              "kind": "field",
              "doc": "ColorGradient evaluates color along the trail from head (u=0) to tail (u=1). When empty, Color is used."
            },
            {
              "name": "Color",
              "anchor": "TrailConfig.Color",
              "kind": "field",
              "doc": "Color is the solid color used when ColorGradient is empty; zero means opaque white."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TrailPoint",
          "anchor": "TrailPoint",
          "decl": "type TrailPoint struct {\n\t// Pos is the recorded world-space position.\n\tPos math3d.Vec3\n\t// Age is how long ago the point was recorded or last refreshed.\n\tAge time.Duration\n\t// Length is the distance along the trail from the oldest point.\n\tLength float32\n}",
          "doc": "TrailPoint is one recorded point of a [Trail].\n",
          "file": "pkg/render3d/trail.go",
          "line": 75,
          "members": [
            {
              "name": "Pos",
              "anchor": "TrailPoint.Pos",
              "kind": "field",
              "doc": "Pos is the recorded world-space position."
            },
            {
              "name": "Age",
              "anchor": "TrailPoint.Age",
              "kind": "field",
              "doc": "Age is how long ago the point was recorded or last refreshed."
            },
            {
              "name": "Length",
              "anchor": "TrailPoint.Length",
              "kind": "field",
              "doc": "Length is the distance along the trail from the oldest point."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TrailVertex",
          "anchor": "TrailVertex",
          "decl": "type TrailVertex struct {\n\t// Pos is the vertex's world-space position.\n\tPos math3d.Vec3\n\t// Normal is the ribbon's unit surface normal at this vertex, turned toward the camera.\n\tNormal math3d.Vec3\n\t// Color is the ribbon color evaluated at U.\n\tColor core.Color\n\t// U runs along the trail from 0 at the head (newest) to 1 at the tail (oldest); V is 0 on the left edge and 1 on the right.\n\tU, V float32\n}",
          "doc": "TrailVertex is one edge vertex of a built ribbon.\n",
          "file": "pkg/render3d/trail.go",
          "line": 85,
          "members": [
            {
              "name": "Pos",
              "anchor": "TrailVertex.Pos",
              "kind": "field",
              "doc": "Pos is the vertex's world-space position."
            },
            {
              "name": "Normal",
              "anchor": "TrailVertex.Normal",
              "kind": "field",
              "doc": "Normal is the ribbon's unit surface normal at this vertex, turned toward the camera."
            },
            {
              "name": "Color",
              "anchor": "TrailVertex.Color",
              "kind": "field",
              "doc": "Color is the ribbon color evaluated at U."
            },
            {
              "name": "U",
              "anchor": "TrailVertex.U",
              "kind": "field",
              "doc": "U runs along the trail from 0 at the head (newest) to 1 at the tail (oldest); V is 0 on the left edge and 1 on the right."
            },
            {
              "name": "V",
              "anchor": "TrailVertex.V",
              "kind": "field",
              "doc": "U runs along the trail from 0 at the head (newest) to 1 at the tail (oldest); V is 0 on the left edge and 1 on the right."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TransmissionBackground",
          "anchor": "TransmissionBackground",
          "decl": "type TransmissionBackground struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TransmissionBackground owns the per-frame / per-pass bind group exposing the opaque scene color texture to transmissive materials without baking the background texture into each material's bind group.\n\nIn the shader, screen-space sample UVs are derived from frag_pos.xy / vec2<f32>(textureDimensions(transmission_bg_tex)), scaled and clamped by the 32-byte parameter uniform so standard resizes and [DynamicResolutionTarget] sub-viewports work seamlessly with one bind group update per frame or resize.\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 450,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTransmissionBackground",
              "anchor": "NewTransmissionBackground",
              "decl": "func NewTransmissionBackground(cx *core.Scope, dev *gpu.Device, opts TransmissionBackgroundOptions) (*TransmissionBackground, error)",
              "doc": "NewTransmissionBackground allocates the per-frame transmission background bind group layout, uniform buffer, linear clamp-to-edge sampler, 1x1 black fallback texture, and initial bind group on dev, owned by cx.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 463
            }
          ],
          "methods": [
            {
              "name": "Bind",
              "anchor": "TransmissionBackground.Bind",
              "recv": "*TransmissionBackground",
              "decl": "func (tb *TransmissionBackground) Bind(pass *gpu.RenderPass)",
              "doc": "Bind sets tb's bind group at [TransmissionBackgroundGroup] (group 3) on pass.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 671
            },
            {
              "name": "BindAt",
              "anchor": "TransmissionBackground.BindAt",
              "recv": "*TransmissionBackground",
              "decl": "func (tb *TransmissionBackground) BindAt(pass *gpu.RenderPass, group uint32)",
              "doc": "BindAt sets tb's bind group at group on pass (use [MaterialTransmissionBackgroundGroup] = 2 when drawing with a default-light extended material pipeline without [ExtendedMaterialPipelineOptions].LightLayout, or [TransmissionBackgroundGroup] = 3 when paired with [GPULightBuffer]).\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 676
            },
            {
              "name": "BindGroup",
              "anchor": "TransmissionBackground.BindGroup",
              "recv": "*TransmissionBackground",
              "decl": "func (tb *TransmissionBackground) BindGroup() *gpu.BindGroup",
              "doc": "BindGroup returns the current frame/pass bind group.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 663
            },
            {
              "name": "Close",
              "anchor": "TransmissionBackground.Close",
              "recv": "*TransmissionBackground",
              "decl": "func (tb *TransmissionBackground) Close() error",
              "doc": "Close releases all GPU resources owned by tb. Safe to call on nil or more than once.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 694
            },
            {
              "name": "Layout",
              "anchor": "TransmissionBackground.Layout",
              "recv": "*TransmissionBackground",
              "decl": "func (tb *TransmissionBackground) Layout() *gpu.BindGroupLayout",
              "doc": "Layout returns the bind group layout for [ExtendedMaterialPipelineOptions].TransmissionLayout.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 655
            },
            {
              "name": "SetDynamicResolution",
              "anchor": "TransmissionBackground.SetDynamicResolution",
              "recv": "*TransmissionBackground",
              "decl": "func (tb *TransmissionBackground) SetDynamicResolution(dev *gpu.Device, target *DynamicResolutionTarget, snapshot *gpu.Texture, viewportW, viewportH int, srgb bool) error",
              "doc": "SetDynamicResolution configures tb to sample an opaque scene snapshot captured from target (or target.ColorTexture() when snapshot is nil) for a transmissive pass drawn either at target's active scaled viewport (viewportW == 0 || viewportH == 0) or at a custom viewport (such as native resolution).\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 587
            },
            {
              "name": "SetTexture",
              "anchor": "TransmissionBackground.SetTexture",
              "recv": "*TransmissionBackground",
              "decl": "func (tb *TransmissionBackground) SetTexture(dev *gpu.Device, tex *gpu.Texture, srgb bool) error",
              "doc": "SetTexture binds the opaque scene color texture for the current frame/pass with full-texture UVs derived automatically from frag_pos.xy / vec2<f32>(textureDimensions(bg_tex)). Passing tex == nil binds the internal 1x1 black fallback. Only this single per-frame bind group is recreated when tex changes; no material bind groups are modified.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 562
            },
            {
              "name": "SetViewport",
              "anchor": "TransmissionBackground.SetViewport",
              "recv": "*TransmissionBackground",
              "decl": "func (tb *TransmissionBackground) SetViewport(dev *gpu.Device, tex *gpu.Texture, viewportW, viewportH, activeW, activeH, texW, texH int, srgb bool) error",
              "doc": "SetViewport binds tex and configures screen-to-background UV scaling and half-texel clamping for a transmissive pass rendering into (viewportW, viewportH) while sampling an opaque scene rendered into the top-left [0..activeW, 0..activeH] sub-rectangle of a (texW, texH) backing texture (such as a [DynamicResolutionTarget]).\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 567
            },
            {
              "name": "Valid",
              "anchor": "TransmissionBackground.Valid",
              "recv": "*TransmissionBackground",
              "decl": "func (tb *TransmissionBackground) Valid() bool",
              "doc": "Valid reports whether tb's layout, uniform buffer, sampler, fallback texture, and bind group are live.\n",
              "file": "pkg/render3d/material_ext.go",
              "line": 684
            }
          ]
        },
        {
          "name": "TransmissionBackgroundOptions",
          "anchor": "TransmissionBackgroundOptions",
          "decl": "type TransmissionBackgroundOptions struct {\n\t// Label prefixes debug labels on GPU objects. Defaults to \"render3d.transmission_bg\".\n\tLabel string\n\t// Retained keeps CPU shadow copies of the uniform buffer, fallback texture, and sampler across GPU device loss.\n\tRetained bool\n\t// SRGB indicates that the bound opaque scene color texture holds sRGB-encoded values in a non-sRGB texture format (such as FormatRGBA8Unorm), so the shader decodes it to linear space before tinting. Leave false for linear HDR targets (FormatRGBA16Float) or hardware-decoded sRGB textures (FormatRGBA8UnormSRGB).\n\tSRGB bool\n}",
          "doc": "TransmissionBackgroundOptions configures [NewTransmissionBackground].\n",
          "file": "pkg/render3d/material_ext.go",
          "line": 438,
          "members": [
            {
              "name": "Label",
              "anchor": "TransmissionBackgroundOptions.Label",
              "kind": "field",
              "doc": "Label prefixes debug labels on GPU objects. Defaults to \"render3d.transmission_bg\"."
            },
            {
              "name": "Retained",
              "anchor": "TransmissionBackgroundOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU shadow copies of the uniform buffer, fallback texture, and sampler across GPU device loss."
            },
            {
              "name": "SRGB",
              "anchor": "TransmissionBackgroundOptions.SRGB",
              "kind": "field",
              "doc": "SRGB indicates that the bound opaque scene color texture holds sRGB-encoded values in a non-sRGB texture format (such as FormatRGBA8Unorm), so the shader decodes it to linear space before tinting. Leave false for linear HDR targets (FormatRGBA16Float) or hardware-decoded sRGB textures (FormatRGBA8UnormSRGB)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UVTransform",
          "anchor": "UVTransform",
          "decl": "type UVTransform struct {\n\tScale  [2]float32\n\tOffset [2]float32\n}",
          "doc": "UVTransform applies an affine scale and offset (uv * Scale + Offset) to lightmap coordinates so multiple meshes can share regions of a single baked lightmap atlas.\n",
          "file": "pkg/render3d/lightmap.go",
          "line": 111,
          "members": [
            {
              "name": "Scale",
              "anchor": "UVTransform.Scale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Offset",
              "anchor": "UVTransform.Offset",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "IdentityUVTransform",
              "anchor": "IdentityUVTransform",
              "decl": "func IdentityUVTransform() UVTransform",
              "doc": "IdentityUVTransform returns the identity UV transform (Scale {1, 1}, Offset {0, 0}).\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 117
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "UVTransform.Apply",
              "recv": "UVTransform",
              "decl": "func (t UVTransform) Apply(uv math3d.Vec2) math3d.Vec2",
              "doc": "Apply transforms uv by t.Normalized().\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 130
            },
            {
              "name": "Normalized",
              "anchor": "UVTransform.Normalized",
              "recv": "UVTransform",
              "decl": "func (t UVTransform) Normalized() UVTransform",
              "doc": "Normalized returns t with a zero Scale ({0, 0}) replaced by {1, 1}.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 122
            },
            {
              "name": "Validate",
              "anchor": "UVTransform.Validate",
              "recv": "UVTransform",
              "decl": "func (t UVTransform) Validate() error",
              "doc": "Validate checks that all scale and offset components are finite.\n",
              "file": "pkg/render3d/lightmap.go",
              "line": 139
            }
          ]
        },
        {
          "name": "UnlitMaterial",
          "anchor": "UnlitMaterial",
          "decl": "type UnlitMaterial struct {\n\t// BaseColorFactor is the linear RGBA multiplier applied to the texture and vertex color, each component in [0, 1] as glTF 2.0 requires. Use [DefaultUnlitMaterial] for the glTF default [1, 1, 1, 1].\n\tBaseColorFactor [4]float32\n\t// BaseColorTexture is an optional base-color texture (typically uploaded with TextureUpload{SRGB: true}). When nil, [NewGPUUnlitMaterial] binds the shared [MaterialDefaults.WhiteSRGB] texture.\n\tBaseColorTexture *GPUTexture\n\t// BaseColorSampler is an optional sampler for BaseColorTexture. When nil, [NewGPUUnlitMaterial] binds the shared [MaterialDefaults.Sampler].\n\tBaseColorSampler *GPUSampler\n\t// AlphaMode selects opaque, alpha-masked cutout, or alpha-blended transparency.\n\tAlphaMode AlphaMode\n\t// AlphaCutoff is the discard threshold for [AlphaMask] (default 0.5). Fragments with combined alpha < AlphaCutoff are discarded.\n\tAlphaCutoff float32\n\t// DoubleSided disables back-face culling when building a pipeline for this material.\n\tDoubleSided bool\n\t// UseVertexColor enables multiplying the material color by the mesh's @location(3) linear RGBA vertex color (glTF COLOR_0).\n\tUseVertexColor bool\n}",
          "doc": "UnlitMaterial describes a glTF KHR_materials_unlit surface: flat color unaffected by scene lighting, computed in linear space as\n\n\tbaseColor = BaseColorFactor * baseColorTexture(uv) * vertexColor\n\nwhere BaseColorTexture defaults to [MaterialDefaults.WhiteSRGB] when nil and vertexColor is COLOR_0 (or linear white (1, 1, 1, 1) when UseVertexColor is false or the mesh has no vertex colors).\n",
          "file": "pkg/render3d/unlit.go",
          "line": 391,
          "members": [
            {
              "name": "BaseColorFactor",
              "anchor": "UnlitMaterial.BaseColorFactor",
              "kind": "field",
              "doc": "BaseColorFactor is the linear RGBA multiplier applied to the texture and vertex color, each component in [0, 1] as glTF 2.0 requires. Use [DefaultUnlitMaterial] for the glTF default [1, 1, 1, 1]."
            },
            {
              "name": "BaseColorTexture",
              "anchor": "UnlitMaterial.BaseColorTexture",
              "kind": "field",
              "doc": "BaseColorTexture is an optional base-color texture (typically uploaded with TextureUpload{SRGB: true}). When nil, [NewGPUUnlitMaterial] binds the shared [MaterialDefaults.WhiteSRGB] texture."
            },
            {
              "name": "BaseColorSampler",
              "anchor": "UnlitMaterial.BaseColorSampler",
              "kind": "field",
              "doc": "BaseColorSampler is an optional sampler for BaseColorTexture. When nil, [NewGPUUnlitMaterial] binds the shared [MaterialDefaults.Sampler]."
            },
            {
              "name": "AlphaMode",
              "anchor": "UnlitMaterial.AlphaMode",
              "kind": "field",
              "doc": "AlphaMode selects opaque, alpha-masked cutout, or alpha-blended transparency."
            },
            {
              "name": "AlphaCutoff",
              "anchor": "UnlitMaterial.AlphaCutoff",
              "kind": "field",
              "doc": "AlphaCutoff is the discard threshold for [AlphaMask] (default 0.5). Fragments with combined alpha < AlphaCutoff are discarded."
            },
            {
              "name": "DoubleSided",
              "anchor": "UnlitMaterial.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables back-face culling when building a pipeline for this material."
            },
            {
              "name": "UseVertexColor",
              "anchor": "UnlitMaterial.UseVertexColor",
              "kind": "field",
              "doc": "UseVertexColor enables multiplying the material color by the mesh's @location(3) linear RGBA vertex color (glTF COLOR_0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultUnlitMaterial",
              "anchor": "DefaultUnlitMaterial",
              "decl": "func DefaultUnlitMaterial() UnlitMaterial",
              "doc": "DefaultUnlitMaterial returns the glTF 2.0 KHR_materials_unlit defaults: opaque white BaseColorFactor [1, 1, 1, 1], AlphaMode [AlphaOpaque], AlphaCutoff 0.5, single-sided, and UseVertexColor enabled.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 409
            },
            {
              "name": "UnlitMaterialFromGLTF",
              "anchor": "UnlitMaterialFromGLTF",
              "decl": "func UnlitMaterialFromGLTF(doc *gltf.Document, matIndex int, tex *GPUTexture, samp *GPUSampler) (UnlitMaterial, error)",
              "doc": "UnlitMaterialFromGLTF extracts an [UnlitMaterial] from doc.Materials[matIndex], verifying that the material enables KHR_materials_unlit (mat.Unlit == true). Optional pre-uploaded tex and samp are attached as BaseColorTexture and BaseColorSampler.\n\nReturns an error wrapping [ErrInvalidUnlitMaterial] if doc is nil, matIndex is out of range, the material does not declare KHR_materials_unlit, or the resulting material fails validation.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 473
            }
          ],
          "methods": [
            {
              "name": "BlendMode",
              "anchor": "UnlitMaterial.BlendMode",
              "recv": "UnlitMaterial",
              "decl": "func (m UnlitMaterial) BlendMode() BlendMode",
              "doc": "BlendMode returns the [render3d.BlendMode] corresponding to m.AlphaMode for [Queue] sorting.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 419
            },
            {
              "name": "Validate",
              "anchor": "UnlitMaterial.Validate",
              "recv": "UnlitMaterial",
              "decl": "func (m UnlitMaterial) Validate() error",
              "doc": "Validate checks that m's uniform parameters and any attached GPU texture/sampler handles are valid. Every error wraps [ErrInvalidUnlitMaterial].\n",
              "file": "pkg/render3d/unlit.go",
              "line": 422
            }
          ]
        },
        {
          "name": "UnlitPipelineOptions",
          "anchor": "UnlitPipelineOptions",
          "decl": "type UnlitPipelineOptions struct {\n\t// Label names the pipeline in GPU capture tools.\n\tLabel string\n\t// ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat(). An sRGB format selects fs_linear so the hardware encodes once (see LinearOutput).\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat enables depth testing (and depth writes for opaque/alpha-mask modes) when non-zero.\n\tDepthFormat gpu.TextureFormat\n\t// DepthCompare overrides the depth comparison function when DepthFormat is set; zero defaults to [gpu.CompareLess].\n\tDepthCompare gpu.CompareFunc\n\t// AlphaMode selects blending and depth-write state: [AlphaOpaque] and [AlphaMask] write depth without color blending; [AlphaBlend] uses straight alpha blending ([gpu.BlendAlpha]) with depth writes disabled.\n\tAlphaMode AlphaMode\n\t// DoubleSided disables backface culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack], counter-clockwise front faces).\n\tDoubleSided bool\n\t// LinearOutput writes the linear color ([UnlitSample].Linear) through fs_linear instead of encoding it to sRGB in fs_main, for an [HDRTarget] that a [ToneMapPass] resolves. fs_linear is also chosen whenever ColorFormat is sRGB, because the hardware encodes on write there. [NewMaterialPipeline] does not switch on an sRGB ColorFormat, so give both pipelines a non-sRGB target when they draw into the same pass.\n\tLinearOutput bool\n\t// SampleCount is the MSAA sample count (0 or 1 disables multisampling).\n\tSampleCount int\n\t// Retained opts the pipeline into automatic recreation after device loss.\n\tRetained bool\n}",
          "doc": "UnlitPipelineOptions configures [NewUnlitPipeline]. Label, ColorFormat, DepthFormat, AlphaMode, DoubleSided and LinearOutput mean what they mean in [MaterialPipelineOptions].\n",
          "file": "pkg/render3d/unlit.go",
          "line": 911,
          "members": [
            {
              "name": "Label",
              "anchor": "UnlitPipelineOptions.Label",
              "kind": "field",
              "doc": "Label names the pipeline in GPU capture tools."
            },
            {
              "name": "ColorFormat",
              "anchor": "UnlitPipelineOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat sets the color attachment format; [gpu.FormatUndefined] defaults to dev.SurfaceFormat(). An sRGB format selects fs_linear so the hardware encodes once (see LinearOutput)."
            },
            {
              "name": "DepthFormat",
              "anchor": "UnlitPipelineOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat enables depth testing (and depth writes for opaque/alpha-mask modes) when non-zero."
            },
            {
              "name": "DepthCompare",
              "anchor": "UnlitPipelineOptions.DepthCompare",
              "kind": "field",
              "doc": "DepthCompare overrides the depth comparison function when DepthFormat is set; zero defaults to [gpu.CompareLess]."
            },
            {
              "name": "AlphaMode",
              "anchor": "UnlitPipelineOptions.AlphaMode",
              "kind": "field",
              "doc": "AlphaMode selects blending and depth-write state: [AlphaOpaque] and [AlphaMask] write depth without color blending; [AlphaBlend] uses straight alpha blending ([gpu.BlendAlpha]) with depth writes disabled."
            },
            {
              "name": "DoubleSided",
              "anchor": "UnlitPipelineOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables backface culling ([gpu.CullNone]); when false, back faces are culled ([gpu.CullBack], counter-clockwise front faces)."
            },
            {
              "name": "LinearOutput",
              "anchor": "UnlitPipelineOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput writes the linear color ([UnlitSample].Linear) through fs_linear instead of encoding it to sRGB in fs_main, for an [HDRTarget] that a [ToneMapPass] resolves. fs_linear is also chosen whenever ColorFormat is sRGB, because the hardware encodes on write there. [NewMaterialPipeline] does not switch on an sRGB ColorFormat, so give both pipelines a non-sRGB target when they draw into the same pass."
            },
            {
              "name": "SampleCount",
              "anchor": "UnlitPipelineOptions.SampleCount",
              "kind": "field",
              "doc": "SampleCount is the MSAA sample count (0 or 1 disables multisampling)."
            },
            {
              "name": "Retained",
              "anchor": "UnlitPipelineOptions.Retained",
              "kind": "field",
              "doc": "Retained opts the pipeline into automatic recreation after device loss."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UnlitSample",
          "anchor": "UnlitSample",
          "decl": "type UnlitSample struct {\n\t// Linear holds the evaluated linear RGBA color (with alpha 1.0 for [AlphaOpaque] and surviving [AlphaMask] fragments).\n\tLinear [4]float32\n\t// SRGB holds the IEC 61966-2-1 sRGB-encoded RGB and linear alpha in [0, 1], matching [UnlitWGSL]'s fs_main output.\n\tSRGB [4]float32\n\t// Discarded is true when AlphaMode is [AlphaMask] and the combined alpha is strictly less than AlphaCutoff.\n\tDiscarded bool\n}",
          "doc": "UnlitSample is the pure-Go CPU reference result produced by [EvaluateUnlit], matching [UnlitWGSL].\n",
          "file": "pkg/render3d/unlit.go",
          "line": 1002,
          "members": [
            {
              "name": "Linear",
              "anchor": "UnlitSample.Linear",
              "kind": "field",
              "doc": "Linear holds the evaluated linear RGBA color (with alpha 1.0 for [AlphaOpaque] and surviving [AlphaMask] fragments)."
            },
            {
              "name": "SRGB",
              "anchor": "UnlitSample.SRGB",
              "kind": "field",
              "doc": "SRGB holds the IEC 61966-2-1 sRGB-encoded RGB and linear alpha in [0, 1], matching [UnlitWGSL]'s fs_main output."
            },
            {
              "name": "Discarded",
              "anchor": "UnlitSample.Discarded",
              "kind": "field",
              "doc": "Discarded is true when AlphaMode is [AlphaMask] and the combined alpha is strictly less than AlphaCutoff."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "EvaluateUnlit",
              "anchor": "EvaluateUnlit",
              "decl": "func EvaluateUnlit(mat UnlitMaterial, texLinear, vertexColor [4]float32) UnlitSample",
              "doc": "EvaluateUnlit evaluates the exact glTF KHR_materials_unlit shading equation on the CPU:\n\n\tbase = mat.BaseColorFactor * texLinear * (mat.UseVertexColor ? vertexColor : [1,1,1,1])\n\napplying AlphaMode (forcing alpha to 1.0 for opaque, discarding when alpha < AlphaCutoff for mask, or clamping alpha to [0, 1] for blend) and encoding linear RGB to sRGB via the IEC 61966-2-1 transfer curve.\n\nPass texLinear = [4]float32{1, 1, 1, 1} when no texture is bound (or decode an sRGB texel to linear RGB + linear alpha first), and vertexColor = [4]float32{1, 1, 1, 1} when COLOR_0 is omitted.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 1050
            }
          ],
          "methods": [
            {
              "name": "BlendOver",
              "anchor": "UnlitSample.BlendOver",
              "recv": "UnlitSample",
              "decl": "func (s UnlitSample) BlendOver(dst color.RGBA) color.RGBA",
              "doc": "BlendOver composites s over an sRGB RGBA8 destination pixel using straight-alpha blending ([gpu.BlendAlpha]), matching [AlphaBlend] on a FormatRGBA8Unorm target. When s.Discarded is true, dst is returned unchanged.\n",
              "file": "pkg/render3d/unlit.go",
              "line": 1025
            },
            {
              "name": "RGBA8",
              "anchor": "UnlitSample.RGBA8",
              "recv": "UnlitSample",
              "decl": "func (s UnlitSample) RGBA8() color.RGBA",
              "doc": "RGBA8 quantizes s.SRGB into an 8-bit [color.RGBA] matching an RGBA8Unorm framebuffer pixel (or zero when s.Discarded is true).\n",
              "file": "pkg/render3d/unlit.go",
              "line": 1012
            }
          ]
        },
        {
          "name": "UploadFrameStats",
          "anchor": "UploadFrameStats",
          "decl": "type UploadFrameStats struct {\n\t// BytesUploaded is the exact number of bytes written to the GPU during this Step.\n\tBytesUploaded int\n\t// Completed is the number of uploads that finished and invoked onReady with a resource.\n\tCompleted int\n\t// Failed is the number of uploads that failed during this Step.\n\tFailed int\n\t// Canceled is the number of uploads that were canceled during this Step.\n\tCanceled int\n\t// Pending is the number of unfinished uploads remaining after this Step.\n\tPending int\n\t// InFlightDecodes is the number of decode callbacks currently running on worker goroutines.\n\tInFlightDecodes int\n\t// FrameDuration is the wall-clock time spent inside this Step call.\n\tFrameDuration time.Duration\n}",
          "doc": "UploadFrameStats summarizes the work performed by one [Uploader.Step] call.\n",
          "file": "pkg/render3d/uploader.go",
          "line": 126,
          "members": [
            {
              "name": "BytesUploaded",
              "anchor": "UploadFrameStats.BytesUploaded",
              "kind": "field",
              "doc": "BytesUploaded is the exact number of bytes written to the GPU during this Step."
            },
            {
              "name": "Completed",
              "anchor": "UploadFrameStats.Completed",
              "kind": "field",
              "doc": "Completed is the number of uploads that finished and invoked onReady with a resource."
            },
            {
              "name": "Failed",
              "anchor": "UploadFrameStats.Failed",
              "kind": "field",
              "doc": "Failed is the number of uploads that failed during this Step."
            },
            {
              "name": "Canceled",
              "anchor": "UploadFrameStats.Canceled",
              "kind": "field",
              "doc": "Canceled is the number of uploads that were canceled during this Step."
            },
            {
              "name": "Pending",
              "anchor": "UploadFrameStats.Pending",
              "kind": "field",
              "doc": "Pending is the number of unfinished uploads remaining after this Step."
            },
            {
              "name": "InFlightDecodes",
              "anchor": "UploadFrameStats.InFlightDecodes",
              "kind": "field",
              "doc": "InFlightDecodes is the number of decode callbacks currently running on worker goroutines."
            },
            {
              "name": "FrameDuration",
              "anchor": "UploadFrameStats.FrameDuration",
              "kind": "field",
              "doc": "FrameDuration is the wall-clock time spent inside this Step call."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UploadHandle",
          "anchor": "UploadHandle",
          "decl": "type UploadHandle struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "UploadHandle tracks one queued upload and allows inspecting its progress or canceling it from any goroutine.\n",
          "file": "pkg/render3d/uploader.go",
          "line": 144,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Cancel",
              "anchor": "UploadHandle.Cancel",
              "recv": "*UploadHandle",
              "decl": "func (h *UploadHandle) Cancel()",
              "doc": "Cancel requests cancellation of the upload. It is safe to call from any goroutine and safe to call more than once. Any partially created GPU resources are released on the next [Uploader.Step] (or [Uploader.Close]).\n",
              "file": "pkg/render3d/uploader.go",
              "line": 223
            },
            {
              "name": "Done",
              "anchor": "UploadHandle.Done",
              "recv": "*UploadHandle",
              "decl": "func (h *UploadHandle) Done() <-chan struct{}",
              "doc": "Done returns a channel that is closed when the upload reaches a terminal state ([UploadReady], [UploadFailed], or [UploadCanceled]).\n",
              "file": "pkg/render3d/uploader.go",
              "line": 213
            },
            {
              "name": "Err",
              "anchor": "UploadHandle.Err",
              "recv": "*UploadHandle",
              "decl": "func (h *UploadHandle) Err() error",
              "doc": "Err returns the terminal error once the upload has failed or been canceled, or nil while in progress or after reaching [UploadReady].\n",
              "file": "pkg/render3d/uploader.go",
              "line": 202
            },
            {
              "name": "Progress",
              "anchor": "UploadHandle.Progress",
              "recv": "*UploadHandle",
              "decl": "func (h *UploadHandle) Progress() (uploaded, total int64)",
              "doc": "Progress returns (uploaded, total) bytes for the GPU transfer stage. Both values are 0 while the asset is still queued or decoding.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 194
            },
            {
              "name": "State",
              "anchor": "UploadHandle.State",
              "recv": "*UploadHandle",
              "decl": "func (h *UploadHandle) State() UploadState",
              "doc": "State returns the current lifecycle state of the upload.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 186
            }
          ]
        },
        {
          "name": "UploadPriority",
          "anchor": "UploadPriority",
          "decl": "type UploadPriority int",
          "doc": "UploadPriority orders queued decodes and GPU uploads inside an [Uploader]. Higher priorities preempt lower ones; equal priorities preserve FIFO order.\n",
          "file": "pkg/render3d/uploader.go",
          "line": 39,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "PriorityLow",
                  "anchor": "PriorityLow"
                },
                {
                  "name": "PriorityNormal",
                  "anchor": "PriorityNormal"
                },
                {
                  "name": "PriorityHigh",
                  "anchor": "PriorityHigh"
                }
              ],
              "decl": "const (\n\t// PriorityLow is intended for background prefetching and distant assets.\n\tPriorityLow UploadPriority = -1\n\t// PriorityNormal is the default priority for standard asset streaming.\n\tPriorityNormal UploadPriority = 0\n\t// PriorityHigh is intended for immediately visible hero assets.\n\tPriorityHigh UploadPriority = 1\n)",
              "doc": "",
              "file": "pkg/render3d/uploader.go",
              "line": 41
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UploadState",
          "anchor": "UploadState",
          "decl": "type UploadState uint8",
          "doc": "UploadState reports the lifecycle stage of an [UploadHandle].\n",
          "file": "pkg/render3d/uploader.go",
          "line": 51,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "UploadQueued",
                  "anchor": "UploadQueued"
                },
                {
                  "name": "UploadDecoding",
                  "anchor": "UploadDecoding"
                },
                {
                  "name": "UploadUploading",
                  "anchor": "UploadUploading"
                },
                {
                  "name": "UploadReady",
                  "anchor": "UploadReady"
                },
                {
                  "name": "UploadFailed",
                  "anchor": "UploadFailed"
                },
                {
                  "name": "UploadCanceled",
                  "anchor": "UploadCanceled"
                }
              ],
              "decl": "const (\n\t// UploadQueued means the upload is waiting for a decode worker goroutine.\n\tUploadQueued UploadState = iota\n\t// UploadDecoding means a background worker is running the decode callback and preparing packed CPU staging bytes, or the decoded asset is waiting for the [Uploader.Step] that starts its upload.\n\tUploadDecoding\n\t// UploadUploading means the GPU resource is allocated and being streamed across frames by [Uploader.Step].\n\tUploadUploading\n\t// UploadReady means all bytes have been uploaded; onReady is called right after the state changes.\n\tUploadReady\n\t// UploadFailed means decoding, validation, or GPU upload failed.\n\tUploadFailed\n\t// UploadCanceled means the upload was canceled before completion.\n\tUploadCanceled\n)",
              "doc": "",
              "file": "pkg/render3d/uploader.go",
              "line": 53
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "UploadState.String",
              "recv": "UploadState",
              "decl": "func (s UploadState) String() string",
              "doc": "String returns a human-readable name for s.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 69
            }
          ]
        },
        {
          "name": "Uploader",
          "anchor": "Uploader",
          "decl": "type Uploader struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Uploader decodes meshes, textures, and raw buffers on background goroutines and streams them onto a [gpu.Device] during [Uploader.Step] without exceeding a configurable per-frame byte budget.\n\nCall [Uploader.Step] once per frame from the engine goroutine (for example, inside [gpu.ViewProps.OnFrame]). All GPU resource creation, chunked writes, and onReady callbacks run on the goroutine calling Step, or on the one calling [Uploader.Close], which must be the same. The Queue methods, [UploadHandle] methods, [Uploader.SetBytesPerFrame], [Uploader.SetChunkBytes], [Uploader.Pending] and [Uploader.InFlightDecodes] are safe to call from any goroutine.\n",
          "file": "pkg/render3d/uploader.go",
          "line": 478,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewUploader",
              "anchor": "NewUploader",
              "decl": "func NewUploader(cx *core.Scope, dev *gpu.Device, opts UploaderOptions) *Uploader",
              "doc": "NewUploader creates a budgeted asynchronous GPU uploader bound to dev and scoped to cx. When cx is non-nil, disposing cx automatically closes the uploader and joins its worker goroutines. Pass cx == nil in headless tests and call [Uploader.Close] explicitly.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 504
            }
          ],
          "methods": [
            {
              "name": "BytesPerFrame",
              "anchor": "Uploader.BytesPerFrame",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) BytesPerFrame() int",
              "doc": "BytesPerFrame returns the current per-frame GPU upload byte budget.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 554
            },
            {
              "name": "ChunkBytes",
              "anchor": "Uploader.ChunkBytes",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) ChunkBytes() int",
              "doc": "ChunkBytes returns the maximum size of a single GPU write chunk.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 567
            },
            {
              "name": "Close",
              "anchor": "Uploader.Close",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) Close() error",
              "doc": "Close cancels every unfinished upload, waits for the decode workers to exit, releases partially uploaded GPU resources, and calls the onReady of each unfinished upload with [ErrUploaderClosed] (or with the error it had already failed with). Resources already delivered stay owned by their scope or caller. Call Close on the goroutine that calls [Uploader.Step], as it releases GPU resources and runs onReady callbacks; disposing the scope passed to [NewUploader] does. Close may be called more than once, and from an onReady callback.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 1419
            },
            {
              "name": "InFlightDecodes",
              "anchor": "Uploader.InFlightDecodes",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) InFlightDecodes() int",
              "doc": "InFlightDecodes returns the number of decode callbacks currently executing on background worker goroutines.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 587
            },
            {
              "name": "Pending",
              "anchor": "Uploader.Pending",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) Pending() int",
              "doc": "Pending returns the number of unfinished uploads (queued, decoding, or actively streaming).\n",
              "file": "pkg/render3d/uploader.go",
              "line": 580
            },
            {
              "name": "QueueMesh",
              "anchor": "Uploader.QueueMesh",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) QueueMesh(ctx context.Context, priority UploadPriority, decode func(context.Context) (Mesh, error), onReady func(*GPUMesh, error), opts MeshUpload) *UploadHandle",
              "doc": "QueueMesh runs decode on a background worker, validates and packs the mesh there, and uploads its vertex and index buffers across [Uploader.Step] calls within the per-frame byte budget. opts are the same [MeshUpload] options [UploadMesh] takes, so a streamed mesh is the same [GPUMesh] a synchronous upload returns, and priority orders it against the other queued uploads.\n\nonReady runs on the goroutine that calls [Uploader.Step] once every byte is uploaded, or with an error when decoding, validation or the upload fails or is canceled, or when [Uploader.Close] aborts it. Errors the call can report at once (a nil decode, a closed uploader, or a full queue under [UploaderOptions.MaxPending]) call onReady on the caller's goroutine before QueueMesh returns. onReady may be nil.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 596
            },
            {
              "name": "QueueRawBuffer",
              "anchor": "Uploader.QueueRawBuffer",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) QueueRawBuffer(ctx context.Context, priority UploadPriority, decode func(context.Context) (RawBufferUpload, error), onReady func(*gpu.Buffer, error)) *UploadHandle",
              "doc": "QueueRawBuffer runs decode on a background worker and streams the raw GPU buffer bytes it returns across [Uploader.Step] calls within the per-frame byte budget.\n\nonReady is called as [Uploader.QueueMesh] describes.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 648
            },
            {
              "name": "QueueRawTexture",
              "anchor": "Uploader.QueueRawTexture",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) QueueRawTexture(ctx context.Context, priority UploadPriority, decode func(context.Context) (RawTextureUpload, error), onReady func(*gpu.Texture, error)) *UploadHandle",
              "doc": "QueueRawTexture runs decode on a background worker and streams the pre-encoded uncompressed or block-compressed mip levels, array layers or cube faces it returns across [Uploader.Step] calls within the per-frame byte budget.\n\nonReady is called as [Uploader.QueueMesh] describes.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 665
            },
            {
              "name": "QueueTexture",
              "anchor": "Uploader.QueueTexture",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) QueueTexture(ctx context.Context, priority UploadPriority, decode func(context.Context) (image.Image, error), onReady func(*GPUTexture, error), opts TextureUpload) *UploadHandle",
              "doc": "QueueTexture runs decode on a background worker, converts the image there exactly as [UploadTexture] does ([PixelBufferFromImage], so translucent images upload with straight alpha), builds the mip chain there when opts.Mipmaps is set (box-filtered in linear light for sRGB textures, as [UploadTexturePixels] does), and streams mip levels and row bands to the GPU across [Uploader.Step] calls within the per-frame byte budget. The [GPUTexture] it delivers holds the same texels a synchronous [UploadTexture] with the same opts would, so it works with [BindTexture] and [GPUTexture.ByteSize].\n\nonReady is called as [Uploader.QueueMesh] describes.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 614
            },
            {
              "name": "QueueTexturePixels",
              "anchor": "Uploader.QueueTexturePixels",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) QueueTexturePixels(ctx context.Context, priority UploadPriority, decode func(context.Context) (PixelBuffer, error), onReady func(*GPUTexture, error), opts TextureUpload) *UploadHandle",
              "doc": "QueueTexturePixels is [Uploader.QueueTexture] for raw [PixelBuffer] data, matching [UploadTexturePixels]: the buffer is validated, and RG8 or R8 data keeps its format. The decoded buffer's Pixels must not change until the handle is done.\n\nonReady is called as [Uploader.QueueMesh] describes.\n",
              "file": "pkg/render3d/uploader.go",
              "line": 630
            },
            {
              "name": "SetBytesPerFrame",
              "anchor": "Uploader.SetBytesPerFrame",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) SetBytesPerFrame(n int)",
              "doc": "SetBytesPerFrame adjusts the per-frame GPU upload byte budget at runtime. Values <= 0 restore [DefaultUploadBytesPerFrame].\n",
              "file": "pkg/render3d/uploader.go",
              "line": 559
            },
            {
              "name": "SetChunkBytes",
              "anchor": "Uploader.SetChunkBytes",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) SetChunkBytes(n int)",
              "doc": "SetChunkBytes adjusts the per-write chunk granularity at runtime. Values <= 0 restore [DefaultUploadChunkBytes].\n",
              "file": "pkg/render3d/uploader.go",
              "line": 572
            },
            {
              "name": "Step",
              "anchor": "Uploader.Step",
              "recv": "*Uploader",
              "decl": "func (u *Uploader) Step() UploadFrameStats",
              "doc": "Step advances GPU uploads on the engine goroutine without exceeding the configured per-frame byte budget. Call once per frame (for example inside [gpu.ViewProps.OnFrame]).\n",
              "file": "pkg/render3d/uploader.go",
              "line": 903
            }
          ]
        },
        {
          "name": "UploaderOptions",
          "anchor": "UploaderOptions",
          "decl": "type UploaderOptions struct {\n\t// BytesPerFrame caps how many bytes [Uploader.Step] writes to the GPU per call. Defaults to [DefaultUploadBytesPerFrame] (4 MiB) when <= 0. Adjustable at runtime via [Uploader.SetBytesPerFrame].\n\tBytesPerFrame int\n\n\t// ChunkBytes caps each individual buffer or texture write chunk so large assets split cleanly across frames. Defaults to [DefaultUploadChunkBytes] (256 KiB) when <= 0, and is clamped to BytesPerFrame during [Uploader.Step].\n\tChunkBytes int\n\n\t// Workers is the number of background goroutines executing decode callbacks and CPU data packing. Defaults to min(runtime.GOMAXPROCS(0), 4) (at least 1) when <= 0.\n\tWorkers int\n\n\t// MaxPending optionally limits the number of unfinished uploads (queued, decoding, and uploading). When > 0 and reached, Queue* fails immediately with [ErrUploadQueueFull].\n\tMaxPending int\n}",
          "doc": "UploaderOptions configures [NewUploader]. Zero values receive sensible defaults.\n",
          "file": "pkg/render3d/uploader.go",
          "line": 89,
          "members": [
            {
              "name": "BytesPerFrame",
              "anchor": "UploaderOptions.BytesPerFrame",
              "kind": "field",
              "doc": "BytesPerFrame caps how many bytes [Uploader.Step] writes to the GPU per call. Defaults to [DefaultUploadBytesPerFrame] (4 MiB) when <= 0. Adjustable at runtime via [Uploader.SetBytesPerFrame]."
            },
            {
              "name": "ChunkBytes",
              "anchor": "UploaderOptions.ChunkBytes",
              "kind": "field",
              "doc": "ChunkBytes caps each individual buffer or texture write chunk so large assets split cleanly across frames. Defaults to [DefaultUploadChunkBytes] (256 KiB) when <= 0, and is clamped to BytesPerFrame during [Uploader.Step]."
            },
            {
              "name": "Workers",
              "anchor": "UploaderOptions.Workers",
              "kind": "field",
              "doc": "Workers is the number of background goroutines executing decode callbacks and CPU data packing. Defaults to min(runtime.GOMAXPROCS(0), 4) (at least 1) when <= 0."
            },
            {
              "name": "MaxPending",
              "anchor": "UploaderOptions.MaxPending",
              "kind": "field",
              "doc": "MaxPending optionally limits the number of unfinished uploads (queued, decoding, and uploading). When > 0 and reached, Queue* fails immediately with [ErrUploadQueueFull]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ViewportContext",
          "anchor": "ViewportContext",
          "decl": "type ViewportContext struct {\n\t// ViewIndex is the index of this view in the caller's original views slice.\n\tViewIndex int\n\t// View is the CameraView being rendered.\n\tView CameraView\n\t// Camera is a per-view copy of View.Camera with Projection.Aspect matched to Viewport (unless View.PreserveAspect is true). View.Camera is never mutated.\n\tCamera scene3d.Camera\n\t// Uniform is the [CameraUniform] uploaded into CameraBindGroup for this view.\n\tUniform CameraUniform\n\t// LayerMask is View.EffectiveLayerMask().\n\tLayerMask uint32\n\t// Viewport is the resolved, clamped pixel rectangle already applied to Pass via SetViewport and SetScissor.\n\tViewport PixelViewport\n\t// CameraBindGroup is the per-view uniform bind group already bound at [CameraGroup] on Pass.\n\tCameraBindGroup *gpu.BindGroup\n\t// Pass is the active [gpu.RenderPass]. Do not call Pass.End(); the renderer ends passes automatically when switching targets or finishing the frame.\n\tPass *gpu.RenderPass\n}",
          "doc": "ViewportContext carries the resolved camera, layer mask, pixel viewport, per-view camera bind group, and active [gpu.RenderPass] for one view rendered by [ViewportRenderer].\n",
          "file": "pkg/render3d/viewport.go",
          "line": 738,
          "members": [
            {
              "name": "ViewIndex",
              "anchor": "ViewportContext.ViewIndex",
              "kind": "field",
              "doc": "ViewIndex is the index of this view in the caller's original views slice."
            },
            {
              "name": "View",
              "anchor": "ViewportContext.View",
              "kind": "field",
              "doc": "View is the CameraView being rendered."
            },
            {
              "name": "Camera",
              "anchor": "ViewportContext.Camera",
              "kind": "field",
              "doc": "Camera is a per-view copy of View.Camera with Projection.Aspect matched to Viewport (unless View.PreserveAspect is true). View.Camera is never mutated."
            },
            {
              "name": "Uniform",
              "anchor": "ViewportContext.Uniform",
              "kind": "field",
              "doc": "Uniform is the [CameraUniform] uploaded into CameraBindGroup for this view."
            },
            {
              "name": "LayerMask",
              "anchor": "ViewportContext.LayerMask",
              "kind": "field",
              "doc": "LayerMask is View.EffectiveLayerMask()."
            },
            {
              "name": "Viewport",
              "anchor": "ViewportContext.Viewport",
              "kind": "field",
              "doc": "Viewport is the resolved, clamped pixel rectangle already applied to Pass via SetViewport and SetScissor."
            },
            {
              "name": "CameraBindGroup",
              "anchor": "ViewportContext.CameraBindGroup",
              "kind": "field",
              "doc": "CameraBindGroup is the per-view uniform bind group already bound at [CameraGroup] on Pass."
            },
            {
              "name": "Pass",
              "anchor": "ViewportContext.Pass",
              "kind": "field",
              "doc": "Pass is the active [gpu.RenderPass]. Do not call Pass.End(); the renderer ends passes automatically when switching targets or finishing the frame."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ViewportRect",
          "anchor": "ViewportRect",
          "decl": "type ViewportRect struct {\n\tX        float32\n\tY        float32\n\tWidth    float32\n\tHeight   float32\n\tMinDepth float32\n\tMaxDepth float32\n}",
          "doc": "ViewportRect describes a normalized sub-rectangle of a render target in [0, 1] top-left coordinates (matching NSGo's GPU viewport and scissor convention), together with its clip-depth range [MinDepth, MaxDepth].\n\nThe zero value (Width == 0 && Height == 0) represents the full target [0, 0, 1, 1] with depth range [0, 1]. A depth range of [0, 0] also means [0, 1], so a viewport cannot pin depth to exactly 0.\n",
          "file": "pkg/render3d/viewport.go",
          "line": 398,
          "members": [
            {
              "name": "X",
              "anchor": "ViewportRect.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ViewportRect.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "ViewportRect.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "ViewportRect.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MinDepth",
              "anchor": "ViewportRect.MinDepth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxDepth",
              "anchor": "ViewportRect.MaxDepth",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FullViewport",
              "anchor": "FullViewport",
              "decl": "func FullViewport() ViewportRect",
              "doc": "FullViewport returns a [ViewportRect] covering the entire render target with depth range [0, 1].\n",
              "file": "pkg/render3d/viewport.go",
              "line": 408
            },
            {
              "name": "SplitScreenHorizontal",
              "anchor": "SplitScreenHorizontal",
              "decl": "func SplitScreenHorizontal(count int) []ViewportRect",
              "doc": "SplitScreenHorizontal arranges count viewports horizontally side by side across the X axis (alias of [SplitScreenSideBySide]).\n",
              "file": "pkg/render3d/viewport.go",
              "line": 466
            },
            {
              "name": "SplitScreenQuad",
              "anchor": "SplitScreenQuad",
              "decl": "func SplitScreenQuad() [4]ViewportRect",
              "doc": "SplitScreenQuad returns four quadrant [ViewportRect] tiles ordered top-left, top-right, bottom-left, bottom-right for 4-player split screen.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 476
            },
            {
              "name": "SplitScreenSideBySide",
              "anchor": "SplitScreenSideBySide",
              "decl": "func SplitScreenSideBySide(count int) []ViewportRect",
              "doc": "SplitScreenSideBySide returns count equal-width full-height [ViewportRect] columns arranged left to right across the target (for example, 2-player side-by-side split screen). Returns nil if count <= 0.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 430
            },
            {
              "name": "SplitScreenStacked",
              "anchor": "SplitScreenStacked",
              "decl": "func SplitScreenStacked(count int) []ViewportRect",
              "doc": "SplitScreenStacked returns count equal-height full-width [ViewportRect] rows arranged top to bottom down the target. Returns nil if count <= 0.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 448
            },
            {
              "name": "SplitScreenVertical",
              "anchor": "SplitScreenVertical",
              "decl": "func SplitScreenVertical(count int) []ViewportRect",
              "doc": "SplitScreenVertical arranges count viewports vertically stacked down the Y axis (alias of [SplitScreenStacked]).\n",
              "file": "pkg/render3d/viewport.go",
              "line": 471
            },
            {
              "name": "ViewportFromPixels",
              "anchor": "ViewportFromPixels",
              "decl": "func ViewportFromPixels(x, y, width, height float32, targetWidth, targetHeight int) ViewportRect",
              "doc": "ViewportFromPixels converts a pixel-space top-left rectangle into a normalized [ViewportRect] relative to a target of size targetWidth x targetHeight. Returns the zero ViewportRect if targetWidth or targetHeight is non-positive.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 413
            }
          ],
          "methods": [
            {
              "name": "Aspect",
              "anchor": "ViewportRect.Aspect",
              "recv": "ViewportRect",
              "decl": "func (r ViewportRect) Aspect(targetWidth, targetHeight int) float32",
              "doc": "Aspect returns the resolved pixel aspect ratio (width / height) of r inside a target of size targetWidth x targetHeight, or zero if resolution fails.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 564
            },
            {
              "name": "Normalized",
              "anchor": "ViewportRect.Normalized",
              "recv": "ViewportRect",
              "decl": "func (r ViewportRect) Normalized() ViewportRect",
              "doc": "Normalized returns r with zero defaults filled in: an all-zero spatial rect becomes [0, 0, 1, 1] and a zero depth range becomes [0, 1].\n",
              "file": "pkg/render3d/viewport.go",
              "line": 514
            },
            {
              "name": "Resolve",
              "anchor": "ViewportRect.Resolve",
              "recv": "ViewportRect",
              "decl": "func (r ViewportRect) Resolve(targetWidth, targetHeight int) (PixelViewport, bool)",
              "doc": "Resolve converts r into clamped pixel coordinates for a render target of size targetWidth x targetHeight. Both left/right and top/bottom edges are rounded independently so adjacent split-screen rects tile seamlessly with zero gaps and zero pixel overlap across seams. Returns (zero, false) if r is invalid, target dimensions are non-positive, or the resolved pixel area is empty.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 536
            },
            {
              "name": "Validate",
              "anchor": "ViewportRect.Validate",
              "recv": "ViewportRect",
              "decl": "func (r ViewportRect) Validate() error",
              "doc": "Validate checks that r has finite coordinates within [0, 1], valid non-zero dimensions (or an all-zero full-target default), and a valid depth range 0 <= MinDepth <= MaxDepth <= 1. Every error wraps [ErrInvalidViewport].\n",
              "file": "pkg/render3d/viewport.go",
              "line": 486
            }
          ]
        },
        {
          "name": "ViewportRenderer",
          "anchor": "ViewportRenderer",
          "decl": "type ViewportRenderer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ViewportRenderer orchestrates multi-camera frames combining offscreen render-to-texture passes ([RenderTexture]) and multiple viewports on the same target (such as side-by-side split screen or picture-in-picture overlays).\n\nEach active view receives its own retained camera uniform buffer bound at [CameraGroup] so multiple cameras rendered within one [gpu.Encoder] or [gpu.Frame] never overwrite each other's uniform data before GPU execution. Adjacent views targeting the same surface share a single [gpu.RenderPass] unless a view requests [CameraView.ResetDepth].\n\nThe uniform slots are reused by every call, so call [ViewportRenderer.RenderFrame] or [ViewportRenderer.RenderEncoder] at most once per submitted frame or command buffer: a second call on the same renderer before submission overwrites the first call's camera uniforms before the GPU runs its passes. Use a separate ViewportRenderer for each call that shares one submission.\n",
          "file": "pkg/render3d/viewport.go",
          "line": 776,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewViewportRenderer",
              "anchor": "NewViewportRenderer",
              "decl": "func NewViewportRenderer(cx *core.Scope, dev *gpu.Device) (*ViewportRenderer, error)",
              "doc": "NewViewportRenderer creates a [ViewportRenderer] on dev scoped to cx, with a shared camera bind group layout matching [CameraGroup] and [CameraWGSL]. Pipelines rendering through the renderer list [ViewportRenderer.CameraLayout] at [CameraGroup].\n",
              "file": "pkg/render3d/viewport.go",
              "line": 790
            },
            {
              "name": "NewViewportRendererWithLayout",
              "anchor": "NewViewportRendererWithLayout",
              "decl": "func NewViewportRendererWithLayout(cx *core.Scope, dev *gpu.Device, camLayout *gpu.BindGroupLayout) (*ViewportRenderer, error)",
              "doc": "NewViewportRendererWithLayout creates a [ViewportRenderer] that binds its per-view camera uniform buffers against an existing camera bind group layout (for example, [CameraBuffer.Layout]). Closing the renderer does not close camLayout.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 814
            }
          ],
          "methods": [
            {
              "name": "CameraLayout",
              "anchor": "ViewportRenderer.CameraLayout",
              "recv": "*ViewportRenderer",
              "decl": "func (r *ViewportRenderer) CameraLayout() *gpu.BindGroupLayout",
              "doc": "CameraLayout returns the bind group layout pipelines list at [CameraGroup] when drawing through r, or nil for a nil receiver.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 830
            },
            {
              "name": "Close",
              "anchor": "ViewportRenderer.Close",
              "recv": "*ViewportRenderer",
              "decl": "func (r *ViewportRenderer) Close() error",
              "doc": "Close releases all GPU resources owned by r (its per-view uniform buffers, bind groups, and camera layout when created by [NewViewportRenderer]). Safe to call on a nil receiver or more than once.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 843
            },
            {
              "name": "RenderEncoder",
              "anchor": "ViewportRenderer.RenderEncoder",
              "recv": "*ViewportRenderer",
              "decl": "func (r *ViewportRenderer) RenderEncoder(dev *gpu.Device, enc *gpu.Encoder, surface SurfaceDesc, views []CameraView, draw func(ViewportContext)) error",
              "doc": "RenderEncoder renders all active views in execution order (offscreen [RenderTexture] views first, then main-surface viewports) into enc (for example on [gpu.NewSoftwareRenderer]). dev is the device enc was begun on: a device restored after a loss is a new [*gpu.Device], and per-view camera bind groups created on any other device are dropped by the pass (nsgo-dev/nsgo#2345). The caller submits enc.Finish().\n",
              "file": "pkg/render3d/viewport.go",
              "line": 881
            },
            {
              "name": "RenderFrame",
              "anchor": "ViewportRenderer.RenderFrame",
              "recv": "*ViewportRenderer",
              "decl": "func (r *ViewportRenderer) RenderFrame(frame *gpu.Frame, surface SurfaceDesc, views []CameraView, draw func(ViewportContext)) error",
              "doc": "RenderFrame renders all active views in execution order (offscreen [RenderTexture] views first, then main-surface viewports) into frame. When surface.Width or surface.Height is non-positive, both default to frame.Size(). It does not call frame.Submit(); the caller submits once all work is recorded.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 870
            },
            {
              "name": "Valid",
              "anchor": "ViewportRenderer.Valid",
              "recv": "*ViewportRenderer",
              "decl": "func (r *ViewportRenderer) Valid() bool",
              "doc": "Valid reports whether r is open and its camera bind group layout belongs to a live device.\n",
              "file": "pkg/render3d/viewport.go",
              "line": 838
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/replay",
      "name": "replay",
      "dir": "pkg/replay",
      "page": "pkg/replay",
      "synopsis": "Package replay records per-step game input to versioned YAML text files and plays it back deterministically for debugging and automated tests.",
      "doc": "Package replay records per-step game input to versioned YAML text files and plays it back deterministically for debugging and automated tests.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 2",
          "doc": "FormatVersion is the version written to every Recording and the only one Decode accepts.\n\nVersion 2 is the YAML text format described in Encode; version 1 was a compact JSON form that is no longer read.\n",
          "file": "pkg/replay/replay.go",
          "line": 16
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "AssertEndState",
          "anchor": "AssertEndState",
          "decl": "func AssertEndState[S any](t testing.TB, rec *Recording, want S, equal func(a, b S) bool, makeSim func(seed uint64, src ActionSource) (step func(dt time.Duration), state func() S)) S",
          "doc": "AssertEndState plays rec with Run and fails t with a diagnostic if the end state does not match want according to equal (or reflect.DeepEqual when equal is nil). It returns the end state produced by the run.\n",
          "file": "pkg/replay/testing.go",
          "line": 39
        },
        {
          "name": "Run",
          "anchor": "Run",
          "decl": "func Run[S any](t testing.TB, rec *Recording, makeSim func(seed uint64, src ActionSource) (step func(dt time.Duration), state func() S)) S",
          "doc": "Run plays rec from start to finish against the simulation returned by makeSim and returns its end state.\n\nmakeSim receives rec.Seed and a *Player as its ActionSource, and returns the per-step update function and a function returning the current state. Run calls step rec.TotalSteps times with rec.StepDuration(), matching game.Loop's fixed dt; step is expected to call src.Step() once per update, just as a live game.Loop.Update does with *input.Actions.\n",
          "file": "pkg/replay/testing.go",
          "line": 12
        },
        {
          "name": "SaveFile",
          "anchor": "SaveFile",
          "decl": "func SaveFile(path string, rec *Recording) error",
          "doc": "SaveFile writes rec to path as the YAML text Encode produces. The conventional extension is \".replay.yaml\".\n",
          "file": "pkg/replay/format.go",
          "line": 297
        }
      ],
      "types": [
        {
          "name": "ActionSource",
          "anchor": "ActionSource",
          "decl": "type ActionSource interface {\n\tPressed(name string) bool\n\tJustPressed(name string) bool\n\tJustReleased(name string) bool\n\tAxis(name string) float64\n\tStep()\n}",
          "doc": "ActionSource supplies named actions and axes sampled once per game.Loop step.\n\n*input.Actions satisfies ActionSource for live play, *Recorder wraps an ActionSource to record it, and *Player satisfies ActionSource for playback, so a game reading input through ActionSource behaves identically in all three modes.\n",
          "file": "pkg/replay/replay.go",
          "line": 23,
          "members": [
            {
              "name": "Pressed",
              "anchor": "ActionSource.Pressed",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "JustPressed",
              "anchor": "ActionSource.JustPressed",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "JustReleased",
              "anchor": "ActionSource.JustReleased",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Axis",
              "anchor": "ActionSource.Axis",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "ActionSource.Step",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AxisChange",
          "anchor": "AxisChange",
          "decl": "type AxisChange struct {\n\t// Index is the position of the axis in Recording.Axes.\n\tIndex int\n\t// Value is the axis value from this step on.\n\tValue float64\n}",
          "doc": "AxisChange records a new value for Recording.Axes[Index].\n",
          "file": "pkg/replay/replay.go",
          "line": 66,
          "members": [
            {
              "name": "Index",
              "anchor": "AxisChange.Index",
              "kind": "field",
              "doc": "Index is the position of the axis in Recording.Axes."
            },
            {
              "name": "Value",
              "anchor": "AxisChange.Value",
              "kind": "field",
              "doc": "Value is the axis value from this step on."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Player",
          "anchor": "Player",
          "decl": "type Player struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Player plays back a Recording as an ActionSource.\n\nEach call to Step advances one recorded step and updates the action and axis snapshots so Pressed, JustPressed, JustReleased and Axis reproduce the recorded run on every step, including transitions on step 0, multi-step holds, rapid single-step taps and axis changes.\n",
          "file": "pkg/replay/player.go",
          "line": 8,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPlayer",
              "anchor": "NewPlayer",
              "decl": "func NewPlayer(rec *Recording) *Player",
              "doc": "NewPlayer returns a Player ready to play rec from step 0. A nil rec plays as an empty recording whose Done is immediately true.\n",
              "file": "pkg/replay/player.go",
              "line": 20
            }
          ],
          "methods": [
            {
              "name": "Axis",
              "anchor": "Player.Axis",
              "recv": "*Player",
              "decl": "func (p *Player) Axis(name string) float64",
              "doc": "Axis returns the recorded value of axis name for the current step. If name is not a recorded axis, it falls back to 1 when action name is pressed and 0 otherwise, matching input.Actions.Axis.\n",
              "file": "pkg/replay/player.go",
              "line": 110
            },
            {
              "name": "Done",
              "anchor": "Player.Done",
              "recv": "*Player",
              "decl": "func (p *Player) Done() bool",
              "doc": "Done reports whether all recorded steps have been played.\n",
              "file": "pkg/replay/player.go",
              "line": 150
            },
            {
              "name": "JustPressed",
              "anchor": "Player.JustPressed",
              "recv": "*Player",
              "decl": "func (p *Player) JustPressed(name string) bool",
              "doc": "JustPressed reports whether name became pressed on the current step and was not pressed on the previous step.\n",
              "file": "pkg/replay/player.go",
              "line": 92
            },
            {
              "name": "JustReleased",
              "anchor": "Player.JustReleased",
              "recv": "*Player",
              "decl": "func (p *Player) JustReleased(name string) bool",
              "doc": "JustReleased reports whether name was pressed on the previous step and is no longer pressed on the current step.\n",
              "file": "pkg/replay/player.go",
              "line": 101
            },
            {
              "name": "Pressed",
              "anchor": "Player.Pressed",
              "recv": "*Player",
              "decl": "func (p *Player) Pressed(name string) bool",
              "doc": "Pressed reports whether name is pressed during the current step.\n",
              "file": "pkg/replay/player.go",
              "line": 83
            },
            {
              "name": "Rate",
              "anchor": "Player.Rate",
              "recv": "*Player",
              "decl": "func (p *Player) Rate() int",
              "doc": "Rate returns the fixed step rate recorded in the underlying Recording (60 when unset).\n",
              "file": "pkg/replay/player.go",
              "line": 129
            },
            {
              "name": "Reset",
              "anchor": "Player.Reset",
              "recv": "*Player",
              "decl": "func (p *Player) Reset()",
              "doc": "Reset rewinds playback to step 0 and clears the current and previous step snapshots.\n",
              "file": "pkg/replay/player.go",
              "line": 155
            },
            {
              "name": "Seed",
              "anchor": "Player.Seed",
              "recv": "*Player",
              "decl": "func (p *Player) Seed() uint64",
              "doc": "Seed returns the random seed recorded in the underlying Recording.\n",
              "file": "pkg/replay/player.go",
              "line": 121
            },
            {
              "name": "Step",
              "anchor": "Player.Step",
              "recv": "*Player",
              "decl": "func (p *Player) Step()",
              "doc": "Step advances playback by one recorded step and updates the action and axis snapshots.\n\nOnce Done is true, further calls to Step release any actions that were still pressed on the final recorded step (firing JustReleased once) and leave all actions and axes idle.\n",
              "file": "pkg/replay/player.go",
              "line": 46
            },
            {
              "name": "StepIndex",
              "anchor": "Player.StepIndex",
              "recv": "*Player",
              "decl": "func (p *Player) StepIndex() int",
              "doc": "StepIndex returns the number of steps played so far, from 0 before the first Step up to TotalSteps when Done is true.\n",
              "file": "pkg/replay/player.go",
              "line": 137
            },
            {
              "name": "TotalSteps",
              "anchor": "Player.TotalSteps",
              "recv": "*Player",
              "decl": "func (p *Player) TotalSteps() int",
              "doc": "TotalSteps returns the total number of steps in the Recording.\n",
              "file": "pkg/replay/player.go",
              "line": 142
            }
          ]
        },
        {
          "name": "Recorder",
          "anchor": "Recorder",
          "decl": "type Recorder struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Recorder wraps an ActionSource, implements ActionSource itself, and records watched actions and axes on every Step.\n\nCalling Step steps the wrapped source once and appends a StepEvent only when at least one watched action's pressed state or watched axis's value changed from the previous step. Pass a Recorder anywhere a game accepts ActionSource to record live play without changing the game's update loop.\n",
          "file": "pkg/replay/recorder.go",
          "line": 13,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRecorder",
              "anchor": "NewRecorder",
              "decl": "func NewRecorder(src ActionSource, seed uint64, rate int, actions, axes []string) *Recorder",
              "doc": "NewRecorder returns a Recorder that wraps src and records the named actions and axes with seed and fixed step rate (60 when rate <= 0).\n\nEmpty or duplicate names in actions and axes are ignored, preserving first-seen order.\n",
              "file": "pkg/replay/recorder.go",
              "line": 28
            }
          ],
          "methods": [
            {
              "name": "Axis",
              "anchor": "Recorder.Axis",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) Axis(name string) float64",
              "doc": "Axis returns the value of name on the wrapped ActionSource.\n",
              "file": "pkg/replay/recorder.go",
              "line": 138
            },
            {
              "name": "JustPressed",
              "anchor": "Recorder.JustPressed",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) JustPressed(name string) bool",
              "doc": "JustPressed reports whether name became pressed on the wrapped ActionSource on the current step.\n",
              "file": "pkg/replay/recorder.go",
              "line": 122
            },
            {
              "name": "JustReleased",
              "anchor": "Recorder.JustReleased",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) JustReleased(name string) bool",
              "doc": "JustReleased reports whether name was released on the wrapped ActionSource on the current step.\n",
              "file": "pkg/replay/recorder.go",
              "line": 130
            },
            {
              "name": "Pressed",
              "anchor": "Recorder.Pressed",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) Pressed(name string) bool",
              "doc": "Pressed reports whether name is pressed on the wrapped ActionSource.\n",
              "file": "pkg/replay/recorder.go",
              "line": 114
            },
            {
              "name": "Rate",
              "anchor": "Recorder.Rate",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) Rate() int",
              "doc": "Rate returns the fixed step rate stored in the recording.\n",
              "file": "pkg/replay/recorder.go",
              "line": 149
            },
            {
              "name": "Recording",
              "anchor": "Recorder.Recording",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) Recording() *Recording",
              "doc": "Recording returns a deep copy of everything recorded so far. Continuing to step r afterwards does not affect the returned Recording.\n",
              "file": "pkg/replay/recorder.go",
              "line": 164
            },
            {
              "name": "Reset",
              "anchor": "Recorder.Reset",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) Reset(seed uint64)",
              "doc": "Reset clears the recorded steps and events and begins a fresh recording with seed, keeping the wrapped source, rate and watched names.\n",
              "file": "pkg/replay/recorder.go",
              "line": 155
            },
            {
              "name": "Seed",
              "anchor": "Recorder.Seed",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) Seed() uint64",
              "doc": "Seed returns the random seed stored in the recording.\n",
              "file": "pkg/replay/recorder.go",
              "line": 146
            },
            {
              "name": "Step",
              "anchor": "Recorder.Step",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) Step()",
              "doc": "Step steps the wrapped ActionSource once and records any watched actions or axes whose values changed on this step.\n",
              "file": "pkg/replay/recorder.go",
              "line": 68
            },
            {
              "name": "TotalSteps",
              "anchor": "Recorder.TotalSteps",
              "recv": "*Recorder",
              "decl": "func (r *Recorder) TotalSteps() int",
              "doc": "TotalSteps returns the number of steps recorded so far.\n",
              "file": "pkg/replay/recorder.go",
              "line": 152
            }
          ]
        },
        {
          "name": "Recording",
          "anchor": "Recording",
          "decl": "type Recording struct {\n\t// Version is the format version; it must equal FormatVersion.\n\tVersion int\n\t// Seed is the random seed the recorded run started from.\n\tSeed uint64\n\t// Rate is the fixed step rate in steps per second.\n\tRate int\n\t// Actions are the watched action names that StepEvent.Press and StepEvent.Release index into.\n\tActions []string\n\t// Axes are the watched axis names that AxisChange.Index indexes into.\n\tAxes []string\n\t// TotalSteps is the number of recorded steps, including steps without events.\n\tTotalSteps int\n\t// Events are the steps where input changed, in strictly increasing Step order.\n\tEvents []StepEvent\n}",
          "doc": "Recording holds a game's random seed, fixed step rate, watched action and axis names, total step count and delta-encoded step events.\n\nOnly steps where at least one watched action's pressed state or watched axis's value changed from the previous step appear in Events, keeping long recordings compact. Encode writes a Recording as YAML text with one line per event, and Decode reads that text back.\n",
          "file": "pkg/replay/replay.go",
          "line": 34,
          "members": [
            {
              "name": "Version",
              "anchor": "Recording.Version",
              "kind": "field",
              "doc": "Version is the format version; it must equal FormatVersion."
            },
            {
              "name": "Seed",
              "anchor": "Recording.Seed",
              "kind": "field",
              "doc": "Seed is the random seed the recorded run started from."
            },
            {
              "name": "Rate",
              "anchor": "Recording.Rate",
              "kind": "field",
              "doc": "Rate is the fixed step rate in steps per second."
            },
            {
              "name": "Actions",
              "anchor": "Recording.Actions",
              "kind": "field",
              "doc": "Actions are the watched action names that StepEvent.Press and StepEvent.Release index into."
            },
            {
              "name": "Axes",
              "anchor": "Recording.Axes",
              "kind": "field",
              "doc": "Axes are the watched axis names that AxisChange.Index indexes into."
            },
            {
              "name": "TotalSteps",
              "anchor": "Recording.TotalSteps",
              "kind": "field",
              "doc": "TotalSteps is the number of recorded steps, including steps without events."
            },
            {
              "name": "Events",
              "anchor": "Recording.Events",
              "kind": "field",
              "doc": "Events are the steps where input changed, in strictly increasing Step order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Decode",
              "anchor": "Decode",
              "decl": "func Decode(data []byte) (*Recording, error)",
              "doc": "Decode reads a Recording from the YAML text Encode writes, including text a person has edited, and validates it.\n\nUnknown keys, a missing seed, total_steps or step number, names that are not in the header's actions or axes, and trailing YAML documents are refused. Steps must be listed in increasing order. A recording with another version, such as the compact JSON of version 1, is refused with an error naming that version.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile, as LoadFile does.\n",
              "file": "pkg/replay/format.go",
              "line": 173
            },
            {
              "name": "LoadFile",
              "anchor": "LoadFile",
              "decl": "func LoadFile(path string) (*Recording, error)",
              "doc": "LoadFile reads and decodes the YAML Recording at path. Its errors are *loaderr.Error values that name path.\n",
              "file": "pkg/replay/format.go",
              "line": 309
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Recording.Clone",
              "recv": "*Recording",
              "decl": "func (r *Recording) Clone() *Recording",
              "doc": "Clone returns an independent deep copy of r, or nil if r is nil.\n",
              "file": "pkg/replay/replay.go",
              "line": 180
            },
            {
              "name": "Encode",
              "anchor": "Recording.Encode",
              "recv": "*Recording",
              "decl": "func (r *Recording) Encode() ([]byte, error)",
              "doc": "Encode validates r and writes it as deterministic YAML text: a header with the version, seed, rate, watched names and total step count, then one line per step on which input changed.\n\n\tversion: 2\n\tseed: 99537266\n\trate: 60\n\tactions: [left, right, jump, dash]\n\taxes: [move_x]\n\ttotal_steps: 254\n\tsteps:\n\t  - {step: 6, press: [right], axes: {move_x: 1}}\n\t  - {step: 85, press: [jump, dash]}\n\t  - {step: 95, release: [jump, dash]}\n\nEach step line names the actions it presses and releases and the new values of the axes that changed. The same Recording always encodes to the same bytes, and Decode followed by Encode reproduces a file Encode wrote byte for byte.\n",
              "file": "pkg/replay/format.go",
              "line": 115
            },
            {
              "name": "StepDuration",
              "anchor": "Recording.StepDuration",
              "recv": "*Recording",
              "decl": "func (r *Recording) StepDuration() time.Duration",
              "doc": "StepDuration returns the fixed duration of one step, 1/Rate seconds (1/60 s when Rate <= 0).\n",
              "file": "pkg/replay/replay.go",
              "line": 74
            },
            {
              "name": "Validate",
              "anchor": "Recording.Validate",
              "recv": "*Recording",
              "decl": "func (r *Recording) Validate() error",
              "doc": "Validate checks that r uses the supported format version, has a valid rate and step count, unique non-empty action and axis names, and strictly increasing in-bounds step events. Its errors are *loaderr.Error values that name the field at fault in the YAML text Encode writes, such as \"steps[3].press[0]\", and how to fix it.\n",
              "file": "pkg/replay/replay.go",
              "line": 83
            }
          ]
        },
        {
          "name": "StepEvent",
          "anchor": "StepEvent",
          "decl": "type StepEvent struct {\n\t// Step is the zero-based step the changes take effect on.\n\tStep int\n\t// Press lists the actions that became pressed on Step.\n\tPress []int\n\t// Release lists the actions that were released on Step.\n\tRelease []int\n\t// Axes lists the axes whose value changed on Step.\n\tAxes []AxisChange\n}",
          "doc": "StepEvent holds the action and axis changes that occurred on Step.\n\nPress and Release hold indices into Recording.Actions. Axes holds index-to-value updates into Recording.Axes.\n",
          "file": "pkg/replay/replay.go",
          "line": 54,
          "members": [
            {
              "name": "Step",
              "anchor": "StepEvent.Step",
              "kind": "field",
              "doc": "Step is the zero-based step the changes take effect on."
            },
            {
              "name": "Press",
              "anchor": "StepEvent.Press",
              "kind": "field",
              "doc": "Press lists the actions that became pressed on Step."
            },
            {
              "name": "Release",
              "anchor": "StepEvent.Release",
              "kind": "field",
              "doc": "Release lists the actions that were released on Step."
            },
            {
              "name": "Axes",
              "anchor": "StepEvent.Axes",
              "kind": "field",
              "doc": "Axes lists the axes whose value changed on Step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/resource",
      "name": "resource",
      "dir": "pkg/resource",
      "page": "pkg/resource",
      "synopsis": "Package resource reads, validates and writes shared resource files: reusable data that scenes and code reference by path instead of repeating it, as Godot's .tres files are.",
      "doc": "Package resource reads, validates and writes shared resource files: reusable data that scenes and code reference by path instead of repeating it, as Godot's .tres files are.\n\n# Files\n\nA resource file is one YAML document that starts with a common header, the resource's type, the schema version and an optional uid, followed by the fields of that type:\n\n\ttype: material\n\tversion: 1\n\tbaseColor: \"#8a8f99\"\n\topacity: 0.75\n\tblend: multiply\n\nThe uid (Header.UID) is the file's stable ID, made once by NewUID, which stays the same when the file is renamed or moved so that package refs can find it again.\n\nThe types are material (Material), curve (Curve), gradient (Gradient), animation (Animation), theme (Theme), busLayout (BusLayout) and physicsMaterial (PhysicsMaterial). Parse reads any of them and returns the matching type; it refuses an unknown type, a version other than CurrentVersion, unknown fields, trailing documents and values out of range. Encode writes deterministic 2-space YAML with fields in a fixed order, so a file that Encode wrote reads back with Parse and encodes to the same bytes.\n\n# Sharing\n\nA Library loads resource files from an fs.FS by slash-separated path and keeps one value per path, so every scene and every piece of code that loads the same path holds the same pointer. Library.Reload replaces a loaded resource's contents in place, so an edit to one file reaches everything that uses it; hotreload.Watcher.WatchResources calls it when a file changes on disk.\n\nsceneformat objects reference a material by path (ObjectDoc.Material) and resolve it through a resolver such as a Library, so two scenes that use one material file both change when it is edited.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the resource schema version this package reads and writes.\n",
          "file": "pkg/resource/resource.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "UIDLength",
              "anchor": "UIDLength"
            }
          ],
          "decl": "const UIDLength = 13",
          "doc": "UIDLength is how many characters a UID has.\n",
          "file": "pkg/resource/uid.go",
          "line": 10
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "BlendModes",
          "anchor": "BlendModes",
          "decl": "func BlendModes() []string",
          "doc": "BlendModes returns the names Material.Blend accepts, sorted: the canvas composite operations in camel case, such as \"sourceOver\", \"multiply\" and \"lighter\".\n",
          "file": "pkg/resource/material.go",
          "line": 66
        },
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(r Resource) ([]byte, error)",
          "doc": "Encode validates r and writes it as deterministic 2-space YAML: the header first, then the type's fields in declaration order, omitting fields left at their defaults.\n",
          "file": "pkg/resource/resource.go",
          "line": 176
        },
        {
          "name": "LoadAs",
          "anchor": "LoadAs",
          "decl": "func LoadAs[T Resource](l *Library, path string) (T, error)",
          "doc": "LoadAs loads the resource at path from l and returns it as T, failing when the file holds another type.\n",
          "file": "pkg/resource/library.go",
          "line": 57
        },
        {
          "name": "NewUID",
          "anchor": "NewUID",
          "decl": "func NewUID(r io.Reader) (string, error)",
          "doc": "NewUID returns a new UID, UIDLength characters of uidAlphabet that carry 65 random bits read from r, or from crypto/rand when r is nil. A UID is the stable ID a scene or resource file keeps in its header (SceneDoc.UID in sceneformat, Header.UID here), which stays the same when the file is renamed or moved, so the tools can find a moved file again (see package refs).\n",
          "file": "pkg/resource/uid.go",
          "line": 16
        },
        {
          "name": "ParseAs",
          "anchor": "ParseAs",
          "decl": "func ParseAs[T Resource](data []byte) (T, error)",
          "doc": "ParseAs parses data and returns it as T, failing when the file holds another type.\n",
          "file": "pkg/resource/resource.go",
          "line": 140
        },
        {
          "name": "ValidUID",
          "anchor": "ValidUID",
          "decl": "func ValidUID(s string) bool",
          "doc": "ValidUID reports whether s has the form NewUID returns: UIDLength characters, each a digit or a lower-case letter other than i, l, o and u.\n",
          "file": "pkg/resource/uid.go",
          "line": 39
        }
      ],
      "types": [
        {
          "name": "Animation",
          "anchor": "Animation",
          "decl": "type Animation struct {\n\tHeader `yaml:\",inline\"`\n\t// Name is an optional human-readable name.\n\tName string `yaml:\"name,omitempty\"`\n\t// Length is the clip's length in seconds; it must be positive.\n\tLength float32 `yaml:\"length\"`\n\t// Loop plays the clip again from the start when it ends.\n\tLoop bool `yaml:\"loop,omitempty\"`\n\t// Tracks are the clip's keyed properties; each target and property pair appears once.\n\tTracks []Track `yaml:\"tracks,omitempty\"`\n\t// Events are named cues on the clip's timeline in time order, such as a footstep sound, which a player reports as playback crosses them.\n\tEvents []Event `yaml:\"events,omitempty\"`\n}",
          "doc": "Animation is a clip of property tracks keyed over its length, played on a scene object or node.\n",
          "file": "pkg/resource/curve.go",
          "line": 157,
          "members": [
            {
              "name": "Header",
              "anchor": "Animation.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "Animation.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name."
            },
            {
              "name": "Length",
              "anchor": "Animation.Length",
              "kind": "field",
              "doc": "Length is the clip's length in seconds; it must be positive."
            },
            {
              "name": "Loop",
              "anchor": "Animation.Loop",
              "kind": "field",
              "doc": "Loop plays the clip again from the start when it ends."
            },
            {
              "name": "Tracks",
              "anchor": "Animation.Tracks",
              "kind": "field",
              "doc": "Tracks are the clip's keyed properties; each target and property pair appears once."
            },
            {
              "name": "Events",
              "anchor": "Animation.Events",
              "kind": "field",
              "doc": "Events are named cues on the clip's timeline in time order, such as a footstep sound, which a player reports as playback crosses them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ClipTime",
              "anchor": "Animation.ClipTime",
              "recv": "*Animation",
              "decl": "func (a *Animation) ClipTime(t float32) float32",
              "doc": "ClipTime maps a play time t in seconds to a time within the clip: wrapped into [0, Length) when Loop is set, clamped to [0, Length] otherwise.\n",
              "file": "pkg/resource/curve.go",
              "line": 251
            },
            {
              "name": "Kind",
              "anchor": "Animation.Kind",
              "recv": "*Animation",
              "decl": "func (a *Animation) Kind() Kind",
              "doc": "Kind returns KindAnimation.\n",
              "file": "pkg/resource/curve.go",
              "line": 197
            },
            {
              "name": "Sample",
              "anchor": "Animation.Sample",
              "recv": "*Animation",
              "decl": "func (a *Animation) Sample(t float32, set func(target, property string, value float32))",
              "doc": "Sample evaluates every numeric track at play time t (mapped through ClipTime) and calls set with each track's target, property and value, in track order. Discrete frame tracks are skipped; use SampleFrames for them.\n",
              "file": "pkg/resource/curve.go",
              "line": 266
            },
            {
              "name": "SampleFrames",
              "anchor": "Animation.SampleFrames",
              "recv": "*Animation",
              "decl": "func (a *Animation) SampleFrames(t float32, set func(target, property, frame string))",
              "doc": "SampleFrames evaluates every discrete frame track at play time t (mapped through ClipTime) and calls set with each track's target, property and frame name, in track order.\n",
              "file": "pkg/resource/curve.go",
              "line": 281
            },
            {
              "name": "Validate",
              "anchor": "Animation.Validate",
              "recv": "*Animation",
              "decl": "func (a *Animation) Validate() error",
              "doc": "Validate checks the header, the length, every track and every event.\n",
              "file": "pkg/resource/curve.go",
              "line": 200
            }
          ]
        },
        {
          "name": "BitcrushEffect",
          "anchor": "BitcrushEffect",
          "decl": "type BitcrushEffect struct {\n\t// Bits is the bit depth from 1 to 15.\n\tBits int `yaml:\"bits\"`\n\t// Downsample holds every Downsample-th frame; 0 or 1 does not downsample.\n\tDownsample int `yaml:\"downsample,omitempty\"`\n}",
          "doc": "BitcrushEffect quantizes samples and holds frames for a lo-fi sound.\n",
          "file": "pkg/resource/buses.go",
          "line": 76,
          "members": [
            {
              "name": "Bits",
              "anchor": "BitcrushEffect.Bits",
              "kind": "field",
              "doc": "Bits is the bit depth from 1 to 15."
            },
            {
              "name": "Downsample",
              "anchor": "BitcrushEffect.Downsample",
              "kind": "field",
              "doc": "Downsample holds every Downsample-th frame; 0 or 1 does not downsample."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Bus",
          "anchor": "Bus",
          "decl": "type Bus struct {\n\t// Name is the mixer group's name, such as \"music\" or \"effects\".\n\tName string `yaml:\"name\"`\n\t// Effects is the bus's effect chain, applied in order.\n\tEffects []BusEffect `yaml:\"effects,omitempty\"`\n}",
          "doc": "Bus is one sound bus: a sound.Mixer group and its effects, applied in order.\n",
          "file": "pkg/resource/buses.go",
          "line": 20,
          "members": [
            {
              "name": "Name",
              "anchor": "Bus.Name",
              "kind": "field",
              "doc": "Name is the mixer group's name, such as \"music\" or \"effects\"."
            },
            {
              "name": "Effects",
              "anchor": "Bus.Effects",
              "kind": "field",
              "doc": "Effects is the bus's effect chain, applied in order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Chain",
              "anchor": "Bus.Chain",
              "recv": "*Bus",
              "decl": "func (bus *Bus) Chain() sound.EffectChain",
              "doc": "Chain returns the bus's effects as a sound.EffectChain, in order.\n",
              "file": "pkg/resource/buses.go",
              "line": 195
            }
          ]
        },
        {
          "name": "BusEffect",
          "anchor": "BusEffect",
          "decl": "type BusEffect struct {\n\t// LowPass attenuates frequencies above its cutoff (sound.LowPass).\n\tLowPass *FilterEffect `yaml:\"lowPass,omitempty\"`\n\t// HighPass attenuates frequencies below its cutoff (sound.HighPass).\n\tHighPass *FilterEffect `yaml:\"highPass,omitempty\"`\n\t// Delay is a feedback echo (sound.Delay).\n\tDelay *DelayEffect `yaml:\"delay,omitempty\"`\n\t// Reverb is a room reverb (sound.Reverb).\n\tReverb *ReverbEffect `yaml:\"reverb,omitempty\"`\n\t// Gain scales every sample (sound.Gain).\n\tGain *GainEffect `yaml:\"gain,omitempty\"`\n\t// Bitcrush lowers bit depth and sample rate (sound.Bitcrush).\n\tBitcrush *BitcrushEffect `yaml:\"bitcrush,omitempty\"`\n}",
          "doc": "BusEffect is one effect on a bus. Exactly one field must be set.\n",
          "file": "pkg/resource/buses.go",
          "line": 28,
          "members": [
            {
              "name": "LowPass",
              "anchor": "BusEffect.LowPass",
              "kind": "field",
              "doc": "LowPass attenuates frequencies above its cutoff (sound.LowPass)."
            },
            {
              "name": "HighPass",
              "anchor": "BusEffect.HighPass",
              "kind": "field",
              "doc": "HighPass attenuates frequencies below its cutoff (sound.HighPass)."
            },
            {
              "name": "Delay",
              "anchor": "BusEffect.Delay",
              "kind": "field",
              "doc": "Delay is a feedback echo (sound.Delay)."
            },
            {
              "name": "Reverb",
              "anchor": "BusEffect.Reverb",
              "kind": "field",
              "doc": "Reverb is a room reverb (sound.Reverb)."
            },
            {
              "name": "Gain",
              "anchor": "BusEffect.Gain",
              "kind": "field",
              "doc": "Gain scales every sample (sound.Gain)."
            },
            {
              "name": "Bitcrush",
              "anchor": "BusEffect.Bitcrush",
              "kind": "field",
              "doc": "Bitcrush lowers bit depth and sample rate (sound.Bitcrush)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Effect",
              "anchor": "BusEffect.Effect",
              "recv": "*BusEffect",
              "decl": "func (e *BusEffect) Effect() sound.BusEffect",
              "doc": "Effect returns the sound.BusEffect the entry describes, or nil when no field is set.\n",
              "file": "pkg/resource/buses.go",
              "line": 174
            }
          ]
        },
        {
          "name": "BusLayout",
          "anchor": "BusLayout",
          "decl": "type BusLayout struct {\n\tHeader `yaml:\",inline\"`\n\t// Name is an optional human-readable name.\n\tName string `yaml:\"name,omitempty\"`\n\t// Buses are the layout's buses, each name once.\n\tBuses []Bus `yaml:\"buses,omitempty\"`\n}",
          "doc": "BusLayout lays out a game's sound buses: the groups a sound.Mixer plays through and the DSP effect chain on each.\n",
          "file": "pkg/resource/buses.go",
          "line": 11,
          "members": [
            {
              "name": "Header",
              "anchor": "BusLayout.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "BusLayout.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name."
            },
            {
              "name": "Buses",
              "anchor": "BusLayout.Buses",
              "kind": "field",
              "doc": "Buses are the layout's buses, each name once."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "BusLayout.Apply",
              "recv": "*BusLayout",
              "decl": "func (b *BusLayout) Apply(m *sound.Mixer)",
              "doc": "Apply sets each bus's effect chain on m with sound.Mixer.SetGroupEffects; a bus with no effects clears its group's chain. Groups the layout does not name keep their chains, and volumes are left to the player's settings.\n",
              "file": "pkg/resource/buses.go",
              "line": 209
            },
            {
              "name": "Kind",
              "anchor": "BusLayout.Kind",
              "recv": "*BusLayout",
              "decl": "func (b *BusLayout) Kind() Kind",
              "doc": "Kind returns KindBusLayout.\n",
              "file": "pkg/resource/buses.go",
              "line": 84
            },
            {
              "name": "Validate",
              "anchor": "BusLayout.Validate",
              "recv": "*BusLayout",
              "decl": "func (b *BusLayout) Validate() error",
              "doc": "Validate checks the header, bus names and every effect's parameters.\n",
              "file": "pkg/resource/buses.go",
              "line": 87
            }
          ]
        },
        {
          "name": "Curve",
          "anchor": "Curve",
          "decl": "type Curve struct {\n\tHeader `yaml:\",inline\"`\n\t// Name is an optional human-readable name.\n\tName string `yaml:\"name,omitempty\"`\n\t// Keys are the curve's keys in strictly increasing Time order; there must be at least one.\n\tKeys []Key `yaml:\"keys\"`\n}",
          "doc": "Curve is a value keyed over time, such as an easing, a particle's size over its life or damage over distance.\n",
          "file": "pkg/resource/curve.go",
          "line": 126,
          "members": [
            {
              "name": "Header",
              "anchor": "Curve.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "Curve.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name."
            },
            {
              "name": "Keys",
              "anchor": "Curve.Keys",
              "kind": "field",
              "doc": "Keys are the curve's keys in strictly increasing Time order; there must be at least one."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Eval",
              "anchor": "Curve.Eval",
              "recv": "*Curve",
              "decl": "func (c *Curve) Eval(t float32) float32",
              "doc": "Eval returns the curve's value at t, holding the first and last keys' values before and after them. Its method value fits tween.EaseFunc.\n",
              "file": "pkg/resource/curve.go",
              "line": 149
            },
            {
              "name": "Kind",
              "anchor": "Curve.Kind",
              "recv": "*Curve",
              "decl": "func (c *Curve) Kind() Kind",
              "doc": "Kind returns KindCurve.\n",
              "file": "pkg/resource/curve.go",
              "line": 135
            },
            {
              "name": "Validate",
              "anchor": "Curve.Validate",
              "recv": "*Curve",
              "decl": "func (c *Curve) Validate() error",
              "doc": "Validate checks the header and that the keys are finite, ordered and use a known interp.\n",
              "file": "pkg/resource/curve.go",
              "line": 138
            }
          ]
        },
        {
          "name": "DelayEffect",
          "anchor": "DelayEffect",
          "decl": "type DelayEffect struct {\n\t// Seconds is the echo spacing; it must be positive.\n\tSeconds float64 `yaml:\"seconds\"`\n\t// Feedback is how much of each echo feeds the next, from 0 to 0.99.\n\tFeedback float64 `yaml:\"feedback,omitempty\"`\n\t// Wet is the dry/wet mix from 0 to 1.\n\tWet float64 `yaml:\"wet\"`\n}",
          "doc": "DelayEffect is a feedback delay line.\n",
          "file": "pkg/resource/buses.go",
          "line": 52,
          "members": [
            {
              "name": "Seconds",
              "anchor": "DelayEffect.Seconds",
              "kind": "field",
              "doc": "Seconds is the echo spacing; it must be positive."
            },
            {
              "name": "Feedback",
              "anchor": "DelayEffect.Feedback",
              "kind": "field",
              "doc": "Feedback is how much of each echo feeds the next, from 0 to 0.99."
            },
            {
              "name": "Wet",
              "anchor": "DelayEffect.Wet",
              "kind": "field",
              "doc": "Wet is the dry/wet mix from 0 to 1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Event",
          "anchor": "Event",
          "decl": "type Event struct {\n\t// Time is where the event sits, from 0 to the clip's Length; events must be in non-decreasing Time order.\n\tTime float32 `yaml:\"time\"`\n\t// Name says what happens, such as \"footstep\"; it must not be empty.\n\tName string `yaml:\"name\"`\n}",
          "doc": "Event is one named cue on an Animation's timeline.\n",
          "file": "pkg/resource/curve.go",
          "line": 172,
          "members": [
            {
              "name": "Time",
              "anchor": "Event.Time",
              "kind": "field",
              "doc": "Time is where the event sits, from 0 to the clip's Length; events must be in non-decreasing Time order."
            },
            {
              "name": "Name",
              "anchor": "Event.Name",
              "kind": "field",
              "doc": "Name says what happens, such as \"footstep\"; it must not be empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FilterEffect",
          "anchor": "FilterEffect",
          "decl": "type FilterEffect struct {\n\t// CutoffHz is the cutoff frequency in hertz; it must be positive.\n\tCutoffHz float64 `yaml:\"cutoffHz\"`\n\t// Q is the filter's resonance; 0 is Butterworth (1/sqrt(2)).\n\tQ float64 `yaml:\"q,omitempty\"`\n}",
          "doc": "FilterEffect is a low-pass or high-pass biquad filter.\n",
          "file": "pkg/resource/buses.go",
          "line": 44,
          "members": [
            {
              "name": "CutoffHz",
              "anchor": "FilterEffect.CutoffHz",
              "kind": "field",
              "doc": "CutoffHz is the cutoff frequency in hertz; it must be positive."
            },
            {
              "name": "Q",
              "anchor": "FilterEffect.Q",
              "kind": "field",
              "doc": "Q is the filter's resonance; 0 is Butterworth (1/sqrt(2))."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FrameKey",
          "anchor": "FrameKey",
          "decl": "type FrameKey struct {\n\t// Time is where the frame starts, from 0 to the clip's Length; frame keys must be in strictly increasing Time order.\n\tTime float32 `yaml:\"time\"`\n\t// Frame is the atlas frame name shown from Time until the next key; it must not be empty.\n\tFrame string `yaml:\"frame\"`\n}",
          "doc": "FrameKey is one discrete sprite frame key on an animation Track, holding an atlas frame name from Time until the next key without interpolation.\n",
          "file": "pkg/resource/curve.go",
          "line": 32,
          "members": [
            {
              "name": "Time",
              "anchor": "FrameKey.Time",
              "kind": "field",
              "doc": "Time is where the frame starts, from 0 to the clip's Length; frame keys must be in strictly increasing Time order."
            },
            {
              "name": "Frame",
              "anchor": "FrameKey.Frame",
              "kind": "field",
              "doc": "Frame is the atlas frame name shown from Time until the next key; it must not be empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GainEffect",
          "anchor": "GainEffect",
          "decl": "type GainEffect struct {\n\t// Factor is the scale; it must be finite and non-negative.\n\tFactor float64 `yaml:\"factor\"`\n}",
          "doc": "GainEffect scales every sample by Factor.\n",
          "file": "pkg/resource/buses.go",
          "line": 70,
          "members": [
            {
              "name": "Factor",
              "anchor": "GainEffect.Factor",
              "kind": "field",
              "doc": "Factor is the scale; it must be finite and non-negative."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Gradient",
          "anchor": "Gradient",
          "decl": "type Gradient struct {\n\tHeader `yaml:\",inline\"`\n\t// Name is an optional human-readable name.\n\tName string `yaml:\"name,omitempty\"`\n\t// Stops are the gradient's colors in non-decreasing Offset order; two stops at one offset make a hard edge. There must be at least one.\n\tStops []GradientStop `yaml:\"stops\"`\n}",
          "doc": "Gradient is a run of colors keyed over offsets from 0 to 1, such as a particle's color over its life or a sky's color over the day.\n",
          "file": "pkg/resource/gradient.go",
          "line": 11,
          "members": [
            {
              "name": "Header",
              "anchor": "Gradient.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "Gradient.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name."
            },
            {
              "name": "Stops",
              "anchor": "Gradient.Stops",
              "kind": "field",
              "doc": "Stops are the gradient's colors in non-decreasing Offset order; two stops at one offset make a hard edge. There must be at least one."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "At",
              "anchor": "Gradient.At",
              "recv": "*Gradient",
              "decl": "func (g *Gradient) At(t float32) core.Color",
              "doc": "At returns the gradient's color at t, mixing each channel linearly between the stops around it and holding the end colors beyond them.\n",
              "file": "pkg/resource/gradient.go",
              "line": 69
            },
            {
              "name": "CoreStops",
              "anchor": "Gradient.CoreStops",
              "recv": "*Gradient",
              "decl": "func (g *Gradient) CoreStops() []core.GradientStop",
              "doc": "CoreStops returns the stops as core.GradientStop values for a canvas gradient. A stop whose color does not parse is transparent.\n",
              "file": "pkg/resource/gradient.go",
              "line": 56
            },
            {
              "name": "Kind",
              "anchor": "Gradient.Kind",
              "recv": "*Gradient",
              "decl": "func (g *Gradient) Kind() Kind",
              "doc": "Kind returns KindGradient.\n",
              "file": "pkg/resource/gradient.go",
              "line": 28
            },
            {
              "name": "Validate",
              "anchor": "Gradient.Validate",
              "recv": "*Gradient",
              "decl": "func (g *Gradient) Validate() error",
              "doc": "Validate checks the header and that the stops are in order with valid colors.\n",
              "file": "pkg/resource/gradient.go",
              "line": 31
            }
          ]
        },
        {
          "name": "GradientStop",
          "anchor": "GradientStop",
          "decl": "type GradientStop struct {\n\t// Offset is where the color sits, from 0 to 1.\n\tOffset float32 `yaml:\"offset\"`\n\t// Color is a CSS color parsed with core.ParseColor.\n\tColor string `yaml:\"color\"`\n}",
          "doc": "GradientStop is one color of a Gradient.\n",
          "file": "pkg/resource/gradient.go",
          "line": 20,
          "members": [
            {
              "name": "Offset",
              "anchor": "GradientStop.Offset",
              "kind": "field",
              "doc": "Offset is where the color sits, from 0 to 1."
            },
            {
              "name": "Color",
              "anchor": "GradientStop.Color",
              "kind": "field",
              "doc": "Color is a CSS color parsed with core.ParseColor."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Header",
          "anchor": "Header",
          "decl": "type Header struct {\n\t// Type names the resource's type; it must match the Go type holding it.\n\tType Kind `yaml:\"type\"`\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// UID is the file's stable ID, which stays the same when the file is renamed or moved so the tools can find it again (see package refs); empty until a tool such as game index gives it one. When set it must be a UID as NewUID returns it.\n\tUID string `yaml:\"uid,omitempty\"`\n}",
          "doc": "Header is the common start of every resource file: its type, schema version and stable ID. Every resource type embeds it, so Type, Version and UID are the first fields of each file.\n",
          "file": "pkg/resource/resource.go",
          "line": 42,
          "members": [
            {
              "name": "Type",
              "anchor": "Header.Type",
              "kind": "field",
              "doc": "Type names the resource's type; it must match the Go type holding it."
            },
            {
              "name": "Version",
              "anchor": "Header.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "UID",
              "anchor": "Header.UID",
              "kind": "field",
              "doc": "UID is the file's stable ID, which stays the same when the file is renamed or moved so the tools can find it again (see package refs); empty until a tool such as game index gives it one. When set it must be a UID as NewUID returns it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHeader",
              "anchor": "NewHeader",
              "decl": "func NewHeader(kind Kind) Header",
              "doc": "NewHeader returns the header for a resource of kind at CurrentVersion.\n",
              "file": "pkg/resource/resource.go",
              "line": 52
            }
          ],
          "methods": []
        },
        {
          "name": "Interp",
          "anchor": "Interp",
          "decl": "type Interp string",
          "doc": "Interp is how a key's value moves to the next key's.\n",
          "file": "pkg/resource/curve.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "InterpLinear",
                  "anchor": "InterpLinear"
                },
                {
                  "name": "InterpStep",
                  "anchor": "InterpStep"
                },
                {
                  "name": "InterpSmooth",
                  "anchor": "InterpSmooth"
                }
              ],
              "decl": "const (\n\t// InterpLinear moves in a straight line; it is the default when a key leaves interp empty.\n\tInterpLinear Interp = \"linear\"\n\t// InterpStep holds the key's value until the next key.\n\tInterpStep Interp = \"step\"\n\t// InterpSmooth eases in and out with a smoothstep.\n\tInterpSmooth Interp = \"smooth\"\n)",
              "doc": "",
              "file": "pkg/resource/curve.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Key",
          "anchor": "Key",
          "decl": "type Key struct {\n\t// Time is where the key sits; keys must be in strictly increasing Time order.\n\tTime float32 `yaml:\"time\"`\n\t// Value is the value at Time.\n\tValue float32 `yaml:\"value\"`\n\t// Interp is how the value moves from this key to the next; empty is InterpLinear.\n\tInterp Interp `yaml:\"interp,omitempty\"`\n}",
          "doc": "Key is one keyed value on a Curve or a numeric animation Track.\n",
          "file": "pkg/resource/curve.go",
          "line": 22,
          "members": [
            {
              "name": "Time",
              "anchor": "Key.Time",
              "kind": "field",
              "doc": "Time is where the key sits; keys must be in strictly increasing Time order."
            },
            {
              "name": "Value",
              "anchor": "Key.Value",
              "kind": "field",
              "doc": "Value is the value at Time."
            },
            {
              "name": "Interp",
              "anchor": "Key.Interp",
              "kind": "field",
              "doc": "Interp is how the value moves from this key to the next; empty is InterpLinear."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind string",
          "doc": "Kind is a resource file's type, written in its header's type field.\n",
          "file": "pkg/resource/resource.go",
          "line": 17,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindMaterial",
                  "anchor": "KindMaterial"
                },
                {
                  "name": "KindCurve",
                  "anchor": "KindCurve"
                },
                {
                  "name": "KindGradient",
                  "anchor": "KindGradient"
                },
                {
                  "name": "KindAnimation",
                  "anchor": "KindAnimation"
                },
                {
                  "name": "KindTheme",
                  "anchor": "KindTheme"
                },
                {
                  "name": "KindBusLayout",
                  "anchor": "KindBusLayout"
                },
                {
                  "name": "KindPhysicsMaterial",
                  "anchor": "KindPhysicsMaterial"
                }
              ],
              "decl": "const (\n\t// KindMaterial is a Material: surface color, texture, opacity and blending.\n\tKindMaterial Kind = \"material\"\n\t// KindCurve is a Curve: a value keyed over time.\n\tKindCurve Kind = \"curve\"\n\t// KindGradient is a Gradient: colors keyed over offsets from 0 to 1.\n\tKindGradient Kind = \"gradient\"\n\t// KindAnimation is an Animation: property tracks keyed over a clip's length.\n\tKindAnimation Kind = \"animation\"\n\t// KindTheme is a Theme: colors, spacing and font for gameui.\n\tKindTheme Kind = \"theme\"\n\t// KindBusLayout is a BusLayout: sound buses and their effect chains.\n\tKindBusLayout Kind = \"busLayout\"\n\t// KindPhysicsMaterial is a PhysicsMaterial: friction, bounce and damping for rigid bodies.\n\tKindPhysicsMaterial Kind = \"physicsMaterial\"\n)",
              "doc": "",
              "file": "pkg/resource/resource.go",
              "line": 19
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "Kinds",
              "anchor": "Kinds",
              "decl": "func Kinds() []Kind",
              "doc": "Kinds returns every resource type this package reads, in a fixed order.\n",
              "file": "pkg/resource/resource.go",
              "line": 37
            }
          ],
          "methods": []
        },
        {
          "name": "Library",
          "anchor": "Library",
          "decl": "type Library struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Library loads resource files from a file system and shares them: every Load of one path returns the same pointer, so the scenes and code that use a resource all see one value, and Reload changes that value in place.\n\nPaths are slash-separated and relative to the file system's root, as fs.ValidPath requires, such as \"materials/stone.material.yaml\".\n\nLoad and Reload are safe to call from any goroutine, but Reload writes the shared value that readers hold, so call it on the goroutine that reads resources, usually the engine's; hotreload.Watcher.WatchResources does.\n",
          "file": "pkg/resource/library.go",
          "line": 15,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLibrary",
              "anchor": "NewLibrary",
              "decl": "func NewLibrary(fsys fs.FS) *Library",
              "doc": "NewLibrary returns a Library that reads files from fsys, such as os.DirFS(projectRoot) or an embed.FS.\n",
              "file": "pkg/resource/library.go",
              "line": 24
            }
          ],
          "methods": [
            {
              "name": "Animation",
              "anchor": "Library.Animation",
              "recv": "*Library",
              "decl": "func (l *Library) Animation(path string) (*Animation, error)",
              "doc": "Animation loads the animation clip at path. It lets a Library serve as an animclip.ClipResolver.\n",
              "file": "pkg/resource/library.go",
              "line": 79
            },
            {
              "name": "Load",
              "anchor": "Library.Load",
              "recv": "*Library",
              "decl": "func (l *Library) Load(path string) (Resource, error)",
              "doc": "Load returns the resource at path, parsing it on first use and returning the shared value after that.\n",
              "file": "pkg/resource/library.go",
              "line": 29
            },
            {
              "name": "Loaded",
              "anchor": "Library.Loaded",
              "recv": "*Library",
              "decl": "func (l *Library) Loaded(path string) bool",
              "doc": "Loaded reports whether path has been loaded.\n",
              "file": "pkg/resource/library.go",
              "line": 124
            },
            {
              "name": "Material",
              "anchor": "Library.Material",
              "recv": "*Library",
              "decl": "func (l *Library) Material(path string) (*Material, error)",
              "doc": "Material loads the material at path. It lets a Library serve as a sceneformat.MaterialResolver.\n",
              "file": "pkg/resource/library.go",
              "line": 71
            },
            {
              "name": "Paths",
              "anchor": "Library.Paths",
              "recv": "*Library",
              "decl": "func (l *Library) Paths() []string",
              "doc": "Paths returns the loaded paths, sorted.\n",
              "file": "pkg/resource/library.go",
              "line": 135
            },
            {
              "name": "PhysicsMaterial",
              "anchor": "Library.PhysicsMaterial",
              "recv": "*Library",
              "decl": "func (l *Library) PhysicsMaterial(path string) (*PhysicsMaterial, error)",
              "doc": "PhysicsMaterial loads the physics material at path. It lets a Library serve as a sceneformat.PhysicsMaterialResolver.\n",
              "file": "pkg/resource/library.go",
              "line": 74
            },
            {
              "name": "Reload",
              "anchor": "Library.Reload",
              "recv": "*Library",
              "decl": "func (l *Library) Reload(path string, data []byte) (bool, error)",
              "doc": "Reload parses data as the new contents of path and, when path is loaded, copies them into the shared value so every holder sees them. It reports whether path was loaded; an unloaded path is ignored. On an error, including a file that changed its type, the loaded value is left as it was.\n",
              "file": "pkg/resource/library.go",
              "line": 84
            },
            {
              "name": "ReloadFile",
              "anchor": "Library.ReloadFile",
              "recv": "*Library",
              "decl": "func (l *Library) ReloadFile(path string) (int64, bool, error)",
              "doc": "ReloadFile re-reads path from the library's file system and reloads it in place via Reload. It reports the file's byte size, whether path was loaded in the library, and any read or parse error. An unloaded path returns (0, false, nil). On error, the previously loaded resource stays unchanged.\n",
              "file": "pkg/resource/library.go",
              "line": 150
            },
            {
              "name": "Revision",
              "anchor": "Library.Revision",
              "recv": "*Library",
              "decl": "func (l *Library) Revision() uint64",
              "doc": "Revision counts the successful reloads, so code that derives values from resources, such as a gameui.Theme built with Theme.Apply, can tell when to derive them again.\n",
              "file": "pkg/resource/library.go",
              "line": 173
            }
          ]
        },
        {
          "name": "Material",
          "anchor": "Material",
          "decl": "type Material struct {\n\tHeader `yaml:\",inline\"`\n\t// Name is an optional human-readable name.\n\tName string `yaml:\"name,omitempty\"`\n\t// BaseColor is a CSS color parsed with core.ParseColor; empty is opaque white.\n\tBaseColor string `yaml:\"baseColor,omitempty\"`\n\t// Texture is an optional slash-separated path to the surface's image, relative to the project root.\n\tTexture string `yaml:\"texture,omitempty\"`\n\t// Opacity multiplies the alpha of everything drawn with the material, from 0 to 1; nil is 1.\n\tOpacity *float32 `yaml:\"opacity,omitempty\"`\n\t// Blend is how the surface mixes with what is beneath (see BlendModes); empty is \"sourceOver\".\n\tBlend string `yaml:\"blend,omitempty\"`\n\t// Metallic is the PBR metalness from 0 to 1.\n\tMetallic float32 `yaml:\"metallic,omitempty\"`\n\t// Roughness is the PBR roughness from 0 to 1; nil is 1.\n\tRoughness *float32 `yaml:\"roughness,omitempty\"`\n\t// Emissive is an optional CSS color the surface gives off; empty is none.\n\tEmissive string `yaml:\"emissive,omitempty\"`\n\t// DoubleSided draws a 3D surface's back faces too.\n\tDoubleSided bool `yaml:\"doubleSided,omitempty\"`\n\t// Unlit draws a 3D surface in its base color without lighting.\n\tUnlit bool `yaml:\"unlit,omitempty\"`\n}",
          "doc": "Material describes how a surface draws: its color and texture, how opaque it is and how it blends with what is beneath. 2D sprites use Opacity and Blend; 3D renderers also read the PBR fields.\n",
          "file": "pkg/resource/material.go",
          "line": 12,
          "members": [
            {
              "name": "Header",
              "anchor": "Material.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "Material.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name."
            },
            {
              "name": "BaseColor",
              "anchor": "Material.BaseColor",
              "kind": "field",
              "doc": "BaseColor is a CSS color parsed with core.ParseColor; empty is opaque white."
            },
            {
              "name": "Texture",
              "anchor": "Material.Texture",
              "kind": "field",
              "doc": "Texture is an optional slash-separated path to the surface's image, relative to the project root."
            },
            {
              "name": "Opacity",
              "anchor": "Material.Opacity",
              "kind": "field",
              "doc": "Opacity multiplies the alpha of everything drawn with the material, from 0 to 1; nil is 1."
            },
            {
              "name": "Blend",
              "anchor": "Material.Blend",
              "kind": "field",
              "doc": "Blend is how the surface mixes with what is beneath (see BlendModes); empty is \"sourceOver\"."
            },
            {
              "name": "Metallic",
              "anchor": "Material.Metallic",
              "kind": "field",
              "doc": "Metallic is the PBR metalness from 0 to 1."
            },
            {
              "name": "Roughness",
              "anchor": "Material.Roughness",
              "kind": "field",
              "doc": "Roughness is the PBR roughness from 0 to 1; nil is 1."
            },
            {
              "name": "Emissive",
              "anchor": "Material.Emissive",
              "kind": "field",
              "doc": "Emissive is an optional CSS color the surface gives off; empty is none."
            },
            {
              "name": "DoubleSided",
              "anchor": "Material.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided draws a 3D surface's back faces too."
            },
            {
              "name": "Unlit",
              "anchor": "Material.Unlit",
              "kind": "field",
              "doc": "Unlit draws a 3D surface in its base color without lighting."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "BlendOp",
              "anchor": "Material.BlendOp",
              "recv": "*Material",
              "decl": "func (m *Material) BlendOp() core.CompositeOp",
              "doc": "BlendOp returns the composite operation Blend names, core.CompositeSourceOver when it is empty or unknown.\n",
              "file": "pkg/resource/material.go",
              "line": 161
            },
            {
              "name": "Color",
              "anchor": "Material.Color",
              "recv": "*Material",
              "decl": "func (m *Material) Color() core.Color",
              "doc": "Color returns the parsed base color, opaque white when BaseColor is empty or invalid.\n",
              "file": "pkg/resource/material.go",
              "line": 121
            },
            {
              "name": "EffectiveOpacity",
              "anchor": "Material.EffectiveOpacity",
              "recv": "*Material",
              "decl": "func (m *Material) EffectiveOpacity() float32",
              "doc": "EffectiveOpacity returns Opacity, 1 when it is nil.\n",
              "file": "pkg/resource/material.go",
              "line": 145
            },
            {
              "name": "EffectiveRoughness",
              "anchor": "Material.EffectiveRoughness",
              "recv": "*Material",
              "decl": "func (m *Material) EffectiveRoughness() float32",
              "doc": "EffectiveRoughness returns Roughness, 1 when it is nil.\n",
              "file": "pkg/resource/material.go",
              "line": 153
            },
            {
              "name": "EmissiveColor",
              "anchor": "Material.EmissiveColor",
              "recv": "*Material",
              "decl": "func (m *Material) EmissiveColor() (core.Color, bool)",
              "doc": "EmissiveColor returns the parsed emissive color and whether the material has one.\n",
              "file": "pkg/resource/material.go",
              "line": 133
            },
            {
              "name": "Kind",
              "anchor": "Material.Kind",
              "recv": "*Material",
              "decl": "func (m *Material) Kind() Kind",
              "doc": "Kind returns KindMaterial.\n",
              "file": "pkg/resource/material.go",
              "line": 76
            },
            {
              "name": "Validate",
              "anchor": "Material.Validate",
              "recv": "*Material",
              "decl": "func (m *Material) Validate() error",
              "doc": "Validate checks the header, colors, ranges and blend mode.\n",
              "file": "pkg/resource/material.go",
              "line": 79
            }
          ]
        },
        {
          "name": "PhysicsMaterial",
          "anchor": "PhysicsMaterial",
          "decl": "type PhysicsMaterial struct {\n\tHeader `yaml:\",inline\"`\n\t// Name is an optional human-readable name.\n\tName string `yaml:\"name,omitempty\"`\n\t// Friction is the Coulomb friction coefficient; it must be finite and non-negative.\n\tFriction *float32 `yaml:\"friction,omitempty\"`\n\t// Restitution is the bounce from 0, which stops dead, to 1, which bounces back fully.\n\tRestitution *float32 `yaml:\"restitution,omitempty\"`\n\t// LinearDamping and AngularDamping slow movement and spin each second; they must be finite and non-negative.\n\tLinearDamping  *float32 `yaml:\"linearDamping,omitempty\"`\n\tAngularDamping *float32 `yaml:\"angularDamping,omitempty\"`\n}",
          "doc": "PhysicsMaterial holds the surface properties of rigid bodies: friction, bounce and damping. A field left out keeps the body's own value when applied.\n",
          "file": "pkg/resource/physics.go",
          "line": 11,
          "members": [
            {
              "name": "Header",
              "anchor": "PhysicsMaterial.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "PhysicsMaterial.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name."
            },
            {
              "name": "Friction",
              "anchor": "PhysicsMaterial.Friction",
              "kind": "field",
              "doc": "Friction is the Coulomb friction coefficient; it must be finite and non-negative."
            },
            {
              "name": "Restitution",
              "anchor": "PhysicsMaterial.Restitution",
              "kind": "field",
              "doc": "Restitution is the bounce from 0, which stops dead, to 1, which bounces back fully."
            },
            {
              "name": "LinearDamping",
              "anchor": "PhysicsMaterial.LinearDamping",
              "kind": "field",
              "doc": "LinearDamping and AngularDamping slow movement and spin each second; they must be finite and non-negative."
            },
            {
              "name": "AngularDamping",
              "anchor": "PhysicsMaterial.AngularDamping",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ApplyTo",
              "anchor": "PhysicsMaterial.ApplyTo",
              "recv": "*PhysicsMaterial",
              "decl": "func (p *PhysicsMaterial) ApplyTo(body *physics.RigidBody)",
              "doc": "ApplyTo sets the fields the material holds on body, leaving the others as they are.\n",
              "file": "pkg/resource/physics.go",
              "line": 59
            },
            {
              "name": "ApplyTo3D",
              "anchor": "PhysicsMaterial.ApplyTo3D",
              "recv": "*PhysicsMaterial",
              "decl": "func (p *PhysicsMaterial) ApplyTo3D(body *physics3d.Body)",
              "doc": "ApplyTo3D sets the fields the material holds on a 3D physics body, leaving the others as they are.\n",
              "file": "pkg/resource/physics.go",
              "line": 78
            },
            {
              "name": "Kind",
              "anchor": "PhysicsMaterial.Kind",
              "recv": "*PhysicsMaterial",
              "decl": "func (p *PhysicsMaterial) Kind() Kind",
              "doc": "Kind returns KindPhysicsMaterial.\n",
              "file": "pkg/resource/physics.go",
              "line": 25
            },
            {
              "name": "Validate",
              "anchor": "PhysicsMaterial.Validate",
              "recv": "*PhysicsMaterial",
              "decl": "func (p *PhysicsMaterial) Validate() error",
              "doc": "Validate checks the header and the ranges.\n",
              "file": "pkg/resource/physics.go",
              "line": 28
            }
          ]
        },
        {
          "name": "Resource",
          "anchor": "Resource",
          "decl": "type Resource interface {\n\t// Kind returns the resource's type.\n\tKind() Kind\n\t// Validate checks the header and every field against the schema.\n\tValidate() error\n\t// contains filtered or unexported methods\n}",
          "doc": "Resource is one parsed resource file: a *Material, *Curve, *Gradient, *Animation, *Theme, *BusLayout or *PhysicsMaterial.\n",
          "file": "pkg/resource/resource.go",
          "line": 70,
          "members": [
            {
              "name": "Kind",
              "anchor": "Resource.Kind",
              "kind": "method",
              "doc": "Kind returns the resource's type."
            },
            {
              "name": "Validate",
              "anchor": "Resource.Validate",
              "kind": "method",
              "doc": "Validate checks the header and every field against the schema."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(kind Kind) (Resource, error)",
              "doc": "New returns an empty resource of kind with its header set, or an error for a kind this package does not know.\n",
              "file": "pkg/resource/resource.go",
              "line": 79
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (Resource, error)",
              "doc": "Parse decodes one YAML resource file and validates it. It reads the header first, refuses an unknown type or unsupported version, then decodes the whole document into the matching type, refusing unknown fields and trailing documents.\n",
              "file": "pkg/resource/resource.go",
              "line": 101
            }
          ],
          "methods": []
        },
        {
          "name": "ReverbEffect",
          "anchor": "ReverbEffect",
          "decl": "type ReverbEffect struct {\n\t// RoomSize, Damping and Wet are each from 0 to 1.\n\tRoomSize float64 `yaml:\"roomSize\"`\n\tDamping  float64 `yaml:\"damping,omitempty\"`\n\tWet      float64 `yaml:\"wet\"`\n}",
          "doc": "ReverbEffect is a comb and allpass room reverb.\n",
          "file": "pkg/resource/buses.go",
          "line": 62,
          "members": [
            {
              "name": "RoomSize",
              "anchor": "ReverbEffect.RoomSize",
              "kind": "field",
              "doc": "RoomSize, Damping and Wet are each from 0 to 1."
            },
            {
              "name": "Damping",
              "anchor": "ReverbEffect.Damping",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Wet",
              "anchor": "ReverbEffect.Wet",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Theme",
          "anchor": "Theme",
          "decl": "type Theme struct {\n\tHeader `yaml:\",inline\"`\n\t// Name is an optional human-readable name.\n\tName string `yaml:\"name,omitempty\"`\n\t// Colors holds the theme's CSS colors, each parsed with core.ParseColor.\n\tColors ThemeColors `yaml:\"colors,omitempty\"`\n\t// Padding is the default inner padding in points.\n\tPadding *float32 `yaml:\"padding,omitempty\"`\n\t// CornerRadius is the default corner radius in points.\n\tCornerRadius *float32 `yaml:\"cornerRadius,omitempty\"`\n\t// BorderWidth is the widget border stroke width in points.\n\tBorderWidth *float32 `yaml:\"borderWidth,omitempty\"`\n\t// FocusWidth is the focus outline stroke width in points.\n\tFocusWidth *float32 `yaml:\"focusWidth,omitempty\"`\n\t// Font is the default font of text-bearing widgets.\n\tFont *ThemeFont `yaml:\"font,omitempty\"`\n}",
          "doc": "Theme is a UI theme for gameui: colors, spacing and font. Every field is optional; Apply overrides only the fields a file sets, so a theme file can restyle a few colors of gameui.DefaultTheme.\n",
          "file": "pkg/resource/theme.go",
          "line": 11,
          "members": [
            {
              "name": "Header",
              "anchor": "Theme.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "Theme.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name."
            },
            {
              "name": "Colors",
              "anchor": "Theme.Colors",
              "kind": "field",
              "doc": "Colors holds the theme's CSS colors, each parsed with core.ParseColor."
            },
            {
              "name": "Padding",
              "anchor": "Theme.Padding",
              "kind": "field",
              "doc": "Padding is the default inner padding in points."
            },
            {
              "name": "CornerRadius",
              "anchor": "Theme.CornerRadius",
              "kind": "field",
              "doc": "CornerRadius is the default corner radius in points."
            },
            {
              "name": "BorderWidth",
              "anchor": "Theme.BorderWidth",
              "kind": "field",
              "doc": "BorderWidth is the widget border stroke width in points."
            },
            {
              "name": "FocusWidth",
              "anchor": "Theme.FocusWidth",
              "kind": "field",
              "doc": "FocusWidth is the focus outline stroke width in points."
            },
            {
              "name": "Font",
              "anchor": "Theme.Font",
              "kind": "field",
              "doc": "Font is the default font of text-bearing widgets."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Theme.Apply",
              "recv": "*Theme",
              "decl": "func (t *Theme) Apply(base gameui.Theme) gameui.Theme",
              "doc": "Apply returns base with every field the theme sets replaced. Fields the file leaves out keep base's values, as do gameui.Theme fields a file cannot hold, such as frame drawers.\n",
              "file": "pkg/resource/theme.go",
              "line": 144
            },
            {
              "name": "Kind",
              "anchor": "Theme.Kind",
              "recv": "*Theme",
              "decl": "func (t *Theme) Kind() Kind",
              "doc": "Kind returns KindTheme.\n",
              "file": "pkg/resource/theme.go",
              "line": 102
            },
            {
              "name": "Validate",
              "anchor": "Theme.Validate",
              "recv": "*Theme",
              "decl": "func (t *Theme) Validate() error",
              "doc": "Validate checks the header, every color, the sizes and the font.\n",
              "file": "pkg/resource/theme.go",
              "line": 105
            }
          ]
        },
        {
          "name": "ThemeColors",
          "anchor": "ThemeColors",
          "decl": "type ThemeColors struct {\n\tPanelBackground string `yaml:\"panelBackground,omitempty\"`\n\tPanelBorder     string `yaml:\"panelBorder,omitempty\"`\n\tBackground      string `yaml:\"background,omitempty\"`\n\tHover           string `yaml:\"hover,omitempty\"`\n\tActive          string `yaml:\"active,omitempty\"`\n\tFocusedBorder   string `yaml:\"focusedBorder,omitempty\"`\n\tDisabled        string `yaml:\"disabled,omitempty\"`\n\tBorder          string `yaml:\"border,omitempty\"`\n\tText            string `yaml:\"text,omitempty\"`\n\tDisabledText    string `yaml:\"disabledText,omitempty\"`\n\tMutedText       string `yaml:\"mutedText,omitempty\"`\n\tAccent          string `yaml:\"accent,omitempty\"`\n\tAccentHover     string `yaml:\"accentHover,omitempty\"`\n\tAccentActive    string `yaml:\"accentActive,omitempty\"`\n\tTrack           string `yaml:\"track,omitempty\"`\n}",
          "doc": "ThemeColors holds a Theme's colors, one per gameui.Theme color field; an empty one keeps the base theme's.\n",
          "file": "pkg/resource/theme.go",
          "line": 30,
          "members": [
            {
              "name": "PanelBackground",
              "anchor": "ThemeColors.PanelBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PanelBorder",
              "anchor": "ThemeColors.PanelBorder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Background",
              "anchor": "ThemeColors.Background",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hover",
              "anchor": "ThemeColors.Hover",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Active",
              "anchor": "ThemeColors.Active",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FocusedBorder",
              "anchor": "ThemeColors.FocusedBorder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Disabled",
              "anchor": "ThemeColors.Disabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Border",
              "anchor": "ThemeColors.Border",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "ThemeColors.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DisabledText",
              "anchor": "ThemeColors.DisabledText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MutedText",
              "anchor": "ThemeColors.MutedText",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Accent",
              "anchor": "ThemeColors.Accent",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AccentHover",
              "anchor": "ThemeColors.AccentHover",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AccentActive",
              "anchor": "ThemeColors.AccentActive",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Track",
              "anchor": "ThemeColors.Track",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ThemeFont",
          "anchor": "ThemeFont",
          "decl": "type ThemeFont struct {\n\t// Family is a font family name.\n\tFamily string `yaml:\"family,omitempty\"`\n\t// Size is the font size in points; 0 keeps the base theme's.\n\tSize float32 `yaml:\"size,omitempty\"`\n\t// Weight is \"light\", \"normal\", \"medium\", \"semibold\" or \"bold\".\n\tWeight string `yaml:\"weight,omitempty\"`\n\t// Italic sets the italic style when true; nil keeps the base theme's.\n\tItalic *bool `yaml:\"italic,omitempty\"`\n}",
          "doc": "ThemeFont is a Theme's default font; an empty or zero field keeps the base theme's.\n",
          "file": "pkg/resource/theme.go",
          "line": 49,
          "members": [
            {
              "name": "Family",
              "anchor": "ThemeFont.Family",
              "kind": "field",
              "doc": "Family is a font family name."
            },
            {
              "name": "Size",
              "anchor": "ThemeFont.Size",
              "kind": "field",
              "doc": "Size is the font size in points; 0 keeps the base theme's."
            },
            {
              "name": "Weight",
              "anchor": "ThemeFont.Weight",
              "kind": "field",
              "doc": "Weight is \"light\", \"normal\", \"medium\", \"semibold\" or \"bold\"."
            },
            {
              "name": "Italic",
              "anchor": "ThemeFont.Italic",
              "kind": "field",
              "doc": "Italic sets the italic style when true; nil keeps the base theme's."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Track",
          "anchor": "Track",
          "decl": "type Track struct {\n\t// Target names the object the track drives, such as the ID of an object in a scene (animclip binds it that way); empty is the object the clip plays on.\n\tTarget string `yaml:\"target,omitempty\"`\n\t// Property names the property, such as \"x\", \"rotation\", \"alpha\" or \"sprite.frame\".\n\tProperty string `yaml:\"property\"`\n\t// Keys are the track's numeric keys, with times from 0 to the clip's Length. A track sets either Keys or Frames, not both.\n\tKeys []Key `yaml:\"keys,omitempty\"`\n\t// Frames are the track's discrete sprite frame keys, with times from 0 to the clip's Length, stepping without interpolation. A track sets either Keys or Frames, not both.\n\tFrames []FrameKey `yaml:\"frames,omitempty\"`\n}",
          "doc": "Track keys one property of one target over an Animation's length: numeric values in Keys or discrete sprite frames in Frames.\n",
          "file": "pkg/resource/curve.go",
          "line": 180,
          "members": [
            {
              "name": "Target",
              "anchor": "Track.Target",
              "kind": "field",
              "doc": "Target names the object the track drives, such as the ID of an object in a scene (animclip binds it that way); empty is the object the clip plays on."
            },
            {
              "name": "Property",
              "anchor": "Track.Property",
              "kind": "field",
              "doc": "Property names the property, such as \"x\", \"rotation\", \"alpha\" or \"sprite.frame\"."
            },
            {
              "name": "Keys",
              "anchor": "Track.Keys",
              "kind": "field",
              "doc": "Keys are the track's numeric keys, with times from 0 to the clip's Length. A track sets either Keys or Frames, not both."
            },
            {
              "name": "Frames",
              "anchor": "Track.Frames",
              "kind": "field",
              "doc": "Frames are the track's discrete sprite frame keys, with times from 0 to the clip's Length, stepping without interpolation. A track sets either Keys or Frames, not both."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Eval",
              "anchor": "Track.Eval",
              "recv": "*Track",
              "decl": "func (tr *Track) Eval(t float32) float32",
              "doc": "Eval returns the numeric track's value at clip time t, holding the first and last keys' values before and after them.\n",
              "file": "pkg/resource/curve.go",
              "line": 296
            },
            {
              "name": "EvalFrame",
              "anchor": "Track.EvalFrame",
              "recv": "*Track",
              "decl": "func (tr *Track) EvalFrame(t float32) string",
              "doc": "EvalFrame returns the discrete frame track's frame name at clip time t, holding the first frame before it and stepping at each key's time without interpolation.\n",
              "file": "pkg/resource/curve.go",
              "line": 304
            },
            {
              "name": "IsFrameTrack",
              "anchor": "Track.IsFrameTrack",
              "recv": "*Track",
              "decl": "func (tr *Track) IsFrameTrack() bool",
              "doc": "IsFrameTrack reports whether tr holds discrete sprite frame keys rather than numeric keys.\n",
              "file": "pkg/resource/curve.go",
              "line": 192
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/rhythm",
      "name": "rhythm",
      "dir": "pkg/rhythm",
      "page": "pkg/rhythm",
      "synopsis": "Package rhythm keeps a rhythm game in time with its music: a beat map read from YAML, a music clock that reads the track's position and beat at any engine time, and a calibration of each device's audio and video latency.",
      "doc": "Package rhythm keeps a rhythm game in time with its music: a beat map read from YAML, a music clock that reads the track's position and beat at any engine time, and a calibration of each device's audio and video latency.\n\n# Beat maps\n\nA BeatMap is a track's tempo map in a versioned YAML file: where beat 0 falls in the audio, tempo changes at any beat and meter changes on bar lines. ParseBeatMap refuses unknown fields and EncodeBeatMap writes the fields in a fixed order, so a map round-trips unchanged. BeatMap.Timing turns it into a Timing that converts track time to beats and bars and back, at float64 precision from each change's own start, so a beat's time never drifts with the length of the track.\n\n# The music clock\n\nA Clock runs on the engine's clock, audio.Now, which audio.Voice.StartAt also counts on. Start it at the time a track starts playing, and it extrapolates the output's position from there; Sync, fed from an audio.Player's OnProgress, moves it only when the player drifts past a tolerance. Position and Beat are what the player hears, corrected by the device's Offsets, and judge input; DrawPosition and DrawBeat add the video offset for the frame being drawn; BeatTime is when to start a hit sound or a metronome click with audio.Voice.StartAt.\n\n# Calibration\n\nA Calibrator matches taps with cues every Interval and measures the median offset and its spread. A Calibration runs one on the engine: clicks scheduled ahead with audio.Voice.StartAt for the audio offset, seeded with audio.OutputLatency, or silent cues to flash for the video offset. CalibrationScreen is the gameui screen a player calibrates on, and OffsetStore keeps each device's Offsets as a versioned YAML document in core.Storage, keyed by DeviceKey.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MinBPM",
              "anchor": "MinBPM"
            },
            {
              "name": "MaxBPM",
              "anchor": "MaxBPM"
            },
            {
              "name": "MaxBeat",
              "anchor": "MaxBeat"
            },
            {
              "name": "MaxOffsetMs",
              "anchor": "MaxOffsetMs"
            },
            {
              "name": "MaxChanges",
              "anchor": "MaxChanges"
            },
            {
              "name": "MaxBeatsPerBar",
              "anchor": "MaxBeatsPerBar"
            }
          ],
          "decl": "const (\n\t// MinBPM is the slowest tempo a beat map may set, so every time a valid map gives, up to MaxBeat, fits a time.Duration many times over.\n\tMinBPM = 1\n\t// MaxBPM is the fastest tempo a beat map may set.\n\tMaxBPM = 2000\n\t// MaxBeat is the latest beat a tempo or meter change may start at.\n\tMaxBeat = 1_000_000\n\t// MaxOffsetMs is the largest offset, either way, of beat 0 from the start of the track: one hour.\n\tMaxOffsetMs = 3_600_000\n\t// MaxChanges is the most tempo changes, and separately meter changes, a beat map may hold.\n\tMaxChanges = 10_000\n\t// MaxBeatsPerBar is the longest bar a meter may set.\n\tMaxBeatsPerBar = 64\n)",
          "doc": "Limits a beat map is validated against.\n",
          "file": "pkg/rhythm/beatmap.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "DefaultInterval",
              "anchor": "DefaultInterval"
            },
            {
              "name": "DefaultTaps",
              "anchor": "DefaultTaps"
            },
            {
              "name": "DefaultWarmup",
              "anchor": "DefaultWarmup"
            },
            {
              "name": "DefaultLead",
              "anchor": "DefaultLead"
            },
            {
              "name": "SteadySpread",
              "anchor": "SteadySpread"
            }
          ],
          "decl": "const (\n\t// DefaultInterval is the time between cues: 80 beats a minute, so a tap up to 375 milliseconds off its seed still finds its cue.\n\tDefaultInterval = 750 * time.Millisecond\n\t// DefaultTaps is how many taps a calibration counts.\n\tDefaultTaps = 16\n\t// DefaultWarmup is how many first taps it ignores while the player finds the beat.\n\tDefaultWarmup = 4\n\t// DefaultLead is the time from Calibration.Start to the first cue.\n\tDefaultLead = time.Second\n\t// SteadySpread is the most a result's spread may be for Steady to hold.\n\tSteadySpread = 30 * time.Millisecond\n)",
          "doc": "Defaults of a Calibrator.\n",
          "file": "pkg/rhythm/calibrate.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "MaxOffsetMsAbs",
              "anchor": "MaxOffsetMsAbs"
            },
            {
              "name": "MaxDevices",
              "anchor": "MaxDevices"
            },
            {
              "name": "MaxDeviceKey",
              "anchor": "MaxDeviceKey"
            }
          ],
          "decl": "const (\n\t// MaxOffsetMsAbs is the largest offset, either way, a device may keep: ten seconds.\n\tMaxOffsetMsAbs = 10_000\n\t// MaxDevices is the most devices a calibration file may keep.\n\tMaxDevices = 256\n\t// MaxDeviceKey is the longest device key, in bytes.\n\tMaxDeviceKey = 256\n)",
          "doc": "Limits a calibration file is validated against.\n",
          "file": "pkg/rhythm/store.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "BeatMapVersion",
              "anchor": "BeatMapVersion"
            }
          ],
          "decl": "const BeatMapVersion = 1",
          "doc": "BeatMapVersion is the beat map schema version this package reads and writes.\n",
          "file": "pkg/rhythm/beatmap.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "CalibrationsVersion",
              "anchor": "CalibrationsVersion"
            }
          ],
          "decl": "const CalibrationsVersion = 1",
          "doc": "CalibrationsVersion is the calibration file schema version this package reads and writes.\n",
          "file": "pkg/rhythm/store.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "DefaultTolerance",
              "anchor": "DefaultTolerance"
            }
          ],
          "decl": "const DefaultTolerance = 30 * time.Millisecond",
          "doc": "DefaultTolerance is how far a player's reported position may stray from a Clock before Sync moves the clock to it.\n",
          "file": "pkg/rhythm/clock.go",
          "line": 6
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "DeviceKey",
          "anchor": "DeviceKey",
          "decl": "func DeviceKey(cx *core.Scope) string",
          "doc": "DeviceKey returns a key for the device cx runs on: its OS and hardware model, such as \"ios/iPhone15,2\", or the OS and \"unknown\" where the platform names no model, as the web does, cut to MaxDeviceKey bytes at a character's start. NSGo names no audio output route, so a game that wants separate offsets for headphones and speakers adds its own suffix, such as \"/bluetooth\", chosen by the player.\n",
          "file": "pkg/rhythm/store.go",
          "line": 133
        },
        {
          "name": "EncodeBeatMap",
          "anchor": "EncodeBeatMap",
          "decl": "func EncodeBeatMap(m *BeatMap) ([]byte, error)",
          "doc": "EncodeBeatMap validates m and writes it as deterministic 2-space YAML that ParseBeatMap reads back to an equal map.\n",
          "file": "pkg/rhythm/beatmap.go",
          "line": 170
        },
        {
          "name": "EncodeCalibrations",
          "anchor": "EncodeCalibrations",
          "decl": "func EncodeCalibrations(c *Calibrations) ([]byte, error)",
          "doc": "EncodeCalibrations validates c and writes it as deterministic 2-space YAML, devices in key order.\n",
          "file": "pkg/rhythm/store.go",
          "line": 125
        }
      ],
      "types": [
        {
          "name": "BeatMap",
          "anchor": "BeatMap",
          "decl": "type BeatMap struct {\n\t// Version is the schema version; it must be BeatMapVersion.\n\tVersion int `yaml:\"version\"`\n\t// Title names the track for people reading the file; nothing uses it.\n\tTitle string `yaml:\"title,omitempty\"`\n\t// OffsetMs is where beat 0 plays in the track, in milliseconds from its start; negative when the track starts after beat 0.\n\tOffsetMs float64 `yaml:\"offsetMs,omitempty\"`\n\t// Tempos are the tempo changes in beat order, the first at beat 0.\n\tTempos []Tempo `yaml:\"tempos\"`\n\t// Meters are the meter changes in beat order, the first at beat 0; none means 4 beats to a bar.\n\tMeters []Meter `yaml:\"meters,omitempty\"`\n}",
          "doc": "BeatMap is a track's tempo map, as written in a versioned YAML file next to the track: where beat 0 falls in the audio, the tempo from each beat on, and optionally the meter from each bar on.\n\n\tversion: 1\n\ttitle: Opening\n\toffsetMs: 120\n\ttempos:\n\t  - beat: 0\n\t    bpm: 120\n\t  - beat: 64\n\t    bpm: 140\n\tmeters:\n\t  - beat: 0\n\t    beatsPerBar: 4\n\nA beat is the unit the tempo counts, so a tempo change can start between beats (beat: 62.5) while a meter change starts on a whole bar of the meter before it. Parse and Encode keep the fields in this order and round-trip a valid map unchanged; Timing turns it into times.\n",
          "file": "pkg/rhythm/beatmap.go",
          "line": 50,
          "members": [
            {
              "name": "Version",
              "anchor": "BeatMap.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be BeatMapVersion."
            },
            {
              "name": "Title",
              "anchor": "BeatMap.Title",
              "kind": "field",
              "doc": "Title names the track for people reading the file; nothing uses it."
            },
            {
              "name": "OffsetMs",
              "anchor": "BeatMap.OffsetMs",
              "kind": "field",
              "doc": "OffsetMs is where beat 0 plays in the track, in milliseconds from its start; negative when the track starts after beat 0."
            },
            {
              "name": "Tempos",
              "anchor": "BeatMap.Tempos",
              "kind": "field",
              "doc": "Tempos are the tempo changes in beat order, the first at beat 0."
            },
            {
              "name": "Meters",
              "anchor": "BeatMap.Meters",
              "kind": "field",
              "doc": "Meters are the meter changes in beat order, the first at beat 0; none means 4 beats to a bar."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseBeatMap",
              "anchor": "ParseBeatMap",
              "decl": "func ParseBeatMap(data []byte) (*BeatMap, error)",
              "doc": "ParseBeatMap decodes a YAML beat map and validates it. Unknown fields, a second YAML document, anchors and aliases, and a fraction where a whole number belongs are refused.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 80
            }
          ],
          "methods": [
            {
              "name": "Timing",
              "anchor": "BeatMap.Timing",
              "recv": "*BeatMap",
              "decl": "func (m *BeatMap) Timing() (*Timing, error)",
              "doc": "Timing validates m and returns its times, which later changes to m do not affect.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 242
            },
            {
              "name": "Validate",
              "anchor": "BeatMap.Validate",
              "recv": "*BeatMap",
              "decl": "func (m *BeatMap) Validate() error",
              "doc": "Validate reports the first way m breaks the version 1 schema: a wrong version, no tempo, a change out of order or range, or a meter change off its bar line.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 196
            }
          ]
        },
        {
          "name": "Calibration",
          "anchor": "Calibration",
          "decl": "type Calibration struct {\n\tCalibrator\n\t// Kind is which offset it measures.\n\tKind CalibrationKind\n\t// Lead is the time from Start to the first cue; DefaultLead when 0.\n\tLead time.Duration\n\t// contains filtered or unexported fields\n}",
          "doc": "Calibration runs a Calibrator on the engine's clock: for CalibrateAudio it plays a click at each cue, scheduled ahead with audio.Voice.StartAt where audio.CanSchedule says the platform can and otherwise on the first Update at or after the cue; for CalibrateVideo it plays nothing and the screen flashes by Pulse. It seeds an audio calibration with the output latency audio.OutputLatency reads.\n\nCall Update every frame, as CalibrationScreen.Draw does, and Tap from the input that taps. Its methods run on the engine's goroutine.\n",
          "file": "pkg/rhythm/calibrate.go",
          "line": 201,
          "members": [
            {
              "name": "Calibrator",
              "anchor": "Calibration.Calibrator",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "Calibration.Kind",
              "kind": "field",
              "doc": "Kind is which offset it measures."
            },
            {
              "name": "Lead",
              "anchor": "Calibration.Lead",
              "kind": "field",
              "doc": "Lead is the time from Start to the first cue; DefaultLead when 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCalibration",
              "anchor": "NewCalibration",
              "decl": "func NewCalibration(cx *core.Scope, kind CalibrationKind, click *audio.Sound) *Calibration",
              "doc": "NewCalibration returns a calibration of kind on cx's engine, clicking click at each cue of an audio calibration; click may be nil for a video calibration. It starts at Start.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 221
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Calibration.Apply",
              "recv": "*Calibration",
              "decl": "func (c *Calibration) Apply(o Offsets) (Offsets, bool)",
              "doc": "Apply returns o with the offset this calibration measures set to its result, and whether it had a steady result to set.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 304
            },
            {
              "name": "OutputLatency",
              "anchor": "Calibration.OutputLatency",
              "recv": "*Calibration",
              "decl": "func (c *Calibration) OutputLatency() (time.Duration, bool)",
              "doc": "OutputLatency returns the output latency the platform reported at Start, and whether it reported one.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 251
            },
            {
              "name": "Start",
              "anchor": "Calibration.Start",
              "recv": "*Calibration",
              "decl": "func (c *Calibration) Start()",
              "doc": "Start begins the calibration, its first cue Lead from now, forgetting the taps of any run before and stopping the clicks it scheduled for it. An audio calibration asks for the output latency and, when the platform knows it, seeds with it.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 226
            },
            {
              "name": "Stop",
              "anchor": "Calibration.Stop",
              "recv": "*Calibration",
              "decl": "func (c *Calibration) Stop()",
              "doc": "Stop ends the run: it stops the clicks scheduled ahead and takes no more taps until Start, keeping the result so far. Call it when the calibration's screen goes away mid-run.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 254
            },
            {
              "name": "Tap",
              "anchor": "Calibration.Tap",
              "recv": "*Calibration",
              "decl": "func (c *Calibration) Tap() (offset time.Duration, counted bool)",
              "doc": "Tap records a tap now, by the engine's clock, as Calibrator.Tap does. The tap that finishes the calibration stops the clicks still scheduled.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 295
            },
            {
              "name": "Update",
              "anchor": "Calibration.Update",
              "recv": "*Calibration",
              "decl": "func (c *Calibration) Update()",
              "doc": "Update plays the clicks of an audio calibration that are due: those within two intervals ahead, scheduled at their cue, where the platform schedules sounds, and otherwise the latest cue that has come, at once, recording when it played. Once the calibration is done it stops the clicks still scheduled.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 268
            }
          ]
        },
        {
          "name": "CalibrationKind",
          "anchor": "CalibrationKind",
          "decl": "type CalibrationKind uint8",
          "doc": "CalibrationKind is which offset a calibration measures.\n",
          "file": "pkg/rhythm/calibrate.go",
          "line": 189,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CalibrateAudio",
                  "anchor": "CalibrateAudio"
                },
                {
                  "name": "CalibrateVideo",
                  "anchor": "CalibrateVideo"
                }
              ],
              "decl": "const (\n\t// CalibrateAudio measures Offsets.Audio: the player taps to clicks they hear and sees nothing move.\n\tCalibrateAudio CalibrationKind = iota\n\t// CalibrateVideo measures Offsets.Video: the player taps to flashes they see and hears nothing.\n\tCalibrateVideo\n)",
              "doc": "",
              "file": "pkg/rhythm/calibrate.go",
              "line": 191
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CalibrationResult",
          "anchor": "CalibrationResult",
          "decl": "type CalibrationResult struct {\n\t// Offset is the median of the counted taps' offsets: how late, on this device, a player taps after a cue.\n\tOffset time.Duration\n\t// Spread is the median of how far each tap is from Offset; a few milliseconds for a steady player.\n\tSpread time.Duration\n\t// Taps is how many taps it counted.\n\tTaps int\n}",
          "doc": "CalibrationResult is what a calibration measured.\n",
          "file": "pkg/rhythm/calibrate.go",
          "line": 45,
          "members": [
            {
              "name": "Offset",
              "anchor": "CalibrationResult.Offset",
              "kind": "field",
              "doc": "Offset is the median of the counted taps' offsets: how late, on this device, a player taps after a cue."
            },
            {
              "name": "Spread",
              "anchor": "CalibrationResult.Spread",
              "kind": "field",
              "doc": "Spread is the median of how far each tap is from Offset; a few milliseconds for a steady player."
            },
            {
              "name": "Taps",
              "anchor": "CalibrationResult.Taps",
              "kind": "field",
              "doc": "Taps is how many taps it counted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Steady",
              "anchor": "CalibrationResult.Steady",
              "recv": "CalibrationResult",
              "decl": "func (r CalibrationResult) Steady() bool",
              "doc": "Steady reports whether the taps agree well enough to keep the result: a spread of at most SteadySpread.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 55
            }
          ]
        },
        {
          "name": "CalibrationScreen",
          "anchor": "CalibrationScreen",
          "decl": "type CalibrationScreen struct {\n\t// Text is the words shown; DefaultCalibrationText until set.\n\tText CalibrationText\n\t// FlashColor is the video calibration's flash; the gameui theme's accent when 0.\n\tFlashColor core.Color\n\t// OnSave runs after Save keeps the offsets, with the device's offsets as kept.\n\tOnSave func(Offsets)\n\t// contains filtered or unexported fields\n}",
          "doc": "CalibrationScreen is the screen a player calibrates a device on, drawn into a core.Canvas with gameui: a prompt, the taps counted, the result, a Retry button and a Save button that keeps the result in an OffsetStore for the device. A video calibration flashes a disc at each cue; an audio one shows nothing that moves, so the player taps to what they hear.\n\nDraw it every frame from the canvas, which also drives its Calibration. A tap is taken on the edge it goes down, as gameplay judges a hit, never on a completed press, which comes only as the finger lifts: wrap the canvas in a core.View and pass its OnPressDown, OnPress and OnKeyDown here. A press going down off the buttons is a tap and a press on a button presses it; a key going down is a tap unless it moves the focus or presses a focused button, and once the calibration is done the focus moves to Save, or to Retry for an unsteady result, so a player on a keyboard or a switch reaches them.\n",
          "file": "pkg/rhythm/screen.go",
          "line": 42,
          "members": [
            {
              "name": "Text",
              "anchor": "CalibrationScreen.Text",
              "kind": "field",
              "doc": "Text is the words shown; DefaultCalibrationText until set."
            },
            {
              "name": "FlashColor",
              "anchor": "CalibrationScreen.FlashColor",
              "kind": "field",
              "doc": "FlashColor is the video calibration's flash; the gameui theme's accent when 0."
            },
            {
              "name": "OnSave",
              "anchor": "CalibrationScreen.OnSave",
              "kind": "field",
              "doc": "OnSave runs after Save keeps the offsets, with the device's offsets as kept."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCalibrationScreen",
              "anchor": "NewCalibrationScreen",
              "decl": "func NewCalibrationScreen(cal *Calibration, store *OffsetStore, device string) *CalibrationScreen",
              "doc": "NewCalibrationScreen returns a screen running cal and keeping its result for device in store. It starts cal.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 68
            }
          ],
          "methods": [
            {
              "name": "Calibration",
              "anchor": "CalibrationScreen.Calibration",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) Calibration() *Calibration",
              "doc": "Calibration returns the calibration the screen runs.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 92
            },
            {
              "name": "Draw",
              "anchor": "CalibrationScreen.Draw",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) Draw(d *core.Drawing, bounds core.Bounds)",
              "doc": "Draw updates the calibration, the words and the buttons, and draws the screen into bounds of d. A video calibration records the frame that first flashes each cue as when the cue was presented.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 150
            },
            {
              "name": "Err",
              "anchor": "CalibrationScreen.Err",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) Err() error",
              "doc": "Err returns why the last Save failed, nil after one that kept the offsets.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 95
            },
            {
              "name": "OnKeyDown",
              "anchor": "CalibrationScreen.OnKeyDown",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) OnKeyDown(ev core.KeyEvent) bool",
              "doc": "OnKeyDown handles a key going down: Tab and the arrows move the focus among the buttons and Return or Space presses the focused one, as gameui.Root does; any other key going down, not a held key's repeat, is a tap. It reports whether it used the key.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 138
            },
            {
              "name": "OnPress",
              "anchor": "CalibrationScreen.OnPress",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) OnPress(ev core.PressEvent) bool",
              "doc": "OnPress handles a completed press on the canvas: one on a button presses it, and Return or Space presses the focused button. Taps are taken by OnPressDown and OnKeyDown, not here. It reports whether it used the press.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 133
            },
            {
              "name": "OnPressDown",
              "anchor": "CalibrationScreen.OnPressDown",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) OnPressDown(ev core.PressEvent) bool",
              "doc": "OnPressDown handles a press going down on the canvas: a tap, unless it lands on a button, which OnPress then presses. It reports whether the tap counted.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 124
            },
            {
              "name": "Retry",
              "anchor": "CalibrationScreen.Retry",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) Retry()",
              "doc": "Retry starts the calibration over.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 101
            },
            {
              "name": "Root",
              "anchor": "CalibrationScreen.Root",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) Root() *gameui.Root",
              "doc": "Root returns the screen's gameui tree, to set its Theme or Viewport or route keys through it.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 89
            },
            {
              "name": "Save",
              "anchor": "CalibrationScreen.Save",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) Save() error",
              "doc": "Save keeps the device's offsets with the calibration's result in the store and runs OnSave. It does nothing until the result is steady.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 108
            },
            {
              "name": "Stop",
              "anchor": "CalibrationScreen.Stop",
              "recv": "*CalibrationScreen",
              "decl": "func (s *CalibrationScreen) Stop()",
              "doc": "Stop stops the calibration's clicks and taps, for when the screen goes away mid-run; Retry starts it again.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 98
            }
          ]
        },
        {
          "name": "CalibrationText",
          "anchor": "CalibrationText",
          "decl": "type CalibrationText struct {\n\t// AudioPrompt and VideoPrompt ask the player to tap along to the clicks or the flashes.\n\tAudioPrompt, VideoPrompt string\n\t// Progress shows the taps counted and needed, as \"%d / %d\".\n\tProgress string\n\t// Result shows a steady result's offset in milliseconds, as \"%+d ms\".\n\tResult string\n\t// Unsteady shows a result too spread out to keep, given its spread in milliseconds.\n\tUnsteady string\n\t// Retry and Save label the buttons that start over and keep the result.\n\tRetry, Save string\n}",
          "doc": "CalibrationText is the words a CalibrationScreen shows, for a game to translate. Progress, Result and Unsteady are fmt formats.\n",
          "file": "pkg/rhythm/screen.go",
          "line": 13,
          "members": [
            {
              "name": "AudioPrompt",
              "anchor": "CalibrationText.AudioPrompt",
              "kind": "field",
              "doc": "AudioPrompt and VideoPrompt ask the player to tap along to the clicks or the flashes."
            },
            {
              "name": "VideoPrompt",
              "anchor": "CalibrationText.VideoPrompt",
              "kind": "field",
              "doc": "AudioPrompt and VideoPrompt ask the player to tap along to the clicks or the flashes."
            },
            {
              "name": "Progress",
              "anchor": "CalibrationText.Progress",
              "kind": "field",
              "doc": "Progress shows the taps counted and needed, as \"%d / %d\"."
            },
            {
              "name": "Result",
              "anchor": "CalibrationText.Result",
              "kind": "field",
              "doc": "Result shows a steady result's offset in milliseconds, as \"%+d ms\"."
            },
            {
              "name": "Unsteady",
              "anchor": "CalibrationText.Unsteady",
              "kind": "field",
              "doc": "Unsteady shows a result too spread out to keep, given its spread in milliseconds."
            },
            {
              "name": "Retry",
              "anchor": "CalibrationText.Retry",
              "kind": "field",
              "doc": "Retry and Save label the buttons that start over and keep the result."
            },
            {
              "name": "Save",
              "anchor": "CalibrationText.Save",
              "kind": "field",
              "doc": "Retry and Save label the buttons that start over and keep the result."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultCalibrationText",
              "anchor": "DefaultCalibrationText",
              "decl": "func DefaultCalibrationText() CalibrationText",
              "doc": "DefaultCalibrationText returns the English words.\n",
              "file": "pkg/rhythm/screen.go",
              "line": 27
            }
          ],
          "methods": []
        },
        {
          "name": "Calibrations",
          "anchor": "Calibrations",
          "decl": "type Calibrations struct {\n\t// Version is the schema version; it must be CalibrationsVersion.\n\tVersion int `yaml:\"version\"`\n\t// Devices are the offsets by device key, such as DeviceKey returns.\n\tDevices map[string]DeviceOffsets `yaml:\"devices,omitempty\"`\n}",
          "doc": "Calibrations are the offsets calibration measured on each device, as the YAML text an OffsetStore keeps:\n\n\tversion: 1\n\tdevices:\n\t  ios/iPhone15,2:\n\t    audioMs: 182.5\n\t    videoMs: 21\n\nDevices are written in key order, so the same offsets always encode to the same text, and ParseCalibrations reads it back unchanged.\n",
          "file": "pkg/rhythm/store.go",
          "line": 40,
          "members": [
            {
              "name": "Version",
              "anchor": "Calibrations.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be CalibrationsVersion."
            },
            {
              "name": "Devices",
              "anchor": "Calibrations.Devices",
              "kind": "field",
              "doc": "Devices are the offsets by device key, such as DeviceKey returns."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseCalibrations",
              "anchor": "ParseCalibrations",
              "decl": "func ParseCalibrations(data []byte) (*Calibrations, error)",
              "doc": "ParseCalibrations decodes a YAML calibration file and validates it. Unknown fields, a second YAML document, anchors and aliases, and a fractional version are refused.\n",
              "file": "pkg/rhythm/store.go",
              "line": 94
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "Calibrations.Validate",
              "recv": "*Calibrations",
              "decl": "func (c *Calibrations) Validate() error",
              "doc": "Validate reports the first way c breaks the version 1 schema: a wrong version, too many devices, an empty, overlong or invalid UTF-8 key, or an offset that is not a number within ±MaxOffsetMsAbs.\n",
              "file": "pkg/rhythm/store.go",
              "line": 70
            }
          ]
        },
        {
          "name": "Calibrator",
          "anchor": "Calibrator",
          "decl": "type Calibrator struct {\n\t// Interval is the time between cues; DefaultInterval when 0.\n\tInterval time.Duration\n\t// Taps is how many taps it counts; DefaultTaps when 0.\n\tTaps int\n\t// Warmup is how many first taps it ignores; DefaultWarmup when 0, none when negative.\n\tWarmup int\n\t// Seed is the offset expected before measuring, such as the output latency audio.OutputLatency reads: a tap is matched with the cue nearest to it less Seed.\n\tSeed time.Duration\n\t// contains filtered or unexported fields\n}",
          "doc": "Calibrator measures an offset from taps to cues: cues come every Interval from a start time, the player taps along, and the median of how late each tap is, after the first Warmup, is the offset. It keeps no clock of its own, so the times it is given decide everything and a test can drive it exactly.\n",
          "file": "pkg/rhythm/calibrate.go",
          "line": 26,
          "members": [
            {
              "name": "Interval",
              "anchor": "Calibrator.Interval",
              "kind": "field",
              "doc": "Interval is the time between cues; DefaultInterval when 0."
            },
            {
              "name": "Taps",
              "anchor": "Calibrator.Taps",
              "kind": "field",
              "doc": "Taps is how many taps it counts; DefaultTaps when 0."
            },
            {
              "name": "Warmup",
              "anchor": "Calibrator.Warmup",
              "kind": "field",
              "doc": "Warmup is how many first taps it ignores; DefaultWarmup when 0, none when negative."
            },
            {
              "name": "Seed",
              "anchor": "Calibrator.Seed",
              "kind": "field",
              "doc": "Seed is the offset expected before measuring, such as the output latency audio.OutputLatency reads: a tap is matched with the cue nearest to it less Seed."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Count",
              "anchor": "Calibrator.Count",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) Count() int",
              "doc": "Count returns how many taps counted so far.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 160
            },
            {
              "name": "Cue",
              "anchor": "Calibrator.Cue",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) Cue(k int) time.Time",
              "doc": "Cue returns the nominal time of cue k.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 92
            },
            {
              "name": "CueAt",
              "anchor": "Calibrator.CueAt",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) CueAt(now time.Time) int",
              "doc": "CueAt returns the last cue at or before now, -1 before cue 0.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 95
            },
            {
              "name": "Done",
              "anchor": "Calibrator.Done",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) Done() bool",
              "doc": "Done reports whether it counted Taps taps.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 163
            },
            {
              "name": "Present",
              "anchor": "Calibrator.Present",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) Present(k int, at time.Time)",
              "doc": "Present records that cue k was really presented at at, as the first frame to show a flash or the moment a click without a scheduled start played, so taps are measured from it. Only the first time for a cue counts.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 114
            },
            {
              "name": "Pulse",
              "anchor": "Calibrator.Pulse",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) Pulse(now time.Time) (cue int, level float64)",
              "doc": "Pulse returns the last cue at or before now and how brightly to show it: 1 at the cue, fading to 0 a quarter of the interval later. It returns -1 and 0 before cue 0 and once the calibration is done.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 104
            },
            {
              "name": "Result",
              "anchor": "Calibrator.Result",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) Result() (CalibrationResult, bool)",
              "doc": "Result returns what the counted taps measured, and whether it is Done.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 166
            },
            {
              "name": "Start",
              "anchor": "Calibrator.Start",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) Start(at time.Time)",
              "doc": "Start begins a calibration with cue 0 at at, forgetting any taps before.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 82
            },
            {
              "name": "Started",
              "anchor": "Calibrator.Started",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) Started() bool",
              "doc": "Started reports whether Start was called.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 89
            },
            {
              "name": "Tap",
              "anchor": "Calibrator.Tap",
              "recv": "*Calibrator",
              "decl": "func (c *Calibrator) Tap(at time.Time) (offset time.Duration, counted bool)",
              "doc": "Tap records a tap at at and returns how late it is for its cue, the cue nearest to at less Seed, and whether it counted: not before Start, a cue before 0, during the warmup or once done.\n",
              "file": "pkg/rhythm/calibrate.go",
              "line": 141
            }
          ]
        },
        {
          "name": "Clock",
          "anchor": "Clock",
          "decl": "type Clock struct {\n\t// Tolerance is how far a reported position may stray before Sync moves the clock; DefaultTolerance when 0.\n\tTolerance time.Duration\n\t// contains filtered or unexported fields\n}",
          "doc": "Clock is a track's music clock: the position the audio output plays, in the track's beats, read at any time of the engine's clock (audio.Now, which audio.Voice.StartAt also counts on), and corrected by a device's Offsets for judging input and drawing notes.\n\nStart it when the track starts playing: at the time passed to audio.Voice.StartAt for a sound, or in an audio.Player's Play callback with the player's position. Between starts it extrapolates from the engine's clock, so it does not move in the steps of a player's progress reports; Sync, called from the player's OnProgress, moves it only when the player drifts past Tolerance, as after a seek, a loop or a stall.\n\nA Clock is used from the engine's goroutine, as the audio package is.\n",
          "file": "pkg/rhythm/clock.go",
          "line": 21,
          "members": [
            {
              "name": "Tolerance",
              "anchor": "Clock.Tolerance",
              "kind": "field",
              "doc": "Tolerance is how far a reported position may stray before Sync moves the clock; DefaultTolerance when 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewClock",
              "anchor": "NewClock",
              "decl": "func NewClock(t *Timing) *Clock",
              "doc": "NewClock returns a stopped clock at track position 0, counting beats by t.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 33
            }
          ],
          "methods": [
            {
              "name": "Beat",
              "anchor": "Clock.Beat",
              "recv": "*Clock",
              "decl": "func (c *Clock) Beat(now time.Time) float64",
              "doc": "Beat returns the beat at Position(now).\n",
              "file": "pkg/rhythm/clock.go",
              "line": 76
            },
            {
              "name": "BeatTime",
              "anchor": "Clock.BeatTime",
              "recv": "*Clock",
              "decl": "func (c *Clock) BeatTime(beat float64) time.Time",
              "doc": "BeatTime returns TrackTime of beat.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 90
            },
            {
              "name": "DrawBeat",
              "anchor": "Clock.DrawBeat",
              "recv": "*Clock",
              "decl": "func (c *Clock) DrawBeat(now time.Time) float64",
              "doc": "DrawBeat returns the beat at DrawPosition(now): where a frame drawn at now puts the hit line.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 84
            },
            {
              "name": "DrawPosition",
              "anchor": "Clock.DrawPosition",
              "recv": "*Clock",
              "decl": "func (c *Clock) DrawPosition(now time.Time) time.Duration",
              "doc": "DrawPosition returns the track position a frame drawn at engine time now should show, so that what it shows reaches the player with the beat they hear: the output's position plus the video offset less the audio offset.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 79
            },
            {
              "name": "Judge",
              "anchor": "Clock.Judge",
              "recv": "*Clock",
              "decl": "func (c *Clock) Judge(at time.Time, beat float64) time.Duration",
              "doc": "Judge returns how early (negative) or late (positive) an input going down at engine time at is for beat, corrected by the device's audio offset. Take at from the edge calibration took taps on, a press going down (core.View.OnPressDown) or a key going down, never a completed press.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 93
            },
            {
              "name": "Offsets",
              "anchor": "Clock.Offsets",
              "recv": "*Clock",
              "decl": "func (c *Clock) Offsets() Offsets",
              "doc": "Offsets returns the device's offsets the clock corrects by.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 39
            },
            {
              "name": "Pause",
              "anchor": "Clock.Pause",
              "recv": "*Clock",
              "decl": "func (c *Clock) Pause(at time.Time)",
              "doc": "Pause stops the clock at the position the output plays at engine time at.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 53
            },
            {
              "name": "Position",
              "anchor": "Clock.Position",
              "recv": "*Clock",
              "decl": "func (c *Clock) Position(now time.Time) time.Duration",
              "doc": "Position returns the track position a player acting at engine time now acts on: the output's position less the device's audio offset. Judge input by it.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 73
            },
            {
              "name": "Resume",
              "anchor": "Clock.Resume",
              "recv": "*Clock",
              "decl": "func (c *Clock) Resume(at time.Time)",
              "doc": "Resume has a paused clock run on from where it paused, played by the output at engine time at.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 58
            },
            {
              "name": "Running",
              "anchor": "Clock.Running",
              "recv": "*Clock",
              "decl": "func (c *Clock) Running() bool",
              "doc": "Running reports whether the clock runs, between Start or Resume and Pause.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 45
            },
            {
              "name": "SetOffsets",
              "anchor": "Clock.SetOffsets",
              "recv": "*Clock",
              "decl": "func (c *Clock) SetOffsets(o Offsets)",
              "doc": "SetOffsets sets the device's offsets the clock corrects by, such as those OffsetStore.Get returns.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 42
            },
            {
              "name": "Start",
              "anchor": "Clock.Start",
              "recv": "*Clock",
              "decl": "func (c *Clock) Start(at time.Time, from time.Duration)",
              "doc": "Start has the clock run from track position from, played by the output at engine time at.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 48
            },
            {
              "name": "Sync",
              "anchor": "Clock.Sync",
              "recv": "*Clock",
              "decl": "func (c *Clock) Sync(reported time.Duration, at time.Time) bool",
              "doc": "Sync compares the position a player reports, reported at engine time at, with the clock, and moves the clock to it when they differ by more than Tolerance, reporting whether it did. A stopped clock does not move. Call it from audio.PlayerOptions.OnProgress with audio.Now.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 98
            },
            {
              "name": "Timing",
              "anchor": "Clock.Timing",
              "recv": "*Clock",
              "decl": "func (c *Clock) Timing() *Timing",
              "doc": "Timing returns the beat map's timing the clock counts by.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 36
            },
            {
              "name": "Track",
              "anchor": "Clock.Track",
              "recv": "*Clock",
              "decl": "func (c *Clock) Track(now time.Time) time.Duration",
              "doc": "Track returns the track position the output plays at engine time now, uncorrected: where the track is, not what is heard.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 65
            },
            {
              "name": "TrackTime",
              "anchor": "Clock.TrackTime",
              "recv": "*Clock",
              "decl": "func (c *Clock) TrackTime(pos time.Duration) time.Time",
              "doc": "TrackTime returns the engine time at which the output plays track position pos while the clock runs. Pass it to audio.Voice.StartAt to start a hit sound or a metronome click in time with the track: both go through the same output, so no offset applies.\n",
              "file": "pkg/rhythm/clock.go",
              "line": 87
            }
          ]
        },
        {
          "name": "DeviceOffsets",
          "anchor": "DeviceOffsets",
          "decl": "type DeviceOffsets struct {\n\t// AudioMs is Offsets.Audio in milliseconds.\n\tAudioMs float64 `yaml:\"audioMs\"`\n\t// VideoMs is Offsets.Video in milliseconds.\n\tVideoMs float64 `yaml:\"videoMs\"`\n}",
          "doc": "DeviceOffsets are a device's Offsets in milliseconds, as written.\n",
          "file": "pkg/rhythm/store.go",
          "line": 48,
          "members": [
            {
              "name": "AudioMs",
              "anchor": "DeviceOffsets.AudioMs",
              "kind": "field",
              "doc": "AudioMs is Offsets.Audio in milliseconds."
            },
            {
              "name": "VideoMs",
              "anchor": "DeviceOffsets.VideoMs",
              "kind": "field",
              "doc": "VideoMs is Offsets.Video in milliseconds."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DeviceOffsetsOf",
              "anchor": "DeviceOffsetsOf",
              "decl": "func DeviceOffsetsOf(o Offsets) DeviceOffsets",
              "doc": "DeviceOffsetsOf returns o in milliseconds.\n",
              "file": "pkg/rhythm/store.go",
              "line": 61
            }
          ],
          "methods": [
            {
              "name": "Offsets",
              "anchor": "DeviceOffsets.Offsets",
              "recv": "DeviceOffsets",
              "decl": "func (d DeviceOffsets) Offsets() Offsets",
              "doc": "Offsets returns d as durations, rounded to the nanosecond.\n",
              "file": "pkg/rhythm/store.go",
              "line": 56
            }
          ]
        },
        {
          "name": "Meter",
          "anchor": "Meter",
          "decl": "type Meter struct {\n\t// Beat is where the first bar of the meter starts: a whole number of the previous meter's bars after the previous change.\n\tBeat int `yaml:\"beat\"`\n\t// BeatsPerBar is the beats in each bar, 1 to MaxBeatsPerBar.\n\tBeatsPerBar int `yaml:\"beatsPerBar\"`\n}",
          "doc": "Meter is a meter change: from Beat on, bars of BeatsPerBar beats.\n",
          "file": "pkg/rhythm/beatmap.go",
          "line": 72,
          "members": [
            {
              "name": "Beat",
              "anchor": "Meter.Beat",
              "kind": "field",
              "doc": "Beat is where the first bar of the meter starts: a whole number of the previous meter's bars after the previous change."
            },
            {
              "name": "BeatsPerBar",
              "anchor": "Meter.BeatsPerBar",
              "kind": "field",
              "doc": "BeatsPerBar is the beats in each bar, 1 to MaxBeatsPerBar."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "OffsetStore",
          "anchor": "OffsetStore",
          "decl": "type OffsetStore struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "OffsetStore keeps each device's offsets as a Calibrations YAML document in the app's storage (core.Storage) under one key, so they hold across launches and a player who moves their save to another device calibrates that device anew.\n",
          "file": "pkg/rhythm/store.go",
          "line": 156,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewOffsetStore",
              "anchor": "NewOffsetStore",
              "decl": "func NewOffsetStore(cx *core.Scope, key string) *OffsetStore",
              "doc": "NewOffsetStore returns a store keeping its document in cx's storage under key, such as \"rhythm.calibration\".\n",
              "file": "pkg/rhythm/store.go",
              "line": 162
            }
          ],
          "methods": [
            {
              "name": "Get",
              "anchor": "OffsetStore.Get",
              "recv": "*OffsetStore",
              "decl": "func (s *OffsetStore) Get(device string) (Offsets, bool)",
              "doc": "Get returns device's offsets and whether they are kept; a document that is not readable keeps none.\n",
              "file": "pkg/rhythm/store.go",
              "line": 176
            },
            {
              "name": "Load",
              "anchor": "OffsetStore.Load",
              "recv": "*OffsetStore",
              "decl": "func (s *OffsetStore) Load() (*Calibrations, error)",
              "doc": "Load returns the document kept, an empty one when none is, or why the text kept is not one. Read in a computation, it subscribes it to changes, as core.Storage does.\n",
              "file": "pkg/rhythm/store.go",
              "line": 167
            },
            {
              "name": "Remove",
              "anchor": "OffsetStore.Remove",
              "recv": "*OffsetStore",
              "decl": "func (s *OffsetStore) Remove(device string) error",
              "doc": "Remove forgets device's offsets. It fails as Set does, and also when the document kept is not readable, which it leaves as it is.\n",
              "file": "pkg/rhythm/store.go",
              "line": 200
            },
            {
              "name": "Set",
              "anchor": "OffsetStore.Set",
              "recv": "*OffsetStore",
              "decl": "func (s *OffsetStore) Set(device string, o Offsets) error",
              "doc": "Set keeps o for device, rounded to the nanosecond as milliseconds, alongside the other devices'. A document that is not readable, such as one a later schema wrote, is replaced. It fails when o or device is out of range, or with a *core.StorageFullError when the storage is full, keeping what it held.\n",
              "file": "pkg/rhythm/store.go",
              "line": 186
            }
          ]
        },
        {
          "name": "Offsets",
          "anchor": "Offsets",
          "decl": "type Offsets struct {\n\t// Audio is how long after the engine starts a sound the player taps to it: the output's latency, the input's and the player's habit together. It is usually positive, and tens to hundreds of milliseconds over Bluetooth.\n\tAudio time.Duration\n\t// Video is how long after the engine draws a frame the player taps to what it shows: the display's latency, the input's and the player's habit together.\n\tVideo time.Duration\n}",
          "doc": "Offsets are the delays between the engine starting a sound or drawing a frame and the player acting on it, as calibration measures them on a device.\n",
          "file": "pkg/rhythm/clock.go",
          "line": 9,
          "members": [
            {
              "name": "Audio",
              "anchor": "Offsets.Audio",
              "kind": "field",
              "doc": "Audio is how long after the engine starts a sound the player taps to it: the output's latency, the input's and the player's habit together. It is usually positive, and tens to hundreds of milliseconds over Bluetooth."
            },
            {
              "name": "Video",
              "anchor": "Offsets.Video",
              "kind": "field",
              "doc": "Video is how long after the engine draws a frame the player taps to what it shows: the display's latency, the input's and the player's habit together."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Tempo",
          "anchor": "Tempo",
          "decl": "type Tempo struct {\n\t// Beat is where the tempo starts, 0 or later and after the change before it.\n\tBeat float64 `yaml:\"beat\"`\n\t// BPM is the beats a minute, from MinBPM to MaxBPM.\n\tBPM float64 `yaml:\"bpm\"`\n}",
          "doc": "Tempo is a tempo change: from Beat on, BPM beats a minute.\n",
          "file": "pkg/rhythm/beatmap.go",
          "line": 64,
          "members": [
            {
              "name": "Beat",
              "anchor": "Tempo.Beat",
              "kind": "field",
              "doc": "Beat is where the tempo starts, 0 or later and after the change before it."
            },
            {
              "name": "BPM",
              "anchor": "Tempo.BPM",
              "kind": "field",
              "doc": "BPM is the beats a minute, from MinBPM to MaxBPM."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Timing",
          "anchor": "Timing",
          "decl": "type Timing struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Timing converts between a track's time and its beats and bars, by a BeatMap. Times are from the start of the audio, the position a player reports; a beat before 0 or after the last change keeps the tempo nearest it. A Timing never changes, so goroutines may share one.\n",
          "file": "pkg/rhythm/beatmap.go",
          "line": 272,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "BPM",
              "anchor": "Timing.BPM",
              "recv": "*Timing",
              "decl": "func (t *Timing) BPM(beat float64) float64",
              "doc": "BPM returns the tempo at beat.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 309
            },
            {
              "name": "Bar",
              "anchor": "Timing.Bar",
              "recv": "*Timing",
              "decl": "func (t *Timing) Bar(beat float64) (bar int, inBar float64)",
              "doc": "Bar returns the bar beat falls in, counted from 0 at beat 0 and negative before it, and how many beats into that bar it is.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 312
            },
            {
              "name": "Beat",
              "anchor": "Timing.Beat",
              "recv": "*Timing",
              "decl": "func (t *Timing) Beat(d time.Duration) float64",
              "doc": "Beat returns the beat that plays at track time d.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 306
            },
            {
              "name": "BeatAtSeconds",
              "anchor": "Timing.BeatAtSeconds",
              "recv": "*Timing",
              "decl": "func (t *Timing) BeatAtSeconds(sec float64) float64",
              "doc": "BeatAtSeconds returns the beat that plays sec seconds into the track.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 299
            },
            {
              "name": "BeatsPerBar",
              "anchor": "Timing.BeatsPerBar",
              "recv": "*Timing",
              "decl": "func (t *Timing) BeatsPerBar(beat float64) int",
              "doc": "BeatsPerBar returns the meter at beat.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 321
            },
            {
              "name": "Seconds",
              "anchor": "Timing.Seconds",
              "recv": "*Timing",
              "decl": "func (t *Timing) Seconds(beat float64) float64",
              "doc": "Seconds returns the track time beat plays at, in seconds, at full float64 precision.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 288
            },
            {
              "name": "Time",
              "anchor": "Timing.Time",
              "recv": "*Timing",
              "decl": "func (t *Timing) Time(beat float64) time.Duration",
              "doc": "Time returns the track time beat plays at, rounded to the nanosecond.\n",
              "file": "pkg/rhythm/beatmap.go",
              "line": 294
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/rooms",
      "name": "rooms",
      "dir": "pkg/rooms",
      "page": "pkg/rooms",
      "synopsis": "Package rooms splits a 2D world into rooms with their own camera bounds and moves a tilemap.Camera between them with a cut, slide or fade transition, as metroidvania platformers do.",
      "doc": "Package rooms splits a 2D world into rooms with their own camera bounds and moves a tilemap.Camera between them with a cut, slide or fade transition, as metroidvania platformers do.\n\n# Room Maps\n\nA Map is a versioned YAML file listing rectangular rooms in world points and the transition each one plays when the player enters it. Parse decodes and validates a map, refusing unknown fields, unsupported versions, duplicate IDs, empty or non-finite rectangles, unknown transition kinds or curves and malformed colors. Encode writes deterministic 2-space YAML that Parse reads back to the same Map. FromLDtk and FromTiledLayer build rooms from an LDtk project's levels or a Tiled object layer's rectangles, so a map can be laid out in either editor.\n\n# Director\n\nA Director owns the camera's position. Each fixed step, Update finds the room holding the target (usually the player), keeping the current room while the target is still inside it so overlapping edges do not flicker. When the target enters another room, Update sets Camera.Bounds to that room and plays its transition:\n\n  - cut snaps the camera to the target, clamped to the new room.\n  - slide pans the camera from where it was to the target's clamped position in the new room over the transition's duration, along its curve.\n  - fade covers the view with a color over the first half, cuts the camera to the new room at the midpoint and uncovers the view over the second half; DrawFade paints the cover.\n\nOutside transitions Update follows the target with tilemap.Camera.Follow, clamped to the current room. Transitioning reports when a transition is playing, so a game can pause its player until the camera lands.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultSlideDuration",
              "anchor": "DefaultSlideDuration"
            },
            {
              "name": "DefaultFadeDuration",
              "anchor": "DefaultFadeDuration"
            }
          ],
          "decl": "const (\n\t// DefaultSlideDuration is how long a slide lasts when its Duration is 0.\n\tDefaultSlideDuration = 400 * time.Millisecond\n\t// DefaultFadeDuration is how long a fade lasts, out and back in, when its Duration is 0.\n\tDefaultFadeDuration = 600 * time.Millisecond\n)",
          "doc": "Default transition lengths, used when a slide or fade leaves Duration at 0.\n",
          "file": "pkg/rooms/format.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the room map schema version this package reads and writes.\n",
          "file": "pkg/rooms/format.go",
          "line": 19
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrInvalidMap",
              "anchor": "ErrInvalidMap"
            }
          ],
          "decl": "var ErrInvalidMap = errors.New(\"rooms: invalid map\")",
          "doc": "ErrInvalidMap reports that a room map breaks the schema: a wrong version, no rooms, a missing or duplicate ID, an empty or non-finite rectangle, or a malformed transition.\n",
          "file": "pkg/rooms/format.go",
          "line": 30
        }
      ],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(m *Map) ([]byte, error)",
          "doc": "Encode validates m and writes it as deterministic YAML with 2-space indentation, fields in declaration order and no generated values, so Parse(Encode(m)) equals m.\n",
          "file": "pkg/rooms/format.go",
          "line": 274
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(m *Map) error",
          "doc": "Validate checks m against the schema: the version, at least one room, unique non-empty IDs, finite rectangles with positive sizes, and well-formed transitions. Errors wrap ErrInvalidMap.\n",
          "file": "pkg/rooms/format.go",
          "line": 298
        }
      ],
      "types": [
        {
          "name": "Director",
          "anchor": "Director",
          "decl": "type Director struct {\n\t// Map is the room map the Director moves through.\n\tMap *Map\n\t// Camera is the camera the Director moves.\n\tCamera *tilemap.Camera\n\t// Smoothing is the Camera.Follow smoothing used outside transitions; <= 0 keeps the camera locked on the target.\n\tSmoothing float32\n\t// contains filtered or unexported fields\n}",
          "doc": "Director moves a tilemap.Camera between a Map's rooms, clamping it to the room the target is in and playing the room's transition on entry.\n\nThe Director owns Camera.X, Camera.Y and Camera.Bounds: a game calls Update once per fixed step instead of Camera.Follow or Camera.Clamp, and keeps calling Camera.Update for shake. Map must not change while the Director uses it; call Start again after replacing it.\n",
          "file": "pkg/rooms/director.go",
          "line": 14,
          "members": [
            {
              "name": "Map",
              "anchor": "Director.Map",
              "kind": "field",
              "doc": "Map is the room map the Director moves through."
            },
            {
              "name": "Camera",
              "anchor": "Director.Camera",
              "kind": "field",
              "doc": "Camera is the camera the Director moves."
            },
            {
              "name": "Smoothing",
              "anchor": "Director.Smoothing",
              "kind": "field",
              "doc": "Smoothing is the Camera.Follow smoothing used outside transitions; <= 0 keeps the camera locked on the target."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDirector",
              "anchor": "NewDirector",
              "decl": "func NewDirector(m *Map, cam *tilemap.Camera) *Director",
              "doc": "NewDirector returns a Director that moves cam through m's rooms.\n",
              "file": "pkg/rooms/director.go",
              "line": 53
            }
          ],
          "methods": [
            {
              "name": "DrawFade",
              "anchor": "Director.DrawFade",
              "recv": "*Director",
              "decl": "func (d *Director) DrawFade(dr *core.Drawing)",
              "doc": "DrawFade covers the view with the fade's color at FadeAlpha, and draws nothing when no cover is showing. Call it in view space, after the world and outside Camera.Apply, so the cover fills the Camera.Width by Camera.Height view.\n",
              "file": "pkg/rooms/director.go",
              "line": 131
            },
            {
              "name": "FadeAlpha",
              "anchor": "Director.FadeAlpha",
              "recv": "*Director",
              "decl": "func (d *Director) FadeAlpha() float32",
              "doc": "FadeAlpha returns the opacity of the fade's cover, from 0 to 1, or 0 when no cover is showing. A fade interrupted by a room change keeps its cover's opacity: a new fade covers on from it, and a slide or cut lets it clear as the interrupted fade would have.\n",
              "file": "pkg/rooms/director.go",
              "line": 118
            },
            {
              "name": "Previous",
              "anchor": "Director.Previous",
              "recv": "*Director",
              "decl": "func (d *Director) Previous() *Room",
              "doc": "Previous returns the room the camera last left, or nil before the first room change.\n",
              "file": "pkg/rooms/director.go",
              "line": 61
            },
            {
              "name": "Progress",
              "anchor": "Director.Progress",
              "recv": "*Director",
              "decl": "func (d *Director) Progress() float64",
              "doc": "Progress returns how far the playing transition has run, from 0 to 1 in linear time, or 1 when none is playing.\n",
              "file": "pkg/rooms/director.go",
              "line": 70
            },
            {
              "name": "Room",
              "anchor": "Director.Room",
              "recv": "*Director",
              "decl": "func (d *Director) Room() *Room",
              "doc": "Room returns the room the camera is in or moving into, or nil before the target was first found in a room.\n",
              "file": "pkg/rooms/director.go",
              "line": 58
            },
            {
              "name": "Start",
              "anchor": "Director.Start",
              "recv": "*Director",
              "decl": "func (d *Director) Start(target core.Point) bool",
              "doc": "Start puts the camera in the room holding target, clamped to it, with no transition, and reports whether a room holds target. Use it to spawn the player or after loading a save; when no room holds target, or target has a non-finite coordinate, the Director keeps its state.\n",
              "file": "pkg/rooms/director.go",
              "line": 78
            },
            {
              "name": "Transition",
              "anchor": "Director.Transition",
              "recv": "*Director",
              "decl": "func (d *Director) Transition() Transition",
              "doc": "Transition returns the transition that is playing, or the last one played; its Kind is empty before the first room change.\n",
              "file": "pkg/rooms/director.go",
              "line": 67
            },
            {
              "name": "Transitioning",
              "anchor": "Director.Transitioning",
              "recv": "*Director",
              "decl": "func (d *Director) Transitioning() bool",
              "doc": "Transitioning reports whether a slide or fade is playing.\n",
              "file": "pkg/rooms/director.go",
              "line": 64
            },
            {
              "name": "Update",
              "anchor": "Director.Update",
              "recv": "*Director",
              "decl": "func (d *Director) Update(target core.Point, dt time.Duration) bool",
              "doc": "Update advances the Director by one fixed step of dt toward target, usually the player's position, and reports whether target entered a room on this step.\n\nWhile target stays in the current room it stays there, even where rooms overlap. When target leaves it for another room, Update clamps the camera to that room and starts its transition. When target is in no room, the camera keeps to the current one. A target with a non-finite coordinate is ignored: the camera and any transition hold for that step. Before the first room is found, Update behaves as Start.\n",
              "file": "pkg/rooms/director.go",
              "line": 99
            }
          ]
        },
        {
          "name": "Duration",
          "anchor": "Duration",
          "decl": "type Duration time.Duration",
          "doc": "Duration is a time.Duration written in YAML as a Go duration string with a unit, such as \"400ms\" or \"1.5s\".\n",
          "file": "pkg/rooms/format.go",
          "line": 87,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Duration.MarshalYAML",
              "recv": "Duration",
              "decl": "func (d Duration) MarshalYAML() (any, error)",
              "doc": "MarshalYAML writes d as its time.Duration string.\n",
              "file": "pkg/rooms/format.go",
              "line": 90
            },
            {
              "name": "UnmarshalYAML",
              "anchor": "Duration.UnmarshalYAML",
              "recv": "*Duration",
              "decl": "func (d *Duration) UnmarshalYAML(n *yaml.Node) error",
              "doc": "UnmarshalYAML reads a duration string with a unit; a bare number is refused so its unit is never guessed.\n",
              "file": "pkg/rooms/format.go",
              "line": 93
            }
          ]
        },
        {
          "name": "Easing",
          "anchor": "Easing",
          "decl": "type Easing string",
          "doc": "Easing names one of NSGo's standard easing curves in a room map.\n",
          "file": "pkg/rooms/format.go",
          "line": 54,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "EasingLinear",
                  "anchor": "EasingLinear"
                },
                {
                  "name": "EasingEase",
                  "anchor": "EasingEase"
                },
                {
                  "name": "EasingEaseIn",
                  "anchor": "EasingEaseIn"
                },
                {
                  "name": "EasingEaseOut",
                  "anchor": "EasingEaseOut"
                },
                {
                  "name": "EasingEaseInOut",
                  "anchor": "EasingEaseInOut"
                }
              ],
              "decl": "const (\n\t// EasingLinear is core.Linear.\n\tEasingLinear Easing = \"linear\"\n\t// EasingEase is core.Ease.\n\tEasingEase Easing = \"ease\"\n\t// EasingEaseIn is core.EaseIn.\n\tEasingEaseIn Easing = \"easeIn\"\n\t// EasingEaseOut is core.EaseOut.\n\tEasingEaseOut Easing = \"easeOut\"\n\t// EasingEaseInOut is core.EaseInOut.\n\tEasingEaseInOut Easing = \"easeInOut\"\n)",
              "doc": "",
              "file": "pkg/rooms/format.go",
              "line": 56
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Curve",
              "anchor": "Easing.Curve",
              "recv": "Easing",
              "decl": "func (e Easing) Curve() (core.Curve, bool)",
              "doc": "Curve returns the core.Curve e names, and false when e is not one of the Easing constants.\n",
              "file": "pkg/rooms/format.go",
              "line": 70
            }
          ]
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind string",
          "doc": "Kind is how the camera moves into a room.\n",
          "file": "pkg/rooms/format.go",
          "line": 33,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindCut",
                  "anchor": "KindCut"
                },
                {
                  "name": "KindSlide",
                  "anchor": "KindSlide"
                },
                {
                  "name": "KindFade",
                  "anchor": "KindFade"
                }
              ],
              "decl": "const (\n\t// KindCut snaps the camera into the new room at once.\n\tKindCut Kind = \"cut\"\n\t// KindSlide pans the camera into the new room over the transition's duration.\n\tKindSlide Kind = \"slide\"\n\t// KindFade covers the view with a color, cuts to the new room at the midpoint and uncovers it.\n\tKindFade Kind = \"fade\"\n)",
              "doc": "",
              "file": "pkg/rooms/format.go",
              "line": 35
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "Kind.Valid",
              "recv": "Kind",
              "decl": "func (k Kind) Valid() bool",
              "doc": "Valid reports whether k is KindCut, KindSlide or KindFade.\n",
              "file": "pkg/rooms/format.go",
              "line": 45
            }
          ]
        },
        {
          "name": "Map",
          "anchor": "Map",
          "decl": "type Map struct {\n\t// Version is the schema version; it must equal FormatVersion.\n\tVersion int `yaml:\"version\"`\n\t// Transition is played when entering a room that sets none; nil cuts.\n\tTransition *Transition `yaml:\"transition,omitempty\"`\n\t// Rooms lists the rooms. Where rooms overlap, a target entering the overlap from outside both belongs to the first one listed.\n\tRooms []Room `yaml:\"rooms\"`\n}",
          "doc": "Map is the root of a versioned YAML room map.\n",
          "file": "pkg/rooms/format.go",
          "line": 153,
          "members": [
            {
              "name": "Version",
              "anchor": "Map.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal FormatVersion."
            },
            {
              "name": "Transition",
              "anchor": "Map.Transition",
              "kind": "field",
              "doc": "Transition is played when entering a room that sets none; nil cuts."
            },
            {
              "name": "Rooms",
              "anchor": "Map.Rooms",
              "kind": "field",
              "doc": "Rooms lists the rooms. Where rooms overlap, a target entering the overlap from outside both belongs to the first one listed."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadFS",
              "anchor": "LoadFS",
              "decl": "func LoadFS(fsys fs.FS, name string) (*Map, error)",
              "doc": "LoadFS reads and parses the room map at name in fsys.\n",
              "file": "pkg/rooms/format.go",
              "line": 261
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Map, error)",
              "doc": "Parse decodes a YAML room map and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/rooms/format.go",
              "line": 234
            }
          ],
          "methods": [
            {
              "name": "Room",
              "anchor": "Map.Room",
              "recv": "*Map",
              "decl": "func (m *Map) Room(id string) *Room",
              "doc": "Room returns the room with the given ID, or nil when m has none.\n",
              "file": "pkg/rooms/format.go",
              "line": 196
            },
            {
              "name": "RoomAt",
              "anchor": "Map.RoomAt",
              "recv": "*Map",
              "decl": "func (m *Map) RoomAt(p core.Point) *Room",
              "doc": "RoomAt returns the first room in list order that contains p, or nil when none does.\n",
              "file": "pkg/rooms/format.go",
              "line": 209
            },
            {
              "name": "TransitionInto",
              "anchor": "Map.TransitionInto",
              "recv": "*Map",
              "decl": "func (m *Map) TransitionInto(r *Room) Transition",
              "doc": "TransitionInto returns the transition played when entering r: r's own, else the map's, else a cut.\n",
              "file": "pkg/rooms/format.go",
              "line": 222
            }
          ]
        },
        {
          "name": "Room",
          "anchor": "Room",
          "decl": "type Room struct {\n\t// ID uniquely identifies the room within the map and in saves.\n\tID string `yaml:\"id\"`\n\t// Name is the room's display name or a localization key; the package does not interpret it.\n\tName string `yaml:\"name,omitempty\"`\n\t// X is the room's left edge in world points.\n\tX float32 `yaml:\"x\"`\n\t// Y is the room's top edge in world points.\n\tY float32 `yaml:\"y\"`\n\t// Width is the room's width in world points; it must be positive.\n\tWidth float32 `yaml:\"width\"`\n\t// Height is the room's height in world points; it must be positive.\n\tHeight float32 `yaml:\"height\"`\n\t// Transition is played when entering this room, overriding the map's.\n\tTransition *Transition `yaml:\"transition,omitempty\"`\n}",
          "doc": "Room is one rectangle of the world with its own camera bounds.\n",
          "file": "pkg/rooms/format.go",
          "line": 163,
          "members": [
            {
              "name": "ID",
              "anchor": "Room.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the room within the map and in saves."
            },
            {
              "name": "Name",
              "anchor": "Room.Name",
              "kind": "field",
              "doc": "Name is the room's display name or a localization key; the package does not interpret it."
            },
            {
              "name": "X",
              "anchor": "Room.X",
              "kind": "field",
              "doc": "X is the room's left edge in world points."
            },
            {
              "name": "Y",
              "anchor": "Room.Y",
              "kind": "field",
              "doc": "Y is the room's top edge in world points."
            },
            {
              "name": "Width",
              "anchor": "Room.Width",
              "kind": "field",
              "doc": "Width is the room's width in world points; it must be positive."
            },
            {
              "name": "Height",
              "anchor": "Room.Height",
              "kind": "field",
              "doc": "Height is the room's height in world points; it must be positive."
            },
            {
              "name": "Transition",
              "anchor": "Room.Transition",
              "kind": "field",
              "doc": "Transition is played when entering this room, overriding the map's."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FromLDtk",
              "anchor": "FromLDtk",
              "decl": "func FromLDtk(data []byte, world string) ([]Room, error)",
              "doc": "FromLDtk returns one room per level of an LDtk project (.ldtk JSON), with the level's identifier as the room's ID and its world position and pixel size as the room's rectangle.\n\nAn empty world reads the project's top-level levels; a project with LDtk's multi-worlds enabled names the world to read by its identifier. The world's layout must be Free or GridVania, since Linear layouts give levels no world positions. The rooms carry no transitions; put them in a Map, whose Transition applies to every room, and run Validate.\n",
              "file": "pkg/rooms/import.go",
              "line": 33
            },
            {
              "name": "FromTiledLayer",
              "anchor": "FromTiledLayer",
              "decl": "func FromTiledLayer(layer *tilemap.ObjectLayer) ([]Room, error)",
              "doc": "FromTiledLayer returns one room per object of a Tiled object layer, in layer order, with the object's name as the room's ID and its rectangle, moved by the layer's offset (which includes the offsets of the groups holding it), as the room's.\n\nEvery object must be an unrotated rectangle (not a tile, point, ellipse, polygon or polyline) with a name and a positive size, so a misdrawn room is reported instead of skipped. The rooms carry no transitions; put them in a Map, whose Transition applies to every room, and run Validate.\n",
              "file": "pkg/rooms/import.go",
              "line": 84
            }
          ],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Room.Bounds",
              "recv": "*Room",
              "decl": "func (r *Room) Bounds() core.Bounds",
              "doc": "Bounds returns r's rectangle as core.Bounds, ready for tilemap.Camera.Bounds.\n",
              "file": "pkg/rooms/format.go",
              "line": 181
            },
            {
              "name": "Contains",
              "anchor": "Room.Contains",
              "recv": "*Room",
              "decl": "func (r *Room) Contains(p core.Point) bool",
              "doc": "Contains reports whether p lies in r, including its left and top edges and excluding its right and bottom ones, so rooms that share an edge never both hold a point on it.\n",
              "file": "pkg/rooms/format.go",
              "line": 189
            }
          ]
        },
        {
          "name": "Transition",
          "anchor": "Transition",
          "decl": "type Transition struct {\n\t// Kind is cut, slide or fade.\n\tKind Kind `yaml:\"kind\"`\n\t// Duration is how long a slide or fade lasts; 0 uses DefaultSlideDuration or DefaultFadeDuration. A cut must leave it 0.\n\tDuration Duration `yaml:\"duration,omitempty\"`\n\t// Easing eases a slide's pan or a fade's cover; empty uses easeInOut for a slide and linear for a fade. A cut must leave it empty.\n\tEasing Easing `yaml:\"easing,omitempty\"`\n\t// Color is a fade's cover color as a CSS color, such as \"#000\" or \"rgb(20 10 40)\"; empty is black. Only a fade may set it.\n\tColor string `yaml:\"color,omitempty\"`\n}",
          "doc": "Transition is how the camera moves into a room.\n",
          "file": "pkg/rooms/format.go",
          "line": 106,
          "members": [
            {
              "name": "Kind",
              "anchor": "Transition.Kind",
              "kind": "field",
              "doc": "Kind is cut, slide or fade."
            },
            {
              "name": "Duration",
              "anchor": "Transition.Duration",
              "kind": "field",
              "doc": "Duration is how long a slide or fade lasts; 0 uses DefaultSlideDuration or DefaultFadeDuration. A cut must leave it 0."
            },
            {
              "name": "Easing",
              "anchor": "Transition.Easing",
              "kind": "field",
              "doc": "Easing eases a slide's pan or a fade's cover; empty uses easeInOut for a slide and linear for a fade. A cut must leave it empty."
            },
            {
              "name": "Color",
              "anchor": "Transition.Color",
              "kind": "field",
              "doc": "Color is a fade's cover color as a CSS color, such as \"#000\" or \"rgb(20 10 40)\"; empty is black. Only a fade may set it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Curve",
              "anchor": "Transition.Curve",
              "recv": "Transition",
              "decl": "func (t Transition) Curve() core.Curve",
              "doc": "Curve returns t's easing curve: the one Easing names, or core.EaseInOut for a slide and core.Linear otherwise.\n",
              "file": "pkg/rooms/format.go",
              "line": 132
            },
            {
              "name": "FadeColor",
              "anchor": "Transition.FadeColor",
              "recv": "Transition",
              "decl": "func (t Transition) FadeColor() core.Color",
              "doc": "FadeColor returns the color a fade covers the view with: Color parsed as a CSS color, or opaque black when Color is empty or malformed.\n",
              "file": "pkg/rooms/format.go",
              "line": 143
            },
            {
              "name": "Length",
              "anchor": "Transition.Length",
              "recv": "Transition",
              "decl": "func (t Transition) Length() time.Duration",
              "doc": "Length returns how long t lasts: Duration, or the kind's default when Duration is 0. A cut lasts 0.\n",
              "file": "pkg/rooms/format.go",
              "line": 118
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/rts",
      "name": "rts",
      "dir": "pkg/rts",
      "page": "pkg/rts",
      "synopsis": "Package rts provides the unit-control layer of a real-time strategy game: whole-grid and HPA* sector-limited flow fields that steer many units toward a goal over an ai.Grid, a Crowd that moves those units with push-apart separation or ORCA local avoidance and wall sliding, formations defined in versioned YAML, box and click selection, and numbered control groups.",
      "doc": "Package rts provides the unit-control layer of a real-time strategy game: whole-grid and HPA* sector-limited flow fields that steer many units toward a goal over an ai.Grid, a Crowd that moves those units with push-apart separation or ORCA local avoidance and wall sliding, formations defined in versioned YAML, box and click selection, and numbered control groups.\n\nEverything is deterministic and steps on game.Loop's fixed steps with no background goroutines: the same orders on the same grid move the same units to the same places on every run on the same CPU architecture. Positions are float32, and Go may fuse a multiply and an add into one instruction on arm64 but not on x64, so the same orders can end a few ulps apart on different architectures; a lockstep multiplayer game across architectures should exchange state from an authoritative host rather than rely on each peer stepping its own Crowd.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultDoubleTapSteps",
              "anchor": "DefaultDoubleTapSteps"
            }
          ],
          "decl": "const DefaultDoubleTapSteps = 18",
          "doc": "DefaultDoubleTapSteps is the double-tap window, 18 steps or 0.3 seconds at 60 steps per second.\n",
          "file": "pkg/rts/groups.go",
          "line": 67
        },
        {
          "idents": [
            {
              "name": "DefaultFieldCacheSize",
              "anchor": "DefaultFieldCacheSize"
            }
          ],
          "decl": "const DefaultFieldCacheSize = 16",
          "doc": "DefaultFieldCacheSize is the number of flow fields a FieldCache keeps when NewFieldCache is given a capacity of 0 or less.\n",
          "file": "pkg/rts/fieldcache.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "FormationsVersion",
              "anchor": "FormationsVersion"
            }
          ],
          "decl": "const FormationsVersion = 1",
          "doc": "FormationsVersion is the formation file schema version this package reads and writes.\n",
          "file": "pkg/rts/format.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "GroupCount",
              "anchor": "GroupCount"
            }
          ],
          "decl": "const GroupCount = 10",
          "doc": "GroupCount is the number of control groups, one per digit key 0 to 9.\n",
          "file": "pkg/rts/groups.go",
          "line": 10
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "Unreachable",
              "anchor": "Unreachable"
            }
          ],
          "decl": "var Unreachable = float32(math.Inf(1))",
          "doc": "Unreachable is the integration cost of a cell no goal can be reached from, and of every cell outside the grid.\n",
          "file": "pkg/rts/flowfield.go",
          "line": 38
        }
      ],
      "funcs": [
        {
          "name": "Assign",
          "anchor": "Assign",
          "decl": "func Assign(dst []int, positions []math2d.Vec2, slots []Slot, facing math2d.Vec2) []int",
          "doc": "Assign matches units at positions to slots so that front units take front slots and units on the left take left slots, which keeps their paths from crossing. It returns, for each unit, the index of its slot, appended to dst[:0]; slots must have at least len(positions) entries, laid out by Layout (row-major, front row first), and facing is the formation's facing.\n\nThe match runs in O(n log n): units are ranked by how far ahead they stand along facing and dealt out to the rows front to back, then within a row ranked across and paired with the row's slots left to right. Ties fall back to the units' order in positions, so the result is deterministic.\n",
          "file": "pkg/rts/formation.go",
          "line": 134
        },
        {
          "name": "DrawFlowField",
          "anchor": "DrawFlowField",
          "decl": "func DrawFlowField(d *core.Drawing, f *FlowField, col core.Color, lineWidth float32)",
          "doc": "DrawFlowField strokes one short line per reachable cell of f, from the cell's center along its direction, in col and lineWidth world units, under whatever camera transform d already has. Goal cells get a small cross. It is meant for debug overlays and draws the whole field as a single path.\n",
          "file": "pkg/rts/draw.go",
          "line": 10
        },
        {
          "name": "DrawSelectionBox",
          "anchor": "DrawSelectionBox",
          "decl": "func DrawSelectionBox(d *core.Drawing, r math2d.Rect, fill, stroke core.Color, lineWidth float32)",
          "doc": "DrawSelectionBox fills r with fill and outlines it in stroke at lineWidth, under d's current transform; pass the rectangle from BoxSelector.Box while a drag is in progress.\n",
          "file": "pkg/rts/draw.go",
          "line": 43
        },
        {
          "name": "Place",
          "anchor": "Place",
          "decl": "func Place(dst []math2d.Vec2, slots []Slot, center, facing math2d.Vec2) []math2d.Vec2",
          "doc": "Place returns the world positions of slots for a formation centered on center and facing along facing, appending them to dst[:0]. A zero or non-finite facing faces up the screen (negative Y).\n",
          "file": "pkg/rts/formation.go",
          "line": 108
        }
      ],
      "types": [
        {
          "name": "AvoidanceMode",
          "anchor": "AvoidanceMode",
          "decl": "type AvoidanceMode uint8",
          "doc": "AvoidanceMode selects how units in a Crowd avoid colliding with each other.\n",
          "file": "pkg/rts/crowd.go",
          "line": 77,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AvoidancePush",
                  "anchor": "AvoidancePush"
                },
                {
                  "name": "AvoidanceORCA",
                  "anchor": "AvoidanceORCA"
                }
              ],
              "decl": "const (\n\t// AvoidancePush pushes overlapping units apart (the default).\n\tAvoidancePush AvoidanceMode = iota\n\t// AvoidanceORCA computes collision-free velocities ahead of contact using ai.ORCASolver.\n\tAvoidanceORCA\n)",
              "doc": "The avoidance modes.\n",
              "file": "pkg/rts/crowd.go",
              "line": 80
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "AvoidanceMode.String",
              "recv": "AvoidanceMode",
              "decl": "func (m AvoidanceMode) String() string",
              "doc": "String returns the mode's name.\n",
              "file": "pkg/rts/crowd.go",
              "line": 88
            }
          ]
        },
        {
          "name": "BoxSelector",
          "anchor": "BoxSelector",
          "decl": "type BoxSelector struct {\n\t// Picker finds the units; usually the game's Crowd.\n\tPicker Picker\n\t// Selection is the selection the selector changes.\n\tSelection *Selection\n\t// Filter, when set, keeps only the units it reports true for, such as the player's own.\n\tFilter func(UnitID) bool\n\t// DragThreshold is how far in world units the pointer moves before a press becomes a box drag; 0 or less uses 4.\n\tDragThreshold float32\n\t// ClickSlop is how far in world units from a unit's body a click still picks it; negative values count as 0.\n\tClickSlop float32\n\t// View is the world area on screen, where a double click looks for units of the same kind; an empty View looks in the whole world.\n\tView math2d.Rect\n\t// contains filtered or unexported fields\n}",
          "doc": "BoxSelector turns pointer presses, drags and releases in world space into selections: a press and release without moving far picks the unit under the pointer, a drag picks every unit its rectangle touches, and a double click picks every unit in View of the same kind as the one clicked.\n\nConvert pointer positions from view to world coordinates (through the game's camera) before passing them in. A BoxSelector is not safe for concurrent use.\n",
          "file": "pkg/rts/selection.go",
          "line": 164,
          "members": [
            {
              "name": "Picker",
              "anchor": "BoxSelector.Picker",
              "kind": "field",
              "doc": "Picker finds the units; usually the game's Crowd."
            },
            {
              "name": "Selection",
              "anchor": "BoxSelector.Selection",
              "kind": "field",
              "doc": "Selection is the selection the selector changes."
            },
            {
              "name": "Filter",
              "anchor": "BoxSelector.Filter",
              "kind": "field",
              "doc": "Filter, when set, keeps only the units it reports true for, such as the player's own."
            },
            {
              "name": "DragThreshold",
              "anchor": "BoxSelector.DragThreshold",
              "kind": "field",
              "doc": "DragThreshold is how far in world units the pointer moves before a press becomes a box drag; 0 or less uses 4."
            },
            {
              "name": "ClickSlop",
              "anchor": "BoxSelector.ClickSlop",
              "kind": "field",
              "doc": "ClickSlop is how far in world units from a unit's body a click still picks it; negative values count as 0."
            },
            {
              "name": "View",
              "anchor": "BoxSelector.View",
              "kind": "field",
              "doc": "View is the world area on screen, where a double click looks for units of the same kind; an empty View looks in the whole world."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Box",
              "anchor": "BoxSelector.Box",
              "recv": "*BoxSelector",
              "decl": "func (b *BoxSelector) Box() (math2d.Rect, bool)",
              "doc": "Box returns the drag rectangle in world space while a box drag is in progress, for drawing.\n",
              "file": "pkg/rts/selection.go",
              "line": 218
            },
            {
              "name": "Cancel",
              "anchor": "BoxSelector.Cancel",
              "recv": "*BoxSelector",
              "decl": "func (b *BoxSelector) Cancel()",
              "doc": "Cancel abandons a pick in progress without changing the selection, as when the pointer leaves the view or Escape is pressed.\n",
              "file": "pkg/rts/selection.go",
              "line": 212
            },
            {
              "name": "Drag",
              "anchor": "BoxSelector.Drag",
              "recv": "*BoxSelector",
              "decl": "func (b *BoxSelector) Drag(p math2d.Vec2)",
              "doc": "Drag moves the pointer of a pick in progress to world position p.\n",
              "file": "pkg/rts/selection.go",
              "line": 197
            },
            {
              "name": "Dragging",
              "anchor": "BoxSelector.Dragging",
              "recv": "*BoxSelector",
              "decl": "func (b *BoxSelector) Dragging() bool",
              "doc": "Dragging reports whether a box drag is in progress.\n",
              "file": "pkg/rts/selection.go",
              "line": 215
            },
            {
              "name": "Press",
              "anchor": "BoxSelector.Press",
              "recv": "*BoxSelector",
              "decl": "func (b *BoxSelector) Press(p math2d.Vec2, mods core.Modifiers, clicks int)",
              "doc": "Press starts a pick at world position p with the modifier keys held and the platform's click count (2 for a double click), as core.PressEvent reports them.\n",
              "file": "pkg/rts/selection.go",
              "line": 189
            },
            {
              "name": "Release",
              "anchor": "BoxSelector.Release",
              "recv": "*BoxSelector",
              "decl": "func (b *BoxSelector) Release(p math2d.Vec2) []UnitID",
              "doc": "Release ends the pick at world position p, changes the selection, and returns the units picked (after Filter), in the selector's own slice that the next Release reuses. A click on empty ground in Replace mode clears the selection.\n",
              "file": "pkg/rts/selection.go",
              "line": 226
            }
          ]
        },
        {
          "name": "ControlGroups",
          "anchor": "ControlGroups",
          "decl": "type ControlGroups struct {\n\t// DoubleTapSteps is how many steps apart two recalls of the same group count as a double tap; 0 or less uses DefaultDoubleTapSteps.\n\tDoubleTapSteps uint64\n\t// contains filtered or unexported fields\n}",
          "doc": "ControlGroups holds the ten numbered groups a player binds units to and recalls them by.\n\nDouble-tap detection counts game steps rather than wall-clock time, so it replays exactly: pass the same step counter (Crowd.Steps, or the game's own) to every HandleKey or Recall. The zero value holds ten empty groups and uses DefaultDoubleTapSteps. ControlGroups is not safe for concurrent use.\n",
          "file": "pkg/rts/groups.go",
          "line": 56,
          "members": [
            {
              "name": "DoubleTapSteps",
              "anchor": "ControlGroups.DoubleTapSteps",
              "kind": "field",
              "doc": "DoubleTapSteps is how many steps apart two recalls of the same group count as a double tap; 0 or less uses DefaultDoubleTapSteps."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Append",
              "anchor": "ControlGroups.Append",
              "recv": "*ControlGroups",
              "decl": "func (g *ControlGroups) Append(n int, ids []UnitID)",
              "doc": "Append adds the units of ids that group n does not hold yet to its end.\n",
              "file": "pkg/rts/groups.go",
              "line": 89
            },
            {
              "name": "Assign",
              "anchor": "ControlGroups.Assign",
              "recv": "*ControlGroups",
              "decl": "func (g *ControlGroups) Assign(n int, ids []UnitID)",
              "doc": "Assign binds group n to ids, replacing what it held. Repeats are dropped.\n",
              "file": "pkg/rts/groups.go",
              "line": 80
            },
            {
              "name": "Forget",
              "anchor": "ControlGroups.Forget",
              "recv": "*ControlGroups",
              "decl": "func (g *ControlGroups) Forget(id UnitID)",
              "doc": "Forget removes id from every group, as when the unit dies.\n",
              "file": "pkg/rts/groups.go",
              "line": 101
            },
            {
              "name": "Group",
              "anchor": "ControlGroups.Group",
              "recv": "*ControlGroups",
              "decl": "func (g *ControlGroups) Group(n int) []UnitID",
              "doc": "Group returns the units bound to group n in the order they were added, or nil for a group outside 0 to 9. The slice is the groups' own.\n",
              "file": "pkg/rts/groups.go",
              "line": 72
            },
            {
              "name": "HandleKey",
              "anchor": "ControlGroups.HandleKey",
              "recv": "*ControlGroups",
              "decl": "func (g *ControlGroups) HandleKey(ev core.KeyEvent, sel *Selection, step uint64) GroupEvent",
              "doc": "HandleKey applies the usual strategy-game bindings for a digit key at game step step: Control or Command with a digit assigns the selection to that group, Shift with a digit adds the selection to it and selects the whole group, and a digit alone recalls it (twice quickly to focus). Keys other than unmodified or so-modified digits, and auto-repeats, report NoGroupAction and change nothing.\n",
              "file": "pkg/rts/groups.go",
              "line": 135
            },
            {
              "name": "Recall",
              "anchor": "ControlGroups.Recall",
              "recv": "*ControlGroups",
              "decl": "func (g *ControlGroups) Recall(n int, sel *Selection, step uint64) GroupAction",
              "doc": "Recall replaces sel with group n at game step step and reports GroupFocused when the same group was recalled within DoubleTapSteps before, GroupRecalled otherwise. Recalling an empty group leaves sel unchanged and reports NoGroupAction.\n",
              "file": "pkg/rts/groups.go",
              "line": 115
            },
            {
              "name": "Retain",
              "anchor": "ControlGroups.Retain",
              "recv": "*ControlGroups",
              "decl": "func (g *ControlGroups) Retain(keep func(UnitID) bool)",
              "doc": "Retain keeps in every group only the units keep reports true for.\n",
              "file": "pkg/rts/groups.go",
              "line": 108
            }
          ]
        },
        {
          "name": "Crowd",
          "anchor": "Crowd",
          "decl": "type Crowd struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Crowd moves many units over an ai.Grid. Units follow shared flow fields to their targets, keep apart from each other, and slide along blocked cells and the grid's edge.\n\nStep advances every unit by one fixed step in O(n + b) time for n units, where b is the number of neighbor buckets, each as wide as the largest unit's reach or a cell, covering the units' bounding box: neighbors are found through that bucket grid, rebuilt each step without allocating once its buffers have grown, and each unit reads its flow field in constant time. Forces are computed from the positions at the start of the step for every unit before any unit moves, so the result does not depend on the order units move in within a step. It does depend on the order units were added in, which sets their IDs and the order their pushes are summed, so a replay must add the same units in the same order. A Crowd is not safe for concurrent use.\n",
          "file": "pkg/rts/crowd.go",
          "line": 125,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCrowd",
              "anchor": "NewCrowd",
              "decl": "func NewCrowd(grid ai.Grid, opts CrowdOptions) *Crowd",
              "doc": "NewCrowd returns an empty crowd moving units over grid.\n",
              "file": "pkg/rts/crowd.go",
              "line": 144
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Crowd.Add",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Add(spec UnitSpec) UnitID",
              "doc": "Add places a new idle unit and returns its ID.\n",
              "file": "pkg/rts/crowd.go",
              "line": 239
            },
            {
              "name": "Centroid",
              "anchor": "Crowd.Centroid",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Centroid(ids []UnitID) (math2d.Vec2, bool)",
              "doc": "Centroid returns the mean position of the units in ids that exist, and false when none does.\n",
              "file": "pkg/rts/crowd.go",
              "line": 293
            },
            {
              "name": "Fields",
              "anchor": "Crowd.Fields",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Fields() *FieldCache",
              "doc": "Fields returns the crowd's flow field cache. After changing the grid, call the Crowd's Rebuild rather than the cache's, so fields the cache has since dropped but units still follow are rebuilt too.\n",
              "file": "pkg/rts/crowd.go",
              "line": 188
            },
            {
              "name": "Grid",
              "anchor": "Crowd.Grid",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Grid() ai.Grid",
              "doc": "Grid returns the grid the crowd moves over.\n",
              "file": "pkg/rts/crowd.go",
              "line": 185
            },
            {
              "name": "KindOf",
              "anchor": "Crowd.KindOf",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) KindOf(id UnitID) (int, bool)",
              "doc": "KindOf returns the Kind of the unit with id.\n",
              "file": "pkg/rts/crowd.go",
              "line": 339
            },
            {
              "name": "Len",
              "anchor": "Crowd.Len",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Len() int",
              "doc": "Len returns the number of units.\n",
              "file": "pkg/rts/crowd.go",
              "line": 224
            },
            {
              "name": "Move",
              "anchor": "Crowd.Move",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Move(ids []UnitID, o MoveOrder) int",
              "doc": "Move orders the units in ids that exist to take up o's formation around o.Target and returns how many were ordered.\n\nThe slots are placed around the target facing o.Facing, and any slot that falls on a blocked cell, or on a cell the group cannot reach, moves to the nearest free cell that can be reached. Units are matched to slots with Assign, and the whole group shares one flow field whose goals are the slots' cells, built once (or found in the crowd's FieldCache) however many units there are. Each unit follows that field until it can see its own slot within the crowd's DirectRange, then walks straight to it; a unit that reaches the formation's area with a wall between it and its slot follows its own ai.AStar path there for the rest of the order, planning it afresh whenever the crowd pushes it off it.\n\nWhen the units cannot reach o.Target, as when it lies on an island, the formation centers on the nearest cell they can reach instead. When o.Target is outside the grid, or the units stand nowhere they could walk from, Move orders nobody and returns 0.\n",
              "file": "pkg/rts/order.go",
              "line": 27
            },
            {
              "name": "Options",
              "anchor": "Crowd.Options",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Options() CrowdOptions",
              "doc": "Options returns the crowd's options with defaults filled in.\n",
              "file": "pkg/rts/crowd.go",
              "line": 218
            },
            {
              "name": "Rebuild",
              "anchor": "Crowd.Rebuild",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Rebuild()",
              "doc": "Rebuild integrates every flow field the crowd's units follow, and every field in its cache, again over the grid, in place, so the units see a change to the grid (a wall built, a bridge destroyed) on their next step. Call it after changing the grid's walkable cells or costs.\n\nUnits whose own paths around walls were planned on the old grid plan them again. Units whose field no longer has a walkable goal, because every cell their order sent them to is now blocked, stop where they stand, as after Stop.\n",
              "file": "pkg/rts/crowd.go",
              "line": 193
            },
            {
              "name": "Remove",
              "anchor": "Crowd.Remove",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Remove(id UnitID) bool",
              "doc": "Remove deletes the unit with id and reports whether it existed. The last unit takes the removed one's place in Units.\n",
              "file": "pkg/rts/crowd.go",
              "line": 264
            },
            {
              "name": "Step",
              "anchor": "Crowd.Step",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Step(dt time.Duration)",
              "doc": "Step advances every unit by dt.\n",
              "file": "pkg/rts/crowd.go",
              "line": 348
            },
            {
              "name": "Steps",
              "anchor": "Crowd.Steps",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Steps() uint64",
              "doc": "Steps returns how many times Step has advanced the crowd.\n",
              "file": "pkg/rts/crowd.go",
              "line": 221
            },
            {
              "name": "Stop",
              "anchor": "Crowd.Stop",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Stop(ids ...UnitID)",
              "doc": "Stop drops the orders of the units in ids, leaving them idle where they stand.\n",
              "file": "pkg/rts/crowd.go",
              "line": 281
            },
            {
              "name": "Unit",
              "anchor": "Crowd.Unit",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Unit(id UnitID) (Unit, bool)",
              "doc": "Unit returns the unit with id.\n",
              "file": "pkg/rts/crowd.go",
              "line": 230
            },
            {
              "name": "UnitAt",
              "anchor": "Crowd.UnitAt",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) UnitAt(p math2d.Vec2, slop float32) (UnitID, bool)",
              "doc": "UnitAt returns the unit whose body is nearest to p among those within slop world units of it, and false when there is none. Equal distances go to the unit earlier in Units.\n",
              "file": "pkg/rts/crowd.go",
              "line": 322
            },
            {
              "name": "Units",
              "anchor": "Crowd.Units",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) Units() []Unit",
              "doc": "Units returns every unit, in a stable order that changes only when units are added or removed. The slice is the crowd's own: read it, do not change it, and do not keep it across Add or Remove.\n",
              "file": "pkg/rts/crowd.go",
              "line": 227
            },
            {
              "name": "UnitsIn",
              "anchor": "Crowd.UnitsIn",
              "recv": "*Crowd",
              "decl": "func (c *Crowd) UnitsIn(r math2d.Rect, out []UnitID) []UnitID",
              "doc": "UnitsIn appends to out[:0] the IDs of the units whose bodies overlap r, in Units order.\n",
              "file": "pkg/rts/crowd.go",
              "line": 309
            }
          ]
        },
        {
          "name": "CrowdOptions",
          "anchor": "CrowdOptions",
          "decl": "type CrowdOptions struct {\n\t// Origin is the world position of the top-left corner of grid cell (0, 0); a non-finite coordinate counts as 0.\n\tOrigin math2d.Vec2\n\t// CellSize is the width and height of a grid cell in world units; 0 or less, or a non-finite value, uses 1.\n\tCellSize float32\n\t// FieldCacheSize is the number of flow fields kept for reuse; 0 or less uses DefaultFieldCacheSize.\n\tFieldCacheSize int\n\t// Separation scales the push between overlapping units under AvoidancePush; 0 or less, or a non-finite value, uses 1.\n\tSeparation float32\n\t// Gap is extra room units keep between their bodies, in world units; negative and non-finite values count as 0.\n\tGap float32\n\t// ArriveRadius is how close a unit gets to its target to count as arrived; 0 or less, or a non-finite value, uses the unit's radius.\n\tArriveRadius float32\n\t// DirectRange is the distance within which a unit that can see its target walks straight to it instead of following its flow field; 0 or less, or a non-finite value, uses 6 cells.\n\tDirectRange float32\n\t// Responsiveness is how quickly a unit's velocity turns to its desired velocity, per second; 0 or less, or a non-finite value, uses 8.\n\tResponsiveness float32\n\t// Avoidance selects how units keep clear of each other: AvoidancePush (default) pushes overlapping units apart, while AvoidanceORCA uses ai.ORCASolver to steer around neighbors before contact.\n\tAvoidance AvoidanceMode\n\t// ORCA tunes the ai.ORCASolver used when Avoidance is AvoidanceORCA. Zero or non-finite fields use ai.ORCASolver defaults.\n\tORCA ai.ORCAConfig\n}",
          "doc": "CrowdOptions tunes a Crowd. The zero value works for units about half a cell wide.\n",
          "file": "pkg/rts/crowd.go",
          "line": 99,
          "members": [
            {
              "name": "Origin",
              "anchor": "CrowdOptions.Origin",
              "kind": "field",
              "doc": "Origin is the world position of the top-left corner of grid cell (0, 0); a non-finite coordinate counts as 0."
            },
            {
              "name": "CellSize",
              "anchor": "CrowdOptions.CellSize",
              "kind": "field",
              "doc": "CellSize is the width and height of a grid cell in world units; 0 or less, or a non-finite value, uses 1."
            },
            {
              "name": "FieldCacheSize",
              "anchor": "CrowdOptions.FieldCacheSize",
              "kind": "field",
              "doc": "FieldCacheSize is the number of flow fields kept for reuse; 0 or less uses DefaultFieldCacheSize."
            },
            {
              "name": "Separation",
              "anchor": "CrowdOptions.Separation",
              "kind": "field",
              "doc": "Separation scales the push between overlapping units under AvoidancePush; 0 or less, or a non-finite value, uses 1."
            },
            {
              "name": "Gap",
              "anchor": "CrowdOptions.Gap",
              "kind": "field",
              "doc": "Gap is extra room units keep between their bodies, in world units; negative and non-finite values count as 0."
            },
            {
              "name": "ArriveRadius",
              "anchor": "CrowdOptions.ArriveRadius",
              "kind": "field",
              "doc": "ArriveRadius is how close a unit gets to its target to count as arrived; 0 or less, or a non-finite value, uses the unit's radius."
            },
            {
              "name": "DirectRange",
              "anchor": "CrowdOptions.DirectRange",
              "kind": "field",
              "doc": "DirectRange is the distance within which a unit that can see its target walks straight to it instead of following its flow field; 0 or less, or a non-finite value, uses 6 cells."
            },
            {
              "name": "Responsiveness",
              "anchor": "CrowdOptions.Responsiveness",
              "kind": "field",
              "doc": "Responsiveness is how quickly a unit's velocity turns to its desired velocity, per second; 0 or less, or a non-finite value, uses 8."
            },
            {
              "name": "Avoidance",
              "anchor": "CrowdOptions.Avoidance",
              "kind": "field",
              "doc": "Avoidance selects how units keep clear of each other: AvoidancePush (default) pushes overlapping units apart, while AvoidanceORCA uses ai.ORCASolver to steer around neighbors before contact."
            },
            {
              "name": "ORCA",
              "anchor": "CrowdOptions.ORCA",
              "kind": "field",
              "doc": "ORCA tunes the ai.ORCASolver used when Avoidance is AvoidanceORCA. Zero or non-finite fields use ai.ORCASolver defaults."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FieldCache",
          "anchor": "FieldCache",
          "decl": "type FieldCache struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "FieldCache builds flow fields over one grid and keeps the most recently used ones, so units ordered to the same goals share a single field instead of each building their own.\n\nFields are keyed by their goal set, compared as a sorted set of distinct cells, so the same goals given in another order or with repeats find the same field. When the cache is full the least recently used field is dropped; a unit still holding it keeps following it, Crowd.Rebuild still rebuilds it after a grid change, and the cache builds a fresh one the next time those goals are asked for. A FieldCache is not safe for concurrent use.\n",
          "file": "pkg/rts/fieldcache.go",
          "line": 16,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFieldCache",
              "anchor": "NewFieldCache",
              "decl": "func NewFieldCache(grid ai.Grid, origin math2d.Vec2, cellSize float32, capacity int) *FieldCache",
              "doc": "NewFieldCache returns a cache of up to capacity 8-way flow fields over grid, whose cells are cellSize world units wide starting at origin.\n",
              "file": "pkg/rts/fieldcache.go",
              "line": 36
            }
          ],
          "methods": [
            {
              "name": "Builds",
              "anchor": "FieldCache.Builds",
              "recv": "*FieldCache",
              "decl": "func (fc *FieldCache) Builds() uint64",
              "doc": "Builds returns how many fields the cache has built or rebuilt since it was made, which tells a test or a profiler whether units are sharing fields.\n",
              "file": "pkg/rts/fieldcache.go",
              "line": 56
            },
            {
              "name": "CellSize",
              "anchor": "FieldCache.CellSize",
              "recv": "*FieldCache",
              "decl": "func (fc *FieldCache) CellSize() float32",
              "doc": "CellSize returns the width and height of a cell in world units.\n",
              "file": "pkg/rts/fieldcache.go",
              "line": 50
            },
            {
              "name": "Clear",
              "anchor": "FieldCache.Clear",
              "recv": "*FieldCache",
              "decl": "func (fc *FieldCache) Clear()",
              "doc": "Clear drops every cached field.\n",
              "file": "pkg/rts/fieldcache.go",
              "line": 104
            },
            {
              "name": "Field",
              "anchor": "FieldCache.Field",
              "recv": "*FieldCache",
              "decl": "func (fc *FieldCache) Field(goals ...ai.Cell) (*FlowField, bool)",
              "doc": "Field returns the flow field toward goals, building it on first use, or nil and false when no goal is an in-bounds walkable cell.\n",
              "file": "pkg/rts/fieldcache.go",
              "line": 59
            },
            {
              "name": "Grid",
              "anchor": "FieldCache.Grid",
              "recv": "*FieldCache",
              "decl": "func (fc *FieldCache) Grid() ai.Grid",
              "doc": "Grid returns the grid the cache builds fields over.\n",
              "file": "pkg/rts/fieldcache.go",
              "line": 44
            },
            {
              "name": "Len",
              "anchor": "FieldCache.Len",
              "recv": "*FieldCache",
              "decl": "func (fc *FieldCache) Len() int",
              "doc": "Len returns the number of fields the cache holds.\n",
              "file": "pkg/rts/fieldcache.go",
              "line": 53
            },
            {
              "name": "Origin",
              "anchor": "FieldCache.Origin",
              "recv": "*FieldCache",
              "decl": "func (fc *FieldCache) Origin() math2d.Vec2",
              "doc": "Origin returns the world position of the top-left corner of cell (0, 0).\n",
              "file": "pkg/rts/fieldcache.go",
              "line": 47
            },
            {
              "name": "Rebuild",
              "anchor": "FieldCache.Rebuild",
              "recv": "*FieldCache",
              "decl": "func (fc *FieldCache) Rebuild()",
              "doc": "Rebuild integrates every cached field again over the grid, in place, so units following them see a change to the grid (a wall built, a bridge destroyed) on their next step. A field none of whose goals is walkable any more is dropped from the cache, so the next Field call for those goals reports false. Call it after changing the grid's walkable cells or costs; a Crowd's own Rebuild calls it and also rebuilds the fields its units still follow after the cache dropped them.\n",
              "file": "pkg/rts/fieldcache.go",
              "line": 91
            }
          ]
        },
        {
          "name": "FlowField",
          "anchor": "FlowField",
          "decl": "type FlowField struct {\n\t// Origin is the world position of the top-left corner of cell (0, 0).\n\tOrigin math2d.Vec2\n\t// CellSize is the width and height of a cell in world units; 0 or less, or a non-finite value, is treated as 1.\n\tCellSize float32\n\t// Diagonal allows 8-way movement, with diagonal steps costing sqrt(2) and never cutting the corner of a blocked cell; false restricts movement to the 4 cardinal directions. NewFlowField enables it.\n\tDiagonal bool\n\t// contains filtered or unexported fields\n}",
          "doc": "FlowField holds, for every cell of an ai.Grid, the cost of the cheapest path to the nearest of its goal cells (the integration field) and the direction a unit standing in that cell moves to follow that path (the direction field).\n\nOne field serves every unit heading for the same goals: building it costs one Dijkstra search over the grid, and each unit then reads its direction in constant time with Sample. Cells map to world space through Origin and CellSize: cell (col, row) covers [Origin.X+col*CellSize, Origin.X+(col+1)*CellSize) horizontally and the same along Y.\n\nA FlowField is not safe for concurrent use while it is being built.\n",
          "file": "pkg/rts/flowfield.go",
          "line": 15,
          "members": [
            {
              "name": "Origin",
              "anchor": "FlowField.Origin",
              "kind": "field",
              "doc": "Origin is the world position of the top-left corner of cell (0, 0)."
            },
            {
              "name": "CellSize",
              "anchor": "FlowField.CellSize",
              "kind": "field",
              "doc": "CellSize is the width and height of a cell in world units; 0 or less, or a non-finite value, is treated as 1."
            },
            {
              "name": "Diagonal",
              "anchor": "FlowField.Diagonal",
              "kind": "field",
              "doc": "Diagonal allows 8-way movement, with diagonal steps costing sqrt(2) and never cutting the corner of a blocked cell; false restricts movement to the 4 cardinal directions. NewFlowField enables it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFlowField",
              "anchor": "NewFlowField",
              "decl": "func NewFlowField(origin math2d.Vec2, cellSize float32) *FlowField",
              "doc": "NewFlowField returns an empty field with 8-way movement whose cells are cellSize world units wide, the top-left one starting at origin.\n",
              "file": "pkg/rts/flowfield.go",
              "line": 41
            }
          ],
          "methods": [
            {
              "name": "Build",
              "anchor": "FlowField.Build",
              "recv": "*FlowField",
              "decl": "func (f *FlowField) Build(g ai.Grid, goals ...ai.Cell) bool",
              "doc": "Build integrates g toward goals, replacing whatever the field held, and reports whether at least one goal is an in-bounds walkable cell. Goals that are out of bounds or blocked are ignored.\n\nStepping into a cell costs the step's length (1, or sqrt(2) diagonally) times the cell's cost, which comes from g's MoveCost when g is an ai.CostGrid (values of 0 or less, and non-finite ones, count as 1, as ai.AStar treats them) and is 1 otherwise, so a cell's integration cost equals the cost ai.AStar finds from it to the nearest goal. Build reuses the field's buffers, so rebuilding a field of the same size allocates nothing.\n",
              "file": "pkg/rts/flowfield.go",
              "line": 48
            },
            {
              "name": "CellAt",
              "anchor": "FlowField.CellAt",
              "recv": "*FlowField",
              "decl": "func (f *FlowField) CellAt(p math2d.Vec2) (ai.Cell, bool)",
              "doc": "CellAt returns the cell holding world position p and whether it is inside the grid.\n",
              "file": "pkg/rts/flowfield.go",
              "line": 245
            },
            {
              "name": "CellCenter",
              "anchor": "FlowField.CellCenter",
              "recv": "*FlowField",
              "decl": "func (f *FlowField) CellCenter(c ai.Cell) math2d.Vec2",
              "doc": "CellCenter returns the world position of the center of cell c.\n",
              "file": "pkg/rts/flowfield.go",
              "line": 250
            },
            {
              "name": "Cost",
              "anchor": "FlowField.Cost",
              "recv": "*FlowField",
              "decl": "func (f *FlowField) Cost(col, row int) float32",
              "doc": "Cost returns the integration cost from (col, row) to the nearest goal, 0 on a goal and Unreachable for a cell outside the grid or with no path.\n",
              "file": "pkg/rts/flowfield.go",
              "line": 215
            },
            {
              "name": "Direction",
              "anchor": "FlowField.Direction",
              "recv": "*FlowField",
              "decl": "func (f *FlowField) Direction(col, row int) math2d.Vec2",
              "doc": "Direction returns the unit vector a unit in (col, row) moves along, or the zero vector on a goal, on an unreachable cell and outside the grid.\n",
              "file": "pkg/rts/flowfield.go",
              "line": 226
            },
            {
              "name": "Goals",
              "anchor": "FlowField.Goals",
              "recv": "*FlowField",
              "decl": "func (f *FlowField) Goals() []ai.Cell",
              "doc": "Goals returns the in-bounds walkable goal cells of the last Build, in the order given, without duplicates. The slice is the field's own and changes on the next Build.\n",
              "file": "pkg/rts/flowfield.go",
              "line": 212
            },
            {
              "name": "Reachable",
              "anchor": "FlowField.Reachable",
              "recv": "*FlowField",
              "decl": "func (f *FlowField) Reachable(col, row int) bool",
              "doc": "Reachable reports whether a goal can be reached from (col, row).\n",
              "file": "pkg/rts/flowfield.go",
              "line": 223
            },
            {
              "name": "Sample",
              "anchor": "FlowField.Sample",
              "recv": "*FlowField",
              "decl": "func (f *FlowField) Sample(p math2d.Vec2) (dir math2d.Vec2, ok bool)",
              "doc": "Sample returns the direction a unit at world position p moves along, blended bilinearly from the four cells around p so that units turn smoothly instead of in 45-degree steps. Only reachable cells take part in the blend, so a unit beside a wall is not pulled into it. ok is false when p is outside the grid or no reachable cell is near it; on a goal cell the direction is the zero vector and ok is true.\n",
              "file": "pkg/rts/flowfield.go",
              "line": 272
            },
            {
              "name": "Size",
              "anchor": "FlowField.Size",
              "recv": "*FlowField",
              "decl": "func (f *FlowField) Size() (cols, rows int)",
              "doc": "Size returns the field's width in columns and height in rows, those of the grid it was last built on.\n",
              "file": "pkg/rts/flowfield.go",
              "line": 209
            }
          ]
        },
        {
          "name": "Formation",
          "anchor": "Formation",
          "decl": "type Formation struct {\n\t// Name identifies the formation in its set.\n\tName string `yaml:\"name\"`\n\t// Shape is the layout of the slots.\n\tShape Shape `yaml:\"shape\"`\n\t// Spacing is the distance between neighboring slot centers in world units; it should be at least twice the largest unit radius so units in their slots do not push each other.\n\tSpacing float32 `yaml:\"spacing\"`\n\t// Width is the number of slots per row for the line, column and box shapes; 0 picks the shape's default. The wedge ignores it.\n\tWidth int `yaml:\"width,omitempty\"`\n}",
          "doc": "Formation is a named layout that units ordered together take up around their target.\n",
          "file": "pkg/rts/formation.go",
          "line": 26,
          "members": [
            {
              "name": "Name",
              "anchor": "Formation.Name",
              "kind": "field",
              "doc": "Name identifies the formation in its set."
            },
            {
              "name": "Shape",
              "anchor": "Formation.Shape",
              "kind": "field",
              "doc": "Shape is the layout of the slots."
            },
            {
              "name": "Spacing",
              "anchor": "Formation.Spacing",
              "kind": "field",
              "doc": "Spacing is the distance between neighboring slot centers in world units; it should be at least twice the largest unit radius so units in their slots do not push each other."
            },
            {
              "name": "Width",
              "anchor": "Formation.Width",
              "kind": "field",
              "doc": "Width is the number of slots per row for the line, column and box shapes; 0 picks the shape's default. The wedge ignores it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Layout",
              "anchor": "Formation.Layout",
              "recv": "Formation",
              "decl": "func (f Formation) Layout(dst []Slot, n int) []Slot",
              "doc": "Layout returns the n slots of f around the formation's center, appending them to dst[:0]. Rows are filled front to back and centered across, so the slots' bounding box is centered on the origin. A formation with a non-positive or non-finite Spacing, or an unknown Shape, lays out a box with spacing 1.\n",
              "file": "pkg/rts/formation.go",
              "line": 46
            },
            {
              "name": "Validate",
              "anchor": "Formation.Validate",
              "recv": "Formation",
              "decl": "func (f Formation) Validate() error",
              "doc": "Validate reports whether f has a known shape, a positive finite spacing and a non-negative width.\n",
              "file": "pkg/rts/format.go",
              "line": 114
            }
          ]
        },
        {
          "name": "Formations",
          "anchor": "Formations",
          "decl": "type Formations struct {\n\t// Version is the schema version; it must be FormationsVersion.\n\tVersion int `yaml:\"version\"`\n\t// Formations are the formations in the order the game lists them; names are unique.\n\tFormations []Formation `yaml:\"formations\"`\n}",
          "doc": "Formations is a formation file: the named formations a game offers its players, kept in YAML so a designer can edit them and review the diff.\n\n\tversion: 1\n\tformations:\n\t  - name: line\n\t    shape: line\n\t    spacing: 1.5\n\t  - name: block\n\t    shape: box\n\t    spacing: 1.2\n\t    width: 8\n",
          "file": "pkg/rts/format.go",
          "line": 27,
          "members": [
            {
              "name": "Version",
              "anchor": "Formations.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be FormationsVersion."
            },
            {
              "name": "Formations",
              "anchor": "Formations.Formations",
              "kind": "field",
              "doc": "Formations are the formations in the order the game lists them; names are unique."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseFormations",
              "anchor": "ParseFormations",
              "decl": "func ParseFormations(data []byte) (*Formations, error)",
              "doc": "ParseFormations decodes and validates a formation file. Unknown fields, a second YAML document and any value Validate refuses are errors.\n",
              "file": "pkg/rts/format.go",
              "line": 48
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "Formations.Encode",
              "recv": "*Formations",
              "decl": "func (fs *Formations) Encode() ([]byte, error)",
              "doc": "Encode validates fs and writes it as YAML with two-space indentation and fields in a fixed order, so encoding a parsed file gives back the same bytes for files written in that form.\n",
              "file": "pkg/rts/format.go",
              "line": 72
            },
            {
              "name": "Get",
              "anchor": "Formations.Get",
              "recv": "*Formations",
              "decl": "func (fs *Formations) Get(name string) (Formation, bool)",
              "doc": "Get returns the formation named name.\n",
              "file": "pkg/rts/format.go",
              "line": 35
            },
            {
              "name": "Validate",
              "anchor": "Formations.Validate",
              "recv": "*Formations",
              "decl": "func (fs *Formations) Validate() error",
              "doc": "Validate reports the first problem with fs: a version other than FormationsVersion, a formation with an empty or repeated name, an unknown shape, a spacing that is not a positive finite number, or a negative width.\n",
              "file": "pkg/rts/format.go",
              "line": 90
            }
          ]
        },
        {
          "name": "GroupAction",
          "anchor": "GroupAction",
          "decl": "type GroupAction uint8",
          "doc": "GroupAction is what a digit key did to the control groups.\n",
          "file": "pkg/rts/groups.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NoGroupAction",
                  "anchor": "NoGroupAction"
                },
                {
                  "name": "GroupAssigned",
                  "anchor": "GroupAssigned"
                },
                {
                  "name": "GroupAdded",
                  "anchor": "GroupAdded"
                },
                {
                  "name": "GroupRecalled",
                  "anchor": "GroupRecalled"
                },
                {
                  "name": "GroupFocused",
                  "anchor": "GroupFocused"
                }
              ],
              "decl": "const (\n\t// NoGroupAction means the key was not a control group key.\n\tNoGroupAction GroupAction = iota\n\t// GroupAssigned means the group was set to the selection (Control or Command with a digit).\n\tGroupAssigned\n\t// GroupAdded means the selection was added to the group and the whole group selected (Shift with a digit).\n\tGroupAdded\n\t// GroupRecalled means the selection was replaced by the group (a digit alone).\n\tGroupRecalled\n\t// GroupFocused means the group was recalled twice in quick succession; the game should center its camera on the group.\n\tGroupFocused\n)",
              "doc": "The control group actions.\n",
              "file": "pkg/rts/groups.go",
              "line": 16
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "GroupAction.String",
              "recv": "GroupAction",
              "decl": "func (a GroupAction) String() string",
              "doc": "String returns the action's name.\n",
              "file": "pkg/rts/groups.go",
              "line": 30
            }
          ]
        },
        {
          "name": "GroupEvent",
          "anchor": "GroupEvent",
          "decl": "type GroupEvent struct {\n\tAction GroupAction\n\t// Group is the digit of the group acted on.\n\tGroup int\n}",
          "doc": "GroupEvent reports what HandleKey did.\n",
          "file": "pkg/rts/groups.go",
          "line": 47,
          "members": [
            {
              "name": "Action",
              "anchor": "GroupEvent.Action",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Group",
              "anchor": "GroupEvent.Group",
              "kind": "field",
              "doc": "Group is the digit of the group acted on."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MoveOrder",
          "anchor": "MoveOrder",
          "decl": "type MoveOrder struct {\n\t// Target is the world position the formation is centered on.\n\tTarget math2d.Vec2\n\t// Formation lays out the units around Target. A zero Formation packs them into a box whose spacing fits the largest unit with the crowd's Gap.\n\tFormation Formation\n\t// Facing is the direction the formation faces; the zero vector faces from the group's centroid toward Target.\n\tFacing math2d.Vec2\n\t// KeepPace caps every unit at the slowest unit's speed, so the group moves and arrives together.\n\tKeepPace bool\n}",
          "doc": "MoveOrder sends a group of units to a target in formation.\n",
          "file": "pkg/rts/order.go",
          "line": 11,
          "members": [
            {
              "name": "Target",
              "anchor": "MoveOrder.Target",
              "kind": "field",
              "doc": "Target is the world position the formation is centered on."
            },
            {
              "name": "Formation",
              "anchor": "MoveOrder.Formation",
              "kind": "field",
              "doc": "Formation lays out the units around Target. A zero Formation packs them into a box whose spacing fits the largest unit with the crowd's Gap."
            },
            {
              "name": "Facing",
              "anchor": "MoveOrder.Facing",
              "kind": "field",
              "doc": "Facing is the direction the formation faces; the zero vector faces from the group's centroid toward Target."
            },
            {
              "name": "KeepPace",
              "anchor": "MoveOrder.KeepPace",
              "kind": "field",
              "doc": "KeepPace caps every unit at the slowest unit's speed, so the group moves and arrives together."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MoveState",
          "anchor": "MoveState",
          "decl": "type MoveState uint8",
          "doc": "MoveState is where a unit is in carrying out its move order.\n",
          "file": "pkg/rts/crowd.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Idle",
                  "anchor": "Idle"
                },
                {
                  "name": "Moving",
                  "anchor": "Moving"
                },
                {
                  "name": "Arrived",
                  "anchor": "Arrived"
                }
              ],
              "decl": "const (\n\t// Idle units have no order and only keep clear of their neighbors.\n\tIdle MoveState = iota\n\t// Moving units are on their way to their target.\n\tMoving\n\t// Arrived units reached their target and hold it.\n\tArrived\n)",
              "doc": "The move states.\n",
              "file": "pkg/rts/crowd.go",
              "line": 18
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "MoveState.String",
              "recv": "MoveState",
              "decl": "func (s MoveState) String() string",
              "doc": "String returns the state's name.\n",
              "file": "pkg/rts/crowd.go",
              "line": 28
            }
          ]
        },
        {
          "name": "Picker",
          "anchor": "Picker",
          "decl": "type Picker interface {\n\t// UnitsIn appends to out[:0] the units whose bodies overlap r, in a stable order.\n\tUnitsIn(r math2d.Rect, out []UnitID) []UnitID\n\t// UnitAt returns the unit nearest p within slop world units.\n\tUnitAt(p math2d.Vec2, slop float32) (UnitID, bool)\n\t// KindOf returns the unit's game-defined kind.\n\tKindOf(id UnitID) (int, bool)\n}",
          "doc": "Picker finds units in world space; Crowd implements it.\n",
          "file": "pkg/rts/selection.go",
          "line": 152,
          "members": [
            {
              "name": "UnitsIn",
              "anchor": "Picker.UnitsIn",
              "kind": "method",
              "doc": "UnitsIn appends to out[:0] the units whose bodies overlap r, in a stable order."
            },
            {
              "name": "UnitAt",
              "anchor": "Picker.UnitAt",
              "kind": "method",
              "doc": "UnitAt returns the unit nearest p within slop world units."
            },
            {
              "name": "KindOf",
              "anchor": "Picker.KindOf",
              "kind": "method",
              "doc": "KindOf returns the unit's game-defined kind."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SectorFlowField",
          "anchor": "SectorFlowField",
          "decl": "type SectorFlowField struct {\n\t// Origin is the world position of the top-left corner of cell (0, 0).\n\tOrigin math2d.Vec2\n\t// CellSize is the width and height of a cell in world units; 0 or less, or a non-finite value, is treated as 1.\n\tCellSize float32\n\t// Diagonal allows 8-way movement, with diagonal steps costing sqrt(2) and never cutting the corner of a blocked cell;\n\t// false restricts movement to the 4 cardinal directions. NewSectorFlowField enables it.\n\tDiagonal bool\n\t// contains filtered or unexported fields\n}",
          "doc": "SectorFlowField is a flow field integrated only across an active subset of square sectors (clusters),\nsuch as the cluster corridor produced by ai.HPA.FindClusters.\n\nOn large maps, integrating only the corridor of traversed clusters avoids scanning the entire grid\nwhile providing the same constant-time Cost, Reachable, Direction, and smooth bilinear Sample queries\nas FlowField. Cells outside active sectors report Unreachable.\n\nA SectorFlowField reuses its internal buffers across Build calls and is not safe for concurrent use while building.\n",
          "file": "pkg/rts/sector_flowfield.go",
          "line": 19,
          "members": [
            {
              "name": "Origin",
              "anchor": "SectorFlowField.Origin",
              "kind": "field",
              "doc": "Origin is the world position of the top-left corner of cell (0, 0)."
            },
            {
              "name": "CellSize",
              "anchor": "SectorFlowField.CellSize",
              "kind": "field",
              "doc": "CellSize is the width and height of a cell in world units; 0 or less, or a non-finite value, is treated as 1."
            },
            {
              "name": "Diagonal",
              "anchor": "SectorFlowField.Diagonal",
              "kind": "field",
              "doc": "Diagonal allows 8-way movement, with diagonal steps costing sqrt(2) and never cutting the corner of a blocked cell;\nfalse restricts movement to the 4 cardinal directions. NewSectorFlowField enables it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSectorFlowField",
              "anchor": "NewSectorFlowField",
              "decl": "func NewSectorFlowField(origin math2d.Vec2, cellSize float32) *SectorFlowField",
              "doc": "NewSectorFlowField returns an empty 8-way sector-limited flow field whose cells are cellSize world units wide, starting at origin.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 44
            }
          ],
          "methods": [
            {
              "name": "ActiveSectors",
              "anchor": "SectorFlowField.ActiveSectors",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) ActiveSectors() int",
              "doc": "ActiveSectors returns the number of sectors currently integrated in the field.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 318
            },
            {
              "name": "BuildAlongHPA",
              "anchor": "SectorFlowField.BuildAlongHPA",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) BuildAlongHPA(hpa *ai.HPA, start, goal ai.Cell, padding int) bool",
              "doc": "BuildAlongHPA queries hpa for the cluster corridor from start to goal, optionally expands it by padding rings of neighboring clusters\n(0 keeps the exact HPA* corridor), and integrates the flow field toward goal over those active sectors only.\n\nBecause every step along the HPA* path stays inside the returned cluster corridor, start is guaranteed to be reachable from goal\nwhenever hpa finds a path (provided f.Diagonal is compatible with hpa's movement rules).\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 53
            },
            {
              "name": "BuildSectors",
              "anchor": "SectorFlowField.BuildSectors",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) BuildSectors(g ai.Grid, sectorSize int, sectors []ai.ClusterID, goals ...ai.Cell) bool",
              "doc": "BuildSectors integrates g toward goals restricting the search to cells inside the given sectorSize-by-sectorSize sectors.\n\nDuplicate and out-of-bounds sectors are ignored. Goals that are out of bounds, blocked, or outside active sectors are ignored.\nIt reports whether at least one valid goal was seeded inside an active sector.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 88
            },
            {
              "name": "CellAt",
              "anchor": "SectorFlowField.CellAt",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) CellAt(p math2d.Vec2) (ai.Cell, bool)",
              "doc": "CellAt returns the cell holding world position p and whether it is inside the grid.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 352
            },
            {
              "name": "CellCenter",
              "anchor": "SectorFlowField.CellCenter",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) CellCenter(c ai.Cell) math2d.Vec2",
              "doc": "CellCenter returns the world position of the center of cell c.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 357
            },
            {
              "name": "Cost",
              "anchor": "SectorFlowField.Cost",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) Cost(col, row int) float32",
              "doc": "Cost returns the integration cost from (col, row) to the nearest goal, 0 on a goal,\nand Unreachable for blocked cells, cells outside active sectors, or cells outside the grid.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 331
            },
            {
              "name": "Direction",
              "anchor": "SectorFlowField.Direction",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) Direction(col, row int) math2d.Vec2",
              "doc": "Direction returns the unit vector a unit in (col, row) moves along, or the zero vector on a goal, unreachable cell, inactive sector, or outside the grid.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 343
            },
            {
              "name": "Goals",
              "anchor": "SectorFlowField.Goals",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) Goals() []ai.Cell",
              "doc": "Goals returns the in-bounds walkable goal cells inside active sectors from the last build.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 327
            },
            {
              "name": "Reachable",
              "anchor": "SectorFlowField.Reachable",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) Reachable(col, row int) bool",
              "doc": "Reachable reports whether a goal can be reached from (col, row) within the active sectors.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 340
            },
            {
              "name": "Sample",
              "anchor": "SectorFlowField.Sample",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) Sample(p math2d.Vec2) (dir math2d.Vec2, ok bool)",
              "doc": "Sample returns the bilinearly blended movement direction at world position p,\nignoring walls and inactive sectors just like FlowField.Sample.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 363
            },
            {
              "name": "SectorActive",
              "anchor": "SectorFlowField.SectorActive",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) SectorActive(col, row int) bool",
              "doc": "SectorActive reports whether cell (col, row) belongs to an active sector.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 321
            },
            {
              "name": "Size",
              "anchor": "SectorFlowField.Size",
              "recv": "*SectorFlowField",
              "decl": "func (f *SectorFlowField) Size() (cols, rows int)",
              "doc": "Size returns the full grid width and height in cells that the field was built over.\n",
              "file": "pkg/rts/sector_flowfield.go",
              "line": 315
            }
          ]
        },
        {
          "name": "SelectMode",
          "anchor": "SelectMode",
          "decl": "type SelectMode uint8",
          "doc": "SelectMode is how a pick changes the selection.\n",
          "file": "pkg/rts/selection.go",
          "line": 116,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Replace",
                  "anchor": "Replace"
                },
                {
                  "name": "Extend",
                  "anchor": "Extend"
                },
                {
                  "name": "Invert",
                  "anchor": "Invert"
                }
              ],
              "decl": "const (\n\t// Replace selects only the picked units.\n\tReplace SelectMode = iota\n\t// Extend adds the picked units to the selection.\n\tExtend\n\t// Invert toggles the picked units, as Selection.Toggle does.\n\tInvert\n)",
              "doc": "The select modes.\n",
              "file": "pkg/rts/selection.go",
              "line": 119
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ModeFor",
              "anchor": "ModeFor",
              "decl": "func ModeFor(m core.Modifiers) SelectMode",
              "doc": "ModeFor returns the mode the held modifier keys ask for: Shift extends the selection, Control (or Command on macOS) toggles units in and out, and no modifier replaces it.\n",
              "file": "pkg/rts/selection.go",
              "line": 129
            }
          ],
          "methods": []
        },
        {
          "name": "Selection",
          "anchor": "Selection",
          "decl": "type Selection struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Selection is the set of units a player has selected, in the order they were selected.\n\nThe zero value is an empty selection ready to use. A Selection is not safe for concurrent use.\n",
          "file": "pkg/rts/selection.go",
          "line": 13,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "Selection.Add",
              "recv": "*Selection",
              "decl": "func (s *Selection) Add(ids ...UnitID)",
              "doc": "Add selects each of ids that is not selected yet, after the units already selected.\n",
              "file": "pkg/rts/selection.go",
              "line": 47
            },
            {
              "name": "Apply",
              "anchor": "Selection.Apply",
              "recv": "*Selection",
              "decl": "func (s *Selection) Apply(mode SelectMode, picked []UnitID)",
              "doc": "Apply changes s by picked according to mode.\n",
              "file": "pkg/rts/selection.go",
              "line": 140
            },
            {
              "name": "Clear",
              "anchor": "Selection.Clear",
              "recv": "*Selection",
              "decl": "func (s *Selection) Clear()",
              "doc": "Clear deselects every unit.\n",
              "file": "pkg/rts/selection.go",
              "line": 31
            },
            {
              "name": "Contains",
              "anchor": "Selection.Contains",
              "recv": "*Selection",
              "decl": "func (s *Selection) Contains(id UnitID) bool",
              "doc": "Contains reports whether id is selected.\n",
              "file": "pkg/rts/selection.go",
              "line": 25
            },
            {
              "name": "IDs",
              "anchor": "Selection.IDs",
              "recv": "*Selection",
              "decl": "func (s *Selection) IDs() []UnitID",
              "doc": "IDs returns the selected units in selection order. The slice is the selection's own: read it, and copy it before changing the selection if you need to keep it.\n",
              "file": "pkg/rts/selection.go",
              "line": 19
            },
            {
              "name": "Len",
              "anchor": "Selection.Len",
              "recv": "*Selection",
              "decl": "func (s *Selection) Len() int",
              "doc": "Len returns the number of selected units.\n",
              "file": "pkg/rts/selection.go",
              "line": 22
            },
            {
              "name": "Remove",
              "anchor": "Selection.Remove",
              "recv": "*Selection",
              "decl": "func (s *Selection) Remove(ids ...UnitID)",
              "doc": "Remove deselects each of ids, keeping the others in order.\n",
              "file": "pkg/rts/selection.go",
              "line": 61
            },
            {
              "name": "Retain",
              "anchor": "Selection.Retain",
              "recv": "*Selection",
              "decl": "func (s *Selection) Retain(keep func(UnitID) bool)",
              "doc": "Retain keeps only the selected units keep reports true for, such as those still alive.\n",
              "file": "pkg/rts/selection.go",
              "line": 91
            },
            {
              "name": "Set",
              "anchor": "Selection.Set",
              "recv": "*Selection",
              "decl": "func (s *Selection) Set(ids []UnitID)",
              "doc": "Set replaces the selection with ids, dropping repeats.\n",
              "file": "pkg/rts/selection.go",
              "line": 37
            },
            {
              "name": "Toggle",
              "anchor": "Selection.Toggle",
              "recv": "*Selection",
              "decl": "func (s *Selection) Toggle(ids ...UnitID)",
              "doc": "Toggle deselects the units of ids that are selected and selects the others. When every unit of ids is already selected they are all deselected; otherwise the unselected ones are added, as a Ctrl-drag over a mixed group does in most strategy games.\n",
              "file": "pkg/rts/selection.go",
              "line": 75
            }
          ]
        },
        {
          "name": "Shape",
          "anchor": "Shape",
          "decl": "type Shape string",
          "doc": "Shape is the layout of a formation's slots.\n",
          "file": "pkg/rts/formation.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ShapeLine",
                  "anchor": "ShapeLine"
                },
                {
                  "name": "ShapeColumn",
                  "anchor": "ShapeColumn"
                },
                {
                  "name": "ShapeBox",
                  "anchor": "ShapeBox"
                },
                {
                  "name": "ShapeWedge",
                  "anchor": "ShapeWedge"
                }
              ],
              "decl": "const (\n\t// ShapeLine puts the units side by side in rows of Width slots, one row when Width is 0.\n\tShapeLine Shape = \"line\"\n\t// ShapeColumn puts the units one behind another in rows of Width slots, one slot wide when Width is 0.\n\tShapeColumn Shape = \"column\"\n\t// ShapeBox fills a square, or rows of Width slots when Width is set.\n\tShapeBox Shape = \"box\"\n\t// ShapeWedge puts one unit at the point and each row behind it one slot wider, as a V of filled rows.\n\tShapeWedge Shape = \"wedge\"\n)",
              "doc": "The formation shapes. Rows run across the facing direction and row 0 is the front.\n",
              "file": "pkg/rts/formation.go",
              "line": 14
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Slot",
          "anchor": "Slot",
          "decl": "type Slot struct {\n\t// Offset is the slot's position relative to the formation's center, with X across the facing direction (positive to the right of it) and Y along it (positive ahead).\n\tOffset math2d.Vec2\n\t// Row is the slot's row, 0 at the front.\n\tRow int\n}",
          "doc": "Slot is one place in a formation.\n",
          "file": "pkg/rts/formation.go",
          "line": 38,
          "members": [
            {
              "name": "Offset",
              "anchor": "Slot.Offset",
              "kind": "field",
              "doc": "Offset is the slot's position relative to the formation's center, with X across the facing direction (positive to the right of it) and Y along it (positive ahead)."
            },
            {
              "name": "Row",
              "anchor": "Slot.Row",
              "kind": "field",
              "doc": "Row is the slot's row, 0 at the front."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Unit",
          "anchor": "Unit",
          "decl": "type Unit struct {\n\tID       UnitID\n\tPos      math2d.Vec2\n\tVel      math2d.Vec2\n\tRadius   float32\n\tMaxSpeed float32\n\tMaxAccel float32\n\tKind     int\n\t// State is the unit's progress on its order.\n\tState MoveState\n\t// Target is the position the unit's order sends it to; for an idle unit, its position when it went idle.\n\tTarget math2d.Vec2\n\t// contains filtered or unexported fields\n}",
          "doc": "Unit is a unit's state as the crowd last stepped it. Read units through Crowd.Units or Crowd.Unit; change them only through the Crowd's methods.\n",
          "file": "pkg/rts/crowd.go",
          "line": 55,
          "members": [
            {
              "name": "ID",
              "anchor": "Unit.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pos",
              "anchor": "Unit.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vel",
              "anchor": "Unit.Vel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Unit.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxSpeed",
              "anchor": "Unit.MaxSpeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxAccel",
              "anchor": "Unit.MaxAccel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "Unit.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "Unit.State",
              "kind": "field",
              "doc": "State is the unit's progress on its order."
            },
            {
              "name": "Target",
              "anchor": "Unit.Target",
              "kind": "field",
              "doc": "Target is the position the unit's order sends it to; for an idle unit, its position when it went idle."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UnitID",
          "anchor": "UnitID",
          "decl": "type UnitID uint32",
          "doc": "UnitID identifies a unit in a Crowd. IDs start at 1 and are never reused, so 0 is never a valid ID.\n",
          "file": "pkg/rts/crowd.go",
          "line": 12,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UnitSpec",
          "anchor": "UnitSpec",
          "decl": "type UnitSpec struct {\n\t// Pos is the unit's starting position in world units.\n\tPos math2d.Vec2\n\t// Radius is the unit's body radius; 0 or less uses a quarter of the crowd's cell size.\n\tRadius float32\n\t// MaxSpeed is the unit's top speed in world units per second; 0 or less uses 4 cells per second.\n\tMaxSpeed float32\n\t// MaxAccel caps how fast the unit changes velocity, in world units per second squared; 0 or less uses four times MaxSpeed.\n\tMaxAccel float32\n\t// Kind is a game-defined unit type, used to select every unit of the same type with a double click.\n\tKind int\n}",
          "doc": "UnitSpec describes a unit to add to a Crowd.\n",
          "file": "pkg/rts/crowd.go",
          "line": 41,
          "members": [
            {
              "name": "Pos",
              "anchor": "UnitSpec.Pos",
              "kind": "field",
              "doc": "Pos is the unit's starting position in world units."
            },
            {
              "name": "Radius",
              "anchor": "UnitSpec.Radius",
              "kind": "field",
              "doc": "Radius is the unit's body radius; 0 or less uses a quarter of the crowd's cell size."
            },
            {
              "name": "MaxSpeed",
              "anchor": "UnitSpec.MaxSpeed",
              "kind": "field",
              "doc": "MaxSpeed is the unit's top speed in world units per second; 0 or less uses 4 cells per second."
            },
            {
              "name": "MaxAccel",
              "anchor": "UnitSpec.MaxAccel",
              "kind": "field",
              "doc": "MaxAccel caps how fast the unit changes velocity, in world units per second squared; 0 or less uses four times MaxSpeed."
            },
            {
              "name": "Kind",
              "anchor": "UnitSpec.Kind",
              "kind": "field",
              "doc": "Kind is a game-defined unit type, used to select every unit of the same type with a double click."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/save",
      "name": "save",
      "dir": "pkg/save",
      "page": "pkg/save",
      "synopsis": "Package save stores a game's save slots as versioned JSON in either the app's key-value storage (core.Storage) or files in a directory such as cx.DataDir.",
      "doc": "Package save stores a game's save slots as versioned JSON in either the app's key-value storage (core.Storage) or files in a directory such as cx.DataDir.\n\nEach slot holds a {\"version\": N, \"data\": ...} envelope; an envelope with any other field, or with a field given twice, is corrupt. When a Store loads a save written by an older version, it runs its registered migrations one version at a time (v to v+1) before unmarshaling into the caller's value; a save from a newer version is refused with ErrFutureVersion rather than read into an older shape.\n\nWrites keep the previous valid save as a backup before replacing the primary copy (with a write, sync and rename on disk, or a backup key in core.Storage), so a failed write leaves the last good save intact and a corrupted primary falls back to the backup on Load.\n\nPlayer settings (audio, bindings, display, locale, accessibility and custom preferences) are persisted separately via SettingsStore and DefaultSettingsStore outside the save-slot namespace, so deleting or clearing save slots never touches player settings, and LoadAndApply wires loaded settings to game subsystems on startup.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNotFound",
              "anchor": "ErrNotFound"
            },
            {
              "name": "ErrInvalidSlot",
              "anchor": "ErrInvalidSlot"
            },
            {
              "name": "ErrFutureVersion",
              "anchor": "ErrFutureVersion"
            },
            {
              "name": "ErrMissingMigration",
              "anchor": "ErrMissingMigration"
            },
            {
              "name": "ErrCorrupt",
              "anchor": "ErrCorrupt"
            }
          ],
          "decl": "var (\n\t// ErrNotFound reports that no save exists in the named slot.\n\tErrNotFound = errors.New(\"save: slot not found\")\n\t// ErrInvalidSlot reports that a slot name is empty or unsafe for storage keys or file paths.\n\tErrInvalidSlot = errors.New(\"save: invalid slot name\")\n\t// ErrFutureVersion reports that a save was written by a newer schema version than the store supports.\n\tErrFutureVersion = errors.New(\"save: version newer than supported\")\n\t// ErrMissingMigration reports that a store lacks a migration step needed to bring a save up to its current version.\n\tErrMissingMigration = errors.New(\"save: missing migration\")\n\t// ErrCorrupt reports that a save's stored payload is not a valid save envelope.\n\tErrCorrupt = errors.New(\"save: corrupt data\")\n)",
          "doc": "",
          "file": "pkg/save/save.go",
          "line": 22
        }
      ],
      "funcs": [
        {
          "name": "Apply",
          "anchor": "Apply",
          "decl": "func Apply(s Settings, targets SettingsTargets) error",
          "doc": "Apply validates a copy of s and dispatches its sections to every non-nil target in targets.\nAll non-nil targets are invoked even if an earlier target returns an error; errors are combined with errors.Join.\n",
          "file": "pkg/save/settings.go",
          "line": 649
        },
        {
          "name": "ValidateSlot",
          "anchor": "ValidateSlot",
          "decl": "func ValidateSlot(slot string) error",
          "doc": "ValidateSlot reports whether slot is a name a Store accepts, returning an error wrapping ErrInvalidSlot when it is not. Code that takes slot names from outside the game, such as a cloud listing, checks them with it before handing them to a Backend.\n",
          "file": "pkg/save/save.go",
          "line": 508
        }
      ],
      "types": [
        {
          "name": "AccessibilitySettings",
          "anchor": "AccessibilitySettings",
          "decl": "type AccessibilitySettings struct {\n\tCaptions bool `json:\"captions\"`\n\t// CaptionScale is the subtitle/caption scale factor in [0.5, 3.0] (1.0 by default).\n\tCaptionScale   float64 `json:\"caption_scale\"`\n\tColorBlindMode string  `json:\"color_blind_mode,omitempty\"`\n\tReduceMotion   bool    `json:\"reduce_motion\"`\n\tHighContrast   bool    `json:\"high_contrast\"`\n\t// ScreenShake is the camera shake intensity in [0, 1] (1.0 by default, 0 disables shake).\n\tScreenShake float64 `json:\"screen_shake\"`\n\t// GameSpeed is the gameplay speed multiplier in [0.25, 2.0] (1.0 by default).\n\tGameSpeed float64 `json:\"game_speed\"`\n}",
          "doc": "AccessibilitySettings holds player accessibility preferences.\n",
          "file": "pkg/save/settings.go",
          "line": 91,
          "members": [
            {
              "name": "Captions",
              "anchor": "AccessibilitySettings.Captions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CaptionScale",
              "anchor": "AccessibilitySettings.CaptionScale",
              "kind": "field",
              "doc": "CaptionScale is the subtitle/caption scale factor in [0.5, 3.0] (1.0 by default)."
            },
            {
              "name": "ColorBlindMode",
              "anchor": "AccessibilitySettings.ColorBlindMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ReduceMotion",
              "anchor": "AccessibilitySettings.ReduceMotion",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HighContrast",
              "anchor": "AccessibilitySettings.HighContrast",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScreenShake",
              "anchor": "AccessibilitySettings.ScreenShake",
              "kind": "field",
              "doc": "ScreenShake is the camera shake intensity in [0, 1] (1.0 by default, 0 disables shake)."
            },
            {
              "name": "GameSpeed",
              "anchor": "AccessibilitySettings.GameSpeed",
              "kind": "field",
              "doc": "GameSpeed is the gameplay speed multiplier in [0.25, 2.0] (1.0 by default)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AudioSettings",
          "anchor": "AudioSettings",
          "decl": "type AudioSettings struct {\n\t// Master is the overall volume in [0, 1] (1.0 by default).\n\tMaster float64 `json:\"master\"`\n\t// Groups maps audio group names (such as \"music\", \"sfx\", \"ui\") to volumes in [0, 1].\n\tGroups map[string]float64 `json:\"groups,omitempty\"`\n\t// Muted silences all audio without discarding the stored Master level.\n\tMuted bool `json:\"muted\"`\n}",
          "doc": "AudioSettings holds player audio preferences stored independently of save slots.\n",
          "file": "pkg/save/settings.go",
          "line": 29,
          "members": [
            {
              "name": "Master",
              "anchor": "AudioSettings.Master",
              "kind": "field",
              "doc": "Master is the overall volume in [0, 1] (1.0 by default)."
            },
            {
              "name": "Groups",
              "anchor": "AudioSettings.Groups",
              "kind": "field",
              "doc": "Groups maps audio group names (such as \"music\", \"sfx\", \"ui\") to volumes in [0, 1]."
            },
            {
              "name": "Muted",
              "anchor": "AudioSettings.Muted",
              "kind": "field",
              "doc": "Muted silences all audio without discarding the stored Master level."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "UnmarshalJSON",
              "anchor": "AudioSettings.UnmarshalJSON",
              "recv": "*AudioSettings",
              "decl": "func (a *AudioSettings) UnmarshalJSON(data []byte) error",
              "doc": "UnmarshalJSON decodes AudioSettings while preserving defaults for omitted fields\nand replacing Groups cleanly when \"groups\" is explicitly present in JSON.\n",
              "file": "pkg/save/settings.go",
              "line": 40
            }
          ]
        },
        {
          "name": "Backend",
          "anchor": "Backend",
          "decl": "type Backend interface {\n\t// Read returns the primary payload for slot, or an error wrapping ErrNotFound if absent.\n\tRead(slot string) ([]byte, error)\n\t// ReadBackup returns the previous valid payload kept as a backup for slot, or an error wrapping ErrNotFound if absent.\n\tReadBackup(slot string) ([]byte, error)\n\t// Write saves data as the primary payload for slot, preserving any existing valid primary as the backup first.\n\tWrite(slot string, data []byte) error\n\t// Delete removes both primary and backup payloads for slot, the backup first so an interrupted Delete never leaves a backup that resurrects the slot. Deleting an absent slot returns nil.\n\tDelete(slot string) error\n\t// Exists reports whether a primary or backup payload exists for slot.\n\tExists(slot string) bool\n\t// Slots returns the sorted names of all slots that have a primary or backup payload.\n\tSlots() ([]string, error)\n}",
          "doc": "Backend stores and retrieves raw save payloads and their backup copies by validated slot name.\n\nA Backend that wraps another, such as one that records each write, can expose it with an Unwrap() Backend method. A SettingsStore built on the wrapper then keeps settings exactly where it would on the wrapped backend, without passing them through the wrapper.\n",
          "file": "pkg/save/backend.go",
          "line": 25,
          "members": [
            {
              "name": "Read",
              "anchor": "Backend.Read",
              "kind": "method",
              "doc": "Read returns the primary payload for slot, or an error wrapping ErrNotFound if absent."
            },
            {
              "name": "ReadBackup",
              "anchor": "Backend.ReadBackup",
              "kind": "method",
              "doc": "ReadBackup returns the previous valid payload kept as a backup for slot, or an error wrapping ErrNotFound if absent."
            },
            {
              "name": "Write",
              "anchor": "Backend.Write",
              "kind": "method",
              "doc": "Write saves data as the primary payload for slot, preserving any existing valid primary as the backup first."
            },
            {
              "name": "Delete",
              "anchor": "Backend.Delete",
              "kind": "method",
              "doc": "Delete removes both primary and backup payloads for slot, the backup first so an interrupted Delete never leaves a backup that resurrects the slot. Deleting an absent slot returns nil."
            },
            {
              "name": "Exists",
              "anchor": "Backend.Exists",
              "kind": "method",
              "doc": "Exists reports whether a primary or backup payload exists for slot."
            },
            {
              "name": "Slots",
              "anchor": "Backend.Slots",
              "kind": "method",
              "doc": "Slots returns the sorted names of all slots that have a primary or backup payload."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FileBackend",
              "anchor": "FileBackend",
              "decl": "func FileBackend(dir string) Backend",
              "doc": "FileBackend returns a Backend that keeps each slot as <slot>.json and its backup as <slot>.json.bak inside dir (such as cx.DataDir()).\n\nWrites stage data into a synced temporary file in dir, preserve any existing valid primary in <slot>.json.bak, atomically rename the temporary file into place and sync the directory, reporting a failed directory sync as a write error. The first Write removes .save-*.tmp files that an interrupted write left more than an hour ago. On the web, where Scope.DataDir is empty, use StorageBackend instead.\n",
              "file": "pkg/save/backend.go",
              "line": 170
            },
            {
              "name": "StorageBackend",
              "anchor": "StorageBackend",
              "decl": "func StorageBackend(store core.Storage, prefix string) Backend",
              "doc": "StorageBackend returns a Backend that keeps saves in store under keys starting with prefix.\n\nEach slot uses a primary key (<prefix>.slot.<slot>) and a backup key (<prefix>.bak.<slot>), so backup keys never collide with slot names and a failed SetItem (such as *core.StorageFullError) leaves the previous save intact.\n",
              "file": "pkg/save/backend.go",
              "line": 48
            }
          ],
          "methods": []
        },
        {
          "name": "DefaultSettingsStore",
          "anchor": "DefaultSettingsStore",
          "decl": "type DefaultSettingsStore struct {\n\t*SettingsStore[Settings]\n}",
          "doc": "DefaultSettingsStore is a convenience SettingsStore for the standard Settings struct with startup Apply support.\n",
          "file": "pkg/save/settings.go",
          "line": 584,
          "members": [
            {
              "name": "SettingsStore",
              "anchor": "DefaultSettingsStore.SettingsStore",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDefaultSettingsStore",
              "anchor": "NewDefaultSettingsStore",
              "decl": "func NewDefaultSettingsStore(backend Backend, opts ...SettingsOption) *DefaultSettingsStore",
              "doc": "NewDefaultSettingsStore returns a DefaultSettingsStore backed by backend.\n",
              "file": "pkg/save/settings.go",
              "line": 589
            },
            {
              "name": "NewFileSettingsStore",
              "anchor": "NewFileSettingsStore",
              "decl": "func NewFileSettingsStore(dir string, opts ...SettingsOption) *DefaultSettingsStore",
              "doc": "NewFileSettingsStore returns a DefaultSettingsStore backed by settings.json (and settings.json.bak) inside dir.\n",
              "file": "pkg/save/settings.go",
              "line": 596
            },
            {
              "name": "NewStorageSettingsStore",
              "anchor": "NewStorageSettingsStore",
              "decl": "func NewStorageSettingsStore(store core.Storage, prefix string, opts ...SettingsOption) *DefaultSettingsStore",
              "doc": "NewStorageSettingsStore returns a DefaultSettingsStore backed by store under <prefix>.settings (outside the slot namespace).\n",
              "file": "pkg/save/settings.go",
              "line": 601
            }
          ],
          "methods": [
            {
              "name": "LoadAndApply",
              "anchor": "DefaultSettingsStore.LoadAndApply",
              "recv": "*DefaultSettingsStore",
              "decl": "func (s *DefaultSettingsStore) LoadAndApply(targets SettingsTargets) (Settings, error)",
              "doc": "LoadAndApply loads settings (returning DefaultSettings when absent) and applies them to targets.\nIf Load fails, targets are not called. If Apply fails, the loaded settings are still returned alongside the error.\n",
              "file": "pkg/save/settings.go",
              "line": 607
            }
          ]
        },
        {
          "name": "DisplaySettings",
          "anchor": "DisplaySettings",
          "decl": "type DisplaySettings struct {\n\t// Fullscreen puts the window in full screen on the chosen display, as the platform provides it (on macOS, native full screen in its own Space; on the web, the browser's full screen, granted only during a user gesture); false keeps it windowed.\n\tFullscreen bool `json:\"fullscreen\"`\n\t// DisplayID is the ID, from core.Env.Displays, of the display full screen uses. It names a display the same way across launches and display changes, so a UI that offers displays sets it; when it is empty or the display is not connected, DisplayIndex chooses instead.\n\tDisplayID string `json:\"display_id,omitempty\"`\n\t// DisplayIndex is the position in core.Env.Displays of the display full screen uses when DisplayID is empty or not connected; out of range keeps the window's current display.\n\tDisplayIndex int    `json:\"display_index\"`\n\tScaleMode    string `json:\"scale_mode,omitempty\"`\n\tIntegerScale bool   `json:\"integer_scale\"`\n\t// FrameCap is the most frames drawn a second, uncapped when 0.\n\tFrameCap int  `json:\"frame_cap\"`\n\tVSync    bool `json:\"vsync\"`\n\t// AutoDropLowPower lowers the frame cap while the system is in low-power mode or under serious thermal pressure, and restores it once the condition clears.\n\tAutoDropLowPower bool `json:\"auto_drop_low_power\"`\n\t// Quality is the player's quality setting as quality.NormalizeSetting writes it: \"auto\" (the default) lets quality.Selector choose from the device and its frame times, and \"low\", \"medium\" or \"high\" holds that preset.\n\tQuality string `json:\"quality,omitempty\"`\n}",
          "doc": "DisplaySettings holds player display and presentation preferences.\n",
          "file": "pkg/save/settings.go",
          "line": 72,
          "members": [
            {
              "name": "Fullscreen",
              "anchor": "DisplaySettings.Fullscreen",
              "kind": "field",
              "doc": "Fullscreen puts the window in full screen on the chosen display, as the platform provides it (on macOS, native full screen in its own Space; on the web, the browser's full screen, granted only during a user gesture); false keeps it windowed."
            },
            {
              "name": "DisplayID",
              "anchor": "DisplaySettings.DisplayID",
              "kind": "field",
              "doc": "DisplayID is the ID, from core.Env.Displays, of the display full screen uses. It names a display the same way across launches and display changes, so a UI that offers displays sets it; when it is empty or the display is not connected, DisplayIndex chooses instead."
            },
            {
              "name": "DisplayIndex",
              "anchor": "DisplaySettings.DisplayIndex",
              "kind": "field",
              "doc": "DisplayIndex is the position in core.Env.Displays of the display full screen uses when DisplayID is empty or not connected; out of range keeps the window's current display."
            },
            {
              "name": "ScaleMode",
              "anchor": "DisplaySettings.ScaleMode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IntegerScale",
              "anchor": "DisplaySettings.IntegerScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FrameCap",
              "anchor": "DisplaySettings.FrameCap",
              "kind": "field",
              "doc": "FrameCap is the most frames drawn a second, uncapped when 0."
            },
            {
              "name": "VSync",
              "anchor": "DisplaySettings.VSync",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AutoDropLowPower",
              "anchor": "DisplaySettings.AutoDropLowPower",
              "kind": "field",
              "doc": "AutoDropLowPower lowers the frame cap while the system is in low-power mode or under serious thermal pressure, and restores it once the condition clears."
            },
            {
              "name": "Quality",
              "anchor": "DisplaySettings.Quality",
              "kind": "field",
              "doc": "Quality is the player's quality setting as quality.NormalizeSetting writes it: \"auto\" (the default) lets quality.Selector choose from the device and its frame times, and \"low\", \"medium\" or \"high\" holds that preset."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Migration",
          "anchor": "Migration",
          "decl": "type Migration func(data json.RawMessage) (json.RawMessage, error)",
          "doc": "Migration converts a save's raw JSON data from one schema version to the next (v to v+1).\n",
          "file": "pkg/save/save.go",
          "line": 36,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Option",
          "anchor": "Option",
          "decl": "type Option func(*Store)",
          "doc": "Option configures a Store returned by NewStore, NewStorageStore or NewFileStore.\n",
          "file": "pkg/save/save.go",
          "line": 39,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "WithMigration",
              "anchor": "WithMigration",
              "decl": "func WithMigration(from int, fn Migration) Option",
              "doc": "WithMigration registers fn to migrate a save's JSON data from version from to from+1.\n",
              "file": "pkg/save/save.go",
              "line": 49
            },
            {
              "name": "WithMigrations",
              "anchor": "WithMigrations",
              "decl": "func WithMigrations(m map[int]Migration) Option",
              "doc": "WithMigrations registers each migration in m, keyed by its starting version (from to from+1).\n",
              "file": "pkg/save/save.go",
              "line": 56
            },
            {
              "name": "WithVersion",
              "anchor": "WithVersion",
              "decl": "func WithVersion(v int) Option",
              "doc": "WithVersion sets the store's current save schema version. Versions below 1 are treated as 1.\n",
              "file": "pkg/save/save.go",
              "line": 42
            }
          ],
          "methods": []
        },
        {
          "name": "Settings",
          "anchor": "Settings",
          "decl": "type Settings struct {\n\tAudio         AudioSettings              `json:\"audio\"`\n\tBindings      map[string][]string        `json:\"bindings,omitempty\"`\n\tDisplay       DisplaySettings            `json:\"display\"`\n\tLocale        string                     `json:\"locale,omitempty\"`\n\tAccessibility AccessibilitySettings      `json:\"accessibility\"`\n\tCustom        map[string]json.RawMessage `json:\"custom,omitempty\"`\n}",
          "doc": "Settings holds typed, versioned player preferences kept completely separate from save slots.\n",
          "file": "pkg/save/settings.go",
          "line": 105,
          "members": [
            {
              "name": "Audio",
              "anchor": "Settings.Audio",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bindings",
              "anchor": "Settings.Bindings",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Display",
              "anchor": "Settings.Display",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Locale",
              "anchor": "Settings.Locale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Accessibility",
              "anchor": "Settings.Accessibility",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Custom",
              "anchor": "Settings.Custom",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultSettings",
              "anchor": "DefaultSettings",
              "decl": "func DefaultSettings() Settings",
              "doc": "DefaultSettings returns a Settings populated with sane defaults.\n",
              "file": "pkg/save/settings.go",
              "line": 115
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "Settings.Validate",
              "recv": "*Settings",
              "decl": "func (s *Settings) Validate()",
              "doc": "Validate clamps out-of-range numeric fields and normalizes empty/whitespace strings in place.\n",
              "file": "pkg/save/settings.go",
              "line": 151
            }
          ]
        },
        {
          "name": "SettingsOption",
          "anchor": "SettingsOption",
          "decl": "type SettingsOption func(*settingsConfig)",
          "doc": "SettingsOption configures a SettingsStore or DefaultSettingsStore.\n",
          "file": "pkg/save/settings.go",
          "line": 254,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "WithSettingsMigration",
              "anchor": "WithSettingsMigration",
              "decl": "func WithSettingsMigration(from int, fn Migration) SettingsOption",
              "doc": "WithSettingsMigration registers fn to migrate settings JSON data from version from to from+1.\n",
              "file": "pkg/save/settings.go",
              "line": 264
            },
            {
              "name": "WithSettingsMigrations",
              "anchor": "WithSettingsMigrations",
              "decl": "func WithSettingsMigrations(m map[int]Migration) SettingsOption",
              "doc": "WithSettingsMigrations registers each migration in m, keyed by its starting version (from to from+1).\n",
              "file": "pkg/save/settings.go",
              "line": 274
            },
            {
              "name": "WithSettingsSchema",
              "anchor": "WithSettingsSchema",
              "decl": "func WithSettingsSchema(schema SettingsSchema) SettingsOption",
              "doc": "WithSettingsSchema applies schema's Version and Migrations to a settings store.\n",
              "file": "pkg/save/settings.go",
              "line": 289
            },
            {
              "name": "WithSettingsVersion",
              "anchor": "WithSettingsVersion",
              "decl": "func WithSettingsVersion(v int) SettingsOption",
              "doc": "WithSettingsVersion sets the settings store's current schema version. Versions below 1 are treated as 1.\n",
              "file": "pkg/save/settings.go",
              "line": 257
            }
          ],
          "methods": []
        },
        {
          "name": "SettingsSchema",
          "anchor": "SettingsSchema",
          "decl": "type SettingsSchema struct {\n\t// Version is the current settings schema version written by Save and expected by Load; 1 when 0 or negative.\n\tVersion int\n\t// Migrations maps a version v to the Migration that upgrades settings JSON data from v to v+1.\n\tMigrations map[int]Migration\n}",
          "doc": "SettingsSchema describes the version and step-by-step migrations for a SettingsStore.\n",
          "file": "pkg/save/settings.go",
          "line": 241,
          "members": [
            {
              "name": "Version",
              "anchor": "SettingsSchema.Version",
              "kind": "field",
              "doc": "Version is the current settings schema version written by Save and expected by Load; 1 when 0 or negative."
            },
            {
              "name": "Migrations",
              "anchor": "SettingsSchema.Migrations",
              "kind": "field",
              "doc": "Migrations maps a version v to the Migration that upgrades settings JSON data from v to v+1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SettingsStore",
          "anchor": "SettingsStore",
          "decl": "type SettingsStore[T any] struct {\n\t// Version is the current settings schema version written by Save and expected by Load; 1 when 0 or negative.\n\tVersion int\n\t// Migrations maps a version v to the Migration that upgrades settings JSON data from v to v+1.\n\tMigrations map[int]Migration\n\t// contains filtered or unexported fields\n}",
          "doc": "SettingsStore persists a versioned settings value of type T in a dedicated settings file or storage key,\ncompletely separate from save slots.\n",
          "file": "pkg/save/settings.go",
          "line": 419,
          "members": [
            {
              "name": "Version",
              "anchor": "SettingsStore.Version",
              "kind": "field",
              "doc": "Version is the current settings schema version written by Save and expected by Load; 1 when 0 or negative."
            },
            {
              "name": "Migrations",
              "anchor": "SettingsStore.Migrations",
              "kind": "field",
              "doc": "Migrations maps a version v to the Migration that upgrades settings JSON data from v to v+1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSettingsStore",
              "anchor": "NewSettingsStore",
              "decl": "func NewSettingsStore[T any](backend Backend, defaults func() T, opts ...SettingsOption) *SettingsStore[T]",
              "doc": "NewSettingsStore returns a SettingsStore for T backed by backend.\n\ndefaults supplies the baseline value returned when no settings exist yet, used as the base when unmarshaling\npartial JSON, and written on Reset. When defaults is nil, DefaultSettings() is used if T is Settings,\notherwise the zero value of T.\n",
              "file": "pkg/save/settings.go",
              "line": 434
            }
          ],
          "methods": [
            {
              "name": "Delete",
              "anchor": "SettingsStore.Delete",
              "recv": "*SettingsStore[T]",
              "decl": "func (s *SettingsStore[T]) Delete() error",
              "doc": "Delete removes the stored settings and its backup copy. Deleting absent settings returns nil.\n",
              "file": "pkg/save/settings.go",
              "line": 568
            },
            {
              "name": "Exists",
              "anchor": "SettingsStore.Exists",
              "recv": "*SettingsStore[T]",
              "decl": "func (s *SettingsStore[T]) Exists() bool",
              "doc": "Exists reports whether a primary or backup settings payload exists.\n",
              "file": "pkg/save/settings.go",
              "line": 576
            },
            {
              "name": "Load",
              "anchor": "SettingsStore.Load",
              "recv": "*SettingsStore[T]",
              "decl": "func (s *SettingsStore[T]) Load() (T, error)",
              "doc": "Load reads settings, migrating older versions up to s.Version one step at a time and validating the result.\n\nIf no settings have been saved yet, Load returns the store's default value and a nil error.\nIf the primary copy is missing, unreadable or corrupted, Load recovers from the backup copy.\nSettings from a newer schema version return ErrFutureVersion without falling back to an older backup.\n",
              "file": "pkg/save/settings.go",
              "line": 493
            },
            {
              "name": "RegisterMigration",
              "anchor": "SettingsStore.RegisterMigration",
              "recv": "*SettingsStore[T]",
              "decl": "func (s *SettingsStore[T]) RegisterMigration(from int, fn Migration)",
              "doc": "RegisterMigration registers fn to upgrade settings JSON data from version from to from+1.\n",
              "file": "pkg/save/settings.go",
              "line": 450
            },
            {
              "name": "Reset",
              "anchor": "SettingsStore.Reset",
              "recv": "*SettingsStore[T]",
              "decl": "func (s *SettingsStore[T]) Reset() error",
              "doc": "Reset restores and saves the store's default settings.\n",
              "file": "pkg/save/settings.go",
              "line": 563
            },
            {
              "name": "Save",
              "anchor": "SettingsStore.Save",
              "recv": "*SettingsStore[T]",
              "decl": "func (s *SettingsStore[T]) Save(value T) error",
              "doc": "Save validates value (if T implements Validate()), encodes it into a versioned JSON envelope,\nand writes it atomically while keeping the previous valid copy as a backup.\n",
              "file": "pkg/save/settings.go",
              "line": 542
            }
          ]
        },
        {
          "name": "SettingsTargets",
          "anchor": "SettingsTargets",
          "decl": "type SettingsTargets struct {\n\t// Sound receives master and group volumes from Settings.Audio.\n\t// When Settings.Audio.Muted is true, the mixer's master volume is set to 0.\n\tSound *sound.Mixer\n\n\t// SetMasterVolume receives the effective master volume (0 when Muted is true) in [0, 1].\n\tSetMasterVolume func(volume float64)\n\n\t// SetGroupVolume receives each audio group name and volume from Settings.Audio.Groups in sorted key order.\n\tSetGroupVolume func(group string, volume float64)\n\n\t// ApplyAudio receives the validated AudioSettings.\n\tApplyAudio func(AudioSettings) error\n\n\t// ApplyBindings receives a cloned map of action bindings.\n\tApplyBindings func(map[string][]string) error\n\n\t// ApplyDisplay receives the validated DisplaySettings.\n\tApplyDisplay func(DisplaySettings) error\n\n\t// ApplyLocale receives the validated Locale string.\n\tApplyLocale func(locale string) error\n\n\t// ApplyAccessibility receives the validated AccessibilitySettings.\n\tApplyAccessibility func(AccessibilitySettings) error\n}",
          "doc": "SettingsTargets wires subsystems to receive loaded player settings at startup or when settings change.\nEvery field is optional; nil targets are skipped.\n",
          "file": "pkg/save/settings.go",
          "line": 620,
          "members": [
            {
              "name": "Sound",
              "anchor": "SettingsTargets.Sound",
              "kind": "field",
              "doc": "Sound receives master and group volumes from Settings.Audio.\nWhen Settings.Audio.Muted is true, the mixer's master volume is set to 0."
            },
            {
              "name": "SetMasterVolume",
              "anchor": "SettingsTargets.SetMasterVolume",
              "kind": "field",
              "doc": "SetMasterVolume receives the effective master volume (0 when Muted is true) in [0, 1]."
            },
            {
              "name": "SetGroupVolume",
              "anchor": "SettingsTargets.SetGroupVolume",
              "kind": "field",
              "doc": "SetGroupVolume receives each audio group name and volume from Settings.Audio.Groups in sorted key order."
            },
            {
              "name": "ApplyAudio",
              "anchor": "SettingsTargets.ApplyAudio",
              "kind": "field",
              "doc": "ApplyAudio receives the validated AudioSettings."
            },
            {
              "name": "ApplyBindings",
              "anchor": "SettingsTargets.ApplyBindings",
              "kind": "field",
              "doc": "ApplyBindings receives a cloned map of action bindings."
            },
            {
              "name": "ApplyDisplay",
              "anchor": "SettingsTargets.ApplyDisplay",
              "kind": "field",
              "doc": "ApplyDisplay receives the validated DisplaySettings."
            },
            {
              "name": "ApplyLocale",
              "anchor": "SettingsTargets.ApplyLocale",
              "kind": "field",
              "doc": "ApplyLocale receives the validated Locale string."
            },
            {
              "name": "ApplyAccessibility",
              "anchor": "SettingsTargets.ApplyAccessibility",
              "kind": "field",
              "doc": "ApplyAccessibility receives the validated AccessibilitySettings."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Store",
          "anchor": "Store",
          "decl": "type Store struct {\n\t// Version is the current save schema version written by Save and expected by Load; 1 when 0 or negative.\n\tVersion int\n\t// Migrations maps a version v to the Migration that upgrades a save's JSON data from v to v+1.\n\tMigrations map[int]Migration\n\t// contains filtered or unexported fields\n}",
          "doc": "Store saves and loads versioned JSON game state across named slots backed by a Backend.\n",
          "file": "pkg/save/save.go",
          "line": 65,
          "members": [
            {
              "name": "Version",
              "anchor": "Store.Version",
              "kind": "field",
              "doc": "Version is the current save schema version written by Save and expected by Load; 1 when 0 or negative."
            },
            {
              "name": "Migrations",
              "anchor": "Store.Migrations",
              "kind": "field",
              "doc": "Migrations maps a version v to the Migration that upgrades a save's JSON data from v to v+1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFileStore",
              "anchor": "NewFileStore",
              "decl": "func NewFileStore(dir string, opts ...Option) *Store",
              "doc": "NewFileStore returns a Store backed by JSON files inside dir (such as cx.DataDir()).\n",
              "file": "pkg/save/save.go",
              "line": 94
            },
            {
              "name": "NewStorageStore",
              "anchor": "NewStorageStore",
              "decl": "func NewStorageStore(store core.Storage, prefix string, opts ...Option) *Store",
              "doc": "NewStorageStore returns a Store backed by store under keys starting with prefix.\n",
              "file": "pkg/save/save.go",
              "line": 89
            },
            {
              "name": "NewStore",
              "anchor": "NewStore",
              "decl": "func NewStore(backend Backend, opts ...Option) *Store",
              "doc": "NewStore returns a Store backed by backend, defaulting to Version 1 before applying opts.\n",
              "file": "pkg/save/save.go",
              "line": 75
            }
          ],
          "methods": [
            {
              "name": "Delete",
              "anchor": "Store.Delete",
              "recv": "*Store",
              "decl": "func (s *Store) Delete(slot string) error",
              "doc": "Delete removes slot and its backup copy. Deleting a slot that does not exist returns nil. The backup goes first, so an interrupted Delete leaves either the whole slot or nothing that Load could resurrect.\n",
              "file": "pkg/save/save.go",
              "line": 229
            },
            {
              "name": "DeleteAll",
              "anchor": "Store.DeleteAll",
              "recv": "*Store",
              "decl": "func (s *Store) DeleteAll() error",
              "doc": "DeleteAll removes every save slot and its backup copy. Player settings stored alongside save slots are never touched.\n",
              "file": "pkg/save/save.go",
              "line": 240
            },
            {
              "name": "Exists",
              "anchor": "Store.Exists",
              "recv": "*Store",
              "decl": "func (s *Store) Exists(slot string) bool",
              "doc": "Exists reports whether slot has a stored save or backup copy.\n",
              "file": "pkg/save/save.go",
              "line": 258
            },
            {
              "name": "Load",
              "anchor": "Store.Load",
              "recv": "*Store",
              "decl": "func (s *Store) Load(slot string, dst any) error",
              "doc": "Load reads slot, migrates older save versions up to s.Version one step at a time, and unmarshals the data into dst.\n\nIf the primary copy is missing, unreadable or corrupted, Load automatically recovers from the slot's backup copy. It rewrites the primary from that backup only when the primary is missing or is not a JSON object at all (empty, truncated or garbage); a primary that failed to read for another reason, or that is a JSON object Load cannot use, is left as it is, because it may be newer than the backup. A save whose version exceeds s.Version returns an error wrapping ErrFutureVersion without falling back to an older backup, even when its envelope has fields this build does not know.\n\nLoad never writes a migrated save back: migrations run in memory on every Load until the slot is saved again, so each Migration must be a pure function of its input that gives the same result every time it runs.\n\nAn error about a copy's contents is a *loaderr.Error that names the copy, the line in the stored JSON and a fix. FileBackend names it by its file path (<dir>/<slot>.json, or <dir>/<slot>.json.bak for the backup) and StorageBackend by its storage key; another Backend by the slot, with \" (backup)\" for its backup copy.\n",
              "file": "pkg/save/save.go",
              "line": 137
            },
            {
              "name": "LoadChecked",
              "anchor": "Store.LoadChecked",
              "recv": "*Store",
              "decl": "func (s *Store) LoadChecked(slot string, dst any, check func() error) error",
              "doc": "LoadChecked is Load with a check of the decoded value: after a copy decodes into dst, LoadChecked calls check, and a copy check refuses is treated as corrupted, so the backup is tried as it would be for one that does not decode.\n\nBefore the backup is decoded, and when LoadChecked returns an error, dst is put back to the value it had when LoadChecked was called, so nothing of a refused copy is left in it.\n\nWhen check returns a *loaderr.Error whose Field is a path in dst's JSON, the error LoadChecked returns gives that field's line in the stored copy, under \"data\". A nil check checks nothing.\n",
              "file": "pkg/save/save.go",
              "line": 146
            },
            {
              "name": "RegisterMigration",
              "anchor": "Store.RegisterMigration",
              "recv": "*Store",
              "decl": "func (s *Store) RegisterMigration(from int, fn Migration)",
              "doc": "RegisterMigration registers fn to upgrade a save's JSON data from version from to from+1.\n",
              "file": "pkg/save/save.go",
              "line": 99
            },
            {
              "name": "Save",
              "anchor": "Store.Save",
              "recv": "*Store",
              "decl": "func (s *Store) Save(slot string, value any) error",
              "doc": "Save encodes value into a versioned JSON envelope and writes it to slot.\n\nMarshaling happens before the backend is touched, so an encoding error leaves any previous save in slot untouched.\n",
              "file": "pkg/save/save.go",
              "line": 109
            },
            {
              "name": "Slots",
              "anchor": "Store.Slots",
              "recv": "*Store",
              "decl": "func (s *Store) Slots() ([]string, error)",
              "doc": "Slots returns the sorted names of all slots stored in the backend.\n",
              "file": "pkg/save/save.go",
              "line": 266
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/scene",
      "name": "scene",
      "dir": "pkg/scene",
      "page": "pkg/scene",
      "synopsis": "Package scene organizes a game into ordered world- and screen-space layers, hit-tests sprites and custom shapes in view coordinates, and manages scene lifecycles, stacks, and transitions.",
      "doc": "Package scene organizes a game into ordered world- and screen-space layers, hit-tests sprites and custom shapes in view coordinates, and manages scene lifecycles, stacks, and transitions.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "ProjectToOverlay",
          "anchor": "ProjectToOverlay",
          "decl": "func ProjectToOverlay(viewProj [16]float32, worldX, worldY, worldZ, viewWidth, viewHeight float32) (x, y float32, visible bool)",
          "doc": "ProjectToOverlay projects the 3D world point (worldX, worldY, worldZ) through\nthe column-major view-projection matrix viewProj (using [0, 1] clip depth, as\nmath3d.Mat4 and scene3d.Camera.ViewProj produce) into 2D overlay coordinates\nspanning (0..viewWidth, 0..viewHeight) with (0, 0) at the top-left corner.\n\nvisible is true when the projected point lies inside the view frustum (NDC X\nand Y in [-1, 1] and NDC Z in [0, 1]). Points in front of the camera but\noutside the frustum return their projected off-screen coordinates with\nvisible == false; points behind the camera, degenerate matrices, non-finite\ninputs, or non-positive view dimensions return (0, 0, false).\n",
          "file": "pkg/scene/overlay3d.go",
          "line": 41
        },
        {
          "name": "SpriteContains",
          "anchor": "SpriteContains",
          "decl": "func SpriteContains(s *sprite.Sprite, p core.Point) bool",
          "doc": "SpriteContains reports whether layer-space point p lies inside s's transformed untrimmed frame bounds (position, origin, scale, rotation, and flip). Invisible sprites (Alpha <= 0) never hit.\n",
          "file": "pkg/scene/hit.go",
          "line": 182
        },
        {
          "name": "SpriteToLocal",
          "anchor": "SpriteToLocal",
          "decl": "func SpriteToLocal(s *sprite.Sprite, p core.Point) (core.Point, bool)",
          "doc": "SpriteToLocal maps a layer-space point p into s's untrimmed frame coordinates (0..Width, 0..Height), inverting position, origin, scale, rotation, and flip. It returns false when s has zero scale or an empty frame.\n",
          "file": "pkg/scene/hit.go",
          "line": 135
        }
      ],
      "types": [
        {
          "name": "Controller",
          "anchor": "Controller",
          "decl": "type Controller struct {\n\t// Scene is an optional Scene drawn and updated when Draw or Update is nil, and targeted by Manager.DispatchPress and Manager.DispatchTouch.\n\tScene *Scene\n\t// Transparent, when true on a pushed overlay scene, lets Manager.Draw and Manager.View also show the underlying scene(s) first.\n\tTransparent bool\n\t// View optionally builds a native NSGo view tree for this scene, such as a 3D gpu.View or Overlay3D.View, when Manager.View mounts the scene.\n\t//\n\t// Its cx is the mounted row's scope, not the child scope Enter receives: when the scene leaves the Manager, Exit runs and Enter's scope is disposed first, and the row (with everything created under View's cx) is unmounted right after, within the same Switch, Pop, or transition step, so no frame or OnFrame callback runs in between. State that View's nodes read every frame should therefore be created in View or on the Manager's parent scope rather than under Enter's cx.\n\tView func(cx *core.Scope) core.Node\n\t// Enter runs once when the scene becomes active, with a child Scope owned by the Manager.\n\t// Loops, signals, effects, timers, and cleanups created under cx are automatically disposed when the scene exits.\n\tEnter func(cx *core.Scope)\n\t// Exit runs once when the scene leaves the Manager (by Switch, Pop, or disposing the Manager's Scope).\n\tExit func()\n\t// Pause runs when another scene is pushed on top of this scene.\n\tPause func()\n\t// Resume runs when the scene on top of this scene is popped.\n\tResume func()\n\t// Update advances the scene by one fixed step dt while it is the active top scene.\n\tUpdate func(dt time.Duration)\n\t// Draw records the scene's frame into d; alpha is the interpolation fraction in [0, 1).\n\tDraw func(d *core.Drawing, alpha float64)\n}",
          "doc": "Controller defines a managed scene's lifecycle, update, view, and draw hooks.\n\nAll fields are optional. When View is set, Manager.View mounts the returned node (such as a 3D gpu.View, an Overlay3D.View, or a native UI tree) in the scene's view scope and unmounts it when the scene exits. When View is nil, Manager.View renders the scene through a 2D core.Canvas using Draw or Scene. When Draw is nil and Scene is non-nil, Manager draws Scene automatically; when Update is nil and Scene is non-nil, Manager updates Scene automatically.\n",
          "file": "pkg/scene/manager.go",
          "line": 13,
          "members": [
            {
              "name": "Scene",
              "anchor": "Controller.Scene",
              "kind": "field",
              "doc": "Scene is an optional Scene drawn and updated when Draw or Update is nil, and targeted by Manager.DispatchPress and Manager.DispatchTouch."
            },
            {
              "name": "Transparent",
              "anchor": "Controller.Transparent",
              "kind": "field",
              "doc": "Transparent, when true on a pushed overlay scene, lets Manager.Draw and Manager.View also show the underlying scene(s) first."
            },
            {
              "name": "View",
              "anchor": "Controller.View",
              "kind": "field",
              "doc": "View optionally builds a native NSGo view tree for this scene, such as a 3D gpu.View or Overlay3D.View, when Manager.View mounts the scene.\n\nIts cx is the mounted row's scope, not the child scope Enter receives: when the scene leaves the Manager, Exit runs and Enter's scope is disposed first, and the row (with everything created under View's cx) is unmounted right after, within the same Switch, Pop, or transition step, so no frame or OnFrame callback runs in between. State that View's nodes read every frame should therefore be created in View or on the Manager's parent scope rather than under Enter's cx."
            },
            {
              "name": "Enter",
              "anchor": "Controller.Enter",
              "kind": "field",
              "doc": "Enter runs once when the scene becomes active, with a child Scope owned by the Manager.\nLoops, signals, effects, timers, and cleanups created under cx are automatically disposed when the scene exits."
            },
            {
              "name": "Exit",
              "anchor": "Controller.Exit",
              "kind": "field",
              "doc": "Exit runs once when the scene leaves the Manager (by Switch, Pop, or disposing the Manager's Scope)."
            },
            {
              "name": "Pause",
              "anchor": "Controller.Pause",
              "kind": "field",
              "doc": "Pause runs when another scene is pushed on top of this scene."
            },
            {
              "name": "Resume",
              "anchor": "Controller.Resume",
              "kind": "field",
              "doc": "Resume runs when the scene on top of this scene is popped."
            },
            {
              "name": "Update",
              "anchor": "Controller.Update",
              "kind": "field",
              "doc": "Update advances the scene by one fixed step dt while it is the active top scene."
            },
            {
              "name": "Draw",
              "anchor": "Controller.Draw",
              "kind": "field",
              "doc": "Draw records the scene's frame into d; alpha is the interpolation fraction in [0, 1)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Direction",
          "anchor": "Direction",
          "decl": "type Direction uint8",
          "doc": "Direction is the travel direction of a Wipe transition's dividing edge.\n",
          "file": "pkg/scene/transition.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "DirectionLeft",
                  "anchor": "DirectionLeft"
                },
                {
                  "name": "DirectionRight",
                  "anchor": "DirectionRight"
                },
                {
                  "name": "DirectionUp",
                  "anchor": "DirectionUp"
                },
                {
                  "name": "DirectionDown",
                  "anchor": "DirectionDown"
                }
              ],
              "decl": "const (\n\t// DirectionLeft sweeps the dividing edge from right to left, revealing the new scene on the right.\n\tDirectionLeft Direction = iota\n\t// DirectionRight sweeps the dividing edge from left to right, revealing the new scene on the left.\n\tDirectionRight\n\t// DirectionUp sweeps the dividing edge from bottom to top, revealing the new scene on the bottom.\n\tDirectionUp\n\t// DirectionDown sweeps the dividing edge from top to bottom, revealing the new scene on the top.\n\tDirectionDown\n)",
              "doc": "",
              "file": "pkg/scene/transition.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Drawable",
          "anchor": "Drawable",
          "decl": "type Drawable struct {\n\t// Draw records custom drawing operations into d, running between Save and Restore.\n\tDraw func(d *core.Drawing)\n\t// Update advances custom state by one fixed step dt when Scene.Update runs.\n\tUpdate func(dt time.Duration)\n\t// Hit reports whether a point in the layer's coordinate space hits this drawable.\n\tHit func(p core.Point) bool\n\t// OnPress runs when Scene.DispatchPress hits this drawable as the topmost target.\n\tOnPress func(hit HitResult, ev core.PressEvent)\n\t// OnTouch runs when Scene.DispatchTouch hits this drawable as the topmost target.\n\tOnTouch func(hit HitResult, ev core.TouchEvent)\n\t// Z orders the drawable relative to other items in its layer: a higher Z draws over a lower one.\n\tZ int\n\t// Y is the vertical baseline coordinate used when its Layer's DepthSort is SortY (unless overridden by Layer.SortKey).\n\tY float32\n\t// Visible controls whether the drawable is drawn and hit-tested.\n\tVisible bool\n}",
          "doc": "Drawable is a custom layer item with optional draw, update, hit-test, and input callbacks.\n\nIts zero value is hidden (Visible is false); NewDrawable returns a visible Drawable.\n",
          "file": "pkg/scene/scene.go",
          "line": 27,
          "members": [
            {
              "name": "Draw",
              "anchor": "Drawable.Draw",
              "kind": "field",
              "doc": "Draw records custom drawing operations into d, running between Save and Restore."
            },
            {
              "name": "Update",
              "anchor": "Drawable.Update",
              "kind": "field",
              "doc": "Update advances custom state by one fixed step dt when Scene.Update runs."
            },
            {
              "name": "Hit",
              "anchor": "Drawable.Hit",
              "kind": "field",
              "doc": "Hit reports whether a point in the layer's coordinate space hits this drawable."
            },
            {
              "name": "OnPress",
              "anchor": "Drawable.OnPress",
              "kind": "field",
              "doc": "OnPress runs when Scene.DispatchPress hits this drawable as the topmost target."
            },
            {
              "name": "OnTouch",
              "anchor": "Drawable.OnTouch",
              "kind": "field",
              "doc": "OnTouch runs when Scene.DispatchTouch hits this drawable as the topmost target."
            },
            {
              "name": "Z",
              "anchor": "Drawable.Z",
              "kind": "field",
              "doc": "Z orders the drawable relative to other items in its layer: a higher Z draws over a lower one."
            },
            {
              "name": "Y",
              "anchor": "Drawable.Y",
              "kind": "field",
              "doc": "Y is the vertical baseline coordinate used when its Layer's DepthSort is SortY (unless overridden by Layer.SortKey)."
            },
            {
              "name": "Visible",
              "anchor": "Drawable.Visible",
              "kind": "field",
              "doc": "Visible controls whether the drawable is drawn and hit-tested."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDrawable",
              "anchor": "NewDrawable",
              "decl": "func NewDrawable(draw func(d *core.Drawing)) *Drawable",
              "doc": "NewDrawable returns a visible Drawable with draw as its Draw callback.\n",
              "file": "pkg/scene/scene.go",
              "line": 47
            }
          ],
          "methods": []
        },
        {
          "name": "HUD3D",
          "anchor": "HUD3D",
          "decl": "type HUD3D struct {\n\t// Children are native NSGo views mounted directly in the safe-area HUD\n\t// container in slice order.\n\tChildren []core.Node\n\t// Slots are anchored native NSGo HUD elements positioned inside the\n\t// safe-area HUD container after Children.\n\tSlots []HUDSlot\n\t// Padding adds extra inner margins around the HUD content on top of any\n\t// safe-area insets.\n\tPadding core.Edges\n\t// IgnoreSafeArea disables automatic core.EnvSafeArea padding when true.\n\t// By default (false), HUD content automatically respects platform\n\t// safe-area insets.\n\tIgnoreSafeArea bool\n\t// Hidden hides the HUD layer (DisplayNone and PointerEventsNone) when true,\n\t// forwarding all mouse and touch input to the 3D view underneath.\n\tHidden bool\n\t// Style optionally supplies additional layout styles for the inner HUD\n\t// container (for example Gap, Direction, AlignItems, JustifyContent, or\n\t// ZIndex on the outer overlay).\n\tStyle core.Style\n\t// TestID optionally sets core.View.TestID on the outer HUD overlay view.\n\tTestID string\n\t// Label optionally sets core.View.Label on the outer HUD overlay view.\n\tLabel string\n\t// contains filtered or unexported fields\n}",
          "doc": "HUD3D composes native NSGo views (such as ui.Button, ui.Card, ui.Badge,\nui.Progress, ui.Switch, and core.Text) over a 3D gpu.View.\n\nThe overlay layer uses core.PointerEventsBoxNone so interactive HUD controls\nreceive mouse and touch input directly while open regions pass mouse and\ntouch events straight through to the 3D view underneath. Safe-area insets\n(core.EnvSafeArea) are applied automatically by default so HUD controls stay\nclear of notches, status bars, and home indicators, and visibility can be\ntoggled reactively without remounting HUD subtrees.\n",
          "file": "pkg/scene/hud3d.go",
          "line": 90,
          "members": [
            {
              "name": "Children",
              "anchor": "HUD3D.Children",
              "kind": "field",
              "doc": "Children are native NSGo views mounted directly in the safe-area HUD\ncontainer in slice order."
            },
            {
              "name": "Slots",
              "anchor": "HUD3D.Slots",
              "kind": "field",
              "doc": "Slots are anchored native NSGo HUD elements positioned inside the\nsafe-area HUD container after Children."
            },
            {
              "name": "Padding",
              "anchor": "HUD3D.Padding",
              "kind": "field",
              "doc": "Padding adds extra inner margins around the HUD content on top of any\nsafe-area insets."
            },
            {
              "name": "IgnoreSafeArea",
              "anchor": "HUD3D.IgnoreSafeArea",
              "kind": "field",
              "doc": "IgnoreSafeArea disables automatic core.EnvSafeArea padding when true.\nBy default (false), HUD content automatically respects platform\nsafe-area insets."
            },
            {
              "name": "Hidden",
              "anchor": "HUD3D.Hidden",
              "kind": "field",
              "doc": "Hidden hides the HUD layer (DisplayNone and PointerEventsNone) when true,\nforwarding all mouse and touch input to the 3D view underneath."
            },
            {
              "name": "Style",
              "anchor": "HUD3D.Style",
              "kind": "field",
              "doc": "Style optionally supplies additional layout styles for the inner HUD\ncontainer (for example Gap, Direction, AlignItems, JustifyContent, or\nZIndex on the outer overlay)."
            },
            {
              "name": "TestID",
              "anchor": "HUD3D.TestID",
              "kind": "field",
              "doc": "TestID optionally sets core.View.TestID on the outer HUD overlay view."
            },
            {
              "name": "Label",
              "anchor": "HUD3D.Label",
              "kind": "field",
              "doc": "Label optionally sets core.View.Label on the outer HUD overlay view."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHUD3D",
              "anchor": "NewHUD3D",
              "decl": "func NewHUD3D(cx *core.Scope) *HUD3D",
              "doc": "NewHUD3D returns a visible HUD3D bound to cx with safe-area insets enabled.\nA nil cx defers reactive scope binding until Layer, View, or Wrap mounts the\nHUD in a scope.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 124
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "HUD3D.Add",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) Add(nodes ...core.Node)",
              "doc": "Add appends one or more native NSGo view nodes to h.Children. Nil nodes are\nignored.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 154
            },
            {
              "name": "AddAt",
              "anchor": "HUD3D.AddAt",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) AddAt(anchor HUDAnchor, node core.Node)",
              "doc": "AddAt appends node anchored at anchor inside the safe-area HUD frame.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 166
            },
            {
              "name": "AddPassThrough",
              "anchor": "HUD3D.AddPassThrough",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) AddPassThrough(anchor HUDAnchor, node core.Node)",
              "doc": "AddPassThrough appends a non-interactive decorative node anchored at anchor\nwith core.PointerEventsNone so all mouse and touch input passes straight\nthrough it to the 3D view underneath.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 179
            },
            {
              "name": "AddSlot",
              "anchor": "HUD3D.AddSlot",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) AddSlot(slot HUDSlot)",
              "doc": "AddSlot appends slot to h.Slots when slot.Node is non-nil.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 191
            },
            {
              "name": "Layer",
              "anchor": "HUD3D.Layer",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) Layer(cx *core.Scope) core.Node",
              "doc": "Layer returns the absolutely positioned, pass-through native HUD overlay node\ncovering its parent bounds. Mount it directly in gpu.ViewProps.Children,\nabove a 2D Overlay3D canvas, or compose it automatically via HUD3D.View or\nHUD3D.Wrap.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 268
            },
            {
              "name": "SafeAreaEnabled",
              "anchor": "HUD3D.SafeAreaEnabled",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) SafeAreaEnabled() bool",
              "doc": "SafeAreaEnabled reports whether automatic safe-area inset padding is enabled.\nWhen called inside a reactive binding, it subscribes to safe-area toggle\nchanges.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 254
            },
            {
              "name": "SetHidden",
              "anchor": "HUD3D.SetHidden",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) SetHidden(hidden bool)",
              "doc": "SetHidden hides or shows the HUD overlay reactively. While hidden, the HUD\nlayer uses core.DisplayNone and core.PointerEventsNone so all mouse and\ntouch events reach the 3D view underneath.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 201
            },
            {
              "name": "SetSafeArea",
              "anchor": "HUD3D.SetSafeArea",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) SetSafeArea(enabled bool)",
              "doc": "SetSafeArea enables or disables automatic core.EnvSafeArea inset padding on\nthe HUD overlay reactively.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 241
            },
            {
              "name": "SetVisible",
              "anchor": "HUD3D.SetVisible",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) SetVisible(visible bool)",
              "doc": "SetVisible shows or hides the HUD overlay reactively. It is the inverse of\nSetHidden.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 213
            },
            {
              "name": "Toggle",
              "anchor": "HUD3D.Toggle",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) Toggle() bool",
              "doc": "Toggle flips HUD visibility and returns the new Visible state.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 230
            },
            {
              "name": "View",
              "anchor": "HUD3D.View",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) View(cx *core.Scope, props gpu.ViewProps) core.Node",
              "doc": "View returns a gpu.View configured by props with h's native HUD layer\nmounted on top of the 3D GPU surface (and above any existing props.Children\nsuch as a 2D overlay canvas).\n",
              "file": "pkg/scene/hud3d.go",
              "line": 366
            },
            {
              "name": "Visible",
              "anchor": "HUD3D.Visible",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) Visible() bool",
              "doc": "Visible reports whether the HUD overlay is currently visible. When called\ninside a reactive binding or StyleFunc, it subscribes to visibility changes.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 219
            },
            {
              "name": "Wrap",
              "anchor": "HUD3D.Wrap",
              "recv": "*HUD3D",
              "decl": "func (h *HUD3D) Wrap(cx *core.Scope, view3D core.Node) core.Node",
              "doc": "Wrap composes view3D and h's native HUD layer as siblings in a Z-stack\ncore.View, placing the HUD above view3D.\n\nUse Wrap when view3D is already constructed (for example a gpu.View wrapped\nin an interactive core.View that handles OnMouseDown, OnMouseMove, and\nOnTouch for 3D camera orbit or picking) so touches and hovers on HUD controls\nnever bubble into view3D while open HUD regions pass all mouse and touch\nevents through to view3D.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 386
            }
          ]
        },
        {
          "name": "HUDAnchor",
          "anchor": "HUDAnchor",
          "decl": "type HUDAnchor uint8",
          "doc": "HUDAnchor names a region inside a HUD3D safe-area frame where a HUDSlot is placed.\n",
          "file": "pkg/scene/hud3d.go",
          "line": 9,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "HUDFull",
                  "anchor": "HUDFull"
                },
                {
                  "name": "HUDTopLeft",
                  "anchor": "HUDTopLeft"
                },
                {
                  "name": "HUDTopCenter",
                  "anchor": "HUDTopCenter"
                },
                {
                  "name": "HUDTopRight",
                  "anchor": "HUDTopRight"
                },
                {
                  "name": "HUDCenterLeft",
                  "anchor": "HUDCenterLeft"
                },
                {
                  "name": "HUDCenter",
                  "anchor": "HUDCenter"
                },
                {
                  "name": "HUDCenterRight",
                  "anchor": "HUDCenterRight"
                },
                {
                  "name": "HUDBottomLeft",
                  "anchor": "HUDBottomLeft"
                },
                {
                  "name": "HUDBottomCenter",
                  "anchor": "HUDBottomCenter"
                },
                {
                  "name": "HUDBottomRight",
                  "anchor": "HUDBottomRight"
                }
              ],
              "decl": "const (\n\t// HUDFull stretches across the full HUD area inside safe-area insets and\n\t// padding while passing open regions through to the 3D view underneath.\n\tHUDFull HUDAnchor = iota\n\t// HUDTopLeft anchors content to the top-left corner.\n\tHUDTopLeft\n\t// HUDTopCenter anchors content horizontally centered along the top edge.\n\tHUDTopCenter\n\t// HUDTopRight anchors content to the top-right corner.\n\tHUDTopRight\n\t// HUDCenterLeft anchors content vertically centered along the left edge.\n\tHUDCenterLeft\n\t// HUDCenter anchors content centered both horizontally and vertically.\n\tHUDCenter\n\t// HUDCenterRight anchors content vertically centered along the right edge.\n\tHUDCenterRight\n\t// HUDBottomLeft anchors content to the bottom-left corner.\n\tHUDBottomLeft\n\t// HUDBottomCenter anchors content horizontally centered along the bottom edge.\n\tHUDBottomCenter\n\t// HUDBottomRight anchors content to the bottom-right corner.\n\tHUDBottomRight\n)",
              "doc": "",
              "file": "pkg/scene/hud3d.go",
              "line": 11
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "HUDAnchor.String",
              "recv": "HUDAnchor",
              "decl": "func (a HUDAnchor) String() string",
              "doc": "String returns the anchor's name.\n",
              "file": "pkg/scene/hud3d.go",
              "line": 36
            }
          ]
        },
        {
          "name": "HUDSlot",
          "anchor": "HUDSlot",
          "decl": "type HUDSlot struct {\n\t// Anchor chooses where the slot sits inside the safe-area HUD frame.\n\t// Its zero value is HUDFull.\n\tAnchor HUDAnchor\n\t// Node is the native NSGo view rendered in this slot.\n\tNode core.Node\n\t// PassThrough sets core.PointerEventsNone on the slot so mouse clicks,\n\t// drags, and touches pass straight through decorative HUD elements (such\n\t// as crosshairs or status readouts) to the 3D view underneath.\n\tPassThrough bool\n\t// Padding optionally insets the slot's content from its anchor edges.\n\tPadding core.Edges\n\t// TestID optionally sets core.View.TestID on the slot's anchor wrapper.\n\tTestID string\n}",
          "doc": "HUDSlot places one native NSGo view subtree (such as ui.Button, ui.Card,\nui.Badge, ui.Progress, or core.View) inside a HUD3D overlay.\n",
          "file": "pkg/scene/hud3d.go",
          "line": 65,
          "members": [
            {
              "name": "Anchor",
              "anchor": "HUDSlot.Anchor",
              "kind": "field",
              "doc": "Anchor chooses where the slot sits inside the safe-area HUD frame.\nIts zero value is HUDFull."
            },
            {
              "name": "Node",
              "anchor": "HUDSlot.Node",
              "kind": "field",
              "doc": "Node is the native NSGo view rendered in this slot."
            },
            {
              "name": "PassThrough",
              "anchor": "HUDSlot.PassThrough",
              "kind": "field",
              "doc": "PassThrough sets core.PointerEventsNone on the slot so mouse clicks,\ndrags, and touches pass straight through decorative HUD elements (such\nas crosshairs or status readouts) to the 3D view underneath."
            },
            {
              "name": "Padding",
              "anchor": "HUDSlot.Padding",
              "kind": "field",
              "doc": "Padding optionally insets the slot's content from its anchor edges."
            },
            {
              "name": "TestID",
              "anchor": "HUDSlot.TestID",
              "kind": "field",
              "doc": "TestID optionally sets core.View.TestID on the slot's anchor wrapper."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HitFunc",
          "anchor": "HitFunc",
          "decl": "type HitFunc func(p core.Point) bool",
          "doc": "HitFunc reports whether p (in the layer's coordinate space: world space for SpaceWorld, view space for SpaceScreen) hits a target.\n",
          "file": "pkg/scene/hit.go",
          "line": 13,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CircleHit",
              "anchor": "CircleHit",
              "decl": "func CircleHit(center core.Point, radius float32) HitFunc",
              "doc": "CircleHit returns a HitFunc that hits points within radius of center (inclusive).\n",
              "file": "pkg/scene/hit.go",
              "line": 65
            },
            {
              "name": "PolygonHit",
              "anchor": "PolygonHit",
              "decl": "func PolygonHit(vertices ...core.Point) HitFunc",
              "doc": "PolygonHit returns a HitFunc that tests whether a point lies inside or on the boundary of the polygon formed by vertices.\n",
              "file": "pkg/scene/hit.go",
              "line": 94
            },
            {
              "name": "RectHit",
              "anchor": "RectHit",
              "decl": "func RectHit(bounds core.Bounds) HitFunc",
              "doc": "RectHit returns a HitFunc that hits points inside bounds (inclusive of edges).\n",
              "file": "pkg/scene/hit.go",
              "line": 79
            },
            {
              "name": "SpriteLocalHit",
              "anchor": "SpriteLocalHit",
              "decl": "func SpriteLocalHit(s *sprite.Sprite, local HitFunc) HitFunc",
              "doc": "SpriteLocalHit returns a HitFunc that transforms each tested point into s's untrimmed local frame space before evaluating local.\n",
              "file": "pkg/scene/hit.go",
              "line": 202
            }
          ],
          "methods": []
        },
        {
          "name": "HitOptions",
          "anchor": "HitOptions",
          "decl": "type HitOptions struct {\n\t// Hit overrides the sprite's default transformed untrimmed bounds when non-nil.\n\tHit HitFunc\n\t// OnPress runs when Scene.DispatchPress hits this sprite as the topmost target.\n\tOnPress func(hit HitResult, ev core.PressEvent)\n\t// OnTouch runs when Scene.DispatchTouch hits this sprite as the topmost target.\n\tOnTouch func(hit HitResult, ev core.TouchEvent)\n\t// Ignore excludes the sprite from hit testing when true.\n\tIgnore bool\n}",
          "doc": "HitOptions configures custom hit testing and press/touch callbacks for a sprite in a Scene.\n",
          "file": "pkg/scene/hit.go",
          "line": 16,
          "members": [
            {
              "name": "Hit",
              "anchor": "HitOptions.Hit",
              "kind": "field",
              "doc": "Hit overrides the sprite's default transformed untrimmed bounds when non-nil."
            },
            {
              "name": "OnPress",
              "anchor": "HitOptions.OnPress",
              "kind": "field",
              "doc": "OnPress runs when Scene.DispatchPress hits this sprite as the topmost target."
            },
            {
              "name": "OnTouch",
              "anchor": "HitOptions.OnTouch",
              "kind": "field",
              "doc": "OnTouch runs when Scene.DispatchTouch hits this sprite as the topmost target."
            },
            {
              "name": "Ignore",
              "anchor": "HitOptions.Ignore",
              "kind": "field",
              "doc": "Ignore excludes the sprite from hit testing when true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HitResult",
          "anchor": "HitResult",
          "decl": "type HitResult struct {\n\t// Layer is the layer containing the hit target.\n\tLayer *Layer\n\t// Space is the layer's coordinate space (SpaceWorld or SpaceScreen).\n\tSpace Space\n\t// Point is the tested point in the layer's coordinate space: world coordinates for SpaceWorld, view coordinates for SpaceScreen.\n\tPoint core.Point\n\t// ViewPoint is the original tested point in view coordinates.\n\tViewPoint core.Point\n\t// Sprite is non-nil when the hit target is a sprite inside a Batch.\n\tSprite *sprite.Sprite\n\t// Batch is the sprite's batch when Sprite is non-nil.\n\tBatch *sprite.Batch\n\t// Drawable is non-nil when the hit target is a custom Drawable.\n\tDrawable *Drawable\n}",
          "doc": "HitResult describes one target hit by a view-space point.\n",
          "file": "pkg/scene/hit.go",
          "line": 28,
          "members": [
            {
              "name": "Layer",
              "anchor": "HitResult.Layer",
              "kind": "field",
              "doc": "Layer is the layer containing the hit target."
            },
            {
              "name": "Space",
              "anchor": "HitResult.Space",
              "kind": "field",
              "doc": "Space is the layer's coordinate space (SpaceWorld or SpaceScreen)."
            },
            {
              "name": "Point",
              "anchor": "HitResult.Point",
              "kind": "field",
              "doc": "Point is the tested point in the layer's coordinate space: world coordinates for SpaceWorld, view coordinates for SpaceScreen."
            },
            {
              "name": "ViewPoint",
              "anchor": "HitResult.ViewPoint",
              "kind": "field",
              "doc": "ViewPoint is the original tested point in view coordinates."
            },
            {
              "name": "Sprite",
              "anchor": "HitResult.Sprite",
              "kind": "field",
              "doc": "Sprite is non-nil when the hit target is a sprite inside a Batch."
            },
            {
              "name": "Batch",
              "anchor": "HitResult.Batch",
              "kind": "field",
              "doc": "Batch is the sprite's batch when Sprite is non-nil."
            },
            {
              "name": "Drawable",
              "anchor": "HitResult.Drawable",
              "kind": "field",
              "doc": "Drawable is non-nil when the hit target is a custom Drawable."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HostOptions",
          "anchor": "HostOptions",
          "decl": "type HostOptions struct {\n\t// Class sets Tailwind CSS classes on the outer host container view.\n\tClass string\n\t// Style sets layout and appearance on the outer host container view. When Width or Height are unset, the missing dimension defaults to 100%. When Position is unset, it defaults to core.Relative.\n\tStyle core.Style\n\t// StyleFunc optionally supplies reactive styles for the outer host container view.\n\tStyleFunc func() core.Style\n\t// Ref optionally attaches a core.Ref to the persistent interactive stage view (where Manager.Actions is attached). Call Ref.Focus once the host is mounted so focused key input reaches Manager.Actions; the stage persists across 2D and 3D scene switches, so focus and pointer lock survive them.\n\tRef *core.Ref\n\t// TestID optionally sets core.View.TestID on the outer host container view.\n\tTestID string\n\t// StageTestID optionally sets core.View.TestID on the inner stage view that receives attached input events and hosts mounted scenes.\n\tStageTestID string\n\t// TransitionTestID optionally sets core.View.TestID on the top transition overlay canvas.\n\tTransitionTestID string\n\t// Label optionally sets core.View.Label on the outer host container view.\n\tLabel string\n\t// OnLayout optionally receives layout bounds changes of the outer host view.\n\tOnLayout func(core.Bounds)\n\t// Alpha optionally returns the interpolation fraction in [0, 1) for 2D scene redraws. Reading a reactive signal inside Alpha (such as a loop tick or interpolation signal) redraws mounted 2D canvases on every loop frame without causing mounted 3D gpu.View scenes to rebuild or commit.\n\tAlpha func() float64\n\t// Viewport optionally scales and clips 2D scenes rendered by the host through screen.Viewport. Transparent pushed 2D overlays treat a zero BarColor as core.Transparent so underlying 3D views remain visible in margin areas.\n\tViewport *screen.Viewport\n\t// Children are optional persistent native views (such as a global HUD, audio controls, or debug overlay) mounted above all scenes and transitions.\n\tChildren []core.Node\n}",
          "doc": "HostOptions configures the reactive view host returned by Manager.View.\n",
          "file": "pkg/scene/view_switch.go",
          "line": 9,
          "members": [
            {
              "name": "Class",
              "anchor": "HostOptions.Class",
              "kind": "field",
              "doc": "Class sets Tailwind CSS classes on the outer host container view."
            },
            {
              "name": "Style",
              "anchor": "HostOptions.Style",
              "kind": "field",
              "doc": "Style sets layout and appearance on the outer host container view. When Width or Height are unset, the missing dimension defaults to 100%. When Position is unset, it defaults to core.Relative."
            },
            {
              "name": "StyleFunc",
              "anchor": "HostOptions.StyleFunc",
              "kind": "field",
              "doc": "StyleFunc optionally supplies reactive styles for the outer host container view."
            },
            {
              "name": "Ref",
              "anchor": "HostOptions.Ref",
              "kind": "field",
              "doc": "Ref optionally attaches a core.Ref to the persistent interactive stage view (where Manager.Actions is attached). Call Ref.Focus once the host is mounted so focused key input reaches Manager.Actions; the stage persists across 2D and 3D scene switches, so focus and pointer lock survive them."
            },
            {
              "name": "TestID",
              "anchor": "HostOptions.TestID",
              "kind": "field",
              "doc": "TestID optionally sets core.View.TestID on the outer host container view."
            },
            {
              "name": "StageTestID",
              "anchor": "HostOptions.StageTestID",
              "kind": "field",
              "doc": "StageTestID optionally sets core.View.TestID on the inner stage view that receives attached input events and hosts mounted scenes."
            },
            {
              "name": "TransitionTestID",
              "anchor": "HostOptions.TransitionTestID",
              "kind": "field",
              "doc": "TransitionTestID optionally sets core.View.TestID on the top transition overlay canvas."
            },
            {
              "name": "Label",
              "anchor": "HostOptions.Label",
              "kind": "field",
              "doc": "Label optionally sets core.View.Label on the outer host container view."
            },
            {
              "name": "OnLayout",
              "anchor": "HostOptions.OnLayout",
              "kind": "field",
              "doc": "OnLayout optionally receives layout bounds changes of the outer host view."
            },
            {
              "name": "Alpha",
              "anchor": "HostOptions.Alpha",
              "kind": "field",
              "doc": "Alpha optionally returns the interpolation fraction in [0, 1) for 2D scene redraws. Reading a reactive signal inside Alpha (such as a loop tick or interpolation signal) redraws mounted 2D canvases on every loop frame without causing mounted 3D gpu.View scenes to rebuild or commit."
            },
            {
              "name": "Viewport",
              "anchor": "HostOptions.Viewport",
              "kind": "field",
              "doc": "Viewport optionally scales and clips 2D scenes rendered by the host through screen.Viewport. Transparent pushed 2D overlays treat a zero BarColor as core.Transparent so underlying 3D views remain visible in margin areas."
            },
            {
              "name": "Children",
              "anchor": "HostOptions.Children",
              "kind": "field",
              "doc": "Children are optional persistent native views (such as a global HUD, audio controls, or debug overlay) mounted above all scenes and transitions."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Item",
          "anchor": "Item",
          "decl": "type Item struct {\n\tBatch     *sprite.Batch\n\tTilemap   *tilemap.Tilemap\n\tTileLayer *tilemap.TileLayer\n\tDrawable  *Drawable\n\tZ         int\n}",
          "doc": "Item is one entry in a Layer: a sprite batch, a tilemap (or single tile layer), or a custom Drawable.\n\nZ orders items within their layer (lowest first, ties keeping slice order). For a Drawable, a zero Item.Z falls back to Drawable.Z so changing Drawable.Z takes effect immediately.\nWhen Tilemap and TileLayer are both set, only TileLayer is drawn instead of the entire Tilemap.\n",
          "file": "pkg/scene/scene.go",
          "line": 55,
          "members": [
            {
              "name": "Batch",
              "anchor": "Item.Batch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tilemap",
              "anchor": "Item.Tilemap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayer",
              "anchor": "Item.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Drawable",
              "anchor": "Item.Drawable",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Item.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Layer",
          "anchor": "Layer",
          "decl": "type Layer struct {\n\t// Name identifies the layer for Scene.Layer lookups.\n\tName string\n\t// Space selects whether the layer draws under Scene.Camera (SpaceWorld) or directly in view space (SpaceScreen).\n\tSpace Space\n\t// Visible controls whether the layer is drawn and hit-tested.\n\tVisible bool\n\t// Order sorts layers in a Scene: a higher Order draws over a lower one, ties keeping the Scene.Layers slice order.\n\tOrder int\n\t// Items are the batches, tilemaps, and custom drawables in the layer.\n\tItems []Item\n\n\t// ParallaxX and ParallaxY scale how fast a SpaceWorld layer scrolls relative to Scene.Camera.\n\t// On a struct literal without SetParallax/NewLayer/NewParallaxLayer, zero values default to 1.0.\n\tParallaxX, ParallaxY float32\n\t// OffsetX and OffsetY shift the layer's content in layer coordinates.\n\tOffsetX, OffsetY float32\n\t// RepeatX and RepeatY tile a SpaceWorld layer seamlessly across the camera's visible region using RepeatWidth and RepeatHeight as periods.\n\tRepeatX, RepeatY bool\n\t// RepeatWidth and RepeatHeight are the horizontal and vertical repeat periods in layer points when RepeatX / RepeatY are enabled.\n\tRepeatWidth, RepeatHeight float32\n\n\t// DepthSort controls how items and sprites within the layer are depth-sorted during Draw and HitTest.\n\tDepthSort SortMode\n\t// SortKey optionally supplies a custom depth key for items in SortY (or SortCustom when SortFunc is nil).\n\tSortKey func(Item) float32\n\t// SpriteSortKey optionally supplies a custom depth key for sprites in SortY (after Sprite.Z) or SortCustom.\n\tSpriteSortKey func(*sprite.Sprite) float32\n\t// SortFunc supplies a custom item comparator when DepthSort is SortCustom.\n\tSortFunc func(a, b Item) int\n\t// contains filtered or unexported fields\n}",
          "doc": "Layer holds an ordered list of items drawn in either world or screen space.\n\nIts zero value is hidden (Visible is false); NewLayer returns a visible Layer.\n",
          "file": "pkg/scene/scene.go",
          "line": 73,
          "members": [
            {
              "name": "Name",
              "anchor": "Layer.Name",
              "kind": "field",
              "doc": "Name identifies the layer for Scene.Layer lookups."
            },
            {
              "name": "Space",
              "anchor": "Layer.Space",
              "kind": "field",
              "doc": "Space selects whether the layer draws under Scene.Camera (SpaceWorld) or directly in view space (SpaceScreen)."
            },
            {
              "name": "Visible",
              "anchor": "Layer.Visible",
              "kind": "field",
              "doc": "Visible controls whether the layer is drawn and hit-tested."
            },
            {
              "name": "Order",
              "anchor": "Layer.Order",
              "kind": "field",
              "doc": "Order sorts layers in a Scene: a higher Order draws over a lower one, ties keeping the Scene.Layers slice order."
            },
            {
              "name": "Items",
              "anchor": "Layer.Items",
              "kind": "field",
              "doc": "Items are the batches, tilemaps, and custom drawables in the layer."
            },
            {
              "name": "ParallaxX",
              "anchor": "Layer.ParallaxX",
              "kind": "field",
              "doc": "ParallaxX and ParallaxY scale how fast a SpaceWorld layer scrolls relative to Scene.Camera.\nOn a struct literal without SetParallax/NewLayer/NewParallaxLayer, zero values default to 1.0."
            },
            {
              "name": "ParallaxY",
              "anchor": "Layer.ParallaxY",
              "kind": "field",
              "doc": "ParallaxX and ParallaxY scale how fast a SpaceWorld layer scrolls relative to Scene.Camera.\nOn a struct literal without SetParallax/NewLayer/NewParallaxLayer, zero values default to 1.0."
            },
            {
              "name": "OffsetX",
              "anchor": "Layer.OffsetX",
              "kind": "field",
              "doc": "OffsetX and OffsetY shift the layer's content in layer coordinates."
            },
            {
              "name": "OffsetY",
              "anchor": "Layer.OffsetY",
              "kind": "field",
              "doc": "OffsetX and OffsetY shift the layer's content in layer coordinates."
            },
            {
              "name": "RepeatX",
              "anchor": "Layer.RepeatX",
              "kind": "field",
              "doc": "RepeatX and RepeatY tile a SpaceWorld layer seamlessly across the camera's visible region using RepeatWidth and RepeatHeight as periods."
            },
            {
              "name": "RepeatY",
              "anchor": "Layer.RepeatY",
              "kind": "field",
              "doc": "RepeatX and RepeatY tile a SpaceWorld layer seamlessly across the camera's visible region using RepeatWidth and RepeatHeight as periods."
            },
            {
              "name": "RepeatWidth",
              "anchor": "Layer.RepeatWidth",
              "kind": "field",
              "doc": "RepeatWidth and RepeatHeight are the horizontal and vertical repeat periods in layer points when RepeatX / RepeatY are enabled."
            },
            {
              "name": "RepeatHeight",
              "anchor": "Layer.RepeatHeight",
              "kind": "field",
              "doc": "RepeatWidth and RepeatHeight are the horizontal and vertical repeat periods in layer points when RepeatX / RepeatY are enabled."
            },
            {
              "name": "DepthSort",
              "anchor": "Layer.DepthSort",
              "kind": "field",
              "doc": "DepthSort controls how items and sprites within the layer are depth-sorted during Draw and HitTest."
            },
            {
              "name": "SortKey",
              "anchor": "Layer.SortKey",
              "kind": "field",
              "doc": "SortKey optionally supplies a custom depth key for items in SortY (or SortCustom when SortFunc is nil)."
            },
            {
              "name": "SpriteSortKey",
              "anchor": "Layer.SpriteSortKey",
              "kind": "field",
              "doc": "SpriteSortKey optionally supplies a custom depth key for sprites in SortY (after Sprite.Z) or SortCustom."
            },
            {
              "name": "SortFunc",
              "anchor": "Layer.SortFunc",
              "kind": "field",
              "doc": "SortFunc supplies a custom item comparator when DepthSort is SortCustom."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewLayer",
              "anchor": "NewLayer",
              "decl": "func NewLayer(name string, space Space, order int) *Layer",
              "doc": "NewLayer returns a visible Layer with the given name, coordinate space, and draw order.\n",
              "file": "pkg/scene/scene.go",
              "line": 114
            },
            {
              "name": "NewParallaxLayer",
              "anchor": "NewParallaxLayer",
              "decl": "func NewParallaxLayer(name string, order int, parallaxX, parallaxY float32) *Layer",
              "doc": "NewParallaxLayer returns a visible SpaceWorld Layer with the given draw order and parallax scroll factors.\n\nFactors of 0 keep the layer fixed against camera translation, 0.5 scrolls at half the camera's speed, 1.0 matches the world camera, and values greater than 1.0 scroll faster for foreground layers.\n",
              "file": "pkg/scene/parallax.go",
              "line": 13
            }
          ],
          "methods": [
            {
              "name": "AddBatch",
              "anchor": "Layer.AddBatch",
              "recv": "*Layer",
              "decl": "func (l *Layer) AddBatch(b *sprite.Batch)",
              "doc": "AddBatch appends a sprite batch to the layer.\n",
              "file": "pkg/scene/scene.go",
              "line": 127
            },
            {
              "name": "AddDrawable",
              "anchor": "Layer.AddDrawable",
              "recv": "*Layer",
              "decl": "func (l *Layer) AddDrawable(d *Drawable)",
              "doc": "AddDrawable appends a custom Drawable to the layer.\n",
              "file": "pkg/scene/scene.go",
              "line": 152
            },
            {
              "name": "AddItem",
              "anchor": "Layer.AddItem",
              "recv": "*Layer",
              "decl": "func (l *Layer) AddItem(item Item)",
              "doc": "AddItem appends an explicit Item to the layer.\n",
              "file": "pkg/scene/scene.go",
              "line": 160
            },
            {
              "name": "AddTileLayer",
              "anchor": "Layer.AddTileLayer",
              "recv": "*Layer",
              "decl": "func (l *Layer) AddTileLayer(m *tilemap.Tilemap, layer *tilemap.TileLayer)",
              "doc": "AddTileLayer appends a single TileLayer of m to the layer.\nWhen layer.YSort is true and the scene Layer uses SortY, its visible tiles join the layer's Y-sorted draw list.\n",
              "file": "pkg/scene/scene.go",
              "line": 144
            },
            {
              "name": "AddTilemap",
              "anchor": "Layer.AddTilemap",
              "recv": "*Layer",
              "decl": "func (l *Layer) AddTilemap(m *tilemap.Tilemap)",
              "doc": "AddTilemap appends a tilemap to the layer.\n",
              "file": "pkg/scene/scene.go",
              "line": 135
            },
            {
              "name": "Parallax",
              "anchor": "Layer.Parallax",
              "recv": "*Layer",
              "decl": "func (l *Layer) Parallax() (x, y float32)",
              "doc": "Parallax returns the layer's effective horizontal and vertical parallax scroll factors.\nUnset zero factors on a struct literal report 1, while factors set with NewLayer, NewParallaxLayer or SetParallax are returned verbatim.\n",
              "file": "pkg/scene/parallax.go",
              "line": 40
            },
            {
              "name": "SetParallax",
              "anchor": "Layer.SetParallax",
              "recv": "*Layer",
              "decl": "func (l *Layer) SetParallax(x, y float32) *Layer",
              "doc": "SetParallax sets the layer's horizontal and vertical parallax scroll factors and returns l.\n\nCalling SetParallax marks parallax factors as explicitly configured so zero factors lock an axis instead of defaulting to 1.\n",
              "file": "pkg/scene/parallax.go",
              "line": 28
            }
          ]
        },
        {
          "name": "Manager",
          "anchor": "Manager",
          "decl": "type Manager struct {\n\t// Actions is an optional input action map shared across all 2D and 3D scenes managed by this Manager.\n\t//\n\t// When non-nil, Manager.View attaches Actions to its persistent stage view so touch, mouse, pointer-lock, and focused key input survive scene switches without re-binding. Set Actions before calling Manager.View: the stage is wired once when View builds it, so assigning Actions afterwards attaches nothing. Key events reach the stage only while it holds focus (focus it through HostOptions.Ref); to read keys regardless of focus, also call Actions.WatchKeys on the Manager's scope. Switch, Push, and Pop call Actions.Reset() by default (unless KeepInputOnSwitch is true) so transient press edges and held keys do not leak into the newly active scene while bindings, axes, and pointer lock remain intact.\n\tActions *input.Actions\n\t// KeepInputOnSwitch, when true, skips calling Actions.Reset() on Switch, Push, and Pop so held keys and buttons stay continuously active across scene changes.\n\tKeepInputOnSwitch bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Manager owns a stack of scenes under a core.Scope, driving their lifecycle hooks, child-scope disposal, view mounting for 2D and 3D scenes, shared input, and animated transitions.\n\nAudio needs no Manager support to outlive a switch: a sound.Mixer created on the Manager's parent scope (the cx passed to NewManager, or an ancestor of it) is not disposed when scenes exit, so its music keeps playing and its SFX groups stay live while scenes reach it through their own closures. A Mixer created under a scene's Enter scope is disposed with that scene.\n",
          "file": "pkg/scene/manager.go",
          "line": 54,
          "members": [
            {
              "name": "Actions",
              "anchor": "Manager.Actions",
              "kind": "field",
              "doc": "Actions is an optional input action map shared across all 2D and 3D scenes managed by this Manager.\n\nWhen non-nil, Manager.View attaches Actions to its persistent stage view so touch, mouse, pointer-lock, and focused key input survive scene switches without re-binding. Set Actions before calling Manager.View: the stage is wired once when View builds it, so assigning Actions afterwards attaches nothing. Key events reach the stage only while it holds focus (focus it through HostOptions.Ref); to read keys regardless of focus, also call Actions.WatchKeys on the Manager's scope. Switch, Push, and Pop call Actions.Reset() by default (unless KeepInputOnSwitch is true) so transient press edges and held keys do not leak into the newly active scene while bindings, axes, and pointer lock remain intact."
            },
            {
              "name": "KeepInputOnSwitch",
              "anchor": "Manager.KeepInputOnSwitch",
              "kind": "field",
              "doc": "KeepInputOnSwitch, when true, skips calling Actions.Reset() on Switch, Push, and Pop so held keys and buttons stay continuously active across scene changes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewManager",
              "anchor": "NewManager",
              "decl": "func NewManager(cx *core.Scope) *Manager",
              "doc": "NewManager returns a Manager whose scenes run inside child scopes of cx.\nDisposing cx exits any active scenes and cancels any running transition.\n",
              "file": "pkg/scene/manager.go",
              "line": 72
            }
          ],
          "methods": [
            {
              "name": "Current",
              "anchor": "Manager.Current",
              "recv": "*Manager",
              "decl": "func (m *Manager) Current() *Controller",
              "doc": "Current returns the active scene at the top of the stack, or nil when empty.\n",
              "file": "pkg/scene/manager.go",
              "line": 287
            },
            {
              "name": "Depth",
              "anchor": "Manager.Depth",
              "recv": "*Manager",
              "decl": "func (m *Manager) Depth() int",
              "doc": "Depth returns the number of scenes currently on the stack.\n",
              "file": "pkg/scene/manager.go",
              "line": 295
            },
            {
              "name": "DispatchPress",
              "anchor": "Manager.DispatchPress",
              "recv": "*Manager",
              "decl": "func (m *Manager) DispatchPress(ev core.PressEvent) bool",
              "doc": "DispatchPress forwards ev to the active scene's Scene.DispatchPress when present.\n",
              "file": "pkg/scene/manager.go",
              "line": 393
            },
            {
              "name": "DispatchTouch",
              "anchor": "Manager.DispatchTouch",
              "recv": "*Manager",
              "decl": "func (m *Manager) DispatchTouch(ev core.TouchEvent) bool",
              "doc": "DispatchTouch forwards ev to the active scene's Scene.DispatchTouch when present.\n",
              "file": "pkg/scene/manager.go",
              "line": 402
            },
            {
              "name": "Draw",
              "anchor": "Manager.Draw",
              "recv": "*Manager",
              "decl": "func (m *Manager) Draw(d *core.Drawing, size core.Size, alpha float64)",
              "doc": "Draw draws the active scene (or active transition) into d for a canvas of size.\n\nReading from Draw inside a core.Canvas subscribes the canvas to scene changes and transition frames automatically.\n",
              "file": "pkg/scene/manager.go",
              "line": 350
            },
            {
              "name": "Invalidate",
              "anchor": "Manager.Invalidate",
              "recv": "*Manager",
              "decl": "func (m *Manager) Invalidate()",
              "doc": "Invalidate marks the manager's 2D canvases dirty so they redraw on the next frame without rebuilding or unmounting mounted 3D views.\n",
              "file": "pkg/scene/manager.go",
              "line": 173
            },
            {
              "name": "Pop",
              "anchor": "Manager.Pop",
              "recv": "*Manager",
              "decl": "func (m *Manager) Pop() *Controller",
              "doc": "Pop exits and disposes the top scene, resumes the underlying scene (if any), and returns the popped Controller (or nil if the stack was empty).\n",
              "file": "pkg/scene/manager.go",
              "line": 259
            },
            {
              "name": "Push",
              "anchor": "Manager.Push",
              "recv": "*Manager",
              "decl": "func (m *Manager) Push(next *Controller)",
              "doc": "Push pauses the current top scene (if any) and enters next on top of the stack in its own child Scope.\n",
              "file": "pkg/scene/manager.go",
              "line": 238
            },
            {
              "name": "Stack",
              "anchor": "Manager.Stack",
              "recv": "*Manager",
              "decl": "func (m *Manager) Stack() []*Controller",
              "doc": "Stack returns the active scene controllers from bottom to top of the stack, or nil when the stack is empty.\n",
              "file": "pkg/scene/manager.go",
              "line": 303
            },
            {
              "name": "Switch",
              "anchor": "Manager.Switch",
              "recv": "*Manager",
              "decl": "func (m *Manager) Switch(next *Controller, transition *Transition)",
              "doc": "Switch replaces the current scene stack with next.\n\nWhen transition is nil or has a non-positive Duration, the old scenes exit and dispose their child scopes immediately before next enters.\nWhen transition has a positive Duration, next enters immediately while the old scenes remain alive to render until the transition completes on the frame clock, at which point the old scenes exit and dispose their child scopes.\n",
              "file": "pkg/scene/manager.go",
              "line": 184
            },
            {
              "name": "TransitionProgress",
              "anchor": "Manager.TransitionProgress",
              "recv": "*Manager",
              "decl": "func (m *Manager) TransitionProgress() float64",
              "doc": "TransitionProgress returns the active transition's eased progress in [0, 1], or 1 when no transition is running.\n",
              "file": "pkg/scene/manager.go",
              "line": 320
            },
            {
              "name": "Transitioning",
              "anchor": "Manager.Transitioning",
              "recv": "*Manager",
              "decl": "func (m *Manager) Transitioning() bool",
              "doc": "Transitioning reports whether a Switch transition is currently running.\n",
              "file": "pkg/scene/manager.go",
              "line": 315
            },
            {
              "name": "Update",
              "anchor": "Manager.Update",
              "recv": "*Manager",
              "decl": "func (m *Manager) Update(dt time.Duration)",
              "doc": "Update advances the top active scene by dt.\n",
              "file": "pkg/scene/manager.go",
              "line": 328
            },
            {
              "name": "View",
              "anchor": "Manager.View",
              "recv": "*Manager",
              "decl": "func (m *Manager) View(opts HostOptions) core.Node",
              "doc": "View returns a reactive NSGo view host that mounts and switches between 2D canvas scenes (Controller.Draw / Controller.Scene) and 3D or native view scenes (Controller.View, such as gpu.View or Overlay3D.View).\n\nEach entered scene is keyed by a unique instance ID via core.Each so mounted views (including 3D gpu.View surfaces and GPU pipelines) stay alive across transition frames and across Push/Pop of 2D overlays, and unmount cleanly when the scene exits. The host owns no state of its own: everything it renders lives on the Manager, so it needs no scope beyond the one it is mounted in.\n\nWhen Manager.Actions is non-nil at the time View is called, View attaches it to the persistent stage view so touch, mouse, pointer-lock, and focused key input stay wired across 2D <-> 3D scene switches. Key events reach the stage only while it holds focus; focus it through HostOptions.Ref, or call Actions.WatchKeys to read keys regardless of focus.\n\nAcross a boundary involving a Controller.View scene:\n  - Fade(d, color) (non-transparent) fades the outgoing scene under a colored overlay canvas over the first half, reveals the incoming scene at the midpoint, and fades the overlay out over the second half.\n  - Crossfade(d) (or Fade(d, 0)) crossfades the outgoing and incoming scene wrappers' Opacity from 1->0 and 0->1.\n  - Wipe(d, dir) uses exact path clipping between 2D scenes and falls back to smooth crossfade opacity when a Controller.View scene is involved.\n  - CustomTransition, or a constructor's Transition whose Draw the caller replaced, runs Transition.Draw directly between 2D scenes, or switches visibility at the midpoint while drawing custom overlay effects on top when a Controller.View scene is involved.\n  - A Transition with a nil Draw shows the incoming scene for its whole Duration, as Manager.Draw does.\n",
              "file": "pkg/scene/view_switch.go",
              "line": 48
            }
          ]
        },
        {
          "name": "Overlay3D",
          "anchor": "Overlay3D",
          "decl": "type Overlay3D struct {\n\t// Scene is an optional Scene whose visible SpaceScreen layers draw over the\n\t// 3D view. SpaceWorld layers in Scene are skipped.\n\tScene *Scene\n\t// Layers are additional 2D layers drawn over the 3D view alongside Scene's\n\t// SpaceScreen layers, ordered together by stable ascending Layer.Order.\n\tLayers []*Layer\n\t// Batches are standalone sprite batches drawn over the layers in slice order.\n\tBatches []*sprite.Batch\n\t// Viewport optionally scales and clips the 2D overlay to a virtual\n\t// resolution using screen.Viewport. A zero BarColor defaults to transparent\n\t// so the 3D scene shows through letterbox and pillarbox margins.\n\tViewport *screen.Viewport\n\t// OnDraw optionally records additional 2D drawing operations after all\n\t// layers and batches, inside the active Viewport transform when set.\n\tOnDraw func(d *core.Drawing, size core.Size)\n\t// Hidden suppresses drawing and hit testing of the entire 2D overlay when true.\n\tHidden bool\n\t// Interactive, when true (or when OnPress is non-nil), enables pointer\n\t// events (core.PointerEventsAuto) on the overlay canvas. When false and\n\t// OnPress is nil, the canvas uses core.PointerEventsNone so pointer input\n\t// passes through to the 3D gpu.View beneath it.\n\tInteractive bool\n\t// OnPress handles presses on the overlay canvas when Interactive is true or\n\t// OnPress is non-nil. When Interactive is true and OnPress is nil, presses\n\t// are routed to DispatchPress automatically.\n\tOnPress func(ev core.PressEvent)\n\t// TestID optionally sets core.Canvas.TestID on the overlay canvas.\n\tTestID string\n\t// Label optionally sets core.Canvas.Label on the overlay canvas.\n\tLabel string\n\t// contains filtered or unexported fields\n}",
          "doc": "Overlay3D draws 2D screen-space layers, sprite batches, and custom draw\ncallbacks in a transparent core.Canvas stacked over a 3D gpu.View.\n\nItems draw in deterministic order on every redraw:\n 1. Visible SpaceScreen layers from Scene (SpaceWorld layers in Scene are\n    skipped because the 3D view supplies the world) merged with visible\n    Layers, sorted in stable ascending Layer.Order.\n 2. Batches in slice order.\n 3. OnDraw (when non-nil), receiving d and the active canvas or virtual size.\n\nWhen Viewport is non-nil, drawing scales and clips through screen.Viewport.\nA zero Viewport.BarColor is treated as core.Transparent so letterbox and\npillarbox margins reveal the 3D scene underneath; set Viewport.BarColor\nexplicitly (for example core.RGB(0x000000)) when opaque bars are desired.\n\nBy default the overlay canvas sets core.PointerEventsNone so pointer events\npass through unobstructed to the 3D gpu.View underneath. Set Interactive to\ntrue (or provide OnPress) to receive pointer events directly on the overlay\ncanvas instead.\n",
          "file": "pkg/scene/overlay3d.go",
          "line": 91,
          "members": [
            {
              "name": "Scene",
              "anchor": "Overlay3D.Scene",
              "kind": "field",
              "doc": "Scene is an optional Scene whose visible SpaceScreen layers draw over the\n3D view. SpaceWorld layers in Scene are skipped."
            },
            {
              "name": "Layers",
              "anchor": "Overlay3D.Layers",
              "kind": "field",
              "doc": "Layers are additional 2D layers drawn over the 3D view alongside Scene's\nSpaceScreen layers, ordered together by stable ascending Layer.Order."
            },
            {
              "name": "Batches",
              "anchor": "Overlay3D.Batches",
              "kind": "field",
              "doc": "Batches are standalone sprite batches drawn over the layers in slice order."
            },
            {
              "name": "Viewport",
              "anchor": "Overlay3D.Viewport",
              "kind": "field",
              "doc": "Viewport optionally scales and clips the 2D overlay to a virtual\nresolution using screen.Viewport. A zero BarColor defaults to transparent\nso the 3D scene shows through letterbox and pillarbox margins."
            },
            {
              "name": "OnDraw",
              "anchor": "Overlay3D.OnDraw",
              "kind": "field",
              "doc": "OnDraw optionally records additional 2D drawing operations after all\nlayers and batches, inside the active Viewport transform when set."
            },
            {
              "name": "Hidden",
              "anchor": "Overlay3D.Hidden",
              "kind": "field",
              "doc": "Hidden suppresses drawing and hit testing of the entire 2D overlay when true."
            },
            {
              "name": "Interactive",
              "anchor": "Overlay3D.Interactive",
              "kind": "field",
              "doc": "Interactive, when true (or when OnPress is non-nil), enables pointer\nevents (core.PointerEventsAuto) on the overlay canvas. When false and\nOnPress is nil, the canvas uses core.PointerEventsNone so pointer input\npasses through to the 3D gpu.View beneath it."
            },
            {
              "name": "OnPress",
              "anchor": "Overlay3D.OnPress",
              "kind": "field",
              "doc": "OnPress handles presses on the overlay canvas when Interactive is true or\nOnPress is non-nil. When Interactive is true and OnPress is nil, presses\nare routed to DispatchPress automatically."
            },
            {
              "name": "TestID",
              "anchor": "Overlay3D.TestID",
              "kind": "field",
              "doc": "TestID optionally sets core.Canvas.TestID on the overlay canvas."
            },
            {
              "name": "Label",
              "anchor": "Overlay3D.Label",
              "kind": "field",
              "doc": "Label optionally sets core.Canvas.Label on the overlay canvas."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewOverlay3D",
              "anchor": "NewOverlay3D",
              "decl": "func NewOverlay3D(cx *core.Scope) *Overlay3D",
              "doc": "NewOverlay3D returns a visible Overlay3D bound to cx so Invalidate triggers\nredraws of its overlay canvas. A nil cx defers binding until Canvas or View\nmounts the overlay in a scope.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 132
            }
          ],
          "methods": [
            {
              "name": "AddBatch",
              "anchor": "Overlay3D.AddBatch",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) AddBatch(b *sprite.Batch)",
              "doc": "AddBatch appends b to o.Batches.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 161
            },
            {
              "name": "AddLayer",
              "anchor": "Overlay3D.AddLayer",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) AddLayer(l *Layer) *Layer",
              "doc": "AddLayer appends l to o.Layers and returns l.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 152
            },
            {
              "name": "Canvas",
              "anchor": "Overlay3D.Canvas",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) Canvas(cx *core.Scope) core.Canvas",
              "doc": "Canvas returns a transparent, absolutely positioned core.Canvas sized to fill\nits parent view (such as a gpu.View). Mount it directly in gpu.ViewProps.Children\nor compose it automatically with Overlay3D.View.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 492
            },
            {
              "name": "DispatchPress",
              "anchor": "Overlay3D.DispatchPress",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) DispatchPress(window core.Size, ev core.PressEvent) bool",
              "doc": "DispatchPress hit-tests ev.Position in o for a view of size window and\ninvokes the topmost hit target's OnPress callback when set, returning whether\na callback ran.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 413
            },
            {
              "name": "DispatchTouch",
              "anchor": "Overlay3D.DispatchTouch",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) DispatchTouch(window core.Size, ev core.TouchEvent) bool",
              "doc": "DispatchTouch hit-tests each changed finger of ev (or all fingers when none\nare marked Changed) against o for a view of size window, invoking OnTouch or\nfalling back to OnPress on TouchStart when OnTouch is nil.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 437
            },
            {
              "name": "Draw",
              "anchor": "Overlay3D.Draw",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) Draw(d *core.Drawing, size core.Size)",
              "doc": "Draw records the 2D overlay into d for a canvas of size, leaving d's\ntransform and paint state as it found it.\n\nCalling Draw inside a core.Canvas subscribes the canvas to Invalidate calls\nautomatically.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 225
            },
            {
              "name": "HitTest",
              "anchor": "Overlay3D.HitTest",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) HitTest(window core.Size, p core.Point) (*HitResult, bool)",
              "doc": "HitTest returns the topmost visible 2D overlay target hit by view-space point\np inside a view of size window, testing standalone Batches first (in reverse\nslice and Z order) and then merged screen layers (in reverse Layer.Order).\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 299
            },
            {
              "name": "HitTestAll",
              "anchor": "Overlay3D.HitTestAll",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) HitTestAll(window core.Size, p core.Point) []HitResult",
              "doc": "HitTestAll returns every visible 2D overlay target hit by view-space point p\ninside a view of size window, ordered from topmost to bottommost.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 315
            },
            {
              "name": "Invalidate",
              "anchor": "Overlay3D.Invalidate",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) Invalidate()",
              "doc": "Invalidate marks the 2D overlay dirty so any mounted overlay canvas redraws\non the next frame.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 170
            },
            {
              "name": "Project",
              "anchor": "Overlay3D.Project",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) Project(viewProj [16]float32, worldX, worldY, worldZ float32, window core.Size) (x, y float32, visible bool)",
              "doc": "Project maps the 3D world point (worldX, worldY, worldZ) through the\ncolumn-major view-projection matrix viewProj (as scene3d.Camera.ViewProj\nreturns) into o's active 2D drawing coordinates for a 3D view of size window.\nWhen o.Viewport is set, projected view coordinates are converted into virtual\ncoordinates via Viewport.ViewToGame, returning visible == false if the\nprojected point falls outside the frustum or inside clipped letterbox/pillarbox\nmargins.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 274
            },
            {
              "name": "SetHidden",
              "anchor": "Overlay3D.SetHidden",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) SetHidden(hidden bool)",
              "doc": "SetHidden updates o.Hidden and invalidates the overlay when the state changes.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 178
            },
            {
              "name": "Update",
              "anchor": "Overlay3D.Update",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) Update(dt time.Duration)",
              "doc": "Update advances tilemaps and custom drawables in Scene's SpaceScreen layers\nand o.Layers by dt in ascending Layer.Order.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 208
            },
            {
              "name": "View",
              "anchor": "Overlay3D.View",
              "recv": "*Overlay3D",
              "decl": "func (o *Overlay3D) View(cx *core.Scope, props gpu.ViewProps) core.Node",
              "doc": "View returns a gpu.View configured by props with o's transparent 2D overlay\ncanvas mounted directly above the 3D GPU surface and beneath any native views\nlisted in props.Children.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 546
            }
          ]
        },
        {
          "name": "Scene",
          "anchor": "Scene",
          "decl": "type Scene struct {\n\t// Camera transforms SpaceWorld layers during Draw and HitTest; nil leaves world coordinates untransformed.\n\tCamera *tilemap.Camera\n\t// Layers are the scene's layers, drawn in stable ascending Layer.Order.\n\tLayers []*Layer\n\t// contains filtered or unexported fields\n}",
          "doc": "Scene composes ordered world- and screen-space Layers sharing a 2D Camera.\n",
          "file": "pkg/scene/scene.go",
          "line": 205,
          "members": [
            {
              "name": "Camera",
              "anchor": "Scene.Camera",
              "kind": "field",
              "doc": "Camera transforms SpaceWorld layers during Draw and HitTest; nil leaves world coordinates untransformed."
            },
            {
              "name": "Layers",
              "anchor": "Scene.Layers",
              "kind": "field",
              "doc": "Layers are the scene's layers, drawn in stable ascending Layer.Order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewScene",
              "anchor": "NewScene",
              "decl": "func NewScene(cam *tilemap.Camera) *Scene",
              "doc": "NewScene returns an empty Scene using cam for its world-space layers.\n",
              "file": "pkg/scene/scene.go",
              "line": 216
            }
          ],
          "methods": [
            {
              "name": "AddLayer",
              "anchor": "Scene.AddLayer",
              "recv": "*Scene",
              "decl": "func (s *Scene) AddLayer(l *Layer) *Layer",
              "doc": "AddLayer appends l to the scene and returns l.\n",
              "file": "pkg/scene/scene.go",
              "line": 221
            },
            {
              "name": "ClearSpriteHit",
              "anchor": "Scene.ClearSpriteHit",
              "recv": "*Scene",
              "decl": "func (s *Scene) ClearSpriteHit(sp *sprite.Sprite)",
              "doc": "ClearSpriteHit removes any custom hit-testing options previously bound to sp.\n",
              "file": "pkg/scene/hit.go",
              "line": 57
            },
            {
              "name": "DispatchPress",
              "anchor": "Scene.DispatchPress",
              "recv": "*Scene",
              "decl": "func (s *Scene) DispatchPress(ev core.PressEvent) bool",
              "doc": "DispatchPress hit-tests ev.Position and invokes the topmost hit target's OnPress callback when set, returning whether a callback ran.\n",
              "file": "pkg/scene/hit.go",
              "line": 404
            },
            {
              "name": "DispatchTouch",
              "anchor": "Scene.DispatchTouch",
              "recv": "*Scene",
              "decl": "func (s *Scene) DispatchTouch(ev core.TouchEvent) bool",
              "doc": "DispatchTouch hit-tests each changed finger of ev (or all fingers when none are marked Changed) and routes it to the topmost hit target's OnTouch callback, or to OnPress on TouchStart when OnTouch is nil. It returns whether any callback ran.\n",
              "file": "pkg/scene/hit.go",
              "line": 426
            },
            {
              "name": "Draw",
              "anchor": "Scene.Draw",
              "recv": "*Scene",
              "decl": "func (s *Scene) Draw(d *core.Drawing)",
              "doc": "Draw draws every visible layer in stable ascending Order into d, leaving d's transform and paint state as it found it.\n",
              "file": "pkg/scene/scene.go",
              "line": 270
            },
            {
              "name": "DrawScreenLayers",
              "anchor": "Scene.DrawScreenLayers",
              "recv": "*Scene",
              "decl": "func (s *Scene) DrawScreenLayers(d *core.Drawing)",
              "doc": "DrawScreenLayers draws only the visible SpaceScreen layers of s in stable\nascending Order into d, skipping SpaceWorld layers and leaving d's transform\nand paint state as it found it.\n",
              "file": "pkg/scene/overlay3d.go",
              "line": 18
            },
            {
              "name": "HitTest",
              "anchor": "Scene.HitTest",
              "recv": "*Scene",
              "decl": "func (s *Scene) HitTest(p core.Point) (*HitResult, bool)",
              "doc": "HitTest returns the topmost visible target hit by view-space point p, or (nil, false) if nothing was hit.\n\nLayers are tested in reverse draw order (highest Order first), and items and sprites within each layer are tested in reverse Z/slice order. SpaceWorld layers convert p via Camera.ViewToWorld; SpaceScreen layers test p directly in view coordinates.\n",
              "file": "pkg/scene/hit.go",
              "line": 221
            },
            {
              "name": "HitTestAll",
              "anchor": "Scene.HitTestAll",
              "recv": "*Scene",
              "decl": "func (s *Scene) HitTestAll(p core.Point) []HitResult",
              "doc": "HitTestAll returns every visible target hit by view-space point p, ordered from topmost to bottommost.\n",
              "file": "pkg/scene/hit.go",
              "line": 236
            },
            {
              "name": "Layer",
              "anchor": "Scene.Layer",
              "recv": "*Scene",
              "decl": "func (s *Scene) Layer(name string) *Layer",
              "doc": "Layer returns the first layer named name, or nil if none matches.\n",
              "file": "pkg/scene/scene.go",
              "line": 230
            },
            {
              "name": "SetSpriteHit",
              "anchor": "Scene.SetSpriteHit",
              "recv": "*Scene",
              "decl": "func (s *Scene) SetSpriteHit(sp *sprite.Sprite, opts HitOptions)",
              "doc": "SetSpriteHit binds custom hit-testing options and input callbacks to sp in s.\n",
              "file": "pkg/scene/hit.go",
              "line": 46
            },
            {
              "name": "Update",
              "anchor": "Scene.Update",
              "recv": "*Scene",
              "decl": "func (s *Scene) Update(dt time.Duration)",
              "doc": "Update advances the scene's Camera, tilemaps, and custom drawables by dt in layer order.\n",
              "file": "pkg/scene/scene.go",
              "line": 255
            }
          ]
        },
        {
          "name": "SortMode",
          "anchor": "SortMode",
          "decl": "type SortMode uint8",
          "doc": "SortMode controls how items and sprites are depth-sorted within a Layer during Draw and HitTest.\n",
          "file": "pkg/scene/depth.go",
          "line": 14,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SortNone",
                  "anchor": "SortNone"
                },
                {
                  "name": "SortY",
                  "anchor": "SortY"
                },
                {
                  "name": "SortCustom",
                  "anchor": "SortCustom"
                }
              ],
              "decl": "const (\n\t// SortNone preserves Z and slice insertion order (default).\n\tSortNone SortMode = iota\n\t// SortY sorts drawables and sprites in painter's order: primary Z, then ascending Y (or SortKey / SpriteSortKey), then insertion order.\n\tSortY\n\t// SortCustom sorts items with Layer.SortFunc (or Layer.SortKey / Z) and sprites with Layer.SpriteSortKey (or Z).\n\tSortCustom\n)",
              "doc": "",
              "file": "pkg/scene/depth.go",
              "line": 16
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Space",
          "anchor": "Space",
          "decl": "type Space uint8",
          "doc": "Space names the coordinate system a Layer draws and hit-tests in.\n",
          "file": "pkg/scene/scene.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SpaceWorld",
                  "anchor": "SpaceWorld"
                },
                {
                  "name": "SpaceScreen",
                  "anchor": "SpaceScreen"
                }
              ],
              "decl": "const (\n\t// SpaceWorld draws under the Scene's Camera and converts view points to world space for hit testing.\n\tSpaceWorld Space = iota\n\t// SpaceScreen draws directly in view coordinates, unaffected by the Scene's Camera.\n\tSpaceScreen\n)",
              "doc": "",
              "file": "pkg/scene/scene.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SplitScreen",
          "anchor": "SplitScreen",
          "decl": "type SplitScreen struct {\n\t// Viewports are the active screen regions drawn in slice order.\n\tViewports []SplitViewport\n\t// DividerWidth is the thickness in points of divider lines drawn along shared edges between viewports when positive.\n\tDividerWidth float32\n\t// DividerColor is the fill color of divider lines when DividerWidth > 0; a zero color defaults to opaque black.\n\tDividerColor core.Color\n}",
          "doc": "SplitScreen renders and hit-tests a Scene across multiple clipped viewports with independent cameras.\n",
          "file": "pkg/scene/splitscreen.go",
          "line": 24,
          "members": [
            {
              "name": "Viewports",
              "anchor": "SplitScreen.Viewports",
              "kind": "field",
              "doc": "Viewports are the active screen regions drawn in slice order."
            },
            {
              "name": "DividerWidth",
              "anchor": "SplitScreen.DividerWidth",
              "kind": "field",
              "doc": "DividerWidth is the thickness in points of divider lines drawn along shared edges between viewports when positive."
            },
            {
              "name": "DividerColor",
              "anchor": "SplitScreen.DividerColor",
              "kind": "field",
              "doc": "DividerColor is the fill color of divider lines when DividerWidth > 0; a zero color defaults to opaque black."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "HorizontalSplit",
              "anchor": "HorizontalSplit",
              "decl": "func HorizontalSplit(size core.Size, topCam, bottomCam *tilemap.Camera) *SplitScreen",
              "doc": "HorizontalSplit returns a two-viewport top/bottom SplitScreen covering size.\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 43
            },
            {
              "name": "NewSplitScreen",
              "anchor": "NewSplitScreen",
              "decl": "func NewSplitScreen(views ...SplitViewport) *SplitScreen",
              "doc": "NewSplitScreen returns a SplitScreen configured with the given viewports.\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 34
            },
            {
              "name": "QuadSplit",
              "anchor": "QuadSplit",
              "decl": "func QuadSplit(size core.Size, cams [4]*tilemap.Camera) *SplitScreen",
              "doc": "QuadSplit returns a four-viewport 2x2 SplitScreen covering size in row-major order:\ntop-left (0), top-right (1), bottom-left (2), bottom-right (3).\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 86
            },
            {
              "name": "VerticalSplit",
              "anchor": "VerticalSplit",
              "decl": "func VerticalSplit(size core.Size, leftCam, rightCam *tilemap.Camera) *SplitScreen",
              "doc": "VerticalSplit returns a two-viewport left/right SplitScreen covering size.\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 64
            }
          ],
          "methods": [
            {
              "name": "DispatchPress",
              "anchor": "SplitScreen.DispatchPress",
              "recv": "*SplitScreen",
              "decl": "func (ss *SplitScreen) DispatchPress(s *Scene, ev core.PressEvent) (viewportIndex int, handled bool)",
              "doc": "DispatchPress hit-tests ev.Position in the matching viewport and invokes the topmost target's OnPress callback when set.\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 378
            },
            {
              "name": "DispatchTouch",
              "anchor": "SplitScreen.DispatchTouch",
              "recv": "*SplitScreen",
              "decl": "func (ss *SplitScreen) DispatchTouch(s *Scene, ev core.TouchEvent) bool",
              "doc": "DispatchTouch hit-tests each changed finger of ev (or all fingers when none are marked Changed) against its containing viewport and routes it to OnTouch (or OnPress on TouchStart when OnTouch is nil).\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 400
            },
            {
              "name": "Draw",
              "anchor": "SplitScreen.Draw",
              "recv": "*SplitScreen",
              "decl": "func (ss *SplitScreen) Draw(d *core.Drawing, s *Scene)",
              "doc": "Draw renders s into each viewport clipped strictly to its Region under its Camera, draws any per-viewport HUD, draws divider lines when DividerWidth > 0, and restores both d and s.Camera cleanly.\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 134
            },
            {
              "name": "HitTest",
              "anchor": "SplitScreen.HitTest",
              "recv": "*SplitScreen",
              "decl": "func (ss *SplitScreen) HitTest(s *Scene, p core.Point) (viewportIndex int, hit *HitResult, ok bool)",
              "doc": "HitTest routes parent view-space point p to the viewport containing p, hit-tests s under that viewport's Camera, and restores s.Camera afterwards.\n\nWhen p lies outside all viewports, it returns (-1, nil, false). When p falls inside viewport i but hits nothing, it returns (i, nil, false).\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 313
            },
            {
              "name": "HitTestAll",
              "anchor": "SplitScreen.HitTestAll",
              "recv": "*SplitScreen",
              "decl": "func (ss *SplitScreen) HitTestAll(s *Scene, p core.Point) (viewportIndex int, hits []HitResult)",
              "doc": "HitTestAll routes parent view-space point p to the viewport containing p and returns all hits in topmost-to-bottommost order.\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 346
            },
            {
              "name": "ViewportAt",
              "anchor": "SplitScreen.ViewportAt",
              "recv": "*SplitScreen",
              "decl": "func (ss *SplitScreen) ViewportAt(p core.Point) int",
              "doc": "ViewportAt returns the index of the topmost viewport containing parent view point p, or -1 if p lies outside all viewports.\n",
              "file": "pkg/scene/splitscreen.go",
              "line": 283
            }
          ]
        },
        {
          "name": "SplitViewport",
          "anchor": "SplitViewport",
          "decl": "type SplitViewport struct {\n\t// Camera is the world camera used to draw and hit-test the scene in this viewport.\n\tCamera *tilemap.Camera\n\t// Region is the viewport rectangle in parent view coordinates.\n\tRegion core.Bounds\n\t// DrawHUD optionally draws per-viewport HUD elements in viewport-local coordinates\n\t// (0..Region.Size.Width, 0..Region.Size.Height) after the scene draws.\n\tDrawHUD func(d *core.Drawing, size core.Size)\n}",
          "doc": "SplitViewport defines one clipped viewport region within a SplitScreen layout.\n",
          "file": "pkg/scene/splitscreen.go",
          "line": 13,
          "members": [
            {
              "name": "Camera",
              "anchor": "SplitViewport.Camera",
              "kind": "field",
              "doc": "Camera is the world camera used to draw and hit-test the scene in this viewport."
            },
            {
              "name": "Region",
              "anchor": "SplitViewport.Region",
              "kind": "field",
              "doc": "Region is the viewport rectangle in parent view coordinates."
            },
            {
              "name": "DrawHUD",
              "anchor": "SplitViewport.DrawHUD",
              "kind": "field",
              "doc": "DrawHUD optionally draws per-viewport HUD elements in viewport-local coordinates\n(0..Region.Size.Width, 0..Region.Size.Height) after the scene draws."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Transition",
          "anchor": "Transition",
          "decl": "type Transition struct {\n\t// Duration is how long the transition runs; a non-positive Duration switches immediately.\n\tDuration time.Duration\n\t// Curve eases the linear progress in [0, 1]; its zero value is core.Linear.\n\tCurve core.Curve\n\t// Draw draws one transition frame at eased progress in [0, 1] into d for a canvas of size, calling drawOld and drawNew as needed to render the outgoing and incoming scenes. When Draw is nil, Manager.Draw and Manager.View show the incoming scene for the whole Duration.\n\tDraw func(d *core.Drawing, size core.Size, progress float64, drawOld, drawNew func(*core.Drawing))\n\t// contains filtered or unexported fields\n}",
          "doc": "Transition animates the visual handoff between an outgoing scene and an incoming scene over Duration.\n",
          "file": "pkg/scene/transition.go",
          "line": 35,
          "members": [
            {
              "name": "Duration",
              "anchor": "Transition.Duration",
              "kind": "field",
              "doc": "Duration is how long the transition runs; a non-positive Duration switches immediately."
            },
            {
              "name": "Curve",
              "anchor": "Transition.Curve",
              "kind": "field",
              "doc": "Curve eases the linear progress in [0, 1]; its zero value is core.Linear."
            },
            {
              "name": "Draw",
              "anchor": "Transition.Draw",
              "kind": "field",
              "doc": "Draw draws one transition frame at eased progress in [0, 1] into d for a canvas of size, calling drawOld and drawNew as needed to render the outgoing and incoming scenes. When Draw is nil, Manager.Draw and Manager.View show the incoming scene for the whole Duration."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Crossfade",
              "anchor": "Crossfade",
              "decl": "func Crossfade(duration time.Duration) *Transition",
              "doc": "Crossfade returns a Transition that crossfades directly from the old scene to the new scene over duration.\n",
              "file": "pkg/scene/transition.go",
              "line": 126
            },
            {
              "name": "CustomTransition",
              "anchor": "CustomTransition",
              "decl": "func CustomTransition(duration time.Duration, draw func(d *core.Drawing, size core.Size, progress float64, drawOld, drawNew func(*core.Drawing))) *Transition",
              "doc": "CustomTransition returns a Transition driven over duration with a caller-supplied draw function.\n",
              "file": "pkg/scene/transition.go",
              "line": 192
            },
            {
              "name": "Fade",
              "anchor": "Fade",
              "decl": "func Fade(duration time.Duration, color core.Color) *Transition",
              "doc": "Fade returns a Transition lasting duration.\n\nWhen color is 0 or core.Transparent, it crossfades directly from the old scene (alpha 1 to 0) to the new scene (alpha 0 to 1).\nWhen color is non-transparent, it fades the old scene to color over the first half of duration and reveals the new scene from color over the second half.\n",
              "file": "pkg/scene/transition.go",
              "line": 70
            },
            {
              "name": "Wipe",
              "anchor": "Wipe",
              "decl": "func Wipe(duration time.Duration, dir Direction) *Transition",
              "doc": "Wipe returns a Transition that clips the old and new scenes along an axis-aligned dividing edge moving in dir over duration.\n",
              "file": "pkg/scene/transition.go",
              "line": 131
            }
          ],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/scene3d",
      "name": "scene3d",
      "dir": "pkg/scene3d",
      "page": "pkg/scene3d",
      "synopsis": "Package scene3d provides a 3D scene graph, named socket attachments, a dynamic AABB Bounding Volume Hierarchy (BVH), BVH-accelerated spatial queries, perspective and orthographic cameras, camera controllers (orbit, first-person, third-person follow), screen-space picking, and box-projected 3D decals (Decal, DecalPool, GPUDecalRenderer) built on math3d.",
      "doc": "Package scene3d provides a 3D scene graph, named socket attachments, a\ndynamic AABB Bounding Volume Hierarchy ([BVH]), BVH-accelerated spatial\nqueries, perspective and orthographic cameras, camera controllers (orbit,\nfirst-person, third-person follow), screen-space picking, and box-projected\n3D decals ([Decal], [DecalPool], [GPUDecalRenderer]) built on math3d.\n\n# Conventions\n\nAll transforms, projections, frustums, and rays follow package math3d's\nconventions:\n\n  - Right-handed, Y-up coordinate system (+X right, +Y up, -Z forward).\n  - Column-major matrices with TRS composition (T * R * S) and clip-space\n    transform P * V * M.\n  - Zero-to-one [0, 1] NDC depth (WebGPU / Metal / Vulkan).\n  - Screen coordinates place (0, 0) at the top-left of the viewport and\n    (viewW, viewH) at the bottom-right.\n\nConstruct nodes with [NewNode] and scenes with [NewScene] so default\ntransforms, visibility, layers, and empty bounding volumes are initialized\ncleanly.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultDecalAngleFadeStart",
              "anchor": "DefaultDecalAngleFadeStart"
            },
            {
              "name": "DefaultDecalAngleFadeEnd",
              "anchor": "DefaultDecalAngleFadeEnd"
            },
            {
              "name": "DefaultDecalDepthFade",
              "anchor": "DefaultDecalDepthFade"
            },
            {
              "name": "DefaultDecalBias",
              "anchor": "DefaultDecalBias"
            }
          ],
          "decl": "const (\n\t// DefaultDecalAngleFadeStart is the angle (in radians) between a surface\n\t// normal and the decal's opposite projection direction (+Z) where angle fade\n\t// begins.\n\tDefaultDecalAngleFadeStart float32 = 60 * (math.Pi / 180)\n\t// DefaultDecalAngleFadeEnd is the angle (in radians) at and beyond which a\n\t// surface receives zero decal opacity and is clipped away.\n\tDefaultDecalAngleFadeEnd float32 = 85 * (math.Pi / 180)\n\t// DefaultDecalDepthFade is the fraction of box half-depth at both ends of\n\t// the projection box over which opacity fades smoothly to zero.\n\tDefaultDecalDepthFade float32 = 0.1\n\t// DefaultDecalBias is the default world-space offset applied along receiver\n\t// surface normals to prevent z-fighting on the forward rendering path.\n\tDefaultDecalBias float32 = 0.002\n)",
          "doc": "Default decal projection parameters applied by [NewDecal] and\n[NewDecalOnSurface].\n",
          "file": "pkg/scene3d/decal.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "DecalVertexStride",
              "anchor": "DecalVertexStride"
            },
            {
              "name": "DecalPositionOffset",
              "anchor": "DecalPositionOffset"
            },
            {
              "name": "DecalNormalOffset",
              "anchor": "DecalNormalOffset"
            },
            {
              "name": "DecalUVOffset",
              "anchor": "DecalUVOffset"
            },
            {
              "name": "DecalColorOffset",
              "anchor": "DecalColorOffset"
            },
            {
              "name": "DecalPositionLocation",
              "anchor": "DecalPositionLocation"
            },
            {
              "name": "DecalNormalLocation",
              "anchor": "DecalNormalLocation"
            },
            {
              "name": "DecalUVLocation",
              "anchor": "DecalUVLocation"
            },
            {
              "name": "DecalColorLocation",
              "anchor": "DecalColorLocation"
            }
          ],
          "decl": "const (\n\t// DecalVertexStride is the byte size of one interleaved decal vertex:\n\t// position (12 B) + normal (12 B) + UV (8 B) + RGBA color (16 B).\n\tDecalVertexStride = 48\n\n\tDecalPositionOffset = 0\n\tDecalNormalOffset   = 12\n\tDecalUVOffset       = 24\n\tDecalColorOffset    = 32\n\n\tDecalPositionLocation = 0\n\tDecalNormalLocation   = 1\n\tDecalUVLocation       = 2\n\tDecalColorLocation    = 3\n)",
          "doc": "DecalVertexLayout constants describe the interleaved byte layout written by\n[DecalGeometry.AppendVertexData] and consumed by [DecalWGSL].\n",
          "file": "pkg/scene3d/decal.go",
          "line": 37
        },
        {
          "idents": [
            {
              "name": "LayerDefault",
              "anchor": "LayerDefault"
            },
            {
              "name": "LayerAll",
              "anchor": "LayerAll"
            }
          ],
          "decl": "const (\n\t// LayerDefault is the default layer assigned to nodes created by NewNode.\n\tLayerDefault uint32 = 1 << 0\n\t// LayerAll matches every non-zero layer bit.\n\tLayerAll uint32 = ^uint32(0)\n)",
          "doc": "Layer bitmask constants for node filtering in raycasts and picking.\n",
          "file": "pkg/scene3d/node.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "DecalCameraUniformSize",
              "anchor": "DecalCameraUniformSize"
            }
          ],
          "decl": "const DecalCameraUniformSize = 3*64 + 16",
          "doc": "DecalCameraUniformSize is the byte size of the camera uniform block declared\nin [DecalWGSL] (three column-major mat4x4 matrices plus a vec4 eye point),\nmatching render3d.CameraUniformSize byte-for-byte.\n",
          "file": "pkg/scene3d/decal_gpu.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "DecalReceiverAttachment",
              "anchor": "DecalReceiverAttachment"
            }
          ],
          "decl": "const DecalReceiverAttachment = \"decal_receiver\"",
          "doc": "DecalReceiverAttachment is the [Node.Attachments] key checked by\n[Node.DecalReceiver] and [ProjectDecal] before falling back to [Node.Collider].\n",
          "file": "pkg/scene3d/decal.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "DecalWGSL",
              "anchor": "DecalWGSL"
            }
          ],
          "decl": "const DecalWGSL = `struct DecalCamera {\n\tview: mat4x4<f32>,\n\tproj: mat4x4<f32>,\n\tview_proj: mat4x4<f32>,\n\teye: vec4<f32>,\n}\n\n@group(0) @binding(0) var<uniform> camera: DecalCamera;\n@group(1) @binding(0) var albedo_tex: texture_2d<f32>;\n@group(1) @binding(1) var albedo_samp: sampler;\n\nstruct VertexIn {\n\t@location(0) pos: vec3<f32>,\n\t@location(1) normal: vec3<f32>,\n\t@location(2) uv: vec2<f32>,\n\t@location(3) color: vec4<f32>,\n}\n\nstruct VertexOut {\n\t@builtin(position) clip: vec4<f32>,\n\t@location(0) uv: vec2<f32>,\n\t@location(1) color: vec4<f32>,\n}\n\n@vertex\nfn vs_main(in: VertexIn) -> VertexOut {\n\tvar out: VertexOut;\n\tout.clip = camera.view_proj * vec4<f32>(in.pos, 1.0);\n\tout.uv = in.uv;\n\tout.color = in.color;\n\treturn out;\n}\n\n@fragment\nfn fs_main(in: VertexOut) -> @location(0) vec4<f32> {\n\tlet tex = textureSample(albedo_tex, albedo_samp, in.uv);\n\tlet out_color = tex * in.color;\n\tif (out_color.a <= 0.001) {\n\t\tdiscard;\n\t}\n\treturn out_color;\n}\n`",
          "doc": "DecalWGSL is the mobile-compatible forward-rendering WGSL shader for\nbox-projected decals (#385). It uses only standard vertex/fragment stages,\na camera uniform at @group(0) @binding(0) (layout-compatible with\nrender3d.CameraWGSL), and an albedo texture + sampler at @group(1). No\ncompute shaders, storage buffers, or depth-buffer readback are required, so\nit runs identically on WebGPU, Metal, Vulkan, OpenGL ES 3.0, WebGL 2, and\nNSGo's software renderer.\n",
          "file": "pkg/scene3d/decal_gpu.go",
          "line": 24
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrNilNode",
              "anchor": "ErrNilNode"
            },
            {
              "name": "ErrCycle",
              "anchor": "ErrCycle"
            },
            {
              "name": "ErrNotDecomposable",
              "anchor": "ErrNotDecomposable"
            }
          ],
          "decl": "var (\n\t// ErrNilNode is returned when a nil node is passed to AddChild or Attach.\n\tErrNilNode = errors.New(\"scene3d: nil node\")\n\t// ErrCycle is returned when parenting a node would introduce a cycle.\n\tErrCycle = errors.New(\"scene3d: hierarchy cycle detected\")\n\t// ErrNotDecomposable is returned by a keep-world reparent whose new parent is singular or whose exact local transform needs shear, which a Transform cannot hold.\n\tErrNotDecomposable = errors.New(\"scene3d: local transform is not decomposable to TRS\")\n)",
          "doc": "Hierarchy errors returned by Node tree mutations.\n",
          "file": "pkg/scene3d/node.go",
          "line": 19
        }
      ],
      "funcs": [
        {
          "name": "AttachmentAs",
          "anchor": "AttachmentAs",
          "decl": "func AttachmentAs[T any](n *Node, key string) (T, bool)",
          "doc": "AttachmentAs retrieves the named attachment from n and asserts it to type T.\n",
          "file": "pkg/scene3d/node.go",
          "line": 678
        },
        {
          "name": "DecalVertexLayout",
          "anchor": "DecalVertexLayout",
          "decl": "func DecalVertexLayout() gpu.VertexBufferLayout",
          "doc": "DecalVertexLayout returns the vertex buffer layout matching\n[DecalGeometry.AppendVertexData] and [DecalWGSL]. Each call returns a fresh\nAttributes slice.\n",
          "file": "pkg/scene3d/decal_gpu.go",
          "line": 71
        },
        {
          "name": "ProjectDecal",
          "anchor": "ProjectDecal",
          "decl": "func ProjectDecal(scene *Scene, d Decal, dst *DecalGeometry) int",
          "doc": "ProjectDecal clips and projects d onto all visible, enabled nodes in scene\nwhose world bounds overlap d's projection box and whose [Node.Layer] matches\nd.LayerMask. Projected triangles are appended to dst; the number of triangles\nadded is returned.\n",
          "file": "pkg/scene3d/decal.go",
          "line": 592
        },
        {
          "name": "ProjectDecalOntoReceiver",
          "anchor": "ProjectDecalOntoReceiver",
          "decl": "func ProjectDecalOntoReceiver(d Decal, receiver DecalReceiver, worldMat math3d.Mat4, dst *DecalGeometry) int",
          "doc": "ProjectDecalOntoReceiver clips and projects d onto a single [DecalReceiver]\ntransformed by worldMat, appending triangles to dst and returning the number\nof triangles added.\n",
          "file": "pkg/scene3d/decal.go",
          "line": 604
        },
        {
          "name": "SceneObstructionCheck",
          "anchor": "SceneObstructionCheck",
          "decl": "func SceneObstructionCheck(scene *Scene, layerMask uint32, ignore ...*Node) func(from, to math3d.Vec3) (float32, bool)",
          "doc": "SceneObstructionCheck returns a ThirdPersonController ObstructionCheck\ncallback backed by BVH-accelerated scene raycasts against visible, enabled\nnodes matching layerMask. Any node listed in ignore (such as the followed\nplayer character) is skipped.\n",
          "file": "pkg/scene3d/scene.go",
          "line": 482
        }
      ],
      "types": [
        {
          "name": "BVH",
          "anchor": "BVH",
          "decl": "type BVH struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "BVH is a dynamic 3D AABB Bounding Volume Hierarchy.\n\nIt maintains a balanced fat-AABB tree with O(log N) incremental Insert,\nUpdate, and Remove operations, an optional top-down binned SAH Rebuild for\noptimal cache-ordered query performance, and zero-allocation slice-reusing\nfrustum, AABB, sphere, and raycast queries.\n\nEvery leaf stores both a fattened AABB (for O(1) small-motion updates and\nsubtree pruning) and its exact tight AABB (tested at leaves so queries return\nthe exact same hit set as a brute-force linear scan).\n",
          "file": "pkg/scene3d/bvh.go",
          "line": 63,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewBVH",
              "anchor": "NewBVH",
              "decl": "func NewBVH() *BVH",
              "doc": "NewBVH returns an empty dynamic BVH ready for insertions and queries.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 74
            }
          ],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "BVH.Bounds",
              "recv": "*BVH",
              "decl": "func (b *BVH) Bounds(h BVHHandle) (math3d.AABB, bool)",
              "doc": "Bounds returns the tight world-space AABB associated with h.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 155
            },
            {
              "name": "Contains",
              "anchor": "BVH.Contains",
              "recv": "*BVH",
              "decl": "func (b *BVH) Contains(h BVHHandle) bool",
              "doc": "Contains reports whether h refers to a live entry in b.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 131
            },
            {
              "name": "Height",
              "anchor": "BVH.Height",
              "recv": "*BVH",
              "decl": "func (b *BVH) Height() int",
              "doc": "Height returns the height of the BVH tree (0 for empty or single-leaf tree).\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 99
            },
            {
              "name": "ID",
              "anchor": "BVH.ID",
              "recv": "*BVH",
              "decl": "func (b *BVH) ID(h BVHHandle) (uint64, bool)",
              "doc": "ID returns the caller-provided uint64 identifier associated with h.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 137
            },
            {
              "name": "Insert",
              "anchor": "BVH.Insert",
              "recv": "*BVH",
              "decl": "func (b *BVH) Insert(id uint64, bounds math3d.AABB, userData any) BVHHandle",
              "doc": "Insert adds an entry with the given id, tight bounds, and arbitrary userData\ninto b and returns its handle. If bounds is empty, Insert returns an invalid\nzero BVHHandle without modifying b.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 232
            },
            {
              "name": "LastQueryVisited",
              "anchor": "BVH.LastQueryVisited",
              "recv": "*BVH",
              "decl": "func (b *BVH) LastQueryVisited() int",
              "doc": "LastQueryVisited returns the number of BVH tree nodes visited during the\nmost recent query (QueryFrustum, QueryAABB, QuerySphere, Raycast, or RaycastAll).\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 108
            },
            {
              "name": "Len",
              "anchor": "BVH.Len",
              "recv": "*BVH",
              "decl": "func (b *BVH) Len() int",
              "doc": "Len returns the number of active entries currently stored in b.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 91
            },
            {
              "name": "QueryAABB",
              "anchor": "BVH.QueryAABB",
              "recv": "*BVH",
              "decl": "func (b *BVH) QueryAABB(region math3d.AABB, out []BVHHandle) []BVHHandle",
              "doc": "QueryAABB appends handles of all entries whose tight AABB overlaps or touches\nregion to out and returns the resulting slice.\n\nPass a reused slice (e.g. buf[:0]) for zero-allocation queries.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 926
            },
            {
              "name": "QueryFrustum",
              "anchor": "BVH.QueryFrustum",
              "recv": "*BVH",
              "decl": "func (b *BVH) QueryFrustum(frustum math3d.Frustum, out []BVHHandle) []BVHHandle",
              "doc": "QueryFrustum appends handles of all entries whose tight AABB intersects\nfrustum to out and returns the resulting slice. Subtrees completely outside\nfrustum are pruned immediately, and subtrees completely inside frustum are\ncollected without redundant per-leaf plane tests.\n\nPass a reused slice (e.g. buf[:0]) for zero-allocation queries.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 837
            },
            {
              "name": "QuerySphere",
              "anchor": "BVH.QuerySphere",
              "recv": "*BVH",
              "decl": "func (b *BVH) QuerySphere(center math3d.Vec3, radius float32, out []BVHHandle) []BVHHandle",
              "doc": "QuerySphere appends handles of all entries whose tight AABB overlaps or\ntouches the sphere (center, radius) to out and returns the resulting slice.\n\nPass a reused slice (e.g. buf[:0]) for zero-allocation queries.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 985
            },
            {
              "name": "Raycast",
              "anchor": "BVH.Raycast",
              "recv": "*BVH",
              "decl": "func (b *BVH) Raycast(ray math3d.Ray, maxDist float32, visit func(h BVHHandle, hitDist float32) (continueSearch bool))",
              "doc": "Raycast traverses the BVH in near-to-far child order using slab AABB\nintersection tests and invokes visit for each leaf whose tight AABB is hit at\nparameter hitDist in [0, maxDist]. Traversal stops immediately if visit\nreturns false.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 1158
            },
            {
              "name": "RaycastAll",
              "anchor": "BVH.RaycastAll",
              "recv": "*BVH",
              "decl": "func (b *BVH) RaycastAll(ray math3d.Ray, maxDist float32, out []BVHRayHit) []BVHRayHit",
              "doc": "RaycastAll finds all entries whose tight AABB intersects ray within\n[0, maxDist], appends them to out sorted by ascending Distance, and returns\nthe resulting slice.\n\nPass a reused slice (e.g. buf[:0]) for zero-allocation queries.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 1274
            },
            {
              "name": "Rebuild",
              "anchor": "BVH.Rebuild",
              "recv": "*BVH",
              "decl": "func (b *BVH) Rebuild()",
              "doc": "Rebuild reconstructs the BVH top-down using a 12-bucket Surface Area\nHeuristic (SAH) across all three axes, laying nodes out in cache-friendly\ndepth-first pre-order. All existing BVHHandles remain valid.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 577
            },
            {
              "name": "Remove",
              "anchor": "BVH.Remove",
              "recv": "*BVH",
              "decl": "func (b *BVH) Remove(h BVHHandle)",
              "doc": "Remove deletes the entry identified by h from b. Removing an invalid or\nalready-removed handle is a safe no-op.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 309
            },
            {
              "name": "Update",
              "anchor": "BVH.Update",
              "recv": "*BVH",
              "decl": "func (b *BVH) Update(h BVHHandle, newBounds math3d.AABB) bool",
              "doc": "Update updates the tight bounds for handle h. If newBounds still fits inside\nthe leaf's existing fat AABB (and is not excessively shrunk), Update completes\nin O(1) without modifying the tree structure; otherwise the leaf is reinserted\nwith motion-predicted fat bounds in O(log N).\n\nReturns true if h was valid and updated, or false if h is invalid/removed or\nnewBounds is empty.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 269
            },
            {
              "name": "UserData",
              "anchor": "BVH.UserData",
              "recv": "*BVH",
              "decl": "func (b *BVH) UserData(h BVHHandle) (any, bool)",
              "doc": "UserData returns the caller-provided userData payload associated with h.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 146
            }
          ]
        },
        {
          "name": "BVHHandle",
          "anchor": "BVHHandle",
          "decl": "type BVHHandle struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "BVHHandle uniquely identifies an active leaf entry in a [BVH].\nThe zero value is invalid.\n",
          "file": "pkg/scene3d/bvh.go",
          "line": 14,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "BVHHandle.Valid",
              "recv": "BVHHandle",
              "decl": "func (h BVHHandle) Valid() bool",
              "doc": "Valid reports whether h is a non-zero handle.\n",
              "file": "pkg/scene3d/bvh.go",
              "line": 20
            }
          ]
        },
        {
          "name": "BVHRayHit",
          "anchor": "BVHRayHit",
          "decl": "type BVHRayHit struct {\n\tHandle   BVHHandle\n\tID       uint64\n\tUserData any\n\tDistance float32 // Ray parameter t in [0, maxDist] such that hitPoint == ray.At(Distance)\n}",
          "doc": "BVHRayHit describes a ray intersection with a BVH leaf's tight AABB.\n",
          "file": "pkg/scene3d/bvh.go",
          "line": 25,
          "members": [
            {
              "name": "Handle",
              "anchor": "BVHRayHit.Handle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ID",
              "anchor": "BVHRayHit.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserData",
              "anchor": "BVHRayHit.UserData",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Distance",
              "anchor": "BVHRayHit.Distance",
              "kind": "field",
              "doc": "Ray parameter t in [0, maxDist] such that hitPoint == ray.At(Distance)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Camera",
          "anchor": "Camera",
          "decl": "type Camera struct {\n\tPos        math3d.Vec3\n\tRot        math3d.Quat\n\tProjection Projection\n}",
          "doc": "Camera defines a 3D viewpoint and projection.\n\nIn right-handed Y-up space, an identity Rot looks down -Z with +X right and\n+Y up.\n",
          "file": "pkg/scene3d/camera.go",
          "line": 117,
          "members": [
            {
              "name": "Pos",
              "anchor": "Camera.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rot",
              "anchor": "Camera.Rot",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Projection",
              "anchor": "Camera.Projection",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewOrthographicCamera",
              "anchor": "NewOrthographicCamera",
              "decl": "func NewOrthographicCamera(pos math3d.Vec3, orthoHeight, aspect, near, far float32) *Camera",
              "doc": "NewOrthographicCamera creates an orthographic Camera looking down -Z.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 133
            },
            {
              "name": "NewPerspectiveCamera",
              "anchor": "NewPerspectiveCamera",
              "decl": "func NewPerspectiveCamera(pos math3d.Vec3, fovY, aspect, near, far float32) *Camera",
              "doc": "NewPerspectiveCamera creates a perspective Camera looking down -Z.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 124
            }
          ],
          "methods": [
            {
              "name": "Eye",
              "anchor": "Camera.Eye",
              "recv": "*Camera",
              "decl": "func (c *Camera) Eye() math3d.Vec4",
              "doc": "Eye returns the camera's eye point in homogeneous world coordinates: (Pos, 1) for a perspective camera, and the direction toward the viewer (-Forward, 0) for an orthographic one, whose eye lies at infinity.\n\nA shader finds the unit vector from a world point p toward the viewer as normalize(eye.xyz - p*eye.w) under either projection.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 189
            },
            {
              "name": "Forward",
              "anchor": "Camera.Forward",
              "recv": "*Camera",
              "decl": "func (c *Camera) Forward() math3d.Vec3",
              "doc": "Forward returns the camera's unit world-space forward direction (-Z in local space).\n",
              "file": "pkg/scene3d/camera.go",
              "line": 157
            },
            {
              "name": "Frustum",
              "anchor": "Camera.Frustum",
              "recv": "*Camera",
              "decl": "func (c *Camera) Frustum() math3d.Frustum",
              "doc": "Frustum extracts the camera's 6-plane view frustum in world space.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 230
            },
            {
              "name": "Lerp",
              "anchor": "Camera.Lerp",
              "recv": "*Camera",
              "decl": "func (c *Camera) Lerp(b *Camera, t float32) Camera",
              "doc": "Lerp returns the camera between c (t=0) and b (t=1): Pos blends linearly, Rot by shortest-path spherical interpolation, and the projection by [Projection.Lerp].\n\nA game driven by game.Loop keeps the camera from the previous update and draws prev.Lerp(cam, alpha) in Draw, so the view moves smoothly between fixed steps at any display rate.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 211
            },
            {
              "name": "LookAt",
              "anchor": "Camera.LookAt",
              "recv": "*Camera",
              "decl": "func (c *Camera) LookAt(target, up math3d.Vec3)",
              "doc": "LookAt orients the camera at its current Pos toward target with world up vector up.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 142
            },
            {
              "name": "ProjMatrix",
              "anchor": "Camera.ProjMatrix",
              "recv": "*Camera",
              "decl": "func (c *Camera) ProjMatrix() math3d.Mat4",
              "doc": "ProjMatrix returns the camera's projection matrix.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 220
            },
            {
              "name": "Right",
              "anchor": "Camera.Right",
              "recv": "*Camera",
              "decl": "func (c *Camera) Right() math3d.Vec3",
              "doc": "Right returns the camera's unit world-space right direction (+X in local space).\n",
              "file": "pkg/scene3d/camera.go",
              "line": 162
            },
            {
              "name": "ScreenRay",
              "anchor": "Camera.ScreenRay",
              "recv": "*Camera",
              "decl": "func (c *Camera) ScreenRay(screenX, screenY, viewW, viewH float32) math3d.Ray",
              "doc": "ScreenRay unprojects pixel coordinates (screenX, screenY) in a viewport of\nsize (viewW, viewH) through the inverse ViewProj matrix into a world-space\nRay with unit direction.\n\nScreen coordinates use (0, 0) at top-left and (viewW, viewH) at bottom-right.\nWorks identically for both perspective and orthographic cameras.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 240
            },
            {
              "name": "SetViewport",
              "anchor": "Camera.SetViewport",
              "recv": "*Camera",
              "decl": "func (c *Camera) SetViewport(width, height float32)",
              "doc": "SetViewport sets Projection.Aspect to width / height, so the projection follows the drawable it renders into (call it from a GPU view's resize callback). It leaves the camera unchanged unless both sizes are positive and finite, so a NaN or infinite size never reaches the projection.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 197
            },
            {
              "name": "SyncFromNode",
              "anchor": "Camera.SyncFromNode",
              "recv": "*Camera",
              "decl": "func (c *Camera) SyncFromNode(node *Node)",
              "doc": "SyncFromNode copies world position and rotation from node into c.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 147
            },
            {
              "name": "Up",
              "anchor": "Camera.Up",
              "recv": "*Camera",
              "decl": "func (c *Camera) Up() math3d.Vec3",
              "doc": "Up returns the camera's unit world-space up direction (+Y in local space).\n",
              "file": "pkg/scene3d/camera.go",
              "line": 167
            },
            {
              "name": "ViewMatrix",
              "anchor": "Camera.ViewMatrix",
              "recv": "*Camera",
              "decl": "func (c *Camera) ViewMatrix() math3d.Mat4",
              "doc": "ViewMatrix returns the right-handed view matrix transforming world space into\ncamera view space (inverse of the camera's rigid world transform).\n",
              "file": "pkg/scene3d/camera.go",
              "line": 173
            },
            {
              "name": "ViewProj",
              "anchor": "Camera.ViewProj",
              "recv": "*Camera",
              "decl": "func (c *Camera) ViewProj() math3d.Mat4",
              "doc": "ViewProj returns the combined projection-view matrix (Proj * View).\n",
              "file": "pkg/scene3d/camera.go",
              "line": 225
            },
            {
              "name": "WorldToScreen",
              "anchor": "Camera.WorldToScreen",
              "recv": "*Camera",
              "decl": "func (c *Camera) WorldToScreen(worldPos math3d.Vec3, viewW, viewH float32) (screen math3d.Vec2, depth float32, visible bool)",
              "doc": "WorldToScreen projects a world-space point into viewport pixel coordinates\n(top-left origin), returning NDC depth in [0, 1] and whether the point lies\nwithin the camera frustum.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 259
            }
          ]
        },
        {
          "name": "Collider",
          "anchor": "Collider",
          "decl": "type Collider interface {\n\t// LocalBounds returns the local-space AABB enclosing this collider.\n\tLocalBounds() math3d.AABB\n\t// IntersectRay tests a world-space ray against this collider transformed by\n\t// worldMat. On a hit, it returns ray parameter t >= 0 (with worldRay.At(t)\n\t// equal to the world hit point), unit world-space normal, triangle index\n\t// (-1 if not applicable), and true.\n\tIntersectRay(worldRay math3d.Ray, worldMat math3d.Mat4) (t float32, normal math3d.Vec3, triIndex int, hit bool)\n}",
          "doc": "Collider provides optional narrow-phase ray intersection for a Node after\nbroad-phase world AABB testing succeeds.\n",
          "file": "pkg/scene3d/pick.go",
          "line": 11,
          "members": [
            {
              "name": "LocalBounds",
              "anchor": "Collider.LocalBounds",
              "kind": "method",
              "doc": "LocalBounds returns the local-space AABB enclosing this collider."
            },
            {
              "name": "IntersectRay",
              "anchor": "Collider.IntersectRay",
              "kind": "method",
              "doc": "IntersectRay tests a world-space ray against this collider transformed by\nworldMat. On a hit, it returns ray parameter t >= 0 (with worldRay.At(t)\nequal to the world hit point), unit world-space normal, triangle index\n(-1 if not applicable), and true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Decal",
          "anchor": "Decal",
          "decl": "type Decal struct {\n\t// Transform positions, orients, and optionally scales the projection box.\n\tTransform math3d.Transform\n\t// HalfExtents sets the local half-size of the projection box before\n\t// Transform.Scale. Zero defaults to (0.5, 0.5, 0.5) (a unit 1x1x1 box).\n\tHalfExtents math3d.Vec3\n\n\t// Albedo tints the decal (0xRRGGBBAA). Zero defaults to opaque white\n\t// (core.RGB(0xffffff)). Its alpha channel multiplies Opacity.\n\tAlbedo core.Color\n\t// TextureID is an optional caller-defined texture or atlas identifier used\n\t// to group draw batches and select textures in [GPUDecalRenderer].\n\tTextureID uint32\n\n\t// Opacity scales overall visibility in [0, 1].\n\tOpacity float32\n\t// Age is the elapsed lifetime of the decal, advanced by [DecalPool.Step].\n\tAge time.Duration\n\t// Lifetime is the total duration before automatic expiration. Zero or\n\t// negative means the decal does not expire from age (though a full\n\t// [DecalPool] may still evict it).\n\tLifetime time.Duration\n\t// FadeIn ramps opacity from 0 to 1 over the first FadeIn of Age.\n\tFadeIn time.Duration\n\t// FadeOut ramps opacity from 1 to 0 over the final FadeOut of Lifetime.\n\tFadeOut time.Duration\n\n\t// AngleFadeStart and AngleFadeEnd are angles in radians from the opposite\n\t// projection axis (+Z). Surfaces within AngleFadeStart get full opacity;\n\t// surfaces at or past AngleFadeEnd (and all back-facing surfaces) fade to 0\n\t// and are rejected. When both are zero, [DefaultDecalAngleFadeStart] and\n\t// [DefaultDecalAngleFadeEnd] are used.\n\tAngleFadeStart float32\n\tAngleFadeEnd   float32\n\n\t// DepthFade in [0, 1] fades opacity smoothly to zero near the front and back\n\t// ends (|local.z| -> 0.5) of the projection box. Zero disables depth fade.\n\tDepthFade float32\n\n\t// LayerMask selects which [Node.Layer] bitmasks receive this decal. Zero\n\t// matches no nodes; [LayerAll] matches every non-zero layer.\n\tLayerMask uint32\n\n\t// SortOrder controls both draw ordering (ascending) and pool eviction\n\t// priority (lowest SortOrder is evicted first when a [DecalPool] is full).\n\tSortOrder int32\n\n\t// Bias offsets projected vertices along receiver surface normals (in world\n\t// units) to prevent z-fighting on forward rendering paths.\n\tBias float32\n}",
          "doc": "Decal describes a box-projected 3D decal in world space (#385).\n\nIts projection volume is an oriented box centered at Transform.Pos, rotated\nby Transform.Rot (identity when zero), with half-extents along local X, Y, Z\nequal to HalfExtents * Transform.Scale (defaulting to (0.5, 0.5, 0.5) when\nHalfExtents is zero and (1, 1, 1) when Transform.Scale is zero).\n\nFollowing math3d conventions, the decal projects along its local forward\ndirection (-Z) onto receiver surfaces whose outward normal faces local +Z.\nLocal box coordinates in [-0.5, 0.5]^3 map to texture coordinates\nu = local.x + 0.5 and v = 0.5 - local.y (top-left origin for WebGPU/GLES).\n",
          "file": "pkg/scene3d/decal.go",
          "line": 68,
          "members": [
            {
              "name": "Transform",
              "anchor": "Decal.Transform",
              "kind": "field",
              "doc": "Transform positions, orients, and optionally scales the projection box."
            },
            {
              "name": "HalfExtents",
              "anchor": "Decal.HalfExtents",
              "kind": "field",
              "doc": "HalfExtents sets the local half-size of the projection box before\nTransform.Scale. Zero defaults to (0.5, 0.5, 0.5) (a unit 1x1x1 box)."
            },
            {
              "name": "Albedo",
              "anchor": "Decal.Albedo",
              "kind": "field",
              "doc": "Albedo tints the decal (0xRRGGBBAA). Zero defaults to opaque white\n(core.RGB(0xffffff)). Its alpha channel multiplies Opacity."
            },
            {
              "name": "TextureID",
              "anchor": "Decal.TextureID",
              "kind": "field",
              "doc": "TextureID is an optional caller-defined texture or atlas identifier used\nto group draw batches and select textures in [GPUDecalRenderer]."
            },
            {
              "name": "Opacity",
              "anchor": "Decal.Opacity",
              "kind": "field",
              "doc": "Opacity scales overall visibility in [0, 1]."
            },
            {
              "name": "Age",
              "anchor": "Decal.Age",
              "kind": "field",
              "doc": "Age is the elapsed lifetime of the decal, advanced by [DecalPool.Step]."
            },
            {
              "name": "Lifetime",
              "anchor": "Decal.Lifetime",
              "kind": "field",
              "doc": "Lifetime is the total duration before automatic expiration. Zero or\nnegative means the decal does not expire from age (though a full\n[DecalPool] may still evict it)."
            },
            {
              "name": "FadeIn",
              "anchor": "Decal.FadeIn",
              "kind": "field",
              "doc": "FadeIn ramps opacity from 0 to 1 over the first FadeIn of Age."
            },
            {
              "name": "FadeOut",
              "anchor": "Decal.FadeOut",
              "kind": "field",
              "doc": "FadeOut ramps opacity from 1 to 0 over the final FadeOut of Lifetime."
            },
            {
              "name": "AngleFadeStart",
              "anchor": "Decal.AngleFadeStart",
              "kind": "field",
              "doc": "AngleFadeStart and AngleFadeEnd are angles in radians from the opposite\nprojection axis (+Z). Surfaces within AngleFadeStart get full opacity;\nsurfaces at or past AngleFadeEnd (and all back-facing surfaces) fade to 0\nand are rejected. When both are zero, [DefaultDecalAngleFadeStart] and\n[DefaultDecalAngleFadeEnd] are used."
            },
            {
              "name": "AngleFadeEnd",
              "anchor": "Decal.AngleFadeEnd",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DepthFade",
              "anchor": "Decal.DepthFade",
              "kind": "field",
              "doc": "DepthFade in [0, 1] fades opacity smoothly to zero near the front and back\nends (|local.z| -> 0.5) of the projection box. Zero disables depth fade."
            },
            {
              "name": "LayerMask",
              "anchor": "Decal.LayerMask",
              "kind": "field",
              "doc": "LayerMask selects which [Node.Layer] bitmasks receive this decal. Zero\nmatches no nodes; [LayerAll] matches every non-zero layer."
            },
            {
              "name": "SortOrder",
              "anchor": "Decal.SortOrder",
              "kind": "field",
              "doc": "SortOrder controls both draw ordering (ascending) and pool eviction\npriority (lowest SortOrder is evicted first when a [DecalPool] is full)."
            },
            {
              "name": "Bias",
              "anchor": "Decal.Bias",
              "kind": "field",
              "doc": "Bias offsets projected vertices along receiver surface normals (in world\nunits) to prevent z-fighting on forward rendering paths."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDecal",
              "anchor": "NewDecal",
              "decl": "func NewDecal() Decal",
              "doc": "NewDecal returns a Decal initialized with sensible defaults: identity\ntransform, unit 1x1x1 box, opaque white albedo, full opacity, LayerAll,\n60°–85° normal-angle fade, 0.1 depth fade, and 0.002 normal bias.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 123
            },
            {
              "name": "NewDecalOnSurface",
              "anchor": "NewDecalOnSurface",
              "decl": "func NewDecalOnSurface(pos, normal, up, halfExtents math3d.Vec3) Decal",
              "doc": "NewDecalOnSurface creates a Decal centered at pos, projecting along -normal\nonto a surface whose outward normal is normal, with local +Y aligned toward\nup and box half-extents halfExtents.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 140
            }
          ],
          "methods": [
            {
              "name": "AngleFade",
              "anchor": "Decal.AngleFade",
              "recv": "Decal",
              "decl": "func (d Decal) AngleFade(surfaceNormal math3d.Vec3) float32",
              "doc": "AngleFade evaluates d's normal-angle attenuation in [0, 1] for a world-space\nreceiver surface normal. Back-facing and perpendicular normals return 0.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 174
            },
            {
              "name": "EffectiveOpacity",
              "anchor": "Decal.EffectiveOpacity",
              "recv": "Decal",
              "decl": "func (d Decal) EffectiveOpacity() float32",
              "doc": "EffectiveOpacity returns d's combined scalar opacity in [0, 1] after applying\nOpacity, Albedo alpha, and age-based FadeIn / FadeOut.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 167
            },
            {
              "name": "Expired",
              "anchor": "Decal.Expired",
              "recv": "Decal",
              "decl": "func (d Decal) Expired() bool",
              "doc": "Expired reports whether d has a positive Lifetime and Age >= Lifetime.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 161
            },
            {
              "name": "Forward",
              "anchor": "Decal.Forward",
              "recv": "Decal",
              "decl": "func (d Decal) Forward() math3d.Vec3",
              "doc": "Forward returns the decal's unit world-space projection direction (local -Z).\n",
              "file": "pkg/scene3d/decal.go",
              "line": 156
            },
            {
              "name": "WorldBounds",
              "anchor": "Decal.WorldBounds",
              "recv": "Decal",
              "decl": "func (d Decal) WorldBounds() math3d.AABB",
              "doc": "WorldBounds returns the tight world-space AABB enclosing d's oriented\nprojection box, or [math3d.AABBEmpty] if d has non-finite or non-positive\ndimensions.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 186
            }
          ]
        },
        {
          "name": "DecalBatch",
          "anchor": "DecalBatch",
          "decl": "type DecalBatch struct {\n\tDecalID    uint64\n\tTextureID  uint32\n\tSortOrder  int32\n\tFirstIndex uint32\n\tIndexCount uint32\n}",
          "doc": "DecalBatch describes a contiguous range of indices in a [DecalGeometry]\nproduced by one decal.\n",
          "file": "pkg/scene3d/decal.go",
          "line": 441,
          "members": [
            {
              "name": "DecalID",
              "anchor": "DecalBatch.DecalID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TextureID",
              "anchor": "DecalBatch.TextureID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SortOrder",
              "anchor": "DecalBatch.SortOrder",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FirstIndex",
              "anchor": "DecalBatch.FirstIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IndexCount",
              "anchor": "DecalBatch.IndexCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DecalGeometry",
          "anchor": "DecalGeometry",
          "decl": "type DecalGeometry struct {\n\tVertices []DecalVertex\n\tIndices  []uint32\n\tBatches  []DecalBatch\n}",
          "doc": "DecalGeometry holds forward-path clipped decal triangles ready for CPU\ninspection or upload through [GPUDecalRenderer]. Call Reset to reuse backing\nstorage across frames without allocating.\n",
          "file": "pkg/scene3d/decal.go",
          "line": 452,
          "members": [
            {
              "name": "Vertices",
              "anchor": "DecalGeometry.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "DecalGeometry.Indices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Batches",
              "anchor": "DecalGeometry.Batches",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "AppendIndexData",
              "anchor": "DecalGeometry.AppendIndexData",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) AppendIndexData(dst []byte) []byte",
              "doc": "AppendIndexData appends g's indices to dst at [DecalGeometry.IndexFormat]\nwidth, little-endian and zero-padded to a 4-byte multiple.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 567
            },
            {
              "name": "AppendVertexData",
              "anchor": "DecalGeometry.AppendVertexData",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) AppendVertexData(dst []byte) []byte",
              "doc": "AppendVertexData appends g's interleaved vertices to dst in the little-endian\nlayout of [DecalVertexLayout]. It allocates only when dst lacks capacity.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 538
            },
            {
              "name": "Bounds",
              "anchor": "DecalGeometry.Bounds",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) Bounds() math3d.AABB",
              "doc": "Bounds returns the world-space AABB enclosing all vertices in g, or\n[math3d.AABBEmpty] when g is empty.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 494
            },
            {
              "name": "IndexCount",
              "anchor": "DecalGeometry.IndexCount",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) IndexCount() int",
              "doc": "IndexCount returns the number of triangle indices in g.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 477
            },
            {
              "name": "IndexDataSize",
              "anchor": "DecalGeometry.IndexDataSize",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) IndexDataSize() int",
              "doc": "IndexDataSize returns the byte length [DecalGeometry.AppendIndexData] writes,\npadded to a 4-byte multiple as WebGPU requires.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 525
            },
            {
              "name": "IndexFormat",
              "anchor": "DecalGeometry.IndexFormat",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) IndexFormat() gpu.IndexFormat",
              "doc": "IndexFormat returns [gpu.IndexUint16] when every vertex fits below 0xFFFF\n(leaving WebGL 2's primitive restart sentinel free), otherwise\n[gpu.IndexUint32].\n",
              "file": "pkg/scene3d/decal.go",
              "line": 508
            },
            {
              "name": "Reset",
              "anchor": "DecalGeometry.Reset",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) Reset()",
              "doc": "Reset clears g's slices while preserving their allocated capacity.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 459
            },
            {
              "name": "TriangleCount",
              "anchor": "DecalGeometry.TriangleCount",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) TriangleCount() int",
              "doc": "TriangleCount returns the number of projected triangles in g.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 485
            },
            {
              "name": "VertexCount",
              "anchor": "DecalGeometry.VertexCount",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) VertexCount() int",
              "doc": "VertexCount returns the number of projected vertices in g.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 469
            },
            {
              "name": "VertexDataSize",
              "anchor": "DecalGeometry.VertexDataSize",
              "recv": "*DecalGeometry",
              "decl": "func (g *DecalGeometry) VertexDataSize() int",
              "doc": "VertexDataSize returns the byte length [DecalGeometry.AppendVertexData] writes.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 516
            }
          ]
        },
        {
          "name": "DecalHandle",
          "anchor": "DecalHandle",
          "decl": "type DecalHandle struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DecalHandle uniquely identifies a live decal stored in a [DecalPool].\nThe zero value is invalid.\n",
          "file": "pkg/scene3d/decal.go",
          "line": 1037,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "DecalHandle.Valid",
              "recv": "DecalHandle",
              "decl": "func (h DecalHandle) Valid() bool",
              "doc": "Valid reports whether h is a non-zero handle.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1043
            }
          ]
        },
        {
          "name": "DecalPool",
          "anchor": "DecalPool",
          "decl": "type DecalPool struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "DecalPool is a fixed-capacity pool of live 3D decals (#385).\n\nWhen the pool reaches capacity, [DecalPool.Spawn] deterministically evicts\nthe live decal with the lowest [Decal.SortOrder], breaking ties by oldest\nspawn order (FIFO ring behavior when priorities are equal). [DecalPool.Step]\nages live decals and expires those whose Age >= Lifetime. All steady-state\noperations (Spawn, Remove, Step, BuildGeometry) perform zero heap\nallocations.\n",
          "file": "pkg/scene3d/decal.go",
          "line": 1062,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDecalPool",
              "anchor": "NewDecalPool",
              "decl": "func NewDecalPool(maxDecals int) *DecalPool",
              "doc": "NewDecalPool returns a fixed-capacity DecalPool holding at most maxDecals\nlive decals. A non-positive maxDecals produces a zero-capacity pool.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1073
            }
          ],
          "methods": [
            {
              "name": "Active",
              "anchor": "DecalPool.Active",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) Active() []Decal",
              "doc": "Active returns a newly allocated slice of all live decals in deterministic\ndraw order (ascending SortOrder, then oldest-to-newest). Use [DecalPool.ActiveInto]\nor [DecalPool.ForEach] to avoid allocating per frame.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1271
            },
            {
              "name": "ActiveInto",
              "anchor": "DecalPool.ActiveInto",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) ActiveInto(dst []Decal) []Decal",
              "doc": "ActiveInto appends all live decals in deterministic draw order to dst and\nreturns the extended slice. Pass dst[:0] for zero-allocation reuse.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1280
            },
            {
              "name": "BuildGeometry",
              "anchor": "DecalPool.BuildGeometry",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) BuildGeometry(scene *Scene, dst *DecalGeometry) int",
              "doc": "BuildGeometry resets dst and projects every live decal in p onto scene in\ndeterministic draw order (ascending SortOrder, then oldest-to-newest). It\nreturns the total number of projected triangles. After initial slice warmup,\nBuildGeometry performs zero heap allocations.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1309
            },
            {
              "name": "BuildReceiverGeometry",
              "anchor": "DecalPool.BuildReceiverGeometry",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) BuildReceiverGeometry(receiver DecalReceiver, worldMat math3d.Mat4, layer uint32, dst *DecalGeometry) int",
              "doc": "BuildReceiverGeometry resets dst and projects every live decal in p whose\nLayerMask matches layer onto receiver transformed by worldMat. It returns the\ntotal number of projected triangles.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1330
            },
            {
              "name": "Cap",
              "anchor": "DecalPool.Cap",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) Cap() int",
              "doc": "Cap returns the maximum number of live decals p can hold.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1091
            },
            {
              "name": "Clear",
              "anchor": "DecalPool.Clear",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) Clear()",
              "doc": "Clear removes every live decal from p and invalidates all outstanding\nhandles.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1185
            },
            {
              "name": "Contains",
              "anchor": "DecalPool.Contains",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) Contains(h DecalHandle) bool",
              "doc": "Contains reports whether h refers to a currently live decal in p.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1122
            },
            {
              "name": "ForEach",
              "anchor": "DecalPool.ForEach",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) ForEach(fn func(DecalHandle, *Decal) bool)",
              "doc": "ForEach invokes fn for every live decal in deterministic draw order\n(ascending SortOrder, then oldest-to-newest). Return false to stop early.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1292
            },
            {
              "name": "Get",
              "anchor": "DecalPool.Get",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) Get(h DecalHandle) (*Decal, bool)",
              "doc": "Get returns a pointer to the live decal identified by h, or (nil, false) if\nh is invalid, expired, removed, or evicted.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1129
            },
            {
              "name": "Len",
              "anchor": "DecalPool.Len",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) Len() int",
              "doc": "Len returns the number of live decals currently in p.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1099
            },
            {
              "name": "Remove",
              "anchor": "DecalPool.Remove",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) Remove(h DecalHandle) bool",
              "doc": "Remove deletes the live decal identified by h and returns true if it was\npresent.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1174
            },
            {
              "name": "Spawn",
              "anchor": "DecalPool.Spawn",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) Spawn(d Decal) DecalHandle",
              "doc": "Spawn inserts d into p and returns its handle. If p is at capacity, the live\ndecal with the lowest SortOrder (and oldest spawn sequence among ties) is\nevicted deterministically. If p has zero capacity or d is already expired,\nSpawn returns an invalid zero DecalHandle.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1141
            },
            {
              "name": "Step",
              "anchor": "DecalPool.Step",
              "recv": "*DecalPool",
              "decl": "func (p *DecalPool) Step(dt time.Duration) int",
              "doc": "Step advances Age on every live decal by dt and removes decals whose\nLifetime > 0 and Age >= Lifetime. It returns the number of expired decals.\nNon-positive dt is ignored.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 1205
            }
          ]
        },
        {
          "name": "DecalReceiver",
          "anchor": "DecalReceiver",
          "decl": "type DecalReceiver interface {\n\t// DecalTriangles invokes emit for each local-space triangle (p0, p1, p2)\n\t// and its local-space vertex normals (n0, n1, n2). Passing zero normals\n\t// tells the projector to derive the flat geometric face normal from\n\t// (p1 - p0) x (p2 - p0). Returning false stops iteration early.\n\tDecalTriangles(emit func(p0, p1, p2, n0, n1, n2 math3d.Vec3) bool)\n}",
          "doc": "DecalReceiver supplies local-space triangles for box-projected decals.\n[*MeshCollider] and [*DecalReceiverMesh] implement DecalReceiver.\n",
          "file": "pkg/scene3d/decal.go",
          "line": 306,
          "members": [
            {
              "name": "DecalTriangles",
              "anchor": "DecalReceiver.DecalTriangles",
              "kind": "method",
              "doc": "DecalTriangles invokes emit for each local-space triangle (p0, p1, p2)\nand its local-space vertex normals (n0, n1, n2). Passing zero normals\ntells the projector to derive the flat geometric face normal from\n(p1 - p0) x (p2 - p0). Returning false stops iteration early."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DecalReceiverMesh",
          "anchor": "DecalReceiverMesh",
          "decl": "type DecalReceiverMesh struct {\n\tPositions []math3d.Vec3\n\tNormals   []math3d.Vec3\n\tIndices   []uint32\n}",
          "doc": "DecalReceiverMesh is indexed or non-indexed local-space triangle geometry\nthat implements [DecalReceiver]. Positions is required; Normals and Indices\nare optional.\n",
          "file": "pkg/scene3d/decal.go",
          "line": 332,
          "members": [
            {
              "name": "Positions",
              "anchor": "DecalReceiverMesh.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "DecalReceiverMesh.Normals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "DecalReceiverMesh.Indices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DecalTriangles",
              "anchor": "DecalReceiverMesh.DecalTriangles",
              "recv": "*DecalReceiverMesh",
              "decl": "func (m *DecalReceiverMesh) DecalTriangles(emit func(p0, p1, p2, n0, n1, n2 math3d.Vec3) bool)",
              "doc": "DecalTriangles implements [DecalReceiver] for DecalReceiverMesh.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 353
            },
            {
              "name": "LocalBounds",
              "anchor": "DecalReceiverMesh.LocalBounds",
              "recv": "*DecalReceiverMesh",
              "decl": "func (m *DecalReceiverMesh) LocalBounds() math3d.AABB",
              "doc": "LocalBounds returns the tight local-space AABB enclosing m.Positions.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 339
            }
          ]
        },
        {
          "name": "DecalVertex",
          "anchor": "DecalVertex",
          "decl": "type DecalVertex struct {\n\t// Pos is the world-space position offset along Normal by Decal.Bias.\n\tPos math3d.Vec3\n\t// Normal is the unit world-space surface normal.\n\tNormal math3d.Vec3\n\t// UV is the projected texture coordinate in [0, 1] with top-left origin.\n\tUV math3d.Vec2\n\t// Color holds the linear RGBA tint (R, G, B in [0, 1]) with opacity,\n\t// age fade, normal-angle fade, and depth fade folded into W (alpha).\n\tColor math3d.Vec4\n}",
          "doc": "DecalVertex is one clipped, biased vertex produced by decal projection.\n",
          "file": "pkg/scene3d/decal.go",
          "line": 427,
          "members": [
            {
              "name": "Pos",
              "anchor": "DecalVertex.Pos",
              "kind": "field",
              "doc": "Pos is the world-space position offset along Normal by Decal.Bias."
            },
            {
              "name": "Normal",
              "anchor": "DecalVertex.Normal",
              "kind": "field",
              "doc": "Normal is the unit world-space surface normal."
            },
            {
              "name": "UV",
              "anchor": "DecalVertex.UV",
              "kind": "field",
              "doc": "UV is the projected texture coordinate in [0, 1] with top-left origin."
            },
            {
              "name": "Color",
              "anchor": "DecalVertex.Color",
              "kind": "field",
              "doc": "Color holds the linear RGBA tint (R, G, B in [0, 1]) with opacity,\nage fade, normal-angle fade, and depth fade folded into W (alpha)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FPSController",
          "anchor": "FPSController",
          "decl": "type FPSController struct {\n\tPos       math3d.Vec3\n\tYaw       float32 // Radians around +Y (0 faces -Z)\n\tPitch     float32 // Radians around local +X (positive looks up)\n\tMinPitch  float32 // Defaults to -89° when MinPitch == MaxPitch == 0\n\tMaxPitch  float32 // Defaults to +89° when MinPitch == MaxPitch == 0\n\tMoveSpeed float32 // Speed multiplier in units/second (defaults to 1 when <= 0)\n\tGrounded  bool    // When true, forward/right move on the horizontal XZ plane and up moves along +Y\n}",
          "doc": "FPSController implements a first-person camera controller with yaw/pitch\norientation, clamped pitch, and local forward/right/up movement.\n",
          "file": "pkg/scene3d/camera.go",
          "line": 497,
          "members": [
            {
              "name": "Pos",
              "anchor": "FPSController.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Yaw",
              "anchor": "FPSController.Yaw",
              "kind": "field",
              "doc": "Radians around +Y (0 faces -Z)"
            },
            {
              "name": "Pitch",
              "anchor": "FPSController.Pitch",
              "kind": "field",
              "doc": "Radians around local +X (positive looks up)"
            },
            {
              "name": "MinPitch",
              "anchor": "FPSController.MinPitch",
              "kind": "field",
              "doc": "Defaults to -89° when MinPitch == MaxPitch == 0"
            },
            {
              "name": "MaxPitch",
              "anchor": "FPSController.MaxPitch",
              "kind": "field",
              "doc": "Defaults to +89° when MinPitch == MaxPitch == 0"
            },
            {
              "name": "MoveSpeed",
              "anchor": "FPSController.MoveSpeed",
              "kind": "field",
              "doc": "Speed multiplier in units/second (defaults to 1 when <= 0)"
            },
            {
              "name": "Grounded",
              "anchor": "FPSController.Grounded",
              "kind": "field",
              "doc": "When true, forward/right move on the horizontal XZ plane and up moves along +Y"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFPSController",
              "anchor": "NewFPSController",
              "decl": "func NewFPSController(pos math3d.Vec3) *FPSController",
              "doc": "NewFPSController creates an FPSController at pos with pitch clamped to [-89°, +89°].\n",
              "file": "pkg/scene3d/camera.go",
              "line": 508
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "FPSController.Apply",
              "recv": "*FPSController",
              "decl": "func (c *FPSController) Apply(cam *Camera)",
              "doc": "Apply writes the controller's current Pos and Rotation into cam.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 577
            },
            {
              "name": "Forward",
              "anchor": "FPSController.Forward",
              "recv": "*FPSController",
              "decl": "func (c *FPSController) Forward() math3d.Vec3",
              "doc": "Forward returns the controller's local unit forward vector.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 533
            },
            {
              "name": "Look",
              "anchor": "FPSController.Look",
              "recv": "*FPSController",
              "decl": "func (c *FPSController) Look(deltaYaw, deltaPitch float32)",
              "doc": "Look adjusts Yaw and Pitch by (deltaYaw, deltaPitch) radians, clamping Pitch\nto [MinPitch, MaxPitch].\n",
              "file": "pkg/scene3d/camera.go",
              "line": 519
            },
            {
              "name": "Move",
              "anchor": "FPSController.Move",
              "recv": "*FPSController",
              "decl": "func (c *FPSController) Move(forward, right, up float32, dt time.Duration)",
              "doc": "Move translates Pos along the controller's local forward, right, and up axes\nscaled by MoveSpeed and dt.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 549
            },
            {
              "name": "Right",
              "anchor": "FPSController.Right",
              "recv": "*FPSController",
              "decl": "func (c *FPSController) Right() math3d.Vec3",
              "doc": "Right returns the controller's local unit right vector.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 538
            },
            {
              "name": "Rotation",
              "anchor": "FPSController.Rotation",
              "recv": "*FPSController",
              "decl": "func (c *FPSController) Rotation() math3d.Quat",
              "doc": "Rotation returns the unit orientation quaternion for (Yaw, Pitch).\n",
              "file": "pkg/scene3d/camera.go",
              "line": 526
            },
            {
              "name": "Up",
              "anchor": "FPSController.Up",
              "recv": "*FPSController",
              "decl": "func (c *FPSController) Up() math3d.Vec3",
              "doc": "Up returns the controller's local unit up vector.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 543
            }
          ]
        },
        {
          "name": "GPUDecalOptions",
          "anchor": "GPUDecalOptions",
          "decl": "type GPUDecalOptions struct {\n\t// Label prefixes GPU resource labels in capture tools.\n\tLabel string\n\t// DepthFormat is the depth attachment format of the forward render pass, or\n\t// gpu.FormatUndefined when drawing without a depth buffer.\n\tDepthFormat gpu.TextureFormat\n\t// CameraLayout is an optional bind group layout for @group(0) matching\n\t// [DecalWGSL] (such as render3d.CameraBuffer.Layout()). When nil, the\n\t// renderer owns its own camera uniform buffer updated via\n\t// [GPUDecalRenderer.WriteCamera].\n\tCameraLayout *gpu.BindGroupLayout\n\t// Retained opts owned GPU buffers, sampler, and textures into automatic\n\t// recreation across GPU device loss.\n\tRetained bool\n\t// DepthBias and DepthBiasSlopeScale push decal fragments slightly closer in\n\t// the depth buffer in addition to Decal.Bias along the surface normal. When\n\t// both are zero and DepthFormat is set, defaults of -1 and -1.0 are used.\n\tDepthBias           int32\n\tDepthBiasSlopeScale float32\n\t// DoubleSided disables back-face culling (gpu.CullNone) when true; the\n\t// default false uses gpu.CullBack.\n\tDoubleSided bool\n}",
          "doc": "GPUDecalOptions configures [NewGPUDecalRenderer].\n",
          "file": "pkg/scene3d/decal_gpu.go",
          "line": 85,
          "members": [
            {
              "name": "Label",
              "anchor": "GPUDecalOptions.Label",
              "kind": "field",
              "doc": "Label prefixes GPU resource labels in capture tools."
            },
            {
              "name": "DepthFormat",
              "anchor": "GPUDecalOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat is the depth attachment format of the forward render pass, or\ngpu.FormatUndefined when drawing without a depth buffer."
            },
            {
              "name": "CameraLayout",
              "anchor": "GPUDecalOptions.CameraLayout",
              "kind": "field",
              "doc": "CameraLayout is an optional bind group layout for @group(0) matching\n[DecalWGSL] (such as render3d.CameraBuffer.Layout()). When nil, the\nrenderer owns its own camera uniform buffer updated via\n[GPUDecalRenderer.WriteCamera]."
            },
            {
              "name": "Retained",
              "anchor": "GPUDecalOptions.Retained",
              "kind": "field",
              "doc": "Retained opts owned GPU buffers, sampler, and textures into automatic\nrecreation across GPU device loss."
            },
            {
              "name": "DepthBias",
              "anchor": "GPUDecalOptions.DepthBias",
              "kind": "field",
              "doc": "DepthBias and DepthBiasSlopeScale push decal fragments slightly closer in\nthe depth buffer in addition to Decal.Bias along the surface normal. When\nboth are zero and DepthFormat is set, defaults of -1 and -1.0 are used."
            },
            {
              "name": "DepthBiasSlopeScale",
              "anchor": "GPUDecalOptions.DepthBiasSlopeScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DoubleSided",
              "anchor": "GPUDecalOptions.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided disables back-face culling (gpu.CullNone) when true; the\ndefault false uses gpu.CullBack."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GPUDecalRenderer",
          "anchor": "GPUDecalRenderer",
          "decl": "type GPUDecalRenderer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "GPUDecalRenderer draws [DecalGeometry] on the forward rendering path with\nalpha blending, depth testing without depth writes, and optional per-TextureID\nalbedo textures (#385).\n\nCreate it once when the GPU device is ready (in gpu.View OnReady or on a\nsoftware device), upload projected decals with [GPUDecalRenderer.Upload], and\ncall [GPUDecalRenderer.Draw] (or [GPUDecalRenderer.DrawWithCamera] when\nsharing a render3d.CameraBuffer) inside the opaque/forward render pass after\ndrawing scene geometry.\n",
          "file": "pkg/scene3d/decal_gpu.go",
          "line": 123,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGPUDecalRenderer",
              "anchor": "NewGPUDecalRenderer",
              "decl": "func NewGPUDecalRenderer(cx *core.Scope, dev *gpu.Device, opts GPUDecalOptions) (*GPUDecalRenderer, error)",
              "doc": "NewGPUDecalRenderer compiles [DecalWGSL] and creates the forward decal\npipeline, default white albedo texture, sampler, and (when opts.CameraLayout\nis nil) an internal camera uniform buffer on dev, scoped to cx.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 156
            }
          ],
          "methods": [
            {
              "name": "CameraLayout",
              "anchor": "GPUDecalRenderer.CameraLayout",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) CameraLayout() *gpu.BindGroupLayout",
              "doc": "CameraLayout returns the bind group layout used at @group(0).\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 331
            },
            {
              "name": "Close",
              "anchor": "GPUDecalRenderer.Close",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) Close() error",
              "doc": "Close releases all GPU resources owned by r. It is safe to call more than\nonce.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 605
            },
            {
              "name": "Draw",
              "anchor": "GPUDecalRenderer.Draw",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) Draw(pass *gpu.RenderPass)",
              "doc": "Draw records the uploaded decal draws into pass using the renderer's internal\ncamera bind group (updated via [GPUDecalRenderer.WriteCamera]). It is a no-op\nif no decals are uploaded or if the renderer was configured with an external\nCameraLayout (use [GPUDecalRenderer.DrawWithCamera] instead).\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 546
            },
            {
              "name": "DrawWithCamera",
              "anchor": "GPUDecalRenderer.DrawWithCamera",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) DrawWithCamera(pass *gpu.RenderPass, cameraGroup *gpu.BindGroup)",
              "doc": "DrawWithCamera records the uploaded decal draws into pass using cameraGroup\nat @group(0) (for example, render3d.CameraBuffer.BindGroup()). Consecutive\nbatches that share the same TextureID are merged into a single DrawIndexed\ncall.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 557
            },
            {
              "name": "IndexCount",
              "anchor": "GPUDecalRenderer.IndexCount",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) IndexCount() uint32",
              "doc": "IndexCount returns the number of decal triangle indices currently uploaded.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 347
            },
            {
              "name": "Pipeline",
              "anchor": "GPUDecalRenderer.Pipeline",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) Pipeline() *gpu.Pipeline",
              "doc": "Pipeline returns the renderer's forward decal pipeline.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 323
            },
            {
              "name": "SetTexture",
              "anchor": "GPUDecalRenderer.SetTexture",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) SetTexture(id uint32, tex *gpu.Texture) error",
              "doc": "SetTexture associates a caller-managed GPU texture with id so decals with\nDecal.TextureID == id sample tex. Passing nil removes the binding and reverts\nid to the default 1x1 white texture.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 390
            },
            {
              "name": "TextureLayout",
              "anchor": "GPUDecalRenderer.TextureLayout",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) TextureLayout() *gpu.BindGroupLayout",
              "doc": "TextureLayout returns the bind group layout used at @group(1).\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 339
            },
            {
              "name": "Upload",
              "anchor": "GPUDecalRenderer.Upload",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) Upload(geom *DecalGeometry) error",
              "doc": "Upload copies geom's vertices, indices, and batch ranges to GPU buffers,\nreusing previously allocated buffers whenever they are large enough.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 477
            },
            {
              "name": "UploadTextureRGBA",
              "anchor": "GPUDecalRenderer.UploadTextureRGBA",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) UploadTextureRGBA(id uint32, width, height uint32, rgba []byte) error",
              "doc": "UploadTextureRGBA creates a FormatRGBA8Unorm texture of dimensions\nwidth x height, uploads rgba (4 bytes per pixel, tightly packed), and binds\nit to id. The renderer owns and closes the created texture on replacement or\nClose.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 418
            },
            {
              "name": "WriteCamera",
              "anchor": "GPUDecalRenderer.WriteCamera",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) WriteCamera(cam *Camera)",
              "doc": "WriteCamera uploads cam's view, projection, view-projection, and eye point\nto the renderer's internal camera uniform buffer. It is a no-op if the\nrenderer was constructed with an external CameraLayout or if cam is nil.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 357
            },
            {
              "name": "WriteCameraMatrices",
              "anchor": "GPUDecalRenderer.WriteCameraMatrices",
              "recv": "*GPUDecalRenderer",
              "decl": "func (r *GPUDecalRenderer) WriteCameraMatrices(view, proj math3d.Mat4, eye math3d.Vec4)",
              "doc": "WriteCameraMatrices uploads explicit view, projection, and homogeneous eye\nvalues to the renderer's internal camera uniform buffer.\n",
              "file": "pkg/scene3d/decal_gpu.go",
              "line": 368
            }
          ]
        },
        {
          "name": "MeshCollider",
          "anchor": "MeshCollider",
          "decl": "type MeshCollider struct {\n\tTriangles []math3d.Vec3\n\t// contains filtered or unexported fields\n}",
          "doc": "MeshCollider performs exact double-sided ray-triangle intersection against a\ntriangle soup stored in node-local space. Every 3 consecutive vertices in\nTriangles form one triangle (v0, v1, v2).\n\nLocalBounds is cached: replacing or resizing Triangles is detected automatically, but after editing vertices of the same slice in place call MarkDirty. Either way the owning node's world bounds and BVH entry refresh only when the node is marked dirty, so call the node's MarkDirty (or SetCollider) after changing Triangles, or BVH-driven raycasts and picks keep testing the old bounds.\n",
          "file": "pkg/scene3d/pick.go",
          "line": 26,
          "members": [
            {
              "name": "Triangles",
              "anchor": "MeshCollider.Triangles",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DecalTriangles",
              "anchor": "MeshCollider.DecalTriangles",
              "recv": "*MeshCollider",
              "decl": "func (m *MeshCollider) DecalTriangles(emit func(p0, p1, p2, n0, n1, n2 math3d.Vec3) bool)",
              "doc": "DecalTriangles implements [DecalReceiver] for MeshCollider, emitting every\ncomplete triangle in m.Triangles with flat geometric face normals.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 316
            },
            {
              "name": "IntersectRay",
              "anchor": "MeshCollider.IntersectRay",
              "recv": "*MeshCollider",
              "decl": "func (m *MeshCollider) IntersectRay(worldRay math3d.Ray, worldMat math3d.Mat4) (float32, math3d.Vec3, int, bool)",
              "doc": "IntersectRay tests worldRay against every triangle in m using\nRay.IntersectTriangle, returning the closest hit with t >= 0.\n",
              "file": "pkg/scene3d/pick.go",
              "line": 60
            },
            {
              "name": "LocalBounds",
              "anchor": "MeshCollider.LocalBounds",
              "recv": "*MeshCollider",
              "decl": "func (m *MeshCollider) LocalBounds() math3d.AABB",
              "doc": "LocalBounds returns the tight local-space AABB containing all complete\ntriangles in m.Triangles. The result is cached until Triangles is replaced or resized or MarkDirty is called, so node syncs and picks do not rescan every triangle (#546).\n",
              "file": "pkg/scene3d/pick.go",
              "line": 37
            },
            {
              "name": "MarkDirty",
              "anchor": "MeshCollider.MarkDirty",
              "recv": "*MeshCollider",
              "decl": "func (m *MeshCollider) MarkDirty()",
              "doc": "MarkDirty drops the cached LocalBounds after vertices in Triangles were edited in place. Call the owning node's MarkDirty too so its world bounds and BVH entry refresh.\n",
              "file": "pkg/scene3d/pick.go",
              "line": 54
            }
          ]
        },
        {
          "name": "Node",
          "anchor": "Node",
          "decl": "type Node struct {\n\tName        string\n\tLocal       math3d.Transform\n\tVisible     bool\n\tEnabled     bool\n\tLayer       uint32\n\tLocalBounds math3d.AABB\n\tTags        []string\n\tUserData    any\n\tAttachments map[string]any\n\tCollider    Collider\n\t// contains filtered or unexported fields\n}",
          "doc": "Node is a transformable element in a 3D scene hierarchy.\n\nAlways construct nodes with [NewNode] so Local defaults to TransformIdentity,\nVisible and Enabled default to true, Layer defaults to LayerDefault, and\nLocalBounds defaults to AABBEmpty.\n\nWorld transforms, matrices, and bounds are cached and recomputed lazily when\ndirty. Prefer the setter methods (SetLocal, SetPosition, SetRotation,\nSetScale, SetLocalBounds) or call MarkDirty after mutating Local directly so\ndirty flags propagate immediately to descendants.\n",
          "file": "pkg/scene3d/node.go",
          "line": 38,
          "members": [
            {
              "name": "Name",
              "anchor": "Node.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Local",
              "anchor": "Node.Local",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visible",
              "anchor": "Node.Visible",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Enabled",
              "anchor": "Node.Enabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "Node.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalBounds",
              "anchor": "Node.LocalBounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tags",
              "anchor": "Node.Tags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserData",
              "anchor": "Node.UserData",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Attachments",
              "anchor": "Node.Attachments",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Collider",
              "anchor": "Node.Collider",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNode",
              "anchor": "NewNode",
              "decl": "func NewNode(name string) *Node",
              "doc": "NewNode returns a new visible, enabled Node with an identity local transform,\nLayerDefault, and an empty local bounding box.\n",
              "file": "pkg/scene3d/node.go",
              "line": 75
            }
          ],
          "methods": [
            {
              "name": "AddChild",
              "anchor": "Node.AddChild",
              "recv": "*Node",
              "decl": "func (n *Node) AddChild(child *Node) error",
              "doc": "AddChild attaches child as a direct child of n, detaching it from any\nprevious parent. It returns ErrNilNode if child is nil and ErrCycle if child\nis n or an ancestor of n.\n",
              "file": "pkg/scene3d/node.go",
              "line": 120
            },
            {
              "name": "AddTag",
              "anchor": "Node.AddTag",
              "recv": "*Node",
              "decl": "func (n *Node) AddTag(tag string)",
              "doc": "AddTag appends tag to n.Tags if not already present.\n",
              "file": "pkg/scene3d/node.go",
              "line": 544
            },
            {
              "name": "Attach",
              "anchor": "Node.Attach",
              "recv": "*Node",
              "decl": "func (n *Node) Attach(socket string, child *Node) error",
              "doc": "Attach mounts child onto the named socket point of n.\n\nIf socket is empty, child is added directly to n. Otherwise, Attach resolves\nan existing defined socket or descendant node with that name, or creates a\nnew identity socket node under n if none exists yet. Cycle checks run before\ncreating any implicit socket so failed calls leave n unmodified.\n",
              "file": "pkg/scene3d/node.go",
              "line": 620
            },
            {
              "name": "Attached",
              "anchor": "Node.Attached",
              "recv": "*Node",
              "decl": "func (n *Node) Attached(socket string) []*Node",
              "doc": "Attached returns a shallow copy of the nodes currently attached to the named\nsocket on n, or nil if the socket does not exist.\n",
              "file": "pkg/scene3d/node.go",
              "line": 640
            },
            {
              "name": "Attachment",
              "anchor": "Node.Attachment",
              "recv": "*Node",
              "decl": "func (n *Node) Attachment(key string) (any, bool)",
              "doc": "Attachment retrieves the named attachment value from n.\n",
              "file": "pkg/scene3d/node.go",
              "line": 661
            },
            {
              "name": "Children",
              "anchor": "Node.Children",
              "recv": "*Node",
              "decl": "func (n *Node) Children() []*Node",
              "doc": "Children returns a shallow copy of n's direct children slice.\n",
              "file": "pkg/scene3d/node.go",
              "line": 97
            },
            {
              "name": "DecalReceiver",
              "anchor": "Node.DecalReceiver",
              "recv": "*Node",
              "decl": "func (n *Node) DecalReceiver() DecalReceiver",
              "doc": "DecalReceiver returns n's [DecalReceiver] attachment if present, or\nn.Collider if it implements [DecalReceiver], or nil otherwise.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 413
            },
            {
              "name": "DefineSocket",
              "anchor": "Node.DefineSocket",
              "recv": "*Node",
              "decl": "func (n *Node) DefineSocket(name string, local math3d.Transform) *Node",
              "doc": "DefineSocket creates or updates a named socket attachment point on n with the\ngiven local transform relative to n and returns the socket node.\n\nChildren attached via Attach(name, child) become children of this socket node\nand follow n's transforms automatically.\n",
              "file": "pkg/scene3d/node.go",
              "line": 578
            },
            {
              "name": "Detach",
              "anchor": "Node.Detach",
              "recv": "*Node",
              "decl": "func (n *Node) Detach(keepWorld bool) bool",
              "doc": "Detach removes n from its current parent. When keepWorld is true, n.Local is\nupdated to n's prior world transform so its world pose is preserved exactly.\nReturns true if n had a parent and was detached.\n",
              "file": "pkg/scene3d/node.go",
              "line": 266
            },
            {
              "name": "DirtyUpdates",
              "anchor": "Node.DirtyUpdates",
              "recv": "*Node",
              "decl": "func (n *Node) DirtyUpdates() uint64",
              "doc": "DirtyUpdates returns the cumulative number of times n's cached world\ntransform and matrix have been recomputed.\n",
              "file": "pkg/scene3d/node.go",
              "line": 435
            },
            {
              "name": "EffectiveEnabled",
              "anchor": "Node.EffectiveEnabled",
              "recv": "*Node",
              "decl": "func (n *Node) EffectiveEnabled() bool",
              "doc": "EffectiveEnabled reports whether n and every ancestor up to the root have Enabled == true.\n",
              "file": "pkg/scene3d/node.go",
              "line": 330
            },
            {
              "name": "EffectiveVisible",
              "anchor": "Node.EffectiveVisible",
              "recv": "*Node",
              "decl": "func (n *Node) EffectiveVisible() bool",
              "doc": "EffectiveVisible reports whether n and every ancestor up to the root have Visible == true.\n",
              "file": "pkg/scene3d/node.go",
              "line": 320
            },
            {
              "name": "FindByName",
              "anchor": "Node.FindByName",
              "recv": "*Node",
              "decl": "func (n *Node) FindByName(name string) *Node",
              "doc": "FindByName searches n and its descendants in pre-order for the first node\nwhose Name equals name, or nil if none matches.\n",
              "file": "pkg/scene3d/node.go",
              "line": 283
            },
            {
              "name": "FindByTag",
              "anchor": "Node.FindByTag",
              "recv": "*Node",
              "decl": "func (n *Node) FindByTag(tag string) []*Node",
              "doc": "FindByTag returns all nodes in n's subtree carrying tag in pre-order.\n",
              "file": "pkg/scene3d/node.go",
              "line": 562
            },
            {
              "name": "FitBoundsToCollider",
              "anchor": "Node.FitBoundsToCollider",
              "recv": "*Node",
              "decl": "func (n *Node) FitBoundsToCollider()",
              "doc": "FitBoundsToCollider copies n.Collider.LocalBounds() into n.LocalBounds when\nn.Collider is non-nil.\n",
              "file": "pkg/scene3d/node.go",
              "line": 399
            },
            {
              "name": "HasTag",
              "anchor": "Node.HasTag",
              "recv": "*Node",
              "decl": "func (n *Node) HasTag(tag string) bool",
              "doc": "HasTag reports whether n carries tag.\n",
              "file": "pkg/scene3d/node.go",
              "line": 539
            },
            {
              "name": "HierarchyBounds",
              "anchor": "Node.HierarchyBounds",
              "recv": "*Node",
              "decl": "func (n *Node) HierarchyBounds() math3d.AABB",
              "doc": "HierarchyBounds returns the union of WorldBounds for n and all visible,\nenabled descendants in its subtree.\n",
              "file": "pkg/scene3d/node.go",
              "line": 525
            },
            {
              "name": "IsDescendantOf",
              "anchor": "Node.IsDescendantOf",
              "recv": "*Node",
              "decl": "func (n *Node) IsDescendantOf(ancestor *Node) bool",
              "doc": "IsDescendantOf reports whether ancestor is an ancestor of n in the hierarchy.\n",
              "file": "pkg/scene3d/node.go",
              "line": 105
            },
            {
              "name": "IsDirty",
              "anchor": "Node.IsDirty",
              "recv": "*Node",
              "decl": "func (n *Node) IsDirty() bool",
              "doc": "IsDirty reports whether n's cached world transform needs recomputation.\n",
              "file": "pkg/scene3d/node.go",
              "line": 426
            },
            {
              "name": "MarkDirty",
              "anchor": "Node.MarkDirty",
              "recv": "*Node",
              "decl": "func (n *Node) MarkDirty()",
              "doc": "MarkDirty invalidates cached world transforms and bounds for n and every\ndescendant in its subtree.\n",
              "file": "pkg/scene3d/node.go",
              "line": 408
            },
            {
              "name": "Parent",
              "anchor": "Node.Parent",
              "recv": "*Node",
              "decl": "func (n *Node) Parent() *Node",
              "doc": "Parent returns n's parent node, or nil if n is a root.\n",
              "file": "pkg/scene3d/node.go",
              "line": 89
            },
            {
              "name": "RemoveAttachment",
              "anchor": "Node.RemoveAttachment",
              "recv": "*Node",
              "decl": "func (n *Node) RemoveAttachment(key string)",
              "doc": "RemoveAttachment deletes the named attachment key from n.\n",
              "file": "pkg/scene3d/node.go",
              "line": 670
            },
            {
              "name": "RemoveChild",
              "anchor": "Node.RemoveChild",
              "recv": "*Node",
              "decl": "func (n *Node) RemoveChild(child *Node) bool",
              "doc": "RemoveChild detaches child from n and returns true if child was a direct\nchild of n.\n",
              "file": "pkg/scene3d/node.go",
              "line": 144
            },
            {
              "name": "RemoveTag",
              "anchor": "Node.RemoveTag",
              "recv": "*Node",
              "decl": "func (n *Node) RemoveTag(tag string)",
              "doc": "RemoveTag removes tag from n.Tags if present.\n",
              "file": "pkg/scene3d/node.go",
              "line": 552
            },
            {
              "name": "Reparent",
              "anchor": "Node.Reparent",
              "recv": "*Node",
              "decl": "func (n *Node) Reparent(newParent *Node) error",
              "doc": "Reparent moves n under newParent while keeping n's Local transform unchanged.\nPassing nil detaches n from its current parent. It returns ErrCycle if\nnewParent is n or a descendant of n.\n",
              "file": "pkg/scene3d/node.go",
              "line": 206
            },
            {
              "name": "ReparentKeepWorld",
              "anchor": "Node.ReparentKeepWorld",
              "recv": "*Node",
              "decl": "func (n *Node) ReparentKeepWorld(newParent *Node) error",
              "doc": "ReparentKeepWorld moves n under newParent while adjusting n.Local so n remains at its current world matrix. Passing nil detaches n to root.\n\nIt returns ErrNotDecomposable and changes nothing when newParent's world matrix is singular or the exact local transform needs shear, which a Transform cannot hold (a rotated child under a non-uniformly scaled parent).\n",
              "file": "pkg/scene3d/node.go",
              "line": 222
            },
            {
              "name": "SetAttachment",
              "anchor": "Node.SetAttachment",
              "recv": "*Node",
              "decl": "func (n *Node) SetAttachment(key string, value any)",
              "doc": "SetAttachment stores an arbitrary named attachment value (such as a mesh,\nlight, audio emitter, or gameplay component) on n.\n",
              "file": "pkg/scene3d/node.go",
              "line": 650
            },
            {
              "name": "SetCollider",
              "anchor": "Node.SetCollider",
              "recv": "*Node",
              "decl": "func (n *Node) SetCollider(c Collider)",
              "doc": "SetCollider assigns a narrow-phase Collider to n and invalidates cached world bounds.\n",
              "file": "pkg/scene3d/node.go",
              "line": 389
            },
            {
              "name": "SetDecalReceiver",
              "anchor": "Node.SetDecalReceiver",
              "recv": "*Node",
              "decl": "func (n *Node) SetDecalReceiver(r DecalReceiver)",
              "doc": "SetDecalReceiver attaches r to n under [DecalReceiverAttachment]. If n has\nempty LocalBounds and r implements LocalBounds() math3d.AABB, n's LocalBounds\nis populated so the scene BVH indexes n automatically. Passing nil removes\nthe attachment.\n",
              "file": "pkg/scene3d/decal.go",
              "line": 393
            },
            {
              "name": "SetEnabled",
              "anchor": "Node.SetEnabled",
              "recv": "*Node",
              "decl": "func (n *Node) SetEnabled(enabled bool)",
              "doc": "SetEnabled sets n.Enabled.\n",
              "file": "pkg/scene3d/node.go",
              "line": 348
            },
            {
              "name": "SetLocal",
              "anchor": "Node.SetLocal",
              "recv": "*Node",
              "decl": "func (n *Node) SetLocal(t math3d.Transform)",
              "doc": "SetLocal replaces n.Local and marks n and all descendants dirty.\n",
              "file": "pkg/scene3d/node.go",
              "line": 356
            },
            {
              "name": "SetLocalBounds",
              "anchor": "Node.SetLocalBounds",
              "recv": "*Node",
              "decl": "func (n *Node) SetLocalBounds(bounds math3d.AABB)",
              "doc": "SetLocalBounds updates n.LocalBounds and invalidates n's cached world bounds.\n",
              "file": "pkg/scene3d/node.go",
              "line": 380
            },
            {
              "name": "SetParent",
              "anchor": "Node.SetParent",
              "recv": "*Node",
              "decl": "func (n *Node) SetParent(newParent *Node, keepWorld bool) error",
              "doc": "SetParent moves n under newParent (or detaches it to root when newParent is\nnil). When keepWorld is true, n.Local is adjusted so n preserves its current\nworld transform; when false, n.Local is left unchanged.\n",
              "file": "pkg/scene3d/node.go",
              "line": 256
            },
            {
              "name": "SetPosition",
              "anchor": "Node.SetPosition",
              "recv": "*Node",
              "decl": "func (n *Node) SetPosition(pos math3d.Vec3)",
              "doc": "SetPosition updates n.Local.Pos and marks n and all descendants dirty.\n",
              "file": "pkg/scene3d/node.go",
              "line": 362
            },
            {
              "name": "SetRotation",
              "anchor": "Node.SetRotation",
              "recv": "*Node",
              "decl": "func (n *Node) SetRotation(rot math3d.Quat)",
              "doc": "SetRotation updates n.Local.Rot and marks n and all descendants dirty.\n",
              "file": "pkg/scene3d/node.go",
              "line": 368
            },
            {
              "name": "SetScale",
              "anchor": "Node.SetScale",
              "recv": "*Node",
              "decl": "func (n *Node) SetScale(scale math3d.Vec3)",
              "doc": "SetScale updates n.Local.Scale and marks n and all descendants dirty.\n",
              "file": "pkg/scene3d/node.go",
              "line": 374
            },
            {
              "name": "SetVisible",
              "anchor": "Node.SetVisible",
              "recv": "*Node",
              "decl": "func (n *Node) SetVisible(visible bool)",
              "doc": "SetVisible sets n.Visible.\n",
              "file": "pkg/scene3d/node.go",
              "line": 340
            },
            {
              "name": "Socket",
              "anchor": "Node.Socket",
              "recv": "*Node",
              "decl": "func (n *Node) Socket(name string) *Node",
              "doc": "Socket returns the node for a named socket on n, checking sockets defined on\nn first and then searching n's descendants by name (for example, skeleton\nbone nodes). Returns nil if no matching socket exists.\n",
              "file": "pkg/scene3d/node.go",
              "line": 599
            },
            {
              "name": "Walk",
              "anchor": "Node.Walk",
              "recv": "*Node",
              "decl": "func (n *Node) Walk(fn func(*Node) bool)",
              "doc": "Walk traverses n and its descendants in pre-order depth-first order, calling\nfn on each node. If fn returns false, traversal stops immediately.\n",
              "file": "pkg/scene3d/node.go",
              "line": 300
            },
            {
              "name": "WorldBounds",
              "anchor": "Node.WorldBounds",
              "recv": "*Node",
              "decl": "func (n *Node) WorldBounds() math3d.AABB",
              "doc": "WorldBounds returns the tight world-space AABB enclosing both n's LocalBounds\nand its Collider's local bounds, recomputing lazily when dirty. A collider\nthat extends past the visual mesh must stay queryable by BVH and raycasts.\nReturns AABBEmpty if n has no bounds.\n",
              "file": "pkg/scene3d/node.go",
              "line": 500
            },
            {
              "name": "WorldMatrix",
              "anchor": "Node.WorldMatrix",
              "recv": "*Node",
              "decl": "func (n *Node) WorldMatrix() math3d.Mat4",
              "doc": "WorldMatrix returns n's composed world-space 4x4 transformation matrix,\nrecomputing lazily if n or any ancestor is dirty.\n",
              "file": "pkg/scene3d/node.go",
              "line": 488
            },
            {
              "name": "WorldTransform",
              "anchor": "Node.WorldTransform",
              "recv": "*Node",
              "decl": "func (n *Node) WorldTransform() math3d.Transform",
              "doc": "WorldTransform returns n's composed world-space TRS transform, recomputing\nlazily if n or any ancestor is dirty.\n",
              "file": "pkg/scene3d/node.go",
              "line": 478
            }
          ]
        },
        {
          "name": "OrbitController",
          "anchor": "OrbitController",
          "decl": "type OrbitController struct {\n\tTarget      math3d.Vec3\n\tYaw         float32 // Radians around +Y (0 places camera at +Z looking down -Z)\n\tPitch       float32 // Radians elevation above Target (clamped to [MinPitch, MaxPitch])\n\tDistance    float32 // Distance from Target (clamped to [MinDistance, MaxDistance])\n\tMinPitch    float32 // Defaults to -89° when MinPitch == MaxPitch == 0\n\tMaxPitch    float32 // Defaults to +89° when MinPitch == MaxPitch == 0\n\tMinDistance float32 // Minimum zoom distance (clamped >= 0.001)\n\tMaxDistance float32 // Maximum zoom distance (<= 0 means unbounded)\n\tDamping     float32 // Exponential damping rate in 1/s (<= 0 disables damping)\n\t// contains filtered or unexported fields\n}",
          "doc": "OrbitController orbits a Camera around Target using spherical coordinates\n(Yaw, Pitch, Distance) with clamped pitch, zoom limits, screen-plane panning,\nand optional exponential per-step damping.\n",
          "file": "pkg/scene3d/camera.go",
          "line": 299,
          "members": [
            {
              "name": "Target",
              "anchor": "OrbitController.Target",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Yaw",
              "anchor": "OrbitController.Yaw",
              "kind": "field",
              "doc": "Radians around +Y (0 places camera at +Z looking down -Z)"
            },
            {
              "name": "Pitch",
              "anchor": "OrbitController.Pitch",
              "kind": "field",
              "doc": "Radians elevation above Target (clamped to [MinPitch, MaxPitch])"
            },
            {
              "name": "Distance",
              "anchor": "OrbitController.Distance",
              "kind": "field",
              "doc": "Distance from Target (clamped to [MinDistance, MaxDistance])"
            },
            {
              "name": "MinPitch",
              "anchor": "OrbitController.MinPitch",
              "kind": "field",
              "doc": "Defaults to -89° when MinPitch == MaxPitch == 0"
            },
            {
              "name": "MaxPitch",
              "anchor": "OrbitController.MaxPitch",
              "kind": "field",
              "doc": "Defaults to +89° when MinPitch == MaxPitch == 0"
            },
            {
              "name": "MinDistance",
              "anchor": "OrbitController.MinDistance",
              "kind": "field",
              "doc": "Minimum zoom distance (clamped >= 0.001)"
            },
            {
              "name": "MaxDistance",
              "anchor": "OrbitController.MaxDistance",
              "kind": "field",
              "doc": "Maximum zoom distance (<= 0 means unbounded)"
            },
            {
              "name": "Damping",
              "anchor": "OrbitController.Damping",
              "kind": "field",
              "doc": "Exponential damping rate in 1/s (<= 0 disables damping)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewOrbitController",
              "anchor": "NewOrbitController",
              "decl": "func NewOrbitController(target math3d.Vec3, distance float32) *OrbitController",
              "doc": "NewOrbitController creates an OrbitController orbiting target at distance\nwith default pitch limits [-89°, +89°] and zoom limits [0.1, 1000].\n",
              "file": "pkg/scene3d/camera.go",
              "line": 319
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "OrbitController.Apply",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) Apply(cam *Camera)",
              "doc": "Apply writes the controller's current pose into cam.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 459
            },
            {
              "name": "Orbit",
              "anchor": "OrbitController.Orbit",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) Orbit(deltaYaw, deltaPitch float32)",
              "doc": "Orbit adjusts the desired yaw and pitch by (deltaYaw, deltaPitch) radians,\nclamping pitch to [MinPitch, MaxPitch]. When Damping <= 0, current angles\nupdate immediately.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 364
            },
            {
              "name": "Pan",
              "anchor": "OrbitController.Pan",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) Pan(deltaRight, deltaUp float32)",
              "doc": "Pan shifts the orbit target within the camera's local right/up plane.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 416
            },
            {
              "name": "SetAngles",
              "anchor": "OrbitController.SetAngles",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) SetAngles(yaw, pitch float32)",
              "doc": "SetAngles sets the desired yaw and pitch in radians, clamping pitch.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 404
            },
            {
              "name": "SetDistance",
              "anchor": "OrbitController.SetDistance",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) SetDistance(distance float32)",
              "doc": "SetDistance sets the desired orbit distance, clamped to [MinDistance, MaxDistance].\n",
              "file": "pkg/scene3d/camera.go",
              "line": 386
            },
            {
              "name": "SetTarget",
              "anchor": "OrbitController.SetTarget",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) SetTarget(target math3d.Vec3)",
              "doc": "SetTarget updates the desired orbit target.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 395
            },
            {
              "name": "Snap",
              "anchor": "OrbitController.Snap",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) Snap()",
              "doc": "Snap immediately sets current Target, Yaw, Pitch, and Distance to their\ndesired values with no damping lag.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 427
            },
            {
              "name": "Step",
              "anchor": "OrbitController.Step",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) Step(dt time.Duration)",
              "doc": "Step advances orbit damping by dt. Call this inside game.Loop.Update.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 439
            },
            {
              "name": "Update",
              "anchor": "OrbitController.Update",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) Update(cam *Camera, dt time.Duration)",
              "doc": "Update advances damping by dt and applies the resulting pose to cam.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 473
            },
            {
              "name": "Zoom",
              "anchor": "OrbitController.Zoom",
              "recv": "*OrbitController",
              "decl": "func (c *OrbitController) Zoom(delta float32)",
              "doc": "Zoom adjusts the desired orbit distance by delta (positive zooms out,\nnegative zooms in), clamped to [MinDistance, MaxDistance].\n",
              "file": "pkg/scene3d/camera.go",
              "line": 377
            }
          ]
        },
        {
          "name": "Projection",
          "anchor": "Projection",
          "decl": "type Projection struct {\n\tKind        ProjectionKind\n\tFOVY        float32 // Vertical field of view in radians (ProjectionPerspective)\n\tOrthoHeight float32 // Full vertical world height (ProjectionOrthographic)\n\tAspect      float32 // Viewport width / height\n\tNear        float32 // Near clip plane distance\n\tFar         float32 // Far clip plane distance\n}",
          "doc": "Projection configures a Camera's projection matrix.\n",
          "file": "pkg/scene3d/camera.go",
          "line": 21,
          "members": [
            {
              "name": "Kind",
              "anchor": "Projection.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FOVY",
              "anchor": "Projection.FOVY",
              "kind": "field",
              "doc": "Vertical field of view in radians (ProjectionPerspective)"
            },
            {
              "name": "OrthoHeight",
              "anchor": "Projection.OrthoHeight",
              "kind": "field",
              "doc": "Full vertical world height (ProjectionOrthographic)"
            },
            {
              "name": "Aspect",
              "anchor": "Projection.Aspect",
              "kind": "field",
              "doc": "Viewport width / height"
            },
            {
              "name": "Near",
              "anchor": "Projection.Near",
              "kind": "field",
              "doc": "Near clip plane distance"
            },
            {
              "name": "Far",
              "anchor": "Projection.Far",
              "kind": "field",
              "doc": "Far clip plane distance"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "OrthographicProjection",
              "anchor": "OrthographicProjection",
              "decl": "func OrthographicProjection(orthoHeight, aspect, near, far float32) Projection",
              "doc": "OrthographicProjection returns an orthographic Projection configuration.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 42
            },
            {
              "name": "PerspectiveProjection",
              "anchor": "PerspectiveProjection",
              "decl": "func PerspectiveProjection(fovY, aspect, near, far float32) Projection",
              "doc": "PerspectiveProjection returns a perspective Projection configuration.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 31
            }
          ],
          "methods": [
            {
              "name": "Lerp",
              "anchor": "Projection.Lerp",
              "recv": "Projection",
              "decl": "func (p Projection) Lerp(b Projection, t float32) Projection",
              "doc": "Lerp interpolates from p (t=0) to b (t=1). When both projections share a Kind, FOVY, OrthoHeight, Aspect, Near and Far blend linearly between the values Matrix uses, so a field left at zero blends from its default rather than from zero; when the Kinds differ there is nothing between them to blend, so Lerp returns p for t < 1 and b from t = 1 on.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 95
            },
            {
              "name": "Matrix",
              "anchor": "Projection.Matrix",
              "recv": "Projection",
              "decl": "func (p Projection) Matrix() math3d.Mat4",
              "doc": "Matrix builds the column-major projection matrix for p using [0, 1] NDC depth. Fields left at zero or otherwise out of range take defaults: Aspect 1; FOVY 60 degrees and Near 0.1 for a perspective projection; OrthoHeight 2, and Near, Far 0.1, 1000 when both are zero, for an orthographic one; and Far Near+1000 when it is not beyond Near.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 82
            }
          ]
        },
        {
          "name": "ProjectionKind",
          "anchor": "ProjectionKind",
          "decl": "type ProjectionKind uint8",
          "doc": "ProjectionKind selects perspective or orthographic camera projection.\n",
          "file": "pkg/scene3d/camera.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ProjectionPerspective",
                  "anchor": "ProjectionPerspective"
                },
                {
                  "name": "ProjectionOrthographic",
                  "anchor": "ProjectionOrthographic"
                }
              ],
              "decl": "const (\n\t// ProjectionPerspective projects a perspective view frustum.\n\tProjectionPerspective ProjectionKind = iota\n\t// ProjectionOrthographic projects an orthographic parallel view volume.\n\tProjectionOrthographic\n)",
              "doc": "",
              "file": "pkg/scene3d/camera.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RayHit",
          "anchor": "RayHit",
          "decl": "type RayHit struct {\n\tNode          *Node\n\tT             float32     // Parameter along the ray such that Point == ray.At(T)\n\tPoint         math3d.Vec3 // Intersection point in world space\n\tNormal        math3d.Vec3 // Outward unit surface normal in world space\n\tTriangleIndex int         // Hit triangle index for MeshCollider, or -1 otherwise\n}",
          "doc": "RayHit describes an intersection between a ray and a scene node.\n",
          "file": "pkg/scene3d/scene.go",
          "line": 11,
          "members": [
            {
              "name": "Node",
              "anchor": "RayHit.Node",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "T",
              "anchor": "RayHit.T",
              "kind": "field",
              "doc": "Parameter along the ray such that Point == ray.At(T)"
            },
            {
              "name": "Point",
              "anchor": "RayHit.Point",
              "kind": "field",
              "doc": "Intersection point in world space"
            },
            {
              "name": "Normal",
              "anchor": "RayHit.Normal",
              "kind": "field",
              "doc": "Outward unit surface normal in world space"
            },
            {
              "name": "TriangleIndex",
              "anchor": "RayHit.TriangleIndex",
              "kind": "field",
              "doc": "Hit triangle index for MeshCollider, or -1 otherwise"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Pick",
              "anchor": "Pick",
              "decl": "func Pick(scene *Scene, cam *Camera, screenX, screenY, viewW, viewH float32, layerMask uint32) (RayHit, bool)",
              "doc": "Pick unprojects screen pixel coordinates (screenX, screenY) in a viewport of\nsize (viewW, viewH) through cam and returns the closest hit visible node in\nscene matching layerMask.\n",
              "file": "pkg/scene3d/pick.go",
              "line": 170
            },
            {
              "name": "PickAll",
              "anchor": "PickAll",
              "decl": "func PickAll(scene *Scene, cam *Camera, screenX, screenY, viewW, viewH float32, layerMask uint32) []RayHit",
              "doc": "PickAll unprojects screen pixel coordinates (screenX, screenY) in a viewport\nof size (viewW, viewH) through cam and returns all hit visible nodes in scene\nmatching layerMask sorted by ascending distance from the ray origin.\n",
              "file": "pkg/scene3d/pick.go",
              "line": 181
            }
          ],
          "methods": []
        },
        {
          "name": "Scene",
          "anchor": "Scene",
          "decl": "type Scene struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Scene owns a root Node and a dynamic [BVH] spatial index for O(log N)\nfrustum culling, volume queries, and raycasts over visible, enabled nodes.\n",
          "file": "pkg/scene3d/scene.go",
          "line": 21,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewScene",
              "anchor": "NewScene",
              "decl": "func NewScene() *Scene",
              "doc": "NewScene returns a new Scene with an initialized root Node named \"root\" and\nan empty dynamic BVH spatial index.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 64
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Scene.Add",
              "recv": "*Scene",
              "decl": "func (s *Scene) Add(node *Node) error",
              "doc": "Add attaches node as a direct child of the scene root.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 224
            },
            {
              "name": "BVH",
              "anchor": "Scene.BVH",
              "recv": "*Scene",
              "decl": "func (s *Scene) BVH() *BVH",
              "doc": "BVH synchronizes pending node updates and returns the scene's underlying\ndynamic BVH.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 121
            },
            {
              "name": "CullFrustum",
              "anchor": "Scene.CullFrustum",
              "recv": "*Scene",
              "decl": "func (s *Scene) CullFrustum(frustum math3d.Frustum) []*Node",
              "doc": "CullFrustum returns all visible, enabled nodes whose world bounds intersect\nfrustum, accelerated by the scene's dynamic BVH.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 249
            },
            {
              "name": "CullFrustumInto",
              "anchor": "Scene.CullFrustumInto",
              "recv": "*Scene",
              "decl": "func (s *Scene) CullFrustumInto(frustum math3d.Frustum, out []*Node) []*Node",
              "doc": "CullFrustumInto appends all visible, enabled nodes whose world bounds\nintersect frustum to out using the scene's dynamic BVH. Pass a reused slice\n(e.g. buf[:0]) for zero-allocation per-frame culling.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 256
            },
            {
              "name": "DirtyUpdates",
              "anchor": "Scene.DirtyUpdates",
              "recv": "*Scene",
              "decl": "func (s *Scene) DirtyUpdates() int",
              "doc": "DirtyUpdates returns the number of node world transforms recomputed during\nthe most recent call to [Scene.UpdateTransforms].\n",
              "file": "pkg/scene3d/scene.go",
              "line": 189
            },
            {
              "name": "FindByName",
              "anchor": "Scene.FindByName",
              "recv": "*Scene",
              "decl": "func (s *Scene) FindByName(name string) *Node",
              "doc": "FindByName searches the scene root and its descendants for the first node\nnamed name.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 238
            },
            {
              "name": "QueryAABB",
              "anchor": "Scene.QueryAABB",
              "recv": "*Scene",
              "decl": "func (s *Scene) QueryAABB(box math3d.AABB) []*Node",
              "doc": "QueryAABB returns all visible, enabled nodes whose world bounds overlap or\ntouch box, accelerated by the scene's dynamic BVH.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 293
            },
            {
              "name": "QueryFrustum",
              "anchor": "Scene.QueryFrustum",
              "recv": "*Scene",
              "decl": "func (s *Scene) QueryFrustum(vp math3d.Mat4) []*Node",
              "doc": "QueryFrustum returns all visible, enabled nodes whose world bounds intersect\nthe frustum extracted from view-projection matrix vp (assuming math3d's\ndefault [0, 1] NDC depth).\n",
              "file": "pkg/scene3d/scene.go",
              "line": 281
            },
            {
              "name": "QueryFrustumVolume",
              "anchor": "Scene.QueryFrustumVolume",
              "recv": "*Scene",
              "decl": "func (s *Scene) QueryFrustumVolume(f math3d.Frustum) []*Node",
              "doc": "QueryFrustumVolume returns all visible, enabled nodes whose world bounds\nintersect f.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 287
            },
            {
              "name": "QuerySphere",
              "anchor": "Scene.QuerySphere",
              "recv": "*Scene",
              "decl": "func (s *Scene) QuerySphere(sphere math3d.Sphere) []*Node",
              "doc": "QuerySphere returns all visible, enabled nodes whose world bounds overlap or\ntouch sphere, accelerated by the scene's dynamic BVH.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 321
            },
            {
              "name": "Raycast",
              "anchor": "Scene.Raycast",
              "recv": "*Scene",
              "decl": "func (s *Scene) Raycast(ray math3d.Ray, layerMask uint32) []RayHit",
              "doc": "Raycast casts ray against all visible, enabled nodes in s matching layerMask,\nperforming BVH broad-phase world AABB culling and optional narrow-phase\nCollider tests. Hits are returned sorted by ascending ray parameter T.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 350
            },
            {
              "name": "RaycastFirst",
              "anchor": "Scene.RaycastFirst",
              "recv": "*Scene",
              "decl": "func (s *Scene) RaycastFirst(ray math3d.Ray, layerMask uint32) (RayHit, bool)",
              "doc": "RaycastFirst casts ray against all visible, enabled nodes in s matching\nlayerMask and returns the closest intersection (smallest T >= 0), or false\nif nothing was hit. Uses BVH near-to-far traversal with dynamic distance\npruning.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 388
            },
            {
              "name": "RebuildBVH",
              "anchor": "Scene.RebuildBVH",
              "recv": "*Scene",
              "decl": "func (s *Scene) RebuildBVH()",
              "doc": "RebuildBVH updates dirty node transforms, synchronizes all scene node bounds,\nand reconstructs the scene's BVH top-down using the Surface Area Heuristic\n(SAH) for optimal query performance.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 149
            },
            {
              "name": "Remove",
              "anchor": "Scene.Remove",
              "recv": "*Scene",
              "decl": "func (s *Scene) Remove(node *Node) bool",
              "doc": "Remove detaches node from its parent in the scene.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 229
            },
            {
              "name": "Root",
              "anchor": "Scene.Root",
              "recv": "*Scene",
              "decl": "func (s *Scene) Root() *Node",
              "doc": "Root returns the scene's root node, initializing one lazily if needed.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 74
            },
            {
              "name": "SyncBVH",
              "anchor": "Scene.SyncBVH",
              "recv": "*Scene",
              "decl": "func (s *Scene) SyncBVH()",
              "doc": "SyncBVH incrementally updates the scene's BVH for nodes whose transforms,\nbounds, or hierarchy membership changed since the last sync. When no nodes\nare dirty, SyncBVH runs in O(1) time.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 129
            },
            {
              "name": "UpdateTransforms",
              "anchor": "Scene.UpdateTransforms",
              "recv": "*Scene",
              "decl": "func (s *Scene) UpdateTransforms() int",
              "doc": "UpdateTransforms traverses the scene hierarchy top-down and recomputes cached\nworld transforms and matrices only for dirty nodes (including nodes whose\nLocal transform was mutated directly or whose ancestor changed). Clean nodes\nperform zero matrix recomputations.\n\nIt returns the number of nodes recomputed and records that count for\n[Scene.DirtyUpdates].\n",
              "file": "pkg/scene3d/scene.go",
              "line": 177
            },
            {
              "name": "Walk",
              "anchor": "Scene.Walk",
              "recv": "*Scene",
              "decl": "func (s *Scene) Walk(fn func(*Node) bool)",
              "doc": "Walk traverses every node in the scene starting at Root in pre-order.\n",
              "file": "pkg/scene3d/scene.go",
              "line": 243
            }
          ]
        },
        {
          "name": "SphereCollider",
          "anchor": "SphereCollider",
          "decl": "type SphereCollider struct {\n\tCenter math3d.Vec3\n\tRadius float32\n}",
          "doc": "SphereCollider performs exact ray-sphere intersection in node-local space.\n",
          "file": "pkg/scene3d/pick.go",
          "line": 118,
          "members": [
            {
              "name": "Center",
              "anchor": "SphereCollider.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "SphereCollider.Radius",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IntersectRay",
              "anchor": "SphereCollider.IntersectRay",
              "recv": "*SphereCollider",
              "decl": "func (s *SphereCollider) IntersectRay(worldRay math3d.Ray, worldMat math3d.Mat4) (float32, math3d.Vec3, int, bool)",
              "doc": "IntersectRay tests worldRay against s in local space (accurately supporting\narbitrary rotation and non-uniform scale).\n",
              "file": "pkg/scene3d/pick.go",
              "line": 137
            },
            {
              "name": "LocalBounds",
              "anchor": "SphereCollider.LocalBounds",
              "recv": "*SphereCollider",
              "decl": "func (s *SphereCollider) LocalBounds() math3d.AABB",
              "doc": "LocalBounds returns the tight local-space AABB enclosing s.\n",
              "file": "pkg/scene3d/pick.go",
              "line": 124
            }
          ]
        },
        {
          "name": "ThirdPersonController",
          "anchor": "ThirdPersonController",
          "decl": "type ThirdPersonController struct {\n\t// Offset shifts the target pivot in target-local coordinates (+X right, +Y up, +Z forward).\n\tOffset math3d.Vec3\n\t// Distance is the trailing distance behind the target pivot.\n\tDistance float32\n\t// Height is the vertical elevation above the target pivot.\n\tHeight float32\n\t// LookAhead shifts the look point forward along target facing from the pivot.\n\tLookAhead float32\n\t// PositionSmoothing is the exponential smoothing rate (1/s) for camera Pos (<= 0 snaps).\n\tPositionSmoothing float32\n\t// LookSmoothing is the exponential smoothing rate (1/s) for LookTarget (<= 0 snaps).\n\tLookSmoothing float32\n\t// ObstructionPadding keeps the pulled-back camera this distance in front of an obstacle.\n\tObstructionPadding float32\n\t// MinDistance is the closest distance the camera pulls to the pivot when obstructed.\n\tMinDistance float32\n\t// ObstructionCheck tests the segment from the target pivot (from) to the camera\n\t// position (to). When obstructed, it returns the normalized hit fraction t in [0, 1]\n\t// along from->to and true.\n\tObstructionCheck func(from, to math3d.Vec3) (float32, bool)\n\n\t// Pos is the current world-space camera position.\n\tPos math3d.Vec3\n\t// LookTarget is the current world-space point the camera is looking at.\n\tLookTarget math3d.Vec3\n}",
          "doc": "ThirdPersonController follows a moving target position and facing direction\nwith configurable offset, trailing distance, height, look-ahead, exponential\nper-step smoothing, and optional raycast obstruction pullback.\n",
          "file": "pkg/scene3d/camera.go",
          "line": 588,
          "members": [
            {
              "name": "Offset",
              "anchor": "ThirdPersonController.Offset",
              "kind": "field",
              "doc": "Offset shifts the target pivot in target-local coordinates (+X right, +Y up, +Z forward)."
            },
            {
              "name": "Distance",
              "anchor": "ThirdPersonController.Distance",
              "kind": "field",
              "doc": "Distance is the trailing distance behind the target pivot."
            },
            {
              "name": "Height",
              "anchor": "ThirdPersonController.Height",
              "kind": "field",
              "doc": "Height is the vertical elevation above the target pivot."
            },
            {
              "name": "LookAhead",
              "anchor": "ThirdPersonController.LookAhead",
              "kind": "field",
              "doc": "LookAhead shifts the look point forward along target facing from the pivot."
            },
            {
              "name": "PositionSmoothing",
              "anchor": "ThirdPersonController.PositionSmoothing",
              "kind": "field",
              "doc": "PositionSmoothing is the exponential smoothing rate (1/s) for camera Pos (<= 0 snaps)."
            },
            {
              "name": "LookSmoothing",
              "anchor": "ThirdPersonController.LookSmoothing",
              "kind": "field",
              "doc": "LookSmoothing is the exponential smoothing rate (1/s) for LookTarget (<= 0 snaps)."
            },
            {
              "name": "ObstructionPadding",
              "anchor": "ThirdPersonController.ObstructionPadding",
              "kind": "field",
              "doc": "ObstructionPadding keeps the pulled-back camera this distance in front of an obstacle."
            },
            {
              "name": "MinDistance",
              "anchor": "ThirdPersonController.MinDistance",
              "kind": "field",
              "doc": "MinDistance is the closest distance the camera pulls to the pivot when obstructed."
            },
            {
              "name": "ObstructionCheck",
              "anchor": "ThirdPersonController.ObstructionCheck",
              "kind": "field",
              "doc": "ObstructionCheck tests the segment from the target pivot (from) to the camera\nposition (to). When obstructed, it returns the normalized hit fraction t in [0, 1]\nalong from->to and true."
            },
            {
              "name": "Pos",
              "anchor": "ThirdPersonController.Pos",
              "kind": "field",
              "doc": "Pos is the current world-space camera position."
            },
            {
              "name": "LookTarget",
              "anchor": "ThirdPersonController.LookTarget",
              "kind": "field",
              "doc": "LookTarget is the current world-space point the camera is looking at."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewThirdPersonController",
              "anchor": "NewThirdPersonController",
              "decl": "func NewThirdPersonController() *ThirdPersonController",
              "doc": "NewThirdPersonController returns a ThirdPersonController with balanced defaults.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 617
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "ThirdPersonController.Apply",
              "recv": "*ThirdPersonController",
              "decl": "func (c *ThirdPersonController) Apply(cam *Camera)",
              "doc": "Apply writes the controller's current Pos and orientation into cam.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 712
            },
            {
              "name": "Snap",
              "anchor": "ThirdPersonController.Snap",
              "recv": "*ThirdPersonController",
              "decl": "func (c *ThirdPersonController) Snap(targetPos, targetForward math3d.Vec3)",
              "doc": "Snap immediately moves Pos and LookTarget to the ideal follow configuration\nfor (targetPos, targetForward), respecting ObstructionCheck.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 684
            },
            {
              "name": "Step",
              "anchor": "ThirdPersonController.Step",
              "recv": "*ThirdPersonController",
              "decl": "func (c *ThirdPersonController) Step(targetPos, targetForward math3d.Vec3, dt time.Duration)",
              "doc": "Step advances the third-person camera toward (targetPos, targetForward) by dt\nusing exponential smoothing and pulls in front of any obstruction immediately.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 692
            },
            {
              "name": "Update",
              "anchor": "ThirdPersonController.Update",
              "recv": "*ThirdPersonController",
              "decl": "func (c *ThirdPersonController) Update(cam *Camera, targetPos, targetForward math3d.Vec3, dt time.Duration)",
              "doc": "Update steps the controller by dt and applies the resulting pose to cam.\n",
              "file": "pkg/scene3d/camera.go",
              "line": 721
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/sceneformat",
      "name": "sceneformat",
      "dir": "pkg/sceneformat",
      "page": "pkg/sceneformat",
      "synopsis": "Package sceneformat reads, validates, encodes and builds versioned YAML scene documents for NSGo games.",
      "doc": "Package sceneformat reads, validates, encodes and builds versioned YAML scene documents for NSGo games.\n\n# Editor Scope Decision\n\nNSGo's game layer keeps Tiled and Go code first-class while growing into a lightweight scene editor built with NSGo's own UI views (option b growing into c, tracked in #159). Rather than building a monolithic IDE or locking scenes inside an opaque binary format, both hand-authored scenes and the future NSGo-native editor (object placement, tile painting, typed property editing, undo/redo, play-in-editor and asset browsing) share the human-editable YAML format defined here (#160).\n\n# Scene Documents and Runtime Building\n\nParse decodes a version 1 or 2 YAML scene into a SceneDoc and runs Validate to reject unknown fields, unsupported versions, duplicate layer names or object IDs, invalid coordinate spaces, malformed colors and bad transforms. Encode validates a SceneDoc and writes deterministic 2-space YAML that round-trips through Parse. A scene's optional uid (SceneDoc.UID) is its stable ID, which stays the same when the file is renamed or moved so that package refs can find it again.\n\nBuild resolves a SceneDoc's atlas and tilemap references through an AssetResolver and produces a BuiltScene holding sprite.Batch values ready to draw into a core.Drawing. BuiltScene.Draw paints the background color over the virtual viewport, applies the camera transform to world-space layers, leaves screen-space layers untransformed, and preserves exact layer order and per-layer Z order. An object may name a shared material file (ObjectDoc.Material); Build resolves it through a MaterialResolver such as resource.Library, and the object's sprite draws with the material's current opacity and blend mode, so every scene using the file follows its edits.\n\n# Node Tree\n\nAn ObjectDoc holds child objects in Children, each with a transform local to its parent (#484). Build composes the tree into BuiltObject.World and WorldAlpha and draws child sprites at their world transforms, SpawnEntities builds it into an entities.World's Hierarchy2D, and BuildNodes3D builds it into a scene3d node tree. WalkObjects visits a layer's objects depth first, each parent before its children.\n\n# Instancing and Inheritance\n\nA version 2 scene can reuse other scene files, as Godot's scenes do (#483). An object that names a scene file in ObjectDoc.Scene instances it: the instanced scene's objects become the object's children, under IDs prefixed with the object's ID and a slash, and ObjectDoc.Overrides changes them by their IDs in that scene. A scene that names a base scene in SceneDoc.Inherits starts as a copy of the base and changes only what it declares: its own scene fields, SceneDoc.Overrides for inherited objects, SceneDoc.LayerOverrides for inherited layers, and its layers, which add objects to the base's layers of the same name or add new layers. Parse and Encode keep the references and overrides as written, so a scene of instances round-trips unchanged. Resolve loads the referenced files through a SceneResolver, such as FSScenes, refuses cycles, and returns a self-contained copy; Build resolves a scene itself when its AssetResolver also implements SceneResolver, while SpawnEntities and BuildNodes3D take a resolved scene.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MeshBox",
              "anchor": "MeshBox"
            },
            {
              "name": "MeshSphere",
              "anchor": "MeshSphere"
            },
            {
              "name": "MeshPlane",
              "anchor": "MeshPlane"
            },
            {
              "name": "MeshCapsule",
              "anchor": "MeshCapsule"
            },
            {
              "name": "MeshCylinder",
              "anchor": "MeshCylinder"
            }
          ],
          "decl": "const (\n\t// MeshBox is a 1 by 1 by 1 cube centered on the object's origin.\n\tMeshBox = \"box\"\n\t// MeshSphere is a sphere 1 across centered on the object's origin.\n\tMeshSphere = \"sphere\"\n\t// MeshPlane is a 1 by 1 square in the object's XZ plane, centered on its origin and facing +Y.\n\tMeshPlane = \"plane\"\n\t// MeshCapsule is a capsule 1 across and 2 tall along the object's Y axis, centered on its origin.\n\tMeshCapsule = \"capsule\"\n\t// MeshCylinder is a cylinder 1 across and 1 tall along the object's Y axis, centered on its origin.\n\tMeshCylinder = \"cylinder\"\n)",
          "doc": "The built-in primitives ObjectDoc.Mesh names.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 1469
        },
        {
          "idents": [
            {
              "name": "Light2DComponentName",
              "anchor": "Light2DComponentName"
            },
            {
              "name": "Occluder2DComponentName",
              "anchor": "Occluder2DComponentName"
            }
          ],
          "decl": "const (\n\t// Light2DComponentName is the built-in 2D point or spotlight component.\n\tLight2DComponentName = \"light2d\"\n\t// Occluder2DComponentName is the built-in 2D shadow-casting occluder component (rect, polygon, or tilemap collision).\n\tOccluder2DComponentName = \"occluder2d\"\n)",
          "doc": "Built-in 2D lighting component type names in scene YAML files.\n",
          "file": "pkg/sceneformat/lights2d.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "Body2DComponentName",
              "anchor": "Body2DComponentName"
            },
            {
              "name": "Collider2DComponentName",
              "anchor": "Collider2DComponentName"
            },
            {
              "name": "Trigger2DComponentName",
              "anchor": "Trigger2DComponentName"
            },
            {
              "name": "Body3DComponentName",
              "anchor": "Body3DComponentName"
            },
            {
              "name": "Collider3DComponentName",
              "anchor": "Collider3DComponentName"
            },
            {
              "name": "Trigger3DComponentName",
              "anchor": "Trigger3DComponentName"
            }
          ],
          "decl": "const (\n\t// Body2DComponentName is the built-in 2D physics body component (static, kinematic or dynamic).\n\tBody2DComponentName = \"body2d\"\n\t// Collider2DComponentName is the built-in 2D collision shape component (box or circle).\n\tCollider2DComponentName = \"collider2d\"\n\t// Trigger2DComponentName is the built-in 2D non-solid trigger sensor component (box or circle).\n\tTrigger2DComponentName = \"trigger2d\"\n\t// Body3DComponentName is the built-in 3D physics body component (static, kinematic, dynamic, or trigger).\n\tBody3DComponentName = \"body3d\"\n\t// Collider3DComponentName is the built-in 3D collision shape component (box, sphere, capsule, cylinder, convex, trimesh, or heightfield).\n\tCollider3DComponentName = \"collider3d\"\n\t// Trigger3DComponentName is the built-in 3D non-solid trigger sensor component (box, sphere, capsule, cylinder, or convex).\n\tTrigger3DComponentName = \"trigger3d\"\n)",
          "doc": "Built-in physics component type names in scene YAML files.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "DefaultReflectionProbeResolution",
              "anchor": "DefaultReflectionProbeResolution"
            },
            {
              "name": "MaxReflectionProbeResolution",
              "anchor": "MaxReflectionProbeResolution"
            },
            {
              "name": "MaxLightProbesPerGrid",
              "anchor": "MaxLightProbesPerGrid"
            }
          ],
          "decl": "const (\n\t// DefaultReflectionProbeResolution is the cubemap face resolution used when ReflectionProbeDoc.Resolution is 0.\n\tDefaultReflectionProbeResolution = 64\n\n\t// MaxReflectionProbeResolution is the largest cubemap face resolution accepted in a scene file.\n\tMaxReflectionProbeResolution = 1024\n\n\t// MaxLightProbesPerGrid caps the total number of probes (nx * ny * nz) in a LightProbeGridDoc.\n\tMaxLightProbesPerGrid = 4096\n)",
          "doc": "",
          "file": "pkg/sceneformat/probes.go",
          "line": 8
        },
        {
          "idents": [
            {
              "name": "AnimatorComponentName",
              "anchor": "AnimatorComponentName"
            }
          ],
          "decl": "const AnimatorComponentName = \"animator\"",
          "doc": "AnimatorComponentName is the built-in sprite animation state machine component type name in scene and prefab YAML files.\n",
          "file": "pkg/sceneformat/animator.go",
          "line": 9
        },
        {
          "idents": [
            {
              "name": "ConflictVersion",
              "anchor": "ConflictVersion"
            }
          ],
          "decl": "const ConflictVersion = 1",
          "doc": "ConflictVersion is the schema version of the YAML conflict file written by\nthe scene merge driver when a three-way merge encounters conflicts.\n",
          "file": "pkg/sceneformat/conflict.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "CoverPointComponentName",
              "anchor": "CoverPointComponentName"
            }
          ],
          "decl": "const CoverPointComponentName = \"cover_point\"",
          "doc": "CoverPointComponentName is the canonical scene YAML component key for authored cover points.\n",
          "file": "pkg/sceneformat/cover.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 4",
          "doc": "CurrentVersion is the newest scene format schema version, the one new documents are written in. Version 2 adds scene instancing (ObjectDoc.Scene and ObjectDoc.Overrides), inheritance (SceneDoc.Inherits, SceneDoc.Overrides and SceneDoc.LayerOverrides) and glTF models (ObjectDoc.Model, ObjectDoc.ModelNode and ObjectDoc.ModelMesh). Version 3 adds parallax and repeating layers (LayerDoc.ParallaxX, LayerDoc.ParallaxY, LayerDoc.RepeatX, LayerDoc.RepeatY, LayerDoc.RepeatWidth and LayerDoc.RepeatHeight, and the matching fields on LayerOverride) and tilemap offsets (TilemapDoc.OffsetX and TilemapDoc.OffsetY). Version 4 adds 3D lights (ObjectDoc.Light), 3D cameras (ObjectDoc.Camera), 3D reflection probes (ObjectDoc.ReflectionProbe), 3D light probe grids (ObjectDoc.LightProbeGrid) and scene environment settings (SceneDoc.Environment).\n",
          "file": "pkg/sceneformat/format.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "Lights2DComponentVersion",
              "anchor": "Lights2DComponentVersion"
            }
          ],
          "decl": "const Lights2DComponentVersion = 1",
          "doc": "Lights2DComponentVersion is the schema version of the built-in 2D lighting components (light2d and occluder2d).\n",
          "file": "pkg/sceneformat/lights2d.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "MaxEmitDepth",
              "anchor": "MaxEmitDepth"
            }
          ],
          "decl": "const MaxEmitDepth = 64",
          "doc": "MaxEmitDepth is how deeply Signals.Emit nests: a handler that emits an event is one level, and a handler that event runs and emits another is two. Emit refuses to go deeper, which stops connections that trigger each other from looping forever.\n",
          "file": "pkg/sceneformat/connections.go",
          "line": 135
        },
        {
          "idents": [
            {
              "name": "MaxObjectDepth",
              "anchor": "MaxObjectDepth"
            }
          ],
          "decl": "const MaxObjectDepth = 64",
          "doc": "MaxObjectDepth is how many levels of objects a layer may nest: a top-level object is at depth 1, its children at depth 2, and so on. Validate refuses a deeper tree.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 688
        },
        {
          "idents": [
            {
              "name": "MaxResolvedObjects",
              "anchor": "MaxResolvedObjects"
            }
          ],
          "decl": "const MaxResolvedObjects = 1 << 17",
          "doc": "MaxResolvedObjects is the most objects Resolve creates for one scene, counting each copy of an instanced or inherited object. It stops scenes that instance each other many times over from growing without bound.\n",
          "file": "pkg/sceneformat/resolve.go",
          "line": 40
        },
        {
          "idents": [
            {
              "name": "MaxSceneNesting",
              "anchor": "MaxSceneNesting"
            }
          ],
          "decl": "const MaxSceneNesting = 64",
          "doc": "MaxSceneNesting is how many scene files deep Resolve follows instancing and inheritance: a scene that instances or inherits another is one level, and a scene that one instances in turn is two. Resolve refuses a deeper chain.\n",
          "file": "pkg/sceneformat/resolve.go",
          "line": 37
        },
        {
          "idents": [
            {
              "name": "MaxTileLayers",
              "anchor": "MaxTileLayers"
            }
          ],
          "decl": "const MaxTileLayers = 64",
          "doc": "MaxTileLayers is the most tile layers one layered grid may hold (TilemapDoc.TileLayers).\n",
          "file": "pkg/sceneformat/format.go",
          "line": 269
        },
        {
          "idents": [
            {
              "name": "MinVersion",
              "anchor": "MinVersion"
            }
          ],
          "decl": "const MinVersion = 1",
          "doc": "MinVersion is the oldest scene format schema version this package still reads. A version 1, 2 or 3 document is read and written unchanged, and may not use any field added by a newer version.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "NavLinkComponentName",
              "anchor": "NavLinkComponentName"
            }
          ],
          "decl": "const NavLinkComponentName = \"nav_link\"",
          "doc": "NavLinkComponentName is the canonical scene YAML component key for authored off-mesh navigation links\n(jumps, ledge drops, ladders, doors, and teleporters).\n",
          "file": "pkg/sceneformat/navlink.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "NavRegion2DComponentName",
              "anchor": "NavRegion2DComponentName"
            }
          ],
          "decl": "const NavRegion2DComponentName = \"navregion2d\"",
          "doc": "NavRegion2DComponentName is the built-in 2D navigation region polygon component key in scene YAML files.\n",
          "file": "pkg/sceneformat/navregion2d.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "NavRegion2DComponentVersion",
              "anchor": "NavRegion2DComponentVersion"
            }
          ],
          "decl": "const NavRegion2DComponentVersion = 1",
          "doc": "NavRegion2DComponentVersion is the schema version of the built-in 2D navigation region component (navregion2d).\n",
          "file": "pkg/sceneformat/navregion2d.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "PhysicsComponentVersion",
              "anchor": "PhysicsComponentVersion"
            }
          ],
          "decl": "const PhysicsComponentVersion = 1",
          "doc": "PhysicsComponentVersion is the schema version of the built-in 2D and 3D physics components.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "SchemaComment",
              "anchor": "SchemaComment"
            }
          ],
          "decl": "const SchemaComment = \"# yaml-language-server: $schema=\" + SchemaURL",
          "doc": "SchemaComment is the first line Encode writes for a version 1 document: a YAML comment that points a YAML language server at SchemaURL. Parse ignores it like any other comment.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 34
        },
        {
          "idents": [
            {
              "name": "SchemaCommentV2",
              "anchor": "SchemaCommentV2"
            }
          ],
          "decl": "const SchemaCommentV2 = \"# yaml-language-server: $schema=\" + SchemaURLV2",
          "doc": "SchemaCommentV2 is the first line Encode writes for a version 2 document, pointing a YAML language server at SchemaURLV2.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 40
        },
        {
          "idents": [
            {
              "name": "SchemaCommentV3",
              "anchor": "SchemaCommentV3"
            }
          ],
          "decl": "const SchemaCommentV3 = \"# yaml-language-server: $schema=\" + SchemaURLV3",
          "doc": "SchemaCommentV3 is the first line Encode writes for a version 3 document, pointing a YAML language server at SchemaURLV3.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 46
        },
        {
          "idents": [
            {
              "name": "SchemaCommentV4",
              "anchor": "SchemaCommentV4"
            }
          ],
          "decl": "const SchemaCommentV4 = \"# yaml-language-server: $schema=\" + SchemaURLV4",
          "doc": "SchemaCommentV4 is the first line Encode writes for a version 4 document, pointing a YAML language server at SchemaURLV4.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 52
        },
        {
          "idents": [
            {
              "name": "SchemaURL",
              "anchor": "SchemaURL"
            }
          ],
          "decl": "const SchemaURL = \"https://game.nsgo.dev/schemas/scene.v1.json\"",
          "doc": "SchemaURL is where the JSON Schema of version 1 scene documents is published. Encode names it in a yaml-language-server comment on the first line of a version 1 document, so editors that run the YAML language server (such as VS Code's YAML extension) and AI tools validate and complete a scene file as it is written.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 31
        },
        {
          "idents": [
            {
              "name": "SchemaURLV2",
              "anchor": "SchemaURLV2"
            }
          ],
          "decl": "const SchemaURLV2 = \"https://game.nsgo.dev/schemas/scene.v2.json\"",
          "doc": "SchemaURLV2 is where the JSON Schema of version 2 scene documents is published, named by SchemaCommentV2 as SchemaURL is by SchemaComment.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 37
        },
        {
          "idents": [
            {
              "name": "SchemaURLV3",
              "anchor": "SchemaURLV3"
            }
          ],
          "decl": "const SchemaURLV3 = \"https://game.nsgo.dev/schemas/scene.v3.json\"",
          "doc": "SchemaURLV3 is where the JSON Schema of version 3 scene documents is published, named by SchemaCommentV3 as SchemaURL is by SchemaComment.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 43
        },
        {
          "idents": [
            {
              "name": "SchemaURLV4",
              "anchor": "SchemaURLV4"
            }
          ],
          "decl": "const SchemaURLV4 = \"https://game.nsgo.dev/schemas/scene.v4.json\"",
          "doc": "SchemaURLV4 is where the JSON Schema of version 4 scene documents is published, named by SchemaCommentV4 as SchemaURL is by SchemaComment.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 49
        },
        {
          "idents": [
            {
              "name": "SkeletalComponentName",
              "anchor": "SkeletalComponentName"
            }
          ],
          "decl": "const SkeletalComponentName = \"skeletal\"",
          "doc": "SkeletalComponentName is the built-in 2D skeletal rig component name in scene YAML files.\n",
          "file": "pkg/sceneformat/skeletal.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "SkeletalComponentVersion",
              "anchor": "SkeletalComponentVersion"
            }
          ],
          "decl": "const SkeletalComponentVersion = 1",
          "doc": "SkeletalComponentVersion is the schema version of the built-in \"skeletal\" component.\n",
          "file": "pkg/sceneformat/skeletal.go",
          "line": 13
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Bool",
          "anchor": "Bool",
          "decl": "func Bool(v bool) *bool",
          "doc": "Bool returns a pointer to v for optional YAML boolean fields such as LayerDoc.Visible.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 748
        },
        {
          "name": "BuildLights2D",
          "anchor": "BuildLights2D",
          "decl": "func BuildLights2D(scene *BuiltScene) (*lights2d.Scene, error)",
          "doc": "BuildLights2D constructs a *lights2d.Scene from a BuiltScene's AmbientColor, built-in light2d and occluder2d components on visible world-space layers, and any tilemap collision occluders referenced by occluder2d (shape: \"tilemap\").\nIt returns (nil, nil) when the scene declares no ambientColor, no light2d components, and no occluder2d components.\n",
          "file": "pkg/sceneformat/lights2d.go",
          "line": 530
        },
        {
          "name": "BuildNavMesh2D",
          "anchor": "BuildNavMesh2D",
          "decl": "func BuildNavMesh2D(scene *BuiltScene) (*navbake.Mesh, *ai.NavMesh, error)",
          "doc": "BuildNavMesh2D constructs a baked *navbake.Mesh and runtime *ai.NavMesh from all built-in navregion2d components on visible world-space layers of scene, optionally subtracting solid tilemap collision geometry and attaching any authored 2D nav_link components.\n\nIt returns (nil, nil, nil) when the scene declares no navregion2d components.\nWhen navregion2d components exist but no enabled walkable polygon has at least 3 vertices, it returns an empty *navbake.Mesh and empty *ai.NavMesh without error.\n",
          "file": "pkg/sceneformat/navregion2d.go",
          "line": 162
        },
        {
          "name": "CheckObjectCamera3D",
          "anchor": "CheckObjectCamera3D",
          "decl": "func CheckObjectCamera3D(o *ObjectDoc) error",
          "doc": "CheckObjectCamera3D checks o.Camera as Validate checks it in a version 4 scene.\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 627
        },
        {
          "name": "CheckObjectLight",
          "anchor": "CheckObjectLight",
          "decl": "func CheckObjectLight(o *ObjectDoc) error",
          "doc": "CheckObjectLight checks o.Light as Validate checks it in a version 4 scene.\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 619
        },
        {
          "name": "CheckObjectLightProbeGrid",
          "anchor": "CheckObjectLightProbeGrid",
          "decl": "func CheckObjectLightProbeGrid(o *ObjectDoc) error",
          "doc": "CheckObjectLightProbeGrid checks o.LightProbeGrid as Validate checks it in a version 4 scene.\n",
          "file": "pkg/sceneformat/probes.go",
          "line": 287
        },
        {
          "name": "CheckObjectModel",
          "anchor": "CheckObjectModel",
          "decl": "func CheckObjectModel(o *ObjectDoc) error",
          "doc": "CheckObjectModel checks the fields of o that say what it draws in 3D and how it occludes, as Validate checks them in a version 2 scene: Mesh is \"\" or one of MeshPrimitives, Model is \"\" or a slash-separated path to a .gltf or .glb file, Mesh and Model are not both set, nor ModelNode and ModelMesh, ModelNode and ModelMesh require Model, and Occluder (when set) is valid with mode \"model\" requiring Mesh or Model. It does not check o's descendants, and lets a caller such as an editor refuse an object before it reaches a document.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 1578
        },
        {
          "name": "CheckObjectReflectionProbe",
          "anchor": "CheckObjectReflectionProbe",
          "decl": "func CheckObjectReflectionProbe(o *ObjectDoc) error",
          "doc": "CheckObjectReflectionProbe checks o.ReflectionProbe as Validate checks it in a version 4 scene.\n",
          "file": "pkg/sceneformat/probes.go",
          "line": 279
        },
        {
          "name": "CheckObjectTree",
          "anchor": "CheckObjectTree",
          "decl": "func CheckObjectTree(o *ObjectDoc) error",
          "doc": "CheckObjectTree checks the shape of the tree rooted at o, taking o as a top-level object: nesting no deeper than MaxObjectDepth levels, and no sprite whose composed world transform is sheared. Validate makes the same checks for every layer of a scene; CheckObjectTree lets a caller such as an editor refuse a tree or a transform change before it reaches a document. It does not check IDs or field values.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 712
        },
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(doc *SceneDoc) ([]byte, error)",
          "doc": "Encode validates doc and serializes it as deterministic 2-space YAML, starting with the line SchemaCommentFor returns for its version. A whole-number float in a custom property (ObjectDoc.Properties) is written with a decimal point, such as 2.0, so that it reads back as a float and not an int.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 931
        },
        {
          "name": "EncodeConflict",
          "anchor": "EncodeConflict",
          "decl": "func EncodeConflict(doc *ConflictDoc) ([]byte, error)",
          "doc": "EncodeConflict validates doc and serializes it as deterministic 2-space YAML.\n",
          "file": "pkg/sceneformat/conflict.go",
          "line": 159
        },
        {
          "name": "ExtractBuiltCoverPoints",
          "anchor": "ExtractBuiltCoverPoints",
          "decl": "func ExtractBuiltCoverPoints(scene *BuiltScene) ([]ai.CoverPoint, error)",
          "doc": "ExtractBuiltCoverPoints extracts all authored \"cover_point\" components from a resolved BuiltScene.\n",
          "file": "pkg/sceneformat/cover.go",
          "line": 112
        },
        {
          "name": "ExtractBuiltNavLinks2D",
          "anchor": "ExtractBuiltNavLinks2D",
          "decl": "func ExtractBuiltNavLinks2D(scene *BuiltScene) ([]ai.NavOffMeshLink, error)",
          "doc": "ExtractBuiltNavLinks2D extracts all authored \"nav_link\" components from a resolved BuiltScene as 2D links.\n",
          "file": "pkg/sceneformat/navlink.go",
          "line": 243
        },
        {
          "name": "ExtractBuiltNavLinks3D",
          "anchor": "ExtractBuiltNavLinks3D",
          "decl": "func ExtractBuiltNavLinks3D(scene *BuiltScene) ([]world3d.NavOffMeshLink, error)",
          "doc": "ExtractBuiltNavLinks3D extracts all authored \"nav_link\" components from a resolved BuiltScene as 3D links.\n",
          "file": "pkg/sceneformat/navlink.go",
          "line": 302
        },
        {
          "name": "ExtractCoverPoints",
          "anchor": "ExtractCoverPoints",
          "decl": "func ExtractCoverPoints(doc *SceneDoc) ([]ai.CoverPoint, error)",
          "doc": "ExtractCoverPoints extracts all authored \"cover_point\" components from doc in deterministic\ndocument order (including nested child objects, composing parent 2D transforms).\n\nEach extracted CoverPoint receives a sequential 1-based ID, normalized world-space Facing\n(rotated by composed object rotation), validated CoverHeight (\"half\" or \"full\"), and parsed Tags.\n",
          "file": "pkg/sceneformat/cover.go",
          "line": 68
        },
        {
          "name": "ExtractNavLinks2D",
          "anchor": "ExtractNavLinks2D",
          "decl": "func ExtractNavLinks2D(doc *SceneDoc) ([]ai.NavOffMeshLink, error)",
          "doc": "ExtractNavLinks2D extracts all authored \"nav_link\" components from doc in deterministic\ndocument order (including nested child objects, composing parent 2D transforms) as 2D\nai.NavOffMeshLink values ready for ai.NavMesh.AddOffMeshLink.\n",
          "file": "pkg/sceneformat/navlink.go",
          "line": 195
        },
        {
          "name": "ExtractNavLinks3D",
          "anchor": "ExtractNavLinks3D",
          "decl": "func ExtractNavLinks3D(doc *SceneDoc) ([]world3d.NavOffMeshLink, error)",
          "doc": "ExtractNavLinks3D extracts all authored \"nav_link\" components from doc in deterministic\ndocument order (including nested child objects, composing full 3D object transforms) as 3D\nworld3d.NavOffMeshLink values ready for world3d.NavMesh.AddOffMeshLink or navbake3d.\n",
          "file": "pkg/sceneformat/navlink.go",
          "line": 253
        },
        {
          "name": "Float32",
          "anchor": "Float32",
          "decl": "func Float32(v float32) *float32",
          "doc": "Float32 returns a pointer to v for optional YAML float fields such as ScaleX, ScaleY, Alpha and Zoom.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 757
        },
        {
          "name": "Float64",
          "anchor": "Float64",
          "decl": "func Float64(v float64) *float64",
          "doc": "Float64 returns a pointer to v for a Field's optional Min and Max.\n",
          "file": "pkg/sceneformat/components.go",
          "line": 168
        },
        {
          "name": "FormatTileRow",
          "anchor": "FormatTileRow",
          "decl": "func FormatTileRow(cells []uint32) string",
          "doc": "FormatTileRow writes cells, tile values as TileLayerDoc.Cell returns them, as one row of a tile layer in the form Encode writes: single spaces between cells, \".\" for an empty one and flip letters in the order h, v, d.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 378
        },
        {
          "name": "Int",
          "anchor": "Int",
          "decl": "func Int(v int) *int",
          "doc": "Int returns a pointer to v for optional YAML integer fields such as ObjectOverride.Z and LayerOverride.Order.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 751
        },
        {
          "name": "IsGridMapPath",
          "anchor": "IsGridMapPath",
          "decl": "func IsGridMapPath(p string) bool",
          "doc": "IsGridMapPath reports whether p names a 3D grid map file by its extension, .gridmap.yaml or .gridmap.yml in any case, as ObjectDoc.GridMap requires.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 1497
        },
        {
          "name": "IsHDRPath",
          "anchor": "IsHDRPath",
          "decl": "func IsHDRPath(p string) bool",
          "doc": "IsHDRPath reports whether p names a Radiance HDR image by its extension, .hdr or .pic in any case, as SkyDoc.HDR requires.\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 229
        },
        {
          "name": "IsLightProbeGridPath",
          "anchor": "IsLightProbeGridPath",
          "decl": "func IsLightProbeGridPath(p string) bool",
          "doc": "IsLightProbeGridPath reports whether p names a YAML light probe grid file by its extension (.yaml or .yml in any case).\n",
          "file": "pkg/sceneformat/probes.go",
          "line": 178
        },
        {
          "name": "IsLights2DComponent",
          "anchor": "IsLights2DComponent",
          "decl": "func IsLights2DComponent(name string) bool",
          "doc": "IsLights2DComponent reports whether name is one of the built-in 2D lighting component types.\n",
          "file": "pkg/sceneformat/lights2d.go",
          "line": 41
        },
        {
          "name": "IsModelPath",
          "anchor": "IsModelPath",
          "decl": "func IsModelPath(p string) bool",
          "doc": "IsModelPath reports whether p names a glTF 2.0 file by its extension, .gltf or .glb in any case, as ObjectDoc.Model requires.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 1492
        },
        {
          "name": "IsNavRegion2DComponent",
          "anchor": "IsNavRegion2DComponent",
          "decl": "func IsNavRegion2DComponent(name string) bool",
          "doc": "IsNavRegion2DComponent reports whether name is the built-in 2D navigation region component type.\n",
          "file": "pkg/sceneformat/navregion2d.go",
          "line": 26
        },
        {
          "name": "IsPhysicsComponent",
          "anchor": "IsPhysicsComponent",
          "decl": "func IsPhysicsComponent(name string) bool",
          "doc": "IsPhysicsComponent reports whether name is one of the built-in 2D or 3D physics component types.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 66
        },
        {
          "name": "IsSkeletalComponent",
          "anchor": "IsSkeletalComponent",
          "decl": "func IsSkeletalComponent(name string) bool",
          "doc": "IsSkeletalComponent reports whether name is the built-in \"skeletal\" component type.\n",
          "file": "pkg/sceneformat/skeletal.go",
          "line": 26
        },
        {
          "name": "Lights2DComponentNames",
          "anchor": "Lights2DComponentNames",
          "decl": "func Lights2DComponentNames() []string",
          "doc": "Lights2DComponentNames returns the names of all built-in 2D lighting component types in canonical order.\n",
          "file": "pkg/sceneformat/lights2d.go",
          "line": 33
        },
        {
          "name": "MeshPrimitives",
          "anchor": "MeshPrimitives",
          "decl": "func MeshPrimitives() []string",
          "doc": "MeshPrimitives returns the built-in primitive names ObjectDoc.Mesh accepts, sorted.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 1486
        },
        {
          "name": "ObjectLocalTransform3D",
          "anchor": "ObjectLocalTransform3D",
          "decl": "func ObjectLocalTransform3D(o *ObjectDoc) math3d.Transform",
          "doc": "ObjectLocalTransform3D returns o's 3D transform relative to its parent (or to its layer for a top-level object): position (X, Y, PosZ), rotation RotX then RotY then RotZ about fixed axes (the quaternion Rz * Ry * Rx, matching the editor's 3D viewport), and scale (ScaleX, ScaleY, ScaleZ).\n",
          "file": "pkg/sceneformat/hierarchy.go",
          "line": 142
        },
        {
          "name": "ParseTileRow",
          "anchor": "ParseTileRow",
          "decl": "func ParseTileRow(row string) ([]uint32, error)",
          "doc": "ParseTileRow parses one row of a tile layer (TileLayerDoc.Rows) into its cells, as TileLayerDoc.Cell returns each. Cells are separated by spaces or tabs, and a cell's flip letters may come in any order, each at most once.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 343
        },
        {
          "name": "PhysicsComponentNames",
          "anchor": "PhysicsComponentNames",
          "decl": "func PhysicsComponentNames() []string",
          "doc": "PhysicsComponentNames returns the names of all built-in physics component types in canonical order.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 54
        },
        {
          "name": "RegisterAnimatorComponent",
          "anchor": "RegisterAnimatorComponent",
          "decl": "func RegisterAnimatorComponent(reg *ComponentRegistry) error",
          "doc": "RegisterAnimatorComponent registers the built-in \"animator\" component type on reg.\n",
          "file": "pkg/sceneformat/animator.go",
          "line": 47
        },
        {
          "name": "RegisterCoverPoint",
          "anchor": "RegisterCoverPoint",
          "decl": "func RegisterCoverPoint(reg *ComponentRegistry) error",
          "doc": "RegisterCoverPoint registers the built-in \"cover_point\" component type on reg.\n",
          "file": "pkg/sceneformat/cover.go",
          "line": 59
        },
        {
          "name": "RegisterLights2DComponents",
          "anchor": "RegisterLights2DComponents",
          "decl": "func RegisterLights2DComponents(reg *ComponentRegistry) error",
          "doc": "RegisterLights2DComponents registers the built-in light2d and occluder2d component types on reg.\n",
          "file": "pkg/sceneformat/lights2d.go",
          "line": 88
        },
        {
          "name": "RegisterNavLink",
          "anchor": "RegisterNavLink",
          "decl": "func RegisterNavLink(reg *ComponentRegistry) error",
          "doc": "RegisterNavLink registers the built-in \"nav_link\" component type on reg.\n",
          "file": "pkg/sceneformat/navlink.go",
          "line": 133
        },
        {
          "name": "RegisterNavRegion2DComponent",
          "anchor": "RegisterNavRegion2DComponent",
          "decl": "func RegisterNavRegion2DComponent(reg *ComponentRegistry) error",
          "doc": "RegisterNavRegion2DComponent registers the built-in \"navregion2d\" component type on reg.\n",
          "file": "pkg/sceneformat/navregion2d.go",
          "line": 51
        },
        {
          "name": "RegisterPhysicsComponents",
          "anchor": "RegisterPhysicsComponents",
          "decl": "func RegisterPhysicsComponents(reg *ComponentRegistry) error",
          "doc": "RegisterPhysicsComponents registers all six built-in 2D and 3D physics component types on reg.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 250
        },
        {
          "name": "RegisterSkeletalComponent",
          "anchor": "RegisterSkeletalComponent",
          "decl": "func RegisterSkeletalComponent(reg *ComponentRegistry) error",
          "doc": "RegisterSkeletalComponent registers the built-in \"skeletal\" component type on reg.\n",
          "file": "pkg/sceneformat/skeletal.go",
          "line": 48
        },
        {
          "name": "SchemaCommentFor",
          "anchor": "SchemaCommentFor",
          "decl": "func SchemaCommentFor(version int) string",
          "doc": "SchemaCommentFor returns the first line Encode writes for a document of the given version: SchemaComment for version 1, SchemaCommentV2 for version 2, SchemaCommentV3 for version 3, and SchemaCommentV4 for version 4.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 55
        },
        {
          "name": "SpawnEntities",
          "anchor": "SpawnEntities",
          "decl": "func SpawnEntities(doc *SceneDoc, w *entities.World) (map[string]entities.Entity, error)",
          "doc": "SpawnEntities validates doc and spawns one entity per object into w, children included, linked into w's 2D transform hierarchy (entities.Hierarchy2D) the way the objects nest in the document. Each entity's local entities.Transform2D holds the object's X, Y, Rotation, ScaleX and ScaleY, and each carries an ObjectRef component. The top-level objects of a hidden layer are spawned hidden, so their subtrees are not world-visible. Entities are spawned in depth-first document order, each parent before its children, and the result maps every object ID to its entity.\n\nSpawnEntities returns an error and spawns nothing when doc is invalid, still instances or inherits other scene files (pass it through Resolve first), or w is nil or disposed.\n",
          "file": "pkg/sceneformat/hierarchy.go",
          "line": 26
        },
        {
          "name": "String",
          "anchor": "String",
          "decl": "func String(v string) *string",
          "doc": "String returns a pointer to v for optional YAML string fields such as ObjectOverride.Name.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 754
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(doc *SceneDoc) error",
          "doc": "Validate checks that doc conforms to the schema rules of its version. It checks a scene's references to other scene files only for their form; Resolve loads them and validates the result. Every error it returns is a *FieldError naming the field at fault. When several fields are wrong it reports the first in document order, taking the entries of Tilemaps in key order.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 1022
        },
        {
          "name": "ValidateComponents",
          "anchor": "ValidateComponents",
          "decl": "func ValidateComponents(doc *SceneDoc, reg *ComponentRegistry) error",
          "doc": "ValidateComponents checks the components of every object in doc, children included, against reg: unregistered component types, unknown fields, wrong kinds and out-of-range values are refused. Objects are checked in document order and components and fields in ascending name order. The returned error is a *ComponentError naming the object; it carries no line because doc holds none, so prefer ParseWith with ParseOptions.Components when loading files.\n",
          "file": "pkg/sceneformat/components.go",
          "line": 369
        },
        {
          "name": "ValidateConflict",
          "anchor": "ValidateConflict",
          "decl": "func ValidateConflict(doc *ConflictDoc) error",
          "doc": "ValidateConflict checks that doc conforms to ConflictVersion's schema.\n",
          "file": "pkg/sceneformat/conflict.go",
          "line": 111
        },
        {
          "name": "ValidateConnections",
          "anchor": "ValidateConnections",
          "decl": "func ValidateConnections(doc *SceneDoc, reg *ComponentRegistry) error",
          "doc": "ValidateConnections checks every connection of doc against reg: each event must be declared by exactly one registered component type of its From object (or by the component it names, as in \"button.pressed\"), each handler likewise on its To object, and each argument must match a param of the handler in kind and range. doc must not instance or inherit other scene files; pass it through Resolve first. The error is a *ConnectionError without a position; ParseWith with ParseOptions.Components reports the same errors with the file and line.\n",
          "file": "pkg/sceneformat/connections.go",
          "line": 123
        },
        {
          "name": "ValidatePhysicsLayers",
          "anchor": "ValidatePhysicsLayers",
          "decl": "func ValidatePhysicsLayers(doc *SceneDoc, layers *PhysicsLayerTable) error",
          "doc": "ValidatePhysicsLayers checks every named collision layer and mask in built-in physics components of doc\nagainst layers. Unknown or misspelled layer names return a *loaderr.Error naming the field path.\nPrefer ParseWith with ParseOptions.PhysicsLayers when loading files so errors also carry exact 1-based line and column numbers.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 402
        },
        {
          "name": "WalkObjects",
          "anchor": "WalkObjects",
          "decl": "func WalkObjects(objs []ObjectDoc, fn func(o, parent *ObjectDoc) bool) bool",
          "doc": "WalkObjects calls fn for every object in objs and its descendants, depth first with each parent before its children and siblings in document order. parent is nil for an object in objs. The walk stops when fn returns false, and WalkObjects reports whether it visited every object.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 691
        }
      ],
      "types": [
        {
          "name": "AnimatorConfig",
          "anchor": "AnimatorConfig",
          "decl": "type AnimatorConfig struct {\n\t// States is the project-relative path to the *.states.yaml file.\n\tStates string\n\t// StartClip is the optional starting state or clip override.\n\tStartClip string\n\t// AutoPlay reports whether playback starts automatically.\n\tAutoPlay bool\n\t// Speed is the playback speed multiplier (>= 0).\n\tSpeed float64\n}",
          "doc": "AnimatorConfig holds the resolved fields of an object's built-in \"animator\" component.\n",
          "file": "pkg/sceneformat/animator.go",
          "line": 63,
          "members": [
            {
              "name": "States",
              "anchor": "AnimatorConfig.States",
              "kind": "field",
              "doc": "States is the project-relative path to the *.states.yaml file."
            },
            {
              "name": "StartClip",
              "anchor": "AnimatorConfig.StartClip",
              "kind": "field",
              "doc": "StartClip is the optional starting state or clip override."
            },
            {
              "name": "AutoPlay",
              "anchor": "AnimatorConfig.AutoPlay",
              "kind": "field",
              "doc": "AutoPlay reports whether playback starts automatically."
            },
            {
              "name": "Speed",
              "anchor": "AnimatorConfig.Speed",
              "kind": "field",
              "doc": "Speed is the playback speed multiplier (>= 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ResolveAnimatorComponent",
              "anchor": "ResolveAnimatorComponent",
              "decl": "func ResolveAnimatorComponent(obj *ObjectDoc) (AnimatorConfig, bool, error)",
              "doc": "ResolveAnimatorComponent resolves the built-in \"animator\" component on obj, returning (cfg, true, nil) when present, (zero, false, nil) when absent, or an error when its fields are invalid.\n",
              "file": "pkg/sceneformat/animator.go",
              "line": 75
            }
          ],
          "methods": []
        },
        {
          "name": "AssetResolver",
          "anchor": "AssetResolver",
          "decl": "type AssetResolver interface {\n\tAtlas(name string) (*sprite.Atlas, error)\n}",
          "doc": "AssetResolver resolves sprite atlases named in a SceneDoc when building a BuiltScene.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 27,
          "members": [
            {
              "name": "Atlas",
              "anchor": "AssetResolver.Atlas",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AtlasMap",
          "anchor": "AtlasMap",
          "decl": "type AtlasMap map[string]*sprite.Atlas",
          "doc": "AtlasMap is an AssetResolver backed by a map of atlas names to atlases.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 63,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Atlas",
              "anchor": "AtlasMap.Atlas",
              "recv": "AtlasMap",
              "decl": "func (m AtlasMap) Atlas(name string) (*sprite.Atlas, error)",
              "doc": "Atlas returns the atlas named name or an error when it is absent or nil.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 66
            }
          ]
        },
        {
          "name": "BoundsDoc",
          "anchor": "BoundsDoc",
          "decl": "type BoundsDoc struct {\n\t// X and Y are the rectangle's top-left corner.\n\tX float32 `yaml:\"x,omitempty\"`\n\tY float32 `yaml:\"y,omitempty\"`\n\t// Width and Height are the rectangle's size; both must be positive.\n\tWidth  float32 `yaml:\"width\" schema:\"required,exclusiveMinimum=0\"`\n\tHeight float32 `yaml:\"height\" schema:\"required,exclusiveMinimum=0\"`\n}",
          "doc": "BoundsDoc is an axis-aligned rectangle in world coordinates.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 175,
          "members": [
            {
              "name": "X",
              "anchor": "BoundsDoc.X",
              "kind": "field",
              "doc": "X and Y are the rectangle's top-left corner."
            },
            {
              "name": "Y",
              "anchor": "BoundsDoc.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "BoundsDoc.Width",
              "kind": "field",
              "doc": "Width and Height are the rectangle's size; both must be positive."
            },
            {
              "name": "Height",
              "anchor": "BoundsDoc.Height",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BuiltLayer",
          "anchor": "BuiltLayer",
          "decl": "type BuiltLayer struct {\n\t// Doc is the source layer definition.\n\tDoc *LayerDoc\n\t// Name is the layer's unique name.\n\tName string\n\t// Space is SpaceWorld or SpaceScreen.\n\tSpace Space\n\t// Order is the layer's draw order.\n\tOrder int\n\t// Visible controls whether Draw renders this layer.\n\tVisible bool\n\t// ParallaxX and ParallaxY are the layer's horizontal and vertical parallax scroll factors, defaulting to 1.\n\tParallaxX float32\n\tParallaxY float32\n\t// RepeatX and RepeatY report whether a world-space layer tiles horizontally or vertically across the camera's visible region.\n\tRepeatX bool\n\tRepeatY bool\n\t// RepeatWidth and RepeatHeight are the horizontal and vertical repeat periods in layer points; when RepeatX or RepeatY is true and the document leaves a period 0, Build fills it from the layer's tilemap pixel size or the scene's virtual size.\n\tRepeatWidth  float32\n\tRepeatHeight float32\n\t// Tilemap is the sprite batch for the layer's tilemap when it is a single grid of atlas frames (TilemapDoc.Tileset and Data), or nil.\n\tTilemap *sprite.Batch\n\t// Map is the tilemap built from the layer's tilemap when it is a layered grid (TilemapDoc.TileLayers) or a Tiled or LDtk source, or nil. It holds the tileset's flags, properties, shapes, animations and terrains, so in the layer's coordinates it answers FlagsAt, TileProperties, TilesInRect and Raycast and serves tileshape.New; Draw draws only its tiles inside the view, and BuiltScene.Update animates them.\n\tMap *tilemap.Tilemap\n\t// Batches are the sprite batches for the layer's sprite objects, grouped in exact Z order.\n\tBatches []*sprite.Batch\n\t// Emitters are the layer's built objects that carry a live 2D particle emitter (ObjectDoc.Particles), in document order.\n\tEmitters []*BuiltObject\n\t// Skeletons are the layer's built objects that carry a live 2D skeletal rig (BuiltObject.Skeleton), in Z order.\n\tSkeletons []*BuiltObject\n\t// Objects are the layer's top-level built objects in document order; each one's descendants hang from BuiltObject.Children.\n\tObjects []*BuiltObject\n\t// contains filtered or unexported fields\n}",
          "doc": "BuiltLayer is one resolved layer of a BuiltScene.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 109,
          "members": [
            {
              "name": "Doc",
              "anchor": "BuiltLayer.Doc",
              "kind": "field",
              "doc": "Doc is the source layer definition."
            },
            {
              "name": "Name",
              "anchor": "BuiltLayer.Name",
              "kind": "field",
              "doc": "Name is the layer's unique name."
            },
            {
              "name": "Space",
              "anchor": "BuiltLayer.Space",
              "kind": "field",
              "doc": "Space is SpaceWorld or SpaceScreen."
            },
            {
              "name": "Order",
              "anchor": "BuiltLayer.Order",
              "kind": "field",
              "doc": "Order is the layer's draw order."
            },
            {
              "name": "Visible",
              "anchor": "BuiltLayer.Visible",
              "kind": "field",
              "doc": "Visible controls whether Draw renders this layer."
            },
            {
              "name": "ParallaxX",
              "anchor": "BuiltLayer.ParallaxX",
              "kind": "field",
              "doc": "ParallaxX and ParallaxY are the layer's horizontal and vertical parallax scroll factors, defaulting to 1."
            },
            {
              "name": "ParallaxY",
              "anchor": "BuiltLayer.ParallaxY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RepeatX",
              "anchor": "BuiltLayer.RepeatX",
              "kind": "field",
              "doc": "RepeatX and RepeatY report whether a world-space layer tiles horizontally or vertically across the camera's visible region."
            },
            {
              "name": "RepeatY",
              "anchor": "BuiltLayer.RepeatY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RepeatWidth",
              "anchor": "BuiltLayer.RepeatWidth",
              "kind": "field",
              "doc": "RepeatWidth and RepeatHeight are the horizontal and vertical repeat periods in layer points; when RepeatX or RepeatY is true and the document leaves a period 0, Build fills it from the layer's tilemap pixel size or the scene's virtual size."
            },
            {
              "name": "RepeatHeight",
              "anchor": "BuiltLayer.RepeatHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tilemap",
              "anchor": "BuiltLayer.Tilemap",
              "kind": "field",
              "doc": "Tilemap is the sprite batch for the layer's tilemap when it is a single grid of atlas frames (TilemapDoc.Tileset and Data), or nil."
            },
            {
              "name": "Map",
              "anchor": "BuiltLayer.Map",
              "kind": "field",
              "doc": "Map is the tilemap built from the layer's tilemap when it is a layered grid (TilemapDoc.TileLayers) or a Tiled or LDtk source, or nil. It holds the tileset's flags, properties, shapes, animations and terrains, so in the layer's coordinates it answers FlagsAt, TileProperties, TilesInRect and Raycast and serves tileshape.New; Draw draws only its tiles inside the view, and BuiltScene.Update animates them."
            },
            {
              "name": "Batches",
              "anchor": "BuiltLayer.Batches",
              "kind": "field",
              "doc": "Batches are the sprite batches for the layer's sprite objects, grouped in exact Z order."
            },
            {
              "name": "Emitters",
              "anchor": "BuiltLayer.Emitters",
              "kind": "field",
              "doc": "Emitters are the layer's built objects that carry a live 2D particle emitter (ObjectDoc.Particles), in document order."
            },
            {
              "name": "Skeletons",
              "anchor": "BuiltLayer.Skeletons",
              "kind": "field",
              "doc": "Skeletons are the layer's built objects that carry a live 2D skeletal rig (BuiltObject.Skeleton), in Z order."
            },
            {
              "name": "Objects",
              "anchor": "BuiltLayer.Objects",
              "kind": "field",
              "doc": "Objects are the layer's top-level built objects in document order; each one's descendants hang from BuiltObject.Children."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "BuiltLayer.Draw",
              "recv": "*BuiltLayer",
              "decl": "func (l *BuiltLayer) Draw(d *core.Drawing, view *tilemap.Camera)",
              "doc": "Draw draws the layer's tilemap, layered map, and Z-order interleaved sprite batches, particle emitters, and skeletal rigs into d. When view is nil, every tile of Map draws without culling.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 1231
            },
            {
              "name": "DrawObjects",
              "anchor": "BuiltLayer.DrawObjects",
              "recv": "*BuiltLayer",
              "decl": "func (l *BuiltLayer) DrawObjects(d *core.Drawing)",
              "doc": "DrawObjects draws the layer's sprite batches, particle emitters, and skeletal rigs into d in exact Z order.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 1199
            },
            {
              "name": "RepeatTileRanges",
              "anchor": "BuiltLayer.RepeatTileRanges",
              "recv": "*BuiltLayer",
              "decl": "func (l *BuiltLayer) RepeatTileRanges(camX, camY, vw, vh, zoom, rot float32) (minCol, maxCol, minRow, maxRow int, rx, ry bool)",
              "doc": "RepeatTileRanges computes the tile column and row ranges covering the visible bounds of a camera at (camX, camY) with viewport (vw, vh), zoom and rotation, matching scene.Layer's repeat tiling while guarding non-finite inputs, integer overflow, and extreme repeat counts.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 1122
            }
          ]
        },
        {
          "name": "BuiltObject",
          "anchor": "BuiltObject",
          "decl": "type BuiltObject struct {\n\t// Doc is the source object definition.\n\tDoc *ObjectDoc\n\t// ID is the object's unique scene ID.\n\tID string\n\t// Layer is the name of the layer containing this object.\n\tLayer string\n\t// Atlas is the resolved atlas for Sprite or Skeleton, or nil when the object has neither.\n\tAtlas *sprite.Atlas\n\t// Sprite is the live sprite drawn by its layer's batch, or nil when the object has no sprite. Its X, Y, Rotation, ScaleX, ScaleY and Alpha are the object's world values, composed through its ancestors.\n\tSprite *sprite.Sprite\n\t// Skeleton is the live 2D skeletal rig built from the object's \"skeletal\" component, or nil when none is configured. Its root transform, flips, alpha and Z track the object's world values and BuiltScene.Update advances its playback.\n\tSkeleton *skeletal.Skeleton\n\t// Material is the shared material resolved from Doc.Material, or nil when the object names none. It is the resolver's value, not a copy, so an edit reloaded into it reaches every scene that uses it.\n\tMaterial *resource.Material\n\t// Emitter is the live 2D particle emitter built from Doc.Particles, or nil when the object has none. BuiltScene.Update steps it and BuiltScene.Draw draws it at the object's world transform.\n\tEmitter *particles.Emitter\n\t// Parent is the object this one is a child of, or nil for a top-level object.\n\tParent *BuiltObject\n\t// Children are the object's built children in document order.\n\tChildren []*BuiltObject\n\t// World is the object's transform composed with its ancestors', mapping its local space to its layer's space (World = Parent.World * local).\n\tWorld math2d.Affine\n\t// WorldAlpha is the object's alpha multiplied by every ancestor's.\n\tWorldAlpha float32\n\t// contains filtered or unexported fields\n}",
          "doc": "BuiltObject is one object instantiated from an ObjectDoc.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 153,
          "members": [
            {
              "name": "Doc",
              "anchor": "BuiltObject.Doc",
              "kind": "field",
              "doc": "Doc is the source object definition."
            },
            {
              "name": "ID",
              "anchor": "BuiltObject.ID",
              "kind": "field",
              "doc": "ID is the object's unique scene ID."
            },
            {
              "name": "Layer",
              "anchor": "BuiltObject.Layer",
              "kind": "field",
              "doc": "Layer is the name of the layer containing this object."
            },
            {
              "name": "Atlas",
              "anchor": "BuiltObject.Atlas",
              "kind": "field",
              "doc": "Atlas is the resolved atlas for Sprite or Skeleton, or nil when the object has neither."
            },
            {
              "name": "Sprite",
              "anchor": "BuiltObject.Sprite",
              "kind": "field",
              "doc": "Sprite is the live sprite drawn by its layer's batch, or nil when the object has no sprite. Its X, Y, Rotation, ScaleX, ScaleY and Alpha are the object's world values, composed through its ancestors."
            },
            {
              "name": "Skeleton",
              "anchor": "BuiltObject.Skeleton",
              "kind": "field",
              "doc": "Skeleton is the live 2D skeletal rig built from the object's \"skeletal\" component, or nil when none is configured. Its root transform, flips, alpha and Z track the object's world values and BuiltScene.Update advances its playback."
            },
            {
              "name": "Material",
              "anchor": "BuiltObject.Material",
              "kind": "field",
              "doc": "Material is the shared material resolved from Doc.Material, or nil when the object names none. It is the resolver's value, not a copy, so an edit reloaded into it reaches every scene that uses it."
            },
            {
              "name": "Emitter",
              "anchor": "BuiltObject.Emitter",
              "kind": "field",
              "doc": "Emitter is the live 2D particle emitter built from Doc.Particles, or nil when the object has none. BuiltScene.Update steps it and BuiltScene.Draw draws it at the object's world transform."
            },
            {
              "name": "Parent",
              "anchor": "BuiltObject.Parent",
              "kind": "field",
              "doc": "Parent is the object this one is a child of, or nil for a top-level object."
            },
            {
              "name": "Children",
              "anchor": "BuiltObject.Children",
              "kind": "field",
              "doc": "Children are the object's built children in document order."
            },
            {
              "name": "World",
              "anchor": "BuiltObject.World",
              "kind": "field",
              "doc": "World is the object's transform composed with its ancestors', mapping its local space to its layer's space (World = Parent.World * local)."
            },
            {
              "name": "WorldAlpha",
              "anchor": "BuiltObject.WorldAlpha",
              "kind": "field",
              "doc": "WorldAlpha is the object's alpha multiplied by every ancestor's."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Sync",
              "anchor": "BuiltObject.Sync",
              "recv": "*BuiltObject",
              "decl": "func (bo *BuiltObject) Sync() bool",
              "doc": "Sync recomputes the object's World and WorldAlpha from its document and its parent's, copies its transform, sprite frame (when found in Atlas), origin, flip and alpha onto its sprite (times its material's opacity, as Build does), and does the same for its descendants, so an edit to the document fields of a built object, such as one an animation makes, shows on the next Draw. It reports false, and leaves the sprite's transform as it was, for a sprite whose composed transform is sheared, which a sprite cannot draw.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 848
            }
          ]
        },
        {
          "name": "BuiltScene",
          "anchor": "BuiltScene",
          "decl": "type BuiltScene struct {\n\t// Doc is the validated SceneDoc this scene was built from: the one passed to Build, or for a scene that instances or inherits other scene files, the self-contained copy Resolve made of it, whose objects the BuiltObjects point into.\n\tDoc *SceneDoc\n\t// BackgroundColor is the parsed background color; HasBackground reports whether Draw paints it.\n\tBackgroundColor core.Color\n\tHasBackground   bool\n\t// AmbientColor is the parsed 2D lighting ambient color; HasAmbient reports whether the scene sets one.\n\tAmbientColor core.Color\n\tHasAmbient   bool\n\t// Lights2D is the 2D lighting scene built from SceneDoc.AmbientColor, built-in light2d and occluder2d components, and tilemap collision shapes, or nil when the scene defines none.\n\tLights2D *lights2d.Scene\n\t// SkipLights2D disables drawing Lights2D inside Draw when true (for example when an editor toggles lighting preview off).\n\tSkipLights2D bool\n\t// Lights2DBounds optionally overrides the world-space bounds passed to Lights2D.Draw inside Draw. Nil uses the scene's virtual viewport through Camera (or the union of light/occluder extents when the virtual size is 0).\n\tLights2DBounds *core.Bounds\n\t// NavBake2D is the baked 2D navigation mesh produced from built-in navregion2d components (and optional tilemap collision subtraction), or nil when the scene defines none.\n\tNavBake2D *navbake.Mesh\n\t// NavMesh2D is the runtime 2D ai.NavMesh constructed from NavBake2D (including any authored 2D nav_link components), or nil when the scene defines no navregion2d components.\n\tNavMesh2D *ai.NavMesh\n\t// Camera is the active camera transform for world-space layers; nil leaves world space untransformed.\n\tCamera *CameraDoc\n\t// Layers are the scene's layers in draw order (lowest Order first, ties in document order).\n\tLayers []*BuiltLayer\n\t// Objects indexes every built object in the scene, children included, by its unique ID.\n\tObjects map[string]*BuiltObject\n\n\t// DrawAllTiles makes Draw draw every tile of the layers' maps (BuiltLayer.Map). By default Draw culls them to the scene's view, its virtual viewport through the camera, which a view that shows more of the world, such as an editor's panned past the camera, sets it to avoid.\n\tDrawAllTiles bool\n\t// contains filtered or unexported fields\n}",
          "doc": "BuiltScene is a SceneDoc resolved against atlases and ready to draw into a core.Drawing.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 75,
          "members": [
            {
              "name": "Doc",
              "anchor": "BuiltScene.Doc",
              "kind": "field",
              "doc": "Doc is the validated SceneDoc this scene was built from: the one passed to Build, or for a scene that instances or inherits other scene files, the self-contained copy Resolve made of it, whose objects the BuiltObjects point into."
            },
            {
              "name": "BackgroundColor",
              "anchor": "BuiltScene.BackgroundColor",
              "kind": "field",
              "doc": "BackgroundColor is the parsed background color; HasBackground reports whether Draw paints it."
            },
            {
              "name": "HasBackground",
              "anchor": "BuiltScene.HasBackground",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AmbientColor",
              "anchor": "BuiltScene.AmbientColor",
              "kind": "field",
              "doc": "AmbientColor is the parsed 2D lighting ambient color; HasAmbient reports whether the scene sets one."
            },
            {
              "name": "HasAmbient",
              "anchor": "BuiltScene.HasAmbient",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Lights2D",
              "anchor": "BuiltScene.Lights2D",
              "kind": "field",
              "doc": "Lights2D is the 2D lighting scene built from SceneDoc.AmbientColor, built-in light2d and occluder2d components, and tilemap collision shapes, or nil when the scene defines none."
            },
            {
              "name": "SkipLights2D",
              "anchor": "BuiltScene.SkipLights2D",
              "kind": "field",
              "doc": "SkipLights2D disables drawing Lights2D inside Draw when true (for example when an editor toggles lighting preview off)."
            },
            {
              "name": "Lights2DBounds",
              "anchor": "BuiltScene.Lights2DBounds",
              "kind": "field",
              "doc": "Lights2DBounds optionally overrides the world-space bounds passed to Lights2D.Draw inside Draw. Nil uses the scene's virtual viewport through Camera (or the union of light/occluder extents when the virtual size is 0)."
            },
            {
              "name": "NavBake2D",
              "anchor": "BuiltScene.NavBake2D",
              "kind": "field",
              "doc": "NavBake2D is the baked 2D navigation mesh produced from built-in navregion2d components (and optional tilemap collision subtraction), or nil when the scene defines none."
            },
            {
              "name": "NavMesh2D",
              "anchor": "BuiltScene.NavMesh2D",
              "kind": "field",
              "doc": "NavMesh2D is the runtime 2D ai.NavMesh constructed from NavBake2D (including any authored 2D nav_link components), or nil when the scene defines no navregion2d components."
            },
            {
              "name": "Camera",
              "anchor": "BuiltScene.Camera",
              "kind": "field",
              "doc": "Camera is the active camera transform for world-space layers; nil leaves world space untransformed."
            },
            {
              "name": "Layers",
              "anchor": "BuiltScene.Layers",
              "kind": "field",
              "doc": "Layers are the scene's layers in draw order (lowest Order first, ties in document order)."
            },
            {
              "name": "Objects",
              "anchor": "BuiltScene.Objects",
              "kind": "field",
              "doc": "Objects indexes every built object in the scene, children included, by its unique ID."
            },
            {
              "name": "DrawAllTiles",
              "anchor": "BuiltScene.DrawAllTiles",
              "kind": "field",
              "doc": "DrawAllTiles makes Draw draw every tile of the layers' maps (BuiltLayer.Map). By default Draw culls them to the scene's view, its virtual viewport through the camera, which a view that shows more of the world, such as an editor's panned past the camera, sets it to avoid."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Build",
              "anchor": "Build",
              "decl": "func Build(doc *SceneDoc, resolver AssetResolver) (*BuiltScene, error)",
              "doc": "Build validates doc, resolves its referenced atlases and tilemaps through resolver, and returns a BuiltScene ready to draw. A single grid of atlas frames becomes a sprite batch (BuiltLayer.Tilemap); a layered grid, with the YAML tileset it names read through a FileResolver, and a Tiled or LDtk source, read through a TilemapResolver when the resolver implements one and otherwise through a FileResolver, become a tilemap.Tilemap (BuiltLayer.Map). A scene that instances or inherits other scene files (SceneDoc.RefersToScenes) is first resolved with Resolve, which loads them through resolver when it implements SceneResolver.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 184
            }
          ],
          "methods": [
            {
              "name": "Draw",
              "anchor": "BuiltScene.Draw",
              "recv": "*BuiltScene",
              "decl": "func (s *BuiltScene) Draw(d *core.Drawing)",
              "doc": "Draw draws the scene into d: it syncs materials (SyncMaterials), then draws the background fill over the virtual viewport (when configured), then each visible layer in order, its tilemap beneath its objects. World-space layers draw under the camera transform; screen-space layers draw in canvas coordinates. A layer's map (BuiltLayer.Map) draws only the tiles inside the virtual viewport, seen through the camera for a world-space layer, unless the scene has no virtual size or DrawAllTiles is set. Draw leaves d's transform and paint state as it found it.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 925
            },
            {
              "name": "Layer",
              "anchor": "BuiltScene.Layer",
              "recv": "*BuiltScene",
              "decl": "func (s *BuiltScene) Layer(name string) *BuiltLayer",
              "doc": "Layer returns the built layer named name, or nil if none exists.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 904
            },
            {
              "name": "Object",
              "anchor": "BuiltScene.Object",
              "recv": "*BuiltScene",
              "decl": "func (s *BuiltScene) Object(id string) *BuiltObject",
              "doc": "Object returns the built object with ID id, or nil if none exists.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 917
            },
            {
              "name": "SyncLights2D",
              "anchor": "BuiltScene.SyncLights2D",
              "recv": "*BuiltScene",
              "decl": "func (s *BuiltScene) SyncLights2D() error",
              "doc": "SyncLights2D rebuilds s.Lights2D from the scene's current object transforms, component values, ambient color, and tilemaps, preserving LightComposite and DisableShadows when a Lights2D scene already existed.\n",
              "file": "pkg/sceneformat/lights2d.go",
              "line": 623
            },
            {
              "name": "SyncMaterials",
              "anchor": "BuiltScene.SyncMaterials",
              "recv": "*BuiltScene",
              "decl": "func (s *BuiltScene) SyncMaterials()",
              "doc": "SyncMaterials copies the current state of every object's material onto its sprite, so a material reloaded in place (resource.Library.Reload) shows on the next draw. Draw calls it first; call it directly to read the sprites without drawing.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 894
            },
            {
              "name": "SyncNavMesh2D",
              "anchor": "BuiltScene.SyncNavMesh2D",
              "recv": "*BuiltScene",
              "decl": "func (s *BuiltScene) SyncNavMesh2D() error",
              "doc": "SyncNavMesh2D rebuilds s.NavBake2D and s.NavMesh2D from the scene's current object transforms, navregion2d components, and tilemaps.\n",
              "file": "pkg/sceneformat/navregion2d.go",
              "line": 286
            },
            {
              "name": "Update",
              "anchor": "BuiltScene.Update",
              "recv": "*BuiltScene",
              "decl": "func (s *BuiltScene) Update(dt time.Duration)",
              "doc": "Update advances the animated tiles of every layer's map (BuiltLayer.Map), every placed particle emitter (BuiltLayer.Emitters), and every placed 2D skeletal rig (BuiltLayer.Skeletons) by dt, so the next Draw shows their current frames and poses.\n",
              "file": "pkg/sceneformat/build.go",
              "line": 990
            }
          ]
        },
        {
          "name": "Call",
          "anchor": "Call",
          "decl": "type Call struct {\n\t// Signals is the dispatcher that called the handler, so a handler can emit further events.\n\tSignals *Signals\n\t// Context is the value passed to Connect, such as the game's own state or a *BuiltScene.\n\tContext any\n\t// Source is the object that emitted the event, in the document passed to Connect.\n\tSource *ObjectDoc\n\t// SourceComponent is the component of Source whose type declares the event.\n\tSourceComponent string\n\t// Event is the event's name as its component type declares it, without the component.\n\tEvent string\n\t// Target is the object whose handler runs, in the document passed to Connect.\n\tTarget *ObjectDoc\n\t// Component is the component of Target whose type declares the handler.\n\tComponent string\n\t// Handler is the handler's name as its component type declares it, without the component.\n\tHandler string\n\t// Args holds every param of the handler: the connection's value normalized to the param's Go type (bool, int, float64 or string), or the param's default. The map is the handler's own to change.\n\tArgs map[string]any\n\t// Payload is the value passed to Signals.Emit or Signals.Enqueue.\n\tPayload any\n\t// SourceEntity and TargetEntity are the entities Source and Target were spawned as when SpawnConnected made the Signals, or entities.Zero when Connect made it.\n\tSourceEntity, TargetEntity entities.Entity\n}",
          "doc": "Call is what a HandlerFunc receives: the connection that fired, the objects at both ends and the values passed along.\n",
          "file": "pkg/sceneformat/connections.go",
          "line": 53,
          "members": [
            {
              "name": "Signals",
              "anchor": "Call.Signals",
              "kind": "field",
              "doc": "Signals is the dispatcher that called the handler, so a handler can emit further events."
            },
            {
              "name": "Context",
              "anchor": "Call.Context",
              "kind": "field",
              "doc": "Context is the value passed to Connect, such as the game's own state or a *BuiltScene."
            },
            {
              "name": "Source",
              "anchor": "Call.Source",
              "kind": "field",
              "doc": "Source is the object that emitted the event, in the document passed to Connect."
            },
            {
              "name": "SourceComponent",
              "anchor": "Call.SourceComponent",
              "kind": "field",
              "doc": "SourceComponent is the component of Source whose type declares the event."
            },
            {
              "name": "Event",
              "anchor": "Call.Event",
              "kind": "field",
              "doc": "Event is the event's name as its component type declares it, without the component."
            },
            {
              "name": "Target",
              "anchor": "Call.Target",
              "kind": "field",
              "doc": "Target is the object whose handler runs, in the document passed to Connect."
            },
            {
              "name": "Component",
              "anchor": "Call.Component",
              "kind": "field",
              "doc": "Component is the component of Target whose type declares the handler."
            },
            {
              "name": "Handler",
              "anchor": "Call.Handler",
              "kind": "field",
              "doc": "Handler is the handler's name as its component type declares it, without the component."
            },
            {
              "name": "Args",
              "anchor": "Call.Args",
              "kind": "field",
              "doc": "Args holds every param of the handler: the connection's value normalized to the param's Go type (bool, int, float64 or string), or the param's default. The map is the handler's own to change."
            },
            {
              "name": "Payload",
              "anchor": "Call.Payload",
              "kind": "field",
              "doc": "Payload is the value passed to Signals.Emit or Signals.Enqueue."
            },
            {
              "name": "SourceEntity",
              "anchor": "Call.SourceEntity",
              "kind": "field",
              "doc": "SourceEntity and TargetEntity are the entities Source and Target were spawned as when SpawnConnected made the Signals, or entities.Zero when Connect made it."
            },
            {
              "name": "TargetEntity",
              "anchor": "Call.TargetEntity",
              "kind": "field",
              "doc": "SourceEntity and TargetEntity are the entities Source and Target were spawned as when SpawnConnected made the Signals, or entities.Zero when Connect made it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Camera3DDoc",
          "anchor": "Camera3DDoc",
          "decl": "type Camera3DDoc struct {\n\t// Projection selects ProjectionPerspective (\"perspective\") or ProjectionOrthographic (\"orthographic\"); empty defaults to perspective.\n\tProjection ProjectionKind `yaml:\"projection,omitempty\" schema:\"enum=perspective|orthographic\"`\n\t// FOV is a perspective camera's vertical field of view in degrees, in (0, 180); nil defaults to 60. Refused on orthographic cameras.\n\tFOV *float32 `yaml:\"fov,omitempty\" schema:\"exclusiveMinimum=0,exclusiveMaximum=180\"`\n\t// OrthoHeight is an orthographic camera's full vertical world height; nil defaults to 10. Must be finite and positive; refused on perspective cameras.\n\tOrthoHeight *float32 `yaml:\"orthoHeight,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// Near is the near clip plane distance; nil defaults to 0.1. Must be finite and positive for perspective cameras, and finite for orthographic cameras.\n\tNear *float32 `yaml:\"near,omitempty\"`\n\t// Far is the far clip plane distance; nil defaults to 1000. Must be finite and greater than near.\n\tFar *float32 `yaml:\"far,omitempty\"`\n\t// Current marks this camera as the scene's active 3D camera. At most one camera in a scene may be current; when none is marked, the first 3D camera in document order is used.\n\tCurrent bool `yaml:\"current,omitempty\"`\n}",
          "doc": "Camera3DDoc configures a 3D camera attached to an object (ObjectDoc.Camera). Its world position and orientation (looking down local -Z with +Y up) come from the object's 3D transform. Version 4.\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 88,
          "members": [
            {
              "name": "Projection",
              "anchor": "Camera3DDoc.Projection",
              "kind": "field",
              "doc": "Projection selects ProjectionPerspective (\"perspective\") or ProjectionOrthographic (\"orthographic\"); empty defaults to perspective."
            },
            {
              "name": "FOV",
              "anchor": "Camera3DDoc.FOV",
              "kind": "field",
              "doc": "FOV is a perspective camera's vertical field of view in degrees, in (0, 180); nil defaults to 60. Refused on orthographic cameras."
            },
            {
              "name": "OrthoHeight",
              "anchor": "Camera3DDoc.OrthoHeight",
              "kind": "field",
              "doc": "OrthoHeight is an orthographic camera's full vertical world height; nil defaults to 10. Must be finite and positive; refused on perspective cameras."
            },
            {
              "name": "Near",
              "anchor": "Camera3DDoc.Near",
              "kind": "field",
              "doc": "Near is the near clip plane distance; nil defaults to 0.1. Must be finite and positive for perspective cameras, and finite for orthographic cameras."
            },
            {
              "name": "Far",
              "anchor": "Camera3DDoc.Far",
              "kind": "field",
              "doc": "Far is the far clip plane distance; nil defaults to 1000. Must be finite and greater than near."
            },
            {
              "name": "Current",
              "anchor": "Camera3DDoc.Current",
              "kind": "field",
              "doc": "Current marks this camera as the scene's active 3D camera. At most one camera in a scene may be current; when none is marked, the first 3D camera in document order is used."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Camera3DDoc.Clone",
              "recv": "*Camera3DDoc",
              "decl": "func (c *Camera3DDoc) Clone() *Camera3DDoc",
              "doc": "Clone returns a deep copy of c, or nil when c is nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 144
            },
            {
              "name": "EffectiveFOV",
              "anchor": "Camera3DDoc.EffectiveFOV",
              "recv": "*Camera3DDoc",
              "decl": "func (c *Camera3DDoc) EffectiveFOV() float32",
              "doc": "EffectiveFOV returns a perspective camera's vertical field of view in degrees, defaulting to 60 when nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 112
            },
            {
              "name": "EffectiveFar",
              "anchor": "Camera3DDoc.EffectiveFar",
              "recv": "*Camera3DDoc",
              "decl": "func (c *Camera3DDoc) EffectiveFar() float32",
              "doc": "EffectiveFar returns the far clip plane distance, defaulting to 1000 when nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 136
            },
            {
              "name": "EffectiveNear",
              "anchor": "Camera3DDoc.EffectiveNear",
              "recv": "*Camera3DDoc",
              "decl": "func (c *Camera3DDoc) EffectiveNear() float32",
              "doc": "EffectiveNear returns the near clip plane distance, defaulting to 0.1 when nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 128
            },
            {
              "name": "EffectiveOrthoHeight",
              "anchor": "Camera3DDoc.EffectiveOrthoHeight",
              "recv": "*Camera3DDoc",
              "decl": "func (c *Camera3DDoc) EffectiveOrthoHeight() float32",
              "doc": "EffectiveOrthoHeight returns an orthographic camera's full vertical world height, defaulting to 10 when nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 120
            },
            {
              "name": "EffectiveProjection",
              "anchor": "Camera3DDoc.EffectiveProjection",
              "recv": "*Camera3DDoc",
              "decl": "func (c *Camera3DDoc) EffectiveProjection() ProjectionKind",
              "doc": "EffectiveProjection returns c.Projection, defaulting to ProjectionPerspective when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 104
            }
          ]
        },
        {
          "name": "CameraDoc",
          "anchor": "CameraDoc",
          "decl": "type CameraDoc struct {\n\t// X and Y are the world coordinates centered in the virtual viewport (or mapped to the origin when virtual dimensions are 0).\n\tX float32 `yaml:\"x,omitempty\"`\n\tY float32 `yaml:\"y,omitempty\"`\n\t// Zoom is the camera zoom factor; nil defaults to 1. Must be positive when set.\n\tZoom *float32 `yaml:\"zoom,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// Rotation turns the camera clockwise in radians; world geometry rotates by -Rotation around (X, Y).\n\tRotation float32 `yaml:\"rotation,omitempty\"`\n\t// Bounds optionally clamps the camera view inside a world rectangle.\n\tBounds *BoundsDoc `yaml:\"bounds,omitempty\"`\n}",
          "doc": "CameraDoc describes a 2D camera transform for world-space layers.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 154,
          "members": [
            {
              "name": "X",
              "anchor": "CameraDoc.X",
              "kind": "field",
              "doc": "X and Y are the world coordinates centered in the virtual viewport (or mapped to the origin when virtual dimensions are 0)."
            },
            {
              "name": "Y",
              "anchor": "CameraDoc.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Zoom",
              "anchor": "CameraDoc.Zoom",
              "kind": "field",
              "doc": "Zoom is the camera zoom factor; nil defaults to 1. Must be positive when set."
            },
            {
              "name": "Rotation",
              "anchor": "CameraDoc.Rotation",
              "kind": "field",
              "doc": "Rotation turns the camera clockwise in radians; world geometry rotates by -Rotation around (X, Y)."
            },
            {
              "name": "Bounds",
              "anchor": "CameraDoc.Bounds",
              "kind": "field",
              "doc": "Bounds optionally clamps the camera view inside a world rectangle."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveZoom",
              "anchor": "CameraDoc.EffectiveZoom",
              "recv": "*CameraDoc",
              "decl": "func (c *CameraDoc) EffectiveZoom() float32",
              "doc": "EffectiveZoom returns the camera's zoom factor, defaulting to 1 when Zoom is nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 167
            }
          ]
        },
        {
          "name": "Circle",
          "anchor": "Circle",
          "decl": "type Circle struct {\n\t// X is the horizontal center coordinate in object-local space.\n\tX float64 `yaml:\"x\"`\n\t// Y is the vertical center coordinate in object-local space.\n\tY float64 `yaml:\"y\"`\n\t// Radius is the circle's radius in object-local space (non-negative).\n\tRadius float64 `yaml:\"radius\" schema:\"minimum=0\"`\n}",
          "doc": "Circle is a 2D circle in an object's local coordinate space, used by FieldCircle component fields.\n",
          "file": "pkg/sceneformat/shapes.go",
          "line": 47,
          "members": [
            {
              "name": "X",
              "anchor": "Circle.X",
              "kind": "field",
              "doc": "X is the horizontal center coordinate in object-local space."
            },
            {
              "name": "Y",
              "anchor": "Circle.Y",
              "kind": "field",
              "doc": "Y is the vertical center coordinate in object-local space."
            },
            {
              "name": "Radius",
              "anchor": "Circle.Radius",
              "kind": "field",
              "doc": "Radius is the circle's radius in object-local space (non-negative)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseCircle",
              "anchor": "ParseCircle",
              "decl": "func ParseCircle(v any) (Circle, error)",
              "doc": "ParseCircle converts a component field value (Circle or decoded YAML map) to a validated Circle.\n",
              "file": "pkg/sceneformat/shapes.go",
              "line": 289
            }
          ],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Circle.MarshalYAML",
              "recv": "Circle",
              "decl": "func (c Circle) MarshalYAML() (any, error)",
              "doc": "MarshalYAML encodes Circle with deterministic alphabetical key order matching YAML map decoding (\"radius\", \"x\", \"y\").\n",
              "file": "pkg/sceneformat/shapes.go",
              "line": 57
            }
          ]
        },
        {
          "name": "ComponentError",
          "anchor": "ComponentError",
          "decl": "type ComponentError struct {\n\t// File is ParseOptions.File, or empty.\n\tFile string\n\t// Line and Column are the 1-based position of the offending key or value, or 0 when unknown.\n\tLine, Column int\n\t// Object is the ID of the object holding the component, or empty when the check was not about a scene object.\n\tObject string\n\t// Component is the component type name as written.\n\tComponent string\n\t// Field is the field name as written, or empty when the error is about the whole component.\n\tField string\n\t// Msg says what is wrong.\n\tMsg string\n}",
          "doc": "ComponentError reports a component value that does not match its registered type. File, Line and Column locate it in a scene file when it came from ParseWith; they are empty or zero otherwise.\n",
          "file": "pkg/sceneformat/components.go",
          "line": 405,
          "members": [
            {
              "name": "File",
              "anchor": "ComponentError.File",
              "kind": "field",
              "doc": "File is ParseOptions.File, or empty."
            },
            {
              "name": "Line",
              "anchor": "ComponentError.Line",
              "kind": "field",
              "doc": "Line and Column are the 1-based position of the offending key or value, or 0 when unknown."
            },
            {
              "name": "Column",
              "anchor": "ComponentError.Column",
              "kind": "field",
              "doc": "Line and Column are the 1-based position of the offending key or value, or 0 when unknown."
            },
            {
              "name": "Object",
              "anchor": "ComponentError.Object",
              "kind": "field",
              "doc": "Object is the ID of the object holding the component, or empty when the check was not about a scene object."
            },
            {
              "name": "Component",
              "anchor": "ComponentError.Component",
              "kind": "field",
              "doc": "Component is the component type name as written."
            },
            {
              "name": "Field",
              "anchor": "ComponentError.Field",
              "kind": "field",
              "doc": "Field is the field name as written, or empty when the error is about the whole component."
            },
            {
              "name": "Msg",
              "anchor": "ComponentError.Msg",
              "kind": "field",
              "doc": "Msg says what is wrong."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "ComponentError.Error",
              "recv": "*ComponentError",
              "decl": "func (e *ComponentError) Error() string",
              "doc": "Error formats the error as \"file:line:col: sceneformat: object \"id\" component \"name\" field \"f\": msg\", leaving out the parts that are unknown.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 421
            }
          ]
        },
        {
          "name": "ComponentRegistry",
          "anchor": "ComponentRegistry",
          "decl": "type ComponentRegistry struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ComponentRegistry holds the component types scene files may use. Types are declared explicitly in Go, so loading needs no reflection over game structs. Register every type before the registry is shared; lookups are safe from many goroutines once registration is done, but Register is not safe to call concurrently with them.\n",
          "file": "pkg/sceneformat/components.go",
          "line": 158,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "AnimatorComponentRegistry",
              "anchor": "AnimatorComponentRegistry",
              "decl": "func AnimatorComponentRegistry() *ComponentRegistry",
              "doc": "AnimatorComponentRegistry returns a new ComponentRegistry containing the built-in \"animator\" component.\n",
              "file": "pkg/sceneformat/animator.go",
              "line": 52
            },
            {
              "name": "Lights2DComponentRegistry",
              "anchor": "Lights2DComponentRegistry",
              "decl": "func Lights2DComponentRegistry() *ComponentRegistry",
              "doc": "Lights2DComponentRegistry returns a new ComponentRegistry pre-populated with the built-in 2D lighting components.\n",
              "file": "pkg/sceneformat/lights2d.go",
              "line": 101
            },
            {
              "name": "NavRegion2DComponentRegistry",
              "anchor": "NavRegion2DComponentRegistry",
              "decl": "func NavRegion2DComponentRegistry() *ComponentRegistry",
              "doc": "NavRegion2DComponentRegistry returns a new ComponentRegistry pre-populated with the built-in \"navregion2d\" component.\n",
              "file": "pkg/sceneformat/navregion2d.go",
              "line": 56
            },
            {
              "name": "NewComponentRegistry",
              "anchor": "NewComponentRegistry",
              "decl": "func NewComponentRegistry() *ComponentRegistry",
              "doc": "NewComponentRegistry returns an empty registry.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 163
            },
            {
              "name": "PhysicsComponentRegistry",
              "anchor": "PhysicsComponentRegistry",
              "decl": "func PhysicsComponentRegistry() *ComponentRegistry",
              "doc": "PhysicsComponentRegistry returns a new ComponentRegistry pre-populated with all built-in 2D and 3D physics components.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 267
            },
            {
              "name": "SkeletalComponentRegistry",
              "anchor": "SkeletalComponentRegistry",
              "decl": "func SkeletalComponentRegistry() *ComponentRegistry",
              "doc": "SkeletalComponentRegistry returns a new ComponentRegistry pre-populated with the built-in \"skeletal\" component.\n",
              "file": "pkg/sceneformat/skeletal.go",
              "line": 53
            }
          ],
          "methods": [
            {
              "name": "CheckComponent",
              "anchor": "ComponentRegistry.CheckComponent",
              "recv": "*ComponentRegistry",
              "decl": "func (r *ComponentRegistry) CheckComponent(component string, value any) error",
              "doc": "CheckComponent checks that value is a mapping whose keys are all registered fields of component with values of the right kind and range. Fields are checked in ascending name order so the first error is deterministic.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 325
            },
            {
              "name": "CheckField",
              "anchor": "ComponentRegistry.CheckField",
              "recv": "*ComponentRegistry",
              "decl": "func (r *ComponentRegistry) CheckField(component, field string, value any) (any, error)",
              "doc": "CheckField checks value against the registered field component.field and returns it normalized to the field's Go type (bool, int, float64 or string). The error names the component and field; it is a *ComponentError without a position.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 308
            },
            {
              "name": "Lookup",
              "anchor": "ComponentRegistry.Lookup",
              "recv": "*ComponentRegistry",
              "decl": "func (r *ComponentRegistry) Lookup(name string) (ComponentType, bool)",
              "doc": "Lookup returns a copy of the component type named name and whether it is registered.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 276
            },
            {
              "name": "MustRegister",
              "anchor": "ComponentRegistry.MustRegister",
              "recv": "*ComponentRegistry",
              "decl": "func (r *ComponentRegistry) MustRegister(t ComponentType)",
              "doc": "MustRegister is Register for package-level setup; it panics when Register returns an error.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 269
            },
            {
              "name": "Names",
              "anchor": "ComponentRegistry.Names",
              "recv": "*ComponentRegistry",
              "decl": "func (r *ComponentRegistry) Names() []string",
              "doc": "Names returns the registered type names in ascending order.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 285
            },
            {
              "name": "Register",
              "anchor": "ComponentRegistry.Register",
              "recv": "*ComponentRegistry",
              "decl": "func (r *ComponentRegistry) Register(t ComponentType) error",
              "doc": "Register adds t to the registry. It refuses an empty or duplicate type name, an empty or duplicate field name, an unknown kind, a range or step on a non-numeric field, a range whose Min is above its Max, a fractional range or step on an int field, a negative or non-finite step, and a default of the wrong kind or outside the range. It refuses an event or handler whose name is empty, holds a dot or repeats another event's or handler's of the type, and a handler's params on the same terms as fields; an event and a handler may share a name. The registry keeps its own copy of t.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 171
            },
            {
              "name": "Resolve",
              "anchor": "ComponentRegistry.Resolve",
              "recv": "*ComponentRegistry",
              "decl": "func (r *ComponentRegistry) Resolve(component string, data map[string]any) (map[string]any, error)",
              "doc": "Resolve checks data against component and returns a new map holding every registered field: the value from data where it is set and the registered default otherwise. Use it at runtime to read a component without repeating its defaults; the scene document itself keeps only the fields its author wrote.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 348
            },
            {
              "name": "Types",
              "anchor": "ComponentRegistry.Types",
              "recv": "*ComponentRegistry",
              "decl": "func (r *ComponentRegistry) Types() []ComponentType",
              "doc": "Types returns copies of the registered types ordered by name.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 298
            }
          ]
        },
        {
          "name": "ComponentType",
          "anchor": "ComponentType",
          "decl": "type ComponentType struct {\n\t// Name is the key under an object's components mapping, such as \"body\" or \"collider\". It must be non-empty and unique within a registry.\n\tName string\n\t// Doc is a one-line description shown by tools such as the editor's inspector.\n\tDoc string\n\t// Fields are the component's fields in the order tools list them.\n\tFields []Field\n\t// Events are the events an object with this component emits, such as a button's \"pressed\", in the order tools list them. A scene's connections (SceneDoc.Connections) name them, and Signals.Emit fires them.\n\tEvents []Event\n\t// Handlers are what an object with this component can do when an event connected to it fires, such as a door's \"open\", in the order tools list them.\n\tHandlers []Handler\n}",
          "doc": "ComponentType is a registered component: the name it is keyed by under an object's components and its fields in declaration order.\n",
          "file": "pkg/sceneformat/components.go",
          "line": 93,
          "members": [
            {
              "name": "Name",
              "anchor": "ComponentType.Name",
              "kind": "field",
              "doc": "Name is the key under an object's components mapping, such as \"body\" or \"collider\". It must be non-empty and unique within a registry."
            },
            {
              "name": "Doc",
              "anchor": "ComponentType.Doc",
              "kind": "field",
              "doc": "Doc is a one-line description shown by tools such as the editor's inspector."
            },
            {
              "name": "Fields",
              "anchor": "ComponentType.Fields",
              "kind": "field",
              "doc": "Fields are the component's fields in the order tools list them."
            },
            {
              "name": "Events",
              "anchor": "ComponentType.Events",
              "kind": "field",
              "doc": "Events are the events an object with this component emits, such as a button's \"pressed\", in the order tools list them. A scene's connections (SceneDoc.Connections) name them, and Signals.Emit fires them."
            },
            {
              "name": "Handlers",
              "anchor": "ComponentType.Handlers",
              "kind": "field",
              "doc": "Handlers are what an object with this component can do when an event connected to it fires, such as a door's \"open\", in the order tools list them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "AnimatorComponent",
              "anchor": "AnimatorComponent",
              "decl": "func AnimatorComponent() ComponentType",
              "doc": "AnimatorComponent returns the ComponentType schema for the built-in \"animator\" component.\nAn object with an animator component names a *.states.yaml file and an optional starting state or clip.\n",
              "file": "pkg/sceneformat/animator.go",
              "line": 13
            },
            {
              "name": "Body2DComponent",
              "anchor": "Body2DComponent",
              "decl": "func Body2DComponent() ComponentType",
              "doc": "Body2DComponent returns the ComponentType schema for the built-in \"body2d\" component.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 87
            },
            {
              "name": "Body3DComponent",
              "anchor": "Body3DComponent",
              "decl": "func Body3DComponent() ComponentType",
              "doc": "Body3DComponent returns the ComponentType schema for the built-in \"body3d\" component.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 157
            },
            {
              "name": "Collider2DComponent",
              "anchor": "Collider2DComponent",
              "decl": "func Collider2DComponent() ComponentType",
              "doc": "Collider2DComponent returns the ComponentType schema for the built-in \"collider2d\" component.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 108
            },
            {
              "name": "Collider3DComponent",
              "anchor": "Collider3DComponent",
              "decl": "func Collider3DComponent() ComponentType",
              "doc": "Collider3DComponent returns the ComponentType schema for the built-in \"collider3d\" component.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 188
            },
            {
              "name": "CoverPointComponent",
              "anchor": "CoverPointComponent",
              "decl": "func CoverPointComponent() ComponentType",
              "doc": "CoverPointComponent returns the ComponentType schema for authoring ai.CoverPoint objects in scene YAML.\n\nRegister it on a ComponentRegistry via RegisterCoverPoint so ParseWith validates cover_point fields\nand rejects unknown keys, wrong types, or out-of-range facing components.\n",
              "file": "pkg/sceneformat/cover.go",
              "line": 19
            },
            {
              "name": "Light2DComponent",
              "anchor": "Light2DComponent",
              "decl": "func Light2DComponent() ComponentType",
              "doc": "Light2DComponent returns the ComponentType schema for the built-in \"light2d\" component.\n",
              "file": "pkg/sceneformat/lights2d.go",
              "line": 46
            },
            {
              "name": "NavLinkComponent",
              "anchor": "NavLinkComponent",
              "decl": "func NavLinkComponent() ComponentType",
              "doc": "NavLinkComponent returns the ComponentType schema for authoring off-mesh navigation links\nin scene YAML files (for both 2D ai.NavMesh and 3D world3d.NavMesh / navbake3d).\n\nThe link's Start and End are expressed in the object's local space (start defaults to the object\norigin (0, 0, 0), end to (endX, endY, endZ)) and transformed by the object's composed world\ntransform when extracted, so moving, rotating, or instancing a scene or prefab carries both\nendpoints together.\n\nRegister it on a ComponentRegistry via RegisterNavLink so ParseWith validates nav_link fields\nand rejects unknown keys, wrong types, or out-of-range values.\n",
              "file": "pkg/sceneformat/navlink.go",
              "line": 28
            },
            {
              "name": "NavRegion2DComponent",
              "anchor": "NavRegion2DComponent",
              "decl": "func NavRegion2DComponent() ComponentType",
              "doc": "NavRegion2DComponent returns the ComponentType schema for the built-in \"navregion2d\" component.\n",
              "file": "pkg/sceneformat/navregion2d.go",
              "line": 31
            },
            {
              "name": "Occluder2DComponent",
              "anchor": "Occluder2DComponent",
              "decl": "func Occluder2DComponent() ComponentType",
              "doc": "Occluder2DComponent returns the ComponentType schema for the built-in \"occluder2d\" component.\n",
              "file": "pkg/sceneformat/lights2d.go",
              "line": 68
            },
            {
              "name": "SkeletalComponent",
              "anchor": "SkeletalComponent",
              "decl": "func SkeletalComponent() ComponentType",
              "doc": "SkeletalComponent returns the ComponentType schema for the built-in \"skeletal\" component,\nwhich places a 2D skeletal rig (.skel.yaml) on a scene object with an atlas, skin, and animation.\n",
              "file": "pkg/sceneformat/skeletal.go",
              "line": 32
            },
            {
              "name": "Trigger2DComponent",
              "anchor": "Trigger2DComponent",
              "decl": "func Trigger2DComponent() ComponentType",
              "doc": "Trigger2DComponent returns the ComponentType schema for the built-in \"trigger2d\" component.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 133
            },
            {
              "name": "Trigger3DComponent",
              "anchor": "Trigger3DComponent",
              "decl": "func Trigger3DComponent() ComponentType",
              "doc": "Trigger3DComponent returns the ComponentType schema for the built-in \"trigger3d\" component.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 220
            }
          ],
          "methods": [
            {
              "name": "Event",
              "anchor": "ComponentType.Event",
              "recv": "*ComponentType",
              "decl": "func (t *ComponentType) Event(name string) (Event, bool)",
              "doc": "Event returns the event named name and whether the type declares it.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 120
            },
            {
              "name": "Field",
              "anchor": "ComponentType.Field",
              "recv": "*ComponentType",
              "decl": "func (t *ComponentType) Field(name string) (Field, bool)",
              "doc": "Field returns the field named name and whether the type has it.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 107
            },
            {
              "name": "FieldNames",
              "anchor": "ComponentType.FieldNames",
              "recv": "*ComponentType",
              "decl": "func (t *ComponentType) FieldNames() []string",
              "doc": "FieldNames returns the type's field names in declaration order.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 146
            },
            {
              "name": "Handler",
              "anchor": "ComponentType.Handler",
              "recv": "*ComponentType",
              "decl": "func (t *ComponentType) Handler(name string) (Handler, bool)",
              "doc": "Handler returns the handler named name and whether the type declares it.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 133
            }
          ]
        },
        {
          "name": "ConflictDoc",
          "anchor": "ConflictDoc",
          "decl": "type ConflictDoc struct {\n\t// Version is ConflictVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Path is the scene's slash-separated path in the repository (git's %P), when known.\n\tPath string `yaml:\"path,omitempty\"`\n\t// Merged lists items the merge driver joined cleanly by identity from one or both sides.\n\tMerged []MergedItem `yaml:\"merged,omitempty\"`\n\t// Conflicts lists every unresolved conflict in deterministic order.\n\tConflicts []MergeConflict `yaml:\"conflicts\"`\n}",
          "doc": "ConflictDoc is the versioned, deterministic YAML document left behind when a\nthree-way scene merge cannot finish cleanly.\n",
          "file": "pkg/sceneformat/conflict.go",
          "line": 36,
          "members": [
            {
              "name": "Version",
              "anchor": "ConflictDoc.Version",
              "kind": "field",
              "doc": "Version is ConflictVersion (1)."
            },
            {
              "name": "Path",
              "anchor": "ConflictDoc.Path",
              "kind": "field",
              "doc": "Path is the scene's slash-separated path in the repository (git's %P), when known."
            },
            {
              "name": "Merged",
              "anchor": "ConflictDoc.Merged",
              "kind": "field",
              "doc": "Merged lists items the merge driver joined cleanly by identity from one or both sides."
            },
            {
              "name": "Conflicts",
              "anchor": "ConflictDoc.Conflicts",
              "kind": "field",
              "doc": "Conflicts lists every unresolved conflict in deterministic order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseConflict",
              "anchor": "ParseConflict",
              "decl": "func ParseConflict(data []byte) (*ConflictDoc, error)",
              "doc": "ParseConflict decodes and validates a YAML scene merge conflict document.\nUnknown fields, unsupported versions and trailing YAML documents are refused.\n",
              "file": "pkg/sceneformat/conflict.go",
              "line": 86
            }
          ],
          "methods": []
        },
        {
          "name": "ConflictKind",
          "anchor": "ConflictKind",
          "decl": "type ConflictKind string",
          "doc": "ConflictKind classifies why a three-way scene merge entry conflicted.\n",
          "file": "pkg/sceneformat/conflict.go",
          "line": 19,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ConflictField",
                  "anchor": "ConflictField"
                },
                {
                  "name": "ConflictDeleteModify",
                  "anchor": "ConflictDeleteModify"
                },
                {
                  "name": "ConflictAddAdd",
                  "anchor": "ConflictAddAdd"
                },
                {
                  "name": "ConflictMove",
                  "anchor": "ConflictMove"
                },
                {
                  "name": "ConflictValidation",
                  "anchor": "ConflictValidation"
                }
              ],
              "decl": "const (\n\t// ConflictField means both branches changed the same field to different values.\n\tConflictField ConflictKind = \"field\"\n\t// ConflictDeleteModify means one branch deleted an item while the other modified it.\n\tConflictDeleteModify ConflictKind = \"delete-modify\"\n\t// ConflictAddAdd means both branches added an item with the same identity and different contents.\n\tConflictAddAdd ConflictKind = \"add-add\"\n\t// ConflictMove means both branches moved the same object to different parents or layers, or combined moves formed a cycle.\n\tConflictMove ConflictKind = \"move\"\n\t// ConflictValidation means the merged scene failed SceneDoc validation.\n\tConflictValidation ConflictKind = \"validation\"\n)",
              "doc": "",
              "file": "pkg/sceneformat/conflict.go",
              "line": 21
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConnectionDoc",
          "anchor": "ConnectionDoc",
          "decl": "type ConnectionDoc struct {\n\t// From is the ID of the object that emits the event. In a scene that instances or inherits other scene files it may name their objects, such as \"door_1/button\".\n\tFrom string `yaml:\"from\" schema:\"required,minLength=1\"`\n\t// Event names an event a registered component type of From's object declares (ComponentType.Events), such as \"pressed\", or \"button.pressed\" to say which component when several of the object's components declare it.\n\tEvent string `yaml:\"event\" schema:\"required,minLength=1\"`\n\t// To is the ID of the object whose handler runs.\n\tTo string `yaml:\"to\" schema:\"required,minLength=1\"`\n\t// Handler names a handler a registered component type of To's object declares (ComponentType.Handlers), such as \"open\", or \"door.open\" to say which component.\n\tHandler string `yaml:\"handler\" schema:\"required,minLength=1\"`\n\t// Args are values for the handler's params by name; a param left out takes its default. Each is a bool, a number or a string.\n\tArgs map[string]any `yaml:\"args,omitempty\"`\n\t// Once disconnects the connection after the first time the event fires, as Godot's one-shot connections do.\n\tOnce bool `yaml:\"once,omitempty\"`\n}",
          "doc": "ConnectionDoc connects an event that one object emits to a handler of another object, or of the same one (SceneDoc.Connections). Signals.Emit calls the handler each time the object emits the event.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 114,
          "members": [
            {
              "name": "From",
              "anchor": "ConnectionDoc.From",
              "kind": "field",
              "doc": "From is the ID of the object that emits the event. In a scene that instances or inherits other scene files it may name their objects, such as \"door_1/button\"."
            },
            {
              "name": "Event",
              "anchor": "ConnectionDoc.Event",
              "kind": "field",
              "doc": "Event names an event a registered component type of From's object declares (ComponentType.Events), such as \"pressed\", or \"button.pressed\" to say which component when several of the object's components declare it."
            },
            {
              "name": "To",
              "anchor": "ConnectionDoc.To",
              "kind": "field",
              "doc": "To is the ID of the object whose handler runs."
            },
            {
              "name": "Handler",
              "anchor": "ConnectionDoc.Handler",
              "kind": "field",
              "doc": "Handler names a handler a registered component type of To's object declares (ComponentType.Handlers), such as \"open\", or \"door.open\" to say which component."
            },
            {
              "name": "Args",
              "anchor": "ConnectionDoc.Args",
              "kind": "field",
              "doc": "Args are values for the handler's params by name; a param left out takes its default. Each is a bool, a number or a string."
            },
            {
              "name": "Once",
              "anchor": "ConnectionDoc.Once",
              "kind": "field",
              "doc": "Once disconnects the connection after the first time the event fires, as Godot's one-shot connections do."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ConnectionError",
          "anchor": "ConnectionError",
          "decl": "type ConnectionError struct {\n\t// File is ParseOptions.File, or empty.\n\tFile string\n\t// Line and Column are the 1-based position of the offending value, or 0 when unknown.\n\tLine, Column int\n\t// Index is the connection's index in SceneDoc.Connections.\n\tIndex int\n\t// From, Event, To and Handler are the connection's fields as written.\n\tFrom, Event, To, Handler string\n\t// Field is the connection's key at fault: \"from\", \"event\", \"to\", \"handler\" or \"args\".\n\tField string\n\t// Arg is the argument at fault when Field is \"args\", or empty.\n\tArg string\n\t// Msg says what is wrong.\n\tMsg string\n}",
          "doc": "ConnectionError reports a connection (SceneDoc.Connections) that names an event, handler or argument its objects' registered component types do not declare. File, Line and Column locate it in a scene file when it came from ParseWith; they are empty or zero otherwise.\n",
          "file": "pkg/sceneformat/connections.go",
          "line": 79,
          "members": [
            {
              "name": "File",
              "anchor": "ConnectionError.File",
              "kind": "field",
              "doc": "File is ParseOptions.File, or empty."
            },
            {
              "name": "Line",
              "anchor": "ConnectionError.Line",
              "kind": "field",
              "doc": "Line and Column are the 1-based position of the offending value, or 0 when unknown."
            },
            {
              "name": "Column",
              "anchor": "ConnectionError.Column",
              "kind": "field",
              "doc": "Line and Column are the 1-based position of the offending value, or 0 when unknown."
            },
            {
              "name": "Index",
              "anchor": "ConnectionError.Index",
              "kind": "field",
              "doc": "Index is the connection's index in SceneDoc.Connections."
            },
            {
              "name": "From",
              "anchor": "ConnectionError.From",
              "kind": "field",
              "doc": "From, Event, To and Handler are the connection's fields as written."
            },
            {
              "name": "Event",
              "anchor": "ConnectionError.Event",
              "kind": "field",
              "doc": "From, Event, To and Handler are the connection's fields as written."
            },
            {
              "name": "To",
              "anchor": "ConnectionError.To",
              "kind": "field",
              "doc": "From, Event, To and Handler are the connection's fields as written."
            },
            {
              "name": "Handler",
              "anchor": "ConnectionError.Handler",
              "kind": "field",
              "doc": "From, Event, To and Handler are the connection's fields as written."
            },
            {
              "name": "Field",
              "anchor": "ConnectionError.Field",
              "kind": "field",
              "doc": "Field is the connection's key at fault: \"from\", \"event\", \"to\", \"handler\" or \"args\"."
            },
            {
              "name": "Arg",
              "anchor": "ConnectionError.Arg",
              "kind": "field",
              "doc": "Arg is the argument at fault when Field is \"args\", or empty."
            },
            {
              "name": "Msg",
              "anchor": "ConnectionError.Msg",
              "kind": "field",
              "doc": "Msg says what is wrong."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "ConnectionError.Error",
              "recv": "*ConnectionError",
              "decl": "func (e *ConnectionError) Error() string",
              "doc": "Error formats the error as `file:line:col: sceneformat: connection 0 (\"button\" pressed -> \"door\" open) argument \"speed\": msg`, leaving out the parts that are unknown.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 97
            }
          ]
        },
        {
          "name": "EnvironmentDoc",
          "anchor": "EnvironmentDoc",
          "decl": "type EnvironmentDoc struct {\n\t// Sky configures the background sky and IBL environment map; nil leaves the scene without a skybox.\n\tSky *SkyDoc `yaml:\"sky,omitempty\"`\n\t// AmbientColor is the CSS color of the uniform ambient fill light (sRGB, converted to linear light); empty defaults to \"#ffffff\".\n\tAmbientColor string `yaml:\"ambientColor,omitempty\"`\n\t// AmbientIntensity scales the uniform ambient fill light; nil defaults to 0.25. Must be finite and non-negative.\n\tAmbientIntensity *float32 `yaml:\"ambientIntensity,omitempty\" schema:\"minimum=0\"`\n\t// IBLIntensity scales diffuse spherical-harmonic and specular prefiltered image-based lighting derived from Sky; nil defaults to 1 for SkyHDR and 0 otherwise. Must be finite and non-negative.\n\tIBLIntensity *float32 `yaml:\"iblIntensity,omitempty\" schema:\"minimum=0\"`\n\t// Fog configures 3D distance and analytical height fog; nil leaves fog disabled.\n\tFog *FogDoc `yaml:\"fog,omitempty\"`\n\t// Tonemapping selects TonemapNone (\"none\"), TonemapReinhard (\"reinhard\"), TonemapACES (\"aces\"), TonemapNeutral (\"neutral\") or TonemapAgX (\"agx\"); empty defaults to none.\n\tTonemapping TonemapMode `yaml:\"tonemapping,omitempty\" schema:\"enum=none|reinhard|aces|neutral|agx\"`\n\t// Exposure is the linear exposure multiplier applied before tone mapping; nil defaults to 1. Must be finite and non-negative.\n\tExposure *float32 `yaml:\"exposure,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "EnvironmentDoc configures a 3D scene's sky, ambient fill, image-based lighting, fog, tone mapping and exposure (SceneDoc.Environment). Version 4.\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 322,
          "members": [
            {
              "name": "Sky",
              "anchor": "EnvironmentDoc.Sky",
              "kind": "field",
              "doc": "Sky configures the background sky and IBL environment map; nil leaves the scene without a skybox."
            },
            {
              "name": "AmbientColor",
              "anchor": "EnvironmentDoc.AmbientColor",
              "kind": "field",
              "doc": "AmbientColor is the CSS color of the uniform ambient fill light (sRGB, converted to linear light); empty defaults to \"#ffffff\"."
            },
            {
              "name": "AmbientIntensity",
              "anchor": "EnvironmentDoc.AmbientIntensity",
              "kind": "field",
              "doc": "AmbientIntensity scales the uniform ambient fill light; nil defaults to 0.25. Must be finite and non-negative."
            },
            {
              "name": "IBLIntensity",
              "anchor": "EnvironmentDoc.IBLIntensity",
              "kind": "field",
              "doc": "IBLIntensity scales diffuse spherical-harmonic and specular prefiltered image-based lighting derived from Sky; nil defaults to 1 for SkyHDR and 0 otherwise. Must be finite and non-negative."
            },
            {
              "name": "Fog",
              "anchor": "EnvironmentDoc.Fog",
              "kind": "field",
              "doc": "Fog configures 3D distance and analytical height fog; nil leaves fog disabled."
            },
            {
              "name": "Tonemapping",
              "anchor": "EnvironmentDoc.Tonemapping",
              "kind": "field",
              "doc": "Tonemapping selects TonemapNone (\"none\"), TonemapReinhard (\"reinhard\"), TonemapACES (\"aces\"), TonemapNeutral (\"neutral\") or TonemapAgX (\"agx\"); empty defaults to none."
            },
            {
              "name": "Exposure",
              "anchor": "EnvironmentDoc.Exposure",
              "kind": "field",
              "doc": "Exposure is the linear exposure multiplier applied before tone mapping; nil defaults to 1. Must be finite and non-negative."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "EnvironmentDoc.Clone",
              "recv": "*EnvironmentDoc",
              "decl": "func (e *EnvironmentDoc) Clone() *EnvironmentDoc",
              "doc": "Clone returns a deep copy of e, or nil when e is nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 386
            },
            {
              "name": "EffectiveAmbientColor",
              "anchor": "EnvironmentDoc.EffectiveAmbientColor",
              "recv": "*EnvironmentDoc",
              "decl": "func (e *EnvironmentDoc) EffectiveAmbientColor() string",
              "doc": "EffectiveAmbientColor returns e.AmbientColor, defaulting to \"#ffffff\" when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 340
            },
            {
              "name": "EffectiveAmbientIntensity",
              "anchor": "EnvironmentDoc.EffectiveAmbientIntensity",
              "recv": "*EnvironmentDoc",
              "decl": "func (e *EnvironmentDoc) EffectiveAmbientIntensity() float32",
              "doc": "EffectiveAmbientIntensity returns e.AmbientIntensity, defaulting to 0.25 when nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 348
            },
            {
              "name": "EffectiveExposure",
              "anchor": "EnvironmentDoc.EffectiveExposure",
              "recv": "*EnvironmentDoc",
              "decl": "func (e *EnvironmentDoc) EffectiveExposure() float32",
              "doc": "EffectiveExposure returns e.Exposure, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 378
            },
            {
              "name": "EffectiveIBLIntensity",
              "anchor": "EnvironmentDoc.EffectiveIBLIntensity",
              "recv": "*EnvironmentDoc",
              "decl": "func (e *EnvironmentDoc) EffectiveIBLIntensity() float32",
              "doc": "EffectiveIBLIntensity returns e.IBLIntensity when set, 1 when Sky is SkyHDR, and 0 otherwise.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 356
            },
            {
              "name": "EffectiveTonemapping",
              "anchor": "EnvironmentDoc.EffectiveTonemapping",
              "recv": "*EnvironmentDoc",
              "decl": "func (e *EnvironmentDoc) EffectiveTonemapping() TonemapMode",
              "doc": "EffectiveTonemapping returns e.Tonemapping, defaulting to TonemapNone when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 370
            }
          ]
        },
        {
          "name": "Event",
          "anchor": "Event",
          "decl": "type Event struct {\n\t// Name is the event's name as connections write it. It must be non-empty, hold no dot and be unique among its component type's events.\n\tName string\n\t// Doc is a one-line description shown by tools such as the editor.\n\tDoc string\n}",
          "doc": "Event declares an event that objects with a component emit (ComponentType.Events), such as a button's \"pressed\".\n",
          "file": "pkg/sceneformat/connections.go",
          "line": 17,
          "members": [
            {
              "name": "Name",
              "anchor": "Event.Name",
              "kind": "field",
              "doc": "Name is the event's name as connections write it. It must be non-empty, hold no dot and be unique among its component type's events."
            },
            {
              "name": "Doc",
              "anchor": "Event.Doc",
              "kind": "field",
              "doc": "Doc is a one-line description shown by tools such as the editor."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FSAssets",
          "anchor": "FSAssets",
          "decl": "type FSAssets struct {\n\t// FS holds the project's files, with paths relative to the project root, such as os.DirFS of the directory that holds game.yaml.\n\tFS fs.FS\n\t// Atlases are the sprite atlases the scene's sprites and atlas tilesets name.\n\tAtlases AtlasMap\n}",
          "doc": "FSAssets is an AssetResolver that reads a project's files from a file system: its scene files (SceneResolver), and through FileResolver the YAML tilesets and Tiled and LDtk maps its tilemaps name, so Build builds a scene whose layers use them with no resolver of the game's own. Atlases come from Atlases, and images are named by their paths (core.ImageSource{URI: path}).\n",
          "file": "pkg/sceneformat/assets.go",
          "line": 12,
          "members": [
            {
              "name": "FS",
              "anchor": "FSAssets.FS",
              "kind": "field",
              "doc": "FS holds the project's files, with paths relative to the project root, such as os.DirFS of the directory that holds game.yaml."
            },
            {
              "name": "Atlases",
              "anchor": "FSAssets.Atlases",
              "kind": "field",
              "doc": "Atlases are the sprite atlases the scene's sprites and atlas tilesets name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Atlas",
              "anchor": "FSAssets.Atlas",
              "recv": "FSAssets",
              "decl": "func (a FSAssets) Atlas(name string) (*sprite.Atlas, error)",
              "doc": "Atlas returns the atlas named name from a.Atlases.\n",
              "file": "pkg/sceneformat/assets.go",
              "line": 23
            },
            {
              "name": "ReadFile",
              "anchor": "FSAssets.ReadFile",
              "recv": "FSAssets",
              "decl": "func (a FSAssets) ReadFile(path string) ([]byte, error)",
              "doc": "ReadFile reads the file at path from a.FS.\n",
              "file": "pkg/sceneformat/assets.go",
              "line": 31
            },
            {
              "name": "Scene",
              "anchor": "FSAssets.Scene",
              "recv": "FSAssets",
              "decl": "func (a FSAssets) Scene(path string) (*SceneDoc, error)",
              "doc": "Scene reads the scene file at path from a.FS and parses it, as FSScenes does.\n",
              "file": "pkg/sceneformat/assets.go",
              "line": 39
            }
          ]
        },
        {
          "name": "FSScenes",
          "anchor": "FSScenes",
          "decl": "type FSScenes struct {\n\t// FS holds the project's files, with paths relative to the project root.\n\tFS fs.FS\n}",
          "doc": "FSScenes is a SceneResolver that reads scene files from FS and parses them with Parse.\n",
          "file": "pkg/sceneformat/resolve.go",
          "line": 19,
          "members": [
            {
              "name": "FS",
              "anchor": "FSScenes.FS",
              "kind": "field",
              "doc": "FS holds the project's files, with paths relative to the project root."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Scene",
              "anchor": "FSScenes.Scene",
              "recv": "FSScenes",
              "decl": "func (s FSScenes) Scene(path string) (*SceneDoc, error)",
              "doc": "Scene reads the file at path from s.FS and parses it.\n",
              "file": "pkg/sceneformat/resolve.go",
              "line": 25
            }
          ]
        },
        {
          "name": "Field",
          "anchor": "Field",
          "decl": "type Field struct {\n\t// Name is the field's YAML key inside the component mapping. It must be non-empty and unique within its component type.\n\tName string\n\t// Kind is the field's value type.\n\tKind FieldKind\n\t// Default is the value an unset field takes. Nil means the kind's zero value (false, 0, 0.0 or \"\"). Register normalizes it to bool, int, float64 or string and refuses a default of the wrong kind or outside the range.\n\tDefault any\n\t// Min and Max are the optional inclusive bounds of a FieldInt or FieldFloat value; nil leaves that side open. They are refused on other kinds, and on a FieldInt they must be whole numbers.\n\tMin, Max *float64\n\t// Step is the increment tools such as the editor's inspector use for a FieldInt or FieldFloat value, and the precision a typed value is rounded to from Min; 0 means 1 for a FieldInt and 0.1 for a FieldFloat. It is refused when negative or not finite, on other kinds, and on a FieldInt when it is not a whole number.\n\tStep float64\n\t// Enum optionally restricts a FieldString value to one of the listed strings. Refused on other kinds.\n\tEnum []string\n\t// Doc is a one-line description shown by tools such as the editor's inspector.\n\tDoc string\n}",
          "doc": "Field describes one field of a component type: its YAML key, value kind, default, optional inclusive range and documentation.\n",
          "file": "pkg/sceneformat/components.go",
          "line": 75,
          "members": [
            {
              "name": "Name",
              "anchor": "Field.Name",
              "kind": "field",
              "doc": "Name is the field's YAML key inside the component mapping. It must be non-empty and unique within its component type."
            },
            {
              "name": "Kind",
              "anchor": "Field.Kind",
              "kind": "field",
              "doc": "Kind is the field's value type."
            },
            {
              "name": "Default",
              "anchor": "Field.Default",
              "kind": "field",
              "doc": "Default is the value an unset field takes. Nil means the kind's zero value (false, 0, 0.0 or \"\"). Register normalizes it to bool, int, float64 or string and refuses a default of the wrong kind or outside the range."
            },
            {
              "name": "Min",
              "anchor": "Field.Min",
              "kind": "field",
              "doc": "Min and Max are the optional inclusive bounds of a FieldInt or FieldFloat value; nil leaves that side open. They are refused on other kinds, and on a FieldInt they must be whole numbers."
            },
            {
              "name": "Max",
              "anchor": "Field.Max",
              "kind": "field",
              "doc": "Min and Max are the optional inclusive bounds of a FieldInt or FieldFloat value; nil leaves that side open. They are refused on other kinds, and on a FieldInt they must be whole numbers."
            },
            {
              "name": "Step",
              "anchor": "Field.Step",
              "kind": "field",
              "doc": "Step is the increment tools such as the editor's inspector use for a FieldInt or FieldFloat value, and the precision a typed value is rounded to from Min; 0 means 1 for a FieldInt and 0.1 for a FieldFloat. It is refused when negative or not finite, on other kinds, and on a FieldInt when it is not a whole number."
            },
            {
              "name": "Enum",
              "anchor": "Field.Enum",
              "kind": "field",
              "doc": "Enum optionally restricts a FieldString value to one of the listed strings. Refused on other kinds."
            },
            {
              "name": "Doc",
              "anchor": "Field.Doc",
              "kind": "field",
              "doc": "Doc is a one-line description shown by tools such as the editor's inspector."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FieldError",
          "anchor": "FieldError",
          "decl": "type FieldError struct {\n\t// Path leads from the document's root to the field, one mapping key or decimal sequence index per step, such as [\"layers\", \"2\", \"objects\", \"0\", \"alpha\"]. It is empty when the error is about the whole document. A step may name a field the document leaves out, such as a required tileWidth, in which case the nearest written field is the one to point at.\n\tPath []string\n\t// Err is the error itself; FieldError's message is Err's.\n\tErr error\n}",
          "doc": "FieldError is the error Validate returns: what is wrong with a scene document and which field it is about, so a tool such as `game check` can point at the line that holds it.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 996,
          "members": [
            {
              "name": "Path",
              "anchor": "FieldError.Path",
              "kind": "field",
              "doc": "Path leads from the document's root to the field, one mapping key or decimal sequence index per step, such as [\"layers\", \"2\", \"objects\", \"0\", \"alpha\"]. It is empty when the error is about the whole document. A step may name a field the document leaves out, such as a required tileWidth, in which case the nearest written field is the one to point at."
            },
            {
              "name": "Err",
              "anchor": "FieldError.Err",
              "kind": "field",
              "doc": "Err is the error itself; FieldError's message is Err's."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "FieldError.Error",
              "recv": "*FieldError",
              "decl": "func (e *FieldError) Error() string",
              "doc": "Error returns Err's message.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 1004
            },
            {
              "name": "Unwrap",
              "anchor": "FieldError.Unwrap",
              "recv": "*FieldError",
              "decl": "func (e *FieldError) Unwrap() error",
              "doc": "Unwrap returns Err.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 1007
            }
          ]
        },
        {
          "name": "FieldKind",
          "anchor": "FieldKind",
          "decl": "type FieldKind uint8",
          "doc": "FieldKind is the value type of one registered component field.\n",
          "file": "pkg/sceneformat/components.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FieldBool",
                  "anchor": "FieldBool"
                },
                {
                  "name": "FieldInt",
                  "anchor": "FieldInt"
                },
                {
                  "name": "FieldFloat",
                  "anchor": "FieldFloat"
                },
                {
                  "name": "FieldString",
                  "anchor": "FieldString"
                },
                {
                  "name": "FieldStringList",
                  "anchor": "FieldStringList"
                },
                {
                  "name": "FieldPointList",
                  "anchor": "FieldPointList"
                },
                {
                  "name": "FieldPoint",
                  "anchor": "FieldPoint"
                },
                {
                  "name": "FieldRect",
                  "anchor": "FieldRect"
                },
                {
                  "name": "FieldCircle",
                  "anchor": "FieldCircle"
                },
                {
                  "name": "FieldPolygon",
                  "anchor": "FieldPolygon"
                }
              ],
              "decl": "const (\n\t// FieldBool holds true or false and decodes to a Go bool.\n\tFieldBool FieldKind = iota + 1\n\t// FieldInt holds a whole number and decodes to a Go int. A YAML float such as 3.0 is refused.\n\tFieldInt\n\t// FieldFloat holds a finite number and decodes to a Go float64. A YAML integer is accepted and widened.\n\tFieldFloat\n\t// FieldString holds text and decodes to a Go string.\n\tFieldString\n\t// FieldStringList holds a list of strings (such as named collision masks) and decodes to a Go []string.\n\tFieldStringList\n\t// FieldPointList holds a list of 2D [x, y] points (such as an occluder polygon's vertices) and decodes to a Go [][2]float64.\n\tFieldPointList\n\t// FieldPoint holds a 2D point {x, y} in object-local space and decodes to a Go Point.\n\tFieldPoint\n\t// FieldRect holds a 2D rectangle {x, y, width, height} in object-local space and decodes to a Go Rect.\n\tFieldRect\n\t// FieldCircle holds a 2D circle {x, y, radius} in object-local space and decodes to a Go Circle.\n\tFieldCircle\n\t// FieldPolygon holds a list of 2D points [{x, y}, ...] in object-local space and decodes to a Go []Point.\n\tFieldPolygon\n)",
              "doc": "",
              "file": "pkg/sceneformat/components.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "IsNumeric",
              "anchor": "FieldKind.IsNumeric",
              "recv": "FieldKind",
              "decl": "func (k FieldKind) IsNumeric() bool",
              "doc": "IsNumeric reports whether the kind is FieldInt or FieldFloat, the kinds a Field's Min and Max apply to.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 69
            },
            {
              "name": "IsShape",
              "anchor": "FieldKind.IsShape",
              "recv": "FieldKind",
              "decl": "func (k FieldKind) IsShape() bool",
              "doc": "IsShape reports whether the kind is one of the 2D geometry shape kinds: FieldPoint, FieldRect, FieldCircle or FieldPolygon.\n",
              "file": "pkg/sceneformat/components.go",
              "line": 72
            },
            {
              "name": "String",
              "anchor": "FieldKind.String",
              "recv": "FieldKind",
              "decl": "func (k FieldKind) String() string",
              "doc": "String returns the kind's name as written in error messages: \"bool\", \"int\", \"float\", \"string\", \"[]string\", \"[][2]float64\", \"point\", \"rect\", \"circle\" or \"polygon\".\n",
              "file": "pkg/sceneformat/components.go",
              "line": 41
            }
          ]
        },
        {
          "name": "FileResolver",
          "anchor": "FileResolver",
          "decl": "type FileResolver interface {\n\tReadFile(path string) ([]byte, error)\n}",
          "doc": "FileResolver may optionally be implemented by an AssetResolver to read the project's files by their slash-separated paths from the project root. Build reads through it the YAML tilesets that layered grids name (TilemapDoc.TilesetFile) and, with no TilemapResolver, the Tiled (.tmj, .tmx) and LDtk (.ldtk) maps that tilemap sources name, with the tilesets and images those refer to, so a scene uses them with no code of the game's own. FSAssets implements it.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 37,
          "members": [
            {
              "name": "ReadFile",
              "anchor": "FileResolver.ReadFile",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FogDoc",
          "anchor": "FogDoc",
          "decl": "type FogDoc struct {\n\t// Mode selects FogOff (\"off\"), FogLinear (\"linear\"), FogExp (\"exp\") or FogExp2 (\"exp2\"); empty defaults to off.\n\tMode FogMode `yaml:\"mode,omitempty\" schema:\"enum=off|linear|exp|exp2\"`\n\t// Color is the CSS color of the fog (sRGB, converted to linear light when shaded); empty defaults to \"#8090a8\".\n\tColor string `yaml:\"color,omitempty\"`\n\t// Start is the world distance where FogLinear fog begins; must be finite and non-negative.\n\tStart float32 `yaml:\"start,omitempty\" schema:\"minimum=0\"`\n\t// End is the world distance where FogLinear fog reaches full density; must be finite and greater than Start when Mode is FogLinear.\n\tEnd float32 `yaml:\"end,omitempty\" schema:\"minimum=0\"`\n\t// Density is the extinction density for FogExp and FogExp2; must be finite and non-negative.\n\tDensity float32 `yaml:\"density,omitempty\" schema:\"minimum=0\"`\n\t// MaxOpacity caps the combined fog factor in (0, 1]; nil defaults to 1.\n\tMaxOpacity *float32 `yaml:\"maxOpacity,omitempty\" schema:\"exclusiveMinimum=0,maximum=1\"`\n\t// HeightEnabled enables analytical exponential height fog along the view ray.\n\tHeightEnabled bool `yaml:\"heightEnabled,omitempty\"`\n\t// HeightBase is the world Y reference height where height fog has full HeightDensity.\n\tHeightBase float32 `yaml:\"heightBase,omitempty\"`\n\t// HeightFalloff is the vertical exponential decay rate above HeightBase; must be finite and non-negative.\n\tHeightFalloff float32 `yaml:\"heightFalloff,omitempty\" schema:\"minimum=0\"`\n\t// HeightDensity is the base extinction density of height fog at HeightBase; must be finite and non-negative.\n\tHeightDensity float32 `yaml:\"heightDensity,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "FogDoc configures 3D distance and analytical exponential height fog (EnvironmentDoc.Fog). Version 4.\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 248,
          "members": [
            {
              "name": "Mode",
              "anchor": "FogDoc.Mode",
              "kind": "field",
              "doc": "Mode selects FogOff (\"off\"), FogLinear (\"linear\"), FogExp (\"exp\") or FogExp2 (\"exp2\"); empty defaults to off."
            },
            {
              "name": "Color",
              "anchor": "FogDoc.Color",
              "kind": "field",
              "doc": "Color is the CSS color of the fog (sRGB, converted to linear light when shaded); empty defaults to \"#8090a8\"."
            },
            {
              "name": "Start",
              "anchor": "FogDoc.Start",
              "kind": "field",
              "doc": "Start is the world distance where FogLinear fog begins; must be finite and non-negative."
            },
            {
              "name": "End",
              "anchor": "FogDoc.End",
              "kind": "field",
              "doc": "End is the world distance where FogLinear fog reaches full density; must be finite and greater than Start when Mode is FogLinear."
            },
            {
              "name": "Density",
              "anchor": "FogDoc.Density",
              "kind": "field",
              "doc": "Density is the extinction density for FogExp and FogExp2; must be finite and non-negative."
            },
            {
              "name": "MaxOpacity",
              "anchor": "FogDoc.MaxOpacity",
              "kind": "field",
              "doc": "MaxOpacity caps the combined fog factor in (0, 1]; nil defaults to 1."
            },
            {
              "name": "HeightEnabled",
              "anchor": "FogDoc.HeightEnabled",
              "kind": "field",
              "doc": "HeightEnabled enables analytical exponential height fog along the view ray."
            },
            {
              "name": "HeightBase",
              "anchor": "FogDoc.HeightBase",
              "kind": "field",
              "doc": "HeightBase is the world Y reference height where height fog has full HeightDensity."
            },
            {
              "name": "HeightFalloff",
              "anchor": "FogDoc.HeightFalloff",
              "kind": "field",
              "doc": "HeightFalloff is the vertical exponential decay rate above HeightBase; must be finite and non-negative."
            },
            {
              "name": "HeightDensity",
              "anchor": "FogDoc.HeightDensity",
              "kind": "field",
              "doc": "HeightDensity is the base extinction density of height fog at HeightBase; must be finite and non-negative."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "FogDoc.Clone",
              "recv": "*FogDoc",
              "decl": "func (f *FogDoc) Clone() *FogDoc",
              "doc": "Clone returns a deep copy of f, or nil when f is nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 296
            },
            {
              "name": "EffectiveColor",
              "anchor": "FogDoc.EffectiveColor",
              "recv": "*FogDoc",
              "decl": "func (f *FogDoc) EffectiveColor() string",
              "doc": "EffectiveColor returns f.Color, defaulting to \"#8090a8\" when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 280
            },
            {
              "name": "EffectiveMaxOpacity",
              "anchor": "FogDoc.EffectiveMaxOpacity",
              "recv": "*FogDoc",
              "decl": "func (f *FogDoc) EffectiveMaxOpacity() float32",
              "doc": "EffectiveMaxOpacity returns f.MaxOpacity, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 288
            },
            {
              "name": "EffectiveMode",
              "anchor": "FogDoc.EffectiveMode",
              "recv": "*FogDoc",
              "decl": "func (f *FogDoc) EffectiveMode() FogMode",
              "doc": "EffectiveMode returns f.Mode, defaulting to FogOff when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 272
            }
          ]
        },
        {
          "name": "FogMode",
          "anchor": "FogMode",
          "decl": "type FogMode string",
          "doc": "FogMode selects how 3D distance fog attenuates visibility (FogDoc.Mode).\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 234,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FogOff",
                  "anchor": "FogOff"
                },
                {
                  "name": "FogLinear",
                  "anchor": "FogLinear"
                },
                {
                  "name": "FogExp",
                  "anchor": "FogExp"
                },
                {
                  "name": "FogExp2",
                  "anchor": "FogExp2"
                }
              ],
              "decl": "const (\n\t// FogOff disables distance fog (analytical height fog may still apply when HeightEnabled is true).\n\tFogOff FogMode = \"off\"\n\t// FogLinear ramps distance fog linearly from Start to End.\n\tFogLinear FogMode = \"linear\"\n\t// FogExp applies exponential distance fog using Density.\n\tFogExp FogMode = \"exp\"\n\t// FogExp2 applies exponential-squared distance fog using Density.\n\tFogExp2 FogMode = \"exp2\"\n)",
              "doc": "",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 236
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Handler",
          "anchor": "Handler",
          "decl": "type Handler struct {\n\t// Name is the handler's name as connections write it. It must be non-empty, hold no dot and be unique among its component type's handlers.\n\tName string\n\t// Doc is a one-line description shown by tools such as the editor.\n\tDoc string\n\t// Params are the arguments a connection may pass the handler (ConnectionDoc.Args), checked as component fields are: by kind and range, with a default for one a connection leaves out.\n\tParams []Field\n\t// Func runs the handler. A registry used only to check files, such as an editor's, may leave it nil; Connect refuses a connection to a handler without one.\n\tFunc HandlerFunc\n}",
          "doc": "Handler declares something objects with a component can do when an event connected to it fires (ComponentType.Handlers), such as a door's \"open\".\n",
          "file": "pkg/sceneformat/connections.go",
          "line": 28,
          "members": [
            {
              "name": "Name",
              "anchor": "Handler.Name",
              "kind": "field",
              "doc": "Name is the handler's name as connections write it. It must be non-empty, hold no dot and be unique among its component type's handlers."
            },
            {
              "name": "Doc",
              "anchor": "Handler.Doc",
              "kind": "field",
              "doc": "Doc is a one-line description shown by tools such as the editor."
            },
            {
              "name": "Params",
              "anchor": "Handler.Params",
              "kind": "field",
              "doc": "Params are the arguments a connection may pass the handler (ConnectionDoc.Args), checked as component fields are: by kind and range, with a default for one a connection leaves out."
            },
            {
              "name": "Func",
              "anchor": "Handler.Func",
              "kind": "field",
              "doc": "Func runs the handler. A registry used only to check files, such as an editor's, may leave it nil; Connect refuses a connection to a handler without one."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Param",
              "anchor": "Handler.Param",
              "recv": "*Handler",
              "decl": "func (h *Handler) Param(name string) (Field, bool)",
              "doc": "Param returns the param named name and whether the handler has it.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 40
            }
          ]
        },
        {
          "name": "HandlerFunc",
          "anchor": "HandlerFunc",
          "decl": "type HandlerFunc func(Call)",
          "doc": "HandlerFunc runs a handler for one emitted event.\n",
          "file": "pkg/sceneformat/connections.go",
          "line": 25,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ImageResolver",
          "anchor": "ImageResolver",
          "decl": "type ImageResolver interface {\n\tImage(path string) (core.ImageSource, error)\n}",
          "doc": "ImageResolver may optionally be implemented by an AssetResolver to load the images that YAML tilesets and Tiled and LDtk maps draw their tiles from, given each one's slash-separated path from the project root. Without it an image is core.ImageSource{URI: path}.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 42,
          "members": [
            {
              "name": "Image",
              "anchor": "ImageResolver.Image",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LDtkOptionsResolver",
          "anchor": "LDtkOptionsResolver",
          "decl": "type LDtkOptionsResolver interface {\n\tLDtkOptions() tilemap.LDtkOptions\n}",
          "doc": "LDtkOptionsResolver may optionally be implemented by an AssetResolver to provide tilemap.LDtkOptions\n(such as IntGrid-to-TileFlags mappings from project settings) when Build loads an LDtk (.ldtk) map.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 58,
          "members": [
            {
              "name": "LDtkOptions",
              "anchor": "LDtkOptionsResolver.LDtkOptions",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayerDoc",
          "anchor": "LayerDoc",
          "decl": "type LayerDoc struct {\n\t// Name uniquely identifies the layer within the scene.\n\tName string `yaml:\"name\" schema:\"required,minLength=1\"`\n\t// Space is SpaceWorld or SpaceScreen; empty defaults to SpaceWorld.\n\tSpace Space `yaml:\"space,omitempty\" schema:\"enum=world|screen\"`\n\t// Order sets draw order across layers: lower values draw first, ties keep document order.\n\tOrder int `yaml:\"order,omitempty\"`\n\t// Visible controls whether the layer draws; nil defaults to true.\n\tVisible *bool `yaml:\"visible,omitempty\"`\n\t// ParallaxX scales how fast a world-space layer scrolls horizontally relative to the camera; nil defaults to 1. Zero pins the layer horizontally against camera translation, 0.5 scrolls at half speed, and values above 1 scroll faster for foreground layers. Version 3.\n\tParallaxX *float32 `yaml:\"parallaxX,omitempty\"`\n\t// ParallaxY scales how fast a world-space layer scrolls vertically relative to the camera; nil defaults to 1. Zero pins the layer vertically against camera translation, 0.5 scrolls at half speed, and values above 1 scroll faster for foreground layers. Version 3.\n\tParallaxY *float32 `yaml:\"parallaxY,omitempty\"`\n\t// RepeatX tiles a world-space layer horizontally across the camera's visible region using RepeatWidth (or, when RepeatWidth is 0, the layer's tilemap pixel width or the scene's virtualWidth). Version 3.\n\tRepeatX bool `yaml:\"repeatX,omitempty\"`\n\t// RepeatY tiles a world-space layer vertically across the camera's visible region using RepeatHeight (or, when RepeatHeight is 0, the layer's tilemap pixel height or the scene's virtualHeight). Version 3.\n\tRepeatY bool `yaml:\"repeatY,omitempty\"`\n\t// RepeatWidth is the horizontal repeat period in layer points when RepeatX is true; 0 uses the layer's tilemap pixel width or the scene's virtualWidth. Must be non-negative. Version 3.\n\tRepeatWidth float32 `yaml:\"repeatWidth,omitempty\" schema:\"minimum=0\"`\n\t// RepeatHeight is the vertical repeat period in layer points when RepeatY is true; 0 uses the layer's tilemap pixel height or the scene's virtualHeight. Must be non-negative. Version 3.\n\tRepeatHeight float32 `yaml:\"repeatHeight,omitempty\" schema:\"minimum=0\"`\n\t// Tilemap optionally attaches a tilemap (by Ref, external Source, or inline grid) drawn beneath Objects.\n\tTilemap *TilemapDoc `yaml:\"tilemap,omitempty\"`\n\t// Objects are the placed objects in this layer.\n\tObjects []ObjectDoc `yaml:\"objects,omitempty\"`\n}",
          "doc": "LayerDoc is one ordered layer in a scene.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 185,
          "members": [
            {
              "name": "Name",
              "anchor": "LayerDoc.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the layer within the scene."
            },
            {
              "name": "Space",
              "anchor": "LayerDoc.Space",
              "kind": "field",
              "doc": "Space is SpaceWorld or SpaceScreen; empty defaults to SpaceWorld."
            },
            {
              "name": "Order",
              "anchor": "LayerDoc.Order",
              "kind": "field",
              "doc": "Order sets draw order across layers: lower values draw first, ties keep document order."
            },
            {
              "name": "Visible",
              "anchor": "LayerDoc.Visible",
              "kind": "field",
              "doc": "Visible controls whether the layer draws; nil defaults to true."
            },
            {
              "name": "ParallaxX",
              "anchor": "LayerDoc.ParallaxX",
              "kind": "field",
              "doc": "ParallaxX scales how fast a world-space layer scrolls horizontally relative to the camera; nil defaults to 1. Zero pins the layer horizontally against camera translation, 0.5 scrolls at half speed, and values above 1 scroll faster for foreground layers. Version 3."
            },
            {
              "name": "ParallaxY",
              "anchor": "LayerDoc.ParallaxY",
              "kind": "field",
              "doc": "ParallaxY scales how fast a world-space layer scrolls vertically relative to the camera; nil defaults to 1. Zero pins the layer vertically against camera translation, 0.5 scrolls at half speed, and values above 1 scroll faster for foreground layers. Version 3."
            },
            {
              "name": "RepeatX",
              "anchor": "LayerDoc.RepeatX",
              "kind": "field",
              "doc": "RepeatX tiles a world-space layer horizontally across the camera's visible region using RepeatWidth (or, when RepeatWidth is 0, the layer's tilemap pixel width or the scene's virtualWidth). Version 3."
            },
            {
              "name": "RepeatY",
              "anchor": "LayerDoc.RepeatY",
              "kind": "field",
              "doc": "RepeatY tiles a world-space layer vertically across the camera's visible region using RepeatHeight (or, when RepeatHeight is 0, the layer's tilemap pixel height or the scene's virtualHeight). Version 3."
            },
            {
              "name": "RepeatWidth",
              "anchor": "LayerDoc.RepeatWidth",
              "kind": "field",
              "doc": "RepeatWidth is the horizontal repeat period in layer points when RepeatX is true; 0 uses the layer's tilemap pixel width or the scene's virtualWidth. Must be non-negative. Version 3."
            },
            {
              "name": "RepeatHeight",
              "anchor": "LayerDoc.RepeatHeight",
              "kind": "field",
              "doc": "RepeatHeight is the vertical repeat period in layer points when RepeatY is true; 0 uses the layer's tilemap pixel height or the scene's virtualHeight. Must be non-negative. Version 3."
            },
            {
              "name": "Tilemap",
              "anchor": "LayerDoc.Tilemap",
              "kind": "field",
              "doc": "Tilemap optionally attaches a tilemap (by Ref, external Source, or inline grid) drawn beneath Objects."
            },
            {
              "name": "Objects",
              "anchor": "LayerDoc.Objects",
              "kind": "field",
              "doc": "Objects are the placed objects in this layer."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveParallaxX",
              "anchor": "LayerDoc.EffectiveParallaxX",
              "recv": "*LayerDoc",
              "decl": "func (l *LayerDoc) EffectiveParallaxX() float32",
              "doc": "EffectiveParallaxX returns ParallaxX, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 226
            },
            {
              "name": "EffectiveParallaxY",
              "anchor": "LayerDoc.EffectiveParallaxY",
              "recv": "*LayerDoc",
              "decl": "func (l *LayerDoc) EffectiveParallaxY() float32",
              "doc": "EffectiveParallaxY returns ParallaxY, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 234
            },
            {
              "name": "EffectiveSpace",
              "anchor": "LayerDoc.EffectiveSpace",
              "recv": "*LayerDoc",
              "decl": "func (l *LayerDoc) EffectiveSpace() Space",
              "doc": "EffectiveSpace returns SpaceWorld when Space is empty, and l.Space otherwise.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 218
            },
            {
              "name": "IsVisible",
              "anchor": "LayerDoc.IsVisible",
              "recv": "*LayerDoc",
              "decl": "func (l *LayerDoc) IsVisible() bool",
              "doc": "IsVisible reports whether the layer is visible, defaulting to true when Visible is nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 213
            }
          ]
        },
        {
          "name": "LayerOverride",
          "anchor": "LayerOverride",
          "decl": "type LayerOverride struct {\n\t// Space replaces the layer's space when set.\n\tSpace Space `yaml:\"space,omitempty\" schema:\"enum=world|screen\"`\n\t// Order replaces the layer's draw order when set.\n\tOrder *int `yaml:\"order,omitempty\"`\n\t// Visible replaces the layer's visibility when set.\n\tVisible *bool `yaml:\"visible,omitempty\"`\n\t// ParallaxX replaces the layer's horizontal parallax scroll factor when set. Version 3.\n\tParallaxX *float32 `yaml:\"parallaxX,omitempty\"`\n\t// ParallaxY replaces the layer's vertical parallax scroll factor when set. Version 3.\n\tParallaxY *float32 `yaml:\"parallaxY,omitempty\"`\n\t// RepeatX replaces whether a world-space layer tiles horizontally across the camera's visible region when set. Version 3.\n\tRepeatX *bool `yaml:\"repeatX,omitempty\"`\n\t// RepeatY replaces whether a world-space layer tiles vertically across the camera's visible region when set. Version 3.\n\tRepeatY *bool `yaml:\"repeatY,omitempty\"`\n\t// RepeatWidth replaces the horizontal repeat period in layer points when set. Version 3.\n\tRepeatWidth *float32 `yaml:\"repeatWidth,omitempty\" schema:\"minimum=0\"`\n\t// RepeatHeight replaces the vertical repeat period in layer points when set. Version 3.\n\tRepeatHeight *float32 `yaml:\"repeatHeight,omitempty\" schema:\"minimum=0\"`\n\t// Tilemap replaces the layer's tilemap when set.\n\tTilemap *TilemapDoc `yaml:\"tilemap,omitempty\"`\n}",
          "doc": "LayerOverride changes an inherited layer in a scene that inherits another (SceneDoc.LayerOverrides). A field left unset keeps the base layer's value.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 130,
          "members": [
            {
              "name": "Space",
              "anchor": "LayerOverride.Space",
              "kind": "field",
              "doc": "Space replaces the layer's space when set."
            },
            {
              "name": "Order",
              "anchor": "LayerOverride.Order",
              "kind": "field",
              "doc": "Order replaces the layer's draw order when set."
            },
            {
              "name": "Visible",
              "anchor": "LayerOverride.Visible",
              "kind": "field",
              "doc": "Visible replaces the layer's visibility when set."
            },
            {
              "name": "ParallaxX",
              "anchor": "LayerOverride.ParallaxX",
              "kind": "field",
              "doc": "ParallaxX replaces the layer's horizontal parallax scroll factor when set. Version 3."
            },
            {
              "name": "ParallaxY",
              "anchor": "LayerOverride.ParallaxY",
              "kind": "field",
              "doc": "ParallaxY replaces the layer's vertical parallax scroll factor when set. Version 3."
            },
            {
              "name": "RepeatX",
              "anchor": "LayerOverride.RepeatX",
              "kind": "field",
              "doc": "RepeatX replaces whether a world-space layer tiles horizontally across the camera's visible region when set. Version 3."
            },
            {
              "name": "RepeatY",
              "anchor": "LayerOverride.RepeatY",
              "kind": "field",
              "doc": "RepeatY replaces whether a world-space layer tiles vertically across the camera's visible region when set. Version 3."
            },
            {
              "name": "RepeatWidth",
              "anchor": "LayerOverride.RepeatWidth",
              "kind": "field",
              "doc": "RepeatWidth replaces the horizontal repeat period in layer points when set. Version 3."
            },
            {
              "name": "RepeatHeight",
              "anchor": "LayerOverride.RepeatHeight",
              "kind": "field",
              "doc": "RepeatHeight replaces the vertical repeat period in layer points when set. Version 3."
            },
            {
              "name": "Tilemap",
              "anchor": "LayerOverride.Tilemap",
              "kind": "field",
              "doc": "Tilemap replaces the layer's tilemap when set."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Light2DDebug",
          "anchor": "Light2DDebug",
          "decl": "type Light2DDebug struct {\n\tKind        string\n\tColor       core.Color\n\tRadius      float32\n\tWorldRadius float32\n\tIntensity   float32\n\tFalloff     float32\n\tDirection   float32\n\tAngle       float32\n\tCastShadows bool\n\tEnabled     bool\n\tOffsetX     float32\n\tOffsetY     float32\n\tWorldX      float32\n\tWorldY      float32\n\tWorldAngle  float32\n}",
          "doc": "Light2DDebug describes a resolved light2d component in local and world space for editor overlays and handles.\n",
          "file": "pkg/sceneformat/lights2d.go",
          "line": 346,
          "members": [
            {
              "name": "Kind",
              "anchor": "Light2DDebug.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "Light2DDebug.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "Light2DDebug.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldRadius",
              "anchor": "Light2DDebug.WorldRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Intensity",
              "anchor": "Light2DDebug.Intensity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Falloff",
              "anchor": "Light2DDebug.Falloff",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Direction",
              "anchor": "Light2DDebug.Direction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Angle",
              "anchor": "Light2DDebug.Angle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CastShadows",
              "anchor": "Light2DDebug.CastShadows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Enabled",
              "anchor": "Light2DDebug.Enabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetX",
              "anchor": "Light2DDebug.OffsetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetY",
              "anchor": "Light2DDebug.OffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldX",
              "anchor": "Light2DDebug.WorldX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldY",
              "anchor": "Light2DDebug.WorldY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldAngle",
              "anchor": "Light2DDebug.WorldAngle",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ExtractLight2D",
              "anchor": "ExtractLight2D",
              "decl": "func ExtractLight2D(o *ObjectDoc, world *math2d.Affine) (*lights2d.Light, Light2DDebug, error)",
              "doc": "ExtractLight2D resolves a light2d component from o at world (or o's local transform when world is nil), returning the built *lights2d.Light and debug metadata.\n",
              "file": "pkg/sceneformat/lights2d.go",
              "line": 380
            }
          ],
          "methods": []
        },
        {
          "name": "LightDoc",
          "anchor": "LightDoc",
          "decl": "type LightDoc struct {\n\t// Kind selects LightDirectional (\"directional\"), LightPoint (\"point\") or LightSpot (\"spot\").\n\tKind LightKind `yaml:\"kind\" schema:\"required,enum=directional|point|spot\"`\n\t// Color is an optional CSS color string parsed with core.ParseColor (sRGB, converted to linear light when shaded); empty defaults to white.\n\tColor string `yaml:\"color,omitempty\"`\n\t// Intensity scales the light's color; nil defaults to 1. Must be finite and non-negative.\n\tIntensity *float32 `yaml:\"intensity,omitempty\" schema:\"minimum=0\"`\n\t// Range is the smooth distance falloff cutoff in world units for point and spot lights; 0 gives unbounded inverse-square falloff. Must be finite and non-negative; refused on directional lights when non-zero.\n\tRange float32 `yaml:\"range,omitempty\" schema:\"minimum=0\"`\n\t// InnerCone is a spot light's inner cone half-angle in degrees, in [0, outerCone); defaults to 0. Refused on non-spot lights when non-zero.\n\tInnerCone float32 `yaml:\"innerCone,omitempty\" schema:\"minimum=0,maximum=90\"`\n\t// OuterCone is a spot light's outer cone half-angle in degrees, in (0, 90]; nil defaults to 45 for spot lights. Refused on non-spot lights.\n\tOuterCone *float32 `yaml:\"outerCone,omitempty\" schema:\"exclusiveMinimum=0,maximum=90\"`\n\t// Shadows enables shadow casting for this light.\n\tShadows bool `yaml:\"shadows,omitempty\"`\n}",
          "doc": "LightDoc configures a 3D light attached to an object (ObjectDoc.Light). Its world position and forward direction (local -Z) come from the object's 3D transform. Version 4.\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 25,
          "members": [
            {
              "name": "Kind",
              "anchor": "LightDoc.Kind",
              "kind": "field",
              "doc": "Kind selects LightDirectional (\"directional\"), LightPoint (\"point\") or LightSpot (\"spot\")."
            },
            {
              "name": "Color",
              "anchor": "LightDoc.Color",
              "kind": "field",
              "doc": "Color is an optional CSS color string parsed with core.ParseColor (sRGB, converted to linear light when shaded); empty defaults to white."
            },
            {
              "name": "Intensity",
              "anchor": "LightDoc.Intensity",
              "kind": "field",
              "doc": "Intensity scales the light's color; nil defaults to 1. Must be finite and non-negative."
            },
            {
              "name": "Range",
              "anchor": "LightDoc.Range",
              "kind": "field",
              "doc": "Range is the smooth distance falloff cutoff in world units for point and spot lights; 0 gives unbounded inverse-square falloff. Must be finite and non-negative; refused on directional lights when non-zero."
            },
            {
              "name": "InnerCone",
              "anchor": "LightDoc.InnerCone",
              "kind": "field",
              "doc": "InnerCone is a spot light's inner cone half-angle in degrees, in [0, outerCone); defaults to 0. Refused on non-spot lights when non-zero."
            },
            {
              "name": "OuterCone",
              "anchor": "LightDoc.OuterCone",
              "kind": "field",
              "doc": "OuterCone is a spot light's outer cone half-angle in degrees, in (0, 90]; nil defaults to 45 for spot lights. Refused on non-spot lights."
            },
            {
              "name": "Shadows",
              "anchor": "LightDoc.Shadows",
              "kind": "field",
              "doc": "Shadows enables shadow casting for this light."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "LightDoc.Clone",
              "recv": "*LightDoc",
              "decl": "func (l *LightDoc) Clone() *LightDoc",
              "doc": "Clone returns a deep copy of l, or nil when l is nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 67
            },
            {
              "name": "EffectiveColor",
              "anchor": "LightDoc.EffectiveColor",
              "recv": "*LightDoc",
              "decl": "func (l *LightDoc) EffectiveColor() string",
              "doc": "EffectiveColor returns l.Color, defaulting to \"#ffffff\" when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 59
            },
            {
              "name": "EffectiveIntensity",
              "anchor": "LightDoc.EffectiveIntensity",
              "recv": "*LightDoc",
              "decl": "func (l *LightDoc) EffectiveIntensity() float32",
              "doc": "EffectiveIntensity returns l.Intensity, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 43
            },
            {
              "name": "EffectiveOuterCone",
              "anchor": "LightDoc.EffectiveOuterCone",
              "recv": "*LightDoc",
              "decl": "func (l *LightDoc) EffectiveOuterCone() float32",
              "doc": "EffectiveOuterCone returns a spot light's outer cone half-angle in degrees, defaulting to 45 when nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 51
            }
          ]
        },
        {
          "name": "LightKind",
          "anchor": "LightKind",
          "decl": "type LightKind string",
          "doc": "LightKind selects the kind of 3D light an object emits (LightDoc.Kind).\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 13,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LightDirectional",
                  "anchor": "LightDirectional"
                },
                {
                  "name": "LightPoint",
                  "anchor": "LightPoint"
                },
                {
                  "name": "LightSpot",
                  "anchor": "LightSpot"
                }
              ],
              "decl": "const (\n\t// LightDirectional is an infinitely distant light whose parallel rays travel along the object's local -Z axis.\n\tLightDirectional LightKind = \"directional\"\n\t// LightPoint is an omnidirectional punctual light shining from the object's position.\n\tLightPoint LightKind = \"point\"\n\t// LightSpot is a cone-shaped punctual light at the object's position shining along its local -Z axis.\n\tLightSpot LightKind = \"spot\"\n)",
              "doc": "",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 15
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LightProbeGridDoc",
          "anchor": "LightProbeGridDoc",
          "decl": "type LightProbeGridDoc struct {\n\t// Center is the optional local-space center [x, y, z] of the grid volume relative to the object's origin; nil centers it at [0, 0, 0].\n\tCenter *[3]float32 `yaml:\"center,omitempty,flow\"`\n\t// Size is the local-space [width, height, depth] extents of the grid volume; nil defaults to [10, 6, 10]. When set, every axis must be finite and positive.\n\tSize *[3]float32 `yaml:\"size,omitempty,flow\"`\n\t// Counts is the number of probes [nx, ny, nz] along X, Y and Z; nil defaults to [3, 2, 3]. Each axis must be positive and nx*ny*nz at most MaxLightProbesPerGrid (4096).\n\tCounts *[3]int `yaml:\"counts,omitempty,flow\"`\n\t// Intensity scales the grid's diffuse irradiance contribution; nil defaults to 1. Must be finite and non-negative.\n\tIntensity *float32 `yaml:\"intensity,omitempty\" schema:\"minimum=0\"`\n\t// Data optionally names the baked light probe YAML file by its slash-separated path from the project root, such as \"probes/room.probes.yaml\".\n\tData string `yaml:\"data,omitempty\"`\n}",
          "doc": "LightProbeGridDoc configures a 3D light probe grid attached to an object (ObjectDoc.LightProbeGrid).\nThe grid places Counts[0] x Counts[1] x Counts[2] diffuse L2 spherical harmonic irradiance probes\nuniformly across the axis-aligned volume defined by Center and Size in local space. Version 4.\n",
          "file": "pkg/sceneformat/probes.go",
          "line": 108,
          "members": [
            {
              "name": "Center",
              "anchor": "LightProbeGridDoc.Center",
              "kind": "field",
              "doc": "Center is the optional local-space center [x, y, z] of the grid volume relative to the object's origin; nil centers it at [0, 0, 0]."
            },
            {
              "name": "Size",
              "anchor": "LightProbeGridDoc.Size",
              "kind": "field",
              "doc": "Size is the local-space [width, height, depth] extents of the grid volume; nil defaults to [10, 6, 10]. When set, every axis must be finite and positive."
            },
            {
              "name": "Counts",
              "anchor": "LightProbeGridDoc.Counts",
              "kind": "field",
              "doc": "Counts is the number of probes [nx, ny, nz] along X, Y and Z; nil defaults to [3, 2, 3]. Each axis must be positive and nx*ny*nz at most MaxLightProbesPerGrid (4096)."
            },
            {
              "name": "Intensity",
              "anchor": "LightProbeGridDoc.Intensity",
              "kind": "field",
              "doc": "Intensity scales the grid's diffuse irradiance contribution; nil defaults to 1. Must be finite and non-negative."
            },
            {
              "name": "Data",
              "anchor": "LightProbeGridDoc.Data",
              "kind": "field",
              "doc": "Data optionally names the baked light probe YAML file by its slash-separated path from the project root, such as \"probes/room.probes.yaml\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "LightProbeGridDoc.Clone",
              "recv": "*LightProbeGridDoc",
              "decl": "func (g *LightProbeGridDoc) Clone() *LightProbeGridDoc",
              "doc": "Clone returns a deep copy of g, or nil when g is nil.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 165
            },
            {
              "name": "EffectiveCenter",
              "anchor": "LightProbeGridDoc.EffectiveCenter",
              "recv": "*LightProbeGridDoc",
              "decl": "func (g *LightProbeGridDoc) EffectiveCenter() [3]float32",
              "doc": "EffectiveCenter returns g.Center, defaulting to [0, 0, 0] when nil.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 122
            },
            {
              "name": "EffectiveCounts",
              "anchor": "LightProbeGridDoc.EffectiveCounts",
              "recv": "*LightProbeGridDoc",
              "decl": "func (g *LightProbeGridDoc) EffectiveCounts() [3]int",
              "doc": "EffectiveCounts returns g.Counts, defaulting to [3, 2, 3] when nil or all zero.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 149
            },
            {
              "name": "EffectiveIntensity",
              "anchor": "LightProbeGridDoc.EffectiveIntensity",
              "recv": "*LightProbeGridDoc",
              "decl": "func (g *LightProbeGridDoc) EffectiveIntensity() float32",
              "doc": "EffectiveIntensity returns g.Intensity, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 157
            },
            {
              "name": "EffectiveSize",
              "anchor": "LightProbeGridDoc.EffectiveSize",
              "recv": "*LightProbeGridDoc",
              "decl": "func (g *LightProbeGridDoc) EffectiveSize() [3]float32",
              "doc": "EffectiveSize returns g.Size, defaulting to [10, 6, 10] when nil or all zero.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 130
            },
            {
              "name": "LocalBounds",
              "anchor": "LightProbeGridDoc.LocalBounds",
              "recv": "*LightProbeGridDoc",
              "decl": "func (g *LightProbeGridDoc) LocalBounds() (lo, hi [3]float32)",
              "doc": "LocalBounds returns the local-space min and max corners of the grid's volume.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 138
            }
          ]
        },
        {
          "name": "MaterialResolver",
          "anchor": "MaterialResolver",
          "decl": "type MaterialResolver interface {\n\tMaterial(path string) (*resource.Material, error)\n}",
          "doc": "MaterialResolver may optionally be implemented by an AssetResolver to load the shared material files objects name in ObjectDoc.Material. A resolver that returns the same pointer for the same path, as resource.Library does, lets every scene using one file see its edits.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 47,
          "members": [
            {
              "name": "Material",
              "anchor": "MaterialResolver.Material",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MergeConflict",
          "anchor": "MergeConflict",
          "decl": "type MergeConflict struct {\n\t// Kind is ConflictField, ConflictDeleteModify, ConflictAddAdd, ConflictMove or ConflictValidation.\n\tKind ConflictKind `yaml:\"kind\"`\n\t// Scope is \"scene\", \"layer\", \"object\", \"connection\", \"tilemap\", \"override\" or \"layerOverride\".\n\tScope string `yaml:\"scope\"`\n\t// Layer names the layer when the conflict is on a layer or an object inside a layer.\n\tLayer string `yaml:\"layer,omitempty\"`\n\t// Object is the object's ID when Scope is \"object\".\n\tObject string `yaml:\"object,omitempty\"`\n\t// Target identifies non-object items (such as a connection signature, tilemap name or override key).\n\tTarget string `yaml:\"target,omitempty\"`\n\t// Field names the conflicting field path (such as \"x\", \"components.patrol.speed\", or \"parent\").\n\tField string `yaml:\"field,omitempty\"`\n\t// Message describes the conflict in plain text when needed (such as delete/modify or validation errors).\n\tMessage string `yaml:\"message,omitempty\"`\n\t// Base is the ancestor value, or nil when absent.\n\tBase any `yaml:\"base\"`\n\t// Ours is the current branch's value, or nil when absent or deleted.\n\tOurs any `yaml:\"ours\"`\n\t// Theirs is the other branch's value, or nil when absent or deleted.\n\tTheirs any `yaml:\"theirs\"`\n}",
          "doc": "MergeConflict describes one unresolved conflict in a three-way scene merge.\n",
          "file": "pkg/sceneformat/conflict.go",
          "line": 61,
          "members": [
            {
              "name": "Kind",
              "anchor": "MergeConflict.Kind",
              "kind": "field",
              "doc": "Kind is ConflictField, ConflictDeleteModify, ConflictAddAdd, ConflictMove or ConflictValidation."
            },
            {
              "name": "Scope",
              "anchor": "MergeConflict.Scope",
              "kind": "field",
              "doc": "Scope is \"scene\", \"layer\", \"object\", \"connection\", \"tilemap\", \"override\" or \"layerOverride\"."
            },
            {
              "name": "Layer",
              "anchor": "MergeConflict.Layer",
              "kind": "field",
              "doc": "Layer names the layer when the conflict is on a layer or an object inside a layer."
            },
            {
              "name": "Object",
              "anchor": "MergeConflict.Object",
              "kind": "field",
              "doc": "Object is the object's ID when Scope is \"object\"."
            },
            {
              "name": "Target",
              "anchor": "MergeConflict.Target",
              "kind": "field",
              "doc": "Target identifies non-object items (such as a connection signature, tilemap name or override key)."
            },
            {
              "name": "Field",
              "anchor": "MergeConflict.Field",
              "kind": "field",
              "doc": "Field names the conflicting field path (such as \"x\", \"components.patrol.speed\", or \"parent\")."
            },
            {
              "name": "Message",
              "anchor": "MergeConflict.Message",
              "kind": "field",
              "doc": "Message describes the conflict in plain text when needed (such as delete/modify or validation errors)."
            },
            {
              "name": "Base",
              "anchor": "MergeConflict.Base",
              "kind": "field",
              "doc": "Base is the ancestor value, or nil when absent."
            },
            {
              "name": "Ours",
              "anchor": "MergeConflict.Ours",
              "kind": "field",
              "doc": "Ours is the current branch's value, or nil when absent or deleted."
            },
            {
              "name": "Theirs",
              "anchor": "MergeConflict.Theirs",
              "kind": "field",
              "doc": "Theirs is the other branch's value, or nil when absent or deleted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Summary",
              "anchor": "MergeConflict.Summary",
              "recv": "MergeConflict",
              "decl": "func (c MergeConflict) Summary() string",
              "doc": "formatConflictSummary returns a single-line human-readable description of c for CLI diagnostics.\n",
              "file": "pkg/sceneformat/conflict.go",
              "line": 266
            }
          ]
        },
        {
          "name": "MergeResult",
          "anchor": "MergeResult",
          "decl": "type MergeResult struct {\n\t// Doc is the merged scene document. When len(Conflicts) == 0, Doc passes\n\t// Validate and can be written directly with Encode. When len(Conflicts) > 0,\n\t// Doc holds the best-effort merged scene (preferring ours on conflicted\n\t// fields) for tools such as an editor conflict resolver.\n\tDoc *SceneDoc\n\t// Merged lists items joined cleanly by identity from one or both sides,\n\t// sorted deterministically.\n\tMerged []MergedItem\n\t// Conflicts lists every conflict encountered, sorted deterministically.\n\t// Empty on a clean merge.\n\tConflicts []MergeConflict\n}",
          "doc": "MergeResult is the outcome of a three-way scene merge.\n",
          "file": "pkg/sceneformat/merge.go",
          "line": 15,
          "members": [
            {
              "name": "Doc",
              "anchor": "MergeResult.Doc",
              "kind": "field",
              "doc": "Doc is the merged scene document. When len(Conflicts) == 0, Doc passes\nValidate and can be written directly with Encode. When len(Conflicts) > 0,\nDoc holds the best-effort merged scene (preferring ours on conflicted\nfields) for tools such as an editor conflict resolver."
            },
            {
              "name": "Merged",
              "anchor": "MergeResult.Merged",
              "kind": "field",
              "doc": "Merged lists items joined cleanly by identity from one or both sides,\nsorted deterministically."
            },
            {
              "name": "Conflicts",
              "anchor": "MergeResult.Conflicts",
              "kind": "field",
              "doc": "Conflicts lists every conflict encountered, sorted deterministically.\nEmpty on a clean merge."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Merge",
              "anchor": "Merge",
              "decl": "func Merge(base, ours, theirs *SceneDoc) (*MergeResult, error)",
              "doc": "Merge performs an identity-based three-way merge of base, ours and theirs.\n\nLayers are matched by name, objects by id anywhere in the scene tree\n(including across reparenting and layer moves), tilemaps and overrides by\nkey, and connections by (from, event, to, handler). Fields are merged one by\none so edits to different objects or different fields on the same object\ncombine cleanly.\n\nbase may be nil for an add/add merge where both branches created the scene\nindependently. ours and theirs must be non-nil valid SceneDoc values (and\nbase, if non-nil, must be valid). The combined result is validated with\nValidate; a merged document that fails validation is reported as a\nConflictValidation conflict.\n",
              "file": "pkg/sceneformat/merge.go",
              "line": 61
            }
          ],
          "methods": [
            {
              "name": "ConflictDoc",
              "anchor": "MergeResult.ConflictDoc",
              "recv": "*MergeResult",
              "decl": "func (r *MergeResult) ConflictDoc(scenePath string) *ConflictDoc",
              "doc": "ConflictDoc returns a versioned ConflictDoc for scenePath when r has\nconflicts, or nil when the merge is clean.\n",
              "file": "pkg/sceneformat/merge.go",
              "line": 36
            },
            {
              "name": "HasConflicts",
              "anchor": "MergeResult.HasConflicts",
              "recv": "*MergeResult",
              "decl": "func (r *MergeResult) HasConflicts() bool",
              "doc": "HasConflicts reports whether the merge encountered any conflicts.\n",
              "file": "pkg/sceneformat/merge.go",
              "line": 30
            }
          ]
        },
        {
          "name": "MergedItem",
          "anchor": "MergedItem",
          "decl": "type MergedItem struct {\n\t// Scope is \"scene\", \"layer\", \"object\", \"connection\", \"tilemap\", \"override\" or \"layerOverride\".\n\tScope string `yaml:\"scope\"`\n\t// Target identifies the item: object ID, layer name, connection signature, or map key.\n\tTarget string `yaml:\"target,omitempty\"`\n\t// Side is \"ours\", \"theirs\" or \"both\".\n\tSide string `yaml:\"side\"`\n\t// Action is \"added\", \"changed\", \"deleted\" or \"moved\".\n\tAction string `yaml:\"action\"`\n}",
          "doc": "MergedItem records one scene item that the merge driver combined cleanly by\nidentity without a conflict.\n",
          "file": "pkg/sceneformat/conflict.go",
          "line": 49,
          "members": [
            {
              "name": "Scope",
              "anchor": "MergedItem.Scope",
              "kind": "field",
              "doc": "Scope is \"scene\", \"layer\", \"object\", \"connection\", \"tilemap\", \"override\" or \"layerOverride\"."
            },
            {
              "name": "Target",
              "anchor": "MergedItem.Target",
              "kind": "field",
              "doc": "Target identifies the item: object ID, layer name, connection signature, or map key."
            },
            {
              "name": "Side",
              "anchor": "MergedItem.Side",
              "kind": "field",
              "doc": "Side is \"ours\", \"theirs\" or \"both\"."
            },
            {
              "name": "Action",
              "anchor": "MergedItem.Action",
              "kind": "field",
              "doc": "Action is \"added\", \"changed\", \"deleted\" or \"moved\"."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ModelResolver",
          "anchor": "ModelResolver",
          "decl": "type ModelResolver interface {\n\tModel(path string) (*gltf.Document, error)\n}",
          "doc": "ModelResolver may optionally be implemented by an AssetResolver (such as *scenemodel.Assets)\nto load glTF models referenced by convex or trimesh 3D colliders.\nIf the resolver instead implements FileResolver (such as *project.Resolver or FSAssets),\nBuildPhysics loads models from it automatically via gltf.LoadFS.\n",
          "file": "pkg/sceneformat/physics_3d_shapes.go",
          "line": 23,
          "members": [
            {
              "name": "Model",
              "anchor": "ModelResolver.Model",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavRegion2DDebug",
          "anchor": "NavRegion2DDebug",
          "decl": "type NavRegion2DDebug struct {\n\tMode                  string\n\tPoints                [][2]float64\n\tOffsetX               float32\n\tOffsetY               float32\n\tSubtractTileCollision bool\n\tTileLayer             string\n\tTileLayers            []string\n\tAgentRadius           float32\n\tEnabled               bool\n\t// WorldVertices are the transformed closed polygon vertices in world space.\n\tWorldVertices []core.Point\n}",
          "doc": "NavRegion2DDebug describes a resolved navregion2d component in local and world space for editor overlays and polygon handles.\n",
          "file": "pkg/sceneformat/navregion2d.go",
          "line": 79,
          "members": [
            {
              "name": "Mode",
              "anchor": "NavRegion2DDebug.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "NavRegion2DDebug.Points",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetX",
              "anchor": "NavRegion2DDebug.OffsetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetY",
              "anchor": "NavRegion2DDebug.OffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SubtractTileCollision",
              "anchor": "NavRegion2DDebug.SubtractTileCollision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayer",
              "anchor": "NavRegion2DDebug.TileLayer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayers",
              "anchor": "NavRegion2DDebug.TileLayers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "AgentRadius",
              "anchor": "NavRegion2DDebug.AgentRadius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Enabled",
              "anchor": "NavRegion2DDebug.Enabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldVertices",
              "anchor": "NavRegion2DDebug.WorldVertices",
              "kind": "field",
              "doc": "WorldVertices are the transformed closed polygon vertices in world space."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ExtractNavRegion2D",
              "anchor": "ExtractNavRegion2D",
              "decl": "func ExtractNavRegion2D(o *ObjectDoc, world *math2d.Affine) (NavRegion2DDebug, bool, error)",
              "doc": "ExtractNavRegion2D resolves a navregion2d component from o at world (or o's local transform when world is nil).\n",
              "file": "pkg/sceneformat/navregion2d.go",
              "line": 94
            }
          ],
          "methods": []
        },
        {
          "name": "Nodes3D",
          "anchor": "Nodes3D",
          "decl": "type Nodes3D struct {\n\t// Layers maps each layer name to its group node, a child of the parent given to BuildNodes3D with an identity transform and the layer's visibility.\n\tLayers map[string]*scene3d.Node\n\t// Objects maps each object ID, children included, to its node.\n\tObjects map[string]*scene3d.Node\n}",
          "doc": "Nodes3D is the 3D node tree BuildNodes3D builds from a scene.\n",
          "file": "pkg/sceneformat/hierarchy.go",
          "line": 75,
          "members": [
            {
              "name": "Layers",
              "anchor": "Nodes3D.Layers",
              "kind": "field",
              "doc": "Layers maps each layer name to its group node, a child of the parent given to BuildNodes3D with an identity transform and the layer's visibility."
            },
            {
              "name": "Objects",
              "anchor": "Nodes3D.Objects",
              "kind": "field",
              "doc": "Objects maps each object ID, children included, to its node."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildNodes3D",
              "anchor": "BuildNodes3D",
              "decl": "func BuildNodes3D(doc *SceneDoc, parent *scene3d.Node) (*Nodes3D, error)",
              "doc": "BuildNodes3D validates doc and builds its layers and objects into a 3D node tree under parent, such as a scene3d.Scene's Root. Each layer becomes a group node named after the layer, in document order, and each object a node named by its ID under its layer's node or its parent object's node, children in document order. An object's local transform is its ObjectLocalTransform3D, and its node's UserData is the *ObjectDoc it came from (a pointer into doc).\n\nBuildNodes3D returns an error and leaves parent unchanged when doc is invalid, still instances or inherits other scene files (pass it through Resolve first), or parent is nil.\n",
              "file": "pkg/sceneformat/hierarchy.go",
              "line": 85
            }
          ],
          "methods": []
        },
        {
          "name": "ObjectDoc",
          "anchor": "ObjectDoc",
          "decl": "type ObjectDoc struct {\n\t// ID uniquely identifies the object across the entire scene.\n\tID string `yaml:\"id\" schema:\"required,minLength=1\"`\n\t// Name is an optional human-readable display name.\n\tName string `yaml:\"name,omitempty\"`\n\t// Prefab optionally names a prefab or archetype template.\n\tPrefab string `yaml:\"prefab,omitempty\"`\n\t// X and Y are where the object's origin sits in its parent's space, which for a top-level object is its layer's coordinate space.\n\tX float32 `yaml:\"x,omitempty\"`\n\tY float32 `yaml:\"y,omitempty\"`\n\t// PosZ is the optional 3D Z coordinate (depth in 3D scenes) in its parent's space, distinct from 2D draw order Z.\n\tPosZ float32 `yaml:\"posZ,omitempty\"`\n\t// OriginX and OriginY are the pivot point inside the sprite's untrimmed frame.\n\tOriginX float32 `yaml:\"originX,omitempty\"`\n\tOriginY float32 `yaml:\"originY,omitempty\"`\n\t// Rotation turns the object clockwise in radians about its origin in 2D space.\n\tRotation float32 `yaml:\"rotation,omitempty\"`\n\t// RotX, RotY, and RotZ are optional 3D Euler rotations in radians about the X, Y, and Z axes, applied in that order about fixed axes (the rotation Rz * Ry * Rx).\n\tRotX float32 `yaml:\"rotX,omitempty\"`\n\tRotY float32 `yaml:\"rotY,omitempty\"`\n\tRotZ float32 `yaml:\"rotZ,omitempty\"`\n\t// ScaleX, ScaleY, and ScaleZ scale the object about its origin; nil defaults to 1. Negative mirrors.\n\tScaleX *float32 `yaml:\"scaleX,omitempty\"`\n\tScaleY *float32 `yaml:\"scaleY,omitempty\"`\n\tScaleZ *float32 `yaml:\"scaleZ,omitempty\"`\n\t// Depth is the optional 3D extent along the Z axis in world units; 0 uses a default extent.\n\tDepth float32 `yaml:\"depth,omitempty\" schema:\"minimum=0\"`\n\t// Mesh optionally names the built-in primitive the object draws in 3D: \"box\", \"sphere\", \"plane\", \"capsule\" or \"cylinder\" (MeshPrimitives lists them, and package scenemodel builds them). It cannot be combined with Model; scale the object to size the primitive.\n\tMesh string `yaml:\"mesh,omitempty\" schema:\"enum=box|sphere|plane|capsule|cylinder\"`\n\t// Model optionally names the glTF 2.0 model the object draws in 3D, a .gltf or .glb file named by its slash-separated path from the project root, such as \"models/crate.glb\". Without ModelNode or ModelMesh the object draws every node of the model's default scene; package scenemodel loads it through a ModelResolver. Version 2.\n\tModel string `yaml:\"model,omitempty\"`\n\t// ModelNode optionally names one node of Model, the first with that name in the file, which the object draws with its descendants in place of the whole model; the object's own transform replaces the node's. It requires Model and cannot be combined with ModelMesh. Version 2.\n\tModelNode string `yaml:\"modelNode,omitempty\"`\n\t// ModelMesh optionally names one mesh of Model, the first with that name in the file, which the object draws at its origin in place of the whole model. It requires Model and cannot be combined with ModelNode. Version 2.\n\tModelMesh string `yaml:\"modelMesh,omitempty\"`\n\t// GridMap optionally names a 3D grid map file (*.gridmap.yaml or *.gridmap.yml) by its slash-separated path from the project root, such as \"levels/dungeon.gridmap.yaml\". Package scenemodel loads it and instances its tiles with world3d.GridMap.BuildInstances. It cannot be combined with Mesh or Model. Version 2.\n\tGridMap string `yaml:\"gridMap,omitempty\"`\n\t// Occluder optionally marks this 3D object as an occluder for render3d.OcclusionBuffer, using either its own 3D geometry (mode \"model\") or an explicit local-space box (mode \"box\"). Version 2.\n\tOccluder *OccluderDoc `yaml:\"occluder,omitempty\"`\n\t// FlipX and FlipY mirror the sprite inside its untrimmed frame box.\n\tFlipX bool `yaml:\"flipX,omitempty\"`\n\tFlipY bool `yaml:\"flipY,omitempty\"`\n\t// Alpha is the object's opacity in [0, 1]; nil defaults to 1.\n\tAlpha *float32 `yaml:\"alpha,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Z orders objects within the layer, children included; lower Z draws first, and ties keep document order with each parent before its children.\n\tZ int `yaml:\"z,omitempty\"`\n\t// Sprite optionally binds the object to a frame in a sprite.Atlas.\n\tSprite *SpriteRef `yaml:\"sprite,omitempty\"`\n\t// Material optionally names a shared material resource file by its slash-separated path from the project root, such as \"materials/stone.material.yaml\". Build resolves it through a MaterialResolver; the sprite draws with the material's opacity and blend mode, so every scene that uses the file changes when it is edited. In 3D it replaces every material of the object's Model, or gives its Mesh primitive its surface (package scenemodel).\n\tMaterial string `yaml:\"material,omitempty\"`\n\t// Particles optionally binds the object to a 2D particle emitter YAML file (particles.Config) and optional sprite atlas, so Build constructs a live particles.Emitter that BuiltScene.Update steps and BuiltScene.Draw renders at the object's world transform. Version 2.\n\tParticles *ParticlesRef `yaml:\"particles,omitempty\"`\n\t// Light optionally attaches a directional, point or spot 3D light to this object, placed and aimed by its 3D transform (local -Z). Version 4.\n\tLight *LightDoc `yaml:\"light,omitempty\"`\n\t// Camera optionally attaches a perspective or orthographic 3D camera to this object, placed and oriented by its 3D transform (looking down local -Z). Version 4.\n\tCamera *Camera3DDoc `yaml:\"camera,omitempty\"`\n\t// ReflectionProbe optionally attaches a local 3D reflection probe volume to this object, capturing reflections from its world position over its influence box. Version 4.\n\tReflectionProbe *ReflectionProbeDoc `yaml:\"reflectionProbe,omitempty\"`\n\t// LightProbeGrid optionally attaches a regular 3D lattice of diffuse L2 spherical harmonic irradiance probes to this object. Version 4.\n\tLightProbeGrid *LightProbeGridDoc `yaml:\"lightProbeGrid,omitempty\"`\n\t// Components holds structured component data keyed by component type name.\n\tComponents map[string]any `yaml:\"components,omitempty\"`\n\t// Properties holds arbitrary custom metadata for gameplay scripts or editors. Encode writes a whole-number float with a decimal point (2.0), so that every value reads back with the kind it was written with.\n\tProperties map[string]any `yaml:\"properties,omitempty\"`\n\t// Scene optionally instances another scene file, named by its slash-separated path from the project root such as \"scenes/enemy.scene.yaml\". Resolve makes the top-level objects of every layer of that scene, in document order, this object's first children, ahead of the ones in Children, with each instanced object's ID prefixed by this object's ID and a slash (\"enemy_1/body\"). The instanced scene's layer settings, camera, background and virtual size do not carry over, and a scene whose layers hold a tilemap cannot be instanced. Version 2.\n\tScene string `yaml:\"scene,omitempty\"`\n\t// Overrides changes objects of the instanced Scene, keyed by their IDs inside that scene (\"body\", or \"gun/barrel\" for an object of a scene it instances in turn); it requires Scene. Version 2.\n\tOverrides map[string]ObjectOverride `yaml:\"overrides,omitempty\"`\n\t// Children are objects attached to this one, in document order. A child's transform (X, Y, Rotation, ScaleX, ScaleY, and in 3D PosZ, RotX, RotY, RotZ, ScaleZ) is local to this object, and its alpha multiplies this object's. Children belong to their parent's layer; their IDs share the scene-wide namespace, and nesting is limited to MaxObjectDepth levels.\n\tChildren []ObjectDoc `yaml:\"children,omitempty\"`\n}",
          "doc": "ObjectDoc is one entity or visual object placed on a layer.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 438,
          "members": [
            {
              "name": "ID",
              "anchor": "ObjectDoc.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the object across the entire scene."
            },
            {
              "name": "Name",
              "anchor": "ObjectDoc.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable display name."
            },
            {
              "name": "Prefab",
              "anchor": "ObjectDoc.Prefab",
              "kind": "field",
              "doc": "Prefab optionally names a prefab or archetype template."
            },
            {
              "name": "X",
              "anchor": "ObjectDoc.X",
              "kind": "field",
              "doc": "X and Y are where the object's origin sits in its parent's space, which for a top-level object is its layer's coordinate space."
            },
            {
              "name": "Y",
              "anchor": "ObjectDoc.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PosZ",
              "anchor": "ObjectDoc.PosZ",
              "kind": "field",
              "doc": "PosZ is the optional 3D Z coordinate (depth in 3D scenes) in its parent's space, distinct from 2D draw order Z."
            },
            {
              "name": "OriginX",
              "anchor": "ObjectDoc.OriginX",
              "kind": "field",
              "doc": "OriginX and OriginY are the pivot point inside the sprite's untrimmed frame."
            },
            {
              "name": "OriginY",
              "anchor": "ObjectDoc.OriginY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "ObjectDoc.Rotation",
              "kind": "field",
              "doc": "Rotation turns the object clockwise in radians about its origin in 2D space."
            },
            {
              "name": "RotX",
              "anchor": "ObjectDoc.RotX",
              "kind": "field",
              "doc": "RotX, RotY, and RotZ are optional 3D Euler rotations in radians about the X, Y, and Z axes, applied in that order about fixed axes (the rotation Rz * Ry * Rx)."
            },
            {
              "name": "RotY",
              "anchor": "ObjectDoc.RotY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RotZ",
              "anchor": "ObjectDoc.RotZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleX",
              "anchor": "ObjectDoc.ScaleX",
              "kind": "field",
              "doc": "ScaleX, ScaleY, and ScaleZ scale the object about its origin; nil defaults to 1. Negative mirrors."
            },
            {
              "name": "ScaleY",
              "anchor": "ObjectDoc.ScaleY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleZ",
              "anchor": "ObjectDoc.ScaleZ",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Depth",
              "anchor": "ObjectDoc.Depth",
              "kind": "field",
              "doc": "Depth is the optional 3D extent along the Z axis in world units; 0 uses a default extent."
            },
            {
              "name": "Mesh",
              "anchor": "ObjectDoc.Mesh",
              "kind": "field",
              "doc": "Mesh optionally names the built-in primitive the object draws in 3D: \"box\", \"sphere\", \"plane\", \"capsule\" or \"cylinder\" (MeshPrimitives lists them, and package scenemodel builds them). It cannot be combined with Model; scale the object to size the primitive."
            },
            {
              "name": "Model",
              "anchor": "ObjectDoc.Model",
              "kind": "field",
              "doc": "Model optionally names the glTF 2.0 model the object draws in 3D, a .gltf or .glb file named by its slash-separated path from the project root, such as \"models/crate.glb\". Without ModelNode or ModelMesh the object draws every node of the model's default scene; package scenemodel loads it through a ModelResolver. Version 2."
            },
            {
              "name": "ModelNode",
              "anchor": "ObjectDoc.ModelNode",
              "kind": "field",
              "doc": "ModelNode optionally names one node of Model, the first with that name in the file, which the object draws with its descendants in place of the whole model; the object's own transform replaces the node's. It requires Model and cannot be combined with ModelMesh. Version 2."
            },
            {
              "name": "ModelMesh",
              "anchor": "ObjectDoc.ModelMesh",
              "kind": "field",
              "doc": "ModelMesh optionally names one mesh of Model, the first with that name in the file, which the object draws at its origin in place of the whole model. It requires Model and cannot be combined with ModelNode. Version 2."
            },
            {
              "name": "GridMap",
              "anchor": "ObjectDoc.GridMap",
              "kind": "field",
              "doc": "GridMap optionally names a 3D grid map file (*.gridmap.yaml or *.gridmap.yml) by its slash-separated path from the project root, such as \"levels/dungeon.gridmap.yaml\". Package scenemodel loads it and instances its tiles with world3d.GridMap.BuildInstances. It cannot be combined with Mesh or Model. Version 2."
            },
            {
              "name": "Occluder",
              "anchor": "ObjectDoc.Occluder",
              "kind": "field",
              "doc": "Occluder optionally marks this 3D object as an occluder for render3d.OcclusionBuffer, using either its own 3D geometry (mode \"model\") or an explicit local-space box (mode \"box\"). Version 2."
            },
            {
              "name": "FlipX",
              "anchor": "ObjectDoc.FlipX",
              "kind": "field",
              "doc": "FlipX and FlipY mirror the sprite inside its untrimmed frame box."
            },
            {
              "name": "FlipY",
              "anchor": "ObjectDoc.FlipY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Alpha",
              "anchor": "ObjectDoc.Alpha",
              "kind": "field",
              "doc": "Alpha is the object's opacity in [0, 1]; nil defaults to 1."
            },
            {
              "name": "Z",
              "anchor": "ObjectDoc.Z",
              "kind": "field",
              "doc": "Z orders objects within the layer, children included; lower Z draws first, and ties keep document order with each parent before its children."
            },
            {
              "name": "Sprite",
              "anchor": "ObjectDoc.Sprite",
              "kind": "field",
              "doc": "Sprite optionally binds the object to a frame in a sprite.Atlas."
            },
            {
              "name": "Material",
              "anchor": "ObjectDoc.Material",
              "kind": "field",
              "doc": "Material optionally names a shared material resource file by its slash-separated path from the project root, such as \"materials/stone.material.yaml\". Build resolves it through a MaterialResolver; the sprite draws with the material's opacity and blend mode, so every scene that uses the file changes when it is edited. In 3D it replaces every material of the object's Model, or gives its Mesh primitive its surface (package scenemodel)."
            },
            {
              "name": "Particles",
              "anchor": "ObjectDoc.Particles",
              "kind": "field",
              "doc": "Particles optionally binds the object to a 2D particle emitter YAML file (particles.Config) and optional sprite atlas, so Build constructs a live particles.Emitter that BuiltScene.Update steps and BuiltScene.Draw renders at the object's world transform. Version 2."
            },
            {
              "name": "Light",
              "anchor": "ObjectDoc.Light",
              "kind": "field",
              "doc": "Light optionally attaches a directional, point or spot 3D light to this object, placed and aimed by its 3D transform (local -Z). Version 4."
            },
            {
              "name": "Camera",
              "anchor": "ObjectDoc.Camera",
              "kind": "field",
              "doc": "Camera optionally attaches a perspective or orthographic 3D camera to this object, placed and oriented by its 3D transform (looking down local -Z). Version 4."
            },
            {
              "name": "ReflectionProbe",
              "anchor": "ObjectDoc.ReflectionProbe",
              "kind": "field",
              "doc": "ReflectionProbe optionally attaches a local 3D reflection probe volume to this object, capturing reflections from its world position over its influence box. Version 4."
            },
            {
              "name": "LightProbeGrid",
              "anchor": "ObjectDoc.LightProbeGrid",
              "kind": "field",
              "doc": "LightProbeGrid optionally attaches a regular 3D lattice of diffuse L2 spherical harmonic irradiance probes to this object. Version 4."
            },
            {
              "name": "Components",
              "anchor": "ObjectDoc.Components",
              "kind": "field",
              "doc": "Components holds structured component data keyed by component type name."
            },
            {
              "name": "Properties",
              "anchor": "ObjectDoc.Properties",
              "kind": "field",
              "doc": "Properties holds arbitrary custom metadata for gameplay scripts or editors. Encode writes a whole-number float with a decimal point (2.0), so that every value reads back with the kind it was written with."
            },
            {
              "name": "Scene",
              "anchor": "ObjectDoc.Scene",
              "kind": "field",
              "doc": "Scene optionally instances another scene file, named by its slash-separated path from the project root such as \"scenes/enemy.scene.yaml\". Resolve makes the top-level objects of every layer of that scene, in document order, this object's first children, ahead of the ones in Children, with each instanced object's ID prefixed by this object's ID and a slash (\"enemy_1/body\"). The instanced scene's layer settings, camera, background and virtual size do not carry over, and a scene whose layers hold a tilemap cannot be instanced. Version 2."
            },
            {
              "name": "Overrides",
              "anchor": "ObjectDoc.Overrides",
              "kind": "field",
              "doc": "Overrides changes objects of the instanced Scene, keyed by their IDs inside that scene (\"body\", or \"gun/barrel\" for an object of a scene it instances in turn); it requires Scene. Version 2."
            },
            {
              "name": "Children",
              "anchor": "ObjectDoc.Children",
              "kind": "field",
              "doc": "Children are objects attached to this one, in document order. A child's transform (X, Y, Rotation, ScaleX, ScaleY, and in 3D PosZ, RotX, RotY, RotZ, ScaleZ) is local to this object, and its alpha multiplies this object's. Children belong to their parent's layer; their IDs share the scene-wide namespace, and nesting is limited to MaxObjectDepth levels."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "ObjectDoc.Clone",
              "recv": "*ObjectDoc",
              "decl": "func (o *ObjectDoc) Clone() ObjectDoc",
              "doc": "Clone returns a deep copy of o: its children, overrides, sprite, optional values and maps are all new, so changing the copy never changes o.\n",
              "file": "pkg/sceneformat/resolve.go",
              "line": 622
            },
            {
              "name": "EffectiveAlpha",
              "anchor": "ObjectDoc.EffectiveAlpha",
              "recv": "*ObjectDoc",
              "decl": "func (o *ObjectDoc) EffectiveAlpha() float32",
              "doc": "EffectiveAlpha returns Alpha, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 615
            },
            {
              "name": "EffectiveScaleX",
              "anchor": "ObjectDoc.EffectiveScaleX",
              "recv": "*ObjectDoc",
              "decl": "func (o *ObjectDoc) EffectiveScaleX() float32",
              "doc": "EffectiveScaleX returns ScaleX, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 583
            },
            {
              "name": "EffectiveScaleY",
              "anchor": "ObjectDoc.EffectiveScaleY",
              "recv": "*ObjectDoc",
              "decl": "func (o *ObjectDoc) EffectiveScaleY() float32",
              "doc": "EffectiveScaleY returns ScaleY, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 591
            },
            {
              "name": "EffectiveScaleZ",
              "anchor": "ObjectDoc.EffectiveScaleZ",
              "recv": "*ObjectDoc",
              "decl": "func (o *ObjectDoc) EffectiveScaleZ() float32",
              "doc": "EffectiveScaleZ returns ScaleZ, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 599
            },
            {
              "name": "LocalTransform",
              "anchor": "ObjectDoc.LocalTransform",
              "recv": "*ObjectDoc",
              "decl": "func (o *ObjectDoc) LocalTransform() math2d.Affine",
              "doc": "LocalTransform returns the object's 2D transform relative to its parent (or to its layer for a top-level object): translate by (X, Y), rotate by Rotation, then scale by (ScaleX, ScaleY). OriginX, OriginY and the flips place a sprite inside this space and are not part of it.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 607
            }
          ]
        },
        {
          "name": "ObjectOverride",
          "anchor": "ObjectOverride",
          "decl": "type ObjectOverride struct {\n\t// Name replaces the object's name.\n\tName *string `yaml:\"name,omitempty\"`\n\t// Prefab replaces the prefab the object names.\n\tPrefab *string `yaml:\"prefab,omitempty\"`\n\t// X replaces where the object's origin sits along x in its parent's space.\n\tX *float32 `yaml:\"x,omitempty\"`\n\t// Y replaces where the object's origin sits along y in its parent's space.\n\tY *float32 `yaml:\"y,omitempty\"`\n\t// PosZ replaces the object's 3D Z coordinate in its parent's space.\n\tPosZ *float32 `yaml:\"posZ,omitempty\"`\n\t// OriginX replaces the x of the object's pivot point.\n\tOriginX *float32 `yaml:\"originX,omitempty\"`\n\t// OriginY replaces the y of the object's pivot point.\n\tOriginY *float32 `yaml:\"originY,omitempty\"`\n\t// Rotation replaces the object's clockwise 2D rotation in radians.\n\tRotation *float32 `yaml:\"rotation,omitempty\"`\n\t// RotX replaces the object's rotation about the x axis in 3D.\n\tRotX *float32 `yaml:\"rotX,omitempty\"`\n\t// RotY replaces the object's rotation about the y axis in 3D.\n\tRotY *float32 `yaml:\"rotY,omitempty\"`\n\t// RotZ replaces the object's rotation about the z axis in 3D.\n\tRotZ *float32 `yaml:\"rotZ,omitempty\"`\n\t// ScaleX replaces the object's x scale.\n\tScaleX *float32 `yaml:\"scaleX,omitempty\"`\n\t// ScaleY replaces the object's y scale.\n\tScaleY *float32 `yaml:\"scaleY,omitempty\"`\n\t// ScaleZ replaces the object's z scale in 3D.\n\tScaleZ *float32 `yaml:\"scaleZ,omitempty\"`\n\t// Depth replaces the object's 3D extent along the Z axis.\n\tDepth *float32 `yaml:\"depth,omitempty\" schema:\"minimum=0\"`\n\t// Mesh replaces the built-in 3D primitive the object draws; \"\" removes it, as an override that gives the object a Model in place of a primitive must.\n\tMesh *string `yaml:\"mesh,omitempty\" schema:\"enum=|box|sphere|plane|capsule|cylinder\"`\n\t// Model replaces the glTF model the object draws, a slash-separated path from the project root.\n\tModel *string `yaml:\"model,omitempty\"`\n\t// ModelNode replaces the node of the model the object draws.\n\tModelNode *string `yaml:\"modelNode,omitempty\"`\n\t// ModelMesh replaces the mesh of the model the object draws.\n\tModelMesh *string `yaml:\"modelMesh,omitempty\"`\n\t// GridMap replaces the 3D grid map file the object draws, a slash-separated path from the project root; \"\" removes it.\n\tGridMap *string `yaml:\"gridMap,omitempty\"`\n\t// Occluder replaces the object's 3D occluder definition.\n\tOccluder *OccluderDoc `yaml:\"occluder,omitempty\"`\n\t// FlipX replaces whether the sprite is mirrored horizontally.\n\tFlipX *bool `yaml:\"flipX,omitempty\"`\n\t// FlipY replaces whether the sprite is mirrored vertically.\n\tFlipY *bool `yaml:\"flipY,omitempty\"`\n\t// Alpha replaces the object's opacity, in [0, 1].\n\tAlpha *float32 `yaml:\"alpha,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Z replaces the object's draw order within its layer.\n\tZ *int `yaml:\"z,omitempty\"`\n\t// Sprite replaces the atlas frame the object draws.\n\tSprite *SpriteRef `yaml:\"sprite,omitempty\"`\n\t// Material replaces the material resource file the object names, a slash-separated path from the project root.\n\tMaterial *string `yaml:\"material,omitempty\"`\n\t// Particles replaces the particle emitter file and optional atlas the object runs.\n\tParticles *ParticlesRef `yaml:\"particles,omitempty\"`\n\t// Light replaces the 3D light attached to the object. Version 4.\n\tLight *LightDoc `yaml:\"light,omitempty\"`\n\t// Camera replaces the 3D camera attached to the object. Version 4.\n\tCamera *Camera3DDoc `yaml:\"camera,omitempty\"`\n\t// ReflectionProbe replaces the 3D reflection probe attached to the object. Version 4.\n\tReflectionProbe *ReflectionProbeDoc `yaml:\"reflectionProbe,omitempty\"`\n\t// LightProbeGrid replaces the 3D light probe grid attached to the object. Version 4.\n\tLightProbeGrid *LightProbeGridDoc `yaml:\"lightProbeGrid,omitempty\"`\n\t// Components replaces the object's components key by key, keeping the others.\n\tComponents map[string]any `yaml:\"components,omitempty\"`\n\t// Properties replaces the object's custom properties key by key, keeping the others.\n\tProperties map[string]any `yaml:\"properties,omitempty\"`\n}",
          "doc": "ObjectOverride changes one object of an instanced or inherited scene (ObjectDoc.Overrides, SceneDoc.Overrides). Each field set replaces the ObjectDoc field of the same name; a field left unset keeps it. Components and Properties replace the object's entries key by key and keep its other keys. An override cannot change an object's ID or children, or what it instances.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 511,
          "members": [
            {
              "name": "Name",
              "anchor": "ObjectOverride.Name",
              "kind": "field",
              "doc": "Name replaces the object's name."
            },
            {
              "name": "Prefab",
              "anchor": "ObjectOverride.Prefab",
              "kind": "field",
              "doc": "Prefab replaces the prefab the object names."
            },
            {
              "name": "X",
              "anchor": "ObjectOverride.X",
              "kind": "field",
              "doc": "X replaces where the object's origin sits along x in its parent's space."
            },
            {
              "name": "Y",
              "anchor": "ObjectOverride.Y",
              "kind": "field",
              "doc": "Y replaces where the object's origin sits along y in its parent's space."
            },
            {
              "name": "PosZ",
              "anchor": "ObjectOverride.PosZ",
              "kind": "field",
              "doc": "PosZ replaces the object's 3D Z coordinate in its parent's space."
            },
            {
              "name": "OriginX",
              "anchor": "ObjectOverride.OriginX",
              "kind": "field",
              "doc": "OriginX replaces the x of the object's pivot point."
            },
            {
              "name": "OriginY",
              "anchor": "ObjectOverride.OriginY",
              "kind": "field",
              "doc": "OriginY replaces the y of the object's pivot point."
            },
            {
              "name": "Rotation",
              "anchor": "ObjectOverride.Rotation",
              "kind": "field",
              "doc": "Rotation replaces the object's clockwise 2D rotation in radians."
            },
            {
              "name": "RotX",
              "anchor": "ObjectOverride.RotX",
              "kind": "field",
              "doc": "RotX replaces the object's rotation about the x axis in 3D."
            },
            {
              "name": "RotY",
              "anchor": "ObjectOverride.RotY",
              "kind": "field",
              "doc": "RotY replaces the object's rotation about the y axis in 3D."
            },
            {
              "name": "RotZ",
              "anchor": "ObjectOverride.RotZ",
              "kind": "field",
              "doc": "RotZ replaces the object's rotation about the z axis in 3D."
            },
            {
              "name": "ScaleX",
              "anchor": "ObjectOverride.ScaleX",
              "kind": "field",
              "doc": "ScaleX replaces the object's x scale."
            },
            {
              "name": "ScaleY",
              "anchor": "ObjectOverride.ScaleY",
              "kind": "field",
              "doc": "ScaleY replaces the object's y scale."
            },
            {
              "name": "ScaleZ",
              "anchor": "ObjectOverride.ScaleZ",
              "kind": "field",
              "doc": "ScaleZ replaces the object's z scale in 3D."
            },
            {
              "name": "Depth",
              "anchor": "ObjectOverride.Depth",
              "kind": "field",
              "doc": "Depth replaces the object's 3D extent along the Z axis."
            },
            {
              "name": "Mesh",
              "anchor": "ObjectOverride.Mesh",
              "kind": "field",
              "doc": "Mesh replaces the built-in 3D primitive the object draws; \"\" removes it, as an override that gives the object a Model in place of a primitive must."
            },
            {
              "name": "Model",
              "anchor": "ObjectOverride.Model",
              "kind": "field",
              "doc": "Model replaces the glTF model the object draws, a slash-separated path from the project root."
            },
            {
              "name": "ModelNode",
              "anchor": "ObjectOverride.ModelNode",
              "kind": "field",
              "doc": "ModelNode replaces the node of the model the object draws."
            },
            {
              "name": "ModelMesh",
              "anchor": "ObjectOverride.ModelMesh",
              "kind": "field",
              "doc": "ModelMesh replaces the mesh of the model the object draws."
            },
            {
              "name": "GridMap",
              "anchor": "ObjectOverride.GridMap",
              "kind": "field",
              "doc": "GridMap replaces the 3D grid map file the object draws, a slash-separated path from the project root; \"\" removes it."
            },
            {
              "name": "Occluder",
              "anchor": "ObjectOverride.Occluder",
              "kind": "field",
              "doc": "Occluder replaces the object's 3D occluder definition."
            },
            {
              "name": "FlipX",
              "anchor": "ObjectOverride.FlipX",
              "kind": "field",
              "doc": "FlipX replaces whether the sprite is mirrored horizontally."
            },
            {
              "name": "FlipY",
              "anchor": "ObjectOverride.FlipY",
              "kind": "field",
              "doc": "FlipY replaces whether the sprite is mirrored vertically."
            },
            {
              "name": "Alpha",
              "anchor": "ObjectOverride.Alpha",
              "kind": "field",
              "doc": "Alpha replaces the object's opacity, in [0, 1]."
            },
            {
              "name": "Z",
              "anchor": "ObjectOverride.Z",
              "kind": "field",
              "doc": "Z replaces the object's draw order within its layer."
            },
            {
              "name": "Sprite",
              "anchor": "ObjectOverride.Sprite",
              "kind": "field",
              "doc": "Sprite replaces the atlas frame the object draws."
            },
            {
              "name": "Material",
              "anchor": "ObjectOverride.Material",
              "kind": "field",
              "doc": "Material replaces the material resource file the object names, a slash-separated path from the project root."
            },
            {
              "name": "Particles",
              "anchor": "ObjectOverride.Particles",
              "kind": "field",
              "doc": "Particles replaces the particle emitter file and optional atlas the object runs."
            },
            {
              "name": "Light",
              "anchor": "ObjectOverride.Light",
              "kind": "field",
              "doc": "Light replaces the 3D light attached to the object. Version 4."
            },
            {
              "name": "Camera",
              "anchor": "ObjectOverride.Camera",
              "kind": "field",
              "doc": "Camera replaces the 3D camera attached to the object. Version 4."
            },
            {
              "name": "ReflectionProbe",
              "anchor": "ObjectOverride.ReflectionProbe",
              "kind": "field",
              "doc": "ReflectionProbe replaces the 3D reflection probe attached to the object. Version 4."
            },
            {
              "name": "LightProbeGrid",
              "anchor": "ObjectOverride.LightProbeGrid",
              "kind": "field",
              "doc": "LightProbeGrid replaces the 3D light probe grid attached to the object. Version 4."
            },
            {
              "name": "Components",
              "anchor": "ObjectOverride.Components",
              "kind": "field",
              "doc": "Components replaces the object's components key by key, keeping the others."
            },
            {
              "name": "Properties",
              "anchor": "ObjectOverride.Properties",
              "kind": "field",
              "doc": "Properties replaces the object's custom properties key by key, keeping the others."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectRef",
          "anchor": "ObjectRef",
          "decl": "type ObjectRef struct {\n\t// ID is the object's unique scene ID.\n\tID string\n\t// Layer is the name of the layer the object belongs to.\n\tLayer string\n}",
          "doc": "ObjectRef is the component SpawnEntities attaches to every entity it spawns, naming the scene object the entity came from.\n",
          "file": "pkg/sceneformat/hierarchy.go",
          "line": 16,
          "members": [
            {
              "name": "ID",
              "anchor": "ObjectRef.ID",
              "kind": "field",
              "doc": "ID is the object's unique scene ID."
            },
            {
              "name": "Layer",
              "anchor": "ObjectRef.Layer",
              "kind": "field",
              "doc": "Layer is the name of the layer the object belongs to."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Occluder2DDebug",
          "anchor": "Occluder2DDebug",
          "decl": "type Occluder2DDebug struct {\n\tShape      string\n\tWidth      float32\n\tHeight     float32\n\tOffsetX    float32\n\tOffsetY    float32\n\tPoints     [][2]float64\n\tLayer      string\n\tTileLayers []string\n\tEnabled    bool\n\t// WorldVertices are the transformed closed polygon corners/vertices in world space (for rect and polygon shapes).\n\tWorldVertices []core.Point\n}",
          "doc": "Occluder2DDebug describes a resolved occluder2d component in local and world space for editor overlays and shape handles.\n",
          "file": "pkg/sceneformat/lights2d.go",
          "line": 365,
          "members": [
            {
              "name": "Shape",
              "anchor": "Occluder2DDebug.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Occluder2DDebug.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Occluder2DDebug.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetX",
              "anchor": "Occluder2DDebug.OffsetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetY",
              "anchor": "Occluder2DDebug.OffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "Occluder2DDebug.Points",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layer",
              "anchor": "Occluder2DDebug.Layer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileLayers",
              "anchor": "Occluder2DDebug.TileLayers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Enabled",
              "anchor": "Occluder2DDebug.Enabled",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WorldVertices",
              "anchor": "Occluder2DDebug.WorldVertices",
              "kind": "field",
              "doc": "WorldVertices are the transformed closed polygon corners/vertices in world space (for rect and polygon shapes)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ExtractOccluder2D",
              "anchor": "ExtractOccluder2D",
              "decl": "func ExtractOccluder2D(o *ObjectDoc, world *math2d.Affine) (Occluder2DDebug, bool, error)",
              "doc": "ExtractOccluder2D resolves an occluder2d component from o at world (or o's local transform when world is nil).\n",
              "file": "pkg/sceneformat/lights2d.go",
              "line": 463
            }
          ],
          "methods": []
        },
        {
          "name": "OccluderDoc",
          "anchor": "OccluderDoc",
          "decl": "type OccluderDoc struct {\n\t// Mode selects the occluder geometry: \"model\" (the object's own Mesh or Model) or \"box\" (an explicit local-space solid box).\n\tMode OccluderMode `yaml:\"mode\" schema:\"required,enum=model|box\"`\n\t// Center is the optional local-space center [x, y, z] of a \"box\" occluder; nil centers it at the object's origin. Only valid when Mode is \"box\".\n\tCenter *[3]float32 `yaml:\"center,omitempty,flow\"`\n\t// Size is the optional local-space dimensions [width, height, depth] of a \"box\" occluder; nil defaults to [1, 1, 1], scaled by the object's transform. When set, every axis must be positive. Only valid when Mode is \"box\".\n\tSize *[3]float32 `yaml:\"size,omitempty,flow\"`\n\t// DoubleSided rasterizes both front and back faces of a \"model\" occluder when true.\n\tDoubleSided bool `yaml:\"doubleSided,omitempty\"`\n}",
          "doc": "OccluderDoc marks a 3D object as an occluder that hides objects behind it in render3d.OcclusionBuffer (ObjectDoc.Occluder). Version 2.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 641,
          "members": [
            {
              "name": "Mode",
              "anchor": "OccluderDoc.Mode",
              "kind": "field",
              "doc": "Mode selects the occluder geometry: \"model\" (the object's own Mesh or Model) or \"box\" (an explicit local-space solid box)."
            },
            {
              "name": "Center",
              "anchor": "OccluderDoc.Center",
              "kind": "field",
              "doc": "Center is the optional local-space center [x, y, z] of a \"box\" occluder; nil centers it at the object's origin. Only valid when Mode is \"box\"."
            },
            {
              "name": "Size",
              "anchor": "OccluderDoc.Size",
              "kind": "field",
              "doc": "Size is the optional local-space dimensions [width, height, depth] of a \"box\" occluder; nil defaults to [1, 1, 1], scaled by the object's transform. When set, every axis must be positive. Only valid when Mode is \"box\"."
            },
            {
              "name": "DoubleSided",
              "anchor": "OccluderDoc.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided rasterizes both front and back faces of a \"model\" occluder when true."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveCenter",
              "anchor": "OccluderDoc.EffectiveCenter",
              "recv": "*OccluderDoc",
              "decl": "func (o *OccluderDoc) EffectiveCenter() [3]float32",
              "doc": "EffectiveCenter returns Center, defaulting to [0, 0, 0] when nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 653
            },
            {
              "name": "EffectiveSize",
              "anchor": "OccluderDoc.EffectiveSize",
              "recv": "*OccluderDoc",
              "decl": "func (o *OccluderDoc) EffectiveSize() [3]float32",
              "doc": "EffectiveSize returns Size, defaulting to [1, 1, 1] when nil or all zero.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 661
            },
            {
              "name": "LocalBounds",
              "anchor": "OccluderDoc.LocalBounds",
              "recv": "*OccluderDoc",
              "decl": "func (o *OccluderDoc) LocalBounds() (lo, hi [3]float32)",
              "doc": "LocalBounds returns the local-space min and max corners of a \"box\" occluder.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 669
            }
          ]
        },
        {
          "name": "OccluderMode",
          "anchor": "OccluderMode",
          "decl": "type OccluderMode string",
          "doc": "OccluderMode selects the geometry a 3D object contributes to a render3d.OcclusionBuffer (OccluderDoc.Mode).\n",
          "file": "pkg/sceneformat/format.go",
          "line": 631,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OccluderModel",
                  "anchor": "OccluderModel"
                },
                {
                  "name": "OccluderBox",
                  "anchor": "OccluderBox"
                }
              ],
              "decl": "const (\n\t// OccluderModel uses the object's own 3D geometry (Mesh primitive or glTF Model) as an occluder.\n\tOccluderModel OccluderMode = \"model\"\n\t// OccluderBox uses an explicit local-space solid box (Center, Size) transformed by the object's world matrix as an occluder.\n\tOccluderBox OccluderMode = \"box\"\n)",
              "doc": "",
              "file": "pkg/sceneformat/format.go",
              "line": 633
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ParseOptions",
          "anchor": "ParseOptions",
          "decl": "type ParseOptions struct {\n\t// File names the source in errors, such as \"scenes/level1.scene.yaml\": the File of a *ComponentError or of a *loaderr.Error. Empty leaves it unnamed.\n\tFile string\n\t// Components, when non-nil, checks every object's components against the registered types: an unregistered type, a misspelled or unknown field, a value of the wrong kind or out of range fails the load with a *ComponentError carrying File, Line and Column. It also checks the scene's connections, unless the scene instances or inherits other scene files whose objects they may name: an event or handler no component of its object declares, and an argument the handler has no param for or of the wrong kind or out of range, fail the load with a *ConnectionError carrying File, Line and Column.\n\tComponents *ComponentRegistry\n\t// PhysicsLayers, when non-nil, validates every named collision layer and mask in built-in physics components (collider2d, trigger2d, collider3d, trigger3d) against the table. An unknown or misspelled layer name fails the load with a *loaderr.Error carrying File and 1-based Line and Column.\n\tPhysicsLayers *PhysicsLayerTable\n}",
          "doc": "ParseOptions configures ParseWith.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 767,
          "members": [
            {
              "name": "File",
              "anchor": "ParseOptions.File",
              "kind": "field",
              "doc": "File names the source in errors, such as \"scenes/level1.scene.yaml\": the File of a *ComponentError or of a *loaderr.Error. Empty leaves it unnamed."
            },
            {
              "name": "Components",
              "anchor": "ParseOptions.Components",
              "kind": "field",
              "doc": "Components, when non-nil, checks every object's components against the registered types: an unregistered type, a misspelled or unknown field, a value of the wrong kind or out of range fails the load with a *ComponentError carrying File, Line and Column. It also checks the scene's connections, unless the scene instances or inherits other scene files whose objects they may name: an event or handler no component of its object declares, and an argument the handler has no param for or of the wrong kind or out of range, fail the load with a *ConnectionError carrying File, Line and Column."
            },
            {
              "name": "PhysicsLayers",
              "anchor": "ParseOptions.PhysicsLayers",
              "kind": "field",
              "doc": "PhysicsLayers, when non-nil, validates every named collision layer and mask in built-in physics components (collider2d, trigger2d, collider3d, trigger3d) against the table. An unknown or misspelled layer name fails the load with a *loaderr.Error carrying File and 1-based Line and Column."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ParticlesRef",
          "anchor": "ParticlesRef",
          "decl": "type ParticlesRef struct {\n\t// File is the slash-separated path from the project root to a particle emitter YAML file, such as \"fx/fire.particles.yaml\".\n\tFile string `yaml:\"file\" schema:\"required,minLength=1\"`\n\t// Atlas optionally names the sprite.Atlas an AssetResolver looks up to resolve the emitter's frameNames.\n\tAtlas string `yaml:\"atlas,omitempty\"`\n}",
          "doc": "ParticlesRef binds an object to a versioned 2D particle emitter YAML file (particles.Config) and an optional sprite atlas for its frameNames.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 680,
          "members": [
            {
              "name": "File",
              "anchor": "ParticlesRef.File",
              "kind": "field",
              "doc": "File is the slash-separated path from the project root to a particle emitter YAML file, such as \"fx/fire.particles.yaml\"."
            },
            {
              "name": "Atlas",
              "anchor": "ParticlesRef.Atlas",
              "kind": "field",
              "doc": "Atlas optionally names the sprite.Atlas an AssetResolver looks up to resolve the emitter's frameNames."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ParticlesResolver",
          "anchor": "ParticlesResolver",
          "decl": "type ParticlesResolver interface {\n\tParticles(path string) (particles.Config, error)\n}",
          "doc": "ParticlesResolver may optionally be implemented by an AssetResolver to load particle emitter definitions named by ObjectDoc.Particles. When not implemented, Build reads the file through FileResolver (such as FSAssets) and decodes it with particles.UnmarshalConfigYAML.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 52,
          "members": [
            {
              "name": "Particles",
              "anchor": "ParticlesResolver.Particles",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PhysicsDebugShape2D",
          "anchor": "PhysicsDebugShape2D",
          "decl": "type PhysicsDebugShape2D struct {\n\tShape     physics.Shape\n\tAngle     float32\n\tIsTrigger bool\n\tBodyKind  string // \"static\", \"kinematic\", \"dynamic\", or \"\" for trigger-only\n}",
          "doc": "PhysicsDebugShape2D describes a 2D collider or trigger outline extracted from an ObjectDoc for editor debug drawing.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 1872,
          "members": [
            {
              "name": "Shape",
              "anchor": "PhysicsDebugShape2D.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Angle",
              "anchor": "PhysicsDebugShape2D.Angle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsTrigger",
              "anchor": "PhysicsDebugShape2D.IsTrigger",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyKind",
              "anchor": "PhysicsDebugShape2D.BodyKind",
              "kind": "field",
              "doc": "\"static\", \"kinematic\", \"dynamic\", or \"\" for trigger-only"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ExtractPhysicsDebug2D",
              "anchor": "ExtractPhysicsDebug2D",
              "decl": "func ExtractPhysicsDebug2D(o *ObjectDoc, world *math2d.Affine) []PhysicsDebugShape2D",
              "doc": "ExtractPhysicsDebug2D extracts any 2D collider and trigger shapes from o at its current transform for debug drawing.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 1889
            }
          ],
          "methods": []
        },
        {
          "name": "PhysicsDebugShape3D",
          "anchor": "PhysicsDebugShape3D",
          "decl": "type PhysicsDebugShape3D struct {\n\tShape       physics3d.Shape\n\tTriMesh     *physics3d.TriMeshCollider\n\tHeightfield *physics3d.HeightfieldCollider\n\tIsTrigger   bool\n\tBodyKind    string\n}",
          "doc": "PhysicsDebugShape3D describes a 3D collider or trigger wireframe extracted from an ObjectDoc for editor debug drawing.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 1880,
          "members": [
            {
              "name": "Shape",
              "anchor": "PhysicsDebugShape3D.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriMesh",
              "anchor": "PhysicsDebugShape3D.TriMesh",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Heightfield",
              "anchor": "PhysicsDebugShape3D.Heightfield",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IsTrigger",
              "anchor": "PhysicsDebugShape3D.IsTrigger",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyKind",
              "anchor": "PhysicsDebugShape3D.BodyKind",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ExtractPhysicsDebug3D",
              "anchor": "ExtractPhysicsDebug3D",
              "decl": "func ExtractPhysicsDebug3D(o *ObjectDoc) []PhysicsDebugShape3D",
              "doc": "ExtractPhysicsDebug3D extracts any 3D collider and trigger shapes from o using its local transform.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 1943
            },
            {
              "name": "ExtractPhysicsDebug3DAt",
              "anchor": "ExtractPhysicsDebug3DAt",
              "decl": "func ExtractPhysicsDebug3DAt(o *ObjectDoc, world math3d.Transform) []PhysicsDebugShape3D",
              "doc": "ExtractPhysicsDebug3DAt extracts any 3D collider and trigger shapes from o at the given composed world transform.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 1951
            },
            {
              "name": "ExtractPhysicsDebug3DAtWithResolver",
              "anchor": "ExtractPhysicsDebug3DAtWithResolver",
              "decl": "func ExtractPhysicsDebug3DAtWithResolver(o *ObjectDoc, world math3d.Transform, resolver AssetResolver) []PhysicsDebugShape3D",
              "doc": "ExtractPhysicsDebug3DAtWithResolver extracts any 3D collider and trigger shapes from o at the given composed world transform,\nusing resolver (when non-nil) to load glTF models for convex/trimesh colliders and terrains for heightfield colliders.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 1957
            }
          ],
          "methods": []
        },
        {
          "name": "PhysicsLayerDef",
          "anchor": "PhysicsLayerDef",
          "decl": "type PhysicsLayerDef struct {\n\tName string\n\tBit  int\n}",
          "doc": "PhysicsLayerDef maps one human-readable collision layer name to a bit index in [0, 31].\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 278,
          "members": [
            {
              "name": "Name",
              "anchor": "PhysicsLayerDef.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bit",
              "anchor": "PhysicsLayerDef.Bit",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PhysicsLayerTable",
          "anchor": "PhysicsLayerTable",
          "decl": "type PhysicsLayerTable struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PhysicsLayerTable resolves human-readable collision layer names (such as \"player\", \"walls\", \"coins\")\nto 32-bit layer bitmasks used by physics and physics3d.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 285,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "MustPhysicsLayerTable",
              "anchor": "MustPhysicsLayerTable",
              "decl": "func MustPhysicsLayerTable(defs []PhysicsLayerDef) *PhysicsLayerTable",
              "doc": "MustPhysicsLayerTable is NewPhysicsLayerTable for tests and setup code; it panics on error.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 318
            },
            {
              "name": "NewPhysicsLayerTable",
              "anchor": "NewPhysicsLayerTable",
              "decl": "func NewPhysicsLayerTable(defs []PhysicsLayerDef) (*PhysicsLayerTable, error)",
              "doc": "NewPhysicsLayerTable builds a validated collision layer table from defs.\nIt refuses empty names, duplicate names, bits outside [0, 31], and duplicate bit indices.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 292
            }
          ],
          "methods": [
            {
              "name": "Bit",
              "anchor": "PhysicsLayerTable.Bit",
              "recv": "*PhysicsLayerTable",
              "decl": "func (t *PhysicsLayerTable) Bit(name string) (uint, bool)",
              "doc": "Bit returns the bit index in [0, 31] assigned to name and whether name is declared.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 327
            },
            {
              "name": "Mask2D",
              "anchor": "PhysicsLayerTable.Mask2D",
              "recv": "*PhysicsLayerTable",
              "decl": "func (t *PhysicsLayerTable) Mask2D(names ...string) (physics.LayerMask, error)",
              "doc": "Mask2D resolves names into a 2D physics.LayerMask. Empty names returns 0 (which defaults to LayerAll).\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 351
            },
            {
              "name": "Mask3D",
              "anchor": "PhysicsLayerTable.Mask3D",
              "recv": "*PhysicsLayerTable",
              "decl": "func (t *PhysicsLayerTable) Mask3D(names ...string) (physics3d.LayerMask, error)",
              "doc": "Mask3D resolves names into a 3D physics3d.LayerMask. Empty names returns 0 (which defaults to LayerAll).\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 367
            },
            {
              "name": "Names",
              "anchor": "PhysicsLayerTable.Names",
              "recv": "*PhysicsLayerTable",
              "decl": "func (t *PhysicsLayerTable) Names() []string",
              "doc": "Names returns all declared layer names in ascending order.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 336
            }
          ]
        },
        {
          "name": "PhysicsMaterialResolver",
          "anchor": "PhysicsMaterialResolver",
          "decl": "type PhysicsMaterialResolver interface {\n\tPhysicsMaterial(path string) (*resource.PhysicsMaterial, error)\n}",
          "doc": "PhysicsMaterialResolver may optionally be implemented by an AssetResolver (such as *resource.Library)\nto load shared .physics.yaml materials named by body2d.material and body3d.material / body3d.physicsMaterial.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 43,
          "members": [
            {
              "name": "PhysicsMaterial",
              "anchor": "PhysicsMaterialResolver.PhysicsMaterial",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PhysicsScene",
          "anchor": "PhysicsScene",
          "decl": "type PhysicsScene struct {\n\t// Scene is the BuiltScene this PhysicsScene drives.\n\tScene *BuiltScene\n\t// World2D holds all 2D bodies (dynamic mirrors, kinematic, static) and 2D triggers for queries and trigger callbacks.\n\tWorld2D *physics.World\n\t// Rigid2D simulates 2D dynamic and static rigid bodies with impulses, friction, and restitution.\n\tRigid2D *physics.RigidWorld\n\t// World3D simulates 3D static, kinematic, dynamic bodies, and 3D triggers.\n\tWorld3D *physics3d.World\n\n\t// Bodies2D maps object IDs to their 2D query/kinematic Body.\n\tBodies2D map[string]*physics.Body\n\t// RigidBodies2D maps object IDs to their 2D RigidBody.\n\tRigidBodies2D map[string]*physics.RigidBody\n\t// Triggers2D maps object IDs to their 2D Trigger.\n\tTriggers2D map[string]*physics.Trigger\n\t// Bodies3D maps object IDs to their 3D Body (including 3D triggers with IsTrigger == true).\n\tBodies3D map[string]*physics3d.Body\n\t// TriMeshes3D maps object IDs to their static 3D triangle-mesh colliders.\n\tTriMeshes3D map[string]*physics3d.TriMeshCollider\n\t// Heightfields3D maps object IDs to their static 3D terrain heightfield colliders.\n\tHeightfields3D map[string]*physics3d.HeightfieldCollider\n\n\t// OnTrigger is called deterministically for every 2D and 3D trigger enter/stay/exit transition during Step.\n\tOnTrigger func(PhysicsTriggerEvent)\n\t// Signals, when non-nil, receives enter/stay/exit events emitted from trigger objects during Step.\n\tSignals *Signals\n\t// contains filtered or unexported fields\n}",
          "doc": "PhysicsScene holds the 2D and 3D physics worlds constructed from a BuiltScene's built-in physics components.\nCalling Step advances 2D rigid bodies, 2D kinematic bodies, 2D triggers, and 3D bodies/triggers deterministically,\nsynchronizing simulated transforms back into the BuiltScene's objects so sprites and 3D wireframes move live.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 682,
          "members": [
            {
              "name": "Scene",
              "anchor": "PhysicsScene.Scene",
              "kind": "field",
              "doc": "Scene is the BuiltScene this PhysicsScene drives."
            },
            {
              "name": "World2D",
              "anchor": "PhysicsScene.World2D",
              "kind": "field",
              "doc": "World2D holds all 2D bodies (dynamic mirrors, kinematic, static) and 2D triggers for queries and trigger callbacks."
            },
            {
              "name": "Rigid2D",
              "anchor": "PhysicsScene.Rigid2D",
              "kind": "field",
              "doc": "Rigid2D simulates 2D dynamic and static rigid bodies with impulses, friction, and restitution."
            },
            {
              "name": "World3D",
              "anchor": "PhysicsScene.World3D",
              "kind": "field",
              "doc": "World3D simulates 3D static, kinematic, dynamic bodies, and 3D triggers."
            },
            {
              "name": "Bodies2D",
              "anchor": "PhysicsScene.Bodies2D",
              "kind": "field",
              "doc": "Bodies2D maps object IDs to their 2D query/kinematic Body."
            },
            {
              "name": "RigidBodies2D",
              "anchor": "PhysicsScene.RigidBodies2D",
              "kind": "field",
              "doc": "RigidBodies2D maps object IDs to their 2D RigidBody."
            },
            {
              "name": "Triggers2D",
              "anchor": "PhysicsScene.Triggers2D",
              "kind": "field",
              "doc": "Triggers2D maps object IDs to their 2D Trigger."
            },
            {
              "name": "Bodies3D",
              "anchor": "PhysicsScene.Bodies3D",
              "kind": "field",
              "doc": "Bodies3D maps object IDs to their 3D Body (including 3D triggers with IsTrigger == true)."
            },
            {
              "name": "TriMeshes3D",
              "anchor": "PhysicsScene.TriMeshes3D",
              "kind": "field",
              "doc": "TriMeshes3D maps object IDs to their static 3D triangle-mesh colliders."
            },
            {
              "name": "Heightfields3D",
              "anchor": "PhysicsScene.Heightfields3D",
              "kind": "field",
              "doc": "Heightfields3D maps object IDs to their static 3D terrain heightfield colliders."
            },
            {
              "name": "OnTrigger",
              "anchor": "PhysicsScene.OnTrigger",
              "kind": "field",
              "doc": "OnTrigger is called deterministically for every 2D and 3D trigger enter/stay/exit transition during Step."
            },
            {
              "name": "Signals",
              "anchor": "PhysicsScene.Signals",
              "kind": "field",
              "doc": "Signals, when non-nil, receives enter/stay/exit events emitted from trigger objects during Step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildPhysics",
              "anchor": "BuildPhysics",
              "decl": "func BuildPhysics(scene *BuiltScene, settings *PhysicsSettings, resolver AssetResolver) (*PhysicsScene, error)",
              "doc": "BuildPhysics constructs 2D and 3D physics worlds from scene's built-in physics components\n(body2d, collider2d, trigger2d, body3d, collider3d, trigger3d).\nsettings may be nil (using default gravity, default solver iterations, and no named layers).\nresolver may be nil unless a body component specifies a shared .physics.yaml material path.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 737
            }
          ],
          "methods": [
            {
              "name": "HasPhysics",
              "anchor": "PhysicsScene.HasPhysics",
              "recv": "*PhysicsScene",
              "decl": "func (ps *PhysicsScene) HasPhysics() bool",
              "doc": "HasPhysics reports whether ps contains at least one 2D or 3D body, collider, or trigger.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 718
            },
            {
              "name": "Step",
              "anchor": "PhysicsScene.Step",
              "recv": "*PhysicsScene",
              "decl": "func (ps *PhysicsScene) Step(dt time.Duration)",
              "doc": "Step advances the 2D and 3D physics simulations by dt, resolves collisions and triggers,\nand writes updated positions and rotations back onto the BuiltScene's objects.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 1505
            },
            {
              "name": "TriggerEvents",
              "anchor": "PhysicsScene.TriggerEvents",
              "recv": "*PhysicsScene",
              "decl": "func (ps *PhysicsScene) TriggerEvents() []PhysicsTriggerEvent",
              "doc": "TriggerEvents returns the trigger events produced by the most recent Step call.\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 726
            }
          ]
        },
        {
          "name": "PhysicsSettings",
          "anchor": "PhysicsSettings",
          "decl": "type PhysicsSettings struct {\n\t// HasGravity2D reports whether Gravity2D overrides the default (0, 0) 2D gravity.\n\tHasGravity2D bool\n\t// Gravity2D is the 2D gravity vector in points per second squared.\n\tGravity2D math2d.Vec2\n\t// HasGravity3D reports whether Gravity3D overrides physics3d's default (0, -9.81, 0) gravity.\n\tHasGravity3D bool\n\t// Gravity3D is the 3D gravity vector in units per second squared.\n\tGravity3D physics3d.Vec3\n\t// SolverIterations2D overrides RigidWorld.SolverIterations when positive.\n\tSolverIterations2D int\n\t// SolverIterations3D overrides physics3d.World.SolverIterations when positive.\n\tSolverIterations3D int\n\t// Layers maps named collision layers (from game.yaml physics.layers) to bit indices 0..31.\n\tLayers *PhysicsLayerTable\n}",
          "doc": "PhysicsSettings configures the 2D and 3D physics worlds constructed by BuildPhysics.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 608,
          "members": [
            {
              "name": "HasGravity2D",
              "anchor": "PhysicsSettings.HasGravity2D",
              "kind": "field",
              "doc": "HasGravity2D reports whether Gravity2D overrides the default (0, 0) 2D gravity."
            },
            {
              "name": "Gravity2D",
              "anchor": "PhysicsSettings.Gravity2D",
              "kind": "field",
              "doc": "Gravity2D is the 2D gravity vector in points per second squared."
            },
            {
              "name": "HasGravity3D",
              "anchor": "PhysicsSettings.HasGravity3D",
              "kind": "field",
              "doc": "HasGravity3D reports whether Gravity3D overrides physics3d's default (0, -9.81, 0) gravity."
            },
            {
              "name": "Gravity3D",
              "anchor": "PhysicsSettings.Gravity3D",
              "kind": "field",
              "doc": "Gravity3D is the 3D gravity vector in units per second squared."
            },
            {
              "name": "SolverIterations2D",
              "anchor": "PhysicsSettings.SolverIterations2D",
              "kind": "field",
              "doc": "SolverIterations2D overrides RigidWorld.SolverIterations when positive."
            },
            {
              "name": "SolverIterations3D",
              "anchor": "PhysicsSettings.SolverIterations3D",
              "kind": "field",
              "doc": "SolverIterations3D overrides physics3d.World.SolverIterations when positive."
            },
            {
              "name": "Layers",
              "anchor": "PhysicsSettings.Layers",
              "kind": "field",
              "doc": "Layers maps named collision layers (from game.yaml physics.layers) to bit indices 0..31."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PhysicsTriggerEvent",
          "anchor": "PhysicsTriggerEvent",
          "decl": "type PhysicsTriggerEvent struct {\n\tKind      PhysicsTriggerEventKind\n\tTriggerID string\n\tBodyID    string\n\tIs3D      bool\n}",
          "doc": "PhysicsTriggerEvent records one trigger overlap transition emitted during PhysicsScene.Step.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 652,
          "members": [
            {
              "name": "Kind",
              "anchor": "PhysicsTriggerEvent.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TriggerID",
              "anchor": "PhysicsTriggerEvent.TriggerID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyID",
              "anchor": "PhysicsTriggerEvent.BodyID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Is3D",
              "anchor": "PhysicsTriggerEvent.Is3D",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PhysicsTriggerEventKind",
          "anchor": "PhysicsTriggerEventKind",
          "decl": "type PhysicsTriggerEventKind int",
          "doc": "PhysicsTriggerEventKind identifies enter, stay, or exit transitions on built scene triggers.\n",
          "file": "pkg/sceneformat/physics.go",
          "line": 626,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TriggerEnter",
                  "anchor": "TriggerEnter"
                },
                {
                  "name": "TriggerStay",
                  "anchor": "TriggerStay"
                },
                {
                  "name": "TriggerExit",
                  "anchor": "TriggerExit"
                }
              ],
              "decl": "const (\n\t// TriggerEnter fires on the first step a matching body overlaps a trigger.\n\tTriggerEnter PhysicsTriggerEventKind = iota\n\t// TriggerStay fires on each subsequent step the body remains overlapping.\n\tTriggerStay\n\t// TriggerExit fires on the first step the body stops overlapping.\n\tTriggerExit\n)",
              "doc": "",
              "file": "pkg/sceneformat/physics.go",
              "line": 628
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "PhysicsTriggerEventKind.String",
              "recv": "PhysicsTriggerEventKind",
              "decl": "func (k PhysicsTriggerEventKind) String() string",
              "doc": "String returns \"enter\", \"stay\", or \"exit\".\n",
              "file": "pkg/sceneformat/physics.go",
              "line": 638
            }
          ]
        },
        {
          "name": "Point",
          "anchor": "Point",
          "decl": "type Point struct {\n\t// X is the horizontal coordinate in object-local space.\n\tX float64 `yaml:\"x\"`\n\t// Y is the vertical coordinate in object-local space.\n\tY float64 `yaml:\"y\"`\n}",
          "doc": "Point is a 2D point in an object's local coordinate space, used by FieldPoint and FieldPolygon component fields.\n",
          "file": "pkg/sceneformat/shapes.go",
          "line": 9,
          "members": [
            {
              "name": "X",
              "anchor": "Point.X",
              "kind": "field",
              "doc": "X is the horizontal coordinate in object-local space."
            },
            {
              "name": "Y",
              "anchor": "Point.Y",
              "kind": "field",
              "doc": "Y is the vertical coordinate in object-local space."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParsePoint",
              "anchor": "ParsePoint",
              "decl": "func ParsePoint(v any) (Point, error)",
              "doc": "ParsePoint converts a component field value (Point or decoded YAML map) to a validated Point.\n",
              "file": "pkg/sceneformat/shapes.go",
              "line": 271
            },
            {
              "name": "ParsePolygon",
              "anchor": "ParsePolygon",
              "decl": "func ParsePolygon(v any) ([]Point, error)",
              "doc": "ParsePolygon converts a component field value ([]Point or decoded YAML sequence of maps) to a validated []Point.\n",
              "file": "pkg/sceneformat/shapes.go",
              "line": 298
            }
          ],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Point.MarshalYAML",
              "recv": "Point",
              "decl": "func (p Point) MarshalYAML() (any, error)",
              "doc": "MarshalYAML encodes Point with deterministic key order matching YAML map decoding (\"x\", \"y\").\n",
              "file": "pkg/sceneformat/shapes.go",
              "line": 17
            }
          ]
        },
        {
          "name": "ProjectionKind",
          "anchor": "ProjectionKind",
          "decl": "type ProjectionKind string",
          "doc": "ProjectionKind selects a 3D camera's projection (Camera3DDoc.Projection).\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 78,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ProjectionPerspective",
                  "anchor": "ProjectionPerspective"
                },
                {
                  "name": "ProjectionOrthographic",
                  "anchor": "ProjectionOrthographic"
                }
              ],
              "decl": "const (\n\t// ProjectionPerspective projects a perspective view frustum.\n\tProjectionPerspective ProjectionKind = \"perspective\"\n\t// ProjectionOrthographic projects a parallel orthographic view volume.\n\tProjectionOrthographic ProjectionKind = \"orthographic\"\n)",
              "doc": "",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 80
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Rect",
          "anchor": "Rect",
          "decl": "type Rect struct {\n\t// X is the left edge coordinate in object-local space.\n\tX float64 `yaml:\"x\"`\n\t// Y is the top edge coordinate in object-local space.\n\tY float64 `yaml:\"y\"`\n\t// Width is the horizontal extent in object-local space (non-negative).\n\tWidth float64 `yaml:\"width\" schema:\"minimum=0\"`\n\t// Height is the vertical extent in object-local space (non-negative).\n\tHeight float64 `yaml:\"height\" schema:\"minimum=0\"`\n}",
          "doc": "Rect is an axis-aligned 2D rectangle in an object's local coordinate space, used by FieldRect component fields.\n",
          "file": "pkg/sceneformat/shapes.go",
          "line": 25,
          "members": [
            {
              "name": "X",
              "anchor": "Rect.X",
              "kind": "field",
              "doc": "X is the left edge coordinate in object-local space."
            },
            {
              "name": "Y",
              "anchor": "Rect.Y",
              "kind": "field",
              "doc": "Y is the top edge coordinate in object-local space."
            },
            {
              "name": "Width",
              "anchor": "Rect.Width",
              "kind": "field",
              "doc": "Width is the horizontal extent in object-local space (non-negative)."
            },
            {
              "name": "Height",
              "anchor": "Rect.Height",
              "kind": "field",
              "doc": "Height is the vertical extent in object-local space (non-negative)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseRect",
              "anchor": "ParseRect",
              "decl": "func ParseRect(v any) (Rect, error)",
              "doc": "ParseRect converts a component field value (Rect or decoded YAML map) to a validated Rect.\n",
              "file": "pkg/sceneformat/shapes.go",
              "line": 280
            }
          ],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "Rect.MarshalYAML",
              "recv": "Rect",
              "decl": "func (r Rect) MarshalYAML() (any, error)",
              "doc": "MarshalYAML encodes Rect with deterministic alphabetical key order matching YAML map decoding (\"height\", \"width\", \"x\", \"y\").\n",
              "file": "pkg/sceneformat/shapes.go",
              "line": 37
            }
          ]
        },
        {
          "name": "ReflectionProbeDoc",
          "anchor": "ReflectionProbeDoc",
          "decl": "type ReflectionProbeDoc struct {\n\t// Center is the optional local-space center [x, y, z] of the influence box relative to the object's origin; nil centers it at [0, 0, 0].\n\tCenter *[3]float32 `yaml:\"center,omitempty,flow\"`\n\t// Size is the local-space [width, height, depth] extents of the influence box; nil defaults to [10, 10, 10]. When set, every axis must be finite and positive.\n\tSize *[3]float32 `yaml:\"size,omitempty,flow\"`\n\t// BlendDistance is the inward fade width in world units from the influence box faces; 0 gives a sharp boundary. Must be finite and non-negative.\n\tBlendDistance float32 `yaml:\"blendDistance,omitempty\" schema:\"minimum=0\"`\n\t// Intensity scales the probe's reflected radiance; nil defaults to 1. Must be finite and non-negative.\n\tIntensity *float32 `yaml:\"intensity,omitempty\" schema:\"minimum=0\"`\n\t// Priority breaks ties when reflection probes overlap; higher values take precedence.\n\tPriority int `yaml:\"priority,omitempty\"`\n\t// BoxProjection enables parallax-corrected ray-AABB reflection lookup when true; nil defaults to true.\n\tBoxProjection *bool `yaml:\"boxProjection,omitempty\"`\n\t// Resolution is the cubemap face edge length in texels used when baking; 0 defaults to 64. Must be in [0, 1024].\n\tResolution int `yaml:\"resolution,omitempty\" schema:\"minimum=0,maximum=1024\"`\n\t// Cubemap optionally names the baked cubemap image file by its slash-separated path from the project root, such as \"probes/room_refl.hdr\" (Radiance .hdr or .pic).\n\tCubemap string `yaml:\"cubemap,omitempty\"`\n}",
          "doc": "ReflectionProbeDoc configures a local 3D reflection probe attached to an object (ObjectDoc.ReflectionProbe).\nIts cubemap is captured at the object's 3D world position and blended across the axis-aligned influence box\ndefined by Center and Size in local space. Version 4.\n",
          "file": "pkg/sceneformat/probes.go",
          "line": 22,
          "members": [
            {
              "name": "Center",
              "anchor": "ReflectionProbeDoc.Center",
              "kind": "field",
              "doc": "Center is the optional local-space center [x, y, z] of the influence box relative to the object's origin; nil centers it at [0, 0, 0]."
            },
            {
              "name": "Size",
              "anchor": "ReflectionProbeDoc.Size",
              "kind": "field",
              "doc": "Size is the local-space [width, height, depth] extents of the influence box; nil defaults to [10, 10, 10]. When set, every axis must be finite and positive."
            },
            {
              "name": "BlendDistance",
              "anchor": "ReflectionProbeDoc.BlendDistance",
              "kind": "field",
              "doc": "BlendDistance is the inward fade width in world units from the influence box faces; 0 gives a sharp boundary. Must be finite and non-negative."
            },
            {
              "name": "Intensity",
              "anchor": "ReflectionProbeDoc.Intensity",
              "kind": "field",
              "doc": "Intensity scales the probe's reflected radiance; nil defaults to 1. Must be finite and non-negative."
            },
            {
              "name": "Priority",
              "anchor": "ReflectionProbeDoc.Priority",
              "kind": "field",
              "doc": "Priority breaks ties when reflection probes overlap; higher values take precedence."
            },
            {
              "name": "BoxProjection",
              "anchor": "ReflectionProbeDoc.BoxProjection",
              "kind": "field",
              "doc": "BoxProjection enables parallax-corrected ray-AABB reflection lookup when true; nil defaults to true."
            },
            {
              "name": "Resolution",
              "anchor": "ReflectionProbeDoc.Resolution",
              "kind": "field",
              "doc": "Resolution is the cubemap face edge length in texels used when baking; 0 defaults to 64. Must be in [0, 1024]."
            },
            {
              "name": "Cubemap",
              "anchor": "ReflectionProbeDoc.Cubemap",
              "kind": "field",
              "doc": "Cubemap optionally names the baked cubemap image file by its slash-separated path from the project root, such as \"probes/room_refl.hdr\" (Radiance .hdr or .pic)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "ReflectionProbeDoc.Clone",
              "recv": "*ReflectionProbeDoc",
              "decl": "func (p *ReflectionProbeDoc) Clone() *ReflectionProbeDoc",
              "doc": "Clone returns a deep copy of p, or nil when p is nil.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 93
            },
            {
              "name": "EffectiveBoxProjection",
              "anchor": "ReflectionProbeDoc.EffectiveBoxProjection",
              "recv": "*ReflectionProbeDoc",
              "decl": "func (p *ReflectionProbeDoc) EffectiveBoxProjection() bool",
              "doc": "EffectiveBoxProjection reports whether parallax-corrected box projection is enabled, defaulting to true when nil.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 77
            },
            {
              "name": "EffectiveCenter",
              "anchor": "ReflectionProbeDoc.EffectiveCenter",
              "recv": "*ReflectionProbeDoc",
              "decl": "func (p *ReflectionProbeDoc) EffectiveCenter() [3]float32",
              "doc": "EffectiveCenter returns p.Center, defaulting to [0, 0, 0] when nil.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 42
            },
            {
              "name": "EffectiveIntensity",
              "anchor": "ReflectionProbeDoc.EffectiveIntensity",
              "recv": "*ReflectionProbeDoc",
              "decl": "func (p *ReflectionProbeDoc) EffectiveIntensity() float32",
              "doc": "EffectiveIntensity returns p.Intensity, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 69
            },
            {
              "name": "EffectiveResolution",
              "anchor": "ReflectionProbeDoc.EffectiveResolution",
              "recv": "*ReflectionProbeDoc",
              "decl": "func (p *ReflectionProbeDoc) EffectiveResolution() int",
              "doc": "EffectiveResolution returns p.Resolution, defaulting to DefaultReflectionProbeResolution (64) when 0.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 85
            },
            {
              "name": "EffectiveSize",
              "anchor": "ReflectionProbeDoc.EffectiveSize",
              "recv": "*ReflectionProbeDoc",
              "decl": "func (p *ReflectionProbeDoc) EffectiveSize() [3]float32",
              "doc": "EffectiveSize returns p.Size, defaulting to [10, 10, 10] when nil or all zero.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 50
            },
            {
              "name": "LocalBounds",
              "anchor": "ReflectionProbeDoc.LocalBounds",
              "recv": "*ReflectionProbeDoc",
              "decl": "func (p *ReflectionProbeDoc) LocalBounds() (lo, hi [3]float32)",
              "doc": "LocalBounds returns the local-space min and max corners of the probe's influence box.\n",
              "file": "pkg/sceneformat/probes.go",
              "line": 58
            }
          ]
        },
        {
          "name": "SceneDoc",
          "anchor": "SceneDoc",
          "decl": "type SceneDoc struct {\n\t// Version is the schema version, from MinVersion to CurrentVersion. Encode writes it back as it is.\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// UID is the scene file's stable ID, which stays the same when the file is renamed or moved so the tools can find it again (see package refs); empty until a tool such as game index gives it one. When set it must be a UID as resource.NewUID returns it. Resolve keeps the UID of the scene it resolves, not its base's. Both versions accept it.\n\tUID string `yaml:\"uid,omitempty\"`\n\t// Inherits optionally names a base scene file by its slash-separated path from the project root, such as \"scenes/enemy.scene.yaml\". The scene then starts as a copy of its base and changes only what it declares: its own scalar fields, camera and tilemaps replace the base's when set, its Overrides and LayerOverrides change inherited objects and layers, and its Layers add objects to the base's layers of the same name or add new layers after them. Resolve applies it. Version 2.\n\tInherits string `yaml:\"inherits,omitempty\"`\n\t// Name is the scene's human-readable name.\n\tName string `yaml:\"name,omitempty\"`\n\t// NavMesh optionally names the scene's baked navigation mesh file by its slash-separated path from the project root, such as \"levels/level1.navmesh.yaml\": a navbake3d file with one mesh per agent type, which the game navmesh command writes from the scene's geometry. In a scene that inherits another, a NavMesh set replaces the base's. Both versions accept it.\n\tNavMesh string `yaml:\"navMesh,omitempty\"`\n\t// VirtualWidth and VirtualHeight are the scene's virtual viewport size in points. Both must be 0 or both positive.\n\tVirtualWidth  float32 `yaml:\"virtualWidth,omitempty\" schema:\"minimum=0\"`\n\tVirtualHeight float32 `yaml:\"virtualHeight,omitempty\" schema:\"minimum=0\"`\n\t// BackgroundColor is an optional CSS color string parsed with core.ParseColor.\n\tBackgroundColor string `yaml:\"backgroundColor,omitempty\"`\n\t// AmbientColor is an optional CSS color string parsed with core.ParseColor (for example \"rgba(12, 16, 30, 0.85)\" or \"#0c101ed8\") that sets the 2D lighting ambient darkness tint (lights2d.Scene.Ambient). Both versions accept it.\n\tAmbientColor string `yaml:\"ambientColor,omitempty\"`\n\t// Camera holds the default camera transform for world-space layers. Nil leaves world space untransformed.\n\tCamera *CameraDoc `yaml:\"camera,omitempty\"`\n\t// Environment holds 3D sky, ambient/IBL lighting, fog, tone mapping and exposure settings. Version 4.\n\tEnvironment *EnvironmentDoc `yaml:\"environment,omitempty\"`\n\t// Tilemaps defines reusable named tilemaps referenced by layers via TilemapDoc.Ref.\n\tTilemaps map[string]*TilemapDoc `yaml:\"tilemaps,omitempty\"`\n\t// LayerOverrides changes the inherited layers named by its keys; it requires Inherits. Version 2.\n\tLayerOverrides map[string]LayerOverride `yaml:\"layerOverrides,omitempty\"`\n\t// Overrides changes the inherited objects whose IDs are its keys, nested children and the objects of instanced scenes (such as \"enemy_1/body\") included; it requires Inherits. Version 2.\n\tOverrides map[string]ObjectOverride `yaml:\"overrides,omitempty\"`\n\t// Layers are the scene's layers, drawn lowest Order first and in slice order for equal Order. In a scene that inherits another, a layer named like one of the base's adds its objects to that layer and may set nothing else (LayerOverrides changes the layer itself), and any other layer is added after the base's layers.\n\tLayers []LayerDoc `yaml:\"layers,omitempty\"`\n\t// Connections connect events of the scene's objects to handlers of its objects, as Godot's connections in a .tscn file do, so a button can open a door with no Go code that wires the two. Connect binds them to the handlers a ComponentRegistry declares, and Resolve carries the connections of instanced and inherited scenes into the scene that uses them.\n\tConnections []ConnectionDoc `yaml:\"connections,omitempty\"`\n}",
          "doc": "SceneDoc is the root of a versioned YAML scene document.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 79,
          "members": [
            {
              "name": "Version",
              "anchor": "SceneDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version, from MinVersion to CurrentVersion. Encode writes it back as it is."
            },
            {
              "name": "UID",
              "anchor": "SceneDoc.UID",
              "kind": "field",
              "doc": "UID is the scene file's stable ID, which stays the same when the file is renamed or moved so the tools can find it again (see package refs); empty until a tool such as game index gives it one. When set it must be a UID as resource.NewUID returns it. Resolve keeps the UID of the scene it resolves, not its base's. Both versions accept it."
            },
            {
              "name": "Inherits",
              "anchor": "SceneDoc.Inherits",
              "kind": "field",
              "doc": "Inherits optionally names a base scene file by its slash-separated path from the project root, such as \"scenes/enemy.scene.yaml\". The scene then starts as a copy of its base and changes only what it declares: its own scalar fields, camera and tilemaps replace the base's when set, its Overrides and LayerOverrides change inherited objects and layers, and its Layers add objects to the base's layers of the same name or add new layers after them. Resolve applies it. Version 2."
            },
            {
              "name": "Name",
              "anchor": "SceneDoc.Name",
              "kind": "field",
              "doc": "Name is the scene's human-readable name."
            },
            {
              "name": "NavMesh",
              "anchor": "SceneDoc.NavMesh",
              "kind": "field",
              "doc": "NavMesh optionally names the scene's baked navigation mesh file by its slash-separated path from the project root, such as \"levels/level1.navmesh.yaml\": a navbake3d file with one mesh per agent type, which the game navmesh command writes from the scene's geometry. In a scene that inherits another, a NavMesh set replaces the base's. Both versions accept it."
            },
            {
              "name": "VirtualWidth",
              "anchor": "SceneDoc.VirtualWidth",
              "kind": "field",
              "doc": "VirtualWidth and VirtualHeight are the scene's virtual viewport size in points. Both must be 0 or both positive."
            },
            {
              "name": "VirtualHeight",
              "anchor": "SceneDoc.VirtualHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BackgroundColor",
              "anchor": "SceneDoc.BackgroundColor",
              "kind": "field",
              "doc": "BackgroundColor is an optional CSS color string parsed with core.ParseColor."
            },
            {
              "name": "AmbientColor",
              "anchor": "SceneDoc.AmbientColor",
              "kind": "field",
              "doc": "AmbientColor is an optional CSS color string parsed with core.ParseColor (for example \"rgba(12, 16, 30, 0.85)\" or \"#0c101ed8\") that sets the 2D lighting ambient darkness tint (lights2d.Scene.Ambient). Both versions accept it."
            },
            {
              "name": "Camera",
              "anchor": "SceneDoc.Camera",
              "kind": "field",
              "doc": "Camera holds the default camera transform for world-space layers. Nil leaves world space untransformed."
            },
            {
              "name": "Environment",
              "anchor": "SceneDoc.Environment",
              "kind": "field",
              "doc": "Environment holds 3D sky, ambient/IBL lighting, fog, tone mapping and exposure settings. Version 4."
            },
            {
              "name": "Tilemaps",
              "anchor": "SceneDoc.Tilemaps",
              "kind": "field",
              "doc": "Tilemaps defines reusable named tilemaps referenced by layers via TilemapDoc.Ref."
            },
            {
              "name": "LayerOverrides",
              "anchor": "SceneDoc.LayerOverrides",
              "kind": "field",
              "doc": "LayerOverrides changes the inherited layers named by its keys; it requires Inherits. Version 2."
            },
            {
              "name": "Overrides",
              "anchor": "SceneDoc.Overrides",
              "kind": "field",
              "doc": "Overrides changes the inherited objects whose IDs are its keys, nested children and the objects of instanced scenes (such as \"enemy_1/body\") included; it requires Inherits. Version 2."
            },
            {
              "name": "Layers",
              "anchor": "SceneDoc.Layers",
              "kind": "field",
              "doc": "Layers are the scene's layers, drawn lowest Order first and in slice order for equal Order. In a scene that inherits another, a layer named like one of the base's adds its objects to that layer and may set nothing else (LayerOverrides changes the layer itself), and any other layer is added after the base's layers."
            },
            {
              "name": "Connections",
              "anchor": "SceneDoc.Connections",
              "kind": "field",
              "doc": "Connections connect events of the scene's objects to handlers of its objects, as Godot's connections in a .tscn file do, so a button can open a door with no Go code that wires the two. Connect binds them to the handlers a ComponentRegistry declares, and Resolve carries the connections of instanced and inherited scenes into the scene that uses them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*SceneDoc, error)",
              "doc": "Parse decodes a YAML scene document and validates it. Unknown YAML fields and trailing YAML documents are rejected. Component payloads are not checked against any registry; use ParseWith to check them.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it, and wrap the *FieldError Validate returned for a document that decodes but breaks the schema; a caller that read data from a file names it with loaderr.WithFile, or with ParseOptions.File.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 762
            },
            {
              "name": "ParseWith",
              "anchor": "ParseWith",
              "decl": "func ParseWith(data []byte, opts ParseOptions) (*SceneDoc, error)",
              "doc": "ParseWith is Parse with a source name for errors and an optional component registry. Defaults of unset component fields are not written into the document, so saving it again changes nothing; read them with ComponentRegistry.Resolve.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 777
            },
            {
              "name": "Resolve",
              "anchor": "Resolve",
              "decl": "func Resolve(doc *SceneDoc, scenes SceneResolver) (*SceneDoc, error)",
              "doc": "Resolve validates doc and returns a copy of it with every scene it instances or inherits loaded through scenes and merged in, so that the copy refers to no other scene file. An instance object gets the instanced scene's objects, with its overrides applied, as its first children, their IDs prefixed by its own ID and a slash (\"enemy_1/body\"). A scene that inherits another becomes a copy of its base with its own fields, overrides, layer overrides and layers applied, as SceneDoc.Inherits describes. Connections come along: an instanced scene's connections, with the objects they name prefixed like its objects' IDs, in the order the instances appear, then the scene's own; an inheriting scene keeps its base's connections and adds its own after them. Scenes referred to in turn are resolved the same way, each file loaded once per call.\n\nResolve refuses a cycle of scenes that instance or inherit each other, a chain deeper than MaxSceneNesting files, a result of more than MaxResolvedObjects objects, a scene file that fails to load or validate, an instanced scene with a tilemap, an override that names no object or layer of the scene it changes, a layer that extends a base layer and sets more than its objects, and a result that does not validate, such as one whose instanced IDs collide with others. It never modifies doc or the documents scenes returns, and scenes may be nil when doc refers to no other scene. The result has doc's version.\n",
              "file": "pkg/sceneformat/resolve.go",
              "line": 66
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "SceneDoc.Clone",
              "recv": "*SceneDoc",
              "decl": "func (doc *SceneDoc) Clone() *SceneDoc",
              "doc": "Clone returns a deep copy of doc: its camera, tilemaps, layers, objects, overrides, connections and maps are all new, so changing the copy never changes doc.\n",
              "file": "pkg/sceneformat/resolve.go",
              "line": 579
            },
            {
              "name": "RefersToScenes",
              "anchor": "SceneDoc.RefersToScenes",
              "recv": "*SceneDoc",
              "decl": "func (doc *SceneDoc) RefersToScenes() bool",
              "doc": "RefersToScenes reports whether doc instances or inherits another scene file, so that Resolve must load them before doc can be spawned (SpawnEntities) or built into 3D nodes (BuildNodes3D). Build resolves such a scene itself.\n",
              "file": "pkg/sceneformat/resolve.go",
              "line": 43
            }
          ]
        },
        {
          "name": "SceneResolver",
          "anchor": "SceneResolver",
          "decl": "type SceneResolver interface {\n\t// Scene returns the scene document at path, a slash-separated path from the project root. Resolve validates what it returns and never modifies it, so a resolver may return the same document for every request of one path.\n\tScene(path string) (*SceneDoc, error)\n}",
          "doc": "SceneResolver loads the scene files that a scene instances (ObjectDoc.Scene) or inherits (SceneDoc.Inherits). An AssetResolver passed to Build may implement it, and FSScenes reads scene files from a file system.\n",
          "file": "pkg/sceneformat/resolve.go",
          "line": 13,
          "members": [
            {
              "name": "Scene",
              "anchor": "SceneResolver.Scene",
              "kind": "method",
              "doc": "Scene returns the scene document at path, a slash-separated path from the project root. Resolve validates what it returns and never modifies it, so a resolver may return the same document for every request of one path."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Signals",
          "anchor": "Signals",
          "decl": "type Signals struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Signals dispatches the events a scene's objects emit to the handlers its connections name. Connect makes one, and SpawnConnected makes one whose events also address the entities the objects were spawned as. Emit runs the handlers at once; Enqueue holds the event until Flush, which a game calls once per update step so that events raised during the step run after it, in the order they were raised. It is not safe for concurrent use: emit from the goroutine that runs the game's update.\n",
          "file": "pkg/sceneformat/connections.go",
          "line": 138,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Connect",
              "anchor": "Connect",
              "decl": "func Connect(doc *SceneDoc, reg *ComponentRegistry, ctx any) (*Signals, error)",
              "doc": "Connect checks doc's components and connections against reg and returns the Signals that run them; ctx is passed to every handler as Call.Context. doc must be valid, must not instance or inherit other scene files (pass it through Resolve first, or use BuiltScene.Doc), and every connected handler must have a Func. Calls point into doc, so handlers see and may change its objects. The Signals is a snapshot of doc's objects as Connect finds them: after adding or removing objects in doc, which may also move the others in memory, call Connect again, since the old Signals would hand handlers stale objects and refuse events of the new ones.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 183
            },
            {
              "name": "SpawnConnected",
              "anchor": "SpawnConnected",
              "decl": "func SpawnConnected(doc *SceneDoc, w *entities.World, reg *ComponentRegistry, ctx any) (map[string]entities.Entity, *Signals, error)",
              "doc": "SpawnConnected checks doc as Connect does and spawns its objects into w as SpawnEntities does, and returns each object ID's entity and the Signals that runs doc's connections between those entities: EmitEntity and EnqueueEntity address an object by its entity, and every Call carries the entities at both ends. doc must be valid and refer to no other scene file (pass it through Resolve first, or use BuiltScene.Doc). Every check runs before the first entity is spawned, so a scene whose connections name a missing object, event, handler or Func, or whose components break their registered types, spawns nothing.\n\nOnce an entity is destroyed, its object emits nothing: Emit, Enqueue and their entity forms refuse it, Flush drops the events it enqueued before, and the connections to it are skipped, a once connection staying connected.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 221
            }
          ],
          "methods": [
            {
              "name": "Emit",
              "anchor": "Signals.Emit",
              "recv": "*Signals",
              "decl": "func (s *Signals) Emit(from, event string, payload any) error",
              "doc": "Emit fires the event named event of the object with ID from, passing payload, and calls the handler of every connection from that event, in the order the scene lists them. event is a bare name, such as \"pressed\", or \"button.pressed\" to say which component when several of the object's components declare it. A once connection runs the first time only. An event no connection names does nothing. Handlers run before Emit returns, so a handler that emits runs the next handlers inside the first; use Enqueue to run them after the current step instead.\n\nEmit returns an error, and calls nothing, when the scene has no object from, when none of its registered components declares the event or two declare a bare name, when the object's entity has been destroyed (SpawnConnected), and when handlers that emit events have nested more than MaxEmitDepth levels.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 272
            },
            {
              "name": "EmitEntity",
              "anchor": "Signals.EmitEntity",
              "recv": "*Signals",
              "decl": "func (s *Signals) EmitEntity(e entities.Entity, event string, payload any) error",
              "doc": "EmitEntity is Emit for the object that SpawnConnected spawned as e. It returns an error when e is not one of those entities or is no longer alive.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 357
            },
            {
              "name": "Enqueue",
              "anchor": "Signals.Enqueue",
              "recv": "*Signals",
              "decl": "func (s *Signals) Enqueue(from, event string, payload any) error",
              "doc": "Enqueue checks the event as Emit does and holds it, with payload, until the next Flush, which runs its handlers in the order the events were enqueued. A handler may enqueue events, its own included, without re-entering the handlers that are running: they wait for the Flush after the one that runs it.\n\nEnqueue returns an error, and queues nothing, when the scene has no object from, when none of its registered components declares the event or two declare a bare name, and when the object's entity has been destroyed (SpawnConnected).\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 290
            },
            {
              "name": "EnqueueEntity",
              "anchor": "Signals.EnqueueEntity",
              "recv": "*Signals",
              "decl": "func (s *Signals) EnqueueEntity(e entities.Entity, event string, payload any) error",
              "doc": "EnqueueEntity is Enqueue for the object that SpawnConnected spawned as e. It returns an error when e is not one of those entities or is no longer alive.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 366
            },
            {
              "name": "Entity",
              "anchor": "Signals.Entity",
              "recv": "*Signals",
              "decl": "func (s *Signals) Entity(id string) (entities.Entity, bool)",
              "doc": "Entity returns the entity the object with ID id was spawned as, and whether there is one: false when Connect made s, or the scene has no object id.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 348
            },
            {
              "name": "Flush",
              "anchor": "Signals.Flush",
              "recv": "*Signals",
              "decl": "func (s *Signals) Flush() error",
              "doc": "Flush runs the events enqueued before it began, in enqueue order, each as Emit would run it. Events their handlers enqueue are held for the next Flush, so one Flush always ends, even when handlers keep enqueueing each other. An event whose object's entity was destroyed after it was enqueued is dropped (SpawnConnected). Call it once per update step, such as at the end of game.Loop's Update, to run what the step raised after it.\n\nFlush returns an error, and runs nothing, when a handler calls it: events then run only from the update, never inside another event's handlers. A handler's panic passes through Flush; the events after the one whose handler panicked stay queued, ahead of those enqueued since, for the next Flush.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 313
            },
            {
              "name": "Pending",
              "anchor": "Signals.Pending",
              "recv": "*Signals",
              "decl": "func (s *Signals) Pending() int",
              "doc": "Pending returns how many events Enqueue holds for the next Flush.\n",
              "file": "pkg/sceneformat/connections.go",
              "line": 303
            }
          ]
        },
        {
          "name": "SkeletonResolver",
          "anchor": "SkeletonResolver",
          "decl": "type SkeletonResolver interface {\n\tSkeleton(path string) (*skeletal.SkeletonData, error)\n}",
          "doc": "SkeletonResolver may optionally be implemented by an AssetResolver to load .skel.yaml rigs\nreferenced by a \"skeletal\" component. Without it, Build reads the file through FileResolver\nand parses it with skeletal.Load.\n",
          "file": "pkg/sceneformat/skeletal.go",
          "line": 21,
          "members": [
            {
              "name": "Skeleton",
              "anchor": "SkeletonResolver.Skeleton",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SkyDoc",
          "anchor": "SkyDoc",
          "decl": "type SkyDoc struct {\n\t// Kind selects SkyColor (\"color\"), SkyGradient (\"gradient\") or SkyHDR (\"hdr\").\n\tKind SkyKind `yaml:\"kind\" schema:\"required,enum=color|gradient|hdr\"`\n\t// Color is the CSS color of a SkyColor sky; empty defaults to \"#141824\". Refused on other sky kinds.\n\tColor string `yaml:\"color,omitempty\"`\n\t// Zenith is the upper-hemisphere CSS color of a SkyGradient sky; empty defaults to \"#3d6194\". Refused on other sky kinds.\n\tZenith string `yaml:\"zenith,omitempty\"`\n\t// Horizon is the horizon-band CSS color of a SkyGradient sky; empty defaults to \"#a8b8c7\". Refused on other sky kinds.\n\tHorizon string `yaml:\"horizon,omitempty\"`\n\t// Ground is the lower-hemisphere CSS color of a SkyGradient sky; empty defaults to \"#2b2b2e\". Refused on other sky kinds.\n\tGround string `yaml:\"ground,omitempty\"`\n\t// HDR is the slash-separated path from the project root to an equirectangular Radiance .hdr or .pic panorama for a SkyHDR sky, such as \"env/studio.hdr\". Required for SkyHDR and refused on other sky kinds.\n\tHDR string `yaml:\"hdr,omitempty\"`\n}",
          "doc": "SkyDoc configures the 3D scene sky and IBL source (EnvironmentDoc.Sky). Version 4.\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 169,
          "members": [
            {
              "name": "Kind",
              "anchor": "SkyDoc.Kind",
              "kind": "field",
              "doc": "Kind selects SkyColor (\"color\"), SkyGradient (\"gradient\") or SkyHDR (\"hdr\")."
            },
            {
              "name": "Color",
              "anchor": "SkyDoc.Color",
              "kind": "field",
              "doc": "Color is the CSS color of a SkyColor sky; empty defaults to \"#141824\". Refused on other sky kinds."
            },
            {
              "name": "Zenith",
              "anchor": "SkyDoc.Zenith",
              "kind": "field",
              "doc": "Zenith is the upper-hemisphere CSS color of a SkyGradient sky; empty defaults to \"#3d6194\". Refused on other sky kinds."
            },
            {
              "name": "Horizon",
              "anchor": "SkyDoc.Horizon",
              "kind": "field",
              "doc": "Horizon is the horizon-band CSS color of a SkyGradient sky; empty defaults to \"#a8b8c7\". Refused on other sky kinds."
            },
            {
              "name": "Ground",
              "anchor": "SkyDoc.Ground",
              "kind": "field",
              "doc": "Ground is the lower-hemisphere CSS color of a SkyGradient sky; empty defaults to \"#2b2b2e\". Refused on other sky kinds."
            },
            {
              "name": "HDR",
              "anchor": "SkyDoc.HDR",
              "kind": "field",
              "doc": "HDR is the slash-separated path from the project root to an equirectangular Radiance .hdr or .pic panorama for a SkyHDR sky, such as \"env/studio.hdr\". Required for SkyHDR and refused on other sky kinds."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "SkyDoc.Clone",
              "recv": "*SkyDoc",
              "decl": "func (s *SkyDoc) Clone() *SkyDoc",
              "doc": "Clone returns a deep copy of s, or nil when s is nil.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 217
            },
            {
              "name": "EffectiveColor",
              "anchor": "SkyDoc.EffectiveColor",
              "recv": "*SkyDoc",
              "decl": "func (s *SkyDoc) EffectiveColor() string",
              "doc": "EffectiveColor returns s.Color, defaulting to \"#141824\" when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 185
            },
            {
              "name": "EffectiveGround",
              "anchor": "SkyDoc.EffectiveGround",
              "recv": "*SkyDoc",
              "decl": "func (s *SkyDoc) EffectiveGround() string",
              "doc": "EffectiveGround returns s.Ground, defaulting to \"#2b2b2e\" when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 209
            },
            {
              "name": "EffectiveHorizon",
              "anchor": "SkyDoc.EffectiveHorizon",
              "recv": "*SkyDoc",
              "decl": "func (s *SkyDoc) EffectiveHorizon() string",
              "doc": "EffectiveHorizon returns s.Horizon, defaulting to \"#a8b8c7\" when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 201
            },
            {
              "name": "EffectiveZenith",
              "anchor": "SkyDoc.EffectiveZenith",
              "recv": "*SkyDoc",
              "decl": "func (s *SkyDoc) EffectiveZenith() string",
              "doc": "EffectiveZenith returns s.Zenith, defaulting to \"#3d6194\" when empty.\n",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 193
            }
          ]
        },
        {
          "name": "SkyKind",
          "anchor": "SkyKind",
          "decl": "type SkyKind string",
          "doc": "SkyKind selects how the 3D scene sky background and environment map are generated (SkyDoc.Kind).\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 157,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SkyColor",
                  "anchor": "SkyColor"
                },
                {
                  "name": "SkyGradient",
                  "anchor": "SkyGradient"
                },
                {
                  "name": "SkyHDR",
                  "anchor": "SkyHDR"
                }
              ],
              "decl": "const (\n\t// SkyColor fills the sky background with a single solid color (SkyDoc.Color).\n\tSkyColor SkyKind = \"color\"\n\t// SkyGradient draws a procedural three-band gradient sky from Zenith through Horizon to Ground.\n\tSkyGradient SkyKind = \"gradient\"\n\t// SkyHDR loads an equirectangular Radiance .hdr panorama from SkyDoc.HDR into an HDR cubemap for both skybox rendering and image-based lighting.\n\tSkyHDR SkyKind = \"hdr\"\n)",
              "doc": "",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 159
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Space",
          "anchor": "Space",
          "decl": "type Space string",
          "doc": "Space is the coordinate space a layer draws in.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 69,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "SpaceWorld",
                  "anchor": "SpaceWorld"
                },
                {
                  "name": "SpaceScreen",
                  "anchor": "SpaceScreen"
                }
              ],
              "decl": "const (\n\t// SpaceWorld draws the layer under the scene's camera transform.\n\tSpaceWorld Space = \"world\"\n\t// SpaceScreen draws the layer directly in canvas coordinates, ignoring the camera.\n\tSpaceScreen Space = \"screen\"\n)",
              "doc": "",
              "file": "pkg/sceneformat/format.go",
              "line": 71
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SpriteRef",
          "anchor": "SpriteRef",
          "decl": "type SpriteRef struct {\n\t// Atlas names the sprite.Atlas an AssetResolver looks up.\n\tAtlas string `yaml:\"atlas\" schema:\"required,minLength=1\"`\n\t// Frame names the frame inside the atlas.\n\tFrame string `yaml:\"frame\" schema:\"required,minLength=1\"`\n}",
          "doc": "SpriteRef identifies one frame inside a named sprite.Atlas.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 623,
          "members": [
            {
              "name": "Atlas",
              "anchor": "SpriteRef.Atlas",
              "kind": "field",
              "doc": "Atlas names the sprite.Atlas an AssetResolver looks up."
            },
            {
              "name": "Frame",
              "anchor": "SpriteRef.Frame",
              "kind": "field",
              "doc": "Frame names the frame inside the atlas."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainResolver",
          "anchor": "TerrainResolver",
          "decl": "type TerrainResolver interface {\n\tTerrain(path string) (*world3d.Heightmap, error)\n}",
          "doc": "TerrainResolver may optionally be implemented by an AssetResolver to load\n*world3d.Heightmap assets referenced by heightfield 3D colliders.\nIf the resolver instead implements FileResolver (such as *project.Resolver or FSAssets),\nBuildPhysics loads *.terrain.yaml files from it automatically via world3d.LoadTerrainFS.\n",
          "file": "pkg/sceneformat/physics_3d_shapes.go",
          "line": 31,
          "members": [
            {
              "name": "Terrain",
              "anchor": "TerrainResolver.Terrain",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileLayerDoc",
          "anchor": "TileLayerDoc",
          "decl": "type TileLayerDoc struct {\n\t// Name identifies the layer within its tilemap; tilemap.Tilemap.Layer finds it by this name once built.\n\tName string `yaml:\"name\" schema:\"required,minLength=1\"`\n\t// Visible controls whether the layer draws; nil defaults to true.\n\tVisible *bool `yaml:\"visible,omitempty\"`\n\t// Opacity is the layer's opacity in [0, 1]; nil defaults to 1.\n\tOpacity *float32 `yaml:\"opacity,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Rows are the layer's Height rows from the top, each Width cells separated by spaces. A cell is \".\" when empty, or the local ID of a tile of the tileset (0, 1, ...) followed by any of h, v and d to flip it horizontally, vertically or across its diagonal, as Tiled's flip bits do: \"3\", \"3h\" and \"3hvd\". Encode writes the cells separated by single spaces with the letters in the order h, v, d.\n\tRows []string `yaml:\"rows,omitempty\"`\n}",
          "doc": "TileLayerDoc is one named layer of tiles of a layered grid (TilemapDoc.TileLayers), the text counterpart of one of Godot's TileMapLayer nodes.\n",
          "file": "pkg/sceneformat/format.go",
          "line": 272,
          "members": [
            {
              "name": "Name",
              "anchor": "TileLayerDoc.Name",
              "kind": "field",
              "doc": "Name identifies the layer within its tilemap; tilemap.Tilemap.Layer finds it by this name once built."
            },
            {
              "name": "Visible",
              "anchor": "TileLayerDoc.Visible",
              "kind": "field",
              "doc": "Visible controls whether the layer draws; nil defaults to true."
            },
            {
              "name": "Opacity",
              "anchor": "TileLayerDoc.Opacity",
              "kind": "field",
              "doc": "Opacity is the layer's opacity in [0, 1]; nil defaults to 1."
            },
            {
              "name": "Rows",
              "anchor": "TileLayerDoc.Rows",
              "kind": "field",
              "doc": "Rows are the layer's Height rows from the top, each Width cells separated by spaces. A cell is \".\" when empty, or the local ID of a tile of the tileset (0, 1, ...) followed by any of h, v and d to flip it horizontally, vertically or across its diagonal, as Tiled's flip bits do: \"3\", \"3h\" and \"3hvd\". Encode writes the cells separated by single spaces with the letters in the order h, v, d."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Cell",
              "anchor": "TileLayerDoc.Cell",
              "recv": "*TileLayerDoc",
              "decl": "func (l *TileLayerDoc) Cell(col, row int) (uint32, error)",
              "doc": "Cell returns the cell at (col, row) of the layer as a tile value: 0 for an empty cell, or the tile's local ID plus 1 with tilemap's flip bits (tilemap.FlipHorizontal, FlipVertical and FlipDiagonal) set, which is the GID the cell has in the tilemap.Tilemap Build makes, whose tileset starts at GID 1.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 295
            },
            {
              "name": "Cells",
              "anchor": "TileLayerDoc.Cells",
              "recv": "*TileLayerDoc",
              "decl": "func (l *TileLayerDoc) Cells() ([]uint32, error)",
              "doc": "Cells returns the layer's cells row by row from the top, as Cell returns each.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 330
            },
            {
              "name": "EffectiveOpacity",
              "anchor": "TileLayerDoc.EffectiveOpacity",
              "recv": "*TileLayerDoc",
              "decl": "func (l *TileLayerDoc) EffectiveOpacity() float32",
              "doc": "EffectiveOpacity returns Opacity, defaulting to 1 when nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 287
            },
            {
              "name": "IsVisible",
              "anchor": "TileLayerDoc.IsVisible",
              "recv": "*TileLayerDoc",
              "decl": "func (l *TileLayerDoc) IsVisible() bool",
              "doc": "IsVisible reports whether the tile layer is visible, defaulting to true when Visible is nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 284
            },
            {
              "name": "SetCell",
              "anchor": "TileLayerDoc.SetCell",
              "recv": "*TileLayerDoc",
              "decl": "func (l *TileLayerDoc) SetCell(col, row int, cell uint32) error",
              "doc": "SetCell sets the cell at (col, row) of the layer to the tile value cell, as Cell returns it, and writes that row in the form Encode does.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 310
            }
          ]
        },
        {
          "name": "TilemapDoc",
          "anchor": "TilemapDoc",
          "decl": "type TilemapDoc struct {\n\t// Ref names an entry in SceneDoc.Tilemaps. Only valid on a layer's Tilemap.\n\tRef string `yaml:\"ref,omitempty\"`\n\t// Source is the slash-separated path from the project root of an external map: a Tiled map (.tmj or .tmx) or an LDtk project (.ldtk). Build loads it itself when its resolver implements FileResolver, as FSAssets does, or through a TilemapResolver.\n\tSource string `yaml:\"source,omitempty\"`\n\t// Level names the level of an LDtk Source to build; empty builds the project's first level. It requires a .ldtk Source. Build reads a source with a Level through a FileResolver even when the resolver implements TilemapResolver. Version 2.\n\tLevel string `yaml:\"level,omitempty\"`\n\t// OffsetX and OffsetY shift the tilemap's top-left corner (cell 0, 0) in its layer's coordinate space in points. Version 3.\n\tOffsetX float32 `yaml:\"offsetX,omitempty\"`\n\tOffsetY float32 `yaml:\"offsetY,omitempty\"`\n\t// TileWidth and TileHeight are each tile's size in points for an inline grid.\n\tTileWidth  int `yaml:\"tileWidth,omitempty\" schema:\"minimum=0\"`\n\tTileHeight int `yaml:\"tileHeight,omitempty\" schema:\"minimum=0\"`\n\t// Width and Height are the inline grid dimensions in tiles.\n\tWidth  int `yaml:\"width,omitempty\" schema:\"minimum=0\"`\n\tHeight int `yaml:\"height,omitempty\" schema:\"minimum=0\"`\n\t// Tileset is, for a single grid, the atlas name providing frames keyed by 1-based tile ID (\"1\", \"2\", ...).\n\tTileset string `yaml:\"tileset,omitempty\"`\n\t// TilesetFile is, for a layered grid, the YAML tileset (*.tileset.yaml, tilemap.TilesetDoc) whose tiles the cells place, by its slash-separated path from the project root. Version 2.\n\tTilesetFile string `yaml:\"tilesetFile,omitempty\"`\n\t// Data holds a single grid's Width*Height row-major tile IDs; 0 is an empty cell.\n\tData []int `yaml:\"data,omitempty,flow\"`\n\t// TileLayers are a layered grid's tile layers, drawn in order, each Width by Height cells, at most MaxTileLayers of them. Version 2.\n\tTileLayers []TileLayerDoc `yaml:\"tileLayers,omitempty\"`\n}",
          "doc": "TilemapDoc describes a tilemap in one of three modes: a reference to a named top-level tilemap (Ref), an external Tiled or LDtk map (Source), or an inline grid. An inline grid is either a single grid of atlas frame numbers (Tileset and Data) or, in version 2, a layered grid that places the tiles of a YAML tileset (TilesetFile and TileLayers).\n",
          "file": "pkg/sceneformat/format.go",
          "line": 242,
          "members": [
            {
              "name": "Ref",
              "anchor": "TilemapDoc.Ref",
              "kind": "field",
              "doc": "Ref names an entry in SceneDoc.Tilemaps. Only valid on a layer's Tilemap."
            },
            {
              "name": "Source",
              "anchor": "TilemapDoc.Source",
              "kind": "field",
              "doc": "Source is the slash-separated path from the project root of an external map: a Tiled map (.tmj or .tmx) or an LDtk project (.ldtk). Build loads it itself when its resolver implements FileResolver, as FSAssets does, or through a TilemapResolver."
            },
            {
              "name": "Level",
              "anchor": "TilemapDoc.Level",
              "kind": "field",
              "doc": "Level names the level of an LDtk Source to build; empty builds the project's first level. It requires a .ldtk Source. Build reads a source with a Level through a FileResolver even when the resolver implements TilemapResolver. Version 2."
            },
            {
              "name": "OffsetX",
              "anchor": "TilemapDoc.OffsetX",
              "kind": "field",
              "doc": "OffsetX and OffsetY shift the tilemap's top-left corner (cell 0, 0) in its layer's coordinate space in points. Version 3."
            },
            {
              "name": "OffsetY",
              "anchor": "TilemapDoc.OffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileWidth",
              "anchor": "TilemapDoc.TileWidth",
              "kind": "field",
              "doc": "TileWidth and TileHeight are each tile's size in points for an inline grid."
            },
            {
              "name": "TileHeight",
              "anchor": "TilemapDoc.TileHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "TilemapDoc.Width",
              "kind": "field",
              "doc": "Width and Height are the inline grid dimensions in tiles."
            },
            {
              "name": "Height",
              "anchor": "TilemapDoc.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tileset",
              "anchor": "TilemapDoc.Tileset",
              "kind": "field",
              "doc": "Tileset is, for a single grid, the atlas name providing frames keyed by 1-based tile ID (\"1\", \"2\", ...)."
            },
            {
              "name": "TilesetFile",
              "anchor": "TilemapDoc.TilesetFile",
              "kind": "field",
              "doc": "TilesetFile is, for a layered grid, the YAML tileset (*.tileset.yaml, tilemap.TilesetDoc) whose tiles the cells place, by its slash-separated path from the project root. Version 2."
            },
            {
              "name": "Data",
              "anchor": "TilemapDoc.Data",
              "kind": "field",
              "doc": "Data holds a single grid's Width*Height row-major tile IDs; 0 is an empty cell."
            },
            {
              "name": "TileLayers",
              "anchor": "TilemapDoc.TileLayers",
              "kind": "field",
              "doc": "TileLayers are a layered grid's tile layers, drawn in order, each Width by Height cells, at most MaxTileLayers of them. Version 2."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "HasTilesetFile",
              "anchor": "TilemapDoc.HasTilesetFile",
              "recv": "*TilemapDoc",
              "decl": "func (t *TilemapDoc) HasTilesetFile() bool",
              "doc": "HasTilesetFile reports whether t names a YAML tileset file (TilesetFile), either in a layered grid (TileLayers) or in place of a sprite atlas on a single inline grid (Data).\n",
              "file": "pkg/sceneformat/format.go",
              "line": 415
            },
            {
              "name": "IsExternal",
              "anchor": "TilemapDoc.IsExternal",
              "recv": "*TilemapDoc",
              "decl": "func (t *TilemapDoc) IsExternal() bool",
              "doc": "IsExternal reports whether t references an external tilemap source file.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 407
            },
            {
              "name": "IsInline",
              "anchor": "TilemapDoc.IsInline",
              "recv": "*TilemapDoc",
              "decl": "func (t *TilemapDoc) IsInline() bool",
              "doc": "IsInline reports whether t carries an inline tile grid, single or layered.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 410
            },
            {
              "name": "IsLayered",
              "anchor": "TilemapDoc.IsLayered",
              "recv": "*TilemapDoc",
              "decl": "func (t *TilemapDoc) IsLayered() bool",
              "doc": "IsLayered reports whether t is a layered grid, one that holds tile layers (TileLayers) or names a YAML tileset (TilesetFile) without flat Data.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 420
            },
            {
              "name": "IsRef",
              "anchor": "TilemapDoc.IsRef",
              "recv": "*TilemapDoc",
              "decl": "func (t *TilemapDoc) IsRef() bool",
              "doc": "IsRef reports whether t references a top-level tilemap by name.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 404
            },
            {
              "name": "TileLayer",
              "anchor": "TilemapDoc.TileLayer",
              "recv": "*TilemapDoc",
              "decl": "func (t *TilemapDoc) TileLayer(name string) *TileLayerDoc",
              "doc": "TileLayer returns the tile layer of a layered grid named name, or nil.\n",
              "file": "pkg/sceneformat/format.go",
              "line": 425
            }
          ]
        },
        {
          "name": "TilemapResolver",
          "anchor": "TilemapResolver",
          "decl": "type TilemapResolver interface {\n\tTilemap(source string) (*TilemapDoc, error)\n}",
          "doc": "TilemapResolver may optionally be implemented by an AssetResolver to load external tilemap sources into an inline TilemapDoc. Build uses it, when the resolver implements it, for every TilemapDoc.Source that names no Level, ahead of reading the source itself through a FileResolver. A source with a Level (an LDtk level) is always read through a FileResolver, since Tilemap has no way to receive the level.\n",
          "file": "pkg/sceneformat/build.go",
          "line": 32,
          "members": [
            {
              "name": "Tilemap",
              "anchor": "TilemapResolver.Tilemap",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TonemapMode",
          "anchor": "TonemapMode",
          "decl": "type TonemapMode string",
          "doc": "TonemapMode selects the HDR-to-LDR tone mapping operator (EnvironmentDoc.Tonemapping).\n",
          "file": "pkg/sceneformat/scene3d.go",
          "line": 306,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TonemapNone",
                  "anchor": "TonemapNone"
                },
                {
                  "name": "TonemapReinhard",
                  "anchor": "TonemapReinhard"
                },
                {
                  "name": "TonemapACES",
                  "anchor": "TonemapACES"
                },
                {
                  "name": "TonemapNeutral",
                  "anchor": "TonemapNeutral"
                },
                {
                  "name": "TonemapAgX",
                  "anchor": "TonemapAgX"
                }
              ],
              "decl": "const (\n\t// TonemapNone clamps exposed linear radiance to [0, 1] without highlight roll-off.\n\tTonemapNone TonemapMode = \"none\"\n\t// TonemapReinhard applies per-channel Reinhard compression.\n\tTonemapReinhard TonemapMode = \"reinhard\"\n\t// TonemapACES applies the fitted ACES filmic curve.\n\tTonemapACES TonemapMode = \"aces\"\n\t// TonemapNeutral applies the Khronos PBR Neutral tone mapper.\n\tTonemapNeutral TonemapMode = \"neutral\"\n\t// TonemapAgX applies the AgX filmic tone mapper.\n\tTonemapAgX TonemapMode = \"agx\"\n)",
              "doc": "",
              "file": "pkg/sceneformat/scene3d.go",
              "line": 308
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/scenemodel",
      "name": "scenemodel",
      "dir": "pkg/scenemodel",
      "page": "pkg/scenemodel",
      "synopsis": "Package scenemodel gives the objects of a scene file their 3D look: the built-in primitive an object names in mesh, or the glTF 2.0 model it names in model, optionally narrowed to one node (modelNode) or one mesh (modelMesh), with the material file it names in material replacing the model's materials (sceneformat.ObjectDoc).",
      "doc": "Package scenemodel gives the objects of a scene file their 3D look: the built-in primitive an object names in mesh, or the glTF 2.0 model it names in model, optionally narrowed to one node (modelNode) or one mesh (modelMesh), with the material file it names in material replacing the model's materials (sceneformat.ObjectDoc). So a 3D level can be written as a scene file, as a 2D one is, instead of being assembled in Go.\n\nBuild builds a scene into a scene3d node tree, as sceneformat.BuildNodes3D does, loads each model through a ModelResolver, as sceneformat.Build loads materials through a MaterialResolver, and attaches each object's geometry and materials to its node as a Drawable, with the node's LocalBounds set from the geometry. Assets is a ModelResolver, MaterialResolver and ImageResolver over a project's files. Built.AppendDrawItems lists the parts as render3d.DrawItem values for render3d.Queue, and Renderer uploads them to a gpu.Device and draws them lit by a render3d.LightRig and textured with their base color.\n\n\tassets := scenemodel.NewAssets(os.DirFS(projectRoot))\n\tbuilt, err := scenemodel.Build(doc, scene.Root(), assets)\n\t...\n\tr, err := scenemodel.NewRenderer(cx, dev, built, scenemodel.RendererOptions{})\n\t...\n\t// Each frame:\n\tr.Prepare(cam, lights)\n\tpass := frame.BeginRenderPass(gpu.RenderPassDesc{})\n\tr.Draw(pass)\n\tpass.End()\n\ngame check reports a model file that is missing or does not load, and a modelNode or modelMesh the model does not have, with the scene file and line; game mv, game index and the editor's MoveFile rewrite the scenes that name a model when it moves (package refs).\n",
      "consts": [
        {
          "idents": [
            {
              "name": "AttachmentKey",
              "anchor": "AttachmentKey"
            }
          ],
          "decl": "const AttachmentKey = \"scenemodel.drawable\"",
          "doc": "AttachmentKey is the scene3d.Node attachment under which Build stores the *Drawable of each node that draws geometry, so code that holds a node, such as an editor's picking, can find what it draws with scene3d.AttachmentAs.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "BaseColorGroup",
              "anchor": "BaseColorGroup"
            }
          ],
          "decl": "const BaseColorGroup = render3d.PBRDrawGroup + 1",
          "doc": "BaseColorGroup is the bind group of the base color texture and sampler in ShaderWGSL, after render3d's camera (render3d.CameraGroup), scene lights and environment (render3d.LightGroup) and per-draw uniform (render3d.PBRDrawGroup).\n",
          "file": "pkg/scenemodel/renderer.go",
          "line": 21
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ShaderWGSL",
              "anchor": "ShaderWGSL"
            }
          ],
          "decl": "var ShaderWGSL = buildShaderPreludeWGSL() + litFragmentBodyWGSL + `\tlet display = scene_tonemap_srgb(fogged, scene_env.params.x, scene_env.params.y);\n\tvar alpha = 1.0;\n\tif (pbr_draw.emissive.w > 0.5) {\n\t\talpha = base.a;\n\t}\n\treturn vec4<f32>(display, alpha);\n}\n`",
          "doc": "ShaderWGSL is the shader module Renderer draws with in ShadingLit: render3d metallic-roughness PBR lighting with directional/point/spot lights, optional directional/point/spot shadows, per-object reflection probes and light probe SH irradiance (falling back to scene sky IBL), distance and height fog, exposure, tone mapping, and a base color texture.\n",
          "file": "pkg/scenemodel/renderer.go",
          "line": 246
        }
      ],
      "funcs": [
        {
          "name": "BakeLightProbeGrid",
          "anchor": "BakeLightProbeGrid",
          "decl": "func BakeLightProbeGrid(b *Built, grid *LightProbeGrid, opts ProbeBakeOptions) (*render3d.LightProbeGrid, error)",
          "doc": "BakeLightProbeGrid renders b's 3D scene from every lattice point of grid into a small linear\nHDR cubemap using render3d on an offscreen software GPU renderer and integrates each probe's\ncosine-convolved L2 spherical harmonic irradiance coefficients.\n",
          "file": "pkg/scenemodel/bake.go",
          "line": 68
        },
        {
          "name": "BakeReflectionProbe",
          "anchor": "BakeReflectionProbe",
          "decl": "func BakeReflectionProbe(b *Built, probe *ReflectionProbe, opts ProbeBakeOptions) (*render3d.HDRCubemap, error)",
          "doc": "BakeReflectionProbe renders b's 3D scene from probe's world position into all six faces of a\nlinear HDR cubemap using render3d on an offscreen software GPU renderer, disabling existing\nbaked probe contributions so rebaking captures direct lighting, shadows, sky, and emissives.\n",
          "file": "pkg/scenemodel/bake.go",
          "line": 42
        },
        {
          "name": "DefaultLODScreenRatio",
          "anchor": "DefaultLODScreenRatio",
          "decl": "func DefaultLODScreenRatio(level, count int) float32",
          "doc": "DefaultLODScreenRatio returns the default MinScreenRatio threshold for level\n(0-indexed from finest to coarsest) in an LOD chain of count levels. The\ncoarsest level (level >= count-1) always returns 0 (unbounded fallback).\n",
          "file": "pkg/scenemodel/lod.go",
          "line": 37
        },
        {
          "name": "DrawItemID",
          "anchor": "DrawItemID",
          "decl": "func DrawItemID(di, pi int) uint64",
          "doc": "DrawItemID returns the render3d.DrawItem ID AppendDrawItems gives part pi of drawable di.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 1010
        },
        {
          "name": "DrawPipeline",
          "anchor": "DrawPipeline",
          "decl": "func DrawPipeline(m Material) uint32",
          "doc": "DrawPipeline returns the render3d.DrawItem PipelineID of a part drawn with m: 0 for a single-sided opaque or cutout surface, 1 for a double-sided one, 2 for a single-sided blended surface and 3 for a double-sided one. Renderer draws each with its own pipeline.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 1026
        },
        {
          "name": "FindMesh",
          "anchor": "FindMesh",
          "decl": "func FindMesh(doc *gltf.Document, name string) int",
          "doc": "FindMesh returns the index of the first mesh of doc named name, or -1 when none is, as sceneformat.ObjectDoc.ModelMesh looks it up.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 586
        },
        {
          "name": "FindNode",
          "anchor": "FindNode",
          "decl": "func FindNode(doc *gltf.Document, name string) int",
          "doc": "FindNode returns the index of the first node of doc named name, or -1 when none is, as sceneformat.ObjectDoc.ModelNode looks it up.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 573
        },
        {
          "name": "PrimitiveMesh",
          "anchor": "PrimitiveMesh",
          "decl": "func PrimitiveMesh(name string) (render3d.Mesh, error)",
          "doc": "PrimitiveMesh returns the geometry of the built-in primitive name, one of sceneformat.MeshPrimitives, in the object's space: indexed triangles wound counter-clockwise from outside, with unit normals and UVs from 0 to 1. Every call returns new slices.\n\nThe shapes are sized like Godot's default meshes so that an object's scale reads as meters: a box 1 on each side, a sphere 1 across, a plane 1 by 1 in the XZ plane facing +Y, a cylinder 1 across and 1 tall, and a capsule 1 across and 2 tall, each centered on the origin with its round axis along Y.\n",
          "file": "pkg/scenemodel/primitive.go",
          "line": 22
        }
      ],
      "types": [
        {
          "name": "Assets",
          "anchor": "Assets",
          "decl": "type Assets struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Assets loads models, grid maps, material files, images, model import sidecars, Radiance HDR panoramas/cubemaps and baked light probe grids from a project's files, such as os.DirFS(projectRoot) or an embed.FS, and keeps each one it loaded, so it serves Build as a ModelResolver, a GridMapResolver, a sceneformat.MaterialResolver, an ImageResolver, an ImportSettingsResolver, an HDRResolver and a LightProbeGridResolver. Models load with gltf.LoadFS, so a .gltf file's separate buffers and images are read from beside it; grid maps parse with world3d.ParseGridMapWith; material files load through a resource.Library, which shares one value per path; images decode as PNG or JPEG; sidecars load through importsettings.Parse; HDR skies and reflection probes decode with render3d.DecodeHDR; light probe grids load with render3d.LoadLightProbeGridFS.\n\nIts methods are safe to call from any goroutine.\n",
          "file": "pkg/scenemodel/assets.go",
          "line": 55,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewAssets",
              "anchor": "NewAssets",
              "decl": "func NewAssets(fsys fs.FS) *Assets",
              "doc": "NewAssets returns Assets that read from fsys, rooted at the project root.\n",
              "file": "pkg/scenemodel/assets.go",
              "line": 70
            }
          ],
          "methods": [
            {
              "name": "GridMap",
              "anchor": "Assets.GridMap",
              "recv": "*Assets",
              "decl": "func (a *Assets) GridMap(path string) (*world3d.GridMapDoc, error)",
              "doc": "GridMap loads and parses the YAML grid map at path (*.gridmap.yaml or *.gridmap.yml) on first use and returns the same document after that.\n",
              "file": "pkg/scenemodel/assets.go",
              "line": 103
            },
            {
              "name": "HDR",
              "anchor": "Assets.HDR",
              "recv": "*Assets",
              "decl": "func (a *Assets) HDR(path string) (*render3d.HDRImage, error)",
              "doc": "HDR decodes the Radiance .hdr panorama at path on first use and returns the same image after that.\n",
              "file": "pkg/scenemodel/assets.go",
              "line": 192
            },
            {
              "name": "Image",
              "anchor": "Assets.Image",
              "recv": "*Assets",
              "decl": "func (a *Assets) Image(path string) (image.Image, error)",
              "doc": "Image decodes the PNG or JPEG image at path on first use and returns the same image after that.\n",
              "file": "pkg/scenemodel/assets.go",
              "line": 141
            },
            {
              "name": "ImportSettings",
              "anchor": "Assets.ImportSettings",
              "recv": "*Assets",
              "decl": "func (a *Assets) ImportSettings(modelPath string) (*importsettings.File, error)",
              "doc": "ImportSettings reads and parses the *.import.yaml sidecar beside modelPath on first use and caches the result, returning (nil, nil) when no sidecar file exists.\n",
              "file": "pkg/scenemodel/assets.go",
              "line": 164
            },
            {
              "name": "Library",
              "anchor": "Assets.Library",
              "recv": "*Assets",
              "decl": "func (a *Assets) Library() *resource.Library",
              "doc": "Library returns the resource.Library that Material loads from, so a game can reload edited material files into it (resource.Library.Reload).\n",
              "file": "pkg/scenemodel/assets.go",
              "line": 133
            },
            {
              "name": "LightProbeGrid",
              "anchor": "Assets.LightProbeGrid",
              "recv": "*Assets",
              "decl": "func (a *Assets) LightProbeGrid(path string) (*render3d.LightProbeGrid, error)",
              "doc": "LightProbeGrid parses the baked light probe grid YAML file at path on first use and returns the same grid after that.\n",
              "file": "pkg/scenemodel/assets.go",
              "line": 215
            },
            {
              "name": "Material",
              "anchor": "Assets.Material",
              "recv": "*Assets",
              "decl": "func (a *Assets) Material(path string) (*resource.Material, error)",
              "doc": "Material loads the material file at path through the Assets' resource.Library. It lets Assets serve as a sceneformat.MaterialResolver.\n",
              "file": "pkg/scenemodel/assets.go",
              "line": 125
            },
            {
              "name": "Model",
              "anchor": "Assets.Model",
              "recv": "*Assets",
              "decl": "func (a *Assets) Model(path string) (*gltf.Document, error)",
              "doc": "Model loads the glTF model at path, a .gltf or .glb file, on first use and returns the same document after that.\n",
              "file": "pkg/scenemodel/assets.go",
              "line": 85
            }
          ]
        },
        {
          "name": "Built",
          "anchor": "Built",
          "decl": "type Built struct {\n\t// Nodes3D holds the layer and object nodes, as sceneformat.BuildNodes3D builds them.\n\tsceneformat.Nodes3D\n\t// Drawables are the nodes that draw geometry, depth first in document order: an object's node, then the nodes made for its model's nodes or grid map instances, then its child objects.\n\tDrawables []*Drawable\n\t// GridMaps maps each object ID that named ObjectDoc.GridMap to its constructed runtime *world3d.GridMap, for collision queries, raycasting, or custom instancing.\n\tGridMaps map[string]*world3d.GridMap\n\t// Occluders are the occluders built from scene objects that set ObjectDoc.Occluder, in document order.\n\tOccluders []Occluder\n\t// LODHysteresis is the largest non-zero lodHysteresis declared by any model import sidecar in the built scene, or 0 when none sets one.\n\tLODHysteresis float32\n\t// Lights are the scene's 3D light objects in depth-first document order, linked to their scene3d nodes.\n\tLights []*Light\n\t// Cameras are the scene's 3D camera objects in depth-first document order, linked to their scene3d nodes.\n\tCameras []*Camera\n\t// ReflectionProbes are the scene's 3D reflection probe objects in depth-first document order, linked to their scene3d nodes and any loaded baked cubemaps.\n\tReflectionProbes []*ReflectionProbe\n\t// LightProbeGrids are the scene's 3D light probe grid objects in depth-first document order, linked to their scene3d nodes and any loaded baked SH irradiance grids.\n\tLightProbeGrids []*LightProbeGrid\n\t// Environment holds the resolved sky, ambient/IBL lighting, fog, tone mapping and exposure from SceneDoc.Environment.\n\tEnvironment Environment\n\t// Meshes and Materials count the distinct MeshID and MaterialID values the parts use.\n\tMeshes, Materials int\n}",
          "doc": "Built is a scene's 3D node tree with the geometry, lights, cameras and environment each scene declares, from Build.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 82,
          "members": [
            {
              "name": "Nodes3D",
              "anchor": "Built.Nodes3D",
              "kind": "field",
              "doc": "Nodes3D holds the layer and object nodes, as sceneformat.BuildNodes3D builds them."
            },
            {
              "name": "Drawables",
              "anchor": "Built.Drawables",
              "kind": "field",
              "doc": "Drawables are the nodes that draw geometry, depth first in document order: an object's node, then the nodes made for its model's nodes or grid map instances, then its child objects."
            },
            {
              "name": "GridMaps",
              "anchor": "Built.GridMaps",
              "kind": "field",
              "doc": "GridMaps maps each object ID that named ObjectDoc.GridMap to its constructed runtime *world3d.GridMap, for collision queries, raycasting, or custom instancing."
            },
            {
              "name": "Occluders",
              "anchor": "Built.Occluders",
              "kind": "field",
              "doc": "Occluders are the occluders built from scene objects that set ObjectDoc.Occluder, in document order."
            },
            {
              "name": "LODHysteresis",
              "anchor": "Built.LODHysteresis",
              "kind": "field",
              "doc": "LODHysteresis is the largest non-zero lodHysteresis declared by any model import sidecar in the built scene, or 0 when none sets one."
            },
            {
              "name": "Lights",
              "anchor": "Built.Lights",
              "kind": "field",
              "doc": "Lights are the scene's 3D light objects in depth-first document order, linked to their scene3d nodes."
            },
            {
              "name": "Cameras",
              "anchor": "Built.Cameras",
              "kind": "field",
              "doc": "Cameras are the scene's 3D camera objects in depth-first document order, linked to their scene3d nodes."
            },
            {
              "name": "ReflectionProbes",
              "anchor": "Built.ReflectionProbes",
              "kind": "field",
              "doc": "ReflectionProbes are the scene's 3D reflection probe objects in depth-first document order, linked to their scene3d nodes and any loaded baked cubemaps."
            },
            {
              "name": "LightProbeGrids",
              "anchor": "Built.LightProbeGrids",
              "kind": "field",
              "doc": "LightProbeGrids are the scene's 3D light probe grid objects in depth-first document order, linked to their scene3d nodes and any loaded baked SH irradiance grids."
            },
            {
              "name": "Environment",
              "anchor": "Built.Environment",
              "kind": "field",
              "doc": "Environment holds the resolved sky, ambient/IBL lighting, fog, tone mapping and exposure from SceneDoc.Environment."
            },
            {
              "name": "Meshes",
              "anchor": "Built.Meshes",
              "kind": "field",
              "doc": "Meshes and Materials count the distinct MeshID and MaterialID values the parts use."
            },
            {
              "name": "Materials",
              "anchor": "Built.Materials",
              "kind": "field",
              "doc": "Meshes and Materials count the distinct MeshID and MaterialID values the parts use."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Build",
              "anchor": "Build",
              "decl": "func Build(doc *sceneformat.SceneDoc, parent *scene3d.Node, models ModelResolver) (*Built, error)",
              "doc": "Build builds doc's layers and objects into a 3D node tree under parent, as sceneformat.BuildNodes3D does, and gives every object that names a look its geometry and material:\n\n  - ObjectDoc.Mesh, a built-in primitive (PrimitiveMesh), drawn on the object's node with the object's material, or with a white, non-metallic, fully rough surface when it names none;\n  - ObjectDoc.Model, a glTF model loaded through models: with ModelMesh, that mesh drawn on the object's node; with ModelNode, that node's mesh drawn on the object's node and each of its descendants as a child node with its own transform; and with neither, a child node for each root node of the model's default scene (or of its first scene, or every parentless node when it has none) and their descendants. The model's materials are used unless the object names a material file, which replaces them all.\n  - ObjectDoc.GridMap, a 3D grid map loaded through a GridMapResolver and its glTF mesh library through models, instanced with world3d.GridMap.BuildInstances as child nodes of the object's node sharing the tile meshes and materials, with the built *world3d.GridMap recorded in Built.GridMaps.\n\nA node Build makes for a glTF node is named after it, and is added after the object's child objects. Every node that draws gets its geometry's bounds as its LocalBounds and its *Drawable as the attachment AttachmentKey. A model draws in its bind pose with its meshes' default morph weights applied; skins, cameras, lights, animations and vertex colors are not used, nor are points and lines. A primitive without normals draws flat-shaded, and the base color texture's UV set and KHR_texture_transform are applied to the UVs.\n\nmodels may be nil when no object names a model or grid map. It must implement sceneformat.MaterialResolver when an object names a material file, ImageResolver when such a file names a texture, and GridMapResolver when an object names a grid map; Assets does all four. A material file is read when Build runs: build again to see it edited.\n\nBuild returns an error and leaves parent unchanged when doc is invalid or still instances or inherits other scene files (pass it through sceneformat.Resolve first), when parent is nil, or when a model, node, mesh, grid map, material or image cannot be loaded or found.\n",
              "file": "pkg/scenemodel/build.go",
              "line": 118
            }
          ],
          "methods": [
            {
              "name": "ActiveCamera",
              "anchor": "Built.ActiveCamera",
              "recv": "*Built",
              "decl": "func (b *Built) ActiveCamera(aspect float32) (*scene3d.Camera, bool)",
              "doc": "ActiveCamera builds a *scene3d.Camera from the scene's active 3D camera object (ActiveCameraObject) for the given aspect ratio (width / height).\n",
              "file": "pkg/scenemodel/environment.go",
              "line": 116
            },
            {
              "name": "ActiveCameraObject",
              "anchor": "Built.ActiveCameraObject",
              "recv": "*Built",
              "decl": "func (b *Built) ActiveCameraObject() (*Camera, bool)",
              "doc": "ActiveCameraObject returns the scene's active visible, enabled 3D camera object: the one marked Current, or the first visible, enabled 3D camera in document order when none is marked.\n",
              "file": "pkg/scenemodel/environment.go",
              "line": 93
            },
            {
              "name": "AppendDrawItems",
              "anchor": "Built.AppendDrawItems",
              "recv": "*Built",
              "decl": "func (b *Built) AppendDrawItems(dst []render3d.DrawItem) []render3d.DrawItem",
              "doc": "AppendDrawItems appends a render3d.DrawItem for every part of every drawable whose node is visible and enabled, in Drawables order, and returns the extended slice for render3d.Queue.Build. An item's ID holds the drawable's index in Drawables in its high 32 bits and the part's index in its low 32 bits (DrawItemID); its PipelineID is DrawPipeline of the part's material; its Transform is the node's world matrix and WorldBounds the part's bounds under it.\n",
              "file": "pkg/scenemodel/build.go",
              "line": 977
            },
            {
              "name": "AppendOccluders",
              "anchor": "Built.AppendOccluders",
              "recv": "*Built",
              "decl": "func (b *Built) AppendOccluders(dst []render3d.Occluder) []render3d.Occluder",
              "doc": "AppendOccluders appends a render3d.Occluder for every visible, enabled\noccluder in b.Occluders at its node's current world transform and returns the\nextended slice.\n",
              "file": "pkg/scenemodel/occluder.go",
              "line": 96
            },
            {
              "name": "HasBakedProbes",
              "anchor": "Built.HasBakedProbes",
              "recv": "*Built",
              "decl": "func (b *Built) HasBakedProbes() bool",
              "doc": "HasBakedProbes reports whether b contains at least one reflection probe with a baked cubemap\nor light probe grid with baked irradiance data.\n",
              "file": "pkg/scenemodel/probes.go",
              "line": 104
            },
            {
              "name": "HasSceneLighting",
              "anchor": "Built.HasSceneLighting",
              "recv": "*Built",
              "decl": "func (b *Built) HasSceneLighting() bool",
              "doc": "HasSceneLighting reports whether the built scene declares any 3D lights, an environment section, or baked reflection/light probes.\n",
              "file": "pkg/scenemodel/environment.go",
              "line": 88
            },
            {
              "name": "LightRig",
              "anchor": "Built.LightRig",
              "recv": "*Built",
              "decl": "func (b *Built) LightRig() render3d.LightRig",
              "doc": "LightRig evaluates every visible, enabled light node in b at its current world transform and returns a render3d.LightRig combining b.Environment.Ambient with the scene's directional, point and spot lights. Within each category, shadow-casting lights come first so slot 0 matches render3d's shadow sampling slots.\n",
              "file": "pkg/scenemodel/environment.go",
              "line": 125
            },
            {
              "name": "Part",
              "anchor": "Built.Part",
              "recv": "*Built",
              "decl": "func (b *Built) Part(id uint64) (*Drawable, *Part, bool)",
              "doc": "Part returns the drawable and part a render3d.DrawItem ID from AppendDrawItems names, and false when it names none.\n",
              "file": "pkg/scenemodel/build.go",
              "line": 1013
            },
            {
              "name": "RasterizeOccluders",
              "anchor": "Built.RasterizeOccluders",
              "recv": "*Built",
              "decl": "func (b *Built) RasterizeOccluders(buf *render3d.OcclusionBuffer, viewProj math3d.Mat4) int",
              "doc": "RasterizeOccluders clears buf, rasterizes every visible, enabled occluder in\nb for viewProj, builds the Hi-Z pyramid when at least one occluder was\nrasterized, and returns the number of occluders rasterized.\n",
              "file": "pkg/scenemodel/occluder.go",
              "line": 113
            },
            {
              "name": "SampleLightProbes",
              "anchor": "Built.SampleLightProbes",
              "recv": "*Built",
              "decl": "func (b *Built) SampleLightProbes(worldPos math3d.Vec3) (render3d.IrradianceSH, bool)",
              "doc": "SampleLightProbes evaluates the scene's visible, enabled, baked light probe grids at worldPos\nand returns the trilinearly interpolated L2 spherical harmonic irradiance scaled by the chosen\ngrid's intensity. When multiple baked grids contain worldPos, the smallest-volume grid wins\n(ties break in document order); when worldPos is outside every grid, the nearest grid is sampled\n(clamped to its boundary). Returns (zero, false) when no visible baked light probe grid exists.\n",
              "file": "pkg/scenemodel/probes.go",
              "line": 126
            },
            {
              "name": "ShadowLights",
              "anchor": "Built.ShadowLights",
              "recv": "*Built",
              "decl": "func (b *Built) ShadowLights() (dir *render3d.DirectionalLight, point *render3d.PointLight, spot *render3d.SpotLight)",
              "doc": "ShadowLights returns the first visible shadow-casting directional, point and spot lights in b, matching slot 0 of each LightRig slice.\n",
              "file": "pkg/scenemodel/environment.go",
              "line": 211
            },
            {
              "name": "WorldBounds",
              "anchor": "Built.WorldBounds",
              "recv": "*Built",
              "decl": "func (b *Built) WorldBounds() (math3d.AABB, bool)",
              "doc": "WorldBounds returns the union of the world-space AABBs of every visible, enabled drawable in b, or false when b has none.\n",
              "file": "pkg/scenemodel/environment.go",
              "line": 256
            }
          ]
        },
        {
          "name": "Camera",
          "anchor": "Camera",
          "decl": "type Camera struct {\n\t// Node is the scene3d node placing and orienting the camera.\n\tNode *scene3d.Node\n\t// Object is the ID of the scene object the camera belongs to.\n\tObject string\n\t// Doc is a copy of the source camera definition.\n\tDoc sceneformat.Camera3DDoc\n}",
          "doc": "Camera is a 3D camera built from a scene object (sceneformat.ObjectDoc.Camera), attached to its scene3d.Node so moving or rotating the node updates the camera's viewpoint.\n",
          "file": "pkg/scenemodel/environment.go",
          "line": 26,
          "members": [
            {
              "name": "Node",
              "anchor": "Camera.Node",
              "kind": "field",
              "doc": "Node is the scene3d node placing and orienting the camera."
            },
            {
              "name": "Object",
              "anchor": "Camera.Object",
              "kind": "field",
              "doc": "Object is the ID of the scene object the camera belongs to."
            },
            {
              "name": "Doc",
              "anchor": "Camera.Doc",
              "kind": "field",
              "doc": "Doc is a copy of the source camera definition."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "SceneCamera",
              "anchor": "Camera.SceneCamera",
              "recv": "*Camera",
              "decl": "func (c *Camera) SceneCamera(aspect float32) *scene3d.Camera",
              "doc": "SceneCamera constructs a *scene3d.Camera from c's current node world transform and projection settings for the given viewport aspect ratio (width / height).\n",
              "file": "pkg/scenemodel/environment.go",
              "line": 36
            }
          ]
        },
        {
          "name": "Drawable",
          "anchor": "Drawable",
          "decl": "type Drawable struct {\n\t// Node is the scene3d node the parts are drawn at; its LocalBounds hold the parts' bounds.\n\tNode *scene3d.Node\n\t// Object is the ID of the scene object the drawable belongs to.\n\tObject string\n\t// Parts are what the node draws, in the order the model lists them.\n\tParts []Part\n}",
          "doc": "Drawable is a node that draws geometry: an object's node, or a node Build made for a node of the object's model.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 72,
          "members": [
            {
              "name": "Node",
              "anchor": "Drawable.Node",
              "kind": "field",
              "doc": "Node is the scene3d node the parts are drawn at; its LocalBounds hold the parts' bounds."
            },
            {
              "name": "Object",
              "anchor": "Drawable.Object",
              "kind": "field",
              "doc": "Object is the ID of the scene object the drawable belongs to."
            },
            {
              "name": "Parts",
              "anchor": "Drawable.Parts",
              "kind": "field",
              "doc": "Parts are what the node draws, in the order the model lists them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Environment",
          "anchor": "Environment",
          "decl": "type Environment struct {\n\t// Present reports whether the scene declared an environment section.\n\tPresent bool\n\t// Doc is a copy of SceneDoc.Environment when Present is true.\n\tDoc sceneformat.EnvironmentDoc\n\t// Ambient is the linear ambient fill light.\n\tAmbient render3d.AmbientLight\n\t// SkyKind is the resolved sky kind, or empty when Doc.Sky is nil.\n\tSkyKind sceneformat.SkyKind\n\t// SkyColor is the linear RGB color of a SkyColor sky.\n\tSkyColor math3d.Vec3\n\t// SkyClearColor is the display-space tone-mapped clear color for SkyColor.\n\tSkyClearColor core.Color\n\t// SkyCubemap is the linear HDR cubemap for SkyGradient or SkyHDR skies, or nil.\n\tSkyCubemap *render3d.HDRCubemap\n\t// IBLIrradiance is the L2 spherical-harmonic diffuse irradiance when IBLIntensity > 0.\n\tIBLIrradiance render3d.IrradianceSH\n\t// IBLPrefilter is the GGX prefiltered specular cubemap when IBLIntensity > 0.\n\tIBLPrefilter *render3d.HDRCubemap\n\t// IBLIntensity is the effective IBL multiplier (>= 0).\n\tIBLIntensity float32\n\t// Fog is the resolved render3d.Fog configuration.\n\tFog render3d.Fog\n\t// HasFog reports whether distance or height fog is active.\n\tHasFog bool\n\t// ToneMap holds the tone mapping operator and exposure.\n\tToneMap render3d.ToneMapOptions\n}",
          "doc": "Environment is the resolved 3D environment built from sceneformat.SceneDoc.Environment, ready to drive render3d's sky, ambient fill, image-based lighting, fog, tone mapping and exposure.\n",
          "file": "pkg/scenemodel/environment.go",
          "line": 58,
          "members": [
            {
              "name": "Present",
              "anchor": "Environment.Present",
              "kind": "field",
              "doc": "Present reports whether the scene declared an environment section."
            },
            {
              "name": "Doc",
              "anchor": "Environment.Doc",
              "kind": "field",
              "doc": "Doc is a copy of SceneDoc.Environment when Present is true."
            },
            {
              "name": "Ambient",
              "anchor": "Environment.Ambient",
              "kind": "field",
              "doc": "Ambient is the linear ambient fill light."
            },
            {
              "name": "SkyKind",
              "anchor": "Environment.SkyKind",
              "kind": "field",
              "doc": "SkyKind is the resolved sky kind, or empty when Doc.Sky is nil."
            },
            {
              "name": "SkyColor",
              "anchor": "Environment.SkyColor",
              "kind": "field",
              "doc": "SkyColor is the linear RGB color of a SkyColor sky."
            },
            {
              "name": "SkyClearColor",
              "anchor": "Environment.SkyClearColor",
              "kind": "field",
              "doc": "SkyClearColor is the display-space tone-mapped clear color for SkyColor."
            },
            {
              "name": "SkyCubemap",
              "anchor": "Environment.SkyCubemap",
              "kind": "field",
              "doc": "SkyCubemap is the linear HDR cubemap for SkyGradient or SkyHDR skies, or nil."
            },
            {
              "name": "IBLIrradiance",
              "anchor": "Environment.IBLIrradiance",
              "kind": "field",
              "doc": "IBLIrradiance is the L2 spherical-harmonic diffuse irradiance when IBLIntensity > 0."
            },
            {
              "name": "IBLPrefilter",
              "anchor": "Environment.IBLPrefilter",
              "kind": "field",
              "doc": "IBLPrefilter is the GGX prefiltered specular cubemap when IBLIntensity > 0."
            },
            {
              "name": "IBLIntensity",
              "anchor": "Environment.IBLIntensity",
              "kind": "field",
              "doc": "IBLIntensity is the effective IBL multiplier (>= 0)."
            },
            {
              "name": "Fog",
              "anchor": "Environment.Fog",
              "kind": "field",
              "doc": "Fog is the resolved render3d.Fog configuration."
            },
            {
              "name": "HasFog",
              "anchor": "Environment.HasFog",
              "kind": "field",
              "doc": "HasFog reports whether distance or height fog is active."
            },
            {
              "name": "ToneMap",
              "anchor": "Environment.ToneMap",
              "kind": "field",
              "doc": "ToneMap holds the tone mapping operator and exposure."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridMapResolver",
          "anchor": "GridMapResolver",
          "decl": "type GridMapResolver interface {\n\tGridMap(path string) (*world3d.GridMapDoc, error)\n}",
          "doc": "GridMapResolver loads the 3D grid map files objects name in sceneformat.ObjectDoc.GridMap.\npath is the slash-separated path from the project root that the scene file writes, such as \"levels/dungeon.gridmap.yaml\".\n",
          "file": "pkg/scenemodel/assets.go",
          "line": 28,
          "members": [
            {
              "name": "GridMap",
              "anchor": "GridMapResolver.GridMap",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "HDRResolver",
          "anchor": "HDRResolver",
          "decl": "type HDRResolver interface {\n\tHDR(path string) (*render3d.HDRImage, error)\n}",
          "doc": "HDRResolver loads the Radiance .hdr image at path, a slash-separated path from the project root, for an HDR sky (sceneformat.SkyDoc.HDR) or a baked reflection probe cubemap (sceneformat.ReflectionProbeDoc.Cubemap).\n",
          "file": "pkg/scenemodel/assets.go",
          "line": 43,
          "members": [
            {
              "name": "HDR",
              "anchor": "HDRResolver.HDR",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ImageResolver",
          "anchor": "ImageResolver",
          "decl": "type ImageResolver interface {\n\tImage(path string) (image.Image, error)\n}",
          "doc": "ImageResolver loads the image at path, a slash-separated path from the project root, for the texture of a material file (resource.Material.Texture).\n",
          "file": "pkg/scenemodel/assets.go",
          "line": 33,
          "members": [
            {
              "name": "Image",
              "anchor": "ImageResolver.Image",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ImportSettingsResolver",
          "anchor": "ImportSettingsResolver",
          "decl": "type ImportSettingsResolver interface {\n\tImportSettings(modelPath string) (*importsettings.File, error)\n}",
          "doc": "ImportSettingsResolver loads the *.import.yaml sidecar of the model at modelPath, a slash-separated path from the project root such as \"models/tree.glb\". It returns (nil, nil) when the model has no sidecar file.\n",
          "file": "pkg/scenemodel/assets.go",
          "line": 38,
          "members": [
            {
              "name": "ImportSettings",
              "anchor": "ImportSettingsResolver.ImportSettings",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Light",
          "anchor": "Light",
          "decl": "type Light struct {\n\t// Node is the scene3d node placing and aiming the light.\n\tNode *scene3d.Node\n\t// Object is the ID of the scene object the light belongs to.\n\tObject string\n\t// Doc is a copy of the source light definition.\n\tDoc sceneformat.LightDoc\n}",
          "doc": "Light is a 3D light built from a scene object (sceneformat.ObjectDoc.Light), attached to its scene3d.Node so moving or rotating the node updates the light's world position and direction (-Z in local space).\n",
          "file": "pkg/scenemodel/environment.go",
          "line": 16,
          "members": [
            {
              "name": "Node",
              "anchor": "Light.Node",
              "kind": "field",
              "doc": "Node is the scene3d node placing and aiming the light."
            },
            {
              "name": "Object",
              "anchor": "Light.Object",
              "kind": "field",
              "doc": "Object is the ID of the scene object the light belongs to."
            },
            {
              "name": "Doc",
              "anchor": "Light.Doc",
              "kind": "field",
              "doc": "Doc is a copy of the source light definition."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LightProbeGrid",
          "anchor": "LightProbeGrid",
          "decl": "type LightProbeGrid struct {\n\t// Node is the scene3d node placing the light probe grid.\n\tNode *scene3d.Node\n\t// Object is the ID of the scene object the light probe grid belongs to.\n\tObject string\n\t// Doc is a copy of the source light probe grid definition.\n\tDoc sceneformat.LightProbeGridDoc\n\t// Grid is the loaded baked *render3d.LightProbeGrid when Doc.Data is set, or nil when unbaked.\n\tGrid *render3d.LightProbeGrid\n}",
          "doc": "LightProbeGrid is a 3D light probe grid built from a scene object (sceneformat.ObjectDoc.LightProbeGrid),\nlinked to its scene3d.Node and holding any baked L2 spherical harmonic irradiance grid loaded from Doc.Data.\n",
          "file": "pkg/scenemodel/probes.go",
          "line": 75,
          "members": [
            {
              "name": "Node",
              "anchor": "LightProbeGrid.Node",
              "kind": "field",
              "doc": "Node is the scene3d node placing the light probe grid."
            },
            {
              "name": "Object",
              "anchor": "LightProbeGrid.Object",
              "kind": "field",
              "doc": "Object is the ID of the scene object the light probe grid belongs to."
            },
            {
              "name": "Doc",
              "anchor": "LightProbeGrid.Doc",
              "kind": "field",
              "doc": "Doc is a copy of the source light probe grid definition."
            },
            {
              "name": "Grid",
              "anchor": "LightProbeGrid.Grid",
              "kind": "field",
              "doc": "Grid is the loaded baked *render3d.LightProbeGrid when Doc.Data is set, or nil when unbaked."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "WorldBounds",
              "anchor": "LightProbeGrid.WorldBounds",
              "recv": "*LightProbeGrid",
              "decl": "func (g *LightProbeGrid) WorldBounds() math3d.AABB",
              "doc": "WorldBounds returns the world-space axis-aligned volume covering g's light probes.\n",
              "file": "pkg/scenemodel/probes.go",
              "line": 87
            }
          ]
        },
        {
          "name": "LightProbeGridResolver",
          "anchor": "LightProbeGridResolver",
          "decl": "type LightProbeGridResolver interface {\n\tLightProbeGrid(path string) (*render3d.LightProbeGrid, error)\n}",
          "doc": "LightProbeGridResolver loads the baked light probe grid YAML file at path, a slash-separated path from the project root, for a scene object's light probe grid (sceneformat.LightProbeGridDoc.Data).\n",
          "file": "pkg/scenemodel/assets.go",
          "line": 48,
          "members": [
            {
              "name": "LightProbeGrid",
              "anchor": "LightProbeGridResolver.LightProbeGrid",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Material",
          "anchor": "Material",
          "decl": "type Material struct {\n\t// BaseColor is the linear RGBA base color, multiplied by BaseColorTexture's texels.\n\tBaseColor math3d.Vec4\n\t// Metallic and Roughness are the metalness and perceptual roughness, from 0 to 1.\n\tMetallic, Roughness float32\n\t// Emissive is the linear RGB light the surface gives off, its glTF emissive strength included.\n\tEmissive math3d.Vec3\n\t// BaseColorTexture is the sRGB base color image, or nil for none.\n\tBaseColorTexture *Texture\n\t// AlphaMode says how the base color's alpha is used: ignored, a cutout at AlphaCutoff, or blended over what is behind.\n\tAlphaMode render3d.AlphaMode\n\t// AlphaCutoff is the alpha below which a render3d.AlphaMask surface is discarded.\n\tAlphaCutoff float32\n\t// DoubleSided draws the back faces too, lit from the side the viewer sees.\n\tDoubleSided bool\n}",
          "doc": "Material is the surface a Part draws with, in glTF 2.0's metallic-roughness terms.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 25,
          "members": [
            {
              "name": "BaseColor",
              "anchor": "Material.BaseColor",
              "kind": "field",
              "doc": "BaseColor is the linear RGBA base color, multiplied by BaseColorTexture's texels."
            },
            {
              "name": "Metallic",
              "anchor": "Material.Metallic",
              "kind": "field",
              "doc": "Metallic and Roughness are the metalness and perceptual roughness, from 0 to 1."
            },
            {
              "name": "Roughness",
              "anchor": "Material.Roughness",
              "kind": "field",
              "doc": "Metallic and Roughness are the metalness and perceptual roughness, from 0 to 1."
            },
            {
              "name": "Emissive",
              "anchor": "Material.Emissive",
              "kind": "field",
              "doc": "Emissive is the linear RGB light the surface gives off, its glTF emissive strength included."
            },
            {
              "name": "BaseColorTexture",
              "anchor": "Material.BaseColorTexture",
              "kind": "field",
              "doc": "BaseColorTexture is the sRGB base color image, or nil for none."
            },
            {
              "name": "AlphaMode",
              "anchor": "Material.AlphaMode",
              "kind": "field",
              "doc": "AlphaMode says how the base color's alpha is used: ignored, a cutout at AlphaCutoff, or blended over what is behind."
            },
            {
              "name": "AlphaCutoff",
              "anchor": "Material.AlphaCutoff",
              "kind": "field",
              "doc": "AlphaCutoff is the alpha below which a render3d.AlphaMask surface is discarded."
            },
            {
              "name": "DoubleSided",
              "anchor": "Material.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided draws the back faces too, lit from the side the viewer sees."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "MaterialFromFile",
              "anchor": "MaterialFromFile",
              "decl": "func MaterialFromFile(rm *resource.Material) Material",
              "doc": "MaterialFromFile converts a material file into a Material without its texture: the base color and emissive CSS colors converted from sRGB to linear light, the base color's alpha times the opacity, render3d.AlphaBlend when that alpha is below 1, the metalness, roughness and double-sidedness as written. Its 2D blend mode does not apply in 3D, and a 3D surface is always lit, so Unlit is not used either.\n",
              "file": "pkg/scenemodel/build.go",
              "line": 923
            }
          ],
          "methods": []
        },
        {
          "name": "ModelResolver",
          "anchor": "ModelResolver",
          "decl": "type ModelResolver interface {\n\tModel(path string) (*gltf.Document, error)\n}",
          "doc": "ModelResolver loads the glTF models objects name in sceneformat.ObjectDoc.Model, as sceneformat.MaterialResolver loads their material files. path is the slash-separated path from the project root that the scene file writes, such as \"models/crate.glb\". A resolver that returns the same document for the same path lets every object that names it share its decoded textures.\n\nThe ModelResolver given to Build may also implement sceneformat.MaterialResolver, to resolve the material files objects name in ObjectDoc.Material, ImageResolver, to load the textures those material files name, GridMapResolver, to load the 3D grid maps objects name in ObjectDoc.GridMap, ImportSettingsResolver, to read a model's *.import.yaml sidecar for LOD definitions, and HDRResolver, to load Radiance .hdr sky panoramas named in EnvironmentDoc.Sky.HDR. Assets implements all six.\n",
          "file": "pkg/scenemodel/assets.go",
          "line": 22,
          "members": [
            {
              "name": "Model",
              "anchor": "ModelResolver.Model",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Occluder",
          "anchor": "Occluder",
          "decl": "type Occluder struct {\n\t// Node is the scene3d node the occluder follows.\n\tNode *scene3d.Node\n\t// Object is the ID of the scene object that declared the occluder.\n\tObject string\n\t// Mode is sceneformat.OccluderModel or sceneformat.OccluderBox.\n\tMode sceneformat.OccluderMode\n\t// LocalBounds is the occluder's bounding box in Node's local space.\n\tLocalBounds math3d.AABB\n\t// DoubleSided reports whether both front and back faces occlude.\n\tDoubleSided bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Occluder is one occluder attached to a Built 3D scene (Built.Occluders),\nproduced for any scene object that sets sceneformat.ObjectDoc.Occluder.\n",
          "file": "pkg/scenemodel/occluder.go",
          "line": 12,
          "members": [
            {
              "name": "Node",
              "anchor": "Occluder.Node",
              "kind": "field",
              "doc": "Node is the scene3d node the occluder follows."
            },
            {
              "name": "Object",
              "anchor": "Occluder.Object",
              "kind": "field",
              "doc": "Object is the ID of the scene object that declared the occluder."
            },
            {
              "name": "Mode",
              "anchor": "Occluder.Mode",
              "kind": "field",
              "doc": "Mode is sceneformat.OccluderModel or sceneformat.OccluderBox."
            },
            {
              "name": "LocalBounds",
              "anchor": "Occluder.LocalBounds",
              "kind": "field",
              "doc": "LocalBounds is the occluder's bounding box in Node's local space."
            },
            {
              "name": "DoubleSided",
              "anchor": "Occluder.DoubleSided",
              "kind": "field",
              "doc": "DoubleSided reports whether both front and back faces occlude."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "RenderOccluder",
              "anchor": "Occluder.RenderOccluder",
              "recv": "Occluder",
              "decl": "func (o Occluder) RenderOccluder() render3d.Occluder",
              "doc": "RenderOccluder returns a render3d.Occluder positioned at o.Node's current\nworld matrix without copying vertex or index slices.\n",
              "file": "pkg/scenemodel/occluder.go",
              "line": 31
            }
          ]
        },
        {
          "name": "Part",
          "anchor": "Part",
          "decl": "type Part struct {\n\t// Mesh is the triangle geometry in the space of the node that draws it.\n\tMesh render3d.Mesh\n\t// MeshID identifies Mesh among the meshes of one Built, from 0 up: parts that draw the same glTF primitive or primitive shape share it, as render3d.DrawItem.MeshID expects.\n\tMeshID uint32\n\t// Material is the surface Mesh draws with.\n\tMaterial Material\n\t// MaterialID identifies Material among the materials of one Built, from 0 up, shared by the parts that use the same glTF material or material file.\n\tMaterialID uint32\n\t// LODs are the detail levels for this part, ordered from finest (index 0, matching Mesh and MeshID) to coarsest. Empty when the part has only one detail level.\n\tLODs []PartLOD\n\t// contains filtered or unexported fields\n}",
          "doc": "Part is one piece of geometry a node draws with one material.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 55,
          "members": [
            {
              "name": "Mesh",
              "anchor": "Part.Mesh",
              "kind": "field",
              "doc": "Mesh is the triangle geometry in the space of the node that draws it."
            },
            {
              "name": "MeshID",
              "anchor": "Part.MeshID",
              "kind": "field",
              "doc": "MeshID identifies Mesh among the meshes of one Built, from 0 up: parts that draw the same glTF primitive or primitive shape share it, as render3d.DrawItem.MeshID expects."
            },
            {
              "name": "Material",
              "anchor": "Part.Material",
              "kind": "field",
              "doc": "Material is the surface Mesh draws with."
            },
            {
              "name": "MaterialID",
              "anchor": "Part.MaterialID",
              "kind": "field",
              "doc": "MaterialID identifies Material among the materials of one Built, from 0 up, shared by the parts that use the same glTF material or material file."
            },
            {
              "name": "LODs",
              "anchor": "Part.LODs",
              "kind": "field",
              "doc": "LODs are the detail levels for this part, ordered from finest (index 0, matching Mesh and MeshID) to coarsest. Empty when the part has only one detail level."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PartLOD",
          "anchor": "PartLOD",
          "decl": "type PartLOD struct {\n\t// Mesh is the triangle geometry in the space of the node that draws it.\n\tMesh render3d.Mesh\n\t// MeshID identifies Mesh among the meshes of one Built, matching render3d.LODLevel.MeshID.\n\tMeshID uint32\n\t// MinScreenRatio is the minimum viewport-height fraction in [0, 1] at which this level is drawn (render3d.LODLevel.MinScreenRatio).\n\tMinScreenRatio float32\n\t// MaxDistance is the optional maximum camera distance in world units at which this level is drawn (render3d.LODLevel.MaxDistance).\n\tMaxDistance float32\n\t// Triangles and Vertices are the geometry counts of Mesh.\n\tTriangles uint32\n\tVertices  uint32\n}",
          "doc": "PartLOD is one level of detail of a Part, ordered from finest (index 0) to coarsest.\n",
          "file": "pkg/scenemodel/lod.go",
          "line": 16,
          "members": [
            {
              "name": "Mesh",
              "anchor": "PartLOD.Mesh",
              "kind": "field",
              "doc": "Mesh is the triangle geometry in the space of the node that draws it."
            },
            {
              "name": "MeshID",
              "anchor": "PartLOD.MeshID",
              "kind": "field",
              "doc": "MeshID identifies Mesh among the meshes of one Built, matching render3d.LODLevel.MeshID."
            },
            {
              "name": "MinScreenRatio",
              "anchor": "PartLOD.MinScreenRatio",
              "kind": "field",
              "doc": "MinScreenRatio is the minimum viewport-height fraction in [0, 1] at which this level is drawn (render3d.LODLevel.MinScreenRatio)."
            },
            {
              "name": "MaxDistance",
              "anchor": "PartLOD.MaxDistance",
              "kind": "field",
              "doc": "MaxDistance is the optional maximum camera distance in world units at which this level is drawn (render3d.LODLevel.MaxDistance)."
            },
            {
              "name": "Triangles",
              "anchor": "PartLOD.Triangles",
              "kind": "field",
              "doc": "Triangles and Vertices are the geometry counts of Mesh."
            },
            {
              "name": "Vertices",
              "anchor": "PartLOD.Vertices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ProbeBakeOptions",
          "anchor": "ProbeBakeOptions",
          "decl": "type ProbeBakeOptions struct {\n\t// Size overrides the cubemap face resolution in texels; non-positive uses the probe's\n\t// Resolution for reflection probes (default 64) or 16 for light probe grids.\n\tSize int\n\t// Near and Far set the 90-degree cubemap face clip planes; non-positive Near defaults to 0.05,\n\t// and Far <= Near defaults to Near + 200.\n\tNear float32\n\tFar  float32\n\t// FallbackLights supplies the direct light rig used when the built scene has no 3D lights\n\t// and no environment section. When nil, Built.LightRig() is always used.\n\tFallbackLights *render3d.LightRig\n\t// FallbackClearColor sets the background clear color when the scene has no solid or cubemap sky.\n\tFallbackClearColor core.Color\n}",
          "doc": "ProbeBakeOptions configures [BakeReflectionProbe] and [BakeLightProbeGrid].\n",
          "file": "pkg/scenemodel/bake.go",
          "line": 24,
          "members": [
            {
              "name": "Size",
              "anchor": "ProbeBakeOptions.Size",
              "kind": "field",
              "doc": "Size overrides the cubemap face resolution in texels; non-positive uses the probe's\nResolution for reflection probes (default 64) or 16 for light probe grids."
            },
            {
              "name": "Near",
              "anchor": "ProbeBakeOptions.Near",
              "kind": "field",
              "doc": "Near and Far set the 90-degree cubemap face clip planes; non-positive Near defaults to 0.05,\nand Far <= Near defaults to Near + 200."
            },
            {
              "name": "Far",
              "anchor": "ProbeBakeOptions.Far",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FallbackLights",
              "anchor": "ProbeBakeOptions.FallbackLights",
              "kind": "field",
              "doc": "FallbackLights supplies the direct light rig used when the built scene has no 3D lights\nand no environment section. When nil, Built.LightRig() is always used."
            },
            {
              "name": "FallbackClearColor",
              "anchor": "ProbeBakeOptions.FallbackClearColor",
              "kind": "field",
              "doc": "FallbackClearColor sets the background clear color when the scene has no solid or cubemap sky."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReflectionProbe",
          "anchor": "ReflectionProbe",
          "decl": "type ReflectionProbe struct {\n\t// Node is the scene3d node placing the reflection probe.\n\tNode *scene3d.Node\n\t// Object is the ID of the scene object the reflection probe belongs to.\n\tObject string\n\t// Doc is a copy of the source reflection probe definition.\n\tDoc sceneformat.ReflectionProbeDoc\n\t// Cubemap is the loaded base-mip linear HDR cubemap when Doc.Cubemap is set, or nil when unbaked.\n\tCubemap *render3d.HDRCubemap\n\t// Prefiltered is the GGX roughness-prefiltered HDR cubemap built from Cubemap, or nil when unbaked.\n\tPrefiltered *render3d.HDRCubemap\n}",
          "doc": "ReflectionProbe is a 3D reflection probe built from a scene object (sceneformat.ObjectDoc.ReflectionProbe),\nlinked to its scene3d.Node and holding any baked cubemap and GGX prefiltered specular mip chain loaded\nfrom Doc.Cubemap.\n",
          "file": "pkg/scenemodel/probes.go",
          "line": 18,
          "members": [
            {
              "name": "Node",
              "anchor": "ReflectionProbe.Node",
              "kind": "field",
              "doc": "Node is the scene3d node placing the reflection probe."
            },
            {
              "name": "Object",
              "anchor": "ReflectionProbe.Object",
              "kind": "field",
              "doc": "Object is the ID of the scene object the reflection probe belongs to."
            },
            {
              "name": "Doc",
              "anchor": "ReflectionProbe.Doc",
              "kind": "field",
              "doc": "Doc is a copy of the source reflection probe definition."
            },
            {
              "name": "Cubemap",
              "anchor": "ReflectionProbe.Cubemap",
              "kind": "field",
              "doc": "Cubemap is the loaded base-mip linear HDR cubemap when Doc.Cubemap is set, or nil when unbaked."
            },
            {
              "name": "Prefiltered",
              "anchor": "ReflectionProbe.Prefiltered",
              "kind": "field",
              "doc": "Prefiltered is the GGX roughness-prefiltered HDR cubemap built from Cubemap, or nil when unbaked."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "RuntimeProbe",
              "anchor": "ReflectionProbe.RuntimeProbe",
              "recv": "*ReflectionProbe",
              "decl": "func (p *ReflectionProbe) RuntimeProbe(gpuCube *render3d.GPUCubemap) *render3d.ReflectionProbe",
              "doc": "RuntimeProbe builds a *render3d.ReflectionProbe reflecting p's current node transform, visibility,\nand baked state, optionally attaching gpuCube for GPU shading.\n",
              "file": "pkg/scenemodel/probes.go",
              "line": 51
            },
            {
              "name": "WorldBounds",
              "anchor": "ReflectionProbe.WorldBounds",
              "recv": "*ReflectionProbe",
              "decl": "func (p *ReflectionProbe) WorldBounds() (pos, boxMin, boxMax math3d.Vec3)",
              "doc": "WorldBounds returns the probe's capture origin and world-space axis-aligned influence box [boxMin, boxMax].\n",
              "file": "pkg/scenemodel/probes.go",
              "line": 32
            }
          ]
        },
        {
          "name": "Renderer",
          "anchor": "Renderer",
          "decl": "type Renderer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Renderer draws a Built scene's drawables, lights, shadows, reflection probes, light probe grids and environment on a gpu.Device, culled and ordered by a render3d.Queue (frustum culling, software occlusion culling when Built has occluders, LOD selection with hysteresis, opaque surfaces front to back by pipeline, material and mesh, blended ones back to front). Each frame, call PrepareScene (or Prepare with custom lights), call RecordShadows before the main render pass when any light casts shadows, and call DrawSky and Draw inside the render pass. Its GPU resources belong to the scope given to NewRenderer, or are released by Close. Use it from the engine goroutine, like the device.\n",
          "file": "pkg/scenemodel/renderer.go",
          "line": 403,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRenderer",
              "anchor": "NewRenderer",
              "decl": "func NewRenderer(cx *core.Scope, dev *gpu.Device, b *Built, opts RendererOptions) (*Renderer, error)",
              "doc": "NewRenderer uploads every mesh, texture, material, sky cubemap, IBL prefilter and shadow map of b to dev, scoped to cx, and creates the buffers and pipelines that draw them. b's drawables are fixed from here on; their nodes may move, hide and show.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 472
            }
          ],
          "methods": [
            {
              "name": "ClearColor",
              "anchor": "Renderer.ClearColor",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) ClearColor(fallback core.Color) core.Color",
              "doc": "ClearColor returns the scene environment's tone-mapped solid sky color when SkyKind is SkyColor, or fallback otherwise.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1112
            },
            {
              "name": "Close",
              "anchor": "Renderer.Close",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) Close() error",
              "doc": "Close releases every GPU resource of r now instead of when its scope is disposed. It is safe to call on nil and more than once; after it, Prepare returns an error and Draw records nothing.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1372
            },
            {
              "name": "Draw",
              "anchor": "Renderer.Draw",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) Draw(pass *gpu.RenderPass)",
              "doc": "Draw records the parts Prepare planned into pass: the opaque and cutout ones first, then the blended ones back to front. pass must have a color attachment of RendererOptions.ColorFormat and a depth attachment of its DepthFormat. It records nothing once the renderer is closed.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1346
            },
            {
              "name": "DrawSky",
              "anchor": "Renderer.DrawSky",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) DrawSky(pass *gpu.RenderPass)",
              "doc": "DrawSky draws the scene's gradient or HDR skybox cubemap into pass using the scene's exposure and tone mapping operator. Call it before Draw inside the render pass; it does nothing when the scene has no cubemap sky.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1336
            },
            {
              "name": "HasSky",
              "anchor": "Renderer.HasSky",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) HasSky() bool",
              "doc": "HasSky reports whether the built scene has a gradient or HDR skybox cubemap that DrawSky draws.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1107
            },
            {
              "name": "Plan",
              "anchor": "Renderer.Plan",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) Plan() render3d.RenderPlan",
              "doc": "Plan returns the render3d.RenderPlan from the most recent Prepare call, allowing callers to inspect selected LOD indices and culling statistics.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1286
            },
            {
              "name": "Prepare",
              "anchor": "Renderer.Prepare",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) Prepare(cam *scene3d.Camera, lights render3d.LightRig) (render3d.RenderStats, error)",
              "doc": "Prepare writes cam and lights to their buffers and each visible part's world transform to its draw buffer, and plans the frame with the renderer's render3d.Queue: frustum culling and draw order. Call it once a frame before the render pass that Draw records into. It returns the plan's statistics, and an error when lights fails render3d's validation or the renderer is closed.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1143
            },
            {
              "name": "PrepareScene",
              "anchor": "Renderer.PrepareScene",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) PrepareScene(cam *scene3d.Camera) (render3d.RenderStats, error)",
              "doc": "PrepareScene prepares the frame using the built scene's own 3D lights (Built.LightRig), shadow-casting lights (Built.ShadowLights) and environment (sky, IBL, fog, tone mapping, exposure). Call RecordShadows before the main render pass when any light casts shadows, then DrawSky and Draw inside the pass.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1148
            },
            {
              "name": "RecordShadows",
              "anchor": "Renderer.RecordShadows",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) RecordShadows(target render3d.ShadowPassTarget)",
              "doc": "RecordShadows records the depth shadow passes for any active shadow-casting lights prepared by PrepareScene into target (a *gpu.Frame or *gpu.Encoder). Call it before BeginRenderPass for the main scene pass. It does nothing when no shadows are active or in ShadingUnlit.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1294
            },
            {
              "name": "SetShading",
              "anchor": "Renderer.SetShading",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) SetShading(s Shading) error",
              "doc": "SetShading makes Draw shade the parts with s from the next frame on. The first change to ShadingUnlit creates its pipelines, under the scope given to NewRenderer, and returns an error when they cannot be created, leaving the shading as it was; so does an unknown Shading or a closed renderer.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1076
            },
            {
              "name": "Shading",
              "anchor": "Renderer.Shading",
              "recv": "*Renderer",
              "decl": "func (r *Renderer) Shading() Shading",
              "doc": "Shading returns how Draw shades the parts (SetShading).\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 1099
            }
          ]
        },
        {
          "name": "RendererOptions",
          "anchor": "RendererOptions",
          "decl": "type RendererOptions struct {\n\t// Label prefixes the debug labels of the GPU resources; empty is \"scenemodel\".\n\tLabel string\n\t// ColorFormat is the color attachment's format; gpu.FormatUndefined is the device's surface format.\n\tColorFormat gpu.TextureFormat\n\t// DepthFormat is the depth attachment's format, which every pass the renderer draws in must have; gpu.FormatUndefined is gpu.FormatDepth24Plus.\n\tDepthFormat gpu.TextureFormat\n\t// Retained keeps CPU copies of the buffers and textures so NSGo recreates them after a device loss (gpu.BufferDesc.Retained).\n\tRetained bool\n\t// DisableOcclusion disables CPU software occlusion culling even when Built holds occluders.\n\tDisableOcclusion bool\n\t// OcclusionWidth and OcclusionHeight configure the software render3d.OcclusionBuffer resolution; non-positive values use render3d's defaults (128x72).\n\tOcclusionWidth, OcclusionHeight int\n\t// LODHysteresis overrides the relative deadband [0, 0.5] used by render3d.Queue for LOD selection; 0 uses Built.LODHysteresis.\n\tLODHysteresis float32\n\t// LinearOutput compiles linear HDR shaders (no tone mapping or sRGB encode) for rendering into a floating-point target such as FormatRGBA16Float when baking reflection or light probes.\n\tLinearOutput bool\n\t// DisableProbes excludes baked local reflection probes and light probe grids from shading (still keeping direct lights, shadows, sky and emissives), used when baking or rebaking probes.\n\tDisableProbes bool\n}",
          "doc": "RendererOptions configures NewRenderer.\n",
          "file": "pkg/scenemodel/renderer.go",
          "line": 351,
          "members": [
            {
              "name": "Label",
              "anchor": "RendererOptions.Label",
              "kind": "field",
              "doc": "Label prefixes the debug labels of the GPU resources; empty is \"scenemodel\"."
            },
            {
              "name": "ColorFormat",
              "anchor": "RendererOptions.ColorFormat",
              "kind": "field",
              "doc": "ColorFormat is the color attachment's format; gpu.FormatUndefined is the device's surface format."
            },
            {
              "name": "DepthFormat",
              "anchor": "RendererOptions.DepthFormat",
              "kind": "field",
              "doc": "DepthFormat is the depth attachment's format, which every pass the renderer draws in must have; gpu.FormatUndefined is gpu.FormatDepth24Plus."
            },
            {
              "name": "Retained",
              "anchor": "RendererOptions.Retained",
              "kind": "field",
              "doc": "Retained keeps CPU copies of the buffers and textures so NSGo recreates them after a device loss (gpu.BufferDesc.Retained)."
            },
            {
              "name": "DisableOcclusion",
              "anchor": "RendererOptions.DisableOcclusion",
              "kind": "field",
              "doc": "DisableOcclusion disables CPU software occlusion culling even when Built holds occluders."
            },
            {
              "name": "OcclusionWidth",
              "anchor": "RendererOptions.OcclusionWidth",
              "kind": "field",
              "doc": "OcclusionWidth and OcclusionHeight configure the software render3d.OcclusionBuffer resolution; non-positive values use render3d's defaults (128x72)."
            },
            {
              "name": "OcclusionHeight",
              "anchor": "RendererOptions.OcclusionHeight",
              "kind": "field",
              "doc": "OcclusionWidth and OcclusionHeight configure the software render3d.OcclusionBuffer resolution; non-positive values use render3d's defaults (128x72)."
            },
            {
              "name": "LODHysteresis",
              "anchor": "RendererOptions.LODHysteresis",
              "kind": "field",
              "doc": "LODHysteresis overrides the relative deadband [0, 0.5] used by render3d.Queue for LOD selection; 0 uses Built.LODHysteresis."
            },
            {
              "name": "LinearOutput",
              "anchor": "RendererOptions.LinearOutput",
              "kind": "field",
              "doc": "LinearOutput compiles linear HDR shaders (no tone mapping or sRGB encode) for rendering into a floating-point target such as FormatRGBA16Float when baking reflection or light probes."
            },
            {
              "name": "DisableProbes",
              "anchor": "RendererOptions.DisableProbes",
              "kind": "field",
              "doc": "DisableProbes excludes baked local reflection probes and light probe grids from shading (still keeping direct lights, shadows, sky and emissives), used when baking or rebaking probes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Shading",
          "anchor": "Shading",
          "decl": "type Shading uint8",
          "doc": "Shading says how Renderer shades the parts it draws (Renderer.SetShading).\n",
          "file": "pkg/scenemodel/renderer.go",
          "line": 373,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ShadingLit",
                  "anchor": "ShadingLit"
                },
                {
                  "name": "ShadingUnlit",
                  "anchor": "ShadingUnlit"
                }
              ],
              "decl": "const (\n\t// ShadingLit lights every part with the render3d.LightRig given to Prepare (or built.LightRig via PrepareScene), plus the scene's environment. It is a Renderer's shading until SetShading changes it.\n\tShadingLit Shading = iota\n\t// ShadingUnlit draws every part at its textured base color plus its emissive color and ignores the lights, as an editor's unlit view shows a scene.\n\tShadingUnlit\n)",
              "doc": "",
              "file": "pkg/scenemodel/renderer.go",
              "line": 375
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Shading.String",
              "recv": "Shading",
              "decl": "func (s Shading) String() string",
              "doc": "String returns \"lit\" or \"unlit\", or \"Shading(n)\" for any other value.\n",
              "file": "pkg/scenemodel/renderer.go",
              "line": 383
            }
          ]
        },
        {
          "name": "Texture",
          "anchor": "Texture",
          "decl": "type Texture struct {\n\t// Name says where the image came from, such as \"models/crate.glb image 0\" or \"textures/stone.png\", for debug labels.\n\tName string\n\t// Image is the decoded image, whose color is sRGB.\n\tImage image.Image\n\t// Sampler is how the image is filtered and wrapped: the glTF texture's sampler, or linear filtering with repeat wrapping for a material file's texture.\n\tSampler render3d.SamplerOptions\n\t// Mipmaps reports whether the sampler filters between mip levels, so the image needs a mip chain.\n\tMipmaps bool\n}",
          "doc": "Texture is a decoded image a Material samples. Build returns one *Texture per image and sampler, which every material that uses them shares, so a renderer uploads each once.\n",
          "file": "pkg/scenemodel/build.go",
          "line": 43,
          "members": [
            {
              "name": "Name",
              "anchor": "Texture.Name",
              "kind": "field",
              "doc": "Name says where the image came from, such as \"models/crate.glb image 0\" or \"textures/stone.png\", for debug labels."
            },
            {
              "name": "Image",
              "anchor": "Texture.Image",
              "kind": "field",
              "doc": "Image is the decoded image, whose color is sRGB."
            },
            {
              "name": "Sampler",
              "anchor": "Texture.Sampler",
              "kind": "field",
              "doc": "Sampler is how the image is filtered and wrapped: the glTF texture's sampler, or linear filtering with repeat wrapping for a material file's texture."
            },
            {
              "name": "Mipmaps",
              "anchor": "Texture.Mipmaps",
              "kind": "field",
              "doc": "Mipmaps reports whether the sampler filters between mip levels, so the image needs a mip chain."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/screen",
      "name": "screen",
      "dir": "pkg/screen",
      "page": "pkg/screen",
      "synopsis": "Package screen maps a game's virtual canvas onto any window size, converts pointer input between view and virtual coordinates, keeps HUD layers inside the platform's safe area, and applies a player's video settings (full screen, display and frame cap) with Video.",
      "doc": "Package screen maps a game's virtual canvas onto any window size, converts pointer input between view and virtual coordinates, keeps HUD layers inside the platform's safe area, and applies a player's video settings (full screen, display and frame cap) with Video.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultLowPowerCap",
              "anchor": "DefaultLowPowerCap"
            }
          ],
          "decl": "const DefaultLowPowerCap = 30",
          "doc": "DefaultLowPowerCap is the frame cap Video drops to while the system is constrained, when Video.LowPowerCap is 0.\n",
          "file": "pkg/screen/video.go",
          "line": 10
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Constrained",
          "anchor": "Constrained",
          "decl": "func Constrained(lowPower core.LowPowerMode, thermal core.ThermalState) bool",
          "doc": "Constrained reports whether a system in low-power mode lowPower with thermal pressure thermal should draw fewer frames: low-power mode on, or thermal pressure serious or critical.\n",
          "file": "pkg/screen/video.go",
          "line": 134
        },
        {
          "name": "DisplayID",
          "anchor": "DisplayID",
          "decl": "func DisplayID(s save.DisplaySettings, displays []core.DisplayInfo) string",
          "doc": "DisplayID returns the ID of the display s chooses among displays: DisplayID when it is connected, else the display at DisplayIndex, else \"\" for the window's current display.\n",
          "file": "pkg/screen/video.go",
          "line": 119
        },
        {
          "name": "SafeRect",
          "anchor": "SafeRect",
          "decl": "func SafeRect(window core.Size, insets core.Edges) core.Bounds",
          "doc": "SafeRect returns the window rectangle inset by insets in view coordinates, clamped so its origin stays in the window and its size is never negative.\n",
          "file": "pkg/screen/screen.go",
          "line": 300
        },
        {
          "name": "SafeRectForEnv",
          "anchor": "SafeRectForEnv",
          "decl": "func SafeRectForEnv(env *core.Env) core.Bounds",
          "doc": "SafeRectForEnv returns SafeRect for env's current window size and safe-area insets. Called inside a computation or Canvas.Draw, it subscribes to window and safe-area changes.\n",
          "file": "pkg/screen/screen.go",
          "line": 315
        },
        {
          "name": "Snap",
          "anchor": "Snap",
          "decl": "func Snap(x, y float32) (float32, float32)",
          "doc": "Snap rounds x and y to whole virtual pixels.\n",
          "file": "pkg/screen/screen.go",
          "line": 287
        },
        {
          "name": "SnapPoint",
          "anchor": "SnapPoint",
          "decl": "func SnapPoint(p core.Point) core.Point",
          "doc": "SnapPoint rounds p's coordinates to whole virtual pixels.\n",
          "file": "pkg/screen/screen.go",
          "line": 292
        }
      ],
      "types": [
        {
          "name": "Mode",
          "anchor": "Mode",
          "decl": "type Mode uint8",
          "doc": "Mode chooses how a Viewport fits its virtual canvas into a window of another aspect ratio.\n",
          "file": "pkg/screen/screen.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ModeFit",
                  "anchor": "ModeFit"
                },
                {
                  "name": "ModeFill",
                  "anchor": "ModeFill"
                },
                {
                  "name": "ModeStretch",
                  "anchor": "ModeStretch"
                },
                {
                  "name": "ModeExpand",
                  "anchor": "ModeExpand"
                }
              ],
              "decl": "const (\n\t// ModeFit scales uniformly so the virtual canvas fits inside the window, centered, with bars filling any leftover margin.\n\tModeFit Mode = iota\n\t// ModeFill scales uniformly so the virtual canvas covers the window, centered, clipping what overflows.\n\tModeFill\n\t// ModeStretch scales X and Y independently so the virtual canvas fills the window.\n\tModeStretch\n\t// ModeExpand scales uniformly to match the virtual canvas on the tighter axis and expands the visible virtual world along the other so the window fills with no bars or cropping.\n\tModeExpand\n)",
              "doc": "",
              "file": "pkg/screen/screen.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Mode.String",
              "recv": "Mode",
              "decl": "func (m Mode) String() string",
              "doc": "String returns the mode's name.\n",
              "file": "pkg/screen/screen.go",
              "line": 25
            }
          ]
        },
        {
          "name": "Placement",
          "anchor": "Placement",
          "decl": "type Placement struct {\n\t// Rect is the virtual canvas's rectangle in view coordinates. In ModeFill it may extend past the window's edges.\n\tRect core.Bounds\n\t// VirtualSize is the visible virtual canvas size passed to Draw's callback: (Width, Height) in ModeFit, ModeFill and ModeStretch, and expanded along the longer axis in ModeExpand.\n\tVirtualSize core.Size\n\t// ScaleX and ScaleY convert virtual coordinates to view coordinates.\n\tScaleX, ScaleY float32\n\t// Bars are the non-overlapping letterbox or pillarbox rectangles in view coordinates, empty when the virtual canvas covers the window.\n\tBars []core.Bounds\n}",
          "doc": "Placement is where a Viewport places its virtual canvas in a window.\n",
          "file": "pkg/screen/screen.go",
          "line": 55,
          "members": [
            {
              "name": "Rect",
              "anchor": "Placement.Rect",
              "kind": "field",
              "doc": "Rect is the virtual canvas's rectangle in view coordinates. In ModeFill it may extend past the window's edges."
            },
            {
              "name": "VirtualSize",
              "anchor": "Placement.VirtualSize",
              "kind": "field",
              "doc": "VirtualSize is the visible virtual canvas size passed to Draw's callback: (Width, Height) in ModeFit, ModeFill and ModeStretch, and expanded along the longer axis in ModeExpand."
            },
            {
              "name": "ScaleX",
              "anchor": "Placement.ScaleX",
              "kind": "field",
              "doc": "ScaleX and ScaleY convert virtual coordinates to view coordinates."
            },
            {
              "name": "ScaleY",
              "anchor": "Placement.ScaleY",
              "kind": "field",
              "doc": "ScaleX and ScaleY convert virtual coordinates to view coordinates."
            },
            {
              "name": "Bars",
              "anchor": "Placement.Bars",
              "kind": "field",
              "doc": "Bars are the non-overlapping letterbox or pillarbox rectangles in view coordinates, empty when the virtual canvas covers the window."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Video",
          "anchor": "Video",
          "decl": "type Video struct {\n\t// Loop receives the frame cap in effect as its DrawRate; nil caps nothing.\n\tLoop *game.Loop\n\t// LowPowerCap is the frame cap while the system is constrained and AutoDropLowPower is on, DefaultLowPowerCap when 0 or less. A lower FrameCap stays in effect.\n\tLowPowerCap int\n\t// contains filtered or unexported fields\n}",
          "doc": "Video applies a player's video settings (save.DisplaySettings) to a scope's window and a Loop: windowed or full screen on the chosen display, a cap on how many frames Loop draws a second, and, with AutoDropLowPower, a lower cap while the system is in low-power mode or under serious thermal pressure. It ships no UI: a settings screen edits save.Settings, saves it, and applies it, and the game applies the saved settings at start with save.DefaultSettingsStore.LoadAndApply and Video.Apply as save.SettingsTargets.ApplyDisplay.\n\nVideo asks the window to change full screen or display only when the settings change them, or on the first Apply when they differ from the window, so applying other settings does not undo a player leaving full screen with the system's own controls.\n",
          "file": "pkg/screen/video.go",
          "line": 24,
          "members": [
            {
              "name": "Loop",
              "anchor": "Video.Loop",
              "kind": "field",
              "doc": "Loop receives the frame cap in effect as its DrawRate; nil caps nothing."
            },
            {
              "name": "LowPowerCap",
              "anchor": "Video.LowPowerCap",
              "kind": "field",
              "doc": "LowPowerCap is the frame cap while the system is constrained and AutoDropLowPower is on, DefaultLowPowerCap when 0 or less. A lower FrameCap stays in effect."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Video.Apply",
              "recv": "*Video",
              "decl": "func (v *Video) Apply(s save.DisplaySettings) error",
              "doc": "Apply validates s and applies it: it moves the window into or out of full screen on the chosen display when that changed, and sets Loop's DrawRate to the frame cap in effect. Its signature matches save.SettingsTargets.ApplyDisplay; it always returns nil.\n",
              "file": "pkg/screen/video.go",
              "line": 79
            },
            {
              "name": "Dropped",
              "anchor": "Video.Dropped",
              "recv": "*Video",
              "decl": "func (v *Video) Dropped() bool",
              "doc": "Dropped reports whether the frame cap is lowered because the system is constrained and AutoDropLowPower is on. Read inside a computation while Run is active, it subscribes to the system's power state; settings changes arrive through Apply, which the caller makes itself.\n",
              "file": "pkg/screen/video.go",
              "line": 95
            },
            {
              "name": "FrameCap",
              "anchor": "Video.FrameCap",
              "recv": "*Video",
              "decl": "func (v *Video) FrameCap() int",
              "doc": "FrameCap returns the frame cap in effect, 0 for uncapped: the settings' FrameCap, lowered to LowPowerCap while Dropped. It subscribes as Dropped does.\n",
              "file": "pkg/screen/video.go",
              "line": 102
            },
            {
              "name": "Run",
              "anchor": "Video.Run",
              "recv": "*Video",
              "decl": "func (v *Video) Run(cx *core.Scope) (stop func())",
              "doc": "Run starts applying v's settings on cx's window and watching the system's power state, until the current owner is disposed or stop is called; either one releases the lowered cap and stops sending window requests. Settings applied before Run take effect when it starts. Calling Run again stops the earlier run first.\n",
              "file": "pkg/screen/video.go",
              "line": 42
            },
            {
              "name": "Settings",
              "anchor": "Video.Settings",
              "recv": "*Video",
              "decl": "func (v *Video) Settings() save.DisplaySettings",
              "doc": "Settings returns the settings last applied.\n",
              "file": "pkg/screen/video.go",
              "line": 92
            }
          ]
        },
        {
          "name": "Viewport",
          "anchor": "Viewport",
          "decl": "type Viewport struct {\n\t// Width and Height are the virtual canvas size in game points (for example 320 by 180).\n\tWidth, Height float32\n\t// Mode chooses how the virtual canvas adapts to the window's aspect ratio. Its zero value is ModeFit.\n\tMode Mode\n\t// IntegerScale scales by the largest whole integer >= 1 that fits the virtual canvas inside the window, falling back to fractional ModeFit when the window is smaller than 1x, centered with bars.\n\tIntegerScale bool\n\t// PixelSnap aligns viewport offsets to whole points and causes the Viewport's Snap and SnapPoint methods to round coordinates to whole virtual pixels.\n\tPixelSnap bool\n\t// BarColor is the color filled into letterbox and pillarbox bars. Zero defaults to opaque black; core.Transparent draws no bars.\n\tBarColor core.Color\n}",
          "doc": "Viewport maps a virtual resolution onto any window: computing its placement, recording its bars, clip and transform into a core.Drawing, converting pointer input, and deriving safe-area bounds for HUD layers.\n",
          "file": "pkg/screen/screen.go",
          "line": 41,
          "members": [
            {
              "name": "Width",
              "anchor": "Viewport.Width",
              "kind": "field",
              "doc": "Width and Height are the virtual canvas size in game points (for example 320 by 180)."
            },
            {
              "name": "Height",
              "anchor": "Viewport.Height",
              "kind": "field",
              "doc": "Width and Height are the virtual canvas size in game points (for example 320 by 180)."
            },
            {
              "name": "Mode",
              "anchor": "Viewport.Mode",
              "kind": "field",
              "doc": "Mode chooses how the virtual canvas adapts to the window's aspect ratio. Its zero value is ModeFit."
            },
            {
              "name": "IntegerScale",
              "anchor": "Viewport.IntegerScale",
              "kind": "field",
              "doc": "IntegerScale scales by the largest whole integer >= 1 that fits the virtual canvas inside the window, falling back to fractional ModeFit when the window is smaller than 1x, centered with bars."
            },
            {
              "name": "PixelSnap",
              "anchor": "Viewport.PixelSnap",
              "kind": "field",
              "doc": "PixelSnap aligns viewport offsets to whole points and causes the Viewport's Snap and SnapPoint methods to round coordinates to whole virtual pixels."
            },
            {
              "name": "BarColor",
              "anchor": "Viewport.BarColor",
              "kind": "field",
              "doc": "BarColor is the color filled into letterbox and pillarbox bars. Zero defaults to opaque black; core.Transparent draws no bars."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "Viewport.Draw",
              "recv": "Viewport",
              "decl": "func (v Viewport) Draw(d *core.Drawing, window core.Size, fn func(d *core.Drawing, size core.Size))",
              "doc": "Draw records the viewport's bars, clip (when bars or overflow are present), translation and scale into d, calls fn with the visible virtual size, and restores d's state to what it was before.\n",
              "file": "pkg/screen/screen.go",
              "line": 207
            },
            {
              "name": "GameToView",
              "anchor": "Viewport.GameToView",
              "recv": "Viewport",
              "decl": "func (v Viewport) GameToView(window core.Size, p core.Point) core.Point",
              "doc": "GameToView converts a point in virtual game coordinates to view coordinates.\n",
              "file": "pkg/screen/screen.go",
              "line": 260
            },
            {
              "name": "Layout",
              "anchor": "Viewport.Layout",
              "recv": "Viewport",
              "decl": "func (v Viewport) Layout(window core.Size) Placement",
              "doc": "Layout returns where v places its virtual canvas in a window of the given size.\n\nIt returns a zero Placement if the window or virtual resolution has a non-positive dimension.\n",
              "file": "pkg/screen/screen.go",
              "line": 69
            },
            {
              "name": "SafeGameRect",
              "anchor": "Viewport.SafeGameRect",
              "recv": "Viewport",
              "decl": "func (v Viewport) SafeGameRect(window core.Size, insets core.Edges) core.Bounds",
              "doc": "SafeGameRect returns the safe area clamped to the viewport's visible game rectangle and converted into virtual game coordinates, so screen-space HUD layers stay clear of notches, status bars and home indicators.\n",
              "file": "pkg/screen/screen.go",
              "line": 323
            },
            {
              "name": "SafeGameRectForEnv",
              "anchor": "Viewport.SafeGameRectForEnv",
              "recv": "Viewport",
              "decl": "func (v Viewport) SafeGameRectForEnv(env *core.Env) core.Bounds",
              "doc": "SafeGameRectForEnv returns SafeGameRect for env's current window size and safe-area insets. Called inside a computation or Canvas.Draw, it subscribes to window and safe-area changes.\n",
              "file": "pkg/screen/screen.go",
              "line": 343
            },
            {
              "name": "Snap",
              "anchor": "Viewport.Snap",
              "recv": "Viewport",
              "decl": "func (v Viewport) Snap(x, y float32) (float32, float32)",
              "doc": "Snap rounds x and y to whole virtual pixels when v.PixelSnap is true, and returns them unchanged otherwise.\n",
              "file": "pkg/screen/screen.go",
              "line": 271
            },
            {
              "name": "SnapPoint",
              "anchor": "Viewport.SnapPoint",
              "recv": "Viewport",
              "decl": "func (v Viewport) SnapPoint(p core.Point) core.Point",
              "doc": "SnapPoint rounds p to whole virtual pixels when v.PixelSnap is true, and returns it unchanged otherwise.\n",
              "file": "pkg/screen/screen.go",
              "line": 279
            },
            {
              "name": "ViewToGame",
              "anchor": "Viewport.ViewToGame",
              "recv": "Viewport",
              "decl": "func (v Viewport) ViewToGame(window core.Size, p core.Point) (core.Point, bool)",
              "doc": "ViewToGame converts a point in view coordinates (such as core.PressEvent.Position) to virtual game coordinates.\n\nIt returns ok == false when p falls on a letterbox or pillarbox bar, outside the window, or when the viewport has a non-positive layout.\n",
              "file": "pkg/screen/screen.go",
              "line": 245
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/server",
      "name": "server",
      "dir": "pkg/server",
      "page": "pkg/server",
      "synopsis": "Package server runs one or more matches of a game at fixed tick rates in a plain Go process, without an NSGo app, window or core.Scope.",
      "doc": "Package server runs one or more matches of a game at fixed tick rates in a\nplain Go process, without an NSGo app, window or core.Scope.\n\nThe Update function a game gives game.Loop runs unchanged here: each match\nsteps it with the same fixed dt, so dedicated-server code and client-side\nprediction share one simulation.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrMessageTooLarge",
              "anchor": "ErrMessageTooLarge"
            },
            {
              "name": "ErrPendingLimit",
              "anchor": "ErrPendingLimit"
            },
            {
              "name": "ErrInvalidInput",
              "anchor": "ErrInvalidInput"
            },
            {
              "name": "ErrPeerDisconnected",
              "anchor": "ErrPeerDisconnected"
            }
          ],
          "decl": "var (\n\t// ErrMessageTooLarge reports a packet larger than Limits.MaxMessageSize.\n\tErrMessageTooLarge = errors.New(\"server: message too large\")\n\t// ErrPendingLimit reports reliable bytes past Limits.MaxPendingReliable.\n\tErrPendingLimit = errors.New(\"server: pending reliable data limit\")\n\t// ErrInvalidInput reports input refused by Guard.Validate.\n\tErrInvalidInput = errors.New(\"server: invalid input\")\n\t// ErrPeerDisconnected reports a peer the guard has disconnected.\n\tErrPeerDisconnected = errors.New(\"server: peer disconnected\")\n)",
          "doc": "",
          "file": "pkg/server/limits.go",
          "line": 10
        },
        {
          "idents": [
            {
              "name": "ErrInvalidTicket",
              "anchor": "ErrInvalidTicket"
            },
            {
              "name": "ErrDuplicateTicket",
              "anchor": "ErrDuplicateTicket"
            }
          ],
          "decl": "var (\n\t// ErrInvalidTicket reports a ticket with no player or a non-positive room size.\n\tErrInvalidTicket = errors.New(\"server: invalid matchmaking ticket\")\n\t// ErrDuplicateTicket reports a ticket ID already waiting in the queue.\n\tErrDuplicateTicket = errors.New(\"server: duplicate matchmaking ticket\")\n)",
          "doc": "",
          "file": "pkg/server/matchmaking.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "ErrRoomNotFound",
              "anchor": "ErrRoomNotFound"
            },
            {
              "name": "ErrRoomFull",
              "anchor": "ErrRoomFull"
            },
            {
              "name": "ErrRoomEnded",
              "anchor": "ErrRoomEnded"
            },
            {
              "name": "ErrNotInRoom",
              "anchor": "ErrNotInRoom"
            }
          ],
          "decl": "var (\n\t// ErrRoomNotFound reports a room ID or code that names no open room.\n\tErrRoomNotFound = errors.New(\"server: room not found\")\n\t// ErrRoomFull reports a join to a room already at capacity.\n\tErrRoomFull = errors.New(\"server: room full\")\n\t// ErrRoomEnded reports an action on a room whose match has ended.\n\tErrRoomEnded = errors.New(\"server: room match ended\")\n\t// ErrNotInRoom reports a packet from a peer that is not a room member.\n\tErrNotInRoom = errors.New(\"server: peer is not in this room\")\n)",
          "doc": "",
          "file": "pkg/server/rooms.go",
          "line": 14
        }
      ],
      "funcs": [],
      "types": [
        {
          "name": "Guard",
          "anchor": "Guard",
          "decl": "type Guard struct {\n\tLimits Limits\n\tPolicy LimitPolicy\n\t// Validate rejects an input with an error before the simulation sees it.\n\t// A non-nil error counts one violation for the peer.\n\tValidate func(netpkg.PeerID, netpkg.Packet) error\n\t// Now is the token-bucket clock; nil uses time.Now.\n\tNow func() time.Time\n\t// contains filtered or unexported fields\n}",
          "doc": "Guard enforces per-peer limits and validates inputs before a simulation sees\nthem. It is safe on the server's packet loop and independent per peer.\n",
          "file": "pkg/server/limits.go",
          "line": 67,
          "members": [
            {
              "name": "Limits",
              "anchor": "Guard.Limits",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Policy",
              "anchor": "Guard.Policy",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Validate",
              "anchor": "Guard.Validate",
              "kind": "field",
              "doc": "Validate rejects an input with an error before the simulation sees it.\nA non-nil error counts one violation for the peer."
            },
            {
              "name": "Now",
              "anchor": "Guard.Now",
              "kind": "field",
              "doc": "Now is the token-bucket clock; nil uses time.Now."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGuard",
              "anchor": "NewGuard",
              "decl": "func NewGuard(limits Limits, policy LimitPolicy) *Guard",
              "doc": "NewGuard returns a guard with limits and a policy.\n",
              "file": "pkg/server/limits.go",
              "line": 89
            }
          ],
          "methods": [
            {
              "name": "Check",
              "anchor": "Guard.Check",
              "recv": "*Guard",
              "decl": "func (g *Guard) Check(peer netpkg.PeerID, packet netpkg.Packet) (GuardAction, error)",
              "doc": "Check accounts packet for peer and returns what the caller should do. It\nrejects an oversized packet before any buffering and runs Validate only for\nan admitted packet; a rejected input never reaches the caller's simulation.\n",
              "file": "pkg/server/limits.go",
              "line": 96
            },
            {
              "name": "ReleaseReliable",
              "anchor": "Guard.ReleaseReliable",
              "recv": "*Guard",
              "decl": "func (g *Guard) ReleaseReliable(peer netpkg.PeerID, n int)",
              "doc": "ReleaseReliable returns n reserved reliable bytes for peer.\n",
              "file": "pkg/server/limits.go",
              "line": 179
            },
            {
              "name": "ReserveReliable",
              "anchor": "Guard.ReserveReliable",
              "recv": "*Guard",
              "decl": "func (g *Guard) ReserveReliable(peer netpkg.PeerID, n int) error",
              "doc": "ReserveReliable reserves n reliable bytes for peer, refusing past\nMaxPendingReliable.\n",
              "file": "pkg/server/limits.go",
              "line": 166
            },
            {
              "name": "Reset",
              "anchor": "Guard.Reset",
              "recv": "*Guard",
              "decl": "func (g *Guard) Reset(peer netpkg.PeerID)",
              "doc": "Reset forgets a peer's buckets and counters, for a reconnecting peer.\n",
              "file": "pkg/server/limits.go",
              "line": 202
            },
            {
              "name": "Stats",
              "anchor": "Guard.Stats",
              "recv": "*Guard",
              "decl": "func (g *Guard) Stats(peer netpkg.PeerID) PeerStats",
              "doc": "Stats returns a peer's counters.\n",
              "file": "pkg/server/limits.go",
              "line": 191
            }
          ]
        },
        {
          "name": "GuardAction",
          "anchor": "GuardAction",
          "decl": "type GuardAction uint8",
          "doc": "GuardAction is the result of Guard.Check.\n",
          "file": "pkg/server/limits.go",
          "line": 48,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GuardAllow",
                  "anchor": "GuardAllow"
                },
                {
                  "name": "GuardThrottle",
                  "anchor": "GuardThrottle"
                },
                {
                  "name": "GuardDisconnect",
                  "anchor": "GuardDisconnect"
                }
              ],
              "decl": "const (\n\tGuardAllow GuardAction = iota\n\tGuardThrottle\n\tGuardDisconnect\n)",
              "doc": "",
              "file": "pkg/server/limits.go",
              "line": 50
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Health",
          "anchor": "Health",
          "decl": "type Health struct {\n\tReady   func() bool\n\tMetrics func() Metrics\n\t// contains filtered or unexported fields\n}",
          "doc": "Health serves a game server's deployment endpoints:\n\n\tGET /healthz  200 while the process is alive\n\tGET /readyz   200 when Ready reports true, else 503\n\tGET /metrics  Prometheus text metrics from Metrics\n\nReady and Metrics are optional; a nil Ready is always ready and a nil\nMetrics reports zeros.\n",
          "file": "pkg/server/health.go",
          "line": 27,
          "members": [
            {
              "name": "Ready",
              "anchor": "Health.Ready",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Metrics",
              "anchor": "Health.Metrics",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewHealth",
              "anchor": "NewHealth",
              "decl": "func NewHealth(ready func() bool, metrics func() Metrics) *Health",
              "doc": "NewHealth returns deployment endpoints.\n",
              "file": "pkg/server/health.go",
              "line": 35
            }
          ],
          "methods": [
            {
              "name": "ObserveTick",
              "anchor": "Health.ObserveTick",
              "recv": "*Health",
              "decl": "func (h *Health) ObserveTick(d time.Duration)",
              "doc": "ObserveTick records the duration of the last server tick for metrics.\n",
              "file": "pkg/server/health.go",
              "line": 40
            },
            {
              "name": "ServeHTTP",
              "anchor": "Health.ServeHTTP",
              "recv": "*Health",
              "decl": "func (h *Health) ServeHTTP(w http.ResponseWriter, r *http.Request)",
              "doc": "",
              "file": "pkg/server/health.go",
              "line": 47
            }
          ]
        },
        {
          "name": "Join",
          "anchor": "Join",
          "decl": "type Join struct {\n\tRoom     *Room\n\tEpoch    uint64\n\tTick     uint64\n\tSnapshot []byte\n}",
          "doc": "Join reports a peer's admission and, for a running match, the full snapshot\nit must apply before accepting deltas.\n",
          "file": "pkg/server/rooms.go",
          "line": 60,
          "members": [
            {
              "name": "Room",
              "anchor": "Join.Room",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Epoch",
              "anchor": "Join.Epoch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tick",
              "anchor": "Join.Tick",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Snapshot",
              "anchor": "Join.Snapshot",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LimitPolicy",
          "anchor": "LimitPolicy",
          "decl": "type LimitPolicy uint8",
          "doc": "LimitPolicy is what a guard does with a peer that exceeds its limits.\n",
          "file": "pkg/server/limits.go",
          "line": 22,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LimitThrottle",
                  "anchor": "LimitThrottle"
                },
                {
                  "name": "LimitDrop",
                  "anchor": "LimitDrop"
                },
                {
                  "name": "LimitDisconnect",
                  "anchor": "LimitDisconnect"
                }
              ],
              "decl": "const (\n\t// LimitThrottle drops over-limit packets and keeps the peer connected.\n\tLimitThrottle LimitPolicy = iota\n\t// LimitDrop silently drops over-limit packets without a disconnect.\n\tLimitDrop\n\t// LimitDisconnect drops the packet and refuses the peer from then on.\n\tLimitDisconnect\n)",
              "doc": "",
              "file": "pkg/server/limits.go",
              "line": 24
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Limits",
          "anchor": "Limits",
          "decl": "type Limits struct {\n\t// PacketsPerSecond and BytesPerSecond are the sustained rates; Burst*\n\t// allow a short burst on top, defaulting to one second's rate.\n\tPacketsPerSecond float64\n\tBytesPerSecond   float64\n\tBurstPackets     float64\n\tBurstBytes       float64\n\t// MaxMessageSize rejects a single packet before it is buffered.\n\tMaxMessageSize int\n\t// MaxPendingReliable bounds reliable bytes reserved but not yet released.\n\tMaxPendingReliable int\n}",
          "doc": "Limits bounds one peer's traffic. Zero values disable that bound.\n",
          "file": "pkg/server/limits.go",
          "line": 34,
          "members": [
            {
              "name": "PacketsPerSecond",
              "anchor": "Limits.PacketsPerSecond",
              "kind": "field",
              "doc": "PacketsPerSecond and BytesPerSecond are the sustained rates; Burst*\nallow a short burst on top, defaulting to one second's rate."
            },
            {
              "name": "BytesPerSecond",
              "anchor": "Limits.BytesPerSecond",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BurstPackets",
              "anchor": "Limits.BurstPackets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BurstBytes",
              "anchor": "Limits.BurstBytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaxMessageSize",
              "anchor": "Limits.MaxMessageSize",
              "kind": "field",
              "doc": "MaxMessageSize rejects a single packet before it is buffered."
            },
            {
              "name": "MaxPendingReliable",
              "anchor": "Limits.MaxPendingReliable",
              "kind": "field",
              "doc": "MaxPendingReliable bounds reliable bytes reserved but not yet released."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Match",
          "anchor": "Match",
          "decl": "type Match struct {\n\t// Name identifies the match in overrun reports; optional.\n\tName string\n\t// Rate is how many updates run a second, 60 when 0 or negative.\n\tRate int\n\t// Update moves the match on by dt, always 1/Rate seconds. It runs on the\n\t// runner's goroutine and must return promptly.\n\tUpdate func(dt time.Duration)\n\t// OnStop runs once after the match's final tick when the context ends,\n\t// for notifying peers or flushing state. Optional.\n\tOnStop func()\n}",
          "doc": "Match is one game simulation stepped at Rate ticks per second.\n",
          "file": "pkg/server/server.go",
          "line": 16,
          "members": [
            {
              "name": "Name",
              "anchor": "Match.Name",
              "kind": "field",
              "doc": "Name identifies the match in overrun reports; optional."
            },
            {
              "name": "Rate",
              "anchor": "Match.Rate",
              "kind": "field",
              "doc": "Rate is how many updates run a second, 60 when 0 or negative."
            },
            {
              "name": "Update",
              "anchor": "Match.Update",
              "kind": "field",
              "doc": "Update moves the match on by dt, always 1/Rate seconds. It runs on the\nrunner's goroutine and must return promptly."
            },
            {
              "name": "OnStop",
              "anchor": "Match.OnStop",
              "kind": "field",
              "doc": "OnStop runs once after the match's final tick when the context ends,\nfor notifying peers or flushing state. Optional."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Matchmaker",
          "anchor": "Matchmaker",
          "decl": "type Matchmaker struct {\n\t// RoomSize is how many players one match seats.\n\tRoomSize int\n\t// BaseWindow is the initial allowed rating difference (default 100).\n\tBaseWindow float64\n\t// WindowGrowthPerSecond widens the window per second waited (default 10).\n\tWindowGrowthPerSecond float64\n\t// MaxWindow caps the widened window when positive.\n\tMaxWindow float64\n\t// Now is the clock used for waiting time; nil uses time.Now.\n\tNow func() time.Time\n\n\tRule Rule\n\t// contains filtered or unexported fields\n}",
          "doc": "Matchmaker queues tickets per mode and region and groups them into rooms.\nThe zero value is not ready; construct one with NewMatchmaker.\n",
          "file": "pkg/server/matchmaking.go",
          "line": 50,
          "members": [
            {
              "name": "RoomSize",
              "anchor": "Matchmaker.RoomSize",
              "kind": "field",
              "doc": "RoomSize is how many players one match seats."
            },
            {
              "name": "BaseWindow",
              "anchor": "Matchmaker.BaseWindow",
              "kind": "field",
              "doc": "BaseWindow is the initial allowed rating difference (default 100)."
            },
            {
              "name": "WindowGrowthPerSecond",
              "anchor": "Matchmaker.WindowGrowthPerSecond",
              "kind": "field",
              "doc": "WindowGrowthPerSecond widens the window per second waited (default 10)."
            },
            {
              "name": "MaxWindow",
              "anchor": "Matchmaker.MaxWindow",
              "kind": "field",
              "doc": "MaxWindow caps the widened window when positive."
            },
            {
              "name": "Now",
              "anchor": "Matchmaker.Now",
              "kind": "field",
              "doc": "Now is the clock used for waiting time; nil uses time.Now."
            },
            {
              "name": "Rule",
              "anchor": "Matchmaker.Rule",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMatchmaker",
              "anchor": "NewMatchmaker",
              "decl": "func NewMatchmaker(roomSize int) *Matchmaker",
              "doc": "NewMatchmaker returns a matchmaker for rooms of roomSize players.\n",
              "file": "pkg/server/matchmaking.go",
              "line": 68
            }
          ],
          "methods": [
            {
              "name": "Cancel",
              "anchor": "Matchmaker.Cancel",
              "recv": "*Matchmaker",
              "decl": "func (m *Matchmaker) Cancel(id uint64) bool",
              "doc": "Cancel removes ticket id and reports whether it was waiting.\n",
              "file": "pkg/server/matchmaking.go",
              "line": 112
            },
            {
              "name": "Enqueue",
              "anchor": "Matchmaker.Enqueue",
              "recv": "*Matchmaker",
              "decl": "func (m *Matchmaker) Enqueue(t Ticket) error",
              "doc": "Enqueue adds a ticket, defaulting its EnqueuedAt to the matchmaker's clock.\n",
              "file": "pkg/server/matchmaking.go",
              "line": 86
            },
            {
              "name": "Len",
              "anchor": "Matchmaker.Len",
              "recv": "*Matchmaker",
              "decl": "func (m *Matchmaker) Len() int",
              "doc": "Len reports how many tickets are waiting.\n",
              "file": "pkg/server/matchmaking.go",
              "line": 78
            },
            {
              "name": "Match",
              "anchor": "Matchmaker.Match",
              "recv": "*Matchmaker",
              "decl": "func (m *Matchmaker) Match() []Matchup",
              "doc": "Match forms rooms from the waiting tickets, removes their tickets and\nreturns the matches. Tickets that cannot fill a room stay queued.\n",
              "file": "pkg/server/matchmaking.go",
              "line": 145
            },
            {
              "name": "Waiting",
              "anchor": "Matchmaker.Waiting",
              "recv": "*Matchmaker",
              "decl": "func (m *Matchmaker) Waiting() []Ticket",
              "doc": "Waiting returns copies of the queued tickets, oldest first.\n",
              "file": "pkg/server/matchmaking.go",
              "line": 124
            }
          ]
        },
        {
          "name": "Matchup",
          "anchor": "Matchup",
          "decl": "type Matchup struct {\n\tMode, Region string\n\tTicketIDs    []uint64\n\tPlayers      []string\n}",
          "doc": "Match is a set of tickets assigned to one room.\n",
          "file": "pkg/server/matchmaking.go",
          "line": 36,
          "members": [
            {
              "name": "Mode",
              "anchor": "Matchup.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Region",
              "anchor": "Matchup.Region",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TicketIDs",
              "anchor": "Matchup.TicketIDs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Players",
              "anchor": "Matchup.Players",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Metrics",
          "anchor": "Metrics",
          "decl": "type Metrics struct {\n\tPeers     int\n\tRooms     int\n\tTickNanos int64\n\tBytesIn   uint64\n\tBytesOut  uint64\n}",
          "doc": "Metrics is the server state exposed to health and metrics endpoints.\n",
          "file": "pkg/server/health.go",
          "line": 11,
          "members": [
            {
              "name": "Peers",
              "anchor": "Metrics.Peers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rooms",
              "anchor": "Metrics.Rooms",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TickNanos",
              "anchor": "Metrics.TickNanos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BytesIn",
              "anchor": "Metrics.BytesIn",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BytesOut",
              "anchor": "Metrics.BytesOut",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PeerStats",
          "anchor": "PeerStats",
          "decl": "type PeerStats struct {\n\tPackets      uint64\n\tBytes        uint64\n\tDropped      uint64\n\tViolations   uint64\n\tPendingBytes int\n}",
          "doc": "PeerStats counts one peer's traffic and refusals.\n",
          "file": "pkg/server/limits.go",
          "line": 57,
          "members": [
            {
              "name": "Packets",
              "anchor": "PeerStats.Packets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bytes",
              "anchor": "PeerStats.Bytes",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dropped",
              "anchor": "PeerStats.Dropped",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Violations",
              "anchor": "PeerStats.Violations",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PendingBytes",
              "anchor": "PeerStats.PendingBytes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Room",
          "anchor": "Room",
          "decl": "type Room struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Room groups peers for one match. A room owns its members and inbox: packets\ndelivered through one room are never visible to another.\n",
          "file": "pkg/server/rooms.go",
          "line": 69,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Advance",
              "anchor": "Room.Advance",
              "recv": "*Room",
              "decl": "func (r *Room) Advance()",
              "doc": "Advance increments the room's tick while a match runs.\n",
              "file": "pkg/server/rooms.go",
              "line": 116
            },
            {
              "name": "Capacity",
              "anchor": "Room.Capacity",
              "recv": "*Room",
              "decl": "func (r *Room) Capacity() int",
              "doc": "Capacity returns the maximum number of peers.\n",
              "file": "pkg/server/rooms.go",
              "line": 92
            },
            {
              "name": "Code",
              "anchor": "Room.Code",
              "recv": "*Room",
              "decl": "func (r *Room) Code() string",
              "doc": "Code returns the join code of a private room, or \"\" for a public one.\n",
              "file": "pkg/server/rooms.go",
              "line": 89
            },
            {
              "name": "Deliver",
              "anchor": "Room.Deliver",
              "recv": "*Room",
              "decl": "func (r *Room) Deliver(from netpkg.PeerID, p netpkg.Packet) error",
              "doc": "Deliver routes a packet from a member into this room's inbox. A peer outside\nthe room cannot inject packets, so one room's traffic never reaches another.\n",
              "file": "pkg/server/rooms.go",
              "line": 160
            },
            {
              "name": "End",
              "anchor": "Room.End",
              "recv": "*Room",
              "decl": "func (r *Room) End()",
              "doc": "End ends the running match. The room stays open so its peers can see the\nresult; a later Start begins the next epoch.\n",
              "file": "pkg/server/rooms.go",
              "line": 152
            },
            {
              "name": "Epoch",
              "anchor": "Room.Epoch",
              "recv": "*Room",
              "decl": "func (r *Room) Epoch() uint64",
              "doc": "Epoch returns the current match epoch. Every Start begins a new epoch.\n",
              "file": "pkg/server/rooms.go",
              "line": 102
            },
            {
              "name": "ID",
              "anchor": "Room.ID",
              "recv": "*Room",
              "decl": "func (r *Room) ID() uint64",
              "doc": "ID returns the room's manager-assigned ID.\n",
              "file": "pkg/server/rooms.go",
              "line": 86
            },
            {
              "name": "Members",
              "anchor": "Room.Members",
              "recv": "*Room",
              "decl": "func (r *Room) Members() []netpkg.PeerID",
              "doc": "Members returns the current peers in admission order not kept.\n",
              "file": "pkg/server/rooms.go",
              "line": 125
            },
            {
              "name": "Recv",
              "anchor": "Room.Recv",
              "recv": "*Room",
              "decl": "func (r *Room) Recv(peer netpkg.PeerID) (netpkg.Packet, bool)",
              "doc": "Recv pops the next packet delivered by peer. Non-members and empty inboxes\nreport false.\n",
              "file": "pkg/server/rooms.go",
              "line": 175
            },
            {
              "name": "Start",
              "anchor": "Room.Start",
              "recv": "*Room",
              "decl": "func (r *Room) Start() error",
              "doc": "Start begins a match, or starts the next one after End: the epoch advances\nand the tick resets to zero so every client can drop the previous match's\ntick state without waiting for the counter to wrap past it.\n",
              "file": "pkg/server/rooms.go",
              "line": 138
            },
            {
              "name": "State",
              "anchor": "Room.State",
              "recv": "*Room",
              "decl": "func (r *Room) State() RoomState",
              "doc": "State returns the match lifecycle state.\n",
              "file": "pkg/server/rooms.go",
              "line": 95
            },
            {
              "name": "Tick",
              "anchor": "Room.Tick",
              "recv": "*Room",
              "decl": "func (r *Room) Tick() uint64",
              "doc": "Tick returns the room's current fixed-step tick.\n",
              "file": "pkg/server/rooms.go",
              "line": 109
            }
          ]
        },
        {
          "name": "RoomInfo",
          "anchor": "RoomInfo",
          "decl": "type RoomInfo struct {\n\tID       uint64\n\tCapacity int\n\tState    RoomState\n\tEpoch    uint64\n\tTick     uint64\n\tMembers  int\n\tPrivate  bool\n}",
          "doc": "RoomInfo is a snapshot of a room for listing.\n",
          "file": "pkg/server/rooms.go",
          "line": 48,
          "members": [
            {
              "name": "ID",
              "anchor": "RoomInfo.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Capacity",
              "anchor": "RoomInfo.Capacity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "State",
              "anchor": "RoomInfo.State",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Epoch",
              "anchor": "RoomInfo.Epoch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tick",
              "anchor": "RoomInfo.Tick",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Members",
              "anchor": "RoomInfo.Members",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Private",
              "anchor": "RoomInfo.Private",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RoomState",
          "anchor": "RoomState",
          "decl": "type RoomState uint8",
          "doc": "RoomState is a room's match lifecycle.\n",
          "file": "pkg/server/rooms.go",
          "line": 26,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RoomWaiting",
                  "anchor": "RoomWaiting"
                },
                {
                  "name": "RoomRunning",
                  "anchor": "RoomRunning"
                },
                {
                  "name": "RoomEnded",
                  "anchor": "RoomEnded"
                }
              ],
              "decl": "const (\n\tRoomWaiting RoomState = iota // open, match not started\n\tRoomRunning                  // match in progress\n\tRoomEnded                    // match ended, next Start begins a new one\n)",
              "doc": "",
              "file": "pkg/server/rooms.go",
              "line": 28
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "RoomState.String",
              "recv": "RoomState",
              "decl": "func (s RoomState) String() string",
              "doc": "",
              "file": "pkg/server/rooms.go",
              "line": 34
            }
          ]
        },
        {
          "name": "Rooms",
          "anchor": "Rooms",
          "decl": "type Rooms struct {\n\t// EmptyTimeout is how long an empty room stays open before Tick closes it.\n\tEmptyTimeout time.Duration\n\t// Snapshot, when set, returns the full state a late joiner needs before\n\t// deltas. It is called for a join to a running match.\n\tSnapshot func(*Room) []byte\n\t// CodeGenerator makes private room codes; nil uses six random letters.\n\tCodeGenerator func() string\n\t// Now is the clock for empty-room timeouts; nil uses time.Now.\n\tNow func() time.Time\n\t// contains filtered or unexported fields\n}",
          "doc": "Rooms manages the rooms of one server process.\n",
          "file": "pkg/server/rooms.go",
          "line": 192,
          "members": [
            {
              "name": "EmptyTimeout",
              "anchor": "Rooms.EmptyTimeout",
              "kind": "field",
              "doc": "EmptyTimeout is how long an empty room stays open before Tick closes it."
            },
            {
              "name": "Snapshot",
              "anchor": "Rooms.Snapshot",
              "kind": "field",
              "doc": "Snapshot, when set, returns the full state a late joiner needs before\ndeltas. It is called for a join to a running match."
            },
            {
              "name": "CodeGenerator",
              "anchor": "Rooms.CodeGenerator",
              "kind": "field",
              "doc": "CodeGenerator makes private room codes; nil uses six random letters."
            },
            {
              "name": "Now",
              "anchor": "Rooms.Now",
              "kind": "field",
              "doc": "Now is the clock for empty-room timeouts; nil uses time.Now."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRooms",
              "anchor": "NewRooms",
              "decl": "func NewRooms() *Rooms",
              "doc": "NewRooms returns an empty room manager.\n",
              "file": "pkg/server/rooms.go",
              "line": 210
            }
          ],
          "methods": [
            {
              "name": "Create",
              "anchor": "Rooms.Create",
              "recv": "*Rooms",
              "decl": "func (rs *Rooms) Create(capacity int, private bool) (*Room, error)",
              "doc": "Create opens a room. capacity <= 0 uses four players. A private room gets a\ncode that JoinCode accepts.\n",
              "file": "pkg/server/rooms.go",
              "line": 216
            },
            {
              "name": "Join",
              "anchor": "Rooms.Join",
              "recv": "*Rooms",
              "decl": "func (rs *Rooms) Join(id uint64, peer netpkg.PeerID) (Join, error)",
              "doc": "Join admits peer to room id. A join to a running match carries the full\nsnapshot from Snapshot, so the joiner applies it before any delta.\n",
              "file": "pkg/server/rooms.go",
              "line": 260
            },
            {
              "name": "JoinCode",
              "anchor": "Rooms.JoinCode",
              "recv": "*Rooms",
              "decl": "func (rs *Rooms) JoinCode(code string, peer netpkg.PeerID) (Join, error)",
              "doc": "JoinCode admits peer to the private room with code.\n",
              "file": "pkg/server/rooms.go",
              "line": 271
            },
            {
              "name": "Leave",
              "anchor": "Rooms.Leave",
              "recv": "*Rooms",
              "decl": "func (rs *Rooms) Leave(id uint64, peer netpkg.PeerID) bool",
              "doc": "Leave removes peer from room id and reports whether it was a member. The\nroom closes after EmptyTimeout once its last member leaves.\n",
              "file": "pkg/server/rooms.go",
              "line": 307
            },
            {
              "name": "List",
              "anchor": "Rooms.List",
              "recv": "*Rooms",
              "decl": "func (rs *Rooms) List() []RoomInfo",
              "doc": "List returns open rooms ordered by ID.\n",
              "file": "pkg/server/rooms.go",
              "line": 326
            },
            {
              "name": "Tick",
              "anchor": "Rooms.Tick",
              "recv": "*Rooms",
              "decl": "func (rs *Rooms) Tick() []uint64",
              "doc": "Tick closes rooms that have been empty for at least EmptyTimeout and returns\ntheir IDs. A zero EmptyTimeout closes them as soon as Tick next runs.\n",
              "file": "pkg/server/rooms.go",
              "line": 344
            }
          ]
        },
        {
          "name": "Rule",
          "anchor": "Rule",
          "decl": "type Rule func(tickets []*Ticket, roomSize int, window func(*Ticket) float64) []Matchup",
          "doc": "Rule chooses matches from a group of tickets that share a mode and region.\nwindow reports a ticket's current skill window at the rule's time. The\ndefault rule fills rooms with parties whose ratings fit; a game can replace\nit for custom matching.\n",
          "file": "pkg/server/matchmaking.go",
          "line": 46,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Runner",
          "anchor": "Runner",
          "decl": "type Runner struct {\n\t// Matches are the matches to run. A nil Update is an error.\n\tMatches []*Match\n\t// OnOverrun, when set, reports a tick whose Update ran longer than its\n\t// interval. lag is the time past the interval and missed is how many whole\n\t// intervals that covers. The runner does not catch up the missed ticks: the\n\t// next tick is scheduled from now, so a slow update slows the match instead\n\t// of running a burst.\n\tOnOverrun func(m *Match, lag time.Duration, missed int)\n}",
          "doc": "Runner steps the matches in Matches concurrently, each at its own rate,\nuntil its context is canceled.\n",
          "file": "pkg/server/server.go",
          "line": 31,
          "members": [
            {
              "name": "Matches",
              "anchor": "Runner.Matches",
              "kind": "field",
              "doc": "Matches are the matches to run. A nil Update is an error."
            },
            {
              "name": "OnOverrun",
              "anchor": "Runner.OnOverrun",
              "kind": "field",
              "doc": "OnOverrun, when set, reports a tick whose Update ran longer than its\ninterval. lag is the time past the interval and missed is how many whole\nintervals that covers. The runner does not catch up the missed ticks: the\nnext tick is scheduled from now, so a slow update slows the match instead\nof running a burst."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Run",
              "anchor": "Runner.Run",
              "recv": "*Runner",
              "decl": "func (r *Runner) Run(ctx context.Context) error",
              "doc": "Run starts every match and blocks until ctx is canceled and each match has\nfinished its current tick and run OnStop. It returns an error without\nstarting anything when a match has no Update.\n",
              "file": "pkg/server/server.go",
              "line": 54
            }
          ]
        },
        {
          "name": "Ticket",
          "anchor": "Ticket",
          "decl": "type Ticket struct {\n\t// ID identifies the ticket for cancellation and in a Match.\n\tID uint64\n\t// Mode and Region group tickets that may meet.\n\tMode, Region string\n\t// Rating is the party's skill rating; the window widens from it as the\n\t// ticket waits.\n\tRating float64\n\t// Party lists the players in the ticket. It must hold at least one player\n\t// and is placed whole or not at all.\n\tParty []string\n\t// EnqueuedAt is when the ticket started waiting; zero uses the time it was\n\t// enqueued.\n\tEnqueuedAt time.Time\n}",
          "doc": "Ticket is one matchmaking request. A party stays together in a room.\n",
          "file": "pkg/server/matchmaking.go",
          "line": 19,
          "members": [
            {
              "name": "ID",
              "anchor": "Ticket.ID",
              "kind": "field",
              "doc": "ID identifies the ticket for cancellation and in a Match."
            },
            {
              "name": "Mode",
              "anchor": "Ticket.Mode",
              "kind": "field",
              "doc": "Mode and Region group tickets that may meet."
            },
            {
              "name": "Region",
              "anchor": "Ticket.Region",
              "kind": "field",
              "doc": "Mode and Region group tickets that may meet."
            },
            {
              "name": "Rating",
              "anchor": "Ticket.Rating",
              "kind": "field",
              "doc": "Rating is the party's skill rating; the window widens from it as the\nticket waits."
            },
            {
              "name": "Party",
              "anchor": "Ticket.Party",
              "kind": "field",
              "doc": "Party lists the players in the ticket. It must hold at least one player\nand is placed whole or not at all."
            },
            {
              "name": "EnqueuedAt",
              "anchor": "Ticket.EnqueuedAt",
              "kind": "field",
              "doc": "EnqueuedAt is when the ticket started waiting; zero uses the time it was\nenqueued."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/skeletal",
      "name": "skeletal",
      "dir": "pkg/skeletal",
      "page": "pkg/skeletal",
      "synopsis": "Package skeletal loads, saves and animates 2D skeletal rigs drawn through sprite.Batch.",
      "doc": "Package skeletal loads, saves and animates 2D skeletal rigs drawn through sprite.Batch.\n\n# Format decision\n\nRigs use an open, versioned YAML format (.skel.yaml, version 1) that Load reads and Encode writes. Choosing an open schema over Spine's export avoids Spine's proprietary runtime license, matches NSGo's screen coordinates directly, and is simple to export from DragonBones, Blender or custom scripts. Like every file a game's author edits, a rig is plain text: one bone, slot, attachment or keyframe per line, so it can be edited by hand and reviewed as a diff. A version-1 rig written as JSON loads too when the JSON is also valid YAML: keys spelled exactly as the schema spells them (matching is case-sensitive) and no `\\/` escape, which YAML does not have.\n\nLoad is strict: it rejects unknown fields, duplicate keys, trailing documents, unsupported versions and non-finite numbers, as well as every structural error listed on Load.\n\n# Coordinates and units\n\nCoordinates match package sprite and core.Drawing: +X points right, +Y points down, and rotations are in radians, clockwise on the screen. Keyframe times and animation durations are written in seconds, at most MaxSeconds, and stored as time.Duration in Go.\n\n# Schema (version 1)\n\nA rig file is a YAML mapping with:\n\n  - version (int, required): must be 1.\n  - name (string, optional): rig name.\n  - bones (sequence): bone hierarchy in bind pose. Each bone has name (required, unique), optional parent (another bone's name), local offset x and y, local rotation in radians, local scaleX and scaleY (default 1), and optional length for tooling. Cycles and missing parents are rejected.\n  - slots (sequence): draw-ordered list, back to front. Each slot has name (required, unique), bone (required, an existing bone's name), optional attachment (default atlas frame name), and alpha in [0, 1] (default 1).\n  - skins (mapping): maps skin name (default \"default\") to a mapping of slot name to an attachment {frame, x, y, rotation, scaleX, scaleY, originX, originY}. scaleX and scaleY default to 1. Slots missing from the active skin fall back to \"default\". An empty frame hides the slot.\n  - animations (mapping): maps animation name to {duration, loop, bones, slots}. duration is in seconds (derived from the last keyframe when omitted). Each bone timeline has optional translate [{time, x, y, curve, bezier}], rotate [{time, angle, curve, bezier}] and scale [{time, x, y, curve, bezier}], applied relative to bind pose (translate and rotate add; scale multiplies). Each slot timeline has optional attachment [{time, frame}] and alpha [{time, value, curve, bezier}]. curve is \"linear\" (default), \"stepped\", or \"bezier\" with bezier: [cx1, cy1, cx2, cy2] where cx1, cx2 lie in [0, 1]; bezier is rejected on other curves.\n\n# Canonical form\n\nEncode writes one canonical form: keys in schema order, skins, attachments, animations and timelines sorted by name in plain byte order (as sort.Strings sorts them), each bone, slot, attachment and keyframe as a one-line flow mapping, fields equal to their defaults left out, except that keyframes always write their time and values and animations their duration, and numbers in plain decimal notation, never with an exponent. Loading a canonical file and encoding it gives the same bytes back, and loading what Encode wrote gives the same rig. Comments and anchors are not kept.\n\n# Sample\n\n\tversion: 1\n\tname: runner\n\tbones:\n\t  - {name: root}\n\t  - {name: torso, parent: root, y: -18, length: 16}\n\t  - {name: head, parent: torso, y: -16, length: 12}\n\tslots:\n\t  - {name: torso, bone: torso}\n\t  - {name: head, bone: head}\n\tskins:\n\t  default:\n\t    head: {frame: head, originX: 6, originY: 12}\n\t    torso: {frame: torso, originX: 6, originY: 16}\n\tanimations:\n\t  idle:\n\t    duration: 1\n\t    loop: true\n\t    bones:\n\t      torso:\n\t        translate:\n\t          - {time: 0, x: 0, y: 0, curve: bezier, bezier: [0.25, 0.1, 0.25, 1]}\n\t          - {time: 0.5, x: 0, y: -2}\n\t          - {time: 1, x: 0, y: 0}\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the schema version that Load reads and Encode writes.\n",
          "file": "pkg/skeletal/format.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "MaxSeconds",
              "anchor": "MaxSeconds"
            }
          ],
          "decl": "const MaxSeconds = 1_000_000",
          "doc": "MaxSeconds is the longest keyframe time or animation duration, in seconds, that a rig may hold. Within it, a time written in seconds by Encode loads back to the same nanosecond.\n",
          "file": "pkg/skeletal/format.go",
          "line": 22
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(sd *SkeletonData) ([]byte, error)",
          "doc": "Encode serializes sd as a version-1 .skel.yaml document and checks that the result loads.\n\nThe output is deterministic: keys follow the schema's order, skins, attachments, animations and timelines are sorted by name in byte order, numbers are written in plain decimal notation without an exponent, every bone, slot, attachment and keyframe sits on one line in flow style, and values equal to their defaults are left out, except that keyframes always spell out their time and values and animations their duration. Encoding the result of Load gives the same bytes back for a file already in this form, and loading the result of Encode gives data equal to sd.\n\nEncode reports an error, and writes nothing, when sd would not load: a missing or dangling name, a cycle, an unknown curve, a non-finite number, a time outside [0, MaxSeconds], Bezier control points on a curve that is not CurveBezier, an Animation whose Name differs from its key in Animations, or any other rule Load enforces. It does not modify sd.\n",
          "file": "pkg/skeletal/encode.go",
          "line": 20
        }
      ],
      "types": [
        {
          "name": "Animation",
          "anchor": "Animation",
          "decl": "type Animation struct {\n\t// Name is the animation's key in SkeletonData.Animations.\n\tName string\n\t// Duration is the length of one pass of the animation.\n\tDuration time.Duration\n\t// Loop is the file's default looping preference for this animation.\n\tLoop bool\n\t// Bones maps bone names to their transform timelines.\n\tBones map[string]BoneTimeline\n\t// Slots maps slot names to their attachment and alpha timelines.\n\tSlots map[string]SlotTimeline\n\t// contains filtered or unexported fields\n}",
          "doc": "Animation holds the bone and slot timelines for one named motion.\n",
          "file": "pkg/skeletal/format.go",
          "line": 106,
          "members": [
            {
              "name": "Name",
              "anchor": "Animation.Name",
              "kind": "field",
              "doc": "Name is the animation's key in SkeletonData.Animations."
            },
            {
              "name": "Duration",
              "anchor": "Animation.Duration",
              "kind": "field",
              "doc": "Duration is the length of one pass of the animation."
            },
            {
              "name": "Loop",
              "anchor": "Animation.Loop",
              "kind": "field",
              "doc": "Loop is the file's default looping preference for this animation."
            },
            {
              "name": "Bones",
              "anchor": "Animation.Bones",
              "kind": "field",
              "doc": "Bones maps bone names to their transform timelines."
            },
            {
              "name": "Slots",
              "anchor": "Animation.Slots",
              "kind": "field",
              "doc": "Slots maps slot names to their attachment and alpha timelines."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Attachment",
          "anchor": "Attachment",
          "decl": "type Attachment struct {\n\t// Frame is the atlas frame name to draw; empty hides the slot.\n\tFrame string\n\t// X and Y are the attachment's offset in its bone's local space.\n\tX, Y float32\n\t// Rotation is the attachment's local rotation in radians, clockwise on the screen.\n\tRotation float32\n\t// ScaleX and ScaleY are the attachment's local scales, 1 when omitted in the file.\n\tScaleX, ScaleY float32\n\t// OriginX and OriginY are the pivot point of the untrimmed atlas frame, matching sprite.Sprite.\n\tOriginX, OriginY float32\n}",
          "doc": "Attachment places one atlas frame on a slot, relative to the slot's bone.\n",
          "file": "pkg/skeletal/format.go",
          "line": 80,
          "members": [
            {
              "name": "Frame",
              "anchor": "Attachment.Frame",
              "kind": "field",
              "doc": "Frame is the atlas frame name to draw; empty hides the slot."
            },
            {
              "name": "X",
              "anchor": "Attachment.X",
              "kind": "field",
              "doc": "X and Y are the attachment's offset in its bone's local space."
            },
            {
              "name": "Y",
              "anchor": "Attachment.Y",
              "kind": "field",
              "doc": "X and Y are the attachment's offset in its bone's local space."
            },
            {
              "name": "Rotation",
              "anchor": "Attachment.Rotation",
              "kind": "field",
              "doc": "Rotation is the attachment's local rotation in radians, clockwise on the screen."
            },
            {
              "name": "ScaleX",
              "anchor": "Attachment.ScaleX",
              "kind": "field",
              "doc": "ScaleX and ScaleY are the attachment's local scales, 1 when omitted in the file."
            },
            {
              "name": "ScaleY",
              "anchor": "Attachment.ScaleY",
              "kind": "field",
              "doc": "ScaleX and ScaleY are the attachment's local scales, 1 when omitted in the file."
            },
            {
              "name": "OriginX",
              "anchor": "Attachment.OriginX",
              "kind": "field",
              "doc": "OriginX and OriginY are the pivot point of the untrimmed atlas frame, matching sprite.Sprite."
            },
            {
              "name": "OriginY",
              "anchor": "Attachment.OriginY",
              "kind": "field",
              "doc": "OriginX and OriginY are the pivot point of the untrimmed atlas frame, matching sprite.Sprite."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AttachmentKeyframe",
          "anchor": "AttachmentKeyframe",
          "decl": "type AttachmentKeyframe struct {\n\tTime  time.Duration\n\tFrame string\n}",
          "doc": "AttachmentKeyframe swaps a slot's atlas frame at Time; an empty Frame hides the slot.\n",
          "file": "pkg/skeletal/format.go",
          "line": 163,
          "members": [
            {
              "name": "Time",
              "anchor": "AttachmentKeyframe.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frame",
              "anchor": "AttachmentKeyframe.Frame",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BoneData",
          "anchor": "BoneData",
          "decl": "type BoneData struct {\n\t// Name uniquely identifies the bone in the skeleton.\n\tName string\n\t// Parent is the parent bone's Name, or empty for a root bone.\n\tParent string\n\t// X and Y are the bone's bind-pose offset in its parent's space.\n\tX, Y float32\n\t// Rotation is the bone's bind-pose rotation in radians, clockwise on the screen.\n\tRotation float32\n\t// ScaleX and ScaleY are the bone's bind-pose scales, 1 when omitted in the file.\n\tScaleX, ScaleY float32\n\t// Length is an optional bone length for editors and debug overlays.\n\tLength float32\n}",
          "doc": "BoneData describes one bone's bind pose relative to its parent.\n",
          "file": "pkg/skeletal/format.go",
          "line": 49,
          "members": [
            {
              "name": "Name",
              "anchor": "BoneData.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the bone in the skeleton."
            },
            {
              "name": "Parent",
              "anchor": "BoneData.Parent",
              "kind": "field",
              "doc": "Parent is the parent bone's Name, or empty for a root bone."
            },
            {
              "name": "X",
              "anchor": "BoneData.X",
              "kind": "field",
              "doc": "X and Y are the bone's bind-pose offset in its parent's space."
            },
            {
              "name": "Y",
              "anchor": "BoneData.Y",
              "kind": "field",
              "doc": "X and Y are the bone's bind-pose offset in its parent's space."
            },
            {
              "name": "Rotation",
              "anchor": "BoneData.Rotation",
              "kind": "field",
              "doc": "Rotation is the bone's bind-pose rotation in radians, clockwise on the screen."
            },
            {
              "name": "ScaleX",
              "anchor": "BoneData.ScaleX",
              "kind": "field",
              "doc": "ScaleX and ScaleY are the bone's bind-pose scales, 1 when omitted in the file."
            },
            {
              "name": "ScaleY",
              "anchor": "BoneData.ScaleY",
              "kind": "field",
              "doc": "ScaleX and ScaleY are the bone's bind-pose scales, 1 when omitted in the file."
            },
            {
              "name": "Length",
              "anchor": "BoneData.Length",
              "kind": "field",
              "doc": "Length is an optional bone length for editors and debug overlays."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BoneTimeline",
          "anchor": "BoneTimeline",
          "decl": "type BoneTimeline struct {\n\tTranslate []Vec2Keyframe\n\tRotate    []FloatKeyframe\n\tScale     []Vec2Keyframe\n}",
          "doc": "BoneTimeline holds the optional transform tracks for one bone, applied\nrelative to its bind pose: Translate and Rotate add; Scale multiplies.\n",
          "file": "pkg/skeletal/format.go",
          "line": 134,
          "members": [
            {
              "name": "Translate",
              "anchor": "BoneTimeline.Translate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotate",
              "anchor": "BoneTimeline.Rotate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "BoneTimeline.Scale",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BoneTransform",
          "anchor": "BoneTransform",
          "decl": "type BoneTransform struct {\n\tX, Y           float32\n\tRotation       float32\n\tScaleX, ScaleY float32\n}",
          "doc": "BoneTransform is a bone's position, rotation and scale in a drawing's coordinates.\n",
          "file": "pkg/skeletal/skeleton.go",
          "line": 13,
          "members": [
            {
              "name": "X",
              "anchor": "BoneTransform.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "BoneTransform.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "BoneTransform.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleX",
              "anchor": "BoneTransform.ScaleX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ScaleY",
              "anchor": "BoneTransform.ScaleY",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CurveType",
          "anchor": "CurveType",
          "decl": "type CurveType uint8",
          "doc": "CurveType selects how a keyframe interpolates to the next keyframe.\n",
          "file": "pkg/skeletal/format.go",
          "line": 94,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "CurveLinear",
                  "anchor": "CurveLinear"
                },
                {
                  "name": "CurveStepped",
                  "anchor": "CurveStepped"
                },
                {
                  "name": "CurveBezier",
                  "anchor": "CurveBezier"
                }
              ],
              "decl": "const (\n\t// CurveLinear interpolates evenly between keyframes.\n\tCurveLinear CurveType = iota\n\t// CurveStepped holds the keyframe's value until the next keyframe's time.\n\tCurveStepped\n\t// CurveBezier eases with a cubic Bezier curve defined by [cx1, cy1, cx2, cy2].\n\tCurveBezier\n)",
              "doc": "",
              "file": "pkg/skeletal/format.go",
              "line": 96
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FloatKeyframe",
          "anchor": "FloatKeyframe",
          "decl": "type FloatKeyframe struct {\n\tTime   time.Duration\n\tValue  float32\n\tCurve  CurveType\n\tBezier [4]float32\n}",
          "doc": "FloatKeyframe is a scalar keyframe (rotation angle in radians or slot alpha).\n",
          "file": "pkg/skeletal/format.go",
          "line": 155,
          "members": [
            {
              "name": "Time",
              "anchor": "FloatKeyframe.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "FloatKeyframe.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Curve",
              "anchor": "FloatKeyframe.Curve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bezier",
              "anchor": "FloatKeyframe.Bezier",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Skeleton",
          "anchor": "Skeleton",
          "decl": "type Skeleton struct {\n\t// X and Y place the skeleton's root origin in the drawing.\n\tX, Y float32\n\t// Rotation turns the skeleton about its root origin, in radians, clockwise on the screen.\n\tRotation float32\n\t// ScaleX and ScaleY scale the skeleton about its root origin; a negative value mirrors it.\n\tScaleX, ScaleY float32\n\t// FlipX and FlipY mirror the skeleton across its root axes before Rotation.\n\tFlipX, FlipY bool\n\t// Alpha multiplies every slot's opacity, from 0 (draws nothing) to 1.\n\tAlpha float32\n\t// Z is passed to each sprite drawn by Draw.\n\tZ int\n\t// contains filtered or unexported fields\n}",
          "doc": "Skeleton is a live instance of a SkeletonData rig: its root placement, active\nskin, per-slot attachment overrides, animation playback and computed bone\ntransforms.\n\nNewSkeleton returns a skeleton at full size and opacity in bind pose, with\nthe \"default\" skin active when the rig defines one.\n",
          "file": "pkg/skeletal/skeleton.go",
          "line": 25,
          "members": [
            {
              "name": "X",
              "anchor": "Skeleton.X",
              "kind": "field",
              "doc": "X and Y place the skeleton's root origin in the drawing."
            },
            {
              "name": "Y",
              "anchor": "Skeleton.Y",
              "kind": "field",
              "doc": "X and Y place the skeleton's root origin in the drawing."
            },
            {
              "name": "Rotation",
              "anchor": "Skeleton.Rotation",
              "kind": "field",
              "doc": "Rotation turns the skeleton about its root origin, in radians, clockwise on the screen."
            },
            {
              "name": "ScaleX",
              "anchor": "Skeleton.ScaleX",
              "kind": "field",
              "doc": "ScaleX and ScaleY scale the skeleton about its root origin; a negative value mirrors it."
            },
            {
              "name": "ScaleY",
              "anchor": "Skeleton.ScaleY",
              "kind": "field",
              "doc": "ScaleX and ScaleY scale the skeleton about its root origin; a negative value mirrors it."
            },
            {
              "name": "FlipX",
              "anchor": "Skeleton.FlipX",
              "kind": "field",
              "doc": "FlipX and FlipY mirror the skeleton across its root axes before Rotation."
            },
            {
              "name": "FlipY",
              "anchor": "Skeleton.FlipY",
              "kind": "field",
              "doc": "FlipX and FlipY mirror the skeleton across its root axes before Rotation."
            },
            {
              "name": "Alpha",
              "anchor": "Skeleton.Alpha",
              "kind": "field",
              "doc": "Alpha multiplies every slot's opacity, from 0 (draws nothing) to 1."
            },
            {
              "name": "Z",
              "anchor": "Skeleton.Z",
              "kind": "field",
              "doc": "Z is passed to each sprite drawn by Draw."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSkeleton",
              "anchor": "NewSkeleton",
              "decl": "func NewSkeleton(data *SkeletonData, atlas *sprite.Atlas) *Skeleton",
              "doc": "NewSkeleton returns a skeleton for data drawing frames from atlas, at full\nscale and opacity in its bind pose. If data defines a \"default\" skin, it is\nactive initially.\n\nNewSkeleton panics when data does not compile, such as a hand-built\nSkeletonData with a duplicate bone name, an unknown parent or a cycle: an\ninvalid rig would otherwise render every bone at the drawing's origin and\nreport nothing.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 80
            }
          ],
          "methods": [
            {
              "name": "Animation",
              "anchor": "Skeleton.Animation",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) Animation() string",
              "doc": "Animation returns the name of the active (or incoming) animation, or empty\nwhen no animation is playing.\n",
              "file": "pkg/skeletal/animation.go",
              "line": 140
            },
            {
              "name": "Blending",
              "anchor": "Skeleton.Blending",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) Blending() bool",
              "doc": "Blending reports whether a crossfade is currently in progress.\n",
              "file": "pkg/skeletal/animation.go",
              "line": 153
            },
            {
              "name": "ClearAttachment",
              "anchor": "Skeleton.ClearAttachment",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) ClearAttachment(slot string)",
              "doc": "ClearAttachment removes any manual override set on slot by SetAttachment,\nreturning it to the active animation or skin attachment.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 162
            },
            {
              "name": "Crossfade",
              "anchor": "Skeleton.Crossfade",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) Crossfade(anim string, duration time.Duration, loop bool) error",
              "doc": "Crossfade smoothly blends from the current pose into the named animation over\nduration, using shortest-angle rotation blending and linear translation,\nscale and alpha blending. If duration <= 0, Crossfade switches immediately\nlike Play.\n",
              "file": "pkg/skeletal/animation.go",
              "line": 62
            },
            {
              "name": "Data",
              "anchor": "Skeleton.Data",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) Data() *SkeletonData",
              "doc": "Data returns the immutable SkeletonData this skeleton was created from.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 128
            },
            {
              "name": "Done",
              "anchor": "Skeleton.Done",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) Done() bool",
              "doc": "Done reports whether a non-looping animation has reached its end.\n",
              "file": "pkg/skeletal/animation.go",
              "line": 148
            },
            {
              "name": "Draw",
              "anchor": "Skeleton.Draw",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) Draw(d *core.Drawing)",
              "doc": "Draw updates world transforms and draws every visible slot into d in slot\ndraw order through a reusable sprite.Batch.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 240
            },
            {
              "name": "Play",
              "anchor": "Skeleton.Play",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) Play(anim string, loop bool) error",
              "doc": "Play starts playing the named animation from time 0, cancelling any active\ncrossfade, applies its initial pose and updates world transforms.\n",
              "file": "pkg/skeletal/animation.go",
              "line": 42
            },
            {
              "name": "ResetToBindPose",
              "anchor": "Skeleton.ResetToBindPose",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) ResetToBindPose()",
              "doc": "ResetToBindPose restores every bone and slot to its bind pose, clears any\nactive animation or crossfade, and updates world transforms.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 176
            },
            {
              "name": "SetAttachment",
              "anchor": "Skeleton.SetAttachment",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) SetAttachment(slot, frame string)",
              "doc": "SetAttachment overrides the atlas frame drawn by slot. An empty frame hides\nthe slot. Unknown slot names are ignored.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 148
            },
            {
              "name": "SetSkin",
              "anchor": "Skeleton.SetSkin",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) SetSkin(name string) error",
              "doc": "SetSkin switches the active skin to name. Slots missing from name fall back\nto the \"default\" skin. It returns an error if data does not define name.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 135
            },
            {
              "name": "Skin",
              "anchor": "Skeleton.Skin",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) Skin() string",
              "doc": "Skin returns the name of the active skin, or empty if none is active.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 131
            },
            {
              "name": "Update",
              "anchor": "Skeleton.Update",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) Update(dt time.Duration)",
              "doc": "Update advances the active animation (and any ongoing crossfade) by dt and\nupdates every bone's world transform. Call it from a game.Loop's fixed-step\nUpdate callback for deterministic playback.\n",
              "file": "pkg/skeletal/animation.go",
              "line": 104
            },
            {
              "name": "UpdateWorldTransforms",
              "anchor": "Skeleton.UpdateWorldTransforms",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) UpdateWorldTransforms()",
              "doc": "UpdateWorldTransforms computes every bone's world transform down the\nparent-child tree from the skeleton's root transform and current local pose.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 209
            },
            {
              "name": "WorldBone",
              "anchor": "Skeleton.WorldBone",
              "recv": "*Skeleton",
              "decl": "func (s *Skeleton) WorldBone(name string) (BoneTransform, bool)",
              "doc": "WorldBone returns the last computed world transform of the named bone.\nCall UpdateWorldTransforms (or Update) after changing root fields before\nreading it for attachments, hitboxes or particles.\n",
              "file": "pkg/skeletal/skeleton.go",
              "line": 227
            }
          ]
        },
        {
          "name": "SkeletonData",
          "anchor": "SkeletonData",
          "decl": "type SkeletonData struct {\n\t// Version is the schema version of the rig, FormatVersion.\n\tVersion int\n\t// Name is the rig's name, if the file gave one.\n\tName string\n\t// Bones are the rig's bones in bind pose.\n\tBones []BoneData\n\t// Slots are the rig's slots in draw order, back to front.\n\tSlots []SlotData\n\t// Skins maps each skin's name to the attachments it places on slots.\n\tSkins map[string]Skin\n\t// Animations maps each animation's name to its timelines.\n\tAnimations map[string]*Animation\n\t// contains filtered or unexported fields\n}",
          "doc": "SkeletonData is the immutable description of a 2D skeletal rig: its bones,\ndraw-ordered slots, skins and animations. Share one SkeletonData across as\nmany Skeleton instances as need it.\n",
          "file": "pkg/skeletal/format.go",
          "line": 27,
          "members": [
            {
              "name": "Version",
              "anchor": "SkeletonData.Version",
              "kind": "field",
              "doc": "Version is the schema version of the rig, FormatVersion."
            },
            {
              "name": "Name",
              "anchor": "SkeletonData.Name",
              "kind": "field",
              "doc": "Name is the rig's name, if the file gave one."
            },
            {
              "name": "Bones",
              "anchor": "SkeletonData.Bones",
              "kind": "field",
              "doc": "Bones are the rig's bones in bind pose."
            },
            {
              "name": "Slots",
              "anchor": "SkeletonData.Slots",
              "kind": "field",
              "doc": "Slots are the rig's slots in draw order, back to front."
            },
            {
              "name": "Skins",
              "anchor": "SkeletonData.Skins",
              "kind": "field",
              "doc": "Skins maps each skin's name to the attachments it places on slots."
            },
            {
              "name": "Animations",
              "anchor": "SkeletonData.Animations",
              "kind": "field",
              "doc": "Animations maps each animation's name to its timelines."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Load",
              "anchor": "Load",
              "decl": "func Load(data []byte) (*SkeletonData, error)",
              "doc": "Load parses and validates a version-1 skeletal rig from YAML (.skel.yaml).\n\nIt rejects empty input, unknown fields, duplicate keys, trailing YAML documents, unknown schema versions, non-finite numbers, duplicate bone or slot names, missing parents, cycles in the bone hierarchy, slots or skins referencing missing bones or slots, and animations with unknown targets, unsorted or out-of-range keyframes, or invalid curves. A version-1 rig written as JSON loads too when the JSON is also valid YAML: keys spelled exactly as the schema spells them (matching is case-sensitive) and no `\\/` escape, which YAML does not have.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/skeletal/format.go",
              "line": 173
            }
          ],
          "methods": [
            {
              "name": "Compile",
              "anchor": "SkeletonData.Compile",
              "recv": "*SkeletonData",
              "decl": "func (sd *SkeletonData) Compile() error",
              "doc": "Compile validates cross-references in a hand-built SkeletonData and builds\nthe dense lookup indices and topological bone evaluation order its runtime\nneeds. Data loaded from a document is compiled already, and calling Compile\nagain is harmless.\n",
              "file": "pkg/skeletal/format.go",
              "line": 281
            }
          ]
        },
        {
          "name": "Skin",
          "anchor": "Skin",
          "decl": "type Skin map[string]Attachment",
          "doc": "Skin maps slot names to their attachments.\n",
          "file": "pkg/skeletal/format.go",
          "line": 77,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SlotData",
          "anchor": "SlotData",
          "decl": "type SlotData struct {\n\t// Name uniquely identifies the slot in the skeleton.\n\tName string\n\t// Bone is the name of the bone whose transform the slot follows.\n\tBone string\n\t// Attachment is an optional default atlas frame name when no skin supplies one.\n\tAttachment string\n\t// Alpha is the slot's bind-pose opacity in [0, 1], 1 when omitted in the file.\n\tAlpha float32\n}",
          "doc": "SlotData describes one draw slot attached to a bone.\n",
          "file": "pkg/skeletal/format.go",
          "line": 65,
          "members": [
            {
              "name": "Name",
              "anchor": "SlotData.Name",
              "kind": "field",
              "doc": "Name uniquely identifies the slot in the skeleton."
            },
            {
              "name": "Bone",
              "anchor": "SlotData.Bone",
              "kind": "field",
              "doc": "Bone is the name of the bone whose transform the slot follows."
            },
            {
              "name": "Attachment",
              "anchor": "SlotData.Attachment",
              "kind": "field",
              "doc": "Attachment is an optional default atlas frame name when no skin supplies one."
            },
            {
              "name": "Alpha",
              "anchor": "SlotData.Alpha",
              "kind": "field",
              "doc": "Alpha is the slot's bind-pose opacity in [0, 1], 1 when omitted in the file."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SlotTimeline",
          "anchor": "SlotTimeline",
          "decl": "type SlotTimeline struct {\n\tAttachment []AttachmentKeyframe\n\tAlpha      []FloatKeyframe\n}",
          "doc": "SlotTimeline holds the optional attachment and opacity tracks for one slot.\n",
          "file": "pkg/skeletal/format.go",
          "line": 141,
          "members": [
            {
              "name": "Attachment",
              "anchor": "SlotTimeline.Attachment",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Alpha",
              "anchor": "SlotTimeline.Alpha",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Vec2Keyframe",
          "anchor": "Vec2Keyframe",
          "decl": "type Vec2Keyframe struct {\n\tTime   time.Duration\n\tX, Y   float32\n\tCurve  CurveType\n\tBezier [4]float32\n}",
          "doc": "Vec2Keyframe is a two-component keyframe (translation offset or scale factor).\n",
          "file": "pkg/skeletal/format.go",
          "line": 147,
          "members": [
            {
              "name": "Time",
              "anchor": "Vec2Keyframe.Time",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "Vec2Keyframe.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Vec2Keyframe.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Curve",
              "anchor": "Vec2Keyframe.Curve",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bezier",
              "anchor": "Vec2Keyframe.Bezier",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/sound",
      "name": "sound",
      "dir": "pkg/sound",
      "page": "pkg/sound",
      "synopsis": "",
      "doc": "",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultRearGain",
              "anchor": "DefaultRearGain"
            }
          ],
          "decl": "const DefaultRearGain float32 = 0.7",
          "doc": "DefaultRearGain is the default head-shadow gain multiplier a Listener3D applies to a sound\ndirectly behind the listener when Listener3D.RearGain is zero, negative, or NaN.\n",
          "file": "pkg/sound/positional3d.go",
          "line": 12
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "DecodeWAV",
          "anchor": "DecodeWAV",
          "decl": "func DecodeWAV(wav []byte) (samples []float64, sampleRate, channels int, err error)",
          "doc": "DecodeWAV decodes a 16-bit signed linear PCM RIFF/WAVE buffer into interleaved normalized samples in [-1, 1].\n",
          "file": "pkg/sound/dsp.go",
          "line": 55
        },
        {
          "name": "EncodeWAV",
          "anchor": "EncodeWAV",
          "decl": "func EncodeWAV(samples []float64, sampleRate, channels int) ([]byte, error)",
          "doc": "EncodeWAV encodes interleaved normalized samples in [-1, 1] as a canonical 16-bit signed linear PCM RIFF/WAVE buffer.\n",
          "file": "pkg/sound/dsp.go",
          "line": 118
        },
        {
          "name": "ProcessSamples",
          "anchor": "ProcessSamples",
          "decl": "func ProcessSamples(samples []float64, sampleRate, channels int, chain ...BusEffect)",
          "doc": "ProcessSamples runs each non-nil effect in chain in order on interleaved normalized PCM samples in [-1, 1].\n",
          "file": "pkg/sound/dsp.go",
          "line": 33
        },
        {
          "name": "ProcessWAV",
          "anchor": "ProcessWAV",
          "decl": "func ProcessWAV(wav []byte, chain ...BusEffect) ([]byte, error)",
          "doc": "ProcessWAV decodes a 16-bit PCM WAV buffer, applies chain to its samples, and returns a re-encoded 16-bit PCM WAV buffer.\n",
          "file": "pkg/sound/dsp.go",
          "line": 45
        }
      ],
      "types": [
        {
          "name": "BusEffect",
          "anchor": "BusEffect",
          "decl": "type BusEffect interface {\n\tProcessSamples(samples []float64, sampleRate, channels int)\n}",
          "doc": "BusEffect transforms interleaved normalized PCM samples in [-1, 1] in place.\nImplementations must keep per-run filter and delay state local to each call so an effect can be reused across buffers, sample rates, and channel layouts.\n",
          "file": "pkg/sound/dsp.go",
          "line": 15,
          "members": [
            {
              "name": "ProcessSamples",
              "anchor": "BusEffect.ProcessSamples",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Bitcrush",
              "anchor": "Bitcrush",
              "decl": "func Bitcrush(bits int, downsample int) BusEffect",
              "doc": "Bitcrush returns a retro lo-fi effect that quantizes samples to bits precision (1 to 15; values outside that range leave bit depth unchanged) and holds every downsample-th frame (values <= 1 disable downsampling).\n",
              "file": "pkg/sound/dsp.go",
              "line": 462
            },
            {
              "name": "Delay",
              "anchor": "Delay",
              "decl": "func Delay(delay time.Duration, feedback, wet float64) BusEffect",
              "doc": "Delay returns a feedback delay line with echo spacing delay, feedback clamped to [0, 0.99], and dry/wet mix wet clamped to [0, 1].\n",
              "file": "pkg/sound/dsp.go",
              "line": 295
            },
            {
              "name": "Gain",
              "anchor": "Gain",
              "decl": "func Gain(factor float64) BusEffect",
              "doc": "Gain returns an effect that scales every sample by factor.\n",
              "file": "pkg/sound/dsp.go",
              "line": 443
            },
            {
              "name": "HighPass",
              "anchor": "HighPass",
              "decl": "func HighPass(cutoffHz, q float64) BusEffect",
              "doc": "HighPass returns a 2nd-order RBJ biquad high-pass filter attenuating frequencies below cutoffHz. A non-positive q defaults to Butterworth (1/sqrt(2)).\n",
              "file": "pkg/sound/dsp.go",
              "line": 223
            },
            {
              "name": "LowPass",
              "anchor": "LowPass",
              "decl": "func LowPass(cutoffHz, q float64) BusEffect",
              "doc": "LowPass returns a 2nd-order RBJ biquad low-pass filter attenuating frequencies above cutoffHz. A non-positive q defaults to Butterworth (1/sqrt(2)).\n",
              "file": "pkg/sound/dsp.go",
              "line": 218
            },
            {
              "name": "Reverb",
              "anchor": "Reverb",
              "decl": "func Reverb(roomSize, damping, wet float64) BusEffect",
              "doc": "Reverb returns a Schroeder/Freeverb-style comb and allpass reverb with roomSize, damping, and wet clamped to [0, 1].\n",
              "file": "pkg/sound/dsp.go",
              "line": 338
            }
          ],
          "methods": []
        },
        {
          "name": "Clip",
          "anchor": "Clip",
          "decl": "type Clip struct {\n\tName   string\n\tEffect *Effect\n\tPCM    PCM\n}",
          "doc": "Clip is a single sound variant inside a Cue. It may reference a Mixer Effect\nfor engine playback, hold raw PCM samples for pure-Go pitch resampling, or both.\n",
          "file": "pkg/sound/variants.go",
          "line": 191,
          "members": [
            {
              "name": "Name",
              "anchor": "Clip.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Effect",
              "anchor": "Clip.Effect",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PCM",
              "anchor": "Clip.PCM",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "EffectClip",
              "anchor": "EffectClip",
              "decl": "func EffectClip(effect *Effect) Clip",
              "doc": "EffectClip wraps an Effect as a Clip.\n",
              "file": "pkg/sound/variants.go",
              "line": 198
            },
            {
              "name": "PCMClip",
              "anchor": "PCMClip",
              "decl": "func PCMClip(pcm PCM) Clip",
              "doc": "PCMClip wraps a PCM buffer as a Clip.\n",
              "file": "pkg/sound/variants.go",
              "line": 201
            }
          ],
          "methods": []
        },
        {
          "name": "Cue",
          "anchor": "Cue",
          "decl": "type Cue struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Cue selects and plays sound variants with deterministic pitch and volume variation\nand configurable repeat avoidance.\n",
          "file": "pkg/sound/variants.go",
          "line": 264,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCue",
              "anchor": "NewCue",
              "decl": "func NewCue(seed uint64, opts CueOptions) *Cue",
              "doc": "NewCue creates a Cue seeded with seed and configured by opts.\n",
              "file": "pkg/sound/variants.go",
              "line": 282
            }
          ],
          "methods": [
            {
              "name": "LastIndex",
              "anchor": "Cue.LastIndex",
              "recv": "*Cue",
              "decl": "func (c *Cue) LastIndex() int",
              "doc": "LastIndex returns the index of the most recent pick, or -1 if Pick has not been called since creation or Reset.\n",
              "file": "pkg/sound/variants.go",
              "line": 410
            },
            {
              "name": "Len",
              "anchor": "Cue.Len",
              "recv": "*Cue",
              "decl": "func (c *Cue) Len() int",
              "doc": "Len returns the number of clips in the cue.\n",
              "file": "pkg/sound/variants.go",
              "line": 407
            },
            {
              "name": "NoRepeatWindow",
              "anchor": "Cue.NoRepeatWindow",
              "recv": "*Cue",
              "decl": "func (c *Cue) NoRepeatWindow() int",
              "doc": "NoRepeatWindow returns the effective repeat-avoidance window size (0 when disabled).\n",
              "file": "pkg/sound/variants.go",
              "line": 419
            },
            {
              "name": "Pick",
              "anchor": "Cue.Pick",
              "recv": "*Cue",
              "decl": "func (c *Cue) Pick() CuePick",
              "doc": "Pick deterministically selects the next clip according to the cue's repeat window and weights,\nsamples Pitch in [PitchMin, PitchMax] and Volume in [VolumeMin, VolumeMax], and updates repeat history.\nOn an empty cue, Pick returns CuePick{Index: -1}.\n",
              "file": "pkg/sound/variants.go",
              "line": 424
            },
            {
              "name": "PitchRange",
              "anchor": "Cue.PitchRange",
              "recv": "*Cue",
              "decl": "func (c *Cue) PitchRange() (min, max float64)",
              "doc": "PitchRange returns the normalized inclusive [min, max] pitch range.\n",
              "file": "pkg/sound/variants.go",
              "line": 413
            },
            {
              "name": "Play",
              "anchor": "Cue.Play",
              "recv": "*Cue",
              "decl": "func (c *Cue) Play() (CuePick, bool)",
              "doc": "Play selects the next variant via Pick and plays its Effect with the sampled volume and pitch rate,\nrespecting the effect's mixer group volume, master volume, background mute, and voice limit.\n",
              "file": "pkg/sound/variants.go",
              "line": 542
            },
            {
              "name": "Play3D",
              "anchor": "Cue.Play3D",
              "recv": "*Cue",
              "decl": "func (c *Cue) Play3D(pos Vec3, opts Spatial3DOptions) (CuePick, *Playback3D)",
              "doc": "Play3D picks the cue's next variant, as Play does, and starts a live 3D playback of its effect\nat pos using that effect's mixer's Listener3D and opts. It returns the pick and the Playback3D\nhandle (whose Ended reports true when nothing played).\n",
              "file": "pkg/sound/positional3d.go",
              "line": 552
            },
            {
              "name": "PlayAt",
              "anchor": "Cue.PlayAt",
              "recv": "*Cue",
              "decl": "func (c *Cue) PlayAt(l Listener2D, pos math2d.Vec2) (CuePick, bool)",
              "doc": "PlayAt picks the cue's next variant, as Play does, and plays it at pos in the world as l hears it, as Effect.PlayAt does: at the variant's volume times l.Gain, panned by l.Pan, at the variant's pitch. It reports the pick and whether it played; beyond l's Far it plays nothing, though the pick still counts towards the cue's repeat avoidance.\n",
              "file": "pkg/sound/positional.go",
              "line": 166
            },
            {
              "name": "PlayAt3D",
              "anchor": "Cue.PlayAt3D",
              "recv": "*Cue",
              "decl": "func (c *Cue) PlayAt3D(l Listener3D, pos Vec3) (CuePick, bool)",
              "doc": "PlayAt3D picks the cue's next variant, as Play does, and plays it at pos in the 3D world as l\nhears it, as Effect.PlayAt3D does: at the variant's volume times l.Gain, panned by l.Pan, at\nthe variant's pitch. It reports the pick and whether it played; beyond l's Far it plays nothing,\nthough the pick still counts towards the cue's repeat avoidance.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 444
            },
            {
              "name": "PlayPCM",
              "anchor": "Cue.PlayPCM",
              "recv": "*Cue",
              "decl": "func (c *Cue) PlayPCM() (CuePick, PCM)",
              "doc": "PlayPCM selects the next variant via Pick and returns its resampled and gain-scaled PCM buffer.\n",
              "file": "pkg/sound/variants.go",
              "line": 562
            },
            {
              "name": "Reset",
              "anchor": "Cue.Reset",
              "recv": "*Cue",
              "decl": "func (c *Cue) Reset(seed uint64)",
              "doc": "Reset re-seeds the internal generator to seed, restores the internal source,\nand clears the repeat history for deterministic replay.\n",
              "file": "pkg/sound/variants.go",
              "line": 398
            },
            {
              "name": "SetSource",
              "anchor": "Cue.SetSource",
              "recv": "*Cue",
              "decl": "func (c *Cue) SetSource(src RandSource)",
              "doc": "SetSource replaces the cue's random source. Passing nil restores the internal seeded stream.\n",
              "file": "pkg/sound/variants.go",
              "line": 392
            },
            {
              "name": "Stop",
              "anchor": "Cue.Stop",
              "recv": "*Cue",
              "decl": "func (c *Cue) Stop()",
              "doc": "Stop stops every Effect referenced by c's clips.\n",
              "file": "pkg/sound/variants.go",
              "line": 571
            },
            {
              "name": "VolumeRange",
              "anchor": "Cue.VolumeRange",
              "recv": "*Cue",
              "decl": "func (c *Cue) VolumeRange() (min, max float64)",
              "doc": "VolumeRange returns the normalized inclusive [min, max] volume range.\n",
              "file": "pkg/sound/variants.go",
              "line": 416
            }
          ]
        },
        {
          "name": "CueOptions",
          "anchor": "CueOptions",
          "decl": "type CueOptions struct {\n\t// Clips are the sound variants selected by the cue.\n\tClips []Clip\n\n\t// PitchMin and PitchMax define the inclusive pitch multiplier range.\n\t// When both are 0, pitch defaults to [1, 1]. If PitchMin > PitchMax they are swapped.\n\tPitchMin float64\n\tPitchMax float64\n\n\t// VolumeMin and VolumeMax define the inclusive volume range, clamped to [0, 1].\n\t// When both are 0, volume defaults to [1, 1]. If VolumeMin > VolumeMax they are swapped.\n\tVolumeMin float64\n\tVolumeMax float64\n\n\t// NoRepeatWindow is the number of most recent picks excluded from being chosen again.\n\t// When 0 and AllowRepeat is false, it defaults to 1 (never repeats the same clip twice\n\t// in a row when len(Clips) >= 2). Values larger than len(Clips)-1 are clamped to len(Clips)-1.\n\t// Negative values disable repeat avoidance.\n\tNoRepeatWindow int\n\n\t// AllowRepeat disables the default immediate no-repeat behavior when NoRepeatWindow is 0.\n\tAllowRepeat bool\n\n\t// Weights gives optional relative selection weights per clip. When omitted, all clips\n\t// have equal weight. Missing trailing entries default to 1; non-positive or non-finite\n\t// entries are treated as 0.\n\tWeights []float64\n\n\t// Source optionally supplies an external deterministic random stream.\n\t// When nil, Cue uses its internal Xoshiro256** generator seeded with seed.\n\tSource RandSource\n}",
          "doc": "CueOptions configures a Cue's clips, pitch and volume randomization ranges,\nrepeat avoidance, relative clip weights, and optional external random source.\n",
          "file": "pkg/sound/variants.go",
          "line": 205,
          "members": [
            {
              "name": "Clips",
              "anchor": "CueOptions.Clips",
              "kind": "field",
              "doc": "Clips are the sound variants selected by the cue."
            },
            {
              "name": "PitchMin",
              "anchor": "CueOptions.PitchMin",
              "kind": "field",
              "doc": "PitchMin and PitchMax define the inclusive pitch multiplier range.\nWhen both are 0, pitch defaults to [1, 1]. If PitchMin > PitchMax they are swapped."
            },
            {
              "name": "PitchMax",
              "anchor": "CueOptions.PitchMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VolumeMin",
              "anchor": "CueOptions.VolumeMin",
              "kind": "field",
              "doc": "VolumeMin and VolumeMax define the inclusive volume range, clamped to [0, 1].\nWhen both are 0, volume defaults to [1, 1]. If VolumeMin > VolumeMax they are swapped."
            },
            {
              "name": "VolumeMax",
              "anchor": "CueOptions.VolumeMax",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "NoRepeatWindow",
              "anchor": "CueOptions.NoRepeatWindow",
              "kind": "field",
              "doc": "NoRepeatWindow is the number of most recent picks excluded from being chosen again.\nWhen 0 and AllowRepeat is false, it defaults to 1 (never repeats the same clip twice\nin a row when len(Clips) >= 2). Values larger than len(Clips)-1 are clamped to len(Clips)-1.\nNegative values disable repeat avoidance."
            },
            {
              "name": "AllowRepeat",
              "anchor": "CueOptions.AllowRepeat",
              "kind": "field",
              "doc": "AllowRepeat disables the default immediate no-repeat behavior when NoRepeatWindow is 0."
            },
            {
              "name": "Weights",
              "anchor": "CueOptions.Weights",
              "kind": "field",
              "doc": "Weights gives optional relative selection weights per clip. When omitted, all clips\nhave equal weight. Missing trailing entries default to 1; non-positive or non-finite\nentries are treated as 0."
            },
            {
              "name": "Source",
              "anchor": "CueOptions.Source",
              "kind": "field",
              "doc": "Source optionally supplies an external deterministic random stream.\nWhen nil, Cue uses its internal Xoshiro256** generator seeded with seed."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CuePick",
          "anchor": "CuePick",
          "decl": "type CuePick struct {\n\tIndex  int\n\tClip   Clip\n\tPitch  float64\n\tVolume float64\n}",
          "doc": "CuePick is the outcome of a single Cue.Pick call.\n",
          "file": "pkg/sound/variants.go",
          "line": 239,
          "members": [
            {
              "name": "Index",
              "anchor": "CuePick.Index",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Clip",
              "anchor": "CuePick.Clip",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Pitch",
              "anchor": "CuePick.Pitch",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Volume",
              "anchor": "CuePick.Volume",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "RenderPCM",
              "anchor": "CuePick.RenderPCM",
              "recv": "CuePick",
              "decl": "func (p CuePick) RenderPCM() PCM",
              "doc": "RenderPCM resamples p.Clip.PCM by p.Pitch and scales it by p.Volume.\n",
              "file": "pkg/sound/variants.go",
              "line": 250
            },
            {
              "name": "RenderWAV",
              "anchor": "CuePick.RenderWAV",
              "recv": "CuePick",
              "decl": "func (p CuePick) RenderWAV() ([]byte, error)",
              "doc": "RenderWAV resamples p.Clip.PCM by p.Pitch, scales it by p.Volume, and encodes it as a 16-bit PCM WAV buffer.\n",
              "file": "pkg/sound/variants.go",
              "line": 258
            },
            {
              "name": "Valid",
              "anchor": "CuePick.Valid",
              "recv": "CuePick",
              "decl": "func (p CuePick) Valid() bool",
              "doc": "Valid reports whether p selected a clip.\n",
              "file": "pkg/sound/variants.go",
              "line": 247
            }
          ]
        },
        {
          "name": "Effect",
          "anchor": "Effect",
          "decl": "type Effect struct {\n\t// Group is the group whose volume the sound plays at.\n\tGroup string\n\t// Limit is the most playbacks of the sound at once, so a burst of it does not take every voice; 0 for none but the platform's 32 for all sounds.\n\tLimit int\n\t// contains filtered or unexported fields\n}",
          "doc": "Effect is a short sound played through a mixer, in a group and with a limit of its own.\n",
          "file": "pkg/sound/sound.go",
          "line": 196,
          "members": [
            {
              "name": "Group",
              "anchor": "Effect.Group",
              "kind": "field",
              "doc": "Group is the group whose volume the sound plays at."
            },
            {
              "name": "Limit",
              "anchor": "Effect.Limit",
              "kind": "field",
              "doc": "Limit is the most playbacks of the sound at once, so a burst of it does not take every voice; 0 for none but the platform's 32 for all sounds."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Play",
              "anchor": "Effect.Play",
              "recv": "*Effect",
              "decl": "func (s *Effect) Play(v audio.Voice) bool",
              "doc": "Play starts a playback of the sound at v's volume times its group's and the master volume, which follows those volumes as they change while it plays. It reports whether it asked for one: false while that volume is 0, as for a Muted voice, or while the app is in the background, suspended, or the effect's group is paused, and true otherwise, even where the backend's playback (audio.Playback) ends at once because it could not start. With Limit playbacks still playing it stops the oldest to make room, so the newest are heard; a playback that cannot start leaves them playing. A backend that cannot address playbacks plays it as it started, outside the limit and the volume changes.\n",
              "file": "pkg/sound/sound.go",
              "line": 228
            },
            {
              "name": "Play3D",
              "anchor": "Effect.Play3D",
              "recv": "*Effect",
              "decl": "func (s *Effect) Play3D(pos Vec3, v audio.Voice, opts Spatial3DOptions) *Playback3D",
              "doc": "Play3D starts a live 3D playback of s at pos using s's mixer's Listener3D and opts, returning a\nPlayback3D handle. Like Effect.Play, it starts nothing when the voice is muted, effective gain\nis 0 (beyond Far, outside a zero-gain cone, zero group/master volume, paused, suspended, or in\nthe background), returning an ended Playback3D so silent sources never take voice slots or\ncount against s.Limit.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 509
            },
            {
              "name": "PlayAt",
              "anchor": "Effect.PlayAt",
              "recv": "*Effect",
              "decl": "func (s *Effect) PlayAt(l Listener2D, pos math2d.Vec2, v audio.Voice) bool",
              "doc": "PlayAt plays the effect at pos in the world as l hears it: panned by l.Pan and at v's volume times l.Gain, then the group's and the master volume, as Play does, and reports whether it played. It plays nothing where the effect is silent, beyond l's Far, and replaces v's pan. The pan and volume hold for the playback's whole length, as audio's playbacks cannot change their pan once started.\n",
              "file": "pkg/sound/positional.go",
              "line": 157
            },
            {
              "name": "PlayAt3D",
              "anchor": "Effect.PlayAt3D",
              "recv": "*Effect",
              "decl": "func (s *Effect) PlayAt3D(l Listener3D, pos Vec3, v audio.Voice) bool",
              "doc": "PlayAt3D plays the effect at pos in the 3D world as l hears it: panned by l.Pan and at v's\nvolume times l.Gain, then the group's and the master volume, as Play does, and reports whether\nit played. It plays nothing where the effect is silent, beyond l's Far, and replaces v's pan.\nThe pan and volume hold for the playback's whole length; use Effect.Play3D with Mixer.SetListener3D\nfor playbacks whose spatial gain tracks a moving camera or moving source.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 429
            },
            {
              "name": "Stop",
              "anchor": "Effect.Stop",
              "recv": "*Effect",
              "decl": "func (s *Effect) Stop()",
              "doc": "Stop stops every playback of the sound, and of every other sound of the same source, as audio.Sound.Stop does.\n",
              "file": "pkg/sound/sound.go",
              "line": 258
            }
          ]
        },
        {
          "name": "EffectChain",
          "anchor": "EffectChain",
          "decl": "type EffectChain []BusEffect",
          "doc": "EffectChain applies a sequence of bus effects in order and itself satisfies BusEffect.\n",
          "file": "pkg/sound/dsp.go",
          "line": 20,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ProcessSamples",
              "anchor": "EffectChain.ProcessSamples",
              "recv": "EffectChain",
              "decl": "func (c EffectChain) ProcessSamples(samples []float64, sampleRate, channels int)",
              "doc": "ProcessSamples runs every non-nil effect in c in order on interleaved samples.\n",
              "file": "pkg/sound/dsp.go",
              "line": 23
            },
            {
              "name": "ProcessWAV",
              "anchor": "EffectChain.ProcessWAV",
              "recv": "EffectChain",
              "decl": "func (c EffectChain) ProcessWAV(wav []byte) ([]byte, error)",
              "doc": "ProcessWAV decodes a 16-bit PCM WAV buffer, runs c over its samples, and re-encodes a 16-bit PCM WAV buffer.\n",
              "file": "pkg/sound/dsp.go",
              "line": 28
            }
          ]
        },
        {
          "name": "Listener2D",
          "anchor": "Listener2D",
          "decl": "type Listener2D struct {\n\t// Position is where the listener is in the world, usually the 2D camera's center, as tilemap.Camera's X and Y.\n\tPosition math2d.Vec2\n\t// Rotation turns the listener clockwise in the world, in radians, as tilemap.Camera.Rotation turns the camera, so left and right are the view's; an infinite or NaN one counts as 0.\n\tRotation float32\n\t// Near is the distance up to which an effect plays at full volume; a negative one or NaN counts as 0.\n\tNear float32\n\t// Far is the distance at and beyond which an effect is silent. A Far not greater than Near, infinite or NaN turns distance attenuation off, every effect playing at full volume.\n\tFar float32\n\t// Rolloff is how the volume falls between Near and Far.\n\tRolloff Rolloff\n\t// PanWidth is how far to the side of the listener, across the view, an effect pans fully left or right, panning in proportion closer in; 0, less or NaN takes Far, and with distance attenuation off every effect plays centered. An effect straight above or below the listener plays centered at any distance.\n\tPanWidth float32\n}",
          "doc": "Listener2D hears effects placed in a 2D world from where the camera looks, so an effect to the left of the camera plays panned left and an effect further away plays quieter. Its zero value hears every effect at full volume and centered.\n\nDistances are in world units, the same as the positions passed to Pan, Gain and Effect.PlayAt; the camera's zoom does not change them.\n",
          "file": "pkg/sound/positional.go",
          "line": 25,
          "members": [
            {
              "name": "Position",
              "anchor": "Listener2D.Position",
              "kind": "field",
              "doc": "Position is where the listener is in the world, usually the 2D camera's center, as tilemap.Camera's X and Y."
            },
            {
              "name": "Rotation",
              "anchor": "Listener2D.Rotation",
              "kind": "field",
              "doc": "Rotation turns the listener clockwise in the world, in radians, as tilemap.Camera.Rotation turns the camera, so left and right are the view's; an infinite or NaN one counts as 0."
            },
            {
              "name": "Near",
              "anchor": "Listener2D.Near",
              "kind": "field",
              "doc": "Near is the distance up to which an effect plays at full volume; a negative one or NaN counts as 0."
            },
            {
              "name": "Far",
              "anchor": "Listener2D.Far",
              "kind": "field",
              "doc": "Far is the distance at and beyond which an effect is silent. A Far not greater than Near, infinite or NaN turns distance attenuation off, every effect playing at full volume."
            },
            {
              "name": "Rolloff",
              "anchor": "Listener2D.Rolloff",
              "kind": "field",
              "doc": "Rolloff is how the volume falls between Near and Far."
            },
            {
              "name": "PanWidth",
              "anchor": "Listener2D.PanWidth",
              "kind": "field",
              "doc": "PanWidth is how far to the side of the listener, across the view, an effect pans fully left or right, panning in proportion closer in; 0, less or NaN takes Far, and with distance attenuation off every effect plays centered. An effect straight above or below the listener plays centered at any distance."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Gain",
              "anchor": "Listener2D.Gain",
              "recv": "Listener2D",
              "decl": "func (l Listener2D) Gain(pos math2d.Vec2) float32",
              "doc": "Gain returns the volume an effect at pos plays at, from 1 within Near to 0 at Far and beyond, falling by Rolloff between them. Rotation does not change it. A pos with a NaN coordinate is silent, and one with an infinite coordinate too unless attenuation is off.\n",
              "file": "pkg/sound/positional.go",
              "line": 59
            },
            {
              "name": "Pan",
              "anchor": "Listener2D.Pan",
              "recv": "Listener2D",
              "decl": "func (l Listener2D) Pan(pos math2d.Vec2) float32",
              "doc": "Pan returns where an effect at pos plays from, -1 for fully left through 0 for centered to 1 for fully right, as audio.Voice.Pan takes it: its offset across the view divided by PanWidth, clamped. A pos with a NaN coordinate plays centered.\n",
              "file": "pkg/sound/positional.go",
              "line": 41
            },
            {
              "name": "Voice",
              "anchor": "Listener2D.Voice",
              "recv": "Listener2D",
              "decl": "func (l Listener2D) Voice(pos math2d.Vec2, v audio.Voice) audio.Voice",
              "doc": "Voice returns v with its volume scaled by Gain at pos and its pan set to Pan at pos, the voice an effect at pos plays with. Where the effect is silent, its volume is 0 and it is Muted, since audio plays a volume of 0 as full volume.\n",
              "file": "pkg/sound/positional.go",
              "line": 123
            }
          ]
        },
        {
          "name": "Listener3D",
          "anchor": "Listener3D",
          "decl": "type Listener3D struct {\n\t// Position is where the listener is in the world, such as sound.Vec3(cam.Pos).\n\tPosition Vec3\n\t// Forward is the direction the listener faces, such as sound.Vec3(cam.Forward()).\n\t// A zero or non-finite Forward defaults to (0, 0, -1).\n\tForward Vec3\n\t// Up is the listener's up direction, such as sound.Vec3(cam.Up()).\n\t// A zero, non-finite, or collinear Up defaults to (0, 1, 0) (or (0, 0, 1) when facing along ±Y).\n\tUp Vec3\n\t// Near is the distance up to which an effect plays at full distance gain; a negative value or NaN counts as 0.\n\tNear float32\n\t// Far is the distance at and beyond which an effect is silent. A Far not greater than Near,\n\t// infinite, or NaN turns distance attenuation off.\n\tFar float32\n\t// Rolloff is how distance gain falls between Near and Far.\n\tRolloff Rolloff\n\t// RolloffFactor shapes the steepness of RolloffInverse (default 1 when <= 0 or non-finite)\n\t// and RolloffExponential (default 2 when <= 0 or non-finite). Ignored by RolloffLinear.\n\tRolloffFactor float32\n\t// RearGain is the gain multiplier for a sound directly behind the listener (dot(dir, forward) == -1),\n\t// modeling head-shadow attenuation. Effects in front or at the sides receive a multiplier of 1,\n\t// and effects behind interpolate linearly from 1 at the lateral plane down to RearGain directly behind.\n\t// Zero, negative, or NaN uses DefaultRearGain (0.7); values above 1 clamp to 1 (disabling rear attenuation).\n\tRearGain float32\n\t// PanWidth, when positive and finite, computes pan as the source's lateral offset along the\n\t// listener's right axis divided by PanWidth, clamped to [-1, 1], matching Listener2D.\n\t// When 0, negative, or non-finite, pan uses the 3D directional azimuth dot(dir, right),\n\t// which is 0 directly in front, behind, above, or below, -1 directly left, and +1 directly right.\n\tPanWidth float32\n}",
          "doc": "Listener3D hears effects placed in a right-handed Y-up 3D world (+X right, +Y up, -Z forward)\nfrom where the 3D camera looks: an effect to the left of the camera plays panned left, one to\nthe right panned right, one further away plays quieter, and one behind the camera plays quieter\nthan an equidistant effect in front while still panned to its side.\n\nIts zero value sits at the origin facing -Z with +Y up, disables distance attenuation, pans by\nlateral azimuth, and attenuates effects behind the listener using DefaultRearGain.\n",
          "file": "pkg/sound/positional3d.go",
          "line": 30,
          "members": [
            {
              "name": "Position",
              "anchor": "Listener3D.Position",
              "kind": "field",
              "doc": "Position is where the listener is in the world, such as sound.Vec3(cam.Pos)."
            },
            {
              "name": "Forward",
              "anchor": "Listener3D.Forward",
              "kind": "field",
              "doc": "Forward is the direction the listener faces, such as sound.Vec3(cam.Forward()).\nA zero or non-finite Forward defaults to (0, 0, -1)."
            },
            {
              "name": "Up",
              "anchor": "Listener3D.Up",
              "kind": "field",
              "doc": "Up is the listener's up direction, such as sound.Vec3(cam.Up()).\nA zero, non-finite, or collinear Up defaults to (0, 1, 0) (or (0, 0, 1) when facing along ±Y)."
            },
            {
              "name": "Near",
              "anchor": "Listener3D.Near",
              "kind": "field",
              "doc": "Near is the distance up to which an effect plays at full distance gain; a negative value or NaN counts as 0."
            },
            {
              "name": "Far",
              "anchor": "Listener3D.Far",
              "kind": "field",
              "doc": "Far is the distance at and beyond which an effect is silent. A Far not greater than Near,\ninfinite, or NaN turns distance attenuation off."
            },
            {
              "name": "Rolloff",
              "anchor": "Listener3D.Rolloff",
              "kind": "field",
              "doc": "Rolloff is how distance gain falls between Near and Far."
            },
            {
              "name": "RolloffFactor",
              "anchor": "Listener3D.RolloffFactor",
              "kind": "field",
              "doc": "RolloffFactor shapes the steepness of RolloffInverse (default 1 when <= 0 or non-finite)\nand RolloffExponential (default 2 when <= 0 or non-finite). Ignored by RolloffLinear."
            },
            {
              "name": "RearGain",
              "anchor": "Listener3D.RearGain",
              "kind": "field",
              "doc": "RearGain is the gain multiplier for a sound directly behind the listener (dot(dir, forward) == -1),\nmodeling head-shadow attenuation. Effects in front or at the sides receive a multiplier of 1,\nand effects behind interpolate linearly from 1 at the lateral plane down to RearGain directly behind.\nZero, negative, or NaN uses DefaultRearGain (0.7); values above 1 clamp to 1 (disabling rear attenuation)."
            },
            {
              "name": "PanWidth",
              "anchor": "Listener3D.PanWidth",
              "kind": "field",
              "doc": "PanWidth, when positive and finite, computes pan as the source's lateral offset along the\nlistener's right axis divided by PanWidth, clamped to [-1, 1], matching Listener2D.\nWhen 0, negative, or non-finite, pan uses the 3D directional azimuth dot(dir, right),\nwhich is 0 directly in front, behind, above, or below, -1 directly left, and +1 directly right."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Gain",
              "anchor": "Listener3D.Gain",
              "recv": "Listener3D",
              "decl": "func (l Listener3D) Gain(pos Vec3) float32",
              "doc": "Gain returns the combined spatial gain for an effect at pos in [0, 1]: distance attenuation\nfrom Near to Far times rear head-shadow attenuation when behind the listener. A pos with a\nNaN coordinate is silent.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 140
            },
            {
              "name": "LookAt",
              "anchor": "Listener3D.LookAt",
              "recv": "*Listener3D",
              "decl": "func (l *Listener3D) LookAt(target, up Vec3)",
              "doc": "LookAt orients l at its current Position toward target with world up direction up.\nIf target equals Position or is non-finite, Forward is left unchanged.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 73
            },
            {
              "name": "Pan",
              "anchor": "Listener3D.Pan",
              "recv": "Listener3D",
              "decl": "func (l Listener3D) Pan(pos Vec3) float32",
              "doc": "Pan returns where an effect at pos plays from, -1 for fully left through 0 for centered to\n1 for fully right, as audio.Voice.Pan takes it. Effects at the listener, straight ahead,\nstraight behind, straight above/below, or with a NaN coordinate play centered.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 133
            },
            {
              "name": "SetPose",
              "anchor": "Listener3D.SetPose",
              "recv": "*Listener3D",
              "decl": "func (l *Listener3D) SetPose(pos, forward, up Vec3)",
              "doc": "SetPose updates l's Position, Forward, and Up without changing its attenuation or pan settings.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 62
            },
            {
              "name": "Spatialize",
              "anchor": "Listener3D.Spatialize",
              "recv": "Listener3D",
              "decl": "func (l Listener3D) Spatialize(pos Vec3, opts Spatial3DOptions) Spatial3D",
              "doc": "Spatialize computes distance attenuation, rear head-shadow attenuation, optional directional\nsource cone attenuation, and stereo pan for a source at pos relative to l.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 146
            },
            {
              "name": "Voice",
              "anchor": "Listener3D.Voice",
              "recv": "Listener3D",
              "decl": "func (l Listener3D) Voice(pos Vec3, v audio.Voice) audio.Voice",
              "doc": "Voice returns v with its volume scaled by l.Gain(pos) and its pan set to l.Pan(pos).\nWhere the effect is silent, its volume is 0 and it is Muted, since audio plays a volume of 0 as full volume.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 230
            },
            {
              "name": "VoiceWithOptions",
              "anchor": "Listener3D.VoiceWithOptions",
              "recv": "Listener3D",
              "decl": "func (l Listener3D) VoiceWithOptions(pos Vec3, v audio.Voice, opts Spatial3DOptions) audio.Voice",
              "doc": "VoiceWithOptions returns v with its volume scaled by l.Spatialize(pos, opts).Gain and its pan\nset to l.Spatialize(pos, opts).Pan. Where the effect is silent, its volume is 0 and it is Muted.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 236
            }
          ]
        },
        {
          "name": "Mixer",
          "anchor": "Mixer",
          "decl": "type Mixer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Mixer sets how loud a game's sounds and music play: a master volume and a volume for each group the app names, such as \"effects\", \"music\" and \"ui\", each from 0 to 1 and 1 until set. It keeps them in the app's storage (core.Storage), so they hold across launches, pauses gameplay groups with SetPaused while letting pause-exempt groups (SetPauseExempt) keep playing, and plays nothing while the app is in the background or suspended.\n\nAn effect plays at its own voice's volume times its group's and the master volume, and music at its group's and the master volume; a volume change applies at once to the effects playing, through their audio.Playback, and to music as it plays. An effect whose group or master volume reaches 0 plays on in silence and is heard again as the volume comes back.\n\nThe mixer's methods, its effects' and its music's are called on the engine's goroutine, as audio's are.\n",
          "file": "pkg/sound/sound.go",
          "line": 17,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMixer",
              "anchor": "NewMixer",
              "decl": "func NewMixer(cx *core.Scope, key string) *Mixer",
              "doc": "NewMixer returns a mixer that keeps its volumes in cx's storage under keys starting with key, such as \"sound\", and lives as long as cx.\n\nThe mixer mutes everything while cx's window is in the background (core.Env.Lifecycle), that is hidden, minimized or covered on a desktop and the app in the background on a phone: it silences the effects playing, pauses the music and, as the window shows again, restores the effects still playing and plays the music on from there.\n",
              "file": "pkg/sound/sound.go",
              "line": 43
            }
          ],
          "methods": [
            {
              "name": "Cue",
              "anchor": "Mixer.Cue",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) Cue(group string, limit int, seed uint64, opts CueOptions, sounds ...*audio.Sound) *Cue",
              "doc": "Cue builds a Cue whose sounds play through m in group with per-sound voice limit.\nAny nil sounds are skipped; any Clips already present in opts are preserved before sounds.\n",
              "file": "pkg/sound/variants.go",
              "line": 584
            },
            {
              "name": "Effect",
              "anchor": "Mixer.Effect",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) Effect(s *audio.Sound, group string, limit int) *Effect",
              "doc": "Effect returns s played through the mixer in group, at most limit at once (0 for no limit of its own). Close s as the app is done with it, as without the mixer.\n",
              "file": "pkg/sound/sound.go",
              "line": 223
            },
            {
              "name": "GroupEffects",
              "anchor": "Mixer.GroupEffects",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) GroupEffects(group string) EffectChain",
              "doc": "GroupEffects returns a copy of the DSP bus effect chain configured for group, or nil when none is set.\n",
              "file": "pkg/sound/dsp.go",
              "line": 178
            },
            {
              "name": "Listener3D",
              "anchor": "Mixer.Listener3D",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) Listener3D() Listener3D",
              "doc": "Listener3D returns the mixer's active 3D listener.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 486
            },
            {
              "name": "Master",
              "anchor": "Mixer.Master",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) Master() float32",
              "doc": "Master returns the master volume, its default (SetDefaultMaster) or 1 until set. Read in a computation, it subscribes it to changes, as core.Storage does.\n",
              "file": "pkg/sound/sound.go",
              "line": 70
            },
            {
              "name": "Music",
              "anchor": "Mixer.Music",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) Music(group string) *Music",
              "doc": "Music returns music played through the mixer in group, which plays nothing until Play.\n",
              "file": "pkg/sound/sound.go",
              "line": 319
            },
            {
              "name": "PauseExempt",
              "anchor": "Mixer.PauseExempt",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) PauseExempt(group string) bool",
              "doc": "PauseExempt reports whether group keeps playing while the mixer is paused with SetPaused.\n",
              "file": "pkg/sound/sound.go",
              "line": 147
            },
            {
              "name": "Paused",
              "anchor": "Mixer.Paused",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) Paused() bool",
              "doc": "Paused reports whether gameplay audio is paused by SetPaused.\n",
              "file": "pkg/sound/sound.go",
              "line": 126
            },
            {
              "name": "PlayCue",
              "anchor": "Mixer.PlayCue",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) PlayCue(cue *Cue) (CuePick, bool)",
              "doc": "PlayCue plays the next variant of cue through its Mixer Effect.\n",
              "file": "pkg/sound/variants.go",
              "line": 598
            },
            {
              "name": "ProcessSource",
              "anchor": "Mixer.ProcessSource",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) ProcessSource(group string, src audio.Source) (audio.Source, error)",
              "doc": "ProcessSource applies group's configured DSP bus chain to an in-memory 16-bit PCM WAV audio.Source and returns a new audio.Source containing the processed WAV bytes. When group has no effects configured, src is returned unchanged.\n",
              "file": "pkg/sound/dsp.go",
              "line": 189
            },
            {
              "name": "RenderCuePCM",
              "anchor": "Mixer.RenderCuePCM",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) RenderCuePCM(group string, cue *Cue) (CuePick, PCM)",
              "doc": "RenderCuePCM picks the next variant of cue, resamples its PCM by the sampled pitch,\napplies the sampled volume times group's effective mixer gain (0 when muted or in the background),\nand runs group's configured DSP effect chain if any.\n",
              "file": "pkg/sound/variants.go",
              "line": 608
            },
            {
              "name": "SetDefaultMaster",
              "anchor": "Mixer.SetDefaultMaster",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) SetDefaultMaster(v float32)",
              "doc": "SetDefaultMaster sets the master volume the mixer has until SetMaster keeps one, clamped to 0 to 1, such as a project file's. It keeps nothing in the storage, so a volume the player set wins; set it before the game reads volumes, as it changes no subscribed computation.\n",
              "file": "pkg/sound/sound.go",
              "line": 53
            },
            {
              "name": "SetDefaultVolume",
              "anchor": "Mixer.SetDefaultVolume",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) SetDefaultVolume(group string, v float32)",
              "doc": "SetDefaultVolume sets the volume group has until SetVolume keeps one, clamped to 0 to 1, such as a project file's bus volume. It keeps nothing in the storage, so a volume the player set wins; set it before the game reads volumes, as it changes no subscribed computation.\n",
              "file": "pkg/sound/sound.go",
              "line": 56
            },
            {
              "name": "SetGroupEffects",
              "anchor": "Mixer.SetGroupEffects",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) SetGroupEffects(group string, effects ...BusEffect)",
              "doc": "SetGroupEffects configures the DSP bus effect chain for group, replacing any previous chain. Passing no effects clears group's chain.\n",
              "file": "pkg/sound/dsp.go",
              "line": 164
            },
            {
              "name": "SetListener3D",
              "anchor": "Mixer.SetListener3D",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) SetListener3D(l Listener3D)",
              "doc": "SetListener3D sets the mixer's active 3D listener and refreshes every live Playback3D started\nthrough Effect.Play3D or Cue.Play3D: each playback recomputes its 3D spatialization against l\nand updates its underlying audio.Playback volume immediately (respecting master/group volumes,\npause, suspend, and background muting).\n\nBecause NSGo's audio.Playback cannot change stereo pan after a playback starts, Pan() on a live\nPlayback3D reflects the latest computed pan while the backend's active pan stays at its initial\nvalue; live distance, rear, and source-cone attenuation update continuously via SetVolume.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 467
            },
            {
              "name": "SetMaster",
              "anchor": "Mixer.SetMaster",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) SetMaster(v float32) error",
              "doc": "SetMaster sets the master volume, clamped to 0 to 1, and keeps it. It fails with a *core.StorageFullError when the storage is full, keeping the volume it had.\n",
              "file": "pkg/sound/sound.go",
              "line": 73
            },
            {
              "name": "SetPauseExempt",
              "anchor": "Mixer.SetPauseExempt",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) SetPauseExempt(group string, exempt bool)",
              "doc": "SetPauseExempt sets whether group keeps playing while the mixer is paused with SetPaused, such as a \"ui\" group for pause-menu sounds. Exempt groups are still silenced while the app is in the background or while the mixer is suspended (Suspend). Changing a group's exemption while paused applies at once to effects and music in that group.\n",
              "file": "pkg/sound/sound.go",
              "line": 129
            },
            {
              "name": "SetPaused",
              "anchor": "Mixer.SetPaused",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) SetPaused(paused bool)",
              "doc": "SetPaused pauses or resumes gameplay audio on the mixer, as when a pause menu opens or closes. While paused, every group not marked exempt with SetPauseExempt is silenced: effects playing are silenced through their audio.Playback without stopping, new Effect.Play calls play nothing, and music pauses at its current position. Groups marked exempt (such as \"ui\") keep playing while paused, though they are still silenced in the background or while suspended. When resumed, effects still playing return to their volume and music plays on from where it paused, unless the app is in the background or the mixer is suspended.\n\nPair with game.Loop.OnPause (loop.OnPause = mixer.SetPaused) so gameplay audio pauses and resumes with the loop while backgrounding pauses and resumes everything in sync through core.Env.Lifecycle.\n",
              "file": "pkg/sound/sound.go",
              "line": 117
            },
            {
              "name": "SetVolume",
              "anchor": "Mixer.SetVolume",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) SetVolume(group string, v float32) error",
              "doc": "SetVolume sets group's volume, clamped to 0 to 1, and keeps it. It fails with a *core.StorageFullError when the storage is full, keeping the volume it had.\n",
              "file": "pkg/sound/sound.go",
              "line": 79
            },
            {
              "name": "Suspend",
              "anchor": "Mixer.Suspend",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) Suspend() (resume func())",
              "doc": "Suspend silences the mixer until resume is called, as the background does: it silences the sounds playing (including pause-exempt groups), plays no new ones and pauses the music, which plays on from where it paused once every Suspend has been resumed. A game suspends its sound while something else has the speakers, such as a cutscene (cutscene.Player does). Calling resume again does nothing.\n",
              "file": "pkg/sound/sound.go",
              "line": 150
            },
            {
              "name": "Suspended",
              "anchor": "Mixer.Suspended",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) Suspended() bool",
              "doc": "Suspended reports whether a Suspend has not been resumed yet.\n",
              "file": "pkg/sound/sound.go",
              "line": 165
            },
            {
              "name": "Volume",
              "anchor": "Mixer.Volume",
              "recv": "*Mixer",
              "decl": "func (m *Mixer) Volume(group string) float32",
              "doc": "Volume returns group's volume: its default (SetDefaultVolume), or 1, for a group never set. Read in a computation, it subscribes it to changes, as core.Storage does.\n",
              "file": "pkg/sound/sound.go",
              "line": 76
            }
          ]
        },
        {
          "name": "Music",
          "anchor": "Music",
          "decl": "type Music struct {\n\t// Group is the group whose volume the music plays at.\n\tGroup string\n\t// Loop has each track Play starts after it is set start over at its end.\n\tLoop bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Music plays long tracks through a mixer, one at a time, each through an audio.Player, crossfading from one to the next.\n",
          "file": "pkg/sound/sound.go",
          "line": 293,
          "members": [
            {
              "name": "Group",
              "anchor": "Music.Group",
              "kind": "field",
              "doc": "Group is the group whose volume the music plays at."
            },
            {
              "name": "Loop",
              "anchor": "Music.Loop",
              "kind": "field",
              "doc": "Loop has each track Play starts after it is set start over at its end."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Play",
              "anchor": "Music.Play",
              "recv": "*Music",
              "decl": "func (mu *Music) Play(src audio.Source, fade time.Duration)",
              "doc": "Play plays src, fading it in over fade as the tracks playing fade out, by the display's frames (core.Scope.Animate), and closing them as they reach silence; it switches at once when fade is 0. A track that fails, such as one the platform cannot decode, plays nothing.\n",
              "file": "pkg/sound/sound.go",
              "line": 326
            },
            {
              "name": "PlaySections",
              "anchor": "Music.PlaySections",
              "recv": "*Music",
              "decl": "func (mu *Music) PlaySections(intro, loop audio.Source, fade time.Duration)",
              "doc": "PlaySections plays intro once without looping, pre-arms loop with looping enabled, and hands off to loop as soon as intro ends, fading in over fade as any previous music fades out. Stopping or starting another track before intro ends cancels loop so it never plays.\n\nIf intro is empty, loop plays directly with looping enabled; if loop is empty, intro plays once without looping; if both are empty, PlaySections stops the music over fade.\n",
              "file": "pkg/sound/sections.go",
              "line": 23
            },
            {
              "name": "PlayWithIntro",
              "anchor": "Music.PlayWithIntro",
              "recv": "*Music",
              "decl": "func (mu *Music) PlayWithIntro(track SectionedTrack, fade time.Duration)",
              "doc": "PlayWithIntro plays track's intro once and hands off immediately to its looping section, fading in over fade as any previous music fades out.\n",
              "file": "pkg/sound/sections.go",
              "line": 16
            },
            {
              "name": "Stop",
              "anchor": "Music.Stop",
              "recv": "*Music",
              "decl": "func (mu *Music) Stop(fade time.Duration)",
              "doc": "Stop fades the music out over fade, closing its tracks as they reach silence; at once when fade is 0.\n",
              "file": "pkg/sound/sound.go",
              "line": 338
            }
          ]
        },
        {
          "name": "PCM",
          "anchor": "PCM",
          "decl": "type PCM struct {\n\tSamples    []float64\n\tSampleRate int\n\tChannels   int\n}",
          "doc": "PCM holds interleaved normalized audio samples in [-1, 1] at a fixed sample rate and channel count.\n",
          "file": "pkg/sound/variants.go",
          "line": 82,
          "members": [
            {
              "name": "Samples",
              "anchor": "PCM.Samples",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SampleRate",
              "anchor": "PCM.SampleRate",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Channels",
              "anchor": "PCM.Channels",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ApplyGain",
              "anchor": "ApplyGain",
              "decl": "func ApplyGain(pcm PCM, volume float64) PCM",
              "doc": "ApplyGain returns a copy of pcm with every sample scaled by volume.\nNegative volumes clamp to 0; NaN or infinite volumes leave samples unchanged.\n",
              "file": "pkg/sound/variants.go",
              "line": 168
            },
            {
              "name": "DecodePCM",
              "anchor": "DecodePCM",
              "decl": "func DecodePCM(wav []byte) (PCM, error)",
              "doc": "DecodePCM decodes a 16-bit signed linear PCM RIFF/WAVE buffer into a PCM buffer.\n",
              "file": "pkg/sound/variants.go",
              "line": 89
            },
            {
              "name": "ResamplePitch",
              "anchor": "ResamplePitch",
              "decl": "func ResamplePitch(pcm PCM, pitch float64) PCM",
              "doc": "ResamplePitch resamples pcm by pitch using Catmull-Rom cubic interpolation without mutating pcm.\nA pitch > 1 plays higher and faster (fewer output frames, approximately Frames()/pitch);\na pitch < 1 plays lower and slower (more output frames). Invalid non-positive or non-finite pitch defaults to 1.\n",
              "file": "pkg/sound/variants.go",
              "line": 113
            }
          ],
          "methods": [
            {
              "name": "EncodeWAV",
              "anchor": "PCM.EncodeWAV",
              "recv": "PCM",
              "decl": "func (p PCM) EncodeWAV() ([]byte, error)",
              "doc": "EncodeWAV encodes p as a canonical 16-bit signed linear PCM RIFF/WAVE buffer.\n",
              "file": "pkg/sound/variants.go",
              "line": 98
            },
            {
              "name": "Frames",
              "anchor": "PCM.Frames",
              "recv": "PCM",
              "decl": "func (p PCM) Frames() int",
              "doc": "Frames returns the number of complete multi-channel frames in p.\n",
              "file": "pkg/sound/variants.go",
              "line": 103
            }
          ]
        },
        {
          "name": "Playback3D",
          "anchor": "Playback3D",
          "decl": "type Playback3D struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Playback3D is a live 3D-positioned playback started by Effect.Play3D or Cue.Play3D.\nMoving the source via SetPosition, updating its directional cone via SetOptions, or moving the\nlistener via Mixer.SetListener3D recomputes its spatialization and updates its underlying\naudio.Playback volume live while honoring the mixer's group volume, master volume, pause,\nsuspend, and background states.\n\nAll methods on a nil or ended Playback3D are safe no-ops.\n",
          "file": "pkg/sound/positional3d.go",
          "line": 495,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Ended",
              "anchor": "Playback3D.Ended",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) Ended() bool",
              "doc": "Ended reports whether the playback has finished, was stopped, or never started.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 644
            },
            {
              "name": "Gain",
              "anchor": "Playback3D.Gain",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) Gain() float32",
              "doc": "Gain returns the playback's latest computed spatial gain in [0, 1].\n",
              "file": "pkg/sound/positional3d.go",
              "line": 612
            },
            {
              "name": "Options",
              "anchor": "Playback3D.Options",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) Options() Spatial3DOptions",
              "doc": "Options returns the playback's current per-source 3D spatialization options.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 586
            },
            {
              "name": "Pan",
              "anchor": "Playback3D.Pan",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) Pan() float32",
              "doc": "Pan returns the playback's latest computed stereo pan in [-1, 1].\n",
              "file": "pkg/sound/positional3d.go",
              "line": 620
            },
            {
              "name": "Playing",
              "anchor": "Playback3D.Playing",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) Playing() bool",
              "doc": "Playing reports whether the playback is currently active.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 652
            },
            {
              "name": "Position",
              "anchor": "Playback3D.Position",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) Position() Vec3",
              "doc": "Position returns the playback's current 3D world position.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 568
            },
            {
              "name": "SetOptions",
              "anchor": "Playback3D.SetOptions",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) SetOptions(opts Spatial3DOptions)",
              "doc": "SetOptions updates the playback's per-source 3D spatialization options (such as a rotating\ndirectional cone), recomputes spatialization, and updates the underlying audio.Playback volume.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 595
            },
            {
              "name": "SetPosition",
              "anchor": "Playback3D.SetPosition",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) SetPosition(pos Vec3)",
              "doc": "SetPosition moves the playback to pos, recomputes its 3D spatialization against its mixer's\nListener3D, and updates the underlying audio.Playback volume immediately if still playing.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 577
            },
            {
              "name": "SetRate",
              "anchor": "Playback3D.SetRate",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) SetRate(rate float32)",
              "doc": "SetRate updates the playback's playback rate on the underlying audio.Playback when still playing.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 628
            },
            {
              "name": "Spatial",
              "anchor": "Playback3D.Spatial",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) Spatial() Spatial3D",
              "doc": "Spatial returns the playback's latest computed 3D spatialization (Gain, Pan, and Distance).\n",
              "file": "pkg/sound/positional3d.go",
              "line": 604
            },
            {
              "name": "Stop",
              "anchor": "Playback3D.Stop",
              "recv": "*Playback3D",
              "decl": "func (p *Playback3D) Stop()",
              "doc": "Stop stops the playback immediately. Calling Stop on a nil or already-ended Playback3D is a no-op.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 636
            }
          ]
        },
        {
          "name": "RandSource",
          "anchor": "RandSource",
          "decl": "type RandSource interface {\n\tUint64() uint64\n}",
          "doc": "RandSource is a source of uniformly distributed pseudo-random uint64 values.\nAny seeded stream implementing Uint64() uint64 (such as math/rand/v2.Source\nor a game/random stream) satisfies RandSource without introducing extra imports.\n",
          "file": "pkg/sound/variants.go",
          "line": 13,
          "members": [
            {
              "name": "Uint64",
              "anchor": "RandSource.Uint64",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Rolloff",
          "anchor": "Rolloff",
          "decl": "type Rolloff uint8",
          "doc": "Rolloff is how an effect's volume falls from Near to Far in a Listener2D or Listener3D.\n",
          "file": "pkg/sound/positional.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "RolloffLinear",
                  "anchor": "RolloffLinear"
                },
                {
                  "name": "RolloffInverse",
                  "anchor": "RolloffInverse"
                },
                {
                  "name": "RolloffExponential",
                  "anchor": "RolloffExponential"
                }
              ],
              "decl": "const (\n\t// RolloffLinear falls in a straight line from full volume at Near to silence at Far.\n\tRolloffLinear Rolloff = iota\n\t// RolloffInverse falls as Near divided by the distance, as sound does in the open, rescaled to reach silence at Far: steep close to Near and gentle towards Far. With a Near of 0 it falls as RolloffLinear.\n\tRolloffInverse\n\t// RolloffExponential falls as (Near / distance)^factor (inverse-square by default when factor is 2), rescaled to reach silence at Far: steeper than RolloffInverse close to Near. With a Near of 0 it falls as ((Far - distance) / Far)^factor.\n\tRolloffExponential\n)",
              "doc": "",
              "file": "pkg/sound/positional.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SectionedTrack",
          "anchor": "SectionedTrack",
          "decl": "type SectionedTrack struct {\n\tIntro audio.Source\n\tLoop  audio.Source\n}",
          "doc": "SectionedTrack pairs an intro section played once with a loop section that repeats indefinitely after the intro ends.\n",
          "file": "pkg/sound/sections.go",
          "line": 10,
          "members": [
            {
              "name": "Intro",
              "anchor": "SectionedTrack.Intro",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Loop",
              "anchor": "SectionedTrack.Loop",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Spatial3D",
          "anchor": "Spatial3D",
          "decl": "type Spatial3D struct {\n\t// Gain is the combined spatial attenuation in [0, 1] (distance * rear * source cone).\n\tGain float32\n\t// Pan is the stereo pan in [-1, 1] (-1 full left, 0 centered, +1 full right).\n\tPan float32\n\t// Distance is the Euclidean distance from the listener to the source in world units (0 when NaN).\n\tDistance float32\n}",
          "doc": "Spatial3D holds the computed 3D spatialization for a source relative to a Listener3D.\n",
          "file": "pkg/sound/positional3d.go",
          "line": 116,
          "members": [
            {
              "name": "Gain",
              "anchor": "Spatial3D.Gain",
              "kind": "field",
              "doc": "Gain is the combined spatial attenuation in [0, 1] (distance * rear * source cone)."
            },
            {
              "name": "Pan",
              "anchor": "Spatial3D.Pan",
              "kind": "field",
              "doc": "Pan is the stereo pan in [-1, 1] (-1 full left, 0 centered, +1 full right)."
            },
            {
              "name": "Distance",
              "anchor": "Spatial3D.Distance",
              "kind": "field",
              "doc": "Distance is the Euclidean distance from the listener to the source in world units (0 when NaN)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Spatialize3D",
              "anchor": "Spatialize3D",
              "decl": "func Spatialize3D(l Listener3D, pos Vec3, opts Spatial3DOptions) Spatial3D",
              "doc": "Spatialize3D computes 3D spatialization for a source at pos relative to l with opts.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 126
            }
          ],
          "methods": []
        },
        {
          "name": "Spatial3DOptions",
          "anchor": "Spatial3DOptions",
          "decl": "type Spatial3DOptions struct {\n\t// Near overrides Listener3D.Near when > 0 and finite.\n\tNear float32\n\t// Far overrides Listener3D.Far when > 0 and finite.\n\tFar float32\n\t// HasRolloff selects Rolloff over Listener3D.Rolloff when true.\n\tHasRolloff bool\n\t// Rolloff overrides Listener3D.Rolloff when HasRolloff is true.\n\tRolloff Rolloff\n\t// RolloffFactor overrides Listener3D.RolloffFactor when > 0 and finite.\n\tRolloffFactor float32\n\n\t// SourceForward is the direction a directional sound source emits toward.\n\t// When zero or non-finite, or when OuterConeAngle <= 0, the source is omnidirectional.\n\tSourceForward Vec3\n\t// InnerConeAngle is the full cone angle in radians (in [0, 2*Pi]) within which the directional\n\t// source plays at full cone gain (1). Clamped to [0, OuterConeAngle].\n\tInnerConeAngle float32\n\t// OuterConeAngle is the full cone angle in radians (in [0, 2*Pi]) beyond which the directional\n\t// source plays at OuterGain. Between InnerConeAngle and OuterConeAngle, cone gain interpolates\n\t// linearly from 1 to OuterGain. When <= 0 or NaN, directional cone attenuation is disabled.\n\tOuterConeAngle float32\n\t// OuterGain is the cone gain multiplier outside OuterConeAngle, clamped to [0, 1].\n\tOuterGain float32\n}",
          "doc": "Spatial3DOptions customizes 3D spatialization for a single sound source, such as per-source\ndistance attenuation overrides or a directional emission cone. Its zero value represents an\nomnidirectional point source using the listener's attenuation settings.\n",
          "file": "pkg/sound/positional3d.go",
          "line": 89,
          "members": [
            {
              "name": "Near",
              "anchor": "Spatial3DOptions.Near",
              "kind": "field",
              "doc": "Near overrides Listener3D.Near when > 0 and finite."
            },
            {
              "name": "Far",
              "anchor": "Spatial3DOptions.Far",
              "kind": "field",
              "doc": "Far overrides Listener3D.Far when > 0 and finite."
            },
            {
              "name": "HasRolloff",
              "anchor": "Spatial3DOptions.HasRolloff",
              "kind": "field",
              "doc": "HasRolloff selects Rolloff over Listener3D.Rolloff when true."
            },
            {
              "name": "Rolloff",
              "anchor": "Spatial3DOptions.Rolloff",
              "kind": "field",
              "doc": "Rolloff overrides Listener3D.Rolloff when HasRolloff is true."
            },
            {
              "name": "RolloffFactor",
              "anchor": "Spatial3DOptions.RolloffFactor",
              "kind": "field",
              "doc": "RolloffFactor overrides Listener3D.RolloffFactor when > 0 and finite."
            },
            {
              "name": "SourceForward",
              "anchor": "Spatial3DOptions.SourceForward",
              "kind": "field",
              "doc": "SourceForward is the direction a directional sound source emits toward.\nWhen zero or non-finite, or when OuterConeAngle <= 0, the source is omnidirectional."
            },
            {
              "name": "InnerConeAngle",
              "anchor": "Spatial3DOptions.InnerConeAngle",
              "kind": "field",
              "doc": "InnerConeAngle is the full cone angle in radians (in [0, 2*Pi]) within which the directional\nsource plays at full cone gain (1). Clamped to [0, OuterConeAngle]."
            },
            {
              "name": "OuterConeAngle",
              "anchor": "Spatial3DOptions.OuterConeAngle",
              "kind": "field",
              "doc": "OuterConeAngle is the full cone angle in radians (in [0, 2*Pi]) beyond which the directional\nsource plays at OuterGain. Between InnerConeAngle and OuterConeAngle, cone gain interpolates\nlinearly from 1 to OuterGain. When <= 0 or NaN, directional cone attenuation is disabled."
            },
            {
              "name": "OuterGain",
              "anchor": "Spatial3DOptions.OuterGain",
              "kind": "field",
              "doc": "OuterGain is the cone gain multiplier outside OuterConeAngle, clamped to [0, 1]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Vec3",
          "anchor": "Vec3",
          "decl": "type Vec3 struct {\n\tX, Y, Z float32\n}",
          "doc": "Vec3 is a 3D point or direction in right-handed Y-up space (+X right, +Y up, -Z forward),\nmatching math3d.Vec3 and scene3d.Camera so callers can convert directly with sound.Vec3(v).\n",
          "file": "pkg/sound/positional3d.go",
          "line": 16,
          "members": [
            {
              "name": "X",
              "anchor": "Vec3.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Vec3.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "Vec3.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "V3",
              "anchor": "V3",
              "decl": "func V3(x, y, z float32) Vec3",
              "doc": "V3 returns a Vec3 with the given coordinates.\n",
              "file": "pkg/sound/positional3d.go",
              "line": 21
            }
          ],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/sprite",
      "name": "sprite",
      "dir": "pkg/sprite",
      "page": "pkg/sprite",
      "synopsis": "",
      "doc": "",
      "consts": [
        {
          "idents": [
            {
              "name": "MaxShaderPaletteEntries",
              "anchor": "MaxShaderPaletteEntries"
            }
          ],
          "decl": "const MaxShaderPaletteEntries = 8",
          "doc": "MaxShaderPaletteEntries is the maximum number of PaletteSwap entries bound\nto the GPU sprite effect shader (EffectProgram). CPU rendering in Batch.Draw\nsupports an arbitrary number of entries.\n",
          "file": "pkg/sprite/effect_shader.go",
          "line": 13
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "DrawMasked",
          "anchor": "DrawMasked",
          "decl": "func DrawMasked(d *core.Drawing, mask Mask, draw func(*core.Drawing))",
          "doc": "DrawMasked clips d to mask, runs draw, and restores d's state. A zero Mask runs draw without clipping; a mask with no area skips draw.\n",
          "file": "pkg/sprite/mask.go",
          "line": 65
        },
        {
          "name": "EffectProgram",
          "anchor": "EffectProgram",
          "decl": "func EffectProgram() (*core.ShaderProgram, error)",
          "doc": "EffectProgram returns the compiled Kage GPU shader program for per-sprite\nflash, silhouette, alpha outline, dissolve and palette swap. It compiles on\nfirst call so apps that do not use GPU sprite shaders do not link the shader\ncompiler.\n",
          "file": "pkg/sprite/effect_shader.go",
          "line": 203
        },
        {
          "name": "EffectShader",
          "anchor": "EffectShader",
          "decl": "func EffectShader(atlas *Atlas, s Sprite) (core.Shader, error)",
          "doc": "EffectShader returns a core.Shader node that renders s through EffectProgram\non the GPU, reading atlas.Image as image0 (and Dissolve.Noise as image1 when\nset). It works with URI atlases as well as pixel buffers and embedded bytes\non GPU-backed targets (Metal, Direct3D 11, OpenGL, GLES 3.0 and WebGL 2).\n\nThe returned Shader's Style sets Width and Height to the sprite's scaled\nframe size plus any outline padding; callers position it in their layout or\noverride Uniforms entries with AnimatedNode values.\n",
          "file": "pkg/sprite/effect_shader.go",
          "line": 288
        }
      ],
      "types": [
        {
          "name": "Animation",
          "anchor": "Animation",
          "decl": "type Animation struct {\n\t// Frames are the frames it plays, in order.\n\tFrames []AnimationFrame\n\t// Loop starts it over after its last frame; without it, it stays on the last frame and is done.\n\tLoop bool\n\t// Speed scales playback rate; 0 plays at 1x, positive values play forward, and negative values play in reverse.\n\tSpeed float32\n\t// OnEvent, if set, is called with the frame's Event and index whenever playback enters a frame that names an Event.\n\tOnEvent func(event string, frameIndex int)\n\t// contains filtered or unexported fields\n}",
          "doc": "Animation plays frames one after another, each for its own duration, moved on by Update with a game.Loop's fixed steps.\n\nAn Animation is a value that keeps where it is in its frames, so each sprite plays its own copy of one: copy it from an Atlas's Animations, or write one by hand.\n",
          "file": "pkg/sprite/animation.go",
          "line": 11,
          "members": [
            {
              "name": "Frames",
              "anchor": "Animation.Frames",
              "kind": "field",
              "doc": "Frames are the frames it plays, in order."
            },
            {
              "name": "Loop",
              "anchor": "Animation.Loop",
              "kind": "field",
              "doc": "Loop starts it over after its last frame; without it, it stays on the last frame and is done."
            },
            {
              "name": "Speed",
              "anchor": "Animation.Speed",
              "kind": "field",
              "doc": "Speed scales playback rate; 0 plays at 1x, positive values play forward, and negative values play in reverse."
            },
            {
              "name": "OnEvent",
              "anchor": "Animation.OnEvent",
              "kind": "field",
              "doc": "OnEvent, if set, is called with the frame's Event and index whenever playback enters a frame that names an Event."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Done",
              "anchor": "Animation.Done",
              "recv": "Animation",
              "decl": "func (a Animation) Done() bool",
              "doc": "Done reports whether an animation that does not loop has shown its last frame for that frame's duration.\n",
              "file": "pkg/sprite/animation.go",
              "line": 190
            },
            {
              "name": "Frame",
              "anchor": "Animation.Frame",
              "recv": "Animation",
              "decl": "func (a Animation) Frame() Frame",
              "doc": "Frame returns the frame showing now, the zero Frame for an animation of none.\n",
              "file": "pkg/sprite/animation.go",
              "line": 179
            },
            {
              "name": "Index",
              "anchor": "Animation.Index",
              "recv": "Animation",
              "decl": "func (a Animation) Index() int",
              "doc": "Index returns the index in Frames of the frame showing now.\n",
              "file": "pkg/sprite/animation.go",
              "line": 187
            },
            {
              "name": "Reset",
              "anchor": "Animation.Reset",
              "recv": "*Animation",
              "decl": "func (a *Animation) Reset()",
              "doc": "Reset starts the animation over from its first frame (or its last frame when Speed is negative).\n",
              "file": "pkg/sprite/animation.go",
              "line": 193
            },
            {
              "name": "Update",
              "anchor": "Animation.Update",
              "recv": "*Animation",
              "decl": "func (a *Animation) Update(dt time.Duration)",
              "doc": "Update moves the animation on by dt, past as many frames as dt covers, calling OnEvent for each frame entered that names an Event. A looping animation whose frames add up to no time stays on its first frame.\n",
              "file": "pkg/sprite/animation.go",
              "line": 36
            },
            {
              "name": "UpdateEvents",
              "anchor": "Animation.UpdateEvents",
              "recv": "*Animation",
              "decl": "func (a *Animation) UpdateEvents(dt time.Duration) []string",
              "doc": "UpdateEvents moves the animation on by dt as Update does and returns the Event names of the frames entered during the step, in order.\n",
              "file": "pkg/sprite/animation.go",
              "line": 41
            }
          ]
        },
        {
          "name": "AnimationFrame",
          "anchor": "AnimationFrame",
          "decl": "type AnimationFrame struct {\n\tFrame    Frame\n\tDuration time.Duration\n\t// Event is an optional cue name fired when playback enters this frame.\n\tEvent string\n}",
          "doc": "AnimationFrame is one frame of an animation and how long it shows.\n",
          "file": "pkg/sprite/animation.go",
          "line": 28,
          "members": [
            {
              "name": "Frame",
              "anchor": "AnimationFrame.Frame",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "AnimationFrame.Duration",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Event",
              "anchor": "AnimationFrame.Event",
              "kind": "field",
              "doc": "Event is an optional cue name fired when playback enters this frame."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Atlas",
          "anchor": "Atlas",
          "decl": "type Atlas struct {\n\t// Image is the packed image, which sprites draw parts of.\n\tImage core.ImageSource\n\t// Frames are the atlas's pictures by name.\n\tFrames map[string]Frame\n\t// Animations are the atlas's animations by name: an Aseprite export's frame tags. Copy one to play it.\n\tAnimations map[string]Animation\n\t// Slices are the atlas's nine-slice insets by name: an Aseprite export's nine-slice entries in meta.slices.\n\tSlices map[string]Insets\n\t// contains filtered or unexported fields\n}",
          "doc": "Atlas is an image that packs many pictures, and the frames that say where each one is.\n\nLoadAtlas reads the JSON a sprite packer exports with the image. A game can also write the table by hand as an Atlas literal.\n",
          "file": "pkg/sprite/atlas.go",
          "line": 20,
          "members": [
            {
              "name": "Image",
              "anchor": "Atlas.Image",
              "kind": "field",
              "doc": "Image is the packed image, which sprites draw parts of."
            },
            {
              "name": "Frames",
              "anchor": "Atlas.Frames",
              "kind": "field",
              "doc": "Frames are the atlas's pictures by name."
            },
            {
              "name": "Animations",
              "anchor": "Atlas.Animations",
              "kind": "field",
              "doc": "Animations are the atlas's animations by name: an Aseprite export's frame tags. Copy one to play it."
            },
            {
              "name": "Slices",
              "anchor": "Atlas.Slices",
              "kind": "field",
              "doc": "Slices are the atlas's nine-slice insets by name: an Aseprite export's nine-slice entries in meta.slices."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadAtlas",
              "anchor": "LoadAtlas",
              "decl": "func LoadAtlas(img core.ImageSource, data []byte) (*Atlas, error)",
              "doc": "LoadAtlas reads the JSON atlas data that TexturePacker (\"JSON (Hash)\" and \"JSON (Array)\") or Aseprite (json-hash and json-array) exports for img, the image it packed.\n\nIts rectangles are in the image's pixels, which it divides by the export's meta.scale, so img measures its points as a 1x image does. TexturePacker's per-frame pivot becomes the frame's PivotX and PivotY, in points of the untrimmed picture. Aseprite's frame tags become Animations, each frame for the duration the export gives it, in the tag's direction, looping unless the tag has a repeat count; nine-slice entries in meta.slices become Slices. Frames a packer rotated are refused: export with rotation off.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/sprite/atlas.go",
              "line": 70
            }
          ],
          "methods": []
        },
        {
          "name": "Batch",
          "anchor": "Batch",
          "decl": "type Batch struct {\n\t// Atlas is where the sprites' frames are.\n\tAtlas *Atlas\n\t// Sprites are the sprites it draws.\n\tSprites []*Sprite\n\t// Mask, if set, clips the whole batch to a shape in the drawing's coordinates.\n\tMask *Mask\n\t// contains filtered or unexported fields\n}",
          "doc": "Batch draws sprites of one atlas into a drawing, in Z order. A batch with no Atlas draws nothing.\n",
          "file": "pkg/sprite/sprite.go",
          "line": 87,
          "members": [
            {
              "name": "Atlas",
              "anchor": "Batch.Atlas",
              "kind": "field",
              "doc": "Atlas is where the sprites' frames are."
            },
            {
              "name": "Sprites",
              "anchor": "Batch.Sprites",
              "kind": "field",
              "doc": "Sprites are the sprites it draws."
            },
            {
              "name": "Mask",
              "anchor": "Batch.Mask",
              "kind": "field",
              "doc": "Mask, if set, clips the whole batch to a shape in the drawing's coordinates."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "Batch.Draw",
              "recv": "*Batch",
              "decl": "func (b *Batch) Draw(d *core.Drawing)",
              "doc": "Draw draws the batch's sprites into d, lowest Z first, and leaves d's state as it found it.\n\nConsecutive sprites (in Z order) that are only moved, turned and scaled evenly, with the default blend, no tint, no mask and no active effect of their own, draw with one Drawing.DrawAtlas. A run of sprites at full opacity keeps the drawing's alpha, as a lone such sprite does; a run of faded sprites draws between Save and Restore with the alpha set to 1, so that each sprite's Alpha replaces the drawing's, as Sprite.Alpha says. A sprite that is mirrored, scaled unevenly, tinted, blended, masked or has an active effect, and a run of one, draws on its own, between Save and Restore when it turns, mirrors, fades, blends or clips.\n",
              "file": "pkg/sprite/sprite.go",
              "line": 109
            }
          ]
        },
        {
          "name": "Dissolve",
          "anchor": "Dissolve",
          "decl": "type Dissolve struct {\n\t// Threshold is the dissolve progress in [0, 1]. Values <= 0 or NaN leave\n\t// the sprite intact; values >= 1 dissolve every pixel to transparent.\n\tThreshold float32\n\t// EdgeWidth is the width of the glowing edge above Threshold, in [0, 1].\n\t// Surviving pixels whose noise lies in [Threshold, Threshold+EdgeWidth)\n\t// are blended toward EdgeColor.\n\tEdgeWidth float32\n\t// EdgeColor is the dissolve front color when EdgeWidth > 0. Its alpha sets\n\t// the blend strength over surviving edge pixels.\n\tEdgeColor core.Color\n\t// Seed selects the deterministic built-in noise pattern when Noise is nil.\n\tSeed uint32\n\t// Scale controls the spatial cell size of the built-in noise in source\n\t// pixels. Values <= 1 (or NaN) sample per-pixel hash noise; larger values\n\t// interpolate smooth value-noise cells.\n\tScale float32\n\t// Noise is an optional grayscale noise image sampled in [0, 1] across the\n\t// frame. When nil, deterministic value noise seeded by Seed is used.\n\tNoise image.Image\n}",
          "doc": "Dissolve progressively erodes a sprite's pixels as Threshold advances from 0\n(intact) to 1 (fully dissolved), optionally coloring a glowing band along\nthe dissolve front.\n",
          "file": "pkg/sprite/effect.go",
          "line": 116,
          "members": [
            {
              "name": "Threshold",
              "anchor": "Dissolve.Threshold",
              "kind": "field",
              "doc": "Threshold is the dissolve progress in [0, 1]. Values <= 0 or NaN leave\nthe sprite intact; values >= 1 dissolve every pixel to transparent."
            },
            {
              "name": "EdgeWidth",
              "anchor": "Dissolve.EdgeWidth",
              "kind": "field",
              "doc": "EdgeWidth is the width of the glowing edge above Threshold, in [0, 1].\nSurviving pixels whose noise lies in [Threshold, Threshold+EdgeWidth)\nare blended toward EdgeColor."
            },
            {
              "name": "EdgeColor",
              "anchor": "Dissolve.EdgeColor",
              "kind": "field",
              "doc": "EdgeColor is the dissolve front color when EdgeWidth > 0. Its alpha sets\nthe blend strength over surviving edge pixels."
            },
            {
              "name": "Seed",
              "anchor": "Dissolve.Seed",
              "kind": "field",
              "doc": "Seed selects the deterministic built-in noise pattern when Noise is nil."
            },
            {
              "name": "Scale",
              "anchor": "Dissolve.Scale",
              "kind": "field",
              "doc": "Scale controls the spatial cell size of the built-in noise in source\npixels. Values <= 1 (or NaN) sample per-pixel hash noise; larger values\ninterpolate smooth value-noise cells."
            },
            {
              "name": "Noise",
              "anchor": "Dissolve.Noise",
              "kind": "field",
              "doc": "Noise is an optional grayscale noise image sampled in [0, 1] across the\nframe. When nil, deterministic value noise seeded by Seed is used."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Effect",
          "anchor": "Effect",
          "decl": "type Effect struct {\n\t// Flash blends sprite RGB toward a solid color (or silhouette at Strength 1).\n\tFlash Flash\n\t// Outline draws a solid-color alpha border around opaque sprite pixels.\n\tOutline Outline\n\t// Dissolve erodes sprite pixels against deterministic or custom noise.\n\tDissolve Dissolve\n\t// PaletteSwap remaps source colors per sprite.\n\tPaletteSwap PaletteSwap\n\t// Custom, if set, runs last on each pixel of the sprite's frame buffer.\n\t// x and y are source-pixel coordinates relative to the unpadded frame's\n\t// top-left (outside [0, w) x [0, h) inside Outline padding); w and h are\n\t// the unpadded frame dimensions in source pixels. r, g, b, a are\n\t// premultiplied channels in [0, 1]; the returned premultiplied channels\n\t// are clamped to valid premultiplied [0, 1] values.\n\tCustom func(x, y, w, h int, r, g, b, a float32) (nr, ng, nb, na float32)\n}",
          "doc": "Effect describes per-sprite visual effects applied to one Sprite's pixels\nbefore compositing onto a drawing, leaving neighboring sprites and anything\ndrawn under the sprite unchanged.\n\nIts zero value applies no effect, so a Sprite with a nil or inactive Effect\nremains on Batch's DrawAtlas fast path. Multiple stages may be combined on\none Effect; they run in deterministic order:\n\n 1. PaletteSwap (matches and remaps source atlas colors)\n 2. Sprite.Tint (multiplies base sprite color when Tint is also set)\n 3. Dissolve    (discards pixels below threshold and tints the dissolve edge)\n 4. Flash       (blends RGB toward a solid color or silhouette, preserving alpha)\n 5. Outline     (draws a solid border around opaque pixels with padding)\n 6. Custom      (optional per-pixel hook over premultiplied RGBA)\n\nParameters may change every frame. Batch reuses per-slot RGBA pixel buffers\nacross frames so changing parameters does not leak memory.\n",
          "file": "pkg/sprite/effect.go",
          "line": 212,
          "members": [
            {
              "name": "Flash",
              "anchor": "Effect.Flash",
              "kind": "field",
              "doc": "Flash blends sprite RGB toward a solid color (or silhouette at Strength 1)."
            },
            {
              "name": "Outline",
              "anchor": "Effect.Outline",
              "kind": "field",
              "doc": "Outline draws a solid-color alpha border around opaque sprite pixels."
            },
            {
              "name": "Dissolve",
              "anchor": "Effect.Dissolve",
              "kind": "field",
              "doc": "Dissolve erodes sprite pixels against deterministic or custom noise."
            },
            {
              "name": "PaletteSwap",
              "anchor": "Effect.PaletteSwap",
              "kind": "field",
              "doc": "PaletteSwap remaps source colors per sprite."
            },
            {
              "name": "Custom",
              "anchor": "Effect.Custom",
              "kind": "field",
              "doc": "Custom, if set, runs last on each pixel of the sprite's frame buffer.\nx and y are source-pixel coordinates relative to the unpadded frame's\ntop-left (outside [0, w) x [0, h) inside Outline padding); w and h are\nthe unpadded frame dimensions in source pixels. r, g, b, a are\npremultiplied channels in [0, 1]; the returned premultiplied channels\nare clamped to valid premultiplied [0, 1] values."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Active",
              "anchor": "Effect.Active",
              "recv": "*Effect",
              "decl": "func (e *Effect) Active() bool",
              "doc": "Active reports whether e applies any visible effect. A nil or zero Effect\nreturns false.\n",
              "file": "pkg/sprite/effect.go",
              "line": 232
            },
            {
              "name": "Apply",
              "anchor": "Effect.Apply",
              "recv": "*Effect",
              "decl": "func (e *Effect) Apply(src image.Image, frame Frame) (out *image.RGBA, pad int)",
              "doc": "Apply renders frame of src through e into a new premultiplied *image.RGBA,\nreturning the image and the outline padding in source pixels added on each\nside. It returns (nil, 0) if src is nil or frame has non-positive dimensions.\n",
              "file": "pkg/sprite/effect.go",
              "line": 251
            },
            {
              "name": "OutlinePadding",
              "anchor": "Effect.OutlinePadding",
              "recv": "*Effect",
              "decl": "func (e *Effect) OutlinePadding() int",
              "doc": "OutlinePadding returns the border padding in source pixels added on each side\nof the sprite when Outline is active, or 0 otherwise.\n",
              "file": "pkg/sprite/effect.go",
              "line": 241
            },
            {
              "name": "Uniforms",
              "anchor": "Effect.Uniforms",
              "recv": "Effect",
              "decl": "func (e Effect) Uniforms(frame Frame, atlasPixelScale float32, tint core.Color, alpha float32) core.Uniforms",
              "doc": "Uniforms builds the core.Uniforms map for EffectProgram from e, frame,\natlasPixelScale (pixels per point; values <= 0 default to 1), tint and\nalpha. Callers may replace individual keys such as \"FlashStrength\" or\n\"DissolveThreshold\" with a core.AnimatedNode to animate on the platform's\nframe clock with no commit per frame.\n",
              "file": "pkg/sprite/effect_shader.go",
              "line": 218
            }
          ]
        },
        {
          "name": "Flash",
          "anchor": "Flash",
          "decl": "type Flash struct {\n\t// Color is the target flash or silhouette color. Its RGB channels set the\n\t// color; the zero Color is black.\n\tColor core.Color\n\t// Strength is the blend amount in [0, 1].\n\tStrength float32\n}",
          "doc": "Flash blends a sprite's non-transparent RGB toward Color by Strength in\n[0, 1] while preserving each pixel's alpha. Strength <= 0 (or NaN) disables\nthe flash; Strength >= 1 draws a solid-color silhouette.\n",
          "file": "pkg/sprite/effect.go",
          "line": 30,
          "members": [
            {
              "name": "Color",
              "anchor": "Flash.Color",
              "kind": "field",
              "doc": "Color is the target flash or silhouette color. Its RGB channels set the\ncolor; the zero Color is black."
            },
            {
              "name": "Strength",
              "anchor": "Flash.Strength",
              "kind": "field",
              "doc": "Strength is the blend amount in [0, 1]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Silhouette",
              "anchor": "Silhouette",
              "decl": "func Silhouette(c core.Color) Flash",
              "doc": "Silhouette returns a full-strength Flash that draws the sprite's alpha shape\nin solid color c.\n",
              "file": "pkg/sprite/effect.go",
              "line": 40
            }
          ],
          "methods": []
        },
        {
          "name": "Frame",
          "anchor": "Frame",
          "decl": "type Frame struct {\n\t// Name is the frame's name in the atlas.\n\tName string\n\t// X, Y, W and H are the part of the atlas's image the frame draws, in the image's points.\n\tX, Y, W, H float32\n\t// OffsetX and OffsetY are where that part sits in the untrimmed picture, 0 for a frame packed untrimmed.\n\tOffsetX, OffsetY float32\n\t// Width and Height are the untrimmed picture's size, which sprites place and flip the frame in: W and H for a frame packed untrimmed.\n\tWidth, Height float32\n\t// PivotX and PivotY are the frame's pivot in the untrimmed picture, in points from its top left: TexturePacker's per-frame pivot, or 0 when the export gives none. NewSprite puts the sprite's origin here.\n\tPivotX, PivotY float32\n}",
          "doc": "Frame is one picture in an atlas: a part of its image, which a packer may have trimmed of the transparent border the picture had.\n",
          "file": "pkg/sprite/atlas.go",
          "line": 37,
          "members": [
            {
              "name": "Name",
              "anchor": "Frame.Name",
              "kind": "field",
              "doc": "Name is the frame's name in the atlas."
            },
            {
              "name": "X",
              "anchor": "Frame.X",
              "kind": "field",
              "doc": "X, Y, W and H are the part of the atlas's image the frame draws, in the image's points."
            },
            {
              "name": "Y",
              "anchor": "Frame.Y",
              "kind": "field",
              "doc": "X, Y, W and H are the part of the atlas's image the frame draws, in the image's points."
            },
            {
              "name": "W",
              "anchor": "Frame.W",
              "kind": "field",
              "doc": "X, Y, W and H are the part of the atlas's image the frame draws, in the image's points."
            },
            {
              "name": "H",
              "anchor": "Frame.H",
              "kind": "field",
              "doc": "X, Y, W and H are the part of the atlas's image the frame draws, in the image's points."
            },
            {
              "name": "OffsetX",
              "anchor": "Frame.OffsetX",
              "kind": "field",
              "doc": "OffsetX and OffsetY are where that part sits in the untrimmed picture, 0 for a frame packed untrimmed."
            },
            {
              "name": "OffsetY",
              "anchor": "Frame.OffsetY",
              "kind": "field",
              "doc": "OffsetX and OffsetY are where that part sits in the untrimmed picture, 0 for a frame packed untrimmed."
            },
            {
              "name": "Width",
              "anchor": "Frame.Width",
              "kind": "field",
              "doc": "Width and Height are the untrimmed picture's size, which sprites place and flip the frame in: W and H for a frame packed untrimmed."
            },
            {
              "name": "Height",
              "anchor": "Frame.Height",
              "kind": "field",
              "doc": "Width and Height are the untrimmed picture's size, which sprites place and flip the frame in: W and H for a frame packed untrimmed."
            },
            {
              "name": "PivotX",
              "anchor": "Frame.PivotX",
              "kind": "field",
              "doc": "PivotX and PivotY are the frame's pivot in the untrimmed picture, in points from its top left: TexturePacker's per-frame pivot, or 0 when the export gives none. NewSprite puts the sprite's origin here."
            },
            {
              "name": "PivotY",
              "anchor": "Frame.PivotY",
              "kind": "field",
              "doc": "PivotX and PivotY are the frame's pivot in the untrimmed picture, in points from its top left: TexturePacker's per-frame pivot, or 0 when the export gives none. NewSprite puts the sprite's origin here."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Offset",
              "anchor": "Frame.Offset",
              "recv": "Frame",
              "decl": "func (f Frame) Offset() math2d.Vec2",
              "doc": "Offset returns the trimmed frame's offset inside the untrimmed picture.\n",
              "file": "pkg/sprite/atlas.go",
              "line": 56
            },
            {
              "name": "Rect",
              "anchor": "Frame.Rect",
              "recv": "Frame",
              "decl": "func (f Frame) Rect() math2d.Rect",
              "doc": "Rect returns the frame's source rectangle in the atlas image.\n",
              "file": "pkg/sprite/atlas.go",
              "line": 51
            },
            {
              "name": "Size",
              "anchor": "Frame.Size",
              "recv": "Frame",
              "decl": "func (f Frame) Size() math2d.Vec2",
              "doc": "Size returns the untrimmed picture's size.\n",
              "file": "pkg/sprite/atlas.go",
              "line": 61
            }
          ]
        },
        {
          "name": "Insets",
          "anchor": "Insets",
          "decl": "type Insets struct {\n\tLeft, Top, Right, Bottom float32\n}",
          "doc": "Insets are the margins kept unscaled around the edges of a nine-slice frame, in the frame's points.\n",
          "file": "pkg/sprite/nineslice.go",
          "line": 6,
          "members": [
            {
              "name": "Left",
              "anchor": "Insets.Left",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Top",
              "anchor": "Insets.Top",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Right",
              "anchor": "Insets.Right",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bottom",
              "anchor": "Insets.Bottom",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Mask",
          "anchor": "Mask",
          "decl": "type Mask struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Mask clips drawing to a rectangle, circle, ellipse, or polygon in the drawing's coordinates.\n\nIts zero value leaves drawing unmasked. A mask whose shape has no area (a non-positive rectangle or radius, or a polygon of fewer than three points) clips everything drawn through it.\n",
          "file": "pkg/sprite/mask.go",
          "line": 31,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CircleMask",
              "anchor": "CircleMask",
              "decl": "func CircleMask(cx, cy, r float32) Mask",
              "doc": "CircleMask returns a mask that clips drawing to the circle centered at (cx, cy) with radius r.\n",
              "file": "pkg/sprite/mask.go",
              "line": 50
            },
            {
              "name": "EllipseMask",
              "anchor": "EllipseMask",
              "decl": "func EllipseMask(cx, cy, rx, ry float32) Mask",
              "doc": "EllipseMask returns a mask that clips drawing to the ellipse centered at (cx, cy) with radii rx and ry.\n",
              "file": "pkg/sprite/mask.go",
              "line": 55
            },
            {
              "name": "PolygonMask",
              "anchor": "PolygonMask",
              "decl": "func PolygonMask(points []core.Point) Mask",
              "doc": "PolygonMask returns a mask that clips drawing to the closed polygon formed by points.\n",
              "file": "pkg/sprite/mask.go",
              "line": 60
            },
            {
              "name": "RectMask",
              "anchor": "RectMask",
              "decl": "func RectMask(b core.Bounds) Mask",
              "doc": "RectMask returns a mask that clips drawing to the rectangle b.\n",
              "file": "pkg/sprite/mask.go",
              "line": 39
            }
          ],
          "methods": []
        },
        {
          "name": "NineSlice",
          "anchor": "NineSlice",
          "decl": "type NineSlice struct {\n\t// Image is the packed image that holds Frame.\n\tImage core.ImageSource\n\t// Frame is the part of Image to slice.\n\tFrame Frame\n\t// Insets are the margins on each side of Frame that stay unscaled.\n\tInsets Insets\n\t// TileCenter repeats the center region at its natural size instead of stretching it.\n\tTileCenter bool\n}",
          "doc": "NineSlice draws a frame into any rectangle while keeping its four corners unscaled and stretching its edges and center to fill the space.\n",
          "file": "pkg/sprite/nineslice.go",
          "line": 11,
          "members": [
            {
              "name": "Image",
              "anchor": "NineSlice.Image",
              "kind": "field",
              "doc": "Image is the packed image that holds Frame."
            },
            {
              "name": "Frame",
              "anchor": "NineSlice.Frame",
              "kind": "field",
              "doc": "Frame is the part of Image to slice."
            },
            {
              "name": "Insets",
              "anchor": "NineSlice.Insets",
              "kind": "field",
              "doc": "Insets are the margins on each side of Frame that stay unscaled."
            },
            {
              "name": "TileCenter",
              "anchor": "NineSlice.TileCenter",
              "kind": "field",
              "doc": "TileCenter repeats the center region at its natural size instead of stretching it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "NineSlice.Draw",
              "recv": "*NineSlice",
              "decl": "func (n *NineSlice) Draw(d *core.Drawing, x, y, width, height float32)",
              "doc": "Draw draws the nine-slice into d across the rectangle x, y, width, height, skipping any slice whose source or target dimension is zero.\n\nWhen width is smaller than Left+Right or height is smaller than Top+Bottom, the margins shrink proportionally to fit and the middle spans are omitted.\n",
              "file": "pkg/sprite/nineslice.go",
              "line": 25
            }
          ]
        },
        {
          "name": "Outline",
          "anchor": "Outline",
          "decl": "type Outline struct {\n\t// Color is the outline color. Its alpha sets the outline opacity; a Color\n\t// with alpha 0 draws no outline.\n\tColor core.Color\n\t// Thickness is the border width in source pixels, clamped to [0, 64].\n\t// Values <= 0 or NaN disable the outline; values in (0, 1) draw a 1-pixel\n\t// border with opacity scaled by Thickness so outlines can animate smoothly.\n\tThickness float32\n\t// AlphaThreshold is the minimum pixel alpha in (0, 1] treated as inside\n\t// the sprite silhouette. Zero (or NaN) treats any non-transparent pixel\n\t// (alpha >= 1/255) as inside.\n\tAlphaThreshold float32\n}",
          "doc": "Outline draws a solid-color border around a sprite's opaque pixels without\nclipping at the frame edge or sampling adjacent frames in the atlas.\n",
          "file": "pkg/sprite/effect.go",
          "line": 60,
          "members": [
            {
              "name": "Color",
              "anchor": "Outline.Color",
              "kind": "field",
              "doc": "Color is the outline color. Its alpha sets the outline opacity; a Color\nwith alpha 0 draws no outline."
            },
            {
              "name": "Thickness",
              "anchor": "Outline.Thickness",
              "kind": "field",
              "doc": "Thickness is the border width in source pixels, clamped to [0, 64].\nValues <= 0 or NaN disable the outline; values in (0, 1) draw a 1-pixel\nborder with opacity scaled by Thickness so outlines can animate smoothly."
            },
            {
              "name": "AlphaThreshold",
              "anchor": "Outline.AlphaThreshold",
              "kind": "field",
              "doc": "AlphaThreshold is the minimum pixel alpha in (0, 1] treated as inside\nthe sprite silhouette. Zero (or NaN) treats any non-transparent pixel\n(alpha >= 1/255) as inside."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PaletteEntry",
          "anchor": "PaletteEntry",
          "decl": "type PaletteEntry struct {\n\t// From is the straight sRGB source color to match.\n\tFrom core.Color\n\t// To is the replacement color. Its alpha scales the matched pixel's alpha,\n\t// so an opaque core.RGB preserves the original pixel's opacity.\n\tTo core.Color\n}",
          "doc": "PaletteEntry maps one straight sRGB source color to a replacement color in a\nPaletteSwap.\n",
          "file": "pkg/sprite/effect.go",
          "line": 175,
          "members": [
            {
              "name": "From",
              "anchor": "PaletteEntry.From",
              "kind": "field",
              "doc": "From is the straight sRGB source color to match."
            },
            {
              "name": "To",
              "anchor": "PaletteEntry.To",
              "kind": "field",
              "doc": "To is the replacement color. Its alpha scales the matched pixel's alpha,\nso an opaque core.RGB preserves the original pixel's opacity."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PaletteSwap",
          "anchor": "PaletteSwap",
          "decl": "type PaletteSwap struct {\n\t// Entries are checked in order; the first match wins.\n\tEntries []PaletteEntry\n\t// Tolerance is the maximum per-channel 8-bit RGB difference allowed for a\n\t// match. Zero requires an exact 8-bit match.\n\tTolerance uint8\n}",
          "doc": "PaletteSwap remaps sprite colors using an ordered table of PaletteEntry\nreplacements.\n",
          "file": "pkg/sprite/effect.go",
          "line": 185,
          "members": [
            {
              "name": "Entries",
              "anchor": "PaletteSwap.Entries",
              "kind": "field",
              "doc": "Entries are checked in order; the first match wins."
            },
            {
              "name": "Tolerance",
              "anchor": "PaletteSwap.Tolerance",
              "kind": "field",
              "doc": "Tolerance is the maximum per-channel 8-bit RGB difference allowed for a\nmatch. Zero requires an exact 8-bit match."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Sprite",
          "anchor": "Sprite",
          "decl": "type Sprite struct {\n\t// Frame is the picture it draws now; a zero Frame draws nothing.\n\tFrame Frame\n\t// X and Y are where its origin goes in the drawing.\n\tX, Y float32\n\t// OriginX and OriginY are the point of the untrimmed frame, in its points from its top left, that sits at X, Y and that it turns and scales about.\n\tOriginX, OriginY float32\n\t// Rotation turns it about its origin, in radians, clockwise on the screen.\n\tRotation float32\n\t// ScaleX and ScaleY scale it about its origin; a negative one mirrors it there.\n\tScaleX, ScaleY float32\n\t// FlipX and FlipY mirror the picture inside its untrimmed frame, left to right and top to bottom, before it is placed, so the origin keeps its place in the frame's box.\n\tFlipX, FlipY bool\n\t// Alpha is its opacity, from 0, which draws nothing, to 1. It replaces the drawing's alpha for the sprite, as Drawing.SetAlpha does.\n\tAlpha float32\n\t// Tint multiplies each of the picture's sRGB and alpha channels by the matching channel of a color before the sprite is composited, as Drawing.DrawTintedImageFrom does: core.RGB(0xff0000) keeps only its red, and a tint's alpha fades it on top of Alpha. Transparent pixels stay transparent, so the tint never reaches what is drawn under the sprite. The zero value, like opaque white, leaves the picture as it is, and any other tint with alpha 0 draws nothing. To fade a sprite out, lower Alpha rather than the tint's alpha: a tint that reaches transparent black is the zero value and draws the picture unchanged.\n\tTint core.Color\n\t// Blend is how the sprite mixes with what is already in the drawing, as Drawing.SetComposite does; the zero value is CompositeSourceOver.\n\tBlend core.CompositeOp\n\t// Mask, if set, clips the sprite to a shape in the drawing's coordinates before drawing it.\n\tMask *Mask\n\t// Effect, if set, applies per-sprite visual effects (solid-color flash or silhouette, alpha outline, dissolve, palette swap, or a custom pixel hook) to this sprite's pixels alone, leaving neighboring sprites and anything drawn under the sprite unchanged. A nil or inactive Effect keeps the sprite on Batch's DrawAtlas fast path.\n\tEffect *Effect\n\t// Z orders the sprites of a batch: a higher Z draws over a lower one, and sprites with the same Z draw in the batch's order.\n\tZ int\n}",
          "doc": "Sprite is a frame of an atlas placed in a drawing: moved, turned, scaled, flipped, faded, tinted, blended and masked about its origin.\n\nIts zero value draws nothing, as its scale and alpha are 0: NewSprite returns one at full size and opacity. Nor does a sprite whose position, origin, rotation, scale or alpha is NaN or infinite.\n\nTint recolors only the sprite's own pixels, leaving what is drawn under it unchanged; Blend sets how the sprite mixes with what is already drawn under it, as Drawing.SetComposite does.\n",
          "file": "pkg/sprite/sprite.go",
          "line": 17,
          "members": [
            {
              "name": "Frame",
              "anchor": "Sprite.Frame",
              "kind": "field",
              "doc": "Frame is the picture it draws now; a zero Frame draws nothing."
            },
            {
              "name": "X",
              "anchor": "Sprite.X",
              "kind": "field",
              "doc": "X and Y are where its origin goes in the drawing."
            },
            {
              "name": "Y",
              "anchor": "Sprite.Y",
              "kind": "field",
              "doc": "X and Y are where its origin goes in the drawing."
            },
            {
              "name": "OriginX",
              "anchor": "Sprite.OriginX",
              "kind": "field",
              "doc": "OriginX and OriginY are the point of the untrimmed frame, in its points from its top left, that sits at X, Y and that it turns and scales about."
            },
            {
              "name": "OriginY",
              "anchor": "Sprite.OriginY",
              "kind": "field",
              "doc": "OriginX and OriginY are the point of the untrimmed frame, in its points from its top left, that sits at X, Y and that it turns and scales about."
            },
            {
              "name": "Rotation",
              "anchor": "Sprite.Rotation",
              "kind": "field",
              "doc": "Rotation turns it about its origin, in radians, clockwise on the screen."
            },
            {
              "name": "ScaleX",
              "anchor": "Sprite.ScaleX",
              "kind": "field",
              "doc": "ScaleX and ScaleY scale it about its origin; a negative one mirrors it there."
            },
            {
              "name": "ScaleY",
              "anchor": "Sprite.ScaleY",
              "kind": "field",
              "doc": "ScaleX and ScaleY scale it about its origin; a negative one mirrors it there."
            },
            {
              "name": "FlipX",
              "anchor": "Sprite.FlipX",
              "kind": "field",
              "doc": "FlipX and FlipY mirror the picture inside its untrimmed frame, left to right and top to bottom, before it is placed, so the origin keeps its place in the frame's box."
            },
            {
              "name": "FlipY",
              "anchor": "Sprite.FlipY",
              "kind": "field",
              "doc": "FlipX and FlipY mirror the picture inside its untrimmed frame, left to right and top to bottom, before it is placed, so the origin keeps its place in the frame's box."
            },
            {
              "name": "Alpha",
              "anchor": "Sprite.Alpha",
              "kind": "field",
              "doc": "Alpha is its opacity, from 0, which draws nothing, to 1. It replaces the drawing's alpha for the sprite, as Drawing.SetAlpha does."
            },
            {
              "name": "Tint",
              "anchor": "Sprite.Tint",
              "kind": "field",
              "doc": "Tint multiplies each of the picture's sRGB and alpha channels by the matching channel of a color before the sprite is composited, as Drawing.DrawTintedImageFrom does: core.RGB(0xff0000) keeps only its red, and a tint's alpha fades it on top of Alpha. Transparent pixels stay transparent, so the tint never reaches what is drawn under the sprite. The zero value, like opaque white, leaves the picture as it is, and any other tint with alpha 0 draws nothing. To fade a sprite out, lower Alpha rather than the tint's alpha: a tint that reaches transparent black is the zero value and draws the picture unchanged."
            },
            {
              "name": "Blend",
              "anchor": "Sprite.Blend",
              "kind": "field",
              "doc": "Blend is how the sprite mixes with what is already in the drawing, as Drawing.SetComposite does; the zero value is CompositeSourceOver."
            },
            {
              "name": "Mask",
              "anchor": "Sprite.Mask",
              "kind": "field",
              "doc": "Mask, if set, clips the sprite to a shape in the drawing's coordinates before drawing it."
            },
            {
              "name": "Effect",
              "anchor": "Sprite.Effect",
              "kind": "field",
              "doc": "Effect, if set, applies per-sprite visual effects (solid-color flash or silhouette, alpha outline, dissolve, palette swap, or a custom pixel hook) to this sprite's pixels alone, leaving neighboring sprites and anything drawn under the sprite unchanged. A nil or inactive Effect keeps the sprite on Batch's DrawAtlas fast path."
            },
            {
              "name": "Z",
              "anchor": "Sprite.Z",
              "kind": "field",
              "doc": "Z orders the sprites of a batch: a higher Z draws over a lower one, and sprites with the same Z draw in the batch's order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSprite",
              "anchor": "NewSprite",
              "decl": "func NewSprite(f Frame) Sprite",
              "doc": "NewSprite returns a sprite of f at full size and opacity, its origin at the frame's pivot (the top left when f has none).\n",
              "file": "pkg/sprite/sprite.go",
              "line": 45
            }
          ],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Sprite.Bounds",
              "recv": "Sprite",
              "decl": "func (s Sprite) Bounds() math2d.Rect",
              "doc": "Bounds returns the axis-aligned bounding rectangle of the sprite's untrimmed frame in the drawing,\nor the zero Rect when the sprite has an empty frame or zero scale.\n",
              "file": "pkg/sprite/sprite.go",
              "line": 75
            },
            {
              "name": "Origin",
              "anchor": "Sprite.Origin",
              "recv": "Sprite",
              "decl": "func (s Sprite) Origin() math2d.Vec2",
              "doc": "Origin returns the sprite's origin (OriginX, OriginY) in its untrimmed frame.\n",
              "file": "pkg/sprite/sprite.go",
              "line": 53
            },
            {
              "name": "Pos",
              "anchor": "Sprite.Pos",
              "recv": "Sprite",
              "decl": "func (s Sprite) Pos() math2d.Vec2",
              "doc": "Pos returns the sprite's position (X, Y) in the drawing.\n",
              "file": "pkg/sprite/sprite.go",
              "line": 50
            },
            {
              "name": "Scale",
              "anchor": "Sprite.Scale",
              "recv": "Sprite",
              "decl": "func (s Sprite) Scale() math2d.Vec2",
              "doc": "Scale returns the sprite's scale (ScaleX, ScaleY).\n",
              "file": "pkg/sprite/sprite.go",
              "line": 56
            },
            {
              "name": "Transform",
              "anchor": "Sprite.Transform",
              "recv": "Sprite",
              "decl": "func (s Sprite) Transform() math2d.Affine",
              "doc": "Transform returns the 2D affine transform taking a point of the untrimmed frame to the drawing:\nmirrored in the frame's box when flipped, moved so the origin is at (0, 0), scaled, turned and moved to (X, Y).\n",
              "file": "pkg/sprite/sprite.go",
              "line": 60
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/statedump",
      "name": "statedump",
      "dir": "pkg/statedump",
      "page": "pkg/statedump",
      "synopsis": "Package statedump runs a game headless for a fixed number of steps and writes its entities, components and scene state as deterministic YAML, so an agent or a test can diff one run against another.",
      "doc": "Package statedump runs a game headless for a fixed number of steps and writes its entities, components and scene state as deterministic YAML, so an agent or a test can diff one run against another.\n\nA Dump holds the run's seed, rate and step count, the scene stack (Scene), named game-wide values outside the entity world (Values), and every live entity with its hierarchy parent and its codec-registered components, as entities.World.Snapshot records them.\n\nEncode writes a Dump as version 1 YAML: fixed key order, entities by ascending slot index, components by ascending codec name, values by ascending byte order of their names, and component and value data turned from their JSON encoding into YAML mappings and sequences that keep the JSON field order and the exact number text. Two runs with the same seed and inputs on the same CPU architecture therefore write byte-identical files (a game's own float math can differ between arm64 and amd64, where the compiler may fuse a multiply and an add), and a change shows as a few changed lines in a line diff. Parse reads such a file back, refusing unknown fields, other versions, trailing documents and data JSON cannot hold, and Encode(Parse(b)) returns b for every b that Encode wrote.\n\nRun plays a replay.Recording against a simulation without a window and captures the Dump at the end; Capture takes one at any point; Diff prints a unified line diff of two dumps for a test failure or an agent's report.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the schema version Encode writes and Parse accepts.\n",
          "file": "pkg/statedump/dump.go",
          "line": 18
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Diff",
          "anchor": "Diff",
          "decl": "func Diff(a, b []byte) string",
          "doc": "Diff returns a unified line diff from a to b, labelled \"a\" and \"b\", or \"\" when they are equal.\n\nIt is meant for dumps that Encode wrote, where one changed field is one changed line, and prints each change with three unchanged lines around it.\n",
          "file": "pkg/statedump/diff.go",
          "line": 23
        },
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(d *Dump) ([]byte, error)",
          "doc": "Encode validates d and writes it as deterministic 2-space YAML.\n",
          "file": "pkg/statedump/dump.go",
          "line": 218
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(d *Dump) error",
          "doc": "Validate checks that d uses FormatVersion, has non-negative counts, a finite scene progress that is 0 unless a transition runs, non-empty value names with valid JSON, and entities in strictly ascending slot order with non-zero generations, parents present in the dump, and components with non-empty names in strictly ascending order holding valid JSON.\n",
          "file": "pkg/statedump/dump.go",
          "line": 78
        },
        {
          "name": "WriteFile",
          "anchor": "WriteFile",
          "decl": "func WriteFile(path string, d *Dump) error",
          "doc": "WriteFile encodes d and writes it to path.\n",
          "file": "pkg/statedump/dump.go",
          "line": 325
        }
      ],
      "types": [
        {
          "name": "Dump",
          "anchor": "Dump",
          "decl": "type Dump struct {\n\t// Version is the schema version; it must equal FormatVersion.\n\tVersion int\n\t// Seed is the random seed the run started from.\n\tSeed uint64\n\t// Rate is the run's fixed steps per second, or 0 when unknown.\n\tRate int\n\t// Steps is how many fixed steps the run took before the dump.\n\tSteps int\n\t// Scene is the scene stack's state, or nil when the game has no scene.Manager.\n\tScene *SceneState\n\t// Values holds game-wide state outside the entity world (score, level, RNG position), each as its JSON encoding, keyed by a non-empty name.\n\tValues map[string]json.RawMessage\n\t// Entities are the live entities in ascending slot index, as entities.World.Snapshot records them.\n\tEntities []entities.EntitySnapshot\n}",
          "doc": "Dump is the state of a game after a number of fixed steps.\n",
          "file": "pkg/statedump/dump.go",
          "line": 21,
          "members": [
            {
              "name": "Version",
              "anchor": "Dump.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal FormatVersion."
            },
            {
              "name": "Seed",
              "anchor": "Dump.Seed",
              "kind": "field",
              "doc": "Seed is the random seed the run started from."
            },
            {
              "name": "Rate",
              "anchor": "Dump.Rate",
              "kind": "field",
              "doc": "Rate is the run's fixed steps per second, or 0 when unknown."
            },
            {
              "name": "Steps",
              "anchor": "Dump.Steps",
              "kind": "field",
              "doc": "Steps is how many fixed steps the run took before the dump."
            },
            {
              "name": "Scene",
              "anchor": "Dump.Scene",
              "kind": "field",
              "doc": "Scene is the scene stack's state, or nil when the game has no scene.Manager."
            },
            {
              "name": "Values",
              "anchor": "Dump.Values",
              "kind": "field",
              "doc": "Values holds game-wide state outside the entity world (score, level, RNG position), each as its JSON encoding, keyed by a non-empty name."
            },
            {
              "name": "Entities",
              "anchor": "Dump.Entities",
              "kind": "field",
              "doc": "Entities are the live entities in ascending slot index, as entities.World.Snapshot records them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Capture",
              "anchor": "Capture",
              "decl": "func Capture(src Source) (*Dump, error)",
              "doc": "Capture returns the state src names as a Dump with FormatVersion and no seed, rate or step count; the caller fills those in when it knows them.\n",
              "file": "pkg/statedump/run.go",
              "line": 33
            },
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Dump, error)",
              "doc": "Parse reads a version 1 YAML dump, refusing unknown fields, trailing documents, and data JSON cannot hold (aliases, non-string keys, binary, NaN and infinities), then runs Validate.\n",
              "file": "pkg/statedump/dump.go",
              "line": 268
            },
            {
              "name": "ReadFile",
              "anchor": "ReadFile",
              "decl": "func ReadFile(path string) (*Dump, error)",
              "doc": "ReadFile reads and parses the dump at path.\n",
              "file": "pkg/statedump/dump.go",
              "line": 337
            },
            {
              "name": "Run",
              "anchor": "Run",
              "decl": "func Run(rec *replay.Recording, makeSim func(seed uint64, src replay.ActionSource) (Sim, error)) (*Dump, error)",
              "doc": "Run plays rec headless against the simulation makeSim builds and returns the state after rec.TotalSteps steps. It returns an error when the steps did not advance the ActionSource once each, because a sim that never reads the recording would otherwise dump the same state for any input.\n\nmakeSim receives rec.Seed and a *replay.Player as its ActionSource, as with replay.Run, but Run needs no testing.TB, so a command or an agent's tool can call it. Each step passes rec.StepDuration(), the fixed dt of a game.Loop at rec.Rate.\n",
              "file": "pkg/statedump/run.go",
              "line": 73
            }
          ],
          "methods": [
            {
              "name": "SetValue",
              "anchor": "Dump.SetValue",
              "recv": "*Dump",
              "decl": "func (d *Dump) SetValue(name string, v any) error",
              "doc": "SetValue stores v's JSON encoding in d.Values under name.\n",
              "file": "pkg/statedump/dump.go",
              "line": 51
            },
            {
              "name": "Snapshot",
              "anchor": "Dump.Snapshot",
              "recv": "*Dump",
              "decl": "func (d *Dump) Snapshot() entities.WorldSnapshot",
              "doc": "Snapshot returns d's entities as an entities.WorldSnapshot that entities.World.Restore loads.\n",
              "file": "pkg/statedump/dump.go",
              "line": 70
            }
          ]
        },
        {
          "name": "SceneState",
          "anchor": "SceneState",
          "decl": "type SceneState struct {\n\t// Depth is the number of scenes on the stack.\n\tDepth int `yaml:\"depth\"`\n\t// Current names the scene at the top of the stack, or is empty when the game does not name its scenes.\n\tCurrent string `yaml:\"current,omitempty\"`\n\t// Transitioning reports whether a Switch transition is running.\n\tTransitioning bool `yaml:\"transitioning,omitempty\"`\n\t// Progress is the running transition's eased progress, as scene.Manager.TransitionProgress reports it; it is 0 when no transition runs. It usually lies in [0, 1], but a curve that overshoots, such as an ease-out-back, takes it past either end for part of the transition.\n\tProgress float64 `yaml:\"progress,omitempty\"`\n}",
          "doc": "SceneState is the state of a scene.Manager's stack.\n",
          "file": "pkg/statedump/dump.go",
          "line": 39,
          "members": [
            {
              "name": "Depth",
              "anchor": "SceneState.Depth",
              "kind": "field",
              "doc": "Depth is the number of scenes on the stack."
            },
            {
              "name": "Current",
              "anchor": "SceneState.Current",
              "kind": "field",
              "doc": "Current names the scene at the top of the stack, or is empty when the game does not name its scenes."
            },
            {
              "name": "Transitioning",
              "anchor": "SceneState.Transitioning",
              "kind": "field",
              "doc": "Transitioning reports whether a Switch transition is running."
            },
            {
              "name": "Progress",
              "anchor": "SceneState.Progress",
              "kind": "field",
              "doc": "Progress is the running transition's eased progress, as scene.Manager.TransitionProgress reports it; it is 0 when no transition runs. It usually lies in [0, 1], but a curve that overshoots, such as an ease-out-back, takes it past either end for part of the transition."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Sim",
          "anchor": "Sim",
          "decl": "type Sim struct {\n\tSource\n\t// Step advances the simulation by dt; like a game.Loop's Update, it must call the ActionSource's Step once, or Run returns an error.\n\tStep func(dt time.Duration)\n}",
          "doc": "Sim is a headless simulation that Run steps: Step advances it by one fixed step and Source says what to dump afterwards.\n",
          "file": "pkg/statedump/run.go",
          "line": 26,
          "members": [
            {
              "name": "Source",
              "anchor": "Sim.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Step",
              "anchor": "Sim.Step",
              "kind": "field",
              "doc": "Step advances the simulation by dt; like a game.Loop's Update, it must call the ActionSource's Step once, or Run returns an error."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Source",
          "anchor": "Source",
          "decl": "type Source struct {\n\t// World is the entity world; only components registered with entities.RegisterCodec appear in the dump.\n\tWorld *entities.World\n\t// Scenes is the game's scene stack.\n\tScenes *scene.Manager\n\t// SceneName names a scene controller for SceneState.Current; nil leaves Current empty.\n\tSceneName func(*scene.Controller) string\n\t// Values returns game-wide state outside the world, each value encoded with encoding/json.\n\tValues func() map[string]any\n}",
          "doc": "Source names the parts of a game that Capture reads. Every field is optional.\n",
          "file": "pkg/statedump/run.go",
          "line": 14,
          "members": [
            {
              "name": "World",
              "anchor": "Source.World",
              "kind": "field",
              "doc": "World is the entity world; only components registered with entities.RegisterCodec appear in the dump."
            },
            {
              "name": "Scenes",
              "anchor": "Source.Scenes",
              "kind": "field",
              "doc": "Scenes is the game's scene stack."
            },
            {
              "name": "SceneName",
              "anchor": "Source.SceneName",
              "kind": "field",
              "doc": "SceneName names a scene controller for SceneState.Current; nil leaves Current empty."
            },
            {
              "name": "Values",
              "anchor": "Source.Values",
              "kind": "field",
              "doc": "Values returns game-wide state outside the world, each value encoded with encoding/json."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/stats",
      "name": "stats",
      "dir": "pkg/stats",
      "page": "pkg/stats",
      "synopsis": "Package stats holds gameplay stats: named base values changed by additive, multiplicative and override modifiers that come from sources such as equipment and buffs, with timed modifiers counted in fixed steps.",
      "doc": "Package stats holds gameplay stats: named base values changed by additive, multiplicative and override modifiers that come from sources such as equipment and buffs, with timed modifiers counted in fixed steps.\n\nA Sheet keeps one entity's stats. Every change to a base value or a modifier recomputes the stats it touches at once, reports each value that changed through Sheet.OnChange, and leaves Sheet.Value a cached read. A stat's value is\n\n\tclamp((base + sum of add values) * product of mul values)\n\nor, while any override modifier is present, clamp(the override with the highest priority, the latest added among equal priorities). Adds and muls are applied in the order they were added; with float64 arithmetic that order can change the last digits of a result (0.1 + 0.2 + 0.3 is not exactly 0.3 + 0.1 + 0.2). A sum or product that overflows float64 saturates at the largest finite value of its sign, so values are always finite and within their bounds. Sheet.Refresh replaces a source's modifiers in a single change. Timed modifiers count calls of Sheet.Step, which a game makes once per fixed step of its game.Loop, so a modifier that lasts n steps is removed by exactly the n-th Step after it was added.\n\nStat definitions and named effects (groups of modifiers, such as an item's bonuses or a buff) are written in a versioned YAML file read with Parse and written with Encode.\n\nNothing in stats reads the wall clock, spawns goroutines or keeps package-level state, so sheets are deterministic and replay alike.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the version of the stats file schema this package reads and writes.\n",
          "file": "pkg/stats/format.go",
          "line": 14
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrUnknownStat",
              "anchor": "ErrUnknownStat"
            },
            {
              "name": "ErrDuplicateStat",
              "anchor": "ErrDuplicateStat"
            },
            {
              "name": "ErrInvalidOp",
              "anchor": "ErrInvalidOp"
            },
            {
              "name": "ErrInvalidValue",
              "anchor": "ErrInvalidValue"
            },
            {
              "name": "ErrInvalidSteps",
              "anchor": "ErrInvalidSteps"
            }
          ],
          "decl": "var (\n\t// ErrUnknownStat is returned when a stat name is not defined on the sheet or in the file.\n\tErrUnknownStat = errors.New(\"stats: unknown stat\")\n\t// ErrDuplicateStat is returned when a stat is defined twice.\n\tErrDuplicateStat = errors.New(\"stats: duplicate stat\")\n\t// ErrInvalidOp is returned for an Op other than OpAdd, OpMul and OpOverride.\n\tErrInvalidOp = errors.New(\"stats: invalid modifier op\")\n\t// ErrInvalidValue is returned for a NaN or infinite number.\n\tErrInvalidValue = errors.New(\"stats: value is not finite\")\n\t// ErrInvalidSteps is returned for a negative step count.\n\tErrInvalidSteps = errors.New(\"stats: negative steps\")\n)",
          "doc": "",
          "file": "pkg/stats/sheet.go",
          "line": 10
        }
      ],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(f *File) ([]byte, error)",
          "doc": "Encode validates f and writes it as deterministic YAML with 2-space indentation: fields in declaration order and lists in their given order, so Parse then Encode reproduces an encoded file byte for byte.\n",
          "file": "pkg/stats/format.go",
          "line": 123
        },
        {
          "name": "Float",
          "anchor": "Float",
          "decl": "func Float(v float64) *float64",
          "doc": "Float returns a pointer to v, for Def's optional Min and Max.\n",
          "file": "pkg/stats/format.go",
          "line": 223
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(f *File) error",
          "doc": "Validate checks f against the version 1 schema: the version, unique non-empty names, finite numbers, Min not above Max, non-negative Steps, known ops, and modifiers that name defined stats.\n",
          "file": "pkg/stats/format.go",
          "line": 141
        }
      ],
      "types": [
        {
          "name": "Active",
          "anchor": "Active",
          "decl": "type Active struct {\n\t// ID is the modifier's handle for Sheet.Remove.\n\tID ID\n\t// Source is the tag the modifier was added with, such as \"equip:weapon\" or \"buff:haste\".\n\tSource string\n\t// Modifier is the modifier itself.\n\tModifier Modifier\n\t// Remaining is how many more calls of Sheet.Step the modifier lasts, 0 for a modifier without a time limit.\n\tRemaining int\n}",
          "doc": "Active describes a modifier currently on a sheet.\n",
          "file": "pkg/stats/sheet.go",
          "line": 27,
          "members": [
            {
              "name": "ID",
              "anchor": "Active.ID",
              "kind": "field",
              "doc": "ID is the modifier's handle for Sheet.Remove."
            },
            {
              "name": "Source",
              "anchor": "Active.Source",
              "kind": "field",
              "doc": "Source is the tag the modifier was added with, such as \"equip:weapon\" or \"buff:haste\"."
            },
            {
              "name": "Modifier",
              "anchor": "Active.Modifier",
              "kind": "field",
              "doc": "Modifier is the modifier itself."
            },
            {
              "name": "Remaining",
              "anchor": "Active.Remaining",
              "kind": "field",
              "doc": "Remaining is how many more calls of Sheet.Step the modifier lasts, 0 for a modifier without a time limit."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Change",
          "anchor": "Change",
          "decl": "type Change struct {\n\t// Stat is the stat's name.\n\tStat string\n\t// Old and New are its value before and after the change.\n\tOld, New float64\n}",
          "doc": "Change reports a stat whose value changed.\n",
          "file": "pkg/stats/sheet.go",
          "line": 39,
          "members": [
            {
              "name": "Stat",
              "anchor": "Change.Stat",
              "kind": "field",
              "doc": "Stat is the stat's name."
            },
            {
              "name": "Old",
              "anchor": "Change.Old",
              "kind": "field",
              "doc": "Old and New are its value before and after the change."
            },
            {
              "name": "New",
              "anchor": "Change.New",
              "kind": "field",
              "doc": "Old and New are its value before and after the change."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Def",
          "anchor": "Def",
          "decl": "type Def struct {\n\t// Name identifies the stat within a sheet; it must be non-empty and unique.\n\tName string `yaml:\"name\"`\n\t// Base is the stat's value before modifiers.\n\tBase float64 `yaml:\"base\"`\n\t// Min, when set, is the lowest value the stat takes after modifiers.\n\tMin *float64 `yaml:\"min,omitempty\"`\n\t// Max, when set, is the highest value the stat takes after modifiers; it must not be below Min.\n\tMax *float64 `yaml:\"max,omitempty\"`\n}",
          "doc": "Def defines one stat: its name, base value and optional bounds.\n",
          "file": "pkg/stats/format.go",
          "line": 34,
          "members": [
            {
              "name": "Name",
              "anchor": "Def.Name",
              "kind": "field",
              "doc": "Name identifies the stat within a sheet; it must be non-empty and unique."
            },
            {
              "name": "Base",
              "anchor": "Def.Base",
              "kind": "field",
              "doc": "Base is the stat's value before modifiers."
            },
            {
              "name": "Min",
              "anchor": "Def.Min",
              "kind": "field",
              "doc": "Min, when set, is the lowest value the stat takes after modifiers."
            },
            {
              "name": "Max",
              "anchor": "Def.Max",
              "kind": "field",
              "doc": "Max, when set, is the highest value the stat takes after modifiers; it must not be below Min."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Effect",
          "anchor": "Effect",
          "decl": "type Effect struct {\n\t// Name identifies the effect within a file; it must be non-empty and unique.\n\tName string `yaml:\"name\"`\n\t// Steps is how many fixed steps the effect's modifiers last once applied; 0 keeps them until they are removed.\n\tSteps int `yaml:\"steps,omitempty\"`\n\t// Modifiers are the effect's modifiers, applied in order.\n\tModifiers []Modifier `yaml:\"modifiers\"`\n}",
          "doc": "Effect is a named group of modifiers applied together from one source, such as an item's bonuses or a buff.\n",
          "file": "pkg/stats/format.go",
          "line": 58,
          "members": [
            {
              "name": "Name",
              "anchor": "Effect.Name",
              "kind": "field",
              "doc": "Name identifies the effect within a file; it must be non-empty and unique."
            },
            {
              "name": "Steps",
              "anchor": "Effect.Steps",
              "kind": "field",
              "doc": "Steps is how many fixed steps the effect's modifiers last once applied; 0 keeps them until they are removed."
            },
            {
              "name": "Modifiers",
              "anchor": "Effect.Modifiers",
              "kind": "field",
              "doc": "Modifiers are the effect's modifiers, applied in order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "File",
          "anchor": "File",
          "decl": "type File struct {\n\t// Version is the schema version; it must equal CurrentVersion.\n\tVersion int `yaml:\"version\"`\n\t// Stats are the stat definitions, in the order a sheet built from the file reports changes.\n\tStats []Def `yaml:\"stats\"`\n\t// Effects are named groups of modifiers on those stats.\n\tEffects []Effect `yaml:\"effects,omitempty\"`\n}",
          "doc": "File is the root of a versioned YAML stats file: stat definitions and the effects that modify them.\n",
          "file": "pkg/stats/format.go",
          "line": 68,
          "members": [
            {
              "name": "Version",
              "anchor": "File.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion."
            },
            {
              "name": "Stats",
              "anchor": "File.Stats",
              "kind": "field",
              "doc": "Stats are the stat definitions, in the order a sheet built from the file reports changes."
            },
            {
              "name": "Effects",
              "anchor": "File.Effects",
              "kind": "field",
              "doc": "Effects are named groups of modifiers on those stats."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*File, error)",
              "doc": "Parse decodes a YAML stats file and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/stats/format.go",
              "line": 99
            }
          ],
          "methods": [
            {
              "name": "Effect",
              "anchor": "File.Effect",
              "recv": "*File",
              "decl": "func (f *File) Effect(name string) (Effect, bool)",
              "doc": "Effect returns the effect with the given name.\n",
              "file": "pkg/stats/format.go",
              "line": 78
            },
            {
              "name": "NewSheet",
              "anchor": "File.NewSheet",
              "recv": "*File",
              "decl": "func (f *File) NewSheet() (*Sheet, error)",
              "doc": "NewSheet returns a sheet holding the file's stats at their base values, with no modifiers.\n",
              "file": "pkg/stats/format.go",
              "line": 91
            }
          ]
        },
        {
          "name": "ID",
          "anchor": "ID",
          "decl": "type ID uint64",
          "doc": "ID identifies one modifier on a sheet. IDs start at 1 and are never reused by the same sheet, so the zero ID names no modifier.\n",
          "file": "pkg/stats/sheet.go",
          "line": 24,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Modifier",
          "anchor": "Modifier",
          "decl": "type Modifier struct {\n\t// Stat names the stat the modifier changes.\n\tStat string `yaml:\"stat\"`\n\t// Op is how the modifier changes it.\n\tOp Op `yaml:\"op\"`\n\t// Value is the amount added, the factor multiplied by, or the value an override sets; it must be finite.\n\tValue float64 `yaml:\"value\"`\n\t// Priority orders override modifiers on the same stat: the highest wins. Add and mul modifiers ignore it.\n\tPriority int `yaml:\"priority,omitempty\"`\n}",
          "doc": "Modifier changes one stat.\n",
          "file": "pkg/stats/format.go",
          "line": 46,
          "members": [
            {
              "name": "Stat",
              "anchor": "Modifier.Stat",
              "kind": "field",
              "doc": "Stat names the stat the modifier changes."
            },
            {
              "name": "Op",
              "anchor": "Modifier.Op",
              "kind": "field",
              "doc": "Op is how the modifier changes it."
            },
            {
              "name": "Value",
              "anchor": "Modifier.Value",
              "kind": "field",
              "doc": "Value is the amount added, the factor multiplied by, or the value an override sets; it must be finite."
            },
            {
              "name": "Priority",
              "anchor": "Modifier.Priority",
              "kind": "field",
              "doc": "Priority orders override modifiers on the same stat: the highest wins. Add and mul modifiers ignore it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Op",
          "anchor": "Op",
          "decl": "type Op string",
          "doc": "Op is how a modifier changes a stat. Its YAML form is the constant's string.\n",
          "file": "pkg/stats/format.go",
          "line": 17,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OpAdd",
                  "anchor": "OpAdd"
                },
                {
                  "name": "OpMul",
                  "anchor": "OpMul"
                },
                {
                  "name": "OpOverride",
                  "anchor": "OpOverride"
                }
              ],
              "decl": "const (\n\t// OpAdd adds the modifier's value to the stat's base, before any multiplication.\n\tOpAdd Op = \"add\"\n\t// OpMul multiplies the stat by the modifier's value after all additions; several multiply together.\n\tOpMul Op = \"mul\"\n\t// OpOverride replaces the computed value with the modifier's value, ignoring every add and mul; among several, the highest Priority wins and the latest added breaks ties.\n\tOpOverride Op = \"override\"\n)",
              "doc": "",
              "file": "pkg/stats/format.go",
              "line": 19
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "Op.Valid",
              "recv": "Op",
              "decl": "func (o Op) Valid() bool",
              "doc": "Valid reports whether o is OpAdd, OpMul or OpOverride.\n",
              "file": "pkg/stats/format.go",
              "line": 29
            }
          ]
        },
        {
          "name": "Sheet",
          "anchor": "Sheet",
          "decl": "type Sheet struct {\n\t// OnChange, when set, is called with each stat whose value changed.\n\tOnChange func(Change)\n\t// contains filtered or unexported fields\n}",
          "doc": "Sheet holds one entity's stats and the modifiers on them.\n\nEvery method that changes a base value or a modifier recomputes the stats it touched before returning and calls OnChange once for each one whose value changed, in definition order. OnChange may itself change the sheet; those changes are recomputed and reported before the outer call returns. A Sheet is not safe for concurrent use.\n",
          "file": "pkg/stats/sheet.go",
          "line": 49,
          "members": [
            {
              "name": "OnChange",
              "anchor": "Sheet.OnChange",
              "kind": "field",
              "doc": "OnChange, when set, is called with each stat whose value changed."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewSheet",
              "anchor": "NewSheet",
              "decl": "func NewSheet(defs ...Def) (*Sheet, error)",
              "doc": "NewSheet returns a sheet holding the given stats at their base values, in the given order.\n",
              "file": "pkg/stats/sheet.go",
              "line": 79
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Sheet.Add",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Add(source string, m Modifier) (ID, error)",
              "doc": "Add adds a modifier from source that lasts until it is removed, and returns its ID.\n",
              "file": "pkg/stats/sheet.go",
              "line": 167
            },
            {
              "name": "AddTimed",
              "anchor": "Sheet.AddTimed",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) AddTimed(source string, m Modifier, steps int) (ID, error)",
              "doc": "AddTimed adds a modifier from source that lasts steps calls of Step and is removed by the last of them; 0 steps lasts until it is removed. It returns the modifier's ID.\n",
              "file": "pkg/stats/sheet.go",
              "line": 172
            },
            {
              "name": "Apply",
              "anchor": "Sheet.Apply",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Apply(source string, e Effect) ([]ID, error)",
              "doc": "Apply adds every modifier of e from source, lasting e.Steps, and returns their IDs in the effect's order. It adds none of them when any is invalid.\n\nApplying an effect again stacks a second copy; to refresh a buff instead, use Refresh.\n",
              "file": "pkg/stats/sheet.go",
              "line": 185
            },
            {
              "name": "Base",
              "anchor": "Sheet.Base",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Base(name string) float64",
              "doc": "Base returns the named stat's base value, or 0 when it is not defined.\n",
              "file": "pkg/stats/sheet.go",
              "line": 144
            },
            {
              "name": "Clear",
              "anchor": "Sheet.Clear",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Clear()",
              "doc": "Clear removes every modifier, leaving the stats at their base values.\n",
              "file": "pkg/stats/sheet.go",
              "line": 227
            },
            {
              "name": "Define",
              "anchor": "Sheet.Define",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Define(d Def) error",
              "doc": "Define adds a stat at its base value after the stats already defined. Defining a name twice returns ErrDuplicateStat.\n",
              "file": "pkg/stats/sheet.go",
              "line": 90
            },
            {
              "name": "Has",
              "anchor": "Sheet.Has",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Has(name string) bool",
              "doc": "Has reports whether the sheet defines the named stat.\n",
              "file": "pkg/stats/sheet.go",
              "line": 114
            },
            {
              "name": "Lookup",
              "anchor": "Sheet.Lookup",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Lookup(name string) (float64, bool)",
              "doc": "Lookup returns the named stat's current value and whether it is defined.\n",
              "file": "pkg/stats/sheet.go",
              "line": 135
            },
            {
              "name": "Modifiers",
              "anchor": "Sheet.Modifiers",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Modifiers() []Active",
              "doc": "Modifiers returns the modifiers on the sheet in the order they were added.\n",
              "file": "pkg/stats/sheet.go",
              "line": 249
            },
            {
              "name": "Refresh",
              "anchor": "Sheet.Refresh",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Refresh(source string, e Effect) ([]ID, error)",
              "doc": "Refresh removes every modifier added from source and applies e from source in their place, as one change: OnChange reports only each stat's value before the old modifiers left and after the new ones arrived, never the value in between. It returns the new modifiers' IDs in the effect's order. When any of e's modifiers is invalid it changes nothing.\n\nRefresh restarts a buff's duration without the listeners seeing the buff end and begin again.\n",
              "file": "pkg/stats/sheet.go",
              "line": 198
            },
            {
              "name": "Remaining",
              "anchor": "Sheet.Remaining",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Remaining(id ID) (int, bool)",
              "doc": "Remaining returns how many more calls of Step the modifier lasts (0 for one without a time limit) and whether it is on the sheet.\n",
              "file": "pkg/stats/sheet.go",
              "line": 258
            },
            {
              "name": "Remove",
              "anchor": "Sheet.Remove",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Remove(id ID) bool",
              "doc": "Remove removes the modifier with the given ID and reports whether it was on the sheet.\n",
              "file": "pkg/stats/sheet.go",
              "line": 210
            },
            {
              "name": "RemoveSource",
              "anchor": "Sheet.RemoveSource",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) RemoveSource(source string) int",
              "doc": "RemoveSource removes every modifier added from source, such as all of an unequipped item's bonuses, and returns how many it removed.\n",
              "file": "pkg/stats/sheet.go",
              "line": 222
            },
            {
              "name": "SetBase",
              "anchor": "Sheet.SetBase",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) SetBase(name string, base float64) error",
              "doc": "SetBase sets the named stat's base value and recomputes it.\n",
              "file": "pkg/stats/sheet.go",
              "line": 152
            },
            {
              "name": "Stats",
              "anchor": "Sheet.Stats",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Stats() []string",
              "doc": "Stats returns the sheet's stat names in definition order.\n",
              "file": "pkg/stats/sheet.go",
              "line": 120
            },
            {
              "name": "Step",
              "anchor": "Sheet.Step",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Step()",
              "doc": "Step advances timed modifiers by one fixed step and removes those whose last step this was. Call it once from each game.Loop Update.\n",
              "file": "pkg/stats/sheet.go",
              "line": 232
            },
            {
              "name": "Steps",
              "anchor": "Sheet.Steps",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Steps() uint64",
              "doc": "Steps returns how many times Step has been called.\n",
              "file": "pkg/stats/sheet.go",
              "line": 244
            },
            {
              "name": "Value",
              "anchor": "Sheet.Value",
              "recv": "*Sheet",
              "decl": "func (s *Sheet) Value(name string) float64",
              "doc": "Value returns the named stat's current value, or 0 when it is not defined.\n",
              "file": "pkg/stats/sheet.go",
              "line": 129
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/text",
      "name": "text",
      "dir": "pkg/text",
      "page": "pkg/text",
      "synopsis": "Package text draws bitmap fonts (AngelCode BMFont) through sprite batches, signed-distance-field fonts that stay sharp at any size on the screen or in 3D world space (SDFFont, WorldText), and platform-rendered text through core.Drawing.",
      "doc": "Package text draws bitmap fonts (AngelCode BMFont) through sprite batches, signed-distance-field fonts that stay sharp at any size on the screen or in 3D world space (SDFFont, WorldText), and platform-rendered text through core.Drawing.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "AppendRichToBatch",
          "anchor": "AppendRichToBatch",
          "decl": "func AppendRichToBatch(batch *sprite.Batch, layout RichLayout, pos core.Point, opts RichOptions) int",
          "doc": "AppendRichToBatch appends sprites from layout whose resolved atlas matches\nbatch.Atlas (both bitmap glyphs and inline icons on that atlas) into batch,\npositioned at pos with per-glyph effects evaluated at opts.Elapsed.\n\nIt returns the number of sprites appended to batch. Placements requiring a\ndifferent atlas or faux-italic shear transform are skipped.\n",
          "file": "pkg/text/rich.go",
          "line": 1684
        },
        {
          "name": "DefaultPunctuationPause",
          "anchor": "DefaultPunctuationPause",
          "decl": "func DefaultPunctuationPause() map[rune]float32",
          "doc": "DefaultPunctuationPause returns a standard dialogue punctuation pause table\n(4x step after sentence terminators, 2x step after clause separators).\n",
          "file": "pkg/text/typewriter.go",
          "line": 122
        },
        {
          "name": "DrawPlatform",
          "anchor": "DrawPlatform",
          "decl": "func DrawPlatform(d *core.Drawing, text string, x, y float32, style PlatformStyle)",
          "doc": "DrawPlatform draws text at (x, y) into d using core.Drawing.FillText.\n\nIt draws inside the drawing's active transform stack so text scales\nautomatically with a game view's virtual resolution transform, and wraps its\nstyle changes in Save/Restore so fill color, alpha, alignment, and baseline\nnever leak to subsequent draw calls.\n",
          "file": "pkg/text/platform.go",
          "line": 42
        },
        {
          "name": "DrawRich",
          "anchor": "DrawRich",
          "decl": "func DrawRich(d *core.Drawing, font *Font, rt RichText, pos core.Point, opts RichOptions)",
          "doc": "DrawRich lays out and draws rt at pos into d.\n\nWhen font is non-nil, bitmap glyph rendering is used (with cached pixel\ntinting for colored spans when the page image provides Pixels or Data, and\nsprite.Batch grouping for glyphs and inline icons). When font is nil and\nopts.Platform is set, platform-text rich span rendering is used.\n",
          "file": "pkg/text/rich.go",
          "line": 1647
        },
        {
          "name": "DrawRichLayout",
          "anchor": "DrawRichLayout",
          "decl": "func DrawRichLayout(d *core.Drawing, layout RichLayout, pos core.Point, opts RichOptions)",
          "doc": "DrawRichLayout draws a previously computed RichLayout at pos into d,\napplying per-glyph effects evaluated at opts.Elapsed.\n",
          "file": "pkg/text/rich.go",
          "line": 1674
        },
        {
          "name": "DrawRichPlatform",
          "anchor": "DrawRichPlatform",
          "decl": "func DrawRichPlatform(d *core.Drawing, rt RichText, pos core.Point, style PlatformStyle, opts RichOptions)",
          "doc": "DrawRichPlatform lays out and draws rt at pos into d using platform text\n(core.Drawing.FillText) for styled text spans and inline images/atlas frames\nfor icons.\n",
          "file": "pkg/text/rich.go",
          "line": 1664
        },
        {
          "name": "EvalGlyphTransform",
          "anchor": "EvalGlyphTransform",
          "decl": "func EvalGlyphTransform(effect GlyphEffect, glyphIndex int, elapsed float32) (dx, dy float32, colorOverride *core.Color)",
          "doc": "EvalGlyphTransform evaluates effect for glyphIndex at time elapsed (in seconds).\n\nThe result is completely deterministic for any (effect.Seed, glyphIndex, elapsed)\ntuple and uses pure integer/float math without global RNG state.\n",
          "file": "pkg/text/typewriter.go",
          "line": 42
        },
        {
          "name": "MeasurePlatform",
          "anchor": "MeasurePlatform",
          "decl": "func MeasurePlatform(d *core.Drawing, text string, style PlatformStyle) core.Size",
          "doc": "MeasurePlatform returns the bounding width and height of text laid out with\nstyle on d.\n",
          "file": "pkg/text/platform.go",
          "line": 97
        },
        {
          "name": "MeasureRich",
          "anchor": "MeasureRich",
          "decl": "func MeasureRich(font *Font, rt RichText, opts RichOptions) core.Size",
          "doc": "MeasureRich returns the bounding width and height of rt laid out with font and opts.\n",
          "file": "pkg/text/rich.go",
          "line": 1132
        }
      ],
      "types": [
        {
          "name": "Align",
          "anchor": "Align",
          "decl": "type Align uint8",
          "doc": "Align controls horizontal alignment of laid-out text lines.\n",
          "file": "pkg/text/draw.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "AlignLeft",
                  "anchor": "AlignLeft"
                },
                {
                  "name": "AlignCenter",
                  "anchor": "AlignCenter"
                },
                {
                  "name": "AlignRight",
                  "anchor": "AlignRight"
                }
              ],
              "decl": "const (\n\t// AlignLeft aligns lines to the left edge (x). This is the zero value.\n\tAlignLeft Align = iota\n\t// AlignCenter centers each line horizontally.\n\tAlignCenter\n\t// AlignRight aligns lines to the right edge.\n\tAlignRight\n)",
              "doc": "",
              "file": "pkg/text/draw.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "EffectKind",
          "anchor": "EffectKind",
          "decl": "type EffectKind uint8",
          "doc": "EffectKind identifies a per-glyph animation effect.\n",
          "file": "pkg/text/typewriter.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "EffectNone",
                  "anchor": "EffectNone"
                },
                {
                  "name": "EffectWave",
                  "anchor": "EffectWave"
                },
                {
                  "name": "EffectShake",
                  "anchor": "EffectShake"
                },
                {
                  "name": "EffectCustom",
                  "anchor": "EffectCustom"
                }
              ],
              "decl": "const (\n\t// EffectNone disables per-glyph motion and color overrides.\n\tEffectNone EffectKind = iota\n\t// EffectWave displaces glyphs vertically along a smooth sine wave.\n\tEffectWave\n\t// EffectShake jitters glyphs deterministically in X and Y.\n\tEffectShake\n\t// EffectCustom invokes GlyphEffect.Custom to compute offsets and color overrides.\n\tEffectCustom\n)",
              "doc": "",
              "file": "pkg/text/typewriter.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Facing",
          "anchor": "Facing",
          "decl": "type Facing uint8",
          "doc": "Facing is how text placed in a 3D world turns.\n",
          "file": "pkg/text/world.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FacingBillboard",
                  "anchor": "FacingBillboard"
                },
                {
                  "name": "FacingFixed",
                  "anchor": "FacingFixed"
                }
              ],
              "decl": "const (\n\t// FacingBillboard turns the text to face the camera, upright on the screen, as name labels and damage numbers do. This is the zero value.\n\tFacingBillboard Facing = iota\n\t// FacingFixed lays the text in a plane of the world that WorldText.Rot sets, as a sign on a wall is: seen from the side it is foreshortened, seen from behind it is mirrored unless CullBackFace is set.\n\tFacingFixed\n)",
              "doc": "",
              "file": "pkg/text/world.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FieldType",
          "anchor": "FieldType",
          "decl": "type FieldType uint8",
          "doc": "FieldType is how a signed-distance-field atlas stores the distance to a glyph's outline.\n",
          "file": "pkg/text/sdf.go",
          "line": 14,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FieldSDF",
                  "anchor": "FieldSDF"
                },
                {
                  "name": "FieldPSDF",
                  "anchor": "FieldPSDF"
                },
                {
                  "name": "FieldMSDF",
                  "anchor": "FieldMSDF"
                },
                {
                  "name": "FieldMTSDF",
                  "anchor": "FieldMTSDF"
                }
              ],
              "decl": "const (\n\t// FieldSDF is a true signed distance field in one channel, read from red (a grayscale image's gray).\n\tFieldSDF FieldType = iota\n\t// FieldPSDF is a pseudo signed distance field in one channel, read from red, as FieldSDF is.\n\tFieldPSDF\n\t// FieldMSDF is a multi-channel signed distance field: the outline is the median of red, green and blue, which keeps corners sharp.\n\tFieldMSDF\n\t// FieldMTSDF is FieldMSDF with a true signed distance field in alpha, which outlines read for rounder corners.\n\tFieldMTSDF\n)",
              "doc": "",
              "file": "pkg/text/sdf.go",
              "line": 16
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "FieldType.String",
              "recv": "FieldType",
              "decl": "func (t FieldType) String() string",
              "doc": "String returns the name msdf-atlas-gen and msdf-bmfont-xml give the field type: sdf, psdf, msdf or mtsdf.\n",
              "file": "pkg/text/sdf.go",
              "line": 28
            }
          ]
        },
        {
          "name": "Font",
          "anchor": "Font",
          "decl": "type Font struct {\n\t// Face is the font face name from the info record.\n\tFace string\n\t// Size is the font size from the info record.\n\tSize float32\n\t// LineHeight is the distance between consecutive lines, in points.\n\tLineHeight float32\n\t// Base is the distance from the top of a line to the characters' baseline, in points.\n\tBase float32\n\t// Pages maps each BMFont page ID to the sprite.Atlas holding that page's glyphs.\n\tPages map[int]*sprite.Atlas\n\t// Glyphs maps each rune to its Glyph metrics and frame.\n\tGlyphs map[rune]Glyph\n\t// Kernings maps pairs of consecutive runes to their horizontal kerning adjustment.\n\tKernings map[KerningPair]float32\n}",
          "doc": "Font is a parsed AngelCode BMFont: one sprite.Atlas per texture page, glyph\nmetrics, and kerning pairs.\n",
          "file": "pkg/text/bmfont.go",
          "line": 43,
          "members": [
            {
              "name": "Face",
              "anchor": "Font.Face",
              "kind": "field",
              "doc": "Face is the font face name from the info record."
            },
            {
              "name": "Size",
              "anchor": "Font.Size",
              "kind": "field",
              "doc": "Size is the font size from the info record."
            },
            {
              "name": "LineHeight",
              "anchor": "Font.LineHeight",
              "kind": "field",
              "doc": "LineHeight is the distance between consecutive lines, in points."
            },
            {
              "name": "Base",
              "anchor": "Font.Base",
              "kind": "field",
              "doc": "Base is the distance from the top of a line to the characters' baseline, in points."
            },
            {
              "name": "Pages",
              "anchor": "Font.Pages",
              "kind": "field",
              "doc": "Pages maps each BMFont page ID to the sprite.Atlas holding that page's glyphs."
            },
            {
              "name": "Glyphs",
              "anchor": "Font.Glyphs",
              "kind": "field",
              "doc": "Glyphs maps each rune to its Glyph metrics and frame."
            },
            {
              "name": "Kernings",
              "anchor": "Font.Kernings",
              "kind": "field",
              "doc": "Kernings maps pairs of consecutive runes to their horizontal kerning adjustment."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadBMFont",
              "anchor": "LoadBMFont",
              "decl": "func LoadBMFont(data []byte, pageImage func(id int, file string) core.ImageSource) (*Font, error)",
              "doc": "LoadBMFont parses AngelCode BMFont data in either plain-text or XML format.\n\nFor each texture page defined in the font, pageImage is called with the page\nID and filename (in ascending page ID order) to obtain its core.ImageSource.\nIf pageImage is nil, each page's atlas receives a zero core.ImageSource.\n\nIts errors are *loaderr.Error values that give the line of the record at fault and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/text/bmfont.go",
              "line": 76
            },
            {
              "name": "LoadBMFontImage",
              "anchor": "LoadBMFontImage",
              "decl": "func LoadBMFontImage(img core.ImageSource, data []byte) (*Font, error)",
              "doc": "LoadBMFontImage parses a single-page AngelCode BMFont (plain-text or XML)\nbacked by img. It returns an error if the font declares more than one page.\n",
              "file": "pkg/text/bmfont.go",
              "line": 124
            }
          ],
          "methods": [
            {
              "name": "Draw",
              "anchor": "Font.Draw",
              "recv": "*Font",
              "decl": "func (f *Font) Draw(d *core.Drawing, s string, x, y float32, opts Options)",
              "doc": "Draw draws s at (x, y) into d through sprite.Batch (one batch per texture\npage used, preserving order; single-page fonts use one sprite.Batch).\n",
              "file": "pkg/text/draw.go",
              "line": 133
            },
            {
              "name": "Kerning",
              "anchor": "Font.Kerning",
              "recv": "*Font",
              "decl": "func (f *Font) Kerning(first, second rune) float32",
              "doc": "Kerning returns the horizontal kerning adjustment when second follows first,\nor 0 if no kerning pair is defined.\n",
              "file": "pkg/text/bmfont.go",
              "line": 62
            },
            {
              "name": "Layout",
              "anchor": "Font.Layout",
              "recv": "*Font",
              "decl": "func (f *Font) Layout(s string, x, y float32, opts Options) []GlyphPlacement",
              "doc": "Layout computes the screen placements of all visible glyphs in s starting at (x, y).\n",
              "file": "pkg/text/draw.go",
              "line": 82
            },
            {
              "name": "Measure",
              "anchor": "Font.Measure",
              "recv": "*Font",
              "decl": "func (f *Font) Measure(s string, opts Options) core.Size",
              "doc": "Measure returns the bounding width and height of s laid out with opts.\n",
              "file": "pkg/text/draw.go",
              "line": 60
            }
          ]
        },
        {
          "name": "Glyph",
          "anchor": "Glyph",
          "decl": "type Glyph struct {\n\t// ID is the Unicode code point of the glyph.\n\tID rune\n\t// Frame is the glyph's rectangle in its page's sprite.Atlas.\n\tFrame sprite.Frame\n\t// XOffset and YOffset displace the glyph's drawn rectangle from the cursor.\n\tXOffset, YOffset float32\n\t// XAdvance is how far the cursor advances after this glyph.\n\tXAdvance float32\n\t// Page is the BMFont texture page ID holding this glyph.\n\tPage int\n}",
          "doc": "Glyph is one character in a bitmap font: its atlas frame, placement offsets,\ncursor advance, and texture page ID.\n",
          "file": "pkg/text/bmfont.go",
          "line": 28,
          "members": [
            {
              "name": "ID",
              "anchor": "Glyph.ID",
              "kind": "field",
              "doc": "ID is the Unicode code point of the glyph."
            },
            {
              "name": "Frame",
              "anchor": "Glyph.Frame",
              "kind": "field",
              "doc": "Frame is the glyph's rectangle in its page's sprite.Atlas."
            },
            {
              "name": "XOffset",
              "anchor": "Glyph.XOffset",
              "kind": "field",
              "doc": "XOffset and YOffset displace the glyph's drawn rectangle from the cursor."
            },
            {
              "name": "YOffset",
              "anchor": "Glyph.YOffset",
              "kind": "field",
              "doc": "XOffset and YOffset displace the glyph's drawn rectangle from the cursor."
            },
            {
              "name": "XAdvance",
              "anchor": "Glyph.XAdvance",
              "kind": "field",
              "doc": "XAdvance is how far the cursor advances after this glyph."
            },
            {
              "name": "Page",
              "anchor": "Glyph.Page",
              "kind": "field",
              "doc": "Page is the BMFont texture page ID holding this glyph."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GlyphEffect",
          "anchor": "GlyphEffect",
          "decl": "type GlyphEffect struct {\n\tKind      EffectKind\n\tSeed      uint64\n\tAmplitude float32\n\tFrequency float32\n\tSpeed     float32\n\t// Custom is invoked when Kind == EffectCustom.\n\tCustom GlyphEffectFunc\n}",
          "doc": "GlyphEffect configures a deterministic per-glyph animation effect.\n",
          "file": "pkg/text/typewriter.go",
          "line": 28,
          "members": [
            {
              "name": "Kind",
              "anchor": "GlyphEffect.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Seed",
              "anchor": "GlyphEffect.Seed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Amplitude",
              "anchor": "GlyphEffect.Amplitude",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frequency",
              "anchor": "GlyphEffect.Frequency",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Speed",
              "anchor": "GlyphEffect.Speed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Custom",
              "anchor": "GlyphEffect.Custom",
              "kind": "field",
              "doc": "Custom is invoked when Kind == EffectCustom."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GlyphEffectFunc",
          "anchor": "GlyphEffectFunc",
          "decl": "type GlyphEffectFunc func(effect GlyphEffect, glyphIndex int, elapsed float32) (dx, dy float32, colorOverride *core.Color)",
          "doc": "GlyphEffectFunc computes a deterministic per-glyph translation (dx, dy) and\noptional color override for EffectCustom.\n",
          "file": "pkg/text/typewriter.go",
          "line": 25,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GlyphPlacement",
          "anchor": "GlyphPlacement",
          "decl": "type GlyphPlacement struct {\n\t// Rune is the character this placement came from.\n\tRune rune\n\t// Glyph is the font's glyph metrics and atlas frame.\n\tGlyph Glyph\n\t// X and Y are the top-left position of the drawn glyph rectangle, in points.\n\tX, Y float32\n\t// W and H are the drawn width and height of the glyph rectangle, in points.\n\tW, H float32\n\t// Line is the zero-based line index containing this glyph.\n\tLine int\n}",
          "doc": "GlyphPlacement is one visible glyph positioned by Font.Layout.\n",
          "file": "pkg/text/draw.go",
          "line": 46,
          "members": [
            {
              "name": "Rune",
              "anchor": "GlyphPlacement.Rune",
              "kind": "field",
              "doc": "Rune is the character this placement came from."
            },
            {
              "name": "Glyph",
              "anchor": "GlyphPlacement.Glyph",
              "kind": "field",
              "doc": "Glyph is the font's glyph metrics and atlas frame."
            },
            {
              "name": "X",
              "anchor": "GlyphPlacement.X",
              "kind": "field",
              "doc": "X and Y are the top-left position of the drawn glyph rectangle, in points."
            },
            {
              "name": "Y",
              "anchor": "GlyphPlacement.Y",
              "kind": "field",
              "doc": "X and Y are the top-left position of the drawn glyph rectangle, in points."
            },
            {
              "name": "W",
              "anchor": "GlyphPlacement.W",
              "kind": "field",
              "doc": "W and H are the drawn width and height of the glyph rectangle, in points."
            },
            {
              "name": "H",
              "anchor": "GlyphPlacement.H",
              "kind": "field",
              "doc": "W and H are the drawn width and height of the glyph rectangle, in points."
            },
            {
              "name": "Line",
              "anchor": "GlyphPlacement.Line",
              "kind": "field",
              "doc": "Line is the zero-based line index containing this glyph."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Icon",
          "anchor": "Icon",
          "decl": "type Icon struct {\n\t// Image is the texture containing the icon. When empty and Atlas != nil,\n\t// Atlas.Image is used.\n\tImage core.ImageSource\n\t// Atlas optionally identifies the sprite.Atlas holding Frame for sprite.Batch grouping.\n\tAtlas *sprite.Atlas\n\t// Frame is the sub-rectangle in Image/Atlas. When Frame.W == 0 && Frame.H == 0,\n\t// the entire Image is drawn.\n\tFrame sprite.Frame\n\t// Width and Height are the icon's drawn size in points at scale 1.\n\t// When 0, they default to Frame.Width/Frame.Height (or Frame.W/Frame.H, or Image size).\n\tWidth, Height float32\n\t// Advance is the horizontal cursor advance in points at scale 1.\n\t// When <= 0, it defaults to Width.\n\tAdvance float32\n\t// BaselineOffset shifts the icon vertically relative to the text baseline\n\t// (positive moves down, negative moves up). With 0, the bottom of the icon\n\t// sits on the text baseline.\n\tBaselineOffset float32\n}",
          "doc": "Icon describes an inline image or sprite atlas frame embedded inside rich text.\n",
          "file": "pkg/text/rich.go",
          "line": 180,
          "members": [
            {
              "name": "Image",
              "anchor": "Icon.Image",
              "kind": "field",
              "doc": "Image is the texture containing the icon. When empty and Atlas != nil,\nAtlas.Image is used."
            },
            {
              "name": "Atlas",
              "anchor": "Icon.Atlas",
              "kind": "field",
              "doc": "Atlas optionally identifies the sprite.Atlas holding Frame for sprite.Batch grouping."
            },
            {
              "name": "Frame",
              "anchor": "Icon.Frame",
              "kind": "field",
              "doc": "Frame is the sub-rectangle in Image/Atlas. When Frame.W == 0 && Frame.H == 0,\nthe entire Image is drawn."
            },
            {
              "name": "Width",
              "anchor": "Icon.Width",
              "kind": "field",
              "doc": "Width and Height are the icon's drawn size in points at scale 1.\nWhen 0, they default to Frame.Width/Frame.Height (or Frame.W/Frame.H, or Image size)."
            },
            {
              "name": "Height",
              "anchor": "Icon.Height",
              "kind": "field",
              "doc": "Width and Height are the icon's drawn size in points at scale 1.\nWhen 0, they default to Frame.Width/Frame.Height (or Frame.W/Frame.H, or Image size)."
            },
            {
              "name": "Advance",
              "anchor": "Icon.Advance",
              "kind": "field",
              "doc": "Advance is the horizontal cursor advance in points at scale 1.\nWhen <= 0, it defaults to Width."
            },
            {
              "name": "BaselineOffset",
              "anchor": "Icon.BaselineOffset",
              "kind": "field",
              "doc": "BaselineOffset shifts the icon vertically relative to the text baseline\n(positive moves down, negative moves up). With 0, the bottom of the icon\nsits on the text baseline."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "IconResolver",
          "anchor": "IconResolver",
          "decl": "type IconResolver func(name string) (Icon, bool)",
          "doc": "IconResolver resolves an inline icon name (from [icon=name]) to an Icon.\n",
          "file": "pkg/text/rich.go",
          "line": 202,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "AtlasIconResolver",
              "anchor": "AtlasIconResolver",
              "decl": "func AtlasIconResolver(atlas *sprite.Atlas) IconResolver",
              "doc": "AtlasIconResolver returns an IconResolver that looks up named frames in atlas.\n",
              "file": "pkg/text/rich.go",
              "line": 205
            }
          ],
          "methods": []
        },
        {
          "name": "KerningPair",
          "anchor": "KerningPair",
          "decl": "type KerningPair struct {\n\tFirst, Second rune\n}",
          "doc": "KerningPair identifies an ordered pair of consecutive runes that carry a\nhorizontal kerning adjustment.\n",
          "file": "pkg/text/bmfont.go",
          "line": 22,
          "members": [
            {
              "name": "First",
              "anchor": "KerningPair.First",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Second",
              "anchor": "KerningPair.Second",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// MaxWidth wraps lines to fit within MaxWidth points when > 0, and defines\n\t// the alignment box [x, x+MaxWidth] for AlignCenter and AlignRight.\n\t// When MaxWidth <= 0, lines do not wrap and AlignCenter/AlignRight align\n\t// relative to x directly (centered at x, or right edge at x).\n\tMaxWidth float32\n\t// Align is the horizontal alignment of each line.\n\tAlign Align\n\t// Scale multiplies glyph positions and sizes; 0 means 1.\n\t// A negative scale measures and draws nothing.\n\tScale float32\n\t// Alpha is the text opacity from 0 to 1; 0 means 1 (fully opaque).\n\t// A negative alpha draws nothing.\n\tAlpha float32\n\t// LineSpacing is extra vertical space added between lines, in points.\n\tLineSpacing float32\n\t// Z is passed to each sprite in the underlying sprite.Batch.\n\tZ int\n}",
          "doc": "Options configures how a Font measures, lays out, and draws text.\n\nIts zero value draws left-aligned at scale 1 and full opacity with no wrapping.\n",
          "file": "pkg/text/draw.go",
          "line": 25,
          "members": [
            {
              "name": "MaxWidth",
              "anchor": "Options.MaxWidth",
              "kind": "field",
              "doc": "MaxWidth wraps lines to fit within MaxWidth points when > 0, and defines\nthe alignment box [x, x+MaxWidth] for AlignCenter and AlignRight.\nWhen MaxWidth <= 0, lines do not wrap and AlignCenter/AlignRight align\nrelative to x directly (centered at x, or right edge at x)."
            },
            {
              "name": "Align",
              "anchor": "Options.Align",
              "kind": "field",
              "doc": "Align is the horizontal alignment of each line."
            },
            {
              "name": "Scale",
              "anchor": "Options.Scale",
              "kind": "field",
              "doc": "Scale multiplies glyph positions and sizes; 0 means 1.\nA negative scale measures and draws nothing."
            },
            {
              "name": "Alpha",
              "anchor": "Options.Alpha",
              "kind": "field",
              "doc": "Alpha is the text opacity from 0 to 1; 0 means 1 (fully opaque).\nA negative alpha draws nothing."
            },
            {
              "name": "LineSpacing",
              "anchor": "Options.LineSpacing",
              "kind": "field",
              "doc": "LineSpacing is extra vertical space added between lines, in points."
            },
            {
              "name": "Z",
              "anchor": "Options.Z",
              "kind": "field",
              "doc": "Z is passed to each sprite in the underlying sprite.Batch."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PlatformStyle",
          "anchor": "PlatformStyle",
          "decl": "type PlatformStyle struct {\n\t// Font selects the platform font family, size, weight, italic, and language.\n\t// When Font.Size <= 0, core.DefaultFontSize is used.\n\tFont core.Font\n\t// Color sets the text fill color when non-zero; when 0, the drawing's\n\t// current fill color is kept.\n\tColor core.Color\n\t// Alpha sets the text opacity from 0 to 1; 0 means 1 (keep full opacity).\n\t// A negative value draws nothing.\n\tAlpha float32\n\t// Align aligns each line horizontally (AlignLeft, AlignCenter, AlignRight).\n\tAlign Align\n\t// Baseline sets which line of text sits at y (zero value is core.BaselineAlphabetic).\n\tBaseline core.TextBaseline\n\t// MaxWidth wraps lines to fit within MaxWidth points when > 0, and defines\n\t// the alignment box [x, x+MaxWidth] for AlignCenter and AlignRight.\n\t// When MaxWidth <= 0, lines do not wrap and AlignCenter/AlignRight align\n\t// relative to x directly.\n\tMaxWidth float32\n\t// LineHeight overrides the distance between consecutive lines in points when > 0.\n\t// When <= 0, it uses the font's measured line height from d.TextMetrics.\n\tLineHeight float32\n\t// LineSpacing adds extra vertical space between lines, in points.\n\tLineSpacing float32\n}",
          "doc": "PlatformStyle configures platform-rendered text drawn with DrawPlatform.\n\nIts zero value draws in core.DefaultFontSize at full opacity, left-aligned,\non the alphabetic baseline, keeping the drawing's current fill color, with no\nwrapping.\n",
          "file": "pkg/text/platform.go",
          "line": 10,
          "members": [
            {
              "name": "Font",
              "anchor": "PlatformStyle.Font",
              "kind": "field",
              "doc": "Font selects the platform font family, size, weight, italic, and language.\nWhen Font.Size <= 0, core.DefaultFontSize is used."
            },
            {
              "name": "Color",
              "anchor": "PlatformStyle.Color",
              "kind": "field",
              "doc": "Color sets the text fill color when non-zero; when 0, the drawing's\ncurrent fill color is kept."
            },
            {
              "name": "Alpha",
              "anchor": "PlatformStyle.Alpha",
              "kind": "field",
              "doc": "Alpha sets the text opacity from 0 to 1; 0 means 1 (keep full opacity).\nA negative value draws nothing."
            },
            {
              "name": "Align",
              "anchor": "PlatformStyle.Align",
              "kind": "field",
              "doc": "Align aligns each line horizontally (AlignLeft, AlignCenter, AlignRight)."
            },
            {
              "name": "Baseline",
              "anchor": "PlatformStyle.Baseline",
              "kind": "field",
              "doc": "Baseline sets which line of text sits at y (zero value is core.BaselineAlphabetic)."
            },
            {
              "name": "MaxWidth",
              "anchor": "PlatformStyle.MaxWidth",
              "kind": "field",
              "doc": "MaxWidth wraps lines to fit within MaxWidth points when > 0, and defines\nthe alignment box [x, x+MaxWidth] for AlignCenter and AlignRight.\nWhen MaxWidth <= 0, lines do not wrap and AlignCenter/AlignRight align\nrelative to x directly."
            },
            {
              "name": "LineHeight",
              "anchor": "PlatformStyle.LineHeight",
              "kind": "field",
              "doc": "LineHeight overrides the distance between consecutive lines in points when > 0.\nWhen <= 0, it uses the font's measured line height from d.TextMetrics."
            },
            {
              "name": "LineSpacing",
              "anchor": "PlatformStyle.LineSpacing",
              "kind": "field",
              "doc": "LineSpacing adds extra vertical space between lines, in points."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RichLayout",
          "anchor": "RichLayout",
          "decl": "type RichLayout struct {\n\t// Size is the overall bounding width and height of the laid-out rich text.\n\tSize core.Size\n\t// Lines holds per-line metrics and alignment offsets.\n\tLines []RichLine\n\t// Placements holds every visible glyph and inline icon in reading order.\n\tPlacements []RichPlacement\n\t// TotalUnits is the total number of revealable units (non-newline glyphs + icons).\n\tTotalUnits int\n\t// contains filtered or unexported fields\n}",
          "doc": "RichLayout is the laid-out geometry of a RichText.\n",
          "file": "pkg/text/rich.go",
          "line": 313,
          "members": [
            {
              "name": "Size",
              "anchor": "RichLayout.Size",
              "kind": "field",
              "doc": "Size is the overall bounding width and height of the laid-out rich text."
            },
            {
              "name": "Lines",
              "anchor": "RichLayout.Lines",
              "kind": "field",
              "doc": "Lines holds per-line metrics and alignment offsets."
            },
            {
              "name": "Placements",
              "anchor": "RichLayout.Placements",
              "kind": "field",
              "doc": "Placements holds every visible glyph and inline icon in reading order."
            },
            {
              "name": "TotalUnits",
              "anchor": "RichLayout.TotalUnits",
              "kind": "field",
              "doc": "TotalUnits is the total number of revealable units (non-newline glyphs + icons)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LayoutRich",
              "anchor": "LayoutRich",
              "decl": "func LayoutRich(font *Font, rt RichText, opts RichOptions) RichLayout",
              "doc": "LayoutRich computes line wrapping, alignment, and per-glyph/per-icon placements\nfor rt using bitmap font and opts.\n\nInline icons are measured and wrapped identically to glyphs using their\nresolved advance width, and aligned to each line's baseline.\n",
              "file": "pkg/text/rich.go",
              "line": 1141
            },
            {
              "name": "LayoutRichPlatform",
              "anchor": "LayoutRichPlatform",
              "decl": "func LayoutRichPlatform(d *core.Drawing, rt RichText, style PlatformStyle, opts RichOptions) RichLayout",
              "doc": "LayoutRichPlatform lays out rt using platform text measurements from d,\ntreating inline icons as glyphs aligned to the text baseline.\n",
              "file": "pkg/text/rich.go",
              "line": 1410
            }
          ],
          "methods": []
        },
        {
          "name": "RichLine",
          "anchor": "RichLine",
          "decl": "type RichLine struct {\n\t// Index is the zero-based line index.\n\tIndex int\n\t// X is the aligned starting X offset of the line relative to origin.\n\tX float32\n\t// Y is the top Y coordinate of the line relative to origin.\n\tY float32\n\t// Width is the measured advance width of the line in points.\n\tWidth float32\n\t// Height is the total line height in points.\n\tHeight float32\n\t// Baseline is the distance from Y down to the line's baseline in points.\n\tBaseline float32\n}",
          "doc": "RichLine summarizes one wrapped line of a RichLayout.\n",
          "file": "pkg/text/rich.go",
          "line": 297,
          "members": [
            {
              "name": "Index",
              "anchor": "RichLine.Index",
              "kind": "field",
              "doc": "Index is the zero-based line index."
            },
            {
              "name": "X",
              "anchor": "RichLine.X",
              "kind": "field",
              "doc": "X is the aligned starting X offset of the line relative to origin."
            },
            {
              "name": "Y",
              "anchor": "RichLine.Y",
              "kind": "field",
              "doc": "Y is the top Y coordinate of the line relative to origin."
            },
            {
              "name": "Width",
              "anchor": "RichLine.Width",
              "kind": "field",
              "doc": "Width is the measured advance width of the line in points."
            },
            {
              "name": "Height",
              "anchor": "RichLine.Height",
              "kind": "field",
              "doc": "Height is the total line height in points."
            },
            {
              "name": "Baseline",
              "anchor": "RichLine.Baseline",
              "kind": "field",
              "doc": "Baseline is the distance from Y down to the line's baseline in points."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RichOptions",
          "anchor": "RichOptions",
          "decl": "type RichOptions struct {\n\t// Options holds MaxWidth, Align, Scale, Alpha, LineSpacing, and Z.\n\tOptions\n\t// Color is the default foreground color when a token has no [color=...] tag.\n\t// Zero means untinted for bitmap fonts, or the drawing's current fill color\n\t// for platform text.\n\tColor core.Color\n\t// Icons resolves [icon=name] tags. When nil or unresolved, icons are skipped.\n\tIcons IconResolver\n\t// BoldFont, ItalicFont, and BoldItalicFont are optional alternate bitmap fonts\n\t// used for [b], [i], and [b][i] spans. When nil, faux-bold or faux-italic\n\t// rendering is applied using the base font.\n\tBoldFont       *Font\n\tItalicFont     *Font\n\tBoldItalicFont *Font\n\t// Elapsed is the animation time in seconds used when evaluating per-glyph\n\t// effects ([wave], [shake], or EffectCustom).\n\tElapsed float32\n\t// Platform optionally supplies platform text rendering settings when drawing\n\t// via DrawRich with a nil bitmap Font.\n\tPlatform *PlatformStyle\n}",
          "doc": "RichOptions configures layout and rendering of RichText.\n\nIts zero value draws all tokens left-aligned at scale 1 and full opacity\nwith no wrapping.\n",
          "file": "pkg/text/rich.go",
          "line": 235,
          "members": [
            {
              "name": "Options",
              "anchor": "RichOptions.Options",
              "kind": "field",
              "doc": "Options holds MaxWidth, Align, Scale, Alpha, LineSpacing, and Z."
            },
            {
              "name": "Color",
              "anchor": "RichOptions.Color",
              "kind": "field",
              "doc": "Color is the default foreground color when a token has no [color=...] tag.\nZero means untinted for bitmap fonts, or the drawing's current fill color\nfor platform text."
            },
            {
              "name": "Icons",
              "anchor": "RichOptions.Icons",
              "kind": "field",
              "doc": "Icons resolves [icon=name] tags. When nil or unresolved, icons are skipped."
            },
            {
              "name": "BoldFont",
              "anchor": "RichOptions.BoldFont",
              "kind": "field",
              "doc": "BoldFont, ItalicFont, and BoldItalicFont are optional alternate bitmap fonts\nused for [b], [i], and [b][i] spans. When nil, faux-bold or faux-italic\nrendering is applied using the base font."
            },
            {
              "name": "ItalicFont",
              "anchor": "RichOptions.ItalicFont",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BoldItalicFont",
              "anchor": "RichOptions.BoldItalicFont",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Elapsed",
              "anchor": "RichOptions.Elapsed",
              "kind": "field",
              "doc": "Elapsed is the animation time in seconds used when evaluating per-glyph\neffects ([wave], [shake], or EffectCustom)."
            },
            {
              "name": "Platform",
              "anchor": "RichOptions.Platform",
              "kind": "field",
              "doc": "Platform optionally supplies platform text rendering settings when drawing\nvia DrawRich with a nil bitmap Font."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RichPlacement",
          "anchor": "RichPlacement",
          "decl": "type RichPlacement struct {\n\t// Index is the zero-based revealable unit index used by Typewriter and\n\t// EvalGlyphTransform.\n\tIndex int\n\t// Kind is TokenGlyph or TokenIcon.\n\tKind RichTokenKind\n\t// Rune is the character when Kind == TokenGlyph.\n\tRune rune\n\t// Glyph is the bitmap glyph metrics when laid out with a bitmap Font.\n\tGlyph Glyph\n\t// Font is the resolved bitmap font for this glyph (base or Bold/Italic variant).\n\tFont *Font\n\t// Icon is the resolved inline icon when Kind == TokenIcon.\n\tIcon Icon\n\t// Style is the active RichStyle on this placement.\n\tStyle RichStyle\n\t// Scale is the combined scale (baseScale * tokenScale).\n\tScale float32\n\t// X and Y are the top-left position of the drawn glyph/icon rectangle, in points.\n\tX, Y float32\n\t// W and H are the drawn width and height of the glyph/icon rectangle, in points.\n\tW, H float32\n\t// BaselineY is the Y coordinate of this placement's line baseline, in points.\n\tBaselineY float32\n\t// Line is the zero-based line index containing this placement.\n\tLine int\n\t// FauxBold is true when Bold is active without a dedicated BoldFont/BoldItalicFont.\n\tFauxBold bool\n\t// FauxItalic is true when Italic is active without a dedicated ItalicFont/BoldItalicFont.\n\tFauxItalic bool\n\t// PlatformFont is set when laid out via LayoutRichPlatform.\n\tPlatformFont core.Font\n\t// contains filtered or unexported fields\n}",
          "doc": "RichPlacement is one laid-out visible glyph or inline icon in a RichLayout.\nPositions are relative to the layout's origin (0, 0).\n",
          "file": "pkg/text/rich.go",
          "line": 260,
          "members": [
            {
              "name": "Index",
              "anchor": "RichPlacement.Index",
              "kind": "field",
              "doc": "Index is the zero-based revealable unit index used by Typewriter and\nEvalGlyphTransform."
            },
            {
              "name": "Kind",
              "anchor": "RichPlacement.Kind",
              "kind": "field",
              "doc": "Kind is TokenGlyph or TokenIcon."
            },
            {
              "name": "Rune",
              "anchor": "RichPlacement.Rune",
              "kind": "field",
              "doc": "Rune is the character when Kind == TokenGlyph."
            },
            {
              "name": "Glyph",
              "anchor": "RichPlacement.Glyph",
              "kind": "field",
              "doc": "Glyph is the bitmap glyph metrics when laid out with a bitmap Font."
            },
            {
              "name": "Font",
              "anchor": "RichPlacement.Font",
              "kind": "field",
              "doc": "Font is the resolved bitmap font for this glyph (base or Bold/Italic variant)."
            },
            {
              "name": "Icon",
              "anchor": "RichPlacement.Icon",
              "kind": "field",
              "doc": "Icon is the resolved inline icon when Kind == TokenIcon."
            },
            {
              "name": "Style",
              "anchor": "RichPlacement.Style",
              "kind": "field",
              "doc": "Style is the active RichStyle on this placement."
            },
            {
              "name": "Scale",
              "anchor": "RichPlacement.Scale",
              "kind": "field",
              "doc": "Scale is the combined scale (baseScale * tokenScale)."
            },
            {
              "name": "X",
              "anchor": "RichPlacement.X",
              "kind": "field",
              "doc": "X and Y are the top-left position of the drawn glyph/icon rectangle, in points."
            },
            {
              "name": "Y",
              "anchor": "RichPlacement.Y",
              "kind": "field",
              "doc": "X and Y are the top-left position of the drawn glyph/icon rectangle, in points."
            },
            {
              "name": "W",
              "anchor": "RichPlacement.W",
              "kind": "field",
              "doc": "W and H are the drawn width and height of the glyph/icon rectangle, in points."
            },
            {
              "name": "H",
              "anchor": "RichPlacement.H",
              "kind": "field",
              "doc": "W and H are the drawn width and height of the glyph/icon rectangle, in points."
            },
            {
              "name": "BaselineY",
              "anchor": "RichPlacement.BaselineY",
              "kind": "field",
              "doc": "BaselineY is the Y coordinate of this placement's line baseline, in points."
            },
            {
              "name": "Line",
              "anchor": "RichPlacement.Line",
              "kind": "field",
              "doc": "Line is the zero-based line index containing this placement."
            },
            {
              "name": "FauxBold",
              "anchor": "RichPlacement.FauxBold",
              "kind": "field",
              "doc": "FauxBold is true when Bold is active without a dedicated BoldFont/BoldItalicFont."
            },
            {
              "name": "FauxItalic",
              "anchor": "RichPlacement.FauxItalic",
              "kind": "field",
              "doc": "FauxItalic is true when Italic is active without a dedicated ItalicFont/BoldItalicFont."
            },
            {
              "name": "PlatformFont",
              "anchor": "RichPlacement.PlatformFont",
              "kind": "field",
              "doc": "PlatformFont is set when laid out via LayoutRichPlatform."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RichRun",
          "anchor": "RichRun",
          "decl": "type RichRun struct {\n\tKind RichTokenKind\n\t// Text holds the run's runes when Kind == TokenGlyph.\n\tText string\n\t// IconName, IconWidth, IconHeight are set when Kind == TokenIcon.\n\tIconName              string\n\tIconWidth, IconHeight float32\n\t// PauseSeconds is set when Kind == TokenPause.\n\tPauseSeconds float32\n\t// Style is the shared RichStyle for this run.\n\tStyle RichStyle\n}",
          "doc": "RichRun groups contiguous glyphs sharing identical style into a string, or\nrepresents a single inline icon or pause token.\n",
          "file": "pkg/text/rich.go",
          "line": 82,
          "members": [
            {
              "name": "Kind",
              "anchor": "RichRun.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "RichRun.Text",
              "kind": "field",
              "doc": "Text holds the run's runes when Kind == TokenGlyph."
            },
            {
              "name": "IconName",
              "anchor": "RichRun.IconName",
              "kind": "field",
              "doc": "IconName, IconWidth, IconHeight are set when Kind == TokenIcon."
            },
            {
              "name": "IconWidth",
              "anchor": "RichRun.IconWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IconHeight",
              "anchor": "RichRun.IconHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PauseSeconds",
              "anchor": "RichRun.PauseSeconds",
              "kind": "field",
              "doc": "PauseSeconds is set when Kind == TokenPause."
            },
            {
              "name": "Style",
              "anchor": "RichRun.Style",
              "kind": "field",
              "doc": "Style is the shared RichStyle for this run."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RichStyle",
          "anchor": "RichStyle",
          "decl": "type RichStyle struct {\n\t// Color is the token's foreground color; 0 means inherit the default color.\n\tColor core.Color\n\t// Scale multiplies the base text scale; 0 means 1.\n\tScale float32\n\t// Bold requests bold rendering (BoldFont/BoldItalicFont, faux-bold, or\n\t// core.FontWeightBold on platform text).\n\tBold bool\n\t// Italic requests italic rendering (ItalicFont/BoldItalicFont, faux-italic\n\t// skew, or core.Font.Italic on platform text).\n\tItalic bool\n\t// Effect configures a deterministic per-glyph animation effect.\n\tEffect GlyphEffect\n}",
          "doc": "RichStyle holds the active visual attributes of a parsed rich text token.\n",
          "file": "pkg/text/rich.go",
          "line": 31,
          "members": [
            {
              "name": "Color",
              "anchor": "RichStyle.Color",
              "kind": "field",
              "doc": "Color is the token's foreground color; 0 means inherit the default color."
            },
            {
              "name": "Scale",
              "anchor": "RichStyle.Scale",
              "kind": "field",
              "doc": "Scale multiplies the base text scale; 0 means 1."
            },
            {
              "name": "Bold",
              "anchor": "RichStyle.Bold",
              "kind": "field",
              "doc": "Bold requests bold rendering (BoldFont/BoldItalicFont, faux-bold, or\ncore.FontWeightBold on platform text)."
            },
            {
              "name": "Italic",
              "anchor": "RichStyle.Italic",
              "kind": "field",
              "doc": "Italic requests italic rendering (ItalicFont/BoldItalicFont, faux-italic\nskew, or core.Font.Italic on platform text)."
            },
            {
              "name": "Effect",
              "anchor": "RichStyle.Effect",
              "kind": "field",
              "doc": "Effect configures a deterministic per-glyph animation effect."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RichText",
          "anchor": "RichText",
          "decl": "type RichText struct {\n\tTokens []RichToken\n}",
          "doc": "RichText is a parsed rich text document consisting of styled tokens.\n",
          "file": "pkg/text/rich.go",
          "line": 96,
          "members": [
            {
              "name": "Tokens",
              "anchor": "RichText.Tokens",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseRich",
              "anchor": "ParseRich",
              "decl": "func ParseRich(src string) RichText",
              "doc": "ParseRich parses forgiving inline rich text markup into a RichText.\n\nSupported tags:\n  - [color=#RRGGBB] / [color=#RRGGBBAA] / [color=gold] ... [/color]\n  - [scale=1.25] ... [/scale], [size=1.25] ... [/size]\n  - [b] ... [/b], [i] ... [/i]\n  - [icon=coin] or [icon=coin w=16 h=16]\n  - [wave amp=3 freq=4 speed=6] ... [/wave]\n  - [shake amp=2 speed=30] ... [/shake]\n  - [pause=0.2]\n  - [[ escapes a literal '['\n\nAny invalid, unknown, malformed, mismatched, or unclosed markup never errors\nor panics and falls back cleanly to plain text.\n",
              "file": "pkg/text/rich.go",
              "line": 385
            }
          ],
          "methods": [
            {
              "name": "Empty",
              "anchor": "RichText.Empty",
              "recv": "RichText",
              "decl": "func (rt RichText) Empty() bool",
              "doc": "Empty reports whether rt has no tokens.\n",
              "file": "pkg/text/rich.go",
              "line": 101
            },
            {
              "name": "PlainText",
              "anchor": "RichText.PlainText",
              "recv": "RichText",
              "decl": "func (rt RichText) PlainText() string",
              "doc": "PlainText returns all text runes in rt with markup tags, icons, and pauses removed.\n",
              "file": "pkg/text/rich.go",
              "line": 106
            },
            {
              "name": "Runs",
              "anchor": "RichText.Runs",
              "recv": "RichText",
              "decl": "func (rt RichText) Runs() []RichRun",
              "doc": "Runs groups contiguous glyph tokens with matching style into string runs,\npreserving inline icons and pauses in order.\n",
              "file": "pkg/text/rich.go",
              "line": 118
            }
          ]
        },
        {
          "name": "RichToken",
          "anchor": "RichToken",
          "decl": "type RichToken struct {\n\tKind RichTokenKind\n\t// Rune is set when Kind == TokenGlyph.\n\tRune rune\n\t// IconName is set when Kind == TokenIcon.\n\tIconName string\n\t// IconWidth and IconHeight override the resolved icon's intrinsic dimensions when > 0.\n\tIconWidth, IconHeight float32\n\t// PauseSeconds is the pause duration in seconds when Kind == TokenPause.\n\tPauseSeconds float32\n\t// Style holds the color, scale, bold, italic, and effect active on this token.\n\tStyle RichStyle\n}",
          "doc": "RichToken is one parsed unit in a RichText document.\n",
          "file": "pkg/text/rich.go",
          "line": 66,
          "members": [
            {
              "name": "Kind",
              "anchor": "RichToken.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rune",
              "anchor": "RichToken.Rune",
              "kind": "field",
              "doc": "Rune is set when Kind == TokenGlyph."
            },
            {
              "name": "IconName",
              "anchor": "RichToken.IconName",
              "kind": "field",
              "doc": "IconName is set when Kind == TokenIcon."
            },
            {
              "name": "IconWidth",
              "anchor": "RichToken.IconWidth",
              "kind": "field",
              "doc": "IconWidth and IconHeight override the resolved icon's intrinsic dimensions when > 0."
            },
            {
              "name": "IconHeight",
              "anchor": "RichToken.IconHeight",
              "kind": "field",
              "doc": "IconWidth and IconHeight override the resolved icon's intrinsic dimensions when > 0."
            },
            {
              "name": "PauseSeconds",
              "anchor": "RichToken.PauseSeconds",
              "kind": "field",
              "doc": "PauseSeconds is the pause duration in seconds when Kind == TokenPause."
            },
            {
              "name": "Style",
              "anchor": "RichToken.Style",
              "kind": "field",
              "doc": "Style holds the color, scale, bold, italic, and effect active on this token."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RichTokenKind",
          "anchor": "RichTokenKind",
          "decl": "type RichTokenKind uint8",
          "doc": "RichTokenKind distinguishes text glyphs, inline icons, and typewriter pauses.\n",
          "file": "pkg/text/rich.go",
          "line": 54,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TokenGlyph",
                  "anchor": "TokenGlyph"
                },
                {
                  "name": "TokenIcon",
                  "anchor": "TokenIcon"
                },
                {
                  "name": "TokenPause",
                  "anchor": "TokenPause"
                }
              ],
              "decl": "const (\n\t// TokenGlyph is a single Unicode rune with an active RichStyle.\n\tTokenGlyph RichTokenKind = iota\n\t// TokenIcon is an inline icon ([icon=name ...]) with an active RichStyle.\n\tTokenIcon\n\t// TokenPause is a zero-width typewriter pause ([pause=seconds]).\n\tTokenPause\n)",
              "doc": "",
              "file": "pkg/text/rich.go",
              "line": 56
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SDFFont",
          "anchor": "SDFFont",
          "decl": "type SDFFont struct {\n\t// Face is the font face name.\n\tFace string\n\t// Size is the font's em size in atlas pixels: the size the atlas was generated at.\n\tSize float32\n\t// LineHeight is the distance between consecutive lines, in atlas pixels.\n\tLineHeight float32\n\t// Base is the distance from the top of a line to the baseline, in atlas pixels.\n\tBase float32\n\t// Field is how the atlas stores the distance.\n\tField FieldType\n\t// DistanceRange is the width, in atlas pixels, of the band around each outline the field covers. With a DistanceRangeMiddle of 0, a field value of 0 is DistanceRange/2 pixels outside the outline, 0.5 on it and 1 DistanceRange/2 pixels inside.\n\tDistanceRange float32\n\t// DistanceRangeMiddle is how far, in atlas pixels, the middle of the field's band lies inside the outline: msdf-atlas-gen's distanceRangeMiddle, non-zero for an atlas generated with an asymmetric range (-apxrange or -aemrange). The outline is at the field value 0.5 - DistanceRangeMiddle/DistanceRange, and the field reaches DistanceRange/2 - DistanceRangeMiddle atlas pixels outside it.\n\tDistanceRangeMiddle float32\n\t// Glyphs maps each rune to its metrics and its rectangle in its page, all in atlas pixels.\n\t//\n\t// Measure, Layout, Draw and LayoutWorld read Size, LineHeight, Base, Glyphs and Kernings on every call, and a glyph's image is cached under its rectangle and the field's settings, so these fields can be changed between calls.\n\tGlyphs map[rune]Glyph\n\t// Kernings maps pairs of consecutive runes to their horizontal kerning adjustment, in atlas pixels.\n\tKernings map[KerningPair]float32\n\t// CacheBytes bounds the memory of resolved glyph images kept between draws; 0 means 16 MiB. The least recently drawn glyph images go first.\n\tCacheBytes int\n\t// contains filtered or unexported fields\n}",
          "doc": "SDFFont is a signed-distance-field font: glyph metrics in atlas pixels and, for each texture page, the distance field those glyphs are drawn from.\n\nIts glyphs stay sharp at any size, because a glyph is resolved from the field at the size it is drawn at rather than stretched from one bitmap. Draw and DrawWorld keep the glyphs they resolve in a cache bounded by CacheBytes, so an SDFFont is not safe for concurrent use: draw with it from one goroutine, as a canvas's Draw does.\n",
          "file": "pkg/text/sdf.go",
          "line": 69,
          "members": [
            {
              "name": "Face",
              "anchor": "SDFFont.Face",
              "kind": "field",
              "doc": "Face is the font face name."
            },
            {
              "name": "Size",
              "anchor": "SDFFont.Size",
              "kind": "field",
              "doc": "Size is the font's em size in atlas pixels: the size the atlas was generated at."
            },
            {
              "name": "LineHeight",
              "anchor": "SDFFont.LineHeight",
              "kind": "field",
              "doc": "LineHeight is the distance between consecutive lines, in atlas pixels."
            },
            {
              "name": "Base",
              "anchor": "SDFFont.Base",
              "kind": "field",
              "doc": "Base is the distance from the top of a line to the baseline, in atlas pixels."
            },
            {
              "name": "Field",
              "anchor": "SDFFont.Field",
              "kind": "field",
              "doc": "Field is how the atlas stores the distance."
            },
            {
              "name": "DistanceRange",
              "anchor": "SDFFont.DistanceRange",
              "kind": "field",
              "doc": "DistanceRange is the width, in atlas pixels, of the band around each outline the field covers. With a DistanceRangeMiddle of 0, a field value of 0 is DistanceRange/2 pixels outside the outline, 0.5 on it and 1 DistanceRange/2 pixels inside."
            },
            {
              "name": "DistanceRangeMiddle",
              "anchor": "SDFFont.DistanceRangeMiddle",
              "kind": "field",
              "doc": "DistanceRangeMiddle is how far, in atlas pixels, the middle of the field's band lies inside the outline: msdf-atlas-gen's distanceRangeMiddle, non-zero for an atlas generated with an asymmetric range (-apxrange or -aemrange). The outline is at the field value 0.5 - DistanceRangeMiddle/DistanceRange, and the field reaches DistanceRange/2 - DistanceRangeMiddle atlas pixels outside it."
            },
            {
              "name": "Glyphs",
              "anchor": "SDFFont.Glyphs",
              "kind": "field",
              "doc": "Glyphs maps each rune to its metrics and its rectangle in its page, all in atlas pixels.\n\nMeasure, Layout, Draw and LayoutWorld read Size, LineHeight, Base, Glyphs and Kernings on every call, and a glyph's image is cached under its rectangle and the field's settings, so these fields can be changed between calls."
            },
            {
              "name": "Kernings",
              "anchor": "SDFFont.Kernings",
              "kind": "field",
              "doc": "Kernings maps pairs of consecutive runes to their horizontal kerning adjustment, in atlas pixels."
            },
            {
              "name": "CacheBytes",
              "anchor": "SDFFont.CacheBytes",
              "kind": "field",
              "doc": "CacheBytes bounds the memory of resolved glyph images kept between draws; 0 means 16 MiB. The least recently drawn glyph images go first."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadSDFFont",
              "anchor": "LoadSDFFont",
              "decl": "func LoadSDFFont(data []byte, page func(id int, file string) (image.Image, error)) (*SDFFont, error)",
              "doc": "LoadSDFFont parses a signed-distance-field font in any of the forms the common generators write:\n\n  - msdf-atlas-gen's JSON (-json), whose glyphs are named by Unicode code point (-charset or the default, not -glyphset);\n  - AngelCode BMFont in plain text, XML or JSON with a distanceField record, as msdf-bmfont-xml writes.\n\nFor each texture page, in ascending page ID order, page is called with the page ID and the file the font names for it (empty for msdf-atlas-gen's single atlas) and returns the page's decoded image, such as image/png's. LoadSDFFont reads the distance out of the images, so it does not keep them.\n",
              "file": "pkg/text/sdf.go",
              "line": 123
            },
            {
              "name": "LoadSDFFontImage",
              "anchor": "LoadSDFFontImage",
              "decl": "func LoadSDFFontImage(img image.Image, data []byte) (*SDFFont, error)",
              "doc": "LoadSDFFontImage parses a single-page signed-distance-field font, as LoadSDFFont does, whose page is img. It returns an error if the font declares more than one page.\n",
              "file": "pkg/text/sdf.go",
              "line": 158
            }
          ],
          "methods": [
            {
              "name": "CachedGlyphs",
              "anchor": "SDFFont.CachedGlyphs",
              "recv": "*SDFFont",
              "decl": "func (f *SDFFont) CachedGlyphs() (count, bytes int)",
              "doc": "CachedGlyphs returns how many resolved glyph images the font keeps and their size in bytes.\n",
              "file": "pkg/text/sdf_raster.go",
              "line": 80
            },
            {
              "name": "ClearCache",
              "anchor": "SDFFont.ClearCache",
              "recv": "*SDFFont",
              "decl": "func (f *SDFFont) ClearCache()",
              "doc": "ClearCache drops every resolved glyph image the font keeps.\n",
              "file": "pkg/text/sdf_raster.go",
              "line": 88
            },
            {
              "name": "Draw",
              "anchor": "SDFFont.Draw",
              "recv": "*SDFFont",
              "decl": "func (f *SDFFont) Draw(d *core.Drawing, s string, x, y float32, opts SDFOptions)",
              "doc": "Draw draws s at (x, y), the top left of its first line, into d, each glyph resolved from the distance field at the size it is drawn at, so it stays sharp at any Size and PixelScale.\n\nThe current transform of d is not known to Draw: under a scaling transform, set PixelScale to the device pixels a point then covers.\n",
              "file": "pkg/text/sdf_draw.go",
              "line": 86
            },
            {
              "name": "DrawLayout",
              "anchor": "SDFFont.DrawLayout",
              "recv": "*SDFFont",
              "decl": "func (f *SDFFont) DrawLayout(d *core.Drawing, l WorldLayout)",
              "doc": "DrawLayout draws world-space text that LayoutWorld projected into d.\n",
              "file": "pkg/text/world.go",
              "line": 182
            },
            {
              "name": "DrawWorld",
              "anchor": "SDFFont.DrawWorld",
              "recv": "*SDFFont",
              "decl": "func (f *SDFFont) DrawWorld(d *core.Drawing, cam *scene3d.Camera, viewport core.Bounds, t WorldText)",
              "doc": "DrawWorld projects t through cam onto viewport, as LayoutWorld does, and draws it into d. To draw overlapping labels back to front, lay them out with LayoutWorld, sort them by Depth and draw them with DrawLayout instead.\n",
              "file": "pkg/text/world.go",
              "line": 195
            },
            {
              "name": "Kerning",
              "anchor": "SDFFont.Kerning",
              "recv": "*SDFFont",
              "decl": "func (f *SDFFont) Kerning(first, second rune) float32",
              "doc": "Kerning returns the horizontal kerning adjustment, in atlas pixels, when second follows first, or 0 if no kerning pair is defined.\n",
              "file": "pkg/text/sdf.go",
              "line": 110
            },
            {
              "name": "Layout",
              "anchor": "SDFFont.Layout",
              "recv": "*SDFFont",
              "decl": "func (f *SDFFont) Layout(s string, x, y float32, opts SDFOptions) []GlyphPlacement",
              "doc": "Layout computes the placements, in points, of all visible glyphs in s starting at (x, y), the top left of its first line.\n",
              "file": "pkg/text/sdf_draw.go",
              "line": 76
            },
            {
              "name": "LayoutWorld",
              "anchor": "SDFFont.LayoutWorld",
              "recv": "*SDFFont",
              "decl": "func (f *SDFFont) LayoutWorld(cam *scene3d.Camera, viewport core.Bounds, t WorldText) (WorldLayout, bool)",
              "doc": "LayoutWorld projects t through cam onto viewport, the camera's view in the drawing's points (as render3d.ProjectSegment's), and reports whether any of it is visible.\n\nFacingBillboard text is hidden as a whole when its anchor is outside the camera's near and far planes. FacingFixed text is hidden glyph by glyph: a glyph reaching behind the near plane or past the far plane is left out. Glyphs wholly outside the viewport are left out of both.\n",
              "file": "pkg/text/world.go",
              "line": 66
            },
            {
              "name": "Measure",
              "anchor": "SDFFont.Measure",
              "recv": "*SDFFont",
              "decl": "func (f *SDFFont) Measure(s string, opts SDFOptions) core.Size",
              "doc": "Measure returns the bounding width and height, in points, of s laid out with opts.\n",
              "file": "pkg/text/sdf_draw.go",
              "line": 68
            }
          ]
        },
        {
          "name": "SDFOptions",
          "anchor": "SDFOptions",
          "decl": "type SDFOptions struct {\n\t// Size is the em size the text is drawn at, in points; 0 means the font's Size. DrawWorld ignores it and takes the size from WorldText.\n\tSize float32\n\t// MaxWidth wraps lines to fit within MaxWidth when > 0 and defines the alignment box [x, x+MaxWidth] for AlignCenter and AlignRight, as Options.MaxWidth does. It is in points for Draw and in world units for DrawWorld.\n\tMaxWidth float32\n\t// Align is the horizontal alignment of each line.\n\tAlign Align\n\t// LineSpacing is extra vertical space between lines, in ems.\n\tLineSpacing float32\n\t// Color is the text's fill color; 0 means opaque white.\n\tColor core.Color\n\t// Alpha is the text's opacity from 0 to 1; 0 means 1, and a negative alpha draws nothing. Changing it, as a fading damage number does, reuses the glyphs already resolved.\n\tAlpha float32\n\t// Outline is the width of an outline around each glyph, in ems; 0 draws none. It cannot reach past the font's distance field, DistanceRange/2 - DistanceRangeMiddle atlas pixels outside the outline, and stops there.\n\tOutline float32\n\t// OutlineColor is the outline's color; 0 draws no outline.\n\tOutlineColor core.Color\n\t// PixelScale is the device pixels a point covers, so glyphs are resolved at the screen's density; 0 means 1.\n\tPixelScale float32\n}",
          "doc": "SDFOptions configures how an SDFFont lays out and draws text.\n\nIts zero value draws opaque white, left-aligned, at the font's own size, with no outline or wrapping.\n",
          "file": "pkg/text/sdf_draw.go",
          "line": 13,
          "members": [
            {
              "name": "Size",
              "anchor": "SDFOptions.Size",
              "kind": "field",
              "doc": "Size is the em size the text is drawn at, in points; 0 means the font's Size. DrawWorld ignores it and takes the size from WorldText."
            },
            {
              "name": "MaxWidth",
              "anchor": "SDFOptions.MaxWidth",
              "kind": "field",
              "doc": "MaxWidth wraps lines to fit within MaxWidth when > 0 and defines the alignment box [x, x+MaxWidth] for AlignCenter and AlignRight, as Options.MaxWidth does. It is in points for Draw and in world units for DrawWorld."
            },
            {
              "name": "Align",
              "anchor": "SDFOptions.Align",
              "kind": "field",
              "doc": "Align is the horizontal alignment of each line."
            },
            {
              "name": "LineSpacing",
              "anchor": "SDFOptions.LineSpacing",
              "kind": "field",
              "doc": "LineSpacing is extra vertical space between lines, in ems."
            },
            {
              "name": "Color",
              "anchor": "SDFOptions.Color",
              "kind": "field",
              "doc": "Color is the text's fill color; 0 means opaque white."
            },
            {
              "name": "Alpha",
              "anchor": "SDFOptions.Alpha",
              "kind": "field",
              "doc": "Alpha is the text's opacity from 0 to 1; 0 means 1, and a negative alpha draws nothing. Changing it, as a fading damage number does, reuses the glyphs already resolved."
            },
            {
              "name": "Outline",
              "anchor": "SDFOptions.Outline",
              "kind": "field",
              "doc": "Outline is the width of an outline around each glyph, in ems; 0 draws none. It cannot reach past the font's distance field, DistanceRange/2 - DistanceRangeMiddle atlas pixels outside the outline, and stops there."
            },
            {
              "name": "OutlineColor",
              "anchor": "SDFOptions.OutlineColor",
              "kind": "field",
              "doc": "OutlineColor is the outline's color; 0 draws no outline."
            },
            {
              "name": "PixelScale",
              "anchor": "SDFOptions.PixelScale",
              "kind": "field",
              "doc": "PixelScale is the device pixels a point covers, so glyphs are resolved at the screen's density; 0 means 1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Typewriter",
          "anchor": "Typewriter",
          "decl": "type Typewriter struct {\n\t// CharsPerSecond is the reveal rate in units (glyphs or inline icons) per second.\n\tCharsPerSecond float32\n\t// PunctuationPause optionally defines step multipliers after punctuation runes\n\t// (e.g., '.' -> 4.0 waits 3 extra character steps after revealing '.').\n\t// Use DefaultPunctuationPause() for common dialogue pacing, or leave nil for\n\t// uniform character timing.\n\tPunctuationPause map[rune]float32\n\t// OnReveal is called once as each unit becomes visible. For inline icons, r is 0.\n\tOnReveal func(glyphIndex int, r rune)\n\t// OnComplete is called strictly once when all units have been revealed.\n\tOnComplete func()\n\t// contains filtered or unexported fields\n}",
          "doc": "Typewriter reveals a RichText progressively at a deterministic rate while\ntracking elapsed animation time for per-glyph effects.\n",
          "file": "pkg/text/typewriter.go",
          "line": 97,
          "members": [
            {
              "name": "CharsPerSecond",
              "anchor": "Typewriter.CharsPerSecond",
              "kind": "field",
              "doc": "CharsPerSecond is the reveal rate in units (glyphs or inline icons) per second."
            },
            {
              "name": "PunctuationPause",
              "anchor": "Typewriter.PunctuationPause",
              "kind": "field",
              "doc": "PunctuationPause optionally defines step multipliers after punctuation runes\n(e.g., '.' -> 4.0 waits 3 extra character steps after revealing '.').\nUse DefaultPunctuationPause() for common dialogue pacing, or leave nil for\nuniform character timing."
            },
            {
              "name": "OnReveal",
              "anchor": "Typewriter.OnReveal",
              "kind": "field",
              "doc": "OnReveal is called once as each unit becomes visible. For inline icons, r is 0."
            },
            {
              "name": "OnComplete",
              "anchor": "Typewriter.OnComplete",
              "kind": "field",
              "doc": "OnComplete is called strictly once when all units have been revealed."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTypewriter",
              "anchor": "NewTypewriter",
              "decl": "func NewTypewriter(rt RichText, charsPerSecond float32) *Typewriter",
              "doc": "NewTypewriter creates a Typewriter revealing rt at charsPerSecond units per second.\n",
              "file": "pkg/text/typewriter.go",
              "line": 134
            },
            {
              "name": "NewTypewriterString",
              "anchor": "NewTypewriterString",
              "decl": "func NewTypewriterString(markup string, charsPerSecond float32) *Typewriter",
              "doc": "NewTypewriterString parses markup via ParseRich and creates a Typewriter\nrevealing it at charsPerSecond units per second.\n",
              "file": "pkg/text/typewriter.go",
              "line": 144
            }
          ],
          "methods": [
            {
              "name": "Done",
              "anchor": "Typewriter.Done",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) Done() bool",
              "doc": "Done reports whether all units have been revealed.\n",
              "file": "pkg/text/typewriter.go",
              "line": 338
            },
            {
              "name": "Draw",
              "anchor": "Typewriter.Draw",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) Draw(d *core.Drawing, font *Font, pos core.Point, opts RichOptions)",
              "doc": "Draw draws only the currently revealed glyphs and inline icons at pos into d,\nkeeping the full wrapped layout stable while evaluating per-glyph effects at\nthe typewriter's Elapsed time.\n\nWhen font is nil and opts.Platform is set, platform-text rendering is used.\n",
              "file": "pkg/text/typewriter.go",
              "line": 366
            },
            {
              "name": "DrawPlatform",
              "anchor": "Typewriter.DrawPlatform",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) DrawPlatform(d *core.Drawing, pos core.Point, style PlatformStyle, opts RichOptions)",
              "doc": "DrawPlatform draws only the currently revealed glyphs and inline icons at pos\ninto d using platform text rendering, keeping the full wrapped layout stable.\n",
              "file": "pkg/text/typewriter.go",
              "line": 385
            },
            {
              "name": "Elapsed",
              "anchor": "Typewriter.Elapsed",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) Elapsed() float32",
              "doc": "Elapsed returns the total elapsed time in seconds accumulated via Update.\n",
              "file": "pkg/text/typewriter.go",
              "line": 354
            },
            {
              "name": "Progress",
              "anchor": "Typewriter.Progress",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) Progress() float32",
              "doc": "Progress returns the reveal fraction in [0, 1]. For empty text it returns 1.\n",
              "file": "pkg/text/typewriter.go",
              "line": 346
            },
            {
              "name": "Reset",
              "anchor": "Typewriter.Reset",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) Reset(rt RichText)",
              "doc": "Reset replaces the typewriter's RichText and resets reveal progress, timers,\nelapsed time, and completion state while preserving speed and callbacks.\n",
              "file": "pkg/text/typewriter.go",
              "line": 150
            },
            {
              "name": "RichText",
              "anchor": "Typewriter.RichText",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) RichText() RichText",
              "doc": "RichText returns the Typewriter's parsed RichText.\n",
              "file": "pkg/text/typewriter.go",
              "line": 314
            },
            {
              "name": "Skip",
              "anchor": "Typewriter.Skip",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) Skip()",
              "doc": "Skip immediately reveals all remaining units and invokes OnComplete once if\nit has not already fired.\n",
              "file": "pkg/text/typewriter.go",
              "line": 293
            },
            {
              "name": "TotalCount",
              "anchor": "Typewriter.TotalCount",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) TotalCount() int",
              "doc": "TotalCount returns the total number of revealable units (non-newline glyphs and icons).\n",
              "file": "pkg/text/typewriter.go",
              "line": 330
            },
            {
              "name": "Update",
              "anchor": "Typewriter.Update",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) Update(dt float32)",
              "doc": "Update advances the typewriter deterministically by dt seconds.\n\nElapsed time continues advancing after the text is fully revealed so active\nper-glyph effects ([wave], [shake]) keep animating. OnReveal fires once per\nnewly revealed unit and OnComplete fires strictly once when fully revealed.\n",
              "file": "pkg/text/typewriter.go",
              "line": 205
            },
            {
              "name": "VisibleCount",
              "anchor": "Typewriter.VisibleCount",
              "recv": "*Typewriter",
              "decl": "func (tw *Typewriter) VisibleCount() int",
              "doc": "VisibleCount returns the number of currently revealed units (glyphs and icons).\n",
              "file": "pkg/text/typewriter.go",
              "line": 322
            }
          ]
        },
        {
          "name": "WorldGlyph",
          "anchor": "WorldGlyph",
          "decl": "type WorldGlyph struct {\n\t// Glyph is the font's glyph.\n\tGlyph Glyph\n\t// Transform maps the glyph's atlas rectangle, in atlas pixels from its top left, into the drawing's points. For FacingFixed text it is the affine transform closest to the perspective at the glyph's center, which, for glyphs small on the screen, the perspective across one glyph cannot tell apart.\n\tTransform math2d.Affine\n}",
          "doc": "WorldGlyph is one glyph of world-space text projected onto the screen.\n",
          "file": "pkg/text/world.go",
          "line": 43,
          "members": [
            {
              "name": "Glyph",
              "anchor": "WorldGlyph.Glyph",
              "kind": "field",
              "doc": "Glyph is the font's glyph."
            },
            {
              "name": "Transform",
              "anchor": "WorldGlyph.Transform",
              "kind": "field",
              "doc": "Transform maps the glyph's atlas rectangle, in atlas pixels from its top left, into the drawing's points. For FacingFixed text it is the affine transform closest to the perspective at the glyph's center, which, for glyphs small on the screen, the perspective across one glyph cannot tell apart."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldLayout",
          "anchor": "WorldLayout",
          "decl": "type WorldLayout struct {\n\t// Depth is the anchor's depth from the camera's near plane (0) to its far plane (1), for drawing labels back to front: sort by Depth, highest first. For FacingFixed text whose anchor is behind the camera or past the far plane, it is the mean depth of the visible glyphs' centers.\n\tDepth float32\n\t// Glyphs are the glyphs that reach the viewport, in the text's order.\n\tGlyphs []WorldGlyph\n\t// Options are the WorldText's options the glyphs draw with.\n\tOptions SDFOptions\n}",
          "doc": "WorldLayout is world-space text projected onto the screen by SDFFont.LayoutWorld, ready for SDFFont.DrawLayout.\n",
          "file": "pkg/text/world.go",
          "line": 51,
          "members": [
            {
              "name": "Depth",
              "anchor": "WorldLayout.Depth",
              "kind": "field",
              "doc": "Depth is the anchor's depth from the camera's near plane (0) to its far plane (1), for drawing labels back to front: sort by Depth, highest first. For FacingFixed text whose anchor is behind the camera or past the far plane, it is the mean depth of the visible glyphs' centers."
            },
            {
              "name": "Glyphs",
              "anchor": "WorldLayout.Glyphs",
              "kind": "field",
              "doc": "Glyphs are the glyphs that reach the viewport, in the text's order."
            },
            {
              "name": "Options",
              "anchor": "WorldLayout.Options",
              "kind": "field",
              "doc": "Options are the WorldText's options the glyphs draw with."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldText",
          "anchor": "WorldText",
          "decl": "type WorldText struct {\n\t// Text is the text, with \"\\n\" between lines.\n\tText string\n\t// Pos is the anchor's position in the world.\n\tPos math3d.Vec3\n\t// Facing is how the text turns.\n\tFacing Facing\n\t// Rot orients FacingFixed text: its lines run along Rot's +X, its glyphs stand along +Y, and it reads from the +Z side. The zero Quat means the identity, text in the XY plane read from +Z.\n\tRot math3d.Quat\n\t// Size is the em size in world units, so the text shrinks with distance under a perspective camera.\n\tSize float32\n\t// ScreenSize, when > 0, makes FacingBillboard text keep an em of ScreenSize points at any distance, in place of Size; Options.MaxWidth is then in points.\n\tScreenSize float32\n\t// AnchorX and AnchorY are the point of the text's box that sits at Pos, as fractions of its width and height from its top left: (0, 0) is the top left, (0.5, 0.5) the center and (0.5, 1) the bottom middle. The box is [0, MaxWidth] wide when Options.MaxWidth > 0, else the widest line's, placed as Options.Align places a line at x.\n\tAnchorX, AnchorY float32\n\t// CullBackFace draws nothing of FacingFixed text seen from behind.\n\tCullBackFace bool\n\t// Options sets the color, outline, alignment, wrapping, opacity and pixel density; its Size is ignored and its MaxWidth is in world units.\n\tOptions SDFOptions\n}",
          "doc": "WorldText is text placed in a 3D world, drawn by SDFFont.DrawWorld.\n",
          "file": "pkg/text/world.go",
          "line": 21,
          "members": [
            {
              "name": "Text",
              "anchor": "WorldText.Text",
              "kind": "field",
              "doc": "Text is the text, with \"\\n\" between lines."
            },
            {
              "name": "Pos",
              "anchor": "WorldText.Pos",
              "kind": "field",
              "doc": "Pos is the anchor's position in the world."
            },
            {
              "name": "Facing",
              "anchor": "WorldText.Facing",
              "kind": "field",
              "doc": "Facing is how the text turns."
            },
            {
              "name": "Rot",
              "anchor": "WorldText.Rot",
              "kind": "field",
              "doc": "Rot orients FacingFixed text: its lines run along Rot's +X, its glyphs stand along +Y, and it reads from the +Z side. The zero Quat means the identity, text in the XY plane read from +Z."
            },
            {
              "name": "Size",
              "anchor": "WorldText.Size",
              "kind": "field",
              "doc": "Size is the em size in world units, so the text shrinks with distance under a perspective camera."
            },
            {
              "name": "ScreenSize",
              "anchor": "WorldText.ScreenSize",
              "kind": "field",
              "doc": "ScreenSize, when > 0, makes FacingBillboard text keep an em of ScreenSize points at any distance, in place of Size; Options.MaxWidth is then in points."
            },
            {
              "name": "AnchorX",
              "anchor": "WorldText.AnchorX",
              "kind": "field",
              "doc": "AnchorX and AnchorY are the point of the text's box that sits at Pos, as fractions of its width and height from its top left: (0, 0) is the top left, (0.5, 0.5) the center and (0.5, 1) the bottom middle. The box is [0, MaxWidth] wide when Options.MaxWidth > 0, else the widest line's, placed as Options.Align places a line at x."
            },
            {
              "name": "AnchorY",
              "anchor": "WorldText.AnchorY",
              "kind": "field",
              "doc": "AnchorX and AnchorY are the point of the text's box that sits at Pos, as fractions of its width and height from its top left: (0, 0) is the top left, (0.5, 0.5) the center and (0.5, 1) the bottom middle. The box is [0, MaxWidth] wide when Options.MaxWidth > 0, else the widest line's, placed as Options.Align places a line at x."
            },
            {
              "name": "CullBackFace",
              "anchor": "WorldText.CullBackFace",
              "kind": "field",
              "doc": "CullBackFace draws nothing of FacingFixed text seen from behind."
            },
            {
              "name": "Options",
              "anchor": "WorldText.Options",
              "kind": "field",
              "doc": "Options sets the color, outline, alignment, wrapping, opacity and pixel density; its Size is ignored and its MaxWidth is in world units."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tilemap",
      "name": "tilemap",
      "dir": "pkg/tilemap",
      "page": "pkg/tilemap",
      "synopsis": "Package tilemap draws tiled worlds, queries tile flags and rays against them, loads Tiled maps, and moves a 2D camera over the world.",
      "doc": "Package tilemap draws tiled worlds, queries tile flags and rays against them, loads Tiled maps, and moves a 2D camera over the world.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "MaskNorth",
              "anchor": "MaskNorth"
            },
            {
              "name": "MaskEast",
              "anchor": "MaskEast"
            },
            {
              "name": "MaskSouth",
              "anchor": "MaskSouth"
            },
            {
              "name": "MaskWest",
              "anchor": "MaskWest"
            },
            {
              "name": "MaskNorthEast",
              "anchor": "MaskNorthEast"
            },
            {
              "name": "MaskSouthEast",
              "anchor": "MaskSouthEast"
            },
            {
              "name": "MaskSouthWest",
              "anchor": "MaskSouthWest"
            },
            {
              "name": "MaskNorthWest",
              "anchor": "MaskNorthWest"
            }
          ],
          "decl": "const (\n\tMaskNorth     uint8 = 1 << 0\n\tMaskEast      uint8 = 1 << 1\n\tMaskSouth     uint8 = 1 << 2\n\tMaskWest      uint8 = 1 << 3\n\tMaskNorthEast uint8 = 1 << 4\n\tMaskSouthEast uint8 = 1 << 5\n\tMaskSouthWest uint8 = 1 << 6\n\tMaskNorthWest uint8 = 1 << 7\n)",
          "doc": "Bitmask constants for 4-bit cardinal and 8-bit corner-gated autotiling.\n",
          "file": "pkg/tilemap/autotile.go",
          "line": 6
        },
        {
          "idents": [
            {
              "name": "DefaultChunkSize",
              "anchor": "DefaultChunkSize"
            },
            {
              "name": "MinChunkSize",
              "anchor": "MinChunkSize"
            },
            {
              "name": "MaxChunkSize",
              "anchor": "MaxChunkSize"
            }
          ],
          "decl": "const (\n\t// DefaultChunkSize is the default power-of-two edge length (in tiles) for sparse chunked tile layers.\n\tDefaultChunkSize = 16\n\t// MinChunkSize is the smallest supported power-of-two edge length (in tiles) for a chunked tile layer.\n\tMinChunkSize = 2\n\t// MaxChunkSize is the largest supported power-of-two edge length (in tiles) for a chunked tile layer.\n\tMaxChunkSize = 256\n)",
          "doc": "",
          "file": "pkg/tilemap/chunk.go",
          "line": 11
        },
        {
          "idents": [
            {
              "name": "FlipHorizontal",
              "anchor": "FlipHorizontal"
            },
            {
              "name": "FlipVertical",
              "anchor": "FlipVertical"
            },
            {
              "name": "FlipDiagonal",
              "anchor": "FlipDiagonal"
            },
            {
              "name": "FlipMask",
              "anchor": "FlipMask"
            },
            {
              "name": "TileIDMask",
              "anchor": "TileIDMask"
            }
          ],
          "decl": "const (\n\t// FlipHorizontal mirrors a tile left to right (Tiled GID bit 31).\n\tFlipHorizontal uint32 = 0x80000000\n\t// FlipVertical mirrors a tile top to bottom (Tiled GID bit 30).\n\tFlipVertical uint32 = 0x40000000\n\t// FlipDiagonal swaps a tile's X and Y axes before horizontal and vertical flips (Tiled GID bit 29).\n\tFlipDiagonal uint32 = 0x20000000\n\t// FlipMask masks the three orthogonal Tiled flip bits from a raw GID.\n\tFlipMask uint32 = FlipHorizontal | FlipVertical | FlipDiagonal\n\t// TileIDMask masks the global tile ID from a raw GID, stripping flip and rotation bits.\n\tTileIDMask uint32 = 0x0FFFFFFF\n)",
          "doc": "",
          "file": "pkg/tilemap/tilemap.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "WangTop",
              "anchor": "WangTop"
            },
            {
              "name": "WangTopRight",
              "anchor": "WangTopRight"
            },
            {
              "name": "WangRight",
              "anchor": "WangRight"
            },
            {
              "name": "WangBottomRight",
              "anchor": "WangBottomRight"
            },
            {
              "name": "WangBottom",
              "anchor": "WangBottom"
            },
            {
              "name": "WangBottomLeft",
              "anchor": "WangBottomLeft"
            },
            {
              "name": "WangLeft",
              "anchor": "WangLeft"
            },
            {
              "name": "WangTopLeft",
              "anchor": "WangTopLeft"
            }
          ],
          "decl": "const (\n\tWangTop         = 0\n\tWangTopRight    = 1\n\tWangRight       = 2\n\tWangBottomRight = 3\n\tWangBottom      = 4\n\tWangBottomLeft  = 5\n\tWangLeft        = 6\n\tWangTopLeft     = 7\n)",
          "doc": "Clockwise indices into WangID, matching Tiled's wangid JSON array order.\n",
          "file": "pkg/tilemap/wang.go",
          "line": 44
        },
        {
          "idents": [
            {
              "name": "ChunkFormatVersion",
              "anchor": "ChunkFormatVersion"
            }
          ],
          "decl": "const ChunkFormatVersion = 1",
          "doc": "ChunkFormatVersion is the current schema version of the plain-text chunk YAML and JSON format.\n",
          "file": "pkg/tilemap/chunk_format.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "EllipseShapeSegments",
              "anchor": "EllipseShapeSegments"
            }
          ],
          "decl": "const EllipseShapeSegments = 16",
          "doc": "EllipseShapeSegments is the number of straight edges LoadTiled uses to approximate an ellipse a tileset draws on a tile as its collision shape.\n",
          "file": "pkg/tilemap/shapes.go",
          "line": 10
        },
        {
          "idents": [
            {
              "name": "MaxTilesetTiles",
              "anchor": "MaxTilesetTiles"
            }
          ],
          "decl": "const MaxTilesetTiles = 1 << 24",
          "doc": "MaxTilesetTiles is the most tiles one YAML tileset may define, its TileCount or the length of its Frames.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 32
        },
        {
          "idents": [
            {
              "name": "PropSortOriginY",
              "anchor": "PropSortOriginY"
            }
          ],
          "decl": "const PropSortOriginY = \"sort_origin_y\"",
          "doc": "PropSortOriginY is the tile custom property name for an explicit vertical Y-sort origin offset\n(in points) added to a tile's default bottom-edge sort line.\n\nNegative values move the sort line upward (for example into a tall tree's trunk); positive\nvalues move it downward. Lookup also accepts \"y_sort_origin\" and \"ysort_origin\" as aliases.\n",
          "file": "pkg/tilemap/ysort.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "TilesetFormatVersion",
              "anchor": "TilesetFormatVersion"
            }
          ],
          "decl": "const TilesetFormatVersion = 1",
          "doc": "TilesetFormatVersion is the schema version of the YAML tileset format (*.tileset.yaml) that ParseTileset reads and EncodeTileset writes.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "TilesetSchemaComment",
              "anchor": "TilesetSchemaComment"
            }
          ],
          "decl": "const TilesetSchemaComment = \"# yaml-language-server: $schema=\" + TilesetSchemaURL",
          "doc": "TilesetSchemaComment is the first line EncodeTileset writes: a YAML comment that points a YAML language server at TilesetSchemaURL. ParseTileset ignores it like any other comment.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 29
        },
        {
          "idents": [
            {
              "name": "TilesetSchemaURL",
              "anchor": "TilesetSchemaURL"
            }
          ],
          "decl": "const TilesetSchemaURL = \"https://game.nsgo.dev/schemas/tileset.v1.json\"",
          "doc": "TilesetSchemaURL is where the JSON Schema of version 1 tileset documents is published. EncodeTileset names it in TilesetSchemaComment on the first line of every file.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 26
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "ComputeMask4",
          "anchor": "ComputeMask4",
          "decl": "func ComputeMask4(match func(col, row int) bool, col, row int) uint8",
          "doc": "ComputeMask4 computes the 4-bit cardinal neighbor mask (N=1, E=2, S=4, W=8) at (col, row).\n",
          "file": "pkg/tilemap/autotile.go",
          "line": 45
        },
        {
          "name": "ComputeMask8",
          "anchor": "ComputeMask8",
          "decl": "func ComputeMask8(match func(col, row int) bool, col, row int) uint8",
          "doc": "ComputeMask8 computes the 8-bit corner-gated Wang/blob neighbor mask (47-tile blob) at (col, row).\n\nDiagonal bits (NE, SE, SW, NW) are only set when both adjacent cardinal neighbors also match.\n",
          "file": "pkg/tilemap/autotile.go",
          "line": 68
        },
        {
          "name": "EncodeChunk",
          "anchor": "EncodeChunk",
          "decl": "func EncodeChunk(c *Chunk, format ChunkFormat) ([]byte, error)",
          "doc": "EncodeChunk encodes c in format (ChunkFormatYAML or ChunkFormatJSON).\n",
          "file": "pkg/tilemap/chunk_stream.go",
          "line": 25
        },
        {
          "name": "EncodeChunkJSON",
          "anchor": "EncodeChunkJSON",
          "decl": "func EncodeChunkJSON(doc *ChunkDoc) ([]byte, error)",
          "doc": "EncodeChunkJSON validates doc and encodes it as deterministic indented JSON with a trailing newline.\n",
          "file": "pkg/tilemap/chunk_format.go",
          "line": 281
        },
        {
          "name": "EncodeChunkYAML",
          "anchor": "EncodeChunkYAML",
          "decl": "func EncodeChunkYAML(doc *ChunkDoc) ([]byte, error)",
          "doc": "EncodeChunkYAML validates doc and encodes it as deterministic 2-space YAML.\n",
          "file": "pkg/tilemap/chunk_format.go",
          "line": 210
        },
        {
          "name": "EncodeTiled",
          "anchor": "EncodeTiled",
          "decl": "func EncodeTiled(m *Tilemap) ([]byte, error)",
          "doc": "EncodeTiled encodes m as a deterministic, indented Tiled JSON (.tmj) document.\n\nAll tilesets (embedded inline), tile layers (dense or chunked), image layers, object layers,\ncustom properties, tile animations, Wang sets, and per-tile collision object groups\n(from Tileset.TileCollisions, or synthesized from Tileset.Shapes when no TileCollisions entry exists)\nare written in canonical order so round-tripping through LoadTiled and EncodeTiled preserves\nper-tile collision data and produces byte-identical output.\n",
          "file": "pkg/tilemap/tiled_encode.go",
          "line": 23
        },
        {
          "name": "EncodeTileset",
          "anchor": "EncodeTileset",
          "decl": "func EncodeTileset(doc *TilesetDoc) ([]byte, error)",
          "doc": "EncodeTileset validates doc and writes it as deterministic 2-space YAML, starting with TilesetSchemaComment. Keys come in a fixed order and maps in sorted key order, so the same tileset always gives the same bytes, and a file in that form parses and encodes back unchanged.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 423
        },
        {
          "name": "LoadLDtkAll",
          "anchor": "LoadLDtkAll",
          "decl": "func LoadLDtkAll(data []byte, resolveImage func(relPath string) core.ImageSource) (map[string]*Tilemap, error)",
          "doc": "LoadLDtkAll parses an LDtk JSON project and builds a Tilemap for every level, keyed by level identifier.\nFor Free and GridVania layouts, each Tilemap carries its world Origin (worldX, worldY) and Neighbours list.\nIts errors are *loaderr.Error values, as LoadLDtk's are.\n",
          "file": "pkg/tilemap/ldtk.go",
          "line": 100
        },
        {
          "name": "LoadLDtkAllWith",
          "anchor": "LoadLDtkAllWith",
          "decl": "func LoadLDtkAllWith(data []byte, opts LDtkOptions) (map[string]*Tilemap, error)",
          "doc": "LoadLDtkAllWith parses an LDtk JSON project with opts and builds a Tilemap for every level, keyed by level identifier.\n",
          "file": "pkg/tilemap/ldtk.go",
          "line": 105
        },
        {
          "name": "SortYSortTiles",
          "anchor": "SortYSortTiles",
          "decl": "func SortYSortTiles(tiles []YSortTile)",
          "doc": "SortYSortTiles sorts tiles in stable ascending SortY order without allocating.\n",
          "file": "pkg/tilemap/ysort.go",
          "line": 86
        },
        {
          "name": "TerrainMaskNeighbors",
          "anchor": "TerrainMaskNeighbors",
          "decl": "func TerrainMaskNeighbors(mask uint8) []string",
          "doc": "TerrainMaskNeighbors returns the canonical list of neighbor direction names for mask,\nor nil when mask is 0.\n",
          "file": "pkg/tilemap/autotile.go",
          "line": 192
        },
        {
          "name": "TerrainNeighborsMask",
          "anchor": "TerrainNeighborsMask",
          "decl": "func TerrainNeighborsMask(neighbors []string) (uint8, error)",
          "doc": "TerrainNeighborsMask converts a list of neighbor direction names to a bitmask,\nreturning an error on unknown or duplicate directions.\n",
          "file": "pkg/tilemap/autotile.go",
          "line": 207
        },
        {
          "name": "TilesetFrame",
          "anchor": "TilesetFrame",
          "decl": "func TilesetFrame(doc *TilesetDoc, atlas *sprite.Atlas, id int) (sprite.Frame, bool)",
          "doc": "TilesetFrame returns where local tile id of doc lies in the image it is drawn from: a rectangle of the grid image for an image tileset, or the frame of atlas, the atlas doc names, for an atlas tileset. It reports false for an ID outside the tileset, an atlas tileset with a nil atlas and a frame the atlas lacks. An editor's tile palette uses it to show a tileset's tiles.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 909
        },
        {
          "name": "ToggleTerrainMask",
          "anchor": "ToggleTerrainMask",
          "decl": "func ToggleTerrainMask(mode AutotileMode, mask, bit uint8) uint8",
          "doc": "ToggleTerrainMask toggles bit in mask while keeping the result valid for mode.\nIn Autotile4 diagonal bits are ignored and stripped.\nIn Autotile8 enabling a corner bit also enables its two adjacent cardinal edges,\nand disabling an edge bit clears any corner bits that depend on it.\n",
          "file": "pkg/tilemap/autotile.go",
          "line": 141
        },
        {
          "name": "ValidChunkSize",
          "anchor": "ValidChunkSize",
          "decl": "func ValidChunkSize(n int) bool",
          "doc": "ValidChunkSize reports whether n is a supported power-of-two chunk edge length in [MinChunkSize, MaxChunkSize].\n",
          "file": "pkg/tilemap/chunk.go",
          "line": 21
        },
        {
          "name": "ValidTerrainMask",
          "anchor": "ValidTerrainMask",
          "decl": "func ValidTerrainMask(mode AutotileMode, mask uint8) bool",
          "doc": "ValidTerrainMask reports whether mask is a valid neighbor bitmask for mode:\nfor Autotile4 only the four cardinal bits (N, E, S, W) may be set;\nfor Autotile8 each diagonal corner bit may only be set when both adjacent cardinal bits are also set.\n",
          "file": "pkg/tilemap/autotile.go",
          "line": 120
        },
        {
          "name": "ValidateChunkDoc",
          "anchor": "ValidateChunkDoc",
          "decl": "func ValidateChunkDoc(doc *ChunkDoc) error",
          "doc": "ValidateChunkDoc checks that doc conforms to the version 1 chunk schema.\n",
          "file": "pkg/tilemap/chunk_format.go",
          "line": 128
        },
        {
          "name": "ValidateTileset",
          "anchor": "ValidateTileset",
          "decl": "func ValidateTileset(doc *TilesetDoc) error",
          "doc": "ValidateTileset checks doc against the version 1 tileset schema: a positive tile size, exactly one of a grid image (with its columns and tile count) or an atlas (with its frames), tiles in ascending ID order within the tile count, scalar properties, well-formed shapes, animations of positive durations over existing tiles, and terrains whose tiles list valid, distinct neighbour sets. Its errors are *loaderr.Error values naming the field at fault.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 442
        }
      ],
      "types": [
        {
          "name": "AutotileMode",
          "anchor": "AutotileMode",
          "decl": "type AutotileMode int",
          "doc": "AutotileMode chooses between 4-bit cardinal (16-tile) and 8-bit corner-gated (47-tile) autotiling.\n",
          "file": "pkg/tilemap/autotile.go",
          "line": 18,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Autotile4",
                  "anchor": "Autotile4"
                },
                {
                  "name": "Autotile8",
                  "anchor": "Autotile8"
                }
              ],
              "decl": "const (\n\t// Autotile4 uses the 4 cardinal neighbors (N=1, E=2, S=4, W=8; 16 combinations).\n\tAutotile4 AutotileMode = iota\n\t// Autotile8 uses the 4 cardinal neighbors plus 4 corner-gated diagonal neighbors (47 combinations).\n\tAutotile8\n)",
              "doc": "",
              "file": "pkg/tilemap/autotile.go",
              "line": 20
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "AutotileSet",
          "anchor": "AutotileSet",
          "decl": "type AutotileSet struct {\n\tMode    AutotileMode\n\tTiles   map[uint8]uint32\n\tDefault uint32\n}",
          "doc": "AutotileSet maps autotile neighbor bitmasks to tile GIDs, falling back to Default when a mask has no entry in Tiles.\n",
          "file": "pkg/tilemap/autotile.go",
          "line": 28,
          "members": [
            {
              "name": "Mode",
              "anchor": "AutotileSet.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tiles",
              "anchor": "AutotileSet.Tiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Default",
              "anchor": "AutotileSet.Default",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ComputeMask",
              "anchor": "AutotileSet.ComputeMask",
              "recv": "AutotileSet",
              "decl": "func (s AutotileSet) ComputeMask(match func(col, row int) bool, col, row int) uint8",
              "doc": "ComputeMask computes the neighbor bitmask at (col, row) using s.Mode (ComputeMask4 for Autotile4, ComputeMask8 for Autotile8).\n",
              "file": "pkg/tilemap/autotile.go",
              "line": 106
            },
            {
              "name": "Tile",
              "anchor": "AutotileSet.Tile",
              "recv": "AutotileSet",
              "decl": "func (s AutotileSet) Tile(mask uint8) uint32",
              "doc": "Tile returns the GID mapped to mask, or s.Default when mask is not present in s.Tiles.\n",
              "file": "pkg/tilemap/autotile.go",
              "line": 35
            }
          ]
        },
        {
          "name": "Camera",
          "anchor": "Camera",
          "decl": "type Camera struct {\n\t// X and Y are the world point at the center of the view.\n\tX, Y float32\n\t// Zoom scales the world in the view; values <= 0 behave as 1.\n\tZoom float32\n\t// Rotation turns the camera clockwise in the world, in radians.\n\tRotation float32\n\t// Width and Height are the view's size in points.\n\tWidth, Height float32\n\t// Bounds, when non-nil, limits where Clamp and Follow let the visible view reach.\n\tBounds *core.Bounds\n\t// ShakeSeed seeds the deterministic shake offset; 0 uses a fixed default seed.\n\tShakeSeed uint64\n\t// contains filtered or unexported fields\n}",
          "doc": "Camera maps world coordinates to a view of size Width by Height centered on (X, Y), zoomed by Zoom and turned clockwise by Rotation.\n\nA zero or negative Zoom behaves as 1. When Bounds is set, Clamp and Follow keep the visible view inside it, centering any axis where the world is smaller than the view.\n",
          "file": "pkg/tilemap/camera.go",
          "line": 15,
          "members": [
            {
              "name": "X",
              "anchor": "Camera.X",
              "kind": "field",
              "doc": "X and Y are the world point at the center of the view."
            },
            {
              "name": "Y",
              "anchor": "Camera.Y",
              "kind": "field",
              "doc": "X and Y are the world point at the center of the view."
            },
            {
              "name": "Zoom",
              "anchor": "Camera.Zoom",
              "kind": "field",
              "doc": "Zoom scales the world in the view; values <= 0 behave as 1."
            },
            {
              "name": "Rotation",
              "anchor": "Camera.Rotation",
              "kind": "field",
              "doc": "Rotation turns the camera clockwise in the world, in radians."
            },
            {
              "name": "Width",
              "anchor": "Camera.Width",
              "kind": "field",
              "doc": "Width and Height are the view's size in points."
            },
            {
              "name": "Height",
              "anchor": "Camera.Height",
              "kind": "field",
              "doc": "Width and Height are the view's size in points."
            },
            {
              "name": "Bounds",
              "anchor": "Camera.Bounds",
              "kind": "field",
              "doc": "Bounds, when non-nil, limits where Clamp and Follow let the visible view reach."
            },
            {
              "name": "ShakeSeed",
              "anchor": "Camera.ShakeSeed",
              "kind": "field",
              "doc": "ShakeSeed seeds the deterministic shake offset; 0 uses a fixed default seed."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Camera.Apply",
              "recv": "*Camera",
              "decl": "func (c *Camera) Apply(d *core.Drawing)",
              "doc": "Apply multiplies d's transform by the world-to-view transform, including any active shake offset.\n",
              "file": "pkg/tilemap/camera.go",
              "line": 101
            },
            {
              "name": "Clamp",
              "anchor": "Camera.Clamp",
              "recv": "*Camera",
              "decl": "func (c *Camera) Clamp()",
              "doc": "Clamp keeps the camera's visible view inside Bounds when Bounds is non-nil. On any axis where Bounds is smaller than the view, it centers the camera on Bounds.\n",
              "file": "pkg/tilemap/camera.go",
              "line": 118
            },
            {
              "name": "Follow",
              "anchor": "Camera.Follow",
              "recv": "*Camera",
              "decl": "func (c *Camera) Follow(target core.Point, smoothing float32, dt time.Duration)",
              "doc": "Follow moves the camera toward target with exponential smoothing over a fixed Loop step dt, then clamps to Bounds if set.\n\nA smoothing <= 0 snaps directly to target. Higher positive values converge faster (factor 1 - exp(-smoothing*dt)).\n",
              "file": "pkg/tilemap/camera.go",
              "line": 159
            },
            {
              "name": "Parallax",
              "anchor": "Camera.Parallax",
              "recv": "*Camera",
              "decl": "func (c *Camera) Parallax(factorX, factorY float32) Camera",
              "doc": "Parallax returns a Camera with c's zoom, rotation, and viewport size whose position (including any active shake offset) is scaled by factorX and factorY.\n",
              "file": "pkg/tilemap/camera.go",
              "line": 216
            },
            {
              "name": "Shake",
              "anchor": "Camera.Shake",
              "recv": "*Camera",
              "decl": "func (c *Camera) Shake(intensity float32, duration time.Duration)",
              "doc": "Shake starts a deterministic screen shake with maximum displacement intensity in world points that decays to zero over duration.\n\nA non-positive intensity or duration cancels any active shake.\n",
              "file": "pkg/tilemap/camera.go",
              "line": 174
            },
            {
              "name": "ShakeOffset",
              "anchor": "Camera.ShakeOffset",
              "recv": "*Camera",
              "decl": "func (c *Camera) ShakeOffset() core.Point",
              "doc": "ShakeOffset returns the current screen shake displacement in world points, or (0, 0) when idle.\n",
              "file": "pkg/tilemap/camera.go",
              "line": 211
            },
            {
              "name": "Update",
              "anchor": "Camera.Update",
              "recv": "*Camera",
              "decl": "func (c *Camera) Update(dt time.Duration)",
              "doc": "Update advances an active screen shake by dt, returning the shake offset to (0, 0) once its duration elapses.\n",
              "file": "pkg/tilemap/camera.go",
              "line": 194
            },
            {
              "name": "ViewToWorld",
              "anchor": "Camera.ViewToWorld",
              "recv": "*Camera",
              "decl": "func (c *Camera) ViewToWorld(p core.Point) core.Point",
              "doc": "ViewToWorld converts a point in the view to its position in world coordinates.\n",
              "file": "pkg/tilemap/camera.go",
              "line": 73
            },
            {
              "name": "VisibleBounds",
              "anchor": "Camera.VisibleBounds",
              "recv": "*Camera",
              "decl": "func (c *Camera) VisibleBounds() core.Bounds",
              "doc": "VisibleBounds returns the axis-aligned world rectangle covering all four corners of the view at the camera's current position, zoom, rotation and shake offset.\n",
              "file": "pkg/tilemap/camera.go",
              "line": 90
            },
            {
              "name": "WorldToView",
              "anchor": "Camera.WorldToView",
              "recv": "*Camera",
              "decl": "func (c *Camera) WorldToView(p core.Point) core.Point",
              "doc": "WorldToView converts a point in world coordinates to its position in the view.\n",
              "file": "pkg/tilemap/camera.go",
              "line": 56
            }
          ]
        },
        {
          "name": "Chunk",
          "anchor": "Chunk",
          "decl": "type Chunk struct {\n\tCoord ChunkCoord\n\tSize  int\n\tTiles []uint32\n\t// Dirty reports whether this chunk's tiles changed since its static cache was last baked.\n\tDirty bool\n\t// Modified reports whether this chunk's tiles were edited after it was generated or loaded.\n\tModified bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Chunk holds one fixed power-of-two square (Size × Size, row-major) of raw tile GIDs inside a chunked TileLayer.\n",
          "file": "pkg/tilemap/chunk.go",
          "line": 70,
          "members": [
            {
              "name": "Coord",
              "anchor": "Chunk.Coord",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Size",
              "anchor": "Chunk.Size",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tiles",
              "anchor": "Chunk.Tiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dirty",
              "anchor": "Chunk.Dirty",
              "kind": "field",
              "doc": "Dirty reports whether this chunk's tiles changed since its static cache was last baked."
            },
            {
              "name": "Modified",
              "anchor": "Chunk.Modified",
              "kind": "field",
              "doc": "Modified reports whether this chunk's tiles were edited after it was generated or loaded."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ChunkFromDoc",
              "anchor": "ChunkFromDoc",
              "decl": "func ChunkFromDoc(doc *ChunkDoc) (*Chunk, error)",
              "doc": "ChunkFromDoc validates doc and decodes it into a clean Chunk (Dirty=true, Modified=false).\n",
              "file": "pkg/tilemap/chunk_format.go",
              "line": 96
            },
            {
              "name": "DecodeChunk",
              "anchor": "DecodeChunk",
              "decl": "func DecodeChunk(data []byte, format ChunkFormat) (*Chunk, error)",
              "doc": "DecodeChunk decodes raw YAML or JSON bytes in format into a clean Chunk (Dirty=true, Modified=false).\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 41
            },
            {
              "name": "NewChunk",
              "anchor": "NewChunk",
              "decl": "func NewChunk(coord ChunkCoord, size int) *Chunk",
              "doc": "NewChunk allocates an empty Size × Size chunk at coord. Non-positive or non-power-of-two sizes are normalized into [MinChunkSize, MaxChunkSize] (defaulting to DefaultChunkSize).\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 84
            }
          ],
          "methods": [
            {
              "name": "Cache",
              "anchor": "Chunk.Cache",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Cache() *LayerCache",
              "doc": "Cache returns this chunk's static LayerCache, or nil if the chunk has not been baked.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 150
            },
            {
              "name": "Clone",
              "anchor": "Chunk.Clone",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Clone() *Chunk",
              "doc": "Clone returns a deep copy of c's tile data and metadata without copying its static GPU/RGBA cache.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 158
            },
            {
              "name": "Empty",
              "anchor": "Chunk.Empty",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Empty() bool",
              "doc": "Empty reports whether every cell in c has GID 0.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 137
            },
            {
              "name": "SetTile",
              "anchor": "Chunk.SetTile",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) SetTile(lx, ly int, gid uint32) bool",
              "doc": "SetTile writes gid at chunk-local (lx, ly) and reports whether the cell changed.\nChanging a cell marks the chunk both Dirty and Modified and invalidates its static cache.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 108
            },
            {
              "name": "TileAt",
              "anchor": "Chunk.TileAt",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) TileAt(lx, ly int) uint32",
              "doc": "TileAt returns the raw GID (including flip flags) at chunk-local (lx, ly), or 0 if out of range.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 95
            },
            {
              "name": "ToDoc",
              "anchor": "Chunk.ToDoc",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) ToDoc() *ChunkDoc",
              "doc": "ToDoc converts c into its deterministic ChunkDoc representation.\nReturns nil if c is nil.\n",
              "file": "pkg/tilemap/chunk_format.go",
              "line": 39
            }
          ]
        },
        {
          "name": "ChunkCoord",
          "anchor": "ChunkCoord",
          "decl": "type ChunkCoord struct {\n\tX, Y int\n}",
          "doc": "ChunkCoord identifies one sparse chunk in chunk-grid coordinates. Both X and Y may be negative.\n",
          "file": "pkg/tilemap/chunk.go",
          "line": 47,
          "members": [
            {
              "name": "X",
              "anchor": "ChunkCoord.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ChunkCoord.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "TileToChunk",
              "anchor": "TileToChunk",
              "decl": "func TileToChunk(col, row, chunkSize int) (coord ChunkCoord, lx, ly int)",
              "doc": "TileToChunk converts a world tile coordinate (col, row) into its chunk coordinate and chunk-local (lx, ly) offset\nfor a power-of-two chunkSize (invalid chunkSize falls back to DefaultChunkSize).\n\nNegative tile coordinates floor toward negative infinity, so local coordinates are always in [0, chunkSize).\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 62
            }
          ],
          "methods": []
        },
        {
          "name": "ChunkDoc",
          "anchor": "ChunkDoc",
          "decl": "type ChunkDoc struct {\n\t// Version is the schema version; must be 1.\n\tVersion int `yaml:\"version\" json:\"version\"`\n\t// X is the chunk's X coordinate in chunk-grid space (may be negative).\n\tX int `yaml:\"x\" json:\"x\"`\n\t// Y is the chunk's Y coordinate in chunk-grid space (may be negative).\n\tY int `yaml:\"y\" json:\"y\"`\n\t// Size is the power-of-two chunk edge length in tiles.\n\tSize int `yaml:\"size\" json:\"size\"`\n\t// Runs holds row-major run-length encoded raw tile GIDs (including flip bits),\n\t// formatted as \"gid\" (count 1) or \"gid*count\" (count > 1), whose counts sum to Size*Size.\n\tRuns []string `yaml:\"runs\" json:\"runs\"`\n}",
          "doc": "ChunkDoc is the versioned plain-text representation of one sparse tilemap chunk,\nsuitable for deterministic YAML or JSON persistence.\n",
          "file": "pkg/tilemap/chunk_format.go",
          "line": 23,
          "members": [
            {
              "name": "Version",
              "anchor": "ChunkDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; must be 1."
            },
            {
              "name": "X",
              "anchor": "ChunkDoc.X",
              "kind": "field",
              "doc": "X is the chunk's X coordinate in chunk-grid space (may be negative)."
            },
            {
              "name": "Y",
              "anchor": "ChunkDoc.Y",
              "kind": "field",
              "doc": "Y is the chunk's Y coordinate in chunk-grid space (may be negative)."
            },
            {
              "name": "Size",
              "anchor": "ChunkDoc.Size",
              "kind": "field",
              "doc": "Size is the power-of-two chunk edge length in tiles."
            },
            {
              "name": "Runs",
              "anchor": "ChunkDoc.Runs",
              "kind": "field",
              "doc": "Runs holds row-major run-length encoded raw tile GIDs (including flip bits),\nformatted as \"gid\" (count 1) or \"gid*count\" (count > 1), whose counts sum to Size*Size."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DecodeChunkJSON",
              "anchor": "DecodeChunkJSON",
              "decl": "func DecodeChunkJSON(data []byte) (*ChunkDoc, error)",
              "doc": "DecodeChunkJSON decodes and validates a JSON ChunkDoc, refusing unknown fields and trailing data.\nErrors are returned as *loaderr.Error values.\n",
              "file": "pkg/tilemap/chunk_format.go",
              "line": 294
            },
            {
              "name": "DecodeChunkYAML",
              "anchor": "DecodeChunkYAML",
              "decl": "func DecodeChunkYAML(data []byte) (*ChunkDoc, error)",
              "doc": "DecodeChunkYAML decodes and validates a YAML ChunkDoc, refusing unknown fields and trailing documents.\nErrors are returned as *loaderr.Error values.\n",
              "file": "pkg/tilemap/chunk_format.go",
              "line": 229
            }
          ],
          "methods": []
        },
        {
          "name": "ChunkFormat",
          "anchor": "ChunkFormat",
          "decl": "type ChunkFormat int",
          "doc": "ChunkFormat selects the plain-text encoding used when persisting modified chunks.\n",
          "file": "pkg/tilemap/chunk_stream.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ChunkFormatYAML",
                  "anchor": "ChunkFormatYAML"
                },
                {
                  "name": "ChunkFormatJSON",
                  "anchor": "ChunkFormatJSON"
                }
              ],
              "decl": "const (\n\t// ChunkFormatYAML encodes persisted chunks as deterministic YAML (default).\n\tChunkFormatYAML ChunkFormat = iota\n\t// ChunkFormatJSON encodes persisted chunks as deterministic JSON.\n\tChunkFormatJSON\n)",
              "doc": "",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 17
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChunkStore",
          "anchor": "ChunkStore",
          "decl": "type ChunkStore interface {\n\tLoadChunk(coord ChunkCoord) (data []byte, found bool, err error)\n\tSaveChunk(coord ChunkCoord, data []byte) error\n}",
          "doc": "ChunkStore loads and saves serialized plain-text chunk documents keyed by ChunkCoord.\nImplementations used with concurrent loaders (such as world3d.TilemapStreamer with Workers > 0) must be safe for concurrent use.\n",
          "file": "pkg/tilemap/chunk_stream.go",
          "line": 62,
          "members": [
            {
              "name": "LoadChunk",
              "anchor": "ChunkStore.LoadChunk",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "SaveChunk",
              "anchor": "ChunkStore.SaveChunk",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChunkStream",
          "anchor": "ChunkStream",
          "decl": "type ChunkStream struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ChunkStream streams sparse chunks around a moving 2D world position with hysteresis unloading,\nper-update load budgets, procedural generation, and deterministic YAML/JSON persistence of modified chunks.\n",
          "file": "pkg/tilemap/chunk_stream.go",
          "line": 253,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewChunkStream",
              "anchor": "NewChunkStream",
              "decl": "func NewChunkStream(cfg ChunkStreamConfig) *ChunkStream",
              "doc": "NewChunkStream constructs a ChunkStream from cfg.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 261
            }
          ],
          "methods": [
            {
              "name": "CenterChunk",
              "anchor": "ChunkStream.CenterChunk",
              "recv": "*ChunkStream",
              "decl": "func (s *ChunkStream) CenterChunk(worldPos core.Point) ChunkCoord",
              "doc": "CenterChunk returns the ChunkCoord containing worldPos in s's layer.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 283
            },
            {
              "name": "Close",
              "anchor": "ChunkStream.Close",
              "recv": "*ChunkStream",
              "decl": "func (s *ChunkStream) Close() error",
              "doc": "Close saves all loaded modified chunks and unloads every chunk from the layer.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 483
            },
            {
              "name": "LoadOrGenerateChunk",
              "anchor": "ChunkStream.LoadOrGenerateChunk",
              "recv": "*ChunkStream",
              "decl": "func (s *ChunkStream) LoadOrGenerateChunk(coord ChunkCoord) (*Chunk, error)",
              "doc": "LoadOrGenerateChunk restores coord from Store if present, or otherwise allocates a new Chunk and runs Generator.\nThe returned Chunk always has Dirty=true and Modified=false.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 410
            },
            {
              "name": "LoadedCount",
              "anchor": "ChunkStream.LoadedCount",
              "recv": "*ChunkStream",
              "decl": "func (s *ChunkStream) LoadedCount() int",
              "doc": "LoadedCount returns the number of currently loaded chunks in the streamed layer.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 507
            },
            {
              "name": "SaveChunk",
              "anchor": "ChunkStream.SaveChunk",
              "recv": "*ChunkStream",
              "decl": "func (s *ChunkStream) SaveChunk(ch *Chunk) error",
              "doc": "SaveChunk encodes ch in s's configured format and writes it to Store, clearing ch.Modified on success.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 449
            },
            {
              "name": "SaveModified",
              "anchor": "ChunkStream.SaveModified",
              "recv": "*ChunkStream",
              "decl": "func (s *ChunkStream) SaveModified() error",
              "doc": "SaveModified persists every currently loaded modified chunk in deterministic (Y, X) order.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 465
            },
            {
              "name": "Update",
              "anchor": "ChunkStream.Update",
              "recv": "*ChunkStream",
              "decl": "func (s *ChunkStream) Update(worldPos core.Point)",
              "doc": "Update advances streaming for worldPos:\n 1. Unloads loaded chunks beyond UnloadRadius (saving modified chunks to Store first).\n 2. Loads from Store or generates missing chunks within LoadRadius (closest first), up to MaxLoadsPerUpdate.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 324
            }
          ]
        },
        {
          "name": "ChunkStreamConfig",
          "anchor": "ChunkStreamConfig",
          "decl": "type ChunkStreamConfig struct {\n\t// Map is the Tilemap owning LayerIndex.\n\tMap *Tilemap\n\t// LayerIndex selects the chunked TileLayer inside Map.Layers.\n\tLayerIndex int\n\t// LoadRadius is the Chebyshev chunk radius around the center chunk to keep loaded.\n\tLoadRadius int\n\t// UnloadRadius is the Chebyshev chunk radius beyond which loaded chunks are unloaded.\n\t// Defaults to LoadRadius + 1 when smaller than LoadRadius.\n\tUnloadRadius int\n\t// MaxLoadsPerUpdate caps how many missing chunks are loaded or generated per Update call (<= 0 means unlimited).\n\tMaxLoadsPerUpdate int\n\t// Format selects ChunkFormatYAML (default) or ChunkFormatJSON when saving and restoring modified chunks.\n\tFormat ChunkFormat\n\t// Store persists modified chunks on unload and restores them on reload before invoking Generator.\n\tStore ChunkStore\n\t// Generator populates a freshly allocated chunk when Store has no saved entry for coord.\n\tGenerator func(coord ChunkCoord, chunk *Chunk) error\n\t// OnLoad is called after a chunk is loaded or generated and installed into the layer.\n\tOnLoad func(coord ChunkCoord, chunk *Chunk)\n\t// OnUnload is called after a chunk is saved (if modified) and removed from the layer.\n\tOnUnload func(coord ChunkCoord, chunk *Chunk)\n\t// OnError is called when loading, generating, or saving a chunk fails.\n\tOnError func(coord ChunkCoord, err error)\n}",
          "doc": "ChunkStreamConfig configures a synchronous ChunkStream for one chunked TileLayer.\nFor multi-threaded background chunk loading on top of world3d.ChunkStreamer, see world3d.NewTilemapStreamer.\n",
          "file": "pkg/tilemap/chunk_stream.go",
          "line": 225,
          "members": [
            {
              "name": "Map",
              "anchor": "ChunkStreamConfig.Map",
              "kind": "field",
              "doc": "Map is the Tilemap owning LayerIndex."
            },
            {
              "name": "LayerIndex",
              "anchor": "ChunkStreamConfig.LayerIndex",
              "kind": "field",
              "doc": "LayerIndex selects the chunked TileLayer inside Map.Layers."
            },
            {
              "name": "LoadRadius",
              "anchor": "ChunkStreamConfig.LoadRadius",
              "kind": "field",
              "doc": "LoadRadius is the Chebyshev chunk radius around the center chunk to keep loaded."
            },
            {
              "name": "UnloadRadius",
              "anchor": "ChunkStreamConfig.UnloadRadius",
              "kind": "field",
              "doc": "UnloadRadius is the Chebyshev chunk radius beyond which loaded chunks are unloaded.\nDefaults to LoadRadius + 1 when smaller than LoadRadius."
            },
            {
              "name": "MaxLoadsPerUpdate",
              "anchor": "ChunkStreamConfig.MaxLoadsPerUpdate",
              "kind": "field",
              "doc": "MaxLoadsPerUpdate caps how many missing chunks are loaded or generated per Update call (<= 0 means unlimited)."
            },
            {
              "name": "Format",
              "anchor": "ChunkStreamConfig.Format",
              "kind": "field",
              "doc": "Format selects ChunkFormatYAML (default) or ChunkFormatJSON when saving and restoring modified chunks."
            },
            {
              "name": "Store",
              "anchor": "ChunkStreamConfig.Store",
              "kind": "field",
              "doc": "Store persists modified chunks on unload and restores them on reload before invoking Generator."
            },
            {
              "name": "Generator",
              "anchor": "ChunkStreamConfig.Generator",
              "kind": "field",
              "doc": "Generator populates a freshly allocated chunk when Store has no saved entry for coord."
            },
            {
              "name": "OnLoad",
              "anchor": "ChunkStreamConfig.OnLoad",
              "kind": "field",
              "doc": "OnLoad is called after a chunk is loaded or generated and installed into the layer."
            },
            {
              "name": "OnUnload",
              "anchor": "ChunkStreamConfig.OnUnload",
              "kind": "field",
              "doc": "OnUnload is called after a chunk is saved (if modified) and removed from the layer."
            },
            {
              "name": "OnError",
              "anchor": "ChunkStreamConfig.OnError",
              "kind": "field",
              "doc": "OnError is called when loading, generating, or saving a chunk fails."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DirChunkStore",
          "anchor": "DirChunkStore",
          "decl": "type DirChunkStore struct {\n\tDir    string\n\tFormat ChunkFormat\n\t// contains filtered or unexported fields\n}",
          "doc": "DirChunkStore is a directory-backed ChunkStore that saves each chunk as a plain-text file\nnamed \"chunk_<x>_<y>.yaml\" (or \".json\" when Format is ChunkFormatJSON).\n",
          "file": "pkg/tilemap/chunk_stream.go",
          "line": 149,
          "members": [
            {
              "name": "Dir",
              "anchor": "DirChunkStore.Dir",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Format",
              "anchor": "DirChunkStore.Format",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDirChunkStore",
              "anchor": "NewDirChunkStore",
              "decl": "func NewDirChunkStore(dir string, format ChunkFormat) *DirChunkStore",
              "doc": "NewDirChunkStore constructs a DirChunkStore rooted at dir with the given plain-text format.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 157
            }
          ],
          "methods": [
            {
              "name": "LoadChunk",
              "anchor": "DirChunkStore.LoadChunk",
              "recv": "*DirChunkStore",
              "decl": "func (s *DirChunkStore) LoadChunk(coord ChunkCoord) ([]byte, bool, error)",
              "doc": "LoadChunk reads coord's file from s.Dir, returning found=false if the file does not exist.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 171
            },
            {
              "name": "Path",
              "anchor": "DirChunkStore.Path",
              "recv": "*DirChunkStore",
              "decl": "func (s *DirChunkStore) Path(coord ChunkCoord) string",
              "doc": "Path returns the file path for coord inside s.Dir.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 162
            },
            {
              "name": "SaveChunk",
              "anchor": "DirChunkStore.SaveChunk",
              "recv": "*DirChunkStore",
              "decl": "func (s *DirChunkStore) SaveChunk(coord ChunkCoord, data []byte) error",
              "doc": "SaveChunk atomically writes data to coord's file inside s.Dir, creating s.Dir if needed.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 188
            }
          ]
        },
        {
          "name": "ImageLayer",
          "anchor": "ImageLayer",
          "decl": "type ImageLayer struct {\n\tName       string\n\tImage      core.ImageSource\n\tWidth      float32\n\tHeight     float32\n\tOffsetX    float32\n\tOffsetY    float32\n\tParallaxX  float32\n\tParallaxY  float32\n\tRepeatX    bool\n\tRepeatY    bool\n\tOpacity    float32\n\tTintColor  core.Color\n\tTinted     bool\n\tVisible    bool\n\tProperties Properties\n}",
          "doc": "ImageLayer is an image layer (such as a sky, parallax backdrop, or foreground overlay) drawn in map layer order.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 455,
          "members": [
            {
              "name": "Name",
              "anchor": "ImageLayer.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Image",
              "anchor": "ImageLayer.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "ImageLayer.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "ImageLayer.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetX",
              "anchor": "ImageLayer.OffsetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetY",
              "anchor": "ImageLayer.OffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParallaxX",
              "anchor": "ImageLayer.ParallaxX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParallaxY",
              "anchor": "ImageLayer.ParallaxY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RepeatX",
              "anchor": "ImageLayer.RepeatX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RepeatY",
              "anchor": "ImageLayer.RepeatY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Opacity",
              "anchor": "ImageLayer.Opacity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TintColor",
              "anchor": "ImageLayer.TintColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tinted",
              "anchor": "ImageLayer.Tinted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visible",
              "anchor": "ImageLayer.Visible",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "ImageLayer.Properties",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LDtkOptions",
          "anchor": "LDtkOptions",
          "decl": "type LDtkOptions struct {\n\t// ResolveImage maps an LDtk tileset relative path into an ImageSource.\n\t// When nil, core.ImageSource{URI: relPath} is used.\n\tResolveImage func(relPath string) core.ImageSource\n\t// IntGridFlags maps LDtk IntGrid value identifiers or IntGrid value group identifiers\n\t// (case-insensitive) to TileFlags, overriding the built-in heuristic.\n\t// Mapping a name to 0 explicitly marks matching IntGrid cells non-colliding.\n\tIntGridFlags map[string]TileFlags\n\t// IntGridValueFlags maps positive numeric LDtk IntGrid values (1, 2, ...) directly to TileFlags,\n\t// taking precedence over IntGridFlags and the built-in heuristic.\n\t// Mapping a value to 0 explicitly marks matching IntGrid cells non-colliding.\n\tIntGridValueFlags map[int]TileFlags\n}",
          "doc": "LDtkOptions configures LoadLDtkWith, LoadLDtkAllWith, and LoadLDtkWorldWith.\n",
          "file": "pkg/tilemap/ldtk.go",
          "line": 26,
          "members": [
            {
              "name": "ResolveImage",
              "anchor": "LDtkOptions.ResolveImage",
              "kind": "field",
              "doc": "ResolveImage maps an LDtk tileset relative path into an ImageSource.\nWhen nil, core.ImageSource{URI: relPath} is used."
            },
            {
              "name": "IntGridFlags",
              "anchor": "LDtkOptions.IntGridFlags",
              "kind": "field",
              "doc": "IntGridFlags maps LDtk IntGrid value identifiers or IntGrid value group identifiers\n(case-insensitive) to TileFlags, overriding the built-in heuristic.\nMapping a name to 0 explicitly marks matching IntGrid cells non-colliding."
            },
            {
              "name": "IntGridValueFlags",
              "anchor": "LDtkOptions.IntGridValueFlags",
              "kind": "field",
              "doc": "IntGridValueFlags maps positive numeric LDtk IntGrid values (1, 2, ...) directly to TileFlags,\ntaking precedence over IntGridFlags and the built-in heuristic.\nMapping a value to 0 explicitly marks matching IntGrid cells non-colliding."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LayerCache",
          "anchor": "LayerCache",
          "decl": "type LayerCache struct {\n\tPixels  *image.RGBA\n\tSource  core.ImageSource\n\tOriginX float32\n\tOriginY float32\n\tWidth   float32\n\tHeight  float32\n\tDirty   bool\n\tVersion uint64\n}",
          "doc": "LayerCache holds a static tile layer baked into a premultiplied RGBA pixel buffer so DrawLayer can emit a single DrawImageFrom op.\n",
          "file": "pkg/tilemap/cache.go",
          "line": 13,
          "members": [
            {
              "name": "Pixels",
              "anchor": "LayerCache.Pixels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Source",
              "anchor": "LayerCache.Source",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OriginX",
              "anchor": "LayerCache.OriginX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OriginY",
              "anchor": "LayerCache.OriginY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "LayerCache.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "LayerCache.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dirty",
              "anchor": "LayerCache.Dirty",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "LayerCache.Version",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LevelNeighbour",
          "anchor": "LevelNeighbour",
          "decl": "type LevelNeighbour struct {\n\t// Identifier is the neighbour level's identifier, resolved from the world's level list when available.\n\tIdentifier string\n\t// IID is the neighbour level's LDtk instance ID (levelIid), when present.\n\tIID string\n\t// UID is the neighbour level's numeric LDtk UID (levelUid), when present.\n\tUID int\n\t// Dir is the direction from this level to the neighbour:\n\t// \"n\", \"s\", \"e\", \"w\", \"ne\", \"nw\", \"se\", \"sw\", \"o\" (overlapping), \"<\" (lower depth), or \">\" (higher depth).\n\tDir string\n}",
          "doc": "LevelNeighbour describes one adjacent or overlapping level in a multi-level world (such as an LDtk project).\n",
          "file": "pkg/tilemap/ldtk.go",
          "line": 13,
          "members": [
            {
              "name": "Identifier",
              "anchor": "LevelNeighbour.Identifier",
              "kind": "field",
              "doc": "Identifier is the neighbour level's identifier, resolved from the world's level list when available."
            },
            {
              "name": "IID",
              "anchor": "LevelNeighbour.IID",
              "kind": "field",
              "doc": "IID is the neighbour level's LDtk instance ID (levelIid), when present."
            },
            {
              "name": "UID",
              "anchor": "LevelNeighbour.UID",
              "kind": "field",
              "doc": "UID is the neighbour level's numeric LDtk UID (levelUid), when present."
            },
            {
              "name": "Dir",
              "anchor": "LevelNeighbour.Dir",
              "kind": "field",
              "doc": "Dir is the direction from this level to the neighbour:\n\"n\", \"s\", \"e\", \"w\", \"ne\", \"nw\", \"se\", \"sw\", \"o\" (overlapping), \"<\" (lower depth), or \">\" (higher depth)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LevelWorld",
          "anchor": "LevelWorld",
          "decl": "type LevelWorld struct {\n\t// Name is the world identifier (for multi-world LDtk projects) or empty.\n\tName string\n\t// Layout is the world layout (\"Free\", \"GridVania\", or \"Tiled\").\n\tLayout string\n\t// Levels lists every level in deterministic world order.\n\tLevels []WorldLevel\n}",
          "doc": "LevelWorld holds the layout of a multi-level 2D world loaded from an LDtk project or a Tiled .world file.\n",
          "file": "pkg/tilemap/world.go",
          "line": 34,
          "members": [
            {
              "name": "Name",
              "anchor": "LevelWorld.Name",
              "kind": "field",
              "doc": "Name is the world identifier (for multi-world LDtk projects) or empty."
            },
            {
              "name": "Layout",
              "anchor": "LevelWorld.Layout",
              "kind": "field",
              "doc": "Layout is the world layout (\"Free\", \"GridVania\", or \"Tiled\")."
            },
            {
              "name": "Levels",
              "anchor": "LevelWorld.Levels",
              "kind": "field",
              "doc": "Levels lists every level in deterministic world order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadLDtkWorld",
              "anchor": "LoadLDtkWorld",
              "decl": "func LoadLDtkWorld(data []byte, worldIdentifier string, resolveImage func(relPath string) core.ImageSource) (*LevelWorld, error)",
              "doc": "LoadLDtkWorld parses an LDtk JSON project (.ldtk) into a LevelWorld whose levels carry their world Origin, pixel Bounds, WorldDepth, and Neighbours list, and load lazily into *Tilemap values on demand.\n\nAn empty worldIdentifier selects the project's top-level levels (or the sole world when multi-worlds has one entry); a multi-world project with multiple worlds names the world by its identifier.\nThe world's layout must be Free or GridVania (or omitted, defaulting to Free); LinearHorizontal and LinearVertical layouts are refused because they assign no 2D world coordinates.\n\nIts errors are *loaderr.Error values, as LoadLDtk's are.\n",
              "file": "pkg/tilemap/ldtk.go",
              "line": 147
            },
            {
              "name": "LoadLDtkWorldWith",
              "anchor": "LoadLDtkWorldWith",
              "decl": "func LoadLDtkWorldWith(data []byte, worldIdentifier string, opts LDtkOptions) (*LevelWorld, error)",
              "doc": "LoadLDtkWorldWith parses an LDtk JSON project (.ldtk) into a LevelWorld using opts (including custom IntGrid-to-TileFlags mappings).\n",
              "file": "pkg/tilemap/ldtk.go",
              "line": 152
            },
            {
              "name": "LoadTiledWorld",
              "anchor": "LoadTiledWorld",
              "decl": "func LoadTiledWorld(data []byte, loader TiledWorldLoader) (*LevelWorld, error)",
              "doc": "LoadTiledWorld parses a Tiled .world JSON file and builds a LevelWorld whose levels load lazily through loader.\n\nEach loaded *Tilemap has its Origin set to the map's (x, y) placement from the .world file.\nWhen an explicit map entry omits width or height, LoadTiledWorld reads the map's header via loader.LoadMap\nto populate exact world bounds for streaming; entries with explicit dimensions remain completely lazy until loaded.\n",
              "file": "pkg/tilemap/tiled_world.go",
              "line": 273
            }
          ],
          "methods": [
            {
              "name": "Level",
              "anchor": "LevelWorld.Level",
              "recv": "*LevelWorld",
              "decl": "func (w *LevelWorld) Level(id string) *WorldLevel",
              "doc": "Level returns the first WorldLevel with the given ID, or nil if none matches.\n",
              "file": "pkg/tilemap/world.go",
              "line": 44
            },
            {
              "name": "LevelAt",
              "anchor": "LevelWorld.LevelAt",
              "recv": "*LevelWorld",
              "decl": "func (w *LevelWorld) LevelAt(p core.Point) *WorldLevel",
              "doc": "LevelAt returns the first WorldLevel whose Bounds contain p (using half-open [Origin, Origin+Size)), or nil if none matches.\n",
              "file": "pkg/tilemap/world.go",
              "line": 57
            },
            {
              "name": "LevelsInRect",
              "anchor": "LevelWorld.LevelsInRect",
              "recv": "*LevelWorld",
              "decl": "func (w *LevelWorld) LevelsInRect(r core.Bounds) []*WorldLevel",
              "doc": "LevelsInRect returns every WorldLevel whose Bounds overlap r, in deterministic Levels order.\n",
              "file": "pkg/tilemap/world.go",
              "line": 70
            },
            {
              "name": "LoadAll",
              "anchor": "LevelWorld.LoadAll",
              "recv": "*LevelWorld",
              "decl": "func (w *LevelWorld) LoadAll() (map[string]*Tilemap, error)",
              "doc": "LoadAll eagerly loads every level in w and returns them keyed by WorldLevel.ID.\n",
              "file": "pkg/tilemap/world.go",
              "line": 138
            },
            {
              "name": "LoadLevel",
              "anchor": "LevelWorld.LoadLevel",
              "recv": "*LevelWorld",
              "decl": "func (w *LevelWorld) LoadLevel(id string) (*Tilemap, error)",
              "doc": "LoadLevel loads and returns the *Tilemap for the level with the given ID.\n",
              "file": "pkg/tilemap/world.go",
              "line": 119
            },
            {
              "name": "WorldBounds",
              "anchor": "LevelWorld.WorldBounds",
              "recv": "*LevelWorld",
              "decl": "func (w *LevelWorld) WorldBounds() core.Bounds",
              "doc": "WorldBounds returns the bounding rectangle spanning every level in w, or a zero Bounds if w has no levels.\n",
              "file": "pkg/tilemap/world.go",
              "line": 84
            }
          ]
        },
        {
          "name": "MemoryChunkStore",
          "anchor": "MemoryChunkStore",
          "decl": "type MemoryChunkStore struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MemoryChunkStore is an in-memory, concurrency-safe ChunkStore storing plain-text chunk bytes.\n",
          "file": "pkg/tilemap/chunk_stream.go",
          "line": 68,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMemoryChunkStore",
              "anchor": "NewMemoryChunkStore",
              "decl": "func NewMemoryChunkStore() *MemoryChunkStore",
              "doc": "NewMemoryChunkStore returns an empty MemoryChunkStore.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 74
            }
          ],
          "methods": [
            {
              "name": "Bytes",
              "anchor": "MemoryChunkStore.Bytes",
              "recv": "*MemoryChunkStore",
              "decl": "func (s *MemoryChunkStore) Bytes(coord ChunkCoord) []byte",
              "doc": "Bytes returns a copy of the raw saved bytes for coord, or nil if absent.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 118
            },
            {
              "name": "Count",
              "anchor": "MemoryChunkStore.Count",
              "recv": "*MemoryChunkStore",
              "decl": "func (s *MemoryChunkStore) Count() int",
              "doc": "Count returns the number of saved chunks in s.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 127
            },
            {
              "name": "Delete",
              "anchor": "MemoryChunkStore.Delete",
              "recv": "*MemoryChunkStore",
              "decl": "func (s *MemoryChunkStore) Delete(coord ChunkCoord)",
              "doc": "Delete removes any saved entry for coord.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 138
            },
            {
              "name": "Has",
              "anchor": "MemoryChunkStore.Has",
              "recv": "*MemoryChunkStore",
              "decl": "func (s *MemoryChunkStore) Has(coord ChunkCoord) bool",
              "doc": "Has reports whether coord has a saved entry in s.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 107
            },
            {
              "name": "LoadChunk",
              "anchor": "MemoryChunkStore.LoadChunk",
              "recv": "*MemoryChunkStore",
              "decl": "func (s *MemoryChunkStore) LoadChunk(coord ChunkCoord) ([]byte, bool, error)",
              "doc": "LoadChunk returns a copy of the saved bytes for coord, or found=false if absent.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 79
            },
            {
              "name": "SaveChunk",
              "anchor": "MemoryChunkStore.SaveChunk",
              "recv": "*MemoryChunkStore",
              "decl": "func (s *MemoryChunkStore) SaveChunk(coord ChunkCoord, data []byte) error",
              "doc": "SaveChunk stores a copy of data under coord.\n",
              "file": "pkg/tilemap/chunk_stream.go",
              "line": 93
            }
          ]
        },
        {
          "name": "Object",
          "anchor": "Object",
          "decl": "type Object struct {\n\tID       int\n\tName     string\n\tType     string\n\tShape    ObjectShape\n\tX, Y     float32\n\tWidth    float32\n\tHeight   float32\n\tRotation float32\n\tGID      uint32\n\tVisible  bool\n\tPoints   []core.Point\n\t// Text holds the text content and styling when Shape is ObjectText, or nil otherwise.\n\tText       *TextObject\n\tProperties Properties\n}",
          "doc": "Object is one object from a Tiled objectgroup layer.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 531,
          "members": [
            {
              "name": "ID",
              "anchor": "Object.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "Object.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Type",
              "anchor": "Object.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Shape",
              "anchor": "Object.Shape",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "Object.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Object.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Object.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Object.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rotation",
              "anchor": "Object.Rotation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GID",
              "anchor": "Object.GID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visible",
              "anchor": "Object.Visible",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "Object.Points",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "Object.Text",
              "kind": "field",
              "doc": "Text holds the text content and styling when Shape is ObjectText, or nil otherwise."
            },
            {
              "name": "Properties",
              "anchor": "Object.Properties",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "FlipFlags",
              "anchor": "Object.FlipFlags",
              "recv": "Object",
              "decl": "func (o Object) FlipFlags() uint32",
              "doc": "FlipFlags returns the Tiled flip bits set on a tile object's GID.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 552
            },
            {
              "name": "PhysicsShape",
              "anchor": "Object.PhysicsShape",
              "recv": "Object",
              "decl": "func (o Object) PhysicsShape() (physics.Shape, bool)",
              "doc": "PhysicsShape returns o's collision shape in map coordinates for static level geometry:\n\n  - a rectangle becomes a physics.Box, or a physics.Polygon when it is rotated;\n  - an ellipse becomes a physics.Circle when it is round and a physics.Polygon of 8 vertices inscribed in it otherwise;\n  - a polygon becomes a physics.Polygon when it is convex with at most physics.MaxPolygonVertices vertices, and a closed physics.Chain along its outline otherwise, which keeps concave terrain exact;\n  - a polyline becomes a physics.Segment when it has two points and an open physics.Chain when it has more.\n\nRotation turns the object clockwise about (X, Y), as Tiled does. Points, tile objects and objects too small to collide (a rectangle without area, a polygon whose points all lie on one line, a polyline with fewer than two distinct points) report false. The shape ignores the object layer's offset; ObjectLayer.PhysicsBodies applies it.\n",
              "file": "pkg/tilemap/physics.go",
              "line": 74
            },
            {
              "name": "TileID",
              "anchor": "Object.TileID",
              "recv": "Object",
              "decl": "func (o Object) TileID() uint32",
              "doc": "TileID returns the global tile ID of a tile object with flip bits stripped, or 0 for non-tile objects.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 549
            },
            {
              "name": "WorldPoints",
              "anchor": "Object.WorldPoints",
              "recv": "Object",
              "decl": "func (o Object) WorldPoints() []core.Point",
              "doc": "WorldPoints returns the vertices of a polygon or polyline object translated by (X, Y).\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 555
            }
          ]
        },
        {
          "name": "ObjectAlignment",
          "anchor": "ObjectAlignment",
          "decl": "type ObjectAlignment int",
          "doc": "ObjectAlignment controls which point of a tile object sits at its (X, Y) position and acts as its rotation pivot.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 208,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ObjectAlignmentUnspecified",
                  "anchor": "ObjectAlignmentUnspecified"
                },
                {
                  "name": "ObjectAlignmentTopLeft",
                  "anchor": "ObjectAlignmentTopLeft"
                },
                {
                  "name": "ObjectAlignmentTop",
                  "anchor": "ObjectAlignmentTop"
                },
                {
                  "name": "ObjectAlignmentTopRight",
                  "anchor": "ObjectAlignmentTopRight"
                },
                {
                  "name": "ObjectAlignmentLeft",
                  "anchor": "ObjectAlignmentLeft"
                },
                {
                  "name": "ObjectAlignmentCenter",
                  "anchor": "ObjectAlignmentCenter"
                },
                {
                  "name": "ObjectAlignmentRight",
                  "anchor": "ObjectAlignmentRight"
                },
                {
                  "name": "ObjectAlignmentBottomLeft",
                  "anchor": "ObjectAlignmentBottomLeft"
                },
                {
                  "name": "ObjectAlignmentBottom",
                  "anchor": "ObjectAlignmentBottom"
                },
                {
                  "name": "ObjectAlignmentBottomRight",
                  "anchor": "ObjectAlignmentBottomRight"
                }
              ],
              "decl": "const (\n\t// ObjectAlignmentUnspecified uses bottom-left in orthogonal/staggered/hexagonal maps and bottom in isometric maps, matching Tiled.\n\tObjectAlignmentUnspecified ObjectAlignment = iota\n\tObjectAlignmentTopLeft\n\tObjectAlignmentTop\n\tObjectAlignmentTopRight\n\tObjectAlignmentLeft\n\tObjectAlignmentCenter\n\tObjectAlignmentRight\n\tObjectAlignmentBottomLeft\n\tObjectAlignmentBottom\n\tObjectAlignmentBottomRight\n)",
              "doc": "",
              "file": "pkg/tilemap/tilemap.go",
              "line": 210
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ObjectLayer",
          "anchor": "ObjectLayer",
          "decl": "type ObjectLayer struct {\n\tName       string\n\tOffsetX    float32\n\tOffsetY    float32\n\tParallaxX  float32\n\tParallaxY  float32\n\tOpacity    float32\n\tTintColor  core.Color\n\tTinted     bool\n\tVisible    bool\n\tObjects    []Object\n\tProperties Properties\n}",
          "doc": "ObjectLayer is a Tiled objectgroup layer.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 570,
          "members": [
            {
              "name": "Name",
              "anchor": "ObjectLayer.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetX",
              "anchor": "ObjectLayer.OffsetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetY",
              "anchor": "ObjectLayer.OffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParallaxX",
              "anchor": "ObjectLayer.ParallaxX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParallaxY",
              "anchor": "ObjectLayer.ParallaxY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Opacity",
              "anchor": "ObjectLayer.Opacity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TintColor",
              "anchor": "ObjectLayer.TintColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tinted",
              "anchor": "ObjectLayer.Tinted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Visible",
              "anchor": "ObjectLayer.Visible",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Objects",
              "anchor": "ObjectLayer.Objects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "ObjectLayer.Properties",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "PhysicsBodies",
              "anchor": "ObjectLayer.PhysicsBodies",
              "recv": "*ObjectLayer",
              "decl": "func (l *ObjectLayer) PhysicsBodies() []*physics.Body",
              "doc": "PhysicsBodies returns a physics.Body for every object of l that has a PhysicsShape, in object order, moved by the layer's offset, for a physics.World's static level geometry. Each body's ID is the object's ID, its Tag the object's Type and its UserData the Object. Hidden objects are included, since collision layers are often hidden in Tiled. Use physics.NewStaticRigidBody(body.Shape) to collide them with a physics.RigidWorld. A nil layer, which Tilemap.ObjectLayer returns for a name the map does not have, has no bodies. Like the objects, the bodies are in the map's local coordinates and ignore Tilemap.Origin; translate their shapes by it for a map placed in a world.\n",
              "file": "pkg/tilemap/physics.go",
              "line": 193
            }
          ]
        },
        {
          "name": "ObjectShape",
          "anchor": "ObjectShape",
          "decl": "type ObjectShape int",
          "doc": "ObjectShape identifies the geometric shape of a Tiled object.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 502,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ObjectRect",
                  "anchor": "ObjectRect"
                },
                {
                  "name": "ObjectPoint",
                  "anchor": "ObjectPoint"
                },
                {
                  "name": "ObjectEllipse",
                  "anchor": "ObjectEllipse"
                },
                {
                  "name": "ObjectPolygon",
                  "anchor": "ObjectPolygon"
                },
                {
                  "name": "ObjectPolyline",
                  "anchor": "ObjectPolyline"
                },
                {
                  "name": "ObjectTile",
                  "anchor": "ObjectTile"
                },
                {
                  "name": "ObjectText",
                  "anchor": "ObjectText"
                }
              ],
              "decl": "const (\n\tObjectRect ObjectShape = iota\n\tObjectPoint\n\tObjectEllipse\n\tObjectPolygon\n\tObjectPolyline\n\tObjectTile\n\tObjectText\n)",
              "doc": "",
              "file": "pkg/tilemap/tilemap.go",
              "line": 504
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Orientation",
          "anchor": "Orientation",
          "decl": "type Orientation int",
          "doc": "Orientation selects how tiles are arranged and projected into world coordinates.\n",
          "file": "pkg/tilemap/projection.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "OrientationOrthogonal",
                  "anchor": "OrientationOrthogonal"
                },
                {
                  "name": "OrientationIsometric",
                  "anchor": "OrientationIsometric"
                },
                {
                  "name": "OrientationStaggered",
                  "anchor": "OrientationStaggered"
                },
                {
                  "name": "OrientationHexagonal",
                  "anchor": "OrientationHexagonal"
                }
              ],
              "decl": "const (\n\t// OrientationOrthogonal lays tiles out on an axis-aligned rectangular grid.\n\tOrientationOrthogonal Orientation = iota\n\t// OrientationIsometric lays tiles out on a diamond isometric grid.\n\tOrientationIsometric\n\t// OrientationStaggered lays isometric diamonds out with alternating rows or columns shifted by half a tile.\n\tOrientationStaggered\n\t// OrientationHexagonal lays hexagons out with alternating rows (pointy-top) or columns (flat-top) shifted by half a tile.\n\tOrientationHexagonal\n)",
              "doc": "",
              "file": "pkg/tilemap/projection.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Properties",
          "anchor": "Properties",
          "decl": "type Properties map[string]Property",
          "doc": "Properties is a set of named custom properties with typed getters.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 34,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bool",
              "anchor": "Properties.Bool",
              "recv": "Properties",
              "decl": "func (p Properties) Bool(name string) (bool, bool)",
              "doc": "Bool returns the boolean value of name.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 101
            },
            {
              "name": "Color",
              "anchor": "Properties.Color",
              "recv": "Properties",
              "decl": "func (p Properties) Color(name string) (core.Color, bool)",
              "doc": "Color parses a Tiled color property (#RRGGBB or #AARRGGBB) into a core.Color.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 111
            },
            {
              "name": "File",
              "anchor": "Properties.File",
              "recv": "Properties",
              "decl": "func (p Properties) File(name string) (string, bool)",
              "doc": "File returns the file path value of a file property (or string property).\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 53
            },
            {
              "name": "Float",
              "anchor": "Properties.Float",
              "recv": "Properties",
              "decl": "func (p Properties) Float(name string) (float64, bool)",
              "doc": "Float returns the floating-point value of name (accepting float or int properties).\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 82
            },
            {
              "name": "Has",
              "anchor": "Properties.Has",
              "recv": "Properties",
              "decl": "func (p Properties) Has(name string) bool",
              "doc": "Has reports whether a property named name exists.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 37
            },
            {
              "name": "Int",
              "anchor": "Properties.Int",
              "recv": "Properties",
              "decl": "func (p Properties) Int(name string) (int, bool)",
              "doc": "Int returns the integer value of name (matching int and object properties).\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 58
            },
            {
              "name": "ObjectID",
              "anchor": "Properties.ObjectID",
              "recv": "Properties",
              "decl": "func (p Properties) ObjectID(name string) (int, bool)",
              "doc": "ObjectID returns the referenced object ID of an object property.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 77
            },
            {
              "name": "String",
              "anchor": "Properties.String",
              "recv": "Properties",
              "decl": "func (p Properties) String(name string) (string, bool)",
              "doc": "String returns the string value of name (matching string, color and file properties).\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 43
            }
          ]
        },
        {
          "name": "Property",
          "anchor": "Property",
          "decl": "type Property struct {\n\tName  string\n\tType  string\n\tValue any\n}",
          "doc": "Property is one typed custom property on a map, layer, tileset, tile or object.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 27,
          "members": [
            {
              "name": "Name",
              "anchor": "Property.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Type",
              "anchor": "Property.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "Property.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RaycastHit",
          "anchor": "RaycastHit",
          "decl": "type RaycastHit struct {\n\tCol, Row int\n\tTileID   uint32\n\tFlags    TileFlags\n\tPoint    core.Point\n\tNormal   core.Point\n\t// T is the hit's fraction along the segment from -> to, in [0, 1].\n\tT float32\n}",
          "doc": "RaycastHit is the first tile cell met by Tilemap.Raycast.\n",
          "file": "pkg/tilemap/query.go",
          "line": 28,
          "members": [
            {
              "name": "Col",
              "anchor": "RaycastHit.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "RaycastHit.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileID",
              "anchor": "RaycastHit.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "RaycastHit.Flags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point",
              "anchor": "RaycastHit.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "RaycastHit.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "T",
              "anchor": "RaycastHit.T",
              "kind": "field",
              "doc": "T is the hit's fraction along the segment from -> to, in [0, 1]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "StaggerAxis",
          "anchor": "StaggerAxis",
          "decl": "type StaggerAxis int",
          "doc": "StaggerAxis selects which axis is staggered for staggered isometric and hexagonal maps.\n",
          "file": "pkg/tilemap/projection.go",
          "line": 24,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "StaggerY",
                  "anchor": "StaggerY"
                },
                {
                  "name": "StaggerX",
                  "anchor": "StaggerX"
                }
              ],
              "decl": "const (\n\t// StaggerY staggers alternating rows horizontally (pointy-top hexagons).\n\tStaggerY StaggerAxis = iota\n\t// StaggerX staggers alternating columns vertically (flat-top hexagons).\n\tStaggerX\n)",
              "doc": "",
              "file": "pkg/tilemap/projection.go",
              "line": 26
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "StaggerIndex",
          "anchor": "StaggerIndex",
          "decl": "type StaggerIndex int",
          "doc": "StaggerIndex selects whether odd or even rows/columns are shifted in staggered and hexagonal maps.\n",
          "file": "pkg/tilemap/projection.go",
          "line": 34,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "StaggerOdd",
                  "anchor": "StaggerOdd"
                },
                {
                  "name": "StaggerEven",
                  "anchor": "StaggerEven"
                }
              ],
              "decl": "const (\n\t// StaggerOdd shifts odd-indexed rows or columns (Tiled default).\n\tStaggerOdd StaggerIndex = iota\n\t// StaggerEven shifts even-indexed rows or columns.\n\tStaggerEven\n)",
              "doc": "",
              "file": "pkg/tilemap/projection.go",
              "line": 36
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Terrain",
          "anchor": "Terrain",
          "decl": "type Terrain struct {\n\t// Name is the terrain's name in its tileset.\n\tName string\n\t// Autotile maps neighbour masks to the terrain's GIDs; its Default is the tile that lists no neighbours, or 0 when none does.\n\tAutotile AutotileSet\n}",
          "doc": "Terrain is one terrain set of a tileset, from a TilesetDoc's Terrains: the autotile set that maps the neighbour mask of a cell to the terrain's tile, in global tile IDs, ready for Tilemap.ApplyAutotile and Tilemap.SetAutotile with Contains as their terrainID.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 140,
          "members": [
            {
              "name": "Name",
              "anchor": "Terrain.Name",
              "kind": "field",
              "doc": "Name is the terrain's name in its tileset."
            },
            {
              "name": "Autotile",
              "anchor": "Terrain.Autotile",
              "kind": "field",
              "doc": "Autotile maps neighbour masks to the terrain's GIDs; its Default is the tile that lists no neighbours, or 0 when none does."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Contains",
              "anchor": "Terrain.Contains",
              "recv": "*Terrain",
              "decl": "func (t *Terrain) Contains(gid uint32) bool",
              "doc": "Contains reports whether gid, flip bits ignored, is one of the terrain's tiles.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 148
            }
          ]
        },
        {
          "name": "TerrainDoc",
          "anchor": "TerrainDoc",
          "decl": "type TerrainDoc struct {\n\t// Name identifies the terrain within the tileset; tiles name it in TileDoc.Terrain.\n\tName string `yaml:\"name\" schema:\"required,minLength=1\"`\n\t// Mode is \"cardinal\", which matches the four edge neighbours (Autotile4, 16 tiles), or \"blob\", which also matches a corner neighbour when both edges beside it match (Autotile8, 47 tiles).\n\tMode string `yaml:\"mode\" schema:\"required,enum=cardinal|blob\"`\n\t// Default is the optional local tile ID used when a cell's neighbour mask has no tile mapped to it. When omitted, the tile of the terrain that lists no neighbours (mask 0) is the default.\n\tDefault *int `yaml:\"default,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "TerrainDoc is one terrain set of a TilesetDoc: a family of tiles, such as the edges and corners of grass, from which autotiling picks a tile by which neighbouring cells hold the same terrain (Tilemap.ApplyAutotile).\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 70,
          "members": [
            {
              "name": "Name",
              "anchor": "TerrainDoc.Name",
              "kind": "field",
              "doc": "Name identifies the terrain within the tileset; tiles name it in TileDoc.Terrain."
            },
            {
              "name": "Mode",
              "anchor": "TerrainDoc.Mode",
              "kind": "field",
              "doc": "Mode is \"cardinal\", which matches the four edge neighbours (Autotile4, 16 tiles), or \"blob\", which also matches a corner neighbour when both edges beside it match (Autotile8, 47 tiles)."
            },
            {
              "name": "Default",
              "anchor": "TerrainDoc.Default",
              "kind": "field",
              "doc": "Default is the optional local tile ID used when a cell's neighbour mask has no tile mapped to it. When omitted, the tile of the terrain that lists no neighbours (mask 0) is the default."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainRand",
          "anchor": "TerrainRand",
          "decl": "type TerrainRand interface {\n\tFloat64() float64\n}",
          "doc": "TerrainRand supplies deterministic uniform [0, 1) floats for weighted tie-breaking\nin SetTerrain and SetTerrainRect. *random.Stream satisfies TerrainRand.\n",
          "file": "pkg/tilemap/wang.go",
          "line": 13,
          "members": [
            {
              "name": "Float64",
              "anchor": "TerrainRand.Float64",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TextObject",
          "anchor": "TextObject",
          "decl": "type TextObject struct {\n\tText       string\n\tFontFamily string\n\tPixelSize  int\n\tWrap       bool\n\tColor      core.Color\n\tBold       bool\n\tItalic     bool\n\tUnderline  bool\n\tStrikeout  bool\n\tKerning    bool\n\tHAlign     string\n\tVAlign     string\n}",
          "doc": "TextObject holds the text content and styling of a Tiled text object.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 515,
          "members": [
            {
              "name": "Text",
              "anchor": "TextObject.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FontFamily",
              "anchor": "TextObject.FontFamily",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PixelSize",
              "anchor": "TextObject.PixelSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Wrap",
              "anchor": "TextObject.Wrap",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "TextObject.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bold",
              "anchor": "TextObject.Bold",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Italic",
              "anchor": "TextObject.Italic",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Underline",
              "anchor": "TextObject.Underline",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Strikeout",
              "anchor": "TextObject.Strikeout",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kerning",
              "anchor": "TextObject.Kerning",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HAlign",
              "anchor": "TextObject.HAlign",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VAlign",
              "anchor": "TextObject.VAlign",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileAnimFrame",
          "anchor": "TileAnimFrame",
          "decl": "type TileAnimFrame struct {\n\tTileID   uint32\n\tDuration time.Duration\n}",
          "doc": "TileAnimFrame is one frame of an animated tile: its local tile ID in the tileset and how long it shows.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 153,
          "members": [
            {
              "name": "TileID",
              "anchor": "TileAnimFrame.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Duration",
              "anchor": "TileAnimFrame.Duration",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileAnimation",
          "anchor": "TileAnimation",
          "decl": "type TileAnimation struct {\n\tFrames []TileAnimFrame\n\t// contains filtered or unexported fields\n}",
          "doc": "TileAnimation advances one animated tile through its frames in a loop on Tilemap.Update.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 159,
          "members": [
            {
              "name": "Frames",
              "anchor": "TileAnimation.Frames",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CurrentTileID",
              "anchor": "TileAnimation.CurrentTileID",
              "recv": "*TileAnimation",
              "decl": "func (a *TileAnimation) CurrentTileID() uint32",
              "doc": "CurrentTileID returns the local tile ID showing now, or 0 for an empty animation.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 192
            },
            {
              "name": "Index",
              "anchor": "TileAnimation.Index",
              "recv": "*TileAnimation",
              "decl": "func (a *TileAnimation) Index() int",
              "doc": "Index returns the index in Frames of the frame showing now.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 200
            },
            {
              "name": "Reset",
              "anchor": "TileAnimation.Reset",
              "recv": "*TileAnimation",
              "decl": "func (a *TileAnimation) Reset()",
              "doc": "Reset restarts the animation from its first frame.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 203
            },
            {
              "name": "Update",
              "anchor": "TileAnimation.Update",
              "recv": "*TileAnimation",
              "decl": "func (a *TileAnimation) Update(dt time.Duration)",
              "doc": "Update moves the animation forward by dt, wrapping cleanly across full cycles.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 167
            }
          ]
        },
        {
          "name": "TileDoc",
          "anchor": "TileDoc",
          "decl": "type TileDoc struct {\n\t// ID is the tile's local ID, from 0 to the tileset's tile count less 1.\n\tID int `yaml:\"id\" schema:\"required,minimum=0\"`\n\t// Name is an optional human-readable name for the tile, such as \"stone\" or \"moss\".\n\tName string `yaml:\"name,omitempty\"`\n\t// Solid sets TileSolid on the tile, so collision queries and tileshape treat its cells as blocked.\n\tSolid bool `yaml:\"solid,omitempty\"`\n\t// OneWay sets TileOneWay on the tile, a platform that blocks only from above.\n\tOneWay bool `yaml:\"oneWay,omitempty\"`\n\t// Flags are further TileFlags bits the game defines, such as a water or ladder bit, set on the tile beside Solid and OneWay.\n\tFlags TileFlags `yaml:\"flags,omitempty\"`\n\t// Weight is the tile's optional relative selection weight for random and variant brushes (>= 0; omitted defaults to 1).\n\tWeight *float64 `yaml:\"weight,omitempty\" schema:\"minimum=0\"`\n\t// Properties are the tile's custom properties, each a bool, an integer, a number or a string, as Tilemap.TileProperties returns them.\n\tProperties map[string]any `yaml:\"properties,omitempty\"`\n\t// Shapes are the tile's collision shapes in its own coordinates, (0, 0) at its top left, as Tileset.Shapes holds them.\n\tShapes []TileShapeDoc `yaml:\"shapes,omitempty\"`\n\t// Animation, when set, makes the tile cycle through these frames in a loop as Tilemap.Update advances time.\n\tAnimation []TileFrameDoc `yaml:\"animation,omitempty\"`\n\t// Terrain names the entry of TilesetDoc.Terrains the tile belongs to.\n\tTerrain string `yaml:\"terrain,omitempty\"`\n\t// Neighbors lists the directions in which a cell of the same terrain lies next to a cell this tile fills: north, east, south and west, and for a blob terrain also northeast, southeast, southwest and northwest, each only with both edges beside it (northeast with north and east), since a corner matches only when they do. No two tiles of one terrain list the same set, and the tile that lists none is the terrain's default. It requires Terrain.\n\tNeighbors []string `yaml:\"neighbors,omitempty,flow\"`\n}",
          "doc": "TileDoc describes one tile of a TilesetDoc.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 80,
          "members": [
            {
              "name": "ID",
              "anchor": "TileDoc.ID",
              "kind": "field",
              "doc": "ID is the tile's local ID, from 0 to the tileset's tile count less 1."
            },
            {
              "name": "Name",
              "anchor": "TileDoc.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name for the tile, such as \"stone\" or \"moss\"."
            },
            {
              "name": "Solid",
              "anchor": "TileDoc.Solid",
              "kind": "field",
              "doc": "Solid sets TileSolid on the tile, so collision queries and tileshape treat its cells as blocked."
            },
            {
              "name": "OneWay",
              "anchor": "TileDoc.OneWay",
              "kind": "field",
              "doc": "OneWay sets TileOneWay on the tile, a platform that blocks only from above."
            },
            {
              "name": "Flags",
              "anchor": "TileDoc.Flags",
              "kind": "field",
              "doc": "Flags are further TileFlags bits the game defines, such as a water or ladder bit, set on the tile beside Solid and OneWay."
            },
            {
              "name": "Weight",
              "anchor": "TileDoc.Weight",
              "kind": "field",
              "doc": "Weight is the tile's optional relative selection weight for random and variant brushes (>= 0; omitted defaults to 1)."
            },
            {
              "name": "Properties",
              "anchor": "TileDoc.Properties",
              "kind": "field",
              "doc": "Properties are the tile's custom properties, each a bool, an integer, a number or a string, as Tilemap.TileProperties returns them."
            },
            {
              "name": "Shapes",
              "anchor": "TileDoc.Shapes",
              "kind": "field",
              "doc": "Shapes are the tile's collision shapes in its own coordinates, (0, 0) at its top left, as Tileset.Shapes holds them."
            },
            {
              "name": "Animation",
              "anchor": "TileDoc.Animation",
              "kind": "field",
              "doc": "Animation, when set, makes the tile cycle through these frames in a loop as Tilemap.Update advances time."
            },
            {
              "name": "Terrain",
              "anchor": "TileDoc.Terrain",
              "kind": "field",
              "doc": "Terrain names the entry of TilesetDoc.Terrains the tile belongs to."
            },
            {
              "name": "Neighbors",
              "anchor": "TileDoc.Neighbors",
              "kind": "field",
              "doc": "Neighbors lists the directions in which a cell of the same terrain lies next to a cell this tile fills: north, east, south and west, and for a blob terrain also northeast, southeast, southwest and northwest, each only with both edges beside it (northeast with north and east), since a corner matches only when they do. No two tiles of one terrain list the same set, and the tile that lists none is the terrain's default. It requires Terrain."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileFlags",
          "anchor": "TileFlags",
          "decl": "type TileFlags uint32",
          "doc": "TileFlags is a bitmask of gameplay and collision properties on a tile.\n",
          "file": "pkg/tilemap/query.go",
          "line": 10,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TileSolid",
                  "anchor": "TileSolid"
                },
                {
                  "name": "TileOneWay",
                  "anchor": "TileOneWay"
                }
              ],
              "decl": "const (\n\t// TileSolid marks a tile that blocks movement from all sides.\n\tTileSolid TileFlags = 1 << 0\n\t// TileOneWay marks a tile that blocks movement only from one side (such as a platform).\n\tTileOneWay TileFlags = 1 << 1\n)",
              "doc": "",
              "file": "pkg/tilemap/query.go",
              "line": 12
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "PhysicsFlags",
              "anchor": "TileFlags.PhysicsFlags",
              "recv": "TileFlags",
              "decl": "func (f TileFlags) PhysicsFlags() physics.TileFlags",
              "doc": "PhysicsFlags maps tilemap TileFlags to physics.TileFlags.\nTileSolid (bit 0) and TileOneWay (bit 1) map directly to physics.TileSolid and physics.TileOneWay,\nand game-defined bits 2..31 are preserved verbatim.\n",
              "file": "pkg/tilemap/physics.go",
              "line": 21
            }
          ]
        },
        {
          "name": "TileFrameDoc",
          "anchor": "TileFrameDoc",
          "decl": "type TileFrameDoc struct {\n\t// Tile is the local ID of the tile the frame shows. It is required, so a frame never shows tile 0 by omission.\n\tTile int `yaml:\"tile\" schema:\"required,minimum=0\"`\n\t// Duration is how long the frame shows, positive, written as a Go duration such as 150ms.\n\tDuration time.Duration `yaml:\"duration\" schema:\"required\"`\n}",
          "doc": "TileFrameDoc is one frame of a tile's animation.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 124,
          "members": [
            {
              "name": "Tile",
              "anchor": "TileFrameDoc.Tile",
              "kind": "field",
              "doc": "Tile is the local ID of the tile the frame shows. It is required, so a frame never shows tile 0 by omission."
            },
            {
              "name": "Duration",
              "anchor": "TileFrameDoc.Duration",
              "kind": "field",
              "doc": "Duration is how long the frame shows, positive, written as a Go duration such as 150ms."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileHit",
          "anchor": "TileHit",
          "decl": "type TileHit struct {\n\tCol, Row int\n\tTileID   uint32\n\tFlags    TileFlags\n\tBounds   core.Bounds\n}",
          "doc": "TileHit is one tile cell returned by Tilemap.TilesInRect.\n",
          "file": "pkg/tilemap/query.go",
          "line": 20,
          "members": [
            {
              "name": "Col",
              "anchor": "TileHit.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "TileHit.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileID",
              "anchor": "TileHit.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "TileHit.Flags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "TileHit.Bounds",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileImage",
          "anchor": "TileImage",
          "decl": "type TileImage struct {\n\tImage  core.ImageSource\n\tX      float32\n\tY      float32\n\tWidth  float32\n\tHeight float32\n}",
          "doc": "TileImage is one tile's image and source rectangle in an image-collection tileset.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 225,
          "members": [
            {
              "name": "Image",
              "anchor": "TileImage.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "TileImage.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "TileImage.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "TileImage.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TileImage.Height",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileLayer",
          "anchor": "TileLayer",
          "decl": "type TileLayer struct {\n\tName   string\n\tWidth  int\n\tHeight int\n\tStartX int\n\tStartY int\n\tData   []uint32\n\t// ChunkSize is the power-of-two edge length (in tiles) for sparse chunked layers; 0 selects a dense Data layer.\n\tChunkSize int\n\tOffsetX   float32\n\tOffsetY   float32\n\tParallaxX float32\n\tParallaxY float32\n\tOpacity   float32\n\tTintColor core.Color\n\t// Tinted distinguishes an explicit TintColor (including transparent black #00000000) from an untinted layer.\n\t// Setting TintColor to a non-zero color also tints the layer when Tinted is false.\n\tTinted  bool\n\tVisible bool\n\t// YSort enables per-tile Y-sorting for this layer. When true, visible tiles sort by\n\t// their bottom edge (plus any per-tile PropSortOriginY property offset) and join a\n\t// Y-sorted scene.Layer's draw list alongside sprites and drawables.\n\tYSort      bool\n\tProperties Properties\n\t// contains filtered or unexported fields\n}",
          "doc": "TileLayer is one row-major grid of tile GIDs drawn in map order, or a sparse chunked layer when ChunkSize > 0.\n\nIts zero value is hidden and transparent; NewTileLayer and NewChunkedTileLayer return visible layers at full opacity.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 426,
          "members": [
            {
              "name": "Name",
              "anchor": "TileLayer.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "TileLayer.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TileLayer.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartX",
              "anchor": "TileLayer.StartX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StartY",
              "anchor": "TileLayer.StartY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "TileLayer.Data",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ChunkSize",
              "anchor": "TileLayer.ChunkSize",
              "kind": "field",
              "doc": "ChunkSize is the power-of-two edge length (in tiles) for sparse chunked layers; 0 selects a dense Data layer."
            },
            {
              "name": "OffsetX",
              "anchor": "TileLayer.OffsetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetY",
              "anchor": "TileLayer.OffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParallaxX",
              "anchor": "TileLayer.ParallaxX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ParallaxY",
              "anchor": "TileLayer.ParallaxY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Opacity",
              "anchor": "TileLayer.Opacity",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TintColor",
              "anchor": "TileLayer.TintColor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tinted",
              "anchor": "TileLayer.Tinted",
              "kind": "field",
              "doc": "Tinted distinguishes an explicit TintColor (including transparent black #00000000) from an untinted layer.\nSetting TintColor to a non-zero color also tints the layer when Tinted is false."
            },
            {
              "name": "Visible",
              "anchor": "TileLayer.Visible",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "YSort",
              "anchor": "TileLayer.YSort",
              "kind": "field",
              "doc": "YSort enables per-tile Y-sorting for this layer. When true, visible tiles sort by\ntheir bottom edge (plus any per-tile PropSortOriginY property offset) and join a\nY-sorted scene.Layer's draw list alongside sprites and drawables."
            },
            {
              "name": "Properties",
              "anchor": "TileLayer.Properties",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewChunkedTileLayer",
              "anchor": "NewChunkedTileLayer",
              "decl": "func NewChunkedTileLayer(name string, chunkSize int) TileLayer",
              "doc": "NewChunkedTileLayer returns a visible sparse chunked TileLayer at full opacity using a power-of-two chunkSize\n(defaulting to DefaultChunkSize when chunkSize <= 0).\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 206
            },
            {
              "name": "NewTileLayer",
              "anchor": "NewTileLayer",
              "decl": "func NewTileLayer(name string, width, height int, data []uint32) TileLayer",
              "doc": "NewTileLayer returns a visible TileLayer at full opacity. When data is nil it allocates a width*height slice.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 487
            }
          ],
          "methods": [
            {
              "name": "Chunk",
              "anchor": "TileLayer.Chunk",
              "recv": "*TileLayer",
              "decl": "func (l *TileLayer) Chunk(coord ChunkCoord) *Chunk",
              "doc": "Chunk returns the loaded chunk at coord, or nil if coord is not loaded.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 262
            },
            {
              "name": "ChunkCoords",
              "anchor": "TileLayer.ChunkCoords",
              "recv": "*TileLayer",
              "decl": "func (l *TileLayer) ChunkCoords() []ChunkCoord",
              "doc": "ChunkCoords returns the coordinates of all currently loaded chunks in deterministic row-major (Y, X) order.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 270
            },
            {
              "name": "ChunkCount",
              "anchor": "TileLayer.ChunkCount",
              "recv": "*TileLayer",
              "decl": "func (l *TileLayer) ChunkCount() int",
              "doc": "ChunkCount returns the number of currently loaded chunks in l, or 0 for dense or empty layers.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 254
            },
            {
              "name": "ChunkTileBounds",
              "anchor": "TileLayer.ChunkTileBounds",
              "recv": "*TileLayer",
              "decl": "func (l *TileLayer) ChunkTileBounds() (minCol, minRow, maxCol, maxRow int, ok bool)",
              "doc": "ChunkTileBounds returns the inclusive tile-coordinate bounding box [minCol, maxCol] × [minRow, maxRow]\nspanning all currently loaded chunks in l, or ok=false if no chunks are loaded.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 314
            },
            {
              "name": "DirtyChunks",
              "anchor": "TileLayer.DirtyChunks",
              "recv": "*TileLayer",
              "decl": "func (l *TileLayer) DirtyChunks() []ChunkCoord",
              "doc": "DirtyChunks returns the coordinates of all loaded chunks whose Dirty flag is set, sorted in deterministic (Y, X) order.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 283
            },
            {
              "name": "EffectiveChunkSize",
              "anchor": "TileLayer.EffectiveChunkSize",
              "recv": "*TileLayer",
              "decl": "func (l *TileLayer) EffectiveChunkSize() int",
              "doc": "EffectiveChunkSize returns the power-of-two chunk size for a chunked layer, or 0 for a dense layer.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 234
            },
            {
              "name": "IsChunked",
              "anchor": "TileLayer.IsChunked",
              "recv": "*TileLayer",
              "decl": "func (l *TileLayer) IsChunked() bool",
              "doc": "IsChunked reports whether l uses sparse chunked storage rather than a dense Data slice.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 229
            },
            {
              "name": "ModifiedChunks",
              "anchor": "TileLayer.ModifiedChunks",
              "recv": "*TileLayer",
              "decl": "func (l *TileLayer) ModifiedChunks() []ChunkCoord",
              "doc": "ModifiedChunks returns the coordinates of all loaded chunks whose Modified flag is set, sorted in deterministic (Y, X) order.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 298
            }
          ]
        },
        {
          "name": "TileShape",
          "anchor": "TileShape",
          "decl": "type TileShape struct {\n\t// Shape is the kind of object the shape came from: ObjectRect, ObjectEllipse, ObjectPolygon or ObjectPolyline.\n\tShape ObjectShape\n\t// Name and Type are the object's name and type (or class) in the collision editor.\n\tName string\n\tType string\n\t// Points are the shape's vertices in the tile's coordinates.\n\tPoints []core.Point\n\t// Properties are the object's custom properties.\n\tProperties Properties\n}",
          "doc": "TileShape is one collision shape a tileset gives a tile, such as the rectangles, polygons and ellipses Tiled's collision editor stores on a tile.\n\nPoints are in the tile's own coordinates, with (0, 0) at the top-left of the tileset's tile and (TileWidth, TileHeight) at its bottom-right, already rotated by the object's rotation. A closed shape (every Shape except ObjectPolyline) is the polygon through its points, with an edge from the last point back to the first; an ellipse is approximated by EllipseShapeSegments points on its outline, and a rectangle has its four corners.\n",
          "file": "pkg/tilemap/shapes.go",
          "line": 15,
          "members": [
            {
              "name": "Shape",
              "anchor": "TileShape.Shape",
              "kind": "field",
              "doc": "Shape is the kind of object the shape came from: ObjectRect, ObjectEllipse, ObjectPolygon or ObjectPolyline."
            },
            {
              "name": "Name",
              "anchor": "TileShape.Name",
              "kind": "field",
              "doc": "Name and Type are the object's name and type (or class) in the collision editor."
            },
            {
              "name": "Type",
              "anchor": "TileShape.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "TileShape.Points",
              "kind": "field",
              "doc": "Points are the shape's vertices in the tile's coordinates."
            },
            {
              "name": "Properties",
              "anchor": "TileShape.Properties",
              "kind": "field",
              "doc": "Properties are the object's custom properties."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Closed",
              "anchor": "TileShape.Closed",
              "recv": "TileShape",
              "decl": "func (s TileShape) Closed() bool",
              "doc": "Closed reports whether s is a closed polygon rather than an open polyline.\n",
              "file": "pkg/tilemap/shapes.go",
              "line": 28
            },
            {
              "name": "Flipped",
              "anchor": "TileShape.Flipped",
              "recv": "TileShape",
              "decl": "func (s TileShape) Flipped(flags uint32, tileWidth, tileHeight float32) TileShape",
              "doc": "Flipped returns s mirrored and rotated as Tiled's flip bits in flags place a tile of tileWidth by tileHeight on a map, the same transform DrawLayer applies to the tile's image.\n\nFlipDiagonal swaps the axes first, then FlipHorizontal mirrors left to right and FlipVertical top to bottom, so the eight combinations give every 90 degree rotation of a tile with and without a mirror. Flipped returns s unchanged when flags holds no flip bit, and a copy with new Points otherwise.\n",
              "file": "pkg/tilemap/shapes.go",
              "line": 33
            }
          ]
        },
        {
          "name": "TileShapeDoc",
          "anchor": "TileShapeDoc",
          "decl": "type TileShapeDoc struct {\n\t// Kind is \"rect\" or \"ellipse\", given by X, Y, Width and Height, or \"polygon\" or \"polyline\", given by Points. An ellipse becomes a polygon of EllipseShapeSegments edges.\n\tKind string `yaml:\"kind\" schema:\"required,enum=rect|ellipse|polygon|polyline\"`\n\t// Name and Type label the shape for game code, as a Tiled object's name and type do.\n\tName string `yaml:\"name,omitempty\"`\n\tType string `yaml:\"type,omitempty\"`\n\t// X and Y are the top left of a rect or ellipse's box, and Width and Height its positive size.\n\tX      float32 `yaml:\"x,omitempty\"`\n\tY      float32 `yaml:\"y,omitempty\"`\n\tWidth  float32 `yaml:\"width,omitempty\" schema:\"minimum=0\"`\n\tHeight float32 `yaml:\"height,omitempty\" schema:\"minimum=0\"`\n\t// Points are the [x, y] vertices of a polygon (at least 3) or polyline (at least 2).\n\tPoints [][]float32 `yaml:\"points,omitempty,flow\"`\n\t// Properties are the shape's custom properties, each a bool, an integer, a number or a string.\n\tProperties map[string]any `yaml:\"properties,omitempty\"`\n}",
          "doc": "TileShapeDoc is one collision shape of a tile, in the tile's coordinates.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 106,
          "members": [
            {
              "name": "Kind",
              "anchor": "TileShapeDoc.Kind",
              "kind": "field",
              "doc": "Kind is \"rect\" or \"ellipse\", given by X, Y, Width and Height, or \"polygon\" or \"polyline\", given by Points. An ellipse becomes a polygon of EllipseShapeSegments edges."
            },
            {
              "name": "Name",
              "anchor": "TileShapeDoc.Name",
              "kind": "field",
              "doc": "Name and Type label the shape for game code, as a Tiled object's name and type do."
            },
            {
              "name": "Type",
              "anchor": "TileShapeDoc.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "TileShapeDoc.X",
              "kind": "field",
              "doc": "X and Y are the top left of a rect or ellipse's box, and Width and Height its positive size."
            },
            {
              "name": "Y",
              "anchor": "TileShapeDoc.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "TileShapeDoc.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TileShapeDoc.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Points",
              "anchor": "TileShapeDoc.Points",
              "kind": "field",
              "doc": "Points are the [x, y] vertices of a polygon (at least 3) or polyline (at least 2)."
            },
            {
              "name": "Properties",
              "anchor": "TileShapeDoc.Properties",
              "kind": "field",
              "doc": "Properties are the shape's custom properties, each a bool, an integer, a number or a string."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TiledWorld",
          "anchor": "TiledWorld",
          "decl": "type TiledWorld struct {\n\tMaps                 []TiledWorldMap\n\tPatterns             []TiledWorldPattern\n\tOnlyShowAdjacentMaps bool\n}",
          "doc": "TiledWorld is the parsed representation of a Tiled .world JSON file.\n",
          "file": "pkg/tilemap/tiled_world.go",
          "line": 128,
          "members": [
            {
              "name": "Maps",
              "anchor": "TiledWorld.Maps",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Patterns",
              "anchor": "TiledWorld.Patterns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnlyShowAdjacentMaps",
              "anchor": "TiledWorld.OnlyShowAdjacentMaps",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseTiledWorld",
              "anchor": "ParseTiledWorld",
              "decl": "func ParseTiledWorld(data []byte) (*TiledWorld, error)",
              "doc": "ParseTiledWorld parses a Tiled .world JSON file, compiling and validating every pattern regular expression.\n\nBoth explicit maps entries (fileName, x, y, optional width and height) and regex patterns\n(regexp, multiplierX, multiplierY, offsetX, offsetY, mapWidth, mapHeight) are supported.\n\nIts errors are *loaderr.Error values that give the line, column and field of the problem and how to fix it;\na caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/tilemap/tiled_world.go",
              "line": 141
            }
          ],
          "methods": [
            {
              "name": "Resolve",
              "anchor": "TiledWorld.Resolve",
              "recv": "*TiledWorld",
              "decl": "func (w *TiledWorld) Resolve(fileNames []string) []TiledWorldMap",
              "doc": "Resolve expands w into every concrete map placement: explicit Maps first (in file order),\nfollowed by any candidate file in fileNames matching Patterns (sorted lexicographically,\nwith the first matching pattern winning and files already listed in Maps skipped).\n",
              "file": "pkg/tilemap/tiled_world.go",
              "line": 222
            }
          ]
        },
        {
          "name": "TiledWorldLoader",
          "anchor": "TiledWorldLoader",
          "decl": "type TiledWorldLoader struct {\n\t// LoadMap reads the raw .tmj JSON bytes for fileName (as written in the .world file or returned by ListFiles).\n\tLoadMap func(fileName string) ([]byte, error)\n\t// ListFiles returns candidate map filenames (relative to the .world file) to match against Patterns.\n\t// Optional when the .world file defines no patterns.\n\tListFiles func() ([]string, error)\n\t// Tilesets resolves external .tsj tilesets and images for each map when ResolveTilesets is nil.\n\tTilesets TilesetLoader\n\t// ResolveTilesets optionally builds a map-specific TilesetLoader for fileName (for example when maps live in subdirectories).\n\tResolveTilesets func(fileName string) TilesetLoader\n}",
          "doc": "TiledWorldLoader configures how LoadTiledWorld reads .tmj map files and discovers pattern-matched filenames.\n",
          "file": "pkg/tilemap/tiled_world.go",
          "line": 256,
          "members": [
            {
              "name": "LoadMap",
              "anchor": "TiledWorldLoader.LoadMap",
              "kind": "field",
              "doc": "LoadMap reads the raw .tmj JSON bytes for fileName (as written in the .world file or returned by ListFiles)."
            },
            {
              "name": "ListFiles",
              "anchor": "TiledWorldLoader.ListFiles",
              "kind": "field",
              "doc": "ListFiles returns candidate map filenames (relative to the .world file) to match against Patterns.\nOptional when the .world file defines no patterns."
            },
            {
              "name": "Tilesets",
              "anchor": "TiledWorldLoader.Tilesets",
              "kind": "field",
              "doc": "Tilesets resolves external .tsj tilesets and images for each map when ResolveTilesets is nil."
            },
            {
              "name": "ResolveTilesets",
              "anchor": "TiledWorldLoader.ResolveTilesets",
              "kind": "field",
              "doc": "ResolveTilesets optionally builds a map-specific TilesetLoader for fileName (for example when maps live in subdirectories)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TiledWorldMap",
          "anchor": "TiledWorldMap",
          "decl": "type TiledWorldMap struct {\n\tFileName string\n\tX        int\n\tY        int\n\tWidth    int\n\tHeight   int\n}",
          "doc": "TiledWorldMap describes one map placement inside a Tiled .world file.\n",
          "file": "pkg/tilemap/tiled_world.go",
          "line": 18,
          "members": [
            {
              "name": "FileName",
              "anchor": "TiledWorldMap.FileName",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "X",
              "anchor": "TiledWorldMap.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "TiledWorldMap.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "TiledWorldMap.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TiledWorldMap.Height",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "TiledWorldMap.Bounds",
              "recv": "TiledWorldMap",
              "decl": "func (m TiledWorldMap) Bounds() core.Bounds",
              "doc": "Bounds returns the map's world bounding rectangle. Width and Height may be 0 if omitted in the .world file.\n",
              "file": "pkg/tilemap/tiled_world.go",
              "line": 32
            },
            {
              "name": "Origin",
              "anchor": "TiledWorldMap.Origin",
              "recv": "TiledWorldMap",
              "decl": "func (m TiledWorldMap) Origin() core.Point",
              "doc": "Origin returns the map's top-left world position (X, Y) in points.\n",
              "file": "pkg/tilemap/tiled_world.go",
              "line": 27
            }
          ]
        },
        {
          "name": "TiledWorldPattern",
          "anchor": "TiledWorldPattern",
          "decl": "type TiledWorldPattern struct {\n\tRegexp      string\n\tMultiplierX int\n\tMultiplierY int\n\tOffsetX     int\n\tOffsetY     int\n\tMapWidth    int\n\tMapHeight   int\n\t// contains filtered or unexported fields\n}",
          "doc": "TiledWorldPattern describes one regex-based map grid pattern inside a Tiled .world file.\n\nCapturing group 1 gives the grid X index and capturing group 2 (when present) gives the grid Y index;\nthe world position is (gx*MultiplierX + OffsetX, gy*MultiplierY + OffsetY).\nFollowing Tiled's specification, MultiplierX/MapWidth and MultiplierY/MapHeight default to each other when one is 0.\n",
          "file": "pkg/tilemap/tiled_world.go",
          "line": 44,
          "members": [
            {
              "name": "Regexp",
              "anchor": "TiledWorldPattern.Regexp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MultiplierX",
              "anchor": "TiledWorldPattern.MultiplierX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MultiplierY",
              "anchor": "TiledWorldPattern.MultiplierY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetX",
              "anchor": "TiledWorldPattern.OffsetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffsetY",
              "anchor": "TiledWorldPattern.OffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MapWidth",
              "anchor": "TiledWorldPattern.MapWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MapHeight",
              "anchor": "TiledWorldPattern.MapHeight",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Match",
              "anchor": "TiledWorldPattern.Match",
              "recv": "*TiledWorldPattern",
              "decl": "func (p *TiledWorldPattern) Match(fileName string) (TiledWorldMap, bool)",
              "doc": "Match tests fileName against p's regular expression and returns its resolved TiledWorldMap when it matches.\nIf fileName includes a directory prefix and does not match directly, its base filename is tested as well.\n",
              "file": "pkg/tilemap/tiled_world.go",
              "line": 84
            }
          ]
        },
        {
          "name": "Tilemap",
          "anchor": "Tilemap",
          "decl": "type Tilemap struct {\n\tWidth      int\n\tHeight     int\n\tTileWidth  float32\n\tTileHeight float32\n\t// Origin is the world-space position of the map's local (0, 0) point (typically the top-left corner of cell (0, 0)).\n\t// Drawing, WorldBounds, TileOrigin, TileToWorld, WorldToTile, TilesInRect, Raycast, and AppendYSortTiles all honor Origin.\n\tOrigin        core.Point\n\tOrientation   Orientation\n\tStaggerAxis   StaggerAxis\n\tStaggerIndex  StaggerIndex\n\tHexSideLength float32\n\tInfinite      bool\n\tLayers        []TileLayer\n\tImageLayers   []ImageLayer\n\tTilesets      []*Tileset\n\tObjects       []ObjectLayer\n\tProperties    Properties\n\t// Neighbours lists adjacent or overlapping levels in a multi-level world (populated by LDtk loaders).\n\tNeighbours []LevelNeighbour\n\t// contains filtered or unexported fields\n}",
          "doc": "Tilemap is a tiled world of tile layers, image layers, tilesets, object layers, custom properties and per-tile collision flags.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 589,
          "members": [
            {
              "name": "Width",
              "anchor": "Tilemap.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Tilemap.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileWidth",
              "anchor": "Tilemap.TileWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileHeight",
              "anchor": "Tilemap.TileHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Origin",
              "anchor": "Tilemap.Origin",
              "kind": "field",
              "doc": "Origin is the world-space position of the map's local (0, 0) point (typically the top-left corner of cell (0, 0)).\nDrawing, WorldBounds, TileOrigin, TileToWorld, WorldToTile, TilesInRect, Raycast, and AppendYSortTiles all honor Origin."
            },
            {
              "name": "Orientation",
              "anchor": "Tilemap.Orientation",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StaggerAxis",
              "anchor": "Tilemap.StaggerAxis",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StaggerIndex",
              "anchor": "Tilemap.StaggerIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HexSideLength",
              "anchor": "Tilemap.HexSideLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Infinite",
              "anchor": "Tilemap.Infinite",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Layers",
              "anchor": "Tilemap.Layers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ImageLayers",
              "anchor": "Tilemap.ImageLayers",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tilesets",
              "anchor": "Tilemap.Tilesets",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Objects",
              "anchor": "Tilemap.Objects",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "Tilemap.Properties",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Neighbours",
              "anchor": "Tilemap.Neighbours",
              "kind": "field",
              "doc": "Neighbours lists adjacent or overlapping levels in a multi-level world (populated by LDtk loaders)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadLDtk",
              "anchor": "LoadLDtk",
              "decl": "func LoadLDtk(data []byte, levelIdentifier string, resolveImage func(relPath string) core.ImageSource) (*Tilemap, error)",
              "doc": "LoadLDtk parses an LDtk JSON project and builds a Tilemap for the level matching levelIdentifier (or the first level when levelIdentifier is empty).\n\nTiles (gridTiles), AutoLayer (autoLayerTiles), IntGrid (intGridCsv mapped to TileSolid/TileFlags plus optional autoLayerTiles), and Entities (entityInstances mapped to ObjectLayer with fieldInstances properties) are supported, including LDtk flip bits (bit 0 = FlipHorizontal, bit 1 = FlipVertical).\nFor Free and GridVania layouts, the returned Tilemap's Origin is set from the level's (worldX, worldY) and its Neighbours are populated from __neighbours.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/tilemap/ldtk.go",
              "line": 46
            },
            {
              "name": "LoadLDtkWith",
              "anchor": "LoadLDtkWith",
              "decl": "func LoadLDtkWith(data []byte, levelIdentifier string, opts LDtkOptions) (*Tilemap, error)",
              "doc": "LoadLDtkWith parses an LDtk JSON project with opts (including custom IntGrid-to-TileFlags mappings, such as those produced by project.File.LDtkOptions)\nand builds a Tilemap for the level matching levelIdentifier (or the first level when levelIdentifier is empty).\n",
              "file": "pkg/tilemap/ldtk.go",
              "line": 52
            },
            {
              "name": "LoadTiled",
              "anchor": "LoadTiled",
              "decl": "func LoadTiled(data []byte, resolve TilesetLoader) (*Tilemap, error)",
              "doc": "",
              "file": "pkg/tilemap/tiled.go",
              "line": 76
            },
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(width, height int, tileWidth, tileHeight float32, tilesets ...*Tileset) *Tilemap",
              "doc": "New constructs an empty Tilemap of width by height tiles sized tileWidth by tileHeight points.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 623
            },
            {
              "name": "NewInfinite",
              "anchor": "NewInfinite",
              "decl": "func NewInfinite(tileWidth, tileHeight float32, tilesets ...*Tileset) *Tilemap",
              "doc": "NewInfinite constructs an unbounded Tilemap with Infinite set to true.\nAdd sparse layers with NewChunkedTileLayer.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 219
            }
          ],
          "methods": [
            {
              "name": "AddTilesetDoc",
              "anchor": "Tilemap.AddTilesetDoc",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) AddTilesetDoc(doc *TilesetDoc, firstGID uint32, assets TilesetAssets) (*Tileset, error)",
              "doc": "AddTilesetDoc builds doc, which must validate, into a Tileset whose global tile IDs start at firstGID (1 when 0), resolving its image or atlas through assets, appends it to m.Tilesets in FirstGID order and sets the flags of its tiles on m (SetFlags). The new tileset carries doc's properties, per-tile properties, collision shapes, animations and terrain sets.\n\nIt refuses a tileset whose IDs would run past TileIDMask or overlap a tileset m already has, an atlas tileset without assets.Atlas, and atlas frames the atlas lacks.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 693
            },
            {
              "name": "AppendYSortTiles",
              "anchor": "Tilemap.AppendYSortTiles",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) AppendYSortTiles(dst []YSortTile, layer *TileLayer, cam *Camera) []YSortTile",
              "doc": "AppendYSortTiles appends every visible non-empty tile of layer overlapping cam.VisibleBounds()\n(or every non-empty tile when cam is nil) to dst in deterministic painter's order, returning the\nupdated slice.\n\nEach tile's SortY is its bottom edge in world coordinates (offY + tileOriginY + TileHeight) plus\nany per-tile PropSortOriginY offset. Animated tiles resolve to their current frame at call time.\nReusing dst across frames performs zero heap allocations once its capacity is warmed up.\n",
              "file": "pkg/tilemap/ysort.go",
              "line": 340
            },
            {
              "name": "ApplyAutotile",
              "anchor": "Tilemap.ApplyAutotile",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ApplyAutotile(layerIndex int, set AutotileSet, terrainID func(gid uint32) bool)",
              "doc": "ApplyAutotile updates every terrain cell in layerIndex using set's bitmask-to-GID mapping.\n\nterrainID reports whether a raw tile GID belongs to the terrain (nil treats any non-zero GID as terrain).\n",
              "file": "pkg/tilemap/autotile.go",
              "line": 225
            },
            {
              "name": "ApplyTerrain",
              "anchor": "Tilemap.ApplyTerrain",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ApplyTerrain(layerIndex int, terrainName string) bool",
              "doc": "ApplyTerrain updates every cell belonging to the named terrain in layerIndex using its autotile rules, returning false when the terrain is not defined on any tileset of m or layerIndex is out of range.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 180
            },
            {
              "name": "CacheDirtyChunks",
              "anchor": "Tilemap.CacheDirtyChunks",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) CacheDirtyChunks(layerIndex int, images map[string]image.Image) (int, error)",
              "doc": "CacheDirtyChunks bakes every dirty or uncached loaded chunk in the chunked layer at layerIndex\n(in deterministic (Y, X) order) and returns how many chunks were baked.\n",
              "file": "pkg/tilemap/cache.go",
              "line": 259
            },
            {
              "name": "CacheStaticChunk",
              "anchor": "Tilemap.CacheStaticChunk",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) CacheStaticChunk(layerIndex int, coord ChunkCoord, images map[string]image.Image) (*LayerCache, error)",
              "doc": "CacheStaticChunk bakes one loaded chunk of a sparse chunked layer into a premultiplied *image.RGBA buffer\nso Draw and DrawLayer draw that chunk in a single DrawImageFrom operation.\n\nIf the chunk is empty (all GIDs are 0), any existing cache on that chunk is cleared and (nil, nil) is returned.\nEditing a tile inside another chunk never invalidates this chunk's cache.\n",
              "file": "pkg/tilemap/cache.go",
              "line": 113
            },
            {
              "name": "CacheStaticLayer",
              "anchor": "Tilemap.CacheStaticLayer",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) CacheStaticLayer(layerIndex int, images map[string]image.Image) (*image.RGBA, core.ImageSource, error)",
              "doc": "CacheStaticLayer bakes a static (non-animated) tile layer into a premultiplied *image.RGBA buffer and attaches it to the map so Draw and DrawLayer draw the layer in a single DrawImageFrom operation.\n\nimages maps tileset image URIs (with or without an \"asset:\" prefix) or tileset names to decoded image.Image pixel data; tilesets whose core.ImageSource.Pixels is already populated do not need an entry in images.\nModifying the layer via SetTile or FillRect automatically marks the cache dirty.\n",
              "file": "pkg/tilemap/cache.go",
              "line": 303
            },
            {
              "name": "CellFlags",
              "anchor": "Tilemap.CellFlags",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) CellFlags(col, row int) (TileFlags, bool)",
              "doc": "CellFlags returns the per-cell override SetCellFlags set at (col, row) and whether one is set.\n",
              "file": "pkg/tilemap/shapes.go",
              "line": 261
            },
            {
              "name": "ChunkAt",
              "anchor": "Tilemap.ChunkAt",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ChunkAt(layerIndex int, coord ChunkCoord) *Chunk",
              "doc": "ChunkAt returns the loaded chunk at coord in layerIndex, or nil if layerIndex is out of range,\ndense, or does not currently have coord loaded.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 454
            },
            {
              "name": "ChunkCache",
              "anchor": "Tilemap.ChunkCache",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ChunkCache(layerIndex int, coord ChunkCoord) *LayerCache",
              "doc": "ChunkCache returns the static cache entry for coord in the chunked layer at layerIndex, or nil if absent or uncached.\n",
              "file": "pkg/tilemap/cache.go",
              "line": 78
            },
            {
              "name": "ChunkCoordForTile",
              "anchor": "Tilemap.ChunkCoordForTile",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ChunkCoordForTile(layerIndex, col, row int) (ChunkCoord, bool)",
              "doc": "ChunkCoordForTile converts tile (col, row) to the ChunkCoord owning it in layerIndex.\nReturns ok=false if layerIndex is out of range or not a chunked layer.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 463
            },
            {
              "name": "ClearCellFlags",
              "anchor": "Tilemap.ClearCellFlags",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ClearCellFlags(col, row int)",
              "doc": "ClearCellFlags removes any per-cell flag override at (col, row), restoring its tile-ID flags.\n",
              "file": "pkg/tilemap/query.go",
              "line": 75
            },
            {
              "name": "ClearChunkCache",
              "anchor": "Tilemap.ClearChunkCache",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ClearChunkCache(layerIndex int, coord ChunkCoord)",
              "doc": "ClearChunkCache removes the static cache for coord in layerIndex without affecting other chunks.\n",
              "file": "pkg/tilemap/cache.go",
              "line": 99
            },
            {
              "name": "ClearLayerCache",
              "anchor": "Tilemap.ClearLayerCache",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ClearLayerCache(layerIndex int)",
              "doc": "ClearLayerCache removes any cached image for layerIndex (or all per-chunk caches on a chunked layer).\n",
              "file": "pkg/tilemap/cache.go",
              "line": 58
            },
            {
              "name": "Draw",
              "anchor": "Tilemap.Draw",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) Draw(d *core.Drawing, cam *Camera)",
              "doc": "Draw draws every visible tile layer, image layer, and object layer (tile objects) into d in map layer order, culling to cam's visible world region when cam is non-nil.\n\nDraw draws in world coordinates: call cam.Apply(d) before Draw (and any world-space sprites) to position the view.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 879
            },
            {
              "name": "DrawImageLayer",
              "anchor": "Tilemap.DrawImageLayer",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) DrawImageLayer(d *core.Drawing, layer *ImageLayer, cam *Camera)",
              "doc": "DrawImageLayer draws one image layer into d, applying its visibility, opacity, tint, offset, parallax factor, and repeat flags.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 1069
            },
            {
              "name": "DrawLayer",
              "anchor": "Tilemap.DrawLayer",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) DrawLayer(d *core.Drawing, layer *TileLayer, cam *Camera)",
              "doc": "DrawLayer draws one tile layer into d, visiting only the visible tiles overlapping cam.VisibleBounds() when cam is non-nil.\n\nWhen layer.YSort is true, visible tiles are sorted in stable ascending SortY order (respecting per-tile PropSortOriginY offsets) and drawn individually without using any static layer cache.\nOtherwise, when the layer has a clean static cache created via CacheStaticLayer, DrawLayer draws it in a single DrawImageFrom operation.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 1197
            },
            {
              "name": "DrawObjectLayer",
              "anchor": "Tilemap.DrawObjectLayer",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) DrawObjectLayer(d *core.Drawing, layer *ObjectLayer, cam *Camera)",
              "doc": "DrawObjectLayer draws every visible tile object in layer into d in object order, applying layer visibility, opacity, tint, offset, parallax, object size, rotation, flip flags, tileset tileoffset, and tileset objectalignment, culling to cam.VisibleBounds() when cam is non-nil.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 922
            },
            {
              "name": "FillRect",
              "anchor": "Tilemap.FillRect",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) FillRect(layerIndex, col, row, w, h int, gid uint32)",
              "doc": "FillRect writes gid across [col, col+w) x [row, row+h) in layerIndex.\n\nOn dense layers, out-of-bounds portions are clipped; on sparse chunked layers, arbitrary negative and positive rectangles are supported\nand only chunks whose tiles actually change are marked Dirty and Modified. Non-positive sizes are ignored.\n",
              "file": "pkg/tilemap/runtime.go",
              "line": 125
            },
            {
              "name": "Flags",
              "anchor": "Tilemap.Flags",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) Flags(tileID uint32) TileFlags",
              "doc": "Flags returns the TileFlags set on global tile ID tileID with SetFlags or from its tileset's properties, ignoring flip bits and any per-cell override.\n",
              "file": "pkg/tilemap/shapes.go",
              "line": 252
            },
            {
              "name": "FlagsAt",
              "anchor": "Tilemap.FlagsAt",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) FlagsAt(col, row int) TileFlags",
              "doc": "FlagsAt returns the combined TileFlags at (col, row) across all tile layers, or 0 if out of bounds.\n",
              "file": "pkg/tilemap/query.go",
              "line": 84
            },
            {
              "name": "GridOrigin",
              "anchor": "Tilemap.GridOrigin",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) GridOrigin() (x, y float32)",
              "doc": "GridOrigin returns the world-space origin of cell (0, 0), satisfying physics.TileGridOrigin.\n",
              "file": "pkg/tilemap/physics.go",
              "line": 42
            },
            {
              "name": "GridSize",
              "anchor": "Tilemap.GridSize",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) GridSize() (cols, rows int)",
              "doc": "GridSize returns the map's width and height in tile columns and rows, satisfying physics.TileGrid.\n",
              "file": "pkg/tilemap/physics.go",
              "line": 34
            },
            {
              "name": "HasYSortLayers",
              "anchor": "Tilemap.HasYSortLayers",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) HasYSortLayers() bool",
              "doc": "HasYSortLayers reports whether m contains at least one visible tile layer with YSort enabled.\n",
              "file": "pkg/tilemap/ysort.go",
              "line": 162
            },
            {
              "name": "HexDistance",
              "anchor": "Tilemap.HexDistance",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) HexDistance(c1, r1, c2, r2 int) int",
              "doc": "HexDistance returns the grid step distance between hexagonal cells (c1, r1) and (c2, r2).\n",
              "file": "pkg/tilemap/projection.go",
              "line": 284
            },
            {
              "name": "HexNeighbors",
              "anchor": "Tilemap.HexNeighbors",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) HexNeighbors(col, row int) [6][2]int",
              "doc": "HexNeighbors returns the 6 hexagonal neighbors of offset cell (col, row) for the map's StaggerAxis and StaggerIndex.\n",
              "file": "pkg/tilemap/projection.go",
              "line": 273
            },
            {
              "name": "ImageLayer",
              "anchor": "Tilemap.ImageLayer",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ImageLayer(name string) *ImageLayer",
              "doc": "ImageLayer returns the first image layer with the given name, or nil if none matches.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 686
            },
            {
              "name": "InvalidateChunkCache",
              "anchor": "Tilemap.InvalidateChunkCache",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) InvalidateChunkCache(layerIndex int, coord ChunkCoord)",
              "doc": "InvalidateChunkCache marks only the chunk at coord in layerIndex dirty without disturbing other chunks.\n",
              "file": "pkg/tilemap/cache.go",
              "line": 87
            },
            {
              "name": "InvalidateLayerCache",
              "anchor": "Tilemap.InvalidateLayerCache",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) InvalidateLayerCache(layerIndex int)",
              "doc": "InvalidateLayerCache marks any cached image for layerIndex dirty so subsequent Draw calls fall back to live tile drawing until recached.\nFor sparse chunked layers, all loaded chunks in layerIndex are marked dirty.\n",
              "file": "pkg/tilemap/cache.go",
              "line": 34
            },
            {
              "name": "Layer",
              "anchor": "Tilemap.Layer",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) Layer(name string) *TileLayer",
              "doc": "Layer returns the first tile layer with the given name, or nil if none matches.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 676
            },
            {
              "name": "LayerCache",
              "anchor": "Tilemap.LayerCache",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) LayerCache(layerIndex int) *LayerCache",
              "doc": "LayerCache returns the static cache entry for layerIndex, or nil if that layer has not been cached.\n",
              "file": "pkg/tilemap/cache.go",
              "line": 25
            },
            {
              "name": "ObjectLayer",
              "anchor": "Tilemap.ObjectLayer",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) ObjectLayer(name string) *ObjectLayer",
              "doc": "ObjectLayer returns the first object layer with the given name, or nil if none matches.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 696
            },
            {
              "name": "PutChunk",
              "anchor": "Tilemap.PutChunk",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) PutChunk(layerIndex int, chunk *Chunk) error",
              "doc": "PutChunk installs chunk into the chunked layer at layerIndex, replacing any existing chunk at chunk.Coord.\n\nchunk.Size must match the layer's EffectiveChunkSize() and len(chunk.Tiles) must equal chunk.Size*chunk.Size.\nThe installed chunk's Dirty flag is set to true so any static chunk cache is rebuilt, while chunk.Modified is preserved as passed.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 480
            },
            {
              "name": "Raycast",
              "anchor": "Tilemap.Raycast",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) Raycast(from, to core.Point, mask TileFlags) (RaycastHit, bool)",
              "doc": "Raycast traces the line segment from -> to and returns the first tile matching mask (or any non-empty tile when mask == 0).\n",
              "file": "pkg/tilemap/query.go",
              "line": 327
            },
            {
              "name": "RemoveChunk",
              "anchor": "Tilemap.RemoveChunk",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) RemoveChunk(layerIndex int, coord ChunkCoord) *Chunk",
              "doc": "RemoveChunk unloads and returns the chunk at coord from layerIndex (clearing its static cache),\nor returns nil if layerIndex is out of range, dense, or coord is not loaded.\n",
              "file": "pkg/tilemap/chunk.go",
              "line": 512
            },
            {
              "name": "SetAutotile",
              "anchor": "Tilemap.SetAutotile",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) SetAutotile(layerIndex, col, row int, placed bool, set AutotileSet, terrainID func(gid uint32) bool)",
              "doc": "SetAutotile places (placed=true) or removes (placed=false) a terrain tile at (col, row) in layerIndex and updates that cell and all 8 surrounding terrain neighbors cleanly.\n\nterrainID reports whether a raw tile GID belongs to the terrain (nil treats any non-zero GID as terrain).\n",
              "file": "pkg/tilemap/autotile.go",
              "line": 305
            },
            {
              "name": "SetCellFlags",
              "anchor": "Tilemap.SetCellFlags",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) SetCellFlags(col, row int, flags TileFlags)",
              "doc": "SetCellFlags overrides the flags at a single map cell (col, row), taking precedence over per-tile flags.\nOn maps with sparse chunked layers (or Infinite=true), negative and arbitrary positive coordinates are supported.\n",
              "file": "pkg/tilemap/query.go",
              "line": 60
            },
            {
              "name": "SetFlags",
              "anchor": "Tilemap.SetFlags",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) SetFlags(tileID uint32, flags TileFlags)",
              "doc": "SetFlags sets the TileFlags associated with global tile ID tileID (flip bits are ignored).\n",
              "file": "pkg/tilemap/query.go",
              "line": 39
            },
            {
              "name": "SetLayerYSort",
              "anchor": "Tilemap.SetLayerYSort",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) SetLayerYSort(layerIndex int, enabled bool)",
              "doc": "SetLayerYSort enables or disables per-tile Y-sorting on m.Layers[layerIndex].\nOut-of-range layer indices are ignored.\n",
              "file": "pkg/tilemap/ysort.go",
              "line": 154
            },
            {
              "name": "SetTerrain",
              "anchor": "Tilemap.SetTerrain",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) SetTerrain(layerIndex, col, row int, set *WangSet, terrain uint8, rng TerrainRand)",
              "doc": "SetTerrain paints terrain (1-based index into set.Colors, or 0 to erase) at (col, row) in layerIndex,\nchoosing tiles matching every neighbor's shared edges and corners for corner, edge, and mixed Wang sets.\n\nWorks on both orthogonal and isometric maps as well as dense and sparse chunked layers.\nWhen multiple tiles tie for best match, SetTerrain picks deterministically by tile probability using rng\n(or the lowest local TileID when rng is nil).\n",
              "file": "pkg/tilemap/wang.go",
              "line": 491
            },
            {
              "name": "SetTerrainRect",
              "anchor": "Tilemap.SetTerrainRect",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) SetTerrainRect(layerIndex, col, row, w, h int, set *WangSet, terrain uint8, rng TerrainRand)",
              "doc": "SetTerrainRect paints terrain (1-based index into set.Colors, or 0 to erase) across [col, col+w) x [row, row+h)\nin layerIndex, updating painted cells and all affected neighbors so multi-terrain transitions remain seamless.\n\nOn dense layers, out-of-bounds portions are clipped; on sparse chunked layers, arbitrary negative and positive\nrectangles are supported. Non-positive sizes are ignored.\n",
              "file": "pkg/tilemap/wang.go",
              "line": 500
            },
            {
              "name": "SetTerrainTile",
              "anchor": "Tilemap.SetTerrainTile",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) SetTerrainTile(layerIndex, col, row int, terrainName string, placed bool) bool",
              "doc": "SetTerrainTile places (placed=true) or removes (placed=false) a tile of the named terrain at (col, row) in layerIndex and updates that cell and its neighbors using SetAutotile, returning false when the terrain is not defined on any tileset of m or layerIndex is out of range.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 193
            },
            {
              "name": "SetTile",
              "anchor": "Tilemap.SetTile",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) SetTile(layerIndex, col, row int, gid uint32)",
              "doc": "SetTile writes a raw GID at (col, row) in layerIndex; out-of-bounds calls on dense layers are ignored.\n\nOn sparse chunked layers, arbitrary negative and positive coordinates are supported, allocating a chunk on demand when gid != 0,\nand marking only that chunk Dirty and Modified (leaving all other chunks and their static caches clean).\nOn dense layers, any cached static image for layerIndex is marked dirty so subsequent draws reflect the change immediately,\nand collision queries (FlagsAt, TilesInRect, Raycast) observe the updated tile at once.\n",
              "file": "pkg/tilemap/runtime.go",
              "line": 91
            },
            {
              "name": "SetTileSortOriginY",
              "anchor": "Tilemap.SetTileSortOriginY",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) SetTileSortOriginY(gid uint32, offsetY float32)",
              "doc": "SetTileSortOriginY sets the per-tile vertical Y-sort origin offset (in points relative to the\ntile's default bottom edge) on gid's tileset under PropSortOriginY.\n\nNegative values shift the sort line upward (for example into a tall tree's trunk);\npositive values shift it downward.\n",
              "file": "pkg/tilemap/ysort.go",
              "line": 180
            },
            {
              "name": "Terrain",
              "anchor": "Tilemap.Terrain",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) Terrain(name string) *Terrain",
              "doc": "Terrain returns the terrain set named name of the first of m's tilesets that defines one, or nil.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 165
            },
            {
              "name": "TileAt",
              "anchor": "Tilemap.TileAt",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileAt(layerIndex, col, row int) uint32",
              "doc": "TileAt returns the raw GID (including flip flags) at (col, row) in layerIndex, or 0 if out of bounds or unloaded.\nFor sparse chunked layers, negative and arbitrary positive coordinates are supported.\n",
              "file": "pkg/tilemap/runtime.go",
              "line": 66
            },
            {
              "name": "TileBox",
              "anchor": "Tilemap.TileBox",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileBox(gid uint32) (width, height float32)",
              "doc": "TileBox returns the size of gid's tile in its tileset, which is the box its collision shapes are measured in, falling back to the map's tile size when the tileset gives none or gid has no tileset.\n",
              "file": "pkg/tilemap/shapes.go",
              "line": 83
            },
            {
              "name": "TileChangesSince",
              "anchor": "Tilemap.TileChangesSince",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileChangesSince(rev uint64, fn func(col, row int)) (current uint64, ok bool)",
              "doc": "TileChangesSince calls fn for each cell (col, row) whose tile or per-cell flags changed (through SetTile, FillRect, SetCellFlags or ClearCellFlags) since rev, and returns the current revision and whether every change since rev fit in the log.\n\nWhen ok is false (for example after a bulk FillRect, a PutChunk or RemoveChunk, a SetFlags call, which can change every cell showing the tile, or more edits than the log holds), callers should rebuild from the full map.\n",
              "file": "pkg/tilemap/runtime.go",
              "line": 44
            },
            {
              "name": "TileCollisionGroup",
              "anchor": "Tilemap.TileCollisionGroup",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileCollisionGroup(gid uint32) (ObjectLayer, bool)",
              "doc": "TileCollisionGroup returns the collision ObjectLayer authored on gid's tile in its tileset (flip bits ignored), and whether the tile defines one.\n",
              "file": "pkg/tilemap/shapes.go",
              "line": 49
            },
            {
              "name": "TileFlagsAt",
              "anchor": "Tilemap.TileFlagsAt",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileFlagsAt(col, row int) physics.TileFlags",
              "doc": "TileFlagsAt returns the collision flags at (col, row) mapped to physics.TileFlags, satisfying physics.TileGrid.\n",
              "file": "pkg/tilemap/physics.go",
              "line": 50
            },
            {
              "name": "TileOrigin",
              "anchor": "Tilemap.TileOrigin",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileOrigin(col, row int) core.Point",
              "doc": "TileOrigin returns the top-left corner of tile (col, row)'s bounding box in world coordinates.\n",
              "file": "pkg/tilemap/projection.go",
              "line": 62
            },
            {
              "name": "TileProperties",
              "anchor": "Tilemap.TileProperties",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileProperties(gid uint32) Properties",
              "doc": "TileProperties returns the custom properties attached to gid in its tileset, or nil if none exist.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 806
            },
            {
              "name": "TileRevision",
              "anchor": "Tilemap.TileRevision",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileRevision() uint64",
              "doc": "TileRevision returns a counter incremented whenever SetTile, FillRect, PutChunk or RemoveChunk changes a tile cell, or SetFlags, SetCellFlags or ClearCellFlags changes collision flags.\n",
              "file": "pkg/tilemap/runtime.go",
              "line": 34
            },
            {
              "name": "TileShapes",
              "anchor": "Tilemap.TileShapes",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileShapes(gid uint32) []TileShape",
              "doc": "TileShapes returns the collision shapes of gid's tile, flipped and rotated by gid's flip bits in the coordinates of its tileset's tile, or nil when the tile has none.\n\nAn unflipped gid returns the tileset's own slice, which the caller must not modify.\n",
              "file": "pkg/tilemap/shapes.go",
              "line": 64
            },
            {
              "name": "TileSize",
              "anchor": "Tilemap.TileSize",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileSize() (width, height float32)",
              "doc": "TileSize returns the width and height of one tile in world coordinates, satisfying physics.TileGrid.\n",
              "file": "pkg/tilemap/physics.go",
              "line": 26
            },
            {
              "name": "TileSortOriginY",
              "anchor": "Tilemap.TileSortOriginY",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileSortOriginY(gid uint32) float32",
              "doc": "TileSortOriginY returns the per-tile vertical Y-sort origin offset configured on gid\n(checking PropSortOriginY, \"y_sort_origin\", and \"ysort_origin\"), or 0 if unset.\n",
              "file": "pkg/tilemap/ysort.go",
              "line": 205
            },
            {
              "name": "TileToWorld",
              "anchor": "Tilemap.TileToWorld",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TileToWorld(col, row int) core.Point",
              "doc": "TileToWorld returns the world-space center of tile (col, row) for the map's Orientation and Origin.\n\nWorldToTile(TileToWorld(col, row)) round-trips back to (col, row) for orthogonal, isometric, staggered, and hexagonal maps.\n",
              "file": "pkg/tilemap/projection.go",
              "line": 121
            },
            {
              "name": "TilesInRect",
              "anchor": "Tilemap.TilesInRect",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TilesInRect(r core.Bounds, mask TileFlags) []TileHit",
              "doc": "TilesInRect returns every map cell overlapping r whose flags match mask (or every non-empty cell when mask == 0), in row-major order.\n\nCells are half-open [col*TileWidth, (col+1)*TileWidth) x [row*TileHeight, (row+1)*TileHeight), so a rectangle touching an adjacent tile's edge or corner does not include it.\n",
              "file": "pkg/tilemap/query.go",
              "line": 263
            },
            {
              "name": "TilesetForGID",
              "anchor": "Tilemap.TilesetForGID",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) TilesetForGID(gid uint32) (*Tileset, uint32)",
              "doc": "TilesetForGID finds the tileset owning gid and returns it along with the 0-based local tile ID.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 779
            },
            {
              "name": "Update",
              "anchor": "Tilemap.Update",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) Update(dt time.Duration)",
              "doc": "Update advances all animated tiles in every tileset by dt.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 815
            },
            {
              "name": "VisitLayers",
              "anchor": "Tilemap.VisitLayers",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) VisitLayers(fn func(tile *TileLayer, img *ImageLayer))",
              "doc": "VisitLayers calls fn for every tile layer and image layer of m in map draw order.\nExactly one of tile or img is non-nil on each call.\n",
              "file": "pkg/tilemap/ysort.go",
              "line": 236
            },
            {
              "name": "WangSet",
              "anchor": "Tilemap.WangSet",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) WangSet(name string) *WangSet",
              "doc": "WangSet returns the first WangSet named name across all tilesets of m, or nil if none matches.\n",
              "file": "pkg/tilemap/wang.go",
              "line": 140
            },
            {
              "name": "WorldBounds",
              "anchor": "Tilemap.WorldBounds",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) WorldBounds() core.Bounds",
              "doc": "WorldBounds returns the world rectangle covering the whole map for its Orientation and Origin.\nFor unbounded chunked maps with non-positive Width/Height, it returns the bounding box of currently loaded chunks.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 635
            },
            {
              "name": "WorldToTile",
              "anchor": "Tilemap.WorldToTile",
              "recv": "*Tilemap",
              "decl": "func (m *Tilemap) WorldToTile(p core.Point) (col, row int)",
              "doc": "WorldToTile converts a world-space point into the (col, row) tile coordinates containing it for the map's Orientation and Origin.\n",
              "file": "pkg/tilemap/projection.go",
              "line": 130
            }
          ]
        },
        {
          "name": "Tileset",
          "anchor": "Tileset",
          "decl": "type Tileset struct {\n\tName     string\n\tFirstGID uint32\n\tImage    core.ImageSource\n\tAtlas    *sprite.Atlas\n\tFrames   []sprite.Frame\n\t// TileImages holds per-tile images for image-collection tilesets, keyed by 0-based local tile ID.\n\tTileImages      map[uint32]TileImage\n\tTileWidth       float32\n\tTileHeight      float32\n\tTileOffsetX     float32\n\tTileOffsetY     float32\n\tObjectAlignment ObjectAlignment\n\tColumns         int\n\tTileCount       int\n\tSpacing         float32\n\tMargin          float32\n\tProperties      Properties\n\t// TileProperties holds custom properties keyed by 0-based local tile ID.\n\tTileProperties map[uint32]Properties\n\t// TileProbabilities holds per-tile random selection weights keyed by 0-based local tile ID (unset defaults to 1).\n\tTileProbabilities map[uint32]float64\n\t// Animations holds tile animations keyed by 0-based local tile ID.\n\tAnimations map[uint32]*TileAnimation\n\t// TileCollisions holds each tile's collision object group as authored in Tiled's collision editor (.tmj/.tsj/.tmx/.tsx), keyed by 0-based local tile ID.\n\tTileCollisions map[uint32]*ObjectLayer\n\t// Shapes holds the collision shapes of tiles keyed by 0-based local tile ID, such as the ones Tiled's collision editor draws; an animated tile keeps the shapes of its own ID whichever frame shows.\n\tShapes map[uint32][]TileShape\n\t// WangSets holds Tiled Wang sets (terrain sets) defined on this tileset.\n\tWangSets []WangSet\n\t// Terrains are the tileset's terrain sets, such as the ones a YAML tileset defines (TilesetDoc.Terrains), in their order there; Tilemap.Terrain finds one by name.\n\tTerrains []*Terrain\n}",
          "doc": "Tileset maps global tile IDs starting at FirstGID to rectangles of a grid image, frames of a sprite.Atlas, or per-tile images of an image-collection tileset.\n",
          "file": "pkg/tilemap/tilemap.go",
          "line": 234,
          "members": [
            {
              "name": "Name",
              "anchor": "Tileset.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FirstGID",
              "anchor": "Tileset.FirstGID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Image",
              "anchor": "Tileset.Image",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Atlas",
              "anchor": "Tileset.Atlas",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Frames",
              "anchor": "Tileset.Frames",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileImages",
              "anchor": "Tileset.TileImages",
              "kind": "field",
              "doc": "TileImages holds per-tile images for image-collection tilesets, keyed by 0-based local tile ID."
            },
            {
              "name": "TileWidth",
              "anchor": "Tileset.TileWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileHeight",
              "anchor": "Tileset.TileHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileOffsetX",
              "anchor": "Tileset.TileOffsetX",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileOffsetY",
              "anchor": "Tileset.TileOffsetY",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ObjectAlignment",
              "anchor": "Tileset.ObjectAlignment",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Columns",
              "anchor": "Tileset.Columns",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileCount",
              "anchor": "Tileset.TileCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Spacing",
              "anchor": "Tileset.Spacing",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Margin",
              "anchor": "Tileset.Margin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "Tileset.Properties",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TileProperties",
              "anchor": "Tileset.TileProperties",
              "kind": "field",
              "doc": "TileProperties holds custom properties keyed by 0-based local tile ID."
            },
            {
              "name": "TileProbabilities",
              "anchor": "Tileset.TileProbabilities",
              "kind": "field",
              "doc": "TileProbabilities holds per-tile random selection weights keyed by 0-based local tile ID (unset defaults to 1)."
            },
            {
              "name": "Animations",
              "anchor": "Tileset.Animations",
              "kind": "field",
              "doc": "Animations holds tile animations keyed by 0-based local tile ID."
            },
            {
              "name": "TileCollisions",
              "anchor": "Tileset.TileCollisions",
              "kind": "field",
              "doc": "TileCollisions holds each tile's collision object group as authored in Tiled's collision editor (.tmj/.tsj/.tmx/.tsx), keyed by 0-based local tile ID."
            },
            {
              "name": "Shapes",
              "anchor": "Tileset.Shapes",
              "kind": "field",
              "doc": "Shapes holds the collision shapes of tiles keyed by 0-based local tile ID, such as the ones Tiled's collision editor draws; an animated tile keeps the shapes of its own ID whichever frame shows."
            },
            {
              "name": "WangSets",
              "anchor": "Tileset.WangSets",
              "kind": "field",
              "doc": "WangSets holds Tiled Wang sets (terrain sets) defined on this tileset."
            },
            {
              "name": "Terrains",
              "anchor": "Tileset.Terrains",
              "kind": "field",
              "doc": "Terrains are the tileset's terrain sets, such as the ones a YAML tileset defines (TilesetDoc.Terrains), in their order there; Tilemap.Terrain finds one by name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewAtlasTileset",
              "anchor": "NewAtlasTileset",
              "decl": "func NewAtlasTileset(firstGID uint32, atlas *sprite.Atlas, frameNames ...string) *Tileset",
              "doc": "NewAtlasTileset builds a Tileset from atlas whose local tile IDs (0, 1, ...) correspond to frameNames in order.\n\nFirstGID defaults to 1 when 0.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 302
            },
            {
              "name": "NewGridTileset",
              "anchor": "NewGridTileset",
              "decl": "func NewGridTileset(firstGID uint32, img core.ImageSource, tileWidth, tileHeight float32, columns, tileCount int) *Tileset",
              "doc": "NewGridTileset builds a uniform grid Tileset over img with columns tiles per row.\n\nFirstGID defaults to 1 when 0.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 335
            }
          ],
          "methods": [
            {
              "name": "TileProbability",
              "anchor": "Tileset.TileProbability",
              "recv": "*Tileset",
              "decl": "func (ts *Tileset) TileProbability(localID uint32) float64",
              "doc": "TileProbability returns the selection probability for localID, defaulting to 1 when unset.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 269
            },
            {
              "name": "WangSet",
              "anchor": "Tileset.WangSet",
              "recv": "*Tileset",
              "decl": "func (ts *Tileset) WangSet(name string) *WangSet",
              "doc": "WangSet returns the first WangSet on ts with the given name, or nil if none matches.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 279
            },
            {
              "name": "WangSetAt",
              "anchor": "Tileset.WangSetAt",
              "recv": "*Tileset",
              "decl": "func (ts *Tileset) WangSetAt(index int) *WangSet",
              "doc": "WangSetAt returns the WangSet at index in ts.WangSets, or nil if index is out of range.\n",
              "file": "pkg/tilemap/tilemap.go",
              "line": 292
            }
          ]
        },
        {
          "name": "TilesetAssets",
          "anchor": "TilesetAssets",
          "decl": "type TilesetAssets struct {\n\t// Image returns the image at a tileset's Image path. When nil the image is core.ImageSource{URI: path}.\n\tImage func(path string) (core.ImageSource, error)\n\t// Atlas returns the atlas a tileset's Atlas names. It is required for an atlas tileset.\n\tAtlas func(name string) (*sprite.Atlas, error)\n}",
          "doc": "TilesetAssets resolves the image or atlas a TilesetDoc draws from, for Tilemap.AddTilesetDoc.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 132,
          "members": [
            {
              "name": "Image",
              "anchor": "TilesetAssets.Image",
              "kind": "field",
              "doc": "Image returns the image at a tileset's Image path. When nil the image is core.ImageSource{URI: path}."
            },
            {
              "name": "Atlas",
              "anchor": "TilesetAssets.Atlas",
              "kind": "field",
              "doc": "Atlas returns the atlas a tileset's Atlas names. It is required for an atlas tileset."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TilesetDoc",
          "anchor": "TilesetDoc",
          "decl": "type TilesetDoc struct {\n\t// Version is the schema version; it must be 1.\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Name is the tileset's human-readable name.\n\tName string `yaml:\"name,omitempty\"`\n\t// TileWidth and TileHeight are each tile's size in points; both must be positive.\n\tTileWidth  int `yaml:\"tileWidth\" schema:\"required,exclusiveMinimum=0\"`\n\tTileHeight int `yaml:\"tileHeight\" schema:\"required,exclusiveMinimum=0\"`\n\t// Image is the grid image the tiles are cut from, a slash-separated path from the project root such as \"tiles/cave.png\". It requires Columns and TileCount.\n\tImage string `yaml:\"image,omitempty\"`\n\t// Columns is how many tiles one row of Image holds.\n\tColumns int `yaml:\"columns,omitempty\" schema:\"minimum=0\"`\n\t// TileCount is how many tiles Image holds, at most MaxTilesetTiles.\n\tTileCount int `yaml:\"tileCount,omitempty\" schema:\"minimum=0\"`\n\t// Spacing is the gap in points between neighbouring tiles of Image, and Margin the gap around its edge.\n\tSpacing int `yaml:\"spacing,omitempty\" schema:\"minimum=0\"`\n\tMargin  int `yaml:\"margin,omitempty\" schema:\"minimum=0\"`\n\t// Atlas names the sprite atlas the tiles are frames of, as a scene's sprites name atlases. It requires Frames.\n\tAtlas string `yaml:\"atlas,omitempty\"`\n\t// Frames are the names of Atlas's frames that are the tiles, in local ID order, at most MaxTilesetTiles and each named once.\n\tFrames []string `yaml:\"frames,omitempty\"`\n\t// Properties are custom properties of the whole tileset, each a bool, an integer, a number or a string. EncodeTileset writes a whole-number float with a decimal point (2.0), so that it reads back as a float.\n\tProperties map[string]any `yaml:\"properties,omitempty\"`\n\t// Terrains are the terrain sets the tiles' Terrain fields name, each with a unique name.\n\tTerrains []TerrainDoc `yaml:\"terrains,omitempty\"`\n\t// Tiles describe the tiles that carry anything beyond their picture, in ascending ID order with each ID at most once. A tile left out has no properties, flags, shapes, animation or terrain.\n\tTiles []TileDoc `yaml:\"tiles,omitempty\"`\n}",
          "doc": "TilesetDoc is a versioned YAML tileset (*.tileset.yaml), the text counterpart of Godot's TileSet resource: what each tile of one image or sprite atlas is, its custom properties, collision flags and shapes, animation and terrain, defined once so that maps only place tiles. Tilemap.AddTilesetDoc builds it into a Tileset.\n\nA tileset draws its tiles either from a grid image (Image, Columns and TileCount, with optional Spacing and Margin) or from frames of a sprite atlas (Atlas and Frames); exactly one of Image and Atlas is set. A tile's local ID is its index in the grid, row by row from the top left, or in Frames, starting at 0.\n",
          "file": "pkg/tilemap/tileset_doc.go",
          "line": 40,
          "members": [
            {
              "name": "Version",
              "anchor": "TilesetDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must be 1."
            },
            {
              "name": "Name",
              "anchor": "TilesetDoc.Name",
              "kind": "field",
              "doc": "Name is the tileset's human-readable name."
            },
            {
              "name": "TileWidth",
              "anchor": "TilesetDoc.TileWidth",
              "kind": "field",
              "doc": "TileWidth and TileHeight are each tile's size in points; both must be positive."
            },
            {
              "name": "TileHeight",
              "anchor": "TilesetDoc.TileHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Image",
              "anchor": "TilesetDoc.Image",
              "kind": "field",
              "doc": "Image is the grid image the tiles are cut from, a slash-separated path from the project root such as \"tiles/cave.png\". It requires Columns and TileCount."
            },
            {
              "name": "Columns",
              "anchor": "TilesetDoc.Columns",
              "kind": "field",
              "doc": "Columns is how many tiles one row of Image holds."
            },
            {
              "name": "TileCount",
              "anchor": "TilesetDoc.TileCount",
              "kind": "field",
              "doc": "TileCount is how many tiles Image holds, at most MaxTilesetTiles."
            },
            {
              "name": "Spacing",
              "anchor": "TilesetDoc.Spacing",
              "kind": "field",
              "doc": "Spacing is the gap in points between neighbouring tiles of Image, and Margin the gap around its edge."
            },
            {
              "name": "Margin",
              "anchor": "TilesetDoc.Margin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Atlas",
              "anchor": "TilesetDoc.Atlas",
              "kind": "field",
              "doc": "Atlas names the sprite atlas the tiles are frames of, as a scene's sprites name atlases. It requires Frames."
            },
            {
              "name": "Frames",
              "anchor": "TilesetDoc.Frames",
              "kind": "field",
              "doc": "Frames are the names of Atlas's frames that are the tiles, in local ID order, at most MaxTilesetTiles and each named once."
            },
            {
              "name": "Properties",
              "anchor": "TilesetDoc.Properties",
              "kind": "field",
              "doc": "Properties are custom properties of the whole tileset, each a bool, an integer, a number or a string. EncodeTileset writes a whole-number float with a decimal point (2.0), so that it reads back as a float."
            },
            {
              "name": "Terrains",
              "anchor": "TilesetDoc.Terrains",
              "kind": "field",
              "doc": "Terrains are the terrain sets the tiles' Terrain fields name, each with a unique name."
            },
            {
              "name": "Tiles",
              "anchor": "TilesetDoc.Tiles",
              "kind": "field",
              "doc": "Tiles describe the tiles that carry anything beyond their picture, in ascending ID order with each ID at most once. A tile left out has no properties, flags, shapes, animation or terrain."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadTilesetFS",
              "anchor": "LoadTilesetFS",
              "decl": "func LoadTilesetFS(fsys fs.FS, path string) (*TilesetDoc, error)",
              "doc": "LoadTilesetFS reads the tileset file at path from fsys and parses it with ParseTileset, naming the file in its errors.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 366
            },
            {
              "name": "ParseTileset",
              "anchor": "ParseTileset",
              "decl": "func ParseTileset(data []byte) (*TilesetDoc, error)",
              "doc": "ParseTileset decodes and validates a YAML tileset document (ValidateTileset), refusing unknown fields, a key given twice and a trailing document.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read data from a file names it with loaderr.WithFile.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 357
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "TilesetDoc.Clone",
              "recv": "*TilesetDoc",
              "decl": "func (doc *TilesetDoc) Clone() *TilesetDoc",
              "doc": "Clone returns a deep copy of doc, or nil when doc is nil.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 206
            },
            {
              "name": "Count",
              "anchor": "TilesetDoc.Count",
              "recv": "*TilesetDoc",
              "decl": "func (doc *TilesetDoc) Count() int",
              "doc": "Count returns how many tiles doc defines: its TileCount for a grid image, or the length of its Frames for an atlas.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 344
            },
            {
              "name": "Terrain",
              "anchor": "TilesetDoc.Terrain",
              "recv": "*TilesetDoc",
              "decl": "func (doc *TilesetDoc) Terrain(name string, firstGID uint32) *Terrain",
              "doc": "Terrain builds and returns the named terrain set from doc with global tile IDs starting at firstGID (1 when 0), or nil if doc defines no terrain with that name.\n",
              "file": "pkg/tilemap/tileset_doc.go",
              "line": 311
            }
          ]
        },
        {
          "name": "TilesetLoader",
          "anchor": "TilesetLoader",
          "decl": "type TilesetLoader struct {\n\t// LoadTileset reads the raw bytes of an external tileset file (.tsx or .tsj) given its source path in the map (or resolved relative to a template's directory).\n\t// When nil, LoadTiled falls back to LoadJSON.\n\tLoadTileset func(source string) ([]byte, error)\n\t// LoadJSON reads the raw bytes of an external tileset file (.tsj or .tsx) given its source path in the map.\n\t// Kept for compatibility with existing callers; used when LoadTileset is nil.\n\tLoadJSON func(source string) ([]byte, error)\n\t// LoadTemplate reads the raw bytes of an external object template file (.tx or .tj) given its source path in the map.\n\tLoadTemplate func(source string) ([]byte, error)\n\t// LoadImage returns the ImageSource for a tileset, tile, or image-layer image path (resolved relative to the external tileset's or template's directory when loaded from one).\n\tLoadImage func(imagePath string) (core.ImageSource, error)\n}",
          "doc": "TilesetLoader resolves external tileset files, object template files, and images referenced by a Tiled map.\n\nAny callback may be nil: LoadTileset (or LoadJSON as a fallback) is only needed when the map or a template references an external .tsx or .tsj tileset, LoadTemplate is only needed when an object references an external .tx or .tj template, and LoadImage defaults to core.ImageSource{URI: imagePath}.\n",
          "file": "pkg/tilemap/tiled.go",
          "line": 23,
          "members": [
            {
              "name": "LoadTileset",
              "anchor": "TilesetLoader.LoadTileset",
              "kind": "field",
              "doc": "LoadTileset reads the raw bytes of an external tileset file (.tsx or .tsj) given its source path in the map (or resolved relative to a template's directory).\nWhen nil, LoadTiled falls back to LoadJSON."
            },
            {
              "name": "LoadJSON",
              "anchor": "TilesetLoader.LoadJSON",
              "kind": "field",
              "doc": "LoadJSON reads the raw bytes of an external tileset file (.tsj or .tsx) given its source path in the map.\nKept for compatibility with existing callers; used when LoadTileset is nil."
            },
            {
              "name": "LoadTemplate",
              "anchor": "TilesetLoader.LoadTemplate",
              "kind": "field",
              "doc": "LoadTemplate reads the raw bytes of an external object template file (.tx or .tj) given its source path in the map."
            },
            {
              "name": "LoadImage",
              "anchor": "TilesetLoader.LoadImage",
              "kind": "field",
              "doc": "LoadImage returns the ImageSource for a tileset, tile, or image-layer image path (resolved relative to the external tileset's or template's directory when loaded from one)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WangColor",
          "anchor": "WangColor",
          "decl": "type WangColor struct {\n\tName        string\n\tColor       core.Color\n\tTile        int // 0-based local representative tile ID, or -1 if unset\n\tProbability float64\n\tClass       string\n\tProperties  Properties\n\t// contains filtered or unexported fields\n}",
          "doc": "WangColor describes one terrain color in a Tiled WangSet.\nIts 1-based terrain index in WangID values is its slice index + 1.\n",
          "file": "pkg/tilemap/wang.go",
          "line": 63,
          "members": [
            {
              "name": "Name",
              "anchor": "WangColor.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Color",
              "anchor": "WangColor.Color",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tile",
              "anchor": "WangColor.Tile",
              "kind": "field",
              "doc": "0-based local representative tile ID, or -1 if unset"
            },
            {
              "name": "Probability",
              "anchor": "WangColor.Probability",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Class",
              "anchor": "WangColor.Class",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "WangColor.Properties",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WangID",
          "anchor": "WangID",
          "decl": "type WangID [8]uint8",
          "doc": "WangID holds the 8 terrain color indices around a tile in Tiled's clockwise order:\n[Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, TopLeft].\n\nTerrain indices are 1-based (1..len(WangSet.Colors)); 0 means unset or empty.\n",
          "file": "pkg/tilemap/wang.go",
          "line": 59,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WangSet",
          "anchor": "WangSet",
          "decl": "type WangSet struct {\n\tName       string\n\tType       WangSetType\n\tTile       int // 0-based local representative tile ID, or -1 if unset\n\tClass      string\n\tFirstGID   uint32 // FirstGID of the owning Tileset (defaults to 1 when 0)\n\tColors     []WangColor\n\tWangTiles  []WangTile\n\tProperties Properties\n\t// contains filtered or unexported fields\n}",
          "doc": "WangSet is a Tiled Wang set (terrain set) defining corner, edge, or mixed multi-terrain autotiling rules.\n",
          "file": "pkg/tilemap/wang.go",
          "line": 105,
          "members": [
            {
              "name": "Name",
              "anchor": "WangSet.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Type",
              "anchor": "WangSet.Type",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tile",
              "anchor": "WangSet.Tile",
              "kind": "field",
              "doc": "0-based local representative tile ID, or -1 if unset"
            },
            {
              "name": "Class",
              "anchor": "WangSet.Class",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FirstGID",
              "anchor": "WangSet.FirstGID",
              "kind": "field",
              "doc": "FirstGID of the owning Tileset (defaults to 1 when 0)"
            },
            {
              "name": "Colors",
              "anchor": "WangSet.Colors",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WangTiles",
              "anchor": "WangSet.WangTiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Properties",
              "anchor": "WangSet.Properties",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ColorIndex",
              "anchor": "WangSet.ColorIndex",
              "recv": "*WangSet",
              "decl": "func (ws *WangSet) ColorIndex(name string) (uint8, bool)",
              "doc": "ColorIndex returns the 1-based terrain index of the first color named name in ws.Colors.\n",
              "file": "pkg/tilemap/wang.go",
              "line": 119
            },
            {
              "name": "WangIDForTile",
              "anchor": "WangSet.WangIDForTile",
              "recv": "*WangSet",
              "decl": "func (ws *WangSet) WangIDForTile(localTileID uint32) (WangID, bool)",
              "doc": "WangIDForTile returns the WangID assigned to the 0-based local tile ID in ws, if any.\n",
              "file": "pkg/tilemap/wang.go",
              "line": 132
            }
          ]
        },
        {
          "name": "WangSetType",
          "anchor": "WangSetType",
          "decl": "type WangSetType uint8",
          "doc": "WangSetType selects which tile edges and corners a Tiled WangSet matches.\n",
          "file": "pkg/tilemap/wang.go",
          "line": 18,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "WangCorner",
                  "anchor": "WangCorner"
                },
                {
                  "name": "WangEdge",
                  "anchor": "WangEdge"
                },
                {
                  "name": "WangMixed",
                  "anchor": "WangMixed"
                }
              ],
              "decl": "const (\n\t// WangCorner matches the four tile corners (TopRight, BottomRight, BottomLeft, TopLeft).\n\tWangCorner WangSetType = iota\n\t// WangEdge matches the four tile edges (Top, Right, Bottom, Left).\n\tWangEdge\n\t// WangMixed matches all four tile edges and all four tile corners.\n\tWangMixed\n)",
              "doc": "",
              "file": "pkg/tilemap/wang.go",
              "line": 20
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "WangSetType.String",
              "recv": "WangSetType",
              "decl": "func (t WangSetType) String() string",
              "doc": "String returns the Tiled JSON name (\"corner\", \"edge\", or \"mixed\") for t.\n",
              "file": "pkg/tilemap/wang.go",
              "line": 30
            }
          ]
        },
        {
          "name": "WangTile",
          "anchor": "WangTile",
          "decl": "type WangTile struct {\n\tTileID      uint32\n\tWangID      WangID\n\tProbability float64\n\t// contains filtered or unexported fields\n}",
          "doc": "WangTile maps a 0-based local tile ID in its Tileset to its 8-slot WangID and selection probability.\n",
          "file": "pkg/tilemap/wang.go",
          "line": 92,
          "members": [
            {
              "name": "TileID",
              "anchor": "WangTile.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WangID",
              "anchor": "WangTile.WangID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Probability",
              "anchor": "WangTile.Probability",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldLevel",
          "anchor": "WorldLevel",
          "decl": "type WorldLevel struct {\n\t// ID is the unique level identifier (LDtk level identifier or Tiled map fileName).\n\tID string\n\t// IID is the LDtk instance ID, when loaded from an LDtk project.\n\tIID string\n\t// UID is the LDtk numeric UID, when loaded from an LDtk project.\n\tUID int\n\t// FileName is the Tiled map file path, when loaded from a Tiled .world file.\n\tFileName string\n\t// Origin is the level's top-left world position in points.\n\tOrigin core.Point\n\t// Bounds is the level's world-space bounding rectangle in points.\n\tBounds core.Bounds\n\t// WorldDepth is the LDtk worldDepth layer (0 for Tiled worlds).\n\tWorldDepth int\n\t// Neighbours lists adjacent or overlapping levels (populated by LDtk world loaders).\n\tNeighbours []LevelNeighbour\n\t// Load builds this level's *Tilemap with Origin (and Neighbours) populated.\n\tLoad func() (*Tilemap, error)\n}",
          "doc": "WorldLevel describes one level's world placement, metadata, and lazy loader inside a LevelWorld.\n",
          "file": "pkg/tilemap/world.go",
          "line": 12,
          "members": [
            {
              "name": "ID",
              "anchor": "WorldLevel.ID",
              "kind": "field",
              "doc": "ID is the unique level identifier (LDtk level identifier or Tiled map fileName)."
            },
            {
              "name": "IID",
              "anchor": "WorldLevel.IID",
              "kind": "field",
              "doc": "IID is the LDtk instance ID, when loaded from an LDtk project."
            },
            {
              "name": "UID",
              "anchor": "WorldLevel.UID",
              "kind": "field",
              "doc": "UID is the LDtk numeric UID, when loaded from an LDtk project."
            },
            {
              "name": "FileName",
              "anchor": "WorldLevel.FileName",
              "kind": "field",
              "doc": "FileName is the Tiled map file path, when loaded from a Tiled .world file."
            },
            {
              "name": "Origin",
              "anchor": "WorldLevel.Origin",
              "kind": "field",
              "doc": "Origin is the level's top-left world position in points."
            },
            {
              "name": "Bounds",
              "anchor": "WorldLevel.Bounds",
              "kind": "field",
              "doc": "Bounds is the level's world-space bounding rectangle in points."
            },
            {
              "name": "WorldDepth",
              "anchor": "WorldLevel.WorldDepth",
              "kind": "field",
              "doc": "WorldDepth is the LDtk worldDepth layer (0 for Tiled worlds)."
            },
            {
              "name": "Neighbours",
              "anchor": "WorldLevel.Neighbours",
              "kind": "field",
              "doc": "Neighbours lists adjacent or overlapping levels (populated by LDtk world loaders)."
            },
            {
              "name": "Load",
              "anchor": "WorldLevel.Load",
              "kind": "field",
              "doc": "Load builds this level's *Tilemap with Origin (and Neighbours) populated."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldStream",
          "anchor": "WorldStream",
          "decl": "type WorldStream struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "WorldStream keeps the levels of a LevelWorld overlapping a moving camera or query region loaded\nat their world origins, unloads levels outside an optional hysteresis margin, reports enter/leave\nevents, draws all loaded levels seamlessly, and supports cross-seam queries and uniform-grid physics adapters.\n",
          "file": "pkg/tilemap/world.go",
          "line": 205,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewWorldStream",
              "anchor": "NewWorldStream",
              "decl": "func NewWorldStream(cfg WorldStreamConfig) *WorldStream",
              "doc": "NewWorldStream constructs a WorldStream from cfg.\n",
              "file": "pkg/tilemap/world.go",
              "line": 222
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "WorldStream.Close",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) Close() []WorldStreamEvent",
              "doc": "Close unloads every currently loaded level in deterministic world order, firing OnLeave and returning the leave events.\n",
              "file": "pkg/tilemap/world.go",
              "line": 328
            },
            {
              "name": "Draw",
              "anchor": "WorldStream.Draw",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) Draw(d *core.Drawing, cam *Camera)",
              "doc": "Draw draws every currently loaded level into d in deterministic world order, honoring each level's Origin and culling to cam.\n",
              "file": "pkg/tilemap/world.go",
              "line": 450
            },
            {
              "name": "FlagsAtWorld",
              "anchor": "WorldStream.FlagsAtWorld",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) FlagsAtWorld(p core.Point) TileFlags",
              "doc": "FlagsAtWorld returns the combined TileFlags at world point p across all currently loaded levels.\n",
              "file": "pkg/tilemap/world.go",
              "line": 483
            },
            {
              "name": "GridFlagsAt",
              "anchor": "WorldStream.GridFlagsAt",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) GridFlagsAt(col, row int) TileFlags",
              "doc": "GridFlagsAt returns the combined TileFlags at uniform grid cell (col, row) relative to GridOrigin across all loaded levels.\n\nTogether with TileSize, GridSize, and GridOrigin, this lets a thin physics.TileGrid + physics.TileGridOrigin adapter\nmove a physics.Body or physics.CharacterBody seamlessly across seams between adjacent loaded levels.\n",
              "file": "pkg/tilemap/world.go",
              "line": 563
            },
            {
              "name": "GridOrigin",
              "anchor": "WorldStream.GridOrigin",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) GridOrigin() (x, y float32)",
              "doc": "GridOrigin returns the world-space origin (min X, min Y) of the combined loaded levels, implementing physics.TileGridOrigin.\n",
              "file": "pkg/tilemap/world.go",
              "line": 544
            },
            {
              "name": "GridSize",
              "anchor": "WorldStream.GridSize",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) GridSize() (cols, rows int)",
              "doc": "GridSize returns the combined column and row counts covering all currently loaded levels from GridOrigin.\n",
              "file": "pkg/tilemap/world.go",
              "line": 552
            },
            {
              "name": "LevelAt",
              "anchor": "WorldStream.LevelAt",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) LevelAt(p core.Point) (*WorldLevel, *Tilemap)",
              "doc": "LevelAt returns the first currently loaded level and its *Tilemap containing world point p, or (nil, nil) if none matches.\n",
              "file": "pkg/tilemap/world.go",
              "line": 470
            },
            {
              "name": "Loaded",
              "anchor": "WorldStream.Loaded",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) Loaded() []*Tilemap",
              "doc": "Loaded returns all currently loaded *Tilemap instances in deterministic world order.\n",
              "file": "pkg/tilemap/world.go",
              "line": 413
            },
            {
              "name": "LoadedCount",
              "anchor": "WorldStream.LoadedCount",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) LoadedCount() int",
              "doc": "LoadedCount returns the number of currently loaded levels.\n",
              "file": "pkg/tilemap/world.go",
              "line": 405
            },
            {
              "name": "LoadedLevels",
              "anchor": "WorldStream.LoadedLevels",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) LoadedLevels() []*WorldLevel",
              "doc": "LoadedLevels returns all currently loaded *WorldLevel descriptors in deterministic world order.\n",
              "file": "pkg/tilemap/world.go",
              "line": 425
            },
            {
              "name": "Map",
              "anchor": "WorldStream.Map",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) Map(id string) *Tilemap",
              "doc": "Map returns the currently loaded *Tilemap for level ID id, or nil if it is not loaded.\n",
              "file": "pkg/tilemap/world.go",
              "line": 437
            },
            {
              "name": "Raycast",
              "anchor": "WorldStream.Raycast",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) Raycast(from, to core.Point, mask TileFlags) (RaycastHit, bool)",
              "doc": "Raycast traces from -> to across all currently loaded levels and returns the closest hit matching mask.\n",
              "file": "pkg/tilemap/world.go",
              "line": 516
            },
            {
              "name": "TileFlagsAt",
              "anchor": "WorldStream.TileFlagsAt",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) TileFlagsAt(col, row int) physics.TileFlags",
              "doc": "TileFlagsAt returns the combined collision flags at uniform grid cell (col, row) relative to GridOrigin\nmapped to physics.TileFlags, satisfying physics.TileGrid.\n",
              "file": "pkg/tilemap/physics.go",
              "line": 59
            },
            {
              "name": "TileSize",
              "anchor": "WorldStream.TileSize",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) TileSize() (width, height float32)",
              "doc": "TileSize returns the tile dimensions of the loaded levels for uniform-grid physics adapters (0, 0 when no levels are loaded).\n",
              "file": "pkg/tilemap/world.go",
              "line": 536
            },
            {
              "name": "TilesInRect",
              "anchor": "WorldStream.TilesInRect",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) TilesInRect(r core.Bounds, mask TileFlags) []TileHit",
              "doc": "TilesInRect returns every matching tile across all currently loaded levels overlapping r, in deterministic level order.\n",
              "file": "pkg/tilemap/world.go",
              "line": 500
            },
            {
              "name": "Update",
              "anchor": "WorldStream.Update",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) Update(region core.Bounds) []WorldStreamEvent",
              "doc": "Update unloads any loaded level whose Bounds no longer overlap region expanded by UnloadMargin,\nthen loads any unloaded level whose Bounds overlap region expanded by LoadMargin.\n\nTransitions happen in deterministic World.Levels order (unloads first, then loads), firing OnLeave / OnEnter\nand returning the resulting events.\n",
              "file": "pkg/tilemap/world.go",
              "line": 240
            },
            {
              "name": "UpdateAnimations",
              "anchor": "WorldStream.UpdateAnimations",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) UpdateAnimations(dt time.Duration)",
              "doc": "UpdateAnimations advances animated tiles on every currently loaded level by dt.\n",
              "file": "pkg/tilemap/world.go",
              "line": 460
            },
            {
              "name": "UpdateCamera",
              "anchor": "WorldStream.UpdateCamera",
              "recv": "*WorldStream",
              "decl": "func (s *WorldStream) UpdateCamera(cam *Camera) []WorldStreamEvent",
              "doc": "UpdateCamera updates streaming for cam.VisibleBounds() (doing nothing when cam is nil).\n",
              "file": "pkg/tilemap/world.go",
              "line": 320
            }
          ]
        },
        {
          "name": "WorldStreamConfig",
          "anchor": "WorldStreamConfig",
          "decl": "type WorldStreamConfig struct {\n\t// World is the multi-level world to stream.\n\tWorld *LevelWorld\n\t// LoadMargin expands the query/camera rectangle on all four sides (in world points)\n\t// when choosing which levels to load. Negative values are treated as 0.\n\tLoadMargin float32\n\t// UnloadMargin expands the query/camera rectangle on all four sides (in world points)\n\t// beyond which loaded levels are unloaded (hysteresis). Values smaller than LoadMargin\n\t// default to LoadMargin so a level cannot load and unload on the same update.\n\tUnloadMargin float32\n\t// OnEnter is called after a level is loaded and added to the active set.\n\tOnEnter func(level *WorldLevel, m *Tilemap)\n\t// OnLeave is called after a level is unloaded and removed from the active set.\n\tOnLeave func(level *WorldLevel, m *Tilemap)\n\t// OnError is called when loading a level fails.\n\tOnError func(level *WorldLevel, err error)\n}",
          "doc": "WorldStreamConfig configures a region-based WorldStream over a LevelWorld.\n",
          "file": "pkg/tilemap/world.go",
          "line": 178,
          "members": [
            {
              "name": "World",
              "anchor": "WorldStreamConfig.World",
              "kind": "field",
              "doc": "World is the multi-level world to stream."
            },
            {
              "name": "LoadMargin",
              "anchor": "WorldStreamConfig.LoadMargin",
              "kind": "field",
              "doc": "LoadMargin expands the query/camera rectangle on all four sides (in world points)\nwhen choosing which levels to load. Negative values are treated as 0."
            },
            {
              "name": "UnloadMargin",
              "anchor": "WorldStreamConfig.UnloadMargin",
              "kind": "field",
              "doc": "UnloadMargin expands the query/camera rectangle on all four sides (in world points)\nbeyond which loaded levels are unloaded (hysteresis). Values smaller than LoadMargin\ndefault to LoadMargin so a level cannot load and unload on the same update."
            },
            {
              "name": "OnEnter",
              "anchor": "WorldStreamConfig.OnEnter",
              "kind": "field",
              "doc": "OnEnter is called after a level is loaded and added to the active set."
            },
            {
              "name": "OnLeave",
              "anchor": "WorldStreamConfig.OnLeave",
              "kind": "field",
              "doc": "OnLeave is called after a level is unloaded and removed from the active set."
            },
            {
              "name": "OnError",
              "anchor": "WorldStreamConfig.OnError",
              "kind": "field",
              "doc": "OnError is called when loading a level fails."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldStreamEvent",
          "anchor": "WorldStreamEvent",
          "decl": "type WorldStreamEvent struct {\n\tKind  WorldStreamEventKind\n\tLevel *WorldLevel\n\tMap   *Tilemap\n}",
          "doc": "WorldStreamEvent describes one level load or unload transition produced by WorldStream.Update or Close.\n",
          "file": "pkg/tilemap/world.go",
          "line": 171,
          "members": [
            {
              "name": "Kind",
              "anchor": "WorldStreamEvent.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Level",
              "anchor": "WorldStreamEvent.Level",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Map",
              "anchor": "WorldStreamEvent.Map",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldStreamEventKind",
          "anchor": "WorldStreamEventKind",
          "decl": "type WorldStreamEventKind uint8",
          "doc": "WorldStreamEventKind identifies whether a level entered or left a WorldStream's loaded set.\n",
          "file": "pkg/tilemap/world.go",
          "line": 161,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "WorldLevelEntered",
                  "anchor": "WorldLevelEntered"
                },
                {
                  "name": "WorldLevelLeft",
                  "anchor": "WorldLevelLeft"
                }
              ],
              "decl": "const (\n\t// WorldLevelEntered reports that a level was loaded and added to the active set.\n\tWorldLevelEntered WorldStreamEventKind = iota\n\t// WorldLevelLeft reports that a level was unloaded and removed from the active set.\n\tWorldLevelLeft\n)",
              "doc": "",
              "file": "pkg/tilemap/world.go",
              "line": 163
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "YSortDrawer",
          "anchor": "YSortDrawer",
          "decl": "type YSortDrawer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "YSortDrawer batches consecutive unflipped YSortTile values sharing the same tileset and\nopacity into Drawing.DrawAtlas calls while reusing its internal scratch slices across frames.\n",
          "file": "pkg/tilemap/ysort.go",
          "line": 94,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Flush",
              "anchor": "YSortDrawer.Flush",
              "recv": "*YSortDrawer",
              "decl": "func (dr *YSortDrawer) Flush(d *core.Drawing)",
              "doc": "Flush emits any queued tiles into d and resets the run state while preserving slice capacity.\n",
              "file": "pkg/tilemap/ysort.go",
              "line": 133
            },
            {
              "name": "Push",
              "anchor": "YSortDrawer.Push",
              "recv": "*YSortDrawer",
              "decl": "func (dr *YSortDrawer) Push(d *core.Drawing, t *YSortTile)",
              "doc": "Push queues tile t into d, flushing any incompatible run first.\n",
              "file": "pkg/tilemap/ysort.go",
              "line": 103
            }
          ]
        },
        {
          "name": "YSortTile",
          "anchor": "YSortTile",
          "decl": "type YSortTile struct {\n\t// SortY is the world-space Y coordinate used for painter's-order depth sorting:\n\t// the tile's bottom edge plus any per-tile PropSortOriginY offset.\n\tSortY float32\n\t// Col and Row are the tile's grid coordinates within its TileLayer.\n\tCol int\n\tRow int\n\t// GID is the raw global tile ID (including flip flags) stored in the layer.\n\tGID uint32\n\t// LayerIndex is the index of the source TileLayer in Tilemap.Layers, or -1 if not attached.\n\tLayerIndex int\n\t// contains filtered or unexported fields\n}",
          "doc": "YSortTile is one visible tile collected from a TileLayer so it can be depth-sorted and\ninterleaved with scene sprites and custom drawables in ascending SortY order.\n",
          "file": "pkg/tilemap/ysort.go",
          "line": 20,
          "members": [
            {
              "name": "SortY",
              "anchor": "YSortTile.SortY",
              "kind": "field",
              "doc": "SortY is the world-space Y coordinate used for painter's-order depth sorting:\nthe tile's bottom edge plus any per-tile PropSortOriginY offset."
            },
            {
              "name": "Col",
              "anchor": "YSortTile.Col",
              "kind": "field",
              "doc": "Col and Row are the tile's grid coordinates within its TileLayer."
            },
            {
              "name": "Row",
              "anchor": "YSortTile.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GID",
              "anchor": "YSortTile.GID",
              "kind": "field",
              "doc": "GID is the raw global tile ID (including flip flags) stored in the layer."
            },
            {
              "name": "LayerIndex",
              "anchor": "YSortTile.LayerIndex",
              "kind": "field",
              "doc": "LayerIndex is the index of the source TileLayer in Tilemap.Layers, or -1 if not attached."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Draw",
              "anchor": "YSortTile.Draw",
              "recv": "*YSortTile",
              "decl": "func (t *YSortTile) Draw(d *core.Drawing)",
              "doc": "Draw draws this single tile into d, applying its layer opacity, tint, and flip flags while leaving d's state unchanged.\n",
              "file": "pkg/tilemap/ysort.go",
              "line": 47
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tileshape",
      "name": "tileshape",
      "dir": "pkg/tileshape",
      "page": "pkg/tileshape",
      "synopsis": "Package tileshape derives collision and lighting geometry from a tilemap: a View that physics.MoveAndSlide, physics.CharacterBody, the platformer controller and physics.World take as their physics.TileGrid, the physics.Slope segments of slanted and partial tiles, the merged outline of solid cells and tile shapes, static boxes, and lights2d occluders.",
      "doc": "Package tileshape derives collision and lighting geometry from a tilemap: a View that physics.MoveAndSlide, physics.CharacterBody, the platformer controller and physics.World take as their physics.TileGrid, the physics.Slope segments of slanted and partial tiles, the merged outline of solid cells and tile shapes, static boxes, and lights2d occluders.\n\nA cell collides as a whole when its tiles carry TileSolid or TileOneWay, from SetFlags, a \"solid\" or \"oneWay\" tile property, or a SetCellFlags override, or when one of its tiles has a collision shape that fills the cell. A tile whose collision shapes (tilemap.Tileset.Shapes, such as the ones Tiled's collision editor draws) do not fill the cell collides through those shapes instead: the cell reports neither TileSolid nor TileOneWay to the grid, and the shapes' upward-facing and vertical edges become slopes, so a character walks 45 degree, 2:1 and half-height tiles with no hand-placed segments. A SetCellFlags override takes precedence over every tile in the cell, and shapes follow the flip bits of the tile that placed them.\n\nGeometry is cached in chunks of 16 by 16 cells and built on first use. A View follows the map's change log (Tilemap.TileRevision and Tilemap.TileChangesSince), so after SetTile, FillRect, SetCellFlags or ClearCellFlags its next call rebuilds only the chunks around the cells that changed, and after SetFlags every cell. After writing a layer's Data directly call View.Invalidate for the cells written, and after editing a tileset's Shapes call View.InvalidateAll.\n\nOnly bounded orthogonal maps are supported: a View of an unbounded map (Tilemap.Infinite, or a sparse chunked layer) has no cells, and layer offsets are ignored, as they are by the tilemap's own collision queries. A polyline shape is an open edge a character stands on, never part of the outline or the occluders, and never makes its cell solid.\n",
      "consts": [],
      "vars": [],
      "funcs": [],
      "types": [
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Layers are indices in Tilemap.Layers of the tile layers that collide. When Layers and LayerNames are both empty, every tile layer collides; a View notices a layer added to or removed from Tilemap.Layers after New on its next call and rebuilds every cell.\n\tLayers []int\n\t// LayerNames adds the tile layers with these names, looked up when New is called.\n\tLayerNames []string\n\t// ShapedSolid makes a cell whose tiles collide only through shapes that do not fill it report TileSolid (or TileOneWay, for a one-way tile) from TileFlagsAt, for code that knows only whole cells, such as physics.MoveAndSlide and physics.World's queries. By default such a cell reports neither, and collides through Slopes.\n\tShapedSolid bool\n}",
          "doc": "Options choose which layers of a map a View reads and how it reports shaped cells.\n",
          "file": "pkg/tileshape/view.go",
          "line": 16,
          "members": [
            {
              "name": "Layers",
              "anchor": "Options.Layers",
              "kind": "field",
              "doc": "Layers are indices in Tilemap.Layers of the tile layers that collide. When Layers and LayerNames are both empty, every tile layer collides; a View notices a layer added to or removed from Tilemap.Layers after New on its next call and rebuilds every cell."
            },
            {
              "name": "LayerNames",
              "anchor": "Options.LayerNames",
              "kind": "field",
              "doc": "LayerNames adds the tile layers with these names, looked up when New is called."
            },
            {
              "name": "ShapedSolid",
              "anchor": "Options.ShapedSolid",
              "kind": "field",
              "doc": "ShapedSolid makes a cell whose tiles collide only through shapes that do not fill it report TileSolid (or TileOneWay, for a one-way tile) from TileFlagsAt, for code that knows only whole cells, such as physics.MoveAndSlide and physics.World's queries. By default such a cell reports neither, and collides through Slopes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Segment",
          "anchor": "Segment",
          "decl": "type Segment struct {\n\tA, B core.Point\n}",
          "doc": "Segment is one straight edge of a View's outline, from A to B, with the solid geometry on its right as seen walking from A to B on screen (Y down), so its outward normal is (B.Y-A.Y, A.X-B.X) normalized.\n",
          "file": "pkg/tileshape/view.go",
          "line": 26,
          "members": [
            {
              "name": "A",
              "anchor": "Segment.A",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "B",
              "anchor": "Segment.B",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Normal",
              "anchor": "Segment.Normal",
              "recv": "Segment",
              "decl": "func (s Segment) Normal() core.Point",
              "doc": "Normal returns the unit normal of s pointing out of the solid geometry, or (0, 0) for a segment with no length.\n",
              "file": "pkg/tileshape/view.go",
              "line": 31
            }
          ]
        },
        {
          "name": "View",
          "anchor": "View",
          "decl": "type View struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "View is the collision and lighting geometry of a tilemap's chosen layers, in world coordinates that honour the map's Origin. It satisfies physics.TileGrid and physics.TileGridOrigin, so it is passed directly to physics.MoveAndSlide, physics.CharacterBody.Move, platformer.Controller.Step and physics.World.Tiles.\n\nA View is not safe for concurrent use, and the slices it returns are shared with its cache: they stay valid, and must not be modified, until the map changes.\n",
          "file": "pkg/tileshape/view.go",
          "line": 43,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(m *tilemap.Tilemap, opts Options) *View",
              "doc": "New returns a View of m's layers chosen by opts. A View of a nil map, or of an unbounded map (Tilemap.Infinite set, or a sparse chunked layer), has no cells.\n\nA View follows the map through Tilemap.TileChangesSince: on its next call after SetTile, FillRect, SetCellFlags, ClearCellFlags or SetFlags it rebuilds only the chunks around the cells they changed, or every cell when the change log cannot say which (a SetFlags call, a large FillRect, more edits than the log holds).\n",
              "file": "pkg/tileshape/view.go",
              "line": 95
            }
          ],
          "methods": [
            {
              "name": "AppendSlopesIn",
              "anchor": "View.AppendSlopesIn",
              "recv": "*View",
              "decl": "func (v *View) AppendSlopesIn(dst []physics.Slope, r core.Bounds) []physics.Slope",
              "doc": "AppendSlopesIn appends to dst the slopes of the chunks that r, grown by one cell, overlaps, and returns the extended slice: a superset of the slopes in r that is cheaper to pass to physics.CharacterBody.Move on a large map than Slopes.\n",
              "file": "pkg/tileshape/view.go",
              "line": 173
            },
            {
              "name": "AppendStaticShapesIn",
              "anchor": "View.AppendStaticShapesIn",
              "recv": "*View",
              "decl": "func (v *View) AppendStaticShapesIn(dst []physics.Shape, r core.Bounds) []physics.Shape",
              "doc": "AppendStaticShapesIn appends to dst the static physics shapes of the chunks that r, grown by one cell and oversized-tile reach, overlaps, merged across those chunks.\n",
              "file": "pkg/tileshape/view.go",
              "line": 244
            },
            {
              "name": "Boxes",
              "anchor": "View.Boxes",
              "recv": "*View",
              "decl": "func (v *View) Boxes() []physics.Box",
              "doc": "Boxes returns the solid whole cells and axis-aligned rectangular solid tile shapes (such as half tiles), merged across neighbours into maximal rectangles, as static physics boxes; pass each to physics.NewStaticRigidBox for a physics.RigidWorld. For non-rectangular partial shapes such as slopes, rounded corners, and ellipses, use StaticShapes, Outline, or Slopes.\n",
              "file": "pkg/tileshape/view.go",
              "line": 200
            },
            {
              "name": "GridOrigin",
              "anchor": "View.GridOrigin",
              "recv": "*View",
              "decl": "func (v *View) GridOrigin() (x, y float32)",
              "doc": "GridOrigin returns the map's Origin, the world position of cell (0, 0), implementing physics.TileGridOrigin so physics places v's cells where the map draws them. Every segment, slope and box v returns is in the same world coordinates.\n",
              "file": "pkg/tileshape/view.go",
              "line": 136
            },
            {
              "name": "GridSize",
              "anchor": "View.GridSize",
              "recv": "*View",
              "decl": "func (v *View) GridSize() (cols, rows int)",
              "doc": "GridSize returns the map's size in cells.\n",
              "file": "pkg/tileshape/view.go",
              "line": 144
            },
            {
              "name": "Invalidate",
              "anchor": "View.Invalidate",
              "recv": "*View",
              "decl": "func (v *View) Invalidate(col, row, w, h int)",
              "doc": "Invalidate rebuilds the cells of the rectangle [col, col+w) x [row, row+h), and the geometry around them, on next use. Call it after writing a layer's Data directly; the map's own setters need no call. After editing a tileset's Shapes call InvalidateAll instead, since Invalidate keeps the geometry v has derived from each tile's shapes.\n",
              "file": "pkg/tileshape/view.go",
              "line": 288
            },
            {
              "name": "InvalidateAll",
              "anchor": "View.InvalidateAll",
              "recv": "*View",
              "decl": "func (v *View) InvalidateAll()",
              "doc": "InvalidateAll rebuilds every cell on next use.\n\nCall it after changing a tileset's Shapes, which every cell showing the tile may depend on.\n",
              "file": "pkg/tileshape/view.go",
              "line": 298
            },
            {
              "name": "Map",
              "anchor": "View.Map",
              "recv": "*View",
              "decl": "func (v *View) Map() *tilemap.Tilemap",
              "doc": "Map returns the tilemap v reads.\n",
              "file": "pkg/tileshape/view.go",
              "line": 125
            },
            {
              "name": "Occluders",
              "anchor": "View.Occluders",
              "recv": "*View",
              "decl": "func (v *View) Occluders() []lights2d.Occluder",
              "doc": "Occluders returns Outline as lights2d occluders, one per 16 by 16 chunk with solid geometry, which cast the same shadows as a rectangle occluder per solid cell and a polygon occluder per solid shape. Assign the result to lights2d.Scene.Occluders again after the map changes: a change rebuilds only the chunks around it, and the others' segments are reused.\n",
              "file": "pkg/tileshape/view.go",
              "line": 272
            },
            {
              "name": "Outline",
              "anchor": "View.Outline",
              "recv": "*View",
              "decl": "func (v *View) Outline() []Segment",
              "doc": "Outline returns the boundary of the solid geometry, whole cells and solid tile shapes together, as segments with the solid side on their right: edges shared by neighbouring solid cells or shapes are removed, and collinear edges are merged within each 16 by 16 chunk. One-way cells and shapes are not part of it.\n",
              "file": "pkg/tileshape/view.go",
              "line": 188
            },
            {
              "name": "Slopes",
              "anchor": "View.Slopes",
              "recv": "*View",
              "decl": "func (v *View) Slopes() []physics.Slope",
              "doc": "Slopes returns the segments physics.CharacterBody walks for every tile shape of the map: the upward-facing and vertical edges of solid shapes, the upward-facing edges of one-way shapes, and every polyline, with edges shared by neighbouring tiles removed and collinear edges merged within each 16 by 16 chunk.\n",
              "file": "pkg/tileshape/view.go",
              "line": 161
            },
            {
              "name": "StaticShapes",
              "anchor": "View.StaticShapes",
              "recv": "*View",
              "decl": "func (v *View) StaticShapes() []physics.Shape",
              "doc": "StaticShapes returns static physics.Shape colliders for every solid whole cell and solid partial tile shape,\nmerged across neighbours where possible: maximal physics.Box shapes for solid cells and axis-aligned rectangular\npartial tiles, merged convex physics.Polygon shapes for adjacent convex partial tiles (such as multi-tile slopes\nand bevels), and closed physics.Chain shapes for concave or high-vertex partial shapes (such as ellipses).\nPass each shape to physics.NewStaticRigidBody or &physics.Body{Shape: s} to collide in RigidWorld or World.\n",
              "file": "pkg/tileshape/view.go",
              "line": 219
            },
            {
              "name": "TileFlagsAt",
              "anchor": "View.TileFlagsAt",
              "recv": "*View",
              "decl": "func (v *View) TileFlagsAt(col, row int) physics.TileFlags",
              "doc": "TileFlagsAt returns the collision flags of the cell at (col, row) across v's layers, or 0 out of bounds. A cell that collides only through partial shapes reports neither TileSolid nor TileOneWay unless Options.ShapedSolid is set; every other flag bit of its tiles is kept.\n",
              "file": "pkg/tileshape/view.go",
              "line": 152
            },
            {
              "name": "TileSize",
              "anchor": "View.TileSize",
              "recv": "*View",
              "decl": "func (v *View) TileSize() (width, height float32)",
              "doc": "TileSize returns the map's tile width and height.\n",
              "file": "pkg/tileshape/view.go",
              "line": 128
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/apiref",
      "name": "apiref",
      "dir": "pkg/tooling/apiref",
      "page": "pkg/tooling/apiref",
      "synopsis": "Package apiref reads the exported API of a Go module's packages from their source and doc comments, as go doc shows it, into a Reference: the JSON the website renders as its API pages and publishes for agents.",
      "doc": "Package apiref reads the exported API of a Go module's packages from their source and doc comments, as go doc shows it, into a Reference: the JSON the website renders as its API pages and publishes for agents.\n\nLoad walks the module from its root and documents every importable package: it leaves out packages main, internal directories, testdata, directories starting with . or _, and nested modules. A package's files are those any NSGo target builds (linux, macos, windows, android, ios and web, without the release tag), so the API a target adds, such as one only native targets build, is in the reference with the targets that have it in Platforms.\n\nEvery exported identifier has an anchor, the fragment of its place on its package's page, as pkg.go.dev names them: Name for a constant, variable, function or type, Type.Name for a method, a struct field or an interface method.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "Version",
              "anchor": "Version"
            }
          ],
          "decl": "const Version = 1",
          "doc": "Version is the version of the Reference format, in its version field. A change that removes or renames a field, or changes what one holds, raises it.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 32
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "Targets",
              "anchor": "Targets"
            }
          ],
          "decl": "var Targets = []Target{\n\t{Name: \"linux\", GOOS: \"linux\", GOARCH: \"amd64\"},\n\t{Name: \"macos\", GOOS: \"darwin\", GOARCH: \"arm64\"},\n\t{Name: \"windows\", GOOS: \"windows\", GOARCH: \"amd64\"},\n\t{Name: \"android\", GOOS: \"android\", GOARCH: \"arm64\"},\n\t{Name: \"ios\", GOOS: \"ios\", GOARCH: \"arm64\"},\n\t{Name: \"web\", GOOS: \"js\", GOARCH: \"wasm\"},\n}",
          "doc": "Targets are the targets Load reads each package for, in the order Platforms lists them. Where two targets' files declare the same identifier, as a native and a web implementation of one function do, the reference shows the declaration of the earlier target.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 42
        }
      ],
      "funcs": [
        {
          "name": "Marshal",
          "anchor": "Marshal",
          "decl": "func Marshal(ref *Reference) ([]byte, error)",
          "doc": "Marshal encodes ref as indented JSON ending in a newline. The output depends only on ref, so the same source always gives the same bytes.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 206
        }
      ],
      "types": [
        {
          "name": "Func",
          "anchor": "Func",
          "decl": "type Func struct {\n\tName   string `json:\"name\"`\n\tAnchor string `json:\"anchor\"`\n\t// Recv is a method's receiver type as written, such as *Batch, and empty for a function.\n\tRecv string `json:\"recv,omitempty\"`\n\t// Decl is the signature, without the body.\n\tDecl      string   `json:\"decl\"`\n\tDoc       string   `json:\"doc\"`\n\tDocHTML   string   `json:\"docHTML,omitempty\"`\n\tFile      string   `json:\"file\"`\n\tLine      int      `json:\"line\"`\n\tPlatforms []string `json:\"platforms,omitempty\"`\n}",
          "doc": "Func is a function or a method.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 105,
          "members": [
            {
              "name": "Name",
              "anchor": "Func.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Anchor",
              "anchor": "Func.Anchor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Recv",
              "anchor": "Func.Recv",
              "kind": "field",
              "doc": "Recv is a method's receiver type as written, such as *Batch, and empty for a function."
            },
            {
              "name": "Decl",
              "anchor": "Func.Decl",
              "kind": "field",
              "doc": "Decl is the signature, without the body."
            },
            {
              "name": "Doc",
              "anchor": "Func.Doc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DocHTML",
              "anchor": "Func.DocHTML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "Func.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "Func.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Platforms",
              "anchor": "Func.Platforms",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Ident",
          "anchor": "Ident",
          "decl": "type Ident struct {\n\tName   string `json:\"name\"`\n\tAnchor string `json:\"anchor\"`\n}",
          "doc": "Ident is an exported identifier and its anchor.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 84,
          "members": [
            {
              "name": "Name",
              "anchor": "Ident.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Anchor",
              "anchor": "Ident.Anchor",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Member",
          "anchor": "Member",
          "decl": "type Member struct {\n\tName   string `json:\"name\"`\n\tAnchor string `json:\"anchor\"`\n\t// Kind is \"field\" or \"method\".\n\tKind string `json:\"kind\"`\n\t// Doc is the member's comments, the one above it then the one after it on its line.\n\tDoc string `json:\"doc\"`\n}",
          "doc": "Member is a struct field or an interface method.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 142,
          "members": [
            {
              "name": "Name",
              "anchor": "Member.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Anchor",
              "anchor": "Member.Anchor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "Member.Kind",
              "kind": "field",
              "doc": "Kind is \"field\" or \"method\"."
            },
            {
              "name": "Doc",
              "anchor": "Member.Doc",
              "kind": "field",
              "doc": "Doc is the member's comments, the one above it then the one after it on its line."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// HTML renders each doc comment as HTML into its DocHTML. A doc link to an identifier of the same package is its anchor, to another package of the module the path to that package's page, and to any other package its page on pkg.go.dev.\n\tHTML bool\n}",
          "doc": "Options are what Load adds to the reference.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 152,
          "members": [
            {
              "name": "HTML",
              "anchor": "Options.HTML",
              "kind": "field",
              "doc": "HTML renders each doc comment as HTML into its DocHTML. A doc link to an identifier of the same package is its anchor, to another package of the module the path to that package's page, and to any other package its page on pkg.go.dev."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Package",
          "anchor": "Package",
          "decl": "type Package struct {\n\tImportPath string `json:\"importPath\"`\n\tName       string `json:\"name\"`\n\t// Dir is the package's directory below the module's root, with slashes, \".\" for the root.\n\tDir string `json:\"dir\"`\n\t// Page is the path of the package's page below the reference's root: Dir, or Name for the module's root package. DocHTML links another package of the module by the path from one page to the other, each page a directory.\n\tPage string `json:\"page\"`\n\t// Synopsis is the first sentence of Doc.\n\tSynopsis string `json:\"synopsis\"`\n\t// Doc is the package's doc comment as written, without the comment markers.\n\tDoc string `json:\"doc\"`\n\t// DocHTML is Doc rendered as HTML, when Options.HTML is set.\n\tDocHTML string `json:\"docHTML,omitempty\"`\n\t// Platforms are the targets that build the package, empty when every target does.\n\tPlatforms []string `json:\"platforms,omitempty\"`\n\tConsts    []Value  `json:\"consts\"`\n\tVars      []Value  `json:\"vars\"`\n\tFuncs     []Func   `json:\"funcs\"`\n\tTypes     []Type   `json:\"types\"`\n}",
          "doc": "Package is the exported API of one package, grouped as go doc groups it: a type's constants, variables, constructors and methods are under the type rather than the package.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 62,
          "members": [
            {
              "name": "ImportPath",
              "anchor": "Package.ImportPath",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "Package.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Dir",
              "anchor": "Package.Dir",
              "kind": "field",
              "doc": "Dir is the package's directory below the module's root, with slashes, \".\" for the root."
            },
            {
              "name": "Page",
              "anchor": "Package.Page",
              "kind": "field",
              "doc": "Page is the path of the package's page below the reference's root: Dir, or Name for the module's root package. DocHTML links another package of the module by the path from one page to the other, each page a directory."
            },
            {
              "name": "Synopsis",
              "anchor": "Package.Synopsis",
              "kind": "field",
              "doc": "Synopsis is the first sentence of Doc."
            },
            {
              "name": "Doc",
              "anchor": "Package.Doc",
              "kind": "field",
              "doc": "Doc is the package's doc comment as written, without the comment markers."
            },
            {
              "name": "DocHTML",
              "anchor": "Package.DocHTML",
              "kind": "field",
              "doc": "DocHTML is Doc rendered as HTML, when Options.HTML is set."
            },
            {
              "name": "Platforms",
              "anchor": "Package.Platforms",
              "kind": "field",
              "doc": "Platforms are the targets that build the package, empty when every target does."
            },
            {
              "name": "Consts",
              "anchor": "Package.Consts",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Vars",
              "anchor": "Package.Vars",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Funcs",
              "anchor": "Package.Funcs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Types",
              "anchor": "Package.Types",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Reference",
          "anchor": "Reference",
          "decl": "type Reference struct {\n\t// Version is the format's version, Version.\n\tVersion int `json:\"version\"`\n\t// Module is the module's path, from its go.mod.\n\tModule string `json:\"module\"`\n\t// Packages are the module's importable packages, by import path.\n\tPackages []Package `json:\"packages\"`\n}",
          "doc": "Reference is the exported API of a module's packages.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 52,
          "members": [
            {
              "name": "Version",
              "anchor": "Reference.Version",
              "kind": "field",
              "doc": "Version is the format's version, Version."
            },
            {
              "name": "Module",
              "anchor": "Reference.Module",
              "kind": "field",
              "doc": "Module is the module's path, from its go.mod."
            },
            {
              "name": "Packages",
              "anchor": "Reference.Packages",
              "kind": "field",
              "doc": "Packages are the module's importable packages, by import path."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Load",
              "anchor": "Load",
              "decl": "func Load(root string, opts Options) (*Reference, error)",
              "doc": "Load reads the reference of the module whose go.mod is in root.\n",
              "file": "pkg/tooling/apiref/apiref.go",
              "line": 161
            },
            {
              "name": "Unmarshal",
              "anchor": "Unmarshal",
              "decl": "func Unmarshal(data []byte) (*Reference, error)",
              "doc": "Unmarshal decodes a reference Marshal wrote, refusing unknown fields and any version but Version.\n",
              "file": "pkg/tooling/apiref/apiref.go",
              "line": 218
            }
          ],
          "methods": []
        },
        {
          "name": "Target",
          "anchor": "Target",
          "decl": "type Target struct {\n\tName   string\n\tGOOS   string\n\tGOARCH string\n}",
          "doc": "Target is an NSGo target a package's files are chosen for: its name as the nsgo tool spells it and the GOOS and GOARCH it builds for.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 35,
          "members": [
            {
              "name": "Name",
              "anchor": "Target.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GOOS",
              "anchor": "Target.GOOS",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GOARCH",
              "anchor": "Target.GOARCH",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Type",
          "anchor": "Type",
          "decl": "type Type struct {\n\tName   string `json:\"name\"`\n\tAnchor string `json:\"anchor\"`\n\t// Decl is the type's declaration with its exported fields or methods and their comments.\n\tDecl      string   `json:\"decl\"`\n\tDoc       string   `json:\"doc\"`\n\tDocHTML   string   `json:\"docHTML,omitempty\"`\n\tFile      string   `json:\"file\"`\n\tLine      int      `json:\"line\"`\n\tPlatforms []string `json:\"platforms,omitempty\"`\n\t// Members are a struct's exported fields, embedded ones by their type's name, or an interface's methods.\n\tMembers []Member `json:\"members\"`\n\t// Consts and Vars are the declarations of values of the type.\n\tConsts []Value `json:\"consts\"`\n\tVars   []Value `json:\"vars\"`\n\t// Funcs are the functions that return the type.\n\tFuncs []Func `json:\"funcs\"`\n\t// Methods are the type's exported methods, with those promoted from an unexported embedded type.\n\tMethods []Func `json:\"methods\"`\n}",
          "doc": "Type is a type with the declarations go doc lists under it.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 120,
          "members": [
            {
              "name": "Name",
              "anchor": "Type.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Anchor",
              "anchor": "Type.Anchor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Decl",
              "anchor": "Type.Decl",
              "kind": "field",
              "doc": "Decl is the type's declaration with its exported fields or methods and their comments."
            },
            {
              "name": "Doc",
              "anchor": "Type.Doc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DocHTML",
              "anchor": "Type.DocHTML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "Type.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Line",
              "anchor": "Type.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Platforms",
              "anchor": "Type.Platforms",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Members",
              "anchor": "Type.Members",
              "kind": "field",
              "doc": "Members are a struct's exported fields, embedded ones by their type's name, or an interface's methods."
            },
            {
              "name": "Consts",
              "anchor": "Type.Consts",
              "kind": "field",
              "doc": "Consts and Vars are the declarations of values of the type."
            },
            {
              "name": "Vars",
              "anchor": "Type.Vars",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Funcs",
              "anchor": "Type.Funcs",
              "kind": "field",
              "doc": "Funcs are the functions that return the type."
            },
            {
              "name": "Methods",
              "anchor": "Type.Methods",
              "kind": "field",
              "doc": "Methods are the type's exported methods, with those promoted from an unexported embedded type."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Value",
          "anchor": "Value",
          "decl": "type Value struct {\n\t// Idents are the exported names the declaration declares, in order.\n\tIdents []Ident `json:\"idents\"`\n\t// Decl is the declaration's source, gofmt-formatted, with the comments on its specs.\n\tDecl    string `json:\"decl\"`\n\tDoc     string `json:\"doc\"`\n\tDocHTML string `json:\"docHTML,omitempty\"`\n\t// File is the path of the declaration's file below the module's root, with slashes, and Line its line.\n\tFile string `json:\"file\"`\n\tLine int    `json:\"line\"`\n\t// Platforms are the targets that declare it, empty when every target that builds the package does.\n\tPlatforms []string `json:\"platforms,omitempty\"`\n}",
          "doc": "Value is a declaration of constants or variables: one or a parenthesized group, which shares a doc comment.\n",
          "file": "pkg/tooling/apiref/apiref.go",
          "line": 90,
          "members": [
            {
              "name": "Idents",
              "anchor": "Value.Idents",
              "kind": "field",
              "doc": "Idents are the exported names the declaration declares, in order."
            },
            {
              "name": "Decl",
              "anchor": "Value.Decl",
              "kind": "field",
              "doc": "Decl is the declaration's source, gofmt-formatted, with the comments on its specs."
            },
            {
              "name": "Doc",
              "anchor": "Value.Doc",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DocHTML",
              "anchor": "Value.DocHTML",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "File",
              "anchor": "Value.File",
              "kind": "field",
              "doc": "File is the path of the declaration's file below the module's root, with slashes, and Line its line."
            },
            {
              "name": "Line",
              "anchor": "Value.Line",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Platforms",
              "anchor": "Value.Platforms",
              "kind": "field",
              "doc": "Platforms are the targets that declare it, empty when every target that builds the package does."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/assetbuild",
      "name": "assetbuild",
      "dir": "pkg/tooling/assetbuild",
      "page": "pkg/tooling/assetbuild",
      "synopsis": "Package assetbuild builds a game's assets from the assets section of its game.yaml, which package project defines: it packs sprite atlases, encodes KTX2 textures, converts audio, bakes TrueType and OpenType fonts into AngelCode BMFonts, packs glTF models into single GLB files and generates the Go asset manifest, applying the import settings sidecar beside each image, sound, font or model that package importsettings reads, and keeps a text cache of what each output was built from so a later run rebuilds only the targets whose inputs, sidecars or settings changed.",
      "doc": "Package assetbuild builds a game's assets from the assets section of its game.yaml, which package project defines: it packs sprite atlases, encodes KTX2 textures, converts audio, bakes TrueType and OpenType fonts into AngelCode BMFonts, packs glTF models into single GLB files and generates the Go asset manifest, applying the import settings sidecar beside each image, sound, font or model that package importsettings reads, and keeps a text cache of what each output was built from so a later run rebuilds only the targets whose inputs, sidecars or settings changed.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "ModelFiles",
          "anchor": "ModelFiles",
          "decl": "func ModelFiles(model string, data []byte) ([]string, error)",
          "doc": "ModelFiles returns the slash-separated paths, relative to the project root, of the files the glTF or GLB model at model (slash-separated, relative to the project root) names by relative path in its buffers and images, given the model file's bytes, in the order the model lists them and without repeats: the files a model target embeds and counts as inputs. Data URIs name no file. A URI with a scheme, an absolute path, or one that leaves the project is an error, as is a model whose JSON does not decode.\n",
          "file": "pkg/tooling/assetbuild/model.go",
          "line": 159
        }
      ],
      "types": [
        {
          "name": "Builder",
          "anchor": "Builder",
          "decl": "type Builder struct {\n\t// Root is the directory game.yaml's paths are relative to, normally the one holding game.yaml.\n\tRoot string\n\t// Audio converts audio targets (a zero Encoder when nil).\n\tAudio *audioconv.Encoder\n\t// Version names the tools that build the targets, such as the game layer's module version; a target built by a different Version is rebuilt.\n\tVersion string\n\t// Force rebuilds every target even when the cache says it is up to date.\n\tForce bool\n\t// Check reports which targets are out of date without writing anything under Root: their status is Stale instead of Built. A target whose cache entry does not match is built in a temporary folder and counts as up to date when Root already holds exactly the files it writes, so a check passes on a fresh checkout whose committed outputs are current even without the cache. AAC and MP3 targets are the exception: an external encoder writes them, and another encoder or encoder version writes different bytes for the same input, so with no cache entry for one, as in a fresh checkout, it counts as up to date when its output exists. An atlas also counts as stale when its output folder holds a page file of its name that it no longer writes.\n\tCheck bool\n\t// contains filtered or unexported fields\n}",
          "doc": "Builder builds a project's asset targets against the files in its directory.\n",
          "file": "pkg/tooling/assetbuild/build.go",
          "line": 87,
          "members": [
            {
              "name": "Root",
              "anchor": "Builder.Root",
              "kind": "field",
              "doc": "Root is the directory game.yaml's paths are relative to, normally the one holding game.yaml."
            },
            {
              "name": "Audio",
              "anchor": "Builder.Audio",
              "kind": "field",
              "doc": "Audio converts audio targets (a zero Encoder when nil)."
            },
            {
              "name": "Version",
              "anchor": "Builder.Version",
              "kind": "field",
              "doc": "Version names the tools that build the targets, such as the game layer's module version; a target built by a different Version is rebuilt."
            },
            {
              "name": "Force",
              "anchor": "Builder.Force",
              "kind": "field",
              "doc": "Force rebuilds every target even when the cache says it is up to date."
            },
            {
              "name": "Check",
              "anchor": "Builder.Check",
              "kind": "field",
              "doc": "Check reports which targets are out of date without writing anything under Root: their status is Stale instead of Built. A target whose cache entry does not match is built in a temporary folder and counts as up to date when Root already holds exactly the files it writes, so a check passes on a fresh checkout whose committed outputs are current even without the cache. AAC and MP3 targets are the exception: an external encoder writes them, and another encoder or encoder version writes different bytes for the same input, so with no cache entry for one, as in a fresh checkout, it counts as up to date when its output exists. An atlas also counts as stale when its output folder holds a page file of its name that it no longer writes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Build",
              "anchor": "Builder.Build",
              "recv": "*Builder",
              "decl": "func (b *Builder) Build(ctx context.Context, a *project.Assets) (*Report, error)",
              "doc": "Build builds the targets of a, game.yaml's assets section, in order, skipping each whose key (a hash of its settings, its inputs' paths and contents, those of the import settings sidecars beside them, and Version) and outputs match the cache, then saves the cache when it changed. A nil a declares no targets: Build then reads and writes nothing. A setting in a sidecar overrides the target's: a texture target takes an image sidecar's filter, format, mipmaps and sRGB, an atlas cuts each image whose sidecar has a slice into frames, an audio target takes every setting of a sound's sidecar, loop points included, a font target a font sidecar's size, characters and padding, and a model target a model sidecar's scale and whether to keep animations. A model's key also covers the buffers and images it names by relative path. An image that both an atlas and a texture target read may hold both kinds of settings in its sidecar, each target taking its own; otherwise a setting no target of the image reads is refused. Before building, Build refuses a sidecar in a folder a target reads from whose asset no target reads, such as one with a mistyped name, and one whose name differs from its asset's in case, unless it holds only a credit section and its asset is there. A sidecar's credit section changes no output and is left out of the key of the targets that read its asset, so editing a credit rebuilds nothing; the key takes the rest of the sidecar's settings, not its bytes, so a comment or layout change rebuilds nothing either. A second Build with nothing changed writes no file. When a target fails, Build saves what it built so far and returns the report up to that target with the error.\n",
              "file": "pkg/tooling/assetbuild/build.go",
              "line": 120
            }
          ]
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind string",
          "doc": "Kind is the sort of work a target does.\n",
          "file": "pkg/tooling/assetbuild/build.go",
          "line": 29,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindAtlas",
                  "anchor": "KindAtlas"
                },
                {
                  "name": "KindTexture",
                  "anchor": "KindTexture"
                },
                {
                  "name": "KindAudio",
                  "anchor": "KindAudio"
                },
                {
                  "name": "KindFont",
                  "anchor": "KindFont"
                },
                {
                  "name": "KindModel",
                  "anchor": "KindModel"
                },
                {
                  "name": "KindManifest",
                  "anchor": "KindManifest"
                }
              ],
              "decl": "const (\n\t// KindAtlas packs a folder of PNG images into atlas pages.\n\tKindAtlas Kind = \"atlas\"\n\t// KindTexture encodes an image into a KTX2 container.\n\tKindTexture Kind = \"texture\"\n\t// KindAudio converts a WAV file.\n\tKindAudio Kind = \"audio\"\n\t// KindFont bakes a TrueType or OpenType font into a bitmap font.\n\tKindFont Kind = \"font\"\n\t// KindModel packs a glTF model into one GLB file.\n\tKindModel Kind = \"model\"\n\t// KindManifest generates the Go asset manifest.\n\tKindManifest Kind = \"manifest\"\n)",
              "doc": "",
              "file": "pkg/tooling/assetbuild/build.go",
              "line": 31
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Report",
          "anchor": "Report",
          "decl": "type Report struct {\n\tTargets []Target\n}",
          "doc": "Report lists every target of a build in the order it ran: atlases, textures, audio, fonts and models in their game.yaml order, the manifest last.\n",
          "file": "pkg/tooling/assetbuild/build.go",
          "line": 71,
          "members": [
            {
              "name": "Targets",
              "anchor": "Report.Targets",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Count",
              "anchor": "Report.Count",
              "recv": "*Report",
              "decl": "func (r *Report) Count(s Status) int",
              "doc": "Count returns how many targets in r have status s.\n",
              "file": "pkg/tooling/assetbuild/build.go",
              "line": 76
            }
          ]
        },
        {
          "name": "Status",
          "anchor": "Status",
          "decl": "type Status string",
          "doc": "Status is what a build did with a target.\n",
          "file": "pkg/tooling/assetbuild/build.go",
          "line": 47,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Built",
                  "anchor": "Built"
                },
                {
                  "name": "UpToDate",
                  "anchor": "UpToDate"
                },
                {
                  "name": "Stale",
                  "anchor": "Stale"
                }
              ],
              "decl": "const (\n\t// Built means the target's outputs were written.\n\tBuilt Status = \"built\"\n\t// UpToDate means the target's inputs, settings and outputs matched the cache, so nothing was written.\n\tUpToDate Status = \"up to date\"\n\t// Stale means a check found the target out of date; nothing was written.\n\tStale Status = \"stale\"\n)",
              "doc": "",
              "file": "pkg/tooling/assetbuild/build.go",
              "line": 49
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Target",
          "anchor": "Target",
          "decl": "type Target struct {\n\t// ID names the target: its kind and its output, such as \"atlas assets/atlases/ui\" or \"texture assets/albedo.ktx2\".\n\tID string\n\t// Kind is the sort of work the target does.\n\tKind Kind\n\t// Status is what the build did with it.\n\tStatus Status\n\t// Outputs are the slash-separated paths, relative to the project directory, of the files the target wrote or would write, sorted; when Status is Stale they are the outputs of the previous build, if any.\n\tOutputs []string\n}",
          "doc": "Target is one target's outcome in a Report.\n",
          "file": "pkg/tooling/assetbuild/build.go",
          "line": 59,
          "members": [
            {
              "name": "ID",
              "anchor": "Target.ID",
              "kind": "field",
              "doc": "ID names the target: its kind and its output, such as \"atlas assets/atlases/ui\" or \"texture assets/albedo.ktx2\"."
            },
            {
              "name": "Kind",
              "anchor": "Target.Kind",
              "kind": "field",
              "doc": "Kind is the sort of work the target does."
            },
            {
              "name": "Status",
              "anchor": "Target.Status",
              "kind": "field",
              "doc": "Status is what the build did with it."
            },
            {
              "name": "Outputs",
              "anchor": "Target.Outputs",
              "kind": "field",
              "doc": "Outputs are the slash-separated paths, relative to the project directory, of the files the target wrote or would write, sorted; when Status is Stale they are the outputs of the previous build, if any."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/assetcheck",
      "name": "assetcheck",
      "dir": "pkg/tooling/assetcheck",
      "page": "pkg/tooling/assetcheck",
      "synopsis": "Package assetcheck checks a game's scene files, Tiled and LDtk maps and sprite atlases, and the references between them, and reports each problem with the file and line that holds it.",
      "doc": "Package assetcheck checks a game's scene files, Tiled and LDtk maps and sprite atlases, and the references between them, and reports each problem with the file and line that holds it. The game check command runs it, so a broken reference fails in CI instead of when a player reaches the level.\n\nCheck walks a directory and reads:\n\n  - scenes, files named *.scene.yaml or *.scene.yml, parsed and validated by sceneformat, whose tilemap sources (Tiled .tmj and .tmx maps and LDtk .ldtk projects, with the level they name), YAML tilesets, sprite and tileset atlases and materials must exist and load, whose glTF models (.gltf or .glb) must exist and load with gltf.LoadFS and hold the node or mesh an object names, whose sprite frames and tile IDs must be in their atlases and tilesets, which must resolve with sceneformat.Resolve when they instance or inherit other scenes, and whose connections must name objects of the scene, counting the objects the scenes it instances and inherits bring, and, given the game's component types (Options.Components), events and handlers those objects' components declare;\n  - YAML tilesets, files named *.tileset.yaml or *.tileset.yml, parsed and validated by tilemap.ParseTileset, whose grid image must exist and be large enough for their columns and tile count, or whose atlas must exist and hold their frames;\n  - cutscenes, files named *.cutscene.yaml or *.cutscene.yml, parsed and validated by cutscene, whose video or timeline audio sources and scene file must exist, whose actor and camera target object IDs must exist in the referenced scene, and whose dialogue line IDs must exist in the project's localization YAML string tables;\n  - 3D world files named *.gridmap.yaml/.yml, *.terrain.yaml/.yml and *.foliage.yaml/.yml, parsed and validated by world3d, whose referenced mesh libraries (and their tile names for .gltf libraries), heightmaps, splat maps, layer textures, terrain definitions, foliage meshes, materials and density maps must exist and decode;\n  - Tiled maps (.tmj) and tilesets (.tsj), whose external tilesets must be JSON tilesets (.tsj or .json) that exist, whose tileset and image-layer images must exist, and which must load with tilemap.LoadTiled;\n  - LDtk projects (.ldtk), whose tileset images and level backgrounds must exist, whose levels must not be saved in separate files, which tilemap.LoadLDtkAll does not read, and which must load with tilemap.LoadLDtkAll;\n  - sprite atlases, JSON files with top-level frames and meta objects as TexturePacker and Aseprite write them, whose meta.image must exist, whose frames must lie inside it, and which must load with sprite.LoadAtlas;\n  - every other reference refs.Scan finds, which must name a file that exists, or a folder for game.yaml's asset inputs that are folders: the scene a scene inherits or an object instances, references in scenes not named *.scene.yaml that a reference names as a scene, a material's texture, the paths game.yaml autoloads and builds assets from, and the rest; what a tool writes, such as an asset target's out, need not exist yet. game.yaml must parse, and so must the project indexes refs reads, with no uid shared by two files of one project.\n\nA reference to a file that is gone says where the file went when the project index (refs.IndexFileName) finds it again (refs.Project.Moved), and that game index updates the reference.\n\nA file a map or tileset names is resolved from that file's directory, as Tiled and LDtk write them. A scene's tilemap source, tileset file and material paths, and a YAML tileset's image, are resolved from its project root, the nearest directory above the scene that holds game.yaml, nsgo.yaml or go.mod, or the checked directory when none does. A scene names an atlas by name, as a sceneformat.AssetResolver resolves it: the name is the path of an atlas JSON file without its .json extension, either from the project root or as the file's base name, and when several atlases in the project match, the one nearest the scene, counting the directories up from the scene and down to the atlas, wins. A JSON file of that name that does not parse, or is not an atlas, is reported when a scene names it. PNG, JPEG and GIF images must also decode; other images only have to exist.\n\nDirectories whose names start with \".\" or \"_\", and those named testdata, are skipped, as the go command skips them.\n",
      "consts": [],
      "vars": [],
      "funcs": [],
      "types": [
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Components, when non-nil, are the game's component types, whose events and handlers a scene's connections name: every object's components are checked against them, as sceneformat.ParseWith checks them, and so is every connection, so a connection naming an event or handler its object does not declare, or a handler argument it does not take, is a Problem at the line that names it. In a scene that instances or inherits other scenes, the components its overrides write and every connection of the resolved scene are checked too, and an override that breaks a connection the other scenes bring is a Problem at the override; a fault a scene brings unchanged from another file is reported on that file only. Nil checks a connection's objects only, since the command line cannot know the types a game registers in Go.\n\tComponents *sceneformat.ComponentRegistry\n}",
          "doc": "Options configures CheckWith.\n",
          "file": "pkg/tooling/assetcheck/assetcheck.go",
          "line": 98,
          "members": [
            {
              "name": "Components",
              "anchor": "Options.Components",
              "kind": "field",
              "doc": "Components, when non-nil, are the game's component types, whose events and handlers a scene's connections name: every object's components are checked against them, as sceneformat.ParseWith checks them, and so is every connection, so a connection naming an event or handler its object does not declare, or a handler argument it does not take, is a Problem at the line that names it. In a scene that instances or inherits other scenes, the components its overrides write and every connection of the resolved scene are checked too, and an override that breaks a connection the other scenes bring is a Problem at the override; a fault a scene brings unchanged from another file is reported on that file only. Nil checks a connection's objects only, since the command line cannot know the types a game registers in Go."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Problem",
          "anchor": "Problem",
          "decl": "type Problem struct {\n\t// File is the slash-separated path of the file at fault, relative to the checked directory.\n\tFile string\n\t// Line is the 1-based line of the file that holds the problem, or 0 when the problem is about the whole file, such as a loader error that names no place in it.\n\tLine int\n\t// Column is the 1-based column on Line where the scene or YAML format knows it, or 0 when unknown.\n\tColumn int\n\t// Object is the ID of the scene object the problem names or belongs to when known, or \"\" for file-wide or non-scene problems.\n\tObject string\n\t// Message says what is wrong.\n\tMessage string\n}",
          "doc": "Problem is one thing wrong with a file Check read.\n",
          "file": "pkg/tooling/assetcheck/assetcheck.go",
          "line": 45,
          "members": [
            {
              "name": "File",
              "anchor": "Problem.File",
              "kind": "field",
              "doc": "File is the slash-separated path of the file at fault, relative to the checked directory."
            },
            {
              "name": "Line",
              "anchor": "Problem.Line",
              "kind": "field",
              "doc": "Line is the 1-based line of the file that holds the problem, or 0 when the problem is about the whole file, such as a loader error that names no place in it."
            },
            {
              "name": "Column",
              "anchor": "Problem.Column",
              "kind": "field",
              "doc": "Column is the 1-based column on Line where the scene or YAML format knows it, or 0 when unknown."
            },
            {
              "name": "Object",
              "anchor": "Problem.Object",
              "kind": "field",
              "doc": "Object is the ID of the scene object the problem names or belongs to when known, or \"\" for file-wide or non-scene problems."
            },
            {
              "name": "Message",
              "anchor": "Problem.Message",
              "kind": "field",
              "doc": "Message says what is wrong."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Location",
              "anchor": "Problem.Location",
              "recv": "Problem",
              "decl": "func (p Problem) Location() string",
              "doc": "Location formats p's source position as \"file:line:column\" when both Line and Column are known,\n\"file:line\" when only Line is known, or \"file\" otherwise.\n",
              "file": "pkg/tooling/assetcheck/assetcheck.go",
              "line": 60
            },
            {
              "name": "String",
              "anchor": "Problem.String",
              "recv": "Problem",
              "decl": "func (p Problem) String() string",
              "doc": "String formats p as \"file:line: message\", or \"file: message\" when it has no line, as compilers and go vet print theirs.\n",
              "file": "pkg/tooling/assetcheck/assetcheck.go",
              "line": 71
            }
          ]
        },
        {
          "name": "Report",
          "anchor": "Report",
          "decl": "type Report struct {\n\t// Scenes, Maps, Tilesets and Atlases count the files of each kind that were checked: scene files, Tiled and LDtk maps, Tiled and YAML tilesets, and sprite atlases.\n\tScenes, Maps, Tilesets, Atlases int\n\t// GridMaps, Terrains and Foliage count the 3D world YAML files that were checked: *.gridmap.yaml, *.terrain.yaml and *.foliage.yaml.\n\tGridMaps, Terrains, Foliage int\n\t// Cutscenes counts the *.cutscene.yaml / *.cutscene.yml files that were checked.\n\tCutscenes int\n\t// Screens counts the gameui *.screen.yaml / *.screen.yml files that were checked.\n\tScreens int\n\t// States counts the sprite animation state machine YAML files (*.states.yaml) that were checked.\n\tStates int\n\t// Problems are the problems found, sorted by file, then line, then message.\n\tProblems []Problem\n}",
          "doc": "Report is what Check found.\n",
          "file": "pkg/tooling/assetcheck/assetcheck.go",
          "line": 79,
          "members": [
            {
              "name": "Scenes",
              "anchor": "Report.Scenes",
              "kind": "field",
              "doc": "Scenes, Maps, Tilesets and Atlases count the files of each kind that were checked: scene files, Tiled and LDtk maps, Tiled and YAML tilesets, and sprite atlases."
            },
            {
              "name": "Maps",
              "anchor": "Report.Maps",
              "kind": "field",
              "doc": "Scenes, Maps, Tilesets and Atlases count the files of each kind that were checked: scene files, Tiled and LDtk maps, Tiled and YAML tilesets, and sprite atlases."
            },
            {
              "name": "Tilesets",
              "anchor": "Report.Tilesets",
              "kind": "field",
              "doc": "Scenes, Maps, Tilesets and Atlases count the files of each kind that were checked: scene files, Tiled and LDtk maps, Tiled and YAML tilesets, and sprite atlases."
            },
            {
              "name": "Atlases",
              "anchor": "Report.Atlases",
              "kind": "field",
              "doc": "Scenes, Maps, Tilesets and Atlases count the files of each kind that were checked: scene files, Tiled and LDtk maps, Tiled and YAML tilesets, and sprite atlases."
            },
            {
              "name": "GridMaps",
              "anchor": "Report.GridMaps",
              "kind": "field",
              "doc": "GridMaps, Terrains and Foliage count the 3D world YAML files that were checked: *.gridmap.yaml, *.terrain.yaml and *.foliage.yaml."
            },
            {
              "name": "Terrains",
              "anchor": "Report.Terrains",
              "kind": "field",
              "doc": "GridMaps, Terrains and Foliage count the 3D world YAML files that were checked: *.gridmap.yaml, *.terrain.yaml and *.foliage.yaml."
            },
            {
              "name": "Foliage",
              "anchor": "Report.Foliage",
              "kind": "field",
              "doc": "GridMaps, Terrains and Foliage count the 3D world YAML files that were checked: *.gridmap.yaml, *.terrain.yaml and *.foliage.yaml."
            },
            {
              "name": "Cutscenes",
              "anchor": "Report.Cutscenes",
              "kind": "field",
              "doc": "Cutscenes counts the *.cutscene.yaml / *.cutscene.yml files that were checked."
            },
            {
              "name": "Screens",
              "anchor": "Report.Screens",
              "kind": "field",
              "doc": "Screens counts the gameui *.screen.yaml / *.screen.yml files that were checked."
            },
            {
              "name": "States",
              "anchor": "Report.States",
              "kind": "field",
              "doc": "States counts the sprite animation state machine YAML files (*.states.yaml) that were checked."
            },
            {
              "name": "Problems",
              "anchor": "Report.Problems",
              "kind": "field",
              "doc": "Problems are the problems found, sorted by file, then line, then message."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Check",
              "anchor": "Check",
              "decl": "func Check(fsys fs.FS) (*Report, error)",
              "doc": "Check is CheckWith without Options: it checks that every connection names objects that exist, but not their events and handlers.\n",
              "file": "pkg/tooling/assetcheck/assetcheck.go",
              "line": 104
            },
            {
              "name": "CheckWith",
              "anchor": "CheckWith",
              "decl": "func CheckWith(fsys fs.FS, opts Options) (*Report, error)",
              "doc": "CheckWith walks fsys, such as os.DirFS of a game's directory, checks every scene, map, tileset and atlas in it as the package comment describes, and returns what it found. It returns an error only when fsys's root cannot be read; a file it cannot read or parse is a Problem.\n",
              "file": "pkg/tooling/assetcheck/assetcheck.go",
              "line": 109
            }
          ],
          "methods": [
            {
              "name": "OK",
              "anchor": "Report.OK",
              "recv": "*Report",
              "decl": "func (r *Report) OK() bool",
              "doc": "OK reports whether Check found no problems.\n",
              "file": "pkg/tooling/assetcheck/assetcheck.go",
              "line": 95
            },
            {
              "name": "Summary",
              "anchor": "Report.Summary",
              "recv": "*Report",
              "decl": "func (r *Report) Summary() string",
              "doc": "Summary returns a line counting the files checked and the problems found, such as \"1 scene, 2 maps, 0 tilesets, 1 atlas: 3 problems\".\n",
              "file": "pkg/tooling/assetcheck/assetcheck.go",
              "line": 527
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/audioconv",
      "name": "audioconv",
      "dir": "pkg/tooling/audioconv",
      "page": "pkg/tooling/audioconv",
      "synopsis": "Package audioconv decodes, processes, and encodes game audio assets in pure Go, with optional AAC and MP3 conversion via ffmpeg or macOS afconvert when present on PATH.",
      "doc": "Package audioconv decodes, processes, and encodes game audio assets in pure Go, with optional AAC and MP3 conversion via ffmpeg or macOS afconvert when present on PATH.\n",
      "consts": [],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrEncoderNotFound",
              "anchor": "ErrEncoderNotFound"
            }
          ],
          "decl": "var ErrEncoderNotFound = errors.New(\"audioconv: external audio encoder not found on PATH\")",
          "doc": "ErrEncoderNotFound is returned when no external encoder (ffmpeg, or afconvert on macOS for AAC) is found on PATH.\n",
          "file": "pkg/tooling/audioconv/encode.go",
          "line": 39
        }
      ],
      "funcs": [
        {
          "name": "ConvertBuffer",
          "anchor": "ConvertBuffer",
          "decl": "func ConvertBuffer(ctx context.Context, buf *Buffer, outPath string, format Format, opts Options) error",
          "doc": "ConvertBuffer processes buf with opts and writes it to outPath in format.\n",
          "file": "pkg/tooling/audioconv/encode.go",
          "line": 92
        },
        {
          "name": "ConvertFile",
          "anchor": "ConvertFile",
          "decl": "func ConvertFile(ctx context.Context, inPath, outPath string, format Format, opts Options) error",
          "doc": "ConvertFile reads the WAV file at inPath, applies opts, and writes it to outPath in format.\n",
          "file": "pkg/tooling/audioconv/encode.go",
          "line": 97
        },
        {
          "name": "ConvertToAAC",
          "anchor": "ConvertToAAC",
          "decl": "func ConvertToAAC(ctx context.Context, wavPath, outPath string, bitrateKbps int) error",
          "doc": "ConvertToAAC converts the WAV file at wavPath to AAC at outPath using ffmpeg or macOS afconvert.\n",
          "file": "pkg/tooling/audioconv/encode.go",
          "line": 82
        },
        {
          "name": "ConvertToMP3",
          "anchor": "ConvertToMP3",
          "decl": "func ConvertToMP3(ctx context.Context, wavPath, outPath string, bitrateKbps int) error",
          "doc": "ConvertToMP3 converts the WAV file at wavPath to MP3 at outPath using ffmpeg.\n",
          "file": "pkg/tooling/audioconv/encode.go",
          "line": 87
        },
        {
          "name": "EncodeWAV",
          "anchor": "EncodeWAV",
          "decl": "func EncodeWAV(w io.Writer, buf *Buffer) error",
          "doc": "EncodeWAV writes buf as a standard 16-bit signed little-endian PCM RIFF/WAVE stream, followed by a smpl chunk holding buf.Loop as a forward loop that repeats forever when it is set.\n",
          "file": "pkg/tooling/audioconv/wav.go",
          "line": 260
        },
        {
          "name": "WriteWAVFile",
          "anchor": "WriteWAVFile",
          "decl": "func WriteWAVFile(path string, buf *Buffer) error",
          "doc": "WriteWAVFile encodes buf as a 16-bit PCM WAV file at path.\n",
          "file": "pkg/tooling/audioconv/wav.go",
          "line": 46
        }
      ],
      "types": [
        {
          "name": "Buffer",
          "anchor": "Buffer",
          "decl": "type Buffer struct {\n\t// SampleRate is the number of frames per second, such as 44100 or 22050.\n\tSampleRate int\n\t// Channels is 1 for mono or 2 for stereo.\n\tChannels int\n\t// Samples stores interleaved channel samples of length Frames() * Channels.\n\tSamples []float64\n\t// Loop is the region a player repeats, or nil for none. EncodeWAV writes it in a smpl chunk and DecodeWAV reads the first forward loop of one; Resample scales it to the new rate, and ConvertChannels, Process and Clone keep it.\n\tLoop *Loop\n}",
          "doc": "Buffer holds interleaved floating-point PCM audio samples normalized to [-1, 1].\n",
          "file": "pkg/tooling/audioconv/buffer.go",
          "line": 11,
          "members": [
            {
              "name": "SampleRate",
              "anchor": "Buffer.SampleRate",
              "kind": "field",
              "doc": "SampleRate is the number of frames per second, such as 44100 or 22050."
            },
            {
              "name": "Channels",
              "anchor": "Buffer.Channels",
              "kind": "field",
              "doc": "Channels is 1 for mono or 2 for stereo."
            },
            {
              "name": "Samples",
              "anchor": "Buffer.Samples",
              "kind": "field",
              "doc": "Samples stores interleaved channel samples of length Frames() * Channels."
            },
            {
              "name": "Loop",
              "anchor": "Buffer.Loop",
              "kind": "field",
              "doc": "Loop is the region a player repeats, or nil for none. EncodeWAV writes it in a smpl chunk and DecodeWAV reads the first forward loop of one; Resample scales it to the new rate, and ConvertChannels, Process and Clone keep it."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ConvertChannels",
              "anchor": "ConvertChannels",
              "decl": "func ConvertChannels(buf *Buffer, targetChannels int) (*Buffer, error)",
              "doc": "ConvertChannels converts buf between mono (1) and stereo (2), returning a new Buffer.\n",
              "file": "pkg/tooling/audioconv/dsp.go",
              "line": 223
            },
            {
              "name": "DecodeWAV",
              "anchor": "DecodeWAV",
              "decl": "func DecodeWAV(r io.Reader) (*Buffer, error)",
              "doc": "DecodeWAV reads a RIFF/WAVE stream containing 8-bit unsigned, 16-bit signed, 24-bit signed, 32-bit signed, or 32-bit/64-bit IEEE float PCM audio (mono or stereo). The first forward loop of a smpl chunk becomes the Buffer's Loop when it lies inside the audio.\n",
              "file": "pkg/tooling/audioconv/wav.go",
              "line": 55
            },
            {
              "name": "Process",
              "anchor": "Process",
              "decl": "func Process(buf *Buffer, opts Options) (*Buffer, error)",
              "doc": "Process applies channel conversion, resampling, and loudness normalization to a copy of buf according to opts.\n",
              "file": "pkg/tooling/audioconv/dsp.go",
              "line": 24
            },
            {
              "name": "ReadWAVFile",
              "anchor": "ReadWAVFile",
              "decl": "func ReadWAVFile(path string) (*Buffer, error)",
              "doc": "ReadWAVFile reads and decodes a WAV file from disk.\n",
              "file": "pkg/tooling/audioconv/wav.go",
              "line": 36
            },
            {
              "name": "Resample",
              "anchor": "Resample",
              "decl": "func Resample(buf *Buffer, targetRate int) (*Buffer, error)",
              "doc": "Resample returns a new Buffer resampled from buf.SampleRate to targetRate Hz using Hann-windowed sinc interpolation with anti-aliasing when downsampling. Its Loop is buf's scaled to the new rate, each end rounded to the nearest frame.\n",
              "file": "pkg/tooling/audioconv/dsp.go",
              "line": 136
            }
          ],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Buffer.Clone",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Clone() *Buffer",
              "doc": "Clone returns a deep copy of b.\n",
              "file": "pkg/tooling/audioconv/buffer.go",
              "line": 67
            },
            {
              "name": "ConvertChannels",
              "anchor": "Buffer.ConvertChannels",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) ConvertChannels(targetChannels int) (*Buffer, error)",
              "doc": "ConvertChannels returns a copy of b converted to targetChannels (1 for mono, 2 for stereo).\n",
              "file": "pkg/tooling/audioconv/dsp.go",
              "line": 218
            },
            {
              "name": "Duration",
              "anchor": "Buffer.Duration",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Duration() time.Duration",
              "doc": "Duration returns the playback duration of b.\n",
              "file": "pkg/tooling/audioconv/buffer.go",
              "line": 59
            },
            {
              "name": "Frames",
              "anchor": "Buffer.Frames",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Frames() int",
              "doc": "Frames returns the number of multi-channel sample frames in b.\n",
              "file": "pkg/tooling/audioconv/buffer.go",
              "line": 51
            },
            {
              "name": "NormalizePeak",
              "anchor": "Buffer.NormalizePeak",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) NormalizePeak(targetDBFS float64) *Buffer",
              "doc": "NormalizePeak scales b's samples in place so the peak amplitude reaches targetDBFS, returning b for chaining.\nSilent buffers are left unchanged. If targetDBFS is above 0 dBFS, peaks are protected by a soft-knee limiter.\n",
              "file": "pkg/tooling/audioconv/dsp.go",
              "line": 71
            },
            {
              "name": "NormalizeRMS",
              "anchor": "Buffer.NormalizeRMS",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) NormalizeRMS(targetDBFS float64) *Buffer",
              "doc": "NormalizeRMS scales b's samples in place so the RMS loudness targets targetDBFS, returning b for chaining.\nSilent buffers are left unchanged. When scaling would push any sample past ±1.0, a smooth C1 soft-knee limiter keeps all samples strictly within (-1, 1) without hard clipping.\n",
              "file": "pkg/tooling/audioconv/dsp.go",
              "line": 94
            },
            {
              "name": "Peak",
              "anchor": "Buffer.Peak",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Peak() float64",
              "doc": "Peak returns the maximum absolute sample amplitude in b.\n",
              "file": "pkg/tooling/audioconv/buffer.go",
              "line": 101
            },
            {
              "name": "PeakDBFS",
              "anchor": "Buffer.PeakDBFS",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) PeakDBFS() float64",
              "doc": "PeakDBFS returns the peak amplitude in dBFS, or -Inf for silence.\n",
              "file": "pkg/tooling/audioconv/buffer.go",
              "line": 115
            },
            {
              "name": "RMS",
              "anchor": "Buffer.RMS",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) RMS() float64",
              "doc": "RMS returns the root-mean-square amplitude across all samples in b.\n",
              "file": "pkg/tooling/audioconv/buffer.go",
              "line": 120
            },
            {
              "name": "RMSDBFS",
              "anchor": "Buffer.RMSDBFS",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) RMSDBFS() float64",
              "doc": "RMSDBFS returns the root-mean-square amplitude in dBFS, or -Inf for silence.\n",
              "file": "pkg/tooling/audioconv/buffer.go",
              "line": 132
            },
            {
              "name": "Resample",
              "anchor": "Buffer.Resample",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Resample(targetRate int) (*Buffer, error)",
              "doc": "Resample returns a copy of b resampled to targetRate Hz using Hann-windowed sinc interpolation.\n",
              "file": "pkg/tooling/audioconv/dsp.go",
              "line": 131
            },
            {
              "name": "Validate",
              "anchor": "Buffer.Validate",
              "recv": "*Buffer",
              "decl": "func (b *Buffer) Validate() error",
              "doc": "Validate checks that b describes a supported mono or stereo PCM buffer.\n",
              "file": "pkg/tooling/audioconv/buffer.go",
              "line": 31
            }
          ]
        },
        {
          "name": "CommandRunner",
          "anchor": "CommandRunner",
          "decl": "type CommandRunner interface {\n\tLookPath(file string) (string, error)\n\tRun(ctx context.Context, name string, args ...string) ([]byte, error)\n}",
          "doc": "CommandRunner locates and executes external encoder commands. Provide a custom implementation on Encoder to test encoding without spawning real subprocesses.\n",
          "file": "pkg/tooling/audioconv/encode.go",
          "line": 42,
          "members": [
            {
              "name": "LookPath",
              "anchor": "CommandRunner.LookPath",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Run",
              "anchor": "CommandRunner.Run",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Encoder",
          "anchor": "Encoder",
          "decl": "type Encoder struct {\n\t// Runner invokes external encoder binaries; uses os/exec when nil.\n\tRunner CommandRunner\n\t// GOOS overrides runtime.GOOS when deciding whether macOS afconvert may be used.\n\tGOOS string\n}",
          "doc": "Encoder converts PCM audio to WAV, AAC, or MP3. WAV encoding runs in pure Go; AAC and MP3 delegate to ffmpeg (or macOS afconvert for AAC) via Runner.\n",
          "file": "pkg/tooling/audioconv/encode.go",
          "line": 58,
          "members": [
            {
              "name": "Runner",
              "anchor": "Encoder.Runner",
              "kind": "field",
              "doc": "Runner invokes external encoder binaries; uses os/exec when nil."
            },
            {
              "name": "GOOS",
              "anchor": "Encoder.GOOS",
              "kind": "field",
              "doc": "GOOS overrides runtime.GOOS when deciding whether macOS afconvert may be used."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ConvertBuffer",
              "anchor": "Encoder.ConvertBuffer",
              "recv": "*Encoder",
              "decl": "func (e *Encoder) ConvertBuffer(ctx context.Context, buf *Buffer, outPath string, format Format, opts Options) error",
              "doc": "ConvertBuffer processes buf according to opts and writes it to outPath in format. A WAV file keeps buf.Loop, scaled to the output rate, in its smpl chunk; AAC and MP3 files carry no loop points.\n",
              "file": "pkg/tooling/audioconv/encode.go",
              "line": 174
            },
            {
              "name": "ConvertFile",
              "anchor": "Encoder.ConvertFile",
              "recv": "*Encoder",
              "decl": "func (e *Encoder) ConvertFile(ctx context.Context, inPath, outPath string, format Format, opts Options) error",
              "doc": "ConvertFile reads the WAV file at inPath, applies opts, and writes it to outPath in format.\n",
              "file": "pkg/tooling/audioconv/encode.go",
              "line": 211
            },
            {
              "name": "ConvertToAAC",
              "anchor": "Encoder.ConvertToAAC",
              "recv": "*Encoder",
              "decl": "func (e *Encoder) ConvertToAAC(ctx context.Context, wavPath, outPath string, bitrateKbps int) error",
              "doc": "ConvertToAAC converts the WAV file at wavPath to AAC at outPath using ffmpeg, falling back to afconvert on macOS.\n",
              "file": "pkg/tooling/audioconv/encode.go",
              "line": 102
            },
            {
              "name": "ConvertToMP3",
              "anchor": "Encoder.ConvertToMP3",
              "recv": "*Encoder",
              "decl": "func (e *Encoder) ConvertToMP3(ctx context.Context, wavPath, outPath string, bitrateKbps int) error",
              "doc": "ConvertToMP3 converts the WAV file at wavPath to MP3 at outPath using ffmpeg.\n",
              "file": "pkg/tooling/audioconv/encode.go",
              "line": 158
            },
            {
              "name": "Tool",
              "anchor": "Encoder.Tool",
              "recv": "*Encoder",
              "decl": "func (e *Encoder) Tool(ctx context.Context, format Format) (string, error)",
              "doc": "Tool describes the encoder ConvertBuffer uses for format on this machine, so a caller that caches converted files can tell when the same input would now convert to different bytes. It is \"\" for WAV, which is encoded in Go. For AAC and MP3 it names the external encoder and, for ffmpeg, the first line of its -version output, such as \"ffmpeg version 7.1.1\"; afconvert reports no version, so it is only \"afconvert\". It returns an error wrapping ErrEncoderNotFound when no encoder is available.\n",
              "file": "pkg/tooling/audioconv/encode.go",
              "line": 138
            }
          ]
        },
        {
          "name": "Format",
          "anchor": "Format",
          "decl": "type Format string",
          "doc": "Format names an output audio format.\n",
          "file": "pkg/tooling/audioconv/encode.go",
          "line": 16,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FormatWAV",
                  "anchor": "FormatWAV"
                },
                {
                  "name": "FormatAAC",
                  "anchor": "FormatAAC"
                },
                {
                  "name": "FormatMP3",
                  "anchor": "FormatMP3"
                }
              ],
              "decl": "const (\n\tFormatWAV Format = \"wav\"\n\tFormatAAC Format = \"aac\"\n\tFormatMP3 Format = \"mp3\"\n)",
              "doc": "",
              "file": "pkg/tooling/audioconv/encode.go",
              "line": 18
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "ParseFormat",
              "anchor": "ParseFormat",
              "decl": "func ParseFormat(s string) (Format, error)",
              "doc": "ParseFormat parses a case-insensitive format name (\"wav\", \"aac\", or \"mp3\").\n",
              "file": "pkg/tooling/audioconv/encode.go",
              "line": 25
            }
          ],
          "methods": []
        },
        {
          "name": "Loop",
          "anchor": "Loop",
          "decl": "type Loop struct {\n\t// Start is the first frame of the loop.\n\tStart int\n\t// End is the frame after the loop's last one; it must be above Start and at most the buffer's Frames.\n\tEnd int\n}",
          "doc": "Loop is a region of a Buffer that a player repeats, in sample frames: from Start up to, but not including, End.\n",
          "file": "pkg/tooling/audioconv/buffer.go",
          "line": 23,
          "members": [
            {
              "name": "Start",
              "anchor": "Loop.Start",
              "kind": "field",
              "doc": "Start is the first frame of the loop."
            },
            {
              "name": "End",
              "anchor": "Loop.End",
              "kind": "field",
              "doc": "End is the frame after the loop's last one; it must be above Start and at most the buffer's Frames."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// SampleRate resamples audio to this rate in Hz when > 0.\n\tSampleRate int\n\t// Channels converts audio to 1 (mono) or 2 (stereo) when > 0.\n\tChannels int\n\t// PeakDBFS normalizes peak sample amplitude to this level in dBFS when non-nil (for example -1.0).\n\tPeakDBFS *float64\n\t// RMSDBFS normalizes RMS loudness to this level in dBFS when non-nil (for example -14.0), applying a soft-knee limiter when peaks would exceed 0 dBFS.\n\tRMSDBFS *float64\n\t// Bitrate sets the target bitrate in kbps for lossy output formats (AAC and MP3), defaulting to 128 when <= 0.\n\tBitrate int\n}",
          "doc": "Options configures audio processing before encoding.\n",
          "file": "pkg/tooling/audioconv/dsp.go",
          "line": 10,
          "members": [
            {
              "name": "SampleRate",
              "anchor": "Options.SampleRate",
              "kind": "field",
              "doc": "SampleRate resamples audio to this rate in Hz when > 0."
            },
            {
              "name": "Channels",
              "anchor": "Options.Channels",
              "kind": "field",
              "doc": "Channels converts audio to 1 (mono) or 2 (stereo) when > 0."
            },
            {
              "name": "PeakDBFS",
              "anchor": "Options.PeakDBFS",
              "kind": "field",
              "doc": "PeakDBFS normalizes peak sample amplitude to this level in dBFS when non-nil (for example -1.0)."
            },
            {
              "name": "RMSDBFS",
              "anchor": "Options.RMSDBFS",
              "kind": "field",
              "doc": "RMSDBFS normalizes RMS loudness to this level in dBFS when non-nil (for example -14.0), applying a soft-knee limiter when peaks would exceed 0 dBFS."
            },
            {
              "name": "Bitrate",
              "anchor": "Options.Bitrate",
              "kind": "field",
              "doc": "Bitrate sets the target bitrate in kbps for lossy output formats (AAC and MP3), defaulting to 128 when <= 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/bench",
      "name": "bench",
      "dir": "pkg/tooling/bench",
      "page": "pkg/tooling/bench",
      "synopsis": "Package bench keeps Go benchmark baselines in a versioned YAML text file, reads the results `go test -bench` and `nsgo test -bench` print, and reports the benchmarks that regressed past the baseline's limits.",
      "doc": "Package bench keeps Go benchmark baselines in a versioned YAML text file, reads the results `go test -bench` and `nsgo test -bench` print, and reports the benchmarks that regressed past the baseline's limits. The game command's bench subcommand is built on it.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultLimit",
              "anchor": "DefaultLimit"
            }
          ],
          "decl": "const DefaultLimit = 25",
          "doc": "DefaultLimit is the regression allowed for each metric, in percent, in a Baseline made by NewBaseline.\n",
          "file": "pkg/tooling/bench/bench.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the version written to every Baseline and the only one Decode accepts.\n",
          "file": "pkg/tooling/bench/bench.go",
          "line": 23
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "ParseOutput",
          "anchor": "ParseOutput",
          "decl": "func ParseOutput(r io.Reader) (map[string]Metrics, error)",
          "doc": "ParseOutput reads benchmark result lines and returns the median metrics of each benchmark, by name without its trailing -GOMAXPROCS suffix.\n\nIt reads the lines `go test -bench -benchmem` prints, such as \"BenchmarkRaycast-8  2000000  420.5 ns/op  0 B/op  0 allocs/op\", and the same lines `nsgo test -bench` prints after a ✓ mark, and skips every other line. A line without ns/op is skipped; one without B/op or allocs/op counts them as 0.\n",
          "file": "pkg/tooling/bench/bench.go",
          "line": 279
        },
        {
          "name": "SaveFile",
          "anchor": "SaveFile",
          "decl": "func SaveFile(path string, b *Baseline) error",
          "doc": "SaveFile writes b to path as the YAML text Encode produces, creating path's directory if needed.\n",
          "file": "pkg/tooling/bench/bench.go",
          "line": 262
        }
      ],
      "types": [
        {
          "name": "Baseline",
          "anchor": "Baseline",
          "decl": "type Baseline struct {\n\t// Version is the format version; it must equal FormatVersion.\n\tVersion int\n\t// Note is free text kept with the file, such as how to update it.\n\tNote string\n\t// Limits are the allowed regressions.\n\tLimits Limits\n\t// Benchmarks are the baseline metrics by benchmark name.\n\tBenchmarks map[string]Metrics\n}",
          "doc": "Baseline is the stored file a benchmark run is checked against: the regression limits and each benchmark's metrics, by benchmark name without its -GOMAXPROCS suffix.\n",
          "file": "pkg/tooling/bench/bench.go",
          "line": 49,
          "members": [
            {
              "name": "Version",
              "anchor": "Baseline.Version",
              "kind": "field",
              "doc": "Version is the format version; it must equal FormatVersion."
            },
            {
              "name": "Note",
              "anchor": "Baseline.Note",
              "kind": "field",
              "doc": "Note is free text kept with the file, such as how to update it."
            },
            {
              "name": "Limits",
              "anchor": "Baseline.Limits",
              "kind": "field",
              "doc": "Limits are the allowed regressions."
            },
            {
              "name": "Benchmarks",
              "anchor": "Baseline.Benchmarks",
              "kind": "field",
              "doc": "Benchmarks are the baseline metrics by benchmark name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Decode",
              "anchor": "Decode",
              "decl": "func Decode(data []byte) (*Baseline, error)",
              "doc": "Decode reads a Baseline from the YAML text Encode writes, including text a person has edited, and validates it. Unknown keys, a missing limit or metric, and trailing YAML documents are refused, and a file of another version is refused with an error naming that version.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 198
            },
            {
              "name": "LoadFile",
              "anchor": "LoadFile",
              "decl": "func LoadFile(path string) (*Baseline, error)",
              "doc": "LoadFile reads and decodes the Baseline at path. Its errors are *loaderr.Error values that name path, with the line of the problem and how to fix it.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 249
            },
            {
              "name": "NewBaseline",
              "anchor": "NewBaseline",
              "decl": "func NewBaseline() *Baseline",
              "doc": "NewBaseline returns an empty Baseline of the current version with DefaultLimit for every metric.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 61
            }
          ],
          "methods": [
            {
              "name": "Encode",
              "anchor": "Baseline.Encode",
              "recv": "*Baseline",
              "decl": "func (b *Baseline) Encode() ([]byte, error)",
              "doc": "Encode validates b and writes it as deterministic YAML text: the version, the note, the limits, then one line per benchmark in name order.\n\n\tversion: 1\n\tnote: Update with go tool game bench -update.\n\tmax_regression_pct: {ns_per_op: 25, bytes_per_op: 25, allocs_per_op: 25}\n\tbenchmarks:\n\t  BenchmarkLoadAtlas: {ns_per_op: 300000, bytes_per_op: 7200, allocs_per_op: 59}\n\t  BenchmarkRaycast: {ns_per_op: 15000, bytes_per_op: 0, allocs_per_op: 0}\n\nThe same Baseline always encodes to the same bytes, and Decode followed by Encode reproduces a file Encode wrote byte for byte.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 171
            },
            {
              "name": "Update",
              "anchor": "Baseline.Update",
              "recv": "*Baseline",
              "decl": "func (b *Baseline) Update(measured map[string]Metrics)",
              "doc": "Update sets the baseline of every benchmark in measured to its measured metrics, leaving the others as they were.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 99
            },
            {
              "name": "Validate",
              "anchor": "Baseline.Validate",
              "recv": "*Baseline",
              "decl": "func (b *Baseline) Validate() error",
              "doc": "Validate checks that b has the supported version, positive finite limits, and benchmark names starting with \"Benchmark\" whose metrics are finite and not negative.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 70
            }
          ]
        },
        {
          "name": "Limits",
          "anchor": "Limits",
          "decl": "type Limits struct {\n\t// NsPerOp is the allowed growth of the time per operation.\n\tNsPerOp float64\n\t// BytesPerOp is the allowed growth of the bytes allocated per operation.\n\tBytesPerOp float64\n\t// AllocsPerOp is the allowed growth of the allocations per operation.\n\tAllocsPerOp float64\n}",
          "doc": "Limits are how much each metric may grow over its baseline, in percent, before a benchmark counts as regressed.\n",
          "file": "pkg/tooling/bench/bench.go",
          "line": 39,
          "members": [
            {
              "name": "NsPerOp",
              "anchor": "Limits.NsPerOp",
              "kind": "field",
              "doc": "NsPerOp is the allowed growth of the time per operation."
            },
            {
              "name": "BytesPerOp",
              "anchor": "Limits.BytesPerOp",
              "kind": "field",
              "doc": "BytesPerOp is the allowed growth of the bytes allocated per operation."
            },
            {
              "name": "AllocsPerOp",
              "anchor": "Limits.AllocsPerOp",
              "kind": "field",
              "doc": "AllocsPerOp is the allowed growth of the allocations per operation."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Metrics",
          "anchor": "Metrics",
          "decl": "type Metrics struct {\n\t// NsPerOp is the time per operation in nanoseconds.\n\tNsPerOp float64\n\t// BytesPerOp is the memory allocated per operation in bytes.\n\tBytesPerOp float64\n\t// AllocsPerOp is the number of allocations per operation.\n\tAllocsPerOp float64\n}",
          "doc": "Metrics are one benchmark's per-operation costs: the median of the runs measured, or the stored baseline.\n",
          "file": "pkg/tooling/bench/bench.go",
          "line": 29,
          "members": [
            {
              "name": "NsPerOp",
              "anchor": "Metrics.NsPerOp",
              "kind": "field",
              "doc": "NsPerOp is the time per operation in nanoseconds."
            },
            {
              "name": "BytesPerOp",
              "anchor": "Metrics.BytesPerOp",
              "kind": "field",
              "doc": "BytesPerOp is the memory allocated per operation in bytes."
            },
            {
              "name": "AllocsPerOp",
              "anchor": "Metrics.AllocsPerOp",
              "kind": "field",
              "doc": "AllocsPerOp is the number of allocations per operation."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Report",
          "anchor": "Report",
          "decl": "type Report struct {\n\t// Limits are the limits the run was held to.\n\tLimits Limits\n\t// Results are the baseline's benchmarks in name order.\n\tResults []Result\n\t// New are the measured benchmarks the baseline does not hold, in name order; they neither pass nor fail.\n\tNew []string\n}",
          "doc": "Report is a benchmark run compared with a Baseline.\n",
          "file": "pkg/tooling/bench/bench.go",
          "line": 380,
          "members": [
            {
              "name": "Limits",
              "anchor": "Report.Limits",
              "kind": "field",
              "doc": "Limits are the limits the run was held to."
            },
            {
              "name": "Results",
              "anchor": "Report.Results",
              "kind": "field",
              "doc": "Results are the baseline's benchmarks in name order."
            },
            {
              "name": "New",
              "anchor": "Report.New",
              "kind": "field",
              "doc": "New are the measured benchmarks the baseline does not hold, in name order; they neither pass nor fail."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Evaluate",
              "anchor": "Evaluate",
              "decl": "func Evaluate(b *Baseline, measured map[string]Metrics) Report",
              "doc": "Evaluate compares measured with b's benchmarks: a benchmark fails when it was not measured, when a measured metric is NaN, infinite or negative, or when a metric grew past b.Limits.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 414
            }
          ],
          "methods": [
            {
              "name": "Failed",
              "anchor": "Report.Failed",
              "recv": "Report",
              "decl": "func (r Report) Failed() int",
              "doc": "Failed returns the number of baseline benchmarks that regressed or were not measured.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 403
            },
            {
              "name": "Passed",
              "anchor": "Report.Passed",
              "recv": "Report",
              "decl": "func (r Report) Passed() bool",
              "doc": "Passed reports whether the baseline holds at least one benchmark and every one of them passed.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 390
            },
            {
              "name": "String",
              "anchor": "Report.String",
              "recv": "Report",
              "decl": "func (r Report) String() string",
              "doc": "String renders r as a table with a PASS or FAIL line per baseline benchmark, the reason under each failure, and the measured benchmarks the baseline lacks.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 490
            }
          ]
        },
        {
          "name": "Result",
          "anchor": "Result",
          "decl": "type Result struct {\n\t// Name is the benchmark's name.\n\tName string\n\t// Missing reports that the benchmark is in the baseline but was not measured.\n\tMissing bool\n\t// Baseline and Measured are the stored and the measured metrics.\n\tBaseline, Measured Metrics\n\t// Delta is each metric's change from the baseline in percent; +Inf when the baseline is 0 and the measurement is not.\n\tDelta Metrics\n\t// Regressions describe each metric that grew past its limit.\n\tRegressions []string\n}",
          "doc": "Result is one baseline benchmark compared with its measurement.\n",
          "file": "pkg/tooling/bench/bench.go",
          "line": 363,
          "members": [
            {
              "name": "Name",
              "anchor": "Result.Name",
              "kind": "field",
              "doc": "Name is the benchmark's name."
            },
            {
              "name": "Missing",
              "anchor": "Result.Missing",
              "kind": "field",
              "doc": "Missing reports that the benchmark is in the baseline but was not measured."
            },
            {
              "name": "Baseline",
              "anchor": "Result.Baseline",
              "kind": "field",
              "doc": "Baseline and Measured are the stored and the measured metrics."
            },
            {
              "name": "Measured",
              "anchor": "Result.Measured",
              "kind": "field",
              "doc": "Baseline and Measured are the stored and the measured metrics."
            },
            {
              "name": "Delta",
              "anchor": "Result.Delta",
              "kind": "field",
              "doc": "Delta is each metric's change from the baseline in percent; +Inf when the baseline is 0 and the measurement is not."
            },
            {
              "name": "Regressions",
              "anchor": "Result.Regressions",
              "kind": "field",
              "doc": "Regressions describe each metric that grew past its limit."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Passed",
              "anchor": "Result.Passed",
              "recv": "Result",
              "decl": "func (r Result) Passed() bool",
              "doc": "Passed reports whether the benchmark was measured and no metric grew past its limit.\n",
              "file": "pkg/tooling/bench/bench.go",
              "line": 377
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/credits",
      "name": "credits",
      "dir": "pkg/tooling/credits",
      "page": "pkg/tooling/credits",
      "synopsis": "Package credits lists who made each of a game's assets and under what license, from the credit section of the import settings sidecar beside each one (package importsettings), and writes the list as the credits file a release ships with.",
      "doc": "Package credits lists who made each of a game's assets and under what license, from the credit section of the import settings sidecar beside each one (package importsettings), and writes the list as the credits file a release ships with.\n\nAssets returns the assets game.yaml's assets section (package project) reaches: the images each atlas packs, the image of each texture target, the sound of each audio target, and every file in the manifest's folder that the manifest lists, except the files the targets write, which are made from those inputs. Collect reads each one's sidecar and returns its credit, with a *MissingError naming every asset that has no sidecar or a sidecar without a credit. Markdown writes the entries as FileName, CREDITS.md: a table of each asset's author, license and source, a count of the assets under each license, and each notice a license requires to be shipped, word for word.\n\ngame release writes the file beside the packages it builds, and refuses to build when an asset has no credit; game credits writes or prints it on its own.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FileName",
              "anchor": "FileName"
            }
          ],
          "decl": "const FileName = \"CREDITS.md\"",
          "doc": "FileName is the name of the credits file game release writes beside a release's packages.\n",
          "file": "pkg/tooling/credits/credits.go",
          "line": 22
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "Assets",
          "anchor": "Assets",
          "decl": "func Assets(root string, a *project.Assets) ([]string, error)",
          "doc": "Assets returns the slash-separated paths, relative to root, of the assets a reaches, sorted: the PNG images each atlas packs, the input of each texture, audio, font and model target, the buffers and images each model names by relative path (assetbuild.ModelFiles), which its GLB embeds, and every file the manifest lists in its folder, leaving out what a target writes (Assets.IsOutput), since that is made from the targets' inputs. A file a target wrote before its output changed counts as an asset until game assets removes it. A nil a reaches none. It fails when an input a target names is missing; a manifest folder that is not there yet holds no asset.\n",
          "file": "pkg/tooling/credits/credits.go",
          "line": 57
        },
        {
          "name": "Markdown",
          "anchor": "Markdown",
          "decl": "func Markdown(entries []Entry) []byte",
          "doc": "Markdown writes entries as the credits file, sorted by asset: a table of each asset's author, license and source, a table of how many assets each license covers, linking each single SPDX identifier to its page in the SPDX license list, and each asset's notice word for word in a fenced block. The output depends only on entries, so the same credits always give the same bytes.\n",
          "file": "pkg/tooling/credits/credits.go",
          "line": 222
        },
        {
          "name": "Write",
          "anchor": "Write",
          "decl": "func Write(dir string, entries []Entry) (string, error)",
          "doc": "Write writes the credits file of entries, as Markdown makes it, to FileName in dir, creating dir when it is missing, and returns the file's path.\n",
          "file": "pkg/tooling/credits/credits.go",
          "line": 318
        }
      ],
      "types": [
        {
          "name": "Entry",
          "anchor": "Entry",
          "decl": "type Entry struct {\n\t// Asset is the asset's slash-separated path relative to the project root.\n\tAsset string\n\t// Credit is the credit section of the asset's import settings sidecar.\n\tCredit importsettings.Credit\n}",
          "doc": "Entry is one asset and its credit.\n",
          "file": "pkg/tooling/credits/credits.go",
          "line": 25,
          "members": [
            {
              "name": "Asset",
              "anchor": "Entry.Asset",
              "kind": "field",
              "doc": "Asset is the asset's slash-separated path relative to the project root."
            },
            {
              "name": "Credit",
              "anchor": "Entry.Credit",
              "kind": "field",
              "doc": "Credit is the credit section of the asset's import settings sidecar."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Collect",
              "anchor": "Collect",
              "decl": "func Collect(root string, a *project.Assets) ([]Entry, error)",
              "doc": "Collect returns the credit of every asset Assets returns, in its order, read from the credit section of the import settings sidecar beside each one (or a generated asset's *.source.yaml sidecar when its license is known). It also checks every *.source.yaml sidecar under root and fails with *UnknownLicenseError if any generated asset has an unknown or empty license. A sidecar counts only under exactly its asset's name and the suffix, so a case-insensitive file system, which would open Hero.PNG.import.yaml for hero.png, credits the same assets as a case-sensitive one. When some assets have none, it returns the entries of the others with a *MissingError naming them; a sidecar that fails to parse is an error of its own.\n",
              "file": "pkg/tooling/credits/credits.go",
              "line": 133
            }
          ],
          "methods": []
        },
        {
          "name": "GeneratedAssetLicense",
          "anchor": "GeneratedAssetLicense",
          "decl": "type GeneratedAssetLicense struct {\n\t// Asset is the generated asset's slash-separated path relative to the project root.\n\tAsset string\n\t// SourcePath is the slash-separated path of the asset's *.source.yaml sidecar relative to the project root.\n\tSourcePath string\n\t// Generator is the MCP generator server name recorded in the sidecar.\n\tGenerator string\n\t// Model is the model identifier recorded in the sidecar, if any.\n\tModel string\n\t// License is the license string recorded in the sidecar (possibly empty or \"unknown\").\n\tLicense string\n\t// CommercialUse reports whether the sidecar allows commercial use.\n\tCommercialUse bool\n\t// ApprovedBy names the person who approved the pick, if recorded.\n\tApprovedBy string\n\t// UnknownLicense reports whether License is empty or unknown and therefore blocks release builds.\n\tUnknownLicense bool\n}",
          "doc": "GeneratedAssetLicense summarizes the provenance and license recorded in one generated asset's *.source.yaml sidecar.\n",
          "file": "pkg/tooling/credits/source_licenses.go",
          "line": 18,
          "members": [
            {
              "name": "Asset",
              "anchor": "GeneratedAssetLicense.Asset",
              "kind": "field",
              "doc": "Asset is the generated asset's slash-separated path relative to the project root."
            },
            {
              "name": "SourcePath",
              "anchor": "GeneratedAssetLicense.SourcePath",
              "kind": "field",
              "doc": "SourcePath is the slash-separated path of the asset's *.source.yaml sidecar relative to the project root."
            },
            {
              "name": "Generator",
              "anchor": "GeneratedAssetLicense.Generator",
              "kind": "field",
              "doc": "Generator is the MCP generator server name recorded in the sidecar."
            },
            {
              "name": "Model",
              "anchor": "GeneratedAssetLicense.Model",
              "kind": "field",
              "doc": "Model is the model identifier recorded in the sidecar, if any."
            },
            {
              "name": "License",
              "anchor": "GeneratedAssetLicense.License",
              "kind": "field",
              "doc": "License is the license string recorded in the sidecar (possibly empty or \"unknown\")."
            },
            {
              "name": "CommercialUse",
              "anchor": "GeneratedAssetLicense.CommercialUse",
              "kind": "field",
              "doc": "CommercialUse reports whether the sidecar allows commercial use."
            },
            {
              "name": "ApprovedBy",
              "anchor": "GeneratedAssetLicense.ApprovedBy",
              "kind": "field",
              "doc": "ApprovedBy names the person who approved the pick, if recorded."
            },
            {
              "name": "UnknownLicense",
              "anchor": "GeneratedAssetLicense.UnknownLicense",
              "kind": "field",
              "doc": "UnknownLicense reports whether License is empty or unknown and therefore blocks release builds."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CheckGeneratedLicenses",
              "anchor": "CheckGeneratedLicenses",
              "decl": "func CheckGeneratedLicenses(root string) ([]GeneratedAssetLicense, error)",
              "doc": "CheckGeneratedLicenses scans every *.source.yaml sidecar under root and fails with *UnknownLicenseError when any generated asset has an empty or unknown license, naming every blocked asset path.\n",
              "file": "pkg/tooling/credits/source_licenses.go",
              "line": 151
            },
            {
              "name": "ScanGeneratedLicenses",
              "anchor": "ScanGeneratedLicenses",
              "decl": "func ScanGeneratedLicenses(root string) ([]GeneratedAssetLicense, error)",
              "doc": "ScanGeneratedLicenses walks root and reads every generated asset's *.source.yaml sidecar in deterministic path order, skipping dot-prefixed directories, node_modules, and vendor.\nA malformed *.source.yaml returns an error naming its relative path.\n",
              "file": "pkg/tooling/credits/source_licenses.go",
              "line": 65
            }
          ],
          "methods": []
        },
        {
          "name": "MissingError",
          "anchor": "MissingError",
          "decl": "type MissingError struct {\n\t// Assets are the uncredited assets' slash-separated paths, sorted.\n\tAssets []string\n}",
          "doc": "MissingError is returned by Collect when some assets have no credit: no import settings sidecar, or one without a credit section.\n",
          "file": "pkg/tooling/credits/credits.go",
          "line": 33,
          "members": [
            {
              "name": "Assets",
              "anchor": "MissingError.Assets",
              "kind": "field",
              "doc": "Assets are the uncredited assets' slash-separated paths, sorted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "MissingError.Error",
              "recv": "*MissingError",
              "decl": "func (e *MissingError) Error() string",
              "doc": "Error names every uncredited asset and the sidecar that would credit it.\n",
              "file": "pkg/tooling/credits/credits.go",
              "line": 39
            }
          ]
        },
        {
          "name": "UnknownLicenseError",
          "anchor": "UnknownLicenseError",
          "decl": "type UnknownLicenseError struct {\n\t// Assets are the slash-separated paths of generated assets whose license is unknown, sorted.\n\tAssets []string\n}",
          "doc": "UnknownLicenseError is returned by CheckGeneratedLicenses and Collect when one or more generated assets (*.source.yaml) have an empty or unknown license.\n",
          "file": "pkg/tooling/credits/source_licenses.go",
          "line": 38,
          "members": [
            {
              "name": "Assets",
              "anchor": "UnknownLicenseError.Assets",
              "kind": "field",
              "doc": "Assets are the slash-separated paths of generated assets whose license is unknown, sorted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "UnknownLicenseError.Error",
              "recv": "*UnknownLicenseError",
              "decl": "func (e *UnknownLicenseError) Error() string",
              "doc": "Error names every generated asset whose unknown license blocks a release build.\n",
              "file": "pkg/tooling/credits/source_licenses.go",
              "line": 44
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/datatable",
      "name": "datatable",
      "dir": "pkg/tooling/datatable",
      "page": "pkg/tooling/datatable",
      "synopsis": "Package datatable loads typed game data tables (enemies, items, levels, quests) from CSV, JSON, and YAML with rich per-cell error reporting and live hot reload.",
      "doc": "Package datatable loads typed game data tables (enemies, items, levels, quests) from CSV, JSON, and YAML with rich per-cell error reporting and live hot reload.\n\nYAML is the table format this repository defines: a mapping with a version field (FormatVersion) and a rows list, in which every key of a row names a field of the row type. Unknown fields, duplicate fields, missing or unsupported versions are refused. MarshalYAML and SaveYAML write the same format deterministically (fields in struct order, two-space indentation), so a table loaded and saved again is unchanged. CSV and JSON tables are read as their tools export them.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the schema version of a YAML data table: LoadYAML accepts only this version and MarshalYAML writes it.\n",
          "file": "pkg/tooling/datatable/datatable.go",
          "line": 75
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrDuplicateField",
              "anchor": "ErrDuplicateField"
            }
          ],
          "decl": "var ErrDuplicateField = errors.New(\"duplicate field\")",
          "doc": "ErrDuplicateField is the error a CellError wraps when a YAML row sets the same field twice, for example as \"hp\" and \"HP\".\n",
          "file": "pkg/tooling/datatable/datatable.go",
          "line": 81
        },
        {
          "idents": [
            {
              "name": "ErrUnknownField",
              "anchor": "ErrUnknownField"
            }
          ],
          "decl": "var ErrUnknownField = errors.New(\"unknown field\")",
          "doc": "ErrUnknownField is the error a CellError wraps when a YAML row has a key that names no field of the row type.\n",
          "file": "pkg/tooling/datatable/datatable.go",
          "line": 78
        }
      ],
      "funcs": [
        {
          "name": "LoadCSV",
          "anchor": "LoadCSV",
          "decl": "func LoadCSV[T any](filename string, data []byte) ([]T, error)",
          "doc": "LoadCSV parses UTF-8 CSV data with a header row into []T.\nSlice fields in CSV cells may be delimited by ';', '|', or ','.\n",
          "file": "pkg/tooling/datatable/datatable.go",
          "line": 209
        },
        {
          "name": "LoadFile",
          "anchor": "LoadFile",
          "decl": "func LoadFile[T any](path string) ([]T, error)",
          "doc": "LoadFile reads path from disk and decodes it into []T based on its file extension\n(.csv, .json, .yaml, or .yml).\n",
          "file": "pkg/tooling/datatable/datatable.go",
          "line": 186
        },
        {
          "name": "LoadJSON",
          "anchor": "LoadJSON",
          "decl": "func LoadJSON[T any](filename string, data []byte) ([]T, error)",
          "doc": "LoadJSON parses a JSON array of objects into []T.\n",
          "file": "pkg/tooling/datatable/datatable.go",
          "line": 295
        },
        {
          "name": "LoadYAML",
          "anchor": "LoadYAML",
          "decl": "func LoadYAML[T any](filename string, data []byte) ([]T, error)",
          "doc": "LoadYAML parses a versioned YAML data table into []T. Its errors about the document are *loaderr.Error values that name filename, the line and a fix; one about a cell wraps the *CellError.\n\nThe document is a mapping with two keys: version, which must equal FormatVersion, and rows, a list of mappings whose keys name fields of T by their table tag, json tag or Go field name (matched exactly first, then case-insensitively). A missing or empty rows key is an empty table. Any other top-level key, a missing or unsupported version, a row key that names no field (ErrUnknownField) and a field set twice in one row (ErrDuplicateField) are refused, as are a merge key (<<), a second YAML document in the same file, and a row type in which two fields share a column name; errors inside a row are a *CellError naming the 1-based row and the field.\n",
          "file": "pkg/tooling/datatable/yaml.go",
          "line": 56
        },
        {
          "name": "MarshalYAML",
          "anchor": "MarshalYAML",
          "decl": "func MarshalYAML[T any](rows []T) ([]byte, error)",
          "doc": "MarshalYAML encodes rows as a versioned YAML data table that LoadYAML reads back.\n\nThe output is deterministic: version first, then rows, each row writing every field of T in struct declaration order under its table tag, json tag or Go field name, with two-space indentation. Lists are written inline ([a, b]), a nil pointer as null, and a time.Duration as its String form (such as 1.5s). A nil list and an empty list are both written as [], which loads back as an empty list. Non-finite floats, field types LoadYAML cannot read (maps, structs, interfaces) and a row type in which two fields share a column name are an error.\n",
          "file": "pkg/tooling/datatable/yaml.go",
          "line": 215
        },
        {
          "name": "MatchPattern",
          "anchor": "MatchPattern",
          "decl": "func MatchPattern(pattern, filePath string) (bool, error)",
          "doc": "MatchPattern reports whether filePath matches pattern.\nBoth paths are normalized to forward slashes with leading \"./\" removed. A pattern with no\n'/' matches path.Base(filePath). A \"**\" path segment matches zero or more segments.\n",
          "file": "pkg/tooling/datatable/registry.go",
          "line": 340
        },
        {
          "name": "RegisterRowType",
          "anchor": "RegisterRowType",
          "decl": "func RegisterRowType[T any](r *Registry, pattern string) error",
          "doc": "RegisterRowType registers Go struct row type T for files matching pattern in r.\n",
          "file": "pkg/tooling/datatable/registry.go",
          "line": 286
        },
        {
          "name": "SaveYAML",
          "anchor": "SaveYAML",
          "decl": "func SaveYAML[T any](path string, rows []T) error",
          "doc": "SaveYAML writes rows to path as a versioned YAML data table in the form MarshalYAML produces.\n",
          "file": "pkg/tooling/datatable/yaml.go",
          "line": 269
        },
        {
          "name": "Schema",
          "anchor": "Schema",
          "decl": "func Schema[T any](opts jsonschema.Options) (*jsonschema.Schema, error)",
          "doc": "Schema returns the JSON Schema of a YAML data table of T rows, the format LoadYAML reads and MarshalYAML writes, for an editor or AI tool to validate and complete a table file while it is written.\n\nThe schema is a mapping with a required version, which must equal FormatVersion, and rows, a list of T's rows that may be left out or null for a table with no rows; any other top-level key is refused. Each row is an object keyed by the column names LoadYAML matches, from a field's `table` tag, else its `json` tag, else its Go name, spelled as MarshalYAML writes them, with embedded structs that have neither tag merged in, as the loaders do. A row type in which two fields share a column name is an error, as it is for LoadYAML. A time.Duration is a string such as \"1.5s\" or an integer of nanoseconds.\n\nThe schema describes a table's canonical spelling, which is as strict as LoadYAML about unknown columns and stricter about the rest: it refuses other capitalizations of a column name (LoadYAML also matches a column name in another case), and wants each cell as its own type rather than a string LoadYAML would convert, and a list as a YAML sequence rather than a delimited string. LoadYAML also refuses merge keys (<<), which a YAML language server resolves before validating, so the schema cannot flag them.\n\nopts sets the $id, title and descriptions; Schema fills in FieldName and the time.Duration form unless opts sets them, so a game can pass jsonschema.PackageDocs of its own package as opts.Docs to describe each column. The row schema is at #/definitions/<T's name>.\n",
          "file": "pkg/tooling/datatable/schema.go",
          "line": 16
        }
      ],
      "types": [
        {
          "name": "Cell",
          "anchor": "Cell",
          "decl": "type Cell struct {\n\tKey   string\n\tValue Value\n}",
          "doc": "Cell is a key-value entry in an ordered Row.\n",
          "file": "pkg/tooling/datatable/document.go",
          "line": 503,
          "members": [
            {
              "name": "Key",
              "anchor": "Cell.Key",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "Cell.Value",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CellError",
          "anchor": "CellError",
          "decl": "type CellError struct {\n\tFile  string\n\tRow   int\n\tField string\n\tValue string\n\tErr   error\n}",
          "doc": "CellError identifies the exact file, 1-based data row, and column/field name\nwhere parsing or type conversion failed.\n\nThe loaders return it inside a *loaderr.Error, which adds the cell's line and column in the file and a fix; errors.As finds either.\n",
          "file": "pkg/tooling/datatable/datatable.go",
          "line": 32,
          "members": [
            {
              "name": "File",
              "anchor": "CellError.File",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "CellError.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Field",
              "anchor": "CellError.Field",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Value",
              "anchor": "CellError.Value",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Err",
              "anchor": "CellError.Err",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "CellError.Error",
              "recv": "*CellError",
              "decl": "func (e *CellError) Error() string",
              "doc": "",
              "file": "pkg/tooling/datatable/datatable.go",
              "line": 40
            },
            {
              "name": "Unwrap",
              "anchor": "CellError.Unwrap",
              "recv": "*CellError",
              "decl": "func (e *CellError) Unwrap() error",
              "doc": "",
              "file": "pkg/tooling/datatable/datatable.go",
              "line": 72
            }
          ]
        },
        {
          "name": "ColumnSpec",
          "anchor": "ColumnSpec",
          "decl": "type ColumnSpec struct {\n\tName     string\n\tKind     ValueKind\n\tElemKind ValueKind\n\tNullable bool\n\tType     reflect.Type\n}",
          "doc": "ColumnSpec describes one column of a Go struct row type.\n",
          "file": "pkg/tooling/datatable/registry.go",
          "line": 13,
          "members": [
            {
              "name": "Name",
              "anchor": "ColumnSpec.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "ColumnSpec.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ElemKind",
              "anchor": "ColumnSpec.ElemKind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Nullable",
              "anchor": "ColumnSpec.Nullable",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Type",
              "anchor": "ColumnSpec.Type",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Document",
          "anchor": "Document",
          "decl": "type Document struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Document is an untyped, round-trip editable YAML data table.\n\nEach row keeps its own key order. Opening a table and calling Marshal without edits\nreturns the exact input bytes; editing a single scalar or inline-list cell changes only\nthat cell's line; structural edits (adding, deleting, or reordering rows, or adding a\nnew key to a row) encode deterministically from the preserved YAML AST so untouched rows\nkeep their key order, formatting, and comments.\n",
          "file": "pkg/tooling/datatable/document.go",
          "line": 556,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadDocument",
              "anchor": "LoadDocument",
              "decl": "func LoadDocument(path string) (*Document, error)",
              "doc": "LoadDocument reads path from disk and parses it as an untyped YAML data table.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 589
            },
            {
              "name": "NewDocument",
              "anchor": "NewDocument",
              "decl": "func NewDocument() *Document",
              "doc": "NewDocument constructs an empty version 1 YAML data table document.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 566
            },
            {
              "name": "ParseDocument",
              "anchor": "ParseDocument",
              "decl": "func ParseDocument(filename string, data []byte) (*Document, error)",
              "doc": "ParseDocument parses a versioned YAML data table into an untyped Document.\nIt enforces the same envelope rules as LoadYAML (version: 1, no unknown top-level keys,\nno merge keys, no duplicate keys, no trailing second document) without requiring a Go row type.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 600
            }
          ],
          "methods": [
            {
              "name": "AddRow",
              "anchor": "Document.AddRow",
              "recv": "*Document",
              "decl": "func (d *Document) AddRow(index int, cells ...Cell) error",
              "doc": "AddRow inserts a new row at index (0 <= index <= RowCount()) with the given ordered cells.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 944
            },
            {
              "name": "AppendRow",
              "anchor": "Document.AppendRow",
              "recv": "*Document",
              "decl": "func (d *Document) AppendRow(cells ...Cell) (int, error)",
              "doc": "AppendRow appends a new row at the end of d and returns its 0-based index.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 982
            },
            {
              "name": "Cell",
              "anchor": "Document.Cell",
              "recv": "*Document",
              "decl": "func (d *Document) Cell(row int, col string) (Value, bool)",
              "doc": "Cell returns the value of col in row, and whether that cell is present.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 825
            },
            {
              "name": "CellLine",
              "anchor": "Document.CellLine",
              "recv": "*Document",
              "decl": "func (d *Document) CellLine(row int, col string) int",
              "doc": "CellLine returns the 1-based YAML line number of column col in row, or 0 if\nthe cell or its line metadata is unavailable.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 858
            },
            {
              "name": "Clone",
              "anchor": "Document.Clone",
              "recv": "*Document",
              "decl": "func (d *Document) Clone() *Document",
              "doc": "Clone returns a deep copy of d, including its preserved bytes and YAML AST.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 1039
            },
            {
              "name": "ColumnKind",
              "anchor": "Document.ColumnKind",
              "recv": "*Document",
              "decl": "func (d *Document) ColumnKind(col string) ValueKind",
              "doc": "ColumnKind infers the ValueKind of col from the non-null values present in d.\nIt returns KindNull if no row has a non-null value for col, the shared kind if all\nnon-null values agree, or KindString if values have mixed kinds.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 803
            },
            {
              "name": "Columns",
              "anchor": "Document.Columns",
              "recv": "*Document",
              "decl": "func (d *Document) Columns() []string",
              "doc": "Columns returns the union of all rows' keys in deterministic first-appearance order.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 783
            },
            {
              "name": "DeleteCell",
              "anchor": "Document.DeleteCell",
              "recv": "*Document",
              "decl": "func (d *Document) DeleteCell(row int, col string) error",
              "doc": "DeleteCell removes col from row if present.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 914
            },
            {
              "name": "DeleteRow",
              "anchor": "Document.DeleteRow",
              "recv": "*Document",
              "decl": "func (d *Document) DeleteRow(index int) error",
              "doc": "DeleteRow removes the row at index.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 994
            },
            {
              "name": "Marshal",
              "anchor": "Document.Marshal",
              "recv": "*Document",
              "decl": "func (d *Document) Marshal() ([]byte, error)",
              "doc": "Marshal encodes d back to YAML. If no edits have invalidated the preserved bytes,\nMarshal returns the exact preserved bytes (unchanged for an unedited file, or patched\non only the edited lines); otherwise it encodes deterministically from the AST with\ntwo-space indentation.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 1061
            },
            {
              "name": "MoveRow",
              "anchor": "Document.MoveRow",
              "recv": "*Document",
              "decl": "func (d *Document) MoveRow(from, to int) error",
              "doc": "MoveRow moves the row at index from to index to, preserving its key order, comments, and formatting.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 1013
            },
            {
              "name": "Row",
              "anchor": "Document.Row",
              "recv": "*Document",
              "decl": "func (d *Document) Row(index int) Row",
              "doc": "Row returns a copy of row index.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 766
            },
            {
              "name": "RowCount",
              "anchor": "Document.RowCount",
              "recv": "*Document",
              "decl": "func (d *Document) RowCount() int",
              "doc": "RowCount returns the number of rows in d.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 758
            },
            {
              "name": "RowLine",
              "anchor": "Document.RowLine",
              "recv": "*Document",
              "decl": "func (d *Document) RowLine(row int) int",
              "doc": "RowLine returns the 1-based YAML line number where row begins in the parsed\ndocument, or 0 if line metadata is unavailable (for example on a newly added row).\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 838
            },
            {
              "name": "Rows",
              "anchor": "Document.Rows",
              "recv": "*Document",
              "decl": "func (d *Document) Rows() []Row",
              "doc": "Rows returns copies of all rows in document order.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 771
            },
            {
              "name": "Save",
              "anchor": "Document.Save",
              "recv": "*Document",
              "decl": "func (d *Document) Save(path string) error",
              "doc": "Save marshals d and writes it to path.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 1081
            },
            {
              "name": "SetCell",
              "anchor": "Document.SetCell",
              "recv": "*Document",
              "decl": "func (d *Document) SetCell(row int, col string, val Value) error",
              "doc": "SetCell updates or inserts col in row with val.\nUpdating an existing scalar or inline-list cell on a block-style row patches only that\nline in the preserved YAML bytes; inserting a new key appends it to that row and encodes\ndeterministically from the AST.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 882
            },
            {
              "name": "Version",
              "anchor": "Document.Version",
              "recv": "*Document",
              "decl": "func (d *Document) Version() int",
              "doc": "Version returns the table's format version (FormatVersion).\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 750
            }
          ]
        },
        {
          "name": "Registry",
          "anchor": "Registry",
          "decl": "type Registry struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Registry maps slash-separated file patterns (or basename patterns without '/') to Go\nrow types so editors and tools can validate untyped YAML data tables with LoadYAML's rules.\n",
          "file": "pkg/tooling/datatable/registry.go",
          "line": 271,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRegistry",
              "anchor": "NewRegistry",
              "decl": "func NewRegistry() *Registry",
              "doc": "NewRegistry returns an empty Registry.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 281
            }
          ],
          "methods": [
            {
              "name": "Match",
              "anchor": "Registry.Match",
              "recv": "*Registry",
              "decl": "func (r *Registry) Match(filePath string) *RowType",
              "doc": "Match returns the first registered RowType whose pattern matches filePath, or nil.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 325
            },
            {
              "name": "Register",
              "anchor": "Registry.Register",
              "recv": "*Registry",
              "decl": "func (r *Registry) Register(pattern string, rt *RowType) error",
              "doc": "Register binds pattern to rt. If pattern is already registered, its binding is replaced.\nPatterns are matched in registration order; a pattern without '/' matches the file's\nbasename, and \"**\" matches zero or more path segments.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 300
            }
          ]
        },
        {
          "name": "Row",
          "anchor": "Row",
          "decl": "type Row struct {\n\tCells []Cell\n}",
          "doc": "Row is an ordered mapping of column keys to cell values, preserving the YAML key order.\n",
          "file": "pkg/tooling/datatable/document.go",
          "line": 509,
          "members": [
            {
              "name": "Cells",
              "anchor": "Row.Cells",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Clone",
              "anchor": "Row.Clone",
              "recv": "Row",
              "decl": "func (r Row) Clone() Row",
              "doc": "Clone returns a deep copy of r.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 541
            },
            {
              "name": "Get",
              "anchor": "Row.Get",
              "recv": "Row",
              "decl": "func (r Row) Get(key string) (Value, bool)",
              "doc": "Get returns the value of key in r and whether key is present.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 524
            },
            {
              "name": "Index",
              "anchor": "Row.Index",
              "recv": "Row",
              "decl": "func (r Row) Index(key string) int",
              "doc": "Index returns the 0-based index of key in r, or -1 if absent.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 514
            },
            {
              "name": "Keys",
              "anchor": "Row.Keys",
              "recv": "Row",
              "decl": "func (r Row) Keys() []string",
              "doc": "Keys returns the row's keys in their stored order.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 532
            }
          ]
        },
        {
          "name": "RowType",
          "anchor": "RowType",
          "decl": "type RowType struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "RowType describes a Go struct row type so an untyped Document or editor grid can\nvalidate cells and rows with the exact same rules LoadYAML applies.\n",
          "file": "pkg/tooling/datatable/registry.go",
          "line": 23,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "RowTypeFor",
              "anchor": "RowTypeFor",
              "decl": "func RowTypeFor[T any]() (*RowType, error)",
              "doc": "RowTypeFor builds a RowType for Go struct type T.\nIt applies the same structural checks as LoadYAML[T] (must be a struct with no two\nfields sharing a column name).\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 32
            },
            {
              "name": "RowTypeOf",
              "anchor": "RowTypeOf",
              "decl": "func RowTypeOf(t reflect.Type) (*RowType, error)",
              "doc": "RowTypeOf builds a RowType for Go struct type t.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 37
            }
          ],
          "methods": [
            {
              "name": "Column",
              "anchor": "RowType.Column",
              "recv": "*RowType",
              "decl": "func (rt *RowType) Column(col string) (ColumnSpec, bool)",
              "doc": "Column looks up col by exact name first and then case-insensitively, as LoadYAML does.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 124
            },
            {
              "name": "Columns",
              "anchor": "RowType.Columns",
              "recv": "*RowType",
              "decl": "func (rt *RowType) Columns() []ColumnSpec",
              "doc": "Columns returns the row type's columns in struct declaration order.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 114
            },
            {
              "name": "Name",
              "anchor": "RowType.Name",
              "recv": "*RowType",
              "decl": "func (rt *RowType) Name() string",
              "doc": "Name returns the Go type name of rt.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 95
            },
            {
              "name": "ParseCellText",
              "anchor": "RowType.ParseCellText",
              "recv": "*RowType",
              "decl": "func (rt *RowType) ParseCellText(filename string, row int, field, raw string) (Value, error)",
              "doc": "ParseCellText parses raw grid text for field according to rt and validates it with\nLoadYAML's rules, returning the typed Value or a *CellError.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 181
            },
            {
              "name": "Type",
              "anchor": "RowType.Type",
              "recv": "*RowType",
              "decl": "func (rt *RowType) Type() reflect.Type",
              "doc": "Type returns the underlying Go reflect.Type of rt.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 106
            },
            {
              "name": "ValidateCell",
              "anchor": "RowType.ValidateCell",
              "recv": "*RowType",
              "decl": "func (rt *RowType) ValidateCell(filename string, row int, field string, val Value) error",
              "doc": "ValidateCell validates a single cell value against rt using LoadYAML's conversion rules.\nrow is 0-based; CellError reports 1-based Row.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 142
            },
            {
              "name": "ValidateDocument",
              "anchor": "RowType.ValidateDocument",
              "recv": "*RowType",
              "decl": "func (rt *RowType) ValidateDocument(filename string, doc *Document) error",
              "doc": "ValidateDocument validates every row of doc against rt.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 257
            },
            {
              "name": "ValidateRow",
              "anchor": "RowType.ValidateRow",
              "recv": "*RowType",
              "decl": "func (rt *RowType) ValidateRow(filename string, row int, r Row) error",
              "doc": "ValidateRow checks every cell in r against rt, refusing unknown fields, duplicate fields\n(including case-insensitive duplicates such as \"hp\" and \"HP\"), and values LoadYAML refuses.\n",
              "file": "pkg/tooling/datatable/registry.go",
              "line": 223
            }
          ]
        },
        {
          "name": "Table",
          "anchor": "Table",
          "decl": "type Table[T any] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Table holds a typed game data table loaded from disk and supports safe\nhot reloading via tooling/hotreload.\n\nIf a reload fails (for example due to a typo in a cell during editing), Table\npreserves the last valid rows and records the error in LastError.\n",
          "file": "pkg/tooling/datatable/table.go",
          "line": 16,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTable",
              "anchor": "NewTable",
              "decl": "func NewTable[T any](path string) (*Table[T], error)",
              "doc": "NewTable loads the typed table at path immediately and initializes Version to 1.\n",
              "file": "pkg/tooling/datatable/table.go",
              "line": 26
            }
          ],
          "methods": [
            {
              "name": "LastError",
              "anchor": "Table.LastError",
              "recv": "*Table[T]",
              "decl": "func (t *Table[T]) LastError() error",
              "doc": "LastError returns the error from the most recent reload attempt, or nil if it succeeded.\n",
              "file": "pkg/tooling/datatable/table.go",
              "line": 68
            },
            {
              "name": "Path",
              "anchor": "Table.Path",
              "recv": "*Table[T]",
              "decl": "func (t *Table[T]) Path() string",
              "doc": "Path returns the table's file path.\n",
              "file": "pkg/tooling/datatable/table.go",
              "line": 40
            },
            {
              "name": "Reload",
              "anchor": "Table.Reload",
              "recv": "*Table[T]",
              "decl": "func (t *Table[T]) Reload() error",
              "doc": "Reload re-reads the file from disk. On success, it atomically replaces Rows and\nincrements Version. On failure, existing Rows are preserved and LastError is updated.\n",
              "file": "pkg/tooling/datatable/table.go",
              "line": 80
            },
            {
              "name": "ReloadBytes",
              "anchor": "Table.ReloadBytes",
              "recv": "*Table[T]",
              "decl": "func (t *Table[T]) ReloadBytes(data []byte) error",
              "doc": "ReloadBytes parses raw file bytes using the table's file extension. On success,\nit atomically replaces Rows and increments Version.\n",
              "file": "pkg/tooling/datatable/table.go",
              "line": 87
            },
            {
              "name": "Rows",
              "anchor": "Table.Rows",
              "recv": "*Table[T]",
              "decl": "func (t *Table[T]) Rows() []T",
              "doc": "Rows returns a copy of the currently loaded rows.\n",
              "file": "pkg/tooling/datatable/table.go",
              "line": 48
            },
            {
              "name": "Version",
              "anchor": "Table.Version",
              "recv": "*Table[T]",
              "decl": "func (t *Table[T]) Version() uint64",
              "doc": "Version returns the monotonically increasing load generation (starting at 1).\n",
              "file": "pkg/tooling/datatable/table.go",
              "line": 60
            },
            {
              "name": "Watch",
              "anchor": "Table.Watch",
              "recv": "*Table[T]",
              "decl": "func (t *Table[T]) Watch(watcher *hotreload.Watcher, onReload func([]T))",
              "doc": "Watch registers the table's file with watcher and invokes onReload with the updated\nrows on the engine goroutine whenever a valid edit is saved.\n\nInvalid edits keep the previous valid rows intact and record the error in LastError.\n",
              "file": "pkg/tooling/datatable/table.go",
              "line": 110
            },
            {
              "name": "WatchWithError",
              "anchor": "Table.WatchWithError",
              "recv": "*Table[T]",
              "decl": "func (t *Table[T]) WatchWithError(watcher *hotreload.Watcher, onReload func([]T, error))",
              "doc": "WatchWithError registers the table's file with watcher and invokes onReload with\neither the new rows (err == nil) or the parse error (rows == previous valid rows).\n",
              "file": "pkg/tooling/datatable/table.go",
              "line": 120
            }
          ]
        },
        {
          "name": "Value",
          "anchor": "Value",
          "decl": "type Value struct {\n\tKind ValueKind\n\tText string\n\tList []Value\n}",
          "doc": "Value holds a single cell's value in an untyped YAML data table.\n\nScalar values keep their exact text representation in Text (so large int64/uint64 values\nand integer-vs-float distinctions survive round-trips without float64 precision loss);\nKindList values store their elements in List.\n",
          "file": "pkg/tooling/datatable/document.go",
          "line": 59,
          "members": [
            {
              "name": "Kind",
              "anchor": "Value.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Text",
              "anchor": "Value.Text",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "List",
              "anchor": "Value.List",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BoolValue",
              "anchor": "BoolValue",
              "decl": "func BoolValue(b bool) Value",
              "doc": "BoolValue returns a KindBool Value.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 80
            },
            {
              "name": "DurationValue",
              "anchor": "DurationValue",
              "decl": "func DurationValue(d time.Duration) Value",
              "doc": "DurationValue returns a KindDuration Value formatted with time.Duration.String.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 83
            },
            {
              "name": "FloatValue",
              "anchor": "FloatValue",
              "decl": "func FloatValue(f float64) Value",
              "doc": "FloatValue returns a KindNumber Value holding a float64.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 75
            },
            {
              "name": "InferValue",
              "anchor": "InferValue",
              "decl": "func InferValue(raw string) Value",
              "doc": "InferValue infers a Value and its ValueKind from raw user text.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 225
            },
            {
              "name": "IntValue",
              "anchor": "IntValue",
              "decl": "func IntValue(n int64) Value",
              "doc": "IntValue returns a KindNumber Value holding a signed integer.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 69
            },
            {
              "name": "ListValue",
              "anchor": "ListValue",
              "decl": "func ListValue(items ...Value) Value",
              "doc": "ListValue returns a KindList Value containing a copy of items.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 86
            },
            {
              "name": "NullValue",
              "anchor": "NullValue",
              "decl": "func NullValue() Value",
              "doc": "NullValue returns a KindNull Value.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 95
            },
            {
              "name": "ParseValue",
              "anchor": "ParseValue",
              "decl": "func ParseValue(kind ValueKind, raw string) (Value, error)",
              "doc": "ParseValue parses raw user text as a Value of kind.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 251
            },
            {
              "name": "StringValue",
              "anchor": "StringValue",
              "decl": "func StringValue(s string) Value",
              "doc": "StringValue returns a KindString Value.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 66
            },
            {
              "name": "UintValue",
              "anchor": "UintValue",
              "decl": "func UintValue(n uint64) Value",
              "doc": "UintValue returns a KindNumber Value holding an unsigned integer.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 72
            },
            {
              "name": "ZeroValue",
              "anchor": "ZeroValue",
              "decl": "func ZeroValue(kind ValueKind) Value",
              "doc": "ZeroValue returns the deterministic zero value for kind.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 98
            }
          ],
          "methods": [
            {
              "name": "Bool",
              "anchor": "Value.Bool",
              "recv": "Value",
              "decl": "func (v Value) Bool() (bool, bool)",
              "doc": "Bool returns the boolean value when v is KindBool.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 173
            },
            {
              "name": "Clone",
              "anchor": "Value.Clone",
              "recv": "Value",
              "decl": "func (v Value) Clone() Value",
              "doc": "Clone returns a deep copy of v.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 116
            },
            {
              "name": "Display",
              "anchor": "Value.Display",
              "recv": "Value",
              "decl": "func (v Value) Display() string",
              "doc": "Display returns the human-readable grid text for v.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 191
            },
            {
              "name": "Duration",
              "anchor": "Value.Duration",
              "recv": "Value",
              "decl": "func (v Value) Duration() (time.Duration, bool)",
              "doc": "Duration returns the parsed duration when v is KindDuration.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 182
            },
            {
              "name": "Equal",
              "anchor": "Value.Equal",
              "recv": "Value",
              "decl": "func (v Value) Equal(other Value) bool",
              "doc": "Equal reports whether v and other have the same kind and content.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 124
            },
            {
              "name": "Float64",
              "anchor": "Value.Float64",
              "recv": "Value",
              "decl": "func (v Value) Float64() (float64, bool)",
              "doc": "Float64 parses v as a finite float64 when v is KindNumber.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 161
            },
            {
              "name": "Int64",
              "anchor": "Value.Int64",
              "recv": "Value",
              "decl": "func (v Value) Int64() (int64, bool)",
              "doc": "Int64 parses v as a signed 64-bit integer when v is KindNumber.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 143
            },
            {
              "name": "Uint64",
              "anchor": "Value.Uint64",
              "recv": "Value",
              "decl": "func (v Value) Uint64() (uint64, bool)",
              "doc": "Uint64 parses v as an unsigned 64-bit integer when v is KindNumber.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 152
            }
          ]
        },
        {
          "name": "ValueKind",
          "anchor": "ValueKind",
          "decl": "type ValueKind int",
          "doc": "ValueKind classifies a cell value in an untyped YAML data table.\n",
          "file": "pkg/tooling/datatable/document.go",
          "line": 23,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindString",
                  "anchor": "KindString"
                },
                {
                  "name": "KindNumber",
                  "anchor": "KindNumber"
                },
                {
                  "name": "KindBool",
                  "anchor": "KindBool"
                },
                {
                  "name": "KindDuration",
                  "anchor": "KindDuration"
                },
                {
                  "name": "KindList",
                  "anchor": "KindList"
                },
                {
                  "name": "KindNull",
                  "anchor": "KindNull"
                }
              ],
              "decl": "const (\n\tKindString ValueKind = iota\n\tKindNumber\n\tKindBool\n\tKindDuration\n\tKindList\n\tKindNull\n)",
              "doc": "",
              "file": "pkg/tooling/datatable/document.go",
              "line": 25
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "ValueKind.String",
              "recv": "ValueKind",
              "decl": "func (k ValueKind) String() string",
              "doc": "String returns the human-readable name of k.\n",
              "file": "pkg/tooling/datatable/document.go",
              "line": 35
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/devstate",
      "name": "devstate",
      "dir": "pkg/tooling/devstate",
      "page": "pkg/tooling/devstate",
      "synopsis": "Package devstate saves and restores the running game scene, fixed-step loop clock, and serialized state across Go rebuilds during development.",
      "doc": "Package devstate saves and restores the running game scene, fixed-step loop clock,\nand serialized state across Go rebuilds during development.\n\nIn release builds (-tags release), the package compiles to zero-cost no-op stubs\nso production binaries link none of the reflection, serialization, or file I/O logic.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "ComputeSchemaHash",
          "anchor": "ComputeSchemaHash",
          "decl": "func ComputeSchemaHash(sample any) string",
          "doc": "ComputeSchemaHash reflects the deterministic structural schema of sample\n(field names, tags, and types recursively) and returns its SHA-256 hex digest.\n\nTop-level pointer indirection is unwrapped so ComputeSchemaHash(T{}) and\nComputeSchemaHash(&T{}) yield the exact same hash. Any added, removed,\nrenamed, reordered, or retyped field changes the digest.\n",
          "file": "pkg/tooling/devstate/devstate.go",
          "line": 36
        }
      ],
      "types": [
        {
          "name": "Hook",
          "anchor": "Hook",
          "decl": "type Hook struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Hook binds a Snapshotter to a core.Scope so state is saved automatically on\nexit, scope disposal, or an optional periodic interval.\n",
          "file": "pkg/tooling/devstate/devstate.go",
          "line": 381,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Attach",
              "anchor": "Attach",
              "decl": "func Attach(cx *core.Scope, store *Store, target Snapshotter, opts HookOptions) *Hook",
              "doc": "Attach wires target into cx so that session snapshots are saved automatically\nwhen cx exits or is disposed, and periodically when opts.SaveInterval > 0.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 394
            }
          ],
          "methods": [
            {
              "name": "RestoreInto",
              "anchor": "Hook.RestoreInto",
              "recv": "*Hook",
              "decl": "func (h *Hook) RestoreInto(state any) (RestoreResult, error)",
              "doc": "RestoreInto loads a saved snapshot into state (a non-nil pointer) and, when\nsuccessfully restored, forwards it to the attached Snapshotter's Restore method.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 484
            },
            {
              "name": "SaveNow",
              "anchor": "Hook.SaveNow",
              "recv": "*Hook",
              "decl": "func (h *Hook) SaveNow() error",
              "doc": "SaveNow captures a snapshot from the attached Snapshotter and persists it immediately.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 455
            },
            {
              "name": "Stop",
              "anchor": "Hook.Stop",
              "recv": "*Hook",
              "decl": "func (h *Hook) Stop()",
              "doc": "Stop halts periodic checkpointing and prevents automatic save on scope cleanup.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 507
            }
          ]
        },
        {
          "name": "HookOptions",
          "anchor": "HookOptions",
          "decl": "type HookOptions struct {\n\t// SceneID returns the identifier of the currently active scene.\n\t// If nil, \"default\" is recorded.\n\tSceneID func() string\n\t// LoopTick returns the current fixed-step simulation tick count.\n\tLoopTick func() uint64\n\t// LoopElapsed returns the total elapsed simulation time.\n\tLoopElapsed func() time.Duration\n\t// SaveInterval periodically checkpoints state while running when > 0.\n\tSaveInterval time.Duration\n\t// Logf receives diagnostic messages such as schema mismatch notifications.\n\t// When nil, the store's logger is used.\n\tLogf func(format string, args ...any)\n}",
          "doc": "HookOptions configures how Attach captures scene metadata and checkpoints state.\n",
          "file": "pkg/tooling/devstate/types.go",
          "line": 41,
          "members": [
            {
              "name": "SceneID",
              "anchor": "HookOptions.SceneID",
              "kind": "field",
              "doc": "SceneID returns the identifier of the currently active scene.\nIf nil, \"default\" is recorded."
            },
            {
              "name": "LoopTick",
              "anchor": "HookOptions.LoopTick",
              "kind": "field",
              "doc": "LoopTick returns the current fixed-step simulation tick count."
            },
            {
              "name": "LoopElapsed",
              "anchor": "HookOptions.LoopElapsed",
              "kind": "field",
              "doc": "LoopElapsed returns the total elapsed simulation time."
            },
            {
              "name": "SaveInterval",
              "anchor": "HookOptions.SaveInterval",
              "kind": "field",
              "doc": "SaveInterval periodically checkpoints state while running when > 0."
            },
            {
              "name": "Logf",
              "anchor": "HookOptions.Logf",
              "kind": "field",
              "doc": "Logf receives diagnostic messages such as schema mismatch notifications.\nWhen nil, the store's logger is used."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RestoreResult",
          "anchor": "RestoreResult",
          "decl": "type RestoreResult struct {\n\tRestored    bool\n\tSceneID     string\n\tLoopTick    uint64\n\tLoopElapsed time.Duration\n\tSkipReason  string\n}",
          "doc": "RestoreResult describes the outcome of Store.Restore.\n\nWhen a saved snapshot cannot be applied because its state struct schema changed\nacross a rebuild, Restored is false, SkipReason explains why, and Restore returns\na nil error so the game starts fresh cleanly.\n",
          "file": "pkg/tooling/devstate/types.go",
          "line": 25,
          "members": [
            {
              "name": "Restored",
              "anchor": "RestoreResult.Restored",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SceneID",
              "anchor": "RestoreResult.SceneID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LoopTick",
              "anchor": "RestoreResult.LoopTick",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LoopElapsed",
              "anchor": "RestoreResult.LoopElapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SkipReason",
              "anchor": "RestoreResult.SkipReason",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "SessionSnapshot",
          "anchor": "SessionSnapshot",
          "decl": "type SessionSnapshot struct {\n\tSceneID     string        `json:\"scene_id\"`\n\tSchemaHash  string        `json:\"schema_hash\"`\n\tLoopTick    uint64        `json:\"loop_tick\"`\n\tLoopElapsed time.Duration `json:\"loop_elapsed\"`\n\tPayload     []byte        `json:\"payload\"`\n\tSavedAt     time.Time     `json:\"saved_at\"`\n}",
          "doc": "SessionSnapshot is the persisted state of a running development session.\n",
          "file": "pkg/tooling/devstate/types.go",
          "line": 11,
          "members": [
            {
              "name": "SceneID",
              "anchor": "SessionSnapshot.SceneID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SchemaHash",
              "anchor": "SessionSnapshot.SchemaHash",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LoopTick",
              "anchor": "SessionSnapshot.LoopTick",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LoopElapsed",
              "anchor": "SessionSnapshot.LoopElapsed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Payload",
              "anchor": "SessionSnapshot.Payload",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SavedAt",
              "anchor": "SessionSnapshot.SavedAt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Snapshotter",
          "anchor": "Snapshotter",
          "decl": "type Snapshotter interface {\n\tSnapshot() (any, error)\n\tRestore(state any) error\n}",
          "doc": "Snapshotter is implemented by scenes or game controllers that participate in\nautomatic dev-session capture and restore via Hook.\n",
          "file": "pkg/tooling/devstate/types.go",
          "line": 35,
          "members": [
            {
              "name": "Snapshot",
              "anchor": "Snapshotter.Snapshot",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Restore",
              "anchor": "Snapshotter.Restore",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Store",
          "anchor": "Store",
          "decl": "type Store struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Store persists and restores SessionSnapshots either on disk or in core.Storage.\n",
          "file": "pkg/tooling/devstate/devstate.go",
          "line": 118,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewStorageStore",
              "anchor": "NewStorageStore",
              "decl": "func NewStorageStore(st core.Storage, key string) *Store",
              "doc": "NewStorageStore creates a core.Storage-backed dev session store under key.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 133
            },
            {
              "name": "NewStore",
              "anchor": "NewStore",
              "decl": "func NewStore(path string) *Store",
              "doc": "NewStore creates a file-backed dev session store at path.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 128
            }
          ],
          "methods": [
            {
              "name": "Clear",
              "anchor": "Store.Clear",
              "recv": "*Store",
              "decl": "func (s *Store) Clear() error",
              "doc": "Clear removes any persisted session snapshot.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 277
            },
            {
              "name": "LoadSnapshot",
              "anchor": "Store.LoadSnapshot",
              "recv": "*Store",
              "decl": "func (s *Store) LoadSnapshot() (snap SessionSnapshot, ok bool, err error)",
              "doc": "LoadSnapshot reads the stored SessionSnapshot without decoding its payload.\nIf no snapshot exists, ok is false and err is nil. A snapshot that does not decode returns a *loaderr.Error that names the snapshot's file (or storage key) and line.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 196
            },
            {
              "name": "Restore",
              "anchor": "Store.Restore",
              "recv": "*Store",
              "decl": "func (s *Store) Restore(state any) (RestoreResult, error)",
              "doc": "Restore loads the saved session snapshot into state (which must be a non-nil pointer).\n\nIf no snapshot exists, or if the saved schema hash does not match state's current\nschema, Restore logs a diagnostic notice and returns Restored: false with a clear\nSkipReason and a nil error so the app starts fresh without crashing.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 215
            },
            {
              "name": "Save",
              "anchor": "Store.Save",
              "recv": "*Store",
              "decl": "func (s *Store) Save(sceneID string, loopTick uint64, elapsed time.Duration, state any) error",
              "doc": "Save marshals state together with its schema hash and loop clock, writing the\nsnapshot atomically.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 168
            },
            {
              "name": "SetLogger",
              "anchor": "Store.SetLogger",
              "recv": "*Store",
              "decl": "func (s *Store) SetLogger(logf func(format string, args ...any))",
              "doc": "SetLogger sets the logger used for non-fatal restore notices such as schema mismatches.\nPassing nil restores the default log.Printf behavior.\n",
              "file": "pkg/tooling/devstate/devstate.go",
              "line": 146
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/hotreload",
      "name": "hotreload",
      "dir": "pkg/tooling/hotreload",
      "page": "pkg/tooling/hotreload",
      "synopsis": "Package hotreload watches game assets on disk during development and delivers reloads on the NSGo engine goroutine without restarting the app.",
      "doc": "Package hotreload watches game assets on disk during development and delivers reloads on the NSGo engine goroutine without restarting the app.\n\nIn release builds (-tags release), Watcher compiles to a zero-cost stub that starts no goroutines and performs no file I/O.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "ShaderExtWGSL",
              "anchor": "ShaderExtWGSL"
            },
            {
              "name": "ShaderExtKage",
              "anchor": "ShaderExtKage"
            },
            {
              "name": "MaterialExtYAML",
              "anchor": "MaterialExtYAML"
            },
            {
              "name": "MaterialExtMat",
              "anchor": "MaterialExtMat"
            },
            {
              "name": "MaterialExtYML",
              "anchor": "MaterialExtYML"
            },
            {
              "name": "MaterialExtMatY",
              "anchor": "MaterialExtMatY"
            }
          ],
          "decl": "const (\n\tShaderExtWGSL   = \".wgsl\"\n\tShaderExtKage   = \".kage\"\n\tMaterialExtYAML = \".material.yaml\"\n\tMaterialExtMat  = \".mat.yaml\"\n\tMaterialExtYML  = \".material.yml\"\n\tMaterialExtMatY = \".mat.yml\"\n)",
          "doc": "Recognized shader and material file extensions.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "AssetsDirEnv",
              "anchor": "AssetsDirEnv"
            }
          ],
          "decl": "const AssetsDirEnv = \"NSGO_GAME_ASSETS\"",
          "doc": "AssetsDirEnv is the environment variable `game dev` sets to the absolute path of the directory a game's \"asset:\" URIs name, its resources directory by default, for NewDevWatcher to watch.\n",
          "file": "pkg/tooling/hotreload/options.go",
          "line": 48
        },
        {
          "idents": [
            {
              "name": "DefaultDebounce",
              "anchor": "DefaultDebounce"
            }
          ],
          "decl": "const DefaultDebounce = 40 * time.Millisecond",
          "doc": "DefaultDebounce is how long a changed file must keep the same metadata and content hash before its reload callback runs.\n",
          "file": "pkg/tooling/hotreload/options.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "DefaultPollInterval",
              "anchor": "DefaultPollInterval"
            }
          ],
          "decl": "const DefaultPollInterval = 150 * time.Millisecond",
          "doc": "DefaultPollInterval is how often a Watcher checks watched files on disk when no interval is set.\n",
          "file": "pkg/tooling/hotreload/options.go",
          "line": 9
        },
        {
          "idents": [
            {
              "name": "MaterialVersion",
              "anchor": "MaterialVersion"
            }
          ],
          "decl": "const MaterialVersion = 1",
          "doc": "MaterialVersion is the schema version MaterialDef reads and writes.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "SceneEnv",
              "anchor": "SceneEnv"
            }
          ],
          "decl": "const SceneEnv = \"NSGO_GAME_SCENE\"",
          "doc": "SceneEnv is the environment variable `game dev -scene` (and the editor's Run command when starting at the open scene) sets to the slash-separated scene path relative to the project root, for DevScene to read.\n",
          "file": "pkg/tooling/hotreload/options.go",
          "line": 51
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "CompileShaderSource",
          "anchor": "CompileShaderSource",
          "decl": "func CompileShaderSource(filePath string, data []byte) (*gpu.ShaderModule, error)",
          "doc": "CompileShaderSource compiles a WGSL (.wgsl) or Kage (.kage) shader from data.\nCompile and validation errors are returned as a structured *loaderr.Error naming\nfilePath and the 1-based line and column when the compiler reports them.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 129
        },
        {
          "name": "DevAssetsDir",
          "anchor": "DevAssetsDir",
          "decl": "func DevAssetsDir() string",
          "doc": "DevAssetsDir returns the asset directory `game dev` passes the game in AssetsDirEnv, cleaned, or \"\" when the game does not run under `game dev`.\n",
          "file": "pkg/tooling/hotreload/dev.go",
          "line": 16
        },
        {
          "name": "DevScene",
          "anchor": "DevScene",
          "decl": "func DevScene() string",
          "doc": "DevScene returns the start scene path `game dev -scene` (or the editor's Run command) passes the game in SceneEnv, or \"\" when none was requested.\n",
          "file": "pkg/tooling/hotreload/dev.go",
          "line": 25
        },
        {
          "name": "EncodeMaterial",
          "anchor": "EncodeMaterial",
          "decl": "func EncodeMaterial(m *MaterialDef) ([]byte, error)",
          "doc": "EncodeMaterial validates m and writes deterministic 2-space YAML with fixed\nfield order and sorted parameter keys. A document produced by EncodeMaterial\nround-trips through ParseMaterial and EncodeMaterial with identical bytes.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 172
        },
        {
          "name": "IsMaterialFile",
          "anchor": "IsMaterialFile",
          "decl": "func IsMaterialFile(p string) bool",
          "doc": "IsMaterialFile reports whether p has a recognized material YAML extension (.material.yaml, .mat.yaml, .material.yml, or .mat.yml), matched case-insensitively.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 58
        },
        {
          "name": "IsShaderFile",
          "anchor": "IsShaderFile",
          "decl": "func IsShaderFile(p string) bool",
          "doc": "IsShaderFile reports whether p has a recognized shader extension (.wgsl or .kage), matched case-insensitively.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 52
        },
        {
          "name": "MaterialBlendModes",
          "anchor": "MaterialBlendModes",
          "decl": "func MaterialBlendModes() []string",
          "doc": "MaterialBlendModes returns the sorted blend mode names accepted by MaterialDef.Blend.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 57
        },
        {
          "name": "MaterialCullModes",
          "anchor": "MaterialCullModes",
          "decl": "func MaterialCullModes() []string",
          "doc": "MaterialCullModes returns the sorted face-culling modes accepted by MaterialDef.Cull.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 60
        },
        {
          "name": "MaterialDepthCompares",
          "anchor": "MaterialDepthCompares",
          "decl": "func MaterialDepthCompares() []string",
          "doc": "MaterialDepthCompares returns the sorted depth comparison functions accepted by MaterialDef.DepthCompare.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 66
        },
        {
          "name": "MaterialExtensions",
          "anchor": "MaterialExtensions",
          "decl": "func MaterialExtensions() []string",
          "doc": "MaterialExtensions returns the material YAML file extensions recognized by hotreload, in a fixed order.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 47
        },
        {
          "name": "MaterialFrontFaces",
          "anchor": "MaterialFrontFaces",
          "decl": "func MaterialFrontFaces() []string",
          "doc": "MaterialFrontFaces returns the sorted winding orders accepted by MaterialDef.FrontFace.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 63
        },
        {
          "name": "ShaderExtensions",
          "anchor": "ShaderExtensions",
          "decl": "func ShaderExtensions() []string",
          "doc": "ShaderExtensions returns the shader file extensions recognized by hotreload, in a fixed order.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 42
        }
      ],
      "types": [
        {
          "name": "MaterialDef",
          "anchor": "MaterialDef",
          "decl": "type MaterialDef struct {\n\t// Version is the schema version; it must equal MaterialVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Name is an optional human-readable display name.\n\tName string `yaml:\"name,omitempty\"`\n\t// Shader is a slash-separated relative path to a .wgsl or .kage shader file providing\n\t// both vertex and fragment stages (unless overridden by VertexShader or FragmentShader).\n\tShader string `yaml:\"shader,omitempty\"`\n\t// VertexShader overrides Shader for the vertex stage when split across files.\n\tVertexShader string `yaml:\"vertexShader,omitempty\"`\n\t// FragmentShader overrides Shader for the fragment stage when split across files.\n\tFragmentShader string `yaml:\"fragmentShader,omitempty\"`\n\t// VertexEntry names the @vertex entry point; empty defaults to \"vs_main\".\n\tVertexEntry string `yaml:\"vertexEntry,omitempty\"`\n\t// FragmentEntry names the @fragment entry point; empty defaults to \"fs_main\" (or \"Fragment\" for .kage).\n\tFragmentEntry string `yaml:\"fragmentEntry,omitempty\"`\n\t// Blend selects color/alpha blending (\"opaque\", \"alpha\", \"premultiplied\", \"additive\", \"multiply\"); empty is \"opaque\".\n\tBlend string `yaml:\"blend,omitempty\"`\n\t// Cull selects face culling (\"none\", \"front\", \"back\"); empty is \"back\".\n\tCull string `yaml:\"cull,omitempty\"`\n\t// FrontFace selects front-facing triangle winding (\"ccw\", \"cw\"); empty is \"ccw\".\n\tFrontFace string `yaml:\"frontFace,omitempty\"`\n\t// DepthWrite controls whether fragments write depth; nil defaults to true when a depth attachment is used.\n\tDepthWrite *bool `yaml:\"depthWrite,omitempty\"`\n\t// DepthCompare selects the depth comparison function (\"never\", \"less\", \"equal\", \"lessEqual\", \"greater\", \"notEqual\", \"greaterEqual\", \"always\"); empty is \"less\".\n\tDepthCompare string `yaml:\"depthCompare,omitempty\"`\n\t// Scalars holds named float32 material parameters (for example roughness, metallic, timeScale).\n\tScalars map[string]float32 `yaml:\"scalars,omitempty\"`\n\t// Vec2 holds named 2-component float32 parameters (for example uvScale, uvOffset).\n\tVec2 map[string][2]float32 `yaml:\"vec2,omitempty\"`\n\t// Vec3 holds named 3-component float32 parameters (for example lightDir, rimColor).\n\tVec3 map[string][3]float32 `yaml:\"vec3,omitempty\"`\n\t// Vec4 holds named 4-component float32 parameters (for example tint, params).\n\tVec4 map[string][4]float32 `yaml:\"vec4,omitempty\"`\n\t// Colors holds named CSS color parameters parsed with core.ParseColor (for example \"#ff8800\", \"rgb(10, 20, 30)\").\n\tColors map[string]string `yaml:\"colors,omitempty\"`\n\t// Textures holds named slash-separated relative paths to texture images.\n\tTextures map[string]string `yaml:\"textures,omitempty\"`\n}",
          "doc": "MaterialDef is the text YAML definition of a 3D shader material: its shader path(s),\npipeline render state (blend, cull, front face, depth test/write), and typed parameters\n(scalars, vectors, CSS colors, and texture paths).\n\nFiles use version: 1, refuse unknown fields, and round-trip deterministically through\nParseMaterial and EncodeMaterial.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 83,
          "members": [
            {
              "name": "Version",
              "anchor": "MaterialDef.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal MaterialVersion (1)."
            },
            {
              "name": "Name",
              "anchor": "MaterialDef.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable display name."
            },
            {
              "name": "Shader",
              "anchor": "MaterialDef.Shader",
              "kind": "field",
              "doc": "Shader is a slash-separated relative path to a .wgsl or .kage shader file providing\nboth vertex and fragment stages (unless overridden by VertexShader or FragmentShader)."
            },
            {
              "name": "VertexShader",
              "anchor": "MaterialDef.VertexShader",
              "kind": "field",
              "doc": "VertexShader overrides Shader for the vertex stage when split across files."
            },
            {
              "name": "FragmentShader",
              "anchor": "MaterialDef.FragmentShader",
              "kind": "field",
              "doc": "FragmentShader overrides Shader for the fragment stage when split across files."
            },
            {
              "name": "VertexEntry",
              "anchor": "MaterialDef.VertexEntry",
              "kind": "field",
              "doc": "VertexEntry names the @vertex entry point; empty defaults to \"vs_main\"."
            },
            {
              "name": "FragmentEntry",
              "anchor": "MaterialDef.FragmentEntry",
              "kind": "field",
              "doc": "FragmentEntry names the @fragment entry point; empty defaults to \"fs_main\" (or \"Fragment\" for .kage)."
            },
            {
              "name": "Blend",
              "anchor": "MaterialDef.Blend",
              "kind": "field",
              "doc": "Blend selects color/alpha blending (\"opaque\", \"alpha\", \"premultiplied\", \"additive\", \"multiply\"); empty is \"opaque\"."
            },
            {
              "name": "Cull",
              "anchor": "MaterialDef.Cull",
              "kind": "field",
              "doc": "Cull selects face culling (\"none\", \"front\", \"back\"); empty is \"back\"."
            },
            {
              "name": "FrontFace",
              "anchor": "MaterialDef.FrontFace",
              "kind": "field",
              "doc": "FrontFace selects front-facing triangle winding (\"ccw\", \"cw\"); empty is \"ccw\"."
            },
            {
              "name": "DepthWrite",
              "anchor": "MaterialDef.DepthWrite",
              "kind": "field",
              "doc": "DepthWrite controls whether fragments write depth; nil defaults to true when a depth attachment is used."
            },
            {
              "name": "DepthCompare",
              "anchor": "MaterialDef.DepthCompare",
              "kind": "field",
              "doc": "DepthCompare selects the depth comparison function (\"never\", \"less\", \"equal\", \"lessEqual\", \"greater\", \"notEqual\", \"greaterEqual\", \"always\"); empty is \"less\"."
            },
            {
              "name": "Scalars",
              "anchor": "MaterialDef.Scalars",
              "kind": "field",
              "doc": "Scalars holds named float32 material parameters (for example roughness, metallic, timeScale)."
            },
            {
              "name": "Vec2",
              "anchor": "MaterialDef.Vec2",
              "kind": "field",
              "doc": "Vec2 holds named 2-component float32 parameters (for example uvScale, uvOffset)."
            },
            {
              "name": "Vec3",
              "anchor": "MaterialDef.Vec3",
              "kind": "field",
              "doc": "Vec3 holds named 3-component float32 parameters (for example lightDir, rimColor)."
            },
            {
              "name": "Vec4",
              "anchor": "MaterialDef.Vec4",
              "kind": "field",
              "doc": "Vec4 holds named 4-component float32 parameters (for example tint, params)."
            },
            {
              "name": "Colors",
              "anchor": "MaterialDef.Colors",
              "kind": "field",
              "doc": "Colors holds named CSS color parameters parsed with core.ParseColor (for example \"#ff8800\", \"rgb(10, 20, 30)\")."
            },
            {
              "name": "Textures",
              "anchor": "MaterialDef.Textures",
              "kind": "field",
              "doc": "Textures holds named slash-separated relative paths to texture images."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseMaterial",
              "anchor": "ParseMaterial",
              "decl": "func ParseMaterial(data []byte) (*MaterialDef, error)",
              "doc": "ParseMaterial decodes and validates a YAML MaterialDef, refusing unknown fields\nand trailing YAML documents. Errors are returned as *loaderr.Error with line,\ncolumn, and field information when available.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 126
            },
            {
              "name": "ParseMaterialFile",
              "anchor": "ParseMaterialFile",
              "decl": "func ParseMaterialFile(filePath string, data []byte) (*MaterialDef, error)",
              "doc": "ParseMaterialFile decodes and validates a YAML MaterialDef and names filePath\nin any returned *loaderr.Error.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 132
            }
          ],
          "methods": [
            {
              "name": "ApplyToPipelineDesc",
              "anchor": "MaterialDef.ApplyToPipelineDesc",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) ApplyToPipelineDesc(desc *gpu.PipelineDesc, depthFormat gpu.TextureFormat)",
              "doc": "ApplyToPipelineDesc applies m's entry points, face culling, front face, blend state,\nand depth-stencil state (when depthFormat != gpu.FormatUndefined) onto desc.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 512
            },
            {
              "name": "BlendState",
              "anchor": "MaterialDef.BlendState",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) BlendState() *gpu.BlendState",
              "doc": "BlendState returns the gpu.BlendState configured by m.Blend, defaulting to gpu.BlendOpaque().\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 434
            },
            {
              "name": "Clone",
              "anchor": "MaterialDef.Clone",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) Clone() *MaterialDef",
              "doc": "Clone returns a deep copy of m so callers can inspect or modify it independently.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 344
            },
            {
              "name": "Color",
              "anchor": "MaterialDef.Color",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) Color(name string) (core.Color, bool)",
              "doc": "Color parses and returns the named color from m.Colors, or (0, false) if absent or invalid.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 495
            },
            {
              "name": "CullMode",
              "anchor": "MaterialDef.CullMode",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) CullMode() gpu.CullMode",
              "doc": "CullMode returns the gpu.CullMode configured by m.Cull, defaulting to gpu.CullBack.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 444
            },
            {
              "name": "DepthCompareFunc",
              "anchor": "MaterialDef.DepthCompareFunc",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) DepthCompareFunc() gpu.CompareFunc",
              "doc": "DepthCompareFunc returns the gpu.CompareFunc configured by m.DepthCompare, defaulting to gpu.CompareLess.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 472
            },
            {
              "name": "DepthStencilState",
              "anchor": "MaterialDef.DepthStencilState",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) DepthStencilState(depthFormat gpu.TextureFormat) *gpu.DepthStencilState",
              "doc": "DepthStencilState builds a gpu.DepthStencilState for depthFormat using m's\nDepthWrite and DepthCompare, returning nil when depthFormat is gpu.FormatUndefined.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 483
            },
            {
              "name": "EffectiveDepthWrite",
              "anchor": "MaterialDef.EffectiveDepthWrite",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) EffectiveDepthWrite() bool",
              "doc": "EffectiveDepthWrite returns DepthWrite when set, or true by default.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 464
            },
            {
              "name": "EffectiveFragmentEntry",
              "anchor": "MaterialDef.EffectiveFragmentEntry",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) EffectiveFragmentEntry() string",
              "doc": "EffectiveFragmentEntry returns FragmentEntry if set, otherwise \"Fragment\" for .kage shaders or \"fs_main\" for WGSL shaders.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 423
            },
            {
              "name": "EffectiveFragmentShader",
              "anchor": "MaterialDef.EffectiveFragmentShader",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) EffectiveFragmentShader() string",
              "doc": "EffectiveFragmentShader returns FragmentShader if set, otherwise Shader.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 386
            },
            {
              "name": "EffectiveVertexEntry",
              "anchor": "MaterialDef.EffectiveVertexEntry",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) EffectiveVertexEntry() string",
              "doc": "EffectiveVertexEntry returns VertexEntry if set, otherwise \"vs_main\".\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 415
            },
            {
              "name": "EffectiveVertexShader",
              "anchor": "MaterialDef.EffectiveVertexShader",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) EffectiveVertexShader() string",
              "doc": "EffectiveVertexShader returns VertexShader if set, otherwise Shader.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 375
            },
            {
              "name": "FrontFaceMode",
              "anchor": "MaterialDef.FrontFaceMode",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) FrontFaceMode() gpu.FrontFace",
              "doc": "FrontFaceMode returns the gpu.FrontFace configured by m.FrontFace, defaulting to gpu.FrontCCW.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 454
            },
            {
              "name": "ShaderPaths",
              "anchor": "MaterialDef.ShaderPaths",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) ShaderPaths() []string",
              "doc": "ShaderPaths returns the sorted, deduplicated list of shader paths referenced by m.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 397
            },
            {
              "name": "Validate",
              "anchor": "MaterialDef.Validate",
              "recv": "*MaterialDef",
              "decl": "func (m *MaterialDef) Validate() error",
              "doc": "Validate checks m's version, shader paths, render state enums, numeric values,\nCSS colors, and texture paths.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 194
            }
          ]
        },
        {
          "name": "MaterialOption",
          "anchor": "MaterialOption",
          "decl": "type MaterialOption func(*materialConfig)",
          "doc": "MaterialOption configures a MaterialReloader.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 547,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "WithMaterialDir",
              "anchor": "WithMaterialDir",
              "decl": "func WithMaterialDir(dir string) MaterialOption",
              "doc": "WithMaterialDir sets a directory on disk used for initial material loads.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 561
            },
            {
              "name": "WithMaterialFS",
              "anchor": "WithMaterialFS",
              "decl": "func WithMaterialFS(fsys fs.FS) MaterialOption",
              "doc": "WithMaterialFS sets the file system used for initial material loads.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 556
            },
            {
              "name": "WithOnMaterialError",
              "anchor": "WithOnMaterialError",
              "decl": "func WithOnMaterialError(fn func(ReloadError)) MaterialOption",
              "doc": "WithOnMaterialError sets a callback invoked whenever a material fails to parse,\nvalidate, compile its shader, or create its candidate GPU pipeline.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 577
            },
            {
              "name": "WithOnMaterialReload",
              "anchor": "WithOnMaterialReload",
              "decl": "func WithOnMaterialReload(fn func(name, path string)) MaterialOption",
              "doc": "WithOnMaterialReload sets a callback invoked whenever a material reloads cleanly\n(either from an edited material YAML file or from an edited shader it depends on).\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 571
            }
          ],
          "methods": []
        },
        {
          "name": "MaterialPipelineBuilder",
          "anchor": "MaterialPipelineBuilder",
          "decl": "type MaterialPipelineBuilder func(def *MaterialDef, vertex, fragment *gpu.ShaderModule) (gpu.PipelineDesc, error)",
          "doc": "MaterialPipelineBuilder constructs a gpu.PipelineDesc for a material from its\nparsed MaterialDef and compiled vertex and fragment shader modules. Returning an\nerror rejects the candidate and preserves the previous working material and pipeline.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 544,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "MaterialReloader",
          "anchor": "MaterialReloader",
          "decl": "type MaterialReloader struct {\n\t// Version increments on every successful reload when created with a non-nil *core.Scope.\n\tVersion *core.Signal[int]\n\t// contains filtered or unexported fields\n}",
          "doc": "MaterialReloader manages hot-reloadable 3D shader materials and their GPU pipelines,\ntracking dependencies on shaders managed by a ShaderReloader.\n\nWhen a material YAML file changes, MaterialReloader parses and validates the candidate\nMaterialDef and builds a candidate gpu.Pipeline before swapping. On any parse, validation,\nshader compile, or pipeline creation error, the previous working material and pipeline\nstay active, a ReloadError is recorded, and OnError is invoked without crashing.\n\nWhen a shader file referenced by one or more materials changes in the paired ShaderReloader,\nMaterialReloader automatically rebuilds and swaps every dependent material's pipeline.\n",
          "file": "pkg/tooling/hotreload/material.go",
          "line": 599,
          "members": [
            {
              "name": "Version",
              "anchor": "MaterialReloader.Version",
              "kind": "field",
              "doc": "Version increments on every successful reload when created with a non-nil *core.Scope."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMaterialReloader",
              "anchor": "NewMaterialReloader",
              "decl": "func NewMaterialReloader(cx *core.Scope, shaders *ShaderReloader, opts ...MaterialOption) *MaterialReloader",
              "doc": "NewMaterialReloader creates a MaterialReloader optionally paired with shaders\n(for GPU pipeline compilation and shader-to-material dependency tracking).\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 619
            }
          ],
          "methods": [
            {
              "name": "ClearError",
              "anchor": "MaterialReloader.ClearError",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) ClearError(name string)",
              "doc": "ClearError clears any recorded ReloadError for name.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 887
            },
            {
              "name": "Close",
              "anchor": "MaterialReloader.Close",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) Close()",
              "doc": "Close releases all active GPU pipelines owned by r. Safe to call more than once.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 1033
            },
            {
              "name": "Errors",
              "anchor": "MaterialReloader.Errors",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) Errors() []ReloadError",
              "doc": "Errors returns all currently unresolved material ReloadErrors, sorted by Name.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 864
            },
            {
              "name": "LastError",
              "anchor": "MaterialReloader.LastError",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) LastError(name string) (ReloadError, bool)",
              "doc": "LastError returns the most recent unresolved ReloadError for name and whether one is active.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 853
            },
            {
              "name": "Material",
              "anchor": "MaterialReloader.Material",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) Material(name string) *MaterialDef",
              "doc": "Material returns a snapshot copy of the currently active MaterialDef for name, or nil.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 763
            },
            {
              "name": "MaterialNames",
              "anchor": "MaterialReloader.MaterialNames",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) MaterialNames() []string",
              "doc": "MaterialNames returns the sorted list of registered material names.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 790
            },
            {
              "name": "MaterialPath",
              "anchor": "MaterialReloader.MaterialPath",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) MaterialPath(name string) (string, bool)",
              "doc": "MaterialPath returns the slash-separated relative file path registered for material name.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 805
            },
            {
              "name": "Pipeline",
              "anchor": "MaterialReloader.Pipeline",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) Pipeline(name string) *gpu.Pipeline",
              "doc": "Pipeline returns the currently active *gpu.Pipeline for name, or nil.\nWhile a broken material or shader edit is on disk, Pipeline continues returning the last good pipeline.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 777
            },
            {
              "name": "Register",
              "anchor": "MaterialReloader.Register",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) Register(name, relPath string, build MaterialPipelineBuilder) (*MaterialDef, *gpu.Pipeline, error)",
              "doc": "Register loads the material YAML file at relPath, validates it, builds its initial\ngpu.Pipeline (when build != nil and the paired ShaderReloader has a GPU device),\nand tracks it under name for live reloading.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 674
            },
            {
              "name": "RegisterBytes",
              "anchor": "MaterialReloader.RegisterBytes",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) RegisterBytes(name, relPath string, data []byte, build MaterialPipelineBuilder) (*MaterialDef, *gpu.Pipeline, error)",
              "doc": "RegisterBytes parses data as the material YAML at relPath, builds its initial\ngpu.Pipeline (when build != nil and the paired ShaderReloader has a GPU device),\nand tracks it under name for live reloading.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 700
            },
            {
              "name": "ReloadMaterial",
              "anchor": "MaterialReloader.ReloadMaterial",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) ReloadMaterial(relPath string, data []byte) (bool, error)",
              "doc": "ReloadMaterial parses data as the new contents of relPath and atomically swaps\nevery material registered at relPath whose candidate parses, validates, and builds\ncleanly. Untracked paths return (false, nil). On any error, the previous working\nmaterial and pipeline remain active and OnError is called without crashing.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 935
            },
            {
              "name": "ReloadMaterialFile",
              "anchor": "MaterialReloader.ReloadMaterialFile",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) ReloadMaterialFile(nameOrPath string) (string, int64, bool, error)",
              "doc": "ReloadMaterialFile resolves nameOrPath (a registered material name or relative path), reads fresh YAML bytes from the reloader's configured file system, and calls ReloadMaterial. It reports the resolved path, file byte length, whether the material is tracked, and any error.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 819
            },
            {
              "name": "Revision",
              "anchor": "MaterialReloader.Revision",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) Revision() uint64",
              "doc": "Revision returns the monotonic count of successful material reloads.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 662
            },
            {
              "name": "Watch",
              "anchor": "MaterialReloader.Watch",
              "recv": "*MaterialReloader",
              "decl": "func (r *MaterialReloader) Watch(w *Watcher)",
              "doc": "Watch attaches r to w so edited material YAML files (.material.yaml, .mat.yaml,\n.material.yml, .mat.yml) reload on the engine goroutine. When r is paired with a\nShaderReloader, Watch also attaches the ShaderReloader to w (idempotently) so\nediting a referenced shader automatically reloads every dependent material.\n",
              "file": "pkg/tooling/hotreload/material.go",
              "line": 900
            }
          ]
        },
        {
          "name": "Option",
          "anchor": "Option",
          "decl": "type Option func(*config)",
          "doc": "Option configures a Watcher.\n",
          "file": "pkg/tooling/hotreload/options.go",
          "line": 15,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "WithDebounce",
              "anchor": "WithDebounce",
              "decl": "func WithDebounce(d time.Duration) Option",
              "doc": "WithDebounce sets how long a changed file must stay stable before its callback runs, preventing half-written reads during rapid saves. When debouncing is enabled (d > 0), empty (0-byte) files wait longer to settle so truncate-then-write editor saves do not deliver a transient empty payload before the content arrives. Negative values are ignored; 0 delivers as soon as a changed hash is read.\n",
              "file": "pkg/tooling/hotreload/options.go",
              "line": 39
            },
            {
              "name": "WithPollInterval",
              "anchor": "WithPollInterval",
              "decl": "func WithPollInterval(d time.Duration) Option",
              "doc": "WithPollInterval sets how often the watcher checks disk for changes. Non-positive values keep DefaultPollInterval.\n",
              "file": "pkg/tooling/hotreload/options.go",
              "line": 30
            }
          ],
          "methods": []
        },
        {
          "name": "PipelineSpec",
          "anchor": "PipelineSpec",
          "decl": "type PipelineSpec struct {\n\t// Shader is the slash-separated path of a single shader file providing both\n\t// vertex and fragment stages. Used whenever VertexShader or FragmentShader is empty.\n\tShader string\n\t// VertexShader overrides Shader for the vertex stage when split across two files.\n\tVertexShader string\n\t// FragmentShader overrides Shader for the fragment stage when split across two files.\n\tFragmentShader string\n\t// Build constructs the gpu.PipelineDesc from the newly compiled vertex and\n\t// fragment ShaderModules. Returning an error rejects the candidate and keeps\n\t// the previous working pipeline active.\n\tBuild func(vertex, fragment *gpu.ShaderModule) (gpu.PipelineDesc, error)\n}",
          "doc": "PipelineSpec describes a hot-reloadable GPU render pipeline and the shader file(s)\nit depends on.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 249,
          "members": [
            {
              "name": "Shader",
              "anchor": "PipelineSpec.Shader",
              "kind": "field",
              "doc": "Shader is the slash-separated path of a single shader file providing both\nvertex and fragment stages. Used whenever VertexShader or FragmentShader is empty."
            },
            {
              "name": "VertexShader",
              "anchor": "PipelineSpec.VertexShader",
              "kind": "field",
              "doc": "VertexShader overrides Shader for the vertex stage when split across two files."
            },
            {
              "name": "FragmentShader",
              "anchor": "PipelineSpec.FragmentShader",
              "kind": "field",
              "doc": "FragmentShader overrides Shader for the fragment stage when split across two files."
            },
            {
              "name": "Build",
              "anchor": "PipelineSpec.Build",
              "kind": "field",
              "doc": "Build constructs the gpu.PipelineDesc from the newly compiled vertex and\nfragment ShaderModules. Returning an error rejects the candidate and keeps\nthe previous working pipeline active."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ReloadError",
          "anchor": "ReloadError",
          "decl": "type ReloadError struct {\n\tName    string     // registered shader, pipeline, or material name\n\tPath    string     // slash-separated file path that failed\n\tKind    ReloadKind // ReloadKindShader, ReloadKindPipeline, or ReloadKindMaterial\n\tLine    int        // 1-based source line, 0 when unknown\n\tColumn  int        // 1-based source column, 0 when unknown\n\tMessage string     // human-readable diagnostic message\n\tErr     error      // underlying error, typically *loaderr.Error\n\tAt      time.Time  // wall-clock timestamp when the failure was recorded\n}",
          "doc": "ReloadError records why a shader, pipeline, or material failed to reload.\nIt implements error and unwraps to Err (typically a *loaderr.Error), so\nerrors.As and loaderr.As inspect the underlying diagnostic directly.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 71,
          "members": [
            {
              "name": "Name",
              "anchor": "ReloadError.Name",
              "kind": "field",
              "doc": "registered shader, pipeline, or material name"
            },
            {
              "name": "Path",
              "anchor": "ReloadError.Path",
              "kind": "field",
              "doc": "slash-separated file path that failed"
            },
            {
              "name": "Kind",
              "anchor": "ReloadError.Kind",
              "kind": "field",
              "doc": "ReloadKindShader, ReloadKindPipeline, or ReloadKindMaterial"
            },
            {
              "name": "Line",
              "anchor": "ReloadError.Line",
              "kind": "field",
              "doc": "1-based source line, 0 when unknown"
            },
            {
              "name": "Column",
              "anchor": "ReloadError.Column",
              "kind": "field",
              "doc": "1-based source column, 0 when unknown"
            },
            {
              "name": "Message",
              "anchor": "ReloadError.Message",
              "kind": "field",
              "doc": "human-readable diagnostic message"
            },
            {
              "name": "Err",
              "anchor": "ReloadError.Err",
              "kind": "field",
              "doc": "underlying error, typically *loaderr.Error"
            },
            {
              "name": "At",
              "anchor": "ReloadError.At",
              "kind": "field",
              "doc": "wall-clock timestamp when the failure was recorded"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "ReloadError.Error",
              "recv": "ReloadError",
              "decl": "func (e ReloadError) Error() string",
              "doc": "Error returns a formatted diagnostic string for the failed reload.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 83
            },
            {
              "name": "Unwrap",
              "anchor": "ReloadError.Unwrap",
              "recv": "ReloadError",
              "decl": "func (e ReloadError) Unwrap() error",
              "doc": "Unwrap returns the underlying error.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 100
            }
          ]
        },
        {
          "name": "ReloadKind",
          "anchor": "ReloadKind",
          "decl": "type ReloadKind string",
          "doc": "ReloadKind identifies what kind of GPU asset a ReloadError or reload event refers to.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 33,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "ReloadKindShader",
                  "anchor": "ReloadKindShader"
                },
                {
                  "name": "ReloadKindPipeline",
                  "anchor": "ReloadKindPipeline"
                },
                {
                  "name": "ReloadKindMaterial",
                  "anchor": "ReloadKindMaterial"
                }
              ],
              "decl": "const (\n\tReloadKindShader   ReloadKind = \"shader\"\n\tReloadKindPipeline ReloadKind = \"pipeline\"\n\tReloadKindMaterial ReloadKind = \"material\"\n)",
              "doc": "",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 35
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ShaderOption",
          "anchor": "ShaderOption",
          "decl": "type ShaderOption func(*shaderConfig)",
          "doc": "ShaderOption configures a ShaderReloader.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 285,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "WithOnShaderError",
              "anchor": "WithOnShaderError",
              "decl": "func WithOnShaderError(fn func(ReloadError)) ShaderOption",
              "doc": "WithOnShaderError sets a callback invoked whenever a shader or pipeline fails\nto compile or validate. The previous working pipeline remains active.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 315
            },
            {
              "name": "WithOnShaderReload",
              "anchor": "WithOnShaderReload",
              "decl": "func WithOnShaderReload(fn func(name, path string)) ShaderOption",
              "doc": "WithOnShaderReload sets a callback invoked on the engine goroutine whenever a\nshader or pipeline reloads successfully.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 309
            },
            {
              "name": "WithShaderDir",
              "anchor": "WithShaderDir",
              "decl": "func WithShaderDir(dir string) ShaderOption",
              "doc": "WithShaderDir sets a directory on disk used for initial shader loads.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 299
            },
            {
              "name": "WithShaderFS",
              "anchor": "WithShaderFS",
              "decl": "func WithShaderFS(fsys fs.FS) ShaderOption",
              "doc": "WithShaderFS sets the file system used for initial shader loads.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 294
            }
          ],
          "methods": []
        },
        {
          "name": "ShaderReloader",
          "anchor": "ShaderReloader",
          "decl": "type ShaderReloader struct {\n\t// Version increments on every successful reload when created with a non-nil *core.Scope.\n\t// Reading Version.Get() inside a reactive view or Draw callback triggers a redraw.\n\tVersion *core.Signal[int]\n\t// contains filtered or unexported fields\n}",
          "doc": "ShaderReloader manages live-reloadable WGSL/Kage shaders and GPU render pipelines.\n\nWhen a watched shader file changes, ShaderReloader compiles the candidate module\nand builds every dependent candidate gpu.Pipeline before swapping. On any compile\nor pipeline validation error, the previous working pipeline stays active, a\nReloadError is recorded, and OnError is invoked without crashing. When a later\nedit compiles cleanly, the candidate pipeline swaps in atomically, the replaced\npipeline is closed safely, and the error clears.\n",
          "file": "pkg/tooling/hotreload/shader.go",
          "line": 346,
          "members": [
            {
              "name": "Version",
              "anchor": "ShaderReloader.Version",
              "kind": "field",
              "doc": "Version increments on every successful reload when created with a non-nil *core.Scope.\nReading Version.Get() inside a reactive view or Draw callback triggers a redraw."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewShaderReloader",
              "anchor": "NewShaderReloader",
              "decl": "func NewShaderReloader(cx *core.Scope, dev *gpu.Device, opts ...ShaderOption) *ShaderReloader",
              "doc": "NewShaderReloader creates a ShaderReloader bound to dev (which may be nil when\nonly compiling shaders without building GPU pipelines). When cx is non-nil,\nVersion tracks reload generations reactively and Close is registered on cx.Cleanup.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 370
            }
          ],
          "methods": [
            {
              "name": "ClearError",
              "anchor": "ShaderReloader.ClearError",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) ClearError(name string)",
              "doc": "ClearError clears any recorded ReloadError for name.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 714
            },
            {
              "name": "Close",
              "anchor": "ShaderReloader.Close",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) Close()",
              "doc": "Close releases all active GPU render pipelines owned by r. It is safe to call\nmore than once and is registered automatically on cx.Cleanup when cx is non-nil.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 928
            },
            {
              "name": "Device",
              "anchor": "ShaderReloader.Device",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) Device() *gpu.Device",
              "doc": "Device returns the GPU device used to create pipelines, or nil.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 400
            },
            {
              "name": "Errors",
              "anchor": "ShaderReloader.Errors",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) Errors() []ReloadError",
              "doc": "Errors returns all currently unresolved ReloadErrors, sorted by Name for deterministic display.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 691
            },
            {
              "name": "LastError",
              "anchor": "ShaderReloader.LastError",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) LastError(name string) (ReloadError, bool)",
              "doc": "LastError returns the most recent unresolved ReloadError for name (a shader name,\npipeline name, or shader path), and whether one is active.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 680
            },
            {
              "name": "Pipeline",
              "anchor": "ShaderReloader.Pipeline",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) Pipeline(name string) *gpu.Pipeline",
              "doc": "Pipeline returns the currently active *gpu.Pipeline registered under name, or nil.\nWhile a broken shader edit is on disk, Pipeline continues returning the last good pipeline.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 596
            },
            {
              "name": "PipelineNames",
              "anchor": "ShaderReloader.PipelineNames",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) PipelineNames() []string",
              "doc": "PipelineNames returns the sorted list of registered pipeline names.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 664
            },
            {
              "name": "RegisterPipeline",
              "anchor": "ShaderReloader.RegisterPipeline",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) RegisterPipeline(name string, spec PipelineSpec) (*gpu.Pipeline, error)",
              "doc": "RegisterPipeline loads and compiles the shader(s) named by spec, builds the\ninitial gpu.Pipeline, and registers it under name for automatic hot reload.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 466
            },
            {
              "name": "RegisterShader",
              "anchor": "ShaderReloader.RegisterShader",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) RegisterShader(name, relPath string) (*gpu.ShaderModule, error)",
              "doc": "RegisterShader loads and compiles the shader at relPath from the reloader's\nfilesystem and registers it under name.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 419
            },
            {
              "name": "RegisterShaderBytes",
              "anchor": "ShaderReloader.RegisterShaderBytes",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) RegisterShaderBytes(name, relPath string, data []byte) (*gpu.ShaderModule, error)",
              "doc": "RegisterShaderBytes compiles data as the shader at relPath and registers it under name.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 437
            },
            {
              "name": "ReloadShader",
              "anchor": "ShaderReloader.ReloadShader",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) ReloadShader(relPath string, data []byte) (bool, error)",
              "doc": "ReloadShader compiles data as the new source for relPath and atomically swaps\nevery affected shader and pipeline whose candidate builds cleanly.\n\nIt reports whether relPath is tracked by any registered shader, pipeline, or\ndependent MaterialReloader; untracked files return (false, nil). On a compile or\npipeline creation error, the previous working shader and pipeline stay active,\na ReloadError is recorded, and OnError is called without panicking.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 761
            },
            {
              "name": "ReloadShaderFile",
              "anchor": "ShaderReloader.ReloadShaderFile",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) ReloadShaderFile(nameOrPath string) (string, int64, bool, error)",
              "doc": "ReloadShaderFile resolves nameOrPath (a registered shader name or relative path), reads fresh source bytes from the reloader's configured file system, and calls ReloadShader. It reports the resolved path, source byte length, whether the shader is tracked, and any error.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 635
            },
            {
              "name": "Revision",
              "anchor": "ShaderReloader.Revision",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) Revision() uint64",
              "doc": "Revision returns the monotonic count of successful shader and pipeline reloads.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 408
            },
            {
              "name": "Shader",
              "anchor": "ShaderReloader.Shader",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) Shader(name string) *gpu.ShaderModule",
              "doc": "Shader returns the currently active compiled *gpu.ShaderModule registered under name, or nil.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 564
            },
            {
              "name": "ShaderByPath",
              "anchor": "ShaderReloader.ShaderByPath",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) ShaderByPath(relPath string) *gpu.ShaderModule",
              "doc": "ShaderByPath returns the currently active compiled *gpu.ShaderModule for relPath, or nil.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 581
            },
            {
              "name": "ShaderNames",
              "anchor": "ShaderReloader.ShaderNames",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) ShaderNames() []string",
              "doc": "ShaderNames returns the sorted list of explicitly registered shader names.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 609
            },
            {
              "name": "ShaderPath",
              "anchor": "ShaderReloader.ShaderPath",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) ShaderPath(name string) (string, bool)",
              "doc": "ShaderPath returns the slash-separated relative file path registered for shader name.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 624
            },
            {
              "name": "Watch",
              "anchor": "ShaderReloader.Watch",
              "recv": "*ShaderReloader",
              "decl": "func (r *ShaderReloader) Watch(w *Watcher)",
              "doc": "Watch attaches r to w so edited .wgsl and .kage files under w.Dir() are compiled\nand reloaded on the engine goroutine. Calling Watch with a nil Watcher (for example\nfrom NewDevWatcher outside `game dev` or in `-tags release`) is a safe no-op.\nCalling Watch multiple times with the same Watcher registers patterns only once.\n",
              "file": "pkg/tooling/hotreload/shader.go",
              "line": 727
            }
          ]
        },
        {
          "name": "Watcher",
          "anchor": "Watcher",
          "decl": "type Watcher struct {\n\t// Version increments on every delivered reload. Read it (or call Generation) inside a core.Canvas Draw callback or core.Effect to react automatically.\n\tVersion *core.Signal[int]\n\t// contains filtered or unexported fields\n}",
          "doc": "Watcher polls a directory off the engine goroutine and delivers asset reloads back onto the engine goroutine via core.Scope.Post.\n\nIt bumps Version on every reload so a core.Canvas or core.Effect reading Version.Get or Generation redraws automatically, and stops itself when the scope that owns it is disposed.\n",
          "file": "pkg/tooling/hotreload/hotreload.go",
          "line": 25,
          "members": [
            {
              "name": "Version",
              "anchor": "Watcher.Version",
              "kind": "field",
              "doc": "Version increments on every delivered reload. Read it (or call Generation) inside a core.Canvas Draw callback or core.Effect to react automatically."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewDevWatcher",
              "anchor": "NewDevWatcher",
              "decl": "func NewDevWatcher(cx *core.Scope, opts ...Option) *Watcher",
              "doc": "NewDevWatcher starts a Watcher on DevAssetsDir under cx when the game runs under `game dev`, and returns nil otherwise. Every Watcher method does nothing on nil, so a game can call it unconditionally and register what it reloads:\n\n\tw := hotreload.NewDevWatcher(cx)\n\tw.WatchAssets(mgr, nil)\n",
              "file": "pkg/tooling/hotreload/dev.go",
              "line": 33
            },
            {
              "name": "NewWatcher",
              "anchor": "NewWatcher",
              "decl": "func NewWatcher(cx *core.Scope, dir string, opts ...Option) *Watcher",
              "doc": "NewWatcher starts a Watcher polling dir under cx until cx is disposed or Stop is called.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 97
            }
          ],
          "methods": [
            {
              "name": "Dir",
              "anchor": "Watcher.Dir",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) Dir() string",
              "doc": "Dir returns the cleaned root directory being watched.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 126
            },
            {
              "name": "Generation",
              "anchor": "Watcher.Generation",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) Generation() int",
              "doc": "Generation returns the current reload generation counter. Reading it inside a reactive computation or core.Canvas Draw callback subscribes to future reloads.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 118
            },
            {
              "name": "Stop",
              "anchor": "Watcher.Stop",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) Stop()",
              "doc": "Stop halts background polling. It is safe to call more than once and is registered automatically on the watcher's scope cleanup.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 134
            },
            {
              "name": "Watch",
              "anchor": "Watcher.Watch",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) Watch(relPath string, onChange func(data []byte))",
              "doc": "Watch watches relPath under the watcher's directory and calls onChange on the engine goroutine whenever the file's content changes and stabilizes.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 145
            },
            {
              "name": "WatchAssets",
              "anchor": "Watcher.WatchAssets",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) WatchAssets(m *assets.Manager, onReload func(path string, names []string, err error))",
              "doc": "WatchAssets reloads m's assets when their files change: it watches every file under the watcher's directory and passes a changed one to assets.Manager.Reload as \"asset:<path>\" on the engine goroutine, so an atlas's JSON or image, an image or raw bytes that m has loaded show the edit. The watcher's directory must be the one m reads \"asset:\" URIs from: a Manager made with assets.WithFS(os.DirFS(hotreload.DevAssetsDir())) under `game dev`. Registering reads no file that has not changed in the last two seconds, so a large asset directory does not hold up the game's start; the watcher compares the others' contents from the first change on. onReload, if not nil, is then called with the file's slash-separated path, the names of the assets Reload replaced and its error; files that replaced nothing and failed nothing are skipped.\n",
              "file": "pkg/tooling/hotreload/dev.go",
              "line": 42
            },
            {
              "name": "WatchAtlas",
              "anchor": "Watcher.WatchAtlas",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) WatchAtlas(jsonPath string, img core.ImageSource, onReload func(*sprite.Atlas, error))",
              "doc": "WatchAtlas watches a sprite atlas JSON file at jsonPath, parses it with sprite.LoadAtlas using img, and delivers the result to onReload on the engine goroutine.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 163
            },
            {
              "name": "WatchAtlasFiles",
              "anchor": "Watcher.WatchAtlasFiles",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) WatchAtlasFiles(jsonPath, imagePath string, img core.ImageSource, onReload func(*sprite.Atlas, error))",
              "doc": "WatchAtlasFiles watches a sprite atlas's JSON at jsonPath and its image at imagePath, both relative to the watcher's directory, and delivers the atlas to onReload on the engine goroutine when either changes: the JSON parsed with sprite.LoadAtlas over img, which once the image file has changed shows that file's bytes, keeping img's Size and its URI, or for an img with several densities (Scales) naming the file at imagePath as an \"asset:\" URI so its density is that file's; pass the density the screen shows, such as sprites@2x.png on a 2x screen. Use it for an atlas the game loads itself, such as one embedded with go:embed; WatchAssets covers atlases an assets.Manager loads. If the JSON cannot be read when it is called, onReload gets that error once the image changes.\n",
              "file": "pkg/tooling/hotreload/dev.go",
              "line": 55
            },
            {
              "name": "WatchMaterials",
              "anchor": "Watcher.WatchMaterials",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) WatchMaterials(r *MaterialReloader)",
              "doc": "WatchMaterials attaches r to w so edited material YAML files (.material.yaml, .mat.yaml, .material.yml, .mat.yml) and any shaders referenced by r's ShaderReloader reload live on the engine goroutine, keeping the previous working material and pipeline on errors.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 209
            },
            {
              "name": "WatchPattern",
              "anchor": "Watcher.WatchPattern",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) WatchPattern(ext string, onChange func(relPath string, data []byte))",
              "doc": "WatchPattern watches every file under the watcher's directory whose extension matches ext (for example \".json\" or \"json\", or \"\" / \"*\" for all files) and calls onChange on the engine goroutine with the slash-separated relative path and file bytes when a matching file is created or modified.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 217
            },
            {
              "name": "WatchResources",
              "anchor": "Watcher.WatchResources",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) WatchResources(lib *resource.Library, onReload func(path string, err error))",
              "doc": "WatchResources reloads lib's resources when their files change: it watches every .yaml and .yml file under the watcher's directory and passes a changed file that lib has loaded to resource.Library.Reload on the engine goroutine, so everything holding the resource sees the edit. The watcher's directory must be lib's root, so the paths match. onReload, if not nil, is then called with the file's slash-separated path and Reload's error, nil on success; files lib has not loaded are skipped.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 174
            },
            {
              "name": "WatchShader",
              "anchor": "Watcher.WatchShader",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) WatchShader(relPath string, onReload func(*gpu.ShaderModule, error))",
              "doc": "WatchShader watches a WGSL (.wgsl) or Kage (.kage) shader file at relPath, compiles it with CompileShaderSource, and delivers the compiled module or a *loaderr.Error to onReload on the engine goroutine.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 189
            },
            {
              "name": "WatchShaders",
              "anchor": "Watcher.WatchShaders",
              "recv": "*Watcher",
              "decl": "func (w *Watcher) WatchShaders(r *ShaderReloader)",
              "doc": "WatchShaders attaches r to w so edited .wgsl and .kage shader files recompile and swap candidate pipelines on the engine goroutine, keeping the previous working pipeline on compile errors.\n",
              "file": "pkg/tooling/hotreload/hotreload.go",
              "line": 201
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/importsettings",
      "name": "importsettings",
      "dir": "pkg/tooling/importsettings",
      "page": "pkg/tooling/importsettings",
      "synopsis": "Package importsettings reads and writes import settings sidecars: a small YAML file beside an image, a sound, a font or a model, named after it with \".import.yaml\" appended (Path), that says how game assets imports it, as Godot's .import files do.",
      "doc": "Package importsettings reads and writes import settings sidecars: a small YAML file beside an image, a sound, a font or a model, named after it with \".import.yaml\" appended (Path), that says how game assets imports it, as Godot's .import files do.\n\nAn image's sidecar holds its texture compression format, mipmaps, sRGB and sampling filter, which a texture target encodes it with, and the grid an atlas target slices a sprite sheet into frames along. A sound's sidecar holds its output format, sample rate, channels, loudness, bitrate and loop points, which an audio target converts it with. A font's sidecar holds the size, characters and padding a font target bakes it into a bitmap font with, and a model's the scale and whether to keep animations that a model target packs it into one GLB file with. A setting in the sidecar overrides the target's setting in game.yaml, so a person edits one asset's import by editing the file beside it, and game assets rebuilds the targets that read the asset when its sidecar changes. The single-file commands game tex and game audio read the sidecar beside their input too, under the flags given on the command line.\n\nAny asset's sidecar may also hold a credit section: the asset's author, its license as an SPDX license expression (ValidateLicense), where it was obtained, and a notice the license requires to be shipped with it. Package credits lists these in the credits file game release writes beside the release's packages.\n\nParse decodes a version 1 sidecar and runs Validate, refusing unknown fields, other versions, a sidecar with no section or with more than one of image, audio, font and model, values out of range, and a credit without an author or with a license that is not an SPDX license expression. Encode validates a File and writes deterministic 2-space YAML in a fixed key order, after a first line that points a YAML language server at SchemaURL, which Parse reads back unchanged.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "AssetSourceSchemaComment",
              "anchor": "AssetSourceSchemaComment"
            }
          ],
          "decl": "const AssetSourceSchemaComment = \"# yaml-language-server: $schema=\" + AssetSourceSchemaURL",
          "doc": "AssetSourceSchemaComment is the first line EncodeAssetSource writes: a YAML comment pointing a YAML language server at AssetSourceSchemaURL. ParseAssetSource ignores it like any other comment.\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 27
        },
        {
          "idents": [
            {
              "name": "AssetSourceSchemaURL",
              "anchor": "AssetSourceSchemaURL"
            }
          ],
          "decl": "const AssetSourceSchemaURL = \"https://game.nsgo.dev/schemas/source.v1.json\"",
          "doc": "AssetSourceSchemaURL is where the JSON Schema of version 1 asset source sidecars is published.\nEncodeAssetSource names it in a yaml-language-server comment on the first line so editors and AI tools validate and complete source files as they are written.\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "AssetSourceSuffix",
              "anchor": "AssetSourceSuffix"
            }
          ],
          "decl": "const AssetSourceSuffix = \".source.yaml\"",
          "doc": "AssetSourceSuffix is appended to a generated asset's file name to name its provenance and license sidecar, such as slime_frost.png.source.yaml beside slime_frost.png.\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "AssetSourceVersion",
              "anchor": "AssetSourceVersion"
            }
          ],
          "decl": "const AssetSourceVersion = 1",
          "doc": "AssetSourceVersion is the YAML schema version of generated asset source sidecars (*.source.yaml).\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "CurrentVersion",
              "anchor": "CurrentVersion"
            }
          ],
          "decl": "const CurrentVersion = 1",
          "doc": "CurrentVersion is the sidecar schema version this package reads and writes.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "FilterKey",
              "anchor": "FilterKey"
            }
          ],
          "decl": "const FilterKey = \"game.filter\"",
          "doc": "FilterKey is the key of a KTX2 texture's key/value data that game assets and game tex write Image.Filter under and render3d.LoadKTX2 reads.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 32
        },
        {
          "idents": [
            {
              "name": "MaxSliceCells",
              "anchor": "MaxSliceCells"
            }
          ],
          "decl": "const MaxSliceCells = 65536",
          "doc": "MaxSliceCells is the maximum number of cell rectangles [Slice.Cells] will\nmaterialize for one sprite sheet to prevent excessive memory allocation.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 233
        },
        {
          "idents": [
            {
              "name": "SchemaComment",
              "anchor": "SchemaComment"
            }
          ],
          "decl": "const SchemaComment = \"# yaml-language-server: $schema=\" + SchemaURL",
          "doc": "SchemaComment is the first line Encode writes: a YAML comment that points a YAML language server at SchemaURL. Parse ignores it like any other comment.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 29
        },
        {
          "idents": [
            {
              "name": "SchemaURL",
              "anchor": "SchemaURL"
            }
          ],
          "decl": "const SchemaURL = \"https://game.nsgo.dev/schemas/import.v1.json\"",
          "doc": "SchemaURL is where the JSON Schema of version 1 sidecars is published. Encode names it in a yaml-language-server comment on a sidecar's first line, so editors that run the YAML language server validate and complete the file as it is written.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 26
        },
        {
          "idents": [
            {
              "name": "Suffix",
              "anchor": "Suffix"
            }
          ],
          "decl": "const Suffix = \".import.yaml\"",
          "doc": "Suffix is appended to an asset's file name to name its sidecar, such as hero.png.import.yaml beside hero.png.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 20
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "Filters",
              "anchor": "Filters"
            }
          ],
          "decl": "var Filters = []string{\"linear\", \"nearest\"}",
          "doc": "Filters are the sampling filters an image's sidecar may name: \"linear\" blends neighboring texels when the image is scaled, \"nearest\" keeps each texel sharp, as pixel art wants.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 35
        }
      ],
      "funcs": [
        {
          "name": "AssetSourcePath",
          "anchor": "AssetSourcePath",
          "decl": "func AssetSourcePath(asset string) string",
          "doc": "AssetSourcePath returns the slash-separated path of the source sidecar of the asset at the slash-separated path asset.\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 30
        },
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(f *File) ([]byte, error)",
          "doc": "Encode validates f and writes it as deterministic 2-space YAML, SchemaComment on its first line, that Parse reads back unchanged.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 446
        },
        {
          "name": "EncodeAssetSource",
          "anchor": "EncodeAssetSource",
          "decl": "func EncodeAssetSource(s *AssetSource) ([]byte, error)",
          "doc": "EncodeAssetSource validates s and writes deterministic 2-space YAML prefixed with AssetSourceSchemaComment.\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 214
        },
        {
          "name": "IsAssetSource",
          "anchor": "IsAssetSource",
          "decl": "func IsAssetSource(name string) bool",
          "doc": "IsAssetSource reports whether the file name or path name is a generated asset source sidecar (*.source.yaml), so asset scans can skip it.\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 35
        },
        {
          "name": "IsSidecar",
          "anchor": "IsSidecar",
          "decl": "func IsSidecar(name string) bool",
          "doc": "IsSidecar reports whether the file name or path name is a sidecar, so a scan for assets can skip it.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 43
        },
        {
          "name": "IsUnknownLicense",
          "anchor": "IsUnknownLicense",
          "decl": "func IsUnknownLicense(license string) bool",
          "doc": "IsUnknownLicense reports whether license is empty or explicitly marks the license as unknown/unasserted (case-insensitive: \"\", \"unknown\", \"none\", \"noassertion\", \"tbd\", \"unspecified\").\nA generated asset whose source sidecar has an unknown license blocks release builds.\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 64
        },
        {
          "name": "Path",
          "anchor": "Path",
          "decl": "func Path(asset string) string",
          "doc": "Path returns the slash-separated path of the sidecar of the asset at the slash-separated path asset.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 38
        },
        {
          "name": "ValidateAssetSource",
          "anchor": "ValidateAssetSource",
          "decl": "func ValidateAssetSource(s *AssetSource) error",
          "doc": "ValidateAssetSource checks s against the version 1 generated asset source schema.\nUnknown or empty License values are accepted so unresolved generated assets can be represented on disk and blocked by release/credits checks.\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 173
        },
        {
          "name": "ValidateLicense",
          "anchor": "ValidateLicense",
          "decl": "func ValidateLicense(expr string) error",
          "doc": "ValidateLicense checks that expr is an SPDX license expression (SPDX specification 2.3, annex D): license identifiers such as CC-BY-4.0, each optionally followed by \"+\" for \"or any later version\" and by WITH and an exception identifier, joined by AND and OR, which are upper case, and grouped by parentheses. A license with no SPDX identifier is written LicenseRef- followed by letters, digits, dots and hyphens, optionally after DocumentRef-name: as SPDX allows. NONE and NOASSERTION are refused, since a credit names the license an asset is used under. Identifiers are checked for their form, not looked up in the SPDX license list, so a new license needs no update of this package.\n",
          "file": "pkg/tooling/importsettings/credit.go",
          "line": 50
        }
      ],
      "types": [
        {
          "name": "AssetSource",
          "anchor": "AssetSource",
          "decl": "type AssetSource struct {\n\t// Version is the schema version; it must equal AssetSourceVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Generator is the MCP generator server name that produced the asset, such as \"pixel-gen\" or \"sfx-gen\".\n\tGenerator string `yaml:\"generator\" schema:\"required,minLength=1\"`\n\t// Model is the generator model identifier reported by the server, such as \"pixflux-1\".\n\tModel string `yaml:\"model,omitempty\"`\n\t// Prompt is the text prompt sent to the generator.\n\tPrompt string `yaml:\"prompt\" schema:\"required,minLength=1\"`\n\t// Seed is the random seed that produced this candidate, when reported by the generator.\n\tSeed *int64 `yaml:\"seed,omitempty\"`\n\t// References lists the project-relative asset or brief paths passed to the generator as references (for example \"art/characters/slime.png\", \"brief.yaml#art\").\n\tReferences []string `yaml:\"references,omitempty\"`\n\t// License names the license under which the generated asset is used (for example \"pixellab-commercial-1.2\" or \"CC0-1.0\"); an empty or \"unknown\" license blocks release builds until resolved.\n\tLicense string `yaml:\"license,omitempty\"`\n\t// CommercialUse records whether the asset's license permits commercial use.\n\tCommercialUse bool `yaml:\"commercialUse\"`\n\t// ApprovedBy names the person who picked and approved the generated candidate.\n\tApprovedBy string `yaml:\"approvedBy,omitempty\"`\n}",
          "doc": "AssetSource records the provenance, generation parameters, license, and approval of an asset generated through an MCP generator server.\nIt is written beside the picked asset as <file>.source.yaml in deterministic YAML.\n",
          "file": "pkg/tooling/importsettings/source.go",
          "line": 41,
          "members": [
            {
              "name": "Version",
              "anchor": "AssetSource.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal AssetSourceVersion (1)."
            },
            {
              "name": "Generator",
              "anchor": "AssetSource.Generator",
              "kind": "field",
              "doc": "Generator is the MCP generator server name that produced the asset, such as \"pixel-gen\" or \"sfx-gen\"."
            },
            {
              "name": "Model",
              "anchor": "AssetSource.Model",
              "kind": "field",
              "doc": "Model is the generator model identifier reported by the server, such as \"pixflux-1\"."
            },
            {
              "name": "Prompt",
              "anchor": "AssetSource.Prompt",
              "kind": "field",
              "doc": "Prompt is the text prompt sent to the generator."
            },
            {
              "name": "Seed",
              "anchor": "AssetSource.Seed",
              "kind": "field",
              "doc": "Seed is the random seed that produced this candidate, when reported by the generator."
            },
            {
              "name": "References",
              "anchor": "AssetSource.References",
              "kind": "field",
              "doc": "References lists the project-relative asset or brief paths passed to the generator as references (for example \"art/characters/slime.png\", \"brief.yaml#art\")."
            },
            {
              "name": "License",
              "anchor": "AssetSource.License",
              "kind": "field",
              "doc": "License names the license under which the generated asset is used (for example \"pixellab-commercial-1.2\" or \"CC0-1.0\"); an empty or \"unknown\" license blocks release builds until resolved."
            },
            {
              "name": "CommercialUse",
              "anchor": "AssetSource.CommercialUse",
              "kind": "field",
              "doc": "CommercialUse records whether the asset's license permits commercial use."
            },
            {
              "name": "ApprovedBy",
              "anchor": "AssetSource.ApprovedBy",
              "kind": "field",
              "doc": "ApprovedBy names the person who picked and approved the generated candidate."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseAssetSource",
              "anchor": "ParseAssetSource",
              "decl": "func ParseAssetSource(data []byte) (*AssetSource, error)",
              "doc": "ParseAssetSource decodes and validates a versioned YAML generated asset source sidecar (*.source.yaml).\nUnknown fields, duplicate keys, YAML anchors/aliases/merge keys, trailing YAML documents, and missing or unsupported versions are refused.\n",
              "file": "pkg/tooling/importsettings/source.go",
              "line": 75
            }
          ],
          "methods": []
        },
        {
          "name": "Audio",
          "anchor": "Audio",
          "decl": "type Audio struct {\n\t// Format is the output format: \"wav\", \"aac\" or \"mp3\".\n\tFormat string `yaml:\"format,omitempty\" schema:\"enum=wav|aac|mp3\"`\n\t// Rate is the output sample rate in Hz.\n\tRate int `yaml:\"rate,omitempty\" schema:\"minimum=0\"`\n\t// Channels is 1 for mono or 2 for stereo.\n\tChannels int `yaml:\"channels,omitempty\" schema:\"minimum=0,maximum=2\"`\n\t// PeakDB normalizes the peak to this level in dBFS; it may not be set with RMSDB. Setting either replaces the target's normalization.\n\tPeakDB *float64 `yaml:\"peakDB,omitempty\"`\n\t// RMSDB normalizes the loudness to this level in dBFS with soft clipping; it may not be set with PeakDB.\n\tRMSDB *float64 `yaml:\"rmsDB,omitempty\"`\n\t// Bitrate is the AAC or MP3 bitrate in kbps.\n\tBitrate int `yaml:\"bitrate,omitempty\" schema:\"minimum=0\"`\n\t// Loop is the region a player repeats, written into a WAV output's smpl chunk; AAC and MP3 carry no loop points, so a sound with a loop must be converted to WAV.\n\tLoop *Loop `yaml:\"loop,omitempty\"`\n}",
          "doc": "Audio holds how a sound is converted by an audio target. Each field left out keeps the target's setting in game.yaml.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 337,
          "members": [
            {
              "name": "Format",
              "anchor": "Audio.Format",
              "kind": "field",
              "doc": "Format is the output format: \"wav\", \"aac\" or \"mp3\"."
            },
            {
              "name": "Rate",
              "anchor": "Audio.Rate",
              "kind": "field",
              "doc": "Rate is the output sample rate in Hz."
            },
            {
              "name": "Channels",
              "anchor": "Audio.Channels",
              "kind": "field",
              "doc": "Channels is 1 for mono or 2 for stereo."
            },
            {
              "name": "PeakDB",
              "anchor": "Audio.PeakDB",
              "kind": "field",
              "doc": "PeakDB normalizes the peak to this level in dBFS; it may not be set with RMSDB. Setting either replaces the target's normalization."
            },
            {
              "name": "RMSDB",
              "anchor": "Audio.RMSDB",
              "kind": "field",
              "doc": "RMSDB normalizes the loudness to this level in dBFS with soft clipping; it may not be set with PeakDB."
            },
            {
              "name": "Bitrate",
              "anchor": "Audio.Bitrate",
              "kind": "field",
              "doc": "Bitrate is the AAC or MP3 bitrate in kbps."
            },
            {
              "name": "Loop",
              "anchor": "Audio.Loop",
              "kind": "field",
              "doc": "Loop is the region a player repeats, written into a WAV output's smpl chunk; AAC and MP3 carry no loop points, so a sound with a loop must be converted to WAV."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CellPivot",
          "anchor": "CellPivot",
          "decl": "type CellPivot struct {\n\t// Cell is the 0-based cell index (row by row from the top left), matching the frame suffix _<cell>.\n\tCell int `yaml:\"cell\" schema:\"required,minimum=0\"`\n\t// Pivot is the normalized [x, y] pivot for this cell.\n\tPivot PivotPoint `yaml:\"pivot\" schema:\"required,minItems=2\"`\n}",
          "doc": "CellPivot overrides the normalized pivot for one 0-based cell of a sliced sprite sheet.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 146,
          "members": [
            {
              "name": "Cell",
              "anchor": "CellPivot.Cell",
              "kind": "field",
              "doc": "Cell is the 0-based cell index (row by row from the top left), matching the frame suffix _<cell>."
            },
            {
              "name": "Pivot",
              "anchor": "CellPivot.Pivot",
              "kind": "field",
              "doc": "Pivot is the normalized [x, y] pivot for this cell."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "UnmarshalYAML",
              "anchor": "CellPivot.UnmarshalYAML",
              "recv": "*CellPivot",
              "decl": "func (c *CellPivot) UnmarshalYAML(value *yaml.Node) error",
              "doc": "UnmarshalYAML decodes a CellPivot mapping, requiring both cell and pivot keys and refusing unknown or repeated keys.\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 154
            }
          ]
        },
        {
          "name": "Credit",
          "anchor": "Credit",
          "decl": "type Credit struct {\n\t// Author is who made the asset, a person, a group or a company, as its license asks it to be attributed.\n\tAuthor string `yaml:\"author\" schema:\"required,minLength=1\"`\n\t// License is the asset's license as an SPDX license expression, such as \"CC0-1.0\", \"CC-BY-4.0\" or \"MIT OR Apache-2.0\"; a license with no SPDX identifier is named \"LicenseRef-\" followed by a name of its own, with its terms in Notice.\n\tLicense string `yaml:\"license\" schema:\"required,minLength=1\"`\n\t// Source is where the asset was obtained, usually a URL; empty for an asset made for the game.\n\tSource string `yaml:\"source,omitempty\"`\n\t// Notice is text the license requires to be shipped with the asset, such as a copyright line or a license's terms; it may span several lines.\n\tNotice string `yaml:\"notice,omitempty\"`\n}",
          "doc": "Credit records where an asset comes from, for the credits file a release ships with.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 64,
          "members": [
            {
              "name": "Author",
              "anchor": "Credit.Author",
              "kind": "field",
              "doc": "Author is who made the asset, a person, a group or a company, as its license asks it to be attributed."
            },
            {
              "name": "License",
              "anchor": "Credit.License",
              "kind": "field",
              "doc": "License is the asset's license as an SPDX license expression, such as \"CC0-1.0\", \"CC-BY-4.0\" or \"MIT OR Apache-2.0\"; a license with no SPDX identifier is named \"LicenseRef-\" followed by a name of its own, with its terms in Notice."
            },
            {
              "name": "Source",
              "anchor": "Credit.Source",
              "kind": "field",
              "doc": "Source is where the asset was obtained, usually a URL; empty for an asset made for the game."
            },
            {
              "name": "Notice",
              "anchor": "Credit.Notice",
              "kind": "field",
              "doc": "Notice is text the license requires to be shipped with the asset, such as a copyright line or a license's terms; it may span several lines."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "File",
          "anchor": "File",
          "decl": "type File struct {\n\t// Version is the schema version; it must equal CurrentVersion (1).\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Image holds the settings of an image (PNG or JPEG).\n\tImage *Image `yaml:\"image,omitempty\"`\n\t// Audio holds the settings of a sound (WAV).\n\tAudio *Audio `yaml:\"audio,omitempty\"`\n\t// Font holds the settings of a font (TrueType or OpenType) that a font target bakes into a bitmap font.\n\tFont *Font `yaml:\"font,omitempty\"`\n\t// Model holds the settings of a model (glTF or GLB) that a model target packs into one GLB file.\n\tModel *Model `yaml:\"model,omitempty\"`\n\t// Credit records who made the asset and its license, which game release and game credits list in the credits file; any kind of asset may carry one.\n\tCredit *Credit `yaml:\"credit,omitempty\"`\n}",
          "doc": "File is one asset's import settings and credit. It holds at least one section: at most one of Image, Audio, Font and Model, for how game assets imports the asset, and Credit for who made it and under what license.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 48,
          "members": [
            {
              "name": "Version",
              "anchor": "File.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CurrentVersion (1)."
            },
            {
              "name": "Image",
              "anchor": "File.Image",
              "kind": "field",
              "doc": "Image holds the settings of an image (PNG or JPEG)."
            },
            {
              "name": "Audio",
              "anchor": "File.Audio",
              "kind": "field",
              "doc": "Audio holds the settings of a sound (WAV)."
            },
            {
              "name": "Font",
              "anchor": "File.Font",
              "kind": "field",
              "doc": "Font holds the settings of a font (TrueType or OpenType) that a font target bakes into a bitmap font."
            },
            {
              "name": "Model",
              "anchor": "File.Model",
              "kind": "field",
              "doc": "Model holds the settings of a model (glTF or GLB) that a model target packs into one GLB file."
            },
            {
              "name": "Credit",
              "anchor": "File.Credit",
              "kind": "field",
              "doc": "Credit records who made the asset and its license, which game release and game credits list in the credits file; any kind of asset may carry one."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*File, error)",
              "doc": "Parse decodes a sidecar and validates it.\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 413
            }
          ],
          "methods": [
            {
              "name": "Sections",
              "anchor": "File.Sections",
              "recv": "*File",
              "decl": "func (f *File) Sections() []string",
              "doc": "Sections returns the names of the import sections f holds, of \"image\", \"audio\", \"font\" and \"model\" in that order; Validate allows at most one.\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 399
            },
            {
              "name": "Validate",
              "anchor": "File.Validate",
              "recv": "*File",
              "decl": "func (f *File) Validate() error",
              "doc": "Validate checks f: the version, at least one section and at most one of image, audio, font and model, known formats and filters, values in range, and a credit with an author and a valid SPDX license expression.\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 493
            }
          ]
        },
        {
          "name": "Font",
          "anchor": "Font",
          "decl": "type Font struct {\n\t// Size is the font size in pixels the glyphs are drawn at; 0 keeps the target's.\n\tSize int `yaml:\"size,omitempty\" schema:\"minimum=0,maximum=2048\"`\n\t// Chars are the characters baked into the font, each once, in any order, such as \" 0123456789\"; empty keeps the target's.\n\tChars string `yaml:\"chars,omitempty\"`\n\t// Padding is the transparent gap around each glyph on the font's pages, in pixels.\n\tPadding *int `yaml:\"padding,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "Font holds how a font target bakes a TrueType or OpenType font into an AngelCode BMFont. Each field left out keeps the target's setting in game.yaml.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 363,
          "members": [
            {
              "name": "Size",
              "anchor": "Font.Size",
              "kind": "field",
              "doc": "Size is the font size in pixels the glyphs are drawn at; 0 keeps the target's."
            },
            {
              "name": "Chars",
              "anchor": "Font.Chars",
              "kind": "field",
              "doc": "Chars are the characters baked into the font, each once, in any order, such as \" 0123456789\"; empty keeps the target's."
            },
            {
              "name": "Padding",
              "anchor": "Font.Padding",
              "kind": "field",
              "doc": "Padding is the transparent gap around each glyph on the font's pages, in pixels."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Image",
          "anchor": "Image",
          "decl": "type Image struct {\n\t// Filter is the sampling filter written into the texture's KTX2 key/value data under FilterKey, which render3d.LoadKTX2 sets the sampler's filters from: \"linear\" or \"nearest\".\n\tFilter string `yaml:\"filter,omitempty\" schema:\"enum=linear|nearest\"`\n\t// Format is the KTX2 compression format: \"rgba8\", \"bc1\", \"bc3\" or \"etc2\".\n\tFormat string `yaml:\"format,omitempty\" schema:\"enum=rgba8|bc1|bc3|etc2\"`\n\t// Mipmaps writes the whole mipmap chain down to 1x1 when true and only the full-size image when false.\n\tMipmaps *bool `yaml:\"mipmaps,omitempty\"`\n\t// SRGB marks the texture sRGB and filters its mipmaps in linear light when true.\n\tSRGB *bool `yaml:\"srgb,omitempty\"`\n\t// Slice cuts a sprite sheet into frames on a grid before an atlas packs them; nil packs the image as one frame.\n\tSlice *Slice `yaml:\"slice,omitempty\"`\n\t// Pivot sets the normalized pivot point(s) written to TexturePacker JSON when an atlas packs the image, as a default for every frame and optional per-cell overrides for a sliced sheet.\n\tPivot *Pivot `yaml:\"pivot,omitempty\"`\n}",
          "doc": "Image holds how an image is imported. A texture target reads Filter, Format, Mipmaps and SRGB; an atlas target reads Slice and Pivot. Each field left out keeps the target's setting in game.yaml.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 76,
          "members": [
            {
              "name": "Filter",
              "anchor": "Image.Filter",
              "kind": "field",
              "doc": "Filter is the sampling filter written into the texture's KTX2 key/value data under FilterKey, which render3d.LoadKTX2 sets the sampler's filters from: \"linear\" or \"nearest\"."
            },
            {
              "name": "Format",
              "anchor": "Image.Format",
              "kind": "field",
              "doc": "Format is the KTX2 compression format: \"rgba8\", \"bc1\", \"bc3\" or \"etc2\"."
            },
            {
              "name": "Mipmaps",
              "anchor": "Image.Mipmaps",
              "kind": "field",
              "doc": "Mipmaps writes the whole mipmap chain down to 1x1 when true and only the full-size image when false."
            },
            {
              "name": "SRGB",
              "anchor": "Image.SRGB",
              "kind": "field",
              "doc": "SRGB marks the texture sRGB and filters its mipmaps in linear light when true."
            },
            {
              "name": "Slice",
              "anchor": "Image.Slice",
              "kind": "field",
              "doc": "Slice cuts a sprite sheet into frames on a grid before an atlas packs them; nil packs the image as one frame."
            },
            {
              "name": "Pivot",
              "anchor": "Image.Pivot",
              "kind": "field",
              "doc": "Pivot sets the normalized pivot point(s) written to TexturePacker JSON when an atlas packs the image, as a default for every frame and optional per-cell overrides for a sliced sheet."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Loop",
          "anchor": "Loop",
          "decl": "type Loop struct {\n\t// Start is the first frame of the loop.\n\tStart int `yaml:\"start\" schema:\"minimum=0\"`\n\t// End is the frame after the loop's last one; 0 is the end of the sound.\n\tEnd int `yaml:\"end,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "Loop is a region of a sound in sample frames of the source file, from Start up to, but not including, End. A target that resamples the sound scales it to the new rate.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 355,
          "members": [
            {
              "name": "Start",
              "anchor": "Loop.Start",
              "kind": "field",
              "doc": "Start is the first frame of the loop."
            },
            {
              "name": "End",
              "anchor": "Loop.End",
              "kind": "field",
              "doc": "End is the frame after the loop's last one; 0 is the end of the sound."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Model",
          "anchor": "Model",
          "decl": "type Model struct {\n\t// Scale multiplies the size of every scene of the model, such as 0.01 for a model exported in centimeters; 0 keeps the target's.\n\tScale float64 `yaml:\"scale,omitempty\" schema:\"minimum=0\"`\n\t// Animations keeps the model's animations when true and leaves them out of the GLB when false.\n\tAnimations *bool `yaml:\"animations,omitempty\"`\n\t// LODs declares the model's levels of detail from finest (index 0) to coarsest, with screen-ratio (and optional distance) thresholds. When omitted, scenemodel.Build pairs glTF nodes following the _LOD1, _LOD2 naming convention with default screen-ratio thresholds.\n\tLODs []ModelLOD `yaml:\"lods,omitempty\"`\n\t// LODHysteresis is the optional relative deadband in [0, 0.5] used by render3d.Queue to prevent LOD popping near thresholds.\n\tLODHysteresis float32 `yaml:\"lodHysteresis,omitempty\" schema:\"minimum=0,maximum=0.5\"`\n}",
          "doc": "Model holds how a model target packs a glTF model into one GLB file and how scenemodel builds its levels of detail. Each field left out keeps the target's setting in game.yaml.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 387,
          "members": [
            {
              "name": "Scale",
              "anchor": "Model.Scale",
              "kind": "field",
              "doc": "Scale multiplies the size of every scene of the model, such as 0.01 for a model exported in centimeters; 0 keeps the target's."
            },
            {
              "name": "Animations",
              "anchor": "Model.Animations",
              "kind": "field",
              "doc": "Animations keeps the model's animations when true and leaves them out of the GLB when false."
            },
            {
              "name": "LODs",
              "anchor": "Model.LODs",
              "kind": "field",
              "doc": "LODs declares the model's levels of detail from finest (index 0) to coarsest, with screen-ratio (and optional distance) thresholds. When omitted, scenemodel.Build pairs glTF nodes following the _LOD1, _LOD2 naming convention with default screen-ratio thresholds."
            },
            {
              "name": "LODHysteresis",
              "anchor": "Model.LODHysteresis",
              "kind": "field",
              "doc": "LODHysteresis is the optional relative deadband in [0, 0.5] used by render3d.Queue to prevent LOD popping near thresholds."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ModelLOD",
          "anchor": "ModelLOD",
          "decl": "type ModelLOD struct {\n\t// Model optionally names a separate glTF or GLB model file (slash-separated path from the project root) providing this level's geometry; empty uses this model file.\n\tModel string `yaml:\"model,omitempty\"`\n\t// Node optionally names a node inside the model (this file, or Model when set) providing this level's geometry; cannot be combined with Mesh.\n\tNode string `yaml:\"node,omitempty\"`\n\t// Mesh optionally names a mesh inside the model (this file, or Model when set) providing this level's geometry; cannot be combined with Node.\n\tMesh string `yaml:\"mesh,omitempty\"`\n\t// MinScreenRatio is the minimum projected viewport-height fraction in [0, 1] at which this level is drawn (render3d.LODLevel.MinScreenRatio). Levels must strictly decrease in MinScreenRatio; 0 marks an unbounded coarsest fallback.\n\tMinScreenRatio float32 `yaml:\"minScreenRatio,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// MaxDistance is an optional maximum camera distance in world units at which this level is drawn (render3d.LODLevel.MaxDistance); 0 disables distance-based switching for this level.\n\tMaxDistance float32 `yaml:\"maxDistance,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "ModelLOD describes one level of detail of a glTF model (Model.LODs), ordered from finest (LOD 0) to coarsest.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 373,
          "members": [
            {
              "name": "Model",
              "anchor": "ModelLOD.Model",
              "kind": "field",
              "doc": "Model optionally names a separate glTF or GLB model file (slash-separated path from the project root) providing this level's geometry; empty uses this model file."
            },
            {
              "name": "Node",
              "anchor": "ModelLOD.Node",
              "kind": "field",
              "doc": "Node optionally names a node inside the model (this file, or Model when set) providing this level's geometry; cannot be combined with Mesh."
            },
            {
              "name": "Mesh",
              "anchor": "ModelLOD.Mesh",
              "kind": "field",
              "doc": "Mesh optionally names a mesh inside the model (this file, or Model when set) providing this level's geometry; cannot be combined with Node."
            },
            {
              "name": "MinScreenRatio",
              "anchor": "ModelLOD.MinScreenRatio",
              "kind": "field",
              "doc": "MinScreenRatio is the minimum projected viewport-height fraction in [0, 1] at which this level is drawn (render3d.LODLevel.MinScreenRatio). Levels must strictly decrease in MinScreenRatio; 0 marks an unbounded coarsest fallback."
            },
            {
              "name": "MaxDistance",
              "anchor": "ModelLOD.MaxDistance",
              "kind": "field",
              "doc": "MaxDistance is an optional maximum camera distance in world units at which this level is drawn (render3d.LODLevel.MaxDistance); 0 disables distance-based switching for this level."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Pivot",
          "anchor": "Pivot",
          "decl": "type Pivot struct {\n\t// Default is the normalized [x, y] pivot applied to an unsliced image and to every cell of a sliced sheet not listed in Cells.\n\tDefault *PivotPoint `yaml:\"default,omitempty\" schema:\"minItems=2\"`\n\t// Cells overrides the normalized [x, y] pivot for individual 0-based cells of a sliced sprite sheet, in ascending cell index order.\n\tCells []CellPivot `yaml:\"cells,omitempty\"`\n}",
          "doc": "Pivot sets the normalized pivot points written into a packed atlas's TexturePacker frame metadata. Default applies to an unsliced image and to every cell of a sliced sheet without an entry in Cells.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 138,
          "members": [
            {
              "name": "Default",
              "anchor": "Pivot.Default",
              "kind": "field",
              "doc": "Default is the normalized [x, y] pivot applied to an unsliced image and to every cell of a sliced sheet not listed in Cells."
            },
            {
              "name": "Cells",
              "anchor": "Pivot.Cells",
              "kind": "field",
              "doc": "Cells overrides the normalized [x, y] pivot for individual 0-based cells of a sliced sprite sheet, in ascending cell index order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ForCell",
              "anchor": "Pivot.ForCell",
              "recv": "*Pivot",
              "decl": "func (p *Pivot) ForCell(cell int) (PivotPoint, bool)",
              "doc": "ForCell returns the effective pivot for the 0-based sliced cell, preferring an explicit override in Cells and falling back to Default, or false when neither is set.\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 203
            },
            {
              "name": "ForImage",
              "anchor": "Pivot.ForImage",
              "recv": "*Pivot",
              "decl": "func (p *Pivot) ForImage() (PivotPoint, bool)",
              "doc": "ForImage returns the pivot for an unsliced image, or false when no default pivot is set.\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 195
            }
          ]
        },
        {
          "name": "PivotPoint",
          "anchor": "PivotPoint",
          "decl": "type PivotPoint [2]float64",
          "doc": "PivotPoint is a normalized [x, y] pivot coordinate as fractions of the untrimmed frame's width and height: [0, 0] is the top-left corner, [0.5, 0.5] is the center, and [0.5, 1] is bottom-center.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 92,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "MarshalYAML",
              "anchor": "PivotPoint.MarshalYAML",
              "recv": "PivotPoint",
              "decl": "func (p PivotPoint) MarshalYAML() (any, error)",
              "doc": "MarshalYAML encodes p as a deterministic YAML flow sequence [x, y].\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 119
            },
            {
              "name": "UnmarshalYAML",
              "anchor": "PivotPoint.UnmarshalYAML",
              "recv": "*PivotPoint",
              "decl": "func (p *PivotPoint) UnmarshalYAML(value *yaml.Node) error",
              "doc": "UnmarshalYAML decodes a [x, y] sequence of two finite numbers into p.\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 95
            }
          ]
        },
        {
          "name": "Slice",
          "anchor": "Slice",
          "decl": "type Slice struct {\n\t// Width and Height are each cell's size; both must be positive.\n\tWidth  int `yaml:\"width\" schema:\"required,minimum=1\"`\n\tHeight int `yaml:\"height\" schema:\"required,minimum=1\"`\n\t// Margin is the gap between the image's top and left edges and the first row and column of cells.\n\tMargin int `yaml:\"margin,omitempty\" schema:\"minimum=0\"`\n\t// Spacing is the gap between neighboring cells.\n\tSpacing int `yaml:\"spacing,omitempty\" schema:\"minimum=0\"`\n\t// Count is how many cells are frames, counted from the first; 0 takes every cell that fits.\n\tCount int `yaml:\"count,omitempty\" schema:\"minimum=0\"`\n}",
          "doc": "Slice is the grid a sprite sheet is cut into, in pixels. Its cells are taken row by row from the top left, and frame i of the image name.png is packed as name_i.png.\n",
          "file": "pkg/tooling/importsettings/importsettings.go",
          "line": 219,
          "members": [
            {
              "name": "Width",
              "anchor": "Slice.Width",
              "kind": "field",
              "doc": "Width and Height are each cell's size; both must be positive."
            },
            {
              "name": "Height",
              "anchor": "Slice.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Margin",
              "anchor": "Slice.Margin",
              "kind": "field",
              "doc": "Margin is the gap between the image's top and left edges and the first row and column of cells."
            },
            {
              "name": "Spacing",
              "anchor": "Slice.Spacing",
              "kind": "field",
              "doc": "Spacing is the gap between neighboring cells."
            },
            {
              "name": "Count",
              "anchor": "Slice.Count",
              "kind": "field",
              "doc": "Count is how many cells are frames, counted from the first; 0 takes every cell that fits."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CellRect",
              "anchor": "Slice.CellRect",
              "recv": "Slice",
              "decl": "func (s Slice) CellRect(bounds image.Rectangle, cols, cell int) (image.Rectangle, bool)",
              "doc": "CellRect computes the pixel rectangle for 0-based cell in a grid with cols\ncolumns across bounds without allocating a full slice of rectangles.\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 269
            },
            {
              "name": "Cells",
              "anchor": "Slice.Cells",
              "recv": "Slice",
              "decl": "func (s Slice) Cells(bounds image.Rectangle) (rects []image.Rectangle, cols, rows int, err error)",
              "doc": "Cells returns the pixel rectangles of every cell s cuts from an image with bounds, row by row from the top left, along with the grid's column and row counts. It fails when s is invalid, when no cell fits, when Count exceeds the cells that fit, or when the resulting cell count exceeds [MaxSliceCells].\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 302
            },
            {
              "name": "GridCounts",
              "anchor": "Slice.GridCounts",
              "recv": "Slice",
              "decl": "func (s Slice) GridCounts(bounds image.Rectangle) (count, cols, rows int, err error)",
              "doc": "GridCounts validates s against bounds and returns the resulting cell count,\ncolumn count, and row count without allocating cell rectangles. It fails when\ns is invalid, when no cell fits, when the grid cell count overflows int, or\nwhen Count exceeds the cells that fit.\n",
              "file": "pkg/tooling/importsettings/importsettings.go",
              "line": 239
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/jsonschema",
      "name": "jsonschema",
      "dir": "pkg/tooling/jsonschema",
      "page": "pkg/tooling/jsonschema",
      "synopsis": "Package jsonschema builds JSON Schemas (draft-07) from Go types and checks decoded YAML or JSON values against them, so editors and AI tools can complete and validate the YAML files a game's author writes.",
      "doc": "Package jsonschema builds JSON Schemas (draft-07) from Go types and checks decoded YAML or JSON values against them, so editors and AI tools can complete and validate the YAML files a game's author writes.\n\nReflect walks a Go type the way its loader decodes it: struct fields become properties named by their yaml tags (or by Options.FieldName), structs become definitions shared through $ref, and a `schema` struct tag adds the constraints a type alone cannot say, such as `schema:\"required,const=1\"` or `schema:\"enum=world|screen\"`. Schema.Marshal writes deterministic, indented JSON, so a generated schema can be committed and checked for drift in CI, and Schema.Validate checks a value decoded from YAML or JSON against the keywords Reflect emits.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "Draft07",
              "anchor": "Draft07"
            }
          ],
          "decl": "const Draft07 = \"http://json-schema.org/draft-07/schema#\"",
          "doc": "Draft07 is the $schema URI of the JSON Schema dialect this package writes, the newest one editors' YAML and JSON language servers support everywhere.\n",
          "file": "pkg/tooling/jsonschema/schema.go",
          "line": 14
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "DecodeYAML",
          "anchor": "DecodeYAML",
          "decl": "func DecodeYAML(data []byte) (any, error)",
          "doc": "DecodeYAML decodes the single YAML document in data into the plain values Validate takes; empty input decodes to nil.\n",
          "file": "pkg/tooling/jsonschema/validate.go",
          "line": 78
        },
        {
          "name": "PackageDocs",
          "anchor": "PackageDocs",
          "decl": "func PackageDocs(dir string) (map[string]string, error)",
          "doc": "PackageDocs reads the doc comments of the Go package in dir (its non-test .go files) into the map Options.Docs takes: each type's comment under its name, and each struct field's under \"Type.Field\".\n\nA field with no comment of its own takes the comment of the nearest commented field before it in the same struct when that comment names it, as in \"X and Y are the world coordinates\", so a pair documented together gets the same description. A comment's lines are joined into paragraphs separated by a blank line.\n",
          "file": "pkg/tooling/jsonschema/docs.go",
          "line": 17
        }
      ],
      "types": [
        {
          "name": "Field",
          "anchor": "Field",
          "decl": "type Field struct {\n\t// Name is the key the field is written under.\n\tName string\n\t// Skip leaves the field out of the schema, as a `yaml:\"-\"` tag does.\n\tSkip bool\n\t// Inline merges the fields of a struct-typed field into its parent, as a `yaml:\",inline\"` tag does.\n\tInline bool\n}",
          "doc": "Field says how a loader reads one Go struct field: the key it is written under, whether it is skipped, and whether its fields are read as if they were the parent's.\n",
          "file": "pkg/tooling/jsonschema/reflect.go",
          "line": 13,
          "members": [
            {
              "name": "Name",
              "anchor": "Field.Name",
              "kind": "field",
              "doc": "Name is the key the field is written under."
            },
            {
              "name": "Skip",
              "anchor": "Field.Skip",
              "kind": "field",
              "doc": "Skip leaves the field out of the schema, as a `yaml:\"-\"` tag does."
            },
            {
              "name": "Inline",
              "anchor": "Field.Inline",
              "kind": "field",
              "doc": "Inline merges the fields of a struct-typed field into its parent, as a `yaml:\",inline\"` tag does."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "YAMLField",
              "anchor": "YAMLField",
              "decl": "func YAMLField(f reflect.StructField) Field",
              "doc": "YAMLField maps a struct field the way go.yaml.in/yaml/v3 does: the first part of its `yaml` tag names it, \"-\" skips it, \",inline\" merges it, and an untagged field is named by its Go name in lower case.\n",
              "file": "pkg/tooling/jsonschema/reflect.go",
              "line": 43
            }
          ],
          "methods": []
        },
        {
          "name": "Issue",
          "anchor": "Issue",
          "decl": "type Issue struct {\n\t// Path is the JSON Pointer (RFC 6901) of the value within the document, \"\" for the document itself.\n\tPath string\n\t// Message says what is wrong with the value.\n\tMessage string\n}",
          "doc": "Issue is one place where a value breaks its schema.\n",
          "file": "pkg/tooling/jsonschema/validate.go",
          "line": 19,
          "members": [
            {
              "name": "Path",
              "anchor": "Issue.Path",
              "kind": "field",
              "doc": "Path is the JSON Pointer (RFC 6901) of the value within the document, \"\" for the document itself."
            },
            {
              "name": "Message",
              "anchor": "Issue.Message",
              "kind": "field",
              "doc": "Message says what is wrong with the value."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Issue.String",
              "recv": "Issue",
              "decl": "func (i Issue) String() string",
              "doc": "String returns the issue as \"<path>: <message>\", with \"/\" standing for the document itself.\n",
              "file": "pkg/tooling/jsonschema/validate.go",
              "line": 27
            }
          ]
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// ID is the $id URI the schema is published at; empty omits it.\n\tID string\n\t// Title is the root schema's title; empty omits it.\n\tTitle string\n\t// Description is the root schema's description; empty uses Docs for the root type.\n\tDescription string\n\t// FieldName maps a struct field to the key its loader reads; nil uses YAMLField.\n\tFieldName func(reflect.StructField) Field\n\t// Docs maps a Go type's name (\"SceneDoc\") or a type's field (\"SceneDoc.Name\") to the description written for it, as PackageDocs reads them from a package's doc comments.\n\tDocs map[string]string\n\t// Types overrides the schema of a Go type wherever it appears, for types a loader reads in a form their kind does not say, such as a time.Duration written \"1.5s\". Each use gets its own copy.\n\tTypes map[reflect.Type]*Schema\n\t// AllowUnknown leaves additionalProperties unset on struct schemas, for loaders that ignore keys they do not know; by default unknown keys are refused, as a decoder with KnownFields(true) does.\n\tAllowUnknown bool\n\t// FirstFieldWins keeps the first field written under a key and leaves out later ones, for loaders that bind each key to the first field claiming it, such as datatable's CSV and JSON loaders; by default two fields under one key are an error.\n\tFirstFieldWins bool\n}",
          "doc": "Options configures Reflect.\n",
          "file": "pkg/tooling/jsonschema/reflect.go",
          "line": 23,
          "members": [
            {
              "name": "ID",
              "anchor": "Options.ID",
              "kind": "field",
              "doc": "ID is the $id URI the schema is published at; empty omits it."
            },
            {
              "name": "Title",
              "anchor": "Options.Title",
              "kind": "field",
              "doc": "Title is the root schema's title; empty omits it."
            },
            {
              "name": "Description",
              "anchor": "Options.Description",
              "kind": "field",
              "doc": "Description is the root schema's description; empty uses Docs for the root type."
            },
            {
              "name": "FieldName",
              "anchor": "Options.FieldName",
              "kind": "field",
              "doc": "FieldName maps a struct field to the key its loader reads; nil uses YAMLField."
            },
            {
              "name": "Docs",
              "anchor": "Options.Docs",
              "kind": "field",
              "doc": "Docs maps a Go type's name (\"SceneDoc\") or a type's field (\"SceneDoc.Name\") to the description written for it, as PackageDocs reads them from a package's doc comments."
            },
            {
              "name": "Types",
              "anchor": "Options.Types",
              "kind": "field",
              "doc": "Types overrides the schema of a Go type wherever it appears, for types a loader reads in a form their kind does not say, such as a time.Duration written \"1.5s\". Each use gets its own copy."
            },
            {
              "name": "AllowUnknown",
              "anchor": "Options.AllowUnknown",
              "kind": "field",
              "doc": "AllowUnknown leaves additionalProperties unset on struct schemas, for loaders that ignore keys they do not know; by default unknown keys are refused, as a decoder with KnownFields(true) does."
            },
            {
              "name": "FirstFieldWins",
              "anchor": "Options.FirstFieldWins",
              "kind": "field",
              "doc": "FirstFieldWins keeps the first field written under a key and leaves out later ones, for loaders that bind each key to the first field claiming it, such as datatable's CSV and JSON loaders; by default two fields under one key are an error."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Property",
          "anchor": "Property",
          "decl": "type Property struct {\n\t// Name is the key the property is written under.\n\tName string\n\t// Schema constrains the property's value.\n\tSchema *Schema\n}",
          "doc": "Property is one named entry of an object schema's properties, kept in declaration order so a generated schema reads in the same order as the Go type.\n",
          "file": "pkg/tooling/jsonschema/schema.go",
          "line": 37,
          "members": [
            {
              "name": "Name",
              "anchor": "Property.Name",
              "kind": "field",
              "doc": "Name is the key the property is written under."
            },
            {
              "name": "Schema",
              "anchor": "Property.Schema",
              "kind": "field",
              "doc": "Schema constrains the property's value."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Schema",
          "anchor": "Schema",
          "decl": "type Schema struct {\n\t// Schema is the $schema dialect URI, set on a root schema only.\n\tSchema string\n\t// ID is the $id URI a root schema is published at.\n\tID string\n\t// Ref is a $ref to \"#\" or \"#/definitions/<name>\" in the root schema. Validate ignores the other keywords of a schema with a Ref, as draft-07 does.\n\tRef string\n\t// Title is a short human-readable name.\n\tTitle string\n\t// Description is shown by editors on hover and completion.\n\tDescription string\n\t// Types lists the allowed JSON types; empty allows every type.\n\tTypes []Type\n\t// Const, when non-nil, is the only allowed value.\n\tConst any\n\t// Enum, when non-empty, lists the allowed values.\n\tEnum []any\n\t// Minimum and Maximum bound a number inclusively.\n\tMinimum, Maximum *float64\n\t// ExclusiveMinimum and ExclusiveMaximum bound a number exclusively.\n\tExclusiveMinimum, ExclusiveMaximum *float64\n\t// MinLength is the fewest characters (Unicode code points) a string may have.\n\tMinLength *int\n\t// MinItems is the fewest elements an array may have.\n\tMinItems *int\n\t// MaxItems is the most elements an array may have.\n\tMaxItems *int\n\t// Items constrains every element of an array.\n\tItems *Schema\n\t// Properties constrains an object's named properties, in declaration order.\n\tProperties []Property\n\t// Required lists the properties an object must have.\n\tRequired []string\n\t// AdditionalProperties constrains the properties not named in Properties; False refuses them and nil allows any.\n\tAdditionalProperties *Schema\n\t// AllOf lists schemas a value must match all of; Reflect uses it to give a $ref a description of its own.\n\tAllOf []*Schema\n\t// Definitions holds the named subschemas that Ref points at, set on a root schema only.\n\tDefinitions map[string]*Schema\n\t// contains filtered or unexported fields\n}",
          "doc": "Schema is a JSON Schema draft-07 document or subschema, limited to the keywords Reflect emits and Validate checks.\n\nThe zero Schema accepts every value; True and False return the boolean schemas.\n",
          "file": "pkg/tooling/jsonschema/schema.go",
          "line": 47,
          "members": [
            {
              "name": "Schema",
              "anchor": "Schema.Schema",
              "kind": "field",
              "doc": "Schema is the $schema dialect URI, set on a root schema only."
            },
            {
              "name": "ID",
              "anchor": "Schema.ID",
              "kind": "field",
              "doc": "ID is the $id URI a root schema is published at."
            },
            {
              "name": "Ref",
              "anchor": "Schema.Ref",
              "kind": "field",
              "doc": "Ref is a $ref to \"#\" or \"#/definitions/<name>\" in the root schema. Validate ignores the other keywords of a schema with a Ref, as draft-07 does."
            },
            {
              "name": "Title",
              "anchor": "Schema.Title",
              "kind": "field",
              "doc": "Title is a short human-readable name."
            },
            {
              "name": "Description",
              "anchor": "Schema.Description",
              "kind": "field",
              "doc": "Description is shown by editors on hover and completion."
            },
            {
              "name": "Types",
              "anchor": "Schema.Types",
              "kind": "field",
              "doc": "Types lists the allowed JSON types; empty allows every type."
            },
            {
              "name": "Const",
              "anchor": "Schema.Const",
              "kind": "field",
              "doc": "Const, when non-nil, is the only allowed value."
            },
            {
              "name": "Enum",
              "anchor": "Schema.Enum",
              "kind": "field",
              "doc": "Enum, when non-empty, lists the allowed values."
            },
            {
              "name": "Minimum",
              "anchor": "Schema.Minimum",
              "kind": "field",
              "doc": "Minimum and Maximum bound a number inclusively."
            },
            {
              "name": "Maximum",
              "anchor": "Schema.Maximum",
              "kind": "field",
              "doc": "Minimum and Maximum bound a number inclusively."
            },
            {
              "name": "ExclusiveMinimum",
              "anchor": "Schema.ExclusiveMinimum",
              "kind": "field",
              "doc": "ExclusiveMinimum and ExclusiveMaximum bound a number exclusively."
            },
            {
              "name": "ExclusiveMaximum",
              "anchor": "Schema.ExclusiveMaximum",
              "kind": "field",
              "doc": "ExclusiveMinimum and ExclusiveMaximum bound a number exclusively."
            },
            {
              "name": "MinLength",
              "anchor": "Schema.MinLength",
              "kind": "field",
              "doc": "MinLength is the fewest characters (Unicode code points) a string may have."
            },
            {
              "name": "MinItems",
              "anchor": "Schema.MinItems",
              "kind": "field",
              "doc": "MinItems is the fewest elements an array may have."
            },
            {
              "name": "MaxItems",
              "anchor": "Schema.MaxItems",
              "kind": "field",
              "doc": "MaxItems is the most elements an array may have."
            },
            {
              "name": "Items",
              "anchor": "Schema.Items",
              "kind": "field",
              "doc": "Items constrains every element of an array."
            },
            {
              "name": "Properties",
              "anchor": "Schema.Properties",
              "kind": "field",
              "doc": "Properties constrains an object's named properties, in declaration order."
            },
            {
              "name": "Required",
              "anchor": "Schema.Required",
              "kind": "field",
              "doc": "Required lists the properties an object must have."
            },
            {
              "name": "AdditionalProperties",
              "anchor": "Schema.AdditionalProperties",
              "kind": "field",
              "doc": "AdditionalProperties constrains the properties not named in Properties; False refuses them and nil allows any."
            },
            {
              "name": "AllOf",
              "anchor": "Schema.AllOf",
              "kind": "field",
              "doc": "AllOf lists schemas a value must match all of; Reflect uses it to give a $ref a description of its own."
            },
            {
              "name": "Definitions",
              "anchor": "Schema.Definitions",
              "kind": "field",
              "doc": "Definitions holds the named subschemas that Ref points at, set on a root schema only."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "False",
              "anchor": "False",
              "decl": "func False() *Schema",
              "doc": "False returns the boolean schema that accepts no value; as AdditionalProperties it refuses unknown keys.\n",
              "file": "pkg/tooling/jsonschema/schema.go",
              "line": 97
            },
            {
              "name": "Reflect",
              "anchor": "Reflect",
              "decl": "func Reflect(t reflect.Type, opts Options) (*Schema, error)",
              "doc": "Reflect builds the schema of values of type t as a loader with opts reads them:\n\n  - a struct is an object whose properties are its exported fields, named by opts.FieldName, with unknown keys refused unless opts.AllowUnknown; a struct other than the root is written once under definitions and referenced by $ref;\n  - a pointer is the schema of what it points to;\n  - a slice or array is an array of its elements' schema;\n  - a map with string keys is an object whose values all have the map's element schema;\n  - strings, booleans, integers and floats map to their JSON types, integers and float32 bounded by the range their Go type holds, and an interface accepts any value.\n\nA field's `schema` struct tag adds what its Go type cannot say, as comma-separated entries: required, const=V, enum=A|B|C, minimum=N, maximum=N, exclusiveMinimum=N, exclusiveMaximum=N, minLength=N and minItems=N, where const and enum values are read as the field's type. Channels, functions, complex numbers and maps with keys other than strings are refused.\n",
              "file": "pkg/tooling/jsonschema/reflect.go",
              "line": 73
            },
            {
              "name": "True",
              "anchor": "True",
              "decl": "func True() *Schema",
              "doc": "True returns the boolean schema that accepts every value.\n",
              "file": "pkg/tooling/jsonschema/schema.go",
              "line": 91
            }
          ],
          "methods": [
            {
              "name": "Boolean",
              "anchor": "Schema.Boolean",
              "recv": "*Schema",
              "decl": "func (s *Schema) Boolean() (value, ok bool)",
              "doc": "Boolean reports whether s is a boolean schema (True or False) and, if so, its value.\n",
              "file": "pkg/tooling/jsonschema/schema.go",
              "line": 103
            },
            {
              "name": "Marshal",
              "anchor": "Schema.Marshal",
              "recv": "*Schema",
              "decl": "func (s *Schema) Marshal() ([]byte, error)",
              "doc": "Marshal returns s as JSON indented by two spaces with a trailing newline. Keys keep a fixed order (properties in declaration order, definitions sorted by name), so the same schema always yields the same bytes.\n",
              "file": "pkg/tooling/jsonschema/schema.go",
              "line": 124
            },
            {
              "name": "MarshalJSON",
              "anchor": "Schema.MarshalJSON",
              "recv": "*Schema",
              "decl": "func (s *Schema) MarshalJSON() ([]byte, error)",
              "doc": "MarshalJSON writes s as compact JSON with the key order Marshal documents.\n",
              "file": "pkg/tooling/jsonschema/schema.go",
              "line": 138
            },
            {
              "name": "Property",
              "anchor": "Schema.Property",
              "recv": "*Schema",
              "decl": "func (s *Schema) Property(name string) *Schema",
              "doc": "Property returns the schema of the named property, or nil when s has none by that name.\n",
              "file": "pkg/tooling/jsonschema/schema.go",
              "line": 111
            },
            {
              "name": "Validate",
              "anchor": "Schema.Validate",
              "recv": "*Schema",
              "decl": "func (s *Schema) Validate(v any) error",
              "doc": "Validate checks v against s and returns a *ValidationError listing every issue, or nil when v conforms.\n\nv is a value as encoding/json or ValidateYAML decodes one into an interface: nil, bool, string, a number of any Go numeric kind, []any, and map[string]any. $refs resolve against s, so call Validate on the root schema.\n",
              "file": "pkg/tooling/jsonschema/validate.go",
              "line": 59
            },
            {
              "name": "ValidateYAML",
              "anchor": "Schema.ValidateYAML",
              "recv": "*Schema",
              "decl": "func (s *Schema) ValidateYAML(data []byte) error",
              "doc": "ValidateYAML decodes the single YAML document in data as a YAML language server reads it (mapping keys as strings, timestamps and binary as strings, merge keys merged, a key repeated within one mapping refused) and validates it with Validate. A document that is not YAML, or that holds more than one document, is an error that is not a *ValidationError.\n",
              "file": "pkg/tooling/jsonschema/validate.go",
              "line": 69
            }
          ]
        },
        {
          "name": "Type",
          "anchor": "Type",
          "decl": "type Type string",
          "doc": "Type is a JSON Schema primitive type name.\n",
          "file": "pkg/tooling/jsonschema/schema.go",
          "line": 17,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "TypeObject",
                  "anchor": "TypeObject"
                },
                {
                  "name": "TypeArray",
                  "anchor": "TypeArray"
                },
                {
                  "name": "TypeString",
                  "anchor": "TypeString"
                },
                {
                  "name": "TypeNumber",
                  "anchor": "TypeNumber"
                },
                {
                  "name": "TypeInteger",
                  "anchor": "TypeInteger"
                },
                {
                  "name": "TypeBoolean",
                  "anchor": "TypeBoolean"
                },
                {
                  "name": "TypeNull",
                  "anchor": "TypeNull"
                }
              ],
              "decl": "const (\n\t// TypeObject is a mapping with string keys.\n\tTypeObject Type = \"object\"\n\t// TypeArray is a sequence.\n\tTypeArray Type = \"array\"\n\t// TypeString is a string.\n\tTypeString Type = \"string\"\n\t// TypeNumber is any number, integral or not.\n\tTypeNumber Type = \"number\"\n\t// TypeInteger is a number with no fractional part.\n\tTypeInteger Type = \"integer\"\n\t// TypeBoolean is true or false.\n\tTypeBoolean Type = \"boolean\"\n\t// TypeNull is null.\n\tTypeNull Type = \"null\"\n)",
              "doc": "",
              "file": "pkg/tooling/jsonschema/schema.go",
              "line": 19
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ValidationError",
          "anchor": "ValidationError",
          "decl": "type ValidationError struct {\n\t// Issues holds one entry per broken keyword, never empty.\n\tIssues []Issue\n}",
          "doc": "ValidationError lists every place a value breaks its schema, in document order.\n",
          "file": "pkg/tooling/jsonschema/validate.go",
          "line": 36,
          "members": [
            {
              "name": "Issues",
              "anchor": "ValidationError.Issues",
              "kind": "field",
              "doc": "Issues holds one entry per broken keyword, never empty."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Error",
              "anchor": "ValidationError.Error",
              "recv": "*ValidationError",
              "decl": "func (e *ValidationError) Error() string",
              "doc": "Error returns the issues one per line.\n",
              "file": "pkg/tooling/jsonschema/validate.go",
              "line": 42
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/ktx2",
      "name": "ktx2",
      "dir": "pkg/tooling/ktx2",
      "page": "pkg/tooling/ktx2",
      "synopsis": "Package ktx2 provides a pure-Go KTX2 v2.0 texture container encoder, decoder, supercompression decoder (BasisLZ, Zstandard, ZLIB), mipmap chain generator, Basis Universal ETC1S and UASTC 4x4 codecs, and block texture transcoder (BC1, BC3, BC7, ETC2 RGB8/RGBA8, ASTC 4x4, RGBA8).",
      "doc": "Package ktx2 provides a pure-Go KTX2 v2.0 texture container encoder, decoder, supercompression decoder (BasisLZ, Zstandard, ZLIB), mipmap chain generator, Basis Universal ETC1S and UASTC 4x4 codecs, and block texture transcoder (BC1, BC3, BC7, ETC2 RGB8/RGBA8, ASTC 4x4, RGBA8).\n",
      "consts": [
        {
          "idents": [
            {
              "name": "VkFormatUndefined",
              "anchor": "VkFormatUndefined"
            },
            {
              "name": "VkFormatR8G8B8A8Unorm",
              "anchor": "VkFormatR8G8B8A8Unorm"
            },
            {
              "name": "VkFormatR8G8B8A8SRGB",
              "anchor": "VkFormatR8G8B8A8SRGB"
            },
            {
              "name": "VkFormatBC1RGBAUnormBlock",
              "anchor": "VkFormatBC1RGBAUnormBlock"
            },
            {
              "name": "VkFormatBC1RGBASRGBBlock",
              "anchor": "VkFormatBC1RGBASRGBBlock"
            },
            {
              "name": "VkFormatBC3UnormBlock",
              "anchor": "VkFormatBC3UnormBlock"
            },
            {
              "name": "VkFormatBC3SRGBBlock",
              "anchor": "VkFormatBC3SRGBBlock"
            },
            {
              "name": "VkFormatBC7UnormBlock",
              "anchor": "VkFormatBC7UnormBlock"
            },
            {
              "name": "VkFormatBC7SRGBBlock",
              "anchor": "VkFormatBC7SRGBBlock"
            },
            {
              "name": "VkFormatETC2R8G8B8UnormBlk",
              "anchor": "VkFormatETC2R8G8B8UnormBlk"
            },
            {
              "name": "VkFormatETC2R8G8B8SRGBBlk",
              "anchor": "VkFormatETC2R8G8B8SRGBBlk"
            },
            {
              "name": "VkFormatETC2R8G8B8A8UnormBlk",
              "anchor": "VkFormatETC2R8G8B8A8UnormBlk"
            },
            {
              "name": "VkFormatETC2R8G8B8A8SRGBBlk",
              "anchor": "VkFormatETC2R8G8B8A8SRGBBlk"
            },
            {
              "name": "VkFormatASTC4x4UnormBlock",
              "anchor": "VkFormatASTC4x4UnormBlock"
            },
            {
              "name": "VkFormatASTC4x4SRGBBlock",
              "anchor": "VkFormatASTC4x4SRGBBlock"
            }
          ],
          "decl": "const (\n\tVkFormatUndefined            uint32 = 0\n\tVkFormatR8G8B8A8Unorm        uint32 = 37\n\tVkFormatR8G8B8A8SRGB         uint32 = 43\n\tVkFormatBC1RGBAUnormBlock    uint32 = 133\n\tVkFormatBC1RGBASRGBBlock     uint32 = 134\n\tVkFormatBC3UnormBlock        uint32 = 137\n\tVkFormatBC3SRGBBlock         uint32 = 138\n\tVkFormatBC7UnormBlock        uint32 = 145\n\tVkFormatBC7SRGBBlock         uint32 = 146\n\tVkFormatETC2R8G8B8UnormBlk   uint32 = 147\n\tVkFormatETC2R8G8B8SRGBBlk    uint32 = 148\n\tVkFormatETC2R8G8B8A8UnormBlk uint32 = 151\n\tVkFormatETC2R8G8B8A8SRGBBlk  uint32 = 152\n\tVkFormatASTC4x4UnormBlock    uint32 = 157\n\tVkFormatASTC4x4SRGBBlock     uint32 = 158\n)",
          "doc": "Vulkan VkFormat constants used by this package.\n",
          "file": "pkg/tooling/ktx2/format.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "DFDVendorKhronos",
              "anchor": "DFDVendorKhronos"
            },
            {
              "name": "DFDDescriptorBasicFormat",
              "anchor": "DFDDescriptorBasicFormat"
            },
            {
              "name": "DFDVersionNumber",
              "anchor": "DFDVersionNumber"
            },
            {
              "name": "DFDModelRGBSDA",
              "anchor": "DFDModelRGBSDA"
            },
            {
              "name": "DFDModelBC1A",
              "anchor": "DFDModelBC1A"
            },
            {
              "name": "DFDModelBC3",
              "anchor": "DFDModelBC3"
            },
            {
              "name": "DFDModelBC7",
              "anchor": "DFDModelBC7"
            },
            {
              "name": "DFDModelETC2",
              "anchor": "DFDModelETC2"
            },
            {
              "name": "DFDModelASTC",
              "anchor": "DFDModelASTC"
            },
            {
              "name": "DFDModelETC1S",
              "anchor": "DFDModelETC1S"
            },
            {
              "name": "DFDModelUASTC",
              "anchor": "DFDModelUASTC"
            },
            {
              "name": "DFDPrimariesBT709",
              "anchor": "DFDPrimariesBT709"
            },
            {
              "name": "DFDTransferLinear",
              "anchor": "DFDTransferLinear"
            },
            {
              "name": "DFDTransferSRGB",
              "anchor": "DFDTransferSRGB"
            },
            {
              "name": "DFDChannelRGBSDARed",
              "anchor": "DFDChannelRGBSDARed"
            },
            {
              "name": "DFDChannelRGBSDAGreen",
              "anchor": "DFDChannelRGBSDAGreen"
            },
            {
              "name": "DFDChannelRGBSDABlue",
              "anchor": "DFDChannelRGBSDABlue"
            },
            {
              "name": "DFDChannelRGBSDAAlpha",
              "anchor": "DFDChannelRGBSDAAlpha"
            },
            {
              "name": "DFDChannelBC1AColor",
              "anchor": "DFDChannelBC1AColor"
            },
            {
              "name": "DFDChannelBC3Color",
              "anchor": "DFDChannelBC3Color"
            },
            {
              "name": "DFDChannelBC3Alpha",
              "anchor": "DFDChannelBC3Alpha"
            },
            {
              "name": "DFDChannelBC7Color",
              "anchor": "DFDChannelBC7Color"
            },
            {
              "name": "DFDChannelETC2Color",
              "anchor": "DFDChannelETC2Color"
            },
            {
              "name": "DFDChannelETC2Alpha",
              "anchor": "DFDChannelETC2Alpha"
            },
            {
              "name": "DFDChannelASTCData",
              "anchor": "DFDChannelASTCData"
            },
            {
              "name": "DFDChannelETC1SRGB",
              "anchor": "DFDChannelETC1SRGB"
            },
            {
              "name": "DFDChannelETC1SRRR",
              "anchor": "DFDChannelETC1SRRR"
            },
            {
              "name": "DFDChannelETC1SGGG",
              "anchor": "DFDChannelETC1SGGG"
            },
            {
              "name": "DFDChannelETC1SAAA",
              "anchor": "DFDChannelETC1SAAA"
            },
            {
              "name": "DFDChannelUASTCRGB",
              "anchor": "DFDChannelUASTCRGB"
            },
            {
              "name": "DFDChannelUASTCRGBA",
              "anchor": "DFDChannelUASTCRGBA"
            },
            {
              "name": "DFDChannelUASTCRRR",
              "anchor": "DFDChannelUASTCRRR"
            },
            {
              "name": "DFDChannelUASTCRRRG",
              "anchor": "DFDChannelUASTCRRRG"
            },
            {
              "name": "SupercompressionNone",
              "anchor": "SupercompressionNone"
            },
            {
              "name": "SupercompressionBasisLZ",
              "anchor": "SupercompressionBasisLZ"
            },
            {
              "name": "SupercompressionZstandard",
              "anchor": "SupercompressionZstandard"
            },
            {
              "name": "SupercompressionZLIB",
              "anchor": "SupercompressionZLIB"
            }
          ],
          "decl": "const (\n\tDFDVendorKhronos          uint32 = 0\n\tDFDDescriptorBasicFormat  uint32 = 0\n\tDFDVersionNumber          uint32 = 2\n\tDFDModelRGBSDA            uint8  = 1\n\tDFDModelBC1A              uint8  = 128\n\tDFDModelBC3               uint8  = 130\n\tDFDModelBC7               uint8  = 134\n\tDFDModelETC2              uint8  = 161\n\tDFDModelASTC              uint8  = 162\n\tDFDModelETC1S             uint8  = 163\n\tDFDModelUASTC             uint8  = 166\n\tDFDPrimariesBT709         uint8  = 1\n\tDFDTransferLinear         uint8  = 1\n\tDFDTransferSRGB           uint8  = 2\n\tDFDChannelRGBSDARed       uint8  = 0\n\tDFDChannelRGBSDAGreen     uint8  = 1\n\tDFDChannelRGBSDABlue      uint8  = 2\n\tDFDChannelRGBSDAAlpha     uint8  = 15\n\tDFDChannelBC1AColor       uint8  = 0\n\tDFDChannelBC3Color        uint8  = 0\n\tDFDChannelBC3Alpha        uint8  = 15\n\tDFDChannelBC7Color        uint8  = 0\n\tDFDChannelETC2Color       uint8  = 0\n\tDFDChannelETC2Alpha       uint8  = 15\n\tDFDChannelASTCData        uint8  = 0\n\tDFDChannelETC1SRGB        uint8  = 0\n\tDFDChannelETC1SRRR        uint8  = 3\n\tDFDChannelETC1SGGG        uint8  = 4\n\tDFDChannelETC1SAAA        uint8  = 15\n\tDFDChannelUASTCRGB        uint8  = 0\n\tDFDChannelUASTCRGBA       uint8  = 3\n\tDFDChannelUASTCRRR        uint8  = 4\n\tDFDChannelUASTCRRRG       uint8  = 5\n\tSupercompressionNone      uint32 = 0\n\tSupercompressionBasisLZ   uint32 = 1\n\tSupercompressionZstandard uint32 = 2\n\tSupercompressionZLIB      uint32 = 3\n)",
          "doc": "Khronos Data Format Descriptor (DFD) v1.3 constants.\n",
          "file": "pkg/tooling/ktx2/format.go",
          "line": 38
        },
        {
          "idents": [
            {
              "name": "HeaderSize",
              "anchor": "HeaderSize"
            }
          ],
          "decl": "const HeaderSize = 80",
          "doc": "HeaderSize is the fixed size in bytes of the KTX2 identifier + header + index section.\n",
          "file": "pkg/tooling/ktx2/format.go",
          "line": 13
        },
        {
          "idents": [
            {
              "name": "LevelIndexEntrySize",
              "anchor": "LevelIndexEntrySize"
            }
          ],
          "decl": "const LevelIndexEntrySize = 24",
          "doc": "LevelIndexEntrySize is the byte size of one entry in the KTX2 level index array.\n",
          "file": "pkg/tooling/ktx2/format.go",
          "line": 16
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "Identifier",
              "anchor": "Identifier"
            }
          ],
          "decl": "var Identifier = [12]byte{0xAB, 0x4B, 0x54, 0x58, 0x20, 0x32, 0x30, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A}",
          "doc": "Identifier is the 12-byte KTX2 v2.0 magic file signature: \"\\xABKTX 20\\xBB\\r\\n\\x1A\\n\".\n",
          "file": "pkg/tooling/ktx2/format.go",
          "line": 10
        }
      ],
      "funcs": [
        {
          "name": "DecodeHeader",
          "anchor": "DecodeHeader",
          "decl": "func DecodeHeader(data []byte) (Header, []LevelIndex, error)",
          "doc": "DecodeHeader parses the KTX2 identifier, header, and level index array.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 477
        },
        {
          "name": "DecodeKVD",
          "anchor": "DecodeKVD",
          "decl": "func DecodeKVD(kvdBytes []byte) (map[string][]byte, error)",
          "doc": "DecodeKVD parses the Key/Value Data section of a KTX2 file and verifies lexicographical key order.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 581
        },
        {
          "name": "DecodeRGBA",
          "anchor": "DecodeRGBA",
          "decl": "func DecodeRGBA(data []byte, level int) (*image.NRGBA, error)",
          "doc": "DecodeRGBA decodes the specified mip level (0 = base) of a KTX2 texture into *image.NRGBA. Supports RGBA8, BC1, BC3, BC7, ETC2 RGB8/RGBA8, ASTC 4x4, Basis Universal UASTC 4x4, and BasisLZ/ETC1S with uncompressed, BasisLZ, Zstandard, or ZLIB supercompression.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 930
        },
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(img image.Image, opts Options) ([]byte, error)",
          "doc": "Encode encodes img into a spec-compliant KTX2 v2.0 byte slice.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 115
        },
        {
          "name": "EncodeFile",
          "anchor": "EncodeFile",
          "decl": "func EncodeFile(inPath, outPath string, opts Options) error",
          "doc": "EncodeFile reads a PNG or JPEG image from inPath and writes a KTX2 texture to outPath.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 270
        },
        {
          "name": "EncodeWriter",
          "anchor": "EncodeWriter",
          "decl": "func EncodeWriter(w io.Writer, img image.Image, opts Options) error",
          "doc": "EncodeWriter encodes img as KTX2 and writes it to w.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 260
        },
        {
          "name": "GenerateMipmaps",
          "anchor": "GenerateMipmaps",
          "decl": "func GenerateMipmaps(src image.Image, srgb bool) []*image.NRGBA",
          "doc": "GenerateMipmaps generates a complete mipmap chain down to 1x1 starting from src.\nWhen srgb is true, RGB channels are converted to linear light prior to filtering\nand converted back to sRGB afterward.\n",
          "file": "pkg/tooling/ktx2/mipmap.go",
          "line": 84
        },
        {
          "name": "MipDimensions",
          "anchor": "MipDimensions",
          "decl": "func MipDimensions(baseW, baseH, level int) (int, int)",
          "doc": "MipDimensions returns the width and height of mip level (0-based) for a base texture size.\n",
          "file": "pkg/tooling/ktx2/mipmap.go",
          "line": 72
        },
        {
          "name": "MipLevelCount",
          "anchor": "MipLevelCount",
          "decl": "func MipLevelCount(width, height int) int",
          "doc": "MipLevelCount returns the total number of mipmap levels from (width, height) down to 1x1.\n",
          "file": "pkg/tooling/ktx2/mipmap.go",
          "line": 58
        },
        {
          "name": "ReadLevel",
          "anchor": "ReadLevel",
          "decl": "func ReadLevel(data []byte, level int) (raw []byte, width, height int, err error)",
          "doc": "ReadLevel returns the raw (on-disk) bytes and pixel dimensions for mip level (0 = base level).\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 823
        },
        {
          "name": "ToNRGBA",
          "anchor": "ToNRGBA",
          "decl": "func ToNRGBA(src image.Image) *image.NRGBA",
          "doc": "ToNRGBA converts any image.Image into a tightly-packed 0-origin *image.NRGBA.\n",
          "file": "pkg/tooling/ktx2/mipmap.go",
          "line": 49
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(data []byte) error",
          "doc": "Validate checks a KTX2 buffer for structural compliance (magic, header, DFD, KVD, SGD bounds, level index bounds, and mip level byte sizes).\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 624
        }
      ],
      "types": [
        {
          "name": "DFD",
          "anchor": "DFD",
          "decl": "type DFD struct {\n\tTotalSize            uint32\n\tVendorID             uint32\n\tDescriptorType       uint32\n\tVersionNumber        uint32\n\tDescriptorBlockSize  uint32\n\tColorModel           uint8\n\tColorPrimaries       uint8\n\tTransferFunction     uint8\n\tFlags                uint8\n\tTexelBlockDimensions [4]uint8 // stored as dim - 1 per Khronos DFD v1.3\n\tBytesPlane           [8]uint8\n\tSamples              []DFDSample\n}",
          "doc": "DFD represents a parsed KTX2 Basic Data Format Descriptor block.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 77,
          "members": [
            {
              "name": "TotalSize",
              "anchor": "DFD.TotalSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VendorID",
              "anchor": "DFD.VendorID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DescriptorType",
              "anchor": "DFD.DescriptorType",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VersionNumber",
              "anchor": "DFD.VersionNumber",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DescriptorBlockSize",
              "anchor": "DFD.DescriptorBlockSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorModel",
              "anchor": "DFD.ColorModel",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColorPrimaries",
              "anchor": "DFD.ColorPrimaries",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TransferFunction",
              "anchor": "DFD.TransferFunction",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "DFD.Flags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TexelBlockDimensions",
              "anchor": "DFD.TexelBlockDimensions",
              "kind": "field",
              "doc": "stored as dim - 1 per Khronos DFD v1.3"
            },
            {
              "name": "BytesPlane",
              "anchor": "DFD.BytesPlane",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Samples",
              "anchor": "DFD.Samples",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseDFD",
              "anchor": "ParseDFD",
              "decl": "func ParseDFD(dfdBytes []byte) (DFD, error)",
              "doc": "ParseDFD decodes the Basic Data Format Descriptor block from raw DFD bytes.\n",
              "file": "pkg/tooling/ktx2/container.go",
              "line": 528
            }
          ],
          "methods": []
        },
        {
          "name": "DFDSample",
          "anchor": "DFDSample",
          "decl": "type DFDSample struct {\n\tBitOffset      uint16\n\tBitLength      uint8 // stored as bit_length - 1 per Khronos DFD v1.3\n\tChannelType    uint8\n\tSamplePosition [4]uint8\n\tSampleLower    uint32\n\tSampleUpper    uint32\n}",
          "doc": "DFDSample describes one sample block inside a KTX2 Basic Data Format Descriptor.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 67,
          "members": [
            {
              "name": "BitOffset",
              "anchor": "DFDSample.BitOffset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BitLength",
              "anchor": "DFDSample.BitLength",
              "kind": "field",
              "doc": "stored as bit_length - 1 per Khronos DFD v1.3"
            },
            {
              "name": "ChannelType",
              "anchor": "DFDSample.ChannelType",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SamplePosition",
              "anchor": "DFDSample.SamplePosition",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SampleLower",
              "anchor": "DFDSample.SampleLower",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SampleUpper",
              "anchor": "DFDSample.SampleUpper",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Format",
          "anchor": "Format",
          "decl": "type Format string",
          "doc": "Format identifies a supported KTX2 pixel, universal, or block-compressed texture format.\n",
          "file": "pkg/tooling/ktx2/format.go",
          "line": 79,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FormatRGBA8",
                  "anchor": "FormatRGBA8"
                },
                {
                  "name": "FormatBC1",
                  "anchor": "FormatBC1"
                },
                {
                  "name": "FormatBC3",
                  "anchor": "FormatBC3"
                },
                {
                  "name": "FormatBC7",
                  "anchor": "FormatBC7"
                },
                {
                  "name": "FormatETC2",
                  "anchor": "FormatETC2"
                },
                {
                  "name": "FormatETC2RGBA",
                  "anchor": "FormatETC2RGBA"
                },
                {
                  "name": "FormatASTC4x4",
                  "anchor": "FormatASTC4x4"
                },
                {
                  "name": "FormatUASTC",
                  "anchor": "FormatUASTC"
                },
                {
                  "name": "FormatETC1S",
                  "anchor": "FormatETC1S"
                }
              ],
              "decl": "const (\n\tFormatRGBA8    Format = \"rgba8\"\n\tFormatBC1      Format = \"bc1\"\n\tFormatBC3      Format = \"bc3\"\n\tFormatBC7      Format = \"bc7\"\n\tFormatETC2     Format = \"etc2\"\n\tFormatETC2RGBA Format = \"etc2-rgba\"\n\tFormatASTC4x4  Format = \"astc4x4\"\n\tFormatUASTC    Format = \"uastc\"\n\tFormatETC1S    Format = \"etc1s\"\n)",
              "doc": "",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 81
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "FormatFromHeaderDFD",
              "anchor": "FormatFromHeaderDFD",
              "decl": "func FormatFromHeaderDFD(h Header, dfd DFD) (format Format, srgb bool, hasAlpha bool, ok bool)",
              "doc": "FormatFromHeaderDFD resolves the texture format, sRGB transfer flag, and alpha presence from a KTX2 header and parsed Data Format Descriptor, including Basis Universal UASTC and ETC1S containers that set Header.VkFormat == 0.\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 199
            },
            {
              "name": "FormatFromVk",
              "anchor": "FormatFromVk",
              "decl": "func FormatFromVk(vk uint32) (Format, bool, bool)",
              "doc": "FormatFromVk maps a supported Vulkan VkFormat ID back to (Format, srgb, ok). For VkFormatUndefined (0), use [FormatFromHeaderDFD] to resolve Basis Universal UASTC or ETC1S from the Data Format Descriptor.\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 163
            },
            {
              "name": "ParseFormat",
              "anchor": "ParseFormat",
              "decl": "func ParseFormat(s string) (Format, error)",
              "doc": "ParseFormat parses a format name as game tex's -format flag and an image sidecar spell it (rgba8, bc1/dxt1, bc3/dxt5 or etc2), the formats the asset pipeline writes. The other formats this package encodes and decodes, such as [FormatBC7], [FormatETC2RGBA], [FormatASTC4x4] and [FormatUASTC], are set through [Options].Format from Go.\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 94
            }
          ],
          "methods": [
            {
              "name": "BlockBytes",
              "anchor": "Format.BlockBytes",
              "recv": "Format",
              "decl": "func (f Format) BlockBytes() int",
              "doc": "BlockBytes returns the byte size of one texel block (4 for RGBA8, 8 for BC1/ETC2, 16 for BC3/BC7/ETC2RGBA/ASTC4x4/UASTC).\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 258
            },
            {
              "name": "BlockDim",
              "anchor": "Format.BlockDim",
              "recv": "Format",
              "decl": "func (f Format) BlockDim() int",
              "doc": "BlockDim returns the square texel block dimension (4 for block formats, 1 for RGBA8).\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 248
            },
            {
              "name": "HasAlpha",
              "anchor": "Format.HasAlpha",
              "recv": "Format",
              "decl": "func (f Format) HasAlpha() bool",
              "doc": "HasAlpha reports whether f carries an alpha channel.\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 238
            },
            {
              "name": "IsBlockCompressed",
              "anchor": "Format.IsBlockCompressed",
              "recv": "Format",
              "decl": "func (f Format) IsBlockCompressed() bool",
              "doc": "IsBlockCompressed reports whether f stores 4x4 texel blocks rather than uncompressed pixels.\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 233
            },
            {
              "name": "LevelByteSize",
              "anchor": "Format.LevelByteSize",
              "recv": "Format",
              "decl": "func (f Format) LevelByteSize(w, h int) int",
              "doc": "LevelByteSize returns the exact uncompressed byte size of a w x h mip level encoded in f.\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 279
            },
            {
              "name": "String",
              "anchor": "Format.String",
              "recv": "Format",
              "decl": "func (f Format) String() string",
              "doc": "String returns the canonical format name.\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 110
            },
            {
              "name": "VkFormat",
              "anchor": "Format.VkFormat",
              "recv": "Format",
              "decl": "func (f Format) VkFormat(srgb bool) (uint32, error)",
              "doc": "VkFormat returns the Vulkan VkFormat ID for f and the requested sRGB color space. Universal formats (FormatUASTC, FormatETC1S) use VkFormatUndefined (0) per KTX2 v2.0, with the pixel representation described in the DFD.\n",
              "file": "pkg/tooling/ktx2/format.go",
              "line": 118
            }
          ]
        },
        {
          "name": "Header",
          "anchor": "Header",
          "decl": "type Header struct {\n\tVkFormat               uint32\n\tTypeSize               uint32\n\tPixelWidth             uint32\n\tPixelHeight            uint32\n\tPixelDepth             uint32\n\tLayerCount             uint32\n\tFaceCount              uint32\n\tLevelCount             uint32\n\tSupercompressionScheme uint32\n\tDFDByteOffset          uint32\n\tDFDByteLength          uint32\n\tKVDByteOffset          uint32\n\tKVDByteLength          uint32\n\tSGDByteOffset          uint64\n\tSGDByteLength          uint64\n}",
          "doc": "Header represents the 80-byte KTX2 v2.0 file header (including index offsets).\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 41,
          "members": [
            {
              "name": "VkFormat",
              "anchor": "Header.VkFormat",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TypeSize",
              "anchor": "Header.TypeSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PixelWidth",
              "anchor": "Header.PixelWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PixelHeight",
              "anchor": "Header.PixelHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PixelDepth",
              "anchor": "Header.PixelDepth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LayerCount",
              "anchor": "Header.LayerCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FaceCount",
              "anchor": "Header.FaceCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LevelCount",
              "anchor": "Header.LevelCount",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SupercompressionScheme",
              "anchor": "Header.SupercompressionScheme",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DFDByteOffset",
              "anchor": "Header.DFDByteOffset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DFDByteLength",
              "anchor": "Header.DFDByteLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KVDByteOffset",
              "anchor": "Header.KVDByteOffset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KVDByteLength",
              "anchor": "Header.KVDByteLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SGDByteOffset",
              "anchor": "Header.SGDByteOffset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SGDByteLength",
              "anchor": "Header.SGDByteLength",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Level",
          "anchor": "Level",
          "decl": "type Level struct {\n\tWidth  int\n\tHeight int\n\tData   []byte\n}",
          "doc": "Level holds one mip level's dimensions and de-supercompressed payload bytes.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 93,
          "members": [
            {
              "name": "Width",
              "anchor": "Level.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Level.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "Level.Data",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LevelIndex",
          "anchor": "LevelIndex",
          "decl": "type LevelIndex struct {\n\tByteOffset             uint64\n\tByteLength             uint64\n\tUncompressedByteLength uint64\n}",
          "doc": "LevelIndex describes one mip level entry in the KTX2 level index array.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 60,
          "members": [
            {
              "name": "ByteOffset",
              "anchor": "LevelIndex.ByteOffset",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ByteLength",
              "anchor": "LevelIndex.ByteLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UncompressedByteLength",
              "anchor": "LevelIndex.UncompressedByteLength",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Format selects pixel, universal, or block compression (default FormatRGBA8).\n\tFormat Format\n\t// Mipmaps generates a complete mipmap chain down to 1x1 when true.\n\tMipmaps bool\n\t// SRGB encodes using the corresponding Vulkan sRGB format, sRGB DFD transfer function, and sRGB-aware linear-light mipmap filtering.\n\tSRGB bool\n\t// Supercompression selects an optional KTX2 supercompression scheme (SupercompressionNone default, or SupercompressionZLIB).\n\tSupercompression uint32\n\t// KVD adds optional key/value metadata pairs to the KTX2 Key/Value Data section. Standard keys KTXorientation and KTXwriter are populated automatically if absent.\n\tKVD map[string]string\n}",
          "doc": "Options configures KTX2 texture encoding.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 27,
          "members": [
            {
              "name": "Format",
              "anchor": "Options.Format",
              "kind": "field",
              "doc": "Format selects pixel, universal, or block compression (default FormatRGBA8)."
            },
            {
              "name": "Mipmaps",
              "anchor": "Options.Mipmaps",
              "kind": "field",
              "doc": "Mipmaps generates a complete mipmap chain down to 1x1 when true."
            },
            {
              "name": "SRGB",
              "anchor": "Options.SRGB",
              "kind": "field",
              "doc": "SRGB encodes using the corresponding Vulkan sRGB format, sRGB DFD transfer function, and sRGB-aware linear-light mipmap filtering."
            },
            {
              "name": "Supercompression",
              "anchor": "Options.Supercompression",
              "kind": "field",
              "doc": "Supercompression selects an optional KTX2 supercompression scheme (SupercompressionNone default, or SupercompressionZLIB)."
            },
            {
              "name": "KVD",
              "anchor": "Options.KVD",
              "kind": "field",
              "doc": "KVD adds optional key/value metadata pairs to the KTX2 Key/Value Data section. Standard keys KTXorientation and KTXwriter are populated automatically if absent."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Texture",
          "anchor": "Texture",
          "decl": "type Texture struct {\n\tHeader   Header\n\tDFD      DFD\n\tKVD      map[string][]byte\n\tFormat   Format\n\tSRGB     bool\n\tHasAlpha bool\n\tWidth    int\n\tHeight   int\n\tLevels   []Level\n\tSGD      []byte\n\t// contains filtered or unexported fields\n}",
          "doc": "Texture holds a fully parsed and validated 2D KTX2 v2.0 container.\n",
          "file": "pkg/tooling/ktx2/container.go",
          "line": 100,
          "members": [
            {
              "name": "Header",
              "anchor": "Texture.Header",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "DFD",
              "anchor": "Texture.DFD",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "KVD",
              "anchor": "Texture.KVD",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Format",
              "anchor": "Texture.Format",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SRGB",
              "anchor": "Texture.SRGB",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HasAlpha",
              "anchor": "Texture.HasAlpha",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "Texture.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "Texture.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Levels",
              "anchor": "Texture.Levels",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SGD",
              "anchor": "Texture.SGD",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Decode",
              "anchor": "Decode",
              "decl": "func Decode(data []byte) (*Texture, error)",
              "doc": "Decode parses, validates, and de-supercompresses a 2D KTX2 v2.0 container. Supports SupercompressionNone (0), SupercompressionBasisLZ (1), SupercompressionZstandard (2), and SupercompressionZLIB (3) across RGBA8, BC1, BC3, BC7, ETC2 RGB8/RGBA8, ASTC 4x4, Basis Universal UASTC 4x4, and BasisLZ/ETC1S.\n",
              "file": "pkg/tooling/ktx2/container.go",
              "line": 706
            }
          ],
          "methods": [
            {
              "name": "DecodeLevelRGBA",
              "anchor": "Texture.DecodeLevelRGBA",
              "recv": "*Texture",
              "decl": "func (t *Texture) DecodeLevelRGBA(level int) (*image.NRGBA, error)",
              "doc": "DecodeLevelRGBA decodes mip level (0 = base) of t into *image.NRGBA.\n",
              "file": "pkg/tooling/ktx2/container.go",
              "line": 845
            },
            {
              "name": "Transcode",
              "anchor": "Texture.Transcode",
              "recv": "*Texture",
              "decl": "func (t *Texture) Transcode(target Format) ([]Level, error)",
              "doc": "Transcode converts every mip level of t to target format. When t.Format already equals target (and target is a concrete GPU/pixel format), level payloads are cloned directly without pixel decoding or re-encoding.\n",
              "file": "pkg/tooling/ktx2/container.go",
              "line": 860
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/library",
      "name": "library",
      "dir": "pkg/tooling/library",
      "page": "pkg/tooling/library",
      "synopsis": "Package library finds shared asset packs, editor plugin packs and templates in a library and installs them into a game project.",
      "doc": "Package library finds shared asset packs, editor plugin packs and templates in a library and installs them into a game project.\n\n# The Index\n\nA library is a text index anyone can add a pack to with a pull request: a versioned YAML file (index.yaml, IndexFileName) listing each pack's name, kind, version, description, tags, license, source and digest. ParseIndex refuses unknown fields, other versions, duplicate names and sources that leave the library, and EncodeIndex writes the deterministic form ParseIndex reads back unchanged. Index.Search finds packs by kind and by words in their names, descriptions and tags.\n\n# Packs\n\nA pack is a directory holding a manifest, pack.yaml (ManifestFileName), and the files it lists. The manifest names the pack, gives its kind (asset, plugin or template, as project.PackKinds names them), its version and license, the project directory its files go to (into, by default packs/<name>), and the references installing it adds to game.yaml: autoload scenes and resources, and, for a plugin pack, the editor plugins it turns on. A pack's digest (Digest) is the SHA-256 of a sha256sum-style listing of its files, pack.yaml included, so the index pins the exact bytes of every file whatever form they were fetched in.\n\n# Fetching\n\nOpen reads an index from a directory, a file or an http(s) URL, and Library.Fetch fetches a pack from its source, relative to the index or an absolute URL, file by file as its manifest lists them, and refuses one whose digest, name, kind or version differs from its index entry. Plain http is accepted only for a loopback host, for the index and for a pack's absolute source alike; anything else must use https, every file is limited to MaxFileSize bytes, and without a Library.Client a request gives up on a server that stalls.\n\n# Installing\n\nPlanInstall works out what installing a fetched pack does to a project, without writing anything: the files to write and remove, and the project.File afterwards, which records the pack under packs with the files it wrote and the references it added. Installing a pack again updates it, replacing its files and references with the new version's; a file that is already in the project and is not the pack's is refused rather than overwritten. A pack's files and the directory they go to must stay inside the project, outside hidden directories such as .github, with names every platform can hold and no two differing only in case, and may not be Go source or another file the Go toolchain builds. PlanRemove undoes an install. Change.Apply then writes the files and game.yaml, restoring what it changed when a write fails. Install and Remove do both for a project directory, and the game library command and the scene editor's library panel run them.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultIndex",
              "anchor": "DefaultIndex"
            }
          ],
          "decl": "const DefaultIndex = \"https://raw.githubusercontent.com/nsgo-dev/game/main/library/index.yaml\"",
          "doc": "DefaultIndex is the shared library's index, in this repository's library directory, which the game library command reads unless told otherwise.\n",
          "file": "pkg/tooling/library/index.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "IndexFileName",
              "anchor": "IndexFileName"
            }
          ],
          "decl": "const IndexFileName = \"index.yaml\"",
          "doc": "IndexFileName is the index's file name, which Open reads from a directory.\n",
          "file": "pkg/tooling/library/index.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "IndexVersion",
              "anchor": "IndexVersion"
            }
          ],
          "decl": "const IndexVersion = 1",
          "doc": "IndexVersion is the index schema version this package reads and writes.\n",
          "file": "pkg/tooling/library/index.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "ManifestFileName",
              "anchor": "ManifestFileName"
            }
          ],
          "decl": "const ManifestFileName = \"pack.yaml\"",
          "doc": "ManifestFileName is a pack's manifest, at the root of its directory.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "ManifestVersion",
              "anchor": "ManifestVersion"
            }
          ],
          "decl": "const ManifestVersion = 1",
          "doc": "ManifestVersion is the manifest schema version this package reads and writes.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 22
        },
        {
          "idents": [
            {
              "name": "MaxFileSize",
              "anchor": "MaxFileSize"
            }
          ],
          "decl": "const MaxFileSize = 64 << 20",
          "doc": "MaxFileSize is the largest file a pack may hold, in bytes.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "MaxFiles",
              "anchor": "MaxFiles"
            }
          ],
          "decl": "const MaxFiles = 4096",
          "doc": "MaxFiles is the most files a pack's manifest may list.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 28
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "DefaultDir",
          "anchor": "DefaultDir",
          "decl": "func DefaultDir(name string) string",
          "doc": "DefaultDir is the project directory a pack called name installs into when neither its manifest nor the installer names one.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 63
        },
        {
          "name": "Digest",
          "anchor": "Digest",
          "decl": "func Digest(files map[string][]byte) string",
          "doc": "Digest returns the digest of a pack's files: the SHA-256, in lower-case hexadecimal, of one line per file sorted by path, each the file's own SHA-256 in lower-case hexadecimal, two spaces and its slash-separated path, ended by a newline. The listing is what sha256sum prints for the files named in byte order, so the digest can be checked without this package; the game library digest command prints it for a pack's directory.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 276
        },
        {
          "name": "EncodeIndex",
          "anchor": "EncodeIndex",
          "decl": "func EncodeIndex(idx *Index) ([]byte, error)",
          "doc": "EncodeIndex validates idx and serializes it as deterministic 2-space YAML that ParseIndex reads back unchanged.\n",
          "file": "pkg/tooling/library/index.go",
          "line": 66
        },
        {
          "name": "EncodeManifest",
          "anchor": "EncodeManifest",
          "decl": "func EncodeManifest(m *Manifest) ([]byte, error)",
          "doc": "EncodeManifest validates m and serializes it as deterministic 2-space YAML that ParseManifest reads back unchanged.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 78
        },
        {
          "name": "ValidateIndex",
          "anchor": "ValidateIndex",
          "decl": "func ValidateIndex(idx *Index) error",
          "doc": "ValidateIndex checks that idx conforms to the version 1 schema.\n",
          "file": "pkg/tooling/library/index.go",
          "line": 74
        },
        {
          "name": "ValidateManifest",
          "anchor": "ValidateManifest",
          "decl": "func ValidateManifest(m *Manifest) error",
          "doc": "ValidateManifest checks that m conforms to the version 1 schema.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 86
        }
      ],
      "types": [
        {
          "name": "Autoload",
          "anchor": "Autoload",
          "decl": "type Autoload struct {\n\t// Scenes are scene files to autoload; each path is one of Manifest.Files, ending in .yaml or .yml.\n\tScenes []project.Entry `yaml:\"scenes,omitempty\"`\n\t// Resources are other files to autoload; each path is one of Manifest.Files.\n\tResources []project.Entry `yaml:\"resources,omitempty\"`\n}",
          "doc": "Autoload lists the pack files installing a pack autoloads.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 55,
          "members": [
            {
              "name": "Scenes",
              "anchor": "Autoload.Scenes",
              "kind": "field",
              "doc": "Scenes are scene files to autoload; each path is one of Manifest.Files, ending in .yaml or .yml."
            },
            {
              "name": "Resources",
              "anchor": "Autoload.Resources",
              "kind": "field",
              "doc": "Resources are other files to autoload; each path is one of Manifest.Files."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Change",
          "anchor": "Change",
          "decl": "type Change struct {\n\t// Project is the project file afterwards.\n\tProject *project.File\n\t// Pack is the pack's record: the one Project holds after an install, or the one it held before a removal.\n\tPack project.Pack\n\t// Write maps each file to write, by its slash-separated path from the project root, to its content.\n\tWrite map[string][]byte\n\t// Remove lists the files to remove, by their slash-separated paths from the project root, sorted.\n\tRemove []string\n\t// contains filtered or unexported fields\n}",
          "doc": "Change is what installing or removing a pack does to a project, worked out by PlanInstall or PlanRemove and carried out by Apply.\n",
          "file": "pkg/tooling/library/install.go",
          "line": 18,
          "members": [
            {
              "name": "Project",
              "anchor": "Change.Project",
              "kind": "field",
              "doc": "Project is the project file afterwards."
            },
            {
              "name": "Pack",
              "anchor": "Change.Pack",
              "kind": "field",
              "doc": "Pack is the pack's record: the one Project holds after an install, or the one it held before a removal."
            },
            {
              "name": "Write",
              "anchor": "Change.Write",
              "kind": "field",
              "doc": "Write maps each file to write, by its slash-separated path from the project root, to its content."
            },
            {
              "name": "Remove",
              "anchor": "Change.Remove",
              "kind": "field",
              "doc": "Remove lists the files to remove, by their slash-separated paths from the project root, sorted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Install",
              "anchor": "Install",
              "decl": "func Install(projectDir string, p *Pack, dir string) (*Change, error)",
              "doc": "Install installs p into the Go project in projectDir, whose game.yaml it reads, as PlanInstall and Change.Apply describe, and returns what it did. An install that changes nothing, such as the same release of a pack installed again, writes nothing.\n",
              "file": "pkg/tooling/library/install.go",
              "line": 480
            },
            {
              "name": "PlanInstall",
              "anchor": "PlanInstall",
              "decl": "func PlanInstall(fsys fs.FS, f *project.File, p *Pack, dir string) (*Change, error)",
              "doc": "PlanInstall works out what installing p into the project at the root of fsys, whose project file is f, does, without writing anything. The pack's files go under dir; when dir is empty, an update keeps them in the directory the installed version went to, and a first install puts them in the manifest's into or DefaultDir. The directory must stay inside the project, and none of its elements may be hidden (start with '.') or be a name some platform cannot hold.\n\nWhen f already records the pack, the install updates it: the files of the old version the new one lacks are removed, the others replaced, and the autoload entries and plugins it added are replaced by the new version's, keeping their places. A file the project already has is refused unless the old version wrote it or it has the content the pack would write, and so is a file another pack wrote; an autoload scene or resource of the pack's name that the project already has is refused too. A plugin the project already turns on is left as it is and not recorded as the pack's.\n\nf is not changed; the returned Change's Project is a validated copy.\n",
              "file": "pkg/tooling/library/install.go",
              "line": 42
            },
            {
              "name": "PlanRemove",
              "anchor": "PlanRemove",
              "decl": "func PlanRemove(fsys fs.FS, f *project.File, name string) (*Change, error)",
              "doc": "PlanRemove works out what removing the installed pack called name from the project at the root of fsys, whose project file is f, does, without writing anything: its files are removed, edited or not, and so are the autoload entries and editor plugins it added. A main scene that was the pack's is unset.\n",
              "file": "pkg/tooling/library/install.go",
              "line": 157
            },
            {
              "name": "Remove",
              "anchor": "Remove",
              "decl": "func Remove(projectDir, name string) (*Change, error)",
              "doc": "Remove removes the installed pack called name from the project in projectDir, as PlanRemove and Change.Apply describe, and returns what it did.\n",
              "file": "pkg/tooling/library/install.go",
              "line": 493
            }
          ],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Change.Apply",
              "recv": "*Change",
              "decl": "func (c *Change) Apply(projectDir string) error",
              "doc": "Apply carries out c in the project directory projectDir: it removes and writes c's files, deleting the directories a removal leaves empty inside the pack's directory (and packs, for a pack in its DefaultDir), then writes c.Project to game.yaml in the canonical form project.Encode writes, which keeps no comments. When a step fails, it restores the files it had changed and returns the error.\n",
              "file": "pkg/tooling/library/install.go",
              "line": 326
            },
            {
              "name": "ApplyFiles",
              "anchor": "Change.ApplyFiles",
              "recv": "*Change",
              "decl": "func (c *Change) ApplyFiles(projectDir string) (undo func() error, err error)",
              "doc": "ApplyFiles removes and writes c's files in the project directory projectDir, leaving game.yaml to the caller, such as an editor that saves its open project. It removes first, so that an update may put a file where the old version had a directory or the other way round, and deletes the directories a removal leaves empty inside the pack's directory (and packs, for a pack in its DefaultDir), never above it. It returns undo, which restores every file it changed, for when saving the project then fails. When ApplyFiles itself fails, it has already restored them.\n",
              "file": "pkg/tooling/library/install.go",
              "line": 347
            },
            {
              "name": "NoOp",
              "anchor": "Change.NoOp",
              "recv": "*Change",
              "decl": "func (c *Change) NoOp() bool",
              "doc": "NoOp reports whether applying c would change nothing: no file to write or remove, and the same project file.\n",
              "file": "pkg/tooling/library/install.go",
              "line": 35
            }
          ]
        },
        {
          "name": "Entry",
          "anchor": "Entry",
          "decl": "type Entry struct {\n\t// Name identifies the pack, as project.ValidatePackName accepts it; it is unique in the index and equals the name in the pack's manifest.\n\tName string `yaml:\"name\"`\n\t// Kind is one of project.PackKinds and equals the manifest's.\n\tKind string `yaml:\"kind\"`\n\t// PackVersion is the version the index offers, which equals the manifest's.\n\tPackVersion string `yaml:\"packVersion\"`\n\t// Description says in one line what the pack holds.\n\tDescription string `yaml:\"description\"`\n\t// Tags are lower-case words a search also matches, such as 2d or tiles.\n\tTags []string `yaml:\"tags,omitempty,flow\"`\n\t// License is the license of the pack's files, as an SPDX identifier such as CC0-1.0 or MIT.\n\tLicense string `yaml:\"license\"`\n\t// Source is the directory holding the pack's pack.yaml: a slash-separated path relative to the index's directory that stays inside it, or an absolute https URL.\n\tSource string `yaml:\"source\"`\n\t// SHA256 is the pack's digest (Digest), 64 lower-case hexadecimal digits; a fetched pack whose digest differs is refused.\n\tSHA256 string `yaml:\"sha256\"`\n}",
          "doc": "Entry is one pack of a library.\n",
          "file": "pkg/tooling/library/index.go",
          "line": 34,
          "members": [
            {
              "name": "Name",
              "anchor": "Entry.Name",
              "kind": "field",
              "doc": "Name identifies the pack, as project.ValidatePackName accepts it; it is unique in the index and equals the name in the pack's manifest."
            },
            {
              "name": "Kind",
              "anchor": "Entry.Kind",
              "kind": "field",
              "doc": "Kind is one of project.PackKinds and equals the manifest's."
            },
            {
              "name": "PackVersion",
              "anchor": "Entry.PackVersion",
              "kind": "field",
              "doc": "PackVersion is the version the index offers, which equals the manifest's."
            },
            {
              "name": "Description",
              "anchor": "Entry.Description",
              "kind": "field",
              "doc": "Description says in one line what the pack holds."
            },
            {
              "name": "Tags",
              "anchor": "Entry.Tags",
              "kind": "field",
              "doc": "Tags are lower-case words a search also matches, such as 2d or tiles."
            },
            {
              "name": "License",
              "anchor": "Entry.License",
              "kind": "field",
              "doc": "License is the license of the pack's files, as an SPDX identifier such as CC0-1.0 or MIT."
            },
            {
              "name": "Source",
              "anchor": "Entry.Source",
              "kind": "field",
              "doc": "Source is the directory holding the pack's pack.yaml: a slash-separated path relative to the index's directory that stays inside it, or an absolute https URL."
            },
            {
              "name": "SHA256",
              "anchor": "Entry.SHA256",
              "kind": "field",
              "doc": "SHA256 is the pack's digest (Digest), 64 lower-case hexadecimal digits; a fetched pack whose digest differs is refused."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Index",
          "anchor": "Index",
          "decl": "type Index struct {\n\t// Version is the schema version; it must equal IndexVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Packs are the library's packs, in the order the index lists them.\n\tPacks []Entry `yaml:\"packs,omitempty\"`\n}",
          "doc": "Index is a library's versioned index file.\n",
          "file": "pkg/tooling/library/index.go",
          "line": 26,
          "members": [
            {
              "name": "Version",
              "anchor": "Index.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal IndexVersion (1)."
            },
            {
              "name": "Packs",
              "anchor": "Index.Packs",
              "kind": "field",
              "doc": "Packs are the library's packs, in the order the index lists them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseIndex",
              "anchor": "ParseIndex",
              "decl": "func ParseIndex(data []byte) (*Index, error)",
              "doc": "ParseIndex decodes a YAML index and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/tooling/library/index.go",
              "line": 54
            }
          ],
          "methods": [
            {
              "name": "Find",
              "anchor": "Index.Find",
              "recv": "*Index",
              "decl": "func (idx *Index) Find(name string) (Entry, bool)",
              "doc": "Find returns the entry called name, or false.\n",
              "file": "pkg/tooling/library/index.go",
              "line": 204
            },
            {
              "name": "Search",
              "anchor": "Index.Search",
              "recv": "*Index",
              "decl": "func (idx *Index) Search(kind, query string) []Entry",
              "doc": "Search returns the entries of kind, or of every kind when kind is empty, whose name, description or tags contain every word of query, ignoring case, sorted by name. An empty query matches every entry.\n",
              "file": "pkg/tooling/library/index.go",
              "line": 187
            }
          ]
        },
        {
          "name": "Library",
          "anchor": "Library",
          "decl": "type Library struct {\n\t// Index is the library's parsed index.\n\tIndex *Index\n\t// Location is where the index was read from: a URL, a file path, or the name of the index in an fs.FS.\n\tLocation string\n\t// Client fetches http(s) indexes and packs; nil uses a client that gives up on a server that does not connect within 30 seconds or answer within a minute, and on any one file after 10 minutes.\n\tClient *http.Client\n\t// contains filtered or unexported fields\n}",
          "doc": "Library is an index together with where it was read from, so that its entries' relative sources resolve.\n",
          "file": "pkg/tooling/library/library.go",
          "line": 18,
          "members": [
            {
              "name": "Index",
              "anchor": "Library.Index",
              "kind": "field",
              "doc": "Index is the library's parsed index."
            },
            {
              "name": "Location",
              "anchor": "Library.Location",
              "kind": "field",
              "doc": "Location is where the index was read from: a URL, a file path, or the name of the index in an fs.FS."
            },
            {
              "name": "Client",
              "anchor": "Library.Client",
              "kind": "field",
              "doc": "Client fetches http(s) indexes and packs; nil uses a client that gives up on a server that does not connect within 30 seconds or answer within a minute, and on any one file after 10 minutes."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Open",
              "anchor": "Open",
              "decl": "func Open(ctx context.Context, location string) (*Library, error)",
              "doc": "Open reads the index at location: an http(s) URL of an index file, a local index file, or a local directory holding index.yaml. Plain http is accepted only for a loopback host, such as a test server's.\n",
              "file": "pkg/tooling/library/library.go",
              "line": 34
            },
            {
              "name": "OpenFS",
              "anchor": "OpenFS",
              "decl": "func OpenFS(fsys fs.FS, name string) (*Library, error)",
              "doc": "OpenFS reads the index called name in fsys, whose relative sources resolve from name's directory in fsys.\n",
              "file": "pkg/tooling/library/library.go",
              "line": 63
            }
          ],
          "methods": [
            {
              "name": "Fetch",
              "anchor": "Library.Fetch",
              "recv": "*Library",
              "decl": "func (l *Library) Fetch(ctx context.Context, name string) (*Pack, error)",
              "doc": "Fetch fetches the pack called name from its source and checks it against its index entry: its digest, name, kind and version must all be the entry's.\n",
              "file": "pkg/tooling/library/library.go",
              "line": 89
            },
            {
              "name": "Remote",
              "anchor": "Library.Remote",
              "recv": "*Library",
              "decl": "func (l *Library) Remote() bool",
              "doc": "Remote reports whether fetching from l, or from any of its packs, may reach the network, so that a caller with a user interface fetches off its event loop.\n",
              "file": "pkg/tooling/library/library.go",
              "line": 76
            }
          ]
        },
        {
          "name": "Manifest",
          "anchor": "Manifest",
          "decl": "type Manifest struct {\n\t// Version is the schema version; it must equal ManifestVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Name identifies the pack, as project.ValidatePackName accepts it.\n\tName string `yaml:\"name\"`\n\t// Kind is one of project.PackKinds.\n\tKind string `yaml:\"kind\"`\n\t// PackVersion is the pack's own version, such as 1.2.0.\n\tPackVersion string `yaml:\"packVersion\"`\n\t// Description says in one line what the pack holds.\n\tDescription string `yaml:\"description\"`\n\t// License is the license of the pack's files, as an SPDX identifier such as CC0-1.0.\n\tLicense string `yaml:\"license\"`\n\t// Into is the slash-separated project directory the pack's files are written to; empty is DefaultDir(Name).\n\tInto string `yaml:\"into,omitempty\"`\n\t// Files are the slash-separated paths of the pack's files relative to its directory, pack.yaml aside; no path may be another's directory.\n\tFiles []string `yaml:\"files,omitempty\"`\n\t// Autoload lists the pack's files that installing it adds to game.yaml's autoload section; nil adds none.\n\tAutoload *Autoload `yaml:\"autoload,omitempty\"`\n\t// Plugins names the editor plugins a plugin pack turns on under game.yaml's editor.plugins; a plugin pack names at least one, and the other kinds none.\n\tPlugins []string `yaml:\"plugins,omitempty,flow\"`\n}",
          "doc": "Manifest is a pack's versioned pack.yaml.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 31,
          "members": [
            {
              "name": "Version",
              "anchor": "Manifest.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal ManifestVersion (1)."
            },
            {
              "name": "Name",
              "anchor": "Manifest.Name",
              "kind": "field",
              "doc": "Name identifies the pack, as project.ValidatePackName accepts it."
            },
            {
              "name": "Kind",
              "anchor": "Manifest.Kind",
              "kind": "field",
              "doc": "Kind is one of project.PackKinds."
            },
            {
              "name": "PackVersion",
              "anchor": "Manifest.PackVersion",
              "kind": "field",
              "doc": "PackVersion is the pack's own version, such as 1.2.0."
            },
            {
              "name": "Description",
              "anchor": "Manifest.Description",
              "kind": "field",
              "doc": "Description says in one line what the pack holds."
            },
            {
              "name": "License",
              "anchor": "Manifest.License",
              "kind": "field",
              "doc": "License is the license of the pack's files, as an SPDX identifier such as CC0-1.0."
            },
            {
              "name": "Into",
              "anchor": "Manifest.Into",
              "kind": "field",
              "doc": "Into is the slash-separated project directory the pack's files are written to; empty is DefaultDir(Name)."
            },
            {
              "name": "Files",
              "anchor": "Manifest.Files",
              "kind": "field",
              "doc": "Files are the slash-separated paths of the pack's files relative to its directory, pack.yaml aside; no path may be another's directory."
            },
            {
              "name": "Autoload",
              "anchor": "Manifest.Autoload",
              "kind": "field",
              "doc": "Autoload lists the pack's files that installing it adds to game.yaml's autoload section; nil adds none."
            },
            {
              "name": "Plugins",
              "anchor": "Manifest.Plugins",
              "kind": "field",
              "doc": "Plugins names the editor plugins a plugin pack turns on under game.yaml's editor.plugins; a plugin pack names at least one, and the other kinds none."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseManifest",
              "anchor": "ParseManifest",
              "decl": "func ParseManifest(data []byte) (*Manifest, error)",
              "doc": "ParseManifest decodes a YAML pack manifest and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/tooling/library/pack.go",
              "line": 66
            }
          ],
          "methods": []
        },
        {
          "name": "Pack",
          "anchor": "Pack",
          "decl": "type Pack struct {\n\t// Manifest is the parsed pack.yaml.\n\tManifest *Manifest\n\t// Files maps each file's slash-separated path in the pack to its content, pack.yaml included.\n\tFiles map[string][]byte\n}",
          "doc": "Pack is a pack read into memory: its manifest and the content of every file it holds.\n",
          "file": "pkg/tooling/library/pack.go",
          "line": 255,
          "members": [
            {
              "name": "Manifest",
              "anchor": "Pack.Manifest",
              "kind": "field",
              "doc": "Manifest is the parsed pack.yaml."
            },
            {
              "name": "Files",
              "anchor": "Pack.Files",
              "kind": "field",
              "doc": "Files maps each file's slash-separated path in the pack to its content, pack.yaml included."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ReadPack",
              "anchor": "ReadPack",
              "decl": "func ReadPack(fsys fs.FS, dir string) (*Pack, error)",
              "doc": "ReadPack reads the pack whose directory is dir in fsys: its pack.yaml and every file the manifest lists. A file the manifest does not list is not part of the pack.\n",
              "file": "pkg/tooling/library/pack.go",
              "line": 291
            }
          ],
          "methods": [
            {
              "name": "Digest",
              "anchor": "Pack.Digest",
              "recv": "*Pack",
              "decl": "func (p *Pack) Digest() string",
              "doc": "Digest returns p's digest, as the package function Digest computes it from p.Files.\n",
              "file": "pkg/tooling/library/pack.go",
              "line": 273
            },
            {
              "name": "Names",
              "anchor": "Pack.Names",
              "recv": "*Pack",
              "decl": "func (p *Pack) Names() []string",
              "doc": "Names returns the paths of p's files, pack.yaml included, sorted.\n",
              "file": "pkg/tooling/library/pack.go",
              "line": 263
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/manifest",
      "name": "manifest",
      "dir": "pkg/tooling/manifest",
      "page": "pkg/tooling/manifest",
      "synopsis": "Package manifest walks an assets directory and generates a typed Go source file referencing every asset, so missing or removed assets fail the build at compile time.",
      "doc": "Package manifest walks an assets directory and generates a typed Go source file referencing every asset, so missing or removed assets fail the build at compile time.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "Generate",
          "anchor": "Generate",
          "decl": "func Generate(dir string, opts Options) ([]byte, error)",
          "doc": "Generate scans dir and returns a gofmt-formatted Go source file declaring typed references for every asset in dir.\n",
          "file": "pkg/tooling/manifest/manifest.go",
          "line": 146
        },
        {
          "name": "Verify",
          "anchor": "Verify",
          "decl": "func Verify(dir string, refs []string) error",
          "doc": "Verify checks that every asset reference in refs exists as a regular file under dir.\nEach ref may be a relative path (\"hero.png\") or an \"asset:\" URI (\"asset:hero.png\").\n",
          "file": "pkg/tooling/manifest/manifest.go",
          "line": 177
        },
        {
          "name": "WriteFile",
          "anchor": "WriteFile",
          "decl": "func WriteFile(dir, outPath string, opts Options) error",
          "doc": "WriteFile generates the manifest for dir and writes it to outPath, creating parent directories if needed.\n",
          "file": "pkg/tooling/manifest/manifest.go",
          "line": 159
        }
      ],
      "types": [
        {
          "name": "Entry",
          "anchor": "Entry",
          "decl": "type Entry struct {\n\t// Path is the asset's slash-separated path relative to the scanned directory.\n\tPath string\n\t// URI is the asset's URI with the configured prefix, such as \"asset:hero.png\".\n\tURI string\n\t// Ident is the exported Go identifier generated for this asset, such as \"ImageHero\".\n\tIdent string\n\t// Kind is the asset's classified type.\n\tKind Kind\n}",
          "doc": "Entry is one asset file discovered in the assets directory.\n",
          "file": "pkg/tooling/manifest/manifest.go",
          "line": 57,
          "members": [
            {
              "name": "Path",
              "anchor": "Entry.Path",
              "kind": "field",
              "doc": "Path is the asset's slash-separated path relative to the scanned directory."
            },
            {
              "name": "URI",
              "anchor": "Entry.URI",
              "kind": "field",
              "doc": "URI is the asset's URI with the configured prefix, such as \"asset:hero.png\"."
            },
            {
              "name": "Ident",
              "anchor": "Entry.Ident",
              "kind": "field",
              "doc": "Ident is the exported Go identifier generated for this asset, such as \"ImageHero\"."
            },
            {
              "name": "Kind",
              "anchor": "Entry.Kind",
              "kind": "field",
              "doc": "Kind is the asset's classified type."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Scan",
              "anchor": "Scan",
              "decl": "func Scan(dir string, opts Options) ([]Entry, error)",
              "doc": "Scan walks dir deterministically, skipping dot-prefixed entries, Go source files and import settings sidecars (files named *.import.yaml, as package importsettings names them), and returns the discovered asset entries sorted by Path with unique Go identifiers.\n",
              "file": "pkg/tooling/manifest/manifest.go",
              "line": 92
            }
          ],
          "methods": []
        },
        {
          "name": "Kind",
          "anchor": "Kind",
          "decl": "type Kind int",
          "doc": "Kind classifies a discovered asset file by its extension.\n",
          "file": "pkg/tooling/manifest/manifest.go",
          "line": 29,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "KindOther",
                  "anchor": "KindOther"
                },
                {
                  "name": "KindImage",
                  "anchor": "KindImage"
                },
                {
                  "name": "KindAudio",
                  "anchor": "KindAudio"
                },
                {
                  "name": "KindMap",
                  "anchor": "KindMap"
                }
              ],
              "decl": "const (\n\t// KindOther is any asset that is not an image, audio or map file.\n\tKindOther Kind = iota\n\t// KindImage is an image file exposed as a core.ImageSource.\n\tKindImage\n\t// KindAudio is an audio file exposed as an audio.Source.\n\tKindAudio\n\t// KindMap is a tilemap file (.tmj, .tmx, .tsj, .tsx).\n\tKindMap\n)",
              "doc": "",
              "file": "pkg/tooling/manifest/manifest.go",
              "line": 31
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Kind.String",
              "recv": "Kind",
              "decl": "func (k Kind) String() string",
              "doc": "String returns the kind's name.\n",
              "file": "pkg/tooling/manifest/manifest.go",
              "line": 43
            }
          ]
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Package is the generated Go file's package name (\"assets\" when empty).\n\tPackage string\n\t// Prefix is prepended to each asset's relative path to form its URI (\"asset:\" when empty).\n\tPrefix string\n\t// Embed emits //go:embed directives so asset bytes are compiled into the binary instead of referencing URIs.\n\tEmbed bool\n\t// EmbedDir is an optional slash-separated directory prefix prepended to each //go:embed pattern, for when the generated file lives in a parent of the assets directory.\n\tEmbedDir string\n\t// Header is the comment line at the top of the generated file (a standard generated-file notice when empty).\n\tHeader string\n}",
          "doc": "Options configures asset scanning and Go source generation.\n",
          "file": "pkg/tooling/manifest/manifest.go",
          "line": 69,
          "members": [
            {
              "name": "Package",
              "anchor": "Options.Package",
              "kind": "field",
              "doc": "Package is the generated Go file's package name (\"assets\" when empty)."
            },
            {
              "name": "Prefix",
              "anchor": "Options.Prefix",
              "kind": "field",
              "doc": "Prefix is prepended to each asset's relative path to form its URI (\"asset:\" when empty)."
            },
            {
              "name": "Embed",
              "anchor": "Options.Embed",
              "kind": "field",
              "doc": "Embed emits //go:embed directives so asset bytes are compiled into the binary instead of referencing URIs."
            },
            {
              "name": "EmbedDir",
              "anchor": "Options.EmbedDir",
              "kind": "field",
              "doc": "EmbedDir is an optional slash-separated directory prefix prepended to each //go:embed pattern, for when the generated file lives in a parent of the assets directory."
            },
            {
              "name": "Header",
              "anchor": "Options.Header",
              "kind": "field",
              "doc": "Header is the comment line at the top of the generated file (a standard generated-file notice when empty)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultOptions",
              "anchor": "DefaultOptions",
              "decl": "func DefaultOptions() Options",
              "doc": "DefaultOptions returns Options with the generator's defaults: package \"assets\", URI prefix \"asset:\" and URI mode.\n",
              "file": "pkg/tooling/manifest/manifest.go",
              "line": 83
            }
          ],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tooling/pack",
      "name": "pack",
      "dir": "pkg/tooling/pack",
      "page": "pkg/tooling/pack",
      "synopsis": "Package pack packs a folder of PNG images into sprite atlas pages and TexturePacker JSON-hash metadata that sprite.LoadAtlas reads directly.",
      "doc": "Package pack packs a folder of PNG images into sprite atlas pages and TexturePacker JSON-hash metadata that sprite.LoadAtlas reads directly.\n",
      "consts": [],
      "vars": [],
      "funcs": [
        {
          "name": "ScanDir",
          "anchor": "ScanDir",
          "decl": "func ScanDir(dir string) ([]string, error)",
          "doc": "ScanDir returns the PNG images PackDir packs from dir: the slash-separated paths relative to dir of every file with a .png extension in any letter case, sorted, skipping files and directories whose names start with a dot. It fails when dir is not a directory or holds no PNG image.\n",
          "file": "pkg/tooling/pack/pack.go",
          "line": 154
        }
      ],
      "types": [
        {
          "name": "Frame",
          "anchor": "Frame",
          "decl": "type Frame struct {\n\t// Name is the frame's key in the atlas JSON.\n\tName string\n\t// Frame is the frame's pixel rectangle inside the atlas page image, excluding any extrusion or padding.\n\tFrame image.Rectangle\n\t// SpriteSourceSize is where the trimmed content sits inside the untrimmed source image.\n\tSpriteSourceSize image.Rectangle\n\t// SourceSize is the untrimmed source image's pixel dimensions.\n\tSourceSize image.Point\n\t// Trimmed reports whether transparent borders were removed from the source image.\n\tTrimmed bool\n\t// Page is the zero-based page index holding this frame.\n\tPage int\n\t// Pivot is the normalized frame pivot when set on the input, or nil when omitted.\n\tPivot *Pivot\n}",
          "doc": "Frame describes where one input image landed in a packed atlas page.\n",
          "file": "pkg/tooling/pack/pack.go",
          "line": 75,
          "members": [
            {
              "name": "Name",
              "anchor": "Frame.Name",
              "kind": "field",
              "doc": "Name is the frame's key in the atlas JSON."
            },
            {
              "name": "Frame",
              "anchor": "Frame.Frame",
              "kind": "field",
              "doc": "Frame is the frame's pixel rectangle inside the atlas page image, excluding any extrusion or padding."
            },
            {
              "name": "SpriteSourceSize",
              "anchor": "Frame.SpriteSourceSize",
              "kind": "field",
              "doc": "SpriteSourceSize is where the trimmed content sits inside the untrimmed source image."
            },
            {
              "name": "SourceSize",
              "anchor": "Frame.SourceSize",
              "kind": "field",
              "doc": "SourceSize is the untrimmed source image's pixel dimensions."
            },
            {
              "name": "Trimmed",
              "anchor": "Frame.Trimmed",
              "kind": "field",
              "doc": "Trimmed reports whether transparent borders were removed from the source image."
            },
            {
              "name": "Page",
              "anchor": "Frame.Page",
              "kind": "field",
              "doc": "Page is the zero-based page index holding this frame."
            },
            {
              "name": "Pivot",
              "anchor": "Frame.Pivot",
              "kind": "field",
              "doc": "Pivot is the normalized frame pivot when set on the input, or nil when omitted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Input",
          "anchor": "Input",
          "decl": "type Input struct {\n\t// Name is the frame name written to the atlas JSON, such as \"hero.png\" or \"enemies/slime.png\".\n\tName string\n\t// Image is the source picture.\n\tImage image.Image\n\t// Pivot is the optional normalized pivot written into the frame's TexturePacker JSON pivot field; nil omits it so sprite.LoadAtlas uses (0, 0).\n\tPivot *Pivot\n}",
          "doc": "Input is one named image to pack into an atlas.\n",
          "file": "pkg/tooling/pack/pack.go",
          "line": 65,
          "members": [
            {
              "name": "Name",
              "anchor": "Input.Name",
              "kind": "field",
              "doc": "Name is the frame name written to the atlas JSON, such as \"hero.png\" or \"enemies/slime.png\"."
            },
            {
              "name": "Image",
              "anchor": "Input.Image",
              "kind": "field",
              "doc": "Image is the source picture."
            },
            {
              "name": "Pivot",
              "anchor": "Input.Pivot",
              "kind": "field",
              "doc": "Pivot is the optional normalized pivot written into the frame's TexturePacker JSON pivot field; nil omits it so sprite.LoadAtlas uses (0, 0)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Name is the base name for each page's PNG and JSON files (\"atlas\" when empty).\n\tName string\n\t// Padding is the number of transparent pixels kept between adjacent frames.\n\tPadding int\n\t// Extrude is the number of pixels each frame's border is repeated outward to prevent texture bleeding.\n\tExtrude int\n\t// MaxWidth and MaxHeight limit each atlas page in pixels (2048 when 0).\n\tMaxWidth  int\n\tMaxHeight int\n\t// Scale is written to meta.scale so sprite.LoadAtlas converts pixels to points (1 when 0).\n\tScale int\n\t// Trim removes transparent borders around each input image before packing.\n\tTrim bool\n}",
          "doc": "Options controls how images are trimmed, padded, extruded and packed into atlas pages.\n",
          "file": "pkg/tooling/pack/pack.go",
          "line": 29,
          "members": [
            {
              "name": "Name",
              "anchor": "Options.Name",
              "kind": "field",
              "doc": "Name is the base name for each page's PNG and JSON files (\"atlas\" when empty)."
            },
            {
              "name": "Padding",
              "anchor": "Options.Padding",
              "kind": "field",
              "doc": "Padding is the number of transparent pixels kept between adjacent frames."
            },
            {
              "name": "Extrude",
              "anchor": "Options.Extrude",
              "kind": "field",
              "doc": "Extrude is the number of pixels each frame's border is repeated outward to prevent texture bleeding."
            },
            {
              "name": "MaxWidth",
              "anchor": "Options.MaxWidth",
              "kind": "field",
              "doc": "MaxWidth and MaxHeight limit each atlas page in pixels (2048 when 0)."
            },
            {
              "name": "MaxHeight",
              "anchor": "Options.MaxHeight",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Scale",
              "anchor": "Options.Scale",
              "kind": "field",
              "doc": "Scale is written to meta.scale so sprite.LoadAtlas converts pixels to points (1 when 0)."
            },
            {
              "name": "Trim",
              "anchor": "Options.Trim",
              "kind": "field",
              "doc": "Trim removes transparent borders around each input image before packing."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultOptions",
              "anchor": "DefaultOptions",
              "decl": "func DefaultOptions() Options",
              "doc": "DefaultOptions returns Options with the packer's defaults: 1px padding, no extrusion, 2048x2048 pages, scale 1 and trimming enabled.\n",
              "file": "pkg/tooling/pack/pack.go",
              "line": 46
            }
          ],
          "methods": []
        },
        {
          "name": "Page",
          "anchor": "Page",
          "decl": "type Page struct {\n\t// Index is the page's zero-based index.\n\tIndex int\n\t// ImageName is the PNG file name written to meta.image (for example \"atlas.png\" or \"atlas-0.png\").\n\tImageName string\n\t// JSONName is the JSON file name (for example \"atlas.json\" or \"atlas-0.json\").\n\tJSONName string\n\t// Image is the packed RGBA8888 atlas image.\n\tImage *image.NRGBA\n\t// JSON is the encoded TexturePacker JSON-hash metadata for this page.\n\tJSON []byte\n\t// Frames lists the frames packed onto this page, sorted by Name.\n\tFrames []Frame\n}",
          "doc": "Page is one packed atlas image and its TexturePacker JSON-hash metadata.\n",
          "file": "pkg/tooling/pack/pack.go",
          "line": 93,
          "members": [
            {
              "name": "Index",
              "anchor": "Page.Index",
              "kind": "field",
              "doc": "Index is the page's zero-based index."
            },
            {
              "name": "ImageName",
              "anchor": "Page.ImageName",
              "kind": "field",
              "doc": "ImageName is the PNG file name written to meta.image (for example \"atlas.png\" or \"atlas-0.png\")."
            },
            {
              "name": "JSONName",
              "anchor": "Page.JSONName",
              "kind": "field",
              "doc": "JSONName is the JSON file name (for example \"atlas.json\" or \"atlas-0.json\")."
            },
            {
              "name": "Image",
              "anchor": "Page.Image",
              "kind": "field",
              "doc": "Image is the packed RGBA8888 atlas image."
            },
            {
              "name": "JSON",
              "anchor": "Page.JSON",
              "kind": "field",
              "doc": "JSON is the encoded TexturePacker JSON-hash metadata for this page."
            },
            {
              "name": "Frames",
              "anchor": "Page.Frames",
              "kind": "field",
              "doc": "Frames lists the frames packed onto this page, sorted by Name."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Pivot",
          "anchor": "Pivot",
          "decl": "type Pivot struct {\n\tX float64\n\tY float64\n}",
          "doc": "Pivot is a frame's normalized pivot as fractions of its untrimmed source size: (0, 0) is top-left, (0.5, 0.5) is center, and (0.5, 1) is bottom-center.\n",
          "file": "pkg/tooling/pack/pack.go",
          "line": 59,
          "members": [
            {
              "name": "X",
              "anchor": "Pivot.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "Pivot.Y",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Result",
          "anchor": "Result",
          "decl": "type Result struct {\n\tPages []*Page\n}",
          "doc": "Result holds all atlas pages produced by PackDir or PackImages.\n",
          "file": "pkg/tooling/pack/pack.go",
          "line": 109,
          "members": [
            {
              "name": "Pages",
              "anchor": "Result.Pages",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "PackDir",
              "anchor": "PackDir",
              "decl": "func PackDir(dir string, opts Options) (*Result, error)",
              "doc": "PackDir walks dir for PNG images in deterministic slash-separated relative path order and packs them with opts.\n",
              "file": "pkg/tooling/pack/pack.go",
              "line": 136
            },
            {
              "name": "PackImages",
              "anchor": "PackImages",
              "decl": "func PackImages(inputs []Input, opts Options) (*Result, error)",
              "doc": "PackImages trims and packs inputs into one or more atlas pages with opts.\n",
              "file": "pkg/tooling/pack/pack.go",
              "line": 198
            }
          ],
          "methods": [
            {
              "name": "Write",
              "anchor": "Result.Write",
              "recv": "*Result",
              "decl": "func (r *Result) Write(dir string) ([]string, error)",
              "doc": "Write writes every page's PNG image and JSON metadata into dir, creating dir if needed, and returns the paths written.\n",
              "file": "pkg/tooling/pack/pack.go",
              "line": 114
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/tween",
      "name": "tween",
      "dir": "pkg/tween",
      "page": "pkg/tween",
      "synopsis": "Package tween animates values, timelines, and tilemap cameras deterministically on fixed game.Loop steps using NSGo easing curves.",
      "doc": "Package tween animates values, timelines, and tilemap cameras deterministically on fixed game.Loop steps using NSGo easing curves.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "RepeatForever",
              "anchor": "RepeatForever"
            }
          ],
          "decl": "const RepeatForever = -1",
          "doc": "RepeatForever repeats a tween indefinitely when passed to Tween.Repeat.\n",
          "file": "pkg/tween/tween.go",
          "line": 12
        }
      ],
      "vars": [],
      "funcs": [],
      "types": [
        {
          "name": "CatmullRomCurve",
          "anchor": "CatmullRomCurve",
          "decl": "type CatmullRomCurve struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CatmullRomCurve is a C1-continuous Catmull-Rom spline passing through all control points.\n",
          "file": "pkg/tween/curve.go",
          "line": 453,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CatmullRom",
              "anchor": "CatmullRom",
              "decl": "func CatmullRom(points []core.Point, closed bool, alpha float32) *CatmullRomCurve",
              "doc": "CatmullRom returns a Catmull-Rom spline through points with parameterization exponent alpha\n(0 = uniform, 0.5 = centripetal, 1 = chordal). Negative alpha is clamped to 0.\n",
              "file": "pkg/tween/curve.go",
              "line": 467
            },
            {
              "name": "CatmullRomFromTiledObject",
              "anchor": "CatmullRomFromTiledObject",
              "decl": "func CatmullRomFromTiledObject(obj tilemap.Object) *CatmullRomCurve",
              "doc": "CatmullRomFromTiledObject converts a Tiled polyline (open) or polygon (closed) object\ntranslated by (obj.X, obj.Y) into a centripetal CatmullRomCurve.\n",
              "file": "pkg/tween/curve.go",
              "line": 788
            },
            {
              "name": "NewCatmullRom",
              "anchor": "NewCatmullRom",
              "decl": "func NewCatmullRom(points []core.Point, closed bool) *CatmullRomCurve",
              "doc": "NewCatmullRom returns a centripetal Catmull-Rom spline (alpha = 0.5) passing through points.\n",
              "file": "pkg/tween/curve.go",
              "line": 461
            }
          ],
          "methods": [
            {
              "name": "Closed",
              "anchor": "CatmullRomCurve.Closed",
              "recv": "*CatmullRomCurve",
              "decl": "func (c *CatmullRomCurve) Closed() bool",
              "doc": "Closed reports whether the Catmull-Rom spline forms a closed loop.\n",
              "file": "pkg/tween/curve.go",
              "line": 631
            },
            {
              "name": "Length",
              "anchor": "CatmullRomCurve.Length",
              "recv": "*CatmullRomCurve",
              "decl": "func (c *CatmullRomCurve) Length() float32",
              "doc": "Length returns the total arc length of the Catmull-Rom spline.\n",
              "file": "pkg/tween/curve.go",
              "line": 610
            },
            {
              "name": "Point",
              "anchor": "CatmullRomCurve.Point",
              "recv": "*CatmullRomCurve",
              "decl": "func (c *CatmullRomCurve) Point(t float32) core.Point",
              "doc": "Point evaluates the Catmull-Rom spline at parameter t in [0, 1].\n",
              "file": "pkg/tween/curve.go",
              "line": 600
            },
            {
              "name": "PointAtDistance",
              "anchor": "CatmullRomCurve.PointAtDistance",
              "recv": "*CatmullRomCurve",
              "decl": "func (c *CatmullRomCurve) PointAtDistance(dist float32) core.Point",
              "doc": "PointAtDistance returns the point at arc-length distance dist along the spline.\n",
              "file": "pkg/tween/curve.go",
              "line": 615
            },
            {
              "name": "Tangent",
              "anchor": "CatmullRomCurve.Tangent",
              "recv": "*CatmullRomCurve",
              "decl": "func (c *CatmullRomCurve) Tangent(t float32) core.Point",
              "doc": "Tangent returns the unit-length tangent vector at parameter t in [0, 1].\n",
              "file": "pkg/tween/curve.go",
              "line": 605
            },
            {
              "name": "TangentAtDistance",
              "anchor": "CatmullRomCurve.TangentAtDistance",
              "recv": "*CatmullRomCurve",
              "decl": "func (c *CatmullRomCurve) TangentAtDistance(dist float32) core.Point",
              "doc": "TangentAtDistance returns the unit-length tangent vector at arc-length distance dist along the spline.\n",
              "file": "pkg/tween/curve.go",
              "line": 623
            }
          ]
        },
        {
          "name": "CubicBezierCurve",
          "anchor": "CubicBezierCurve",
          "decl": "type CubicBezierCurve struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "CubicBezierCurve is a cubic Bézier curve defined by four control points.\n",
          "file": "pkg/tween/curve.go",
          "line": 278,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CubicBezier",
              "anchor": "CubicBezier",
              "decl": "func CubicBezier(p0, p1, p2, p3 core.Point) *CubicBezierCurve",
              "doc": "CubicBezier returns a cubic Bézier curve from p0 to p3 with control points p1 and p2.\n",
              "file": "pkg/tween/curve.go",
              "line": 284
            }
          ],
          "methods": [
            {
              "name": "Closed",
              "anchor": "CubicBezierCurve.Closed",
              "recv": "*CubicBezierCurve",
              "decl": "func (c *CubicBezierCurve) Closed() bool",
              "doc": "Closed reports false because a cubic Bézier curve is open.\n",
              "file": "pkg/tween/curve.go",
              "line": 384
            },
            {
              "name": "Length",
              "anchor": "CubicBezierCurve.Length",
              "recv": "*CubicBezierCurve",
              "decl": "func (c *CubicBezierCurve) Length() float32",
              "doc": "Length returns the total arc length of the cubic Bézier curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 369
            },
            {
              "name": "Point",
              "anchor": "CubicBezierCurve.Point",
              "recv": "*CubicBezierCurve",
              "decl": "func (c *CubicBezierCurve) Point(t float32) core.Point",
              "doc": "Point evaluates the cubic Bézier curve at parameter t in [0, 1].\n",
              "file": "pkg/tween/curve.go",
              "line": 359
            },
            {
              "name": "PointAtDistance",
              "anchor": "CubicBezierCurve.PointAtDistance",
              "recv": "*CubicBezierCurve",
              "decl": "func (c *CubicBezierCurve) PointAtDistance(dist float32) core.Point",
              "doc": "PointAtDistance returns the point at arc-length distance dist along the curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 374
            },
            {
              "name": "Tangent",
              "anchor": "CubicBezierCurve.Tangent",
              "recv": "*CubicBezierCurve",
              "decl": "func (c *CubicBezierCurve) Tangent(t float32) core.Point",
              "doc": "Tangent returns the unit-length tangent vector at parameter t in [0, 1].\n",
              "file": "pkg/tween/curve.go",
              "line": 364
            },
            {
              "name": "TangentAtDistance",
              "anchor": "CubicBezierCurve.TangentAtDistance",
              "recv": "*CubicBezierCurve",
              "decl": "func (c *CubicBezierCurve) TangentAtDistance(dist float32) core.Point",
              "doc": "TangentAtDistance returns the unit-length tangent vector at arc-length distance dist along the curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 379
            }
          ]
        },
        {
          "name": "Curve",
          "anchor": "Curve",
          "decl": "type Curve interface {\n\t// Point evaluates the curve at parameter t in [0, 1] (clamped).\n\tPoint(t float32) core.Point\n\t// Tangent returns the unit-length tangent vector at parameter t in [0, 1] (clamped),\n\t// or the zero point if the curve is degenerate (zero length).\n\tTangent(t float32) core.Point\n\t// Length returns the total arc length of the curve.\n\tLength() float32\n\t// PointAtDistance returns the point at arc-length distance dist along the curve (clamped to [0, Length()]).\n\tPointAtDistance(dist float32) core.Point\n\t// TangentAtDistance returns the unit-length tangent vector at arc-length distance dist along the curve (clamped to [0, Length()]).\n\tTangentAtDistance(dist float32) core.Point\n\t// Closed reports whether the curve forms a closed loop.\n\tClosed() bool\n}",
          "doc": "Curve is a 2D parametric curve with arc-length parameterization.\n",
          "file": "pkg/tween/curve.go",
          "line": 12,
          "members": [
            {
              "name": "Point",
              "anchor": "Curve.Point",
              "kind": "method",
              "doc": "Point evaluates the curve at parameter t in [0, 1] (clamped)."
            },
            {
              "name": "Tangent",
              "anchor": "Curve.Tangent",
              "kind": "method",
              "doc": "Tangent returns the unit-length tangent vector at parameter t in [0, 1] (clamped),\nor the zero point if the curve is degenerate (zero length)."
            },
            {
              "name": "Length",
              "anchor": "Curve.Length",
              "kind": "method",
              "doc": "Length returns the total arc length of the curve."
            },
            {
              "name": "PointAtDistance",
              "anchor": "Curve.PointAtDistance",
              "kind": "method",
              "doc": "PointAtDistance returns the point at arc-length distance dist along the curve (clamped to [0, Length()])."
            },
            {
              "name": "TangentAtDistance",
              "anchor": "Curve.TangentAtDistance",
              "kind": "method",
              "doc": "TangentAtDistance returns the unit-length tangent vector at arc-length distance dist along the curve (clamped to [0, Length()])."
            },
            {
              "name": "Closed",
              "anchor": "Curve.Closed",
              "kind": "method",
              "doc": "Closed reports whether the curve forms a closed loop."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CurveFromTiledObject",
              "anchor": "CurveFromTiledObject",
              "decl": "func CurveFromTiledObject(obj tilemap.Object, smooth bool) Curve",
              "doc": "CurveFromTiledObject converts a Tiled polyline (open) or polygon (closed) object\ntranslated by (obj.X, obj.Y) into a Curve: a centripetal Catmull-Rom spline when\nsmooth is true, or a Polyline otherwise.\n",
              "file": "pkg/tween/curve.go",
              "line": 795
            }
          ],
          "methods": []
        },
        {
          "name": "EaseFunc",
          "anchor": "EaseFunc",
          "decl": "type EaseFunc func(t float32) float32",
          "doc": "EaseFunc maps normalized pass progress t in [0, 1] to an eased progress value.\n",
          "file": "pkg/tween/curve.go",
          "line": 803,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "EaseFromCurve",
              "anchor": "EaseFromCurve",
              "decl": "func EaseFromCurve(c core.Curve) EaseFunc",
              "doc": "EaseFromCurve adapts an NSGo core.Curve easing curve into an EaseFunc.\n",
              "file": "pkg/tween/curve.go",
              "line": 806
            }
          ],
          "methods": []
        },
        {
          "name": "FollowerOptions",
          "anchor": "FollowerOptions",
          "decl": "type FollowerOptions struct {\n\t// Speed is the constant travel speed in points per second along the curve's arc length.\n\t// Used when Duration <= 0.\n\tSpeed float32\n\t// Duration is the total travel time for one pass along the curve.\n\t// When Duration > 0, it takes precedence over Speed.\n\tDuration time.Duration\n\t// Ease maps normalized pass progress [0, 1] to eased arc-length fraction.\n\t// When nil and Curve is zero, motion proceeds linearly by arc length.\n\tEase EaseFunc\n\t// Curve is an optional NSGo easing curve used when Ease is nil.\n\tCurve core.Curve\n\t// Loop controls playback behavior on reaching the end of the curve.\n\tLoop LoopMode\n\t// OrientToTangent computes Angle() from the curve tangent (atan2(ty, tx)) plus RotationOffset.\n\t// When false, Angle() returns RotationOffset.\n\tOrientToTangent bool\n\t// RotationOffset is added in radians to the heading angle.\n\tRotationOffset float32\n\t// OnUpdate is invoked whenever the follower moves or seeks with the current position and angle (radians).\n\tOnUpdate func(pos core.Point, angle float32)\n\t// OnComplete is invoked once when a LoopNone follower finishes the curve.\n\tOnComplete func()\n}",
          "doc": "FollowerOptions configures a PathFollower.\n",
          "file": "pkg/tween/curve.go",
          "line": 825,
          "members": [
            {
              "name": "Speed",
              "anchor": "FollowerOptions.Speed",
              "kind": "field",
              "doc": "Speed is the constant travel speed in points per second along the curve's arc length.\nUsed when Duration <= 0."
            },
            {
              "name": "Duration",
              "anchor": "FollowerOptions.Duration",
              "kind": "field",
              "doc": "Duration is the total travel time for one pass along the curve.\nWhen Duration > 0, it takes precedence over Speed."
            },
            {
              "name": "Ease",
              "anchor": "FollowerOptions.Ease",
              "kind": "field",
              "doc": "Ease maps normalized pass progress [0, 1] to eased arc-length fraction.\nWhen nil and Curve is zero, motion proceeds linearly by arc length."
            },
            {
              "name": "Curve",
              "anchor": "FollowerOptions.Curve",
              "kind": "field",
              "doc": "Curve is an optional NSGo easing curve used when Ease is nil."
            },
            {
              "name": "Loop",
              "anchor": "FollowerOptions.Loop",
              "kind": "field",
              "doc": "Loop controls playback behavior on reaching the end of the curve."
            },
            {
              "name": "OrientToTangent",
              "anchor": "FollowerOptions.OrientToTangent",
              "kind": "field",
              "doc": "OrientToTangent computes Angle() from the curve tangent (atan2(ty, tx)) plus RotationOffset.\nWhen false, Angle() returns RotationOffset."
            },
            {
              "name": "RotationOffset",
              "anchor": "FollowerOptions.RotationOffset",
              "kind": "field",
              "doc": "RotationOffset is added in radians to the heading angle."
            },
            {
              "name": "OnUpdate",
              "anchor": "FollowerOptions.OnUpdate",
              "kind": "field",
              "doc": "OnUpdate is invoked whenever the follower moves or seeks with the current position and angle (radians)."
            },
            {
              "name": "OnComplete",
              "anchor": "FollowerOptions.OnComplete",
              "kind": "field",
              "doc": "OnComplete is invoked once when a LoopNone follower finishes the curve."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Group",
          "anchor": "Group",
          "decl": "type Group struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Group steps a collection of active tweens together and removes each once it finishes. Its zero value is ready to use.\n",
          "file": "pkg/tween/tween.go",
          "line": 222,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "Group.Add",
              "recv": "*Group",
              "decl": "func (g *Group) Add(tweens ...*Tween)",
              "doc": "Add registers one or more non-nil tweens to be stepped by Update.\n",
              "file": "pkg/tween/tween.go",
              "line": 227
            },
            {
              "name": "Clear",
              "anchor": "Group.Clear",
              "recv": "*Group",
              "decl": "func (g *Group) Clear()",
              "doc": "Clear removes all tweens from the group.\n",
              "file": "pkg/tween/tween.go",
              "line": 248
            },
            {
              "name": "Len",
              "anchor": "Group.Len",
              "recv": "*Group",
              "decl": "func (g *Group) Len() int",
              "doc": "Len returns the number of active tweens currently in the group.\n",
              "file": "pkg/tween/tween.go",
              "line": 254
            },
            {
              "name": "Remove",
              "anchor": "Group.Remove",
              "recv": "*Group",
              "decl": "func (g *Group) Remove(tw *Tween)",
              "doc": "Remove deletes tw from the group if present.\n",
              "file": "pkg/tween/tween.go",
              "line": 236
            },
            {
              "name": "Update",
              "anchor": "Group.Update",
              "recv": "*Group",
              "decl": "func (g *Group) Update(dt time.Duration)",
              "doc": "Update advances every active tween in the group by dt and removes any that finish.\n",
              "file": "pkg/tween/tween.go",
              "line": 257
            }
          ]
        },
        {
          "name": "LoopMode",
          "anchor": "LoopMode",
          "decl": "type LoopMode int",
          "doc": "LoopMode controls what a PathFollower does on reaching the end of a curve.\n",
          "file": "pkg/tween/curve.go",
          "line": 813,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "LoopNone",
                  "anchor": "LoopNone"
                },
                {
                  "name": "LoopRepeat",
                  "anchor": "LoopRepeat"
                },
                {
                  "name": "LoopPingPong",
                  "anchor": "LoopPingPong"
                }
              ],
              "decl": "const (\n\t// LoopNone stops at the end of the curve and fires OnComplete once.\n\tLoopNone LoopMode = iota\n\t// LoopRepeat wraps back to the beginning of the curve and continues indefinitely.\n\tLoopRepeat\n\t// LoopPingPong reverses direction at each end of the curve and oscillates indefinitely.\n\tLoopPingPong\n)",
              "doc": "",
              "file": "pkg/tween/curve.go",
              "line": 815
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "PathFollower",
          "anchor": "PathFollower",
          "decl": "type PathFollower struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PathFollower advances deterministically along a Curve by arc length, maintaining\nconstant speed or easing cleanly over a fixed Duration.\n",
          "file": "pkg/tween/curve.go",
          "line": 852,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewPathFollower",
              "anchor": "NewPathFollower",
              "decl": "func NewPathFollower(curve Curve, opts FollowerOptions) *PathFollower",
              "doc": "NewPathFollower returns a PathFollower positioned at the start of curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 870
            }
          ],
          "methods": [
            {
              "name": "Angle",
              "anchor": "PathFollower.Angle",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Angle() float32",
              "doc": "Angle returns the follower's current heading angle in radians.\n",
              "file": "pkg/tween/curve.go",
              "line": 1034
            },
            {
              "name": "Distance",
              "anchor": "PathFollower.Distance",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Distance() float32",
              "doc": "Distance returns the follower's current arc-length distance from the start of the curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 1037
            },
            {
              "name": "Done",
              "anchor": "PathFollower.Done",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Done() bool",
              "doc": "Done reports whether a non-looping follower has reached the end of the curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 1043
            },
            {
              "name": "Position",
              "anchor": "PathFollower.Position",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Position() core.Point",
              "doc": "Position returns the follower's current position along the curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 1028
            },
            {
              "name": "Progress",
              "anchor": "PathFollower.Progress",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Progress() float32",
              "doc": "Progress returns the follower's normalized progress in [0, 1] along the curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 1040
            },
            {
              "name": "Reset",
              "anchor": "PathFollower.Reset",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Reset()",
              "doc": "Reset rewinds the follower back to the start of the curve so it can run again.\n",
              "file": "pkg/tween/curve.go",
              "line": 1062
            },
            {
              "name": "Seek",
              "anchor": "PathFollower.Seek",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Seek(progress float32)",
              "doc": "Seek moves the follower directly to normalized progress in [0, 1] without firing OnComplete.\n",
              "file": "pkg/tween/curve.go",
              "line": 1046
            },
            {
              "name": "Step",
              "anchor": "PathFollower.Step",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Step(dt float32)",
              "doc": "Step advances the follower by dt seconds.\n",
              "file": "pkg/tween/curve.go",
              "line": 994
            },
            {
              "name": "Tangent",
              "anchor": "PathFollower.Tangent",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Tangent() core.Point",
              "doc": "Tangent returns the follower's current unit-length tangent vector.\n",
              "file": "pkg/tween/curve.go",
              "line": 1031
            },
            {
              "name": "Tween",
              "anchor": "PathFollower.Tween",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Tween() *Tween",
              "doc": "Tween returns a *Tween backed by this follower so it integrates directly with Group and Timeline.\nIt uses the follower's Duration (or Length/Speed when Duration <= 0), Loop mode, easing, and callbacks.\n",
              "file": "pkg/tween/curve.go",
              "line": 1072
            },
            {
              "name": "Update",
              "anchor": "PathFollower.Update",
              "recv": "*PathFollower",
              "decl": "func (f *PathFollower) Update(dt time.Duration)",
              "doc": "Update advances the follower by dt.\n",
              "file": "pkg/tween/curve.go",
              "line": 969
            }
          ]
        },
        {
          "name": "PolylineCurve",
          "anchor": "PolylineCurve",
          "decl": "type PolylineCurve struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "PolylineCurve is a piecewise-linear curve through a sequence of vertices with exact arc-length lookup.\n",
          "file": "pkg/tween/curve.go",
          "line": 634,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Polyline",
              "anchor": "Polyline",
              "decl": "func Polyline(points []core.Point, closed bool) *PolylineCurve",
              "doc": "Polyline returns a piecewise-linear curve through points. When closed is true and\nthe last point differs from the first, an explicit closing segment back to points[0] is added.\n",
              "file": "pkg/tween/curve.go",
              "line": 644
            },
            {
              "name": "PolylineFromTiledObject",
              "anchor": "PolylineFromTiledObject",
              "decl": "func PolylineFromTiledObject(obj tilemap.Object) *PolylineCurve",
              "doc": "PolylineFromTiledObject converts a Tiled polyline (open) or polygon (closed) object\ntranslated by (obj.X, obj.Y) into a PolylineCurve.\n",
              "file": "pkg/tween/curve.go",
              "line": 782
            }
          ],
          "methods": [
            {
              "name": "Closed",
              "anchor": "PolylineCurve.Closed",
              "recv": "*PolylineCurve",
              "decl": "func (c *PolylineCurve) Closed() bool",
              "doc": "Closed reports whether the polyline forms a closed loop.\n",
              "file": "pkg/tween/curve.go",
              "line": 778
            },
            {
              "name": "Length",
              "anchor": "PolylineCurve.Length",
              "recv": "*PolylineCurve",
              "decl": "func (c *PolylineCurve) Length() float32",
              "doc": "Length returns the exact total length of the polyline.\n",
              "file": "pkg/tween/curve.go",
              "line": 741
            },
            {
              "name": "Point",
              "anchor": "PolylineCurve.Point",
              "recv": "*PolylineCurve",
              "decl": "func (c *PolylineCurve) Point(t float32) core.Point",
              "doc": "Point evaluates the polyline at arc-length fraction t in [0, 1].\n",
              "file": "pkg/tween/curve.go",
              "line": 731
            },
            {
              "name": "PointAtDistance",
              "anchor": "PolylineCurve.PointAtDistance",
              "recv": "*PolylineCurve",
              "decl": "func (c *PolylineCurve) PointAtDistance(dist float32) core.Point",
              "doc": "PointAtDistance returns the exact point at arc-length distance dist along the polyline.\n",
              "file": "pkg/tween/curve.go",
              "line": 746
            },
            {
              "name": "Tangent",
              "anchor": "PolylineCurve.Tangent",
              "recv": "*PolylineCurve",
              "decl": "func (c *PolylineCurve) Tangent(t float32) core.Point",
              "doc": "Tangent returns the unit-length tangent vector at arc-length fraction t in [0, 1].\n",
              "file": "pkg/tween/curve.go",
              "line": 736
            },
            {
              "name": "TangentAtDistance",
              "anchor": "PolylineCurve.TangentAtDistance",
              "recv": "*PolylineCurve",
              "decl": "func (c *PolylineCurve) TangentAtDistance(dist float32) core.Point",
              "doc": "TangentAtDistance returns the unit-length tangent vector at arc-length distance dist along the polyline.\n",
              "file": "pkg/tween/curve.go",
              "line": 769
            }
          ]
        },
        {
          "name": "QuadraticBezierCurve",
          "anchor": "QuadraticBezierCurve",
          "decl": "type QuadraticBezierCurve struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "QuadraticBezierCurve is a quadratic Bézier curve defined by three control points.\n",
          "file": "pkg/tween/curve.go",
          "line": 188,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "QuadraticBezier",
              "anchor": "QuadraticBezier",
              "decl": "func QuadraticBezier(p0, p1, p2 core.Point) *QuadraticBezierCurve",
              "doc": "QuadraticBezier returns a quadratic Bézier curve from p0 to p2 controlled by p1.\n",
              "file": "pkg/tween/curve.go",
              "line": 194
            }
          ],
          "methods": [
            {
              "name": "Closed",
              "anchor": "QuadraticBezierCurve.Closed",
              "recv": "*QuadraticBezierCurve",
              "decl": "func (c *QuadraticBezierCurve) Closed() bool",
              "doc": "Closed reports false because a quadratic Bézier curve is open.\n",
              "file": "pkg/tween/curve.go",
              "line": 275
            },
            {
              "name": "Length",
              "anchor": "QuadraticBezierCurve.Length",
              "recv": "*QuadraticBezierCurve",
              "decl": "func (c *QuadraticBezierCurve) Length() float32",
              "doc": "Length returns the total arc length of the quadratic Bézier curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 260
            },
            {
              "name": "Point",
              "anchor": "QuadraticBezierCurve.Point",
              "recv": "*QuadraticBezierCurve",
              "decl": "func (c *QuadraticBezierCurve) Point(t float32) core.Point",
              "doc": "Point evaluates the quadratic Bézier curve at parameter t in [0, 1].\n",
              "file": "pkg/tween/curve.go",
              "line": 250
            },
            {
              "name": "PointAtDistance",
              "anchor": "QuadraticBezierCurve.PointAtDistance",
              "recv": "*QuadraticBezierCurve",
              "decl": "func (c *QuadraticBezierCurve) PointAtDistance(dist float32) core.Point",
              "doc": "PointAtDistance returns the point at arc-length distance dist along the curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 265
            },
            {
              "name": "Tangent",
              "anchor": "QuadraticBezierCurve.Tangent",
              "recv": "*QuadraticBezierCurve",
              "decl": "func (c *QuadraticBezierCurve) Tangent(t float32) core.Point",
              "doc": "Tangent returns the unit-length tangent vector at parameter t in [0, 1].\n",
              "file": "pkg/tween/curve.go",
              "line": 255
            },
            {
              "name": "TangentAtDistance",
              "anchor": "QuadraticBezierCurve.TangentAtDistance",
              "recv": "*QuadraticBezierCurve",
              "decl": "func (c *QuadraticBezierCurve) TangentAtDistance(dist float32) core.Point",
              "doc": "TangentAtDistance returns the unit-length tangent vector at arc-length distance dist along the curve.\n",
              "file": "pkg/tween/curve.go",
              "line": 270
            }
          ]
        },
        {
          "name": "Timeline",
          "anchor": "Timeline",
          "decl": "type Timeline struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Timeline coordinates multiple tweens and timed callback cues along a single deterministic clock, supporting seeking, forward and reverse playback, and looping. Its zero value is ready to use.\n",
          "file": "pkg/tween/timeline.go",
          "line": 22,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTimeline",
              "anchor": "NewTimeline",
              "decl": "func NewTimeline() *Timeline",
              "doc": "NewTimeline returns an empty Timeline ready to add tracks and cues to.\n",
              "file": "pkg/tween/timeline.go",
              "line": 36
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "Timeline.Add",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Add(at time.Duration, tw *Tween) *Timeline",
              "doc": "Add places tw on the timeline starting at offset at. Nil tweens are ignored; negative offsets are clamped to 0.\n",
              "file": "pkg/tween/timeline.go",
              "line": 39
            },
            {
              "name": "Append",
              "anchor": "Timeline.Append",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Append(tw *Tween) *Timeline",
              "doc": "Append places tw on the timeline starting at its current Duration. Nil tweens are ignored.\n",
              "file": "pkg/tween/timeline.go",
              "line": 55
            },
            {
              "name": "Call",
              "anchor": "Timeline.Call",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Call(at time.Duration, fn func()) *Timeline",
              "doc": "Call schedules fn to run when playback crosses timestamp at. Nil callbacks are ignored; negative offsets are clamped to 0.\n",
              "file": "pkg/tween/timeline.go",
              "line": 60
            },
            {
              "name": "Done",
              "anchor": "Timeline.Done",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Done() bool",
              "doc": "Done reports whether a non-looping timeline has reached the end of its playback direction.\n",
              "file": "pkg/tween/timeline.go",
              "line": 98
            },
            {
              "name": "Duration",
              "anchor": "Timeline.Duration",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Duration() time.Duration",
              "doc": "Duration returns the total span of the timeline across all tracks and cues.\n",
              "file": "pkg/tween/timeline.go",
              "line": 76
            },
            {
              "name": "Pause",
              "anchor": "Timeline.Pause",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Pause()",
              "doc": "Pause suspends playback at the current timestamp.\n",
              "file": "pkg/tween/timeline.go",
              "line": 116
            },
            {
              "name": "Play",
              "anchor": "Timeline.Play",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Play()",
              "doc": "Play starts or resumes playback in the current direction.\n",
              "file": "pkg/tween/timeline.go",
              "line": 101
            },
            {
              "name": "Playing",
              "anchor": "Timeline.Playing",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Playing() bool",
              "doc": "Playing reports whether the timeline is currently playing.\n",
              "file": "pkg/tween/timeline.go",
              "line": 95
            },
            {
              "name": "Restart",
              "anchor": "Timeline.Restart",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Restart()",
              "doc": "Restart jumps to the start of the current playback direction (0 forward, Duration in reverse), applies all tracks, and starts playing.\n",
              "file": "pkg/tween/timeline.go",
              "line": 140
            },
            {
              "name": "Reverse",
              "anchor": "Timeline.Reverse",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Reverse(reverse bool)",
              "doc": "Reverse sets whether playback runs backward (from Duration down to 0).\n",
              "file": "pkg/tween/timeline.go",
              "line": 121
            },
            {
              "name": "Seek",
              "anchor": "Timeline.Seek",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Seek(at time.Duration)",
              "doc": "Seek moves the timeline to timestamp at (clamped to [0, Duration()]) and puts every track — before, during, and after its window — at the exact value it holds at that time without firing cues.\n",
              "file": "pkg/tween/timeline.go",
              "line": 151
            },
            {
              "name": "SetLoop",
              "anchor": "Timeline.SetLoop",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) SetLoop(loop bool)",
              "doc": "SetLoop sets whether playback wraps around on reaching the end.\n",
              "file": "pkg/tween/timeline.go",
              "line": 132
            },
            {
              "name": "Time",
              "anchor": "Timeline.Time",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Time() time.Duration",
              "doc": "Time returns the timeline's current playback timestamp.\n",
              "file": "pkg/tween/timeline.go",
              "line": 92
            },
            {
              "name": "Update",
              "anchor": "Timeline.Update",
              "recv": "*Timeline",
              "decl": "func (tl *Timeline) Update(dt time.Duration)",
              "doc": "Update advances the timeline by dt when playing, updating tracks and firing any cues crossed during the step.\n",
              "file": "pkg/tween/timeline.go",
              "line": 176
            }
          ]
        },
        {
          "name": "Tween",
          "anchor": "Tween",
          "decl": "type Tween struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Tween interpolates a value over a fixed duration using a core.Curve easing function, advancing deterministically via Update(dt) on game.Loop steps.\n",
          "file": "pkg/tween/tween.go",
          "line": 15,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "CameraFollowTransition",
              "anchor": "CameraFollowTransition",
              "decl": "func CameraFollowTransition(cam *tilemap.Camera, target func() core.Point, d time.Duration, curve core.Curve) *Tween",
              "doc": "CameraFollowTransition returns a tween that smoothly moves cam from its position when the tween starts onto a moving target position sampled from target each step, ending directly on target() (clamped to cam.Bounds if set).\n",
              "file": "pkg/tween/camera.go",
              "line": 112
            },
            {
              "name": "CameraMove",
              "anchor": "CameraMove",
              "decl": "func CameraMove(cam *tilemap.Camera, toX, toY, toZoom, toRot float32, d time.Duration, curve core.Curve) *Tween",
              "doc": "CameraMove returns a tween that moves cam simultaneously to (toX, toY), toZoom, and toRot over d with curve, clamping to cam.Bounds if set.\n",
              "file": "pkg/tween/camera.go",
              "line": 85
            },
            {
              "name": "CameraPan",
              "anchor": "CameraPan",
              "decl": "func CameraPan(cam *tilemap.Camera, toX, toY float32, d time.Duration, curve core.Curve) *Tween",
              "doc": "CameraPan returns a tween that pans cam from its position when the tween starts to (toX, toY) over d with curve, clamping to cam.Bounds if set.\n",
              "file": "pkg/tween/camera.go",
              "line": 18
            },
            {
              "name": "CameraRotate",
              "anchor": "CameraRotate",
              "decl": "func CameraRotate(cam *tilemap.Camera, toRot float32, d time.Duration, curve core.Curve) *Tween",
              "doc": "CameraRotate returns a tween that rotates cam from its rotation when the tween starts to toRot (in radians) over d with curve, clamping to cam.Bounds if set.\n",
              "file": "pkg/tween/camera.go",
              "line": 63
            },
            {
              "name": "CameraZoom",
              "anchor": "CameraZoom",
              "decl": "func CameraZoom(cam *tilemap.Camera, toZoom float32, d time.Duration, curve core.Curve) *Tween",
              "doc": "CameraZoom returns a tween that zooms cam from its zoom when the tween starts (treating <= 0 as 1) to toZoom over d with curve, clamping to cam.Bounds if set.\n",
              "file": "pkg/tween/camera.go",
              "line": 41
            },
            {
              "name": "Color",
              "anchor": "Color",
              "decl": "func Color(from, to core.Color, d time.Duration, curve core.Curve, set func(core.Color)) *Tween",
              "doc": "Color returns a tween over a core.Color from from to to over d with curve, interpolating sRGB and alpha channels.\n",
              "file": "pkg/tween/tween.go",
              "line": 76
            },
            {
              "name": "Float32",
              "anchor": "Float32",
              "decl": "func Float32(from, to float32, d time.Duration, curve core.Curve, set func(float32)) *Tween",
              "doc": "Float32 returns a tween over a float32 value from from to to over d with curve.\n",
              "file": "pkg/tween/tween.go",
              "line": 61
            },
            {
              "name": "Float64",
              "anchor": "Float64",
              "decl": "func Float64(from, to float64, d time.Duration, curve core.Curve, set func(float64)) *Tween",
              "doc": "Float64 returns a tween over a float64 value from from to to over d with curve.\n",
              "file": "pkg/tween/tween.go",
              "line": 66
            },
            {
              "name": "Follow",
              "anchor": "Follow",
              "decl": "func Follow(curve Curve, d time.Duration, ease core.Curve, set func(pos core.Point, angle float32)) *Tween",
              "doc": "Follow returns a Tween that moves along curve by arc length over d with ease,\ncalling set with the current position and tangent angle (in radians) on each step.\nA zero ease uses core.Linear. Negative d is treated as 0.\n",
              "file": "pkg/tween/curve.go",
              "line": 1116
            },
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New[T any](from, to T, d time.Duration, curve core.Curve, lerp func(a, b T, t float64) T, set func(T)) *Tween",
              "doc": "New returns a tween that interpolates from from to to over d with curve, using lerp to compute each intermediate value and set to apply it.\n\nA zero curve uses core.Linear. A negative d is treated as 0.\n",
              "file": "pkg/tween/tween.go",
              "line": 33
            },
            {
              "name": "Point",
              "anchor": "Point",
              "decl": "func Point(from, to core.Point, d time.Duration, curve core.Curve, set func(core.Point)) *Tween",
              "doc": "Point returns a tween over a core.Point from from to to over d with curve.\n",
              "file": "pkg/tween/tween.go",
              "line": 71
            }
          ],
          "methods": [
            {
              "name": "Delay",
              "anchor": "Tween.Delay",
              "recv": "*Tween",
              "decl": "func (t *Tween) Delay(d time.Duration) *Tween",
              "doc": "Delay waits d before the tween begins moving. Negative durations are treated as 0.\n",
              "file": "pkg/tween/tween.go",
              "line": 81
            },
            {
              "name": "Done",
              "anchor": "Tween.Done",
              "recv": "*Tween",
              "decl": "func (t *Tween) Done() bool",
              "doc": "Done reports whether the tween has reached its end.\n",
              "file": "pkg/tween/tween.go",
              "line": 117
            },
            {
              "name": "Duration",
              "anchor": "Tween.Duration",
              "recv": "*Tween",
              "decl": "func (t *Tween) Duration() time.Duration",
              "doc": "Duration returns the tween's total duration including delay and repeats. For a tween that repeats forever, Duration returns one full cycle (delay plus one pass, or two passes when yoyo is enabled).\n",
              "file": "pkg/tween/tween.go",
              "line": 105
            },
            {
              "name": "OnComplete",
              "anchor": "Tween.OnComplete",
              "recv": "*Tween",
              "decl": "func (t *Tween) OnComplete(fn func()) *Tween",
              "doc": "OnComplete registers fn to run once when Update finishes the tween. Multiple callbacks run in the order registered.\n",
              "file": "pkg/tween/tween.go",
              "line": 97
            },
            {
              "name": "Repeat",
              "anchor": "Tween.Repeat",
              "recv": "*Tween",
              "decl": "func (t *Tween) Repeat(count int, yoyo bool) *Tween",
              "doc": "Repeat repeats the tween count additional times after its first pass (0 plays once; RepeatForever or any negative value repeats forever). When yoyo is true, alternating passes play back from to to from.\n",
              "file": "pkg/tween/tween.go",
              "line": 90
            },
            {
              "name": "Reset",
              "anchor": "Tween.Reset",
              "recv": "*Tween",
              "decl": "func (t *Tween) Reset()",
              "doc": "Reset rewinds the tween to its start so it can play again from elapsed 0.\n",
              "file": "pkg/tween/tween.go",
              "line": 120
            },
            {
              "name": "Seek",
              "anchor": "Tween.Seek",
              "recv": "*Tween",
              "decl": "func (t *Tween) Seek(at time.Duration)",
              "doc": "Seek moves the tween to timestamp at and applies the value it holds there without firing OnComplete callbacks.\n",
              "file": "pkg/tween/tween.go",
              "line": 144
            },
            {
              "name": "Update",
              "anchor": "Tween.Update",
              "recv": "*Tween",
              "decl": "func (t *Tween) Update(dt time.Duration) bool",
              "doc": "Update advances the tween by dt, applies the value at the new time, and reports whether the tween has finished.\n",
              "file": "pkg/tween/tween.go",
              "line": 126
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/undo",
      "name": "undo",
      "dir": "pkg/undo",
      "page": "pkg/undo",
      "synopsis": "Package undo records the reversible moves of puzzle and turn-based games, with unlimited undo and redo.",
      "doc": "Package undo records the reversible moves of puzzle and turn-based games, with unlimited undo and redo.\n\nA History owns a game's state and a list of moves. Do applies a move and records it, Undo reverts the last applied move, and Redo applies the last undone one again; a new move after an undo discards the moves that could have been redone. Every move is kept until Clear, so a player can undo back to the start of a level however long they played.\n\nEach Move both applies and reverts its change, so undoing every move returns the state to exactly where it started as long as each Revert is the exact inverse of its Apply. A move may record what its Apply changed (the crate it pushed, the piece it captured) in its own fields and read it back in Revert.\n\nA History whose moves are one concrete type can be saved as a versioned YAML Log and restored from it, which replays the applied moves on the starting state and keeps the undone ones for Redo.\n\nNothing in undo reads the clock, spawns goroutines or keeps package-level state.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "LogVersion",
              "anchor": "LogVersion"
            }
          ],
          "decl": "const LogVersion = 1",
          "doc": "LogVersion is the schema version of the Log YAML format this package reads and writes.\n",
          "file": "pkg/undo/log.go",
          "line": 13
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "EncodeLog",
          "anchor": "EncodeLog",
          "decl": "func EncodeLog[M any](log Log[M]) ([]byte, error)",
          "doc": "EncodeLog validates log and writes it as deterministic 2-space YAML.\n",
          "file": "pkg/undo/log.go",
          "line": 66
        }
      ],
      "types": [
        {
          "name": "Func",
          "anchor": "Func",
          "decl": "type Func[S any] struct {\n\tDo   func(state S) // makes the change\n\tUndo func(state S) // takes the change back\n}",
          "doc": "Func is a Move made of two functions, for moves that close over what they change.\n",
          "file": "pkg/undo/undo.go",
          "line": 17,
          "members": [
            {
              "name": "Do",
              "anchor": "Func.Do",
              "kind": "field",
              "doc": "makes the change"
            },
            {
              "name": "Undo",
              "anchor": "Func.Undo",
              "kind": "field",
              "doc": "takes the change back"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Func.Apply",
              "recv": "Func[S]",
              "decl": "func (f Func[S]) Apply(state S)",
              "doc": "Apply calls f.Do.\n",
              "file": "pkg/undo/undo.go",
              "line": 23
            },
            {
              "name": "Revert",
              "anchor": "Func.Revert",
              "recv": "Func[S]",
              "decl": "func (f Func[S]) Revert(state S)",
              "doc": "Revert calls f.Undo.\n",
              "file": "pkg/undo/undo.go",
              "line": 26
            }
          ]
        },
        {
          "name": "Group",
          "anchor": "Group",
          "decl": "type Group[S any] []Move[S]",
          "doc": "Group is a Move made of several moves that undo and redo as one, such as a turn that moves a piece and captures another. It applies its moves in order and reverts them in reverse order.\n",
          "file": "pkg/undo/undo.go",
          "line": 29,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Apply",
              "anchor": "Group.Apply",
              "recv": "Group[S]",
              "decl": "func (g Group[S]) Apply(state S)",
              "doc": "Apply applies each move of g in order.\n",
              "file": "pkg/undo/undo.go",
              "line": 32
            },
            {
              "name": "Revert",
              "anchor": "Group.Revert",
              "recv": "Group[S]",
              "decl": "func (g Group[S]) Revert(state S)",
              "doc": "Revert reverts each move of g in reverse order.\n",
              "file": "pkg/undo/undo.go",
              "line": 39
            }
          ]
        },
        {
          "name": "History",
          "anchor": "History",
          "decl": "type History[S any, M Move[S]] struct {\n\t// OnChange, when set, is called after each call that applies or reverts moves or forgets them, so a game can update its undo and redo buttons.\n\tOnChange func()\n\t// contains filtered or unexported fields\n}",
          "doc": "History holds a game's state and the moves made on it, with unlimited linear undo and redo.\n\nM is the type of the moves: Move[S] for moves of several kinds, or one concrete move type, which lets the history be saved as a Log. A History is not safe for concurrent use.\n",
          "file": "pkg/undo/undo.go",
          "line": 48,
          "members": [
            {
              "name": "OnChange",
              "anchor": "History.OnChange",
              "kind": "field",
              "doc": "OnChange, when set, is called after each call that applies or reverts moves or forgets them, so a game can update its undo and redo buttons."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New[S any, M Move[S]](state S) *History[S, M]",
              "doc": "New returns an empty History over state, the game's starting state.\n",
              "file": "pkg/undo/undo.go",
              "line": 58
            },
            {
              "name": "Restore",
              "anchor": "Restore",
              "decl": "func Restore[S any, M Move[S]](state S, log Log[M]) (*History[S, M], error)",
              "doc": "Restore returns a History over state, the starting state the log was recorded from (the state given to New, or the state at the history's last Clear), with the log's moves: it applies the first log.Applied moves to state in order and keeps the rest for Redo. OnChange is not called.\n",
              "file": "pkg/undo/log.go",
              "line": 53
            }
          ],
          "methods": [
            {
              "name": "Applied",
              "anchor": "History.Applied",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) Applied() int",
              "doc": "Applied returns the number of moves applied, which is the index of the move Redo would apply.\n",
              "file": "pkg/undo/undo.go",
              "line": 131
            },
            {
              "name": "CanRedo",
              "anchor": "History.CanRedo",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) CanRedo() bool",
              "doc": "CanRedo reports whether Redo has a move to apply again.\n",
              "file": "pkg/undo/undo.go",
              "line": 125
            },
            {
              "name": "CanUndo",
              "anchor": "History.CanUndo",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) CanUndo() bool",
              "doc": "CanUndo reports whether Undo has a move to revert.\n",
              "file": "pkg/undo/undo.go",
              "line": 122
            },
            {
              "name": "Clear",
              "anchor": "History.Clear",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) Clear()",
              "doc": "Clear forgets every move and keeps the state as it is, which becomes the new starting state. A Log taken after Clear holds only the later moves, so a game that saves it must also save the state at the Clear and pass that to Restore.\n",
              "file": "pkg/undo/undo.go",
              "line": 139
            },
            {
              "name": "Do",
              "anchor": "History.Do",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) Do(m M)",
              "doc": "Do applies m to the state and records it as the latest move, discarding any moves that were undone and not redone. It panics, before applying anything, if m is nil or is a Group holding a nil move; a nil or empty Group is a valid move that changes nothing.\n",
              "file": "pkg/undo/undo.go",
              "line": 66
            },
            {
              "name": "Len",
              "anchor": "History.Len",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) Len() int",
              "doc": "Len returns the number of moves recorded, applied and undone.\n",
              "file": "pkg/undo/undo.go",
              "line": 128
            },
            {
              "name": "Log",
              "anchor": "History.Log",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) Log() Log[M]",
              "doc": "Log returns the history's moves as a Log of the current version. The slice is a copy, but moves that are pointers are shared with the history.\n",
              "file": "pkg/undo/log.go",
              "line": 32
            },
            {
              "name": "Moves",
              "anchor": "History.Moves",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) Moves() []M",
              "doc": "Moves returns a copy of the recorded moves in the order they were made; the first Applied of them are applied.\n",
              "file": "pkg/undo/undo.go",
              "line": 134
            },
            {
              "name": "Redo",
              "anchor": "History.Redo",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) Redo() bool",
              "doc": "Redo applies the latest undone move again and reports whether there was one.\n",
              "file": "pkg/undo/undo.go",
              "line": 92
            },
            {
              "name": "Seek",
              "anchor": "History.Seek",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) Seek(n int)",
              "doc": "Seek undoes or redoes moves until n moves are applied: Seek(0) returns to the starting state and Seek(h.Len()) redoes every move. It panics if n is outside [0, h.Len()].\n",
              "file": "pkg/undo/undo.go",
              "line": 103
            },
            {
              "name": "State",
              "anchor": "History.State",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) State() S",
              "doc": "State returns the state the history's moves change.\n",
              "file": "pkg/undo/undo.go",
              "line": 63
            },
            {
              "name": "Undo",
              "anchor": "History.Undo",
              "recv": "*History[S, M]",
              "decl": "func (h *History[S, M]) Undo() bool",
              "doc": "Undo reverts the latest applied move and reports whether there was one.\n",
              "file": "pkg/undo/undo.go",
              "line": 81
            }
          ]
        },
        {
          "name": "Log",
          "anchor": "Log",
          "decl": "type Log[M any] struct {\n\tVersion int `yaml:\"version\"` // LogVersion\n\tApplied int `yaml:\"applied\"` // moves applied, in [0, len(Moves)]\n\tMoves   []M `yaml:\"moves\"`   // every recorded move, applied first\n}",
          "doc": "Log is the saved form of a History: its moves in order and how many of them are applied. It does not hold the starting state, which is the state given to New or, after a Clear, the state at that Clear; a game saves that state with the log and passes it to Restore. It is written as YAML with its fields in the order below, all three required:\n\n\tversion: 1\n\tapplied: 2\n\tmoves:\n\t  - dir: left\n\t  - dir: up\n\t  - dir: up\n\nM must be a concrete type the YAML package encodes and decodes, keeping what a move records during Apply in unexported fields or fields tagged `yaml:\"-\"`, so a Log holds only what a player chose.\n",
          "file": "pkg/undo/log.go",
          "line": 25,
          "members": [
            {
              "name": "Version",
              "anchor": "Log.Version",
              "kind": "field",
              "doc": "LogVersion"
            },
            {
              "name": "Applied",
              "anchor": "Log.Applied",
              "kind": "field",
              "doc": "moves applied, in [0, len(Moves)]"
            },
            {
              "name": "Moves",
              "anchor": "Log.Moves",
              "kind": "field",
              "doc": "every recorded move, applied first"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DecodeLog",
              "anchor": "DecodeLog",
              "decl": "func DecodeLog[M any](data []byte) (Log[M], error)",
              "doc": "DecodeLog reads a YAML Log and validates it. Missing version, applied or moves keys, a null moves list, unknown fields, in the log or in its moves, and trailing YAML documents are refused.\n",
              "file": "pkg/undo/log.go",
              "line": 87
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "Log.Validate",
              "recv": "Log[M]",
              "decl": "func (l Log[M]) Validate() error",
              "doc": "Validate reports whether l has the current version and an applied count within its moves.\n",
              "file": "pkg/undo/log.go",
              "line": 37
            }
          ]
        },
        {
          "name": "Move",
          "anchor": "Move",
          "decl": "type Move[S any] interface {\n\tApply(state S)\n\tRevert(state S)\n}",
          "doc": "Move is one reversible change to a game's state S, which is usually a pointer to the game's board or world.\n\nApply makes the change and Revert takes it back; Revert(s) after Apply(s) must leave s exactly as it was before Apply. Apply may store what it needs to revert in the move itself (a move with a pointer receiver), since a History applies a move again on Redo only to the same state it first saw. Neither method may call the History that holds the move.\n",
          "file": "pkg/undo/undo.go",
          "line": 11,
          "members": [
            {
              "name": "Apply",
              "anchor": "Move.Apply",
              "kind": "method",
              "doc": ""
            },
            {
              "name": "Revert",
              "anchor": "Move.Revert",
              "kind": "method",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/vehicle",
      "name": "vehicle",
      "dir": "pkg/vehicle",
      "page": "pkg/vehicle",
      "synopsis": "Package vehicle simulates raycast cars on a physics3d.World: wheel colliders cast from the chassis, spring-damper suspension, longitudinal and lateral tire friction inside a friction circle, and engine, brake, steering and handbrake input.",
      "doc": "Package vehicle simulates raycast cars on a physics3d.World: wheel colliders cast from the chassis, spring-damper suspension, longitudinal and lateral tire friction inside a friction circle, and engine, brake, steering and handbrake input. It also tracks race checkpoints and laps on trigger bodies and records ghost replays of a lap as YAML.\n\n# Model\n\nA Vehicle is one dynamic physics3d.Body (the chassis, whose Pos is the center of mass) plus a list of wheels. Every fixed step, Vehicle.Step casts one ray per wheel from its anchor along the chassis' down axis, turns the compression into a suspension force, and applies tire impulses at the contact point before World.Step integrates the chassis. Wheels have no bodies of their own, so they cannot snag on geometry and cost one raycast each.\n\nVehicles face -Z in local space, with +X to the right and +Y up, matching the conventions in the 3D models guide.\n\n# Files\n\nA car's tuning is a Config, written by people as versioned YAML (ParseConfig and EncodeConfig). A lap's ghost is a Ghost, written by the game as versioned YAML (ParseGhost and EncodeGhost). Both refuse unknown fields, encode deterministically and round-trip without change.\n\n# Determinism\n\nVehicle.Step uses no maps, wall clock or randomness and visits wheels in Config order, so the same Config, start pose and per-step Input on the same World produce bit-identical poses, lap times and ghosts across runs. Feeding Input from a replay.Player (through Controls.Read) reproduces a recorded drive.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "ConfigVersion",
              "anchor": "ConfigVersion"
            }
          ],
          "decl": "const ConfigVersion = 1",
          "doc": "ConfigVersion is the Config schema version written by EncodeConfig and accepted by ParseConfig.\n",
          "file": "pkg/vehicle/config.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "GhostVersion",
              "anchor": "GhostVersion"
            }
          ],
          "decl": "const GhostVersion = 1",
          "doc": "GhostVersion is the Ghost schema version written by EncodeGhost and accepted by ParseGhost.\n",
          "file": "pkg/vehicle/ghost.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "SnapshotVersion",
              "anchor": "SnapshotVersion"
            }
          ],
          "decl": "const SnapshotVersion = 1",
          "doc": "SnapshotVersion is the schema version stored in Snapshot.\n",
          "file": "pkg/vehicle/snapshot.go",
          "line": 12
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "AddCheckpoint",
          "anchor": "AddCheckpoint",
          "decl": "func AddCheckpoint(world *physics3d.World, shape physics3d.Shape, pos physics3d.Vec3) *physics3d.Body",
          "doc": "AddCheckpoint adds a static trigger body with shape at pos to world and returns it, ready to pass to NewRace.\n",
          "file": "pkg/vehicle/race.go",
          "line": 13
        },
        {
          "name": "EncodeConfig",
          "anchor": "EncodeConfig",
          "decl": "func EncodeConfig(cfg Config) ([]byte, error)",
          "doc": "EncodeConfig validates cfg and serializes it as deterministic 2-space YAML that ParseConfig reads back unchanged.\n",
          "file": "pkg/vehicle/config.go",
          "line": 280
        },
        {
          "name": "EncodeGhost",
          "anchor": "EncodeGhost",
          "decl": "func EncodeGhost(g *Ghost) ([]byte, error)",
          "doc": "EncodeGhost validates g and serializes it as deterministic 2-space YAML, each frame's position and rotation on a flow-style line of its own, that ParseGhost reads back unchanged.\n",
          "file": "pkg/vehicle/ghost.go",
          "line": 157
        }
      ],
      "types": [
        {
          "name": "Config",
          "anchor": "Config",
          "decl": "type Config struct {\n\t// Version is the schema version; it must equal ConfigVersion.\n\tVersion int `yaml:\"version\"`\n\t// Name optionally labels the car.\n\tName string `yaml:\"name,omitempty\"`\n\t// Mass is the chassis mass in kilograms (> 0).\n\tMass float32 `yaml:\"mass\"`\n\t// ChassisHalfExtents are the half sizes of the chassis collision box (each > 0).\n\tChassisHalfExtents [3]float32 `yaml:\"chassisHalfExtents,flow\"`\n\t// ChassisOffset moves the chassis box relative to the center of mass; a positive Y lowers the center of mass inside the box, which steadies the car.\n\tChassisOffset [3]float32 `yaml:\"chassisOffset,flow\"`\n\t// EngineForce is the total forward drive force at full throttle and standstill, split evenly over the drive wheels (>= 0).\n\tEngineForce float32 `yaml:\"engineForce\"`\n\t// ReverseForce is the total drive force at full reverse throttle (>= 0).\n\tReverseForce float32 `yaml:\"reverseForce\"`\n\t// MaxSpeed is the forward speed in m/s at which the engine force fades to zero (> 0).\n\tMaxSpeed float32 `yaml:\"maxSpeed\"`\n\t// MaxReverseSpeed is the reverse speed in m/s at which the reverse force fades to zero (> 0).\n\tMaxReverseSpeed float32 `yaml:\"maxReverseSpeed\"`\n\t// BrakeForce is the total braking force at full brake, split evenly over the brake wheels (>= 0).\n\tBrakeForce float32 `yaml:\"brakeForce\"`\n\t// HandbrakeGrip scales the lateral grip of handbrake wheels while the handbrake is held, in [0, 1]; lower values slide more.\n\tHandbrakeGrip float32 `yaml:\"handbrakeGrip\"`\n\t// MaxSteerAngle is the largest steering angle of steered wheels in degrees, in [0, 80].\n\tMaxSteerAngle float32 `yaml:\"maxSteerAngle\"`\n\t// SteerRate is how fast steered wheels turn toward the requested angle, in degrees per second (> 0).\n\tSteerRate float32 `yaml:\"steerRate\"`\n\t// Drag is the aerodynamic drag coefficient: the drag force is Drag * speed² against the velocity (>= 0).\n\tDrag float32 `yaml:\"drag\"`\n\t// RollingResistance is the rolling resistance coefficient applied against each grounded wheel's rolling speed, as a fraction of its load (>= 0).\n\tRollingResistance float32 `yaml:\"rollingResistance\"`\n\t// RollInfluence scales how much lateral tire force rolls the chassis, in [0, 1]: 0 applies it at the center of mass' height, 1 at the contact point.\n\tRollInfluence float32 `yaml:\"rollInfluence\"`\n\t// AngularDamping damps the chassis' angular velocity (>= 0), as physics3d.Body.AngularDamping.\n\tAngularDamping float32 `yaml:\"angularDamping\"`\n\t// Wheels lists the wheels in a fixed order (1 to 32, unique names).\n\tWheels []WheelConfig `yaml:\"wheels\"`\n}",
          "doc": "Config is a car's tuning: chassis mass and box, engine, brakes, steering, drag and wheels. Lengths are meters, masses kilograms, forces newtons and angles degrees.\n\nPositions are in chassis space relative to the center of mass (the chassis body's Pos), with -Z forward, +X right and +Y up.\n",
          "file": "pkg/vehicle/config.go",
          "line": 22,
          "members": [
            {
              "name": "Version",
              "anchor": "Config.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal ConfigVersion."
            },
            {
              "name": "Name",
              "anchor": "Config.Name",
              "kind": "field",
              "doc": "Name optionally labels the car."
            },
            {
              "name": "Mass",
              "anchor": "Config.Mass",
              "kind": "field",
              "doc": "Mass is the chassis mass in kilograms (> 0)."
            },
            {
              "name": "ChassisHalfExtents",
              "anchor": "Config.ChassisHalfExtents",
              "kind": "field",
              "doc": "ChassisHalfExtents are the half sizes of the chassis collision box (each > 0)."
            },
            {
              "name": "ChassisOffset",
              "anchor": "Config.ChassisOffset",
              "kind": "field",
              "doc": "ChassisOffset moves the chassis box relative to the center of mass; a positive Y lowers the center of mass inside the box, which steadies the car."
            },
            {
              "name": "EngineForce",
              "anchor": "Config.EngineForce",
              "kind": "field",
              "doc": "EngineForce is the total forward drive force at full throttle and standstill, split evenly over the drive wheels (>= 0)."
            },
            {
              "name": "ReverseForce",
              "anchor": "Config.ReverseForce",
              "kind": "field",
              "doc": "ReverseForce is the total drive force at full reverse throttle (>= 0)."
            },
            {
              "name": "MaxSpeed",
              "anchor": "Config.MaxSpeed",
              "kind": "field",
              "doc": "MaxSpeed is the forward speed in m/s at which the engine force fades to zero (> 0)."
            },
            {
              "name": "MaxReverseSpeed",
              "anchor": "Config.MaxReverseSpeed",
              "kind": "field",
              "doc": "MaxReverseSpeed is the reverse speed in m/s at which the reverse force fades to zero (> 0)."
            },
            {
              "name": "BrakeForce",
              "anchor": "Config.BrakeForce",
              "kind": "field",
              "doc": "BrakeForce is the total braking force at full brake, split evenly over the brake wheels (>= 0)."
            },
            {
              "name": "HandbrakeGrip",
              "anchor": "Config.HandbrakeGrip",
              "kind": "field",
              "doc": "HandbrakeGrip scales the lateral grip of handbrake wheels while the handbrake is held, in [0, 1]; lower values slide more."
            },
            {
              "name": "MaxSteerAngle",
              "anchor": "Config.MaxSteerAngle",
              "kind": "field",
              "doc": "MaxSteerAngle is the largest steering angle of steered wheels in degrees, in [0, 80]."
            },
            {
              "name": "SteerRate",
              "anchor": "Config.SteerRate",
              "kind": "field",
              "doc": "SteerRate is how fast steered wheels turn toward the requested angle, in degrees per second (> 0)."
            },
            {
              "name": "Drag",
              "anchor": "Config.Drag",
              "kind": "field",
              "doc": "Drag is the aerodynamic drag coefficient: the drag force is Drag * speed² against the velocity (>= 0)."
            },
            {
              "name": "RollingResistance",
              "anchor": "Config.RollingResistance",
              "kind": "field",
              "doc": "RollingResistance is the rolling resistance coefficient applied against each grounded wheel's rolling speed, as a fraction of its load (>= 0)."
            },
            {
              "name": "RollInfluence",
              "anchor": "Config.RollInfluence",
              "kind": "field",
              "doc": "RollInfluence scales how much lateral tire force rolls the chassis, in [0, 1]: 0 applies it at the center of mass' height, 1 at the contact point."
            },
            {
              "name": "AngularDamping",
              "anchor": "Config.AngularDamping",
              "kind": "field",
              "doc": "AngularDamping damps the chassis' angular velocity (>= 0), as physics3d.Body.AngularDamping."
            },
            {
              "name": "Wheels",
              "anchor": "Config.Wheels",
              "kind": "field",
              "doc": "Wheels lists the wheels in a fixed order (1 to 32, unique names)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseConfig",
              "anchor": "ParseConfig",
              "decl": "func ParseConfig(data []byte) (Config, error)",
              "doc": "ParseConfig decodes a YAML car Config and validates it. Unknown fields and trailing YAML documents are rejected.\n",
              "file": "pkg/vehicle/config.go",
              "line": 268
            },
            {
              "name": "ReferenceConfig",
              "anchor": "ReferenceConfig",
              "decl": "func ReferenceConfig() Config",
              "doc": "ReferenceConfig returns the tuning of the reference car: a 1200 kg rear-wheel-drive hatchback with four wheels, about 0.5 g of acceleration, 1 g of braking and a 40 m/s top speed.\n",
              "file": "pkg/vehicle/config.go",
              "line": 90
            }
          ],
          "methods": [
            {
              "name": "Validate",
              "anchor": "Config.Validate",
              "recv": "*Config",
              "decl": "func (cfg *Config) Validate() error",
              "doc": "Validate checks that cfg uses ConfigVersion and that every value is finite and within the range its field documents.\n",
              "file": "pkg/vehicle/config.go",
              "line": 135
            }
          ]
        },
        {
          "name": "Controls",
          "anchor": "Controls",
          "decl": "type Controls struct {\n\t// Throttle is the axis read into Input.Throttle, in [-1, 1].\n\tThrottle string\n\t// Brake is the axis read into Input.Brake, in [0, 1].\n\tBrake string\n\t// Steer is the axis read into Input.Steer, in [-1, 1] with positive steering right.\n\tSteer string\n\t// Handbrake is the action whose pressed state sets Input.Handbrake.\n\tHandbrake string\n}",
          "doc": "Controls names the input axes and action a car is driven with, so the same driving code reads live input (*input.Actions), a replay.Recorder while recording, or a replay.Player while playing a recording back.\n",
          "file": "pkg/vehicle/controls.go",
          "line": 6,
          "members": [
            {
              "name": "Throttle",
              "anchor": "Controls.Throttle",
              "kind": "field",
              "doc": "Throttle is the axis read into Input.Throttle, in [-1, 1]."
            },
            {
              "name": "Brake",
              "anchor": "Controls.Brake",
              "kind": "field",
              "doc": "Brake is the axis read into Input.Brake, in [0, 1]."
            },
            {
              "name": "Steer",
              "anchor": "Controls.Steer",
              "kind": "field",
              "doc": "Steer is the axis read into Input.Steer, in [-1, 1] with positive steering right."
            },
            {
              "name": "Handbrake",
              "anchor": "Controls.Handbrake",
              "kind": "field",
              "doc": "Handbrake is the action whose pressed state sets Input.Handbrake."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultControls",
              "anchor": "DefaultControls",
              "decl": "func DefaultControls() Controls",
              "doc": "DefaultControls returns Controls reading the axes \"throttle\", \"brake\" and \"steer\" and the action \"handbrake\".\n",
              "file": "pkg/vehicle/controls.go",
              "line": 18
            }
          ],
          "methods": [
            {
              "name": "Actions",
              "anchor": "Controls.Actions",
              "recv": "Controls",
              "decl": "func (c Controls) Actions() []string",
              "doc": "Actions returns the action names in c for replay.NewRecorder; an empty Handbrake name is left out.\n",
              "file": "pkg/vehicle/controls.go",
              "line": 34
            },
            {
              "name": "Axes",
              "anchor": "Controls.Axes",
              "recv": "Controls",
              "decl": "func (c Controls) Axes() []string",
              "doc": "Axes returns the axis names in c, in the order Throttle, Brake, Steer, for replay.NewRecorder; empty names are left out.\n",
              "file": "pkg/vehicle/controls.go",
              "line": 23
            },
            {
              "name": "Read",
              "anchor": "Controls.Read",
              "recv": "Controls",
              "decl": "func (c Controls) Read(src replay.ActionSource) Input",
              "doc": "Read samples src into an Input, clamping each axis to its range and treating NaN as 0. An empty name reads as zero or released. Read does not call src.Step.\n",
              "file": "pkg/vehicle/controls.go",
              "line": 42
            }
          ]
        },
        {
          "name": "Ghost",
          "anchor": "Ghost",
          "decl": "type Ghost struct {\n\t// Version is the schema version; it must equal GhostVersion.\n\tVersion int `yaml:\"version\"`\n\t// Name optionally labels the ghost, such as the racer or track.\n\tName string `yaml:\"name,omitempty\"`\n\t// Rate is the fixed step rate the ghost was recorded at, in steps per second (> 0).\n\tRate int `yaml:\"rate\"`\n\t// Interval is the number of steps between frames (>= 1).\n\tInterval int `yaml:\"interval\"`\n\t// LapSteps is the recorded lap's duration in steps, or 0 when unknown. When set, the last frame is at step LapSteps, so a lap whose length is not a multiple of Interval still ends on the finish line.\n\tLapSteps int `yaml:\"lapSteps,omitempty\"`\n\t// Frames holds the sampled poses; frame i is at step i * Interval, except that the last frame is at step LapSteps when LapSteps is set.\n\tFrames []GhostFrame `yaml:\"frames\"`\n}",
          "doc": "Ghost is a recorded lap: the chassis pose sampled every Interval steps, played back as a translucent rival. It is pose data, so playing it needs no physics and costs nothing per frame beyond drawing.\n",
          "file": "pkg/vehicle/ghost.go",
          "line": 18,
          "members": [
            {
              "name": "Version",
              "anchor": "Ghost.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal GhostVersion."
            },
            {
              "name": "Name",
              "anchor": "Ghost.Name",
              "kind": "field",
              "doc": "Name optionally labels the ghost, such as the racer or track."
            },
            {
              "name": "Rate",
              "anchor": "Ghost.Rate",
              "kind": "field",
              "doc": "Rate is the fixed step rate the ghost was recorded at, in steps per second (> 0)."
            },
            {
              "name": "Interval",
              "anchor": "Ghost.Interval",
              "kind": "field",
              "doc": "Interval is the number of steps between frames (>= 1)."
            },
            {
              "name": "LapSteps",
              "anchor": "Ghost.LapSteps",
              "kind": "field",
              "doc": "LapSteps is the recorded lap's duration in steps, or 0 when unknown. When set, the last frame is at step LapSteps, so a lap whose length is not a multiple of Interval still ends on the finish line."
            },
            {
              "name": "Frames",
              "anchor": "Ghost.Frames",
              "kind": "field",
              "doc": "Frames holds the sampled poses; frame i is at step i * Interval, except that the last frame is at step LapSteps when LapSteps is set."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseGhost",
              "anchor": "ParseGhost",
              "decl": "func ParseGhost(data []byte) (*Ghost, error)",
              "doc": "ParseGhost decodes a YAML Ghost and validates it. Unknown fields and trailing YAML documents are rejected.\n",
              "file": "pkg/vehicle/ghost.go",
              "line": 141
            }
          ],
          "methods": [
            {
              "name": "Pose",
              "anchor": "Ghost.Pose",
              "recv": "*Ghost",
              "decl": "func (g *Ghost) Pose(step float64) (physics3d.Vec3, physics3d.Quat)",
              "doc": "Pose returns the ghost's pose at step, which may be fractional to interpolate between fixed steps (pass the step plus game.Loop's draw alpha). Positions are interpolated linearly and orientations spherically; steps outside the recording clamp to its first or last frame. An empty ghost returns the origin and identity.\n",
              "file": "pkg/vehicle/ghost.go",
              "line": 53
            },
            {
              "name": "Steps",
              "anchor": "Ghost.Steps",
              "recv": "*Ghost",
              "decl": "func (g *Ghost) Steps() int",
              "doc": "Steps returns the number of steps the ghost's frames span: LapSteps when it is set, otherwise (len(Frames) - 1) * Interval.\n",
              "file": "pkg/vehicle/ghost.go",
              "line": 42
            },
            {
              "name": "Validate",
              "anchor": "Ghost.Validate",
              "recv": "*Ghost",
              "decl": "func (g *Ghost) Validate() error",
              "doc": "Validate checks that g uses GhostVersion, has a positive rate and interval, at most an hour of frames at 60 Hz spanning at most math.MaxInt32 steps, a LapSteps that falls within the last Interval before the last frame when it is set, and finite poses with non-zero quaternions.\n",
              "file": "pkg/vehicle/ghost.go",
              "line": 90
            }
          ]
        },
        {
          "name": "GhostFrame",
          "anchor": "GhostFrame",
          "decl": "type GhostFrame struct {\n\t// P is the position (x, y, z).\n\tP [3]float32 `yaml:\"p,flow\"`\n\t// R is the orientation quaternion (x, y, z, w).\n\tR [4]float32 `yaml:\"r,flow\"`\n}",
          "doc": "GhostFrame is one sampled chassis pose.\n",
          "file": "pkg/vehicle/ghost.go",
          "line": 34,
          "members": [
            {
              "name": "P",
              "anchor": "GhostFrame.P",
              "kind": "field",
              "doc": "P is the position (x, y, z)."
            },
            {
              "name": "R",
              "anchor": "GhostFrame.R",
              "kind": "field",
              "doc": "R is the orientation quaternion (x, y, z, w)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GhostRecorder",
          "anchor": "GhostRecorder",
          "decl": "type GhostRecorder struct {\n\t// Interval is the number of steps between frames; values < 1 record every step.\n\tInterval int\n\t// contains filtered or unexported fields\n}",
          "doc": "GhostRecorder samples a body's pose every Interval steps into a Ghost.\n",
          "file": "pkg/vehicle/ghost.go",
          "line": 169,
          "members": [
            {
              "name": "Interval",
              "anchor": "GhostRecorder.Interval",
              "kind": "field",
              "doc": "Interval is the number of steps between frames; values < 1 record every step."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Finish",
              "anchor": "GhostRecorder.Finish",
              "recv": "*GhostRecorder",
              "decl": "func (r *GhostRecorder) Finish(pos physics3d.Vec3, rot physics3d.Quat)",
              "doc": "Finish samples pos and rot as the recording's last frame, even when the current step falls between Interval samples, then advances one step. Call it instead of Record on the step the lap ends, such as from Race.OnLap, and pass the lap's step count to Ghost, so the ghost ends exactly on the finish line.\n",
              "file": "pkg/vehicle/ghost.go",
              "line": 194
            },
            {
              "name": "Ghost",
              "anchor": "GhostRecorder.Ghost",
              "recv": "*GhostRecorder",
              "decl": "func (r *GhostRecorder) Ghost(rate, lapSteps int) *Ghost",
              "doc": "Ghost returns a copy of the recorded frames as a Ghost at rate steps per second, with LapSteps set to lapSteps: the step of the last frame, which is Steps() - 1 after Finish, or 0 when unknown.\n",
              "file": "pkg/vehicle/ghost.go",
              "line": 211
            },
            {
              "name": "Record",
              "anchor": "GhostRecorder.Record",
              "recv": "*GhostRecorder",
              "decl": "func (r *GhostRecorder) Record(pos physics3d.Vec3, rot physics3d.Quat)",
              "doc": "Record samples pos and rot if the current step falls on Interval, then advances one step. Call it once per fixed step, after World.Step, and once when the lap starts.\n",
              "file": "pkg/vehicle/ghost.go",
              "line": 178
            },
            {
              "name": "Reset",
              "anchor": "GhostRecorder.Reset",
              "recv": "*GhostRecorder",
              "decl": "func (r *GhostRecorder) Reset()",
              "doc": "Reset discards the recorded frames, such as when a new lap starts.\n",
              "file": "pkg/vehicle/ghost.go",
              "line": 205
            },
            {
              "name": "Steps",
              "anchor": "GhostRecorder.Steps",
              "recv": "*GhostRecorder",
              "decl": "func (r *GhostRecorder) Steps() int",
              "doc": "Steps returns how many steps were recorded since the last Reset.\n",
              "file": "pkg/vehicle/ghost.go",
              "line": 202
            }
          ]
        },
        {
          "name": "Input",
          "anchor": "Input",
          "decl": "type Input struct {\n\t// Throttle in [-1, 1]: positive drives forward with EngineForce, negative drives backward with ReverseForce.\n\tThrottle float32\n\t// Brake in [0, 1] scales BrakeForce on brake wheels.\n\tBrake float32\n\t// Steer in [-1, 1]: positive steers right, negative left.\n\tSteer float32\n\t// Handbrake locks handbrake wheels and lowers their lateral grip to HandbrakeGrip.\n\tHandbrake bool\n}",
          "doc": "Input is one step's driver input.\n",
          "file": "pkg/vehicle/vehicle.go",
          "line": 11,
          "members": [
            {
              "name": "Throttle",
              "anchor": "Input.Throttle",
              "kind": "field",
              "doc": "Throttle in [-1, 1]: positive drives forward with EngineForce, negative drives backward with ReverseForce."
            },
            {
              "name": "Brake",
              "anchor": "Input.Brake",
              "kind": "field",
              "doc": "Brake in [0, 1] scales BrakeForce on brake wheels."
            },
            {
              "name": "Steer",
              "anchor": "Input.Steer",
              "kind": "field",
              "doc": "Steer in [-1, 1]: positive steers right, negative left."
            },
            {
              "name": "Handbrake",
              "anchor": "Input.Handbrake",
              "kind": "field",
              "doc": "Handbrake locks handbrake wheels and lowers their lateral grip to HandbrakeGrip."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "LapEvent",
          "anchor": "LapEvent",
          "decl": "type LapEvent struct {\n\t// Racer is the racer that completed the lap.\n\tRacer *Racer\n\t// Lap is the 1-based number of the lap just completed.\n\tLap int\n\t// Steps is the lap's duration in steps.\n\tSteps int\n\t// Best reports whether the lap is the racer's fastest so far.\n\tBest bool\n\t// Finished reports whether this was the racer's final lap.\n\tFinished bool\n}",
          "doc": "LapEvent reports a completed lap to Race.OnLap.\n",
          "file": "pkg/vehicle/race.go",
          "line": 45,
          "members": [
            {
              "name": "Racer",
              "anchor": "LapEvent.Racer",
              "kind": "field",
              "doc": "Racer is the racer that completed the lap."
            },
            {
              "name": "Lap",
              "anchor": "LapEvent.Lap",
              "kind": "field",
              "doc": "Lap is the 1-based number of the lap just completed."
            },
            {
              "name": "Steps",
              "anchor": "LapEvent.Steps",
              "kind": "field",
              "doc": "Steps is the lap's duration in steps."
            },
            {
              "name": "Best",
              "anchor": "LapEvent.Best",
              "kind": "field",
              "doc": "Best reports whether the lap is the racer's fastest so far."
            },
            {
              "name": "Finished",
              "anchor": "LapEvent.Finished",
              "kind": "field",
              "doc": "Finished reports whether this was the racer's final lap."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Race",
          "anchor": "Race",
          "decl": "type Race struct {\n\t// Checkpoints are the trigger bodies in track order; index 0 is the start/finish line.\n\tCheckpoints []*physics3d.Body\n\t// Laps is the number of laps that finishes the race.\n\tLaps int\n\t// OnLap, when set, is called for every completed lap, in the order Observe sees them.\n\tOnLap func(LapEvent)\n\t// contains filtered or unexported fields\n}",
          "doc": "Race tracks racers through an ordered list of checkpoint triggers for a fixed number of laps.\n\nCheckpoint 0 is the start/finish line. Racers start a lap on the step they are added and must enter checkpoints 1, 2, ... in order and then checkpoint 0 to complete it; entering any other checkpoint is ignored, so cutting the track does not count.\n",
          "file": "pkg/vehicle/race.go",
          "line": 61,
          "members": [
            {
              "name": "Checkpoints",
              "anchor": "Race.Checkpoints",
              "kind": "field",
              "doc": "Checkpoints are the trigger bodies in track order; index 0 is the start/finish line."
            },
            {
              "name": "Laps",
              "anchor": "Race.Laps",
              "kind": "field",
              "doc": "Laps is the number of laps that finishes the race."
            },
            {
              "name": "OnLap",
              "anchor": "Race.OnLap",
              "kind": "field",
              "doc": "OnLap, when set, is called for every completed lap, in the order Observe sees them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRace",
              "anchor": "NewRace",
              "decl": "func NewRace(laps int, checkpoints ...*physics3d.Body) (*Race, error)",
              "doc": "NewRace returns a Race over checkpoints for laps laps. It needs at least two checkpoints, each a distinct trigger body, and at least one lap; a track that passes the same place twice, such as a figure eight's crossing, needs a trigger body for each pass.\n",
              "file": "pkg/vehicle/race.go",
              "line": 74
            }
          ],
          "methods": [
            {
              "name": "AddRacer",
              "anchor": "Race.AddRacer",
              "recv": "*Race",
              "decl": "func (r *Race) AddRacer(body *physics3d.Body, name string) *Racer",
              "doc": "AddRacer adds body as a racer whose first lap starts at the current step, heading for checkpoint 1.\n",
              "file": "pkg/vehicle/race.go",
              "line": 94
            },
            {
              "name": "Observe",
              "anchor": "Race.Observe",
              "recv": "*Race",
              "decl": "func (r *Race) Observe(ev physics3d.ContactEvent)",
              "doc": "Observe handles a trigger event from World.OnTrigger, advancing a racer whose body entered its next checkpoint. Other events are ignored, so Observe can sit behind other trigger handlers.\n",
              "file": "pkg/vehicle/race.go",
              "line": 110
            },
            {
              "name": "Racers",
              "anchor": "Race.Racers",
              "recv": "*Race",
              "decl": "func (r *Race) Racers() []*Racer",
              "doc": "Racers returns the racers in the order they were added.\n",
              "file": "pkg/vehicle/race.go",
              "line": 101
            },
            {
              "name": "Standings",
              "anchor": "Race.Standings",
              "recv": "*Race",
              "decl": "func (r *Race) Standings() []*Racer",
              "doc": "Standings returns the racers from first to last: finished racers by finish step, then the rest by laps completed and checkpoints passed, with ties kept in the order racers were added.\n",
              "file": "pkg/vehicle/race.go",
              "line": 151
            },
            {
              "name": "Step",
              "anchor": "Race.Step",
              "recv": "*Race",
              "decl": "func (r *Race) Step() int",
              "doc": "Step returns the current step: the number of Tick calls so far.\n",
              "file": "pkg/vehicle/race.go",
              "line": 104
            },
            {
              "name": "Tick",
              "anchor": "Race.Tick",
              "recv": "*Race",
              "decl": "func (r *Race) Tick()",
              "doc": "Tick advances the race clock by one fixed step. Call it once per step, before World.Step, so a checkpoint entered during that World.Step is timed at the new step.\n",
              "file": "pkg/vehicle/race.go",
              "line": 107
            }
          ]
        },
        {
          "name": "Racer",
          "anchor": "Racer",
          "decl": "type Racer struct {\n\t// Body is the racer's chassis, such as Vehicle.Body.\n\tBody *physics3d.Body\n\t// Name optionally labels the racer.\n\tName string\n\t// Laps is the number of laps completed.\n\tLaps int\n\t// Next is the index of the checkpoint the racer must reach next; 0 is the start/finish line.\n\tNext int\n\t// LapStart is the step the current lap began on.\n\tLapStart int\n\t// LastLap is the duration of the last completed lap in steps, or 0 before the first.\n\tLastLap int\n\t// BestLap is the duration of the fastest completed lap in steps, or 0 before the first.\n\tBestLap int\n\t// Finished reports whether the racer completed every lap.\n\tFinished bool\n\t// FinishStep is the step the racer finished on, when Finished.\n\tFinishStep int\n\t// contains filtered or unexported fields\n}",
          "doc": "Racer is one body's progress through a Race. Times are counted in fixed steps; multiply by the step duration for wall time.\n",
          "file": "pkg/vehicle/race.go",
          "line": 21,
          "members": [
            {
              "name": "Body",
              "anchor": "Racer.Body",
              "kind": "field",
              "doc": "Body is the racer's chassis, such as Vehicle.Body."
            },
            {
              "name": "Name",
              "anchor": "Racer.Name",
              "kind": "field",
              "doc": "Name optionally labels the racer."
            },
            {
              "name": "Laps",
              "anchor": "Racer.Laps",
              "kind": "field",
              "doc": "Laps is the number of laps completed."
            },
            {
              "name": "Next",
              "anchor": "Racer.Next",
              "kind": "field",
              "doc": "Next is the index of the checkpoint the racer must reach next; 0 is the start/finish line."
            },
            {
              "name": "LapStart",
              "anchor": "Racer.LapStart",
              "kind": "field",
              "doc": "LapStart is the step the current lap began on."
            },
            {
              "name": "LastLap",
              "anchor": "Racer.LastLap",
              "kind": "field",
              "doc": "LastLap is the duration of the last completed lap in steps, or 0 before the first."
            },
            {
              "name": "BestLap",
              "anchor": "Racer.BestLap",
              "kind": "field",
              "doc": "BestLap is the duration of the fastest completed lap in steps, or 0 before the first."
            },
            {
              "name": "Finished",
              "anchor": "Racer.Finished",
              "kind": "field",
              "doc": "Finished reports whether the racer completed every lap."
            },
            {
              "name": "FinishStep",
              "anchor": "Racer.FinishStep",
              "kind": "field",
              "doc": "FinishStep is the step the racer finished on, when Finished."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Snapshot",
          "anchor": "Snapshot",
          "decl": "type Snapshot struct {\n\tVersion int                 `json:\"version\"`\n\tBodyID  int                 `json:\"bodyID\"`\n\tRayMask physics3d.LayerMask `json:\"rayMask\"`\n\tInput   Input               `json:\"input\"`\n\tSteer   float32             `json:\"steer\"`\n\tWheels  []WheelSnapshot     `json:\"wheels,omitempty\"`\n}",
          "doc": "Snapshot captures the complete deterministic runtime state of a Vehicle\n(steering, input, ray mask, and every wheel's suspension and spin state).\nPair it with physics3d.World.Save/Restore to save and restore the full car\nsimulation cleanly as JSON.\n",
          "file": "pkg/vehicle/snapshot.go",
          "line": 32,
          "members": [
            {
              "name": "Version",
              "anchor": "Snapshot.Version",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "BodyID",
              "anchor": "Snapshot.BodyID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RayMask",
              "anchor": "Snapshot.RayMask",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Input",
              "anchor": "Snapshot.Input",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Steer",
              "anchor": "Snapshot.Steer",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Wheels",
              "anchor": "Snapshot.Wheels",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Vehicle",
          "anchor": "Vehicle",
          "decl": "type Vehicle struct {\n\t// Body is the chassis; its Pos is the center of mass.\n\tBody *physics3d.Body\n\t// Wheels holds each wheel's state, in Config.Wheels order.\n\tWheels []Wheel\n\t// RayMask selects the layers wheel rays hit (0 hits every layer). Trigger bodies and the chassis itself are always skipped.\n\tRayMask physics3d.LayerMask\n\t// contains filtered or unexported fields\n}",
          "doc": "Vehicle is a raycast car: a dynamic chassis body in a physics3d.World and the wheels that hold it up.\n",
          "file": "pkg/vehicle/vehicle.go",
          "line": 66,
          "members": [
            {
              "name": "Body",
              "anchor": "Vehicle.Body",
              "kind": "field",
              "doc": "Body is the chassis; its Pos is the center of mass."
            },
            {
              "name": "Wheels",
              "anchor": "Vehicle.Wheels",
              "kind": "field",
              "doc": "Wheels holds each wheel's state, in Config.Wheels order."
            },
            {
              "name": "RayMask",
              "anchor": "Vehicle.RayMask",
              "kind": "field",
              "doc": "RayMask selects the layers wheel rays hit (0 hits every layer). Trigger bodies and the chassis itself are always skipped."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(world *physics3d.World, cfg Config, pos physics3d.Vec3, rot physics3d.Quat) (*Vehicle, error)",
              "doc": "New validates cfg, adds the chassis to world at pos with orientation rot, and returns the Vehicle. The chassis rests on its suspension once World.Step runs; place pos about RestLength + Radius above the ground below each anchor.\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 90
            }
          ],
          "methods": [
            {
              "name": "Checksum",
              "anchor": "Vehicle.Checksum",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Checksum() uint64",
              "doc": "Checksum returns a deterministic 64-bit FNV-1a hash of v's chassis pose,\nvelocities, steering, input, and all wheel states.\n",
              "file": "pkg/vehicle/snapshot.go",
              "line": 133
            },
            {
              "name": "Config",
              "anchor": "Vehicle.Config",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Config() Config",
              "doc": "Config returns a copy of the car's tuning, as passed to New. The tuning is fixed for the Vehicle's lifetime; to drive with different tuning, remove the chassis from the world and create a new Vehicle.\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 126
            },
            {
              "name": "Forward",
              "anchor": "Vehicle.Forward",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Forward() physics3d.Vec3",
              "doc": "Forward returns the chassis' world-space forward axis (local -Z).\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 144
            },
            {
              "name": "Grounded",
              "anchor": "Vehicle.Grounded",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Grounded() int",
              "doc": "Grounded returns how many wheels touched the ground on the last Step.\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 159
            },
            {
              "name": "Input",
              "anchor": "Vehicle.Input",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Input() Input",
              "doc": "Input returns the input the next Step applies.\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 141
            },
            {
              "name": "Reset",
              "anchor": "Vehicle.Reset",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Reset(pos physics3d.Vec3, rot physics3d.Quat)",
              "doc": "Reset teleports the chassis to pos and rot, stops it, centers the steering and clears every wheel's contact, such as to respawn at a checkpoint.\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 170
            },
            {
              "name": "Restore",
              "anchor": "Vehicle.Restore",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Restore(snap Snapshot, world *physics3d.World) error",
              "doc": "Restore restores v's steering, input, ray mask, and wheel states from snap.\nWhen world is non-nil, v.Body and each wheel's Ground pointer are relinked by\nbody ID against world.Bodies().\n",
              "file": "pkg/vehicle/snapshot.go",
              "line": 80
            },
            {
              "name": "Save",
              "anchor": "Vehicle.Save",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Save() Snapshot",
              "doc": "Save captures a deep, deterministic, JSON-serializable snapshot of v.\n",
              "file": "pkg/vehicle/snapshot.go",
              "line": 42
            },
            {
              "name": "SetInput",
              "anchor": "Vehicle.SetInput",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) SetInput(in Input)",
              "doc": "SetInput sets the input the next Step applies, clamping each axis to its range and treating NaN as 0. Input stays in effect until it is set again.\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 133
            },
            {
              "name": "Speed",
              "anchor": "Vehicle.Speed",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Speed() float32",
              "doc": "Speed returns the chassis' signed speed along Forward in m/s; negative while reversing.\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 154
            },
            {
              "name": "Step",
              "anchor": "Vehicle.Step",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Step(world *physics3d.World, dt time.Duration)",
              "doc": "Step advances the car's steering, suspension and tires by dt and applies their impulses to the chassis (and to dynamic bodies under the wheels). Call it once per fixed step, before World.Step.\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 200
            },
            {
              "name": "Up",
              "anchor": "Vehicle.Up",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) Up() physics3d.Vec3",
              "doc": "Up returns the chassis' world-space up axis (local +Y).\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 149
            },
            {
              "name": "WheelTransform",
              "anchor": "Vehicle.WheelTransform",
              "recv": "*Vehicle",
              "decl": "func (v *Vehicle) WheelTransform(i int) (physics3d.Vec3, physics3d.Quat)",
              "doc": "WheelTransform returns wheel i's world-space center and orientation, including steering and spin, for drawing its mesh. The mesh's axle is its local X axis.\n",
              "file": "pkg/vehicle/vehicle.go",
              "line": 187
            }
          ]
        },
        {
          "name": "Wheel",
          "anchor": "Wheel",
          "decl": "type Wheel struct {\n\t// Config is a copy of the wheel's configuration, for reading; Step uses the Vehicle's own copy, so changing it has no effect.\n\tConfig WheelConfig\n\t// Contact reports whether the wheel's ray touched ground on the last step.\n\tContact bool\n\t// ContactPoint is the world-space point where the wheel touches the ground.\n\tContactPoint physics3d.Vec3\n\t// ContactNormal is the ground's surface normal at ContactPoint.\n\tContactNormal physics3d.Vec3\n\t// Ground is the body under the wheel, or nil for no contact or a triangle mesh or heightfield.\n\tGround *physics3d.Body\n\t// SuspensionLength is the current suspension length, from 0 (fully compressed) to RestLength (fully extended).\n\tSuspensionLength float32\n\t// SuspensionForce is the suspension force in newtons pushing the chassis up on the last step.\n\tSuspensionForce float32\n\t// SteerAngle is the wheel's steering angle in radians about the chassis' up axis; positive turns left.\n\tSteerAngle float32\n\t// SpinSpeed is the wheel's rolling speed in radians per second; positive rolls forward.\n\tSpinSpeed float32\n\t// SpinAngle is the accumulated rolling angle in radians, wrapped to [-π, π].\n\tSpinAngle float32\n\t// Sliding reports whether the tire force hit its friction limit on the last step, such as for skid marks or tire squeal.\n\tSliding bool\n}",
          "doc": "Wheel is one wheel's configuration and the state Vehicle.Step left it in.\n",
          "file": "pkg/vehicle/vehicle.go",
          "line": 40,
          "members": [
            {
              "name": "Config",
              "anchor": "Wheel.Config",
              "kind": "field",
              "doc": "Config is a copy of the wheel's configuration, for reading; Step uses the Vehicle's own copy, so changing it has no effect."
            },
            {
              "name": "Contact",
              "anchor": "Wheel.Contact",
              "kind": "field",
              "doc": "Contact reports whether the wheel's ray touched ground on the last step."
            },
            {
              "name": "ContactPoint",
              "anchor": "Wheel.ContactPoint",
              "kind": "field",
              "doc": "ContactPoint is the world-space point where the wheel touches the ground."
            },
            {
              "name": "ContactNormal",
              "anchor": "Wheel.ContactNormal",
              "kind": "field",
              "doc": "ContactNormal is the ground's surface normal at ContactPoint."
            },
            {
              "name": "Ground",
              "anchor": "Wheel.Ground",
              "kind": "field",
              "doc": "Ground is the body under the wheel, or nil for no contact or a triangle mesh or heightfield."
            },
            {
              "name": "SuspensionLength",
              "anchor": "Wheel.SuspensionLength",
              "kind": "field",
              "doc": "SuspensionLength is the current suspension length, from 0 (fully compressed) to RestLength (fully extended)."
            },
            {
              "name": "SuspensionForce",
              "anchor": "Wheel.SuspensionForce",
              "kind": "field",
              "doc": "SuspensionForce is the suspension force in newtons pushing the chassis up on the last step."
            },
            {
              "name": "SteerAngle",
              "anchor": "Wheel.SteerAngle",
              "kind": "field",
              "doc": "SteerAngle is the wheel's steering angle in radians about the chassis' up axis; positive turns left."
            },
            {
              "name": "SpinSpeed",
              "anchor": "Wheel.SpinSpeed",
              "kind": "field",
              "doc": "SpinSpeed is the wheel's rolling speed in radians per second; positive rolls forward."
            },
            {
              "name": "SpinAngle",
              "anchor": "Wheel.SpinAngle",
              "kind": "field",
              "doc": "SpinAngle is the accumulated rolling angle in radians, wrapped to [-π, π]."
            },
            {
              "name": "Sliding",
              "anchor": "Wheel.Sliding",
              "kind": "field",
              "doc": "Sliding reports whether the tire force hit its friction limit on the last step, such as for skid marks or tire squeal."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WheelConfig",
          "anchor": "WheelConfig",
          "decl": "type WheelConfig struct {\n\t// Name identifies the wheel, such as \"front-left\"; names are unique within a Config.\n\tName string `yaml:\"name\"`\n\t// Anchor is the top of the suspension in chassis space, relative to the center of mass.\n\tAnchor [3]float32 `yaml:\"anchor,flow\"`\n\t// Radius is the wheel radius (> 0).\n\tRadius float32 `yaml:\"radius\"`\n\t// RestLength is the suspension length with no load (>= 0); the wheel ray is RestLength + Radius long.\n\tRestLength float32 `yaml:\"restLength\"`\n\t// Stiffness is the spring rate in newtons per meter of compression (> 0).\n\tStiffness float32 `yaml:\"stiffness\"`\n\t// Damping is the damper rate in newton-seconds per meter (>= 0).\n\tDamping float32 `yaml:\"damping\"`\n\t// MaxForce caps the suspension force in newtons; 0 leaves it uncapped.\n\tMaxForce float32 `yaml:\"maxForce,omitempty\"`\n\t// Friction is the tire's friction coefficient: the combined tire force stays within Friction times the wheel's load (>= 0).\n\tFriction float32 `yaml:\"friction\"`\n\t// Steer marks a wheel turned by steering input.\n\tSteer bool `yaml:\"steer,omitempty\"`\n\t// Drive marks a wheel driven by the engine.\n\tDrive bool `yaml:\"drive,omitempty\"`\n\t// Brake marks a wheel slowed by brake input.\n\tBrake bool `yaml:\"brake,omitempty\"`\n\t// Handbrake marks a wheel locked by the handbrake.\n\tHandbrake bool `yaml:\"handbrake,omitempty\"`\n}",
          "doc": "WheelConfig describes one wheel: where its suspension is mounted, its spring and damper, its tire and which inputs it receives.\n",
          "file": "pkg/vehicle/config.go",
          "line": 62,
          "members": [
            {
              "name": "Name",
              "anchor": "WheelConfig.Name",
              "kind": "field",
              "doc": "Name identifies the wheel, such as \"front-left\"; names are unique within a Config."
            },
            {
              "name": "Anchor",
              "anchor": "WheelConfig.Anchor",
              "kind": "field",
              "doc": "Anchor is the top of the suspension in chassis space, relative to the center of mass."
            },
            {
              "name": "Radius",
              "anchor": "WheelConfig.Radius",
              "kind": "field",
              "doc": "Radius is the wheel radius (> 0)."
            },
            {
              "name": "RestLength",
              "anchor": "WheelConfig.RestLength",
              "kind": "field",
              "doc": "RestLength is the suspension length with no load (>= 0); the wheel ray is RestLength + Radius long."
            },
            {
              "name": "Stiffness",
              "anchor": "WheelConfig.Stiffness",
              "kind": "field",
              "doc": "Stiffness is the spring rate in newtons per meter of compression (> 0)."
            },
            {
              "name": "Damping",
              "anchor": "WheelConfig.Damping",
              "kind": "field",
              "doc": "Damping is the damper rate in newton-seconds per meter (>= 0)."
            },
            {
              "name": "MaxForce",
              "anchor": "WheelConfig.MaxForce",
              "kind": "field",
              "doc": "MaxForce caps the suspension force in newtons; 0 leaves it uncapped."
            },
            {
              "name": "Friction",
              "anchor": "WheelConfig.Friction",
              "kind": "field",
              "doc": "Friction is the tire's friction coefficient: the combined tire force stays within Friction times the wheel's load (>= 0)."
            },
            {
              "name": "Steer",
              "anchor": "WheelConfig.Steer",
              "kind": "field",
              "doc": "Steer marks a wheel turned by steering input."
            },
            {
              "name": "Drive",
              "anchor": "WheelConfig.Drive",
              "kind": "field",
              "doc": "Drive marks a wheel driven by the engine."
            },
            {
              "name": "Brake",
              "anchor": "WheelConfig.Brake",
              "kind": "field",
              "doc": "Brake marks a wheel slowed by brake input."
            },
            {
              "name": "Handbrake",
              "anchor": "WheelConfig.Handbrake",
              "kind": "field",
              "doc": "Handbrake marks a wheel locked by the handbrake."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WheelSnapshot",
          "anchor": "WheelSnapshot",
          "decl": "type WheelSnapshot struct {\n\tContact          bool           `json:\"contact,omitempty\"`\n\tContactPoint     physics3d.Vec3 `json:\"contactPoint\"`\n\tContactNormal    physics3d.Vec3 `json:\"contactNormal\"`\n\tGroundID         int            `json:\"groundID,omitempty\"`\n\tSuspensionLength float32        `json:\"suspensionLength\"`\n\tSuspensionForce  float32        `json:\"suspensionForce\"`\n\tSteerAngle       float32        `json:\"steerAngle\"`\n\tSpinSpeed        float32        `json:\"spinSpeed\"`\n\tSpinAngle        float32        `json:\"spinAngle\"`\n\tSliding          bool           `json:\"sliding,omitempty\"`\n}",
          "doc": "WheelSnapshot captures one wheel's dynamic runtime state.\n",
          "file": "pkg/vehicle/snapshot.go",
          "line": 15,
          "members": [
            {
              "name": "Contact",
              "anchor": "WheelSnapshot.Contact",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ContactPoint",
              "anchor": "WheelSnapshot.ContactPoint",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ContactNormal",
              "anchor": "WheelSnapshot.ContactNormal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "GroundID",
              "anchor": "WheelSnapshot.GroundID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SuspensionLength",
              "anchor": "WheelSnapshot.SuspensionLength",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SuspensionForce",
              "anchor": "WheelSnapshot.SuspensionForce",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SteerAngle",
              "anchor": "WheelSnapshot.SteerAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpinSpeed",
              "anchor": "WheelSnapshot.SpinSpeed",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SpinAngle",
              "anchor": "WheelSnapshot.SpinAngle",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Sliding",
              "anchor": "WheelSnapshot.Sliding",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/vn",
      "name": "vn",
      "dir": "pkg/vn",
      "page": "pkg/vn",
      "synopsis": "Package vn presents dialogue scripts as a visual novel: character portraits with expressions standing in stage slots, a text box with name plates and a typewriter, choices, a backlog, auto and skip modes, and voice lines.",
      "doc": "Package vn presents dialogue scripts as a visual novel: character portraits with expressions standing in stage slots, a text box with name plates and a typewriter, choices, a backlog, auto and skip modes, and voice lines.\n\nA Presenter plays a flow.DialogueScript (Yarn Spinner) with a Cast read from a YAML cast file. Lines steer the stage with tags (#expr:smile, #at:left, #voice:aiko_001, #offstage) and scripts with the commands <<show>>, <<hide>> and <<expr>>. Update moves it on by a game.Loop's fixed step and Draw draws it into a Canvas, so a scene plays alike every time and under nsgotest.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultCharsPerSecond",
              "anchor": "DefaultCharsPerSecond"
            },
            {
              "name": "DefaultAutoDelay",
              "anchor": "DefaultAutoDelay"
            },
            {
              "name": "DefaultBacklogSize",
              "anchor": "DefaultBacklogSize"
            }
          ],
          "decl": "const (\n\t// DefaultCharsPerSecond is how fast a line's text appears when Options.CharsPerSecond is 0.\n\tDefaultCharsPerSecond = 40\n\t// DefaultAutoDelay is how long auto mode waits after a line's text and voice end when Options.AutoDelay is 0.\n\tDefaultAutoDelay = 1500 * time.Millisecond\n\t// DefaultBacklogSize is how many entries the backlog keeps when Options.BacklogSize is 0.\n\tDefaultBacklogSize = 200\n)",
          "doc": "",
          "file": "pkg/vn/presenter.go",
          "line": 14
        },
        {
          "idents": [
            {
              "name": "TagExpression",
              "anchor": "TagExpression"
            },
            {
              "name": "TagSlot",
              "anchor": "TagSlot"
            },
            {
              "name": "TagVoice",
              "anchor": "TagVoice"
            },
            {
              "name": "TagOffstage",
              "anchor": "TagOffstage"
            }
          ],
          "decl": "const (\n\t// TagExpression sets the speaker's expression: #expr:smile.\n\tTagExpression = \"expr:\"\n\t// TagSlot moves the speaker's portrait to a slot: #at:left.\n\tTagSlot = \"at:\"\n\t// TagVoice names the line's voice line: #voice:aiko_001.\n\tTagVoice = \"voice:\"\n\t// TagOffstage speaks the line without bringing the speaker's portrait on the stage: #offstage.\n\tTagOffstage = \"offstage\"\n)",
          "doc": "Line tags a Presenter reads off a dialogue line, written after the line in the Yarn script, such as \"Aiko: Hello! #expr:smile #at:left #voice:aiko_001\".\n",
          "file": "pkg/vn/presenter.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "CommandShow",
              "anchor": "CommandShow"
            },
            {
              "name": "CommandHide",
              "anchor": "CommandHide"
            },
            {
              "name": "CommandExpression",
              "anchor": "CommandExpression"
            }
          ],
          "decl": "const (\n\t// CommandShow shows a character's portrait: <<show aiko>>, <<show aiko left>>, <<show aiko smile>> or <<show aiko left smile>>, the slot and expression in either order.\n\tCommandShow = \"show\"\n\t// CommandHide hides a character's portrait, <<hide aiko>>, or every portrait, <<hide>>.\n\tCommandHide = \"hide\"\n\t// CommandExpression changes a character's expression, showing the portrait if it is hidden: <<expr aiko smile>>.\n\tCommandExpression = \"expr\"\n)",
          "doc": "Commands a Presenter runs itself rather than passing to DialogueOptions.OnCommand. Each still reaches DialogueOptions.Bus.\n",
          "file": "pkg/vn/presenter.go",
          "line": 36
        },
        {
          "idents": [
            {
              "name": "CastVersion",
              "anchor": "CastVersion"
            }
          ],
          "decl": "const CastVersion = 1",
          "doc": "CastVersion is the cast file schema version this package reads and writes.\n",
          "file": "pkg/vn/cast.go",
          "line": 18
        }
      ],
      "vars": [],
      "funcs": [
        {
          "name": "EncodeCast",
          "anchor": "EncodeCast",
          "decl": "func EncodeCast(c *Cast) ([]byte, error)",
          "doc": "EncodeCast validates c and writes it as deterministic 2-space YAML, fields in schema order and lists in their order, so that ParseCast reads back the same cast.\n",
          "file": "pkg/vn/cast.go",
          "line": 177
        }
      ],
      "types": [
        {
          "name": "BacklogEntry",
          "anchor": "BacklogEntry",
          "decl": "type BacklogEntry struct {\n\t// Character is the speaking cast member's ID, empty for none.\n\tCharacter string\n\t// Name is the name plate's text, empty for narration and for choices.\n\tName string\n\t// Color is the cast member's name plate color, empty for the style's.\n\tColor string\n\t// Text is the line's text with its rich text markup.\n\tText string\n\t// LineID is the line's #line: id, empty for none.\n\tLineID string\n\t// Voice is the line's voice line id, empty for none.\n\tVoice string\n\t// Choice reports that the entry is an option the player chose rather than a line.\n\tChoice bool\n}",
          "doc": "BacklogEntry is one line or chosen option in the backlog.\n",
          "file": "pkg/vn/presenter.go",
          "line": 100,
          "members": [
            {
              "name": "Character",
              "anchor": "BacklogEntry.Character",
              "kind": "field",
              "doc": "Character is the speaking cast member's ID, empty for none."
            },
            {
              "name": "Name",
              "anchor": "BacklogEntry.Name",
              "kind": "field",
              "doc": "Name is the name plate's text, empty for narration and for choices."
            },
            {
              "name": "Color",
              "anchor": "BacklogEntry.Color",
              "kind": "field",
              "doc": "Color is the cast member's name plate color, empty for the style's."
            },
            {
              "name": "Text",
              "anchor": "BacklogEntry.Text",
              "kind": "field",
              "doc": "Text is the line's text with its rich text markup."
            },
            {
              "name": "LineID",
              "anchor": "BacklogEntry.LineID",
              "kind": "field",
              "doc": "LineID is the line's #line: id, empty for none."
            },
            {
              "name": "Voice",
              "anchor": "BacklogEntry.Voice",
              "kind": "field",
              "doc": "Voice is the line's voice line id, empty for none."
            },
            {
              "name": "Choice",
              "anchor": "BacklogEntry.Choice",
              "kind": "field",
              "doc": "Choice reports that the entry is an option the player chose rather than a line."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Cast",
          "anchor": "Cast",
          "decl": "type Cast struct {\n\t// Version is the schema version; it must equal CastVersion (1).\n\tVersion int `yaml:\"version\"`\n\t// Slots are the named places on the stage a portrait stands in, in document order. Empty uses DefaultSlots.\n\tSlots []Slot `yaml:\"slots,omitempty\"`\n\t// Characters are the cast members, in document order.\n\tCharacters []Character `yaml:\"characters\"`\n}",
          "doc": "Cast is a visual novel's cast file: the stage slots portraits stand in and the characters, each with a name plate and the portraits of its expressions. It is the YAML document ParseCast reads and EncodeCast writes, such as cast.yaml.\n",
          "file": "pkg/vn/cast.go",
          "line": 21,
          "members": [
            {
              "name": "Version",
              "anchor": "Cast.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal CastVersion (1)."
            },
            {
              "name": "Slots",
              "anchor": "Cast.Slots",
              "kind": "field",
              "doc": "Slots are the named places on the stage a portrait stands in, in document order. Empty uses DefaultSlots."
            },
            {
              "name": "Characters",
              "anchor": "Cast.Characters",
              "kind": "field",
              "doc": "Characters are the cast members, in document order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseCast",
              "anchor": "ParseCast",
              "decl": "func ParseCast(data []byte) (*Cast, error)",
              "doc": "ParseCast decodes a YAML cast file and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/vn/cast.go",
              "line": 153
            }
          ],
          "methods": [
            {
              "name": "Character",
              "anchor": "Cast.Character",
              "recv": "*Cast",
              "decl": "func (c *Cast) Character(id string) (*Character, bool)",
              "doc": "Character returns the character whose ID is id, and whether there is one.\n",
              "file": "pkg/vn/cast.go",
              "line": 92
            },
            {
              "name": "CheckFrames",
              "anchor": "Cast.CheckFrames",
              "recv": "*Cast",
              "decl": "func (c *Cast) CheckFrames(atlas *sprite.Atlas) error",
              "doc": "CheckFrames reports the first expression whose frame atlas lacks, so a game finds a missing portrait as it loads rather than as a scene shows it.\n",
              "file": "pkg/vn/cast.go",
              "line": 265
            },
            {
              "name": "EffectiveSlots",
              "anchor": "Cast.EffectiveSlots",
              "recv": "*Cast",
              "decl": "func (c *Cast) EffectiveSlots() []Slot",
              "doc": "EffectiveSlots returns the cast's slots, or DefaultSlots when it declares none.\n",
              "file": "pkg/vn/cast.go",
              "line": 68
            },
            {
              "name": "Slot",
              "anchor": "Cast.Slot",
              "recv": "*Cast",
              "decl": "func (c *Cast) Slot(name string) (Slot, bool)",
              "doc": "Slot returns the slot named name and whether there is one.\n",
              "file": "pkg/vn/cast.go",
              "line": 76
            },
            {
              "name": "Speaker",
              "anchor": "Cast.Speaker",
              "recv": "*Cast",
              "decl": "func (c *Cast) Speaker(speaker string) (*Character, bool)",
              "doc": "Speaker returns the character a line's speaker names: the one whose ID is speaker, or else the first whose Name is.\n",
              "file": "pkg/vn/cast.go",
              "line": 105
            },
            {
              "name": "Validate",
              "anchor": "Cast.Validate",
              "recv": "*Cast",
              "decl": "func (c *Cast) Validate() error",
              "doc": "Validate checks c against the version 1 schema: unique, non-empty slot names with X from 0 to 1; unique character IDs without whitespace; parseable colors; slots and default expressions that exist; and at least one expression per character, each with a frame and a unique name that no slot has, so that <<show>> reads its arguments one way.\n",
              "file": "pkg/vn/cast.go",
              "line": 195
            }
          ]
        },
        {
          "name": "Character",
          "anchor": "Character",
          "decl": "type Character struct {\n\t// ID identifies the character in commands and is matched against a line's speaker before Name. It holds no whitespace.\n\tID string `yaml:\"id\"`\n\t// Name is the text of the character's name plate and is also matched against a line's speaker; empty uses ID.\n\tName string `yaml:\"name,omitempty\"`\n\t// Color is the name plate's color as a CSS color string (core.ParseColor); empty uses the style's NamePlateColor.\n\tColor string `yaml:\"color,omitempty\"`\n\t// Slot is the slot the character's portrait enters when a line or command names none; empty uses the cast's middle slot.\n\tSlot string `yaml:\"slot,omitempty\"`\n\t// DefaultExpression is the expression the portrait enters with; empty uses the first expression.\n\tDefaultExpression string `yaml:\"defaultExpression,omitempty\"`\n\t// Expressions are the character's portraits, each a frame of the portrait atlas.\n\tExpressions []Expression `yaml:\"expressions\"`\n}",
          "doc": "Character is one cast member.\n",
          "file": "pkg/vn/cast.go",
          "line": 39,
          "members": [
            {
              "name": "ID",
              "anchor": "Character.ID",
              "kind": "field",
              "doc": "ID identifies the character in commands and is matched against a line's speaker before Name. It holds no whitespace."
            },
            {
              "name": "Name",
              "anchor": "Character.Name",
              "kind": "field",
              "doc": "Name is the text of the character's name plate and is also matched against a line's speaker; empty uses ID."
            },
            {
              "name": "Color",
              "anchor": "Character.Color",
              "kind": "field",
              "doc": "Color is the name plate's color as a CSS color string (core.ParseColor); empty uses the style's NamePlateColor."
            },
            {
              "name": "Slot",
              "anchor": "Character.Slot",
              "kind": "field",
              "doc": "Slot is the slot the character's portrait enters when a line or command names none; empty uses the cast's middle slot."
            },
            {
              "name": "DefaultExpression",
              "anchor": "Character.DefaultExpression",
              "kind": "field",
              "doc": "DefaultExpression is the expression the portrait enters with; empty uses the first expression."
            },
            {
              "name": "Expressions",
              "anchor": "Character.Expressions",
              "kind": "field",
              "doc": "Expressions are the character's portraits, each a frame of the portrait atlas."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "DisplayName",
              "anchor": "Character.DisplayName",
              "recv": "*Character",
              "decl": "func (ch *Character) DisplayName() string",
              "doc": "DisplayName returns the text of the character's name plate: Name, or ID when Name is empty.\n",
              "file": "pkg/vn/cast.go",
              "line": 124
            },
            {
              "name": "EffectiveExpression",
              "anchor": "Character.EffectiveExpression",
              "recv": "*Character",
              "decl": "func (ch *Character) EffectiveExpression() string",
              "doc": "EffectiveExpression returns the expression the character's portrait enters with: DefaultExpression, or the first expression when it is empty.\n",
              "file": "pkg/vn/cast.go",
              "line": 132
            },
            {
              "name": "Expression",
              "anchor": "Character.Expression",
              "recv": "*Character",
              "decl": "func (ch *Character) Expression(name string) (Expression, bool)",
              "doc": "Expression returns the expression named name, and whether there is one.\n",
              "file": "pkg/vn/cast.go",
              "line": 143
            }
          ]
        },
        {
          "name": "EffectVoices",
          "anchor": "EffectVoices",
          "decl": "type EffectVoices struct {\n\t// Clips are the voice lines by id.\n\tClips map[string]VoiceClip\n\t// contains filtered or unexported fields\n}",
          "doc": "EffectVoices is a VoicePlayer of mixer effects by voice id. It plays one line at a time, stopping the line before it.\n",
          "file": "pkg/vn/voice.go",
          "line": 27,
          "members": [
            {
              "name": "Clips",
              "anchor": "EffectVoices.Clips",
              "kind": "field",
              "doc": "Clips are the voice lines by id."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "PlayVoice",
              "anchor": "EffectVoices.PlayVoice",
              "recv": "*EffectVoices",
              "decl": "func (v *EffectVoices) PlayVoice(id string) (time.Duration, bool)",
              "doc": "PlayVoice stops the line playing and starts the clip id, returning its Length; ok is false when Clips has no such clip or its effect played nothing.\n",
              "file": "pkg/vn/voice.go",
              "line": 34
            },
            {
              "name": "StopVoice",
              "anchor": "EffectVoices.StopVoice",
              "recv": "*EffectVoices",
              "decl": "func (v *EffectVoices) StopVoice()",
              "doc": "StopVoice stops the line playing, if any.\n",
              "file": "pkg/vn/voice.go",
              "line": 48
            }
          ]
        },
        {
          "name": "Expression",
          "anchor": "Expression",
          "decl": "type Expression struct {\n\t// Name identifies the expression in line tags (#expr:smile) and commands (<<expr aiko smile>>).\n\tName string `yaml:\"name\"`\n\t// Frame names the portrait's frame in the atlas a Style draws portraits from.\n\tFrame string `yaml:\"frame\"`\n}",
          "doc": "Expression is one portrait of a character.\n",
          "file": "pkg/vn/cast.go",
          "line": 55,
          "members": [
            {
              "name": "Name",
              "anchor": "Expression.Name",
              "kind": "field",
              "doc": "Name identifies the expression in line tags (#expr:smile) and commands (<<expr aiko smile>>)."
            },
            {
              "name": "Frame",
              "anchor": "Expression.Frame",
              "kind": "field",
              "doc": "Frame names the portrait's frame in the atlas a Style draws portraits from."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Layout",
          "anchor": "Layout",
          "decl": "type Layout struct {\n\t// Box is the text box.\n\tBox core.Bounds\n\t// Text is the area of the box the line's text wraps in.\n\tText core.Bounds\n\t// Choices are the choice buttons, one for each option in the order Choices returns them.\n\tChoices []core.Bounds\n}",
          "doc": "Layout is where Draw puts a presenter's text box and choices on a stage, for a game to hit test taps against.\n",
          "file": "pkg/vn/draw.go",
          "line": 58,
          "members": [
            {
              "name": "Box",
              "anchor": "Layout.Box",
              "kind": "field",
              "doc": "Box is the text box."
            },
            {
              "name": "Text",
              "anchor": "Layout.Text",
              "kind": "field",
              "doc": "Text is the area of the box the line's text wraps in."
            },
            {
              "name": "Choices",
              "anchor": "Layout.Choices",
              "kind": "field",
              "doc": "Choices are the choice buttons, one for each option in the order Choices returns them."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Line",
          "anchor": "Line",
          "decl": "type Line struct {\n\t// DialogueLine is the line as the runner produced it, tags included.\n\tflow.DialogueLine\n\t// Character is the speaking cast member's ID, empty for a speaker not in the cast and for narration.\n\tCharacter string\n\t// Name is the name plate's text: the cast member's display name, the speaker as the script writes it for a speaker not in the cast, or empty for narration.\n\tName string\n\t// Color is the cast member's name plate color, empty for the style's.\n\tColor string\n\t// Voice is the line's voice line id, empty for none.\n\tVoice string\n\t// Read reports whether the player had read the line before it was shown this time.\n\tRead bool\n}",
          "doc": "Line is the dialogue line a Presenter shows.\n",
          "file": "pkg/vn/presenter.go",
          "line": 84,
          "members": [
            {
              "name": "DialogueLine",
              "anchor": "Line.DialogueLine",
              "kind": "field",
              "doc": "DialogueLine is the line as the runner produced it, tags included."
            },
            {
              "name": "Character",
              "anchor": "Line.Character",
              "kind": "field",
              "doc": "Character is the speaking cast member's ID, empty for a speaker not in the cast and for narration."
            },
            {
              "name": "Name",
              "anchor": "Line.Name",
              "kind": "field",
              "doc": "Name is the name plate's text: the cast member's display name, the speaker as the script writes it for a speaker not in the cast, or empty for narration."
            },
            {
              "name": "Color",
              "anchor": "Line.Color",
              "kind": "field",
              "doc": "Color is the cast member's name plate color, empty for the style's."
            },
            {
              "name": "Voice",
              "anchor": "Line.Voice",
              "kind": "field",
              "doc": "Voice is the line's voice line id, empty for none."
            },
            {
              "name": "Read",
              "anchor": "Line.Read",
              "kind": "field",
              "doc": "Read reports whether the player had read the line before it was shown this time."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Options",
          "anchor": "Options",
          "decl": "type Options struct {\n\t// Dialogue configures the presenter's flow.DialogueRunner. Its OnCommand receives every command but CommandShow, CommandHide and CommandExpression.\n\tDialogue flow.DialogueOptions\n\t// Voices plays voice lines; nil plays none.\n\tVoices VoicePlayer\n\t// VoiceFromLineID plays a line's #line: id as its voice line when it has no #voice: tag.\n\tVoiceFromLineID bool\n\t// CharsPerSecond is how fast a line's text appears; 0 uses DefaultCharsPerSecond and a negative rate shows the whole line at once.\n\tCharsPerSecond float32\n\t// AutoDelay is how long auto mode waits after a line's text has appeared and its voice ended before it goes on; 0 uses DefaultAutoDelay and a negative delay waits none.\n\tAutoDelay time.Duration\n\t// AutoDelayPerRune adds this much to AutoDelay for each character of the line, so a long line stays longer.\n\tAutoDelayPerRune time.Duration\n\t// SkipInterval is how long skip mode shows each line; 0 shows one line per Update.\n\tSkipInterval time.Duration\n\t// SkipUnread lets skip mode go past lines not read before; when false, skip mode stops on the first line the player has not read.\n\tSkipUnread bool\n\t// BacklogSize is how many entries the backlog keeps, dropping the oldest; 0 uses DefaultBacklogSize and a negative size keeps none.\n\tBacklogSize int\n}",
          "doc": "Options configures a Presenter.\n",
          "file": "pkg/vn/presenter.go",
          "line": 46,
          "members": [
            {
              "name": "Dialogue",
              "anchor": "Options.Dialogue",
              "kind": "field",
              "doc": "Dialogue configures the presenter's flow.DialogueRunner. Its OnCommand receives every command but CommandShow, CommandHide and CommandExpression."
            },
            {
              "name": "Voices",
              "anchor": "Options.Voices",
              "kind": "field",
              "doc": "Voices plays voice lines; nil plays none."
            },
            {
              "name": "VoiceFromLineID",
              "anchor": "Options.VoiceFromLineID",
              "kind": "field",
              "doc": "VoiceFromLineID plays a line's #line: id as its voice line when it has no #voice: tag."
            },
            {
              "name": "CharsPerSecond",
              "anchor": "Options.CharsPerSecond",
              "kind": "field",
              "doc": "CharsPerSecond is how fast a line's text appears; 0 uses DefaultCharsPerSecond and a negative rate shows the whole line at once."
            },
            {
              "name": "AutoDelay",
              "anchor": "Options.AutoDelay",
              "kind": "field",
              "doc": "AutoDelay is how long auto mode waits after a line's text has appeared and its voice ended before it goes on; 0 uses DefaultAutoDelay and a negative delay waits none."
            },
            {
              "name": "AutoDelayPerRune",
              "anchor": "Options.AutoDelayPerRune",
              "kind": "field",
              "doc": "AutoDelayPerRune adds this much to AutoDelay for each character of the line, so a long line stays longer."
            },
            {
              "name": "SkipInterval",
              "anchor": "Options.SkipInterval",
              "kind": "field",
              "doc": "SkipInterval is how long skip mode shows each line; 0 shows one line per Update."
            },
            {
              "name": "SkipUnread",
              "anchor": "Options.SkipUnread",
              "kind": "field",
              "doc": "SkipUnread lets skip mode go past lines not read before; when false, skip mode stops on the first line the player has not read."
            },
            {
              "name": "BacklogSize",
              "anchor": "Options.BacklogSize",
              "kind": "field",
              "doc": "BacklogSize is how many entries the backlog keeps, dropping the oldest; 0 uses DefaultBacklogSize and a negative size keeps none."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Portrait",
          "anchor": "Portrait",
          "decl": "type Portrait struct {\n\t// Character is the character's ID.\n\tCharacter string\n\t// Expression is the expression shown.\n\tExpression string\n\t// Frame is the expression's atlas frame.\n\tFrame string\n\t// Slot is the slot the portrait stands in.\n\tSlot string\n\t// X is the slot's X, the portrait's center as a fraction of the stage's width.\n\tX float32\n\t// Speaking reports whether the character speaks the line shown.\n\tSpeaking bool\n}",
          "doc": "Portrait is a character's portrait on the stage.\n",
          "file": "pkg/vn/presenter.go",
          "line": 68,
          "members": [
            {
              "name": "Character",
              "anchor": "Portrait.Character",
              "kind": "field",
              "doc": "Character is the character's ID."
            },
            {
              "name": "Expression",
              "anchor": "Portrait.Expression",
              "kind": "field",
              "doc": "Expression is the expression shown."
            },
            {
              "name": "Frame",
              "anchor": "Portrait.Frame",
              "kind": "field",
              "doc": "Frame is the expression's atlas frame."
            },
            {
              "name": "Slot",
              "anchor": "Portrait.Slot",
              "kind": "field",
              "doc": "Slot is the slot the portrait stands in."
            },
            {
              "name": "X",
              "anchor": "Portrait.X",
              "kind": "field",
              "doc": "X is the slot's X, the portrait's center as a fraction of the stage's width."
            },
            {
              "name": "Speaking",
              "anchor": "Portrait.Speaking",
              "kind": "field",
              "doc": "Speaking reports whether the character speaks the line shown."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Presenter",
          "anchor": "Presenter",
          "decl": "type Presenter struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Presenter plays a dialogue script as a visual novel: it runs the script with a flow.DialogueRunner and keeps the portraits on the stage, the line in the text box with its name plate, the typewriter revealing it, the choices, the backlog and the lines read, and plays voice lines. Auto mode goes on by itself after each line, and skip mode runs through lines quickly.\n\nIt reads no clock: Update moves it on by the fixed step a game.Loop passes, so a scene plays alike every time and under nsgotest. Its methods are called on one goroutine.\n",
          "file": "pkg/vn/presenter.go",
          "line": 120,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(script *flow.DialogueScript, cast *Cast, opts Options) *Presenter",
              "doc": "New returns a presenter that plays script with cast. Call Start to begin a node.\n",
              "file": "pkg/vn/presenter.go",
              "line": 144
            }
          ],
          "methods": [
            {
              "name": "Advance",
              "anchor": "Presenter.Advance",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Advance() error",
              "doc": "Advance is the player's tap or key to go on: it stops skip mode, shows the rest of a line still appearing, or goes on to the next line. It fails with flow.ErrChoiceRequired while choices wait and does nothing once the script has ended.\n",
              "file": "pkg/vn/presenter.go",
              "line": 223
            },
            {
              "name": "Auto",
              "anchor": "Presenter.Auto",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Auto() bool",
              "doc": "Auto reports whether auto mode is on.\n",
              "file": "pkg/vn/presenter.go",
              "line": 270
            },
            {
              "name": "Backlog",
              "anchor": "Presenter.Backlog",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Backlog() []BacklogEntry",
              "doc": "Backlog returns the lines shown and options chosen, oldest first.\n",
              "file": "pkg/vn/presenter.go",
              "line": 309
            },
            {
              "name": "Cast",
              "anchor": "Presenter.Cast",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Cast() *Cast",
              "doc": "Cast returns the presenter's cast.\n",
              "file": "pkg/vn/presenter.go",
              "line": 168
            },
            {
              "name": "ChoiceAt",
              "anchor": "Presenter.ChoiceAt",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) ChoiceAt(size core.Size, st Style, pt core.Point) (int, bool)",
              "doc": "ChoiceAt returns the Index of the choice button at pt on a stage of size, for Choose, and whether pt is on an available one.\n",
              "file": "pkg/vn/draw.go",
              "line": 132
            },
            {
              "name": "Choices",
              "anchor": "Presenter.Choices",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Choices() []flow.DialogueChoice",
              "doc": "Choices returns the options waiting for Choose, nil when none wait.\n",
              "file": "pkg/vn/presenter.go",
              "line": 295
            },
            {
              "name": "Choose",
              "anchor": "Presenter.Choose",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Choose(index int) error",
              "doc": "Choose picks the option whose Index is index, adds it to the backlog and goes on.\n",
              "file": "pkg/vn/presenter.go",
              "line": 239
            },
            {
              "name": "Draw",
              "anchor": "Presenter.Draw",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Draw(d *core.Drawing, size core.Size, st Style)",
              "doc": "Draw draws the presenter on a stage of size: the portraits, dimming those not speaking; the text box with the line's name plate and the text the typewriter has revealed; and the choice buttons while choices wait.\n",
              "file": "pkg/vn/draw.go",
              "line": 143
            },
            {
              "name": "DrawBacklog",
              "anchor": "Presenter.DrawBacklog",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) DrawBacklog(d *core.Drawing, size core.Size, st Style, scroll int) int",
              "doc": "DrawBacklog draws the backlog over a stage of size: each entry's name in its plate color above its text, the newest at the bottom, skipping the newest scroll entries so a game can scroll back through it. An entry taller than the stage is drawn alone from the top, cut off at the bottom, so every entry can be read. It returns how many entries it drew.\n",
              "file": "pkg/vn/draw.go",
              "line": 244
            },
            {
              "name": "Ended",
              "anchor": "Presenter.Ended",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Ended() bool",
              "doc": "Ended reports whether the script has ended or not started.\n",
              "file": "pkg/vn/presenter.go",
              "line": 303
            },
            {
              "name": "Line",
              "anchor": "Presenter.Line",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Line() (Line, bool)",
              "doc": "Line returns the line shown and whether there is one. The line stays shown while its choices wait.\n",
              "file": "pkg/vn/presenter.go",
              "line": 282
            },
            {
              "name": "MarkRead",
              "anchor": "Presenter.MarkRead",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) MarkRead(keys ...string)",
              "doc": "MarkRead marks the lines with keys, from ReadKeys, as read.\n",
              "file": "pkg/vn/presenter.go",
              "line": 331
            },
            {
              "name": "Portraits",
              "anchor": "Presenter.Portraits",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Portraits() []Portrait",
              "doc": "Portraits returns the portraits on the stage in the order they entered, which is the order to draw them in.\n",
              "file": "pkg/vn/presenter.go",
              "line": 306
            },
            {
              "name": "ReadKeys",
              "anchor": "Presenter.ReadKeys",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) ReadKeys() []string",
              "doc": "ReadKeys returns the keys of the lines the player has read, sorted, for a save to keep and MarkRead to restore. A line's key is its #line: id, or for an untagged line its node, speaker and text as shown, after string table lookup and {$var} interpolation; give lines #line: ids so that skip mode knows them across languages and changing variables.\n",
              "file": "pkg/vn/presenter.go",
              "line": 321
            },
            {
              "name": "ReplayVoice",
              "anchor": "Presenter.ReplayVoice",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) ReplayVoice(i int) bool",
              "doc": "ReplayVoice plays the voice line of backlog entry i again and reports whether it played.\n",
              "file": "pkg/vn/presenter.go",
              "line": 312
            },
            {
              "name": "Runner",
              "anchor": "Presenter.Runner",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Runner() *flow.DialogueRunner",
              "doc": "Runner returns the presenter's dialogue runner, for its variables and save state. Advance it through the presenter, not directly.\n",
              "file": "pkg/vn/presenter.go",
              "line": 165
            },
            {
              "name": "SetAuto",
              "anchor": "Presenter.SetAuto",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) SetAuto(on bool)",
              "doc": "SetAuto turns auto mode on or off. In auto mode the presenter goes on by itself once a line's text has appeared, its voice ended and Options.AutoDelay passed; it waits at choices.\n",
              "file": "pkg/vn/presenter.go",
              "line": 264
            },
            {
              "name": "SetSkip",
              "anchor": "Presenter.SetSkip",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) SetSkip(on bool)",
              "doc": "SetSkip turns skip mode on or off. In skip mode each Update shows the next line at once, without its voice, one every Options.SkipInterval; it stops at choices, at the end, on Advance, and, unless Options.SkipUnread, on a line the player had not read before, which shows as usual, so skip mode never passes a line the player has not seen.\n",
              "file": "pkg/vn/presenter.go",
              "line": 273
            },
            {
              "name": "Skipping",
              "anchor": "Presenter.Skipping",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Skipping() bool",
              "doc": "Skipping reports whether skip mode is on.\n",
              "file": "pkg/vn/presenter.go",
              "line": 279
            },
            {
              "name": "Start",
              "anchor": "Presenter.Start",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Start(node string) error",
              "doc": "Start clears the stage and the line shown and begins the script at node. The backlog and the lines read stay. A node the script lacks fails with flow.ErrUnknownNode and leaves the presenter as it was.\n",
              "file": "pkg/vn/presenter.go",
              "line": 171
            },
            {
              "name": "Typewriter",
              "anchor": "Presenter.Typewriter",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Typewriter() *text.Typewriter",
              "doc": "Typewriter returns the typewriter revealing the line shown, nil for none. Draw it, or read how much of the line has appeared.\n",
              "file": "pkg/vn/presenter.go",
              "line": 292
            },
            {
              "name": "Update",
              "anchor": "Presenter.Update",
              "recv": "*Presenter",
              "decl": "func (p *Presenter) Update(dt time.Duration) error",
              "doc": "Update moves the presenter on by dt: it reveals the line's text and keeps its rich text effects animating, counts down its voice, and in auto mode goes on once the line has stayed its delay, or in skip mode goes on to the next line. An error is the script's or a stage command's.\n",
              "file": "pkg/vn/presenter.go",
              "line": 190
            }
          ]
        },
        {
          "name": "Slot",
          "anchor": "Slot",
          "decl": "type Slot struct {\n\t// Name identifies the slot in line tags (#at:left) and commands (<<show aiko left>>).\n\tName string `yaml:\"name\"`\n\t// X is where the portrait's center stands, as a fraction of the stage's width from its left edge, from 0 to 1.\n\tX float32 `yaml:\"x\"`\n}",
          "doc": "Slot is a named place on the stage where a portrait stands.\n",
          "file": "pkg/vn/cast.go",
          "line": 31,
          "members": [
            {
              "name": "Name",
              "anchor": "Slot.Name",
              "kind": "field",
              "doc": "Name identifies the slot in line tags (#at:left) and commands (<<show aiko left>>)."
            },
            {
              "name": "X",
              "anchor": "Slot.X",
              "kind": "field",
              "doc": "X is where the portrait's center stands, as a fraction of the stage's width from its left edge, from 0 to 1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultSlots",
              "anchor": "DefaultSlots",
              "decl": "func DefaultSlots() []Slot",
              "doc": "DefaultSlots returns the slots a cast without any uses: left at 0.2, center at 0.5 and right at 0.8 of the stage's width.\n",
              "file": "pkg/vn/cast.go",
              "line": 63
            }
          ],
          "methods": []
        },
        {
          "name": "Style",
          "anchor": "Style",
          "decl": "type Style struct {\n\t// Atlas holds the portraits' frames, which Cast.CheckFrames checks; nil draws no portraits.\n\tAtlas *sprite.Atlas\n\t// PortraitHeight scales each portrait to this height in points, keeping its aspect; 0 draws frames at their own size.\n\tPortraitHeight float32\n\t// PortraitBottom is how far above the stage's bottom edge the portraits stand.\n\tPortraitBottom float32\n\t// InactiveAlpha is the opacity of portraits whose character does not speak the line shown, while one on the stage does; 0 draws them opaque.\n\tInactiveAlpha float32\n\n\t// Box draws the text box; nil fills a rounded rectangle in BoxColor.\n\tBox *sprite.NineSlice\n\t// BoxColor fills the text box when Box is nil; 0 uses a translucent dark blue.\n\tBoxColor core.Color\n\t// BoxHeight is the text box's height; 0 uses 28% of the stage's height.\n\tBoxHeight float32\n\t// Margin is the space between the text box and the stage's edges; 0 uses 16.\n\tMargin float32\n\t// Padding is the space between the text box's edges and its text; 0 uses 16.\n\tPadding float32\n\n\t// Font draws the line's text as a bitmap font; nil draws platform text in TextFont.\n\tFont *text.Font\n\t// TextFont is the line's platform font; a zero size uses 20.\n\tTextFont core.Font\n\t// TextColor is the line's color; 0 uses white.\n\tTextColor core.Color\n\t// NameFont is the name plate's platform font; a zero size uses 18, bold.\n\tNameFont core.Font\n\t// NameColor is the name plate's text color; 0 uses white.\n\tNameColor core.Color\n\t// NamePlateColor fills the name plate of a speaker without a cast color; 0 uses a slate blue.\n\tNamePlateColor core.Color\n\n\t// ChoiceWidth is each choice button's width; 0 uses 60% of the stage's width.\n\tChoiceWidth float32\n\t// ChoiceHeight is each choice button's height; 0 uses 44.\n\tChoiceHeight float32\n\t// ChoiceGap is the space between choice buttons; 0 uses 12.\n\tChoiceGap float32\n\t// ChoiceColor fills the choice buttons; 0 uses the box color.\n\tChoiceColor core.Color\n\n\t// BacklogColor fills the backlog behind its entries; 0 uses a near-opaque dark blue.\n\tBacklogColor core.Color\n}",
          "doc": "Style sets how Draw and DrawBacklog draw a presenter. Its zero value draws portraits at their frames' size and a translucent dark text box with platform text; a zero field uses the default its comment gives.\n",
          "file": "pkg/vn/draw.go",
          "line": 10,
          "members": [
            {
              "name": "Atlas",
              "anchor": "Style.Atlas",
              "kind": "field",
              "doc": "Atlas holds the portraits' frames, which Cast.CheckFrames checks; nil draws no portraits."
            },
            {
              "name": "PortraitHeight",
              "anchor": "Style.PortraitHeight",
              "kind": "field",
              "doc": "PortraitHeight scales each portrait to this height in points, keeping its aspect; 0 draws frames at their own size."
            },
            {
              "name": "PortraitBottom",
              "anchor": "Style.PortraitBottom",
              "kind": "field",
              "doc": "PortraitBottom is how far above the stage's bottom edge the portraits stand."
            },
            {
              "name": "InactiveAlpha",
              "anchor": "Style.InactiveAlpha",
              "kind": "field",
              "doc": "InactiveAlpha is the opacity of portraits whose character does not speak the line shown, while one on the stage does; 0 draws them opaque."
            },
            {
              "name": "Box",
              "anchor": "Style.Box",
              "kind": "field",
              "doc": "Box draws the text box; nil fills a rounded rectangle in BoxColor."
            },
            {
              "name": "BoxColor",
              "anchor": "Style.BoxColor",
              "kind": "field",
              "doc": "BoxColor fills the text box when Box is nil; 0 uses a translucent dark blue."
            },
            {
              "name": "BoxHeight",
              "anchor": "Style.BoxHeight",
              "kind": "field",
              "doc": "BoxHeight is the text box's height; 0 uses 28% of the stage's height."
            },
            {
              "name": "Margin",
              "anchor": "Style.Margin",
              "kind": "field",
              "doc": "Margin is the space between the text box and the stage's edges; 0 uses 16."
            },
            {
              "name": "Padding",
              "anchor": "Style.Padding",
              "kind": "field",
              "doc": "Padding is the space between the text box's edges and its text; 0 uses 16."
            },
            {
              "name": "Font",
              "anchor": "Style.Font",
              "kind": "field",
              "doc": "Font draws the line's text as a bitmap font; nil draws platform text in TextFont."
            },
            {
              "name": "TextFont",
              "anchor": "Style.TextFont",
              "kind": "field",
              "doc": "TextFont is the line's platform font; a zero size uses 20."
            },
            {
              "name": "TextColor",
              "anchor": "Style.TextColor",
              "kind": "field",
              "doc": "TextColor is the line's color; 0 uses white."
            },
            {
              "name": "NameFont",
              "anchor": "Style.NameFont",
              "kind": "field",
              "doc": "NameFont is the name plate's platform font; a zero size uses 18, bold."
            },
            {
              "name": "NameColor",
              "anchor": "Style.NameColor",
              "kind": "field",
              "doc": "NameColor is the name plate's text color; 0 uses white."
            },
            {
              "name": "NamePlateColor",
              "anchor": "Style.NamePlateColor",
              "kind": "field",
              "doc": "NamePlateColor fills the name plate of a speaker without a cast color; 0 uses a slate blue."
            },
            {
              "name": "ChoiceWidth",
              "anchor": "Style.ChoiceWidth",
              "kind": "field",
              "doc": "ChoiceWidth is each choice button's width; 0 uses 60% of the stage's width."
            },
            {
              "name": "ChoiceHeight",
              "anchor": "Style.ChoiceHeight",
              "kind": "field",
              "doc": "ChoiceHeight is each choice button's height; 0 uses 44."
            },
            {
              "name": "ChoiceGap",
              "anchor": "Style.ChoiceGap",
              "kind": "field",
              "doc": "ChoiceGap is the space between choice buttons; 0 uses 12."
            },
            {
              "name": "ChoiceColor",
              "anchor": "Style.ChoiceColor",
              "kind": "field",
              "doc": "ChoiceColor fills the choice buttons; 0 uses the box color."
            },
            {
              "name": "BacklogColor",
              "anchor": "Style.BacklogColor",
              "kind": "field",
              "doc": "BacklogColor fills the backlog behind its entries; 0 uses a near-opaque dark blue."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Layout",
              "anchor": "Style.Layout",
              "recv": "Style",
              "decl": "func (st Style) Layout(size core.Size, n int) Layout",
              "doc": "Layout returns where Draw puts the text box and n choice buttons on a stage of size.\n",
              "file": "pkg/vn/draw.go",
              "line": 109
            }
          ]
        },
        {
          "name": "VoiceClip",
          "anchor": "VoiceClip",
          "decl": "type VoiceClip struct {\n\t// Effect plays the line, in the mixer's voice group, such as mixer.Effect(snd, \"voice\", 1).\n\tEffect *sound.Effect\n\t// Length is how long the line plays, such as the loaded audio.Sound's Duration; auto mode waits this long before it counts its delay.\n\tLength time.Duration\n}",
          "doc": "VoiceClip is one voice line played through a sound.Mixer.\n",
          "file": "pkg/vn/voice.go",
          "line": 19,
          "members": [
            {
              "name": "Effect",
              "anchor": "VoiceClip.Effect",
              "kind": "field",
              "doc": "Effect plays the line, in the mixer's voice group, such as mixer.Effect(snd, \"voice\", 1)."
            },
            {
              "name": "Length",
              "anchor": "VoiceClip.Length",
              "kind": "field",
              "doc": "Length is how long the line plays, such as the loaded audio.Sound's Duration; auto mode waits this long before it counts its delay."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "VoicePlayer",
          "anchor": "VoicePlayer",
          "decl": "type VoicePlayer interface {\n\t// PlayVoice starts the voice line id and returns how long it plays; ok is false when there is no such line or nothing played, such as while the voice volume is 0.\n\tPlayVoice(id string) (length time.Duration, ok bool)\n\t// StopVoice stops the voice line playing, if any.\n\tStopVoice()\n}",
          "doc": "VoicePlayer plays a scene's voice lines. A Presenter calls it on the engine's goroutine, as audio's methods are.\n",
          "file": "pkg/vn/voice.go",
          "line": 11,
          "members": [
            {
              "name": "PlayVoice",
              "anchor": "VoicePlayer.PlayVoice",
              "kind": "method",
              "doc": "PlayVoice starts the voice line id and returns how long it plays; ok is false when there is no such line or nothing played, such as while the voice volume is 0."
            },
            {
              "name": "StopVoice",
              "anchor": "VoicePlayer.StopVoice",
              "kind": "method",
              "doc": "StopVoice stops the voice line playing, if any."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/voxel",
      "name": "voxel",
      "dir": "pkg/voxel",
      "page": "pkg/voxel",
      "synopsis": "Package voxel provides chunked 3D voxel worlds with greedy meshing, cross-chunk face culling, incremental per-voxel sky and block light propagation, incremental dirty-chunk remeshing, DDA voxel raycasting, and deterministic versioned YAML persistence.",
      "doc": "Package voxel provides chunked 3D voxel worlds with greedy meshing,\ncross-chunk face culling, incremental per-voxel sky and block light\npropagation, incremental dirty-chunk remeshing, DDA voxel raycasting,\nand deterministic versioned YAML persistence.\n\nCoordinates follow [github.com/nsgo-dev/game/pkg/math3d] and\n[github.com/nsgo-dev/game/pkg/render3d]: right-handed Y-up space\n(+X right, +Y up, -Z forward), with counter-clockwise front-facing triangles.\nVoxel (x, y, z) occupies the world-space cube from (x, y, z)*VoxelSize to\n(x+1, y+1, z+1)*VoxelSize.\n\nEditing a block with [World.SetBlock] updates sky and block light (0..15\neach) incrementally across chunk boundaries, marks the edited chunk dirty,\nand marks adjacent existing chunks dirty only when face visibility, ambient\nocclusion, or lighting changes across their boundaries. Call\n[Mesher.RemeshDirty] (or [World.RemeshDirty]) each frame to rebuild only\naffected chunks into [render3d.Mesh] (or [ChunkMesh.ColoredMesh] for\nvertex-shaded [render3d.ColoredMesh]) buffers.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultChunkSize",
              "anchor": "DefaultChunkSize"
            },
            {
              "name": "MinChunkSize",
              "anchor": "MinChunkSize"
            },
            {
              "name": "MaxChunkSize",
              "anchor": "MaxChunkSize"
            },
            {
              "name": "DefaultVoxelSize",
              "anchor": "DefaultVoxelSize"
            }
          ],
          "decl": "const (\n\t// DefaultChunkSize is the default cubic chunk edge length (16x16x16 = 4096 voxels).\n\tDefaultChunkSize = 16\n\t// MinChunkSize is the smallest supported power-of-two chunk edge length.\n\tMinChunkSize = 4\n\t// MaxChunkSize is the largest supported power-of-two chunk edge length.\n\tMaxChunkSize = 64\n\t// DefaultVoxelSize is the default world-space size of one voxel edge.\n\tDefaultVoxelSize float32 = 1\n)",
          "doc": "",
          "file": "pkg/voxel/chunk.go",
          "line": 12
        },
        {
          "idents": [
            {
              "name": "FormatVersion",
              "anchor": "FormatVersion"
            }
          ],
          "decl": "const FormatVersion = 1",
          "doc": "FormatVersion is the current voxel world YAML schema version.\n",
          "file": "pkg/voxel/format.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "MaxLightLevel",
              "anchor": "MaxLightLevel"
            }
          ],
          "decl": "const MaxLightLevel uint8 = 15",
          "doc": "MaxLightLevel is the maximum per-voxel sky or block light level (0..15).\n",
          "file": "pkg/voxel/block.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "SchemaComment",
              "anchor": "SchemaComment"
            }
          ],
          "decl": "const SchemaComment = \"# yaml-language-server: $schema=\" + SchemaURL",
          "doc": "SchemaComment is the first line [Encode] writes so YAML language servers validate\nand complete voxel world files automatically.\n",
          "file": "pkg/voxel/format.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "SchemaURL",
              "anchor": "SchemaURL"
            }
          ],
          "decl": "const SchemaURL = \"https://game.nsgo.dev/schemas/voxel.v1.json\"",
          "doc": "SchemaURL is where the JSON Schema of version 1 voxel world documents is published.\n",
          "file": "pkg/voxel/format.go",
          "line": 19
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrInvalidBlock",
              "anchor": "ErrInvalidBlock"
            },
            {
              "name": "ErrDuplicateBlock",
              "anchor": "ErrDuplicateBlock"
            },
            {
              "name": "ErrRegistryFull",
              "anchor": "ErrRegistryFull"
            }
          ],
          "decl": "var (\n\tErrInvalidBlock   = errors.New(\"voxel: invalid block definition\")\n\tErrDuplicateBlock = errors.New(\"voxel: duplicate block definition\")\n\tErrRegistryFull   = errors.New(\"voxel: block registry is full\")\n)",
          "doc": "Sentinel errors returned by Registry operations.\n",
          "file": "pkg/voxel/block.go",
          "line": 176
        }
      ],
      "funcs": [
        {
          "name": "AOFactor",
          "anchor": "AOFactor",
          "decl": "func AOFactor(level uint8) float32",
          "doc": "AOFactor converts a discrete ambient occlusion level (0..3) into a linear\nbrightness multiplier in [0.25, 1.0].\n",
          "file": "pkg/voxel/mesh.go",
          "line": 132
        },
        {
          "name": "CombineLightColor",
          "anchor": "CombineLightColor",
          "decl": "func CombineLightColor(sky, block uint8, aoScale float32, style LightStyle) math3d.Vec4",
          "doc": "CombineLightColor evaluates the linear RGBA vertex color for a vertex with\nsky light (0..15), block light (0..15), and optional ambient occlusion scale\n(pass 1 when AO is disabled, or [AOFactor](ao) when enabled).\n",
          "file": "pkg/voxel/light.go",
          "line": 100
        },
        {
          "name": "CompareChunkCoords",
          "anchor": "CompareChunkCoords",
          "decl": "func CompareChunkCoords(a, b ChunkCoord) int",
          "doc": "CompareChunkCoords orders two chunk coordinates lexicographically by X, Y, Z.\n",
          "file": "pkg/voxel/block.go",
          "line": 136
        },
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(doc *WorldDoc) ([]byte, error)",
          "doc": "Encode validates doc and serializes it as deterministic 2-space YAML prefixed\nwith [SchemaComment].\n",
          "file": "pkg/voxel/format.go",
          "line": 291
        },
        {
          "name": "LightFactor",
          "anchor": "LightFactor",
          "decl": "func LightFactor(level uint8) float32",
          "doc": "LightFactor converts a discrete sky or block light level (0..15) into a\nlinear-space brightness multiplier in [0, 1]. Using a quadratic curve in\nlinear space produces a perceptually even gradient after sRGB encoding in\n[render3d].\n",
          "file": "pkg/voxel/light.go",
          "line": 55
        },
        {
          "name": "NewCollider",
          "anchor": "NewCollider",
          "decl": "func NewCollider(w *World) *physics3d.VoxelCollider",
          "doc": "NewCollider returns a [*physics3d.VoxelCollider] backed directly by w.\n\nOverlap, raycast, and sweep queries read solid blocks directly from w without\nbuilding a triangle mesh, so [World.SetBlock] edits take effect immediately\nwith zero rebuild. When added to a [*physics3d.World] via\n[physics3d.World.AddVoxelCollider], solid-block edits automatically wake\nsleeping dynamic bodies near the edited voxel.\n",
          "file": "pkg/voxel/collider.go",
          "line": 52
        },
        {
          "name": "SaveYAML",
          "anchor": "SaveYAML",
          "decl": "func SaveYAML(w *World, name string) ([]byte, error)",
          "doc": "SaveYAML encodes w as deterministic versioned YAML text.\n",
          "file": "pkg/voxel/format.go",
          "line": 418
        },
        {
          "name": "ValidChunkSize",
          "anchor": "ValidChunkSize",
          "decl": "func ValidChunkSize(n int) bool",
          "doc": "ValidChunkSize reports whether n is a supported power-of-two chunk size.\n",
          "file": "pkg/voxel/chunk.go",
          "line": 24
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(doc *WorldDoc) error",
          "doc": "Validate checks that doc conforms to the version 1 voxel world schema.\n",
          "file": "pkg/voxel/format.go",
          "line": 145
        }
      ],
      "types": [
        {
          "name": "AABBMoveResult",
          "anchor": "AABBMoveResult",
          "decl": "type AABBMoveResult struct {\n\t// Box is the resolved world-space AABB after axis-separated collision and\n\t// optional ledge step-up.\n\tBox math3d.AABB\n\t// Moved is the actual displacement applied to Box (Box.Min - initial.Min).\n\tMoved math3d.Vec3\n\t// Grounded reports whether the resolved box rests on a solid block underneath.\n\tGrounded bool\n\t// OnWall reports whether horizontal movement was blocked on X or Z.\n\tOnWall bool\n\t// OnCeiling reports whether upward movement was blocked by a solid block above.\n\tOnCeiling bool\n\t// SteppedUp reports whether the box automatically climbed a ledge up to stepHeight.\n\tSteppedUp bool\n\t// WallNormal is the horizontal unit normal of the last blocking wall face,\n\t// or the zero vector when OnWall is false.\n\tWallNormal math3d.Vec3\n}",
          "doc": "AABBMoveResult reports the outcome of [MoveAndSlideAABB].\n",
          "file": "pkg/voxel/character.go",
          "line": 11,
          "members": [
            {
              "name": "Box",
              "anchor": "AABBMoveResult.Box",
              "kind": "field",
              "doc": "Box is the resolved world-space AABB after axis-separated collision and\noptional ledge step-up."
            },
            {
              "name": "Moved",
              "anchor": "AABBMoveResult.Moved",
              "kind": "field",
              "doc": "Moved is the actual displacement applied to Box (Box.Min - initial.Min)."
            },
            {
              "name": "Grounded",
              "anchor": "AABBMoveResult.Grounded",
              "kind": "field",
              "doc": "Grounded reports whether the resolved box rests on a solid block underneath."
            },
            {
              "name": "OnWall",
              "anchor": "AABBMoveResult.OnWall",
              "kind": "field",
              "doc": "OnWall reports whether horizontal movement was blocked on X or Z."
            },
            {
              "name": "OnCeiling",
              "anchor": "AABBMoveResult.OnCeiling",
              "kind": "field",
              "doc": "OnCeiling reports whether upward movement was blocked by a solid block above."
            },
            {
              "name": "SteppedUp",
              "anchor": "AABBMoveResult.SteppedUp",
              "kind": "field",
              "doc": "SteppedUp reports whether the box automatically climbed a ledge up to stepHeight."
            },
            {
              "name": "WallNormal",
              "anchor": "AABBMoveResult.WallNormal",
              "kind": "field",
              "doc": "WallNormal is the horizontal unit normal of the last blocking wall face,\nor the zero vector when OnWall is false."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "MoveAndSlideAABB",
              "anchor": "MoveAndSlideAABB",
              "decl": "func MoveAndSlideAABB(w *World, box math3d.AABB, delta math3d.Vec3, stepHeight float32) AABBMoveResult",
              "doc": "MoveAndSlideAABB moves an axis-aligned box through solid blocks in w by delta\nusing axis-separated swept AABB resolution (Y, then X, then Z).\n\nBecause each axis sweeps strictly against faces perpendicular to that axis,\nflat floors and walls never snag on internal seams between adjacent blocks.\nWhen blocked horizontally while grounded and stepHeight > 0 (with delta.Y <= 0),\nMoveAndSlideAABB attempts an automatic step-up up to stepHeight (checking\nceiling headroom and greater horizontal progress) so characters walk cleanly\nonto single-block ledges.\n",
              "file": "pkg/voxel/character.go",
              "line": 39
            }
          ],
          "methods": []
        },
        {
          "name": "BlockCoord",
          "anchor": "BlockCoord",
          "decl": "type BlockCoord struct {\n\tX, Y, Z int\n}",
          "doc": "BlockCoord is an integer voxel coordinate in world space.\n",
          "file": "pkg/voxel/block.go",
          "line": 106,
          "members": [
            {
              "name": "X",
              "anchor": "BlockCoord.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "BlockCoord.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "BlockCoord.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "BlockCoord.Add",
              "recv": "BlockCoord",
              "decl": "func (c BlockCoord) Add(d BlockCoord) BlockCoord",
              "doc": "Add returns c + d.\n",
              "file": "pkg/voxel/block.go",
              "line": 111
            },
            {
              "name": "Sub",
              "anchor": "BlockCoord.Sub",
              "recv": "BlockCoord",
              "decl": "func (c BlockCoord) Sub(d BlockCoord) BlockCoord",
              "doc": "Sub returns c - d.\n",
              "file": "pkg/voxel/block.go",
              "line": 116
            }
          ]
        },
        {
          "name": "BlockDef",
          "anchor": "BlockDef",
          "decl": "type BlockDef struct {\n\t// ID is the numeric block ID. Pass 0 to Register to assign the next free ID.\n\tID BlockID\n\t// Name is the unique human-readable block name used in YAML saves.\n\tName string\n\t// Transparent marks blocks that do not hide opaque neighbors behind them\n\t// (such as glass or water). Faces between two identical transparent blocks\n\t// are culled.\n\tTransparent bool\n\t// NonSolid marks blocks skipped by default solid raycasts (such as water or tall grass).\n\tNonSolid bool\n\t// MaterialID groups emitted faces into SubMesh ranges during meshing.\n\tMaterialID uint32\n\t// Emissive is the block light level (0..15) emitted by this block into the\n\t// block-light channel (for example 14 for a torch or 15 for lava/glowstone).\n\t// Zero means the block emits no light.\n\tEmissive uint8\n\t// LightOpacity is the light attenuation (0..15) applied to light passing\n\t// through a Transparent block (for example 1 for leaves or 2 for water).\n\t// Zero lets direct sky light pass unattenuated and attenuates propagated\n\t// light by 1 per voxel step. Opaque blocks (Transparent == false) always\n\t// block incoming light completely (effective opacity 15).\n\tLightOpacity uint8\n}",
          "doc": "BlockDef describes a registered voxel block type.\n\nZero values represent an opaque, solid block with MaterialID 0, so\nBlockDef{Name: \"stone\"} works with minimal configuration.\n",
          "file": "pkg/voxel/block.go",
          "line": 150,
          "members": [
            {
              "name": "ID",
              "anchor": "BlockDef.ID",
              "kind": "field",
              "doc": "ID is the numeric block ID. Pass 0 to Register to assign the next free ID."
            },
            {
              "name": "Name",
              "anchor": "BlockDef.Name",
              "kind": "field",
              "doc": "Name is the unique human-readable block name used in YAML saves."
            },
            {
              "name": "Transparent",
              "anchor": "BlockDef.Transparent",
              "kind": "field",
              "doc": "Transparent marks blocks that do not hide opaque neighbors behind them\n(such as glass or water). Faces between two identical transparent blocks\nare culled."
            },
            {
              "name": "NonSolid",
              "anchor": "BlockDef.NonSolid",
              "kind": "field",
              "doc": "NonSolid marks blocks skipped by default solid raycasts (such as water or tall grass)."
            },
            {
              "name": "MaterialID",
              "anchor": "BlockDef.MaterialID",
              "kind": "field",
              "doc": "MaterialID groups emitted faces into SubMesh ranges during meshing."
            },
            {
              "name": "Emissive",
              "anchor": "BlockDef.Emissive",
              "kind": "field",
              "doc": "Emissive is the block light level (0..15) emitted by this block into the\nblock-light channel (for example 14 for a torch or 15 for lava/glowstone).\nZero means the block emits no light."
            },
            {
              "name": "LightOpacity",
              "anchor": "BlockDef.LightOpacity",
              "kind": "field",
              "doc": "LightOpacity is the light attenuation (0..15) applied to light passing\nthrough a Transparent block (for example 1 for leaves or 2 for water).\nZero lets direct sky light pass unattenuated and attenuates propagated\nlight by 1 per voxel step. Opaque blocks (Transparent == false) always\nblock incoming light completely (effective opacity 15)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BlockDoc",
          "anchor": "BlockDoc",
          "decl": "type BlockDoc struct {\n\t// ID is the non-zero numeric block ID referenced by chunk runs.\n\tID BlockID `yaml:\"id\" schema:\"required,minimum=1\"`\n\t// Name is the unique human-readable name of the block type.\n\tName string `yaml:\"name\" schema:\"required,minLength=1\"`\n\t// Transparent marks blocks whose neighbors remain visible behind them (such as glass or water).\n\tTransparent bool `yaml:\"transparent,omitempty\"`\n\t// NonSolid marks blocks excluded from solid collision and default raycasts.\n\tNonSolid bool `yaml:\"nonSolid,omitempty\"`\n\t// MaterialID groups emitted faces into SubMesh ranges when meshing.\n\tMaterialID uint32 `yaml:\"materialId,omitempty\"`\n\t// Emissive is the block light level (0..15) emitted into the block-light channel.\n\tEmissive uint8 `yaml:\"emissive,omitempty\" schema:\"minimum=0,maximum=15\"`\n\t// LightOpacity is the light attenuation (0..15) for transparent blocks; 0 lets direct sky light pass and attenuates propagated light by 1.\n\tLightOpacity uint8 `yaml:\"lightOpacity,omitempty\" schema:\"minimum=0,maximum=15\"`\n}",
          "doc": "BlockDoc describes one non-air block type in a [WorldDoc] palette.\n",
          "file": "pkg/voxel/format.go",
          "line": 52,
          "members": [
            {
              "name": "ID",
              "anchor": "BlockDoc.ID",
              "kind": "field",
              "doc": "ID is the non-zero numeric block ID referenced by chunk runs."
            },
            {
              "name": "Name",
              "anchor": "BlockDoc.Name",
              "kind": "field",
              "doc": "Name is the unique human-readable name of the block type."
            },
            {
              "name": "Transparent",
              "anchor": "BlockDoc.Transparent",
              "kind": "field",
              "doc": "Transparent marks blocks whose neighbors remain visible behind them (such as glass or water)."
            },
            {
              "name": "NonSolid",
              "anchor": "BlockDoc.NonSolid",
              "kind": "field",
              "doc": "NonSolid marks blocks excluded from solid collision and default raycasts."
            },
            {
              "name": "MaterialID",
              "anchor": "BlockDoc.MaterialID",
              "kind": "field",
              "doc": "MaterialID groups emitted faces into SubMesh ranges when meshing."
            },
            {
              "name": "Emissive",
              "anchor": "BlockDoc.Emissive",
              "kind": "field",
              "doc": "Emissive is the block light level (0..15) emitted into the block-light channel."
            },
            {
              "name": "LightOpacity",
              "anchor": "BlockDoc.LightOpacity",
              "kind": "field",
              "doc": "LightOpacity is the light attenuation (0..15) for transparent blocks; 0 lets direct sky light pass and attenuates propagated light by 1."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "BlockID",
          "anchor": "BlockID",
          "decl": "type BlockID uint16",
          "doc": "BlockID identifies a block type stored in a voxel chunk.\nID 0 is always [Air].\n",
          "file": "pkg/voxel/block.go",
          "line": 15,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Air",
                  "anchor": "Air"
                }
              ],
              "decl": "const Air BlockID = 0",
              "doc": "Air is the reserved empty block ID (0).\n",
              "file": "pkg/voxel/block.go",
              "line": 18
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CharacterMoveResult",
          "anchor": "CharacterMoveResult",
          "decl": "type CharacterMoveResult struct {\n\tPos        math3d.Vec3\n\tGrounded   bool\n\tOnWall     bool\n\tOnCeiling  bool\n\tSteppedUp  bool\n\tWallNormal math3d.Vec3\n}",
          "doc": "CharacterMoveResult summarizes the outcome of [CharacterMover.Move].\n",
          "file": "pkg/voxel/character.go",
          "line": 365,
          "members": [
            {
              "name": "Pos",
              "anchor": "CharacterMoveResult.Pos",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Grounded",
              "anchor": "CharacterMoveResult.Grounded",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnWall",
              "anchor": "CharacterMoveResult.OnWall",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OnCeiling",
              "anchor": "CharacterMoveResult.OnCeiling",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "SteppedUp",
              "anchor": "CharacterMoveResult.SteppedUp",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "WallNormal",
              "anchor": "CharacterMoveResult.WallNormal",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "CharacterMover",
          "anchor": "CharacterMover",
          "decl": "type CharacterMover struct {\n\t// Pos is the world-space bottom-center of the character's AABB (feet).\n\tPos math3d.Vec3\n\t// HalfWidth is the half-extent along X.\n\tHalfWidth float32\n\t// HalfDepth is the half-extent along Z.\n\tHalfDepth float32\n\t// Height is the full vertical height of the AABB along +Y.\n\tHeight float32\n\t// StepHeight is the maximum vertical ledge height climbed automatically while\n\t// grounded. NewCharacterMover defaults this to 1.0 (one default voxel); set\n\t// to 0 to disable automatic step-up.\n\tStepHeight float32\n\t// Gravity is the vertical acceleration in units/s^2 (negative for -Y).\n\t// NewCharacterMover defaults this to -9.81.\n\tGravity float32\n\t// Vel is the character's current velocity in units per second.\n\tVel math3d.Vec3\n\t// Grounded reports whether the character ended the last Move on solid blocks.\n\tGrounded bool\n\t// OnWall reports whether the last Move was blocked horizontally.\n\tOnWall bool\n\t// OnCeiling reports whether the last Move hit a ceiling block above.\n\tOnCeiling bool\n\t// WallNormal is the horizontal unit normal of the last blocking wall hit.\n\tWallNormal math3d.Vec3\n}",
          "doc": "CharacterMover drives a simple axis-aligned box character directly against a\nvoxel [World] using axis-separated AABB move-and-slide with gravity, jumping,\nand automatic single-block ledge step-up, without needing a [physics3d.World].\n\nPos is the world-space bottom-center of the character's box (the feet).\n",
          "file": "pkg/voxel/character.go",
          "line": 379,
          "members": [
            {
              "name": "Pos",
              "anchor": "CharacterMover.Pos",
              "kind": "field",
              "doc": "Pos is the world-space bottom-center of the character's AABB (feet)."
            },
            {
              "name": "HalfWidth",
              "anchor": "CharacterMover.HalfWidth",
              "kind": "field",
              "doc": "HalfWidth is the half-extent along X."
            },
            {
              "name": "HalfDepth",
              "anchor": "CharacterMover.HalfDepth",
              "kind": "field",
              "doc": "HalfDepth is the half-extent along Z."
            },
            {
              "name": "Height",
              "anchor": "CharacterMover.Height",
              "kind": "field",
              "doc": "Height is the full vertical height of the AABB along +Y."
            },
            {
              "name": "StepHeight",
              "anchor": "CharacterMover.StepHeight",
              "kind": "field",
              "doc": "StepHeight is the maximum vertical ledge height climbed automatically while\ngrounded. NewCharacterMover defaults this to 1.0 (one default voxel); set\nto 0 to disable automatic step-up."
            },
            {
              "name": "Gravity",
              "anchor": "CharacterMover.Gravity",
              "kind": "field",
              "doc": "Gravity is the vertical acceleration in units/s^2 (negative for -Y).\nNewCharacterMover defaults this to -9.81."
            },
            {
              "name": "Vel",
              "anchor": "CharacterMover.Vel",
              "kind": "field",
              "doc": "Vel is the character's current velocity in units per second."
            },
            {
              "name": "Grounded",
              "anchor": "CharacterMover.Grounded",
              "kind": "field",
              "doc": "Grounded reports whether the character ended the last Move on solid blocks."
            },
            {
              "name": "OnWall",
              "anchor": "CharacterMover.OnWall",
              "kind": "field",
              "doc": "OnWall reports whether the last Move was blocked horizontally."
            },
            {
              "name": "OnCeiling",
              "anchor": "CharacterMover.OnCeiling",
              "kind": "field",
              "doc": "OnCeiling reports whether the last Move hit a ceiling block above."
            },
            {
              "name": "WallNormal",
              "anchor": "CharacterMover.WallNormal",
              "kind": "field",
              "doc": "WallNormal is the horizontal unit normal of the last blocking wall hit."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewCharacterMover",
              "anchor": "NewCharacterMover",
              "decl": "func NewCharacterMover(pos math3d.Vec3, halfWidth, height float32) *CharacterMover",
              "doc": "NewCharacterMover returns a CharacterMover centered horizontally at pos\n(feet at pos.Y) with square horizontal footprint [-halfWidth, +halfWidth],\nvertical height, default StepHeight of 1.0, and Gravity of -9.81.\n",
              "file": "pkg/voxel/character.go",
              "line": 410
            }
          ],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "CharacterMover.Bounds",
              "recv": "*CharacterMover",
              "decl": "func (c *CharacterMover) Bounds() math3d.AABB",
              "doc": "Bounds returns the character's current world-space AABB.\n",
              "file": "pkg/voxel/character.go",
              "line": 422
            },
            {
              "name": "Move",
              "anchor": "CharacterMover.Move",
              "recv": "*CharacterMover",
              "decl": "func (c *CharacterMover) Move(w *World, wishMove math3d.Vec3, dt time.Duration) CharacterMoveResult",
              "doc": "Move advances the character through w for dt using axis-separated AABB\nmove-and-slide. wishMove.X and wishMove.Z set horizontal velocity directly;\na non-zero wishMove.Y sets Vel.Y (such as for a jump) while wishMove.Y == 0\nlets Gravity govern vertical motion.\n",
              "file": "pkg/voxel/character.go",
              "line": 438
            }
          ]
        },
        {
          "name": "Chunk",
          "anchor": "Chunk",
          "decl": "type Chunk struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Chunk stores a dense cubic N x N x N grid of [BlockID] values in (y, z, x)\norder (index = (y*N + z)*N + x), alongside per-voxel sky and block light\nlevels packed into one byte per voxel (high nibble: sky 0..15, low nibble:\nblock 0..15).\n",
          "file": "pkg/voxel/chunk.go",
          "line": 45,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "BlockLight",
              "anchor": "Chunk.BlockLight",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) BlockLight(lx, ly, lz int) uint8",
              "doc": "BlockLight returns the stored block light level (0..15) at chunk-local\ncoordinates (lx, ly, lz), or 0 if out of bounds. Use [World.BlockLight] for\ncross-chunk world-coordinate queries.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 127
            },
            {
              "name": "Blocks",
              "anchor": "Chunk.Blocks",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Blocks() []BlockID",
              "doc": "Blocks returns the chunk's underlying block slice in (y, z, x) order\n(index = (y*N + z)*N + x). Callers should treat it as read-only; edit blocks\nvia [World.SetBlock] so dirty tracking stays accurate.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 147
            },
            {
              "name": "Bounds",
              "anchor": "Chunk.Bounds",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Bounds(voxelSize float32) math3d.AABB",
              "doc": "Bounds returns the world-space axis-aligned bounding box of c.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 155
            },
            {
              "name": "Coord",
              "anchor": "Chunk.Coord",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Coord() ChunkCoord",
              "doc": "Coord returns the chunk's integer coordinate in chunk space.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 65
            },
            {
              "name": "Dirty",
              "anchor": "Chunk.Dirty",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Dirty() bool",
              "doc": "Dirty reports whether c has unmeshed edits.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 82
            },
            {
              "name": "Empty",
              "anchor": "Chunk.Empty",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Empty() bool",
              "doc": "Empty reports whether every voxel in c is [Air].\n",
              "file": "pkg/voxel/chunk.go",
              "line": 71
            },
            {
              "name": "Get",
              "anchor": "Chunk.Get",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Get(lx, ly, lz int) BlockID",
              "doc": "Get returns the block at chunk-local coordinates (lx, ly, lz), or [Air] if\nout of bounds.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 107
            },
            {
              "name": "Light",
              "anchor": "Chunk.Light",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Light(lx, ly, lz int) (sky, block uint8)",
              "doc": "Light returns both the stored sky light and block light levels (0..15 each)\nat chunk-local coordinates (lx, ly, lz), or (0, 0) if out of bounds.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 136
            },
            {
              "name": "NonAirCount",
              "anchor": "Chunk.NonAirCount",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) NonAirCount() int",
              "doc": "NonAirCount returns the number of non-air voxels in c.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 74
            },
            {
              "name": "Revision",
              "anchor": "Chunk.Revision",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Revision() uint64",
              "doc": "Revision returns a monotonically increasing edit counter for c.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 90
            },
            {
              "name": "Size",
              "anchor": "Chunk.Size",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) Size() int",
              "doc": "Size returns the chunk's edge length N.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 68
            },
            {
              "name": "SkyLight",
              "anchor": "Chunk.SkyLight",
              "recv": "*Chunk",
              "decl": "func (c *Chunk) SkyLight(lx, ly, lz int) uint8",
              "doc": "SkyLight returns the stored sky light level (0..15) at chunk-local\ncoordinates (lx, ly, lz), or 0 if out of bounds. Use [World.SkyLight] for\ncross-chunk world-coordinate queries.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 117
            }
          ]
        },
        {
          "name": "ChunkCoord",
          "anchor": "ChunkCoord",
          "decl": "type ChunkCoord struct {\n\tX, Y, Z int\n}",
          "doc": "ChunkCoord is an integer chunk index in chunk-grid space.\n",
          "file": "pkg/voxel/block.go",
          "line": 121,
          "members": [
            {
              "name": "X",
              "anchor": "ChunkCoord.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "ChunkCoord.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "ChunkCoord.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "ChunkCoord.Add",
              "recv": "ChunkCoord",
              "decl": "func (c ChunkCoord) Add(d ChunkCoord) ChunkCoord",
              "doc": "Add returns c + d.\n",
              "file": "pkg/voxel/block.go",
              "line": 126
            },
            {
              "name": "Sub",
              "anchor": "ChunkCoord.Sub",
              "recv": "ChunkCoord",
              "decl": "func (c ChunkCoord) Sub(d ChunkCoord) ChunkCoord",
              "doc": "Sub returns c - d.\n",
              "file": "pkg/voxel/block.go",
              "line": 131
            }
          ]
        },
        {
          "name": "ChunkDoc",
          "anchor": "ChunkDoc",
          "decl": "type ChunkDoc struct {\n\t// X is the chunk's X index in chunk-grid coordinates.\n\tX int `yaml:\"x\"`\n\t// Y is the chunk's Y index in chunk-grid coordinates.\n\tY int `yaml:\"y\"`\n\t// Z is the chunk's Z index in chunk-grid coordinates.\n\tZ int `yaml:\"z\"`\n\t// Runs holds run-length encoded block tokens (\"id*count\" or \"id\" for count 1) in (y, z, x) order whose counts sum to chunkSize^3.\n\tRuns []string `yaml:\"runs\" schema:\"required,minItems=1\"`\n}",
          "doc": "ChunkDoc stores one non-empty chunk using run-length encoded block runs in (y, z, x) order.\n",
          "file": "pkg/voxel/format.go",
          "line": 70,
          "members": [
            {
              "name": "X",
              "anchor": "ChunkDoc.X",
              "kind": "field",
              "doc": "X is the chunk's X index in chunk-grid coordinates."
            },
            {
              "name": "Y",
              "anchor": "ChunkDoc.Y",
              "kind": "field",
              "doc": "Y is the chunk's Y index in chunk-grid coordinates."
            },
            {
              "name": "Z",
              "anchor": "ChunkDoc.Z",
              "kind": "field",
              "doc": "Z is the chunk's Z index in chunk-grid coordinates."
            },
            {
              "name": "Runs",
              "anchor": "ChunkDoc.Runs",
              "kind": "field",
              "doc": "Runs holds run-length encoded block tokens (\"id*count\" or \"id\" for count 1) in (y, z, x) order whose counts sum to chunkSize^3."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChunkMesh",
          "anchor": "ChunkMesh",
          "decl": "type ChunkMesh struct {\n\t// Coord is the chunk's grid coordinate.\n\tCoord ChunkCoord\n\t// Origin is the world-space minimum corner of the chunk.\n\tOrigin math3d.Vec3\n\t// Bounds is the tight axis-aligned bounding box of Mesh.Positions, or\n\t// math3d.AABBEmpty when the chunk emitted no faces.\n\tBounds math3d.AABB\n\t// Mesh holds CCW front-facing indexed triangle geometry compatible with\n\t// render3d.UploadMesh.\n\tMesh render3d.Mesh\n\t// SubMeshes partitions Mesh.Indices by BlockDef.MaterialID in ascending\n\t// MaterialID order.\n\tSubMeshes []SubMesh\n\t// AO holds per-vertex ambient occlusion levels in [0, 3] (3 = unoccluded,\n\t// 0 = fully occluded) when MeshOptions.AmbientOcclusion is true; nil otherwise.\n\tAO []uint8\n\t// SkyLight holds per-vertex sky light levels in [0, 15] when\n\t// MeshOptions.Lighting is true; nil otherwise.\n\tSkyLight []uint8\n\t// BlockLight holds per-vertex block light levels in [0, 15] when\n\t// MeshOptions.Lighting is true; nil otherwise.\n\tBlockLight []uint8\n\t// Colors holds per-vertex linear RGBA shading colors combining sky light,\n\t// block light, and AO when MeshOptions.Lighting is true; nil otherwise.\n\tColors []math3d.Vec4\n\t// QuadCount is the number of emitted quads (len(Mesh.Indices) / 6).\n\tQuadCount int\n}",
          "doc": "ChunkMesh holds the triangulated geometry generated for one chunk, ready to\nupload with [render3d.UploadMesh] or (with vertex light/AO colors)\n[render3d.UploadColoredMesh] via [ChunkMesh.ColoredMesh].\n",
          "file": "pkg/voxel/mesh.go",
          "line": 68,
          "members": [
            {
              "name": "Coord",
              "anchor": "ChunkMesh.Coord",
              "kind": "field",
              "doc": "Coord is the chunk's grid coordinate."
            },
            {
              "name": "Origin",
              "anchor": "ChunkMesh.Origin",
              "kind": "field",
              "doc": "Origin is the world-space minimum corner of the chunk."
            },
            {
              "name": "Bounds",
              "anchor": "ChunkMesh.Bounds",
              "kind": "field",
              "doc": "Bounds is the tight axis-aligned bounding box of Mesh.Positions, or\nmath3d.AABBEmpty when the chunk emitted no faces."
            },
            {
              "name": "Mesh",
              "anchor": "ChunkMesh.Mesh",
              "kind": "field",
              "doc": "Mesh holds CCW front-facing indexed triangle geometry compatible with\nrender3d.UploadMesh."
            },
            {
              "name": "SubMeshes",
              "anchor": "ChunkMesh.SubMeshes",
              "kind": "field",
              "doc": "SubMeshes partitions Mesh.Indices by BlockDef.MaterialID in ascending\nMaterialID order."
            },
            {
              "name": "AO",
              "anchor": "ChunkMesh.AO",
              "kind": "field",
              "doc": "AO holds per-vertex ambient occlusion levels in [0, 3] (3 = unoccluded,\n0 = fully occluded) when MeshOptions.AmbientOcclusion is true; nil otherwise."
            },
            {
              "name": "SkyLight",
              "anchor": "ChunkMesh.SkyLight",
              "kind": "field",
              "doc": "SkyLight holds per-vertex sky light levels in [0, 15] when\nMeshOptions.Lighting is true; nil otherwise."
            },
            {
              "name": "BlockLight",
              "anchor": "ChunkMesh.BlockLight",
              "kind": "field",
              "doc": "BlockLight holds per-vertex block light levels in [0, 15] when\nMeshOptions.Lighting is true; nil otherwise."
            },
            {
              "name": "Colors",
              "anchor": "ChunkMesh.Colors",
              "kind": "field",
              "doc": "Colors holds per-vertex linear RGBA shading colors combining sky light,\nblock light, and AO when MeshOptions.Lighting is true; nil otherwise."
            },
            {
              "name": "QuadCount",
              "anchor": "ChunkMesh.QuadCount",
              "kind": "field",
              "doc": "QuadCount is the number of emitted quads (len(Mesh.Indices) / 6)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ColoredMesh",
              "anchor": "ChunkMesh.ColoredMesh",
              "recv": "ChunkMesh",
              "decl": "func (cm ChunkMesh) ColoredMesh() render3d.ColoredMesh",
              "doc": "ColoredMesh returns a [render3d.ColoredMesh] ready for\n[render3d.UploadColoredMesh] and colored [render3d] pipelines (such as\n[render3d.NewUnlitPipeline] or [render3d.NewMaterialPipeline] with\nVertexColors: true).\n\nWhen [ChunkMesh.Colors] is populated (from MeshOptions.Lighting), it is used\ndirectly. Otherwise, if [ChunkMesh.AO] is populated, grayscale linear AO\ncolors are generated; if neither is populated, Colors is nil (which render3d\nuploads as linear white).\n",
              "file": "pkg/voxel/mesh.go",
              "line": 112
            },
            {
              "name": "Empty",
              "anchor": "ChunkMesh.Empty",
              "recv": "ChunkMesh",
              "decl": "func (cm ChunkMesh) Empty() bool",
              "doc": "Empty reports whether the chunk produced no visible triangles.\n",
              "file": "pkg/voxel/mesh.go",
              "line": 99
            }
          ]
        },
        {
          "name": "Face",
          "anchor": "Face",
          "decl": "type Face uint8",
          "doc": "Face identifies one of the six axis-aligned faces of a voxel cube.\n",
          "file": "pkg/voxel/block.go",
          "line": 24,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "FacePosX",
                  "anchor": "FacePosX"
                },
                {
                  "name": "FaceNegX",
                  "anchor": "FaceNegX"
                },
                {
                  "name": "FacePosY",
                  "anchor": "FacePosY"
                },
                {
                  "name": "FaceNegY",
                  "anchor": "FaceNegY"
                },
                {
                  "name": "FacePosZ",
                  "anchor": "FacePosZ"
                },
                {
                  "name": "FaceNegZ",
                  "anchor": "FaceNegZ"
                },
                {
                  "name": "FaceCount",
                  "anchor": "FaceCount"
                }
              ],
              "decl": "const (\n\tFacePosX Face = iota // +X (east)\n\tFaceNegX             // -X (west)\n\tFacePosY             // +Y (up / top)\n\tFaceNegY             // -Y (down / bottom)\n\tFacePosZ             // +Z (south)\n\tFaceNegZ             // -Z (north)\n\t// FaceCount is the number of cube face directions.\n\tFaceCount = 6\n)",
              "doc": "",
              "file": "pkg/voxel/block.go",
              "line": 26
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Normal",
              "anchor": "Face.Normal",
              "recv": "Face",
              "decl": "func (f Face) Normal() math3d.Vec3",
              "doc": "Normal returns the outward unit normal of face f.\n",
              "file": "pkg/voxel/block.go",
              "line": 74
            },
            {
              "name": "Opposite",
              "anchor": "Face.Opposite",
              "recv": "Face",
              "decl": "func (f Face) Opposite() Face",
              "doc": "Opposite returns the face pointing in the opposite direction.\n",
              "file": "pkg/voxel/block.go",
              "line": 90
            },
            {
              "name": "Step",
              "anchor": "Face.Step",
              "recv": "Face",
              "decl": "func (f Face) Step() BlockCoord",
              "doc": "Step returns the integer neighbor offset in the direction of face f.\n",
              "file": "pkg/voxel/block.go",
              "line": 82
            },
            {
              "name": "String",
              "anchor": "Face.String",
              "recv": "Face",
              "decl": "func (f Face) String() string",
              "doc": "String returns a short human-readable label such as \"+Y\".\n",
              "file": "pkg/voxel/block.go",
              "line": 98
            }
          ]
        },
        {
          "name": "LightStyle",
          "anchor": "LightStyle",
          "decl": "type LightStyle struct {\n\t// SkyColor is the linear RGB tint at maximum sky light (level 15).\n\t// When both SkyColor and BlockColor are zero, [DefaultLightStyle] is used.\n\tSkyColor math3d.Vec3\n\t// BlockColor is the linear RGB tint at maximum block light (level 15).\n\tBlockColor math3d.Vec3\n\t// Ambient is the minimum linear brightness floor when both sky and block\n\t// light are 0 (for example 0.03 so unlit caves remain faintly visible).\n\tAmbient float32\n}",
          "doc": "LightStyle controls how per-vertex sky light, block light, and ambient\nocclusion combine into linear RGB vertex colors in [ChunkMesh.Colors].\n",
          "file": "pkg/voxel/light.go",
          "line": 68,
          "members": [
            {
              "name": "SkyColor",
              "anchor": "LightStyle.SkyColor",
              "kind": "field",
              "doc": "SkyColor is the linear RGB tint at maximum sky light (level 15).\nWhen both SkyColor and BlockColor are zero, [DefaultLightStyle] is used."
            },
            {
              "name": "BlockColor",
              "anchor": "LightStyle.BlockColor",
              "kind": "field",
              "doc": "BlockColor is the linear RGB tint at maximum block light (level 15)."
            },
            {
              "name": "Ambient",
              "anchor": "LightStyle.Ambient",
              "kind": "field",
              "doc": "Ambient is the minimum linear brightness floor when both sky and block\nlight are 0 (for example 0.03 so unlit caves remain faintly visible)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultLightStyle",
              "anchor": "DefaultLightStyle",
              "decl": "func DefaultLightStyle() LightStyle",
              "doc": "DefaultLightStyle returns a neutral linear lighting style with white daylight\n(1, 1, 1), white block light (1, 1, 1), and zero ambient floor.\n",
              "file": "pkg/voxel/light.go",
              "line": 81
            }
          ],
          "methods": []
        },
        {
          "name": "MeshOptions",
          "anchor": "MeshOptions",
          "decl": "type MeshOptions struct {\n\t// AmbientOcclusion computes per-vertex Minecraft-style ambient occlusion\n\t// levels (0..3) in ChunkMesh.AO and flips quad diagonals to avoid\n\t// interpolation artifacts. Faces merge only when all four AO corners match.\n\tAmbientOcclusion bool\n\t// Lighting samples per-voxel sky and block light levels (0..15) across chunk\n\t// boundaries into ChunkMesh.SkyLight, ChunkMesh.BlockLight, and linear RGBA\n\t// vertex colors in ChunkMesh.Colors (ready for ChunkMesh.ColoredMesh and\n\t// render3d). Greedy meshing merges faces only when lighting matches.\n\tLighting bool\n\t// SmoothLighting enables 4-voxel corner light averaging when Lighting is\n\t// true, eliminating per-block lighting stair-steps across faces and chunk\n\t// boundaries. Ignored when Lighting is false.\n\tSmoothLighting bool\n\t// LightStyle controls how sky light, block light, and ambient occlusion\n\t// combine into ChunkMesh.Colors when Lighting is true. The zero value uses\n\t// [DefaultLightStyle].\n\tLightStyle LightStyle\n\t// WorldSpace offsets emitted vertex positions by ChunkMesh.Origin so the\n\t// mesh can be drawn with an identity model transform. When false (default),\n\t// positions are chunk-local in [0, ChunkSize*VoxelSize].\n\tWorldSpace bool\n\t// DisableGreedy emits one quad per visible voxel face without merging\n\t// coplanar neighbors. Useful for comparison benchmarks and debugging.\n\tDisableGreedy bool\n\t// IgnoreNeighbors treats voxels outside the chunk as Air instead of\n\t// sampling neighboring chunks for face culling, ambient occlusion, and\n\t// lighting.\n\tIgnoreNeighbors bool\n\t// UVMode controls quad UV scaling (default UVWorld).\n\tUVMode UVMode\n}",
          "doc": "MeshOptions configures greedy chunk meshing.\nThe zero value enables greedy meshing, cross-chunk neighbor culling,\nchunk-local vertex positions, and tiling UVWorld coordinates.\n",
          "file": "pkg/voxel/mesh.go",
          "line": 24,
          "members": [
            {
              "name": "AmbientOcclusion",
              "anchor": "MeshOptions.AmbientOcclusion",
              "kind": "field",
              "doc": "AmbientOcclusion computes per-vertex Minecraft-style ambient occlusion\nlevels (0..3) in ChunkMesh.AO and flips quad diagonals to avoid\ninterpolation artifacts. Faces merge only when all four AO corners match."
            },
            {
              "name": "Lighting",
              "anchor": "MeshOptions.Lighting",
              "kind": "field",
              "doc": "Lighting samples per-voxel sky and block light levels (0..15) across chunk\nboundaries into ChunkMesh.SkyLight, ChunkMesh.BlockLight, and linear RGBA\nvertex colors in ChunkMesh.Colors (ready for ChunkMesh.ColoredMesh and\nrender3d). Greedy meshing merges faces only when lighting matches."
            },
            {
              "name": "SmoothLighting",
              "anchor": "MeshOptions.SmoothLighting",
              "kind": "field",
              "doc": "SmoothLighting enables 4-voxel corner light averaging when Lighting is\ntrue, eliminating per-block lighting stair-steps across faces and chunk\nboundaries. Ignored when Lighting is false."
            },
            {
              "name": "LightStyle",
              "anchor": "MeshOptions.LightStyle",
              "kind": "field",
              "doc": "LightStyle controls how sky light, block light, and ambient occlusion\ncombine into ChunkMesh.Colors when Lighting is true. The zero value uses\n[DefaultLightStyle]."
            },
            {
              "name": "WorldSpace",
              "anchor": "MeshOptions.WorldSpace",
              "kind": "field",
              "doc": "WorldSpace offsets emitted vertex positions by ChunkMesh.Origin so the\nmesh can be drawn with an identity model transform. When false (default),\npositions are chunk-local in [0, ChunkSize*VoxelSize]."
            },
            {
              "name": "DisableGreedy",
              "anchor": "MeshOptions.DisableGreedy",
              "kind": "field",
              "doc": "DisableGreedy emits one quad per visible voxel face without merging\ncoplanar neighbors. Useful for comparison benchmarks and debugging."
            },
            {
              "name": "IgnoreNeighbors",
              "anchor": "MeshOptions.IgnoreNeighbors",
              "kind": "field",
              "doc": "IgnoreNeighbors treats voxels outside the chunk as Air instead of\nsampling neighboring chunks for face culling, ambient occlusion, and\nlighting."
            },
            {
              "name": "UVMode",
              "anchor": "MeshOptions.UVMode",
              "kind": "field",
              "doc": "UVMode controls quad UV scaling (default UVWorld)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Mesher",
          "anchor": "Mesher",
          "decl": "type Mesher struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Mesher builds chunk meshes using reusable scratch buffers so incremental\nper-frame remeshing avoids temporary working-set allocations.\nA Mesher is not safe for concurrent use by multiple goroutines; give each\nworker its own Mesher.\n",
          "file": "pkg/voxel/mesh.go",
          "line": 149,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewMesher",
              "anchor": "NewMesher",
              "decl": "func NewMesher() *Mesher",
              "doc": "NewMesher returns a reusable Mesher.\n",
              "file": "pkg/voxel/mesh.go",
              "line": 160
            }
          ],
          "methods": [
            {
              "name": "MeshChunk",
              "anchor": "Mesher.MeshChunk",
              "recv": "*Mesher",
              "decl": "func (m *Mesher) MeshChunk(w *World, cc ChunkCoord, opts MeshOptions) ChunkMesh",
              "doc": "MeshChunk builds a [ChunkMesh] for the chunk at cc in w.\nIf cc does not exist or has no visible faces, MeshChunk returns an empty\nChunkMesh with Coord and Origin populated.\n",
              "file": "pkg/voxel/mesh.go",
              "line": 186
            },
            {
              "name": "RemeshDirty",
              "anchor": "Mesher.RemeshDirty",
              "recv": "*Mesher",
              "decl": "func (m *Mesher) RemeshDirty(w *World, opts MeshOptions) []ChunkMesh",
              "doc": "RemeshDirty meshes every chunk currently marked dirty in w in deterministic\n[CompareChunkCoords] order, clears their dirty flags, and returns the\nrebuilt [ChunkMesh] list. Chunks that became completely empty still appear\nin the result with Empty()==true so callers can discard stale GPU meshes.\n",
              "file": "pkg/voxel/mesh.go",
              "line": 277
            }
          ]
        },
        {
          "name": "RaycastHit",
          "anchor": "RaycastHit",
          "decl": "type RaycastHit struct {\n\t// Block is the integer coordinate of the struck voxel.\n\tBlock BlockCoord\n\t// Adjacent is the empty voxel coordinate immediately outside the struck\n\t// face (Block.Add(Face.Step())), where a newly placed block belongs.\n\tAdjacent BlockCoord\n\t// Face is the face of Block that the ray entered.\n\tFace Face\n\t// Normal is the outward unit normal of Face.\n\tNormal math3d.Vec3\n\t// Point is the world-space intersection point on the face.\n\tPoint math3d.Vec3\n\t// Distance is the Euclidean distance from ray.Origin to Point.\n\tDistance float32\n\t// BlockID is the block stored at Block.\n\tBlockID BlockID\n}",
          "doc": "RaycastHit describes the first voxel struck by a raycast.\n",
          "file": "pkg/voxel/raycast.go",
          "line": 17,
          "members": [
            {
              "name": "Block",
              "anchor": "RaycastHit.Block",
              "kind": "field",
              "doc": "Block is the integer coordinate of the struck voxel."
            },
            {
              "name": "Adjacent",
              "anchor": "RaycastHit.Adjacent",
              "kind": "field",
              "doc": "Adjacent is the empty voxel coordinate immediately outside the struck\nface (Block.Add(Face.Step())), where a newly placed block belongs."
            },
            {
              "name": "Face",
              "anchor": "RaycastHit.Face",
              "kind": "field",
              "doc": "Face is the face of Block that the ray entered."
            },
            {
              "name": "Normal",
              "anchor": "RaycastHit.Normal",
              "kind": "field",
              "doc": "Normal is the outward unit normal of Face."
            },
            {
              "name": "Point",
              "anchor": "RaycastHit.Point",
              "kind": "field",
              "doc": "Point is the world-space intersection point on the face."
            },
            {
              "name": "Distance",
              "anchor": "RaycastHit.Distance",
              "kind": "field",
              "doc": "Distance is the Euclidean distance from ray.Origin to Point."
            },
            {
              "name": "BlockID",
              "anchor": "RaycastHit.BlockID",
              "kind": "field",
              "doc": "BlockID is the block stored at Block."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RaycastOptions",
          "anchor": "RaycastOptions",
          "decl": "type RaycastOptions struct {\n\t// IncludeNonSolid causes raycasts to stop on any non-air block, including\n\t// blocks registered with NonSolid=true (such as water or foliage).\n\tIncludeNonSolid bool\n}",
          "doc": "RaycastOptions configures [World.RaycastWith].\n",
          "file": "pkg/voxel/raycast.go",
          "line": 10,
          "members": [
            {
              "name": "IncludeNonSolid",
              "anchor": "RaycastOptions.IncludeNonSolid",
              "kind": "field",
              "doc": "IncludeNonSolid causes raycasts to stop on any non-air block, including\nblocks registered with NonSolid=true (such as water or foliage)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Registry",
          "anchor": "Registry",
          "decl": "type Registry struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Registry maps block IDs and names to their [BlockDef] properties.\nBlock ID 0 is always pre-registered as \"air\" (transparent and non-solid).\nUnregistered non-zero block IDs are treated as opaque, solid, MaterialID 0\nso worlds can also use raw block IDs without pre-registration.\n",
          "file": "pkg/voxel/block.go",
          "line": 201,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewRegistry",
              "anchor": "NewRegistry",
              "decl": "func NewRegistry() *Registry",
              "doc": "NewRegistry returns a Registry containing only [Air] (ID 0, name \"air\").\n",
              "file": "pkg/voxel/block.go",
              "line": 209
            }
          ],
          "methods": [
            {
              "name": "All",
              "anchor": "Registry.All",
              "recv": "*Registry",
              "decl": "func (r *Registry) All() []BlockDef",
              "doc": "All returns all registered non-air block definitions sorted by BlockID.\n",
              "file": "pkg/voxel/block.go",
              "line": 395
            },
            {
              "name": "ByName",
              "anchor": "Registry.ByName",
              "recv": "*Registry",
              "decl": "func (r *Registry) ByName(name string) (BlockDef, bool)",
              "doc": "ByName returns the BlockDef registered under name.\n",
              "file": "pkg/voxel/block.go",
              "line": 313
            },
            {
              "name": "Clone",
              "anchor": "Registry.Clone",
              "recv": "*Registry",
              "decl": "func (r *Registry) Clone() *Registry",
              "doc": "Clone returns an independent copy of r.\n",
              "file": "pkg/voxel/block.go",
              "line": 413
            },
            {
              "name": "Emissive",
              "anchor": "Registry.Emissive",
              "recv": "*Registry",
              "decl": "func (r *Registry) Emissive(id BlockID) uint8",
              "doc": "Emissive returns the block light emission level (0..15) of id, or 0 if Air or unregistered.\n",
              "file": "pkg/voxel/block.go",
              "line": 370
            },
            {
              "name": "Get",
              "anchor": "Registry.Get",
              "recv": "*Registry",
              "decl": "func (r *Registry) Get(id BlockID) (BlockDef, bool)",
              "doc": "Get returns the BlockDef for id and whether it was registered.\n",
              "file": "pkg/voxel/block.go",
              "line": 304
            },
            {
              "name": "IsOpaque",
              "anchor": "Registry.IsOpaque",
              "recv": "*Registry",
              "decl": "func (r *Registry) IsOpaque(id BlockID) bool",
              "doc": "IsOpaque reports whether id blocks visibility of adjacent faces and casts\nambient occlusion. Air is never opaque; unregistered non-zero IDs are opaque.\n",
              "file": "pkg/voxel/block.go",
              "line": 326
            },
            {
              "name": "IsSolid",
              "anchor": "Registry.IsSolid",
              "recv": "*Registry",
              "decl": "func (r *Registry) IsSolid(id BlockID) bool",
              "doc": "IsSolid reports whether id is solid for collision and default raycasts.\nAir is never solid; unregistered non-zero IDs are solid.\n",
              "file": "pkg/voxel/block.go",
              "line": 347
            },
            {
              "name": "IsTransparent",
              "anchor": "Registry.IsTransparent",
              "recv": "*Registry",
              "decl": "func (r *Registry) IsTransparent(id BlockID) bool",
              "doc": "IsTransparent reports whether id is air or registered with Transparent=true.\n",
              "file": "pkg/voxel/block.go",
              "line": 341
            },
            {
              "name": "LightOpacity",
              "anchor": "Registry.LightOpacity",
              "recv": "*Registry",
              "decl": "func (r *Registry) LightOpacity(id BlockID) uint8",
              "doc": "LightOpacity returns the light attenuation (0..15) of id.\nAir returns 0; opaque blocks (including unregistered non-zero IDs) return\n[MaxLightLevel] (15); transparent blocks return their configured LightOpacity.\n",
              "file": "pkg/voxel/block.go",
              "line": 380
            },
            {
              "name": "MaterialID",
              "anchor": "Registry.MaterialID",
              "recv": "*Registry",
              "decl": "func (r *Registry) MaterialID(id BlockID) uint32",
              "doc": "MaterialID returns the material group ID of id, or 0 if unregistered.\n",
              "file": "pkg/voxel/block.go",
              "line": 362
            },
            {
              "name": "MustRegister",
              "anchor": "Registry.MustRegister",
              "recv": "*Registry",
              "decl": "func (r *Registry) MustRegister(def BlockDef) BlockID",
              "doc": "MustRegister calls Register and panics on error.\n",
              "file": "pkg/voxel/block.go",
              "line": 268
            },
            {
              "name": "Register",
              "anchor": "Registry.Register",
              "recv": "*Registry",
              "decl": "func (r *Registry) Register(def BlockDef) (BlockID, error)",
              "doc": "Register adds def to the registry and returns its assigned non-zero BlockID.\nWhen def.ID is 0, the lowest unused ID starting from 1 is assigned.\n",
              "file": "pkg/voxel/block.go",
              "line": 229
            }
          ]
        },
        {
          "name": "SubMesh",
          "anchor": "SubMesh",
          "decl": "type SubMesh struct {\n\tMaterialID uint32\n\tFirstIndex uint32\n\tIndexCount uint32\n}",
          "doc": "SubMesh describes a contiguous index range in [ChunkMesh.Mesh] sharing one\n[BlockDef.MaterialID].\n",
          "file": "pkg/voxel/mesh.go",
          "line": 59,
          "members": [
            {
              "name": "MaterialID",
              "anchor": "SubMesh.MaterialID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "FirstIndex",
              "anchor": "SubMesh.FirstIndex",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "IndexCount",
              "anchor": "SubMesh.IndexCount",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "UVMode",
          "anchor": "UVMode",
          "decl": "type UVMode uint8",
          "doc": "UVMode controls how texture coordinates are assigned to merged voxel quads.\n",
          "file": "pkg/voxel/mesh.go",
          "line": 11,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "UVWorld",
                  "anchor": "UVWorld"
                },
                {
                  "name": "UVUnit",
                  "anchor": "UVUnit"
                }
              ],
              "decl": "const (\n\t// UVWorld spans UVs from (0, 0) to (width, height) in voxel units so\n\t// repeating textures tile seamlessly across greedy-merged quads.\n\tUVWorld UVMode = iota\n\t// UVUnit assigns [0, 1] x [0, 1] UVs to each quad regardless of size.\n\tUVUnit\n)",
              "doc": "",
              "file": "pkg/voxel/mesh.go",
              "line": 13
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "World",
          "anchor": "World",
          "decl": "type World struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "World holds a sparse collection of cubic voxel chunks indexed by [ChunkCoord],\ntracks which chunks need remeshing after edits, maintains incremental per-voxel\nsky and block light propagation, and provides raycasting, direct collision,\nand YAML persistence.\n",
          "file": "pkg/voxel/chunk.go",
          "line": 181,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FromDoc",
              "anchor": "FromDoc",
              "decl": "func FromDoc(doc *WorldDoc) (*World, error)",
              "doc": "FromDoc validates doc and constructs a [World] populated with its palette and\nchunks. Every loaded chunk is marked dirty so [Mesher.RemeshDirty] builds\ninitial meshes for the world.\n",
              "file": "pkg/voxel/format.go",
              "line": 364
            },
            {
              "name": "LoadYAML",
              "anchor": "LoadYAML",
              "decl": "func LoadYAML(data []byte) (*World, string, error)",
              "doc": "LoadYAML parses YAML bytes and returns the reconstructed [World] and document Name.\n",
              "file": "pkg/voxel/format.go",
              "line": 423
            },
            {
              "name": "LoadYAMLWith",
              "anchor": "LoadYAMLWith",
              "decl": "func LoadYAMLWith(data []byte, file string) (*World, string, error)",
              "doc": "LoadYAMLWith is [LoadYAML] with an optional source file name attached to errors.\n",
              "file": "pkg/voxel/format.go",
              "line": 428
            },
            {
              "name": "NewWorld",
              "anchor": "NewWorld",
              "decl": "func NewWorld(cfg WorldConfig) (*World, error)",
              "doc": "NewWorld constructs an empty World with cfg.\nInvalid ChunkSize or VoxelSize values return an error.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 203
            }
          ],
          "methods": [
            {
              "name": "Block",
              "anchor": "World.Block",
              "recv": "*World",
              "decl": "func (w *World) Block(pos BlockCoord) BlockID",
              "doc": "Block returns the [BlockID] at world voxel coordinate pos, or [Air] if the\nchunk is not allocated.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 302
            },
            {
              "name": "BlockBounds",
              "anchor": "World.BlockBounds",
              "recv": "*World",
              "decl": "func (w *World) BlockBounds(pos BlockCoord) math3d.AABB",
              "doc": "BlockBounds returns the world-space axis-aligned bounding box of voxel pos.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 287
            },
            {
              "name": "BlockLight",
              "anchor": "World.BlockLight",
              "recv": "*World",
              "decl": "func (w *World) BlockLight(pos BlockCoord) uint8",
              "doc": "BlockLight returns the block light level (0..15) at world voxel coordinate pos.\n",
              "file": "pkg/voxel/light.go",
              "line": 129
            },
            {
              "name": "BlockToChunk",
              "anchor": "World.BlockToChunk",
              "recv": "*World",
              "decl": "func (w *World) BlockToChunk(pos BlockCoord) (cc ChunkCoord, lx, ly, lz int)",
              "doc": "BlockToChunk splits a world voxel coordinate into its chunk coordinate and\nchunk-local coordinates (lx, ly, lz) in [0, ChunkSize).\n",
              "file": "pkg/voxel/chunk.go",
              "line": 245
            },
            {
              "name": "Bounds",
              "anchor": "World.Bounds",
              "recv": "*World",
              "decl": "func (w *World) Bounds() math3d.AABB",
              "doc": "Bounds returns the world-space axis-aligned bounding box enclosing all\nnon-empty chunks, or [math3d.AABBEmpty] when the world has no non-air blocks.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 725
            },
            {
              "name": "Chunk",
              "anchor": "World.Chunk",
              "recv": "*World",
              "decl": "func (w *World) Chunk(cc ChunkCoord) *Chunk",
              "doc": "Chunk returns the allocated chunk at cc, or nil if none exists.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 620
            },
            {
              "name": "ChunkCoords",
              "anchor": "World.ChunkCoords",
              "recv": "*World",
              "decl": "func (w *World) ChunkCoords() []ChunkCoord",
              "doc": "ChunkCoords returns all allocated chunk coordinates sorted by [CompareChunkCoords].\n",
              "file": "pkg/voxel/chunk.go",
              "line": 637
            },
            {
              "name": "ChunkCount",
              "anchor": "World.ChunkCount",
              "recv": "*World",
              "decl": "func (w *World) ChunkCount() int",
              "doc": "ChunkCount returns the number of currently allocated chunks (including empty\nchunks that have not yet been pruned).\n",
              "file": "pkg/voxel/chunk.go",
              "line": 629
            },
            {
              "name": "ChunkOrigin",
              "anchor": "World.ChunkOrigin",
              "recv": "*World",
              "decl": "func (w *World) ChunkOrigin(cc ChunkCoord) BlockCoord",
              "doc": "ChunkOrigin returns the world voxel coordinate of local (0, 0, 0) in cc.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 258
            },
            {
              "name": "ChunkSize",
              "anchor": "World.ChunkSize",
              "recv": "*World",
              "decl": "func (w *World) ChunkSize() int",
              "doc": "ChunkSize returns the edge length N of each cubic chunk.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 235
            },
            {
              "name": "ChunkWorldOrigin",
              "anchor": "World.ChunkWorldOrigin",
              "recv": "*World",
              "decl": "func (w *World) ChunkWorldOrigin(cc ChunkCoord) math3d.Vec3",
              "doc": "ChunkWorldOrigin returns the world-space position of local (0, 0, 0) in cc.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 267
            },
            {
              "name": "Clear",
              "anchor": "World.Clear",
              "recv": "*World",
              "decl": "func (w *World) Clear()",
              "doc": "Clear removes all chunks, light data, and dirty flags from w while keeping its\nChunkSize, VoxelSize, and Registry.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 740
            },
            {
              "name": "ClearDirty",
              "anchor": "World.ClearDirty",
              "recv": "*World",
              "decl": "func (w *World) ClearDirty(cc ChunkCoord)",
              "doc": "ClearDirty clears the dirty flag on cc.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 690
            },
            {
              "name": "Collider",
              "anchor": "World.Collider",
              "recv": "*World",
              "decl": "func (w *World) Collider() *physics3d.VoxelCollider",
              "doc": "Collider returns a [*physics3d.VoxelCollider] backed directly by w.\nIt is equivalent to [NewCollider](w).\n",
              "file": "pkg/voxel/collider.go",
              "line": 61
            },
            {
              "name": "DirtyChunks",
              "anchor": "World.DirtyChunks",
              "recv": "*World",
              "decl": "func (w *World) DirtyChunks() []ChunkCoord",
              "doc": "DirtyChunks returns all dirty chunk coordinates sorted by [CompareChunkCoords].\n",
              "file": "pkg/voxel/chunk.go",
              "line": 667
            },
            {
              "name": "DirtyCount",
              "anchor": "World.DirtyCount",
              "recv": "*World",
              "decl": "func (w *World) DirtyCount() int",
              "doc": "DirtyCount returns the number of chunks currently marked dirty.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 650
            },
            {
              "name": "FillBox",
              "anchor": "World.FillBox",
              "recv": "*World",
              "decl": "func (w *World) FillBox(a, b BlockCoord, id BlockID) int",
              "doc": "FillBox fills every voxel in the inclusive box [minPos, maxPos] with id and\nreturns the number of voxels that changed. Min/max components are ordered\nautomatically per axis.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 423
            },
            {
              "name": "IsDirty",
              "anchor": "World.IsDirty",
              "recv": "*World",
              "decl": "func (w *World) IsDirty(cc ChunkCoord) bool",
              "doc": "IsDirty reports whether cc is currently marked dirty.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 658
            },
            {
              "name": "IsSolid",
              "anchor": "World.IsSolid",
              "recv": "*World",
              "decl": "func (w *World) IsSolid(pos BlockCoord) bool",
              "doc": "IsSolid reports whether the block at world voxel coordinate pos is solid\naccording to the world's [Registry]. Unallocated chunks contain [Air] and\nare not solid.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 317
            },
            {
              "name": "Light",
              "anchor": "World.Light",
              "recv": "*World",
              "decl": "func (w *World) Light(pos BlockCoord) (sky, block uint8)",
              "doc": "Light returns both the sky light and block light levels (0..15 each) at pos.\n",
              "file": "pkg/voxel/light.go",
              "line": 137
            },
            {
              "name": "MarkDirty",
              "anchor": "World.MarkDirty",
              "recv": "*World",
              "decl": "func (w *World) MarkDirty(cc ChunkCoord)",
              "doc": "MarkDirty marks cc dirty if it exists in w.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 680
            },
            {
              "name": "MeshChunk",
              "anchor": "World.MeshChunk",
              "recv": "*World",
              "decl": "func (w *World) MeshChunk(cc ChunkCoord, opts MeshOptions) ChunkMesh",
              "doc": "MeshChunk is a convenience wrapper around [Mesher.MeshChunk] for one-off builds.\nFor repeated per-frame remeshing, keep a reusable [Mesher].\n",
              "file": "pkg/voxel/mesh.go",
              "line": 292
            },
            {
              "name": "PruneEmptyChunks",
              "anchor": "World.PruneEmptyChunks",
              "recv": "*World",
              "decl": "func (w *World) PruneEmptyChunks() int",
              "doc": "PruneEmptyChunks removes all allocated chunks that contain only [Air] and\nare not dirty, returning the number of chunks freed. Any non-default light\npassing through a pruned air chunk is preserved seamlessly.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 703
            },
            {
              "name": "Raycast",
              "anchor": "World.Raycast",
              "recv": "*World",
              "decl": "func (w *World) Raycast(ray math3d.Ray, maxDist float32) (RaycastHit, bool)",
              "doc": "Raycast walks voxels along ray using 3D DDA (Amanatides & Woo) up to maxDist\nworld-space units (ray.Dir need not be unit-length) and returns the first\nsolid block hit. Use [World.RaycastWith] to include non-solid blocks.\n",
              "file": "pkg/voxel/raycast.go",
              "line": 38
            },
            {
              "name": "RaycastWith",
              "anchor": "World.RaycastWith",
              "recv": "*World",
              "decl": "func (w *World) RaycastWith(ray math3d.Ray, maxDist float32, opts RaycastOptions) (RaycastHit, bool)",
              "doc": "RaycastWith is [World.Raycast] with configurable filtering options.\n",
              "file": "pkg/voxel/raycast.go",
              "line": 43
            },
            {
              "name": "RecomputeLight",
              "anchor": "World.RecomputeLight",
              "recv": "*World",
              "decl": "func (w *World) RecomputeLight()",
              "doc": "RecomputeLight recomputes sky light and block light across the entire world\nfrom scratch and marks any existing non-empty chunks whose light (or border\nneighbor light) changed as dirty.\n",
              "file": "pkg/voxel/light.go",
              "line": 250
            },
            {
              "name": "Registry",
              "anchor": "World.Registry",
              "recv": "*World",
              "decl": "func (w *World) Registry() *Registry",
              "doc": "Registry returns the world's block [Registry].\n",
              "file": "pkg/voxel/chunk.go",
              "line": 241
            },
            {
              "name": "RemeshDirty",
              "anchor": "World.RemeshDirty",
              "recv": "*World",
              "decl": "func (w *World) RemeshDirty(opts MeshOptions) []ChunkMesh",
              "doc": "RemeshDirty is a convenience wrapper around [Mesher.RemeshDirty].\n",
              "file": "pkg/voxel/mesh.go",
              "line": 297
            },
            {
              "name": "SetBlock",
              "anchor": "World.SetBlock",
              "recv": "*World",
              "decl": "func (w *World) SetBlock(pos BlockCoord, id BlockID) bool",
              "doc": "SetBlock sets the voxel at pos to id and returns whether the block changed.\n\nWhen the block changes, SetBlock updates sky and block light incrementally,\nmarks the edited chunk dirty, and marks adjacent existing chunks dirty only\nwhen face visibility, cross-chunk ambient occlusion, or voxel lighting\nchanges across their boundaries.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 361
            },
            {
              "name": "SkyLight",
              "anchor": "World.SkyLight",
              "recv": "*World",
              "decl": "func (w *World) SkyLight(pos BlockCoord) uint8",
              "doc": "SkyLight returns the sky light level (0..15) at world voxel coordinate pos.\nVoxels above the world return [MaxLightLevel] (15). Voxels below the lowest\nnon-empty chunk return the sky light at the bottom of that column.\n",
              "file": "pkg/voxel/light.go",
              "line": 117
            },
            {
              "name": "ToDoc",
              "anchor": "World.ToDoc",
              "recv": "*World",
              "decl": "func (w *World) ToDoc(name string) *WorldDoc",
              "doc": "ToDoc exports w as a canonical deterministic [WorldDoc]: palette entries\nsorted by ID, non-empty chunks sorted by [CompareChunkCoords], and block\ngrids compressed with canonical merged run-length encoding.\n",
              "file": "pkg/voxel/format.go",
              "line": 312
            },
            {
              "name": "VoxelSize",
              "anchor": "World.VoxelSize",
              "recv": "*World",
              "decl": "func (w *World) VoxelSize() float32",
              "doc": "VoxelSize returns the world-space edge length of one voxel.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 238
            },
            {
              "name": "WorldToBlock",
              "anchor": "World.WorldToBlock",
              "recv": "*World",
              "decl": "func (w *World) WorldToBlock(p math3d.Vec3) BlockCoord",
              "doc": "WorldToBlock converts a world-space position to the enclosing integer voxel coordinate.\n",
              "file": "pkg/voxel/chunk.go",
              "line": 277
            }
          ]
        },
        {
          "name": "WorldConfig",
          "anchor": "WorldConfig",
          "decl": "type WorldConfig struct {\n\t// ChunkSize is the power-of-two cubic edge length of each chunk (4..64).\n\t// Zero uses DefaultChunkSize (16).\n\tChunkSize int\n\t// VoxelSize is the world-space edge length of each voxel.\n\t// Zero uses DefaultVoxelSize (1.0).\n\tVoxelSize float32\n\t// Registry defines block properties. Nil creates a new empty Registry\n\t// where Air (0) is empty and any non-zero BlockID is opaque and solid.\n\tRegistry *Registry\n}",
          "doc": "WorldConfig configures a new [World].\n",
          "file": "pkg/voxel/chunk.go",
          "line": 29,
          "members": [
            {
              "name": "ChunkSize",
              "anchor": "WorldConfig.ChunkSize",
              "kind": "field",
              "doc": "ChunkSize is the power-of-two cubic edge length of each chunk (4..64).\nZero uses DefaultChunkSize (16)."
            },
            {
              "name": "VoxelSize",
              "anchor": "WorldConfig.VoxelSize",
              "kind": "field",
              "doc": "VoxelSize is the world-space edge length of each voxel.\nZero uses DefaultVoxelSize (1.0)."
            },
            {
              "name": "Registry",
              "anchor": "WorldConfig.Registry",
              "kind": "field",
              "doc": "Registry defines block properties. Nil creates a new empty Registry\nwhere Air (0) is empty and any non-zero BlockID is opaque and solid."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldDoc",
          "anchor": "WorldDoc",
          "decl": "type WorldDoc struct {\n\t// Version is the schema version; must be 1.\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Name is an optional human-readable name for the world.\n\tName string `yaml:\"name,omitempty\"`\n\t// ChunkSize is the power-of-two cubic chunk edge length, from 4 to 64.\n\tChunkSize int `yaml:\"chunkSize\" schema:\"required,minimum=4,maximum=64\"`\n\t// VoxelSize is the world-space edge length of one voxel; omitted or 0 defaults to 1.\n\tVoxelSize float32 `yaml:\"voxelSize,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// Palette lists the non-air block definitions used by the world, sorted by ID.\n\tPalette []BlockDoc `yaml:\"palette,omitempty\"`\n\t// Chunks lists the non-empty chunks in the world, sorted by (x, y, z).\n\tChunks []ChunkDoc `yaml:\"chunks,omitempty\"`\n}",
          "doc": "WorldDoc is the root of a versioned YAML voxel world document.\n",
          "file": "pkg/voxel/format.go",
          "line": 28,
          "members": [
            {
              "name": "Version",
              "anchor": "WorldDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; must be 1."
            },
            {
              "name": "Name",
              "anchor": "WorldDoc.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name for the world."
            },
            {
              "name": "ChunkSize",
              "anchor": "WorldDoc.ChunkSize",
              "kind": "field",
              "doc": "ChunkSize is the power-of-two cubic chunk edge length, from 4 to 64."
            },
            {
              "name": "VoxelSize",
              "anchor": "WorldDoc.VoxelSize",
              "kind": "field",
              "doc": "VoxelSize is the world-space edge length of one voxel; omitted or 0 defaults to 1."
            },
            {
              "name": "Palette",
              "anchor": "WorldDoc.Palette",
              "kind": "field",
              "doc": "Palette lists the non-air block definitions used by the world, sorted by ID."
            },
            {
              "name": "Chunks",
              "anchor": "WorldDoc.Chunks",
              "kind": "field",
              "doc": "Chunks lists the non-empty chunks in the world, sorted by (x, y, z)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*WorldDoc, error)",
              "doc": "Parse decodes and validates a YAML voxel world document. Unknown fields and\ntrailing YAML documents are rejected. Returned errors are [*loaderr.Error]\nvalues carrying line, column, field path, and a fix hint.\n",
              "file": "pkg/voxel/format.go",
              "line": 84
            },
            {
              "name": "ParseWith",
              "anchor": "ParseWith",
              "decl": "func ParseWith(data []byte, file string) (*WorldDoc, error)",
              "doc": "ParseWith is [Parse] with an optional source file name attached to errors.\n",
              "file": "pkg/voxel/format.go",
              "line": 89
            }
          ],
          "methods": [
            {
              "name": "EffectiveVoxelSize",
              "anchor": "WorldDoc.EffectiveVoxelSize",
              "recv": "*WorldDoc",
              "decl": "func (d *WorldDoc) EffectiveVoxelSize() float32",
              "doc": "EffectiveVoxelSize returns doc.VoxelSize, defaulting to [DefaultVoxelSize] (1) when zero.\n",
              "file": "pkg/voxel/format.go",
              "line": 44
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/world3d",
      "name": "world3d",
      "dir": "pkg/world3d",
      "page": "pkg/world3d",
      "synopsis": "Package world3d provides 3D world-building primitives for NSGo 3D games: heightmap terrain, 3D navigation meshes and path-corridor navigation agents, 3D GridMaps of modular mesh tiles, procedural foliage/scattered instance fields, and large-world chunk streaming with floating-origin rebasing.",
      "doc": "Package world3d provides 3D world-building primitives for NSGo 3D games:\nheightmap terrain, 3D navigation meshes and path-corridor navigation agents,\n3D GridMaps of modular mesh tiles, procedural foliage/scattered instance\nfields, and large-world chunk streaming with floating-origin rebasing.\n\nAll positions, normals, rays, and bounding volumes follow package math3d's\nright-handed Y-up conventions (+X right, +Y up, -Z forward).\n",
      "consts": [
        {
          "idents": [
            {
              "name": "NavAreaDefault",
              "anchor": "NavAreaDefault"
            },
            {
              "name": "NavAreaRoad",
              "anchor": "NavAreaRoad"
            },
            {
              "name": "NavAreaGrass",
              "anchor": "NavAreaGrass"
            },
            {
              "name": "NavAreaMud",
              "anchor": "NavAreaMud"
            },
            {
              "name": "NavAreaWater",
              "anchor": "NavAreaWater"
            },
            {
              "name": "NavAreaDoor",
              "anchor": "NavAreaDoor"
            },
            {
              "name": "NavAreaHazard",
              "anchor": "NavAreaHazard"
            },
            {
              "name": "NavAreaJump",
              "anchor": "NavAreaJump"
            },
            {
              "name": "NavAreaClimb",
              "anchor": "NavAreaClimb"
            },
            {
              "name": "NavAreaTeleport",
              "anchor": "NavAreaTeleport"
            }
          ],
          "decl": "const (\n\tNavAreaDefault  = ai.NavAreaDefault\n\tNavAreaRoad     = ai.NavAreaRoad\n\tNavAreaGrass    = ai.NavAreaGrass\n\tNavAreaMud      = ai.NavAreaMud\n\tNavAreaWater    = ai.NavAreaWater\n\tNavAreaDoor     = ai.NavAreaDoor\n\tNavAreaHazard   = ai.NavAreaHazard\n\tNavAreaJump     = ai.NavAreaJump\n\tNavAreaClimb    = ai.NavAreaClimb\n\tNavAreaTeleport = ai.NavAreaTeleport\n)",
          "doc": "",
          "file": "pkg/world3d/navmesh.go",
          "line": 23
        },
        {
          "idents": [
            {
              "name": "NavFlagWalk",
              "anchor": "NavFlagWalk"
            },
            {
              "name": "NavFlagSwim",
              "anchor": "NavFlagSwim"
            },
            {
              "name": "NavFlagDoor",
              "anchor": "NavFlagDoor"
            },
            {
              "name": "NavFlagJump",
              "anchor": "NavFlagJump"
            },
            {
              "name": "NavFlagClimb",
              "anchor": "NavFlagClimb"
            },
            {
              "name": "NavFlagTeleport",
              "anchor": "NavFlagTeleport"
            },
            {
              "name": "NavFlagDisabled",
              "anchor": "NavFlagDisabled"
            },
            {
              "name": "NavFlagAll",
              "anchor": "NavFlagAll"
            }
          ],
          "decl": "const (\n\tNavFlagWalk     = ai.NavFlagWalk\n\tNavFlagSwim     = ai.NavFlagSwim\n\tNavFlagDoor     = ai.NavFlagDoor\n\tNavFlagJump     = ai.NavFlagJump\n\tNavFlagClimb    = ai.NavFlagClimb\n\tNavFlagTeleport = ai.NavFlagTeleport\n\tNavFlagDisabled = ai.NavFlagDisabled\n\tNavFlagAll      = ai.NavFlagAll\n)",
          "doc": "",
          "file": "pkg/world3d/navmesh.go",
          "line": 36
        },
        {
          "idents": [
            {
              "name": "NavTileAdded",
              "anchor": "NavTileAdded"
            },
            {
              "name": "NavTileUpdated",
              "anchor": "NavTileUpdated"
            },
            {
              "name": "NavTileRemoved",
              "anchor": "NavTileRemoved"
            }
          ],
          "decl": "const (\n\tNavTileAdded   = ai.NavTileAdded\n\tNavTileUpdated = ai.NavTileUpdated\n\tNavTileRemoved = ai.NavTileRemoved\n)",
          "doc": "",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 70
        },
        {
          "idents": [
            {
              "name": "NavObstacleCarve",
              "anchor": "NavObstacleCarve"
            },
            {
              "name": "NavObstacleMark",
              "anchor": "NavObstacleMark"
            }
          ],
          "decl": "const (\n\tNavObstacleCarve = ai.NavObstacleCarve\n\tNavObstacleMark  = ai.NavObstacleMark\n)",
          "doc": "",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 109
        },
        {
          "idents": [
            {
              "name": "DefaultTerrainLayerRoughness",
              "anchor": "DefaultTerrainLayerRoughness"
            }
          ],
          "decl": "const DefaultTerrainLayerRoughness float32 = 0.85",
          "doc": "DefaultTerrainLayerRoughness is the roughness factor used when a\n[TerrainLayerDoc] omits both roughness and a metallicRoughness texture.\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 34
        },
        {
          "idents": [
            {
              "name": "FoliageFormatVersion",
              "anchor": "FoliageFormatVersion"
            }
          ],
          "decl": "const FoliageFormatVersion = 1",
          "doc": "FoliageFormatVersion is the current YAML foliage definition schema version.\n",
          "file": "pkg/world3d/foliage_format.go",
          "line": 17
        },
        {
          "idents": [
            {
              "name": "FoliageSchemaComment",
              "anchor": "FoliageSchemaComment"
            }
          ],
          "decl": "const FoliageSchemaComment = \"# yaml-language-server: $schema=\" + FoliageSchemaURL",
          "doc": "FoliageSchemaComment is the first line [EncodeFoliage] writes so YAML language\nservers validate and complete foliage definition files automatically.\n",
          "file": "pkg/world3d/foliage_format.go",
          "line": 24
        },
        {
          "idents": [
            {
              "name": "FoliageSchemaURL",
              "anchor": "FoliageSchemaURL"
            }
          ],
          "decl": "const FoliageSchemaURL = \"https://game.nsgo.dev/schemas/foliage.v1.json\"",
          "doc": "FoliageSchemaURL is where the JSON Schema of version 1 foliage documents is published.\n",
          "file": "pkg/world3d/foliage_format.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "GridMapFormatVersion",
              "anchor": "GridMapFormatVersion"
            }
          ],
          "decl": "const GridMapFormatVersion = 1",
          "doc": "GridMapFormatVersion is the current YAML grid map schema version.\n",
          "file": "pkg/world3d/gridmap_format.go",
          "line": 18
        },
        {
          "idents": [
            {
              "name": "GridMapSchemaComment",
              "anchor": "GridMapSchemaComment"
            }
          ],
          "decl": "const GridMapSchemaComment = \"# yaml-language-server: $schema=\" + GridMapSchemaURL",
          "doc": "GridMapSchemaComment is the first line [EncodeGridMap] writes so YAML language\nservers validate and complete grid map files automatically.\n",
          "file": "pkg/world3d/gridmap_format.go",
          "line": 25
        },
        {
          "idents": [
            {
              "name": "GridMapSchemaURL",
              "anchor": "GridMapSchemaURL"
            }
          ],
          "decl": "const GridMapSchemaURL = \"https://game.nsgo.dev/schemas/gridmap.v1.json\"",
          "doc": "GridMapSchemaURL is where the JSON Schema of version 1 grid map documents is published.\n",
          "file": "pkg/world3d/gridmap_format.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "GridOrientationCount",
              "anchor": "GridOrientationCount"
            }
          ],
          "decl": "const GridOrientationCount = 24",
          "doc": "GridOrientationCount is the number of distinct proper 3D orthogonal\n90-degree rotations supported by GridCell.Orientation (the 24 rotational\nsymmetries of a cube). Orientations 0..3 are 0°, 90°, 180°, and 270°\ncounter-clockwise quarter-turns around the +Y axis.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 20
        },
        {
          "idents": [
            {
              "name": "MaxTerrainLayers",
              "anchor": "MaxTerrainLayers"
            }
          ],
          "decl": "const MaxTerrainLayers = 8",
          "doc": "MaxTerrainLayers is the maximum number of PBR terrain material layers driven\nby splat maps (up to 2 RGBA weight maps × 4 channels per map).\n",
          "file": "pkg/world3d/terrain_splat.go",
          "line": 15
        },
        {
          "idents": [
            {
              "name": "NavLinkOffMesh",
              "anchor": "NavLinkOffMesh"
            }
          ],
          "decl": "const NavLinkOffMesh uint32 = 1 << 0",
          "doc": "NavLinkOffMesh is a link flag marking a portal as an off-mesh connection\n(such as a jump, drop-down, ladder, or teleport) rather than a shared 3D edge.\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 70
        },
        {
          "idents": [
            {
              "name": "TerrainFormatVersion",
              "anchor": "TerrainFormatVersion"
            }
          ],
          "decl": "const TerrainFormatVersion = 1",
          "doc": "TerrainFormatVersion is the current YAML terrain definition schema version.\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 21
        },
        {
          "idents": [
            {
              "name": "TerrainSchemaComment",
              "anchor": "TerrainSchemaComment"
            }
          ],
          "decl": "const TerrainSchemaComment = \"# yaml-language-server: $schema=\" + TerrainSchemaURL",
          "doc": "TerrainSchemaComment is the first line [EncodeTerrain] writes so YAML language\nservers validate and complete terrain definition files automatically.\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 28
        },
        {
          "idents": [
            {
              "name": "TerrainSchemaURL",
              "anchor": "TerrainSchemaURL"
            }
          ],
          "decl": "const TerrainSchemaURL = \"https://game.nsgo.dev/schemas/terrain.v1.json\"",
          "doc": "TerrainSchemaURL is where the JSON Schema of version 1 terrain documents is published.\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 24
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrInvalidTerrainSplat",
              "anchor": "ErrInvalidTerrainSplat"
            }
          ],
          "decl": "var ErrInvalidTerrainSplat = errors.New(\"world3d: invalid terrain splat map\")",
          "doc": "ErrInvalidTerrainSplat is wrapped by errors returned when constructing or\nvalidating a [TerrainSplatMap].\n",
          "file": "pkg/world3d/terrain_splat.go",
          "line": 19
        }
      ],
      "funcs": [
        {
          "name": "BlendTerrainWeights",
          "anchor": "BlendTerrainWeights",
          "decl": "func BlendTerrainWeights(raw, heights [MaxTerrainLayers]float32, count int, contrast float32) [MaxTerrainLayers]float32",
          "doc": "BlendTerrainWeights normalizes raw splat weights across [0, count) and, when\ncontrast > 0, applies height-based blending using each layer's effective\nheight in [0, 1]. Higher contrast values (clamped to [0, 0.98]) produce\nsharper transitions while guaranteeing zero weights stay zero and the output\nalways sums to 1 (falling back to layer 0 = 1 if all raw weights are <= 0).\n\nThis exact algebraic formula is shared with package render3d's GPU terrain\nshader and CPU reference evaluator.\n",
          "file": "pkg/world3d/terrain_splat.go",
          "line": 607
        },
        {
          "name": "EncodeDensityMapPNG",
          "anchor": "EncodeDensityMapPNG",
          "decl": "func EncodeDensityMapPNG(d *DensityMap) ([]byte, error)",
          "doc": "EncodeDensityMapPNG encodes d as an 8-bit grayscale PNG byte slice.\n",
          "file": "pkg/world3d/foliage.go",
          "line": 227
        },
        {
          "name": "EncodeFoliage",
          "anchor": "EncodeFoliage",
          "decl": "func EncodeFoliage(doc *FoliageDoc) ([]byte, error)",
          "doc": "EncodeFoliage validates doc and serializes it as deterministic 2-space YAML\nprefixed with [FoliageSchemaComment].\n",
          "file": "pkg/world3d/foliage_format.go",
          "line": 472
        },
        {
          "name": "EncodeGridMap",
          "anchor": "EncodeGridMap",
          "decl": "func EncodeGridMap(doc *GridMapDoc) ([]byte, error)",
          "doc": "EncodeGridMap validates doc and serializes it as deterministic 2-space YAML\nprefixed with [GridMapSchemaComment], with boxes and cells sorted into\ncanonical (y, z, x) order. The input doc is not modified.\n",
          "file": "pkg/world3d/gridmap_format.go",
          "line": 320
        },
        {
          "name": "EncodeHeightmapPNG",
          "anchor": "EncodeHeightmapPNG",
          "decl": "func EncodeHeightmapPNG(h *Heightmap) ([]byte, error)",
          "doc": "EncodeHeightmapPNG encodes h as a 16-bit grayscale PNG byte slice.\n",
          "file": "pkg/world3d/terrain.go",
          "line": 153
        },
        {
          "name": "EncodeTerrain",
          "anchor": "EncodeTerrain",
          "decl": "func EncodeTerrain(doc *TerrainDoc) ([]byte, error)",
          "doc": "EncodeTerrain validates doc and serializes it as deterministic 2-space YAML\nprefixed with [TerrainSchemaComment].\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 842
        },
        {
          "name": "FindGridOrientation",
          "anchor": "FindGridOrientation",
          "decl": "func FindGridOrientation(m math3d.Mat4) (uint8, bool)",
          "doc": "FindGridOrientation returns the orientation index (0..23) whose exact\northogonal rotation matrix matches the upper-left 3x3 of m, or (0, false) if\nnone does.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 156
        },
        {
          "name": "GridOrientationMat4",
          "anchor": "GridOrientationMat4",
          "decl": "func GridOrientationMat4(orient uint8) math3d.Mat4",
          "doc": "GridOrientationMat4 returns the exact orthogonal 4x4 rotation matrix for\norientation index orient (modulo GridOrientationCount). Orientations 0..3\ncorrespond to 0°, 90°, 180°, and 270° rotations around the +Y axis.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 113
        },
        {
          "name": "LoadGridMapFS",
          "anchor": "LoadGridMapFS",
          "decl": "func LoadGridMapFS(fsys fs.FS, name string) (*GridMap, *GridMapDoc, error)",
          "doc": "LoadGridMapFS reads the YAML grid map at name in fsys, loads its referenced\nglTF mesh library from fsys, and returns the constructed [*GridMap] alongside\nthe parsed [*GridMapDoc].\n",
          "file": "pkg/world3d/gridmap_format.go",
          "line": 427
        },
        {
          "name": "LoadTerrainFS",
          "anchor": "LoadTerrainFS",
          "decl": "func LoadTerrainFS(fsys fs.FS, name string) (*Heightmap, *TerrainDoc, error)",
          "doc": "LoadTerrainFS reads the YAML terrain definition at name in fsys, validates it,\ndecodes its referenced heightmap and splat images from fsys, and returns the\nconstructed [*Heightmap] alongside the parsed [*TerrainDoc].\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 430
        },
        {
          "name": "PackLayerWeightMaps",
          "anchor": "PackLayerWeightMaps",
          "decl": "func PackLayerWeightMaps(weights ...image.Image) (splat0, splat1 *image.NRGBA, err error)",
          "doc": "PackLayerWeightMaps packs 1 to 8 per-layer grayscale weight-map images into\n1 (for 1..4 layers) or 2 (for 5..8 layers) straight-alpha RGBA [*image.NRGBA]\nsplat maps suitable for [LoadTerrainSplatMap] and GPU terrain shaders.\n\nThe output dimensions match the first non-nil weight image (or 1x1 when all\nimages are nil, in which case layer 0 defaults to weight 255). Non-nil images\nwith different dimensions are bilinearly resampled to match. Nil entries\ncontribute zero weight to their channel.\n",
          "file": "pkg/world3d/terrain_splat.go",
          "line": 328
        },
        {
          "name": "RebaseMat4",
          "anchor": "RebaseMat4",
          "decl": "func RebaseMat4(m math3d.Mat4, shift math3d.Vec3) math3d.Mat4",
          "doc": "RebaseMat4 applies a floating-origin shift to the translation column of m.\n",
          "file": "pkg/world3d/streaming.go",
          "line": 130
        },
        {
          "name": "RotateGridOrientation",
          "anchor": "RotateGridOrientation",
          "decl": "func RotateGridOrientation(orient uint8, axis GridAxis, quarterTurns int) uint8",
          "doc": "RotateGridOrientation applies quarterTurns 90-degree rotations around axis\n(world-space X, Y, or Z) to orient and returns the resulting orientation in\n0..23. Composing X, Y, and Z quarter-turns reaches all 24 cube orientations.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 177
        },
        {
          "name": "TerrainLODBiasFor",
          "anchor": "TerrainLODBiasFor",
          "decl": "func TerrainLODBiasFor(l quality.Level) float32",
          "doc": "TerrainLODBiasFor returns the recommended terrain LOD bias for a game-wide\nquality preset: +1.0 for quality.Low (one LOD coarser), +0.5 for\nquality.Medium, and 0.0 for quality.High (full detail distances). An invalid\nlevel maps to quality.Medium, matching quality.DefaultPreset and\nQualityLevelFor.\n\nPositive bias shifts chunks toward coarser LODs by scaling distance\nthresholds by 2^(-bias); negative bias keeps finer LODs farther away.\n",
          "file": "pkg/world3d/terrain_lod.go",
          "line": 35
        },
        {
          "name": "ValidateFoliage",
          "anchor": "ValidateFoliage",
          "decl": "func ValidateFoliage(doc *FoliageDoc) error",
          "doc": "ValidateFoliage checks that doc conforms to the version 1 foliage schema.\n",
          "file": "pkg/world3d/foliage_format.go",
          "line": 289
        },
        {
          "name": "ValidateGridMap",
          "anchor": "ValidateGridMap",
          "decl": "func ValidateGridMap(doc *GridMapDoc) error",
          "doc": "ValidateGridMap checks that doc conforms to the version 1 grid map schema.\n",
          "file": "pkg/world3d/gridmap_format.go",
          "line": 134
        },
        {
          "name": "ValidateTerrain",
          "anchor": "ValidateTerrain",
          "decl": "func ValidateTerrain(doc *TerrainDoc) error",
          "doc": "ValidateTerrain checks that doc conforms to the version 1 terrain schema.\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 612
        }
      ],
      "types": [
        {
          "name": "ChunkCoord",
          "anchor": "ChunkCoord",
          "decl": "type ChunkCoord struct {\n\tX, Z int32\n}",
          "doc": "ChunkCoord identifies a 2D streaming chunk in the XZ world plane.\n",
          "file": "pkg/world3d/streaming.go",
          "line": 57,
          "members": [
            {
              "name": "X",
              "anchor": "ChunkCoord.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "ChunkCoord.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "ChunkStreamer",
          "anchor": "ChunkStreamer",
          "decl": "type ChunkStreamer[T any] struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "ChunkStreamer asynchronously streams 2D world chunks around a moving\nWorldPos64 with bounded worker concurrency, per-frame integration budgets,\nhysteresis unloading, and cancellation of stale in-flight loads.\n\nBuild one with NewChunkStreamer. A zero ChunkStreamer is usable too: it behaves like NewChunkStreamer with a zero config (synchronous, no loader, 64-unit chunks) instead of panicking (#546).\n",
          "file": "pkg/world3d/streaming.go",
          "line": 198,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewChunkStreamer",
              "anchor": "NewChunkStreamer",
              "decl": "func NewChunkStreamer[T any](cfg ChunkStreamerConfig[T]) *ChunkStreamer[T]",
              "doc": "NewChunkStreamer constructs a ChunkStreamer and starts its worker goroutines\nwhen cfg.Workers > 0. Call Close when finished to stop workers and unload\nremaining chunks cleanly.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 220
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "ChunkStreamer.Close",
              "recv": "*ChunkStreamer[T]",
              "decl": "func (s *ChunkStreamer[T]) Close()",
              "doc": "Close cancels all in-flight loads, waits for worker goroutines to exit, and\nunloads all remaining loaded chunks via OnUnload. Calling Close multiple\ntimes is safe.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 596
            },
            {
              "name": "Get",
              "anchor": "ChunkStreamer.Get",
              "recv": "*ChunkStreamer[T]",
              "decl": "func (s *ChunkStreamer[T]) Get(coord ChunkCoord) (T, bool)",
              "doc": "Get returns the loaded chunk data for coord, or (zero, false) if not loaded.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 540
            },
            {
              "name": "LoadedChunks",
              "anchor": "ChunkStreamer.LoadedChunks",
              "recv": "*ChunkStreamer[T]",
              "decl": "func (s *ChunkStreamer[T]) LoadedChunks() []ChunkCoord",
              "doc": "LoadedChunks returns a sorted slice of all currently loaded chunk coordinates.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 553
            },
            {
              "name": "PendingCount",
              "anchor": "ChunkStreamer.PendingCount",
              "recv": "*ChunkStreamer[T]",
              "decl": "func (s *ChunkStreamer[T]) PendingCount() int",
              "doc": "PendingCount returns the number of chunks currently queued or loading in workers.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 569
            },
            {
              "name": "ReadyCount",
              "anchor": "ChunkStreamer.ReadyCount",
              "recv": "*ChunkStreamer[T]",
              "decl": "func (s *ChunkStreamer[T]) ReadyCount() int",
              "doc": "ReadyCount returns the number of completed chunks awaiting integration on\nsubsequent Update calls.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 582
            },
            {
              "name": "Update",
              "anchor": "ChunkStreamer.Update",
              "recv": "*ChunkStreamer[T]",
              "decl": "func (s *ChunkStreamer[T]) Update(worldPos WorldPos64)",
              "doc": "Update advances streaming for worldPos:\n 1. Unloads loaded chunks beyond UnloadRadius and cancels stale in-flight loads.\n 2. Integrates up to MaxIntegrationsPerFrame completed chunks (closest first).\n 3. Enqueues missing chunks within LoadRadius (closest first).\n\nWhen Workers == 0, missing chunks are loaded synchronously up to the\nremaining per-frame integration budget.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 336
            }
          ]
        },
        {
          "name": "ChunkStreamerConfig",
          "anchor": "ChunkStreamerConfig",
          "decl": "type ChunkStreamerConfig[T any] struct {\n\t// ChunkSize is the width/depth of each square XZ chunk in world units.\n\t// Defaults to 64 if <= 0.\n\tChunkSize float64\n\t// LoadRadius is the Chebyshev chunk radius around the player chunk to load.\n\tLoadRadius int\n\t// UnloadRadius is the Chebyshev chunk radius beyond which loaded and\n\t// in-flight chunks are unloaded/canceled. Defaults to LoadRadius + 1 if\n\t// smaller than LoadRadius.\n\tUnloadRadius int\n\t// MaxIntegrationsPerFrame caps how many completed chunks are integrated\n\t// into the active map per Update call to prevent frame-time hitches.\n\t// Values <= 0 allow unlimited integrations per frame.\n\tMaxIntegrationsPerFrame int\n\t// Workers sets the number of background loader goroutines. When 0, Loader\n\t// executes synchronously inside Update (useful for deterministic tests).\n\tWorkers int\n\t// Loader loads chunk data for coord. It must respect ctx cancellation.\n\tLoader func(ctx context.Context, coord ChunkCoord) (T, error)\n\t// OnLoad is called on the Update goroutine after a chunk is integrated.\n\tOnLoad func(coord ChunkCoord, data T)\n\t// OnUnload is called on the Update/Close goroutine after a chunk is unloaded.\n\tOnUnload func(coord ChunkCoord, data T)\n\t// OnError is called on the Update goroutine when Loader returns a non-nil error.\n\tOnError func(coord ChunkCoord, err error)\n}",
          "doc": "ChunkStreamerConfig configures a ChunkStreamer.\n",
          "file": "pkg/world3d/streaming.go",
          "line": 138,
          "members": [
            {
              "name": "ChunkSize",
              "anchor": "ChunkStreamerConfig.ChunkSize",
              "kind": "field",
              "doc": "ChunkSize is the width/depth of each square XZ chunk in world units.\nDefaults to 64 if <= 0."
            },
            {
              "name": "LoadRadius",
              "anchor": "ChunkStreamerConfig.LoadRadius",
              "kind": "field",
              "doc": "LoadRadius is the Chebyshev chunk radius around the player chunk to load."
            },
            {
              "name": "UnloadRadius",
              "anchor": "ChunkStreamerConfig.UnloadRadius",
              "kind": "field",
              "doc": "UnloadRadius is the Chebyshev chunk radius beyond which loaded and\nin-flight chunks are unloaded/canceled. Defaults to LoadRadius + 1 if\nsmaller than LoadRadius."
            },
            {
              "name": "MaxIntegrationsPerFrame",
              "anchor": "ChunkStreamerConfig.MaxIntegrationsPerFrame",
              "kind": "field",
              "doc": "MaxIntegrationsPerFrame caps how many completed chunks are integrated\ninto the active map per Update call to prevent frame-time hitches.\nValues <= 0 allow unlimited integrations per frame."
            },
            {
              "name": "Workers",
              "anchor": "ChunkStreamerConfig.Workers",
              "kind": "field",
              "doc": "Workers sets the number of background loader goroutines. When 0, Loader\nexecutes synchronously inside Update (useful for deterministic tests)."
            },
            {
              "name": "Loader",
              "anchor": "ChunkStreamerConfig.Loader",
              "kind": "field",
              "doc": "Loader loads chunk data for coord. It must respect ctx cancellation."
            },
            {
              "name": "OnLoad",
              "anchor": "ChunkStreamerConfig.OnLoad",
              "kind": "field",
              "doc": "OnLoad is called on the Update goroutine after a chunk is integrated."
            },
            {
              "name": "OnUnload",
              "anchor": "ChunkStreamerConfig.OnUnload",
              "kind": "field",
              "doc": "OnUnload is called on the Update/Close goroutine after a chunk is unloaded."
            },
            {
              "name": "OnError",
              "anchor": "ChunkStreamerConfig.OnError",
              "kind": "field",
              "doc": "OnError is called on the Update goroutine when Loader returns a non-nil error."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "DensityMap",
          "anchor": "DensityMap",
          "decl": "type DensityMap struct {\n\tWidth  int\n\tHeight int\n\tData   []float32\n}",
          "doc": "DensityMap stores normalized [0, 1] 2D scatter density weights in row-major order.\n",
          "file": "pkg/world3d/foliage.go",
          "line": 66,
          "members": [
            {
              "name": "Width",
              "anchor": "DensityMap.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "DensityMap.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Data",
              "anchor": "DensityMap.Data",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadDensityMapGray",
              "anchor": "LoadDensityMapGray",
              "decl": "func LoadDensityMapGray(img image.Image) *DensityMap",
              "doc": "LoadDensityMapGray constructs a DensityMap from a grayscale (or color,\nconverted to 16-bit luminance) image with pixel intensities normalized to [0, 1].\n",
              "file": "pkg/world3d/foliage.go",
              "line": 86
            },
            {
              "name": "NewDensityMap",
              "anchor": "NewDensityMap",
              "decl": "func NewDensityMap(width, height int) *DensityMap",
              "doc": "NewDensityMap allocates a zero-initialized DensityMap of width x height samples.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 73
            }
          ],
          "methods": [
            {
              "name": "At",
              "anchor": "DensityMap.At",
              "recv": "*DensityMap",
              "decl": "func (d *DensityMap) At(x, y int) float32",
              "doc": "At returns the density sample at texel (x, y), or 0 if out of range.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 133
            },
            {
              "name": "Clone",
              "anchor": "DensityMap.Clone",
              "recv": "*DensityMap",
              "decl": "func (d *DensityMap) Clone() *DensityMap",
              "doc": "Clone returns a deep copy of d, or nil if d is nil.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 154
            },
            {
              "name": "EncodePNG",
              "anchor": "DensityMap.EncodePNG",
              "recv": "*DensityMap",
              "decl": "func (d *DensityMap) EncodePNG(w io.Writer) error",
              "doc": "EncodePNG encodes d as an 8-bit grayscale PNG image into w.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 215
            },
            {
              "name": "Sample",
              "anchor": "DensityMap.Sample",
              "recv": "*DensityMap",
              "decl": "func (d *DensityMap) Sample(u, v float32) float32",
              "doc": "Sample returns the bilinearly interpolated density weight in [0, 1] at\nnormalized UV coordinates (u, v) in [0, 1]. If d is nil or empty, 1.0 is returned.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 237
            },
            {
              "name": "Set",
              "anchor": "DensityMap.Set",
              "recv": "*DensityMap",
              "decl": "func (d *DensityMap) Set(x, y int, v float32)",
              "doc": "Set writes a clamped [0, 1] density value at texel (x, y); out-of-range coordinates are ignored.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 141
            },
            {
              "name": "ToGray",
              "anchor": "DensityMap.ToGray",
              "recv": "*DensityMap",
              "decl": "func (d *DensityMap) ToGray() *image.Gray",
              "doc": "ToGray converts d into an 8-bit grayscale image with values in [0, 255].\n",
              "file": "pkg/world3d/foliage.go",
              "line": 168
            },
            {
              "name": "ToGray16",
              "anchor": "DensityMap.ToGray16",
              "recv": "*DensityMap",
              "decl": "func (d *DensityMap) ToGray16() *image.Gray16",
              "doc": "ToGray16 converts d into a 16-bit grayscale image with values in [0, 65535].\n",
              "file": "pkg/world3d/foliage.go",
              "line": 190
            }
          ]
        },
        {
          "name": "FloatingOrigin",
          "anchor": "FloatingOrigin",
          "decl": "type FloatingOrigin struct {\n\tOrigin    WorldPos64\n\tThreshold float64\n}",
          "doc": "FloatingOrigin maintains a double-precision world origin offset so that local\nfloat32 physics, animation, and rendering coordinates stay near (0, 0, 0).\n",
          "file": "pkg/world3d/streaming.go",
          "line": 63,
          "members": [
            {
              "name": "Origin",
              "anchor": "FloatingOrigin.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Threshold",
              "anchor": "FloatingOrigin.Threshold",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewFloatingOrigin",
              "anchor": "NewFloatingOrigin",
              "decl": "func NewFloatingOrigin(threshold float64) *FloatingOrigin",
              "doc": "NewFloatingOrigin constructs a FloatingOrigin with the given rebase distance\nthreshold (in world units). Non-positive thresholds default to 512.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 70
            }
          ],
          "methods": [
            {
              "name": "LocalToWorld",
              "anchor": "FloatingOrigin.LocalToWorld",
              "recv": "*FloatingOrigin",
              "decl": "func (f *FloatingOrigin) LocalToWorld(local math3d.Vec3) WorldPos64",
              "doc": "LocalToWorld converts a local float32 position back into double-precision\nworld coordinates.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 118
            },
            {
              "name": "Update",
              "anchor": "FloatingOrigin.Update",
              "recv": "*FloatingOrigin",
              "decl": "func (f *FloatingOrigin) Update(playerLocal math3d.Vec3) (rebased bool, shift math3d.Vec3)",
              "doc": "Update checks whether playerLocal has moved farther than Threshold from the\nlocal origin (0, 0, 0). When exceeded, Origin advances by playerLocal and\nUpdate returns (true, shift) where shift == -playerLocal is the additive\noffset to apply to every active local position/transform (pos = pos.Add(shift))\nso playerLocal rebases back to (0, 0, 0) while preserving exact WorldPos64\ncoordinates.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 83
            },
            {
              "name": "WorldToLocal",
              "anchor": "FloatingOrigin.WorldToLocal",
              "recv": "*FloatingOrigin",
              "decl": "func (f *FloatingOrigin) WorldToLocal(w WorldPos64) math3d.Vec3",
              "doc": "WorldToLocal converts double-precision world position w into local float32\nspace by subtracting Origin in float64 before narrowing to float32.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 105
            }
          ]
        },
        {
          "name": "FoliageBuildOptions",
          "anchor": "FoliageBuildOptions",
          "decl": "type FoliageBuildOptions struct {\n\t// ResolveMesh maps a layer's Mesh asset path to a runtime MeshID. When nil, MeshID is 0.\n\tResolveMesh func(path string) (uint32, error)\n\t// ResolveMaterial maps a layer's Material asset path (when non-empty) to a runtime MaterialID. When nil, MaterialID is 0.\n\tResolveMaterial func(path string) (uint32, error)\n\t// LoadDensityMap loads a layer's DensityMap asset path (when non-empty) into a [*DensityMap].\n\t// When nil and FS is non-nil, the image is decoded from FS with [LoadDensityMapGray].\n\tLoadDensityMap func(path string) (*DensityMap, error)\n\t// FS is an optional filesystem used to decode DensityMap images when LoadDensityMap is nil.\n\tFS fs.FS\n}",
          "doc": "FoliageBuildOptions supplies runtime mesh/material ID resolution and density\nmap loading when converting a [FoliageDoc] into runtime [FoliageLayer] values.\n",
          "file": "pkg/world3d/foliage_format.go",
          "line": 91,
          "members": [
            {
              "name": "ResolveMesh",
              "anchor": "FoliageBuildOptions.ResolveMesh",
              "kind": "field",
              "doc": "ResolveMesh maps a layer's Mesh asset path to a runtime MeshID. When nil, MeshID is 0."
            },
            {
              "name": "ResolveMaterial",
              "anchor": "FoliageBuildOptions.ResolveMaterial",
              "kind": "field",
              "doc": "ResolveMaterial maps a layer's Material asset path (when non-empty) to a runtime MaterialID. When nil, MaterialID is 0."
            },
            {
              "name": "LoadDensityMap",
              "anchor": "FoliageBuildOptions.LoadDensityMap",
              "kind": "field",
              "doc": "LoadDensityMap loads a layer's DensityMap asset path (when non-empty) into a [*DensityMap].\nWhen nil and FS is non-nil, the image is decoded from FS with [LoadDensityMapGray]."
            },
            {
              "name": "FS",
              "anchor": "FoliageBuildOptions.FS",
              "kind": "field",
              "doc": "FS is an optional filesystem used to decode DensityMap images when LoadDensityMap is nil."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FoliageDoc",
          "anchor": "FoliageDoc",
          "decl": "type FoliageDoc struct {\n\t// Version is the schema version; must be 1.\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Name is an optional human-readable name for the foliage set.\n\tName string `yaml:\"name,omitempty\"`\n\t// Terrain is an optional asset path to the terrain definition (*.terrain.yaml) these foliage layers scatter over.\n\tTerrain string `yaml:\"terrain,omitempty\"`\n\t// Layers lists 1 or more procedural foliage scatter layers in authoring order.\n\tLayers []FoliageLayerDoc `yaml:\"layers\" schema:\"required,minItems=1\"`\n}",
          "doc": "FoliageDoc is the root of a versioned YAML foliage definition declaring one\nor more procedural foliage scatter layers over a terrain heightmap.\n",
          "file": "pkg/world3d/foliage_format.go",
          "line": 30,
          "members": [
            {
              "name": "Version",
              "anchor": "FoliageDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; must be 1."
            },
            {
              "name": "Name",
              "anchor": "FoliageDoc.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name for the foliage set."
            },
            {
              "name": "Terrain",
              "anchor": "FoliageDoc.Terrain",
              "kind": "field",
              "doc": "Terrain is an optional asset path to the terrain definition (*.terrain.yaml) these foliage layers scatter over."
            },
            {
              "name": "Layers",
              "anchor": "FoliageDoc.Layers",
              "kind": "field",
              "doc": "Layers lists 1 or more procedural foliage scatter layers in authoring order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadFoliageFS",
              "anchor": "LoadFoliageFS",
              "decl": "func LoadFoliageFS(fsys fs.FS, name string) (*FoliageDoc, error)",
              "doc": "LoadFoliageFS reads and validates the YAML foliage definition at name in fsys.\n",
              "file": "pkg/world3d/foliage_format.go",
              "line": 277
            },
            {
              "name": "ParseFoliage",
              "anchor": "ParseFoliage",
              "decl": "func ParseFoliage(data []byte) (*FoliageDoc, error)",
              "doc": "ParseFoliage decodes and validates a YAML foliage definition document. Unknown\nfields and trailing YAML documents are rejected. Returned errors are\n[*loaderr.Error] values carrying line, column, field path, and a fix hint.\n",
              "file": "pkg/world3d/foliage_format.go",
              "line": 232
            },
            {
              "name": "ParseFoliageWith",
              "anchor": "ParseFoliageWith",
              "decl": "func ParseFoliageWith(data []byte, file string) (*FoliageDoc, error)",
              "doc": "ParseFoliageWith is [ParseFoliage] with an optional source file name attached to errors.\n",
              "file": "pkg/world3d/foliage_format.go",
              "line": 237
            }
          ],
          "methods": [
            {
              "name": "BuildLayers",
              "anchor": "FoliageDoc.BuildLayers",
              "recv": "*FoliageDoc",
              "decl": "func (d *FoliageDoc) BuildLayers(opts FoliageBuildOptions) ([]FoliageLayer, error)",
              "doc": "BuildLayers validates d and converts every entry in d.Layers into a runtime [FoliageLayer].\n",
              "file": "pkg/world3d/foliage_format.go",
              "line": 169
            },
            {
              "name": "ScatterAll",
              "anchor": "FoliageDoc.ScatterAll",
              "recv": "*FoliageDoc",
              "decl": "func (d *FoliageDoc) ScatterAll(hm *Heightmap, region math3d.AABB, opts FoliageBuildOptions) ([]*FoliageField, error)",
              "doc": "ScatterAll builds every foliage layer in d and scatters it across hm within region\n(or the full heightmap bounds when region is empty/zero).\n",
              "file": "pkg/world3d/foliage_format.go",
              "line": 186
            }
          ]
        },
        {
          "name": "FoliageField",
          "anchor": "FoliageField",
          "decl": "type FoliageField struct {\n\tLayer FoliageLayer\n\t// contains filtered or unexported fields\n}",
          "doc": "FoliageField holds deterministically scattered, spatially chunked foliage\ninstances for fast frustum and distance culling.\n",
          "file": "pkg/world3d/foliage.go",
          "line": 298,
          "members": [
            {
              "name": "Layer",
              "anchor": "FoliageField.Layer",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Scatter",
              "anchor": "Scatter",
              "decl": "func Scatter(hm *Heightmap, layer FoliageLayer, region math3d.AABB) *FoliageField",
              "doc": "Scatter deterministically generates a chunked FoliageField across region on hm.\nIf region is empty or zero, the full Heightmap bounds are used.\n\nInstances within each spatial chunk are stored in deterministic pseudo-random\norder so runtime QualityProfile.DensityScale sub-sampling is spatially uniform,\nstrictly nested across quality levels, and branch-free.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 315
            }
          ],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "FoliageField.Bounds",
              "recv": "*FoliageField",
              "decl": "func (f *FoliageField) Bounds() math3d.AABB",
              "doc": "Bounds returns the world-space AABB enclosing all scattered instances in f.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 511
            },
            {
              "name": "ChunkCount",
              "anchor": "FoliageField.ChunkCount",
              "recv": "*FoliageField",
              "decl": "func (f *FoliageField) ChunkCount() int",
              "doc": "ChunkCount returns the number of non-empty spatial chunks in f.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 503
            },
            {
              "name": "CollectVisible",
              "anchor": "FoliageField.CollectVisible",
              "recv": "*FoliageField",
              "decl": "func (f *FoliageField) CollectVisible(\n\tcamPos math3d.Vec3,\n\tfrustum math3d.Frustum,\n\tquality QualityProfile,\n\tout []FoliageInstance,\n) []FoliageInstance",
              "doc": "CollectVisible culls f against frustum and effective draw distance from\ncamPos, applies quality.DensityScale, computes smooth per-instance Fade\nfactors (1.0 inside fade start -> 0.0 at MaxDistance), and appends visible\ninstances into out[:0].\n\nPassing back the slice returned on the previous frame avoids heap allocations\nin steady state.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 525
            },
            {
              "name": "TotalCount",
              "anchor": "FoliageField.TotalCount",
              "recv": "*FoliageField",
              "decl": "func (f *FoliageField) TotalCount() int",
              "doc": "TotalCount returns the total number of scattered instances stored in f.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 495
            }
          ]
        },
        {
          "name": "FoliageInstance",
          "anchor": "FoliageInstance",
          "decl": "type FoliageInstance struct {\n\tTransform math3d.Mat4\n\tFade      float32 // 1.0 inside fade start distance, smoothly transitioning to 0.0 at MaxDistance\n}",
          "doc": "FoliageInstance is a visible scattered instance ready for instanced rendering.\n",
          "file": "pkg/world3d/foliage.go",
          "line": 285,
          "members": [
            {
              "name": "Transform",
              "anchor": "FoliageInstance.Transform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fade",
              "anchor": "FoliageInstance.Fade",
              "kind": "field",
              "doc": "1.0 inside fade start distance, smoothly transitioning to 0.0 at MaxDistance"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FoliageLayer",
          "anchor": "FoliageLayer",
          "decl": "type FoliageLayer struct {\n\tName            string\n\tMeshID          uint32\n\tMaterialID      uint32\n\tDensity         float32     // target candidate instances per square meter\n\tMinScale        float32     // minimum uniform instance scale (defaults to 1 if both <= 0)\n\tMaxScale        float32     // maximum uniform instance scale\n\tAlignToNormal   float32     // 0 = upright (+Y), 1 = fully aligned to terrain normal\n\tMinSlopeDeg     float32     // minimum terrain slope in degrees [0, 90]\n\tMaxSlopeDeg     float32     // maximum terrain slope in degrees [0, 90]; 0 with MinSlopeDeg==0 allows all slopes\n\tMinHeight       float32     // minimum world Y height (unconstrained if MinHeight == 0 && MaxHeight == 0)\n\tMaxHeight       float32     // maximum world Y height (unconstrained if MinHeight == 0 && MaxHeight == 0)\n\tDensityMap      *DensityMap // optional normalized density mask across terrain bounds\n\tBaseMaxDistance float32     // default maximum draw distance in world units\n\tSeed            uint64      // deterministic PRNG seed\n\t// BoundingRadius is the radius, at scale 1, of a sphere around the mesh pivot that encloses the mesh. When > 0, frustum culling uses each instance's scaled sphere and the draw distance and fade are measured from the sphere's nearest point, so a large tree is kept while any part of it is within range (#546). When <= 0, culling assumes a unit-radius mesh and distances are measured from the pivot.\n\tBoundingRadius float32\n}",
          "doc": "FoliageLayer configures deterministic procedural scattering of a foliage or\nprop mesh across a Heightmap.\n",
          "file": "pkg/world3d/foliage.go",
          "line": 265,
          "members": [
            {
              "name": "Name",
              "anchor": "FoliageLayer.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MeshID",
              "anchor": "FoliageLayer.MeshID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaterialID",
              "anchor": "FoliageLayer.MaterialID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Density",
              "anchor": "FoliageLayer.Density",
              "kind": "field",
              "doc": "target candidate instances per square meter"
            },
            {
              "name": "MinScale",
              "anchor": "FoliageLayer.MinScale",
              "kind": "field",
              "doc": "minimum uniform instance scale (defaults to 1 if both <= 0)"
            },
            {
              "name": "MaxScale",
              "anchor": "FoliageLayer.MaxScale",
              "kind": "field",
              "doc": "maximum uniform instance scale"
            },
            {
              "name": "AlignToNormal",
              "anchor": "FoliageLayer.AlignToNormal",
              "kind": "field",
              "doc": "0 = upright (+Y), 1 = fully aligned to terrain normal"
            },
            {
              "name": "MinSlopeDeg",
              "anchor": "FoliageLayer.MinSlopeDeg",
              "kind": "field",
              "doc": "minimum terrain slope in degrees [0, 90]"
            },
            {
              "name": "MaxSlopeDeg",
              "anchor": "FoliageLayer.MaxSlopeDeg",
              "kind": "field",
              "doc": "maximum terrain slope in degrees [0, 90]; 0 with MinSlopeDeg==0 allows all slopes"
            },
            {
              "name": "MinHeight",
              "anchor": "FoliageLayer.MinHeight",
              "kind": "field",
              "doc": "minimum world Y height (unconstrained if MinHeight == 0 && MaxHeight == 0)"
            },
            {
              "name": "MaxHeight",
              "anchor": "FoliageLayer.MaxHeight",
              "kind": "field",
              "doc": "maximum world Y height (unconstrained if MinHeight == 0 && MaxHeight == 0)"
            },
            {
              "name": "DensityMap",
              "anchor": "FoliageLayer.DensityMap",
              "kind": "field",
              "doc": "optional normalized density mask across terrain bounds"
            },
            {
              "name": "BaseMaxDistance",
              "anchor": "FoliageLayer.BaseMaxDistance",
              "kind": "field",
              "doc": "default maximum draw distance in world units"
            },
            {
              "name": "Seed",
              "anchor": "FoliageLayer.Seed",
              "kind": "field",
              "doc": "deterministic PRNG seed"
            },
            {
              "name": "BoundingRadius",
              "anchor": "FoliageLayer.BoundingRadius",
              "kind": "field",
              "doc": "BoundingRadius is the radius, at scale 1, of a sphere around the mesh pivot that encloses the mesh. When > 0, frustum culling uses each instance's scaled sphere and the draw distance and fade are measured from the sphere's nearest point, so a large tree is kept while any part of it is within range (#546). When <= 0, culling assumes a unit-radius mesh and distances are measured from the pivot."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "FoliageLayerDoc",
          "anchor": "FoliageLayerDoc",
          "decl": "type FoliageLayerDoc struct {\n\t// Name is the unique identifier for this foliage layer (such as \"grass\", \"pine_tree\", \"boulder\").\n\tName string `yaml:\"name\" schema:\"required,minLength=1\"`\n\t// Mesh is the asset path to the foliage mesh (such as a .gltf or .glb model).\n\tMesh string `yaml:\"mesh\" schema:\"required,minLength=1\"`\n\t// Material is an optional asset path to a material override for the foliage mesh.\n\tMaterial string `yaml:\"material,omitempty\"`\n\t// DensityMap is an optional asset path to a grayscale density mask image covering the terrain bounds.\n\tDensityMap string `yaml:\"densityMap,omitempty\"`\n\t// Density is the target candidate instances per square meter; set either density or spacing (not both).\n\tDensity float32 `yaml:\"density,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// Spacing is the target average world-space spacing between instances in meters (equivalent to density = 1 / spacing^2); set either spacing or density (not both).\n\tSpacing float32 `yaml:\"spacing,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// MinScale is the minimum uniform instance scale; omitted defaults to 1 (or maxScale when only maxScale is set).\n\tMinScale float32 `yaml:\"minScale,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// MaxScale is the maximum uniform instance scale; omitted defaults to 1 (or minScale when only minScale is set).\n\tMaxScale float32 `yaml:\"maxScale,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// AlignToNormal blends instance up-axis alignment from upright (0) to terrain surface normal (1).\n\tAlignToNormal float32 `yaml:\"alignToNormal,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// MinSlopeDeg is the minimum terrain slope in degrees [0, 90] where instances may spawn.\n\tMinSlopeDeg float32 `yaml:\"minSlopeDeg,omitempty\" schema:\"minimum=0,maximum=90\"`\n\t// MaxSlopeDeg is the maximum terrain slope in degrees [0, 90] where instances may spawn; 0 with minSlopeDeg 0 allows all slopes.\n\tMaxSlopeDeg float32 `yaml:\"maxSlopeDeg,omitempty\" schema:\"minimum=0,maximum=90\"`\n\t// MinHeight is the minimum world-space Y elevation where instances may spawn.\n\tMinHeight *float32 `yaml:\"minHeight,omitempty\"`\n\t// MaxHeight is the maximum world-space Y elevation where instances may spawn.\n\tMaxHeight *float32 `yaml:\"maxHeight,omitempty\"`\n\t// BaseMaxDistance is the default maximum draw distance in world units; 0 means uncapped unless limited by QualityProfile.\n\tBaseMaxDistance float32 `yaml:\"baseMaxDistance,omitempty\" schema:\"minimum=0\"`\n\t// BoundingRadius is the bounding sphere radius at scale 1 around the mesh pivot for frustum culling and distance fade; 0 defaults to 1 around the pivot.\n\tBoundingRadius float32 `yaml:\"boundingRadius,omitempty\" schema:\"minimum=0\"`\n\t// Seed is the deterministic PRNG seed for repeatable scattering.\n\tSeed uint64 `yaml:\"seed,omitempty\"`\n}",
          "doc": "FoliageLayerDoc describes one procedural foliage scatter layer in a [FoliageDoc].\n",
          "file": "pkg/world3d/foliage_format.go",
          "line": 42,
          "members": [
            {
              "name": "Name",
              "anchor": "FoliageLayerDoc.Name",
              "kind": "field",
              "doc": "Name is the unique identifier for this foliage layer (such as \"grass\", \"pine_tree\", \"boulder\")."
            },
            {
              "name": "Mesh",
              "anchor": "FoliageLayerDoc.Mesh",
              "kind": "field",
              "doc": "Mesh is the asset path to the foliage mesh (such as a .gltf or .glb model)."
            },
            {
              "name": "Material",
              "anchor": "FoliageLayerDoc.Material",
              "kind": "field",
              "doc": "Material is an optional asset path to a material override for the foliage mesh."
            },
            {
              "name": "DensityMap",
              "anchor": "FoliageLayerDoc.DensityMap",
              "kind": "field",
              "doc": "DensityMap is an optional asset path to a grayscale density mask image covering the terrain bounds."
            },
            {
              "name": "Density",
              "anchor": "FoliageLayerDoc.Density",
              "kind": "field",
              "doc": "Density is the target candidate instances per square meter; set either density or spacing (not both)."
            },
            {
              "name": "Spacing",
              "anchor": "FoliageLayerDoc.Spacing",
              "kind": "field",
              "doc": "Spacing is the target average world-space spacing between instances in meters (equivalent to density = 1 / spacing^2); set either spacing or density (not both)."
            },
            {
              "name": "MinScale",
              "anchor": "FoliageLayerDoc.MinScale",
              "kind": "field",
              "doc": "MinScale is the minimum uniform instance scale; omitted defaults to 1 (or maxScale when only maxScale is set)."
            },
            {
              "name": "MaxScale",
              "anchor": "FoliageLayerDoc.MaxScale",
              "kind": "field",
              "doc": "MaxScale is the maximum uniform instance scale; omitted defaults to 1 (or minScale when only minScale is set)."
            },
            {
              "name": "AlignToNormal",
              "anchor": "FoliageLayerDoc.AlignToNormal",
              "kind": "field",
              "doc": "AlignToNormal blends instance up-axis alignment from upright (0) to terrain surface normal (1)."
            },
            {
              "name": "MinSlopeDeg",
              "anchor": "FoliageLayerDoc.MinSlopeDeg",
              "kind": "field",
              "doc": "MinSlopeDeg is the minimum terrain slope in degrees [0, 90] where instances may spawn."
            },
            {
              "name": "MaxSlopeDeg",
              "anchor": "FoliageLayerDoc.MaxSlopeDeg",
              "kind": "field",
              "doc": "MaxSlopeDeg is the maximum terrain slope in degrees [0, 90] where instances may spawn; 0 with minSlopeDeg 0 allows all slopes."
            },
            {
              "name": "MinHeight",
              "anchor": "FoliageLayerDoc.MinHeight",
              "kind": "field",
              "doc": "MinHeight is the minimum world-space Y elevation where instances may spawn."
            },
            {
              "name": "MaxHeight",
              "anchor": "FoliageLayerDoc.MaxHeight",
              "kind": "field",
              "doc": "MaxHeight is the maximum world-space Y elevation where instances may spawn."
            },
            {
              "name": "BaseMaxDistance",
              "anchor": "FoliageLayerDoc.BaseMaxDistance",
              "kind": "field",
              "doc": "BaseMaxDistance is the default maximum draw distance in world units; 0 means uncapped unless limited by QualityProfile."
            },
            {
              "name": "BoundingRadius",
              "anchor": "FoliageLayerDoc.BoundingRadius",
              "kind": "field",
              "doc": "BoundingRadius is the bounding sphere radius at scale 1 around the mesh pivot for frustum culling and distance fade; 0 defaults to 1 around the pivot."
            },
            {
              "name": "Seed",
              "anchor": "FoliageLayerDoc.Seed",
              "kind": "field",
              "doc": "Seed is the deterministic PRNG seed for repeatable scattering."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "FoliageLayerToDoc",
              "anchor": "FoliageLayerToDoc",
              "decl": "func FoliageLayerToDoc(layer FoliageLayer, meshPath, materialPath, densityMapPath string) FoliageLayerDoc",
              "doc": "FoliageLayerToDoc converts a runtime [FoliageLayer] and its asset paths into\na [FoliageLayerDoc] suitable for deterministic YAML encoding.\n",
              "file": "pkg/world3d/foliage_format.go",
              "line": 200
            }
          ],
          "methods": [
            {
              "name": "EffectiveDensity",
              "anchor": "FoliageLayerDoc.EffectiveDensity",
              "recv": "FoliageLayerDoc",
              "decl": "func (l FoliageLayerDoc) EffectiveDensity() float32",
              "doc": "EffectiveDensity returns the candidate density in instances per square meter:\nl.Density when positive, or 1 / (l.Spacing * l.Spacing) when l.Spacing is positive.\n",
              "file": "pkg/world3d/foliage_format.go",
              "line": 79
            },
            {
              "name": "ToLayer",
              "anchor": "FoliageLayerDoc.ToLayer",
              "recv": "FoliageLayerDoc",
              "decl": "func (l FoliageLayerDoc) ToLayer(opts FoliageBuildOptions) (FoliageLayer, error)",
              "doc": "ToLayer converts l into a runtime [FoliageLayer] using opts.\n",
              "file": "pkg/world3d/foliage_format.go",
              "line": 104
            }
          ]
        },
        {
          "name": "GridAxis",
          "anchor": "GridAxis",
          "decl": "type GridAxis int",
          "doc": "GridAxis identifies a principal 3D axis for 90-degree GridMap item rotations.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 118,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "GridAxisX",
                  "anchor": "GridAxisX"
                },
                {
                  "name": "GridAxisY",
                  "anchor": "GridAxisY"
                },
                {
                  "name": "GridAxisZ",
                  "anchor": "GridAxisZ"
                }
              ],
              "decl": "const (\n\t// GridAxisX is the world X axis.\n\tGridAxisX GridAxis = iota\n\t// GridAxisY is the world Y axis.\n\tGridAxisY\n\t// GridAxisZ is the world Z axis.\n\tGridAxisZ\n)",
              "doc": "",
              "file": "pkg/world3d/gridmap.go",
              "line": 120
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridBoxDoc",
          "anchor": "GridBoxDoc",
          "decl": "type GridBoxDoc struct {\n\t// Min is the inclusive minimum integer [x, y, z] grid coordinate of the filled box.\n\tMin *[3]int `yaml:\"min\" schema:\"required\"`\n\t// Max is the inclusive maximum integer [x, y, z] grid coordinate of the filled box; each axis must be >= min.\n\tMax *[3]int `yaml:\"max\" schema:\"required\"`\n\t// Tile is the name of the tile in the referenced mesh library.\n\tTile string `yaml:\"tile\" schema:\"required,minLength=1\"`\n\t// Orientation is the orthogonal cube rotation index in 0..23 (0..3 are 0°, 90°, 180°, 270° around +Y); omitted defaults to 0.\n\tOrientation uint8 `yaml:\"orientation,omitempty\" schema:\"minimum=0,maximum=23\"`\n}",
          "doc": "GridBoxDoc describes an axis-aligned box run of identical tiles placed from Min to Max (inclusive).\n",
          "file": "pkg/world3d/gridmap_format.go",
          "line": 49,
          "members": [
            {
              "name": "Min",
              "anchor": "GridBoxDoc.Min",
              "kind": "field",
              "doc": "Min is the inclusive minimum integer [x, y, z] grid coordinate of the filled box."
            },
            {
              "name": "Max",
              "anchor": "GridBoxDoc.Max",
              "kind": "field",
              "doc": "Max is the inclusive maximum integer [x, y, z] grid coordinate of the filled box; each axis must be >= min."
            },
            {
              "name": "Tile",
              "anchor": "GridBoxDoc.Tile",
              "kind": "field",
              "doc": "Tile is the name of the tile in the referenced mesh library."
            },
            {
              "name": "Orientation",
              "anchor": "GridBoxDoc.Orientation",
              "kind": "field",
              "doc": "Orientation is the orthogonal cube rotation index in 0..23 (0..3 are 0°, 90°, 180°, 270° around +Y); omitted defaults to 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridCell",
          "anchor": "GridCell",
          "decl": "type GridCell struct {\n\tTileID      uint16\n\tOrientation uint8\n}",
          "doc": "GridCell stores the tile ID and orthogonal orientation (0..23) of a GridMap cell.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 498,
          "members": [
            {
              "name": "TileID",
              "anchor": "GridCell.TileID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Orientation",
              "anchor": "GridCell.Orientation",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridCellDoc",
          "anchor": "GridCellDoc",
          "decl": "type GridCellDoc struct {\n\t// At is the discrete integer [x, y, z] grid coordinate of the cell.\n\tAt *[3]int `yaml:\"at\" schema:\"required\"`\n\t// Tile is the name of the tile in the referenced mesh library.\n\tTile string `yaml:\"tile\" schema:\"required,minLength=1\"`\n\t// Orientation is the orthogonal cube rotation index in 0..23 (0..3 are 0°, 90°, 180°, 270° around +Y); omitted defaults to 0.\n\tOrientation uint8 `yaml:\"orientation,omitempty\" schema:\"minimum=0,maximum=23\"`\n}",
          "doc": "GridCellDoc describes one occupied cell in a [GridMapDoc].\n",
          "file": "pkg/world3d/gridmap_format.go",
          "line": 61,
          "members": [
            {
              "name": "At",
              "anchor": "GridCellDoc.At",
              "kind": "field",
              "doc": "At is the discrete integer [x, y, z] grid coordinate of the cell."
            },
            {
              "name": "Tile",
              "anchor": "GridCellDoc.Tile",
              "kind": "field",
              "doc": "Tile is the name of the tile in the referenced mesh library."
            },
            {
              "name": "Orientation",
              "anchor": "GridCellDoc.Orientation",
              "kind": "field",
              "doc": "Orientation is the orthogonal cube rotation index in 0..23 (0..3 are 0°, 90°, 180°, 270° around +Y); omitted defaults to 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridColliderOptions",
          "anchor": "GridColliderOptions",
          "decl": "type GridColliderOptions struct {\n\t// DisableMerge emits one static body per cell ColliderBox instead of\n\t// greedily merging adjacent aligned boxes along X, then Z, then Y.\n\tDisableMerge bool\n\t// MergeTolerance sets the face-alignment tolerance for greedy box merging\n\t// (defaults to 1e-4 when <= 0).\n\tMergeTolerance float32\n\t// Friction is the Coulomb friction coefficient for created static bodies\n\t// (defaults to 0.5 when <= 0).\n\tFriction float32\n\t// Restitution is the bounciness in [0, 1] for created static bodies.\n\tRestitution float32\n\t// Layer is the collision layer bitmask (0 defaults to physics3d.LayerAll).\n\tLayer physics3d.LayerMask\n\t// Mask is the collision filter bitmask (0 defaults to physics3d.LayerAll).\n\tMask physics3d.LayerMask\n\t// Tag is an optional label assigned to every created static body.\n\tTag string\n}",
          "doc": "GridColliderOptions configures static physics bodies created from a GridMap.\n",
          "file": "pkg/world3d/gridmap_collider.go",
          "line": 12,
          "members": [
            {
              "name": "DisableMerge",
              "anchor": "GridColliderOptions.DisableMerge",
              "kind": "field",
              "doc": "DisableMerge emits one static body per cell ColliderBox instead of\ngreedily merging adjacent aligned boxes along X, then Z, then Y."
            },
            {
              "name": "MergeTolerance",
              "anchor": "GridColliderOptions.MergeTolerance",
              "kind": "field",
              "doc": "MergeTolerance sets the face-alignment tolerance for greedy box merging\n(defaults to 1e-4 when <= 0)."
            },
            {
              "name": "Friction",
              "anchor": "GridColliderOptions.Friction",
              "kind": "field",
              "doc": "Friction is the Coulomb friction coefficient for created static bodies\n(defaults to 0.5 when <= 0)."
            },
            {
              "name": "Restitution",
              "anchor": "GridColliderOptions.Restitution",
              "kind": "field",
              "doc": "Restitution is the bounciness in [0, 1] for created static bodies."
            },
            {
              "name": "Layer",
              "anchor": "GridColliderOptions.Layer",
              "kind": "field",
              "doc": "Layer is the collision layer bitmask (0 defaults to physics3d.LayerAll)."
            },
            {
              "name": "Mask",
              "anchor": "GridColliderOptions.Mask",
              "kind": "field",
              "doc": "Mask is the collision filter bitmask (0 defaults to physics3d.LayerAll)."
            },
            {
              "name": "Tag",
              "anchor": "GridColliderOptions.Tag",
              "kind": "field",
              "doc": "Tag is an optional label assigned to every created static body."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridCoord",
          "anchor": "GridCoord",
          "decl": "type GridCoord struct {\n\tX, Y, Z int\n}",
          "doc": "GridCoord identifies a discrete 3D cell coordinate in a GridMap.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 493,
          "members": [
            {
              "name": "X",
              "anchor": "GridCoord.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "GridCoord.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "GridCoord.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridHit",
          "anchor": "GridHit",
          "decl": "type GridHit struct {\n\tCoord    GridCoord\n\tCell     GridCell\n\tPoint    math3d.Vec3\n\tNormal   math3d.Vec3\n\tDistance float32\n}",
          "doc": "GridHit describes the closest intersection between a ray and an occupied GridMap cell.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 504,
          "members": [
            {
              "name": "Coord",
              "anchor": "GridHit.Coord",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cell",
              "anchor": "GridHit.Cell",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Point",
              "anchor": "GridHit.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "GridHit.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Distance",
              "anchor": "GridHit.Distance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridInstanceBatch",
          "anchor": "GridInstanceBatch",
          "decl": "type GridInstanceBatch struct {\n\tMeshID     uint32\n\tMaterialID uint32\n\tTransforms []math3d.Mat4\n}",
          "doc": "GridInstanceBatch groups world-space instance transforms sharing the same\n(MeshID, MaterialID) pair for instanced 3D rendering.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 514,
          "members": [
            {
              "name": "MeshID",
              "anchor": "GridInstanceBatch.MeshID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaterialID",
              "anchor": "GridInstanceBatch.MaterialID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transforms",
              "anchor": "GridInstanceBatch.Transforms",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "GridMap",
          "anchor": "GridMap",
          "decl": "type GridMap struct {\n\tOrigin   math3d.Vec3\n\tCellSize math3d.Vec3\n\tLibrary  *MeshLibrary\n\t// contains filtered or unexported fields\n}",
          "doc": "GridMap is a sparse 3D grid of modular mesh tiles with runtime editing,\nfrustum-culled instanced batch generation, AABB collision queries, and raycasting.\n\nEach cell c spans [Origin + c*CellSize, Origin + (c+1)*CellSize] and places\nits tile's local origin at the center of that cell, rotated by\nGridOrientationMat4(cell.Orientation).\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 541,
          "members": [
            {
              "name": "Origin",
              "anchor": "GridMap.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CellSize",
              "anchor": "GridMap.CellSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Library",
              "anchor": "GridMap.Library",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewGridMap",
              "anchor": "NewGridMap",
              "decl": "func NewGridMap(cellSize math3d.Vec3, lib *MeshLibrary) *GridMap",
              "doc": "NewGridMap creates an empty GridMap with the given cell dimensions and tile\nlibrary. Any non-positive CellSize axis defaults to 1.0.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 556
            }
          ],
          "methods": [
            {
              "name": "AddCollidersToWorld",
              "anchor": "GridMap.AddCollidersToWorld",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) AddCollidersToWorld(w *physics3d.World, opts GridColliderOptions) []*physics3d.Body",
              "doc": "AddCollidersToWorld creates static bodies in w for g's ColliderBoxes\n(greedily merged along X, then Z, then Y unless opts.DisableMerge is true)\nand returns the added body pointers in deterministic order.\n",
              "file": "pkg/world3d/gridmap_collider.go",
              "line": 159
            },
            {
              "name": "Bounds",
              "anchor": "GridMap.Bounds",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) Bounds() math3d.AABB",
              "doc": "Bounds returns the tight world-space AABB enclosing all occupied cells.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 793
            },
            {
              "name": "BuildInstances",
              "anchor": "GridMap.BuildInstances",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) BuildInstances(frustum *math3d.Frustum, out []GridInstanceBatch) []GridInstanceBatch",
              "doc": "BuildInstances gathers world transforms for all visible occupied cells,\ngrouped into instanced draw batches by (MeshID, MaterialID).\n\nIf frustum is non-nil, chunks and cells outside the view frustum are culled.\nTo avoid steady-state heap allocations, callers can pass back the slice\nreturned from the previous frame; its batch slots and Transforms backing\narrays are reused in place.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 994
            },
            {
              "name": "BuildStaticBodies",
              "anchor": "GridMap.BuildStaticBodies",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) BuildStaticBodies(opts GridColliderOptions) []physics3d.Body",
              "doc": "BuildStaticBodies builds static physics3d.Body values for g's ColliderBoxes.\nAdjacent aligned boxes are greedily merged along X, then Z, then Y unless\nopts.DisableMerge is true.\n",
              "file": "pkg/world3d/gridmap_collider.go",
              "line": 114
            },
            {
              "name": "Cell",
              "anchor": "GridMap.Cell",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) Cell(c GridCoord) (GridCell, bool)",
              "doc": "Cell returns the GridCell at coordinate c, or (GridCell{}, false) if empty.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 663
            },
            {
              "name": "CellBounds",
              "anchor": "GridMap.CellBounds",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) CellBounds(c GridCoord) math3d.AABB",
              "doc": "CellBounds returns the world-space axis-aligned bounding box of cell c.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 722
            },
            {
              "name": "CellTransform",
              "anchor": "GridMap.CellTransform",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) CellTransform(c GridCoord, orient uint8) math3d.Mat4",
              "doc": "CellTransform returns the world-space transform matrix placing a tile at the\ncenter of cell c rotated by orient (0..23).\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 740
            },
            {
              "name": "Clear",
              "anchor": "GridMap.Clear",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) Clear()",
              "doc": "Clear removes all cells from the GridMap.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 646
            },
            {
              "name": "ClearCell",
              "anchor": "GridMap.ClearCell",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) ClearCell(c GridCoord)",
              "doc": "ClearCell removes any tile stored at grid coordinate c.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 624
            },
            {
              "name": "ColliderBoxes",
              "anchor": "GridMap.ColliderBoxes",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) ColliderBoxes() []math3d.AABB",
              "doc": "ColliderBoxes returns all world-space collider AABBs from every occupied cell\nin g, in deterministic (Y, Z, X) cell order.\n",
              "file": "pkg/world3d/gridmap_collider.go",
              "line": 34
            },
            {
              "name": "CollisionBoxesIn",
              "anchor": "GridMap.CollisionBoxesIn",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) CollisionBoxesIn(region math3d.AABB) []math3d.AABB",
              "doc": "CollisionBoxesIn returns all world-space collider AABBs from occupied cells\nthat intersect region. Tiles with no ColliderBoxes emit no collision boxes.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 806
            },
            {
              "name": "Count",
              "anchor": "GridMap.Count",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) Count() int",
              "doc": "Count returns the number of occupied cells in the GridMap.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 655
            },
            {
              "name": "EachCell",
              "anchor": "GridMap.EachCell",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) EachCell(fn func(c GridCoord, cell GridCell) bool)",
              "doc": "EachCell calls fn for every occupied cell in the GridMap until fn returns\nfalse or all cells have been visited.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 677
            },
            {
              "name": "FillBox",
              "anchor": "GridMap.FillBox",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) FillBox(minC, maxC GridCoord, tileID uint16, orient uint8)",
              "doc": "FillBox sets every cell in the inclusive coordinate box [minC, maxC] to\ntileID with orientation orient. Component order is normalized automatically\nif any minC axis exceeds maxC. Setting tileID to 0 clears the box.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 693
            },
            {
              "name": "MergedColliderBoxes",
              "anchor": "GridMap.MergedColliderBoxes",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) MergedColliderBoxes() []math3d.AABB",
              "doc": "MergedColliderBoxes extracts all world-space ColliderBoxes from g's occupied\ncells and greedily merges adjacent aligned boxes along X, then Z, then Y\nusing physics3d.MergeBoxes. The union of the returned AABBs equals the union\nof g.ColliderBoxes() while reducing collider count and eliminating internal\ncell seams.\n",
              "file": "pkg/world3d/gridmap_collider.go",
              "line": 83
            },
            {
              "name": "Raycast",
              "anchor": "GridMap.Raycast",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) Raycast(ray math3d.Ray, maxDist float32) (GridHit, bool)",
              "doc": "Raycast intersects ray with occupied cells up to maxDist (in world-space\nEuclidean units; ray.Dir need not be unit-length). For each cell, Raycast\ntests its transformed ColliderBoxes when present, falling back to its\ntransformed LocalBounds or CellBounds so non-colliding tiles remain pickable.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 844
            },
            {
              "name": "SetCell",
              "anchor": "GridMap.SetCell",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) SetCell(c GridCoord, tileID uint16, orient uint8)",
              "doc": "SetCell places tileID with orientation orient (0..23) at grid coordinate c.\nSetting tileID to 0 clears the cell.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 593
            },
            {
              "name": "ToDoc",
              "anchor": "GridMap.ToDoc",
              "recv": "*GridMap",
              "decl": "func (g *GridMap) ToDoc(name, meshLibrary string) (*GridMapDoc, error)",
              "doc": "ToDoc exports g as a canonical deterministic [*GridMapDoc], compressing\ncontiguous axis-aligned runs of identical tiles into [GridBoxDoc] entries and\nemitting isolated cells as [GridCellDoc] entries in (y, z, x) order.\nEvery occupied cell's TileID must resolve to a named [MeshTileDef] in g.Library.\n",
              "file": "pkg/world3d/gridmap_format.go",
              "line": 450
            }
          ]
        },
        {
          "name": "GridMapDoc",
          "anchor": "GridMapDoc",
          "decl": "type GridMapDoc struct {\n\t// Version is the schema version; must be 1.\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Name is an optional human-readable name for the grid map.\n\tName string `yaml:\"name,omitempty\"`\n\t// Origin is the world-space [x, y, z] origin of grid cell (0, 0, 0); omitted defaults to [0, 0, 0].\n\tOrigin *[3]float32 `yaml:\"origin,omitempty\"`\n\t// CellSize is the world-space [x, y, z] dimensions of one grid cell; omitted defaults to [1, 1, 1].\n\tCellSize *[3]float32 `yaml:\"cellSize,omitempty\"`\n\t// MeshLibrary is the optional asset path to the glTF 2.0 (.gltf) mesh library supplying named tiles.\n\tMeshLibrary string `yaml:\"meshLibrary,omitempty\"`\n\t// Boxes lists non-overlapping filled axis-aligned coordinate box runs placed before individual cells, written in canonical (y, z, x) order.\n\tBoxes []GridBoxDoc `yaml:\"boxes,omitempty\"`\n\t// Cells lists individual occupied cells placed in canonical (y, z, x) coordinate order.\n\tCells []GridCellDoc `yaml:\"cells,omitempty\"`\n}",
          "doc": "GridMapDoc is the root of a versioned YAML modular 3D grid map document\nreferencing a mesh library and placing tiles on an integer 3D lattice.\n",
          "file": "pkg/world3d/gridmap_format.go",
          "line": 31,
          "members": [
            {
              "name": "Version",
              "anchor": "GridMapDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; must be 1."
            },
            {
              "name": "Name",
              "anchor": "GridMapDoc.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name for the grid map."
            },
            {
              "name": "Origin",
              "anchor": "GridMapDoc.Origin",
              "kind": "field",
              "doc": "Origin is the world-space [x, y, z] origin of grid cell (0, 0, 0); omitted defaults to [0, 0, 0]."
            },
            {
              "name": "CellSize",
              "anchor": "GridMapDoc.CellSize",
              "kind": "field",
              "doc": "CellSize is the world-space [x, y, z] dimensions of one grid cell; omitted defaults to [1, 1, 1]."
            },
            {
              "name": "MeshLibrary",
              "anchor": "GridMapDoc.MeshLibrary",
              "kind": "field",
              "doc": "MeshLibrary is the optional asset path to the glTF 2.0 (.gltf) mesh library supplying named tiles."
            },
            {
              "name": "Boxes",
              "anchor": "GridMapDoc.Boxes",
              "kind": "field",
              "doc": "Boxes lists non-overlapping filled axis-aligned coordinate box runs placed before individual cells, written in canonical (y, z, x) order."
            },
            {
              "name": "Cells",
              "anchor": "GridMapDoc.Cells",
              "kind": "field",
              "doc": "Cells lists individual occupied cells placed in canonical (y, z, x) coordinate order."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseGridMap",
              "anchor": "ParseGridMap",
              "decl": "func ParseGridMap(data []byte) (*GridMapDoc, error)",
              "doc": "ParseGridMap decodes and validates a YAML grid map document. Unknown fields\nand trailing YAML documents are rejected. Returned errors are [*loaderr.Error]\nvalues carrying line, column, field path, and a fix hint.\n",
              "file": "pkg/world3d/gridmap_format.go",
              "line": 89
            },
            {
              "name": "ParseGridMapWith",
              "anchor": "ParseGridMapWith",
              "decl": "func ParseGridMapWith(data []byte, file string) (*GridMapDoc, error)",
              "doc": "ParseGridMapWith is [ParseGridMap] with an optional source file name attached to errors.\n",
              "file": "pkg/world3d/gridmap_format.go",
              "line": 94
            }
          ],
          "methods": [
            {
              "name": "Build",
              "anchor": "GridMapDoc.Build",
              "recv": "*GridMapDoc",
              "decl": "func (d *GridMapDoc) Build(lib *MeshLibrary) (*GridMap, error)",
              "doc": "Build validates d and constructs a [*GridMap] populated with d's boxes and\ncells, resolving tile names against lib.\n",
              "file": "pkg/world3d/gridmap_format.go",
              "line": 350
            },
            {
              "name": "EffectiveCellSize",
              "anchor": "GridMapDoc.EffectiveCellSize",
              "recv": "*GridMapDoc",
              "decl": "func (d *GridMapDoc) EffectiveCellSize() math3d.Vec3",
              "doc": "EffectiveCellSize returns d.CellSize as a [math3d.Vec3], defaulting to (1, 1, 1) when omitted.\n",
              "file": "pkg/world3d/gridmap_format.go",
              "line": 79
            },
            {
              "name": "EffectiveOrigin",
              "anchor": "GridMapDoc.EffectiveOrigin",
              "recv": "*GridMapDoc",
              "decl": "func (d *GridMapDoc) EffectiveOrigin() math3d.Vec3",
              "doc": "EffectiveOrigin returns d.Origin as a [math3d.Vec3], defaulting to the zero vector when omitted.\n",
              "file": "pkg/world3d/gridmap_format.go",
              "line": 71
            },
            {
              "name": "Load",
              "anchor": "GridMapDoc.Load",
              "recv": "*GridMapDoc",
              "decl": "func (d *GridMapDoc) Load(fsys fs.FS) (*GridMap, error)",
              "doc": "Load loads d.MeshLibrary from fsys (when set, as glTF 2.0) and builds a\nruntime [*GridMap].\n",
              "file": "pkg/world3d/gridmap_format.go",
              "line": 396
            }
          ]
        },
        {
          "name": "Heightmap",
          "anchor": "Heightmap",
          "decl": "type Heightmap struct {\n\tCols        int\n\tRows        int\n\tCellSize    float32\n\tHeightScale float32\n\tOrigin      math3d.Vec3\n\tHeights     []float32\n\t// Splat optionally attaches splat-map material layers for gameplay queries via [Heightmap.LayerAt].\n\tSplat *TerrainSplatMap\n\t// FoliageDensity optionally attaches per-layer foliage scatter density maps keyed by foliage layer name, queried via [Heightmap.FoliageDensityAt].\n\tFoliageDensity map[string]*DensityMap\n}",
          "doc": "Heightmap represents a regular grid terrain surface in the XZ plane with +Y\nelevation. Sample (col, row) lives at world position:\n\n\t(Origin.X + col*CellSize, Origin.Y + Heights[row*Cols+col]*HeightScale, Origin.Z + row*CellSize)\n\nEvery quad cell (col, row) is triangulated consistently across HeightAt,\nNormalAt, Raycast, and BuildMesh along the diagonal from (col+1, row) to\n(col, row+1):\n  - Triangle 0 (fx+fz <= 1): (v00, v01, v10)\n  - Triangle 1 (fx+fz >  1): (v10, v01, v11)\n",
          "file": "pkg/world3d/terrain.go",
          "line": 26,
          "members": [
            {
              "name": "Cols",
              "anchor": "Heightmap.Cols",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "Heightmap.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CellSize",
              "anchor": "Heightmap.CellSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "HeightScale",
              "anchor": "Heightmap.HeightScale",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Origin",
              "anchor": "Heightmap.Origin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Heights",
              "anchor": "Heightmap.Heights",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Splat",
              "anchor": "Heightmap.Splat",
              "kind": "field",
              "doc": "Splat optionally attaches splat-map material layers for gameplay queries via [Heightmap.LayerAt]."
            },
            {
              "name": "FoliageDensity",
              "anchor": "Heightmap.FoliageDensity",
              "kind": "field",
              "doc": "FoliageDensity optionally attaches per-layer foliage scatter density maps keyed by foliage layer name, queried via [Heightmap.FoliageDensityAt]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DecodeHeightmapPNG",
              "anchor": "DecodeHeightmapPNG",
              "decl": "func DecodeHeightmapPNG(r io.Reader, cellSize, heightScale float32) (*Heightmap, error)",
              "doc": "DecodeHeightmapPNG decodes a PNG image (preserving full 16-bit precision for\n16-bit grayscale PNGs) from r and returns a [*Heightmap] with cellSize and heightScale.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 163
            },
            {
              "name": "LoadHeightmapGray",
              "anchor": "LoadHeightmapGray",
              "decl": "func LoadHeightmapGray(img image.Image, cellSize, heightScale float32) *Heightmap",
              "doc": "LoadHeightmapGray constructs a Heightmap from a grayscale (or color, converted\nto 16-bit luminance) image. Pixel intensities are normalized to [0, 1] with\nfull 16-bit precision for [*image.Gray16] inputs and scaled by heightScale\nduring height evaluation.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 76
            },
            {
              "name": "NewHeightmap",
              "anchor": "NewHeightmap",
              "decl": "func NewHeightmap(cols, rows int, cellSize, heightScale float32) *Heightmap",
              "doc": "NewHeightmap allocates a flat (zero-elevation) Heightmap of cols x rows\nsamples with the given cellSize and heightScale.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 59
            }
          ],
          "methods": [
            {
              "name": "Bounds",
              "anchor": "Heightmap.Bounds",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) Bounds() math3d.AABB",
              "doc": "Bounds returns the world-space axis-aligned bounding box enclosing the terrain.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 224
            },
            {
              "name": "BuildMesh",
              "anchor": "Heightmap.BuildMesh",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) BuildMesh(chunkCol, chunkRow, chunkCols, chunkRows int) TerrainMesh",
              "doc": "BuildMesh generates an indexed triangle mesh for the rectangular chunk of\ngrid cells starting at (chunkCol, chunkRow) and spanning (chunkCols, chunkRows)\ncells. If chunkCols or chunkRows is <= 0, the chunk extends to the remaining\nedge of the heightmap.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 491
            },
            {
              "name": "BuildMeshLOD",
              "anchor": "Heightmap.BuildMeshLOD",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) BuildMeshLOD(chunkCol, chunkRow, chunkCols, chunkRows int, lod int, neighbors TerrainEdgeLODs) TerrainMesh",
              "doc": "BuildMeshLOD generates an indexed triangle mesh for the rectangular chunk of\ngrid cells starting at (chunkCol, chunkRow) and spanning (chunkCols, chunkRows)\ncells at the given LOD level (vertex stride 1 << lod).\n\nWhenever a neighbor in neighbors has a strictly coarser LOD (> lod), the\nshared border strip is re-triangulated to connect directly to that neighbor's\ncoarser edge vertices, eliminating both height cracks and T-junctions across\nany pair of adjacent LOD levels (including partial border chunks). All\ntriangles use counter-clockwise upward (+Y) winding and every emitted vertex\nis referenced by at least one triangle.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 131
            },
            {
              "name": "ChunkBounds",
              "anchor": "Heightmap.ChunkBounds",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) ChunkBounds(chunkCol, chunkRow, chunkCols, chunkRows int) math3d.AABB",
              "doc": "ChunkBounds returns the world-space axis-aligned bounding box enclosing the\nrectangular chunk of grid cells starting at (chunkCol, chunkRow) and spanning\n(chunkCols, chunkRows) cells. If chunkCols or chunkRows is <= 0, the chunk\nextends to the remaining edge of the heightmap.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 50
            },
            {
              "name": "Collider",
              "anchor": "Heightmap.Collider",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) Collider() *physics3d.HeightfieldCollider",
              "doc": "Collider constructs a static physics3d.HeightfieldCollider matching h's grid\ndimensions, cell size, origin, and scaled vertex heights.\n",
              "file": "pkg/world3d/gridmap_collider.go",
              "line": 176
            },
            {
              "name": "EncodePNG",
              "anchor": "Heightmap.EncodePNG",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) EncodePNG(w io.Writer) error",
              "doc": "EncodePNG encodes h as a 16-bit grayscale PNG image into w.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 141
            },
            {
              "name": "FoliageDensityAt",
              "anchor": "Heightmap.FoliageDensityAt",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) FoliageDensityAt(layer string, x, z float32) (float32, bool)",
              "doc": "FoliageDensityAt samples the attached foliage density map for layer at world\ncoordinates (x, z). The boolean reports whether (x, z) lies inside the\nheightmap's XZ footprint. Returns (0, false) when h is invalid or has no\ndensity map for layer.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 182
            },
            {
              "name": "HeightAt",
              "anchor": "Heightmap.HeightAt",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) HeightAt(x, z float32) (float32, bool)",
              "doc": "HeightAt returns the exact barycentric triangle-interpolated world Y height\nat world coordinates (x, z), or (0, false) if (x, z) lies outside the terrain.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 256
            },
            {
              "name": "LayerAt",
              "anchor": "Heightmap.LayerAt",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) LayerAt(x, z float32) (TerrainLayerSample, bool)",
              "doc": "LayerAt samples the terrain material layers attached to h.Splat at world\ncoordinates (x, z). The boolean reports whether (x, z) lies inside the\nheightmap's XZ footprint; when (x, z) is outside the footprint but h and\nh.Splat are valid, LayerAt still clamps to the nearest terrain edge and\nreturns the clamped edge sample alongside ok == false.\n\nReturns (zero, false) when h is invalid or h.Splat is nil/empty.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 760
            },
            {
              "name": "NormalAt",
              "anchor": "Heightmap.NormalAt",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) NormalAt(x, z float32) math3d.Vec3",
              "doc": "NormalAt returns the unit upward (+Y) surface normal of the terrain triangle\ncontaining (x, z). If (x, z) lies outside the terrain, Vec3Up is returned.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 277
            },
            {
              "name": "Raycast",
              "anchor": "Heightmap.Raycast",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) Raycast(ray math3d.Ray, maxDist float32) (TerrainHit, bool)",
              "doc": "Raycast intersects ray with the heightmap using 2D grid DDA traversal paired\nwith exact Möller-Trumbore triangle intersection. It visits only the cells under the ray, O(Cols+Rows) at most, and never scans the whole height grid. Distance and maxDist are\nmeasured in world-space Euclidean units (ray.Dir need not be unit-length).\n",
              "file": "pkg/world3d/terrain.go",
              "line": 341
            },
            {
              "name": "SampleHeight",
              "anchor": "Heightmap.SampleHeight",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) SampleHeight(col, row int) float32",
              "doc": "SampleHeight returns the world-space Y height at grid sample (col, row),\nclamping col and row to valid sample indices.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 206
            },
            {
              "name": "ToGray16",
              "anchor": "Heightmap.ToGray16",
              "recv": "*Heightmap",
              "decl": "func (h *Heightmap) ToGray16() *image.Gray16",
              "doc": "ToGray16 converts h's normalized [0, 1] heights into a 16-bit grayscale image\nsuitable for lossless 16-bit PNG encoding without 8-bit banding. Values outside\n[0, 1] are clamped. Returns nil if h has non-positive dimensions or insufficient samples.\n",
              "file": "pkg/world3d/terrain.go",
              "line": 116
            }
          ]
        },
        {
          "name": "MeshLibrary",
          "anchor": "MeshLibrary",
          "decl": "type MeshLibrary struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "MeshLibrary is a registry of MeshTileDef entries indexed by ID and Name.\nTile ID 0 is reserved to denote an empty grid cell.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 205,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadMeshLibraryFromGLTF",
              "anchor": "LoadMeshLibraryFromGLTF",
              "decl": "func LoadMeshLibraryFromGLTF(gltfJSON []byte) (*MeshLibrary, error)",
              "doc": "LoadMeshLibraryFromGLTF parses a glTF 2.0 JSON (.gltf) or binary (.glb)\ndocument's nodes, meshes, and POSITION accessor min/max bounds to build a\nMeshLibrary without external dependencies. Each node referencing a mesh\nbecomes a MeshTileDef whose MeshID is the glTF mesh index, MaterialID is the\nfirst primitive's material index (or 0 if omitted), LocalBounds is the union\nof all primitive POSITION accessor bounds, and ColliderBoxes defaults to\nLocalBounds when present.\n\nIts errors are *loaderr.Error values that give the line and field of the problem and how to fix it; a caller that read the document from a file names it with loaderr.WithFile.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 366
            },
            {
              "name": "NewMeshLibrary",
              "anchor": "NewMeshLibrary",
              "decl": "func NewMeshLibrary() *MeshLibrary",
              "doc": "NewMeshLibrary returns an empty MeshLibrary ready to register tile definitions.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 213
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "MeshLibrary.Add",
              "recv": "*MeshLibrary",
              "decl": "func (l *MeshLibrary) Add(def MeshTileDef) uint16",
              "doc": "Add registers def in the library and returns its assigned non-zero tile ID.\nIf def.ID is 0, the next available ID starting from 1 is assigned. If def.ID\nalready exists in the library, its definition is replaced. When all 65535 IDs are taken, Add registers nothing and returns 0 (#546).\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 224
            },
            {
              "name": "ByName",
              "anchor": "MeshLibrary.ByName",
              "recv": "*MeshLibrary",
              "decl": "func (l *MeshLibrary) ByName(name string) (MeshTileDef, bool)",
              "doc": "ByName looks up a tile definition by Name.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 280
            },
            {
              "name": "Get",
              "anchor": "MeshLibrary.Get",
              "recv": "*MeshLibrary",
              "decl": "func (l *MeshLibrary) Get(id uint16) (MeshTileDef, bool)",
              "doc": "Get looks up a tile definition by ID.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 271
            },
            {
              "name": "Items",
              "anchor": "MeshLibrary.Items",
              "recv": "*MeshLibrary",
              "decl": "func (l *MeshLibrary) Items() []MeshTileDef",
              "doc": "Items returns all tile definitions registered in the library sorted by\nascending ID. Each returned entry owns a copy of its ColliderBoxes.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 302
            },
            {
              "name": "Len",
              "anchor": "MeshLibrary.Len",
              "recv": "*MeshLibrary",
              "decl": "func (l *MeshLibrary) Len() int",
              "doc": "Len returns the number of tile definitions registered in the library.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 293
            },
            {
              "name": "Revision",
              "anchor": "MeshLibrary.Revision",
              "recv": "*MeshLibrary",
              "decl": "func (l *MeshLibrary) Revision() uint64",
              "doc": "Revision returns a counter that changes whenever Add replaces or registers a\ndefinition, so caches derived from the library can invalidate.\n",
              "file": "pkg/world3d/gridmap.go",
              "line": 321
            }
          ]
        },
        {
          "name": "MeshTileDef",
          "anchor": "MeshTileDef",
          "decl": "type MeshTileDef struct {\n\tID            uint16\n\tName          string\n\tMeshID        uint32\n\tMaterialID    uint32\n\tLocalBounds   math3d.AABB\n\tColliderBoxes []math3d.AABB\n}",
          "doc": "MeshTileDef describes a modular 3D tile stored in a MeshLibrary.\n",
          "file": "pkg/world3d/gridmap.go",
          "line": 194,
          "members": [
            {
              "name": "ID",
              "anchor": "MeshTileDef.ID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Name",
              "anchor": "MeshTileDef.Name",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MeshID",
              "anchor": "MeshTileDef.MeshID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MaterialID",
              "anchor": "MeshTileDef.MaterialID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LocalBounds",
              "anchor": "MeshTileDef.LocalBounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ColliderBoxes",
              "anchor": "MeshTileDef.ColliderBoxes",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavAgent",
          "anchor": "NavAgent",
          "decl": "type NavAgent struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavAgent navigates a 3D world3d.NavMesh by maintaining an active polygon corridor,\nsteering smoothly along XZ toward the next funnel corner while tracking exact 3D surface\nheight across sloped ramps and multi-level bridges, repairing its corridor locally when pushed\nor when the target shifts, and invoking callbacks for off-mesh or flagged links.\n\nNavAgent is deterministic on fixed game.Loop steps and is not safe for concurrent use.\n",
          "file": "pkg/world3d/navagent.go",
          "line": 131,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNavAgent",
              "anchor": "NewNavAgent",
              "decl": "func NewNavAgent(mesh *NavMesh, pos math3d.Vec3, cfg NavAgentConfig) *NavAgent",
              "doc": "NewNavAgent constructs a 3D navigation agent placed at pos on mesh.\nIf pos lies over a walkable polygon within VerticalTolerance, its Y coordinate is snapped to the surface.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 160
            }
          ],
          "methods": [
            {
              "name": "ClearTarget",
              "anchor": "NavAgent.ClearTarget",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) ClearTarget()",
              "doc": "ClearTarget clears the agent's goal, resets its corridor, stops velocity, and sets state to NavAgentIdle.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 278
            },
            {
              "name": "Config",
              "anchor": "NavAgent.Config",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Config() NavAgentConfig",
              "doc": "Config returns the sanitized configuration of the agent.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 181
            },
            {
              "name": "Corridor",
              "anchor": "NavAgent.Corridor",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Corridor() []int",
              "doc": "Corridor returns a copy of the agent's active polygon index corridor.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 216
            },
            {
              "name": "ForceReplan",
              "anchor": "NavAgent.ForceReplan",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) ForceReplan() bool",
              "doc": "ForceReplan immediately executes a full A* replan from the agent's current position to its target,\nignoring ReplanInterval and group throttling, and reports whether a valid corridor was found.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 366
            },
            {
              "name": "HasTarget",
              "anchor": "NavAgent.HasTarget",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) HasTarget() bool",
              "doc": "HasTarget reports whether the agent currently has a target.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 196
            },
            {
              "name": "LocalRepairCount",
              "anchor": "NavAgent.LocalRepairCount",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) LocalRepairCount() int",
              "doc": "LocalRepairCount returns the number of cheap local corridor repairs performed without a full A* replan.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 202
            },
            {
              "name": "NeedsReplan",
              "anchor": "NavAgent.NeedsReplan",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) NeedsReplan() bool",
              "doc": "NeedsReplan reports whether the agent is waiting for a full A* replan.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 205
            },
            {
              "name": "NextCorner",
              "anchor": "NavAgent.NextCorner",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) NextCorner() (math3d.Vec3, bool)",
              "doc": "NextCorner returns the next 3D funnel steering corner along the agent's remaining corridor.\nReturns (zero, false) when the agent has no valid corridor.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 375
            },
            {
              "name": "Path",
              "anchor": "NavAgent.Path",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Path() []math3d.Vec3",
              "doc": "Path returns the full 3D smoothed waypoint path (including slope/ramp transitions) from the\nagent's current position to its target along its active corridor, or nil when no valid corridor exists.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 388
            },
            {
              "name": "Pos",
              "anchor": "NavAgent.Pos",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Pos() math3d.Vec3",
              "doc": "Pos returns the agent's current 3D position.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 184
            },
            {
              "name": "ReplanCount",
              "anchor": "NavAgent.ReplanCount",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) ReplanCount() int",
              "doc": "ReplanCount returns the total number of full A* replans performed by this agent.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 199
            },
            {
              "name": "SetMesh",
              "anchor": "NavAgent.SetMesh",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) SetMesh(mesh *NavMesh)",
              "doc": "SetMesh attaches a new 3D NavMesh to the agent, invalidating any existing corridor so the agent replans.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 255
            },
            {
              "name": "SetPosition",
              "anchor": "NavAgent.SetPosition",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) SetPosition(pos math3d.Vec3)",
              "doc": "SetPosition updates the agent's 3D position (for example after physics knockback or external push).\nWhen the agent has an active corridor and is not mid-link, it attempts cheap local corridor\nrepair immediately without running a full A* replan.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 236
            },
            {
              "name": "SetTarget",
              "anchor": "NavAgent.SetTarget",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) SetTarget(target math3d.Vec3)",
              "doc": "SetTarget sets or updates the agent's 3D destination.\n\nWhen the agent already holds a valid corridor, SetTarget tries cheap local end-of-corridor\nrepair (same polygon, corridor truncation, or bounded bridge extension) before scheduling a\nfull A* replan. Agents managed by a NavAgentGroup defer full replans to NavAgentGroup.Step so\nMaxReplansPerStep is strictly respected.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 311
            },
            {
              "name": "SetVelocity",
              "anchor": "NavAgent.SetVelocity",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) SetVelocity(v math3d.Vec3)",
              "doc": "SetVelocity overrides the agent's current velocity. Non-finite values are ignored.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 226
            },
            {
              "name": "State",
              "anchor": "NavAgent.State",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) State() NavAgentState",
              "doc": "State returns the agent's current navigation state.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 190
            },
            {
              "name": "Step",
              "anchor": "NavAgent.Step",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Step(dt time.Duration)",
              "doc": "Step advances the 3D agent by fixed duration dt: ticks replan cooldown, detects mesh changes,\nrepairs the corridor locally or replans if needed, steers toward the next funnel corner while\ntracking surface elevation, traverses off-mesh/flagged links, and settles cleanly on arrival.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 405
            },
            {
              "name": "Target",
              "anchor": "NavAgent.Target",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Target() math3d.Vec3",
              "doc": "Target returns the agent's current target position (zero when idle).\n",
              "file": "pkg/world3d/navagent.go",
              "line": 193
            },
            {
              "name": "TraversingLink",
              "anchor": "NavAgent.TraversingLink",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) TraversingLink() (NavLinkEvent, bool)",
              "doc": "TraversingLink returns the active link event while the agent is traversing an off-mesh or flagged link.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 208
            },
            {
              "name": "Vel",
              "anchor": "NavAgent.Vel",
              "recv": "*NavAgent",
              "decl": "func (a *NavAgent) Vel() math3d.Vec3",
              "doc": "Vel returns the agent's current 3D velocity.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 187
            }
          ]
        },
        {
          "name": "NavAgentConfig",
          "anchor": "NavAgentConfig",
          "decl": "type NavAgentConfig struct {\n\t// MaxSpeed is the maximum horizontal movement speed in world units per second. Defaults to 5 when <= 0.\n\tMaxSpeed float32\n\t// MaxAcceleration caps how fast horizontal velocity changes in world units per second squared.\n\t// Defaults to 4 * MaxSpeed when <= 0.\n\tMaxAcceleration float32\n\t// Radius is the agent's body radius in world units. Defaults to 0.4 when <= 0.\n\tRadius float32\n\t// StoppingDistance is the 3D distance from the goal within which the agent counts as arrived.\n\t// Defaults to max(Radius, 0.25) when <= 0.\n\tStoppingDistance float32\n\t// ArrivalRadius is the distance from the goal inside which the agent slows down smoothly.\n\t// Defaults to max(StoppingDistance*3, MaxSpeed*MaxSpeed/(2*MaxAcceleration)*2) when <= 0.\n\tArrivalRadius float32\n\t// ReplanInterval is the minimum simulation duration between automatic full A* replans.\n\t// Zero allows immediate replanning whenever the corridor becomes invalid.\n\tReplanInterval time.Duration\n\t// MaxRepairDepth is the maximum number of adjacent bridge polygons searched locally when\n\t// repairing a displaced corridor start or moved target before falling back to a full A* replan.\n\t// Defaults to 2 when <= 0.\n\tMaxRepairDepth int\n\t// Filter optionally restricts which 3D polygons this agent may traverse and sets per-area costs.\n\t// When nil, DefaultNavFilter() is used (all walkable non-disabled polygons at unit cost).\n\tFilter *NavFilter\n\t// OnLink is an optional callback invoked on each step while traversing an off-mesh link or\n\t// crossing a flagged shared-edge portal. Return true when the transition is complete; return\n\t// false to keep control of the agent on subsequent steps. When nil, off-mesh links traverse\n\t// linearly in 3D at MaxSpeed and flagged shared-edge portals are crossed automatically.\n\tOnLink func(agent *NavAgent, link NavLinkEvent, dt time.Duration) bool\n}",
          "doc": "NavAgentConfig configures steering, arrival, corridor repair, replan throttling, and off-mesh link traversal for a 3D NavAgent.\n",
          "file": "pkg/world3d/navagent.go",
          "line": 56,
          "members": [
            {
              "name": "MaxSpeed",
              "anchor": "NavAgentConfig.MaxSpeed",
              "kind": "field",
              "doc": "MaxSpeed is the maximum horizontal movement speed in world units per second. Defaults to 5 when <= 0."
            },
            {
              "name": "MaxAcceleration",
              "anchor": "NavAgentConfig.MaxAcceleration",
              "kind": "field",
              "doc": "MaxAcceleration caps how fast horizontal velocity changes in world units per second squared.\nDefaults to 4 * MaxSpeed when <= 0."
            },
            {
              "name": "Radius",
              "anchor": "NavAgentConfig.Radius",
              "kind": "field",
              "doc": "Radius is the agent's body radius in world units. Defaults to 0.4 when <= 0."
            },
            {
              "name": "StoppingDistance",
              "anchor": "NavAgentConfig.StoppingDistance",
              "kind": "field",
              "doc": "StoppingDistance is the 3D distance from the goal within which the agent counts as arrived.\nDefaults to max(Radius, 0.25) when <= 0."
            },
            {
              "name": "ArrivalRadius",
              "anchor": "NavAgentConfig.ArrivalRadius",
              "kind": "field",
              "doc": "ArrivalRadius is the distance from the goal inside which the agent slows down smoothly.\nDefaults to max(StoppingDistance*3, MaxSpeed*MaxSpeed/(2*MaxAcceleration)*2) when <= 0."
            },
            {
              "name": "ReplanInterval",
              "anchor": "NavAgentConfig.ReplanInterval",
              "kind": "field",
              "doc": "ReplanInterval is the minimum simulation duration between automatic full A* replans.\nZero allows immediate replanning whenever the corridor becomes invalid."
            },
            {
              "name": "MaxRepairDepth",
              "anchor": "NavAgentConfig.MaxRepairDepth",
              "kind": "field",
              "doc": "MaxRepairDepth is the maximum number of adjacent bridge polygons searched locally when\nrepairing a displaced corridor start or moved target before falling back to a full A* replan.\nDefaults to 2 when <= 0."
            },
            {
              "name": "Filter",
              "anchor": "NavAgentConfig.Filter",
              "kind": "field",
              "doc": "Filter optionally restricts which 3D polygons this agent may traverse and sets per-area costs.\nWhen nil, DefaultNavFilter() is used (all walkable non-disabled polygons at unit cost)."
            },
            {
              "name": "OnLink",
              "anchor": "NavAgentConfig.OnLink",
              "kind": "field",
              "doc": "OnLink is an optional callback invoked on each step while traversing an off-mesh link or\ncrossing a flagged shared-edge portal. Return true when the transition is complete; return\nfalse to keep control of the agent on subsequent steps. When nil, off-mesh links traverse\nlinearly in 3D at MaxSpeed and flagged shared-edge portals are crossed automatically."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavAgentGroup",
          "anchor": "NavAgentGroup",
          "decl": "type NavAgentGroup struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavAgentGroup coordinates multiple 3D NavAgents with throttled, round-robin budgeted, and\noptionally staggered replanning so large groups chasing moving targets never spike a single frame.\n",
          "file": "pkg/world3d/navagent.go",
          "line": 1098,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNavAgentGroup",
              "anchor": "NewNavAgentGroup",
              "decl": "func NewNavAgentGroup(cfg NavAgentGroupConfig) *NavAgentGroup",
              "doc": "NewNavAgentGroup constructs a 3D NavAgentGroup with the given replan budget and staggering settings.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1109
            }
          ],
          "methods": [
            {
              "name": "Add",
              "anchor": "NavAgentGroup.Add",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Add(mesh *NavMesh, pos math3d.Vec3, cfg NavAgentConfig) *NavAgent",
              "doc": "Add creates a new 3D NavAgent, registers it in the group, and returns it.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1123
            },
            {
              "name": "AddAgent",
              "anchor": "NavAgentGroup.AddAgent",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) AddAgent(a *NavAgent)",
              "doc": "AddAgent attaches an existing 3D NavAgent to the group.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1130
            },
            {
              "name": "Agents",
              "anchor": "NavAgentGroup.Agents",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Agents() []*NavAgent",
              "doc": "Agents returns the group's agents in deterministic registration order.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1163
            },
            {
              "name": "LastStepReplans",
              "anchor": "NavAgentGroup.LastStepReplans",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) LastStepReplans() int",
              "doc": "LastStepReplans returns how many full A* replans executed during the most recent Step.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1172
            },
            {
              "name": "Len",
              "anchor": "NavAgentGroup.Len",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Len() int",
              "doc": "Len returns the number of agents in the group.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1166
            },
            {
              "name": "Remove",
              "anchor": "NavAgentGroup.Remove",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Remove(a *NavAgent) bool",
              "doc": "Remove detaches a from the group while preserving deterministic ordering of remaining agents.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1144
            },
            {
              "name": "Step",
              "anchor": "NavAgentGroup.Step",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Step(dt time.Duration)",
              "doc": "Step advances every 3D agent in the group by dt while strictly bounding full A* replans to\nMaxReplansPerStep in deterministic round-robin order.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1179
            },
            {
              "name": "Steps",
              "anchor": "NavAgentGroup.Steps",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) Steps() uint64",
              "doc": "Steps returns the number of times Step has advanced this group.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1169
            },
            {
              "name": "TotalReplans",
              "anchor": "NavAgentGroup.TotalReplans",
              "recv": "*NavAgentGroup",
              "decl": "func (g *NavAgentGroup) TotalReplans() int",
              "doc": "TotalReplans returns the cumulative number of full A* replans executed by Step across all agents.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 1175
            }
          ]
        },
        {
          "name": "NavAgentGroupConfig",
          "anchor": "NavAgentGroupConfig",
          "decl": "type NavAgentGroupConfig struct {\n\t// MaxReplansPerStep caps how many agents perform a full A* replan in a single Step.\n\t// Defaults to 4 when <= 0.\n\tMaxReplansPerStep int\n\t// ReplanInterval sets the minimum duration between full replans for agents whose own\n\t// NavAgentConfig.ReplanInterval is 0.\n\tReplanInterval time.Duration\n\t// StaggerStride spreads full replan eligibility across steps using agentID%stride == step%stride.\n\t// Defaults to 1 (every agent is eligible in round-robin order up to MaxReplansPerStep).\n\tStaggerStride int\n}",
          "doc": "NavAgentGroupConfig configures budgeted and staggered replanning across a group of 3D NavAgents.\n",
          "file": "pkg/world3d/navagent.go",
          "line": 1084,
          "members": [
            {
              "name": "MaxReplansPerStep",
              "anchor": "NavAgentGroupConfig.MaxReplansPerStep",
              "kind": "field",
              "doc": "MaxReplansPerStep caps how many agents perform a full A* replan in a single Step.\nDefaults to 4 when <= 0."
            },
            {
              "name": "ReplanInterval",
              "anchor": "NavAgentGroupConfig.ReplanInterval",
              "kind": "field",
              "doc": "ReplanInterval sets the minimum duration between full replans for agents whose own\nNavAgentConfig.ReplanInterval is 0."
            },
            {
              "name": "StaggerStride",
              "anchor": "NavAgentGroupConfig.StaggerStride",
              "kind": "field",
              "doc": "StaggerStride spreads full replan eligibility across steps using agentID%stride == step%stride.\nDefaults to 1 (every agent is eligible in round-robin order up to MaxReplansPerStep)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavAgentState",
          "anchor": "NavAgentState",
          "decl": "type NavAgentState uint8",
          "doc": "NavAgentState reports the navigation status of a 3D NavAgent.\n",
          "file": "pkg/world3d/navagent.go",
          "line": 12,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NavAgentIdle",
                  "anchor": "NavAgentIdle"
                },
                {
                  "name": "NavAgentMoving",
                  "anchor": "NavAgentMoving"
                },
                {
                  "name": "NavAgentArrived",
                  "anchor": "NavAgentArrived"
                },
                {
                  "name": "NavAgentUnreachable",
                  "anchor": "NavAgentUnreachable"
                }
              ],
              "decl": "const (\n\t// NavAgentIdle indicates the agent has no active navigation target.\n\tNavAgentIdle NavAgentState = iota\n\t// NavAgentMoving indicates the agent is actively following its 3D polygon corridor toward its target.\n\tNavAgentMoving\n\t// NavAgentArrived indicates the agent reached its target within StoppingDistance.\n\tNavAgentArrived\n\t// NavAgentUnreachable indicates no valid corridor connects the agent to its target.\n\tNavAgentUnreachable\n)",
              "doc": "",
              "file": "pkg/world3d/navagent.go",
              "line": 14
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "NavAgentState.String",
              "recv": "NavAgentState",
              "decl": "func (s NavAgentState) String() string",
              "doc": "String returns a human-readable state name.\n",
              "file": "pkg/world3d/navagent.go",
              "line": 26
            }
          ]
        },
        {
          "name": "NavArea",
          "anchor": "NavArea",
          "decl": "type NavArea = ai.NavArea",
          "doc": "NavArea identifies the surface or terrain category of a 3D navigation polygon.\nIt aliases ai.NavArea so the same area IDs and NavFilters work seamlessly across 2D and 3D meshes.\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 13,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavFilter",
          "anchor": "NavFilter",
          "decl": "type NavFilter = ai.NavFilter",
          "doc": "NavFilter controls which 3D navigation polygons a query may traverse and how\neach polygon's area scales traversal cost.\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 21,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultNavFilter",
              "anchor": "DefaultNavFilter",
              "decl": "func DefaultNavFilter() NavFilter",
              "doc": "DefaultNavFilter returns the default query filter matching BuildNavMesh defaults:\nevery non-zero, non-disabled polygon is traversable at unit cost (1.0).\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 49
            }
          ],
          "methods": []
        },
        {
          "name": "NavFlags",
          "anchor": "NavFlags",
          "decl": "type NavFlags = ai.NavFlags",
          "doc": "NavFlags is a bitmask of runtime traversal capabilities and states on a 3D navigation polygon.\nIt aliases ai.NavFlags so the same flags and NavFilters work seamlessly across 2D and 3D meshes.\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 17,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavLink",
          "anchor": "NavLink",
          "decl": "type NavLink struct {\n\tNeighbor int\n\tLeft     math3d.Vec3\n\tRight    math3d.Vec3\n\tFlags    uint32\n\n\tLinkID  int\n\tOffMesh bool\n\tEnd     math3d.Vec3\n\tCost    float32\n\t// contains filtered or unexported fields\n}",
          "doc": "NavLink describes a traversable 3D portal edge (or off-mesh link) from one\nNavPoly to another NavPoly. For shared-edge portals, Left and Right are\nordered as seen when looking from the source polygon outward across the\nshared edge into Neighbor. For off-mesh links (OffMesh == true), Left and\nRight hold the entry point and End holds the exit point.\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 130,
          "members": [
            {
              "name": "Neighbor",
              "anchor": "NavLink.Neighbor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Left",
              "anchor": "NavLink.Left",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Right",
              "anchor": "NavLink.Right",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "NavLink.Flags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LinkID",
              "anchor": "NavLink.LinkID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffMesh",
              "anchor": "NavLink.OffMesh",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "End",
              "anchor": "NavLink.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cost",
              "anchor": "NavLink.Cost",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavLinkEvent",
          "anchor": "NavLinkEvent",
          "decl": "type NavLinkEvent struct {\n\tFromPoly int\n\tToPoly   int\n\tStart    math3d.Vec3\n\tEnd      math3d.Vec3\n\tRadius   float32\n\tArea     NavArea\n\tFlags    uint32\n\tLinkID   int\n\tUserData any\n\tOffMesh  bool\n}",
          "doc": "NavLinkEvent describes a flagged shared-edge or off-mesh 3D link transition encountered by a NavAgent.\n",
          "file": "pkg/world3d/navagent.go",
          "line": 42,
          "members": [
            {
              "name": "FromPoly",
              "anchor": "NavLinkEvent.FromPoly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ToPoly",
              "anchor": "NavLinkEvent.ToPoly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Start",
              "anchor": "NavLinkEvent.Start",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "End",
              "anchor": "NavLinkEvent.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "NavLinkEvent.Radius",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Area",
              "anchor": "NavLinkEvent.Area",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "NavLinkEvent.Flags",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LinkID",
              "anchor": "NavLinkEvent.LinkID",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UserData",
              "anchor": "NavLinkEvent.UserData",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "OffMesh",
              "anchor": "NavLinkEvent.OffMesh",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavListenerID",
          "anchor": "NavListenerID",
          "decl": "type NavListenerID uint64",
          "doc": "NavListenerID identifies a tile-change listener registered on a 3D TiledNavMesh.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 84,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavMesh",
          "anchor": "NavMesh",
          "decl": "type NavMesh struct {\n\tPolys             []NavPoly\n\tVerticalTolerance float32\n\t// contains filtered or unexported fields\n}",
          "doc": "NavMesh is a 3D navigation mesh built from convex polygons. It supports sloped\nramps, obstacles, and vertically stacked walkable levels (bridges, overpasses,\nmulti-story floors) linked strictly along shared 3D edges.\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 204,
          "members": [
            {
              "name": "Polys",
              "anchor": "NavMesh.Polys",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VerticalTolerance",
              "anchor": "NavMesh.VerticalTolerance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildNavMesh",
              "anchor": "BuildNavMesh",
              "decl": "func BuildNavMesh(polys [][]math3d.Vec3, maxSlopeRad float32) *NavMesh",
              "doc": "BuildNavMesh constructs a NavMesh from convex 3D polygons, filtering out\ndegenerate polygons and slopes steeper than maxSlopeRad radians from\nhorizontal (upward normal angle from +Y). Adjacent walkable polygons are\nlinked automatically along shared 3D edges (including collinear T-junction\noverlaps) so vertically separated levels never falsely connect.\n\nEach polygon is assigned NavAreaDefault and NavFlagWalk. If maxSlopeRad < 0,\na default limit of 45 degrees (pi/4) is used.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 223
            },
            {
              "name": "BuildNavMeshWithAreas",
              "anchor": "BuildNavMeshWithAreas",
              "decl": "func BuildNavMeshWithAreas(polys []NavPolygonInput, maxSlopeRad float32) *NavMesh",
              "doc": "BuildNavMeshWithAreas constructs a NavMesh from convex 3D polygons carrying\nper-polygon area IDs and runtime traversal flags, filtering out degenerate\npolygons and slopes steeper than maxSlopeRad radians from horizontal.\n\nPolygons with zero Flags default to NavFlagWalk. If maxSlopeRad < 0, a\ndefault limit of 45 degrees (pi/4) is used.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 235
            }
          ],
          "methods": [
            {
              "name": "AddOffMeshLink",
              "anchor": "NavMesh.AddOffMeshLink",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) AddOffMeshLink(link NavOffMeshLink) bool",
              "doc": "AddOffMeshLink connects the polygons containing (or within link.Radius of) link.Start and link.End\nwith a directed (or bidirectional) off-mesh link and bumps the mesh revision.\nReturns false if the mesh is nil, link coordinates or Radius are invalid, either endpoint cannot\nattach to a walkable polygon, or both endpoints collapse to the same point on the same polygon.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 670
            },
            {
              "name": "AddPolygonFlags",
              "anchor": "NavMesh.AddPolygonFlags",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) AddPolygonFlags(index int, flags NavFlags)",
              "doc": "AddPolygonFlags sets the bits in flags on polygon index at runtime without rebuilding the mesh.\nOut-of-range indices are ignored.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 367
            },
            {
              "name": "BumpRevision",
              "anchor": "NavMesh.BumpRevision",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) BumpRevision()",
              "doc": "BumpRevision increments the mesh revision so NavAgents watching this mesh invalidate cached corridors and replan.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 627
            },
            {
              "name": "ClearOffMeshLinks",
              "anchor": "NavMesh.ClearOffMeshLinks",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) ClearOffMeshLinks()",
              "doc": "ClearOffMeshLinks removes all off-mesh links from nm and bumps the mesh revision when any were present.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 753
            },
            {
              "name": "ClearPolygonFlags",
              "anchor": "NavMesh.ClearPolygonFlags",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) ClearPolygonFlags(index int, flags NavFlags)",
              "doc": "ClearPolygonFlags clears the bits in flags on polygon index at runtime without rebuilding the mesh.\nOut-of-range indices are ignored.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 380
            },
            {
              "name": "Contains",
              "anchor": "NavMesh.Contains",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) Contains(p math3d.Vec3) bool",
              "doc": "Contains reports whether p lies on any polygon in the mesh within VerticalTolerance.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 509
            },
            {
              "name": "ContainsWithFilter",
              "anchor": "NavMesh.ContainsWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) ContainsWithFilter(p math3d.Vec3, filter NavFilter) bool",
              "doc": "ContainsWithFilter reports whether p lies on any polygon passing filter within VerticalTolerance.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 515
            },
            {
              "name": "FindCorridor",
              "anchor": "NavMesh.FindCorridor",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindCorridor(start, goal math3d.Vec3) ([]int, bool)",
              "doc": "FindCorridor computes the sequence of walkable polygon indices from start to goal under DefaultNavFilter.\nReturns (nil, false) if either endpoint is off the traversable NavMesh or no connected corridor exists.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 795
            },
            {
              "name": "FindCorridorInto",
              "anchor": "NavMesh.FindCorridorInto",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindCorridorInto(dst []int, start, goal math3d.Vec3) ([]int, bool)",
              "doc": "FindCorridorInto behaves like FindCorridor but writes polygon indices into dst[:0] and reuses\nthe mesh's internal search buffers with zero heap allocations after warm-up.\n\nFindCorridorInto is not safe for concurrent use on the same NavMesh; use NewNavMeshQuery per goroutine.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2335
            },
            {
              "name": "FindCorridorWithFilter",
              "anchor": "NavMesh.FindCorridorWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindCorridorWithFilter(start, goal math3d.Vec3, filter NavFilter) ([]int, bool)",
              "doc": "FindCorridorWithFilter computes the minimum-cost sequence of walkable polygon indices from start to goal under filter.\nReturns (nil, false) if either endpoint is off the traversable NavMesh or no connected corridor exists.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 801
            },
            {
              "name": "FindCorridorWithFilterInto",
              "anchor": "NavMesh.FindCorridorWithFilterInto",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindCorridorWithFilterInto(dst []int, start, goal math3d.Vec3, filter NavFilter) ([]int, bool)",
              "doc": "FindCorridorWithFilterInto behaves like FindCorridorWithFilter but writes polygon indices into dst[:0]\nand reuses the mesh's internal search buffers with zero heap allocations after warm-up.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2341
            },
            {
              "name": "FindPath",
              "anchor": "NavMesh.FindPath",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindPath(start, goal math3d.Vec3) ([]math3d.Vec3, bool)",
              "doc": "FindPath computes a shortest 3D path from start to goal across the NavMesh\nusing DefaultNavFilter, 3D portal-graph A*, and XZ-projected funnel smoothing\nwith exact 3D height interpolation across sloped ramps and multi-level bridges.\n\nReturns (nil, false) if either endpoint is off the traversable NavMesh or no\nconnected corridor exists between them.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 836
            },
            {
              "name": "FindPathInto",
              "anchor": "NavMesh.FindPathInto",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindPathInto(dst []math3d.Vec3, start, goal math3d.Vec3) ([]math3d.Vec3, bool)",
              "doc": "FindPathInto behaves like FindPath but writes waypoints into dst[:0] and reuses the mesh's internal search buffers\nso repeated calls perform zero heap allocations after warm-up.\n\nFindPathInto is not safe for concurrent use on the same NavMesh; construct separate NewNavMeshQuery instances\nwhen running concurrent path searches against a shared read-only NavMesh.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2308
            },
            {
              "name": "FindPathWithFilter",
              "anchor": "NavMesh.FindPathWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindPathWithFilter(start, goal math3d.Vec3, filter NavFilter) ([]math3d.Vec3, bool)",
              "doc": "FindPathWithFilter computes a minimum-cost 3D path from start to goal\nrestricted to polygons allowed by filter, weighting traversal through each\npolygon by filter.AreaCost(area) and using an admissible 3D distance heuristic\nscaled by the minimum allowed area cost.\n\nReturns (nil, false) if either endpoint is off the traversable NavMesh or no\nconnected corridor exists between them.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 847
            },
            {
              "name": "FindPathWithFilterAndOptions",
              "anchor": "NavMesh.FindPathWithFilterAndOptions",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindPathWithFilterAndOptions(start, goal math3d.Vec3, filter NavFilter, opts ai.PathOptions) NavPathResult",
              "doc": "FindPathWithFilterAndOptions computes a minimum-cost 3D path from start to goal\nrestricted to polygons allowed by filter under opts, supporting an expansion budget\nand optional partial paths.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 865
            },
            {
              "name": "FindPathWithFilterAndOptionsInto",
              "anchor": "NavMesh.FindPathWithFilterAndOptionsInto",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindPathWithFilterAndOptionsInto(dst []math3d.Vec3, start, goal math3d.Vec3, filter NavFilter, opts ai.PathOptions) NavPathResult",
              "doc": "FindPathWithFilterAndOptionsInto behaves like FindPathWithFilterAndOptions but writes waypoints into dst[:0]\nand reuses the mesh's internal search buffers with zero heap allocations after warm-up.\nThe returned res.Links slice reuses the mesh's internal query buffer (like dst) and is overwritten on subsequent queries.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2324
            },
            {
              "name": "FindPathWithFilterInto",
              "anchor": "NavMesh.FindPathWithFilterInto",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindPathWithFilterInto(dst []math3d.Vec3, start, goal math3d.Vec3, filter NavFilter) ([]math3d.Vec3, bool)",
              "doc": "FindPathWithFilterInto behaves like FindPathWithFilter but writes waypoints into dst[:0] and reuses\nthe mesh's internal search buffers with zero heap allocations after warm-up.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2314
            },
            {
              "name": "FindPathWithOptions",
              "anchor": "NavMesh.FindPathWithOptions",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindPathWithOptions(start, goal math3d.Vec3, opts ai.PathOptions) NavPathResult",
              "doc": "FindPathWithOptions computes a 3D path from start to goal under DefaultNavFilter and opts,\nsupporting an expansion budget and optional partial paths ending at the closest reachable\n3D point on the NavMesh when goal is off-mesh, disconnected, or beyond MaxExpansions.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 858
            },
            {
              "name": "FindPolygon",
              "anchor": "NavMesh.FindPolygon",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindPolygon(p math3d.Vec3) (int, bool)",
              "doc": "FindPolygon returns the index of the walkable polygon containing (p.X, p.Z)\nwhose 3D surface height is closest to p.Y within VerticalTolerance.\n\nStacked levels (such as a bridge above a ground floor) remain cleanly\nseparated because the polygon minimizing |p.Y - poly.HeightAt(p.X, p.Z)| is\nchosen. Returns (-1, false) if no polygon matches.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 490
            },
            {
              "name": "FindPolygonWithFilter",
              "anchor": "NavMesh.FindPolygonWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) FindPolygonWithFilter(p math3d.Vec3, filter NavFilter) (int, bool)",
              "doc": "FindPolygonWithFilter returns the index of the polygon passing filter that\ncontains (p.X, p.Z) and whose 3D surface height is closest to p.Y within\nVerticalTolerance. Returns (-1, false) if no matching polygon is found.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 497
            },
            {
              "name": "MoveAlongSurface",
              "anchor": "NavMesh.MoveAlongSurface",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) MoveAlongSurface(start, target math3d.Vec3) (NavMoveResult, bool)",
              "doc": "MoveAlongSurface slides an agent from start toward target while staying on 3D polygons allowed by DefaultNavFilter.\nVertically stacked levels stay cleanly separated because only shared 3D polygon edges are traversed.\n\nReturns (NavMoveResult{Point: start, Poly: -1}, false) if start lies outside the allowed mesh.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 908
            },
            {
              "name": "MoveAlongSurfaceWithFilter",
              "anchor": "NavMesh.MoveAlongSurfaceWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) MoveAlongSurfaceWithFilter(start, target math3d.Vec3, filter NavFilter) (NavMoveResult, bool)",
              "doc": "MoveAlongSurfaceWithFilter slides an agent from start toward target while staying on polygons allowed by filter.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 913
            },
            {
              "name": "NearestPoint",
              "anchor": "NavMesh.NearestPoint",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) NearestPoint(p, extent math3d.Vec3) (point math3d.Vec3, poly int, ok bool)",
              "doc": "NearestPoint returns the closest 3D point on any walkable polygon allowed by DefaultNavFilter\nwithin the 3D axis-aligned search half-extents [p - extent, p + extent], together with that polygon's index.\n\nBecause the search bounds are 3D, stacked floors and bridges outside [p.Y-extent.Y, p.Y+extent.Y]\nare cleanly excluded. Returns (zero, -1, false) if nm is empty, inputs are invalid/negative,\nor no allowed polygon point lies within extent.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 447
            },
            {
              "name": "NearestPointWithFilter",
              "anchor": "NavMesh.NearestPointWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) NearestPointWithFilter(p, extent math3d.Vec3, filter NavFilter) (point math3d.Vec3, poly int, ok bool)",
              "doc": "NearestPointWithFilter behaves like NearestPoint while restricting matches to polygons allowed by filter.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 452
            },
            {
              "name": "NearestPolygon",
              "anchor": "NavMesh.NearestPolygon",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) NearestPolygon(p math3d.Vec3) (index int, point math3d.Vec3, ok bool)",
              "doc": "NearestPolygon returns the polygon closest to p in 3D and the closest point on\nor inside that polygon.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 522
            },
            {
              "name": "NearestPolygonWithFilter",
              "anchor": "NavMesh.NearestPolygonWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) NearestPolygonWithFilter(p math3d.Vec3, filter NavFilter) (index int, point math3d.Vec3, ok bool)",
              "doc": "NearestPolygonWithFilter returns the polygon passing filter closest to p in 3D\nand the closest point on or inside that polygon.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 528
            },
            {
              "name": "OffMeshLinks",
              "anchor": "NavMesh.OffMeshLinks",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) OffMeshLinks() []NavOffMeshLink",
              "doc": "OffMeshLinks returns a copy of all off-mesh links registered on nm in insertion order.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 741
            },
            {
              "name": "PolygonArea",
              "anchor": "NavMesh.PolygonArea",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) PolygonArea(index int) NavArea",
              "doc": "PolygonArea returns the area ID of polygon index, or NavAreaDefault if index is out of range.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 326
            },
            {
              "name": "PolygonCount",
              "anchor": "NavMesh.PolygonCount",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) PolygonCount() int",
              "doc": "PolygonCount returns the number of walkable convex polygons in the mesh.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 318
            },
            {
              "name": "PolygonFlags",
              "anchor": "NavMesh.PolygonFlags",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) PolygonFlags(index int) NavFlags",
              "doc": "PolygonFlags returns the runtime traversal flags of polygon index, or 0 if index is out of range.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 346
            },
            {
              "name": "RandomPoint",
              "anchor": "NavMesh.RandomPoint",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) RandomPoint(rng *random.Stream) (point math3d.Vec3, poly int, ok bool)",
              "doc": "RandomPoint picks a 3D surface-area-weighted uniformly random point anywhere on walkable polygons\nallowed by DefaultNavFilter using rng. Results are bit-identical across runs and platforms for the same seed.\n\nReturns (zero, -1, false) if nm is empty, rng is nil, or no polygons are allowed.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1040
            },
            {
              "name": "RandomPointAround",
              "anchor": "NavMesh.RandomPointAround",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) RandomPointAround(center math3d.Vec3, radius float32, rng *random.Stream) (point math3d.Vec3, poly int, ok bool)",
              "doc": "RandomPointAround picks a 3D surface-area-weighted uniformly random point within 3D Euclidean distance radius\nof center (snapped onto center's walkable polygon) on polygons allowed by DefaultNavFilter that are reachable\nfrom center's polygon. Disconnected islands and unreachable stacked floors are never returned, and results are\nbit-identical across runs and platforms for the same seed.\n\nReturns (zero, -1, false) if nm is empty, rng is nil, radius < 0, or center lies outside the allowed mesh.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1327
            },
            {
              "name": "RandomPointAroundWithFilter",
              "anchor": "NavMesh.RandomPointAroundWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) RandomPointAroundWithFilter(center math3d.Vec3, radius float32, rng *random.Stream, filter NavFilter) (point math3d.Vec3, poly int, ok bool)",
              "doc": "RandomPointAroundWithFilter behaves like RandomPointAround while restricting reachability and sampling to filter.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1332
            },
            {
              "name": "RandomPointWithFilter",
              "anchor": "NavMesh.RandomPointWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) RandomPointWithFilter(rng *random.Stream, filter NavFilter) (point math3d.Vec3, poly int, ok bool)",
              "doc": "RandomPointWithFilter behaves like RandomPoint while restricting sampling to polygons allowed by filter.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1045
            },
            {
              "name": "Raycast",
              "anchor": "NavMesh.Raycast",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) Raycast(start, target math3d.Vec3) (NavRaycastHit, bool)",
              "doc": "Raycast casts a segment along the 3D mesh surface from start toward target using DefaultNavFilter,\nwalking shared 3D polygon edges across allowed polygons until reaching target or hitting a boundary edge\nor disallowed polygon. Vertically stacked levels never falsely connect because only shared 3D edges are crossed.\n\nThe second return value equals hit.Hit: false means unobstructed traversal to target (hit.T == 1, hit.Poly >= 0);\ntrue means the segment was obstructed (or start lies outside the allowed mesh, with hit.Poly == -1 and hit.T == 0).\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 487
            },
            {
              "name": "RaycastWithFilter",
              "anchor": "NavMesh.RaycastWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) RaycastWithFilter(start, target math3d.Vec3, filter NavFilter) (NavRaycastHit, bool)",
              "doc": "RaycastWithFilter behaves like Raycast while restricting traversal to polygons allowed by filter.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 492
            },
            {
              "name": "Revision",
              "anchor": "NavMesh.Revision",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) Revision() uint64",
              "doc": "Revision returns a monotonically increasing number bumped whenever the mesh topology, polygon areas/flags, or link flags change.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 619
            },
            {
              "name": "SetEdgeFlags",
              "anchor": "NavMesh.SetEdgeFlags",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) SetEdgeFlags(fromPoly, toPoly int, flags uint32) bool",
              "doc": "SetEdgeFlags sets custom flags on the shared-edge link from fromPoly to toPoly and bumps the mesh revision.\nReturns false if no shared-edge link connects fromPoly to toPoly.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 775
            },
            {
              "name": "SetPolygonArea",
              "anchor": "NavMesh.SetPolygonArea",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) SetPolygonArea(index int, area NavArea)",
              "doc": "SetPolygonArea updates the area ID of polygon index at runtime without rebuilding the mesh.\nOut-of-range indices are ignored.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 335
            },
            {
              "name": "SetPolygonFlags",
              "anchor": "NavMesh.SetPolygonFlags",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) SetPolygonFlags(index int, flags NavFlags)",
              "doc": "SetPolygonFlags replaces the runtime traversal flags of polygon index without rebuilding the mesh.\nOut-of-range indices are ignored.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 355
            },
            {
              "name": "StartSearch",
              "anchor": "NavMesh.StartSearch",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) StartSearch(start, goal math3d.Vec3, opts ai.PathOptions) *NavMeshSearch",
              "doc": "StartSearch begins an incremental 3D NavMesh search from start to goal under DefaultNavFilter and opts.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 872
            },
            {
              "name": "StartSearchWithFilter",
              "anchor": "NavMesh.StartSearchWithFilter",
              "recv": "*NavMesh",
              "decl": "func (nm *NavMesh) StartSearchWithFilter(start, goal math3d.Vec3, filter NavFilter, opts ai.PathOptions) *NavMeshSearch",
              "doc": "StartSearchWithFilter begins an incremental 3D NavMesh search from start to goal under filter and opts.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 877
            }
          ]
        },
        {
          "name": "NavMeshQuery",
          "anchor": "NavMeshQuery",
          "decl": "type NavMeshQuery struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavMeshQuery holds reusable generation-stamped scratch buffers for zero-allocation\n3D pathfinding and spatial queries over a world3d.NavMesh.\n\nCreate one NavMeshQuery per worker or system with NewNavMeshQuery(mesh) when running\nrepeated queries or querying a shared read-only NavMesh from separate goroutines.\nA NavMeshQuery is not safe for concurrent use by multiple goroutines.\n",
          "file": "pkg/world3d/navmesh_query.go",
          "line": 1512,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNavMeshQuery",
              "anchor": "NewNavMeshQuery",
              "decl": "func NewNavMeshQuery(mesh *NavMesh) *NavMeshQuery",
              "doc": "NewNavMeshQuery creates a reusable 3D query instance bound to mesh.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1556
            }
          ],
          "methods": [
            {
              "name": "FindCorridorInto",
              "anchor": "NavMeshQuery.FindCorridorInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindCorridorInto(dst []int, start, goal math3d.Vec3) ([]int, bool)",
              "doc": "FindCorridorInto finds the 3D polygon corridor from start to goal under DefaultNavFilter,\nwriting polygon indices into dst[:0] with zero heap allocations after warm-up.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2012
            },
            {
              "name": "FindCorridorWithFilterInto",
              "anchor": "NavMeshQuery.FindCorridorWithFilterInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindCorridorWithFilterInto(dst []int, start, goal math3d.Vec3, filter NavFilter) ([]int, bool)",
              "doc": "FindCorridorWithFilterInto finds the minimum-cost 3D polygon corridor from start to goal restricted to filter,\nwriting polygon indices into dst[:0] with zero heap allocations after warm-up.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2018
            },
            {
              "name": "FindPathInto",
              "anchor": "NavMeshQuery.FindPathInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindPathInto(dst []math3d.Vec3, start, goal math3d.Vec3) ([]math3d.Vec3, bool)",
              "doc": "FindPathInto finds the shortest 3D path from start to goal under DefaultNavFilter,\nwriting waypoints into dst[:0] and reusing q's internal buffers so repeated calls perform\nzero heap allocations after warm-up.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1623
            },
            {
              "name": "FindPathWithFilterAndOptionsInto",
              "anchor": "NavMeshQuery.FindPathWithFilterAndOptionsInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindPathWithFilterAndOptionsInto(dst []math3d.Vec3, start, goal math3d.Vec3, filter NavFilter, opts ai.PathOptions) NavPathResult",
              "doc": "FindPathWithFilterAndOptionsInto runs a bounded or partial 3D NavMesh search restricted to filter under opts,\nwriting the resulting waypoints into dst[:0] and reusing q's internal buffers with zero heap allocations after warm-up.\nThe returned res.Links slice reuses q's internal buffer (like dst) and is overwritten on subsequent queries on q.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1965
            },
            {
              "name": "FindPathWithFilterInto",
              "anchor": "NavMeshQuery.FindPathWithFilterInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) FindPathWithFilterInto(dst []math3d.Vec3, start, goal math3d.Vec3, filter NavFilter) ([]math3d.Vec3, bool)",
              "doc": "FindPathWithFilterInto finds the minimum-cost 3D path from start to goal restricted to filter,\nwriting waypoints into dst[:0] with zero heap allocations after warm-up.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1629
            },
            {
              "name": "Mesh",
              "anchor": "NavMeshQuery.Mesh",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) Mesh() *NavMesh",
              "doc": "Mesh returns the NavMesh currently bound to q.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1561
            },
            {
              "name": "MoveAlongSurface",
              "anchor": "NavMeshQuery.MoveAlongSurface",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) MoveAlongSurface(start, target math3d.Vec3) (NavMoveResult, bool)",
              "doc": "MoveAlongSurface delegates to q's NavMesh.MoveAlongSurface.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2269
            },
            {
              "name": "MoveAlongSurfaceInto",
              "anchor": "NavMeshQuery.MoveAlongSurfaceInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) MoveAlongSurfaceInto(visitedDst []int, start, target math3d.Vec3) (NavMoveResult, bool)",
              "doc": "MoveAlongSurfaceInto slides from start toward target under DefaultNavFilter, writing visited polygon IDs into visitedDst[:0].\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2282
            },
            {
              "name": "MoveAlongSurfaceWithFilter",
              "anchor": "NavMeshQuery.MoveAlongSurfaceWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) MoveAlongSurfaceWithFilter(start, target math3d.Vec3, filter NavFilter) (NavMoveResult, bool)",
              "doc": "MoveAlongSurfaceWithFilter delegates to q's NavMesh.MoveAlongSurfaceWithFilter.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2274
            },
            {
              "name": "MoveAlongSurfaceWithFilterInto",
              "anchor": "NavMeshQuery.MoveAlongSurfaceWithFilterInto",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) MoveAlongSurfaceWithFilterInto(visitedDst []int, start, target math3d.Vec3, filter NavFilter) (NavMoveResult, bool)",
              "doc": "MoveAlongSurfaceWithFilterInto slides from start toward target under filter, writing visited polygon IDs into visitedDst[:0].\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2287
            },
            {
              "name": "NearestPoint",
              "anchor": "NavMeshQuery.NearestPoint",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) NearestPoint(p, extent math3d.Vec3) (math3d.Vec3, int, bool)",
              "doc": "NearestPoint delegates to q's NavMesh.NearestPoint.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2208
            },
            {
              "name": "NearestPointWithFilter",
              "anchor": "NavMeshQuery.NearestPointWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) NearestPointWithFilter(p, extent math3d.Vec3, filter NavFilter) (math3d.Vec3, int, bool)",
              "doc": "NearestPointWithFilter delegates to q's NavMesh.NearestPointWithFilter.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2216
            },
            {
              "name": "RandomPoint",
              "anchor": "NavMeshQuery.RandomPoint",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RandomPoint(rng *random.Stream) (math3d.Vec3, int, bool)",
              "doc": "RandomPoint delegates to q's NavMesh.RandomPoint.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2240
            },
            {
              "name": "RandomPointAround",
              "anchor": "NavMeshQuery.RandomPointAround",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RandomPointAround(center math3d.Vec3, radius float32, rng *random.Stream) (math3d.Vec3, int, bool)",
              "doc": "RandomPointAround picks a random reachable 3D point within radius of center using q's reusable buffers.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2256
            },
            {
              "name": "RandomPointAroundWithFilter",
              "anchor": "NavMeshQuery.RandomPointAroundWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RandomPointAroundWithFilter(center math3d.Vec3, radius float32, rng *random.Stream, filter NavFilter) (math3d.Vec3, int, bool)",
              "doc": "RandomPointAroundWithFilter picks a random reachable 3D point within radius of center allowed by filter using q's reusable buffers.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2261
            },
            {
              "name": "RandomPointWithFilter",
              "anchor": "NavMeshQuery.RandomPointWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RandomPointWithFilter(rng *random.Stream, filter NavFilter) (math3d.Vec3, int, bool)",
              "doc": "RandomPointWithFilter delegates to q's NavMesh.RandomPointWithFilter.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2248
            },
            {
              "name": "Raycast",
              "anchor": "NavMeshQuery.Raycast",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) Raycast(start, target math3d.Vec3) (NavRaycastHit, bool)",
              "doc": "Raycast delegates to q's NavMesh.Raycast.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2224
            },
            {
              "name": "RaycastWithFilter",
              "anchor": "NavMeshQuery.RaycastWithFilter",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) RaycastWithFilter(start, target math3d.Vec3, filter NavFilter) (NavRaycastHit, bool)",
              "doc": "RaycastWithFilter delegates to q's NavMesh.RaycastWithFilter.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 2232
            },
            {
              "name": "SetMesh",
              "anchor": "NavMeshQuery.SetMesh",
              "recv": "*NavMeshQuery",
              "decl": "func (q *NavMeshQuery) SetMesh(mesh *NavMesh)",
              "doc": "SetMesh rebinds q to mesh while keeping its allocated scratch capacity for reuse.\n",
              "file": "pkg/world3d/navmesh_query.go",
              "line": 1569
            }
          ]
        },
        {
          "name": "NavMeshSearch",
          "anchor": "NavMeshSearch",
          "decl": "type NavMeshSearch struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavMeshSearch runs a deterministic 3D NavMesh portal A* search incrementally across bounded Step calls.\n\nStepping a search with any positive per-step expansion budget produces the exact same path,\nlinks, partial flag, and expansion count as NavMesh.FindPathWithOptions / FindPathWithFilterAndOptions.\n*NavMeshSearch implements ai.IncrementalSearch so it can be scheduled directly on ai.PathQueue.\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 992,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNavMeshSearch",
              "anchor": "NewNavMeshSearch",
              "decl": "func NewNavMeshSearch(nm *NavMesh, start, goal math3d.Vec3, opts ai.PathOptions) *NavMeshSearch",
              "doc": "NewNavMeshSearch initializes an incremental 3D NavMesh search from start to goal under DefaultNavFilter and opts.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 1029
            },
            {
              "name": "NewNavMeshSearchWithFilter",
              "anchor": "NewNavMeshSearchWithFilter",
              "decl": "func NewNavMeshSearchWithFilter(nm *NavMesh, start, goal math3d.Vec3, filter NavFilter, opts ai.PathOptions) *NavMeshSearch",
              "doc": "NewNavMeshSearchWithFilter initializes an incremental 3D NavMesh search from start to goal under filter and opts.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 1034
            }
          ],
          "methods": [
            {
              "name": "Expansions",
              "anchor": "NavMeshSearch.Expansions",
              "recv": "*NavMeshSearch",
              "decl": "func (s *NavMeshSearch) Expansions() int",
              "doc": "Expansions returns the cumulative number of portal nodes expanded so far.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 1423
            },
            {
              "name": "Result",
              "anchor": "NavMeshSearch.Result",
              "recv": "*NavMeshSearch",
              "decl": "func (s *NavMeshSearch) Result() NavPathResult",
              "doc": "Result returns the search outcome once finished (or a result with Found == false while still in progress).\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 1431
            },
            {
              "name": "Status",
              "anchor": "NavMeshSearch.Status",
              "recv": "*NavMeshSearch",
              "decl": "func (s *NavMeshSearch) Status() ai.SearchStatus",
              "doc": "Status returns the search's current status.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 1415
            },
            {
              "name": "Step",
              "anchor": "NavMeshSearch.Step",
              "recv": "*NavMeshSearch",
              "decl": "func (s *NavMeshSearch) Step(maxExpansions int) (status ai.SearchStatus, expansions int)",
              "doc": "Step advances the search by at most maxExpansions portal node expansions and returns\nthe updated status and exact number of expansions performed.\nWhen maxExpansions <= 0 or the search is already finished, Step performs 0 expansions.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 1288
            }
          ]
        },
        {
          "name": "NavMoveResult",
          "anchor": "NavMoveResult",
          "decl": "type NavMoveResult struct {\n\t// Point is the final 3D position clamped onto the mesh surface.\n\tPoint math3d.Vec3\n\t// Poly is the index of the final polygon containing Point, or -1 if start lies outside the allowed mesh.\n\tPoly int\n\t// Visited is the ordered sequence of polygon indices traversed from start to Point.\n\tVisited []int\n\t// HitBoundary is true if movement was constrained by a mesh boundary edge or disallowed polygon.\n\tHitBoundary bool\n}",
          "doc": "NavMoveResult describes the outcome of sliding a 3D position across a world3d.NavMesh surface.\n",
          "file": "pkg/world3d/navmesh_query.go",
          "line": 893,
          "members": [
            {
              "name": "Point",
              "anchor": "NavMoveResult.Point",
              "kind": "field",
              "doc": "Point is the final 3D position clamped onto the mesh surface."
            },
            {
              "name": "Poly",
              "anchor": "NavMoveResult.Poly",
              "kind": "field",
              "doc": "Poly is the index of the final polygon containing Point, or -1 if start lies outside the allowed mesh."
            },
            {
              "name": "Visited",
              "anchor": "NavMoveResult.Visited",
              "kind": "field",
              "doc": "Visited is the ordered sequence of polygon indices traversed from start to Point."
            },
            {
              "name": "HitBoundary",
              "anchor": "NavMoveResult.HitBoundary",
              "kind": "field",
              "doc": "HitBoundary is true if movement was constrained by a mesh boundary edge or disallowed polygon."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavObstacle",
          "anchor": "NavObstacle",
          "decl": "type NavObstacle struct {\n\tKind        NavObstacleKind\n\tMode        NavObstacleMode\n\tCenter      math3d.Vec3   // Box and Cylinder center\n\tHalfExtents math3d.Vec3   // Box half-extents along X, Y, Z (each > 0)\n\tYaw         float32       // Optional Box rotation around +Y in radians\n\tRadius      float32       // Cylinder radius (> 0)\n\tHeight      float32       // Cylinder total height along Y (0 = unbounded vertically)\n\tSegments    int           // Cylinder approximation segments (default 12, clamped to [6, 64])\n\tVertices    []math3d.Vec3 // Polygon footprint vertices in XZ (at least 3; convex or concave)\n\tMinY        float32       // Polygon vertical minimum (MinY == MaxY means unbounded vertically)\n\tMaxY        float32       // Polygon vertical maximum\n\tMargin      float32       // Optional horizontal outward inflation in world units (>= 0)\n\tArea        NavArea       // Applied in NavObstacleMark mode when non-zero\n\tFlags       NavFlags      // Applied in NavObstacleMark mode (defaults to NavFlagDisabled when both Area and Flags are 0)\n}",
          "doc": "NavObstacle describes a temporary runtime 3D obstacle applied to a TiledNavMesh.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 115,
          "members": [
            {
              "name": "Kind",
              "anchor": "NavObstacle.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mode",
              "anchor": "NavObstacle.Mode",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Center",
              "anchor": "NavObstacle.Center",
              "kind": "field",
              "doc": "Box and Cylinder center"
            },
            {
              "name": "HalfExtents",
              "anchor": "NavObstacle.HalfExtents",
              "kind": "field",
              "doc": "Box half-extents along X, Y, Z (each > 0)"
            },
            {
              "name": "Yaw",
              "anchor": "NavObstacle.Yaw",
              "kind": "field",
              "doc": "Optional Box rotation around +Y in radians"
            },
            {
              "name": "Radius",
              "anchor": "NavObstacle.Radius",
              "kind": "field",
              "doc": "Cylinder radius (> 0)"
            },
            {
              "name": "Height",
              "anchor": "NavObstacle.Height",
              "kind": "field",
              "doc": "Cylinder total height along Y (0 = unbounded vertically)"
            },
            {
              "name": "Segments",
              "anchor": "NavObstacle.Segments",
              "kind": "field",
              "doc": "Cylinder approximation segments (default 12, clamped to [6, 64])"
            },
            {
              "name": "Vertices",
              "anchor": "NavObstacle.Vertices",
              "kind": "field",
              "doc": "Polygon footprint vertices in XZ (at least 3; convex or concave)"
            },
            {
              "name": "MinY",
              "anchor": "NavObstacle.MinY",
              "kind": "field",
              "doc": "Polygon vertical minimum (MinY == MaxY means unbounded vertically)"
            },
            {
              "name": "MaxY",
              "anchor": "NavObstacle.MaxY",
              "kind": "field",
              "doc": "Polygon vertical maximum"
            },
            {
              "name": "Margin",
              "anchor": "NavObstacle.Margin",
              "kind": "field",
              "doc": "Optional horizontal outward inflation in world units (>= 0)"
            },
            {
              "name": "Area",
              "anchor": "NavObstacle.Area",
              "kind": "field",
              "doc": "Applied in NavObstacleMark mode when non-zero"
            },
            {
              "name": "Flags",
              "anchor": "NavObstacle.Flags",
              "kind": "field",
              "doc": "Applied in NavObstacleMark mode (defaults to NavFlagDisabled when both Area and Flags are 0)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NavBoxObstacle",
              "anchor": "NavBoxObstacle",
              "decl": "func NavBoxObstacle(minPt, maxPt math3d.Vec3) NavObstacle",
              "doc": "NavBoxObstacle constructs an axis-aligned 3D box obstacle spanning [minPt, maxPt].\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 133
            },
            {
              "name": "NavCylinderObstacle",
              "anchor": "NavCylinderObstacle",
              "decl": "func NavCylinderObstacle(center math3d.Vec3, radius, height float32) NavObstacle",
              "doc": "NavCylinderObstacle constructs a vertical 3D cylinder obstacle centered at center with radius and total height.\nPassing height == 0 makes the cylinder affect all vertical levels.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 157
            },
            {
              "name": "NavOrientedBoxObstacle",
              "anchor": "NavOrientedBoxObstacle",
              "decl": "func NavOrientedBoxObstacle(center, halfExtents math3d.Vec3, yawRad float32) NavObstacle",
              "doc": "NavOrientedBoxObstacle constructs a yaw-rotated 3D box obstacle centered at center with halfExtents.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 145
            },
            {
              "name": "NavPolygonObstacle",
              "anchor": "NavPolygonObstacle",
              "decl": "func NavPolygonObstacle(verts []math3d.Vec3, minY, maxY float32) NavObstacle",
              "doc": "NavPolygonObstacle constructs a vertically extruded 3D polygon obstacle (convex or concave in XZ)\nspanning [minY, maxY]. Passing minY == maxY makes it affect all vertical levels.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 169
            }
          ],
          "methods": []
        },
        {
          "name": "NavObstacleID",
          "anchor": "NavObstacleID",
          "decl": "type NavObstacleID uint64",
          "doc": "NavObstacleID identifies a dynamic obstacle registered on a 3D TiledNavMesh.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 90,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavObstacleKind",
          "anchor": "NavObstacleKind",
          "decl": "type NavObstacleKind uint8",
          "doc": "NavObstacleKind selects the geometric shape of a 3D NavObstacle.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 93,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "NavObstacleBox",
                  "anchor": "NavObstacleBox"
                },
                {
                  "name": "NavObstacleCylinder",
                  "anchor": "NavObstacleCylinder"
                },
                {
                  "name": "NavObstaclePolygon",
                  "anchor": "NavObstaclePolygon"
                }
              ],
              "decl": "const (\n\t// NavObstacleBox is an axis-aligned or yaw-rotated 3D box (Center, HalfExtents, Yaw).\n\tNavObstacleBox NavObstacleKind = iota\n\t// NavObstacleCylinder is a vertical 3D cylinder (Center, Radius, Height, Segments).\n\t// When Height == 0, the cylinder affects all vertical levels.\n\tNavObstacleCylinder\n\t// NavObstaclePolygon is a vertically extruded 3D polygon prism (Vertices in XZ, MinY, MaxY).\n\t// When MinY == MaxY, the polygon affects all vertical levels.\n\tNavObstaclePolygon\n)",
              "doc": "",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 95
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavObstacleMode",
          "anchor": "NavObstacleMode",
          "decl": "type NavObstacleMode = ai.NavObstacleMode",
          "doc": "NavObstacleMode selects how a dynamic obstacle modifies walkable polygons in touched tiles.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 107,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavOffMeshLink",
          "anchor": "NavOffMeshLink",
          "decl": "type NavOffMeshLink struct {\n\t// Start and End are the 3D endpoints on (or within Radius of) the mesh.\n\tStart math3d.Vec3\n\tEnd   math3d.Vec3\n\t// Radius is the optional endpoint snap and agent entry tolerance in world units.\n\t// When positive, an endpoint outside a polygon snaps to the nearest polygon point within Radius,\n\t// and NavAgent uses max(entryRadius, Radius) when entering the link.\n\t// When zero, endpoints must lie on a walkable polygon within VerticalTolerance.\n\tRadius float32\n\t// Bidirectional adds links in both Start->End and End->Start directions when true.\n\tBidirectional bool\n\t// Flags stores game-defined link flags; NavLinkOffMesh is always set automatically.\n\tFlags uint32\n\t// ID is an optional game-defined link identifier delivered in NavLinkEvent.LinkID and NavPathLink.LinkID.\n\tID int\n\t// Cost overrides the A* traversal cost when positive; <= 0 uses 3D Euclidean distance.\n\tCost float32\n\t// Area assigns a NavArea to the link so NavFilter can exclude it or scale its traversal cost.\n\t// Defaults to NavAreaDefault (0).\n\tArea NavArea\n\t// UserData holds optional game-defined metadata (such as \"jump\", \"ladder\", \"teleport\", or a custom value)\n\t// carried through to NavPathLink and NavLinkEvent.\n\tUserData any\n}",
          "doc": "NavOffMeshLink describes a custom 3D off-mesh connection between two walkable points on a NavMesh\n(such as a jump, drop-down, ladder, door, or teleporter).\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 74,
          "members": [
            {
              "name": "Start",
              "anchor": "NavOffMeshLink.Start",
              "kind": "field",
              "doc": "Start and End are the 3D endpoints on (or within Radius of) the mesh."
            },
            {
              "name": "End",
              "anchor": "NavOffMeshLink.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "NavOffMeshLink.Radius",
              "kind": "field",
              "doc": "Radius is the optional endpoint snap and agent entry tolerance in world units.\nWhen positive, an endpoint outside a polygon snaps to the nearest polygon point within Radius,\nand NavAgent uses max(entryRadius, Radius) when entering the link.\nWhen zero, endpoints must lie on a walkable polygon within VerticalTolerance."
            },
            {
              "name": "Bidirectional",
              "anchor": "NavOffMeshLink.Bidirectional",
              "kind": "field",
              "doc": "Bidirectional adds links in both Start->End and End->Start directions when true."
            },
            {
              "name": "Flags",
              "anchor": "NavOffMeshLink.Flags",
              "kind": "field",
              "doc": "Flags stores game-defined link flags; NavLinkOffMesh is always set automatically."
            },
            {
              "name": "ID",
              "anchor": "NavOffMeshLink.ID",
              "kind": "field",
              "doc": "ID is an optional game-defined link identifier delivered in NavLinkEvent.LinkID and NavPathLink.LinkID."
            },
            {
              "name": "Cost",
              "anchor": "NavOffMeshLink.Cost",
              "kind": "field",
              "doc": "Cost overrides the A* traversal cost when positive; <= 0 uses 3D Euclidean distance."
            },
            {
              "name": "Area",
              "anchor": "NavOffMeshLink.Area",
              "kind": "field",
              "doc": "Area assigns a NavArea to the link so NavFilter can exclude it or scale its traversal cost.\nDefaults to NavAreaDefault (0)."
            },
            {
              "name": "UserData",
              "anchor": "NavOffMeshLink.UserData",
              "kind": "field",
              "doc": "UserData holds optional game-defined metadata (such as \"jump\", \"ladder\", \"teleport\", or a custom value)\ncarried through to NavPathLink and NavLinkEvent."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavPathLink",
          "anchor": "NavPathLink",
          "decl": "type NavPathLink struct {\n\t// StartIndex is the index in NavPathResult.Path where the off-mesh link begins.\n\tStartIndex int\n\t// EndIndex is the index in NavPathResult.Path where the off-mesh link ends (StartIndex + 1).\n\tEndIndex int\n\t// FromPoly and ToPoly are the source and destination polygon indices connected by the link.\n\tFromPoly int\n\tToPoly   int\n\t// Start and End are the 3D world-space entry and exit positions of the traversed link direction.\n\tStart math3d.Vec3\n\tEnd   math3d.Vec3\n\t// Radius is the link's configured connection/entry radius.\n\tRadius float32\n\t// Area is the link's navigation area.\n\tArea NavArea\n\t// Flags are the link's flags (including NavLinkOffMesh).\n\tFlags uint32\n\t// LinkID is the link's configured identifier.\n\tLinkID int\n\t// UserData is the link's configured custom metadata.\n\tUserData any\n}",
          "doc": "NavPathLink marks a segment in NavPathResult.Path that traverses an off-mesh link.\nPath[StartIndex] is the link's 3D entry point on the mesh and Path[EndIndex] is its 3D exit point\n(with EndIndex == StartIndex + 1).\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 102,
          "members": [
            {
              "name": "StartIndex",
              "anchor": "NavPathLink.StartIndex",
              "kind": "field",
              "doc": "StartIndex is the index in NavPathResult.Path where the off-mesh link begins."
            },
            {
              "name": "EndIndex",
              "anchor": "NavPathLink.EndIndex",
              "kind": "field",
              "doc": "EndIndex is the index in NavPathResult.Path where the off-mesh link ends (StartIndex + 1)."
            },
            {
              "name": "FromPoly",
              "anchor": "NavPathLink.FromPoly",
              "kind": "field",
              "doc": "FromPoly and ToPoly are the source and destination polygon indices connected by the link."
            },
            {
              "name": "ToPoly",
              "anchor": "NavPathLink.ToPoly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Start",
              "anchor": "NavPathLink.Start",
              "kind": "field",
              "doc": "Start and End are the 3D world-space entry and exit positions of the traversed link direction."
            },
            {
              "name": "End",
              "anchor": "NavPathLink.End",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Radius",
              "anchor": "NavPathLink.Radius",
              "kind": "field",
              "doc": "Radius is the link's configured connection/entry radius."
            },
            {
              "name": "Area",
              "anchor": "NavPathLink.Area",
              "kind": "field",
              "doc": "Area is the link's navigation area."
            },
            {
              "name": "Flags",
              "anchor": "NavPathLink.Flags",
              "kind": "field",
              "doc": "Flags are the link's flags (including NavLinkOffMesh)."
            },
            {
              "name": "LinkID",
              "anchor": "NavPathLink.LinkID",
              "kind": "field",
              "doc": "LinkID is the link's configured identifier."
            },
            {
              "name": "UserData",
              "anchor": "NavPathLink.UserData",
              "kind": "field",
              "doc": "UserData is the link's configured custom metadata."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavPathResult",
          "anchor": "NavPathResult",
          "decl": "type NavPathResult struct {\n\tPath []math3d.Vec3\n\t// Links lists each segment of Path that traverses an off-mesh link, in path order.\n\t// For each link, Path[link.StartIndex] is the 3D entry point and Path[link.EndIndex]\n\t// (with EndIndex == StartIndex + 1) is the 3D exit point.\n\tLinks      []NavPathLink\n\tFound      bool // true when a complete or partial path was produced\n\tPartial    bool // true when Path ends at the closest reachable 3D point rather than goal\n\tExhausted  bool // true when the search stopped because MaxExpansions was reached\n\tExpansions int  // total number of portal nodes expanded during the search\n}",
          "doc": "NavPathResult is the outcome of a bounded or incremental 3D NavMesh search.\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 587,
          "members": [
            {
              "name": "Path",
              "anchor": "NavPathResult.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Links",
              "anchor": "NavPathResult.Links",
              "kind": "field",
              "doc": "Links lists each segment of Path that traverses an off-mesh link, in path order.\nFor each link, Path[link.StartIndex] is the 3D entry point and Path[link.EndIndex]\n(with EndIndex == StartIndex + 1) is the 3D exit point."
            },
            {
              "name": "Found",
              "anchor": "NavPathResult.Found",
              "kind": "field",
              "doc": "true when a complete or partial path was produced"
            },
            {
              "name": "Partial",
              "anchor": "NavPathResult.Partial",
              "kind": "field",
              "doc": "true when Path ends at the closest reachable 3D point rather than goal"
            },
            {
              "name": "Exhausted",
              "anchor": "NavPathResult.Exhausted",
              "kind": "field",
              "doc": "true when the search stopped because MaxExpansions was reached"
            },
            {
              "name": "Expansions",
              "anchor": "NavPathResult.Expansions",
              "kind": "field",
              "doc": "total number of portal nodes expanded during the search"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "HasLinks",
              "anchor": "NavPathResult.HasLinks",
              "recv": "NavPathResult",
              "decl": "func (r NavPathResult) HasLinks() bool",
              "doc": "HasLinks reports whether r traverses at least one off-mesh link.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 600
            },
            {
              "name": "LinkAt",
              "anchor": "NavPathResult.LinkAt",
              "recv": "NavPathResult",
              "decl": "func (r NavPathResult) LinkAt(segmentIndex int) (NavPathLink, bool)",
              "doc": "LinkAt returns the off-mesh link traversed by path segment segmentIndex (from Path[segmentIndex]\nto Path[segmentIndex+1]), or (zero, false) when that segment is ordinary walking movement.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 606
            }
          ]
        },
        {
          "name": "NavPathWatchID",
          "anchor": "NavPathWatchID",
          "decl": "type NavPathWatchID uint64",
          "doc": "NavPathWatchID identifies a path-invalidation watcher registered on a 3D TiledNavMesh.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 87,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavPoly",
          "anchor": "NavPoly",
          "decl": "type NavPoly struct {\n\tVertices []math3d.Vec3\n\tNormal   math3d.Vec3\n\tPlaneD   float32\n\tCenter   math3d.Vec3\n\tBounds   math3d.AABB\n\tLinks    []NavLink\n\tArea     NavArea\n\tFlags    NavFlags\n}",
          "doc": "NavPoly is a single walkable convex 3D polygon in a NavMesh.\nVertices are normalized to counter-clockwise winding when viewed from +Y so\nNormal always points upward (Normal.Y > 0).\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 157,
          "members": [
            {
              "name": "Vertices",
              "anchor": "NavPoly.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "NavPoly.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "PlaneD",
              "anchor": "NavPoly.PlaneD",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Center",
              "anchor": "NavPoly.Center",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "NavPoly.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Links",
              "anchor": "NavPoly.Links",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Area",
              "anchor": "NavPoly.Area",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "NavPoly.Flags",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "ContainsXZ",
              "anchor": "NavPoly.ContainsXZ",
              "recv": "*NavPoly",
              "decl": "func (p *NavPoly) ContainsXZ(x, z float32) bool",
              "doc": "ContainsXZ reports whether (x, z) lies inside or on the boundary of p's XZ projection.\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 177
            },
            {
              "name": "HeightAt",
              "anchor": "NavPoly.HeightAt",
              "recv": "*NavPoly",
              "decl": "func (p *NavPoly) HeightAt(x, z float32) float32",
              "doc": "HeightAt returns the Y coordinate of the polygon's supporting 3D plane at (x, z).\n",
              "file": "pkg/world3d/navmesh.go",
              "line": 169
            }
          ]
        },
        {
          "name": "NavPolyRef",
          "anchor": "NavPolyRef",
          "decl": "type NavPolyRef struct {\n\tTile ChunkCoord\n\tPoly int32\n\tSalt uint32\n}",
          "doc": "NavPolyRef uniquely identifies a walkable convex 3D polygon inside a TiledNavMesh.\nSalt increments whenever the owning tile is replaced, rebuilt, or removed so stale\nreferences are detected in O(1).\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 50,
          "members": [
            {
              "name": "Tile",
              "anchor": "NavPolyRef.Tile",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Poly",
              "anchor": "NavPolyRef.Poly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Salt",
              "anchor": "NavPolyRef.Salt",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Valid",
              "anchor": "NavPolyRef.Valid",
              "recv": "NavPolyRef",
              "decl": "func (r NavPolyRef) Valid() bool",
              "doc": "Valid reports whether r holds a non-zero tile salt and non-negative polygon index.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 57
            }
          ]
        },
        {
          "name": "NavPolygonInput",
          "anchor": "NavPolygonInput",
          "decl": "type NavPolygonInput struct {\n\tVertices []math3d.Vec3 `yaml:\"vertices\"`\n\tArea     NavArea       `yaml:\"area,omitempty\"`\n\tFlags    NavFlags      `yaml:\"flags,omitempty\"`\n}",
          "doc": "NavPolygonInput describes a single convex 3D polygon together with its\ninitial area ID and runtime traversal flags for BuildNavMeshWithAreas.\nA zero Flags value defaults to NavFlagWalk.\n",
          "file": "pkg/world3d/navmesh.go",
          "line": 56,
          "members": [
            {
              "name": "Vertices",
              "anchor": "NavPolygonInput.Vertices",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Area",
              "anchor": "NavPolygonInput.Area",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Flags",
              "anchor": "NavPolygonInput.Flags",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavRaycastHit",
          "anchor": "NavRaycastHit",
          "decl": "type NavRaycastHit struct {\n\t// Point is the 3D impact point on the obstructing boundary edge when Hit is true,\n\t// or the surface-snapped target point when the ray reaches target unobstructed (Hit is false).\n\tPoint math3d.Vec3\n\t// Normal is the unit 3D surface-tangent inward normal of the boundary edge that stopped the ray\n\t// (pointing back into the walkable polygon, opposing the ray), or zero when Hit is false or Poly < 0.\n\tNormal math3d.Vec3\n\t// Poly is the index of the polygon containing Point, or -1 if start lies outside the allowed mesh.\n\tPoly int\n\t// T is the normalized horizontal progression along start->target in [0, 1].\n\t// T is 1 when target is reached unobstructed; T is 0 when start lies outside the allowed mesh.\n\tT float32\n\t// Hit is true if a mesh boundary edge or disallowed polygon obstructed the ray (or start is outside the allowed mesh).\n\tHit bool\n}",
          "doc": "NavRaycastHit describes the result of casting a segment along a 3D NavMesh surface.\n",
          "file": "pkg/world3d/navmesh_query.go",
          "line": 465,
          "members": [
            {
              "name": "Point",
              "anchor": "NavRaycastHit.Point",
              "kind": "field",
              "doc": "Point is the 3D impact point on the obstructing boundary edge when Hit is true,\nor the surface-snapped target point when the ray reaches target unobstructed (Hit is false)."
            },
            {
              "name": "Normal",
              "anchor": "NavRaycastHit.Normal",
              "kind": "field",
              "doc": "Normal is the unit 3D surface-tangent inward normal of the boundary edge that stopped the ray\n(pointing back into the walkable polygon, opposing the ray), or zero when Hit is false or Poly < 0."
            },
            {
              "name": "Poly",
              "anchor": "NavRaycastHit.Poly",
              "kind": "field",
              "doc": "Poly is the index of the polygon containing Point, or -1 if start lies outside the allowed mesh."
            },
            {
              "name": "T",
              "anchor": "NavRaycastHit.T",
              "kind": "field",
              "doc": "T is the normalized horizontal progression along start->target in [0, 1].\nT is 1 when target is reached unobstructed; T is 0 when start lies outside the allowed mesh."
            },
            {
              "name": "Hit",
              "anchor": "NavRaycastHit.Hit",
              "kind": "field",
              "doc": "Hit is true if a mesh boundary edge or disallowed polygon obstructed the ray (or start is outside the allowed mesh)."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavTile",
          "anchor": "NavTile",
          "decl": "type NavTile struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavTile is an independently baked 3D navigation tile covering a fixed XZ square region\n[minX, maxX] x [minZ, maxZ]. A NavTile may be baked concurrently on worker goroutines\nwith BakeNavTile and installed into a TiledNavMesh with AddTile, ReplaceTile, or SetTile.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 193,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BakeNavTile",
              "anchor": "BakeNavTile",
              "decl": "func BakeNavTile(coord ChunkCoord, tileSize float32, origin math3d.Vec3, polys []NavPolygonInput, maxSlopeRad float32) *NavTile",
              "doc": "BakeNavTile bakes an independent 3D NavTile for coord from convex walkable 3D polygons,\nfiltering slopes steeper than maxSlopeRad (default pi/4 when < 0) and clipping every polygon\ncleanly to the tile's exact XZ bounds while preserving exact 3D plane heights.\nBakeNavTile is pure and safe to call concurrently from ChunkStreamer worker goroutines.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 242
            }
          ],
          "methods": [
            {
              "name": "BasePolygonCount",
              "anchor": "NavTile.BasePolygonCount",
              "recv": "*NavTile",
              "decl": "func (t *NavTile) BasePolygonCount() int",
              "doc": "BasePolygonCount returns the number of base walkable 3D polygons baked into this tile.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 212
            },
            {
              "name": "Bounds",
              "anchor": "NavTile.Bounds",
              "recv": "*NavTile",
              "decl": "func (t *NavTile) Bounds() math3d.AABB",
              "doc": "BoundsXZ returns the world-space XZ bounds of this tile (with Y spanning the tile's polygons, or 0 if empty).\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 220
            },
            {
              "name": "Coord",
              "anchor": "NavTile.Coord",
              "recv": "*NavTile",
              "decl": "func (t *NavTile) Coord() ChunkCoord",
              "doc": "Coord returns the chunk/tile coordinate this tile was baked for.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 204
            }
          ]
        },
        {
          "name": "NavTileChange",
          "anchor": "NavTileChange",
          "decl": "type NavTileChange struct {\n\tCoord   ChunkCoord\n\tKind    NavTileChangeKind\n\tVersion uint64\n}",
          "doc": "NavTileChange describes a single 3D tile mutation event delivered to tile listeners and path watchers.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 77,
          "members": [
            {
              "name": "Coord",
              "anchor": "NavTileChange.Coord",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Kind",
              "anchor": "NavTileChange.Kind",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "NavTileChange.Version",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavTileChangeKind",
          "anchor": "NavTileChangeKind",
          "decl": "type NavTileChangeKind = ai.NavTileChangeKind",
          "doc": "NavTileChangeKind classifies why a tile in a 3D TiledNavMesh changed.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 68,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavTileCoord",
          "anchor": "NavTileCoord",
          "decl": "type NavTileCoord = ChunkCoord",
          "doc": "NavTileCoord identifies a fixed-size tile in a 3D TiledNavMesh.\nIt aliases ChunkCoord so 3D navmesh tiles align 1:1 with world3d.ChunkStreamer chunks.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 45,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavTileStreamer",
          "anchor": "NavTileStreamer",
          "decl": "type NavTileStreamer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "NavTileStreamer bridges world3d.ChunkStreamer[*NavTile] onto a 3D TiledNavMesh:\nchunks entering LoadRadius are baked (optionally on background workers) and installed into Mesh\nwith active dynamic obstacles applied and cross-border portals linked; chunks leaving UnloadRadius\nare removed from Mesh, unlinking neighbor portals and invalidating paths that crossed them.\n",
          "file": "pkg/world3d/tiled_navmesh_stream.go",
          "line": 43,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewNavTileStreamer",
              "anchor": "NewNavTileStreamer",
              "decl": "func NewNavTileStreamer(cfg NavTileStreamerConfig) (*NavTileStreamer, error)",
              "doc": "NewNavTileStreamer constructs a NavTileStreamer backed by a ChunkStreamer[*NavTile]\nwhose ChunkSize matches cfg.Mesh.TileSize(). Call Close when finished to stop worker\ngoroutines and unload remaining tiles.\n",
              "file": "pkg/world3d/tiled_navmesh_stream.go",
              "line": 51
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "NavTileStreamer.Close",
              "recv": "*NavTileStreamer",
              "decl": "func (s *NavTileStreamer) Close()",
              "doc": "Close cancels in-flight bakes, waits for worker goroutines to exit, and unloads all remaining tiles.\n",
              "file": "pkg/world3d/tiled_navmesh_stream.go",
              "line": 135
            },
            {
              "name": "LoadedTiles",
              "anchor": "NavTileStreamer.LoadedTiles",
              "recv": "*NavTileStreamer",
              "decl": "func (s *NavTileStreamer) LoadedTiles() []ChunkCoord",
              "doc": "LoadedTiles returns a sorted slice of chunk coordinates currently tracked as loaded.\n",
              "file": "pkg/world3d/tiled_navmesh_stream.go",
              "line": 127
            },
            {
              "name": "Streamer",
              "anchor": "NavTileStreamer.Streamer",
              "recv": "*NavTileStreamer",
              "decl": "func (s *NavTileStreamer) Streamer() *ChunkStreamer[*NavTile]",
              "doc": "Streamer returns the underlying ChunkStreamer[*NavTile].\n",
              "file": "pkg/world3d/tiled_navmesh_stream.go",
              "line": 119
            },
            {
              "name": "Update",
              "anchor": "NavTileStreamer.Update",
              "recv": "*NavTileStreamer",
              "decl": "func (s *NavTileStreamer) Update(worldPos WorldPos64)",
              "doc": "Update advances chunk streaming around worldPos (offset by Mesh.Origin() when non-zero),\ninstalling completed tiles up to MaxIntegrationsPerFrame and unloading distant tiles.\n",
              "file": "pkg/world3d/tiled_navmesh_stream.go",
              "line": 106
            }
          ]
        },
        {
          "name": "NavTileStreamerConfig",
          "anchor": "NavTileStreamerConfig",
          "decl": "type NavTileStreamerConfig struct {\n\t// Mesh is the target TiledNavMesh whose tiles are added on chunk load and removed on chunk unload.\n\tMesh *TiledNavMesh\n\t// LoadRadius is the Chebyshev chunk radius around the anchor position to load.\n\tLoadRadius int\n\t// UnloadRadius is the Chebyshev chunk radius beyond which loaded and in-flight tiles unload/cancel.\n\t// Defaults to LoadRadius + 1 when smaller than LoadRadius.\n\tUnloadRadius int\n\t// MaxIntegrationsPerFrame caps how many completed tiles are installed into Mesh per Update call\n\t// (<= 0 allows unlimited integrations per frame).\n\tMaxIntegrationsPerFrame int\n\t// Workers sets the number of background ChunkStreamer loader goroutines.\n\t// When 0, Bake runs synchronously inside Update (useful for deterministic tests).\n\tWorkers int\n\t// Bake builds the standalone *NavTile for chunk coord and world-space XZ bounds.\n\t// When Workers > 0, Bake runs on worker goroutines and must respect ctx cancellation.\n\t// Return (nil, nil) for a chunk with no walkable surface.\n\tBake func(ctx context.Context, coord ChunkCoord, bounds math3d.AABB) (*NavTile, error)\n\t// OnLoad runs on the Update goroutine after the tile is installed into Mesh.\n\tOnLoad func(coord ChunkCoord, tile *NavTile)\n\t// OnUnload runs on the Update/Close goroutine after the tile is removed from Mesh.\n\tOnUnload func(coord ChunkCoord)\n\t// OnError runs on the Update goroutine when Bake returns a non-nil error.\n\tOnError func(coord ChunkCoord, err error)\n}",
          "doc": "NavTileStreamerConfig configures a NavTileStreamer that drives a 3D TiledNavMesh\nfrom a world3d.ChunkStreamer[*NavTile], loading and unloading navmesh tiles in lockstep\nwith streamed world chunks.\n",
          "file": "pkg/world3d/tiled_navmesh_stream.go",
          "line": 13,
          "members": [
            {
              "name": "Mesh",
              "anchor": "NavTileStreamerConfig.Mesh",
              "kind": "field",
              "doc": "Mesh is the target TiledNavMesh whose tiles are added on chunk load and removed on chunk unload."
            },
            {
              "name": "LoadRadius",
              "anchor": "NavTileStreamerConfig.LoadRadius",
              "kind": "field",
              "doc": "LoadRadius is the Chebyshev chunk radius around the anchor position to load."
            },
            {
              "name": "UnloadRadius",
              "anchor": "NavTileStreamerConfig.UnloadRadius",
              "kind": "field",
              "doc": "UnloadRadius is the Chebyshev chunk radius beyond which loaded and in-flight tiles unload/cancel.\nDefaults to LoadRadius + 1 when smaller than LoadRadius."
            },
            {
              "name": "MaxIntegrationsPerFrame",
              "anchor": "NavTileStreamerConfig.MaxIntegrationsPerFrame",
              "kind": "field",
              "doc": "MaxIntegrationsPerFrame caps how many completed tiles are installed into Mesh per Update call\n(<= 0 allows unlimited integrations per frame)."
            },
            {
              "name": "Workers",
              "anchor": "NavTileStreamerConfig.Workers",
              "kind": "field",
              "doc": "Workers sets the number of background ChunkStreamer loader goroutines.\nWhen 0, Bake runs synchronously inside Update (useful for deterministic tests)."
            },
            {
              "name": "Bake",
              "anchor": "NavTileStreamerConfig.Bake",
              "kind": "field",
              "doc": "Bake builds the standalone *NavTile for chunk coord and world-space XZ bounds.\nWhen Workers > 0, Bake runs on worker goroutines and must respect ctx cancellation.\nReturn (nil, nil) for a chunk with no walkable surface."
            },
            {
              "name": "OnLoad",
              "anchor": "NavTileStreamerConfig.OnLoad",
              "kind": "field",
              "doc": "OnLoad runs on the Update goroutine after the tile is installed into Mesh."
            },
            {
              "name": "OnUnload",
              "anchor": "NavTileStreamerConfig.OnUnload",
              "kind": "field",
              "doc": "OnUnload runs on the Update/Close goroutine after the tile is removed from Mesh."
            },
            {
              "name": "OnError",
              "anchor": "NavTileStreamerConfig.OnError",
              "kind": "field",
              "doc": "OnError runs on the Update goroutine when Bake returns a non-nil error."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "NavTileVersion",
          "anchor": "NavTileVersion",
          "decl": "type NavTileVersion struct {\n\tCoord   ChunkCoord\n\tVersion uint64\n}",
          "doc": "NavTileVersion records a tile coordinate together with its revision number when a path was computed.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 62,
          "members": [
            {
              "name": "Coord",
              "anchor": "NavTileVersion.Coord",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Version",
              "anchor": "NavTileVersion.Version",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "QualityLevel",
          "anchor": "QualityLevel",
          "decl": "type QualityLevel uint8",
          "doc": "QualityLevel selects a built-in foliage density and draw-distance tier.\n",
          "file": "pkg/world3d/foliage.go",
          "line": 17,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "QualityLow",
                  "anchor": "QualityLow"
                },
                {
                  "name": "QualityMedium",
                  "anchor": "QualityMedium"
                },
                {
                  "name": "QualityHigh",
                  "anchor": "QualityHigh"
                },
                {
                  "name": "QualityUltra",
                  "anchor": "QualityUltra"
                }
              ],
              "decl": "const (\n\tQualityLow QualityLevel = iota\n\tQualityMedium\n\tQualityHigh\n\tQualityUltra\n)",
              "doc": "",
              "file": "pkg/world3d/foliage.go",
              "line": 19
            }
          ],
          "vars": [],
          "funcs": [
            {
              "name": "QualityLevelFor",
              "anchor": "QualityLevelFor",
              "decl": "func QualityLevelFor(l quality.Level) QualityLevel",
              "doc": "QualityLevelFor returns the foliage tier for a game-wide quality level: QualityLow for quality.Low, QualityMedium for quality.Medium and QualityHigh for quality.High. QualityUltra stays an explicit choice above every preset. An invalid level maps to QualityMedium, as quality.DefaultPreset does.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 54
            }
          ],
          "methods": []
        },
        {
          "name": "QualityProfile",
          "anchor": "QualityProfile",
          "decl": "type QualityProfile struct {\n\t// DensityScale scales the fraction of scattered instances emitted, in [0, 1].\n\tDensityScale float32\n\t// MaxDistance caps the maximum visible distance in world units (meters).\n\t// If <= 0, the layer's BaseMaxDistance is used.\n\tMaxDistance float32\n\t// FadeStartRatio is the fraction of effective MaxDistance in [0, 1] at which\n\t// instances begin fading smoothly from 1.0 down to 0.0 at MaxDistance.\n\tFadeStartRatio float32\n}",
          "doc": "QualityProfile controls runtime foliage density scaling, maximum visibility\ndistance, and smooth distance fade-out.\n",
          "file": "pkg/world3d/foliage.go",
          "line": 28,
          "members": [
            {
              "name": "DensityScale",
              "anchor": "QualityProfile.DensityScale",
              "kind": "field",
              "doc": "DensityScale scales the fraction of scattered instances emitted, in [0, 1]."
            },
            {
              "name": "MaxDistance",
              "anchor": "QualityProfile.MaxDistance",
              "kind": "field",
              "doc": "MaxDistance caps the maximum visible distance in world units (meters).\nIf <= 0, the layer's BaseMaxDistance is used."
            },
            {
              "name": "FadeStartRatio",
              "anchor": "QualityProfile.FadeStartRatio",
              "kind": "field",
              "doc": "FadeStartRatio is the fraction of effective MaxDistance in [0, 1] at which\ninstances begin fading smoothly from 1.0 down to 0.0 at MaxDistance."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultQualityProfile",
              "anchor": "DefaultQualityProfile",
              "decl": "func DefaultQualityProfile(level QualityLevel) QualityProfile",
              "doc": "DefaultQualityProfile returns recommended foliage settings for level.\n",
              "file": "pkg/world3d/foliage.go",
              "line": 40
            }
          ],
          "methods": []
        },
        {
          "name": "TerrainDoc",
          "anchor": "TerrainDoc",
          "decl": "type TerrainDoc struct {\n\t// Version is the schema version; must be 1.\n\tVersion int `yaml:\"version\" schema:\"required\"`\n\t// Name is an optional human-readable name for the terrain.\n\tName string `yaml:\"name,omitempty\"`\n\t// Size is the optional [cols, rows] heightmap grid dimensions (each >= 2). When set alongside heightmap, the decoded heightmap image must match these dimensions; when heightmap is omitted, a flat heightmap of this size is created.\n\tSize *[2]int `yaml:\"size,omitempty\"`\n\t// Heightmap is the asset path to the 16-bit (or 8-bit) grayscale PNG heightmap image.\n\tHeightmap string `yaml:\"heightmap,omitempty\"`\n\t// CellSize is the world-space XZ spacing between adjacent heightmap samples; omitted or 0 defaults to 1.\n\tCellSize float32 `yaml:\"cellSize,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// HeightScale scales normalized [0, 1] heightmap samples into world-space Y units.\n\tHeightScale float32 `yaml:\"heightScale,omitempty\" schema:\"minimum=0\"`\n\t// Origin is the world-space [x, y, z] origin of heightmap sample (0, 0); omitted defaults to [0, 0, 0].\n\tOrigin *[3]float32 `yaml:\"origin,omitempty\"`\n\t// ChunkSize is the number of heightmap grid cells along each terrain LOD chunk edge; omitted or 0 defaults to 64.\n\tChunkSize int `yaml:\"chunkSize,omitempty\" schema:\"minimum=1\"`\n\t// SplatMaps lists 1 or 2 RGBA weight-map asset paths: map 0 drives layers 0..3 (R,G,B,A) and map 1 drives layers 4..7 (R,G,B,A). Mutually exclusive with per-layer weightMap paths.\n\tSplatMaps []string `yaml:\"splatMaps,omitempty\"`\n\t// HeightBlendContrast enables height-based layer blending when > 0 in [0, 1]; higher values sharpen layer transitions using per-layer height maps, and 0 uses linear splat blending.\n\tHeightBlendContrast float32 `yaml:\"heightBlendContrast,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Triplanar configures slope-driven triplanar texture projection on steep terrain faces.\n\tTriplanar *TerrainTriplanarDoc `yaml:\"triplanar,omitempty\"`\n\t// Layers lists 1 to 8 PBR terrain material layers in channel order (0..3 from splatMaps[0] RGBA and 4..7 from splatMaps[1] RGBA, or each driven by its own weightMap PNG).\n\tLayers []TerrainLayerDoc `yaml:\"layers\" schema:\"required,minItems=1\"`\n\t// Foliage lists optional procedural foliage scatter layers attached to this terrain, each with an optional grayscale density map PNG.\n\tFoliage []FoliageLayerDoc `yaml:\"foliage,omitempty\"`\n}",
          "doc": "TerrainDoc is the root of a versioned YAML terrain definition specifying\nheightmap dimensions, splat or per-layer weight-map asset paths,\nheight-blending and triplanar settings, up to 8 PBR material layers, and\noptional procedural foliage scatter layers with density maps.\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 40,
          "members": [
            {
              "name": "Version",
              "anchor": "TerrainDoc.Version",
              "kind": "field",
              "doc": "Version is the schema version; must be 1."
            },
            {
              "name": "Name",
              "anchor": "TerrainDoc.Name",
              "kind": "field",
              "doc": "Name is an optional human-readable name for the terrain."
            },
            {
              "name": "Size",
              "anchor": "TerrainDoc.Size",
              "kind": "field",
              "doc": "Size is the optional [cols, rows] heightmap grid dimensions (each >= 2). When set alongside heightmap, the decoded heightmap image must match these dimensions; when heightmap is omitted, a flat heightmap of this size is created."
            },
            {
              "name": "Heightmap",
              "anchor": "TerrainDoc.Heightmap",
              "kind": "field",
              "doc": "Heightmap is the asset path to the 16-bit (or 8-bit) grayscale PNG heightmap image."
            },
            {
              "name": "CellSize",
              "anchor": "TerrainDoc.CellSize",
              "kind": "field",
              "doc": "CellSize is the world-space XZ spacing between adjacent heightmap samples; omitted or 0 defaults to 1."
            },
            {
              "name": "HeightScale",
              "anchor": "TerrainDoc.HeightScale",
              "kind": "field",
              "doc": "HeightScale scales normalized [0, 1] heightmap samples into world-space Y units."
            },
            {
              "name": "Origin",
              "anchor": "TerrainDoc.Origin",
              "kind": "field",
              "doc": "Origin is the world-space [x, y, z] origin of heightmap sample (0, 0); omitted defaults to [0, 0, 0]."
            },
            {
              "name": "ChunkSize",
              "anchor": "TerrainDoc.ChunkSize",
              "kind": "field",
              "doc": "ChunkSize is the number of heightmap grid cells along each terrain LOD chunk edge; omitted or 0 defaults to 64."
            },
            {
              "name": "SplatMaps",
              "anchor": "TerrainDoc.SplatMaps",
              "kind": "field",
              "doc": "SplatMaps lists 1 or 2 RGBA weight-map asset paths: map 0 drives layers 0..3 (R,G,B,A) and map 1 drives layers 4..7 (R,G,B,A). Mutually exclusive with per-layer weightMap paths."
            },
            {
              "name": "HeightBlendContrast",
              "anchor": "TerrainDoc.HeightBlendContrast",
              "kind": "field",
              "doc": "HeightBlendContrast enables height-based layer blending when > 0 in [0, 1]; higher values sharpen layer transitions using per-layer height maps, and 0 uses linear splat blending."
            },
            {
              "name": "Triplanar",
              "anchor": "TerrainDoc.Triplanar",
              "kind": "field",
              "doc": "Triplanar configures slope-driven triplanar texture projection on steep terrain faces."
            },
            {
              "name": "Layers",
              "anchor": "TerrainDoc.Layers",
              "kind": "field",
              "doc": "Layers lists 1 to 8 PBR terrain material layers in channel order (0..3 from splatMaps[0] RGBA and 4..7 from splatMaps[1] RGBA, or each driven by its own weightMap PNG)."
            },
            {
              "name": "Foliage",
              "anchor": "TerrainDoc.Foliage",
              "kind": "field",
              "doc": "Foliage lists optional procedural foliage scatter layers attached to this terrain, each with an optional grayscale density map PNG."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "ParseTerrain",
              "anchor": "ParseTerrain",
              "decl": "func ParseTerrain(data []byte) (*TerrainDoc, error)",
              "doc": "ParseTerrain decodes and validates a YAML terrain definition document. Unknown\nfields and trailing YAML documents are rejected. Returned errors are\n[*loaderr.Error] values carrying line, column, field path, and a fix hint.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 547
            },
            {
              "name": "ParseTerrainWith",
              "anchor": "ParseTerrainWith",
              "decl": "func ParseTerrainWith(data []byte, file string) (*TerrainDoc, error)",
              "doc": "ParseTerrainWith is [ParseTerrain] with an optional source file name attached to errors.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 552
            }
          ],
          "methods": [
            {
              "name": "BuildFoliageLayers",
              "anchor": "TerrainDoc.BuildFoliageLayers",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) BuildFoliageLayers(opts FoliageBuildOptions) ([]FoliageLayer, error)",
              "doc": "BuildFoliageLayers validates d and converts every entry in d.Foliage into a\nruntime [FoliageLayer] using opts. Returns nil, nil when d.Foliage is empty.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 267
            },
            {
              "name": "BuildHeightmap",
              "anchor": "TerrainDoc.BuildHeightmap",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) BuildHeightmap(imgs TerrainImages) (*Heightmap, error)",
              "doc": "BuildHeightmap validates d and constructs a [*Heightmap] configured with d's\nCellSize, HeightScale, Origin, optional attached [*TerrainSplatMap] (from\nimgs.SplatMaps or imgs.LayerWeights, with HeightBlendContrast and per-layer\nheight maps), and optional attached foliage density maps.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 176
            },
            {
              "name": "BuildLOD",
              "anchor": "TerrainDoc.BuildLOD",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) BuildLOD(hm *Heightmap) *TerrainLOD",
              "doc": "BuildLOD constructs a [*TerrainLOD] for hm using d's [TerrainDoc.LODConfig].\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 261
            },
            {
              "name": "EffectiveCellSize",
              "anchor": "TerrainDoc.EffectiveCellSize",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) EffectiveCellSize() float32",
              "doc": "EffectiveCellSize returns d.CellSize, defaulting to 1 when zero.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 127
            },
            {
              "name": "EffectiveChunkSize",
              "anchor": "TerrainDoc.EffectiveChunkSize",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) EffectiveChunkSize() int",
              "doc": "EffectiveChunkSize returns d.ChunkSize, defaulting to 64 when omitted or zero.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 143
            },
            {
              "name": "EffectiveOrigin",
              "anchor": "TerrainDoc.EffectiveOrigin",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) EffectiveOrigin() math3d.Vec3",
              "doc": "EffectiveOrigin returns d.Origin as a [math3d.Vec3], defaulting to the zero vector when omitted.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 135
            },
            {
              "name": "HasLayerWeightMaps",
              "anchor": "TerrainDoc.HasLayerWeightMaps",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) HasLayerWeightMaps() bool",
              "doc": "HasLayerWeightMaps reports whether any layer in d specifies a per-layer WeightMap path.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 114
            },
            {
              "name": "LODConfig",
              "anchor": "TerrainDoc.LODConfig",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) LODConfig() TerrainLODConfig",
              "doc": "LODConfig returns a [TerrainLODConfig] populated from d's ChunkSize.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 151
            },
            {
              "name": "LayerInfos",
              "anchor": "TerrainDoc.LayerInfos",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) LayerInfos() []TerrainLayerInfo",
              "doc": "LayerInfos converts d.Layers into [TerrainLayerInfo] metadata (name, UV scale,\nand height bias) suitable for constructing a [TerrainSplatMap].\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 461
            },
            {
              "name": "LoadHeightmap",
              "anchor": "TerrainDoc.LoadHeightmap",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) LoadHeightmap(fsys fs.FS) (*Heightmap, error)",
              "doc": "LoadHeightmap decodes the heightmap, optional splat or per-layer weight maps,\noptional per-layer height maps, and optional foliage density maps referenced\nby d from fsys, then builds a runtime [*Heightmap].\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 320
            },
            {
              "name": "ScatterFoliage",
              "anchor": "TerrainDoc.ScatterFoliage",
              "recv": "*TerrainDoc",
              "decl": "func (d *TerrainDoc) ScatterFoliage(hm *Heightmap, region math3d.AABB, opts FoliageBuildOptions) ([]*FoliageField, error)",
              "doc": "ScatterFoliage builds every foliage layer declared in d.Foliage and scatters\nit across hm within region (or the full heightmap bounds when region is\nempty/zero). When a layer's density map is already loaded on hm.FoliageDensity\nand opts.LoadDensityMap is nil, the attached density map is reused directly.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 289
            }
          ]
        },
        {
          "name": "TerrainEdgeLODs",
          "anchor": "TerrainEdgeLODs",
          "decl": "type TerrainEdgeLODs struct {\n\tNorth int // neighbor toward -Z (smaller row)\n\tSouth int // neighbor toward +Z (larger row)\n\tWest  int // neighbor toward -X (smaller col)\n\tEast  int // neighbor toward +X (larger col)\n}",
          "doc": "TerrainEdgeLODs specifies the LOD level of each cardinal neighbor of a\nterrain chunk so BuildMeshLOD can stitch shared borders without cracks or\nT-junctions. A neighbor LOD less than or equal to the chunk's own LOD\n(including negative values for absent neighbors) leaves that edge unstitched.\n",
          "file": "pkg/world3d/terrain_lod.go",
          "line": 20,
          "members": [
            {
              "name": "North",
              "anchor": "TerrainEdgeLODs.North",
              "kind": "field",
              "doc": "neighbor toward -Z (smaller row)"
            },
            {
              "name": "South",
              "anchor": "TerrainEdgeLODs.South",
              "kind": "field",
              "doc": "neighbor toward +Z (larger row)"
            },
            {
              "name": "West",
              "anchor": "TerrainEdgeLODs.West",
              "kind": "field",
              "doc": "neighbor toward -X (smaller col)"
            },
            {
              "name": "East",
              "anchor": "TerrainEdgeLODs.East",
              "kind": "field",
              "doc": "neighbor toward +X (larger col)"
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainHeightLayer",
          "anchor": "TerrainHeightLayer",
          "decl": "type TerrainHeightLayer struct {\n\tWidth   int\n\tHeight  int\n\tHeights []float32\n}",
          "doc": "TerrainHeightLayer holds a CPU-readable normalized [0, 1] height texture for\none terrain material layer so [TerrainSplatMap.SampleUV] and [Heightmap.LayerAt]\ncan apply height-based blending matching the GPU terrain shader.\n",
          "file": "pkg/world3d/terrain_splat.go",
          "line": 24,
          "members": [
            {
              "name": "Width",
              "anchor": "TerrainHeightLayer.Width",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Height",
              "anchor": "TerrainHeightLayer.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Heights",
              "anchor": "TerrainHeightLayer.Heights",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadTerrainHeightLayer",
              "anchor": "LoadTerrainHeightLayer",
              "decl": "func LoadTerrainHeightLayer(img image.Image) *TerrainHeightLayer",
              "doc": "LoadTerrainHeightLayer converts a grayscale (or color, converted to 16-bit\nluminance) image into a normalized [0, 1] [TerrainHeightLayer]. Returns nil\nif img is nil or has empty bounds.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 33
            }
          ],
          "methods": [
            {
              "name": "SampleUV",
              "anchor": "TerrainHeightLayer.SampleUV",
              "recv": "*TerrainHeightLayer",
              "decl": "func (l *TerrainHeightLayer) SampleUV(u, v float32) float32",
              "doc": "SampleUV bilinearly samples the height layer at repeating texture coordinates\n(u, v), matching GPU linear-repeat texture sampling. Returns 0.5 when l is\nnil or empty.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 59
            }
          ]
        },
        {
          "name": "TerrainHit",
          "anchor": "TerrainHit",
          "decl": "type TerrainHit struct {\n\tPoint    math3d.Vec3\n\tNormal   math3d.Vec3\n\tDistance float32\n\tCol, Row int\n}",
          "doc": "TerrainHit describes the closest intersection between a ray and a Heightmap.\n",
          "file": "pkg/world3d/terrain.go",
          "line": 40,
          "members": [
            {
              "name": "Point",
              "anchor": "TerrainHit.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "TerrainHit.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Distance",
              "anchor": "TerrainHit.Distance",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Col",
              "anchor": "TerrainHit.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "TerrainHit.Row",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainImages",
          "anchor": "TerrainImages",
          "decl": "type TerrainImages struct {\n\t// Heightmap is the grayscale heightmap image (required when TerrainDoc.Size is nil; at least 2x2 pixels).\n\tHeightmap image.Image\n\t// SplatMaps holds 0, 1, or 2 RGBA weight-map images matching TerrainDoc.SplatMaps.\n\tSplatMaps []image.Image\n\t// LayerWeights optionally maps a layer's Name to its decoded grayscale weight-map PNG when per-layer weightMap paths are used instead of SplatMaps.\n\tLayerWeights map[string]image.Image\n\t// LayerHeights optionally maps a layer's Name to its decoded grayscale height map for height-based blending.\n\tLayerHeights map[string]image.Image\n\t// FoliageDensityMaps optionally maps a foliage layer's Name to its decoded grayscale density map PNG.\n\tFoliageDensityMaps map[string]image.Image\n}",
          "doc": "TerrainImages holds decoded images supplied to [TerrainDoc.BuildHeightmap]\nwhen constructing a runtime [*Heightmap] without reading from an [fs.FS].\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 159,
          "members": [
            {
              "name": "Heightmap",
              "anchor": "TerrainImages.Heightmap",
              "kind": "field",
              "doc": "Heightmap is the grayscale heightmap image (required when TerrainDoc.Size is nil; at least 2x2 pixels)."
            },
            {
              "name": "SplatMaps",
              "anchor": "TerrainImages.SplatMaps",
              "kind": "field",
              "doc": "SplatMaps holds 0, 1, or 2 RGBA weight-map images matching TerrainDoc.SplatMaps."
            },
            {
              "name": "LayerWeights",
              "anchor": "TerrainImages.LayerWeights",
              "kind": "field",
              "doc": "LayerWeights optionally maps a layer's Name to its decoded grayscale weight-map PNG when per-layer weightMap paths are used instead of SplatMaps."
            },
            {
              "name": "LayerHeights",
              "anchor": "TerrainImages.LayerHeights",
              "kind": "field",
              "doc": "LayerHeights optionally maps a layer's Name to its decoded grayscale height map for height-based blending."
            },
            {
              "name": "FoliageDensityMaps",
              "anchor": "TerrainImages.FoliageDensityMaps",
              "kind": "field",
              "doc": "FoliageDensityMaps optionally maps a foliage layer's Name to its decoded grayscale density map PNG."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainLOD",
          "anchor": "TerrainLOD",
          "decl": "type TerrainLOD struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TerrainLOD partitions a Heightmap into chunks, selects per-chunk LOD levels\nfrom camera distance with hysteresis and quality bias, culls chunk AABBs\nagainst a camera frustum, and caches crack-free stitched TerrainMesh geometry\nper chunk. It works in world space or with FloatingOrigin and ChunkStreamer.\n",
          "file": "pkg/world3d/terrain_lod.go",
          "line": 585,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTerrainLOD",
              "anchor": "NewTerrainLOD",
              "decl": "func NewTerrainLOD(hm *Heightmap, cfg TerrainLODConfig) *TerrainLOD",
              "doc": "NewTerrainLOD constructs a TerrainLOD manager for hm using cfg.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 609
            }
          ],
          "methods": [
            {
              "name": "ChunkBounds",
              "anchor": "TerrainLOD.ChunkBounds",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) ChunkBounds(coord ChunkCoord) (math3d.AABB, bool)",
              "doc": "ChunkBounds returns the world-space AABB for the chunk at coord.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 864
            },
            {
              "name": "ChunkCells",
              "anchor": "TerrainLOD.ChunkCells",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) ChunkCells() int",
              "doc": "ChunkCells returns the nominal cell count along each chunk edge.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 769
            },
            {
              "name": "ChunkCount",
              "anchor": "TerrainLOD.ChunkCount",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) ChunkCount() int",
              "doc": "ChunkCount returns the total number of chunks partitioning the heightmap.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 753
            },
            {
              "name": "ChunkLOD",
              "anchor": "TerrainLOD.ChunkLOD",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) ChunkLOD(coord ChunkCoord) (int, bool)",
              "doc": "ChunkLOD returns the most recently selected LOD level for coord, or (-1, false)\nif coord is out of bounds or has not been evaluated while active.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 878
            },
            {
              "name": "ChunkWorldSize",
              "anchor": "TerrainLOD.ChunkWorldSize",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) ChunkWorldSize() float64",
              "doc": "ChunkWorldSize returns the world-space width of a full chunk (ChunkCells *\nHeightmap.CellSize), suitable for configuring ChunkStreamerConfig.ChunkSize.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 778
            },
            {
              "name": "EvictHiddenMeshes",
              "anchor": "TerrainLOD.EvictHiddenMeshes",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) EvictHiddenMeshes()",
              "doc": "EvictHiddenMeshes frees cached TerrainMesh buffers for chunks that were not\nvisible in the most recent Update.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 916
            },
            {
              "name": "GridSize",
              "anchor": "TerrainLOD.GridSize",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) GridSize() (cols, rows int)",
              "doc": "GridSize returns the number of terrain chunks along X (cols) and Z (rows).\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 761
            },
            {
              "name": "InvalidateAll",
              "anchor": "TerrainLOD.InvalidateAll",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) InvalidateAll()",
              "doc": "InvalidateAll recomputes every chunk AABB and forces all cached meshes to\nrebuild as they become visible.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 904
            },
            {
              "name": "InvalidateChunk",
              "anchor": "TerrainLOD.InvalidateChunk",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) InvalidateChunk(coord ChunkCoord)",
              "doc": "InvalidateChunk recomputes the AABB for coord and forces its mesh to rebuild\non the next Update (for example after editing Heightmap.Heights in place).\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 892
            },
            {
              "name": "IsChunkActive",
              "anchor": "TerrainLOD.IsChunkActive",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) IsChunkActive(coord ChunkCoord) bool",
              "doc": "IsChunkActive reports whether coord is a valid chunk coordinate in t and is\ncurrently active.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 855
            },
            {
              "name": "LODBias",
              "anchor": "TerrainLOD.LODBias",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) LODBias() float32",
              "doc": "LODBias returns the current LOD bias.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 794
            },
            {
              "name": "MaxLOD",
              "anchor": "TerrainLOD.MaxLOD",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) MaxLOD() int",
              "doc": "MaxLOD returns the coarsest LOD index managed by t.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 786
            },
            {
              "name": "SetChunkActive",
              "anchor": "TerrainLOD.SetChunkActive",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) SetChunkActive(coord ChunkCoord, active bool)",
              "doc": "SetChunkActive activates or deactivates the chunk at coord (typically called\nfrom ChunkStreamer's OnLoad and OnUnload callbacks when StreamManaged is\ntrue). Deactivating a chunk releases its cached mesh; neighboring seams\nautomatically re-stitch on the next Update.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 835
            },
            {
              "name": "SetLODBias",
              "anchor": "TerrainLOD.SetLODBias",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) SetLODBias(bias float32)",
              "doc": "SetLODBias updates the LOD bias (threshold scale = 2^(-bias)) and resets\nper-chunk hysteresis memory so the next Update reflects the new bias\nimmediately.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 814
            },
            {
              "name": "SetQualityLevel",
              "anchor": "TerrainLOD.SetQualityLevel",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) SetQualityLevel(level quality.Level)",
              "doc": "SetQualityLevel applies TerrainLODBiasFor(level) to t.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 827
            },
            {
              "name": "Stats",
              "anchor": "TerrainLOD.Stats",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) Stats() TerrainLODStats",
              "doc": "Stats returns summary statistics from the most recent Update or\nUpdateWithOrigin call.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 930
            },
            {
              "name": "Update",
              "anchor": "TerrainLOD.Update",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) Update(camPos math3d.Vec3, frustum *math3d.Frustum) []TerrainLODChunk",
              "doc": "Update selects per-chunk LOD levels for a world-space camera at camPos, culls\nchunk bounds against frustum (when non-nil), builds or reuses crack-free\nstitched meshes for visible chunks, and returns the visible chunk slice.\n\nThe returned slice aliases internal storage reused across calls; copy any\nfields needed past the next Update.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 943
            },
            {
              "name": "UpdateWithOrigin",
              "anchor": "TerrainLOD.UpdateWithOrigin",
              "recv": "*TerrainLOD",
              "decl": "func (t *TerrainLOD) UpdateWithOrigin(camLocal math3d.Vec3, frustumLocal *math3d.Frustum, origin *FloatingOrigin) []TerrainLODChunk",
              "doc": "UpdateWithOrigin advances terrain LOD selection and frustum culling using a\ncamera and frustum expressed in FloatingOrigin local space.\n\nCamera-to-chunk distances are evaluated in float64 world space so LOD\nselection is completely invariant to FloatingOrigin rebasing. Each returned\nTerrainLODChunk carries Bounds and a translation Transform in local space,\nallowing cached chunk meshes to render cleanly across rebases without\nrebuilding vertex buffers.\n",
              "file": "pkg/world3d/terrain_lod.go",
              "line": 955
            }
          ]
        },
        {
          "name": "TerrainLODChunk",
          "anchor": "TerrainLODChunk",
          "decl": "type TerrainLODChunk struct {\n\tCoord     ChunkCoord\n\tCol       int\n\tRow       int\n\tCols      int\n\tRows      int\n\tLOD       int\n\tEdges     TerrainEdgeLODs\n\tBounds    math3d.AABB\n\tTransform math3d.Mat4\n\tMesh      *TerrainMesh\n\tRevision  uint64\n\tChanged   bool\n}",
          "doc": "TerrainLODChunk describes one visible terrain chunk returned by\nTerrainLOD.Update or TerrainLOD.UpdateWithOrigin.\n",
          "file": "pkg/world3d/terrain_lod.go",
          "line": 533,
          "members": [
            {
              "name": "Coord",
              "anchor": "TerrainLODChunk.Coord",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Col",
              "anchor": "TerrainLODChunk.Col",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Row",
              "anchor": "TerrainLODChunk.Row",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Cols",
              "anchor": "TerrainLODChunk.Cols",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Rows",
              "anchor": "TerrainLODChunk.Rows",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "LOD",
              "anchor": "TerrainLODChunk.LOD",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Edges",
              "anchor": "TerrainLODChunk.Edges",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Bounds",
              "anchor": "TerrainLODChunk.Bounds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Transform",
              "anchor": "TerrainLODChunk.Transform",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Mesh",
              "anchor": "TerrainLODChunk.Mesh",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Revision",
              "anchor": "TerrainLODChunk.Revision",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Changed",
              "anchor": "TerrainLODChunk.Changed",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainLODConfig",
          "anchor": "TerrainLODConfig",
          "decl": "type TerrainLODConfig struct {\n\t// ChunkCells is the number of heightmap grid cells along each chunk edge.\n\t// Defaults to 64 when <= 0.\n\tChunkCells int\n\n\t// Distances lists the maximum camera-to-chunk-AABB distance for LOD 0, 1,\n\t// ... in world units. Chunks beyond the last entry use the coarsest level.\n\t// When empty, geometric distances starting at 1.0 * ChunkWorldSize (doubling\n\t// per LOD level up to MaxLOD) are generated automatically.\n\tDistances []float32\n\n\t// Hysteresis is the relative deadband in (0, 0.5] around each LOD distance\n\t// threshold to prevent popping when the camera oscillates near a boundary.\n\t// Zero uses the default 0.10 (10%); negative values disable hysteresis.\n\tHysteresis float32\n\n\t// LODBias shifts LOD distance thresholds by 2^(-LODBias). Positive values\n\t// choose coarser LODs at shorter distances (fewer triangles); negative values\n\t// keep finer detail farther away. Use TerrainLODBiasFor(level) to derive a\n\t// bias from a game-wide quality preset.\n\tLODBias float32\n\n\t// MaxLOD optionally caps the coarsest LOD level (vertex stride 1<<MaxLOD).\n\t// When <= 0, MaxLOD is derived from ChunkCells so stride reaches ChunkCells.\n\tMaxLOD int\n\n\t// WorldOrigin places the heightmap's (0, 0) sample in double-precision world\n\t// space for FloatingOrigin and ChunkStreamer integration. When HasWorldOrigin\n\t// is false and WorldOrigin is zero, Heightmap.Origin is used.\n\tWorldOrigin    WorldPos64\n\tHasWorldOrigin bool\n\n\t// StreamManaged, when true, starts with all chunks inactive so a\n\t// ChunkStreamer activates and deactivates chunks via SetChunkActive.\n\t// When false (default), every chunk covering the heightmap is active.\n\tStreamManaged bool\n}",
          "doc": "TerrainLODConfig configures a TerrainLOD chunk manager.\n",
          "file": "pkg/world3d/terrain_lod.go",
          "line": 493,
          "members": [
            {
              "name": "ChunkCells",
              "anchor": "TerrainLODConfig.ChunkCells",
              "kind": "field",
              "doc": "ChunkCells is the number of heightmap grid cells along each chunk edge.\nDefaults to 64 when <= 0."
            },
            {
              "name": "Distances",
              "anchor": "TerrainLODConfig.Distances",
              "kind": "field",
              "doc": "Distances lists the maximum camera-to-chunk-AABB distance for LOD 0, 1,\n... in world units. Chunks beyond the last entry use the coarsest level.\nWhen empty, geometric distances starting at 1.0 * ChunkWorldSize (doubling\nper LOD level up to MaxLOD) are generated automatically."
            },
            {
              "name": "Hysteresis",
              "anchor": "TerrainLODConfig.Hysteresis",
              "kind": "field",
              "doc": "Hysteresis is the relative deadband in (0, 0.5] around each LOD distance\nthreshold to prevent popping when the camera oscillates near a boundary.\nZero uses the default 0.10 (10%); negative values disable hysteresis."
            },
            {
              "name": "LODBias",
              "anchor": "TerrainLODConfig.LODBias",
              "kind": "field",
              "doc": "LODBias shifts LOD distance thresholds by 2^(-LODBias). Positive values\nchoose coarser LODs at shorter distances (fewer triangles); negative values\nkeep finer detail farther away. Use TerrainLODBiasFor(level) to derive a\nbias from a game-wide quality preset."
            },
            {
              "name": "MaxLOD",
              "anchor": "TerrainLODConfig.MaxLOD",
              "kind": "field",
              "doc": "MaxLOD optionally caps the coarsest LOD level (vertex stride 1<<MaxLOD).\nWhen <= 0, MaxLOD is derived from ChunkCells so stride reaches ChunkCells."
            },
            {
              "name": "WorldOrigin",
              "anchor": "TerrainLODConfig.WorldOrigin",
              "kind": "field",
              "doc": "WorldOrigin places the heightmap's (0, 0) sample in double-precision world\nspace for FloatingOrigin and ChunkStreamer integration. When HasWorldOrigin\nis false and WorldOrigin is zero, Heightmap.Origin is used."
            },
            {
              "name": "HasWorldOrigin",
              "anchor": "TerrainLODConfig.HasWorldOrigin",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "StreamManaged",
              "anchor": "TerrainLODConfig.StreamManaged",
              "kind": "field",
              "doc": "StreamManaged, when true, starts with all chunks inactive so a\nChunkStreamer activates and deactivates chunks via SetChunkActive.\nWhen false (default), every chunk covering the heightmap is active."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainLODStats",
          "anchor": "TerrainLODStats",
          "decl": "type TerrainLODStats struct {\n\tTotalChunks    int\n\tActiveChunks   int\n\tVisibleChunks  int\n\tCulledChunks   int\n\tRebuiltChunks  int\n\tTotalTriangles int\n\tTotalVertices  int\n}",
          "doc": "TerrainLODStats summarizes the most recent TerrainLOD update.\n",
          "file": "pkg/world3d/terrain_lod.go",
          "line": 549,
          "members": [
            {
              "name": "TotalChunks",
              "anchor": "TerrainLODStats.TotalChunks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "ActiveChunks",
              "anchor": "TerrainLODStats.ActiveChunks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "VisibleChunks",
              "anchor": "TerrainLODStats.VisibleChunks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "CulledChunks",
              "anchor": "TerrainLODStats.CulledChunks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "RebuiltChunks",
              "anchor": "TerrainLODStats.RebuiltChunks",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalTriangles",
              "anchor": "TerrainLODStats.TotalTriangles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "TotalVertices",
              "anchor": "TerrainLODStats.TotalVertices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainLayerDoc",
          "anchor": "TerrainLayerDoc",
          "decl": "type TerrainLayerDoc struct {\n\t// Name is the unique gameplay and authoring identifier for this layer (such as \"grass\", \"dirt\", \"rock\", \"snow\").\n\tName string `yaml:\"name\" schema:\"required,minLength=1\"`\n\t// Material is an optional asset path to a material resource file (such as materials/grass.material.yaml) supplying default base color, texture, roughness, and metallic values.\n\tMaterial string `yaml:\"material,omitempty\"`\n\t// WeightMap is an optional asset path to a per-layer grayscale weight-map PNG covering the terrain footprint; mutually exclusive with top-level splatMaps.\n\tWeightMap string `yaml:\"weightMap,omitempty\"`\n\t// Albedo is the asset path to the sRGB base-color texture.\n\tAlbedo string `yaml:\"albedo,omitempty\"`\n\t// Normal is the asset path to the linear tangent-space normal map.\n\tNormal string `yaml:\"normal,omitempty\"`\n\t// MetallicRoughness is the asset path to the glTF metallic-roughness map (G = roughness, B = metallic).\n\tMetallicRoughness string `yaml:\"metallicRoughness,omitempty\"`\n\t// Height is the asset path to the optional grayscale height map used for height-based blending.\n\tHeight string `yaml:\"height,omitempty\"`\n\t// Color is the linear RGB tint multiplier in [0, 1]^3; omitted defaults to [1, 1, 1].\n\tColor *[3]float32 `yaml:\"color,omitempty\"`\n\t// Roughness is the layer roughness factor in [0, 1]; omitted defaults to 1 when metallicRoughness is set or 0.85 otherwise.\n\tRoughness *float32 `yaml:\"roughness,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Metallic is the layer metallic factor in [0, 1]; omitted defaults to 0.\n\tMetallic float32 `yaml:\"metallic,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// NormalScale scales the XY components of the tangent-space normal map; omitted defaults to 1.\n\tNormalScale *float32 `yaml:\"normalScale,omitempty\"`\n\t// UVScale is the per-layer UV tiling multiplier [u, v] across the terrain; omitted defaults to [1, 1].\n\tUVScale *[2]float32 `yaml:\"uvScale,omitempty\"`\n\t// HeightBias biases this layer's height map during height-based blending in [-1, 1].\n\tHeightBias float32 `yaml:\"heightBias,omitempty\" schema:\"minimum=-1,maximum=1\"`\n}",
          "doc": "TerrainLayerDoc describes one PBR terrain material layer in a [TerrainDoc].\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 84,
          "members": [
            {
              "name": "Name",
              "anchor": "TerrainLayerDoc.Name",
              "kind": "field",
              "doc": "Name is the unique gameplay and authoring identifier for this layer (such as \"grass\", \"dirt\", \"rock\", \"snow\")."
            },
            {
              "name": "Material",
              "anchor": "TerrainLayerDoc.Material",
              "kind": "field",
              "doc": "Material is an optional asset path to a material resource file (such as materials/grass.material.yaml) supplying default base color, texture, roughness, and metallic values."
            },
            {
              "name": "WeightMap",
              "anchor": "TerrainLayerDoc.WeightMap",
              "kind": "field",
              "doc": "WeightMap is an optional asset path to a per-layer grayscale weight-map PNG covering the terrain footprint; mutually exclusive with top-level splatMaps."
            },
            {
              "name": "Albedo",
              "anchor": "TerrainLayerDoc.Albedo",
              "kind": "field",
              "doc": "Albedo is the asset path to the sRGB base-color texture."
            },
            {
              "name": "Normal",
              "anchor": "TerrainLayerDoc.Normal",
              "kind": "field",
              "doc": "Normal is the asset path to the linear tangent-space normal map."
            },
            {
              "name": "MetallicRoughness",
              "anchor": "TerrainLayerDoc.MetallicRoughness",
              "kind": "field",
              "doc": "MetallicRoughness is the asset path to the glTF metallic-roughness map (G = roughness, B = metallic)."
            },
            {
              "name": "Height",
              "anchor": "TerrainLayerDoc.Height",
              "kind": "field",
              "doc": "Height is the asset path to the optional grayscale height map used for height-based blending."
            },
            {
              "name": "Color",
              "anchor": "TerrainLayerDoc.Color",
              "kind": "field",
              "doc": "Color is the linear RGB tint multiplier in [0, 1]^3; omitted defaults to [1, 1, 1]."
            },
            {
              "name": "Roughness",
              "anchor": "TerrainLayerDoc.Roughness",
              "kind": "field",
              "doc": "Roughness is the layer roughness factor in [0, 1]; omitted defaults to 1 when metallicRoughness is set or 0.85 otherwise."
            },
            {
              "name": "Metallic",
              "anchor": "TerrainLayerDoc.Metallic",
              "kind": "field",
              "doc": "Metallic is the layer metallic factor in [0, 1]; omitted defaults to 0."
            },
            {
              "name": "NormalScale",
              "anchor": "TerrainLayerDoc.NormalScale",
              "kind": "field",
              "doc": "NormalScale scales the XY components of the tangent-space normal map; omitted defaults to 1."
            },
            {
              "name": "UVScale",
              "anchor": "TerrainLayerDoc.UVScale",
              "kind": "field",
              "doc": "UVScale is the per-layer UV tiling multiplier [u, v] across the terrain; omitted defaults to [1, 1]."
            },
            {
              "name": "HeightBias",
              "anchor": "TerrainLayerDoc.HeightBias",
              "kind": "field",
              "doc": "HeightBias biases this layer's height map during height-based blending in [-1, 1]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveColor",
              "anchor": "TerrainLayerDoc.EffectiveColor",
              "recv": "TerrainLayerDoc",
              "decl": "func (l TerrainLayerDoc) EffectiveColor() [3]float32",
              "doc": "EffectiveColor returns l.Color when set, or linear white [1, 1, 1] when omitted.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 477
            },
            {
              "name": "EffectiveNormalScale",
              "anchor": "TerrainLayerDoc.EffectiveNormalScale",
              "recv": "TerrainLayerDoc",
              "decl": "func (l TerrainLayerDoc) EffectiveNormalScale() float32",
              "doc": "EffectiveNormalScale returns l.NormalScale when set, or 1.0 when omitted.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 497
            },
            {
              "name": "EffectiveRoughness",
              "anchor": "TerrainLayerDoc.EffectiveRoughness",
              "recv": "TerrainLayerDoc",
              "decl": "func (l TerrainLayerDoc) EffectiveRoughness() float32",
              "doc": "EffectiveRoughness returns l.Roughness when set, 1.0 when MetallicRoughness\nis set, or [DefaultTerrainLayerRoughness] (0.85) otherwise.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 486
            },
            {
              "name": "EffectiveUVScale",
              "anchor": "TerrainLayerDoc.EffectiveUVScale",
              "recv": "TerrainLayerDoc",
              "decl": "func (l TerrainLayerDoc) EffectiveUVScale() math3d.Vec2",
              "doc": "EffectiveUVScale returns l.UVScale when set, or [1, 1] when omitted.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 505
            }
          ]
        },
        {
          "name": "TerrainLayerInfo",
          "anchor": "TerrainLayerInfo",
          "decl": "type TerrainLayerInfo struct {\n\t// Name is the gameplay surface identifier (such as \"grass\", \"dirt\", \"rock\", \"snow\").\n\tName string\n\t// UVScale scales terrain [0, 1] UVs when sampling HeightMap; zero components default to 1.\n\tUVScale math3d.Vec2\n\t// HeightBias biases this layer's height during height-based blending (typically in [-1, 1]).\n\tHeightBias float32\n\t// HeightMap optionally supplies a tiling height map for height-based blending; nil uses 0.5.\n\tHeightMap *TerrainHeightLayer\n}",
          "doc": "TerrainLayerInfo describes one material layer's gameplay identity and\nheight-blending parameters inside a [TerrainSplatMap].\n",
          "file": "pkg/world3d/terrain_splat.go",
          "line": 87,
          "members": [
            {
              "name": "Name",
              "anchor": "TerrainLayerInfo.Name",
              "kind": "field",
              "doc": "Name is the gameplay surface identifier (such as \"grass\", \"dirt\", \"rock\", \"snow\")."
            },
            {
              "name": "UVScale",
              "anchor": "TerrainLayerInfo.UVScale",
              "kind": "field",
              "doc": "UVScale scales terrain [0, 1] UVs when sampling HeightMap; zero components default to 1."
            },
            {
              "name": "HeightBias",
              "anchor": "TerrainLayerInfo.HeightBias",
              "kind": "field",
              "doc": "HeightBias biases this layer's height during height-based blending (typically in [-1, 1])."
            },
            {
              "name": "HeightMap",
              "anchor": "TerrainLayerInfo.HeightMap",
              "kind": "field",
              "doc": "HeightMap optionally supplies a tiling height map for height-based blending; nil uses 0.5."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainLayerSample",
          "anchor": "TerrainLayerSample",
          "decl": "type TerrainLayerSample struct {\n\t// Dominant is the index in [0, Count) of the layer with the highest normalized weight.\n\t// Ties break deterministically in favor of the lower layer index.\n\tDominant int\n\t// Name is the configured name of the Dominant layer.\n\tName string\n\t// Weights holds the normalized per-layer weights in [0, 1] summing to 1 across [0, Count).\n\t// Entries at indices >= Count are zero.\n\tWeights [MaxTerrainLayers]float32\n\t// Count is the number of active layers in [0, MaxTerrainLayers].\n\tCount int\n}",
          "doc": "TerrainLayerSample is the zero-allocation result of sampling terrain material\nlayers at a world position or terrain UV for footsteps, particles, and\nmovement logic.\n",
          "file": "pkg/world3d/terrain_splat.go",
          "line": 113,
          "members": [
            {
              "name": "Dominant",
              "anchor": "TerrainLayerSample.Dominant",
              "kind": "field",
              "doc": "Dominant is the index in [0, Count) of the layer with the highest normalized weight.\nTies break deterministically in favor of the lower layer index."
            },
            {
              "name": "Name",
              "anchor": "TerrainLayerSample.Name",
              "kind": "field",
              "doc": "Name is the configured name of the Dominant layer."
            },
            {
              "name": "Weights",
              "anchor": "TerrainLayerSample.Weights",
              "kind": "field",
              "doc": "Weights holds the normalized per-layer weights in [0, 1] summing to 1 across [0, Count).\nEntries at indices >= Count are zero."
            },
            {
              "name": "Count",
              "anchor": "TerrainLayerSample.Count",
              "kind": "field",
              "doc": "Count is the number of active layers in [0, MaxTerrainLayers]."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Weight",
              "anchor": "TerrainLayerSample.Weight",
              "recv": "TerrainLayerSample",
              "decl": "func (s TerrainLayerSample) Weight(index int) float32",
              "doc": "Weight returns the normalized weight of layer index, or 0 if index is out of range.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 127
            }
          ]
        },
        {
          "name": "TerrainMesh",
          "anchor": "TerrainMesh",
          "decl": "type TerrainMesh struct {\n\tPositions []math3d.Vec3\n\tNormals   []math3d.Vec3\n\tUVs       []math3d.Vec2\n\tIndices   []uint32\n}",
          "doc": "TerrainMesh holds indexed triangle-list geometry for a heightmap chunk ready\nfor upload to a GPU vertex and index buffer. Triangles use counter-clockwise\nwinding when viewed from +Y.\n",
          "file": "pkg/world3d/terrain.go",
          "line": 50,
          "members": [
            {
              "name": "Positions",
              "anchor": "TerrainMesh.Positions",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normals",
              "anchor": "TerrainMesh.Normals",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "UVs",
              "anchor": "TerrainMesh.UVs",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Indices",
              "anchor": "TerrainMesh.Indices",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TerrainSplatMap",
          "anchor": "TerrainSplatMap",
          "decl": "type TerrainSplatMap struct {\n\t// Layers holds the 1..8 material layer definitions in splat-channel order.\n\tLayers []TerrainLayerInfo\n\t// HeightBlendContrast controls optional height-based weight sharpening in [0, 1].\n\t// Zero disables height blending (pure linear splat weights).\n\tHeightBlendContrast float32\n\t// Origin is the world-space (X, Z) origin used by [TerrainSplatMap.LayerAt].\n\tOrigin math3d.Vec2\n\t// Size is the world-space (X, Z) footprint used by [TerrainSplatMap.LayerAt].\n\t// When zero or non-positive, [TerrainSplatMap.LayerAt] treats (x, z) directly as UVs.\n\tSize math3d.Vec2\n\t// contains filtered or unexported fields\n}",
          "doc": "TerrainSplatMap stores 1 or 2 RGBA weight (splat) maps and up to 8 layer\ndefinitions for CPU-side gameplay queries via [TerrainSplatMap.SampleUV],\n[TerrainSplatMap.LayerAt], and [Heightmap.LayerAt].\n\nSplat map 0's R, G, B, A channels drive layers 0..3; splat map 1's R, G, B, A\nchannels drive layers 4..7. Sampling uses bilinear texel-center interpolation\nwith edge clamping, matching GPU linear clamp-to-edge sampling.\n",
          "file": "pkg/world3d/terrain_splat.go",
          "line": 232,
          "members": [
            {
              "name": "Layers",
              "anchor": "TerrainSplatMap.Layers",
              "kind": "field",
              "doc": "Layers holds the 1..8 material layer definitions in splat-channel order."
            },
            {
              "name": "HeightBlendContrast",
              "anchor": "TerrainSplatMap.HeightBlendContrast",
              "kind": "field",
              "doc": "HeightBlendContrast controls optional height-based weight sharpening in [0, 1].\nZero disables height blending (pure linear splat weights)."
            },
            {
              "name": "Origin",
              "anchor": "TerrainSplatMap.Origin",
              "kind": "field",
              "doc": "Origin is the world-space (X, Z) origin used by [TerrainSplatMap.LayerAt]."
            },
            {
              "name": "Size",
              "anchor": "TerrainSplatMap.Size",
              "kind": "field",
              "doc": "Size is the world-space (X, Z) footprint used by [TerrainSplatMap.LayerAt].\nWhen zero or non-positive, [TerrainSplatMap.LayerAt] treats (x, z) directly as UVs."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "LoadTerrainSplatMap",
              "anchor": "LoadTerrainSplatMap",
              "decl": "func LoadTerrainSplatMap(layers []TerrainLayerInfo, maps ...image.Image) (*TerrainSplatMap, error)",
              "doc": "LoadTerrainSplatMap constructs a [TerrainSplatMap] from 1..8 layer definitions\nand 1 or 2 RGBA splat-map images (splat0 for layers 0..3, optional splat1 for\nlayers 4..7). Note that standard [*image.NRGBA] preserves all 4 channels\nverbatim including zero-alpha texels.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 253
            },
            {
              "name": "LoadTerrainSplatMapFromWeights",
              "anchor": "LoadTerrainSplatMapFromWeights",
              "decl": "func LoadTerrainSplatMapFromWeights(layers []TerrainLayerInfo, weights []image.Image) (*TerrainSplatMap, error)",
              "doc": "LoadTerrainSplatMapFromWeights constructs a [TerrainSplatMap] from 1..8 layer\ndefinitions and per-layer grayscale weight-map images. Trailing omitted\nentries in weights default to zero weight; images with different dimensions\nare resampled to match the first non-nil weight image.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 443
            },
            {
              "name": "NewTerrainSplatMapFromRGBA",
              "anchor": "NewTerrainSplatMapFromRGBA",
              "decl": "func NewTerrainSplatMapFromRGBA(width, height int, layers []TerrainLayerInfo, splat0, splat1 []byte) (*TerrainSplatMap, error)",
              "doc": "NewTerrainSplatMapFromRGBA constructs a [TerrainSplatMap] from tightly packed\nstraight-alpha RGBA8 byte buffers (width × height × 4 bytes each). splat1 may\nbe nil when len(layers) <= 4.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 291
            }
          ],
          "methods": [
            {
              "name": "Height",
              "anchor": "TerrainSplatMap.Height",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) Height() int",
              "doc": "Height returns the texel height of splat map 0, or 0 for a nil splat map.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 471
            },
            {
              "name": "LayerAt",
              "anchor": "TerrainSplatMap.LayerAt",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) LayerAt(x, z float32) TerrainLayerSample",
              "doc": "LayerAt maps world coordinates (x, z) using s.Origin and s.Size, clamps to\nthe terrain's [0, 1] UV extent, and returns the dominant layer and normalized\nweights. When attached to a [Heightmap], prefer [Heightmap.LayerAt], which\nderives UV bounds automatically from the heightmap's Origin, Cols, Rows, and\nCellSize.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 738
            },
            {
              "name": "LayerCount",
              "anchor": "TerrainSplatMap.LayerCount",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) LayerCount() int",
              "doc": "LayerCount returns the number of active layers in s (0 for nil).\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 570
            },
            {
              "name": "LayerIndex",
              "anchor": "TerrainSplatMap.LayerIndex",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) LayerIndex(name string) int",
              "doc": "LayerIndex returns the index of the first layer named name, or -1 if not found.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 586
            },
            {
              "name": "LayerName",
              "anchor": "TerrainSplatMap.LayerName",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) LayerName(index int) string",
              "doc": "LayerName returns the name of layer index, or \"\" if out of range.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 578
            },
            {
              "name": "LayerWeightImage",
              "anchor": "TerrainSplatMap.LayerWeightImage",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) LayerWeightImage(layer int) *image.Gray",
              "doc": "LayerWeightImage extracts layer's weight channel (0..7) as an 8-bit grayscale\nimage, or nil if s is nil or layer is out of range.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 542
            },
            {
              "name": "SampleUV",
              "anchor": "TerrainSplatMap.SampleUV",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) SampleUV(u, v float32) TerrainLayerSample",
              "doc": "SampleUV samples the splat map(s) at normalized terrain UV coordinates (u, v),\nclamping out-of-bounds UVs to [0, 1], applying optional height-based blending,\nand returning the dominant layer and normalized per-layer weights.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 681
            },
            {
              "name": "SetTexelWeight",
              "anchor": "TerrainSplatMap.SetTexelWeight",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) SetTexelWeight(layer, x, y int, weight float32)",
              "doc": "SetTexelWeight writes a clamped [0, 1] weight for layer at texel (x, y).\nOut-of-range coordinates or layers are ignored.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 501
            },
            {
              "name": "SplatImages",
              "anchor": "TerrainSplatMap.SplatImages",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) SplatImages() (splat0, splat1 *image.NRGBA)",
              "doc": "SplatImages returns copies of s's RGBA splat map(s) as [*image.NRGBA] images\n(splat1 is nil when s has at most 4 layers).\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 527
            },
            {
              "name": "TexelWeight",
              "anchor": "TerrainSplatMap.TexelWeight",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) TexelWeight(layer, x, y int) float32",
              "doc": "TexelWeight returns the raw weight in [0, 1] stored for layer at texel (x, y),\nor 0 if out of range.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 480
            },
            {
              "name": "Width",
              "anchor": "TerrainSplatMap.Width",
              "recv": "*TerrainSplatMap",
              "decl": "func (s *TerrainSplatMap) Width() int",
              "doc": "Width returns the texel width of splat map 0, or 0 for a nil splat map.\n",
              "file": "pkg/world3d/terrain_splat.go",
              "line": 463
            }
          ]
        },
        {
          "name": "TerrainTriplanarDoc",
          "anchor": "TerrainTriplanarDoc",
          "decl": "type TerrainTriplanarDoc struct {\n\t// Enabled activates triplanar projection on steep slopes whose upward normal falls below SlopeThreshold.\n\tEnabled bool `yaml:\"enabled,omitempty\"`\n\t// SlopeThreshold is the world normal Y threshold in [0, 1] below which triplanar projection begins blending in; omitted or 0 defaults to 0.7.\n\tSlopeThreshold float32 `yaml:\"slopeThreshold,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// SlopeBlend is the transition width in [0, 1] over which planar UVs cross-fade into triplanar projection; omitted or 0 defaults to 0.15.\n\tSlopeBlend float32 `yaml:\"slopeBlend,omitempty\" schema:\"minimum=0,maximum=1\"`\n\t// Sharpness controls triplanar axis blend sharpness (typically 1..16); omitted or 0 defaults to 4.\n\tSharpness float32 `yaml:\"sharpness,omitempty\" schema:\"exclusiveMinimum=0\"`\n\t// Scale is the world-space triplanar repeat rate (repeats per world unit); omitted or 0 defaults to 0.25.\n\tScale float32 `yaml:\"scale,omitempty\" schema:\"exclusiveMinimum=0\"`\n}",
          "doc": "TerrainTriplanarDoc configures slope-driven triplanar projection in a [TerrainDoc].\n",
          "file": "pkg/world3d/terrain_format.go",
          "line": 70,
          "members": [
            {
              "name": "Enabled",
              "anchor": "TerrainTriplanarDoc.Enabled",
              "kind": "field",
              "doc": "Enabled activates triplanar projection on steep slopes whose upward normal falls below SlopeThreshold."
            },
            {
              "name": "SlopeThreshold",
              "anchor": "TerrainTriplanarDoc.SlopeThreshold",
              "kind": "field",
              "doc": "SlopeThreshold is the world normal Y threshold in [0, 1] below which triplanar projection begins blending in; omitted or 0 defaults to 0.7."
            },
            {
              "name": "SlopeBlend",
              "anchor": "TerrainTriplanarDoc.SlopeBlend",
              "kind": "field",
              "doc": "SlopeBlend is the transition width in [0, 1] over which planar UVs cross-fade into triplanar projection; omitted or 0 defaults to 0.15."
            },
            {
              "name": "Sharpness",
              "anchor": "TerrainTriplanarDoc.Sharpness",
              "kind": "field",
              "doc": "Sharpness controls triplanar axis blend sharpness (typically 1..16); omitted or 0 defaults to 4."
            },
            {
              "name": "Scale",
              "anchor": "TerrainTriplanarDoc.Scale",
              "kind": "field",
              "doc": "Scale is the world-space triplanar repeat rate (repeats per world unit); omitted or 0 defaults to 0.25."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "EffectiveScale",
              "anchor": "TerrainTriplanarDoc.EffectiveScale",
              "recv": "*TerrainTriplanarDoc",
              "decl": "func (t *TerrainTriplanarDoc) EffectiveScale() float32",
              "doc": "EffectiveScale returns t.Scale, defaulting to 0.25 when zero.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 537
            },
            {
              "name": "EffectiveSharpness",
              "anchor": "TerrainTriplanarDoc.EffectiveSharpness",
              "recv": "*TerrainTriplanarDoc",
              "decl": "func (t *TerrainTriplanarDoc) EffectiveSharpness() float32",
              "doc": "EffectiveSharpness returns t.Sharpness, defaulting to 4.0 when zero.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 529
            },
            {
              "name": "EffectiveSlopeBlend",
              "anchor": "TerrainTriplanarDoc.EffectiveSlopeBlend",
              "recv": "*TerrainTriplanarDoc",
              "decl": "func (t *TerrainTriplanarDoc) EffectiveSlopeBlend() float32",
              "doc": "EffectiveSlopeBlend returns t.SlopeBlend, defaulting to 0.15 when zero.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 521
            },
            {
              "name": "EffectiveSlopeThreshold",
              "anchor": "TerrainTriplanarDoc.EffectiveSlopeThreshold",
              "recv": "*TerrainTriplanarDoc",
              "decl": "func (t *TerrainTriplanarDoc) EffectiveSlopeThreshold() float32",
              "doc": "EffectiveSlopeThreshold returns t.SlopeThreshold, defaulting to 0.7 when zero.\n",
              "file": "pkg/world3d/terrain_format.go",
              "line": 513
            }
          ]
        },
        {
          "name": "TiledNavMesh",
          "anchor": "TiledNavMesh",
          "decl": "type TiledNavMesh struct {\n\tVerticalTolerance float32\n\t// contains filtered or unexported fields\n}",
          "doc": "TiledNavMesh is a 3D navigation mesh partitioned into fixed-size XZ tiles that\ncan be baked, added, removed, and replaced independently at runtime (including\nvia NavTileStreamer / ChunkStreamer). Polygons are automatically linked in full 3D\nacross tile borders (preserving multi-level separation), dynamic obstacles rebuild\nonly the touched tiles, a two-level 3D spatial index avoids whole-mesh scans, and\nper-tile versions + watchers invalidate paths crossing changed tiles.\n\nTiledNavMesh is deterministic and is not safe for concurrent mutation.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 476,
          "members": [
            {
              "name": "VerticalTolerance",
              "anchor": "TiledNavMesh.VerticalTolerance",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "BuildTiledNavMesh",
              "anchor": "BuildTiledNavMesh",
              "decl": "func BuildTiledNavMesh(polys [][]math3d.Vec3, maxSlopeRad, tileSize float32) *TiledNavMesh",
              "doc": "BuildTiledNavMesh constructs a 3D TiledNavMesh from convex walkable 3D polygons using fixed square XZ tiles of size tileSize.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 549
            },
            {
              "name": "BuildTiledNavMeshWithAreas",
              "anchor": "BuildTiledNavMeshWithAreas",
              "decl": "func BuildTiledNavMeshWithAreas(polys []NavPolygonInput, maxSlopeRad, tileSize float32) *TiledNavMesh",
              "doc": "BuildTiledNavMeshWithAreas constructs a 3D TiledNavMesh from convex 3D polygons carrying per-polygon areas and flags.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 562
            },
            {
              "name": "NewTiledNavMesh",
              "anchor": "NewTiledNavMesh",
              "decl": "func NewTiledNavMesh(cfg TiledNavMeshConfig) *TiledNavMesh",
              "doc": "NewTiledNavMesh creates an empty 3D TiledNavMesh with cfg.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 512
            }
          ],
          "methods": [
            {
              "name": "AddObstacle",
              "anchor": "TiledNavMesh.AddObstacle",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) AddObstacle(obs NavObstacle) (NavObstacleID, bool)",
              "doc": "AddObstacle registers a dynamic 3D obstacle and rebuilds only the touched tiles\n(or defers rebuild until Batch returns if called inside Batch).\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1316
            },
            {
              "name": "AddTile",
              "anchor": "TiledNavMesh.AddTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) AddTile(coord ChunkCoord, tile *NavTile) bool",
              "doc": "AddTile installs tile at coord only if no tile currently exists at coord.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 767
            },
            {
              "name": "AddTileListener",
              "anchor": "TiledNavMesh.AddTileListener",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) AddTileListener(fn func(NavTileChange)) NavListenerID",
              "doc": "AddTileListener registers fn to be invoked whenever any tile is added, updated, or removed.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1526
            },
            {
              "name": "BakeTile",
              "anchor": "TiledNavMesh.BakeTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) BakeTile(coord ChunkCoord, polys []NavPolygonInput) *NavTile",
              "doc": "BakeTile bakes polys into a 3D NavTile for coord using tm's TileSize, Origin, and MaxSlopeRad and installs it into tm.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 757
            },
            {
              "name": "Batch",
              "anchor": "TiledNavMesh.Batch",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Batch(fn func())",
              "doc": "Batch groups multiple tile or obstacle mutations so each touched tile is rebuilt at most once\nin deterministic sorted order when fn returns, and notifications fire once per changed tile.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1256
            },
            {
              "name": "ClearObstacles",
              "anchor": "TiledNavMesh.ClearObstacles",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) ClearObstacles()",
              "doc": "ClearObstacles removes all dynamic obstacles and rebuilds only tiles that had obstacles.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1409
            },
            {
              "name": "Contains",
              "anchor": "TiledNavMesh.Contains",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Contains(p math3d.Vec3) bool",
              "doc": "Contains reports whether p lies on any walkable polygon within VerticalTolerance.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1792
            },
            {
              "name": "ContainsWithFilter",
              "anchor": "TiledNavMesh.ContainsWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) ContainsWithFilter(p math3d.Vec3, filter NavFilter) bool",
              "doc": "ContainsWithFilter reports whether p lies on any walkable polygon passing filter within VerticalTolerance.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1798
            },
            {
              "name": "FindCorridor",
              "anchor": "TiledNavMesh.FindCorridor",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindCorridor(start, goal math3d.Vec3) ([]NavPolyRef, bool)",
              "doc": "FindCorridor computes the sequence of 3D NavPolyRefs from start to goal under DefaultNavFilter.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 2629
            },
            {
              "name": "FindCorridorWithFilter",
              "anchor": "TiledNavMesh.FindCorridorWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindCorridorWithFilter(start, goal math3d.Vec3, filter NavFilter) ([]NavPolyRef, bool)",
              "doc": "FindCorridorWithFilter computes the sequence of 3D NavPolyRefs from start to goal restricted to filter.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 2634
            },
            {
              "name": "FindPath",
              "anchor": "TiledNavMesh.FindPath",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPath(start, goal math3d.Vec3) ([]math3d.Vec3, bool)",
              "doc": "FindPath computes the shortest 3D path across tm from start to goal using DefaultNavFilter.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 2609
            },
            {
              "name": "FindPathWithFilter",
              "anchor": "TiledNavMesh.FindPathWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPathWithFilter(start, goal math3d.Vec3, filter NavFilter) ([]math3d.Vec3, bool)",
              "doc": "FindPathWithFilter computes the minimum-cost 3D path across tm restricted to filter.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 2614
            },
            {
              "name": "FindPathWithFilterAndOptions",
              "anchor": "TiledNavMesh.FindPathWithFilterAndOptions",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPathWithFilterAndOptions(start, goal math3d.Vec3, filter NavFilter, opts ai.PathOptions) TiledNavPathResult",
              "doc": "FindPathWithFilterAndOptions finds a minimum-cost 3D path across tm restricted to filter and opts.\nSparse portal-graph A* touches only visited portals and runs 3D XZ-funnel smoothing with exact\nplane-transition crossings so paths across tile borders match an untiled world3d.NavMesh.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 2732
            },
            {
              "name": "FindPathWithOptions",
              "anchor": "TiledNavMesh.FindPathWithOptions",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPathWithOptions(start, goal math3d.Vec3, opts ai.PathOptions) TiledNavPathResult",
              "doc": "FindPathWithOptions computes a 3D path under DefaultNavFilter and opts, returning the full\nTiledNavPathResult with crossed tile versions for invalidation checking.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 2624
            },
            {
              "name": "FindPolygon",
              "anchor": "TiledNavMesh.FindPolygon",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPolygon(p math3d.Vec3) (NavPolyRef, bool)",
              "doc": "FindPolygon locates the walkable polygon containing (p.X, p.Z) whose 3D surface height is\nclosest to p.Y within VerticalTolerance, using O(1) tile lookup + O(log P_tile) local 3D BVH.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1755
            },
            {
              "name": "FindPolygonWithFilter",
              "anchor": "TiledNavMesh.FindPolygonWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) FindPolygonWithFilter(p math3d.Vec3, filter NavFilter) (NavPolyRef, bool)",
              "doc": "FindPolygonWithFilter locates the vertically closest matching polygon passing filter at p.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1760
            },
            {
              "name": "HasTile",
              "anchor": "TiledNavMesh.HasTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) HasTile(coord ChunkCoord) bool",
              "doc": "HasTile reports whether a tile is currently installed at coord.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 715
            },
            {
              "name": "IsPathValid",
              "anchor": "TiledNavMesh.IsPathValid",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) IsPathValid(res TiledNavPathResult) bool",
              "doc": "IsPathValid reports whether every tile crossed by res is still present and unchanged since res was computed.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1551
            },
            {
              "name": "NearestPoint",
              "anchor": "TiledNavMesh.NearestPoint",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) NearestPoint(p, extent math3d.Vec3) (math3d.Vec3, NavPolyRef, bool)",
              "doc": "NearestPoint returns the closest 3D point on any walkable polygon allowed by DefaultNavFilter\nwithin 3D half-extents [p - extent, p + extent], together with its NavPolyRef.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1912
            },
            {
              "name": "NearestPointWithFilter",
              "anchor": "TiledNavMesh.NearestPointWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) NearestPointWithFilter(p, extent math3d.Vec3, filter NavFilter) (math3d.Vec3, NavPolyRef, bool)",
              "doc": "NearestPointWithFilter behaves like NearestPoint restricted to filter.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1917
            },
            {
              "name": "NearestPolygon",
              "anchor": "TiledNavMesh.NearestPolygon",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) NearestPolygon(p math3d.Vec3) (NavPolyRef, math3d.Vec3, bool)",
              "doc": "NearestPolygon returns the 3D polygon closest to p and the closest 3D point on it.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1894
            },
            {
              "name": "NearestPolygonWithFilter",
              "anchor": "TiledNavMesh.NearestPolygonWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) NearestPolygonWithFilter(p math3d.Vec3, filter NavFilter) (NavPolyRef, math3d.Vec3, bool)",
              "doc": "NearestPolygonWithFilter returns the closest 3D polygon passing filter and closest point on it.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1899
            },
            {
              "name": "Neighbors",
              "anchor": "TiledNavMesh.Neighbors",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Neighbors(ref NavPolyRef) []NavPolyRef",
              "doc": "Neighbors returns the polygon references sharing a 3D edge (intra-tile or cross-tile) with ref.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1720
            },
            {
              "name": "ObstacleCount",
              "anchor": "TiledNavMesh.ObstacleCount",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) ObstacleCount() int",
              "doc": "ObstacleCount returns the number of active dynamic obstacles.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1424
            },
            {
              "name": "Origin",
              "anchor": "TiledNavMesh.Origin",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Origin() math3d.Vec3",
              "doc": "Origin returns the world-space XZ origin of tile (0, 0).\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 623
            },
            {
              "name": "Polygon",
              "anchor": "TiledNavMesh.Polygon",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Polygon(ref NavPolyRef) []math3d.Vec3",
              "doc": "Polygon returns a copy of the 3D vertices of ref, or nil if ref is stale or invalid.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1691
            },
            {
              "name": "PolygonArea",
              "anchor": "TiledNavMesh.PolygonArea",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) PolygonArea(ref NavPolyRef) NavArea",
              "doc": "PolygonArea returns the area of ref, or NavAreaDefault if invalid.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1702
            },
            {
              "name": "PolygonCount",
              "anchor": "TiledNavMesh.PolygonCount",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) PolygonCount() int",
              "doc": "PolygonCount returns the total number of active walkable polygons across all installed tiles.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 737
            },
            {
              "name": "PolygonFlags",
              "anchor": "TiledNavMesh.PolygonFlags",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) PolygonFlags(ref NavPolyRef) NavFlags",
              "doc": "PolygonFlags returns the runtime flags of ref, or 0 if invalid.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1711
            },
            {
              "name": "Raycast",
              "anchor": "TiledNavMesh.Raycast",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Raycast(start, target math3d.Vec3) (TiledNavRaycastHit, bool)",
              "doc": "Raycast casts a segment along the 3D TiledNavMesh surface from start toward target using DefaultNavFilter.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 2264
            },
            {
              "name": "RaycastWithFilter",
              "anchor": "TiledNavMesh.RaycastWithFilter",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RaycastWithFilter(start, target math3d.Vec3, filter NavFilter) (TiledNavRaycastHit, bool)",
              "doc": "RaycastWithFilter behaves like Raycast restricted to polygons allowed by filter.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 2269
            },
            {
              "name": "RebuildTile",
              "anchor": "TiledNavMesh.RebuildTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RebuildTile(coord ChunkCoord) bool",
              "doc": "RebuildTile rebuilds the existing tile at coord from its base polygons and active dynamic obstacles.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 833
            },
            {
              "name": "RemoveObstacle",
              "anchor": "TiledNavMesh.RemoveObstacle",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RemoveObstacle(id NavObstacleID) bool",
              "doc": "RemoveObstacle removes dynamic obstacle id and rebuilds only the tiles it touched.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1392
            },
            {
              "name": "RemoveTile",
              "anchor": "TiledNavMesh.RemoveTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RemoveTile(coord ChunkCoord) bool",
              "doc": "RemoveTile unloads the tile at coord, unlinks cross-tile border links from neighboring tiles,\nbumps coord's tile version, and notifies listeners / invalidates paths crossing coord.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 806
            },
            {
              "name": "RemoveTileListener",
              "anchor": "TiledNavMesh.RemoveTileListener",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) RemoveTileListener(id NavListenerID) bool",
              "doc": "RemoveTileListener unregisters a listener previously added with AddTileListener.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1537
            },
            {
              "name": "ReplaceTile",
              "anchor": "TiledNavMesh.ReplaceTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) ReplaceTile(coord ChunkCoord, tile *NavTile) bool",
              "doc": "ReplaceTile replaces the existing tile at coord with tile.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 779
            },
            {
              "name": "Revision",
              "anchor": "TiledNavMesh.Revision",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) Revision() uint64",
              "doc": "Revision returns a monotonically increasing number bumped on any tile or obstacle mutation.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 691
            },
            {
              "name": "SetTile",
              "anchor": "TiledNavMesh.SetTile",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) SetTile(coord ChunkCoord, tile *NavTile) bool",
              "doc": "SetTile installs or replaces tile at coord, applying active dynamic obstacles touching coord\nand linking polygons in full 3D across tile borders with neighboring tiles.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 792
            },
            {
              "name": "TileBounds",
              "anchor": "TiledNavMesh.TileBounds",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileBounds(coord ChunkCoord) math3d.AABB",
              "doc": "TileBounds returns the world-space XZ bounds of tile coord (with Y spanning [-math.MaxFloat32/4, +math.MaxFloat32/4]\nwhen empty or the tile's polygon Y bounds when loaded).\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 643
            },
            {
              "name": "TileCoordAt",
              "anchor": "TiledNavMesh.TileCoordAt",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileCoordAt(p math3d.Vec3) ChunkCoord",
              "doc": "TileCoordAt returns the ChunkCoord containing (p.X, p.Z).\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 631
            },
            {
              "name": "TileCoords",
              "anchor": "TiledNavMesh.TileCoords",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileCoords() []ChunkCoord",
              "doc": "TileCoords returns all installed tile coordinates in deterministic sorted order.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 724
            },
            {
              "name": "TileCount",
              "anchor": "TiledNavMesh.TileCount",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileCount() int",
              "doc": "TileCount returns the number of currently installed tiles.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 707
            },
            {
              "name": "TilePolygonCount",
              "anchor": "TiledNavMesh.TilePolygonCount",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TilePolygonCount(coord ChunkCoord) int",
              "doc": "TilePolygonCount returns the number of active polygons currently inside tile coord.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 745
            },
            {
              "name": "TileSize",
              "anchor": "TiledNavMesh.TileSize",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileSize() float32",
              "doc": "TileSize returns the configured XZ tile size in world units.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 615
            },
            {
              "name": "TileVersion",
              "anchor": "TiledNavMesh.TileVersion",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) TileVersion(coord ChunkCoord) uint64",
              "doc": "TileVersion returns the current revision number of tile coord (0 if never modified).\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 699
            },
            {
              "name": "UnwatchPath",
              "anchor": "TiledNavMesh.UnwatchPath",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) UnwatchPath(id NavPathWatchID) bool",
              "doc": "UnwatchPath cancels a path watcher previously registered with WatchPath.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1591
            },
            {
              "name": "UpdateObstacle",
              "anchor": "TiledNavMesh.UpdateObstacle",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) UpdateObstacle(id NavObstacleID, obs NavObstacle) bool",
              "doc": "UpdateObstacle replaces the geometry or mode of dynamic obstacle id, rebuilding only tiles\ntouched by either its old or new footprint.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1353
            },
            {
              "name": "WatchPath",
              "anchor": "TiledNavMesh.WatchPath",
              "recv": "*TiledNavMesh",
              "decl": "func (tm *TiledNavMesh) WatchPath(tiles []ChunkCoord, onInvalidate func(NavTileChange)) NavPathWatchID",
              "doc": "WatchPath registers a one-shot invalidation callback invoked when any tile in tiles changes.\nOnce triggered, the watch is automatically removed.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 1568
            }
          ]
        },
        {
          "name": "TiledNavMeshConfig",
          "anchor": "TiledNavMeshConfig",
          "decl": "type TiledNavMeshConfig struct {\n\t// TileSize is the XZ width and depth of each square tile in world units.\n\t// Defaults to 64 when <= 0 (matching ChunkStreamerConfig.ChunkSize).\n\tTileSize float32\n\t// Origin is the world-space XZ origin of tile (0, 0). Defaults to (0, 0, 0).\n\tOrigin math3d.Vec3\n\t// MaxSlopeRad is the default slope limit used by BakeTile when building tiles.\n\t// Defaults to pi/4 (45 degrees) when < 0.\n\tMaxSlopeRad float32\n\t// VerticalTolerance is the maximum vertical distance from a query point to a walkable polygon.\n\t// Defaults to 2.0 when <= 0.\n\tVerticalTolerance float32\n}",
          "doc": "TiledNavMeshConfig configures a 3D TiledNavMesh.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 351,
          "members": [
            {
              "name": "TileSize",
              "anchor": "TiledNavMeshConfig.TileSize",
              "kind": "field",
              "doc": "TileSize is the XZ width and depth of each square tile in world units.\nDefaults to 64 when <= 0 (matching ChunkStreamerConfig.ChunkSize)."
            },
            {
              "name": "Origin",
              "anchor": "TiledNavMeshConfig.Origin",
              "kind": "field",
              "doc": "Origin is the world-space XZ origin of tile (0, 0). Defaults to (0, 0, 0)."
            },
            {
              "name": "MaxSlopeRad",
              "anchor": "TiledNavMeshConfig.MaxSlopeRad",
              "kind": "field",
              "doc": "MaxSlopeRad is the default slope limit used by BakeTile when building tiles.\nDefaults to pi/4 (45 degrees) when < 0."
            },
            {
              "name": "VerticalTolerance",
              "anchor": "TiledNavMeshConfig.VerticalTolerance",
              "kind": "field",
              "doc": "VerticalTolerance is the maximum vertical distance from a query point to a walkable polygon.\nDefaults to 2.0 when <= 0."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TiledNavPathResult",
          "anchor": "TiledNavPathResult",
          "decl": "type TiledNavPathResult struct {\n\tPath       []math3d.Vec3\n\tCorridor   []NavPolyRef\n\tTiles      []NavTileVersion\n\tFound      bool\n\tPartial    bool\n\tExhausted  bool\n\tExpansions int\n}",
          "doc": "TiledNavPathResult is the outcome of a 3D TiledNavMesh path search, including\nthe tile footprint and tile versions crossed so callers can detect invalidation.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 367,
          "members": [
            {
              "name": "Path",
              "anchor": "TiledNavPathResult.Path",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Corridor",
              "anchor": "TiledNavPathResult.Corridor",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Tiles",
              "anchor": "TiledNavPathResult.Tiles",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Found",
              "anchor": "TiledNavPathResult.Found",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Partial",
              "anchor": "TiledNavPathResult.Partial",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Exhausted",
              "anchor": "TiledNavPathResult.Exhausted",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Expansions",
              "anchor": "TiledNavPathResult.Expansions",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "CrossesTile",
              "anchor": "TiledNavPathResult.CrossesTile",
              "recv": "TiledNavPathResult",
              "decl": "func (r TiledNavPathResult) CrossesTile(coord ChunkCoord) bool",
              "doc": "CrossesTile reports whether r's corridor passes through coord.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 378
            },
            {
              "name": "TileCoords",
              "anchor": "TiledNavPathResult.TileCoords",
              "recv": "TiledNavPathResult",
              "decl": "func (r TiledNavPathResult) TileCoords() []ChunkCoord",
              "doc": "TileCoords returns the deduplicated list of chunk/tile coordinates crossed by r.\n",
              "file": "pkg/world3d/tiled_navmesh.go",
              "line": 388
            }
          ]
        },
        {
          "name": "TiledNavRaycastHit",
          "anchor": "TiledNavRaycastHit",
          "decl": "type TiledNavRaycastHit struct {\n\tPoint  math3d.Vec3\n\tNormal math3d.Vec3\n\tPoly   NavPolyRef\n\tT      float32\n\tHit    bool\n}",
          "doc": "TiledNavRaycastHit describes the result of casting a segment across a 3D TiledNavMesh.\n",
          "file": "pkg/world3d/tiled_navmesh.go",
          "line": 400,
          "members": [
            {
              "name": "Point",
              "anchor": "TiledNavRaycastHit.Point",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Normal",
              "anchor": "TiledNavRaycastHit.Normal",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Poly",
              "anchor": "TiledNavRaycastHit.Poly",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "T",
              "anchor": "TiledNavRaycastHit.T",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Hit",
              "anchor": "TiledNavRaycastHit.Hit",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TilemapStreamer",
          "anchor": "TilemapStreamer",
          "decl": "type TilemapStreamer struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TilemapStreamer bridges world3d.ChunkStreamer[*tilemap.Chunk] onto a sparse chunked tilemap.TileLayer,\nproviding bounded streaming, background generation, hysteresis unloading, and deterministic YAML/JSON persistence\nof modified chunks without breaking game/tilemap's stability boundary.\n",
          "file": "pkg/world3d/tilemap_stream.go",
          "line": 45,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTilemapStreamer",
              "anchor": "NewTilemapStreamer",
              "decl": "func NewTilemapStreamer(cfg TilemapStreamerConfig) (*TilemapStreamer, error)",
              "doc": "NewTilemapStreamer constructs a TilemapStreamer backed by a world3d.ChunkStreamer[*tilemap.Chunk].\nCall Close when finished to save any loaded modified chunks and stop worker goroutines.\n",
              "file": "pkg/world3d/tilemap_stream.go",
              "line": 55
            }
          ],
          "methods": [
            {
              "name": "Close",
              "anchor": "TilemapStreamer.Close",
              "recv": "*TilemapStreamer",
              "decl": "func (s *TilemapStreamer) Close()",
              "doc": "Close stops background loader workers and unloads all remaining chunks, saving any modified chunks to Store.\n",
              "file": "pkg/world3d/tilemap_stream.go",
              "line": 221
            },
            {
              "name": "SaveModified",
              "anchor": "TilemapStreamer.SaveModified",
              "recv": "*TilemapStreamer",
              "decl": "func (s *TilemapStreamer) SaveModified() error",
              "doc": "SaveModified persists every currently loaded modified chunk in deterministic order to Store.\n",
              "file": "pkg/world3d/tilemap_stream.go",
              "line": 200
            },
            {
              "name": "Streamer",
              "anchor": "TilemapStreamer.Streamer",
              "recv": "*TilemapStreamer",
              "decl": "func (s *TilemapStreamer) Streamer() *ChunkStreamer[*tilemap.Chunk]",
              "doc": "Streamer returns the underlying world3d.ChunkStreamer[*tilemap.Chunk].\n",
              "file": "pkg/world3d/tilemap_stream.go",
              "line": 192
            },
            {
              "name": "Update",
              "anchor": "TilemapStreamer.Update",
              "recv": "*TilemapStreamer",
              "decl": "func (s *TilemapStreamer) Update(worldX, worldY float64)",
              "doc": "Update advances chunk streaming for a 2D world position (worldX, worldY) in tilemap world points.\n",
              "file": "pkg/world3d/tilemap_stream.go",
              "line": 179
            }
          ]
        },
        {
          "name": "TilemapStreamerConfig",
          "anchor": "TilemapStreamerConfig",
          "decl": "type TilemapStreamerConfig struct {\n\t// Map is the Tilemap owning LayerIndex.\n\tMap *tilemap.Tilemap\n\t// LayerIndex selects the chunked TileLayer inside Map.Layers.\n\tLayerIndex int\n\t// LoadRadius is the Chebyshev chunk radius around the player chunk to load.\n\tLoadRadius int\n\t// UnloadRadius is the Chebyshev chunk radius beyond which loaded and in-flight chunks unload/cancel.\n\t// Defaults to LoadRadius + 1 when smaller than LoadRadius.\n\tUnloadRadius int\n\t// MaxIntegrationsPerFrame caps how many completed chunks integrate into Map per Update call (<= 0 means unlimited).\n\tMaxIntegrationsPerFrame int\n\t// Workers sets the number of background ChunkStreamer loader goroutines (0 runs synchronously inside Update).\n\tWorkers int\n\t// Format selects tilemap.ChunkFormatYAML (default) or tilemap.ChunkFormatJSON for Store persistence.\n\tFormat tilemap.ChunkFormat\n\t// Store persists modified chunks on unload and restores them on reload before invoking Generator.\n\t// When Workers > 0, Store must be safe for concurrent use (such as tilemap.MemoryChunkStore or tilemap.DirChunkStore).\n\tStore tilemap.ChunkStore\n\t// Generator populates a freshly allocated chunk when Store has no saved entry for coord.\n\t// It must respect ctx cancellation when Workers > 0.\n\tGenerator func(ctx context.Context, coord tilemap.ChunkCoord, chunk *tilemap.Chunk) error\n\t// OnLoad runs on the Update goroutine after a chunk is installed into Map.Layers[LayerIndex].\n\tOnLoad func(coord tilemap.ChunkCoord, chunk *tilemap.Chunk)\n\t// OnUnload runs on the Update/Close goroutine after a chunk is saved (if modified) and removed from Map.Layers[LayerIndex].\n\tOnUnload func(coord tilemap.ChunkCoord, chunk *tilemap.Chunk)\n\t// OnError runs on the Update goroutine when loading, generating, or saving a chunk fails.\n\tOnError func(coord tilemap.ChunkCoord, err error)\n}",
          "doc": "TilemapStreamerConfig configures a TilemapStreamer that drives a sparse chunked tilemap.TileLayer\nwith a world3d.ChunkStreamer[*tilemap.Chunk].\n",
          "file": "pkg/world3d/tilemap_stream.go",
          "line": 12,
          "members": [
            {
              "name": "Map",
              "anchor": "TilemapStreamerConfig.Map",
              "kind": "field",
              "doc": "Map is the Tilemap owning LayerIndex."
            },
            {
              "name": "LayerIndex",
              "anchor": "TilemapStreamerConfig.LayerIndex",
              "kind": "field",
              "doc": "LayerIndex selects the chunked TileLayer inside Map.Layers."
            },
            {
              "name": "LoadRadius",
              "anchor": "TilemapStreamerConfig.LoadRadius",
              "kind": "field",
              "doc": "LoadRadius is the Chebyshev chunk radius around the player chunk to load."
            },
            {
              "name": "UnloadRadius",
              "anchor": "TilemapStreamerConfig.UnloadRadius",
              "kind": "field",
              "doc": "UnloadRadius is the Chebyshev chunk radius beyond which loaded and in-flight chunks unload/cancel.\nDefaults to LoadRadius + 1 when smaller than LoadRadius."
            },
            {
              "name": "MaxIntegrationsPerFrame",
              "anchor": "TilemapStreamerConfig.MaxIntegrationsPerFrame",
              "kind": "field",
              "doc": "MaxIntegrationsPerFrame caps how many completed chunks integrate into Map per Update call (<= 0 means unlimited)."
            },
            {
              "name": "Workers",
              "anchor": "TilemapStreamerConfig.Workers",
              "kind": "field",
              "doc": "Workers sets the number of background ChunkStreamer loader goroutines (0 runs synchronously inside Update)."
            },
            {
              "name": "Format",
              "anchor": "TilemapStreamerConfig.Format",
              "kind": "field",
              "doc": "Format selects tilemap.ChunkFormatYAML (default) or tilemap.ChunkFormatJSON for Store persistence."
            },
            {
              "name": "Store",
              "anchor": "TilemapStreamerConfig.Store",
              "kind": "field",
              "doc": "Store persists modified chunks on unload and restores them on reload before invoking Generator.\nWhen Workers > 0, Store must be safe for concurrent use (such as tilemap.MemoryChunkStore or tilemap.DirChunkStore)."
            },
            {
              "name": "Generator",
              "anchor": "TilemapStreamerConfig.Generator",
              "kind": "field",
              "doc": "Generator populates a freshly allocated chunk when Store has no saved entry for coord.\nIt must respect ctx cancellation when Workers > 0."
            },
            {
              "name": "OnLoad",
              "anchor": "TilemapStreamerConfig.OnLoad",
              "kind": "field",
              "doc": "OnLoad runs on the Update goroutine after a chunk is installed into Map.Layers[LayerIndex]."
            },
            {
              "name": "OnUnload",
              "anchor": "TilemapStreamerConfig.OnUnload",
              "kind": "field",
              "doc": "OnUnload runs on the Update/Close goroutine after a chunk is saved (if modified) and removed from Map.Layers[LayerIndex]."
            },
            {
              "name": "OnError",
              "anchor": "TilemapStreamerConfig.OnError",
              "kind": "field",
              "doc": "OnError runs on the Update goroutine when loading, generating, or saving a chunk fails."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "WorldPos64",
          "anchor": "WorldPos64",
          "decl": "type WorldPos64 struct {\n\tX, Y, Z float64\n}",
          "doc": "WorldPos64 is a double-precision 3D world-space position used for large\nworlds (tens to hundreds of kilometers) where float32 world coordinates\nwould suffer noticeable precision jitter.\n",
          "file": "pkg/world3d/streaming.go",
          "line": 17,
          "members": [
            {
              "name": "X",
              "anchor": "WorldPos64.X",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Y",
              "anchor": "WorldPos64.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Z",
              "anchor": "WorldPos64.Z",
              "kind": "field",
              "doc": ""
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "Add",
              "anchor": "WorldPos64.Add",
              "recv": "WorldPos64",
              "decl": "func (p WorldPos64) Add(b WorldPos64) WorldPos64",
              "doc": "Add returns p + b.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 22
            },
            {
              "name": "ChunkCoord",
              "anchor": "WorldPos64.ChunkCoord",
              "recv": "WorldPos64",
              "decl": "func (p WorldPos64) ChunkCoord(chunkSize float64) ChunkCoord",
              "doc": "ChunkCoord returns the 2D XZ streaming chunk coordinate containing p for a\nworld partitioned into square chunks of size chunkSize.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 46
            },
            {
              "name": "Dist",
              "anchor": "WorldPos64.Dist",
              "recv": "WorldPos64",
              "decl": "func (p WorldPos64) Dist(b WorldPos64) float64",
              "doc": "Dist returns the Euclidean distance between p and b.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 40
            },
            {
              "name": "DistSq",
              "anchor": "WorldPos64.DistSq",
              "recv": "WorldPos64",
              "decl": "func (p WorldPos64) DistSq(b WorldPos64) float64",
              "doc": "DistSq returns the squared Euclidean distance between p and b.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 32
            },
            {
              "name": "Sub",
              "anchor": "WorldPos64.Sub",
              "recv": "WorldPos64",
              "decl": "func (p WorldPos64) Sub(b WorldPos64) WorldPos64",
              "doc": "Sub returns p - b.\n",
              "file": "pkg/world3d/streaming.go",
              "line": 27
            }
          ]
        }
      ]
    },
    {
      "importPath": "github.com/nsgo-dev/game/pkg/worldmap",
      "name": "worldmap",
      "dir": "pkg/worldmap",
      "page": "pkg/worldmap",
      "synopsis": "Package worldmap keeps track of which rooms of a game world the player has discovered and draws them as a minimap of the current area and a world map, with markers.",
      "doc": "Package worldmap keeps track of which rooms of a game world the player has discovered and draws them as a minimap of the current area and a world map, with markers.\n\n# Map Definitions\n\nA map is defined in a versioned YAML document (Doc): rooms with an ID, an optional name and area, world-space bounds and links to neighbouring rooms, plus fixed markers such as save points or bosses. Parse refuses unknown fields, unsupported versions, duplicate IDs, links to missing rooms and rooms that overlap inside one area; Encode writes deterministic 2-space YAML that parses back to an equal Doc and encodes again to the same bytes; comments and hand-written formatting are not preserved.\n\n# Discovery\n\nNew builds a Map from a Doc. Visit finds the room under the player's position and marks it visited, Enter marks a room by ID (for room transitions), and Reveal marks rooms as known without visiting them (for a map item). Players can also place their own markers with AddMarker.\n\nState returns the discovered rooms, the current room and the player's markers as a value with sorted lists that encodes to the same JSON every time, so it can be stored in a save.Store slot; Restore validates such a value against the map and applies it, or changes nothing.\n\n# Drawing\n\nDrawMinimap draws the discovered rooms of the current room's area around the player at a fixed scale, clipped to a rectangle. DrawWorldMap fits a whole area into a rectangle and draws its discovered rooms. Rooms that are neither visited nor revealed, and the markers in them, are never drawn. Both views take a Style and use a Projection, which also converts a point on the drawn map back to world coordinates (to place a marker where the player taps).\n\n# Tile Minimap\n\nTileMinimap renders a tilemap.Tilemap's layers into a compact cached RGBA image with one color per tile (from a tile custom property, or else the average color of its tileset image), updating only cells changed via Tilemap.SetTile. It overlays a team's fog.Fog cached by fog.Revision so unchanged frames skip recompositing, draws unit and point-of-interest markers and a tilemap.Camera's visible rectangle, supports both orthogonal maps and diamond isometric maps, and converts clicks back to world coordinates with MinimapToWorld and PanCamera.\n",
      "consts": [
        {
          "idents": [
            {
              "name": "DefaultTileColorProperty",
              "anchor": "DefaultTileColorProperty"
            }
          ],
          "decl": "const DefaultTileColorProperty = \"minimap_color\"",
          "doc": "DefaultTileColorProperty is the tile custom property name checked first when choosing a tile's minimap color.\n",
          "file": "pkg/worldmap/tileminimap.go",
          "line": 19
        },
        {
          "idents": [
            {
              "name": "StateVersion",
              "anchor": "StateVersion"
            }
          ],
          "decl": "const StateVersion = 1",
          "doc": "StateVersion is the schema version of State values written by Map.State and accepted by Map.Restore.\n",
          "file": "pkg/worldmap/map.go",
          "line": 16
        },
        {
          "idents": [
            {
              "name": "Version",
              "anchor": "Version"
            }
          ],
          "decl": "const Version = 1",
          "doc": "Version is the map definition schema version this package reads and writes.\n",
          "file": "pkg/worldmap/format.go",
          "line": 16
        }
      ],
      "vars": [
        {
          "idents": [
            {
              "name": "ErrUnknownRoom",
              "anchor": "ErrUnknownRoom"
            },
            {
              "name": "ErrInvalidMarker",
              "anchor": "ErrInvalidMarker"
            },
            {
              "name": "ErrInvalidState",
              "anchor": "ErrInvalidState"
            }
          ],
          "decl": "var (\n\t// ErrUnknownRoom reports a room ID that the map does not define.\n\tErrUnknownRoom = errors.New(\"worldmap: unknown room\")\n\t// ErrInvalidMarker reports a marker that is malformed, outside its room or whose ID is already taken.\n\tErrInvalidMarker = errors.New(\"worldmap: invalid marker\")\n\t// ErrInvalidState reports a State that does not match the map or the state schema.\n\tErrInvalidState = errors.New(\"worldmap: invalid state\")\n)",
          "doc": "",
          "file": "pkg/worldmap/map.go",
          "line": 18
        }
      ],
      "funcs": [
        {
          "name": "Encode",
          "anchor": "Encode",
          "decl": "func Encode(doc *Doc) ([]byte, error)",
          "doc": "Encode validates doc and writes it as deterministic 2-space YAML that Parse reads back to an equal Doc, and that encodes again to the same bytes. Comments, flow style and other formatting of a hand-written file are not preserved.\n",
          "file": "pkg/worldmap/format.go",
          "line": 86
        },
        {
          "name": "Validate",
          "anchor": "Validate",
          "decl": "func Validate(doc *Doc) error",
          "doc": "Validate checks doc against the version 1 schema: a supported version, at least one room, unique non-empty IDs, finite coordinates, positive sizes that survive float32 rounding at the room's position, areas whose combined bounds fit in float32, links to other existing rooms with no pair listed twice, no overlapping rooms within an area, and fixed markers inside existing rooms.\n",
          "file": "pkg/worldmap/format.go",
          "line": 104
        }
      ],
      "types": [
        {
          "name": "Discovery",
          "anchor": "Discovery",
          "decl": "type Discovery uint8",
          "doc": "Discovery is how much the player knows about a room.\n",
          "file": "pkg/worldmap/map.go",
          "line": 28,
          "members": [],
          "consts": [
            {
              "idents": [
                {
                  "name": "Unknown",
                  "anchor": "Unknown"
                },
                {
                  "name": "Revealed",
                  "anchor": "Revealed"
                },
                {
                  "name": "Visited",
                  "anchor": "Visited"
                }
              ],
              "decl": "const (\n\t// Unknown rooms are not drawn.\n\tUnknown Discovery = iota\n\t// Revealed rooms are known, for example from a map item, but have not been entered; they are drawn in Style.Revealed.\n\tRevealed\n\t// Visited rooms have been entered; they are drawn in Style.Visited.\n\tVisited\n)",
              "doc": "",
              "file": "pkg/worldmap/map.go",
              "line": 30
            }
          ],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "String",
              "anchor": "Discovery.String",
              "recv": "Discovery",
              "decl": "func (d Discovery) String() string",
              "doc": "String returns \"unknown\", \"revealed\" or \"visited\".\n",
              "file": "pkg/worldmap/map.go",
              "line": 40
            }
          ]
        },
        {
          "name": "Doc",
          "anchor": "Doc",
          "decl": "type Doc struct {\n\t// Version is the schema version; it must equal Version (1).\n\tVersion int `yaml:\"version\"`\n\t// Rooms are the map's rooms. Their order decides which room wins a lookup when rooms of different areas overlap, and the order they are drawn in.\n\tRooms []RoomDoc `yaml:\"rooms\"`\n\t// Markers are fixed markers placed by the map's author, shown once their room is discovered.\n\tMarkers []Marker `yaml:\"markers,omitempty\"`\n}",
          "doc": "Doc is the root of a versioned YAML map definition.\n",
          "file": "pkg/worldmap/format.go",
          "line": 19,
          "members": [
            {
              "name": "Version",
              "anchor": "Doc.Version",
              "kind": "field",
              "doc": "Version is the schema version; it must equal Version (1)."
            },
            {
              "name": "Rooms",
              "anchor": "Doc.Rooms",
              "kind": "field",
              "doc": "Rooms are the map's rooms. Their order decides which room wins a lookup when rooms of different areas overlap, and the order they are drawn in."
            },
            {
              "name": "Markers",
              "anchor": "Doc.Markers",
              "kind": "field",
              "doc": "Markers are fixed markers placed by the map's author, shown once their room is discovered."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Parse",
              "anchor": "Parse",
              "decl": "func Parse(data []byte) (*Doc, error)",
              "doc": "Parse decodes a YAML map definition and validates it. Unknown fields and trailing YAML documents are refused.\n",
              "file": "pkg/worldmap/format.go",
              "line": 62
            }
          ],
          "methods": []
        },
        {
          "name": "Map",
          "anchor": "Map",
          "decl": "type Map struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "Map holds a map definition and what the player has discovered of it. It is not safe for concurrent use.\n",
          "file": "pkg/worldmap/map.go",
          "line": 67,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "Load",
              "anchor": "Load",
              "decl": "func Load(data []byte) (*Map, error)",
              "doc": "Load parses a YAML map definition and builds a Map from it.\n",
              "file": "pkg/worldmap/map.go",
              "line": 81
            },
            {
              "name": "New",
              "anchor": "New",
              "decl": "func New(doc *Doc) (*Map, error)",
              "doc": "New validates doc and builds a Map with nothing discovered. The Map keeps its own copy of the definition, so later changes to doc do not affect it.\n",
              "file": "pkg/worldmap/map.go",
              "line": 90
            }
          ],
          "methods": [
            {
              "name": "AddMarker",
              "anchor": "Map.AddMarker",
              "recv": "*Map",
              "decl": "func (m *Map) AddMarker(mk Marker) error",
              "doc": "AddMarker places a player marker. The marker needs a non-empty ID not used by any other marker, a kind, and a position inside an existing room; otherwise AddMarker returns an error wrapping ErrInvalidMarker and changes nothing.\n",
              "file": "pkg/worldmap/map.go",
              "line": 316
            },
            {
              "name": "AreaBounds",
              "anchor": "Map.AreaBounds",
              "recv": "*Map",
              "decl": "func (m *Map) AreaBounds(area string) (math2d.Rect, bool)",
              "doc": "AreaBounds returns the smallest rectangle holding every room of area, discovered or not.\n",
              "file": "pkg/worldmap/map.go",
              "line": 168
            },
            {
              "name": "Areas",
              "anchor": "Map.Areas",
              "recv": "*Map",
              "decl": "func (m *Map) Areas() []string",
              "doc": "Areas returns the names of the map's areas, sorted.\n",
              "file": "pkg/worldmap/map.go",
              "line": 158
            },
            {
              "name": "Current",
              "anchor": "Map.Current",
              "recv": "*Map",
              "decl": "func (m *Map) Current() (string, bool)",
              "doc": "Current returns the ID of the room the player was last in, if any.\n",
              "file": "pkg/worldmap/map.go",
              "line": 277
            },
            {
              "name": "DrawMinimap",
              "anchor": "Map.DrawMinimap",
              "recv": "*Map",
              "decl": "func (m *Map) DrawMinimap(d *core.Drawing, dst core.Bounds, player math2d.Vec2, scale float32, style *Style)",
              "doc": "DrawMinimap draws the discovered rooms of the current room's area (the default area when there is no current room) around the player's world position, at scale map points per world unit, clipped to dst. The player's square is drawn at the center of dst. It draws nothing when the projection is not finite (see MinimapProjection), such as for a NaN or infinite player position.\n",
              "file": "pkg/worldmap/draw.go",
              "line": 132
            },
            {
              "name": "DrawWorldMap",
              "anchor": "Map.DrawWorldMap",
              "recv": "*Map",
              "decl": "func (m *Map) DrawWorldMap(d *core.Drawing, dst core.Bounds, area string, player *math2d.Vec2, style *Style)",
              "doc": "DrawWorldMap draws the discovered rooms of area fitted into dst (see WorldMapProjection). When player is not nil and finite and the current room is in area, the player's square is drawn at that world position. It draws nothing when the map has no such area.\n",
              "file": "pkg/worldmap/draw.go",
              "line": 144
            },
            {
              "name": "Enter",
              "anchor": "Map.Enter",
              "recv": "*Map",
              "decl": "func (m *Map) Enter(id string) (first bool, err error)",
              "doc": "Enter marks the room as visited and makes it the current room, as when a room transition moves the player into it. It reports whether this is the first visit.\n",
              "file": "pkg/worldmap/map.go",
              "line": 230
            },
            {
              "name": "Explored",
              "anchor": "Map.Explored",
              "recv": "*Map",
              "decl": "func (m *Map) Explored(area string) (visited, total int)",
              "doc": "Explored returns how many rooms of area are visited and how many it has, for a completion percentage.\n",
              "file": "pkg/worldmap/map.go",
              "line": 302
            },
            {
              "name": "Markers",
              "anchor": "Map.Markers",
              "recv": "*Map",
              "decl": "func (m *Map) Markers() []Marker",
              "doc": "Markers returns every marker, fixed and player-placed, sorted by ID, whether or not its room is discovered.\n",
              "file": "pkg/worldmap/map.go",
              "line": 359
            },
            {
              "name": "PlayerMarkers",
              "anchor": "Map.PlayerMarkers",
              "recv": "*Map",
              "decl": "func (m *Map) PlayerMarkers() []Marker",
              "doc": "PlayerMarkers returns the markers placed with AddMarker, sorted by ID.\n",
              "file": "pkg/worldmap/map.go",
              "line": 379
            },
            {
              "name": "RemoveMarker",
              "anchor": "Map.RemoveMarker",
              "recv": "*Map",
              "decl": "func (m *Map) RemoveMarker(id string) bool",
              "doc": "RemoveMarker removes the player marker with the given ID and reports whether there was one. Fixed markers from the definition cannot be removed.\n",
              "file": "pkg/worldmap/map.go",
              "line": 348
            },
            {
              "name": "Reset",
              "anchor": "Map.Reset",
              "recv": "*Map",
              "decl": "func (m *Map) Reset()",
              "doc": "Reset forgets everything discovered, the current room and the player's markers.\n",
              "file": "pkg/worldmap/map.go",
              "line": 382
            },
            {
              "name": "Restore",
              "anchor": "Map.Restore",
              "recv": "*Map",
              "decl": "func (m *Map) Restore(s State) error",
              "doc": "Restore replaces the map's discovery, current room and player markers with s. It checks s first and, on any problem (another version, an unknown or repeated room, a current room that is not visited, an invalid marker), returns an error wrapping ErrInvalidState and changes nothing.\n\nA save that names a room the definition no longer has is refused; when a game renames or removes rooms, add a save.Store migration that rewrites the saved IDs.\n",
              "file": "pkg/worldmap/map.go",
              "line": 458
            },
            {
              "name": "Reveal",
              "anchor": "Map.Reveal",
              "recv": "*Map",
              "decl": "func (m *Map) Reveal(ids ...string) error",
              "doc": "Reveal marks unknown rooms as revealed, as a map item would. Visited rooms stay visited. It changes nothing and returns an error wrapping ErrUnknownRoom if any ID is unknown.\n",
              "file": "pkg/worldmap/map.go",
              "line": 248
            },
            {
              "name": "RevealArea",
              "anchor": "Map.RevealArea",
              "recv": "*Map",
              "decl": "func (m *Map) RevealArea(area string) error",
              "doc": "RevealArea reveals every unknown room of area. It returns an error wrapping ErrUnknownRoom when the map has no such area.\n",
              "file": "pkg/worldmap/map.go",
              "line": 264
            },
            {
              "name": "Revealed",
              "anchor": "Map.Revealed",
              "recv": "*Map",
              "decl": "func (m *Map) Revealed() []string",
              "doc": "Revealed returns the IDs of the rooms that are revealed but not visited, sorted.\n",
              "file": "pkg/worldmap/map.go",
              "line": 288
            },
            {
              "name": "Room",
              "anchor": "Map.Room",
              "recv": "*Map",
              "decl": "func (m *Map) Room(id string) (Room, bool)",
              "doc": "Room returns the room with the given ID.\n",
              "file": "pkg/worldmap/map.go",
              "line": 147
            },
            {
              "name": "RoomAt",
              "anchor": "Map.RoomAt",
              "recv": "*Map",
              "decl": "func (m *Map) RoomAt(p math2d.Vec2) (string, bool)",
              "doc": "RoomAt returns the ID of the room containing p (half-open bounds, as math2d.Rect.Contains). When rooms of different areas overlap, the current room wins, then rooms of the current area, then the first room in definition order; with no current room, the first room in definition order wins.\n",
              "file": "pkg/worldmap/map.go",
              "line": 174
            },
            {
              "name": "Rooms",
              "anchor": "Map.Rooms",
              "recv": "*Map",
              "decl": "func (m *Map) Rooms() []Room",
              "doc": "Rooms returns every room in definition order. The returned slice is a copy.\n",
              "file": "pkg/worldmap/map.go",
              "line": 137
            },
            {
              "name": "State",
              "anchor": "Map.State",
              "recv": "*Map",
              "decl": "func (m *Map) State() State",
              "doc": "State returns what the map has discovered and the player's markers.\n",
              "file": "pkg/worldmap/map.go",
              "line": 438
            },
            {
              "name": "Status",
              "anchor": "Map.Status",
              "recv": "*Map",
              "decl": "func (m *Map) Status(id string) Discovery",
              "doc": "Status returns how much the player knows about the room; Unknown for an ID the map does not define.\n",
              "file": "pkg/worldmap/map.go",
              "line": 212
            },
            {
              "name": "VisibleMarkers",
              "anchor": "Map.VisibleMarkers",
              "recv": "*Map",
              "decl": "func (m *Map) VisibleMarkers() []Marker",
              "doc": "VisibleMarkers returns the markers whose room is revealed or visited, sorted by ID.\n",
              "file": "pkg/worldmap/map.go",
              "line": 368
            },
            {
              "name": "Visit",
              "anchor": "Map.Visit",
              "recv": "*Map",
              "decl": "func (m *Map) Visit(p math2d.Vec2) (id string, first bool)",
              "doc": "Visit marks the room under the player's position p (chosen as RoomAt does) as visited and makes it the current room. It returns that room's ID and whether this is the first visit; when p is in no room, it returns \"\" and false and keeps the current room.\n",
              "file": "pkg/worldmap/map.go",
              "line": 221
            },
            {
              "name": "Visited",
              "anchor": "Map.Visited",
              "recv": "*Map",
              "decl": "func (m *Map) Visited() []string",
              "doc": "Visited returns the IDs of the visited rooms, sorted.\n",
              "file": "pkg/worldmap/map.go",
              "line": 285
            },
            {
              "name": "WorldMapProjection",
              "anchor": "Map.WorldMapProjection",
              "recv": "*Map",
              "decl": "func (m *Map) WorldMapProjection(dst core.Bounds, area string, padding float32) (Projection, bool)",
              "doc": "WorldMapProjection fits every room of area, discovered or not, into dst inset by padding, keeping the aspect ratio and centering it, so the layout does not shift as rooms are discovered. It returns false when the map has no such area or the inset dst is empty.\n",
              "file": "pkg/worldmap/draw.go",
              "line": 111
            }
          ]
        },
        {
          "name": "Marker",
          "anchor": "Marker",
          "decl": "type Marker struct {\n\t// ID uniquely identifies the marker among the map's fixed markers and the player's markers.\n\tID string `yaml:\"id\" json:\"id\"`\n\t// Kind says what the marker is, such as \"save\" or \"boss\"; Style.MarkerKinds can color each kind.\n\tKind string `yaml:\"kind\" json:\"kind\"`\n\t// Room is the ID of the room the marker is in; the marker is shown once that room is discovered.\n\tRoom string `yaml:\"room\" json:\"room\"`\n\t// X and Y are the marker's position in world coordinates, inside the room's bounds (edges included).\n\tX float32 `yaml:\"x\" json:\"x\"`\n\tY float32 `yaml:\"y\" json:\"y\"`\n\t// Label is optional text for the marker, such as a player's note.\n\tLabel string `yaml:\"label,omitempty\" json:\"label,omitempty\"`\n}",
          "doc": "Marker is a point of interest inside a room: fixed in a Doc, or placed by the player with Map.AddMarker.\n",
          "file": "pkg/worldmap/format.go",
          "line": 47,
          "members": [
            {
              "name": "ID",
              "anchor": "Marker.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the marker among the map's fixed markers and the player's markers."
            },
            {
              "name": "Kind",
              "anchor": "Marker.Kind",
              "kind": "field",
              "doc": "Kind says what the marker is, such as \"save\" or \"boss\"; Style.MarkerKinds can color each kind."
            },
            {
              "name": "Room",
              "anchor": "Marker.Room",
              "kind": "field",
              "doc": "Room is the ID of the room the marker is in; the marker is shown once that room is discovered."
            },
            {
              "name": "X",
              "anchor": "Marker.X",
              "kind": "field",
              "doc": "X and Y are the marker's position in world coordinates, inside the room's bounds (edges included)."
            },
            {
              "name": "Y",
              "anchor": "Marker.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Label",
              "anchor": "Marker.Label",
              "kind": "field",
              "doc": "Label is optional text for the marker, such as a player's note."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "Projection",
          "anchor": "Projection",
          "decl": "type Projection struct {\n\t// Scale is map points per world unit; always positive for projections this package returns.\n\tScale float32\n\t// Offset is where the world origin lands on the map.\n\tOffset math2d.Vec2\n}",
          "doc": "Projection maps world coordinates onto a drawn map: a map point is world*Scale + Offset.\n",
          "file": "pkg/worldmap/draw.go",
          "line": 75,
          "members": [
            {
              "name": "Scale",
              "anchor": "Projection.Scale",
              "kind": "field",
              "doc": "Scale is map points per world unit; always positive for projections this package returns."
            },
            {
              "name": "Offset",
              "anchor": "Projection.Offset",
              "kind": "field",
              "doc": "Offset is where the world origin lands on the map."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "MinimapProjection",
              "anchor": "MinimapProjection",
              "decl": "func MinimapProjection(dst core.Bounds, center math2d.Vec2, scale float32) Projection",
              "doc": "MinimapProjection centers the world point center in dst at scale map points per world unit; a scale that is not positive and finite behaves as 1. The Offset is not finite when center is not, or when center*scale overflows float32.\n",
              "file": "pkg/worldmap/draw.go",
              "line": 102
            }
          ],
          "methods": [
            {
              "name": "RectToMap",
              "anchor": "Projection.RectToMap",
              "recv": "Projection",
              "decl": "func (p Projection) RectToMap(r math2d.Rect) math2d.Rect",
              "doc": "RectToMap converts a world rectangle to the drawn map.\n",
              "file": "pkg/worldmap/draw.go",
              "line": 96
            },
            {
              "name": "ToMap",
              "anchor": "Projection.ToMap",
              "recv": "Projection",
              "decl": "func (p Projection) ToMap(v math2d.Vec2) math2d.Vec2",
              "doc": "ToMap converts a world point to a point on the drawn map.\n",
              "file": "pkg/worldmap/draw.go",
              "line": 83
            },
            {
              "name": "ToWorld",
              "anchor": "Projection.ToWorld",
              "recv": "Projection",
              "decl": "func (p Projection) ToWorld(v math2d.Vec2) math2d.Vec2",
              "doc": "ToWorld converts a point on the drawn map, such as a tap, back to world coordinates. It returns the world origin when Scale is 0.\n",
              "file": "pkg/worldmap/draw.go",
              "line": 88
            }
          ]
        },
        {
          "name": "Room",
          "anchor": "Room",
          "decl": "type Room struct {\n\t// ID uniquely identifies the room.\n\tID string\n\t// Name is the room's display name, possibly empty.\n\tName string\n\t// Area is the area the room belongs to; empty is the default area.\n\tArea string\n\t// Bounds is the room's rectangle in world coordinates.\n\tBounds math2d.Rect\n\t// Links are the IDs of the rooms connected to this one, in both directions, sorted.\n\tLinks []string\n}",
          "doc": "Room is a room of a built Map.\n",
          "file": "pkg/worldmap/map.go",
          "line": 53,
          "members": [
            {
              "name": "ID",
              "anchor": "Room.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the room."
            },
            {
              "name": "Name",
              "anchor": "Room.Name",
              "kind": "field",
              "doc": "Name is the room's display name, possibly empty."
            },
            {
              "name": "Area",
              "anchor": "Room.Area",
              "kind": "field",
              "doc": "Area is the area the room belongs to; empty is the default area."
            },
            {
              "name": "Bounds",
              "anchor": "Room.Bounds",
              "kind": "field",
              "doc": "Bounds is the room's rectangle in world coordinates."
            },
            {
              "name": "Links",
              "anchor": "Room.Links",
              "kind": "field",
              "doc": "Links are the IDs of the rooms connected to this one, in both directions, sorted."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "RoomDoc",
          "anchor": "RoomDoc",
          "decl": "type RoomDoc struct {\n\t// ID uniquely identifies the room; it is what saves refer to.\n\tID string `yaml:\"id\"`\n\t// Name is an optional display name.\n\tName string `yaml:\"name,omitempty\"`\n\t// Area groups rooms that share one map, such as a floor or a region. Rooms in the same area must not overlap. Empty is the default area.\n\tArea string `yaml:\"area,omitempty\"`\n\t// X and Y are the room's top-left corner in world coordinates.\n\tX float32 `yaml:\"x\"`\n\tY float32 `yaml:\"y\"`\n\t// Width and Height are the room's size in world units; both must be positive.\n\tWidth  float32 `yaml:\"width\"`\n\tHeight float32 `yaml:\"height\"`\n\t// Links are the IDs of rooms this room connects to, such as through a door. Links are undirected, so each pair is listed once, on either room.\n\tLinks []string `yaml:\"links,omitempty,flow\"`\n}",
          "doc": "RoomDoc describes one room of a map definition.\n",
          "file": "pkg/worldmap/format.go",
          "line": 29,
          "members": [
            {
              "name": "ID",
              "anchor": "RoomDoc.ID",
              "kind": "field",
              "doc": "ID uniquely identifies the room; it is what saves refer to."
            },
            {
              "name": "Name",
              "anchor": "RoomDoc.Name",
              "kind": "field",
              "doc": "Name is an optional display name."
            },
            {
              "name": "Area",
              "anchor": "RoomDoc.Area",
              "kind": "field",
              "doc": "Area groups rooms that share one map, such as a floor or a region. Rooms in the same area must not overlap. Empty is the default area."
            },
            {
              "name": "X",
              "anchor": "RoomDoc.X",
              "kind": "field",
              "doc": "X and Y are the room's top-left corner in world coordinates."
            },
            {
              "name": "Y",
              "anchor": "RoomDoc.Y",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Width",
              "anchor": "RoomDoc.Width",
              "kind": "field",
              "doc": "Width and Height are the room's size in world units; both must be positive."
            },
            {
              "name": "Height",
              "anchor": "RoomDoc.Height",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Links",
              "anchor": "RoomDoc.Links",
              "kind": "field",
              "doc": "Links are the IDs of rooms this room connects to, such as through a door. Links are undirected, so each pair is listed once, on either room."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "State",
          "anchor": "State",
          "decl": "type State struct {\n\t// Version is the state schema version; Map.State writes StateVersion.\n\tVersion int `json:\"version\" yaml:\"version\"`\n\t// Current is the ID of the room the player was last in, or empty.\n\tCurrent string `json:\"current,omitempty\" yaml:\"current,omitempty\"`\n\t// Visited holds the IDs of the visited rooms, sorted.\n\tVisited []string `json:\"visited\" yaml:\"visited\"`\n\t// Revealed holds the IDs of the rooms revealed but not visited, sorted.\n\tRevealed []string `json:\"revealed,omitempty\" yaml:\"revealed,omitempty\"`\n\t// Markers holds the player's markers, sorted by ID; fixed markers come from the definition and are not saved.\n\tMarkers []Marker `json:\"markers,omitempty\" yaml:\"markers,omitempty\"`\n}",
          "doc": "State is what a Map has discovered, in a form a save.Store slot (JSON) or a YAML file can hold. Lists are sorted, so equal states encode to equal bytes. Decoding from either format refuses unknown fields.\n",
          "file": "pkg/worldmap/map.go",
          "line": 390,
          "members": [
            {
              "name": "Version",
              "anchor": "State.Version",
              "kind": "field",
              "doc": "Version is the state schema version; Map.State writes StateVersion."
            },
            {
              "name": "Current",
              "anchor": "State.Current",
              "kind": "field",
              "doc": "Current is the ID of the room the player was last in, or empty."
            },
            {
              "name": "Visited",
              "anchor": "State.Visited",
              "kind": "field",
              "doc": "Visited holds the IDs of the visited rooms, sorted."
            },
            {
              "name": "Revealed",
              "anchor": "State.Revealed",
              "kind": "field",
              "doc": "Revealed holds the IDs of the rooms revealed but not visited, sorted."
            },
            {
              "name": "Markers",
              "anchor": "State.Markers",
              "kind": "field",
              "doc": "Markers holds the player's markers, sorted by ID; fixed markers come from the definition and are not saved."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": [
            {
              "name": "UnmarshalJSON",
              "anchor": "State.UnmarshalJSON",
              "recv": "*State",
              "decl": "func (s *State) UnmarshalJSON(data []byte) error",
              "doc": "UnmarshalJSON decodes a State, refusing unknown fields and trailing data so a mistyped or foreign save is reported instead of silently dropped.\n",
              "file": "pkg/worldmap/map.go",
              "line": 404
            },
            {
              "name": "UnmarshalYAML",
              "anchor": "State.UnmarshalYAML",
              "recv": "*State",
              "decl": "func (s *State) UnmarshalYAML(n *yaml.Node) error",
              "doc": "UnmarshalYAML decodes a State from YAML, refusing unknown fields as UnmarshalJSON does.\n",
              "file": "pkg/worldmap/map.go",
              "line": 420
            }
          ]
        },
        {
          "name": "Style",
          "anchor": "Style",
          "decl": "type Style struct {\n\t// Background fills the whole destination rectangle first.\n\tBackground core.Color\n\t// Visited, Revealed and Current fill visited rooms, revealed rooms and the current room. A transparent Current fills the current room with Visited, so it is drawn like any other visited room.\n\tVisited, Revealed, Current core.Color\n\t// Border outlines every drawn room with BorderWidth.\n\tBorder      core.Color\n\tBorderWidth float32\n\t// Link draws a line of LinkWidth between the centers of two linked rooms when both are discovered and in the drawn area.\n\tLink      core.Color\n\tLinkWidth float32\n\t// Marker is the color of markers whose kind is not in MarkerKinds; each marker is a square MarkerSize points wide.\n\tMarker      core.Color\n\tMarkerKinds map[string]core.Color\n\tMarkerSize  float32\n\t// Player is the color of the square PlayerSize points wide drawn at the player's position.\n\tPlayer     core.Color\n\tPlayerSize float32\n\t// Padding insets the world map from the destination rectangle, in points.\n\tPadding float32\n}",
          "doc": "Style sets the colors and sizes DrawMinimap and DrawWorldMap use. A zero (fully transparent) color leaves that part out, except Current (see below), and a zero size uses DefaultStyle's.\n",
          "file": "pkg/worldmap/draw.go",
          "line": 9,
          "members": [
            {
              "name": "Background",
              "anchor": "Style.Background",
              "kind": "field",
              "doc": "Background fills the whole destination rectangle first."
            },
            {
              "name": "Visited",
              "anchor": "Style.Visited",
              "kind": "field",
              "doc": "Visited, Revealed and Current fill visited rooms, revealed rooms and the current room. A transparent Current fills the current room with Visited, so it is drawn like any other visited room."
            },
            {
              "name": "Revealed",
              "anchor": "Style.Revealed",
              "kind": "field",
              "doc": "Visited, Revealed and Current fill visited rooms, revealed rooms and the current room. A transparent Current fills the current room with Visited, so it is drawn like any other visited room."
            },
            {
              "name": "Current",
              "anchor": "Style.Current",
              "kind": "field",
              "doc": "Visited, Revealed and Current fill visited rooms, revealed rooms and the current room. A transparent Current fills the current room with Visited, so it is drawn like any other visited room."
            },
            {
              "name": "Border",
              "anchor": "Style.Border",
              "kind": "field",
              "doc": "Border outlines every drawn room with BorderWidth."
            },
            {
              "name": "BorderWidth",
              "anchor": "Style.BorderWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Link",
              "anchor": "Style.Link",
              "kind": "field",
              "doc": "Link draws a line of LinkWidth between the centers of two linked rooms when both are discovered and in the drawn area."
            },
            {
              "name": "LinkWidth",
              "anchor": "Style.LinkWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Marker",
              "anchor": "Style.Marker",
              "kind": "field",
              "doc": "Marker is the color of markers whose kind is not in MarkerKinds; each marker is a square MarkerSize points wide."
            },
            {
              "name": "MarkerKinds",
              "anchor": "Style.MarkerKinds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MarkerSize",
              "anchor": "Style.MarkerSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Player",
              "anchor": "Style.Player",
              "kind": "field",
              "doc": "Player is the color of the square PlayerSize points wide drawn at the player's position."
            },
            {
              "name": "PlayerSize",
              "anchor": "Style.PlayerSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Padding",
              "anchor": "Style.Padding",
              "kind": "field",
              "doc": "Padding insets the world map from the destination rectangle, in points."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultStyle",
              "anchor": "DefaultStyle",
              "decl": "func DefaultStyle() Style",
              "doc": "DefaultStyle returns a dark style with lighter visited rooms, dim revealed rooms and a highlighted current room.\n",
              "file": "pkg/worldmap/draw.go",
              "line": 32
            }
          ],
          "methods": []
        },
        {
          "name": "TileMarker",
          "anchor": "TileMarker",
          "decl": "type TileMarker struct {\n\t// Position is the marker's location in world coordinates.\n\tPosition math2d.Vec2\n\t// Kind selects a color from TileMinimapStyle.MarkerKinds when Color is transparent.\n\tKind string\n\t// Color, when non-transparent, overrides Kind and TileMinimapStyle.Marker for this marker.\n\tColor core.Color\n\t// Size is the marker square's width and height in minimap points; <= 0 uses TileMinimapStyle.MarkerSize.\n\tSize float32\n\t// RequireVisible, when true and a fog.Fog is drawn, hides this marker unless its map cell is currently fog.Visible to the drawn team.\n\tRequireVisible bool\n}",
          "doc": "TileMarker is a unit blip or point of interest drawn on a TileMinimap in world coordinates.\n",
          "file": "pkg/worldmap/tileminimap.go",
          "line": 95,
          "members": [
            {
              "name": "Position",
              "anchor": "TileMarker.Position",
              "kind": "field",
              "doc": "Position is the marker's location in world coordinates."
            },
            {
              "name": "Kind",
              "anchor": "TileMarker.Kind",
              "kind": "field",
              "doc": "Kind selects a color from TileMinimapStyle.MarkerKinds when Color is transparent."
            },
            {
              "name": "Color",
              "anchor": "TileMarker.Color",
              "kind": "field",
              "doc": "Color, when non-transparent, overrides Kind and TileMinimapStyle.Marker for this marker."
            },
            {
              "name": "Size",
              "anchor": "TileMarker.Size",
              "kind": "field",
              "doc": "Size is the marker square's width and height in minimap points; <= 0 uses TileMinimapStyle.MarkerSize."
            },
            {
              "name": "RequireVisible",
              "anchor": "TileMarker.RequireVisible",
              "kind": "field",
              "doc": "RequireVisible, when true and a fog.Fog is drawn, hides this marker unless its map cell is currently fog.Visible to the drawn team."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileMinimap",
          "anchor": "TileMinimap",
          "decl": "type TileMinimap struct {\n\t// contains filtered or unexported fields\n}",
          "doc": "TileMinimap renders a tilemap.Tilemap's tile layers to a compact cached RGBA image with one color per tile,\nincrementally updating only cells changed via Tilemap.SetTile (or small FillRect calls), optionally overlaying a team's\nfog.Fog cached by fog.Revision, and drawing unit/POI markers and the camera's visible rectangle.\n\nOrthogonal maps render 1 pixel per tile; isometric maps render as a solid diamond aligned with Tilemap.WorldBounds.\nA TileMinimap is not safe for concurrent use.\n",
          "file": "pkg/worldmap/tileminimap.go",
          "line": 126,
          "members": [],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "NewTileMinimap",
              "anchor": "NewTileMinimap",
              "decl": "func NewTileMinimap(m *tilemap.Tilemap, opts *TileMinimapOptions) *TileMinimap",
              "doc": "NewTileMinimap builds a TileMinimap for m and renders its initial terrain image.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 161
            }
          ],
          "methods": [
            {
              "name": "Draw",
              "anchor": "TileMinimap.Draw",
              "recv": "*TileMinimap",
              "decl": "func (tm *TileMinimap) Draw(d *core.Drawing, dst core.Bounds, overlay *TileMinimapOverlay, style *TileMinimapStyle)",
              "doc": "Draw updates the minimap image incrementally and draws the terrain, optional fog, unit/POI markers, and camera rectangle into d, clipped to dst.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 727
            },
            {
              "name": "Image",
              "anchor": "TileMinimap.Image",
              "recv": "*TileMinimap",
              "decl": "func (tm *TileMinimap) Image() *image.RGBA",
              "doc": "Image returns the latest rendered minimap image: the fog-composited image when the last Sync or Draw used a fog.Fog, otherwise the terrain image.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 211
            },
            {
              "name": "Invalidate",
              "anchor": "TileMinimap.Invalidate",
              "recv": "*TileMinimap",
              "decl": "func (tm *TileMinimap) Invalidate()",
              "doc": "Invalidate clears cached tile colors and forces the next Sync or Draw to rebuild the full terrain image.\nCall this after mutating layer.Data directly, toggling layer.Visible/Opacity, or editing tile properties/tilesets.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 192
            },
            {
              "name": "MinimapToWorld",
              "anchor": "TileMinimap.MinimapToWorld",
              "recv": "*TileMinimap",
              "decl": "func (tm *TileMinimap) MinimapToWorld(dst core.Bounds, pos math2d.Vec2, style *TileMinimapStyle) (math2d.Vec2, bool)",
              "doc": "MinimapToWorld converts a point in dst's coordinate space (such as a pointer click) into world coordinates using style's Padding.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 679
            },
            {
              "name": "PanCamera",
              "anchor": "TileMinimap.PanCamera",
              "recv": "*TileMinimap",
              "decl": "func (tm *TileMinimap) PanCamera(cam *tilemap.Camera, dst core.Bounds, click math2d.Vec2, style *TileMinimapStyle) bool",
              "doc": "PanCamera centers cam on the world point under click when click lies inside dst, then calls cam.Clamp().\nIt returns false without modifying cam when cam is nil, click is outside dst or non-finite, or the minimap projection is empty.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 693
            },
            {
              "name": "Projection",
              "anchor": "TileMinimap.Projection",
              "recv": "*TileMinimap",
              "decl": "func (tm *TileMinimap) Projection(dst core.Bounds, padding float32) (Projection, bool)",
              "doc": "Projection fits the tilemap's WorldBounds into dst inset by padding, preserving aspect ratio and centering it.\nIt returns false when the tilemap is empty or the inset dst is empty.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 639
            },
            {
              "name": "Sync",
              "anchor": "TileMinimap.Sync",
              "recv": "*TileMinimap",
              "decl": "func (tm *TileMinimap) Sync(f *fog.Fog, team fog.Team, style *TileMinimapStyle) core.ImageSource",
              "doc": "Sync brings the cached terrain image (incrementally for SetTile edits) and optional fog overlay (skipping unchanged fog.Revision frames) up to date, returning the core.ImageSource ready to draw.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 222
            },
            {
              "name": "TerrainImage",
              "anchor": "TileMinimap.TerrainImage",
              "recv": "*TileMinimap",
              "decl": "func (tm *TileMinimap) TerrainImage() *image.RGBA",
              "doc": "TerrainImage returns the cached fog-free terrain image, or nil for an empty map.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 203
            },
            {
              "name": "WorldToMinimap",
              "anchor": "TileMinimap.WorldToMinimap",
              "recv": "*TileMinimap",
              "decl": "func (tm *TileMinimap) WorldToMinimap(dst core.Bounds, world math2d.Vec2, style *TileMinimapStyle) (math2d.Vec2, bool)",
              "doc": "WorldToMinimap converts a world-space point into minimap coordinates inside dst using style's Padding.\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 666
            }
          ]
        },
        {
          "name": "TileMinimapOptions",
          "anchor": "TileMinimapOptions",
          "decl": "type TileMinimapOptions struct {\n\t// ColorProperty names the tile custom property providing an explicit minimap color (parsed via tilemap.Properties.Color). Empty uses DefaultTileColorProperty.\n\tColorProperty string\n\t// Images maps tileset image URIs (with or without an \"asset:\" prefix) or tileset names to decoded image.Image pixel data for average-color sampling. Tilesets whose Image.Pixels or Image.Data is already populated do not need an entry.\n\tImages map[string]image.Image\n\t// Layers limits rendering to these tile layer indices in order; nil or empty composites every visible tile layer in map order.\n\tLayers []int\n\t// TileColor optionally overrides color lookup for a stripped tile GID; returning ok=false falls back to ColorProperty and then the tile's average tileset image color.\n\tTileColor func(tileID uint32) (core.Color, bool)\n}",
          "doc": "TileMinimapOptions configures how NewTileMinimap resolves tile colors and selects layers.\n",
          "file": "pkg/worldmap/tileminimap.go",
          "line": 22,
          "members": [
            {
              "name": "ColorProperty",
              "anchor": "TileMinimapOptions.ColorProperty",
              "kind": "field",
              "doc": "ColorProperty names the tile custom property providing an explicit minimap color (parsed via tilemap.Properties.Color). Empty uses DefaultTileColorProperty."
            },
            {
              "name": "Images",
              "anchor": "TileMinimapOptions.Images",
              "kind": "field",
              "doc": "Images maps tileset image URIs (with or without an \"asset:\" prefix) or tileset names to decoded image.Image pixel data for average-color sampling. Tilesets whose Image.Pixels or Image.Data is already populated do not need an entry."
            },
            {
              "name": "Layers",
              "anchor": "TileMinimapOptions.Layers",
              "kind": "field",
              "doc": "Layers limits rendering to these tile layer indices in order; nil or empty composites every visible tile layer in map order."
            },
            {
              "name": "TileColor",
              "anchor": "TileMinimapOptions.TileColor",
              "kind": "field",
              "doc": "TileColor optionally overrides color lookup for a stripped tile GID; returning ok=false falls back to ColorProperty and then the tile's average tileset image color."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileMinimapOverlay",
          "anchor": "TileMinimapOverlay",
          "decl": "type TileMinimapOverlay struct {\n\t// Fog, when non-nil, overlays Team's fog of war on the minimap image, skipping recomposition when Fog.Revision(Team) has not changed.\n\tFog *fog.Fog\n\t// Team selects which team's fog of war to display.\n\tTeam fog.Team\n\t// Camera, when non-nil, draws the camera's visible rectangle over the minimap.\n\tCamera *tilemap.Camera\n\t// Markers are unit blips and points of interest drawn in world coordinates.\n\tMarkers []TileMarker\n}",
          "doc": "TileMinimapOverlay holds the per-frame overlays drawn on top of a TileMinimap's terrain.\n",
          "file": "pkg/worldmap/tileminimap.go",
          "line": 109,
          "members": [
            {
              "name": "Fog",
              "anchor": "TileMinimapOverlay.Fog",
              "kind": "field",
              "doc": "Fog, when non-nil, overlays Team's fog of war on the minimap image, skipping recomposition when Fog.Revision(Team) has not changed."
            },
            {
              "name": "Team",
              "anchor": "TileMinimapOverlay.Team",
              "kind": "field",
              "doc": "Team selects which team's fog of war to display."
            },
            {
              "name": "Camera",
              "anchor": "TileMinimapOverlay.Camera",
              "kind": "field",
              "doc": "Camera, when non-nil, draws the camera's visible rectangle over the minimap."
            },
            {
              "name": "Markers",
              "anchor": "TileMinimapOverlay.Markers",
              "kind": "field",
              "doc": "Markers are unit blips and points of interest drawn in world coordinates."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [],
          "methods": []
        },
        {
          "name": "TileMinimapStyle",
          "anchor": "TileMinimapStyle",
          "decl": "type TileMinimapStyle struct {\n\t// Background fills the destination rectangle before drawing the terrain image.\n\tBackground core.Color\n\t// Border outlines the destination rectangle with BorderWidth.\n\tBorder      core.Color\n\tBorderWidth float32\n\t// Fog sets the colors laid over Unseen and Explored cells when a fog.Fog is attached. When both are transparent, fog.DefaultStyle() is used.\n\tFog fog.Style\n\t// Camera outlines the camera's visible rectangle with CameraWidth.\n\tCamera      core.Color\n\tCameraWidth float32\n\t// Marker is the default color for markers that do not set Color or match MarkerKinds.\n\tMarker      core.Color\n\tMarkerKinds map[string]core.Color\n\tMarkerSize  float32\n\t// Padding insets the fitted map inside the destination rectangle, in points.\n\tPadding float32\n}",
          "doc": "TileMinimapStyle sets the colors, stroke widths, marker sizes, and padding used by TileMinimap.Draw.\n\nA zero (transparent) color leaves that element out, except Fog: when both Fog.Unseen and Fog.Explored are transparent, fog.DefaultStyle() is used. Non-positive widths or sizes use DefaultTileMinimapStyle's.\n",
          "file": "pkg/worldmap/tileminimap.go",
          "line": 36,
          "members": [
            {
              "name": "Background",
              "anchor": "TileMinimapStyle.Background",
              "kind": "field",
              "doc": "Background fills the destination rectangle before drawing the terrain image."
            },
            {
              "name": "Border",
              "anchor": "TileMinimapStyle.Border",
              "kind": "field",
              "doc": "Border outlines the destination rectangle with BorderWidth."
            },
            {
              "name": "BorderWidth",
              "anchor": "TileMinimapStyle.BorderWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Fog",
              "anchor": "TileMinimapStyle.Fog",
              "kind": "field",
              "doc": "Fog sets the colors laid over Unseen and Explored cells when a fog.Fog is attached. When both are transparent, fog.DefaultStyle() is used."
            },
            {
              "name": "Camera",
              "anchor": "TileMinimapStyle.Camera",
              "kind": "field",
              "doc": "Camera outlines the camera's visible rectangle with CameraWidth."
            },
            {
              "name": "CameraWidth",
              "anchor": "TileMinimapStyle.CameraWidth",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Marker",
              "anchor": "TileMinimapStyle.Marker",
              "kind": "field",
              "doc": "Marker is the default color for markers that do not set Color or match MarkerKinds."
            },
            {
              "name": "MarkerKinds",
              "anchor": "TileMinimapStyle.MarkerKinds",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "MarkerSize",
              "anchor": "TileMinimapStyle.MarkerSize",
              "kind": "field",
              "doc": ""
            },
            {
              "name": "Padding",
              "anchor": "TileMinimapStyle.Padding",
              "kind": "field",
              "doc": "Padding insets the fitted map inside the destination rectangle, in points."
            }
          ],
          "consts": [],
          "vars": [],
          "funcs": [
            {
              "name": "DefaultTileMinimapStyle",
              "anchor": "DefaultTileMinimapStyle",
              "decl": "func DefaultTileMinimapStyle() TileMinimapStyle",
              "doc": "DefaultTileMinimapStyle returns a dark style with a white camera frame, gold default markers, and fog.DefaultStyle().\n",
              "file": "pkg/worldmap/tileminimap.go",
              "line": 56
            }
          ],
          "methods": []
        }
      ]
    }
  ]
}
